(0) Obligation:
Need to prove time_complexity of the following program:
/**
* Example taken from "A Term Rewriting Approach to the Automated Termination
* Analysis of Imperative Programs" (http://www.cs.unm.edu/~spf/papers/2009-02.pdf)
* and converted to Java.
*/
public class PastaA4 {
public static void main(int x, int y) {
while (x > y) {
y++;
}
}
}
(1) JBCToGraph (BOTH CONCRETE BOUNDS(ID, ID) transformation)
Constructed TerminationGraph.
(2) Obligation:
Termination Graph based on JBC Program:
PastaA4.main(II)V: Graph of 42 nodes with 1 SCC.
(3) TerminationGraphToComplexityProof (BOTH CONCRETE BOUNDS(ID, ADD(4)) transformation)
Extracted set of 38 edges for the analysis of TIME complexity. Kept leaves.
(4) Obligation:
Set of 38 edges based on JBC Program.
Performed SCC analyses:
- Used field analysis yielded the following read fields:
Considered paths: nonterm paths and paths from start to sinks
(5) JBCGraphEdgesToCpxIntTrsProof (CONCRETE UPPER BOUND(ID) transformation)
Transformed 38 jbc graph edges to a weighted ITS with 38 rules.
Used simplified encoding of division and modulo.
Filtered conditions with variables that do not depend on the variables on the lhs or rhs without taking transitive dependencies into account.
Did no encode lower bounds for putfield and astore.
(6) Obligation:
IntTrs with 38 rules
Start term: main_Load_1(#0, #1, env, static)
Considered paths: nonterm paths and paths from start to sinks
Rules:
main_Load_1(i2, i3, env, static) -{0,0}> main_Load_3(i2, i3, env, static) :|: 0 >= 0
main_Load_3(i2, i3, env, static) -{0,0}> langle_clinit_rangle_ConstantStackPush_5(i2, i3, env, static) :|: 0 >= 0
langle_clinit_rangle_ConstantStackPush_5(i2, i3, env, static) -{1,1}> langle_clinit_rangle_ArrayCreate_12(iconst_0, i2, i3, env, static) :|: iconst_0 = 0
langle_clinit_rangle_ArrayCreate_12(iconst_0, i2, i3, env, static) -{1,1}> langle_clinit_rangle_FieldAccess_14(a2, i2, i3, iconst_0, env, static) :|: a2 = 2 && iconst_0 = 0 && 0 < a2
langle_clinit_rangle_FieldAccess_14(a2, i2, i3, iconst_0, env, static) -{1,1}> langle_clinit_rangle_New_16(i2, i3, env, static') :|: 0 <= a2 && iconst_0 = 0 && static' <= static + a2 && 0 <= static && 0 < a2
langle_clinit_rangle_New_16(i2, i3, env, static) -{0,0}> langle_clinit_rangle_New_18(i2, i3, env, static) :|: 0 >= 0
langle_clinit_rangle_New_18(i2, i3, env, static) -{0,0}> langle_clinit_rangle_New_19(i2, i3, env, static) :|: 0 <= static
langle_clinit_rangle_New_19(i2, i3, env, static) -{1,1}> langle_clinit_rangle_Duplicate_20(o2, i2, i3, env, static) :|: 0 < o2 && o2 = 1
langle_clinit_rangle_Duplicate_20(o2, i2, i3, env, static) -{1,1}> langle_clinit_rangle_ConstantStackPush_22(o2, i2, i3, env, static) :|: 0 < o2
langle_clinit_rangle_ConstantStackPush_22(o2, i2, i3, env, static) -{1,1}> langle_clinit_rangle_InvokeMethod_24(o2, NULL, i2, i3, env, static) :|: NULL = 0 && 0 < o2
langle_clinit_rangle_InvokeMethod_24(o2, NULL, i2, i3, env, static) -{1,1}> langle_init_rangle_Load_25(o2, i2, i3, env, static) :|: NULL = 0 && 0 < o2
langle_init_rangle_Load_25(o2, i2, i3, env, static) -{1,1}> langle_init_rangle_InvokeMethod_28(o2, i2, i3, env, static) :|: 0 < o2
langle_init_rangle_InvokeMethod_28(o2, i2, i3, env, static) -{1,1}> langle_init_rangle_Load_29(o2, i2, i3, env, static) :|: 0 < o2
langle_init_rangle_Load_29(o2, i2, i3, env, static) -{1,1}> langle_init_rangle_InvokeMethod_31(o2, i2, i3, env, static) :|: 0 < o2
langle_init_rangle_InvokeMethod_31(o2, i2, i3, env, static) -{1,1}> langle_init_rangle_Return_34(o2, i2, i3, env, static) :|: 0 < o2
langle_init_rangle_Return_34(o2, i2, i3, env, static) -{1,1}> langle_init_rangle_Return_36(o2, i2, i3, env, static) :|: 0 < o2
langle_init_rangle_Return_36(o2, i2, i3, env, static) -{1,1}> langle_clinit_rangle_FieldAccess_39(o2, i2, i3, env, static) :|: 0 < o2
langle_clinit_rangle_FieldAccess_39(o2, i2, i3, env, static) -{1,1}> langle_clinit_rangle_Return_45(i2, i3, env, static') :|: 0 < o2 && 0 <= o2 && 0 <= static && static' <= static + o2
langle_clinit_rangle_Return_45(i2, i3, env, static) -{1,1}> main_Load_46(i2, i3, env, static) :|: 0 >= 0
main_Load_46(i2, i3, env, static) -{0,0}> main_Load_47(i2, i3, env, static) :|: 0 >= 0
main_Load_47(i2, i3, env, static) -{0,0}> main_Load_48(i2, i3, env, static) :|: 0 <= static
main_Load_48(i2, i3, env, static) -{0,0}> main_Load_49(i2, i3, env, static) :|: 0 >= 0
main_Load_49(i2, i3, env, static) -{0,0}> main_Load_50(i2, i3, env, static) :|: 0 >= 0
main_Load_50(i2, i3, env, static) -{1,1}> main_Load_51(i2, i3, env, static) :|: 0 >= 0
main_Load_51(i2, i3, env, static) -{1,1}> main_LE_55(i2, i3, env, static) :|: 0 >= 0
main_LE_55(i2, i3, env, static) -{0,0}> main_LE_57(i2, i3, env, static) :|: i2 <= i3
main_LE_55(i2, i3, env, static) -{0,0}> main_LE_58(i2, i3, env, static) :|: i3 < i2
main_LE_58(i2, i3, env, static) -{1,1}> main_Inc_62(i2, i3, env, static) :|: i3 < i2
main_Inc_62(i2, i3, env, static) -{1,1}> main_JMP_66(i2, i3, i6, env, static) :|: i3 + 1 = i6
main_JMP_66(i2, i3, i6, env, static) -{0,0}> main_JMP_130(i2, i3, i6, env, static) :|: 0 >= 0
main_JMP_130(i2, i3, i18, env, static) -{1,1}> main_Load_134(i2, i3, i18, env, static) :|: 0 >= 0
main_Load_134(i2, i3, i18, env, static) -{1,1}> main_Load_141(i2, i3, i18, env, static) :|: 0 >= 0
main_Load_141(i2, i3, i18, env, static) -{1,1}> main_LE_155(i2, i3, i18, env, static) :|: 0 >= 0
main_LE_155(i2, i3, i18, env, static) -{0,0}> main_LE_161(i2, i3, i18, env, static) :|: i2 <= i18
main_LE_155(i2, i3, i18, env, static) -{0,0}> main_LE_162(i2, i3, i18, env, static) :|: i18 < i2
main_LE_162(i2, i3, i18, env, static) -{1,1}> main_Inc_176(i2, i3, i18, env, static) :|: i18 < i2
main_Inc_176(i2, i3, i18, env, static) -{1,1}> main_JMP_204(i2, i3, i31, env, static) :|: i18 + 1 = i31
main_JMP_204(i2, i3, i31, env, static) -{0,0}> main_JMP_130(i2, i3, i31, env, static) :|: 0 >= 0
(7) StraightLineCodeCompressionProof (BOTH CONCRETE BOUNDS(ID, ID) transformation)
obtained
main_Load_1(
i2,
i3,
env,
static) -{17,17}>
main_LE_55(
i2,
i3,
env,
static'1) :|: 0 >= 0 &&
0 <
2 &&
0 <=
static'1 &&
0 <=
static &&
0 <=
1 &&
0 <
1 &&
static''' <=
static +
2 &&
0 <=
static''' &&
0 <=
2 &&
static'1 <=
static''' +
1by chaining
main_Load_1(
i2,
i3,
env,
static) -{0,0}>
main_Load_3(
i2,
i3,
env,
static) :|: 0 >= 0
main_Load_3(
i2,
i3,
env,
static) -{0,0}>
langle_clinit_rangle_ConstantStackPush_5(
i2,
i3,
env,
static) :|: 0 >= 0
langle_clinit_rangle_ConstantStackPush_5(
i2,
i3,
env,
static) -{1,1}>
langle_clinit_rangle_ArrayCreate_12(
iconst_0,
i2,
i3,
env,
static) :|:
iconst_0 =
0langle_clinit_rangle_ArrayCreate_12(
iconst_0,
i2,
i3,
env,
static) -{1,1}>
langle_clinit_rangle_FieldAccess_14(
a2,
i2,
i3,
iconst_0,
env,
static) :|:
a2 =
2 &&
iconst_0 =
0 &&
0 <
a2langle_clinit_rangle_FieldAccess_14(
a2,
i2,
i3,
iconst_0,
env,
static) -{1,1}>
langle_clinit_rangle_New_16(
i2,
i3,
env,
static') :|:
0 <=
a2 &&
iconst_0 =
0 &&
static' <=
static +
a2 &&
0 <=
static &&
0 <
a2langle_clinit_rangle_New_16(
i2,
i3,
env,
static) -{0,0}>
langle_clinit_rangle_New_18(
i2,
i3,
env,
static) :|: 0 >= 0
langle_clinit_rangle_New_18(
i2,
i3,
env,
static) -{0,0}>
langle_clinit_rangle_New_19(
i2,
i3,
env,
static) :|:
0 <=
staticlangle_clinit_rangle_New_19(
i2,
i3,
env,
static) -{1,1}>
langle_clinit_rangle_Duplicate_20(
o2,
i2,
i3,
env,
static) :|:
0 <
o2 &&
o2 =
1langle_clinit_rangle_Duplicate_20(
o2,
i2,
i3,
env,
static) -{1,1}>
langle_clinit_rangle_ConstantStackPush_22(
o2,
i2,
i3,
env,
static) :|:
0 <
o2langle_clinit_rangle_ConstantStackPush_22(
o2,
i2,
i3,
env,
static) -{1,1}>
langle_clinit_rangle_InvokeMethod_24(
o2,
NULL,
i2,
i3,
env,
static) :|:
NULL =
0 &&
0 <
o2langle_clinit_rangle_InvokeMethod_24(
o2,
NULL,
i2,
i3,
env,
static) -{1,1}>
langle_init_rangle_Load_25(
o2,
i2,
i3,
env,
static) :|:
NULL =
0 &&
0 <
o2langle_init_rangle_Load_25(
o2,
i2,
i3,
env,
static) -{1,1}>
langle_init_rangle_InvokeMethod_28(
o2,
i2,
i3,
env,
static) :|:
0 <
o2langle_init_rangle_InvokeMethod_28(
o2,
i2,
i3,
env,
static) -{1,1}>
langle_init_rangle_Load_29(
o2,
i2,
i3,
env,
static) :|:
0 <
o2langle_init_rangle_Load_29(
o2,
i2,
i3,
env,
static) -{1,1}>
langle_init_rangle_InvokeMethod_31(
o2,
i2,
i3,
env,
static) :|:
0 <
o2langle_init_rangle_InvokeMethod_31(
o2,
i2,
i3,
env,
static) -{1,1}>
langle_init_rangle_Return_34(
o2,
i2,
i3,
env,
static) :|:
0 <
o2langle_init_rangle_Return_34(
o2,
i2,
i3,
env,
static) -{1,1}>
langle_init_rangle_Return_36(
o2,
i2,
i3,
env,
static) :|:
0 <
o2langle_init_rangle_Return_36(
o2,
i2,
i3,
env,
static) -{1,1}>
langle_clinit_rangle_FieldAccess_39(
o2,
i2,
i3,
env,
static) :|:
0 <
o2langle_clinit_rangle_FieldAccess_39(
o2,
i2,
i3,
env,
static) -{1,1}>
langle_clinit_rangle_Return_45(
i2,
i3,
env,
static') :|:
0 <
o2 &&
0 <=
o2 &&
0 <=
static &&
static' <=
static +
o2langle_clinit_rangle_Return_45(
i2,
i3,
env,
static) -{1,1}>
main_Load_46(
i2,
i3,
env,
static) :|: 0 >= 0
main_Load_46(
i2,
i3,
env,
static) -{0,0}>
main_Load_47(
i2,
i3,
env,
static) :|: 0 >= 0
main_Load_47(
i2,
i3,
env,
static) -{0,0}>
main_Load_48(
i2,
i3,
env,
static) :|:
0 <=
staticmain_Load_48(
i2,
i3,
env,
static) -{0,0}>
main_Load_49(
i2,
i3,
env,
static) :|: 0 >= 0
main_Load_49(
i2,
i3,
env,
static) -{0,0}>
main_Load_50(
i2,
i3,
env,
static) :|: 0 >= 0
main_Load_50(
i2,
i3,
env,
static) -{1,1}>
main_Load_51(
i2,
i3,
env,
static) :|: 0 >= 0
main_Load_51(
i2,
i3,
env,
static) -{1,1}>
main_LE_55(
i2,
i3,
env,
static) :|: 0 >= 0
obtained
main_LE_55(i2, i3, env, static) -{2,2}> main_JMP_130(i2, i3, i6', env, static) :|: 0 >= 0 && i3 < i2 && i3 + 1 = i6'
by chaining
main_LE_55(i2, i3, env, static) -{0,0}> main_LE_58(i2, i3, env, static) :|: i3 < i2
main_LE_58(i2, i3, env, static) -{1,1}> main_Inc_62(i2, i3, env, static) :|: i3 < i2
main_Inc_62(i2, i3, env, static) -{1,1}> main_JMP_66(i2, i3, i6, env, static) :|: i3 + 1 = i6
main_JMP_66(i2, i3, i6, env, static) -{0,0}> main_JMP_130(i2, i3, i6, env, static) :|: 0 >= 0
obtained
main_JMP_130(i2, i3, i18, env, static) -{3,3}> main_LE_155(i2, i3, i18, env, static) :|: 0 >= 0
by chaining
main_JMP_130(i2, i3, i18, env, static) -{1,1}> main_Load_134(i2, i3, i18, env, static) :|: 0 >= 0
main_Load_134(i2, i3, i18, env, static) -{1,1}> main_Load_141(i2, i3, i18, env, static) :|: 0 >= 0
main_Load_141(i2, i3, i18, env, static) -{1,1}> main_LE_155(i2, i3, i18, env, static) :|: 0 >= 0
obtained
main_LE_155(i2, i3, i18, env, static) -{2,2}> main_JMP_130(i2, i3, i31', env, static) :|: 0 >= 0 && i18 < i2 && i18 + 1 = i31'
by chaining
main_LE_155(i2, i3, i18, env, static) -{0,0}> main_LE_162(i2, i3, i18, env, static) :|: i18 < i2
main_LE_162(i2, i3, i18, env, static) -{1,1}> main_Inc_176(i2, i3, i18, env, static) :|: i18 < i2
main_Inc_176(i2, i3, i18, env, static) -{1,1}> main_JMP_204(i2, i3, i31, env, static) :|: i18 + 1 = i31
main_JMP_204(i2, i3, i31, env, static) -{0,0}> main_JMP_130(i2, i3, i31, env, static) :|: 0 >= 0
(8) Obligation:
IntTrs with 6 rules
Start term: main_Load_1(#0, #1, env, static)
Considered paths: nonterm paths and paths from start to sinks
Rules:
main_Load_1(i2, i3, env, static) -{17,17}> main_LE_55(i2, i3, env, static'1) :|: 0 >= 0 && 0 < 2 && 0 <= static'1 && 0 <= static && 0 <= 1 && 0 < 1 && static''' <= static + 2 && 0 <= static''' && 0 <= 2 && static'1 <= static''' + 1
main_LE_55(i2, i3, env, static) -{0,0}> main_LE_57(i2, i3, env, static) :|: i2 <= i3
main_LE_55(i2, i3, env, static) -{2,2}> main_JMP_130(i2, i3, i6', env, static) :|: 0 >= 0 && i3 < i2 && i3 + 1 = i6'
main_JMP_130(i2, i3, i18, env, static) -{3,3}> main_LE_155(i2, i3, i18, env, static) :|: 0 >= 0
main_LE_155(i2, i3, i18, env, static) -{0,0}> main_LE_161(i2, i3, i18, env, static) :|: i2 <= i18
main_LE_155(i2, i3, i18, env, static) -{2,2}> main_JMP_130(i2, i3, i31', env, static) :|: 0 >= 0 && i18 < i2 && i18 + 1 = i31'
(9) MovedArithmeticFromConstraintsProof (BOTH CONCRETE BOUNDS(ID, ID) transformation)
Moved arithmethic from constraints to rhss.
main_LE_155(i2, i3, i18, env, static) -{2,2}> main_JMP_130(i2, i3, i31', env, static) :|: 0 >= 0 && i18 < i2 && i18 + 1 = i31'
was transformed to
main_LE_155(i2, i3, i18, env, static) -{2,2}> main_JMP_130(i2, i3, i18 + 1, env, static) :|: 0 >= 0 && i18 < i2 && i18 + 1 = i31'
main_LE_55(i2, i3, env, static) -{2,2}> main_JMP_130(i2, i3, i6', env, static) :|: 0 >= 0 && i3 < i2 && i3 + 1 = i6'
was transformed to
main_LE_55(i2, i3, env, static) -{2,2}> main_JMP_130(i2, i3, i3 + 1, env, static) :|: 0 >= 0 && i3 < i2 && i3 + 1 = i6'
(10) Obligation:
IntTrs with 6 rules
Start term: main_Load_1(#0, #1, env, static)
Considered paths: nonterm paths and paths from start to sinks
Rules:
main_Load_1(i2, i3, env, static) -{17,17}> main_LE_55(i2, i3, env, static'1) :|: 0 >= 0 && 0 < 2 && 0 <= static'1 && 0 <= static && 0 <= 1 && 0 < 1 && static''' <= static + 2 && 0 <= static''' && 0 <= 2 && static'1 <= static''' + 1
main_LE_155(i2, i3, i18, env, static) -{2,2}> main_JMP_130(i2, i3, i18 + 1, env, static) :|: 0 >= 0 && i18 < i2 && i18 + 1 = i31'
main_LE_155(i2, i3, i18, env, static) -{0,0}> main_LE_161(i2, i3, i18, env, static) :|: i2 <= i18
main_JMP_130(i2, i3, i18, env, static) -{3,3}> main_LE_155(i2, i3, i18, env, static) :|: 0 >= 0
main_LE_55(i2, i3, env, static) -{2,2}> main_JMP_130(i2, i3, i3 + 1, env, static) :|: 0 >= 0 && i3 < i2 && i3 + 1 = i6'
main_LE_55(i2, i3, env, static) -{0,0}> main_LE_57(i2, i3, env, static) :|: i2 <= i3
(11) ExpressionSimplificationProof (BOTH CONCRETE BOUNDS(ID, ID) transformation)
Simplified expressions.
main_Load_1(i2, i3, env, static) -{17,17}> main_LE_55(i2, i3, env, static'1) :|: 0 >= 0 && 0 < 2 && 0 <= static'1 && 0 <= static && 0 <= 1 && 0 < 1 && static''' <= static + 2 && 0 <= static''' && 0 <= 2 && static'1 <= static''' + 1
was transformed to
main_Load_1(i2, i3, env, static) -{17,17}> main_LE_55(i2, i3, env, static'1) :|: 0 <= static'1 && 0 <= static && static''' <= static + 2 && 0 <= static''' && static'1 <= static''' + 1
main_LE_55(i2, i3, env, static) -{2,2}> main_JMP_130(i2, i3, i3 + 1, env, static) :|: 0 >= 0 && i3 < i2 && i3 + 1 = i6'
was transformed to
main_LE_55(i2, i3, env, static) -{2,2}> main_JMP_130(i2, i3, i3 + 1, env, static) :|: i3 < i2 && i3 + 1 = i6'
main_LE_155(i2, i3, i18, env, static) -{2,2}> main_JMP_130(i2, i3, i18 + 1, env, static) :|: 0 >= 0 && i18 < i2 && i18 + 1 = i31'
was transformed to
main_LE_155(i2, i3, i18, env, static) -{2,2}> main_JMP_130(i2, i3, i18 + 1, env, static) :|: i18 < i2 && i18 + 1 = i31'
(12) Obligation:
IntTrs with 6 rules
Start term: main_Load_1(#0, #1, env, static)
Considered paths: nonterm paths and paths from start to sinks
Rules:
main_JMP_130(i2, i3, i18, env, static) -{3,3}> main_LE_155(i2, i3, i18, env, static) :|: 0 >= 0
main_LE_155(i2, i3, i18, env, static) -{0,0}> main_LE_161(i2, i3, i18, env, static) :|: i2 <= i18
main_LE_55(i2, i3, env, static) -{2,2}> main_JMP_130(i2, i3, i3 + 1, env, static) :|: i3 < i2 && i3 + 1 = i6'
main_LE_55(i2, i3, env, static) -{0,0}> main_LE_57(i2, i3, env, static) :|: i2 <= i3
main_LE_155(i2, i3, i18, env, static) -{2,2}> main_JMP_130(i2, i3, i18 + 1, env, static) :|: i18 < i2 && i18 + 1 = i31'
main_Load_1(i2, i3, env, static) -{17,17}> main_LE_55(i2, i3, env, static'1) :|: 0 <= static'1 && 0 <= static && static''' <= static + 2 && 0 <= static''' && static'1 <= static''' + 1
(13) JBCGraphEdgesToCpxIntTrsProof (CONCRETE UPPER BOUND(ID) transformation)
Transformed 38 jbc graph edges to a weighted ITS with 38 rules.
Filtered conditions with variables that do not depend on the variables on the lhs or rhs without taking transitive dependencies into account.
Did no encode lower bounds for putfield and astore.
(14) Obligation:
IntTrs with 38 rules
Start term: main_Load_1(#0, #1, env, static)
Considered paths: nonterm paths and paths from start to sinks
Rules:
main_Load_1(i2, i3, env, static) -{0,0}> main_Load_3(i2, i3, env, static) :|: 0 >= 0
main_Load_3(i2, i3, env, static) -{0,0}> langle_clinit_rangle_ConstantStackPush_5(i2, i3, env, static) :|: 0 >= 0
langle_clinit_rangle_ConstantStackPush_5(i2, i3, env, static) -{1,1}> langle_clinit_rangle_ArrayCreate_12(iconst_0, i2, i3, env, static) :|: iconst_0 = 0
langle_clinit_rangle_ArrayCreate_12(iconst_0, i2, i3, env, static) -{1,1}> langle_clinit_rangle_FieldAccess_14(a2, i2, i3, iconst_0, env, static) :|: a2 = 2 && iconst_0 = 0 && 0 < a2
langle_clinit_rangle_FieldAccess_14(a2, i2, i3, iconst_0, env, static) -{1,1}> langle_clinit_rangle_New_16(i2, i3, env, static') :|: 0 <= a2 && iconst_0 = 0 && static' <= static + a2 && 0 <= static && 0 < a2
langle_clinit_rangle_New_16(i2, i3, env, static) -{0,0}> langle_clinit_rangle_New_18(i2, i3, env, static) :|: 0 >= 0
langle_clinit_rangle_New_18(i2, i3, env, static) -{0,0}> langle_clinit_rangle_New_19(i2, i3, env, static) :|: 0 <= static
langle_clinit_rangle_New_19(i2, i3, env, static) -{1,1}> langle_clinit_rangle_Duplicate_20(o2, i2, i3, env, static) :|: 0 < o2 && o2 = 1
langle_clinit_rangle_Duplicate_20(o2, i2, i3, env, static) -{1,1}> langle_clinit_rangle_ConstantStackPush_22(o2, i2, i3, env, static) :|: 0 < o2
langle_clinit_rangle_ConstantStackPush_22(o2, i2, i3, env, static) -{1,1}> langle_clinit_rangle_InvokeMethod_24(o2, NULL, i2, i3, env, static) :|: NULL = 0 && 0 < o2
langle_clinit_rangle_InvokeMethod_24(o2, NULL, i2, i3, env, static) -{1,1}> langle_init_rangle_Load_25(o2, i2, i3, env, static) :|: NULL = 0 && 0 < o2
langle_init_rangle_Load_25(o2, i2, i3, env, static) -{1,1}> langle_init_rangle_InvokeMethod_28(o2, i2, i3, env, static) :|: 0 < o2
langle_init_rangle_InvokeMethod_28(o2, i2, i3, env, static) -{1,1}> langle_init_rangle_Load_29(o2, i2, i3, env, static) :|: 0 < o2
langle_init_rangle_Load_29(o2, i2, i3, env, static) -{1,1}> langle_init_rangle_InvokeMethod_31(o2, i2, i3, env, static) :|: 0 < o2
langle_init_rangle_InvokeMethod_31(o2, i2, i3, env, static) -{1,1}> langle_init_rangle_Return_34(o2, i2, i3, env, static) :|: 0 < o2
langle_init_rangle_Return_34(o2, i2, i3, env, static) -{1,1}> langle_init_rangle_Return_36(o2, i2, i3, env, static) :|: 0 < o2
langle_init_rangle_Return_36(o2, i2, i3, env, static) -{1,1}> langle_clinit_rangle_FieldAccess_39(o2, i2, i3, env, static) :|: 0 < o2
langle_clinit_rangle_FieldAccess_39(o2, i2, i3, env, static) -{1,1}> langle_clinit_rangle_Return_45(i2, i3, env, static') :|: 0 < o2 && 0 <= o2 && 0 <= static && static' <= static + o2
langle_clinit_rangle_Return_45(i2, i3, env, static) -{1,1}> main_Load_46(i2, i3, env, static) :|: 0 >= 0
main_Load_46(i2, i3, env, static) -{0,0}> main_Load_47(i2, i3, env, static) :|: 0 >= 0
main_Load_47(i2, i3, env, static) -{0,0}> main_Load_48(i2, i3, env, static) :|: 0 <= static
main_Load_48(i2, i3, env, static) -{0,0}> main_Load_49(i2, i3, env, static) :|: 0 >= 0
main_Load_49(i2, i3, env, static) -{0,0}> main_Load_50(i2, i3, env, static) :|: 0 >= 0
main_Load_50(i2, i3, env, static) -{1,1}> main_Load_51(i2, i3, env, static) :|: 0 >= 0
main_Load_51(i2, i3, env, static) -{1,1}> main_LE_55(i2, i3, env, static) :|: 0 >= 0
main_LE_55(i2, i3, env, static) -{0,0}> main_LE_57(i2, i3, env, static) :|: i2 <= i3
main_LE_55(i2, i3, env, static) -{0,0}> main_LE_58(i2, i3, env, static) :|: i3 < i2
main_LE_58(i2, i3, env, static) -{1,1}> main_Inc_62(i2, i3, env, static) :|: i3 < i2
main_Inc_62(i2, i3, env, static) -{1,1}> main_JMP_66(i2, i3, i6, env, static) :|: i3 + 1 = i6
main_JMP_66(i2, i3, i6, env, static) -{0,0}> main_JMP_130(i2, i3, i6, env, static) :|: 0 >= 0
main_JMP_130(i2, i3, i18, env, static) -{1,1}> main_Load_134(i2, i3, i18, env, static) :|: 0 >= 0
main_Load_134(i2, i3, i18, env, static) -{1,1}> main_Load_141(i2, i3, i18, env, static) :|: 0 >= 0
main_Load_141(i2, i3, i18, env, static) -{1,1}> main_LE_155(i2, i3, i18, env, static) :|: 0 >= 0
main_LE_155(i2, i3, i18, env, static) -{0,0}> main_LE_161(i2, i3, i18, env, static) :|: i2 <= i18
main_LE_155(i2, i3, i18, env, static) -{0,0}> main_LE_162(i2, i3, i18, env, static) :|: i18 < i2
main_LE_162(i2, i3, i18, env, static) -{1,1}> main_Inc_176(i2, i3, i18, env, static) :|: i18 < i2
main_Inc_176(i2, i3, i18, env, static) -{1,1}> main_JMP_204(i2, i3, i31, env, static) :|: i18 + 1 = i31
main_JMP_204(i2, i3, i31, env, static) -{0,0}> main_JMP_130(i2, i3, i31, env, static) :|: 0 >= 0
(15) StraightLineCodeCompressionProof (BOTH CONCRETE BOUNDS(ID, ID) transformation)
obtained
main_Load_1(
i2,
i3,
env,
static) -{17,17}>
main_LE_55(
i2,
i3,
env,
static'1) :|: 0 >= 0 &&
0 <
2 &&
0 <=
static'1 &&
0 <=
static &&
0 <=
1 &&
0 <
1 &&
static''' <=
static +
2 &&
0 <=
static''' &&
0 <=
2 &&
static'1 <=
static''' +
1by chaining
main_Load_1(
i2,
i3,
env,
static) -{0,0}>
main_Load_3(
i2,
i3,
env,
static) :|: 0 >= 0
main_Load_3(
i2,
i3,
env,
static) -{0,0}>
langle_clinit_rangle_ConstantStackPush_5(
i2,
i3,
env,
static) :|: 0 >= 0
langle_clinit_rangle_ConstantStackPush_5(
i2,
i3,
env,
static) -{1,1}>
langle_clinit_rangle_ArrayCreate_12(
iconst_0,
i2,
i3,
env,
static) :|:
iconst_0 =
0langle_clinit_rangle_ArrayCreate_12(
iconst_0,
i2,
i3,
env,
static) -{1,1}>
langle_clinit_rangle_FieldAccess_14(
a2,
i2,
i3,
iconst_0,
env,
static) :|:
a2 =
2 &&
iconst_0 =
0 &&
0 <
a2langle_clinit_rangle_FieldAccess_14(
a2,
i2,
i3,
iconst_0,
env,
static) -{1,1}>
langle_clinit_rangle_New_16(
i2,
i3,
env,
static') :|:
0 <=
a2 &&
iconst_0 =
0 &&
static' <=
static +
a2 &&
0 <=
static &&
0 <
a2langle_clinit_rangle_New_16(
i2,
i3,
env,
static) -{0,0}>
langle_clinit_rangle_New_18(
i2,
i3,
env,
static) :|: 0 >= 0
langle_clinit_rangle_New_18(
i2,
i3,
env,
static) -{0,0}>
langle_clinit_rangle_New_19(
i2,
i3,
env,
static) :|:
0 <=
staticlangle_clinit_rangle_New_19(
i2,
i3,
env,
static) -{1,1}>
langle_clinit_rangle_Duplicate_20(
o2,
i2,
i3,
env,
static) :|:
0 <
o2 &&
o2 =
1langle_clinit_rangle_Duplicate_20(
o2,
i2,
i3,
env,
static) -{1,1}>
langle_clinit_rangle_ConstantStackPush_22(
o2,
i2,
i3,
env,
static) :|:
0 <
o2langle_clinit_rangle_ConstantStackPush_22(
o2,
i2,
i3,
env,
static) -{1,1}>
langle_clinit_rangle_InvokeMethod_24(
o2,
NULL,
i2,
i3,
env,
static) :|:
NULL =
0 &&
0 <
o2langle_clinit_rangle_InvokeMethod_24(
o2,
NULL,
i2,
i3,
env,
static) -{1,1}>
langle_init_rangle_Load_25(
o2,
i2,
i3,
env,
static) :|:
NULL =
0 &&
0 <
o2langle_init_rangle_Load_25(
o2,
i2,
i3,
env,
static) -{1,1}>
langle_init_rangle_InvokeMethod_28(
o2,
i2,
i3,
env,
static) :|:
0 <
o2langle_init_rangle_InvokeMethod_28(
o2,
i2,
i3,
env,
static) -{1,1}>
langle_init_rangle_Load_29(
o2,
i2,
i3,
env,
static) :|:
0 <
o2langle_init_rangle_Load_29(
o2,
i2,
i3,
env,
static) -{1,1}>
langle_init_rangle_InvokeMethod_31(
o2,
i2,
i3,
env,
static) :|:
0 <
o2langle_init_rangle_InvokeMethod_31(
o2,
i2,
i3,
env,
static) -{1,1}>
langle_init_rangle_Return_34(
o2,
i2,
i3,
env,
static) :|:
0 <
o2langle_init_rangle_Return_34(
o2,
i2,
i3,
env,
static) -{1,1}>
langle_init_rangle_Return_36(
o2,
i2,
i3,
env,
static) :|:
0 <
o2langle_init_rangle_Return_36(
o2,
i2,
i3,
env,
static) -{1,1}>
langle_clinit_rangle_FieldAccess_39(
o2,
i2,
i3,
env,
static) :|:
0 <
o2langle_clinit_rangle_FieldAccess_39(
o2,
i2,
i3,
env,
static) -{1,1}>
langle_clinit_rangle_Return_45(
i2,
i3,
env,
static') :|:
0 <
o2 &&
0 <=
o2 &&
0 <=
static &&
static' <=
static +
o2langle_clinit_rangle_Return_45(
i2,
i3,
env,
static) -{1,1}>
main_Load_46(
i2,
i3,
env,
static) :|: 0 >= 0
main_Load_46(
i2,
i3,
env,
static) -{0,0}>
main_Load_47(
i2,
i3,
env,
static) :|: 0 >= 0
main_Load_47(
i2,
i3,
env,
static) -{0,0}>
main_Load_48(
i2,
i3,
env,
static) :|:
0 <=
staticmain_Load_48(
i2,
i3,
env,
static) -{0,0}>
main_Load_49(
i2,
i3,
env,
static) :|: 0 >= 0
main_Load_49(
i2,
i3,
env,
static) -{0,0}>
main_Load_50(
i2,
i3,
env,
static) :|: 0 >= 0
main_Load_50(
i2,
i3,
env,
static) -{1,1}>
main_Load_51(
i2,
i3,
env,
static) :|: 0 >= 0
main_Load_51(
i2,
i3,
env,
static) -{1,1}>
main_LE_55(
i2,
i3,
env,
static) :|: 0 >= 0
obtained
main_LE_55(i2, i3, env, static) -{2,2}> main_JMP_130(i2, i3, i6', env, static) :|: 0 >= 0 && i3 < i2 && i3 + 1 = i6'
by chaining
main_LE_55(i2, i3, env, static) -{0,0}> main_LE_58(i2, i3, env, static) :|: i3 < i2
main_LE_58(i2, i3, env, static) -{1,1}> main_Inc_62(i2, i3, env, static) :|: i3 < i2
main_Inc_62(i2, i3, env, static) -{1,1}> main_JMP_66(i2, i3, i6, env, static) :|: i3 + 1 = i6
main_JMP_66(i2, i3, i6, env, static) -{0,0}> main_JMP_130(i2, i3, i6, env, static) :|: 0 >= 0
obtained
main_JMP_130(i2, i3, i18, env, static) -{3,3}> main_LE_155(i2, i3, i18, env, static) :|: 0 >= 0
by chaining
main_JMP_130(i2, i3, i18, env, static) -{1,1}> main_Load_134(i2, i3, i18, env, static) :|: 0 >= 0
main_Load_134(i2, i3, i18, env, static) -{1,1}> main_Load_141(i2, i3, i18, env, static) :|: 0 >= 0
main_Load_141(i2, i3, i18, env, static) -{1,1}> main_LE_155(i2, i3, i18, env, static) :|: 0 >= 0
obtained
main_LE_155(i2, i3, i18, env, static) -{2,2}> main_JMP_130(i2, i3, i31', env, static) :|: 0 >= 0 && i18 < i2 && i18 + 1 = i31'
by chaining
main_LE_155(i2, i3, i18, env, static) -{0,0}> main_LE_162(i2, i3, i18, env, static) :|: i18 < i2
main_LE_162(i2, i3, i18, env, static) -{1,1}> main_Inc_176(i2, i3, i18, env, static) :|: i18 < i2
main_Inc_176(i2, i3, i18, env, static) -{1,1}> main_JMP_204(i2, i3, i31, env, static) :|: i18 + 1 = i31
main_JMP_204(i2, i3, i31, env, static) -{0,0}> main_JMP_130(i2, i3, i31, env, static) :|: 0 >= 0
(16) Obligation:
IntTrs with 6 rules
Start term: main_Load_1(#0, #1, env, static)
Considered paths: nonterm paths and paths from start to sinks
Rules:
main_Load_1(i2, i3, env, static) -{17,17}> main_LE_55(i2, i3, env, static'1) :|: 0 >= 0 && 0 < 2 && 0 <= static'1 && 0 <= static && 0 <= 1 && 0 < 1 && static''' <= static + 2 && 0 <= static''' && 0 <= 2 && static'1 <= static''' + 1
main_LE_55(i2, i3, env, static) -{0,0}> main_LE_57(i2, i3, env, static) :|: i2 <= i3
main_LE_55(i2, i3, env, static) -{2,2}> main_JMP_130(i2, i3, i6', env, static) :|: 0 >= 0 && i3 < i2 && i3 + 1 = i6'
main_JMP_130(i2, i3, i18, env, static) -{3,3}> main_LE_155(i2, i3, i18, env, static) :|: 0 >= 0
main_LE_155(i2, i3, i18, env, static) -{0,0}> main_LE_161(i2, i3, i18, env, static) :|: i2 <= i18
main_LE_155(i2, i3, i18, env, static) -{2,2}> main_JMP_130(i2, i3, i31', env, static) :|: 0 >= 0 && i18 < i2 && i18 + 1 = i31'
(17) MovedArithmeticFromConstraintsProof (BOTH CONCRETE BOUNDS(ID, ID) transformation)
Moved arithmethic from constraints to rhss.
main_LE_155(i2, i3, i18, env, static) -{2,2}> main_JMP_130(i2, i3, i31', env, static) :|: 0 >= 0 && i18 < i2 && i18 + 1 = i31'
was transformed to
main_LE_155(i2, i3, i18, env, static) -{2,2}> main_JMP_130(i2, i3, i18 + 1, env, static) :|: 0 >= 0 && i18 < i2 && i18 + 1 = i31'
main_LE_55(i2, i3, env, static) -{2,2}> main_JMP_130(i2, i3, i6', env, static) :|: 0 >= 0 && i3 < i2 && i3 + 1 = i6'
was transformed to
main_LE_55(i2, i3, env, static) -{2,2}> main_JMP_130(i2, i3, i3 + 1, env, static) :|: 0 >= 0 && i3 < i2 && i3 + 1 = i6'
(18) Obligation:
IntTrs with 6 rules
Start term: main_Load_1(#0, #1, env, static)
Considered paths: nonterm paths and paths from start to sinks
Rules:
main_Load_1(i2, i3, env, static) -{17,17}> main_LE_55(i2, i3, env, static'1) :|: 0 >= 0 && 0 < 2 && 0 <= static'1 && 0 <= static && 0 <= 1 && 0 < 1 && static''' <= static + 2 && 0 <= static''' && 0 <= 2 && static'1 <= static''' + 1
main_LE_155(i2, i3, i18, env, static) -{2,2}> main_JMP_130(i2, i3, i18 + 1, env, static) :|: 0 >= 0 && i18 < i2 && i18 + 1 = i31'
main_LE_155(i2, i3, i18, env, static) -{0,0}> main_LE_161(i2, i3, i18, env, static) :|: i2 <= i18
main_JMP_130(i2, i3, i18, env, static) -{3,3}> main_LE_155(i2, i3, i18, env, static) :|: 0 >= 0
main_LE_55(i2, i3, env, static) -{2,2}> main_JMP_130(i2, i3, i3 + 1, env, static) :|: 0 >= 0 && i3 < i2 && i3 + 1 = i6'
main_LE_55(i2, i3, env, static) -{0,0}> main_LE_57(i2, i3, env, static) :|: i2 <= i3
(19) ExpressionSimplificationProof (BOTH CONCRETE BOUNDS(ID, ID) transformation)
Simplified expressions.
main_Load_1(i2, i3, env, static) -{17,17}> main_LE_55(i2, i3, env, static'1) :|: 0 >= 0 && 0 < 2 && 0 <= static'1 && 0 <= static && 0 <= 1 && 0 < 1 && static''' <= static + 2 && 0 <= static''' && 0 <= 2 && static'1 <= static''' + 1
was transformed to
main_Load_1(i2, i3, env, static) -{17,17}> main_LE_55(i2, i3, env, static'1) :|: 0 <= static'1 && 0 <= static && static''' <= static + 2 && 0 <= static''' && static'1 <= static''' + 1
main_LE_55(i2, i3, env, static) -{2,2}> main_JMP_130(i2, i3, i3 + 1, env, static) :|: 0 >= 0 && i3 < i2 && i3 + 1 = i6'
was transformed to
main_LE_55(i2, i3, env, static) -{2,2}> main_JMP_130(i2, i3, i3 + 1, env, static) :|: i3 < i2 && i3 + 1 = i6'
main_LE_155(i2, i3, i18, env, static) -{2,2}> main_JMP_130(i2, i3, i18 + 1, env, static) :|: 0 >= 0 && i18 < i2 && i18 + 1 = i31'
was transformed to
main_LE_155(i2, i3, i18, env, static) -{2,2}> main_JMP_130(i2, i3, i18 + 1, env, static) :|: i18 < i2 && i18 + 1 = i31'
(20) Obligation:
IntTrs with 6 rules
Start term: main_Load_1(#0, #1, env, static)
Considered paths: nonterm paths and paths from start to sinks
Rules:
main_JMP_130(i2, i3, i18, env, static) -{3,3}> main_LE_155(i2, i3, i18, env, static) :|: 0 >= 0
main_LE_155(i2, i3, i18, env, static) -{0,0}> main_LE_161(i2, i3, i18, env, static) :|: i2 <= i18
main_LE_55(i2, i3, env, static) -{2,2}> main_JMP_130(i2, i3, i3 + 1, env, static) :|: i3 < i2 && i3 + 1 = i6'
main_LE_55(i2, i3, env, static) -{0,0}> main_LE_57(i2, i3, env, static) :|: i2 <= i3
main_LE_155(i2, i3, i18, env, static) -{2,2}> main_JMP_130(i2, i3, i18 + 1, env, static) :|: i18 < i2 && i18 + 1 = i31'
main_Load_1(i2, i3, env, static) -{17,17}> main_LE_55(i2, i3, env, static'1) :|: 0 <= static'1 && 0 <= static && static''' <= static + 2 && 0 <= static''' && static'1 <= static''' + 1
(21) koat Proof (EQUIVALENT transformation)
YES(?, 5*ar_0 + 5*ar_1 + 22)
Initial complexity problem:
1: T:
(Comp: ?, Cost: 3) main_JMP_130(ar_0, ar_1, ar_2, ar_3, ar_4) -> Com_1(main_LE_155(ar_0, ar_1, ar_2, ar_3, ar_4)) [ 0 >= 0 ]
(Comp: ?, Cost: 0) main_LE_155(ar_0, ar_1, ar_2, ar_3, ar_4) -> Com_1(main_LE_161(ar_0, ar_1, ar_2, ar_3, ar_4)) [ ar_0 <= ar_2 ]
(Comp: ?, Cost: 2) main_LE_55(ar_0, ar_1, ar_2, ar_3, ar_4) -> Com_1(main_JMP_130(ar_0, ar_1, ar_1 + 1, ar_2, ar_3)) [ ar_1 < ar_0 /\ ar_1 + 1 = i6' ]
(Comp: ?, Cost: 0) main_LE_55(ar_0, ar_1, ar_2, ar_3, ar_4) -> Com_1(main_LE_57(ar_0, ar_1, ar_2, ar_3, arityPad)) [ ar_0 <= ar_1 ]
(Comp: ?, Cost: 2) main_LE_155(ar_0, ar_1, ar_2, ar_3, ar_4) -> Com_1(main_JMP_130(ar_0, ar_1, ar_2 + 1, ar_3, ar_4)) [ ar_2 < ar_0 /\ ar_2 + 1 = i31' ]
(Comp: ?, Cost: 17) main_Load_1(ar_0, ar_1, ar_2, ar_3, ar_4) -> Com_1(main_LE_55(ar_0, ar_1, ar_2, static'1, arityPad)) [ 0 <= static'1 /\ 0 <= ar_3 /\ static''' <= ar_3 + 2 /\ 0 <= static''' /\ static'1 <= static''' + 1 ]
(Comp: 1, Cost: 0) koat_start(ar_0, ar_1, ar_2, ar_3, ar_4) -> Com_1(main_Load_1(ar_0, ar_1, ar_2, ar_3, ar_4)) [ 0 <= 0 ]
start location: koat_start
leaf cost: 0
Repeatedly propagating knowledge in problem 1 produces the following problem:
2: T:
(Comp: ?, Cost: 3) main_JMP_130(ar_0, ar_1, ar_2, ar_3, ar_4) -> Com_1(main_LE_155(ar_0, ar_1, ar_2, ar_3, ar_4)) [ 0 >= 0 ]
(Comp: ?, Cost: 0) main_LE_155(ar_0, ar_1, ar_2, ar_3, ar_4) -> Com_1(main_LE_161(ar_0, ar_1, ar_2, ar_3, ar_4)) [ ar_0 <= ar_2 ]
(Comp: 1, Cost: 2) main_LE_55(ar_0, ar_1, ar_2, ar_3, ar_4) -> Com_1(main_JMP_130(ar_0, ar_1, ar_1 + 1, ar_2, ar_3)) [ ar_1 < ar_0 /\ ar_1 + 1 = i6' ]
(Comp: 1, Cost: 0) main_LE_55(ar_0, ar_1, ar_2, ar_3, ar_4) -> Com_1(main_LE_57(ar_0, ar_1, ar_2, ar_3, arityPad)) [ ar_0 <= ar_1 ]
(Comp: ?, Cost: 2) main_LE_155(ar_0, ar_1, ar_2, ar_3, ar_4) -> Com_1(main_JMP_130(ar_0, ar_1, ar_2 + 1, ar_3, ar_4)) [ ar_2 < ar_0 /\ ar_2 + 1 = i31' ]
(Comp: 1, Cost: 17) main_Load_1(ar_0, ar_1, ar_2, ar_3, ar_4) -> Com_1(main_LE_55(ar_0, ar_1, ar_2, static'1, arityPad)) [ 0 <= static'1 /\ 0 <= ar_3 /\ static''' <= ar_3 + 2 /\ 0 <= static''' /\ static'1 <= static''' + 1 ]
(Comp: 1, Cost: 0) koat_start(ar_0, ar_1, ar_2, ar_3, ar_4) -> Com_1(main_Load_1(ar_0, ar_1, ar_2, ar_3, ar_4)) [ 0 <= 0 ]
start location: koat_start
leaf cost: 0
A polynomial rank function with
Pol(main_JMP_130) = 1
Pol(main_LE_155) = 1
Pol(main_LE_161) = 0
Pol(main_LE_55) = 1
Pol(main_LE_57) = 0
Pol(main_Load_1) = 1
Pol(koat_start) = 1
orients all transitions weakly and the transition
main_LE_155(ar_0, ar_1, ar_2, ar_3, ar_4) -> Com_1(main_LE_161(ar_0, ar_1, ar_2, ar_3, ar_4)) [ ar_0 <= ar_2 ]
strictly and produces the following problem:
3: T:
(Comp: ?, Cost: 3) main_JMP_130(ar_0, ar_1, ar_2, ar_3, ar_4) -> Com_1(main_LE_155(ar_0, ar_1, ar_2, ar_3, ar_4)) [ 0 >= 0 ]
(Comp: 1, Cost: 0) main_LE_155(ar_0, ar_1, ar_2, ar_3, ar_4) -> Com_1(main_LE_161(ar_0, ar_1, ar_2, ar_3, ar_4)) [ ar_0 <= ar_2 ]
(Comp: 1, Cost: 2) main_LE_55(ar_0, ar_1, ar_2, ar_3, ar_4) -> Com_1(main_JMP_130(ar_0, ar_1, ar_1 + 1, ar_2, ar_3)) [ ar_1 < ar_0 /\ ar_1 + 1 = i6' ]
(Comp: 1, Cost: 0) main_LE_55(ar_0, ar_1, ar_2, ar_3, ar_4) -> Com_1(main_LE_57(ar_0, ar_1, ar_2, ar_3, arityPad)) [ ar_0 <= ar_1 ]
(Comp: ?, Cost: 2) main_LE_155(ar_0, ar_1, ar_2, ar_3, ar_4) -> Com_1(main_JMP_130(ar_0, ar_1, ar_2 + 1, ar_3, ar_4)) [ ar_2 < ar_0 /\ ar_2 + 1 = i31' ]
(Comp: 1, Cost: 17) main_Load_1(ar_0, ar_1, ar_2, ar_3, ar_4) -> Com_1(main_LE_55(ar_0, ar_1, ar_2, static'1, arityPad)) [ 0 <= static'1 /\ 0 <= ar_3 /\ static''' <= ar_3 + 2 /\ 0 <= static''' /\ static'1 <= static''' + 1 ]
(Comp: 1, Cost: 0) koat_start(ar_0, ar_1, ar_2, ar_3, ar_4) -> Com_1(main_Load_1(ar_0, ar_1, ar_2, ar_3, ar_4)) [ 0 <= 0 ]
start location: koat_start
leaf cost: 0
A polynomial rank function with
Pol(main_JMP_130) = V_1 - V_3
Pol(main_LE_155) = V_1 - V_3
Pol(main_LE_161) = V_1 - V_3
Pol(main_LE_55) = V_1 - V_2
Pol(main_LE_57) = V_1 - V_2
Pol(main_Load_1) = V_1 - V_2
Pol(koat_start) = V_1 - V_2
orients all transitions weakly and the transition
main_LE_155(ar_0, ar_1, ar_2, ar_3, ar_4) -> Com_1(main_JMP_130(ar_0, ar_1, ar_2 + 1, ar_3, ar_4)) [ ar_2 < ar_0 /\ ar_2 + 1 = i31' ]
strictly and produces the following problem:
4: T:
(Comp: ?, Cost: 3) main_JMP_130(ar_0, ar_1, ar_2, ar_3, ar_4) -> Com_1(main_LE_155(ar_0, ar_1, ar_2, ar_3, ar_4)) [ 0 >= 0 ]
(Comp: 1, Cost: 0) main_LE_155(ar_0, ar_1, ar_2, ar_3, ar_4) -> Com_1(main_LE_161(ar_0, ar_1, ar_2, ar_3, ar_4)) [ ar_0 <= ar_2 ]
(Comp: 1, Cost: 2) main_LE_55(ar_0, ar_1, ar_2, ar_3, ar_4) -> Com_1(main_JMP_130(ar_0, ar_1, ar_1 + 1, ar_2, ar_3)) [ ar_1 < ar_0 /\ ar_1 + 1 = i6' ]
(Comp: 1, Cost: 0) main_LE_55(ar_0, ar_1, ar_2, ar_3, ar_4) -> Com_1(main_LE_57(ar_0, ar_1, ar_2, ar_3, arityPad)) [ ar_0 <= ar_1 ]
(Comp: ar_0 + ar_1, Cost: 2) main_LE_155(ar_0, ar_1, ar_2, ar_3, ar_4) -> Com_1(main_JMP_130(ar_0, ar_1, ar_2 + 1, ar_3, ar_4)) [ ar_2 < ar_0 /\ ar_2 + 1 = i31' ]
(Comp: 1, Cost: 17) main_Load_1(ar_0, ar_1, ar_2, ar_3, ar_4) -> Com_1(main_LE_55(ar_0, ar_1, ar_2, static'1, arityPad)) [ 0 <= static'1 /\ 0 <= ar_3 /\ static''' <= ar_3 + 2 /\ 0 <= static''' /\ static'1 <= static''' + 1 ]
(Comp: 1, Cost: 0) koat_start(ar_0, ar_1, ar_2, ar_3, ar_4) -> Com_1(main_Load_1(ar_0, ar_1, ar_2, ar_3, ar_4)) [ 0 <= 0 ]
start location: koat_start
leaf cost: 0
Repeatedly propagating knowledge in problem 4 produces the following problem:
5: T:
(Comp: ar_0 + ar_1 + 1, Cost: 3) main_JMP_130(ar_0, ar_1, ar_2, ar_3, ar_4) -> Com_1(main_LE_155(ar_0, ar_1, ar_2, ar_3, ar_4)) [ 0 >= 0 ]
(Comp: 1, Cost: 0) main_LE_155(ar_0, ar_1, ar_2, ar_3, ar_4) -> Com_1(main_LE_161(ar_0, ar_1, ar_2, ar_3, ar_4)) [ ar_0 <= ar_2 ]
(Comp: 1, Cost: 2) main_LE_55(ar_0, ar_1, ar_2, ar_3, ar_4) -> Com_1(main_JMP_130(ar_0, ar_1, ar_1 + 1, ar_2, ar_3)) [ ar_1 < ar_0 /\ ar_1 + 1 = i6' ]
(Comp: 1, Cost: 0) main_LE_55(ar_0, ar_1, ar_2, ar_3, ar_4) -> Com_1(main_LE_57(ar_0, ar_1, ar_2, ar_3, arityPad)) [ ar_0 <= ar_1 ]
(Comp: ar_0 + ar_1, Cost: 2) main_LE_155(ar_0, ar_1, ar_2, ar_3, ar_4) -> Com_1(main_JMP_130(ar_0, ar_1, ar_2 + 1, ar_3, ar_4)) [ ar_2 < ar_0 /\ ar_2 + 1 = i31' ]
(Comp: 1, Cost: 17) main_Load_1(ar_0, ar_1, ar_2, ar_3, ar_4) -> Com_1(main_LE_55(ar_0, ar_1, ar_2, static'1, arityPad)) [ 0 <= static'1 /\ 0 <= ar_3 /\ static''' <= ar_3 + 2 /\ 0 <= static''' /\ static'1 <= static''' + 1 ]
(Comp: 1, Cost: 0) koat_start(ar_0, ar_1, ar_2, ar_3, ar_4) -> Com_1(main_Load_1(ar_0, ar_1, ar_2, ar_3, ar_4)) [ 0 <= 0 ]
start location: koat_start
leaf cost: 0
Complexity upper bound 5*ar_0 + 5*ar_1 + 22
Time: 0.153 sec (SMT: 0.136 sec)
(22) BOUNDS(CONSTANT, 22 + 5 * |#0| + 5 * |#1|)
(23) TerminationGraphToComplexityProof (BOTH CONCRETE BOUNDS(ID, ADD(4)) transformation)
Extracted set of 36 edges for the analysis of TIME complexity. Dropped leaves.
(24) Obligation:
Set of 36 edges based on JBC Program.
Performed SCC analyses:
- Used field analysis yielded the following read fields:
Considered paths: all paths from start
(25) JBCGraphEdgesToCpxIntTrsProof (CONCRETE UPPER BOUND(ID) transformation)
Transformed 36 jbc graph edges to a weighted ITS with 36 rules.
Used simplified encoding of division and modulo.
Filtered conditions with variables that do not depend on the variables on the lhs or rhs without taking transitive dependencies into account.
Filtered fields of type java.lang.Object.
Did no encode lower bounds for putfield and astore.
(26) Obligation:
IntTrs with 36 rules
Start term: main_Load_1(#0, #1, env, static)
Considered paths: all paths from start
Rules:
main_Load_1(i2, i3, env, static) -{0,0}> main_Load_3(i2, i3, env, static) :|: 0 >= 0
main_Load_3(i2, i3, env, static) -{0,0}> langle_clinit_rangle_ConstantStackPush_5(i2, i3, env, static) :|: 0 >= 0
langle_clinit_rangle_ConstantStackPush_5(i2, i3, env, static) -{1,1}> langle_clinit_rangle_ArrayCreate_12(iconst_0, i2, i3, env, static) :|: iconst_0 = 0
langle_clinit_rangle_ArrayCreate_12(iconst_0, i2, i3, env, static) -{1,1}> langle_clinit_rangle_FieldAccess_14(a2, i2, i3, iconst_0, env, static) :|: a2 = 2 && iconst_0 = 0 && 0 < a2
langle_clinit_rangle_FieldAccess_14(a2, i2, i3, iconst_0, env, static) -{1,1}> langle_clinit_rangle_New_16(i2, i3, env, static') :|: 0 <= a2 && iconst_0 = 0 && static' <= static + a2 && 0 <= static && 0 < a2
langle_clinit_rangle_New_16(i2, i3, env, static) -{0,0}> langle_clinit_rangle_New_18(i2, i3, env, static) :|: 0 >= 0
langle_clinit_rangle_New_18(i2, i3, env, static) -{0,0}> langle_clinit_rangle_New_19(i2, i3, env, static) :|: 0 <= static
langle_clinit_rangle_New_19(i2, i3, env, static) -{1,1}> langle_clinit_rangle_Duplicate_20(o2, i2, i3, env, static) :|: 0 < o2 && o2 = 1
langle_clinit_rangle_Duplicate_20(o2, i2, i3, env, static) -{1,1}> langle_clinit_rangle_ConstantStackPush_22(o2, i2, i3, env, static) :|: 0 < o2
langle_clinit_rangle_ConstantStackPush_22(o2, i2, i3, env, static) -{1,1}> langle_clinit_rangle_InvokeMethod_24(o2, NULL, i2, i3, env, static) :|: NULL = 0 && 0 < o2
langle_clinit_rangle_InvokeMethod_24(o2, NULL, i2, i3, env, static) -{1,1}> langle_init_rangle_Load_25(o2, i2, i3, env, static) :|: NULL = 0 && 0 < o2
langle_init_rangle_Load_25(o2, i2, i3, env, static) -{1,1}> langle_init_rangle_InvokeMethod_28(o2, i2, i3, env, static) :|: 0 < o2
langle_init_rangle_InvokeMethod_28(o2, i2, i3, env, static) -{1,1}> langle_init_rangle_Load_29(o2, i2, i3, env, static) :|: 0 < o2
langle_init_rangle_Load_29(o2, i2, i3, env, static) -{1,1}> langle_init_rangle_InvokeMethod_31(o2, i2, i3, env, static) :|: 0 < o2
langle_init_rangle_InvokeMethod_31(o2, i2, i3, env, static) -{1,1}> langle_init_rangle_Return_34(o2, i2, i3, env, static) :|: 0 < o2
langle_init_rangle_Return_34(o2, i2, i3, env, static) -{1,1}> langle_init_rangle_Return_36(o2, i2, i3, env, static) :|: 0 < o2
langle_init_rangle_Return_36(o2, i2, i3, env, static) -{1,1}> langle_clinit_rangle_FieldAccess_39(o2, i2, i3, env, static) :|: 0 < o2
langle_clinit_rangle_FieldAccess_39(o2, i2, i3, env, static) -{1,1}> langle_clinit_rangle_Return_45(i2, i3, env, static') :|: 0 < o2 && 0 <= o2 && 0 <= static && static' <= static + o2
langle_clinit_rangle_Return_45(i2, i3, env, static) -{1,1}> main_Load_46(i2, i3, env, static) :|: 0 >= 0
main_Load_46(i2, i3, env, static) -{0,0}> main_Load_47(i2, i3, env, static) :|: 0 >= 0
main_Load_47(i2, i3, env, static) -{0,0}> main_Load_48(i2, i3, env, static) :|: 0 <= static
main_Load_48(i2, i3, env, static) -{0,0}> main_Load_49(i2, i3, env, static) :|: 0 >= 0
main_Load_49(i2, i3, env, static) -{0,0}> main_Load_50(i2, i3, env, static) :|: 0 >= 0
main_Load_50(i2, i3, env, static) -{1,1}> main_Load_51(i2, i3, env, static) :|: 0 >= 0
main_Load_51(i2, i3, env, static) -{1,1}> main_LE_55(i2, i3, env, static) :|: 0 >= 0
main_LE_55(i2, i3, env, static) -{0,0}> main_LE_58(i2, i3, env, static) :|: i3 < i2
main_LE_58(i2, i3, env, static) -{1,1}> main_Inc_62(i2, i3, env, static) :|: i3 < i2
main_Inc_62(i2, i3, env, static) -{1,1}> main_JMP_66(i2, i3, i6, env, static) :|: i3 + 1 = i6
main_JMP_66(i2, i3, i6, env, static) -{0,0}> main_JMP_130(i2, i3, i6, env, static) :|: 0 >= 0
main_JMP_130(i2, i3, i18, env, static) -{1,1}> main_Load_134(i2, i3, i18, env, static) :|: 0 >= 0
main_Load_134(i2, i3, i18, env, static) -{1,1}> main_Load_141(i2, i3, i18, env, static) :|: 0 >= 0
main_Load_141(i2, i3, i18, env, static) -{1,1}> main_LE_155(i2, i3, i18, env, static) :|: 0 >= 0
main_LE_155(i2, i3, i18, env, static) -{0,0}> main_LE_162(i2, i3, i18, env, static) :|: i18 < i2
main_LE_162(i2, i3, i18, env, static) -{1,1}> main_Inc_176(i2, i3, i18, env, static) :|: i18 < i2
main_Inc_176(i2, i3, i18, env, static) -{1,1}> main_JMP_204(i2, i3, i31, env, static) :|: i18 + 1 = i31
main_JMP_204(i2, i3, i31, env, static) -{0,0}> main_JMP_130(i2, i3, i31, env, static) :|: 0 >= 0
(27) StraightLineCodeCompressionProof (BOTH CONCRETE BOUNDS(ID, ID) transformation)
obtained
main_Load_1(
i2,
i3,
env,
static) -{19,19}>
main_JMP_130(
i2,
i3,
i6',
env,
static'1) :|: 0 >= 0 &&
0 <
2 &&
i3 <
i2 &&
0 <=
static'1 &&
0 <=
static &&
0 <=
1 &&
0 <
1 &&
static''' <=
static +
2 &&
0 <=
static''' &&
0 <=
2 &&
i3 +
1 =
i6' &&
static'1 <=
static''' +
1by chaining
main_Load_1(
i2,
i3,
env,
static) -{0,0}>
main_Load_3(
i2,
i3,
env,
static) :|: 0 >= 0
main_Load_3(
i2,
i3,
env,
static) -{0,0}>
langle_clinit_rangle_ConstantStackPush_5(
i2,
i3,
env,
static) :|: 0 >= 0
langle_clinit_rangle_ConstantStackPush_5(
i2,
i3,
env,
static) -{1,1}>
langle_clinit_rangle_ArrayCreate_12(
iconst_0,
i2,
i3,
env,
static) :|:
iconst_0 =
0langle_clinit_rangle_ArrayCreate_12(
iconst_0,
i2,
i3,
env,
static) -{1,1}>
langle_clinit_rangle_FieldAccess_14(
a2,
i2,
i3,
iconst_0,
env,
static) :|:
a2 =
2 &&
iconst_0 =
0 &&
0 <
a2langle_clinit_rangle_FieldAccess_14(
a2,
i2,
i3,
iconst_0,
env,
static) -{1,1}>
langle_clinit_rangle_New_16(
i2,
i3,
env,
static') :|:
0 <=
a2 &&
iconst_0 =
0 &&
static' <=
static +
a2 &&
0 <=
static &&
0 <
a2langle_clinit_rangle_New_16(
i2,
i3,
env,
static) -{0,0}>
langle_clinit_rangle_New_18(
i2,
i3,
env,
static) :|: 0 >= 0
langle_clinit_rangle_New_18(
i2,
i3,
env,
static) -{0,0}>
langle_clinit_rangle_New_19(
i2,
i3,
env,
static) :|:
0 <=
staticlangle_clinit_rangle_New_19(
i2,
i3,
env,
static) -{1,1}>
langle_clinit_rangle_Duplicate_20(
o2,
i2,
i3,
env,
static) :|:
0 <
o2 &&
o2 =
1langle_clinit_rangle_Duplicate_20(
o2,
i2,
i3,
env,
static) -{1,1}>
langle_clinit_rangle_ConstantStackPush_22(
o2,
i2,
i3,
env,
static) :|:
0 <
o2langle_clinit_rangle_ConstantStackPush_22(
o2,
i2,
i3,
env,
static) -{1,1}>
langle_clinit_rangle_InvokeMethod_24(
o2,
NULL,
i2,
i3,
env,
static) :|:
NULL =
0 &&
0 <
o2langle_clinit_rangle_InvokeMethod_24(
o2,
NULL,
i2,
i3,
env,
static) -{1,1}>
langle_init_rangle_Load_25(
o2,
i2,
i3,
env,
static) :|:
NULL =
0 &&
0 <
o2langle_init_rangle_Load_25(
o2,
i2,
i3,
env,
static) -{1,1}>
langle_init_rangle_InvokeMethod_28(
o2,
i2,
i3,
env,
static) :|:
0 <
o2langle_init_rangle_InvokeMethod_28(
o2,
i2,
i3,
env,
static) -{1,1}>
langle_init_rangle_Load_29(
o2,
i2,
i3,
env,
static) :|:
0 <
o2langle_init_rangle_Load_29(
o2,
i2,
i3,
env,
static) -{1,1}>
langle_init_rangle_InvokeMethod_31(
o2,
i2,
i3,
env,
static) :|:
0 <
o2langle_init_rangle_InvokeMethod_31(
o2,
i2,
i3,
env,
static) -{1,1}>
langle_init_rangle_Return_34(
o2,
i2,
i3,
env,
static) :|:
0 <
o2langle_init_rangle_Return_34(
o2,
i2,
i3,
env,
static) -{1,1}>
langle_init_rangle_Return_36(
o2,
i2,
i3,
env,
static) :|:
0 <
o2langle_init_rangle_Return_36(
o2,
i2,
i3,
env,
static) -{1,1}>
langle_clinit_rangle_FieldAccess_39(
o2,
i2,
i3,
env,
static) :|:
0 <
o2langle_clinit_rangle_FieldAccess_39(
o2,
i2,
i3,
env,
static) -{1,1}>
langle_clinit_rangle_Return_45(
i2,
i3,
env,
static') :|:
0 <
o2 &&
0 <=
o2 &&
0 <=
static &&
static' <=
static +
o2langle_clinit_rangle_Return_45(
i2,
i3,
env,
static) -{1,1}>
main_Load_46(
i2,
i3,
env,
static) :|: 0 >= 0
main_Load_46(
i2,
i3,
env,
static) -{0,0}>
main_Load_47(
i2,
i3,
env,
static) :|: 0 >= 0
main_Load_47(
i2,
i3,
env,
static) -{0,0}>
main_Load_48(
i2,
i3,
env,
static) :|:
0 <=
staticmain_Load_48(
i2,
i3,
env,
static) -{0,0}>
main_Load_49(
i2,
i3,
env,
static) :|: 0 >= 0
main_Load_49(
i2,
i3,
env,
static) -{0,0}>
main_Load_50(
i2,
i3,
env,
static) :|: 0 >= 0
main_Load_50(
i2,
i3,
env,
static) -{1,1}>
main_Load_51(
i2,
i3,
env,
static) :|: 0 >= 0
main_Load_51(
i2,
i3,
env,
static) -{1,1}>
main_LE_55(
i2,
i3,
env,
static) :|: 0 >= 0
main_LE_55(
i2,
i3,
env,
static) -{0,0}>
main_LE_58(
i2,
i3,
env,
static) :|:
i3 <
i2main_LE_58(
i2,
i3,
env,
static) -{1,1}>
main_Inc_62(
i2,
i3,
env,
static) :|:
i3 <
i2main_Inc_62(
i2,
i3,
env,
static) -{1,1}>
main_JMP_66(
i2,
i3,
i6,
env,
static) :|:
i3 +
1 =
i6main_JMP_66(
i2,
i3,
i6,
env,
static) -{0,0}>
main_JMP_130(
i2,
i3,
i6,
env,
static) :|: 0 >= 0
obtained
main_JMP_130(i2, i3, i18, env, static) -{5,5}> main_JMP_130(i2, i3, i31', env, static) :|: 0 >= 0 && i18 + 1 = i31' && i18 < i2
by chaining
main_JMP_130(i2, i3, i18, env, static) -{1,1}> main_Load_134(i2, i3, i18, env, static) :|: 0 >= 0
main_Load_134(i2, i3, i18, env, static) -{1,1}> main_Load_141(i2, i3, i18, env, static) :|: 0 >= 0
main_Load_141(i2, i3, i18, env, static) -{1,1}> main_LE_155(i2, i3, i18, env, static) :|: 0 >= 0
main_LE_155(i2, i3, i18, env, static) -{0,0}> main_LE_162(i2, i3, i18, env, static) :|: i18 < i2
main_LE_162(i2, i3, i18, env, static) -{1,1}> main_Inc_176(i2, i3, i18, env, static) :|: i18 < i2
main_Inc_176(i2, i3, i18, env, static) -{1,1}> main_JMP_204(i2, i3, i31, env, static) :|: i18 + 1 = i31
main_JMP_204(i2, i3, i31, env, static) -{0,0}> main_JMP_130(i2, i3, i31, env, static) :|: 0 >= 0
(28) Obligation:
IntTrs with 2 rules
Start term: main_Load_1(#0, #1, env, static)
Considered paths: all paths from start
Rules:
main_Load_1(i2, i3, env, static) -{19,19}> main_JMP_130(i2, i3, i6', env, static'1) :|: 0 >= 0 && 0 < 2 && i3 < i2 && 0 <= static'1 && 0 <= static && 0 <= 1 && 0 < 1 && static''' <= static + 2 && 0 <= static''' && 0 <= 2 && i3 + 1 = i6' && static'1 <= static''' + 1
main_JMP_130(i2, i3, i18, env, static) -{5,5}> main_JMP_130(i2, i3, i31', env, static) :|: 0 >= 0 && i18 + 1 = i31' && i18 < i2
(29) WeightedIntTrsUnneededArgumentFilterProof (CONCRETE UPPER BOUND(ID) transformation)
Some arguments are removed because they cannot influence termination. We removed arguments according to the following replacements:
main_Load_1(x1, x2, x3, x4) → main_Load_1(x1, x2, x4)
main_JMP_130(x1, x2, x3, x4, x5) → main_JMP_130(x1, x3)
(30) Obligation:
IntTrs with 2 rules
Start term: main_Load_1(#0, #1, static)
Considered paths: all paths from start
Rules:
main_Load_1(i2, i3, static) -{19,19}> main_JMP_130(i2, i6') :|: 0 >= 0 && 0 < 2 && i3 < i2 && 0 <= static'1 && 0 <= static && 0 <= 1 && 0 < 1 && static''' <= static + 2 && 0 <= static''' && 0 <= 2 && i3 + 1 = i6' && static'1 <= static''' + 1
main_JMP_130(i2, i18) -{5,5}> main_JMP_130(i2, i31') :|: 0 >= 0 && i18 + 1 = i31' && i18 < i2
(31) MovedArithmeticFromConstraintsProof (BOTH CONCRETE BOUNDS(ID, ID) transformation)
Moved arithmethic from constraints to rhss.
main_Load_1(i2, i3, static) -{19,19}> main_JMP_130(i2, i6') :|: 0 >= 0 && 0 < 2 && i3 < i2 && 0 <= static'1 && 0 <= static && 0 <= 1 && 0 < 1 && static''' <= static + 2 && 0 <= static''' && 0 <= 2 && i3 + 1 = i6' && static'1 <= static''' + 1
was transformed to
main_Load_1(i2, i3, static) -{19,19}> main_JMP_130(i2, i3 + 1) :|: 0 >= 0 && 0 < 2 && i3 < i2 && 0 <= static'1 && 0 <= static && 0 <= 1 && 0 < 1 && static''' <= static + 2 && 0 <= static''' && 0 <= 2 && i3 + 1 = i6' && static'1 <= static''' + 1
main_JMP_130(i2, i18) -{5,5}> main_JMP_130(i2, i31') :|: 0 >= 0 && i18 + 1 = i31' && i18 < i2
was transformed to
main_JMP_130(i2, i18) -{5,5}> main_JMP_130(i2, i18 + 1) :|: 0 >= 0 && i18 + 1 = i31' && i18 < i2
(32) Obligation:
IntTrs with 2 rules
Start term: main_Load_1(#0, #1, static)
Considered paths: all paths from start
Rules:
main_Load_1(i2, i3, static) -{19,19}> main_JMP_130(i2, i3 + 1) :|: 0 >= 0 && 0 < 2 && i3 < i2 && 0 <= static'1 && 0 <= static && 0 <= 1 && 0 < 1 && static''' <= static + 2 && 0 <= static''' && 0 <= 2 && i3 + 1 = i6' && static'1 <= static''' + 1
main_JMP_130(i2, i18) -{5,5}> main_JMP_130(i2, i18 + 1) :|: 0 >= 0 && i18 + 1 = i31' && i18 < i2
(33) ExpressionSimplificationProof (BOTH CONCRETE BOUNDS(ID, ID) transformation)
Simplified expressions.
main_JMP_130(i2, i18) -{5,5}> main_JMP_130(i2, i18 + 1) :|: 0 >= 0 && i18 + 1 = i31' && i18 < i2
was transformed to
main_JMP_130(i2, i18) -{5,5}> main_JMP_130(i2, i18 + 1) :|: i18 + 1 = i31' && i18 < i2
main_Load_1(i2, i3, static) -{19,19}> main_JMP_130(i2, i3 + 1) :|: 0 >= 0 && 0 < 2 && i3 < i2 && 0 <= static'1 && 0 <= static && 0 <= 1 && 0 < 1 && static''' <= static + 2 && 0 <= static''' && 0 <= 2 && i3 + 1 = i6' && static'1 <= static''' + 1
was transformed to
main_Load_1(i2, i3, static) -{19,19}> main_JMP_130(i2, i3 + 1) :|: i3 < i2 && 0 <= static'1 && 0 <= static && static''' <= static + 2 && 0 <= static''' && i3 + 1 = i6' && static'1 <= static''' + 1
(34) Obligation:
IntTrs with 2 rules
Start term: main_Load_1(#0, #1, static)
Considered paths: all paths from start
Rules:
main_JMP_130(i2, i18) -{5,5}> main_JMP_130(i2, i18 + 1) :|: i18 + 1 = i31' && i18 < i2
main_Load_1(i2, i3, static) -{19,19}> main_JMP_130(i2, i3 + 1) :|: i3 < i2 && 0 <= static'1 && 0 <= static && static''' <= static + 2 && 0 <= static''' && i3 + 1 = i6' && static'1 <= static''' + 1
(35) koat Proof (EQUIVALENT transformation)
YES(?, 5*ar_0 + 5*ar_1 + 19)
Initial complexity problem:
1: T:
(Comp: ?, Cost: 5) main_JMP_130(ar_0, ar_1, ar_2) -> Com_1(main_JMP_130(ar_0, ar_1 + 1, arityPad)) [ ar_1 + 1 = i31' /\ ar_1 < ar_0 ]
(Comp: ?, Cost: 19) main_Load_1(ar_0, ar_1, ar_2) -> Com_1(main_JMP_130(ar_0, ar_1 + 1, arityPad)) [ ar_1 < ar_0 /\ 0 <= static'1 /\ 0 <= ar_2 /\ static''' <= ar_2 + 2 /\ 0 <= static''' /\ ar_1 + 1 = i6' /\ static'1 <= static''' + 1 ]
(Comp: 1, Cost: 0) koat_start(ar_0, ar_1, ar_2) -> Com_1(main_Load_1(ar_0, ar_1, ar_2)) [ 0 <= 0 ]
start location: koat_start
leaf cost: 0
Repeatedly propagating knowledge in problem 1 produces the following problem:
2: T:
(Comp: ?, Cost: 5) main_JMP_130(ar_0, ar_1, ar_2) -> Com_1(main_JMP_130(ar_0, ar_1 + 1, arityPad)) [ ar_1 + 1 = i31' /\ ar_1 < ar_0 ]
(Comp: 1, Cost: 19) main_Load_1(ar_0, ar_1, ar_2) -> Com_1(main_JMP_130(ar_0, ar_1 + 1, arityPad)) [ ar_1 < ar_0 /\ 0 <= static'1 /\ 0 <= ar_2 /\ static''' <= ar_2 + 2 /\ 0 <= static''' /\ ar_1 + 1 = i6' /\ static'1 <= static''' + 1 ]
(Comp: 1, Cost: 0) koat_start(ar_0, ar_1, ar_2) -> Com_1(main_Load_1(ar_0, ar_1, ar_2)) [ 0 <= 0 ]
start location: koat_start
leaf cost: 0
A polynomial rank function with
Pol(main_JMP_130) = V_1 - V_2
Pol(main_Load_1) = V_1 - V_2
Pol(koat_start) = V_1 - V_2
orients all transitions weakly and the transition
main_JMP_130(ar_0, ar_1, ar_2) -> Com_1(main_JMP_130(ar_0, ar_1 + 1, arityPad)) [ ar_1 + 1 = i31' /\ ar_1 < ar_0 ]
strictly and produces the following problem:
3: T:
(Comp: ar_0 + ar_1, Cost: 5) main_JMP_130(ar_0, ar_1, ar_2) -> Com_1(main_JMP_130(ar_0, ar_1 + 1, arityPad)) [ ar_1 + 1 = i31' /\ ar_1 < ar_0 ]
(Comp: 1, Cost: 19) main_Load_1(ar_0, ar_1, ar_2) -> Com_1(main_JMP_130(ar_0, ar_1 + 1, arityPad)) [ ar_1 < ar_0 /\ 0 <= static'1 /\ 0 <= ar_2 /\ static''' <= ar_2 + 2 /\ 0 <= static''' /\ ar_1 + 1 = i6' /\ static'1 <= static''' + 1 ]
(Comp: 1, Cost: 0) koat_start(ar_0, ar_1, ar_2) -> Com_1(main_Load_1(ar_0, ar_1, ar_2)) [ 0 <= 0 ]
start location: koat_start
leaf cost: 0
Complexity upper bound 5*ar_0 + 5*ar_1 + 19
Time: 0.099 sec (SMT: 0.095 sec)
(36) BOUNDS(CONSTANT, 19 + 5 * |#0| + 5 * |#1|)