YES Termination proof succeeded Initially, performed program simplifications using lexicographic rank functions: * Removed transitions 51, 53, 54 using the following rank functions: - Rank function 1: RF for loc. 15: 1+2*arg1 RF for loc. 36: 2*arg1 Bound for (chained) transitions 54: 0 - Rank function 2: RF for loc. 15: 2*arg1 RF for loc. 36: -1+2*arg1 Bound for (chained) transitions 53: -1 - Rank function 3: RF for loc. 15: 0 RF for loc. 36: -1 Bound for (chained) transitions 51: 0 * Removed transitions 41, 44, 45 using the following rank functions: - Rank function 1: RF for loc. 14: 1-2*arg4+2*arg5 RF for loc. 32: -2*arg4+2*arg5 Bound for (chained) transitions 44: 0 Bound for (chained) transitions 45: 0 - Rank function 2: RF for loc. 14: 1 RF for loc. 32: 0 Bound for (chained) transitions 41: 1 * Removed transitions 31, 34, 35 using the following rank functions: - Rank function 1: RF for loc. 13: 1+2*arg3 RF for loc. 28: 2*arg3 Bound for (chained) transitions 34: 0 Bound for (chained) transitions 35: 0 - Rank function 2: RF for loc. 13: 0 RF for loc. 28: -1 Bound for (chained) transitions 31: 0 * Removed transitions 21, 24, 25 using the following rank functions: - Rank function 1: RF for loc. 12: 1-2*arg2+2*arg3 RF for loc. 24: -2*arg2+2*arg3 Bound for (chained) transitions 25: 0 - Rank function 2: RF for loc. 12: 1-2*arg2+2*arg3 RF for loc. 24: -2*arg2+2*arg3 Bound for (chained) transitions 24: 0 - Rank function 3: RF for loc. 12: 0 RF for loc. 24: -1 Bound for (chained) transitions 21: 0 * Removed transitions 11, 14, 15 using the following rank functions: - Rank function 1: RF for loc. 11: 1-2*arg1+2*arg2 RF for loc. 20: -2*arg1+2*arg2 Bound for (chained) transitions 14: 0 Bound for (chained) transitions 15: 0 - Rank function 2: RF for loc. 11: 0 RF for loc. 20: -1 Bound for (chained) transitions 11: 0 * Removed transitions 1, 4, 5 using the following rank functions: - Rank function 1: RF for loc. 10: 1-2*arg2+2*arg3 RF for loc. 16: -2*arg2+2*arg3 Bound for (chained) transitions 5: 2 - Rank function 2: RF for loc. 10: -2*arg2+2*arg3 RF for loc. 16: -1-2*arg2+2*arg3 Bound for (chained) transitions 4: 1 - Rank function 3: RF for loc. 10: 0 RF for loc. 16: -1 Bound for (chained) transitions 1: 0 Errors: