YES(?, 43) Initial complexity problem: 1: T: (?, 1) start(a, b, c, d) -> lbl51(e, b, 0, d) [ a = b /\ c = d ] (?, 1) lbl51(a, b, c, d) -> stop(a, b, c, d) [ c >= a /\ c >= 0 /\ 9 >= c ] (?, 1) lbl51(a, b, c, d) -> stop(a, b, c, d) [ a >= c + 3 /\ c >= 0 /\ 9 >= c ] (?, 1) lbl51(a, b, c, d) -> cut(a, b, c, d) [ a >= c + 1 /\ c + 2 >= a /\ 9 >= a /\ c >= 0 /\ 9 >= c ] (?, 1) lbl51(a, b, c, d) -> stop(a, b, c, d) [ a >= 10 /\ a >= c + 1 /\ c + 2 >= a /\ c >= 0 /\ 9 >= c ] (?, 1) cut(a, b, c, d) -> lbl51(e, b, a, d) [ c + 2 >= a /\ 9 >= a /\ c >= 0 /\ a >= c + 1 ] (1, 1) start0(a, b, c, d) -> start(b, b, d, d) start location: start0 leaf cost: 0 Repeatedly removing leaves of the complexity graph in problem 1 produces the following problem: 2: T: (?, 1) start(a, b, c, d) -> lbl51(e, b, 0, d) [ a = b /\ c = d ] (?, 1) lbl51(a, b, c, d) -> cut(a, b, c, d) [ a >= c + 1 /\ c + 2 >= a /\ 9 >= a /\ c >= 0 /\ 9 >= c ] (?, 1) cut(a, b, c, d) -> lbl51(e, b, a, d) [ c + 2 >= a /\ 9 >= a /\ c >= 0 /\ a >= c + 1 ] (1, 1) start0(a, b, c, d) -> start(b, b, d, d) start location: start0 leaf cost: 3 Repeatedly propagating knowledge in problem 2 produces the following problem: 3: T: (1, 1) start(a, b, c, d) -> lbl51(e, b, 0, d) [ a = b /\ c = d ] (?, 1) lbl51(a, b, c, d) -> cut(a, b, c, d) [ a >= c + 1 /\ c + 2 >= a /\ 9 >= a /\ c >= 0 /\ 9 >= c ] (?, 1) cut(a, b, c, d) -> lbl51(e, b, a, d) [ c + 2 >= a /\ 9 >= a /\ c >= 0 /\ a >= c + 1 ] (1, 1) start0(a, b, c, d) -> start(b, b, d, d) start location: start0 leaf cost: 3 A polynomial rank function with Pol(start) = 19 Pol(lbl51) = -2*V_3 + 19 Pol(cut) = -2*V_3 + 18 Pol(start0) = 19 orients all transitions weakly and the transitions lbl51(a, b, c, d) -> cut(a, b, c, d) [ a >= c + 1 /\ c + 2 >= a /\ 9 >= a /\ c >= 0 /\ 9 >= c ] cut(a, b, c, d) -> lbl51(e, b, a, d) [ c + 2 >= a /\ 9 >= a /\ c >= 0 /\ a >= c + 1 ] strictly and produces the following problem: 4: T: (1, 1) start(a, b, c, d) -> lbl51(e, b, 0, d) [ a = b /\ c = d ] (19, 1) lbl51(a, b, c, d) -> cut(a, b, c, d) [ a >= c + 1 /\ c + 2 >= a /\ 9 >= a /\ c >= 0 /\ 9 >= c ] (19, 1) cut(a, b, c, d) -> lbl51(e, b, a, d) [ c + 2 >= a /\ 9 >= a /\ c >= 0 /\ a >= c + 1 ] (1, 1) start0(a, b, c, d) -> start(b, b, d, d) start location: start0 leaf cost: 3 Complexity upper bound 43 Time: 0.198 sec (SMT: 0.189 sec)