/export/starexec/sandbox2/solver/bin/starexec_run_standard /export/starexec/sandbox2/benchmark/theBenchmark.jar /export/starexec/sandbox2/output/output_files -------------------------------------------------------------------------------- YES proof of /export/starexec/sandbox2/benchmark/theBenchmark.jar # AProVE Commit ID: 794c25de1cacf0d048858bcd21c9a779e1221865 marcel 20200619 unpublished dirty termination of the given Bare JBC problem could be proven: (0) Bare JBC problem (1) BareJBCToJBCProof [EQUIVALENT, 96 ms] (2) JBC problem (3) JBCToGraph [EQUIVALENT, 322 ms] (4) JBCTerminationGraph (5) TerminationGraphToSCCProof [SOUND, 2 ms] (6) TRUE ---------------------------------------- (0) Obligation: need to prove termination of the following program: package ClassAnalysis; public class ClassAnalysis { A field; public static void main(String[] args) { Random.args = args; ClassAnalysis t = new ClassAnalysis(); t.field = new A(); t.field = new B(); t.eval(); } public void eval() { int x = Random.random() % 100; this.field.test(x); } } class A { public boolean test(int x) { while (x > 0) { if (x > 10) { x--; } else { x++; } } return true; } } class B extends A { public boolean test(int x) { while (x > 0) { x--; } return true; } } package ClassAnalysis; public class Random { static String[] args; static int index = 0; public static int random() { final String string = args[index]; index++; return string.length(); } } ---------------------------------------- (1) BareJBCToJBCProof (EQUIVALENT) initialized classpath ---------------------------------------- (2) Obligation: need to prove termination of the following program: package ClassAnalysis; public class ClassAnalysis { A field; public static void main(String[] args) { Random.args = args; ClassAnalysis t = new ClassAnalysis(); t.field = new A(); t.field = new B(); t.eval(); } public void eval() { int x = Random.random() % 100; this.field.test(x); } } class A { public boolean test(int x) { while (x > 0) { if (x > 10) { x--; } else { x++; } } return true; } } class B extends A { public boolean test(int x) { while (x > 0) { x--; } return true; } } package ClassAnalysis; public class Random { static String[] args; static int index = 0; public static int random() { final String string = args[index]; index++; return string.length(); } } ---------------------------------------- (3) JBCToGraph (EQUIVALENT) Constructed TerminationGraph. ---------------------------------------- (4) Obligation: Termination Graph based on JBC Program: ClassAnalysis.ClassAnalysis.main([Ljava/lang/String;)V: Graph of 1330 nodes with 0 SCCs. ---------------------------------------- (5) TerminationGraphToSCCProof (SOUND) Proven termination by absence of SCCs ---------------------------------------- (6) TRUE