YES Termination proof succeeded Initially, performed program simplifications using lexicographic rank functions: * Removed transitions 237, 240, 241 using the following rank functions: - Rank function 1: RF for loc. 26: 1+2*arg2 RF for loc. 75: 2*arg2 Bound for (chained) transitions 240: 2 Bound for (chained) transitions 241: 2 - Rank function 2: RF for loc. 26: 0 RF for loc. 75: -1 Bound for (chained) transitions 237: 0 * Removed transitions 214, 217, 218, 219, 220, 221, 222, 223, 224, 235, 236 using the following rank functions: - Rank function 1: RF for loc. 40: 3*arg6 RF for loc. 41: 1+3*arg7 RF for loc. 42: 1+3*arg4 RF for loc. 71: -1+3*arg6 Bound for (chained) transitions 217: 2 Bound for (chained) transitions 218: 2 Bound for (chained) transitions 219: 2 Bound for (chained) transitions 220: 2 Bound for (chained) transitions 221: 2 Bound for (chained) transitions 222: 2 Bound for (chained) transitions 223: 2 Bound for (chained) transitions 224: 2 - Rank function 2: RF for loc. 40: -1 RF for loc. 41: 0 RF for loc. 42: 0 RF for loc. 71: -2 Bound for (chained) transitions 235: 0 Bound for (chained) transitions 236: 0 - Rank function 3: RF for loc. 40: 1 RF for loc. 71: 0 Bound for (chained) transitions 214: 1 * Removed transitions 189, 192, 193, 194, 195, 196, 197, 198, 199, 210, 211 using the following rank functions: - Rank function 1: RF for loc. 37: 3*arg7 RF for loc. 38: 2-arg3+3*arg6 RF for loc. 39: 1+3*arg4 RF for loc. 67: -1+3*arg7 Bound for (chained) transitions 192: 2 Bound for (chained) transitions 193: 2 Bound for (chained) transitions 194: 2 Bound for (chained) transitions 195: 2 Bound for (chained) transitions 198: 2 Bound for (chained) transitions 199: 2 - Rank function 2: RF for loc. 37: 2-3*arg5 RF for loc. 38: -3*arg5 RF for loc. 39: 0 RF for loc. 67: 1-3*arg5 Bound for (chained) transitions 211: 0 - Rank function 3: RF for loc. 37: 2-3*arg5+3*arg6 RF for loc. 38: 3*arg4-3*arg5 RF for loc. 67: 1-3*arg5+3*arg6 Bound for (chained) transitions 210: 3 - Rank function 4: RF for loc. 37: 1 RF for loc. 38: -arg2P RF for loc. 67: 0 Bound for (chained) transitions 189: 1 Bound for (chained) transitions 196: 0 Bound for (chained) transitions 197: 0 * Removed transitions 175, 178, 179 using the following rank functions: - Rank function 1: RF for loc. 36: 1+2*arg5 RF for loc. 63: 2*arg5 Bound for (chained) transitions 178: 2 Bound for (chained) transitions 179: 2 - Rank function 2: RF for loc. 36: 0 RF for loc. 63: -1 Bound for (chained) transitions 175: 0 * Removed transitions 163, 166, 167 using the following rank functions: - Rank function 1: RF for loc. 35: 1+2*arg5 RF for loc. 59: 2*arg5 Bound for (chained) transitions 166: 2 Bound for (chained) transitions 167: 2 - Rank function 2: RF for loc. 35: 0 RF for loc. 59: -1 Bound for (chained) transitions 163: 0 * Removed transitions 148, 151, 152, 153, 154, 155 using the following rank functions: - Rank function 1: RF for loc. 34: 1-2*arg4+2*arg5 RF for loc. 55: -2*arg4+2*arg5 Bound for (chained) transitions 151: 0 Bound for (chained) transitions 152: 0 Bound for (chained) transitions 153: 0 Bound for (chained) transitions 154: 0 Bound for (chained) transitions 155: 0 - Rank function 2: RF for loc. 34: 0 RF for loc. 55: -1 Bound for (chained) transitions 148: 0 * Removed transitions 129, 134, 135, 136, 137, 138 using the following rank functions: - Rank function 1: RF for loc. 33: 1+2*arg4-2*arg5 RF for loc. 51: 2*arg4-2*arg5 Bound for (chained) transitions 134: 2 Bound for (chained) transitions 135: 2 Bound for (chained) transitions 136: 2 Bound for (chained) transitions 137: 2 Bound for (chained) transitions 138: 2 - Rank function 2: RF for loc. 33: 0 RF for loc. 51: -1 Bound for (chained) transitions 129: 0 * Removed transitions 102, 107, 108, 109, 110, 111, 112, 113, 114, 127, 128 using the following rank functions: - Rank function 1: RF for loc. 30: 3*arg6 RF for loc. 31: 1+3*arg6 RF for loc. 32: 1+3*arg4 RF for loc. 47: -1+3*arg6 Bound for (chained) transitions 107: 2 Bound for (chained) transitions 108: 2 Bound for (chained) transitions 109: 2 Bound for (chained) transitions 110: 2 Bound for (chained) transitions 113: 2 Bound for (chained) transitions 114: 2 - Rank function 2: RF for loc. 30: -2*arg4-arg5P+arg5 RF for loc. 31: 0 RF for loc. 32: 0 RF for loc. 47: -1-2*arg4-arg5P+arg5 Bound for (chained) transitions 127: 0 Bound for (chained) transitions 128: 0 - Rank function 3: RF for loc. 30: 1-arg4+arg5+arg6 RF for loc. 47: -arg4+arg5+arg6 Bound for (chained) transitions 111: 2 Bound for (chained) transitions 112: 2 - Rank function 4: RF for loc. 30: 0 RF for loc. 47: -1 Bound for (chained) transitions 102: 0 * Removed transitions 79, 84, 85, 86, 87, 88, 89, 90, 91, 125, 126 using the following rank functions: - Rank function 1: RF for loc. 27: 3*arg6 RF for loc. 28: 1+3*arg6 RF for loc. 29: 1+3*arg4 RF for loc. 43: -1+3*arg6 Bound for (chained) transitions 84: 2 Bound for (chained) transitions 85: 2 Bound for (chained) transitions 86: 2 Bound for (chained) transitions 87: 2 Bound for (chained) transitions 88: 2 Bound for (chained) transitions 89: 2 Bound for (chained) transitions 90: 2 Bound for (chained) transitions 91: 2 - Rank function 2: RF for loc. 27: -1 RF for loc. 28: 0 RF for loc. 29: 0 RF for loc. 43: -2 Bound for (chained) transitions 79: -1 Bound for (chained) transitions 125: 0 Bound for (chained) transitions 126: 0 Errors: