0 JBC
↳1 JBCToGraph (⇒, 560 ms)
↳2 JBCTerminationGraph
↳3 TerminationGraphToSCCProof (⇒, 0 ms)
↳4 AND
↳5 JBCTerminationSCC
↳6 SCCToIDPv1Proof (⇒, 100 ms)
↳7 IDP
↳8 IDPtoQDPProof (⇒, 30 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 (⇒, 180 ms)
↳18 IDP
↳19 IDPNonInfProof (⇒, 70 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:
1370_0_length_FieldAccess(EOS(STATIC_1370), java.lang.Object(CyclicAnalysisRec.CyclicAnalysisRec(EOC, o827)), java.lang.Object(CyclicAnalysisRec.CyclicAnalysisRec(EOC, o827))) → 1372_0_length_FieldAccess(EOS(STATIC_1372), java.lang.Object(CyclicAnalysisRec.CyclicAnalysisRec(EOC, o827)), java.lang.Object(CyclicAnalysisRec.CyclicAnalysisRec(EOC, o827)))
1372_0_length_FieldAccess(EOS(STATIC_1372), java.lang.Object(CyclicAnalysisRec.CyclicAnalysisRec(EOC, o827)), java.lang.Object(CyclicAnalysisRec.CyclicAnalysisRec(EOC, o827))) → 1374_0_length_NONNULL(EOS(STATIC_1374), java.lang.Object(CyclicAnalysisRec.CyclicAnalysisRec(EOC, o827)), o827)
1374_0_length_NONNULL(EOS(STATIC_1374), java.lang.Object(CyclicAnalysisRec.CyclicAnalysisRec(EOC, java.lang.Object(o829sub))), java.lang.Object(o829sub)) → 1376_0_length_NONNULL(EOS(STATIC_1376), java.lang.Object(CyclicAnalysisRec.CyclicAnalysisRec(EOC, java.lang.Object(o829sub))), java.lang.Object(o829sub))
1376_0_length_NONNULL(EOS(STATIC_1376), java.lang.Object(CyclicAnalysisRec.CyclicAnalysisRec(EOC, java.lang.Object(o829sub))), java.lang.Object(o829sub)) → 1378_0_length_ConstantStackPush(EOS(STATIC_1378), java.lang.Object(CyclicAnalysisRec.CyclicAnalysisRec(EOC, java.lang.Object(o829sub))))
1378_0_length_ConstantStackPush(EOS(STATIC_1378), java.lang.Object(CyclicAnalysisRec.CyclicAnalysisRec(EOC, java.lang.Object(o829sub)))) → 1382_0_length_Load(EOS(STATIC_1382), java.lang.Object(CyclicAnalysisRec.CyclicAnalysisRec(EOC, java.lang.Object(o829sub))))
1382_0_length_Load(EOS(STATIC_1382), java.lang.Object(CyclicAnalysisRec.CyclicAnalysisRec(EOC, java.lang.Object(o829sub)))) → 1385_0_length_FieldAccess(EOS(STATIC_1385), java.lang.Object(CyclicAnalysisRec.CyclicAnalysisRec(EOC, java.lang.Object(o829sub))))
1385_0_length_FieldAccess(EOS(STATIC_1385), java.lang.Object(CyclicAnalysisRec.CyclicAnalysisRec(EOC, java.lang.Object(o829sub)))) → 1388_0_length_InvokeMethod(EOS(STATIC_1388), java.lang.Object(o829sub))
1388_0_length_InvokeMethod(EOS(STATIC_1388), java.lang.Object(o829sub)) → 1392_1_length_InvokeMethod(1392_0_length_Load(EOS(STATIC_1392), java.lang.Object(o829sub)), java.lang.Object(o829sub))
1392_0_length_Load(EOS(STATIC_1392), java.lang.Object(o829sub)) → 1396_0_length_Load(EOS(STATIC_1396), java.lang.Object(o829sub))
1396_0_length_Load(EOS(STATIC_1396), java.lang.Object(o829sub)) → 1369_0_length_Load(EOS(STATIC_1369), java.lang.Object(o829sub))
1369_0_length_Load(EOS(STATIC_1369), java.lang.Object(o822sub)) → 1370_0_length_FieldAccess(EOS(STATIC_1370), java.lang.Object(o822sub), java.lang.Object(o822sub))
R rules:
1374_0_length_NONNULL(EOS(STATIC_1374), java.lang.Object(CyclicAnalysisRec.CyclicAnalysisRec(EOC, NULL)), NULL) → 1377_0_length_NONNULL(EOS(STATIC_1377), java.lang.Object(CyclicAnalysisRec.CyclicAnalysisRec(EOC, NULL)), NULL)
1377_0_length_NONNULL(EOS(STATIC_1377), java.lang.Object(CyclicAnalysisRec.CyclicAnalysisRec(EOC, NULL)), NULL) → 1380_0_length_ConstantStackPush(EOS(STATIC_1380), java.lang.Object(CyclicAnalysisRec.CyclicAnalysisRec(EOC, NULL)))
1380_0_length_ConstantStackPush(EOS(STATIC_1380), java.lang.Object(CyclicAnalysisRec.CyclicAnalysisRec(EOC, NULL))) → 1383_0_length_Return(EOS(STATIC_1383), java.lang.Object(CyclicAnalysisRec.CyclicAnalysisRec(EOC, NULL)))
1392_1_length_InvokeMethod(1383_0_length_Return(EOS(STATIC_1383), java.lang.Object(CyclicAnalysisRec.CyclicAnalysisRec(EOC, NULL))), java.lang.Object(CyclicAnalysisRec.CyclicAnalysisRec(EOC, NULL))) → 1403_0_length_Return(EOS(STATIC_1403), java.lang.Object(CyclicAnalysisRec.CyclicAnalysisRec(EOC, NULL)), java.lang.Object(CyclicAnalysisRec.CyclicAnalysisRec(EOC, NULL)))
1392_1_length_InvokeMethod(1406_0_length_Return(EOS(STATIC_1406)), java.lang.Object(CyclicAnalysisRec.CyclicAnalysisRec(EOC, java.lang.Object(CyclicAnalysisRec.CyclicAnalysisRec(EOC, NULL))))) → 1423_0_length_Return(EOS(STATIC_1423), java.lang.Object(CyclicAnalysisRec.CyclicAnalysisRec(EOC, java.lang.Object(CyclicAnalysisRec.CyclicAnalysisRec(EOC, NULL)))))
1392_1_length_InvokeMethod(1570_0_length_Return(EOS(STATIC_1570)), java.lang.Object(CyclicAnalysisRec.CyclicAnalysisRec(EOC, java.lang.Object(CyclicAnalysisRec.CyclicAnalysisRec(EOC, java.lang.Object(CyclicAnalysisRec.CyclicAnalysisRec(EOC, o1082))))))) → 1589_0_length_Return(EOS(STATIC_1589), java.lang.Object(CyclicAnalysisRec.CyclicAnalysisRec(EOC, java.lang.Object(CyclicAnalysisRec.CyclicAnalysisRec(EOC, java.lang.Object(CyclicAnalysisRec.CyclicAnalysisRec(EOC, o1082)))))))
1403_0_length_Return(EOS(STATIC_1403), java.lang.Object(CyclicAnalysisRec.CyclicAnalysisRec(EOC, NULL)), java.lang.Object(CyclicAnalysisRec.CyclicAnalysisRec(EOC, NULL))) → 1404_0_length_IntArithmetic(EOS(STATIC_1404))
1404_0_length_IntArithmetic(EOS(STATIC_1404)) → 1406_0_length_Return(EOS(STATIC_1406))
1423_0_length_Return(EOS(STATIC_1423), java.lang.Object(CyclicAnalysisRec.CyclicAnalysisRec(EOC, java.lang.Object(CyclicAnalysisRec.CyclicAnalysisRec(EOC, NULL))))) → 1450_0_length_Return(EOS(STATIC_1450), java.lang.Object(CyclicAnalysisRec.CyclicAnalysisRec(EOC, java.lang.Object(CyclicAnalysisRec.CyclicAnalysisRec(EOC, NULL)))))
1450_0_length_Return(EOS(STATIC_1450), java.lang.Object(CyclicAnalysisRec.CyclicAnalysisRec(EOC, java.lang.Object(CyclicAnalysisRec.CyclicAnalysisRec(EOC, o869))))) → 1492_0_length_Return(EOS(STATIC_1492), java.lang.Object(CyclicAnalysisRec.CyclicAnalysisRec(EOC, java.lang.Object(CyclicAnalysisRec.CyclicAnalysisRec(EOC, o869)))))
1492_0_length_Return(EOS(STATIC_1492), java.lang.Object(CyclicAnalysisRec.CyclicAnalysisRec(EOC, java.lang.Object(CyclicAnalysisRec.CyclicAnalysisRec(EOC, o918))))) → 1523_0_length_Return(EOS(STATIC_1523), java.lang.Object(CyclicAnalysisRec.CyclicAnalysisRec(EOC, java.lang.Object(CyclicAnalysisRec.CyclicAnalysisRec(EOC, o918)))))
1523_0_length_Return(EOS(STATIC_1523), java.lang.Object(CyclicAnalysisRec.CyclicAnalysisRec(EOC, java.lang.Object(CyclicAnalysisRec.CyclicAnalysisRec(EOC, o979))))) → 1561_0_length_Return(EOS(STATIC_1561), java.lang.Object(CyclicAnalysisRec.CyclicAnalysisRec(EOC, java.lang.Object(CyclicAnalysisRec.CyclicAnalysisRec(EOC, o979)))))
1561_0_length_Return(EOS(STATIC_1561), java.lang.Object(CyclicAnalysisRec.CyclicAnalysisRec(EOC, java.lang.Object(CyclicAnalysisRec.CyclicAnalysisRec(EOC, o1039))))) → 1565_0_length_IntArithmetic(EOS(STATIC_1565))
1565_0_length_IntArithmetic(EOS(STATIC_1565)) → 1570_0_length_Return(EOS(STATIC_1570))
1589_0_length_Return(EOS(STATIC_1589), java.lang.Object(CyclicAnalysisRec.CyclicAnalysisRec(EOC, java.lang.Object(CyclicAnalysisRec.CyclicAnalysisRec(EOC, java.lang.Object(CyclicAnalysisRec.CyclicAnalysisRec(EOC, o1082))))))) → 1561_0_length_Return(EOS(STATIC_1561), 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:
1370_0_length_FieldAccess(EOS(STATIC_1370), java.lang.Object(CyclicAnalysisRec.CyclicAnalysisRec(EOC, java.lang.Object(x0))), java.lang.Object(CyclicAnalysisRec.CyclicAnalysisRec(EOC, java.lang.Object(x0)))) → 1392_1_length_InvokeMethod(1370_0_length_FieldAccess(EOS(STATIC_1370), java.lang.Object(x0), java.lang.Object(x0)), java.lang.Object(x0))
R rules:
1392_1_length_InvokeMethod(1383_0_length_Return(EOS(STATIC_1383), java.lang.Object(CyclicAnalysisRec.CyclicAnalysisRec(EOC, NULL))), java.lang.Object(CyclicAnalysisRec.CyclicAnalysisRec(EOC, NULL))) → 1406_0_length_Return(EOS(STATIC_1406))
1392_1_length_InvokeMethod(1570_0_length_Return(EOS(STATIC_1570)), java.lang.Object(CyclicAnalysisRec.CyclicAnalysisRec(EOC, java.lang.Object(CyclicAnalysisRec.CyclicAnalysisRec(EOC, java.lang.Object(CyclicAnalysisRec.CyclicAnalysisRec(EOC, x0))))))) → 1570_0_length_Return(EOS(STATIC_1570))
1392_1_length_InvokeMethod(1406_0_length_Return(EOS(STATIC_1406)), java.lang.Object(CyclicAnalysisRec.CyclicAnalysisRec(EOC, java.lang.Object(CyclicAnalysisRec.CyclicAnalysisRec(EOC, NULL))))) → 1570_0_length_Return(EOS(STATIC_1570))
Filtered ground terms:
1370_0_length_FieldAccess(x1, x2, x3) → 1370_0_length_FieldAccess(x2, x3)
CyclicAnalysisRec.CyclicAnalysisRec(x1, x2) → CyclicAnalysisRec.CyclicAnalysisRec(x2)
1570_0_length_Return(x1) → 1570_0_length_Return
1406_0_length_Return(x1) → 1406_0_length_Return
1383_0_length_Return(x1, x2) → 1383_0_length_Return
Filtered duplicate args:
1370_0_length_FieldAccess(x1, x2) → 1370_0_length_FieldAccess(x2)
Combined rules. Obtained 1 conditional rules for P and 3 conditional rules for R.
P rules:
1370_0_length_FieldAccess(java.lang.Object(CyclicAnalysisRec.CyclicAnalysisRec(java.lang.Object(x0)))) → 1392_1_length_InvokeMethod(1370_0_length_FieldAccess(java.lang.Object(x0)), java.lang.Object(x0))
R rules:
1392_1_length_InvokeMethod(1383_0_length_Return, java.lang.Object(CyclicAnalysisRec.CyclicAnalysisRec(NULL))) → 1406_0_length_Return
1392_1_length_InvokeMethod(1570_0_length_Return, java.lang.Object(CyclicAnalysisRec.CyclicAnalysisRec(java.lang.Object(CyclicAnalysisRec.CyclicAnalysisRec(java.lang.Object(CyclicAnalysisRec.CyclicAnalysisRec(x0))))))) → 1570_0_length_Return
1392_1_length_InvokeMethod(1406_0_length_Return, java.lang.Object(CyclicAnalysisRec.CyclicAnalysisRec(java.lang.Object(CyclicAnalysisRec.CyclicAnalysisRec(NULL))))) → 1570_0_length_Return
Performed bisimulation on rules. Used the following equivalence classes: {[1383_0_length_Return, 1406_0_length_Return, 1570_0_length_Return]=1383_0_length_Return}
Finished conversion. Obtained 1 rules for P and 3 rules for R. System has no predefined symbols.
P rules:
1370_0_LENGTH_FIELDACCESS(java.lang.Object(CyclicAnalysisRec.CyclicAnalysisRec(java.lang.Object(x0)))) → 1370_0_LENGTH_FIELDACCESS(java.lang.Object(x0))
R rules:
1392_1_length_InvokeMethod(1383_0_length_Return, java.lang.Object(CyclicAnalysisRec.CyclicAnalysisRec(NULL))) → 1383_0_length_Return
1392_1_length_InvokeMethod(1383_0_length_Return, java.lang.Object(CyclicAnalysisRec.CyclicAnalysisRec(java.lang.Object(CyclicAnalysisRec.CyclicAnalysisRec(java.lang.Object(CyclicAnalysisRec.CyclicAnalysisRec(x0))))))) → 1383_0_length_Return
1392_1_length_InvokeMethod(1383_0_length_Return, java.lang.Object(CyclicAnalysisRec.CyclicAnalysisRec(java.lang.Object(CyclicAnalysisRec.CyclicAnalysisRec(NULL))))) → 1383_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]'))))
1370_0_LENGTH_FIELDACCESS(java.lang.Object(CyclicAnalysisRec.CyclicAnalysisRec(java.lang.Object(x0[0])))) → 1370_0_LENGTH_FIELDACCESS(java.lang.Object(x0[0]))
1392_1_length_InvokeMethod(1383_0_length_Return, java.lang.Object(CyclicAnalysisRec.CyclicAnalysisRec(NULL))) → 1383_0_length_Return
1392_1_length_InvokeMethod(1383_0_length_Return, java.lang.Object(CyclicAnalysisRec.CyclicAnalysisRec(java.lang.Object(CyclicAnalysisRec.CyclicAnalysisRec(java.lang.Object(CyclicAnalysisRec.CyclicAnalysisRec(x0))))))) → 1383_0_length_Return
1392_1_length_InvokeMethod(1383_0_length_Return, java.lang.Object(CyclicAnalysisRec.CyclicAnalysisRec(java.lang.Object(CyclicAnalysisRec.CyclicAnalysisRec(NULL))))) → 1383_0_length_Return
1392_1_length_InvokeMethod(1383_0_length_Return, java.lang.Object(CyclicAnalysisRec.CyclicAnalysisRec(NULL)))
1392_1_length_InvokeMethod(1383_0_length_Return, java.lang.Object(CyclicAnalysisRec.CyclicAnalysisRec(java.lang.Object(CyclicAnalysisRec.CyclicAnalysisRec(java.lang.Object(CyclicAnalysisRec.CyclicAnalysisRec(x0)))))))
1392_1_length_InvokeMethod(1383_0_length_Return, java.lang.Object(CyclicAnalysisRec.CyclicAnalysisRec(java.lang.Object(CyclicAnalysisRec.CyclicAnalysisRec(NULL)))))
1370_0_LENGTH_FIELDACCESS(java.lang.Object(CyclicAnalysisRec.CyclicAnalysisRec(java.lang.Object(x0[0])))) → 1370_0_LENGTH_FIELDACCESS(java.lang.Object(x0[0]))
1392_1_length_InvokeMethod(1383_0_length_Return, java.lang.Object(CyclicAnalysisRec.CyclicAnalysisRec(NULL)))
1392_1_length_InvokeMethod(1383_0_length_Return, java.lang.Object(CyclicAnalysisRec.CyclicAnalysisRec(java.lang.Object(CyclicAnalysisRec.CyclicAnalysisRec(java.lang.Object(CyclicAnalysisRec.CyclicAnalysisRec(x0)))))))
1392_1_length_InvokeMethod(1383_0_length_Return, java.lang.Object(CyclicAnalysisRec.CyclicAnalysisRec(java.lang.Object(CyclicAnalysisRec.CyclicAnalysisRec(NULL)))))
1392_1_length_InvokeMethod(1383_0_length_Return, java.lang.Object(CyclicAnalysisRec.CyclicAnalysisRec(NULL)))
1392_1_length_InvokeMethod(1383_0_length_Return, java.lang.Object(CyclicAnalysisRec.CyclicAnalysisRec(java.lang.Object(CyclicAnalysisRec.CyclicAnalysisRec(java.lang.Object(CyclicAnalysisRec.CyclicAnalysisRec(x0)))))))
1392_1_length_InvokeMethod(1383_0_length_Return, java.lang.Object(CyclicAnalysisRec.CyclicAnalysisRec(java.lang.Object(CyclicAnalysisRec.CyclicAnalysisRec(NULL)))))
1370_0_LENGTH_FIELDACCESS(java.lang.Object(CyclicAnalysisRec.CyclicAnalysisRec(java.lang.Object(x0[0])))) → 1370_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:
716_0_appendNewList_New(EOS(STATIC_716), i139) → 726_0_appendNewList_Duplicate(EOS(STATIC_726), i139)
726_0_appendNewList_Duplicate(EOS(STATIC_726), i139) → 736_0_appendNewList_InvokeMethod(EOS(STATIC_736), i139)
736_0_appendNewList_InvokeMethod(EOS(STATIC_736), i139) → 749_0_<init>_Load(EOS(STATIC_749), i139)
749_0_<init>_Load(EOS(STATIC_749), i139) → 765_0_<init>_InvokeMethod(EOS(STATIC_765), i139)
765_0_<init>_InvokeMethod(EOS(STATIC_765), i139) → 781_0_<init>_Return(EOS(STATIC_781), i139)
781_0_<init>_Return(EOS(STATIC_781), i139) → 802_0_appendNewList_FieldAccess(EOS(STATIC_802), i139)
802_0_appendNewList_FieldAccess(EOS(STATIC_802), i139) → 812_0_appendNewList_Load(EOS(STATIC_812), i139)
812_0_appendNewList_Load(EOS(STATIC_812), i139) → 825_0_appendNewList_ConstantStackPush(EOS(STATIC_825), i139, i139)
825_0_appendNewList_ConstantStackPush(EOS(STATIC_825), i139, i139) → 833_0_appendNewList_GT(EOS(STATIC_833), i139, i139, 1)
833_0_appendNewList_GT(EOS(STATIC_833), i178, i178, matching1) → 842_0_appendNewList_GT(EOS(STATIC_842), i178, i178, 1) | =(matching1, 1)
842_0_appendNewList_GT(EOS(STATIC_842), i178, i178, matching1) → 858_0_appendNewList_Load(EOS(STATIC_858), i178) | &&(>(i178, 1), =(matching1, 1))
858_0_appendNewList_Load(EOS(STATIC_858), i178) → 873_0_appendNewList_FieldAccess(EOS(STATIC_873), i178)
873_0_appendNewList_FieldAccess(EOS(STATIC_873), i178) → 882_0_appendNewList_Load(EOS(STATIC_882), i178)
882_0_appendNewList_Load(EOS(STATIC_882), i178) → 899_0_appendNewList_ConstantStackPush(EOS(STATIC_899), i178)
899_0_appendNewList_ConstantStackPush(EOS(STATIC_899), i178) → 918_0_appendNewList_IntArithmetic(EOS(STATIC_918), i178, 1)
918_0_appendNewList_IntArithmetic(EOS(STATIC_918), i178, matching1) → 942_0_appendNewList_InvokeMethod(EOS(STATIC_942), -(i178, 1)) | &&(>(i178, 0), =(matching1, 1))
942_0_appendNewList_InvokeMethod(EOS(STATIC_942), i205) → 960_1_appendNewList_InvokeMethod(960_0_appendNewList_Load(EOS(STATIC_960), i205), i205)
960_0_appendNewList_Load(EOS(STATIC_960), i205) → 988_0_appendNewList_Load(EOS(STATIC_988), i205)
988_0_appendNewList_Load(EOS(STATIC_988), i205) → 707_0_appendNewList_Load(EOS(STATIC_707), i205)
707_0_appendNewList_Load(EOS(STATIC_707), i139) → 716_0_appendNewList_New(EOS(STATIC_716), i139)
R rules:
833_0_appendNewList_GT(EOS(STATIC_833), i177, i177, matching1) → 841_0_appendNewList_GT(EOS(STATIC_841), i177, i177, 1) | =(matching1, 1)
841_0_appendNewList_GT(EOS(STATIC_841), i177, i177, matching1) → 857_0_appendNewList_Load(EOS(STATIC_857), i177) | &&(<=(i177, 1), =(matching1, 1))
857_0_appendNewList_Load(EOS(STATIC_857), i177) → 872_0_appendNewList_FieldAccess(EOS(STATIC_872), i177)
872_0_appendNewList_FieldAccess(EOS(STATIC_872), i177) → 881_0_appendNewList_Return(EOS(STATIC_881), i177)
960_1_appendNewList_InvokeMethod(881_0_appendNewList_Return(EOS(STATIC_881), matching1), matching2) → 1030_0_appendNewList_Return(EOS(STATIC_1030), 1, 1) | &&(=(matching1, 1), =(matching2, 1))
960_1_appendNewList_InvokeMethod(1042_0_appendNewList_Return(EOS(STATIC_1042)), i242) → 1098_0_appendNewList_Return(EOS(STATIC_1098), i242)
960_1_appendNewList_InvokeMethod(1236_0_appendNewList_Return(EOS(STATIC_1236)), i305) → 1322_0_appendNewList_Return(EOS(STATIC_1322), i305)
1030_0_appendNewList_Return(EOS(STATIC_1030), matching1, matching2) → 1042_0_appendNewList_Return(EOS(STATIC_1042)) | &&(=(matching1, 1), =(matching2, 1))
1098_0_appendNewList_Return(EOS(STATIC_1098), i242) → 1220_0_appendNewList_Return(EOS(STATIC_1220), i242)
1220_0_appendNewList_Return(EOS(STATIC_1220), i282) → 1236_0_appendNewList_Return(EOS(STATIC_1236))
1322_0_appendNewList_Return(EOS(STATIC_1322), i305) → 1220_0_appendNewList_Return(EOS(STATIC_1220), i305)
Combined rules. Obtained 1 conditional rules for P and 3 conditional rules for R.
P rules:
716_0_appendNewList_New(EOS(STATIC_716), x0) → 960_1_appendNewList_InvokeMethod(716_0_appendNewList_New(EOS(STATIC_716), -(x0, 1)), -(x0, 1)) | >(x0, 1)
R rules:
960_1_appendNewList_InvokeMethod(881_0_appendNewList_Return(EOS(STATIC_881), 1), 1) → 1042_0_appendNewList_Return(EOS(STATIC_1042))
960_1_appendNewList_InvokeMethod(1042_0_appendNewList_Return(EOS(STATIC_1042)), x0) → 1236_0_appendNewList_Return(EOS(STATIC_1236))
960_1_appendNewList_InvokeMethod(1236_0_appendNewList_Return(EOS(STATIC_1236)), x0) → 1236_0_appendNewList_Return(EOS(STATIC_1236))
Filtered ground terms:
716_0_appendNewList_New(x1, x2) → 716_0_appendNewList_New(x2)
Cond_716_0_appendNewList_New(x1, x2, x3) → Cond_716_0_appendNewList_New(x1, x3)
1236_0_appendNewList_Return(x1) → 1236_0_appendNewList_Return
1042_0_appendNewList_Return(x1) → 1042_0_appendNewList_Return
881_0_appendNewList_Return(x1, x2) → 881_0_appendNewList_Return
Combined rules. Obtained 1 conditional rules for P and 3 conditional rules for R.
P rules:
716_0_appendNewList_New(x0) → 960_1_appendNewList_InvokeMethod(716_0_appendNewList_New(-(x0, 1)), -(x0, 1)) | >(x0, 1)
R rules:
960_1_appendNewList_InvokeMethod(881_0_appendNewList_Return, 1) → 1042_0_appendNewList_Return
960_1_appendNewList_InvokeMethod(1042_0_appendNewList_Return, x0) → 1236_0_appendNewList_Return
960_1_appendNewList_InvokeMethod(1236_0_appendNewList_Return, x0) → 1236_0_appendNewList_Return
Performed bisimulation on rules. Used the following equivalence classes: {[881_0_appendNewList_Return, 1042_0_appendNewList_Return, 1236_0_appendNewList_Return]=881_0_appendNewList_Return}
Finished conversion. Obtained 2 rules for P and 2 rules for R. System has predefined symbols.
P rules:
716_0_APPENDNEWLIST_NEW(x0) → COND_716_0_APPENDNEWLIST_NEW(>(x0, 1), x0)
COND_716_0_APPENDNEWLIST_NEW(TRUE, x0) → 716_0_APPENDNEWLIST_NEW(-(x0, 1))
R rules:
960_1_appendNewList_InvokeMethod(881_0_appendNewList_Return, 1) → 881_0_appendNewList_Return
960_1_appendNewList_InvokeMethod(881_0_appendNewList_Return, x0) → 881_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] ⇒ 716_0_APPENDNEWLIST_NEW(x0[0])≥NonInfC∧716_0_APPENDNEWLIST_NEW(x0[0])≥COND_716_0_APPENDNEWLIST_NEW(>(x0[0], 1), x0[0])∧(UIncreasing(COND_716_0_APPENDNEWLIST_NEW(>(x0[0], 1), x0[0])), ≥))
(2) (>(x0[0], 1)=TRUE ⇒ 716_0_APPENDNEWLIST_NEW(x0[0])≥NonInfC∧716_0_APPENDNEWLIST_NEW(x0[0])≥COND_716_0_APPENDNEWLIST_NEW(>(x0[0], 1), x0[0])∧(UIncreasing(COND_716_0_APPENDNEWLIST_NEW(>(x0[0], 1), x0[0])), ≥))
(3) (x0[0] + [-2] ≥ 0 ⇒ (UIncreasing(COND_716_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_716_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_716_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_716_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_716_0_APPENDNEWLIST_NEW(TRUE, x0[1])≥NonInfC∧COND_716_0_APPENDNEWLIST_NEW(TRUE, x0[1])≥716_0_APPENDNEWLIST_NEW(-(x0[1], 1))∧(UIncreasing(716_0_APPENDNEWLIST_NEW(-(x0[1], 1))), ≥))
(8) ((UIncreasing(716_0_APPENDNEWLIST_NEW(-(x0[1], 1))), ≥)∧[bni_12] = 0∧[2 + (-1)bso_13] ≥ 0)
(9) ((UIncreasing(716_0_APPENDNEWLIST_NEW(-(x0[1], 1))), ≥)∧[bni_12] = 0∧[2 + (-1)bso_13] ≥ 0)
(10) ((UIncreasing(716_0_APPENDNEWLIST_NEW(-(x0[1], 1))), ≥)∧[bni_12] = 0∧[2 + (-1)bso_13] ≥ 0)
(11) ((UIncreasing(716_0_APPENDNEWLIST_NEW(-(x0[1], 1))), ≥)∧[bni_12] = 0∧0 = 0∧[2 + (-1)bso_13] ≥ 0)
POL(TRUE) = 0
POL(FALSE) = 0
POL(960_1_appendNewList_InvokeMethod(x1, x2)) = [-1]
POL(881_0_appendNewList_Return) = [-1]
POL(1) = [1]
POL(716_0_APPENDNEWLIST_NEW(x1)) = [2]x1
POL(COND_716_0_APPENDNEWLIST_NEW(x1, x2)) = [2]x2
POL(>(x1, x2)) = [-1]
POL(-(x1, x2)) = x1 + [-1]x2
COND_716_0_APPENDNEWLIST_NEW(TRUE, x0[1]) → 716_0_APPENDNEWLIST_NEW(-(x0[1], 1))
716_0_APPENDNEWLIST_NEW(x0[0]) → COND_716_0_APPENDNEWLIST_NEW(>(x0[0], 1), x0[0])
716_0_APPENDNEWLIST_NEW(x0[0]) → COND_716_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