0 JBC
↳1 JBCToGraph (⇒, 520 ms)
↳2 JBCTerminationGraph
↳3 TerminationGraphToSCCProof (⇒, 0 ms)
↳4 JBCTerminationSCC
↳5 SCCToIDPv1Proof (⇒, 120 ms)
↳6 IDP
↳7 IDPNonInfProof (⇒, 960 ms)
↳8 IDP
↳9 IDependencyGraphProof (⇔, 0 ms)
↳10 IDP
↳11 IDPNonInfProof (⇒, 130 ms)
↳12 IDP
↳13 IDependencyGraphProof (⇔, 0 ms)
↳14 TRUE
/**
* 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 PastaC3 {
public static void main(String[] args) {
Random.args = args;
int x = Random.random();
int y = Random.random();
int z = Random.random();
while (x < y) {
if (x < z) {
x++;
} else {
z++;
}
}
}
}
public class Random {
static String[] args;
static int index = 0;
public static int random() {
String string = args[index];
index++;
return string.length();
}
}
Generated 16 rules for P and 0 rules for R.
P rules:
493_0_main_Load(EOS(STATIC_493), i18, i47, i87, i18) → 500_0_main_GE(EOS(STATIC_500), i18, i47, i87, i18, i47)
500_0_main_GE(EOS(STATIC_500), i18, i47, i87, i18, i47) → 517_0_main_GE(EOS(STATIC_517), i18, i47, i87, i18, i47)
517_0_main_GE(EOS(STATIC_517), i18, i47, i87, i18, i47) → 528_0_main_Load(EOS(STATIC_528), i18, i47, i87) | <(i18, i47)
528_0_main_Load(EOS(STATIC_528), i18, i47, i87) → 536_0_main_Load(EOS(STATIC_536), i18, i47, i87, i18)
536_0_main_Load(EOS(STATIC_536), i18, i47, i87, i18) → 548_0_main_GE(EOS(STATIC_548), i18, i47, i87, i18, i87)
548_0_main_GE(EOS(STATIC_548), i18, i47, i87, i18, i87) → 558_0_main_GE(EOS(STATIC_558), i18, i47, i87, i18, i87)
548_0_main_GE(EOS(STATIC_548), i18, i47, i87, i18, i87) → 559_0_main_GE(EOS(STATIC_559), i18, i47, i87, i18, i87)
558_0_main_GE(EOS(STATIC_558), i18, i47, i87, i18, i87) → 568_0_main_Inc(EOS(STATIC_568), i18, i47, i87) | >=(i18, i87)
568_0_main_Inc(EOS(STATIC_568), i18, i47, i87) → 579_0_main_JMP(EOS(STATIC_579), i18, i47, +(i87, 1)) | >=(i87, 0)
579_0_main_JMP(EOS(STATIC_579), i18, i47, i101) → 614_0_main_Load(EOS(STATIC_614), i18, i47, i101)
614_0_main_Load(EOS(STATIC_614), i18, i47, i101) → 485_0_main_Load(EOS(STATIC_485), i18, i47, i101)
485_0_main_Load(EOS(STATIC_485), i18, i47, i87) → 493_0_main_Load(EOS(STATIC_493), i18, i47, i87, i18)
559_0_main_GE(EOS(STATIC_559), i18, i47, i87, i18, i87) → 570_0_main_Inc(EOS(STATIC_570), i18, i47, i87) | <(i18, i87)
570_0_main_Inc(EOS(STATIC_570), i18, i47, i87) → 581_0_main_JMP(EOS(STATIC_581), +(i18, 1), i47, i87) | >=(i18, 0)
581_0_main_JMP(EOS(STATIC_581), i102, i47, i87) → 620_0_main_Load(EOS(STATIC_620), i102, i47, i87)
620_0_main_Load(EOS(STATIC_620), i102, i47, i87) → 485_0_main_Load(EOS(STATIC_485), i102, i47, i87)
R rules:
Combined rules. Obtained 2 conditional rules for P and 0 conditional rules for R.
P rules:
493_0_main_Load(EOS(STATIC_493), x0, x1, x2, x0) → 493_0_main_Load(EOS(STATIC_493), x0, x1, +(x2, 1), x0) | &&(&&(>(+(x2, 1), 0), <=(x2, x0)), >(x1, x0))
493_0_main_Load(EOS(STATIC_493), x0, x1, x2, x0) → 493_0_main_Load(EOS(STATIC_493), +(x0, 1), x1, x2, +(x0, 1)) | &&(&&(>(x2, x0), >(x1, x0)), >(+(x0, 1), 0))
R rules:
Filtered ground terms:
493_0_main_Load(x1, x2, x3, x4, x5) → 493_0_main_Load(x2, x3, x4, x5)
EOS(x1) → EOS
Cond_493_0_main_Load1(x1, x2, x3, x4, x5, x6) → Cond_493_0_main_Load1(x1, x3, x4, x5, x6)
Cond_493_0_main_Load(x1, x2, x3, x4, x5, x6) → Cond_493_0_main_Load(x1, x3, x4, x5, x6)
Filtered duplicate args:
493_0_main_Load(x1, x2, x3, x4) → 493_0_main_Load(x2, x3, x4)
Cond_493_0_main_Load(x1, x2, x3, x4, x5) → Cond_493_0_main_Load(x1, x3, x4, x5)
Cond_493_0_main_Load1(x1, x2, x3, x4, x5) → Cond_493_0_main_Load1(x1, x3, x4, x5)
Combined rules. Obtained 2 conditional rules for P and 0 conditional rules for R.
P rules:
493_0_main_Load(x1, x2, x0) → 493_0_main_Load(x1, +(x2, 1), x0) | &&(&&(>(x2, -1), <=(x2, x0)), >(x1, x0))
493_0_main_Load(x1, x2, x0) → 493_0_main_Load(x1, x2, +(x0, 1)) | &&(&&(>(x2, x0), >(x1, x0)), >(x0, -1))
R rules:
Finished conversion. Obtained 4 rules for P and 0 rules for R. System has predefined symbols.
P rules:
493_0_MAIN_LOAD(x1, x2, x0) → COND_493_0_MAIN_LOAD(&&(&&(>(x2, -1), <=(x2, x0)), >(x1, x0)), x1, x2, x0)
COND_493_0_MAIN_LOAD(TRUE, x1, x2, x0) → 493_0_MAIN_LOAD(x1, +(x2, 1), x0)
493_0_MAIN_LOAD(x1, x2, x0) → COND_493_0_MAIN_LOAD1(&&(&&(>(x2, x0), >(x1, x0)), >(x0, -1)), x1, x2, x0)
COND_493_0_MAIN_LOAD1(TRUE, x1, x2, x0) → 493_0_MAIN_LOAD(x1, x2, +(x0, 1))
R rules:
!= | ~ | 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 |
Boolean, Integer
(0) -> (1), if (x2[0] > -1 && x2[0] <= x0[0] && x1[0] > x0[0] ∧x1[0] →* x1[1]∧x2[0] →* x2[1]∧x0[0] →* x0[1])
(1) -> (0), if (x1[1] →* x1[0]∧x2[1] + 1 →* x2[0]∧x0[1] →* x0[0])
(1) -> (2), if (x1[1] →* x1[2]∧x2[1] + 1 →* x2[2]∧x0[1] →* x0[2])
(2) -> (3), if (x2[2] > x0[2] && x1[2] > x0[2] && x0[2] > -1 ∧x1[2] →* x1[3]∧x2[2] →* x2[3]∧x0[2] →* x0[3])
(3) -> (0), if (x1[3] →* x1[0]∧x2[3] →* x2[0]∧x0[3] + 1 →* x0[0])
(3) -> (2), if (x1[3] →* x1[2]∧x2[3] →* x2[2]∧x0[3] + 1 →* x0[2])
(1) (&&(&&(>(x2[0], -1), <=(x2[0], x0[0])), >(x1[0], x0[0]))=TRUE∧x1[0]=x1[1]∧x2[0]=x2[1]∧x0[0]=x0[1] ⇒ 493_0_MAIN_LOAD(x1[0], x2[0], x0[0])≥NonInfC∧493_0_MAIN_LOAD(x1[0], x2[0], x0[0])≥COND_493_0_MAIN_LOAD(&&(&&(>(x2[0], -1), <=(x2[0], x0[0])), >(x1[0], x0[0])), x1[0], x2[0], x0[0])∧(UIncreasing(COND_493_0_MAIN_LOAD(&&(&&(>(x2[0], -1), <=(x2[0], x0[0])), >(x1[0], x0[0])), x1[0], x2[0], x0[0])), ≥))
(2) (>(x1[0], x0[0])=TRUE∧>(x2[0], -1)=TRUE∧<=(x2[0], x0[0])=TRUE ⇒ 493_0_MAIN_LOAD(x1[0], x2[0], x0[0])≥NonInfC∧493_0_MAIN_LOAD(x1[0], x2[0], x0[0])≥COND_493_0_MAIN_LOAD(&&(&&(>(x2[0], -1), <=(x2[0], x0[0])), >(x1[0], x0[0])), x1[0], x2[0], x0[0])∧(UIncreasing(COND_493_0_MAIN_LOAD(&&(&&(>(x2[0], -1), <=(x2[0], x0[0])), >(x1[0], x0[0])), x1[0], x2[0], x0[0])), ≥))
(3) (x1[0] + [-1] + [-1]x0[0] ≥ 0∧x2[0] ≥ 0∧x0[0] + [-1]x2[0] ≥ 0 ⇒ (UIncreasing(COND_493_0_MAIN_LOAD(&&(&&(>(x2[0], -1), <=(x2[0], x0[0])), >(x1[0], x0[0])), x1[0], x2[0], x0[0])), ≥)∧[(-1)bni_20 + (-1)Bound*bni_20] + [(-1)bni_20]x0[0] + [bni_20]x1[0] ≥ 0∧[(-1)bso_21] ≥ 0)
(4) (x1[0] + [-1] + [-1]x0[0] ≥ 0∧x2[0] ≥ 0∧x0[0] + [-1]x2[0] ≥ 0 ⇒ (UIncreasing(COND_493_0_MAIN_LOAD(&&(&&(>(x2[0], -1), <=(x2[0], x0[0])), >(x1[0], x0[0])), x1[0], x2[0], x0[0])), ≥)∧[(-1)bni_20 + (-1)Bound*bni_20] + [(-1)bni_20]x0[0] + [bni_20]x1[0] ≥ 0∧[(-1)bso_21] ≥ 0)
(5) (x1[0] + [-1] + [-1]x0[0] ≥ 0∧x2[0] ≥ 0∧x0[0] + [-1]x2[0] ≥ 0 ⇒ (UIncreasing(COND_493_0_MAIN_LOAD(&&(&&(>(x2[0], -1), <=(x2[0], x0[0])), >(x1[0], x0[0])), x1[0], x2[0], x0[0])), ≥)∧[(-1)bni_20 + (-1)Bound*bni_20] + [(-1)bni_20]x0[0] + [bni_20]x1[0] ≥ 0∧[(-1)bso_21] ≥ 0)
(6) (x1[0] ≥ 0∧x2[0] ≥ 0∧x0[0] + [-1]x2[0] ≥ 0 ⇒ (UIncreasing(COND_493_0_MAIN_LOAD(&&(&&(>(x2[0], -1), <=(x2[0], x0[0])), >(x1[0], x0[0])), x1[0], x2[0], x0[0])), ≥)∧[(-1)Bound*bni_20] + [bni_20]x1[0] ≥ 0∧[(-1)bso_21] ≥ 0)
(7) (x1[0] ≥ 0∧x2[0] ≥ 0∧x0[0] ≥ 0 ⇒ (UIncreasing(COND_493_0_MAIN_LOAD(&&(&&(>(x2[0], -1), <=(x2[0], x0[0])), >(x1[0], x0[0])), x1[0], x2[0], x0[0])), ≥)∧[(-1)Bound*bni_20] + [bni_20]x1[0] ≥ 0∧[(-1)bso_21] ≥ 0)
(8) (&&(&&(>(x2[0], -1), <=(x2[0], x0[0])), >(x1[0], x0[0]))=TRUE∧x1[0]=x1[1]∧x2[0]=x2[1]∧x0[0]=x0[1]∧x1[1]=x1[0]1∧+(x2[1], 1)=x2[0]1∧x0[1]=x0[0]1 ⇒ COND_493_0_MAIN_LOAD(TRUE, x1[1], x2[1], x0[1])≥NonInfC∧COND_493_0_MAIN_LOAD(TRUE, x1[1], x2[1], x0[1])≥493_0_MAIN_LOAD(x1[1], +(x2[1], 1), x0[1])∧(UIncreasing(493_0_MAIN_LOAD(x1[1], +(x2[1], 1), x0[1])), ≥))
(9) (>(x1[0], x0[0])=TRUE∧>(x2[0], -1)=TRUE∧<=(x2[0], x0[0])=TRUE ⇒ COND_493_0_MAIN_LOAD(TRUE, x1[0], x2[0], x0[0])≥NonInfC∧COND_493_0_MAIN_LOAD(TRUE, x1[0], x2[0], x0[0])≥493_0_MAIN_LOAD(x1[0], +(x2[0], 1), x0[0])∧(UIncreasing(493_0_MAIN_LOAD(x1[1], +(x2[1], 1), x0[1])), ≥))
(10) (x1[0] + [-1] + [-1]x0[0] ≥ 0∧x2[0] ≥ 0∧x0[0] + [-1]x2[0] ≥ 0 ⇒ (UIncreasing(493_0_MAIN_LOAD(x1[1], +(x2[1], 1), x0[1])), ≥)∧[(-1)bni_22 + (-1)Bound*bni_22] + [(-1)bni_22]x0[0] + [bni_22]x1[0] ≥ 0∧[(-1)bso_23] ≥ 0)
(11) (x1[0] + [-1] + [-1]x0[0] ≥ 0∧x2[0] ≥ 0∧x0[0] + [-1]x2[0] ≥ 0 ⇒ (UIncreasing(493_0_MAIN_LOAD(x1[1], +(x2[1], 1), x0[1])), ≥)∧[(-1)bni_22 + (-1)Bound*bni_22] + [(-1)bni_22]x0[0] + [bni_22]x1[0] ≥ 0∧[(-1)bso_23] ≥ 0)
(12) (x1[0] + [-1] + [-1]x0[0] ≥ 0∧x2[0] ≥ 0∧x0[0] + [-1]x2[0] ≥ 0 ⇒ (UIncreasing(493_0_MAIN_LOAD(x1[1], +(x2[1], 1), x0[1])), ≥)∧[(-1)bni_22 + (-1)Bound*bni_22] + [(-1)bni_22]x0[0] + [bni_22]x1[0] ≥ 0∧[(-1)bso_23] ≥ 0)
(13) (x1[0] ≥ 0∧x2[0] ≥ 0∧x0[0] + [-1]x2[0] ≥ 0 ⇒ (UIncreasing(493_0_MAIN_LOAD(x1[1], +(x2[1], 1), x0[1])), ≥)∧[(-1)Bound*bni_22] + [bni_22]x1[0] ≥ 0∧[(-1)bso_23] ≥ 0)
(14) (x1[0] ≥ 0∧x2[0] ≥ 0∧x0[0] ≥ 0 ⇒ (UIncreasing(493_0_MAIN_LOAD(x1[1], +(x2[1], 1), x0[1])), ≥)∧[(-1)Bound*bni_22] + [bni_22]x1[0] ≥ 0∧[(-1)bso_23] ≥ 0)
(15) (&&(&&(>(x2[0], -1), <=(x2[0], x0[0])), >(x1[0], x0[0]))=TRUE∧x1[0]=x1[1]∧x2[0]=x2[1]∧x0[0]=x0[1]∧x1[1]=x1[2]∧+(x2[1], 1)=x2[2]∧x0[1]=x0[2] ⇒ COND_493_0_MAIN_LOAD(TRUE, x1[1], x2[1], x0[1])≥NonInfC∧COND_493_0_MAIN_LOAD(TRUE, x1[1], x2[1], x0[1])≥493_0_MAIN_LOAD(x1[1], +(x2[1], 1), x0[1])∧(UIncreasing(493_0_MAIN_LOAD(x1[1], +(x2[1], 1), x0[1])), ≥))
(16) (>(x1[0], x0[0])=TRUE∧>(x2[0], -1)=TRUE∧<=(x2[0], x0[0])=TRUE ⇒ COND_493_0_MAIN_LOAD(TRUE, x1[0], x2[0], x0[0])≥NonInfC∧COND_493_0_MAIN_LOAD(TRUE, x1[0], x2[0], x0[0])≥493_0_MAIN_LOAD(x1[0], +(x2[0], 1), x0[0])∧(UIncreasing(493_0_MAIN_LOAD(x1[1], +(x2[1], 1), x0[1])), ≥))
(17) (x1[0] + [-1] + [-1]x0[0] ≥ 0∧x2[0] ≥ 0∧x0[0] + [-1]x2[0] ≥ 0 ⇒ (UIncreasing(493_0_MAIN_LOAD(x1[1], +(x2[1], 1), x0[1])), ≥)∧[(-1)bni_22 + (-1)Bound*bni_22] + [(-1)bni_22]x0[0] + [bni_22]x1[0] ≥ 0∧[(-1)bso_23] ≥ 0)
(18) (x1[0] + [-1] + [-1]x0[0] ≥ 0∧x2[0] ≥ 0∧x0[0] + [-1]x2[0] ≥ 0 ⇒ (UIncreasing(493_0_MAIN_LOAD(x1[1], +(x2[1], 1), x0[1])), ≥)∧[(-1)bni_22 + (-1)Bound*bni_22] + [(-1)bni_22]x0[0] + [bni_22]x1[0] ≥ 0∧[(-1)bso_23] ≥ 0)
(19) (x1[0] + [-1] + [-1]x0[0] ≥ 0∧x2[0] ≥ 0∧x0[0] + [-1]x2[0] ≥ 0 ⇒ (UIncreasing(493_0_MAIN_LOAD(x1[1], +(x2[1], 1), x0[1])), ≥)∧[(-1)bni_22 + (-1)Bound*bni_22] + [(-1)bni_22]x0[0] + [bni_22]x1[0] ≥ 0∧[(-1)bso_23] ≥ 0)
(20) (x1[0] ≥ 0∧x2[0] ≥ 0∧x0[0] + [-1]x2[0] ≥ 0 ⇒ (UIncreasing(493_0_MAIN_LOAD(x1[1], +(x2[1], 1), x0[1])), ≥)∧[(-1)Bound*bni_22] + [bni_22]x1[0] ≥ 0∧[(-1)bso_23] ≥ 0)
(21) (x1[0] ≥ 0∧x2[0] ≥ 0∧x0[0] ≥ 0 ⇒ (UIncreasing(493_0_MAIN_LOAD(x1[1], +(x2[1], 1), x0[1])), ≥)∧[(-1)Bound*bni_22] + [bni_22]x1[0] ≥ 0∧[(-1)bso_23] ≥ 0)
(22) (&&(&&(>(x2[2], x0[2]), >(x1[2], x0[2])), >(x0[2], -1))=TRUE∧x1[2]=x1[3]∧x2[2]=x2[3]∧x0[2]=x0[3] ⇒ 493_0_MAIN_LOAD(x1[2], x2[2], x0[2])≥NonInfC∧493_0_MAIN_LOAD(x1[2], x2[2], x0[2])≥COND_493_0_MAIN_LOAD1(&&(&&(>(x2[2], x0[2]), >(x1[2], x0[2])), >(x0[2], -1)), x1[2], x2[2], x0[2])∧(UIncreasing(COND_493_0_MAIN_LOAD1(&&(&&(>(x2[2], x0[2]), >(x1[2], x0[2])), >(x0[2], -1)), x1[2], x2[2], x0[2])), ≥))
(23) (>(x0[2], -1)=TRUE∧>(x2[2], x0[2])=TRUE∧>(x1[2], x0[2])=TRUE ⇒ 493_0_MAIN_LOAD(x1[2], x2[2], x0[2])≥NonInfC∧493_0_MAIN_LOAD(x1[2], x2[2], x0[2])≥COND_493_0_MAIN_LOAD1(&&(&&(>(x2[2], x0[2]), >(x1[2], x0[2])), >(x0[2], -1)), x1[2], x2[2], x0[2])∧(UIncreasing(COND_493_0_MAIN_LOAD1(&&(&&(>(x2[2], x0[2]), >(x1[2], x0[2])), >(x0[2], -1)), x1[2], x2[2], x0[2])), ≥))
(24) (x0[2] ≥ 0∧x2[2] + [-1] + [-1]x0[2] ≥ 0∧x1[2] + [-1] + [-1]x0[2] ≥ 0 ⇒ (UIncreasing(COND_493_0_MAIN_LOAD1(&&(&&(>(x2[2], x0[2]), >(x1[2], x0[2])), >(x0[2], -1)), x1[2], x2[2], x0[2])), ≥)∧[(-1)bni_24 + (-1)Bound*bni_24] + [(-1)bni_24]x0[2] + [bni_24]x1[2] ≥ 0∧[(-1)bso_25] ≥ 0)
(25) (x0[2] ≥ 0∧x2[2] + [-1] + [-1]x0[2] ≥ 0∧x1[2] + [-1] + [-1]x0[2] ≥ 0 ⇒ (UIncreasing(COND_493_0_MAIN_LOAD1(&&(&&(>(x2[2], x0[2]), >(x1[2], x0[2])), >(x0[2], -1)), x1[2], x2[2], x0[2])), ≥)∧[(-1)bni_24 + (-1)Bound*bni_24] + [(-1)bni_24]x0[2] + [bni_24]x1[2] ≥ 0∧[(-1)bso_25] ≥ 0)
(26) (x0[2] ≥ 0∧x2[2] + [-1] + [-1]x0[2] ≥ 0∧x1[2] + [-1] + [-1]x0[2] ≥ 0 ⇒ (UIncreasing(COND_493_0_MAIN_LOAD1(&&(&&(>(x2[2], x0[2]), >(x1[2], x0[2])), >(x0[2], -1)), x1[2], x2[2], x0[2])), ≥)∧[(-1)bni_24 + (-1)Bound*bni_24] + [(-1)bni_24]x0[2] + [bni_24]x1[2] ≥ 0∧[(-1)bso_25] ≥ 0)
(27) (x0[2] ≥ 0∧x2[2] ≥ 0∧x1[2] + [-1] + [-1]x0[2] ≥ 0 ⇒ (UIncreasing(COND_493_0_MAIN_LOAD1(&&(&&(>(x2[2], x0[2]), >(x1[2], x0[2])), >(x0[2], -1)), x1[2], x2[2], x0[2])), ≥)∧[(-1)bni_24 + (-1)Bound*bni_24] + [(-1)bni_24]x0[2] + [bni_24]x1[2] ≥ 0∧[(-1)bso_25] ≥ 0)
(28) (x0[2] ≥ 0∧x2[2] ≥ 0∧x1[2] ≥ 0 ⇒ (UIncreasing(COND_493_0_MAIN_LOAD1(&&(&&(>(x2[2], x0[2]), >(x1[2], x0[2])), >(x0[2], -1)), x1[2], x2[2], x0[2])), ≥)∧[(-1)Bound*bni_24] + [bni_24]x1[2] ≥ 0∧[(-1)bso_25] ≥ 0)
(29) (&&(&&(>(x2[2], x0[2]), >(x1[2], x0[2])), >(x0[2], -1))=TRUE∧x1[2]=x1[3]∧x2[2]=x2[3]∧x0[2]=x0[3]∧x1[3]=x1[0]∧x2[3]=x2[0]∧+(x0[3], 1)=x0[0] ⇒ COND_493_0_MAIN_LOAD1(TRUE, x1[3], x2[3], x0[3])≥NonInfC∧COND_493_0_MAIN_LOAD1(TRUE, x1[3], x2[3], x0[3])≥493_0_MAIN_LOAD(x1[3], x2[3], +(x0[3], 1))∧(UIncreasing(493_0_MAIN_LOAD(x1[3], x2[3], +(x0[3], 1))), ≥))
(30) (>(x0[2], -1)=TRUE∧>(x2[2], x0[2])=TRUE∧>(x1[2], x0[2])=TRUE ⇒ COND_493_0_MAIN_LOAD1(TRUE, x1[2], x2[2], x0[2])≥NonInfC∧COND_493_0_MAIN_LOAD1(TRUE, x1[2], x2[2], x0[2])≥493_0_MAIN_LOAD(x1[2], x2[2], +(x0[2], 1))∧(UIncreasing(493_0_MAIN_LOAD(x1[3], x2[3], +(x0[3], 1))), ≥))
(31) (x0[2] ≥ 0∧x2[2] + [-1] + [-1]x0[2] ≥ 0∧x1[2] + [-1] + [-1]x0[2] ≥ 0 ⇒ (UIncreasing(493_0_MAIN_LOAD(x1[3], x2[3], +(x0[3], 1))), ≥)∧[(-1)bni_26 + (-1)Bound*bni_26] + [(-1)bni_26]x0[2] + [bni_26]x1[2] ≥ 0∧[1 + (-1)bso_27] ≥ 0)
(32) (x0[2] ≥ 0∧x2[2] + [-1] + [-1]x0[2] ≥ 0∧x1[2] + [-1] + [-1]x0[2] ≥ 0 ⇒ (UIncreasing(493_0_MAIN_LOAD(x1[3], x2[3], +(x0[3], 1))), ≥)∧[(-1)bni_26 + (-1)Bound*bni_26] + [(-1)bni_26]x0[2] + [bni_26]x1[2] ≥ 0∧[1 + (-1)bso_27] ≥ 0)
(33) (x0[2] ≥ 0∧x2[2] + [-1] + [-1]x0[2] ≥ 0∧x1[2] + [-1] + [-1]x0[2] ≥ 0 ⇒ (UIncreasing(493_0_MAIN_LOAD(x1[3], x2[3], +(x0[3], 1))), ≥)∧[(-1)bni_26 + (-1)Bound*bni_26] + [(-1)bni_26]x0[2] + [bni_26]x1[2] ≥ 0∧[1 + (-1)bso_27] ≥ 0)
(34) (x0[2] ≥ 0∧x2[2] ≥ 0∧x1[2] + [-1] + [-1]x0[2] ≥ 0 ⇒ (UIncreasing(493_0_MAIN_LOAD(x1[3], x2[3], +(x0[3], 1))), ≥)∧[(-1)bni_26 + (-1)Bound*bni_26] + [(-1)bni_26]x0[2] + [bni_26]x1[2] ≥ 0∧[1 + (-1)bso_27] ≥ 0)
(35) (x0[2] ≥ 0∧x2[2] ≥ 0∧x1[2] ≥ 0 ⇒ (UIncreasing(493_0_MAIN_LOAD(x1[3], x2[3], +(x0[3], 1))), ≥)∧[(-1)Bound*bni_26] + [bni_26]x1[2] ≥ 0∧[1 + (-1)bso_27] ≥ 0)
(36) (&&(&&(>(x2[2], x0[2]), >(x1[2], x0[2])), >(x0[2], -1))=TRUE∧x1[2]=x1[3]∧x2[2]=x2[3]∧x0[2]=x0[3]∧x1[3]=x1[2]1∧x2[3]=x2[2]1∧+(x0[3], 1)=x0[2]1 ⇒ COND_493_0_MAIN_LOAD1(TRUE, x1[3], x2[3], x0[3])≥NonInfC∧COND_493_0_MAIN_LOAD1(TRUE, x1[3], x2[3], x0[3])≥493_0_MAIN_LOAD(x1[3], x2[3], +(x0[3], 1))∧(UIncreasing(493_0_MAIN_LOAD(x1[3], x2[3], +(x0[3], 1))), ≥))
(37) (>(x0[2], -1)=TRUE∧>(x2[2], x0[2])=TRUE∧>(x1[2], x0[2])=TRUE ⇒ COND_493_0_MAIN_LOAD1(TRUE, x1[2], x2[2], x0[2])≥NonInfC∧COND_493_0_MAIN_LOAD1(TRUE, x1[2], x2[2], x0[2])≥493_0_MAIN_LOAD(x1[2], x2[2], +(x0[2], 1))∧(UIncreasing(493_0_MAIN_LOAD(x1[3], x2[3], +(x0[3], 1))), ≥))
(38) (x0[2] ≥ 0∧x2[2] + [-1] + [-1]x0[2] ≥ 0∧x1[2] + [-1] + [-1]x0[2] ≥ 0 ⇒ (UIncreasing(493_0_MAIN_LOAD(x1[3], x2[3], +(x0[3], 1))), ≥)∧[(-1)bni_26 + (-1)Bound*bni_26] + [(-1)bni_26]x0[2] + [bni_26]x1[2] ≥ 0∧[1 + (-1)bso_27] ≥ 0)
(39) (x0[2] ≥ 0∧x2[2] + [-1] + [-1]x0[2] ≥ 0∧x1[2] + [-1] + [-1]x0[2] ≥ 0 ⇒ (UIncreasing(493_0_MAIN_LOAD(x1[3], x2[3], +(x0[3], 1))), ≥)∧[(-1)bni_26 + (-1)Bound*bni_26] + [(-1)bni_26]x0[2] + [bni_26]x1[2] ≥ 0∧[1 + (-1)bso_27] ≥ 0)
(40) (x0[2] ≥ 0∧x2[2] + [-1] + [-1]x0[2] ≥ 0∧x1[2] + [-1] + [-1]x0[2] ≥ 0 ⇒ (UIncreasing(493_0_MAIN_LOAD(x1[3], x2[3], +(x0[3], 1))), ≥)∧[(-1)bni_26 + (-1)Bound*bni_26] + [(-1)bni_26]x0[2] + [bni_26]x1[2] ≥ 0∧[1 + (-1)bso_27] ≥ 0)
(41) (x0[2] ≥ 0∧x2[2] ≥ 0∧x1[2] + [-1] + [-1]x0[2] ≥ 0 ⇒ (UIncreasing(493_0_MAIN_LOAD(x1[3], x2[3], +(x0[3], 1))), ≥)∧[(-1)bni_26 + (-1)Bound*bni_26] + [(-1)bni_26]x0[2] + [bni_26]x1[2] ≥ 0∧[1 + (-1)bso_27] ≥ 0)
(42) (x0[2] ≥ 0∧x2[2] ≥ 0∧x1[2] ≥ 0 ⇒ (UIncreasing(493_0_MAIN_LOAD(x1[3], x2[3], +(x0[3], 1))), ≥)∧[(-1)Bound*bni_26] + [bni_26]x1[2] ≥ 0∧[1 + (-1)bso_27] ≥ 0)
POL(TRUE) = 0
POL(FALSE) = [3]
POL(493_0_MAIN_LOAD(x1, x2, x3)) = [-1] + [-1]x3 + x1
POL(COND_493_0_MAIN_LOAD(x1, x2, x3, x4)) = [-1] + [-1]x4 + x2 + [-1]x1
POL(&&(x1, x2)) = 0
POL(>(x1, x2)) = [-1]
POL(-1) = [-1]
POL(<=(x1, x2)) = [-1]
POL(+(x1, x2)) = x1 + x2
POL(1) = [1]
POL(COND_493_0_MAIN_LOAD1(x1, x2, x3, x4)) = [-1] + [-1]x4 + x2 + [-1]x1
COND_493_0_MAIN_LOAD1(TRUE, x1[3], x2[3], x0[3]) → 493_0_MAIN_LOAD(x1[3], x2[3], +(x0[3], 1))
493_0_MAIN_LOAD(x1[0], x2[0], x0[0]) → COND_493_0_MAIN_LOAD(&&(&&(>(x2[0], -1), <=(x2[0], x0[0])), >(x1[0], x0[0])), x1[0], x2[0], x0[0])
COND_493_0_MAIN_LOAD(TRUE, x1[1], x2[1], x0[1]) → 493_0_MAIN_LOAD(x1[1], +(x2[1], 1), x0[1])
493_0_MAIN_LOAD(x1[2], x2[2], x0[2]) → COND_493_0_MAIN_LOAD1(&&(&&(>(x2[2], x0[2]), >(x1[2], x0[2])), >(x0[2], -1)), x1[2], x2[2], x0[2])
COND_493_0_MAIN_LOAD1(TRUE, x1[3], x2[3], x0[3]) → 493_0_MAIN_LOAD(x1[3], x2[3], +(x0[3], 1))
493_0_MAIN_LOAD(x1[0], x2[0], x0[0]) → COND_493_0_MAIN_LOAD(&&(&&(>(x2[0], -1), <=(x2[0], x0[0])), >(x1[0], x0[0])), x1[0], x2[0], x0[0])
COND_493_0_MAIN_LOAD(TRUE, x1[1], x2[1], x0[1]) → 493_0_MAIN_LOAD(x1[1], +(x2[1], 1), x0[1])
493_0_MAIN_LOAD(x1[2], x2[2], x0[2]) → COND_493_0_MAIN_LOAD1(&&(&&(>(x2[2], x0[2]), >(x1[2], x0[2])), >(x0[2], -1)), x1[2], x2[2], x0[2])
TRUE1 → &&(TRUE, TRUE)1
FALSE1 → &&(TRUE, FALSE)1
FALSE1 → &&(FALSE, TRUE)1
FALSE1 → &&(FALSE, FALSE)1
!= | ~ | 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 |
Boolean, Integer
(1) -> (0), if (x1[1] →* x1[0]∧x2[1] + 1 →* x2[0]∧x0[1] →* x0[0])
(0) -> (1), if (x2[0] > -1 && x2[0] <= x0[0] && x1[0] > x0[0] ∧x1[0] →* x1[1]∧x2[0] →* x2[1]∧x0[0] →* x0[1])
(1) -> (2), if (x1[1] →* x1[2]∧x2[1] + 1 →* x2[2]∧x0[1] →* x0[2])
!= | ~ | 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, Boolean
(1) -> (0), if (x1[1] →* x1[0]∧x2[1] + 1 →* x2[0]∧x0[1] →* x0[0])
(0) -> (1), if (x2[0] > -1 && x2[0] <= x0[0] && x1[0] > x0[0] ∧x1[0] →* x1[1]∧x2[0] →* x2[1]∧x0[0] →* x0[1])
(1) (&&(&&(>(x2[0], -1), <=(x2[0], x0[0])), >(x1[0], x0[0]))=TRUE∧x1[0]=x1[1]∧x2[0]=x2[1]∧x0[0]=x0[1]∧x1[1]=x1[0]1∧+(x2[1], 1)=x2[0]1∧x0[1]=x0[0]1 ⇒ COND_493_0_MAIN_LOAD(TRUE, x1[1], x2[1], x0[1])≥NonInfC∧COND_493_0_MAIN_LOAD(TRUE, x1[1], x2[1], x0[1])≥493_0_MAIN_LOAD(x1[1], +(x2[1], 1), x0[1])∧(UIncreasing(493_0_MAIN_LOAD(x1[1], +(x2[1], 1), x0[1])), ≥))
(2) (>(x1[0], x0[0])=TRUE∧>(x2[0], -1)=TRUE∧<=(x2[0], x0[0])=TRUE ⇒ COND_493_0_MAIN_LOAD(TRUE, x1[0], x2[0], x0[0])≥NonInfC∧COND_493_0_MAIN_LOAD(TRUE, x1[0], x2[0], x0[0])≥493_0_MAIN_LOAD(x1[0], +(x2[0], 1), x0[0])∧(UIncreasing(493_0_MAIN_LOAD(x1[1], +(x2[1], 1), x0[1])), ≥))
(3) (x1[0] + [-1] + [-1]x0[0] ≥ 0∧x2[0] ≥ 0∧x0[0] + [-1]x2[0] ≥ 0 ⇒ (UIncreasing(493_0_MAIN_LOAD(x1[1], +(x2[1], 1), x0[1])), ≥)∧[(-2)bni_15 + (-1)Bound*bni_15] + [bni_15]x0[0] + [(-1)bni_15]x2[0] ≥ 0∧[(-1)bso_16] ≥ 0)
(4) (x1[0] + [-1] + [-1]x0[0] ≥ 0∧x2[0] ≥ 0∧x0[0] + [-1]x2[0] ≥ 0 ⇒ (UIncreasing(493_0_MAIN_LOAD(x1[1], +(x2[1], 1), x0[1])), ≥)∧[(-2)bni_15 + (-1)Bound*bni_15] + [bni_15]x0[0] + [(-1)bni_15]x2[0] ≥ 0∧[(-1)bso_16] ≥ 0)
(5) (x1[0] + [-1] + [-1]x0[0] ≥ 0∧x2[0] ≥ 0∧x0[0] + [-1]x2[0] ≥ 0 ⇒ (UIncreasing(493_0_MAIN_LOAD(x1[1], +(x2[1], 1), x0[1])), ≥)∧[(-2)bni_15 + (-1)Bound*bni_15] + [bni_15]x0[0] + [(-1)bni_15]x2[0] ≥ 0∧[(-1)bso_16] ≥ 0)
(6) (x1[0] ≥ 0∧x2[0] ≥ 0∧x0[0] + [-1]x2[0] ≥ 0 ⇒ (UIncreasing(493_0_MAIN_LOAD(x1[1], +(x2[1], 1), x0[1])), ≥)∧[(-2)bni_15 + (-1)Bound*bni_15] + [bni_15]x0[0] + [(-1)bni_15]x2[0] ≥ 0∧[(-1)bso_16] ≥ 0)
(7) (x1[0] ≥ 0∧x2[0] ≥ 0∧x0[0] ≥ 0 ⇒ (UIncreasing(493_0_MAIN_LOAD(x1[1], +(x2[1], 1), x0[1])), ≥)∧[(-2)bni_15 + (-1)Bound*bni_15] + [bni_15]x0[0] ≥ 0∧[(-1)bso_16] ≥ 0)
(8) (&&(&&(>(x2[0], -1), <=(x2[0], x0[0])), >(x1[0], x0[0]))=TRUE∧x1[0]=x1[1]∧x2[0]=x2[1]∧x0[0]=x0[1] ⇒ 493_0_MAIN_LOAD(x1[0], x2[0], x0[0])≥NonInfC∧493_0_MAIN_LOAD(x1[0], x2[0], x0[0])≥COND_493_0_MAIN_LOAD(&&(&&(>(x2[0], -1), <=(x2[0], x0[0])), >(x1[0], x0[0])), x1[0], x2[0], x0[0])∧(UIncreasing(COND_493_0_MAIN_LOAD(&&(&&(>(x2[0], -1), <=(x2[0], x0[0])), >(x1[0], x0[0])), x1[0], x2[0], x0[0])), ≥))
(9) (>(x1[0], x0[0])=TRUE∧>(x2[0], -1)=TRUE∧<=(x2[0], x0[0])=TRUE ⇒ 493_0_MAIN_LOAD(x1[0], x2[0], x0[0])≥NonInfC∧493_0_MAIN_LOAD(x1[0], x2[0], x0[0])≥COND_493_0_MAIN_LOAD(&&(&&(>(x2[0], -1), <=(x2[0], x0[0])), >(x1[0], x0[0])), x1[0], x2[0], x0[0])∧(UIncreasing(COND_493_0_MAIN_LOAD(&&(&&(>(x2[0], -1), <=(x2[0], x0[0])), >(x1[0], x0[0])), x1[0], x2[0], x0[0])), ≥))
(10) (x1[0] + [-1] + [-1]x0[0] ≥ 0∧x2[0] ≥ 0∧x0[0] + [-1]x2[0] ≥ 0 ⇒ (UIncreasing(COND_493_0_MAIN_LOAD(&&(&&(>(x2[0], -1), <=(x2[0], x0[0])), >(x1[0], x0[0])), x1[0], x2[0], x0[0])), ≥)∧[(-1)bni_17 + (-1)Bound*bni_17] + [bni_17]x0[0] + [(-1)bni_17]x2[0] ≥ 0∧[1 + (-1)bso_18] ≥ 0)
(11) (x1[0] + [-1] + [-1]x0[0] ≥ 0∧x2[0] ≥ 0∧x0[0] + [-1]x2[0] ≥ 0 ⇒ (UIncreasing(COND_493_0_MAIN_LOAD(&&(&&(>(x2[0], -1), <=(x2[0], x0[0])), >(x1[0], x0[0])), x1[0], x2[0], x0[0])), ≥)∧[(-1)bni_17 + (-1)Bound*bni_17] + [bni_17]x0[0] + [(-1)bni_17]x2[0] ≥ 0∧[1 + (-1)bso_18] ≥ 0)
(12) (x1[0] + [-1] + [-1]x0[0] ≥ 0∧x2[0] ≥ 0∧x0[0] + [-1]x2[0] ≥ 0 ⇒ (UIncreasing(COND_493_0_MAIN_LOAD(&&(&&(>(x2[0], -1), <=(x2[0], x0[0])), >(x1[0], x0[0])), x1[0], x2[0], x0[0])), ≥)∧[(-1)bni_17 + (-1)Bound*bni_17] + [bni_17]x0[0] + [(-1)bni_17]x2[0] ≥ 0∧[1 + (-1)bso_18] ≥ 0)
(13) (x1[0] ≥ 0∧x2[0] ≥ 0∧x0[0] + [-1]x2[0] ≥ 0 ⇒ (UIncreasing(COND_493_0_MAIN_LOAD(&&(&&(>(x2[0], -1), <=(x2[0], x0[0])), >(x1[0], x0[0])), x1[0], x2[0], x0[0])), ≥)∧[(-1)bni_17 + (-1)Bound*bni_17] + [bni_17]x0[0] + [(-1)bni_17]x2[0] ≥ 0∧[1 + (-1)bso_18] ≥ 0)
(14) (x1[0] ≥ 0∧x2[0] ≥ 0∧x0[0] ≥ 0 ⇒ (UIncreasing(COND_493_0_MAIN_LOAD(&&(&&(>(x2[0], -1), <=(x2[0], x0[0])), >(x1[0], x0[0])), x1[0], x2[0], x0[0])), ≥)∧[(-1)bni_17 + (-1)Bound*bni_17] + [bni_17]x0[0] ≥ 0∧[1 + (-1)bso_18] ≥ 0)
POL(TRUE) = [1]
POL(FALSE) = [1]
POL(COND_493_0_MAIN_LOAD(x1, x2, x3, x4)) = [-1] + x4 + [-1]x3 + [-1]x1
POL(493_0_MAIN_LOAD(x1, x2, x3)) = [-1] + x3 + [-1]x2
POL(+(x1, x2)) = x1 + x2
POL(1) = [1]
POL(&&(x1, x2)) = [1]
POL(>(x1, x2)) = [-1]
POL(-1) = [-1]
POL(<=(x1, x2)) = [-1]
493_0_MAIN_LOAD(x1[0], x2[0], x0[0]) → COND_493_0_MAIN_LOAD(&&(&&(>(x2[0], -1), <=(x2[0], x0[0])), >(x1[0], x0[0])), x1[0], x2[0], x0[0])
COND_493_0_MAIN_LOAD(TRUE, x1[1], x2[1], x0[1]) → 493_0_MAIN_LOAD(x1[1], +(x2[1], 1), x0[1])
493_0_MAIN_LOAD(x1[0], x2[0], x0[0]) → COND_493_0_MAIN_LOAD(&&(&&(>(x2[0], -1), <=(x2[0], x0[0])), >(x1[0], x0[0])), x1[0], x2[0], x0[0])
COND_493_0_MAIN_LOAD(TRUE, x1[1], x2[1], x0[1]) → 493_0_MAIN_LOAD(x1[1], +(x2[1], 1), x0[1])
&&(TRUE, TRUE)1 ↔ TRUE1
&&(TRUE, FALSE)1 ↔ FALSE1
&&(FALSE, TRUE)1 ↔ FALSE1
&&(FALSE, FALSE)1 ↔ FALSE1
!= | ~ | 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