/export/starexec/sandbox/solver/bin/starexec_run_standard /export/starexec/sandbox/benchmark/theBenchmark.jar /export/starexec/sandbox/output/output_files -------------------------------------------------------------------------------- YES proof of /export/starexec/sandbox/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, 195 ms] (4) JBCTerminationGraph (5) TerminationGraphToSCCProof [SOUND, 1 ms] (6) JBCTerminationSCC (7) SCCToIRSProof [SOUND, 73 ms] (8) IRSwT (9) IRSFormatTransformerProof [EQUIVALENT, 0 ms] (10) IRSwT (11) IRSwTTerminationDigraphProof [EQUIVALENT, 5 ms] (12) IRSwT (13) IntTRSCompressionProof [EQUIVALENT, 0 ms] (14) IRSwT (15) IRSwTChainingProof [EQUIVALENT, 0 ms] (16) IRSwT (17) IRSwTTerminationDigraphProof [EQUIVALENT, 0 ms] (18) TRUE ---------------------------------------- (0) Obligation: need to prove termination of the following program: public class Random { static String[] args; static int index = 0; public static int random() { String string = args[index]; index++; return string.length(); } } public class Round3{ public static void main(String[] args) { Random.args = args; int x = Random.random(); while (x % 3 != 0) { x++; } } } ---------------------------------------- (1) BareJBCToJBCProof (EQUIVALENT) initialized classpath ---------------------------------------- (2) Obligation: need to prove termination of the following program: public class Random { static String[] args; static int index = 0; public static int random() { String string = args[index]; index++; return string.length(); } } public class Round3{ public static void main(String[] args) { Random.args = args; int x = Random.random(); while (x % 3 != 0) { x++; } } } ---------------------------------------- (3) JBCToGraph (EQUIVALENT) Constructed TerminationGraph. ---------------------------------------- (4) Obligation: Termination Graph based on JBC Program: Round3.main([Ljava/lang/String;)V: Graph of 108 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: Round3.main([Ljava/lang/String;)V SCC calls the following helper methods: 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 8 IRulesP rules: f122_0_main_ConstantStackPush(EOS(STATIC_122), i19, i19) -> f126_0_main_IntArithmetic(EOS(STATIC_126), i19, i19, 3) :|: TRUE f126_0_main_IntArithmetic(EOS(STATIC_126), i19, i19, matching1) -> f129_0_main_EQ(EOS(STATIC_129), i19, i19 % 3) :|: TRUE && matching1 = 3 f129_0_main_EQ(EOS(STATIC_129), i19, i22) -> f134_0_main_EQ(EOS(STATIC_134), i19, i22) :|: TRUE f134_0_main_EQ(EOS(STATIC_134), i19, i22) -> f144_0_main_Inc(EOS(STATIC_144), i19) :|: i22 > 0 f144_0_main_Inc(EOS(STATIC_144), i19) -> f156_0_main_JMP(EOS(STATIC_156), i19 + 1) :|: TRUE f156_0_main_JMP(EOS(STATIC_156), i24) -> f184_0_main_Load(EOS(STATIC_184), i24) :|: TRUE f184_0_main_Load(EOS(STATIC_184), i24) -> f118_0_main_Load(EOS(STATIC_118), i24) :|: TRUE f118_0_main_Load(EOS(STATIC_118), i19) -> f122_0_main_ConstantStackPush(EOS(STATIC_122), i19, i19) :|: TRUE Combined rules. Obtained 2 IRulesP rules: f122_0_main_ConstantStackPush(EOS(STATIC_122), i19:0, i19:0) -> f122_0_main_ConstantStackPush'(EOS(STATIC_122), i19:0, i19:0) :|: i19:0 - 3 * div > 0 f122_0_main_ConstantStackPush'(EOS(STATIC_122), i19:0, i19:0) -> f122_0_main_ConstantStackPush(EOS(STATIC_122), i19:0 + 1, i19:0 + 1) :|: i19:0 - 3 * div < 3 && i19:0 - 3 * div > 0 Filtered constant ground arguments: f122_0_main_ConstantStackPush(x1, x2, x3) -> f122_0_main_ConstantStackPush(x2, x3) f122_0_main_ConstantStackPush'(x1, x2, x3) -> f122_0_main_ConstantStackPush'(x2, x3) EOS(x1) -> EOS Filtered duplicate arguments: f122_0_main_ConstantStackPush(x1, x2) -> f122_0_main_ConstantStackPush(x2) f122_0_main_ConstantStackPush'(x1, x2) -> f122_0_main_ConstantStackPush'(x2) Finished conversion. Obtained 2 rules.P rules: f122_0_main_ConstantStackPush(i19:0) -> f122_0_main_ConstantStackPush'(i19:0) :|: i19:0 - 3 * div > 0 f122_0_main_ConstantStackPush'(i19:0) -> f122_0_main_ConstantStackPush(i19:0 + 1) :|: i19:0 - 3 * div < 3 && i19:0 - 3 * div > 0 ---------------------------------------- (8) Obligation: Rules: f122_0_main_ConstantStackPush(x) -> f122_0_main_ConstantStackPush'(x) :|: x - 3 * x1 > 0 f122_0_main_ConstantStackPush'(x2) -> f122_0_main_ConstantStackPush(x2 + 1) :|: x2 - 3 * x3 < 3 && x2 - 3 * x3 > 0 ---------------------------------------- (9) IRSFormatTransformerProof (EQUIVALENT) Reformatted IRS to match normalized format (transformed away non-linear left-hand sides, !=, / and %). ---------------------------------------- (10) Obligation: Rules: f122_0_main_ConstantStackPush(x) -> f122_0_main_ConstantStackPush'(x) :|: x - 3 * x1 > 0 f122_0_main_ConstantStackPush'(x2) -> f122_0_main_ConstantStackPush(arith) :|: x2 - 3 * x3 < 3 && x2 - 3 * x3 > 0 && arith = x2 + 1 ---------------------------------------- (11) IRSwTTerminationDigraphProof (EQUIVALENT) Constructed termination digraph! Nodes: (1) f122_0_main_ConstantStackPush(x) -> f122_0_main_ConstantStackPush'(x) :|: x - 3 * x1 > 0 (2) f122_0_main_ConstantStackPush'(x2) -> f122_0_main_ConstantStackPush(arith) :|: x2 - 3 * x3 < 3 && x2 - 3 * x3 > 0 && arith = x2 + 1 Arcs: (1) -> (2) (2) -> (1) This digraph is fully evaluated! ---------------------------------------- (12) Obligation: Termination digraph: Nodes: (1) f122_0_main_ConstantStackPush(x) -> f122_0_main_ConstantStackPush'(x) :|: x - 3 * x1 > 0 (2) f122_0_main_ConstantStackPush'(x2) -> f122_0_main_ConstantStackPush(arith) :|: x2 - 3 * x3 < 3 && x2 - 3 * x3 > 0 && arith = x2 + 1 Arcs: (1) -> (2) (2) -> (1) This digraph is fully evaluated! ---------------------------------------- (13) IntTRSCompressionProof (EQUIVALENT) Compressed rules. ---------------------------------------- (14) Obligation: Rules: f122_0_main_ConstantStackPush(x:0) -> f122_0_main_ConstantStackPush(x:0 + 1) :|: x:0 - 3 * x3:0 < 3 && x:0 - 3 * x3:0 > 0 && x:0 - 3 * x1:0 > 0 ---------------------------------------- (15) IRSwTChainingProof (EQUIVALENT) Chaining! ---------------------------------------- (16) Obligation: Rules: f122_0_main_ConstantStackPush(x) -> f122_0_main_ConstantStackPush(x + 2) :|: TRUE && x + -3 * x1 <= 2 && x + -3 * x1 >= 1 && x + -3 * x2 >= 1 && x + -3 * x4 <= 1 && x + -3 * x4 >= 0 && x + -3 * x5 >= 0 ---------------------------------------- (17) IRSwTTerminationDigraphProof (EQUIVALENT) Constructed termination digraph! Nodes: (1) f122_0_main_ConstantStackPush(x) -> f122_0_main_ConstantStackPush(x + 2) :|: TRUE && x + -3 * x1 <= 2 && x + -3 * x1 >= 1 && x + -3 * x2 >= 1 && x + -3 * x4 <= 1 && x + -3 * x4 >= 0 && x + -3 * x5 >= 0 No arcs! This digraph is fully evaluated! ---------------------------------------- (18) TRUE