/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, 223 ms] (4) JBCTerminationGraph (5) JBCNonTerm [COMPLETE, 119 ms] (6) NO ---------------------------------------- (0) Obligation: need to prove termination of the following program: package simple.alternDiv; public class AlternDiv { public static void loop(int i) { while (i != 0) { if (i < 0) { i--; i = i*(-1); } else { i++; i = i*(-1); } } } } package simple.alternDiv; public class Main { /** * @param args */ public static void main(String[] args) { AlternDiv.loop(args.length); } } ---------------------------------------- (1) BareJBCToJBCProof (EQUIVALENT) initialized classpath ---------------------------------------- (2) Obligation: need to prove termination of the following program: package simple.alternDiv; public class AlternDiv { public static void loop(int i) { while (i != 0) { if (i < 0) { i--; i = i*(-1); } else { i++; i = i*(-1); } } } } package simple.alternDiv; public class Main { /** * @param args */ public static void main(String[] args) { AlternDiv.loop(args.length); } } ---------------------------------------- (3) JBCToGraph (EQUIVALENT) Constructed TerminationGraph. ---------------------------------------- (4) Obligation: Termination Graph based on JBC Program: simple.alternDiv.Main.main([Ljava/lang/String;)V: Graph of 31 nodes with 1 SCC. ---------------------------------------- (5) JBCNonTerm (COMPLETE) Reached a loop using the following run: 0: a22([java.lang.String...]): length 1 -->{java.lang.Object...} YES: (JL1) 1: a22([java.lang.String...]): length 1 -->{java.lang.Object...} YES: (JL1) 2: YES: (JL1) 3: YES: (JL1) Start state of loop: [a6(lv_0_0)] i134: # i17: [0,+inf)(l1) a6([java.lang.String...]): length i17 -->{java.lang.Object...} YES: (JL1) In the loop head node, references [i134] 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_i17 and ((((path1_i134 = path1_i144 and path1_i144 = path1_i145 and path1_i147 = (path1_i145 + -1) and path1_i149 = (path1_i147 * -1) and path1_i149 = res_i134 and path1_i134 = initial_i134) and (path1_i144 != 0 and path1_i145 < 0)) or ((path2_i134 = path2_i144 and path2_i144 = path2_i146 and path2_i148 = (path2_i146 + 1) and path2_i150 = (path2_i148 * -1) and path2_i150 = res_i134 and path2_i134 = initial_i134) and (path2_i144 != 0 and path2_i146 >= 0)) or ((path1_i134 = path1_i144 and path1_i144 = path1_i145 and path1_i147 = (path1_i145 + -1) and path1_i149 = (path1_i147 * -1) and path1_i149 = res_i134 and path1_i134 = initial_i134) and (path1_i145 < 0 and path1_i144 < 0)) or ((path1_i134 = path1_i144 and path1_i144 = path1_i145 and path1_i147 = (path1_i145 + -1) and path1_i149 = (path1_i147 * -1) and path1_i149 = res_i134 and path1_i134 = initial_i134) and (path1_i145 < 0 and path1_i144 > 0)) or ((path2_i134 = path2_i144 and path2_i144 = path2_i146 and path2_i148 = (path2_i146 + 1) and path2_i150 = (path2_i148 * -1) and path2_i150 = res_i134 and path2_i134 = initial_i134) and (path2_i146 >= 0 and path2_i144 < 0)) or ((path2_i134 = path2_i144 and path2_i144 = path2_i146 and path2_i148 = (path2_i146 + 1) and path2_i150 = (path2_i148 * -1) and path2_i150 = res_i134 and path2_i134 = initial_i134) and (path2_i146 >= 0 and path2_i144 > 0))) and (((res1_i134 = res1_i144 and res1_i144 = res1_i145 and res1_i147 = (res1_i145 + -1) and res1_i149 = (res1_i147 * -1) and res_i134 = res1_i134) and !(res1_i144 != 0 and res1_i145 < 0)) and ((res2_i134 = res2_i144 and res2_i144 = res2_i146 and res2_i148 = (res2_i146 + 1) and res2_i150 = (res2_i148 * -1) and res_i134 = res2_i134) and !(res2_i144 != 0 and res2_i146 >= 0)) and ((res1_i134 = res1_i144 and res1_i144 = res1_i145 and res1_i147 = (res1_i145 + -1) and res1_i149 = (res1_i147 * -1) and res_i134 = res1_i134) and !(res1_i145 < 0 and res1_i144 < 0)) and ((res1_i134 = res1_i144 and res1_i144 = res1_i145 and res1_i147 = (res1_i145 + -1) and res1_i149 = (res1_i147 * -1) and res_i134 = res1_i134) and !(res1_i145 < 0 and res1_i144 > 0)) and ((res2_i134 = res2_i144 and res2_i144 = res2_i146 and res2_i148 = (res2_i146 + 1) and res2_i150 = (res2_i148 * -1) and res_i134 = res2_i134) and !(res2_i146 >= 0 and res2_i144 < 0)) and ((res2_i134 = res2_i144 and res2_i144 = res2_i146 and res2_i148 = (res2_i146 + 1) and res2_i150 = (res2_i148 * -1) and res_i134 = res2_i134) and !(res2_i146 >= 0 and res2_i144 > 0))))) to be UNSAT. Consequently, the loop will not terminate. ---------------------------------------- (6) NO