6.51/2.69 YES 6.51/2.71 proof of /export/starexec/sandbox/benchmark/theBenchmark.jar 6.51/2.71 # AProVE Commit ID: 48fb2092695e11cc9f56e44b17a92a5f88ffb256 marcel 20180622 unpublished dirty 6.51/2.71 6.51/2.71 6.51/2.71 termination of the given Bare JBC problem could be proven: 6.51/2.71 6.51/2.71 (0) Bare JBC problem 6.51/2.71 (1) BareJBCToJBCProof [EQUIVALENT, 96 ms] 6.51/2.71 (2) JBC problem 6.51/2.71 (3) JBCToGraph [EQUIVALENT, 396 ms] 6.51/2.71 (4) JBCTerminationGraph 6.51/2.71 (5) TerminationGraphToSCCProof [SOUND, 0 ms] 6.51/2.71 (6) JBCTerminationSCC 6.51/2.71 (7) SCCToIRSProof [SOUND, 114 ms] 6.51/2.71 (8) IRSwT 6.51/2.71 (9) IRSFormatTransformerProof [EQUIVALENT, 0 ms] 6.51/2.71 (10) IRSwT 6.51/2.71 (11) IRSwTTerminationDigraphProof [EQUIVALENT, 0 ms] 6.51/2.71 (12) IRSwT 6.51/2.71 (13) IntTRSCompressionProof [EQUIVALENT, 0 ms] 6.51/2.71 (14) IRSwT 6.51/2.71 (15) TempFilterProof [SOUND, 11 ms] 6.51/2.71 (16) IntTRS 6.51/2.71 (17) PolynomialOrderProcessor [EQUIVALENT, 0 ms] 6.51/2.71 (18) YES 6.51/2.71 6.51/2.71 6.51/2.71 ---------------------------------------- 6.51/2.71 6.51/2.71 (0) 6.51/2.71 Obligation: 6.51/2.71 need to prove termination of the following program: 6.51/2.71 /** 6.51/2.71 * Example taken from "A Term Rewriting Approach to the Automated Termination 6.51/2.71 * Analysis of Imperative Programs" (http://www.cs.unm.edu/~spf/papers/2009-02.pdf) 6.51/2.71 * and converted to Java. 6.51/2.71 */ 6.51/2.71 6.51/2.71 public class PastaB14 { 6.51/2.71 public static void main(String[] args) { 6.51/2.71 Random.args = args; 6.51/2.71 int x = Random.random(); 6.51/2.71 int y = Random.random(); 6.51/2.71 6.51/2.71 while (x == y && x > 0) { 6.51/2.71 while (y > 0) { 6.51/2.71 x--; 6.51/2.71 y--; 6.51/2.71 } 6.51/2.71 } 6.51/2.71 } 6.51/2.71 } 6.51/2.71 6.51/2.71 6.51/2.71 public class Random { 6.51/2.71 static String[] args; 6.51/2.71 static int index = 0; 6.51/2.71 6.51/2.71 public static int random() { 6.51/2.71 String string = args[index]; 6.51/2.71 index++; 6.51/2.71 return string.length(); 6.51/2.71 } 6.51/2.71 } 6.51/2.71 6.51/2.71 6.51/2.71 6.51/2.71 ---------------------------------------- 6.51/2.71 6.51/2.71 (1) BareJBCToJBCProof (EQUIVALENT) 6.51/2.71 initialized classpath 6.51/2.71 ---------------------------------------- 6.51/2.71 6.51/2.71 (2) 6.51/2.71 Obligation: 6.51/2.71 need to prove termination of the following program: 6.51/2.71 /** 6.51/2.71 * Example taken from "A Term Rewriting Approach to the Automated Termination 6.51/2.71 * Analysis of Imperative Programs" (http://www.cs.unm.edu/~spf/papers/2009-02.pdf) 6.51/2.71 * and converted to Java. 6.51/2.71 */ 6.51/2.71 6.51/2.71 public class PastaB14 { 6.51/2.71 public static void main(String[] args) { 6.51/2.71 Random.args = args; 6.51/2.71 int x = Random.random(); 6.51/2.71 int y = Random.random(); 6.51/2.71 6.51/2.71 while (x == y && x > 0) { 6.51/2.71 while (y > 0) { 6.51/2.71 x--; 6.51/2.71 y--; 6.51/2.71 } 6.51/2.71 } 6.51/2.71 } 6.51/2.71 } 6.51/2.71 6.51/2.71 6.51/2.71 public class Random { 6.51/2.71 static String[] args; 6.51/2.71 static int index = 0; 6.51/2.71 6.51/2.71 public static int random() { 6.51/2.71 String string = args[index]; 6.51/2.71 index++; 6.51/2.71 return string.length(); 6.51/2.71 } 6.51/2.71 } 6.51/2.71 6.51/2.71 6.51/2.71 6.51/2.71 ---------------------------------------- 6.51/2.71 6.51/2.71 (3) JBCToGraph (EQUIVALENT) 6.51/2.71 Constructed TerminationGraph. 6.51/2.71 ---------------------------------------- 6.51/2.71 6.51/2.71 (4) 6.51/2.71 Obligation: 6.51/2.71 Termination Graph based on JBC Program: 6.51/2.71 PastaB14.main([Ljava/lang/String;)V: Graph of 189 nodes with 1 SCC. 6.51/2.71 6.51/2.71 6.51/2.71 6.51/2.71 6.51/2.71 6.51/2.71 ---------------------------------------- 6.51/2.71 6.51/2.71 (5) TerminationGraphToSCCProof (SOUND) 6.51/2.71 Splitted TerminationGraph to 1 SCCs. 6.51/2.71 ---------------------------------------- 6.51/2.71 6.51/2.71 (6) 6.51/2.71 Obligation: 6.51/2.71 SCC of termination graph based on JBC Program. 6.51/2.71 SCC contains nodes from the following methods: PastaB14.main([Ljava/lang/String;)V 6.51/2.71 SCC calls the following helper methods: 6.51/2.71 Performed SCC analyses: 6.51/2.71 *Used field analysis yielded the following read fields: 6.51/2.71 6.51/2.71 *Marker field analysis yielded the following relations that could be markers: 6.51/2.71 6.51/2.71 ---------------------------------------- 6.51/2.71 6.51/2.71 (7) SCCToIRSProof (SOUND) 6.51/2.71 Transformed FIGraph SCCs to intTRSs. Log: 6.51/2.71 Generated rules. Obtained 20 IRulesP rules: 6.51/2.71 f1091_0_main_Load(EOS(STATIC_1091), i211, i212, i211) -> f1092_0_main_NE(EOS(STATIC_1092), i211, i212, i211, i212) :|: TRUE 6.51/2.71 f1092_0_main_NE(EOS(STATIC_1092), i212, i212, i212, i212) -> f1099_0_main_NE(EOS(STATIC_1099), i212, i212, i212, i212) :|: i211 = i212 6.51/2.71 f1099_0_main_NE(EOS(STATIC_1099), i212, i212, i212, i212) -> f1115_0_main_Load(EOS(STATIC_1115), i212, i212) :|: TRUE 6.51/2.71 f1115_0_main_Load(EOS(STATIC_1115), i212, i212) -> f1117_0_main_LE(EOS(STATIC_1117), i212, i212, i212) :|: TRUE 6.51/2.71 f1117_0_main_LE(EOS(STATIC_1117), i232, i232, i232) -> f1121_0_main_LE(EOS(STATIC_1121), i232, i232, i232) :|: TRUE 6.51/2.71 f1121_0_main_LE(EOS(STATIC_1121), i232, i232, i232) -> f1125_0_main_Load(EOS(STATIC_1125), i232, i232) :|: i232 > 0 6.51/2.71 f1125_0_main_Load(EOS(STATIC_1125), i232, i232) -> f1148_0_main_Load(EOS(STATIC_1148), i232, i232) :|: TRUE 6.51/2.71 f1148_0_main_Load(EOS(STATIC_1148), i237, i238) -> f1202_0_main_Load(EOS(STATIC_1202), i237, i238) :|: TRUE 6.51/2.71 f1202_0_main_Load(EOS(STATIC_1202), i255, i256) -> f1265_0_main_Load(EOS(STATIC_1265), i255, i256) :|: TRUE 6.51/2.71 f1265_0_main_Load(EOS(STATIC_1265), i273, i274) -> f1269_0_main_LE(EOS(STATIC_1269), i273, i274, i274) :|: TRUE 6.51/2.71 f1269_0_main_LE(EOS(STATIC_1269), i273, matching1, matching2) -> f1272_0_main_LE(EOS(STATIC_1272), i273, 0, 0) :|: TRUE && matching1 = 0 && matching2 = 0 6.51/2.71 f1269_0_main_LE(EOS(STATIC_1269), i273, i283, i283) -> f1273_0_main_LE(EOS(STATIC_1273), i273, i283, i283) :|: TRUE 6.51/2.71 f1272_0_main_LE(EOS(STATIC_1272), i273, matching1, matching2) -> f1293_0_main_Load(EOS(STATIC_1293), i273, 0) :|: 0 <= 0 && matching1 = 0 && matching2 = 0 6.51/2.71 f1293_0_main_Load(EOS(STATIC_1293), i273, matching1) -> f1084_0_main_Load(EOS(STATIC_1084), i273, 0) :|: TRUE && matching1 = 0 6.51/2.71 f1084_0_main_Load(EOS(STATIC_1084), i211, i212) -> f1091_0_main_Load(EOS(STATIC_1091), i211, i212, i211) :|: TRUE 6.51/2.71 f1273_0_main_LE(EOS(STATIC_1273), i273, i283, i283) -> f1294_0_main_Inc(EOS(STATIC_1294), i273, i283) :|: i283 > 0 6.51/2.71 f1294_0_main_Inc(EOS(STATIC_1294), i273, i283) -> f1295_0_main_Inc(EOS(STATIC_1295), i273 + -1, i283) :|: TRUE 6.51/2.71 f1295_0_main_Inc(EOS(STATIC_1295), i291, i283) -> f1296_0_main_JMP(EOS(STATIC_1296), i291, i283 + -1) :|: TRUE 6.51/2.71 f1296_0_main_JMP(EOS(STATIC_1296), i291, i292) -> f1307_0_main_Load(EOS(STATIC_1307), i291, i292) :|: TRUE 6.51/2.71 f1307_0_main_Load(EOS(STATIC_1307), i291, i292) -> f1265_0_main_Load(EOS(STATIC_1265), i291, i292) :|: TRUE 6.51/2.71 Combined rules. Obtained 1 IRulesP rules: 6.51/2.71 f1269_0_main_LE(EOS(STATIC_1269), i273:0, i283:0, i283:0) -> f1269_0_main_LE(EOS(STATIC_1269), i273:0 - 1, i283:0 - 1, i283:0 - 1) :|: i283:0 > 0 6.51/2.71 Filtered constant ground arguments: 6.51/2.71 f1269_0_main_LE(x1, x2, x3, x4) -> f1269_0_main_LE(x2, x3, x4) 6.51/2.71 EOS(x1) -> EOS 6.51/2.71 Filtered duplicate arguments: 6.51/2.71 f1269_0_main_LE(x1, x2, x3) -> f1269_0_main_LE(x1, x3) 6.51/2.71 Filtered unneeded arguments: 6.51/2.71 f1269_0_main_LE(x1, x2) -> f1269_0_main_LE(x2) 6.51/2.71 Finished conversion. Obtained 1 rules.P rules: 6.51/2.71 f1269_0_main_LE(i283:0) -> f1269_0_main_LE(i283:0 - 1) :|: i283:0 > 0 6.51/2.71 6.51/2.71 ---------------------------------------- 6.51/2.71 6.51/2.71 (8) 6.51/2.71 Obligation: 6.51/2.71 Rules: 6.51/2.71 f1269_0_main_LE(i283:0) -> f1269_0_main_LE(i283:0 - 1) :|: i283:0 > 0 6.51/2.71 6.51/2.71 ---------------------------------------- 6.51/2.71 6.51/2.71 (9) IRSFormatTransformerProof (EQUIVALENT) 6.51/2.71 Reformatted IRS to match normalized format (transformed away non-linear left-hand sides, !=, / and %). 6.51/2.71 ---------------------------------------- 6.51/2.71 6.51/2.71 (10) 6.51/2.71 Obligation: 6.51/2.71 Rules: 6.51/2.71 f1269_0_main_LE(i283:0) -> f1269_0_main_LE(arith) :|: i283:0 > 0 && arith = i283:0 - 1 6.51/2.71 6.51/2.71 ---------------------------------------- 6.51/2.71 6.51/2.71 (11) IRSwTTerminationDigraphProof (EQUIVALENT) 6.51/2.71 Constructed termination digraph! 6.51/2.71 Nodes: 6.51/2.71 (1) f1269_0_main_LE(i283:0) -> f1269_0_main_LE(arith) :|: i283:0 > 0 && arith = i283:0 - 1 6.51/2.71 6.51/2.71 Arcs: 6.51/2.71 (1) -> (1) 6.51/2.71 6.51/2.71 This digraph is fully evaluated! 6.51/2.71 ---------------------------------------- 6.51/2.71 6.51/2.71 (12) 6.51/2.71 Obligation: 6.51/2.71 6.51/2.71 Termination digraph: 6.51/2.71 Nodes: 6.51/2.71 (1) f1269_0_main_LE(i283:0) -> f1269_0_main_LE(arith) :|: i283:0 > 0 && arith = i283:0 - 1 6.51/2.71 6.51/2.71 Arcs: 6.51/2.71 (1) -> (1) 6.51/2.71 6.51/2.71 This digraph is fully evaluated! 6.51/2.71 6.51/2.71 ---------------------------------------- 6.51/2.71 6.51/2.71 (13) IntTRSCompressionProof (EQUIVALENT) 6.51/2.71 Compressed rules. 6.51/2.71 ---------------------------------------- 6.51/2.71 6.51/2.71 (14) 6.51/2.71 Obligation: 6.51/2.71 Rules: 6.51/2.71 f1269_0_main_LE(i283:0:0) -> f1269_0_main_LE(i283:0:0 - 1) :|: i283:0:0 > 0 6.51/2.71 6.51/2.71 ---------------------------------------- 6.51/2.71 6.51/2.71 (15) TempFilterProof (SOUND) 6.51/2.71 Used the following sort dictionary for filtering: 6.51/2.71 f1269_0_main_LE(INTEGER) 6.51/2.71 Replaced non-predefined constructor symbols by 0. 6.51/2.71 ---------------------------------------- 6.51/2.71 6.51/2.71 (16) 6.51/2.71 Obligation: 6.51/2.71 Rules: 6.51/2.71 f1269_0_main_LE(i283:0:0) -> f1269_0_main_LE(c) :|: c = i283:0:0 - 1 && i283:0:0 > 0 6.51/2.71 6.51/2.71 ---------------------------------------- 6.51/2.71 6.51/2.71 (17) PolynomialOrderProcessor (EQUIVALENT) 6.51/2.71 Found the following polynomial interpretation: 6.51/2.71 [f1269_0_main_LE(x)] = x 6.51/2.71 6.51/2.71 The following rules are decreasing: 6.51/2.71 f1269_0_main_LE(i283:0:0) -> f1269_0_main_LE(c) :|: c = i283:0:0 - 1 && i283:0:0 > 0 6.51/2.71 The following rules are bounded: 6.51/2.71 f1269_0_main_LE(i283:0:0) -> f1269_0_main_LE(c) :|: c = i283:0:0 - 1 && i283:0:0 > 0 6.51/2.71 6.51/2.71 ---------------------------------------- 6.51/2.71 6.51/2.71 (18) 6.51/2.71 YES 6.83/2.74 EOF