0 JBC
↳1 JBC2FIG (⇐)
↳2 FIGraph
↳3 FIGtoITRSProof (⇐)
↳4 ITRS
↳5 DuplicateArgsRemoverProof (⇔)
↳6 ITRS
↳7 ITRStoIDPProof (⇔)
↳8 IDP
↳9 UsableRulesProof (⇔)
↳10 IDP
↳11 ItpfGraphProof (⇔)
↳12 IDP
↳13 IDPNonInfProof (⇐)
↳14 AND
↳15 IDP
↳16 IDependencyGraphProof (⇔)
↳17 TRUE
↳18 IDP
↳19 IDependencyGraphProof (⇔)
↳20 TRUE
public class Int {
// only wrap a primitive int
private int val;
// count up to the value
// in "limit"
public static void count(
Int orig, Int limit) {
if (orig == null
|| limit == null) {
return;
}
// introduce sharing
Int copy = orig;
while (orig.val < limit.val) {
copy.val++;
}
}
public static void main(String[] args) {
Random.args = args;
Int x = new Int();
x.val = Random.random();
Int y = new Int();
y.val = Random.random();
count(x, y);
}
}
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 |
Load529(x1, x2, x3) → Load529(x2, x3)
Cond_Load529(x1, x2, x3, x4) → Cond_Load529(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 |
Integer
(0) -> (1), if ((java.lang.Object(Int(i15[0])) →* java.lang.Object(Int(i15[1])))∧(i9[0] < i15[0] →* TRUE)∧(java.lang.Object(Int(i9[0])) →* java.lang.Object(Int(i9[1]))))
(1) -> (0), if ((java.lang.Object(Int(i15[1])) →* java.lang.Object(Int(i15[0])))∧(java.lang.Object(Int(i9[1] + 1)) →* java.lang.Object(Int(i9[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
(0) -> (1), if ((java.lang.Object(Int(i15[0])) →* java.lang.Object(Int(i15[1])))∧(i9[0] < i15[0] →* TRUE)∧(java.lang.Object(Int(i9[0])) →* java.lang.Object(Int(i9[1]))))
(1) -> (0), if ((java.lang.Object(Int(i15[1])) →* java.lang.Object(Int(i15[0])))∧(java.lang.Object(Int(i9[1] + 1)) →* java.lang.Object(Int(i9[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
(0) -> (1), if (((i15[0] →* i15[1]))∧(i9[0] < i15[0] →* TRUE)∧((i9[0] →* i9[1])))
(1) -> (0), if (((i15[1] →* i15[0]))∧((i9[1] + 1 →* i9[0])))
(1) (i15[0]=i15[1]∧<(i9[0], i15[0])=TRUE∧i9[0]=i9[1] ⇒ LOAD529(java.lang.Object(Int(i15[0])), java.lang.Object(Int(i9[0])))≥NonInfC∧LOAD529(java.lang.Object(Int(i15[0])), java.lang.Object(Int(i9[0])))≥COND_LOAD529(<(i9[0], i15[0]), java.lang.Object(Int(i15[0])), java.lang.Object(Int(i9[0])))∧(UIncreasing(COND_LOAD529(<(i9[0], i15[0]), java.lang.Object(Int(i15[0])), java.lang.Object(Int(i9[0])))), ≥))
(2) (<(i9[0], i15[0])=TRUE ⇒ LOAD529(java.lang.Object(Int(i15[0])), java.lang.Object(Int(i9[0])))≥NonInfC∧LOAD529(java.lang.Object(Int(i15[0])), java.lang.Object(Int(i9[0])))≥COND_LOAD529(<(i9[0], i15[0]), java.lang.Object(Int(i15[0])), java.lang.Object(Int(i9[0])))∧(UIncreasing(COND_LOAD529(<(i9[0], i15[0]), java.lang.Object(Int(i15[0])), java.lang.Object(Int(i9[0])))), ≥))
(3) (i15[0] + [-1] + [-1]i9[0] ≥ 0 ⇒ (UIncreasing(COND_LOAD529(<(i9[0], i15[0]), java.lang.Object(Int(i15[0])), java.lang.Object(Int(i9[0])))), ≥)∧[(-1)bni_8 + (-1)Bound*bni_8] + [(-1)bni_8]i9[0] + [bni_8]i15[0] ≥ 0∧[(-1)bso_9] ≥ 0)
(4) (i15[0] + [-1] + [-1]i9[0] ≥ 0 ⇒ (UIncreasing(COND_LOAD529(<(i9[0], i15[0]), java.lang.Object(Int(i15[0])), java.lang.Object(Int(i9[0])))), ≥)∧[(-1)bni_8 + (-1)Bound*bni_8] + [(-1)bni_8]i9[0] + [bni_8]i15[0] ≥ 0∧[(-1)bso_9] ≥ 0)
(5) (i15[0] + [-1] + [-1]i9[0] ≥ 0 ⇒ (UIncreasing(COND_LOAD529(<(i9[0], i15[0]), java.lang.Object(Int(i15[0])), java.lang.Object(Int(i9[0])))), ≥)∧[(-1)bni_8 + (-1)Bound*bni_8] + [(-1)bni_8]i9[0] + [bni_8]i15[0] ≥ 0∧[(-1)bso_9] ≥ 0)
(6) (i15[0] ≥ 0 ⇒ (UIncreasing(COND_LOAD529(<(i9[0], i15[0]), java.lang.Object(Int(i15[0])), java.lang.Object(Int(i9[0])))), ≥)∧[(-1)Bound*bni_8] + [bni_8]i15[0] ≥ 0∧[(-1)bso_9] ≥ 0)
(7) (i15[0] ≥ 0∧i9[0] ≥ 0 ⇒ (UIncreasing(COND_LOAD529(<(i9[0], i15[0]), java.lang.Object(Int(i15[0])), java.lang.Object(Int(i9[0])))), ≥)∧[(-1)Bound*bni_8] + [bni_8]i15[0] ≥ 0∧[(-1)bso_9] ≥ 0)
(8) (i15[0] ≥ 0∧i9[0] ≥ 0 ⇒ (UIncreasing(COND_LOAD529(<(i9[0], i15[0]), java.lang.Object(Int(i15[0])), java.lang.Object(Int(i9[0])))), ≥)∧[(-1)Bound*bni_8] + [bni_8]i15[0] ≥ 0∧[(-1)bso_9] ≥ 0)
(9) (COND_LOAD529(TRUE, java.lang.Object(Int(i15[1])), java.lang.Object(Int(i9[1])))≥NonInfC∧COND_LOAD529(TRUE, java.lang.Object(Int(i15[1])), java.lang.Object(Int(i9[1])))≥LOAD529(java.lang.Object(Int(i15[1])), java.lang.Object(Int(+(i9[1], 1))))∧(UIncreasing(LOAD529(java.lang.Object(Int(i15[1])), java.lang.Object(Int(+(i9[1], 1))))), ≥))
(10) ((UIncreasing(LOAD529(java.lang.Object(Int(i15[1])), java.lang.Object(Int(+(i9[1], 1))))), ≥)∧[1 + (-1)bso_11] ≥ 0)
(11) ((UIncreasing(LOAD529(java.lang.Object(Int(i15[1])), java.lang.Object(Int(+(i9[1], 1))))), ≥)∧[1 + (-1)bso_11] ≥ 0)
(12) ((UIncreasing(LOAD529(java.lang.Object(Int(i15[1])), java.lang.Object(Int(+(i9[1], 1))))), ≥)∧[1 + (-1)bso_11] ≥ 0)
(13) ((UIncreasing(LOAD529(java.lang.Object(Int(i15[1])), java.lang.Object(Int(+(i9[1], 1))))), ≥)∧0 = 0∧0 = 0∧[1 + (-1)bso_11] ≥ 0)
POL(TRUE) = 0
POL(FALSE) = 0
POL(LOAD529(x1, x2)) = [-1] + [-1]x2 + x1
POL(java.lang.Object(x1)) = x1
POL(Int(x1)) = x1
POL(COND_LOAD529(x1, x2, x3)) = [-1] + [-1]x3 + x2
POL(<(x1, x2)) = [-1]
POL(+(x1, x2)) = x1 + x2
POL(1) = [1]
COND_LOAD529(TRUE, java.lang.Object(Int(i15[1])), java.lang.Object(Int(i9[1]))) → LOAD529(java.lang.Object(Int(i15[1])), java.lang.Object(Int(+(i9[1], 1))))
LOAD529(java.lang.Object(Int(i15[0])), java.lang.Object(Int(i9[0]))) → COND_LOAD529(<(i9[0], i15[0]), java.lang.Object(Int(i15[0])), java.lang.Object(Int(i9[0])))
LOAD529(java.lang.Object(Int(i15[0])), java.lang.Object(Int(i9[0]))) → COND_LOAD529(<(i9[0], i15[0]), java.lang.Object(Int(i15[0])), java.lang.Object(Int(i9[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