diff --git a/bcel-sb.xml b/bcel-sb.xml index bab7fda..2adaa4b 100644 --- a/bcel-sb.xml +++ b/bcel-sb.xml @@ -1,27 +1,42 @@ - + C:\Users\gaura\eclipse-workspace\AIS\Demo1\bin\src\Loan.class C:\Users\gaura\eclipse-workspace\AIS\Demo1\lib\Regex.jar C:\Users\gaura\eclipse-workspace\AIS\Demo1\src + + + + + + + + + + + + - - - + + + - - - - - - - - - - + + + + + + + + + + + + + diff --git a/bin/src/Gaurav_Loan.class b/bin/src/Gaurav_Loan.class index 5cfaa64..de279de 100644 Binary files a/bin/src/Gaurav_Loan.class and b/bin/src/Gaurav_Loan.class differ diff --git a/bin/src/Loan.class b/bin/src/Loan.class index a859b58..0d89d2a 100644 Binary files a/bin/src/Loan.class and b/bin/src/Loan.class differ diff --git a/build.xml b/build.xml index 6544191..269b12d 100644 --- a/build.xml +++ b/build.xml @@ -11,15 +11,16 @@ - + - - + + + @@ -38,10 +39,12 @@ + + @@ -86,6 +89,12 @@ + + + + + + @@ -95,11 +104,7 @@ - - - - - + @@ -110,19 +115,19 @@ - - - - - - - - - - - - - - + + + + + + + + + + + + + + diff --git a/junit/TEST-src.Gaurav_Loan.xml b/junit/TEST-src.Gaurav_Loan.xml index b1b4692..3fb6156 100644 --- a/junit/TEST-src.Gaurav_Loan.xml +++ b/junit/TEST-src.Gaurav_Loan.xml @@ -1,5 +1,5 @@ - + @@ -14,7 +14,7 @@ - + @@ -57,8 +57,8 @@ - - + + @@ -68,7 +68,7 @@ - + @@ -119,7 +119,7 @@ - + diff --git a/pitReports/202401132008/index.html b/pitReports/202401132008/index.html new file mode 100644 index 0000000..02d24a4 --- /dev/null +++ b/pitReports/202401132008/index.html @@ -0,0 +1,64 @@ + + + + + + + + +

Pit Test Coverage Report

+ +

Project Summary

+ + + + + + + + + + + + + + + + + +
Number of ClassesLine CoverageMutation CoverageTest Strength
254%
19/35
42%
15/36
54%
15/28
+ + +

Breakdown by Package

+ + + + + + + + + + + + + + + + + + + + + +
NameNumber of ClassesLine CoverageMutation CoverageTest Strength
src2
54%
19/35
42%
15/36
54%
15/28
+
+ + + +
+ +Report generated by PIT 1.9.3 + + + \ No newline at end of file diff --git a/pitReports/202401132008/src/Gaurav_Loan.java.html b/pitReports/202401132008/src/Gaurav_Loan.java.html new file mode 100644 index 0000000..d08a74e --- /dev/null +++ b/pitReports/202401132008/src/Gaurav_Loan.java.html @@ -0,0 +1,147 @@ + + + + + + + + + +

Gaurav_Loan.java

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

Mutations

10 + + + +

1.1
Location : test
Killed by : none
removed call to org/junit/jupiter/api/Assertions::assertEquals → SURVIVED

+
11 + + + +

1.1
Location : test
Killed by : none
removed call to org/junit/jupiter/api/Assertions::assertEquals → SURVIVED

+
13 + + + +

1.1
Location : test
Killed by : none
removed call to org/junit/jupiter/api/Assertions::assertEquals → SURVIVED

+
14 + + + +

1.1
Location : test
Killed by : none
removed call to org/junit/jupiter/api/Assertions::assertEquals → SURVIVED

+
16 + + + +

1.1
Location : test
Killed by : none
removed call to org/junit/jupiter/api/Assertions::assertEquals → SURVIVED

+
17 + + + +

1.1
Location : test
Killed by : none
removed call to org/junit/jupiter/api/Assertions::assertEquals → SURVIVED

+
19 + + + +

1.1
Location : test
Killed by : none
removed call to org/junit/jupiter/api/Assertions::assertEquals → SURVIVED

+
20 + + + +

1.1
Location : test
Killed by : none
removed call to org/junit/jupiter/api/Assertions::assertEquals → SURVIVED

+
+ + +

Active mutators

+
    + +
  • CONDITIONALS_BOUNDARY
  • + +
  • EMPTY_RETURNS
  • + +
  • FALSE_RETURNS
  • + +
  • INCREMENTS
  • + +
  • INVERT_NEGS
  • + +
  • MATH
  • + +
  • NEGATE_CONDITIONALS
  • + +
  • NULL_RETURNS
  • + +
  • PRIMITIVE_RETURNS
  • + +
  • TRUE_RETURNS
  • + +
  • VOID_METHOD_CALLS
  • + +
+ +

Tests examined

+
    +
  • src.Gaurav_Loan.test(src.Gaurav_Loan) (15 ms)
  • +
+ +
+ +Report generated by PIT 1.9.3 + + + \ No newline at end of file diff --git a/pitReports/202401132008/src/Loan.java.html b/pitReports/202401132008/src/Loan.java.html new file mode 100644 index 0000000..9657ea2 --- /dev/null +++ b/pitReports/202401132008/src/Loan.java.html @@ -0,0 +1,224 @@ + + + + + + + + + +

Loan.java

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

Mutations

12 + + + +

1.1
Location : main
Killed by : none
removed call to java/io/PrintStream::print → NO_COVERAGE

+
15 + + + +

1.1
Location : main
Killed by : none
removed call to java/io/PrintStream::print → NO_COVERAGE

+
18 + + + +

1.1
Location : main
Killed by : none
removed call to java/io/PrintStream::print → NO_COVERAGE

+
22 + + + +

1.1
Location : main
Killed by : none
removed call to java/util/Scanner::close → NO_COVERAGE

+
31 + + + +

1.1
Location : main
Killed by : none
removed call to java/io/PrintStream::print → NO_COVERAGE

+
32 + + + +

1.1
Location : main
Killed by : none
removed call to java/io/PrintStream::println → NO_COVERAGE

+
33 + + + +

1.1
Location : main
Killed by : none
removed call to java/io/PrintStream::println → NO_COVERAGE

+
34 + + + +

1.1
Location : main
Killed by : none
removed call to java/io/PrintStream::println → NO_COVERAGE

+
40 + + + +

1.1
Location : calculateMonthlyPayment
Killed by : none
changed conditional boundary → SURVIVED

2.2
Location : calculateMonthlyPayment
Killed by : none
changed conditional boundary → SURVIVED

3.3
Location : calculateMonthlyPayment
Killed by : none
changed conditional boundary → SURVIVED

4.4
Location : calculateMonthlyPayment
Killed by : src.Gaurav_Loan.test(src.Gaurav_Loan)
negated conditional → KILLED

5.5
Location : calculateMonthlyPayment
Killed by : src.Gaurav_Loan.test(src.Gaurav_Loan)
negated conditional → KILLED

6.6
Location : calculateMonthlyPayment
Killed by : src.Gaurav_Loan.test(src.Gaurav_Loan)
negated conditional → KILLED

+
46 + + + +

1.1
Location : calculateMonthlyPayment
Killed by : src.Gaurav_Loan.test(src.Gaurav_Loan)
Replaced double division with multiplication → KILLED

2.2
Location : calculateMonthlyPayment
Killed by : src.Gaurav_Loan.test(src.Gaurav_Loan)
Replaced double division with multiplication → KILLED

+
47 + + + +

1.1
Location : calculateMonthlyPayment
Killed by : src.Gaurav_Loan.test(src.Gaurav_Loan)
removed negation → KILLED

2.2
Location : calculateMonthlyPayment
Killed by : src.Gaurav_Loan.test(src.Gaurav_Loan)
Replaced double multiplication with division → KILLED

3.3
Location : calculateMonthlyPayment
Killed by : src.Gaurav_Loan.test(src.Gaurav_Loan)
Replaced double addition with subtraction → KILLED

4.4
Location : calculateMonthlyPayment
Killed by : src.Gaurav_Loan.test(src.Gaurav_Loan)
Replaced double subtraction with addition → KILLED

5.5
Location : calculateMonthlyPayment
Killed by : src.Gaurav_Loan.test(src.Gaurav_Loan)
Replaced double division with multiplication → KILLED

+
48 + + + +

1.1
Location : calculateMonthlyPayment
Killed by : src.Gaurav_Loan.test(src.Gaurav_Loan)
replaced double return with 0.0d for src/Loan::calculateMonthlyPayment → KILLED

+
55 + + + +

1.1
Location : calculateOverallDebt
Killed by : none
changed conditional boundary → SURVIVED

2.2
Location : calculateOverallDebt
Killed by : none
changed conditional boundary → SURVIVED

3.3
Location : calculateOverallDebt
Killed by : src.Gaurav_Loan.test(src.Gaurav_Loan)
negated conditional → KILLED

4.4
Location : calculateOverallDebt
Killed by : src.Gaurav_Loan.test(src.Gaurav_Loan)
negated conditional → KILLED

+
61 + + + +

1.1
Location : calculateOverallDebt
Killed by : src.Gaurav_Loan.test(src.Gaurav_Loan)
Replaced double multiplication with division → KILLED

+
62 + + + +

1.1
Location : calculateOverallDebt
Killed by : src.Gaurav_Loan.test(src.Gaurav_Loan)
replaced double return with 0.0d for src/Loan::calculateOverallDebt → KILLED

+
+ + +

Active mutators

+
    + +
  • CONDITIONALS_BOUNDARY
  • + +
  • EMPTY_RETURNS
  • + +
  • FALSE_RETURNS
  • + +
  • INCREMENTS
  • + +
  • INVERT_NEGS
  • + +
  • MATH
  • + +
  • NEGATE_CONDITIONALS
  • + +
  • NULL_RETURNS
  • + +
  • PRIMITIVE_RETURNS
  • + +
  • TRUE_RETURNS
  • + +
  • VOID_METHOD_CALLS
  • + +
+ +

Tests examined

+
    +
  • src.Gaurav_Loan.test(src.Gaurav_Loan) (15 ms)
  • +
+ +
+ +Report generated by PIT 1.9.3 + + + \ No newline at end of file diff --git a/pitReports/202401132008/src/index.html b/pitReports/202401132008/src/index.html new file mode 100644 index 0000000..48e6bfa --- /dev/null +++ b/pitReports/202401132008/src/index.html @@ -0,0 +1,69 @@ + + + + + + + + +

Pit Test Coverage Report

+

Package Summary

+

src

+ + + + + + + + + + + + + + + + + +
Number of ClassesLine CoverageMutation CoverageTest Strength
254%
19/35
42%
15/36
54%
15/28
+ + +

Breakdown by Class

