0 JBC
↳1 JBC2FIG (⇐)
↳2 FIGraph
↳3 FIGtoITRSProof (⇐)
↳4 ITRS
↳5 ITRStoIDPProof (⇔)
↳6 IDP
↳7 UsableRulesProof (⇔)
↳8 IDP
↳9 ItpfGraphProof (⇔)
↳10 IDP
↳11 IDPNonInfProof (⇐)
↳12 AND
↳13 IDP
↳14 IDependencyGraphProof (⇔)
↳15 TRUE
↳16 IDP
↳17 IDependencyGraphProof (⇔)
↳18 TRUE
/**
* A very simple loop over an array.
*
* All calls terminate.
*
* Julia + BinTerm prove that all calls terminate
*
* @author <A HREF="mailto:fausto.spoto@univr.it">Fausto Spoto</A>
*/
public class Loop1 {
public static void main(String[] args) {
for (int i = 0; i < args.length; i++) {}
}
}
!= | ~ | 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 ((i7[0] >= 0 && i7[0] < i11[0] && i7[0] + 1 > 0 →* TRUE)∧(java.lang.Object(ARRAY(i11[0], a37data[0])) →* java.lang.Object(ARRAY(i11[1], a37data[1])))∧(i7[0] →* i7[1]))
(1) -> (0), if ((java.lang.Object(ARRAY(i11[1], a37data[1])) →* java.lang.Object(ARRAY(i11[0], a37data[0])))∧(i7[1] + 1 →* i7[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 ((i7[0] >= 0 && i7[0] < i11[0] && i7[0] + 1 > 0 →* TRUE)∧(java.lang.Object(ARRAY(i11[0], a37data[0])) →* java.lang.Object(ARRAY(i11[1], a37data[1])))∧(i7[0] →* i7[1]))
(1) -> (0), if ((java.lang.Object(ARRAY(i11[1], a37data[1])) →* java.lang.Object(ARRAY(i11[0], a37data[0])))∧(i7[1] + 1 →* i7[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 ((i7[0] >= 0 && i7[0] < i11[0] && i7[0] + 1 > 0 →* TRUE)∧((i11[0] →* i11[1])∧(a37data[0] →* a37data[1]))∧(i7[0] →* i7[1]))
(1) -> (0), if (((i11[1] →* i11[0])∧(a37data[1] →* a37data[0]))∧(i7[1] + 1 →* i7[0]))
(1) (&&(&&(>=(i7[0], 0), <(i7[0], i11[0])), >(+(i7[0], 1), 0))=TRUE∧i11[0]=i11[1]∧a37data[0]=a37data[1]∧i7[0]=i7[1] ⇒ LOAD182(java.lang.Object(ARRAY(i11[0], a37data[0])), i7[0])≥NonInfC∧LOAD182(java.lang.Object(ARRAY(i11[0], a37data[0])), i7[0])≥COND_LOAD182(&&(&&(>=(i7[0], 0), <(i7[0], i11[0])), >(+(i7[0], 1), 0)), java.lang.Object(ARRAY(i11[0], a37data[0])), i7[0])∧(UIncreasing(COND_LOAD182(&&(&&(>=(i7[0], 0), <(i7[0], i11[0])), >(+(i7[0], 1), 0)), java.lang.Object(ARRAY(i11[0], a37data[0])), i7[0])), ≥))
(2) (>(+(i7[0], 1), 0)=TRUE∧>=(i7[0], 0)=TRUE∧<(i7[0], i11[0])=TRUE ⇒ LOAD182(java.lang.Object(ARRAY(i11[0], a37data[0])), i7[0])≥NonInfC∧LOAD182(java.lang.Object(ARRAY(i11[0], a37data[0])), i7[0])≥COND_LOAD182(&&(&&(>=(i7[0], 0), <(i7[0], i11[0])), >(+(i7[0], 1), 0)), java.lang.Object(ARRAY(i11[0], a37data[0])), i7[0])∧(UIncreasing(COND_LOAD182(&&(&&(>=(i7[0], 0), <(i7[0], i11[0])), >(+(i7[0], 1), 0)), java.lang.Object(ARRAY(i11[0], a37data[0])), i7[0])), ≥))
(3) (i7[0] ≥ 0∧i7[0] ≥ 0∧i11[0] + [-1] + [-1]i7[0] ≥ 0 ⇒ (UIncreasing(COND_LOAD182(&&(&&(>=(i7[0], 0), <(i7[0], i11[0])), >(+(i7[0], 1), 0)), java.lang.Object(ARRAY(i11[0], a37data[0])), i7[0])), ≥)∧[(-1)bni_14 + (-1)Bound*bni_14] + [(-1)bni_14]i7[0] + [bni_14]i11[0] ≥ 0∧[(-1)bso_15] ≥ 0)
(4) (i7[0] ≥ 0∧i7[0] ≥ 0∧i11[0] + [-1] + [-1]i7[0] ≥ 0 ⇒ (UIncreasing(COND_LOAD182(&&(&&(>=(i7[0], 0), <(i7[0], i11[0])), >(+(i7[0], 1), 0)), java.lang.Object(ARRAY(i11[0], a37data[0])), i7[0])), ≥)∧[(-1)bni_14 + (-1)Bound*bni_14] + [(-1)bni_14]i7[0] + [bni_14]i11[0] ≥ 0∧[(-1)bso_15] ≥ 0)
(5) (i7[0] ≥ 0∧i7[0] ≥ 0∧i11[0] + [-1] + [-1]i7[0] ≥ 0 ⇒ (UIncreasing(COND_LOAD182(&&(&&(>=(i7[0], 0), <(i7[0], i11[0])), >(+(i7[0], 1), 0)), java.lang.Object(ARRAY(i11[0], a37data[0])), i7[0])), ≥)∧[(-1)bni_14 + (-1)Bound*bni_14] + [(-1)bni_14]i7[0] + [bni_14]i11[0] ≥ 0∧[(-1)bso_15] ≥ 0)
(6) (i7[0] ≥ 0∧i7[0] ≥ 0∧i11[0] + [-1] + [-1]i7[0] ≥ 0 ⇒ (UIncreasing(COND_LOAD182(&&(&&(>=(i7[0], 0), <(i7[0], i11[0])), >(+(i7[0], 1), 0)), java.lang.Object(ARRAY(i11[0], a37data[0])), i7[0])), ≥)∧0 = 0∧[(-1)bni_14 + (-1)Bound*bni_14] + [(-1)bni_14]i7[0] + [bni_14]i11[0] ≥ 0∧0 = 0∧[(-1)bso_15] ≥ 0)
(7) (i7[0] ≥ 0∧i7[0] ≥ 0∧i11[0] ≥ 0 ⇒ (UIncreasing(COND_LOAD182(&&(&&(>=(i7[0], 0), <(i7[0], i11[0])), >(+(i7[0], 1), 0)), java.lang.Object(ARRAY(i11[0], a37data[0])), i7[0])), ≥)∧0 = 0∧[(-1)Bound*bni_14] + [bni_14]i11[0] ≥ 0∧0 = 0∧[(-1)bso_15] ≥ 0)
(8) (COND_LOAD182(TRUE, java.lang.Object(ARRAY(i11[1], a37data[1])), i7[1])≥NonInfC∧COND_LOAD182(TRUE, java.lang.Object(ARRAY(i11[1], a37data[1])), i7[1])≥LOAD182(java.lang.Object(ARRAY(i11[1], a37data[1])), +(i7[1], 1))∧(UIncreasing(LOAD182(java.lang.Object(ARRAY(i11[1], a37data[1])), +(i7[1], 1))), ≥))
(9) ((UIncreasing(LOAD182(java.lang.Object(ARRAY(i11[1], a37data[1])), +(i7[1], 1))), ≥)∧[1 + (-1)bso_17] ≥ 0)
(10) ((UIncreasing(LOAD182(java.lang.Object(ARRAY(i11[1], a37data[1])), +(i7[1], 1))), ≥)∧[1 + (-1)bso_17] ≥ 0)
(11) ((UIncreasing(LOAD182(java.lang.Object(ARRAY(i11[1], a37data[1])), +(i7[1], 1))), ≥)∧[1 + (-1)bso_17] ≥ 0)
(12) ((UIncreasing(LOAD182(java.lang.Object(ARRAY(i11[1], a37data[1])), +(i7[1], 1))), ≥)∧0 = 0∧0 = 0∧0 = 0∧[1 + (-1)bso_17] ≥ 0)
POL(TRUE) = 0
POL(FALSE) = 0
POL(LOAD182(x1, x2)) = [-1] + [-1]x2 + [-1]x1
POL(java.lang.Object(x1)) = x1
POL(ARRAY(x1, x2)) = [-1]x1
POL(COND_LOAD182(x1, x2, x3)) = [-1] + [-1]x3 + [-1]x2
POL(&&(x1, x2)) = [-1]
POL(>=(x1, x2)) = [-1]
POL(0) = 0
POL(<(x1, x2)) = [-1]
POL(>(x1, x2)) = [-1]
POL(+(x1, x2)) = x1 + x2
POL(1) = [1]
COND_LOAD182(TRUE, java.lang.Object(ARRAY(i11[1], a37data[1])), i7[1]) → LOAD182(java.lang.Object(ARRAY(i11[1], a37data[1])), +(i7[1], 1))
LOAD182(java.lang.Object(ARRAY(i11[0], a37data[0])), i7[0]) → COND_LOAD182(&&(&&(>=(i7[0], 0), <(i7[0], i11[0])), >(+(i7[0], 1), 0)), java.lang.Object(ARRAY(i11[0], a37data[0])), i7[0])
LOAD182(java.lang.Object(ARRAY(i11[0], a37data[0])), i7[0]) → COND_LOAD182(&&(&&(>=(i7[0], 0), <(i7[0], i11[0])), >(+(i7[0], 1), 0)), java.lang.Object(ARRAY(i11[0], a37data[0])), i7[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