0 JBC
↳1 JBC2FIG (⇐)
↳2 FIGraph
↳3 FIGtoITRSProof (⇐)
↳4 ITRS
↳5 GroundTermsRemoverProof (⇔)
↳6 ITRS
↳7 ITRStoIDPProof (⇔)
↳8 IDP
↳9 UsableRulesProof (⇔)
↳10 IDP
↳11 IDPNonInfProof (⇐)
↳12 AND
↳13 IDP
↳14 IDependencyGraphProof (⇔)
↳15 TRUE
↳16 IDP
↳17 IDependencyGraphProof (⇔)
↳18 TRUE
public class LogBuiltIn{
public static int log(int x) {
int res = 0;
while (x > 1) {
x = x/2;
res++;
}
return res;
}
public static void main(String[] args) {
Random.args = args;
int x = Random.random();
log(x);
}
}
public class Random {
static String[] args;
static int index = 0;
public static int random() {
String string = args[index];
index++;
return string.length();
}
}
!= | ~ | 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 |
Load653(x1, x2, x3) → Load653(x2, x3)
Cond_Load653(x1, x2, x3, x4) → Cond_Load653(x1, x3, x4)
!= | ~ | 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 |
!= | ~ | 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 ((i42[0] →* i42[1])∧(i38[0] →* i38[1])∧(i42[0] > 1 && i38[0] + 1 > 0 →* TRUE))
(1) -> (0), if ((i42[1] / 2 →* i42[0])∧(i38[1] + 1 →* i38[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
(0) -> (1), if ((i42[0] →* i42[1])∧(i38[0] →* i38[1])∧(i42[0] > 1 && i38[0] + 1 > 0 →* TRUE))
(1) -> (0), if ((i42[1] / 2 →* i42[0])∧(i38[1] + 1 →* i38[0]))
(1) (i42[0]=i42[1]∧i38[0]=i38[1]∧&&(>(i42[0], 1), >(+(i38[0], 1), 0))=TRUE ⇒ LOAD653(i42[0], i38[0])≥NonInfC∧LOAD653(i42[0], i38[0])≥COND_LOAD653(&&(>(i42[0], 1), >(+(i38[0], 1), 0)), i42[0], i38[0])∧(UIncreasing(COND_LOAD653(&&(>(i42[0], 1), >(+(i38[0], 1), 0)), i42[0], i38[0])), ≥))
(2) (>(i42[0], 1)=TRUE∧>(+(i38[0], 1), 0)=TRUE ⇒ LOAD653(i42[0], i38[0])≥NonInfC∧LOAD653(i42[0], i38[0])≥COND_LOAD653(&&(>(i42[0], 1), >(+(i38[0], 1), 0)), i42[0], i38[0])∧(UIncreasing(COND_LOAD653(&&(>(i42[0], 1), >(+(i38[0], 1), 0)), i42[0], i38[0])), ≥))
(3) (i42[0] + [-2] ≥ 0∧i38[0] ≥ 0 ⇒ (UIncreasing(COND_LOAD653(&&(>(i42[0], 1), >(+(i38[0], 1), 0)), i42[0], i38[0])), ≥)∧[(-1)bni_12 + (-1)Bound*bni_12] + [bni_12]i42[0] ≥ 0∧[(-1)bso_13] ≥ 0)
(4) (i42[0] + [-2] ≥ 0∧i38[0] ≥ 0 ⇒ (UIncreasing(COND_LOAD653(&&(>(i42[0], 1), >(+(i38[0], 1), 0)), i42[0], i38[0])), ≥)∧[(-1)bni_12 + (-1)Bound*bni_12] + [bni_12]i42[0] ≥ 0∧[(-1)bso_13] ≥ 0)
(5) (i42[0] + [-2] ≥ 0∧i38[0] ≥ 0 ⇒ (UIncreasing(COND_LOAD653(&&(>(i42[0], 1), >(+(i38[0], 1), 0)), i42[0], i38[0])), ≥)∧[(-1)bni_12 + (-1)Bound*bni_12] + [bni_12]i42[0] ≥ 0∧[(-1)bso_13] ≥ 0)
(6) (i42[0] ≥ 0∧i38[0] ≥ 0 ⇒ (UIncreasing(COND_LOAD653(&&(>(i42[0], 1), >(+(i38[0], 1), 0)), i42[0], i38[0])), ≥)∧[bni_12 + (-1)Bound*bni_12] + [bni_12]i42[0] ≥ 0∧[(-1)bso_13] ≥ 0)
(7) (i42[0]=i42[1]∧i38[0]=i38[1]∧&&(>(i42[0], 1), >(+(i38[0], 1), 0))=TRUE∧/(i42[1], 2)=i42[0]1∧+(i38[1], 1)=i38[0]1 ⇒ COND_LOAD653(TRUE, i42[1], i38[1])≥NonInfC∧COND_LOAD653(TRUE, i42[1], i38[1])≥LOAD653(/(i42[1], 2), +(i38[1], 1))∧(UIncreasing(LOAD653(/(i42[1], 2), +(i38[1], 1))), ≥))
(8) (>(i42[0], 1)=TRUE∧>(+(i38[0], 1), 0)=TRUE ⇒ COND_LOAD653(TRUE, i42[0], i38[0])≥NonInfC∧COND_LOAD653(TRUE, i42[0], i38[0])≥LOAD653(/(i42[0], 2), +(i38[0], 1))∧(UIncreasing(LOAD653(/(i42[1], 2), +(i38[1], 1))), ≥))
(9) (i42[0] + [-2] ≥ 0∧i38[0] ≥ 0 ⇒ (UIncreasing(LOAD653(/(i42[1], 2), +(i38[1], 1))), ≥)∧[(-1)bni_14 + (-1)Bound*bni_14] + [bni_14]i42[0] ≥ 0∧[1 + (-1)bso_18] + i42[0] + [-1]max{i42[0], [-1]i42[0]} ≥ 0)
(10) (i42[0] + [-2] ≥ 0∧i38[0] ≥ 0 ⇒ (UIncreasing(LOAD653(/(i42[1], 2), +(i38[1], 1))), ≥)∧[(-1)bni_14 + (-1)Bound*bni_14] + [bni_14]i42[0] ≥ 0∧[1 + (-1)bso_18] + i42[0] + [-1]max{i42[0], [-1]i42[0]} ≥ 0)
(11) (i42[0] + [-2] ≥ 0∧i38[0] ≥ 0∧[2]i42[0] ≥ 0 ⇒ (UIncreasing(LOAD653(/(i42[1], 2), +(i38[1], 1))), ≥)∧[(-1)bni_14 + (-1)Bound*bni_14] + [bni_14]i42[0] ≥ 0∧[1 + (-1)bso_18] ≥ 0)
(12) (i42[0] ≥ 0∧i38[0] ≥ 0∧[4] + [2]i42[0] ≥ 0 ⇒ (UIncreasing(LOAD653(/(i42[1], 2), +(i38[1], 1))), ≥)∧[bni_14 + (-1)Bound*bni_14] + [bni_14]i42[0] ≥ 0∧[1 + (-1)bso_18] ≥ 0)
(13) (i42[0] ≥ 0∧i38[0] ≥ 0∧[2] + i42[0] ≥ 0 ⇒ (UIncreasing(LOAD653(/(i42[1], 2), +(i38[1], 1))), ≥)∧[bni_14 + (-1)Bound*bni_14] + [bni_14]i42[0] ≥ 0∧[1 + (-1)bso_18] ≥ 0)
POL(TRUE) = [2]
POL(FALSE) = [3]
POL(LOAD653(x1, x2)) = [-1] + x1
POL(COND_LOAD653(x1, x2, x3)) = [1] + x2 + [-1]x1
POL(&&(x1, x2)) = [2]
POL(>(x1, x2)) = [-1]
POL(1) = [1]
POL(+(x1, x2)) = x1 + x2
POL(0) = 0
POL(2) = [2]
Polynomial Interpretations with Context Sensitive Arithemetic Replacement
POL(TermCSAR-Mode @ Context)
POL(/(x1, 2)1 @ {LOAD653_2/0}) = max{x1, [-1]x1} + [-1]
COND_LOAD653(TRUE, i42[1], i38[1]) → LOAD653(/(i42[1], 2), +(i38[1], 1))
LOAD653(i42[0], i38[0]) → COND_LOAD653(&&(>(i42[0], 1), >(+(i38[0], 1), 0)), i42[0], i38[0])
COND_LOAD653(TRUE, i42[1], i38[1]) → LOAD653(/(i42[1], 2), +(i38[1], 1))
LOAD653(i42[0], i38[0]) → COND_LOAD653(&&(>(i42[0], 1), >(+(i38[0], 1), 0)), i42[0], i38[0])
&&(TRUE, TRUE)1 ↔ TRUE1
FALSE1 → &&(TRUE, FALSE)1
FALSE1 → &&(FALSE, TRUE)1
FALSE1 → &&(FALSE, FALSE)1
/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
!= | ~ | 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 |