/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: 48fb2092695e11cc9f56e44b17a92a5f88ffb256 marcel 20180622 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, 169 ms] (4) JBCTerminationGraph (5) TerminationGraphToSCCProof [SOUND, 0 ms] (6) JBCTerminationSCC (7) SCCToIRSProof [SOUND, 75 ms] (8) IRSwT (9) IRSFormatTransformerProof [EQUIVALENT, 0 ms] (10) IRSwT (11) IRSwTTerminationDigraphProof [EQUIVALENT, 18 ms] (12) IRSwT (13) IntTRSCompressionProof [EQUIVALENT, 0 ms] (14) IRSwT (15) TempFilterProof [SOUND, 14 ms] (16) IntTRS (17) PolynomialOrderProcessor [EQUIVALENT, 0 ms] (18) YES ---------------------------------------- (0) Obligation: need to prove termination of the following program: /** * A recursive loop. * * All calls terminate. * * Julia + BinTerm prove that all calls terminate. * * @author Fausto Spoto */ public class Double2 { private static void test(int n) { for (int i = n - 1; i >= 0; i--) test(i); } public static void main(String[] args) { test(10); } } ---------------------------------------- (1) BareJBCToJBCProof (EQUIVALENT) initialized classpath ---------------------------------------- (2) Obligation: need to prove termination of the following program: /** * A recursive loop. * * All calls terminate. * * Julia + BinTerm prove that all calls terminate. * * @author Fausto Spoto */ public class Double2 { private static void test(int n) { for (int i = n - 1; i >= 0; i--) test(i); } public static void main(String[] args) { test(10); } } ---------------------------------------- (3) JBCToGraph (EQUIVALENT) Constructed TerminationGraph. ---------------------------------------- (4) Obligation: Termination Graph based on JBC Program: Double2.main([Ljava/lang/String;)V: Graph of 7 nodes with 0 SCCs. Double2.test(I)V: Graph of 18 nodes with 1 SCC. ---------------------------------------- (5) TerminationGraphToSCCProof (SOUND) Splitted TerminationGraph to 1 SCCs. ---------------------------------------- (6) Obligation: SCC of termination graph based on JBC Program. SCC contains nodes from the following methods: Double2.test(I)V SCC calls the following helper methods: Double2.test(I)V Performed SCC analyses: *Used field analysis yielded the following read fields: *Marker field analysis yielded the following relations that could be markers: ---------------------------------------- (7) SCCToIRSProof (SOUND) Transformed FIGraph SCCs to intTRSs. Log: Generated rules. Obtained 17 IRulesP rules: f120_0_test_ConstantStackPush(EOS(STATIC_120), i10, i11) -> f121_0_test_IntArithmetic(EOS(STATIC_121), i10, i11, 1) :|: TRUE f121_0_test_IntArithmetic(EOS(STATIC_121), i10, i11, matching1) -> f123_0_test_Store(EOS(STATIC_123), i10, i11 - 1) :|: TRUE && matching1 = 1 f123_0_test_Store(EOS(STATIC_123), i10, i12) -> f125_0_test_Load(EOS(STATIC_125), i10, i12) :|: TRUE f125_0_test_Load(EOS(STATIC_125), i10, i12) -> f127_0_test_LT(EOS(STATIC_127), i10, i12, i12) :|: TRUE f127_0_test_LT(EOS(STATIC_127), i10, i14, i14) -> f136_0_test_LT(EOS(STATIC_136), i10, i14, i14) :|: TRUE f136_0_test_LT(EOS(STATIC_136), i10, i14, i14) -> f141_0_test_Load(EOS(STATIC_141), i10, i14) :|: i14 >= 0 f141_0_test_Load(EOS(STATIC_141), i10, i14) -> f147_0_test_InvokeMethod(EOS(STATIC_147), i10, i14, i14) :|: TRUE f147_0_test_InvokeMethod(EOS(STATIC_147), i10, i14, i14) -> f186_0_test_Load(EOS(STATIC_186), i14, i14) :|: TRUE f147_0_test_InvokeMethod(EOS(STATIC_147), i10, i14, i14) -> f186_1_test_Load(EOS(STATIC_186), i10, i14, i14) :|: TRUE f186_0_test_Load(EOS(STATIC_186), i14, i14) -> f191_0_test_Load(EOS(STATIC_191), i14, i14) :|: TRUE f191_0_test_Load(EOS(STATIC_191), i14, i14) -> f119_0_test_Load(EOS(STATIC_119), i14, i14) :|: TRUE f119_0_test_Load(EOS(STATIC_119), i10, i11) -> f120_0_test_ConstantStackPush(EOS(STATIC_120), i10, i11) :|: TRUE f1059_0_test_Return(EOS(STATIC_1059), i10, i21) -> f1062_0_test_Inc(EOS(STATIC_1062), i10, i21) :|: TRUE f1062_0_test_Inc(EOS(STATIC_1062), i10, i21) -> f1066_0_test_JMP(EOS(STATIC_1066), i10, i21 + -1) :|: TRUE f1066_0_test_JMP(EOS(STATIC_1066), i10, i22) -> f1100_0_test_Load(EOS(STATIC_1100), i10, i22) :|: TRUE f1100_0_test_Load(EOS(STATIC_1100), i10, i22) -> f125_0_test_Load(EOS(STATIC_125), i10, i22) :|: TRUE f186_1_test_Load(EOS(STATIC_186), i10, i21, i21) -> f1059_0_test_Return(EOS(STATIC_1059), i10, i21) :|: TRUE Combined rules. Obtained 2 IRulesP rules: f147_0_test_InvokeMethod(EOS(STATIC_147), i10:0, i14:0, i14:0) -> f147_0_test_InvokeMethod(EOS(STATIC_147), i14:0, i14:0 - 1, i14:0 - 1) :|: i14:0 > 0 f147_0_test_InvokeMethod(EOS(STATIC_147), i10:0, i14:0, i14:0) -> f147_0_test_InvokeMethod(EOS(STATIC_147), i10:0, i14:0 - 1, i14:0 - 1) :|: i14:0 > 0 Filtered constant ground arguments: f147_0_test_InvokeMethod(x1, x2, x3, x4) -> f147_0_test_InvokeMethod(x2, x3, x4) EOS(x1) -> EOS Filtered duplicate arguments: f147_0_test_InvokeMethod(x1, x2, x3) -> f147_0_test_InvokeMethod(x1, x3) Filtered unneeded arguments: f147_0_test_InvokeMethod(x1, x2) -> f147_0_test_InvokeMethod(x2) Finished conversion. Obtained 1 rules.P rules: f147_0_test_InvokeMethod(i14:0) -> f147_0_test_InvokeMethod(i14:0 - 1) :|: i14:0 > 0 ---------------------------------------- (8) Obligation: Rules: f147_0_test_InvokeMethod(i14:0) -> f147_0_test_InvokeMethod(i14:0 - 1) :|: i14:0 > 0 ---------------------------------------- (9) IRSFormatTransformerProof (EQUIVALENT) Reformatted IRS to match normalized format (transformed away non-linear left-hand sides, !=, / and %). ---------------------------------------- (10) Obligation: Rules: f147_0_test_InvokeMethod(i14:0) -> f147_0_test_InvokeMethod(arith) :|: i14:0 > 0 && arith = i14:0 - 1 ---------------------------------------- (11) IRSwTTerminationDigraphProof (EQUIVALENT) Constructed termination digraph! Nodes: (1) f147_0_test_InvokeMethod(i14:0) -> f147_0_test_InvokeMethod(arith) :|: i14:0 > 0 && arith = i14:0 - 1 Arcs: (1) -> (1) This digraph is fully evaluated! ---------------------------------------- (12) Obligation: Termination digraph: Nodes: (1) f147_0_test_InvokeMethod(i14:0) -> f147_0_test_InvokeMethod(arith) :|: i14:0 > 0 && arith = i14:0 - 1 Arcs: (1) -> (1) This digraph is fully evaluated! ---------------------------------------- (13) IntTRSCompressionProof (EQUIVALENT) Compressed rules. ---------------------------------------- (14) Obligation: Rules: f147_0_test_InvokeMethod(i14:0:0) -> f147_0_test_InvokeMethod(i14:0:0 - 1) :|: i14:0:0 > 0 ---------------------------------------- (15) TempFilterProof (SOUND) Used the following sort dictionary for filtering: f147_0_test_InvokeMethod(INTEGER) Replaced non-predefined constructor symbols by 0. ---------------------------------------- (16) Obligation: Rules: f147_0_test_InvokeMethod(i14:0:0) -> f147_0_test_InvokeMethod(c) :|: c = i14:0:0 - 1 && i14:0:0 > 0 ---------------------------------------- (17) PolynomialOrderProcessor (EQUIVALENT) Found the following polynomial interpretation: [f147_0_test_InvokeMethod(x)] = x The following rules are decreasing: f147_0_test_InvokeMethod(i14:0:0) -> f147_0_test_InvokeMethod(c) :|: c = i14:0:0 - 1 && i14:0:0 > 0 The following rules are bounded: f147_0_test_InvokeMethod(i14:0:0) -> f147_0_test_InvokeMethod(c) :|: c = i14:0:0 - 1 && i14:0:0 > 0 ---------------------------------------- (18) YES