+ + + + + + + + + + + + + + + + + + + + + + + + + + +
NameLine CoverageMutation CoverageTest Strength
Gaurav_Loan.java
100%
10/10
0%
0/8
0%
0/8
Loan.java
36%
9/25
54%
15/28
75%
15/20
+
+ + + +
+ +Report generated by PIT 1.9.3 + + + \ No newline at end of file diff --git a/pitReports/202401132008/style.css b/pitReports/202401132008/style.css new file mode 100644 index 0000000..303bfba --- /dev/null +++ b/pitReports/202401132008/style.css @@ -0,0 +1,563 @@ +html, body, div, span, p, blockquote, pre { + margin: 0; + padding: 0; + border: 0; + outline: 0; + font-weight: inherit; + font-style: inherit; + font-size: 100%; + font-family: inherit; + vertical-align: baseline; +} + +body{ + line-height: 1; + color: black; + background: white; + margin-left: 20px; +} + +.src { + border: 1px solid #dddddd; + padding-top: 10px; + padding-right: 5px; + padding-left: 5px; + font-family: Consolas, Courier, monospace; +} + +.covered, .COVERED { + background-color: #ddffdd; +} + +.uncovered, .UNCOVERED { + background-color: #ffdddd; +} + +.killed, .KILLED { + background-color: #aaffaa; +} + +.survived, .SURVIVED { + background-color: #ffaaaa; +} + +.uncertain, .UNCERTAIN { + background-color: #dde7ef; +} + +.run_error, .RUN_ERROR { + background-color: #dde7ef; +} + +.na { + background-color: #eeeeee; +} + +.timed_out, .TIMED_OUT { + background-color: #dde7ef; +} + +.non_viable, .NON_VIABLE { + background-color: #aaffaa; +} + +.memory_error, .MEMORY_ERROR { + background-color: #dde7ef; +} + +.not_started, .NO_STARTED { + background-color: #dde7ef; color : red +} + +.no_coverage, .NO_COVERAGE { + background-color: #ffaaaa; +} + +.tests { + width: 50%; + float: left; +} + +.mutees { + float: right; + width: 50%; +} + +.unit { + padding-top: 20px; + clear: both; +} + +.coverage_bar { + display: inline-block; + height: 1.1em; + width: 130px; + background: #FAA; + margin: 0 5px; + vertical-align: middle; + border: 1px solid #AAA; + position: relative; +} + +.coverage_complete { + display: inline-block; + height: 100%; + background: #DFD; + float: left; +} + +.coverage_legend { + position: absolute; + height: 100%; + width: 100%; + left: 0; + top: 0; + text-align: center; +} + +.line, .mut { + vertical-align: middle; +} + +.coverage_percentage { + display: inline-block; + width: 3em; + text-align: right; +} + +.pop { + outline:none; +} + +.pop strong { + line-height: 30px; +} + +.pop { + text-decoration: none; +} + +.pop span { + z-index: 10; + display: none; + padding: 14px 20px; + margin-top: -30px; + margin-left: 28px; + width: 800px; + line-height: 16px; + word-wrap: break-word; + border-radius: 4px; + -moz-border-radius: 4px; + -webkit-border-radius: 4px; + -moz-box-shadow: 5px 5px 8px #CCC; + -webkit-box-shadow: 5px 5px 8px #CCC; + box-shadow: 5px 5px 8px #CCC; +} + +.pop:hover span { + display: inline; + position: absolute; + color: #111; + border: 1px solid #DCA; + background: #fffAF0; +} + +.width-1 { + width: 1%; +} + +.width-2 { + width: 2%; +} + +.width-3 { + width: 3%; +} + +.width-4 { + width: 4%; +} + +.width-5 { + width: 5%; +} + +.width-6 { + width: 6%; +} + +.width-7 { + width: 7%; +} + +.width-8 { + width: 8%; +} + +.width-9 { + width: 9%; +} + +.width-10 { + width: 10%; +} + +.width-11 { + width: 11%; +} + +.width-12 { + width: 12%; +} + +.width-13 { + width: 13%; +} + +.width-14 { + width: 14%; +} + +.width-15 { + width: 15%; +} + +.width-16 { + width: 16%; +} + +.width-17 { + width: 17%; +} + +.width-18 { + width: 18%; +} + +.width-19 { + width: 19%; +} + +.width-20 { + width: 20%; +} + +.width-21 { + width: 21%; +} + +.width-22 { + width: 22%; +} + +.width-23 { + width: 23%; +} + +.width-24 { + width: 24%; +} + +.width-25 { + width: 25%; +} + +.width-26 { + width: 26%; +} + +.width-27 { + width: 27%; +} + +.width-28 { + width: 28%; +} + +.width-29 { + width: 29%; +} + +.width-30 { + width: 30%; +} + +.width-31 { + width: 31%; +} + +.width-32 { + width: 32%; +} + +.width-33 { + width: 33%; +} + +.width-34 { + width: 34%; +} + +.width-35 { + width: 35%; +} + +.width-36 { + width: 36%; +} + +.width-37 { + width: 37%; +} + +.width-38 { + width: 38%; +} + +.width-39 { + width: 39%; +} + +.width-40 { + width: 40%; +} + +.width-41 { + width: 41%; +} + +.width-42 { + width: 42%; +} + +.width-43 { + width: 43%; +} + +.width-44 { + width: 44%; +} + +.width-45 { + width: 45%; +} + +.width-46 { + width: 46%; +} + +.width-47 { + width: 47%; +} + +.width-48 { + width: 48%; +} + +.width-49 { + width: 49%; +} + +.width-50 { + width: 50%; +} + +.width-51 { + width: 51%; +} + +.width-52 { + width: 52%; +} + +.width-53 { + width: 53%; +} + +.width-54 { + width: 54%; +} + +.width-55 { + width: 55%; +} + +.width-56 { + width: 56%; +} + +.width-57 { + width: 57%; +} + +.width-58 { + width: 58%; +} + +.width-59 { + width: 59%; +} + +.width-60 { + width: 60%; +} + +.width-61 { + width: 61%; +} + +.width-62 { + width: 62%; +} + +.width-63 { + width: 63%; +} + +.width-64 { + width: 64%; +} + +.width-65 { + width: 65%; +} + +.width-66 { + width: 66%; +} + +.width-67 { + width: 67%; +} + +.width-68 { + width: 68%; +} + +.width-69 { + width: 69%; +} + +.width-70 { + width: 70%; +} + +.width-71 { + width: 71%; +} + +.width-72 { + width: 72%; +} + +.width-73 { + width: 73%; +} + +.width-74 { + width: 74%; +} + +.width-75 { + width: 75%; +} + +.width-76 { + width: 76%; +} + +.width-77 { + width: 77%; +} + +.width-78 { + width: 78%; +} + +.width-79 { + width: 79%; +} + +.width-80 { + width: 80%; +} + +.width-81 { + width: 81%; +} + +.width-82 { + width: 82%; +} + +.width-83 { + width: 83%; +} + +.width-84 { + width: 84%; +} + +.width-85 { + width: 85%; +} + +.width-86 { + width: 86%; +} + +.width-87 { + width: 87%; +} + +.width-88 { + width: 88%; +} + +.width-89 { + width: 89%; +} + +.width-90 { + width: 90%; +} + +.width-91 { + width: 91%; +} + +.width-92 { + width: 92%; +} + +.width-93 { + width: 93%; +} + +.width-94 { + width: 94%; +} + +.width-95 { + width: 95%; +} + +.width-96 { + width: 96%; +} + +.width-97 { + width: 97%; +} + +.width-98 { + width: 98%; +} + +.width-99 { + width: 99%; +} + +.width-100 { + width: 100%; +} \ No newline at end of file diff --git a/pitReports/export/src/Gaurav_Loan/mutants/0/details.txt b/pitReports/export/src/Gaurav_Loan/mutants/0/details.txt index 9b1a459..fb89026 100644 --- a/pitReports/export/src/Gaurav_Loan/mutants/0/details.txt +++ b/pitReports/export/src/Gaurav_Loan/mutants/0/details.txt @@ -1 +1 @@ -MutationDetails [id=MutationIdentifier [location=Location [clazz=src.Gaurav_Loan, method=test, methodDesc=()V], indexes=[15], mutator=org.pitest.mutationtest.engine.gregor.mutators.VoidMethodCallMutator], filename=Gaurav_Loan.java, block=[2], lineNumber=12, description=removed call to org/junit/jupiter/api/Assertions::assertEquals, testsInOrder=[]] +MutationDetails [id=MutationIdentifier [location=Location [clazz=src.Gaurav_Loan, method=test, methodDesc=()V], indexes=[8], mutator=org.pitest.mutationtest.engine.gregor.mutators.VoidMethodCallMutator], filename=Gaurav_Loan.java, block=[1], lineNumber=10, description=removed call to org/junit/jupiter/api/Assertions::assertEquals, testsInOrder=[]] diff --git a/pitReports/export/src/Gaurav_Loan/mutants/0/src.Gaurav_Loan.class b/pitReports/export/src/Gaurav_Loan/mutants/0/src.Gaurav_Loan.class index bdb2c94..1ab3641 100644 Binary files a/pitReports/export/src/Gaurav_Loan/mutants/0/src.Gaurav_Loan.class and b/pitReports/export/src/Gaurav_Loan/mutants/0/src.Gaurav_Loan.class differ diff --git a/pitReports/export/src/Gaurav_Loan/mutants/0/src.Gaurav_Loan.txt b/pitReports/export/src/Gaurav_Loan/mutants/0/src.Gaurav_Loan.txt index 7e8fe19..a47c88a 100644 --- a/pitReports/export/src/Gaurav_Loan/mutants/0/src.Gaurav_Loan.txt +++ b/pitReports/export/src/Gaurav_Loan/mutants/0/src.Gaurav_Loan.txt @@ -7,7 +7,7 @@ public class src/Gaurav_Loan { // access flags 0x1 public ()V L0 - LINENUMBER 7 L0 + LINENUMBER 6 L0 ALOAD 0 INVOKESPECIAL java/lang/Object. ()V RETURN @@ -20,28 +20,78 @@ public class src/Gaurav_Loan { public test()V @Lorg/junit/Test;() L0 - LINENUMBER 11 L0 - NEW src/Loan - DUP - INVOKESPECIAL src/Loan. ()V - ASTORE 1 - L1 - LINENUMBER 12 L1 - DCONST_0 - ALOAD 1 - POP + LINENUMBER 10 L0 DCONST_0 DCONST_0 - INVOKESTATIC src/Loan.sum (DD)Ljava/lang/Double; - POP + DCONST_0 + ICONST_0 + INVOKESTATIC src/Loan.calculateMonthlyPayment (DDI)D POP2 + POP2 + L1 + LINENUMBER 11 L1 + DCONST_0 + ICONST_0 + DCONST_0 + INVOKESTATIC src/Loan.calculateOverallDebt (ID)D + INVOKESTATIC org/junit/jupiter/api/Assertions.assertEquals (DD)V L2 LINENUMBER 13 L2 - RETURN + LDC 93.22 + LDC 5000.0 + LDC 4.5 + BIPUSH 60 + INVOKESTATIC src/Loan.calculateMonthlyPayment (DDI)D + DCONST_1 + INVOKESTATIC org/junit/jupiter/api/Assertions.assertEquals (DDD)V L3 - LOCALVARIABLE this Lsrc/Gaurav_Loan; L0 L3 0 - LOCALVARIABLE mc Lsrc/Loan; L1 L3 1 - MAXSTACK = 6 - MAXLOCALS = 2 + LINENUMBER 14 L3 + LDC 5592.91 + BIPUSH 60 + LDC 93.22 + INVOKESTATIC src/Loan.calculateOverallDebt (ID)D + DCONST_1 + INVOKESTATIC org/junit/jupiter/api/Assertions.assertEquals (DDD)V + L4 + LINENUMBER 16 L4 + LDC 452.27 + LDC 10000.0 + LDC 8.0 + BIPUSH 24 + INVOKESTATIC src/Loan.calculateMonthlyPayment (DDI)D + DCONST_1 + INVOKESTATIC org/junit/jupiter/api/Assertions.assertEquals (DDD)V + L5 + LINENUMBER 17 L5 + LDC 10854.55 + BIPUSH 24 + LDC 452.27 + INVOKESTATIC src/Loan.calculateOverallDebt (ID)D + DCONST_1 + INVOKESTATIC org/junit/jupiter/api/Assertions.assertEquals (DDD)V + L6 + LINENUMBER 19 L6 + LDC 29.1 + LDC 1000.45 + LDC 3.02 + BIPUSH 36 + INVOKESTATIC src/Loan.calculateMonthlyPayment (DDI)D + DCONST_1 + INVOKESTATIC org/junit/jupiter/api/Assertions.assertEquals (DDD)V + L7 + LINENUMBER 20 L7 + LDC 1047.26 + BIPUSH 36 + LDC 29.1 + INVOKESTATIC src/Loan.calculateOverallDebt (ID)D + DCONST_1 + INVOKESTATIC org/junit/jupiter/api/Assertions.assertEquals (DDD)V + L8 + LINENUMBER 22 L8 + RETURN + L9 + LOCALVARIABLE this Lsrc/Gaurav_Loan; L0 L9 0 + MAXSTACK = 7 + MAXLOCALS = 1 } diff --git a/pitReports/export/src/Gaurav_Loan/mutants/1/details.txt b/pitReports/export/src/Gaurav_Loan/mutants/1/details.txt new file mode 100644 index 0000000..d55ac26 --- /dev/null +++ b/pitReports/export/src/Gaurav_Loan/mutants/1/details.txt @@ -0,0 +1 @@ +MutationDetails [id=MutationIdentifier [location=Location [clazz=src.Gaurav_Loan, method=test, methodDesc=()V], indexes=[15], mutator=org.pitest.mutationtest.engine.gregor.mutators.VoidMethodCallMutator], filename=Gaurav_Loan.java, block=[3], lineNumber=11, description=removed call to org/junit/jupiter/api/Assertions::assertEquals, testsInOrder=[]] diff --git a/pitReports/export/src/Gaurav_Loan/mutants/1/src.Gaurav_Loan.class b/pitReports/export/src/Gaurav_Loan/mutants/1/src.Gaurav_Loan.class new file mode 100644 index 0000000..4889bd0 Binary files /dev/null and b/pitReports/export/src/Gaurav_Loan/mutants/1/src.Gaurav_Loan.class differ diff --git a/pitReports/export/src/Gaurav_Loan/mutants/1/src.Gaurav_Loan.txt b/pitReports/export/src/Gaurav_Loan/mutants/1/src.Gaurav_Loan.txt new file mode 100644 index 0000000..67489f2 --- /dev/null +++ b/pitReports/export/src/Gaurav_Loan/mutants/1/src.Gaurav_Loan.txt @@ -0,0 +1,97 @@ +// class version 61.0 (61) +// access flags 0x21 +public class src/Gaurav_Loan { + + // compiled from: Gaurav_Loan.java + + // access flags 0x1 + public ()V + L0 + LINENUMBER 6 L0 + ALOAD 0 + INVOKESPECIAL java/lang/Object. ()V + RETURN + L1 + LOCALVARIABLE this Lsrc/Gaurav_Loan; L0 L1 0 + MAXSTACK = 1 + MAXLOCALS = 1 + + // access flags 0x1 + public test()V + @Lorg/junit/Test;() + L0 + LINENUMBER 10 L0 + DCONST_0 + DCONST_0 + DCONST_0 + ICONST_0 + INVOKESTATIC src/Loan.calculateMonthlyPayment (DDI)D + INVOKESTATIC org/junit/jupiter/api/Assertions.assertEquals (DD)V + L1 + LINENUMBER 11 L1 + DCONST_0 + ICONST_0 + DCONST_0 + INVOKESTATIC src/Loan.calculateOverallDebt (ID)D + POP2 + POP2 + L2 + LINENUMBER 13 L2 + LDC 93.22 + LDC 5000.0 + LDC 4.5 + BIPUSH 60 + INVOKESTATIC src/Loan.calculateMonthlyPayment (DDI)D + DCONST_1 + INVOKESTATIC org/junit/jupiter/api/Assertions.assertEquals (DDD)V + L3 + LINENUMBER 14 L3 + LDC 5592.91 + BIPUSH 60 + LDC 93.22 + INVOKESTATIC src/Loan.calculateOverallDebt (ID)D + DCONST_1 + INVOKESTATIC org/junit/jupiter/api/Assertions.assertEquals (DDD)V + L4 + LINENUMBER 16 L4 + LDC 452.27 + LDC 10000.0 + LDC 8.0 + BIPUSH 24 + INVOKESTATIC src/Loan.calculateMonthlyPayment (DDI)D + DCONST_1 + INVOKESTATIC org/junit/jupiter/api/Assertions.assertEquals (DDD)V + L5 + LINENUMBER 17 L5 + LDC 10854.55 + BIPUSH 24 + LDC 452.27 + INVOKESTATIC src/Loan.calculateOverallDebt (ID)D + DCONST_1 + INVOKESTATIC org/junit/jupiter/api/Assertions.assertEquals (DDD)V + L6 + LINENUMBER 19 L6 + LDC 29.1 + LDC 1000.45 + LDC 3.02 + BIPUSH 36 + INVOKESTATIC src/Loan.calculateMonthlyPayment (DDI)D + DCONST_1 + INVOKESTATIC org/junit/jupiter/api/Assertions.assertEquals (DDD)V + L7 + LINENUMBER 20 L7 + LDC 1047.26 + BIPUSH 36 + LDC 29.1 + INVOKESTATIC src/Loan.calculateOverallDebt (ID)D + DCONST_1 + INVOKESTATIC org/junit/jupiter/api/Assertions.assertEquals (DDD)V + L8 + LINENUMBER 22 L8 + RETURN + L9 + LOCALVARIABLE this Lsrc/Gaurav_Loan; L0 L9 0 + MAXSTACK = 7 + MAXLOCALS = 1 +} + diff --git a/pitReports/export/src/Gaurav_Loan/mutants/2/details.txt b/pitReports/export/src/Gaurav_Loan/mutants/2/details.txt new file mode 100644 index 0000000..1ae0a20 --- /dev/null +++ b/pitReports/export/src/Gaurav_Loan/mutants/2/details.txt @@ -0,0 +1 @@ +MutationDetails [id=MutationIdentifier [location=Location [clazz=src.Gaurav_Loan, method=test, methodDesc=()V], indexes=[24], mutator=org.pitest.mutationtest.engine.gregor.mutators.VoidMethodCallMutator], filename=Gaurav_Loan.java, block=[5], lineNumber=13, description=removed call to org/junit/jupiter/api/Assertions::assertEquals, testsInOrder=[]] diff --git a/pitReports/export/src/Gaurav_Loan/mutants/2/src.Gaurav_Loan.class b/pitReports/export/src/Gaurav_Loan/mutants/2/src.Gaurav_Loan.class new file mode 100644 index 0000000..05d2f27 Binary files /dev/null and b/pitReports/export/src/Gaurav_Loan/mutants/2/src.Gaurav_Loan.class differ diff --git a/pitReports/export/src/Gaurav_Loan/mutants/2/src.Gaurav_Loan.txt b/pitReports/export/src/Gaurav_Loan/mutants/2/src.Gaurav_Loan.txt new file mode 100644 index 0000000..1957d80 --- /dev/null +++ b/pitReports/export/src/Gaurav_Loan/mutants/2/src.Gaurav_Loan.txt @@ -0,0 +1,98 @@ +// class version 61.0 (61) +// access flags 0x21 +public class src/Gaurav_Loan { + + // compiled from: Gaurav_Loan.java + + // access flags 0x1 + public ()V + L0 + LINENUMBER 6 L0 + ALOAD 0 + INVOKESPECIAL java/lang/Object. ()V + RETURN + L1 + LOCALVARIABLE this Lsrc/Gaurav_Loan; L0 L1 0 + MAXSTACK = 1 + MAXLOCALS = 1 + + // access flags 0x1 + public test()V + @Lorg/junit/Test;() + L0 + LINENUMBER 10 L0 + DCONST_0 + DCONST_0 + DCONST_0 + ICONST_0 + INVOKESTATIC src/Loan.calculateMonthlyPayment (DDI)D + INVOKESTATIC org/junit/jupiter/api/Assertions.assertEquals (DD)V + L1 + LINENUMBER 11 L1 + DCONST_0 + ICONST_0 + DCONST_0 + INVOKESTATIC src/Loan.calculateOverallDebt (ID)D + INVOKESTATIC org/junit/jupiter/api/Assertions.assertEquals (DD)V + L2 + LINENUMBER 13 L2 + LDC 93.22 + LDC 5000.0 + LDC 4.5 + BIPUSH 60 + INVOKESTATIC src/Loan.calculateMonthlyPayment (DDI)D + DCONST_1 + POP2 + POP2 + POP2 + L3 + LINENUMBER 14 L3 + LDC 5592.91 + BIPUSH 60 + LDC 93.22 + INVOKESTATIC src/Loan.calculateOverallDebt (ID)D + DCONST_1 + INVOKESTATIC org/junit/jupiter/api/Assertions.assertEquals (DDD)V + L4 + LINENUMBER 16 L4 + LDC 452.27 + LDC 10000.0 + LDC 8.0 + BIPUSH 24 + INVOKESTATIC src/Loan.calculateMonthlyPayment (DDI)D + DCONST_1 + INVOKESTATIC org/junit/jupiter/api/Assertions.assertEquals (DDD)V + L5 + LINENUMBER 17 L5 + LDC 10854.55 + BIPUSH 24 + LDC 452.27 + INVOKESTATIC src/Loan.calculateOverallDebt (ID)D + DCONST_1 + INVOKESTATIC org/junit/jupiter/api/Assertions.assertEquals (DDD)V + L6 + LINENUMBER 19 L6 + LDC 29.1 + LDC 1000.45 + LDC 3.02 + BIPUSH 36 + INVOKESTATIC src/Loan.calculateMonthlyPayment (DDI)D + DCONST_1 + INVOKESTATIC org/junit/jupiter/api/Assertions.assertEquals (DDD)V + L7 + LINENUMBER 20 L7 + LDC 1047.26 + BIPUSH 36 + LDC 29.1 + INVOKESTATIC src/Loan.calculateOverallDebt (ID)D + DCONST_1 + INVOKESTATIC org/junit/jupiter/api/Assertions.assertEquals (DDD)V + L8 + LINENUMBER 22 L8 + RETURN + L9 + LOCALVARIABLE this Lsrc/Gaurav_Loan; L0 L9 0 + MAXSTACK = 7 + MAXLOCALS = 1 +} + diff --git a/pitReports/export/src/Gaurav_Loan/mutants/3/details.txt b/pitReports/export/src/Gaurav_Loan/mutants/3/details.txt new file mode 100644 index 0000000..0589962 --- /dev/null +++ b/pitReports/export/src/Gaurav_Loan/mutants/3/details.txt @@ -0,0 +1 @@ +MutationDetails [id=MutationIdentifier [location=Location [clazz=src.Gaurav_Loan, method=test, methodDesc=()V], indexes=[32], mutator=org.pitest.mutationtest.engine.gregor.mutators.VoidMethodCallMutator], filename=Gaurav_Loan.java, block=[7], lineNumber=14, description=removed call to org/junit/jupiter/api/Assertions::assertEquals, testsInOrder=[]] diff --git a/pitReports/export/src/Gaurav_Loan/mutants/3/src.Gaurav_Loan.class b/pitReports/export/src/Gaurav_Loan/mutants/3/src.Gaurav_Loan.class new file mode 100644 index 0000000..dbbb98c Binary files /dev/null and b/pitReports/export/src/Gaurav_Loan/mutants/3/src.Gaurav_Loan.class differ diff --git a/pitReports/export/src/Gaurav_Loan/mutants/3/src.Gaurav_Loan.txt b/pitReports/export/src/Gaurav_Loan/mutants/3/src.Gaurav_Loan.txt new file mode 100644 index 0000000..1c139fd --- /dev/null +++ b/pitReports/export/src/Gaurav_Loan/mutants/3/src.Gaurav_Loan.txt @@ -0,0 +1,98 @@ +// class version 61.0 (61) +// access flags 0x21 +public class src/Gaurav_Loan { + + // compiled from: Gaurav_Loan.java + + // access flags 0x1 + public ()V + L0 + LINENUMBER 6 L0 + ALOAD 0 + INVOKESPECIAL java/lang/Object. ()V + RETURN + L1 + LOCALVARIABLE this Lsrc/Gaurav_Loan; L0 L1 0 + MAXSTACK = 1 + MAXLOCALS = 1 + + // access flags 0x1 + public test()V + @Lorg/junit/Test;() + L0 + LINENUMBER 10 L0 + DCONST_0 + DCONST_0 + DCONST_0 + ICONST_0 + INVOKESTATIC src/Loan.calculateMonthlyPayment (DDI)D + INVOKESTATIC org/junit/jupiter/api/Assertions.assertEquals (DD)V + L1 + LINENUMBER 11 L1 + DCONST_0 + ICONST_0 + DCONST_0 + INVOKESTATIC src/Loan.calculateOverallDebt (ID)D + INVOKESTATIC org/junit/jupiter/api/Assertions.assertEquals (DD)V + L2 + LINENUMBER 13 L2 + LDC 93.22 + LDC 5000.0 + LDC 4.5 + BIPUSH 60 + INVOKESTATIC src/Loan.calculateMonthlyPayment (DDI)D + DCONST_1 + INVOKESTATIC org/junit/jupiter/api/Assertions.assertEquals (DDD)V + L3 + LINENUMBER 14 L3 + LDC 5592.91 + BIPUSH 60 + LDC 93.22 + INVOKESTATIC src/Loan.calculateOverallDebt (ID)D + DCONST_1 + POP2 + POP2 + POP2 + L4 + LINENUMBER 16 L4 + LDC 452.27 + LDC 10000.0 + LDC 8.0 + BIPUSH 24 + INVOKESTATIC src/Loan.calculateMonthlyPayment (DDI)D + DCONST_1 + INVOKESTATIC org/junit/jupiter/api/Assertions.assertEquals (DDD)V + L5 + LINENUMBER 17 L5 + LDC 10854.55 + BIPUSH 24 + LDC 452.27 + INVOKESTATIC src/Loan.calculateOverallDebt (ID)D + DCONST_1 + INVOKESTATIC org/junit/jupiter/api/Assertions.assertEquals (DDD)V + L6 + LINENUMBER 19 L6 + LDC 29.1 + LDC 1000.45 + LDC 3.02 + BIPUSH 36 + INVOKESTATIC src/Loan.calculateMonthlyPayment (DDI)D + DCONST_1 + INVOKESTATIC org/junit/jupiter/api/Assertions.assertEquals (DDD)V + L7 + LINENUMBER 20 L7 + LDC 1047.26 + BIPUSH 36 + LDC 29.1 + INVOKESTATIC src/Loan.calculateOverallDebt (ID)D + DCONST_1 + INVOKESTATIC org/junit/jupiter/api/Assertions.assertEquals (DDD)V + L8 + LINENUMBER 22 L8 + RETURN + L9 + LOCALVARIABLE this Lsrc/Gaurav_Loan; L0 L9 0 + MAXSTACK = 7 + MAXLOCALS = 1 +} + diff --git a/pitReports/export/src/Gaurav_Loan/mutants/4/details.txt b/pitReports/export/src/Gaurav_Loan/mutants/4/details.txt new file mode 100644 index 0000000..f4de117 --- /dev/null +++ b/pitReports/export/src/Gaurav_Loan/mutants/4/details.txt @@ -0,0 +1 @@ +MutationDetails [id=MutationIdentifier [location=Location [clazz=src.Gaurav_Loan, method=test, methodDesc=()V], indexes=[41], mutator=org.pitest.mutationtest.engine.gregor.mutators.VoidMethodCallMutator], filename=Gaurav_Loan.java, block=[9], lineNumber=16, description=removed call to org/junit/jupiter/api/Assertions::assertEquals, testsInOrder=[]] diff --git a/pitReports/export/src/Gaurav_Loan/mutants/4/src.Gaurav_Loan.class b/pitReports/export/src/Gaurav_Loan/mutants/4/src.Gaurav_Loan.class new file mode 100644 index 0000000..ed608bf Binary files /dev/null and b/pitReports/export/src/Gaurav_Loan/mutants/4/src.Gaurav_Loan.class differ diff --git a/pitReports/export/src/Gaurav_Loan/mutants/4/src.Gaurav_Loan.txt b/pitReports/export/src/Gaurav_Loan/mutants/4/src.Gaurav_Loan.txt new file mode 100644 index 0000000..90687f9 --- /dev/null +++ b/pitReports/export/src/Gaurav_Loan/mutants/4/src.Gaurav_Loan.txt @@ -0,0 +1,98 @@ +// class version 61.0 (61) +// access flags 0x21 +public class src/Gaurav_Loan { + + // compiled from: Gaurav_Loan.java + + // access flags 0x1 + public ()V + L0 + LINENUMBER 6 L0 + ALOAD 0 + INVOKESPECIAL java/lang/Object. ()V + RETURN + L1 + LOCALVARIABLE this Lsrc/Gaurav_Loan; L0 L1 0 + MAXSTACK = 1 + MAXLOCALS = 1 + + // access flags 0x1 + public test()V + @Lorg/junit/Test;() + L0 + LINENUMBER 10 L0 + DCONST_0 + DCONST_0 + DCONST_0 + ICONST_0 + INVOKESTATIC src/Loan.calculateMonthlyPayment (DDI)D + INVOKESTATIC org/junit/jupiter/api/Assertions.assertEquals (DD)V + L1 + LINENUMBER 11 L1 + DCONST_0 + ICONST_0 + DCONST_0 + INVOKESTATIC src/Loan.calculateOverallDebt (ID)D + INVOKESTATIC org/junit/jupiter/api/Assertions.assertEquals (DD)V + L2 + LINENUMBER 13 L2 + LDC 93.22 + LDC 5000.0 + LDC 4.5 + BIPUSH 60 + INVOKESTATIC src/Loan.calculateMonthlyPayment (DDI)D + DCONST_1 + INVOKESTATIC org/junit/jupiter/api/Assertions.assertEquals (DDD)V + L3 + LINENUMBER 14 L3 + LDC 5592.91 + BIPUSH 60 + LDC 93.22 + INVOKESTATIC src/Loan.calculateOverallDebt (ID)D + DCONST_1 + INVOKESTATIC org/junit/jupiter/api/Assertions.assertEquals (DDD)V + L4 + LINENUMBER 16 L4 + LDC 452.27 + LDC 10000.0 + LDC 8.0 + BIPUSH 24 + INVOKESTATIC src/Loan.calculateMonthlyPayment (DDI)D + DCONST_1 + POP2 + POP2 + POP2 + L5 + LINENUMBER 17 L5 + LDC 10854.55 + BIPUSH 24 + LDC 452.27 + INVOKESTATIC src/Loan.calculateOverallDebt (ID)D + DCONST_1 + INVOKESTATIC org/junit/jupiter/api/Assertions.assertEquals (DDD)V + L6 + LINENUMBER 19 L6 + LDC 29.1 + LDC 1000.45 + LDC 3.02 + BIPUSH 36 + INVOKESTATIC src/Loan.calculateMonthlyPayment (DDI)D + DCONST_1 + INVOKESTATIC org/junit/jupiter/api/Assertions.assertEquals (DDD)V + L7 + LINENUMBER 20 L7 + LDC 1047.26 + BIPUSH 36 + LDC 29.1 + INVOKESTATIC src/Loan.calculateOverallDebt (ID)D + DCONST_1 + INVOKESTATIC org/junit/jupiter/api/Assertions.assertEquals (DDD)V + L8 + LINENUMBER 22 L8 + RETURN + L9 + LOCALVARIABLE this Lsrc/Gaurav_Loan; L0 L9 0 + MAXSTACK = 7 + MAXLOCALS = 1 +} + diff --git a/pitReports/export/src/Gaurav_Loan/mutants/5/details.txt b/pitReports/export/src/Gaurav_Loan/mutants/5/details.txt new file mode 100644 index 0000000..177adb9 --- /dev/null +++ b/pitReports/export/src/Gaurav_Loan/mutants/5/details.txt @@ -0,0 +1 @@ +MutationDetails [id=MutationIdentifier [location=Location [clazz=src.Gaurav_Loan, method=test, methodDesc=()V], indexes=[49], mutator=org.pitest.mutationtest.engine.gregor.mutators.VoidMethodCallMutator], filename=Gaurav_Loan.java, block=[11], lineNumber=17, description=removed call to org/junit/jupiter/api/Assertions::assertEquals, testsInOrder=[]] diff --git a/pitReports/export/src/Gaurav_Loan/mutants/5/src.Gaurav_Loan.class b/pitReports/export/src/Gaurav_Loan/mutants/5/src.Gaurav_Loan.class new file mode 100644 index 0000000..f5918f7 Binary files /dev/null and b/pitReports/export/src/Gaurav_Loan/mutants/5/src.Gaurav_Loan.class differ diff --git a/pitReports/export/src/Gaurav_Loan/mutants/5/src.Gaurav_Loan.txt b/pitReports/export/src/Gaurav_Loan/mutants/5/src.Gaurav_Loan.txt new file mode 100644 index 0000000..1a2d5db --- /dev/null +++ b/pitReports/export/src/Gaurav_Loan/mutants/5/src.Gaurav_Loan.txt @@ -0,0 +1,98 @@ +// class version 61.0 (61) +// access flags 0x21 +public class src/Gaurav_Loan { + + // compiled from: Gaurav_Loan.java + + // access flags 0x1 + public ()V + L0 + LINENUMBER 6 L0 + ALOAD 0 + INVOKESPECIAL java/lang/Object. ()V + RETURN + L1 + LOCALVARIABLE this Lsrc/Gaurav_Loan; L0 L1 0 + MAXSTACK = 1 + MAXLOCALS = 1 + + // access flags 0x1 + public test()V + @Lorg/junit/Test;() + L0 + LINENUMBER 10 L0 + DCONST_0 + DCONST_0 + DCONST_0 + ICONST_0 + INVOKESTATIC src/Loan.calculateMonthlyPayment (DDI)D + INVOKESTATIC org/junit/jupiter/api/Assertions.assertEquals (DD)V + L1 + LINENUMBER 11 L1 + DCONST_0 + ICONST_0 + DCONST_0 + INVOKESTATIC src/Loan.calculateOverallDebt (ID)D + INVOKESTATIC org/junit/jupiter/api/Assertions.assertEquals (DD)V + L2 + LINENUMBER 13 L2 + LDC 93.22 + LDC 5000.0 + LDC 4.5 + BIPUSH 60 + INVOKESTATIC src/Loan.calculateMonthlyPayment (DDI)D + DCONST_1 + INVOKESTATIC org/junit/jupiter/api/Assertions.assertEquals (DDD)V + L3 + LINENUMBER 14 L3 + LDC 5592.91 + BIPUSH 60 + LDC 93.22 + INVOKESTATIC src/Loan.calculateOverallDebt (ID)D + DCONST_1 + INVOKESTATIC org/junit/jupiter/api/Assertions.assertEquals (DDD)V + L4 + LINENUMBER 16 L4 + LDC 452.27 + LDC 10000.0 + LDC 8.0 + BIPUSH 24 + INVOKESTATIC src/Loan.calculateMonthlyPayment (DDI)D + DCONST_1 + INVOKESTATIC org/junit/jupiter/api/Assertions.assertEquals (DDD)V + L5 + LINENUMBER 17 L5 + LDC 10854.55 + BIPUSH 24 + LDC 452.27 + INVOKESTATIC src/Loan.calculateOverallDebt (ID)D + DCONST_1 + POP2 + POP2 + POP2 + L6 + LINENUMBER 19 L6 + LDC 29.1 + LDC 1000.45 + LDC 3.02 + BIPUSH 36 + INVOKESTATIC src/Loan.calculateMonthlyPayment (DDI)D + DCONST_1 + INVOKESTATIC org/junit/jupiter/api/Assertions.assertEquals (DDD)V + L7 + LINENUMBER 20 L7 + LDC 1047.26 + BIPUSH 36 + LDC 29.1 + INVOKESTATIC src/Loan.calculateOverallDebt (ID)D + DCONST_1 + INVOKESTATIC org/junit/jupiter/api/Assertions.assertEquals (DDD)V + L8 + LINENUMBER 22 L8 + RETURN + L9 + LOCALVARIABLE this Lsrc/Gaurav_Loan; L0 L9 0 + MAXSTACK = 7 + MAXLOCALS = 1 +} + diff --git a/pitReports/export/src/Gaurav_Loan/mutants/6/details.txt b/pitReports/export/src/Gaurav_Loan/mutants/6/details.txt new file mode 100644 index 0000000..3e7e6db --- /dev/null +++ b/pitReports/export/src/Gaurav_Loan/mutants/6/details.txt @@ -0,0 +1 @@ +MutationDetails [id=MutationIdentifier [location=Location [clazz=src.Gaurav_Loan, method=test, methodDesc=()V], indexes=[58], mutator=org.pitest.mutationtest.engine.gregor.mutators.VoidMethodCallMutator], filename=Gaurav_Loan.java, block=[13], lineNumber=19, description=removed call to org/junit/jupiter/api/Assertions::assertEquals, testsInOrder=[]] diff --git a/pitReports/export/src/Gaurav_Loan/mutants/6/src.Gaurav_Loan.class b/pitReports/export/src/Gaurav_Loan/mutants/6/src.Gaurav_Loan.class new file mode 100644 index 0000000..6d13b85 Binary files /dev/null and b/pitReports/export/src/Gaurav_Loan/mutants/6/src.Gaurav_Loan.class differ diff --git a/pitReports/export/src/Gaurav_Loan/mutants/6/src.Gaurav_Loan.txt b/pitReports/export/src/Gaurav_Loan/mutants/6/src.Gaurav_Loan.txt new file mode 100644 index 0000000..0d71e74 --- /dev/null +++ b/pitReports/export/src/Gaurav_Loan/mutants/6/src.Gaurav_Loan.txt @@ -0,0 +1,98 @@ +// class version 61.0 (61) +// access flags 0x21 +public class src/Gaurav_Loan { + + // compiled from: Gaurav_Loan.java + + // access flags 0x1 + public ()V + L0 + LINENUMBER 6 L0 + ALOAD 0 + INVOKESPECIAL java/lang/Object. ()V + RETURN + L1 + LOCALVARIABLE this Lsrc/Gaurav_Loan; L0 L1 0 + MAXSTACK = 1 + MAXLOCALS = 1 + + // access flags 0x1 + public test()V + @Lorg/junit/Test;() + L0 + LINENUMBER 10 L0 + DCONST_0 + DCONST_0 + DCONST_0 + ICONST_0 + INVOKESTATIC src/Loan.calculateMonthlyPayment (DDI)D + INVOKESTATIC org/junit/jupiter/api/Assertions.assertEquals (DD)V + L1 + LINENUMBER 11 L1 + DCONST_0 + ICONST_0 + DCONST_0 + INVOKESTATIC src/Loan.calculateOverallDebt (ID)D + INVOKESTATIC org/junit/jupiter/api/Assertions.assertEquals (DD)V + L2 + LINENUMBER 13 L2 + LDC 93.22 + LDC 5000.0 + LDC 4.5 + BIPUSH 60 + INVOKESTATIC src/Loan.calculateMonthlyPayment (DDI)D + DCONST_1 + INVOKESTATIC org/junit/jupiter/api/Assertions.assertEquals (DDD)V + L3 + LINENUMBER 14 L3 + LDC 5592.91 + BIPUSH 60 + LDC 93.22 + INVOKESTATIC src/Loan.calculateOverallDebt (ID)D + DCONST_1 + INVOKESTATIC org/junit/jupiter/api/Assertions.assertEquals (DDD)V + L4 + LINENUMBER 16 L4 + LDC 452.27 + LDC 10000.0 + LDC 8.0 + BIPUSH 24 + INVOKESTATIC src/Loan.calculateMonthlyPayment (DDI)D + DCONST_1 + INVOKESTATIC org/junit/jupiter/api/Assertions.assertEquals (DDD)V + L5 + LINENUMBER 17 L5 + LDC 10854.55 + BIPUSH 24 + LDC 452.27 + INVOKESTATIC src/Loan.calculateOverallDebt (ID)D + DCONST_1 + INVOKESTATIC org/junit/jupiter/api/Assertions.assertEquals (DDD)V + L6 + LINENUMBER 19 L6 + LDC 29.1 + LDC 1000.45 + LDC 3.02 + BIPUSH 36 + INVOKESTATIC src/Loan.calculateMonthlyPayment (DDI)D + DCONST_1 + POP2 + POP2 + POP2 + L7 + LINENUMBER 20 L7 + LDC 1047.26 + BIPUSH 36 + LDC 29.1 + INVOKESTATIC src/Loan.calculateOverallDebt (ID)D + DCONST_1 + INVOKESTATIC org/junit/jupiter/api/Assertions.assertEquals (DDD)V + L8 + LINENUMBER 22 L8 + RETURN + L9 + LOCALVARIABLE this Lsrc/Gaurav_Loan; L0 L9 0 + MAXSTACK = 7 + MAXLOCALS = 1 +} + diff --git a/pitReports/export/src/Gaurav_Loan/mutants/7/details.txt b/pitReports/export/src/Gaurav_Loan/mutants/7/details.txt new file mode 100644 index 0000000..2efed54 --- /dev/null +++ b/pitReports/export/src/Gaurav_Loan/mutants/7/details.txt @@ -0,0 +1 @@ +MutationDetails [id=MutationIdentifier [location=Location [clazz=src.Gaurav_Loan, method=test, methodDesc=()V], indexes=[66], mutator=org.pitest.mutationtest.engine.gregor.mutators.VoidMethodCallMutator], filename=Gaurav_Loan.java, block=[15], lineNumber=20, description=removed call to org/junit/jupiter/api/Assertions::assertEquals, testsInOrder=[]] diff --git a/pitReports/export/src/Gaurav_Loan/mutants/7/src.Gaurav_Loan.class b/pitReports/export/src/Gaurav_Loan/mutants/7/src.Gaurav_Loan.class new file mode 100644 index 0000000..1da3878 Binary files /dev/null and b/pitReports/export/src/Gaurav_Loan/mutants/7/src.Gaurav_Loan.class differ diff --git a/pitReports/export/src/Gaurav_Loan/mutants/7/src.Gaurav_Loan.txt b/pitReports/export/src/Gaurav_Loan/mutants/7/src.Gaurav_Loan.txt new file mode 100644 index 0000000..80d5a64 --- /dev/null +++ b/pitReports/export/src/Gaurav_Loan/mutants/7/src.Gaurav_Loan.txt @@ -0,0 +1,98 @@ +// class version 61.0 (61) +// access flags 0x21 +public class src/Gaurav_Loan { + + // compiled from: Gaurav_Loan.java + + // access flags 0x1 + public ()V + L0 + LINENUMBER 6 L0 + ALOAD 0 + INVOKESPECIAL java/lang/Object. ()V + RETURN + L1 + LOCALVARIABLE this Lsrc/Gaurav_Loan; L0 L1 0 + MAXSTACK = 1 + MAXLOCALS = 1 + + // access flags 0x1 + public test()V + @Lorg/junit/Test;() + L0 + LINENUMBER 10 L0 + DCONST_0 + DCONST_0 + DCONST_0 + ICONST_0 + INVOKESTATIC src/Loan.calculateMonthlyPayment (DDI)D + INVOKESTATIC org/junit/jupiter/api/Assertions.assertEquals (DD)V + L1 + LINENUMBER 11 L1 + DCONST_0 + ICONST_0 + DCONST_0 + INVOKESTATIC src/Loan.calculateOverallDebt (ID)D + INVOKESTATIC org/junit/jupiter/api/Assertions.assertEquals (DD)V + L2 + LINENUMBER 13 L2 + LDC 93.22 + LDC 5000.0 + LDC 4.5 + BIPUSH 60 + INVOKESTATIC src/Loan.calculateMonthlyPayment (DDI)D + DCONST_1 + INVOKESTATIC org/junit/jupiter/api/Assertions.assertEquals (DDD)V + L3 + LINENUMBER 14 L3 + LDC 5592.91 + BIPUSH 60 + LDC 93.22 + INVOKESTATIC src/Loan.calculateOverallDebt (ID)D + DCONST_1 + INVOKESTATIC org/junit/jupiter/api/Assertions.assertEquals (DDD)V + L4 + LINENUMBER 16 L4 + LDC 452.27 + LDC 10000.0 + LDC 8.0 + BIPUSH 24 + INVOKESTATIC src/Loan.calculateMonthlyPayment (DDI)D + DCONST_1 + INVOKESTATIC org/junit/jupiter/api/Assertions.assertEquals (DDD)V + L5 + LINENUMBER 17 L5 + LDC 10854.55 + BIPUSH 24 + LDC 452.27 + INVOKESTATIC src/Loan.calculateOverallDebt (ID)D + DCONST_1 + INVOKESTATIC org/junit/jupiter/api/Assertions.assertEquals (DDD)V + L6 + LINENUMBER 19 L6 + LDC 29.1 + LDC 1000.45 + LDC 3.02 + BIPUSH 36 + INVOKESTATIC src/Loan.calculateMonthlyPayment (DDI)D + DCONST_1 + INVOKESTATIC org/junit/jupiter/api/Assertions.assertEquals (DDD)V + L7 + LINENUMBER 20 L7 + LDC 1047.26 + BIPUSH 36 + LDC 29.1 + INVOKESTATIC src/Loan.calculateOverallDebt (ID)D + DCONST_1 + POP2 + POP2 + POP2 + L8 + LINENUMBER 22 L8 + RETURN + L9 + LOCALVARIABLE this Lsrc/Gaurav_Loan; L0 L9 0 + MAXSTACK = 7 + MAXLOCALS = 1 +} + diff --git a/pitReports/export/src/Gaurav_Loan/src.Gaurav_Loan.txt b/pitReports/export/src/Gaurav_Loan/src.Gaurav_Loan.txt index 45219be..501622a 100644 --- a/pitReports/export/src/Gaurav_Loan/src.Gaurav_Loan.txt +++ b/pitReports/export/src/Gaurav_Loan/src.Gaurav_Loan.txt @@ -7,7 +7,7 @@ public class src/Gaurav_Loan { // access flags 0x1 public ()V L0 - LINENUMBER 7 L0 + LINENUMBER 6 L0 ALOAD 0 INVOKESPECIAL java/lang/Object. ()V RETURN @@ -20,27 +20,77 @@ public class src/Gaurav_Loan { public test()V @Lorg/junit/Test;() L0 - LINENUMBER 11 L0 - NEW src/Loan - DUP - INVOKESPECIAL src/Loan. ()V - ASTORE 1 + LINENUMBER 10 L0 + DCONST_0 + DCONST_0 + DCONST_0 + ICONST_0 + INVOKESTATIC src/Loan.calculateMonthlyPayment (DDI)D + INVOKESTATIC org/junit/jupiter/api/Assertions.assertEquals (DD)V L1 - LINENUMBER 12 L1 + LINENUMBER 11 L1 DCONST_0 - ALOAD 1 - POP + ICONST_0 DCONST_0 - DCONST_0 - INVOKESTATIC src/Loan.sum (DD)Ljava/lang/Double; - INVOKESTATIC org/junit/jupiter/api/Assertions.assertEquals (DLjava/lang/Double;)V + INVOKESTATIC src/Loan.calculateOverallDebt (ID)D + INVOKESTATIC org/junit/jupiter/api/Assertions.assertEquals (DD)V L2 LINENUMBER 13 L2 - RETURN + LDC 93.22 + LDC 5000.0 + LDC 4.5 + BIPUSH 60 + INVOKESTATIC src/Loan.calculateMonthlyPayment (DDI)D + DCONST_1 + INVOKESTATIC org/junit/jupiter/api/Assertions.assertEquals (DDD)V L3 - LOCALVARIABLE this Lsrc/Gaurav_Loan; L0 L3 0 - LOCALVARIABLE mc Lsrc/Loan; L1 L3 1 - MAXSTACK = 6 - MAXLOCALS = 2 + LINENUMBER 14 L3 + LDC 5592.91 + BIPUSH 60 + LDC 93.22 + INVOKESTATIC src/Loan.calculateOverallDebt (ID)D + DCONST_1 + INVOKESTATIC org/junit/jupiter/api/Assertions.assertEquals (DDD)V + L4 + LINENUMBER 16 L4 + LDC 452.27 + LDC 10000.0 + LDC 8.0 + BIPUSH 24 + INVOKESTATIC src/Loan.calculateMonthlyPayment (DDI)D + DCONST_1 + INVOKESTATIC org/junit/jupiter/api/Assertions.assertEquals (DDD)V + L5 + LINENUMBER 17 L5 + LDC 10854.55 + BIPUSH 24 + LDC 452.27 + INVOKESTATIC src/Loan.calculateOverallDebt (ID)D + DCONST_1 + INVOKESTATIC org/junit/jupiter/api/Assertions.assertEquals (DDD)V + L6 + LINENUMBER 19 L6 + LDC 29.1 + LDC 1000.45 + LDC 3.02 + BIPUSH 36 + INVOKESTATIC src/Loan.calculateMonthlyPayment (DDI)D + DCONST_1 + INVOKESTATIC org/junit/jupiter/api/Assertions.assertEquals (DDD)V + L7 + LINENUMBER 20 L7 + LDC 1047.26 + BIPUSH 36 + LDC 29.1 + INVOKESTATIC src/Loan.calculateOverallDebt (ID)D + DCONST_1 + INVOKESTATIC org/junit/jupiter/api/Assertions.assertEquals (DDD)V + L8 + LINENUMBER 22 L8 + RETURN + L9 + LOCALVARIABLE this Lsrc/Gaurav_Loan; L0 L9 0 + MAXSTACK = 7 + MAXLOCALS = 1 } diff --git a/pitReports/export/src/Loan/mutants/0/details.txt b/pitReports/export/src/Loan/mutants/0/details.txt index 10a7d42..687f9c1 100644 --- a/pitReports/export/src/Loan/mutants/0/details.txt +++ b/pitReports/export/src/Loan/mutants/0/details.txt @@ -1 +1 @@ -MutationDetails [id=MutationIdentifier [location=Location [clazz=src.Loan, method=sum, methodDesc=(DD)Ljava/lang/Double;], indexes=[5], mutator=org.pitest.mutationtest.engine.gregor.mutators.MathMutator], filename=Loan.java, block=[0], lineNumber=9, description=Replaced double addition with subtraction, testsInOrder=[]] +MutationDetails [id=MutationIdentifier [location=Location [clazz=src.Loan, method=main, methodDesc=([Ljava/lang/String;)V], indexes=[12], mutator=org.pitest.mutationtest.engine.gregor.mutators.VoidMethodCallMutator], filename=Loan.java, block=[1], lineNumber=12, description=removed call to java/io/PrintStream::print, testsInOrder=[]] diff --git a/pitReports/export/src/Loan/mutants/0/src.Loan.class b/pitReports/export/src/Loan/mutants/0/src.Loan.class index 3a791ca..5858b90 100644 Binary files a/pitReports/export/src/Loan/mutants/0/src.Loan.class and b/pitReports/export/src/Loan/mutants/0/src.Loan.class differ diff --git a/pitReports/export/src/Loan/mutants/0/src.Loan.txt b/pitReports/export/src/Loan/mutants/0/src.Loan.txt index 2ca50ad..aaf58a0 100644 --- a/pitReports/export/src/Loan/mutants/0/src.Loan.txt +++ b/pitReports/export/src/Loan/mutants/0/src.Loan.txt @@ -3,70 +3,200 @@ public class src/Loan { // compiled from: Loan.java + // access flags 0x19 + public final static INNERCLASS java/lang/invoke/MethodHandles$Lookup java/lang/invoke/MethodHandles Lookup // access flags 0x1 public ()V L0 - LINENUMBER 5 L0 + LINENUMBER 4 L0 ALOAD 0 INVOKESPECIAL java/lang/Object. ()V RETURN - L1 - LOCALVARIABLE this Lsrc/Loan; L0 L1 0 MAXSTACK = 1 MAXLOCALS = 1 - // access flags 0x9 - public static sum(DD)Ljava/lang/Double; - L0 - LINENUMBER 9 L0 - DLOAD 0 - DLOAD 2 - DSUB - INVOKESTATIC java/lang/Double.valueOf (D)Ljava/lang/Double; - ARETURN - L1 - LOCALVARIABLE a D L0 L1 0 - LOCALVARIABLE b D L0 L1 2 - MAXSTACK = 4 - MAXLOCALS = 4 - // access flags 0x9 public static main([Ljava/lang/String;)V L0 - LINENUMBER 14 L0 - GETSTATIC java/lang/System.out : Ljava/io/PrintStream; - LDC "Hello world" - INVOKEVIRTUAL java/io/PrintStream.println (Ljava/lang/String;)V + LINENUMBER 8 L0 + NEW java/util/Scanner + DUP + GETSTATIC java/lang/System.in : Ljava/io/InputStream; + INVOKESPECIAL java/util/Scanner. (Ljava/io/InputStream;)V + ASTORE 1 L1 - LINENUMBER 15 L1 - LDC 14.0 - DSTORE 1 + LINENUMBER 12 L1 + GETSTATIC java/lang/System.out : Ljava/io/PrintStream; + LDC "Enter Debt value in Euros : " + POP + POP L2 - LINENUMBER 16 L2 - LDC 5.0 + LINENUMBER 13 L2 + ALOAD 1 + INVOKEVIRTUAL java/util/Scanner.nextDouble ()D + DSTORE 2 + L3 + LINENUMBER 15 L3 + GETSTATIC java/lang/System.out : Ljava/io/PrintStream; + LDC "Enter Interest rate in Percentage : " + INVOKEVIRTUAL java/io/PrintStream.print (Ljava/lang/String;)V + L4 + LINENUMBER 16 L4 + ALOAD 1 + INVOKEVIRTUAL java/util/Scanner.nextDouble ()D + DSTORE 4 + L5 + LINENUMBER 18 L5 + GETSTATIC java/lang/System.out : Ljava/io/PrintStream; + LDC "Enter Payback Duration in months : " + INVOKEVIRTUAL java/io/PrintStream.print (Ljava/lang/String;)V + L6 + LINENUMBER 19 L6 + ALOAD 1 + INVOKEVIRTUAL java/util/Scanner.nextInt ()I + ISTORE 6 + L7 + LINENUMBER 22 L7 + ALOAD 1 + INVOKEVIRTUAL java/util/Scanner.close ()V + L8 + LINENUMBER 25 L8 + DLOAD 2 + DLOAD 4 + ILOAD 6 + INVOKESTATIC src/Loan.calculateMonthlyPayment (DDI)D + DSTORE 7 + L9 + LINENUMBER 28 L9 + ILOAD 6 + DLOAD 7 + INVOKESTATIC src/Loan.calculateOverallDebt (ID)D + DSTORE 9 + L10 + LINENUMBER 31 L10 + GETSTATIC java/lang/System.out : Ljava/io/PrintStream; + LDC "-------------------------------------------------\n" + INVOKEVIRTUAL java/io/PrintStream.print (Ljava/lang/String;)V + L11 + LINENUMBER 32 L11 + GETSTATIC java/lang/System.out : Ljava/io/PrintStream; + DLOAD 7 + INVOKEDYNAMIC makeConcatWithConstants(D)Ljava/lang/String; [ + // handle kind 0x6 : INVOKESTATIC + java/lang/invoke/StringConcatFactory.makeConcatWithConstants(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/invoke/CallSite; + // arguments: + "Monthly Payment: \u0001 euros" + ] + INVOKEVIRTUAL java/io/PrintStream.println (Ljava/lang/String;)V + L12 + LINENUMBER 33 L12 + GETSTATIC java/lang/System.out : Ljava/io/PrintStream; + ILOAD 6 + INVOKEDYNAMIC makeConcatWithConstants(I)Ljava/lang/String; [ + // handle kind 0x6 : INVOKESTATIC + java/lang/invoke/StringConcatFactory.makeConcatWithConstants(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/invoke/CallSite; + // arguments: + "Number of Rates: \u0001" + ] + INVOKEVIRTUAL java/io/PrintStream.println (Ljava/lang/String;)V + L13 + LINENUMBER 34 L13 + GETSTATIC java/lang/System.out : Ljava/io/PrintStream; + ILOAD 6 + DLOAD 9 + INVOKEDYNAMIC makeConcatWithConstants(ID)Ljava/lang/String; [ + // handle kind 0x6 : INVOKESTATIC + java/lang/invoke/StringConcatFactory.makeConcatWithConstants(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/invoke/CallSite; + // arguments: + "Overall Debt at the end of \u0001 months: \u0001 euros" + ] + INVOKEVIRTUAL java/io/PrintStream.println (Ljava/lang/String;)V + L14 + LINENUMBER 35 L14 + RETURN + MAXSTACK = 5 + MAXLOCALS = 11 + + // access flags 0x9 + public static calculateMonthlyPayment(DDI)D + L0 + LINENUMBER 40 L0 + DLOAD 0 + DCONST_0 + DCMPG + IFLE L1 + DLOAD 2 + DCONST_0 + DCMPG + IFLE L1 + ILOAD 4 + IFGT L2 + L1 + LINENUMBER 42 L1 + FRAME FULL [D D I] [] + DCONST_0 + DRETURN + L2 + LINENUMBER 46 L2 + FRAME FULL [D D I] [] + DLOAD 2 + LDC 100.0 + DDIV + LDC 12.0 + DDIV + DSTORE 5 + L3 + LINENUMBER 47 L3 + DLOAD 5 + DLOAD 0 + DMUL + DCONST_1 + DCONST_1 + DLOAD 5 + DADD + ILOAD 4 + INEG + I2D + INVOKESTATIC java/lang/Math.pow (DD)D + DSUB + DDIV + DSTORE 7 + L4 + LINENUMBER 48 L4 + DLOAD 7 + DRETURN + MAXSTACK = 8 + MAXLOCALS = 9 + + // access flags 0x9 + public static calculateOverallDebt(ID)D + L0 + LINENUMBER 55 L0 + ILOAD 0 + IFLE L1 + DLOAD 1 + DCONST_0 + DCMPG + IFGT L2 + L1 + LINENUMBER 57 L1 + FRAME FULL [I D] [] + DCONST_0 + DRETURN + L2 + LINENUMBER 61 L2 + FRAME FULL [I D] [] + DLOAD 1 + ILOAD 0 + I2D + DMUL DSTORE 3 L3 - LINENUMBER 18 L3 - DLOAD 1 + LINENUMBER 62 L3 DLOAD 3 - INVOKESTATIC src/Loan.sum (DD)Ljava/lang/Double; - INVOKEVIRTUAL java/lang/Double.doubleValue ()D - DSTORE 5 - L4 - LINENUMBER 19 L4 - GETSTATIC java/lang/System.out : Ljava/io/PrintStream; - DLOAD 5 - INVOKEVIRTUAL java/io/PrintStream.println (D)V - L5 - LINENUMBER 20 L5 - RETURN - L6 - LOCALVARIABLE args [Ljava/lang/String; L0 L6 0 - LOCALVARIABLE a D L2 L6 1 - LOCALVARIABLE b D L3 L6 3 - LOCALVARIABLE answer D L4 L6 5 + DRETURN MAXSTACK = 4 - MAXLOCALS = 7 + MAXLOCALS = 5 } diff --git a/pitReports/export/src/Loan/mutants/1/details.txt b/pitReports/export/src/Loan/mutants/1/details.txt index c1be4fb..4b93f12 100644 --- a/pitReports/export/src/Loan/mutants/1/details.txt +++ b/pitReports/export/src/Loan/mutants/1/details.txt @@ -1 +1 @@ -MutationDetails [id=MutationIdentifier [location=Location [clazz=src.Loan, method=sum, methodDesc=(DD)Ljava/lang/Double;], indexes=[7], mutator=org.pitest.mutationtest.engine.gregor.mutators.returns.EmptyObjectReturnValsMutator], filename=Loan.java, block=[1], lineNumber=9, description=replaced Double return value with 0 for src/Loan::sum, testsInOrder=[]] +MutationDetails [id=MutationIdentifier [location=Location [clazz=src.Loan, method=main, methodDesc=([Ljava/lang/String;)V], indexes=[22], mutator=org.pitest.mutationtest.engine.gregor.mutators.VoidMethodCallMutator], filename=Loan.java, block=[3], lineNumber=15, description=removed call to java/io/PrintStream::print, testsInOrder=[]] diff --git a/pitReports/export/src/Loan/mutants/1/src.Loan.class b/pitReports/export/src/Loan/mutants/1/src.Loan.class index 3d30b1b..cc4cfe8 100644 Binary files a/pitReports/export/src/Loan/mutants/1/src.Loan.class and b/pitReports/export/src/Loan/mutants/1/src.Loan.class differ diff --git a/pitReports/export/src/Loan/mutants/1/src.Loan.txt b/pitReports/export/src/Loan/mutants/1/src.Loan.txt index e611536..d16883f 100644 --- a/pitReports/export/src/Loan/mutants/1/src.Loan.txt +++ b/pitReports/export/src/Loan/mutants/1/src.Loan.txt @@ -3,73 +3,200 @@ public class src/Loan { // compiled from: Loan.java + // access flags 0x19 + public final static INNERCLASS java/lang/invoke/MethodHandles$Lookup java/lang/invoke/MethodHandles Lookup // access flags 0x1 public ()V L0 - LINENUMBER 5 L0 + LINENUMBER 4 L0 ALOAD 0 INVOKESPECIAL java/lang/Object. ()V RETURN - L1 - LOCALVARIABLE this Lsrc/Loan; L0 L1 0 MAXSTACK = 1 MAXLOCALS = 1 - // access flags 0x9 - public static sum(DD)Ljava/lang/Double; - L0 - LINENUMBER 9 L0 - DLOAD 0 - DLOAD 2 - DADD - INVOKESTATIC java/lang/Double.valueOf (D)Ljava/lang/Double; - POP - DCONST_0 - INVOKESTATIC java/lang/Double.valueOf (D)Ljava/lang/Double; - ARETURN - L1 - LOCALVARIABLE a D L0 L1 0 - LOCALVARIABLE b D L0 L1 2 - MAXSTACK = 4 - MAXLOCALS = 4 - // access flags 0x9 public static main([Ljava/lang/String;)V L0 - LINENUMBER 14 L0 - GETSTATIC java/lang/System.out : Ljava/io/PrintStream; - LDC "Hello world" - INVOKEVIRTUAL java/io/PrintStream.println (Ljava/lang/String;)V + LINENUMBER 8 L0 + NEW java/util/Scanner + DUP + GETSTATIC java/lang/System.in : Ljava/io/InputStream; + INVOKESPECIAL java/util/Scanner. (Ljava/io/InputStream;)V + ASTORE 1 L1 - LINENUMBER 15 L1 - LDC 14.0 - DSTORE 1 + LINENUMBER 12 L1 + GETSTATIC java/lang/System.out : Ljava/io/PrintStream; + LDC "Enter Debt value in Euros : " + INVOKEVIRTUAL java/io/PrintStream.print (Ljava/lang/String;)V L2 - LINENUMBER 16 L2 - LDC 5.0 + LINENUMBER 13 L2 + ALOAD 1 + INVOKEVIRTUAL java/util/Scanner.nextDouble ()D + DSTORE 2 + L3 + LINENUMBER 15 L3 + GETSTATIC java/lang/System.out : Ljava/io/PrintStream; + LDC "Enter Interest rate in Percentage : " + POP + POP + L4 + LINENUMBER 16 L4 + ALOAD 1 + INVOKEVIRTUAL java/util/Scanner.nextDouble ()D + DSTORE 4 + L5 + LINENUMBER 18 L5 + GETSTATIC java/lang/System.out : Ljava/io/PrintStream; + LDC "Enter Payback Duration in months : " + INVOKEVIRTUAL java/io/PrintStream.print (Ljava/lang/String;)V + L6 + LINENUMBER 19 L6 + ALOAD 1 + INVOKEVIRTUAL java/util/Scanner.nextInt ()I + ISTORE 6 + L7 + LINENUMBER 22 L7 + ALOAD 1 + INVOKEVIRTUAL java/util/Scanner.close ()V + L8 + LINENUMBER 25 L8 + DLOAD 2 + DLOAD 4 + ILOAD 6 + INVOKESTATIC src/Loan.calculateMonthlyPayment (DDI)D + DSTORE 7 + L9 + LINENUMBER 28 L9 + ILOAD 6 + DLOAD 7 + INVOKESTATIC src/Loan.calculateOverallDebt (ID)D + DSTORE 9 + L10 + LINENUMBER 31 L10 + GETSTATIC java/lang/System.out : Ljava/io/PrintStream; + LDC "-------------------------------------------------\n" + INVOKEVIRTUAL java/io/PrintStream.print (Ljava/lang/String;)V + L11 + LINENUMBER 32 L11 + GETSTATIC java/lang/System.out : Ljava/io/PrintStream; + DLOAD 7 + INVOKEDYNAMIC makeConcatWithConstants(D)Ljava/lang/String; [ + // handle kind 0x6 : INVOKESTATIC + java/lang/invoke/StringConcatFactory.makeConcatWithConstants(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/invoke/CallSite; + // arguments: + "Monthly Payment: \u0001 euros" + ] + INVOKEVIRTUAL java/io/PrintStream.println (Ljava/lang/String;)V + L12 + LINENUMBER 33 L12 + GETSTATIC java/lang/System.out : Ljava/io/PrintStream; + ILOAD 6 + INVOKEDYNAMIC makeConcatWithConstants(I)Ljava/lang/String; [ + // handle kind 0x6 : INVOKESTATIC + java/lang/invoke/StringConcatFactory.makeConcatWithConstants(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/invoke/CallSite; + // arguments: + "Number of Rates: \u0001" + ] + INVOKEVIRTUAL java/io/PrintStream.println (Ljava/lang/String;)V + L13 + LINENUMBER 34 L13 + GETSTATIC java/lang/System.out : Ljava/io/PrintStream; + ILOAD 6 + DLOAD 9 + INVOKEDYNAMIC makeConcatWithConstants(ID)Ljava/lang/String; [ + // handle kind 0x6 : INVOKESTATIC + java/lang/invoke/StringConcatFactory.makeConcatWithConstants(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/invoke/CallSite; + // arguments: + "Overall Debt at the end of \u0001 months: \u0001 euros" + ] + INVOKEVIRTUAL java/io/PrintStream.println (Ljava/lang/String;)V + L14 + LINENUMBER 35 L14 + RETURN + MAXSTACK = 5 + MAXLOCALS = 11 + + // access flags 0x9 + public static calculateMonthlyPayment(DDI)D + L0 + LINENUMBER 40 L0 + DLOAD 0 + DCONST_0 + DCMPG + IFLE L1 + DLOAD 2 + DCONST_0 + DCMPG + IFLE L1 + ILOAD 4 + IFGT L2 + L1 + LINENUMBER 42 L1 + FRAME FULL [D D I] [] + DCONST_0 + DRETURN + L2 + LINENUMBER 46 L2 + FRAME FULL [D D I] [] + DLOAD 2 + LDC 100.0 + DDIV + LDC 12.0 + DDIV + DSTORE 5 + L3 + LINENUMBER 47 L3 + DLOAD 5 + DLOAD 0 + DMUL + DCONST_1 + DCONST_1 + DLOAD 5 + DADD + ILOAD 4 + INEG + I2D + INVOKESTATIC java/lang/Math.pow (DD)D + DSUB + DDIV + DSTORE 7 + L4 + LINENUMBER 48 L4 + DLOAD 7 + DRETURN + MAXSTACK = 8 + MAXLOCALS = 9 + + // access flags 0x9 + public static calculateOverallDebt(ID)D + L0 + LINENUMBER 55 L0 + ILOAD 0 + IFLE L1 + DLOAD 1 + DCONST_0 + DCMPG + IFGT L2 + L1 + LINENUMBER 57 L1 + FRAME FULL [I D] [] + DCONST_0 + DRETURN + L2 + LINENUMBER 61 L2 + FRAME FULL [I D] [] + DLOAD 1 + ILOAD 0 + I2D + DMUL DSTORE 3 L3 - LINENUMBER 18 L3 - DLOAD 1 + LINENUMBER 62 L3 DLOAD 3 - INVOKESTATIC src/Loan.sum (DD)Ljava/lang/Double; - INVOKEVIRTUAL java/lang/Double.doubleValue ()D - DSTORE 5 - L4 - LINENUMBER 19 L4 - GETSTATIC java/lang/System.out : Ljava/io/PrintStream; - DLOAD 5 - INVOKEVIRTUAL java/io/PrintStream.println (D)V - L5 - LINENUMBER 20 L5 - RETURN - L6 - LOCALVARIABLE args [Ljava/lang/String; L0 L6 0 - LOCALVARIABLE a D L2 L6 1 - LOCALVARIABLE b D L3 L6 3 - LOCALVARIABLE answer D L4 L6 5 + DRETURN MAXSTACK = 4 - MAXLOCALS = 7 + MAXLOCALS = 5 } diff --git a/pitReports/export/src/Loan/mutants/10/details.txt b/pitReports/export/src/Loan/mutants/10/details.txt new file mode 100644 index 0000000..57787f4 --- /dev/null +++ b/pitReports/export/src/Loan/mutants/10/details.txt @@ -0,0 +1 @@ +MutationDetails [id=MutationIdentifier [location=Location [clazz=src.Loan, method=calculateMonthlyPayment, methodDesc=(DDI)D], indexes=[10], mutator=org.pitest.mutationtest.engine.gregor.mutators.NegateConditionalsMutator], filename=Loan.java, block=[1], lineNumber=40, description=negated conditional, testsInOrder=[]] diff --git a/pitReports/export/src/Loan/mutants/10/src.Loan.class b/pitReports/export/src/Loan/mutants/10/src.Loan.class new file mode 100644 index 0000000..419867e Binary files /dev/null and b/pitReports/export/src/Loan/mutants/10/src.Loan.class differ diff --git a/pitReports/export/src/Loan/mutants/10/src.Loan.txt b/pitReports/export/src/Loan/mutants/10/src.Loan.txt new file mode 100644 index 0000000..d5275e9 --- /dev/null +++ b/pitReports/export/src/Loan/mutants/10/src.Loan.txt @@ -0,0 +1,201 @@ +// class version 61.0 (61) +// access flags 0x21 +public class src/Loan { + + // compiled from: Loan.java + // access flags 0x19 + public final static INNERCLASS java/lang/invoke/MethodHandles$Lookup java/lang/invoke/MethodHandles Lookup + + // access flags 0x1 + public ()V + L0 + LINENUMBER 4 L0 + ALOAD 0 + INVOKESPECIAL java/lang/Object. ()V + RETURN + MAXSTACK = 1 + MAXLOCALS = 1 + + // access flags 0x9 + public static main([Ljava/lang/String;)V + L0 + LINENUMBER 8 L0 + NEW java/util/Scanner + DUP + GETSTATIC java/lang/System.in : Ljava/io/InputStream; + INVOKESPECIAL java/util/Scanner. (Ljava/io/InputStream;)V + ASTORE 1 + L1 + LINENUMBER 12 L1 + GETSTATIC java/lang/System.out : Ljava/io/PrintStream; + LDC "Enter Debt value in Euros : " + INVOKEVIRTUAL java/io/PrintStream.print (Ljava/lang/String;)V + L2 + LINENUMBER 13 L2 + ALOAD 1 + INVOKEVIRTUAL java/util/Scanner.nextDouble ()D + DSTORE 2 + L3 + LINENUMBER 15 L3 + GETSTATIC java/lang/System.out : Ljava/io/PrintStream; + LDC "Enter Interest rate in Percentage : " + INVOKEVIRTUAL java/io/PrintStream.print (Ljava/lang/String;)V + L4 + LINENUMBER 16 L4 + ALOAD 1 + INVOKEVIRTUAL java/util/Scanner.nextDouble ()D + DSTORE 4 + L5 + LINENUMBER 18 L5 + GETSTATIC java/lang/System.out : Ljava/io/PrintStream; + LDC "Enter Payback Duration in months : " + INVOKEVIRTUAL java/io/PrintStream.print (Ljava/lang/String;)V + L6 + LINENUMBER 19 L6 + ALOAD 1 + INVOKEVIRTUAL java/util/Scanner.nextInt ()I + ISTORE 6 + L7 + LINENUMBER 22 L7 + ALOAD 1 + INVOKEVIRTUAL java/util/Scanner.close ()V + L8 + LINENUMBER 25 L8 + DLOAD 2 + DLOAD 4 + ILOAD 6 + INVOKESTATIC src/Loan.calculateMonthlyPayment (DDI)D + DSTORE 7 + L9 + LINENUMBER 28 L9 + ILOAD 6 + DLOAD 7 + INVOKESTATIC src/Loan.calculateOverallDebt (ID)D + DSTORE 9 + L10 + LINENUMBER 31 L10 + GETSTATIC java/lang/System.out : Ljava/io/PrintStream; + LDC "-------------------------------------------------\n" + INVOKEVIRTUAL java/io/PrintStream.print (Ljava/lang/String;)V + L11 + LINENUMBER 32 L11 + GETSTATIC java/lang/System.out : Ljava/io/PrintStream; + DLOAD 7 + INVOKEDYNAMIC makeConcatWithConstants(D)Ljava/lang/String; [ + // handle kind 0x6 : INVOKESTATIC + java/lang/invoke/StringConcatFactory.makeConcatWithConstants(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/invoke/CallSite; + // arguments: + "Monthly Payment: \u0001 euros" + ] + INVOKEVIRTUAL java/io/PrintStream.println (Ljava/lang/String;)V + L12 + LINENUMBER 33 L12 + GETSTATIC java/lang/System.out : Ljava/io/PrintStream; + ILOAD 6 + INVOKEDYNAMIC makeConcatWithConstants(I)Ljava/lang/String; [ + // handle kind 0x6 : INVOKESTATIC + java/lang/invoke/StringConcatFactory.makeConcatWithConstants(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/invoke/CallSite; + // arguments: + "Number of Rates: \u0001" + ] + INVOKEVIRTUAL java/io/PrintStream.println (Ljava/lang/String;)V + L13 + LINENUMBER 34 L13 + GETSTATIC java/lang/System.out : Ljava/io/PrintStream; + ILOAD 6 + DLOAD 9 + INVOKEDYNAMIC makeConcatWithConstants(ID)Ljava/lang/String; [ + // handle kind 0x6 : INVOKESTATIC + java/lang/invoke/StringConcatFactory.makeConcatWithConstants(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/invoke/CallSite; + // arguments: + "Overall Debt at the end of \u0001 months: \u0001 euros" + ] + INVOKEVIRTUAL java/io/PrintStream.println (Ljava/lang/String;)V + L14 + LINENUMBER 35 L14 + RETURN + MAXSTACK = 5 + MAXLOCALS = 11 + + // access flags 0x9 + public static calculateMonthlyPayment(DDI)D + L0 + LINENUMBER 40 L0 + DLOAD 0 + DCONST_0 + DCMPG + IFLE L1 + DLOAD 2 + DCONST_0 + DCMPG + IFGT L1 + ILOAD 4 + IFGT L2 + L1 + LINENUMBER 42 L1 + FRAME FULL [D D I] [] + DCONST_0 + DRETURN + L2 + LINENUMBER 46 L2 + FRAME FULL [D D I] [] + DLOAD 2 + LDC 100.0 + DDIV + LDC 12.0 + DDIV + DSTORE 5 + L3 + LINENUMBER 47 L3 + DLOAD 5 + DLOAD 0 + DMUL + DCONST_1 + DCONST_1 + DLOAD 5 + DADD + ILOAD 4 + INEG + I2D + INVOKESTATIC java/lang/Math.pow (DD)D + DSUB + DDIV + DSTORE 7 + L4 + LINENUMBER 48 L4 + DLOAD 7 + DRETURN + MAXSTACK = 8 + MAXLOCALS = 9 + + // access flags 0x9 + public static calculateOverallDebt(ID)D + L0 + LINENUMBER 55 L0 + ILOAD 0 + IFLE L1 + DLOAD 1 + DCONST_0 + DCMPG + IFGT L2 + L1 + LINENUMBER 57 L1 + FRAME FULL [I D] [] + DCONST_0 + DRETURN + L2 + LINENUMBER 61 L2 + FRAME FULL [I D] [] + DLOAD 1 + ILOAD 0 + I2D + DMUL + DSTORE 3 + L3 + LINENUMBER 62 L3 + DLOAD 3 + DRETURN + MAXSTACK = 4 + MAXLOCALS = 5 +} + diff --git a/pitReports/export/src/Loan/mutants/11/details.txt b/pitReports/export/src/Loan/mutants/11/details.txt new file mode 100644 index 0000000..8c91fef --- /dev/null +++ b/pitReports/export/src/Loan/mutants/11/details.txt @@ -0,0 +1 @@ +MutationDetails [id=MutationIdentifier [location=Location [clazz=src.Loan, method=calculateMonthlyPayment, methodDesc=(DDI)D], indexes=[10], mutator=org.pitest.mutationtest.engine.gregor.mutators.ConditionalsBoundaryMutator], filename=Loan.java, block=[1], lineNumber=40, description=changed conditional boundary, testsInOrder=[]] diff --git a/pitReports/export/src/Loan/mutants/11/src.Loan.class b/pitReports/export/src/Loan/mutants/11/src.Loan.class new file mode 100644 index 0000000..efe7599 Binary files /dev/null and b/pitReports/export/src/Loan/mutants/11/src.Loan.class differ diff --git a/pitReports/export/src/Loan/mutants/11/src.Loan.txt b/pitReports/export/src/Loan/mutants/11/src.Loan.txt new file mode 100644 index 0000000..6aa551f --- /dev/null +++ b/pitReports/export/src/Loan/mutants/11/src.Loan.txt @@ -0,0 +1,201 @@ +// class version 61.0 (61) +// access flags 0x21 +public class src/Loan { + + // compiled from: Loan.java + // access flags 0x19 + public final static INNERCLASS java/lang/invoke/MethodHandles$Lookup java/lang/invoke/MethodHandles Lookup + + // access flags 0x1 + public ()V + L0 + LINENUMBER 4 L0 + ALOAD 0 + INVOKESPECIAL java/lang/Object. ()V + RETURN + MAXSTACK = 1 + MAXLOCALS = 1 + + // access flags 0x9 + public static main([Ljava/lang/String;)V + L0 + LINENUMBER 8 L0 + NEW java/util/Scanner + DUP + GETSTATIC java/lang/System.in : Ljava/io/InputStream; + INVOKESPECIAL java/util/Scanner. (Ljava/io/InputStream;)V + ASTORE 1 + L1 + LINENUMBER 12 L1 + GETSTATIC java/lang/System.out : Ljava/io/PrintStream; + LDC "Enter Debt value in Euros : " + INVOKEVIRTUAL java/io/PrintStream.print (Ljava/lang/String;)V + L2 + LINENUMBER 13 L2 + ALOAD 1 + INVOKEVIRTUAL java/util/Scanner.nextDouble ()D + DSTORE 2 + L3 + LINENUMBER 15 L3 + GETSTATIC java/lang/System.out : Ljava/io/PrintStream; + LDC "Enter Interest rate in Percentage : " + INVOKEVIRTUAL java/io/PrintStream.print (Ljava/lang/String;)V + L4 + LINENUMBER 16 L4 + ALOAD 1 + INVOKEVIRTUAL java/util/Scanner.nextDouble ()D + DSTORE 4 + L5 + LINENUMBER 18 L5 + GETSTATIC java/lang/System.out : Ljava/io/PrintStream; + LDC "Enter Payback Duration in months : " + INVOKEVIRTUAL java/io/PrintStream.print (Ljava/lang/String;)V + L6 + LINENUMBER 19 L6 + ALOAD 1 + INVOKEVIRTUAL java/util/Scanner.nextInt ()I + ISTORE 6 + L7 + LINENUMBER 22 L7 + ALOAD 1 + INVOKEVIRTUAL java/util/Scanner.close ()V + L8 + LINENUMBER 25 L8 + DLOAD 2 + DLOAD 4 + ILOAD 6 + INVOKESTATIC src/Loan.calculateMonthlyPayment (DDI)D + DSTORE 7 + L9 + LINENUMBER 28 L9 + ILOAD 6 + DLOAD 7 + INVOKESTATIC src/Loan.calculateOverallDebt (ID)D + DSTORE 9 + L10 + LINENUMBER 31 L10 + GETSTATIC java/lang/System.out : Ljava/io/PrintStream; + LDC "-------------------------------------------------\n" + INVOKEVIRTUAL java/io/PrintStream.print (Ljava/lang/String;)V + L11 + LINENUMBER 32 L11 + GETSTATIC java/lang/System.out : Ljava/io/PrintStream; + DLOAD 7 + INVOKEDYNAMIC makeConcatWithConstants(D)Ljava/lang/String; [ + // handle kind 0x6 : INVOKESTATIC + java/lang/invoke/StringConcatFactory.makeConcatWithConstants(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/invoke/CallSite; + // arguments: + "Monthly Payment: \u0001 euros" + ] + INVOKEVIRTUAL java/io/PrintStream.println (Ljava/lang/String;)V + L12 + LINENUMBER 33 L12 + GETSTATIC java/lang/System.out : Ljava/io/PrintStream; + ILOAD 6 + INVOKEDYNAMIC makeConcatWithConstants(I)Ljava/lang/String; [ + // handle kind 0x6 : INVOKESTATIC + java/lang/invoke/StringConcatFactory.makeConcatWithConstants(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/invoke/CallSite; + // arguments: + "Number of Rates: \u0001" + ] + INVOKEVIRTUAL java/io/PrintStream.println (Ljava/lang/String;)V + L13 + LINENUMBER 34 L13 + GETSTATIC java/lang/System.out : Ljava/io/PrintStream; + ILOAD 6 + DLOAD 9 + INVOKEDYNAMIC makeConcatWithConstants(ID)Ljava/lang/String; [ + // handle kind 0x6 : INVOKESTATIC + java/lang/invoke/StringConcatFactory.makeConcatWithConstants(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/invoke/CallSite; + // arguments: + "Overall Debt at the end of \u0001 months: \u0001 euros" + ] + INVOKEVIRTUAL java/io/PrintStream.println (Ljava/lang/String;)V + L14 + LINENUMBER 35 L14 + RETURN + MAXSTACK = 5 + MAXLOCALS = 11 + + // access flags 0x9 + public static calculateMonthlyPayment(DDI)D + L0 + LINENUMBER 40 L0 + DLOAD 0 + DCONST_0 + DCMPG + IFLE L1 + DLOAD 2 + DCONST_0 + DCMPG + IFLT L1 + ILOAD 4 + IFGT L2 + L1 + LINENUMBER 42 L1 + FRAME FULL [D D I] [] + DCONST_0 + DRETURN + L2 + LINENUMBER 46 L2 + FRAME FULL [D D I] [] + DLOAD 2 + LDC 100.0 + DDIV + LDC 12.0 + DDIV + DSTORE 5 + L3 + LINENUMBER 47 L3 + DLOAD 5 + DLOAD 0 + DMUL + DCONST_1 + DCONST_1 + DLOAD 5 + DADD + ILOAD 4 + INEG + I2D + INVOKESTATIC java/lang/Math.pow (DD)D + DSUB + DDIV + DSTORE 7 + L4 + LINENUMBER 48 L4 + DLOAD 7 + DRETURN + MAXSTACK = 8 + MAXLOCALS = 9 + + // access flags 0x9 + public static calculateOverallDebt(ID)D + L0 + LINENUMBER 55 L0 + ILOAD 0 + IFLE L1 + DLOAD 1 + DCONST_0 + DCMPG + IFGT L2 + L1 + LINENUMBER 57 L1 + FRAME FULL [I D] [] + DCONST_0 + DRETURN + L2 + LINENUMBER 61 L2 + FRAME FULL [I D] [] + DLOAD 1 + ILOAD 0 + I2D + DMUL + DSTORE 3 + L3 + LINENUMBER 62 L3 + DLOAD 3 + DRETURN + MAXSTACK = 4 + MAXLOCALS = 5 +} + diff --git a/pitReports/export/src/Loan/mutants/12/details.txt b/pitReports/export/src/Loan/mutants/12/details.txt new file mode 100644 index 0000000..f538bc1 --- /dev/null +++ b/pitReports/export/src/Loan/mutants/12/details.txt @@ -0,0 +1 @@ +MutationDetails [id=MutationIdentifier [location=Location [clazz=src.Loan, method=calculateMonthlyPayment, methodDesc=(DDI)D], indexes=[12], mutator=org.pitest.mutationtest.engine.gregor.mutators.NegateConditionalsMutator], filename=Loan.java, block=[2], lineNumber=40, description=negated conditional, testsInOrder=[]] diff --git a/pitReports/export/src/Loan/mutants/12/src.Loan.class b/pitReports/export/src/Loan/mutants/12/src.Loan.class new file mode 100644 index 0000000..d9bc326 Binary files /dev/null and b/pitReports/export/src/Loan/mutants/12/src.Loan.class differ diff --git a/pitReports/export/src/Loan/mutants/12/src.Loan.txt b/pitReports/export/src/Loan/mutants/12/src.Loan.txt new file mode 100644 index 0000000..87657ee --- /dev/null +++ b/pitReports/export/src/Loan/mutants/12/src.Loan.txt @@ -0,0 +1,201 @@ +// class version 61.0 (61) +// access flags 0x21 +public class src/Loan { + + // compiled from: Loan.java + // access flags 0x19 + public final static INNERCLASS java/lang/invoke/MethodHandles$Lookup java/lang/invoke/MethodHandles Lookup + + // access flags 0x1 + public ()V + L0 + LINENUMBER 4 L0 + ALOAD 0 + INVOKESPECIAL java/lang/Object. ()V + RETURN + MAXSTACK = 1 + MAXLOCALS = 1 + + // access flags 0x9 + public static main([Ljava/lang/String;)V + L0 + LINENUMBER 8 L0 + NEW java/util/Scanner + DUP + GETSTATIC java/lang/System.in : Ljava/io/InputStream; + INVOKESPECIAL java/util/Scanner. (Ljava/io/InputStream;)V + ASTORE 1 + L1 + LINENUMBER 12 L1 + GETSTATIC java/lang/System.out : Ljava/io/PrintStream; + LDC "Enter Debt value in Euros : " + INVOKEVIRTUAL java/io/PrintStream.print (Ljava/lang/String;)V + L2 + LINENUMBER 13 L2 + ALOAD 1 + INVOKEVIRTUAL java/util/Scanner.nextDouble ()D + DSTORE 2 + L3 + LINENUMBER 15 L3 + GETSTATIC java/lang/System.out : Ljava/io/PrintStream; + LDC "Enter Interest rate in Percentage : " + INVOKEVIRTUAL java/io/PrintStream.print (Ljava/lang/String;)V + L4 + LINENUMBER 16 L4 + ALOAD 1 + INVOKEVIRTUAL java/util/Scanner.nextDouble ()D + DSTORE 4 + L5 + LINENUMBER 18 L5 + GETSTATIC java/lang/System.out : Ljava/io/PrintStream; + LDC "Enter Payback Duration in months : " + INVOKEVIRTUAL java/io/PrintStream.print (Ljava/lang/String;)V + L6 + LINENUMBER 19 L6 + ALOAD 1 + INVOKEVIRTUAL java/util/Scanner.nextInt ()I + ISTORE 6 + L7 + LINENUMBER 22 L7 + ALOAD 1 + INVOKEVIRTUAL java/util/Scanner.close ()V + L8 + LINENUMBER 25 L8 + DLOAD 2 + DLOAD 4 + ILOAD 6 + INVOKESTATIC src/Loan.calculateMonthlyPayment (DDI)D + DSTORE 7 + L9 + LINENUMBER 28 L9 + ILOAD 6 + DLOAD 7 + INVOKESTATIC src/Loan.calculateOverallDebt (ID)D + DSTORE 9 + L10 + LINENUMBER 31 L10 + GETSTATIC java/lang/System.out : Ljava/io/PrintStream; + LDC "-------------------------------------------------\n" + INVOKEVIRTUAL java/io/PrintStream.print (Ljava/lang/String;)V + L11 + LINENUMBER 32 L11 + GETSTATIC java/lang/System.out : Ljava/io/PrintStream; + DLOAD 7 + INVOKEDYNAMIC makeConcatWithConstants(D)Ljava/lang/String; [ + // handle kind 0x6 : INVOKESTATIC + java/lang/invoke/StringConcatFactory.makeConcatWithConstants(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/invoke/CallSite; + // arguments: + "Monthly Payment: \u0001 euros" + ] + INVOKEVIRTUAL java/io/PrintStream.println (Ljava/lang/String;)V + L12 + LINENUMBER 33 L12 + GETSTATIC java/lang/System.out : Ljava/io/PrintStream; + ILOAD 6 + INVOKEDYNAMIC makeConcatWithConstants(I)Ljava/lang/String; [ + // handle kind 0x6 : INVOKESTATIC + java/lang/invoke/StringConcatFactory.makeConcatWithConstants(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/invoke/CallSite; + // arguments: + "Number of Rates: \u0001" + ] + INVOKEVIRTUAL java/io/PrintStream.println (Ljava/lang/String;)V + L13 + LINENUMBER 34 L13 + GETSTATIC java/lang/System.out : Ljava/io/PrintStream; + ILOAD 6 + DLOAD 9 + INVOKEDYNAMIC makeConcatWithConstants(ID)Ljava/lang/String; [ + // handle kind 0x6 : INVOKESTATIC + java/lang/invoke/StringConcatFactory.makeConcatWithConstants(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/invoke/CallSite; + // arguments: + "Overall Debt at the end of \u0001 months: \u0001 euros" + ] + INVOKEVIRTUAL java/io/PrintStream.println (Ljava/lang/String;)V + L14 + LINENUMBER 35 L14 + RETURN + MAXSTACK = 5 + MAXLOCALS = 11 + + // access flags 0x9 + public static calculateMonthlyPayment(DDI)D + L0 + LINENUMBER 40 L0 + DLOAD 0 + DCONST_0 + DCMPG + IFLE L1 + DLOAD 2 + DCONST_0 + DCMPG + IFLE L1 + ILOAD 4 + IFLE L2 + L1 + LINENUMBER 42 L1 + FRAME FULL [D D I] [] + DCONST_0 + DRETURN + L2 + LINENUMBER 46 L2 + FRAME FULL [D D I] [] + DLOAD 2 + LDC 100.0 + DDIV + LDC 12.0 + DDIV + DSTORE 5 + L3 + LINENUMBER 47 L3 + DLOAD 5 + DLOAD 0 + DMUL + DCONST_1 + DCONST_1 + DLOAD 5 + DADD + ILOAD 4 + INEG + I2D + INVOKESTATIC java/lang/Math.pow (DD)D + DSUB + DDIV + DSTORE 7 + L4 + LINENUMBER 48 L4 + DLOAD 7 + DRETURN + MAXSTACK = 8 + MAXLOCALS = 9 + + // access flags 0x9 + public static calculateOverallDebt(ID)D + L0 + LINENUMBER 55 L0 + ILOAD 0 + IFLE L1 + DLOAD 1 + DCONST_0 + DCMPG + IFGT L2 + L1 + LINENUMBER 57 L1 + FRAME FULL [I D] [] + DCONST_0 + DRETURN + L2 + LINENUMBER 61 L2 + FRAME FULL [I D] [] + DLOAD 1 + ILOAD 0 + I2D + DMUL + DSTORE 3 + L3 + LINENUMBER 62 L3 + DLOAD 3 + DRETURN + MAXSTACK = 4 + MAXLOCALS = 5 +} + diff --git a/pitReports/export/src/Loan/mutants/13/details.txt b/pitReports/export/src/Loan/mutants/13/details.txt new file mode 100644 index 0000000..2b51efd --- /dev/null +++ b/pitReports/export/src/Loan/mutants/13/details.txt @@ -0,0 +1 @@ +MutationDetails [id=MutationIdentifier [location=Location [clazz=src.Loan, method=calculateMonthlyPayment, methodDesc=(DDI)D], indexes=[12], mutator=org.pitest.mutationtest.engine.gregor.mutators.ConditionalsBoundaryMutator], filename=Loan.java, block=[2], lineNumber=40, description=changed conditional boundary, testsInOrder=[]] diff --git a/pitReports/export/src/Loan/mutants/13/src.Loan.class b/pitReports/export/src/Loan/mutants/13/src.Loan.class new file mode 100644 index 0000000..5303a2a Binary files /dev/null and b/pitReports/export/src/Loan/mutants/13/src.Loan.class differ diff --git a/pitReports/export/src/Loan/mutants/13/src.Loan.txt b/pitReports/export/src/Loan/mutants/13/src.Loan.txt new file mode 100644 index 0000000..8e1ac56 --- /dev/null +++ b/pitReports/export/src/Loan/mutants/13/src.Loan.txt @@ -0,0 +1,201 @@ +// class version 61.0 (61) +// access flags 0x21 +public class src/Loan { + + // compiled from: Loan.java + // access flags 0x19 + public final static INNERCLASS java/lang/invoke/MethodHandles$Lookup java/lang/invoke/MethodHandles Lookup + + // access flags 0x1 + public ()V + L0 + LINENUMBER 4 L0 + ALOAD 0 + INVOKESPECIAL java/lang/Object. ()V + RETURN + MAXSTACK = 1 + MAXLOCALS = 1 + + // access flags 0x9 + public static main([Ljava/lang/String;)V + L0 + LINENUMBER 8 L0 + NEW java/util/Scanner + DUP + GETSTATIC java/lang/System.in : Ljava/io/InputStream; + INVOKESPECIAL java/util/Scanner. (Ljava/io/InputStream;)V + ASTORE 1 + L1 + LINENUMBER 12 L1 + GETSTATIC java/lang/System.out : Ljava/io/PrintStream; + LDC "Enter Debt value in Euros : " + INVOKEVIRTUAL java/io/PrintStream.print (Ljava/lang/String;)V + L2 + LINENUMBER 13 L2 + ALOAD 1 + INVOKEVIRTUAL java/util/Scanner.nextDouble ()D + DSTORE 2 + L3 + LINENUMBER 15 L3 + GETSTATIC java/lang/System.out : Ljava/io/PrintStream; + LDC "Enter Interest rate in Percentage : " + INVOKEVIRTUAL java/io/PrintStream.print (Ljava/lang/String;)V + L4 + LINENUMBER 16 L4 + ALOAD 1 + INVOKEVIRTUAL java/util/Scanner.nextDouble ()D + DSTORE 4 + L5 + LINENUMBER 18 L5 + GETSTATIC java/lang/System.out : Ljava/io/PrintStream; + LDC "Enter Payback Duration in months : " + INVOKEVIRTUAL java/io/PrintStream.print (Ljava/lang/String;)V + L6 + LINENUMBER 19 L6 + ALOAD 1 + INVOKEVIRTUAL java/util/Scanner.nextInt ()I + ISTORE 6 + L7 + LINENUMBER 22 L7 + ALOAD 1 + INVOKEVIRTUAL java/util/Scanner.close ()V + L8 + LINENUMBER 25 L8 + DLOAD 2 + DLOAD 4 + ILOAD 6 + INVOKESTATIC src/Loan.calculateMonthlyPayment (DDI)D + DSTORE 7 + L9 + LINENUMBER 28 L9 + ILOAD 6 + DLOAD 7 + INVOKESTATIC src/Loan.calculateOverallDebt (ID)D + DSTORE 9 + L10 + LINENUMBER 31 L10 + GETSTATIC java/lang/System.out : Ljava/io/PrintStream; + LDC "-------------------------------------------------\n" + INVOKEVIRTUAL java/io/PrintStream.print (Ljava/lang/String;)V + L11 + LINENUMBER 32 L11 + GETSTATIC java/lang/System.out : Ljava/io/PrintStream; + DLOAD 7 + INVOKEDYNAMIC makeConcatWithConstants(D)Ljava/lang/String; [ + // handle kind 0x6 : INVOKESTATIC + java/lang/invoke/StringConcatFactory.makeConcatWithConstants(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/invoke/CallSite; + // arguments: + "Monthly Payment: \u0001 euros" + ] + INVOKEVIRTUAL java/io/PrintStream.println (Ljava/lang/String;)V + L12 + LINENUMBER 33 L12 + GETSTATIC java/lang/System.out : Ljava/io/PrintStream; + ILOAD 6 + INVOKEDYNAMIC makeConcatWithConstants(I)Ljava/lang/String; [ + // handle kind 0x6 : INVOKESTATIC + java/lang/invoke/StringConcatFactory.makeConcatWithConstants(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/invoke/CallSite; + // arguments: + "Number of Rates: \u0001" + ] + INVOKEVIRTUAL java/io/PrintStream.println (Ljava/lang/String;)V + L13 + LINENUMBER 34 L13 + GETSTATIC java/lang/System.out : Ljava/io/PrintStream; + ILOAD 6 + DLOAD 9 + INVOKEDYNAMIC makeConcatWithConstants(ID)Ljava/lang/String; [ + // handle kind 0x6 : INVOKESTATIC + java/lang/invoke/StringConcatFactory.makeConcatWithConstants(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/invoke/CallSite; + // arguments: + "Overall Debt at the end of \u0001 months: \u0001 euros" + ] + INVOKEVIRTUAL java/io/PrintStream.println (Ljava/lang/String;)V + L14 + LINENUMBER 35 L14 + RETURN + MAXSTACK = 5 + MAXLOCALS = 11 + + // access flags 0x9 + public static calculateMonthlyPayment(DDI)D + L0 + LINENUMBER 40 L0 + DLOAD 0 + DCONST_0 + DCMPG + IFLE L1 + DLOAD 2 + DCONST_0 + DCMPG + IFLE L1 + ILOAD 4 + IFGE L2 + L1 + LINENUMBER 42 L1 + FRAME FULL [D D I] [] + DCONST_0 + DRETURN + L2 + LINENUMBER 46 L2 + FRAME FULL [D D I] [] + DLOAD 2 + LDC 100.0 + DDIV + LDC 12.0 + DDIV + DSTORE 5 + L3 + LINENUMBER 47 L3 + DLOAD 5 + DLOAD 0 + DMUL + DCONST_1 + DCONST_1 + DLOAD 5 + DADD + ILOAD 4 + INEG + I2D + INVOKESTATIC java/lang/Math.pow (DD)D + DSUB + DDIV + DSTORE 7 + L4 + LINENUMBER 48 L4 + DLOAD 7 + DRETURN + MAXSTACK = 8 + MAXLOCALS = 9 + + // access flags 0x9 + public static calculateOverallDebt(ID)D + L0 + LINENUMBER 55 L0 + ILOAD 0 + IFLE L1 + DLOAD 1 + DCONST_0 + DCMPG + IFGT L2 + L1 + LINENUMBER 57 L1 + FRAME FULL [I D] [] + DCONST_0 + DRETURN + L2 + LINENUMBER 61 L2 + FRAME FULL [I D] [] + DLOAD 1 + ILOAD 0 + I2D + DMUL + DSTORE 3 + L3 + LINENUMBER 62 L3 + DLOAD 3 + DRETURN + MAXSTACK = 4 + MAXLOCALS = 5 +} + diff --git a/pitReports/export/src/Loan/mutants/14/details.txt b/pitReports/export/src/Loan/mutants/14/details.txt new file mode 100644 index 0000000..705f924 --- /dev/null +++ b/pitReports/export/src/Loan/mutants/14/details.txt @@ -0,0 +1 @@ +MutationDetails [id=MutationIdentifier [location=Location [clazz=src.Loan, method=calculateMonthlyPayment, methodDesc=(DDI)D], indexes=[23], mutator=org.pitest.mutationtest.engine.gregor.mutators.MathMutator], filename=Loan.java, block=[4], lineNumber=46, description=Replaced double division with multiplication, testsInOrder=[]] diff --git a/pitReports/export/src/Loan/mutants/14/src.Loan.class b/pitReports/export/src/Loan/mutants/14/src.Loan.class new file mode 100644 index 0000000..d5917d2 Binary files /dev/null and b/pitReports/export/src/Loan/mutants/14/src.Loan.class differ diff --git a/pitReports/export/src/Loan/mutants/14/src.Loan.txt b/pitReports/export/src/Loan/mutants/14/src.Loan.txt new file mode 100644 index 0000000..c6d3450 --- /dev/null +++ b/pitReports/export/src/Loan/mutants/14/src.Loan.txt @@ -0,0 +1,201 @@ +// class version 61.0 (61) +// access flags 0x21 +public class src/Loan { + + // compiled from: Loan.java + // access flags 0x19 + public final static INNERCLASS java/lang/invoke/MethodHandles$Lookup java/lang/invoke/MethodHandles Lookup + + // access flags 0x1 + public ()V + L0 + LINENUMBER 4 L0 + ALOAD 0 + INVOKESPECIAL java/lang/Object. ()V + RETURN + MAXSTACK = 1 + MAXLOCALS = 1 + + // access flags 0x9 + public static main([Ljava/lang/String;)V + L0 + LINENUMBER 8 L0 + NEW java/util/Scanner + DUP + GETSTATIC java/lang/System.in : Ljava/io/InputStream; + INVOKESPECIAL java/util/Scanner. (Ljava/io/InputStream;)V + ASTORE 1 + L1 + LINENUMBER 12 L1 + GETSTATIC java/lang/System.out : Ljava/io/PrintStream; + LDC "Enter Debt value in Euros : " + INVOKEVIRTUAL java/io/PrintStream.print (Ljava/lang/String;)V + L2 + LINENUMBER 13 L2 + ALOAD 1 + INVOKEVIRTUAL java/util/Scanner.nextDouble ()D + DSTORE 2 + L3 + LINENUMBER 15 L3 + GETSTATIC java/lang/System.out : Ljava/io/PrintStream; + LDC "Enter Interest rate in Percentage : " + INVOKEVIRTUAL java/io/PrintStream.print (Ljava/lang/String;)V + L4 + LINENUMBER 16 L4 + ALOAD 1 + INVOKEVIRTUAL java/util/Scanner.nextDouble ()D + DSTORE 4 + L5 + LINENUMBER 18 L5 + GETSTATIC java/lang/System.out : Ljava/io/PrintStream; + LDC "Enter Payback Duration in months : " + INVOKEVIRTUAL java/io/PrintStream.print (Ljava/lang/String;)V + L6 + LINENUMBER 19 L6 + ALOAD 1 + INVOKEVIRTUAL java/util/Scanner.nextInt ()I + ISTORE 6 + L7 + LINENUMBER 22 L7 + ALOAD 1 + INVOKEVIRTUAL java/util/Scanner.close ()V + L8 + LINENUMBER 25 L8 + DLOAD 2 + DLOAD 4 + ILOAD 6 + INVOKESTATIC src/Loan.calculateMonthlyPayment (DDI)D + DSTORE 7 + L9 + LINENUMBER 28 L9 + ILOAD 6 + DLOAD 7 + INVOKESTATIC src/Loan.calculateOverallDebt (ID)D + DSTORE 9 + L10 + LINENUMBER 31 L10 + GETSTATIC java/lang/System.out : Ljava/io/PrintStream; + LDC "-------------------------------------------------\n" + INVOKEVIRTUAL java/io/PrintStream.print (Ljava/lang/String;)V + L11 + LINENUMBER 32 L11 + GETSTATIC java/lang/System.out : Ljava/io/PrintStream; + DLOAD 7 + INVOKEDYNAMIC makeConcatWithConstants(D)Ljava/lang/String; [ + // handle kind 0x6 : INVOKESTATIC + java/lang/invoke/StringConcatFactory.makeConcatWithConstants(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/invoke/CallSite; + // arguments: + "Monthly Payment: \u0001 euros" + ] + INVOKEVIRTUAL java/io/PrintStream.println (Ljava/lang/String;)V + L12 + LINENUMBER 33 L12 + GETSTATIC java/lang/System.out : Ljava/io/PrintStream; + ILOAD 6 + INVOKEDYNAMIC makeConcatWithConstants(I)Ljava/lang/String; [ + // handle kind 0x6 : INVOKESTATIC + java/lang/invoke/StringConcatFactory.makeConcatWithConstants(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/invoke/CallSite; + // arguments: + "Number of Rates: \u0001" + ] + INVOKEVIRTUAL java/io/PrintStream.println (Ljava/lang/String;)V + L13 + LINENUMBER 34 L13 + GETSTATIC java/lang/System.out : Ljava/io/PrintStream; + ILOAD 6 + DLOAD 9 + INVOKEDYNAMIC makeConcatWithConstants(ID)Ljava/lang/String; [ + // handle kind 0x6 : INVOKESTATIC + java/lang/invoke/StringConcatFactory.makeConcatWithConstants(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/invoke/CallSite; + // arguments: + "Overall Debt at the end of \u0001 months: \u0001 euros" + ] + INVOKEVIRTUAL java/io/PrintStream.println (Ljava/lang/String;)V + L14 + LINENUMBER 35 L14 + RETURN + MAXSTACK = 5 + MAXLOCALS = 11 + + // access flags 0x9 + public static calculateMonthlyPayment(DDI)D + L0 + LINENUMBER 40 L0 + DLOAD 0 + DCONST_0 + DCMPG + IFLE L1 + DLOAD 2 + DCONST_0 + DCMPG + IFLE L1 + ILOAD 4 + IFGT L2 + L1 + LINENUMBER 42 L1 + FRAME FULL [D D I] [] + DCONST_0 + DRETURN + L2 + LINENUMBER 46 L2 + FRAME FULL [D D I] [] + DLOAD 2 + LDC 100.0 + DMUL + LDC 12.0 + DDIV + DSTORE 5 + L3 + LINENUMBER 47 L3 + DLOAD 5 + DLOAD 0 + DMUL + DCONST_1 + DCONST_1 + DLOAD 5 + DADD + ILOAD 4 + INEG + I2D + INVOKESTATIC java/lang/Math.pow (DD)D + DSUB + DDIV + DSTORE 7 + L4 + LINENUMBER 48 L4 + DLOAD 7 + DRETURN + MAXSTACK = 8 + MAXLOCALS = 9 + + // access flags 0x9 + public static calculateOverallDebt(ID)D + L0 + LINENUMBER 55 L0 + ILOAD 0 + IFLE L1 + DLOAD 1 + DCONST_0 + DCMPG + IFGT L2 + L1 + LINENUMBER 57 L1 + FRAME FULL [I D] [] + DCONST_0 + DRETURN + L2 + LINENUMBER 61 L2 + FRAME FULL [I D] [] + DLOAD 1 + ILOAD 0 + I2D + DMUL + DSTORE 3 + L3 + LINENUMBER 62 L3 + DLOAD 3 + DRETURN + MAXSTACK = 4 + MAXLOCALS = 5 +} + diff --git a/pitReports/export/src/Loan/mutants/15/details.txt b/pitReports/export/src/Loan/mutants/15/details.txt new file mode 100644 index 0000000..5fb4fdc --- /dev/null +++ b/pitReports/export/src/Loan/mutants/15/details.txt @@ -0,0 +1 @@ +MutationDetails [id=MutationIdentifier [location=Location [clazz=src.Loan, method=calculateMonthlyPayment, methodDesc=(DDI)D], indexes=[25], mutator=org.pitest.mutationtest.engine.gregor.mutators.MathMutator], filename=Loan.java, block=[4], lineNumber=46, description=Replaced double division with multiplication, testsInOrder=[]] diff --git a/pitReports/export/src/Loan/mutants/15/src.Loan.class b/pitReports/export/src/Loan/mutants/15/src.Loan.class new file mode 100644 index 0000000..97e5297 Binary files /dev/null and b/pitReports/export/src/Loan/mutants/15/src.Loan.class differ diff --git a/pitReports/export/src/Loan/mutants/15/src.Loan.txt b/pitReports/export/src/Loan/mutants/15/src.Loan.txt new file mode 100644 index 0000000..d932827 --- /dev/null +++ b/pitReports/export/src/Loan/mutants/15/src.Loan.txt @@ -0,0 +1,201 @@ +// class version 61.0 (61) +// access flags 0x21 +public class src/Loan { + + // compiled from: Loan.java + // access flags 0x19 + public final static INNERCLASS java/lang/invoke/MethodHandles$Lookup java/lang/invoke/MethodHandles Lookup + + // access flags 0x1 + public ()V + L0 + LINENUMBER 4 L0 + ALOAD 0 + INVOKESPECIAL java/lang/Object. ()V + RETURN + MAXSTACK = 1 + MAXLOCALS = 1 + + // access flags 0x9 + public static main([Ljava/lang/String;)V + L0 + LINENUMBER 8 L0 + NEW java/util/Scanner + DUP + GETSTATIC java/lang/System.in : Ljava/io/InputStream; + INVOKESPECIAL java/util/Scanner. (Ljava/io/InputStream;)V + ASTORE 1 + L1 + LINENUMBER 12 L1 + GETSTATIC java/lang/System.out : Ljava/io/PrintStream; + LDC "Enter Debt value in Euros : " + INVOKEVIRTUAL java/io/PrintStream.print (Ljava/lang/String;)V + L2 + LINENUMBER 13 L2 + ALOAD 1 + INVOKEVIRTUAL java/util/Scanner.nextDouble ()D + DSTORE 2 + L3 + LINENUMBER 15 L3 + GETSTATIC java/lang/System.out : Ljava/io/PrintStream; + LDC "Enter Interest rate in Percentage : " + INVOKEVIRTUAL java/io/PrintStream.print (Ljava/lang/String;)V + L4 + LINENUMBER 16 L4 + ALOAD 1 + INVOKEVIRTUAL java/util/Scanner.nextDouble ()D + DSTORE 4 + L5 + LINENUMBER 18 L5 + GETSTATIC java/lang/System.out : Ljava/io/PrintStream; + LDC "Enter Payback Duration in months : " + INVOKEVIRTUAL java/io/PrintStream.print (Ljava/lang/String;)V + L6 + LINENUMBER 19 L6 + ALOAD 1 + INVOKEVIRTUAL java/util/Scanner.nextInt ()I + ISTORE 6 + L7 + LINENUMBER 22 L7 + ALOAD 1 + INVOKEVIRTUAL java/util/Scanner.close ()V + L8 + LINENUMBER 25 L8 + DLOAD 2 + DLOAD 4 + ILOAD 6 + INVOKESTATIC src/Loan.calculateMonthlyPayment (DDI)D + DSTORE 7 + L9 + LINENUMBER 28 L9 + ILOAD 6 + DLOAD 7 + INVOKESTATIC src/Loan.calculateOverallDebt (ID)D + DSTORE 9 + L10 + LINENUMBER 31 L10 + GETSTATIC java/lang/System.out : Ljava/io/PrintStream; + LDC "-------------------------------------------------\n" + INVOKEVIRTUAL java/io/PrintStream.print (Ljava/lang/String;)V + L11 + LINENUMBER 32 L11 + GETSTATIC java/lang/System.out : Ljava/io/PrintStream; + DLOAD 7 + INVOKEDYNAMIC makeConcatWithConstants(D)Ljava/lang/String; [ + // handle kind 0x6 : INVOKESTATIC + java/lang/invoke/StringConcatFactory.makeConcatWithConstants(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/invoke/CallSite; + // arguments: + "Monthly Payment: \u0001 euros" + ] + INVOKEVIRTUAL java/io/PrintStream.println (Ljava/lang/String;)V + L12 + LINENUMBER 33 L12 + GETSTATIC java/lang/System.out : Ljava/io/PrintStream; + ILOAD 6 + INVOKEDYNAMIC makeConcatWithConstants(I)Ljava/lang/String; [ + // handle kind 0x6 : INVOKESTATIC + java/lang/invoke/StringConcatFactory.makeConcatWithConstants(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/invoke/CallSite; + // arguments: + "Number of Rates: \u0001" + ] + INVOKEVIRTUAL java/io/PrintStream.println (Ljava/lang/String;)V + L13 + LINENUMBER 34 L13 + GETSTATIC java/lang/System.out : Ljava/io/PrintStream; + ILOAD 6 + DLOAD 9 + INVOKEDYNAMIC makeConcatWithConstants(ID)Ljava/lang/String; [ + // handle kind 0x6 : INVOKESTATIC + java/lang/invoke/StringConcatFactory.makeConcatWithConstants(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/invoke/CallSite; + // arguments: + "Overall Debt at the end of \u0001 months: \u0001 euros" + ] + INVOKEVIRTUAL java/io/PrintStream.println (Ljava/lang/String;)V + L14 + LINENUMBER 35 L14 + RETURN + MAXSTACK = 5 + MAXLOCALS = 11 + + // access flags 0x9 + public static calculateMonthlyPayment(DDI)D + L0 + LINENUMBER 40 L0 + DLOAD 0 + DCONST_0 + DCMPG + IFLE L1 + DLOAD 2 + DCONST_0 + DCMPG + IFLE L1 + ILOAD 4 + IFGT L2 + L1 + LINENUMBER 42 L1 + FRAME FULL [D D I] [] + DCONST_0 + DRETURN + L2 + LINENUMBER 46 L2 + FRAME FULL [D D I] [] + DLOAD 2 + LDC 100.0 + DDIV + LDC 12.0 + DMUL + DSTORE 5 + L3 + LINENUMBER 47 L3 + DLOAD 5 + DLOAD 0 + DMUL + DCONST_1 + DCONST_1 + DLOAD 5 + DADD + ILOAD 4 + INEG + I2D + INVOKESTATIC java/lang/Math.pow (DD)D + DSUB + DDIV + DSTORE 7 + L4 + LINENUMBER 48 L4 + DLOAD 7 + DRETURN + MAXSTACK = 8 + MAXLOCALS = 9 + + // access flags 0x9 + public static calculateOverallDebt(ID)D + L0 + LINENUMBER 55 L0 + ILOAD 0 + IFLE L1 + DLOAD 1 + DCONST_0 + DCMPG + IFGT L2 + L1 + LINENUMBER 57 L1 + FRAME FULL [I D] [] + DCONST_0 + DRETURN + L2 + LINENUMBER 61 L2 + FRAME FULL [I D] [] + DLOAD 1 + ILOAD 0 + I2D + DMUL + DSTORE 3 + L3 + LINENUMBER 62 L3 + DLOAD 3 + DRETURN + MAXSTACK = 4 + MAXLOCALS = 5 +} + diff --git a/pitReports/export/src/Loan/mutants/16/details.txt b/pitReports/export/src/Loan/mutants/16/details.txt new file mode 100644 index 0000000..c301c12 --- /dev/null +++ b/pitReports/export/src/Loan/mutants/16/details.txt @@ -0,0 +1 @@ +MutationDetails [id=MutationIdentifier [location=Location [clazz=src.Loan, method=calculateMonthlyPayment, methodDesc=(DDI)D], indexes=[31], mutator=org.pitest.mutationtest.engine.gregor.mutators.MathMutator], filename=Loan.java, block=[4], lineNumber=47, description=Replaced double multiplication with division, testsInOrder=[]] diff --git a/pitReports/export/src/Loan/mutants/16/src.Loan.class b/pitReports/export/src/Loan/mutants/16/src.Loan.class new file mode 100644 index 0000000..2ca6aae Binary files /dev/null and b/pitReports/export/src/Loan/mutants/16/src.Loan.class differ diff --git a/pitReports/export/src/Loan/mutants/16/src.Loan.txt b/pitReports/export/src/Loan/mutants/16/src.Loan.txt new file mode 100644 index 0000000..df08489 --- /dev/null +++ b/pitReports/export/src/Loan/mutants/16/src.Loan.txt @@ -0,0 +1,201 @@ +// class version 61.0 (61) +// access flags 0x21 +public class src/Loan { + + // compiled from: Loan.java + // access flags 0x19 + public final static INNERCLASS java/lang/invoke/MethodHandles$Lookup java/lang/invoke/MethodHandles Lookup + + // access flags 0x1 + public ()V + L0 + LINENUMBER 4 L0 + ALOAD 0 + INVOKESPECIAL java/lang/Object. ()V + RETURN + MAXSTACK = 1 + MAXLOCALS = 1 + + // access flags 0x9 + public static main([Ljava/lang/String;)V + L0 + LINENUMBER 8 L0 + NEW java/util/Scanner + DUP + GETSTATIC java/lang/System.in : Ljava/io/InputStream; + INVOKESPECIAL java/util/Scanner. (Ljava/io/InputStream;)V + ASTORE 1 + L1 + LINENUMBER 12 L1 + GETSTATIC java/lang/System.out : Ljava/io/PrintStream; + LDC "Enter Debt value in Euros : " + INVOKEVIRTUAL java/io/PrintStream.print (Ljava/lang/String;)V + L2 + LINENUMBER 13 L2 + ALOAD 1 + INVOKEVIRTUAL java/util/Scanner.nextDouble ()D + DSTORE 2 + L3 + LINENUMBER 15 L3 + GETSTATIC java/lang/System.out : Ljava/io/PrintStream; + LDC "Enter Interest rate in Percentage : " + INVOKEVIRTUAL java/io/PrintStream.print (Ljava/lang/String;)V + L4 + LINENUMBER 16 L4 + ALOAD 1 + INVOKEVIRTUAL java/util/Scanner.nextDouble ()D + DSTORE 4 + L5 + LINENUMBER 18 L5 + GETSTATIC java/lang/System.out : Ljava/io/PrintStream; + LDC "Enter Payback Duration in months : " + INVOKEVIRTUAL java/io/PrintStream.print (Ljava/lang/String;)V + L6 + LINENUMBER 19 L6 + ALOAD 1 + INVOKEVIRTUAL java/util/Scanner.nextInt ()I + ISTORE 6 + L7 + LINENUMBER 22 L7 + ALOAD 1 + INVOKEVIRTUAL java/util/Scanner.close ()V + L8 + LINENUMBER 25 L8 + DLOAD 2 + DLOAD 4 + ILOAD 6 + INVOKESTATIC src/Loan.calculateMonthlyPayment (DDI)D + DSTORE 7 + L9 + LINENUMBER 28 L9 + ILOAD 6 + DLOAD 7 + INVOKESTATIC src/Loan.calculateOverallDebt (ID)D + DSTORE 9 + L10 + LINENUMBER 31 L10 + GETSTATIC java/lang/System.out : Ljava/io/PrintStream; + LDC "-------------------------------------------------\n" + INVOKEVIRTUAL java/io/PrintStream.print (Ljava/lang/String;)V + L11 + LINENUMBER 32 L11 + GETSTATIC java/lang/System.out : Ljava/io/PrintStream; + DLOAD 7 + INVOKEDYNAMIC makeConcatWithConstants(D)Ljava/lang/String; [ + // handle kind 0x6 : INVOKESTATIC + java/lang/invoke/StringConcatFactory.makeConcatWithConstants(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/invoke/CallSite; + // arguments: + "Monthly Payment: \u0001 euros" + ] + INVOKEVIRTUAL java/io/PrintStream.println (Ljava/lang/String;)V + L12 + LINENUMBER 33 L12 + GETSTATIC java/lang/System.out : Ljava/io/PrintStream; + ILOAD 6 + INVOKEDYNAMIC makeConcatWithConstants(I)Ljava/lang/String; [ + // handle kind 0x6 : INVOKESTATIC + java/lang/invoke/StringConcatFactory.makeConcatWithConstants(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/invoke/CallSite; + // arguments: + "Number of Rates: \u0001" + ] + INVOKEVIRTUAL java/io/PrintStream.println (Ljava/lang/String;)V + L13 + LINENUMBER 34 L13 + GETSTATIC java/lang/System.out : Ljava/io/PrintStream; + ILOAD 6 + DLOAD 9 + INVOKEDYNAMIC makeConcatWithConstants(ID)Ljava/lang/String; [ + // handle kind 0x6 : INVOKESTATIC + java/lang/invoke/StringConcatFactory.makeConcatWithConstants(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/invoke/CallSite; + // arguments: + "Overall Debt at the end of \u0001 months: \u0001 euros" + ] + INVOKEVIRTUAL java/io/PrintStream.println (Ljava/lang/String;)V + L14 + LINENUMBER 35 L14 + RETURN + MAXSTACK = 5 + MAXLOCALS = 11 + + // access flags 0x9 + public static calculateMonthlyPayment(DDI)D + L0 + LINENUMBER 40 L0 + DLOAD 0 + DCONST_0 + DCMPG + IFLE L1 + DLOAD 2 + DCONST_0 + DCMPG + IFLE L1 + ILOAD 4 + IFGT L2 + L1 + LINENUMBER 42 L1 + FRAME FULL [D D I] [] + DCONST_0 + DRETURN + L2 + LINENUMBER 46 L2 + FRAME FULL [D D I] [] + DLOAD 2 + LDC 100.0 + DDIV + LDC 12.0 + DDIV + DSTORE 5 + L3 + LINENUMBER 47 L3 + DLOAD 5 + DLOAD 0 + DDIV + DCONST_1 + DCONST_1 + DLOAD 5 + DADD + ILOAD 4 + INEG + I2D + INVOKESTATIC java/lang/Math.pow (DD)D + DSUB + DDIV + DSTORE 7 + L4 + LINENUMBER 48 L4 + DLOAD 7 + DRETURN + MAXSTACK = 8 + MAXLOCALS = 9 + + // access flags 0x9 + public static calculateOverallDebt(ID)D + L0 + LINENUMBER 55 L0 + ILOAD 0 + IFLE L1 + DLOAD 1 + DCONST_0 + DCMPG + IFGT L2 + L1 + LINENUMBER 57 L1 + FRAME FULL [I D] [] + DCONST_0 + DRETURN + L2 + LINENUMBER 61 L2 + FRAME FULL [I D] [] + DLOAD 1 + ILOAD 0 + I2D + DMUL + DSTORE 3 + L3 + LINENUMBER 62 L3 + DLOAD 3 + DRETURN + MAXSTACK = 4 + MAXLOCALS = 5 +} + diff --git a/pitReports/export/src/Loan/mutants/17/details.txt b/pitReports/export/src/Loan/mutants/17/details.txt new file mode 100644 index 0000000..7966de3 --- /dev/null +++ b/pitReports/export/src/Loan/mutants/17/details.txt @@ -0,0 +1 @@ +MutationDetails [id=MutationIdentifier [location=Location [clazz=src.Loan, method=calculateMonthlyPayment, methodDesc=(DDI)D], indexes=[35], mutator=org.pitest.mutationtest.engine.gregor.mutators.MathMutator], filename=Loan.java, block=[4], lineNumber=47, description=Replaced double addition with subtraction, testsInOrder=[]] diff --git a/pitReports/export/src/Loan/mutants/17/src.Loan.class b/pitReports/export/src/Loan/mutants/17/src.Loan.class new file mode 100644 index 0000000..903681f Binary files /dev/null and b/pitReports/export/src/Loan/mutants/17/src.Loan.class differ diff --git a/pitReports/export/src/Loan/mutants/17/src.Loan.txt b/pitReports/export/src/Loan/mutants/17/src.Loan.txt new file mode 100644 index 0000000..7d28b1d --- /dev/null +++ b/pitReports/export/src/Loan/mutants/17/src.Loan.txt @@ -0,0 +1,201 @@ +// class version 61.0 (61) +// access flags 0x21 +public class src/Loan { + + // compiled from: Loan.java + // access flags 0x19 + public final static INNERCLASS java/lang/invoke/MethodHandles$Lookup java/lang/invoke/MethodHandles Lookup + + // access flags 0x1 + public ()V + L0 + LINENUMBER 4 L0 + ALOAD 0 + INVOKESPECIAL java/lang/Object. ()V + RETURN + MAXSTACK = 1 + MAXLOCALS = 1 + + // access flags 0x9 + public static main([Ljava/lang/String;)V + L0 + LINENUMBER 8 L0 + NEW java/util/Scanner + DUP + GETSTATIC java/lang/System.in : Ljava/io/InputStream; + INVOKESPECIAL java/util/Scanner. (Ljava/io/InputStream;)V + ASTORE 1 + L1 + LINENUMBER 12 L1 + GETSTATIC java/lang/System.out : Ljava/io/PrintStream; + LDC "Enter Debt value in Euros : " + INVOKEVIRTUAL java/io/PrintStream.print (Ljava/lang/String;)V + L2 + LINENUMBER 13 L2 + ALOAD 1 + INVOKEVIRTUAL java/util/Scanner.nextDouble ()D + DSTORE 2 + L3 + LINENUMBER 15 L3 + GETSTATIC java/lang/System.out : Ljava/io/PrintStream; + LDC "Enter Interest rate in Percentage : " + INVOKEVIRTUAL java/io/PrintStream.print (Ljava/lang/String;)V + L4 + LINENUMBER 16 L4 + ALOAD 1 + INVOKEVIRTUAL java/util/Scanner.nextDouble ()D + DSTORE 4 + L5 + LINENUMBER 18 L5 + GETSTATIC java/lang/System.out : Ljava/io/PrintStream; + LDC "Enter Payback Duration in months : " + INVOKEVIRTUAL java/io/PrintStream.print (Ljava/lang/String;)V + L6 + LINENUMBER 19 L6 + ALOAD 1 + INVOKEVIRTUAL java/util/Scanner.nextInt ()I + ISTORE 6 + L7 + LINENUMBER 22 L7 + ALOAD 1 + INVOKEVIRTUAL java/util/Scanner.close ()V + L8 + LINENUMBER 25 L8 + DLOAD 2 + DLOAD 4 + ILOAD 6 + INVOKESTATIC src/Loan.calculateMonthlyPayment (DDI)D + DSTORE 7 + L9 + LINENUMBER 28 L9 + ILOAD 6 + DLOAD 7 + INVOKESTATIC src/Loan.calculateOverallDebt (ID)D + DSTORE 9 + L10 + LINENUMBER 31 L10 + GETSTATIC java/lang/System.out : Ljava/io/PrintStream; + LDC "-------------------------------------------------\n" + INVOKEVIRTUAL java/io/PrintStream.print (Ljava/lang/String;)V + L11 + LINENUMBER 32 L11 + GETSTATIC java/lang/System.out : Ljava/io/PrintStream; + DLOAD 7 + INVOKEDYNAMIC makeConcatWithConstants(D)Ljava/lang/String; [ + // handle kind 0x6 : INVOKESTATIC + java/lang/invoke/StringConcatFactory.makeConcatWithConstants(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/invoke/CallSite; + // arguments: + "Monthly Payment: \u0001 euros" + ] + INVOKEVIRTUAL java/io/PrintStream.println (Ljava/lang/String;)V + L12 + LINENUMBER 33 L12 + GETSTATIC java/lang/System.out : Ljava/io/PrintStream; + ILOAD 6 + INVOKEDYNAMIC makeConcatWithConstants(I)Ljava/lang/String; [ + // handle kind 0x6 : INVOKESTATIC + java/lang/invoke/StringConcatFactory.makeConcatWithConstants(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/invoke/CallSite; + // arguments: + "Number of Rates: \u0001" + ] + INVOKEVIRTUAL java/io/PrintStream.println (Ljava/lang/String;)V + L13 + LINENUMBER 34 L13 + GETSTATIC java/lang/System.out : Ljava/io/PrintStream; + ILOAD 6 + DLOAD 9 + INVOKEDYNAMIC makeConcatWithConstants(ID)Ljava/lang/String; [ + // handle kind 0x6 : INVOKESTATIC + java/lang/invoke/StringConcatFactory.makeConcatWithConstants(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/invoke/CallSite; + // arguments: + "Overall Debt at the end of \u0001 months: \u0001 euros" + ] + INVOKEVIRTUAL java/io/PrintStream.println (Ljava/lang/String;)V + L14 + LINENUMBER 35 L14 + RETURN + MAXSTACK = 5 + MAXLOCALS = 11 + + // access flags 0x9 + public static calculateMonthlyPayment(DDI)D + L0 + LINENUMBER 40 L0 + DLOAD 0 + DCONST_0 + DCMPG + IFLE L1 + DLOAD 2 + DCONST_0 + DCMPG + IFLE L1 + ILOAD 4 + IFGT L2 + L1 + LINENUMBER 42 L1 + FRAME FULL [D D I] [] + DCONST_0 + DRETURN + L2 + LINENUMBER 46 L2 + FRAME FULL [D D I] [] + DLOAD 2 + LDC 100.0 + DDIV + LDC 12.0 + DDIV + DSTORE 5 + L3 + LINENUMBER 47 L3 + DLOAD 5 + DLOAD 0 + DMUL + DCONST_1 + DCONST_1 + DLOAD 5 + DSUB + ILOAD 4 + INEG + I2D + INVOKESTATIC java/lang/Math.pow (DD)D + DSUB + DDIV + DSTORE 7 + L4 + LINENUMBER 48 L4 + DLOAD 7 + DRETURN + MAXSTACK = 8 + MAXLOCALS = 9 + + // access flags 0x9 + public static calculateOverallDebt(ID)D + L0 + LINENUMBER 55 L0 + ILOAD 0 + IFLE L1 + DLOAD 1 + DCONST_0 + DCMPG + IFGT L2 + L1 + LINENUMBER 57 L1 + FRAME FULL [I D] [] + DCONST_0 + DRETURN + L2 + LINENUMBER 61 L2 + FRAME FULL [I D] [] + DLOAD 1 + ILOAD 0 + I2D + DMUL + DSTORE 3 + L3 + LINENUMBER 62 L3 + DLOAD 3 + DRETURN + MAXSTACK = 4 + MAXLOCALS = 5 +} + diff --git a/pitReports/export/src/Loan/mutants/18/details.txt b/pitReports/export/src/Loan/mutants/18/details.txt new file mode 100644 index 0000000..26bc808 --- /dev/null +++ b/pitReports/export/src/Loan/mutants/18/details.txt @@ -0,0 +1 @@ +MutationDetails [id=MutationIdentifier [location=Location [clazz=src.Loan, method=calculateMonthlyPayment, methodDesc=(DDI)D], indexes=[37], mutator=org.pitest.mutationtest.engine.gregor.mutators.InvertNegsMutator], filename=Loan.java, block=[4], lineNumber=47, description=removed negation, testsInOrder=[]] diff --git a/pitReports/export/src/Loan/mutants/18/src.Loan.class b/pitReports/export/src/Loan/mutants/18/src.Loan.class new file mode 100644 index 0000000..7408daf Binary files /dev/null and b/pitReports/export/src/Loan/mutants/18/src.Loan.class differ diff --git a/pitReports/export/src/Loan/mutants/18/src.Loan.txt b/pitReports/export/src/Loan/mutants/18/src.Loan.txt new file mode 100644 index 0000000..e108517 --- /dev/null +++ b/pitReports/export/src/Loan/mutants/18/src.Loan.txt @@ -0,0 +1,201 @@ +// class version 61.0 (61) +// access flags 0x21 +public class src/Loan { + + // compiled from: Loan.java + // access flags 0x19 + public final static INNERCLASS java/lang/invoke/MethodHandles$Lookup java/lang/invoke/MethodHandles Lookup + + // access flags 0x1 + public ()V + L0 + LINENUMBER 4 L0 + ALOAD 0 + INVOKESPECIAL java/lang/Object. ()V + RETURN + MAXSTACK = 1 + MAXLOCALS = 1 + + // access flags 0x9 + public static main([Ljava/lang/String;)V + L0 + LINENUMBER 8 L0 + NEW java/util/Scanner + DUP + GETSTATIC java/lang/System.in : Ljava/io/InputStream; + INVOKESPECIAL java/util/Scanner. (Ljava/io/InputStream;)V + ASTORE 1 + L1 + LINENUMBER 12 L1 + GETSTATIC java/lang/System.out : Ljava/io/PrintStream; + LDC "Enter Debt value in Euros : " + INVOKEVIRTUAL java/io/PrintStream.print (Ljava/lang/String;)V + L2 + LINENUMBER 13 L2 + ALOAD 1 + INVOKEVIRTUAL java/util/Scanner.nextDouble ()D + DSTORE 2 + L3 + LINENUMBER 15 L3 + GETSTATIC java/lang/System.out : Ljava/io/PrintStream; + LDC "Enter Interest rate in Percentage : " + INVOKEVIRTUAL java/io/PrintStream.print (Ljava/lang/String;)V + L4 + LINENUMBER 16 L4 + ALOAD 1 + INVOKEVIRTUAL java/util/Scanner.nextDouble ()D + DSTORE 4 + L5 + LINENUMBER 18 L5 + GETSTATIC java/lang/System.out : Ljava/io/PrintStream; + LDC "Enter Payback Duration in months : " + INVOKEVIRTUAL java/io/PrintStream.print (Ljava/lang/String;)V + L6 + LINENUMBER 19 L6 + ALOAD 1 + INVOKEVIRTUAL java/util/Scanner.nextInt ()I + ISTORE 6 + L7 + LINENUMBER 22 L7 + ALOAD 1 + INVOKEVIRTUAL java/util/Scanner.close ()V + L8 + LINENUMBER 25 L8 + DLOAD 2 + DLOAD 4 + ILOAD 6 + INVOKESTATIC src/Loan.calculateMonthlyPayment (DDI)D + DSTORE 7 + L9 + LINENUMBER 28 L9 + ILOAD 6 + DLOAD 7 + INVOKESTATIC src/Loan.calculateOverallDebt (ID)D + DSTORE 9 + L10 + LINENUMBER 31 L10 + GETSTATIC java/lang/System.out : Ljava/io/PrintStream; + LDC "-------------------------------------------------\n" + INVOKEVIRTUAL java/io/PrintStream.print (Ljava/lang/String;)V + L11 + LINENUMBER 32 L11 + GETSTATIC java/lang/System.out : Ljava/io/PrintStream; + DLOAD 7 + INVOKEDYNAMIC makeConcatWithConstants(D)Ljava/lang/String; [ + // handle kind 0x6 : INVOKESTATIC + java/lang/invoke/StringConcatFactory.makeConcatWithConstants(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/invoke/CallSite; + // arguments: + "Monthly Payment: \u0001 euros" + ] + INVOKEVIRTUAL java/io/PrintStream.println (Ljava/lang/String;)V + L12 + LINENUMBER 33 L12 + GETSTATIC java/lang/System.out : Ljava/io/PrintStream; + ILOAD 6 + INVOKEDYNAMIC makeConcatWithConstants(I)Ljava/lang/String; [ + // handle kind 0x6 : INVOKESTATIC + java/lang/invoke/StringConcatFactory.makeConcatWithConstants(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/invoke/CallSite; + // arguments: + "Number of Rates: \u0001" + ] + INVOKEVIRTUAL java/io/PrintStream.println (Ljava/lang/String;)V + L13 + LINENUMBER 34 L13 + GETSTATIC java/lang/System.out : Ljava/io/PrintStream; + ILOAD 6 + DLOAD 9 + INVOKEDYNAMIC makeConcatWithConstants(ID)Ljava/lang/String; [ + // handle kind 0x6 : INVOKESTATIC + java/lang/invoke/StringConcatFactory.makeConcatWithConstants(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/invoke/CallSite; + // arguments: + "Overall Debt at the end of \u0001 months: \u0001 euros" + ] + INVOKEVIRTUAL java/io/PrintStream.println (Ljava/lang/String;)V + L14 + LINENUMBER 35 L14 + RETURN + MAXSTACK = 5 + MAXLOCALS = 11 + + // access flags 0x9 + public static calculateMonthlyPayment(DDI)D + L0 + LINENUMBER 40 L0 + DLOAD 0 + DCONST_0 + DCMPG + IFLE L1 + DLOAD 2 + DCONST_0 + DCMPG + IFLE L1 + ILOAD 4 + IFGT L2 + L1 + LINENUMBER 42 L1 + FRAME FULL [D D I] [] + DCONST_0 + DRETURN + L2 + LINENUMBER 46 L2 + FRAME FULL [D D I] [] + DLOAD 2 + LDC 100.0 + DDIV + LDC 12.0 + DDIV + DSTORE 5 + L3 + LINENUMBER 47 L3 + DLOAD 5 + DLOAD 0 + DMUL + DCONST_1 + DCONST_1 + DLOAD 5 + DADD + ILOAD 4 + NOP + I2D + INVOKESTATIC java/lang/Math.pow (DD)D + DSUB + DDIV + DSTORE 7 + L4 + LINENUMBER 48 L4 + DLOAD 7 + DRETURN + MAXSTACK = 8 + MAXLOCALS = 9 + + // access flags 0x9 + public static calculateOverallDebt(ID)D + L0 + LINENUMBER 55 L0 + ILOAD 0 + IFLE L1 + DLOAD 1 + DCONST_0 + DCMPG + IFGT L2 + L1 + LINENUMBER 57 L1 + FRAME FULL [I D] [] + DCONST_0 + DRETURN + L2 + LINENUMBER 61 L2 + FRAME FULL [I D] [] + DLOAD 1 + ILOAD 0 + I2D + DMUL + DSTORE 3 + L3 + LINENUMBER 62 L3 + DLOAD 3 + DRETURN + MAXSTACK = 4 + MAXLOCALS = 5 +} + diff --git a/pitReports/export/src/Loan/mutants/19/details.txt b/pitReports/export/src/Loan/mutants/19/details.txt new file mode 100644 index 0000000..b1d5573 --- /dev/null +++ b/pitReports/export/src/Loan/mutants/19/details.txt @@ -0,0 +1 @@ +MutationDetails [id=MutationIdentifier [location=Location [clazz=src.Loan, method=calculateMonthlyPayment, methodDesc=(DDI)D], indexes=[40], mutator=org.pitest.mutationtest.engine.gregor.mutators.MathMutator], filename=Loan.java, block=[5], lineNumber=47, description=Replaced double subtraction with addition, testsInOrder=[]] diff --git a/pitReports/export/src/Loan/mutants/19/src.Loan.class b/pitReports/export/src/Loan/mutants/19/src.Loan.class new file mode 100644 index 0000000..408269d Binary files /dev/null and b/pitReports/export/src/Loan/mutants/19/src.Loan.class differ diff --git a/pitReports/export/src/Loan/mutants/19/src.Loan.txt b/pitReports/export/src/Loan/mutants/19/src.Loan.txt new file mode 100644 index 0000000..7d89f66 --- /dev/null +++ b/pitReports/export/src/Loan/mutants/19/src.Loan.txt @@ -0,0 +1,201 @@ +// class version 61.0 (61) +// access flags 0x21 +public class src/Loan { + + // compiled from: Loan.java + // access flags 0x19 + public final static INNERCLASS java/lang/invoke/MethodHandles$Lookup java/lang/invoke/MethodHandles Lookup + + // access flags 0x1 + public ()V + L0 + LINENUMBER 4 L0 + ALOAD 0 + INVOKESPECIAL java/lang/Object. ()V + RETURN + MAXSTACK = 1 + MAXLOCALS = 1 + + // access flags 0x9 + public static main([Ljava/lang/String;)V + L0 + LINENUMBER 8 L0 + NEW java/util/Scanner + DUP + GETSTATIC java/lang/System.in : Ljava/io/InputStream; + INVOKESPECIAL java/util/Scanner. (Ljava/io/InputStream;)V + ASTORE 1 + L1 + LINENUMBER 12 L1 + GETSTATIC java/lang/System.out : Ljava/io/PrintStream; + LDC "Enter Debt value in Euros : " + INVOKEVIRTUAL java/io/PrintStream.print (Ljava/lang/String;)V + L2 + LINENUMBER 13 L2 + ALOAD 1 + INVOKEVIRTUAL java/util/Scanner.nextDouble ()D + DSTORE 2 + L3 + LINENUMBER 15 L3 + GETSTATIC java/lang/System.out : Ljava/io/PrintStream; + LDC "Enter Interest rate in Percentage : " + INVOKEVIRTUAL java/io/PrintStream.print (Ljava/lang/String;)V + L4 + LINENUMBER 16 L4 + ALOAD 1 + INVOKEVIRTUAL java/util/Scanner.nextDouble ()D + DSTORE 4 + L5 + LINENUMBER 18 L5 + GETSTATIC java/lang/System.out : Ljava/io/PrintStream; + LDC "Enter Payback Duration in months : " + INVOKEVIRTUAL java/io/PrintStream.print (Ljava/lang/String;)V + L6 + LINENUMBER 19 L6 + ALOAD 1 + INVOKEVIRTUAL java/util/Scanner.nextInt ()I + ISTORE 6 + L7 + LINENUMBER 22 L7 + ALOAD 1 + INVOKEVIRTUAL java/util/Scanner.close ()V + L8 + LINENUMBER 25 L8 + DLOAD 2 + DLOAD 4 + ILOAD 6 + INVOKESTATIC src/Loan.calculateMonthlyPayment (DDI)D + DSTORE 7 + L9 + LINENUMBER 28 L9 + ILOAD 6 + DLOAD 7 + INVOKESTATIC src/Loan.calculateOverallDebt (ID)D + DSTORE 9 + L10 + LINENUMBER 31 L10 + GETSTATIC java/lang/System.out : Ljava/io/PrintStream; + LDC "-------------------------------------------------\n" + INVOKEVIRTUAL java/io/PrintStream.print (Ljava/lang/String;)V + L11 + LINENUMBER 32 L11 + GETSTATIC java/lang/System.out : Ljava/io/PrintStream; + DLOAD 7 + INVOKEDYNAMIC makeConcatWithConstants(D)Ljava/lang/String; [ + // handle kind 0x6 : INVOKESTATIC + java/lang/invoke/StringConcatFactory.makeConcatWithConstants(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/invoke/CallSite; + // arguments: + "Monthly Payment: \u0001 euros" + ] + INVOKEVIRTUAL java/io/PrintStream.println (Ljava/lang/String;)V + L12 + LINENUMBER 33 L12 + GETSTATIC java/lang/System.out : Ljava/io/PrintStream; + ILOAD 6 + INVOKEDYNAMIC makeConcatWithConstants(I)Ljava/lang/String; [ + // handle kind 0x6 : INVOKESTATIC + java/lang/invoke/StringConcatFactory.makeConcatWithConstants(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/invoke/CallSite; + // arguments: + "Number of Rates: \u0001" + ] + INVOKEVIRTUAL java/io/PrintStream.println (Ljava/lang/String;)V + L13 + LINENUMBER 34 L13 + GETSTATIC java/lang/System.out : Ljava/io/PrintStream; + ILOAD 6 + DLOAD 9 + INVOKEDYNAMIC makeConcatWithConstants(ID)Ljava/lang/String; [ + // handle kind 0x6 : INVOKESTATIC + java/lang/invoke/StringConcatFactory.makeConcatWithConstants(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/invoke/CallSite; + // arguments: + "Overall Debt at the end of \u0001 months: \u0001 euros" + ] + INVOKEVIRTUAL java/io/PrintStream.println (Ljava/lang/String;)V + L14 + LINENUMBER 35 L14 + RETURN + MAXSTACK = 5 + MAXLOCALS = 11 + + // access flags 0x9 + public static calculateMonthlyPayment(DDI)D + L0 + LINENUMBER 40 L0 + DLOAD 0 + DCONST_0 + DCMPG + IFLE L1 + DLOAD 2 + DCONST_0 + DCMPG + IFLE L1 + ILOAD 4 + IFGT L2 + L1 + LINENUMBER 42 L1 + FRAME FULL [D D I] [] + DCONST_0 + DRETURN + L2 + LINENUMBER 46 L2 + FRAME FULL [D D I] [] + DLOAD 2 + LDC 100.0 + DDIV + LDC 12.0 + DDIV + DSTORE 5 + L3 + LINENUMBER 47 L3 + DLOAD 5 + DLOAD 0 + DMUL + DCONST_1 + DCONST_1 + DLOAD 5 + DADD + ILOAD 4 + INEG + I2D + INVOKESTATIC java/lang/Math.pow (DD)D + DADD + DDIV + DSTORE 7 + L4 + LINENUMBER 48 L4 + DLOAD 7 + DRETURN + MAXSTACK = 8 + MAXLOCALS = 9 + + // access flags 0x9 + public static calculateOverallDebt(ID)D + L0 + LINENUMBER 55 L0 + ILOAD 0 + IFLE L1 + DLOAD 1 + DCONST_0 + DCMPG + IFGT L2 + L1 + LINENUMBER 57 L1 + FRAME FULL [I D] [] + DCONST_0 + DRETURN + L2 + LINENUMBER 61 L2 + FRAME FULL [I D] [] + DLOAD 1 + ILOAD 0 + I2D + DMUL + DSTORE 3 + L3 + LINENUMBER 62 L3 + DLOAD 3 + DRETURN + MAXSTACK = 4 + MAXLOCALS = 5 +} + diff --git a/pitReports/export/src/Loan/mutants/2/details.txt b/pitReports/export/src/Loan/mutants/2/details.txt index 8719f18..b5c8ee1 100644 --- a/pitReports/export/src/Loan/mutants/2/details.txt +++ b/pitReports/export/src/Loan/mutants/2/details.txt @@ -1 +1 @@ -MutationDetails [id=MutationIdentifier [location=Location [clazz=src.Loan, method=main, methodDesc=([Ljava/lang/String;)V], indexes=[5], mutator=org.pitest.mutationtest.engine.gregor.mutators.VoidMethodCallMutator], filename=Loan.java, block=[0], lineNumber=14, description=removed call to java/io/PrintStream::println, testsInOrder=[]] +MutationDetails [id=MutationIdentifier [location=Location [clazz=src.Loan, method=main, methodDesc=([Ljava/lang/String;)V], indexes=[32], mutator=org.pitest.mutationtest.engine.gregor.mutators.VoidMethodCallMutator], filename=Loan.java, block=[5], lineNumber=18, description=removed call to java/io/PrintStream::print, testsInOrder=[]] diff --git a/pitReports/export/src/Loan/mutants/2/src.Loan.class b/pitReports/export/src/Loan/mutants/2/src.Loan.class index c6e19ae..aaf15cf 100644 Binary files a/pitReports/export/src/Loan/mutants/2/src.Loan.class and b/pitReports/export/src/Loan/mutants/2/src.Loan.class differ diff --git a/pitReports/export/src/Loan/mutants/2/src.Loan.txt b/pitReports/export/src/Loan/mutants/2/src.Loan.txt index 944ea79..544de89 100644 --- a/pitReports/export/src/Loan/mutants/2/src.Loan.txt +++ b/pitReports/export/src/Loan/mutants/2/src.Loan.txt @@ -3,71 +3,200 @@ public class src/Loan { // compiled from: Loan.java + // access flags 0x19 + public final static INNERCLASS java/lang/invoke/MethodHandles$Lookup java/lang/invoke/MethodHandles Lookup // access flags 0x1 public ()V L0 - LINENUMBER 5 L0 + LINENUMBER 4 L0 ALOAD 0 INVOKESPECIAL java/lang/Object. ()V RETURN - L1 - LOCALVARIABLE this Lsrc/Loan; L0 L1 0 MAXSTACK = 1 MAXLOCALS = 1 - // access flags 0x9 - public static sum(DD)Ljava/lang/Double; - L0 - LINENUMBER 9 L0 - DLOAD 0 - DLOAD 2 - DADD - INVOKESTATIC java/lang/Double.valueOf (D)Ljava/lang/Double; - ARETURN - L1 - LOCALVARIABLE a D L0 L1 0 - LOCALVARIABLE b D L0 L1 2 - MAXSTACK = 4 - MAXLOCALS = 4 - // access flags 0x9 public static main([Ljava/lang/String;)V L0 - LINENUMBER 14 L0 - GETSTATIC java/lang/System.out : Ljava/io/PrintStream; - LDC "Hello world" - POP - POP + LINENUMBER 8 L0 + NEW java/util/Scanner + DUP + GETSTATIC java/lang/System.in : Ljava/io/InputStream; + INVOKESPECIAL java/util/Scanner. (Ljava/io/InputStream;)V + ASTORE 1 L1 - LINENUMBER 15 L1 - LDC 14.0 - DSTORE 1 + LINENUMBER 12 L1 + GETSTATIC java/lang/System.out : Ljava/io/PrintStream; + LDC "Enter Debt value in Euros : " + INVOKEVIRTUAL java/io/PrintStream.print (Ljava/lang/String;)V L2 - LINENUMBER 16 L2 - LDC 5.0 + LINENUMBER 13 L2 + ALOAD 1 + INVOKEVIRTUAL java/util/Scanner.nextDouble ()D + DSTORE 2 + L3 + LINENUMBER 15 L3 + GETSTATIC java/lang/System.out : Ljava/io/PrintStream; + LDC "Enter Interest rate in Percentage : " + INVOKEVIRTUAL java/io/PrintStream.print (Ljava/lang/String;)V + L4 + LINENUMBER 16 L4 + ALOAD 1 + INVOKEVIRTUAL java/util/Scanner.nextDouble ()D + DSTORE 4 + L5 + LINENUMBER 18 L5 + GETSTATIC java/lang/System.out : Ljava/io/PrintStream; + LDC "Enter Payback Duration in months : " + POP + POP + L6 + LINENUMBER 19 L6 + ALOAD 1 + INVOKEVIRTUAL java/util/Scanner.nextInt ()I + ISTORE 6 + L7 + LINENUMBER 22 L7 + ALOAD 1 + INVOKEVIRTUAL java/util/Scanner.close ()V + L8 + LINENUMBER 25 L8 + DLOAD 2 + DLOAD 4 + ILOAD 6 + INVOKESTATIC src/Loan.calculateMonthlyPayment (DDI)D + DSTORE 7 + L9 + LINENUMBER 28 L9 + ILOAD 6 + DLOAD 7 + INVOKESTATIC src/Loan.calculateOverallDebt (ID)D + DSTORE 9 + L10 + LINENUMBER 31 L10 + GETSTATIC java/lang/System.out : Ljava/io/PrintStream; + LDC "-------------------------------------------------\n" + INVOKEVIRTUAL java/io/PrintStream.print (Ljava/lang/String;)V + L11 + LINENUMBER 32 L11 + GETSTATIC java/lang/System.out : Ljava/io/PrintStream; + DLOAD 7 + INVOKEDYNAMIC makeConcatWithConstants(D)Ljava/lang/String; [ + // handle kind 0x6 : INVOKESTATIC + java/lang/invoke/StringConcatFactory.makeConcatWithConstants(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/invoke/CallSite; + // arguments: + "Monthly Payment: \u0001 euros" + ] + INVOKEVIRTUAL java/io/PrintStream.println (Ljava/lang/String;)V + L12 + LINENUMBER 33 L12 + GETSTATIC java/lang/System.out : Ljava/io/PrintStream; + ILOAD 6 + INVOKEDYNAMIC makeConcatWithConstants(I)Ljava/lang/String; [ + // handle kind 0x6 : INVOKESTATIC + java/lang/invoke/StringConcatFactory.makeConcatWithConstants(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/invoke/CallSite; + // arguments: + "Number of Rates: \u0001" + ] + INVOKEVIRTUAL java/io/PrintStream.println (Ljava/lang/String;)V + L13 + LINENUMBER 34 L13 + GETSTATIC java/lang/System.out : Ljava/io/PrintStream; + ILOAD 6 + DLOAD 9 + INVOKEDYNAMIC makeConcatWithConstants(ID)Ljava/lang/String; [ + // handle kind 0x6 : INVOKESTATIC + java/lang/invoke/StringConcatFactory.makeConcatWithConstants(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/invoke/CallSite; + // arguments: + "Overall Debt at the end of \u0001 months: \u0001 euros" + ] + INVOKEVIRTUAL java/io/PrintStream.println (Ljava/lang/String;)V + L14 + LINENUMBER 35 L14 + RETURN + MAXSTACK = 5 + MAXLOCALS = 11 + + // access flags 0x9 + public static calculateMonthlyPayment(DDI)D + L0 + LINENUMBER 40 L0 + DLOAD 0 + DCONST_0 + DCMPG + IFLE L1 + DLOAD 2 + DCONST_0 + DCMPG + IFLE L1 + ILOAD 4 + IFGT L2 + L1 + LINENUMBER 42 L1 + FRAME FULL [D D I] [] + DCONST_0 + DRETURN + L2 + LINENUMBER 46 L2 + FRAME FULL [D D I] [] + DLOAD 2 + LDC 100.0 + DDIV + LDC 12.0 + DDIV + DSTORE 5 + L3 + LINENUMBER 47 L3 + DLOAD 5 + DLOAD 0 + DMUL + DCONST_1 + DCONST_1 + DLOAD 5 + DADD + ILOAD 4 + INEG + I2D + INVOKESTATIC java/lang/Math.pow (DD)D + DSUB + DDIV + DSTORE 7 + L4 + LINENUMBER 48 L4 + DLOAD 7 + DRETURN + MAXSTACK = 8 + MAXLOCALS = 9 + + // access flags 0x9 + public static calculateOverallDebt(ID)D + L0 + LINENUMBER 55 L0 + ILOAD 0 + IFLE L1 + DLOAD 1 + DCONST_0 + DCMPG + IFGT L2 + L1 + LINENUMBER 57 L1 + FRAME FULL [I D] [] + DCONST_0 + DRETURN + L2 + LINENUMBER 61 L2 + FRAME FULL [I D] [] + DLOAD 1 + ILOAD 0 + I2D + DMUL DSTORE 3 L3 - LINENUMBER 18 L3 - DLOAD 1 + LINENUMBER 62 L3 DLOAD 3 - INVOKESTATIC src/Loan.sum (DD)Ljava/lang/Double; - INVOKEVIRTUAL java/lang/Double.doubleValue ()D - DSTORE 5 - L4 - LINENUMBER 19 L4 - GETSTATIC java/lang/System.out : Ljava/io/PrintStream; - DLOAD 5 - INVOKEVIRTUAL java/io/PrintStream.println (D)V - L5 - LINENUMBER 20 L5 - RETURN - L6 - LOCALVARIABLE args [Ljava/lang/String; L0 L6 0 - LOCALVARIABLE a D L2 L6 1 - LOCALVARIABLE b D L3 L6 3 - LOCALVARIABLE answer D L4 L6 5 + DRETURN MAXSTACK = 4 - MAXLOCALS = 7 + MAXLOCALS = 5 } diff --git a/pitReports/export/src/Loan/mutants/20/details.txt b/pitReports/export/src/Loan/mutants/20/details.txt new file mode 100644 index 0000000..d8b35fb --- /dev/null +++ b/pitReports/export/src/Loan/mutants/20/details.txt @@ -0,0 +1 @@ +MutationDetails [id=MutationIdentifier [location=Location [clazz=src.Loan, method=calculateMonthlyPayment, methodDesc=(DDI)D], indexes=[41], mutator=org.pitest.mutationtest.engine.gregor.mutators.MathMutator], filename=Loan.java, block=[5], lineNumber=47, description=Replaced double division with multiplication, testsInOrder=[]] diff --git a/pitReports/export/src/Loan/mutants/20/src.Loan.class b/pitReports/export/src/Loan/mutants/20/src.Loan.class new file mode 100644 index 0000000..a044a58 Binary files /dev/null and b/pitReports/export/src/Loan/mutants/20/src.Loan.class differ diff --git a/pitReports/export/src/Loan/mutants/20/src.Loan.txt b/pitReports/export/src/Loan/mutants/20/src.Loan.txt new file mode 100644 index 0000000..5f232fe --- /dev/null +++ b/pitReports/export/src/Loan/mutants/20/src.Loan.txt @@ -0,0 +1,201 @@ +// class version 61.0 (61) +// access flags 0x21 +public class src/Loan { + + // compiled from: Loan.java + // access flags 0x19 + public final static INNERCLASS java/lang/invoke/MethodHandles$Lookup java/lang/invoke/MethodHandles Lookup + + // access flags 0x1 + public ()V + L0 + LINENUMBER 4 L0 + ALOAD 0 + INVOKESPECIAL java/lang/Object. ()V + RETURN + MAXSTACK = 1 + MAXLOCALS = 1 + + // access flags 0x9 + public static main([Ljava/lang/String;)V + L0 + LINENUMBER 8 L0 + NEW java/util/Scanner + DUP + GETSTATIC java/lang/System.in : Ljava/io/InputStream; + INVOKESPECIAL java/util/Scanner. (Ljava/io/InputStream;)V + ASTORE 1 + L1 + LINENUMBER 12 L1 + GETSTATIC java/lang/System.out : Ljava/io/PrintStream; + LDC "Enter Debt value in Euros : " + INVOKEVIRTUAL java/io/PrintStream.print (Ljava/lang/String;)V + L2 + LINENUMBER 13 L2 + ALOAD 1 + INVOKEVIRTUAL java/util/Scanner.nextDouble ()D + DSTORE 2 + L3 + LINENUMBER 15 L3 + GETSTATIC java/lang/System.out : Ljava/io/PrintStream; + LDC "Enter Interest rate in Percentage : " + INVOKEVIRTUAL java/io/PrintStream.print (Ljava/lang/String;)V + L4 + LINENUMBER 16 L4 + ALOAD 1 + INVOKEVIRTUAL java/util/Scanner.nextDouble ()D + DSTORE 4 + L5 + LINENUMBER 18 L5 + GETSTATIC java/lang/System.out : Ljava/io/PrintStream; + LDC "Enter Payback Duration in months : " + INVOKEVIRTUAL java/io/PrintStream.print (Ljava/lang/String;)V + L6 + LINENUMBER 19 L6 + ALOAD 1 + INVOKEVIRTUAL java/util/Scanner.nextInt ()I + ISTORE 6 + L7 + LINENUMBER 22 L7 + ALOAD 1 + INVOKEVIRTUAL java/util/Scanner.close ()V + L8 + LINENUMBER 25 L8 + DLOAD 2 + DLOAD 4 + ILOAD 6 + INVOKESTATIC src/Loan.calculateMonthlyPayment (DDI)D + DSTORE 7 + L9 + LINENUMBER 28 L9 + ILOAD 6 + DLOAD 7 + INVOKESTATIC src/Loan.calculateOverallDebt (ID)D + DSTORE 9 + L10 + LINENUMBER 31 L10 + GETSTATIC java/lang/System.out : Ljava/io/PrintStream; + LDC "-------------------------------------------------\n" + INVOKEVIRTUAL java/io/PrintStream.print (Ljava/lang/String;)V + L11 + LINENUMBER 32 L11 + GETSTATIC java/lang/System.out : Ljava/io/PrintStream; + DLOAD 7 + INVOKEDYNAMIC makeConcatWithConstants(D)Ljava/lang/String; [ + // handle kind 0x6 : INVOKESTATIC + java/lang/invoke/StringConcatFactory.makeConcatWithConstants(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/invoke/CallSite; + // arguments: + "Monthly Payment: \u0001 euros" + ] + INVOKEVIRTUAL java/io/PrintStream.println (Ljava/lang/String;)V + L12 + LINENUMBER 33 L12 + GETSTATIC java/lang/System.out : Ljava/io/PrintStream; + ILOAD 6 + INVOKEDYNAMIC makeConcatWithConstants(I)Ljava/lang/String; [ + // handle kind 0x6 : INVOKESTATIC + java/lang/invoke/StringConcatFactory.makeConcatWithConstants(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/invoke/CallSite; + // arguments: + "Number of Rates: \u0001" + ] + INVOKEVIRTUAL java/io/PrintStream.println (Ljava/lang/String;)V + L13 + LINENUMBER 34 L13 + GETSTATIC java/lang/System.out : Ljava/io/PrintStream; + ILOAD 6 + DLOAD 9 + INVOKEDYNAMIC makeConcatWithConstants(ID)Ljava/lang/String; [ + // handle kind 0x6 : INVOKESTATIC + java/lang/invoke/StringConcatFactory.makeConcatWithConstants(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/invoke/CallSite; + // arguments: + "Overall Debt at the end of \u0001 months: \u0001 euros" + ] + INVOKEVIRTUAL java/io/PrintStream.println (Ljava/lang/String;)V + L14 + LINENUMBER 35 L14 + RETURN + MAXSTACK = 5 + MAXLOCALS = 11 + + // access flags 0x9 + public static calculateMonthlyPayment(DDI)D + L0 + LINENUMBER 40 L0 + DLOAD 0 + DCONST_0 + DCMPG + IFLE L1 + DLOAD 2 + DCONST_0 + DCMPG + IFLE L1 + ILOAD 4 + IFGT L2 + L1 + LINENUMBER 42 L1 + FRAME FULL [D D I] [] + DCONST_0 + DRETURN + L2 + LINENUMBER 46 L2 + FRAME FULL [D D I] [] + DLOAD 2 + LDC 100.0 + DDIV + LDC 12.0 + DDIV + DSTORE 5 + L3 + LINENUMBER 47 L3 + DLOAD 5 + DLOAD 0 + DMUL + DCONST_1 + DCONST_1 + DLOAD 5 + DADD + ILOAD 4 + INEG + I2D + INVOKESTATIC java/lang/Math.pow (DD)D + DSUB + DMUL + DSTORE 7 + L4 + LINENUMBER 48 L4 + DLOAD 7 + DRETURN + MAXSTACK = 8 + MAXLOCALS = 9 + + // access flags 0x9 + public static calculateOverallDebt(ID)D + L0 + LINENUMBER 55 L0 + ILOAD 0 + IFLE L1 + DLOAD 1 + DCONST_0 + DCMPG + IFGT L2 + L1 + LINENUMBER 57 L1 + FRAME FULL [I D] [] + DCONST_0 + DRETURN + L2 + LINENUMBER 61 L2 + FRAME FULL [I D] [] + DLOAD 1 + ILOAD 0 + I2D + DMUL + DSTORE 3 + L3 + LINENUMBER 62 L3 + DLOAD 3 + DRETURN + MAXSTACK = 4 + MAXLOCALS = 5 +} + diff --git a/pitReports/export/src/Loan/mutants/21/details.txt b/pitReports/export/src/Loan/mutants/21/details.txt new file mode 100644 index 0000000..7620846 --- /dev/null +++ b/pitReports/export/src/Loan/mutants/21/details.txt @@ -0,0 +1 @@ +MutationDetails [id=MutationIdentifier [location=Location [clazz=src.Loan, method=calculateMonthlyPayment, methodDesc=(DDI)D], indexes=[46], mutator=org.pitest.mutationtest.engine.gregor.mutators.returns.PrimitiveReturnsMutator], filename=Loan.java, block=[5], lineNumber=48, description=replaced double return with 0.0d for src/Loan::calculateMonthlyPayment, testsInOrder=[]] diff --git a/pitReports/export/src/Loan/mutants/21/src.Loan.class b/pitReports/export/src/Loan/mutants/21/src.Loan.class new file mode 100644 index 0000000..788ba39 Binary files /dev/null and b/pitReports/export/src/Loan/mutants/21/src.Loan.class differ diff --git a/pitReports/export/src/Loan/mutants/21/src.Loan.txt b/pitReports/export/src/Loan/mutants/21/src.Loan.txt new file mode 100644 index 0000000..195f926 --- /dev/null +++ b/pitReports/export/src/Loan/mutants/21/src.Loan.txt @@ -0,0 +1,203 @@ +// class version 61.0 (61) +// access flags 0x21 +public class src/Loan { + + // compiled from: Loan.java + // access flags 0x19 + public final static INNERCLASS java/lang/invoke/MethodHandles$Lookup java/lang/invoke/MethodHandles Lookup + + // access flags 0x1 + public ()V + L0 + LINENUMBER 4 L0 + ALOAD 0 + INVOKESPECIAL java/lang/Object. ()V + RETURN + MAXSTACK = 1 + MAXLOCALS = 1 + + // access flags 0x9 + public static main([Ljava/lang/String;)V + L0 + LINENUMBER 8 L0 + NEW java/util/Scanner + DUP + GETSTATIC java/lang/System.in : Ljava/io/InputStream; + INVOKESPECIAL java/util/Scanner. (Ljava/io/InputStream;)V + ASTORE 1 + L1 + LINENUMBER 12 L1 + GETSTATIC java/lang/System.out : Ljava/io/PrintStream; + LDC "Enter Debt value in Euros : " + INVOKEVIRTUAL java/io/PrintStream.print (Ljava/lang/String;)V + L2 + LINENUMBER 13 L2 + ALOAD 1 + INVOKEVIRTUAL java/util/Scanner.nextDouble ()D + DSTORE 2 + L3 + LINENUMBER 15 L3 + GETSTATIC java/lang/System.out : Ljava/io/PrintStream; + LDC "Enter Interest rate in Percentage : " + INVOKEVIRTUAL java/io/PrintStream.print (Ljava/lang/String;)V + L4 + LINENUMBER 16 L4 + ALOAD 1 + INVOKEVIRTUAL java/util/Scanner.nextDouble ()D + DSTORE 4 + L5 + LINENUMBER 18 L5 + GETSTATIC java/lang/System.out : Ljava/io/PrintStream; + LDC "Enter Payback Duration in months : " + INVOKEVIRTUAL java/io/PrintStream.print (Ljava/lang/String;)V + L6 + LINENUMBER 19 L6 + ALOAD 1 + INVOKEVIRTUAL java/util/Scanner.nextInt ()I + ISTORE 6 + L7 + LINENUMBER 22 L7 + ALOAD 1 + INVOKEVIRTUAL java/util/Scanner.close ()V + L8 + LINENUMBER 25 L8 + DLOAD 2 + DLOAD 4 + ILOAD 6 + INVOKESTATIC src/Loan.calculateMonthlyPayment (DDI)D + DSTORE 7 + L9 + LINENUMBER 28 L9 + ILOAD 6 + DLOAD 7 + INVOKESTATIC src/Loan.calculateOverallDebt (ID)D + DSTORE 9 + L10 + LINENUMBER 31 L10 + GETSTATIC java/lang/System.out : Ljava/io/PrintStream; + LDC "-------------------------------------------------\n" + INVOKEVIRTUAL java/io/PrintStream.print (Ljava/lang/String;)V + L11 + LINENUMBER 32 L11 + GETSTATIC java/lang/System.out : Ljava/io/PrintStream; + DLOAD 7 + INVOKEDYNAMIC makeConcatWithConstants(D)Ljava/lang/String; [ + // handle kind 0x6 : INVOKESTATIC + java/lang/invoke/StringConcatFactory.makeConcatWithConstants(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/invoke/CallSite; + // arguments: + "Monthly Payment: \u0001 euros" + ] + INVOKEVIRTUAL java/io/PrintStream.println (Ljava/lang/String;)V + L12 + LINENUMBER 33 L12 + GETSTATIC java/lang/System.out : Ljava/io/PrintStream; + ILOAD 6 + INVOKEDYNAMIC makeConcatWithConstants(I)Ljava/lang/String; [ + // handle kind 0x6 : INVOKESTATIC + java/lang/invoke/StringConcatFactory.makeConcatWithConstants(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/invoke/CallSite; + // arguments: + "Number of Rates: \u0001" + ] + INVOKEVIRTUAL java/io/PrintStream.println (Ljava/lang/String;)V + L13 + LINENUMBER 34 L13 + GETSTATIC java/lang/System.out : Ljava/io/PrintStream; + ILOAD 6 + DLOAD 9 + INVOKEDYNAMIC makeConcatWithConstants(ID)Ljava/lang/String; [ + // handle kind 0x6 : INVOKESTATIC + java/lang/invoke/StringConcatFactory.makeConcatWithConstants(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/invoke/CallSite; + // arguments: + "Overall Debt at the end of \u0001 months: \u0001 euros" + ] + INVOKEVIRTUAL java/io/PrintStream.println (Ljava/lang/String;)V + L14 + LINENUMBER 35 L14 + RETURN + MAXSTACK = 5 + MAXLOCALS = 11 + + // access flags 0x9 + public static calculateMonthlyPayment(DDI)D + L0 + LINENUMBER 40 L0 + DLOAD 0 + DCONST_0 + DCMPG + IFLE L1 + DLOAD 2 + DCONST_0 + DCMPG + IFLE L1 + ILOAD 4 + IFGT L2 + L1 + LINENUMBER 42 L1 + FRAME FULL [D D I] [] + DCONST_0 + DRETURN + L2 + LINENUMBER 46 L2 + FRAME FULL [D D I] [] + DLOAD 2 + LDC 100.0 + DDIV + LDC 12.0 + DDIV + DSTORE 5 + L3 + LINENUMBER 47 L3 + DLOAD 5 + DLOAD 0 + DMUL + DCONST_1 + DCONST_1 + DLOAD 5 + DADD + ILOAD 4 + INEG + I2D + INVOKESTATIC java/lang/Math.pow (DD)D + DSUB + DDIV + DSTORE 7 + L4 + LINENUMBER 48 L4 + DLOAD 7 + POP2 + DCONST_0 + DRETURN + MAXSTACK = 8 + MAXLOCALS = 9 + + // access flags 0x9 + public static calculateOverallDebt(ID)D + L0 + LINENUMBER 55 L0 + ILOAD 0 + IFLE L1 + DLOAD 1 + DCONST_0 + DCMPG + IFGT L2 + L1 + LINENUMBER 57 L1 + FRAME FULL [I D] [] + DCONST_0 + DRETURN + L2 + LINENUMBER 61 L2 + FRAME FULL [I D] [] + DLOAD 1 + ILOAD 0 + I2D + DMUL + DSTORE 3 + L3 + LINENUMBER 62 L3 + DLOAD 3 + DRETURN + MAXSTACK = 4 + MAXLOCALS = 5 +} + diff --git a/pitReports/export/src/Loan/mutants/22/details.txt b/pitReports/export/src/Loan/mutants/22/details.txt new file mode 100644 index 0000000..1fdc973 --- /dev/null +++ b/pitReports/export/src/Loan/mutants/22/details.txt @@ -0,0 +1 @@ +MutationDetails [id=MutationIdentifier [location=Location [clazz=src.Loan, method=calculateOverallDebt, methodDesc=(ID)D], indexes=[4], mutator=org.pitest.mutationtest.engine.gregor.mutators.NegateConditionalsMutator], filename=Loan.java, block=[0], lineNumber=55, description=negated conditional, testsInOrder=[]] diff --git a/pitReports/export/src/Loan/mutants/22/src.Loan.class b/pitReports/export/src/Loan/mutants/22/src.Loan.class new file mode 100644 index 0000000..0a606cf Binary files /dev/null and b/pitReports/export/src/Loan/mutants/22/src.Loan.class differ diff --git a/pitReports/export/src/Loan/mutants/22/src.Loan.txt b/pitReports/export/src/Loan/mutants/22/src.Loan.txt new file mode 100644 index 0000000..1754486 --- /dev/null +++ b/pitReports/export/src/Loan/mutants/22/src.Loan.txt @@ -0,0 +1,201 @@ +// class version 61.0 (61) +// access flags 0x21 +public class src/Loan { + + // compiled from: Loan.java + // access flags 0x19 + public final static INNERCLASS java/lang/invoke/MethodHandles$Lookup java/lang/invoke/MethodHandles Lookup + + // access flags 0x1 + public ()V + L0 + LINENUMBER 4 L0 + ALOAD 0 + INVOKESPECIAL java/lang/Object. ()V + RETURN + MAXSTACK = 1 + MAXLOCALS = 1 + + // access flags 0x9 + public static main([Ljava/lang/String;)V + L0 + LINENUMBER 8 L0 + NEW java/util/Scanner + DUP + GETSTATIC java/lang/System.in : Ljava/io/InputStream; + INVOKESPECIAL java/util/Scanner. (Ljava/io/InputStream;)V + ASTORE 1 + L1 + LINENUMBER 12 L1 + GETSTATIC java/lang/System.out : Ljava/io/PrintStream; + LDC "Enter Debt value in Euros : " + INVOKEVIRTUAL java/io/PrintStream.print (Ljava/lang/String;)V + L2 + LINENUMBER 13 L2 + ALOAD 1 + INVOKEVIRTUAL java/util/Scanner.nextDouble ()D + DSTORE 2 + L3 + LINENUMBER 15 L3 + GETSTATIC java/lang/System.out : Ljava/io/PrintStream; + LDC "Enter Interest rate in Percentage : " + INVOKEVIRTUAL java/io/PrintStream.print (Ljava/lang/String;)V + L4 + LINENUMBER 16 L4 + ALOAD 1 + INVOKEVIRTUAL java/util/Scanner.nextDouble ()D + DSTORE 4 + L5 + LINENUMBER 18 L5 + GETSTATIC java/lang/System.out : Ljava/io/PrintStream; + LDC "Enter Payback Duration in months : " + INVOKEVIRTUAL java/io/PrintStream.print (Ljava/lang/String;)V + L6 + LINENUMBER 19 L6 + ALOAD 1 + INVOKEVIRTUAL java/util/Scanner.nextInt ()I + ISTORE 6 + L7 + LINENUMBER 22 L7 + ALOAD 1 + INVOKEVIRTUAL java/util/Scanner.close ()V + L8 + LINENUMBER 25 L8 + DLOAD 2 + DLOAD 4 + ILOAD 6 + INVOKESTATIC src/Loan.calculateMonthlyPayment (DDI)D + DSTORE 7 + L9 + LINENUMBER 28 L9 + ILOAD 6 + DLOAD 7 + INVOKESTATIC src/Loan.calculateOverallDebt (ID)D + DSTORE 9 + L10 + LINENUMBER 31 L10 + GETSTATIC java/lang/System.out : Ljava/io/PrintStream; + LDC "-------------------------------------------------\n" + INVOKEVIRTUAL java/io/PrintStream.print (Ljava/lang/String;)V + L11 + LINENUMBER 32 L11 + GETSTATIC java/lang/System.out : Ljava/io/PrintStream; + DLOAD 7 + INVOKEDYNAMIC makeConcatWithConstants(D)Ljava/lang/String; [ + // handle kind 0x6 : INVOKESTATIC + java/lang/invoke/StringConcatFactory.makeConcatWithConstants(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/invoke/CallSite; + // arguments: + "Monthly Payment: \u0001 euros" + ] + INVOKEVIRTUAL java/io/PrintStream.println (Ljava/lang/String;)V + L12 + LINENUMBER 33 L12 + GETSTATIC java/lang/System.out : Ljava/io/PrintStream; + ILOAD 6 + INVOKEDYNAMIC makeConcatWithConstants(I)Ljava/lang/String; [ + // handle kind 0x6 : INVOKESTATIC + java/lang/invoke/StringConcatFactory.makeConcatWithConstants(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/invoke/CallSite; + // arguments: + "Number of Rates: \u0001" + ] + INVOKEVIRTUAL java/io/PrintStream.println (Ljava/lang/String;)V + L13 + LINENUMBER 34 L13 + GETSTATIC java/lang/System.out : Ljava/io/PrintStream; + ILOAD 6 + DLOAD 9 + INVOKEDYNAMIC makeConcatWithConstants(ID)Ljava/lang/String; [ + // handle kind 0x6 : INVOKESTATIC + java/lang/invoke/StringConcatFactory.makeConcatWithConstants(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/invoke/CallSite; + // arguments: + "Overall Debt at the end of \u0001 months: \u0001 euros" + ] + INVOKEVIRTUAL java/io/PrintStream.println (Ljava/lang/String;)V + L14 + LINENUMBER 35 L14 + RETURN + MAXSTACK = 5 + MAXLOCALS = 11 + + // access flags 0x9 + public static calculateMonthlyPayment(DDI)D + L0 + LINENUMBER 40 L0 + DLOAD 0 + DCONST_0 + DCMPG + IFLE L1 + DLOAD 2 + DCONST_0 + DCMPG + IFLE L1 + ILOAD 4 + IFGT L2 + L1 + LINENUMBER 42 L1 + FRAME FULL [D D I] [] + DCONST_0 + DRETURN + L2 + LINENUMBER 46 L2 + FRAME FULL [D D I] [] + DLOAD 2 + LDC 100.0 + DDIV + LDC 12.0 + DDIV + DSTORE 5 + L3 + LINENUMBER 47 L3 + DLOAD 5 + DLOAD 0 + DMUL + DCONST_1 + DCONST_1 + DLOAD 5 + DADD + ILOAD 4 + INEG + I2D + INVOKESTATIC java/lang/Math.pow (DD)D + DSUB + DDIV + DSTORE 7 + L4 + LINENUMBER 48 L4 + DLOAD 7 + DRETURN + MAXSTACK = 8 + MAXLOCALS = 9 + + // access flags 0x9 + public static calculateOverallDebt(ID)D + L0 + LINENUMBER 55 L0 + ILOAD 0 + IFGT L1 + DLOAD 1 + DCONST_0 + DCMPG + IFGT L2 + L1 + LINENUMBER 57 L1 + FRAME FULL [I D] [] + DCONST_0 + DRETURN + L2 + LINENUMBER 61 L2 + FRAME FULL [I D] [] + DLOAD 1 + ILOAD 0 + I2D + DMUL + DSTORE 3 + L3 + LINENUMBER 62 L3 + DLOAD 3 + DRETURN + MAXSTACK = 4 + MAXLOCALS = 5 +} + diff --git a/pitReports/export/src/Loan/mutants/23/details.txt b/pitReports/export/src/Loan/mutants/23/details.txt new file mode 100644 index 0000000..3cee8e8 --- /dev/null +++ b/pitReports/export/src/Loan/mutants/23/details.txt @@ -0,0 +1 @@ +MutationDetails [id=MutationIdentifier [location=Location [clazz=src.Loan, method=calculateOverallDebt, methodDesc=(ID)D], indexes=[4], mutator=org.pitest.mutationtest.engine.gregor.mutators.ConditionalsBoundaryMutator], filename=Loan.java, block=[0], lineNumber=55, description=changed conditional boundary, testsInOrder=[]] diff --git a/pitReports/export/src/Loan/mutants/23/src.Loan.class b/pitReports/export/src/Loan/mutants/23/src.Loan.class new file mode 100644 index 0000000..6b6132c Binary files /dev/null and b/pitReports/export/src/Loan/mutants/23/src.Loan.class differ diff --git a/pitReports/export/src/Loan/mutants/23/src.Loan.txt b/pitReports/export/src/Loan/mutants/23/src.Loan.txt new file mode 100644 index 0000000..d2a0323 --- /dev/null +++ b/pitReports/export/src/Loan/mutants/23/src.Loan.txt @@ -0,0 +1,201 @@ +// class version 61.0 (61) +// access flags 0x21 +public class src/Loan { + + // compiled from: Loan.java + // access flags 0x19 + public final static INNERCLASS java/lang/invoke/MethodHandles$Lookup java/lang/invoke/MethodHandles Lookup + + // access flags 0x1 + public ()V + L0 + LINENUMBER 4 L0 + ALOAD 0 + INVOKESPECIAL java/lang/Object. ()V + RETURN + MAXSTACK = 1 + MAXLOCALS = 1 + + // access flags 0x9 + public static main([Ljava/lang/String;)V + L0 + LINENUMBER 8 L0 + NEW java/util/Scanner + DUP + GETSTATIC java/lang/System.in : Ljava/io/InputStream; + INVOKESPECIAL java/util/Scanner. (Ljava/io/InputStream;)V + ASTORE 1 + L1 + LINENUMBER 12 L1 + GETSTATIC java/lang/System.out : Ljava/io/PrintStream; + LDC "Enter Debt value in Euros : " + INVOKEVIRTUAL java/io/PrintStream.print (Ljava/lang/String;)V + L2 + LINENUMBER 13 L2 + ALOAD 1 + INVOKEVIRTUAL java/util/Scanner.nextDouble ()D + DSTORE 2 + L3 + LINENUMBER 15 L3 + GETSTATIC java/lang/System.out : Ljava/io/PrintStream; + LDC "Enter Interest rate in Percentage : " + INVOKEVIRTUAL java/io/PrintStream.print (Ljava/lang/String;)V + L4 + LINENUMBER 16 L4 + ALOAD 1 + INVOKEVIRTUAL java/util/Scanner.nextDouble ()D + DSTORE 4 + L5 + LINENUMBER 18 L5 + GETSTATIC java/lang/System.out : Ljava/io/PrintStream; + LDC "Enter Payback Duration in months : " + INVOKEVIRTUAL java/io/PrintStream.print (Ljava/lang/String;)V + L6 + LINENUMBER 19 L6 + ALOAD 1 + INVOKEVIRTUAL java/util/Scanner.nextInt ()I + ISTORE 6 + L7 + LINENUMBER 22 L7 + ALOAD 1 + INVOKEVIRTUAL java/util/Scanner.close ()V + L8 + LINENUMBER 25 L8 + DLOAD 2 + DLOAD 4 + ILOAD 6 + INVOKESTATIC src/Loan.calculateMonthlyPayment (DDI)D + DSTORE 7 + L9 + LINENUMBER 28 L9 + ILOAD 6 + DLOAD 7 + INVOKESTATIC src/Loan.calculateOverallDebt (ID)D + DSTORE 9 + L10 + LINENUMBER 31 L10 + GETSTATIC java/lang/System.out : Ljava/io/PrintStream; + LDC "-------------------------------------------------\n" + INVOKEVIRTUAL java/io/PrintStream.print (Ljava/lang/String;)V + L11 + LINENUMBER 32 L11 + GETSTATIC java/lang/System.out : Ljava/io/PrintStream; + DLOAD 7 + INVOKEDYNAMIC makeConcatWithConstants(D)Ljava/lang/String; [ + // handle kind 0x6 : INVOKESTATIC + java/lang/invoke/StringConcatFactory.makeConcatWithConstants(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/invoke/CallSite; + // arguments: + "Monthly Payment: \u0001 euros" + ] + INVOKEVIRTUAL java/io/PrintStream.println (Ljava/lang/String;)V + L12 + LINENUMBER 33 L12 + GETSTATIC java/lang/System.out : Ljava/io/PrintStream; + ILOAD 6 + INVOKEDYNAMIC makeConcatWithConstants(I)Ljava/lang/String; [ + // handle kind 0x6 : INVOKESTATIC + java/lang/invoke/StringConcatFactory.makeConcatWithConstants(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/invoke/CallSite; + // arguments: + "Number of Rates: \u0001" + ] + INVOKEVIRTUAL java/io/PrintStream.println (Ljava/lang/String;)V + L13 + LINENUMBER 34 L13 + GETSTATIC java/lang/System.out : Ljava/io/PrintStream; + ILOAD 6 + DLOAD 9 + INVOKEDYNAMIC makeConcatWithConstants(ID)Ljava/lang/String; [ + // handle kind 0x6 : INVOKESTATIC + java/lang/invoke/StringConcatFactory.makeConcatWithConstants(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/invoke/CallSite; + // arguments: + "Overall Debt at the end of \u0001 months: \u0001 euros" + ] + INVOKEVIRTUAL java/io/PrintStream.println (Ljava/lang/String;)V + L14 + LINENUMBER 35 L14 + RETURN + MAXSTACK = 5 + MAXLOCALS = 11 + + // access flags 0x9 + public static calculateMonthlyPayment(DDI)D + L0 + LINENUMBER 40 L0 + DLOAD 0 + DCONST_0 + DCMPG + IFLE L1 + DLOAD 2 + DCONST_0 + DCMPG + IFLE L1 + ILOAD 4 + IFGT L2 + L1 + LINENUMBER 42 L1 + FRAME FULL [D D I] [] + DCONST_0 + DRETURN + L2 + LINENUMBER 46 L2 + FRAME FULL [D D I] [] + DLOAD 2 + LDC 100.0 + DDIV + LDC 12.0 + DDIV + DSTORE 5 + L3 + LINENUMBER 47 L3 + DLOAD 5 + DLOAD 0 + DMUL + DCONST_1 + DCONST_1 + DLOAD 5 + DADD + ILOAD 4 + INEG + I2D + INVOKESTATIC java/lang/Math.pow (DD)D + DSUB + DDIV + DSTORE 7 + L4 + LINENUMBER 48 L4 + DLOAD 7 + DRETURN + MAXSTACK = 8 + MAXLOCALS = 9 + + // access flags 0x9 + public static calculateOverallDebt(ID)D + L0 + LINENUMBER 55 L0 + ILOAD 0 + IFLT L1 + DLOAD 1 + DCONST_0 + DCMPG + IFGT L2 + L1 + LINENUMBER 57 L1 + FRAME FULL [I D] [] + DCONST_0 + DRETURN + L2 + LINENUMBER 61 L2 + FRAME FULL [I D] [] + DLOAD 1 + ILOAD 0 + I2D + DMUL + DSTORE 3 + L3 + LINENUMBER 62 L3 + DLOAD 3 + DRETURN + MAXSTACK = 4 + MAXLOCALS = 5 +} + diff --git a/pitReports/export/src/Loan/mutants/24/details.txt b/pitReports/export/src/Loan/mutants/24/details.txt new file mode 100644 index 0000000..2408abe --- /dev/null +++ b/pitReports/export/src/Loan/mutants/24/details.txt @@ -0,0 +1 @@ +MutationDetails [id=MutationIdentifier [location=Location [clazz=src.Loan, method=calculateOverallDebt, methodDesc=(ID)D], indexes=[8], mutator=org.pitest.mutationtest.engine.gregor.mutators.NegateConditionalsMutator], filename=Loan.java, block=[1], lineNumber=55, description=negated conditional, testsInOrder=[]] diff --git a/pitReports/export/src/Loan/mutants/24/src.Loan.class b/pitReports/export/src/Loan/mutants/24/src.Loan.class new file mode 100644 index 0000000..f1fd845 Binary files /dev/null and b/pitReports/export/src/Loan/mutants/24/src.Loan.class differ diff --git a/pitReports/export/src/Loan/mutants/24/src.Loan.txt b/pitReports/export/src/Loan/mutants/24/src.Loan.txt new file mode 100644 index 0000000..a3f278b --- /dev/null +++ b/pitReports/export/src/Loan/mutants/24/src.Loan.txt @@ -0,0 +1,201 @@ +// class version 61.0 (61) +// access flags 0x21 +public class src/Loan { + + // compiled from: Loan.java + // access flags 0x19 + public final static INNERCLASS java/lang/invoke/MethodHandles$Lookup java/lang/invoke/MethodHandles Lookup + + // access flags 0x1 + public ()V + L0 + LINENUMBER 4 L0 + ALOAD 0 + INVOKESPECIAL java/lang/Object. ()V + RETURN + MAXSTACK = 1 + MAXLOCALS = 1 + + // access flags 0x9 + public static main([Ljava/lang/String;)V + L0 + LINENUMBER 8 L0 + NEW java/util/Scanner + DUP + GETSTATIC java/lang/System.in : Ljava/io/InputStream; + INVOKESPECIAL java/util/Scanner. (Ljava/io/InputStream;)V + ASTORE 1 + L1 + LINENUMBER 12 L1 + GETSTATIC java/lang/System.out : Ljava/io/PrintStream; + LDC "Enter Debt value in Euros : " + INVOKEVIRTUAL java/io/PrintStream.print (Ljava/lang/String;)V + L2 + LINENUMBER 13 L2 + ALOAD 1 + INVOKEVIRTUAL java/util/Scanner.nextDouble ()D + DSTORE 2 + L3 + LINENUMBER 15 L3 + GETSTATIC java/lang/System.out : Ljava/io/PrintStream; + LDC "Enter Interest rate in Percentage : " + INVOKEVIRTUAL java/io/PrintStream.print (Ljava/lang/String;)V + L4 + LINENUMBER 16 L4 + ALOAD 1 + INVOKEVIRTUAL java/util/Scanner.nextDouble ()D + DSTORE 4 + L5 + LINENUMBER 18 L5 + GETSTATIC java/lang/System.out : Ljava/io/PrintStream; + LDC "Enter Payback Duration in months : " + INVOKEVIRTUAL java/io/PrintStream.print (Ljava/lang/String;)V + L6 + LINENUMBER 19 L6 + ALOAD 1 + INVOKEVIRTUAL java/util/Scanner.nextInt ()I + ISTORE 6 + L7 + LINENUMBER 22 L7 + ALOAD 1 + INVOKEVIRTUAL java/util/Scanner.close ()V + L8 + LINENUMBER 25 L8 + DLOAD 2 + DLOAD 4 + ILOAD 6 + INVOKESTATIC src/Loan.calculateMonthlyPayment (DDI)D + DSTORE 7 + L9 + LINENUMBER 28 L9 + ILOAD 6 + DLOAD 7 + INVOKESTATIC src/Loan.calculateOverallDebt (ID)D + DSTORE 9 + L10 + LINENUMBER 31 L10 + GETSTATIC java/lang/System.out : Ljava/io/PrintStream; + LDC "-------------------------------------------------\n" + INVOKEVIRTUAL java/io/PrintStream.print (Ljava/lang/String;)V + L11 + LINENUMBER 32 L11 + GETSTATIC java/lang/System.out : Ljava/io/PrintStream; + DLOAD 7 + INVOKEDYNAMIC makeConcatWithConstants(D)Ljava/lang/String; [ + // handle kind 0x6 : INVOKESTATIC + java/lang/invoke/StringConcatFactory.makeConcatWithConstants(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/invoke/CallSite; + // arguments: + "Monthly Payment: \u0001 euros" + ] + INVOKEVIRTUAL java/io/PrintStream.println (Ljava/lang/String;)V + L12 + LINENUMBER 33 L12 + GETSTATIC java/lang/System.out : Ljava/io/PrintStream; + ILOAD 6 + INVOKEDYNAMIC makeConcatWithConstants(I)Ljava/lang/String; [ + // handle kind 0x6 : INVOKESTATIC + java/lang/invoke/StringConcatFactory.makeConcatWithConstants(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/invoke/CallSite; + // arguments: + "Number of Rates: \u0001" + ] + INVOKEVIRTUAL java/io/PrintStream.println (Ljava/lang/String;)V + L13 + LINENUMBER 34 L13 + GETSTATIC java/lang/System.out : Ljava/io/PrintStream; + ILOAD 6 + DLOAD 9 + INVOKEDYNAMIC makeConcatWithConstants(ID)Ljava/lang/String; [ + // handle kind 0x6 : INVOKESTATIC + java/lang/invoke/StringConcatFactory.makeConcatWithConstants(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/invoke/CallSite; + // arguments: + "Overall Debt at the end of \u0001 months: \u0001 euros" + ] + INVOKEVIRTUAL java/io/PrintStream.println (Ljava/lang/String;)V + L14 + LINENUMBER 35 L14 + RETURN + MAXSTACK = 5 + MAXLOCALS = 11 + + // access flags 0x9 + public static calculateMonthlyPayment(DDI)D + L0 + LINENUMBER 40 L0 + DLOAD 0 + DCONST_0 + DCMPG + IFLE L1 + DLOAD 2 + DCONST_0 + DCMPG + IFLE L1 + ILOAD 4 + IFGT L2 + L1 + LINENUMBER 42 L1 + FRAME FULL [D D I] [] + DCONST_0 + DRETURN + L2 + LINENUMBER 46 L2 + FRAME FULL [D D I] [] + DLOAD 2 + LDC 100.0 + DDIV + LDC 12.0 + DDIV + DSTORE 5 + L3 + LINENUMBER 47 L3 + DLOAD 5 + DLOAD 0 + DMUL + DCONST_1 + DCONST_1 + DLOAD 5 + DADD + ILOAD 4 + INEG + I2D + INVOKESTATIC java/lang/Math.pow (DD)D + DSUB + DDIV + DSTORE 7 + L4 + LINENUMBER 48 L4 + DLOAD 7 + DRETURN + MAXSTACK = 8 + MAXLOCALS = 9 + + // access flags 0x9 + public static calculateOverallDebt(ID)D + L0 + LINENUMBER 55 L0 + ILOAD 0 + IFLE L1 + DLOAD 1 + DCONST_0 + DCMPG + IFLE L2 + L1 + LINENUMBER 57 L1 + FRAME FULL [I D] [] + DCONST_0 + DRETURN + L2 + LINENUMBER 61 L2 + FRAME FULL [I D] [] + DLOAD 1 + ILOAD 0 + I2D + DMUL + DSTORE 3 + L3 + LINENUMBER 62 L3 + DLOAD 3 + DRETURN + MAXSTACK = 4 + MAXLOCALS = 5 +} + diff --git a/pitReports/export/src/Loan/mutants/25/details.txt b/pitReports/export/src/Loan/mutants/25/details.txt new file mode 100644 index 0000000..6844c67 --- /dev/null +++ b/pitReports/export/src/Loan/mutants/25/details.txt @@ -0,0 +1 @@ +MutationDetails [id=MutationIdentifier [location=Location [clazz=src.Loan, method=calculateOverallDebt, methodDesc=(ID)D], indexes=[8], mutator=org.pitest.mutationtest.engine.gregor.mutators.ConditionalsBoundaryMutator], filename=Loan.java, block=[1], lineNumber=55, description=changed conditional boundary, testsInOrder=[]] diff --git a/pitReports/export/src/Loan/mutants/25/src.Loan.class b/pitReports/export/src/Loan/mutants/25/src.Loan.class new file mode 100644 index 0000000..3894652 Binary files /dev/null and b/pitReports/export/src/Loan/mutants/25/src.Loan.class differ diff --git a/pitReports/export/src/Loan/mutants/25/src.Loan.txt b/pitReports/export/src/Loan/mutants/25/src.Loan.txt new file mode 100644 index 0000000..cce888e --- /dev/null +++ b/pitReports/export/src/Loan/mutants/25/src.Loan.txt @@ -0,0 +1,201 @@ +// class version 61.0 (61) +// access flags 0x21 +public class src/Loan { + + // compiled from: Loan.java + // access flags 0x19 + public final static INNERCLASS java/lang/invoke/MethodHandles$Lookup java/lang/invoke/MethodHandles Lookup + + // access flags 0x1 + public ()V + L0 + LINENUMBER 4 L0 + ALOAD 0 + INVOKESPECIAL java/lang/Object. ()V + RETURN + MAXSTACK = 1 + MAXLOCALS = 1 + + // access flags 0x9 + public static main([Ljava/lang/String;)V + L0 + LINENUMBER 8 L0 + NEW java/util/Scanner + DUP + GETSTATIC java/lang/System.in : Ljava/io/InputStream; + INVOKESPECIAL java/util/Scanner. (Ljava/io/InputStream;)V + ASTORE 1 + L1 + LINENUMBER 12 L1 + GETSTATIC java/lang/System.out : Ljava/io/PrintStream; + LDC "Enter Debt value in Euros : " + INVOKEVIRTUAL java/io/PrintStream.print (Ljava/lang/String;)V + L2 + LINENUMBER 13 L2 + ALOAD 1 + INVOKEVIRTUAL java/util/Scanner.nextDouble ()D + DSTORE 2 + L3 + LINENUMBER 15 L3 + GETSTATIC java/lang/System.out : Ljava/io/PrintStream; + LDC "Enter Interest rate in Percentage : " + INVOKEVIRTUAL java/io/PrintStream.print (Ljava/lang/String;)V + L4 + LINENUMBER 16 L4 + ALOAD 1 + INVOKEVIRTUAL java/util/Scanner.nextDouble ()D + DSTORE 4 + L5 + LINENUMBER 18 L5 + GETSTATIC java/lang/System.out : Ljava/io/PrintStream; + LDC "Enter Payback Duration in months : " + INVOKEVIRTUAL java/io/PrintStream.print (Ljava/lang/String;)V + L6 + LINENUMBER 19 L6 + ALOAD 1 + INVOKEVIRTUAL java/util/Scanner.nextInt ()I + ISTORE 6 + L7 + LINENUMBER 22 L7 + ALOAD 1 + INVOKEVIRTUAL java/util/Scanner.close ()V + L8 + LINENUMBER 25 L8 + DLOAD 2 + DLOAD 4 + ILOAD 6 + INVOKESTATIC src/Loan.calculateMonthlyPayment (DDI)D + DSTORE 7 + L9 + LINENUMBER 28 L9 + ILOAD 6 + DLOAD 7 + INVOKESTATIC src/Loan.calculateOverallDebt (ID)D + DSTORE 9 + L10 + LINENUMBER 31 L10 + GETSTATIC java/lang/System.out : Ljava/io/PrintStream; + LDC "-------------------------------------------------\n" + INVOKEVIRTUAL java/io/PrintStream.print (Ljava/lang/String;)V + L11 + LINENUMBER 32 L11 + GETSTATIC java/lang/System.out : Ljava/io/PrintStream; + DLOAD 7 + INVOKEDYNAMIC makeConcatWithConstants(D)Ljava/lang/String; [ + // handle kind 0x6 : INVOKESTATIC + java/lang/invoke/StringConcatFactory.makeConcatWithConstants(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/invoke/CallSite; + // arguments: + "Monthly Payment: \u0001 euros" + ] + INVOKEVIRTUAL java/io/PrintStream.println (Ljava/lang/String;)V + L12 + LINENUMBER 33 L12 + GETSTATIC java/lang/System.out : Ljava/io/PrintStream; + ILOAD 6 + INVOKEDYNAMIC makeConcatWithConstants(I)Ljava/lang/String; [ + // handle kind 0x6 : INVOKESTATIC + java/lang/invoke/StringConcatFactory.makeConcatWithConstants(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/invoke/CallSite; + // arguments: + "Number of Rates: \u0001" + ] + INVOKEVIRTUAL java/io/PrintStream.println (Ljava/lang/String;)V + L13 + LINENUMBER 34 L13 + GETSTATIC java/lang/System.out : Ljava/io/PrintStream; + ILOAD 6 + DLOAD 9 + INVOKEDYNAMIC makeConcatWithConstants(ID)Ljava/lang/String; [ + // handle kind 0x6 : INVOKESTATIC + java/lang/invoke/StringConcatFactory.makeConcatWithConstants(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/invoke/CallSite; + // arguments: + "Overall Debt at the end of \u0001 months: \u0001 euros" + ] + INVOKEVIRTUAL java/io/PrintStream.println (Ljava/lang/String;)V + L14 + LINENUMBER 35 L14 + RETURN + MAXSTACK = 5 + MAXLOCALS = 11 + + // access flags 0x9 + public static calculateMonthlyPayment(DDI)D + L0 + LINENUMBER 40 L0 + DLOAD 0 + DCONST_0 + DCMPG + IFLE L1 + DLOAD 2 + DCONST_0 + DCMPG + IFLE L1 + ILOAD 4 + IFGT L2 + L1 + LINENUMBER 42 L1 + FRAME FULL [D D I] [] + DCONST_0 + DRETURN + L2 + LINENUMBER 46 L2 + FRAME FULL [D D I] [] + DLOAD 2 + LDC 100.0 + DDIV + LDC 12.0 + DDIV + DSTORE 5 + L3 + LINENUMBER 47 L3 + DLOAD 5 + DLOAD 0 + DMUL + DCONST_1 + DCONST_1 + DLOAD 5 + DADD + ILOAD 4 + INEG + I2D + INVOKESTATIC java/lang/Math.pow (DD)D + DSUB + DDIV + DSTORE 7 + L4 + LINENUMBER 48 L4 + DLOAD 7 + DRETURN + MAXSTACK = 8 + MAXLOCALS = 9 + + // access flags 0x9 + public static calculateOverallDebt(ID)D + L0 + LINENUMBER 55 L0 + ILOAD 0 + IFLE L1 + DLOAD 1 + DCONST_0 + DCMPG + IFGE L2 + L1 + LINENUMBER 57 L1 + FRAME FULL [I D] [] + DCONST_0 + DRETURN + L2 + LINENUMBER 61 L2 + FRAME FULL [I D] [] + DLOAD 1 + ILOAD 0 + I2D + DMUL + DSTORE 3 + L3 + LINENUMBER 62 L3 + DLOAD 3 + DRETURN + MAXSTACK = 4 + MAXLOCALS = 5 +} + diff --git a/pitReports/export/src/Loan/mutants/26/details.txt b/pitReports/export/src/Loan/mutants/26/details.txt new file mode 100644 index 0000000..dda1c3e --- /dev/null +++ b/pitReports/export/src/Loan/mutants/26/details.txt @@ -0,0 +1 @@ +MutationDetails [id=MutationIdentifier [location=Location [clazz=src.Loan, method=calculateOverallDebt, methodDesc=(ID)D], indexes=[20], mutator=org.pitest.mutationtest.engine.gregor.mutators.MathMutator], filename=Loan.java, block=[3], lineNumber=61, description=Replaced double multiplication with division, testsInOrder=[]] diff --git a/pitReports/export/src/Loan/mutants/26/src.Loan.class b/pitReports/export/src/Loan/mutants/26/src.Loan.class new file mode 100644 index 0000000..31ae251 Binary files /dev/null and b/pitReports/export/src/Loan/mutants/26/src.Loan.class differ diff --git a/pitReports/export/src/Loan/mutants/26/src.Loan.txt b/pitReports/export/src/Loan/mutants/26/src.Loan.txt new file mode 100644 index 0000000..12834fd --- /dev/null +++ b/pitReports/export/src/Loan/mutants/26/src.Loan.txt @@ -0,0 +1,201 @@ +// class version 61.0 (61) +// access flags 0x21 +public class src/Loan { + + // compiled from: Loan.java + // access flags 0x19 + public final static INNERCLASS java/lang/invoke/MethodHandles$Lookup java/lang/invoke/MethodHandles Lookup + + // access flags 0x1 + public ()V + L0 + LINENUMBER 4 L0 + ALOAD 0 + INVOKESPECIAL java/lang/Object. ()V + RETURN + MAXSTACK = 1 + MAXLOCALS = 1 + + // access flags 0x9 + public static main([Ljava/lang/String;)V + L0 + LINENUMBER 8 L0 + NEW java/util/Scanner + DUP + GETSTATIC java/lang/System.in : Ljava/io/InputStream; + INVOKESPECIAL java/util/Scanner. (Ljava/io/InputStream;)V + ASTORE 1 + L1 + LINENUMBER 12 L1 + GETSTATIC java/lang/System.out : Ljava/io/PrintStream; + LDC "Enter Debt value in Euros : " + INVOKEVIRTUAL java/io/PrintStream.print (Ljava/lang/String;)V + L2 + LINENUMBER 13 L2 + ALOAD 1 + INVOKEVIRTUAL java/util/Scanner.nextDouble ()D + DSTORE 2 + L3 + LINENUMBER 15 L3 + GETSTATIC java/lang/System.out : Ljava/io/PrintStream; + LDC "Enter Interest rate in Percentage : " + INVOKEVIRTUAL java/io/PrintStream.print (Ljava/lang/String;)V + L4 + LINENUMBER 16 L4 + ALOAD 1 + INVOKEVIRTUAL java/util/Scanner.nextDouble ()D + DSTORE 4 + L5 + LINENUMBER 18 L5 + GETSTATIC java/lang/System.out : Ljava/io/PrintStream; + LDC "Enter Payback Duration in months : " + INVOKEVIRTUAL java/io/PrintStream.print (Ljava/lang/String;)V + L6 + LINENUMBER 19 L6 + ALOAD 1 + INVOKEVIRTUAL java/util/Scanner.nextInt ()I + ISTORE 6 + L7 + LINENUMBER 22 L7 + ALOAD 1 + INVOKEVIRTUAL java/util/Scanner.close ()V + L8 + LINENUMBER 25 L8 + DLOAD 2 + DLOAD 4 + ILOAD 6 + INVOKESTATIC src/Loan.calculateMonthlyPayment (DDI)D + DSTORE 7 + L9 + LINENUMBER 28 L9 + ILOAD 6 + DLOAD 7 + INVOKESTATIC src/Loan.calculateOverallDebt (ID)D + DSTORE 9 + L10 + LINENUMBER 31 L10 + GETSTATIC java/lang/System.out : Ljava/io/PrintStream; + LDC "-------------------------------------------------\n" + INVOKEVIRTUAL java/io/PrintStream.print (Ljava/lang/String;)V + L11 + LINENUMBER 32 L11 + GETSTATIC java/lang/System.out : Ljava/io/PrintStream; + DLOAD 7 + INVOKEDYNAMIC makeConcatWithConstants(D)Ljava/lang/String; [ + // handle kind 0x6 : INVOKESTATIC + java/lang/invoke/StringConcatFactory.makeConcatWithConstants(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/invoke/CallSite; + // arguments: + "Monthly Payment: \u0001 euros" + ] + INVOKEVIRTUAL java/io/PrintStream.println (Ljava/lang/String;)V + L12 + LINENUMBER 33 L12 + GETSTATIC java/lang/System.out : Ljava/io/PrintStream; + ILOAD 6 + INVOKEDYNAMIC makeConcatWithConstants(I)Ljava/lang/String; [ + // handle kind 0x6 : INVOKESTATIC + java/lang/invoke/StringConcatFactory.makeConcatWithConstants(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/invoke/CallSite; + // arguments: + "Number of Rates: \u0001" + ] + INVOKEVIRTUAL java/io/PrintStream.println (Ljava/lang/String;)V + L13 + LINENUMBER 34 L13 + GETSTATIC java/lang/System.out : Ljava/io/PrintStream; + ILOAD 6 + DLOAD 9 + INVOKEDYNAMIC makeConcatWithConstants(ID)Ljava/lang/String; [ + // handle kind 0x6 : INVOKESTATIC + java/lang/invoke/StringConcatFactory.makeConcatWithConstants(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/invoke/CallSite; + // arguments: + "Overall Debt at the end of \u0001 months: \u0001 euros" + ] + INVOKEVIRTUAL java/io/PrintStream.println (Ljava/lang/String;)V + L14 + LINENUMBER 35 L14 + RETURN + MAXSTACK = 5 + MAXLOCALS = 11 + + // access flags 0x9 + public static calculateMonthlyPayment(DDI)D + L0 + LINENUMBER 40 L0 + DLOAD 0 + DCONST_0 + DCMPG + IFLE L1 + DLOAD 2 + DCONST_0 + DCMPG + IFLE L1 + ILOAD 4 + IFGT L2 + L1 + LINENUMBER 42 L1 + FRAME FULL [D D I] [] + DCONST_0 + DRETURN + L2 + LINENUMBER 46 L2 + FRAME FULL [D D I] [] + DLOAD 2 + LDC 100.0 + DDIV + LDC 12.0 + DDIV + DSTORE 5 + L3 + LINENUMBER 47 L3 + DLOAD 5 + DLOAD 0 + DMUL + DCONST_1 + DCONST_1 + DLOAD 5 + DADD + ILOAD 4 + INEG + I2D + INVOKESTATIC java/lang/Math.pow (DD)D + DSUB + DDIV + DSTORE 7 + L4 + LINENUMBER 48 L4 + DLOAD 7 + DRETURN + MAXSTACK = 8 + MAXLOCALS = 9 + + // access flags 0x9 + public static calculateOverallDebt(ID)D + L0 + LINENUMBER 55 L0 + ILOAD 0 + IFLE L1 + DLOAD 1 + DCONST_0 + DCMPG + IFGT L2 + L1 + LINENUMBER 57 L1 + FRAME FULL [I D] [] + DCONST_0 + DRETURN + L2 + LINENUMBER 61 L2 + FRAME FULL [I D] [] + DLOAD 1 + ILOAD 0 + I2D + DDIV + DSTORE 3 + L3 + LINENUMBER 62 L3 + DLOAD 3 + DRETURN + MAXSTACK = 4 + MAXLOCALS = 5 +} + diff --git a/pitReports/export/src/Loan/mutants/27/details.txt b/pitReports/export/src/Loan/mutants/27/details.txt new file mode 100644 index 0000000..09ca3c9 --- /dev/null +++ b/pitReports/export/src/Loan/mutants/27/details.txt @@ -0,0 +1 @@ +MutationDetails [id=MutationIdentifier [location=Location [clazz=src.Loan, method=calculateOverallDebt, methodDesc=(ID)D], indexes=[25], mutator=org.pitest.mutationtest.engine.gregor.mutators.returns.PrimitiveReturnsMutator], filename=Loan.java, block=[3], lineNumber=62, description=replaced double return with 0.0d for src/Loan::calculateOverallDebt, testsInOrder=[]] diff --git a/pitReports/export/src/Loan/mutants/27/src.Loan.class b/pitReports/export/src/Loan/mutants/27/src.Loan.class new file mode 100644 index 0000000..f4596a2 Binary files /dev/null and b/pitReports/export/src/Loan/mutants/27/src.Loan.class differ diff --git a/pitReports/export/src/Loan/mutants/27/src.Loan.txt b/pitReports/export/src/Loan/mutants/27/src.Loan.txt new file mode 100644 index 0000000..f91bfd7 --- /dev/null +++ b/pitReports/export/src/Loan/mutants/27/src.Loan.txt @@ -0,0 +1,203 @@ +// class version 61.0 (61) +// access flags 0x21 +public class src/Loan { + + // compiled from: Loan.java + // access flags 0x19 + public final static INNERCLASS java/lang/invoke/MethodHandles$Lookup java/lang/invoke/MethodHandles Lookup + + // access flags 0x1 + public ()V + L0 + LINENUMBER 4 L0 + ALOAD 0 + INVOKESPECIAL java/lang/Object. ()V + RETURN + MAXSTACK = 1 + MAXLOCALS = 1 + + // access flags 0x9 + public static main([Ljava/lang/String;)V + L0 + LINENUMBER 8 L0 + NEW java/util/Scanner + DUP + GETSTATIC java/lang/System.in : Ljava/io/InputStream; + INVOKESPECIAL java/util/Scanner. (Ljava/io/InputStream;)V + ASTORE 1 + L1 + LINENUMBER 12 L1 + GETSTATIC java/lang/System.out : Ljava/io/PrintStream; + LDC "Enter Debt value in Euros : " + INVOKEVIRTUAL java/io/PrintStream.print (Ljava/lang/String;)V + L2 + LINENUMBER 13 L2 + ALOAD 1 + INVOKEVIRTUAL java/util/Scanner.nextDouble ()D + DSTORE 2 + L3 + LINENUMBER 15 L3 + GETSTATIC java/lang/System.out : Ljava/io/PrintStream; + LDC "Enter Interest rate in Percentage : " + INVOKEVIRTUAL java/io/PrintStream.print (Ljava/lang/String;)V + L4 + LINENUMBER 16 L4 + ALOAD 1 + INVOKEVIRTUAL java/util/Scanner.nextDouble ()D + DSTORE 4 + L5 + LINENUMBER 18 L5 + GETSTATIC java/lang/System.out : Ljava/io/PrintStream; + LDC "Enter Payback Duration in months : " + INVOKEVIRTUAL java/io/PrintStream.print (Ljava/lang/String;)V + L6 + LINENUMBER 19 L6 + ALOAD 1 + INVOKEVIRTUAL java/util/Scanner.nextInt ()I + ISTORE 6 + L7 + LINENUMBER 22 L7 + ALOAD 1 + INVOKEVIRTUAL java/util/Scanner.close ()V + L8 + LINENUMBER 25 L8 + DLOAD 2 + DLOAD 4 + ILOAD 6 + INVOKESTATIC src/Loan.calculateMonthlyPayment (DDI)D + DSTORE 7 + L9 + LINENUMBER 28 L9 + ILOAD 6 + DLOAD 7 + INVOKESTATIC src/Loan.calculateOverallDebt (ID)D + DSTORE 9 + L10 + LINENUMBER 31 L10 + GETSTATIC java/lang/System.out : Ljava/io/PrintStream; + LDC "-------------------------------------------------\n" + INVOKEVIRTUAL java/io/PrintStream.print (Ljava/lang/String;)V + L11 + LINENUMBER 32 L11 + GETSTATIC java/lang/System.out : Ljava/io/PrintStream; + DLOAD 7 + INVOKEDYNAMIC makeConcatWithConstants(D)Ljava/lang/String; [ + // handle kind 0x6 : INVOKESTATIC + java/lang/invoke/StringConcatFactory.makeConcatWithConstants(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/invoke/CallSite; + // arguments: + "Monthly Payment: \u0001 euros" + ] + INVOKEVIRTUAL java/io/PrintStream.println (Ljava/lang/String;)V + L12 + LINENUMBER 33 L12 + GETSTATIC java/lang/System.out : Ljava/io/PrintStream; + ILOAD 6 + INVOKEDYNAMIC makeConcatWithConstants(I)Ljava/lang/String; [ + // handle kind 0x6 : INVOKESTATIC + java/lang/invoke/StringConcatFactory.makeConcatWithConstants(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/invoke/CallSite; + // arguments: + "Number of Rates: \u0001" + ] + INVOKEVIRTUAL java/io/PrintStream.println (Ljava/lang/String;)V + L13 + LINENUMBER 34 L13 + GETSTATIC java/lang/System.out : Ljava/io/PrintStream; + ILOAD 6 + DLOAD 9 + INVOKEDYNAMIC makeConcatWithConstants(ID)Ljava/lang/String; [ + // handle kind 0x6 : INVOKESTATIC + java/lang/invoke/StringConcatFactory.makeConcatWithConstants(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/invoke/CallSite; + // arguments: + "Overall Debt at the end of \u0001 months: \u0001 euros" + ] + INVOKEVIRTUAL java/io/PrintStream.println (Ljava/lang/String;)V + L14 + LINENUMBER 35 L14 + RETURN + MAXSTACK = 5 + MAXLOCALS = 11 + + // access flags 0x9 + public static calculateMonthlyPayment(DDI)D + L0 + LINENUMBER 40 L0 + DLOAD 0 + DCONST_0 + DCMPG + IFLE L1 + DLOAD 2 + DCONST_0 + DCMPG + IFLE L1 + ILOAD 4 + IFGT L2 + L1 + LINENUMBER 42 L1 + FRAME FULL [D D I] [] + DCONST_0 + DRETURN + L2 + LINENUMBER 46 L2 + FRAME FULL [D D I] [] + DLOAD 2 + LDC 100.0 + DDIV + LDC 12.0 + DDIV + DSTORE 5 + L3 + LINENUMBER 47 L3 + DLOAD 5 + DLOAD 0 + DMUL + DCONST_1 + DCONST_1 + DLOAD 5 + DADD + ILOAD 4 + INEG + I2D + INVOKESTATIC java/lang/Math.pow (DD)D + DSUB + DDIV + DSTORE 7 + L4 + LINENUMBER 48 L4 + DLOAD 7 + DRETURN + MAXSTACK = 8 + MAXLOCALS = 9 + + // access flags 0x9 + public static calculateOverallDebt(ID)D + L0 + LINENUMBER 55 L0 + ILOAD 0 + IFLE L1 + DLOAD 1 + DCONST_0 + DCMPG + IFGT L2 + L1 + LINENUMBER 57 L1 + FRAME FULL [I D] [] + DCONST_0 + DRETURN + L2 + LINENUMBER 61 L2 + FRAME FULL [I D] [] + DLOAD 1 + ILOAD 0 + I2D + DMUL + DSTORE 3 + L3 + LINENUMBER 62 L3 + DLOAD 3 + POP2 + DCONST_0 + DRETURN + MAXSTACK = 4 + MAXLOCALS = 5 +} + diff --git a/pitReports/export/src/Loan/mutants/3/details.txt b/pitReports/export/src/Loan/mutants/3/details.txt index 847d520..3620f84 100644 --- a/pitReports/export/src/Loan/mutants/3/details.txt +++ b/pitReports/export/src/Loan/mutants/3/details.txt @@ -1 +1 @@ -MutationDetails [id=MutationIdentifier [location=Location [clazz=src.Loan, method=main, methodDesc=([Ljava/lang/String;)V], indexes=[25], mutator=org.pitest.mutationtest.engine.gregor.mutators.VoidMethodCallMutator], filename=Loan.java, block=[3], lineNumber=19, description=removed call to java/io/PrintStream::println, testsInOrder=[]] +MutationDetails [id=MutationIdentifier [location=Location [clazz=src.Loan, method=main, methodDesc=([Ljava/lang/String;)V], indexes=[41], mutator=org.pitest.mutationtest.engine.gregor.mutators.VoidMethodCallMutator], filename=Loan.java, block=[7], lineNumber=22, description=removed call to java/util/Scanner::close, testsInOrder=[]] diff --git a/pitReports/export/src/Loan/mutants/3/src.Loan.class b/pitReports/export/src/Loan/mutants/3/src.Loan.class index 370eeb5..65eb0ad 100644 Binary files a/pitReports/export/src/Loan/mutants/3/src.Loan.class and b/pitReports/export/src/Loan/mutants/3/src.Loan.class differ diff --git a/pitReports/export/src/Loan/mutants/3/src.Loan.txt b/pitReports/export/src/Loan/mutants/3/src.Loan.txt index 2eff499..4d87d4d 100644 --- a/pitReports/export/src/Loan/mutants/3/src.Loan.txt +++ b/pitReports/export/src/Loan/mutants/3/src.Loan.txt @@ -3,71 +3,199 @@ public class src/Loan { // compiled from: Loan.java + // access flags 0x19 + public final static INNERCLASS java/lang/invoke/MethodHandles$Lookup java/lang/invoke/MethodHandles Lookup // access flags 0x1 public ()V L0 - LINENUMBER 5 L0 + LINENUMBER 4 L0 ALOAD 0 INVOKESPECIAL java/lang/Object. ()V RETURN - L1 - LOCALVARIABLE this Lsrc/Loan; L0 L1 0 MAXSTACK = 1 MAXLOCALS = 1 - // access flags 0x9 - public static sum(DD)Ljava/lang/Double; - L0 - LINENUMBER 9 L0 - DLOAD 0 - DLOAD 2 - DADD - INVOKESTATIC java/lang/Double.valueOf (D)Ljava/lang/Double; - ARETURN - L1 - LOCALVARIABLE a D L0 L1 0 - LOCALVARIABLE b D L0 L1 2 - MAXSTACK = 4 - MAXLOCALS = 4 - // access flags 0x9 public static main([Ljava/lang/String;)V L0 - LINENUMBER 14 L0 - GETSTATIC java/lang/System.out : Ljava/io/PrintStream; - LDC "Hello world" - INVOKEVIRTUAL java/io/PrintStream.println (Ljava/lang/String;)V + LINENUMBER 8 L0 + NEW java/util/Scanner + DUP + GETSTATIC java/lang/System.in : Ljava/io/InputStream; + INVOKESPECIAL java/util/Scanner. (Ljava/io/InputStream;)V + ASTORE 1 L1 - LINENUMBER 15 L1 - LDC 14.0 - DSTORE 1 + LINENUMBER 12 L1 + GETSTATIC java/lang/System.out : Ljava/io/PrintStream; + LDC "Enter Debt value in Euros : " + INVOKEVIRTUAL java/io/PrintStream.print (Ljava/lang/String;)V L2 - LINENUMBER 16 L2 - LDC 5.0 + LINENUMBER 13 L2 + ALOAD 1 + INVOKEVIRTUAL java/util/Scanner.nextDouble ()D + DSTORE 2 + L3 + LINENUMBER 15 L3 + GETSTATIC java/lang/System.out : Ljava/io/PrintStream; + LDC "Enter Interest rate in Percentage : " + INVOKEVIRTUAL java/io/PrintStream.print (Ljava/lang/String;)V + L4 + LINENUMBER 16 L4 + ALOAD 1 + INVOKEVIRTUAL java/util/Scanner.nextDouble ()D + DSTORE 4 + L5 + LINENUMBER 18 L5 + GETSTATIC java/lang/System.out : Ljava/io/PrintStream; + LDC "Enter Payback Duration in months : " + INVOKEVIRTUAL java/io/PrintStream.print (Ljava/lang/String;)V + L6 + LINENUMBER 19 L6 + ALOAD 1 + INVOKEVIRTUAL java/util/Scanner.nextInt ()I + ISTORE 6 + L7 + LINENUMBER 22 L7 + ALOAD 1 + POP + L8 + LINENUMBER 25 L8 + DLOAD 2 + DLOAD 4 + ILOAD 6 + INVOKESTATIC src/Loan.calculateMonthlyPayment (DDI)D + DSTORE 7 + L9 + LINENUMBER 28 L9 + ILOAD 6 + DLOAD 7 + INVOKESTATIC src/Loan.calculateOverallDebt (ID)D + DSTORE 9 + L10 + LINENUMBER 31 L10 + GETSTATIC java/lang/System.out : Ljava/io/PrintStream; + LDC "-------------------------------------------------\n" + INVOKEVIRTUAL java/io/PrintStream.print (Ljava/lang/String;)V + L11 + LINENUMBER 32 L11 + GETSTATIC java/lang/System.out : Ljava/io/PrintStream; + DLOAD 7 + INVOKEDYNAMIC makeConcatWithConstants(D)Ljava/lang/String; [ + // handle kind 0x6 : INVOKESTATIC + java/lang/invoke/StringConcatFactory.makeConcatWithConstants(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/invoke/CallSite; + // arguments: + "Monthly Payment: \u0001 euros" + ] + INVOKEVIRTUAL java/io/PrintStream.println (Ljava/lang/String;)V + L12 + LINENUMBER 33 L12 + GETSTATIC java/lang/System.out : Ljava/io/PrintStream; + ILOAD 6 + INVOKEDYNAMIC makeConcatWithConstants(I)Ljava/lang/String; [ + // handle kind 0x6 : INVOKESTATIC + java/lang/invoke/StringConcatFactory.makeConcatWithConstants(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/invoke/CallSite; + // arguments: + "Number of Rates: \u0001" + ] + INVOKEVIRTUAL java/io/PrintStream.println (Ljava/lang/String;)V + L13 + LINENUMBER 34 L13 + GETSTATIC java/lang/System.out : Ljava/io/PrintStream; + ILOAD 6 + DLOAD 9 + INVOKEDYNAMIC makeConcatWithConstants(ID)Ljava/lang/String; [ + // handle kind 0x6 : INVOKESTATIC + java/lang/invoke/StringConcatFactory.makeConcatWithConstants(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/invoke/CallSite; + // arguments: + "Overall Debt at the end of \u0001 months: \u0001 euros" + ] + INVOKEVIRTUAL java/io/PrintStream.println (Ljava/lang/String;)V + L14 + LINENUMBER 35 L14 + RETURN + MAXSTACK = 5 + MAXLOCALS = 11 + + // access flags 0x9 + public static calculateMonthlyPayment(DDI)D + L0 + LINENUMBER 40 L0 + DLOAD 0 + DCONST_0 + DCMPG + IFLE L1 + DLOAD 2 + DCONST_0 + DCMPG + IFLE L1 + ILOAD 4 + IFGT L2 + L1 + LINENUMBER 42 L1 + FRAME FULL [D D I] [] + DCONST_0 + DRETURN + L2 + LINENUMBER 46 L2 + FRAME FULL [D D I] [] + DLOAD 2 + LDC 100.0 + DDIV + LDC 12.0 + DDIV + DSTORE 5 + L3 + LINENUMBER 47 L3 + DLOAD 5 + DLOAD 0 + DMUL + DCONST_1 + DCONST_1 + DLOAD 5 + DADD + ILOAD 4 + INEG + I2D + INVOKESTATIC java/lang/Math.pow (DD)D + DSUB + DDIV + DSTORE 7 + L4 + LINENUMBER 48 L4 + DLOAD 7 + DRETURN + MAXSTACK = 8 + MAXLOCALS = 9 + + // access flags 0x9 + public static calculateOverallDebt(ID)D + L0 + LINENUMBER 55 L0 + ILOAD 0 + IFLE L1 + DLOAD 1 + DCONST_0 + DCMPG + IFGT L2 + L1 + LINENUMBER 57 L1 + FRAME FULL [I D] [] + DCONST_0 + DRETURN + L2 + LINENUMBER 61 L2 + FRAME FULL [I D] [] + DLOAD 1 + ILOAD 0 + I2D + DMUL DSTORE 3 L3 - LINENUMBER 18 L3 - DLOAD 1 + LINENUMBER 62 L3 DLOAD 3 - INVOKESTATIC src/Loan.sum (DD)Ljava/lang/Double; - INVOKEVIRTUAL java/lang/Double.doubleValue ()D - DSTORE 5 - L4 - LINENUMBER 19 L4 - GETSTATIC java/lang/System.out : Ljava/io/PrintStream; - DLOAD 5 - POP2 - POP - L5 - LINENUMBER 20 L5 - RETURN - L6 - LOCALVARIABLE args [Ljava/lang/String; L0 L6 0 - LOCALVARIABLE a D L2 L6 1 - LOCALVARIABLE b D L3 L6 3 - LOCALVARIABLE answer D L4 L6 5 + DRETURN MAXSTACK = 4 - MAXLOCALS = 7 + MAXLOCALS = 5 } diff --git a/pitReports/export/src/Loan/mutants/4/details.txt b/pitReports/export/src/Loan/mutants/4/details.txt new file mode 100644 index 0000000..df19679 --- /dev/null +++ b/pitReports/export/src/Loan/mutants/4/details.txt @@ -0,0 +1 @@ +MutationDetails [id=MutationIdentifier [location=Location [clazz=src.Loan, method=main, methodDesc=([Ljava/lang/String;)V], indexes=[59], mutator=org.pitest.mutationtest.engine.gregor.mutators.VoidMethodCallMutator], filename=Loan.java, block=[10], lineNumber=31, description=removed call to java/io/PrintStream::print, testsInOrder=[]] diff --git a/pitReports/export/src/Loan/mutants/4/src.Loan.class b/pitReports/export/src/Loan/mutants/4/src.Loan.class new file mode 100644 index 0000000..37fe864 Binary files /dev/null and b/pitReports/export/src/Loan/mutants/4/src.Loan.class differ diff --git a/pitReports/export/src/Loan/mutants/4/src.Loan.txt b/pitReports/export/src/Loan/mutants/4/src.Loan.txt new file mode 100644 index 0000000..ea37d89 --- /dev/null +++ b/pitReports/export/src/Loan/mutants/4/src.Loan.txt @@ -0,0 +1,202 @@ +// class version 61.0 (61) +// access flags 0x21 +public class src/Loan { + + // compiled from: Loan.java + // access flags 0x19 + public final static INNERCLASS java/lang/invoke/MethodHandles$Lookup java/lang/invoke/MethodHandles Lookup + + // access flags 0x1 + public ()V + L0 + LINENUMBER 4 L0 + ALOAD 0 + INVOKESPECIAL java/lang/Object. ()V + RETURN + MAXSTACK = 1 + MAXLOCALS = 1 + + // access flags 0x9 + public static main([Ljava/lang/String;)V + L0 + LINENUMBER 8 L0 + NEW java/util/Scanner + DUP + GETSTATIC java/lang/System.in : Ljava/io/InputStream; + INVOKESPECIAL java/util/Scanner. (Ljava/io/InputStream;)V + ASTORE 1 + L1 + LINENUMBER 12 L1 + GETSTATIC java/lang/System.out : Ljava/io/PrintStream; + LDC "Enter Debt value in Euros : " + INVOKEVIRTUAL java/io/PrintStream.print (Ljava/lang/String;)V + L2 + LINENUMBER 13 L2 + ALOAD 1 + INVOKEVIRTUAL java/util/Scanner.nextDouble ()D + DSTORE 2 + L3 + LINENUMBER 15 L3 + GETSTATIC java/lang/System.out : Ljava/io/PrintStream; + LDC "Enter Interest rate in Percentage : " + INVOKEVIRTUAL java/io/PrintStream.print (Ljava/lang/String;)V + L4 + LINENUMBER 16 L4 + ALOAD 1 + INVOKEVIRTUAL java/util/Scanner.nextDouble ()D + DSTORE 4 + L5 + LINENUMBER 18 L5 + GETSTATIC java/lang/System.out : Ljava/io/PrintStream; + LDC "Enter Payback Duration in months : " + INVOKEVIRTUAL java/io/PrintStream.print (Ljava/lang/String;)V + L6 + LINENUMBER 19 L6 + ALOAD 1 + INVOKEVIRTUAL java/util/Scanner.nextInt ()I + ISTORE 6 + L7 + LINENUMBER 22 L7 + ALOAD 1 + INVOKEVIRTUAL java/util/Scanner.close ()V + L8 + LINENUMBER 25 L8 + DLOAD 2 + DLOAD 4 + ILOAD 6 + INVOKESTATIC src/Loan.calculateMonthlyPayment (DDI)D + DSTORE 7 + L9 + LINENUMBER 28 L9 + ILOAD 6 + DLOAD 7 + INVOKESTATIC src/Loan.calculateOverallDebt (ID)D + DSTORE 9 + L10 + LINENUMBER 31 L10 + GETSTATIC java/lang/System.out : Ljava/io/PrintStream; + LDC "-------------------------------------------------\n" + POP + POP + L11 + LINENUMBER 32 L11 + GETSTATIC java/lang/System.out : Ljava/io/PrintStream; + DLOAD 7 + INVOKEDYNAMIC makeConcatWithConstants(D)Ljava/lang/String; [ + // handle kind 0x6 : INVOKESTATIC + java/lang/invoke/StringConcatFactory.makeConcatWithConstants(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/invoke/CallSite; + // arguments: + "Monthly Payment: \u0001 euros" + ] + INVOKEVIRTUAL java/io/PrintStream.println (Ljava/lang/String;)V + L12 + LINENUMBER 33 L12 + GETSTATIC java/lang/System.out : Ljava/io/PrintStream; + ILOAD 6 + INVOKEDYNAMIC makeConcatWithConstants(I)Ljava/lang/String; [ + // handle kind 0x6 : INVOKESTATIC + java/lang/invoke/StringConcatFactory.makeConcatWithConstants(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/invoke/CallSite; + // arguments: + "Number of Rates: \u0001" + ] + INVOKEVIRTUAL java/io/PrintStream.println (Ljava/lang/String;)V + L13 + LINENUMBER 34 L13 + GETSTATIC java/lang/System.out : Ljava/io/PrintStream; + ILOAD 6 + DLOAD 9 + INVOKEDYNAMIC makeConcatWithConstants(ID)Ljava/lang/String; [ + // handle kind 0x6 : INVOKESTATIC + java/lang/invoke/StringConcatFactory.makeConcatWithConstants(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/invoke/CallSite; + // arguments: + "Overall Debt at the end of \u0001 months: \u0001 euros" + ] + INVOKEVIRTUAL java/io/PrintStream.println (Ljava/lang/String;)V + L14 + LINENUMBER 35 L14 + RETURN + MAXSTACK = 5 + MAXLOCALS = 11 + + // access flags 0x9 + public static calculateMonthlyPayment(DDI)D + L0 + LINENUMBER 40 L0 + DLOAD 0 + DCONST_0 + DCMPG + IFLE L1 + DLOAD 2 + DCONST_0 + DCMPG + IFLE L1 + ILOAD 4 + IFGT L2 + L1 + LINENUMBER 42 L1 + FRAME FULL [D D I] [] + DCONST_0 + DRETURN + L2 + LINENUMBER 46 L2 + FRAME FULL [D D I] [] + DLOAD 2 + LDC 100.0 + DDIV + LDC 12.0 + DDIV + DSTORE 5 + L3 + LINENUMBER 47 L3 + DLOAD 5 + DLOAD 0 + DMUL + DCONST_1 + DCONST_1 + DLOAD 5 + DADD + ILOAD 4 + INEG + I2D + INVOKESTATIC java/lang/Math.pow (DD)D + DSUB + DDIV + DSTORE 7 + L4 + LINENUMBER 48 L4 + DLOAD 7 + DRETURN + MAXSTACK = 8 + MAXLOCALS = 9 + + // access flags 0x9 + public static calculateOverallDebt(ID)D + L0 + LINENUMBER 55 L0 + ILOAD 0 + IFLE L1 + DLOAD 1 + DCONST_0 + DCMPG + IFGT L2 + L1 + LINENUMBER 57 L1 + FRAME FULL [I D] [] + DCONST_0 + DRETURN + L2 + LINENUMBER 61 L2 + FRAME FULL [I D] [] + DLOAD 1 + ILOAD 0 + I2D + DMUL + DSTORE 3 + L3 + LINENUMBER 62 L3 + DLOAD 3 + DRETURN + MAXSTACK = 4 + MAXLOCALS = 5 +} + diff --git a/pitReports/export/src/Loan/mutants/5/details.txt b/pitReports/export/src/Loan/mutants/5/details.txt new file mode 100644 index 0000000..1225a34 --- /dev/null +++ b/pitReports/export/src/Loan/mutants/5/details.txt @@ -0,0 +1 @@ +MutationDetails [id=MutationIdentifier [location=Location [clazz=src.Loan, method=main, methodDesc=([Ljava/lang/String;)V], indexes=[65], mutator=org.pitest.mutationtest.engine.gregor.mutators.VoidMethodCallMutator], filename=Loan.java, block=[11], lineNumber=32, description=removed call to java/io/PrintStream::println, testsInOrder=[]] diff --git a/pitReports/export/src/Loan/mutants/5/src.Loan.class b/pitReports/export/src/Loan/mutants/5/src.Loan.class new file mode 100644 index 0000000..2f8c409 Binary files /dev/null and b/pitReports/export/src/Loan/mutants/5/src.Loan.class differ diff --git a/pitReports/export/src/Loan/mutants/5/src.Loan.txt b/pitReports/export/src/Loan/mutants/5/src.Loan.txt new file mode 100644 index 0000000..c95f2a9 --- /dev/null +++ b/pitReports/export/src/Loan/mutants/5/src.Loan.txt @@ -0,0 +1,202 @@ +// class version 61.0 (61) +// access flags 0x21 +public class src/Loan { + + // compiled from: Loan.java + // access flags 0x19 + public final static INNERCLASS java/lang/invoke/MethodHandles$Lookup java/lang/invoke/MethodHandles Lookup + + // access flags 0x1 + public ()V + L0 + LINENUMBER 4 L0 + ALOAD 0 + INVOKESPECIAL java/lang/Object. ()V + RETURN + MAXSTACK = 1 + MAXLOCALS = 1 + + // access flags 0x9 + public static main([Ljava/lang/String;)V + L0 + LINENUMBER 8 L0 + NEW java/util/Scanner + DUP + GETSTATIC java/lang/System.in : Ljava/io/InputStream; + INVOKESPECIAL java/util/Scanner. (Ljava/io/InputStream;)V + ASTORE 1 + L1 + LINENUMBER 12 L1 + GETSTATIC java/lang/System.out : Ljava/io/PrintStream; + LDC "Enter Debt value in Euros : " + INVOKEVIRTUAL java/io/PrintStream.print (Ljava/lang/String;)V + L2 + LINENUMBER 13 L2 + ALOAD 1 + INVOKEVIRTUAL java/util/Scanner.nextDouble ()D + DSTORE 2 + L3 + LINENUMBER 15 L3 + GETSTATIC java/lang/System.out : Ljava/io/PrintStream; + LDC "Enter Interest rate in Percentage : " + INVOKEVIRTUAL java/io/PrintStream.print (Ljava/lang/String;)V + L4 + LINENUMBER 16 L4 + ALOAD 1 + INVOKEVIRTUAL java/util/Scanner.nextDouble ()D + DSTORE 4 + L5 + LINENUMBER 18 L5 + GETSTATIC java/lang/System.out : Ljava/io/PrintStream; + LDC "Enter Payback Duration in months : " + INVOKEVIRTUAL java/io/PrintStream.print (Ljava/lang/String;)V + L6 + LINENUMBER 19 L6 + ALOAD 1 + INVOKEVIRTUAL java/util/Scanner.nextInt ()I + ISTORE 6 + L7 + LINENUMBER 22 L7 + ALOAD 1 + INVOKEVIRTUAL java/util/Scanner.close ()V + L8 + LINENUMBER 25 L8 + DLOAD 2 + DLOAD 4 + ILOAD 6 + INVOKESTATIC src/Loan.calculateMonthlyPayment (DDI)D + DSTORE 7 + L9 + LINENUMBER 28 L9 + ILOAD 6 + DLOAD 7 + INVOKESTATIC src/Loan.calculateOverallDebt (ID)D + DSTORE 9 + L10 + LINENUMBER 31 L10 + GETSTATIC java/lang/System.out : Ljava/io/PrintStream; + LDC "-------------------------------------------------\n" + INVOKEVIRTUAL java/io/PrintStream.print (Ljava/lang/String;)V + L11 + LINENUMBER 32 L11 + GETSTATIC java/lang/System.out : Ljava/io/PrintStream; + DLOAD 7 + INVOKEDYNAMIC makeConcatWithConstants(D)Ljava/lang/String; [ + // handle kind 0x6 : INVOKESTATIC + java/lang/invoke/StringConcatFactory.makeConcatWithConstants(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/invoke/CallSite; + // arguments: + "Monthly Payment: \u0001 euros" + ] + POP + POP + L12 + LINENUMBER 33 L12 + GETSTATIC java/lang/System.out : Ljava/io/PrintStream; + ILOAD 6 + INVOKEDYNAMIC makeConcatWithConstants(I)Ljava/lang/String; [ + // handle kind 0x6 : INVOKESTATIC + java/lang/invoke/StringConcatFactory.makeConcatWithConstants(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/invoke/CallSite; + // arguments: + "Number of Rates: \u0001" + ] + INVOKEVIRTUAL java/io/PrintStream.println (Ljava/lang/String;)V + L13 + LINENUMBER 34 L13 + GETSTATIC java/lang/System.out : Ljava/io/PrintStream; + ILOAD 6 + DLOAD 9 + INVOKEDYNAMIC makeConcatWithConstants(ID)Ljava/lang/String; [ + // handle kind 0x6 : INVOKESTATIC + java/lang/invoke/StringConcatFactory.makeConcatWithConstants(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/invoke/CallSite; + // arguments: + "Overall Debt at the end of \u0001 months: \u0001 euros" + ] + INVOKEVIRTUAL java/io/PrintStream.println (Ljava/lang/String;)V + L14 + LINENUMBER 35 L14 + RETURN + MAXSTACK = 5 + MAXLOCALS = 11 + + // access flags 0x9 + public static calculateMonthlyPayment(DDI)D + L0 + LINENUMBER 40 L0 + DLOAD 0 + DCONST_0 + DCMPG + IFLE L1 + DLOAD 2 + DCONST_0 + DCMPG + IFLE L1 + ILOAD 4 + IFGT L2 + L1 + LINENUMBER 42 L1 + FRAME FULL [D D I] [] + DCONST_0 + DRETURN + L2 + LINENUMBER 46 L2 + FRAME FULL [D D I] [] + DLOAD 2 + LDC 100.0 + DDIV + LDC 12.0 + DDIV + DSTORE 5 + L3 + LINENUMBER 47 L3 + DLOAD 5 + DLOAD 0 + DMUL + DCONST_1 + DCONST_1 + DLOAD 5 + DADD + ILOAD 4 + INEG + I2D + INVOKESTATIC java/lang/Math.pow (DD)D + DSUB + DDIV + DSTORE 7 + L4 + LINENUMBER 48 L4 + DLOAD 7 + DRETURN + MAXSTACK = 8 + MAXLOCALS = 9 + + // access flags 0x9 + public static calculateOverallDebt(ID)D + L0 + LINENUMBER 55 L0 + ILOAD 0 + IFLE L1 + DLOAD 1 + DCONST_0 + DCMPG + IFGT L2 + L1 + LINENUMBER 57 L1 + FRAME FULL [I D] [] + DCONST_0 + DRETURN + L2 + LINENUMBER 61 L2 + FRAME FULL [I D] [] + DLOAD 1 + ILOAD 0 + I2D + DMUL + DSTORE 3 + L3 + LINENUMBER 62 L3 + DLOAD 3 + DRETURN + MAXSTACK = 4 + MAXLOCALS = 5 +} + diff --git a/pitReports/export/src/Loan/mutants/6/details.txt b/pitReports/export/src/Loan/mutants/6/details.txt new file mode 100644 index 0000000..f3e80e6 --- /dev/null +++ b/pitReports/export/src/Loan/mutants/6/details.txt @@ -0,0 +1 @@ +MutationDetails [id=MutationIdentifier [location=Location [clazz=src.Loan, method=main, methodDesc=([Ljava/lang/String;)V], indexes=[71], mutator=org.pitest.mutationtest.engine.gregor.mutators.VoidMethodCallMutator], filename=Loan.java, block=[12], lineNumber=33, description=removed call to java/io/PrintStream::println, testsInOrder=[]] diff --git a/pitReports/export/src/Loan/mutants/6/src.Loan.class b/pitReports/export/src/Loan/mutants/6/src.Loan.class new file mode 100644 index 0000000..9282ee0 Binary files /dev/null and b/pitReports/export/src/Loan/mutants/6/src.Loan.class differ diff --git a/pitReports/export/src/Loan/mutants/6/src.Loan.txt b/pitReports/export/src/Loan/mutants/6/src.Loan.txt new file mode 100644 index 0000000..30d51ab --- /dev/null +++ b/pitReports/export/src/Loan/mutants/6/src.Loan.txt @@ -0,0 +1,202 @@ +// class version 61.0 (61) +// access flags 0x21 +public class src/Loan { + + // compiled from: Loan.java + // access flags 0x19 + public final static INNERCLASS java/lang/invoke/MethodHandles$Lookup java/lang/invoke/MethodHandles Lookup + + // access flags 0x1 + public ()V + L0 + LINENUMBER 4 L0 + ALOAD 0 + INVOKESPECIAL java/lang/Object. ()V + RETURN + MAXSTACK = 1 + MAXLOCALS = 1 + + // access flags 0x9 + public static main([Ljava/lang/String;)V + L0 + LINENUMBER 8 L0 + NEW java/util/Scanner + DUP + GETSTATIC java/lang/System.in : Ljava/io/InputStream; + INVOKESPECIAL java/util/Scanner. (Ljava/io/InputStream;)V + ASTORE 1 + L1 + LINENUMBER 12 L1 + GETSTATIC java/lang/System.out : Ljava/io/PrintStream; + LDC "Enter Debt value in Euros : " + INVOKEVIRTUAL java/io/PrintStream.print (Ljava/lang/String;)V + L2 + LINENUMBER 13 L2 + ALOAD 1 + INVOKEVIRTUAL java/util/Scanner.nextDouble ()D + DSTORE 2 + L3 + LINENUMBER 15 L3 + GETSTATIC java/lang/System.out : Ljava/io/PrintStream; + LDC "Enter Interest rate in Percentage : " + INVOKEVIRTUAL java/io/PrintStream.print (Ljava/lang/String;)V + L4 + LINENUMBER 16 L4 + ALOAD 1 + INVOKEVIRTUAL java/util/Scanner.nextDouble ()D + DSTORE 4 + L5 + LINENUMBER 18 L5 + GETSTATIC java/lang/System.out : Ljava/io/PrintStream; + LDC "Enter Payback Duration in months : " + INVOKEVIRTUAL java/io/PrintStream.print (Ljava/lang/String;)V + L6 + LINENUMBER 19 L6 + ALOAD 1 + INVOKEVIRTUAL java/util/Scanner.nextInt ()I + ISTORE 6 + L7 + LINENUMBER 22 L7 + ALOAD 1 + INVOKEVIRTUAL java/util/Scanner.close ()V + L8 + LINENUMBER 25 L8 + DLOAD 2 + DLOAD 4 + ILOAD 6 + INVOKESTATIC src/Loan.calculateMonthlyPayment (DDI)D + DSTORE 7 + L9 + LINENUMBER 28 L9 + ILOAD 6 + DLOAD 7 + INVOKESTATIC src/Loan.calculateOverallDebt (ID)D + DSTORE 9 + L10 + LINENUMBER 31 L10 + GETSTATIC java/lang/System.out : Ljava/io/PrintStream; + LDC "-------------------------------------------------\n" + INVOKEVIRTUAL java/io/PrintStream.print (Ljava/lang/String;)V + L11 + LINENUMBER 32 L11 + GETSTATIC java/lang/System.out : Ljava/io/PrintStream; + DLOAD 7 + INVOKEDYNAMIC makeConcatWithConstants(D)Ljava/lang/String; [ + // handle kind 0x6 : INVOKESTATIC + java/lang/invoke/StringConcatFactory.makeConcatWithConstants(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/invoke/CallSite; + // arguments: + "Monthly Payment: \u0001 euros" + ] + INVOKEVIRTUAL java/io/PrintStream.println (Ljava/lang/String;)V + L12 + LINENUMBER 33 L12 + GETSTATIC java/lang/System.out : Ljava/io/PrintStream; + ILOAD 6 + INVOKEDYNAMIC makeConcatWithConstants(I)Ljava/lang/String; [ + // handle kind 0x6 : INVOKESTATIC + java/lang/invoke/StringConcatFactory.makeConcatWithConstants(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/invoke/CallSite; + // arguments: + "Number of Rates: \u0001" + ] + POP + POP + L13 + LINENUMBER 34 L13 + GETSTATIC java/lang/System.out : Ljava/io/PrintStream; + ILOAD 6 + DLOAD 9 + INVOKEDYNAMIC makeConcatWithConstants(ID)Ljava/lang/String; [ + // handle kind 0x6 : INVOKESTATIC + java/lang/invoke/StringConcatFactory.makeConcatWithConstants(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/invoke/CallSite; + // arguments: + "Overall Debt at the end of \u0001 months: \u0001 euros" + ] + INVOKEVIRTUAL java/io/PrintStream.println (Ljava/lang/String;)V + L14 + LINENUMBER 35 L14 + RETURN + MAXSTACK = 5 + MAXLOCALS = 11 + + // access flags 0x9 + public static calculateMonthlyPayment(DDI)D + L0 + LINENUMBER 40 L0 + DLOAD 0 + DCONST_0 + DCMPG + IFLE L1 + DLOAD 2 + DCONST_0 + DCMPG + IFLE L1 + ILOAD 4 + IFGT L2 + L1 + LINENUMBER 42 L1 + FRAME FULL [D D I] [] + DCONST_0 + DRETURN + L2 + LINENUMBER 46 L2 + FRAME FULL [D D I] [] + DLOAD 2 + LDC 100.0 + DDIV + LDC 12.0 + DDIV + DSTORE 5 + L3 + LINENUMBER 47 L3 + DLOAD 5 + DLOAD 0 + DMUL + DCONST_1 + DCONST_1 + DLOAD 5 + DADD + ILOAD 4 + INEG + I2D + INVOKESTATIC java/lang/Math.pow (DD)D + DSUB + DDIV + DSTORE 7 + L4 + LINENUMBER 48 L4 + DLOAD 7 + DRETURN + MAXSTACK = 8 + MAXLOCALS = 9 + + // access flags 0x9 + public static calculateOverallDebt(ID)D + L0 + LINENUMBER 55 L0 + ILOAD 0 + IFLE L1 + DLOAD 1 + DCONST_0 + DCMPG + IFGT L2 + L1 + LINENUMBER 57 L1 + FRAME FULL [I D] [] + DCONST_0 + DRETURN + L2 + LINENUMBER 61 L2 + FRAME FULL [I D] [] + DLOAD 1 + ILOAD 0 + I2D + DMUL + DSTORE 3 + L3 + LINENUMBER 62 L3 + DLOAD 3 + DRETURN + MAXSTACK = 4 + MAXLOCALS = 5 +} + diff --git a/pitReports/export/src/Loan/mutants/7/details.txt b/pitReports/export/src/Loan/mutants/7/details.txt new file mode 100644 index 0000000..25c04fa --- /dev/null +++ b/pitReports/export/src/Loan/mutants/7/details.txt @@ -0,0 +1 @@ +MutationDetails [id=MutationIdentifier [location=Location [clazz=src.Loan, method=main, methodDesc=([Ljava/lang/String;)V], indexes=[78], mutator=org.pitest.mutationtest.engine.gregor.mutators.VoidMethodCallMutator], filename=Loan.java, block=[13], lineNumber=34, description=removed call to java/io/PrintStream::println, testsInOrder=[]] diff --git a/pitReports/export/src/Loan/mutants/7/src.Loan.class b/pitReports/export/src/Loan/mutants/7/src.Loan.class new file mode 100644 index 0000000..cee19f0 Binary files /dev/null and b/pitReports/export/src/Loan/mutants/7/src.Loan.class differ diff --git a/pitReports/export/src/Loan/mutants/7/src.Loan.txt b/pitReports/export/src/Loan/mutants/7/src.Loan.txt new file mode 100644 index 0000000..c0acf22 --- /dev/null +++ b/pitReports/export/src/Loan/mutants/7/src.Loan.txt @@ -0,0 +1,202 @@ +// class version 61.0 (61) +// access flags 0x21 +public class src/Loan { + + // compiled from: Loan.java + // access flags 0x19 + public final static INNERCLASS java/lang/invoke/MethodHandles$Lookup java/lang/invoke/MethodHandles Lookup + + // access flags 0x1 + public ()V + L0 + LINENUMBER 4 L0 + ALOAD 0 + INVOKESPECIAL java/lang/Object. ()V + RETURN + MAXSTACK = 1 + MAXLOCALS = 1 + + // access flags 0x9 + public static main([Ljava/lang/String;)V + L0 + LINENUMBER 8 L0 + NEW java/util/Scanner + DUP + GETSTATIC java/lang/System.in : Ljava/io/InputStream; + INVOKESPECIAL java/util/Scanner. (Ljava/io/InputStream;)V + ASTORE 1 + L1 + LINENUMBER 12 L1 + GETSTATIC java/lang/System.out : Ljava/io/PrintStream; + LDC "Enter Debt value in Euros : " + INVOKEVIRTUAL java/io/PrintStream.print (Ljava/lang/String;)V + L2 + LINENUMBER 13 L2 + ALOAD 1 + INVOKEVIRTUAL java/util/Scanner.nextDouble ()D + DSTORE 2 + L3 + LINENUMBER 15 L3 + GETSTATIC java/lang/System.out : Ljava/io/PrintStream; + LDC "Enter Interest rate in Percentage : " + INVOKEVIRTUAL java/io/PrintStream.print (Ljava/lang/String;)V + L4 + LINENUMBER 16 L4 + ALOAD 1 + INVOKEVIRTUAL java/util/Scanner.nextDouble ()D + DSTORE 4 + L5 + LINENUMBER 18 L5 + GETSTATIC java/lang/System.out : Ljava/io/PrintStream; + LDC "Enter Payback Duration in months : " + INVOKEVIRTUAL java/io/PrintStream.print (Ljava/lang/String;)V + L6 + LINENUMBER 19 L6 + ALOAD 1 + INVOKEVIRTUAL java/util/Scanner.nextInt ()I + ISTORE 6 + L7 + LINENUMBER 22 L7 + ALOAD 1 + INVOKEVIRTUAL java/util/Scanner.close ()V + L8 + LINENUMBER 25 L8 + DLOAD 2 + DLOAD 4 + ILOAD 6 + INVOKESTATIC src/Loan.calculateMonthlyPayment (DDI)D + DSTORE 7 + L9 + LINENUMBER 28 L9 + ILOAD 6 + DLOAD 7 + INVOKESTATIC src/Loan.calculateOverallDebt (ID)D + DSTORE 9 + L10 + LINENUMBER 31 L10 + GETSTATIC java/lang/System.out : Ljava/io/PrintStream; + LDC "-------------------------------------------------\n" + INVOKEVIRTUAL java/io/PrintStream.print (Ljava/lang/String;)V + L11 + LINENUMBER 32 L11 + GETSTATIC java/lang/System.out : Ljava/io/PrintStream; + DLOAD 7 + INVOKEDYNAMIC makeConcatWithConstants(D)Ljava/lang/String; [ + // handle kind 0x6 : INVOKESTATIC + java/lang/invoke/StringConcatFactory.makeConcatWithConstants(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/invoke/CallSite; + // arguments: + "Monthly Payment: \u0001 euros" + ] + INVOKEVIRTUAL java/io/PrintStream.println (Ljava/lang/String;)V + L12 + LINENUMBER 33 L12 + GETSTATIC java/lang/System.out : Ljava/io/PrintStream; + ILOAD 6 + INVOKEDYNAMIC makeConcatWithConstants(I)Ljava/lang/String; [ + // handle kind 0x6 : INVOKESTATIC + java/lang/invoke/StringConcatFactory.makeConcatWithConstants(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/invoke/CallSite; + // arguments: + "Number of Rates: \u0001" + ] + INVOKEVIRTUAL java/io/PrintStream.println (Ljava/lang/String;)V + L13 + LINENUMBER 34 L13 + GETSTATIC java/lang/System.out : Ljava/io/PrintStream; + ILOAD 6 + DLOAD 9 + INVOKEDYNAMIC makeConcatWithConstants(ID)Ljava/lang/String; [ + // handle kind 0x6 : INVOKESTATIC + java/lang/invoke/StringConcatFactory.makeConcatWithConstants(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/invoke/CallSite; + // arguments: + "Overall Debt at the end of \u0001 months: \u0001 euros" + ] + POP + POP + L14 + LINENUMBER 35 L14 + RETURN + MAXSTACK = 5 + MAXLOCALS = 11 + + // access flags 0x9 + public static calculateMonthlyPayment(DDI)D + L0 + LINENUMBER 40 L0 + DLOAD 0 + DCONST_0 + DCMPG + IFLE L1 + DLOAD 2 + DCONST_0 + DCMPG + IFLE L1 + ILOAD 4 + IFGT L2 + L1 + LINENUMBER 42 L1 + FRAME FULL [D D I] [] + DCONST_0 + DRETURN + L2 + LINENUMBER 46 L2 + FRAME FULL [D D I] [] + DLOAD 2 + LDC 100.0 + DDIV + LDC 12.0 + DDIV + DSTORE 5 + L3 + LINENUMBER 47 L3 + DLOAD 5 + DLOAD 0 + DMUL + DCONST_1 + DCONST_1 + DLOAD 5 + DADD + ILOAD 4 + INEG + I2D + INVOKESTATIC java/lang/Math.pow (DD)D + DSUB + DDIV + DSTORE 7 + L4 + LINENUMBER 48 L4 + DLOAD 7 + DRETURN + MAXSTACK = 8 + MAXLOCALS = 9 + + // access flags 0x9 + public static calculateOverallDebt(ID)D + L0 + LINENUMBER 55 L0 + ILOAD 0 + IFLE L1 + DLOAD 1 + DCONST_0 + DCMPG + IFGT L2 + L1 + LINENUMBER 57 L1 + FRAME FULL [I D] [] + DCONST_0 + DRETURN + L2 + LINENUMBER 61 L2 + FRAME FULL [I D] [] + DLOAD 1 + ILOAD 0 + I2D + DMUL + DSTORE 3 + L3 + LINENUMBER 62 L3 + DLOAD 3 + DRETURN + MAXSTACK = 4 + MAXLOCALS = 5 +} + diff --git a/pitReports/export/src/Loan/mutants/8/details.txt b/pitReports/export/src/Loan/mutants/8/details.txt new file mode 100644 index 0000000..c34028a --- /dev/null +++ b/pitReports/export/src/Loan/mutants/8/details.txt @@ -0,0 +1 @@ +MutationDetails [id=MutationIdentifier [location=Location [clazz=src.Loan, method=calculateMonthlyPayment, methodDesc=(DDI)D], indexes=[6], mutator=org.pitest.mutationtest.engine.gregor.mutators.NegateConditionalsMutator], filename=Loan.java, block=[0], lineNumber=40, description=negated conditional, testsInOrder=[]] diff --git a/pitReports/export/src/Loan/mutants/8/src.Loan.class b/pitReports/export/src/Loan/mutants/8/src.Loan.class new file mode 100644 index 0000000..96b33ab Binary files /dev/null and b/pitReports/export/src/Loan/mutants/8/src.Loan.class differ diff --git a/pitReports/export/src/Loan/mutants/8/src.Loan.txt b/pitReports/export/src/Loan/mutants/8/src.Loan.txt new file mode 100644 index 0000000..05cadcb --- /dev/null +++ b/pitReports/export/src/Loan/mutants/8/src.Loan.txt @@ -0,0 +1,201 @@ +// class version 61.0 (61) +// access flags 0x21 +public class src/Loan { + + // compiled from: Loan.java + // access flags 0x19 + public final static INNERCLASS java/lang/invoke/MethodHandles$Lookup java/lang/invoke/MethodHandles Lookup + + // access flags 0x1 + public ()V + L0 + LINENUMBER 4 L0 + ALOAD 0 + INVOKESPECIAL java/lang/Object. ()V + RETURN + MAXSTACK = 1 + MAXLOCALS = 1 + + // access flags 0x9 + public static main([Ljava/lang/String;)V + L0 + LINENUMBER 8 L0 + NEW java/util/Scanner + DUP + GETSTATIC java/lang/System.in : Ljava/io/InputStream; + INVOKESPECIAL java/util/Scanner. (Ljava/io/InputStream;)V + ASTORE 1 + L1 + LINENUMBER 12 L1 + GETSTATIC java/lang/System.out : Ljava/io/PrintStream; + LDC "Enter Debt value in Euros : " + INVOKEVIRTUAL java/io/PrintStream.print (Ljava/lang/String;)V + L2 + LINENUMBER 13 L2 + ALOAD 1 + INVOKEVIRTUAL java/util/Scanner.nextDouble ()D + DSTORE 2 + L3 + LINENUMBER 15 L3 + GETSTATIC java/lang/System.out : Ljava/io/PrintStream; + LDC "Enter Interest rate in Percentage : " + INVOKEVIRTUAL java/io/PrintStream.print (Ljava/lang/String;)V + L4 + LINENUMBER 16 L4 + ALOAD 1 + INVOKEVIRTUAL java/util/Scanner.nextDouble ()D + DSTORE 4 + L5 + LINENUMBER 18 L5 + GETSTATIC java/lang/System.out : Ljava/io/PrintStream; + LDC "Enter Payback Duration in months : " + INVOKEVIRTUAL java/io/PrintStream.print (Ljava/lang/String;)V + L6 + LINENUMBER 19 L6 + ALOAD 1 + INVOKEVIRTUAL java/util/Scanner.nextInt ()I + ISTORE 6 + L7 + LINENUMBER 22 L7 + ALOAD 1 + INVOKEVIRTUAL java/util/Scanner.close ()V + L8 + LINENUMBER 25 L8 + DLOAD 2 + DLOAD 4 + ILOAD 6 + INVOKESTATIC src/Loan.calculateMonthlyPayment (DDI)D + DSTORE 7 + L9 + LINENUMBER 28 L9 + ILOAD 6 + DLOAD 7 + INVOKESTATIC src/Loan.calculateOverallDebt (ID)D + DSTORE 9 + L10 + LINENUMBER 31 L10 + GETSTATIC java/lang/System.out : Ljava/io/PrintStream; + LDC "-------------------------------------------------\n" + INVOKEVIRTUAL java/io/PrintStream.print (Ljava/lang/String;)V + L11 + LINENUMBER 32 L11 + GETSTATIC java/lang/System.out : Ljava/io/PrintStream; + DLOAD 7 + INVOKEDYNAMIC makeConcatWithConstants(D)Ljava/lang/String; [ + // handle kind 0x6 : INVOKESTATIC + java/lang/invoke/StringConcatFactory.makeConcatWithConstants(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/invoke/CallSite; + // arguments: + "Monthly Payment: \u0001 euros" + ] + INVOKEVIRTUAL java/io/PrintStream.println (Ljava/lang/String;)V + L12 + LINENUMBER 33 L12 + GETSTATIC java/lang/System.out : Ljava/io/PrintStream; + ILOAD 6 + INVOKEDYNAMIC makeConcatWithConstants(I)Ljava/lang/String; [ + // handle kind 0x6 : INVOKESTATIC + java/lang/invoke/StringConcatFactory.makeConcatWithConstants(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/invoke/CallSite; + // arguments: + "Number of Rates: \u0001" + ] + INVOKEVIRTUAL java/io/PrintStream.println (Ljava/lang/String;)V + L13 + LINENUMBER 34 L13 + GETSTATIC java/lang/System.out : Ljava/io/PrintStream; + ILOAD 6 + DLOAD 9 + INVOKEDYNAMIC makeConcatWithConstants(ID)Ljava/lang/String; [ + // handle kind 0x6 : INVOKESTATIC + java/lang/invoke/StringConcatFactory.makeConcatWithConstants(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/invoke/CallSite; + // arguments: + "Overall Debt at the end of \u0001 months: \u0001 euros" + ] + INVOKEVIRTUAL java/io/PrintStream.println (Ljava/lang/String;)V + L14 + LINENUMBER 35 L14 + RETURN + MAXSTACK = 5 + MAXLOCALS = 11 + + // access flags 0x9 + public static calculateMonthlyPayment(DDI)D + L0 + LINENUMBER 40 L0 + DLOAD 0 + DCONST_0 + DCMPG + IFGT L1 + DLOAD 2 + DCONST_0 + DCMPG + IFLE L1 + ILOAD 4 + IFGT L2 + L1 + LINENUMBER 42 L1 + FRAME FULL [D D I] [] + DCONST_0 + DRETURN + L2 + LINENUMBER 46 L2 + FRAME FULL [D D I] [] + DLOAD 2 + LDC 100.0 + DDIV + LDC 12.0 + DDIV + DSTORE 5 + L3 + LINENUMBER 47 L3 + DLOAD 5 + DLOAD 0 + DMUL + DCONST_1 + DCONST_1 + DLOAD 5 + DADD + ILOAD 4 + INEG + I2D + INVOKESTATIC java/lang/Math.pow (DD)D + DSUB + DDIV + DSTORE 7 + L4 + LINENUMBER 48 L4 + DLOAD 7 + DRETURN + MAXSTACK = 8 + MAXLOCALS = 9 + + // access flags 0x9 + public static calculateOverallDebt(ID)D + L0 + LINENUMBER 55 L0 + ILOAD 0 + IFLE L1 + DLOAD 1 + DCONST_0 + DCMPG + IFGT L2 + L1 + LINENUMBER 57 L1 + FRAME FULL [I D] [] + DCONST_0 + DRETURN + L2 + LINENUMBER 61 L2 + FRAME FULL [I D] [] + DLOAD 1 + ILOAD 0 + I2D + DMUL + DSTORE 3 + L3 + LINENUMBER 62 L3 + DLOAD 3 + DRETURN + MAXSTACK = 4 + MAXLOCALS = 5 +} + diff --git a/pitReports/export/src/Loan/mutants/9/details.txt b/pitReports/export/src/Loan/mutants/9/details.txt new file mode 100644 index 0000000..8cc93ac --- /dev/null +++ b/pitReports/export/src/Loan/mutants/9/details.txt @@ -0,0 +1 @@ +MutationDetails [id=MutationIdentifier [location=Location [clazz=src.Loan, method=calculateMonthlyPayment, methodDesc=(DDI)D], indexes=[6], mutator=org.pitest.mutationtest.engine.gregor.mutators.ConditionalsBoundaryMutator], filename=Loan.java, block=[0], lineNumber=40, description=changed conditional boundary, testsInOrder=[]] diff --git a/pitReports/export/src/Loan/mutants/9/src.Loan.class b/pitReports/export/src/Loan/mutants/9/src.Loan.class new file mode 100644 index 0000000..e26b863 Binary files /dev/null and b/pitReports/export/src/Loan/mutants/9/src.Loan.class differ diff --git a/pitReports/export/src/Loan/mutants/9/src.Loan.txt b/pitReports/export/src/Loan/mutants/9/src.Loan.txt new file mode 100644 index 0000000..911edad --- /dev/null +++ b/pitReports/export/src/Loan/mutants/9/src.Loan.txt @@ -0,0 +1,201 @@ +// class version 61.0 (61) +// access flags 0x21 +public class src/Loan { + + // compiled from: Loan.java + // access flags 0x19 + public final static INNERCLASS java/lang/invoke/MethodHandles$Lookup java/lang/invoke/MethodHandles Lookup + + // access flags 0x1 + public ()V + L0 + LINENUMBER 4 L0 + ALOAD 0 + INVOKESPECIAL java/lang/Object. ()V + RETURN + MAXSTACK = 1 + MAXLOCALS = 1 + + // access flags 0x9 + public static main([Ljava/lang/String;)V + L0 + LINENUMBER 8 L0 + NEW java/util/Scanner + DUP + GETSTATIC java/lang/System.in : Ljava/io/InputStream; + INVOKESPECIAL java/util/Scanner. (Ljava/io/InputStream;)V + ASTORE 1 + L1 + LINENUMBER 12 L1 + GETSTATIC java/lang/System.out : Ljava/io/PrintStream; + LDC "Enter Debt value in Euros : " + INVOKEVIRTUAL java/io/PrintStream.print (Ljava/lang/String;)V + L2 + LINENUMBER 13 L2 + ALOAD 1 + INVOKEVIRTUAL java/util/Scanner.nextDouble ()D + DSTORE 2 + L3 + LINENUMBER 15 L3 + GETSTATIC java/lang/System.out : Ljava/io/PrintStream; + LDC "Enter Interest rate in Percentage : " + INVOKEVIRTUAL java/io/PrintStream.print (Ljava/lang/String;)V + L4 + LINENUMBER 16 L4 + ALOAD 1 + INVOKEVIRTUAL java/util/Scanner.nextDouble ()D + DSTORE 4 + L5 + LINENUMBER 18 L5 + GETSTATIC java/lang/System.out : Ljava/io/PrintStream; + LDC "Enter Payback Duration in months : " + INVOKEVIRTUAL java/io/PrintStream.print (Ljava/lang/String;)V + L6 + LINENUMBER 19 L6 + ALOAD 1 + INVOKEVIRTUAL java/util/Scanner.nextInt ()I + ISTORE 6 + L7 + LINENUMBER 22 L7 + ALOAD 1 + INVOKEVIRTUAL java/util/Scanner.close ()V + L8 + LINENUMBER 25 L8 + DLOAD 2 + DLOAD 4 + ILOAD 6 + INVOKESTATIC src/Loan.calculateMonthlyPayment (DDI)D + DSTORE 7 + L9 + LINENUMBER 28 L9 + ILOAD 6 + DLOAD 7 + INVOKESTATIC src/Loan.calculateOverallDebt (ID)D + DSTORE 9 + L10 + LINENUMBER 31 L10 + GETSTATIC java/lang/System.out : Ljava/io/PrintStream; + LDC "-------------------------------------------------\n" + INVOKEVIRTUAL java/io/PrintStream.print (Ljava/lang/String;)V + L11 + LINENUMBER 32 L11 + GETSTATIC java/lang/System.out : Ljava/io/PrintStream; + DLOAD 7 + INVOKEDYNAMIC makeConcatWithConstants(D)Ljava/lang/String; [ + // handle kind 0x6 : INVOKESTATIC + java/lang/invoke/StringConcatFactory.makeConcatWithConstants(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/invoke/CallSite; + // arguments: + "Monthly Payment: \u0001 euros" + ] + INVOKEVIRTUAL java/io/PrintStream.println (Ljava/lang/String;)V + L12 + LINENUMBER 33 L12 + GETSTATIC java/lang/System.out : Ljava/io/PrintStream; + ILOAD 6 + INVOKEDYNAMIC makeConcatWithConstants(I)Ljava/lang/String; [ + // handle kind 0x6 : INVOKESTATIC + java/lang/invoke/StringConcatFactory.makeConcatWithConstants(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/invoke/CallSite; + // arguments: + "Number of Rates: \u0001" + ] + INVOKEVIRTUAL java/io/PrintStream.println (Ljava/lang/String;)V + L13 + LINENUMBER 34 L13 + GETSTATIC java/lang/System.out : Ljava/io/PrintStream; + ILOAD 6 + DLOAD 9 + INVOKEDYNAMIC makeConcatWithConstants(ID)Ljava/lang/String; [ + // handle kind 0x6 : INVOKESTATIC + java/lang/invoke/StringConcatFactory.makeConcatWithConstants(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/invoke/CallSite; + // arguments: + "Overall Debt at the end of \u0001 months: \u0001 euros" + ] + INVOKEVIRTUAL java/io/PrintStream.println (Ljava/lang/String;)V + L14 + LINENUMBER 35 L14 + RETURN + MAXSTACK = 5 + MAXLOCALS = 11 + + // access flags 0x9 + public static calculateMonthlyPayment(DDI)D + L0 + LINENUMBER 40 L0 + DLOAD 0 + DCONST_0 + DCMPG + IFLT L1 + DLOAD 2 + DCONST_0 + DCMPG + IFLE L1 + ILOAD 4 + IFGT L2 + L1 + LINENUMBER 42 L1 + FRAME FULL [D D I] [] + DCONST_0 + DRETURN + L2 + LINENUMBER 46 L2 + FRAME FULL [D D I] [] + DLOAD 2 + LDC 100.0 + DDIV + LDC 12.0 + DDIV + DSTORE 5 + L3 + LINENUMBER 47 L3 + DLOAD 5 + DLOAD 0 + DMUL + DCONST_1 + DCONST_1 + DLOAD 5 + DADD + ILOAD 4 + INEG + I2D + INVOKESTATIC java/lang/Math.pow (DD)D + DSUB + DDIV + DSTORE 7 + L4 + LINENUMBER 48 L4 + DLOAD 7 + DRETURN + MAXSTACK = 8 + MAXLOCALS = 9 + + // access flags 0x9 + public static calculateOverallDebt(ID)D + L0 + LINENUMBER 55 L0 + ILOAD 0 + IFLE L1 + DLOAD 1 + DCONST_0 + DCMPG + IFGT L2 + L1 + LINENUMBER 57 L1 + FRAME FULL [I D] [] + DCONST_0 + DRETURN + L2 + LINENUMBER 61 L2 + FRAME FULL [I D] [] + DLOAD 1 + ILOAD 0 + I2D + DMUL + DSTORE 3 + L3 + LINENUMBER 62 L3 + DLOAD 3 + DRETURN + MAXSTACK = 4 + MAXLOCALS = 5 +} + diff --git a/pitReports/export/src/Loan/src.Loan.txt b/pitReports/export/src/Loan/src.Loan.txt index 1661f4e..815cd65 100644 --- a/pitReports/export/src/Loan/src.Loan.txt +++ b/pitReports/export/src/Loan/src.Loan.txt @@ -3,70 +3,199 @@ public class src/Loan { // compiled from: Loan.java + // access flags 0x19 + public final static INNERCLASS java/lang/invoke/MethodHandles$Lookup java/lang/invoke/MethodHandles Lookup // access flags 0x1 public ()V L0 - LINENUMBER 5 L0 + LINENUMBER 4 L0 ALOAD 0 INVOKESPECIAL java/lang/Object. ()V RETURN - L1 - LOCALVARIABLE this Lsrc/Loan; L0 L1 0 MAXSTACK = 1 MAXLOCALS = 1 - // access flags 0x9 - public static sum(DD)Ljava/lang/Double; - L0 - LINENUMBER 9 L0 - DLOAD 0 - DLOAD 2 - DADD - INVOKESTATIC java/lang/Double.valueOf (D)Ljava/lang/Double; - ARETURN - L1 - LOCALVARIABLE a D L0 L1 0 - LOCALVARIABLE b D L0 L1 2 - MAXSTACK = 4 - MAXLOCALS = 4 - // access flags 0x9 public static main([Ljava/lang/String;)V L0 - LINENUMBER 14 L0 - GETSTATIC java/lang/System.out : Ljava/io/PrintStream; - LDC "Hello world" - INVOKEVIRTUAL java/io/PrintStream.println (Ljava/lang/String;)V + LINENUMBER 8 L0 + NEW java/util/Scanner + DUP + GETSTATIC java/lang/System.in : Ljava/io/InputStream; + INVOKESPECIAL java/util/Scanner. (Ljava/io/InputStream;)V + ASTORE 1 L1 - LINENUMBER 15 L1 - LDC 14.0 - DSTORE 1 + LINENUMBER 12 L1 + GETSTATIC java/lang/System.out : Ljava/io/PrintStream; + LDC "Enter Debt value in Euros : " + INVOKEVIRTUAL java/io/PrintStream.print (Ljava/lang/String;)V L2 - LINENUMBER 16 L2 - LDC 5.0 + LINENUMBER 13 L2 + ALOAD 1 + INVOKEVIRTUAL java/util/Scanner.nextDouble ()D + DSTORE 2 + L3 + LINENUMBER 15 L3 + GETSTATIC java/lang/System.out : Ljava/io/PrintStream; + LDC "Enter Interest rate in Percentage : " + INVOKEVIRTUAL java/io/PrintStream.print (Ljava/lang/String;)V + L4 + LINENUMBER 16 L4 + ALOAD 1 + INVOKEVIRTUAL java/util/Scanner.nextDouble ()D + DSTORE 4 + L5 + LINENUMBER 18 L5 + GETSTATIC java/lang/System.out : Ljava/io/PrintStream; + LDC "Enter Payback Duration in months : " + INVOKEVIRTUAL java/io/PrintStream.print (Ljava/lang/String;)V + L6 + LINENUMBER 19 L6 + ALOAD 1 + INVOKEVIRTUAL java/util/Scanner.nextInt ()I + ISTORE 6 + L7 + LINENUMBER 22 L7 + ALOAD 1 + INVOKEVIRTUAL java/util/Scanner.close ()V + L8 + LINENUMBER 25 L8 + DLOAD 2 + DLOAD 4 + ILOAD 6 + INVOKESTATIC src/Loan.calculateMonthlyPayment (DDI)D + DSTORE 7 + L9 + LINENUMBER 28 L9 + ILOAD 6 + DLOAD 7 + INVOKESTATIC src/Loan.calculateOverallDebt (ID)D + DSTORE 9 + L10 + LINENUMBER 31 L10 + GETSTATIC java/lang/System.out : Ljava/io/PrintStream; + LDC "-------------------------------------------------\n" + INVOKEVIRTUAL java/io/PrintStream.print (Ljava/lang/String;)V + L11 + LINENUMBER 32 L11 + GETSTATIC java/lang/System.out : Ljava/io/PrintStream; + DLOAD 7 + INVOKEDYNAMIC makeConcatWithConstants(D)Ljava/lang/String; [ + // handle kind 0x6 : INVOKESTATIC + java/lang/invoke/StringConcatFactory.makeConcatWithConstants(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/invoke/CallSite; + // arguments: + "Monthly Payment: \u0001 euros" + ] + INVOKEVIRTUAL java/io/PrintStream.println (Ljava/lang/String;)V + L12 + LINENUMBER 33 L12 + GETSTATIC java/lang/System.out : Ljava/io/PrintStream; + ILOAD 6 + INVOKEDYNAMIC makeConcatWithConstants(I)Ljava/lang/String; [ + // handle kind 0x6 : INVOKESTATIC + java/lang/invoke/StringConcatFactory.makeConcatWithConstants(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/invoke/CallSite; + // arguments: + "Number of Rates: \u0001" + ] + INVOKEVIRTUAL java/io/PrintStream.println (Ljava/lang/String;)V + L13 + LINENUMBER 34 L13 + GETSTATIC java/lang/System.out : Ljava/io/PrintStream; + ILOAD 6 + DLOAD 9 + INVOKEDYNAMIC makeConcatWithConstants(ID)Ljava/lang/String; [ + // handle kind 0x6 : INVOKESTATIC + java/lang/invoke/StringConcatFactory.makeConcatWithConstants(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/invoke/CallSite; + // arguments: + "Overall Debt at the end of \u0001 months: \u0001 euros" + ] + INVOKEVIRTUAL java/io/PrintStream.println (Ljava/lang/String;)V + L14 + LINENUMBER 35 L14 + RETURN + MAXSTACK = 5 + MAXLOCALS = 11 + + // access flags 0x9 + public static calculateMonthlyPayment(DDI)D + L0 + LINENUMBER 40 L0 + DLOAD 0 + DCONST_0 + DCMPG + IFLE L1 + DLOAD 2 + DCONST_0 + DCMPG + IFLE L1 + ILOAD 4 + IFGT L2 + L1 + LINENUMBER 42 L1 + FRAME FULL [D D I] [] + DCONST_0 + DRETURN + L2 + LINENUMBER 46 L2 + FRAME FULL [D D I] [] + DLOAD 2 + LDC 100.0 + DDIV + LDC 12.0 + DDIV + DSTORE 5 + L3 + LINENUMBER 47 L3 + DLOAD 5 + DLOAD 0 + DMUL + DCONST_1 + DCONST_1 + DLOAD 5 + DADD + ILOAD 4 + INEG + I2D + INVOKESTATIC java/lang/Math.pow (DD)D + DSUB + DDIV + DSTORE 7 + L4 + LINENUMBER 48 L4 + DLOAD 7 + DRETURN + MAXSTACK = 8 + MAXLOCALS = 9 + + // access flags 0x9 + public static calculateOverallDebt(ID)D + L0 + LINENUMBER 55 L0 + ILOAD 0 + IFLE L1 + DLOAD 1 + DCONST_0 + DCMPG + IFGT L2 + L1 + LINENUMBER 57 L1 + FRAME FULL [I D] [] + DCONST_0 + DRETURN + L2 + LINENUMBER 61 L2 + FRAME FULL [I D] [] + DLOAD 1 + ILOAD 0 + I2D + DMUL DSTORE 3 L3 - LINENUMBER 18 L3 - DLOAD 1 + LINENUMBER 62 L3 DLOAD 3 - INVOKESTATIC src/Loan.sum (DD)Ljava/lang/Double; - INVOKEVIRTUAL java/lang/Double.doubleValue ()D - DSTORE 5 - L4 - LINENUMBER 19 L4 - GETSTATIC java/lang/System.out : Ljava/io/PrintStream; - DLOAD 5 - INVOKEVIRTUAL java/io/PrintStream.println (D)V - L5 - LINENUMBER 20 L5 - RETURN - L6 - LOCALVARIABLE args [Ljava/lang/String; L0 L6 0 - LOCALVARIABLE a D L2 L6 1 - LOCALVARIABLE b D L3 L6 3 - LOCALVARIABLE answer D L4 L6 5 + DRETURN MAXSTACK = 4 - MAXLOCALS = 7 + MAXLOCALS = 5 } diff --git a/src/src/Gaurav_Loan.java b/src/src/Gaurav_Loan.java index 23fea4e..de94e20 100644 --- a/src/src/Gaurav_Loan.java +++ b/src/src/Gaurav_Loan.java @@ -1,15 +1,26 @@ package src; import static org.junit.jupiter.api.Assertions.*; - import org.junit.Test; public class Gaurav_Loan { - @Test - public void test() { - Loan mc = new Loan(); - assertEquals(0, mc.sum(0, 0)); - } - + public void test() + { + assertEquals(0,Loan.calculateMonthlyPayment(0, 0,0)); + assertEquals(0,Loan.calculateOverallDebt( 0,0)); + + assertEquals(93.22,Loan.calculateMonthlyPayment(5000, 4.5, 60),1); + assertEquals(5592.91,Loan.calculateOverallDebt( 60,93.22),1); + + assertEquals(0,Loan.calculateMonthlyPayment(-5000, -4.5, -60),1); + assertEquals(0,Loan.calculateOverallDebt( -60,-93.22),1); + + assertEquals(452.27,Loan.calculateMonthlyPayment(10000, 8, 24),1); + assertEquals(10854.55,Loan.calculateOverallDebt( 24,452.27),1); + + assertEquals(29.10,Loan.calculateMonthlyPayment(1000.45, 3.02, 36),1); + assertEquals(1047.26,Loan.calculateOverallDebt( 36,29.10),1); + + } } diff --git a/src/src/Loan.class b/src/src/Loan.class new file mode 100644 index 0000000..13a1c44 Binary files /dev/null and b/src/src/Loan.class differ diff --git a/src/src/Loan.java b/src/src/Loan.java index eb8f855..a57c305 100644 --- a/src/src/Loan.java +++ b/src/src/Loan.java @@ -1,22 +1,64 @@ package src; +import java.util.Scanner; -//import org.junit.Test; +public class Loan{ -public class Loan -{ - public static Double sum(double a,double b) - { - return a+b; - } - - public static void main(String[] args) { - // TODO Auto-generated method stub - System.out.println("Hello world"); - double a = 14; - double b = 5; - double answer; - answer = sum(a,b); - System.out.println(answer); - } + public static void main(String[] args) { + // Scanner for reading input from STDIN + + Scanner myobj = new Scanner(System.in); + System.out.print("Enter Debt value in Euros : "); + + double debtValue = myobj.nextDouble(); + System.out.print("Enter Interest rate in Percentage : "); + double interestRate = myobj.nextDouble(); + + System.out.print("Enter Payback Duration in months : "); + int paybackDuration = myobj.nextInt(); + + // Close the scanner to prevent resource leak + myobj.close(); + + // Calculate monthly payment + double monthlyPayment = calculateMonthlyPayment(debtValue, interestRate, paybackDuration); + + // Calculate overall debt (debt value plus total interest) + double overallDebt = calculateOverallDebt(paybackDuration,monthlyPayment); + + // Output the results to STDOUT + System.out.print("-------------------------------------------------\n"); + System.out.println("Monthly Payment: " + monthlyPayment + " euros"); + System.out.println("Number of Rates: " + paybackDuration); + System.out.println("Overall Debt at the end of "+ paybackDuration +" months: " + overallDebt + " euros"); + } + + // Function to calculate the monthly rate using the loan amortization formula + public static double calculateMonthlyPayment(double debtValue, double interestRate, int paybackDuration) + { + if(debtValue<=0 || interestRate<=0 || paybackDuration<=0) + { + return 0; + } + else + { + double monthlyInterestRate = (interestRate / 100) / 12; + double monthlyPayment = (monthlyInterestRate*debtValue)/ (1-Math.pow(1+monthlyInterestRate, -paybackDuration)); + return monthlyPayment; + } + } + + // Function to calculate the overall debt (debt value plus total interest) + public static double calculateOverallDebt(int paybackDuration,double monthlyPayment) + { + if(paybackDuration<=0 || monthlyPayment<=0) + { + return 0; + } + else + { + double totalCost = monthlyPayment * paybackDuration; + return totalCost; + } + } }