0 JBC
↳1 JBCToGraph (⇒, 270 ms)
↳2 JBCTerminationGraph
↳3 TerminationGraphToSCCProof (⇒, 0 ms)
↳4 JBCTerminationSCC
↳5 SCCToIDPv1Proof (⇒, 60 ms)
↳6 IDP
↳7 IDPNonInfProof (⇒, 240 ms)
↳8 AND
↳9 IDP
↳10 IDependencyGraphProof (⇔, 0 ms)
↳11 IDP
↳12 IDPNonInfProof (⇒, 170 ms)
↳13 AND
↳14 IDP
↳15 IDependencyGraphProof (⇔, 0 ms)
↳16 TRUE
↳17 IDP
↳18 IDependencyGraphProof (⇔, 0 ms)
↳19 TRUE
↳20 IDP
↳21 IDependencyGraphProof (⇔, 0 ms)
↳22 IDP
↳23 IDPNonInfProof (⇒, 170 ms)
↳24 IDP
↳25 IDependencyGraphProof (⇔, 0 ms)
↳26 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 PastaB17 {
public static void main(String[] args) {
Random.args = args;
int x = Random.random();
int y = Random.random();
int z = Random.random();
while (x > z) {
while (y > z) {
y--;
}
x--;
}
}
}
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:
889_0_main_Load(EOS(STATIC_889), i160, i161, i89, i160) → 891_0_main_LE(EOS(STATIC_891), i160, i161, i89, i160, i89)
891_0_main_LE(EOS(STATIC_891), i160, i161, i89, i160, i89) → 894_0_main_LE(EOS(STATIC_894), i160, i161, i89, i160, i89)
894_0_main_LE(EOS(STATIC_894), i160, i161, i89, i160, i89) → 898_0_main_Load(EOS(STATIC_898), i160, i161, i89) | >(i160, i89)
898_0_main_Load(EOS(STATIC_898), i160, i161, i89) → 901_0_main_Load(EOS(STATIC_901), i160, i161, i89, i161)
901_0_main_Load(EOS(STATIC_901), i160, i161, i89, i161) → 903_0_main_LE(EOS(STATIC_903), i160, i161, i89, i161, i89)
903_0_main_LE(EOS(STATIC_903), i160, i161, i89, i161, i89) → 905_0_main_LE(EOS(STATIC_905), i160, i161, i89, i161, i89)
903_0_main_LE(EOS(STATIC_903), i160, i161, i89, i161, i89) → 907_0_main_LE(EOS(STATIC_907), i160, i161, i89, i161, i89)
905_0_main_LE(EOS(STATIC_905), i160, i161, i89, i161, i89) → 908_0_main_Inc(EOS(STATIC_908), i160, i161, i89) | <=(i161, i89)
908_0_main_Inc(EOS(STATIC_908), i160, i161, i89) → 912_0_main_JMP(EOS(STATIC_912), +(i160, -1), i161, i89)
912_0_main_JMP(EOS(STATIC_912), i165, i161, i89) → 918_0_main_Load(EOS(STATIC_918), i165, i161, i89)
918_0_main_Load(EOS(STATIC_918), i165, i161, i89) → 886_0_main_Load(EOS(STATIC_886), i165, i161, i89)
886_0_main_Load(EOS(STATIC_886), i160, i161, i89) → 889_0_main_Load(EOS(STATIC_889), i160, i161, i89, i160)
907_0_main_LE(EOS(STATIC_907), i160, i161, i89, i161, i89) → 910_0_main_Inc(EOS(STATIC_910), i160, i161, i89) | >(i161, i89)
910_0_main_Inc(EOS(STATIC_910), i160, i161, i89) → 914_0_main_JMP(EOS(STATIC_914), i160, +(i161, -1), i89)
914_0_main_JMP(EOS(STATIC_914), i160, i167, i89) → 921_0_main_Load(EOS(STATIC_921), i160, i167, i89)
921_0_main_Load(EOS(STATIC_921), i160, i167, i89) → 898_0_main_Load(EOS(STATIC_898), i160, i167, i89)
R rules:
Combined rules. Obtained 2 conditional rules for P and 0 conditional rules for R.
P rules:
903_0_main_LE(EOS(STATIC_903), x0, x1, x2, x1, x2) → 903_0_main_LE(EOS(STATIC_903), +(x0, -1), x1, x2, x1, x2) | &&(>=(x2, x1), <(x2, +(x0, -1)))
903_0_main_LE(EOS(STATIC_903), x0, x1, x2, x1, x2) → 903_0_main_LE(EOS(STATIC_903), x0, +(x1, -1), x2, +(x1, -1), x2) | <(x2, x1)
R rules:
Filtered ground terms:
903_0_main_LE(x1, x2, x3, x4, x5, x6) → 903_0_main_LE(x2, x3, x4, x5, x6)
EOS(x1) → EOS
Cond_903_0_main_LE1(x1, x2, x3, x4, x5, x6, x7) → Cond_903_0_main_LE1(x1, x3, x4, x5, x6, x7)
Cond_903_0_main_LE(x1, x2, x3, x4, x5, x6, x7) → Cond_903_0_main_LE(x1, x3, x4, x5, x6, x7)
Filtered duplicate args:
903_0_main_LE(x1, x2, x3, x4, x5) → 903_0_main_LE(x1, x4, x5)
Cond_903_0_main_LE(x1, x2, x3, x4, x5, x6) → Cond_903_0_main_LE(x1, x2, x5, x6)
Cond_903_0_main_LE1(x1, x2, x3, x4, x5, x6) → Cond_903_0_main_LE1(x1, x2, x5, x6)
Combined rules. Obtained 2 conditional rules for P and 0 conditional rules for R.
P rules:
903_0_main_LE(x0, x1, x2) → 903_0_main_LE(+(x0, -1), x1, x2) | &&(>=(x2, x1), <(x2, +(x0, -1)))
903_0_main_LE(x0, x1, x2) → 903_0_main_LE(x0, +(x1, -1), x2) | <(x2, x1)
R rules:
Finished conversion. Obtained 4 rules for P and 0 rules for R. System has predefined symbols.
P rules:
903_0_MAIN_LE(x0, x1, x2) → COND_903_0_MAIN_LE(&&(>=(x2, x1), <(x2, +(x0, -1))), x0, x1, x2)
COND_903_0_MAIN_LE(TRUE, x0, x1, x2) → 903_0_MAIN_LE(+(x0, -1), x1, x2)
903_0_MAIN_LE(x0, x1, x2) → COND_903_0_MAIN_LE1(<(x2, x1), x0, x1, x2)
COND_903_0_MAIN_LE1(TRUE, x0, x1, x2) → 903_0_MAIN_LE(x0, +(x1, -1), x2)
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] >= x1[0] && x2[0] < x0[0] + -1 ∧x0[0] →* x0[1]∧x1[0] →* x1[1]∧x2[0] →* x2[1])
(1) -> (0), if (x0[1] + -1 →* x0[0]∧x1[1] →* x1[0]∧x2[1] →* x2[0])
(1) -> (2), if (x0[1] + -1 →* x0[2]∧x1[1] →* x1[2]∧x2[1] →* x2[2])
(2) -> (3), if (x2[2] < x1[2] ∧x0[2] →* x0[3]∧x1[2] →* x1[3]∧x2[2] →* x2[3])
(3) -> (0), if (x0[3] →* x0[0]∧x1[3] + -1 →* x1[0]∧x2[3] →* x2[0])
(3) -> (2), if (x0[3] →* x0[2]∧x1[3] + -1 →* x1[2]∧x2[3] →* x2[2])
(1) (&&(>=(x2[0], x1[0]), <(x2[0], +(x0[0], -1)))=TRUE∧x0[0]=x0[1]∧x1[0]=x1[1]∧x2[0]=x2[1] ⇒ 903_0_MAIN_LE(x0[0], x1[0], x2[0])≥NonInfC∧903_0_MAIN_LE(x0[0], x1[0], x2[0])≥COND_903_0_MAIN_LE(&&(>=(x2[0], x1[0]), <(x2[0], +(x0[0], -1))), x0[0], x1[0], x2[0])∧(UIncreasing(COND_903_0_MAIN_LE(&&(>=(x2[0], x1[0]), <(x2[0], +(x0[0], -1))), x0[0], x1[0], x2[0])), ≥))
(2) (>=(x2[0], x1[0])=TRUE∧<(x2[0], +(x0[0], -1))=TRUE ⇒ 903_0_MAIN_LE(x0[0], x1[0], x2[0])≥NonInfC∧903_0_MAIN_LE(x0[0], x1[0], x2[0])≥COND_903_0_MAIN_LE(&&(>=(x2[0], x1[0]), <(x2[0], +(x0[0], -1))), x0[0], x1[0], x2[0])∧(UIncreasing(COND_903_0_MAIN_LE(&&(>=(x2[0], x1[0]), <(x2[0], +(x0[0], -1))), x0[0], x1[0], x2[0])), ≥))
(3) (x2[0] + [-1]x1[0] ≥ 0∧x0[0] + [-2] + [-1]x2[0] ≥ 0 ⇒ (UIncreasing(COND_903_0_MAIN_LE(&&(>=(x2[0], x1[0]), <(x2[0], +(x0[0], -1))), x0[0], x1[0], x2[0])), ≥)∧[(-1)bni_12 + (-1)Bound*bni_12] + [(-1)bni_12]x2[0] + [bni_12]x1[0] ≥ 0∧[(-1)bso_13] ≥ 0)
(4) (x2[0] + [-1]x1[0] ≥ 0∧x0[0] + [-2] + [-1]x2[0] ≥ 0 ⇒ (UIncreasing(COND_903_0_MAIN_LE(&&(>=(x2[0], x1[0]), <(x2[0], +(x0[0], -1))), x0[0], x1[0], x2[0])), ≥)∧[(-1)bni_12 + (-1)Bound*bni_12] + [(-1)bni_12]x2[0] + [bni_12]x1[0] ≥ 0∧[(-1)bso_13] ≥ 0)
(5) (x2[0] + [-1]x1[0] ≥ 0∧x0[0] + [-2] + [-1]x2[0] ≥ 0 ⇒ (UIncreasing(COND_903_0_MAIN_LE(&&(>=(x2[0], x1[0]), <(x2[0], +(x0[0], -1))), x0[0], x1[0], x2[0])), ≥)∧[(-1)bni_12 + (-1)Bound*bni_12] + [(-1)bni_12]x2[0] + [bni_12]x1[0] ≥ 0∧[(-1)bso_13] ≥ 0)
(6) (x2[0] ≥ 0∧x0[0] + [-2] + [-1]x1[0] + [-1]x2[0] ≥ 0 ⇒ (UIncreasing(COND_903_0_MAIN_LE(&&(>=(x2[0], x1[0]), <(x2[0], +(x0[0], -1))), x0[0], x1[0], x2[0])), ≥)∧[(-1)bni_12 + (-1)Bound*bni_12] + [(-1)bni_12]x2[0] ≥ 0∧[(-1)bso_13] ≥ 0)
(7) (x2[0] ≥ 0∧x1[0] ≥ 0 ⇒ (UIncreasing(COND_903_0_MAIN_LE(&&(>=(x2[0], x1[0]), <(x2[0], +(x0[0], -1))), x0[0], x1[0], x2[0])), ≥)∧[(-1)bni_12 + (-1)Bound*bni_12] + [(-1)bni_12]x2[0] ≥ 0∧[(-1)bso_13] ≥ 0)
(8) (x2[0] ≥ 0∧x1[0] ≥ 0∧x0[0] ≥ 0 ⇒ (UIncreasing(COND_903_0_MAIN_LE(&&(>=(x2[0], x1[0]), <(x2[0], +(x0[0], -1))), x0[0], x1[0], x2[0])), ≥)∧[(-1)bni_12 + (-1)Bound*bni_12] + [(-1)bni_12]x2[0] ≥ 0∧[(-1)bso_13] ≥ 0)
(9) (x2[0] ≥ 0∧x1[0] ≥ 0∧x0[0] ≥ 0 ⇒ (UIncreasing(COND_903_0_MAIN_LE(&&(>=(x2[0], x1[0]), <(x2[0], +(x0[0], -1))), x0[0], x1[0], x2[0])), ≥)∧[(-1)bni_12 + (-1)Bound*bni_12] + [(-1)bni_12]x2[0] ≥ 0∧[(-1)bso_13] ≥ 0)
(10) (COND_903_0_MAIN_LE(TRUE, x0[1], x1[1], x2[1])≥NonInfC∧COND_903_0_MAIN_LE(TRUE, x0[1], x1[1], x2[1])≥903_0_MAIN_LE(+(x0[1], -1), x1[1], x2[1])∧(UIncreasing(903_0_MAIN_LE(+(x0[1], -1), x1[1], x2[1])), ≥))
(11) ((UIncreasing(903_0_MAIN_LE(+(x0[1], -1), x1[1], x2[1])), ≥)∧[bni_14] = 0∧[(-1)bso_15] ≥ 0)
(12) ((UIncreasing(903_0_MAIN_LE(+(x0[1], -1), x1[1], x2[1])), ≥)∧[bni_14] = 0∧[(-1)bso_15] ≥ 0)
(13) ((UIncreasing(903_0_MAIN_LE(+(x0[1], -1), x1[1], x2[1])), ≥)∧[bni_14] = 0∧[(-1)bso_15] ≥ 0)
(14) ((UIncreasing(903_0_MAIN_LE(+(x0[1], -1), x1[1], x2[1])), ≥)∧[bni_14] = 0∧0 = 0∧0 = 0∧0 = 0∧[(-1)bso_15] ≥ 0)
(15) (<(x2[2], x1[2])=TRUE∧x0[2]=x0[3]∧x1[2]=x1[3]∧x2[2]=x2[3] ⇒ 903_0_MAIN_LE(x0[2], x1[2], x2[2])≥NonInfC∧903_0_MAIN_LE(x0[2], x1[2], x2[2])≥COND_903_0_MAIN_LE1(<(x2[2], x1[2]), x0[2], x1[2], x2[2])∧(UIncreasing(COND_903_0_MAIN_LE1(<(x2[2], x1[2]), x0[2], x1[2], x2[2])), ≥))
(16) (<(x2[2], x1[2])=TRUE ⇒ 903_0_MAIN_LE(x0[2], x1[2], x2[2])≥NonInfC∧903_0_MAIN_LE(x0[2], x1[2], x2[2])≥COND_903_0_MAIN_LE1(<(x2[2], x1[2]), x0[2], x1[2], x2[2])∧(UIncreasing(COND_903_0_MAIN_LE1(<(x2[2], x1[2]), x0[2], x1[2], x2[2])), ≥))
(17) (x1[2] + [-1] + [-1]x2[2] ≥ 0 ⇒ (UIncreasing(COND_903_0_MAIN_LE1(<(x2[2], x1[2]), x0[2], x1[2], x2[2])), ≥)∧[(-1)bni_16 + (-1)Bound*bni_16] + [(-1)bni_16]x2[2] + [bni_16]x1[2] ≥ 0∧[(-1)bso_17] ≥ 0)
(18) (x1[2] + [-1] + [-1]x2[2] ≥ 0 ⇒ (UIncreasing(COND_903_0_MAIN_LE1(<(x2[2], x1[2]), x0[2], x1[2], x2[2])), ≥)∧[(-1)bni_16 + (-1)Bound*bni_16] + [(-1)bni_16]x2[2] + [bni_16]x1[2] ≥ 0∧[(-1)bso_17] ≥ 0)
(19) (x1[2] + [-1] + [-1]x2[2] ≥ 0 ⇒ (UIncreasing(COND_903_0_MAIN_LE1(<(x2[2], x1[2]), x0[2], x1[2], x2[2])), ≥)∧[(-1)bni_16 + (-1)Bound*bni_16] + [(-1)bni_16]x2[2] + [bni_16]x1[2] ≥ 0∧[(-1)bso_17] ≥ 0)
(20) (x1[2] + [-1] + [-1]x2[2] ≥ 0 ⇒ (UIncreasing(COND_903_0_MAIN_LE1(<(x2[2], x1[2]), x0[2], x1[2], x2[2])), ≥)∧0 = 0∧[(-1)bni_16 + (-1)Bound*bni_16] + [(-1)bni_16]x2[2] + [bni_16]x1[2] ≥ 0∧0 = 0∧[(-1)bso_17] ≥ 0)
(21) (x1[2] ≥ 0 ⇒ (UIncreasing(COND_903_0_MAIN_LE1(<(x2[2], x1[2]), x0[2], x1[2], x2[2])), ≥)∧0 = 0∧[(-1)Bound*bni_16] + [bni_16]x1[2] ≥ 0∧0 = 0∧[(-1)bso_17] ≥ 0)
(22) (x1[2] ≥ 0∧x2[2] ≥ 0 ⇒ (UIncreasing(COND_903_0_MAIN_LE1(<(x2[2], x1[2]), x0[2], x1[2], x2[2])), ≥)∧0 = 0∧[(-1)Bound*bni_16] + [bni_16]x1[2] ≥ 0∧0 = 0∧[(-1)bso_17] ≥ 0)
(23) (x1[2] ≥ 0∧x2[2] ≥ 0 ⇒ (UIncreasing(COND_903_0_MAIN_LE1(<(x2[2], x1[2]), x0[2], x1[2], x2[2])), ≥)∧0 = 0∧[(-1)Bound*bni_16] + [bni_16]x1[2] ≥ 0∧0 = 0∧[(-1)bso_17] ≥ 0)
(24) (COND_903_0_MAIN_LE1(TRUE, x0[3], x1[3], x2[3])≥NonInfC∧COND_903_0_MAIN_LE1(TRUE, x0[3], x1[3], x2[3])≥903_0_MAIN_LE(x0[3], +(x1[3], -1), x2[3])∧(UIncreasing(903_0_MAIN_LE(x0[3], +(x1[3], -1), x2[3])), ≥))
(25) ((UIncreasing(903_0_MAIN_LE(x0[3], +(x1[3], -1), x2[3])), ≥)∧[bni_18] = 0∧[1 + (-1)bso_19] ≥ 0)
(26) ((UIncreasing(903_0_MAIN_LE(x0[3], +(x1[3], -1), x2[3])), ≥)∧[bni_18] = 0∧[1 + (-1)bso_19] ≥ 0)
(27) ((UIncreasing(903_0_MAIN_LE(x0[3], +(x1[3], -1), x2[3])), ≥)∧[bni_18] = 0∧[1 + (-1)bso_19] ≥ 0)
(28) ((UIncreasing(903_0_MAIN_LE(x0[3], +(x1[3], -1), x2[3])), ≥)∧[bni_18] = 0∧0 = 0∧0 = 0∧0 = 0∧[1 + (-1)bso_19] ≥ 0)
POL(TRUE) = 0
POL(FALSE) = 0
POL(903_0_MAIN_LE(x1, x2, x3)) = [-1] + [-1]x3 + x2
POL(COND_903_0_MAIN_LE(x1, x2, x3, x4)) = [-1] + [-1]x4 + x3
POL(&&(x1, x2)) = [-1]
POL(>=(x1, x2)) = [-1]
POL(<(x1, x2)) = [-1]
POL(+(x1, x2)) = x1 + x2
POL(-1) = [-1]
POL(COND_903_0_MAIN_LE1(x1, x2, x3, x4)) = [-1] + [-1]x4 + x3
COND_903_0_MAIN_LE1(TRUE, x0[3], x1[3], x2[3]) → 903_0_MAIN_LE(x0[3], +(x1[3], -1), x2[3])
903_0_MAIN_LE(x0[2], x1[2], x2[2]) → COND_903_0_MAIN_LE1(<(x2[2], x1[2]), x0[2], x1[2], x2[2])
903_0_MAIN_LE(x0[0], x1[0], x2[0]) → COND_903_0_MAIN_LE(&&(>=(x2[0], x1[0]), <(x2[0], +(x0[0], -1))), x0[0], x1[0], x2[0])
COND_903_0_MAIN_LE(TRUE, x0[1], x1[1], x2[1]) → 903_0_MAIN_LE(+(x0[1], -1), x1[1], x2[1])
903_0_MAIN_LE(x0[2], x1[2], x2[2]) → COND_903_0_MAIN_LE1(<(x2[2], x1[2]), x0[2], x1[2], x2[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 |
Boolean, Integer
(1) -> (0), if (x0[1] + -1 →* x0[0]∧x1[1] →* x1[0]∧x2[1] →* x2[0])
(0) -> (1), if (x2[0] >= x1[0] && x2[0] < x0[0] + -1 ∧x0[0] →* x0[1]∧x1[0] →* x1[1]∧x2[0] →* x2[1])
(1) -> (2), if (x0[1] + -1 →* x0[2]∧x1[1] →* x1[2]∧x2[1] →* x2[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 (x0[1] + -1 →* x0[0]∧x1[1] →* x1[0]∧x2[1] →* x2[0])
(0) -> (1), if (x2[0] >= x1[0] && x2[0] < x0[0] + -1 ∧x0[0] →* x0[1]∧x1[0] →* x1[1]∧x2[0] →* x2[1])
(1) (COND_903_0_MAIN_LE(TRUE, x0[1], x1[1], x2[1])≥NonInfC∧COND_903_0_MAIN_LE(TRUE, x0[1], x1[1], x2[1])≥903_0_MAIN_LE(+(x0[1], -1), x1[1], x2[1])∧(UIncreasing(903_0_MAIN_LE(+(x0[1], -1), x1[1], x2[1])), ≥))
(2) ((UIncreasing(903_0_MAIN_LE(+(x0[1], -1), x1[1], x2[1])), ≥)∧[bni_8] = 0∧[1 + (-1)bso_9] ≥ 0)
(3) ((UIncreasing(903_0_MAIN_LE(+(x0[1], -1), x1[1], x2[1])), ≥)∧[bni_8] = 0∧[1 + (-1)bso_9] ≥ 0)
(4) ((UIncreasing(903_0_MAIN_LE(+(x0[1], -1), x1[1], x2[1])), ≥)∧[bni_8] = 0∧[1 + (-1)bso_9] ≥ 0)
(5) ((UIncreasing(903_0_MAIN_LE(+(x0[1], -1), x1[1], x2[1])), ≥)∧[bni_8] = 0∧0 = 0∧0 = 0∧0 = 0∧[1 + (-1)bso_9] ≥ 0)
(6) (&&(>=(x2[0], x1[0]), <(x2[0], +(x0[0], -1)))=TRUE∧x0[0]=x0[1]∧x1[0]=x1[1]∧x2[0]=x2[1] ⇒ 903_0_MAIN_LE(x0[0], x1[0], x2[0])≥NonInfC∧903_0_MAIN_LE(x0[0], x1[0], x2[0])≥COND_903_0_MAIN_LE(&&(>=(x2[0], x1[0]), <(x2[0], +(x0[0], -1))), x0[0], x1[0], x2[0])∧(UIncreasing(COND_903_0_MAIN_LE(&&(>=(x2[0], x1[0]), <(x2[0], +(x0[0], -1))), x0[0], x1[0], x2[0])), ≥))
(7) (>=(x2[0], x1[0])=TRUE∧<(x2[0], +(x0[0], -1))=TRUE ⇒ 903_0_MAIN_LE(x0[0], x1[0], x2[0])≥NonInfC∧903_0_MAIN_LE(x0[0], x1[0], x2[0])≥COND_903_0_MAIN_LE(&&(>=(x2[0], x1[0]), <(x2[0], +(x0[0], -1))), x0[0], x1[0], x2[0])∧(UIncreasing(COND_903_0_MAIN_LE(&&(>=(x2[0], x1[0]), <(x2[0], +(x0[0], -1))), x0[0], x1[0], x2[0])), ≥))
(8) (x2[0] + [-1]x1[0] ≥ 0∧x0[0] + [-2] + [-1]x2[0] ≥ 0 ⇒ (UIncreasing(COND_903_0_MAIN_LE(&&(>=(x2[0], x1[0]), <(x2[0], +(x0[0], -1))), x0[0], x1[0], x2[0])), ≥)∧[(-1)Bound*bni_10] + [bni_10]x0[0] + [(-1)bni_10]x1[0] ≥ 0∧[(-1)bso_11] ≥ 0)
(9) (x2[0] + [-1]x1[0] ≥ 0∧x0[0] + [-2] + [-1]x2[0] ≥ 0 ⇒ (UIncreasing(COND_903_0_MAIN_LE(&&(>=(x2[0], x1[0]), <(x2[0], +(x0[0], -1))), x0[0], x1[0], x2[0])), ≥)∧[(-1)Bound*bni_10] + [bni_10]x0[0] + [(-1)bni_10]x1[0] ≥ 0∧[(-1)bso_11] ≥ 0)
(10) (x2[0] + [-1]x1[0] ≥ 0∧x0[0] + [-2] + [-1]x2[0] ≥ 0 ⇒ (UIncreasing(COND_903_0_MAIN_LE(&&(>=(x2[0], x1[0]), <(x2[0], +(x0[0], -1))), x0[0], x1[0], x2[0])), ≥)∧[(-1)Bound*bni_10] + [bni_10]x0[0] + [(-1)bni_10]x1[0] ≥ 0∧[(-1)bso_11] ≥ 0)
(11) (x2[0] ≥ 0∧x0[0] + [-2] + [-1]x1[0] + [-1]x2[0] ≥ 0 ⇒ (UIncreasing(COND_903_0_MAIN_LE(&&(>=(x2[0], x1[0]), <(x2[0], +(x0[0], -1))), x0[0], x1[0], x2[0])), ≥)∧[(-1)Bound*bni_10] + [bni_10]x0[0] + [(-1)bni_10]x1[0] ≥ 0∧[(-1)bso_11] ≥ 0)
(12) (x2[0] ≥ 0∧x1[0] ≥ 0 ⇒ (UIncreasing(COND_903_0_MAIN_LE(&&(>=(x2[0], x1[0]), <(x2[0], +(x0[0], -1))), x0[0], x1[0], x2[0])), ≥)∧[(-1)Bound*bni_10 + (2)bni_10] + [bni_10]x2[0] + [bni_10]x1[0] ≥ 0∧[(-1)bso_11] ≥ 0)
(13) (x2[0] ≥ 0∧x1[0] ≥ 0∧x0[0] ≥ 0 ⇒ (UIncreasing(COND_903_0_MAIN_LE(&&(>=(x2[0], x1[0]), <(x2[0], +(x0[0], -1))), x0[0], x1[0], x2[0])), ≥)∧[(-1)Bound*bni_10 + (2)bni_10] + [bni_10]x2[0] + [bni_10]x1[0] ≥ 0∧[(-1)bso_11] ≥ 0)
(14) (x2[0] ≥ 0∧x1[0] ≥ 0∧x0[0] ≥ 0 ⇒ (UIncreasing(COND_903_0_MAIN_LE(&&(>=(x2[0], x1[0]), <(x2[0], +(x0[0], -1))), x0[0], x1[0], x2[0])), ≥)∧[(-1)Bound*bni_10 + (2)bni_10] + [bni_10]x2[0] + [bni_10]x1[0] ≥ 0∧[(-1)bso_11] ≥ 0)
POL(TRUE) = 0
POL(FALSE) = 0
POL(COND_903_0_MAIN_LE(x1, x2, x3, x4)) = [-1]x3 + x2
POL(903_0_MAIN_LE(x1, x2, x3)) = x1 + [-1]x2
POL(+(x1, x2)) = x1 + x2
POL(-1) = [-1]
POL(&&(x1, x2)) = [-1]
POL(>=(x1, x2)) = [1]
POL(<(x1, x2)) = [-1]
COND_903_0_MAIN_LE(TRUE, x0[1], x1[1], x2[1]) → 903_0_MAIN_LE(+(x0[1], -1), x1[1], x2[1])
903_0_MAIN_LE(x0[0], x1[0], x2[0]) → COND_903_0_MAIN_LE(&&(>=(x2[0], x1[0]), <(x2[0], +(x0[0], -1))), x0[0], x1[0], x2[0])
903_0_MAIN_LE(x0[0], x1[0], x2[0]) → COND_903_0_MAIN_LE(&&(>=(x2[0], x1[0]), <(x2[0], +(x0[0], -1))), x0[0], x1[0], x2[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 |
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
!= | ~ | 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 (x0[1] + -1 →* x0[0]∧x1[1] →* x1[0]∧x2[1] →* x2[0])
(3) -> (0), if (x0[3] →* x0[0]∧x1[3] + -1 →* x1[0]∧x2[3] →* x2[0])
(0) -> (1), if (x2[0] >= x1[0] && x2[0] < x0[0] + -1 ∧x0[0] →* x0[1]∧x1[0] →* x1[1]∧x2[0] →* x2[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 |
Integer, Boolean
(1) -> (0), if (x0[1] + -1 →* x0[0]∧x1[1] →* x1[0]∧x2[1] →* x2[0])
(0) -> (1), if (x2[0] >= x1[0] && x2[0] < x0[0] + -1 ∧x0[0] →* x0[1]∧x1[0] →* x1[1]∧x2[0] →* x2[1])
(1) (COND_903_0_MAIN_LE(TRUE, x0[1], x1[1], x2[1])≥NonInfC∧COND_903_0_MAIN_LE(TRUE, x0[1], x1[1], x2[1])≥903_0_MAIN_LE(+(x0[1], -1), x1[1], x2[1])∧(UIncreasing(903_0_MAIN_LE(+(x0[1], -1), x1[1], x2[1])), ≥))
(2) ((UIncreasing(903_0_MAIN_LE(+(x0[1], -1), x1[1], x2[1])), ≥)∧[bni_11] = 0∧[(-1)bso_12] ≥ 0)
(3) ((UIncreasing(903_0_MAIN_LE(+(x0[1], -1), x1[1], x2[1])), ≥)∧[bni_11] = 0∧[(-1)bso_12] ≥ 0)
(4) ((UIncreasing(903_0_MAIN_LE(+(x0[1], -1), x1[1], x2[1])), ≥)∧[bni_11] = 0∧[(-1)bso_12] ≥ 0)
(5) ((UIncreasing(903_0_MAIN_LE(+(x0[1], -1), x1[1], x2[1])), ≥)∧[bni_11] = 0∧0 = 0∧0 = 0∧0 = 0∧[(-1)bso_12] ≥ 0)
(6) (&&(>=(x2[0], x1[0]), <(x2[0], +(x0[0], -1)))=TRUE∧x0[0]=x0[1]∧x1[0]=x1[1]∧x2[0]=x2[1] ⇒ 903_0_MAIN_LE(x0[0], x1[0], x2[0])≥NonInfC∧903_0_MAIN_LE(x0[0], x1[0], x2[0])≥COND_903_0_MAIN_LE(&&(>=(x2[0], x1[0]), <(x2[0], +(x0[0], -1))), x0[0], x1[0], x2[0])∧(UIncreasing(COND_903_0_MAIN_LE(&&(>=(x2[0], x1[0]), <(x2[0], +(x0[0], -1))), x0[0], x1[0], x2[0])), ≥))
(7) (>=(x2[0], x1[0])=TRUE∧<(x2[0], +(x0[0], -1))=TRUE ⇒ 903_0_MAIN_LE(x0[0], x1[0], x2[0])≥NonInfC∧903_0_MAIN_LE(x0[0], x1[0], x2[0])≥COND_903_0_MAIN_LE(&&(>=(x2[0], x1[0]), <(x2[0], +(x0[0], -1))), x0[0], x1[0], x2[0])∧(UIncreasing(COND_903_0_MAIN_LE(&&(>=(x2[0], x1[0]), <(x2[0], +(x0[0], -1))), x0[0], x1[0], x2[0])), ≥))
(8) (x2[0] + [-1]x1[0] ≥ 0∧x0[0] + [-2] + [-1]x2[0] ≥ 0 ⇒ (UIncreasing(COND_903_0_MAIN_LE(&&(>=(x2[0], x1[0]), <(x2[0], +(x0[0], -1))), x0[0], x1[0], x2[0])), ≥)∧[bni_13 + (-1)Bound*bni_13] + [(2)bni_13]x0[0] + [(-1)bni_13]x2[0] + [(-1)bni_13]x1[0] ≥ 0∧[2 + (-1)bso_14] ≥ 0)
(9) (x2[0] + [-1]x1[0] ≥ 0∧x0[0] + [-2] + [-1]x2[0] ≥ 0 ⇒ (UIncreasing(COND_903_0_MAIN_LE(&&(>=(x2[0], x1[0]), <(x2[0], +(x0[0], -1))), x0[0], x1[0], x2[0])), ≥)∧[bni_13 + (-1)Bound*bni_13] + [(2)bni_13]x0[0] + [(-1)bni_13]x2[0] + [(-1)bni_13]x1[0] ≥ 0∧[2 + (-1)bso_14] ≥ 0)
(10) (x2[0] + [-1]x1[0] ≥ 0∧x0[0] + [-2] + [-1]x2[0] ≥ 0 ⇒ (UIncreasing(COND_903_0_MAIN_LE(&&(>=(x2[0], x1[0]), <(x2[0], +(x0[0], -1))), x0[0], x1[0], x2[0])), ≥)∧[bni_13 + (-1)Bound*bni_13] + [(2)bni_13]x0[0] + [(-1)bni_13]x2[0] + [(-1)bni_13]x1[0] ≥ 0∧[2 + (-1)bso_14] ≥ 0)
(11) (x2[0] ≥ 0∧x0[0] + [-2] + [-1]x1[0] + [-1]x2[0] ≥ 0 ⇒ (UIncreasing(COND_903_0_MAIN_LE(&&(>=(x2[0], x1[0]), <(x2[0], +(x0[0], -1))), x0[0], x1[0], x2[0])), ≥)∧[bni_13 + (-1)Bound*bni_13] + [(2)bni_13]x0[0] + [(-2)bni_13]x1[0] + [(-1)bni_13]x2[0] ≥ 0∧[2 + (-1)bso_14] ≥ 0)
(12) (x2[0] ≥ 0∧x1[0] ≥ 0 ⇒ (UIncreasing(COND_903_0_MAIN_LE(&&(>=(x2[0], x1[0]), <(x2[0], +(x0[0], -1))), x0[0], x1[0], x2[0])), ≥)∧[(5)bni_13 + (-1)Bound*bni_13] + [bni_13]x2[0] + [(2)bni_13]x1[0] ≥ 0∧[2 + (-1)bso_14] ≥ 0)
(13) (x2[0] ≥ 0∧x1[0] ≥ 0∧x0[0] ≥ 0 ⇒ (UIncreasing(COND_903_0_MAIN_LE(&&(>=(x2[0], x1[0]), <(x2[0], +(x0[0], -1))), x0[0], x1[0], x2[0])), ≥)∧[(5)bni_13 + (-1)Bound*bni_13] + [bni_13]x2[0] + [(2)bni_13]x1[0] ≥ 0∧[2 + (-1)bso_14] ≥ 0)
(14) (x2[0] ≥ 0∧x1[0] ≥ 0∧x0[0] ≥ 0 ⇒ (UIncreasing(COND_903_0_MAIN_LE(&&(>=(x2[0], x1[0]), <(x2[0], +(x0[0], -1))), x0[0], x1[0], x2[0])), ≥)∧[(5)bni_13 + (-1)Bound*bni_13] + [bni_13]x2[0] + [(2)bni_13]x1[0] ≥ 0∧[2 + (-1)bso_14] ≥ 0)
POL(TRUE) = 0
POL(FALSE) = 0
POL(COND_903_0_MAIN_LE(x1, x2, x3, x4)) = [-1] + [-1]x4 + [-1]x3 + [2]x2
POL(903_0_MAIN_LE(x1, x2, x3)) = [1] + [2]x1 + [-1]x3 + [-1]x2
POL(+(x1, x2)) = x1 + x2
POL(-1) = [-1]
POL(&&(x1, x2)) = [-1]
POL(>=(x1, x2)) = [-1]
POL(<(x1, x2)) = [-1]
903_0_MAIN_LE(x0[0], x1[0], x2[0]) → COND_903_0_MAIN_LE(&&(>=(x2[0], x1[0]), <(x2[0], +(x0[0], -1))), x0[0], x1[0], x2[0])
903_0_MAIN_LE(x0[0], x1[0], x2[0]) → COND_903_0_MAIN_LE(&&(>=(x2[0], x1[0]), <(x2[0], +(x0[0], -1))), x0[0], x1[0], x2[0])
COND_903_0_MAIN_LE(TRUE, x0[1], x1[1], x2[1]) → 903_0_MAIN_LE(+(x0[1], -1), x1[1], x2[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 |
Integer