0 JBC
↳1 JBCToGraph (⇒, 560 ms)
↳2 JBCTerminationGraph
↳3 TerminationGraphToSCCProof (⇒, 0 ms)
↳4 AND
↳5 JBCTerminationSCC
↳6 SCCToIDPv1Proof (⇒, 210 ms)
↳7 IDP
↳8 IDPtoQDPProof (⇒, 0 ms)
↳9 QDP
↳10 UsableRulesProof (⇔, 0 ms)
↳11 QDP
↳12 QReductionProof (⇔, 0 ms)
↳13 QDP
↳14 QDPSizeChangeProof (⇔, 0 ms)
↳15 YES
↳16 JBCTerminationSCC
↳17 SCCToIDPv1Proof (⇒, 90 ms)
↳18 IDP
↳19 IDPNonInfProof (⇒, 90 ms)
↳20 AND
↳21 IDP
↳22 IDependencyGraphProof (⇔, 0 ms)
↳23 TRUE
↳24 IDP
↳25 IDependencyGraphProof (⇔, 0 ms)
↳26 TRUE
package CyclicAnalysisRec;
public class CyclicAnalysisRec {
CyclicAnalysisRec field;
public static void main(String[] args) {
Random.args = args;
CyclicAnalysisRec t = new CyclicAnalysisRec();
t.field = new CyclicAnalysisRec();
t.field.appendNewCyclicList(Random.random());
t.appendNewList(Random.random());
t.length();
}
public int length() {
if (this.field == null) return 1;
else return 1 + this.field.length();
}
public void appendNewCyclicList(int i) {
CyclicAnalysisRec last = this.appendNewList(i);
last.field = this;
}
/**
* @param i number of elements to append
* @return the last list element appended
*/
private CyclicAnalysisRec appendNewList(int i) {
this.field = new CyclicAnalysisRec();
if (i <= 1) {
return this.field;
} else {
return this.field.appendNewList(i-1);
}
}
}
package CyclicAnalysisRec;
public class Random {
static String[] args;
static int index = 0;
public static int random() {
final String string = args[index];
index++;
return string.length();
}
}
Generated 11 rules for P and 15 rules for R.
P rules:
1340_0_length_FieldAccess(EOS(STATIC_1340), java.lang.Object(CyclicAnalysisRec.CyclicAnalysisRec(EOC, o825)), java.lang.Object(CyclicAnalysisRec.CyclicAnalysisRec(EOC, o825))) → 1342_0_length_FieldAccess(EOS(STATIC_1342), java.lang.Object(CyclicAnalysisRec.CyclicAnalysisRec(EOC, o825)), java.lang.Object(CyclicAnalysisRec.CyclicAnalysisRec(EOC, o825)))
1342_0_length_FieldAccess(EOS(STATIC_1342), java.lang.Object(CyclicAnalysisRec.CyclicAnalysisRec(EOC, o825)), java.lang.Object(CyclicAnalysisRec.CyclicAnalysisRec(EOC, o825))) → 1344_0_length_NONNULL(EOS(STATIC_1344), java.lang.Object(CyclicAnalysisRec.CyclicAnalysisRec(EOC, o825)), o825)
1344_0_length_NONNULL(EOS(STATIC_1344), java.lang.Object(CyclicAnalysisRec.CyclicAnalysisRec(EOC, java.lang.Object(o827sub))), java.lang.Object(o827sub)) → 1345_0_length_NONNULL(EOS(STATIC_1345), java.lang.Object(CyclicAnalysisRec.CyclicAnalysisRec(EOC, java.lang.Object(o827sub))), java.lang.Object(o827sub))
1345_0_length_NONNULL(EOS(STATIC_1345), java.lang.Object(CyclicAnalysisRec.CyclicAnalysisRec(EOC, java.lang.Object(o827sub))), java.lang.Object(o827sub)) → 1348_0_length_ConstantStackPush(EOS(STATIC_1348), java.lang.Object(CyclicAnalysisRec.CyclicAnalysisRec(EOC, java.lang.Object(o827sub))))
1348_0_length_ConstantStackPush(EOS(STATIC_1348), java.lang.Object(CyclicAnalysisRec.CyclicAnalysisRec(EOC, java.lang.Object(o827sub)))) → 1351_0_length_Load(EOS(STATIC_1351), java.lang.Object(CyclicAnalysisRec.CyclicAnalysisRec(EOC, java.lang.Object(o827sub))))
1351_0_length_Load(EOS(STATIC_1351), java.lang.Object(CyclicAnalysisRec.CyclicAnalysisRec(EOC, java.lang.Object(o827sub)))) → 1354_0_length_FieldAccess(EOS(STATIC_1354), java.lang.Object(CyclicAnalysisRec.CyclicAnalysisRec(EOC, java.lang.Object(o827sub))))
1354_0_length_FieldAccess(EOS(STATIC_1354), java.lang.Object(CyclicAnalysisRec.CyclicAnalysisRec(EOC, java.lang.Object(o827sub)))) → 1357_0_length_InvokeMethod(EOS(STATIC_1357), java.lang.Object(o827sub))
1357_0_length_InvokeMethod(EOS(STATIC_1357), java.lang.Object(o827sub)) → 1362_1_length_InvokeMethod(1362_0_length_Load(EOS(STATIC_1362), java.lang.Object(o827sub)), java.lang.Object(o827sub))
1362_0_length_Load(EOS(STATIC_1362), java.lang.Object(o827sub)) → 1366_0_length_Load(EOS(STATIC_1366), java.lang.Object(o827sub))
1366_0_length_Load(EOS(STATIC_1366), java.lang.Object(o827sub)) → 1338_0_length_Load(EOS(STATIC_1338), java.lang.Object(o827sub))
1338_0_length_Load(EOS(STATIC_1338), java.lang.Object(o820sub)) → 1340_0_length_FieldAccess(EOS(STATIC_1340), java.lang.Object(o820sub), java.lang.Object(o820sub))
R rules:
1344_0_length_NONNULL(EOS(STATIC_1344), java.lang.Object(CyclicAnalysisRec.CyclicAnalysisRec(EOC, NULL)), NULL) → 1346_0_length_NONNULL(EOS(STATIC_1346), java.lang.Object(CyclicAnalysisRec.CyclicAnalysisRec(EOC, NULL)), NULL)
1346_0_length_NONNULL(EOS(STATIC_1346), java.lang.Object(CyclicAnalysisRec.CyclicAnalysisRec(EOC, NULL)), NULL) → 1349_0_length_ConstantStackPush(EOS(STATIC_1349), java.lang.Object(CyclicAnalysisRec.CyclicAnalysisRec(EOC, NULL)))
1349_0_length_ConstantStackPush(EOS(STATIC_1349), java.lang.Object(CyclicAnalysisRec.CyclicAnalysisRec(EOC, NULL))) → 1353_0_length_Return(EOS(STATIC_1353), java.lang.Object(CyclicAnalysisRec.CyclicAnalysisRec(EOC, NULL)))
1362_1_length_InvokeMethod(1353_0_length_Return(EOS(STATIC_1353), java.lang.Object(CyclicAnalysisRec.CyclicAnalysisRec(EOC, NULL))), java.lang.Object(CyclicAnalysisRec.CyclicAnalysisRec(EOC, NULL))) → 1373_0_length_Return(EOS(STATIC_1373), java.lang.Object(CyclicAnalysisRec.CyclicAnalysisRec(EOC, NULL)), java.lang.Object(CyclicAnalysisRec.CyclicAnalysisRec(EOC, NULL)))
1362_1_length_InvokeMethod(1376_0_length_Return(EOS(STATIC_1376)), java.lang.Object(CyclicAnalysisRec.CyclicAnalysisRec(EOC, java.lang.Object(CyclicAnalysisRec.CyclicAnalysisRec(EOC, NULL))))) → 1393_0_length_Return(EOS(STATIC_1393), java.lang.Object(CyclicAnalysisRec.CyclicAnalysisRec(EOC, java.lang.Object(CyclicAnalysisRec.CyclicAnalysisRec(EOC, NULL)))))
1362_1_length_InvokeMethod(1538_0_length_Return(EOS(STATIC_1538)), java.lang.Object(CyclicAnalysisRec.CyclicAnalysisRec(EOC, java.lang.Object(CyclicAnalysisRec.CyclicAnalysisRec(EOC, java.lang.Object(CyclicAnalysisRec.CyclicAnalysisRec(EOC, o1082))))))) → 1555_0_length_Return(EOS(STATIC_1555), java.lang.Object(CyclicAnalysisRec.CyclicAnalysisRec(EOC, java.lang.Object(CyclicAnalysisRec.CyclicAnalysisRec(EOC, java.lang.Object(CyclicAnalysisRec.CyclicAnalysisRec(EOC, o1082)))))))
1373_0_length_Return(EOS(STATIC_1373), java.lang.Object(CyclicAnalysisRec.CyclicAnalysisRec(EOC, NULL)), java.lang.Object(CyclicAnalysisRec.CyclicAnalysisRec(EOC, NULL))) → 1374_0_length_IntArithmetic(EOS(STATIC_1374))
1374_0_length_IntArithmetic(EOS(STATIC_1374)) → 1376_0_length_Return(EOS(STATIC_1376))
1393_0_length_Return(EOS(STATIC_1393), java.lang.Object(CyclicAnalysisRec.CyclicAnalysisRec(EOC, java.lang.Object(CyclicAnalysisRec.CyclicAnalysisRec(EOC, NULL))))) → 1428_0_length_Return(EOS(STATIC_1428), java.lang.Object(CyclicAnalysisRec.CyclicAnalysisRec(EOC, java.lang.Object(CyclicAnalysisRec.CyclicAnalysisRec(EOC, NULL)))))
1428_0_length_Return(EOS(STATIC_1428), java.lang.Object(CyclicAnalysisRec.CyclicAnalysisRec(EOC, java.lang.Object(CyclicAnalysisRec.CyclicAnalysisRec(EOC, o868))))) → 1466_0_length_Return(EOS(STATIC_1466), java.lang.Object(CyclicAnalysisRec.CyclicAnalysisRec(EOC, java.lang.Object(CyclicAnalysisRec.CyclicAnalysisRec(EOC, o868)))))
1466_0_length_Return(EOS(STATIC_1466), java.lang.Object(CyclicAnalysisRec.CyclicAnalysisRec(EOC, java.lang.Object(CyclicAnalysisRec.CyclicAnalysisRec(EOC, o917))))) → 1507_0_length_Return(EOS(STATIC_1507), java.lang.Object(CyclicAnalysisRec.CyclicAnalysisRec(EOC, java.lang.Object(CyclicAnalysisRec.CyclicAnalysisRec(EOC, o917)))))
1507_0_length_Return(EOS(STATIC_1507), java.lang.Object(CyclicAnalysisRec.CyclicAnalysisRec(EOC, java.lang.Object(CyclicAnalysisRec.CyclicAnalysisRec(EOC, o978))))) → 1532_0_length_Return(EOS(STATIC_1532), java.lang.Object(CyclicAnalysisRec.CyclicAnalysisRec(EOC, java.lang.Object(CyclicAnalysisRec.CyclicAnalysisRec(EOC, o978)))))
1532_0_length_Return(EOS(STATIC_1532), java.lang.Object(CyclicAnalysisRec.CyclicAnalysisRec(EOC, java.lang.Object(CyclicAnalysisRec.CyclicAnalysisRec(EOC, o1038))))) → 1535_0_length_IntArithmetic(EOS(STATIC_1535))
1535_0_length_IntArithmetic(EOS(STATIC_1535)) → 1538_0_length_Return(EOS(STATIC_1538))
1555_0_length_Return(EOS(STATIC_1555), java.lang.Object(CyclicAnalysisRec.CyclicAnalysisRec(EOC, java.lang.Object(CyclicAnalysisRec.CyclicAnalysisRec(EOC, java.lang.Object(CyclicAnalysisRec.CyclicAnalysisRec(EOC, o1082))))))) → 1532_0_length_Return(EOS(STATIC_1532), java.lang.Object(CyclicAnalysisRec.CyclicAnalysisRec(EOC, java.lang.Object(CyclicAnalysisRec.CyclicAnalysisRec(EOC, java.lang.Object(CyclicAnalysisRec.CyclicAnalysisRec(EOC, o1082)))))))
Combined rules. Obtained 1 conditional rules for P and 3 conditional rules for R.
P rules:
1340_0_length_FieldAccess(EOS(STATIC_1340), java.lang.Object(CyclicAnalysisRec.CyclicAnalysisRec(EOC, java.lang.Object(x0))), java.lang.Object(CyclicAnalysisRec.CyclicAnalysisRec(EOC, java.lang.Object(x0)))) → 1362_1_length_InvokeMethod(1340_0_length_FieldAccess(EOS(STATIC_1340), java.lang.Object(x0), java.lang.Object(x0)), java.lang.Object(x0))
R rules:
1362_1_length_InvokeMethod(1353_0_length_Return(EOS(STATIC_1353), java.lang.Object(CyclicAnalysisRec.CyclicAnalysisRec(EOC, NULL))), java.lang.Object(CyclicAnalysisRec.CyclicAnalysisRec(EOC, NULL))) → 1376_0_length_Return(EOS(STATIC_1376))
1362_1_length_InvokeMethod(1538_0_length_Return(EOS(STATIC_1538)), java.lang.Object(CyclicAnalysisRec.CyclicAnalysisRec(EOC, java.lang.Object(CyclicAnalysisRec.CyclicAnalysisRec(EOC, java.lang.Object(CyclicAnalysisRec.CyclicAnalysisRec(EOC, x0))))))) → 1538_0_length_Return(EOS(STATIC_1538))
1362_1_length_InvokeMethod(1376_0_length_Return(EOS(STATIC_1376)), java.lang.Object(CyclicAnalysisRec.CyclicAnalysisRec(EOC, java.lang.Object(CyclicAnalysisRec.CyclicAnalysisRec(EOC, NULL))))) → 1538_0_length_Return(EOS(STATIC_1538))
Filtered ground terms:
1340_0_length_FieldAccess(x1, x2, x3) → 1340_0_length_FieldAccess(x2, x3)
CyclicAnalysisRec.CyclicAnalysisRec(x1, x2) → CyclicAnalysisRec.CyclicAnalysisRec(x2)
1538_0_length_Return(x1) → 1538_0_length_Return
1376_0_length_Return(x1) → 1376_0_length_Return
1353_0_length_Return(x1, x2) → 1353_0_length_Return
Filtered duplicate args:
1340_0_length_FieldAccess(x1, x2) → 1340_0_length_FieldAccess(x2)
Combined rules. Obtained 1 conditional rules for P and 3 conditional rules for R.
P rules:
1340_0_length_FieldAccess(java.lang.Object(CyclicAnalysisRec.CyclicAnalysisRec(java.lang.Object(x0)))) → 1362_1_length_InvokeMethod(1340_0_length_FieldAccess(java.lang.Object(x0)), java.lang.Object(x0))
R rules:
1362_1_length_InvokeMethod(1353_0_length_Return, java.lang.Object(CyclicAnalysisRec.CyclicAnalysisRec(NULL))) → 1376_0_length_Return
1362_1_length_InvokeMethod(1538_0_length_Return, java.lang.Object(CyclicAnalysisRec.CyclicAnalysisRec(java.lang.Object(CyclicAnalysisRec.CyclicAnalysisRec(java.lang.Object(CyclicAnalysisRec.CyclicAnalysisRec(x0))))))) → 1538_0_length_Return
1362_1_length_InvokeMethod(1376_0_length_Return, java.lang.Object(CyclicAnalysisRec.CyclicAnalysisRec(java.lang.Object(CyclicAnalysisRec.CyclicAnalysisRec(NULL))))) → 1538_0_length_Return
Performed bisimulation on rules. Used the following equivalence classes: {[1353_0_length_Return, 1376_0_length_Return, 1538_0_length_Return]=1353_0_length_Return}
Finished conversion. Obtained 1 rules for P and 3 rules for R. System has no predefined symbols.
P rules:
1340_0_LENGTH_FIELDACCESS(java.lang.Object(CyclicAnalysisRec.CyclicAnalysisRec(java.lang.Object(x0)))) → 1340_0_LENGTH_FIELDACCESS(java.lang.Object(x0))
R rules:
1362_1_length_InvokeMethod(1353_0_length_Return, java.lang.Object(CyclicAnalysisRec.CyclicAnalysisRec(NULL))) → 1353_0_length_Return
1362_1_length_InvokeMethod(1353_0_length_Return, java.lang.Object(CyclicAnalysisRec.CyclicAnalysisRec(java.lang.Object(CyclicAnalysisRec.CyclicAnalysisRec(java.lang.Object(CyclicAnalysisRec.CyclicAnalysisRec(x0))))))) → 1353_0_length_Return
1362_1_length_InvokeMethod(1353_0_length_Return, java.lang.Object(CyclicAnalysisRec.CyclicAnalysisRec(java.lang.Object(CyclicAnalysisRec.CyclicAnalysisRec(NULL))))) → 1353_0_length_Return
!= | ~ | Neq: (Integer, Integer) -> Boolean |
* | ~ | Mul: (Integer, Integer) -> Integer |
>= | ~ | Ge: (Integer, Integer) -> Boolean |
-1 | ~ | UnaryMinus: (Integer) -> Integer |
| | ~ | Bwor: (Integer, Integer) -> Integer |
/ | ~ | Div: (Integer, Integer) -> Integer |
= | ~ | Eq: (Integer, Integer) -> Boolean |
~ | Bwxor: (Integer, Integer) -> Integer | |
|| | ~ | Lor: (Boolean, Boolean) -> Boolean |
! | ~ | Lnot: (Boolean) -> Boolean |
< | ~ | Lt: (Integer, Integer) -> Boolean |
- | ~ | Sub: (Integer, Integer) -> Integer |
<= | ~ | Le: (Integer, Integer) -> Boolean |
> | ~ | Gt: (Integer, Integer) -> Boolean |
~ | ~ | Bwnot: (Integer) -> Integer |
% | ~ | Mod: (Integer, Integer) -> Integer |
& | ~ | Bwand: (Integer, Integer) -> Integer |
+ | ~ | Add: (Integer, Integer) -> Integer |
&& | ~ | Land: (Boolean, Boolean) -> Boolean |
(0) -> (0), if (java.lang.Object(x0[0]) →* java.lang.Object(CyclicAnalysisRec.CyclicAnalysisRec(java.lang.Object(x0[0]'))))
1340_0_LENGTH_FIELDACCESS(java.lang.Object(CyclicAnalysisRec.CyclicAnalysisRec(java.lang.Object(x0[0])))) → 1340_0_LENGTH_FIELDACCESS(java.lang.Object(x0[0]))
1362_1_length_InvokeMethod(1353_0_length_Return, java.lang.Object(CyclicAnalysisRec.CyclicAnalysisRec(NULL))) → 1353_0_length_Return
1362_1_length_InvokeMethod(1353_0_length_Return, java.lang.Object(CyclicAnalysisRec.CyclicAnalysisRec(java.lang.Object(CyclicAnalysisRec.CyclicAnalysisRec(java.lang.Object(CyclicAnalysisRec.CyclicAnalysisRec(x0))))))) → 1353_0_length_Return
1362_1_length_InvokeMethod(1353_0_length_Return, java.lang.Object(CyclicAnalysisRec.CyclicAnalysisRec(java.lang.Object(CyclicAnalysisRec.CyclicAnalysisRec(NULL))))) → 1353_0_length_Return
1362_1_length_InvokeMethod(1353_0_length_Return, java.lang.Object(CyclicAnalysisRec.CyclicAnalysisRec(NULL)))
1362_1_length_InvokeMethod(1353_0_length_Return, java.lang.Object(CyclicAnalysisRec.CyclicAnalysisRec(java.lang.Object(CyclicAnalysisRec.CyclicAnalysisRec(java.lang.Object(CyclicAnalysisRec.CyclicAnalysisRec(x0)))))))
1362_1_length_InvokeMethod(1353_0_length_Return, java.lang.Object(CyclicAnalysisRec.CyclicAnalysisRec(java.lang.Object(CyclicAnalysisRec.CyclicAnalysisRec(NULL)))))
1340_0_LENGTH_FIELDACCESS(java.lang.Object(CyclicAnalysisRec.CyclicAnalysisRec(java.lang.Object(x0[0])))) → 1340_0_LENGTH_FIELDACCESS(java.lang.Object(x0[0]))
1362_1_length_InvokeMethod(1353_0_length_Return, java.lang.Object(CyclicAnalysisRec.CyclicAnalysisRec(NULL)))
1362_1_length_InvokeMethod(1353_0_length_Return, java.lang.Object(CyclicAnalysisRec.CyclicAnalysisRec(java.lang.Object(CyclicAnalysisRec.CyclicAnalysisRec(java.lang.Object(CyclicAnalysisRec.CyclicAnalysisRec(x0)))))))
1362_1_length_InvokeMethod(1353_0_length_Return, java.lang.Object(CyclicAnalysisRec.CyclicAnalysisRec(java.lang.Object(CyclicAnalysisRec.CyclicAnalysisRec(NULL)))))
1362_1_length_InvokeMethod(1353_0_length_Return, java.lang.Object(CyclicAnalysisRec.CyclicAnalysisRec(NULL)))
1362_1_length_InvokeMethod(1353_0_length_Return, java.lang.Object(CyclicAnalysisRec.CyclicAnalysisRec(java.lang.Object(CyclicAnalysisRec.CyclicAnalysisRec(java.lang.Object(CyclicAnalysisRec.CyclicAnalysisRec(x0)))))))
1362_1_length_InvokeMethod(1353_0_length_Return, java.lang.Object(CyclicAnalysisRec.CyclicAnalysisRec(java.lang.Object(CyclicAnalysisRec.CyclicAnalysisRec(NULL)))))
1340_0_LENGTH_FIELDACCESS(java.lang.Object(CyclicAnalysisRec.CyclicAnalysisRec(java.lang.Object(x0[0])))) → 1340_0_LENGTH_FIELDACCESS(java.lang.Object(x0[0]))
From the DPs we obtained the following set of size-change graphs:
Generated 20 rules for P and 11 rules for R.
P rules:
725_0_appendNewList_New(EOS(STATIC_725), i139) → 736_0_appendNewList_Duplicate(EOS(STATIC_736), i139)
736_0_appendNewList_Duplicate(EOS(STATIC_736), i139) → 748_0_appendNewList_InvokeMethod(EOS(STATIC_748), i139)
748_0_appendNewList_InvokeMethod(EOS(STATIC_748), i139) → 757_0_<init>_Load(EOS(STATIC_757), i139)
757_0_<init>_Load(EOS(STATIC_757), i139) → 778_0_<init>_InvokeMethod(EOS(STATIC_778), i139)
778_0_<init>_InvokeMethod(EOS(STATIC_778), i139) → 796_0_<init>_Return(EOS(STATIC_796), i139)
796_0_<init>_Return(EOS(STATIC_796), i139) → 814_0_appendNewList_FieldAccess(EOS(STATIC_814), i139)
814_0_appendNewList_FieldAccess(EOS(STATIC_814), i139) → 823_0_appendNewList_Load(EOS(STATIC_823), i139)
823_0_appendNewList_Load(EOS(STATIC_823), i139) → 836_0_appendNewList_ConstantStackPush(EOS(STATIC_836), i139, i139)
836_0_appendNewList_ConstantStackPush(EOS(STATIC_836), i139, i139) → 844_0_appendNewList_GT(EOS(STATIC_844), i139, i139, 1)
844_0_appendNewList_GT(EOS(STATIC_844), i179, i179, matching1) → 856_0_appendNewList_GT(EOS(STATIC_856), i179, i179, 1) | =(matching1, 1)
856_0_appendNewList_GT(EOS(STATIC_856), i179, i179, matching1) → 870_0_appendNewList_Load(EOS(STATIC_870), i179) | &&(>(i179, 1), =(matching1, 1))
870_0_appendNewList_Load(EOS(STATIC_870), i179) → 884_0_appendNewList_FieldAccess(EOS(STATIC_884), i179)
884_0_appendNewList_FieldAccess(EOS(STATIC_884), i179) → 894_0_appendNewList_Load(EOS(STATIC_894), i179)
894_0_appendNewList_Load(EOS(STATIC_894), i179) → 908_0_appendNewList_ConstantStackPush(EOS(STATIC_908), i179)
908_0_appendNewList_ConstantStackPush(EOS(STATIC_908), i179) → 925_0_appendNewList_IntArithmetic(EOS(STATIC_925), i179, 1)
925_0_appendNewList_IntArithmetic(EOS(STATIC_925), i179, matching1) → 942_0_appendNewList_InvokeMethod(EOS(STATIC_942), -(i179, 1)) | &&(>(i179, 0), =(matching1, 1))
942_0_appendNewList_InvokeMethod(EOS(STATIC_942), i205) → 956_1_appendNewList_InvokeMethod(956_0_appendNewList_Load(EOS(STATIC_956), i205), i205)
956_0_appendNewList_Load(EOS(STATIC_956), i205) → 981_0_appendNewList_Load(EOS(STATIC_981), i205)
981_0_appendNewList_Load(EOS(STATIC_981), i205) → 716_0_appendNewList_Load(EOS(STATIC_716), i205)
716_0_appendNewList_Load(EOS(STATIC_716), i139) → 725_0_appendNewList_New(EOS(STATIC_725), i139)
R rules:
844_0_appendNewList_GT(EOS(STATIC_844), i178, i178, matching1) → 855_0_appendNewList_GT(EOS(STATIC_855), i178, i178, 1) | =(matching1, 1)
855_0_appendNewList_GT(EOS(STATIC_855), i178, i178, matching1) → 869_0_appendNewList_Load(EOS(STATIC_869), i178) | &&(<=(i178, 1), =(matching1, 1))
869_0_appendNewList_Load(EOS(STATIC_869), i178) → 883_0_appendNewList_FieldAccess(EOS(STATIC_883), i178)
883_0_appendNewList_FieldAccess(EOS(STATIC_883), i178) → 893_0_appendNewList_Return(EOS(STATIC_893), i178)
956_1_appendNewList_InvokeMethod(893_0_appendNewList_Return(EOS(STATIC_893), matching1), matching2) → 1023_0_appendNewList_Return(EOS(STATIC_1023), 1, 1) | &&(=(matching1, 1), =(matching2, 1))
956_1_appendNewList_InvokeMethod(1036_0_appendNewList_Return(EOS(STATIC_1036)), i242) → 1091_0_appendNewList_Return(EOS(STATIC_1091), i242)
956_1_appendNewList_InvokeMethod(1213_0_appendNewList_Return(EOS(STATIC_1213)), i303) → 1291_0_appendNewList_Return(EOS(STATIC_1291), i303)
1023_0_appendNewList_Return(EOS(STATIC_1023), matching1, matching2) → 1036_0_appendNewList_Return(EOS(STATIC_1036)) | &&(=(matching1, 1), =(matching2, 1))
1091_0_appendNewList_Return(EOS(STATIC_1091), i242) → 1199_0_appendNewList_Return(EOS(STATIC_1199), i242)
1199_0_appendNewList_Return(EOS(STATIC_1199), i282) → 1213_0_appendNewList_Return(EOS(STATIC_1213))
1291_0_appendNewList_Return(EOS(STATIC_1291), i303) → 1199_0_appendNewList_Return(EOS(STATIC_1199), i303)
Combined rules. Obtained 1 conditional rules for P and 3 conditional rules for R.
P rules:
725_0_appendNewList_New(EOS(STATIC_725), x0) → 956_1_appendNewList_InvokeMethod(725_0_appendNewList_New(EOS(STATIC_725), -(x0, 1)), -(x0, 1)) | >(x0, 1)
R rules:
956_1_appendNewList_InvokeMethod(893_0_appendNewList_Return(EOS(STATIC_893), 1), 1) → 1036_0_appendNewList_Return(EOS(STATIC_1036))
956_1_appendNewList_InvokeMethod(1036_0_appendNewList_Return(EOS(STATIC_1036)), x0) → 1213_0_appendNewList_Return(EOS(STATIC_1213))
956_1_appendNewList_InvokeMethod(1213_0_appendNewList_Return(EOS(STATIC_1213)), x0) → 1213_0_appendNewList_Return(EOS(STATIC_1213))
Filtered ground terms:
725_0_appendNewList_New(x1, x2) → 725_0_appendNewList_New(x2)
Cond_725_0_appendNewList_New(x1, x2, x3) → Cond_725_0_appendNewList_New(x1, x3)
1213_0_appendNewList_Return(x1) → 1213_0_appendNewList_Return
1036_0_appendNewList_Return(x1) → 1036_0_appendNewList_Return
893_0_appendNewList_Return(x1, x2) → 893_0_appendNewList_Return
Combined rules. Obtained 1 conditional rules for P and 3 conditional rules for R.
P rules:
725_0_appendNewList_New(x0) → 956_1_appendNewList_InvokeMethod(725_0_appendNewList_New(-(x0, 1)), -(x0, 1)) | >(x0, 1)
R rules:
956_1_appendNewList_InvokeMethod(893_0_appendNewList_Return, 1) → 1036_0_appendNewList_Return
956_1_appendNewList_InvokeMethod(1036_0_appendNewList_Return, x0) → 1213_0_appendNewList_Return
956_1_appendNewList_InvokeMethod(1213_0_appendNewList_Return, x0) → 1213_0_appendNewList_Return
Performed bisimulation on rules. Used the following equivalence classes: {[893_0_appendNewList_Return, 1036_0_appendNewList_Return, 1213_0_appendNewList_Return]=893_0_appendNewList_Return}
Finished conversion. Obtained 2 rules for P and 2 rules for R. System has predefined symbols.
P rules:
725_0_APPENDNEWLIST_NEW(x0) → COND_725_0_APPENDNEWLIST_NEW(>(x0, 1), x0)
COND_725_0_APPENDNEWLIST_NEW(TRUE, x0) → 725_0_APPENDNEWLIST_NEW(-(x0, 1))
R rules:
956_1_appendNewList_InvokeMethod(893_0_appendNewList_Return, 1) → 893_0_appendNewList_Return
956_1_appendNewList_InvokeMethod(893_0_appendNewList_Return, x0) → 893_0_appendNewList_Return
!= | ~ | Neq: (Integer, Integer) -> Boolean |
* | ~ | Mul: (Integer, Integer) -> Integer |
>= | ~ | Ge: (Integer, Integer) -> Boolean |
-1 | ~ | UnaryMinus: (Integer) -> Integer |
| | ~ | Bwor: (Integer, Integer) -> Integer |
/ | ~ | Div: (Integer, Integer) -> Integer |
= | ~ | Eq: (Integer, Integer) -> Boolean |
~ | Bwxor: (Integer, Integer) -> Integer | |
|| | ~ | Lor: (Boolean, Boolean) -> Boolean |
! | ~ | Lnot: (Boolean) -> Boolean |
< | ~ | Lt: (Integer, Integer) -> Boolean |
- | ~ | Sub: (Integer, Integer) -> Integer |
<= | ~ | Le: (Integer, Integer) -> Boolean |
> | ~ | Gt: (Integer, Integer) -> Boolean |
~ | ~ | Bwnot: (Integer) -> Integer |
% | ~ | Mod: (Integer, Integer) -> Integer |
& | ~ | Bwand: (Integer, Integer) -> Integer |
+ | ~ | Add: (Integer, Integer) -> Integer |
&& | ~ | Land: (Boolean, Boolean) -> Boolean |
Integer
(0) -> (1), if (x0[0] > 1 ∧x0[0] →* x0[1])
(1) -> (0), if (x0[1] - 1 →* x0[0])
(1) (>(x0[0], 1)=TRUE∧x0[0]=x0[1] ⇒ 725_0_APPENDNEWLIST_NEW(x0[0])≥NonInfC∧725_0_APPENDNEWLIST_NEW(x0[0])≥COND_725_0_APPENDNEWLIST_NEW(>(x0[0], 1), x0[0])∧(UIncreasing(COND_725_0_APPENDNEWLIST_NEW(>(x0[0], 1), x0[0])), ≥))
(2) (>(x0[0], 1)=TRUE ⇒ 725_0_APPENDNEWLIST_NEW(x0[0])≥NonInfC∧725_0_APPENDNEWLIST_NEW(x0[0])≥COND_725_0_APPENDNEWLIST_NEW(>(x0[0], 1), x0[0])∧(UIncreasing(COND_725_0_APPENDNEWLIST_NEW(>(x0[0], 1), x0[0])), ≥))
(3) (x0[0] + [-2] ≥ 0 ⇒ (UIncreasing(COND_725_0_APPENDNEWLIST_NEW(>(x0[0], 1), x0[0])), ≥)∧[(-1)Bound*bni_10] + [(2)bni_10]x0[0] ≥ 0∧[(-1)bso_11] ≥ 0)
(4) (x0[0] + [-2] ≥ 0 ⇒ (UIncreasing(COND_725_0_APPENDNEWLIST_NEW(>(x0[0], 1), x0[0])), ≥)∧[(-1)Bound*bni_10] + [(2)bni_10]x0[0] ≥ 0∧[(-1)bso_11] ≥ 0)
(5) (x0[0] + [-2] ≥ 0 ⇒ (UIncreasing(COND_725_0_APPENDNEWLIST_NEW(>(x0[0], 1), x0[0])), ≥)∧[(-1)Bound*bni_10] + [(2)bni_10]x0[0] ≥ 0∧[(-1)bso_11] ≥ 0)
(6) (x0[0] ≥ 0 ⇒ (UIncreasing(COND_725_0_APPENDNEWLIST_NEW(>(x0[0], 1), x0[0])), ≥)∧[(-1)Bound*bni_10 + (4)bni_10] + [(2)bni_10]x0[0] ≥ 0∧[(-1)bso_11] ≥ 0)
(7) (COND_725_0_APPENDNEWLIST_NEW(TRUE, x0[1])≥NonInfC∧COND_725_0_APPENDNEWLIST_NEW(TRUE, x0[1])≥725_0_APPENDNEWLIST_NEW(-(x0[1], 1))∧(UIncreasing(725_0_APPENDNEWLIST_NEW(-(x0[1], 1))), ≥))
(8) ((UIncreasing(725_0_APPENDNEWLIST_NEW(-(x0[1], 1))), ≥)∧[bni_12] = 0∧[2 + (-1)bso_13] ≥ 0)
(9) ((UIncreasing(725_0_APPENDNEWLIST_NEW(-(x0[1], 1))), ≥)∧[bni_12] = 0∧[2 + (-1)bso_13] ≥ 0)
(10) ((UIncreasing(725_0_APPENDNEWLIST_NEW(-(x0[1], 1))), ≥)∧[bni_12] = 0∧[2 + (-1)bso_13] ≥ 0)
(11) ((UIncreasing(725_0_APPENDNEWLIST_NEW(-(x0[1], 1))), ≥)∧[bni_12] = 0∧0 = 0∧[2 + (-1)bso_13] ≥ 0)
POL(TRUE) = 0
POL(FALSE) = 0
POL(956_1_appendNewList_InvokeMethod(x1, x2)) = [-1]
POL(893_0_appendNewList_Return) = [-1]
POL(1) = [1]
POL(725_0_APPENDNEWLIST_NEW(x1)) = [2]x1
POL(COND_725_0_APPENDNEWLIST_NEW(x1, x2)) = [2]x2
POL(>(x1, x2)) = [-1]
POL(-(x1, x2)) = x1 + [-1]x2
COND_725_0_APPENDNEWLIST_NEW(TRUE, x0[1]) → 725_0_APPENDNEWLIST_NEW(-(x0[1], 1))
725_0_APPENDNEWLIST_NEW(x0[0]) → COND_725_0_APPENDNEWLIST_NEW(>(x0[0], 1), x0[0])
725_0_APPENDNEWLIST_NEW(x0[0]) → COND_725_0_APPENDNEWLIST_NEW(>(x0[0], 1), x0[0])
!= | ~ | Neq: (Integer, Integer) -> Boolean |
* | ~ | Mul: (Integer, Integer) -> Integer |
>= | ~ | Ge: (Integer, Integer) -> Boolean |
-1 | ~ | UnaryMinus: (Integer) -> Integer |
| | ~ | Bwor: (Integer, Integer) -> Integer |
/ | ~ | Div: (Integer, Integer) -> Integer |
= | ~ | Eq: (Integer, Integer) -> Boolean |
~ | Bwxor: (Integer, Integer) -> Integer | |
|| | ~ | Lor: (Boolean, Boolean) -> Boolean |
! | ~ | Lnot: (Boolean) -> Boolean |
< | ~ | Lt: (Integer, Integer) -> Boolean |
- | ~ | Sub: (Integer, Integer) -> Integer |
<= | ~ | Le: (Integer, Integer) -> Boolean |
> | ~ | Gt: (Integer, Integer) -> Boolean |
~ | ~ | Bwnot: (Integer) -> Integer |
% | ~ | Mod: (Integer, Integer) -> Integer |
& | ~ | Bwand: (Integer, Integer) -> Integer |
+ | ~ | Add: (Integer, Integer) -> Integer |
&& | ~ | Land: (Boolean, Boolean) -> Boolean |
Integer
!= | ~ | Neq: (Integer, Integer) -> Boolean |
* | ~ | Mul: (Integer, Integer) -> Integer |
>= | ~ | Ge: (Integer, Integer) -> Boolean |
-1 | ~ | UnaryMinus: (Integer) -> Integer |
| | ~ | Bwor: (Integer, Integer) -> Integer |
/ | ~ | Div: (Integer, Integer) -> Integer |
= | ~ | Eq: (Integer, Integer) -> Boolean |
~ | Bwxor: (Integer, Integer) -> Integer | |
|| | ~ | Lor: (Boolean, Boolean) -> Boolean |
! | ~ | Lnot: (Boolean) -> Boolean |
< | ~ | Lt: (Integer, Integer) -> Boolean |
- | ~ | Sub: (Integer, Integer) -> Integer |
<= | ~ | Le: (Integer, Integer) -> Boolean |
> | ~ | Gt: (Integer, Integer) -> Boolean |
~ | ~ | Bwnot: (Integer) -> Integer |
% | ~ | Mod: (Integer, Integer) -> Integer |
& | ~ | Bwand: (Integer, Integer) -> Integer |
+ | ~ | Add: (Integer, Integer) -> Integer |
&& | ~ | Land: (Boolean, Boolean) -> Boolean |
Integer