/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, 318 ms] (4) JBCTerminationGraph (5) JBCNonTerm [COMPLETE, 286 ms] (6) NO ---------------------------------------- (0) Obligation: need to prove termination of the following program: package simple.upAndDown; public class Main { /** * @param args */ public static void main(String[] args) { UpAndDown.upAndDown(args.length); } } package simple.upAndDown; public class UpAndDown { public static void upAndDown(int i) { boolean up = false; while (0 <= i && i <= 10) { if (i == 10) { up = false; } if (i == 0) { up = true; } if (up) { i++; } else { i--; } } } } ---------------------------------------- (1) BareJBCToJBCProof (EQUIVALENT) initialized classpath ---------------------------------------- (2) Obligation: need to prove termination of the following program: package simple.upAndDown; public class Main { /** * @param args */ public static void main(String[] args) { UpAndDown.upAndDown(args.length); } } package simple.upAndDown; public class UpAndDown { public static void upAndDown(int i) { boolean up = false; while (0 <= i && i <= 10) { if (i == 10) { up = false; } if (i == 0) { up = true; } if (up) { i++; } else { i--; } } } } ---------------------------------------- (3) JBCToGraph (EQUIVALENT) Constructed TerminationGraph. ---------------------------------------- (4) Obligation: Termination Graph based on JBC Program: simple.upAndDown.Main.main([Ljava/lang/String;)V: Graph of 55 nodes with 1 SCC. ---------------------------------------- (5) JBCNonTerm (COMPLETE) Reached a loop using the following run: 0: a50([java.lang.String...]): length 1 -->{java.lang.Object...} YES: (JL1) 1: a50([java.lang.String...]): length 1 -->{java.lang.Object...} YES: (JL1) 2: YES: (JL1) 3: YES: (JL1) 4: YES: (JL1) 5: YES: (JL1) Start state of loop: [a14(lv_0_0)] i53: [0,+inf)(l2) i54: [0,1](1,1) i16: [0,+inf)(l1) a14([java.lang.String...]): length i16 -->{java.lang.Object...} YES: (JL1) In the loop head node, references [i53, i54] 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_i53 and 0 <= initial_i54 and initial_i54 <= 1 and 0 <= initial_i16) and ((((path1_i53 = path1_i58 and path1_i58 = path1_i61 and path1_i61 = path1_i62 and path1_i64 = (path1_i62 + 1) and path1_i64 = res_i53 and 1 = res_i54 and path1_i53 = initial_i53 and path1_i54 = initial_i54) and (0 <= path1_i53 and T and 10 = 10 and path1_i58 <= 10 and T and 10 = 10 and path1_i61 < 10 and path1_i62 > 0 and path1_i54 = 1 and 1 > 0)) or ((path2_i53 = path2_i58 and path2_i58 = path2_i61 and path2_i61 = path2_i62 and path2_i65 = (path2_i62 + -1) and path2_i65 = res_i53 and 0 = res_i54 and path2_i53 = initial_i53 and path2_i54 = initial_i54) and (0 <= path2_i53 and T and 10 = 10 and path2_i58 <= 10 and T and 10 = 10 and path2_i61 < 10 and path2_i62 > 0 and path2_i54 = 0 and T)) or ((path3_i53 = path3_i58 and 9 = res_i53 and 0 = res_i54 and path3_i53 = initial_i53 and path3_i54 = initial_i54) and (0 <= path3_i53 and T and 10 = 10 and path3_i58 <= 10 and path3_i58 = 10 and path3_i58 = 10 and 10 = 10 and 10 > 0 and T)) or ((path4_i53 = path4_i58 and path4_i58 = path4_i61 and 1 = res_i53 and 1 = res_i54 and path4_i53 = initial_i53 and path4_i54 = initial_i54) and (0 <= path4_i53 and T and 10 = 10 and path4_i58 <= 10 and T and 10 = 10 and path4_i61 < 10 and path4_i61 = 0 and T and 1 > 0))) and (((res1_i53 = res1_i58 and res1_i58 = res1_i61 and res1_i61 = res1_i62 and res1_i64 = (res1_i62 + 1) and res_i53 = res1_i53 and res_i54 = res1_i54) and !(0 <= res1_i53 and T and 10 = 10 and res1_i58 <= 10 and T and 10 = 10 and res1_i61 < 10 and res1_i62 > 0 and res1_i54 = 1 and 1 > 0)) and ((res2_i53 = res2_i58 and res2_i58 = res2_i61 and res2_i61 = res2_i62 and res2_i65 = (res2_i62 + -1) and res_i53 = res2_i53 and res_i54 = res2_i54) and !(0 <= res2_i53 and T and 10 = 10 and res2_i58 <= 10 and T and 10 = 10 and res2_i61 < 10 and res2_i62 > 0 and res2_i54 = 0 and T)) and ((res3_i53 = res3_i58 and res_i53 = res3_i53 and res_i54 = res3_i54) and !(0 <= res3_i53 and T and 10 = 10 and res3_i58 <= 10 and res3_i58 = 10 and res3_i58 = 10 and 10 = 10 and 10 > 0 and T)) and ((res4_i53 = res4_i58 and res4_i58 = res4_i61 and res_i53 = res4_i53 and res_i54 = res4_i54) and !(0 <= res4_i53 and T and 10 = 10 and res4_i58 <= 10 and T and 10 = 10 and res4_i61 < 10 and res4_i61 = 0 and T and 1 > 0))))) to be UNSAT. Consequently, the loop will not terminate. ---------------------------------------- (6) NO