/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, 97 ms] (2) JBC problem (3) JBCToGraph [EQUIVALENT, 256 ms] (4) JBCTerminationGraph (5) JBCNonTerm [COMPLETE, 50 ms] (6) NO ---------------------------------------- (0) Obligation: need to prove termination of the following program: /** * A loop continously throwing and catching an exception. * The exception is thrown before the statement that makes the loop * progress, but another statement inside the exception catcher make the * loop progress. However, this is not enough to prove progression since * i is decreased at the beginning of the loop. * * The call to main() diverges. * * Julia + BinTerm cannot prove that the call to main() terminates. * * @author Fausto Spoto */ public class Exc4 { public static void main(String[] args) { int i = 0; while (i < 20) { i--; try { if (i > 10) throw null; i += 2; } catch (NullPointerException e) { i++; } } } } ---------------------------------------- (1) BareJBCToJBCProof (EQUIVALENT) initialized classpath ---------------------------------------- (2) Obligation: need to prove termination of the following program: /** * A loop continously throwing and catching an exception. * The exception is thrown before the statement that makes the loop * progress, but another statement inside the exception catcher make the * loop progress. However, this is not enough to prove progression since * i is decreased at the beginning of the loop. * * The call to main() diverges. * * Julia + BinTerm cannot prove that the call to main() terminates. * * @author Fausto Spoto */ public class Exc4 { public static void main(String[] args) { int i = 0; while (i < 20) { i--; try { if (i > 10) throw null; i += 2; } catch (NullPointerException e) { i++; } } } } ---------------------------------------- (3) JBCToGraph (EQUIVALENT) Constructed TerminationGraph. ---------------------------------------- (4) Obligation: Termination Graph based on JBC Program: Exc4.main([Ljava/lang/String;)V: Graph of 47 nodes with 1 SCC. ---------------------------------------- (5) JBCNonTerm (COMPLETE) Reached a loop using the following run: 0: YES: (JL1) 1: YES: (JL1) 2: YES: (JL1) Start state of loop: [o12(lv_0_0)] o12([java.lang.String...]): Object() -->{java.lang.Object...} i9: # YES: (JL1) In the loop head node, references [i9] were interesting. All methods calls in the loop body are side-effect free, hence they can be ignored. By SMT, we could prove (T and ((((path1_i9 = path1_i11 and path1_i13 = (path1_i11 + -1) and path1_i13 = path1_i14 and path1_i16 = (path1_i14 + 2) and path1_i16 = res_i9 and path1_i9 = initial_i9) and (T and 20 = 20 and path1_i11 < 20 and T and 10 = 10 and path1_i14 <= 10)) or ((path2_i9 = path2_i11 and path2_i13 = (path2_i11 + -1) and path2_i13 = path2_i15 and path2_i18 = (path2_i15 + 1) and path2_i18 = res_i9 and path2_i9 = initial_i9) and (T and 20 = 20 and path2_i11 < 20 and T and 10 = 10 and path2_i15 > 10))) and (((res1_i9 = res1_i11 and res1_i13 = (res1_i11 + -1) and res1_i13 = res1_i14 and res1_i16 = (res1_i14 + 2) and res_i9 = res1_i9) and !(T and 20 = 20 and res1_i11 < 20 and T and 10 = 10 and res1_i14 <= 10)) and ((res2_i9 = res2_i11 and res2_i13 = (res2_i11 + -1) and res2_i13 = res2_i15 and res2_i18 = (res2_i15 + 1) and res_i9 = res2_i9) and !(T and 20 = 20 and res2_i11 < 20 and T and 10 = 10 and res2_i15 > 10))))) to be UNSAT. Consequently, the loop will not terminate. ---------------------------------------- (6) NO