We consider termination of the LCTRS with only rule scheme Calc: Signature: eval_1 :: Int -> Int -> o eval_2 :: Int -> Int -> o Rules: eval_1(x, y) -> eval_2(x, 1) | x >= 0 eval_2(x, y) -> eval_2(x, 2 * y) | x >= 0 /\ y > 0 /\ x > y eval_2(x, y) -> eval_1(x - 1, y) | x >= 0 /\ y > 0 /\ y >= x The system is accessible function passing by a sort ordering that equates all sorts. We start by computing the initial DP problem D1 = (P1, R, f, c), where: P1. (1) eval_1#(x, y) => eval_2#(x, 1) | x >= 0 (2) eval_2#(x, y) => eval_2#(x, 2 * y) | x >= 0 /\ y > 0 /\ x > y (3) eval_2#(x, y) => eval_1#(x - 1, y) | x >= 0 /\ y > 0 /\ y >= x ***** We apply the Theory Arguments Processor on D1 = (P1, R, f, c). We use the following theory arguments function: eval_2# : [1, 2] Processor output: { D2 = (P2, R, f, c) ; D3 = (P3, R, f, c) }, where: P2. (1) eval_1#(x, y) => eval_2#(x, 1) | x >= 0 { x, y } (2) eval_2#(x, y) => eval_2#(x, 2 * y) | x >= 0 /\ y > 0 /\ x > y (3) eval_2#(x, y) => eval_1#(x - 1, y) | x >= 0 /\ y > 0 /\ y >= x P3. (1) eval_1#(x, y) => eval_2#(x, 1) | x >= 0 ***** We apply the Integer Function Processor on D2 = (P2, R, f, c). We use the following integer mapping: J(eval_1#) = arg_1 + 1 J(eval_2#) = arg_1 We thus have: (1) x >= 0 |= x + 1 > x (and x + 1 >= 0) (2) x >= 0 /\ y > 0 /\ x > y |= x >= x (3) x >= 0 /\ y > 0 /\ y >= x |= x >= x - 1 + 1 We may remove the strictly oriented DPs, which yields: Processor output: { D4 = (P4, R, f, c) }, where: P4. (1) eval_2#(x, y) => eval_2#(x, 2 * y) | x >= 0 /\ y > 0 /\ x > y (2) eval_2#(x, y) => eval_1#(x - 1, y) | x >= 0 /\ y > 0 /\ y >= x ***** We apply the Graph Processor on D3 = (P3, R, f, c). We compute a graph approximation with the following edges: 1: As there are no SCCs, this DP problem is removed. Processor output: { }. ***** We apply the Graph Processor on D4 = (P4, R, f, c). We compute a graph approximation with the following edges: 1: 1 2 2: There is only one SCC, so all DPs not inside the SCC can be removed. Processor output: { D5 = (P5, R, f, c) }, where: P5. (1) eval_2#(x, y) => eval_2#(x, 2 * y) | x >= 0 /\ y > 0 /\ x > y ***** We apply the Integer Function Processor on D5 = (P5, R, f, c). We use the following integer mapping: J(eval_2#) = arg_1 - arg_2 - 1 We thus have: (1) x >= 0 /\ y > 0 /\ x > y |= x - y - 1 > x - 2 * y - 1 (and x - y - 1 >= 0) All DPs are strictly oriented, and may be removed. Hence, this DP problem is finite. Processor output: { }.