/export/starexec/sandbox2/solver/bin/starexec_run_standard /export/starexec/sandbox2/benchmark/theBenchmark.jar /export/starexec/sandbox2/output/output_files -------------------------------------------------------------------------------- NO proof of /export/starexec/sandbox2/benchmark/theBenchmark.jar # AProVE Commit ID: 48fb2092695e11cc9f56e44b17a92a5f88ffb256 marcel 20180622 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, 303 ms] (4) NO ---------------------------------------- (0) Obligation: need to prove termination of the following program: public class Sum { public static int sum(int n) { if (n == 0) return 0; else return n + sum(n - 1); } public static void main(String args[]) { int n = args.length; if (args.length < 5) n *= -1; sum(n); } } ---------------------------------------- (1) BareJBCToJBCProof (EQUIVALENT) initialized classpath ---------------------------------------- (2) Obligation: need to prove termination of the following program: public class Sum { public static int sum(int n) { if (n == 0) return 0; else return n + sum(n - 1); } public static void main(String args[]) { int n = args.length; if (args.length < 5) n *= -1; sum(n); } } ---------------------------------------- (3) JBCNonTerm (COMPLETE) Reached a loop using the following run: 0: a2([java.lang.String...]): length 1 -->{java.lang.Object...} YES: (JL1) 1: a2([java.lang.String...]): length 1 -->{java.lang.Object...} YES: (JL1) 2: a2([java.lang.String...]): length 1 -->{java.lang.Object...} YES: (JL1) 3: a2([java.lang.String...]): length 1 -->{java.lang.Object...} YES: (JL1) 4: a2([java.lang.String...]): length 1 -->{java.lang.Object...} YES: (JL1) 5: YES: (JL1) 6: YES: (JL1) 7: YES: (JL1) 8: YES: (JL1) 9: YES: (JL1) 10: YES: (JL1) 11: YES: (JL1) 12: YES: (JL1) 13: YES: (JL1) Start state of loop: [i45(lv_0_0)] i45: # YES: (JL1) In the loop head node, references [i45] 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_i45 = path1_i46 and path1_i47 = (path1_i46 - 1) and path1_i47 = res_i45 and path1_i45 = initial_i45) and path1_i46 < 0) and ((res1_i45 = res1_i46 and res1_i47 = (res1_i46 - 1) and res_i45 = res1_i45) and !res1_i46 < 0))) to be UNSAT. Consequently, the loop will not terminate. ---------------------------------------- (4) NO