/export/starexec/sandbox/solver/bin/starexec_run_standard /export/starexec/sandbox/benchmark/theBenchmark.jar /export/starexec/sandbox/output/output_files -------------------------------------------------------------------------------- NO proof of /export/starexec/sandbox/benchmark/theBenchmark.jar # AProVE Commit ID: 794c25de1cacf0d048858bcd21c9a779e1221865 marcel 20200619 unpublished dirty termination of the given Bare JBC problem could be disproven: (0) Bare JBC problem (1) BareJBCToJBCProof [EQUIVALENT, 96 ms] (2) JBC problem (3) JBCToGraph [EQUIVALENT, 339 ms] (4) JBCTerminationGraph (5) JBCNonTerm [COMPLETE, 68 ms] (6) NO ---------------------------------------- (0) Obligation: need to prove termination of the following program: package simple.whileNestedOffset; public class Main { /** * @param args */ public static void main(String[] args) { WhileNestedOffset.increase(args.length); } } package simple.whileNestedOffset; public class WhileNestedOffset { public static void increase(int i) { int j; while (i < 10) { j = i; while (j > 5) { j++; } i++; } } } ---------------------------------------- (1) BareJBCToJBCProof (EQUIVALENT) initialized classpath ---------------------------------------- (2) Obligation: need to prove termination of the following program: package simple.whileNestedOffset; public class Main { /** * @param args */ public static void main(String[] args) { WhileNestedOffset.increase(args.length); } } package simple.whileNestedOffset; public class WhileNestedOffset { public static void increase(int i) { int j; while (i < 10) { j = i; while (j > 5) { j++; } i++; } } } ---------------------------------------- (3) JBCToGraph (EQUIVALENT) Constructed TerminationGraph. ---------------------------------------- (4) Obligation: Termination Graph based on JBC Program: simple.whileNestedOffset.Main.main([Ljava/lang/String;)V: Graph of 28 nodes with 1 SCC. ---------------------------------------- (5) JBCNonTerm (COMPLETE) Reached a loop using the following run: 0: a29([java.lang.String...]): length 6 -->{java.lang.Object...} YES: (JL1) 1: a29([java.lang.String...]): length 6 -->{java.lang.Object...} YES: (JL1) 2: YES: (JL1) 3: YES: (JL1) 4: YES: (JL1) 5: YES: (JL1) 6: YES: (JL1) 7: YES: (JL1) 8: YES: (JL1) Start state of loop: [a11(lv_0_0)] i43: [0,9](2,1){0,+inf} i69: [0,+inf)(l3) i29: [0,9](u1){0,+inf} a11([java.lang.String...]): length i29 -->{java.lang.Object...} YES: (JL1) In the loop head node, references [i69, i43, i29] were interesting. All methods calls in the loop body are side-effect free, hence they can be ignored. By SMT, we could prove ((0 <= initial_i43 and initial_i43 <= 9 and 0 <= initial_i69 and 0 <= initial_i29 and initial_i29 <= 9) and (((path1_i69 = path1_i76 and path1_i79 = (path1_i76 + 1) and path1_i43 = res_i43 and path1_i79 = res_i69 and path1_i29 = res_i29 and path1_i43 = initial_i43 and path1_i69 = initial_i69 and path1_i29 = initial_i29) and (T and 5 = 5 and path1_i76 > 5)) and ((res1_i69 = res1_i76 and res1_i79 = (res1_i76 + 1) and res_i43 = res1_i43 and res_i69 = res1_i69 and res_i29 = res1_i29) and !(T and 5 = 5 and res1_i76 > 5)))) to be UNSAT. Consequently, the loop will not terminate. ---------------------------------------- (6) NO