/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) JBCNonTerm [COMPLETE, 355 ms] (4) NO ---------------------------------------- (0) Obligation: need to prove termination of the following program: package simple.fib; public class Fibonacci { public static void fib(int n) { int i = 0; int j = 1; int t = 0; while (j != n) { t = j+i; i = j; j = t; } } } package simple.fib; public class Main { /** * @param args */ public static void main(String[] args) { Fibonacci.fib(args.length); } } ---------------------------------------- (1) BareJBCToJBCProof (EQUIVALENT) initialized classpath ---------------------------------------- (2) Obligation: need to prove termination of the following program: package simple.fib; public class Fibonacci { public static void fib(int n) { int i = 0; int j = 1; int t = 0; while (j != n) { t = j+i; i = j; j = t; } } } package simple.fib; public class Main { /** * @param args */ public static void main(String[] args) { Fibonacci.fib(args.length); } } ---------------------------------------- (3) JBCNonTerm (COMPLETE) Reached a loop using the following run: 0: a18([java.lang.String...]): length 0 -->{java.lang.Object...} YES: (JL1) 1: a18([java.lang.String...]): length 0 -->{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) 9: YES: (JL1) Start state of loop: [a7(lv_0_0)] i19: [0,+inf) i30: [0,+inf)(l3) i31: [1,+inf)(l2){0,+inf} a7([java.lang.String...]): length i19 -->{java.lang.Object...} YES: (JL1) In the loop head node, references [i31, i19, i30] 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_i19 and 0 <= initial_i30 and 1 <= initial_i31) and ((((path1_i36 = (path1_i31 + path1_i30) and path1_i19 = res_i19 and path1_i31 = res_i30 and path1_i36 = res_i31 and path1_i19 = initial_i19 and path1_i30 = initial_i30 and path1_i31 = initial_i31) and (path1_i31 != path1_i19 and path1_i31 > path1_i19)) or ((path1_i36 = (path1_i31 + path1_i30) and path1_i19 = res_i19 and path1_i31 = res_i30 and path1_i36 = res_i31 and path1_i19 = initial_i19 and path1_i30 = initial_i30 and path1_i31 = initial_i31) and (path1_i31 != path1_i19 and path1_i31 > path1_i19))) and (((res1_i36 = (res1_i31 + res1_i30) and res_i19 = res1_i19 and res_i30 = res1_i30 and res_i31 = res1_i31) and !(res1_i31 != res1_i19 and res1_i31 > res1_i19)) and ((res1_i36 = (res1_i31 + res1_i30) and res_i19 = res1_i19 and res_i30 = res1_i30 and res_i31 = res1_i31) and !(res1_i31 != res1_i19 and res1_i31 > res1_i19))))) to be UNSAT. Consequently, the loop will not terminate. ---------------------------------------- (4) NO