MAYBE Initial complexity problem: 1: T: (?, 1) f47(a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t) -> f47(a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t) (?, 1) f49(a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t) -> f52(a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t) (?, 1) f11(a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t) -> f47(a, b, 0, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t) [ a >= b ] (?, 1) f35(a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t) -> f47(a, b, 0, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t) [ d >= 3 ] (?, 1) f35(a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t) -> f47(a, b, 0, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t) [ 1 >= d ] (?, 1) f35(a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t) -> f47(a, b, 0, 2, f, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t) [ d = 2 ] (?, 1) f11(a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t) -> f47(a, b, 0, d, e, u, v, w, x, c, u, u, m, n, o, p, q, r, s, t) [ u >= 1 /\ b >= a + 1 ] (?, 1) f11(a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t) -> f35(a, b, c, y, e, u, v, w, x, c, u, u, u, o, 0, y, y, 0, s, t) [ b >= a + 1 /\ 0 >= u /\ y >= 2 ] (?, 1) f11(a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t) -> f35(a, b, c, y, e, u, v, w, x, c, u, u, u, o, 0, y, y, 0, s, t) [ b >= a + 1 /\ 0 >= u /\ 0 >= y ] (?, 1) f11(a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t) -> f11(a + 1, b, c, 1, e, u, v, w, x, c, u, u, u, o, o, 1, 1, 0, s, t) [ 0 >= u /\ b >= a + 1 ] (1, 1) f0(a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t) -> f11(a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, 0, 0) start location: f0 leaf cost: 0 Slicing away variables that do not contribute to conditions from problem 1 leaves variables [a, b, d]. We thus obtain the following problem: 2: T: (1, 1) f0(a, b, d) -> f11(a, b, d) (?, 1) f11(a, b, d) -> f11(a + 1, b, 1) [ 0 >= u /\ b >= a + 1 ] (?, 1) f11(a, b, d) -> f35(a, b, y) [ b >= a + 1 /\ 0 >= u /\ 0 >= y ] (?, 1) f11(a, b, d) -> f35(a, b, y) [ b >= a + 1 /\ 0 >= u /\ y >= 2 ] (?, 1) f11(a, b, d) -> f47(a, b, d) [ u >= 1 /\ b >= a + 1 ] (?, 1) f35(a, b, d) -> f47(a, b, 2) [ d = 2 ] (?, 1) f35(a, b, d) -> f47(a, b, d) [ 1 >= d ] (?, 1) f35(a, b, d) -> f47(a, b, d) [ d >= 3 ] (?, 1) f11(a, b, d) -> f47(a, b, d) [ a >= b ] (?, 1) f49(a, b, d) -> f52(a, b, d) (?, 1) f47(a, b, d) -> f47(a, b, d) start location: f0 leaf cost: 0 Repeatedly removing leaves of the complexity graph in problem 2 produces the following problem: 3: T: (1, 1) f0(a, b, d) -> f11(a, b, d) (?, 1) f11(a, b, d) -> f11(a + 1, b, 1) [ 0 >= u /\ b >= a + 1 ] (?, 1) f11(a, b, d) -> f35(a, b, y) [ b >= a + 1 /\ 0 >= u /\ 0 >= y ] (?, 1) f11(a, b, d) -> f35(a, b, y) [ b >= a + 1 /\ 0 >= u /\ y >= 2 ] (?, 1) f11(a, b, d) -> f47(a, b, d) [ u >= 1 /\ b >= a + 1 ] (?, 1) f35(a, b, d) -> f47(a, b, 2) [ d = 2 ] (?, 1) f35(a, b, d) -> f47(a, b, d) [ 1 >= d ] (?, 1) f35(a, b, d) -> f47(a, b, d) [ d >= 3 ] (?, 1) f11(a, b, d) -> f47(a, b, d) [ a >= b ] (?, 1) f47(a, b, d) -> f47(a, b, d) start location: f0 leaf cost: 1 A polynomial rank function with Pol(f0) = 2 Pol(f11) = 2 Pol(f35) = 1 Pol(f47) = 0 orients all transitions weakly and the transitions f35(a, b, d) -> f47(a, b, 2) [ d = 2 ] f35(a, b, d) -> f47(a, b, d) [ 1 >= d ] f35(a, b, d) -> f47(a, b, d) [ d >= 3 ] f11(a, b, d) -> f47(a, b, d) [ u >= 1 /\ b >= a + 1 ] f11(a, b, d) -> f47(a, b, d) [ a >= b ] f11(a, b, d) -> f35(a, b, y) [ b >= a + 1 /\ 0 >= u /\ y >= 2 ] f11(a, b, d) -> f35(a, b, y) [ b >= a + 1 /\ 0 >= u /\ 0 >= y ] strictly and produces the following problem: 4: T: (1, 1) f0(a, b, d) -> f11(a, b, d) (?, 1) f11(a, b, d) -> f11(a + 1, b, 1) [ 0 >= u /\ b >= a + 1 ] (2, 1) f11(a, b, d) -> f35(a, b, y) [ b >= a + 1 /\ 0 >= u /\ 0 >= y ] (2, 1) f11(a, b, d) -> f35(a, b, y) [ b >= a + 1 /\ 0 >= u /\ y >= 2 ] (2, 1) f11(a, b, d) -> f47(a, b, d) [ u >= 1 /\ b >= a + 1 ] (2, 1) f35(a, b, d) -> f47(a, b, 2) [ d = 2 ] (2, 1) f35(a, b, d) -> f47(a, b, d) [ 1 >= d ] (2, 1) f35(a, b, d) -> f47(a, b, d) [ d >= 3 ] (2, 1) f11(a, b, d) -> f47(a, b, d) [ a >= b ] (?, 1) f47(a, b, d) -> f47(a, b, d) start location: f0 leaf cost: 1 A polynomial rank function with Pol(f0) = -V_1 + V_2 Pol(f11) = -V_1 + V_2 Pol(f35) = -V_1 + V_2 Pol(f47) = -V_1 + V_2 orients all transitions weakly and the transition f11(a, b, d) -> f11(a + 1, b, 1) [ 0 >= u /\ b >= a + 1 ] strictly and produces the following problem: 5: T: (1, 1) f0(a, b, d) -> f11(a, b, d) (a + b, 1) f11(a, b, d) -> f11(a + 1, b, 1) [ 0 >= u /\ b >= a + 1 ] (2, 1) f11(a, b, d) -> f35(a, b, y) [ b >= a + 1 /\ 0 >= u /\ 0 >= y ] (2, 1) f11(a, b, d) -> f35(a, b, y) [ b >= a + 1 /\ 0 >= u /\ y >= 2 ] (2, 1) f11(a, b, d) -> f47(a, b, d) [ u >= 1 /\ b >= a + 1 ] (2, 1) f35(a, b, d) -> f47(a, b, 2) [ d = 2 ] (2, 1) f35(a, b, d) -> f47(a, b, d) [ 1 >= d ] (2, 1) f35(a, b, d) -> f47(a, b, d) [ d >= 3 ] (2, 1) f11(a, b, d) -> f47(a, b, d) [ a >= b ] (?, 1) f47(a, b, d) -> f47(a, b, d) start location: f0 leaf cost: 1 Applied AI with 'oct' on problem 5 to obtain the following invariants: For symbol f35: -X_1 + X_2 - 1 >= 0 This yielded the following problem: 6: T: (?, 1) f47(a, b, d) -> f47(a, b, d) (2, 1) f11(a, b, d) -> f47(a, b, d) [ a >= b ] (2, 1) f35(a, b, d) -> f47(a, b, d) [ -a + b - 1 >= 0 /\ d >= 3 ] (2, 1) f35(a, b, d) -> f47(a, b, d) [ -a + b - 1 >= 0 /\ 1 >= d ] (2, 1) f35(a, b, d) -> f47(a, b, 2) [ -a + b - 1 >= 0 /\ d = 2 ] (2, 1) f11(a, b, d) -> f47(a, b, d) [ u >= 1 /\ b >= a + 1 ] (2, 1) f11(a, b, d) -> f35(a, b, y) [ b >= a + 1 /\ 0 >= u /\ y >= 2 ] (2, 1) f11(a, b, d) -> f35(a, b, y) [ b >= a + 1 /\ 0 >= u /\ 0 >= y ] (a + b, 1) f11(a, b, d) -> f11(a + 1, b, 1) [ 0 >= u /\ b >= a + 1 ] (1, 1) f0(a, b, d) -> f11(a, b, d) start location: f0 leaf cost: 1 Complexity upper bound ? Time: 0.451 sec (SMT: 0.422 sec)