0 Prolog
↳1 PrologToPrologProblemTransformerProof (⇐)
↳2 Prolog
↳3 PrologToPiTRSProof (⇐)
↳4 PiTRS
↳5 DependencyPairsProof (⇔)
↳6 PiDP
↳7 DependencyGraphProof (⇔)
↳8 AND
↳9 PiDP
↳10 UsableRulesProof (⇔)
↳11 PiDP
↳12 PiDPToQDPProof (⇐)
↳13 QDP
↳14 NonTerminationProof (⇔)
↳15 NO
↳16 PiDP
↳17 UsableRulesProof (⇔)
↳18 PiDP
↳19 PiDPToQDPProof (⇐)
↳20 QDP
↳21 NonTerminationProof (⇔)
↳22 NO
↳23 PiDP
↳24 UsableRulesProof (⇔)
↳25 PiDP
↳26 PiDPToQDPProof (⇐)
↳27 QDP
↳28 NonTerminationProof (⇔)
↳29 NO
↳30 PiDP
↳31 UsableRulesProof (⇔)
↳32 PiDP
↳33 PiDPToQDPProof (⇐)
↳34 QDP
↳35 QDPSizeChangeProof (⇔)
↳36 YES
↳37 PiDP
↳38 UsableRulesProof (⇔)
↳39 PiDP
↳40 PiDPToQDPProof (⇐)
↳41 QDP
↳42 QDPSizeChangeProof (⇔)
↳43 YES
↳44 PiDP
↳45 UsableRulesProof (⇔)
↳46 PiDP
↳47 PiDPToQDPProof (⇐)
↳48 QDP
↳49 Narrowing (⇐)
↳50 QDP
↳51 Narrowing (⇐)
↳52 QDP
↳53 Instantiation (⇔)
↳54 QDP
↳55 Instantiation (⇔)
↳56 QDP
↳57 DependencyGraphProof (⇔)
↳58 AND
↳59 QDP
↳60 UsableRulesProof (⇔)
↳61 QDP
↳62 QReductionProof (⇔)
↳63 QDP
↳64 NonTerminationProof (⇔)
↳65 NO
↳66 QDP
↳67 NonTerminationProof (⇔)
↳68 NO
↳69 PiDP
↳70 UsableRulesProof (⇔)
↳71 PiDP
↳72 PiDPToQDPProof (⇐)
↳73 QDP
↳74 NonTerminationProof (⇔)
↳75 NO
↳76 PiDP
↳77 UsableRulesProof (⇔)
↳78 PiDP
↳79 PiDPToQDPProof (⇐)
↳80 QDP
↳81 NonTerminationProof (⇔)
↳82 NO
↳83 PiDP
↳84 UsableRulesProof (⇔)
↳85 PiDP
↳86 PiDPToQDPProof (⇐)
↳87 QDP
↳88 Narrowing (⇐)
↳89 QDP
↳90 NonTerminationProof (⇔)
↳91 NO
↳92 PiDP
↳93 UsableRulesProof (⇔)
↳94 PiDP
↳95 PiDPToQDPProof (⇐)
↳96 QDP
↳97 Narrowing (⇐)
↳98 QDP
↳99 Narrowing (⇐)
↳100 QDP
↳101 NonTerminationProof (⇔)
↳102 NO
↳103 PiDP
↳104 UsableRulesProof (⇔)
↳105 PiDP
↳106 PiDPToQDPProof (⇐)
↳107 QDP
↳108 QDPSizeChangeProof (⇔)
↳109 YES
↳110 PiDP
↳111 UsableRulesProof (⇔)
↳112 PiDP
↳113 PiDPToQDPProof (⇐)
↳114 QDP
↳115 Narrowing (⇐)
↳116 QDP
↳117 Narrowing (⇐)
↳118 QDP
↳119 NonTerminationProof (⇔)
↳120 NO
↳121 PiDP
↳122 UsableRulesProof (⇔)
↳123 PiDP
↳124 PiDPToQDPProof (⇔)
↳125 QDP
↳126 QDPSizeChangeProof (⇔)
↳127 YES
↳128 PiDP
↳129 UsableRulesProof (⇔)
↳130 PiDP
↳131 PiDPToQDPProof (⇔)
↳132 QDP
↳133 QDPSizeChangeProof (⇔)
↳134 YES
↳135 PiDP
↳136 UsableRulesProof (⇔)
↳137 PiDP
↳138 PiDPToQDPProof (⇐)
↳139 QDP
↳140 QDPSizeChangeProof (⇔)
↳141 YES
↳142 PiDP
↳143 UsableRulesProof (⇔)
↳144 PiDP
↳145 PiDPToQDPProof (⇐)
↳146 QDP
↳147 QDPSizeChangeProof (⇔)
↳148 YES
↳149 PrologToPiTRSProof (⇐)
↳150 PiTRS
↳151 DependencyPairsProof (⇔)
↳152 PiDP
↳153 DependencyGraphProof (⇔)
↳154 AND
↳155 PiDP
↳156 UsableRulesProof (⇔)
↳157 PiDP
↳158 PiDPToQDPProof (⇐)
↳159 QDP
↳160 NonTerminationProof (⇔)
↳161 NO
↳162 PiDP
↳163 UsableRulesProof (⇔)
↳164 PiDP
↳165 PiDPToQDPProof (⇐)
↳166 QDP
↳167 NonTerminationProof (⇔)
↳168 NO
↳169 PiDP
↳170 UsableRulesProof (⇔)
↳171 PiDP
↳172 PiDPToQDPProof (⇐)
↳173 QDP
↳174 NonTerminationProof (⇔)
↳175 NO
↳176 PiDP
↳177 UsableRulesProof (⇔)
↳178 PiDP
↳179 PiDPToQDPProof (⇐)
↳180 QDP
↳181 QDPSizeChangeProof (⇔)
↳182 YES
↳183 PiDP
↳184 UsableRulesProof (⇔)
↳185 PiDP
↳186 PiDPToQDPProof (⇐)
↳187 QDP
↳188 QDPSizeChangeProof (⇔)
↳189 YES
↳190 PiDP
↳191 UsableRulesProof (⇔)
↳192 PiDP
↳193 PiDPToQDPProof (⇐)
↳194 QDP
↳195 Narrowing (⇐)
↳196 QDP
↳197 Narrowing (⇐)
↳198 QDP
↳199 Instantiation (⇔)
↳200 QDP
↳201 Instantiation (⇔)
↳202 QDP
↳203 DependencyGraphProof (⇔)
↳204 AND
↳205 QDP
↳206 UsableRulesProof (⇔)
↳207 QDP
↳208 QReductionProof (⇔)
↳209 QDP
↳210 NonTerminationProof (⇔)
↳211 NO
↳212 QDP
↳213 NonTerminationProof (⇔)
↳214 NO
↳215 PiDP
↳216 UsableRulesProof (⇔)
↳217 PiDP
↳218 PiDPToQDPProof (⇐)
↳219 QDP
↳220 NonTerminationProof (⇔)
↳221 NO
↳222 PiDP
↳223 UsableRulesProof (⇔)
↳224 PiDP
↳225 PiDPToQDPProof (⇐)
↳226 QDP
↳227 NonTerminationProof (⇔)
↳228 NO
↳229 PiDP
↳230 UsableRulesProof (⇔)
↳231 PiDP
↳232 PiDPToQDPProof (⇐)
↳233 QDP
↳234 Narrowing (⇐)
↳235 QDP
↳236 NonTerminationProof (⇔)
↳237 NO
↳238 PiDP
↳239 UsableRulesProof (⇔)
↳240 PiDP
↳241 PiDPToQDPProof (⇐)
↳242 QDP
↳243 Narrowing (⇐)
↳244 QDP
↳245 Narrowing (⇐)
↳246 QDP
↳247 NonTerminationProof (⇔)
↳248 NO
↳249 PiDP
↳250 UsableRulesProof (⇔)
↳251 PiDP
↳252 PiDPToQDPProof (⇐)
↳253 QDP
↳254 QDPSizeChangeProof (⇔)
↳255 YES
↳256 PiDP
↳257 UsableRulesProof (⇔)
↳258 PiDP
↳259 PiDPToQDPProof (⇐)
↳260 QDP
↳261 Narrowing (⇐)
↳262 QDP
↳263 Narrowing (⇐)
↳264 QDP
↳265 NonTerminationProof (⇔)
↳266 NO
↳267 PiDP
↳268 UsableRulesProof (⇔)
↳269 PiDP
↳270 PiDPToQDPProof (⇔)
↳271 QDP
↳272 QDPSizeChangeProof (⇔)
↳273 YES
↳274 PiDP
↳275 UsableRulesProof (⇔)
↳276 PiDP
↳277 PiDPToQDPProof (⇔)
↳278 QDP
↳279 QDPSizeChangeProof (⇔)
↳280 YES
↳281 PiDP
↳282 UsableRulesProof (⇔)
↳283 PiDP
↳284 PiDPToQDPProof (⇐)
↳285 QDP
↳286 QDPSizeChangeProof (⇔)
↳287 YES
↳288 PiDP
↳289 UsableRulesProof (⇔)
↳290 PiDP
↳291 PiDPToQDPProof (⇐)
↳292 QDP
↳293 QDPSizeChangeProof (⇔)
↳294 YES
qsort1_in_ga([], []) → qsort1_out_ga([], [])
qsort1_in_ga(.(T14, []), T9) → U19_ga(T14, T9, qsort14_in_a(X12))
qsort14_in_a([]) → qsort14_out_a([])
U19_ga(T14, T9, qsort14_out_a(X12)) → qsort1_out_ga(.(T14, []), T9)
qsort1_in_ga(.(T14, []), T9) → U20_ga(T14, T9, qsort14_in_a(T17))
U20_ga(T14, T9, qsort14_out_a(T17)) → U21_ga(T14, T9, qsort14_in_a(X13))
U21_ga(T14, T9, qsort14_out_a(X13)) → qsort1_out_ga(.(T14, []), T9)
U20_ga(T14, T9, qsort14_out_a(T17)) → U22_ga(T14, T9, T17, qsort14_in_a(T20))
U22_ga(T14, T9, T17, qsort14_out_a(T20)) → U23_ga(T14, T9, append23_in_ggga(T17, T14, T20, T9))
append23_in_ggga([], T33, T34, .(T33, T34)) → append23_out_ggga([], T33, T34, .(T33, T34))
append23_in_ggga(.(T45, T46), T47, T48, .(T45, T50)) → U1_ggga(T45, T46, T47, T48, T50, append23_in_ggga(T46, T47, T48, T50))
U1_ggga(T45, T46, T47, T48, T50, append23_out_ggga(T46, T47, T48, T50)) → append23_out_ggga(.(T45, T46), T47, T48, .(T45, T50))
U23_ga(T14, T9, append23_out_ggga(T17, T14, T20, T9)) → qsort1_out_ga(.(T14, []), T9)
qsort1_in_ga(.(T69, .(T67, T68)), T9) → U24_ga(T69, T67, T68, T9, le36_in_gg(T67, T69))
le36_in_gg(s(T82), s(T83)) → U2_gg(T82, T83, le36_in_gg(T82, T83))
le36_in_gg(0, s(T90)) → le36_out_gg(0, s(T90))
le36_in_gg(0, 0) → le36_out_gg(0, 0)
U2_gg(T82, T83, le36_out_gg(T82, T83)) → le36_out_gg(s(T82), s(T83))
U24_ga(T69, T67, T68, T9, le36_out_gg(T67, T69)) → qsort1_out_ga(.(T69, .(T67, T68)), T9)
U24_ga(T69, T67, T68, T9, le36_out_gg(T67, T69)) → U25_ga(T69, T67, T68, T9, split51_in_ggaa(T68, T69, X93, X94))
split51_in_ggaa([], T101, [], []) → split51_out_ggaa([], T101, [], [])
split51_in_ggaa(.(T114, T115), T116, .(T114, X167), X168) → U3_ggaa(T114, T115, T116, X167, X168, le36_in_gg(T114, T116))
U3_ggaa(T114, T115, T116, X167, X168, le36_out_gg(T114, T116)) → split51_out_ggaa(.(T114, T115), T116, .(T114, X167), X168)
U3_ggaa(T114, T115, T116, X167, X168, le36_out_gg(T114, T116)) → U4_ggaa(T114, T115, T116, X167, X168, split51_in_ggaa(T115, T116, X167, X168))
split51_in_ggaa(.(T129, T130), T131, X199, .(T129, X200)) → U5_ggaa(T129, T130, T131, X199, X200, gt67_in_gg(T129, T131))
gt67_in_gg(s(T144), s(T145)) → U7_gg(T144, T145, gt67_in_gg(T144, T145))
gt67_in_gg(s(T150), 0) → gt67_out_gg(s(T150), 0)
U7_gg(T144, T145, gt67_out_gg(T144, T145)) → gt67_out_gg(s(T144), s(T145))
U5_ggaa(T129, T130, T131, X199, X200, gt67_out_gg(T129, T131)) → split51_out_ggaa(.(T129, T130), T131, X199, .(T129, X200))
U5_ggaa(T129, T130, T131, X199, X200, gt67_out_gg(T129, T131)) → U6_ggaa(T129, T130, T131, X199, X200, split51_in_ggaa(T130, T131, X199, X200))
U6_ggaa(T129, T130, T131, X199, X200, split51_out_ggaa(T130, T131, X199, X200)) → split51_out_ggaa(.(T129, T130), T131, X199, .(T129, X200))
U4_ggaa(T114, T115, T116, X167, X168, split51_out_ggaa(T115, T116, X167, X168)) → split51_out_ggaa(.(T114, T115), T116, .(T114, X167), X168)
U25_ga(T69, T67, T68, T9, split51_out_ggaa(T68, T69, X93, X94)) → qsort1_out_ga(.(T69, .(T67, T68)), T9)
U24_ga(T69, T67, T68, T9, le36_out_gg(T67, T69)) → U26_ga(T69, T67, T68, T9, split51_in_ggaa(T68, T69, T93, T94))
U26_ga(T69, T67, T68, T9, split51_out_ggaa(T68, T69, T93, T94)) → U27_ga(T69, T67, T68, T9, qsort1_in_aa(.(T67, T93), X12))
qsort1_in_aa([], []) → qsort1_out_aa([], [])
qsort1_in_aa(.(T14, []), T9) → U19_aa(T14, T9, qsort14_in_a(X12))
U19_aa(T14, T9, qsort14_out_a(X12)) → qsort1_out_aa(.(T14, []), T9)
qsort1_in_aa(.(T14, []), T9) → U20_aa(T14, T9, qsort14_in_a(T17))
U20_aa(T14, T9, qsort14_out_a(T17)) → U21_aa(T14, T9, qsort14_in_a(X13))
U21_aa(T14, T9, qsort14_out_a(X13)) → qsort1_out_aa(.(T14, []), T9)
U20_aa(T14, T9, qsort14_out_a(T17)) → U22_aa(T14, T9, T17, qsort14_in_a(T20))
U22_aa(T14, T9, T17, qsort14_out_a(T20)) → U23_aa(T14, T9, append23_in_gaga(T17, T14, T20, T9))
append23_in_gaga([], T33, T34, .(T33, T34)) → append23_out_gaga([], T33, T34, .(T33, T34))
append23_in_gaga(.(T45, T46), T47, T48, .(T45, T50)) → U1_gaga(T45, T46, T47, T48, T50, append23_in_gaga(T46, T47, T48, T50))
U1_gaga(T45, T46, T47, T48, T50, append23_out_gaga(T46, T47, T48, T50)) → append23_out_gaga(.(T45, T46), T47, T48, .(T45, T50))
U23_aa(T14, T9, append23_out_gaga(T17, T14, T20, T9)) → qsort1_out_aa(.(T14, []), T9)
qsort1_in_aa(.(T69, .(T67, T68)), T9) → U24_aa(T69, T67, T68, T9, le36_in_aa(T67, T69))
le36_in_aa(s(T82), s(T83)) → U2_aa(T82, T83, le36_in_aa(T82, T83))
le36_in_aa(0, s(T90)) → le36_out_aa(0, s(T90))
le36_in_aa(0, 0) → le36_out_aa(0, 0)
U2_aa(T82, T83, le36_out_aa(T82, T83)) → le36_out_aa(s(T82), s(T83))
U24_aa(T69, T67, T68, T9, le36_out_aa(T67, T69)) → qsort1_out_aa(.(T69, .(T67, T68)), T9)
U24_aa(T69, T67, T68, T9, le36_out_aa(T67, T69)) → U25_aa(T69, T67, T68, T9, split51_in_aaaa(T68, T69, X93, X94))
split51_in_aaaa([], T101, [], []) → split51_out_aaaa([], T101, [], [])
split51_in_aaaa(.(T114, T115), T116, .(T114, X167), X168) → U3_aaaa(T114, T115, T116, X167, X168, le36_in_aa(T114, T116))
U3_aaaa(T114, T115, T116, X167, X168, le36_out_aa(T114, T116)) → split51_out_aaaa(.(T114, T115), T116, .(T114, X167), X168)
U3_aaaa(T114, T115, T116, X167, X168, le36_out_aa(T114, T116)) → U4_aaaa(T114, T115, T116, X167, X168, split51_in_aaaa(T115, T116, X167, X168))
split51_in_aaaa(.(T129, T130), T131, X199, .(T129, X200)) → U5_aaaa(T129, T130, T131, X199, X200, gt67_in_aa(T129, T131))
gt67_in_aa(s(T144), s(T145)) → U7_aa(T144, T145, gt67_in_aa(T144, T145))
gt67_in_aa(s(T150), 0) → gt67_out_aa(s(T150), 0)
U7_aa(T144, T145, gt67_out_aa(T144, T145)) → gt67_out_aa(s(T144), s(T145))
U5_aaaa(T129, T130, T131, X199, X200, gt67_out_aa(T129, T131)) → split51_out_aaaa(.(T129, T130), T131, X199, .(T129, X200))
U5_aaaa(T129, T130, T131, X199, X200, gt67_out_aa(T129, T131)) → U6_aaaa(T129, T130, T131, X199, X200, split51_in_agaa(T130, T131, X199, X200))
split51_in_agaa([], T101, [], []) → split51_out_agaa([], T101, [], [])
split51_in_agaa(.(T114, T115), T116, .(T114, X167), X168) → U3_agaa(T114, T115, T116, X167, X168, le36_in_ag(T114, T116))
le36_in_ag(s(T82), s(T83)) → U2_ag(T82, T83, le36_in_ag(T82, T83))
le36_in_ag(0, s(T90)) → le36_out_ag(0, s(T90))
le36_in_ag(0, 0) → le36_out_ag(0, 0)
U2_ag(T82, T83, le36_out_ag(T82, T83)) → le36_out_ag(s(T82), s(T83))
U3_agaa(T114, T115, T116, X167, X168, le36_out_ag(T114, T116)) → split51_out_agaa(.(T114, T115), T116, .(T114, X167), X168)
U3_agaa(T114, T115, T116, X167, X168, le36_out_ag(T114, T116)) → U4_agaa(T114, T115, T116, X167, X168, split51_in_agaa(T115, T116, X167, X168))
split51_in_agaa(.(T129, T130), T131, X199, .(T129, X200)) → U5_agaa(T129, T130, T131, X199, X200, gt67_in_ag(T129, T131))
gt67_in_ag(s(T144), s(T145)) → U7_ag(T144, T145, gt67_in_ag(T144, T145))
gt67_in_ag(s(T150), 0) → gt67_out_ag(s(T150), 0)
U7_ag(T144, T145, gt67_out_ag(T144, T145)) → gt67_out_ag(s(T144), s(T145))
U5_agaa(T129, T130, T131, X199, X200, gt67_out_ag(T129, T131)) → split51_out_agaa(.(T129, T130), T131, X199, .(T129, X200))
U5_agaa(T129, T130, T131, X199, X200, gt67_out_ag(T129, T131)) → U6_agaa(T129, T130, T131, X199, X200, split51_in_agaa(T130, T131, X199, X200))
U6_agaa(T129, T130, T131, X199, X200, split51_out_agaa(T130, T131, X199, X200)) → split51_out_agaa(.(T129, T130), T131, X199, .(T129, X200))
U4_agaa(T114, T115, T116, X167, X168, split51_out_agaa(T115, T116, X167, X168)) → split51_out_agaa(.(T114, T115), T116, .(T114, X167), X168)
U6_aaaa(T129, T130, T131, X199, X200, split51_out_agaa(T130, T131, X199, X200)) → split51_out_aaaa(.(T129, T130), T131, X199, .(T129, X200))
U4_aaaa(T114, T115, T116, X167, X168, split51_out_aaaa(T115, T116, X167, X168)) → split51_out_aaaa(.(T114, T115), T116, .(T114, X167), X168)
U25_aa(T69, T67, T68, T9, split51_out_aaaa(T68, T69, X93, X94)) → qsort1_out_aa(.(T69, .(T67, T68)), T9)
U24_aa(T69, T67, T68, T9, le36_out_aa(T67, T69)) → U26_aa(T69, T67, T68, T9, split51_in_aaaa(T68, T69, T93, T94))
U26_aa(T69, T67, T68, T9, split51_out_aaaa(T68, T69, T93, T94)) → U27_aa(T69, T67, T68, T9, qsort1_in_aa(.(T67, T93), X12))
qsort1_in_aa(.(T215, .(T213, T214)), T9) → U30_aa(T215, T213, T214, T9, gt67_in_aa(T213, T215))
U30_aa(T215, T213, T214, T9, gt67_out_aa(T213, T215)) → qsort1_out_aa(.(T215, .(T213, T214)), T9)
U30_aa(T215, T213, T214, T9, gt67_out_aa(T213, T215)) → U31_aa(T215, T213, T214, T9, split51_in_agaa(T214, T215, X323, X324))
U31_aa(T215, T213, T214, T9, split51_out_agaa(T214, T215, X323, X324)) → qsort1_out_aa(.(T215, .(T213, T214)), T9)
U30_aa(T215, T213, T214, T9, gt67_out_aa(T213, T215)) → U32_aa(T215, T213, T214, T9, split51_in_agaa(T214, T215, T222, T223))
U32_aa(T215, T213, T214, T9, split51_out_agaa(T214, T215, T222, T223)) → U33_aa(T215, T213, T214, T9, qsort79_in_aa(T222, X12))
qsort79_in_aa([], []) → qsort79_out_aa([], [])
qsort79_in_aa(.(T163, T164), X265) → U8_aa(T163, T164, X265, split51_in_aaaa(T164, T163, X261, X262))
U8_aa(T163, T164, X265, split51_out_aaaa(T164, T163, X261, X262)) → qsort79_out_aa(.(T163, T164), X265)
qsort79_in_aa(.(T163, T164), X265) → U9_aa(T163, T164, X265, split51_in_aaaa(T164, T163, T167, T168))
U9_aa(T163, T164, X265, split51_out_aaaa(T164, T163, T167, T168)) → U10_aa(T163, T164, X265, qsort79_in_aa(T167, X263))
U10_aa(T163, T164, X265, qsort79_out_aa(T167, X263)) → qsort79_out_aa(.(T163, T164), X265)
U9_aa(T163, T164, X265, split51_out_aaaa(T164, T163, T167, T168)) → U11_aa(T163, T164, X265, T168, qsort79_in_aa(T167, T171))
U11_aa(T163, T164, X265, T168, qsort79_out_aa(T167, T171)) → U12_aa(T163, T164, X265, qsort79_in_aa(T168, X264))
U12_aa(T163, T164, X265, qsort79_out_aa(T168, X264)) → qsort79_out_aa(.(T163, T164), X265)
U11_aa(T163, T164, X265, T168, qsort79_out_aa(T167, T171)) → U13_aa(T163, T164, X265, T171, qsort79_in_aa(T168, T172))
U13_aa(T163, T164, X265, T171, qsort79_out_aa(T168, T172)) → U14_aa(T163, T164, X265, append94_in_aaaa(T171, T163, T172, X265))
append94_in_aaaa([], T185, T186, .(T185, T186)) → append94_out_aaaa([], T185, T186, .(T185, T186))
append94_in_aaaa(.(T195, T196), T197, T198, .(T195, X295)) → U15_aaaa(T195, T196, T197, T198, X295, append94_in_aaaa(T196, T197, T198, X295))
U15_aaaa(T195, T196, T197, T198, X295, append94_out_aaaa(T196, T197, T198, X295)) → append94_out_aaaa(.(T195, T196), T197, T198, .(T195, X295))
U14_aa(T163, T164, X265, append94_out_aaaa(T171, T163, T172, X265)) → qsort79_out_aa(.(T163, T164), X265)
U33_aa(T215, T213, T214, T9, qsort79_out_aa(T222, X12)) → qsort1_out_aa(.(T215, .(T213, T214)), T9)
U32_aa(T215, T213, T214, T9, split51_out_agaa(T214, T215, T222, T223)) → U34_aa(T215, T213, T214, T9, T223, qsort79_in_aa(T222, T226))
U34_aa(T215, T213, T214, T9, T223, qsort79_out_aa(T222, T226)) → U35_aa(T215, T213, T214, T9, p78_in_aaaga(.(T213, T223), X13, T226, T215, T9))
p78_in_aaaga(T94, X13, T155, T69, T9) → U16_aaaga(T94, X13, T155, T69, T9, qsort79_in_aa(T94, X13))
U16_aaaga(T94, X13, T155, T69, T9, qsort79_out_aa(T94, X13)) → p78_out_aaaga(T94, X13, T155, T69, T9)
p78_in_aaaga(T94, T158, T155, T69, T9) → U17_aaaga(T94, T158, T155, T69, T9, qsort79_in_aa(T94, T158))
U17_aaaga(T94, T158, T155, T69, T9, qsort79_out_aa(T94, T158)) → U18_aaaga(T94, T158, T155, T69, T9, append23_in_agaa(T155, T69, T158, T9))
append23_in_agaa([], T33, T34, .(T33, T34)) → append23_out_agaa([], T33, T34, .(T33, T34))
append23_in_agaa(.(T45, T46), T47, T48, .(T45, T50)) → U1_agaa(T45, T46, T47, T48, T50, append23_in_agaa(T46, T47, T48, T50))
U1_agaa(T45, T46, T47, T48, T50, append23_out_agaa(T46, T47, T48, T50)) → append23_out_agaa(.(T45, T46), T47, T48, .(T45, T50))
U18_aaaga(T94, T158, T155, T69, T9, append23_out_agaa(T155, T69, T158, T9)) → p78_out_aaaga(T94, T158, T155, T69, T9)
U35_aa(T215, T213, T214, T9, p78_out_aaaga(.(T213, T223), X13, T226, T215, T9)) → qsort1_out_aa(.(T215, .(T213, T214)), T9)
U27_aa(T69, T67, T68, T9, qsort1_out_aa(.(T67, T93), X12)) → qsort1_out_aa(.(T69, .(T67, T68)), T9)
U26_aa(T69, T67, T68, T9, split51_out_aaaa(T68, T69, T93, T94)) → U28_aa(T69, T67, T68, T9, T94, qsort1_in_aa(.(T67, T93), T155))
U28_aa(T69, T67, T68, T9, T94, qsort1_out_aa(.(T67, T93), T155)) → U29_aa(T69, T67, T68, T9, p78_in_aaaaa(T94, X13, T155, T69, T9))
p78_in_aaaaa(T94, X13, T155, T69, T9) → U16_aaaaa(T94, X13, T155, T69, T9, qsort79_in_aa(T94, X13))
U16_aaaaa(T94, X13, T155, T69, T9, qsort79_out_aa(T94, X13)) → p78_out_aaaaa(T94, X13, T155, T69, T9)
p78_in_aaaaa(T94, T158, T155, T69, T9) → U17_aaaaa(T94, T158, T155, T69, T9, qsort79_in_aa(T94, T158))
U17_aaaaa(T94, T158, T155, T69, T9, qsort79_out_aa(T94, T158)) → U18_aaaaa(T94, T158, T155, T69, T9, append23_in_aaaa(T155, T69, T158, T9))
append23_in_aaaa([], T33, T34, .(T33, T34)) → append23_out_aaaa([], T33, T34, .(T33, T34))
append23_in_aaaa(.(T45, T46), T47, T48, .(T45, T50)) → U1_aaaa(T45, T46, T47, T48, T50, append23_in_aaaa(T46, T47, T48, T50))
U1_aaaa(T45, T46, T47, T48, T50, append23_out_aaaa(T46, T47, T48, T50)) → append23_out_aaaa(.(T45, T46), T47, T48, .(T45, T50))
U18_aaaaa(T94, T158, T155, T69, T9, append23_out_aaaa(T155, T69, T158, T9)) → p78_out_aaaaa(T94, T158, T155, T69, T9)
U29_aa(T69, T67, T68, T9, p78_out_aaaaa(T94, X13, T155, T69, T9)) → qsort1_out_aa(.(T69, .(T67, T68)), T9)
U27_ga(T69, T67, T68, T9, qsort1_out_aa(.(T67, T93), X12)) → qsort1_out_ga(.(T69, .(T67, T68)), T9)
U26_ga(T69, T67, T68, T9, split51_out_ggaa(T68, T69, T93, T94)) → U28_ga(T69, T67, T68, T9, T94, qsort1_in_aa(.(T67, T93), T155))
U28_ga(T69, T67, T68, T9, T94, qsort1_out_aa(.(T67, T93), T155)) → U29_ga(T69, T67, T68, T9, p78_in_aaaga(T94, X13, T155, T69, T9))
U29_ga(T69, T67, T68, T9, p78_out_aaaga(T94, X13, T155, T69, T9)) → qsort1_out_ga(.(T69, .(T67, T68)), T9)
qsort1_in_ga(.(T215, .(T213, T214)), T9) → U30_ga(T215, T213, T214, T9, gt67_in_gg(T213, T215))
U30_ga(T215, T213, T214, T9, gt67_out_gg(T213, T215)) → qsort1_out_ga(.(T215, .(T213, T214)), T9)
U30_ga(T215, T213, T214, T9, gt67_out_gg(T213, T215)) → U31_ga(T215, T213, T214, T9, split51_in_ggaa(T214, T215, X323, X324))
U31_ga(T215, T213, T214, T9, split51_out_ggaa(T214, T215, X323, X324)) → qsort1_out_ga(.(T215, .(T213, T214)), T9)
U30_ga(T215, T213, T214, T9, gt67_out_gg(T213, T215)) → U32_ga(T215, T213, T214, T9, split51_in_ggaa(T214, T215, T222, T223))
U32_ga(T215, T213, T214, T9, split51_out_ggaa(T214, T215, T222, T223)) → U33_ga(T215, T213, T214, T9, qsort79_in_aa(T222, X12))
U33_ga(T215, T213, T214, T9, qsort79_out_aa(T222, X12)) → qsort1_out_ga(.(T215, .(T213, T214)), T9)
U32_ga(T215, T213, T214, T9, split51_out_ggaa(T214, T215, T222, T223)) → U34_ga(T215, T213, T214, T9, T223, qsort79_in_aa(T222, T226))
U34_ga(T215, T213, T214, T9, T223, qsort79_out_aa(T222, T226)) → U35_ga(T215, T213, T214, T9, p78_in_aaaga(.(T213, T223), X13, T226, T215, T9))
U35_ga(T215, T213, T214, T9, p78_out_aaaga(.(T213, T223), X13, T226, T215, T9)) → qsort1_out_ga(.(T215, .(T213, T214)), T9)
Infinitary Constructor Rewriting Termination of PiTRS implies Termination of Prolog
qsort1_in_ga([], []) → qsort1_out_ga([], [])
qsort1_in_ga(.(T14, []), T9) → U19_ga(T14, T9, qsort14_in_a(X12))
qsort14_in_a([]) → qsort14_out_a([])
U19_ga(T14, T9, qsort14_out_a(X12)) → qsort1_out_ga(.(T14, []), T9)
qsort1_in_ga(.(T14, []), T9) → U20_ga(T14, T9, qsort14_in_a(T17))
U20_ga(T14, T9, qsort14_out_a(T17)) → U21_ga(T14, T9, qsort14_in_a(X13))
U21_ga(T14, T9, qsort14_out_a(X13)) → qsort1_out_ga(.(T14, []), T9)
U20_ga(T14, T9, qsort14_out_a(T17)) → U22_ga(T14, T9, T17, qsort14_in_a(T20))
U22_ga(T14, T9, T17, qsort14_out_a(T20)) → U23_ga(T14, T9, append23_in_ggga(T17, T14, T20, T9))
append23_in_ggga([], T33, T34, .(T33, T34)) → append23_out_ggga([], T33, T34, .(T33, T34))
append23_in_ggga(.(T45, T46), T47, T48, .(T45, T50)) → U1_ggga(T45, T46, T47, T48, T50, append23_in_ggga(T46, T47, T48, T50))
U1_ggga(T45, T46, T47, T48, T50, append23_out_ggga(T46, T47, T48, T50)) → append23_out_ggga(.(T45, T46), T47, T48, .(T45, T50))
U23_ga(T14, T9, append23_out_ggga(T17, T14, T20, T9)) → qsort1_out_ga(.(T14, []), T9)
qsort1_in_ga(.(T69, .(T67, T68)), T9) → U24_ga(T69, T67, T68, T9, le36_in_gg(T67, T69))
le36_in_gg(s(T82), s(T83)) → U2_gg(T82, T83, le36_in_gg(T82, T83))
le36_in_gg(0, s(T90)) → le36_out_gg(0, s(T90))
le36_in_gg(0, 0) → le36_out_gg(0, 0)
U2_gg(T82, T83, le36_out_gg(T82, T83)) → le36_out_gg(s(T82), s(T83))
U24_ga(T69, T67, T68, T9, le36_out_gg(T67, T69)) → qsort1_out_ga(.(T69, .(T67, T68)), T9)
U24_ga(T69, T67, T68, T9, le36_out_gg(T67, T69)) → U25_ga(T69, T67, T68, T9, split51_in_ggaa(T68, T69, X93, X94))
split51_in_ggaa([], T101, [], []) → split51_out_ggaa([], T101, [], [])
split51_in_ggaa(.(T114, T115), T116, .(T114, X167), X168) → U3_ggaa(T114, T115, T116, X167, X168, le36_in_gg(T114, T116))
U3_ggaa(T114, T115, T116, X167, X168, le36_out_gg(T114, T116)) → split51_out_ggaa(.(T114, T115), T116, .(T114, X167), X168)
U3_ggaa(T114, T115, T116, X167, X168, le36_out_gg(T114, T116)) → U4_ggaa(T114, T115, T116, X167, X168, split51_in_ggaa(T115, T116, X167, X168))
split51_in_ggaa(.(T129, T130), T131, X199, .(T129, X200)) → U5_ggaa(T129, T130, T131, X199, X200, gt67_in_gg(T129, T131))
gt67_in_gg(s(T144), s(T145)) → U7_gg(T144, T145, gt67_in_gg(T144, T145))
gt67_in_gg(s(T150), 0) → gt67_out_gg(s(T150), 0)
U7_gg(T144, T145, gt67_out_gg(T144, T145)) → gt67_out_gg(s(T144), s(T145))
U5_ggaa(T129, T130, T131, X199, X200, gt67_out_gg(T129, T131)) → split51_out_ggaa(.(T129, T130), T131, X199, .(T129, X200))
U5_ggaa(T129, T130, T131, X199, X200, gt67_out_gg(T129, T131)) → U6_ggaa(T129, T130, T131, X199, X200, split51_in_ggaa(T130, T131, X199, X200))
U6_ggaa(T129, T130, T131, X199, X200, split51_out_ggaa(T130, T131, X199, X200)) → split51_out_ggaa(.(T129, T130), T131, X199, .(T129, X200))
U4_ggaa(T114, T115, T116, X167, X168, split51_out_ggaa(T115, T116, X167, X168)) → split51_out_ggaa(.(T114, T115), T116, .(T114, X167), X168)
U25_ga(T69, T67, T68, T9, split51_out_ggaa(T68, T69, X93, X94)) → qsort1_out_ga(.(T69, .(T67, T68)), T9)
U24_ga(T69, T67, T68, T9, le36_out_gg(T67, T69)) → U26_ga(T69, T67, T68, T9, split51_in_ggaa(T68, T69, T93, T94))
U26_ga(T69, T67, T68, T9, split51_out_ggaa(T68, T69, T93, T94)) → U27_ga(T69, T67, T68, T9, qsort1_in_aa(.(T67, T93), X12))
qsort1_in_aa([], []) → qsort1_out_aa([], [])
qsort1_in_aa(.(T14, []), T9) → U19_aa(T14, T9, qsort14_in_a(X12))
U19_aa(T14, T9, qsort14_out_a(X12)) → qsort1_out_aa(.(T14, []), T9)
qsort1_in_aa(.(T14, []), T9) → U20_aa(T14, T9, qsort14_in_a(T17))
U20_aa(T14, T9, qsort14_out_a(T17)) → U21_aa(T14, T9, qsort14_in_a(X13))
U21_aa(T14, T9, qsort14_out_a(X13)) → qsort1_out_aa(.(T14, []), T9)
U20_aa(T14, T9, qsort14_out_a(T17)) → U22_aa(T14, T9, T17, qsort14_in_a(T20))
U22_aa(T14, T9, T17, qsort14_out_a(T20)) → U23_aa(T14, T9, append23_in_gaga(T17, T14, T20, T9))
append23_in_gaga([], T33, T34, .(T33, T34)) → append23_out_gaga([], T33, T34, .(T33, T34))
append23_in_gaga(.(T45, T46), T47, T48, .(T45, T50)) → U1_gaga(T45, T46, T47, T48, T50, append23_in_gaga(T46, T47, T48, T50))
U1_gaga(T45, T46, T47, T48, T50, append23_out_gaga(T46, T47, T48, T50)) → append23_out_gaga(.(T45, T46), T47, T48, .(T45, T50))
U23_aa(T14, T9, append23_out_gaga(T17, T14, T20, T9)) → qsort1_out_aa(.(T14, []), T9)
qsort1_in_aa(.(T69, .(T67, T68)), T9) → U24_aa(T69, T67, T68, T9, le36_in_aa(T67, T69))
le36_in_aa(s(T82), s(T83)) → U2_aa(T82, T83, le36_in_aa(T82, T83))
le36_in_aa(0, s(T90)) → le36_out_aa(0, s(T90))
le36_in_aa(0, 0) → le36_out_aa(0, 0)
U2_aa(T82, T83, le36_out_aa(T82, T83)) → le36_out_aa(s(T82), s(T83))
U24_aa(T69, T67, T68, T9, le36_out_aa(T67, T69)) → qsort1_out_aa(.(T69, .(T67, T68)), T9)
U24_aa(T69, T67, T68, T9, le36_out_aa(T67, T69)) → U25_aa(T69, T67, T68, T9, split51_in_aaaa(T68, T69, X93, X94))
split51_in_aaaa([], T101, [], []) → split51_out_aaaa([], T101, [], [])
split51_in_aaaa(.(T114, T115), T116, .(T114, X167), X168) → U3_aaaa(T114, T115, T116, X167, X168, le36_in_aa(T114, T116))
U3_aaaa(T114, T115, T116, X167, X168, le36_out_aa(T114, T116)) → split51_out_aaaa(.(T114, T115), T116, .(T114, X167), X168)
U3_aaaa(T114, T115, T116, X167, X168, le36_out_aa(T114, T116)) → U4_aaaa(T114, T115, T116, X167, X168, split51_in_aaaa(T115, T116, X167, X168))
split51_in_aaaa(.(T129, T130), T131, X199, .(T129, X200)) → U5_aaaa(T129, T130, T131, X199, X200, gt67_in_aa(T129, T131))
gt67_in_aa(s(T144), s(T145)) → U7_aa(T144, T145, gt67_in_aa(T144, T145))
gt67_in_aa(s(T150), 0) → gt67_out_aa(s(T150), 0)
U7_aa(T144, T145, gt67_out_aa(T144, T145)) → gt67_out_aa(s(T144), s(T145))
U5_aaaa(T129, T130, T131, X199, X200, gt67_out_aa(T129, T131)) → split51_out_aaaa(.(T129, T130), T131, X199, .(T129, X200))
U5_aaaa(T129, T130, T131, X199, X200, gt67_out_aa(T129, T131)) → U6_aaaa(T129, T130, T131, X199, X200, split51_in_agaa(T130, T131, X199, X200))
split51_in_agaa([], T101, [], []) → split51_out_agaa([], T101, [], [])
split51_in_agaa(.(T114, T115), T116, .(T114, X167), X168) → U3_agaa(T114, T115, T116, X167, X168, le36_in_ag(T114, T116))
le36_in_ag(s(T82), s(T83)) → U2_ag(T82, T83, le36_in_ag(T82, T83))
le36_in_ag(0, s(T90)) → le36_out_ag(0, s(T90))
le36_in_ag(0, 0) → le36_out_ag(0, 0)
U2_ag(T82, T83, le36_out_ag(T82, T83)) → le36_out_ag(s(T82), s(T83))
U3_agaa(T114, T115, T116, X167, X168, le36_out_ag(T114, T116)) → split51_out_agaa(.(T114, T115), T116, .(T114, X167), X168)
U3_agaa(T114, T115, T116, X167, X168, le36_out_ag(T114, T116)) → U4_agaa(T114, T115, T116, X167, X168, split51_in_agaa(T115, T116, X167, X168))
split51_in_agaa(.(T129, T130), T131, X199, .(T129, X200)) → U5_agaa(T129, T130, T131, X199, X200, gt67_in_ag(T129, T131))
gt67_in_ag(s(T144), s(T145)) → U7_ag(T144, T145, gt67_in_ag(T144, T145))
gt67_in_ag(s(T150), 0) → gt67_out_ag(s(T150), 0)
U7_ag(T144, T145, gt67_out_ag(T144, T145)) → gt67_out_ag(s(T144), s(T145))
U5_agaa(T129, T130, T131, X199, X200, gt67_out_ag(T129, T131)) → split51_out_agaa(.(T129, T130), T131, X199, .(T129, X200))
U5_agaa(T129, T130, T131, X199, X200, gt67_out_ag(T129, T131)) → U6_agaa(T129, T130, T131, X199, X200, split51_in_agaa(T130, T131, X199, X200))
U6_agaa(T129, T130, T131, X199, X200, split51_out_agaa(T130, T131, X199, X200)) → split51_out_agaa(.(T129, T130), T131, X199, .(T129, X200))
U4_agaa(T114, T115, T116, X167, X168, split51_out_agaa(T115, T116, X167, X168)) → split51_out_agaa(.(T114, T115), T116, .(T114, X167), X168)
U6_aaaa(T129, T130, T131, X199, X200, split51_out_agaa(T130, T131, X199, X200)) → split51_out_aaaa(.(T129, T130), T131, X199, .(T129, X200))
U4_aaaa(T114, T115, T116, X167, X168, split51_out_aaaa(T115, T116, X167, X168)) → split51_out_aaaa(.(T114, T115), T116, .(T114, X167), X168)
U25_aa(T69, T67, T68, T9, split51_out_aaaa(T68, T69, X93, X94)) → qsort1_out_aa(.(T69, .(T67, T68)), T9)
U24_aa(T69, T67, T68, T9, le36_out_aa(T67, T69)) → U26_aa(T69, T67, T68, T9, split51_in_aaaa(T68, T69, T93, T94))
U26_aa(T69, T67, T68, T9, split51_out_aaaa(T68, T69, T93, T94)) → U27_aa(T69, T67, T68, T9, qsort1_in_aa(.(T67, T93), X12))
qsort1_in_aa(.(T215, .(T213, T214)), T9) → U30_aa(T215, T213, T214, T9, gt67_in_aa(T213, T215))
U30_aa(T215, T213, T214, T9, gt67_out_aa(T213, T215)) → qsort1_out_aa(.(T215, .(T213, T214)), T9)
U30_aa(T215, T213, T214, T9, gt67_out_aa(T213, T215)) → U31_aa(T215, T213, T214, T9, split51_in_agaa(T214, T215, X323, X324))
U31_aa(T215, T213, T214, T9, split51_out_agaa(T214, T215, X323, X324)) → qsort1_out_aa(.(T215, .(T213, T214)), T9)
U30_aa(T215, T213, T214, T9, gt67_out_aa(T213, T215)) → U32_aa(T215, T213, T214, T9, split51_in_agaa(T214, T215, T222, T223))
U32_aa(T215, T213, T214, T9, split51_out_agaa(T214, T215, T222, T223)) → U33_aa(T215, T213, T214, T9, qsort79_in_aa(T222, X12))
qsort79_in_aa([], []) → qsort79_out_aa([], [])
qsort79_in_aa(.(T163, T164), X265) → U8_aa(T163, T164, X265, split51_in_aaaa(T164, T163, X261, X262))
U8_aa(T163, T164, X265, split51_out_aaaa(T164, T163, X261, X262)) → qsort79_out_aa(.(T163, T164), X265)
qsort79_in_aa(.(T163, T164), X265) → U9_aa(T163, T164, X265, split51_in_aaaa(T164, T163, T167, T168))
U9_aa(T163, T164, X265, split51_out_aaaa(T164, T163, T167, T168)) → U10_aa(T163, T164, X265, qsort79_in_aa(T167, X263))
U10_aa(T163, T164, X265, qsort79_out_aa(T167, X263)) → qsort79_out_aa(.(T163, T164), X265)
U9_aa(T163, T164, X265, split51_out_aaaa(T164, T163, T167, T168)) → U11_aa(T163, T164, X265, T168, qsort79_in_aa(T167, T171))
U11_aa(T163, T164, X265, T168, qsort79_out_aa(T167, T171)) → U12_aa(T163, T164, X265, qsort79_in_aa(T168, X264))
U12_aa(T163, T164, X265, qsort79_out_aa(T168, X264)) → qsort79_out_aa(.(T163, T164), X265)
U11_aa(T163, T164, X265, T168, qsort79_out_aa(T167, T171)) → U13_aa(T163, T164, X265, T171, qsort79_in_aa(T168, T172))
U13_aa(T163, T164, X265, T171, qsort79_out_aa(T168, T172)) → U14_aa(T163, T164, X265, append94_in_aaaa(T171, T163, T172, X265))
append94_in_aaaa([], T185, T186, .(T185, T186)) → append94_out_aaaa([], T185, T186, .(T185, T186))
append94_in_aaaa(.(T195, T196), T197, T198, .(T195, X295)) → U15_aaaa(T195, T196, T197, T198, X295, append94_in_aaaa(T196, T197, T198, X295))
U15_aaaa(T195, T196, T197, T198, X295, append94_out_aaaa(T196, T197, T198, X295)) → append94_out_aaaa(.(T195, T196), T197, T198, .(T195, X295))
U14_aa(T163, T164, X265, append94_out_aaaa(T171, T163, T172, X265)) → qsort79_out_aa(.(T163, T164), X265)
U33_aa(T215, T213, T214, T9, qsort79_out_aa(T222, X12)) → qsort1_out_aa(.(T215, .(T213, T214)), T9)
U32_aa(T215, T213, T214, T9, split51_out_agaa(T214, T215, T222, T223)) → U34_aa(T215, T213, T214, T9, T223, qsort79_in_aa(T222, T226))
U34_aa(T215, T213, T214, T9, T223, qsort79_out_aa(T222, T226)) → U35_aa(T215, T213, T214, T9, p78_in_aaaga(.(T213, T223), X13, T226, T215, T9))
p78_in_aaaga(T94, X13, T155, T69, T9) → U16_aaaga(T94, X13, T155, T69, T9, qsort79_in_aa(T94, X13))
U16_aaaga(T94, X13, T155, T69, T9, qsort79_out_aa(T94, X13)) → p78_out_aaaga(T94, X13, T155, T69, T9)
p78_in_aaaga(T94, T158, T155, T69, T9) → U17_aaaga(T94, T158, T155, T69, T9, qsort79_in_aa(T94, T158))
U17_aaaga(T94, T158, T155, T69, T9, qsort79_out_aa(T94, T158)) → U18_aaaga(T94, T158, T155, T69, T9, append23_in_agaa(T155, T69, T158, T9))
append23_in_agaa([], T33, T34, .(T33, T34)) → append23_out_agaa([], T33, T34, .(T33, T34))
append23_in_agaa(.(T45, T46), T47, T48, .(T45, T50)) → U1_agaa(T45, T46, T47, T48, T50, append23_in_agaa(T46, T47, T48, T50))
U1_agaa(T45, T46, T47, T48, T50, append23_out_agaa(T46, T47, T48, T50)) → append23_out_agaa(.(T45, T46), T47, T48, .(T45, T50))
U18_aaaga(T94, T158, T155, T69, T9, append23_out_agaa(T155, T69, T158, T9)) → p78_out_aaaga(T94, T158, T155, T69, T9)
U35_aa(T215, T213, T214, T9, p78_out_aaaga(.(T213, T223), X13, T226, T215, T9)) → qsort1_out_aa(.(T215, .(T213, T214)), T9)
U27_aa(T69, T67, T68, T9, qsort1_out_aa(.(T67, T93), X12)) → qsort1_out_aa(.(T69, .(T67, T68)), T9)
U26_aa(T69, T67, T68, T9, split51_out_aaaa(T68, T69, T93, T94)) → U28_aa(T69, T67, T68, T9, T94, qsort1_in_aa(.(T67, T93), T155))
U28_aa(T69, T67, T68, T9, T94, qsort1_out_aa(.(T67, T93), T155)) → U29_aa(T69, T67, T68, T9, p78_in_aaaaa(T94, X13, T155, T69, T9))
p78_in_aaaaa(T94, X13, T155, T69, T9) → U16_aaaaa(T94, X13, T155, T69, T9, qsort79_in_aa(T94, X13))
U16_aaaaa(T94, X13, T155, T69, T9, qsort79_out_aa(T94, X13)) → p78_out_aaaaa(T94, X13, T155, T69, T9)
p78_in_aaaaa(T94, T158, T155, T69, T9) → U17_aaaaa(T94, T158, T155, T69, T9, qsort79_in_aa(T94, T158))
U17_aaaaa(T94, T158, T155, T69, T9, qsort79_out_aa(T94, T158)) → U18_aaaaa(T94, T158, T155, T69, T9, append23_in_aaaa(T155, T69, T158, T9))
append23_in_aaaa([], T33, T34, .(T33, T34)) → append23_out_aaaa([], T33, T34, .(T33, T34))
append23_in_aaaa(.(T45, T46), T47, T48, .(T45, T50)) → U1_aaaa(T45, T46, T47, T48, T50, append23_in_aaaa(T46, T47, T48, T50))
U1_aaaa(T45, T46, T47, T48, T50, append23_out_aaaa(T46, T47, T48, T50)) → append23_out_aaaa(.(T45, T46), T47, T48, .(T45, T50))
U18_aaaaa(T94, T158, T155, T69, T9, append23_out_aaaa(T155, T69, T158, T9)) → p78_out_aaaaa(T94, T158, T155, T69, T9)
U29_aa(T69, T67, T68, T9, p78_out_aaaaa(T94, X13, T155, T69, T9)) → qsort1_out_aa(.(T69, .(T67, T68)), T9)
U27_ga(T69, T67, T68, T9, qsort1_out_aa(.(T67, T93), X12)) → qsort1_out_ga(.(T69, .(T67, T68)), T9)
U26_ga(T69, T67, T68, T9, split51_out_ggaa(T68, T69, T93, T94)) → U28_ga(T69, T67, T68, T9, T94, qsort1_in_aa(.(T67, T93), T155))
U28_ga(T69, T67, T68, T9, T94, qsort1_out_aa(.(T67, T93), T155)) → U29_ga(T69, T67, T68, T9, p78_in_aaaga(T94, X13, T155, T69, T9))
U29_ga(T69, T67, T68, T9, p78_out_aaaga(T94, X13, T155, T69, T9)) → qsort1_out_ga(.(T69, .(T67, T68)), T9)
qsort1_in_ga(.(T215, .(T213, T214)), T9) → U30_ga(T215, T213, T214, T9, gt67_in_gg(T213, T215))
U30_ga(T215, T213, T214, T9, gt67_out_gg(T213, T215)) → qsort1_out_ga(.(T215, .(T213, T214)), T9)
U30_ga(T215, T213, T214, T9, gt67_out_gg(T213, T215)) → U31_ga(T215, T213, T214, T9, split51_in_ggaa(T214, T215, X323, X324))
U31_ga(T215, T213, T214, T9, split51_out_ggaa(T214, T215, X323, X324)) → qsort1_out_ga(.(T215, .(T213, T214)), T9)
U30_ga(T215, T213, T214, T9, gt67_out_gg(T213, T215)) → U32_ga(T215, T213, T214, T9, split51_in_ggaa(T214, T215, T222, T223))
U32_ga(T215, T213, T214, T9, split51_out_ggaa(T214, T215, T222, T223)) → U33_ga(T215, T213, T214, T9, qsort79_in_aa(T222, X12))
U33_ga(T215, T213, T214, T9, qsort79_out_aa(T222, X12)) → qsort1_out_ga(.(T215, .(T213, T214)), T9)
U32_ga(T215, T213, T214, T9, split51_out_ggaa(T214, T215, T222, T223)) → U34_ga(T215, T213, T214, T9, T223, qsort79_in_aa(T222, T226))
U34_ga(T215, T213, T214, T9, T223, qsort79_out_aa(T222, T226)) → U35_ga(T215, T213, T214, T9, p78_in_aaaga(.(T213, T223), X13, T226, T215, T9))
U35_ga(T215, T213, T214, T9, p78_out_aaaga(.(T213, T223), X13, T226, T215, T9)) → qsort1_out_ga(.(T215, .(T213, T214)), T9)
QSORT1_IN_GA(.(T14, []), T9) → U19_GA(T14, T9, qsort14_in_a(X12))
QSORT1_IN_GA(.(T14, []), T9) → QSORT14_IN_A(X12)
QSORT1_IN_GA(.(T14, []), T9) → U20_GA(T14, T9, qsort14_in_a(T17))
U20_GA(T14, T9, qsort14_out_a(T17)) → U21_GA(T14, T9, qsort14_in_a(X13))
U20_GA(T14, T9, qsort14_out_a(T17)) → QSORT14_IN_A(X13)
U20_GA(T14, T9, qsort14_out_a(T17)) → U22_GA(T14, T9, T17, qsort14_in_a(T20))
U22_GA(T14, T9, T17, qsort14_out_a(T20)) → U23_GA(T14, T9, append23_in_ggga(T17, T14, T20, T9))
U22_GA(T14, T9, T17, qsort14_out_a(T20)) → APPEND23_IN_GGGA(T17, T14, T20, T9)
APPEND23_IN_GGGA(.(T45, T46), T47, T48, .(T45, T50)) → U1_GGGA(T45, T46, T47, T48, T50, append23_in_ggga(T46, T47, T48, T50))
APPEND23_IN_GGGA(.(T45, T46), T47, T48, .(T45, T50)) → APPEND23_IN_GGGA(T46, T47, T48, T50)
QSORT1_IN_GA(.(T69, .(T67, T68)), T9) → U24_GA(T69, T67, T68, T9, le36_in_gg(T67, T69))
QSORT1_IN_GA(.(T69, .(T67, T68)), T9) → LE36_IN_GG(T67, T69)
LE36_IN_GG(s(T82), s(T83)) → U2_GG(T82, T83, le36_in_gg(T82, T83))
LE36_IN_GG(s(T82), s(T83)) → LE36_IN_GG(T82, T83)
U24_GA(T69, T67, T68, T9, le36_out_gg(T67, T69)) → U25_GA(T69, T67, T68, T9, split51_in_ggaa(T68, T69, X93, X94))
U24_GA(T69, T67, T68, T9, le36_out_gg(T67, T69)) → SPLIT51_IN_GGAA(T68, T69, X93, X94)
SPLIT51_IN_GGAA(.(T114, T115), T116, .(T114, X167), X168) → U3_GGAA(T114, T115, T116, X167, X168, le36_in_gg(T114, T116))
SPLIT51_IN_GGAA(.(T114, T115), T116, .(T114, X167), X168) → LE36_IN_GG(T114, T116)
U3_GGAA(T114, T115, T116, X167, X168, le36_out_gg(T114, T116)) → U4_GGAA(T114, T115, T116, X167, X168, split51_in_ggaa(T115, T116, X167, X168))
U3_GGAA(T114, T115, T116, X167, X168, le36_out_gg(T114, T116)) → SPLIT51_IN_GGAA(T115, T116, X167, X168)
SPLIT51_IN_GGAA(.(T129, T130), T131, X199, .(T129, X200)) → U5_GGAA(T129, T130, T131, X199, X200, gt67_in_gg(T129, T131))
SPLIT51_IN_GGAA(.(T129, T130), T131, X199, .(T129, X200)) → GT67_IN_GG(T129, T131)
GT67_IN_GG(s(T144), s(T145)) → U7_GG(T144, T145, gt67_in_gg(T144, T145))
GT67_IN_GG(s(T144), s(T145)) → GT67_IN_GG(T144, T145)
U5_GGAA(T129, T130, T131, X199, X200, gt67_out_gg(T129, T131)) → U6_GGAA(T129, T130, T131, X199, X200, split51_in_ggaa(T130, T131, X199, X200))
U5_GGAA(T129, T130, T131, X199, X200, gt67_out_gg(T129, T131)) → SPLIT51_IN_GGAA(T130, T131, X199, X200)
U24_GA(T69, T67, T68, T9, le36_out_gg(T67, T69)) → U26_GA(T69, T67, T68, T9, split51_in_ggaa(T68, T69, T93, T94))
U26_GA(T69, T67, T68, T9, split51_out_ggaa(T68, T69, T93, T94)) → U27_GA(T69, T67, T68, T9, qsort1_in_aa(.(T67, T93), X12))
U26_GA(T69, T67, T68, T9, split51_out_ggaa(T68, T69, T93, T94)) → QSORT1_IN_AA(.(T67, T93), X12)
QSORT1_IN_AA(.(T14, []), T9) → U19_AA(T14, T9, qsort14_in_a(X12))
QSORT1_IN_AA(.(T14, []), T9) → QSORT14_IN_A(X12)
QSORT1_IN_AA(.(T14, []), T9) → U20_AA(T14, T9, qsort14_in_a(T17))
U20_AA(T14, T9, qsort14_out_a(T17)) → U21_AA(T14, T9, qsort14_in_a(X13))
U20_AA(T14, T9, qsort14_out_a(T17)) → QSORT14_IN_A(X13)
U20_AA(T14, T9, qsort14_out_a(T17)) → U22_AA(T14, T9, T17, qsort14_in_a(T20))
U22_AA(T14, T9, T17, qsort14_out_a(T20)) → U23_AA(T14, T9, append23_in_gaga(T17, T14, T20, T9))
U22_AA(T14, T9, T17, qsort14_out_a(T20)) → APPEND23_IN_GAGA(T17, T14, T20, T9)
APPEND23_IN_GAGA(.(T45, T46), T47, T48, .(T45, T50)) → U1_GAGA(T45, T46, T47, T48, T50, append23_in_gaga(T46, T47, T48, T50))
APPEND23_IN_GAGA(.(T45, T46), T47, T48, .(T45, T50)) → APPEND23_IN_GAGA(T46, T47, T48, T50)
QSORT1_IN_AA(.(T69, .(T67, T68)), T9) → U24_AA(T69, T67, T68, T9, le36_in_aa(T67, T69))
QSORT1_IN_AA(.(T69, .(T67, T68)), T9) → LE36_IN_AA(T67, T69)
LE36_IN_AA(s(T82), s(T83)) → U2_AA(T82, T83, le36_in_aa(T82, T83))
LE36_IN_AA(s(T82), s(T83)) → LE36_IN_AA(T82, T83)
U24_AA(T69, T67, T68, T9, le36_out_aa(T67, T69)) → U25_AA(T69, T67, T68, T9, split51_in_aaaa(T68, T69, X93, X94))
U24_AA(T69, T67, T68, T9, le36_out_aa(T67, T69)) → SPLIT51_IN_AAAA(T68, T69, X93, X94)
SPLIT51_IN_AAAA(.(T114, T115), T116, .(T114, X167), X168) → U3_AAAA(T114, T115, T116, X167, X168, le36_in_aa(T114, T116))
SPLIT51_IN_AAAA(.(T114, T115), T116, .(T114, X167), X168) → LE36_IN_AA(T114, T116)
U3_AAAA(T114, T115, T116, X167, X168, le36_out_aa(T114, T116)) → U4_AAAA(T114, T115, T116, X167, X168, split51_in_aaaa(T115, T116, X167, X168))
U3_AAAA(T114, T115, T116, X167, X168, le36_out_aa(T114, T116)) → SPLIT51_IN_AAAA(T115, T116, X167, X168)
SPLIT51_IN_AAAA(.(T129, T130), T131, X199, .(T129, X200)) → U5_AAAA(T129, T130, T131, X199, X200, gt67_in_aa(T129, T131))
SPLIT51_IN_AAAA(.(T129, T130), T131, X199, .(T129, X200)) → GT67_IN_AA(T129, T131)
GT67_IN_AA(s(T144), s(T145)) → U7_AA(T144, T145, gt67_in_aa(T144, T145))
GT67_IN_AA(s(T144), s(T145)) → GT67_IN_AA(T144, T145)
U5_AAAA(T129, T130, T131, X199, X200, gt67_out_aa(T129, T131)) → U6_AAAA(T129, T130, T131, X199, X200, split51_in_agaa(T130, T131, X199, X200))
U5_AAAA(T129, T130, T131, X199, X200, gt67_out_aa(T129, T131)) → SPLIT51_IN_AGAA(T130, T131, X199, X200)
SPLIT51_IN_AGAA(.(T114, T115), T116, .(T114, X167), X168) → U3_AGAA(T114, T115, T116, X167, X168, le36_in_ag(T114, T116))
SPLIT51_IN_AGAA(.(T114, T115), T116, .(T114, X167), X168) → LE36_IN_AG(T114, T116)
LE36_IN_AG(s(T82), s(T83)) → U2_AG(T82, T83, le36_in_ag(T82, T83))
LE36_IN_AG(s(T82), s(T83)) → LE36_IN_AG(T82, T83)
U3_AGAA(T114, T115, T116, X167, X168, le36_out_ag(T114, T116)) → U4_AGAA(T114, T115, T116, X167, X168, split51_in_agaa(T115, T116, X167, X168))
U3_AGAA(T114, T115, T116, X167, X168, le36_out_ag(T114, T116)) → SPLIT51_IN_AGAA(T115, T116, X167, X168)
SPLIT51_IN_AGAA(.(T129, T130), T131, X199, .(T129, X200)) → U5_AGAA(T129, T130, T131, X199, X200, gt67_in_ag(T129, T131))
SPLIT51_IN_AGAA(.(T129, T130), T131, X199, .(T129, X200)) → GT67_IN_AG(T129, T131)
GT67_IN_AG(s(T144), s(T145)) → U7_AG(T144, T145, gt67_in_ag(T144, T145))
GT67_IN_AG(s(T144), s(T145)) → GT67_IN_AG(T144, T145)
U5_AGAA(T129, T130, T131, X199, X200, gt67_out_ag(T129, T131)) → U6_AGAA(T129, T130, T131, X199, X200, split51_in_agaa(T130, T131, X199, X200))
U5_AGAA(T129, T130, T131, X199, X200, gt67_out_ag(T129, T131)) → SPLIT51_IN_AGAA(T130, T131, X199, X200)
U24_AA(T69, T67, T68, T9, le36_out_aa(T67, T69)) → U26_AA(T69, T67, T68, T9, split51_in_aaaa(T68, T69, T93, T94))
U26_AA(T69, T67, T68, T9, split51_out_aaaa(T68, T69, T93, T94)) → U27_AA(T69, T67, T68, T9, qsort1_in_aa(.(T67, T93), X12))
U26_AA(T69, T67, T68, T9, split51_out_aaaa(T68, T69, T93, T94)) → QSORT1_IN_AA(.(T67, T93), X12)
QSORT1_IN_AA(.(T215, .(T213, T214)), T9) → U30_AA(T215, T213, T214, T9, gt67_in_aa(T213, T215))
QSORT1_IN_AA(.(T215, .(T213, T214)), T9) → GT67_IN_AA(T213, T215)
U30_AA(T215, T213, T214, T9, gt67_out_aa(T213, T215)) → U31_AA(T215, T213, T214, T9, split51_in_agaa(T214, T215, X323, X324))
U30_AA(T215, T213, T214, T9, gt67_out_aa(T213, T215)) → SPLIT51_IN_AGAA(T214, T215, X323, X324)
U30_AA(T215, T213, T214, T9, gt67_out_aa(T213, T215)) → U32_AA(T215, T213, T214, T9, split51_in_agaa(T214, T215, T222, T223))
U32_AA(T215, T213, T214, T9, split51_out_agaa(T214, T215, T222, T223)) → U33_AA(T215, T213, T214, T9, qsort79_in_aa(T222, X12))
U32_AA(T215, T213, T214, T9, split51_out_agaa(T214, T215, T222, T223)) → QSORT79_IN_AA(T222, X12)
QSORT79_IN_AA(.(T163, T164), X265) → U8_AA(T163, T164, X265, split51_in_aaaa(T164, T163, X261, X262))
QSORT79_IN_AA(.(T163, T164), X265) → SPLIT51_IN_AAAA(T164, T163, X261, X262)
QSORT79_IN_AA(.(T163, T164), X265) → U9_AA(T163, T164, X265, split51_in_aaaa(T164, T163, T167, T168))
U9_AA(T163, T164, X265, split51_out_aaaa(T164, T163, T167, T168)) → U10_AA(T163, T164, X265, qsort79_in_aa(T167, X263))
U9_AA(T163, T164, X265, split51_out_aaaa(T164, T163, T167, T168)) → QSORT79_IN_AA(T167, X263)
U9_AA(T163, T164, X265, split51_out_aaaa(T164, T163, T167, T168)) → U11_AA(T163, T164, X265, T168, qsort79_in_aa(T167, T171))
U11_AA(T163, T164, X265, T168, qsort79_out_aa(T167, T171)) → U12_AA(T163, T164, X265, qsort79_in_aa(T168, X264))
U11_AA(T163, T164, X265, T168, qsort79_out_aa(T167, T171)) → QSORT79_IN_AA(T168, X264)
U11_AA(T163, T164, X265, T168, qsort79_out_aa(T167, T171)) → U13_AA(T163, T164, X265, T171, qsort79_in_aa(T168, T172))
U13_AA(T163, T164, X265, T171, qsort79_out_aa(T168, T172)) → U14_AA(T163, T164, X265, append94_in_aaaa(T171, T163, T172, X265))
U13_AA(T163, T164, X265, T171, qsort79_out_aa(T168, T172)) → APPEND94_IN_AAAA(T171, T163, T172, X265)
APPEND94_IN_AAAA(.(T195, T196), T197, T198, .(T195, X295)) → U15_AAAA(T195, T196, T197, T198, X295, append94_in_aaaa(T196, T197, T198, X295))
APPEND94_IN_AAAA(.(T195, T196), T197, T198, .(T195, X295)) → APPEND94_IN_AAAA(T196, T197, T198, X295)
U32_AA(T215, T213, T214, T9, split51_out_agaa(T214, T215, T222, T223)) → U34_AA(T215, T213, T214, T9, T223, qsort79_in_aa(T222, T226))
U34_AA(T215, T213, T214, T9, T223, qsort79_out_aa(T222, T226)) → U35_AA(T215, T213, T214, T9, p78_in_aaaga(.(T213, T223), X13, T226, T215, T9))
U34_AA(T215, T213, T214, T9, T223, qsort79_out_aa(T222, T226)) → P78_IN_AAAGA(.(T213, T223), X13, T226, T215, T9)
P78_IN_AAAGA(T94, X13, T155, T69, T9) → U16_AAAGA(T94, X13, T155, T69, T9, qsort79_in_aa(T94, X13))
P78_IN_AAAGA(T94, X13, T155, T69, T9) → QSORT79_IN_AA(T94, X13)
P78_IN_AAAGA(T94, T158, T155, T69, T9) → U17_AAAGA(T94, T158, T155, T69, T9, qsort79_in_aa(T94, T158))
U17_AAAGA(T94, T158, T155, T69, T9, qsort79_out_aa(T94, T158)) → U18_AAAGA(T94, T158, T155, T69, T9, append23_in_agaa(T155, T69, T158, T9))
U17_AAAGA(T94, T158, T155, T69, T9, qsort79_out_aa(T94, T158)) → APPEND23_IN_AGAA(T155, T69, T158, T9)
APPEND23_IN_AGAA(.(T45, T46), T47, T48, .(T45, T50)) → U1_AGAA(T45, T46, T47, T48, T50, append23_in_agaa(T46, T47, T48, T50))
APPEND23_IN_AGAA(.(T45, T46), T47, T48, .(T45, T50)) → APPEND23_IN_AGAA(T46, T47, T48, T50)
U26_AA(T69, T67, T68, T9, split51_out_aaaa(T68, T69, T93, T94)) → U28_AA(T69, T67, T68, T9, T94, qsort1_in_aa(.(T67, T93), T155))
U28_AA(T69, T67, T68, T9, T94, qsort1_out_aa(.(T67, T93), T155)) → U29_AA(T69, T67, T68, T9, p78_in_aaaaa(T94, X13, T155, T69, T9))
U28_AA(T69, T67, T68, T9, T94, qsort1_out_aa(.(T67, T93), T155)) → P78_IN_AAAAA(T94, X13, T155, T69, T9)
P78_IN_AAAAA(T94, X13, T155, T69, T9) → U16_AAAAA(T94, X13, T155, T69, T9, qsort79_in_aa(T94, X13))
P78_IN_AAAAA(T94, X13, T155, T69, T9) → QSORT79_IN_AA(T94, X13)
P78_IN_AAAAA(T94, T158, T155, T69, T9) → U17_AAAAA(T94, T158, T155, T69, T9, qsort79_in_aa(T94, T158))
U17_AAAAA(T94, T158, T155, T69, T9, qsort79_out_aa(T94, T158)) → U18_AAAAA(T94, T158, T155, T69, T9, append23_in_aaaa(T155, T69, T158, T9))
U17_AAAAA(T94, T158, T155, T69, T9, qsort79_out_aa(T94, T158)) → APPEND23_IN_AAAA(T155, T69, T158, T9)
APPEND23_IN_AAAA(.(T45, T46), T47, T48, .(T45, T50)) → U1_AAAA(T45, T46, T47, T48, T50, append23_in_aaaa(T46, T47, T48, T50))
APPEND23_IN_AAAA(.(T45, T46), T47, T48, .(T45, T50)) → APPEND23_IN_AAAA(T46, T47, T48, T50)
U26_GA(T69, T67, T68, T9, split51_out_ggaa(T68, T69, T93, T94)) → U28_GA(T69, T67, T68, T9, T94, qsort1_in_aa(.(T67, T93), T155))
U28_GA(T69, T67, T68, T9, T94, qsort1_out_aa(.(T67, T93), T155)) → U29_GA(T69, T67, T68, T9, p78_in_aaaga(T94, X13, T155, T69, T9))
U28_GA(T69, T67, T68, T9, T94, qsort1_out_aa(.(T67, T93), T155)) → P78_IN_AAAGA(T94, X13, T155, T69, T9)
QSORT1_IN_GA(.(T215, .(T213, T214)), T9) → U30_GA(T215, T213, T214, T9, gt67_in_gg(T213, T215))
QSORT1_IN_GA(.(T215, .(T213, T214)), T9) → GT67_IN_GG(T213, T215)
U30_GA(T215, T213, T214, T9, gt67_out_gg(T213, T215)) → U31_GA(T215, T213, T214, T9, split51_in_ggaa(T214, T215, X323, X324))
U30_GA(T215, T213, T214, T9, gt67_out_gg(T213, T215)) → SPLIT51_IN_GGAA(T214, T215, X323, X324)
U30_GA(T215, T213, T214, T9, gt67_out_gg(T213, T215)) → U32_GA(T215, T213, T214, T9, split51_in_ggaa(T214, T215, T222, T223))
U32_GA(T215, T213, T214, T9, split51_out_ggaa(T214, T215, T222, T223)) → U33_GA(T215, T213, T214, T9, qsort79_in_aa(T222, X12))
U32_GA(T215, T213, T214, T9, split51_out_ggaa(T214, T215, T222, T223)) → QSORT79_IN_AA(T222, X12)
U32_GA(T215, T213, T214, T9, split51_out_ggaa(T214, T215, T222, T223)) → U34_GA(T215, T213, T214, T9, T223, qsort79_in_aa(T222, T226))
U34_GA(T215, T213, T214, T9, T223, qsort79_out_aa(T222, T226)) → U35_GA(T215, T213, T214, T9, p78_in_aaaga(.(T213, T223), X13, T226, T215, T9))
U34_GA(T215, T213, T214, T9, T223, qsort79_out_aa(T222, T226)) → P78_IN_AAAGA(.(T213, T223), X13, T226, T215, T9)
qsort1_in_ga([], []) → qsort1_out_ga([], [])
qsort1_in_ga(.(T14, []), T9) → U19_ga(T14, T9, qsort14_in_a(X12))
qsort14_in_a([]) → qsort14_out_a([])
U19_ga(T14, T9, qsort14_out_a(X12)) → qsort1_out_ga(.(T14, []), T9)
qsort1_in_ga(.(T14, []), T9) → U20_ga(T14, T9, qsort14_in_a(T17))
U20_ga(T14, T9, qsort14_out_a(T17)) → U21_ga(T14, T9, qsort14_in_a(X13))
U21_ga(T14, T9, qsort14_out_a(X13)) → qsort1_out_ga(.(T14, []), T9)
U20_ga(T14, T9, qsort14_out_a(T17)) → U22_ga(T14, T9, T17, qsort14_in_a(T20))
U22_ga(T14, T9, T17, qsort14_out_a(T20)) → U23_ga(T14, T9, append23_in_ggga(T17, T14, T20, T9))
append23_in_ggga([], T33, T34, .(T33, T34)) → append23_out_ggga([], T33, T34, .(T33, T34))
append23_in_ggga(.(T45, T46), T47, T48, .(T45, T50)) → U1_ggga(T45, T46, T47, T48, T50, append23_in_ggga(T46, T47, T48, T50))
U1_ggga(T45, T46, T47, T48, T50, append23_out_ggga(T46, T47, T48, T50)) → append23_out_ggga(.(T45, T46), T47, T48, .(T45, T50))
U23_ga(T14, T9, append23_out_ggga(T17, T14, T20, T9)) → qsort1_out_ga(.(T14, []), T9)
qsort1_in_ga(.(T69, .(T67, T68)), T9) → U24_ga(T69, T67, T68, T9, le36_in_gg(T67, T69))
le36_in_gg(s(T82), s(T83)) → U2_gg(T82, T83, le36_in_gg(T82, T83))
le36_in_gg(0, s(T90)) → le36_out_gg(0, s(T90))
le36_in_gg(0, 0) → le36_out_gg(0, 0)
U2_gg(T82, T83, le36_out_gg(T82, T83)) → le36_out_gg(s(T82), s(T83))
U24_ga(T69, T67, T68, T9, le36_out_gg(T67, T69)) → qsort1_out_ga(.(T69, .(T67, T68)), T9)
U24_ga(T69, T67, T68, T9, le36_out_gg(T67, T69)) → U25_ga(T69, T67, T68, T9, split51_in_ggaa(T68, T69, X93, X94))
split51_in_ggaa([], T101, [], []) → split51_out_ggaa([], T101, [], [])
split51_in_ggaa(.(T114, T115), T116, .(T114, X167), X168) → U3_ggaa(T114, T115, T116, X167, X168, le36_in_gg(T114, T116))
U3_ggaa(T114, T115, T116, X167, X168, le36_out_gg(T114, T116)) → split51_out_ggaa(.(T114, T115), T116, .(T114, X167), X168)
U3_ggaa(T114, T115, T116, X167, X168, le36_out_gg(T114, T116)) → U4_ggaa(T114, T115, T116, X167, X168, split51_in_ggaa(T115, T116, X167, X168))
split51_in_ggaa(.(T129, T130), T131, X199, .(T129, X200)) → U5_ggaa(T129, T130, T131, X199, X200, gt67_in_gg(T129, T131))
gt67_in_gg(s(T144), s(T145)) → U7_gg(T144, T145, gt67_in_gg(T144, T145))
gt67_in_gg(s(T150), 0) → gt67_out_gg(s(T150), 0)
U7_gg(T144, T145, gt67_out_gg(T144, T145)) → gt67_out_gg(s(T144), s(T145))
U5_ggaa(T129, T130, T131, X199, X200, gt67_out_gg(T129, T131)) → split51_out_ggaa(.(T129, T130), T131, X199, .(T129, X200))
U5_ggaa(T129, T130, T131, X199, X200, gt67_out_gg(T129, T131)) → U6_ggaa(T129, T130, T131, X199, X200, split51_in_ggaa(T130, T131, X199, X200))
U6_ggaa(T129, T130, T131, X199, X200, split51_out_ggaa(T130, T131, X199, X200)) → split51_out_ggaa(.(T129, T130), T131, X199, .(T129, X200))
U4_ggaa(T114, T115, T116, X167, X168, split51_out_ggaa(T115, T116, X167, X168)) → split51_out_ggaa(.(T114, T115), T116, .(T114, X167), X168)
U25_ga(T69, T67, T68, T9, split51_out_ggaa(T68, T69, X93, X94)) → qsort1_out_ga(.(T69, .(T67, T68)), T9)
U24_ga(T69, T67, T68, T9, le36_out_gg(T67, T69)) → U26_ga(T69, T67, T68, T9, split51_in_ggaa(T68, T69, T93, T94))
U26_ga(T69, T67, T68, T9, split51_out_ggaa(T68, T69, T93, T94)) → U27_ga(T69, T67, T68, T9, qsort1_in_aa(.(T67, T93), X12))
qsort1_in_aa([], []) → qsort1_out_aa([], [])
qsort1_in_aa(.(T14, []), T9) → U19_aa(T14, T9, qsort14_in_a(X12))
U19_aa(T14, T9, qsort14_out_a(X12)) → qsort1_out_aa(.(T14, []), T9)
qsort1_in_aa(.(T14, []), T9) → U20_aa(T14, T9, qsort14_in_a(T17))
U20_aa(T14, T9, qsort14_out_a(T17)) → U21_aa(T14, T9, qsort14_in_a(X13))
U21_aa(T14, T9, qsort14_out_a(X13)) → qsort1_out_aa(.(T14, []), T9)
U20_aa(T14, T9, qsort14_out_a(T17)) → U22_aa(T14, T9, T17, qsort14_in_a(T20))
U22_aa(T14, T9, T17, qsort14_out_a(T20)) → U23_aa(T14, T9, append23_in_gaga(T17, T14, T20, T9))
append23_in_gaga([], T33, T34, .(T33, T34)) → append23_out_gaga([], T33, T34, .(T33, T34))
append23_in_gaga(.(T45, T46), T47, T48, .(T45, T50)) → U1_gaga(T45, T46, T47, T48, T50, append23_in_gaga(T46, T47, T48, T50))
U1_gaga(T45, T46, T47, T48, T50, append23_out_gaga(T46, T47, T48, T50)) → append23_out_gaga(.(T45, T46), T47, T48, .(T45, T50))
U23_aa(T14, T9, append23_out_gaga(T17, T14, T20, T9)) → qsort1_out_aa(.(T14, []), T9)
qsort1_in_aa(.(T69, .(T67, T68)), T9) → U24_aa(T69, T67, T68, T9, le36_in_aa(T67, T69))
le36_in_aa(s(T82), s(T83)) → U2_aa(T82, T83, le36_in_aa(T82, T83))
le36_in_aa(0, s(T90)) → le36_out_aa(0, s(T90))
le36_in_aa(0, 0) → le36_out_aa(0, 0)
U2_aa(T82, T83, le36_out_aa(T82, T83)) → le36_out_aa(s(T82), s(T83))
U24_aa(T69, T67, T68, T9, le36_out_aa(T67, T69)) → qsort1_out_aa(.(T69, .(T67, T68)), T9)
U24_aa(T69, T67, T68, T9, le36_out_aa(T67, T69)) → U25_aa(T69, T67, T68, T9, split51_in_aaaa(T68, T69, X93, X94))
split51_in_aaaa([], T101, [], []) → split51_out_aaaa([], T101, [], [])
split51_in_aaaa(.(T114, T115), T116, .(T114, X167), X168) → U3_aaaa(T114, T115, T116, X167, X168, le36_in_aa(T114, T116))
U3_aaaa(T114, T115, T116, X167, X168, le36_out_aa(T114, T116)) → split51_out_aaaa(.(T114, T115), T116, .(T114, X167), X168)
U3_aaaa(T114, T115, T116, X167, X168, le36_out_aa(T114, T116)) → U4_aaaa(T114, T115, T116, X167, X168, split51_in_aaaa(T115, T116, X167, X168))
split51_in_aaaa(.(T129, T130), T131, X199, .(T129, X200)) → U5_aaaa(T129, T130, T131, X199, X200, gt67_in_aa(T129, T131))
gt67_in_aa(s(T144), s(T145)) → U7_aa(T144, T145, gt67_in_aa(T144, T145))
gt67_in_aa(s(T150), 0) → gt67_out_aa(s(T150), 0)
U7_aa(T144, T145, gt67_out_aa(T144, T145)) → gt67_out_aa(s(T144), s(T145))
U5_aaaa(T129, T130, T131, X199, X200, gt67_out_aa(T129, T131)) → split51_out_aaaa(.(T129, T130), T131, X199, .(T129, X200))
U5_aaaa(T129, T130, T131, X199, X200, gt67_out_aa(T129, T131)) → U6_aaaa(T129, T130, T131, X199, X200, split51_in_agaa(T130, T131, X199, X200))
split51_in_agaa([], T101, [], []) → split51_out_agaa([], T101, [], [])
split51_in_agaa(.(T114, T115), T116, .(T114, X167), X168) → U3_agaa(T114, T115, T116, X167, X168, le36_in_ag(T114, T116))
le36_in_ag(s(T82), s(T83)) → U2_ag(T82, T83, le36_in_ag(T82, T83))
le36_in_ag(0, s(T90)) → le36_out_ag(0, s(T90))
le36_in_ag(0, 0) → le36_out_ag(0, 0)
U2_ag(T82, T83, le36_out_ag(T82, T83)) → le36_out_ag(s(T82), s(T83))
U3_agaa(T114, T115, T116, X167, X168, le36_out_ag(T114, T116)) → split51_out_agaa(.(T114, T115), T116, .(T114, X167), X168)
U3_agaa(T114, T115, T116, X167, X168, le36_out_ag(T114, T116)) → U4_agaa(T114, T115, T116, X167, X168, split51_in_agaa(T115, T116, X167, X168))
split51_in_agaa(.(T129, T130), T131, X199, .(T129, X200)) → U5_agaa(T129, T130, T131, X199, X200, gt67_in_ag(T129, T131))
gt67_in_ag(s(T144), s(T145)) → U7_ag(T144, T145, gt67_in_ag(T144, T145))
gt67_in_ag(s(T150), 0) → gt67_out_ag(s(T150), 0)
U7_ag(T144, T145, gt67_out_ag(T144, T145)) → gt67_out_ag(s(T144), s(T145))
U5_agaa(T129, T130, T131, X199, X200, gt67_out_ag(T129, T131)) → split51_out_agaa(.(T129, T130), T131, X199, .(T129, X200))
U5_agaa(T129, T130, T131, X199, X200, gt67_out_ag(T129, T131)) → U6_agaa(T129, T130, T131, X199, X200, split51_in_agaa(T130, T131, X199, X200))
U6_agaa(T129, T130, T131, X199, X200, split51_out_agaa(T130, T131, X199, X200)) → split51_out_agaa(.(T129, T130), T131, X199, .(T129, X200))
U4_agaa(T114, T115, T116, X167, X168, split51_out_agaa(T115, T116, X167, X168)) → split51_out_agaa(.(T114, T115), T116, .(T114, X167), X168)
U6_aaaa(T129, T130, T131, X199, X200, split51_out_agaa(T130, T131, X199, X200)) → split51_out_aaaa(.(T129, T130), T131, X199, .(T129, X200))
U4_aaaa(T114, T115, T116, X167, X168, split51_out_aaaa(T115, T116, X167, X168)) → split51_out_aaaa(.(T114, T115), T116, .(T114, X167), X168)
U25_aa(T69, T67, T68, T9, split51_out_aaaa(T68, T69, X93, X94)) → qsort1_out_aa(.(T69, .(T67, T68)), T9)
U24_aa(T69, T67, T68, T9, le36_out_aa(T67, T69)) → U26_aa(T69, T67, T68, T9, split51_in_aaaa(T68, T69, T93, T94))
U26_aa(T69, T67, T68, T9, split51_out_aaaa(T68, T69, T93, T94)) → U27_aa(T69, T67, T68, T9, qsort1_in_aa(.(T67, T93), X12))
qsort1_in_aa(.(T215, .(T213, T214)), T9) → U30_aa(T215, T213, T214, T9, gt67_in_aa(T213, T215))
U30_aa(T215, T213, T214, T9, gt67_out_aa(T213, T215)) → qsort1_out_aa(.(T215, .(T213, T214)), T9)
U30_aa(T215, T213, T214, T9, gt67_out_aa(T213, T215)) → U31_aa(T215, T213, T214, T9, split51_in_agaa(T214, T215, X323, X324))
U31_aa(T215, T213, T214, T9, split51_out_agaa(T214, T215, X323, X324)) → qsort1_out_aa(.(T215, .(T213, T214)), T9)
U30_aa(T215, T213, T214, T9, gt67_out_aa(T213, T215)) → U32_aa(T215, T213, T214, T9, split51_in_agaa(T214, T215, T222, T223))
U32_aa(T215, T213, T214, T9, split51_out_agaa(T214, T215, T222, T223)) → U33_aa(T215, T213, T214, T9, qsort79_in_aa(T222, X12))
qsort79_in_aa([], []) → qsort79_out_aa([], [])
qsort79_in_aa(.(T163, T164), X265) → U8_aa(T163, T164, X265, split51_in_aaaa(T164, T163, X261, X262))
U8_aa(T163, T164, X265, split51_out_aaaa(T164, T163, X261, X262)) → qsort79_out_aa(.(T163, T164), X265)
qsort79_in_aa(.(T163, T164), X265) → U9_aa(T163, T164, X265, split51_in_aaaa(T164, T163, T167, T168))
U9_aa(T163, T164, X265, split51_out_aaaa(T164, T163, T167, T168)) → U10_aa(T163, T164, X265, qsort79_in_aa(T167, X263))
U10_aa(T163, T164, X265, qsort79_out_aa(T167, X263)) → qsort79_out_aa(.(T163, T164), X265)
U9_aa(T163, T164, X265, split51_out_aaaa(T164, T163, T167, T168)) → U11_aa(T163, T164, X265, T168, qsort79_in_aa(T167, T171))
U11_aa(T163, T164, X265, T168, qsort79_out_aa(T167, T171)) → U12_aa(T163, T164, X265, qsort79_in_aa(T168, X264))
U12_aa(T163, T164, X265, qsort79_out_aa(T168, X264)) → qsort79_out_aa(.(T163, T164), X265)
U11_aa(T163, T164, X265, T168, qsort79_out_aa(T167, T171)) → U13_aa(T163, T164, X265, T171, qsort79_in_aa(T168, T172))
U13_aa(T163, T164, X265, T171, qsort79_out_aa(T168, T172)) → U14_aa(T163, T164, X265, append94_in_aaaa(T171, T163, T172, X265))
append94_in_aaaa([], T185, T186, .(T185, T186)) → append94_out_aaaa([], T185, T186, .(T185, T186))
append94_in_aaaa(.(T195, T196), T197, T198, .(T195, X295)) → U15_aaaa(T195, T196, T197, T198, X295, append94_in_aaaa(T196, T197, T198, X295))
U15_aaaa(T195, T196, T197, T198, X295, append94_out_aaaa(T196, T197, T198, X295)) → append94_out_aaaa(.(T195, T196), T197, T198, .(T195, X295))
U14_aa(T163, T164, X265, append94_out_aaaa(T171, T163, T172, X265)) → qsort79_out_aa(.(T163, T164), X265)
U33_aa(T215, T213, T214, T9, qsort79_out_aa(T222, X12)) → qsort1_out_aa(.(T215, .(T213, T214)), T9)
U32_aa(T215, T213, T214, T9, split51_out_agaa(T214, T215, T222, T223)) → U34_aa(T215, T213, T214, T9, T223, qsort79_in_aa(T222, T226))
U34_aa(T215, T213, T214, T9, T223, qsort79_out_aa(T222, T226)) → U35_aa(T215, T213, T214, T9, p78_in_aaaga(.(T213, T223), X13, T226, T215, T9))
p78_in_aaaga(T94, X13, T155, T69, T9) → U16_aaaga(T94, X13, T155, T69, T9, qsort79_in_aa(T94, X13))
U16_aaaga(T94, X13, T155, T69, T9, qsort79_out_aa(T94, X13)) → p78_out_aaaga(T94, X13, T155, T69, T9)
p78_in_aaaga(T94, T158, T155, T69, T9) → U17_aaaga(T94, T158, T155, T69, T9, qsort79_in_aa(T94, T158))
U17_aaaga(T94, T158, T155, T69, T9, qsort79_out_aa(T94, T158)) → U18_aaaga(T94, T158, T155, T69, T9, append23_in_agaa(T155, T69, T158, T9))
append23_in_agaa([], T33, T34, .(T33, T34)) → append23_out_agaa([], T33, T34, .(T33, T34))
append23_in_agaa(.(T45, T46), T47, T48, .(T45, T50)) → U1_agaa(T45, T46, T47, T48, T50, append23_in_agaa(T46, T47, T48, T50))
U1_agaa(T45, T46, T47, T48, T50, append23_out_agaa(T46, T47, T48, T50)) → append23_out_agaa(.(T45, T46), T47, T48, .(T45, T50))
U18_aaaga(T94, T158, T155, T69, T9, append23_out_agaa(T155, T69, T158, T9)) → p78_out_aaaga(T94, T158, T155, T69, T9)
U35_aa(T215, T213, T214, T9, p78_out_aaaga(.(T213, T223), X13, T226, T215, T9)) → qsort1_out_aa(.(T215, .(T213, T214)), T9)
U27_aa(T69, T67, T68, T9, qsort1_out_aa(.(T67, T93), X12)) → qsort1_out_aa(.(T69, .(T67, T68)), T9)
U26_aa(T69, T67, T68, T9, split51_out_aaaa(T68, T69, T93, T94)) → U28_aa(T69, T67, T68, T9, T94, qsort1_in_aa(.(T67, T93), T155))
U28_aa(T69, T67, T68, T9, T94, qsort1_out_aa(.(T67, T93), T155)) → U29_aa(T69, T67, T68, T9, p78_in_aaaaa(T94, X13, T155, T69, T9))
p78_in_aaaaa(T94, X13, T155, T69, T9) → U16_aaaaa(T94, X13, T155, T69, T9, qsort79_in_aa(T94, X13))
U16_aaaaa(T94, X13, T155, T69, T9, qsort79_out_aa(T94, X13)) → p78_out_aaaaa(T94, X13, T155, T69, T9)
p78_in_aaaaa(T94, T158, T155, T69, T9) → U17_aaaaa(T94, T158, T155, T69, T9, qsort79_in_aa(T94, T158))
U17_aaaaa(T94, T158, T155, T69, T9, qsort79_out_aa(T94, T158)) → U18_aaaaa(T94, T158, T155, T69, T9, append23_in_aaaa(T155, T69, T158, T9))
append23_in_aaaa([], T33, T34, .(T33, T34)) → append23_out_aaaa([], T33, T34, .(T33, T34))
append23_in_aaaa(.(T45, T46), T47, T48, .(T45, T50)) → U1_aaaa(T45, T46, T47, T48, T50, append23_in_aaaa(T46, T47, T48, T50))
U1_aaaa(T45, T46, T47, T48, T50, append23_out_aaaa(T46, T47, T48, T50)) → append23_out_aaaa(.(T45, T46), T47, T48, .(T45, T50))
U18_aaaaa(T94, T158, T155, T69, T9, append23_out_aaaa(T155, T69, T158, T9)) → p78_out_aaaaa(T94, T158, T155, T69, T9)
U29_aa(T69, T67, T68, T9, p78_out_aaaaa(T94, X13, T155, T69, T9)) → qsort1_out_aa(.(T69, .(T67, T68)), T9)
U27_ga(T69, T67, T68, T9, qsort1_out_aa(.(T67, T93), X12)) → qsort1_out_ga(.(T69, .(T67, T68)), T9)
U26_ga(T69, T67, T68, T9, split51_out_ggaa(T68, T69, T93, T94)) → U28_ga(T69, T67, T68, T9, T94, qsort1_in_aa(.(T67, T93), T155))
U28_ga(T69, T67, T68, T9, T94, qsort1_out_aa(.(T67, T93), T155)) → U29_ga(T69, T67, T68, T9, p78_in_aaaga(T94, X13, T155, T69, T9))
U29_ga(T69, T67, T68, T9, p78_out_aaaga(T94, X13, T155, T69, T9)) → qsort1_out_ga(.(T69, .(T67, T68)), T9)
qsort1_in_ga(.(T215, .(T213, T214)), T9) → U30_ga(T215, T213, T214, T9, gt67_in_gg(T213, T215))
U30_ga(T215, T213, T214, T9, gt67_out_gg(T213, T215)) → qsort1_out_ga(.(T215, .(T213, T214)), T9)
U30_ga(T215, T213, T214, T9, gt67_out_gg(T213, T215)) → U31_ga(T215, T213, T214, T9, split51_in_ggaa(T214, T215, X323, X324))
U31_ga(T215, T213, T214, T9, split51_out_ggaa(T214, T215, X323, X324)) → qsort1_out_ga(.(T215, .(T213, T214)), T9)
U30_ga(T215, T213, T214, T9, gt67_out_gg(T213, T215)) → U32_ga(T215, T213, T214, T9, split51_in_ggaa(T214, T215, T222, T223))
U32_ga(T215, T213, T214, T9, split51_out_ggaa(T214, T215, T222, T223)) → U33_ga(T215, T213, T214, T9, qsort79_in_aa(T222, X12))
U33_ga(T215, T213, T214, T9, qsort79_out_aa(T222, X12)) → qsort1_out_ga(.(T215, .(T213, T214)), T9)
U32_ga(T215, T213, T214, T9, split51_out_ggaa(T214, T215, T222, T223)) → U34_ga(T215, T213, T214, T9, T223, qsort79_in_aa(T222, T226))
U34_ga(T215, T213, T214, T9, T223, qsort79_out_aa(T222, T226)) → U35_ga(T215, T213, T214, T9, p78_in_aaaga(.(T213, T223), X13, T226, T215, T9))
U35_ga(T215, T213, T214, T9, p78_out_aaaga(.(T213, T223), X13, T226, T215, T9)) → qsort1_out_ga(.(T215, .(T213, T214)), T9)
QSORT1_IN_GA(.(T14, []), T9) → U19_GA(T14, T9, qsort14_in_a(X12))
QSORT1_IN_GA(.(T14, []), T9) → QSORT14_IN_A(X12)
QSORT1_IN_GA(.(T14, []), T9) → U20_GA(T14, T9, qsort14_in_a(T17))
U20_GA(T14, T9, qsort14_out_a(T17)) → U21_GA(T14, T9, qsort14_in_a(X13))
U20_GA(T14, T9, qsort14_out_a(T17)) → QSORT14_IN_A(X13)
U20_GA(T14, T9, qsort14_out_a(T17)) → U22_GA(T14, T9, T17, qsort14_in_a(T20))
U22_GA(T14, T9, T17, qsort14_out_a(T20)) → U23_GA(T14, T9, append23_in_ggga(T17, T14, T20, T9))
U22_GA(T14, T9, T17, qsort14_out_a(T20)) → APPEND23_IN_GGGA(T17, T14, T20, T9)
APPEND23_IN_GGGA(.(T45, T46), T47, T48, .(T45, T50)) → U1_GGGA(T45, T46, T47, T48, T50, append23_in_ggga(T46, T47, T48, T50))
APPEND23_IN_GGGA(.(T45, T46), T47, T48, .(T45, T50)) → APPEND23_IN_GGGA(T46, T47, T48, T50)
QSORT1_IN_GA(.(T69, .(T67, T68)), T9) → U24_GA(T69, T67, T68, T9, le36_in_gg(T67, T69))
QSORT1_IN_GA(.(T69, .(T67, T68)), T9) → LE36_IN_GG(T67, T69)
LE36_IN_GG(s(T82), s(T83)) → U2_GG(T82, T83, le36_in_gg(T82, T83))
LE36_IN_GG(s(T82), s(T83)) → LE36_IN_GG(T82, T83)
U24_GA(T69, T67, T68, T9, le36_out_gg(T67, T69)) → U25_GA(T69, T67, T68, T9, split51_in_ggaa(T68, T69, X93, X94))
U24_GA(T69, T67, T68, T9, le36_out_gg(T67, T69)) → SPLIT51_IN_GGAA(T68, T69, X93, X94)
SPLIT51_IN_GGAA(.(T114, T115), T116, .(T114, X167), X168) → U3_GGAA(T114, T115, T116, X167, X168, le36_in_gg(T114, T116))
SPLIT51_IN_GGAA(.(T114, T115), T116, .(T114, X167), X168) → LE36_IN_GG(T114, T116)
U3_GGAA(T114, T115, T116, X167, X168, le36_out_gg(T114, T116)) → U4_GGAA(T114, T115, T116, X167, X168, split51_in_ggaa(T115, T116, X167, X168))
U3_GGAA(T114, T115, T116, X167, X168, le36_out_gg(T114, T116)) → SPLIT51_IN_GGAA(T115, T116, X167, X168)
SPLIT51_IN_GGAA(.(T129, T130), T131, X199, .(T129, X200)) → U5_GGAA(T129, T130, T131, X199, X200, gt67_in_gg(T129, T131))
SPLIT51_IN_GGAA(.(T129, T130), T131, X199, .(T129, X200)) → GT67_IN_GG(T129, T131)
GT67_IN_GG(s(T144), s(T145)) → U7_GG(T144, T145, gt67_in_gg(T144, T145))
GT67_IN_GG(s(T144), s(T145)) → GT67_IN_GG(T144, T145)
U5_GGAA(T129, T130, T131, X199, X200, gt67_out_gg(T129, T131)) → U6_GGAA(T129, T130, T131, X199, X200, split51_in_ggaa(T130, T131, X199, X200))
U5_GGAA(T129, T130, T131, X199, X200, gt67_out_gg(T129, T131)) → SPLIT51_IN_GGAA(T130, T131, X199, X200)
U24_GA(T69, T67, T68, T9, le36_out_gg(T67, T69)) → U26_GA(T69, T67, T68, T9, split51_in_ggaa(T68, T69, T93, T94))
U26_GA(T69, T67, T68, T9, split51_out_ggaa(T68, T69, T93, T94)) → U27_GA(T69, T67, T68, T9, qsort1_in_aa(.(T67, T93), X12))
U26_GA(T69, T67, T68, T9, split51_out_ggaa(T68, T69, T93, T94)) → QSORT1_IN_AA(.(T67, T93), X12)
QSORT1_IN_AA(.(T14, []), T9) → U19_AA(T14, T9, qsort14_in_a(X12))
QSORT1_IN_AA(.(T14, []), T9) → QSORT14_IN_A(X12)
QSORT1_IN_AA(.(T14, []), T9) → U20_AA(T14, T9, qsort14_in_a(T17))
U20_AA(T14, T9, qsort14_out_a(T17)) → U21_AA(T14, T9, qsort14_in_a(X13))
U20_AA(T14, T9, qsort14_out_a(T17)) → QSORT14_IN_A(X13)
U20_AA(T14, T9, qsort14_out_a(T17)) → U22_AA(T14, T9, T17, qsort14_in_a(T20))
U22_AA(T14, T9, T17, qsort14_out_a(T20)) → U23_AA(T14, T9, append23_in_gaga(T17, T14, T20, T9))
U22_AA(T14, T9, T17, qsort14_out_a(T20)) → APPEND23_IN_GAGA(T17, T14, T20, T9)
APPEND23_IN_GAGA(.(T45, T46), T47, T48, .(T45, T50)) → U1_GAGA(T45, T46, T47, T48, T50, append23_in_gaga(T46, T47, T48, T50))
APPEND23_IN_GAGA(.(T45, T46), T47, T48, .(T45, T50)) → APPEND23_IN_GAGA(T46, T47, T48, T50)
QSORT1_IN_AA(.(T69, .(T67, T68)), T9) → U24_AA(T69, T67, T68, T9, le36_in_aa(T67, T69))
QSORT1_IN_AA(.(T69, .(T67, T68)), T9) → LE36_IN_AA(T67, T69)
LE36_IN_AA(s(T82), s(T83)) → U2_AA(T82, T83, le36_in_aa(T82, T83))
LE36_IN_AA(s(T82), s(T83)) → LE36_IN_AA(T82, T83)
U24_AA(T69, T67, T68, T9, le36_out_aa(T67, T69)) → U25_AA(T69, T67, T68, T9, split51_in_aaaa(T68, T69, X93, X94))
U24_AA(T69, T67, T68, T9, le36_out_aa(T67, T69)) → SPLIT51_IN_AAAA(T68, T69, X93, X94)
SPLIT51_IN_AAAA(.(T114, T115), T116, .(T114, X167), X168) → U3_AAAA(T114, T115, T116, X167, X168, le36_in_aa(T114, T116))
SPLIT51_IN_AAAA(.(T114, T115), T116, .(T114, X167), X168) → LE36_IN_AA(T114, T116)
U3_AAAA(T114, T115, T116, X167, X168, le36_out_aa(T114, T116)) → U4_AAAA(T114, T115, T116, X167, X168, split51_in_aaaa(T115, T116, X167, X168))
U3_AAAA(T114, T115, T116, X167, X168, le36_out_aa(T114, T116)) → SPLIT51_IN_AAAA(T115, T116, X167, X168)
SPLIT51_IN_AAAA(.(T129, T130), T131, X199, .(T129, X200)) → U5_AAAA(T129, T130, T131, X199, X200, gt67_in_aa(T129, T131))
SPLIT51_IN_AAAA(.(T129, T130), T131, X199, .(T129, X200)) → GT67_IN_AA(T129, T131)
GT67_IN_AA(s(T144), s(T145)) → U7_AA(T144, T145, gt67_in_aa(T144, T145))
GT67_IN_AA(s(T144), s(T145)) → GT67_IN_AA(T144, T145)
U5_AAAA(T129, T130, T131, X199, X200, gt67_out_aa(T129, T131)) → U6_AAAA(T129, T130, T131, X199, X200, split51_in_agaa(T130, T131, X199, X200))
U5_AAAA(T129, T130, T131, X199, X200, gt67_out_aa(T129, T131)) → SPLIT51_IN_AGAA(T130, T131, X199, X200)
SPLIT51_IN_AGAA(.(T114, T115), T116, .(T114, X167), X168) → U3_AGAA(T114, T115, T116, X167, X168, le36_in_ag(T114, T116))
SPLIT51_IN_AGAA(.(T114, T115), T116, .(T114, X167), X168) → LE36_IN_AG(T114, T116)
LE36_IN_AG(s(T82), s(T83)) → U2_AG(T82, T83, le36_in_ag(T82, T83))
LE36_IN_AG(s(T82), s(T83)) → LE36_IN_AG(T82, T83)
U3_AGAA(T114, T115, T116, X167, X168, le36_out_ag(T114, T116)) → U4_AGAA(T114, T115, T116, X167, X168, split51_in_agaa(T115, T116, X167, X168))
U3_AGAA(T114, T115, T116, X167, X168, le36_out_ag(T114, T116)) → SPLIT51_IN_AGAA(T115, T116, X167, X168)
SPLIT51_IN_AGAA(.(T129, T130), T131, X199, .(T129, X200)) → U5_AGAA(T129, T130, T131, X199, X200, gt67_in_ag(T129, T131))
SPLIT51_IN_AGAA(.(T129, T130), T131, X199, .(T129, X200)) → GT67_IN_AG(T129, T131)
GT67_IN_AG(s(T144), s(T145)) → U7_AG(T144, T145, gt67_in_ag(T144, T145))
GT67_IN_AG(s(T144), s(T145)) → GT67_IN_AG(T144, T145)
U5_AGAA(T129, T130, T131, X199, X200, gt67_out_ag(T129, T131)) → U6_AGAA(T129, T130, T131, X199, X200, split51_in_agaa(T130, T131, X199, X200))
U5_AGAA(T129, T130, T131, X199, X200, gt67_out_ag(T129, T131)) → SPLIT51_IN_AGAA(T130, T131, X199, X200)
U24_AA(T69, T67, T68, T9, le36_out_aa(T67, T69)) → U26_AA(T69, T67, T68, T9, split51_in_aaaa(T68, T69, T93, T94))
U26_AA(T69, T67, T68, T9, split51_out_aaaa(T68, T69, T93, T94)) → U27_AA(T69, T67, T68, T9, qsort1_in_aa(.(T67, T93), X12))
U26_AA(T69, T67, T68, T9, split51_out_aaaa(T68, T69, T93, T94)) → QSORT1_IN_AA(.(T67, T93), X12)
QSORT1_IN_AA(.(T215, .(T213, T214)), T9) → U30_AA(T215, T213, T214, T9, gt67_in_aa(T213, T215))
QSORT1_IN_AA(.(T215, .(T213, T214)), T9) → GT67_IN_AA(T213, T215)
U30_AA(T215, T213, T214, T9, gt67_out_aa(T213, T215)) → U31_AA(T215, T213, T214, T9, split51_in_agaa(T214, T215, X323, X324))
U30_AA(T215, T213, T214, T9, gt67_out_aa(T213, T215)) → SPLIT51_IN_AGAA(T214, T215, X323, X324)
U30_AA(T215, T213, T214, T9, gt67_out_aa(T213, T215)) → U32_AA(T215, T213, T214, T9, split51_in_agaa(T214, T215, T222, T223))
U32_AA(T215, T213, T214, T9, split51_out_agaa(T214, T215, T222, T223)) → U33_AA(T215, T213, T214, T9, qsort79_in_aa(T222, X12))
U32_AA(T215, T213, T214, T9, split51_out_agaa(T214, T215, T222, T223)) → QSORT79_IN_AA(T222, X12)
QSORT79_IN_AA(.(T163, T164), X265) → U8_AA(T163, T164, X265, split51_in_aaaa(T164, T163, X261, X262))
QSORT79_IN_AA(.(T163, T164), X265) → SPLIT51_IN_AAAA(T164, T163, X261, X262)
QSORT79_IN_AA(.(T163, T164), X265) → U9_AA(T163, T164, X265, split51_in_aaaa(T164, T163, T167, T168))
U9_AA(T163, T164, X265, split51_out_aaaa(T164, T163, T167, T168)) → U10_AA(T163, T164, X265, qsort79_in_aa(T167, X263))
U9_AA(T163, T164, X265, split51_out_aaaa(T164, T163, T167, T168)) → QSORT79_IN_AA(T167, X263)
U9_AA(T163, T164, X265, split51_out_aaaa(T164, T163, T167, T168)) → U11_AA(T163, T164, X265, T168, qsort79_in_aa(T167, T171))
U11_AA(T163, T164, X265, T168, qsort79_out_aa(T167, T171)) → U12_AA(T163, T164, X265, qsort79_in_aa(T168, X264))
U11_AA(T163, T164, X265, T168, qsort79_out_aa(T167, T171)) → QSORT79_IN_AA(T168, X264)
U11_AA(T163, T164, X265, T168, qsort79_out_aa(T167, T171)) → U13_AA(T163, T164, X265, T171, qsort79_in_aa(T168, T172))
U13_AA(T163, T164, X265, T171, qsort79_out_aa(T168, T172)) → U14_AA(T163, T164, X265, append94_in_aaaa(T171, T163, T172, X265))
U13_AA(T163, T164, X265, T171, qsort79_out_aa(T168, T172)) → APPEND94_IN_AAAA(T171, T163, T172, X265)
APPEND94_IN_AAAA(.(T195, T196), T197, T198, .(T195, X295)) → U15_AAAA(T195, T196, T197, T198, X295, append94_in_aaaa(T196, T197, T198, X295))
APPEND94_IN_AAAA(.(T195, T196), T197, T198, .(T195, X295)) → APPEND94_IN_AAAA(T196, T197, T198, X295)
U32_AA(T215, T213, T214, T9, split51_out_agaa(T214, T215, T222, T223)) → U34_AA(T215, T213, T214, T9, T223, qsort79_in_aa(T222, T226))
U34_AA(T215, T213, T214, T9, T223, qsort79_out_aa(T222, T226)) → U35_AA(T215, T213, T214, T9, p78_in_aaaga(.(T213, T223), X13, T226, T215, T9))
U34_AA(T215, T213, T214, T9, T223, qsort79_out_aa(T222, T226)) → P78_IN_AAAGA(.(T213, T223), X13, T226, T215, T9)
P78_IN_AAAGA(T94, X13, T155, T69, T9) → U16_AAAGA(T94, X13, T155, T69, T9, qsort79_in_aa(T94, X13))
P78_IN_AAAGA(T94, X13, T155, T69, T9) → QSORT79_IN_AA(T94, X13)
P78_IN_AAAGA(T94, T158, T155, T69, T9) → U17_AAAGA(T94, T158, T155, T69, T9, qsort79_in_aa(T94, T158))
U17_AAAGA(T94, T158, T155, T69, T9, qsort79_out_aa(T94, T158)) → U18_AAAGA(T94, T158, T155, T69, T9, append23_in_agaa(T155, T69, T158, T9))
U17_AAAGA(T94, T158, T155, T69, T9, qsort79_out_aa(T94, T158)) → APPEND23_IN_AGAA(T155, T69, T158, T9)
APPEND23_IN_AGAA(.(T45, T46), T47, T48, .(T45, T50)) → U1_AGAA(T45, T46, T47, T48, T50, append23_in_agaa(T46, T47, T48, T50))
APPEND23_IN_AGAA(.(T45, T46), T47, T48, .(T45, T50)) → APPEND23_IN_AGAA(T46, T47, T48, T50)
U26_AA(T69, T67, T68, T9, split51_out_aaaa(T68, T69, T93, T94)) → U28_AA(T69, T67, T68, T9, T94, qsort1_in_aa(.(T67, T93), T155))
U28_AA(T69, T67, T68, T9, T94, qsort1_out_aa(.(T67, T93), T155)) → U29_AA(T69, T67, T68, T9, p78_in_aaaaa(T94, X13, T155, T69, T9))
U28_AA(T69, T67, T68, T9, T94, qsort1_out_aa(.(T67, T93), T155)) → P78_IN_AAAAA(T94, X13, T155, T69, T9)
P78_IN_AAAAA(T94, X13, T155, T69, T9) → U16_AAAAA(T94, X13, T155, T69, T9, qsort79_in_aa(T94, X13))
P78_IN_AAAAA(T94, X13, T155, T69, T9) → QSORT79_IN_AA(T94, X13)
P78_IN_AAAAA(T94, T158, T155, T69, T9) → U17_AAAAA(T94, T158, T155, T69, T9, qsort79_in_aa(T94, T158))
U17_AAAAA(T94, T158, T155, T69, T9, qsort79_out_aa(T94, T158)) → U18_AAAAA(T94, T158, T155, T69, T9, append23_in_aaaa(T155, T69, T158, T9))
U17_AAAAA(T94, T158, T155, T69, T9, qsort79_out_aa(T94, T158)) → APPEND23_IN_AAAA(T155, T69, T158, T9)
APPEND23_IN_AAAA(.(T45, T46), T47, T48, .(T45, T50)) → U1_AAAA(T45, T46, T47, T48, T50, append23_in_aaaa(T46, T47, T48, T50))
APPEND23_IN_AAAA(.(T45, T46), T47, T48, .(T45, T50)) → APPEND23_IN_AAAA(T46, T47, T48, T50)
U26_GA(T69, T67, T68, T9, split51_out_ggaa(T68, T69, T93, T94)) → U28_GA(T69, T67, T68, T9, T94, qsort1_in_aa(.(T67, T93), T155))
U28_GA(T69, T67, T68, T9, T94, qsort1_out_aa(.(T67, T93), T155)) → U29_GA(T69, T67, T68, T9, p78_in_aaaga(T94, X13, T155, T69, T9))
U28_GA(T69, T67, T68, T9, T94, qsort1_out_aa(.(T67, T93), T155)) → P78_IN_AAAGA(T94, X13, T155, T69, T9)
QSORT1_IN_GA(.(T215, .(T213, T214)), T9) → U30_GA(T215, T213, T214, T9, gt67_in_gg(T213, T215))
QSORT1_IN_GA(.(T215, .(T213, T214)), T9) → GT67_IN_GG(T213, T215)
U30_GA(T215, T213, T214, T9, gt67_out_gg(T213, T215)) → U31_GA(T215, T213, T214, T9, split51_in_ggaa(T214, T215, X323, X324))
U30_GA(T215, T213, T214, T9, gt67_out_gg(T213, T215)) → SPLIT51_IN_GGAA(T214, T215, X323, X324)
U30_GA(T215, T213, T214, T9, gt67_out_gg(T213, T215)) → U32_GA(T215, T213, T214, T9, split51_in_ggaa(T214, T215, T222, T223))
U32_GA(T215, T213, T214, T9, split51_out_ggaa(T214, T215, T222, T223)) → U33_GA(T215, T213, T214, T9, qsort79_in_aa(T222, X12))
U32_GA(T215, T213, T214, T9, split51_out_ggaa(T214, T215, T222, T223)) → QSORT79_IN_AA(T222, X12)
U32_GA(T215, T213, T214, T9, split51_out_ggaa(T214, T215, T222, T223)) → U34_GA(T215, T213, T214, T9, T223, qsort79_in_aa(T222, T226))
U34_GA(T215, T213, T214, T9, T223, qsort79_out_aa(T222, T226)) → U35_GA(T215, T213, T214, T9, p78_in_aaaga(.(T213, T223), X13, T226, T215, T9))
U34_GA(T215, T213, T214, T9, T223, qsort79_out_aa(T222, T226)) → P78_IN_AAAGA(.(T213, T223), X13, T226, T215, T9)
qsort1_in_ga([], []) → qsort1_out_ga([], [])
qsort1_in_ga(.(T14, []), T9) → U19_ga(T14, T9, qsort14_in_a(X12))
qsort14_in_a([]) → qsort14_out_a([])
U19_ga(T14, T9, qsort14_out_a(X12)) → qsort1_out_ga(.(T14, []), T9)
qsort1_in_ga(.(T14, []), T9) → U20_ga(T14, T9, qsort14_in_a(T17))
U20_ga(T14, T9, qsort14_out_a(T17)) → U21_ga(T14, T9, qsort14_in_a(X13))
U21_ga(T14, T9, qsort14_out_a(X13)) → qsort1_out_ga(.(T14, []), T9)
U20_ga(T14, T9, qsort14_out_a(T17)) → U22_ga(T14, T9, T17, qsort14_in_a(T20))
U22_ga(T14, T9, T17, qsort14_out_a(T20)) → U23_ga(T14, T9, append23_in_ggga(T17, T14, T20, T9))
append23_in_ggga([], T33, T34, .(T33, T34)) → append23_out_ggga([], T33, T34, .(T33, T34))
append23_in_ggga(.(T45, T46), T47, T48, .(T45, T50)) → U1_ggga(T45, T46, T47, T48, T50, append23_in_ggga(T46, T47, T48, T50))
U1_ggga(T45, T46, T47, T48, T50, append23_out_ggga(T46, T47, T48, T50)) → append23_out_ggga(.(T45, T46), T47, T48, .(T45, T50))
U23_ga(T14, T9, append23_out_ggga(T17, T14, T20, T9)) → qsort1_out_ga(.(T14, []), T9)
qsort1_in_ga(.(T69, .(T67, T68)), T9) → U24_ga(T69, T67, T68, T9, le36_in_gg(T67, T69))
le36_in_gg(s(T82), s(T83)) → U2_gg(T82, T83, le36_in_gg(T82, T83))
le36_in_gg(0, s(T90)) → le36_out_gg(0, s(T90))
le36_in_gg(0, 0) → le36_out_gg(0, 0)
U2_gg(T82, T83, le36_out_gg(T82, T83)) → le36_out_gg(s(T82), s(T83))
U24_ga(T69, T67, T68, T9, le36_out_gg(T67, T69)) → qsort1_out_ga(.(T69, .(T67, T68)), T9)
U24_ga(T69, T67, T68, T9, le36_out_gg(T67, T69)) → U25_ga(T69, T67, T68, T9, split51_in_ggaa(T68, T69, X93, X94))
split51_in_ggaa([], T101, [], []) → split51_out_ggaa([], T101, [], [])
split51_in_ggaa(.(T114, T115), T116, .(T114, X167), X168) → U3_ggaa(T114, T115, T116, X167, X168, le36_in_gg(T114, T116))
U3_ggaa(T114, T115, T116, X167, X168, le36_out_gg(T114, T116)) → split51_out_ggaa(.(T114, T115), T116, .(T114, X167), X168)
U3_ggaa(T114, T115, T116, X167, X168, le36_out_gg(T114, T116)) → U4_ggaa(T114, T115, T116, X167, X168, split51_in_ggaa(T115, T116, X167, X168))
split51_in_ggaa(.(T129, T130), T131, X199, .(T129, X200)) → U5_ggaa(T129, T130, T131, X199, X200, gt67_in_gg(T129, T131))
gt67_in_gg(s(T144), s(T145)) → U7_gg(T144, T145, gt67_in_gg(T144, T145))
gt67_in_gg(s(T150), 0) → gt67_out_gg(s(T150), 0)
U7_gg(T144, T145, gt67_out_gg(T144, T145)) → gt67_out_gg(s(T144), s(T145))
U5_ggaa(T129, T130, T131, X199, X200, gt67_out_gg(T129, T131)) → split51_out_ggaa(.(T129, T130), T131, X199, .(T129, X200))
U5_ggaa(T129, T130, T131, X199, X200, gt67_out_gg(T129, T131)) → U6_ggaa(T129, T130, T131, X199, X200, split51_in_ggaa(T130, T131, X199, X200))
U6_ggaa(T129, T130, T131, X199, X200, split51_out_ggaa(T130, T131, X199, X200)) → split51_out_ggaa(.(T129, T130), T131, X199, .(T129, X200))
U4_ggaa(T114, T115, T116, X167, X168, split51_out_ggaa(T115, T116, X167, X168)) → split51_out_ggaa(.(T114, T115), T116, .(T114, X167), X168)
U25_ga(T69, T67, T68, T9, split51_out_ggaa(T68, T69, X93, X94)) → qsort1_out_ga(.(T69, .(T67, T68)), T9)
U24_ga(T69, T67, T68, T9, le36_out_gg(T67, T69)) → U26_ga(T69, T67, T68, T9, split51_in_ggaa(T68, T69, T93, T94))
U26_ga(T69, T67, T68, T9, split51_out_ggaa(T68, T69, T93, T94)) → U27_ga(T69, T67, T68, T9, qsort1_in_aa(.(T67, T93), X12))
qsort1_in_aa([], []) → qsort1_out_aa([], [])
qsort1_in_aa(.(T14, []), T9) → U19_aa(T14, T9, qsort14_in_a(X12))
U19_aa(T14, T9, qsort14_out_a(X12)) → qsort1_out_aa(.(T14, []), T9)
qsort1_in_aa(.(T14, []), T9) → U20_aa(T14, T9, qsort14_in_a(T17))
U20_aa(T14, T9, qsort14_out_a(T17)) → U21_aa(T14, T9, qsort14_in_a(X13))
U21_aa(T14, T9, qsort14_out_a(X13)) → qsort1_out_aa(.(T14, []), T9)
U20_aa(T14, T9, qsort14_out_a(T17)) → U22_aa(T14, T9, T17, qsort14_in_a(T20))
U22_aa(T14, T9, T17, qsort14_out_a(T20)) → U23_aa(T14, T9, append23_in_gaga(T17, T14, T20, T9))
append23_in_gaga([], T33, T34, .(T33, T34)) → append23_out_gaga([], T33, T34, .(T33, T34))
append23_in_gaga(.(T45, T46), T47, T48, .(T45, T50)) → U1_gaga(T45, T46, T47, T48, T50, append23_in_gaga(T46, T47, T48, T50))
U1_gaga(T45, T46, T47, T48, T50, append23_out_gaga(T46, T47, T48, T50)) → append23_out_gaga(.(T45, T46), T47, T48, .(T45, T50))
U23_aa(T14, T9, append23_out_gaga(T17, T14, T20, T9)) → qsort1_out_aa(.(T14, []), T9)
qsort1_in_aa(.(T69, .(T67, T68)), T9) → U24_aa(T69, T67, T68, T9, le36_in_aa(T67, T69))
le36_in_aa(s(T82), s(T83)) → U2_aa(T82, T83, le36_in_aa(T82, T83))
le36_in_aa(0, s(T90)) → le36_out_aa(0, s(T90))
le36_in_aa(0, 0) → le36_out_aa(0, 0)
U2_aa(T82, T83, le36_out_aa(T82, T83)) → le36_out_aa(s(T82), s(T83))
U24_aa(T69, T67, T68, T9, le36_out_aa(T67, T69)) → qsort1_out_aa(.(T69, .(T67, T68)), T9)
U24_aa(T69, T67, T68, T9, le36_out_aa(T67, T69)) → U25_aa(T69, T67, T68, T9, split51_in_aaaa(T68, T69, X93, X94))
split51_in_aaaa([], T101, [], []) → split51_out_aaaa([], T101, [], [])
split51_in_aaaa(.(T114, T115), T116, .(T114, X167), X168) → U3_aaaa(T114, T115, T116, X167, X168, le36_in_aa(T114, T116))
U3_aaaa(T114, T115, T116, X167, X168, le36_out_aa(T114, T116)) → split51_out_aaaa(.(T114, T115), T116, .(T114, X167), X168)
U3_aaaa(T114, T115, T116, X167, X168, le36_out_aa(T114, T116)) → U4_aaaa(T114, T115, T116, X167, X168, split51_in_aaaa(T115, T116, X167, X168))
split51_in_aaaa(.(T129, T130), T131, X199, .(T129, X200)) → U5_aaaa(T129, T130, T131, X199, X200, gt67_in_aa(T129, T131))
gt67_in_aa(s(T144), s(T145)) → U7_aa(T144, T145, gt67_in_aa(T144, T145))
gt67_in_aa(s(T150), 0) → gt67_out_aa(s(T150), 0)
U7_aa(T144, T145, gt67_out_aa(T144, T145)) → gt67_out_aa(s(T144), s(T145))
U5_aaaa(T129, T130, T131, X199, X200, gt67_out_aa(T129, T131)) → split51_out_aaaa(.(T129, T130), T131, X199, .(T129, X200))
U5_aaaa(T129, T130, T131, X199, X200, gt67_out_aa(T129, T131)) → U6_aaaa(T129, T130, T131, X199, X200, split51_in_agaa(T130, T131, X199, X200))
split51_in_agaa([], T101, [], []) → split51_out_agaa([], T101, [], [])
split51_in_agaa(.(T114, T115), T116, .(T114, X167), X168) → U3_agaa(T114, T115, T116, X167, X168, le36_in_ag(T114, T116))
le36_in_ag(s(T82), s(T83)) → U2_ag(T82, T83, le36_in_ag(T82, T83))
le36_in_ag(0, s(T90)) → le36_out_ag(0, s(T90))
le36_in_ag(0, 0) → le36_out_ag(0, 0)
U2_ag(T82, T83, le36_out_ag(T82, T83)) → le36_out_ag(s(T82), s(T83))
U3_agaa(T114, T115, T116, X167, X168, le36_out_ag(T114, T116)) → split51_out_agaa(.(T114, T115), T116, .(T114, X167), X168)
U3_agaa(T114, T115, T116, X167, X168, le36_out_ag(T114, T116)) → U4_agaa(T114, T115, T116, X167, X168, split51_in_agaa(T115, T116, X167, X168))
split51_in_agaa(.(T129, T130), T131, X199, .(T129, X200)) → U5_agaa(T129, T130, T131, X199, X200, gt67_in_ag(T129, T131))
gt67_in_ag(s(T144), s(T145)) → U7_ag(T144, T145, gt67_in_ag(T144, T145))
gt67_in_ag(s(T150), 0) → gt67_out_ag(s(T150), 0)
U7_ag(T144, T145, gt67_out_ag(T144, T145)) → gt67_out_ag(s(T144), s(T145))
U5_agaa(T129, T130, T131, X199, X200, gt67_out_ag(T129, T131)) → split51_out_agaa(.(T129, T130), T131, X199, .(T129, X200))
U5_agaa(T129, T130, T131, X199, X200, gt67_out_ag(T129, T131)) → U6_agaa(T129, T130, T131, X199, X200, split51_in_agaa(T130, T131, X199, X200))
U6_agaa(T129, T130, T131, X199, X200, split51_out_agaa(T130, T131, X199, X200)) → split51_out_agaa(.(T129, T130), T131, X199, .(T129, X200))
U4_agaa(T114, T115, T116, X167, X168, split51_out_agaa(T115, T116, X167, X168)) → split51_out_agaa(.(T114, T115), T116, .(T114, X167), X168)
U6_aaaa(T129, T130, T131, X199, X200, split51_out_agaa(T130, T131, X199, X200)) → split51_out_aaaa(.(T129, T130), T131, X199, .(T129, X200))
U4_aaaa(T114, T115, T116, X167, X168, split51_out_aaaa(T115, T116, X167, X168)) → split51_out_aaaa(.(T114, T115), T116, .(T114, X167), X168)
U25_aa(T69, T67, T68, T9, split51_out_aaaa(T68, T69, X93, X94)) → qsort1_out_aa(.(T69, .(T67, T68)), T9)
U24_aa(T69, T67, T68, T9, le36_out_aa(T67, T69)) → U26_aa(T69, T67, T68, T9, split51_in_aaaa(T68, T69, T93, T94))
U26_aa(T69, T67, T68, T9, split51_out_aaaa(T68, T69, T93, T94)) → U27_aa(T69, T67, T68, T9, qsort1_in_aa(.(T67, T93), X12))
qsort1_in_aa(.(T215, .(T213, T214)), T9) → U30_aa(T215, T213, T214, T9, gt67_in_aa(T213, T215))
U30_aa(T215, T213, T214, T9, gt67_out_aa(T213, T215)) → qsort1_out_aa(.(T215, .(T213, T214)), T9)
U30_aa(T215, T213, T214, T9, gt67_out_aa(T213, T215)) → U31_aa(T215, T213, T214, T9, split51_in_agaa(T214, T215, X323, X324))
U31_aa(T215, T213, T214, T9, split51_out_agaa(T214, T215, X323, X324)) → qsort1_out_aa(.(T215, .(T213, T214)), T9)
U30_aa(T215, T213, T214, T9, gt67_out_aa(T213, T215)) → U32_aa(T215, T213, T214, T9, split51_in_agaa(T214, T215, T222, T223))
U32_aa(T215, T213, T214, T9, split51_out_agaa(T214, T215, T222, T223)) → U33_aa(T215, T213, T214, T9, qsort79_in_aa(T222, X12))
qsort79_in_aa([], []) → qsort79_out_aa([], [])
qsort79_in_aa(.(T163, T164), X265) → U8_aa(T163, T164, X265, split51_in_aaaa(T164, T163, X261, X262))
U8_aa(T163, T164, X265, split51_out_aaaa(T164, T163, X261, X262)) → qsort79_out_aa(.(T163, T164), X265)
qsort79_in_aa(.(T163, T164), X265) → U9_aa(T163, T164, X265, split51_in_aaaa(T164, T163, T167, T168))
U9_aa(T163, T164, X265, split51_out_aaaa(T164, T163, T167, T168)) → U10_aa(T163, T164, X265, qsort79_in_aa(T167, X263))
U10_aa(T163, T164, X265, qsort79_out_aa(T167, X263)) → qsort79_out_aa(.(T163, T164), X265)
U9_aa(T163, T164, X265, split51_out_aaaa(T164, T163, T167, T168)) → U11_aa(T163, T164, X265, T168, qsort79_in_aa(T167, T171))
U11_aa(T163, T164, X265, T168, qsort79_out_aa(T167, T171)) → U12_aa(T163, T164, X265, qsort79_in_aa(T168, X264))
U12_aa(T163, T164, X265, qsort79_out_aa(T168, X264)) → qsort79_out_aa(.(T163, T164), X265)
U11_aa(T163, T164, X265, T168, qsort79_out_aa(T167, T171)) → U13_aa(T163, T164, X265, T171, qsort79_in_aa(T168, T172))
U13_aa(T163, T164, X265, T171, qsort79_out_aa(T168, T172)) → U14_aa(T163, T164, X265, append94_in_aaaa(T171, T163, T172, X265))
append94_in_aaaa([], T185, T186, .(T185, T186)) → append94_out_aaaa([], T185, T186, .(T185, T186))
append94_in_aaaa(.(T195, T196), T197, T198, .(T195, X295)) → U15_aaaa(T195, T196, T197, T198, X295, append94_in_aaaa(T196, T197, T198, X295))
U15_aaaa(T195, T196, T197, T198, X295, append94_out_aaaa(T196, T197, T198, X295)) → append94_out_aaaa(.(T195, T196), T197, T198, .(T195, X295))
U14_aa(T163, T164, X265, append94_out_aaaa(T171, T163, T172, X265)) → qsort79_out_aa(.(T163, T164), X265)
U33_aa(T215, T213, T214, T9, qsort79_out_aa(T222, X12)) → qsort1_out_aa(.(T215, .(T213, T214)), T9)
U32_aa(T215, T213, T214, T9, split51_out_agaa(T214, T215, T222, T223)) → U34_aa(T215, T213, T214, T9, T223, qsort79_in_aa(T222, T226))
U34_aa(T215, T213, T214, T9, T223, qsort79_out_aa(T222, T226)) → U35_aa(T215, T213, T214, T9, p78_in_aaaga(.(T213, T223), X13, T226, T215, T9))
p78_in_aaaga(T94, X13, T155, T69, T9) → U16_aaaga(T94, X13, T155, T69, T9, qsort79_in_aa(T94, X13))
U16_aaaga(T94, X13, T155, T69, T9, qsort79_out_aa(T94, X13)) → p78_out_aaaga(T94, X13, T155, T69, T9)
p78_in_aaaga(T94, T158, T155, T69, T9) → U17_aaaga(T94, T158, T155, T69, T9, qsort79_in_aa(T94, T158))
U17_aaaga(T94, T158, T155, T69, T9, qsort79_out_aa(T94, T158)) → U18_aaaga(T94, T158, T155, T69, T9, append23_in_agaa(T155, T69, T158, T9))
append23_in_agaa([], T33, T34, .(T33, T34)) → append23_out_agaa([], T33, T34, .(T33, T34))
append23_in_agaa(.(T45, T46), T47, T48, .(T45, T50)) → U1_agaa(T45, T46, T47, T48, T50, append23_in_agaa(T46, T47, T48, T50))
U1_agaa(T45, T46, T47, T48, T50, append23_out_agaa(T46, T47, T48, T50)) → append23_out_agaa(.(T45, T46), T47, T48, .(T45, T50))
U18_aaaga(T94, T158, T155, T69, T9, append23_out_agaa(T155, T69, T158, T9)) → p78_out_aaaga(T94, T158, T155, T69, T9)
U35_aa(T215, T213, T214, T9, p78_out_aaaga(.(T213, T223), X13, T226, T215, T9)) → qsort1_out_aa(.(T215, .(T213, T214)), T9)
U27_aa(T69, T67, T68, T9, qsort1_out_aa(.(T67, T93), X12)) → qsort1_out_aa(.(T69, .(T67, T68)), T9)
U26_aa(T69, T67, T68, T9, split51_out_aaaa(T68, T69, T93, T94)) → U28_aa(T69, T67, T68, T9, T94, qsort1_in_aa(.(T67, T93), T155))
U28_aa(T69, T67, T68, T9, T94, qsort1_out_aa(.(T67, T93), T155)) → U29_aa(T69, T67, T68, T9, p78_in_aaaaa(T94, X13, T155, T69, T9))
p78_in_aaaaa(T94, X13, T155, T69, T9) → U16_aaaaa(T94, X13, T155, T69, T9, qsort79_in_aa(T94, X13))
U16_aaaaa(T94, X13, T155, T69, T9, qsort79_out_aa(T94, X13)) → p78_out_aaaaa(T94, X13, T155, T69, T9)
p78_in_aaaaa(T94, T158, T155, T69, T9) → U17_aaaaa(T94, T158, T155, T69, T9, qsort79_in_aa(T94, T158))
U17_aaaaa(T94, T158, T155, T69, T9, qsort79_out_aa(T94, T158)) → U18_aaaaa(T94, T158, T155, T69, T9, append23_in_aaaa(T155, T69, T158, T9))
append23_in_aaaa([], T33, T34, .(T33, T34)) → append23_out_aaaa([], T33, T34, .(T33, T34))
append23_in_aaaa(.(T45, T46), T47, T48, .(T45, T50)) → U1_aaaa(T45, T46, T47, T48, T50, append23_in_aaaa(T46, T47, T48, T50))
U1_aaaa(T45, T46, T47, T48, T50, append23_out_aaaa(T46, T47, T48, T50)) → append23_out_aaaa(.(T45, T46), T47, T48, .(T45, T50))
U18_aaaaa(T94, T158, T155, T69, T9, append23_out_aaaa(T155, T69, T158, T9)) → p78_out_aaaaa(T94, T158, T155, T69, T9)
U29_aa(T69, T67, T68, T9, p78_out_aaaaa(T94, X13, T155, T69, T9)) → qsort1_out_aa(.(T69, .(T67, T68)), T9)
U27_ga(T69, T67, T68, T9, qsort1_out_aa(.(T67, T93), X12)) → qsort1_out_ga(.(T69, .(T67, T68)), T9)
U26_ga(T69, T67, T68, T9, split51_out_ggaa(T68, T69, T93, T94)) → U28_ga(T69, T67, T68, T9, T94, qsort1_in_aa(.(T67, T93), T155))
U28_ga(T69, T67, T68, T9, T94, qsort1_out_aa(.(T67, T93), T155)) → U29_ga(T69, T67, T68, T9, p78_in_aaaga(T94, X13, T155, T69, T9))
U29_ga(T69, T67, T68, T9, p78_out_aaaga(T94, X13, T155, T69, T9)) → qsort1_out_ga(.(T69, .(T67, T68)), T9)
qsort1_in_ga(.(T215, .(T213, T214)), T9) → U30_ga(T215, T213, T214, T9, gt67_in_gg(T213, T215))
U30_ga(T215, T213, T214, T9, gt67_out_gg(T213, T215)) → qsort1_out_ga(.(T215, .(T213, T214)), T9)
U30_ga(T215, T213, T214, T9, gt67_out_gg(T213, T215)) → U31_ga(T215, T213, T214, T9, split51_in_ggaa(T214, T215, X323, X324))
U31_ga(T215, T213, T214, T9, split51_out_ggaa(T214, T215, X323, X324)) → qsort1_out_ga(.(T215, .(T213, T214)), T9)
U30_ga(T215, T213, T214, T9, gt67_out_gg(T213, T215)) → U32_ga(T215, T213, T214, T9, split51_in_ggaa(T214, T215, T222, T223))
U32_ga(T215, T213, T214, T9, split51_out_ggaa(T214, T215, T222, T223)) → U33_ga(T215, T213, T214, T9, qsort79_in_aa(T222, X12))
U33_ga(T215, T213, T214, T9, qsort79_out_aa(T222, X12)) → qsort1_out_ga(.(T215, .(T213, T214)), T9)
U32_ga(T215, T213, T214, T9, split51_out_ggaa(T214, T215, T222, T223)) → U34_ga(T215, T213, T214, T9, T223, qsort79_in_aa(T222, T226))
U34_ga(T215, T213, T214, T9, T223, qsort79_out_aa(T222, T226)) → U35_ga(T215, T213, T214, T9, p78_in_aaaga(.(T213, T223), X13, T226, T215, T9))
U35_ga(T215, T213, T214, T9, p78_out_aaaga(.(T213, T223), X13, T226, T215, T9)) → qsort1_out_ga(.(T215, .(T213, T214)), T9)
APPEND23_IN_AAAA(.(T45, T46), T47, T48, .(T45, T50)) → APPEND23_IN_AAAA(T46, T47, T48, T50)
qsort1_in_ga([], []) → qsort1_out_ga([], [])
qsort1_in_ga(.(T14, []), T9) → U19_ga(T14, T9, qsort14_in_a(X12))
qsort14_in_a([]) → qsort14_out_a([])
U19_ga(T14, T9, qsort14_out_a(X12)) → qsort1_out_ga(.(T14, []), T9)
qsort1_in_ga(.(T14, []), T9) → U20_ga(T14, T9, qsort14_in_a(T17))
U20_ga(T14, T9, qsort14_out_a(T17)) → U21_ga(T14, T9, qsort14_in_a(X13))
U21_ga(T14, T9, qsort14_out_a(X13)) → qsort1_out_ga(.(T14, []), T9)
U20_ga(T14, T9, qsort14_out_a(T17)) → U22_ga(T14, T9, T17, qsort14_in_a(T20))
U22_ga(T14, T9, T17, qsort14_out_a(T20)) → U23_ga(T14, T9, append23_in_ggga(T17, T14, T20, T9))
append23_in_ggga([], T33, T34, .(T33, T34)) → append23_out_ggga([], T33, T34, .(T33, T34))
append23_in_ggga(.(T45, T46), T47, T48, .(T45, T50)) → U1_ggga(T45, T46, T47, T48, T50, append23_in_ggga(T46, T47, T48, T50))
U1_ggga(T45, T46, T47, T48, T50, append23_out_ggga(T46, T47, T48, T50)) → append23_out_ggga(.(T45, T46), T47, T48, .(T45, T50))
U23_ga(T14, T9, append23_out_ggga(T17, T14, T20, T9)) → qsort1_out_ga(.(T14, []), T9)
qsort1_in_ga(.(T69, .(T67, T68)), T9) → U24_ga(T69, T67, T68, T9, le36_in_gg(T67, T69))
le36_in_gg(s(T82), s(T83)) → U2_gg(T82, T83, le36_in_gg(T82, T83))
le36_in_gg(0, s(T90)) → le36_out_gg(0, s(T90))
le36_in_gg(0, 0) → le36_out_gg(0, 0)
U2_gg(T82, T83, le36_out_gg(T82, T83)) → le36_out_gg(s(T82), s(T83))
U24_ga(T69, T67, T68, T9, le36_out_gg(T67, T69)) → qsort1_out_ga(.(T69, .(T67, T68)), T9)
U24_ga(T69, T67, T68, T9, le36_out_gg(T67, T69)) → U25_ga(T69, T67, T68, T9, split51_in_ggaa(T68, T69, X93, X94))
split51_in_ggaa([], T101, [], []) → split51_out_ggaa([], T101, [], [])
split51_in_ggaa(.(T114, T115), T116, .(T114, X167), X168) → U3_ggaa(T114, T115, T116, X167, X168, le36_in_gg(T114, T116))
U3_ggaa(T114, T115, T116, X167, X168, le36_out_gg(T114, T116)) → split51_out_ggaa(.(T114, T115), T116, .(T114, X167), X168)
U3_ggaa(T114, T115, T116, X167, X168, le36_out_gg(T114, T116)) → U4_ggaa(T114, T115, T116, X167, X168, split51_in_ggaa(T115, T116, X167, X168))
split51_in_ggaa(.(T129, T130), T131, X199, .(T129, X200)) → U5_ggaa(T129, T130, T131, X199, X200, gt67_in_gg(T129, T131))
gt67_in_gg(s(T144), s(T145)) → U7_gg(T144, T145, gt67_in_gg(T144, T145))
gt67_in_gg(s(T150), 0) → gt67_out_gg(s(T150), 0)
U7_gg(T144, T145, gt67_out_gg(T144, T145)) → gt67_out_gg(s(T144), s(T145))
U5_ggaa(T129, T130, T131, X199, X200, gt67_out_gg(T129, T131)) → split51_out_ggaa(.(T129, T130), T131, X199, .(T129, X200))
U5_ggaa(T129, T130, T131, X199, X200, gt67_out_gg(T129, T131)) → U6_ggaa(T129, T130, T131, X199, X200, split51_in_ggaa(T130, T131, X199, X200))
U6_ggaa(T129, T130, T131, X199, X200, split51_out_ggaa(T130, T131, X199, X200)) → split51_out_ggaa(.(T129, T130), T131, X199, .(T129, X200))
U4_ggaa(T114, T115, T116, X167, X168, split51_out_ggaa(T115, T116, X167, X168)) → split51_out_ggaa(.(T114, T115), T116, .(T114, X167), X168)
U25_ga(T69, T67, T68, T9, split51_out_ggaa(T68, T69, X93, X94)) → qsort1_out_ga(.(T69, .(T67, T68)), T9)
U24_ga(T69, T67, T68, T9, le36_out_gg(T67, T69)) → U26_ga(T69, T67, T68, T9, split51_in_ggaa(T68, T69, T93, T94))
U26_ga(T69, T67, T68, T9, split51_out_ggaa(T68, T69, T93, T94)) → U27_ga(T69, T67, T68, T9, qsort1_in_aa(.(T67, T93), X12))
qsort1_in_aa([], []) → qsort1_out_aa([], [])
qsort1_in_aa(.(T14, []), T9) → U19_aa(T14, T9, qsort14_in_a(X12))
U19_aa(T14, T9, qsort14_out_a(X12)) → qsort1_out_aa(.(T14, []), T9)
qsort1_in_aa(.(T14, []), T9) → U20_aa(T14, T9, qsort14_in_a(T17))
U20_aa(T14, T9, qsort14_out_a(T17)) → U21_aa(T14, T9, qsort14_in_a(X13))
U21_aa(T14, T9, qsort14_out_a(X13)) → qsort1_out_aa(.(T14, []), T9)
U20_aa(T14, T9, qsort14_out_a(T17)) → U22_aa(T14, T9, T17, qsort14_in_a(T20))
U22_aa(T14, T9, T17, qsort14_out_a(T20)) → U23_aa(T14, T9, append23_in_gaga(T17, T14, T20, T9))
append23_in_gaga([], T33, T34, .(T33, T34)) → append23_out_gaga([], T33, T34, .(T33, T34))
append23_in_gaga(.(T45, T46), T47, T48, .(T45, T50)) → U1_gaga(T45, T46, T47, T48, T50, append23_in_gaga(T46, T47, T48, T50))
U1_gaga(T45, T46, T47, T48, T50, append23_out_gaga(T46, T47, T48, T50)) → append23_out_gaga(.(T45, T46), T47, T48, .(T45, T50))
U23_aa(T14, T9, append23_out_gaga(T17, T14, T20, T9)) → qsort1_out_aa(.(T14, []), T9)
qsort1_in_aa(.(T69, .(T67, T68)), T9) → U24_aa(T69, T67, T68, T9, le36_in_aa(T67, T69))
le36_in_aa(s(T82), s(T83)) → U2_aa(T82, T83, le36_in_aa(T82, T83))
le36_in_aa(0, s(T90)) → le36_out_aa(0, s(T90))
le36_in_aa(0, 0) → le36_out_aa(0, 0)
U2_aa(T82, T83, le36_out_aa(T82, T83)) → le36_out_aa(s(T82), s(T83))
U24_aa(T69, T67, T68, T9, le36_out_aa(T67, T69)) → qsort1_out_aa(.(T69, .(T67, T68)), T9)
U24_aa(T69, T67, T68, T9, le36_out_aa(T67, T69)) → U25_aa(T69, T67, T68, T9, split51_in_aaaa(T68, T69, X93, X94))
split51_in_aaaa([], T101, [], []) → split51_out_aaaa([], T101, [], [])
split51_in_aaaa(.(T114, T115), T116, .(T114, X167), X168) → U3_aaaa(T114, T115, T116, X167, X168, le36_in_aa(T114, T116))
U3_aaaa(T114, T115, T116, X167, X168, le36_out_aa(T114, T116)) → split51_out_aaaa(.(T114, T115), T116, .(T114, X167), X168)
U3_aaaa(T114, T115, T116, X167, X168, le36_out_aa(T114, T116)) → U4_aaaa(T114, T115, T116, X167, X168, split51_in_aaaa(T115, T116, X167, X168))
split51_in_aaaa(.(T129, T130), T131, X199, .(T129, X200)) → U5_aaaa(T129, T130, T131, X199, X200, gt67_in_aa(T129, T131))
gt67_in_aa(s(T144), s(T145)) → U7_aa(T144, T145, gt67_in_aa(T144, T145))
gt67_in_aa(s(T150), 0) → gt67_out_aa(s(T150), 0)
U7_aa(T144, T145, gt67_out_aa(T144, T145)) → gt67_out_aa(s(T144), s(T145))
U5_aaaa(T129, T130, T131, X199, X200, gt67_out_aa(T129, T131)) → split51_out_aaaa(.(T129, T130), T131, X199, .(T129, X200))
U5_aaaa(T129, T130, T131, X199, X200, gt67_out_aa(T129, T131)) → U6_aaaa(T129, T130, T131, X199, X200, split51_in_agaa(T130, T131, X199, X200))
split51_in_agaa([], T101, [], []) → split51_out_agaa([], T101, [], [])
split51_in_agaa(.(T114, T115), T116, .(T114, X167), X168) → U3_agaa(T114, T115, T116, X167, X168, le36_in_ag(T114, T116))
le36_in_ag(s(T82), s(T83)) → U2_ag(T82, T83, le36_in_ag(T82, T83))
le36_in_ag(0, s(T90)) → le36_out_ag(0, s(T90))
le36_in_ag(0, 0) → le36_out_ag(0, 0)
U2_ag(T82, T83, le36_out_ag(T82, T83)) → le36_out_ag(s(T82), s(T83))
U3_agaa(T114, T115, T116, X167, X168, le36_out_ag(T114, T116)) → split51_out_agaa(.(T114, T115), T116, .(T114, X167), X168)
U3_agaa(T114, T115, T116, X167, X168, le36_out_ag(T114, T116)) → U4_agaa(T114, T115, T116, X167, X168, split51_in_agaa(T115, T116, X167, X168))
split51_in_agaa(.(T129, T130), T131, X199, .(T129, X200)) → U5_agaa(T129, T130, T131, X199, X200, gt67_in_ag(T129, T131))
gt67_in_ag(s(T144), s(T145)) → U7_ag(T144, T145, gt67_in_ag(T144, T145))
gt67_in_ag(s(T150), 0) → gt67_out_ag(s(T150), 0)
U7_ag(T144, T145, gt67_out_ag(T144, T145)) → gt67_out_ag(s(T144), s(T145))
U5_agaa(T129, T130, T131, X199, X200, gt67_out_ag(T129, T131)) → split51_out_agaa(.(T129, T130), T131, X199, .(T129, X200))
U5_agaa(T129, T130, T131, X199, X200, gt67_out_ag(T129, T131)) → U6_agaa(T129, T130, T131, X199, X200, split51_in_agaa(T130, T131, X199, X200))
U6_agaa(T129, T130, T131, X199, X200, split51_out_agaa(T130, T131, X199, X200)) → split51_out_agaa(.(T129, T130), T131, X199, .(T129, X200))
U4_agaa(T114, T115, T116, X167, X168, split51_out_agaa(T115, T116, X167, X168)) → split51_out_agaa(.(T114, T115), T116, .(T114, X167), X168)
U6_aaaa(T129, T130, T131, X199, X200, split51_out_agaa(T130, T131, X199, X200)) → split51_out_aaaa(.(T129, T130), T131, X199, .(T129, X200))
U4_aaaa(T114, T115, T116, X167, X168, split51_out_aaaa(T115, T116, X167, X168)) → split51_out_aaaa(.(T114, T115), T116, .(T114, X167), X168)
U25_aa(T69, T67, T68, T9, split51_out_aaaa(T68, T69, X93, X94)) → qsort1_out_aa(.(T69, .(T67, T68)), T9)
U24_aa(T69, T67, T68, T9, le36_out_aa(T67, T69)) → U26_aa(T69, T67, T68, T9, split51_in_aaaa(T68, T69, T93, T94))
U26_aa(T69, T67, T68, T9, split51_out_aaaa(T68, T69, T93, T94)) → U27_aa(T69, T67, T68, T9, qsort1_in_aa(.(T67, T93), X12))
qsort1_in_aa(.(T215, .(T213, T214)), T9) → U30_aa(T215, T213, T214, T9, gt67_in_aa(T213, T215))
U30_aa(T215, T213, T214, T9, gt67_out_aa(T213, T215)) → qsort1_out_aa(.(T215, .(T213, T214)), T9)
U30_aa(T215, T213, T214, T9, gt67_out_aa(T213, T215)) → U31_aa(T215, T213, T214, T9, split51_in_agaa(T214, T215, X323, X324))
U31_aa(T215, T213, T214, T9, split51_out_agaa(T214, T215, X323, X324)) → qsort1_out_aa(.(T215, .(T213, T214)), T9)
U30_aa(T215, T213, T214, T9, gt67_out_aa(T213, T215)) → U32_aa(T215, T213, T214, T9, split51_in_agaa(T214, T215, T222, T223))
U32_aa(T215, T213, T214, T9, split51_out_agaa(T214, T215, T222, T223)) → U33_aa(T215, T213, T214, T9, qsort79_in_aa(T222, X12))
qsort79_in_aa([], []) → qsort79_out_aa([], [])
qsort79_in_aa(.(T163, T164), X265) → U8_aa(T163, T164, X265, split51_in_aaaa(T164, T163, X261, X262))
U8_aa(T163, T164, X265, split51_out_aaaa(T164, T163, X261, X262)) → qsort79_out_aa(.(T163, T164), X265)
qsort79_in_aa(.(T163, T164), X265) → U9_aa(T163, T164, X265, split51_in_aaaa(T164, T163, T167, T168))
U9_aa(T163, T164, X265, split51_out_aaaa(T164, T163, T167, T168)) → U10_aa(T163, T164, X265, qsort79_in_aa(T167, X263))
U10_aa(T163, T164, X265, qsort79_out_aa(T167, X263)) → qsort79_out_aa(.(T163, T164), X265)
U9_aa(T163, T164, X265, split51_out_aaaa(T164, T163, T167, T168)) → U11_aa(T163, T164, X265, T168, qsort79_in_aa(T167, T171))
U11_aa(T163, T164, X265, T168, qsort79_out_aa(T167, T171)) → U12_aa(T163, T164, X265, qsort79_in_aa(T168, X264))
U12_aa(T163, T164, X265, qsort79_out_aa(T168, X264)) → qsort79_out_aa(.(T163, T164), X265)
U11_aa(T163, T164, X265, T168, qsort79_out_aa(T167, T171)) → U13_aa(T163, T164, X265, T171, qsort79_in_aa(T168, T172))
U13_aa(T163, T164, X265, T171, qsort79_out_aa(T168, T172)) → U14_aa(T163, T164, X265, append94_in_aaaa(T171, T163, T172, X265))
append94_in_aaaa([], T185, T186, .(T185, T186)) → append94_out_aaaa([], T185, T186, .(T185, T186))
append94_in_aaaa(.(T195, T196), T197, T198, .(T195, X295)) → U15_aaaa(T195, T196, T197, T198, X295, append94_in_aaaa(T196, T197, T198, X295))
U15_aaaa(T195, T196, T197, T198, X295, append94_out_aaaa(T196, T197, T198, X295)) → append94_out_aaaa(.(T195, T196), T197, T198, .(T195, X295))
U14_aa(T163, T164, X265, append94_out_aaaa(T171, T163, T172, X265)) → qsort79_out_aa(.(T163, T164), X265)
U33_aa(T215, T213, T214, T9, qsort79_out_aa(T222, X12)) → qsort1_out_aa(.(T215, .(T213, T214)), T9)
U32_aa(T215, T213, T214, T9, split51_out_agaa(T214, T215, T222, T223)) → U34_aa(T215, T213, T214, T9, T223, qsort79_in_aa(T222, T226))
U34_aa(T215, T213, T214, T9, T223, qsort79_out_aa(T222, T226)) → U35_aa(T215, T213, T214, T9, p78_in_aaaga(.(T213, T223), X13, T226, T215, T9))
p78_in_aaaga(T94, X13, T155, T69, T9) → U16_aaaga(T94, X13, T155, T69, T9, qsort79_in_aa(T94, X13))
U16_aaaga(T94, X13, T155, T69, T9, qsort79_out_aa(T94, X13)) → p78_out_aaaga(T94, X13, T155, T69, T9)
p78_in_aaaga(T94, T158, T155, T69, T9) → U17_aaaga(T94, T158, T155, T69, T9, qsort79_in_aa(T94, T158))
U17_aaaga(T94, T158, T155, T69, T9, qsort79_out_aa(T94, T158)) → U18_aaaga(T94, T158, T155, T69, T9, append23_in_agaa(T155, T69, T158, T9))
append23_in_agaa([], T33, T34, .(T33, T34)) → append23_out_agaa([], T33, T34, .(T33, T34))
append23_in_agaa(.(T45, T46), T47, T48, .(T45, T50)) → U1_agaa(T45, T46, T47, T48, T50, append23_in_agaa(T46, T47, T48, T50))
U1_agaa(T45, T46, T47, T48, T50, append23_out_agaa(T46, T47, T48, T50)) → append23_out_agaa(.(T45, T46), T47, T48, .(T45, T50))
U18_aaaga(T94, T158, T155, T69, T9, append23_out_agaa(T155, T69, T158, T9)) → p78_out_aaaga(T94, T158, T155, T69, T9)
U35_aa(T215, T213, T214, T9, p78_out_aaaga(.(T213, T223), X13, T226, T215, T9)) → qsort1_out_aa(.(T215, .(T213, T214)), T9)
U27_aa(T69, T67, T68, T9, qsort1_out_aa(.(T67, T93), X12)) → qsort1_out_aa(.(T69, .(T67, T68)), T9)
U26_aa(T69, T67, T68, T9, split51_out_aaaa(T68, T69, T93, T94)) → U28_aa(T69, T67, T68, T9, T94, qsort1_in_aa(.(T67, T93), T155))
U28_aa(T69, T67, T68, T9, T94, qsort1_out_aa(.(T67, T93), T155)) → U29_aa(T69, T67, T68, T9, p78_in_aaaaa(T94, X13, T155, T69, T9))
p78_in_aaaaa(T94, X13, T155, T69, T9) → U16_aaaaa(T94, X13, T155, T69, T9, qsort79_in_aa(T94, X13))
U16_aaaaa(T94, X13, T155, T69, T9, qsort79_out_aa(T94, X13)) → p78_out_aaaaa(T94, X13, T155, T69, T9)
p78_in_aaaaa(T94, T158, T155, T69, T9) → U17_aaaaa(T94, T158, T155, T69, T9, qsort79_in_aa(T94, T158))
U17_aaaaa(T94, T158, T155, T69, T9, qsort79_out_aa(T94, T158)) → U18_aaaaa(T94, T158, T155, T69, T9, append23_in_aaaa(T155, T69, T158, T9))
append23_in_aaaa([], T33, T34, .(T33, T34)) → append23_out_aaaa([], T33, T34, .(T33, T34))
append23_in_aaaa(.(T45, T46), T47, T48, .(T45, T50)) → U1_aaaa(T45, T46, T47, T48, T50, append23_in_aaaa(T46, T47, T48, T50))
U1_aaaa(T45, T46, T47, T48, T50, append23_out_aaaa(T46, T47, T48, T50)) → append23_out_aaaa(.(T45, T46), T47, T48, .(T45, T50))
U18_aaaaa(T94, T158, T155, T69, T9, append23_out_aaaa(T155, T69, T158, T9)) → p78_out_aaaaa(T94, T158, T155, T69, T9)
U29_aa(T69, T67, T68, T9, p78_out_aaaaa(T94, X13, T155, T69, T9)) → qsort1_out_aa(.(T69, .(T67, T68)), T9)
U27_ga(T69, T67, T68, T9, qsort1_out_aa(.(T67, T93), X12)) → qsort1_out_ga(.(T69, .(T67, T68)), T9)
U26_ga(T69, T67, T68, T9, split51_out_ggaa(T68, T69, T93, T94)) → U28_ga(T69, T67, T68, T9, T94, qsort1_in_aa(.(T67, T93), T155))
U28_ga(T69, T67, T68, T9, T94, qsort1_out_aa(.(T67, T93), T155)) → U29_ga(T69, T67, T68, T9, p78_in_aaaga(T94, X13, T155, T69, T9))
U29_ga(T69, T67, T68, T9, p78_out_aaaga(T94, X13, T155, T69, T9)) → qsort1_out_ga(.(T69, .(T67, T68)), T9)
qsort1_in_ga(.(T215, .(T213, T214)), T9) → U30_ga(T215, T213, T214, T9, gt67_in_gg(T213, T215))
U30_ga(T215, T213, T214, T9, gt67_out_gg(T213, T215)) → qsort1_out_ga(.(T215, .(T213, T214)), T9)
U30_ga(T215, T213, T214, T9, gt67_out_gg(T213, T215)) → U31_ga(T215, T213, T214, T9, split51_in_ggaa(T214, T215, X323, X324))
U31_ga(T215, T213, T214, T9, split51_out_ggaa(T214, T215, X323, X324)) → qsort1_out_ga(.(T215, .(T213, T214)), T9)
U30_ga(T215, T213, T214, T9, gt67_out_gg(T213, T215)) → U32_ga(T215, T213, T214, T9, split51_in_ggaa(T214, T215, T222, T223))
U32_ga(T215, T213, T214, T9, split51_out_ggaa(T214, T215, T222, T223)) → U33_ga(T215, T213, T214, T9, qsort79_in_aa(T222, X12))
U33_ga(T215, T213, T214, T9, qsort79_out_aa(T222, X12)) → qsort1_out_ga(.(T215, .(T213, T214)), T9)
U32_ga(T215, T213, T214, T9, split51_out_ggaa(T214, T215, T222, T223)) → U34_ga(T215, T213, T214, T9, T223, qsort79_in_aa(T222, T226))
U34_ga(T215, T213, T214, T9, T223, qsort79_out_aa(T222, T226)) → U35_ga(T215, T213, T214, T9, p78_in_aaaga(.(T213, T223), X13, T226, T215, T9))
U35_ga(T215, T213, T214, T9, p78_out_aaaga(.(T213, T223), X13, T226, T215, T9)) → qsort1_out_ga(.(T215, .(T213, T214)), T9)
APPEND23_IN_AAAA(.(T45, T46), T47, T48, .(T45, T50)) → APPEND23_IN_AAAA(T46, T47, T48, T50)
APPEND23_IN_AAAA → APPEND23_IN_AAAA
APPEND23_IN_AGAA(.(T45, T46), T47, T48, .(T45, T50)) → APPEND23_IN_AGAA(T46, T47, T48, T50)
qsort1_in_ga([], []) → qsort1_out_ga([], [])
qsort1_in_ga(.(T14, []), T9) → U19_ga(T14, T9, qsort14_in_a(X12))
qsort14_in_a([]) → qsort14_out_a([])
U19_ga(T14, T9, qsort14_out_a(X12)) → qsort1_out_ga(.(T14, []), T9)
qsort1_in_ga(.(T14, []), T9) → U20_ga(T14, T9, qsort14_in_a(T17))
U20_ga(T14, T9, qsort14_out_a(T17)) → U21_ga(T14, T9, qsort14_in_a(X13))
U21_ga(T14, T9, qsort14_out_a(X13)) → qsort1_out_ga(.(T14, []), T9)
U20_ga(T14, T9, qsort14_out_a(T17)) → U22_ga(T14, T9, T17, qsort14_in_a(T20))
U22_ga(T14, T9, T17, qsort14_out_a(T20)) → U23_ga(T14, T9, append23_in_ggga(T17, T14, T20, T9))
append23_in_ggga([], T33, T34, .(T33, T34)) → append23_out_ggga([], T33, T34, .(T33, T34))
append23_in_ggga(.(T45, T46), T47, T48, .(T45, T50)) → U1_ggga(T45, T46, T47, T48, T50, append23_in_ggga(T46, T47, T48, T50))
U1_ggga(T45, T46, T47, T48, T50, append23_out_ggga(T46, T47, T48, T50)) → append23_out_ggga(.(T45, T46), T47, T48, .(T45, T50))
U23_ga(T14, T9, append23_out_ggga(T17, T14, T20, T9)) → qsort1_out_ga(.(T14, []), T9)
qsort1_in_ga(.(T69, .(T67, T68)), T9) → U24_ga(T69, T67, T68, T9, le36_in_gg(T67, T69))
le36_in_gg(s(T82), s(T83)) → U2_gg(T82, T83, le36_in_gg(T82, T83))
le36_in_gg(0, s(T90)) → le36_out_gg(0, s(T90))
le36_in_gg(0, 0) → le36_out_gg(0, 0)
U2_gg(T82, T83, le36_out_gg(T82, T83)) → le36_out_gg(s(T82), s(T83))
U24_ga(T69, T67, T68, T9, le36_out_gg(T67, T69)) → qsort1_out_ga(.(T69, .(T67, T68)), T9)
U24_ga(T69, T67, T68, T9, le36_out_gg(T67, T69)) → U25_ga(T69, T67, T68, T9, split51_in_ggaa(T68, T69, X93, X94))
split51_in_ggaa([], T101, [], []) → split51_out_ggaa([], T101, [], [])
split51_in_ggaa(.(T114, T115), T116, .(T114, X167), X168) → U3_ggaa(T114, T115, T116, X167, X168, le36_in_gg(T114, T116))
U3_ggaa(T114, T115, T116, X167, X168, le36_out_gg(T114, T116)) → split51_out_ggaa(.(T114, T115), T116, .(T114, X167), X168)
U3_ggaa(T114, T115, T116, X167, X168, le36_out_gg(T114, T116)) → U4_ggaa(T114, T115, T116, X167, X168, split51_in_ggaa(T115, T116, X167, X168))
split51_in_ggaa(.(T129, T130), T131, X199, .(T129, X200)) → U5_ggaa(T129, T130, T131, X199, X200, gt67_in_gg(T129, T131))
gt67_in_gg(s(T144), s(T145)) → U7_gg(T144, T145, gt67_in_gg(T144, T145))
gt67_in_gg(s(T150), 0) → gt67_out_gg(s(T150), 0)
U7_gg(T144, T145, gt67_out_gg(T144, T145)) → gt67_out_gg(s(T144), s(T145))
U5_ggaa(T129, T130, T131, X199, X200, gt67_out_gg(T129, T131)) → split51_out_ggaa(.(T129, T130), T131, X199, .(T129, X200))
U5_ggaa(T129, T130, T131, X199, X200, gt67_out_gg(T129, T131)) → U6_ggaa(T129, T130, T131, X199, X200, split51_in_ggaa(T130, T131, X199, X200))
U6_ggaa(T129, T130, T131, X199, X200, split51_out_ggaa(T130, T131, X199, X200)) → split51_out_ggaa(.(T129, T130), T131, X199, .(T129, X200))
U4_ggaa(T114, T115, T116, X167, X168, split51_out_ggaa(T115, T116, X167, X168)) → split51_out_ggaa(.(T114, T115), T116, .(T114, X167), X168)
U25_ga(T69, T67, T68, T9, split51_out_ggaa(T68, T69, X93, X94)) → qsort1_out_ga(.(T69, .(T67, T68)), T9)
U24_ga(T69, T67, T68, T9, le36_out_gg(T67, T69)) → U26_ga(T69, T67, T68, T9, split51_in_ggaa(T68, T69, T93, T94))
U26_ga(T69, T67, T68, T9, split51_out_ggaa(T68, T69, T93, T94)) → U27_ga(T69, T67, T68, T9, qsort1_in_aa(.(T67, T93), X12))
qsort1_in_aa([], []) → qsort1_out_aa([], [])
qsort1_in_aa(.(T14, []), T9) → U19_aa(T14, T9, qsort14_in_a(X12))
U19_aa(T14, T9, qsort14_out_a(X12)) → qsort1_out_aa(.(T14, []), T9)
qsort1_in_aa(.(T14, []), T9) → U20_aa(T14, T9, qsort14_in_a(T17))
U20_aa(T14, T9, qsort14_out_a(T17)) → U21_aa(T14, T9, qsort14_in_a(X13))
U21_aa(T14, T9, qsort14_out_a(X13)) → qsort1_out_aa(.(T14, []), T9)
U20_aa(T14, T9, qsort14_out_a(T17)) → U22_aa(T14, T9, T17, qsort14_in_a(T20))
U22_aa(T14, T9, T17, qsort14_out_a(T20)) → U23_aa(T14, T9, append23_in_gaga(T17, T14, T20, T9))
append23_in_gaga([], T33, T34, .(T33, T34)) → append23_out_gaga([], T33, T34, .(T33, T34))
append23_in_gaga(.(T45, T46), T47, T48, .(T45, T50)) → U1_gaga(T45, T46, T47, T48, T50, append23_in_gaga(T46, T47, T48, T50))
U1_gaga(T45, T46, T47, T48, T50, append23_out_gaga(T46, T47, T48, T50)) → append23_out_gaga(.(T45, T46), T47, T48, .(T45, T50))
U23_aa(T14, T9, append23_out_gaga(T17, T14, T20, T9)) → qsort1_out_aa(.(T14, []), T9)
qsort1_in_aa(.(T69, .(T67, T68)), T9) → U24_aa(T69, T67, T68, T9, le36_in_aa(T67, T69))
le36_in_aa(s(T82), s(T83)) → U2_aa(T82, T83, le36_in_aa(T82, T83))
le36_in_aa(0, s(T90)) → le36_out_aa(0, s(T90))
le36_in_aa(0, 0) → le36_out_aa(0, 0)
U2_aa(T82, T83, le36_out_aa(T82, T83)) → le36_out_aa(s(T82), s(T83))
U24_aa(T69, T67, T68, T9, le36_out_aa(T67, T69)) → qsort1_out_aa(.(T69, .(T67, T68)), T9)
U24_aa(T69, T67, T68, T9, le36_out_aa(T67, T69)) → U25_aa(T69, T67, T68, T9, split51_in_aaaa(T68, T69, X93, X94))
split51_in_aaaa([], T101, [], []) → split51_out_aaaa([], T101, [], [])
split51_in_aaaa(.(T114, T115), T116, .(T114, X167), X168) → U3_aaaa(T114, T115, T116, X167, X168, le36_in_aa(T114, T116))
U3_aaaa(T114, T115, T116, X167, X168, le36_out_aa(T114, T116)) → split51_out_aaaa(.(T114, T115), T116, .(T114, X167), X168)
U3_aaaa(T114, T115, T116, X167, X168, le36_out_aa(T114, T116)) → U4_aaaa(T114, T115, T116, X167, X168, split51_in_aaaa(T115, T116, X167, X168))
split51_in_aaaa(.(T129, T130), T131, X199, .(T129, X200)) → U5_aaaa(T129, T130, T131, X199, X200, gt67_in_aa(T129, T131))
gt67_in_aa(s(T144), s(T145)) → U7_aa(T144, T145, gt67_in_aa(T144, T145))
gt67_in_aa(s(T150), 0) → gt67_out_aa(s(T150), 0)
U7_aa(T144, T145, gt67_out_aa(T144, T145)) → gt67_out_aa(s(T144), s(T145))
U5_aaaa(T129, T130, T131, X199, X200, gt67_out_aa(T129, T131)) → split51_out_aaaa(.(T129, T130), T131, X199, .(T129, X200))
U5_aaaa(T129, T130, T131, X199, X200, gt67_out_aa(T129, T131)) → U6_aaaa(T129, T130, T131, X199, X200, split51_in_agaa(T130, T131, X199, X200))
split51_in_agaa([], T101, [], []) → split51_out_agaa([], T101, [], [])
split51_in_agaa(.(T114, T115), T116, .(T114, X167), X168) → U3_agaa(T114, T115, T116, X167, X168, le36_in_ag(T114, T116))
le36_in_ag(s(T82), s(T83)) → U2_ag(T82, T83, le36_in_ag(T82, T83))
le36_in_ag(0, s(T90)) → le36_out_ag(0, s(T90))
le36_in_ag(0, 0) → le36_out_ag(0, 0)
U2_ag(T82, T83, le36_out_ag(T82, T83)) → le36_out_ag(s(T82), s(T83))
U3_agaa(T114, T115, T116, X167, X168, le36_out_ag(T114, T116)) → split51_out_agaa(.(T114, T115), T116, .(T114, X167), X168)
U3_agaa(T114, T115, T116, X167, X168, le36_out_ag(T114, T116)) → U4_agaa(T114, T115, T116, X167, X168, split51_in_agaa(T115, T116, X167, X168))
split51_in_agaa(.(T129, T130), T131, X199, .(T129, X200)) → U5_agaa(T129, T130, T131, X199, X200, gt67_in_ag(T129, T131))
gt67_in_ag(s(T144), s(T145)) → U7_ag(T144, T145, gt67_in_ag(T144, T145))
gt67_in_ag(s(T150), 0) → gt67_out_ag(s(T150), 0)
U7_ag(T144, T145, gt67_out_ag(T144, T145)) → gt67_out_ag(s(T144), s(T145))
U5_agaa(T129, T130, T131, X199, X200, gt67_out_ag(T129, T131)) → split51_out_agaa(.(T129, T130), T131, X199, .(T129, X200))
U5_agaa(T129, T130, T131, X199, X200, gt67_out_ag(T129, T131)) → U6_agaa(T129, T130, T131, X199, X200, split51_in_agaa(T130, T131, X199, X200))
U6_agaa(T129, T130, T131, X199, X200, split51_out_agaa(T130, T131, X199, X200)) → split51_out_agaa(.(T129, T130), T131, X199, .(T129, X200))
U4_agaa(T114, T115, T116, X167, X168, split51_out_agaa(T115, T116, X167, X168)) → split51_out_agaa(.(T114, T115), T116, .(T114, X167), X168)
U6_aaaa(T129, T130, T131, X199, X200, split51_out_agaa(T130, T131, X199, X200)) → split51_out_aaaa(.(T129, T130), T131, X199, .(T129, X200))
U4_aaaa(T114, T115, T116, X167, X168, split51_out_aaaa(T115, T116, X167, X168)) → split51_out_aaaa(.(T114, T115), T116, .(T114, X167), X168)
U25_aa(T69, T67, T68, T9, split51_out_aaaa(T68, T69, X93, X94)) → qsort1_out_aa(.(T69, .(T67, T68)), T9)
U24_aa(T69, T67, T68, T9, le36_out_aa(T67, T69)) → U26_aa(T69, T67, T68, T9, split51_in_aaaa(T68, T69, T93, T94))
U26_aa(T69, T67, T68, T9, split51_out_aaaa(T68, T69, T93, T94)) → U27_aa(T69, T67, T68, T9, qsort1_in_aa(.(T67, T93), X12))
qsort1_in_aa(.(T215, .(T213, T214)), T9) → U30_aa(T215, T213, T214, T9, gt67_in_aa(T213, T215))
U30_aa(T215, T213, T214, T9, gt67_out_aa(T213, T215)) → qsort1_out_aa(.(T215, .(T213, T214)), T9)
U30_aa(T215, T213, T214, T9, gt67_out_aa(T213, T215)) → U31_aa(T215, T213, T214, T9, split51_in_agaa(T214, T215, X323, X324))
U31_aa(T215, T213, T214, T9, split51_out_agaa(T214, T215, X323, X324)) → qsort1_out_aa(.(T215, .(T213, T214)), T9)
U30_aa(T215, T213, T214, T9, gt67_out_aa(T213, T215)) → U32_aa(T215, T213, T214, T9, split51_in_agaa(T214, T215, T222, T223))
U32_aa(T215, T213, T214, T9, split51_out_agaa(T214, T215, T222, T223)) → U33_aa(T215, T213, T214, T9, qsort79_in_aa(T222, X12))
qsort79_in_aa([], []) → qsort79_out_aa([], [])
qsort79_in_aa(.(T163, T164), X265) → U8_aa(T163, T164, X265, split51_in_aaaa(T164, T163, X261, X262))
U8_aa(T163, T164, X265, split51_out_aaaa(T164, T163, X261, X262)) → qsort79_out_aa(.(T163, T164), X265)
qsort79_in_aa(.(T163, T164), X265) → U9_aa(T163, T164, X265, split51_in_aaaa(T164, T163, T167, T168))
U9_aa(T163, T164, X265, split51_out_aaaa(T164, T163, T167, T168)) → U10_aa(T163, T164, X265, qsort79_in_aa(T167, X263))
U10_aa(T163, T164, X265, qsort79_out_aa(T167, X263)) → qsort79_out_aa(.(T163, T164), X265)
U9_aa(T163, T164, X265, split51_out_aaaa(T164, T163, T167, T168)) → U11_aa(T163, T164, X265, T168, qsort79_in_aa(T167, T171))
U11_aa(T163, T164, X265, T168, qsort79_out_aa(T167, T171)) → U12_aa(T163, T164, X265, qsort79_in_aa(T168, X264))
U12_aa(T163, T164, X265, qsort79_out_aa(T168, X264)) → qsort79_out_aa(.(T163, T164), X265)
U11_aa(T163, T164, X265, T168, qsort79_out_aa(T167, T171)) → U13_aa(T163, T164, X265, T171, qsort79_in_aa(T168, T172))
U13_aa(T163, T164, X265, T171, qsort79_out_aa(T168, T172)) → U14_aa(T163, T164, X265, append94_in_aaaa(T171, T163, T172, X265))
append94_in_aaaa([], T185, T186, .(T185, T186)) → append94_out_aaaa([], T185, T186, .(T185, T186))
append94_in_aaaa(.(T195, T196), T197, T198, .(T195, X295)) → U15_aaaa(T195, T196, T197, T198, X295, append94_in_aaaa(T196, T197, T198, X295))
U15_aaaa(T195, T196, T197, T198, X295, append94_out_aaaa(T196, T197, T198, X295)) → append94_out_aaaa(.(T195, T196), T197, T198, .(T195, X295))
U14_aa(T163, T164, X265, append94_out_aaaa(T171, T163, T172, X265)) → qsort79_out_aa(.(T163, T164), X265)
U33_aa(T215, T213, T214, T9, qsort79_out_aa(T222, X12)) → qsort1_out_aa(.(T215, .(T213, T214)), T9)
U32_aa(T215, T213, T214, T9, split51_out_agaa(T214, T215, T222, T223)) → U34_aa(T215, T213, T214, T9, T223, qsort79_in_aa(T222, T226))
U34_aa(T215, T213, T214, T9, T223, qsort79_out_aa(T222, T226)) → U35_aa(T215, T213, T214, T9, p78_in_aaaga(.(T213, T223), X13, T226, T215, T9))
p78_in_aaaga(T94, X13, T155, T69, T9) → U16_aaaga(T94, X13, T155, T69, T9, qsort79_in_aa(T94, X13))
U16_aaaga(T94, X13, T155, T69, T9, qsort79_out_aa(T94, X13)) → p78_out_aaaga(T94, X13, T155, T69, T9)
p78_in_aaaga(T94, T158, T155, T69, T9) → U17_aaaga(T94, T158, T155, T69, T9, qsort79_in_aa(T94, T158))
U17_aaaga(T94, T158, T155, T69, T9, qsort79_out_aa(T94, T158)) → U18_aaaga(T94, T158, T155, T69, T9, append23_in_agaa(T155, T69, T158, T9))
append23_in_agaa([], T33, T34, .(T33, T34)) → append23_out_agaa([], T33, T34, .(T33, T34))
append23_in_agaa(.(T45, T46), T47, T48, .(T45, T50)) → U1_agaa(T45, T46, T47, T48, T50, append23_in_agaa(T46, T47, T48, T50))
U1_agaa(T45, T46, T47, T48, T50, append23_out_agaa(T46, T47, T48, T50)) → append23_out_agaa(.(T45, T46), T47, T48, .(T45, T50))
U18_aaaga(T94, T158, T155, T69, T9, append23_out_agaa(T155, T69, T158, T9)) → p78_out_aaaga(T94, T158, T155, T69, T9)
U35_aa(T215, T213, T214, T9, p78_out_aaaga(.(T213, T223), X13, T226, T215, T9)) → qsort1_out_aa(.(T215, .(T213, T214)), T9)
U27_aa(T69, T67, T68, T9, qsort1_out_aa(.(T67, T93), X12)) → qsort1_out_aa(.(T69, .(T67, T68)), T9)
U26_aa(T69, T67, T68, T9, split51_out_aaaa(T68, T69, T93, T94)) → U28_aa(T69, T67, T68, T9, T94, qsort1_in_aa(.(T67, T93), T155))
U28_aa(T69, T67, T68, T9, T94, qsort1_out_aa(.(T67, T93), T155)) → U29_aa(T69, T67, T68, T9, p78_in_aaaaa(T94, X13, T155, T69, T9))
p78_in_aaaaa(T94, X13, T155, T69, T9) → U16_aaaaa(T94, X13, T155, T69, T9, qsort79_in_aa(T94, X13))
U16_aaaaa(T94, X13, T155, T69, T9, qsort79_out_aa(T94, X13)) → p78_out_aaaaa(T94, X13, T155, T69, T9)
p78_in_aaaaa(T94, T158, T155, T69, T9) → U17_aaaaa(T94, T158, T155, T69, T9, qsort79_in_aa(T94, T158))
U17_aaaaa(T94, T158, T155, T69, T9, qsort79_out_aa(T94, T158)) → U18_aaaaa(T94, T158, T155, T69, T9, append23_in_aaaa(T155, T69, T158, T9))
append23_in_aaaa([], T33, T34, .(T33, T34)) → append23_out_aaaa([], T33, T34, .(T33, T34))
append23_in_aaaa(.(T45, T46), T47, T48, .(T45, T50)) → U1_aaaa(T45, T46, T47, T48, T50, append23_in_aaaa(T46, T47, T48, T50))
U1_aaaa(T45, T46, T47, T48, T50, append23_out_aaaa(T46, T47, T48, T50)) → append23_out_aaaa(.(T45, T46), T47, T48, .(T45, T50))
U18_aaaaa(T94, T158, T155, T69, T9, append23_out_aaaa(T155, T69, T158, T9)) → p78_out_aaaaa(T94, T158, T155, T69, T9)
U29_aa(T69, T67, T68, T9, p78_out_aaaaa(T94, X13, T155, T69, T9)) → qsort1_out_aa(.(T69, .(T67, T68)), T9)
U27_ga(T69, T67, T68, T9, qsort1_out_aa(.(T67, T93), X12)) → qsort1_out_ga(.(T69, .(T67, T68)), T9)
U26_ga(T69, T67, T68, T9, split51_out_ggaa(T68, T69, T93, T94)) → U28_ga(T69, T67, T68, T9, T94, qsort1_in_aa(.(T67, T93), T155))
U28_ga(T69, T67, T68, T9, T94, qsort1_out_aa(.(T67, T93), T155)) → U29_ga(T69, T67, T68, T9, p78_in_aaaga(T94, X13, T155, T69, T9))
U29_ga(T69, T67, T68, T9, p78_out_aaaga(T94, X13, T155, T69, T9)) → qsort1_out_ga(.(T69, .(T67, T68)), T9)
qsort1_in_ga(.(T215, .(T213, T214)), T9) → U30_ga(T215, T213, T214, T9, gt67_in_gg(T213, T215))
U30_ga(T215, T213, T214, T9, gt67_out_gg(T213, T215)) → qsort1_out_ga(.(T215, .(T213, T214)), T9)
U30_ga(T215, T213, T214, T9, gt67_out_gg(T213, T215)) → U31_ga(T215, T213, T214, T9, split51_in_ggaa(T214, T215, X323, X324))
U31_ga(T215, T213, T214, T9, split51_out_ggaa(T214, T215, X323, X324)) → qsort1_out_ga(.(T215, .(T213, T214)), T9)
U30_ga(T215, T213, T214, T9, gt67_out_gg(T213, T215)) → U32_ga(T215, T213, T214, T9, split51_in_ggaa(T214, T215, T222, T223))
U32_ga(T215, T213, T214, T9, split51_out_ggaa(T214, T215, T222, T223)) → U33_ga(T215, T213, T214, T9, qsort79_in_aa(T222, X12))
U33_ga(T215, T213, T214, T9, qsort79_out_aa(T222, X12)) → qsort1_out_ga(.(T215, .(T213, T214)), T9)
U32_ga(T215, T213, T214, T9, split51_out_ggaa(T214, T215, T222, T223)) → U34_ga(T215, T213, T214, T9, T223, qsort79_in_aa(T222, T226))
U34_ga(T215, T213, T214, T9, T223, qsort79_out_aa(T222, T226)) → U35_ga(T215, T213, T214, T9, p78_in_aaaga(.(T213, T223), X13, T226, T215, T9))
U35_ga(T215, T213, T214, T9, p78_out_aaaga(.(T213, T223), X13, T226, T215, T9)) → qsort1_out_ga(.(T215, .(T213, T214)), T9)
APPEND23_IN_AGAA(.(T45, T46), T47, T48, .(T45, T50)) → APPEND23_IN_AGAA(T46, T47, T48, T50)
APPEND23_IN_AGAA(T47) → APPEND23_IN_AGAA(T47)
APPEND94_IN_AAAA(.(T195, T196), T197, T198, .(T195, X295)) → APPEND94_IN_AAAA(T196, T197, T198, X295)
qsort1_in_ga([], []) → qsort1_out_ga([], [])
qsort1_in_ga(.(T14, []), T9) → U19_ga(T14, T9, qsort14_in_a(X12))
qsort14_in_a([]) → qsort14_out_a([])
U19_ga(T14, T9, qsort14_out_a(X12)) → qsort1_out_ga(.(T14, []), T9)
qsort1_in_ga(.(T14, []), T9) → U20_ga(T14, T9, qsort14_in_a(T17))
U20_ga(T14, T9, qsort14_out_a(T17)) → U21_ga(T14, T9, qsort14_in_a(X13))
U21_ga(T14, T9, qsort14_out_a(X13)) → qsort1_out_ga(.(T14, []), T9)
U20_ga(T14, T9, qsort14_out_a(T17)) → U22_ga(T14, T9, T17, qsort14_in_a(T20))
U22_ga(T14, T9, T17, qsort14_out_a(T20)) → U23_ga(T14, T9, append23_in_ggga(T17, T14, T20, T9))
append23_in_ggga([], T33, T34, .(T33, T34)) → append23_out_ggga([], T33, T34, .(T33, T34))
append23_in_ggga(.(T45, T46), T47, T48, .(T45, T50)) → U1_ggga(T45, T46, T47, T48, T50, append23_in_ggga(T46, T47, T48, T50))
U1_ggga(T45, T46, T47, T48, T50, append23_out_ggga(T46, T47, T48, T50)) → append23_out_ggga(.(T45, T46), T47, T48, .(T45, T50))
U23_ga(T14, T9, append23_out_ggga(T17, T14, T20, T9)) → qsort1_out_ga(.(T14, []), T9)
qsort1_in_ga(.(T69, .(T67, T68)), T9) → U24_ga(T69, T67, T68, T9, le36_in_gg(T67, T69))
le36_in_gg(s(T82), s(T83)) → U2_gg(T82, T83, le36_in_gg(T82, T83))
le36_in_gg(0, s(T90)) → le36_out_gg(0, s(T90))
le36_in_gg(0, 0) → le36_out_gg(0, 0)
U2_gg(T82, T83, le36_out_gg(T82, T83)) → le36_out_gg(s(T82), s(T83))
U24_ga(T69, T67, T68, T9, le36_out_gg(T67, T69)) → qsort1_out_ga(.(T69, .(T67, T68)), T9)
U24_ga(T69, T67, T68, T9, le36_out_gg(T67, T69)) → U25_ga(T69, T67, T68, T9, split51_in_ggaa(T68, T69, X93, X94))
split51_in_ggaa([], T101, [], []) → split51_out_ggaa([], T101, [], [])
split51_in_ggaa(.(T114, T115), T116, .(T114, X167), X168) → U3_ggaa(T114, T115, T116, X167, X168, le36_in_gg(T114, T116))
U3_ggaa(T114, T115, T116, X167, X168, le36_out_gg(T114, T116)) → split51_out_ggaa(.(T114, T115), T116, .(T114, X167), X168)
U3_ggaa(T114, T115, T116, X167, X168, le36_out_gg(T114, T116)) → U4_ggaa(T114, T115, T116, X167, X168, split51_in_ggaa(T115, T116, X167, X168))
split51_in_ggaa(.(T129, T130), T131, X199, .(T129, X200)) → U5_ggaa(T129, T130, T131, X199, X200, gt67_in_gg(T129, T131))
gt67_in_gg(s(T144), s(T145)) → U7_gg(T144, T145, gt67_in_gg(T144, T145))
gt67_in_gg(s(T150), 0) → gt67_out_gg(s(T150), 0)
U7_gg(T144, T145, gt67_out_gg(T144, T145)) → gt67_out_gg(s(T144), s(T145))
U5_ggaa(T129, T130, T131, X199, X200, gt67_out_gg(T129, T131)) → split51_out_ggaa(.(T129, T130), T131, X199, .(T129, X200))
U5_ggaa(T129, T130, T131, X199, X200, gt67_out_gg(T129, T131)) → U6_ggaa(T129, T130, T131, X199, X200, split51_in_ggaa(T130, T131, X199, X200))
U6_ggaa(T129, T130, T131, X199, X200, split51_out_ggaa(T130, T131, X199, X200)) → split51_out_ggaa(.(T129, T130), T131, X199, .(T129, X200))
U4_ggaa(T114, T115, T116, X167, X168, split51_out_ggaa(T115, T116, X167, X168)) → split51_out_ggaa(.(T114, T115), T116, .(T114, X167), X168)
U25_ga(T69, T67, T68, T9, split51_out_ggaa(T68, T69, X93, X94)) → qsort1_out_ga(.(T69, .(T67, T68)), T9)
U24_ga(T69, T67, T68, T9, le36_out_gg(T67, T69)) → U26_ga(T69, T67, T68, T9, split51_in_ggaa(T68, T69, T93, T94))
U26_ga(T69, T67, T68, T9, split51_out_ggaa(T68, T69, T93, T94)) → U27_ga(T69, T67, T68, T9, qsort1_in_aa(.(T67, T93), X12))
qsort1_in_aa([], []) → qsort1_out_aa([], [])
qsort1_in_aa(.(T14, []), T9) → U19_aa(T14, T9, qsort14_in_a(X12))
U19_aa(T14, T9, qsort14_out_a(X12)) → qsort1_out_aa(.(T14, []), T9)
qsort1_in_aa(.(T14, []), T9) → U20_aa(T14, T9, qsort14_in_a(T17))
U20_aa(T14, T9, qsort14_out_a(T17)) → U21_aa(T14, T9, qsort14_in_a(X13))
U21_aa(T14, T9, qsort14_out_a(X13)) → qsort1_out_aa(.(T14, []), T9)
U20_aa(T14, T9, qsort14_out_a(T17)) → U22_aa(T14, T9, T17, qsort14_in_a(T20))
U22_aa(T14, T9, T17, qsort14_out_a(T20)) → U23_aa(T14, T9, append23_in_gaga(T17, T14, T20, T9))
append23_in_gaga([], T33, T34, .(T33, T34)) → append23_out_gaga([], T33, T34, .(T33, T34))
append23_in_gaga(.(T45, T46), T47, T48, .(T45, T50)) → U1_gaga(T45, T46, T47, T48, T50, append23_in_gaga(T46, T47, T48, T50))
U1_gaga(T45, T46, T47, T48, T50, append23_out_gaga(T46, T47, T48, T50)) → append23_out_gaga(.(T45, T46), T47, T48, .(T45, T50))
U23_aa(T14, T9, append23_out_gaga(T17, T14, T20, T9)) → qsort1_out_aa(.(T14, []), T9)
qsort1_in_aa(.(T69, .(T67, T68)), T9) → U24_aa(T69, T67, T68, T9, le36_in_aa(T67, T69))
le36_in_aa(s(T82), s(T83)) → U2_aa(T82, T83, le36_in_aa(T82, T83))
le36_in_aa(0, s(T90)) → le36_out_aa(0, s(T90))
le36_in_aa(0, 0) → le36_out_aa(0, 0)
U2_aa(T82, T83, le36_out_aa(T82, T83)) → le36_out_aa(s(T82), s(T83))
U24_aa(T69, T67, T68, T9, le36_out_aa(T67, T69)) → qsort1_out_aa(.(T69, .(T67, T68)), T9)
U24_aa(T69, T67, T68, T9, le36_out_aa(T67, T69)) → U25_aa(T69, T67, T68, T9, split51_in_aaaa(T68, T69, X93, X94))
split51_in_aaaa([], T101, [], []) → split51_out_aaaa([], T101, [], [])
split51_in_aaaa(.(T114, T115), T116, .(T114, X167), X168) → U3_aaaa(T114, T115, T116, X167, X168, le36_in_aa(T114, T116))
U3_aaaa(T114, T115, T116, X167, X168, le36_out_aa(T114, T116)) → split51_out_aaaa(.(T114, T115), T116, .(T114, X167), X168)
U3_aaaa(T114, T115, T116, X167, X168, le36_out_aa(T114, T116)) → U4_aaaa(T114, T115, T116, X167, X168, split51_in_aaaa(T115, T116, X167, X168))
split51_in_aaaa(.(T129, T130), T131, X199, .(T129, X200)) → U5_aaaa(T129, T130, T131, X199, X200, gt67_in_aa(T129, T131))
gt67_in_aa(s(T144), s(T145)) → U7_aa(T144, T145, gt67_in_aa(T144, T145))
gt67_in_aa(s(T150), 0) → gt67_out_aa(s(T150), 0)
U7_aa(T144, T145, gt67_out_aa(T144, T145)) → gt67_out_aa(s(T144), s(T145))
U5_aaaa(T129, T130, T131, X199, X200, gt67_out_aa(T129, T131)) → split51_out_aaaa(.(T129, T130), T131, X199, .(T129, X200))
U5_aaaa(T129, T130, T131, X199, X200, gt67_out_aa(T129, T131)) → U6_aaaa(T129, T130, T131, X199, X200, split51_in_agaa(T130, T131, X199, X200))
split51_in_agaa([], T101, [], []) → split51_out_agaa([], T101, [], [])
split51_in_agaa(.(T114, T115), T116, .(T114, X167), X168) → U3_agaa(T114, T115, T116, X167, X168, le36_in_ag(T114, T116))
le36_in_ag(s(T82), s(T83)) → U2_ag(T82, T83, le36_in_ag(T82, T83))
le36_in_ag(0, s(T90)) → le36_out_ag(0, s(T90))
le36_in_ag(0, 0) → le36_out_ag(0, 0)
U2_ag(T82, T83, le36_out_ag(T82, T83)) → le36_out_ag(s(T82), s(T83))
U3_agaa(T114, T115, T116, X167, X168, le36_out_ag(T114, T116)) → split51_out_agaa(.(T114, T115), T116, .(T114, X167), X168)
U3_agaa(T114, T115, T116, X167, X168, le36_out_ag(T114, T116)) → U4_agaa(T114, T115, T116, X167, X168, split51_in_agaa(T115, T116, X167, X168))
split51_in_agaa(.(T129, T130), T131, X199, .(T129, X200)) → U5_agaa(T129, T130, T131, X199, X200, gt67_in_ag(T129, T131))
gt67_in_ag(s(T144), s(T145)) → U7_ag(T144, T145, gt67_in_ag(T144, T145))
gt67_in_ag(s(T150), 0) → gt67_out_ag(s(T150), 0)
U7_ag(T144, T145, gt67_out_ag(T144, T145)) → gt67_out_ag(s(T144), s(T145))
U5_agaa(T129, T130, T131, X199, X200, gt67_out_ag(T129, T131)) → split51_out_agaa(.(T129, T130), T131, X199, .(T129, X200))
U5_agaa(T129, T130, T131, X199, X200, gt67_out_ag(T129, T131)) → U6_agaa(T129, T130, T131, X199, X200, split51_in_agaa(T130, T131, X199, X200))
U6_agaa(T129, T130, T131, X199, X200, split51_out_agaa(T130, T131, X199, X200)) → split51_out_agaa(.(T129, T130), T131, X199, .(T129, X200))
U4_agaa(T114, T115, T116, X167, X168, split51_out_agaa(T115, T116, X167, X168)) → split51_out_agaa(.(T114, T115), T116, .(T114, X167), X168)
U6_aaaa(T129, T130, T131, X199, X200, split51_out_agaa(T130, T131, X199, X200)) → split51_out_aaaa(.(T129, T130), T131, X199, .(T129, X200))
U4_aaaa(T114, T115, T116, X167, X168, split51_out_aaaa(T115, T116, X167, X168)) → split51_out_aaaa(.(T114, T115), T116, .(T114, X167), X168)
U25_aa(T69, T67, T68, T9, split51_out_aaaa(T68, T69, X93, X94)) → qsort1_out_aa(.(T69, .(T67, T68)), T9)
U24_aa(T69, T67, T68, T9, le36_out_aa(T67, T69)) → U26_aa(T69, T67, T68, T9, split51_in_aaaa(T68, T69, T93, T94))
U26_aa(T69, T67, T68, T9, split51_out_aaaa(T68, T69, T93, T94)) → U27_aa(T69, T67, T68, T9, qsort1_in_aa(.(T67, T93), X12))
qsort1_in_aa(.(T215, .(T213, T214)), T9) → U30_aa(T215, T213, T214, T9, gt67_in_aa(T213, T215))
U30_aa(T215, T213, T214, T9, gt67_out_aa(T213, T215)) → qsort1_out_aa(.(T215, .(T213, T214)), T9)
U30_aa(T215, T213, T214, T9, gt67_out_aa(T213, T215)) → U31_aa(T215, T213, T214, T9, split51_in_agaa(T214, T215, X323, X324))
U31_aa(T215, T213, T214, T9, split51_out_agaa(T214, T215, X323, X324)) → qsort1_out_aa(.(T215, .(T213, T214)), T9)
U30_aa(T215, T213, T214, T9, gt67_out_aa(T213, T215)) → U32_aa(T215, T213, T214, T9, split51_in_agaa(T214, T215, T222, T223))
U32_aa(T215, T213, T214, T9, split51_out_agaa(T214, T215, T222, T223)) → U33_aa(T215, T213, T214, T9, qsort79_in_aa(T222, X12))
qsort79_in_aa([], []) → qsort79_out_aa([], [])
qsort79_in_aa(.(T163, T164), X265) → U8_aa(T163, T164, X265, split51_in_aaaa(T164, T163, X261, X262))
U8_aa(T163, T164, X265, split51_out_aaaa(T164, T163, X261, X262)) → qsort79_out_aa(.(T163, T164), X265)
qsort79_in_aa(.(T163, T164), X265) → U9_aa(T163, T164, X265, split51_in_aaaa(T164, T163, T167, T168))
U9_aa(T163, T164, X265, split51_out_aaaa(T164, T163, T167, T168)) → U10_aa(T163, T164, X265, qsort79_in_aa(T167, X263))
U10_aa(T163, T164, X265, qsort79_out_aa(T167, X263)) → qsort79_out_aa(.(T163, T164), X265)
U9_aa(T163, T164, X265, split51_out_aaaa(T164, T163, T167, T168)) → U11_aa(T163, T164, X265, T168, qsort79_in_aa(T167, T171))
U11_aa(T163, T164, X265, T168, qsort79_out_aa(T167, T171)) → U12_aa(T163, T164, X265, qsort79_in_aa(T168, X264))
U12_aa(T163, T164, X265, qsort79_out_aa(T168, X264)) → qsort79_out_aa(.(T163, T164), X265)
U11_aa(T163, T164, X265, T168, qsort79_out_aa(T167, T171)) → U13_aa(T163, T164, X265, T171, qsort79_in_aa(T168, T172))
U13_aa(T163, T164, X265, T171, qsort79_out_aa(T168, T172)) → U14_aa(T163, T164, X265, append94_in_aaaa(T171, T163, T172, X265))
append94_in_aaaa([], T185, T186, .(T185, T186)) → append94_out_aaaa([], T185, T186, .(T185, T186))
append94_in_aaaa(.(T195, T196), T197, T198, .(T195, X295)) → U15_aaaa(T195, T196, T197, T198, X295, append94_in_aaaa(T196, T197, T198, X295))
U15_aaaa(T195, T196, T197, T198, X295, append94_out_aaaa(T196, T197, T198, X295)) → append94_out_aaaa(.(T195, T196), T197, T198, .(T195, X295))
U14_aa(T163, T164, X265, append94_out_aaaa(T171, T163, T172, X265)) → qsort79_out_aa(.(T163, T164), X265)
U33_aa(T215, T213, T214, T9, qsort79_out_aa(T222, X12)) → qsort1_out_aa(.(T215, .(T213, T214)), T9)
U32_aa(T215, T213, T214, T9, split51_out_agaa(T214, T215, T222, T223)) → U34_aa(T215, T213, T214, T9, T223, qsort79_in_aa(T222, T226))
U34_aa(T215, T213, T214, T9, T223, qsort79_out_aa(T222, T226)) → U35_aa(T215, T213, T214, T9, p78_in_aaaga(.(T213, T223), X13, T226, T215, T9))
p78_in_aaaga(T94, X13, T155, T69, T9) → U16_aaaga(T94, X13, T155, T69, T9, qsort79_in_aa(T94, X13))
U16_aaaga(T94, X13, T155, T69, T9, qsort79_out_aa(T94, X13)) → p78_out_aaaga(T94, X13, T155, T69, T9)
p78_in_aaaga(T94, T158, T155, T69, T9) → U17_aaaga(T94, T158, T155, T69, T9, qsort79_in_aa(T94, T158))
U17_aaaga(T94, T158, T155, T69, T9, qsort79_out_aa(T94, T158)) → U18_aaaga(T94, T158, T155, T69, T9, append23_in_agaa(T155, T69, T158, T9))
append23_in_agaa([], T33, T34, .(T33, T34)) → append23_out_agaa([], T33, T34, .(T33, T34))
append23_in_agaa(.(T45, T46), T47, T48, .(T45, T50)) → U1_agaa(T45, T46, T47, T48, T50, append23_in_agaa(T46, T47, T48, T50))
U1_agaa(T45, T46, T47, T48, T50, append23_out_agaa(T46, T47, T48, T50)) → append23_out_agaa(.(T45, T46), T47, T48, .(T45, T50))
U18_aaaga(T94, T158, T155, T69, T9, append23_out_agaa(T155, T69, T158, T9)) → p78_out_aaaga(T94, T158, T155, T69, T9)
U35_aa(T215, T213, T214, T9, p78_out_aaaga(.(T213, T223), X13, T226, T215, T9)) → qsort1_out_aa(.(T215, .(T213, T214)), T9)
U27_aa(T69, T67, T68, T9, qsort1_out_aa(.(T67, T93), X12)) → qsort1_out_aa(.(T69, .(T67, T68)), T9)
U26_aa(T69, T67, T68, T9, split51_out_aaaa(T68, T69, T93, T94)) → U28_aa(T69, T67, T68, T9, T94, qsort1_in_aa(.(T67, T93), T155))
U28_aa(T69, T67, T68, T9, T94, qsort1_out_aa(.(T67, T93), T155)) → U29_aa(T69, T67, T68, T9, p78_in_aaaaa(T94, X13, T155, T69, T9))
p78_in_aaaaa(T94, X13, T155, T69, T9) → U16_aaaaa(T94, X13, T155, T69, T9, qsort79_in_aa(T94, X13))
U16_aaaaa(T94, X13, T155, T69, T9, qsort79_out_aa(T94, X13)) → p78_out_aaaaa(T94, X13, T155, T69, T9)
p78_in_aaaaa(T94, T158, T155, T69, T9) → U17_aaaaa(T94, T158, T155, T69, T9, qsort79_in_aa(T94, T158))
U17_aaaaa(T94, T158, T155, T69, T9, qsort79_out_aa(T94, T158)) → U18_aaaaa(T94, T158, T155, T69, T9, append23_in_aaaa(T155, T69, T158, T9))
append23_in_aaaa([], T33, T34, .(T33, T34)) → append23_out_aaaa([], T33, T34, .(T33, T34))
append23_in_aaaa(.(T45, T46), T47, T48, .(T45, T50)) → U1_aaaa(T45, T46, T47, T48, T50, append23_in_aaaa(T46, T47, T48, T50))
U1_aaaa(T45, T46, T47, T48, T50, append23_out_aaaa(T46, T47, T48, T50)) → append23_out_aaaa(.(T45, T46), T47, T48, .(T45, T50))
U18_aaaaa(T94, T158, T155, T69, T9, append23_out_aaaa(T155, T69, T158, T9)) → p78_out_aaaaa(T94, T158, T155, T69, T9)
U29_aa(T69, T67, T68, T9, p78_out_aaaaa(T94, X13, T155, T69, T9)) → qsort1_out_aa(.(T69, .(T67, T68)), T9)
U27_ga(T69, T67, T68, T9, qsort1_out_aa(.(T67, T93), X12)) → qsort1_out_ga(.(T69, .(T67, T68)), T9)
U26_ga(T69, T67, T68, T9, split51_out_ggaa(T68, T69, T93, T94)) → U28_ga(T69, T67, T68, T9, T94, qsort1_in_aa(.(T67, T93), T155))
U28_ga(T69, T67, T68, T9, T94, qsort1_out_aa(.(T67, T93), T155)) → U29_ga(T69, T67, T68, T9, p78_in_aaaga(T94, X13, T155, T69, T9))
U29_ga(T69, T67, T68, T9, p78_out_aaaga(T94, X13, T155, T69, T9)) → qsort1_out_ga(.(T69, .(T67, T68)), T9)
qsort1_in_ga(.(T215, .(T213, T214)), T9) → U30_ga(T215, T213, T214, T9, gt67_in_gg(T213, T215))
U30_ga(T215, T213, T214, T9, gt67_out_gg(T213, T215)) → qsort1_out_ga(.(T215, .(T213, T214)), T9)
U30_ga(T215, T213, T214, T9, gt67_out_gg(T213, T215)) → U31_ga(T215, T213, T214, T9, split51_in_ggaa(T214, T215, X323, X324))
U31_ga(T215, T213, T214, T9, split51_out_ggaa(T214, T215, X323, X324)) → qsort1_out_ga(.(T215, .(T213, T214)), T9)
U30_ga(T215, T213, T214, T9, gt67_out_gg(T213, T215)) → U32_ga(T215, T213, T214, T9, split51_in_ggaa(T214, T215, T222, T223))
U32_ga(T215, T213, T214, T9, split51_out_ggaa(T214, T215, T222, T223)) → U33_ga(T215, T213, T214, T9, qsort79_in_aa(T222, X12))
U33_ga(T215, T213, T214, T9, qsort79_out_aa(T222, X12)) → qsort1_out_ga(.(T215, .(T213, T214)), T9)
U32_ga(T215, T213, T214, T9, split51_out_ggaa(T214, T215, T222, T223)) → U34_ga(T215, T213, T214, T9, T223, qsort79_in_aa(T222, T226))
U34_ga(T215, T213, T214, T9, T223, qsort79_out_aa(T222, T226)) → U35_ga(T215, T213, T214, T9, p78_in_aaaga(.(T213, T223), X13, T226, T215, T9))
U35_ga(T215, T213, T214, T9, p78_out_aaaga(.(T213, T223), X13, T226, T215, T9)) → qsort1_out_ga(.(T215, .(T213, T214)), T9)
APPEND94_IN_AAAA(.(T195, T196), T197, T198, .(T195, X295)) → APPEND94_IN_AAAA(T196, T197, T198, X295)
APPEND94_IN_AAAA → APPEND94_IN_AAAA
GT67_IN_AG(s(T144), s(T145)) → GT67_IN_AG(T144, T145)
qsort1_in_ga([], []) → qsort1_out_ga([], [])
qsort1_in_ga(.(T14, []), T9) → U19_ga(T14, T9, qsort14_in_a(X12))
qsort14_in_a([]) → qsort14_out_a([])
U19_ga(T14, T9, qsort14_out_a(X12)) → qsort1_out_ga(.(T14, []), T9)
qsort1_in_ga(.(T14, []), T9) → U20_ga(T14, T9, qsort14_in_a(T17))
U20_ga(T14, T9, qsort14_out_a(T17)) → U21_ga(T14, T9, qsort14_in_a(X13))
U21_ga(T14, T9, qsort14_out_a(X13)) → qsort1_out_ga(.(T14, []), T9)
U20_ga(T14, T9, qsort14_out_a(T17)) → U22_ga(T14, T9, T17, qsort14_in_a(T20))
U22_ga(T14, T9, T17, qsort14_out_a(T20)) → U23_ga(T14, T9, append23_in_ggga(T17, T14, T20, T9))
append23_in_ggga([], T33, T34, .(T33, T34)) → append23_out_ggga([], T33, T34, .(T33, T34))
append23_in_ggga(.(T45, T46), T47, T48, .(T45, T50)) → U1_ggga(T45, T46, T47, T48, T50, append23_in_ggga(T46, T47, T48, T50))
U1_ggga(T45, T46, T47, T48, T50, append23_out_ggga(T46, T47, T48, T50)) → append23_out_ggga(.(T45, T46), T47, T48, .(T45, T50))
U23_ga(T14, T9, append23_out_ggga(T17, T14, T20, T9)) → qsort1_out_ga(.(T14, []), T9)
qsort1_in_ga(.(T69, .(T67, T68)), T9) → U24_ga(T69, T67, T68, T9, le36_in_gg(T67, T69))
le36_in_gg(s(T82), s(T83)) → U2_gg(T82, T83, le36_in_gg(T82, T83))
le36_in_gg(0, s(T90)) → le36_out_gg(0, s(T90))
le36_in_gg(0, 0) → le36_out_gg(0, 0)
U2_gg(T82, T83, le36_out_gg(T82, T83)) → le36_out_gg(s(T82), s(T83))
U24_ga(T69, T67, T68, T9, le36_out_gg(T67, T69)) → qsort1_out_ga(.(T69, .(T67, T68)), T9)
U24_ga(T69, T67, T68, T9, le36_out_gg(T67, T69)) → U25_ga(T69, T67, T68, T9, split51_in_ggaa(T68, T69, X93, X94))
split51_in_ggaa([], T101, [], []) → split51_out_ggaa([], T101, [], [])
split51_in_ggaa(.(T114, T115), T116, .(T114, X167), X168) → U3_ggaa(T114, T115, T116, X167, X168, le36_in_gg(T114, T116))
U3_ggaa(T114, T115, T116, X167, X168, le36_out_gg(T114, T116)) → split51_out_ggaa(.(T114, T115), T116, .(T114, X167), X168)
U3_ggaa(T114, T115, T116, X167, X168, le36_out_gg(T114, T116)) → U4_ggaa(T114, T115, T116, X167, X168, split51_in_ggaa(T115, T116, X167, X168))
split51_in_ggaa(.(T129, T130), T131, X199, .(T129, X200)) → U5_ggaa(T129, T130, T131, X199, X200, gt67_in_gg(T129, T131))
gt67_in_gg(s(T144), s(T145)) → U7_gg(T144, T145, gt67_in_gg(T144, T145))
gt67_in_gg(s(T150), 0) → gt67_out_gg(s(T150), 0)
U7_gg(T144, T145, gt67_out_gg(T144, T145)) → gt67_out_gg(s(T144), s(T145))
U5_ggaa(T129, T130, T131, X199, X200, gt67_out_gg(T129, T131)) → split51_out_ggaa(.(T129, T130), T131, X199, .(T129, X200))
U5_ggaa(T129, T130, T131, X199, X200, gt67_out_gg(T129, T131)) → U6_ggaa(T129, T130, T131, X199, X200, split51_in_ggaa(T130, T131, X199, X200))
U6_ggaa(T129, T130, T131, X199, X200, split51_out_ggaa(T130, T131, X199, X200)) → split51_out_ggaa(.(T129, T130), T131, X199, .(T129, X200))
U4_ggaa(T114, T115, T116, X167, X168, split51_out_ggaa(T115, T116, X167, X168)) → split51_out_ggaa(.(T114, T115), T116, .(T114, X167), X168)
U25_ga(T69, T67, T68, T9, split51_out_ggaa(T68, T69, X93, X94)) → qsort1_out_ga(.(T69, .(T67, T68)), T9)
U24_ga(T69, T67, T68, T9, le36_out_gg(T67, T69)) → U26_ga(T69, T67, T68, T9, split51_in_ggaa(T68, T69, T93, T94))
U26_ga(T69, T67, T68, T9, split51_out_ggaa(T68, T69, T93, T94)) → U27_ga(T69, T67, T68, T9, qsort1_in_aa(.(T67, T93), X12))
qsort1_in_aa([], []) → qsort1_out_aa([], [])
qsort1_in_aa(.(T14, []), T9) → U19_aa(T14, T9, qsort14_in_a(X12))
U19_aa(T14, T9, qsort14_out_a(X12)) → qsort1_out_aa(.(T14, []), T9)
qsort1_in_aa(.(T14, []), T9) → U20_aa(T14, T9, qsort14_in_a(T17))
U20_aa(T14, T9, qsort14_out_a(T17)) → U21_aa(T14, T9, qsort14_in_a(X13))
U21_aa(T14, T9, qsort14_out_a(X13)) → qsort1_out_aa(.(T14, []), T9)
U20_aa(T14, T9, qsort14_out_a(T17)) → U22_aa(T14, T9, T17, qsort14_in_a(T20))
U22_aa(T14, T9, T17, qsort14_out_a(T20)) → U23_aa(T14, T9, append23_in_gaga(T17, T14, T20, T9))
append23_in_gaga([], T33, T34, .(T33, T34)) → append23_out_gaga([], T33, T34, .(T33, T34))
append23_in_gaga(.(T45, T46), T47, T48, .(T45, T50)) → U1_gaga(T45, T46, T47, T48, T50, append23_in_gaga(T46, T47, T48, T50))
U1_gaga(T45, T46, T47, T48, T50, append23_out_gaga(T46, T47, T48, T50)) → append23_out_gaga(.(T45, T46), T47, T48, .(T45, T50))
U23_aa(T14, T9, append23_out_gaga(T17, T14, T20, T9)) → qsort1_out_aa(.(T14, []), T9)
qsort1_in_aa(.(T69, .(T67, T68)), T9) → U24_aa(T69, T67, T68, T9, le36_in_aa(T67, T69))
le36_in_aa(s(T82), s(T83)) → U2_aa(T82, T83, le36_in_aa(T82, T83))
le36_in_aa(0, s(T90)) → le36_out_aa(0, s(T90))
le36_in_aa(0, 0) → le36_out_aa(0, 0)
U2_aa(T82, T83, le36_out_aa(T82, T83)) → le36_out_aa(s(T82), s(T83))
U24_aa(T69, T67, T68, T9, le36_out_aa(T67, T69)) → qsort1_out_aa(.(T69, .(T67, T68)), T9)
U24_aa(T69, T67, T68, T9, le36_out_aa(T67, T69)) → U25_aa(T69, T67, T68, T9, split51_in_aaaa(T68, T69, X93, X94))
split51_in_aaaa([], T101, [], []) → split51_out_aaaa([], T101, [], [])
split51_in_aaaa(.(T114, T115), T116, .(T114, X167), X168) → U3_aaaa(T114, T115, T116, X167, X168, le36_in_aa(T114, T116))
U3_aaaa(T114, T115, T116, X167, X168, le36_out_aa(T114, T116)) → split51_out_aaaa(.(T114, T115), T116, .(T114, X167), X168)
U3_aaaa(T114, T115, T116, X167, X168, le36_out_aa(T114, T116)) → U4_aaaa(T114, T115, T116, X167, X168, split51_in_aaaa(T115, T116, X167, X168))
split51_in_aaaa(.(T129, T130), T131, X199, .(T129, X200)) → U5_aaaa(T129, T130, T131, X199, X200, gt67_in_aa(T129, T131))
gt67_in_aa(s(T144), s(T145)) → U7_aa(T144, T145, gt67_in_aa(T144, T145))
gt67_in_aa(s(T150), 0) → gt67_out_aa(s(T150), 0)
U7_aa(T144, T145, gt67_out_aa(T144, T145)) → gt67_out_aa(s(T144), s(T145))
U5_aaaa(T129, T130, T131, X199, X200, gt67_out_aa(T129, T131)) → split51_out_aaaa(.(T129, T130), T131, X199, .(T129, X200))
U5_aaaa(T129, T130, T131, X199, X200, gt67_out_aa(T129, T131)) → U6_aaaa(T129, T130, T131, X199, X200, split51_in_agaa(T130, T131, X199, X200))
split51_in_agaa([], T101, [], []) → split51_out_agaa([], T101, [], [])
split51_in_agaa(.(T114, T115), T116, .(T114, X167), X168) → U3_agaa(T114, T115, T116, X167, X168, le36_in_ag(T114, T116))
le36_in_ag(s(T82), s(T83)) → U2_ag(T82, T83, le36_in_ag(T82, T83))
le36_in_ag(0, s(T90)) → le36_out_ag(0, s(T90))
le36_in_ag(0, 0) → le36_out_ag(0, 0)
U2_ag(T82, T83, le36_out_ag(T82, T83)) → le36_out_ag(s(T82), s(T83))
U3_agaa(T114, T115, T116, X167, X168, le36_out_ag(T114, T116)) → split51_out_agaa(.(T114, T115), T116, .(T114, X167), X168)
U3_agaa(T114, T115, T116, X167, X168, le36_out_ag(T114, T116)) → U4_agaa(T114, T115, T116, X167, X168, split51_in_agaa(T115, T116, X167, X168))
split51_in_agaa(.(T129, T130), T131, X199, .(T129, X200)) → U5_agaa(T129, T130, T131, X199, X200, gt67_in_ag(T129, T131))
gt67_in_ag(s(T144), s(T145)) → U7_ag(T144, T145, gt67_in_ag(T144, T145))
gt67_in_ag(s(T150), 0) → gt67_out_ag(s(T150), 0)
U7_ag(T144, T145, gt67_out_ag(T144, T145)) → gt67_out_ag(s(T144), s(T145))
U5_agaa(T129, T130, T131, X199, X200, gt67_out_ag(T129, T131)) → split51_out_agaa(.(T129, T130), T131, X199, .(T129, X200))
U5_agaa(T129, T130, T131, X199, X200, gt67_out_ag(T129, T131)) → U6_agaa(T129, T130, T131, X199, X200, split51_in_agaa(T130, T131, X199, X200))
U6_agaa(T129, T130, T131, X199, X200, split51_out_agaa(T130, T131, X199, X200)) → split51_out_agaa(.(T129, T130), T131, X199, .(T129, X200))
U4_agaa(T114, T115, T116, X167, X168, split51_out_agaa(T115, T116, X167, X168)) → split51_out_agaa(.(T114, T115), T116, .(T114, X167), X168)
U6_aaaa(T129, T130, T131, X199, X200, split51_out_agaa(T130, T131, X199, X200)) → split51_out_aaaa(.(T129, T130), T131, X199, .(T129, X200))
U4_aaaa(T114, T115, T116, X167, X168, split51_out_aaaa(T115, T116, X167, X168)) → split51_out_aaaa(.(T114, T115), T116, .(T114, X167), X168)
U25_aa(T69, T67, T68, T9, split51_out_aaaa(T68, T69, X93, X94)) → qsort1_out_aa(.(T69, .(T67, T68)), T9)
U24_aa(T69, T67, T68, T9, le36_out_aa(T67, T69)) → U26_aa(T69, T67, T68, T9, split51_in_aaaa(T68, T69, T93, T94))
U26_aa(T69, T67, T68, T9, split51_out_aaaa(T68, T69, T93, T94)) → U27_aa(T69, T67, T68, T9, qsort1_in_aa(.(T67, T93), X12))
qsort1_in_aa(.(T215, .(T213, T214)), T9) → U30_aa(T215, T213, T214, T9, gt67_in_aa(T213, T215))
U30_aa(T215, T213, T214, T9, gt67_out_aa(T213, T215)) → qsort1_out_aa(.(T215, .(T213, T214)), T9)
U30_aa(T215, T213, T214, T9, gt67_out_aa(T213, T215)) → U31_aa(T215, T213, T214, T9, split51_in_agaa(T214, T215, X323, X324))
U31_aa(T215, T213, T214, T9, split51_out_agaa(T214, T215, X323, X324)) → qsort1_out_aa(.(T215, .(T213, T214)), T9)
U30_aa(T215, T213, T214, T9, gt67_out_aa(T213, T215)) → U32_aa(T215, T213, T214, T9, split51_in_agaa(T214, T215, T222, T223))
U32_aa(T215, T213, T214, T9, split51_out_agaa(T214, T215, T222, T223)) → U33_aa(T215, T213, T214, T9, qsort79_in_aa(T222, X12))
qsort79_in_aa([], []) → qsort79_out_aa([], [])
qsort79_in_aa(.(T163, T164), X265) → U8_aa(T163, T164, X265, split51_in_aaaa(T164, T163, X261, X262))
U8_aa(T163, T164, X265, split51_out_aaaa(T164, T163, X261, X262)) → qsort79_out_aa(.(T163, T164), X265)
qsort79_in_aa(.(T163, T164), X265) → U9_aa(T163, T164, X265, split51_in_aaaa(T164, T163, T167, T168))
U9_aa(T163, T164, X265, split51_out_aaaa(T164, T163, T167, T168)) → U10_aa(T163, T164, X265, qsort79_in_aa(T167, X263))
U10_aa(T163, T164, X265, qsort79_out_aa(T167, X263)) → qsort79_out_aa(.(T163, T164), X265)
U9_aa(T163, T164, X265, split51_out_aaaa(T164, T163, T167, T168)) → U11_aa(T163, T164, X265, T168, qsort79_in_aa(T167, T171))
U11_aa(T163, T164, X265, T168, qsort79_out_aa(T167, T171)) → U12_aa(T163, T164, X265, qsort79_in_aa(T168, X264))
U12_aa(T163, T164, X265, qsort79_out_aa(T168, X264)) → qsort79_out_aa(.(T163, T164), X265)
U11_aa(T163, T164, X265, T168, qsort79_out_aa(T167, T171)) → U13_aa(T163, T164, X265, T171, qsort79_in_aa(T168, T172))
U13_aa(T163, T164, X265, T171, qsort79_out_aa(T168, T172)) → U14_aa(T163, T164, X265, append94_in_aaaa(T171, T163, T172, X265))
append94_in_aaaa([], T185, T186, .(T185, T186)) → append94_out_aaaa([], T185, T186, .(T185, T186))
append94_in_aaaa(.(T195, T196), T197, T198, .(T195, X295)) → U15_aaaa(T195, T196, T197, T198, X295, append94_in_aaaa(T196, T197, T198, X295))
U15_aaaa(T195, T196, T197, T198, X295, append94_out_aaaa(T196, T197, T198, X295)) → append94_out_aaaa(.(T195, T196), T197, T198, .(T195, X295))
U14_aa(T163, T164, X265, append94_out_aaaa(T171, T163, T172, X265)) → qsort79_out_aa(.(T163, T164), X265)
U33_aa(T215, T213, T214, T9, qsort79_out_aa(T222, X12)) → qsort1_out_aa(.(T215, .(T213, T214)), T9)
U32_aa(T215, T213, T214, T9, split51_out_agaa(T214, T215, T222, T223)) → U34_aa(T215, T213, T214, T9, T223, qsort79_in_aa(T222, T226))
U34_aa(T215, T213, T214, T9, T223, qsort79_out_aa(T222, T226)) → U35_aa(T215, T213, T214, T9, p78_in_aaaga(.(T213, T223), X13, T226, T215, T9))
p78_in_aaaga(T94, X13, T155, T69, T9) → U16_aaaga(T94, X13, T155, T69, T9, qsort79_in_aa(T94, X13))
U16_aaaga(T94, X13, T155, T69, T9, qsort79_out_aa(T94, X13)) → p78_out_aaaga(T94, X13, T155, T69, T9)
p78_in_aaaga(T94, T158, T155, T69, T9) → U17_aaaga(T94, T158, T155, T69, T9, qsort79_in_aa(T94, T158))
U17_aaaga(T94, T158, T155, T69, T9, qsort79_out_aa(T94, T158)) → U18_aaaga(T94, T158, T155, T69, T9, append23_in_agaa(T155, T69, T158, T9))
append23_in_agaa([], T33, T34, .(T33, T34)) → append23_out_agaa([], T33, T34, .(T33, T34))
append23_in_agaa(.(T45, T46), T47, T48, .(T45, T50)) → U1_agaa(T45, T46, T47, T48, T50, append23_in_agaa(T46, T47, T48, T50))
U1_agaa(T45, T46, T47, T48, T50, append23_out_agaa(T46, T47, T48, T50)) → append23_out_agaa(.(T45, T46), T47, T48, .(T45, T50))
U18_aaaga(T94, T158, T155, T69, T9, append23_out_agaa(T155, T69, T158, T9)) → p78_out_aaaga(T94, T158, T155, T69, T9)
U35_aa(T215, T213, T214, T9, p78_out_aaaga(.(T213, T223), X13, T226, T215, T9)) → qsort1_out_aa(.(T215, .(T213, T214)), T9)
U27_aa(T69, T67, T68, T9, qsort1_out_aa(.(T67, T93), X12)) → qsort1_out_aa(.(T69, .(T67, T68)), T9)
U26_aa(T69, T67, T68, T9, split51_out_aaaa(T68, T69, T93, T94)) → U28_aa(T69, T67, T68, T9, T94, qsort1_in_aa(.(T67, T93), T155))
U28_aa(T69, T67, T68, T9, T94, qsort1_out_aa(.(T67, T93), T155)) → U29_aa(T69, T67, T68, T9, p78_in_aaaaa(T94, X13, T155, T69, T9))
p78_in_aaaaa(T94, X13, T155, T69, T9) → U16_aaaaa(T94, X13, T155, T69, T9, qsort79_in_aa(T94, X13))
U16_aaaaa(T94, X13, T155, T69, T9, qsort79_out_aa(T94, X13)) → p78_out_aaaaa(T94, X13, T155, T69, T9)
p78_in_aaaaa(T94, T158, T155, T69, T9) → U17_aaaaa(T94, T158, T155, T69, T9, qsort79_in_aa(T94, T158))
U17_aaaaa(T94, T158, T155, T69, T9, qsort79_out_aa(T94, T158)) → U18_aaaaa(T94, T158, T155, T69, T9, append23_in_aaaa(T155, T69, T158, T9))
append23_in_aaaa([], T33, T34, .(T33, T34)) → append23_out_aaaa([], T33, T34, .(T33, T34))
append23_in_aaaa(.(T45, T46), T47, T48, .(T45, T50)) → U1_aaaa(T45, T46, T47, T48, T50, append23_in_aaaa(T46, T47, T48, T50))
U1_aaaa(T45, T46, T47, T48, T50, append23_out_aaaa(T46, T47, T48, T50)) → append23_out_aaaa(.(T45, T46), T47, T48, .(T45, T50))
U18_aaaaa(T94, T158, T155, T69, T9, append23_out_aaaa(T155, T69, T158, T9)) → p78_out_aaaaa(T94, T158, T155, T69, T9)
U29_aa(T69, T67, T68, T9, p78_out_aaaaa(T94, X13, T155, T69, T9)) → qsort1_out_aa(.(T69, .(T67, T68)), T9)
U27_ga(T69, T67, T68, T9, qsort1_out_aa(.(T67, T93), X12)) → qsort1_out_ga(.(T69, .(T67, T68)), T9)
U26_ga(T69, T67, T68, T9, split51_out_ggaa(T68, T69, T93, T94)) → U28_ga(T69, T67, T68, T9, T94, qsort1_in_aa(.(T67, T93), T155))
U28_ga(T69, T67, T68, T9, T94, qsort1_out_aa(.(T67, T93), T155)) → U29_ga(T69, T67, T68, T9, p78_in_aaaga(T94, X13, T155, T69, T9))
U29_ga(T69, T67, T68, T9, p78_out_aaaga(T94, X13, T155, T69, T9)) → qsort1_out_ga(.(T69, .(T67, T68)), T9)
qsort1_in_ga(.(T215, .(T213, T214)), T9) → U30_ga(T215, T213, T214, T9, gt67_in_gg(T213, T215))
U30_ga(T215, T213, T214, T9, gt67_out_gg(T213, T215)) → qsort1_out_ga(.(T215, .(T213, T214)), T9)
U30_ga(T215, T213, T214, T9, gt67_out_gg(T213, T215)) → U31_ga(T215, T213, T214, T9, split51_in_ggaa(T214, T215, X323, X324))
U31_ga(T215, T213, T214, T9, split51_out_ggaa(T214, T215, X323, X324)) → qsort1_out_ga(.(T215, .(T213, T214)), T9)
U30_ga(T215, T213, T214, T9, gt67_out_gg(T213, T215)) → U32_ga(T215, T213, T214, T9, split51_in_ggaa(T214, T215, T222, T223))
U32_ga(T215, T213, T214, T9, split51_out_ggaa(T214, T215, T222, T223)) → U33_ga(T215, T213, T214, T9, qsort79_in_aa(T222, X12))
U33_ga(T215, T213, T214, T9, qsort79_out_aa(T222, X12)) → qsort1_out_ga(.(T215, .(T213, T214)), T9)
U32_ga(T215, T213, T214, T9, split51_out_ggaa(T214, T215, T222, T223)) → U34_ga(T215, T213, T214, T9, T223, qsort79_in_aa(T222, T226))
U34_ga(T215, T213, T214, T9, T223, qsort79_out_aa(T222, T226)) → U35_ga(T215, T213, T214, T9, p78_in_aaaga(.(T213, T223), X13, T226, T215, T9))
U35_ga(T215, T213, T214, T9, p78_out_aaaga(.(T213, T223), X13, T226, T215, T9)) → qsort1_out_ga(.(T215, .(T213, T214)), T9)
GT67_IN_AG(s(T144), s(T145)) → GT67_IN_AG(T144, T145)
GT67_IN_AG(s(T145)) → GT67_IN_AG(T145)
From the DPs we obtained the following set of size-change graphs:
LE36_IN_AG(s(T82), s(T83)) → LE36_IN_AG(T82, T83)
qsort1_in_ga([], []) → qsort1_out_ga([], [])
qsort1_in_ga(.(T14, []), T9) → U19_ga(T14, T9, qsort14_in_a(X12))
qsort14_in_a([]) → qsort14_out_a([])
U19_ga(T14, T9, qsort14_out_a(X12)) → qsort1_out_ga(.(T14, []), T9)
qsort1_in_ga(.(T14, []), T9) → U20_ga(T14, T9, qsort14_in_a(T17))
U20_ga(T14, T9, qsort14_out_a(T17)) → U21_ga(T14, T9, qsort14_in_a(X13))
U21_ga(T14, T9, qsort14_out_a(X13)) → qsort1_out_ga(.(T14, []), T9)
U20_ga(T14, T9, qsort14_out_a(T17)) → U22_ga(T14, T9, T17, qsort14_in_a(T20))
U22_ga(T14, T9, T17, qsort14_out_a(T20)) → U23_ga(T14, T9, append23_in_ggga(T17, T14, T20, T9))
append23_in_ggga([], T33, T34, .(T33, T34)) → append23_out_ggga([], T33, T34, .(T33, T34))
append23_in_ggga(.(T45, T46), T47, T48, .(T45, T50)) → U1_ggga(T45, T46, T47, T48, T50, append23_in_ggga(T46, T47, T48, T50))
U1_ggga(T45, T46, T47, T48, T50, append23_out_ggga(T46, T47, T48, T50)) → append23_out_ggga(.(T45, T46), T47, T48, .(T45, T50))
U23_ga(T14, T9, append23_out_ggga(T17, T14, T20, T9)) → qsort1_out_ga(.(T14, []), T9)
qsort1_in_ga(.(T69, .(T67, T68)), T9) → U24_ga(T69, T67, T68, T9, le36_in_gg(T67, T69))
le36_in_gg(s(T82), s(T83)) → U2_gg(T82, T83, le36_in_gg(T82, T83))
le36_in_gg(0, s(T90)) → le36_out_gg(0, s(T90))
le36_in_gg(0, 0) → le36_out_gg(0, 0)
U2_gg(T82, T83, le36_out_gg(T82, T83)) → le36_out_gg(s(T82), s(T83))
U24_ga(T69, T67, T68, T9, le36_out_gg(T67, T69)) → qsort1_out_ga(.(T69, .(T67, T68)), T9)
U24_ga(T69, T67, T68, T9, le36_out_gg(T67, T69)) → U25_ga(T69, T67, T68, T9, split51_in_ggaa(T68, T69, X93, X94))
split51_in_ggaa([], T101, [], []) → split51_out_ggaa([], T101, [], [])
split51_in_ggaa(.(T114, T115), T116, .(T114, X167), X168) → U3_ggaa(T114, T115, T116, X167, X168, le36_in_gg(T114, T116))
U3_ggaa(T114, T115, T116, X167, X168, le36_out_gg(T114, T116)) → split51_out_ggaa(.(T114, T115), T116, .(T114, X167), X168)
U3_ggaa(T114, T115, T116, X167, X168, le36_out_gg(T114, T116)) → U4_ggaa(T114, T115, T116, X167, X168, split51_in_ggaa(T115, T116, X167, X168))
split51_in_ggaa(.(T129, T130), T131, X199, .(T129, X200)) → U5_ggaa(T129, T130, T131, X199, X200, gt67_in_gg(T129, T131))
gt67_in_gg(s(T144), s(T145)) → U7_gg(T144, T145, gt67_in_gg(T144, T145))
gt67_in_gg(s(T150), 0) → gt67_out_gg(s(T150), 0)
U7_gg(T144, T145, gt67_out_gg(T144, T145)) → gt67_out_gg(s(T144), s(T145))
U5_ggaa(T129, T130, T131, X199, X200, gt67_out_gg(T129, T131)) → split51_out_ggaa(.(T129, T130), T131, X199, .(T129, X200))
U5_ggaa(T129, T130, T131, X199, X200, gt67_out_gg(T129, T131)) → U6_ggaa(T129, T130, T131, X199, X200, split51_in_ggaa(T130, T131, X199, X200))
U6_ggaa(T129, T130, T131, X199, X200, split51_out_ggaa(T130, T131, X199, X200)) → split51_out_ggaa(.(T129, T130), T131, X199, .(T129, X200))
U4_ggaa(T114, T115, T116, X167, X168, split51_out_ggaa(T115, T116, X167, X168)) → split51_out_ggaa(.(T114, T115), T116, .(T114, X167), X168)
U25_ga(T69, T67, T68, T9, split51_out_ggaa(T68, T69, X93, X94)) → qsort1_out_ga(.(T69, .(T67, T68)), T9)
U24_ga(T69, T67, T68, T9, le36_out_gg(T67, T69)) → U26_ga(T69, T67, T68, T9, split51_in_ggaa(T68, T69, T93, T94))
U26_ga(T69, T67, T68, T9, split51_out_ggaa(T68, T69, T93, T94)) → U27_ga(T69, T67, T68, T9, qsort1_in_aa(.(T67, T93), X12))
qsort1_in_aa([], []) → qsort1_out_aa([], [])
qsort1_in_aa(.(T14, []), T9) → U19_aa(T14, T9, qsort14_in_a(X12))
U19_aa(T14, T9, qsort14_out_a(X12)) → qsort1_out_aa(.(T14, []), T9)
qsort1_in_aa(.(T14, []), T9) → U20_aa(T14, T9, qsort14_in_a(T17))
U20_aa(T14, T9, qsort14_out_a(T17)) → U21_aa(T14, T9, qsort14_in_a(X13))
U21_aa(T14, T9, qsort14_out_a(X13)) → qsort1_out_aa(.(T14, []), T9)
U20_aa(T14, T9, qsort14_out_a(T17)) → U22_aa(T14, T9, T17, qsort14_in_a(T20))
U22_aa(T14, T9, T17, qsort14_out_a(T20)) → U23_aa(T14, T9, append23_in_gaga(T17, T14, T20, T9))
append23_in_gaga([], T33, T34, .(T33, T34)) → append23_out_gaga([], T33, T34, .(T33, T34))
append23_in_gaga(.(T45, T46), T47, T48, .(T45, T50)) → U1_gaga(T45, T46, T47, T48, T50, append23_in_gaga(T46, T47, T48, T50))
U1_gaga(T45, T46, T47, T48, T50, append23_out_gaga(T46, T47, T48, T50)) → append23_out_gaga(.(T45, T46), T47, T48, .(T45, T50))
U23_aa(T14, T9, append23_out_gaga(T17, T14, T20, T9)) → qsort1_out_aa(.(T14, []), T9)
qsort1_in_aa(.(T69, .(T67, T68)), T9) → U24_aa(T69, T67, T68, T9, le36_in_aa(T67, T69))
le36_in_aa(s(T82), s(T83)) → U2_aa(T82, T83, le36_in_aa(T82, T83))
le36_in_aa(0, s(T90)) → le36_out_aa(0, s(T90))
le36_in_aa(0, 0) → le36_out_aa(0, 0)
U2_aa(T82, T83, le36_out_aa(T82, T83)) → le36_out_aa(s(T82), s(T83))
U24_aa(T69, T67, T68, T9, le36_out_aa(T67, T69)) → qsort1_out_aa(.(T69, .(T67, T68)), T9)
U24_aa(T69, T67, T68, T9, le36_out_aa(T67, T69)) → U25_aa(T69, T67, T68, T9, split51_in_aaaa(T68, T69, X93, X94))
split51_in_aaaa([], T101, [], []) → split51_out_aaaa([], T101, [], [])
split51_in_aaaa(.(T114, T115), T116, .(T114, X167), X168) → U3_aaaa(T114, T115, T116, X167, X168, le36_in_aa(T114, T116))
U3_aaaa(T114, T115, T116, X167, X168, le36_out_aa(T114, T116)) → split51_out_aaaa(.(T114, T115), T116, .(T114, X167), X168)
U3_aaaa(T114, T115, T116, X167, X168, le36_out_aa(T114, T116)) → U4_aaaa(T114, T115, T116, X167, X168, split51_in_aaaa(T115, T116, X167, X168))
split51_in_aaaa(.(T129, T130), T131, X199, .(T129, X200)) → U5_aaaa(T129, T130, T131, X199, X200, gt67_in_aa(T129, T131))
gt67_in_aa(s(T144), s(T145)) → U7_aa(T144, T145, gt67_in_aa(T144, T145))
gt67_in_aa(s(T150), 0) → gt67_out_aa(s(T150), 0)
U7_aa(T144, T145, gt67_out_aa(T144, T145)) → gt67_out_aa(s(T144), s(T145))
U5_aaaa(T129, T130, T131, X199, X200, gt67_out_aa(T129, T131)) → split51_out_aaaa(.(T129, T130), T131, X199, .(T129, X200))
U5_aaaa(T129, T130, T131, X199, X200, gt67_out_aa(T129, T131)) → U6_aaaa(T129, T130, T131, X199, X200, split51_in_agaa(T130, T131, X199, X200))
split51_in_agaa([], T101, [], []) → split51_out_agaa([], T101, [], [])
split51_in_agaa(.(T114, T115), T116, .(T114, X167), X168) → U3_agaa(T114, T115, T116, X167, X168, le36_in_ag(T114, T116))
le36_in_ag(s(T82), s(T83)) → U2_ag(T82, T83, le36_in_ag(T82, T83))
le36_in_ag(0, s(T90)) → le36_out_ag(0, s(T90))
le36_in_ag(0, 0) → le36_out_ag(0, 0)
U2_ag(T82, T83, le36_out_ag(T82, T83)) → le36_out_ag(s(T82), s(T83))
U3_agaa(T114, T115, T116, X167, X168, le36_out_ag(T114, T116)) → split51_out_agaa(.(T114, T115), T116, .(T114, X167), X168)
U3_agaa(T114, T115, T116, X167, X168, le36_out_ag(T114, T116)) → U4_agaa(T114, T115, T116, X167, X168, split51_in_agaa(T115, T116, X167, X168))
split51_in_agaa(.(T129, T130), T131, X199, .(T129, X200)) → U5_agaa(T129, T130, T131, X199, X200, gt67_in_ag(T129, T131))
gt67_in_ag(s(T144), s(T145)) → U7_ag(T144, T145, gt67_in_ag(T144, T145))
gt67_in_ag(s(T150), 0) → gt67_out_ag(s(T150), 0)
U7_ag(T144, T145, gt67_out_ag(T144, T145)) → gt67_out_ag(s(T144), s(T145))
U5_agaa(T129, T130, T131, X199, X200, gt67_out_ag(T129, T131)) → split51_out_agaa(.(T129, T130), T131, X199, .(T129, X200))
U5_agaa(T129, T130, T131, X199, X200, gt67_out_ag(T129, T131)) → U6_agaa(T129, T130, T131, X199, X200, split51_in_agaa(T130, T131, X199, X200))
U6_agaa(T129, T130, T131, X199, X200, split51_out_agaa(T130, T131, X199, X200)) → split51_out_agaa(.(T129, T130), T131, X199, .(T129, X200))
U4_agaa(T114, T115, T116, X167, X168, split51_out_agaa(T115, T116, X167, X168)) → split51_out_agaa(.(T114, T115), T116, .(T114, X167), X168)
U6_aaaa(T129, T130, T131, X199, X200, split51_out_agaa(T130, T131, X199, X200)) → split51_out_aaaa(.(T129, T130), T131, X199, .(T129, X200))
U4_aaaa(T114, T115, T116, X167, X168, split51_out_aaaa(T115, T116, X167, X168)) → split51_out_aaaa(.(T114, T115), T116, .(T114, X167), X168)
U25_aa(T69, T67, T68, T9, split51_out_aaaa(T68, T69, X93, X94)) → qsort1_out_aa(.(T69, .(T67, T68)), T9)
U24_aa(T69, T67, T68, T9, le36_out_aa(T67, T69)) → U26_aa(T69, T67, T68, T9, split51_in_aaaa(T68, T69, T93, T94))
U26_aa(T69, T67, T68, T9, split51_out_aaaa(T68, T69, T93, T94)) → U27_aa(T69, T67, T68, T9, qsort1_in_aa(.(T67, T93), X12))
qsort1_in_aa(.(T215, .(T213, T214)), T9) → U30_aa(T215, T213, T214, T9, gt67_in_aa(T213, T215))
U30_aa(T215, T213, T214, T9, gt67_out_aa(T213, T215)) → qsort1_out_aa(.(T215, .(T213, T214)), T9)
U30_aa(T215, T213, T214, T9, gt67_out_aa(T213, T215)) → U31_aa(T215, T213, T214, T9, split51_in_agaa(T214, T215, X323, X324))
U31_aa(T215, T213, T214, T9, split51_out_agaa(T214, T215, X323, X324)) → qsort1_out_aa(.(T215, .(T213, T214)), T9)
U30_aa(T215, T213, T214, T9, gt67_out_aa(T213, T215)) → U32_aa(T215, T213, T214, T9, split51_in_agaa(T214, T215, T222, T223))
U32_aa(T215, T213, T214, T9, split51_out_agaa(T214, T215, T222, T223)) → U33_aa(T215, T213, T214, T9, qsort79_in_aa(T222, X12))
qsort79_in_aa([], []) → qsort79_out_aa([], [])
qsort79_in_aa(.(T163, T164), X265) → U8_aa(T163, T164, X265, split51_in_aaaa(T164, T163, X261, X262))
U8_aa(T163, T164, X265, split51_out_aaaa(T164, T163, X261, X262)) → qsort79_out_aa(.(T163, T164), X265)
qsort79_in_aa(.(T163, T164), X265) → U9_aa(T163, T164, X265, split51_in_aaaa(T164, T163, T167, T168))
U9_aa(T163, T164, X265, split51_out_aaaa(T164, T163, T167, T168)) → U10_aa(T163, T164, X265, qsort79_in_aa(T167, X263))
U10_aa(T163, T164, X265, qsort79_out_aa(T167, X263)) → qsort79_out_aa(.(T163, T164), X265)
U9_aa(T163, T164, X265, split51_out_aaaa(T164, T163, T167, T168)) → U11_aa(T163, T164, X265, T168, qsort79_in_aa(T167, T171))
U11_aa(T163, T164, X265, T168, qsort79_out_aa(T167, T171)) → U12_aa(T163, T164, X265, qsort79_in_aa(T168, X264))
U12_aa(T163, T164, X265, qsort79_out_aa(T168, X264)) → qsort79_out_aa(.(T163, T164), X265)
U11_aa(T163, T164, X265, T168, qsort79_out_aa(T167, T171)) → U13_aa(T163, T164, X265, T171, qsort79_in_aa(T168, T172))
U13_aa(T163, T164, X265, T171, qsort79_out_aa(T168, T172)) → U14_aa(T163, T164, X265, append94_in_aaaa(T171, T163, T172, X265))
append94_in_aaaa([], T185, T186, .(T185, T186)) → append94_out_aaaa([], T185, T186, .(T185, T186))
append94_in_aaaa(.(T195, T196), T197, T198, .(T195, X295)) → U15_aaaa(T195, T196, T197, T198, X295, append94_in_aaaa(T196, T197, T198, X295))
U15_aaaa(T195, T196, T197, T198, X295, append94_out_aaaa(T196, T197, T198, X295)) → append94_out_aaaa(.(T195, T196), T197, T198, .(T195, X295))
U14_aa(T163, T164, X265, append94_out_aaaa(T171, T163, T172, X265)) → qsort79_out_aa(.(T163, T164), X265)
U33_aa(T215, T213, T214, T9, qsort79_out_aa(T222, X12)) → qsort1_out_aa(.(T215, .(T213, T214)), T9)
U32_aa(T215, T213, T214, T9, split51_out_agaa(T214, T215, T222, T223)) → U34_aa(T215, T213, T214, T9, T223, qsort79_in_aa(T222, T226))
U34_aa(T215, T213, T214, T9, T223, qsort79_out_aa(T222, T226)) → U35_aa(T215, T213, T214, T9, p78_in_aaaga(.(T213, T223), X13, T226, T215, T9))
p78_in_aaaga(T94, X13, T155, T69, T9) → U16_aaaga(T94, X13, T155, T69, T9, qsort79_in_aa(T94, X13))
U16_aaaga(T94, X13, T155, T69, T9, qsort79_out_aa(T94, X13)) → p78_out_aaaga(T94, X13, T155, T69, T9)
p78_in_aaaga(T94, T158, T155, T69, T9) → U17_aaaga(T94, T158, T155, T69, T9, qsort79_in_aa(T94, T158))
U17_aaaga(T94, T158, T155, T69, T9, qsort79_out_aa(T94, T158)) → U18_aaaga(T94, T158, T155, T69, T9, append23_in_agaa(T155, T69, T158, T9))
append23_in_agaa([], T33, T34, .(T33, T34)) → append23_out_agaa([], T33, T34, .(T33, T34))
append23_in_agaa(.(T45, T46), T47, T48, .(T45, T50)) → U1_agaa(T45, T46, T47, T48, T50, append23_in_agaa(T46, T47, T48, T50))
U1_agaa(T45, T46, T47, T48, T50, append23_out_agaa(T46, T47, T48, T50)) → append23_out_agaa(.(T45, T46), T47, T48, .(T45, T50))
U18_aaaga(T94, T158, T155, T69, T9, append23_out_agaa(T155, T69, T158, T9)) → p78_out_aaaga(T94, T158, T155, T69, T9)
U35_aa(T215, T213, T214, T9, p78_out_aaaga(.(T213, T223), X13, T226, T215, T9)) → qsort1_out_aa(.(T215, .(T213, T214)), T9)
U27_aa(T69, T67, T68, T9, qsort1_out_aa(.(T67, T93), X12)) → qsort1_out_aa(.(T69, .(T67, T68)), T9)
U26_aa(T69, T67, T68, T9, split51_out_aaaa(T68, T69, T93, T94)) → U28_aa(T69, T67, T68, T9, T94, qsort1_in_aa(.(T67, T93), T155))
U28_aa(T69, T67, T68, T9, T94, qsort1_out_aa(.(T67, T93), T155)) → U29_aa(T69, T67, T68, T9, p78_in_aaaaa(T94, X13, T155, T69, T9))
p78_in_aaaaa(T94, X13, T155, T69, T9) → U16_aaaaa(T94, X13, T155, T69, T9, qsort79_in_aa(T94, X13))
U16_aaaaa(T94, X13, T155, T69, T9, qsort79_out_aa(T94, X13)) → p78_out_aaaaa(T94, X13, T155, T69, T9)
p78_in_aaaaa(T94, T158, T155, T69, T9) → U17_aaaaa(T94, T158, T155, T69, T9, qsort79_in_aa(T94, T158))
U17_aaaaa(T94, T158, T155, T69, T9, qsort79_out_aa(T94, T158)) → U18_aaaaa(T94, T158, T155, T69, T9, append23_in_aaaa(T155, T69, T158, T9))
append23_in_aaaa([], T33, T34, .(T33, T34)) → append23_out_aaaa([], T33, T34, .(T33, T34))
append23_in_aaaa(.(T45, T46), T47, T48, .(T45, T50)) → U1_aaaa(T45, T46, T47, T48, T50, append23_in_aaaa(T46, T47, T48, T50))
U1_aaaa(T45, T46, T47, T48, T50, append23_out_aaaa(T46, T47, T48, T50)) → append23_out_aaaa(.(T45, T46), T47, T48, .(T45, T50))
U18_aaaaa(T94, T158, T155, T69, T9, append23_out_aaaa(T155, T69, T158, T9)) → p78_out_aaaaa(T94, T158, T155, T69, T9)
U29_aa(T69, T67, T68, T9, p78_out_aaaaa(T94, X13, T155, T69, T9)) → qsort1_out_aa(.(T69, .(T67, T68)), T9)
U27_ga(T69, T67, T68, T9, qsort1_out_aa(.(T67, T93), X12)) → qsort1_out_ga(.(T69, .(T67, T68)), T9)
U26_ga(T69, T67, T68, T9, split51_out_ggaa(T68, T69, T93, T94)) → U28_ga(T69, T67, T68, T9, T94, qsort1_in_aa(.(T67, T93), T155))
U28_ga(T69, T67, T68, T9, T94, qsort1_out_aa(.(T67, T93), T155)) → U29_ga(T69, T67, T68, T9, p78_in_aaaga(T94, X13, T155, T69, T9))
U29_ga(T69, T67, T68, T9, p78_out_aaaga(T94, X13, T155, T69, T9)) → qsort1_out_ga(.(T69, .(T67, T68)), T9)
qsort1_in_ga(.(T215, .(T213, T214)), T9) → U30_ga(T215, T213, T214, T9, gt67_in_gg(T213, T215))
U30_ga(T215, T213, T214, T9, gt67_out_gg(T213, T215)) → qsort1_out_ga(.(T215, .(T213, T214)), T9)
U30_ga(T215, T213, T214, T9, gt67_out_gg(T213, T215)) → U31_ga(T215, T213, T214, T9, split51_in_ggaa(T214, T215, X323, X324))
U31_ga(T215, T213, T214, T9, split51_out_ggaa(T214, T215, X323, X324)) → qsort1_out_ga(.(T215, .(T213, T214)), T9)
U30_ga(T215, T213, T214, T9, gt67_out_gg(T213, T215)) → U32_ga(T215, T213, T214, T9, split51_in_ggaa(T214, T215, T222, T223))
U32_ga(T215, T213, T214, T9, split51_out_ggaa(T214, T215, T222, T223)) → U33_ga(T215, T213, T214, T9, qsort79_in_aa(T222, X12))
U33_ga(T215, T213, T214, T9, qsort79_out_aa(T222, X12)) → qsort1_out_ga(.(T215, .(T213, T214)), T9)
U32_ga(T215, T213, T214, T9, split51_out_ggaa(T214, T215, T222, T223)) → U34_ga(T215, T213, T214, T9, T223, qsort79_in_aa(T222, T226))
U34_ga(T215, T213, T214, T9, T223, qsort79_out_aa(T222, T226)) → U35_ga(T215, T213, T214, T9, p78_in_aaaga(.(T213, T223), X13, T226, T215, T9))
U35_ga(T215, T213, T214, T9, p78_out_aaaga(.(T213, T223), X13, T226, T215, T9)) → qsort1_out_ga(.(T215, .(T213, T214)), T9)
LE36_IN_AG(s(T82), s(T83)) → LE36_IN_AG(T82, T83)
LE36_IN_AG(s(T83)) → LE36_IN_AG(T83)
From the DPs we obtained the following set of size-change graphs:
U3_AGAA(T114, T115, T116, X167, X168, le36_out_ag(T114, T116)) → SPLIT51_IN_AGAA(T115, T116, X167, X168)
SPLIT51_IN_AGAA(.(T114, T115), T116, .(T114, X167), X168) → U3_AGAA(T114, T115, T116, X167, X168, le36_in_ag(T114, T116))
SPLIT51_IN_AGAA(.(T129, T130), T131, X199, .(T129, X200)) → U5_AGAA(T129, T130, T131, X199, X200, gt67_in_ag(T129, T131))
U5_AGAA(T129, T130, T131, X199, X200, gt67_out_ag(T129, T131)) → SPLIT51_IN_AGAA(T130, T131, X199, X200)
qsort1_in_ga([], []) → qsort1_out_ga([], [])
qsort1_in_ga(.(T14, []), T9) → U19_ga(T14, T9, qsort14_in_a(X12))
qsort14_in_a([]) → qsort14_out_a([])
U19_ga(T14, T9, qsort14_out_a(X12)) → qsort1_out_ga(.(T14, []), T9)
qsort1_in_ga(.(T14, []), T9) → U20_ga(T14, T9, qsort14_in_a(T17))
U20_ga(T14, T9, qsort14_out_a(T17)) → U21_ga(T14, T9, qsort14_in_a(X13))
U21_ga(T14, T9, qsort14_out_a(X13)) → qsort1_out_ga(.(T14, []), T9)
U20_ga(T14, T9, qsort14_out_a(T17)) → U22_ga(T14, T9, T17, qsort14_in_a(T20))
U22_ga(T14, T9, T17, qsort14_out_a(T20)) → U23_ga(T14, T9, append23_in_ggga(T17, T14, T20, T9))
append23_in_ggga([], T33, T34, .(T33, T34)) → append23_out_ggga([], T33, T34, .(T33, T34))
append23_in_ggga(.(T45, T46), T47, T48, .(T45, T50)) → U1_ggga(T45, T46, T47, T48, T50, append23_in_ggga(T46, T47, T48, T50))
U1_ggga(T45, T46, T47, T48, T50, append23_out_ggga(T46, T47, T48, T50)) → append23_out_ggga(.(T45, T46), T47, T48, .(T45, T50))
U23_ga(T14, T9, append23_out_ggga(T17, T14, T20, T9)) → qsort1_out_ga(.(T14, []), T9)
qsort1_in_ga(.(T69, .(T67, T68)), T9) → U24_ga(T69, T67, T68, T9, le36_in_gg(T67, T69))
le36_in_gg(s(T82), s(T83)) → U2_gg(T82, T83, le36_in_gg(T82, T83))
le36_in_gg(0, s(T90)) → le36_out_gg(0, s(T90))
le36_in_gg(0, 0) → le36_out_gg(0, 0)
U2_gg(T82, T83, le36_out_gg(T82, T83)) → le36_out_gg(s(T82), s(T83))
U24_ga(T69, T67, T68, T9, le36_out_gg(T67, T69)) → qsort1_out_ga(.(T69, .(T67, T68)), T9)
U24_ga(T69, T67, T68, T9, le36_out_gg(T67, T69)) → U25_ga(T69, T67, T68, T9, split51_in_ggaa(T68, T69, X93, X94))
split51_in_ggaa([], T101, [], []) → split51_out_ggaa([], T101, [], [])
split51_in_ggaa(.(T114, T115), T116, .(T114, X167), X168) → U3_ggaa(T114, T115, T116, X167, X168, le36_in_gg(T114, T116))
U3_ggaa(T114, T115, T116, X167, X168, le36_out_gg(T114, T116)) → split51_out_ggaa(.(T114, T115), T116, .(T114, X167), X168)
U3_ggaa(T114, T115, T116, X167, X168, le36_out_gg(T114, T116)) → U4_ggaa(T114, T115, T116, X167, X168, split51_in_ggaa(T115, T116, X167, X168))
split51_in_ggaa(.(T129, T130), T131, X199, .(T129, X200)) → U5_ggaa(T129, T130, T131, X199, X200, gt67_in_gg(T129, T131))
gt67_in_gg(s(T144), s(T145)) → U7_gg(T144, T145, gt67_in_gg(T144, T145))
gt67_in_gg(s(T150), 0) → gt67_out_gg(s(T150), 0)
U7_gg(T144, T145, gt67_out_gg(T144, T145)) → gt67_out_gg(s(T144), s(T145))
U5_ggaa(T129, T130, T131, X199, X200, gt67_out_gg(T129, T131)) → split51_out_ggaa(.(T129, T130), T131, X199, .(T129, X200))
U5_ggaa(T129, T130, T131, X199, X200, gt67_out_gg(T129, T131)) → U6_ggaa(T129, T130, T131, X199, X200, split51_in_ggaa(T130, T131, X199, X200))
U6_ggaa(T129, T130, T131, X199, X200, split51_out_ggaa(T130, T131, X199, X200)) → split51_out_ggaa(.(T129, T130), T131, X199, .(T129, X200))
U4_ggaa(T114, T115, T116, X167, X168, split51_out_ggaa(T115, T116, X167, X168)) → split51_out_ggaa(.(T114, T115), T116, .(T114, X167), X168)
U25_ga(T69, T67, T68, T9, split51_out_ggaa(T68, T69, X93, X94)) → qsort1_out_ga(.(T69, .(T67, T68)), T9)
U24_ga(T69, T67, T68, T9, le36_out_gg(T67, T69)) → U26_ga(T69, T67, T68, T9, split51_in_ggaa(T68, T69, T93, T94))
U26_ga(T69, T67, T68, T9, split51_out_ggaa(T68, T69, T93, T94)) → U27_ga(T69, T67, T68, T9, qsort1_in_aa(.(T67, T93), X12))
qsort1_in_aa([], []) → qsort1_out_aa([], [])
qsort1_in_aa(.(T14, []), T9) → U19_aa(T14, T9, qsort14_in_a(X12))
U19_aa(T14, T9, qsort14_out_a(X12)) → qsort1_out_aa(.(T14, []), T9)
qsort1_in_aa(.(T14, []), T9) → U20_aa(T14, T9, qsort14_in_a(T17))
U20_aa(T14, T9, qsort14_out_a(T17)) → U21_aa(T14, T9, qsort14_in_a(X13))
U21_aa(T14, T9, qsort14_out_a(X13)) → qsort1_out_aa(.(T14, []), T9)
U20_aa(T14, T9, qsort14_out_a(T17)) → U22_aa(T14, T9, T17, qsort14_in_a(T20))
U22_aa(T14, T9, T17, qsort14_out_a(T20)) → U23_aa(T14, T9, append23_in_gaga(T17, T14, T20, T9))
append23_in_gaga([], T33, T34, .(T33, T34)) → append23_out_gaga([], T33, T34, .(T33, T34))
append23_in_gaga(.(T45, T46), T47, T48, .(T45, T50)) → U1_gaga(T45, T46, T47, T48, T50, append23_in_gaga(T46, T47, T48, T50))
U1_gaga(T45, T46, T47, T48, T50, append23_out_gaga(T46, T47, T48, T50)) → append23_out_gaga(.(T45, T46), T47, T48, .(T45, T50))
U23_aa(T14, T9, append23_out_gaga(T17, T14, T20, T9)) → qsort1_out_aa(.(T14, []), T9)
qsort1_in_aa(.(T69, .(T67, T68)), T9) → U24_aa(T69, T67, T68, T9, le36_in_aa(T67, T69))
le36_in_aa(s(T82), s(T83)) → U2_aa(T82, T83, le36_in_aa(T82, T83))
le36_in_aa(0, s(T90)) → le36_out_aa(0, s(T90))
le36_in_aa(0, 0) → le36_out_aa(0, 0)
U2_aa(T82, T83, le36_out_aa(T82, T83)) → le36_out_aa(s(T82), s(T83))
U24_aa(T69, T67, T68, T9, le36_out_aa(T67, T69)) → qsort1_out_aa(.(T69, .(T67, T68)), T9)
U24_aa(T69, T67, T68, T9, le36_out_aa(T67, T69)) → U25_aa(T69, T67, T68, T9, split51_in_aaaa(T68, T69, X93, X94))
split51_in_aaaa([], T101, [], []) → split51_out_aaaa([], T101, [], [])
split51_in_aaaa(.(T114, T115), T116, .(T114, X167), X168) → U3_aaaa(T114, T115, T116, X167, X168, le36_in_aa(T114, T116))
U3_aaaa(T114, T115, T116, X167, X168, le36_out_aa(T114, T116)) → split51_out_aaaa(.(T114, T115), T116, .(T114, X167), X168)
U3_aaaa(T114, T115, T116, X167, X168, le36_out_aa(T114, T116)) → U4_aaaa(T114, T115, T116, X167, X168, split51_in_aaaa(T115, T116, X167, X168))
split51_in_aaaa(.(T129, T130), T131, X199, .(T129, X200)) → U5_aaaa(T129, T130, T131, X199, X200, gt67_in_aa(T129, T131))
gt67_in_aa(s(T144), s(T145)) → U7_aa(T144, T145, gt67_in_aa(T144, T145))
gt67_in_aa(s(T150), 0) → gt67_out_aa(s(T150), 0)
U7_aa(T144, T145, gt67_out_aa(T144, T145)) → gt67_out_aa(s(T144), s(T145))
U5_aaaa(T129, T130, T131, X199, X200, gt67_out_aa(T129, T131)) → split51_out_aaaa(.(T129, T130), T131, X199, .(T129, X200))
U5_aaaa(T129, T130, T131, X199, X200, gt67_out_aa(T129, T131)) → U6_aaaa(T129, T130, T131, X199, X200, split51_in_agaa(T130, T131, X199, X200))
split51_in_agaa([], T101, [], []) → split51_out_agaa([], T101, [], [])
split51_in_agaa(.(T114, T115), T116, .(T114, X167), X168) → U3_agaa(T114, T115, T116, X167, X168, le36_in_ag(T114, T116))
le36_in_ag(s(T82), s(T83)) → U2_ag(T82, T83, le36_in_ag(T82, T83))
le36_in_ag(0, s(T90)) → le36_out_ag(0, s(T90))
le36_in_ag(0, 0) → le36_out_ag(0, 0)
U2_ag(T82, T83, le36_out_ag(T82, T83)) → le36_out_ag(s(T82), s(T83))
U3_agaa(T114, T115, T116, X167, X168, le36_out_ag(T114, T116)) → split51_out_agaa(.(T114, T115), T116, .(T114, X167), X168)
U3_agaa(T114, T115, T116, X167, X168, le36_out_ag(T114, T116)) → U4_agaa(T114, T115, T116, X167, X168, split51_in_agaa(T115, T116, X167, X168))
split51_in_agaa(.(T129, T130), T131, X199, .(T129, X200)) → U5_agaa(T129, T130, T131, X199, X200, gt67_in_ag(T129, T131))
gt67_in_ag(s(T144), s(T145)) → U7_ag(T144, T145, gt67_in_ag(T144, T145))
gt67_in_ag(s(T150), 0) → gt67_out_ag(s(T150), 0)
U7_ag(T144, T145, gt67_out_ag(T144, T145)) → gt67_out_ag(s(T144), s(T145))
U5_agaa(T129, T130, T131, X199, X200, gt67_out_ag(T129, T131)) → split51_out_agaa(.(T129, T130), T131, X199, .(T129, X200))
U5_agaa(T129, T130, T131, X199, X200, gt67_out_ag(T129, T131)) → U6_agaa(T129, T130, T131, X199, X200, split51_in_agaa(T130, T131, X199, X200))
U6_agaa(T129, T130, T131, X199, X200, split51_out_agaa(T130, T131, X199, X200)) → split51_out_agaa(.(T129, T130), T131, X199, .(T129, X200))
U4_agaa(T114, T115, T116, X167, X168, split51_out_agaa(T115, T116, X167, X168)) → split51_out_agaa(.(T114, T115), T116, .(T114, X167), X168)
U6_aaaa(T129, T130, T131, X199, X200, split51_out_agaa(T130, T131, X199, X200)) → split51_out_aaaa(.(T129, T130), T131, X199, .(T129, X200))
U4_aaaa(T114, T115, T116, X167, X168, split51_out_aaaa(T115, T116, X167, X168)) → split51_out_aaaa(.(T114, T115), T116, .(T114, X167), X168)
U25_aa(T69, T67, T68, T9, split51_out_aaaa(T68, T69, X93, X94)) → qsort1_out_aa(.(T69, .(T67, T68)), T9)
U24_aa(T69, T67, T68, T9, le36_out_aa(T67, T69)) → U26_aa(T69, T67, T68, T9, split51_in_aaaa(T68, T69, T93, T94))
U26_aa(T69, T67, T68, T9, split51_out_aaaa(T68, T69, T93, T94)) → U27_aa(T69, T67, T68, T9, qsort1_in_aa(.(T67, T93), X12))
qsort1_in_aa(.(T215, .(T213, T214)), T9) → U30_aa(T215, T213, T214, T9, gt67_in_aa(T213, T215))
U30_aa(T215, T213, T214, T9, gt67_out_aa(T213, T215)) → qsort1_out_aa(.(T215, .(T213, T214)), T9)
U30_aa(T215, T213, T214, T9, gt67_out_aa(T213, T215)) → U31_aa(T215, T213, T214, T9, split51_in_agaa(T214, T215, X323, X324))
U31_aa(T215, T213, T214, T9, split51_out_agaa(T214, T215, X323, X324)) → qsort1_out_aa(.(T215, .(T213, T214)), T9)
U30_aa(T215, T213, T214, T9, gt67_out_aa(T213, T215)) → U32_aa(T215, T213, T214, T9, split51_in_agaa(T214, T215, T222, T223))
U32_aa(T215, T213, T214, T9, split51_out_agaa(T214, T215, T222, T223)) → U33_aa(T215, T213, T214, T9, qsort79_in_aa(T222, X12))
qsort79_in_aa([], []) → qsort79_out_aa([], [])
qsort79_in_aa(.(T163, T164), X265) → U8_aa(T163, T164, X265, split51_in_aaaa(T164, T163, X261, X262))
U8_aa(T163, T164, X265, split51_out_aaaa(T164, T163, X261, X262)) → qsort79_out_aa(.(T163, T164), X265)
qsort79_in_aa(.(T163, T164), X265) → U9_aa(T163, T164, X265, split51_in_aaaa(T164, T163, T167, T168))
U9_aa(T163, T164, X265, split51_out_aaaa(T164, T163, T167, T168)) → U10_aa(T163, T164, X265, qsort79_in_aa(T167, X263))
U10_aa(T163, T164, X265, qsort79_out_aa(T167, X263)) → qsort79_out_aa(.(T163, T164), X265)
U9_aa(T163, T164, X265, split51_out_aaaa(T164, T163, T167, T168)) → U11_aa(T163, T164, X265, T168, qsort79_in_aa(T167, T171))
U11_aa(T163, T164, X265, T168, qsort79_out_aa(T167, T171)) → U12_aa(T163, T164, X265, qsort79_in_aa(T168, X264))
U12_aa(T163, T164, X265, qsort79_out_aa(T168, X264)) → qsort79_out_aa(.(T163, T164), X265)
U11_aa(T163, T164, X265, T168, qsort79_out_aa(T167, T171)) → U13_aa(T163, T164, X265, T171, qsort79_in_aa(T168, T172))
U13_aa(T163, T164, X265, T171, qsort79_out_aa(T168, T172)) → U14_aa(T163, T164, X265, append94_in_aaaa(T171, T163, T172, X265))
append94_in_aaaa([], T185, T186, .(T185, T186)) → append94_out_aaaa([], T185, T186, .(T185, T186))
append94_in_aaaa(.(T195, T196), T197, T198, .(T195, X295)) → U15_aaaa(T195, T196, T197, T198, X295, append94_in_aaaa(T196, T197, T198, X295))
U15_aaaa(T195, T196, T197, T198, X295, append94_out_aaaa(T196, T197, T198, X295)) → append94_out_aaaa(.(T195, T196), T197, T198, .(T195, X295))
U14_aa(T163, T164, X265, append94_out_aaaa(T171, T163, T172, X265)) → qsort79_out_aa(.(T163, T164), X265)
U33_aa(T215, T213, T214, T9, qsort79_out_aa(T222, X12)) → qsort1_out_aa(.(T215, .(T213, T214)), T9)
U32_aa(T215, T213, T214, T9, split51_out_agaa(T214, T215, T222, T223)) → U34_aa(T215, T213, T214, T9, T223, qsort79_in_aa(T222, T226))
U34_aa(T215, T213, T214, T9, T223, qsort79_out_aa(T222, T226)) → U35_aa(T215, T213, T214, T9, p78_in_aaaga(.(T213, T223), X13, T226, T215, T9))
p78_in_aaaga(T94, X13, T155, T69, T9) → U16_aaaga(T94, X13, T155, T69, T9, qsort79_in_aa(T94, X13))
U16_aaaga(T94, X13, T155, T69, T9, qsort79_out_aa(T94, X13)) → p78_out_aaaga(T94, X13, T155, T69, T9)
p78_in_aaaga(T94, T158, T155, T69, T9) → U17_aaaga(T94, T158, T155, T69, T9, qsort79_in_aa(T94, T158))
U17_aaaga(T94, T158, T155, T69, T9, qsort79_out_aa(T94, T158)) → U18_aaaga(T94, T158, T155, T69, T9, append23_in_agaa(T155, T69, T158, T9))
append23_in_agaa([], T33, T34, .(T33, T34)) → append23_out_agaa([], T33, T34, .(T33, T34))
append23_in_agaa(.(T45, T46), T47, T48, .(T45, T50)) → U1_agaa(T45, T46, T47, T48, T50, append23_in_agaa(T46, T47, T48, T50))
U1_agaa(T45, T46, T47, T48, T50, append23_out_agaa(T46, T47, T48, T50)) → append23_out_agaa(.(T45, T46), T47, T48, .(T45, T50))
U18_aaaga(T94, T158, T155, T69, T9, append23_out_agaa(T155, T69, T158, T9)) → p78_out_aaaga(T94, T158, T155, T69, T9)
U35_aa(T215, T213, T214, T9, p78_out_aaaga(.(T213, T223), X13, T226, T215, T9)) → qsort1_out_aa(.(T215, .(T213, T214)), T9)
U27_aa(T69, T67, T68, T9, qsort1_out_aa(.(T67, T93), X12)) → qsort1_out_aa(.(T69, .(T67, T68)), T9)
U26_aa(T69, T67, T68, T9, split51_out_aaaa(T68, T69, T93, T94)) → U28_aa(T69, T67, T68, T9, T94, qsort1_in_aa(.(T67, T93), T155))
U28_aa(T69, T67, T68, T9, T94, qsort1_out_aa(.(T67, T93), T155)) → U29_aa(T69, T67, T68, T9, p78_in_aaaaa(T94, X13, T155, T69, T9))
p78_in_aaaaa(T94, X13, T155, T69, T9) → U16_aaaaa(T94, X13, T155, T69, T9, qsort79_in_aa(T94, X13))
U16_aaaaa(T94, X13, T155, T69, T9, qsort79_out_aa(T94, X13)) → p78_out_aaaaa(T94, X13, T155, T69, T9)
p78_in_aaaaa(T94, T158, T155, T69, T9) → U17_aaaaa(T94, T158, T155, T69, T9, qsort79_in_aa(T94, T158))
U17_aaaaa(T94, T158, T155, T69, T9, qsort79_out_aa(T94, T158)) → U18_aaaaa(T94, T158, T155, T69, T9, append23_in_aaaa(T155, T69, T158, T9))
append23_in_aaaa([], T33, T34, .(T33, T34)) → append23_out_aaaa([], T33, T34, .(T33, T34))
append23_in_aaaa(.(T45, T46), T47, T48, .(T45, T50)) → U1_aaaa(T45, T46, T47, T48, T50, append23_in_aaaa(T46, T47, T48, T50))
U1_aaaa(T45, T46, T47, T48, T50, append23_out_aaaa(T46, T47, T48, T50)) → append23_out_aaaa(.(T45, T46), T47, T48, .(T45, T50))
U18_aaaaa(T94, T158, T155, T69, T9, append23_out_aaaa(T155, T69, T158, T9)) → p78_out_aaaaa(T94, T158, T155, T69, T9)
U29_aa(T69, T67, T68, T9, p78_out_aaaaa(T94, X13, T155, T69, T9)) → qsort1_out_aa(.(T69, .(T67, T68)), T9)
U27_ga(T69, T67, T68, T9, qsort1_out_aa(.(T67, T93), X12)) → qsort1_out_ga(.(T69, .(T67, T68)), T9)
U26_ga(T69, T67, T68, T9, split51_out_ggaa(T68, T69, T93, T94)) → U28_ga(T69, T67, T68, T9, T94, qsort1_in_aa(.(T67, T93), T155))
U28_ga(T69, T67, T68, T9, T94, qsort1_out_aa(.(T67, T93), T155)) → U29_ga(T69, T67, T68, T9, p78_in_aaaga(T94, X13, T155, T69, T9))
U29_ga(T69, T67, T68, T9, p78_out_aaaga(T94, X13, T155, T69, T9)) → qsort1_out_ga(.(T69, .(T67, T68)), T9)
qsort1_in_ga(.(T215, .(T213, T214)), T9) → U30_ga(T215, T213, T214, T9, gt67_in_gg(T213, T215))
U30_ga(T215, T213, T214, T9, gt67_out_gg(T213, T215)) → qsort1_out_ga(.(T215, .(T213, T214)), T9)
U30_ga(T215, T213, T214, T9, gt67_out_gg(T213, T215)) → U31_ga(T215, T213, T214, T9, split51_in_ggaa(T214, T215, X323, X324))
U31_ga(T215, T213, T214, T9, split51_out_ggaa(T214, T215, X323, X324)) → qsort1_out_ga(.(T215, .(T213, T214)), T9)
U30_ga(T215, T213, T214, T9, gt67_out_gg(T213, T215)) → U32_ga(T215, T213, T214, T9, split51_in_ggaa(T214, T215, T222, T223))
U32_ga(T215, T213, T214, T9, split51_out_ggaa(T214, T215, T222, T223)) → U33_ga(T215, T213, T214, T9, qsort79_in_aa(T222, X12))
U33_ga(T215, T213, T214, T9, qsort79_out_aa(T222, X12)) → qsort1_out_ga(.(T215, .(T213, T214)), T9)
U32_ga(T215, T213, T214, T9, split51_out_ggaa(T214, T215, T222, T223)) → U34_ga(T215, T213, T214, T9, T223, qsort79_in_aa(T222, T226))
U34_ga(T215, T213, T214, T9, T223, qsort79_out_aa(T222, T226)) → U35_ga(T215, T213, T214, T9, p78_in_aaaga(.(T213, T223), X13, T226, T215, T9))
U35_ga(T215, T213, T214, T9, p78_out_aaaga(.(T213, T223), X13, T226, T215, T9)) → qsort1_out_ga(.(T215, .(T213, T214)), T9)
U3_AGAA(T114, T115, T116, X167, X168, le36_out_ag(T114, T116)) → SPLIT51_IN_AGAA(T115, T116, X167, X168)
SPLIT51_IN_AGAA(.(T114, T115), T116, .(T114, X167), X168) → U3_AGAA(T114, T115, T116, X167, X168, le36_in_ag(T114, T116))
SPLIT51_IN_AGAA(.(T129, T130), T131, X199, .(T129, X200)) → U5_AGAA(T129, T130, T131, X199, X200, gt67_in_ag(T129, T131))
U5_AGAA(T129, T130, T131, X199, X200, gt67_out_ag(T129, T131)) → SPLIT51_IN_AGAA(T130, T131, X199, X200)
le36_in_ag(s(T82), s(T83)) → U2_ag(T82, T83, le36_in_ag(T82, T83))
le36_in_ag(0, s(T90)) → le36_out_ag(0, s(T90))
le36_in_ag(0, 0) → le36_out_ag(0, 0)
gt67_in_ag(s(T144), s(T145)) → U7_ag(T144, T145, gt67_in_ag(T144, T145))
gt67_in_ag(s(T150), 0) → gt67_out_ag(s(T150), 0)
U2_ag(T82, T83, le36_out_ag(T82, T83)) → le36_out_ag(s(T82), s(T83))
U7_ag(T144, T145, gt67_out_ag(T144, T145)) → gt67_out_ag(s(T144), s(T145))
U3_AGAA(T116, le36_out_ag(T114)) → SPLIT51_IN_AGAA(T116)
SPLIT51_IN_AGAA(T116) → U3_AGAA(T116, le36_in_ag(T116))
SPLIT51_IN_AGAA(T131) → U5_AGAA(T131, gt67_in_ag(T131))
U5_AGAA(T131, gt67_out_ag) → SPLIT51_IN_AGAA(T131)
le36_in_ag(s(T83)) → U2_ag(le36_in_ag(T83))
le36_in_ag(s(T90)) → le36_out_ag(0)
le36_in_ag(0) → le36_out_ag(0)
gt67_in_ag(s(T145)) → U7_ag(gt67_in_ag(T145))
gt67_in_ag(0) → gt67_out_ag
U2_ag(le36_out_ag(T82)) → le36_out_ag(s(T82))
U7_ag(gt67_out_ag) → gt67_out_ag
le36_in_ag(x0)
gt67_in_ag(x0)
U2_ag(x0)
U7_ag(x0)
SPLIT51_IN_AGAA(s(x0)) → U3_AGAA(s(x0), U2_ag(le36_in_ag(x0)))
SPLIT51_IN_AGAA(s(x0)) → U3_AGAA(s(x0), le36_out_ag(0))
SPLIT51_IN_AGAA(0) → U3_AGAA(0, le36_out_ag(0))
U3_AGAA(T116, le36_out_ag(T114)) → SPLIT51_IN_AGAA(T116)
SPLIT51_IN_AGAA(T131) → U5_AGAA(T131, gt67_in_ag(T131))
U5_AGAA(T131, gt67_out_ag) → SPLIT51_IN_AGAA(T131)
SPLIT51_IN_AGAA(s(x0)) → U3_AGAA(s(x0), U2_ag(le36_in_ag(x0)))
SPLIT51_IN_AGAA(s(x0)) → U3_AGAA(s(x0), le36_out_ag(0))
SPLIT51_IN_AGAA(0) → U3_AGAA(0, le36_out_ag(0))
le36_in_ag(s(T83)) → U2_ag(le36_in_ag(T83))
le36_in_ag(s(T90)) → le36_out_ag(0)
le36_in_ag(0) → le36_out_ag(0)
gt67_in_ag(s(T145)) → U7_ag(gt67_in_ag(T145))
gt67_in_ag(0) → gt67_out_ag
U2_ag(le36_out_ag(T82)) → le36_out_ag(s(T82))
U7_ag(gt67_out_ag) → gt67_out_ag
le36_in_ag(x0)
gt67_in_ag(x0)
U2_ag(x0)
U7_ag(x0)
SPLIT51_IN_AGAA(s(x0)) → U5_AGAA(s(x0), U7_ag(gt67_in_ag(x0)))
SPLIT51_IN_AGAA(0) → U5_AGAA(0, gt67_out_ag)
U3_AGAA(T116, le36_out_ag(T114)) → SPLIT51_IN_AGAA(T116)
U5_AGAA(T131, gt67_out_ag) → SPLIT51_IN_AGAA(T131)
SPLIT51_IN_AGAA(s(x0)) → U3_AGAA(s(x0), U2_ag(le36_in_ag(x0)))
SPLIT51_IN_AGAA(s(x0)) → U3_AGAA(s(x0), le36_out_ag(0))
SPLIT51_IN_AGAA(0) → U3_AGAA(0, le36_out_ag(0))
SPLIT51_IN_AGAA(s(x0)) → U5_AGAA(s(x0), U7_ag(gt67_in_ag(x0)))
SPLIT51_IN_AGAA(0) → U5_AGAA(0, gt67_out_ag)
le36_in_ag(s(T83)) → U2_ag(le36_in_ag(T83))
le36_in_ag(s(T90)) → le36_out_ag(0)
le36_in_ag(0) → le36_out_ag(0)
gt67_in_ag(s(T145)) → U7_ag(gt67_in_ag(T145))
gt67_in_ag(0) → gt67_out_ag
U2_ag(le36_out_ag(T82)) → le36_out_ag(s(T82))
U7_ag(gt67_out_ag) → gt67_out_ag
le36_in_ag(x0)
gt67_in_ag(x0)
U2_ag(x0)
U7_ag(x0)
U3_AGAA(s(z0), le36_out_ag(x1)) → SPLIT51_IN_AGAA(s(z0))
U3_AGAA(s(z0), le36_out_ag(0)) → SPLIT51_IN_AGAA(s(z0))
U3_AGAA(0, le36_out_ag(0)) → SPLIT51_IN_AGAA(0)
U5_AGAA(T131, gt67_out_ag) → SPLIT51_IN_AGAA(T131)
SPLIT51_IN_AGAA(s(x0)) → U3_AGAA(s(x0), U2_ag(le36_in_ag(x0)))
SPLIT51_IN_AGAA(s(x0)) → U3_AGAA(s(x0), le36_out_ag(0))
SPLIT51_IN_AGAA(0) → U3_AGAA(0, le36_out_ag(0))
SPLIT51_IN_AGAA(s(x0)) → U5_AGAA(s(x0), U7_ag(gt67_in_ag(x0)))
SPLIT51_IN_AGAA(0) → U5_AGAA(0, gt67_out_ag)
U3_AGAA(s(z0), le36_out_ag(x1)) → SPLIT51_IN_AGAA(s(z0))
U3_AGAA(s(z0), le36_out_ag(0)) → SPLIT51_IN_AGAA(s(z0))
U3_AGAA(0, le36_out_ag(0)) → SPLIT51_IN_AGAA(0)
le36_in_ag(s(T83)) → U2_ag(le36_in_ag(T83))
le36_in_ag(s(T90)) → le36_out_ag(0)
le36_in_ag(0) → le36_out_ag(0)
gt67_in_ag(s(T145)) → U7_ag(gt67_in_ag(T145))
gt67_in_ag(0) → gt67_out_ag
U2_ag(le36_out_ag(T82)) → le36_out_ag(s(T82))
U7_ag(gt67_out_ag) → gt67_out_ag
le36_in_ag(x0)
gt67_in_ag(x0)
U2_ag(x0)
U7_ag(x0)
U5_AGAA(s(z0), gt67_out_ag) → SPLIT51_IN_AGAA(s(z0))
U5_AGAA(0, gt67_out_ag) → SPLIT51_IN_AGAA(0)
SPLIT51_IN_AGAA(s(x0)) → U3_AGAA(s(x0), U2_ag(le36_in_ag(x0)))
SPLIT51_IN_AGAA(s(x0)) → U3_AGAA(s(x0), le36_out_ag(0))
SPLIT51_IN_AGAA(0) → U3_AGAA(0, le36_out_ag(0))
SPLIT51_IN_AGAA(s(x0)) → U5_AGAA(s(x0), U7_ag(gt67_in_ag(x0)))
SPLIT51_IN_AGAA(0) → U5_AGAA(0, gt67_out_ag)
U3_AGAA(s(z0), le36_out_ag(x1)) → SPLIT51_IN_AGAA(s(z0))
U3_AGAA(s(z0), le36_out_ag(0)) → SPLIT51_IN_AGAA(s(z0))
U3_AGAA(0, le36_out_ag(0)) → SPLIT51_IN_AGAA(0)
U5_AGAA(s(z0), gt67_out_ag) → SPLIT51_IN_AGAA(s(z0))
U5_AGAA(0, gt67_out_ag) → SPLIT51_IN_AGAA(0)
le36_in_ag(s(T83)) → U2_ag(le36_in_ag(T83))
le36_in_ag(s(T90)) → le36_out_ag(0)
le36_in_ag(0) → le36_out_ag(0)
gt67_in_ag(s(T145)) → U7_ag(gt67_in_ag(T145))
gt67_in_ag(0) → gt67_out_ag
U2_ag(le36_out_ag(T82)) → le36_out_ag(s(T82))
U7_ag(gt67_out_ag) → gt67_out_ag
le36_in_ag(x0)
gt67_in_ag(x0)
U2_ag(x0)
U7_ag(x0)
U3_AGAA(0, le36_out_ag(0)) → SPLIT51_IN_AGAA(0)
SPLIT51_IN_AGAA(0) → U3_AGAA(0, le36_out_ag(0))
SPLIT51_IN_AGAA(0) → U5_AGAA(0, gt67_out_ag)
U5_AGAA(0, gt67_out_ag) → SPLIT51_IN_AGAA(0)
le36_in_ag(s(T83)) → U2_ag(le36_in_ag(T83))
le36_in_ag(s(T90)) → le36_out_ag(0)
le36_in_ag(0) → le36_out_ag(0)
gt67_in_ag(s(T145)) → U7_ag(gt67_in_ag(T145))
gt67_in_ag(0) → gt67_out_ag
U2_ag(le36_out_ag(T82)) → le36_out_ag(s(T82))
U7_ag(gt67_out_ag) → gt67_out_ag
le36_in_ag(x0)
gt67_in_ag(x0)
U2_ag(x0)
U7_ag(x0)
U3_AGAA(0, le36_out_ag(0)) → SPLIT51_IN_AGAA(0)
SPLIT51_IN_AGAA(0) → U3_AGAA(0, le36_out_ag(0))
SPLIT51_IN_AGAA(0) → U5_AGAA(0, gt67_out_ag)
U5_AGAA(0, gt67_out_ag) → SPLIT51_IN_AGAA(0)
le36_in_ag(x0)
gt67_in_ag(x0)
U2_ag(x0)
U7_ag(x0)
le36_in_ag(x0)
gt67_in_ag(x0)
U2_ag(x0)
U7_ag(x0)
U3_AGAA(0, le36_out_ag(0)) → SPLIT51_IN_AGAA(0)
SPLIT51_IN_AGAA(0) → U3_AGAA(0, le36_out_ag(0))
SPLIT51_IN_AGAA(0) → U5_AGAA(0, gt67_out_ag)
U5_AGAA(0, gt67_out_ag) → SPLIT51_IN_AGAA(0)
U3_AGAA(s(z0), le36_out_ag(x1)) → SPLIT51_IN_AGAA(s(z0))
SPLIT51_IN_AGAA(s(x0)) → U3_AGAA(s(x0), U2_ag(le36_in_ag(x0)))
U3_AGAA(s(z0), le36_out_ag(0)) → SPLIT51_IN_AGAA(s(z0))
SPLIT51_IN_AGAA(s(x0)) → U3_AGAA(s(x0), le36_out_ag(0))
SPLIT51_IN_AGAA(s(x0)) → U5_AGAA(s(x0), U7_ag(gt67_in_ag(x0)))
U5_AGAA(s(z0), gt67_out_ag) → SPLIT51_IN_AGAA(s(z0))
le36_in_ag(s(T83)) → U2_ag(le36_in_ag(T83))
le36_in_ag(s(T90)) → le36_out_ag(0)
le36_in_ag(0) → le36_out_ag(0)
gt67_in_ag(s(T145)) → U7_ag(gt67_in_ag(T145))
gt67_in_ag(0) → gt67_out_ag
U2_ag(le36_out_ag(T82)) → le36_out_ag(s(T82))
U7_ag(gt67_out_ag) → gt67_out_ag
le36_in_ag(x0)
gt67_in_ag(x0)
U2_ag(x0)
U7_ag(x0)
GT67_IN_AA(s(T144), s(T145)) → GT67_IN_AA(T144, T145)
qsort1_in_ga([], []) → qsort1_out_ga([], [])
qsort1_in_ga(.(T14, []), T9) → U19_ga(T14, T9, qsort14_in_a(X12))
qsort14_in_a([]) → qsort14_out_a([])
U19_ga(T14, T9, qsort14_out_a(X12)) → qsort1_out_ga(.(T14, []), T9)
qsort1_in_ga(.(T14, []), T9) → U20_ga(T14, T9, qsort14_in_a(T17))
U20_ga(T14, T9, qsort14_out_a(T17)) → U21_ga(T14, T9, qsort14_in_a(X13))
U21_ga(T14, T9, qsort14_out_a(X13)) → qsort1_out_ga(.(T14, []), T9)
U20_ga(T14, T9, qsort14_out_a(T17)) → U22_ga(T14, T9, T17, qsort14_in_a(T20))
U22_ga(T14, T9, T17, qsort14_out_a(T20)) → U23_ga(T14, T9, append23_in_ggga(T17, T14, T20, T9))
append23_in_ggga([], T33, T34, .(T33, T34)) → append23_out_ggga([], T33, T34, .(T33, T34))
append23_in_ggga(.(T45, T46), T47, T48, .(T45, T50)) → U1_ggga(T45, T46, T47, T48, T50, append23_in_ggga(T46, T47, T48, T50))
U1_ggga(T45, T46, T47, T48, T50, append23_out_ggga(T46, T47, T48, T50)) → append23_out_ggga(.(T45, T46), T47, T48, .(T45, T50))
U23_ga(T14, T9, append23_out_ggga(T17, T14, T20, T9)) → qsort1_out_ga(.(T14, []), T9)
qsort1_in_ga(.(T69, .(T67, T68)), T9) → U24_ga(T69, T67, T68, T9, le36_in_gg(T67, T69))
le36_in_gg(s(T82), s(T83)) → U2_gg(T82, T83, le36_in_gg(T82, T83))
le36_in_gg(0, s(T90)) → le36_out_gg(0, s(T90))
le36_in_gg(0, 0) → le36_out_gg(0, 0)
U2_gg(T82, T83, le36_out_gg(T82, T83)) → le36_out_gg(s(T82), s(T83))
U24_ga(T69, T67, T68, T9, le36_out_gg(T67, T69)) → qsort1_out_ga(.(T69, .(T67, T68)), T9)
U24_ga(T69, T67, T68, T9, le36_out_gg(T67, T69)) → U25_ga(T69, T67, T68, T9, split51_in_ggaa(T68, T69, X93, X94))
split51_in_ggaa([], T101, [], []) → split51_out_ggaa([], T101, [], [])
split51_in_ggaa(.(T114, T115), T116, .(T114, X167), X168) → U3_ggaa(T114, T115, T116, X167, X168, le36_in_gg(T114, T116))
U3_ggaa(T114, T115, T116, X167, X168, le36_out_gg(T114, T116)) → split51_out_ggaa(.(T114, T115), T116, .(T114, X167), X168)
U3_ggaa(T114, T115, T116, X167, X168, le36_out_gg(T114, T116)) → U4_ggaa(T114, T115, T116, X167, X168, split51_in_ggaa(T115, T116, X167, X168))
split51_in_ggaa(.(T129, T130), T131, X199, .(T129, X200)) → U5_ggaa(T129, T130, T131, X199, X200, gt67_in_gg(T129, T131))
gt67_in_gg(s(T144), s(T145)) → U7_gg(T144, T145, gt67_in_gg(T144, T145))
gt67_in_gg(s(T150), 0) → gt67_out_gg(s(T150), 0)
U7_gg(T144, T145, gt67_out_gg(T144, T145)) → gt67_out_gg(s(T144), s(T145))
U5_ggaa(T129, T130, T131, X199, X200, gt67_out_gg(T129, T131)) → split51_out_ggaa(.(T129, T130), T131, X199, .(T129, X200))
U5_ggaa(T129, T130, T131, X199, X200, gt67_out_gg(T129, T131)) → U6_ggaa(T129, T130, T131, X199, X200, split51_in_ggaa(T130, T131, X199, X200))
U6_ggaa(T129, T130, T131, X199, X200, split51_out_ggaa(T130, T131, X199, X200)) → split51_out_ggaa(.(T129, T130), T131, X199, .(T129, X200))
U4_ggaa(T114, T115, T116, X167, X168, split51_out_ggaa(T115, T116, X167, X168)) → split51_out_ggaa(.(T114, T115), T116, .(T114, X167), X168)
U25_ga(T69, T67, T68, T9, split51_out_ggaa(T68, T69, X93, X94)) → qsort1_out_ga(.(T69, .(T67, T68)), T9)
U24_ga(T69, T67, T68, T9, le36_out_gg(T67, T69)) → U26_ga(T69, T67, T68, T9, split51_in_ggaa(T68, T69, T93, T94))
U26_ga(T69, T67, T68, T9, split51_out_ggaa(T68, T69, T93, T94)) → U27_ga(T69, T67, T68, T9, qsort1_in_aa(.(T67, T93), X12))
qsort1_in_aa([], []) → qsort1_out_aa([], [])
qsort1_in_aa(.(T14, []), T9) → U19_aa(T14, T9, qsort14_in_a(X12))
U19_aa(T14, T9, qsort14_out_a(X12)) → qsort1_out_aa(.(T14, []), T9)
qsort1_in_aa(.(T14, []), T9) → U20_aa(T14, T9, qsort14_in_a(T17))
U20_aa(T14, T9, qsort14_out_a(T17)) → U21_aa(T14, T9, qsort14_in_a(X13))
U21_aa(T14, T9, qsort14_out_a(X13)) → qsort1_out_aa(.(T14, []), T9)
U20_aa(T14, T9, qsort14_out_a(T17)) → U22_aa(T14, T9, T17, qsort14_in_a(T20))
U22_aa(T14, T9, T17, qsort14_out_a(T20)) → U23_aa(T14, T9, append23_in_gaga(T17, T14, T20, T9))
append23_in_gaga([], T33, T34, .(T33, T34)) → append23_out_gaga([], T33, T34, .(T33, T34))
append23_in_gaga(.(T45, T46), T47, T48, .(T45, T50)) → U1_gaga(T45, T46, T47, T48, T50, append23_in_gaga(T46, T47, T48, T50))
U1_gaga(T45, T46, T47, T48, T50, append23_out_gaga(T46, T47, T48, T50)) → append23_out_gaga(.(T45, T46), T47, T48, .(T45, T50))
U23_aa(T14, T9, append23_out_gaga(T17, T14, T20, T9)) → qsort1_out_aa(.(T14, []), T9)
qsort1_in_aa(.(T69, .(T67, T68)), T9) → U24_aa(T69, T67, T68, T9, le36_in_aa(T67, T69))
le36_in_aa(s(T82), s(T83)) → U2_aa(T82, T83, le36_in_aa(T82, T83))
le36_in_aa(0, s(T90)) → le36_out_aa(0, s(T90))
le36_in_aa(0, 0) → le36_out_aa(0, 0)
U2_aa(T82, T83, le36_out_aa(T82, T83)) → le36_out_aa(s(T82), s(T83))
U24_aa(T69, T67, T68, T9, le36_out_aa(T67, T69)) → qsort1_out_aa(.(T69, .(T67, T68)), T9)
U24_aa(T69, T67, T68, T9, le36_out_aa(T67, T69)) → U25_aa(T69, T67, T68, T9, split51_in_aaaa(T68, T69, X93, X94))
split51_in_aaaa([], T101, [], []) → split51_out_aaaa([], T101, [], [])
split51_in_aaaa(.(T114, T115), T116, .(T114, X167), X168) → U3_aaaa(T114, T115, T116, X167, X168, le36_in_aa(T114, T116))
U3_aaaa(T114, T115, T116, X167, X168, le36_out_aa(T114, T116)) → split51_out_aaaa(.(T114, T115), T116, .(T114, X167), X168)
U3_aaaa(T114, T115, T116, X167, X168, le36_out_aa(T114, T116)) → U4_aaaa(T114, T115, T116, X167, X168, split51_in_aaaa(T115, T116, X167, X168))
split51_in_aaaa(.(T129, T130), T131, X199, .(T129, X200)) → U5_aaaa(T129, T130, T131, X199, X200, gt67_in_aa(T129, T131))
gt67_in_aa(s(T144), s(T145)) → U7_aa(T144, T145, gt67_in_aa(T144, T145))
gt67_in_aa(s(T150), 0) → gt67_out_aa(s(T150), 0)
U7_aa(T144, T145, gt67_out_aa(T144, T145)) → gt67_out_aa(s(T144), s(T145))
U5_aaaa(T129, T130, T131, X199, X200, gt67_out_aa(T129, T131)) → split51_out_aaaa(.(T129, T130), T131, X199, .(T129, X200))
U5_aaaa(T129, T130, T131, X199, X200, gt67_out_aa(T129, T131)) → U6_aaaa(T129, T130, T131, X199, X200, split51_in_agaa(T130, T131, X199, X200))
split51_in_agaa([], T101, [], []) → split51_out_agaa([], T101, [], [])
split51_in_agaa(.(T114, T115), T116, .(T114, X167), X168) → U3_agaa(T114, T115, T116, X167, X168, le36_in_ag(T114, T116))
le36_in_ag(s(T82), s(T83)) → U2_ag(T82, T83, le36_in_ag(T82, T83))
le36_in_ag(0, s(T90)) → le36_out_ag(0, s(T90))
le36_in_ag(0, 0) → le36_out_ag(0, 0)
U2_ag(T82, T83, le36_out_ag(T82, T83)) → le36_out_ag(s(T82), s(T83))
U3_agaa(T114, T115, T116, X167, X168, le36_out_ag(T114, T116)) → split51_out_agaa(.(T114, T115), T116, .(T114, X167), X168)
U3_agaa(T114, T115, T116, X167, X168, le36_out_ag(T114, T116)) → U4_agaa(T114, T115, T116, X167, X168, split51_in_agaa(T115, T116, X167, X168))
split51_in_agaa(.(T129, T130), T131, X199, .(T129, X200)) → U5_agaa(T129, T130, T131, X199, X200, gt67_in_ag(T129, T131))
gt67_in_ag(s(T144), s(T145)) → U7_ag(T144, T145, gt67_in_ag(T144, T145))
gt67_in_ag(s(T150), 0) → gt67_out_ag(s(T150), 0)
U7_ag(T144, T145, gt67_out_ag(T144, T145)) → gt67_out_ag(s(T144), s(T145))
U5_agaa(T129, T130, T131, X199, X200, gt67_out_ag(T129, T131)) → split51_out_agaa(.(T129, T130), T131, X199, .(T129, X200))
U5_agaa(T129, T130, T131, X199, X200, gt67_out_ag(T129, T131)) → U6_agaa(T129, T130, T131, X199, X200, split51_in_agaa(T130, T131, X199, X200))
U6_agaa(T129, T130, T131, X199, X200, split51_out_agaa(T130, T131, X199, X200)) → split51_out_agaa(.(T129, T130), T131, X199, .(T129, X200))
U4_agaa(T114, T115, T116, X167, X168, split51_out_agaa(T115, T116, X167, X168)) → split51_out_agaa(.(T114, T115), T116, .(T114, X167), X168)
U6_aaaa(T129, T130, T131, X199, X200, split51_out_agaa(T130, T131, X199, X200)) → split51_out_aaaa(.(T129, T130), T131, X199, .(T129, X200))
U4_aaaa(T114, T115, T116, X167, X168, split51_out_aaaa(T115, T116, X167, X168)) → split51_out_aaaa(.(T114, T115), T116, .(T114, X167), X168)
U25_aa(T69, T67, T68, T9, split51_out_aaaa(T68, T69, X93, X94)) → qsort1_out_aa(.(T69, .(T67, T68)), T9)
U24_aa(T69, T67, T68, T9, le36_out_aa(T67, T69)) → U26_aa(T69, T67, T68, T9, split51_in_aaaa(T68, T69, T93, T94))
U26_aa(T69, T67, T68, T9, split51_out_aaaa(T68, T69, T93, T94)) → U27_aa(T69, T67, T68, T9, qsort1_in_aa(.(T67, T93), X12))
qsort1_in_aa(.(T215, .(T213, T214)), T9) → U30_aa(T215, T213, T214, T9, gt67_in_aa(T213, T215))
U30_aa(T215, T213, T214, T9, gt67_out_aa(T213, T215)) → qsort1_out_aa(.(T215, .(T213, T214)), T9)
U30_aa(T215, T213, T214, T9, gt67_out_aa(T213, T215)) → U31_aa(T215, T213, T214, T9, split51_in_agaa(T214, T215, X323, X324))
U31_aa(T215, T213, T214, T9, split51_out_agaa(T214, T215, X323, X324)) → qsort1_out_aa(.(T215, .(T213, T214)), T9)
U30_aa(T215, T213, T214, T9, gt67_out_aa(T213, T215)) → U32_aa(T215, T213, T214, T9, split51_in_agaa(T214, T215, T222, T223))
U32_aa(T215, T213, T214, T9, split51_out_agaa(T214, T215, T222, T223)) → U33_aa(T215, T213, T214, T9, qsort79_in_aa(T222, X12))
qsort79_in_aa([], []) → qsort79_out_aa([], [])
qsort79_in_aa(.(T163, T164), X265) → U8_aa(T163, T164, X265, split51_in_aaaa(T164, T163, X261, X262))
U8_aa(T163, T164, X265, split51_out_aaaa(T164, T163, X261, X262)) → qsort79_out_aa(.(T163, T164), X265)
qsort79_in_aa(.(T163, T164), X265) → U9_aa(T163, T164, X265, split51_in_aaaa(T164, T163, T167, T168))
U9_aa(T163, T164, X265, split51_out_aaaa(T164, T163, T167, T168)) → U10_aa(T163, T164, X265, qsort79_in_aa(T167, X263))
U10_aa(T163, T164, X265, qsort79_out_aa(T167, X263)) → qsort79_out_aa(.(T163, T164), X265)
U9_aa(T163, T164, X265, split51_out_aaaa(T164, T163, T167, T168)) → U11_aa(T163, T164, X265, T168, qsort79_in_aa(T167, T171))
U11_aa(T163, T164, X265, T168, qsort79_out_aa(T167, T171)) → U12_aa(T163, T164, X265, qsort79_in_aa(T168, X264))
U12_aa(T163, T164, X265, qsort79_out_aa(T168, X264)) → qsort79_out_aa(.(T163, T164), X265)
U11_aa(T163, T164, X265, T168, qsort79_out_aa(T167, T171)) → U13_aa(T163, T164, X265, T171, qsort79_in_aa(T168, T172))
U13_aa(T163, T164, X265, T171, qsort79_out_aa(T168, T172)) → U14_aa(T163, T164, X265, append94_in_aaaa(T171, T163, T172, X265))
append94_in_aaaa([], T185, T186, .(T185, T186)) → append94_out_aaaa([], T185, T186, .(T185, T186))
append94_in_aaaa(.(T195, T196), T197, T198, .(T195, X295)) → U15_aaaa(T195, T196, T197, T198, X295, append94_in_aaaa(T196, T197, T198, X295))
U15_aaaa(T195, T196, T197, T198, X295, append94_out_aaaa(T196, T197, T198, X295)) → append94_out_aaaa(.(T195, T196), T197, T198, .(T195, X295))
U14_aa(T163, T164, X265, append94_out_aaaa(T171, T163, T172, X265)) → qsort79_out_aa(.(T163, T164), X265)
U33_aa(T215, T213, T214, T9, qsort79_out_aa(T222, X12)) → qsort1_out_aa(.(T215, .(T213, T214)), T9)
U32_aa(T215, T213, T214, T9, split51_out_agaa(T214, T215, T222, T223)) → U34_aa(T215, T213, T214, T9, T223, qsort79_in_aa(T222, T226))
U34_aa(T215, T213, T214, T9, T223, qsort79_out_aa(T222, T226)) → U35_aa(T215, T213, T214, T9, p78_in_aaaga(.(T213, T223), X13, T226, T215, T9))
p78_in_aaaga(T94, X13, T155, T69, T9) → U16_aaaga(T94, X13, T155, T69, T9, qsort79_in_aa(T94, X13))
U16_aaaga(T94, X13, T155, T69, T9, qsort79_out_aa(T94, X13)) → p78_out_aaaga(T94, X13, T155, T69, T9)
p78_in_aaaga(T94, T158, T155, T69, T9) → U17_aaaga(T94, T158, T155, T69, T9, qsort79_in_aa(T94, T158))
U17_aaaga(T94, T158, T155, T69, T9, qsort79_out_aa(T94, T158)) → U18_aaaga(T94, T158, T155, T69, T9, append23_in_agaa(T155, T69, T158, T9))
append23_in_agaa([], T33, T34, .(T33, T34)) → append23_out_agaa([], T33, T34, .(T33, T34))
append23_in_agaa(.(T45, T46), T47, T48, .(T45, T50)) → U1_agaa(T45, T46, T47, T48, T50, append23_in_agaa(T46, T47, T48, T50))
U1_agaa(T45, T46, T47, T48, T50, append23_out_agaa(T46, T47, T48, T50)) → append23_out_agaa(.(T45, T46), T47, T48, .(T45, T50))
U18_aaaga(T94, T158, T155, T69, T9, append23_out_agaa(T155, T69, T158, T9)) → p78_out_aaaga(T94, T158, T155, T69, T9)
U35_aa(T215, T213, T214, T9, p78_out_aaaga(.(T213, T223), X13, T226, T215, T9)) → qsort1_out_aa(.(T215, .(T213, T214)), T9)
U27_aa(T69, T67, T68, T9, qsort1_out_aa(.(T67, T93), X12)) → qsort1_out_aa(.(T69, .(T67, T68)), T9)
U26_aa(T69, T67, T68, T9, split51_out_aaaa(T68, T69, T93, T94)) → U28_aa(T69, T67, T68, T9, T94, qsort1_in_aa(.(T67, T93), T155))
U28_aa(T69, T67, T68, T9, T94, qsort1_out_aa(.(T67, T93), T155)) → U29_aa(T69, T67, T68, T9, p78_in_aaaaa(T94, X13, T155, T69, T9))
p78_in_aaaaa(T94, X13, T155, T69, T9) → U16_aaaaa(T94, X13, T155, T69, T9, qsort79_in_aa(T94, X13))
U16_aaaaa(T94, X13, T155, T69, T9, qsort79_out_aa(T94, X13)) → p78_out_aaaaa(T94, X13, T155, T69, T9)
p78_in_aaaaa(T94, T158, T155, T69, T9) → U17_aaaaa(T94, T158, T155, T69, T9, qsort79_in_aa(T94, T158))
U17_aaaaa(T94, T158, T155, T69, T9, qsort79_out_aa(T94, T158)) → U18_aaaaa(T94, T158, T155, T69, T9, append23_in_aaaa(T155, T69, T158, T9))
append23_in_aaaa([], T33, T34, .(T33, T34)) → append23_out_aaaa([], T33, T34, .(T33, T34))
append23_in_aaaa(.(T45, T46), T47, T48, .(T45, T50)) → U1_aaaa(T45, T46, T47, T48, T50, append23_in_aaaa(T46, T47, T48, T50))
U1_aaaa(T45, T46, T47, T48, T50, append23_out_aaaa(T46, T47, T48, T50)) → append23_out_aaaa(.(T45, T46), T47, T48, .(T45, T50))
U18_aaaaa(T94, T158, T155, T69, T9, append23_out_aaaa(T155, T69, T158, T9)) → p78_out_aaaaa(T94, T158, T155, T69, T9)
U29_aa(T69, T67, T68, T9, p78_out_aaaaa(T94, X13, T155, T69, T9)) → qsort1_out_aa(.(T69, .(T67, T68)), T9)
U27_ga(T69, T67, T68, T9, qsort1_out_aa(.(T67, T93), X12)) → qsort1_out_ga(.(T69, .(T67, T68)), T9)
U26_ga(T69, T67, T68, T9, split51_out_ggaa(T68, T69, T93, T94)) → U28_ga(T69, T67, T68, T9, T94, qsort1_in_aa(.(T67, T93), T155))
U28_ga(T69, T67, T68, T9, T94, qsort1_out_aa(.(T67, T93), T155)) → U29_ga(T69, T67, T68, T9, p78_in_aaaga(T94, X13, T155, T69, T9))
U29_ga(T69, T67, T68, T9, p78_out_aaaga(T94, X13, T155, T69, T9)) → qsort1_out_ga(.(T69, .(T67, T68)), T9)
qsort1_in_ga(.(T215, .(T213, T214)), T9) → U30_ga(T215, T213, T214, T9, gt67_in_gg(T213, T215))
U30_ga(T215, T213, T214, T9, gt67_out_gg(T213, T215)) → qsort1_out_ga(.(T215, .(T213, T214)), T9)
U30_ga(T215, T213, T214, T9, gt67_out_gg(T213, T215)) → U31_ga(T215, T213, T214, T9, split51_in_ggaa(T214, T215, X323, X324))
U31_ga(T215, T213, T214, T9, split51_out_ggaa(T214, T215, X323, X324)) → qsort1_out_ga(.(T215, .(T213, T214)), T9)
U30_ga(T215, T213, T214, T9, gt67_out_gg(T213, T215)) → U32_ga(T215, T213, T214, T9, split51_in_ggaa(T214, T215, T222, T223))
U32_ga(T215, T213, T214, T9, split51_out_ggaa(T214, T215, T222, T223)) → U33_ga(T215, T213, T214, T9, qsort79_in_aa(T222, X12))
U33_ga(T215, T213, T214, T9, qsort79_out_aa(T222, X12)) → qsort1_out_ga(.(T215, .(T213, T214)), T9)
U32_ga(T215, T213, T214, T9, split51_out_ggaa(T214, T215, T222, T223)) → U34_ga(T215, T213, T214, T9, T223, qsort79_in_aa(T222, T226))
U34_ga(T215, T213, T214, T9, T223, qsort79_out_aa(T222, T226)) → U35_ga(T215, T213, T214, T9, p78_in_aaaga(.(T213, T223), X13, T226, T215, T9))
U35_ga(T215, T213, T214, T9, p78_out_aaaga(.(T213, T223), X13, T226, T215, T9)) → qsort1_out_ga(.(T215, .(T213, T214)), T9)
GT67_IN_AA(s(T144), s(T145)) → GT67_IN_AA(T144, T145)
GT67_IN_AA → GT67_IN_AA
LE36_IN_AA(s(T82), s(T83)) → LE36_IN_AA(T82, T83)
qsort1_in_ga([], []) → qsort1_out_ga([], [])
qsort1_in_ga(.(T14, []), T9) → U19_ga(T14, T9, qsort14_in_a(X12))
qsort14_in_a([]) → qsort14_out_a([])
U19_ga(T14, T9, qsort14_out_a(X12)) → qsort1_out_ga(.(T14, []), T9)
qsort1_in_ga(.(T14, []), T9) → U20_ga(T14, T9, qsort14_in_a(T17))
U20_ga(T14, T9, qsort14_out_a(T17)) → U21_ga(T14, T9, qsort14_in_a(X13))
U21_ga(T14, T9, qsort14_out_a(X13)) → qsort1_out_ga(.(T14, []), T9)
U20_ga(T14, T9, qsort14_out_a(T17)) → U22_ga(T14, T9, T17, qsort14_in_a(T20))
U22_ga(T14, T9, T17, qsort14_out_a(T20)) → U23_ga(T14, T9, append23_in_ggga(T17, T14, T20, T9))
append23_in_ggga([], T33, T34, .(T33, T34)) → append23_out_ggga([], T33, T34, .(T33, T34))
append23_in_ggga(.(T45, T46), T47, T48, .(T45, T50)) → U1_ggga(T45, T46, T47, T48, T50, append23_in_ggga(T46, T47, T48, T50))
U1_ggga(T45, T46, T47, T48, T50, append23_out_ggga(T46, T47, T48, T50)) → append23_out_ggga(.(T45, T46), T47, T48, .(T45, T50))
U23_ga(T14, T9, append23_out_ggga(T17, T14, T20, T9)) → qsort1_out_ga(.(T14, []), T9)
qsort1_in_ga(.(T69, .(T67, T68)), T9) → U24_ga(T69, T67, T68, T9, le36_in_gg(T67, T69))
le36_in_gg(s(T82), s(T83)) → U2_gg(T82, T83, le36_in_gg(T82, T83))
le36_in_gg(0, s(T90)) → le36_out_gg(0, s(T90))
le36_in_gg(0, 0) → le36_out_gg(0, 0)
U2_gg(T82, T83, le36_out_gg(T82, T83)) → le36_out_gg(s(T82), s(T83))
U24_ga(T69, T67, T68, T9, le36_out_gg(T67, T69)) → qsort1_out_ga(.(T69, .(T67, T68)), T9)
U24_ga(T69, T67, T68, T9, le36_out_gg(T67, T69)) → U25_ga(T69, T67, T68, T9, split51_in_ggaa(T68, T69, X93, X94))
split51_in_ggaa([], T101, [], []) → split51_out_ggaa([], T101, [], [])
split51_in_ggaa(.(T114, T115), T116, .(T114, X167), X168) → U3_ggaa(T114, T115, T116, X167, X168, le36_in_gg(T114, T116))
U3_ggaa(T114, T115, T116, X167, X168, le36_out_gg(T114, T116)) → split51_out_ggaa(.(T114, T115), T116, .(T114, X167), X168)
U3_ggaa(T114, T115, T116, X167, X168, le36_out_gg(T114, T116)) → U4_ggaa(T114, T115, T116, X167, X168, split51_in_ggaa(T115, T116, X167, X168))
split51_in_ggaa(.(T129, T130), T131, X199, .(T129, X200)) → U5_ggaa(T129, T130, T131, X199, X200, gt67_in_gg(T129, T131))
gt67_in_gg(s(T144), s(T145)) → U7_gg(T144, T145, gt67_in_gg(T144, T145))
gt67_in_gg(s(T150), 0) → gt67_out_gg(s(T150), 0)
U7_gg(T144, T145, gt67_out_gg(T144, T145)) → gt67_out_gg(s(T144), s(T145))
U5_ggaa(T129, T130, T131, X199, X200, gt67_out_gg(T129, T131)) → split51_out_ggaa(.(T129, T130), T131, X199, .(T129, X200))
U5_ggaa(T129, T130, T131, X199, X200, gt67_out_gg(T129, T131)) → U6_ggaa(T129, T130, T131, X199, X200, split51_in_ggaa(T130, T131, X199, X200))
U6_ggaa(T129, T130, T131, X199, X200, split51_out_ggaa(T130, T131, X199, X200)) → split51_out_ggaa(.(T129, T130), T131, X199, .(T129, X200))
U4_ggaa(T114, T115, T116, X167, X168, split51_out_ggaa(T115, T116, X167, X168)) → split51_out_ggaa(.(T114, T115), T116, .(T114, X167), X168)
U25_ga(T69, T67, T68, T9, split51_out_ggaa(T68, T69, X93, X94)) → qsort1_out_ga(.(T69, .(T67, T68)), T9)
U24_ga(T69, T67, T68, T9, le36_out_gg(T67, T69)) → U26_ga(T69, T67, T68, T9, split51_in_ggaa(T68, T69, T93, T94))
U26_ga(T69, T67, T68, T9, split51_out_ggaa(T68, T69, T93, T94)) → U27_ga(T69, T67, T68, T9, qsort1_in_aa(.(T67, T93), X12))
qsort1_in_aa([], []) → qsort1_out_aa([], [])
qsort1_in_aa(.(T14, []), T9) → U19_aa(T14, T9, qsort14_in_a(X12))
U19_aa(T14, T9, qsort14_out_a(X12)) → qsort1_out_aa(.(T14, []), T9)
qsort1_in_aa(.(T14, []), T9) → U20_aa(T14, T9, qsort14_in_a(T17))
U20_aa(T14, T9, qsort14_out_a(T17)) → U21_aa(T14, T9, qsort14_in_a(X13))
U21_aa(T14, T9, qsort14_out_a(X13)) → qsort1_out_aa(.(T14, []), T9)
U20_aa(T14, T9, qsort14_out_a(T17)) → U22_aa(T14, T9, T17, qsort14_in_a(T20))
U22_aa(T14, T9, T17, qsort14_out_a(T20)) → U23_aa(T14, T9, append23_in_gaga(T17, T14, T20, T9))
append23_in_gaga([], T33, T34, .(T33, T34)) → append23_out_gaga([], T33, T34, .(T33, T34))
append23_in_gaga(.(T45, T46), T47, T48, .(T45, T50)) → U1_gaga(T45, T46, T47, T48, T50, append23_in_gaga(T46, T47, T48, T50))
U1_gaga(T45, T46, T47, T48, T50, append23_out_gaga(T46, T47, T48, T50)) → append23_out_gaga(.(T45, T46), T47, T48, .(T45, T50))
U23_aa(T14, T9, append23_out_gaga(T17, T14, T20, T9)) → qsort1_out_aa(.(T14, []), T9)
qsort1_in_aa(.(T69, .(T67, T68)), T9) → U24_aa(T69, T67, T68, T9, le36_in_aa(T67, T69))
le36_in_aa(s(T82), s(T83)) → U2_aa(T82, T83, le36_in_aa(T82, T83))
le36_in_aa(0, s(T90)) → le36_out_aa(0, s(T90))
le36_in_aa(0, 0) → le36_out_aa(0, 0)
U2_aa(T82, T83, le36_out_aa(T82, T83)) → le36_out_aa(s(T82), s(T83))
U24_aa(T69, T67, T68, T9, le36_out_aa(T67, T69)) → qsort1_out_aa(.(T69, .(T67, T68)), T9)
U24_aa(T69, T67, T68, T9, le36_out_aa(T67, T69)) → U25_aa(T69, T67, T68, T9, split51_in_aaaa(T68, T69, X93, X94))
split51_in_aaaa([], T101, [], []) → split51_out_aaaa([], T101, [], [])
split51_in_aaaa(.(T114, T115), T116, .(T114, X167), X168) → U3_aaaa(T114, T115, T116, X167, X168, le36_in_aa(T114, T116))
U3_aaaa(T114, T115, T116, X167, X168, le36_out_aa(T114, T116)) → split51_out_aaaa(.(T114, T115), T116, .(T114, X167), X168)
U3_aaaa(T114, T115, T116, X167, X168, le36_out_aa(T114, T116)) → U4_aaaa(T114, T115, T116, X167, X168, split51_in_aaaa(T115, T116, X167, X168))
split51_in_aaaa(.(T129, T130), T131, X199, .(T129, X200)) → U5_aaaa(T129, T130, T131, X199, X200, gt67_in_aa(T129, T131))
gt67_in_aa(s(T144), s(T145)) → U7_aa(T144, T145, gt67_in_aa(T144, T145))
gt67_in_aa(s(T150), 0) → gt67_out_aa(s(T150), 0)
U7_aa(T144, T145, gt67_out_aa(T144, T145)) → gt67_out_aa(s(T144), s(T145))
U5_aaaa(T129, T130, T131, X199, X200, gt67_out_aa(T129, T131)) → split51_out_aaaa(.(T129, T130), T131, X199, .(T129, X200))
U5_aaaa(T129, T130, T131, X199, X200, gt67_out_aa(T129, T131)) → U6_aaaa(T129, T130, T131, X199, X200, split51_in_agaa(T130, T131, X199, X200))
split51_in_agaa([], T101, [], []) → split51_out_agaa([], T101, [], [])
split51_in_agaa(.(T114, T115), T116, .(T114, X167), X168) → U3_agaa(T114, T115, T116, X167, X168, le36_in_ag(T114, T116))
le36_in_ag(s(T82), s(T83)) → U2_ag(T82, T83, le36_in_ag(T82, T83))
le36_in_ag(0, s(T90)) → le36_out_ag(0, s(T90))
le36_in_ag(0, 0) → le36_out_ag(0, 0)
U2_ag(T82, T83, le36_out_ag(T82, T83)) → le36_out_ag(s(T82), s(T83))
U3_agaa(T114, T115, T116, X167, X168, le36_out_ag(T114, T116)) → split51_out_agaa(.(T114, T115), T116, .(T114, X167), X168)
U3_agaa(T114, T115, T116, X167, X168, le36_out_ag(T114, T116)) → U4_agaa(T114, T115, T116, X167, X168, split51_in_agaa(T115, T116, X167, X168))
split51_in_agaa(.(T129, T130), T131, X199, .(T129, X200)) → U5_agaa(T129, T130, T131, X199, X200, gt67_in_ag(T129, T131))
gt67_in_ag(s(T144), s(T145)) → U7_ag(T144, T145, gt67_in_ag(T144, T145))
gt67_in_ag(s(T150), 0) → gt67_out_ag(s(T150), 0)
U7_ag(T144, T145, gt67_out_ag(T144, T145)) → gt67_out_ag(s(T144), s(T145))
U5_agaa(T129, T130, T131, X199, X200, gt67_out_ag(T129, T131)) → split51_out_agaa(.(T129, T130), T131, X199, .(T129, X200))
U5_agaa(T129, T130, T131, X199, X200, gt67_out_ag(T129, T131)) → U6_agaa(T129, T130, T131, X199, X200, split51_in_agaa(T130, T131, X199, X200))
U6_agaa(T129, T130, T131, X199, X200, split51_out_agaa(T130, T131, X199, X200)) → split51_out_agaa(.(T129, T130), T131, X199, .(T129, X200))
U4_agaa(T114, T115, T116, X167, X168, split51_out_agaa(T115, T116, X167, X168)) → split51_out_agaa(.(T114, T115), T116, .(T114, X167), X168)
U6_aaaa(T129, T130, T131, X199, X200, split51_out_agaa(T130, T131, X199, X200)) → split51_out_aaaa(.(T129, T130), T131, X199, .(T129, X200))
U4_aaaa(T114, T115, T116, X167, X168, split51_out_aaaa(T115, T116, X167, X168)) → split51_out_aaaa(.(T114, T115), T116, .(T114, X167), X168)
U25_aa(T69, T67, T68, T9, split51_out_aaaa(T68, T69, X93, X94)) → qsort1_out_aa(.(T69, .(T67, T68)), T9)
U24_aa(T69, T67, T68, T9, le36_out_aa(T67, T69)) → U26_aa(T69, T67, T68, T9, split51_in_aaaa(T68, T69, T93, T94))
U26_aa(T69, T67, T68, T9, split51_out_aaaa(T68, T69, T93, T94)) → U27_aa(T69, T67, T68, T9, qsort1_in_aa(.(T67, T93), X12))
qsort1_in_aa(.(T215, .(T213, T214)), T9) → U30_aa(T215, T213, T214, T9, gt67_in_aa(T213, T215))
U30_aa(T215, T213, T214, T9, gt67_out_aa(T213, T215)) → qsort1_out_aa(.(T215, .(T213, T214)), T9)
U30_aa(T215, T213, T214, T9, gt67_out_aa(T213, T215)) → U31_aa(T215, T213, T214, T9, split51_in_agaa(T214, T215, X323, X324))
U31_aa(T215, T213, T214, T9, split51_out_agaa(T214, T215, X323, X324)) → qsort1_out_aa(.(T215, .(T213, T214)), T9)
U30_aa(T215, T213, T214, T9, gt67_out_aa(T213, T215)) → U32_aa(T215, T213, T214, T9, split51_in_agaa(T214, T215, T222, T223))
U32_aa(T215, T213, T214, T9, split51_out_agaa(T214, T215, T222, T223)) → U33_aa(T215, T213, T214, T9, qsort79_in_aa(T222, X12))
qsort79_in_aa([], []) → qsort79_out_aa([], [])
qsort79_in_aa(.(T163, T164), X265) → U8_aa(T163, T164, X265, split51_in_aaaa(T164, T163, X261, X262))
U8_aa(T163, T164, X265, split51_out_aaaa(T164, T163, X261, X262)) → qsort79_out_aa(.(T163, T164), X265)
qsort79_in_aa(.(T163, T164), X265) → U9_aa(T163, T164, X265, split51_in_aaaa(T164, T163, T167, T168))
U9_aa(T163, T164, X265, split51_out_aaaa(T164, T163, T167, T168)) → U10_aa(T163, T164, X265, qsort79_in_aa(T167, X263))
U10_aa(T163, T164, X265, qsort79_out_aa(T167, X263)) → qsort79_out_aa(.(T163, T164), X265)
U9_aa(T163, T164, X265, split51_out_aaaa(T164, T163, T167, T168)) → U11_aa(T163, T164, X265, T168, qsort79_in_aa(T167, T171))
U11_aa(T163, T164, X265, T168, qsort79_out_aa(T167, T171)) → U12_aa(T163, T164, X265, qsort79_in_aa(T168, X264))
U12_aa(T163, T164, X265, qsort79_out_aa(T168, X264)) → qsort79_out_aa(.(T163, T164), X265)
U11_aa(T163, T164, X265, T168, qsort79_out_aa(T167, T171)) → U13_aa(T163, T164, X265, T171, qsort79_in_aa(T168, T172))
U13_aa(T163, T164, X265, T171, qsort79_out_aa(T168, T172)) → U14_aa(T163, T164, X265, append94_in_aaaa(T171, T163, T172, X265))
append94_in_aaaa([], T185, T186, .(T185, T186)) → append94_out_aaaa([], T185, T186, .(T185, T186))
append94_in_aaaa(.(T195, T196), T197, T198, .(T195, X295)) → U15_aaaa(T195, T196, T197, T198, X295, append94_in_aaaa(T196, T197, T198, X295))
U15_aaaa(T195, T196, T197, T198, X295, append94_out_aaaa(T196, T197, T198, X295)) → append94_out_aaaa(.(T195, T196), T197, T198, .(T195, X295))
U14_aa(T163, T164, X265, append94_out_aaaa(T171, T163, T172, X265)) → qsort79_out_aa(.(T163, T164), X265)
U33_aa(T215, T213, T214, T9, qsort79_out_aa(T222, X12)) → qsort1_out_aa(.(T215, .(T213, T214)), T9)
U32_aa(T215, T213, T214, T9, split51_out_agaa(T214, T215, T222, T223)) → U34_aa(T215, T213, T214, T9, T223, qsort79_in_aa(T222, T226))
U34_aa(T215, T213, T214, T9, T223, qsort79_out_aa(T222, T226)) → U35_aa(T215, T213, T214, T9, p78_in_aaaga(.(T213, T223), X13, T226, T215, T9))
p78_in_aaaga(T94, X13, T155, T69, T9) → U16_aaaga(T94, X13, T155, T69, T9, qsort79_in_aa(T94, X13))
U16_aaaga(T94, X13, T155, T69, T9, qsort79_out_aa(T94, X13)) → p78_out_aaaga(T94, X13, T155, T69, T9)
p78_in_aaaga(T94, T158, T155, T69, T9) → U17_aaaga(T94, T158, T155, T69, T9, qsort79_in_aa(T94, T158))
U17_aaaga(T94, T158, T155, T69, T9, qsort79_out_aa(T94, T158)) → U18_aaaga(T94, T158, T155, T69, T9, append23_in_agaa(T155, T69, T158, T9))
append23_in_agaa([], T33, T34, .(T33, T34)) → append23_out_agaa([], T33, T34, .(T33, T34))
append23_in_agaa(.(T45, T46), T47, T48, .(T45, T50)) → U1_agaa(T45, T46, T47, T48, T50, append23_in_agaa(T46, T47, T48, T50))
U1_agaa(T45, T46, T47, T48, T50, append23_out_agaa(T46, T47, T48, T50)) → append23_out_agaa(.(T45, T46), T47, T48, .(T45, T50))
U18_aaaga(T94, T158, T155, T69, T9, append23_out_agaa(T155, T69, T158, T9)) → p78_out_aaaga(T94, T158, T155, T69, T9)
U35_aa(T215, T213, T214, T9, p78_out_aaaga(.(T213, T223), X13, T226, T215, T9)) → qsort1_out_aa(.(T215, .(T213, T214)), T9)
U27_aa(T69, T67, T68, T9, qsort1_out_aa(.(T67, T93), X12)) → qsort1_out_aa(.(T69, .(T67, T68)), T9)
U26_aa(T69, T67, T68, T9, split51_out_aaaa(T68, T69, T93, T94)) → U28_aa(T69, T67, T68, T9, T94, qsort1_in_aa(.(T67, T93), T155))
U28_aa(T69, T67, T68, T9, T94, qsort1_out_aa(.(T67, T93), T155)) → U29_aa(T69, T67, T68, T9, p78_in_aaaaa(T94, X13, T155, T69, T9))
p78_in_aaaaa(T94, X13, T155, T69, T9) → U16_aaaaa(T94, X13, T155, T69, T9, qsort79_in_aa(T94, X13))
U16_aaaaa(T94, X13, T155, T69, T9, qsort79_out_aa(T94, X13)) → p78_out_aaaaa(T94, X13, T155, T69, T9)
p78_in_aaaaa(T94, T158, T155, T69, T9) → U17_aaaaa(T94, T158, T155, T69, T9, qsort79_in_aa(T94, T158))
U17_aaaaa(T94, T158, T155, T69, T9, qsort79_out_aa(T94, T158)) → U18_aaaaa(T94, T158, T155, T69, T9, append23_in_aaaa(T155, T69, T158, T9))
append23_in_aaaa([], T33, T34, .(T33, T34)) → append23_out_aaaa([], T33, T34, .(T33, T34))
append23_in_aaaa(.(T45, T46), T47, T48, .(T45, T50)) → U1_aaaa(T45, T46, T47, T48, T50, append23_in_aaaa(T46, T47, T48, T50))
U1_aaaa(T45, T46, T47, T48, T50, append23_out_aaaa(T46, T47, T48, T50)) → append23_out_aaaa(.(T45, T46), T47, T48, .(T45, T50))
U18_aaaaa(T94, T158, T155, T69, T9, append23_out_aaaa(T155, T69, T158, T9)) → p78_out_aaaaa(T94, T158, T155, T69, T9)
U29_aa(T69, T67, T68, T9, p78_out_aaaaa(T94, X13, T155, T69, T9)) → qsort1_out_aa(.(T69, .(T67, T68)), T9)
U27_ga(T69, T67, T68, T9, qsort1_out_aa(.(T67, T93), X12)) → qsort1_out_ga(.(T69, .(T67, T68)), T9)
U26_ga(T69, T67, T68, T9, split51_out_ggaa(T68, T69, T93, T94)) → U28_ga(T69, T67, T68, T9, T94, qsort1_in_aa(.(T67, T93), T155))
U28_ga(T69, T67, T68, T9, T94, qsort1_out_aa(.(T67, T93), T155)) → U29_ga(T69, T67, T68, T9, p78_in_aaaga(T94, X13, T155, T69, T9))
U29_ga(T69, T67, T68, T9, p78_out_aaaga(T94, X13, T155, T69, T9)) → qsort1_out_ga(.(T69, .(T67, T68)), T9)
qsort1_in_ga(.(T215, .(T213, T214)), T9) → U30_ga(T215, T213, T214, T9, gt67_in_gg(T213, T215))
U30_ga(T215, T213, T214, T9, gt67_out_gg(T213, T215)) → qsort1_out_ga(.(T215, .(T213, T214)), T9)
U30_ga(T215, T213, T214, T9, gt67_out_gg(T213, T215)) → U31_ga(T215, T213, T214, T9, split51_in_ggaa(T214, T215, X323, X324))
U31_ga(T215, T213, T214, T9, split51_out_ggaa(T214, T215, X323, X324)) → qsort1_out_ga(.(T215, .(T213, T214)), T9)
U30_ga(T215, T213, T214, T9, gt67_out_gg(T213, T215)) → U32_ga(T215, T213, T214, T9, split51_in_ggaa(T214, T215, T222, T223))
U32_ga(T215, T213, T214, T9, split51_out_ggaa(T214, T215, T222, T223)) → U33_ga(T215, T213, T214, T9, qsort79_in_aa(T222, X12))
U33_ga(T215, T213, T214, T9, qsort79_out_aa(T222, X12)) → qsort1_out_ga(.(T215, .(T213, T214)), T9)
U32_ga(T215, T213, T214, T9, split51_out_ggaa(T214, T215, T222, T223)) → U34_ga(T215, T213, T214, T9, T223, qsort79_in_aa(T222, T226))
U34_ga(T215, T213, T214, T9, T223, qsort79_out_aa(T222, T226)) → U35_ga(T215, T213, T214, T9, p78_in_aaaga(.(T213, T223), X13, T226, T215, T9))
U35_ga(T215, T213, T214, T9, p78_out_aaaga(.(T213, T223), X13, T226, T215, T9)) → qsort1_out_ga(.(T215, .(T213, T214)), T9)
LE36_IN_AA(s(T82), s(T83)) → LE36_IN_AA(T82, T83)
LE36_IN_AA → LE36_IN_AA
SPLIT51_IN_AAAA(.(T114, T115), T116, .(T114, X167), X168) → U3_AAAA(T114, T115, T116, X167, X168, le36_in_aa(T114, T116))
U3_AAAA(T114, T115, T116, X167, X168, le36_out_aa(T114, T116)) → SPLIT51_IN_AAAA(T115, T116, X167, X168)
qsort1_in_ga([], []) → qsort1_out_ga([], [])
qsort1_in_ga(.(T14, []), T9) → U19_ga(T14, T9, qsort14_in_a(X12))
qsort14_in_a([]) → qsort14_out_a([])
U19_ga(T14, T9, qsort14_out_a(X12)) → qsort1_out_ga(.(T14, []), T9)
qsort1_in_ga(.(T14, []), T9) → U20_ga(T14, T9, qsort14_in_a(T17))
U20_ga(T14, T9, qsort14_out_a(T17)) → U21_ga(T14, T9, qsort14_in_a(X13))
U21_ga(T14, T9, qsort14_out_a(X13)) → qsort1_out_ga(.(T14, []), T9)
U20_ga(T14, T9, qsort14_out_a(T17)) → U22_ga(T14, T9, T17, qsort14_in_a(T20))
U22_ga(T14, T9, T17, qsort14_out_a(T20)) → U23_ga(T14, T9, append23_in_ggga(T17, T14, T20, T9))
append23_in_ggga([], T33, T34, .(T33, T34)) → append23_out_ggga([], T33, T34, .(T33, T34))
append23_in_ggga(.(T45, T46), T47, T48, .(T45, T50)) → U1_ggga(T45, T46, T47, T48, T50, append23_in_ggga(T46, T47, T48, T50))
U1_ggga(T45, T46, T47, T48, T50, append23_out_ggga(T46, T47, T48, T50)) → append23_out_ggga(.(T45, T46), T47, T48, .(T45, T50))
U23_ga(T14, T9, append23_out_ggga(T17, T14, T20, T9)) → qsort1_out_ga(.(T14, []), T9)
qsort1_in_ga(.(T69, .(T67, T68)), T9) → U24_ga(T69, T67, T68, T9, le36_in_gg(T67, T69))
le36_in_gg(s(T82), s(T83)) → U2_gg(T82, T83, le36_in_gg(T82, T83))
le36_in_gg(0, s(T90)) → le36_out_gg(0, s(T90))
le36_in_gg(0, 0) → le36_out_gg(0, 0)
U2_gg(T82, T83, le36_out_gg(T82, T83)) → le36_out_gg(s(T82), s(T83))
U24_ga(T69, T67, T68, T9, le36_out_gg(T67, T69)) → qsort1_out_ga(.(T69, .(T67, T68)), T9)
U24_ga(T69, T67, T68, T9, le36_out_gg(T67, T69)) → U25_ga(T69, T67, T68, T9, split51_in_ggaa(T68, T69, X93, X94))
split51_in_ggaa([], T101, [], []) → split51_out_ggaa([], T101, [], [])
split51_in_ggaa(.(T114, T115), T116, .(T114, X167), X168) → U3_ggaa(T114, T115, T116, X167, X168, le36_in_gg(T114, T116))
U3_ggaa(T114, T115, T116, X167, X168, le36_out_gg(T114, T116)) → split51_out_ggaa(.(T114, T115), T116, .(T114, X167), X168)
U3_ggaa(T114, T115, T116, X167, X168, le36_out_gg(T114, T116)) → U4_ggaa(T114, T115, T116, X167, X168, split51_in_ggaa(T115, T116, X167, X168))
split51_in_ggaa(.(T129, T130), T131, X199, .(T129, X200)) → U5_ggaa(T129, T130, T131, X199, X200, gt67_in_gg(T129, T131))
gt67_in_gg(s(T144), s(T145)) → U7_gg(T144, T145, gt67_in_gg(T144, T145))
gt67_in_gg(s(T150), 0) → gt67_out_gg(s(T150), 0)
U7_gg(T144, T145, gt67_out_gg(T144, T145)) → gt67_out_gg(s(T144), s(T145))
U5_ggaa(T129, T130, T131, X199, X200, gt67_out_gg(T129, T131)) → split51_out_ggaa(.(T129, T130), T131, X199, .(T129, X200))
U5_ggaa(T129, T130, T131, X199, X200, gt67_out_gg(T129, T131)) → U6_ggaa(T129, T130, T131, X199, X200, split51_in_ggaa(T130, T131, X199, X200))
U6_ggaa(T129, T130, T131, X199, X200, split51_out_ggaa(T130, T131, X199, X200)) → split51_out_ggaa(.(T129, T130), T131, X199, .(T129, X200))
U4_ggaa(T114, T115, T116, X167, X168, split51_out_ggaa(T115, T116, X167, X168)) → split51_out_ggaa(.(T114, T115), T116, .(T114, X167), X168)
U25_ga(T69, T67, T68, T9, split51_out_ggaa(T68, T69, X93, X94)) → qsort1_out_ga(.(T69, .(T67, T68)), T9)
U24_ga(T69, T67, T68, T9, le36_out_gg(T67, T69)) → U26_ga(T69, T67, T68, T9, split51_in_ggaa(T68, T69, T93, T94))
U26_ga(T69, T67, T68, T9, split51_out_ggaa(T68, T69, T93, T94)) → U27_ga(T69, T67, T68, T9, qsort1_in_aa(.(T67, T93), X12))
qsort1_in_aa([], []) → qsort1_out_aa([], [])
qsort1_in_aa(.(T14, []), T9) → U19_aa(T14, T9, qsort14_in_a(X12))
U19_aa(T14, T9, qsort14_out_a(X12)) → qsort1_out_aa(.(T14, []), T9)
qsort1_in_aa(.(T14, []), T9) → U20_aa(T14, T9, qsort14_in_a(T17))
U20_aa(T14, T9, qsort14_out_a(T17)) → U21_aa(T14, T9, qsort14_in_a(X13))
U21_aa(T14, T9, qsort14_out_a(X13)) → qsort1_out_aa(.(T14, []), T9)
U20_aa(T14, T9, qsort14_out_a(T17)) → U22_aa(T14, T9, T17, qsort14_in_a(T20))
U22_aa(T14, T9, T17, qsort14_out_a(T20)) → U23_aa(T14, T9, append23_in_gaga(T17, T14, T20, T9))
append23_in_gaga([], T33, T34, .(T33, T34)) → append23_out_gaga([], T33, T34, .(T33, T34))
append23_in_gaga(.(T45, T46), T47, T48, .(T45, T50)) → U1_gaga(T45, T46, T47, T48, T50, append23_in_gaga(T46, T47, T48, T50))
U1_gaga(T45, T46, T47, T48, T50, append23_out_gaga(T46, T47, T48, T50)) → append23_out_gaga(.(T45, T46), T47, T48, .(T45, T50))
U23_aa(T14, T9, append23_out_gaga(T17, T14, T20, T9)) → qsort1_out_aa(.(T14, []), T9)
qsort1_in_aa(.(T69, .(T67, T68)), T9) → U24_aa(T69, T67, T68, T9, le36_in_aa(T67, T69))
le36_in_aa(s(T82), s(T83)) → U2_aa(T82, T83, le36_in_aa(T82, T83))
le36_in_aa(0, s(T90)) → le36_out_aa(0, s(T90))
le36_in_aa(0, 0) → le36_out_aa(0, 0)
U2_aa(T82, T83, le36_out_aa(T82, T83)) → le36_out_aa(s(T82), s(T83))
U24_aa(T69, T67, T68, T9, le36_out_aa(T67, T69)) → qsort1_out_aa(.(T69, .(T67, T68)), T9)
U24_aa(T69, T67, T68, T9, le36_out_aa(T67, T69)) → U25_aa(T69, T67, T68, T9, split51_in_aaaa(T68, T69, X93, X94))
split51_in_aaaa([], T101, [], []) → split51_out_aaaa([], T101, [], [])
split51_in_aaaa(.(T114, T115), T116, .(T114, X167), X168) → U3_aaaa(T114, T115, T116, X167, X168, le36_in_aa(T114, T116))
U3_aaaa(T114, T115, T116, X167, X168, le36_out_aa(T114, T116)) → split51_out_aaaa(.(T114, T115), T116, .(T114, X167), X168)
U3_aaaa(T114, T115, T116, X167, X168, le36_out_aa(T114, T116)) → U4_aaaa(T114, T115, T116, X167, X168, split51_in_aaaa(T115, T116, X167, X168))
split51_in_aaaa(.(T129, T130), T131, X199, .(T129, X200)) → U5_aaaa(T129, T130, T131, X199, X200, gt67_in_aa(T129, T131))
gt67_in_aa(s(T144), s(T145)) → U7_aa(T144, T145, gt67_in_aa(T144, T145))
gt67_in_aa(s(T150), 0) → gt67_out_aa(s(T150), 0)
U7_aa(T144, T145, gt67_out_aa(T144, T145)) → gt67_out_aa(s(T144), s(T145))
U5_aaaa(T129, T130, T131, X199, X200, gt67_out_aa(T129, T131)) → split51_out_aaaa(.(T129, T130), T131, X199, .(T129, X200))
U5_aaaa(T129, T130, T131, X199, X200, gt67_out_aa(T129, T131)) → U6_aaaa(T129, T130, T131, X199, X200, split51_in_agaa(T130, T131, X199, X200))
split51_in_agaa([], T101, [], []) → split51_out_agaa([], T101, [], [])
split51_in_agaa(.(T114, T115), T116, .(T114, X167), X168) → U3_agaa(T114, T115, T116, X167, X168, le36_in_ag(T114, T116))
le36_in_ag(s(T82), s(T83)) → U2_ag(T82, T83, le36_in_ag(T82, T83))
le36_in_ag(0, s(T90)) → le36_out_ag(0, s(T90))
le36_in_ag(0, 0) → le36_out_ag(0, 0)
U2_ag(T82, T83, le36_out_ag(T82, T83)) → le36_out_ag(s(T82), s(T83))
U3_agaa(T114, T115, T116, X167, X168, le36_out_ag(T114, T116)) → split51_out_agaa(.(T114, T115), T116, .(T114, X167), X168)
U3_agaa(T114, T115, T116, X167, X168, le36_out_ag(T114, T116)) → U4_agaa(T114, T115, T116, X167, X168, split51_in_agaa(T115, T116, X167, X168))
split51_in_agaa(.(T129, T130), T131, X199, .(T129, X200)) → U5_agaa(T129, T130, T131, X199, X200, gt67_in_ag(T129, T131))
gt67_in_ag(s(T144), s(T145)) → U7_ag(T144, T145, gt67_in_ag(T144, T145))
gt67_in_ag(s(T150), 0) → gt67_out_ag(s(T150), 0)
U7_ag(T144, T145, gt67_out_ag(T144, T145)) → gt67_out_ag(s(T144), s(T145))
U5_agaa(T129, T130, T131, X199, X200, gt67_out_ag(T129, T131)) → split51_out_agaa(.(T129, T130), T131, X199, .(T129, X200))
U5_agaa(T129, T130, T131, X199, X200, gt67_out_ag(T129, T131)) → U6_agaa(T129, T130, T131, X199, X200, split51_in_agaa(T130, T131, X199, X200))
U6_agaa(T129, T130, T131, X199, X200, split51_out_agaa(T130, T131, X199, X200)) → split51_out_agaa(.(T129, T130), T131, X199, .(T129, X200))
U4_agaa(T114, T115, T116, X167, X168, split51_out_agaa(T115, T116, X167, X168)) → split51_out_agaa(.(T114, T115), T116, .(T114, X167), X168)
U6_aaaa(T129, T130, T131, X199, X200, split51_out_agaa(T130, T131, X199, X200)) → split51_out_aaaa(.(T129, T130), T131, X199, .(T129, X200))
U4_aaaa(T114, T115, T116, X167, X168, split51_out_aaaa(T115, T116, X167, X168)) → split51_out_aaaa(.(T114, T115), T116, .(T114, X167), X168)
U25_aa(T69, T67, T68, T9, split51_out_aaaa(T68, T69, X93, X94)) → qsort1_out_aa(.(T69, .(T67, T68)), T9)
U24_aa(T69, T67, T68, T9, le36_out_aa(T67, T69)) → U26_aa(T69, T67, T68, T9, split51_in_aaaa(T68, T69, T93, T94))
U26_aa(T69, T67, T68, T9, split51_out_aaaa(T68, T69, T93, T94)) → U27_aa(T69, T67, T68, T9, qsort1_in_aa(.(T67, T93), X12))
qsort1_in_aa(.(T215, .(T213, T214)), T9) → U30_aa(T215, T213, T214, T9, gt67_in_aa(T213, T215))
U30_aa(T215, T213, T214, T9, gt67_out_aa(T213, T215)) → qsort1_out_aa(.(T215, .(T213, T214)), T9)
U30_aa(T215, T213, T214, T9, gt67_out_aa(T213, T215)) → U31_aa(T215, T213, T214, T9, split51_in_agaa(T214, T215, X323, X324))
U31_aa(T215, T213, T214, T9, split51_out_agaa(T214, T215, X323, X324)) → qsort1_out_aa(.(T215, .(T213, T214)), T9)
U30_aa(T215, T213, T214, T9, gt67_out_aa(T213, T215)) → U32_aa(T215, T213, T214, T9, split51_in_agaa(T214, T215, T222, T223))
U32_aa(T215, T213, T214, T9, split51_out_agaa(T214, T215, T222, T223)) → U33_aa(T215, T213, T214, T9, qsort79_in_aa(T222, X12))
qsort79_in_aa([], []) → qsort79_out_aa([], [])
qsort79_in_aa(.(T163, T164), X265) → U8_aa(T163, T164, X265, split51_in_aaaa(T164, T163, X261, X262))
U8_aa(T163, T164, X265, split51_out_aaaa(T164, T163, X261, X262)) → qsort79_out_aa(.(T163, T164), X265)
qsort79_in_aa(.(T163, T164), X265) → U9_aa(T163, T164, X265, split51_in_aaaa(T164, T163, T167, T168))
U9_aa(T163, T164, X265, split51_out_aaaa(T164, T163, T167, T168)) → U10_aa(T163, T164, X265, qsort79_in_aa(T167, X263))
U10_aa(T163, T164, X265, qsort79_out_aa(T167, X263)) → qsort79_out_aa(.(T163, T164), X265)
U9_aa(T163, T164, X265, split51_out_aaaa(T164, T163, T167, T168)) → U11_aa(T163, T164, X265, T168, qsort79_in_aa(T167, T171))
U11_aa(T163, T164, X265, T168, qsort79_out_aa(T167, T171)) → U12_aa(T163, T164, X265, qsort79_in_aa(T168, X264))
U12_aa(T163, T164, X265, qsort79_out_aa(T168, X264)) → qsort79_out_aa(.(T163, T164), X265)
U11_aa(T163, T164, X265, T168, qsort79_out_aa(T167, T171)) → U13_aa(T163, T164, X265, T171, qsort79_in_aa(T168, T172))
U13_aa(T163, T164, X265, T171, qsort79_out_aa(T168, T172)) → U14_aa(T163, T164, X265, append94_in_aaaa(T171, T163, T172, X265))
append94_in_aaaa([], T185, T186, .(T185, T186)) → append94_out_aaaa([], T185, T186, .(T185, T186))
append94_in_aaaa(.(T195, T196), T197, T198, .(T195, X295)) → U15_aaaa(T195, T196, T197, T198, X295, append94_in_aaaa(T196, T197, T198, X295))
U15_aaaa(T195, T196, T197, T198, X295, append94_out_aaaa(T196, T197, T198, X295)) → append94_out_aaaa(.(T195, T196), T197, T198, .(T195, X295))
U14_aa(T163, T164, X265, append94_out_aaaa(T171, T163, T172, X265)) → qsort79_out_aa(.(T163, T164), X265)
U33_aa(T215, T213, T214, T9, qsort79_out_aa(T222, X12)) → qsort1_out_aa(.(T215, .(T213, T214)), T9)
U32_aa(T215, T213, T214, T9, split51_out_agaa(T214, T215, T222, T223)) → U34_aa(T215, T213, T214, T9, T223, qsort79_in_aa(T222, T226))
U34_aa(T215, T213, T214, T9, T223, qsort79_out_aa(T222, T226)) → U35_aa(T215, T213, T214, T9, p78_in_aaaga(.(T213, T223), X13, T226, T215, T9))
p78_in_aaaga(T94, X13, T155, T69, T9) → U16_aaaga(T94, X13, T155, T69, T9, qsort79_in_aa(T94, X13))
U16_aaaga(T94, X13, T155, T69, T9, qsort79_out_aa(T94, X13)) → p78_out_aaaga(T94, X13, T155, T69, T9)
p78_in_aaaga(T94, T158, T155, T69, T9) → U17_aaaga(T94, T158, T155, T69, T9, qsort79_in_aa(T94, T158))
U17_aaaga(T94, T158, T155, T69, T9, qsort79_out_aa(T94, T158)) → U18_aaaga(T94, T158, T155, T69, T9, append23_in_agaa(T155, T69, T158, T9))
append23_in_agaa([], T33, T34, .(T33, T34)) → append23_out_agaa([], T33, T34, .(T33, T34))
append23_in_agaa(.(T45, T46), T47, T48, .(T45, T50)) → U1_agaa(T45, T46, T47, T48, T50, append23_in_agaa(T46, T47, T48, T50))
U1_agaa(T45, T46, T47, T48, T50, append23_out_agaa(T46, T47, T48, T50)) → append23_out_agaa(.(T45, T46), T47, T48, .(T45, T50))
U18_aaaga(T94, T158, T155, T69, T9, append23_out_agaa(T155, T69, T158, T9)) → p78_out_aaaga(T94, T158, T155, T69, T9)
U35_aa(T215, T213, T214, T9, p78_out_aaaga(.(T213, T223), X13, T226, T215, T9)) → qsort1_out_aa(.(T215, .(T213, T214)), T9)
U27_aa(T69, T67, T68, T9, qsort1_out_aa(.(T67, T93), X12)) → qsort1_out_aa(.(T69, .(T67, T68)), T9)
U26_aa(T69, T67, T68, T9, split51_out_aaaa(T68, T69, T93, T94)) → U28_aa(T69, T67, T68, T9, T94, qsort1_in_aa(.(T67, T93), T155))
U28_aa(T69, T67, T68, T9, T94, qsort1_out_aa(.(T67, T93), T155)) → U29_aa(T69, T67, T68, T9, p78_in_aaaaa(T94, X13, T155, T69, T9))
p78_in_aaaaa(T94, X13, T155, T69, T9) → U16_aaaaa(T94, X13, T155, T69, T9, qsort79_in_aa(T94, X13))
U16_aaaaa(T94, X13, T155, T69, T9, qsort79_out_aa(T94, X13)) → p78_out_aaaaa(T94, X13, T155, T69, T9)
p78_in_aaaaa(T94, T158, T155, T69, T9) → U17_aaaaa(T94, T158, T155, T69, T9, qsort79_in_aa(T94, T158))
U17_aaaaa(T94, T158, T155, T69, T9, qsort79_out_aa(T94, T158)) → U18_aaaaa(T94, T158, T155, T69, T9, append23_in_aaaa(T155, T69, T158, T9))
append23_in_aaaa([], T33, T34, .(T33, T34)) → append23_out_aaaa([], T33, T34, .(T33, T34))
append23_in_aaaa(.(T45, T46), T47, T48, .(T45, T50)) → U1_aaaa(T45, T46, T47, T48, T50, append23_in_aaaa(T46, T47, T48, T50))
U1_aaaa(T45, T46, T47, T48, T50, append23_out_aaaa(T46, T47, T48, T50)) → append23_out_aaaa(.(T45, T46), T47, T48, .(T45, T50))
U18_aaaaa(T94, T158, T155, T69, T9, append23_out_aaaa(T155, T69, T158, T9)) → p78_out_aaaaa(T94, T158, T155, T69, T9)
U29_aa(T69, T67, T68, T9, p78_out_aaaaa(T94, X13, T155, T69, T9)) → qsort1_out_aa(.(T69, .(T67, T68)), T9)
U27_ga(T69, T67, T68, T9, qsort1_out_aa(.(T67, T93), X12)) → qsort1_out_ga(.(T69, .(T67, T68)), T9)
U26_ga(T69, T67, T68, T9, split51_out_ggaa(T68, T69, T93, T94)) → U28_ga(T69, T67, T68, T9, T94, qsort1_in_aa(.(T67, T93), T155))
U28_ga(T69, T67, T68, T9, T94, qsort1_out_aa(.(T67, T93), T155)) → U29_ga(T69, T67, T68, T9, p78_in_aaaga(T94, X13, T155, T69, T9))
U29_ga(T69, T67, T68, T9, p78_out_aaaga(T94, X13, T155, T69, T9)) → qsort1_out_ga(.(T69, .(T67, T68)), T9)
qsort1_in_ga(.(T215, .(T213, T214)), T9) → U30_ga(T215, T213, T214, T9, gt67_in_gg(T213, T215))
U30_ga(T215, T213, T214, T9, gt67_out_gg(T213, T215)) → qsort1_out_ga(.(T215, .(T213, T214)), T9)
U30_ga(T215, T213, T214, T9, gt67_out_gg(T213, T215)) → U31_ga(T215, T213, T214, T9, split51_in_ggaa(T214, T215, X323, X324))
U31_ga(T215, T213, T214, T9, split51_out_ggaa(T214, T215, X323, X324)) → qsort1_out_ga(.(T215, .(T213, T214)), T9)
U30_ga(T215, T213, T214, T9, gt67_out_gg(T213, T215)) → U32_ga(T215, T213, T214, T9, split51_in_ggaa(T214, T215, T222, T223))
U32_ga(T215, T213, T214, T9, split51_out_ggaa(T214, T215, T222, T223)) → U33_ga(T215, T213, T214, T9, qsort79_in_aa(T222, X12))
U33_ga(T215, T213, T214, T9, qsort79_out_aa(T222, X12)) → qsort1_out_ga(.(T215, .(T213, T214)), T9)
U32_ga(T215, T213, T214, T9, split51_out_ggaa(T214, T215, T222, T223)) → U34_ga(T215, T213, T214, T9, T223, qsort79_in_aa(T222, T226))
U34_ga(T215, T213, T214, T9, T223, qsort79_out_aa(T222, T226)) → U35_ga(T215, T213, T214, T9, p78_in_aaaga(.(T213, T223), X13, T226, T215, T9))
U35_ga(T215, T213, T214, T9, p78_out_aaaga(.(T213, T223), X13, T226, T215, T9)) → qsort1_out_ga(.(T215, .(T213, T214)), T9)
SPLIT51_IN_AAAA(.(T114, T115), T116, .(T114, X167), X168) → U3_AAAA(T114, T115, T116, X167, X168, le36_in_aa(T114, T116))
U3_AAAA(T114, T115, T116, X167, X168, le36_out_aa(T114, T116)) → SPLIT51_IN_AAAA(T115, T116, X167, X168)
le36_in_aa(s(T82), s(T83)) → U2_aa(T82, T83, le36_in_aa(T82, T83))
le36_in_aa(0, s(T90)) → le36_out_aa(0, s(T90))
le36_in_aa(0, 0) → le36_out_aa(0, 0)
U2_aa(T82, T83, le36_out_aa(T82, T83)) → le36_out_aa(s(T82), s(T83))
SPLIT51_IN_AAAA → U3_AAAA(le36_in_aa)
U3_AAAA(le36_out_aa(T114)) → SPLIT51_IN_AAAA
le36_in_aa → U2_aa(le36_in_aa)
le36_in_aa → le36_out_aa(0)
U2_aa(le36_out_aa(T82)) → le36_out_aa(s(T82))
le36_in_aa
U2_aa(x0)
SPLIT51_IN_AAAA → U3_AAAA(U2_aa(le36_in_aa))
SPLIT51_IN_AAAA → U3_AAAA(le36_out_aa(0))
U3_AAAA(le36_out_aa(T114)) → SPLIT51_IN_AAAA
SPLIT51_IN_AAAA → U3_AAAA(U2_aa(le36_in_aa))
SPLIT51_IN_AAAA → U3_AAAA(le36_out_aa(0))
le36_in_aa → U2_aa(le36_in_aa)
le36_in_aa → le36_out_aa(0)
U2_aa(le36_out_aa(T82)) → le36_out_aa(s(T82))
le36_in_aa
U2_aa(x0)
QSORT79_IN_AA(.(T163, T164), X265) → U9_AA(T163, T164, X265, split51_in_aaaa(T164, T163, T167, T168))
U9_AA(T163, T164, X265, split51_out_aaaa(T164, T163, T167, T168)) → QSORT79_IN_AA(T167, X263)
U9_AA(T163, T164, X265, split51_out_aaaa(T164, T163, T167, T168)) → U11_AA(T163, T164, X265, T168, qsort79_in_aa(T167, T171))
U11_AA(T163, T164, X265, T168, qsort79_out_aa(T167, T171)) → QSORT79_IN_AA(T168, X264)
qsort1_in_ga([], []) → qsort1_out_ga([], [])
qsort1_in_ga(.(T14, []), T9) → U19_ga(T14, T9, qsort14_in_a(X12))
qsort14_in_a([]) → qsort14_out_a([])
U19_ga(T14, T9, qsort14_out_a(X12)) → qsort1_out_ga(.(T14, []), T9)
qsort1_in_ga(.(T14, []), T9) → U20_ga(T14, T9, qsort14_in_a(T17))
U20_ga(T14, T9, qsort14_out_a(T17)) → U21_ga(T14, T9, qsort14_in_a(X13))
U21_ga(T14, T9, qsort14_out_a(X13)) → qsort1_out_ga(.(T14, []), T9)
U20_ga(T14, T9, qsort14_out_a(T17)) → U22_ga(T14, T9, T17, qsort14_in_a(T20))
U22_ga(T14, T9, T17, qsort14_out_a(T20)) → U23_ga(T14, T9, append23_in_ggga(T17, T14, T20, T9))
append23_in_ggga([], T33, T34, .(T33, T34)) → append23_out_ggga([], T33, T34, .(T33, T34))
append23_in_ggga(.(T45, T46), T47, T48, .(T45, T50)) → U1_ggga(T45, T46, T47, T48, T50, append23_in_ggga(T46, T47, T48, T50))
U1_ggga(T45, T46, T47, T48, T50, append23_out_ggga(T46, T47, T48, T50)) → append23_out_ggga(.(T45, T46), T47, T48, .(T45, T50))
U23_ga(T14, T9, append23_out_ggga(T17, T14, T20, T9)) → qsort1_out_ga(.(T14, []), T9)
qsort1_in_ga(.(T69, .(T67, T68)), T9) → U24_ga(T69, T67, T68, T9, le36_in_gg(T67, T69))
le36_in_gg(s(T82), s(T83)) → U2_gg(T82, T83, le36_in_gg(T82, T83))
le36_in_gg(0, s(T90)) → le36_out_gg(0, s(T90))
le36_in_gg(0, 0) → le36_out_gg(0, 0)
U2_gg(T82, T83, le36_out_gg(T82, T83)) → le36_out_gg(s(T82), s(T83))
U24_ga(T69, T67, T68, T9, le36_out_gg(T67, T69)) → qsort1_out_ga(.(T69, .(T67, T68)), T9)
U24_ga(T69, T67, T68, T9, le36_out_gg(T67, T69)) → U25_ga(T69, T67, T68, T9, split51_in_ggaa(T68, T69, X93, X94))
split51_in_ggaa([], T101, [], []) → split51_out_ggaa([], T101, [], [])
split51_in_ggaa(.(T114, T115), T116, .(T114, X167), X168) → U3_ggaa(T114, T115, T116, X167, X168, le36_in_gg(T114, T116))
U3_ggaa(T114, T115, T116, X167, X168, le36_out_gg(T114, T116)) → split51_out_ggaa(.(T114, T115), T116, .(T114, X167), X168)
U3_ggaa(T114, T115, T116, X167, X168, le36_out_gg(T114, T116)) → U4_ggaa(T114, T115, T116, X167, X168, split51_in_ggaa(T115, T116, X167, X168))
split51_in_ggaa(.(T129, T130), T131, X199, .(T129, X200)) → U5_ggaa(T129, T130, T131, X199, X200, gt67_in_gg(T129, T131))
gt67_in_gg(s(T144), s(T145)) → U7_gg(T144, T145, gt67_in_gg(T144, T145))
gt67_in_gg(s(T150), 0) → gt67_out_gg(s(T150), 0)
U7_gg(T144, T145, gt67_out_gg(T144, T145)) → gt67_out_gg(s(T144), s(T145))
U5_ggaa(T129, T130, T131, X199, X200, gt67_out_gg(T129, T131)) → split51_out_ggaa(.(T129, T130), T131, X199, .(T129, X200))
U5_ggaa(T129, T130, T131, X199, X200, gt67_out_gg(T129, T131)) → U6_ggaa(T129, T130, T131, X199, X200, split51_in_ggaa(T130, T131, X199, X200))
U6_ggaa(T129, T130, T131, X199, X200, split51_out_ggaa(T130, T131, X199, X200)) → split51_out_ggaa(.(T129, T130), T131, X199, .(T129, X200))
U4_ggaa(T114, T115, T116, X167, X168, split51_out_ggaa(T115, T116, X167, X168)) → split51_out_ggaa(.(T114, T115), T116, .(T114, X167), X168)
U25_ga(T69, T67, T68, T9, split51_out_ggaa(T68, T69, X93, X94)) → qsort1_out_ga(.(T69, .(T67, T68)), T9)
U24_ga(T69, T67, T68, T9, le36_out_gg(T67, T69)) → U26_ga(T69, T67, T68, T9, split51_in_ggaa(T68, T69, T93, T94))
U26_ga(T69, T67, T68, T9, split51_out_ggaa(T68, T69, T93, T94)) → U27_ga(T69, T67, T68, T9, qsort1_in_aa(.(T67, T93), X12))
qsort1_in_aa([], []) → qsort1_out_aa([], [])
qsort1_in_aa(.(T14, []), T9) → U19_aa(T14, T9, qsort14_in_a(X12))
U19_aa(T14, T9, qsort14_out_a(X12)) → qsort1_out_aa(.(T14, []), T9)
qsort1_in_aa(.(T14, []), T9) → U20_aa(T14, T9, qsort14_in_a(T17))
U20_aa(T14, T9, qsort14_out_a(T17)) → U21_aa(T14, T9, qsort14_in_a(X13))
U21_aa(T14, T9, qsort14_out_a(X13)) → qsort1_out_aa(.(T14, []), T9)
U20_aa(T14, T9, qsort14_out_a(T17)) → U22_aa(T14, T9, T17, qsort14_in_a(T20))
U22_aa(T14, T9, T17, qsort14_out_a(T20)) → U23_aa(T14, T9, append23_in_gaga(T17, T14, T20, T9))
append23_in_gaga([], T33, T34, .(T33, T34)) → append23_out_gaga([], T33, T34, .(T33, T34))
append23_in_gaga(.(T45, T46), T47, T48, .(T45, T50)) → U1_gaga(T45, T46, T47, T48, T50, append23_in_gaga(T46, T47, T48, T50))
U1_gaga(T45, T46, T47, T48, T50, append23_out_gaga(T46, T47, T48, T50)) → append23_out_gaga(.(T45, T46), T47, T48, .(T45, T50))
U23_aa(T14, T9, append23_out_gaga(T17, T14, T20, T9)) → qsort1_out_aa(.(T14, []), T9)
qsort1_in_aa(.(T69, .(T67, T68)), T9) → U24_aa(T69, T67, T68, T9, le36_in_aa(T67, T69))
le36_in_aa(s(T82), s(T83)) → U2_aa(T82, T83, le36_in_aa(T82, T83))
le36_in_aa(0, s(T90)) → le36_out_aa(0, s(T90))
le36_in_aa(0, 0) → le36_out_aa(0, 0)
U2_aa(T82, T83, le36_out_aa(T82, T83)) → le36_out_aa(s(T82), s(T83))
U24_aa(T69, T67, T68, T9, le36_out_aa(T67, T69)) → qsort1_out_aa(.(T69, .(T67, T68)), T9)
U24_aa(T69, T67, T68, T9, le36_out_aa(T67, T69)) → U25_aa(T69, T67, T68, T9, split51_in_aaaa(T68, T69, X93, X94))
split51_in_aaaa([], T101, [], []) → split51_out_aaaa([], T101, [], [])
split51_in_aaaa(.(T114, T115), T116, .(T114, X167), X168) → U3_aaaa(T114, T115, T116, X167, X168, le36_in_aa(T114, T116))
U3_aaaa(T114, T115, T116, X167, X168, le36_out_aa(T114, T116)) → split51_out_aaaa(.(T114, T115), T116, .(T114, X167), X168)
U3_aaaa(T114, T115, T116, X167, X168, le36_out_aa(T114, T116)) → U4_aaaa(T114, T115, T116, X167, X168, split51_in_aaaa(T115, T116, X167, X168))
split51_in_aaaa(.(T129, T130), T131, X199, .(T129, X200)) → U5_aaaa(T129, T130, T131, X199, X200, gt67_in_aa(T129, T131))
gt67_in_aa(s(T144), s(T145)) → U7_aa(T144, T145, gt67_in_aa(T144, T145))
gt67_in_aa(s(T150), 0) → gt67_out_aa(s(T150), 0)
U7_aa(T144, T145, gt67_out_aa(T144, T145)) → gt67_out_aa(s(T144), s(T145))
U5_aaaa(T129, T130, T131, X199, X200, gt67_out_aa(T129, T131)) → split51_out_aaaa(.(T129, T130), T131, X199, .(T129, X200))
U5_aaaa(T129, T130, T131, X199, X200, gt67_out_aa(T129, T131)) → U6_aaaa(T129, T130, T131, X199, X200, split51_in_agaa(T130, T131, X199, X200))
split51_in_agaa([], T101, [], []) → split51_out_agaa([], T101, [], [])
split51_in_agaa(.(T114, T115), T116, .(T114, X167), X168) → U3_agaa(T114, T115, T116, X167, X168, le36_in_ag(T114, T116))
le36_in_ag(s(T82), s(T83)) → U2_ag(T82, T83, le36_in_ag(T82, T83))
le36_in_ag(0, s(T90)) → le36_out_ag(0, s(T90))
le36_in_ag(0, 0) → le36_out_ag(0, 0)
U2_ag(T82, T83, le36_out_ag(T82, T83)) → le36_out_ag(s(T82), s(T83))
U3_agaa(T114, T115, T116, X167, X168, le36_out_ag(T114, T116)) → split51_out_agaa(.(T114, T115), T116, .(T114, X167), X168)
U3_agaa(T114, T115, T116, X167, X168, le36_out_ag(T114, T116)) → U4_agaa(T114, T115, T116, X167, X168, split51_in_agaa(T115, T116, X167, X168))
split51_in_agaa(.(T129, T130), T131, X199, .(T129, X200)) → U5_agaa(T129, T130, T131, X199, X200, gt67_in_ag(T129, T131))
gt67_in_ag(s(T144), s(T145)) → U7_ag(T144, T145, gt67_in_ag(T144, T145))
gt67_in_ag(s(T150), 0) → gt67_out_ag(s(T150), 0)
U7_ag(T144, T145, gt67_out_ag(T144, T145)) → gt67_out_ag(s(T144), s(T145))
U5_agaa(T129, T130, T131, X199, X200, gt67_out_ag(T129, T131)) → split51_out_agaa(.(T129, T130), T131, X199, .(T129, X200))
U5_agaa(T129, T130, T131, X199, X200, gt67_out_ag(T129, T131)) → U6_agaa(T129, T130, T131, X199, X200, split51_in_agaa(T130, T131, X199, X200))
U6_agaa(T129, T130, T131, X199, X200, split51_out_agaa(T130, T131, X199, X200)) → split51_out_agaa(.(T129, T130), T131, X199, .(T129, X200))
U4_agaa(T114, T115, T116, X167, X168, split51_out_agaa(T115, T116, X167, X168)) → split51_out_agaa(.(T114, T115), T116, .(T114, X167), X168)
U6_aaaa(T129, T130, T131, X199, X200, split51_out_agaa(T130, T131, X199, X200)) → split51_out_aaaa(.(T129, T130), T131, X199, .(T129, X200))
U4_aaaa(T114, T115, T116, X167, X168, split51_out_aaaa(T115, T116, X167, X168)) → split51_out_aaaa(.(T114, T115), T116, .(T114, X167), X168)
U25_aa(T69, T67, T68, T9, split51_out_aaaa(T68, T69, X93, X94)) → qsort1_out_aa(.(T69, .(T67, T68)), T9)
U24_aa(T69, T67, T68, T9, le36_out_aa(T67, T69)) → U26_aa(T69, T67, T68, T9, split51_in_aaaa(T68, T69, T93, T94))
U26_aa(T69, T67, T68, T9, split51_out_aaaa(T68, T69, T93, T94)) → U27_aa(T69, T67, T68, T9, qsort1_in_aa(.(T67, T93), X12))
qsort1_in_aa(.(T215, .(T213, T214)), T9) → U30_aa(T215, T213, T214, T9, gt67_in_aa(T213, T215))
U30_aa(T215, T213, T214, T9, gt67_out_aa(T213, T215)) → qsort1_out_aa(.(T215, .(T213, T214)), T9)
U30_aa(T215, T213, T214, T9, gt67_out_aa(T213, T215)) → U31_aa(T215, T213, T214, T9, split51_in_agaa(T214, T215, X323, X324))
U31_aa(T215, T213, T214, T9, split51_out_agaa(T214, T215, X323, X324)) → qsort1_out_aa(.(T215, .(T213, T214)), T9)
U30_aa(T215, T213, T214, T9, gt67_out_aa(T213, T215)) → U32_aa(T215, T213, T214, T9, split51_in_agaa(T214, T215, T222, T223))
U32_aa(T215, T213, T214, T9, split51_out_agaa(T214, T215, T222, T223)) → U33_aa(T215, T213, T214, T9, qsort79_in_aa(T222, X12))
qsort79_in_aa([], []) → qsort79_out_aa([], [])
qsort79_in_aa(.(T163, T164), X265) → U8_aa(T163, T164, X265, split51_in_aaaa(T164, T163, X261, X262))
U8_aa(T163, T164, X265, split51_out_aaaa(T164, T163, X261, X262)) → qsort79_out_aa(.(T163, T164), X265)
qsort79_in_aa(.(T163, T164), X265) → U9_aa(T163, T164, X265, split51_in_aaaa(T164, T163, T167, T168))
U9_aa(T163, T164, X265, split51_out_aaaa(T164, T163, T167, T168)) → U10_aa(T163, T164, X265, qsort79_in_aa(T167, X263))
U10_aa(T163, T164, X265, qsort79_out_aa(T167, X263)) → qsort79_out_aa(.(T163, T164), X265)
U9_aa(T163, T164, X265, split51_out_aaaa(T164, T163, T167, T168)) → U11_aa(T163, T164, X265, T168, qsort79_in_aa(T167, T171))
U11_aa(T163, T164, X265, T168, qsort79_out_aa(T167, T171)) → U12_aa(T163, T164, X265, qsort79_in_aa(T168, X264))
U12_aa(T163, T164, X265, qsort79_out_aa(T168, X264)) → qsort79_out_aa(.(T163, T164), X265)
U11_aa(T163, T164, X265, T168, qsort79_out_aa(T167, T171)) → U13_aa(T163, T164, X265, T171, qsort79_in_aa(T168, T172))
U13_aa(T163, T164, X265, T171, qsort79_out_aa(T168, T172)) → U14_aa(T163, T164, X265, append94_in_aaaa(T171, T163, T172, X265))
append94_in_aaaa([], T185, T186, .(T185, T186)) → append94_out_aaaa([], T185, T186, .(T185, T186))
append94_in_aaaa(.(T195, T196), T197, T198, .(T195, X295)) → U15_aaaa(T195, T196, T197, T198, X295, append94_in_aaaa(T196, T197, T198, X295))
U15_aaaa(T195, T196, T197, T198, X295, append94_out_aaaa(T196, T197, T198, X295)) → append94_out_aaaa(.(T195, T196), T197, T198, .(T195, X295))
U14_aa(T163, T164, X265, append94_out_aaaa(T171, T163, T172, X265)) → qsort79_out_aa(.(T163, T164), X265)
U33_aa(T215, T213, T214, T9, qsort79_out_aa(T222, X12)) → qsort1_out_aa(.(T215, .(T213, T214)), T9)
U32_aa(T215, T213, T214, T9, split51_out_agaa(T214, T215, T222, T223)) → U34_aa(T215, T213, T214, T9, T223, qsort79_in_aa(T222, T226))
U34_aa(T215, T213, T214, T9, T223, qsort79_out_aa(T222, T226)) → U35_aa(T215, T213, T214, T9, p78_in_aaaga(.(T213, T223), X13, T226, T215, T9))
p78_in_aaaga(T94, X13, T155, T69, T9) → U16_aaaga(T94, X13, T155, T69, T9, qsort79_in_aa(T94, X13))
U16_aaaga(T94, X13, T155, T69, T9, qsort79_out_aa(T94, X13)) → p78_out_aaaga(T94, X13, T155, T69, T9)
p78_in_aaaga(T94, T158, T155, T69, T9) → U17_aaaga(T94, T158, T155, T69, T9, qsort79_in_aa(T94, T158))
U17_aaaga(T94, T158, T155, T69, T9, qsort79_out_aa(T94, T158)) → U18_aaaga(T94, T158, T155, T69, T9, append23_in_agaa(T155, T69, T158, T9))
append23_in_agaa([], T33, T34, .(T33, T34)) → append23_out_agaa([], T33, T34, .(T33, T34))
append23_in_agaa(.(T45, T46), T47, T48, .(T45, T50)) → U1_agaa(T45, T46, T47, T48, T50, append23_in_agaa(T46, T47, T48, T50))
U1_agaa(T45, T46, T47, T48, T50, append23_out_agaa(T46, T47, T48, T50)) → append23_out_agaa(.(T45, T46), T47, T48, .(T45, T50))
U18_aaaga(T94, T158, T155, T69, T9, append23_out_agaa(T155, T69, T158, T9)) → p78_out_aaaga(T94, T158, T155, T69, T9)
U35_aa(T215, T213, T214, T9, p78_out_aaaga(.(T213, T223), X13, T226, T215, T9)) → qsort1_out_aa(.(T215, .(T213, T214)), T9)
U27_aa(T69, T67, T68, T9, qsort1_out_aa(.(T67, T93), X12)) → qsort1_out_aa(.(T69, .(T67, T68)), T9)
U26_aa(T69, T67, T68, T9, split51_out_aaaa(T68, T69, T93, T94)) → U28_aa(T69, T67, T68, T9, T94, qsort1_in_aa(.(T67, T93), T155))
U28_aa(T69, T67, T68, T9, T94, qsort1_out_aa(.(T67, T93), T155)) → U29_aa(T69, T67, T68, T9, p78_in_aaaaa(T94, X13, T155, T69, T9))
p78_in_aaaaa(T94, X13, T155, T69, T9) → U16_aaaaa(T94, X13, T155, T69, T9, qsort79_in_aa(T94, X13))
U16_aaaaa(T94, X13, T155, T69, T9, qsort79_out_aa(T94, X13)) → p78_out_aaaaa(T94, X13, T155, T69, T9)
p78_in_aaaaa(T94, T158, T155, T69, T9) → U17_aaaaa(T94, T158, T155, T69, T9, qsort79_in_aa(T94, T158))
U17_aaaaa(T94, T158, T155, T69, T9, qsort79_out_aa(T94, T158)) → U18_aaaaa(T94, T158, T155, T69, T9, append23_in_aaaa(T155, T69, T158, T9))
append23_in_aaaa([], T33, T34, .(T33, T34)) → append23_out_aaaa([], T33, T34, .(T33, T34))
append23_in_aaaa(.(T45, T46), T47, T48, .(T45, T50)) → U1_aaaa(T45, T46, T47, T48, T50, append23_in_aaaa(T46, T47, T48, T50))
U1_aaaa(T45, T46, T47, T48, T50, append23_out_aaaa(T46, T47, T48, T50)) → append23_out_aaaa(.(T45, T46), T47, T48, .(T45, T50))
U18_aaaaa(T94, T158, T155, T69, T9, append23_out_aaaa(T155, T69, T158, T9)) → p78_out_aaaaa(T94, T158, T155, T69, T9)
U29_aa(T69, T67, T68, T9, p78_out_aaaaa(T94, X13, T155, T69, T9)) → qsort1_out_aa(.(T69, .(T67, T68)), T9)
U27_ga(T69, T67, T68, T9, qsort1_out_aa(.(T67, T93), X12)) → qsort1_out_ga(.(T69, .(T67, T68)), T9)
U26_ga(T69, T67, T68, T9, split51_out_ggaa(T68, T69, T93, T94)) → U28_ga(T69, T67, T68, T9, T94, qsort1_in_aa(.(T67, T93), T155))
U28_ga(T69, T67, T68, T9, T94, qsort1_out_aa(.(T67, T93), T155)) → U29_ga(T69, T67, T68, T9, p78_in_aaaga(T94, X13, T155, T69, T9))
U29_ga(T69, T67, T68, T9, p78_out_aaaga(T94, X13, T155, T69, T9)) → qsort1_out_ga(.(T69, .(T67, T68)), T9)
qsort1_in_ga(.(T215, .(T213, T214)), T9) → U30_ga(T215, T213, T214, T9, gt67_in_gg(T213, T215))
U30_ga(T215, T213, T214, T9, gt67_out_gg(T213, T215)) → qsort1_out_ga(.(T215, .(T213, T214)), T9)
U30_ga(T215, T213, T214, T9, gt67_out_gg(T213, T215)) → U31_ga(T215, T213, T214, T9, split51_in_ggaa(T214, T215, X323, X324))
U31_ga(T215, T213, T214, T9, split51_out_ggaa(T214, T215, X323, X324)) → qsort1_out_ga(.(T215, .(T213, T214)), T9)
U30_ga(T215, T213, T214, T9, gt67_out_gg(T213, T215)) → U32_ga(T215, T213, T214, T9, split51_in_ggaa(T214, T215, T222, T223))
U32_ga(T215, T213, T214, T9, split51_out_ggaa(T214, T215, T222, T223)) → U33_ga(T215, T213, T214, T9, qsort79_in_aa(T222, X12))
U33_ga(T215, T213, T214, T9, qsort79_out_aa(T222, X12)) → qsort1_out_ga(.(T215, .(T213, T214)), T9)
U32_ga(T215, T213, T214, T9, split51_out_ggaa(T214, T215, T222, T223)) → U34_ga(T215, T213, T214, T9, T223, qsort79_in_aa(T222, T226))
U34_ga(T215, T213, T214, T9, T223, qsort79_out_aa(T222, T226)) → U35_ga(T215, T213, T214, T9, p78_in_aaaga(.(T213, T223), X13, T226, T215, T9))
U35_ga(T215, T213, T214, T9, p78_out_aaaga(.(T213, T223), X13, T226, T215, T9)) → qsort1_out_ga(.(T215, .(T213, T214)), T9)
QSORT79_IN_AA(.(T163, T164), X265) → U9_AA(T163, T164, X265, split51_in_aaaa(T164, T163, T167, T168))
U9_AA(T163, T164, X265, split51_out_aaaa(T164, T163, T167, T168)) → QSORT79_IN_AA(T167, X263)
U9_AA(T163, T164, X265, split51_out_aaaa(T164, T163, T167, T168)) → U11_AA(T163, T164, X265, T168, qsort79_in_aa(T167, T171))
U11_AA(T163, T164, X265, T168, qsort79_out_aa(T167, T171)) → QSORT79_IN_AA(T168, X264)
split51_in_aaaa([], T101, [], []) → split51_out_aaaa([], T101, [], [])
split51_in_aaaa(.(T114, T115), T116, .(T114, X167), X168) → U3_aaaa(T114, T115, T116, X167, X168, le36_in_aa(T114, T116))
split51_in_aaaa(.(T129, T130), T131, X199, .(T129, X200)) → U5_aaaa(T129, T130, T131, X199, X200, gt67_in_aa(T129, T131))
qsort79_in_aa([], []) → qsort79_out_aa([], [])
qsort79_in_aa(.(T163, T164), X265) → U8_aa(T163, T164, X265, split51_in_aaaa(T164, T163, X261, X262))
qsort79_in_aa(.(T163, T164), X265) → U9_aa(T163, T164, X265, split51_in_aaaa(T164, T163, T167, T168))
U3_aaaa(T114, T115, T116, X167, X168, le36_out_aa(T114, T116)) → split51_out_aaaa(.(T114, T115), T116, .(T114, X167), X168)
U3_aaaa(T114, T115, T116, X167, X168, le36_out_aa(T114, T116)) → U4_aaaa(T114, T115, T116, X167, X168, split51_in_aaaa(T115, T116, X167, X168))
U5_aaaa(T129, T130, T131, X199, X200, gt67_out_aa(T129, T131)) → split51_out_aaaa(.(T129, T130), T131, X199, .(T129, X200))
U5_aaaa(T129, T130, T131, X199, X200, gt67_out_aa(T129, T131)) → U6_aaaa(T129, T130, T131, X199, X200, split51_in_agaa(T130, T131, X199, X200))
U8_aa(T163, T164, X265, split51_out_aaaa(T164, T163, X261, X262)) → qsort79_out_aa(.(T163, T164), X265)
U9_aa(T163, T164, X265, split51_out_aaaa(T164, T163, T167, T168)) → U10_aa(T163, T164, X265, qsort79_in_aa(T167, X263))
U9_aa(T163, T164, X265, split51_out_aaaa(T164, T163, T167, T168)) → U11_aa(T163, T164, X265, T168, qsort79_in_aa(T167, T171))
le36_in_aa(s(T82), s(T83)) → U2_aa(T82, T83, le36_in_aa(T82, T83))
le36_in_aa(0, s(T90)) → le36_out_aa(0, s(T90))
le36_in_aa(0, 0) → le36_out_aa(0, 0)
U4_aaaa(T114, T115, T116, X167, X168, split51_out_aaaa(T115, T116, X167, X168)) → split51_out_aaaa(.(T114, T115), T116, .(T114, X167), X168)
gt67_in_aa(s(T144), s(T145)) → U7_aa(T144, T145, gt67_in_aa(T144, T145))
gt67_in_aa(s(T150), 0) → gt67_out_aa(s(T150), 0)
U6_aaaa(T129, T130, T131, X199, X200, split51_out_agaa(T130, T131, X199, X200)) → split51_out_aaaa(.(T129, T130), T131, X199, .(T129, X200))
U10_aa(T163, T164, X265, qsort79_out_aa(T167, X263)) → qsort79_out_aa(.(T163, T164), X265)
U11_aa(T163, T164, X265, T168, qsort79_out_aa(T167, T171)) → U12_aa(T163, T164, X265, qsort79_in_aa(T168, X264))
U11_aa(T163, T164, X265, T168, qsort79_out_aa(T167, T171)) → U13_aa(T163, T164, X265, T171, qsort79_in_aa(T168, T172))
U2_aa(T82, T83, le36_out_aa(T82, T83)) → le36_out_aa(s(T82), s(T83))
U7_aa(T144, T145, gt67_out_aa(T144, T145)) → gt67_out_aa(s(T144), s(T145))
split51_in_agaa([], T101, [], []) → split51_out_agaa([], T101, [], [])
split51_in_agaa(.(T114, T115), T116, .(T114, X167), X168) → U3_agaa(T114, T115, T116, X167, X168, le36_in_ag(T114, T116))
split51_in_agaa(.(T129, T130), T131, X199, .(T129, X200)) → U5_agaa(T129, T130, T131, X199, X200, gt67_in_ag(T129, T131))
U12_aa(T163, T164, X265, qsort79_out_aa(T168, X264)) → qsort79_out_aa(.(T163, T164), X265)
U13_aa(T163, T164, X265, T171, qsort79_out_aa(T168, T172)) → U14_aa(T163, T164, X265, append94_in_aaaa(T171, T163, T172, X265))
U3_agaa(T114, T115, T116, X167, X168, le36_out_ag(T114, T116)) → split51_out_agaa(.(T114, T115), T116, .(T114, X167), X168)
U3_agaa(T114, T115, T116, X167, X168, le36_out_ag(T114, T116)) → U4_agaa(T114, T115, T116, X167, X168, split51_in_agaa(T115, T116, X167, X168))
U5_agaa(T129, T130, T131, X199, X200, gt67_out_ag(T129, T131)) → split51_out_agaa(.(T129, T130), T131, X199, .(T129, X200))
U5_agaa(T129, T130, T131, X199, X200, gt67_out_ag(T129, T131)) → U6_agaa(T129, T130, T131, X199, X200, split51_in_agaa(T130, T131, X199, X200))
U14_aa(T163, T164, X265, append94_out_aaaa(T171, T163, T172, X265)) → qsort79_out_aa(.(T163, T164), X265)
le36_in_ag(s(T82), s(T83)) → U2_ag(T82, T83, le36_in_ag(T82, T83))
le36_in_ag(0, s(T90)) → le36_out_ag(0, s(T90))
le36_in_ag(0, 0) → le36_out_ag(0, 0)
U4_agaa(T114, T115, T116, X167, X168, split51_out_agaa(T115, T116, X167, X168)) → split51_out_agaa(.(T114, T115), T116, .(T114, X167), X168)
gt67_in_ag(s(T144), s(T145)) → U7_ag(T144, T145, gt67_in_ag(T144, T145))
gt67_in_ag(s(T150), 0) → gt67_out_ag(s(T150), 0)
U6_agaa(T129, T130, T131, X199, X200, split51_out_agaa(T130, T131, X199, X200)) → split51_out_agaa(.(T129, T130), T131, X199, .(T129, X200))
append94_in_aaaa([], T185, T186, .(T185, T186)) → append94_out_aaaa([], T185, T186, .(T185, T186))
append94_in_aaaa(.(T195, T196), T197, T198, .(T195, X295)) → U15_aaaa(T195, T196, T197, T198, X295, append94_in_aaaa(T196, T197, T198, X295))
U2_ag(T82, T83, le36_out_ag(T82, T83)) → le36_out_ag(s(T82), s(T83))
U7_ag(T144, T145, gt67_out_ag(T144, T145)) → gt67_out_ag(s(T144), s(T145))
U15_aaaa(T195, T196, T197, T198, X295, append94_out_aaaa(T196, T197, T198, X295)) → append94_out_aaaa(.(T195, T196), T197, T198, .(T195, X295))
QSORT79_IN_AA → U9_AA(split51_in_aaaa)
U9_AA(split51_out_aaaa) → QSORT79_IN_AA
U9_AA(split51_out_aaaa) → U11_AA(qsort79_in_aa)
U11_AA(qsort79_out_aa) → QSORT79_IN_AA
split51_in_aaaa → split51_out_aaaa
split51_in_aaaa → U3_aaaa(le36_in_aa)
split51_in_aaaa → U5_aaaa(gt67_in_aa)
qsort79_in_aa → qsort79_out_aa
qsort79_in_aa → U8_aa(split51_in_aaaa)
qsort79_in_aa → U9_aa(split51_in_aaaa)
U3_aaaa(le36_out_aa(T114)) → split51_out_aaaa
U3_aaaa(le36_out_aa(T114)) → U4_aaaa(split51_in_aaaa)
U5_aaaa(gt67_out_aa(T131)) → split51_out_aaaa
U5_aaaa(gt67_out_aa(T131)) → U6_aaaa(split51_in_agaa(T131))
U8_aa(split51_out_aaaa) → qsort79_out_aa
U9_aa(split51_out_aaaa) → U10_aa(qsort79_in_aa)
U9_aa(split51_out_aaaa) → U11_aa(qsort79_in_aa)
le36_in_aa → U2_aa(le36_in_aa)
le36_in_aa → le36_out_aa(0)
U4_aaaa(split51_out_aaaa) → split51_out_aaaa
gt67_in_aa → U7_aa(gt67_in_aa)
gt67_in_aa → gt67_out_aa(0)
U6_aaaa(split51_out_agaa) → split51_out_aaaa
U10_aa(qsort79_out_aa) → qsort79_out_aa
U11_aa(qsort79_out_aa) → U12_aa(qsort79_in_aa)
U11_aa(qsort79_out_aa) → U13_aa(qsort79_in_aa)
U2_aa(le36_out_aa(T82)) → le36_out_aa(s(T82))
U7_aa(gt67_out_aa(T145)) → gt67_out_aa(s(T145))
split51_in_agaa(T101) → split51_out_agaa
split51_in_agaa(T116) → U3_agaa(T116, le36_in_ag(T116))
split51_in_agaa(T131) → U5_agaa(T131, gt67_in_ag(T131))
U12_aa(qsort79_out_aa) → qsort79_out_aa
U13_aa(qsort79_out_aa) → U14_aa(append94_in_aaaa)
U3_agaa(T116, le36_out_ag(T114)) → split51_out_agaa
U3_agaa(T116, le36_out_ag(T114)) → U4_agaa(split51_in_agaa(T116))
U5_agaa(T131, gt67_out_ag) → split51_out_agaa
U5_agaa(T131, gt67_out_ag) → U6_agaa(split51_in_agaa(T131))
U14_aa(append94_out_aaaa) → qsort79_out_aa
le36_in_ag(s(T83)) → U2_ag(le36_in_ag(T83))
le36_in_ag(s(T90)) → le36_out_ag(0)
le36_in_ag(0) → le36_out_ag(0)
U4_agaa(split51_out_agaa) → split51_out_agaa
gt67_in_ag(s(T145)) → U7_ag(gt67_in_ag(T145))
gt67_in_ag(0) → gt67_out_ag
U6_agaa(split51_out_agaa) → split51_out_agaa
append94_in_aaaa → append94_out_aaaa
append94_in_aaaa → U15_aaaa(append94_in_aaaa)
U2_ag(le36_out_ag(T82)) → le36_out_ag(s(T82))
U7_ag(gt67_out_ag) → gt67_out_ag
U15_aaaa(append94_out_aaaa) → append94_out_aaaa
split51_in_aaaa
qsort79_in_aa
U3_aaaa(x0)
U5_aaaa(x0)
U8_aa(x0)
U9_aa(x0)
le36_in_aa
U4_aaaa(x0)
gt67_in_aa
U6_aaaa(x0)
U10_aa(x0)
U11_aa(x0)
U2_aa(x0)
U7_aa(x0)
split51_in_agaa(x0)
U12_aa(x0)
U13_aa(x0)
U3_agaa(x0, x1)
U5_agaa(x0, x1)
U14_aa(x0)
le36_in_ag(x0)
U4_agaa(x0)
gt67_in_ag(x0)
U6_agaa(x0)
append94_in_aaaa
U2_ag(x0)
U7_ag(x0)
U15_aaaa(x0)
QSORT79_IN_AA → U9_AA(split51_out_aaaa)
QSORT79_IN_AA → U9_AA(U3_aaaa(le36_in_aa))
QSORT79_IN_AA → U9_AA(U5_aaaa(gt67_in_aa))
U9_AA(split51_out_aaaa) → QSORT79_IN_AA
U9_AA(split51_out_aaaa) → U11_AA(qsort79_in_aa)
U11_AA(qsort79_out_aa) → QSORT79_IN_AA
QSORT79_IN_AA → U9_AA(split51_out_aaaa)
QSORT79_IN_AA → U9_AA(U3_aaaa(le36_in_aa))
QSORT79_IN_AA → U9_AA(U5_aaaa(gt67_in_aa))
split51_in_aaaa → split51_out_aaaa
split51_in_aaaa → U3_aaaa(le36_in_aa)
split51_in_aaaa → U5_aaaa(gt67_in_aa)
qsort79_in_aa → qsort79_out_aa
qsort79_in_aa → U8_aa(split51_in_aaaa)
qsort79_in_aa → U9_aa(split51_in_aaaa)
U3_aaaa(le36_out_aa(T114)) → split51_out_aaaa
U3_aaaa(le36_out_aa(T114)) → U4_aaaa(split51_in_aaaa)
U5_aaaa(gt67_out_aa(T131)) → split51_out_aaaa
U5_aaaa(gt67_out_aa(T131)) → U6_aaaa(split51_in_agaa(T131))
U8_aa(split51_out_aaaa) → qsort79_out_aa
U9_aa(split51_out_aaaa) → U10_aa(qsort79_in_aa)
U9_aa(split51_out_aaaa) → U11_aa(qsort79_in_aa)
le36_in_aa → U2_aa(le36_in_aa)
le36_in_aa → le36_out_aa(0)
U4_aaaa(split51_out_aaaa) → split51_out_aaaa
gt67_in_aa → U7_aa(gt67_in_aa)
gt67_in_aa → gt67_out_aa(0)
U6_aaaa(split51_out_agaa) → split51_out_aaaa
U10_aa(qsort79_out_aa) → qsort79_out_aa
U11_aa(qsort79_out_aa) → U12_aa(qsort79_in_aa)
U11_aa(qsort79_out_aa) → U13_aa(qsort79_in_aa)
U2_aa(le36_out_aa(T82)) → le36_out_aa(s(T82))
U7_aa(gt67_out_aa(T145)) → gt67_out_aa(s(T145))
split51_in_agaa(T101) → split51_out_agaa
split51_in_agaa(T116) → U3_agaa(T116, le36_in_ag(T116))
split51_in_agaa(T131) → U5_agaa(T131, gt67_in_ag(T131))
U12_aa(qsort79_out_aa) → qsort79_out_aa
U13_aa(qsort79_out_aa) → U14_aa(append94_in_aaaa)
U3_agaa(T116, le36_out_ag(T114)) → split51_out_agaa
U3_agaa(T116, le36_out_ag(T114)) → U4_agaa(split51_in_agaa(T116))
U5_agaa(T131, gt67_out_ag) → split51_out_agaa
U5_agaa(T131, gt67_out_ag) → U6_agaa(split51_in_agaa(T131))
U14_aa(append94_out_aaaa) → qsort79_out_aa
le36_in_ag(s(T83)) → U2_ag(le36_in_ag(T83))
le36_in_ag(s(T90)) → le36_out_ag(0)
le36_in_ag(0) → le36_out_ag(0)
U4_agaa(split51_out_agaa) → split51_out_agaa
gt67_in_ag(s(T145)) → U7_ag(gt67_in_ag(T145))
gt67_in_ag(0) → gt67_out_ag
U6_agaa(split51_out_agaa) → split51_out_agaa
append94_in_aaaa → append94_out_aaaa
append94_in_aaaa → U15_aaaa(append94_in_aaaa)
U2_ag(le36_out_ag(T82)) → le36_out_ag(s(T82))
U7_ag(gt67_out_ag) → gt67_out_ag
U15_aaaa(append94_out_aaaa) → append94_out_aaaa
split51_in_aaaa
qsort79_in_aa
U3_aaaa(x0)
U5_aaaa(x0)
U8_aa(x0)
U9_aa(x0)
le36_in_aa
U4_aaaa(x0)
gt67_in_aa
U6_aaaa(x0)
U10_aa(x0)
U11_aa(x0)
U2_aa(x0)
U7_aa(x0)
split51_in_agaa(x0)
U12_aa(x0)
U13_aa(x0)
U3_agaa(x0, x1)
U5_agaa(x0, x1)
U14_aa(x0)
le36_in_ag(x0)
U4_agaa(x0)
gt67_in_ag(x0)
U6_agaa(x0)
append94_in_aaaa
U2_ag(x0)
U7_ag(x0)
U15_aaaa(x0)
U9_AA(split51_out_aaaa) → U11_AA(qsort79_out_aa)
U9_AA(split51_out_aaaa) → U11_AA(U8_aa(split51_in_aaaa))
U9_AA(split51_out_aaaa) → U11_AA(U9_aa(split51_in_aaaa))
U9_AA(split51_out_aaaa) → QSORT79_IN_AA
U11_AA(qsort79_out_aa) → QSORT79_IN_AA
QSORT79_IN_AA → U9_AA(split51_out_aaaa)
QSORT79_IN_AA → U9_AA(U3_aaaa(le36_in_aa))
QSORT79_IN_AA → U9_AA(U5_aaaa(gt67_in_aa))
U9_AA(split51_out_aaaa) → U11_AA(qsort79_out_aa)
U9_AA(split51_out_aaaa) → U11_AA(U8_aa(split51_in_aaaa))
U9_AA(split51_out_aaaa) → U11_AA(U9_aa(split51_in_aaaa))
split51_in_aaaa → split51_out_aaaa
split51_in_aaaa → U3_aaaa(le36_in_aa)
split51_in_aaaa → U5_aaaa(gt67_in_aa)
qsort79_in_aa → qsort79_out_aa
qsort79_in_aa → U8_aa(split51_in_aaaa)
qsort79_in_aa → U9_aa(split51_in_aaaa)
U3_aaaa(le36_out_aa(T114)) → split51_out_aaaa
U3_aaaa(le36_out_aa(T114)) → U4_aaaa(split51_in_aaaa)
U5_aaaa(gt67_out_aa(T131)) → split51_out_aaaa
U5_aaaa(gt67_out_aa(T131)) → U6_aaaa(split51_in_agaa(T131))
U8_aa(split51_out_aaaa) → qsort79_out_aa
U9_aa(split51_out_aaaa) → U10_aa(qsort79_in_aa)
U9_aa(split51_out_aaaa) → U11_aa(qsort79_in_aa)
le36_in_aa → U2_aa(le36_in_aa)
le36_in_aa → le36_out_aa(0)
U4_aaaa(split51_out_aaaa) → split51_out_aaaa
gt67_in_aa → U7_aa(gt67_in_aa)
gt67_in_aa → gt67_out_aa(0)
U6_aaaa(split51_out_agaa) → split51_out_aaaa
U10_aa(qsort79_out_aa) → qsort79_out_aa
U11_aa(qsort79_out_aa) → U12_aa(qsort79_in_aa)
U11_aa(qsort79_out_aa) → U13_aa(qsort79_in_aa)
U2_aa(le36_out_aa(T82)) → le36_out_aa(s(T82))
U7_aa(gt67_out_aa(T145)) → gt67_out_aa(s(T145))
split51_in_agaa(T101) → split51_out_agaa
split51_in_agaa(T116) → U3_agaa(T116, le36_in_ag(T116))
split51_in_agaa(T131) → U5_agaa(T131, gt67_in_ag(T131))
U12_aa(qsort79_out_aa) → qsort79_out_aa
U13_aa(qsort79_out_aa) → U14_aa(append94_in_aaaa)
U3_agaa(T116, le36_out_ag(T114)) → split51_out_agaa
U3_agaa(T116, le36_out_ag(T114)) → U4_agaa(split51_in_agaa(T116))
U5_agaa(T131, gt67_out_ag) → split51_out_agaa
U5_agaa(T131, gt67_out_ag) → U6_agaa(split51_in_agaa(T131))
U14_aa(append94_out_aaaa) → qsort79_out_aa
le36_in_ag(s(T83)) → U2_ag(le36_in_ag(T83))
le36_in_ag(s(T90)) → le36_out_ag(0)
le36_in_ag(0) → le36_out_ag(0)
U4_agaa(split51_out_agaa) → split51_out_agaa
gt67_in_ag(s(T145)) → U7_ag(gt67_in_ag(T145))
gt67_in_ag(0) → gt67_out_ag
U6_agaa(split51_out_agaa) → split51_out_agaa
append94_in_aaaa → append94_out_aaaa
append94_in_aaaa → U15_aaaa(append94_in_aaaa)
U2_ag(le36_out_ag(T82)) → le36_out_ag(s(T82))
U7_ag(gt67_out_ag) → gt67_out_ag
U15_aaaa(append94_out_aaaa) → append94_out_aaaa
split51_in_aaaa
qsort79_in_aa
U3_aaaa(x0)
U5_aaaa(x0)
U8_aa(x0)
U9_aa(x0)
le36_in_aa
U4_aaaa(x0)
gt67_in_aa
U6_aaaa(x0)
U10_aa(x0)
U11_aa(x0)
U2_aa(x0)
U7_aa(x0)
split51_in_agaa(x0)
U12_aa(x0)
U13_aa(x0)
U3_agaa(x0, x1)
U5_agaa(x0, x1)
U14_aa(x0)
le36_in_ag(x0)
U4_agaa(x0)
gt67_in_ag(x0)
U6_agaa(x0)
append94_in_aaaa
U2_ag(x0)
U7_ag(x0)
U15_aaaa(x0)
APPEND23_IN_GAGA(.(T45, T46), T47, T48, .(T45, T50)) → APPEND23_IN_GAGA(T46, T47, T48, T50)
qsort1_in_ga([], []) → qsort1_out_ga([], [])
qsort1_in_ga(.(T14, []), T9) → U19_ga(T14, T9, qsort14_in_a(X12))
qsort14_in_a([]) → qsort14_out_a([])
U19_ga(T14, T9, qsort14_out_a(X12)) → qsort1_out_ga(.(T14, []), T9)
qsort1_in_ga(.(T14, []), T9) → U20_ga(T14, T9, qsort14_in_a(T17))
U20_ga(T14, T9, qsort14_out_a(T17)) → U21_ga(T14, T9, qsort14_in_a(X13))
U21_ga(T14, T9, qsort14_out_a(X13)) → qsort1_out_ga(.(T14, []), T9)
U20_ga(T14, T9, qsort14_out_a(T17)) → U22_ga(T14, T9, T17, qsort14_in_a(T20))
U22_ga(T14, T9, T17, qsort14_out_a(T20)) → U23_ga(T14, T9, append23_in_ggga(T17, T14, T20, T9))
append23_in_ggga([], T33, T34, .(T33, T34)) → append23_out_ggga([], T33, T34, .(T33, T34))
append23_in_ggga(.(T45, T46), T47, T48, .(T45, T50)) → U1_ggga(T45, T46, T47, T48, T50, append23_in_ggga(T46, T47, T48, T50))
U1_ggga(T45, T46, T47, T48, T50, append23_out_ggga(T46, T47, T48, T50)) → append23_out_ggga(.(T45, T46), T47, T48, .(T45, T50))
U23_ga(T14, T9, append23_out_ggga(T17, T14, T20, T9)) → qsort1_out_ga(.(T14, []), T9)
qsort1_in_ga(.(T69, .(T67, T68)), T9) → U24_ga(T69, T67, T68, T9, le36_in_gg(T67, T69))
le36_in_gg(s(T82), s(T83)) → U2_gg(T82, T83, le36_in_gg(T82, T83))
le36_in_gg(0, s(T90)) → le36_out_gg(0, s(T90))
le36_in_gg(0, 0) → le36_out_gg(0, 0)
U2_gg(T82, T83, le36_out_gg(T82, T83)) → le36_out_gg(s(T82), s(T83))
U24_ga(T69, T67, T68, T9, le36_out_gg(T67, T69)) → qsort1_out_ga(.(T69, .(T67, T68)), T9)
U24_ga(T69, T67, T68, T9, le36_out_gg(T67, T69)) → U25_ga(T69, T67, T68, T9, split51_in_ggaa(T68, T69, X93, X94))
split51_in_ggaa([], T101, [], []) → split51_out_ggaa([], T101, [], [])
split51_in_ggaa(.(T114, T115), T116, .(T114, X167), X168) → U3_ggaa(T114, T115, T116, X167, X168, le36_in_gg(T114, T116))
U3_ggaa(T114, T115, T116, X167, X168, le36_out_gg(T114, T116)) → split51_out_ggaa(.(T114, T115), T116, .(T114, X167), X168)
U3_ggaa(T114, T115, T116, X167, X168, le36_out_gg(T114, T116)) → U4_ggaa(T114, T115, T116, X167, X168, split51_in_ggaa(T115, T116, X167, X168))
split51_in_ggaa(.(T129, T130), T131, X199, .(T129, X200)) → U5_ggaa(T129, T130, T131, X199, X200, gt67_in_gg(T129, T131))
gt67_in_gg(s(T144), s(T145)) → U7_gg(T144, T145, gt67_in_gg(T144, T145))
gt67_in_gg(s(T150), 0) → gt67_out_gg(s(T150), 0)
U7_gg(T144, T145, gt67_out_gg(T144, T145)) → gt67_out_gg(s(T144), s(T145))
U5_ggaa(T129, T130, T131, X199, X200, gt67_out_gg(T129, T131)) → split51_out_ggaa(.(T129, T130), T131, X199, .(T129, X200))
U5_ggaa(T129, T130, T131, X199, X200, gt67_out_gg(T129, T131)) → U6_ggaa(T129, T130, T131, X199, X200, split51_in_ggaa(T130, T131, X199, X200))
U6_ggaa(T129, T130, T131, X199, X200, split51_out_ggaa(T130, T131, X199, X200)) → split51_out_ggaa(.(T129, T130), T131, X199, .(T129, X200))
U4_ggaa(T114, T115, T116, X167, X168, split51_out_ggaa(T115, T116, X167, X168)) → split51_out_ggaa(.(T114, T115), T116, .(T114, X167), X168)
U25_ga(T69, T67, T68, T9, split51_out_ggaa(T68, T69, X93, X94)) → qsort1_out_ga(.(T69, .(T67, T68)), T9)
U24_ga(T69, T67, T68, T9, le36_out_gg(T67, T69)) → U26_ga(T69, T67, T68, T9, split51_in_ggaa(T68, T69, T93, T94))
U26_ga(T69, T67, T68, T9, split51_out_ggaa(T68, T69, T93, T94)) → U27_ga(T69, T67, T68, T9, qsort1_in_aa(.(T67, T93), X12))
qsort1_in_aa([], []) → qsort1_out_aa([], [])
qsort1_in_aa(.(T14, []), T9) → U19_aa(T14, T9, qsort14_in_a(X12))
U19_aa(T14, T9, qsort14_out_a(X12)) → qsort1_out_aa(.(T14, []), T9)
qsort1_in_aa(.(T14, []), T9) → U20_aa(T14, T9, qsort14_in_a(T17))
U20_aa(T14, T9, qsort14_out_a(T17)) → U21_aa(T14, T9, qsort14_in_a(X13))
U21_aa(T14, T9, qsort14_out_a(X13)) → qsort1_out_aa(.(T14, []), T9)
U20_aa(T14, T9, qsort14_out_a(T17)) → U22_aa(T14, T9, T17, qsort14_in_a(T20))
U22_aa(T14, T9, T17, qsort14_out_a(T20)) → U23_aa(T14, T9, append23_in_gaga(T17, T14, T20, T9))
append23_in_gaga([], T33, T34, .(T33, T34)) → append23_out_gaga([], T33, T34, .(T33, T34))
append23_in_gaga(.(T45, T46), T47, T48, .(T45, T50)) → U1_gaga(T45, T46, T47, T48, T50, append23_in_gaga(T46, T47, T48, T50))
U1_gaga(T45, T46, T47, T48, T50, append23_out_gaga(T46, T47, T48, T50)) → append23_out_gaga(.(T45, T46), T47, T48, .(T45, T50))
U23_aa(T14, T9, append23_out_gaga(T17, T14, T20, T9)) → qsort1_out_aa(.(T14, []), T9)
qsort1_in_aa(.(T69, .(T67, T68)), T9) → U24_aa(T69, T67, T68, T9, le36_in_aa(T67, T69))
le36_in_aa(s(T82), s(T83)) → U2_aa(T82, T83, le36_in_aa(T82, T83))
le36_in_aa(0, s(T90)) → le36_out_aa(0, s(T90))
le36_in_aa(0, 0) → le36_out_aa(0, 0)
U2_aa(T82, T83, le36_out_aa(T82, T83)) → le36_out_aa(s(T82), s(T83))
U24_aa(T69, T67, T68, T9, le36_out_aa(T67, T69)) → qsort1_out_aa(.(T69, .(T67, T68)), T9)
U24_aa(T69, T67, T68, T9, le36_out_aa(T67, T69)) → U25_aa(T69, T67, T68, T9, split51_in_aaaa(T68, T69, X93, X94))
split51_in_aaaa([], T101, [], []) → split51_out_aaaa([], T101, [], [])
split51_in_aaaa(.(T114, T115), T116, .(T114, X167), X168) → U3_aaaa(T114, T115, T116, X167, X168, le36_in_aa(T114, T116))
U3_aaaa(T114, T115, T116, X167, X168, le36_out_aa(T114, T116)) → split51_out_aaaa(.(T114, T115), T116, .(T114, X167), X168)
U3_aaaa(T114, T115, T116, X167, X168, le36_out_aa(T114, T116)) → U4_aaaa(T114, T115, T116, X167, X168, split51_in_aaaa(T115, T116, X167, X168))
split51_in_aaaa(.(T129, T130), T131, X199, .(T129, X200)) → U5_aaaa(T129, T130, T131, X199, X200, gt67_in_aa(T129, T131))
gt67_in_aa(s(T144), s(T145)) → U7_aa(T144, T145, gt67_in_aa(T144, T145))
gt67_in_aa(s(T150), 0) → gt67_out_aa(s(T150), 0)
U7_aa(T144, T145, gt67_out_aa(T144, T145)) → gt67_out_aa(s(T144), s(T145))
U5_aaaa(T129, T130, T131, X199, X200, gt67_out_aa(T129, T131)) → split51_out_aaaa(.(T129, T130), T131, X199, .(T129, X200))
U5_aaaa(T129, T130, T131, X199, X200, gt67_out_aa(T129, T131)) → U6_aaaa(T129, T130, T131, X199, X200, split51_in_agaa(T130, T131, X199, X200))
split51_in_agaa([], T101, [], []) → split51_out_agaa([], T101, [], [])
split51_in_agaa(.(T114, T115), T116, .(T114, X167), X168) → U3_agaa(T114, T115, T116, X167, X168, le36_in_ag(T114, T116))
le36_in_ag(s(T82), s(T83)) → U2_ag(T82, T83, le36_in_ag(T82, T83))
le36_in_ag(0, s(T90)) → le36_out_ag(0, s(T90))
le36_in_ag(0, 0) → le36_out_ag(0, 0)
U2_ag(T82, T83, le36_out_ag(T82, T83)) → le36_out_ag(s(T82), s(T83))
U3_agaa(T114, T115, T116, X167, X168, le36_out_ag(T114, T116)) → split51_out_agaa(.(T114, T115), T116, .(T114, X167), X168)
U3_agaa(T114, T115, T116, X167, X168, le36_out_ag(T114, T116)) → U4_agaa(T114, T115, T116, X167, X168, split51_in_agaa(T115, T116, X167, X168))
split51_in_agaa(.(T129, T130), T131, X199, .(T129, X200)) → U5_agaa(T129, T130, T131, X199, X200, gt67_in_ag(T129, T131))
gt67_in_ag(s(T144), s(T145)) → U7_ag(T144, T145, gt67_in_ag(T144, T145))
gt67_in_ag(s(T150), 0) → gt67_out_ag(s(T150), 0)
U7_ag(T144, T145, gt67_out_ag(T144, T145)) → gt67_out_ag(s(T144), s(T145))
U5_agaa(T129, T130, T131, X199, X200, gt67_out_ag(T129, T131)) → split51_out_agaa(.(T129, T130), T131, X199, .(T129, X200))
U5_agaa(T129, T130, T131, X199, X200, gt67_out_ag(T129, T131)) → U6_agaa(T129, T130, T131, X199, X200, split51_in_agaa(T130, T131, X199, X200))
U6_agaa(T129, T130, T131, X199, X200, split51_out_agaa(T130, T131, X199, X200)) → split51_out_agaa(.(T129, T130), T131, X199, .(T129, X200))
U4_agaa(T114, T115, T116, X167, X168, split51_out_agaa(T115, T116, X167, X168)) → split51_out_agaa(.(T114, T115), T116, .(T114, X167), X168)
U6_aaaa(T129, T130, T131, X199, X200, split51_out_agaa(T130, T131, X199, X200)) → split51_out_aaaa(.(T129, T130), T131, X199, .(T129, X200))
U4_aaaa(T114, T115, T116, X167, X168, split51_out_aaaa(T115, T116, X167, X168)) → split51_out_aaaa(.(T114, T115), T116, .(T114, X167), X168)
U25_aa(T69, T67, T68, T9, split51_out_aaaa(T68, T69, X93, X94)) → qsort1_out_aa(.(T69, .(T67, T68)), T9)
U24_aa(T69, T67, T68, T9, le36_out_aa(T67, T69)) → U26_aa(T69, T67, T68, T9, split51_in_aaaa(T68, T69, T93, T94))
U26_aa(T69, T67, T68, T9, split51_out_aaaa(T68, T69, T93, T94)) → U27_aa(T69, T67, T68, T9, qsort1_in_aa(.(T67, T93), X12))
qsort1_in_aa(.(T215, .(T213, T214)), T9) → U30_aa(T215, T213, T214, T9, gt67_in_aa(T213, T215))
U30_aa(T215, T213, T214, T9, gt67_out_aa(T213, T215)) → qsort1_out_aa(.(T215, .(T213, T214)), T9)
U30_aa(T215, T213, T214, T9, gt67_out_aa(T213, T215)) → U31_aa(T215, T213, T214, T9, split51_in_agaa(T214, T215, X323, X324))
U31_aa(T215, T213, T214, T9, split51_out_agaa(T214, T215, X323, X324)) → qsort1_out_aa(.(T215, .(T213, T214)), T9)
U30_aa(T215, T213, T214, T9, gt67_out_aa(T213, T215)) → U32_aa(T215, T213, T214, T9, split51_in_agaa(T214, T215, T222, T223))
U32_aa(T215, T213, T214, T9, split51_out_agaa(T214, T215, T222, T223)) → U33_aa(T215, T213, T214, T9, qsort79_in_aa(T222, X12))
qsort79_in_aa([], []) → qsort79_out_aa([], [])
qsort79_in_aa(.(T163, T164), X265) → U8_aa(T163, T164, X265, split51_in_aaaa(T164, T163, X261, X262))
U8_aa(T163, T164, X265, split51_out_aaaa(T164, T163, X261, X262)) → qsort79_out_aa(.(T163, T164), X265)
qsort79_in_aa(.(T163, T164), X265) → U9_aa(T163, T164, X265, split51_in_aaaa(T164, T163, T167, T168))
U9_aa(T163, T164, X265, split51_out_aaaa(T164, T163, T167, T168)) → U10_aa(T163, T164, X265, qsort79_in_aa(T167, X263))
U10_aa(T163, T164, X265, qsort79_out_aa(T167, X263)) → qsort79_out_aa(.(T163, T164), X265)
U9_aa(T163, T164, X265, split51_out_aaaa(T164, T163, T167, T168)) → U11_aa(T163, T164, X265, T168, qsort79_in_aa(T167, T171))
U11_aa(T163, T164, X265, T168, qsort79_out_aa(T167, T171)) → U12_aa(T163, T164, X265, qsort79_in_aa(T168, X264))
U12_aa(T163, T164, X265, qsort79_out_aa(T168, X264)) → qsort79_out_aa(.(T163, T164), X265)
U11_aa(T163, T164, X265, T168, qsort79_out_aa(T167, T171)) → U13_aa(T163, T164, X265, T171, qsort79_in_aa(T168, T172))
U13_aa(T163, T164, X265, T171, qsort79_out_aa(T168, T172)) → U14_aa(T163, T164, X265, append94_in_aaaa(T171, T163, T172, X265))
append94_in_aaaa([], T185, T186, .(T185, T186)) → append94_out_aaaa([], T185, T186, .(T185, T186))
append94_in_aaaa(.(T195, T196), T197, T198, .(T195, X295)) → U15_aaaa(T195, T196, T197, T198, X295, append94_in_aaaa(T196, T197, T198, X295))
U15_aaaa(T195, T196, T197, T198, X295, append94_out_aaaa(T196, T197, T198, X295)) → append94_out_aaaa(.(T195, T196), T197, T198, .(T195, X295))
U14_aa(T163, T164, X265, append94_out_aaaa(T171, T163, T172, X265)) → qsort79_out_aa(.(T163, T164), X265)
U33_aa(T215, T213, T214, T9, qsort79_out_aa(T222, X12)) → qsort1_out_aa(.(T215, .(T213, T214)), T9)
U32_aa(T215, T213, T214, T9, split51_out_agaa(T214, T215, T222, T223)) → U34_aa(T215, T213, T214, T9, T223, qsort79_in_aa(T222, T226))
U34_aa(T215, T213, T214, T9, T223, qsort79_out_aa(T222, T226)) → U35_aa(T215, T213, T214, T9, p78_in_aaaga(.(T213, T223), X13, T226, T215, T9))
p78_in_aaaga(T94, X13, T155, T69, T9) → U16_aaaga(T94, X13, T155, T69, T9, qsort79_in_aa(T94, X13))
U16_aaaga(T94, X13, T155, T69, T9, qsort79_out_aa(T94, X13)) → p78_out_aaaga(T94, X13, T155, T69, T9)
p78_in_aaaga(T94, T158, T155, T69, T9) → U17_aaaga(T94, T158, T155, T69, T9, qsort79_in_aa(T94, T158))
U17_aaaga(T94, T158, T155, T69, T9, qsort79_out_aa(T94, T158)) → U18_aaaga(T94, T158, T155, T69, T9, append23_in_agaa(T155, T69, T158, T9))
append23_in_agaa([], T33, T34, .(T33, T34)) → append23_out_agaa([], T33, T34, .(T33, T34))
append23_in_agaa(.(T45, T46), T47, T48, .(T45, T50)) → U1_agaa(T45, T46, T47, T48, T50, append23_in_agaa(T46, T47, T48, T50))
U1_agaa(T45, T46, T47, T48, T50, append23_out_agaa(T46, T47, T48, T50)) → append23_out_agaa(.(T45, T46), T47, T48, .(T45, T50))
U18_aaaga(T94, T158, T155, T69, T9, append23_out_agaa(T155, T69, T158, T9)) → p78_out_aaaga(T94, T158, T155, T69, T9)
U35_aa(T215, T213, T214, T9, p78_out_aaaga(.(T213, T223), X13, T226, T215, T9)) → qsort1_out_aa(.(T215, .(T213, T214)), T9)
U27_aa(T69, T67, T68, T9, qsort1_out_aa(.(T67, T93), X12)) → qsort1_out_aa(.(T69, .(T67, T68)), T9)
U26_aa(T69, T67, T68, T9, split51_out_aaaa(T68, T69, T93, T94)) → U28_aa(T69, T67, T68, T9, T94, qsort1_in_aa(.(T67, T93), T155))
U28_aa(T69, T67, T68, T9, T94, qsort1_out_aa(.(T67, T93), T155)) → U29_aa(T69, T67, T68, T9, p78_in_aaaaa(T94, X13, T155, T69, T9))
p78_in_aaaaa(T94, X13, T155, T69, T9) → U16_aaaaa(T94, X13, T155, T69, T9, qsort79_in_aa(T94, X13))
U16_aaaaa(T94, X13, T155, T69, T9, qsort79_out_aa(T94, X13)) → p78_out_aaaaa(T94, X13, T155, T69, T9)
p78_in_aaaaa(T94, T158, T155, T69, T9) → U17_aaaaa(T94, T158, T155, T69, T9, qsort79_in_aa(T94, T158))
U17_aaaaa(T94, T158, T155, T69, T9, qsort79_out_aa(T94, T158)) → U18_aaaaa(T94, T158, T155, T69, T9, append23_in_aaaa(T155, T69, T158, T9))
append23_in_aaaa([], T33, T34, .(T33, T34)) → append23_out_aaaa([], T33, T34, .(T33, T34))
append23_in_aaaa(.(T45, T46), T47, T48, .(T45, T50)) → U1_aaaa(T45, T46, T47, T48, T50, append23_in_aaaa(T46, T47, T48, T50))
U1_aaaa(T45, T46, T47, T48, T50, append23_out_aaaa(T46, T47, T48, T50)) → append23_out_aaaa(.(T45, T46), T47, T48, .(T45, T50))
U18_aaaaa(T94, T158, T155, T69, T9, append23_out_aaaa(T155, T69, T158, T9)) → p78_out_aaaaa(T94, T158, T155, T69, T9)
U29_aa(T69, T67, T68, T9, p78_out_aaaaa(T94, X13, T155, T69, T9)) → qsort1_out_aa(.(T69, .(T67, T68)), T9)
U27_ga(T69, T67, T68, T9, qsort1_out_aa(.(T67, T93), X12)) → qsort1_out_ga(.(T69, .(T67, T68)), T9)
U26_ga(T69, T67, T68, T9, split51_out_ggaa(T68, T69, T93, T94)) → U28_ga(T69, T67, T68, T9, T94, qsort1_in_aa(.(T67, T93), T155))
U28_ga(T69, T67, T68, T9, T94, qsort1_out_aa(.(T67, T93), T155)) → U29_ga(T69, T67, T68, T9, p78_in_aaaga(T94, X13, T155, T69, T9))
U29_ga(T69, T67, T68, T9, p78_out_aaaga(T94, X13, T155, T69, T9)) → qsort1_out_ga(.(T69, .(T67, T68)), T9)
qsort1_in_ga(.(T215, .(T213, T214)), T9) → U30_ga(T215, T213, T214, T9, gt67_in_gg(T213, T215))
U30_ga(T215, T213, T214, T9, gt67_out_gg(T213, T215)) → qsort1_out_ga(.(T215, .(T213, T214)), T9)
U30_ga(T215, T213, T214, T9, gt67_out_gg(T213, T215)) → U31_ga(T215, T213, T214, T9, split51_in_ggaa(T214, T215, X323, X324))
U31_ga(T215, T213, T214, T9, split51_out_ggaa(T214, T215, X323, X324)) → qsort1_out_ga(.(T215, .(T213, T214)), T9)
U30_ga(T215, T213, T214, T9, gt67_out_gg(T213, T215)) → U32_ga(T215, T213, T214, T9, split51_in_ggaa(T214, T215, T222, T223))
U32_ga(T215, T213, T214, T9, split51_out_ggaa(T214, T215, T222, T223)) → U33_ga(T215, T213, T214, T9, qsort79_in_aa(T222, X12))
U33_ga(T215, T213, T214, T9, qsort79_out_aa(T222, X12)) → qsort1_out_ga(.(T215, .(T213, T214)), T9)
U32_ga(T215, T213, T214, T9, split51_out_ggaa(T214, T215, T222, T223)) → U34_ga(T215, T213, T214, T9, T223, qsort79_in_aa(T222, T226))
U34_ga(T215, T213, T214, T9, T223, qsort79_out_aa(T222, T226)) → U35_ga(T215, T213, T214, T9, p78_in_aaaga(.(T213, T223), X13, T226, T215, T9))
U35_ga(T215, T213, T214, T9, p78_out_aaaga(.(T213, T223), X13, T226, T215, T9)) → qsort1_out_ga(.(T215, .(T213, T214)), T9)
APPEND23_IN_GAGA(.(T45, T46), T47, T48, .(T45, T50)) → APPEND23_IN_GAGA(T46, T47, T48, T50)
APPEND23_IN_GAGA(.(T45, T46), T48) → APPEND23_IN_GAGA(T46, T48)
From the DPs we obtained the following set of size-change graphs:
QSORT1_IN_AA(.(T69, .(T67, T68)), T9) → U24_AA(T69, T67, T68, T9, le36_in_aa(T67, T69))
U24_AA(T69, T67, T68, T9, le36_out_aa(T67, T69)) → U26_AA(T69, T67, T68, T9, split51_in_aaaa(T68, T69, T93, T94))
U26_AA(T69, T67, T68, T9, split51_out_aaaa(T68, T69, T93, T94)) → QSORT1_IN_AA(.(T67, T93), X12)
qsort1_in_ga([], []) → qsort1_out_ga([], [])
qsort1_in_ga(.(T14, []), T9) → U19_ga(T14, T9, qsort14_in_a(X12))
qsort14_in_a([]) → qsort14_out_a([])
U19_ga(T14, T9, qsort14_out_a(X12)) → qsort1_out_ga(.(T14, []), T9)
qsort1_in_ga(.(T14, []), T9) → U20_ga(T14, T9, qsort14_in_a(T17))
U20_ga(T14, T9, qsort14_out_a(T17)) → U21_ga(T14, T9, qsort14_in_a(X13))
U21_ga(T14, T9, qsort14_out_a(X13)) → qsort1_out_ga(.(T14, []), T9)
U20_ga(T14, T9, qsort14_out_a(T17)) → U22_ga(T14, T9, T17, qsort14_in_a(T20))
U22_ga(T14, T9, T17, qsort14_out_a(T20)) → U23_ga(T14, T9, append23_in_ggga(T17, T14, T20, T9))
append23_in_ggga([], T33, T34, .(T33, T34)) → append23_out_ggga([], T33, T34, .(T33, T34))
append23_in_ggga(.(T45, T46), T47, T48, .(T45, T50)) → U1_ggga(T45, T46, T47, T48, T50, append23_in_ggga(T46, T47, T48, T50))
U1_ggga(T45, T46, T47, T48, T50, append23_out_ggga(T46, T47, T48, T50)) → append23_out_ggga(.(T45, T46), T47, T48, .(T45, T50))
U23_ga(T14, T9, append23_out_ggga(T17, T14, T20, T9)) → qsort1_out_ga(.(T14, []), T9)
qsort1_in_ga(.(T69, .(T67, T68)), T9) → U24_ga(T69, T67, T68, T9, le36_in_gg(T67, T69))
le36_in_gg(s(T82), s(T83)) → U2_gg(T82, T83, le36_in_gg(T82, T83))
le36_in_gg(0, s(T90)) → le36_out_gg(0, s(T90))
le36_in_gg(0, 0) → le36_out_gg(0, 0)
U2_gg(T82, T83, le36_out_gg(T82, T83)) → le36_out_gg(s(T82), s(T83))
U24_ga(T69, T67, T68, T9, le36_out_gg(T67, T69)) → qsort1_out_ga(.(T69, .(T67, T68)), T9)
U24_ga(T69, T67, T68, T9, le36_out_gg(T67, T69)) → U25_ga(T69, T67, T68, T9, split51_in_ggaa(T68, T69, X93, X94))
split51_in_ggaa([], T101, [], []) → split51_out_ggaa([], T101, [], [])
split51_in_ggaa(.(T114, T115), T116, .(T114, X167), X168) → U3_ggaa(T114, T115, T116, X167, X168, le36_in_gg(T114, T116))
U3_ggaa(T114, T115, T116, X167, X168, le36_out_gg(T114, T116)) → split51_out_ggaa(.(T114, T115), T116, .(T114, X167), X168)
U3_ggaa(T114, T115, T116, X167, X168, le36_out_gg(T114, T116)) → U4_ggaa(T114, T115, T116, X167, X168, split51_in_ggaa(T115, T116, X167, X168))
split51_in_ggaa(.(T129, T130), T131, X199, .(T129, X200)) → U5_ggaa(T129, T130, T131, X199, X200, gt67_in_gg(T129, T131))
gt67_in_gg(s(T144), s(T145)) → U7_gg(T144, T145, gt67_in_gg(T144, T145))
gt67_in_gg(s(T150), 0) → gt67_out_gg(s(T150), 0)
U7_gg(T144, T145, gt67_out_gg(T144, T145)) → gt67_out_gg(s(T144), s(T145))
U5_ggaa(T129, T130, T131, X199, X200, gt67_out_gg(T129, T131)) → split51_out_ggaa(.(T129, T130), T131, X199, .(T129, X200))
U5_ggaa(T129, T130, T131, X199, X200, gt67_out_gg(T129, T131)) → U6_ggaa(T129, T130, T131, X199, X200, split51_in_ggaa(T130, T131, X199, X200))
U6_ggaa(T129, T130, T131, X199, X200, split51_out_ggaa(T130, T131, X199, X200)) → split51_out_ggaa(.(T129, T130), T131, X199, .(T129, X200))
U4_ggaa(T114, T115, T116, X167, X168, split51_out_ggaa(T115, T116, X167, X168)) → split51_out_ggaa(.(T114, T115), T116, .(T114, X167), X168)
U25_ga(T69, T67, T68, T9, split51_out_ggaa(T68, T69, X93, X94)) → qsort1_out_ga(.(T69, .(T67, T68)), T9)
U24_ga(T69, T67, T68, T9, le36_out_gg(T67, T69)) → U26_ga(T69, T67, T68, T9, split51_in_ggaa(T68, T69, T93, T94))
U26_ga(T69, T67, T68, T9, split51_out_ggaa(T68, T69, T93, T94)) → U27_ga(T69, T67, T68, T9, qsort1_in_aa(.(T67, T93), X12))
qsort1_in_aa([], []) → qsort1_out_aa([], [])
qsort1_in_aa(.(T14, []), T9) → U19_aa(T14, T9, qsort14_in_a(X12))
U19_aa(T14, T9, qsort14_out_a(X12)) → qsort1_out_aa(.(T14, []), T9)
qsort1_in_aa(.(T14, []), T9) → U20_aa(T14, T9, qsort14_in_a(T17))
U20_aa(T14, T9, qsort14_out_a(T17)) → U21_aa(T14, T9, qsort14_in_a(X13))
U21_aa(T14, T9, qsort14_out_a(X13)) → qsort1_out_aa(.(T14, []), T9)
U20_aa(T14, T9, qsort14_out_a(T17)) → U22_aa(T14, T9, T17, qsort14_in_a(T20))
U22_aa(T14, T9, T17, qsort14_out_a(T20)) → U23_aa(T14, T9, append23_in_gaga(T17, T14, T20, T9))
append23_in_gaga([], T33, T34, .(T33, T34)) → append23_out_gaga([], T33, T34, .(T33, T34))
append23_in_gaga(.(T45, T46), T47, T48, .(T45, T50)) → U1_gaga(T45, T46, T47, T48, T50, append23_in_gaga(T46, T47, T48, T50))
U1_gaga(T45, T46, T47, T48, T50, append23_out_gaga(T46, T47, T48, T50)) → append23_out_gaga(.(T45, T46), T47, T48, .(T45, T50))
U23_aa(T14, T9, append23_out_gaga(T17, T14, T20, T9)) → qsort1_out_aa(.(T14, []), T9)
qsort1_in_aa(.(T69, .(T67, T68)), T9) → U24_aa(T69, T67, T68, T9, le36_in_aa(T67, T69))
le36_in_aa(s(T82), s(T83)) → U2_aa(T82, T83, le36_in_aa(T82, T83))
le36_in_aa(0, s(T90)) → le36_out_aa(0, s(T90))
le36_in_aa(0, 0) → le36_out_aa(0, 0)
U2_aa(T82, T83, le36_out_aa(T82, T83)) → le36_out_aa(s(T82), s(T83))
U24_aa(T69, T67, T68, T9, le36_out_aa(T67, T69)) → qsort1_out_aa(.(T69, .(T67, T68)), T9)
U24_aa(T69, T67, T68, T9, le36_out_aa(T67, T69)) → U25_aa(T69, T67, T68, T9, split51_in_aaaa(T68, T69, X93, X94))
split51_in_aaaa([], T101, [], []) → split51_out_aaaa([], T101, [], [])
split51_in_aaaa(.(T114, T115), T116, .(T114, X167), X168) → U3_aaaa(T114, T115, T116, X167, X168, le36_in_aa(T114, T116))
U3_aaaa(T114, T115, T116, X167, X168, le36_out_aa(T114, T116)) → split51_out_aaaa(.(T114, T115), T116, .(T114, X167), X168)
U3_aaaa(T114, T115, T116, X167, X168, le36_out_aa(T114, T116)) → U4_aaaa(T114, T115, T116, X167, X168, split51_in_aaaa(T115, T116, X167, X168))
split51_in_aaaa(.(T129, T130), T131, X199, .(T129, X200)) → U5_aaaa(T129, T130, T131, X199, X200, gt67_in_aa(T129, T131))
gt67_in_aa(s(T144), s(T145)) → U7_aa(T144, T145, gt67_in_aa(T144, T145))
gt67_in_aa(s(T150), 0) → gt67_out_aa(s(T150), 0)
U7_aa(T144, T145, gt67_out_aa(T144, T145)) → gt67_out_aa(s(T144), s(T145))
U5_aaaa(T129, T130, T131, X199, X200, gt67_out_aa(T129, T131)) → split51_out_aaaa(.(T129, T130), T131, X199, .(T129, X200))
U5_aaaa(T129, T130, T131, X199, X200, gt67_out_aa(T129, T131)) → U6_aaaa(T129, T130, T131, X199, X200, split51_in_agaa(T130, T131, X199, X200))
split51_in_agaa([], T101, [], []) → split51_out_agaa([], T101, [], [])
split51_in_agaa(.(T114, T115), T116, .(T114, X167), X168) → U3_agaa(T114, T115, T116, X167, X168, le36_in_ag(T114, T116))
le36_in_ag(s(T82), s(T83)) → U2_ag(T82, T83, le36_in_ag(T82, T83))
le36_in_ag(0, s(T90)) → le36_out_ag(0, s(T90))
le36_in_ag(0, 0) → le36_out_ag(0, 0)
U2_ag(T82, T83, le36_out_ag(T82, T83)) → le36_out_ag(s(T82), s(T83))
U3_agaa(T114, T115, T116, X167, X168, le36_out_ag(T114, T116)) → split51_out_agaa(.(T114, T115), T116, .(T114, X167), X168)
U3_agaa(T114, T115, T116, X167, X168, le36_out_ag(T114, T116)) → U4_agaa(T114, T115, T116, X167, X168, split51_in_agaa(T115, T116, X167, X168))
split51_in_agaa(.(T129, T130), T131, X199, .(T129, X200)) → U5_agaa(T129, T130, T131, X199, X200, gt67_in_ag(T129, T131))
gt67_in_ag(s(T144), s(T145)) → U7_ag(T144, T145, gt67_in_ag(T144, T145))
gt67_in_ag(s(T150), 0) → gt67_out_ag(s(T150), 0)
U7_ag(T144, T145, gt67_out_ag(T144, T145)) → gt67_out_ag(s(T144), s(T145))
U5_agaa(T129, T130, T131, X199, X200, gt67_out_ag(T129, T131)) → split51_out_agaa(.(T129, T130), T131, X199, .(T129, X200))
U5_agaa(T129, T130, T131, X199, X200, gt67_out_ag(T129, T131)) → U6_agaa(T129, T130, T131, X199, X200, split51_in_agaa(T130, T131, X199, X200))
U6_agaa(T129, T130, T131, X199, X200, split51_out_agaa(T130, T131, X199, X200)) → split51_out_agaa(.(T129, T130), T131, X199, .(T129, X200))
U4_agaa(T114, T115, T116, X167, X168, split51_out_agaa(T115, T116, X167, X168)) → split51_out_agaa(.(T114, T115), T116, .(T114, X167), X168)
U6_aaaa(T129, T130, T131, X199, X200, split51_out_agaa(T130, T131, X199, X200)) → split51_out_aaaa(.(T129, T130), T131, X199, .(T129, X200))
U4_aaaa(T114, T115, T116, X167, X168, split51_out_aaaa(T115, T116, X167, X168)) → split51_out_aaaa(.(T114, T115), T116, .(T114, X167), X168)
U25_aa(T69, T67, T68, T9, split51_out_aaaa(T68, T69, X93, X94)) → qsort1_out_aa(.(T69, .(T67, T68)), T9)
U24_aa(T69, T67, T68, T9, le36_out_aa(T67, T69)) → U26_aa(T69, T67, T68, T9, split51_in_aaaa(T68, T69, T93, T94))
U26_aa(T69, T67, T68, T9, split51_out_aaaa(T68, T69, T93, T94)) → U27_aa(T69, T67, T68, T9, qsort1_in_aa(.(T67, T93), X12))
qsort1_in_aa(.(T215, .(T213, T214)), T9) → U30_aa(T215, T213, T214, T9, gt67_in_aa(T213, T215))
U30_aa(T215, T213, T214, T9, gt67_out_aa(T213, T215)) → qsort1_out_aa(.(T215, .(T213, T214)), T9)
U30_aa(T215, T213, T214, T9, gt67_out_aa(T213, T215)) → U31_aa(T215, T213, T214, T9, split51_in_agaa(T214, T215, X323, X324))
U31_aa(T215, T213, T214, T9, split51_out_agaa(T214, T215, X323, X324)) → qsort1_out_aa(.(T215, .(T213, T214)), T9)
U30_aa(T215, T213, T214, T9, gt67_out_aa(T213, T215)) → U32_aa(T215, T213, T214, T9, split51_in_agaa(T214, T215, T222, T223))
U32_aa(T215, T213, T214, T9, split51_out_agaa(T214, T215, T222, T223)) → U33_aa(T215, T213, T214, T9, qsort79_in_aa(T222, X12))
qsort79_in_aa([], []) → qsort79_out_aa([], [])
qsort79_in_aa(.(T163, T164), X265) → U8_aa(T163, T164, X265, split51_in_aaaa(T164, T163, X261, X262))
U8_aa(T163, T164, X265, split51_out_aaaa(T164, T163, X261, X262)) → qsort79_out_aa(.(T163, T164), X265)
qsort79_in_aa(.(T163, T164), X265) → U9_aa(T163, T164, X265, split51_in_aaaa(T164, T163, T167, T168))
U9_aa(T163, T164, X265, split51_out_aaaa(T164, T163, T167, T168)) → U10_aa(T163, T164, X265, qsort79_in_aa(T167, X263))
U10_aa(T163, T164, X265, qsort79_out_aa(T167, X263)) → qsort79_out_aa(.(T163, T164), X265)
U9_aa(T163, T164, X265, split51_out_aaaa(T164, T163, T167, T168)) → U11_aa(T163, T164, X265, T168, qsort79_in_aa(T167, T171))
U11_aa(T163, T164, X265, T168, qsort79_out_aa(T167, T171)) → U12_aa(T163, T164, X265, qsort79_in_aa(T168, X264))
U12_aa(T163, T164, X265, qsort79_out_aa(T168, X264)) → qsort79_out_aa(.(T163, T164), X265)
U11_aa(T163, T164, X265, T168, qsort79_out_aa(T167, T171)) → U13_aa(T163, T164, X265, T171, qsort79_in_aa(T168, T172))
U13_aa(T163, T164, X265, T171, qsort79_out_aa(T168, T172)) → U14_aa(T163, T164, X265, append94_in_aaaa(T171, T163, T172, X265))
append94_in_aaaa([], T185, T186, .(T185, T186)) → append94_out_aaaa([], T185, T186, .(T185, T186))
append94_in_aaaa(.(T195, T196), T197, T198, .(T195, X295)) → U15_aaaa(T195, T196, T197, T198, X295, append94_in_aaaa(T196, T197, T198, X295))
U15_aaaa(T195, T196, T197, T198, X295, append94_out_aaaa(T196, T197, T198, X295)) → append94_out_aaaa(.(T195, T196), T197, T198, .(T195, X295))
U14_aa(T163, T164, X265, append94_out_aaaa(T171, T163, T172, X265)) → qsort79_out_aa(.(T163, T164), X265)
U33_aa(T215, T213, T214, T9, qsort79_out_aa(T222, X12)) → qsort1_out_aa(.(T215, .(T213, T214)), T9)
U32_aa(T215, T213, T214, T9, split51_out_agaa(T214, T215, T222, T223)) → U34_aa(T215, T213, T214, T9, T223, qsort79_in_aa(T222, T226))
U34_aa(T215, T213, T214, T9, T223, qsort79_out_aa(T222, T226)) → U35_aa(T215, T213, T214, T9, p78_in_aaaga(.(T213, T223), X13, T226, T215, T9))
p78_in_aaaga(T94, X13, T155, T69, T9) → U16_aaaga(T94, X13, T155, T69, T9, qsort79_in_aa(T94, X13))
U16_aaaga(T94, X13, T155, T69, T9, qsort79_out_aa(T94, X13)) → p78_out_aaaga(T94, X13, T155, T69, T9)
p78_in_aaaga(T94, T158, T155, T69, T9) → U17_aaaga(T94, T158, T155, T69, T9, qsort79_in_aa(T94, T158))
U17_aaaga(T94, T158, T155, T69, T9, qsort79_out_aa(T94, T158)) → U18_aaaga(T94, T158, T155, T69, T9, append23_in_agaa(T155, T69, T158, T9))
append23_in_agaa([], T33, T34, .(T33, T34)) → append23_out_agaa([], T33, T34, .(T33, T34))
append23_in_agaa(.(T45, T46), T47, T48, .(T45, T50)) → U1_agaa(T45, T46, T47, T48, T50, append23_in_agaa(T46, T47, T48, T50))
U1_agaa(T45, T46, T47, T48, T50, append23_out_agaa(T46, T47, T48, T50)) → append23_out_agaa(.(T45, T46), T47, T48, .(T45, T50))
U18_aaaga(T94, T158, T155, T69, T9, append23_out_agaa(T155, T69, T158, T9)) → p78_out_aaaga(T94, T158, T155, T69, T9)
U35_aa(T215, T213, T214, T9, p78_out_aaaga(.(T213, T223), X13, T226, T215, T9)) → qsort1_out_aa(.(T215, .(T213, T214)), T9)
U27_aa(T69, T67, T68, T9, qsort1_out_aa(.(T67, T93), X12)) → qsort1_out_aa(.(T69, .(T67, T68)), T9)
U26_aa(T69, T67, T68, T9, split51_out_aaaa(T68, T69, T93, T94)) → U28_aa(T69, T67, T68, T9, T94, qsort1_in_aa(.(T67, T93), T155))
U28_aa(T69, T67, T68, T9, T94, qsort1_out_aa(.(T67, T93), T155)) → U29_aa(T69, T67, T68, T9, p78_in_aaaaa(T94, X13, T155, T69, T9))
p78_in_aaaaa(T94, X13, T155, T69, T9) → U16_aaaaa(T94, X13, T155, T69, T9, qsort79_in_aa(T94, X13))
U16_aaaaa(T94, X13, T155, T69, T9, qsort79_out_aa(T94, X13)) → p78_out_aaaaa(T94, X13, T155, T69, T9)
p78_in_aaaaa(T94, T158, T155, T69, T9) → U17_aaaaa(T94, T158, T155, T69, T9, qsort79_in_aa(T94, T158))
U17_aaaaa(T94, T158, T155, T69, T9, qsort79_out_aa(T94, T158)) → U18_aaaaa(T94, T158, T155, T69, T9, append23_in_aaaa(T155, T69, T158, T9))
append23_in_aaaa([], T33, T34, .(T33, T34)) → append23_out_aaaa([], T33, T34, .(T33, T34))
append23_in_aaaa(.(T45, T46), T47, T48, .(T45, T50)) → U1_aaaa(T45, T46, T47, T48, T50, append23_in_aaaa(T46, T47, T48, T50))
U1_aaaa(T45, T46, T47, T48, T50, append23_out_aaaa(T46, T47, T48, T50)) → append23_out_aaaa(.(T45, T46), T47, T48, .(T45, T50))
U18_aaaaa(T94, T158, T155, T69, T9, append23_out_aaaa(T155, T69, T158, T9)) → p78_out_aaaaa(T94, T158, T155, T69, T9)
U29_aa(T69, T67, T68, T9, p78_out_aaaaa(T94, X13, T155, T69, T9)) → qsort1_out_aa(.(T69, .(T67, T68)), T9)
U27_ga(T69, T67, T68, T9, qsort1_out_aa(.(T67, T93), X12)) → qsort1_out_ga(.(T69, .(T67, T68)), T9)
U26_ga(T69, T67, T68, T9, split51_out_ggaa(T68, T69, T93, T94)) → U28_ga(T69, T67, T68, T9, T94, qsort1_in_aa(.(T67, T93), T155))
U28_ga(T69, T67, T68, T9, T94, qsort1_out_aa(.(T67, T93), T155)) → U29_ga(T69, T67, T68, T9, p78_in_aaaga(T94, X13, T155, T69, T9))
U29_ga(T69, T67, T68, T9, p78_out_aaaga(T94, X13, T155, T69, T9)) → qsort1_out_ga(.(T69, .(T67, T68)), T9)
qsort1_in_ga(.(T215, .(T213, T214)), T9) → U30_ga(T215, T213, T214, T9, gt67_in_gg(T213, T215))
U30_ga(T215, T213, T214, T9, gt67_out_gg(T213, T215)) → qsort1_out_ga(.(T215, .(T213, T214)), T9)
U30_ga(T215, T213, T214, T9, gt67_out_gg(T213, T215)) → U31_ga(T215, T213, T214, T9, split51_in_ggaa(T214, T215, X323, X324))
U31_ga(T215, T213, T214, T9, split51_out_ggaa(T214, T215, X323, X324)) → qsort1_out_ga(.(T215, .(T213, T214)), T9)
U30_ga(T215, T213, T214, T9, gt67_out_gg(T213, T215)) → U32_ga(T215, T213, T214, T9, split51_in_ggaa(T214, T215, T222, T223))
U32_ga(T215, T213, T214, T9, split51_out_ggaa(T214, T215, T222, T223)) → U33_ga(T215, T213, T214, T9, qsort79_in_aa(T222, X12))
U33_ga(T215, T213, T214, T9, qsort79_out_aa(T222, X12)) → qsort1_out_ga(.(T215, .(T213, T214)), T9)
U32_ga(T215, T213, T214, T9, split51_out_ggaa(T214, T215, T222, T223)) → U34_ga(T215, T213, T214, T9, T223, qsort79_in_aa(T222, T226))
U34_ga(T215, T213, T214, T9, T223, qsort79_out_aa(T222, T226)) → U35_ga(T215, T213, T214, T9, p78_in_aaaga(.(T213, T223), X13, T226, T215, T9))
U35_ga(T215, T213, T214, T9, p78_out_aaaga(.(T213, T223), X13, T226, T215, T9)) → qsort1_out_ga(.(T215, .(T213, T214)), T9)
QSORT1_IN_AA(.(T69, .(T67, T68)), T9) → U24_AA(T69, T67, T68, T9, le36_in_aa(T67, T69))
U24_AA(T69, T67, T68, T9, le36_out_aa(T67, T69)) → U26_AA(T69, T67, T68, T9, split51_in_aaaa(T68, T69, T93, T94))
U26_AA(T69, T67, T68, T9, split51_out_aaaa(T68, T69, T93, T94)) → QSORT1_IN_AA(.(T67, T93), X12)
le36_in_aa(s(T82), s(T83)) → U2_aa(T82, T83, le36_in_aa(T82, T83))
le36_in_aa(0, s(T90)) → le36_out_aa(0, s(T90))
le36_in_aa(0, 0) → le36_out_aa(0, 0)
split51_in_aaaa([], T101, [], []) → split51_out_aaaa([], T101, [], [])
split51_in_aaaa(.(T114, T115), T116, .(T114, X167), X168) → U3_aaaa(T114, T115, T116, X167, X168, le36_in_aa(T114, T116))
split51_in_aaaa(.(T129, T130), T131, X199, .(T129, X200)) → U5_aaaa(T129, T130, T131, X199, X200, gt67_in_aa(T129, T131))
U2_aa(T82, T83, le36_out_aa(T82, T83)) → le36_out_aa(s(T82), s(T83))
U3_aaaa(T114, T115, T116, X167, X168, le36_out_aa(T114, T116)) → split51_out_aaaa(.(T114, T115), T116, .(T114, X167), X168)
U3_aaaa(T114, T115, T116, X167, X168, le36_out_aa(T114, T116)) → U4_aaaa(T114, T115, T116, X167, X168, split51_in_aaaa(T115, T116, X167, X168))
U5_aaaa(T129, T130, T131, X199, X200, gt67_out_aa(T129, T131)) → split51_out_aaaa(.(T129, T130), T131, X199, .(T129, X200))
U5_aaaa(T129, T130, T131, X199, X200, gt67_out_aa(T129, T131)) → U6_aaaa(T129, T130, T131, X199, X200, split51_in_agaa(T130, T131, X199, X200))
U4_aaaa(T114, T115, T116, X167, X168, split51_out_aaaa(T115, T116, X167, X168)) → split51_out_aaaa(.(T114, T115), T116, .(T114, X167), X168)
gt67_in_aa(s(T144), s(T145)) → U7_aa(T144, T145, gt67_in_aa(T144, T145))
gt67_in_aa(s(T150), 0) → gt67_out_aa(s(T150), 0)
U6_aaaa(T129, T130, T131, X199, X200, split51_out_agaa(T130, T131, X199, X200)) → split51_out_aaaa(.(T129, T130), T131, X199, .(T129, X200))
U7_aa(T144, T145, gt67_out_aa(T144, T145)) → gt67_out_aa(s(T144), s(T145))
split51_in_agaa([], T101, [], []) → split51_out_agaa([], T101, [], [])
split51_in_agaa(.(T114, T115), T116, .(T114, X167), X168) → U3_agaa(T114, T115, T116, X167, X168, le36_in_ag(T114, T116))
split51_in_agaa(.(T129, T130), T131, X199, .(T129, X200)) → U5_agaa(T129, T130, T131, X199, X200, gt67_in_ag(T129, T131))
U3_agaa(T114, T115, T116, X167, X168, le36_out_ag(T114, T116)) → split51_out_agaa(.(T114, T115), T116, .(T114, X167), X168)
U3_agaa(T114, T115, T116, X167, X168, le36_out_ag(T114, T116)) → U4_agaa(T114, T115, T116, X167, X168, split51_in_agaa(T115, T116, X167, X168))
U5_agaa(T129, T130, T131, X199, X200, gt67_out_ag(T129, T131)) → split51_out_agaa(.(T129, T130), T131, X199, .(T129, X200))
U5_agaa(T129, T130, T131, X199, X200, gt67_out_ag(T129, T131)) → U6_agaa(T129, T130, T131, X199, X200, split51_in_agaa(T130, T131, X199, X200))
le36_in_ag(s(T82), s(T83)) → U2_ag(T82, T83, le36_in_ag(T82, T83))
le36_in_ag(0, s(T90)) → le36_out_ag(0, s(T90))
le36_in_ag(0, 0) → le36_out_ag(0, 0)
U4_agaa(T114, T115, T116, X167, X168, split51_out_agaa(T115, T116, X167, X168)) → split51_out_agaa(.(T114, T115), T116, .(T114, X167), X168)
gt67_in_ag(s(T144), s(T145)) → U7_ag(T144, T145, gt67_in_ag(T144, T145))
gt67_in_ag(s(T150), 0) → gt67_out_ag(s(T150), 0)
U6_agaa(T129, T130, T131, X199, X200, split51_out_agaa(T130, T131, X199, X200)) → split51_out_agaa(.(T129, T130), T131, X199, .(T129, X200))
U2_ag(T82, T83, le36_out_ag(T82, T83)) → le36_out_ag(s(T82), s(T83))
U7_ag(T144, T145, gt67_out_ag(T144, T145)) → gt67_out_ag(s(T144), s(T145))
QSORT1_IN_AA → U24_AA(le36_in_aa)
U24_AA(le36_out_aa(T67)) → U26_AA(split51_in_aaaa)
U26_AA(split51_out_aaaa) → QSORT1_IN_AA
le36_in_aa → U2_aa(le36_in_aa)
le36_in_aa → le36_out_aa(0)
split51_in_aaaa → split51_out_aaaa
split51_in_aaaa → U3_aaaa(le36_in_aa)
split51_in_aaaa → U5_aaaa(gt67_in_aa)
U2_aa(le36_out_aa(T82)) → le36_out_aa(s(T82))
U3_aaaa(le36_out_aa(T114)) → split51_out_aaaa
U3_aaaa(le36_out_aa(T114)) → U4_aaaa(split51_in_aaaa)
U5_aaaa(gt67_out_aa(T131)) → split51_out_aaaa
U5_aaaa(gt67_out_aa(T131)) → U6_aaaa(split51_in_agaa(T131))
U4_aaaa(split51_out_aaaa) → split51_out_aaaa
gt67_in_aa → U7_aa(gt67_in_aa)
gt67_in_aa → gt67_out_aa(0)
U6_aaaa(split51_out_agaa) → split51_out_aaaa
U7_aa(gt67_out_aa(T145)) → gt67_out_aa(s(T145))
split51_in_agaa(T101) → split51_out_agaa
split51_in_agaa(T116) → U3_agaa(T116, le36_in_ag(T116))
split51_in_agaa(T131) → U5_agaa(T131, gt67_in_ag(T131))
U3_agaa(T116, le36_out_ag(T114)) → split51_out_agaa
U3_agaa(T116, le36_out_ag(T114)) → U4_agaa(split51_in_agaa(T116))
U5_agaa(T131, gt67_out_ag) → split51_out_agaa
U5_agaa(T131, gt67_out_ag) → U6_agaa(split51_in_agaa(T131))
le36_in_ag(s(T83)) → U2_ag(le36_in_ag(T83))
le36_in_ag(s(T90)) → le36_out_ag(0)
le36_in_ag(0) → le36_out_ag(0)
U4_agaa(split51_out_agaa) → split51_out_agaa
gt67_in_ag(s(T145)) → U7_ag(gt67_in_ag(T145))
gt67_in_ag(0) → gt67_out_ag
U6_agaa(split51_out_agaa) → split51_out_agaa
U2_ag(le36_out_ag(T82)) → le36_out_ag(s(T82))
U7_ag(gt67_out_ag) → gt67_out_ag
le36_in_aa
split51_in_aaaa
U2_aa(x0)
U3_aaaa(x0)
U5_aaaa(x0)
U4_aaaa(x0)
gt67_in_aa
U6_aaaa(x0)
U7_aa(x0)
split51_in_agaa(x0)
U3_agaa(x0, x1)
U5_agaa(x0, x1)
le36_in_ag(x0)
U4_agaa(x0)
gt67_in_ag(x0)
U6_agaa(x0)
U2_ag(x0)
U7_ag(x0)
QSORT1_IN_AA → U24_AA(U2_aa(le36_in_aa))
QSORT1_IN_AA → U24_AA(le36_out_aa(0))
U24_AA(le36_out_aa(T67)) → U26_AA(split51_in_aaaa)
U26_AA(split51_out_aaaa) → QSORT1_IN_AA
QSORT1_IN_AA → U24_AA(U2_aa(le36_in_aa))
QSORT1_IN_AA → U24_AA(le36_out_aa(0))
le36_in_aa → U2_aa(le36_in_aa)
le36_in_aa → le36_out_aa(0)
split51_in_aaaa → split51_out_aaaa
split51_in_aaaa → U3_aaaa(le36_in_aa)
split51_in_aaaa → U5_aaaa(gt67_in_aa)
U2_aa(le36_out_aa(T82)) → le36_out_aa(s(T82))
U3_aaaa(le36_out_aa(T114)) → split51_out_aaaa
U3_aaaa(le36_out_aa(T114)) → U4_aaaa(split51_in_aaaa)
U5_aaaa(gt67_out_aa(T131)) → split51_out_aaaa
U5_aaaa(gt67_out_aa(T131)) → U6_aaaa(split51_in_agaa(T131))
U4_aaaa(split51_out_aaaa) → split51_out_aaaa
gt67_in_aa → U7_aa(gt67_in_aa)
gt67_in_aa → gt67_out_aa(0)
U6_aaaa(split51_out_agaa) → split51_out_aaaa
U7_aa(gt67_out_aa(T145)) → gt67_out_aa(s(T145))
split51_in_agaa(T101) → split51_out_agaa
split51_in_agaa(T116) → U3_agaa(T116, le36_in_ag(T116))
split51_in_agaa(T131) → U5_agaa(T131, gt67_in_ag(T131))
U3_agaa(T116, le36_out_ag(T114)) → split51_out_agaa
U3_agaa(T116, le36_out_ag(T114)) → U4_agaa(split51_in_agaa(T116))
U5_agaa(T131, gt67_out_ag) → split51_out_agaa
U5_agaa(T131, gt67_out_ag) → U6_agaa(split51_in_agaa(T131))
le36_in_ag(s(T83)) → U2_ag(le36_in_ag(T83))
le36_in_ag(s(T90)) → le36_out_ag(0)
le36_in_ag(0) → le36_out_ag(0)
U4_agaa(split51_out_agaa) → split51_out_agaa
gt67_in_ag(s(T145)) → U7_ag(gt67_in_ag(T145))
gt67_in_ag(0) → gt67_out_ag
U6_agaa(split51_out_agaa) → split51_out_agaa
U2_ag(le36_out_ag(T82)) → le36_out_ag(s(T82))
U7_ag(gt67_out_ag) → gt67_out_ag
le36_in_aa
split51_in_aaaa
U2_aa(x0)
U3_aaaa(x0)
U5_aaaa(x0)
U4_aaaa(x0)
gt67_in_aa
U6_aaaa(x0)
U7_aa(x0)
split51_in_agaa(x0)
U3_agaa(x0, x1)
U5_agaa(x0, x1)
le36_in_ag(x0)
U4_agaa(x0)
gt67_in_ag(x0)
U6_agaa(x0)
U2_ag(x0)
U7_ag(x0)
U24_AA(le36_out_aa(y0)) → U26_AA(split51_out_aaaa)
U24_AA(le36_out_aa(y0)) → U26_AA(U3_aaaa(le36_in_aa))
U24_AA(le36_out_aa(y0)) → U26_AA(U5_aaaa(gt67_in_aa))
U26_AA(split51_out_aaaa) → QSORT1_IN_AA
QSORT1_IN_AA → U24_AA(U2_aa(le36_in_aa))
QSORT1_IN_AA → U24_AA(le36_out_aa(0))
U24_AA(le36_out_aa(y0)) → U26_AA(split51_out_aaaa)
U24_AA(le36_out_aa(y0)) → U26_AA(U3_aaaa(le36_in_aa))
U24_AA(le36_out_aa(y0)) → U26_AA(U5_aaaa(gt67_in_aa))
le36_in_aa → U2_aa(le36_in_aa)
le36_in_aa → le36_out_aa(0)
split51_in_aaaa → split51_out_aaaa
split51_in_aaaa → U3_aaaa(le36_in_aa)
split51_in_aaaa → U5_aaaa(gt67_in_aa)
U2_aa(le36_out_aa(T82)) → le36_out_aa(s(T82))
U3_aaaa(le36_out_aa(T114)) → split51_out_aaaa
U3_aaaa(le36_out_aa(T114)) → U4_aaaa(split51_in_aaaa)
U5_aaaa(gt67_out_aa(T131)) → split51_out_aaaa
U5_aaaa(gt67_out_aa(T131)) → U6_aaaa(split51_in_agaa(T131))
U4_aaaa(split51_out_aaaa) → split51_out_aaaa
gt67_in_aa → U7_aa(gt67_in_aa)
gt67_in_aa → gt67_out_aa(0)
U6_aaaa(split51_out_agaa) → split51_out_aaaa
U7_aa(gt67_out_aa(T145)) → gt67_out_aa(s(T145))
split51_in_agaa(T101) → split51_out_agaa
split51_in_agaa(T116) → U3_agaa(T116, le36_in_ag(T116))
split51_in_agaa(T131) → U5_agaa(T131, gt67_in_ag(T131))
U3_agaa(T116, le36_out_ag(T114)) → split51_out_agaa
U3_agaa(T116, le36_out_ag(T114)) → U4_agaa(split51_in_agaa(T116))
U5_agaa(T131, gt67_out_ag) → split51_out_agaa
U5_agaa(T131, gt67_out_ag) → U6_agaa(split51_in_agaa(T131))
le36_in_ag(s(T83)) → U2_ag(le36_in_ag(T83))
le36_in_ag(s(T90)) → le36_out_ag(0)
le36_in_ag(0) → le36_out_ag(0)
U4_agaa(split51_out_agaa) → split51_out_agaa
gt67_in_ag(s(T145)) → U7_ag(gt67_in_ag(T145))
gt67_in_ag(0) → gt67_out_ag
U6_agaa(split51_out_agaa) → split51_out_agaa
U2_ag(le36_out_ag(T82)) → le36_out_ag(s(T82))
U7_ag(gt67_out_ag) → gt67_out_ag
le36_in_aa
split51_in_aaaa
U2_aa(x0)
U3_aaaa(x0)
U5_aaaa(x0)
U4_aaaa(x0)
gt67_in_aa
U6_aaaa(x0)
U7_aa(x0)
split51_in_agaa(x0)
U3_agaa(x0, x1)
U5_agaa(x0, x1)
le36_in_ag(x0)
U4_agaa(x0)
gt67_in_ag(x0)
U6_agaa(x0)
U2_ag(x0)
U7_ag(x0)
GT67_IN_GG(s(T144), s(T145)) → GT67_IN_GG(T144, T145)
qsort1_in_ga([], []) → qsort1_out_ga([], [])
qsort1_in_ga(.(T14, []), T9) → U19_ga(T14, T9, qsort14_in_a(X12))
qsort14_in_a([]) → qsort14_out_a([])
U19_ga(T14, T9, qsort14_out_a(X12)) → qsort1_out_ga(.(T14, []), T9)
qsort1_in_ga(.(T14, []), T9) → U20_ga(T14, T9, qsort14_in_a(T17))
U20_ga(T14, T9, qsort14_out_a(T17)) → U21_ga(T14, T9, qsort14_in_a(X13))
U21_ga(T14, T9, qsort14_out_a(X13)) → qsort1_out_ga(.(T14, []), T9)
U20_ga(T14, T9, qsort14_out_a(T17)) → U22_ga(T14, T9, T17, qsort14_in_a(T20))
U22_ga(T14, T9, T17, qsort14_out_a(T20)) → U23_ga(T14, T9, append23_in_ggga(T17, T14, T20, T9))
append23_in_ggga([], T33, T34, .(T33, T34)) → append23_out_ggga([], T33, T34, .(T33, T34))
append23_in_ggga(.(T45, T46), T47, T48, .(T45, T50)) → U1_ggga(T45, T46, T47, T48, T50, append23_in_ggga(T46, T47, T48, T50))
U1_ggga(T45, T46, T47, T48, T50, append23_out_ggga(T46, T47, T48, T50)) → append23_out_ggga(.(T45, T46), T47, T48, .(T45, T50))
U23_ga(T14, T9, append23_out_ggga(T17, T14, T20, T9)) → qsort1_out_ga(.(T14, []), T9)
qsort1_in_ga(.(T69, .(T67, T68)), T9) → U24_ga(T69, T67, T68, T9, le36_in_gg(T67, T69))
le36_in_gg(s(T82), s(T83)) → U2_gg(T82, T83, le36_in_gg(T82, T83))
le36_in_gg(0, s(T90)) → le36_out_gg(0, s(T90))
le36_in_gg(0, 0) → le36_out_gg(0, 0)
U2_gg(T82, T83, le36_out_gg(T82, T83)) → le36_out_gg(s(T82), s(T83))
U24_ga(T69, T67, T68, T9, le36_out_gg(T67, T69)) → qsort1_out_ga(.(T69, .(T67, T68)), T9)
U24_ga(T69, T67, T68, T9, le36_out_gg(T67, T69)) → U25_ga(T69, T67, T68, T9, split51_in_ggaa(T68, T69, X93, X94))
split51_in_ggaa([], T101, [], []) → split51_out_ggaa([], T101, [], [])
split51_in_ggaa(.(T114, T115), T116, .(T114, X167), X168) → U3_ggaa(T114, T115, T116, X167, X168, le36_in_gg(T114, T116))
U3_ggaa(T114, T115, T116, X167, X168, le36_out_gg(T114, T116)) → split51_out_ggaa(.(T114, T115), T116, .(T114, X167), X168)
U3_ggaa(T114, T115, T116, X167, X168, le36_out_gg(T114, T116)) → U4_ggaa(T114, T115, T116, X167, X168, split51_in_ggaa(T115, T116, X167, X168))
split51_in_ggaa(.(T129, T130), T131, X199, .(T129, X200)) → U5_ggaa(T129, T130, T131, X199, X200, gt67_in_gg(T129, T131))
gt67_in_gg(s(T144), s(T145)) → U7_gg(T144, T145, gt67_in_gg(T144, T145))
gt67_in_gg(s(T150), 0) → gt67_out_gg(s(T150), 0)
U7_gg(T144, T145, gt67_out_gg(T144, T145)) → gt67_out_gg(s(T144), s(T145))
U5_ggaa(T129, T130, T131, X199, X200, gt67_out_gg(T129, T131)) → split51_out_ggaa(.(T129, T130), T131, X199, .(T129, X200))
U5_ggaa(T129, T130, T131, X199, X200, gt67_out_gg(T129, T131)) → U6_ggaa(T129, T130, T131, X199, X200, split51_in_ggaa(T130, T131, X199, X200))
U6_ggaa(T129, T130, T131, X199, X200, split51_out_ggaa(T130, T131, X199, X200)) → split51_out_ggaa(.(T129, T130), T131, X199, .(T129, X200))
U4_ggaa(T114, T115, T116, X167, X168, split51_out_ggaa(T115, T116, X167, X168)) → split51_out_ggaa(.(T114, T115), T116, .(T114, X167), X168)
U25_ga(T69, T67, T68, T9, split51_out_ggaa(T68, T69, X93, X94)) → qsort1_out_ga(.(T69, .(T67, T68)), T9)
U24_ga(T69, T67, T68, T9, le36_out_gg(T67, T69)) → U26_ga(T69, T67, T68, T9, split51_in_ggaa(T68, T69, T93, T94))
U26_ga(T69, T67, T68, T9, split51_out_ggaa(T68, T69, T93, T94)) → U27_ga(T69, T67, T68, T9, qsort1_in_aa(.(T67, T93), X12))
qsort1_in_aa([], []) → qsort1_out_aa([], [])
qsort1_in_aa(.(T14, []), T9) → U19_aa(T14, T9, qsort14_in_a(X12))
U19_aa(T14, T9, qsort14_out_a(X12)) → qsort1_out_aa(.(T14, []), T9)
qsort1_in_aa(.(T14, []), T9) → U20_aa(T14, T9, qsort14_in_a(T17))
U20_aa(T14, T9, qsort14_out_a(T17)) → U21_aa(T14, T9, qsort14_in_a(X13))
U21_aa(T14, T9, qsort14_out_a(X13)) → qsort1_out_aa(.(T14, []), T9)
U20_aa(T14, T9, qsort14_out_a(T17)) → U22_aa(T14, T9, T17, qsort14_in_a(T20))
U22_aa(T14, T9, T17, qsort14_out_a(T20)) → U23_aa(T14, T9, append23_in_gaga(T17, T14, T20, T9))
append23_in_gaga([], T33, T34, .(T33, T34)) → append23_out_gaga([], T33, T34, .(T33, T34))
append23_in_gaga(.(T45, T46), T47, T48, .(T45, T50)) → U1_gaga(T45, T46, T47, T48, T50, append23_in_gaga(T46, T47, T48, T50))
U1_gaga(T45, T46, T47, T48, T50, append23_out_gaga(T46, T47, T48, T50)) → append23_out_gaga(.(T45, T46), T47, T48, .(T45, T50))
U23_aa(T14, T9, append23_out_gaga(T17, T14, T20, T9)) → qsort1_out_aa(.(T14, []), T9)
qsort1_in_aa(.(T69, .(T67, T68)), T9) → U24_aa(T69, T67, T68, T9, le36_in_aa(T67, T69))
le36_in_aa(s(T82), s(T83)) → U2_aa(T82, T83, le36_in_aa(T82, T83))
le36_in_aa(0, s(T90)) → le36_out_aa(0, s(T90))
le36_in_aa(0, 0) → le36_out_aa(0, 0)
U2_aa(T82, T83, le36_out_aa(T82, T83)) → le36_out_aa(s(T82), s(T83))
U24_aa(T69, T67, T68, T9, le36_out_aa(T67, T69)) → qsort1_out_aa(.(T69, .(T67, T68)), T9)
U24_aa(T69, T67, T68, T9, le36_out_aa(T67, T69)) → U25_aa(T69, T67, T68, T9, split51_in_aaaa(T68, T69, X93, X94))
split51_in_aaaa([], T101, [], []) → split51_out_aaaa([], T101, [], [])
split51_in_aaaa(.(T114, T115), T116, .(T114, X167), X168) → U3_aaaa(T114, T115, T116, X167, X168, le36_in_aa(T114, T116))
U3_aaaa(T114, T115, T116, X167, X168, le36_out_aa(T114, T116)) → split51_out_aaaa(.(T114, T115), T116, .(T114, X167), X168)
U3_aaaa(T114, T115, T116, X167, X168, le36_out_aa(T114, T116)) → U4_aaaa(T114, T115, T116, X167, X168, split51_in_aaaa(T115, T116, X167, X168))
split51_in_aaaa(.(T129, T130), T131, X199, .(T129, X200)) → U5_aaaa(T129, T130, T131, X199, X200, gt67_in_aa(T129, T131))
gt67_in_aa(s(T144), s(T145)) → U7_aa(T144, T145, gt67_in_aa(T144, T145))
gt67_in_aa(s(T150), 0) → gt67_out_aa(s(T150), 0)
U7_aa(T144, T145, gt67_out_aa(T144, T145)) → gt67_out_aa(s(T144), s(T145))
U5_aaaa(T129, T130, T131, X199, X200, gt67_out_aa(T129, T131)) → split51_out_aaaa(.(T129, T130), T131, X199, .(T129, X200))
U5_aaaa(T129, T130, T131, X199, X200, gt67_out_aa(T129, T131)) → U6_aaaa(T129, T130, T131, X199, X200, split51_in_agaa(T130, T131, X199, X200))
split51_in_agaa([], T101, [], []) → split51_out_agaa([], T101, [], [])
split51_in_agaa(.(T114, T115), T116, .(T114, X167), X168) → U3_agaa(T114, T115, T116, X167, X168, le36_in_ag(T114, T116))
le36_in_ag(s(T82), s(T83)) → U2_ag(T82, T83, le36_in_ag(T82, T83))
le36_in_ag(0, s(T90)) → le36_out_ag(0, s(T90))
le36_in_ag(0, 0) → le36_out_ag(0, 0)
U2_ag(T82, T83, le36_out_ag(T82, T83)) → le36_out_ag(s(T82), s(T83))
U3_agaa(T114, T115, T116, X167, X168, le36_out_ag(T114, T116)) → split51_out_agaa(.(T114, T115), T116, .(T114, X167), X168)
U3_agaa(T114, T115, T116, X167, X168, le36_out_ag(T114, T116)) → U4_agaa(T114, T115, T116, X167, X168, split51_in_agaa(T115, T116, X167, X168))
split51_in_agaa(.(T129, T130), T131, X199, .(T129, X200)) → U5_agaa(T129, T130, T131, X199, X200, gt67_in_ag(T129, T131))
gt67_in_ag(s(T144), s(T145)) → U7_ag(T144, T145, gt67_in_ag(T144, T145))
gt67_in_ag(s(T150), 0) → gt67_out_ag(s(T150), 0)
U7_ag(T144, T145, gt67_out_ag(T144, T145)) → gt67_out_ag(s(T144), s(T145))
U5_agaa(T129, T130, T131, X199, X200, gt67_out_ag(T129, T131)) → split51_out_agaa(.(T129, T130), T131, X199, .(T129, X200))
U5_agaa(T129, T130, T131, X199, X200, gt67_out_ag(T129, T131)) → U6_agaa(T129, T130, T131, X199, X200, split51_in_agaa(T130, T131, X199, X200))
U6_agaa(T129, T130, T131, X199, X200, split51_out_agaa(T130, T131, X199, X200)) → split51_out_agaa(.(T129, T130), T131, X199, .(T129, X200))
U4_agaa(T114, T115, T116, X167, X168, split51_out_agaa(T115, T116, X167, X168)) → split51_out_agaa(.(T114, T115), T116, .(T114, X167), X168)
U6_aaaa(T129, T130, T131, X199, X200, split51_out_agaa(T130, T131, X199, X200)) → split51_out_aaaa(.(T129, T130), T131, X199, .(T129, X200))
U4_aaaa(T114, T115, T116, X167, X168, split51_out_aaaa(T115, T116, X167, X168)) → split51_out_aaaa(.(T114, T115), T116, .(T114, X167), X168)
U25_aa(T69, T67, T68, T9, split51_out_aaaa(T68, T69, X93, X94)) → qsort1_out_aa(.(T69, .(T67, T68)), T9)
U24_aa(T69, T67, T68, T9, le36_out_aa(T67, T69)) → U26_aa(T69, T67, T68, T9, split51_in_aaaa(T68, T69, T93, T94))
U26_aa(T69, T67, T68, T9, split51_out_aaaa(T68, T69, T93, T94)) → U27_aa(T69, T67, T68, T9, qsort1_in_aa(.(T67, T93), X12))
qsort1_in_aa(.(T215, .(T213, T214)), T9) → U30_aa(T215, T213, T214, T9, gt67_in_aa(T213, T215))
U30_aa(T215, T213, T214, T9, gt67_out_aa(T213, T215)) → qsort1_out_aa(.(T215, .(T213, T214)), T9)
U30_aa(T215, T213, T214, T9, gt67_out_aa(T213, T215)) → U31_aa(T215, T213, T214, T9, split51_in_agaa(T214, T215, X323, X324))
U31_aa(T215, T213, T214, T9, split51_out_agaa(T214, T215, X323, X324)) → qsort1_out_aa(.(T215, .(T213, T214)), T9)
U30_aa(T215, T213, T214, T9, gt67_out_aa(T213, T215)) → U32_aa(T215, T213, T214, T9, split51_in_agaa(T214, T215, T222, T223))
U32_aa(T215, T213, T214, T9, split51_out_agaa(T214, T215, T222, T223)) → U33_aa(T215, T213, T214, T9, qsort79_in_aa(T222, X12))
qsort79_in_aa([], []) → qsort79_out_aa([], [])
qsort79_in_aa(.(T163, T164), X265) → U8_aa(T163, T164, X265, split51_in_aaaa(T164, T163, X261, X262))
U8_aa(T163, T164, X265, split51_out_aaaa(T164, T163, X261, X262)) → qsort79_out_aa(.(T163, T164), X265)
qsort79_in_aa(.(T163, T164), X265) → U9_aa(T163, T164, X265, split51_in_aaaa(T164, T163, T167, T168))
U9_aa(T163, T164, X265, split51_out_aaaa(T164, T163, T167, T168)) → U10_aa(T163, T164, X265, qsort79_in_aa(T167, X263))
U10_aa(T163, T164, X265, qsort79_out_aa(T167, X263)) → qsort79_out_aa(.(T163, T164), X265)
U9_aa(T163, T164, X265, split51_out_aaaa(T164, T163, T167, T168)) → U11_aa(T163, T164, X265, T168, qsort79_in_aa(T167, T171))
U11_aa(T163, T164, X265, T168, qsort79_out_aa(T167, T171)) → U12_aa(T163, T164, X265, qsort79_in_aa(T168, X264))
U12_aa(T163, T164, X265, qsort79_out_aa(T168, X264)) → qsort79_out_aa(.(T163, T164), X265)
U11_aa(T163, T164, X265, T168, qsort79_out_aa(T167, T171)) → U13_aa(T163, T164, X265, T171, qsort79_in_aa(T168, T172))
U13_aa(T163, T164, X265, T171, qsort79_out_aa(T168, T172)) → U14_aa(T163, T164, X265, append94_in_aaaa(T171, T163, T172, X265))
append94_in_aaaa([], T185, T186, .(T185, T186)) → append94_out_aaaa([], T185, T186, .(T185, T186))
append94_in_aaaa(.(T195, T196), T197, T198, .(T195, X295)) → U15_aaaa(T195, T196, T197, T198, X295, append94_in_aaaa(T196, T197, T198, X295))
U15_aaaa(T195, T196, T197, T198, X295, append94_out_aaaa(T196, T197, T198, X295)) → append94_out_aaaa(.(T195, T196), T197, T198, .(T195, X295))
U14_aa(T163, T164, X265, append94_out_aaaa(T171, T163, T172, X265)) → qsort79_out_aa(.(T163, T164), X265)
U33_aa(T215, T213, T214, T9, qsort79_out_aa(T222, X12)) → qsort1_out_aa(.(T215, .(T213, T214)), T9)
U32_aa(T215, T213, T214, T9, split51_out_agaa(T214, T215, T222, T223)) → U34_aa(T215, T213, T214, T9, T223, qsort79_in_aa(T222, T226))
U34_aa(T215, T213, T214, T9, T223, qsort79_out_aa(T222, T226)) → U35_aa(T215, T213, T214, T9, p78_in_aaaga(.(T213, T223), X13, T226, T215, T9))
p78_in_aaaga(T94, X13, T155, T69, T9) → U16_aaaga(T94, X13, T155, T69, T9, qsort79_in_aa(T94, X13))
U16_aaaga(T94, X13, T155, T69, T9, qsort79_out_aa(T94, X13)) → p78_out_aaaga(T94, X13, T155, T69, T9)
p78_in_aaaga(T94, T158, T155, T69, T9) → U17_aaaga(T94, T158, T155, T69, T9, qsort79_in_aa(T94, T158))
U17_aaaga(T94, T158, T155, T69, T9, qsort79_out_aa(T94, T158)) → U18_aaaga(T94, T158, T155, T69, T9, append23_in_agaa(T155, T69, T158, T9))
append23_in_agaa([], T33, T34, .(T33, T34)) → append23_out_agaa([], T33, T34, .(T33, T34))
append23_in_agaa(.(T45, T46), T47, T48, .(T45, T50)) → U1_agaa(T45, T46, T47, T48, T50, append23_in_agaa(T46, T47, T48, T50))
U1_agaa(T45, T46, T47, T48, T50, append23_out_agaa(T46, T47, T48, T50)) → append23_out_agaa(.(T45, T46), T47, T48, .(T45, T50))
U18_aaaga(T94, T158, T155, T69, T9, append23_out_agaa(T155, T69, T158, T9)) → p78_out_aaaga(T94, T158, T155, T69, T9)
U35_aa(T215, T213, T214, T9, p78_out_aaaga(.(T213, T223), X13, T226, T215, T9)) → qsort1_out_aa(.(T215, .(T213, T214)), T9)
U27_aa(T69, T67, T68, T9, qsort1_out_aa(.(T67, T93), X12)) → qsort1_out_aa(.(T69, .(T67, T68)), T9)
U26_aa(T69, T67, T68, T9, split51_out_aaaa(T68, T69, T93, T94)) → U28_aa(T69, T67, T68, T9, T94, qsort1_in_aa(.(T67, T93), T155))
U28_aa(T69, T67, T68, T9, T94, qsort1_out_aa(.(T67, T93), T155)) → U29_aa(T69, T67, T68, T9, p78_in_aaaaa(T94, X13, T155, T69, T9))
p78_in_aaaaa(T94, X13, T155, T69, T9) → U16_aaaaa(T94, X13, T155, T69, T9, qsort79_in_aa(T94, X13))
U16_aaaaa(T94, X13, T155, T69, T9, qsort79_out_aa(T94, X13)) → p78_out_aaaaa(T94, X13, T155, T69, T9)
p78_in_aaaaa(T94, T158, T155, T69, T9) → U17_aaaaa(T94, T158, T155, T69, T9, qsort79_in_aa(T94, T158))
U17_aaaaa(T94, T158, T155, T69, T9, qsort79_out_aa(T94, T158)) → U18_aaaaa(T94, T158, T155, T69, T9, append23_in_aaaa(T155, T69, T158, T9))
append23_in_aaaa([], T33, T34, .(T33, T34)) → append23_out_aaaa([], T33, T34, .(T33, T34))
append23_in_aaaa(.(T45, T46), T47, T48, .(T45, T50)) → U1_aaaa(T45, T46, T47, T48, T50, append23_in_aaaa(T46, T47, T48, T50))
U1_aaaa(T45, T46, T47, T48, T50, append23_out_aaaa(T46, T47, T48, T50)) → append23_out_aaaa(.(T45, T46), T47, T48, .(T45, T50))
U18_aaaaa(T94, T158, T155, T69, T9, append23_out_aaaa(T155, T69, T158, T9)) → p78_out_aaaaa(T94, T158, T155, T69, T9)
U29_aa(T69, T67, T68, T9, p78_out_aaaaa(T94, X13, T155, T69, T9)) → qsort1_out_aa(.(T69, .(T67, T68)), T9)
U27_ga(T69, T67, T68, T9, qsort1_out_aa(.(T67, T93), X12)) → qsort1_out_ga(.(T69, .(T67, T68)), T9)
U26_ga(T69, T67, T68, T9, split51_out_ggaa(T68, T69, T93, T94)) → U28_ga(T69, T67, T68, T9, T94, qsort1_in_aa(.(T67, T93), T155))
U28_ga(T69, T67, T68, T9, T94, qsort1_out_aa(.(T67, T93), T155)) → U29_ga(T69, T67, T68, T9, p78_in_aaaga(T94, X13, T155, T69, T9))
U29_ga(T69, T67, T68, T9, p78_out_aaaga(T94, X13, T155, T69, T9)) → qsort1_out_ga(.(T69, .(T67, T68)), T9)
qsort1_in_ga(.(T215, .(T213, T214)), T9) → U30_ga(T215, T213, T214, T9, gt67_in_gg(T213, T215))
U30_ga(T215, T213, T214, T9, gt67_out_gg(T213, T215)) → qsort1_out_ga(.(T215, .(T213, T214)), T9)
U30_ga(T215, T213, T214, T9, gt67_out_gg(T213, T215)) → U31_ga(T215, T213, T214, T9, split51_in_ggaa(T214, T215, X323, X324))
U31_ga(T215, T213, T214, T9, split51_out_ggaa(T214, T215, X323, X324)) → qsort1_out_ga(.(T215, .(T213, T214)), T9)
U30_ga(T215, T213, T214, T9, gt67_out_gg(T213, T215)) → U32_ga(T215, T213, T214, T9, split51_in_ggaa(T214, T215, T222, T223))
U32_ga(T215, T213, T214, T9, split51_out_ggaa(T214, T215, T222, T223)) → U33_ga(T215, T213, T214, T9, qsort79_in_aa(T222, X12))
U33_ga(T215, T213, T214, T9, qsort79_out_aa(T222, X12)) → qsort1_out_ga(.(T215, .(T213, T214)), T9)
U32_ga(T215, T213, T214, T9, split51_out_ggaa(T214, T215, T222, T223)) → U34_ga(T215, T213, T214, T9, T223, qsort79_in_aa(T222, T226))
U34_ga(T215, T213, T214, T9, T223, qsort79_out_aa(T222, T226)) → U35_ga(T215, T213, T214, T9, p78_in_aaaga(.(T213, T223), X13, T226, T215, T9))
U35_ga(T215, T213, T214, T9, p78_out_aaaga(.(T213, T223), X13, T226, T215, T9)) → qsort1_out_ga(.(T215, .(T213, T214)), T9)
GT67_IN_GG(s(T144), s(T145)) → GT67_IN_GG(T144, T145)
GT67_IN_GG(s(T144), s(T145)) → GT67_IN_GG(T144, T145)
From the DPs we obtained the following set of size-change graphs:
LE36_IN_GG(s(T82), s(T83)) → LE36_IN_GG(T82, T83)
qsort1_in_ga([], []) → qsort1_out_ga([], [])
qsort1_in_ga(.(T14, []), T9) → U19_ga(T14, T9, qsort14_in_a(X12))
qsort14_in_a([]) → qsort14_out_a([])
U19_ga(T14, T9, qsort14_out_a(X12)) → qsort1_out_ga(.(T14, []), T9)
qsort1_in_ga(.(T14, []), T9) → U20_ga(T14, T9, qsort14_in_a(T17))
U20_ga(T14, T9, qsort14_out_a(T17)) → U21_ga(T14, T9, qsort14_in_a(X13))
U21_ga(T14, T9, qsort14_out_a(X13)) → qsort1_out_ga(.(T14, []), T9)
U20_ga(T14, T9, qsort14_out_a(T17)) → U22_ga(T14, T9, T17, qsort14_in_a(T20))
U22_ga(T14, T9, T17, qsort14_out_a(T20)) → U23_ga(T14, T9, append23_in_ggga(T17, T14, T20, T9))
append23_in_ggga([], T33, T34, .(T33, T34)) → append23_out_ggga([], T33, T34, .(T33, T34))
append23_in_ggga(.(T45, T46), T47, T48, .(T45, T50)) → U1_ggga(T45, T46, T47, T48, T50, append23_in_ggga(T46, T47, T48, T50))
U1_ggga(T45, T46, T47, T48, T50, append23_out_ggga(T46, T47, T48, T50)) → append23_out_ggga(.(T45, T46), T47, T48, .(T45, T50))
U23_ga(T14, T9, append23_out_ggga(T17, T14, T20, T9)) → qsort1_out_ga(.(T14, []), T9)
qsort1_in_ga(.(T69, .(T67, T68)), T9) → U24_ga(T69, T67, T68, T9, le36_in_gg(T67, T69))
le36_in_gg(s(T82), s(T83)) → U2_gg(T82, T83, le36_in_gg(T82, T83))
le36_in_gg(0, s(T90)) → le36_out_gg(0, s(T90))
le36_in_gg(0, 0) → le36_out_gg(0, 0)
U2_gg(T82, T83, le36_out_gg(T82, T83)) → le36_out_gg(s(T82), s(T83))
U24_ga(T69, T67, T68, T9, le36_out_gg(T67, T69)) → qsort1_out_ga(.(T69, .(T67, T68)), T9)
U24_ga(T69, T67, T68, T9, le36_out_gg(T67, T69)) → U25_ga(T69, T67, T68, T9, split51_in_ggaa(T68, T69, X93, X94))
split51_in_ggaa([], T101, [], []) → split51_out_ggaa([], T101, [], [])
split51_in_ggaa(.(T114, T115), T116, .(T114, X167), X168) → U3_ggaa(T114, T115, T116, X167, X168, le36_in_gg(T114, T116))
U3_ggaa(T114, T115, T116, X167, X168, le36_out_gg(T114, T116)) → split51_out_ggaa(.(T114, T115), T116, .(T114, X167), X168)
U3_ggaa(T114, T115, T116, X167, X168, le36_out_gg(T114, T116)) → U4_ggaa(T114, T115, T116, X167, X168, split51_in_ggaa(T115, T116, X167, X168))
split51_in_ggaa(.(T129, T130), T131, X199, .(T129, X200)) → U5_ggaa(T129, T130, T131, X199, X200, gt67_in_gg(T129, T131))
gt67_in_gg(s(T144), s(T145)) → U7_gg(T144, T145, gt67_in_gg(T144, T145))
gt67_in_gg(s(T150), 0) → gt67_out_gg(s(T150), 0)
U7_gg(T144, T145, gt67_out_gg(T144, T145)) → gt67_out_gg(s(T144), s(T145))
U5_ggaa(T129, T130, T131, X199, X200, gt67_out_gg(T129, T131)) → split51_out_ggaa(.(T129, T130), T131, X199, .(T129, X200))
U5_ggaa(T129, T130, T131, X199, X200, gt67_out_gg(T129, T131)) → U6_ggaa(T129, T130, T131, X199, X200, split51_in_ggaa(T130, T131, X199, X200))
U6_ggaa(T129, T130, T131, X199, X200, split51_out_ggaa(T130, T131, X199, X200)) → split51_out_ggaa(.(T129, T130), T131, X199, .(T129, X200))
U4_ggaa(T114, T115, T116, X167, X168, split51_out_ggaa(T115, T116, X167, X168)) → split51_out_ggaa(.(T114, T115), T116, .(T114, X167), X168)
U25_ga(T69, T67, T68, T9, split51_out_ggaa(T68, T69, X93, X94)) → qsort1_out_ga(.(T69, .(T67, T68)), T9)
U24_ga(T69, T67, T68, T9, le36_out_gg(T67, T69)) → U26_ga(T69, T67, T68, T9, split51_in_ggaa(T68, T69, T93, T94))
U26_ga(T69, T67, T68, T9, split51_out_ggaa(T68, T69, T93, T94)) → U27_ga(T69, T67, T68, T9, qsort1_in_aa(.(T67, T93), X12))
qsort1_in_aa([], []) → qsort1_out_aa([], [])
qsort1_in_aa(.(T14, []), T9) → U19_aa(T14, T9, qsort14_in_a(X12))
U19_aa(T14, T9, qsort14_out_a(X12)) → qsort1_out_aa(.(T14, []), T9)
qsort1_in_aa(.(T14, []), T9) → U20_aa(T14, T9, qsort14_in_a(T17))
U20_aa(T14, T9, qsort14_out_a(T17)) → U21_aa(T14, T9, qsort14_in_a(X13))
U21_aa(T14, T9, qsort14_out_a(X13)) → qsort1_out_aa(.(T14, []), T9)
U20_aa(T14, T9, qsort14_out_a(T17)) → U22_aa(T14, T9, T17, qsort14_in_a(T20))
U22_aa(T14, T9, T17, qsort14_out_a(T20)) → U23_aa(T14, T9, append23_in_gaga(T17, T14, T20, T9))
append23_in_gaga([], T33, T34, .(T33, T34)) → append23_out_gaga([], T33, T34, .(T33, T34))
append23_in_gaga(.(T45, T46), T47, T48, .(T45, T50)) → U1_gaga(T45, T46, T47, T48, T50, append23_in_gaga(T46, T47, T48, T50))
U1_gaga(T45, T46, T47, T48, T50, append23_out_gaga(T46, T47, T48, T50)) → append23_out_gaga(.(T45, T46), T47, T48, .(T45, T50))
U23_aa(T14, T9, append23_out_gaga(T17, T14, T20, T9)) → qsort1_out_aa(.(T14, []), T9)
qsort1_in_aa(.(T69, .(T67, T68)), T9) → U24_aa(T69, T67, T68, T9, le36_in_aa(T67, T69))
le36_in_aa(s(T82), s(T83)) → U2_aa(T82, T83, le36_in_aa(T82, T83))
le36_in_aa(0, s(T90)) → le36_out_aa(0, s(T90))
le36_in_aa(0, 0) → le36_out_aa(0, 0)
U2_aa(T82, T83, le36_out_aa(T82, T83)) → le36_out_aa(s(T82), s(T83))
U24_aa(T69, T67, T68, T9, le36_out_aa(T67, T69)) → qsort1_out_aa(.(T69, .(T67, T68)), T9)
U24_aa(T69, T67, T68, T9, le36_out_aa(T67, T69)) → U25_aa(T69, T67, T68, T9, split51_in_aaaa(T68, T69, X93, X94))
split51_in_aaaa([], T101, [], []) → split51_out_aaaa([], T101, [], [])
split51_in_aaaa(.(T114, T115), T116, .(T114, X167), X168) → U3_aaaa(T114, T115, T116, X167, X168, le36_in_aa(T114, T116))
U3_aaaa(T114, T115, T116, X167, X168, le36_out_aa(T114, T116)) → split51_out_aaaa(.(T114, T115), T116, .(T114, X167), X168)
U3_aaaa(T114, T115, T116, X167, X168, le36_out_aa(T114, T116)) → U4_aaaa(T114, T115, T116, X167, X168, split51_in_aaaa(T115, T116, X167, X168))
split51_in_aaaa(.(T129, T130), T131, X199, .(T129, X200)) → U5_aaaa(T129, T130, T131, X199, X200, gt67_in_aa(T129, T131))
gt67_in_aa(s(T144), s(T145)) → U7_aa(T144, T145, gt67_in_aa(T144, T145))
gt67_in_aa(s(T150), 0) → gt67_out_aa(s(T150), 0)
U7_aa(T144, T145, gt67_out_aa(T144, T145)) → gt67_out_aa(s(T144), s(T145))
U5_aaaa(T129, T130, T131, X199, X200, gt67_out_aa(T129, T131)) → split51_out_aaaa(.(T129, T130), T131, X199, .(T129, X200))
U5_aaaa(T129, T130, T131, X199, X200, gt67_out_aa(T129, T131)) → U6_aaaa(T129, T130, T131, X199, X200, split51_in_agaa(T130, T131, X199, X200))
split51_in_agaa([], T101, [], []) → split51_out_agaa([], T101, [], [])
split51_in_agaa(.(T114, T115), T116, .(T114, X167), X168) → U3_agaa(T114, T115, T116, X167, X168, le36_in_ag(T114, T116))
le36_in_ag(s(T82), s(T83)) → U2_ag(T82, T83, le36_in_ag(T82, T83))
le36_in_ag(0, s(T90)) → le36_out_ag(0, s(T90))
le36_in_ag(0, 0) → le36_out_ag(0, 0)
U2_ag(T82, T83, le36_out_ag(T82, T83)) → le36_out_ag(s(T82), s(T83))
U3_agaa(T114, T115, T116, X167, X168, le36_out_ag(T114, T116)) → split51_out_agaa(.(T114, T115), T116, .(T114, X167), X168)
U3_agaa(T114, T115, T116, X167, X168, le36_out_ag(T114, T116)) → U4_agaa(T114, T115, T116, X167, X168, split51_in_agaa(T115, T116, X167, X168))
split51_in_agaa(.(T129, T130), T131, X199, .(T129, X200)) → U5_agaa(T129, T130, T131, X199, X200, gt67_in_ag(T129, T131))
gt67_in_ag(s(T144), s(T145)) → U7_ag(T144, T145, gt67_in_ag(T144, T145))
gt67_in_ag(s(T150), 0) → gt67_out_ag(s(T150), 0)
U7_ag(T144, T145, gt67_out_ag(T144, T145)) → gt67_out_ag(s(T144), s(T145))
U5_agaa(T129, T130, T131, X199, X200, gt67_out_ag(T129, T131)) → split51_out_agaa(.(T129, T130), T131, X199, .(T129, X200))
U5_agaa(T129, T130, T131, X199, X200, gt67_out_ag(T129, T131)) → U6_agaa(T129, T130, T131, X199, X200, split51_in_agaa(T130, T131, X199, X200))
U6_agaa(T129, T130, T131, X199, X200, split51_out_agaa(T130, T131, X199, X200)) → split51_out_agaa(.(T129, T130), T131, X199, .(T129, X200))
U4_agaa(T114, T115, T116, X167, X168, split51_out_agaa(T115, T116, X167, X168)) → split51_out_agaa(.(T114, T115), T116, .(T114, X167), X168)
U6_aaaa(T129, T130, T131, X199, X200, split51_out_agaa(T130, T131, X199, X200)) → split51_out_aaaa(.(T129, T130), T131, X199, .(T129, X200))
U4_aaaa(T114, T115, T116, X167, X168, split51_out_aaaa(T115, T116, X167, X168)) → split51_out_aaaa(.(T114, T115), T116, .(T114, X167), X168)
U25_aa(T69, T67, T68, T9, split51_out_aaaa(T68, T69, X93, X94)) → qsort1_out_aa(.(T69, .(T67, T68)), T9)
U24_aa(T69, T67, T68, T9, le36_out_aa(T67, T69)) → U26_aa(T69, T67, T68, T9, split51_in_aaaa(T68, T69, T93, T94))
U26_aa(T69, T67, T68, T9, split51_out_aaaa(T68, T69, T93, T94)) → U27_aa(T69, T67, T68, T9, qsort1_in_aa(.(T67, T93), X12))
qsort1_in_aa(.(T215, .(T213, T214)), T9) → U30_aa(T215, T213, T214, T9, gt67_in_aa(T213, T215))
U30_aa(T215, T213, T214, T9, gt67_out_aa(T213, T215)) → qsort1_out_aa(.(T215, .(T213, T214)), T9)
U30_aa(T215, T213, T214, T9, gt67_out_aa(T213, T215)) → U31_aa(T215, T213, T214, T9, split51_in_agaa(T214, T215, X323, X324))
U31_aa(T215, T213, T214, T9, split51_out_agaa(T214, T215, X323, X324)) → qsort1_out_aa(.(T215, .(T213, T214)), T9)
U30_aa(T215, T213, T214, T9, gt67_out_aa(T213, T215)) → U32_aa(T215, T213, T214, T9, split51_in_agaa(T214, T215, T222, T223))
U32_aa(T215, T213, T214, T9, split51_out_agaa(T214, T215, T222, T223)) → U33_aa(T215, T213, T214, T9, qsort79_in_aa(T222, X12))
qsort79_in_aa([], []) → qsort79_out_aa([], [])
qsort79_in_aa(.(T163, T164), X265) → U8_aa(T163, T164, X265, split51_in_aaaa(T164, T163, X261, X262))
U8_aa(T163, T164, X265, split51_out_aaaa(T164, T163, X261, X262)) → qsort79_out_aa(.(T163, T164), X265)
qsort79_in_aa(.(T163, T164), X265) → U9_aa(T163, T164, X265, split51_in_aaaa(T164, T163, T167, T168))
U9_aa(T163, T164, X265, split51_out_aaaa(T164, T163, T167, T168)) → U10_aa(T163, T164, X265, qsort79_in_aa(T167, X263))
U10_aa(T163, T164, X265, qsort79_out_aa(T167, X263)) → qsort79_out_aa(.(T163, T164), X265)
U9_aa(T163, T164, X265, split51_out_aaaa(T164, T163, T167, T168)) → U11_aa(T163, T164, X265, T168, qsort79_in_aa(T167, T171))
U11_aa(T163, T164, X265, T168, qsort79_out_aa(T167, T171)) → U12_aa(T163, T164, X265, qsort79_in_aa(T168, X264))
U12_aa(T163, T164, X265, qsort79_out_aa(T168, X264)) → qsort79_out_aa(.(T163, T164), X265)
U11_aa(T163, T164, X265, T168, qsort79_out_aa(T167, T171)) → U13_aa(T163, T164, X265, T171, qsort79_in_aa(T168, T172))
U13_aa(T163, T164, X265, T171, qsort79_out_aa(T168, T172)) → U14_aa(T163, T164, X265, append94_in_aaaa(T171, T163, T172, X265))
append94_in_aaaa([], T185, T186, .(T185, T186)) → append94_out_aaaa([], T185, T186, .(T185, T186))
append94_in_aaaa(.(T195, T196), T197, T198, .(T195, X295)) → U15_aaaa(T195, T196, T197, T198, X295, append94_in_aaaa(T196, T197, T198, X295))
U15_aaaa(T195, T196, T197, T198, X295, append94_out_aaaa(T196, T197, T198, X295)) → append94_out_aaaa(.(T195, T196), T197, T198, .(T195, X295))
U14_aa(T163, T164, X265, append94_out_aaaa(T171, T163, T172, X265)) → qsort79_out_aa(.(T163, T164), X265)
U33_aa(T215, T213, T214, T9, qsort79_out_aa(T222, X12)) → qsort1_out_aa(.(T215, .(T213, T214)), T9)
U32_aa(T215, T213, T214, T9, split51_out_agaa(T214, T215, T222, T223)) → U34_aa(T215, T213, T214, T9, T223, qsort79_in_aa(T222, T226))
U34_aa(T215, T213, T214, T9, T223, qsort79_out_aa(T222, T226)) → U35_aa(T215, T213, T214, T9, p78_in_aaaga(.(T213, T223), X13, T226, T215, T9))
p78_in_aaaga(T94, X13, T155, T69, T9) → U16_aaaga(T94, X13, T155, T69, T9, qsort79_in_aa(T94, X13))
U16_aaaga(T94, X13, T155, T69, T9, qsort79_out_aa(T94, X13)) → p78_out_aaaga(T94, X13, T155, T69, T9)
p78_in_aaaga(T94, T158, T155, T69, T9) → U17_aaaga(T94, T158, T155, T69, T9, qsort79_in_aa(T94, T158))
U17_aaaga(T94, T158, T155, T69, T9, qsort79_out_aa(T94, T158)) → U18_aaaga(T94, T158, T155, T69, T9, append23_in_agaa(T155, T69, T158, T9))
append23_in_agaa([], T33, T34, .(T33, T34)) → append23_out_agaa([], T33, T34, .(T33, T34))
append23_in_agaa(.(T45, T46), T47, T48, .(T45, T50)) → U1_agaa(T45, T46, T47, T48, T50, append23_in_agaa(T46, T47, T48, T50))
U1_agaa(T45, T46, T47, T48, T50, append23_out_agaa(T46, T47, T48, T50)) → append23_out_agaa(.(T45, T46), T47, T48, .(T45, T50))
U18_aaaga(T94, T158, T155, T69, T9, append23_out_agaa(T155, T69, T158, T9)) → p78_out_aaaga(T94, T158, T155, T69, T9)
U35_aa(T215, T213, T214, T9, p78_out_aaaga(.(T213, T223), X13, T226, T215, T9)) → qsort1_out_aa(.(T215, .(T213, T214)), T9)
U27_aa(T69, T67, T68, T9, qsort1_out_aa(.(T67, T93), X12)) → qsort1_out_aa(.(T69, .(T67, T68)), T9)
U26_aa(T69, T67, T68, T9, split51_out_aaaa(T68, T69, T93, T94)) → U28_aa(T69, T67, T68, T9, T94, qsort1_in_aa(.(T67, T93), T155))
U28_aa(T69, T67, T68, T9, T94, qsort1_out_aa(.(T67, T93), T155)) → U29_aa(T69, T67, T68, T9, p78_in_aaaaa(T94, X13, T155, T69, T9))
p78_in_aaaaa(T94, X13, T155, T69, T9) → U16_aaaaa(T94, X13, T155, T69, T9, qsort79_in_aa(T94, X13))
U16_aaaaa(T94, X13, T155, T69, T9, qsort79_out_aa(T94, X13)) → p78_out_aaaaa(T94, X13, T155, T69, T9)
p78_in_aaaaa(T94, T158, T155, T69, T9) → U17_aaaaa(T94, T158, T155, T69, T9, qsort79_in_aa(T94, T158))
U17_aaaaa(T94, T158, T155, T69, T9, qsort79_out_aa(T94, T158)) → U18_aaaaa(T94, T158, T155, T69, T9, append23_in_aaaa(T155, T69, T158, T9))
append23_in_aaaa([], T33, T34, .(T33, T34)) → append23_out_aaaa([], T33, T34, .(T33, T34))
append23_in_aaaa(.(T45, T46), T47, T48, .(T45, T50)) → U1_aaaa(T45, T46, T47, T48, T50, append23_in_aaaa(T46, T47, T48, T50))
U1_aaaa(T45, T46, T47, T48, T50, append23_out_aaaa(T46, T47, T48, T50)) → append23_out_aaaa(.(T45, T46), T47, T48, .(T45, T50))
U18_aaaaa(T94, T158, T155, T69, T9, append23_out_aaaa(T155, T69, T158, T9)) → p78_out_aaaaa(T94, T158, T155, T69, T9)
U29_aa(T69, T67, T68, T9, p78_out_aaaaa(T94, X13, T155, T69, T9)) → qsort1_out_aa(.(T69, .(T67, T68)), T9)
U27_ga(T69, T67, T68, T9, qsort1_out_aa(.(T67, T93), X12)) → qsort1_out_ga(.(T69, .(T67, T68)), T9)
U26_ga(T69, T67, T68, T9, split51_out_ggaa(T68, T69, T93, T94)) → U28_ga(T69, T67, T68, T9, T94, qsort1_in_aa(.(T67, T93), T155))
U28_ga(T69, T67, T68, T9, T94, qsort1_out_aa(.(T67, T93), T155)) → U29_ga(T69, T67, T68, T9, p78_in_aaaga(T94, X13, T155, T69, T9))
U29_ga(T69, T67, T68, T9, p78_out_aaaga(T94, X13, T155, T69, T9)) → qsort1_out_ga(.(T69, .(T67, T68)), T9)
qsort1_in_ga(.(T215, .(T213, T214)), T9) → U30_ga(T215, T213, T214, T9, gt67_in_gg(T213, T215))
U30_ga(T215, T213, T214, T9, gt67_out_gg(T213, T215)) → qsort1_out_ga(.(T215, .(T213, T214)), T9)
U30_ga(T215, T213, T214, T9, gt67_out_gg(T213, T215)) → U31_ga(T215, T213, T214, T9, split51_in_ggaa(T214, T215, X323, X324))
U31_ga(T215, T213, T214, T9, split51_out_ggaa(T214, T215, X323, X324)) → qsort1_out_ga(.(T215, .(T213, T214)), T9)
U30_ga(T215, T213, T214, T9, gt67_out_gg(T213, T215)) → U32_ga(T215, T213, T214, T9, split51_in_ggaa(T214, T215, T222, T223))
U32_ga(T215, T213, T214, T9, split51_out_ggaa(T214, T215, T222, T223)) → U33_ga(T215, T213, T214, T9, qsort79_in_aa(T222, X12))
U33_ga(T215, T213, T214, T9, qsort79_out_aa(T222, X12)) → qsort1_out_ga(.(T215, .(T213, T214)), T9)
U32_ga(T215, T213, T214, T9, split51_out_ggaa(T214, T215, T222, T223)) → U34_ga(T215, T213, T214, T9, T223, qsort79_in_aa(T222, T226))
U34_ga(T215, T213, T214, T9, T223, qsort79_out_aa(T222, T226)) → U35_ga(T215, T213, T214, T9, p78_in_aaaga(.(T213, T223), X13, T226, T215, T9))
U35_ga(T215, T213, T214, T9, p78_out_aaaga(.(T213, T223), X13, T226, T215, T9)) → qsort1_out_ga(.(T215, .(T213, T214)), T9)
LE36_IN_GG(s(T82), s(T83)) → LE36_IN_GG(T82, T83)
LE36_IN_GG(s(T82), s(T83)) → LE36_IN_GG(T82, T83)
From the DPs we obtained the following set of size-change graphs:
SPLIT51_IN_GGAA(.(T114, T115), T116, .(T114, X167), X168) → U3_GGAA(T114, T115, T116, X167, X168, le36_in_gg(T114, T116))
U3_GGAA(T114, T115, T116, X167, X168, le36_out_gg(T114, T116)) → SPLIT51_IN_GGAA(T115, T116, X167, X168)
SPLIT51_IN_GGAA(.(T129, T130), T131, X199, .(T129, X200)) → U5_GGAA(T129, T130, T131, X199, X200, gt67_in_gg(T129, T131))
U5_GGAA(T129, T130, T131, X199, X200, gt67_out_gg(T129, T131)) → SPLIT51_IN_GGAA(T130, T131, X199, X200)
qsort1_in_ga([], []) → qsort1_out_ga([], [])
qsort1_in_ga(.(T14, []), T9) → U19_ga(T14, T9, qsort14_in_a(X12))
qsort14_in_a([]) → qsort14_out_a([])
U19_ga(T14, T9, qsort14_out_a(X12)) → qsort1_out_ga(.(T14, []), T9)
qsort1_in_ga(.(T14, []), T9) → U20_ga(T14, T9, qsort14_in_a(T17))
U20_ga(T14, T9, qsort14_out_a(T17)) → U21_ga(T14, T9, qsort14_in_a(X13))
U21_ga(T14, T9, qsort14_out_a(X13)) → qsort1_out_ga(.(T14, []), T9)
U20_ga(T14, T9, qsort14_out_a(T17)) → U22_ga(T14, T9, T17, qsort14_in_a(T20))
U22_ga(T14, T9, T17, qsort14_out_a(T20)) → U23_ga(T14, T9, append23_in_ggga(T17, T14, T20, T9))
append23_in_ggga([], T33, T34, .(T33, T34)) → append23_out_ggga([], T33, T34, .(T33, T34))
append23_in_ggga(.(T45, T46), T47, T48, .(T45, T50)) → U1_ggga(T45, T46, T47, T48, T50, append23_in_ggga(T46, T47, T48, T50))
U1_ggga(T45, T46, T47, T48, T50, append23_out_ggga(T46, T47, T48, T50)) → append23_out_ggga(.(T45, T46), T47, T48, .(T45, T50))
U23_ga(T14, T9, append23_out_ggga(T17, T14, T20, T9)) → qsort1_out_ga(.(T14, []), T9)
qsort1_in_ga(.(T69, .(T67, T68)), T9) → U24_ga(T69, T67, T68, T9, le36_in_gg(T67, T69))
le36_in_gg(s(T82), s(T83)) → U2_gg(T82, T83, le36_in_gg(T82, T83))
le36_in_gg(0, s(T90)) → le36_out_gg(0, s(T90))
le36_in_gg(0, 0) → le36_out_gg(0, 0)
U2_gg(T82, T83, le36_out_gg(T82, T83)) → le36_out_gg(s(T82), s(T83))
U24_ga(T69, T67, T68, T9, le36_out_gg(T67, T69)) → qsort1_out_ga(.(T69, .(T67, T68)), T9)
U24_ga(T69, T67, T68, T9, le36_out_gg(T67, T69)) → U25_ga(T69, T67, T68, T9, split51_in_ggaa(T68, T69, X93, X94))
split51_in_ggaa([], T101, [], []) → split51_out_ggaa([], T101, [], [])
split51_in_ggaa(.(T114, T115), T116, .(T114, X167), X168) → U3_ggaa(T114, T115, T116, X167, X168, le36_in_gg(T114, T116))
U3_ggaa(T114, T115, T116, X167, X168, le36_out_gg(T114, T116)) → split51_out_ggaa(.(T114, T115), T116, .(T114, X167), X168)
U3_ggaa(T114, T115, T116, X167, X168, le36_out_gg(T114, T116)) → U4_ggaa(T114, T115, T116, X167, X168, split51_in_ggaa(T115, T116, X167, X168))
split51_in_ggaa(.(T129, T130), T131, X199, .(T129, X200)) → U5_ggaa(T129, T130, T131, X199, X200, gt67_in_gg(T129, T131))
gt67_in_gg(s(T144), s(T145)) → U7_gg(T144, T145, gt67_in_gg(T144, T145))
gt67_in_gg(s(T150), 0) → gt67_out_gg(s(T150), 0)
U7_gg(T144, T145, gt67_out_gg(T144, T145)) → gt67_out_gg(s(T144), s(T145))
U5_ggaa(T129, T130, T131, X199, X200, gt67_out_gg(T129, T131)) → split51_out_ggaa(.(T129, T130), T131, X199, .(T129, X200))
U5_ggaa(T129, T130, T131, X199, X200, gt67_out_gg(T129, T131)) → U6_ggaa(T129, T130, T131, X199, X200, split51_in_ggaa(T130, T131, X199, X200))
U6_ggaa(T129, T130, T131, X199, X200, split51_out_ggaa(T130, T131, X199, X200)) → split51_out_ggaa(.(T129, T130), T131, X199, .(T129, X200))
U4_ggaa(T114, T115, T116, X167, X168, split51_out_ggaa(T115, T116, X167, X168)) → split51_out_ggaa(.(T114, T115), T116, .(T114, X167), X168)
U25_ga(T69, T67, T68, T9, split51_out_ggaa(T68, T69, X93, X94)) → qsort1_out_ga(.(T69, .(T67, T68)), T9)
U24_ga(T69, T67, T68, T9, le36_out_gg(T67, T69)) → U26_ga(T69, T67, T68, T9, split51_in_ggaa(T68, T69, T93, T94))
U26_ga(T69, T67, T68, T9, split51_out_ggaa(T68, T69, T93, T94)) → U27_ga(T69, T67, T68, T9, qsort1_in_aa(.(T67, T93), X12))
qsort1_in_aa([], []) → qsort1_out_aa([], [])
qsort1_in_aa(.(T14, []), T9) → U19_aa(T14, T9, qsort14_in_a(X12))
U19_aa(T14, T9, qsort14_out_a(X12)) → qsort1_out_aa(.(T14, []), T9)
qsort1_in_aa(.(T14, []), T9) → U20_aa(T14, T9, qsort14_in_a(T17))
U20_aa(T14, T9, qsort14_out_a(T17)) → U21_aa(T14, T9, qsort14_in_a(X13))
U21_aa(T14, T9, qsort14_out_a(X13)) → qsort1_out_aa(.(T14, []), T9)
U20_aa(T14, T9, qsort14_out_a(T17)) → U22_aa(T14, T9, T17, qsort14_in_a(T20))
U22_aa(T14, T9, T17, qsort14_out_a(T20)) → U23_aa(T14, T9, append23_in_gaga(T17, T14, T20, T9))
append23_in_gaga([], T33, T34, .(T33, T34)) → append23_out_gaga([], T33, T34, .(T33, T34))
append23_in_gaga(.(T45, T46), T47, T48, .(T45, T50)) → U1_gaga(T45, T46, T47, T48, T50, append23_in_gaga(T46, T47, T48, T50))
U1_gaga(T45, T46, T47, T48, T50, append23_out_gaga(T46, T47, T48, T50)) → append23_out_gaga(.(T45, T46), T47, T48, .(T45, T50))
U23_aa(T14, T9, append23_out_gaga(T17, T14, T20, T9)) → qsort1_out_aa(.(T14, []), T9)
qsort1_in_aa(.(T69, .(T67, T68)), T9) → U24_aa(T69, T67, T68, T9, le36_in_aa(T67, T69))
le36_in_aa(s(T82), s(T83)) → U2_aa(T82, T83, le36_in_aa(T82, T83))
le36_in_aa(0, s(T90)) → le36_out_aa(0, s(T90))
le36_in_aa(0, 0) → le36_out_aa(0, 0)
U2_aa(T82, T83, le36_out_aa(T82, T83)) → le36_out_aa(s(T82), s(T83))
U24_aa(T69, T67, T68, T9, le36_out_aa(T67, T69)) → qsort1_out_aa(.(T69, .(T67, T68)), T9)
U24_aa(T69, T67, T68, T9, le36_out_aa(T67, T69)) → U25_aa(T69, T67, T68, T9, split51_in_aaaa(T68, T69, X93, X94))
split51_in_aaaa([], T101, [], []) → split51_out_aaaa([], T101, [], [])
split51_in_aaaa(.(T114, T115), T116, .(T114, X167), X168) → U3_aaaa(T114, T115, T116, X167, X168, le36_in_aa(T114, T116))
U3_aaaa(T114, T115, T116, X167, X168, le36_out_aa(T114, T116)) → split51_out_aaaa(.(T114, T115), T116, .(T114, X167), X168)
U3_aaaa(T114, T115, T116, X167, X168, le36_out_aa(T114, T116)) → U4_aaaa(T114, T115, T116, X167, X168, split51_in_aaaa(T115, T116, X167, X168))
split51_in_aaaa(.(T129, T130), T131, X199, .(T129, X200)) → U5_aaaa(T129, T130, T131, X199, X200, gt67_in_aa(T129, T131))
gt67_in_aa(s(T144), s(T145)) → U7_aa(T144, T145, gt67_in_aa(T144, T145))
gt67_in_aa(s(T150), 0) → gt67_out_aa(s(T150), 0)
U7_aa(T144, T145, gt67_out_aa(T144, T145)) → gt67_out_aa(s(T144), s(T145))
U5_aaaa(T129, T130, T131, X199, X200, gt67_out_aa(T129, T131)) → split51_out_aaaa(.(T129, T130), T131, X199, .(T129, X200))
U5_aaaa(T129, T130, T131, X199, X200, gt67_out_aa(T129, T131)) → U6_aaaa(T129, T130, T131, X199, X200, split51_in_agaa(T130, T131, X199, X200))
split51_in_agaa([], T101, [], []) → split51_out_agaa([], T101, [], [])
split51_in_agaa(.(T114, T115), T116, .(T114, X167), X168) → U3_agaa(T114, T115, T116, X167, X168, le36_in_ag(T114, T116))
le36_in_ag(s(T82), s(T83)) → U2_ag(T82, T83, le36_in_ag(T82, T83))
le36_in_ag(0, s(T90)) → le36_out_ag(0, s(T90))
le36_in_ag(0, 0) → le36_out_ag(0, 0)
U2_ag(T82, T83, le36_out_ag(T82, T83)) → le36_out_ag(s(T82), s(T83))
U3_agaa(T114, T115, T116, X167, X168, le36_out_ag(T114, T116)) → split51_out_agaa(.(T114, T115), T116, .(T114, X167), X168)
U3_agaa(T114, T115, T116, X167, X168, le36_out_ag(T114, T116)) → U4_agaa(T114, T115, T116, X167, X168, split51_in_agaa(T115, T116, X167, X168))
split51_in_agaa(.(T129, T130), T131, X199, .(T129, X200)) → U5_agaa(T129, T130, T131, X199, X200, gt67_in_ag(T129, T131))
gt67_in_ag(s(T144), s(T145)) → U7_ag(T144, T145, gt67_in_ag(T144, T145))
gt67_in_ag(s(T150), 0) → gt67_out_ag(s(T150), 0)
U7_ag(T144, T145, gt67_out_ag(T144, T145)) → gt67_out_ag(s(T144), s(T145))
U5_agaa(T129, T130, T131, X199, X200, gt67_out_ag(T129, T131)) → split51_out_agaa(.(T129, T130), T131, X199, .(T129, X200))
U5_agaa(T129, T130, T131, X199, X200, gt67_out_ag(T129, T131)) → U6_agaa(T129, T130, T131, X199, X200, split51_in_agaa(T130, T131, X199, X200))
U6_agaa(T129, T130, T131, X199, X200, split51_out_agaa(T130, T131, X199, X200)) → split51_out_agaa(.(T129, T130), T131, X199, .(T129, X200))
U4_agaa(T114, T115, T116, X167, X168, split51_out_agaa(T115, T116, X167, X168)) → split51_out_agaa(.(T114, T115), T116, .(T114, X167), X168)
U6_aaaa(T129, T130, T131, X199, X200, split51_out_agaa(T130, T131, X199, X200)) → split51_out_aaaa(.(T129, T130), T131, X199, .(T129, X200))
U4_aaaa(T114, T115, T116, X167, X168, split51_out_aaaa(T115, T116, X167, X168)) → split51_out_aaaa(.(T114, T115), T116, .(T114, X167), X168)
U25_aa(T69, T67, T68, T9, split51_out_aaaa(T68, T69, X93, X94)) → qsort1_out_aa(.(T69, .(T67, T68)), T9)
U24_aa(T69, T67, T68, T9, le36_out_aa(T67, T69)) → U26_aa(T69, T67, T68, T9, split51_in_aaaa(T68, T69, T93, T94))
U26_aa(T69, T67, T68, T9, split51_out_aaaa(T68, T69, T93, T94)) → U27_aa(T69, T67, T68, T9, qsort1_in_aa(.(T67, T93), X12))
qsort1_in_aa(.(T215, .(T213, T214)), T9) → U30_aa(T215, T213, T214, T9, gt67_in_aa(T213, T215))
U30_aa(T215, T213, T214, T9, gt67_out_aa(T213, T215)) → qsort1_out_aa(.(T215, .(T213, T214)), T9)
U30_aa(T215, T213, T214, T9, gt67_out_aa(T213, T215)) → U31_aa(T215, T213, T214, T9, split51_in_agaa(T214, T215, X323, X324))
U31_aa(T215, T213, T214, T9, split51_out_agaa(T214, T215, X323, X324)) → qsort1_out_aa(.(T215, .(T213, T214)), T9)
U30_aa(T215, T213, T214, T9, gt67_out_aa(T213, T215)) → U32_aa(T215, T213, T214, T9, split51_in_agaa(T214, T215, T222, T223))
U32_aa(T215, T213, T214, T9, split51_out_agaa(T214, T215, T222, T223)) → U33_aa(T215, T213, T214, T9, qsort79_in_aa(T222, X12))
qsort79_in_aa([], []) → qsort79_out_aa([], [])
qsort79_in_aa(.(T163, T164), X265) → U8_aa(T163, T164, X265, split51_in_aaaa(T164, T163, X261, X262))
U8_aa(T163, T164, X265, split51_out_aaaa(T164, T163, X261, X262)) → qsort79_out_aa(.(T163, T164), X265)
qsort79_in_aa(.(T163, T164), X265) → U9_aa(T163, T164, X265, split51_in_aaaa(T164, T163, T167, T168))
U9_aa(T163, T164, X265, split51_out_aaaa(T164, T163, T167, T168)) → U10_aa(T163, T164, X265, qsort79_in_aa(T167, X263))
U10_aa(T163, T164, X265, qsort79_out_aa(T167, X263)) → qsort79_out_aa(.(T163, T164), X265)
U9_aa(T163, T164, X265, split51_out_aaaa(T164, T163, T167, T168)) → U11_aa(T163, T164, X265, T168, qsort79_in_aa(T167, T171))
U11_aa(T163, T164, X265, T168, qsort79_out_aa(T167, T171)) → U12_aa(T163, T164, X265, qsort79_in_aa(T168, X264))
U12_aa(T163, T164, X265, qsort79_out_aa(T168, X264)) → qsort79_out_aa(.(T163, T164), X265)
U11_aa(T163, T164, X265, T168, qsort79_out_aa(T167, T171)) → U13_aa(T163, T164, X265, T171, qsort79_in_aa(T168, T172))
U13_aa(T163, T164, X265, T171, qsort79_out_aa(T168, T172)) → U14_aa(T163, T164, X265, append94_in_aaaa(T171, T163, T172, X265))
append94_in_aaaa([], T185, T186, .(T185, T186)) → append94_out_aaaa([], T185, T186, .(T185, T186))
append94_in_aaaa(.(T195, T196), T197, T198, .(T195, X295)) → U15_aaaa(T195, T196, T197, T198, X295, append94_in_aaaa(T196, T197, T198, X295))
U15_aaaa(T195, T196, T197, T198, X295, append94_out_aaaa(T196, T197, T198, X295)) → append94_out_aaaa(.(T195, T196), T197, T198, .(T195, X295))
U14_aa(T163, T164, X265, append94_out_aaaa(T171, T163, T172, X265)) → qsort79_out_aa(.(T163, T164), X265)
U33_aa(T215, T213, T214, T9, qsort79_out_aa(T222, X12)) → qsort1_out_aa(.(T215, .(T213, T214)), T9)
U32_aa(T215, T213, T214, T9, split51_out_agaa(T214, T215, T222, T223)) → U34_aa(T215, T213, T214, T9, T223, qsort79_in_aa(T222, T226))
U34_aa(T215, T213, T214, T9, T223, qsort79_out_aa(T222, T226)) → U35_aa(T215, T213, T214, T9, p78_in_aaaga(.(T213, T223), X13, T226, T215, T9))
p78_in_aaaga(T94, X13, T155, T69, T9) → U16_aaaga(T94, X13, T155, T69, T9, qsort79_in_aa(T94, X13))
U16_aaaga(T94, X13, T155, T69, T9, qsort79_out_aa(T94, X13)) → p78_out_aaaga(T94, X13, T155, T69, T9)
p78_in_aaaga(T94, T158, T155, T69, T9) → U17_aaaga(T94, T158, T155, T69, T9, qsort79_in_aa(T94, T158))
U17_aaaga(T94, T158, T155, T69, T9, qsort79_out_aa(T94, T158)) → U18_aaaga(T94, T158, T155, T69, T9, append23_in_agaa(T155, T69, T158, T9))
append23_in_agaa([], T33, T34, .(T33, T34)) → append23_out_agaa([], T33, T34, .(T33, T34))
append23_in_agaa(.(T45, T46), T47, T48, .(T45, T50)) → U1_agaa(T45, T46, T47, T48, T50, append23_in_agaa(T46, T47, T48, T50))
U1_agaa(T45, T46, T47, T48, T50, append23_out_agaa(T46, T47, T48, T50)) → append23_out_agaa(.(T45, T46), T47, T48, .(T45, T50))
U18_aaaga(T94, T158, T155, T69, T9, append23_out_agaa(T155, T69, T158, T9)) → p78_out_aaaga(T94, T158, T155, T69, T9)
U35_aa(T215, T213, T214, T9, p78_out_aaaga(.(T213, T223), X13, T226, T215, T9)) → qsort1_out_aa(.(T215, .(T213, T214)), T9)
U27_aa(T69, T67, T68, T9, qsort1_out_aa(.(T67, T93), X12)) → qsort1_out_aa(.(T69, .(T67, T68)), T9)
U26_aa(T69, T67, T68, T9, split51_out_aaaa(T68, T69, T93, T94)) → U28_aa(T69, T67, T68, T9, T94, qsort1_in_aa(.(T67, T93), T155))
U28_aa(T69, T67, T68, T9, T94, qsort1_out_aa(.(T67, T93), T155)) → U29_aa(T69, T67, T68, T9, p78_in_aaaaa(T94, X13, T155, T69, T9))
p78_in_aaaaa(T94, X13, T155, T69, T9) → U16_aaaaa(T94, X13, T155, T69, T9, qsort79_in_aa(T94, X13))
U16_aaaaa(T94, X13, T155, T69, T9, qsort79_out_aa(T94, X13)) → p78_out_aaaaa(T94, X13, T155, T69, T9)
p78_in_aaaaa(T94, T158, T155, T69, T9) → U17_aaaaa(T94, T158, T155, T69, T9, qsort79_in_aa(T94, T158))
U17_aaaaa(T94, T158, T155, T69, T9, qsort79_out_aa(T94, T158)) → U18_aaaaa(T94, T158, T155, T69, T9, append23_in_aaaa(T155, T69, T158, T9))
append23_in_aaaa([], T33, T34, .(T33, T34)) → append23_out_aaaa([], T33, T34, .(T33, T34))
append23_in_aaaa(.(T45, T46), T47, T48, .(T45, T50)) → U1_aaaa(T45, T46, T47, T48, T50, append23_in_aaaa(T46, T47, T48, T50))
U1_aaaa(T45, T46, T47, T48, T50, append23_out_aaaa(T46, T47, T48, T50)) → append23_out_aaaa(.(T45, T46), T47, T48, .(T45, T50))
U18_aaaaa(T94, T158, T155, T69, T9, append23_out_aaaa(T155, T69, T158, T9)) → p78_out_aaaaa(T94, T158, T155, T69, T9)
U29_aa(T69, T67, T68, T9, p78_out_aaaaa(T94, X13, T155, T69, T9)) → qsort1_out_aa(.(T69, .(T67, T68)), T9)
U27_ga(T69, T67, T68, T9, qsort1_out_aa(.(T67, T93), X12)) → qsort1_out_ga(.(T69, .(T67, T68)), T9)
U26_ga(T69, T67, T68, T9, split51_out_ggaa(T68, T69, T93, T94)) → U28_ga(T69, T67, T68, T9, T94, qsort1_in_aa(.(T67, T93), T155))
U28_ga(T69, T67, T68, T9, T94, qsort1_out_aa(.(T67, T93), T155)) → U29_ga(T69, T67, T68, T9, p78_in_aaaga(T94, X13, T155, T69, T9))
U29_ga(T69, T67, T68, T9, p78_out_aaaga(T94, X13, T155, T69, T9)) → qsort1_out_ga(.(T69, .(T67, T68)), T9)
qsort1_in_ga(.(T215, .(T213, T214)), T9) → U30_ga(T215, T213, T214, T9, gt67_in_gg(T213, T215))
U30_ga(T215, T213, T214, T9, gt67_out_gg(T213, T215)) → qsort1_out_ga(.(T215, .(T213, T214)), T9)
U30_ga(T215, T213, T214, T9, gt67_out_gg(T213, T215)) → U31_ga(T215, T213, T214, T9, split51_in_ggaa(T214, T215, X323, X324))
U31_ga(T215, T213, T214, T9, split51_out_ggaa(T214, T215, X323, X324)) → qsort1_out_ga(.(T215, .(T213, T214)), T9)
U30_ga(T215, T213, T214, T9, gt67_out_gg(T213, T215)) → U32_ga(T215, T213, T214, T9, split51_in_ggaa(T214, T215, T222, T223))
U32_ga(T215, T213, T214, T9, split51_out_ggaa(T214, T215, T222, T223)) → U33_ga(T215, T213, T214, T9, qsort79_in_aa(T222, X12))
U33_ga(T215, T213, T214, T9, qsort79_out_aa(T222, X12)) → qsort1_out_ga(.(T215, .(T213, T214)), T9)
U32_ga(T215, T213, T214, T9, split51_out_ggaa(T214, T215, T222, T223)) → U34_ga(T215, T213, T214, T9, T223, qsort79_in_aa(T222, T226))
U34_ga(T215, T213, T214, T9, T223, qsort79_out_aa(T222, T226)) → U35_ga(T215, T213, T214, T9, p78_in_aaaga(.(T213, T223), X13, T226, T215, T9))
U35_ga(T215, T213, T214, T9, p78_out_aaaga(.(T213, T223), X13, T226, T215, T9)) → qsort1_out_ga(.(T215, .(T213, T214)), T9)
SPLIT51_IN_GGAA(.(T114, T115), T116, .(T114, X167), X168) → U3_GGAA(T114, T115, T116, X167, X168, le36_in_gg(T114, T116))
U3_GGAA(T114, T115, T116, X167, X168, le36_out_gg(T114, T116)) → SPLIT51_IN_GGAA(T115, T116, X167, X168)
SPLIT51_IN_GGAA(.(T129, T130), T131, X199, .(T129, X200)) → U5_GGAA(T129, T130, T131, X199, X200, gt67_in_gg(T129, T131))
U5_GGAA(T129, T130, T131, X199, X200, gt67_out_gg(T129, T131)) → SPLIT51_IN_GGAA(T130, T131, X199, X200)
le36_in_gg(s(T82), s(T83)) → U2_gg(T82, T83, le36_in_gg(T82, T83))
le36_in_gg(0, s(T90)) → le36_out_gg(0, s(T90))
le36_in_gg(0, 0) → le36_out_gg(0, 0)
gt67_in_gg(s(T144), s(T145)) → U7_gg(T144, T145, gt67_in_gg(T144, T145))
gt67_in_gg(s(T150), 0) → gt67_out_gg(s(T150), 0)
U2_gg(T82, T83, le36_out_gg(T82, T83)) → le36_out_gg(s(T82), s(T83))
U7_gg(T144, T145, gt67_out_gg(T144, T145)) → gt67_out_gg(s(T144), s(T145))
SPLIT51_IN_GGAA(.(T114, T115), T116) → U3_GGAA(T115, T116, le36_in_gg(T114, T116))
U3_GGAA(T115, T116, le36_out_gg) → SPLIT51_IN_GGAA(T115, T116)
SPLIT51_IN_GGAA(.(T129, T130), T131) → U5_GGAA(T130, T131, gt67_in_gg(T129, T131))
U5_GGAA(T130, T131, gt67_out_gg) → SPLIT51_IN_GGAA(T130, T131)
le36_in_gg(s(T82), s(T83)) → U2_gg(le36_in_gg(T82, T83))
le36_in_gg(0, s(T90)) → le36_out_gg
le36_in_gg(0, 0) → le36_out_gg
gt67_in_gg(s(T144), s(T145)) → U7_gg(gt67_in_gg(T144, T145))
gt67_in_gg(s(T150), 0) → gt67_out_gg
U2_gg(le36_out_gg) → le36_out_gg
U7_gg(gt67_out_gg) → gt67_out_gg
le36_in_gg(x0, x1)
gt67_in_gg(x0, x1)
U2_gg(x0)
U7_gg(x0)
From the DPs we obtained the following set of size-change graphs:
APPEND23_IN_GGGA(.(T45, T46), T47, T48, .(T45, T50)) → APPEND23_IN_GGGA(T46, T47, T48, T50)
qsort1_in_ga([], []) → qsort1_out_ga([], [])
qsort1_in_ga(.(T14, []), T9) → U19_ga(T14, T9, qsort14_in_a(X12))
qsort14_in_a([]) → qsort14_out_a([])
U19_ga(T14, T9, qsort14_out_a(X12)) → qsort1_out_ga(.(T14, []), T9)
qsort1_in_ga(.(T14, []), T9) → U20_ga(T14, T9, qsort14_in_a(T17))
U20_ga(T14, T9, qsort14_out_a(T17)) → U21_ga(T14, T9, qsort14_in_a(X13))
U21_ga(T14, T9, qsort14_out_a(X13)) → qsort1_out_ga(.(T14, []), T9)
U20_ga(T14, T9, qsort14_out_a(T17)) → U22_ga(T14, T9, T17, qsort14_in_a(T20))
U22_ga(T14, T9, T17, qsort14_out_a(T20)) → U23_ga(T14, T9, append23_in_ggga(T17, T14, T20, T9))
append23_in_ggga([], T33, T34, .(T33, T34)) → append23_out_ggga([], T33, T34, .(T33, T34))
append23_in_ggga(.(T45, T46), T47, T48, .(T45, T50)) → U1_ggga(T45, T46, T47, T48, T50, append23_in_ggga(T46, T47, T48, T50))
U1_ggga(T45, T46, T47, T48, T50, append23_out_ggga(T46, T47, T48, T50)) → append23_out_ggga(.(T45, T46), T47, T48, .(T45, T50))
U23_ga(T14, T9, append23_out_ggga(T17, T14, T20, T9)) → qsort1_out_ga(.(T14, []), T9)
qsort1_in_ga(.(T69, .(T67, T68)), T9) → U24_ga(T69, T67, T68, T9, le36_in_gg(T67, T69))
le36_in_gg(s(T82), s(T83)) → U2_gg(T82, T83, le36_in_gg(T82, T83))
le36_in_gg(0, s(T90)) → le36_out_gg(0, s(T90))
le36_in_gg(0, 0) → le36_out_gg(0, 0)
U2_gg(T82, T83, le36_out_gg(T82, T83)) → le36_out_gg(s(T82), s(T83))
U24_ga(T69, T67, T68, T9, le36_out_gg(T67, T69)) → qsort1_out_ga(.(T69, .(T67, T68)), T9)
U24_ga(T69, T67, T68, T9, le36_out_gg(T67, T69)) → U25_ga(T69, T67, T68, T9, split51_in_ggaa(T68, T69, X93, X94))
split51_in_ggaa([], T101, [], []) → split51_out_ggaa([], T101, [], [])
split51_in_ggaa(.(T114, T115), T116, .(T114, X167), X168) → U3_ggaa(T114, T115, T116, X167, X168, le36_in_gg(T114, T116))
U3_ggaa(T114, T115, T116, X167, X168, le36_out_gg(T114, T116)) → split51_out_ggaa(.(T114, T115), T116, .(T114, X167), X168)
U3_ggaa(T114, T115, T116, X167, X168, le36_out_gg(T114, T116)) → U4_ggaa(T114, T115, T116, X167, X168, split51_in_ggaa(T115, T116, X167, X168))
split51_in_ggaa(.(T129, T130), T131, X199, .(T129, X200)) → U5_ggaa(T129, T130, T131, X199, X200, gt67_in_gg(T129, T131))
gt67_in_gg(s(T144), s(T145)) → U7_gg(T144, T145, gt67_in_gg(T144, T145))
gt67_in_gg(s(T150), 0) → gt67_out_gg(s(T150), 0)
U7_gg(T144, T145, gt67_out_gg(T144, T145)) → gt67_out_gg(s(T144), s(T145))
U5_ggaa(T129, T130, T131, X199, X200, gt67_out_gg(T129, T131)) → split51_out_ggaa(.(T129, T130), T131, X199, .(T129, X200))
U5_ggaa(T129, T130, T131, X199, X200, gt67_out_gg(T129, T131)) → U6_ggaa(T129, T130, T131, X199, X200, split51_in_ggaa(T130, T131, X199, X200))
U6_ggaa(T129, T130, T131, X199, X200, split51_out_ggaa(T130, T131, X199, X200)) → split51_out_ggaa(.(T129, T130), T131, X199, .(T129, X200))
U4_ggaa(T114, T115, T116, X167, X168, split51_out_ggaa(T115, T116, X167, X168)) → split51_out_ggaa(.(T114, T115), T116, .(T114, X167), X168)
U25_ga(T69, T67, T68, T9, split51_out_ggaa(T68, T69, X93, X94)) → qsort1_out_ga(.(T69, .(T67, T68)), T9)
U24_ga(T69, T67, T68, T9, le36_out_gg(T67, T69)) → U26_ga(T69, T67, T68, T9, split51_in_ggaa(T68, T69, T93, T94))
U26_ga(T69, T67, T68, T9, split51_out_ggaa(T68, T69, T93, T94)) → U27_ga(T69, T67, T68, T9, qsort1_in_aa(.(T67, T93), X12))
qsort1_in_aa([], []) → qsort1_out_aa([], [])
qsort1_in_aa(.(T14, []), T9) → U19_aa(T14, T9, qsort14_in_a(X12))
U19_aa(T14, T9, qsort14_out_a(X12)) → qsort1_out_aa(.(T14, []), T9)
qsort1_in_aa(.(T14, []), T9) → U20_aa(T14, T9, qsort14_in_a(T17))
U20_aa(T14, T9, qsort14_out_a(T17)) → U21_aa(T14, T9, qsort14_in_a(X13))
U21_aa(T14, T9, qsort14_out_a(X13)) → qsort1_out_aa(.(T14, []), T9)
U20_aa(T14, T9, qsort14_out_a(T17)) → U22_aa(T14, T9, T17, qsort14_in_a(T20))
U22_aa(T14, T9, T17, qsort14_out_a(T20)) → U23_aa(T14, T9, append23_in_gaga(T17, T14, T20, T9))
append23_in_gaga([], T33, T34, .(T33, T34)) → append23_out_gaga([], T33, T34, .(T33, T34))
append23_in_gaga(.(T45, T46), T47, T48, .(T45, T50)) → U1_gaga(T45, T46, T47, T48, T50, append23_in_gaga(T46, T47, T48, T50))
U1_gaga(T45, T46, T47, T48, T50, append23_out_gaga(T46, T47, T48, T50)) → append23_out_gaga(.(T45, T46), T47, T48, .(T45, T50))
U23_aa(T14, T9, append23_out_gaga(T17, T14, T20, T9)) → qsort1_out_aa(.(T14, []), T9)
qsort1_in_aa(.(T69, .(T67, T68)), T9) → U24_aa(T69, T67, T68, T9, le36_in_aa(T67, T69))
le36_in_aa(s(T82), s(T83)) → U2_aa(T82, T83, le36_in_aa(T82, T83))
le36_in_aa(0, s(T90)) → le36_out_aa(0, s(T90))
le36_in_aa(0, 0) → le36_out_aa(0, 0)
U2_aa(T82, T83, le36_out_aa(T82, T83)) → le36_out_aa(s(T82), s(T83))
U24_aa(T69, T67, T68, T9, le36_out_aa(T67, T69)) → qsort1_out_aa(.(T69, .(T67, T68)), T9)
U24_aa(T69, T67, T68, T9, le36_out_aa(T67, T69)) → U25_aa(T69, T67, T68, T9, split51_in_aaaa(T68, T69, X93, X94))
split51_in_aaaa([], T101, [], []) → split51_out_aaaa([], T101, [], [])
split51_in_aaaa(.(T114, T115), T116, .(T114, X167), X168) → U3_aaaa(T114, T115, T116, X167, X168, le36_in_aa(T114, T116))
U3_aaaa(T114, T115, T116, X167, X168, le36_out_aa(T114, T116)) → split51_out_aaaa(.(T114, T115), T116, .(T114, X167), X168)
U3_aaaa(T114, T115, T116, X167, X168, le36_out_aa(T114, T116)) → U4_aaaa(T114, T115, T116, X167, X168, split51_in_aaaa(T115, T116, X167, X168))
split51_in_aaaa(.(T129, T130), T131, X199, .(T129, X200)) → U5_aaaa(T129, T130, T131, X199, X200, gt67_in_aa(T129, T131))
gt67_in_aa(s(T144), s(T145)) → U7_aa(T144, T145, gt67_in_aa(T144, T145))
gt67_in_aa(s(T150), 0) → gt67_out_aa(s(T150), 0)
U7_aa(T144, T145, gt67_out_aa(T144, T145)) → gt67_out_aa(s(T144), s(T145))
U5_aaaa(T129, T130, T131, X199, X200, gt67_out_aa(T129, T131)) → split51_out_aaaa(.(T129, T130), T131, X199, .(T129, X200))
U5_aaaa(T129, T130, T131, X199, X200, gt67_out_aa(T129, T131)) → U6_aaaa(T129, T130, T131, X199, X200, split51_in_agaa(T130, T131, X199, X200))
split51_in_agaa([], T101, [], []) → split51_out_agaa([], T101, [], [])
split51_in_agaa(.(T114, T115), T116, .(T114, X167), X168) → U3_agaa(T114, T115, T116, X167, X168, le36_in_ag(T114, T116))
le36_in_ag(s(T82), s(T83)) → U2_ag(T82, T83, le36_in_ag(T82, T83))
le36_in_ag(0, s(T90)) → le36_out_ag(0, s(T90))
le36_in_ag(0, 0) → le36_out_ag(0, 0)
U2_ag(T82, T83, le36_out_ag(T82, T83)) → le36_out_ag(s(T82), s(T83))
U3_agaa(T114, T115, T116, X167, X168, le36_out_ag(T114, T116)) → split51_out_agaa(.(T114, T115), T116, .(T114, X167), X168)
U3_agaa(T114, T115, T116, X167, X168, le36_out_ag(T114, T116)) → U4_agaa(T114, T115, T116, X167, X168, split51_in_agaa(T115, T116, X167, X168))
split51_in_agaa(.(T129, T130), T131, X199, .(T129, X200)) → U5_agaa(T129, T130, T131, X199, X200, gt67_in_ag(T129, T131))
gt67_in_ag(s(T144), s(T145)) → U7_ag(T144, T145, gt67_in_ag(T144, T145))
gt67_in_ag(s(T150), 0) → gt67_out_ag(s(T150), 0)
U7_ag(T144, T145, gt67_out_ag(T144, T145)) → gt67_out_ag(s(T144), s(T145))
U5_agaa(T129, T130, T131, X199, X200, gt67_out_ag(T129, T131)) → split51_out_agaa(.(T129, T130), T131, X199, .(T129, X200))
U5_agaa(T129, T130, T131, X199, X200, gt67_out_ag(T129, T131)) → U6_agaa(T129, T130, T131, X199, X200, split51_in_agaa(T130, T131, X199, X200))
U6_agaa(T129, T130, T131, X199, X200, split51_out_agaa(T130, T131, X199, X200)) → split51_out_agaa(.(T129, T130), T131, X199, .(T129, X200))
U4_agaa(T114, T115, T116, X167, X168, split51_out_agaa(T115, T116, X167, X168)) → split51_out_agaa(.(T114, T115), T116, .(T114, X167), X168)
U6_aaaa(T129, T130, T131, X199, X200, split51_out_agaa(T130, T131, X199, X200)) → split51_out_aaaa(.(T129, T130), T131, X199, .(T129, X200))
U4_aaaa(T114, T115, T116, X167, X168, split51_out_aaaa(T115, T116, X167, X168)) → split51_out_aaaa(.(T114, T115), T116, .(T114, X167), X168)
U25_aa(T69, T67, T68, T9, split51_out_aaaa(T68, T69, X93, X94)) → qsort1_out_aa(.(T69, .(T67, T68)), T9)
U24_aa(T69, T67, T68, T9, le36_out_aa(T67, T69)) → U26_aa(T69, T67, T68, T9, split51_in_aaaa(T68, T69, T93, T94))
U26_aa(T69, T67, T68, T9, split51_out_aaaa(T68, T69, T93, T94)) → U27_aa(T69, T67, T68, T9, qsort1_in_aa(.(T67, T93), X12))
qsort1_in_aa(.(T215, .(T213, T214)), T9) → U30_aa(T215, T213, T214, T9, gt67_in_aa(T213, T215))
U30_aa(T215, T213, T214, T9, gt67_out_aa(T213, T215)) → qsort1_out_aa(.(T215, .(T213, T214)), T9)
U30_aa(T215, T213, T214, T9, gt67_out_aa(T213, T215)) → U31_aa(T215, T213, T214, T9, split51_in_agaa(T214, T215, X323, X324))
U31_aa(T215, T213, T214, T9, split51_out_agaa(T214, T215, X323, X324)) → qsort1_out_aa(.(T215, .(T213, T214)), T9)
U30_aa(T215, T213, T214, T9, gt67_out_aa(T213, T215)) → U32_aa(T215, T213, T214, T9, split51_in_agaa(T214, T215, T222, T223))
U32_aa(T215, T213, T214, T9, split51_out_agaa(T214, T215, T222, T223)) → U33_aa(T215, T213, T214, T9, qsort79_in_aa(T222, X12))
qsort79_in_aa([], []) → qsort79_out_aa([], [])
qsort79_in_aa(.(T163, T164), X265) → U8_aa(T163, T164, X265, split51_in_aaaa(T164, T163, X261, X262))
U8_aa(T163, T164, X265, split51_out_aaaa(T164, T163, X261, X262)) → qsort79_out_aa(.(T163, T164), X265)
qsort79_in_aa(.(T163, T164), X265) → U9_aa(T163, T164, X265, split51_in_aaaa(T164, T163, T167, T168))
U9_aa(T163, T164, X265, split51_out_aaaa(T164, T163, T167, T168)) → U10_aa(T163, T164, X265, qsort79_in_aa(T167, X263))
U10_aa(T163, T164, X265, qsort79_out_aa(T167, X263)) → qsort79_out_aa(.(T163, T164), X265)
U9_aa(T163, T164, X265, split51_out_aaaa(T164, T163, T167, T168)) → U11_aa(T163, T164, X265, T168, qsort79_in_aa(T167, T171))
U11_aa(T163, T164, X265, T168, qsort79_out_aa(T167, T171)) → U12_aa(T163, T164, X265, qsort79_in_aa(T168, X264))
U12_aa(T163, T164, X265, qsort79_out_aa(T168, X264)) → qsort79_out_aa(.(T163, T164), X265)
U11_aa(T163, T164, X265, T168, qsort79_out_aa(T167, T171)) → U13_aa(T163, T164, X265, T171, qsort79_in_aa(T168, T172))
U13_aa(T163, T164, X265, T171, qsort79_out_aa(T168, T172)) → U14_aa(T163, T164, X265, append94_in_aaaa(T171, T163, T172, X265))
append94_in_aaaa([], T185, T186, .(T185, T186)) → append94_out_aaaa([], T185, T186, .(T185, T186))
append94_in_aaaa(.(T195, T196), T197, T198, .(T195, X295)) → U15_aaaa(T195, T196, T197, T198, X295, append94_in_aaaa(T196, T197, T198, X295))
U15_aaaa(T195, T196, T197, T198, X295, append94_out_aaaa(T196, T197, T198, X295)) → append94_out_aaaa(.(T195, T196), T197, T198, .(T195, X295))
U14_aa(T163, T164, X265, append94_out_aaaa(T171, T163, T172, X265)) → qsort79_out_aa(.(T163, T164), X265)
U33_aa(T215, T213, T214, T9, qsort79_out_aa(T222, X12)) → qsort1_out_aa(.(T215, .(T213, T214)), T9)
U32_aa(T215, T213, T214, T9, split51_out_agaa(T214, T215, T222, T223)) → U34_aa(T215, T213, T214, T9, T223, qsort79_in_aa(T222, T226))
U34_aa(T215, T213, T214, T9, T223, qsort79_out_aa(T222, T226)) → U35_aa(T215, T213, T214, T9, p78_in_aaaga(.(T213, T223), X13, T226, T215, T9))
p78_in_aaaga(T94, X13, T155, T69, T9) → U16_aaaga(T94, X13, T155, T69, T9, qsort79_in_aa(T94, X13))
U16_aaaga(T94, X13, T155, T69, T9, qsort79_out_aa(T94, X13)) → p78_out_aaaga(T94, X13, T155, T69, T9)
p78_in_aaaga(T94, T158, T155, T69, T9) → U17_aaaga(T94, T158, T155, T69, T9, qsort79_in_aa(T94, T158))
U17_aaaga(T94, T158, T155, T69, T9, qsort79_out_aa(T94, T158)) → U18_aaaga(T94, T158, T155, T69, T9, append23_in_agaa(T155, T69, T158, T9))
append23_in_agaa([], T33, T34, .(T33, T34)) → append23_out_agaa([], T33, T34, .(T33, T34))
append23_in_agaa(.(T45, T46), T47, T48, .(T45, T50)) → U1_agaa(T45, T46, T47, T48, T50, append23_in_agaa(T46, T47, T48, T50))
U1_agaa(T45, T46, T47, T48, T50, append23_out_agaa(T46, T47, T48, T50)) → append23_out_agaa(.(T45, T46), T47, T48, .(T45, T50))
U18_aaaga(T94, T158, T155, T69, T9, append23_out_agaa(T155, T69, T158, T9)) → p78_out_aaaga(T94, T158, T155, T69, T9)
U35_aa(T215, T213, T214, T9, p78_out_aaaga(.(T213, T223), X13, T226, T215, T9)) → qsort1_out_aa(.(T215, .(T213, T214)), T9)
U27_aa(T69, T67, T68, T9, qsort1_out_aa(.(T67, T93), X12)) → qsort1_out_aa(.(T69, .(T67, T68)), T9)
U26_aa(T69, T67, T68, T9, split51_out_aaaa(T68, T69, T93, T94)) → U28_aa(T69, T67, T68, T9, T94, qsort1_in_aa(.(T67, T93), T155))
U28_aa(T69, T67, T68, T9, T94, qsort1_out_aa(.(T67, T93), T155)) → U29_aa(T69, T67, T68, T9, p78_in_aaaaa(T94, X13, T155, T69, T9))
p78_in_aaaaa(T94, X13, T155, T69, T9) → U16_aaaaa(T94, X13, T155, T69, T9, qsort79_in_aa(T94, X13))
U16_aaaaa(T94, X13, T155, T69, T9, qsort79_out_aa(T94, X13)) → p78_out_aaaaa(T94, X13, T155, T69, T9)
p78_in_aaaaa(T94, T158, T155, T69, T9) → U17_aaaaa(T94, T158, T155, T69, T9, qsort79_in_aa(T94, T158))
U17_aaaaa(T94, T158, T155, T69, T9, qsort79_out_aa(T94, T158)) → U18_aaaaa(T94, T158, T155, T69, T9, append23_in_aaaa(T155, T69, T158, T9))
append23_in_aaaa([], T33, T34, .(T33, T34)) → append23_out_aaaa([], T33, T34, .(T33, T34))
append23_in_aaaa(.(T45, T46), T47, T48, .(T45, T50)) → U1_aaaa(T45, T46, T47, T48, T50, append23_in_aaaa(T46, T47, T48, T50))
U1_aaaa(T45, T46, T47, T48, T50, append23_out_aaaa(T46, T47, T48, T50)) → append23_out_aaaa(.(T45, T46), T47, T48, .(T45, T50))
U18_aaaaa(T94, T158, T155, T69, T9, append23_out_aaaa(T155, T69, T158, T9)) → p78_out_aaaaa(T94, T158, T155, T69, T9)
U29_aa(T69, T67, T68, T9, p78_out_aaaaa(T94, X13, T155, T69, T9)) → qsort1_out_aa(.(T69, .(T67, T68)), T9)
U27_ga(T69, T67, T68, T9, qsort1_out_aa(.(T67, T93), X12)) → qsort1_out_ga(.(T69, .(T67, T68)), T9)
U26_ga(T69, T67, T68, T9, split51_out_ggaa(T68, T69, T93, T94)) → U28_ga(T69, T67, T68, T9, T94, qsort1_in_aa(.(T67, T93), T155))
U28_ga(T69, T67, T68, T9, T94, qsort1_out_aa(.(T67, T93), T155)) → U29_ga(T69, T67, T68, T9, p78_in_aaaga(T94, X13, T155, T69, T9))
U29_ga(T69, T67, T68, T9, p78_out_aaaga(T94, X13, T155, T69, T9)) → qsort1_out_ga(.(T69, .(T67, T68)), T9)
qsort1_in_ga(.(T215, .(T213, T214)), T9) → U30_ga(T215, T213, T214, T9, gt67_in_gg(T213, T215))
U30_ga(T215, T213, T214, T9, gt67_out_gg(T213, T215)) → qsort1_out_ga(.(T215, .(T213, T214)), T9)
U30_ga(T215, T213, T214, T9, gt67_out_gg(T213, T215)) → U31_ga(T215, T213, T214, T9, split51_in_ggaa(T214, T215, X323, X324))
U31_ga(T215, T213, T214, T9, split51_out_ggaa(T214, T215, X323, X324)) → qsort1_out_ga(.(T215, .(T213, T214)), T9)
U30_ga(T215, T213, T214, T9, gt67_out_gg(T213, T215)) → U32_ga(T215, T213, T214, T9, split51_in_ggaa(T214, T215, T222, T223))
U32_ga(T215, T213, T214, T9, split51_out_ggaa(T214, T215, T222, T223)) → U33_ga(T215, T213, T214, T9, qsort79_in_aa(T222, X12))
U33_ga(T215, T213, T214, T9, qsort79_out_aa(T222, X12)) → qsort1_out_ga(.(T215, .(T213, T214)), T9)
U32_ga(T215, T213, T214, T9, split51_out_ggaa(T214, T215, T222, T223)) → U34_ga(T215, T213, T214, T9, T223, qsort79_in_aa(T222, T226))
U34_ga(T215, T213, T214, T9, T223, qsort79_out_aa(T222, T226)) → U35_ga(T215, T213, T214, T9, p78_in_aaaga(.(T213, T223), X13, T226, T215, T9))
U35_ga(T215, T213, T214, T9, p78_out_aaaga(.(T213, T223), X13, T226, T215, T9)) → qsort1_out_ga(.(T215, .(T213, T214)), T9)
APPEND23_IN_GGGA(.(T45, T46), T47, T48, .(T45, T50)) → APPEND23_IN_GGGA(T46, T47, T48, T50)
APPEND23_IN_GGGA(.(T45, T46), T47, T48) → APPEND23_IN_GGGA(T46, T47, T48)
From the DPs we obtained the following set of size-change graphs:
qsort1_in_ga([], []) → qsort1_out_ga([], [])
qsort1_in_ga(.(T14, []), T9) → U19_ga(T14, T9, qsort14_in_a(X12))
qsort14_in_a([]) → qsort14_out_a([])
U19_ga(T14, T9, qsort14_out_a(X12)) → qsort1_out_ga(.(T14, []), T9)
qsort1_in_ga(.(T14, []), T9) → U20_ga(T14, T9, qsort14_in_a(T17))
U20_ga(T14, T9, qsort14_out_a(T17)) → U21_ga(T14, T9, qsort14_in_a(X13))
U21_ga(T14, T9, qsort14_out_a(X13)) → qsort1_out_ga(.(T14, []), T9)
U20_ga(T14, T9, qsort14_out_a(T17)) → U22_ga(T14, T9, T17, qsort14_in_a(T20))
U22_ga(T14, T9, T17, qsort14_out_a(T20)) → U23_ga(T14, T9, append23_in_ggga(T17, T14, T20, T9))
append23_in_ggga([], T33, T34, .(T33, T34)) → append23_out_ggga([], T33, T34, .(T33, T34))
append23_in_ggga(.(T45, T46), T47, T48, .(T45, T50)) → U1_ggga(T45, T46, T47, T48, T50, append23_in_ggga(T46, T47, T48, T50))
U1_ggga(T45, T46, T47, T48, T50, append23_out_ggga(T46, T47, T48, T50)) → append23_out_ggga(.(T45, T46), T47, T48, .(T45, T50))
U23_ga(T14, T9, append23_out_ggga(T17, T14, T20, T9)) → qsort1_out_ga(.(T14, []), T9)
qsort1_in_ga(.(T69, .(T67, T68)), T9) → U24_ga(T69, T67, T68, T9, le36_in_gg(T67, T69))
le36_in_gg(s(T82), s(T83)) → U2_gg(T82, T83, le36_in_gg(T82, T83))
le36_in_gg(0, s(T90)) → le36_out_gg(0, s(T90))
le36_in_gg(0, 0) → le36_out_gg(0, 0)
U2_gg(T82, T83, le36_out_gg(T82, T83)) → le36_out_gg(s(T82), s(T83))
U24_ga(T69, T67, T68, T9, le36_out_gg(T67, T69)) → qsort1_out_ga(.(T69, .(T67, T68)), T9)
U24_ga(T69, T67, T68, T9, le36_out_gg(T67, T69)) → U25_ga(T69, T67, T68, T9, split51_in_ggaa(T68, T69, X93, X94))
split51_in_ggaa([], T101, [], []) → split51_out_ggaa([], T101, [], [])
split51_in_ggaa(.(T114, T115), T116, .(T114, X167), X168) → U3_ggaa(T114, T115, T116, X167, X168, le36_in_gg(T114, T116))
U3_ggaa(T114, T115, T116, X167, X168, le36_out_gg(T114, T116)) → split51_out_ggaa(.(T114, T115), T116, .(T114, X167), X168)
U3_ggaa(T114, T115, T116, X167, X168, le36_out_gg(T114, T116)) → U4_ggaa(T114, T115, T116, X167, X168, split51_in_ggaa(T115, T116, X167, X168))
split51_in_ggaa(.(T129, T130), T131, X199, .(T129, X200)) → U5_ggaa(T129, T130, T131, X199, X200, gt67_in_gg(T129, T131))
gt67_in_gg(s(T144), s(T145)) → U7_gg(T144, T145, gt67_in_gg(T144, T145))
gt67_in_gg(s(T150), 0) → gt67_out_gg(s(T150), 0)
U7_gg(T144, T145, gt67_out_gg(T144, T145)) → gt67_out_gg(s(T144), s(T145))
U5_ggaa(T129, T130, T131, X199, X200, gt67_out_gg(T129, T131)) → split51_out_ggaa(.(T129, T130), T131, X199, .(T129, X200))
U5_ggaa(T129, T130, T131, X199, X200, gt67_out_gg(T129, T131)) → U6_ggaa(T129, T130, T131, X199, X200, split51_in_ggaa(T130, T131, X199, X200))
U6_ggaa(T129, T130, T131, X199, X200, split51_out_ggaa(T130, T131, X199, X200)) → split51_out_ggaa(.(T129, T130), T131, X199, .(T129, X200))
U4_ggaa(T114, T115, T116, X167, X168, split51_out_ggaa(T115, T116, X167, X168)) → split51_out_ggaa(.(T114, T115), T116, .(T114, X167), X168)
U25_ga(T69, T67, T68, T9, split51_out_ggaa(T68, T69, X93, X94)) → qsort1_out_ga(.(T69, .(T67, T68)), T9)
U24_ga(T69, T67, T68, T9, le36_out_gg(T67, T69)) → U26_ga(T69, T67, T68, T9, split51_in_ggaa(T68, T69, T93, T94))
U26_ga(T69, T67, T68, T9, split51_out_ggaa(T68, T69, T93, T94)) → U27_ga(T69, T67, T68, T9, qsort1_in_aa(.(T67, T93), X12))
qsort1_in_aa([], []) → qsort1_out_aa([], [])
qsort1_in_aa(.(T14, []), T9) → U19_aa(T14, T9, qsort14_in_a(X12))
U19_aa(T14, T9, qsort14_out_a(X12)) → qsort1_out_aa(.(T14, []), T9)
qsort1_in_aa(.(T14, []), T9) → U20_aa(T14, T9, qsort14_in_a(T17))
U20_aa(T14, T9, qsort14_out_a(T17)) → U21_aa(T14, T9, qsort14_in_a(X13))
U21_aa(T14, T9, qsort14_out_a(X13)) → qsort1_out_aa(.(T14, []), T9)
U20_aa(T14, T9, qsort14_out_a(T17)) → U22_aa(T14, T9, T17, qsort14_in_a(T20))
U22_aa(T14, T9, T17, qsort14_out_a(T20)) → U23_aa(T14, T9, append23_in_gaga(T17, T14, T20, T9))
append23_in_gaga([], T33, T34, .(T33, T34)) → append23_out_gaga([], T33, T34, .(T33, T34))
append23_in_gaga(.(T45, T46), T47, T48, .(T45, T50)) → U1_gaga(T45, T46, T47, T48, T50, append23_in_gaga(T46, T47, T48, T50))
U1_gaga(T45, T46, T47, T48, T50, append23_out_gaga(T46, T47, T48, T50)) → append23_out_gaga(.(T45, T46), T47, T48, .(T45, T50))
U23_aa(T14, T9, append23_out_gaga(T17, T14, T20, T9)) → qsort1_out_aa(.(T14, []), T9)
qsort1_in_aa(.(T69, .(T67, T68)), T9) → U24_aa(T69, T67, T68, T9, le36_in_aa(T67, T69))
le36_in_aa(s(T82), s(T83)) → U2_aa(T82, T83, le36_in_aa(T82, T83))
le36_in_aa(0, s(T90)) → le36_out_aa(0, s(T90))
le36_in_aa(0, 0) → le36_out_aa(0, 0)
U2_aa(T82, T83, le36_out_aa(T82, T83)) → le36_out_aa(s(T82), s(T83))
U24_aa(T69, T67, T68, T9, le36_out_aa(T67, T69)) → qsort1_out_aa(.(T69, .(T67, T68)), T9)
U24_aa(T69, T67, T68, T9, le36_out_aa(T67, T69)) → U25_aa(T69, T67, T68, T9, split51_in_aaaa(T68, T69, X93, X94))
split51_in_aaaa([], T101, [], []) → split51_out_aaaa([], T101, [], [])
split51_in_aaaa(.(T114, T115), T116, .(T114, X167), X168) → U3_aaaa(T114, T115, T116, X167, X168, le36_in_aa(T114, T116))
U3_aaaa(T114, T115, T116, X167, X168, le36_out_aa(T114, T116)) → split51_out_aaaa(.(T114, T115), T116, .(T114, X167), X168)
U3_aaaa(T114, T115, T116, X167, X168, le36_out_aa(T114, T116)) → U4_aaaa(T114, T115, T116, X167, X168, split51_in_aaaa(T115, T116, X167, X168))
split51_in_aaaa(.(T129, T130), T131, X199, .(T129, X200)) → U5_aaaa(T129, T130, T131, X199, X200, gt67_in_aa(T129, T131))
gt67_in_aa(s(T144), s(T145)) → U7_aa(T144, T145, gt67_in_aa(T144, T145))
gt67_in_aa(s(T150), 0) → gt67_out_aa(s(T150), 0)
U7_aa(T144, T145, gt67_out_aa(T144, T145)) → gt67_out_aa(s(T144), s(T145))
U5_aaaa(T129, T130, T131, X199, X200, gt67_out_aa(T129, T131)) → split51_out_aaaa(.(T129, T130), T131, X199, .(T129, X200))
U5_aaaa(T129, T130, T131, X199, X200, gt67_out_aa(T129, T131)) → U6_aaaa(T129, T130, T131, X199, X200, split51_in_agaa(T130, T131, X199, X200))
split51_in_agaa([], T101, [], []) → split51_out_agaa([], T101, [], [])
split51_in_agaa(.(T114, T115), T116, .(T114, X167), X168) → U3_agaa(T114, T115, T116, X167, X168, le36_in_ag(T114, T116))
le36_in_ag(s(T82), s(T83)) → U2_ag(T82, T83, le36_in_ag(T82, T83))
le36_in_ag(0, s(T90)) → le36_out_ag(0, s(T90))
le36_in_ag(0, 0) → le36_out_ag(0, 0)
U2_ag(T82, T83, le36_out_ag(T82, T83)) → le36_out_ag(s(T82), s(T83))
U3_agaa(T114, T115, T116, X167, X168, le36_out_ag(T114, T116)) → split51_out_agaa(.(T114, T115), T116, .(T114, X167), X168)
U3_agaa(T114, T115, T116, X167, X168, le36_out_ag(T114, T116)) → U4_agaa(T114, T115, T116, X167, X168, split51_in_agaa(T115, T116, X167, X168))
split51_in_agaa(.(T129, T130), T131, X199, .(T129, X200)) → U5_agaa(T129, T130, T131, X199, X200, gt67_in_ag(T129, T131))
gt67_in_ag(s(T144), s(T145)) → U7_ag(T144, T145, gt67_in_ag(T144, T145))
gt67_in_ag(s(T150), 0) → gt67_out_ag(s(T150), 0)
U7_ag(T144, T145, gt67_out_ag(T144, T145)) → gt67_out_ag(s(T144), s(T145))
U5_agaa(T129, T130, T131, X199, X200, gt67_out_ag(T129, T131)) → split51_out_agaa(.(T129, T130), T131, X199, .(T129, X200))
U5_agaa(T129, T130, T131, X199, X200, gt67_out_ag(T129, T131)) → U6_agaa(T129, T130, T131, X199, X200, split51_in_agaa(T130, T131, X199, X200))
U6_agaa(T129, T130, T131, X199, X200, split51_out_agaa(T130, T131, X199, X200)) → split51_out_agaa(.(T129, T130), T131, X199, .(T129, X200))
U4_agaa(T114, T115, T116, X167, X168, split51_out_agaa(T115, T116, X167, X168)) → split51_out_agaa(.(T114, T115), T116, .(T114, X167), X168)
U6_aaaa(T129, T130, T131, X199, X200, split51_out_agaa(T130, T131, X199, X200)) → split51_out_aaaa(.(T129, T130), T131, X199, .(T129, X200))
U4_aaaa(T114, T115, T116, X167, X168, split51_out_aaaa(T115, T116, X167, X168)) → split51_out_aaaa(.(T114, T115), T116, .(T114, X167), X168)
U25_aa(T69, T67, T68, T9, split51_out_aaaa(T68, T69, X93, X94)) → qsort1_out_aa(.(T69, .(T67, T68)), T9)
U24_aa(T69, T67, T68, T9, le36_out_aa(T67, T69)) → U26_aa(T69, T67, T68, T9, split51_in_aaaa(T68, T69, T93, T94))
U26_aa(T69, T67, T68, T9, split51_out_aaaa(T68, T69, T93, T94)) → U27_aa(T69, T67, T68, T9, qsort1_in_aa(.(T67, T93), X12))
qsort1_in_aa(.(T215, .(T213, T214)), T9) → U30_aa(T215, T213, T214, T9, gt67_in_aa(T213, T215))
U30_aa(T215, T213, T214, T9, gt67_out_aa(T213, T215)) → qsort1_out_aa(.(T215, .(T213, T214)), T9)
U30_aa(T215, T213, T214, T9, gt67_out_aa(T213, T215)) → U31_aa(T215, T213, T214, T9, split51_in_agaa(T214, T215, X323, X324))
U31_aa(T215, T213, T214, T9, split51_out_agaa(T214, T215, X323, X324)) → qsort1_out_aa(.(T215, .(T213, T214)), T9)
U30_aa(T215, T213, T214, T9, gt67_out_aa(T213, T215)) → U32_aa(T215, T213, T214, T9, split51_in_agaa(T214, T215, T222, T223))
U32_aa(T215, T213, T214, T9, split51_out_agaa(T214, T215, T222, T223)) → U33_aa(T215, T213, T214, T9, qsort79_in_aa(T222, X12))
qsort79_in_aa([], []) → qsort79_out_aa([], [])
qsort79_in_aa(.(T163, T164), X265) → U8_aa(T163, T164, X265, split51_in_aaaa(T164, T163, X261, X262))
U8_aa(T163, T164, X265, split51_out_aaaa(T164, T163, X261, X262)) → qsort79_out_aa(.(T163, T164), X265)
qsort79_in_aa(.(T163, T164), X265) → U9_aa(T163, T164, X265, split51_in_aaaa(T164, T163, T167, T168))
U9_aa(T163, T164, X265, split51_out_aaaa(T164, T163, T167, T168)) → U10_aa(T163, T164, X265, qsort79_in_aa(T167, X263))
U10_aa(T163, T164, X265, qsort79_out_aa(T167, X263)) → qsort79_out_aa(.(T163, T164), X265)
U9_aa(T163, T164, X265, split51_out_aaaa(T164, T163, T167, T168)) → U11_aa(T163, T164, X265, T168, qsort79_in_aa(T167, T171))
U11_aa(T163, T164, X265, T168, qsort79_out_aa(T167, T171)) → U12_aa(T163, T164, X265, qsort79_in_aa(T168, X264))
U12_aa(T163, T164, X265, qsort79_out_aa(T168, X264)) → qsort79_out_aa(.(T163, T164), X265)
U11_aa(T163, T164, X265, T168, qsort79_out_aa(T167, T171)) → U13_aa(T163, T164, X265, T171, qsort79_in_aa(T168, T172))
U13_aa(T163, T164, X265, T171, qsort79_out_aa(T168, T172)) → U14_aa(T163, T164, X265, append94_in_aaaa(T171, T163, T172, X265))
append94_in_aaaa([], T185, T186, .(T185, T186)) → append94_out_aaaa([], T185, T186, .(T185, T186))
append94_in_aaaa(.(T195, T196), T197, T198, .(T195, X295)) → U15_aaaa(T195, T196, T197, T198, X295, append94_in_aaaa(T196, T197, T198, X295))
U15_aaaa(T195, T196, T197, T198, X295, append94_out_aaaa(T196, T197, T198, X295)) → append94_out_aaaa(.(T195, T196), T197, T198, .(T195, X295))
U14_aa(T163, T164, X265, append94_out_aaaa(T171, T163, T172, X265)) → qsort79_out_aa(.(T163, T164), X265)
U33_aa(T215, T213, T214, T9, qsort79_out_aa(T222, X12)) → qsort1_out_aa(.(T215, .(T213, T214)), T9)
U32_aa(T215, T213, T214, T9, split51_out_agaa(T214, T215, T222, T223)) → U34_aa(T215, T213, T214, T9, T223, qsort79_in_aa(T222, T226))
U34_aa(T215, T213, T214, T9, T223, qsort79_out_aa(T222, T226)) → U35_aa(T215, T213, T214, T9, p78_in_aaaga(.(T213, T223), X13, T226, T215, T9))
p78_in_aaaga(T94, X13, T155, T69, T9) → U16_aaaga(T94, X13, T155, T69, T9, qsort79_in_aa(T94, X13))
U16_aaaga(T94, X13, T155, T69, T9, qsort79_out_aa(T94, X13)) → p78_out_aaaga(T94, X13, T155, T69, T9)
p78_in_aaaga(T94, T158, T155, T69, T9) → U17_aaaga(T94, T158, T155, T69, T9, qsort79_in_aa(T94, T158))
U17_aaaga(T94, T158, T155, T69, T9, qsort79_out_aa(T94, T158)) → U18_aaaga(T94, T158, T155, T69, T9, append23_in_agaa(T155, T69, T158, T9))
append23_in_agaa([], T33, T34, .(T33, T34)) → append23_out_agaa([], T33, T34, .(T33, T34))
append23_in_agaa(.(T45, T46), T47, T48, .(T45, T50)) → U1_agaa(T45, T46, T47, T48, T50, append23_in_agaa(T46, T47, T48, T50))
U1_agaa(T45, T46, T47, T48, T50, append23_out_agaa(T46, T47, T48, T50)) → append23_out_agaa(.(T45, T46), T47, T48, .(T45, T50))
U18_aaaga(T94, T158, T155, T69, T9, append23_out_agaa(T155, T69, T158, T9)) → p78_out_aaaga(T94, T158, T155, T69, T9)
U35_aa(T215, T213, T214, T9, p78_out_aaaga(.(T213, T223), X13, T226, T215, T9)) → qsort1_out_aa(.(T215, .(T213, T214)), T9)
U27_aa(T69, T67, T68, T9, qsort1_out_aa(.(T67, T93), X12)) → qsort1_out_aa(.(T69, .(T67, T68)), T9)
U26_aa(T69, T67, T68, T9, split51_out_aaaa(T68, T69, T93, T94)) → U28_aa(T69, T67, T68, T9, T94, qsort1_in_aa(.(T67, T93), T155))
U28_aa(T69, T67, T68, T9, T94, qsort1_out_aa(.(T67, T93), T155)) → U29_aa(T69, T67, T68, T9, p78_in_aaaaa(T94, X13, T155, T69, T9))
p78_in_aaaaa(T94, X13, T155, T69, T9) → U16_aaaaa(T94, X13, T155, T69, T9, qsort79_in_aa(T94, X13))
U16_aaaaa(T94, X13, T155, T69, T9, qsort79_out_aa(T94, X13)) → p78_out_aaaaa(T94, X13, T155, T69, T9)
p78_in_aaaaa(T94, T158, T155, T69, T9) → U17_aaaaa(T94, T158, T155, T69, T9, qsort79_in_aa(T94, T158))
U17_aaaaa(T94, T158, T155, T69, T9, qsort79_out_aa(T94, T158)) → U18_aaaaa(T94, T158, T155, T69, T9, append23_in_aaaa(T155, T69, T158, T9))
append23_in_aaaa([], T33, T34, .(T33, T34)) → append23_out_aaaa([], T33, T34, .(T33, T34))
append23_in_aaaa(.(T45, T46), T47, T48, .(T45, T50)) → U1_aaaa(T45, T46, T47, T48, T50, append23_in_aaaa(T46, T47, T48, T50))
U1_aaaa(T45, T46, T47, T48, T50, append23_out_aaaa(T46, T47, T48, T50)) → append23_out_aaaa(.(T45, T46), T47, T48, .(T45, T50))
U18_aaaaa(T94, T158, T155, T69, T9, append23_out_aaaa(T155, T69, T158, T9)) → p78_out_aaaaa(T94, T158, T155, T69, T9)
U29_aa(T69, T67, T68, T9, p78_out_aaaaa(T94, X13, T155, T69, T9)) → qsort1_out_aa(.(T69, .(T67, T68)), T9)
U27_ga(T69, T67, T68, T9, qsort1_out_aa(.(T67, T93), X12)) → qsort1_out_ga(.(T69, .(T67, T68)), T9)
U26_ga(T69, T67, T68, T9, split51_out_ggaa(T68, T69, T93, T94)) → U28_ga(T69, T67, T68, T9, T94, qsort1_in_aa(.(T67, T93), T155))
U28_ga(T69, T67, T68, T9, T94, qsort1_out_aa(.(T67, T93), T155)) → U29_ga(T69, T67, T68, T9, p78_in_aaaga(T94, X13, T155, T69, T9))
U29_ga(T69, T67, T68, T9, p78_out_aaaga(T94, X13, T155, T69, T9)) → qsort1_out_ga(.(T69, .(T67, T68)), T9)
qsort1_in_ga(.(T215, .(T213, T214)), T9) → U30_ga(T215, T213, T214, T9, gt67_in_gg(T213, T215))
U30_ga(T215, T213, T214, T9, gt67_out_gg(T213, T215)) → qsort1_out_ga(.(T215, .(T213, T214)), T9)
U30_ga(T215, T213, T214, T9, gt67_out_gg(T213, T215)) → U31_ga(T215, T213, T214, T9, split51_in_ggaa(T214, T215, X323, X324))
U31_ga(T215, T213, T214, T9, split51_out_ggaa(T214, T215, X323, X324)) → qsort1_out_ga(.(T215, .(T213, T214)), T9)
U30_ga(T215, T213, T214, T9, gt67_out_gg(T213, T215)) → U32_ga(T215, T213, T214, T9, split51_in_ggaa(T214, T215, T222, T223))
U32_ga(T215, T213, T214, T9, split51_out_ggaa(T214, T215, T222, T223)) → U33_ga(T215, T213, T214, T9, qsort79_in_aa(T222, X12))
U33_ga(T215, T213, T214, T9, qsort79_out_aa(T222, X12)) → qsort1_out_ga(.(T215, .(T213, T214)), T9)
U32_ga(T215, T213, T214, T9, split51_out_ggaa(T214, T215, T222, T223)) → U34_ga(T215, T213, T214, T9, T223, qsort79_in_aa(T222, T226))
U34_ga(T215, T213, T214, T9, T223, qsort79_out_aa(T222, T226)) → U35_ga(T215, T213, T214, T9, p78_in_aaaga(.(T213, T223), X13, T226, T215, T9))
U35_ga(T215, T213, T214, T9, p78_out_aaaga(.(T213, T223), X13, T226, T215, T9)) → qsort1_out_ga(.(T215, .(T213, T214)), T9)
Infinitary Constructor Rewriting Termination of PiTRS implies Termination of Prolog
qsort1_in_ga([], []) → qsort1_out_ga([], [])
qsort1_in_ga(.(T14, []), T9) → U19_ga(T14, T9, qsort14_in_a(X12))
qsort14_in_a([]) → qsort14_out_a([])
U19_ga(T14, T9, qsort14_out_a(X12)) → qsort1_out_ga(.(T14, []), T9)
qsort1_in_ga(.(T14, []), T9) → U20_ga(T14, T9, qsort14_in_a(T17))
U20_ga(T14, T9, qsort14_out_a(T17)) → U21_ga(T14, T9, qsort14_in_a(X13))
U21_ga(T14, T9, qsort14_out_a(X13)) → qsort1_out_ga(.(T14, []), T9)
U20_ga(T14, T9, qsort14_out_a(T17)) → U22_ga(T14, T9, T17, qsort14_in_a(T20))
U22_ga(T14, T9, T17, qsort14_out_a(T20)) → U23_ga(T14, T9, append23_in_ggga(T17, T14, T20, T9))
append23_in_ggga([], T33, T34, .(T33, T34)) → append23_out_ggga([], T33, T34, .(T33, T34))
append23_in_ggga(.(T45, T46), T47, T48, .(T45, T50)) → U1_ggga(T45, T46, T47, T48, T50, append23_in_ggga(T46, T47, T48, T50))
U1_ggga(T45, T46, T47, T48, T50, append23_out_ggga(T46, T47, T48, T50)) → append23_out_ggga(.(T45, T46), T47, T48, .(T45, T50))
U23_ga(T14, T9, append23_out_ggga(T17, T14, T20, T9)) → qsort1_out_ga(.(T14, []), T9)
qsort1_in_ga(.(T69, .(T67, T68)), T9) → U24_ga(T69, T67, T68, T9, le36_in_gg(T67, T69))
le36_in_gg(s(T82), s(T83)) → U2_gg(T82, T83, le36_in_gg(T82, T83))
le36_in_gg(0, s(T90)) → le36_out_gg(0, s(T90))
le36_in_gg(0, 0) → le36_out_gg(0, 0)
U2_gg(T82, T83, le36_out_gg(T82, T83)) → le36_out_gg(s(T82), s(T83))
U24_ga(T69, T67, T68, T9, le36_out_gg(T67, T69)) → qsort1_out_ga(.(T69, .(T67, T68)), T9)
U24_ga(T69, T67, T68, T9, le36_out_gg(T67, T69)) → U25_ga(T69, T67, T68, T9, split51_in_ggaa(T68, T69, X93, X94))
split51_in_ggaa([], T101, [], []) → split51_out_ggaa([], T101, [], [])
split51_in_ggaa(.(T114, T115), T116, .(T114, X167), X168) → U3_ggaa(T114, T115, T116, X167, X168, le36_in_gg(T114, T116))
U3_ggaa(T114, T115, T116, X167, X168, le36_out_gg(T114, T116)) → split51_out_ggaa(.(T114, T115), T116, .(T114, X167), X168)
U3_ggaa(T114, T115, T116, X167, X168, le36_out_gg(T114, T116)) → U4_ggaa(T114, T115, T116, X167, X168, split51_in_ggaa(T115, T116, X167, X168))
split51_in_ggaa(.(T129, T130), T131, X199, .(T129, X200)) → U5_ggaa(T129, T130, T131, X199, X200, gt67_in_gg(T129, T131))
gt67_in_gg(s(T144), s(T145)) → U7_gg(T144, T145, gt67_in_gg(T144, T145))
gt67_in_gg(s(T150), 0) → gt67_out_gg(s(T150), 0)
U7_gg(T144, T145, gt67_out_gg(T144, T145)) → gt67_out_gg(s(T144), s(T145))
U5_ggaa(T129, T130, T131, X199, X200, gt67_out_gg(T129, T131)) → split51_out_ggaa(.(T129, T130), T131, X199, .(T129, X200))
U5_ggaa(T129, T130, T131, X199, X200, gt67_out_gg(T129, T131)) → U6_ggaa(T129, T130, T131, X199, X200, split51_in_ggaa(T130, T131, X199, X200))
U6_ggaa(T129, T130, T131, X199, X200, split51_out_ggaa(T130, T131, X199, X200)) → split51_out_ggaa(.(T129, T130), T131, X199, .(T129, X200))
U4_ggaa(T114, T115, T116, X167, X168, split51_out_ggaa(T115, T116, X167, X168)) → split51_out_ggaa(.(T114, T115), T116, .(T114, X167), X168)
U25_ga(T69, T67, T68, T9, split51_out_ggaa(T68, T69, X93, X94)) → qsort1_out_ga(.(T69, .(T67, T68)), T9)
U24_ga(T69, T67, T68, T9, le36_out_gg(T67, T69)) → U26_ga(T69, T67, T68, T9, split51_in_ggaa(T68, T69, T93, T94))
U26_ga(T69, T67, T68, T9, split51_out_ggaa(T68, T69, T93, T94)) → U27_ga(T69, T67, T68, T9, qsort1_in_aa(.(T67, T93), X12))
qsort1_in_aa([], []) → qsort1_out_aa([], [])
qsort1_in_aa(.(T14, []), T9) → U19_aa(T14, T9, qsort14_in_a(X12))
U19_aa(T14, T9, qsort14_out_a(X12)) → qsort1_out_aa(.(T14, []), T9)
qsort1_in_aa(.(T14, []), T9) → U20_aa(T14, T9, qsort14_in_a(T17))
U20_aa(T14, T9, qsort14_out_a(T17)) → U21_aa(T14, T9, qsort14_in_a(X13))
U21_aa(T14, T9, qsort14_out_a(X13)) → qsort1_out_aa(.(T14, []), T9)
U20_aa(T14, T9, qsort14_out_a(T17)) → U22_aa(T14, T9, T17, qsort14_in_a(T20))
U22_aa(T14, T9, T17, qsort14_out_a(T20)) → U23_aa(T14, T9, append23_in_gaga(T17, T14, T20, T9))
append23_in_gaga([], T33, T34, .(T33, T34)) → append23_out_gaga([], T33, T34, .(T33, T34))
append23_in_gaga(.(T45, T46), T47, T48, .(T45, T50)) → U1_gaga(T45, T46, T47, T48, T50, append23_in_gaga(T46, T47, T48, T50))
U1_gaga(T45, T46, T47, T48, T50, append23_out_gaga(T46, T47, T48, T50)) → append23_out_gaga(.(T45, T46), T47, T48, .(T45, T50))
U23_aa(T14, T9, append23_out_gaga(T17, T14, T20, T9)) → qsort1_out_aa(.(T14, []), T9)
qsort1_in_aa(.(T69, .(T67, T68)), T9) → U24_aa(T69, T67, T68, T9, le36_in_aa(T67, T69))
le36_in_aa(s(T82), s(T83)) → U2_aa(T82, T83, le36_in_aa(T82, T83))
le36_in_aa(0, s(T90)) → le36_out_aa(0, s(T90))
le36_in_aa(0, 0) → le36_out_aa(0, 0)
U2_aa(T82, T83, le36_out_aa(T82, T83)) → le36_out_aa(s(T82), s(T83))
U24_aa(T69, T67, T68, T9, le36_out_aa(T67, T69)) → qsort1_out_aa(.(T69, .(T67, T68)), T9)
U24_aa(T69, T67, T68, T9, le36_out_aa(T67, T69)) → U25_aa(T69, T67, T68, T9, split51_in_aaaa(T68, T69, X93, X94))
split51_in_aaaa([], T101, [], []) → split51_out_aaaa([], T101, [], [])
split51_in_aaaa(.(T114, T115), T116, .(T114, X167), X168) → U3_aaaa(T114, T115, T116, X167, X168, le36_in_aa(T114, T116))
U3_aaaa(T114, T115, T116, X167, X168, le36_out_aa(T114, T116)) → split51_out_aaaa(.(T114, T115), T116, .(T114, X167), X168)
U3_aaaa(T114, T115, T116, X167, X168, le36_out_aa(T114, T116)) → U4_aaaa(T114, T115, T116, X167, X168, split51_in_aaaa(T115, T116, X167, X168))
split51_in_aaaa(.(T129, T130), T131, X199, .(T129, X200)) → U5_aaaa(T129, T130, T131, X199, X200, gt67_in_aa(T129, T131))
gt67_in_aa(s(T144), s(T145)) → U7_aa(T144, T145, gt67_in_aa(T144, T145))
gt67_in_aa(s(T150), 0) → gt67_out_aa(s(T150), 0)
U7_aa(T144, T145, gt67_out_aa(T144, T145)) → gt67_out_aa(s(T144), s(T145))
U5_aaaa(T129, T130, T131, X199, X200, gt67_out_aa(T129, T131)) → split51_out_aaaa(.(T129, T130), T131, X199, .(T129, X200))
U5_aaaa(T129, T130, T131, X199, X200, gt67_out_aa(T129, T131)) → U6_aaaa(T129, T130, T131, X199, X200, split51_in_agaa(T130, T131, X199, X200))
split51_in_agaa([], T101, [], []) → split51_out_agaa([], T101, [], [])
split51_in_agaa(.(T114, T115), T116, .(T114, X167), X168) → U3_agaa(T114, T115, T116, X167, X168, le36_in_ag(T114, T116))
le36_in_ag(s(T82), s(T83)) → U2_ag(T82, T83, le36_in_ag(T82, T83))
le36_in_ag(0, s(T90)) → le36_out_ag(0, s(T90))
le36_in_ag(0, 0) → le36_out_ag(0, 0)
U2_ag(T82, T83, le36_out_ag(T82, T83)) → le36_out_ag(s(T82), s(T83))
U3_agaa(T114, T115, T116, X167, X168, le36_out_ag(T114, T116)) → split51_out_agaa(.(T114, T115), T116, .(T114, X167), X168)
U3_agaa(T114, T115, T116, X167, X168, le36_out_ag(T114, T116)) → U4_agaa(T114, T115, T116, X167, X168, split51_in_agaa(T115, T116, X167, X168))
split51_in_agaa(.(T129, T130), T131, X199, .(T129, X200)) → U5_agaa(T129, T130, T131, X199, X200, gt67_in_ag(T129, T131))
gt67_in_ag(s(T144), s(T145)) → U7_ag(T144, T145, gt67_in_ag(T144, T145))
gt67_in_ag(s(T150), 0) → gt67_out_ag(s(T150), 0)
U7_ag(T144, T145, gt67_out_ag(T144, T145)) → gt67_out_ag(s(T144), s(T145))
U5_agaa(T129, T130, T131, X199, X200, gt67_out_ag(T129, T131)) → split51_out_agaa(.(T129, T130), T131, X199, .(T129, X200))
U5_agaa(T129, T130, T131, X199, X200, gt67_out_ag(T129, T131)) → U6_agaa(T129, T130, T131, X199, X200, split51_in_agaa(T130, T131, X199, X200))
U6_agaa(T129, T130, T131, X199, X200, split51_out_agaa(T130, T131, X199, X200)) → split51_out_agaa(.(T129, T130), T131, X199, .(T129, X200))
U4_agaa(T114, T115, T116, X167, X168, split51_out_agaa(T115, T116, X167, X168)) → split51_out_agaa(.(T114, T115), T116, .(T114, X167), X168)
U6_aaaa(T129, T130, T131, X199, X200, split51_out_agaa(T130, T131, X199, X200)) → split51_out_aaaa(.(T129, T130), T131, X199, .(T129, X200))
U4_aaaa(T114, T115, T116, X167, X168, split51_out_aaaa(T115, T116, X167, X168)) → split51_out_aaaa(.(T114, T115), T116, .(T114, X167), X168)
U25_aa(T69, T67, T68, T9, split51_out_aaaa(T68, T69, X93, X94)) → qsort1_out_aa(.(T69, .(T67, T68)), T9)
U24_aa(T69, T67, T68, T9, le36_out_aa(T67, T69)) → U26_aa(T69, T67, T68, T9, split51_in_aaaa(T68, T69, T93, T94))
U26_aa(T69, T67, T68, T9, split51_out_aaaa(T68, T69, T93, T94)) → U27_aa(T69, T67, T68, T9, qsort1_in_aa(.(T67, T93), X12))
qsort1_in_aa(.(T215, .(T213, T214)), T9) → U30_aa(T215, T213, T214, T9, gt67_in_aa(T213, T215))
U30_aa(T215, T213, T214, T9, gt67_out_aa(T213, T215)) → qsort1_out_aa(.(T215, .(T213, T214)), T9)
U30_aa(T215, T213, T214, T9, gt67_out_aa(T213, T215)) → U31_aa(T215, T213, T214, T9, split51_in_agaa(T214, T215, X323, X324))
U31_aa(T215, T213, T214, T9, split51_out_agaa(T214, T215, X323, X324)) → qsort1_out_aa(.(T215, .(T213, T214)), T9)
U30_aa(T215, T213, T214, T9, gt67_out_aa(T213, T215)) → U32_aa(T215, T213, T214, T9, split51_in_agaa(T214, T215, T222, T223))
U32_aa(T215, T213, T214, T9, split51_out_agaa(T214, T215, T222, T223)) → U33_aa(T215, T213, T214, T9, qsort79_in_aa(T222, X12))
qsort79_in_aa([], []) → qsort79_out_aa([], [])
qsort79_in_aa(.(T163, T164), X265) → U8_aa(T163, T164, X265, split51_in_aaaa(T164, T163, X261, X262))
U8_aa(T163, T164, X265, split51_out_aaaa(T164, T163, X261, X262)) → qsort79_out_aa(.(T163, T164), X265)
qsort79_in_aa(.(T163, T164), X265) → U9_aa(T163, T164, X265, split51_in_aaaa(T164, T163, T167, T168))
U9_aa(T163, T164, X265, split51_out_aaaa(T164, T163, T167, T168)) → U10_aa(T163, T164, X265, qsort79_in_aa(T167, X263))
U10_aa(T163, T164, X265, qsort79_out_aa(T167, X263)) → qsort79_out_aa(.(T163, T164), X265)
U9_aa(T163, T164, X265, split51_out_aaaa(T164, T163, T167, T168)) → U11_aa(T163, T164, X265, T168, qsort79_in_aa(T167, T171))
U11_aa(T163, T164, X265, T168, qsort79_out_aa(T167, T171)) → U12_aa(T163, T164, X265, qsort79_in_aa(T168, X264))
U12_aa(T163, T164, X265, qsort79_out_aa(T168, X264)) → qsort79_out_aa(.(T163, T164), X265)
U11_aa(T163, T164, X265, T168, qsort79_out_aa(T167, T171)) → U13_aa(T163, T164, X265, T171, qsort79_in_aa(T168, T172))
U13_aa(T163, T164, X265, T171, qsort79_out_aa(T168, T172)) → U14_aa(T163, T164, X265, append94_in_aaaa(T171, T163, T172, X265))
append94_in_aaaa([], T185, T186, .(T185, T186)) → append94_out_aaaa([], T185, T186, .(T185, T186))
append94_in_aaaa(.(T195, T196), T197, T198, .(T195, X295)) → U15_aaaa(T195, T196, T197, T198, X295, append94_in_aaaa(T196, T197, T198, X295))
U15_aaaa(T195, T196, T197, T198, X295, append94_out_aaaa(T196, T197, T198, X295)) → append94_out_aaaa(.(T195, T196), T197, T198, .(T195, X295))
U14_aa(T163, T164, X265, append94_out_aaaa(T171, T163, T172, X265)) → qsort79_out_aa(.(T163, T164), X265)
U33_aa(T215, T213, T214, T9, qsort79_out_aa(T222, X12)) → qsort1_out_aa(.(T215, .(T213, T214)), T9)
U32_aa(T215, T213, T214, T9, split51_out_agaa(T214, T215, T222, T223)) → U34_aa(T215, T213, T214, T9, T223, qsort79_in_aa(T222, T226))
U34_aa(T215, T213, T214, T9, T223, qsort79_out_aa(T222, T226)) → U35_aa(T215, T213, T214, T9, p78_in_aaaga(.(T213, T223), X13, T226, T215, T9))
p78_in_aaaga(T94, X13, T155, T69, T9) → U16_aaaga(T94, X13, T155, T69, T9, qsort79_in_aa(T94, X13))
U16_aaaga(T94, X13, T155, T69, T9, qsort79_out_aa(T94, X13)) → p78_out_aaaga(T94, X13, T155, T69, T9)
p78_in_aaaga(T94, T158, T155, T69, T9) → U17_aaaga(T94, T158, T155, T69, T9, qsort79_in_aa(T94, T158))
U17_aaaga(T94, T158, T155, T69, T9, qsort79_out_aa(T94, T158)) → U18_aaaga(T94, T158, T155, T69, T9, append23_in_agaa(T155, T69, T158, T9))
append23_in_agaa([], T33, T34, .(T33, T34)) → append23_out_agaa([], T33, T34, .(T33, T34))
append23_in_agaa(.(T45, T46), T47, T48, .(T45, T50)) → U1_agaa(T45, T46, T47, T48, T50, append23_in_agaa(T46, T47, T48, T50))
U1_agaa(T45, T46, T47, T48, T50, append23_out_agaa(T46, T47, T48, T50)) → append23_out_agaa(.(T45, T46), T47, T48, .(T45, T50))
U18_aaaga(T94, T158, T155, T69, T9, append23_out_agaa(T155, T69, T158, T9)) → p78_out_aaaga(T94, T158, T155, T69, T9)
U35_aa(T215, T213, T214, T9, p78_out_aaaga(.(T213, T223), X13, T226, T215, T9)) → qsort1_out_aa(.(T215, .(T213, T214)), T9)
U27_aa(T69, T67, T68, T9, qsort1_out_aa(.(T67, T93), X12)) → qsort1_out_aa(.(T69, .(T67, T68)), T9)
U26_aa(T69, T67, T68, T9, split51_out_aaaa(T68, T69, T93, T94)) → U28_aa(T69, T67, T68, T9, T94, qsort1_in_aa(.(T67, T93), T155))
U28_aa(T69, T67, T68, T9, T94, qsort1_out_aa(.(T67, T93), T155)) → U29_aa(T69, T67, T68, T9, p78_in_aaaaa(T94, X13, T155, T69, T9))
p78_in_aaaaa(T94, X13, T155, T69, T9) → U16_aaaaa(T94, X13, T155, T69, T9, qsort79_in_aa(T94, X13))
U16_aaaaa(T94, X13, T155, T69, T9, qsort79_out_aa(T94, X13)) → p78_out_aaaaa(T94, X13, T155, T69, T9)
p78_in_aaaaa(T94, T158, T155, T69, T9) → U17_aaaaa(T94, T158, T155, T69, T9, qsort79_in_aa(T94, T158))
U17_aaaaa(T94, T158, T155, T69, T9, qsort79_out_aa(T94, T158)) → U18_aaaaa(T94, T158, T155, T69, T9, append23_in_aaaa(T155, T69, T158, T9))
append23_in_aaaa([], T33, T34, .(T33, T34)) → append23_out_aaaa([], T33, T34, .(T33, T34))
append23_in_aaaa(.(T45, T46), T47, T48, .(T45, T50)) → U1_aaaa(T45, T46, T47, T48, T50, append23_in_aaaa(T46, T47, T48, T50))
U1_aaaa(T45, T46, T47, T48, T50, append23_out_aaaa(T46, T47, T48, T50)) → append23_out_aaaa(.(T45, T46), T47, T48, .(T45, T50))
U18_aaaaa(T94, T158, T155, T69, T9, append23_out_aaaa(T155, T69, T158, T9)) → p78_out_aaaaa(T94, T158, T155, T69, T9)
U29_aa(T69, T67, T68, T9, p78_out_aaaaa(T94, X13, T155, T69, T9)) → qsort1_out_aa(.(T69, .(T67, T68)), T9)
U27_ga(T69, T67, T68, T9, qsort1_out_aa(.(T67, T93), X12)) → qsort1_out_ga(.(T69, .(T67, T68)), T9)
U26_ga(T69, T67, T68, T9, split51_out_ggaa(T68, T69, T93, T94)) → U28_ga(T69, T67, T68, T9, T94, qsort1_in_aa(.(T67, T93), T155))
U28_ga(T69, T67, T68, T9, T94, qsort1_out_aa(.(T67, T93), T155)) → U29_ga(T69, T67, T68, T9, p78_in_aaaga(T94, X13, T155, T69, T9))
U29_ga(T69, T67, T68, T9, p78_out_aaaga(T94, X13, T155, T69, T9)) → qsort1_out_ga(.(T69, .(T67, T68)), T9)
qsort1_in_ga(.(T215, .(T213, T214)), T9) → U30_ga(T215, T213, T214, T9, gt67_in_gg(T213, T215))
U30_ga(T215, T213, T214, T9, gt67_out_gg(T213, T215)) → qsort1_out_ga(.(T215, .(T213, T214)), T9)
U30_ga(T215, T213, T214, T9, gt67_out_gg(T213, T215)) → U31_ga(T215, T213, T214, T9, split51_in_ggaa(T214, T215, X323, X324))
U31_ga(T215, T213, T214, T9, split51_out_ggaa(T214, T215, X323, X324)) → qsort1_out_ga(.(T215, .(T213, T214)), T9)
U30_ga(T215, T213, T214, T9, gt67_out_gg(T213, T215)) → U32_ga(T215, T213, T214, T9, split51_in_ggaa(T214, T215, T222, T223))
U32_ga(T215, T213, T214, T9, split51_out_ggaa(T214, T215, T222, T223)) → U33_ga(T215, T213, T214, T9, qsort79_in_aa(T222, X12))
U33_ga(T215, T213, T214, T9, qsort79_out_aa(T222, X12)) → qsort1_out_ga(.(T215, .(T213, T214)), T9)
U32_ga(T215, T213, T214, T9, split51_out_ggaa(T214, T215, T222, T223)) → U34_ga(T215, T213, T214, T9, T223, qsort79_in_aa(T222, T226))
U34_ga(T215, T213, T214, T9, T223, qsort79_out_aa(T222, T226)) → U35_ga(T215, T213, T214, T9, p78_in_aaaga(.(T213, T223), X13, T226, T215, T9))
U35_ga(T215, T213, T214, T9, p78_out_aaaga(.(T213, T223), X13, T226, T215, T9)) → qsort1_out_ga(.(T215, .(T213, T214)), T9)
QSORT1_IN_GA(.(T14, []), T9) → U19_GA(T14, T9, qsort14_in_a(X12))
QSORT1_IN_GA(.(T14, []), T9) → QSORT14_IN_A(X12)
QSORT1_IN_GA(.(T14, []), T9) → U20_GA(T14, T9, qsort14_in_a(T17))
U20_GA(T14, T9, qsort14_out_a(T17)) → U21_GA(T14, T9, qsort14_in_a(X13))
U20_GA(T14, T9, qsort14_out_a(T17)) → QSORT14_IN_A(X13)
U20_GA(T14, T9, qsort14_out_a(T17)) → U22_GA(T14, T9, T17, qsort14_in_a(T20))
U22_GA(T14, T9, T17, qsort14_out_a(T20)) → U23_GA(T14, T9, append23_in_ggga(T17, T14, T20, T9))
U22_GA(T14, T9, T17, qsort14_out_a(T20)) → APPEND23_IN_GGGA(T17, T14, T20, T9)
APPEND23_IN_GGGA(.(T45, T46), T47, T48, .(T45, T50)) → U1_GGGA(T45, T46, T47, T48, T50, append23_in_ggga(T46, T47, T48, T50))
APPEND23_IN_GGGA(.(T45, T46), T47, T48, .(T45, T50)) → APPEND23_IN_GGGA(T46, T47, T48, T50)
QSORT1_IN_GA(.(T69, .(T67, T68)), T9) → U24_GA(T69, T67, T68, T9, le36_in_gg(T67, T69))
QSORT1_IN_GA(.(T69, .(T67, T68)), T9) → LE36_IN_GG(T67, T69)
LE36_IN_GG(s(T82), s(T83)) → U2_GG(T82, T83, le36_in_gg(T82, T83))
LE36_IN_GG(s(T82), s(T83)) → LE36_IN_GG(T82, T83)
U24_GA(T69, T67, T68, T9, le36_out_gg(T67, T69)) → U25_GA(T69, T67, T68, T9, split51_in_ggaa(T68, T69, X93, X94))
U24_GA(T69, T67, T68, T9, le36_out_gg(T67, T69)) → SPLIT51_IN_GGAA(T68, T69, X93, X94)
SPLIT51_IN_GGAA(.(T114, T115), T116, .(T114, X167), X168) → U3_GGAA(T114, T115, T116, X167, X168, le36_in_gg(T114, T116))
SPLIT51_IN_GGAA(.(T114, T115), T116, .(T114, X167), X168) → LE36_IN_GG(T114, T116)
U3_GGAA(T114, T115, T116, X167, X168, le36_out_gg(T114, T116)) → U4_GGAA(T114, T115, T116, X167, X168, split51_in_ggaa(T115, T116, X167, X168))
U3_GGAA(T114, T115, T116, X167, X168, le36_out_gg(T114, T116)) → SPLIT51_IN_GGAA(T115, T116, X167, X168)
SPLIT51_IN_GGAA(.(T129, T130), T131, X199, .(T129, X200)) → U5_GGAA(T129, T130, T131, X199, X200, gt67_in_gg(T129, T131))
SPLIT51_IN_GGAA(.(T129, T130), T131, X199, .(T129, X200)) → GT67_IN_GG(T129, T131)
GT67_IN_GG(s(T144), s(T145)) → U7_GG(T144, T145, gt67_in_gg(T144, T145))
GT67_IN_GG(s(T144), s(T145)) → GT67_IN_GG(T144, T145)
U5_GGAA(T129, T130, T131, X199, X200, gt67_out_gg(T129, T131)) → U6_GGAA(T129, T130, T131, X199, X200, split51_in_ggaa(T130, T131, X199, X200))
U5_GGAA(T129, T130, T131, X199, X200, gt67_out_gg(T129, T131)) → SPLIT51_IN_GGAA(T130, T131, X199, X200)
U24_GA(T69, T67, T68, T9, le36_out_gg(T67, T69)) → U26_GA(T69, T67, T68, T9, split51_in_ggaa(T68, T69, T93, T94))
U26_GA(T69, T67, T68, T9, split51_out_ggaa(T68, T69, T93, T94)) → U27_GA(T69, T67, T68, T9, qsort1_in_aa(.(T67, T93), X12))
U26_GA(T69, T67, T68, T9, split51_out_ggaa(T68, T69, T93, T94)) → QSORT1_IN_AA(.(T67, T93), X12)
QSORT1_IN_AA(.(T14, []), T9) → U19_AA(T14, T9, qsort14_in_a(X12))
QSORT1_IN_AA(.(T14, []), T9) → QSORT14_IN_A(X12)
QSORT1_IN_AA(.(T14, []), T9) → U20_AA(T14, T9, qsort14_in_a(T17))
U20_AA(T14, T9, qsort14_out_a(T17)) → U21_AA(T14, T9, qsort14_in_a(X13))
U20_AA(T14, T9, qsort14_out_a(T17)) → QSORT14_IN_A(X13)
U20_AA(T14, T9, qsort14_out_a(T17)) → U22_AA(T14, T9, T17, qsort14_in_a(T20))
U22_AA(T14, T9, T17, qsort14_out_a(T20)) → U23_AA(T14, T9, append23_in_gaga(T17, T14, T20, T9))
U22_AA(T14, T9, T17, qsort14_out_a(T20)) → APPEND23_IN_GAGA(T17, T14, T20, T9)
APPEND23_IN_GAGA(.(T45, T46), T47, T48, .(T45, T50)) → U1_GAGA(T45, T46, T47, T48, T50, append23_in_gaga(T46, T47, T48, T50))
APPEND23_IN_GAGA(.(T45, T46), T47, T48, .(T45, T50)) → APPEND23_IN_GAGA(T46, T47, T48, T50)
QSORT1_IN_AA(.(T69, .(T67, T68)), T9) → U24_AA(T69, T67, T68, T9, le36_in_aa(T67, T69))
QSORT1_IN_AA(.(T69, .(T67, T68)), T9) → LE36_IN_AA(T67, T69)
LE36_IN_AA(s(T82), s(T83)) → U2_AA(T82, T83, le36_in_aa(T82, T83))
LE36_IN_AA(s(T82), s(T83)) → LE36_IN_AA(T82, T83)
U24_AA(T69, T67, T68, T9, le36_out_aa(T67, T69)) → U25_AA(T69, T67, T68, T9, split51_in_aaaa(T68, T69, X93, X94))
U24_AA(T69, T67, T68, T9, le36_out_aa(T67, T69)) → SPLIT51_IN_AAAA(T68, T69, X93, X94)
SPLIT51_IN_AAAA(.(T114, T115), T116, .(T114, X167), X168) → U3_AAAA(T114, T115, T116, X167, X168, le36_in_aa(T114, T116))
SPLIT51_IN_AAAA(.(T114, T115), T116, .(T114, X167), X168) → LE36_IN_AA(T114, T116)
U3_AAAA(T114, T115, T116, X167, X168, le36_out_aa(T114, T116)) → U4_AAAA(T114, T115, T116, X167, X168, split51_in_aaaa(T115, T116, X167, X168))
U3_AAAA(T114, T115, T116, X167, X168, le36_out_aa(T114, T116)) → SPLIT51_IN_AAAA(T115, T116, X167, X168)
SPLIT51_IN_AAAA(.(T129, T130), T131, X199, .(T129, X200)) → U5_AAAA(T129, T130, T131, X199, X200, gt67_in_aa(T129, T131))
SPLIT51_IN_AAAA(.(T129, T130), T131, X199, .(T129, X200)) → GT67_IN_AA(T129, T131)
GT67_IN_AA(s(T144), s(T145)) → U7_AA(T144, T145, gt67_in_aa(T144, T145))
GT67_IN_AA(s(T144), s(T145)) → GT67_IN_AA(T144, T145)
U5_AAAA(T129, T130, T131, X199, X200, gt67_out_aa(T129, T131)) → U6_AAAA(T129, T130, T131, X199, X200, split51_in_agaa(T130, T131, X199, X200))
U5_AAAA(T129, T130, T131, X199, X200, gt67_out_aa(T129, T131)) → SPLIT51_IN_AGAA(T130, T131, X199, X200)
SPLIT51_IN_AGAA(.(T114, T115), T116, .(T114, X167), X168) → U3_AGAA(T114, T115, T116, X167, X168, le36_in_ag(T114, T116))
SPLIT51_IN_AGAA(.(T114, T115), T116, .(T114, X167), X168) → LE36_IN_AG(T114, T116)
LE36_IN_AG(s(T82), s(T83)) → U2_AG(T82, T83, le36_in_ag(T82, T83))
LE36_IN_AG(s(T82), s(T83)) → LE36_IN_AG(T82, T83)
U3_AGAA(T114, T115, T116, X167, X168, le36_out_ag(T114, T116)) → U4_AGAA(T114, T115, T116, X167, X168, split51_in_agaa(T115, T116, X167, X168))
U3_AGAA(T114, T115, T116, X167, X168, le36_out_ag(T114, T116)) → SPLIT51_IN_AGAA(T115, T116, X167, X168)
SPLIT51_IN_AGAA(.(T129, T130), T131, X199, .(T129, X200)) → U5_AGAA(T129, T130, T131, X199, X200, gt67_in_ag(T129, T131))
SPLIT51_IN_AGAA(.(T129, T130), T131, X199, .(T129, X200)) → GT67_IN_AG(T129, T131)
GT67_IN_AG(s(T144), s(T145)) → U7_AG(T144, T145, gt67_in_ag(T144, T145))
GT67_IN_AG(s(T144), s(T145)) → GT67_IN_AG(T144, T145)
U5_AGAA(T129, T130, T131, X199, X200, gt67_out_ag(T129, T131)) → U6_AGAA(T129, T130, T131, X199, X200, split51_in_agaa(T130, T131, X199, X200))
U5_AGAA(T129, T130, T131, X199, X200, gt67_out_ag(T129, T131)) → SPLIT51_IN_AGAA(T130, T131, X199, X200)
U24_AA(T69, T67, T68, T9, le36_out_aa(T67, T69)) → U26_AA(T69, T67, T68, T9, split51_in_aaaa(T68, T69, T93, T94))
U26_AA(T69, T67, T68, T9, split51_out_aaaa(T68, T69, T93, T94)) → U27_AA(T69, T67, T68, T9, qsort1_in_aa(.(T67, T93), X12))
U26_AA(T69, T67, T68, T9, split51_out_aaaa(T68, T69, T93, T94)) → QSORT1_IN_AA(.(T67, T93), X12)
QSORT1_IN_AA(.(T215, .(T213, T214)), T9) → U30_AA(T215, T213, T214, T9, gt67_in_aa(T213, T215))
QSORT1_IN_AA(.(T215, .(T213, T214)), T9) → GT67_IN_AA(T213, T215)
U30_AA(T215, T213, T214, T9, gt67_out_aa(T213, T215)) → U31_AA(T215, T213, T214, T9, split51_in_agaa(T214, T215, X323, X324))
U30_AA(T215, T213, T214, T9, gt67_out_aa(T213, T215)) → SPLIT51_IN_AGAA(T214, T215, X323, X324)
U30_AA(T215, T213, T214, T9, gt67_out_aa(T213, T215)) → U32_AA(T215, T213, T214, T9, split51_in_agaa(T214, T215, T222, T223))
U32_AA(T215, T213, T214, T9, split51_out_agaa(T214, T215, T222, T223)) → U33_AA(T215, T213, T214, T9, qsort79_in_aa(T222, X12))
U32_AA(T215, T213, T214, T9, split51_out_agaa(T214, T215, T222, T223)) → QSORT79_IN_AA(T222, X12)
QSORT79_IN_AA(.(T163, T164), X265) → U8_AA(T163, T164, X265, split51_in_aaaa(T164, T163, X261, X262))
QSORT79_IN_AA(.(T163, T164), X265) → SPLIT51_IN_AAAA(T164, T163, X261, X262)
QSORT79_IN_AA(.(T163, T164), X265) → U9_AA(T163, T164, X265, split51_in_aaaa(T164, T163, T167, T168))
U9_AA(T163, T164, X265, split51_out_aaaa(T164, T163, T167, T168)) → U10_AA(T163, T164, X265, qsort79_in_aa(T167, X263))
U9_AA(T163, T164, X265, split51_out_aaaa(T164, T163, T167, T168)) → QSORT79_IN_AA(T167, X263)
U9_AA(T163, T164, X265, split51_out_aaaa(T164, T163, T167, T168)) → U11_AA(T163, T164, X265, T168, qsort79_in_aa(T167, T171))
U11_AA(T163, T164, X265, T168, qsort79_out_aa(T167, T171)) → U12_AA(T163, T164, X265, qsort79_in_aa(T168, X264))
U11_AA(T163, T164, X265, T168, qsort79_out_aa(T167, T171)) → QSORT79_IN_AA(T168, X264)
U11_AA(T163, T164, X265, T168, qsort79_out_aa(T167, T171)) → U13_AA(T163, T164, X265, T171, qsort79_in_aa(T168, T172))
U13_AA(T163, T164, X265, T171, qsort79_out_aa(T168, T172)) → U14_AA(T163, T164, X265, append94_in_aaaa(T171, T163, T172, X265))
U13_AA(T163, T164, X265, T171, qsort79_out_aa(T168, T172)) → APPEND94_IN_AAAA(T171, T163, T172, X265)
APPEND94_IN_AAAA(.(T195, T196), T197, T198, .(T195, X295)) → U15_AAAA(T195, T196, T197, T198, X295, append94_in_aaaa(T196, T197, T198, X295))
APPEND94_IN_AAAA(.(T195, T196), T197, T198, .(T195, X295)) → APPEND94_IN_AAAA(T196, T197, T198, X295)
U32_AA(T215, T213, T214, T9, split51_out_agaa(T214, T215, T222, T223)) → U34_AA(T215, T213, T214, T9, T223, qsort79_in_aa(T222, T226))
U34_AA(T215, T213, T214, T9, T223, qsort79_out_aa(T222, T226)) → U35_AA(T215, T213, T214, T9, p78_in_aaaga(.(T213, T223), X13, T226, T215, T9))
U34_AA(T215, T213, T214, T9, T223, qsort79_out_aa(T222, T226)) → P78_IN_AAAGA(.(T213, T223), X13, T226, T215, T9)
P78_IN_AAAGA(T94, X13, T155, T69, T9) → U16_AAAGA(T94, X13, T155, T69, T9, qsort79_in_aa(T94, X13))
P78_IN_AAAGA(T94, X13, T155, T69, T9) → QSORT79_IN_AA(T94, X13)
P78_IN_AAAGA(T94, T158, T155, T69, T9) → U17_AAAGA(T94, T158, T155, T69, T9, qsort79_in_aa(T94, T158))
U17_AAAGA(T94, T158, T155, T69, T9, qsort79_out_aa(T94, T158)) → U18_AAAGA(T94, T158, T155, T69, T9, append23_in_agaa(T155, T69, T158, T9))
U17_AAAGA(T94, T158, T155, T69, T9, qsort79_out_aa(T94, T158)) → APPEND23_IN_AGAA(T155, T69, T158, T9)
APPEND23_IN_AGAA(.(T45, T46), T47, T48, .(T45, T50)) → U1_AGAA(T45, T46, T47, T48, T50, append23_in_agaa(T46, T47, T48, T50))
APPEND23_IN_AGAA(.(T45, T46), T47, T48, .(T45, T50)) → APPEND23_IN_AGAA(T46, T47, T48, T50)
U26_AA(T69, T67, T68, T9, split51_out_aaaa(T68, T69, T93, T94)) → U28_AA(T69, T67, T68, T9, T94, qsort1_in_aa(.(T67, T93), T155))
U28_AA(T69, T67, T68, T9, T94, qsort1_out_aa(.(T67, T93), T155)) → U29_AA(T69, T67, T68, T9, p78_in_aaaaa(T94, X13, T155, T69, T9))
U28_AA(T69, T67, T68, T9, T94, qsort1_out_aa(.(T67, T93), T155)) → P78_IN_AAAAA(T94, X13, T155, T69, T9)
P78_IN_AAAAA(T94, X13, T155, T69, T9) → U16_AAAAA(T94, X13, T155, T69, T9, qsort79_in_aa(T94, X13))
P78_IN_AAAAA(T94, X13, T155, T69, T9) → QSORT79_IN_AA(T94, X13)
P78_IN_AAAAA(T94, T158, T155, T69, T9) → U17_AAAAA(T94, T158, T155, T69, T9, qsort79_in_aa(T94, T158))
U17_AAAAA(T94, T158, T155, T69, T9, qsort79_out_aa(T94, T158)) → U18_AAAAA(T94, T158, T155, T69, T9, append23_in_aaaa(T155, T69, T158, T9))
U17_AAAAA(T94, T158, T155, T69, T9, qsort79_out_aa(T94, T158)) → APPEND23_IN_AAAA(T155, T69, T158, T9)
APPEND23_IN_AAAA(.(T45, T46), T47, T48, .(T45, T50)) → U1_AAAA(T45, T46, T47, T48, T50, append23_in_aaaa(T46, T47, T48, T50))
APPEND23_IN_AAAA(.(T45, T46), T47, T48, .(T45, T50)) → APPEND23_IN_AAAA(T46, T47, T48, T50)
U26_GA(T69, T67, T68, T9, split51_out_ggaa(T68, T69, T93, T94)) → U28_GA(T69, T67, T68, T9, T94, qsort1_in_aa(.(T67, T93), T155))
U28_GA(T69, T67, T68, T9, T94, qsort1_out_aa(.(T67, T93), T155)) → U29_GA(T69, T67, T68, T9, p78_in_aaaga(T94, X13, T155, T69, T9))
U28_GA(T69, T67, T68, T9, T94, qsort1_out_aa(.(T67, T93), T155)) → P78_IN_AAAGA(T94, X13, T155, T69, T9)
QSORT1_IN_GA(.(T215, .(T213, T214)), T9) → U30_GA(T215, T213, T214, T9, gt67_in_gg(T213, T215))
QSORT1_IN_GA(.(T215, .(T213, T214)), T9) → GT67_IN_GG(T213, T215)
U30_GA(T215, T213, T214, T9, gt67_out_gg(T213, T215)) → U31_GA(T215, T213, T214, T9, split51_in_ggaa(T214, T215, X323, X324))
U30_GA(T215, T213, T214, T9, gt67_out_gg(T213, T215)) → SPLIT51_IN_GGAA(T214, T215, X323, X324)
U30_GA(T215, T213, T214, T9, gt67_out_gg(T213, T215)) → U32_GA(T215, T213, T214, T9, split51_in_ggaa(T214, T215, T222, T223))
U32_GA(T215, T213, T214, T9, split51_out_ggaa(T214, T215, T222, T223)) → U33_GA(T215, T213, T214, T9, qsort79_in_aa(T222, X12))
U32_GA(T215, T213, T214, T9, split51_out_ggaa(T214, T215, T222, T223)) → QSORT79_IN_AA(T222, X12)
U32_GA(T215, T213, T214, T9, split51_out_ggaa(T214, T215, T222, T223)) → U34_GA(T215, T213, T214, T9, T223, qsort79_in_aa(T222, T226))
U34_GA(T215, T213, T214, T9, T223, qsort79_out_aa(T222, T226)) → U35_GA(T215, T213, T214, T9, p78_in_aaaga(.(T213, T223), X13, T226, T215, T9))
U34_GA(T215, T213, T214, T9, T223, qsort79_out_aa(T222, T226)) → P78_IN_AAAGA(.(T213, T223), X13, T226, T215, T9)
qsort1_in_ga([], []) → qsort1_out_ga([], [])
qsort1_in_ga(.(T14, []), T9) → U19_ga(T14, T9, qsort14_in_a(X12))
qsort14_in_a([]) → qsort14_out_a([])
U19_ga(T14, T9, qsort14_out_a(X12)) → qsort1_out_ga(.(T14, []), T9)
qsort1_in_ga(.(T14, []), T9) → U20_ga(T14, T9, qsort14_in_a(T17))
U20_ga(T14, T9, qsort14_out_a(T17)) → U21_ga(T14, T9, qsort14_in_a(X13))
U21_ga(T14, T9, qsort14_out_a(X13)) → qsort1_out_ga(.(T14, []), T9)
U20_ga(T14, T9, qsort14_out_a(T17)) → U22_ga(T14, T9, T17, qsort14_in_a(T20))
U22_ga(T14, T9, T17, qsort14_out_a(T20)) → U23_ga(T14, T9, append23_in_ggga(T17, T14, T20, T9))
append23_in_ggga([], T33, T34, .(T33, T34)) → append23_out_ggga([], T33, T34, .(T33, T34))
append23_in_ggga(.(T45, T46), T47, T48, .(T45, T50)) → U1_ggga(T45, T46, T47, T48, T50, append23_in_ggga(T46, T47, T48, T50))
U1_ggga(T45, T46, T47, T48, T50, append23_out_ggga(T46, T47, T48, T50)) → append23_out_ggga(.(T45, T46), T47, T48, .(T45, T50))
U23_ga(T14, T9, append23_out_ggga(T17, T14, T20, T9)) → qsort1_out_ga(.(T14, []), T9)
qsort1_in_ga(.(T69, .(T67, T68)), T9) → U24_ga(T69, T67, T68, T9, le36_in_gg(T67, T69))
le36_in_gg(s(T82), s(T83)) → U2_gg(T82, T83, le36_in_gg(T82, T83))
le36_in_gg(0, s(T90)) → le36_out_gg(0, s(T90))
le36_in_gg(0, 0) → le36_out_gg(0, 0)
U2_gg(T82, T83, le36_out_gg(T82, T83)) → le36_out_gg(s(T82), s(T83))
U24_ga(T69, T67, T68, T9, le36_out_gg(T67, T69)) → qsort1_out_ga(.(T69, .(T67, T68)), T9)
U24_ga(T69, T67, T68, T9, le36_out_gg(T67, T69)) → U25_ga(T69, T67, T68, T9, split51_in_ggaa(T68, T69, X93, X94))
split51_in_ggaa([], T101, [], []) → split51_out_ggaa([], T101, [], [])
split51_in_ggaa(.(T114, T115), T116, .(T114, X167), X168) → U3_ggaa(T114, T115, T116, X167, X168, le36_in_gg(T114, T116))
U3_ggaa(T114, T115, T116, X167, X168, le36_out_gg(T114, T116)) → split51_out_ggaa(.(T114, T115), T116, .(T114, X167), X168)
U3_ggaa(T114, T115, T116, X167, X168, le36_out_gg(T114, T116)) → U4_ggaa(T114, T115, T116, X167, X168, split51_in_ggaa(T115, T116, X167, X168))
split51_in_ggaa(.(T129, T130), T131, X199, .(T129, X200)) → U5_ggaa(T129, T130, T131, X199, X200, gt67_in_gg(T129, T131))
gt67_in_gg(s(T144), s(T145)) → U7_gg(T144, T145, gt67_in_gg(T144, T145))
gt67_in_gg(s(T150), 0) → gt67_out_gg(s(T150), 0)
U7_gg(T144, T145, gt67_out_gg(T144, T145)) → gt67_out_gg(s(T144), s(T145))
U5_ggaa(T129, T130, T131, X199, X200, gt67_out_gg(T129, T131)) → split51_out_ggaa(.(T129, T130), T131, X199, .(T129, X200))
U5_ggaa(T129, T130, T131, X199, X200, gt67_out_gg(T129, T131)) → U6_ggaa(T129, T130, T131, X199, X200, split51_in_ggaa(T130, T131, X199, X200))
U6_ggaa(T129, T130, T131, X199, X200, split51_out_ggaa(T130, T131, X199, X200)) → split51_out_ggaa(.(T129, T130), T131, X199, .(T129, X200))
U4_ggaa(T114, T115, T116, X167, X168, split51_out_ggaa(T115, T116, X167, X168)) → split51_out_ggaa(.(T114, T115), T116, .(T114, X167), X168)
U25_ga(T69, T67, T68, T9, split51_out_ggaa(T68, T69, X93, X94)) → qsort1_out_ga(.(T69, .(T67, T68)), T9)
U24_ga(T69, T67, T68, T9, le36_out_gg(T67, T69)) → U26_ga(T69, T67, T68, T9, split51_in_ggaa(T68, T69, T93, T94))
U26_ga(T69, T67, T68, T9, split51_out_ggaa(T68, T69, T93, T94)) → U27_ga(T69, T67, T68, T9, qsort1_in_aa(.(T67, T93), X12))
qsort1_in_aa([], []) → qsort1_out_aa([], [])
qsort1_in_aa(.(T14, []), T9) → U19_aa(T14, T9, qsort14_in_a(X12))
U19_aa(T14, T9, qsort14_out_a(X12)) → qsort1_out_aa(.(T14, []), T9)
qsort1_in_aa(.(T14, []), T9) → U20_aa(T14, T9, qsort14_in_a(T17))
U20_aa(T14, T9, qsort14_out_a(T17)) → U21_aa(T14, T9, qsort14_in_a(X13))
U21_aa(T14, T9, qsort14_out_a(X13)) → qsort1_out_aa(.(T14, []), T9)
U20_aa(T14, T9, qsort14_out_a(T17)) → U22_aa(T14, T9, T17, qsort14_in_a(T20))
U22_aa(T14, T9, T17, qsort14_out_a(T20)) → U23_aa(T14, T9, append23_in_gaga(T17, T14, T20, T9))
append23_in_gaga([], T33, T34, .(T33, T34)) → append23_out_gaga([], T33, T34, .(T33, T34))
append23_in_gaga(.(T45, T46), T47, T48, .(T45, T50)) → U1_gaga(T45, T46, T47, T48, T50, append23_in_gaga(T46, T47, T48, T50))
U1_gaga(T45, T46, T47, T48, T50, append23_out_gaga(T46, T47, T48, T50)) → append23_out_gaga(.(T45, T46), T47, T48, .(T45, T50))
U23_aa(T14, T9, append23_out_gaga(T17, T14, T20, T9)) → qsort1_out_aa(.(T14, []), T9)
qsort1_in_aa(.(T69, .(T67, T68)), T9) → U24_aa(T69, T67, T68, T9, le36_in_aa(T67, T69))
le36_in_aa(s(T82), s(T83)) → U2_aa(T82, T83, le36_in_aa(T82, T83))
le36_in_aa(0, s(T90)) → le36_out_aa(0, s(T90))
le36_in_aa(0, 0) → le36_out_aa(0, 0)
U2_aa(T82, T83, le36_out_aa(T82, T83)) → le36_out_aa(s(T82), s(T83))
U24_aa(T69, T67, T68, T9, le36_out_aa(T67, T69)) → qsort1_out_aa(.(T69, .(T67, T68)), T9)
U24_aa(T69, T67, T68, T9, le36_out_aa(T67, T69)) → U25_aa(T69, T67, T68, T9, split51_in_aaaa(T68, T69, X93, X94))
split51_in_aaaa([], T101, [], []) → split51_out_aaaa([], T101, [], [])
split51_in_aaaa(.(T114, T115), T116, .(T114, X167), X168) → U3_aaaa(T114, T115, T116, X167, X168, le36_in_aa(T114, T116))
U3_aaaa(T114, T115, T116, X167, X168, le36_out_aa(T114, T116)) → split51_out_aaaa(.(T114, T115), T116, .(T114, X167), X168)
U3_aaaa(T114, T115, T116, X167, X168, le36_out_aa(T114, T116)) → U4_aaaa(T114, T115, T116, X167, X168, split51_in_aaaa(T115, T116, X167, X168))
split51_in_aaaa(.(T129, T130), T131, X199, .(T129, X200)) → U5_aaaa(T129, T130, T131, X199, X200, gt67_in_aa(T129, T131))
gt67_in_aa(s(T144), s(T145)) → U7_aa(T144, T145, gt67_in_aa(T144, T145))
gt67_in_aa(s(T150), 0) → gt67_out_aa(s(T150), 0)
U7_aa(T144, T145, gt67_out_aa(T144, T145)) → gt67_out_aa(s(T144), s(T145))
U5_aaaa(T129, T130, T131, X199, X200, gt67_out_aa(T129, T131)) → split51_out_aaaa(.(T129, T130), T131, X199, .(T129, X200))
U5_aaaa(T129, T130, T131, X199, X200, gt67_out_aa(T129, T131)) → U6_aaaa(T129, T130, T131, X199, X200, split51_in_agaa(T130, T131, X199, X200))
split51_in_agaa([], T101, [], []) → split51_out_agaa([], T101, [], [])
split51_in_agaa(.(T114, T115), T116, .(T114, X167), X168) → U3_agaa(T114, T115, T116, X167, X168, le36_in_ag(T114, T116))
le36_in_ag(s(T82), s(T83)) → U2_ag(T82, T83, le36_in_ag(T82, T83))
le36_in_ag(0, s(T90)) → le36_out_ag(0, s(T90))
le36_in_ag(0, 0) → le36_out_ag(0, 0)
U2_ag(T82, T83, le36_out_ag(T82, T83)) → le36_out_ag(s(T82), s(T83))
U3_agaa(T114, T115, T116, X167, X168, le36_out_ag(T114, T116)) → split51_out_agaa(.(T114, T115), T116, .(T114, X167), X168)
U3_agaa(T114, T115, T116, X167, X168, le36_out_ag(T114, T116)) → U4_agaa(T114, T115, T116, X167, X168, split51_in_agaa(T115, T116, X167, X168))
split51_in_agaa(.(T129, T130), T131, X199, .(T129, X200)) → U5_agaa(T129, T130, T131, X199, X200, gt67_in_ag(T129, T131))
gt67_in_ag(s(T144), s(T145)) → U7_ag(T144, T145, gt67_in_ag(T144, T145))
gt67_in_ag(s(T150), 0) → gt67_out_ag(s(T150), 0)
U7_ag(T144, T145, gt67_out_ag(T144, T145)) → gt67_out_ag(s(T144), s(T145))
U5_agaa(T129, T130, T131, X199, X200, gt67_out_ag(T129, T131)) → split51_out_agaa(.(T129, T130), T131, X199, .(T129, X200))
U5_agaa(T129, T130, T131, X199, X200, gt67_out_ag(T129, T131)) → U6_agaa(T129, T130, T131, X199, X200, split51_in_agaa(T130, T131, X199, X200))
U6_agaa(T129, T130, T131, X199, X200, split51_out_agaa(T130, T131, X199, X200)) → split51_out_agaa(.(T129, T130), T131, X199, .(T129, X200))
U4_agaa(T114, T115, T116, X167, X168, split51_out_agaa(T115, T116, X167, X168)) → split51_out_agaa(.(T114, T115), T116, .(T114, X167), X168)
U6_aaaa(T129, T130, T131, X199, X200, split51_out_agaa(T130, T131, X199, X200)) → split51_out_aaaa(.(T129, T130), T131, X199, .(T129, X200))
U4_aaaa(T114, T115, T116, X167, X168, split51_out_aaaa(T115, T116, X167, X168)) → split51_out_aaaa(.(T114, T115), T116, .(T114, X167), X168)
U25_aa(T69, T67, T68, T9, split51_out_aaaa(T68, T69, X93, X94)) → qsort1_out_aa(.(T69, .(T67, T68)), T9)
U24_aa(T69, T67, T68, T9, le36_out_aa(T67, T69)) → U26_aa(T69, T67, T68, T9, split51_in_aaaa(T68, T69, T93, T94))
U26_aa(T69, T67, T68, T9, split51_out_aaaa(T68, T69, T93, T94)) → U27_aa(T69, T67, T68, T9, qsort1_in_aa(.(T67, T93), X12))
qsort1_in_aa(.(T215, .(T213, T214)), T9) → U30_aa(T215, T213, T214, T9, gt67_in_aa(T213, T215))
U30_aa(T215, T213, T214, T9, gt67_out_aa(T213, T215)) → qsort1_out_aa(.(T215, .(T213, T214)), T9)
U30_aa(T215, T213, T214, T9, gt67_out_aa(T213, T215)) → U31_aa(T215, T213, T214, T9, split51_in_agaa(T214, T215, X323, X324))
U31_aa(T215, T213, T214, T9, split51_out_agaa(T214, T215, X323, X324)) → qsort1_out_aa(.(T215, .(T213, T214)), T9)
U30_aa(T215, T213, T214, T9, gt67_out_aa(T213, T215)) → U32_aa(T215, T213, T214, T9, split51_in_agaa(T214, T215, T222, T223))
U32_aa(T215, T213, T214, T9, split51_out_agaa(T214, T215, T222, T223)) → U33_aa(T215, T213, T214, T9, qsort79_in_aa(T222, X12))
qsort79_in_aa([], []) → qsort79_out_aa([], [])
qsort79_in_aa(.(T163, T164), X265) → U8_aa(T163, T164, X265, split51_in_aaaa(T164, T163, X261, X262))
U8_aa(T163, T164, X265, split51_out_aaaa(T164, T163, X261, X262)) → qsort79_out_aa(.(T163, T164), X265)
qsort79_in_aa(.(T163, T164), X265) → U9_aa(T163, T164, X265, split51_in_aaaa(T164, T163, T167, T168))
U9_aa(T163, T164, X265, split51_out_aaaa(T164, T163, T167, T168)) → U10_aa(T163, T164, X265, qsort79_in_aa(T167, X263))
U10_aa(T163, T164, X265, qsort79_out_aa(T167, X263)) → qsort79_out_aa(.(T163, T164), X265)
U9_aa(T163, T164, X265, split51_out_aaaa(T164, T163, T167, T168)) → U11_aa(T163, T164, X265, T168, qsort79_in_aa(T167, T171))
U11_aa(T163, T164, X265, T168, qsort79_out_aa(T167, T171)) → U12_aa(T163, T164, X265, qsort79_in_aa(T168, X264))
U12_aa(T163, T164, X265, qsort79_out_aa(T168, X264)) → qsort79_out_aa(.(T163, T164), X265)
U11_aa(T163, T164, X265, T168, qsort79_out_aa(T167, T171)) → U13_aa(T163, T164, X265, T171, qsort79_in_aa(T168, T172))
U13_aa(T163, T164, X265, T171, qsort79_out_aa(T168, T172)) → U14_aa(T163, T164, X265, append94_in_aaaa(T171, T163, T172, X265))
append94_in_aaaa([], T185, T186, .(T185, T186)) → append94_out_aaaa([], T185, T186, .(T185, T186))
append94_in_aaaa(.(T195, T196), T197, T198, .(T195, X295)) → U15_aaaa(T195, T196, T197, T198, X295, append94_in_aaaa(T196, T197, T198, X295))
U15_aaaa(T195, T196, T197, T198, X295, append94_out_aaaa(T196, T197, T198, X295)) → append94_out_aaaa(.(T195, T196), T197, T198, .(T195, X295))
U14_aa(T163, T164, X265, append94_out_aaaa(T171, T163, T172, X265)) → qsort79_out_aa(.(T163, T164), X265)
U33_aa(T215, T213, T214, T9, qsort79_out_aa(T222, X12)) → qsort1_out_aa(.(T215, .(T213, T214)), T9)
U32_aa(T215, T213, T214, T9, split51_out_agaa(T214, T215, T222, T223)) → U34_aa(T215, T213, T214, T9, T223, qsort79_in_aa(T222, T226))
U34_aa(T215, T213, T214, T9, T223, qsort79_out_aa(T222, T226)) → U35_aa(T215, T213, T214, T9, p78_in_aaaga(.(T213, T223), X13, T226, T215, T9))
p78_in_aaaga(T94, X13, T155, T69, T9) → U16_aaaga(T94, X13, T155, T69, T9, qsort79_in_aa(T94, X13))
U16_aaaga(T94, X13, T155, T69, T9, qsort79_out_aa(T94, X13)) → p78_out_aaaga(T94, X13, T155, T69, T9)
p78_in_aaaga(T94, T158, T155, T69, T9) → U17_aaaga(T94, T158, T155, T69, T9, qsort79_in_aa(T94, T158))
U17_aaaga(T94, T158, T155, T69, T9, qsort79_out_aa(T94, T158)) → U18_aaaga(T94, T158, T155, T69, T9, append23_in_agaa(T155, T69, T158, T9))
append23_in_agaa([], T33, T34, .(T33, T34)) → append23_out_agaa([], T33, T34, .(T33, T34))
append23_in_agaa(.(T45, T46), T47, T48, .(T45, T50)) → U1_agaa(T45, T46, T47, T48, T50, append23_in_agaa(T46, T47, T48, T50))
U1_agaa(T45, T46, T47, T48, T50, append23_out_agaa(T46, T47, T48, T50)) → append23_out_agaa(.(T45, T46), T47, T48, .(T45, T50))
U18_aaaga(T94, T158, T155, T69, T9, append23_out_agaa(T155, T69, T158, T9)) → p78_out_aaaga(T94, T158, T155, T69, T9)
U35_aa(T215, T213, T214, T9, p78_out_aaaga(.(T213, T223), X13, T226, T215, T9)) → qsort1_out_aa(.(T215, .(T213, T214)), T9)
U27_aa(T69, T67, T68, T9, qsort1_out_aa(.(T67, T93), X12)) → qsort1_out_aa(.(T69, .(T67, T68)), T9)
U26_aa(T69, T67, T68, T9, split51_out_aaaa(T68, T69, T93, T94)) → U28_aa(T69, T67, T68, T9, T94, qsort1_in_aa(.(T67, T93), T155))
U28_aa(T69, T67, T68, T9, T94, qsort1_out_aa(.(T67, T93), T155)) → U29_aa(T69, T67, T68, T9, p78_in_aaaaa(T94, X13, T155, T69, T9))
p78_in_aaaaa(T94, X13, T155, T69, T9) → U16_aaaaa(T94, X13, T155, T69, T9, qsort79_in_aa(T94, X13))
U16_aaaaa(T94, X13, T155, T69, T9, qsort79_out_aa(T94, X13)) → p78_out_aaaaa(T94, X13, T155, T69, T9)
p78_in_aaaaa(T94, T158, T155, T69, T9) → U17_aaaaa(T94, T158, T155, T69, T9, qsort79_in_aa(T94, T158))
U17_aaaaa(T94, T158, T155, T69, T9, qsort79_out_aa(T94, T158)) → U18_aaaaa(T94, T158, T155, T69, T9, append23_in_aaaa(T155, T69, T158, T9))
append23_in_aaaa([], T33, T34, .(T33, T34)) → append23_out_aaaa([], T33, T34, .(T33, T34))
append23_in_aaaa(.(T45, T46), T47, T48, .(T45, T50)) → U1_aaaa(T45, T46, T47, T48, T50, append23_in_aaaa(T46, T47, T48, T50))
U1_aaaa(T45, T46, T47, T48, T50, append23_out_aaaa(T46, T47, T48, T50)) → append23_out_aaaa(.(T45, T46), T47, T48, .(T45, T50))
U18_aaaaa(T94, T158, T155, T69, T9, append23_out_aaaa(T155, T69, T158, T9)) → p78_out_aaaaa(T94, T158, T155, T69, T9)
U29_aa(T69, T67, T68, T9, p78_out_aaaaa(T94, X13, T155, T69, T9)) → qsort1_out_aa(.(T69, .(T67, T68)), T9)
U27_ga(T69, T67, T68, T9, qsort1_out_aa(.(T67, T93), X12)) → qsort1_out_ga(.(T69, .(T67, T68)), T9)
U26_ga(T69, T67, T68, T9, split51_out_ggaa(T68, T69, T93, T94)) → U28_ga(T69, T67, T68, T9, T94, qsort1_in_aa(.(T67, T93), T155))
U28_ga(T69, T67, T68, T9, T94, qsort1_out_aa(.(T67, T93), T155)) → U29_ga(T69, T67, T68, T9, p78_in_aaaga(T94, X13, T155, T69, T9))
U29_ga(T69, T67, T68, T9, p78_out_aaaga(T94, X13, T155, T69, T9)) → qsort1_out_ga(.(T69, .(T67, T68)), T9)
qsort1_in_ga(.(T215, .(T213, T214)), T9) → U30_ga(T215, T213, T214, T9, gt67_in_gg(T213, T215))
U30_ga(T215, T213, T214, T9, gt67_out_gg(T213, T215)) → qsort1_out_ga(.(T215, .(T213, T214)), T9)
U30_ga(T215, T213, T214, T9, gt67_out_gg(T213, T215)) → U31_ga(T215, T213, T214, T9, split51_in_ggaa(T214, T215, X323, X324))
U31_ga(T215, T213, T214, T9, split51_out_ggaa(T214, T215, X323, X324)) → qsort1_out_ga(.(T215, .(T213, T214)), T9)
U30_ga(T215, T213, T214, T9, gt67_out_gg(T213, T215)) → U32_ga(T215, T213, T214, T9, split51_in_ggaa(T214, T215, T222, T223))
U32_ga(T215, T213, T214, T9, split51_out_ggaa(T214, T215, T222, T223)) → U33_ga(T215, T213, T214, T9, qsort79_in_aa(T222, X12))
U33_ga(T215, T213, T214, T9, qsort79_out_aa(T222, X12)) → qsort1_out_ga(.(T215, .(T213, T214)), T9)
U32_ga(T215, T213, T214, T9, split51_out_ggaa(T214, T215, T222, T223)) → U34_ga(T215, T213, T214, T9, T223, qsort79_in_aa(T222, T226))
U34_ga(T215, T213, T214, T9, T223, qsort79_out_aa(T222, T226)) → U35_ga(T215, T213, T214, T9, p78_in_aaaga(.(T213, T223), X13, T226, T215, T9))
U35_ga(T215, T213, T214, T9, p78_out_aaaga(.(T213, T223), X13, T226, T215, T9)) → qsort1_out_ga(.(T215, .(T213, T214)), T9)
QSORT1_IN_GA(.(T14, []), T9) → U19_GA(T14, T9, qsort14_in_a(X12))
QSORT1_IN_GA(.(T14, []), T9) → QSORT14_IN_A(X12)
QSORT1_IN_GA(.(T14, []), T9) → U20_GA(T14, T9, qsort14_in_a(T17))
U20_GA(T14, T9, qsort14_out_a(T17)) → U21_GA(T14, T9, qsort14_in_a(X13))
U20_GA(T14, T9, qsort14_out_a(T17)) → QSORT14_IN_A(X13)
U20_GA(T14, T9, qsort14_out_a(T17)) → U22_GA(T14, T9, T17, qsort14_in_a(T20))
U22_GA(T14, T9, T17, qsort14_out_a(T20)) → U23_GA(T14, T9, append23_in_ggga(T17, T14, T20, T9))
U22_GA(T14, T9, T17, qsort14_out_a(T20)) → APPEND23_IN_GGGA(T17, T14, T20, T9)
APPEND23_IN_GGGA(.(T45, T46), T47, T48, .(T45, T50)) → U1_GGGA(T45, T46, T47, T48, T50, append23_in_ggga(T46, T47, T48, T50))
APPEND23_IN_GGGA(.(T45, T46), T47, T48, .(T45, T50)) → APPEND23_IN_GGGA(T46, T47, T48, T50)
QSORT1_IN_GA(.(T69, .(T67, T68)), T9) → U24_GA(T69, T67, T68, T9, le36_in_gg(T67, T69))
QSORT1_IN_GA(.(T69, .(T67, T68)), T9) → LE36_IN_GG(T67, T69)
LE36_IN_GG(s(T82), s(T83)) → U2_GG(T82, T83, le36_in_gg(T82, T83))
LE36_IN_GG(s(T82), s(T83)) → LE36_IN_GG(T82, T83)
U24_GA(T69, T67, T68, T9, le36_out_gg(T67, T69)) → U25_GA(T69, T67, T68, T9, split51_in_ggaa(T68, T69, X93, X94))
U24_GA(T69, T67, T68, T9, le36_out_gg(T67, T69)) → SPLIT51_IN_GGAA(T68, T69, X93, X94)
SPLIT51_IN_GGAA(.(T114, T115), T116, .(T114, X167), X168) → U3_GGAA(T114, T115, T116, X167, X168, le36_in_gg(T114, T116))
SPLIT51_IN_GGAA(.(T114, T115), T116, .(T114, X167), X168) → LE36_IN_GG(T114, T116)
U3_GGAA(T114, T115, T116, X167, X168, le36_out_gg(T114, T116)) → U4_GGAA(T114, T115, T116, X167, X168, split51_in_ggaa(T115, T116, X167, X168))
U3_GGAA(T114, T115, T116, X167, X168, le36_out_gg(T114, T116)) → SPLIT51_IN_GGAA(T115, T116, X167, X168)
SPLIT51_IN_GGAA(.(T129, T130), T131, X199, .(T129, X200)) → U5_GGAA(T129, T130, T131, X199, X200, gt67_in_gg(T129, T131))
SPLIT51_IN_GGAA(.(T129, T130), T131, X199, .(T129, X200)) → GT67_IN_GG(T129, T131)
GT67_IN_GG(s(T144), s(T145)) → U7_GG(T144, T145, gt67_in_gg(T144, T145))
GT67_IN_GG(s(T144), s(T145)) → GT67_IN_GG(T144, T145)
U5_GGAA(T129, T130, T131, X199, X200, gt67_out_gg(T129, T131)) → U6_GGAA(T129, T130, T131, X199, X200, split51_in_ggaa(T130, T131, X199, X200))
U5_GGAA(T129, T130, T131, X199, X200, gt67_out_gg(T129, T131)) → SPLIT51_IN_GGAA(T130, T131, X199, X200)
U24_GA(T69, T67, T68, T9, le36_out_gg(T67, T69)) → U26_GA(T69, T67, T68, T9, split51_in_ggaa(T68, T69, T93, T94))
U26_GA(T69, T67, T68, T9, split51_out_ggaa(T68, T69, T93, T94)) → U27_GA(T69, T67, T68, T9, qsort1_in_aa(.(T67, T93), X12))
U26_GA(T69, T67, T68, T9, split51_out_ggaa(T68, T69, T93, T94)) → QSORT1_IN_AA(.(T67, T93), X12)
QSORT1_IN_AA(.(T14, []), T9) → U19_AA(T14, T9, qsort14_in_a(X12))
QSORT1_IN_AA(.(T14, []), T9) → QSORT14_IN_A(X12)
QSORT1_IN_AA(.(T14, []), T9) → U20_AA(T14, T9, qsort14_in_a(T17))
U20_AA(T14, T9, qsort14_out_a(T17)) → U21_AA(T14, T9, qsort14_in_a(X13))
U20_AA(T14, T9, qsort14_out_a(T17)) → QSORT14_IN_A(X13)
U20_AA(T14, T9, qsort14_out_a(T17)) → U22_AA(T14, T9, T17, qsort14_in_a(T20))
U22_AA(T14, T9, T17, qsort14_out_a(T20)) → U23_AA(T14, T9, append23_in_gaga(T17, T14, T20, T9))
U22_AA(T14, T9, T17, qsort14_out_a(T20)) → APPEND23_IN_GAGA(T17, T14, T20, T9)
APPEND23_IN_GAGA(.(T45, T46), T47, T48, .(T45, T50)) → U1_GAGA(T45, T46, T47, T48, T50, append23_in_gaga(T46, T47, T48, T50))
APPEND23_IN_GAGA(.(T45, T46), T47, T48, .(T45, T50)) → APPEND23_IN_GAGA(T46, T47, T48, T50)
QSORT1_IN_AA(.(T69, .(T67, T68)), T9) → U24_AA(T69, T67, T68, T9, le36_in_aa(T67, T69))
QSORT1_IN_AA(.(T69, .(T67, T68)), T9) → LE36_IN_AA(T67, T69)
LE36_IN_AA(s(T82), s(T83)) → U2_AA(T82, T83, le36_in_aa(T82, T83))
LE36_IN_AA(s(T82), s(T83)) → LE36_IN_AA(T82, T83)
U24_AA(T69, T67, T68, T9, le36_out_aa(T67, T69)) → U25_AA(T69, T67, T68, T9, split51_in_aaaa(T68, T69, X93, X94))
U24_AA(T69, T67, T68, T9, le36_out_aa(T67, T69)) → SPLIT51_IN_AAAA(T68, T69, X93, X94)
SPLIT51_IN_AAAA(.(T114, T115), T116, .(T114, X167), X168) → U3_AAAA(T114, T115, T116, X167, X168, le36_in_aa(T114, T116))
SPLIT51_IN_AAAA(.(T114, T115), T116, .(T114, X167), X168) → LE36_IN_AA(T114, T116)
U3_AAAA(T114, T115, T116, X167, X168, le36_out_aa(T114, T116)) → U4_AAAA(T114, T115, T116, X167, X168, split51_in_aaaa(T115, T116, X167, X168))
U3_AAAA(T114, T115, T116, X167, X168, le36_out_aa(T114, T116)) → SPLIT51_IN_AAAA(T115, T116, X167, X168)
SPLIT51_IN_AAAA(.(T129, T130), T131, X199, .(T129, X200)) → U5_AAAA(T129, T130, T131, X199, X200, gt67_in_aa(T129, T131))
SPLIT51_IN_AAAA(.(T129, T130), T131, X199, .(T129, X200)) → GT67_IN_AA(T129, T131)
GT67_IN_AA(s(T144), s(T145)) → U7_AA(T144, T145, gt67_in_aa(T144, T145))
GT67_IN_AA(s(T144), s(T145)) → GT67_IN_AA(T144, T145)
U5_AAAA(T129, T130, T131, X199, X200, gt67_out_aa(T129, T131)) → U6_AAAA(T129, T130, T131, X199, X200, split51_in_agaa(T130, T131, X199, X200))
U5_AAAA(T129, T130, T131, X199, X200, gt67_out_aa(T129, T131)) → SPLIT51_IN_AGAA(T130, T131, X199, X200)
SPLIT51_IN_AGAA(.(T114, T115), T116, .(T114, X167), X168) → U3_AGAA(T114, T115, T116, X167, X168, le36_in_ag(T114, T116))
SPLIT51_IN_AGAA(.(T114, T115), T116, .(T114, X167), X168) → LE36_IN_AG(T114, T116)
LE36_IN_AG(s(T82), s(T83)) → U2_AG(T82, T83, le36_in_ag(T82, T83))
LE36_IN_AG(s(T82), s(T83)) → LE36_IN_AG(T82, T83)
U3_AGAA(T114, T115, T116, X167, X168, le36_out_ag(T114, T116)) → U4_AGAA(T114, T115, T116, X167, X168, split51_in_agaa(T115, T116, X167, X168))
U3_AGAA(T114, T115, T116, X167, X168, le36_out_ag(T114, T116)) → SPLIT51_IN_AGAA(T115, T116, X167, X168)
SPLIT51_IN_AGAA(.(T129, T130), T131, X199, .(T129, X200)) → U5_AGAA(T129, T130, T131, X199, X200, gt67_in_ag(T129, T131))
SPLIT51_IN_AGAA(.(T129, T130), T131, X199, .(T129, X200)) → GT67_IN_AG(T129, T131)
GT67_IN_AG(s(T144), s(T145)) → U7_AG(T144, T145, gt67_in_ag(T144, T145))
GT67_IN_AG(s(T144), s(T145)) → GT67_IN_AG(T144, T145)
U5_AGAA(T129, T130, T131, X199, X200, gt67_out_ag(T129, T131)) → U6_AGAA(T129, T130, T131, X199, X200, split51_in_agaa(T130, T131, X199, X200))
U5_AGAA(T129, T130, T131, X199, X200, gt67_out_ag(T129, T131)) → SPLIT51_IN_AGAA(T130, T131, X199, X200)
U24_AA(T69, T67, T68, T9, le36_out_aa(T67, T69)) → U26_AA(T69, T67, T68, T9, split51_in_aaaa(T68, T69, T93, T94))
U26_AA(T69, T67, T68, T9, split51_out_aaaa(T68, T69, T93, T94)) → U27_AA(T69, T67, T68, T9, qsort1_in_aa(.(T67, T93), X12))
U26_AA(T69, T67, T68, T9, split51_out_aaaa(T68, T69, T93, T94)) → QSORT1_IN_AA(.(T67, T93), X12)
QSORT1_IN_AA(.(T215, .(T213, T214)), T9) → U30_AA(T215, T213, T214, T9, gt67_in_aa(T213, T215))
QSORT1_IN_AA(.(T215, .(T213, T214)), T9) → GT67_IN_AA(T213, T215)
U30_AA(T215, T213, T214, T9, gt67_out_aa(T213, T215)) → U31_AA(T215, T213, T214, T9, split51_in_agaa(T214, T215, X323, X324))
U30_AA(T215, T213, T214, T9, gt67_out_aa(T213, T215)) → SPLIT51_IN_AGAA(T214, T215, X323, X324)
U30_AA(T215, T213, T214, T9, gt67_out_aa(T213, T215)) → U32_AA(T215, T213, T214, T9, split51_in_agaa(T214, T215, T222, T223))
U32_AA(T215, T213, T214, T9, split51_out_agaa(T214, T215, T222, T223)) → U33_AA(T215, T213, T214, T9, qsort79_in_aa(T222, X12))
U32_AA(T215, T213, T214, T9, split51_out_agaa(T214, T215, T222, T223)) → QSORT79_IN_AA(T222, X12)
QSORT79_IN_AA(.(T163, T164), X265) → U8_AA(T163, T164, X265, split51_in_aaaa(T164, T163, X261, X262))
QSORT79_IN_AA(.(T163, T164), X265) → SPLIT51_IN_AAAA(T164, T163, X261, X262)
QSORT79_IN_AA(.(T163, T164), X265) → U9_AA(T163, T164, X265, split51_in_aaaa(T164, T163, T167, T168))
U9_AA(T163, T164, X265, split51_out_aaaa(T164, T163, T167, T168)) → U10_AA(T163, T164, X265, qsort79_in_aa(T167, X263))
U9_AA(T163, T164, X265, split51_out_aaaa(T164, T163, T167, T168)) → QSORT79_IN_AA(T167, X263)
U9_AA(T163, T164, X265, split51_out_aaaa(T164, T163, T167, T168)) → U11_AA(T163, T164, X265, T168, qsort79_in_aa(T167, T171))
U11_AA(T163, T164, X265, T168, qsort79_out_aa(T167, T171)) → U12_AA(T163, T164, X265, qsort79_in_aa(T168, X264))
U11_AA(T163, T164, X265, T168, qsort79_out_aa(T167, T171)) → QSORT79_IN_AA(T168, X264)
U11_AA(T163, T164, X265, T168, qsort79_out_aa(T167, T171)) → U13_AA(T163, T164, X265, T171, qsort79_in_aa(T168, T172))
U13_AA(T163, T164, X265, T171, qsort79_out_aa(T168, T172)) → U14_AA(T163, T164, X265, append94_in_aaaa(T171, T163, T172, X265))
U13_AA(T163, T164, X265, T171, qsort79_out_aa(T168, T172)) → APPEND94_IN_AAAA(T171, T163, T172, X265)
APPEND94_IN_AAAA(.(T195, T196), T197, T198, .(T195, X295)) → U15_AAAA(T195, T196, T197, T198, X295, append94_in_aaaa(T196, T197, T198, X295))
APPEND94_IN_AAAA(.(T195, T196), T197, T198, .(T195, X295)) → APPEND94_IN_AAAA(T196, T197, T198, X295)
U32_AA(T215, T213, T214, T9, split51_out_agaa(T214, T215, T222, T223)) → U34_AA(T215, T213, T214, T9, T223, qsort79_in_aa(T222, T226))
U34_AA(T215, T213, T214, T9, T223, qsort79_out_aa(T222, T226)) → U35_AA(T215, T213, T214, T9, p78_in_aaaga(.(T213, T223), X13, T226, T215, T9))
U34_AA(T215, T213, T214, T9, T223, qsort79_out_aa(T222, T226)) → P78_IN_AAAGA(.(T213, T223), X13, T226, T215, T9)
P78_IN_AAAGA(T94, X13, T155, T69, T9) → U16_AAAGA(T94, X13, T155, T69, T9, qsort79_in_aa(T94, X13))
P78_IN_AAAGA(T94, X13, T155, T69, T9) → QSORT79_IN_AA(T94, X13)
P78_IN_AAAGA(T94, T158, T155, T69, T9) → U17_AAAGA(T94, T158, T155, T69, T9, qsort79_in_aa(T94, T158))
U17_AAAGA(T94, T158, T155, T69, T9, qsort79_out_aa(T94, T158)) → U18_AAAGA(T94, T158, T155, T69, T9, append23_in_agaa(T155, T69, T158, T9))
U17_AAAGA(T94, T158, T155, T69, T9, qsort79_out_aa(T94, T158)) → APPEND23_IN_AGAA(T155, T69, T158, T9)
APPEND23_IN_AGAA(.(T45, T46), T47, T48, .(T45, T50)) → U1_AGAA(T45, T46, T47, T48, T50, append23_in_agaa(T46, T47, T48, T50))
APPEND23_IN_AGAA(.(T45, T46), T47, T48, .(T45, T50)) → APPEND23_IN_AGAA(T46, T47, T48, T50)
U26_AA(T69, T67, T68, T9, split51_out_aaaa(T68, T69, T93, T94)) → U28_AA(T69, T67, T68, T9, T94, qsort1_in_aa(.(T67, T93), T155))
U28_AA(T69, T67, T68, T9, T94, qsort1_out_aa(.(T67, T93), T155)) → U29_AA(T69, T67, T68, T9, p78_in_aaaaa(T94, X13, T155, T69, T9))
U28_AA(T69, T67, T68, T9, T94, qsort1_out_aa(.(T67, T93), T155)) → P78_IN_AAAAA(T94, X13, T155, T69, T9)
P78_IN_AAAAA(T94, X13, T155, T69, T9) → U16_AAAAA(T94, X13, T155, T69, T9, qsort79_in_aa(T94, X13))
P78_IN_AAAAA(T94, X13, T155, T69, T9) → QSORT79_IN_AA(T94, X13)
P78_IN_AAAAA(T94, T158, T155, T69, T9) → U17_AAAAA(T94, T158, T155, T69, T9, qsort79_in_aa(T94, T158))
U17_AAAAA(T94, T158, T155, T69, T9, qsort79_out_aa(T94, T158)) → U18_AAAAA(T94, T158, T155, T69, T9, append23_in_aaaa(T155, T69, T158, T9))
U17_AAAAA(T94, T158, T155, T69, T9, qsort79_out_aa(T94, T158)) → APPEND23_IN_AAAA(T155, T69, T158, T9)
APPEND23_IN_AAAA(.(T45, T46), T47, T48, .(T45, T50)) → U1_AAAA(T45, T46, T47, T48, T50, append23_in_aaaa(T46, T47, T48, T50))
APPEND23_IN_AAAA(.(T45, T46), T47, T48, .(T45, T50)) → APPEND23_IN_AAAA(T46, T47, T48, T50)
U26_GA(T69, T67, T68, T9, split51_out_ggaa(T68, T69, T93, T94)) → U28_GA(T69, T67, T68, T9, T94, qsort1_in_aa(.(T67, T93), T155))
U28_GA(T69, T67, T68, T9, T94, qsort1_out_aa(.(T67, T93), T155)) → U29_GA(T69, T67, T68, T9, p78_in_aaaga(T94, X13, T155, T69, T9))
U28_GA(T69, T67, T68, T9, T94, qsort1_out_aa(.(T67, T93), T155)) → P78_IN_AAAGA(T94, X13, T155, T69, T9)
QSORT1_IN_GA(.(T215, .(T213, T214)), T9) → U30_GA(T215, T213, T214, T9, gt67_in_gg(T213, T215))
QSORT1_IN_GA(.(T215, .(T213, T214)), T9) → GT67_IN_GG(T213, T215)
U30_GA(T215, T213, T214, T9, gt67_out_gg(T213, T215)) → U31_GA(T215, T213, T214, T9, split51_in_ggaa(T214, T215, X323, X324))
U30_GA(T215, T213, T214, T9, gt67_out_gg(T213, T215)) → SPLIT51_IN_GGAA(T214, T215, X323, X324)
U30_GA(T215, T213, T214, T9, gt67_out_gg(T213, T215)) → U32_GA(T215, T213, T214, T9, split51_in_ggaa(T214, T215, T222, T223))
U32_GA(T215, T213, T214, T9, split51_out_ggaa(T214, T215, T222, T223)) → U33_GA(T215, T213, T214, T9, qsort79_in_aa(T222, X12))
U32_GA(T215, T213, T214, T9, split51_out_ggaa(T214, T215, T222, T223)) → QSORT79_IN_AA(T222, X12)
U32_GA(T215, T213, T214, T9, split51_out_ggaa(T214, T215, T222, T223)) → U34_GA(T215, T213, T214, T9, T223, qsort79_in_aa(T222, T226))
U34_GA(T215, T213, T214, T9, T223, qsort79_out_aa(T222, T226)) → U35_GA(T215, T213, T214, T9, p78_in_aaaga(.(T213, T223), X13, T226, T215, T9))
U34_GA(T215, T213, T214, T9, T223, qsort79_out_aa(T222, T226)) → P78_IN_AAAGA(.(T213, T223), X13, T226, T215, T9)
qsort1_in_ga([], []) → qsort1_out_ga([], [])
qsort1_in_ga(.(T14, []), T9) → U19_ga(T14, T9, qsort14_in_a(X12))
qsort14_in_a([]) → qsort14_out_a([])
U19_ga(T14, T9, qsort14_out_a(X12)) → qsort1_out_ga(.(T14, []), T9)
qsort1_in_ga(.(T14, []), T9) → U20_ga(T14, T9, qsort14_in_a(T17))
U20_ga(T14, T9, qsort14_out_a(T17)) → U21_ga(T14, T9, qsort14_in_a(X13))
U21_ga(T14, T9, qsort14_out_a(X13)) → qsort1_out_ga(.(T14, []), T9)
U20_ga(T14, T9, qsort14_out_a(T17)) → U22_ga(T14, T9, T17, qsort14_in_a(T20))
U22_ga(T14, T9, T17, qsort14_out_a(T20)) → U23_ga(T14, T9, append23_in_ggga(T17, T14, T20, T9))
append23_in_ggga([], T33, T34, .(T33, T34)) → append23_out_ggga([], T33, T34, .(T33, T34))
append23_in_ggga(.(T45, T46), T47, T48, .(T45, T50)) → U1_ggga(T45, T46, T47, T48, T50, append23_in_ggga(T46, T47, T48, T50))
U1_ggga(T45, T46, T47, T48, T50, append23_out_ggga(T46, T47, T48, T50)) → append23_out_ggga(.(T45, T46), T47, T48, .(T45, T50))
U23_ga(T14, T9, append23_out_ggga(T17, T14, T20, T9)) → qsort1_out_ga(.(T14, []), T9)
qsort1_in_ga(.(T69, .(T67, T68)), T9) → U24_ga(T69, T67, T68, T9, le36_in_gg(T67, T69))
le36_in_gg(s(T82), s(T83)) → U2_gg(T82, T83, le36_in_gg(T82, T83))
le36_in_gg(0, s(T90)) → le36_out_gg(0, s(T90))
le36_in_gg(0, 0) → le36_out_gg(0, 0)
U2_gg(T82, T83, le36_out_gg(T82, T83)) → le36_out_gg(s(T82), s(T83))
U24_ga(T69, T67, T68, T9, le36_out_gg(T67, T69)) → qsort1_out_ga(.(T69, .(T67, T68)), T9)
U24_ga(T69, T67, T68, T9, le36_out_gg(T67, T69)) → U25_ga(T69, T67, T68, T9, split51_in_ggaa(T68, T69, X93, X94))
split51_in_ggaa([], T101, [], []) → split51_out_ggaa([], T101, [], [])
split51_in_ggaa(.(T114, T115), T116, .(T114, X167), X168) → U3_ggaa(T114, T115, T116, X167, X168, le36_in_gg(T114, T116))
U3_ggaa(T114, T115, T116, X167, X168, le36_out_gg(T114, T116)) → split51_out_ggaa(.(T114, T115), T116, .(T114, X167), X168)
U3_ggaa(T114, T115, T116, X167, X168, le36_out_gg(T114, T116)) → U4_ggaa(T114, T115, T116, X167, X168, split51_in_ggaa(T115, T116, X167, X168))
split51_in_ggaa(.(T129, T130), T131, X199, .(T129, X200)) → U5_ggaa(T129, T130, T131, X199, X200, gt67_in_gg(T129, T131))
gt67_in_gg(s(T144), s(T145)) → U7_gg(T144, T145, gt67_in_gg(T144, T145))
gt67_in_gg(s(T150), 0) → gt67_out_gg(s(T150), 0)
U7_gg(T144, T145, gt67_out_gg(T144, T145)) → gt67_out_gg(s(T144), s(T145))
U5_ggaa(T129, T130, T131, X199, X200, gt67_out_gg(T129, T131)) → split51_out_ggaa(.(T129, T130), T131, X199, .(T129, X200))
U5_ggaa(T129, T130, T131, X199, X200, gt67_out_gg(T129, T131)) → U6_ggaa(T129, T130, T131, X199, X200, split51_in_ggaa(T130, T131, X199, X200))
U6_ggaa(T129, T130, T131, X199, X200, split51_out_ggaa(T130, T131, X199, X200)) → split51_out_ggaa(.(T129, T130), T131, X199, .(T129, X200))
U4_ggaa(T114, T115, T116, X167, X168, split51_out_ggaa(T115, T116, X167, X168)) → split51_out_ggaa(.(T114, T115), T116, .(T114, X167), X168)
U25_ga(T69, T67, T68, T9, split51_out_ggaa(T68, T69, X93, X94)) → qsort1_out_ga(.(T69, .(T67, T68)), T9)
U24_ga(T69, T67, T68, T9, le36_out_gg(T67, T69)) → U26_ga(T69, T67, T68, T9, split51_in_ggaa(T68, T69, T93, T94))
U26_ga(T69, T67, T68, T9, split51_out_ggaa(T68, T69, T93, T94)) → U27_ga(T69, T67, T68, T9, qsort1_in_aa(.(T67, T93), X12))
qsort1_in_aa([], []) → qsort1_out_aa([], [])
qsort1_in_aa(.(T14, []), T9) → U19_aa(T14, T9, qsort14_in_a(X12))
U19_aa(T14, T9, qsort14_out_a(X12)) → qsort1_out_aa(.(T14, []), T9)
qsort1_in_aa(.(T14, []), T9) → U20_aa(T14, T9, qsort14_in_a(T17))
U20_aa(T14, T9, qsort14_out_a(T17)) → U21_aa(T14, T9, qsort14_in_a(X13))
U21_aa(T14, T9, qsort14_out_a(X13)) → qsort1_out_aa(.(T14, []), T9)
U20_aa(T14, T9, qsort14_out_a(T17)) → U22_aa(T14, T9, T17, qsort14_in_a(T20))
U22_aa(T14, T9, T17, qsort14_out_a(T20)) → U23_aa(T14, T9, append23_in_gaga(T17, T14, T20, T9))
append23_in_gaga([], T33, T34, .(T33, T34)) → append23_out_gaga([], T33, T34, .(T33, T34))
append23_in_gaga(.(T45, T46), T47, T48, .(T45, T50)) → U1_gaga(T45, T46, T47, T48, T50, append23_in_gaga(T46, T47, T48, T50))
U1_gaga(T45, T46, T47, T48, T50, append23_out_gaga(T46, T47, T48, T50)) → append23_out_gaga(.(T45, T46), T47, T48, .(T45, T50))
U23_aa(T14, T9, append23_out_gaga(T17, T14, T20, T9)) → qsort1_out_aa(.(T14, []), T9)
qsort1_in_aa(.(T69, .(T67, T68)), T9) → U24_aa(T69, T67, T68, T9, le36_in_aa(T67, T69))
le36_in_aa(s(T82), s(T83)) → U2_aa(T82, T83, le36_in_aa(T82, T83))
le36_in_aa(0, s(T90)) → le36_out_aa(0, s(T90))
le36_in_aa(0, 0) → le36_out_aa(0, 0)
U2_aa(T82, T83, le36_out_aa(T82, T83)) → le36_out_aa(s(T82), s(T83))
U24_aa(T69, T67, T68, T9, le36_out_aa(T67, T69)) → qsort1_out_aa(.(T69, .(T67, T68)), T9)
U24_aa(T69, T67, T68, T9, le36_out_aa(T67, T69)) → U25_aa(T69, T67, T68, T9, split51_in_aaaa(T68, T69, X93, X94))
split51_in_aaaa([], T101, [], []) → split51_out_aaaa([], T101, [], [])
split51_in_aaaa(.(T114, T115), T116, .(T114, X167), X168) → U3_aaaa(T114, T115, T116, X167, X168, le36_in_aa(T114, T116))
U3_aaaa(T114, T115, T116, X167, X168, le36_out_aa(T114, T116)) → split51_out_aaaa(.(T114, T115), T116, .(T114, X167), X168)
U3_aaaa(T114, T115, T116, X167, X168, le36_out_aa(T114, T116)) → U4_aaaa(T114, T115, T116, X167, X168, split51_in_aaaa(T115, T116, X167, X168))
split51_in_aaaa(.(T129, T130), T131, X199, .(T129, X200)) → U5_aaaa(T129, T130, T131, X199, X200, gt67_in_aa(T129, T131))
gt67_in_aa(s(T144), s(T145)) → U7_aa(T144, T145, gt67_in_aa(T144, T145))
gt67_in_aa(s(T150), 0) → gt67_out_aa(s(T150), 0)
U7_aa(T144, T145, gt67_out_aa(T144, T145)) → gt67_out_aa(s(T144), s(T145))
U5_aaaa(T129, T130, T131, X199, X200, gt67_out_aa(T129, T131)) → split51_out_aaaa(.(T129, T130), T131, X199, .(T129, X200))
U5_aaaa(T129, T130, T131, X199, X200, gt67_out_aa(T129, T131)) → U6_aaaa(T129, T130, T131, X199, X200, split51_in_agaa(T130, T131, X199, X200))
split51_in_agaa([], T101, [], []) → split51_out_agaa([], T101, [], [])
split51_in_agaa(.(T114, T115), T116, .(T114, X167), X168) → U3_agaa(T114, T115, T116, X167, X168, le36_in_ag(T114, T116))
le36_in_ag(s(T82), s(T83)) → U2_ag(T82, T83, le36_in_ag(T82, T83))
le36_in_ag(0, s(T90)) → le36_out_ag(0, s(T90))
le36_in_ag(0, 0) → le36_out_ag(0, 0)
U2_ag(T82, T83, le36_out_ag(T82, T83)) → le36_out_ag(s(T82), s(T83))
U3_agaa(T114, T115, T116, X167, X168, le36_out_ag(T114, T116)) → split51_out_agaa(.(T114, T115), T116, .(T114, X167), X168)
U3_agaa(T114, T115, T116, X167, X168, le36_out_ag(T114, T116)) → U4_agaa(T114, T115, T116, X167, X168, split51_in_agaa(T115, T116, X167, X168))
split51_in_agaa(.(T129, T130), T131, X199, .(T129, X200)) → U5_agaa(T129, T130, T131, X199, X200, gt67_in_ag(T129, T131))
gt67_in_ag(s(T144), s(T145)) → U7_ag(T144, T145, gt67_in_ag(T144, T145))
gt67_in_ag(s(T150), 0) → gt67_out_ag(s(T150), 0)
U7_ag(T144, T145, gt67_out_ag(T144, T145)) → gt67_out_ag(s(T144), s(T145))
U5_agaa(T129, T130, T131, X199, X200, gt67_out_ag(T129, T131)) → split51_out_agaa(.(T129, T130), T131, X199, .(T129, X200))
U5_agaa(T129, T130, T131, X199, X200, gt67_out_ag(T129, T131)) → U6_agaa(T129, T130, T131, X199, X200, split51_in_agaa(T130, T131, X199, X200))
U6_agaa(T129, T130, T131, X199, X200, split51_out_agaa(T130, T131, X199, X200)) → split51_out_agaa(.(T129, T130), T131, X199, .(T129, X200))
U4_agaa(T114, T115, T116, X167, X168, split51_out_agaa(T115, T116, X167, X168)) → split51_out_agaa(.(T114, T115), T116, .(T114, X167), X168)
U6_aaaa(T129, T130, T131, X199, X200, split51_out_agaa(T130, T131, X199, X200)) → split51_out_aaaa(.(T129, T130), T131, X199, .(T129, X200))
U4_aaaa(T114, T115, T116, X167, X168, split51_out_aaaa(T115, T116, X167, X168)) → split51_out_aaaa(.(T114, T115), T116, .(T114, X167), X168)
U25_aa(T69, T67, T68, T9, split51_out_aaaa(T68, T69, X93, X94)) → qsort1_out_aa(.(T69, .(T67, T68)), T9)
U24_aa(T69, T67, T68, T9, le36_out_aa(T67, T69)) → U26_aa(T69, T67, T68, T9, split51_in_aaaa(T68, T69, T93, T94))
U26_aa(T69, T67, T68, T9, split51_out_aaaa(T68, T69, T93, T94)) → U27_aa(T69, T67, T68, T9, qsort1_in_aa(.(T67, T93), X12))
qsort1_in_aa(.(T215, .(T213, T214)), T9) → U30_aa(T215, T213, T214, T9, gt67_in_aa(T213, T215))
U30_aa(T215, T213, T214, T9, gt67_out_aa(T213, T215)) → qsort1_out_aa(.(T215, .(T213, T214)), T9)
U30_aa(T215, T213, T214, T9, gt67_out_aa(T213, T215)) → U31_aa(T215, T213, T214, T9, split51_in_agaa(T214, T215, X323, X324))
U31_aa(T215, T213, T214, T9, split51_out_agaa(T214, T215, X323, X324)) → qsort1_out_aa(.(T215, .(T213, T214)), T9)
U30_aa(T215, T213, T214, T9, gt67_out_aa(T213, T215)) → U32_aa(T215, T213, T214, T9, split51_in_agaa(T214, T215, T222, T223))
U32_aa(T215, T213, T214, T9, split51_out_agaa(T214, T215, T222, T223)) → U33_aa(T215, T213, T214, T9, qsort79_in_aa(T222, X12))
qsort79_in_aa([], []) → qsort79_out_aa([], [])
qsort79_in_aa(.(T163, T164), X265) → U8_aa(T163, T164, X265, split51_in_aaaa(T164, T163, X261, X262))
U8_aa(T163, T164, X265, split51_out_aaaa(T164, T163, X261, X262)) → qsort79_out_aa(.(T163, T164), X265)
qsort79_in_aa(.(T163, T164), X265) → U9_aa(T163, T164, X265, split51_in_aaaa(T164, T163, T167, T168))
U9_aa(T163, T164, X265, split51_out_aaaa(T164, T163, T167, T168)) → U10_aa(T163, T164, X265, qsort79_in_aa(T167, X263))
U10_aa(T163, T164, X265, qsort79_out_aa(T167, X263)) → qsort79_out_aa(.(T163, T164), X265)
U9_aa(T163, T164, X265, split51_out_aaaa(T164, T163, T167, T168)) → U11_aa(T163, T164, X265, T168, qsort79_in_aa(T167, T171))
U11_aa(T163, T164, X265, T168, qsort79_out_aa(T167, T171)) → U12_aa(T163, T164, X265, qsort79_in_aa(T168, X264))
U12_aa(T163, T164, X265, qsort79_out_aa(T168, X264)) → qsort79_out_aa(.(T163, T164), X265)
U11_aa(T163, T164, X265, T168, qsort79_out_aa(T167, T171)) → U13_aa(T163, T164, X265, T171, qsort79_in_aa(T168, T172))
U13_aa(T163, T164, X265, T171, qsort79_out_aa(T168, T172)) → U14_aa(T163, T164, X265, append94_in_aaaa(T171, T163, T172, X265))
append94_in_aaaa([], T185, T186, .(T185, T186)) → append94_out_aaaa([], T185, T186, .(T185, T186))
append94_in_aaaa(.(T195, T196), T197, T198, .(T195, X295)) → U15_aaaa(T195, T196, T197, T198, X295, append94_in_aaaa(T196, T197, T198, X295))
U15_aaaa(T195, T196, T197, T198, X295, append94_out_aaaa(T196, T197, T198, X295)) → append94_out_aaaa(.(T195, T196), T197, T198, .(T195, X295))
U14_aa(T163, T164, X265, append94_out_aaaa(T171, T163, T172, X265)) → qsort79_out_aa(.(T163, T164), X265)
U33_aa(T215, T213, T214, T9, qsort79_out_aa(T222, X12)) → qsort1_out_aa(.(T215, .(T213, T214)), T9)
U32_aa(T215, T213, T214, T9, split51_out_agaa(T214, T215, T222, T223)) → U34_aa(T215, T213, T214, T9, T223, qsort79_in_aa(T222, T226))
U34_aa(T215, T213, T214, T9, T223, qsort79_out_aa(T222, T226)) → U35_aa(T215, T213, T214, T9, p78_in_aaaga(.(T213, T223), X13, T226, T215, T9))
p78_in_aaaga(T94, X13, T155, T69, T9) → U16_aaaga(T94, X13, T155, T69, T9, qsort79_in_aa(T94, X13))
U16_aaaga(T94, X13, T155, T69, T9, qsort79_out_aa(T94, X13)) → p78_out_aaaga(T94, X13, T155, T69, T9)
p78_in_aaaga(T94, T158, T155, T69, T9) → U17_aaaga(T94, T158, T155, T69, T9, qsort79_in_aa(T94, T158))
U17_aaaga(T94, T158, T155, T69, T9, qsort79_out_aa(T94, T158)) → U18_aaaga(T94, T158, T155, T69, T9, append23_in_agaa(T155, T69, T158, T9))
append23_in_agaa([], T33, T34, .(T33, T34)) → append23_out_agaa([], T33, T34, .(T33, T34))
append23_in_agaa(.(T45, T46), T47, T48, .(T45, T50)) → U1_agaa(T45, T46, T47, T48, T50, append23_in_agaa(T46, T47, T48, T50))
U1_agaa(T45, T46, T47, T48, T50, append23_out_agaa(T46, T47, T48, T50)) → append23_out_agaa(.(T45, T46), T47, T48, .(T45, T50))
U18_aaaga(T94, T158, T155, T69, T9, append23_out_agaa(T155, T69, T158, T9)) → p78_out_aaaga(T94, T158, T155, T69, T9)
U35_aa(T215, T213, T214, T9, p78_out_aaaga(.(T213, T223), X13, T226, T215, T9)) → qsort1_out_aa(.(T215, .(T213, T214)), T9)
U27_aa(T69, T67, T68, T9, qsort1_out_aa(.(T67, T93), X12)) → qsort1_out_aa(.(T69, .(T67, T68)), T9)
U26_aa(T69, T67, T68, T9, split51_out_aaaa(T68, T69, T93, T94)) → U28_aa(T69, T67, T68, T9, T94, qsort1_in_aa(.(T67, T93), T155))
U28_aa(T69, T67, T68, T9, T94, qsort1_out_aa(.(T67, T93), T155)) → U29_aa(T69, T67, T68, T9, p78_in_aaaaa(T94, X13, T155, T69, T9))
p78_in_aaaaa(T94, X13, T155, T69, T9) → U16_aaaaa(T94, X13, T155, T69, T9, qsort79_in_aa(T94, X13))
U16_aaaaa(T94, X13, T155, T69, T9, qsort79_out_aa(T94, X13)) → p78_out_aaaaa(T94, X13, T155, T69, T9)
p78_in_aaaaa(T94, T158, T155, T69, T9) → U17_aaaaa(T94, T158, T155, T69, T9, qsort79_in_aa(T94, T158))
U17_aaaaa(T94, T158, T155, T69, T9, qsort79_out_aa(T94, T158)) → U18_aaaaa(T94, T158, T155, T69, T9, append23_in_aaaa(T155, T69, T158, T9))
append23_in_aaaa([], T33, T34, .(T33, T34)) → append23_out_aaaa([], T33, T34, .(T33, T34))
append23_in_aaaa(.(T45, T46), T47, T48, .(T45, T50)) → U1_aaaa(T45, T46, T47, T48, T50, append23_in_aaaa(T46, T47, T48, T50))
U1_aaaa(T45, T46, T47, T48, T50, append23_out_aaaa(T46, T47, T48, T50)) → append23_out_aaaa(.(T45, T46), T47, T48, .(T45, T50))
U18_aaaaa(T94, T158, T155, T69, T9, append23_out_aaaa(T155, T69, T158, T9)) → p78_out_aaaaa(T94, T158, T155, T69, T9)
U29_aa(T69, T67, T68, T9, p78_out_aaaaa(T94, X13, T155, T69, T9)) → qsort1_out_aa(.(T69, .(T67, T68)), T9)
U27_ga(T69, T67, T68, T9, qsort1_out_aa(.(T67, T93), X12)) → qsort1_out_ga(.(T69, .(T67, T68)), T9)
U26_ga(T69, T67, T68, T9, split51_out_ggaa(T68, T69, T93, T94)) → U28_ga(T69, T67, T68, T9, T94, qsort1_in_aa(.(T67, T93), T155))
U28_ga(T69, T67, T68, T9, T94, qsort1_out_aa(.(T67, T93), T155)) → U29_ga(T69, T67, T68, T9, p78_in_aaaga(T94, X13, T155, T69, T9))
U29_ga(T69, T67, T68, T9, p78_out_aaaga(T94, X13, T155, T69, T9)) → qsort1_out_ga(.(T69, .(T67, T68)), T9)
qsort1_in_ga(.(T215, .(T213, T214)), T9) → U30_ga(T215, T213, T214, T9, gt67_in_gg(T213, T215))
U30_ga(T215, T213, T214, T9, gt67_out_gg(T213, T215)) → qsort1_out_ga(.(T215, .(T213, T214)), T9)
U30_ga(T215, T213, T214, T9, gt67_out_gg(T213, T215)) → U31_ga(T215, T213, T214, T9, split51_in_ggaa(T214, T215, X323, X324))
U31_ga(T215, T213, T214, T9, split51_out_ggaa(T214, T215, X323, X324)) → qsort1_out_ga(.(T215, .(T213, T214)), T9)
U30_ga(T215, T213, T214, T9, gt67_out_gg(T213, T215)) → U32_ga(T215, T213, T214, T9, split51_in_ggaa(T214, T215, T222, T223))
U32_ga(T215, T213, T214, T9, split51_out_ggaa(T214, T215, T222, T223)) → U33_ga(T215, T213, T214, T9, qsort79_in_aa(T222, X12))
U33_ga(T215, T213, T214, T9, qsort79_out_aa(T222, X12)) → qsort1_out_ga(.(T215, .(T213, T214)), T9)
U32_ga(T215, T213, T214, T9, split51_out_ggaa(T214, T215, T222, T223)) → U34_ga(T215, T213, T214, T9, T223, qsort79_in_aa(T222, T226))
U34_ga(T215, T213, T214, T9, T223, qsort79_out_aa(T222, T226)) → U35_ga(T215, T213, T214, T9, p78_in_aaaga(.(T213, T223), X13, T226, T215, T9))
U35_ga(T215, T213, T214, T9, p78_out_aaaga(.(T213, T223), X13, T226, T215, T9)) → qsort1_out_ga(.(T215, .(T213, T214)), T9)
APPEND23_IN_AAAA(.(T45, T46), T47, T48, .(T45, T50)) → APPEND23_IN_AAAA(T46, T47, T48, T50)
qsort1_in_ga([], []) → qsort1_out_ga([], [])
qsort1_in_ga(.(T14, []), T9) → U19_ga(T14, T9, qsort14_in_a(X12))
qsort14_in_a([]) → qsort14_out_a([])
U19_ga(T14, T9, qsort14_out_a(X12)) → qsort1_out_ga(.(T14, []), T9)
qsort1_in_ga(.(T14, []), T9) → U20_ga(T14, T9, qsort14_in_a(T17))
U20_ga(T14, T9, qsort14_out_a(T17)) → U21_ga(T14, T9, qsort14_in_a(X13))
U21_ga(T14, T9, qsort14_out_a(X13)) → qsort1_out_ga(.(T14, []), T9)
U20_ga(T14, T9, qsort14_out_a(T17)) → U22_ga(T14, T9, T17, qsort14_in_a(T20))
U22_ga(T14, T9, T17, qsort14_out_a(T20)) → U23_ga(T14, T9, append23_in_ggga(T17, T14, T20, T9))
append23_in_ggga([], T33, T34, .(T33, T34)) → append23_out_ggga([], T33, T34, .(T33, T34))
append23_in_ggga(.(T45, T46), T47, T48, .(T45, T50)) → U1_ggga(T45, T46, T47, T48, T50, append23_in_ggga(T46, T47, T48, T50))
U1_ggga(T45, T46, T47, T48, T50, append23_out_ggga(T46, T47, T48, T50)) → append23_out_ggga(.(T45, T46), T47, T48, .(T45, T50))
U23_ga(T14, T9, append23_out_ggga(T17, T14, T20, T9)) → qsort1_out_ga(.(T14, []), T9)
qsort1_in_ga(.(T69, .(T67, T68)), T9) → U24_ga(T69, T67, T68, T9, le36_in_gg(T67, T69))
le36_in_gg(s(T82), s(T83)) → U2_gg(T82, T83, le36_in_gg(T82, T83))
le36_in_gg(0, s(T90)) → le36_out_gg(0, s(T90))
le36_in_gg(0, 0) → le36_out_gg(0, 0)
U2_gg(T82, T83, le36_out_gg(T82, T83)) → le36_out_gg(s(T82), s(T83))
U24_ga(T69, T67, T68, T9, le36_out_gg(T67, T69)) → qsort1_out_ga(.(T69, .(T67, T68)), T9)
U24_ga(T69, T67, T68, T9, le36_out_gg(T67, T69)) → U25_ga(T69, T67, T68, T9, split51_in_ggaa(T68, T69, X93, X94))
split51_in_ggaa([], T101, [], []) → split51_out_ggaa([], T101, [], [])
split51_in_ggaa(.(T114, T115), T116, .(T114, X167), X168) → U3_ggaa(T114, T115, T116, X167, X168, le36_in_gg(T114, T116))
U3_ggaa(T114, T115, T116, X167, X168, le36_out_gg(T114, T116)) → split51_out_ggaa(.(T114, T115), T116, .(T114, X167), X168)
U3_ggaa(T114, T115, T116, X167, X168, le36_out_gg(T114, T116)) → U4_ggaa(T114, T115, T116, X167, X168, split51_in_ggaa(T115, T116, X167, X168))
split51_in_ggaa(.(T129, T130), T131, X199, .(T129, X200)) → U5_ggaa(T129, T130, T131, X199, X200, gt67_in_gg(T129, T131))
gt67_in_gg(s(T144), s(T145)) → U7_gg(T144, T145, gt67_in_gg(T144, T145))
gt67_in_gg(s(T150), 0) → gt67_out_gg(s(T150), 0)
U7_gg(T144, T145, gt67_out_gg(T144, T145)) → gt67_out_gg(s(T144), s(T145))
U5_ggaa(T129, T130, T131, X199, X200, gt67_out_gg(T129, T131)) → split51_out_ggaa(.(T129, T130), T131, X199, .(T129, X200))
U5_ggaa(T129, T130, T131, X199, X200, gt67_out_gg(T129, T131)) → U6_ggaa(T129, T130, T131, X199, X200, split51_in_ggaa(T130, T131, X199, X200))
U6_ggaa(T129, T130, T131, X199, X200, split51_out_ggaa(T130, T131, X199, X200)) → split51_out_ggaa(.(T129, T130), T131, X199, .(T129, X200))
U4_ggaa(T114, T115, T116, X167, X168, split51_out_ggaa(T115, T116, X167, X168)) → split51_out_ggaa(.(T114, T115), T116, .(T114, X167), X168)
U25_ga(T69, T67, T68, T9, split51_out_ggaa(T68, T69, X93, X94)) → qsort1_out_ga(.(T69, .(T67, T68)), T9)
U24_ga(T69, T67, T68, T9, le36_out_gg(T67, T69)) → U26_ga(T69, T67, T68, T9, split51_in_ggaa(T68, T69, T93, T94))
U26_ga(T69, T67, T68, T9, split51_out_ggaa(T68, T69, T93, T94)) → U27_ga(T69, T67, T68, T9, qsort1_in_aa(.(T67, T93), X12))
qsort1_in_aa([], []) → qsort1_out_aa([], [])
qsort1_in_aa(.(T14, []), T9) → U19_aa(T14, T9, qsort14_in_a(X12))
U19_aa(T14, T9, qsort14_out_a(X12)) → qsort1_out_aa(.(T14, []), T9)
qsort1_in_aa(.(T14, []), T9) → U20_aa(T14, T9, qsort14_in_a(T17))
U20_aa(T14, T9, qsort14_out_a(T17)) → U21_aa(T14, T9, qsort14_in_a(X13))
U21_aa(T14, T9, qsort14_out_a(X13)) → qsort1_out_aa(.(T14, []), T9)
U20_aa(T14, T9, qsort14_out_a(T17)) → U22_aa(T14, T9, T17, qsort14_in_a(T20))
U22_aa(T14, T9, T17, qsort14_out_a(T20)) → U23_aa(T14, T9, append23_in_gaga(T17, T14, T20, T9))
append23_in_gaga([], T33, T34, .(T33, T34)) → append23_out_gaga([], T33, T34, .(T33, T34))
append23_in_gaga(.(T45, T46), T47, T48, .(T45, T50)) → U1_gaga(T45, T46, T47, T48, T50, append23_in_gaga(T46, T47, T48, T50))
U1_gaga(T45, T46, T47, T48, T50, append23_out_gaga(T46, T47, T48, T50)) → append23_out_gaga(.(T45, T46), T47, T48, .(T45, T50))
U23_aa(T14, T9, append23_out_gaga(T17, T14, T20, T9)) → qsort1_out_aa(.(T14, []), T9)
qsort1_in_aa(.(T69, .(T67, T68)), T9) → U24_aa(T69, T67, T68, T9, le36_in_aa(T67, T69))
le36_in_aa(s(T82), s(T83)) → U2_aa(T82, T83, le36_in_aa(T82, T83))
le36_in_aa(0, s(T90)) → le36_out_aa(0, s(T90))
le36_in_aa(0, 0) → le36_out_aa(0, 0)
U2_aa(T82, T83, le36_out_aa(T82, T83)) → le36_out_aa(s(T82), s(T83))
U24_aa(T69, T67, T68, T9, le36_out_aa(T67, T69)) → qsort1_out_aa(.(T69, .(T67, T68)), T9)
U24_aa(T69, T67, T68, T9, le36_out_aa(T67, T69)) → U25_aa(T69, T67, T68, T9, split51_in_aaaa(T68, T69, X93, X94))
split51_in_aaaa([], T101, [], []) → split51_out_aaaa([], T101, [], [])
split51_in_aaaa(.(T114, T115), T116, .(T114, X167), X168) → U3_aaaa(T114, T115, T116, X167, X168, le36_in_aa(T114, T116))
U3_aaaa(T114, T115, T116, X167, X168, le36_out_aa(T114, T116)) → split51_out_aaaa(.(T114, T115), T116, .(T114, X167), X168)
U3_aaaa(T114, T115, T116, X167, X168, le36_out_aa(T114, T116)) → U4_aaaa(T114, T115, T116, X167, X168, split51_in_aaaa(T115, T116, X167, X168))
split51_in_aaaa(.(T129, T130), T131, X199, .(T129, X200)) → U5_aaaa(T129, T130, T131, X199, X200, gt67_in_aa(T129, T131))
gt67_in_aa(s(T144), s(T145)) → U7_aa(T144, T145, gt67_in_aa(T144, T145))
gt67_in_aa(s(T150), 0) → gt67_out_aa(s(T150), 0)
U7_aa(T144, T145, gt67_out_aa(T144, T145)) → gt67_out_aa(s(T144), s(T145))
U5_aaaa(T129, T130, T131, X199, X200, gt67_out_aa(T129, T131)) → split51_out_aaaa(.(T129, T130), T131, X199, .(T129, X200))
U5_aaaa(T129, T130, T131, X199, X200, gt67_out_aa(T129, T131)) → U6_aaaa(T129, T130, T131, X199, X200, split51_in_agaa(T130, T131, X199, X200))
split51_in_agaa([], T101, [], []) → split51_out_agaa([], T101, [], [])
split51_in_agaa(.(T114, T115), T116, .(T114, X167), X168) → U3_agaa(T114, T115, T116, X167, X168, le36_in_ag(T114, T116))
le36_in_ag(s(T82), s(T83)) → U2_ag(T82, T83, le36_in_ag(T82, T83))
le36_in_ag(0, s(T90)) → le36_out_ag(0, s(T90))
le36_in_ag(0, 0) → le36_out_ag(0, 0)
U2_ag(T82, T83, le36_out_ag(T82, T83)) → le36_out_ag(s(T82), s(T83))
U3_agaa(T114, T115, T116, X167, X168, le36_out_ag(T114, T116)) → split51_out_agaa(.(T114, T115), T116, .(T114, X167), X168)
U3_agaa(T114, T115, T116, X167, X168, le36_out_ag(T114, T116)) → U4_agaa(T114, T115, T116, X167, X168, split51_in_agaa(T115, T116, X167, X168))
split51_in_agaa(.(T129, T130), T131, X199, .(T129, X200)) → U5_agaa(T129, T130, T131, X199, X200, gt67_in_ag(T129, T131))
gt67_in_ag(s(T144), s(T145)) → U7_ag(T144, T145, gt67_in_ag(T144, T145))
gt67_in_ag(s(T150), 0) → gt67_out_ag(s(T150), 0)
U7_ag(T144, T145, gt67_out_ag(T144, T145)) → gt67_out_ag(s(T144), s(T145))
U5_agaa(T129, T130, T131, X199, X200, gt67_out_ag(T129, T131)) → split51_out_agaa(.(T129, T130), T131, X199, .(T129, X200))
U5_agaa(T129, T130, T131, X199, X200, gt67_out_ag(T129, T131)) → U6_agaa(T129, T130, T131, X199, X200, split51_in_agaa(T130, T131, X199, X200))
U6_agaa(T129, T130, T131, X199, X200, split51_out_agaa(T130, T131, X199, X200)) → split51_out_agaa(.(T129, T130), T131, X199, .(T129, X200))
U4_agaa(T114, T115, T116, X167, X168, split51_out_agaa(T115, T116, X167, X168)) → split51_out_agaa(.(T114, T115), T116, .(T114, X167), X168)
U6_aaaa(T129, T130, T131, X199, X200, split51_out_agaa(T130, T131, X199, X200)) → split51_out_aaaa(.(T129, T130), T131, X199, .(T129, X200))
U4_aaaa(T114, T115, T116, X167, X168, split51_out_aaaa(T115, T116, X167, X168)) → split51_out_aaaa(.(T114, T115), T116, .(T114, X167), X168)
U25_aa(T69, T67, T68, T9, split51_out_aaaa(T68, T69, X93, X94)) → qsort1_out_aa(.(T69, .(T67, T68)), T9)
U24_aa(T69, T67, T68, T9, le36_out_aa(T67, T69)) → U26_aa(T69, T67, T68, T9, split51_in_aaaa(T68, T69, T93, T94))
U26_aa(T69, T67, T68, T9, split51_out_aaaa(T68, T69, T93, T94)) → U27_aa(T69, T67, T68, T9, qsort1_in_aa(.(T67, T93), X12))
qsort1_in_aa(.(T215, .(T213, T214)), T9) → U30_aa(T215, T213, T214, T9, gt67_in_aa(T213, T215))
U30_aa(T215, T213, T214, T9, gt67_out_aa(T213, T215)) → qsort1_out_aa(.(T215, .(T213, T214)), T9)
U30_aa(T215, T213, T214, T9, gt67_out_aa(T213, T215)) → U31_aa(T215, T213, T214, T9, split51_in_agaa(T214, T215, X323, X324))
U31_aa(T215, T213, T214, T9, split51_out_agaa(T214, T215, X323, X324)) → qsort1_out_aa(.(T215, .(T213, T214)), T9)
U30_aa(T215, T213, T214, T9, gt67_out_aa(T213, T215)) → U32_aa(T215, T213, T214, T9, split51_in_agaa(T214, T215, T222, T223))
U32_aa(T215, T213, T214, T9, split51_out_agaa(T214, T215, T222, T223)) → U33_aa(T215, T213, T214, T9, qsort79_in_aa(T222, X12))
qsort79_in_aa([], []) → qsort79_out_aa([], [])
qsort79_in_aa(.(T163, T164), X265) → U8_aa(T163, T164, X265, split51_in_aaaa(T164, T163, X261, X262))
U8_aa(T163, T164, X265, split51_out_aaaa(T164, T163, X261, X262)) → qsort79_out_aa(.(T163, T164), X265)
qsort79_in_aa(.(T163, T164), X265) → U9_aa(T163, T164, X265, split51_in_aaaa(T164, T163, T167, T168))
U9_aa(T163, T164, X265, split51_out_aaaa(T164, T163, T167, T168)) → U10_aa(T163, T164, X265, qsort79_in_aa(T167, X263))
U10_aa(T163, T164, X265, qsort79_out_aa(T167, X263)) → qsort79_out_aa(.(T163, T164), X265)
U9_aa(T163, T164, X265, split51_out_aaaa(T164, T163, T167, T168)) → U11_aa(T163, T164, X265, T168, qsort79_in_aa(T167, T171))
U11_aa(T163, T164, X265, T168, qsort79_out_aa(T167, T171)) → U12_aa(T163, T164, X265, qsort79_in_aa(T168, X264))
U12_aa(T163, T164, X265, qsort79_out_aa(T168, X264)) → qsort79_out_aa(.(T163, T164), X265)
U11_aa(T163, T164, X265, T168, qsort79_out_aa(T167, T171)) → U13_aa(T163, T164, X265, T171, qsort79_in_aa(T168, T172))
U13_aa(T163, T164, X265, T171, qsort79_out_aa(T168, T172)) → U14_aa(T163, T164, X265, append94_in_aaaa(T171, T163, T172, X265))
append94_in_aaaa([], T185, T186, .(T185, T186)) → append94_out_aaaa([], T185, T186, .(T185, T186))
append94_in_aaaa(.(T195, T196), T197, T198, .(T195, X295)) → U15_aaaa(T195, T196, T197, T198, X295, append94_in_aaaa(T196, T197, T198, X295))
U15_aaaa(T195, T196, T197, T198, X295, append94_out_aaaa(T196, T197, T198, X295)) → append94_out_aaaa(.(T195, T196), T197, T198, .(T195, X295))
U14_aa(T163, T164, X265, append94_out_aaaa(T171, T163, T172, X265)) → qsort79_out_aa(.(T163, T164), X265)
U33_aa(T215, T213, T214, T9, qsort79_out_aa(T222, X12)) → qsort1_out_aa(.(T215, .(T213, T214)), T9)
U32_aa(T215, T213, T214, T9, split51_out_agaa(T214, T215, T222, T223)) → U34_aa(T215, T213, T214, T9, T223, qsort79_in_aa(T222, T226))
U34_aa(T215, T213, T214, T9, T223, qsort79_out_aa(T222, T226)) → U35_aa(T215, T213, T214, T9, p78_in_aaaga(.(T213, T223), X13, T226, T215, T9))
p78_in_aaaga(T94, X13, T155, T69, T9) → U16_aaaga(T94, X13, T155, T69, T9, qsort79_in_aa(T94, X13))
U16_aaaga(T94, X13, T155, T69, T9, qsort79_out_aa(T94, X13)) → p78_out_aaaga(T94, X13, T155, T69, T9)
p78_in_aaaga(T94, T158, T155, T69, T9) → U17_aaaga(T94, T158, T155, T69, T9, qsort79_in_aa(T94, T158))
U17_aaaga(T94, T158, T155, T69, T9, qsort79_out_aa(T94, T158)) → U18_aaaga(T94, T158, T155, T69, T9, append23_in_agaa(T155, T69, T158, T9))
append23_in_agaa([], T33, T34, .(T33, T34)) → append23_out_agaa([], T33, T34, .(T33, T34))
append23_in_agaa(.(T45, T46), T47, T48, .(T45, T50)) → U1_agaa(T45, T46, T47, T48, T50, append23_in_agaa(T46, T47, T48, T50))
U1_agaa(T45, T46, T47, T48, T50, append23_out_agaa(T46, T47, T48, T50)) → append23_out_agaa(.(T45, T46), T47, T48, .(T45, T50))
U18_aaaga(T94, T158, T155, T69, T9, append23_out_agaa(T155, T69, T158, T9)) → p78_out_aaaga(T94, T158, T155, T69, T9)
U35_aa(T215, T213, T214, T9, p78_out_aaaga(.(T213, T223), X13, T226, T215, T9)) → qsort1_out_aa(.(T215, .(T213, T214)), T9)
U27_aa(T69, T67, T68, T9, qsort1_out_aa(.(T67, T93), X12)) → qsort1_out_aa(.(T69, .(T67, T68)), T9)
U26_aa(T69, T67, T68, T9, split51_out_aaaa(T68, T69, T93, T94)) → U28_aa(T69, T67, T68, T9, T94, qsort1_in_aa(.(T67, T93), T155))
U28_aa(T69, T67, T68, T9, T94, qsort1_out_aa(.(T67, T93), T155)) → U29_aa(T69, T67, T68, T9, p78_in_aaaaa(T94, X13, T155, T69, T9))
p78_in_aaaaa(T94, X13, T155, T69, T9) → U16_aaaaa(T94, X13, T155, T69, T9, qsort79_in_aa(T94, X13))
U16_aaaaa(T94, X13, T155, T69, T9, qsort79_out_aa(T94, X13)) → p78_out_aaaaa(T94, X13, T155, T69, T9)
p78_in_aaaaa(T94, T158, T155, T69, T9) → U17_aaaaa(T94, T158, T155, T69, T9, qsort79_in_aa(T94, T158))
U17_aaaaa(T94, T158, T155, T69, T9, qsort79_out_aa(T94, T158)) → U18_aaaaa(T94, T158, T155, T69, T9, append23_in_aaaa(T155, T69, T158, T9))
append23_in_aaaa([], T33, T34, .(T33, T34)) → append23_out_aaaa([], T33, T34, .(T33, T34))
append23_in_aaaa(.(T45, T46), T47, T48, .(T45, T50)) → U1_aaaa(T45, T46, T47, T48, T50, append23_in_aaaa(T46, T47, T48, T50))
U1_aaaa(T45, T46, T47, T48, T50, append23_out_aaaa(T46, T47, T48, T50)) → append23_out_aaaa(.(T45, T46), T47, T48, .(T45, T50))
U18_aaaaa(T94, T158, T155, T69, T9, append23_out_aaaa(T155, T69, T158, T9)) → p78_out_aaaaa(T94, T158, T155, T69, T9)
U29_aa(T69, T67, T68, T9, p78_out_aaaaa(T94, X13, T155, T69, T9)) → qsort1_out_aa(.(T69, .(T67, T68)), T9)
U27_ga(T69, T67, T68, T9, qsort1_out_aa(.(T67, T93), X12)) → qsort1_out_ga(.(T69, .(T67, T68)), T9)
U26_ga(T69, T67, T68, T9, split51_out_ggaa(T68, T69, T93, T94)) → U28_ga(T69, T67, T68, T9, T94, qsort1_in_aa(.(T67, T93), T155))
U28_ga(T69, T67, T68, T9, T94, qsort1_out_aa(.(T67, T93), T155)) → U29_ga(T69, T67, T68, T9, p78_in_aaaga(T94, X13, T155, T69, T9))
U29_ga(T69, T67, T68, T9, p78_out_aaaga(T94, X13, T155, T69, T9)) → qsort1_out_ga(.(T69, .(T67, T68)), T9)
qsort1_in_ga(.(T215, .(T213, T214)), T9) → U30_ga(T215, T213, T214, T9, gt67_in_gg(T213, T215))
U30_ga(T215, T213, T214, T9, gt67_out_gg(T213, T215)) → qsort1_out_ga(.(T215, .(T213, T214)), T9)
U30_ga(T215, T213, T214, T9, gt67_out_gg(T213, T215)) → U31_ga(T215, T213, T214, T9, split51_in_ggaa(T214, T215, X323, X324))
U31_ga(T215, T213, T214, T9, split51_out_ggaa(T214, T215, X323, X324)) → qsort1_out_ga(.(T215, .(T213, T214)), T9)
U30_ga(T215, T213, T214, T9, gt67_out_gg(T213, T215)) → U32_ga(T215, T213, T214, T9, split51_in_ggaa(T214, T215, T222, T223))
U32_ga(T215, T213, T214, T9, split51_out_ggaa(T214, T215, T222, T223)) → U33_ga(T215, T213, T214, T9, qsort79_in_aa(T222, X12))
U33_ga(T215, T213, T214, T9, qsort79_out_aa(T222, X12)) → qsort1_out_ga(.(T215, .(T213, T214)), T9)
U32_ga(T215, T213, T214, T9, split51_out_ggaa(T214, T215, T222, T223)) → U34_ga(T215, T213, T214, T9, T223, qsort79_in_aa(T222, T226))
U34_ga(T215, T213, T214, T9, T223, qsort79_out_aa(T222, T226)) → U35_ga(T215, T213, T214, T9, p78_in_aaaga(.(T213, T223), X13, T226, T215, T9))
U35_ga(T215, T213, T214, T9, p78_out_aaaga(.(T213, T223), X13, T226, T215, T9)) → qsort1_out_ga(.(T215, .(T213, T214)), T9)
APPEND23_IN_AAAA(.(T45, T46), T47, T48, .(T45, T50)) → APPEND23_IN_AAAA(T46, T47, T48, T50)
APPEND23_IN_AAAA → APPEND23_IN_AAAA
APPEND23_IN_AGAA(.(T45, T46), T47, T48, .(T45, T50)) → APPEND23_IN_AGAA(T46, T47, T48, T50)
qsort1_in_ga([], []) → qsort1_out_ga([], [])
qsort1_in_ga(.(T14, []), T9) → U19_ga(T14, T9, qsort14_in_a(X12))
qsort14_in_a([]) → qsort14_out_a([])
U19_ga(T14, T9, qsort14_out_a(X12)) → qsort1_out_ga(.(T14, []), T9)
qsort1_in_ga(.(T14, []), T9) → U20_ga(T14, T9, qsort14_in_a(T17))
U20_ga(T14, T9, qsort14_out_a(T17)) → U21_ga(T14, T9, qsort14_in_a(X13))
U21_ga(T14, T9, qsort14_out_a(X13)) → qsort1_out_ga(.(T14, []), T9)
U20_ga(T14, T9, qsort14_out_a(T17)) → U22_ga(T14, T9, T17, qsort14_in_a(T20))
U22_ga(T14, T9, T17, qsort14_out_a(T20)) → U23_ga(T14, T9, append23_in_ggga(T17, T14, T20, T9))
append23_in_ggga([], T33, T34, .(T33, T34)) → append23_out_ggga([], T33, T34, .(T33, T34))
append23_in_ggga(.(T45, T46), T47, T48, .(T45, T50)) → U1_ggga(T45, T46, T47, T48, T50, append23_in_ggga(T46, T47, T48, T50))
U1_ggga(T45, T46, T47, T48, T50, append23_out_ggga(T46, T47, T48, T50)) → append23_out_ggga(.(T45, T46), T47, T48, .(T45, T50))
U23_ga(T14, T9, append23_out_ggga(T17, T14, T20, T9)) → qsort1_out_ga(.(T14, []), T9)
qsort1_in_ga(.(T69, .(T67, T68)), T9) → U24_ga(T69, T67, T68, T9, le36_in_gg(T67, T69))
le36_in_gg(s(T82), s(T83)) → U2_gg(T82, T83, le36_in_gg(T82, T83))
le36_in_gg(0, s(T90)) → le36_out_gg(0, s(T90))
le36_in_gg(0, 0) → le36_out_gg(0, 0)
U2_gg(T82, T83, le36_out_gg(T82, T83)) → le36_out_gg(s(T82), s(T83))
U24_ga(T69, T67, T68, T9, le36_out_gg(T67, T69)) → qsort1_out_ga(.(T69, .(T67, T68)), T9)
U24_ga(T69, T67, T68, T9, le36_out_gg(T67, T69)) → U25_ga(T69, T67, T68, T9, split51_in_ggaa(T68, T69, X93, X94))
split51_in_ggaa([], T101, [], []) → split51_out_ggaa([], T101, [], [])
split51_in_ggaa(.(T114, T115), T116, .(T114, X167), X168) → U3_ggaa(T114, T115, T116, X167, X168, le36_in_gg(T114, T116))
U3_ggaa(T114, T115, T116, X167, X168, le36_out_gg(T114, T116)) → split51_out_ggaa(.(T114, T115), T116, .(T114, X167), X168)
U3_ggaa(T114, T115, T116, X167, X168, le36_out_gg(T114, T116)) → U4_ggaa(T114, T115, T116, X167, X168, split51_in_ggaa(T115, T116, X167, X168))
split51_in_ggaa(.(T129, T130), T131, X199, .(T129, X200)) → U5_ggaa(T129, T130, T131, X199, X200, gt67_in_gg(T129, T131))
gt67_in_gg(s(T144), s(T145)) → U7_gg(T144, T145, gt67_in_gg(T144, T145))
gt67_in_gg(s(T150), 0) → gt67_out_gg(s(T150), 0)
U7_gg(T144, T145, gt67_out_gg(T144, T145)) → gt67_out_gg(s(T144), s(T145))
U5_ggaa(T129, T130, T131, X199, X200, gt67_out_gg(T129, T131)) → split51_out_ggaa(.(T129, T130), T131, X199, .(T129, X200))
U5_ggaa(T129, T130, T131, X199, X200, gt67_out_gg(T129, T131)) → U6_ggaa(T129, T130, T131, X199, X200, split51_in_ggaa(T130, T131, X199, X200))
U6_ggaa(T129, T130, T131, X199, X200, split51_out_ggaa(T130, T131, X199, X200)) → split51_out_ggaa(.(T129, T130), T131, X199, .(T129, X200))
U4_ggaa(T114, T115, T116, X167, X168, split51_out_ggaa(T115, T116, X167, X168)) → split51_out_ggaa(.(T114, T115), T116, .(T114, X167), X168)
U25_ga(T69, T67, T68, T9, split51_out_ggaa(T68, T69, X93, X94)) → qsort1_out_ga(.(T69, .(T67, T68)), T9)
U24_ga(T69, T67, T68, T9, le36_out_gg(T67, T69)) → U26_ga(T69, T67, T68, T9, split51_in_ggaa(T68, T69, T93, T94))
U26_ga(T69, T67, T68, T9, split51_out_ggaa(T68, T69, T93, T94)) → U27_ga(T69, T67, T68, T9, qsort1_in_aa(.(T67, T93), X12))
qsort1_in_aa([], []) → qsort1_out_aa([], [])
qsort1_in_aa(.(T14, []), T9) → U19_aa(T14, T9, qsort14_in_a(X12))
U19_aa(T14, T9, qsort14_out_a(X12)) → qsort1_out_aa(.(T14, []), T9)
qsort1_in_aa(.(T14, []), T9) → U20_aa(T14, T9, qsort14_in_a(T17))
U20_aa(T14, T9, qsort14_out_a(T17)) → U21_aa(T14, T9, qsort14_in_a(X13))
U21_aa(T14, T9, qsort14_out_a(X13)) → qsort1_out_aa(.(T14, []), T9)
U20_aa(T14, T9, qsort14_out_a(T17)) → U22_aa(T14, T9, T17, qsort14_in_a(T20))
U22_aa(T14, T9, T17, qsort14_out_a(T20)) → U23_aa(T14, T9, append23_in_gaga(T17, T14, T20, T9))
append23_in_gaga([], T33, T34, .(T33, T34)) → append23_out_gaga([], T33, T34, .(T33, T34))
append23_in_gaga(.(T45, T46), T47, T48, .(T45, T50)) → U1_gaga(T45, T46, T47, T48, T50, append23_in_gaga(T46, T47, T48, T50))
U1_gaga(T45, T46, T47, T48, T50, append23_out_gaga(T46, T47, T48, T50)) → append23_out_gaga(.(T45, T46), T47, T48, .(T45, T50))
U23_aa(T14, T9, append23_out_gaga(T17, T14, T20, T9)) → qsort1_out_aa(.(T14, []), T9)
qsort1_in_aa(.(T69, .(T67, T68)), T9) → U24_aa(T69, T67, T68, T9, le36_in_aa(T67, T69))
le36_in_aa(s(T82), s(T83)) → U2_aa(T82, T83, le36_in_aa(T82, T83))
le36_in_aa(0, s(T90)) → le36_out_aa(0, s(T90))
le36_in_aa(0, 0) → le36_out_aa(0, 0)
U2_aa(T82, T83, le36_out_aa(T82, T83)) → le36_out_aa(s(T82), s(T83))
U24_aa(T69, T67, T68, T9, le36_out_aa(T67, T69)) → qsort1_out_aa(.(T69, .(T67, T68)), T9)
U24_aa(T69, T67, T68, T9, le36_out_aa(T67, T69)) → U25_aa(T69, T67, T68, T9, split51_in_aaaa(T68, T69, X93, X94))
split51_in_aaaa([], T101, [], []) → split51_out_aaaa([], T101, [], [])
split51_in_aaaa(.(T114, T115), T116, .(T114, X167), X168) → U3_aaaa(T114, T115, T116, X167, X168, le36_in_aa(T114, T116))
U3_aaaa(T114, T115, T116, X167, X168, le36_out_aa(T114, T116)) → split51_out_aaaa(.(T114, T115), T116, .(T114, X167), X168)
U3_aaaa(T114, T115, T116, X167, X168, le36_out_aa(T114, T116)) → U4_aaaa(T114, T115, T116, X167, X168, split51_in_aaaa(T115, T116, X167, X168))
split51_in_aaaa(.(T129, T130), T131, X199, .(T129, X200)) → U5_aaaa(T129, T130, T131, X199, X200, gt67_in_aa(T129, T131))
gt67_in_aa(s(T144), s(T145)) → U7_aa(T144, T145, gt67_in_aa(T144, T145))
gt67_in_aa(s(T150), 0) → gt67_out_aa(s(T150), 0)
U7_aa(T144, T145, gt67_out_aa(T144, T145)) → gt67_out_aa(s(T144), s(T145))
U5_aaaa(T129, T130, T131, X199, X200, gt67_out_aa(T129, T131)) → split51_out_aaaa(.(T129, T130), T131, X199, .(T129, X200))
U5_aaaa(T129, T130, T131, X199, X200, gt67_out_aa(T129, T131)) → U6_aaaa(T129, T130, T131, X199, X200, split51_in_agaa(T130, T131, X199, X200))
split51_in_agaa([], T101, [], []) → split51_out_agaa([], T101, [], [])
split51_in_agaa(.(T114, T115), T116, .(T114, X167), X168) → U3_agaa(T114, T115, T116, X167, X168, le36_in_ag(T114, T116))
le36_in_ag(s(T82), s(T83)) → U2_ag(T82, T83, le36_in_ag(T82, T83))
le36_in_ag(0, s(T90)) → le36_out_ag(0, s(T90))
le36_in_ag(0, 0) → le36_out_ag(0, 0)
U2_ag(T82, T83, le36_out_ag(T82, T83)) → le36_out_ag(s(T82), s(T83))
U3_agaa(T114, T115, T116, X167, X168, le36_out_ag(T114, T116)) → split51_out_agaa(.(T114, T115), T116, .(T114, X167), X168)
U3_agaa(T114, T115, T116, X167, X168, le36_out_ag(T114, T116)) → U4_agaa(T114, T115, T116, X167, X168, split51_in_agaa(T115, T116, X167, X168))
split51_in_agaa(.(T129, T130), T131, X199, .(T129, X200)) → U5_agaa(T129, T130, T131, X199, X200, gt67_in_ag(T129, T131))
gt67_in_ag(s(T144), s(T145)) → U7_ag(T144, T145, gt67_in_ag(T144, T145))
gt67_in_ag(s(T150), 0) → gt67_out_ag(s(T150), 0)
U7_ag(T144, T145, gt67_out_ag(T144, T145)) → gt67_out_ag(s(T144), s(T145))
U5_agaa(T129, T130, T131, X199, X200, gt67_out_ag(T129, T131)) → split51_out_agaa(.(T129, T130), T131, X199, .(T129, X200))
U5_agaa(T129, T130, T131, X199, X200, gt67_out_ag(T129, T131)) → U6_agaa(T129, T130, T131, X199, X200, split51_in_agaa(T130, T131, X199, X200))
U6_agaa(T129, T130, T131, X199, X200, split51_out_agaa(T130, T131, X199, X200)) → split51_out_agaa(.(T129, T130), T131, X199, .(T129, X200))
U4_agaa(T114, T115, T116, X167, X168, split51_out_agaa(T115, T116, X167, X168)) → split51_out_agaa(.(T114, T115), T116, .(T114, X167), X168)
U6_aaaa(T129, T130, T131, X199, X200, split51_out_agaa(T130, T131, X199, X200)) → split51_out_aaaa(.(T129, T130), T131, X199, .(T129, X200))
U4_aaaa(T114, T115, T116, X167, X168, split51_out_aaaa(T115, T116, X167, X168)) → split51_out_aaaa(.(T114, T115), T116, .(T114, X167), X168)
U25_aa(T69, T67, T68, T9, split51_out_aaaa(T68, T69, X93, X94)) → qsort1_out_aa(.(T69, .(T67, T68)), T9)
U24_aa(T69, T67, T68, T9, le36_out_aa(T67, T69)) → U26_aa(T69, T67, T68, T9, split51_in_aaaa(T68, T69, T93, T94))
U26_aa(T69, T67, T68, T9, split51_out_aaaa(T68, T69, T93, T94)) → U27_aa(T69, T67, T68, T9, qsort1_in_aa(.(T67, T93), X12))
qsort1_in_aa(.(T215, .(T213, T214)), T9) → U30_aa(T215, T213, T214, T9, gt67_in_aa(T213, T215))
U30_aa(T215, T213, T214, T9, gt67_out_aa(T213, T215)) → qsort1_out_aa(.(T215, .(T213, T214)), T9)
U30_aa(T215, T213, T214, T9, gt67_out_aa(T213, T215)) → U31_aa(T215, T213, T214, T9, split51_in_agaa(T214, T215, X323, X324))
U31_aa(T215, T213, T214, T9, split51_out_agaa(T214, T215, X323, X324)) → qsort1_out_aa(.(T215, .(T213, T214)), T9)
U30_aa(T215, T213, T214, T9, gt67_out_aa(T213, T215)) → U32_aa(T215, T213, T214, T9, split51_in_agaa(T214, T215, T222, T223))
U32_aa(T215, T213, T214, T9, split51_out_agaa(T214, T215, T222, T223)) → U33_aa(T215, T213, T214, T9, qsort79_in_aa(T222, X12))
qsort79_in_aa([], []) → qsort79_out_aa([], [])
qsort79_in_aa(.(T163, T164), X265) → U8_aa(T163, T164, X265, split51_in_aaaa(T164, T163, X261, X262))
U8_aa(T163, T164, X265, split51_out_aaaa(T164, T163, X261, X262)) → qsort79_out_aa(.(T163, T164), X265)
qsort79_in_aa(.(T163, T164), X265) → U9_aa(T163, T164, X265, split51_in_aaaa(T164, T163, T167, T168))
U9_aa(T163, T164, X265, split51_out_aaaa(T164, T163, T167, T168)) → U10_aa(T163, T164, X265, qsort79_in_aa(T167, X263))
U10_aa(T163, T164, X265, qsort79_out_aa(T167, X263)) → qsort79_out_aa(.(T163, T164), X265)
U9_aa(T163, T164, X265, split51_out_aaaa(T164, T163, T167, T168)) → U11_aa(T163, T164, X265, T168, qsort79_in_aa(T167, T171))
U11_aa(T163, T164, X265, T168, qsort79_out_aa(T167, T171)) → U12_aa(T163, T164, X265, qsort79_in_aa(T168, X264))
U12_aa(T163, T164, X265, qsort79_out_aa(T168, X264)) → qsort79_out_aa(.(T163, T164), X265)
U11_aa(T163, T164, X265, T168, qsort79_out_aa(T167, T171)) → U13_aa(T163, T164, X265, T171, qsort79_in_aa(T168, T172))
U13_aa(T163, T164, X265, T171, qsort79_out_aa(T168, T172)) → U14_aa(T163, T164, X265, append94_in_aaaa(T171, T163, T172, X265))
append94_in_aaaa([], T185, T186, .(T185, T186)) → append94_out_aaaa([], T185, T186, .(T185, T186))
append94_in_aaaa(.(T195, T196), T197, T198, .(T195, X295)) → U15_aaaa(T195, T196, T197, T198, X295, append94_in_aaaa(T196, T197, T198, X295))
U15_aaaa(T195, T196, T197, T198, X295, append94_out_aaaa(T196, T197, T198, X295)) → append94_out_aaaa(.(T195, T196), T197, T198, .(T195, X295))
U14_aa(T163, T164, X265, append94_out_aaaa(T171, T163, T172, X265)) → qsort79_out_aa(.(T163, T164), X265)
U33_aa(T215, T213, T214, T9, qsort79_out_aa(T222, X12)) → qsort1_out_aa(.(T215, .(T213, T214)), T9)
U32_aa(T215, T213, T214, T9, split51_out_agaa(T214, T215, T222, T223)) → U34_aa(T215, T213, T214, T9, T223, qsort79_in_aa(T222, T226))
U34_aa(T215, T213, T214, T9, T223, qsort79_out_aa(T222, T226)) → U35_aa(T215, T213, T214, T9, p78_in_aaaga(.(T213, T223), X13, T226, T215, T9))
p78_in_aaaga(T94, X13, T155, T69, T9) → U16_aaaga(T94, X13, T155, T69, T9, qsort79_in_aa(T94, X13))
U16_aaaga(T94, X13, T155, T69, T9, qsort79_out_aa(T94, X13)) → p78_out_aaaga(T94, X13, T155, T69, T9)
p78_in_aaaga(T94, T158, T155, T69, T9) → U17_aaaga(T94, T158, T155, T69, T9, qsort79_in_aa(T94, T158))
U17_aaaga(T94, T158, T155, T69, T9, qsort79_out_aa(T94, T158)) → U18_aaaga(T94, T158, T155, T69, T9, append23_in_agaa(T155, T69, T158, T9))
append23_in_agaa([], T33, T34, .(T33, T34)) → append23_out_agaa([], T33, T34, .(T33, T34))
append23_in_agaa(.(T45, T46), T47, T48, .(T45, T50)) → U1_agaa(T45, T46, T47, T48, T50, append23_in_agaa(T46, T47, T48, T50))
U1_agaa(T45, T46, T47, T48, T50, append23_out_agaa(T46, T47, T48, T50)) → append23_out_agaa(.(T45, T46), T47, T48, .(T45, T50))
U18_aaaga(T94, T158, T155, T69, T9, append23_out_agaa(T155, T69, T158, T9)) → p78_out_aaaga(T94, T158, T155, T69, T9)
U35_aa(T215, T213, T214, T9, p78_out_aaaga(.(T213, T223), X13, T226, T215, T9)) → qsort1_out_aa(.(T215, .(T213, T214)), T9)
U27_aa(T69, T67, T68, T9, qsort1_out_aa(.(T67, T93), X12)) → qsort1_out_aa(.(T69, .(T67, T68)), T9)
U26_aa(T69, T67, T68, T9, split51_out_aaaa(T68, T69, T93, T94)) → U28_aa(T69, T67, T68, T9, T94, qsort1_in_aa(.(T67, T93), T155))
U28_aa(T69, T67, T68, T9, T94, qsort1_out_aa(.(T67, T93), T155)) → U29_aa(T69, T67, T68, T9, p78_in_aaaaa(T94, X13, T155, T69, T9))
p78_in_aaaaa(T94, X13, T155, T69, T9) → U16_aaaaa(T94, X13, T155, T69, T9, qsort79_in_aa(T94, X13))
U16_aaaaa(T94, X13, T155, T69, T9, qsort79_out_aa(T94, X13)) → p78_out_aaaaa(T94, X13, T155, T69, T9)
p78_in_aaaaa(T94, T158, T155, T69, T9) → U17_aaaaa(T94, T158, T155, T69, T9, qsort79_in_aa(T94, T158))
U17_aaaaa(T94, T158, T155, T69, T9, qsort79_out_aa(T94, T158)) → U18_aaaaa(T94, T158, T155, T69, T9, append23_in_aaaa(T155, T69, T158, T9))
append23_in_aaaa([], T33, T34, .(T33, T34)) → append23_out_aaaa([], T33, T34, .(T33, T34))
append23_in_aaaa(.(T45, T46), T47, T48, .(T45, T50)) → U1_aaaa(T45, T46, T47, T48, T50, append23_in_aaaa(T46, T47, T48, T50))
U1_aaaa(T45, T46, T47, T48, T50, append23_out_aaaa(T46, T47, T48, T50)) → append23_out_aaaa(.(T45, T46), T47, T48, .(T45, T50))
U18_aaaaa(T94, T158, T155, T69, T9, append23_out_aaaa(T155, T69, T158, T9)) → p78_out_aaaaa(T94, T158, T155, T69, T9)
U29_aa(T69, T67, T68, T9, p78_out_aaaaa(T94, X13, T155, T69, T9)) → qsort1_out_aa(.(T69, .(T67, T68)), T9)
U27_ga(T69, T67, T68, T9, qsort1_out_aa(.(T67, T93), X12)) → qsort1_out_ga(.(T69, .(T67, T68)), T9)
U26_ga(T69, T67, T68, T9, split51_out_ggaa(T68, T69, T93, T94)) → U28_ga(T69, T67, T68, T9, T94, qsort1_in_aa(.(T67, T93), T155))
U28_ga(T69, T67, T68, T9, T94, qsort1_out_aa(.(T67, T93), T155)) → U29_ga(T69, T67, T68, T9, p78_in_aaaga(T94, X13, T155, T69, T9))
U29_ga(T69, T67, T68, T9, p78_out_aaaga(T94, X13, T155, T69, T9)) → qsort1_out_ga(.(T69, .(T67, T68)), T9)
qsort1_in_ga(.(T215, .(T213, T214)), T9) → U30_ga(T215, T213, T214, T9, gt67_in_gg(T213, T215))
U30_ga(T215, T213, T214, T9, gt67_out_gg(T213, T215)) → qsort1_out_ga(.(T215, .(T213, T214)), T9)
U30_ga(T215, T213, T214, T9, gt67_out_gg(T213, T215)) → U31_ga(T215, T213, T214, T9, split51_in_ggaa(T214, T215, X323, X324))
U31_ga(T215, T213, T214, T9, split51_out_ggaa(T214, T215, X323, X324)) → qsort1_out_ga(.(T215, .(T213, T214)), T9)
U30_ga(T215, T213, T214, T9, gt67_out_gg(T213, T215)) → U32_ga(T215, T213, T214, T9, split51_in_ggaa(T214, T215, T222, T223))
U32_ga(T215, T213, T214, T9, split51_out_ggaa(T214, T215, T222, T223)) → U33_ga(T215, T213, T214, T9, qsort79_in_aa(T222, X12))
U33_ga(T215, T213, T214, T9, qsort79_out_aa(T222, X12)) → qsort1_out_ga(.(T215, .(T213, T214)), T9)
U32_ga(T215, T213, T214, T9, split51_out_ggaa(T214, T215, T222, T223)) → U34_ga(T215, T213, T214, T9, T223, qsort79_in_aa(T222, T226))
U34_ga(T215, T213, T214, T9, T223, qsort79_out_aa(T222, T226)) → U35_ga(T215, T213, T214, T9, p78_in_aaaga(.(T213, T223), X13, T226, T215, T9))
U35_ga(T215, T213, T214, T9, p78_out_aaaga(.(T213, T223), X13, T226, T215, T9)) → qsort1_out_ga(.(T215, .(T213, T214)), T9)
APPEND23_IN_AGAA(.(T45, T46), T47, T48, .(T45, T50)) → APPEND23_IN_AGAA(T46, T47, T48, T50)
APPEND23_IN_AGAA(T47) → APPEND23_IN_AGAA(T47)
APPEND94_IN_AAAA(.(T195, T196), T197, T198, .(T195, X295)) → APPEND94_IN_AAAA(T196, T197, T198, X295)
qsort1_in_ga([], []) → qsort1_out_ga([], [])
qsort1_in_ga(.(T14, []), T9) → U19_ga(T14, T9, qsort14_in_a(X12))
qsort14_in_a([]) → qsort14_out_a([])
U19_ga(T14, T9, qsort14_out_a(X12)) → qsort1_out_ga(.(T14, []), T9)
qsort1_in_ga(.(T14, []), T9) → U20_ga(T14, T9, qsort14_in_a(T17))
U20_ga(T14, T9, qsort14_out_a(T17)) → U21_ga(T14, T9, qsort14_in_a(X13))
U21_ga(T14, T9, qsort14_out_a(X13)) → qsort1_out_ga(.(T14, []), T9)
U20_ga(T14, T9, qsort14_out_a(T17)) → U22_ga(T14, T9, T17, qsort14_in_a(T20))
U22_ga(T14, T9, T17, qsort14_out_a(T20)) → U23_ga(T14, T9, append23_in_ggga(T17, T14, T20, T9))
append23_in_ggga([], T33, T34, .(T33, T34)) → append23_out_ggga([], T33, T34, .(T33, T34))
append23_in_ggga(.(T45, T46), T47, T48, .(T45, T50)) → U1_ggga(T45, T46, T47, T48, T50, append23_in_ggga(T46, T47, T48, T50))
U1_ggga(T45, T46, T47, T48, T50, append23_out_ggga(T46, T47, T48, T50)) → append23_out_ggga(.(T45, T46), T47, T48, .(T45, T50))
U23_ga(T14, T9, append23_out_ggga(T17, T14, T20, T9)) → qsort1_out_ga(.(T14, []), T9)
qsort1_in_ga(.(T69, .(T67, T68)), T9) → U24_ga(T69, T67, T68, T9, le36_in_gg(T67, T69))
le36_in_gg(s(T82), s(T83)) → U2_gg(T82, T83, le36_in_gg(T82, T83))
le36_in_gg(0, s(T90)) → le36_out_gg(0, s(T90))
le36_in_gg(0, 0) → le36_out_gg(0, 0)
U2_gg(T82, T83, le36_out_gg(T82, T83)) → le36_out_gg(s(T82), s(T83))
U24_ga(T69, T67, T68, T9, le36_out_gg(T67, T69)) → qsort1_out_ga(.(T69, .(T67, T68)), T9)
U24_ga(T69, T67, T68, T9, le36_out_gg(T67, T69)) → U25_ga(T69, T67, T68, T9, split51_in_ggaa(T68, T69, X93, X94))
split51_in_ggaa([], T101, [], []) → split51_out_ggaa([], T101, [], [])
split51_in_ggaa(.(T114, T115), T116, .(T114, X167), X168) → U3_ggaa(T114, T115, T116, X167, X168, le36_in_gg(T114, T116))
U3_ggaa(T114, T115, T116, X167, X168, le36_out_gg(T114, T116)) → split51_out_ggaa(.(T114, T115), T116, .(T114, X167), X168)
U3_ggaa(T114, T115, T116, X167, X168, le36_out_gg(T114, T116)) → U4_ggaa(T114, T115, T116, X167, X168, split51_in_ggaa(T115, T116, X167, X168))
split51_in_ggaa(.(T129, T130), T131, X199, .(T129, X200)) → U5_ggaa(T129, T130, T131, X199, X200, gt67_in_gg(T129, T131))
gt67_in_gg(s(T144), s(T145)) → U7_gg(T144, T145, gt67_in_gg(T144, T145))
gt67_in_gg(s(T150), 0) → gt67_out_gg(s(T150), 0)
U7_gg(T144, T145, gt67_out_gg(T144, T145)) → gt67_out_gg(s(T144), s(T145))
U5_ggaa(T129, T130, T131, X199, X200, gt67_out_gg(T129, T131)) → split51_out_ggaa(.(T129, T130), T131, X199, .(T129, X200))
U5_ggaa(T129, T130, T131, X199, X200, gt67_out_gg(T129, T131)) → U6_ggaa(T129, T130, T131, X199, X200, split51_in_ggaa(T130, T131, X199, X200))
U6_ggaa(T129, T130, T131, X199, X200, split51_out_ggaa(T130, T131, X199, X200)) → split51_out_ggaa(.(T129, T130), T131, X199, .(T129, X200))
U4_ggaa(T114, T115, T116, X167, X168, split51_out_ggaa(T115, T116, X167, X168)) → split51_out_ggaa(.(T114, T115), T116, .(T114, X167), X168)
U25_ga(T69, T67, T68, T9, split51_out_ggaa(T68, T69, X93, X94)) → qsort1_out_ga(.(T69, .(T67, T68)), T9)
U24_ga(T69, T67, T68, T9, le36_out_gg(T67, T69)) → U26_ga(T69, T67, T68, T9, split51_in_ggaa(T68, T69, T93, T94))
U26_ga(T69, T67, T68, T9, split51_out_ggaa(T68, T69, T93, T94)) → U27_ga(T69, T67, T68, T9, qsort1_in_aa(.(T67, T93), X12))
qsort1_in_aa([], []) → qsort1_out_aa([], [])
qsort1_in_aa(.(T14, []), T9) → U19_aa(T14, T9, qsort14_in_a(X12))
U19_aa(T14, T9, qsort14_out_a(X12)) → qsort1_out_aa(.(T14, []), T9)
qsort1_in_aa(.(T14, []), T9) → U20_aa(T14, T9, qsort14_in_a(T17))
U20_aa(T14, T9, qsort14_out_a(T17)) → U21_aa(T14, T9, qsort14_in_a(X13))
U21_aa(T14, T9, qsort14_out_a(X13)) → qsort1_out_aa(.(T14, []), T9)
U20_aa(T14, T9, qsort14_out_a(T17)) → U22_aa(T14, T9, T17, qsort14_in_a(T20))
U22_aa(T14, T9, T17, qsort14_out_a(T20)) → U23_aa(T14, T9, append23_in_gaga(T17, T14, T20, T9))
append23_in_gaga([], T33, T34, .(T33, T34)) → append23_out_gaga([], T33, T34, .(T33, T34))
append23_in_gaga(.(T45, T46), T47, T48, .(T45, T50)) → U1_gaga(T45, T46, T47, T48, T50, append23_in_gaga(T46, T47, T48, T50))
U1_gaga(T45, T46, T47, T48, T50, append23_out_gaga(T46, T47, T48, T50)) → append23_out_gaga(.(T45, T46), T47, T48, .(T45, T50))
U23_aa(T14, T9, append23_out_gaga(T17, T14, T20, T9)) → qsort1_out_aa(.(T14, []), T9)
qsort1_in_aa(.(T69, .(T67, T68)), T9) → U24_aa(T69, T67, T68, T9, le36_in_aa(T67, T69))
le36_in_aa(s(T82), s(T83)) → U2_aa(T82, T83, le36_in_aa(T82, T83))
le36_in_aa(0, s(T90)) → le36_out_aa(0, s(T90))
le36_in_aa(0, 0) → le36_out_aa(0, 0)
U2_aa(T82, T83, le36_out_aa(T82, T83)) → le36_out_aa(s(T82), s(T83))
U24_aa(T69, T67, T68, T9, le36_out_aa(T67, T69)) → qsort1_out_aa(.(T69, .(T67, T68)), T9)
U24_aa(T69, T67, T68, T9, le36_out_aa(T67, T69)) → U25_aa(T69, T67, T68, T9, split51_in_aaaa(T68, T69, X93, X94))
split51_in_aaaa([], T101, [], []) → split51_out_aaaa([], T101, [], [])
split51_in_aaaa(.(T114, T115), T116, .(T114, X167), X168) → U3_aaaa(T114, T115, T116, X167, X168, le36_in_aa(T114, T116))
U3_aaaa(T114, T115, T116, X167, X168, le36_out_aa(T114, T116)) → split51_out_aaaa(.(T114, T115), T116, .(T114, X167), X168)
U3_aaaa(T114, T115, T116, X167, X168, le36_out_aa(T114, T116)) → U4_aaaa(T114, T115, T116, X167, X168, split51_in_aaaa(T115, T116, X167, X168))
split51_in_aaaa(.(T129, T130), T131, X199, .(T129, X200)) → U5_aaaa(T129, T130, T131, X199, X200, gt67_in_aa(T129, T131))
gt67_in_aa(s(T144), s(T145)) → U7_aa(T144, T145, gt67_in_aa(T144, T145))
gt67_in_aa(s(T150), 0) → gt67_out_aa(s(T150), 0)
U7_aa(T144, T145, gt67_out_aa(T144, T145)) → gt67_out_aa(s(T144), s(T145))
U5_aaaa(T129, T130, T131, X199, X200, gt67_out_aa(T129, T131)) → split51_out_aaaa(.(T129, T130), T131, X199, .(T129, X200))
U5_aaaa(T129, T130, T131, X199, X200, gt67_out_aa(T129, T131)) → U6_aaaa(T129, T130, T131, X199, X200, split51_in_agaa(T130, T131, X199, X200))
split51_in_agaa([], T101, [], []) → split51_out_agaa([], T101, [], [])
split51_in_agaa(.(T114, T115), T116, .(T114, X167), X168) → U3_agaa(T114, T115, T116, X167, X168, le36_in_ag(T114, T116))
le36_in_ag(s(T82), s(T83)) → U2_ag(T82, T83, le36_in_ag(T82, T83))
le36_in_ag(0, s(T90)) → le36_out_ag(0, s(T90))
le36_in_ag(0, 0) → le36_out_ag(0, 0)
U2_ag(T82, T83, le36_out_ag(T82, T83)) → le36_out_ag(s(T82), s(T83))
U3_agaa(T114, T115, T116, X167, X168, le36_out_ag(T114, T116)) → split51_out_agaa(.(T114, T115), T116, .(T114, X167), X168)
U3_agaa(T114, T115, T116, X167, X168, le36_out_ag(T114, T116)) → U4_agaa(T114, T115, T116, X167, X168, split51_in_agaa(T115, T116, X167, X168))
split51_in_agaa(.(T129, T130), T131, X199, .(T129, X200)) → U5_agaa(T129, T130, T131, X199, X200, gt67_in_ag(T129, T131))
gt67_in_ag(s(T144), s(T145)) → U7_ag(T144, T145, gt67_in_ag(T144, T145))
gt67_in_ag(s(T150), 0) → gt67_out_ag(s(T150), 0)
U7_ag(T144, T145, gt67_out_ag(T144, T145)) → gt67_out_ag(s(T144), s(T145))
U5_agaa(T129, T130, T131, X199, X200, gt67_out_ag(T129, T131)) → split51_out_agaa(.(T129, T130), T131, X199, .(T129, X200))
U5_agaa(T129, T130, T131, X199, X200, gt67_out_ag(T129, T131)) → U6_agaa(T129, T130, T131, X199, X200, split51_in_agaa(T130, T131, X199, X200))
U6_agaa(T129, T130, T131, X199, X200, split51_out_agaa(T130, T131, X199, X200)) → split51_out_agaa(.(T129, T130), T131, X199, .(T129, X200))
U4_agaa(T114, T115, T116, X167, X168, split51_out_agaa(T115, T116, X167, X168)) → split51_out_agaa(.(T114, T115), T116, .(T114, X167), X168)
U6_aaaa(T129, T130, T131, X199, X200, split51_out_agaa(T130, T131, X199, X200)) → split51_out_aaaa(.(T129, T130), T131, X199, .(T129, X200))
U4_aaaa(T114, T115, T116, X167, X168, split51_out_aaaa(T115, T116, X167, X168)) → split51_out_aaaa(.(T114, T115), T116, .(T114, X167), X168)
U25_aa(T69, T67, T68, T9, split51_out_aaaa(T68, T69, X93, X94)) → qsort1_out_aa(.(T69, .(T67, T68)), T9)
U24_aa(T69, T67, T68, T9, le36_out_aa(T67, T69)) → U26_aa(T69, T67, T68, T9, split51_in_aaaa(T68, T69, T93, T94))
U26_aa(T69, T67, T68, T9, split51_out_aaaa(T68, T69, T93, T94)) → U27_aa(T69, T67, T68, T9, qsort1_in_aa(.(T67, T93), X12))
qsort1_in_aa(.(T215, .(T213, T214)), T9) → U30_aa(T215, T213, T214, T9, gt67_in_aa(T213, T215))
U30_aa(T215, T213, T214, T9, gt67_out_aa(T213, T215)) → qsort1_out_aa(.(T215, .(T213, T214)), T9)
U30_aa(T215, T213, T214, T9, gt67_out_aa(T213, T215)) → U31_aa(T215, T213, T214, T9, split51_in_agaa(T214, T215, X323, X324))
U31_aa(T215, T213, T214, T9, split51_out_agaa(T214, T215, X323, X324)) → qsort1_out_aa(.(T215, .(T213, T214)), T9)
U30_aa(T215, T213, T214, T9, gt67_out_aa(T213, T215)) → U32_aa(T215, T213, T214, T9, split51_in_agaa(T214, T215, T222, T223))
U32_aa(T215, T213, T214, T9, split51_out_agaa(T214, T215, T222, T223)) → U33_aa(T215, T213, T214, T9, qsort79_in_aa(T222, X12))
qsort79_in_aa([], []) → qsort79_out_aa([], [])
qsort79_in_aa(.(T163, T164), X265) → U8_aa(T163, T164, X265, split51_in_aaaa(T164, T163, X261, X262))
U8_aa(T163, T164, X265, split51_out_aaaa(T164, T163, X261, X262)) → qsort79_out_aa(.(T163, T164), X265)
qsort79_in_aa(.(T163, T164), X265) → U9_aa(T163, T164, X265, split51_in_aaaa(T164, T163, T167, T168))
U9_aa(T163, T164, X265, split51_out_aaaa(T164, T163, T167, T168)) → U10_aa(T163, T164, X265, qsort79_in_aa(T167, X263))
U10_aa(T163, T164, X265, qsort79_out_aa(T167, X263)) → qsort79_out_aa(.(T163, T164), X265)
U9_aa(T163, T164, X265, split51_out_aaaa(T164, T163, T167, T168)) → U11_aa(T163, T164, X265, T168, qsort79_in_aa(T167, T171))
U11_aa(T163, T164, X265, T168, qsort79_out_aa(T167, T171)) → U12_aa(T163, T164, X265, qsort79_in_aa(T168, X264))
U12_aa(T163, T164, X265, qsort79_out_aa(T168, X264)) → qsort79_out_aa(.(T163, T164), X265)
U11_aa(T163, T164, X265, T168, qsort79_out_aa(T167, T171)) → U13_aa(T163, T164, X265, T171, qsort79_in_aa(T168, T172))
U13_aa(T163, T164, X265, T171, qsort79_out_aa(T168, T172)) → U14_aa(T163, T164, X265, append94_in_aaaa(T171, T163, T172, X265))
append94_in_aaaa([], T185, T186, .(T185, T186)) → append94_out_aaaa([], T185, T186, .(T185, T186))
append94_in_aaaa(.(T195, T196), T197, T198, .(T195, X295)) → U15_aaaa(T195, T196, T197, T198, X295, append94_in_aaaa(T196, T197, T198, X295))
U15_aaaa(T195, T196, T197, T198, X295, append94_out_aaaa(T196, T197, T198, X295)) → append94_out_aaaa(.(T195, T196), T197, T198, .(T195, X295))
U14_aa(T163, T164, X265, append94_out_aaaa(T171, T163, T172, X265)) → qsort79_out_aa(.(T163, T164), X265)
U33_aa(T215, T213, T214, T9, qsort79_out_aa(T222, X12)) → qsort1_out_aa(.(T215, .(T213, T214)), T9)
U32_aa(T215, T213, T214, T9, split51_out_agaa(T214, T215, T222, T223)) → U34_aa(T215, T213, T214, T9, T223, qsort79_in_aa(T222, T226))
U34_aa(T215, T213, T214, T9, T223, qsort79_out_aa(T222, T226)) → U35_aa(T215, T213, T214, T9, p78_in_aaaga(.(T213, T223), X13, T226, T215, T9))
p78_in_aaaga(T94, X13, T155, T69, T9) → U16_aaaga(T94, X13, T155, T69, T9, qsort79_in_aa(T94, X13))
U16_aaaga(T94, X13, T155, T69, T9, qsort79_out_aa(T94, X13)) → p78_out_aaaga(T94, X13, T155, T69, T9)
p78_in_aaaga(T94, T158, T155, T69, T9) → U17_aaaga(T94, T158, T155, T69, T9, qsort79_in_aa(T94, T158))
U17_aaaga(T94, T158, T155, T69, T9, qsort79_out_aa(T94, T158)) → U18_aaaga(T94, T158, T155, T69, T9, append23_in_agaa(T155, T69, T158, T9))
append23_in_agaa([], T33, T34, .(T33, T34)) → append23_out_agaa([], T33, T34, .(T33, T34))
append23_in_agaa(.(T45, T46), T47, T48, .(T45, T50)) → U1_agaa(T45, T46, T47, T48, T50, append23_in_agaa(T46, T47, T48, T50))
U1_agaa(T45, T46, T47, T48, T50, append23_out_agaa(T46, T47, T48, T50)) → append23_out_agaa(.(T45, T46), T47, T48, .(T45, T50))
U18_aaaga(T94, T158, T155, T69, T9, append23_out_agaa(T155, T69, T158, T9)) → p78_out_aaaga(T94, T158, T155, T69, T9)
U35_aa(T215, T213, T214, T9, p78_out_aaaga(.(T213, T223), X13, T226, T215, T9)) → qsort1_out_aa(.(T215, .(T213, T214)), T9)
U27_aa(T69, T67, T68, T9, qsort1_out_aa(.(T67, T93), X12)) → qsort1_out_aa(.(T69, .(T67, T68)), T9)
U26_aa(T69, T67, T68, T9, split51_out_aaaa(T68, T69, T93, T94)) → U28_aa(T69, T67, T68, T9, T94, qsort1_in_aa(.(T67, T93), T155))
U28_aa(T69, T67, T68, T9, T94, qsort1_out_aa(.(T67, T93), T155)) → U29_aa(T69, T67, T68, T9, p78_in_aaaaa(T94, X13, T155, T69, T9))
p78_in_aaaaa(T94, X13, T155, T69, T9) → U16_aaaaa(T94, X13, T155, T69, T9, qsort79_in_aa(T94, X13))
U16_aaaaa(T94, X13, T155, T69, T9, qsort79_out_aa(T94, X13)) → p78_out_aaaaa(T94, X13, T155, T69, T9)
p78_in_aaaaa(T94, T158, T155, T69, T9) → U17_aaaaa(T94, T158, T155, T69, T9, qsort79_in_aa(T94, T158))
U17_aaaaa(T94, T158, T155, T69, T9, qsort79_out_aa(T94, T158)) → U18_aaaaa(T94, T158, T155, T69, T9, append23_in_aaaa(T155, T69, T158, T9))
append23_in_aaaa([], T33, T34, .(T33, T34)) → append23_out_aaaa([], T33, T34, .(T33, T34))
append23_in_aaaa(.(T45, T46), T47, T48, .(T45, T50)) → U1_aaaa(T45, T46, T47, T48, T50, append23_in_aaaa(T46, T47, T48, T50))
U1_aaaa(T45, T46, T47, T48, T50, append23_out_aaaa(T46, T47, T48, T50)) → append23_out_aaaa(.(T45, T46), T47, T48, .(T45, T50))
U18_aaaaa(T94, T158, T155, T69, T9, append23_out_aaaa(T155, T69, T158, T9)) → p78_out_aaaaa(T94, T158, T155, T69, T9)
U29_aa(T69, T67, T68, T9, p78_out_aaaaa(T94, X13, T155, T69, T9)) → qsort1_out_aa(.(T69, .(T67, T68)), T9)
U27_ga(T69, T67, T68, T9, qsort1_out_aa(.(T67, T93), X12)) → qsort1_out_ga(.(T69, .(T67, T68)), T9)
U26_ga(T69, T67, T68, T9, split51_out_ggaa(T68, T69, T93, T94)) → U28_ga(T69, T67, T68, T9, T94, qsort1_in_aa(.(T67, T93), T155))
U28_ga(T69, T67, T68, T9, T94, qsort1_out_aa(.(T67, T93), T155)) → U29_ga(T69, T67, T68, T9, p78_in_aaaga(T94, X13, T155, T69, T9))
U29_ga(T69, T67, T68, T9, p78_out_aaaga(T94, X13, T155, T69, T9)) → qsort1_out_ga(.(T69, .(T67, T68)), T9)
qsort1_in_ga(.(T215, .(T213, T214)), T9) → U30_ga(T215, T213, T214, T9, gt67_in_gg(T213, T215))
U30_ga(T215, T213, T214, T9, gt67_out_gg(T213, T215)) → qsort1_out_ga(.(T215, .(T213, T214)), T9)
U30_ga(T215, T213, T214, T9, gt67_out_gg(T213, T215)) → U31_ga(T215, T213, T214, T9, split51_in_ggaa(T214, T215, X323, X324))
U31_ga(T215, T213, T214, T9, split51_out_ggaa(T214, T215, X323, X324)) → qsort1_out_ga(.(T215, .(T213, T214)), T9)
U30_ga(T215, T213, T214, T9, gt67_out_gg(T213, T215)) → U32_ga(T215, T213, T214, T9, split51_in_ggaa(T214, T215, T222, T223))
U32_ga(T215, T213, T214, T9, split51_out_ggaa(T214, T215, T222, T223)) → U33_ga(T215, T213, T214, T9, qsort79_in_aa(T222, X12))
U33_ga(T215, T213, T214, T9, qsort79_out_aa(T222, X12)) → qsort1_out_ga(.(T215, .(T213, T214)), T9)
U32_ga(T215, T213, T214, T9, split51_out_ggaa(T214, T215, T222, T223)) → U34_ga(T215, T213, T214, T9, T223, qsort79_in_aa(T222, T226))
U34_ga(T215, T213, T214, T9, T223, qsort79_out_aa(T222, T226)) → U35_ga(T215, T213, T214, T9, p78_in_aaaga(.(T213, T223), X13, T226, T215, T9))
U35_ga(T215, T213, T214, T9, p78_out_aaaga(.(T213, T223), X13, T226, T215, T9)) → qsort1_out_ga(.(T215, .(T213, T214)), T9)
APPEND94_IN_AAAA(.(T195, T196), T197, T198, .(T195, X295)) → APPEND94_IN_AAAA(T196, T197, T198, X295)
APPEND94_IN_AAAA → APPEND94_IN_AAAA
GT67_IN_AG(s(T144), s(T145)) → GT67_IN_AG(T144, T145)
qsort1_in_ga([], []) → qsort1_out_ga([], [])
qsort1_in_ga(.(T14, []), T9) → U19_ga(T14, T9, qsort14_in_a(X12))
qsort14_in_a([]) → qsort14_out_a([])
U19_ga(T14, T9, qsort14_out_a(X12)) → qsort1_out_ga(.(T14, []), T9)
qsort1_in_ga(.(T14, []), T9) → U20_ga(T14, T9, qsort14_in_a(T17))
U20_ga(T14, T9, qsort14_out_a(T17)) → U21_ga(T14, T9, qsort14_in_a(X13))
U21_ga(T14, T9, qsort14_out_a(X13)) → qsort1_out_ga(.(T14, []), T9)
U20_ga(T14, T9, qsort14_out_a(T17)) → U22_ga(T14, T9, T17, qsort14_in_a(T20))
U22_ga(T14, T9, T17, qsort14_out_a(T20)) → U23_ga(T14, T9, append23_in_ggga(T17, T14, T20, T9))
append23_in_ggga([], T33, T34, .(T33, T34)) → append23_out_ggga([], T33, T34, .(T33, T34))
append23_in_ggga(.(T45, T46), T47, T48, .(T45, T50)) → U1_ggga(T45, T46, T47, T48, T50, append23_in_ggga(T46, T47, T48, T50))
U1_ggga(T45, T46, T47, T48, T50, append23_out_ggga(T46, T47, T48, T50)) → append23_out_ggga(.(T45, T46), T47, T48, .(T45, T50))
U23_ga(T14, T9, append23_out_ggga(T17, T14, T20, T9)) → qsort1_out_ga(.(T14, []), T9)
qsort1_in_ga(.(T69, .(T67, T68)), T9) → U24_ga(T69, T67, T68, T9, le36_in_gg(T67, T69))
le36_in_gg(s(T82), s(T83)) → U2_gg(T82, T83, le36_in_gg(T82, T83))
le36_in_gg(0, s(T90)) → le36_out_gg(0, s(T90))
le36_in_gg(0, 0) → le36_out_gg(0, 0)
U2_gg(T82, T83, le36_out_gg(T82, T83)) → le36_out_gg(s(T82), s(T83))
U24_ga(T69, T67, T68, T9, le36_out_gg(T67, T69)) → qsort1_out_ga(.(T69, .(T67, T68)), T9)
U24_ga(T69, T67, T68, T9, le36_out_gg(T67, T69)) → U25_ga(T69, T67, T68, T9, split51_in_ggaa(T68, T69, X93, X94))
split51_in_ggaa([], T101, [], []) → split51_out_ggaa([], T101, [], [])
split51_in_ggaa(.(T114, T115), T116, .(T114, X167), X168) → U3_ggaa(T114, T115, T116, X167, X168, le36_in_gg(T114, T116))
U3_ggaa(T114, T115, T116, X167, X168, le36_out_gg(T114, T116)) → split51_out_ggaa(.(T114, T115), T116, .(T114, X167), X168)
U3_ggaa(T114, T115, T116, X167, X168, le36_out_gg(T114, T116)) → U4_ggaa(T114, T115, T116, X167, X168, split51_in_ggaa(T115, T116, X167, X168))
split51_in_ggaa(.(T129, T130), T131, X199, .(T129, X200)) → U5_ggaa(T129, T130, T131, X199, X200, gt67_in_gg(T129, T131))
gt67_in_gg(s(T144), s(T145)) → U7_gg(T144, T145, gt67_in_gg(T144, T145))
gt67_in_gg(s(T150), 0) → gt67_out_gg(s(T150), 0)
U7_gg(T144, T145, gt67_out_gg(T144, T145)) → gt67_out_gg(s(T144), s(T145))
U5_ggaa(T129, T130, T131, X199, X200, gt67_out_gg(T129, T131)) → split51_out_ggaa(.(T129, T130), T131, X199, .(T129, X200))
U5_ggaa(T129, T130, T131, X199, X200, gt67_out_gg(T129, T131)) → U6_ggaa(T129, T130, T131, X199, X200, split51_in_ggaa(T130, T131, X199, X200))
U6_ggaa(T129, T130, T131, X199, X200, split51_out_ggaa(T130, T131, X199, X200)) → split51_out_ggaa(.(T129, T130), T131, X199, .(T129, X200))
U4_ggaa(T114, T115, T116, X167, X168, split51_out_ggaa(T115, T116, X167, X168)) → split51_out_ggaa(.(T114, T115), T116, .(T114, X167), X168)
U25_ga(T69, T67, T68, T9, split51_out_ggaa(T68, T69, X93, X94)) → qsort1_out_ga(.(T69, .(T67, T68)), T9)
U24_ga(T69, T67, T68, T9, le36_out_gg(T67, T69)) → U26_ga(T69, T67, T68, T9, split51_in_ggaa(T68, T69, T93, T94))
U26_ga(T69, T67, T68, T9, split51_out_ggaa(T68, T69, T93, T94)) → U27_ga(T69, T67, T68, T9, qsort1_in_aa(.(T67, T93), X12))
qsort1_in_aa([], []) → qsort1_out_aa([], [])
qsort1_in_aa(.(T14, []), T9) → U19_aa(T14, T9, qsort14_in_a(X12))
U19_aa(T14, T9, qsort14_out_a(X12)) → qsort1_out_aa(.(T14, []), T9)
qsort1_in_aa(.(T14, []), T9) → U20_aa(T14, T9, qsort14_in_a(T17))
U20_aa(T14, T9, qsort14_out_a(T17)) → U21_aa(T14, T9, qsort14_in_a(X13))
U21_aa(T14, T9, qsort14_out_a(X13)) → qsort1_out_aa(.(T14, []), T9)
U20_aa(T14, T9, qsort14_out_a(T17)) → U22_aa(T14, T9, T17, qsort14_in_a(T20))
U22_aa(T14, T9, T17, qsort14_out_a(T20)) → U23_aa(T14, T9, append23_in_gaga(T17, T14, T20, T9))
append23_in_gaga([], T33, T34, .(T33, T34)) → append23_out_gaga([], T33, T34, .(T33, T34))
append23_in_gaga(.(T45, T46), T47, T48, .(T45, T50)) → U1_gaga(T45, T46, T47, T48, T50, append23_in_gaga(T46, T47, T48, T50))
U1_gaga(T45, T46, T47, T48, T50, append23_out_gaga(T46, T47, T48, T50)) → append23_out_gaga(.(T45, T46), T47, T48, .(T45, T50))
U23_aa(T14, T9, append23_out_gaga(T17, T14, T20, T9)) → qsort1_out_aa(.(T14, []), T9)
qsort1_in_aa(.(T69, .(T67, T68)), T9) → U24_aa(T69, T67, T68, T9, le36_in_aa(T67, T69))
le36_in_aa(s(T82), s(T83)) → U2_aa(T82, T83, le36_in_aa(T82, T83))
le36_in_aa(0, s(T90)) → le36_out_aa(0, s(T90))
le36_in_aa(0, 0) → le36_out_aa(0, 0)
U2_aa(T82, T83, le36_out_aa(T82, T83)) → le36_out_aa(s(T82), s(T83))
U24_aa(T69, T67, T68, T9, le36_out_aa(T67, T69)) → qsort1_out_aa(.(T69, .(T67, T68)), T9)
U24_aa(T69, T67, T68, T9, le36_out_aa(T67, T69)) → U25_aa(T69, T67, T68, T9, split51_in_aaaa(T68, T69, X93, X94))
split51_in_aaaa([], T101, [], []) → split51_out_aaaa([], T101, [], [])
split51_in_aaaa(.(T114, T115), T116, .(T114, X167), X168) → U3_aaaa(T114, T115, T116, X167, X168, le36_in_aa(T114, T116))
U3_aaaa(T114, T115, T116, X167, X168, le36_out_aa(T114, T116)) → split51_out_aaaa(.(T114, T115), T116, .(T114, X167), X168)
U3_aaaa(T114, T115, T116, X167, X168, le36_out_aa(T114, T116)) → U4_aaaa(T114, T115, T116, X167, X168, split51_in_aaaa(T115, T116, X167, X168))
split51_in_aaaa(.(T129, T130), T131, X199, .(T129, X200)) → U5_aaaa(T129, T130, T131, X199, X200, gt67_in_aa(T129, T131))
gt67_in_aa(s(T144), s(T145)) → U7_aa(T144, T145, gt67_in_aa(T144, T145))
gt67_in_aa(s(T150), 0) → gt67_out_aa(s(T150), 0)
U7_aa(T144, T145, gt67_out_aa(T144, T145)) → gt67_out_aa(s(T144), s(T145))
U5_aaaa(T129, T130, T131, X199, X200, gt67_out_aa(T129, T131)) → split51_out_aaaa(.(T129, T130), T131, X199, .(T129, X200))
U5_aaaa(T129, T130, T131, X199, X200, gt67_out_aa(T129, T131)) → U6_aaaa(T129, T130, T131, X199, X200, split51_in_agaa(T130, T131, X199, X200))
split51_in_agaa([], T101, [], []) → split51_out_agaa([], T101, [], [])
split51_in_agaa(.(T114, T115), T116, .(T114, X167), X168) → U3_agaa(T114, T115, T116, X167, X168, le36_in_ag(T114, T116))
le36_in_ag(s(T82), s(T83)) → U2_ag(T82, T83, le36_in_ag(T82, T83))
le36_in_ag(0, s(T90)) → le36_out_ag(0, s(T90))
le36_in_ag(0, 0) → le36_out_ag(0, 0)
U2_ag(T82, T83, le36_out_ag(T82, T83)) → le36_out_ag(s(T82), s(T83))
U3_agaa(T114, T115, T116, X167, X168, le36_out_ag(T114, T116)) → split51_out_agaa(.(T114, T115), T116, .(T114, X167), X168)
U3_agaa(T114, T115, T116, X167, X168, le36_out_ag(T114, T116)) → U4_agaa(T114, T115, T116, X167, X168, split51_in_agaa(T115, T116, X167, X168))
split51_in_agaa(.(T129, T130), T131, X199, .(T129, X200)) → U5_agaa(T129, T130, T131, X199, X200, gt67_in_ag(T129, T131))
gt67_in_ag(s(T144), s(T145)) → U7_ag(T144, T145, gt67_in_ag(T144, T145))
gt67_in_ag(s(T150), 0) → gt67_out_ag(s(T150), 0)
U7_ag(T144, T145, gt67_out_ag(T144, T145)) → gt67_out_ag(s(T144), s(T145))
U5_agaa(T129, T130, T131, X199, X200, gt67_out_ag(T129, T131)) → split51_out_agaa(.(T129, T130), T131, X199, .(T129, X200))
U5_agaa(T129, T130, T131, X199, X200, gt67_out_ag(T129, T131)) → U6_agaa(T129, T130, T131, X199, X200, split51_in_agaa(T130, T131, X199, X200))
U6_agaa(T129, T130, T131, X199, X200, split51_out_agaa(T130, T131, X199, X200)) → split51_out_agaa(.(T129, T130), T131, X199, .(T129, X200))
U4_agaa(T114, T115, T116, X167, X168, split51_out_agaa(T115, T116, X167, X168)) → split51_out_agaa(.(T114, T115), T116, .(T114, X167), X168)
U6_aaaa(T129, T130, T131, X199, X200, split51_out_agaa(T130, T131, X199, X200)) → split51_out_aaaa(.(T129, T130), T131, X199, .(T129, X200))
U4_aaaa(T114, T115, T116, X167, X168, split51_out_aaaa(T115, T116, X167, X168)) → split51_out_aaaa(.(T114, T115), T116, .(T114, X167), X168)
U25_aa(T69, T67, T68, T9, split51_out_aaaa(T68, T69, X93, X94)) → qsort1_out_aa(.(T69, .(T67, T68)), T9)
U24_aa(T69, T67, T68, T9, le36_out_aa(T67, T69)) → U26_aa(T69, T67, T68, T9, split51_in_aaaa(T68, T69, T93, T94))
U26_aa(T69, T67, T68, T9, split51_out_aaaa(T68, T69, T93, T94)) → U27_aa(T69, T67, T68, T9, qsort1_in_aa(.(T67, T93), X12))
qsort1_in_aa(.(T215, .(T213, T214)), T9) → U30_aa(T215, T213, T214, T9, gt67_in_aa(T213, T215))
U30_aa(T215, T213, T214, T9, gt67_out_aa(T213, T215)) → qsort1_out_aa(.(T215, .(T213, T214)), T9)
U30_aa(T215, T213, T214, T9, gt67_out_aa(T213, T215)) → U31_aa(T215, T213, T214, T9, split51_in_agaa(T214, T215, X323, X324))
U31_aa(T215, T213, T214, T9, split51_out_agaa(T214, T215, X323, X324)) → qsort1_out_aa(.(T215, .(T213, T214)), T9)
U30_aa(T215, T213, T214, T9, gt67_out_aa(T213, T215)) → U32_aa(T215, T213, T214, T9, split51_in_agaa(T214, T215, T222, T223))
U32_aa(T215, T213, T214, T9, split51_out_agaa(T214, T215, T222, T223)) → U33_aa(T215, T213, T214, T9, qsort79_in_aa(T222, X12))
qsort79_in_aa([], []) → qsort79_out_aa([], [])
qsort79_in_aa(.(T163, T164), X265) → U8_aa(T163, T164, X265, split51_in_aaaa(T164, T163, X261, X262))
U8_aa(T163, T164, X265, split51_out_aaaa(T164, T163, X261, X262)) → qsort79_out_aa(.(T163, T164), X265)
qsort79_in_aa(.(T163, T164), X265) → U9_aa(T163, T164, X265, split51_in_aaaa(T164, T163, T167, T168))
U9_aa(T163, T164, X265, split51_out_aaaa(T164, T163, T167, T168)) → U10_aa(T163, T164, X265, qsort79_in_aa(T167, X263))
U10_aa(T163, T164, X265, qsort79_out_aa(T167, X263)) → qsort79_out_aa(.(T163, T164), X265)
U9_aa(T163, T164, X265, split51_out_aaaa(T164, T163, T167, T168)) → U11_aa(T163, T164, X265, T168, qsort79_in_aa(T167, T171))
U11_aa(T163, T164, X265, T168, qsort79_out_aa(T167, T171)) → U12_aa(T163, T164, X265, qsort79_in_aa(T168, X264))
U12_aa(T163, T164, X265, qsort79_out_aa(T168, X264)) → qsort79_out_aa(.(T163, T164), X265)
U11_aa(T163, T164, X265, T168, qsort79_out_aa(T167, T171)) → U13_aa(T163, T164, X265, T171, qsort79_in_aa(T168, T172))
U13_aa(T163, T164, X265, T171, qsort79_out_aa(T168, T172)) → U14_aa(T163, T164, X265, append94_in_aaaa(T171, T163, T172, X265))
append94_in_aaaa([], T185, T186, .(T185, T186)) → append94_out_aaaa([], T185, T186, .(T185, T186))
append94_in_aaaa(.(T195, T196), T197, T198, .(T195, X295)) → U15_aaaa(T195, T196, T197, T198, X295, append94_in_aaaa(T196, T197, T198, X295))
U15_aaaa(T195, T196, T197, T198, X295, append94_out_aaaa(T196, T197, T198, X295)) → append94_out_aaaa(.(T195, T196), T197, T198, .(T195, X295))
U14_aa(T163, T164, X265, append94_out_aaaa(T171, T163, T172, X265)) → qsort79_out_aa(.(T163, T164), X265)
U33_aa(T215, T213, T214, T9, qsort79_out_aa(T222, X12)) → qsort1_out_aa(.(T215, .(T213, T214)), T9)
U32_aa(T215, T213, T214, T9, split51_out_agaa(T214, T215, T222, T223)) → U34_aa(T215, T213, T214, T9, T223, qsort79_in_aa(T222, T226))
U34_aa(T215, T213, T214, T9, T223, qsort79_out_aa(T222, T226)) → U35_aa(T215, T213, T214, T9, p78_in_aaaga(.(T213, T223), X13, T226, T215, T9))
p78_in_aaaga(T94, X13, T155, T69, T9) → U16_aaaga(T94, X13, T155, T69, T9, qsort79_in_aa(T94, X13))
U16_aaaga(T94, X13, T155, T69, T9, qsort79_out_aa(T94, X13)) → p78_out_aaaga(T94, X13, T155, T69, T9)
p78_in_aaaga(T94, T158, T155, T69, T9) → U17_aaaga(T94, T158, T155, T69, T9, qsort79_in_aa(T94, T158))
U17_aaaga(T94, T158, T155, T69, T9, qsort79_out_aa(T94, T158)) → U18_aaaga(T94, T158, T155, T69, T9, append23_in_agaa(T155, T69, T158, T9))
append23_in_agaa([], T33, T34, .(T33, T34)) → append23_out_agaa([], T33, T34, .(T33, T34))
append23_in_agaa(.(T45, T46), T47, T48, .(T45, T50)) → U1_agaa(T45, T46, T47, T48, T50, append23_in_agaa(T46, T47, T48, T50))
U1_agaa(T45, T46, T47, T48, T50, append23_out_agaa(T46, T47, T48, T50)) → append23_out_agaa(.(T45, T46), T47, T48, .(T45, T50))
U18_aaaga(T94, T158, T155, T69, T9, append23_out_agaa(T155, T69, T158, T9)) → p78_out_aaaga(T94, T158, T155, T69, T9)
U35_aa(T215, T213, T214, T9, p78_out_aaaga(.(T213, T223), X13, T226, T215, T9)) → qsort1_out_aa(.(T215, .(T213, T214)), T9)
U27_aa(T69, T67, T68, T9, qsort1_out_aa(.(T67, T93), X12)) → qsort1_out_aa(.(T69, .(T67, T68)), T9)
U26_aa(T69, T67, T68, T9, split51_out_aaaa(T68, T69, T93, T94)) → U28_aa(T69, T67, T68, T9, T94, qsort1_in_aa(.(T67, T93), T155))
U28_aa(T69, T67, T68, T9, T94, qsort1_out_aa(.(T67, T93), T155)) → U29_aa(T69, T67, T68, T9, p78_in_aaaaa(T94, X13, T155, T69, T9))
p78_in_aaaaa(T94, X13, T155, T69, T9) → U16_aaaaa(T94, X13, T155, T69, T9, qsort79_in_aa(T94, X13))
U16_aaaaa(T94, X13, T155, T69, T9, qsort79_out_aa(T94, X13)) → p78_out_aaaaa(T94, X13, T155, T69, T9)
p78_in_aaaaa(T94, T158, T155, T69, T9) → U17_aaaaa(T94, T158, T155, T69, T9, qsort79_in_aa(T94, T158))
U17_aaaaa(T94, T158, T155, T69, T9, qsort79_out_aa(T94, T158)) → U18_aaaaa(T94, T158, T155, T69, T9, append23_in_aaaa(T155, T69, T158, T9))
append23_in_aaaa([], T33, T34, .(T33, T34)) → append23_out_aaaa([], T33, T34, .(T33, T34))
append23_in_aaaa(.(T45, T46), T47, T48, .(T45, T50)) → U1_aaaa(T45, T46, T47, T48, T50, append23_in_aaaa(T46, T47, T48, T50))
U1_aaaa(T45, T46, T47, T48, T50, append23_out_aaaa(T46, T47, T48, T50)) → append23_out_aaaa(.(T45, T46), T47, T48, .(T45, T50))
U18_aaaaa(T94, T158, T155, T69, T9, append23_out_aaaa(T155, T69, T158, T9)) → p78_out_aaaaa(T94, T158, T155, T69, T9)
U29_aa(T69, T67, T68, T9, p78_out_aaaaa(T94, X13, T155, T69, T9)) → qsort1_out_aa(.(T69, .(T67, T68)), T9)
U27_ga(T69, T67, T68, T9, qsort1_out_aa(.(T67, T93), X12)) → qsort1_out_ga(.(T69, .(T67, T68)), T9)
U26_ga(T69, T67, T68, T9, split51_out_ggaa(T68, T69, T93, T94)) → U28_ga(T69, T67, T68, T9, T94, qsort1_in_aa(.(T67, T93), T155))
U28_ga(T69, T67, T68, T9, T94, qsort1_out_aa(.(T67, T93), T155)) → U29_ga(T69, T67, T68, T9, p78_in_aaaga(T94, X13, T155, T69, T9))
U29_ga(T69, T67, T68, T9, p78_out_aaaga(T94, X13, T155, T69, T9)) → qsort1_out_ga(.(T69, .(T67, T68)), T9)
qsort1_in_ga(.(T215, .(T213, T214)), T9) → U30_ga(T215, T213, T214, T9, gt67_in_gg(T213, T215))
U30_ga(T215, T213, T214, T9, gt67_out_gg(T213, T215)) → qsort1_out_ga(.(T215, .(T213, T214)), T9)
U30_ga(T215, T213, T214, T9, gt67_out_gg(T213, T215)) → U31_ga(T215, T213, T214, T9, split51_in_ggaa(T214, T215, X323, X324))
U31_ga(T215, T213, T214, T9, split51_out_ggaa(T214, T215, X323, X324)) → qsort1_out_ga(.(T215, .(T213, T214)), T9)
U30_ga(T215, T213, T214, T9, gt67_out_gg(T213, T215)) → U32_ga(T215, T213, T214, T9, split51_in_ggaa(T214, T215, T222, T223))
U32_ga(T215, T213, T214, T9, split51_out_ggaa(T214, T215, T222, T223)) → U33_ga(T215, T213, T214, T9, qsort79_in_aa(T222, X12))
U33_ga(T215, T213, T214, T9, qsort79_out_aa(T222, X12)) → qsort1_out_ga(.(T215, .(T213, T214)), T9)
U32_ga(T215, T213, T214, T9, split51_out_ggaa(T214, T215, T222, T223)) → U34_ga(T215, T213, T214, T9, T223, qsort79_in_aa(T222, T226))
U34_ga(T215, T213, T214, T9, T223, qsort79_out_aa(T222, T226)) → U35_ga(T215, T213, T214, T9, p78_in_aaaga(.(T213, T223), X13, T226, T215, T9))
U35_ga(T215, T213, T214, T9, p78_out_aaaga(.(T213, T223), X13, T226, T215, T9)) → qsort1_out_ga(.(T215, .(T213, T214)), T9)
GT67_IN_AG(s(T144), s(T145)) → GT67_IN_AG(T144, T145)
GT67_IN_AG(s(T145)) → GT67_IN_AG(T145)
From the DPs we obtained the following set of size-change graphs:
LE36_IN_AG(s(T82), s(T83)) → LE36_IN_AG(T82, T83)
qsort1_in_ga([], []) → qsort1_out_ga([], [])
qsort1_in_ga(.(T14, []), T9) → U19_ga(T14, T9, qsort14_in_a(X12))
qsort14_in_a([]) → qsort14_out_a([])
U19_ga(T14, T9, qsort14_out_a(X12)) → qsort1_out_ga(.(T14, []), T9)
qsort1_in_ga(.(T14, []), T9) → U20_ga(T14, T9, qsort14_in_a(T17))
U20_ga(T14, T9, qsort14_out_a(T17)) → U21_ga(T14, T9, qsort14_in_a(X13))
U21_ga(T14, T9, qsort14_out_a(X13)) → qsort1_out_ga(.(T14, []), T9)
U20_ga(T14, T9, qsort14_out_a(T17)) → U22_ga(T14, T9, T17, qsort14_in_a(T20))
U22_ga(T14, T9, T17, qsort14_out_a(T20)) → U23_ga(T14, T9, append23_in_ggga(T17, T14, T20, T9))
append23_in_ggga([], T33, T34, .(T33, T34)) → append23_out_ggga([], T33, T34, .(T33, T34))
append23_in_ggga(.(T45, T46), T47, T48, .(T45, T50)) → U1_ggga(T45, T46, T47, T48, T50, append23_in_ggga(T46, T47, T48, T50))
U1_ggga(T45, T46, T47, T48, T50, append23_out_ggga(T46, T47, T48, T50)) → append23_out_ggga(.(T45, T46), T47, T48, .(T45, T50))
U23_ga(T14, T9, append23_out_ggga(T17, T14, T20, T9)) → qsort1_out_ga(.(T14, []), T9)
qsort1_in_ga(.(T69, .(T67, T68)), T9) → U24_ga(T69, T67, T68, T9, le36_in_gg(T67, T69))
le36_in_gg(s(T82), s(T83)) → U2_gg(T82, T83, le36_in_gg(T82, T83))
le36_in_gg(0, s(T90)) → le36_out_gg(0, s(T90))
le36_in_gg(0, 0) → le36_out_gg(0, 0)
U2_gg(T82, T83, le36_out_gg(T82, T83)) → le36_out_gg(s(T82), s(T83))
U24_ga(T69, T67, T68, T9, le36_out_gg(T67, T69)) → qsort1_out_ga(.(T69, .(T67, T68)), T9)
U24_ga(T69, T67, T68, T9, le36_out_gg(T67, T69)) → U25_ga(T69, T67, T68, T9, split51_in_ggaa(T68, T69, X93, X94))
split51_in_ggaa([], T101, [], []) → split51_out_ggaa([], T101, [], [])
split51_in_ggaa(.(T114, T115), T116, .(T114, X167), X168) → U3_ggaa(T114, T115, T116, X167, X168, le36_in_gg(T114, T116))
U3_ggaa(T114, T115, T116, X167, X168, le36_out_gg(T114, T116)) → split51_out_ggaa(.(T114, T115), T116, .(T114, X167), X168)
U3_ggaa(T114, T115, T116, X167, X168, le36_out_gg(T114, T116)) → U4_ggaa(T114, T115, T116, X167, X168, split51_in_ggaa(T115, T116, X167, X168))
split51_in_ggaa(.(T129, T130), T131, X199, .(T129, X200)) → U5_ggaa(T129, T130, T131, X199, X200, gt67_in_gg(T129, T131))
gt67_in_gg(s(T144), s(T145)) → U7_gg(T144, T145, gt67_in_gg(T144, T145))
gt67_in_gg(s(T150), 0) → gt67_out_gg(s(T150), 0)
U7_gg(T144, T145, gt67_out_gg(T144, T145)) → gt67_out_gg(s(T144), s(T145))
U5_ggaa(T129, T130, T131, X199, X200, gt67_out_gg(T129, T131)) → split51_out_ggaa(.(T129, T130), T131, X199, .(T129, X200))
U5_ggaa(T129, T130, T131, X199, X200, gt67_out_gg(T129, T131)) → U6_ggaa(T129, T130, T131, X199, X200, split51_in_ggaa(T130, T131, X199, X200))
U6_ggaa(T129, T130, T131, X199, X200, split51_out_ggaa(T130, T131, X199, X200)) → split51_out_ggaa(.(T129, T130), T131, X199, .(T129, X200))
U4_ggaa(T114, T115, T116, X167, X168, split51_out_ggaa(T115, T116, X167, X168)) → split51_out_ggaa(.(T114, T115), T116, .(T114, X167), X168)
U25_ga(T69, T67, T68, T9, split51_out_ggaa(T68, T69, X93, X94)) → qsort1_out_ga(.(T69, .(T67, T68)), T9)
U24_ga(T69, T67, T68, T9, le36_out_gg(T67, T69)) → U26_ga(T69, T67, T68, T9, split51_in_ggaa(T68, T69, T93, T94))
U26_ga(T69, T67, T68, T9, split51_out_ggaa(T68, T69, T93, T94)) → U27_ga(T69, T67, T68, T9, qsort1_in_aa(.(T67, T93), X12))
qsort1_in_aa([], []) → qsort1_out_aa([], [])
qsort1_in_aa(.(T14, []), T9) → U19_aa(T14, T9, qsort14_in_a(X12))
U19_aa(T14, T9, qsort14_out_a(X12)) → qsort1_out_aa(.(T14, []), T9)
qsort1_in_aa(.(T14, []), T9) → U20_aa(T14, T9, qsort14_in_a(T17))
U20_aa(T14, T9, qsort14_out_a(T17)) → U21_aa(T14, T9, qsort14_in_a(X13))
U21_aa(T14, T9, qsort14_out_a(X13)) → qsort1_out_aa(.(T14, []), T9)
U20_aa(T14, T9, qsort14_out_a(T17)) → U22_aa(T14, T9, T17, qsort14_in_a(T20))
U22_aa(T14, T9, T17, qsort14_out_a(T20)) → U23_aa(T14, T9, append23_in_gaga(T17, T14, T20, T9))
append23_in_gaga([], T33, T34, .(T33, T34)) → append23_out_gaga([], T33, T34, .(T33, T34))
append23_in_gaga(.(T45, T46), T47, T48, .(T45, T50)) → U1_gaga(T45, T46, T47, T48, T50, append23_in_gaga(T46, T47, T48, T50))
U1_gaga(T45, T46, T47, T48, T50, append23_out_gaga(T46, T47, T48, T50)) → append23_out_gaga(.(T45, T46), T47, T48, .(T45, T50))
U23_aa(T14, T9, append23_out_gaga(T17, T14, T20, T9)) → qsort1_out_aa(.(T14, []), T9)
qsort1_in_aa(.(T69, .(T67, T68)), T9) → U24_aa(T69, T67, T68, T9, le36_in_aa(T67, T69))
le36_in_aa(s(T82), s(T83)) → U2_aa(T82, T83, le36_in_aa(T82, T83))
le36_in_aa(0, s(T90)) → le36_out_aa(0, s(T90))
le36_in_aa(0, 0) → le36_out_aa(0, 0)
U2_aa(T82, T83, le36_out_aa(T82, T83)) → le36_out_aa(s(T82), s(T83))
U24_aa(T69, T67, T68, T9, le36_out_aa(T67, T69)) → qsort1_out_aa(.(T69, .(T67, T68)), T9)
U24_aa(T69, T67, T68, T9, le36_out_aa(T67, T69)) → U25_aa(T69, T67, T68, T9, split51_in_aaaa(T68, T69, X93, X94))
split51_in_aaaa([], T101, [], []) → split51_out_aaaa([], T101, [], [])
split51_in_aaaa(.(T114, T115), T116, .(T114, X167), X168) → U3_aaaa(T114, T115, T116, X167, X168, le36_in_aa(T114, T116))
U3_aaaa(T114, T115, T116, X167, X168, le36_out_aa(T114, T116)) → split51_out_aaaa(.(T114, T115), T116, .(T114, X167), X168)
U3_aaaa(T114, T115, T116, X167, X168, le36_out_aa(T114, T116)) → U4_aaaa(T114, T115, T116, X167, X168, split51_in_aaaa(T115, T116, X167, X168))
split51_in_aaaa(.(T129, T130), T131, X199, .(T129, X200)) → U5_aaaa(T129, T130, T131, X199, X200, gt67_in_aa(T129, T131))
gt67_in_aa(s(T144), s(T145)) → U7_aa(T144, T145, gt67_in_aa(T144, T145))
gt67_in_aa(s(T150), 0) → gt67_out_aa(s(T150), 0)
U7_aa(T144, T145, gt67_out_aa(T144, T145)) → gt67_out_aa(s(T144), s(T145))
U5_aaaa(T129, T130, T131, X199, X200, gt67_out_aa(T129, T131)) → split51_out_aaaa(.(T129, T130), T131, X199, .(T129, X200))
U5_aaaa(T129, T130, T131, X199, X200, gt67_out_aa(T129, T131)) → U6_aaaa(T129, T130, T131, X199, X200, split51_in_agaa(T130, T131, X199, X200))
split51_in_agaa([], T101, [], []) → split51_out_agaa([], T101, [], [])
split51_in_agaa(.(T114, T115), T116, .(T114, X167), X168) → U3_agaa(T114, T115, T116, X167, X168, le36_in_ag(T114, T116))
le36_in_ag(s(T82), s(T83)) → U2_ag(T82, T83, le36_in_ag(T82, T83))
le36_in_ag(0, s(T90)) → le36_out_ag(0, s(T90))
le36_in_ag(0, 0) → le36_out_ag(0, 0)
U2_ag(T82, T83, le36_out_ag(T82, T83)) → le36_out_ag(s(T82), s(T83))
U3_agaa(T114, T115, T116, X167, X168, le36_out_ag(T114, T116)) → split51_out_agaa(.(T114, T115), T116, .(T114, X167), X168)
U3_agaa(T114, T115, T116, X167, X168, le36_out_ag(T114, T116)) → U4_agaa(T114, T115, T116, X167, X168, split51_in_agaa(T115, T116, X167, X168))
split51_in_agaa(.(T129, T130), T131, X199, .(T129, X200)) → U5_agaa(T129, T130, T131, X199, X200, gt67_in_ag(T129, T131))
gt67_in_ag(s(T144), s(T145)) → U7_ag(T144, T145, gt67_in_ag(T144, T145))
gt67_in_ag(s(T150), 0) → gt67_out_ag(s(T150), 0)
U7_ag(T144, T145, gt67_out_ag(T144, T145)) → gt67_out_ag(s(T144), s(T145))
U5_agaa(T129, T130, T131, X199, X200, gt67_out_ag(T129, T131)) → split51_out_agaa(.(T129, T130), T131, X199, .(T129, X200))
U5_agaa(T129, T130, T131, X199, X200, gt67_out_ag(T129, T131)) → U6_agaa(T129, T130, T131, X199, X200, split51_in_agaa(T130, T131, X199, X200))
U6_agaa(T129, T130, T131, X199, X200, split51_out_agaa(T130, T131, X199, X200)) → split51_out_agaa(.(T129, T130), T131, X199, .(T129, X200))
U4_agaa(T114, T115, T116, X167, X168, split51_out_agaa(T115, T116, X167, X168)) → split51_out_agaa(.(T114, T115), T116, .(T114, X167), X168)
U6_aaaa(T129, T130, T131, X199, X200, split51_out_agaa(T130, T131, X199, X200)) → split51_out_aaaa(.(T129, T130), T131, X199, .(T129, X200))
U4_aaaa(T114, T115, T116, X167, X168, split51_out_aaaa(T115, T116, X167, X168)) → split51_out_aaaa(.(T114, T115), T116, .(T114, X167), X168)
U25_aa(T69, T67, T68, T9, split51_out_aaaa(T68, T69, X93, X94)) → qsort1_out_aa(.(T69, .(T67, T68)), T9)
U24_aa(T69, T67, T68, T9, le36_out_aa(T67, T69)) → U26_aa(T69, T67, T68, T9, split51_in_aaaa(T68, T69, T93, T94))
U26_aa(T69, T67, T68, T9, split51_out_aaaa(T68, T69, T93, T94)) → U27_aa(T69, T67, T68, T9, qsort1_in_aa(.(T67, T93), X12))
qsort1_in_aa(.(T215, .(T213, T214)), T9) → U30_aa(T215, T213, T214, T9, gt67_in_aa(T213, T215))
U30_aa(T215, T213, T214, T9, gt67_out_aa(T213, T215)) → qsort1_out_aa(.(T215, .(T213, T214)), T9)
U30_aa(T215, T213, T214, T9, gt67_out_aa(T213, T215)) → U31_aa(T215, T213, T214, T9, split51_in_agaa(T214, T215, X323, X324))
U31_aa(T215, T213, T214, T9, split51_out_agaa(T214, T215, X323, X324)) → qsort1_out_aa(.(T215, .(T213, T214)), T9)
U30_aa(T215, T213, T214, T9, gt67_out_aa(T213, T215)) → U32_aa(T215, T213, T214, T9, split51_in_agaa(T214, T215, T222, T223))
U32_aa(T215, T213, T214, T9, split51_out_agaa(T214, T215, T222, T223)) → U33_aa(T215, T213, T214, T9, qsort79_in_aa(T222, X12))
qsort79_in_aa([], []) → qsort79_out_aa([], [])
qsort79_in_aa(.(T163, T164), X265) → U8_aa(T163, T164, X265, split51_in_aaaa(T164, T163, X261, X262))
U8_aa(T163, T164, X265, split51_out_aaaa(T164, T163, X261, X262)) → qsort79_out_aa(.(T163, T164), X265)
qsort79_in_aa(.(T163, T164), X265) → U9_aa(T163, T164, X265, split51_in_aaaa(T164, T163, T167, T168))
U9_aa(T163, T164, X265, split51_out_aaaa(T164, T163, T167, T168)) → U10_aa(T163, T164, X265, qsort79_in_aa(T167, X263))
U10_aa(T163, T164, X265, qsort79_out_aa(T167, X263)) → qsort79_out_aa(.(T163, T164), X265)
U9_aa(T163, T164, X265, split51_out_aaaa(T164, T163, T167, T168)) → U11_aa(T163, T164, X265, T168, qsort79_in_aa(T167, T171))
U11_aa(T163, T164, X265, T168, qsort79_out_aa(T167, T171)) → U12_aa(T163, T164, X265, qsort79_in_aa(T168, X264))
U12_aa(T163, T164, X265, qsort79_out_aa(T168, X264)) → qsort79_out_aa(.(T163, T164), X265)
U11_aa(T163, T164, X265, T168, qsort79_out_aa(T167, T171)) → U13_aa(T163, T164, X265, T171, qsort79_in_aa(T168, T172))
U13_aa(T163, T164, X265, T171, qsort79_out_aa(T168, T172)) → U14_aa(T163, T164, X265, append94_in_aaaa(T171, T163, T172, X265))
append94_in_aaaa([], T185, T186, .(T185, T186)) → append94_out_aaaa([], T185, T186, .(T185, T186))
append94_in_aaaa(.(T195, T196), T197, T198, .(T195, X295)) → U15_aaaa(T195, T196, T197, T198, X295, append94_in_aaaa(T196, T197, T198, X295))
U15_aaaa(T195, T196, T197, T198, X295, append94_out_aaaa(T196, T197, T198, X295)) → append94_out_aaaa(.(T195, T196), T197, T198, .(T195, X295))
U14_aa(T163, T164, X265, append94_out_aaaa(T171, T163, T172, X265)) → qsort79_out_aa(.(T163, T164), X265)
U33_aa(T215, T213, T214, T9, qsort79_out_aa(T222, X12)) → qsort1_out_aa(.(T215, .(T213, T214)), T9)
U32_aa(T215, T213, T214, T9, split51_out_agaa(T214, T215, T222, T223)) → U34_aa(T215, T213, T214, T9, T223, qsort79_in_aa(T222, T226))
U34_aa(T215, T213, T214, T9, T223, qsort79_out_aa(T222, T226)) → U35_aa(T215, T213, T214, T9, p78_in_aaaga(.(T213, T223), X13, T226, T215, T9))
p78_in_aaaga(T94, X13, T155, T69, T9) → U16_aaaga(T94, X13, T155, T69, T9, qsort79_in_aa(T94, X13))
U16_aaaga(T94, X13, T155, T69, T9, qsort79_out_aa(T94, X13)) → p78_out_aaaga(T94, X13, T155, T69, T9)
p78_in_aaaga(T94, T158, T155, T69, T9) → U17_aaaga(T94, T158, T155, T69, T9, qsort79_in_aa(T94, T158))
U17_aaaga(T94, T158, T155, T69, T9, qsort79_out_aa(T94, T158)) → U18_aaaga(T94, T158, T155, T69, T9, append23_in_agaa(T155, T69, T158, T9))
append23_in_agaa([], T33, T34, .(T33, T34)) → append23_out_agaa([], T33, T34, .(T33, T34))
append23_in_agaa(.(T45, T46), T47, T48, .(T45, T50)) → U1_agaa(T45, T46, T47, T48, T50, append23_in_agaa(T46, T47, T48, T50))
U1_agaa(T45, T46, T47, T48, T50, append23_out_agaa(T46, T47, T48, T50)) → append23_out_agaa(.(T45, T46), T47, T48, .(T45, T50))
U18_aaaga(T94, T158, T155, T69, T9, append23_out_agaa(T155, T69, T158, T9)) → p78_out_aaaga(T94, T158, T155, T69, T9)
U35_aa(T215, T213, T214, T9, p78_out_aaaga(.(T213, T223), X13, T226, T215, T9)) → qsort1_out_aa(.(T215, .(T213, T214)), T9)
U27_aa(T69, T67, T68, T9, qsort1_out_aa(.(T67, T93), X12)) → qsort1_out_aa(.(T69, .(T67, T68)), T9)
U26_aa(T69, T67, T68, T9, split51_out_aaaa(T68, T69, T93, T94)) → U28_aa(T69, T67, T68, T9, T94, qsort1_in_aa(.(T67, T93), T155))
U28_aa(T69, T67, T68, T9, T94, qsort1_out_aa(.(T67, T93), T155)) → U29_aa(T69, T67, T68, T9, p78_in_aaaaa(T94, X13, T155, T69, T9))
p78_in_aaaaa(T94, X13, T155, T69, T9) → U16_aaaaa(T94, X13, T155, T69, T9, qsort79_in_aa(T94, X13))
U16_aaaaa(T94, X13, T155, T69, T9, qsort79_out_aa(T94, X13)) → p78_out_aaaaa(T94, X13, T155, T69, T9)
p78_in_aaaaa(T94, T158, T155, T69, T9) → U17_aaaaa(T94, T158, T155, T69, T9, qsort79_in_aa(T94, T158))
U17_aaaaa(T94, T158, T155, T69, T9, qsort79_out_aa(T94, T158)) → U18_aaaaa(T94, T158, T155, T69, T9, append23_in_aaaa(T155, T69, T158, T9))
append23_in_aaaa([], T33, T34, .(T33, T34)) → append23_out_aaaa([], T33, T34, .(T33, T34))
append23_in_aaaa(.(T45, T46), T47, T48, .(T45, T50)) → U1_aaaa(T45, T46, T47, T48, T50, append23_in_aaaa(T46, T47, T48, T50))
U1_aaaa(T45, T46, T47, T48, T50, append23_out_aaaa(T46, T47, T48, T50)) → append23_out_aaaa(.(T45, T46), T47, T48, .(T45, T50))
U18_aaaaa(T94, T158, T155, T69, T9, append23_out_aaaa(T155, T69, T158, T9)) → p78_out_aaaaa(T94, T158, T155, T69, T9)
U29_aa(T69, T67, T68, T9, p78_out_aaaaa(T94, X13, T155, T69, T9)) → qsort1_out_aa(.(T69, .(T67, T68)), T9)
U27_ga(T69, T67, T68, T9, qsort1_out_aa(.(T67, T93), X12)) → qsort1_out_ga(.(T69, .(T67, T68)), T9)
U26_ga(T69, T67, T68, T9, split51_out_ggaa(T68, T69, T93, T94)) → U28_ga(T69, T67, T68, T9, T94, qsort1_in_aa(.(T67, T93), T155))
U28_ga(T69, T67, T68, T9, T94, qsort1_out_aa(.(T67, T93), T155)) → U29_ga(T69, T67, T68, T9, p78_in_aaaga(T94, X13, T155, T69, T9))
U29_ga(T69, T67, T68, T9, p78_out_aaaga(T94, X13, T155, T69, T9)) → qsort1_out_ga(.(T69, .(T67, T68)), T9)
qsort1_in_ga(.(T215, .(T213, T214)), T9) → U30_ga(T215, T213, T214, T9, gt67_in_gg(T213, T215))
U30_ga(T215, T213, T214, T9, gt67_out_gg(T213, T215)) → qsort1_out_ga(.(T215, .(T213, T214)), T9)
U30_ga(T215, T213, T214, T9, gt67_out_gg(T213, T215)) → U31_ga(T215, T213, T214, T9, split51_in_ggaa(T214, T215, X323, X324))
U31_ga(T215, T213, T214, T9, split51_out_ggaa(T214, T215, X323, X324)) → qsort1_out_ga(.(T215, .(T213, T214)), T9)
U30_ga(T215, T213, T214, T9, gt67_out_gg(T213, T215)) → U32_ga(T215, T213, T214, T9, split51_in_ggaa(T214, T215, T222, T223))
U32_ga(T215, T213, T214, T9, split51_out_ggaa(T214, T215, T222, T223)) → U33_ga(T215, T213, T214, T9, qsort79_in_aa(T222, X12))
U33_ga(T215, T213, T214, T9, qsort79_out_aa(T222, X12)) → qsort1_out_ga(.(T215, .(T213, T214)), T9)
U32_ga(T215, T213, T214, T9, split51_out_ggaa(T214, T215, T222, T223)) → U34_ga(T215, T213, T214, T9, T223, qsort79_in_aa(T222, T226))
U34_ga(T215, T213, T214, T9, T223, qsort79_out_aa(T222, T226)) → U35_ga(T215, T213, T214, T9, p78_in_aaaga(.(T213, T223), X13, T226, T215, T9))
U35_ga(T215, T213, T214, T9, p78_out_aaaga(.(T213, T223), X13, T226, T215, T9)) → qsort1_out_ga(.(T215, .(T213, T214)), T9)
LE36_IN_AG(s(T82), s(T83)) → LE36_IN_AG(T82, T83)
LE36_IN_AG(s(T83)) → LE36_IN_AG(T83)
From the DPs we obtained the following set of size-change graphs:
U3_AGAA(T114, T115, T116, X167, X168, le36_out_ag(T114, T116)) → SPLIT51_IN_AGAA(T115, T116, X167, X168)
SPLIT51_IN_AGAA(.(T114, T115), T116, .(T114, X167), X168) → U3_AGAA(T114, T115, T116, X167, X168, le36_in_ag(T114, T116))
SPLIT51_IN_AGAA(.(T129, T130), T131, X199, .(T129, X200)) → U5_AGAA(T129, T130, T131, X199, X200, gt67_in_ag(T129, T131))
U5_AGAA(T129, T130, T131, X199, X200, gt67_out_ag(T129, T131)) → SPLIT51_IN_AGAA(T130, T131, X199, X200)
qsort1_in_ga([], []) → qsort1_out_ga([], [])
qsort1_in_ga(.(T14, []), T9) → U19_ga(T14, T9, qsort14_in_a(X12))
qsort14_in_a([]) → qsort14_out_a([])
U19_ga(T14, T9, qsort14_out_a(X12)) → qsort1_out_ga(.(T14, []), T9)
qsort1_in_ga(.(T14, []), T9) → U20_ga(T14, T9, qsort14_in_a(T17))
U20_ga(T14, T9, qsort14_out_a(T17)) → U21_ga(T14, T9, qsort14_in_a(X13))
U21_ga(T14, T9, qsort14_out_a(X13)) → qsort1_out_ga(.(T14, []), T9)
U20_ga(T14, T9, qsort14_out_a(T17)) → U22_ga(T14, T9, T17, qsort14_in_a(T20))
U22_ga(T14, T9, T17, qsort14_out_a(T20)) → U23_ga(T14, T9, append23_in_ggga(T17, T14, T20, T9))
append23_in_ggga([], T33, T34, .(T33, T34)) → append23_out_ggga([], T33, T34, .(T33, T34))
append23_in_ggga(.(T45, T46), T47, T48, .(T45, T50)) → U1_ggga(T45, T46, T47, T48, T50, append23_in_ggga(T46, T47, T48, T50))
U1_ggga(T45, T46, T47, T48, T50, append23_out_ggga(T46, T47, T48, T50)) → append23_out_ggga(.(T45, T46), T47, T48, .(T45, T50))
U23_ga(T14, T9, append23_out_ggga(T17, T14, T20, T9)) → qsort1_out_ga(.(T14, []), T9)
qsort1_in_ga(.(T69, .(T67, T68)), T9) → U24_ga(T69, T67, T68, T9, le36_in_gg(T67, T69))
le36_in_gg(s(T82), s(T83)) → U2_gg(T82, T83, le36_in_gg(T82, T83))
le36_in_gg(0, s(T90)) → le36_out_gg(0, s(T90))
le36_in_gg(0, 0) → le36_out_gg(0, 0)
U2_gg(T82, T83, le36_out_gg(T82, T83)) → le36_out_gg(s(T82), s(T83))
U24_ga(T69, T67, T68, T9, le36_out_gg(T67, T69)) → qsort1_out_ga(.(T69, .(T67, T68)), T9)
U24_ga(T69, T67, T68, T9, le36_out_gg(T67, T69)) → U25_ga(T69, T67, T68, T9, split51_in_ggaa(T68, T69, X93, X94))
split51_in_ggaa([], T101, [], []) → split51_out_ggaa([], T101, [], [])
split51_in_ggaa(.(T114, T115), T116, .(T114, X167), X168) → U3_ggaa(T114, T115, T116, X167, X168, le36_in_gg(T114, T116))
U3_ggaa(T114, T115, T116, X167, X168, le36_out_gg(T114, T116)) → split51_out_ggaa(.(T114, T115), T116, .(T114, X167), X168)
U3_ggaa(T114, T115, T116, X167, X168, le36_out_gg(T114, T116)) → U4_ggaa(T114, T115, T116, X167, X168, split51_in_ggaa(T115, T116, X167, X168))
split51_in_ggaa(.(T129, T130), T131, X199, .(T129, X200)) → U5_ggaa(T129, T130, T131, X199, X200, gt67_in_gg(T129, T131))
gt67_in_gg(s(T144), s(T145)) → U7_gg(T144, T145, gt67_in_gg(T144, T145))
gt67_in_gg(s(T150), 0) → gt67_out_gg(s(T150), 0)
U7_gg(T144, T145, gt67_out_gg(T144, T145)) → gt67_out_gg(s(T144), s(T145))
U5_ggaa(T129, T130, T131, X199, X200, gt67_out_gg(T129, T131)) → split51_out_ggaa(.(T129, T130), T131, X199, .(T129, X200))
U5_ggaa(T129, T130, T131, X199, X200, gt67_out_gg(T129, T131)) → U6_ggaa(T129, T130, T131, X199, X200, split51_in_ggaa(T130, T131, X199, X200))
U6_ggaa(T129, T130, T131, X199, X200, split51_out_ggaa(T130, T131, X199, X200)) → split51_out_ggaa(.(T129, T130), T131, X199, .(T129, X200))
U4_ggaa(T114, T115, T116, X167, X168, split51_out_ggaa(T115, T116, X167, X168)) → split51_out_ggaa(.(T114, T115), T116, .(T114, X167), X168)
U25_ga(T69, T67, T68, T9, split51_out_ggaa(T68, T69, X93, X94)) → qsort1_out_ga(.(T69, .(T67, T68)), T9)
U24_ga(T69, T67, T68, T9, le36_out_gg(T67, T69)) → U26_ga(T69, T67, T68, T9, split51_in_ggaa(T68, T69, T93, T94))
U26_ga(T69, T67, T68, T9, split51_out_ggaa(T68, T69, T93, T94)) → U27_ga(T69, T67, T68, T9, qsort1_in_aa(.(T67, T93), X12))
qsort1_in_aa([], []) → qsort1_out_aa([], [])
qsort1_in_aa(.(T14, []), T9) → U19_aa(T14, T9, qsort14_in_a(X12))
U19_aa(T14, T9, qsort14_out_a(X12)) → qsort1_out_aa(.(T14, []), T9)
qsort1_in_aa(.(T14, []), T9) → U20_aa(T14, T9, qsort14_in_a(T17))
U20_aa(T14, T9, qsort14_out_a(T17)) → U21_aa(T14, T9, qsort14_in_a(X13))
U21_aa(T14, T9, qsort14_out_a(X13)) → qsort1_out_aa(.(T14, []), T9)
U20_aa(T14, T9, qsort14_out_a(T17)) → U22_aa(T14, T9, T17, qsort14_in_a(T20))
U22_aa(T14, T9, T17, qsort14_out_a(T20)) → U23_aa(T14, T9, append23_in_gaga(T17, T14, T20, T9))
append23_in_gaga([], T33, T34, .(T33, T34)) → append23_out_gaga([], T33, T34, .(T33, T34))
append23_in_gaga(.(T45, T46), T47, T48, .(T45, T50)) → U1_gaga(T45, T46, T47, T48, T50, append23_in_gaga(T46, T47, T48, T50))
U1_gaga(T45, T46, T47, T48, T50, append23_out_gaga(T46, T47, T48, T50)) → append23_out_gaga(.(T45, T46), T47, T48, .(T45, T50))
U23_aa(T14, T9, append23_out_gaga(T17, T14, T20, T9)) → qsort1_out_aa(.(T14, []), T9)
qsort1_in_aa(.(T69, .(T67, T68)), T9) → U24_aa(T69, T67, T68, T9, le36_in_aa(T67, T69))
le36_in_aa(s(T82), s(T83)) → U2_aa(T82, T83, le36_in_aa(T82, T83))
le36_in_aa(0, s(T90)) → le36_out_aa(0, s(T90))
le36_in_aa(0, 0) → le36_out_aa(0, 0)
U2_aa(T82, T83, le36_out_aa(T82, T83)) → le36_out_aa(s(T82), s(T83))
U24_aa(T69, T67, T68, T9, le36_out_aa(T67, T69)) → qsort1_out_aa(.(T69, .(T67, T68)), T9)
U24_aa(T69, T67, T68, T9, le36_out_aa(T67, T69)) → U25_aa(T69, T67, T68, T9, split51_in_aaaa(T68, T69, X93, X94))
split51_in_aaaa([], T101, [], []) → split51_out_aaaa([], T101, [], [])
split51_in_aaaa(.(T114, T115), T116, .(T114, X167), X168) → U3_aaaa(T114, T115, T116, X167, X168, le36_in_aa(T114, T116))
U3_aaaa(T114, T115, T116, X167, X168, le36_out_aa(T114, T116)) → split51_out_aaaa(.(T114, T115), T116, .(T114, X167), X168)
U3_aaaa(T114, T115, T116, X167, X168, le36_out_aa(T114, T116)) → U4_aaaa(T114, T115, T116, X167, X168, split51_in_aaaa(T115, T116, X167, X168))
split51_in_aaaa(.(T129, T130), T131, X199, .(T129, X200)) → U5_aaaa(T129, T130, T131, X199, X200, gt67_in_aa(T129, T131))
gt67_in_aa(s(T144), s(T145)) → U7_aa(T144, T145, gt67_in_aa(T144, T145))
gt67_in_aa(s(T150), 0) → gt67_out_aa(s(T150), 0)
U7_aa(T144, T145, gt67_out_aa(T144, T145)) → gt67_out_aa(s(T144), s(T145))
U5_aaaa(T129, T130, T131, X199, X200, gt67_out_aa(T129, T131)) → split51_out_aaaa(.(T129, T130), T131, X199, .(T129, X200))
U5_aaaa(T129, T130, T131, X199, X200, gt67_out_aa(T129, T131)) → U6_aaaa(T129, T130, T131, X199, X200, split51_in_agaa(T130, T131, X199, X200))
split51_in_agaa([], T101, [], []) → split51_out_agaa([], T101, [], [])
split51_in_agaa(.(T114, T115), T116, .(T114, X167), X168) → U3_agaa(T114, T115, T116, X167, X168, le36_in_ag(T114, T116))
le36_in_ag(s(T82), s(T83)) → U2_ag(T82, T83, le36_in_ag(T82, T83))
le36_in_ag(0, s(T90)) → le36_out_ag(0, s(T90))
le36_in_ag(0, 0) → le36_out_ag(0, 0)
U2_ag(T82, T83, le36_out_ag(T82, T83)) → le36_out_ag(s(T82), s(T83))
U3_agaa(T114, T115, T116, X167, X168, le36_out_ag(T114, T116)) → split51_out_agaa(.(T114, T115), T116, .(T114, X167), X168)
U3_agaa(T114, T115, T116, X167, X168, le36_out_ag(T114, T116)) → U4_agaa(T114, T115, T116, X167, X168, split51_in_agaa(T115, T116, X167, X168))
split51_in_agaa(.(T129, T130), T131, X199, .(T129, X200)) → U5_agaa(T129, T130, T131, X199, X200, gt67_in_ag(T129, T131))
gt67_in_ag(s(T144), s(T145)) → U7_ag(T144, T145, gt67_in_ag(T144, T145))
gt67_in_ag(s(T150), 0) → gt67_out_ag(s(T150), 0)
U7_ag(T144, T145, gt67_out_ag(T144, T145)) → gt67_out_ag(s(T144), s(T145))
U5_agaa(T129, T130, T131, X199, X200, gt67_out_ag(T129, T131)) → split51_out_agaa(.(T129, T130), T131, X199, .(T129, X200))
U5_agaa(T129, T130, T131, X199, X200, gt67_out_ag(T129, T131)) → U6_agaa(T129, T130, T131, X199, X200, split51_in_agaa(T130, T131, X199, X200))
U6_agaa(T129, T130, T131, X199, X200, split51_out_agaa(T130, T131, X199, X200)) → split51_out_agaa(.(T129, T130), T131, X199, .(T129, X200))
U4_agaa(T114, T115, T116, X167, X168, split51_out_agaa(T115, T116, X167, X168)) → split51_out_agaa(.(T114, T115), T116, .(T114, X167), X168)
U6_aaaa(T129, T130, T131, X199, X200, split51_out_agaa(T130, T131, X199, X200)) → split51_out_aaaa(.(T129, T130), T131, X199, .(T129, X200))
U4_aaaa(T114, T115, T116, X167, X168, split51_out_aaaa(T115, T116, X167, X168)) → split51_out_aaaa(.(T114, T115), T116, .(T114, X167), X168)
U25_aa(T69, T67, T68, T9, split51_out_aaaa(T68, T69, X93, X94)) → qsort1_out_aa(.(T69, .(T67, T68)), T9)
U24_aa(T69, T67, T68, T9, le36_out_aa(T67, T69)) → U26_aa(T69, T67, T68, T9, split51_in_aaaa(T68, T69, T93, T94))
U26_aa(T69, T67, T68, T9, split51_out_aaaa(T68, T69, T93, T94)) → U27_aa(T69, T67, T68, T9, qsort1_in_aa(.(T67, T93), X12))
qsort1_in_aa(.(T215, .(T213, T214)), T9) → U30_aa(T215, T213, T214, T9, gt67_in_aa(T213, T215))
U30_aa(T215, T213, T214, T9, gt67_out_aa(T213, T215)) → qsort1_out_aa(.(T215, .(T213, T214)), T9)
U30_aa(T215, T213, T214, T9, gt67_out_aa(T213, T215)) → U31_aa(T215, T213, T214, T9, split51_in_agaa(T214, T215, X323, X324))
U31_aa(T215, T213, T214, T9, split51_out_agaa(T214, T215, X323, X324)) → qsort1_out_aa(.(T215, .(T213, T214)), T9)
U30_aa(T215, T213, T214, T9, gt67_out_aa(T213, T215)) → U32_aa(T215, T213, T214, T9, split51_in_agaa(T214, T215, T222, T223))
U32_aa(T215, T213, T214, T9, split51_out_agaa(T214, T215, T222, T223)) → U33_aa(T215, T213, T214, T9, qsort79_in_aa(T222, X12))
qsort79_in_aa([], []) → qsort79_out_aa([], [])
qsort79_in_aa(.(T163, T164), X265) → U8_aa(T163, T164, X265, split51_in_aaaa(T164, T163, X261, X262))
U8_aa(T163, T164, X265, split51_out_aaaa(T164, T163, X261, X262)) → qsort79_out_aa(.(T163, T164), X265)
qsort79_in_aa(.(T163, T164), X265) → U9_aa(T163, T164, X265, split51_in_aaaa(T164, T163, T167, T168))
U9_aa(T163, T164, X265, split51_out_aaaa(T164, T163, T167, T168)) → U10_aa(T163, T164, X265, qsort79_in_aa(T167, X263))
U10_aa(T163, T164, X265, qsort79_out_aa(T167, X263)) → qsort79_out_aa(.(T163, T164), X265)
U9_aa(T163, T164, X265, split51_out_aaaa(T164, T163, T167, T168)) → U11_aa(T163, T164, X265, T168, qsort79_in_aa(T167, T171))
U11_aa(T163, T164, X265, T168, qsort79_out_aa(T167, T171)) → U12_aa(T163, T164, X265, qsort79_in_aa(T168, X264))
U12_aa(T163, T164, X265, qsort79_out_aa(T168, X264)) → qsort79_out_aa(.(T163, T164), X265)
U11_aa(T163, T164, X265, T168, qsort79_out_aa(T167, T171)) → U13_aa(T163, T164, X265, T171, qsort79_in_aa(T168, T172))
U13_aa(T163, T164, X265, T171, qsort79_out_aa(T168, T172)) → U14_aa(T163, T164, X265, append94_in_aaaa(T171, T163, T172, X265))
append94_in_aaaa([], T185, T186, .(T185, T186)) → append94_out_aaaa([], T185, T186, .(T185, T186))
append94_in_aaaa(.(T195, T196), T197, T198, .(T195, X295)) → U15_aaaa(T195, T196, T197, T198, X295, append94_in_aaaa(T196, T197, T198, X295))
U15_aaaa(T195, T196, T197, T198, X295, append94_out_aaaa(T196, T197, T198, X295)) → append94_out_aaaa(.(T195, T196), T197, T198, .(T195, X295))
U14_aa(T163, T164, X265, append94_out_aaaa(T171, T163, T172, X265)) → qsort79_out_aa(.(T163, T164), X265)
U33_aa(T215, T213, T214, T9, qsort79_out_aa(T222, X12)) → qsort1_out_aa(.(T215, .(T213, T214)), T9)
U32_aa(T215, T213, T214, T9, split51_out_agaa(T214, T215, T222, T223)) → U34_aa(T215, T213, T214, T9, T223, qsort79_in_aa(T222, T226))
U34_aa(T215, T213, T214, T9, T223, qsort79_out_aa(T222, T226)) → U35_aa(T215, T213, T214, T9, p78_in_aaaga(.(T213, T223), X13, T226, T215, T9))
p78_in_aaaga(T94, X13, T155, T69, T9) → U16_aaaga(T94, X13, T155, T69, T9, qsort79_in_aa(T94, X13))
U16_aaaga(T94, X13, T155, T69, T9, qsort79_out_aa(T94, X13)) → p78_out_aaaga(T94, X13, T155, T69, T9)
p78_in_aaaga(T94, T158, T155, T69, T9) → U17_aaaga(T94, T158, T155, T69, T9, qsort79_in_aa(T94, T158))
U17_aaaga(T94, T158, T155, T69, T9, qsort79_out_aa(T94, T158)) → U18_aaaga(T94, T158, T155, T69, T9, append23_in_agaa(T155, T69, T158, T9))
append23_in_agaa([], T33, T34, .(T33, T34)) → append23_out_agaa([], T33, T34, .(T33, T34))
append23_in_agaa(.(T45, T46), T47, T48, .(T45, T50)) → U1_agaa(T45, T46, T47, T48, T50, append23_in_agaa(T46, T47, T48, T50))
U1_agaa(T45, T46, T47, T48, T50, append23_out_agaa(T46, T47, T48, T50)) → append23_out_agaa(.(T45, T46), T47, T48, .(T45, T50))
U18_aaaga(T94, T158, T155, T69, T9, append23_out_agaa(T155, T69, T158, T9)) → p78_out_aaaga(T94, T158, T155, T69, T9)
U35_aa(T215, T213, T214, T9, p78_out_aaaga(.(T213, T223), X13, T226, T215, T9)) → qsort1_out_aa(.(T215, .(T213, T214)), T9)
U27_aa(T69, T67, T68, T9, qsort1_out_aa(.(T67, T93), X12)) → qsort1_out_aa(.(T69, .(T67, T68)), T9)
U26_aa(T69, T67, T68, T9, split51_out_aaaa(T68, T69, T93, T94)) → U28_aa(T69, T67, T68, T9, T94, qsort1_in_aa(.(T67, T93), T155))
U28_aa(T69, T67, T68, T9, T94, qsort1_out_aa(.(T67, T93), T155)) → U29_aa(T69, T67, T68, T9, p78_in_aaaaa(T94, X13, T155, T69, T9))
p78_in_aaaaa(T94, X13, T155, T69, T9) → U16_aaaaa(T94, X13, T155, T69, T9, qsort79_in_aa(T94, X13))
U16_aaaaa(T94, X13, T155, T69, T9, qsort79_out_aa(T94, X13)) → p78_out_aaaaa(T94, X13, T155, T69, T9)
p78_in_aaaaa(T94, T158, T155, T69, T9) → U17_aaaaa(T94, T158, T155, T69, T9, qsort79_in_aa(T94, T158))
U17_aaaaa(T94, T158, T155, T69, T9, qsort79_out_aa(T94, T158)) → U18_aaaaa(T94, T158, T155, T69, T9, append23_in_aaaa(T155, T69, T158, T9))
append23_in_aaaa([], T33, T34, .(T33, T34)) → append23_out_aaaa([], T33, T34, .(T33, T34))
append23_in_aaaa(.(T45, T46), T47, T48, .(T45, T50)) → U1_aaaa(T45, T46, T47, T48, T50, append23_in_aaaa(T46, T47, T48, T50))
U1_aaaa(T45, T46, T47, T48, T50, append23_out_aaaa(T46, T47, T48, T50)) → append23_out_aaaa(.(T45, T46), T47, T48, .(T45, T50))
U18_aaaaa(T94, T158, T155, T69, T9, append23_out_aaaa(T155, T69, T158, T9)) → p78_out_aaaaa(T94, T158, T155, T69, T9)
U29_aa(T69, T67, T68, T9, p78_out_aaaaa(T94, X13, T155, T69, T9)) → qsort1_out_aa(.(T69, .(T67, T68)), T9)
U27_ga(T69, T67, T68, T9, qsort1_out_aa(.(T67, T93), X12)) → qsort1_out_ga(.(T69, .(T67, T68)), T9)
U26_ga(T69, T67, T68, T9, split51_out_ggaa(T68, T69, T93, T94)) → U28_ga(T69, T67, T68, T9, T94, qsort1_in_aa(.(T67, T93), T155))
U28_ga(T69, T67, T68, T9, T94, qsort1_out_aa(.(T67, T93), T155)) → U29_ga(T69, T67, T68, T9, p78_in_aaaga(T94, X13, T155, T69, T9))
U29_ga(T69, T67, T68, T9, p78_out_aaaga(T94, X13, T155, T69, T9)) → qsort1_out_ga(.(T69, .(T67, T68)), T9)
qsort1_in_ga(.(T215, .(T213, T214)), T9) → U30_ga(T215, T213, T214, T9, gt67_in_gg(T213, T215))
U30_ga(T215, T213, T214, T9, gt67_out_gg(T213, T215)) → qsort1_out_ga(.(T215, .(T213, T214)), T9)
U30_ga(T215, T213, T214, T9, gt67_out_gg(T213, T215)) → U31_ga(T215, T213, T214, T9, split51_in_ggaa(T214, T215, X323, X324))
U31_ga(T215, T213, T214, T9, split51_out_ggaa(T214, T215, X323, X324)) → qsort1_out_ga(.(T215, .(T213, T214)), T9)
U30_ga(T215, T213, T214, T9, gt67_out_gg(T213, T215)) → U32_ga(T215, T213, T214, T9, split51_in_ggaa(T214, T215, T222, T223))
U32_ga(T215, T213, T214, T9, split51_out_ggaa(T214, T215, T222, T223)) → U33_ga(T215, T213, T214, T9, qsort79_in_aa(T222, X12))
U33_ga(T215, T213, T214, T9, qsort79_out_aa(T222, X12)) → qsort1_out_ga(.(T215, .(T213, T214)), T9)
U32_ga(T215, T213, T214, T9, split51_out_ggaa(T214, T215, T222, T223)) → U34_ga(T215, T213, T214, T9, T223, qsort79_in_aa(T222, T226))
U34_ga(T215, T213, T214, T9, T223, qsort79_out_aa(T222, T226)) → U35_ga(T215, T213, T214, T9, p78_in_aaaga(.(T213, T223), X13, T226, T215, T9))
U35_ga(T215, T213, T214, T9, p78_out_aaaga(.(T213, T223), X13, T226, T215, T9)) → qsort1_out_ga(.(T215, .(T213, T214)), T9)
U3_AGAA(T114, T115, T116, X167, X168, le36_out_ag(T114, T116)) → SPLIT51_IN_AGAA(T115, T116, X167, X168)
SPLIT51_IN_AGAA(.(T114, T115), T116, .(T114, X167), X168) → U3_AGAA(T114, T115, T116, X167, X168, le36_in_ag(T114, T116))
SPLIT51_IN_AGAA(.(T129, T130), T131, X199, .(T129, X200)) → U5_AGAA(T129, T130, T131, X199, X200, gt67_in_ag(T129, T131))
U5_AGAA(T129, T130, T131, X199, X200, gt67_out_ag(T129, T131)) → SPLIT51_IN_AGAA(T130, T131, X199, X200)
le36_in_ag(s(T82), s(T83)) → U2_ag(T82, T83, le36_in_ag(T82, T83))
le36_in_ag(0, s(T90)) → le36_out_ag(0, s(T90))
le36_in_ag(0, 0) → le36_out_ag(0, 0)
gt67_in_ag(s(T144), s(T145)) → U7_ag(T144, T145, gt67_in_ag(T144, T145))
gt67_in_ag(s(T150), 0) → gt67_out_ag(s(T150), 0)
U2_ag(T82, T83, le36_out_ag(T82, T83)) → le36_out_ag(s(T82), s(T83))
U7_ag(T144, T145, gt67_out_ag(T144, T145)) → gt67_out_ag(s(T144), s(T145))
U3_AGAA(T116, le36_out_ag(T114, T116)) → SPLIT51_IN_AGAA(T116)
SPLIT51_IN_AGAA(T116) → U3_AGAA(T116, le36_in_ag(T116))
SPLIT51_IN_AGAA(T131) → U5_AGAA(T131, gt67_in_ag(T131))
U5_AGAA(T131, gt67_out_ag(T131)) → SPLIT51_IN_AGAA(T131)
le36_in_ag(s(T83)) → U2_ag(T83, le36_in_ag(T83))
le36_in_ag(s(T90)) → le36_out_ag(0, s(T90))
le36_in_ag(0) → le36_out_ag(0, 0)
gt67_in_ag(s(T145)) → U7_ag(T145, gt67_in_ag(T145))
gt67_in_ag(0) → gt67_out_ag(0)
U2_ag(T83, le36_out_ag(T82, T83)) → le36_out_ag(s(T82), s(T83))
U7_ag(T145, gt67_out_ag(T145)) → gt67_out_ag(s(T145))
le36_in_ag(x0)
gt67_in_ag(x0)
U2_ag(x0, x1)
U7_ag(x0, x1)
SPLIT51_IN_AGAA(s(x0)) → U3_AGAA(s(x0), U2_ag(x0, le36_in_ag(x0)))
SPLIT51_IN_AGAA(s(x0)) → U3_AGAA(s(x0), le36_out_ag(0, s(x0)))
SPLIT51_IN_AGAA(0) → U3_AGAA(0, le36_out_ag(0, 0))
U3_AGAA(T116, le36_out_ag(T114, T116)) → SPLIT51_IN_AGAA(T116)
SPLIT51_IN_AGAA(T131) → U5_AGAA(T131, gt67_in_ag(T131))
U5_AGAA(T131, gt67_out_ag(T131)) → SPLIT51_IN_AGAA(T131)
SPLIT51_IN_AGAA(s(x0)) → U3_AGAA(s(x0), U2_ag(x0, le36_in_ag(x0)))
SPLIT51_IN_AGAA(s(x0)) → U3_AGAA(s(x0), le36_out_ag(0, s(x0)))
SPLIT51_IN_AGAA(0) → U3_AGAA(0, le36_out_ag(0, 0))
le36_in_ag(s(T83)) → U2_ag(T83, le36_in_ag(T83))
le36_in_ag(s(T90)) → le36_out_ag(0, s(T90))
le36_in_ag(0) → le36_out_ag(0, 0)
gt67_in_ag(s(T145)) → U7_ag(T145, gt67_in_ag(T145))
gt67_in_ag(0) → gt67_out_ag(0)
U2_ag(T83, le36_out_ag(T82, T83)) → le36_out_ag(s(T82), s(T83))
U7_ag(T145, gt67_out_ag(T145)) → gt67_out_ag(s(T145))
le36_in_ag(x0)
gt67_in_ag(x0)
U2_ag(x0, x1)
U7_ag(x0, x1)
SPLIT51_IN_AGAA(s(x0)) → U5_AGAA(s(x0), U7_ag(x0, gt67_in_ag(x0)))
SPLIT51_IN_AGAA(0) → U5_AGAA(0, gt67_out_ag(0))
U3_AGAA(T116, le36_out_ag(T114, T116)) → SPLIT51_IN_AGAA(T116)
U5_AGAA(T131, gt67_out_ag(T131)) → SPLIT51_IN_AGAA(T131)
SPLIT51_IN_AGAA(s(x0)) → U3_AGAA(s(x0), U2_ag(x0, le36_in_ag(x0)))
SPLIT51_IN_AGAA(s(x0)) → U3_AGAA(s(x0), le36_out_ag(0, s(x0)))
SPLIT51_IN_AGAA(0) → U3_AGAA(0, le36_out_ag(0, 0))
SPLIT51_IN_AGAA(s(x0)) → U5_AGAA(s(x0), U7_ag(x0, gt67_in_ag(x0)))
SPLIT51_IN_AGAA(0) → U5_AGAA(0, gt67_out_ag(0))
le36_in_ag(s(T83)) → U2_ag(T83, le36_in_ag(T83))
le36_in_ag(s(T90)) → le36_out_ag(0, s(T90))
le36_in_ag(0) → le36_out_ag(0, 0)
gt67_in_ag(s(T145)) → U7_ag(T145, gt67_in_ag(T145))
gt67_in_ag(0) → gt67_out_ag(0)
U2_ag(T83, le36_out_ag(T82, T83)) → le36_out_ag(s(T82), s(T83))
U7_ag(T145, gt67_out_ag(T145)) → gt67_out_ag(s(T145))
le36_in_ag(x0)
gt67_in_ag(x0)
U2_ag(x0, x1)
U7_ag(x0, x1)
U3_AGAA(s(z0), le36_out_ag(x1, s(z0))) → SPLIT51_IN_AGAA(s(z0))
U3_AGAA(s(z0), le36_out_ag(0, s(z0))) → SPLIT51_IN_AGAA(s(z0))
U3_AGAA(0, le36_out_ag(0, 0)) → SPLIT51_IN_AGAA(0)
U5_AGAA(T131, gt67_out_ag(T131)) → SPLIT51_IN_AGAA(T131)
SPLIT51_IN_AGAA(s(x0)) → U3_AGAA(s(x0), U2_ag(x0, le36_in_ag(x0)))
SPLIT51_IN_AGAA(s(x0)) → U3_AGAA(s(x0), le36_out_ag(0, s(x0)))
SPLIT51_IN_AGAA(0) → U3_AGAA(0, le36_out_ag(0, 0))
SPLIT51_IN_AGAA(s(x0)) → U5_AGAA(s(x0), U7_ag(x0, gt67_in_ag(x0)))
SPLIT51_IN_AGAA(0) → U5_AGAA(0, gt67_out_ag(0))
U3_AGAA(s(z0), le36_out_ag(x1, s(z0))) → SPLIT51_IN_AGAA(s(z0))
U3_AGAA(s(z0), le36_out_ag(0, s(z0))) → SPLIT51_IN_AGAA(s(z0))
U3_AGAA(0, le36_out_ag(0, 0)) → SPLIT51_IN_AGAA(0)
le36_in_ag(s(T83)) → U2_ag(T83, le36_in_ag(T83))
le36_in_ag(s(T90)) → le36_out_ag(0, s(T90))
le36_in_ag(0) → le36_out_ag(0, 0)
gt67_in_ag(s(T145)) → U7_ag(T145, gt67_in_ag(T145))
gt67_in_ag(0) → gt67_out_ag(0)
U2_ag(T83, le36_out_ag(T82, T83)) → le36_out_ag(s(T82), s(T83))
U7_ag(T145, gt67_out_ag(T145)) → gt67_out_ag(s(T145))
le36_in_ag(x0)
gt67_in_ag(x0)
U2_ag(x0, x1)
U7_ag(x0, x1)
U5_AGAA(s(z0), gt67_out_ag(s(z0))) → SPLIT51_IN_AGAA(s(z0))
U5_AGAA(0, gt67_out_ag(0)) → SPLIT51_IN_AGAA(0)
SPLIT51_IN_AGAA(s(x0)) → U3_AGAA(s(x0), U2_ag(x0, le36_in_ag(x0)))
SPLIT51_IN_AGAA(s(x0)) → U3_AGAA(s(x0), le36_out_ag(0, s(x0)))
SPLIT51_IN_AGAA(0) → U3_AGAA(0, le36_out_ag(0, 0))
SPLIT51_IN_AGAA(s(x0)) → U5_AGAA(s(x0), U7_ag(x0, gt67_in_ag(x0)))
SPLIT51_IN_AGAA(0) → U5_AGAA(0, gt67_out_ag(0))
U3_AGAA(s(z0), le36_out_ag(x1, s(z0))) → SPLIT51_IN_AGAA(s(z0))
U3_AGAA(s(z0), le36_out_ag(0, s(z0))) → SPLIT51_IN_AGAA(s(z0))
U3_AGAA(0, le36_out_ag(0, 0)) → SPLIT51_IN_AGAA(0)
U5_AGAA(s(z0), gt67_out_ag(s(z0))) → SPLIT51_IN_AGAA(s(z0))
U5_AGAA(0, gt67_out_ag(0)) → SPLIT51_IN_AGAA(0)
le36_in_ag(s(T83)) → U2_ag(T83, le36_in_ag(T83))
le36_in_ag(s(T90)) → le36_out_ag(0, s(T90))
le36_in_ag(0) → le36_out_ag(0, 0)
gt67_in_ag(s(T145)) → U7_ag(T145, gt67_in_ag(T145))
gt67_in_ag(0) → gt67_out_ag(0)
U2_ag(T83, le36_out_ag(T82, T83)) → le36_out_ag(s(T82), s(T83))
U7_ag(T145, gt67_out_ag(T145)) → gt67_out_ag(s(T145))
le36_in_ag(x0)
gt67_in_ag(x0)
U2_ag(x0, x1)
U7_ag(x0, x1)
U3_AGAA(0, le36_out_ag(0, 0)) → SPLIT51_IN_AGAA(0)
SPLIT51_IN_AGAA(0) → U3_AGAA(0, le36_out_ag(0, 0))
SPLIT51_IN_AGAA(0) → U5_AGAA(0, gt67_out_ag(0))
U5_AGAA(0, gt67_out_ag(0)) → SPLIT51_IN_AGAA(0)
le36_in_ag(s(T83)) → U2_ag(T83, le36_in_ag(T83))
le36_in_ag(s(T90)) → le36_out_ag(0, s(T90))
le36_in_ag(0) → le36_out_ag(0, 0)
gt67_in_ag(s(T145)) → U7_ag(T145, gt67_in_ag(T145))
gt67_in_ag(0) → gt67_out_ag(0)
U2_ag(T83, le36_out_ag(T82, T83)) → le36_out_ag(s(T82), s(T83))
U7_ag(T145, gt67_out_ag(T145)) → gt67_out_ag(s(T145))
le36_in_ag(x0)
gt67_in_ag(x0)
U2_ag(x0, x1)
U7_ag(x0, x1)
U3_AGAA(0, le36_out_ag(0, 0)) → SPLIT51_IN_AGAA(0)
SPLIT51_IN_AGAA(0) → U3_AGAA(0, le36_out_ag(0, 0))
SPLIT51_IN_AGAA(0) → U5_AGAA(0, gt67_out_ag(0))
U5_AGAA(0, gt67_out_ag(0)) → SPLIT51_IN_AGAA(0)
le36_in_ag(x0)
gt67_in_ag(x0)
U2_ag(x0, x1)
U7_ag(x0, x1)
le36_in_ag(x0)
gt67_in_ag(x0)
U2_ag(x0, x1)
U7_ag(x0, x1)
U3_AGAA(0, le36_out_ag(0, 0)) → SPLIT51_IN_AGAA(0)
SPLIT51_IN_AGAA(0) → U3_AGAA(0, le36_out_ag(0, 0))
SPLIT51_IN_AGAA(0) → U5_AGAA(0, gt67_out_ag(0))
U5_AGAA(0, gt67_out_ag(0)) → SPLIT51_IN_AGAA(0)
U3_AGAA(s(z0), le36_out_ag(x1, s(z0))) → SPLIT51_IN_AGAA(s(z0))
SPLIT51_IN_AGAA(s(x0)) → U3_AGAA(s(x0), U2_ag(x0, le36_in_ag(x0)))
U3_AGAA(s(z0), le36_out_ag(0, s(z0))) → SPLIT51_IN_AGAA(s(z0))
SPLIT51_IN_AGAA(s(x0)) → U3_AGAA(s(x0), le36_out_ag(0, s(x0)))
SPLIT51_IN_AGAA(s(x0)) → U5_AGAA(s(x0), U7_ag(x0, gt67_in_ag(x0)))
U5_AGAA(s(z0), gt67_out_ag(s(z0))) → SPLIT51_IN_AGAA(s(z0))
le36_in_ag(s(T83)) → U2_ag(T83, le36_in_ag(T83))
le36_in_ag(s(T90)) → le36_out_ag(0, s(T90))
le36_in_ag(0) → le36_out_ag(0, 0)
gt67_in_ag(s(T145)) → U7_ag(T145, gt67_in_ag(T145))
gt67_in_ag(0) → gt67_out_ag(0)
U2_ag(T83, le36_out_ag(T82, T83)) → le36_out_ag(s(T82), s(T83))
U7_ag(T145, gt67_out_ag(T145)) → gt67_out_ag(s(T145))
le36_in_ag(x0)
gt67_in_ag(x0)
U2_ag(x0, x1)
U7_ag(x0, x1)
GT67_IN_AA(s(T144), s(T145)) → GT67_IN_AA(T144, T145)
qsort1_in_ga([], []) → qsort1_out_ga([], [])
qsort1_in_ga(.(T14, []), T9) → U19_ga(T14, T9, qsort14_in_a(X12))
qsort14_in_a([]) → qsort14_out_a([])
U19_ga(T14, T9, qsort14_out_a(X12)) → qsort1_out_ga(.(T14, []), T9)
qsort1_in_ga(.(T14, []), T9) → U20_ga(T14, T9, qsort14_in_a(T17))
U20_ga(T14, T9, qsort14_out_a(T17)) → U21_ga(T14, T9, qsort14_in_a(X13))
U21_ga(T14, T9, qsort14_out_a(X13)) → qsort1_out_ga(.(T14, []), T9)
U20_ga(T14, T9, qsort14_out_a(T17)) → U22_ga(T14, T9, T17, qsort14_in_a(T20))
U22_ga(T14, T9, T17, qsort14_out_a(T20)) → U23_ga(T14, T9, append23_in_ggga(T17, T14, T20, T9))
append23_in_ggga([], T33, T34, .(T33, T34)) → append23_out_ggga([], T33, T34, .(T33, T34))
append23_in_ggga(.(T45, T46), T47, T48, .(T45, T50)) → U1_ggga(T45, T46, T47, T48, T50, append23_in_ggga(T46, T47, T48, T50))
U1_ggga(T45, T46, T47, T48, T50, append23_out_ggga(T46, T47, T48, T50)) → append23_out_ggga(.(T45, T46), T47, T48, .(T45, T50))
U23_ga(T14, T9, append23_out_ggga(T17, T14, T20, T9)) → qsort1_out_ga(.(T14, []), T9)
qsort1_in_ga(.(T69, .(T67, T68)), T9) → U24_ga(T69, T67, T68, T9, le36_in_gg(T67, T69))
le36_in_gg(s(T82), s(T83)) → U2_gg(T82, T83, le36_in_gg(T82, T83))
le36_in_gg(0, s(T90)) → le36_out_gg(0, s(T90))
le36_in_gg(0, 0) → le36_out_gg(0, 0)
U2_gg(T82, T83, le36_out_gg(T82, T83)) → le36_out_gg(s(T82), s(T83))
U24_ga(T69, T67, T68, T9, le36_out_gg(T67, T69)) → qsort1_out_ga(.(T69, .(T67, T68)), T9)
U24_ga(T69, T67, T68, T9, le36_out_gg(T67, T69)) → U25_ga(T69, T67, T68, T9, split51_in_ggaa(T68, T69, X93, X94))
split51_in_ggaa([], T101, [], []) → split51_out_ggaa([], T101, [], [])
split51_in_ggaa(.(T114, T115), T116, .(T114, X167), X168) → U3_ggaa(T114, T115, T116, X167, X168, le36_in_gg(T114, T116))
U3_ggaa(T114, T115, T116, X167, X168, le36_out_gg(T114, T116)) → split51_out_ggaa(.(T114, T115), T116, .(T114, X167), X168)
U3_ggaa(T114, T115, T116, X167, X168, le36_out_gg(T114, T116)) → U4_ggaa(T114, T115, T116, X167, X168, split51_in_ggaa(T115, T116, X167, X168))
split51_in_ggaa(.(T129, T130), T131, X199, .(T129, X200)) → U5_ggaa(T129, T130, T131, X199, X200, gt67_in_gg(T129, T131))
gt67_in_gg(s(T144), s(T145)) → U7_gg(T144, T145, gt67_in_gg(T144, T145))
gt67_in_gg(s(T150), 0) → gt67_out_gg(s(T150), 0)
U7_gg(T144, T145, gt67_out_gg(T144, T145)) → gt67_out_gg(s(T144), s(T145))
U5_ggaa(T129, T130, T131, X199, X200, gt67_out_gg(T129, T131)) → split51_out_ggaa(.(T129, T130), T131, X199, .(T129, X200))
U5_ggaa(T129, T130, T131, X199, X200, gt67_out_gg(T129, T131)) → U6_ggaa(T129, T130, T131, X199, X200, split51_in_ggaa(T130, T131, X199, X200))
U6_ggaa(T129, T130, T131, X199, X200, split51_out_ggaa(T130, T131, X199, X200)) → split51_out_ggaa(.(T129, T130), T131, X199, .(T129, X200))
U4_ggaa(T114, T115, T116, X167, X168, split51_out_ggaa(T115, T116, X167, X168)) → split51_out_ggaa(.(T114, T115), T116, .(T114, X167), X168)
U25_ga(T69, T67, T68, T9, split51_out_ggaa(T68, T69, X93, X94)) → qsort1_out_ga(.(T69, .(T67, T68)), T9)
U24_ga(T69, T67, T68, T9, le36_out_gg(T67, T69)) → U26_ga(T69, T67, T68, T9, split51_in_ggaa(T68, T69, T93, T94))
U26_ga(T69, T67, T68, T9, split51_out_ggaa(T68, T69, T93, T94)) → U27_ga(T69, T67, T68, T9, qsort1_in_aa(.(T67, T93), X12))
qsort1_in_aa([], []) → qsort1_out_aa([], [])
qsort1_in_aa(.(T14, []), T9) → U19_aa(T14, T9, qsort14_in_a(X12))
U19_aa(T14, T9, qsort14_out_a(X12)) → qsort1_out_aa(.(T14, []), T9)
qsort1_in_aa(.(T14, []), T9) → U20_aa(T14, T9, qsort14_in_a(T17))
U20_aa(T14, T9, qsort14_out_a(T17)) → U21_aa(T14, T9, qsort14_in_a(X13))
U21_aa(T14, T9, qsort14_out_a(X13)) → qsort1_out_aa(.(T14, []), T9)
U20_aa(T14, T9, qsort14_out_a(T17)) → U22_aa(T14, T9, T17, qsort14_in_a(T20))
U22_aa(T14, T9, T17, qsort14_out_a(T20)) → U23_aa(T14, T9, append23_in_gaga(T17, T14, T20, T9))
append23_in_gaga([], T33, T34, .(T33, T34)) → append23_out_gaga([], T33, T34, .(T33, T34))
append23_in_gaga(.(T45, T46), T47, T48, .(T45, T50)) → U1_gaga(T45, T46, T47, T48, T50, append23_in_gaga(T46, T47, T48, T50))
U1_gaga(T45, T46, T47, T48, T50, append23_out_gaga(T46, T47, T48, T50)) → append23_out_gaga(.(T45, T46), T47, T48, .(T45, T50))
U23_aa(T14, T9, append23_out_gaga(T17, T14, T20, T9)) → qsort1_out_aa(.(T14, []), T9)
qsort1_in_aa(.(T69, .(T67, T68)), T9) → U24_aa(T69, T67, T68, T9, le36_in_aa(T67, T69))
le36_in_aa(s(T82), s(T83)) → U2_aa(T82, T83, le36_in_aa(T82, T83))
le36_in_aa(0, s(T90)) → le36_out_aa(0, s(T90))
le36_in_aa(0, 0) → le36_out_aa(0, 0)
U2_aa(T82, T83, le36_out_aa(T82, T83)) → le36_out_aa(s(T82), s(T83))
U24_aa(T69, T67, T68, T9, le36_out_aa(T67, T69)) → qsort1_out_aa(.(T69, .(T67, T68)), T9)
U24_aa(T69, T67, T68, T9, le36_out_aa(T67, T69)) → U25_aa(T69, T67, T68, T9, split51_in_aaaa(T68, T69, X93, X94))
split51_in_aaaa([], T101, [], []) → split51_out_aaaa([], T101, [], [])
split51_in_aaaa(.(T114, T115), T116, .(T114, X167), X168) → U3_aaaa(T114, T115, T116, X167, X168, le36_in_aa(T114, T116))
U3_aaaa(T114, T115, T116, X167, X168, le36_out_aa(T114, T116)) → split51_out_aaaa(.(T114, T115), T116, .(T114, X167), X168)
U3_aaaa(T114, T115, T116, X167, X168, le36_out_aa(T114, T116)) → U4_aaaa(T114, T115, T116, X167, X168, split51_in_aaaa(T115, T116, X167, X168))
split51_in_aaaa(.(T129, T130), T131, X199, .(T129, X200)) → U5_aaaa(T129, T130, T131, X199, X200, gt67_in_aa(T129, T131))
gt67_in_aa(s(T144), s(T145)) → U7_aa(T144, T145, gt67_in_aa(T144, T145))
gt67_in_aa(s(T150), 0) → gt67_out_aa(s(T150), 0)
U7_aa(T144, T145, gt67_out_aa(T144, T145)) → gt67_out_aa(s(T144), s(T145))
U5_aaaa(T129, T130, T131, X199, X200, gt67_out_aa(T129, T131)) → split51_out_aaaa(.(T129, T130), T131, X199, .(T129, X200))
U5_aaaa(T129, T130, T131, X199, X200, gt67_out_aa(T129, T131)) → U6_aaaa(T129, T130, T131, X199, X200, split51_in_agaa(T130, T131, X199, X200))
split51_in_agaa([], T101, [], []) → split51_out_agaa([], T101, [], [])
split51_in_agaa(.(T114, T115), T116, .(T114, X167), X168) → U3_agaa(T114, T115, T116, X167, X168, le36_in_ag(T114, T116))
le36_in_ag(s(T82), s(T83)) → U2_ag(T82, T83, le36_in_ag(T82, T83))
le36_in_ag(0, s(T90)) → le36_out_ag(0, s(T90))
le36_in_ag(0, 0) → le36_out_ag(0, 0)
U2_ag(T82, T83, le36_out_ag(T82, T83)) → le36_out_ag(s(T82), s(T83))
U3_agaa(T114, T115, T116, X167, X168, le36_out_ag(T114, T116)) → split51_out_agaa(.(T114, T115), T116, .(T114, X167), X168)
U3_agaa(T114, T115, T116, X167, X168, le36_out_ag(T114, T116)) → U4_agaa(T114, T115, T116, X167, X168, split51_in_agaa(T115, T116, X167, X168))
split51_in_agaa(.(T129, T130), T131, X199, .(T129, X200)) → U5_agaa(T129, T130, T131, X199, X200, gt67_in_ag(T129, T131))
gt67_in_ag(s(T144), s(T145)) → U7_ag(T144, T145, gt67_in_ag(T144, T145))
gt67_in_ag(s(T150), 0) → gt67_out_ag(s(T150), 0)
U7_ag(T144, T145, gt67_out_ag(T144, T145)) → gt67_out_ag(s(T144), s(T145))
U5_agaa(T129, T130, T131, X199, X200, gt67_out_ag(T129, T131)) → split51_out_agaa(.(T129, T130), T131, X199, .(T129, X200))
U5_agaa(T129, T130, T131, X199, X200, gt67_out_ag(T129, T131)) → U6_agaa(T129, T130, T131, X199, X200, split51_in_agaa(T130, T131, X199, X200))
U6_agaa(T129, T130, T131, X199, X200, split51_out_agaa(T130, T131, X199, X200)) → split51_out_agaa(.(T129, T130), T131, X199, .(T129, X200))
U4_agaa(T114, T115, T116, X167, X168, split51_out_agaa(T115, T116, X167, X168)) → split51_out_agaa(.(T114, T115), T116, .(T114, X167), X168)
U6_aaaa(T129, T130, T131, X199, X200, split51_out_agaa(T130, T131, X199, X200)) → split51_out_aaaa(.(T129, T130), T131, X199, .(T129, X200))
U4_aaaa(T114, T115, T116, X167, X168, split51_out_aaaa(T115, T116, X167, X168)) → split51_out_aaaa(.(T114, T115), T116, .(T114, X167), X168)
U25_aa(T69, T67, T68, T9, split51_out_aaaa(T68, T69, X93, X94)) → qsort1_out_aa(.(T69, .(T67, T68)), T9)
U24_aa(T69, T67, T68, T9, le36_out_aa(T67, T69)) → U26_aa(T69, T67, T68, T9, split51_in_aaaa(T68, T69, T93, T94))
U26_aa(T69, T67, T68, T9, split51_out_aaaa(T68, T69, T93, T94)) → U27_aa(T69, T67, T68, T9, qsort1_in_aa(.(T67, T93), X12))
qsort1_in_aa(.(T215, .(T213, T214)), T9) → U30_aa(T215, T213, T214, T9, gt67_in_aa(T213, T215))
U30_aa(T215, T213, T214, T9, gt67_out_aa(T213, T215)) → qsort1_out_aa(.(T215, .(T213, T214)), T9)
U30_aa(T215, T213, T214, T9, gt67_out_aa(T213, T215)) → U31_aa(T215, T213, T214, T9, split51_in_agaa(T214, T215, X323, X324))
U31_aa(T215, T213, T214, T9, split51_out_agaa(T214, T215, X323, X324)) → qsort1_out_aa(.(T215, .(T213, T214)), T9)
U30_aa(T215, T213, T214, T9, gt67_out_aa(T213, T215)) → U32_aa(T215, T213, T214, T9, split51_in_agaa(T214, T215, T222, T223))
U32_aa(T215, T213, T214, T9, split51_out_agaa(T214, T215, T222, T223)) → U33_aa(T215, T213, T214, T9, qsort79_in_aa(T222, X12))
qsort79_in_aa([], []) → qsort79_out_aa([], [])
qsort79_in_aa(.(T163, T164), X265) → U8_aa(T163, T164, X265, split51_in_aaaa(T164, T163, X261, X262))
U8_aa(T163, T164, X265, split51_out_aaaa(T164, T163, X261, X262)) → qsort79_out_aa(.(T163, T164), X265)
qsort79_in_aa(.(T163, T164), X265) → U9_aa(T163, T164, X265, split51_in_aaaa(T164, T163, T167, T168))
U9_aa(T163, T164, X265, split51_out_aaaa(T164, T163, T167, T168)) → U10_aa(T163, T164, X265, qsort79_in_aa(T167, X263))
U10_aa(T163, T164, X265, qsort79_out_aa(T167, X263)) → qsort79_out_aa(.(T163, T164), X265)
U9_aa(T163, T164, X265, split51_out_aaaa(T164, T163, T167, T168)) → U11_aa(T163, T164, X265, T168, qsort79_in_aa(T167, T171))
U11_aa(T163, T164, X265, T168, qsort79_out_aa(T167, T171)) → U12_aa(T163, T164, X265, qsort79_in_aa(T168, X264))
U12_aa(T163, T164, X265, qsort79_out_aa(T168, X264)) → qsort79_out_aa(.(T163, T164), X265)
U11_aa(T163, T164, X265, T168, qsort79_out_aa(T167, T171)) → U13_aa(T163, T164, X265, T171, qsort79_in_aa(T168, T172))
U13_aa(T163, T164, X265, T171, qsort79_out_aa(T168, T172)) → U14_aa(T163, T164, X265, append94_in_aaaa(T171, T163, T172, X265))
append94_in_aaaa([], T185, T186, .(T185, T186)) → append94_out_aaaa([], T185, T186, .(T185, T186))
append94_in_aaaa(.(T195, T196), T197, T198, .(T195, X295)) → U15_aaaa(T195, T196, T197, T198, X295, append94_in_aaaa(T196, T197, T198, X295))
U15_aaaa(T195, T196, T197, T198, X295, append94_out_aaaa(T196, T197, T198, X295)) → append94_out_aaaa(.(T195, T196), T197, T198, .(T195, X295))
U14_aa(T163, T164, X265, append94_out_aaaa(T171, T163, T172, X265)) → qsort79_out_aa(.(T163, T164), X265)
U33_aa(T215, T213, T214, T9, qsort79_out_aa(T222, X12)) → qsort1_out_aa(.(T215, .(T213, T214)), T9)
U32_aa(T215, T213, T214, T9, split51_out_agaa(T214, T215, T222, T223)) → U34_aa(T215, T213, T214, T9, T223, qsort79_in_aa(T222, T226))
U34_aa(T215, T213, T214, T9, T223, qsort79_out_aa(T222, T226)) → U35_aa(T215, T213, T214, T9, p78_in_aaaga(.(T213, T223), X13, T226, T215, T9))
p78_in_aaaga(T94, X13, T155, T69, T9) → U16_aaaga(T94, X13, T155, T69, T9, qsort79_in_aa(T94, X13))
U16_aaaga(T94, X13, T155, T69, T9, qsort79_out_aa(T94, X13)) → p78_out_aaaga(T94, X13, T155, T69, T9)
p78_in_aaaga(T94, T158, T155, T69, T9) → U17_aaaga(T94, T158, T155, T69, T9, qsort79_in_aa(T94, T158))
U17_aaaga(T94, T158, T155, T69, T9, qsort79_out_aa(T94, T158)) → U18_aaaga(T94, T158, T155, T69, T9, append23_in_agaa(T155, T69, T158, T9))
append23_in_agaa([], T33, T34, .(T33, T34)) → append23_out_agaa([], T33, T34, .(T33, T34))
append23_in_agaa(.(T45, T46), T47, T48, .(T45, T50)) → U1_agaa(T45, T46, T47, T48, T50, append23_in_agaa(T46, T47, T48, T50))
U1_agaa(T45, T46, T47, T48, T50, append23_out_agaa(T46, T47, T48, T50)) → append23_out_agaa(.(T45, T46), T47, T48, .(T45, T50))
U18_aaaga(T94, T158, T155, T69, T9, append23_out_agaa(T155, T69, T158, T9)) → p78_out_aaaga(T94, T158, T155, T69, T9)
U35_aa(T215, T213, T214, T9, p78_out_aaaga(.(T213, T223), X13, T226, T215, T9)) → qsort1_out_aa(.(T215, .(T213, T214)), T9)
U27_aa(T69, T67, T68, T9, qsort1_out_aa(.(T67, T93), X12)) → qsort1_out_aa(.(T69, .(T67, T68)), T9)
U26_aa(T69, T67, T68, T9, split51_out_aaaa(T68, T69, T93, T94)) → U28_aa(T69, T67, T68, T9, T94, qsort1_in_aa(.(T67, T93), T155))
U28_aa(T69, T67, T68, T9, T94, qsort1_out_aa(.(T67, T93), T155)) → U29_aa(T69, T67, T68, T9, p78_in_aaaaa(T94, X13, T155, T69, T9))
p78_in_aaaaa(T94, X13, T155, T69, T9) → U16_aaaaa(T94, X13, T155, T69, T9, qsort79_in_aa(T94, X13))
U16_aaaaa(T94, X13, T155, T69, T9, qsort79_out_aa(T94, X13)) → p78_out_aaaaa(T94, X13, T155, T69, T9)
p78_in_aaaaa(T94, T158, T155, T69, T9) → U17_aaaaa(T94, T158, T155, T69, T9, qsort79_in_aa(T94, T158))
U17_aaaaa(T94, T158, T155, T69, T9, qsort79_out_aa(T94, T158)) → U18_aaaaa(T94, T158, T155, T69, T9, append23_in_aaaa(T155, T69, T158, T9))
append23_in_aaaa([], T33, T34, .(T33, T34)) → append23_out_aaaa([], T33, T34, .(T33, T34))
append23_in_aaaa(.(T45, T46), T47, T48, .(T45, T50)) → U1_aaaa(T45, T46, T47, T48, T50, append23_in_aaaa(T46, T47, T48, T50))
U1_aaaa(T45, T46, T47, T48, T50, append23_out_aaaa(T46, T47, T48, T50)) → append23_out_aaaa(.(T45, T46), T47, T48, .(T45, T50))
U18_aaaaa(T94, T158, T155, T69, T9, append23_out_aaaa(T155, T69, T158, T9)) → p78_out_aaaaa(T94, T158, T155, T69, T9)
U29_aa(T69, T67, T68, T9, p78_out_aaaaa(T94, X13, T155, T69, T9)) → qsort1_out_aa(.(T69, .(T67, T68)), T9)
U27_ga(T69, T67, T68, T9, qsort1_out_aa(.(T67, T93), X12)) → qsort1_out_ga(.(T69, .(T67, T68)), T9)
U26_ga(T69, T67, T68, T9, split51_out_ggaa(T68, T69, T93, T94)) → U28_ga(T69, T67, T68, T9, T94, qsort1_in_aa(.(T67, T93), T155))
U28_ga(T69, T67, T68, T9, T94, qsort1_out_aa(.(T67, T93), T155)) → U29_ga(T69, T67, T68, T9, p78_in_aaaga(T94, X13, T155, T69, T9))
U29_ga(T69, T67, T68, T9, p78_out_aaaga(T94, X13, T155, T69, T9)) → qsort1_out_ga(.(T69, .(T67, T68)), T9)
qsort1_in_ga(.(T215, .(T213, T214)), T9) → U30_ga(T215, T213, T214, T9, gt67_in_gg(T213, T215))
U30_ga(T215, T213, T214, T9, gt67_out_gg(T213, T215)) → qsort1_out_ga(.(T215, .(T213, T214)), T9)
U30_ga(T215, T213, T214, T9, gt67_out_gg(T213, T215)) → U31_ga(T215, T213, T214, T9, split51_in_ggaa(T214, T215, X323, X324))
U31_ga(T215, T213, T214, T9, split51_out_ggaa(T214, T215, X323, X324)) → qsort1_out_ga(.(T215, .(T213, T214)), T9)
U30_ga(T215, T213, T214, T9, gt67_out_gg(T213, T215)) → U32_ga(T215, T213, T214, T9, split51_in_ggaa(T214, T215, T222, T223))
U32_ga(T215, T213, T214, T9, split51_out_ggaa(T214, T215, T222, T223)) → U33_ga(T215, T213, T214, T9, qsort79_in_aa(T222, X12))
U33_ga(T215, T213, T214, T9, qsort79_out_aa(T222, X12)) → qsort1_out_ga(.(T215, .(T213, T214)), T9)
U32_ga(T215, T213, T214, T9, split51_out_ggaa(T214, T215, T222, T223)) → U34_ga(T215, T213, T214, T9, T223, qsort79_in_aa(T222, T226))
U34_ga(T215, T213, T214, T9, T223, qsort79_out_aa(T222, T226)) → U35_ga(T215, T213, T214, T9, p78_in_aaaga(.(T213, T223), X13, T226, T215, T9))
U35_ga(T215, T213, T214, T9, p78_out_aaaga(.(T213, T223), X13, T226, T215, T9)) → qsort1_out_ga(.(T215, .(T213, T214)), T9)
GT67_IN_AA(s(T144), s(T145)) → GT67_IN_AA(T144, T145)
GT67_IN_AA → GT67_IN_AA
LE36_IN_AA(s(T82), s(T83)) → LE36_IN_AA(T82, T83)
qsort1_in_ga([], []) → qsort1_out_ga([], [])
qsort1_in_ga(.(T14, []), T9) → U19_ga(T14, T9, qsort14_in_a(X12))
qsort14_in_a([]) → qsort14_out_a([])
U19_ga(T14, T9, qsort14_out_a(X12)) → qsort1_out_ga(.(T14, []), T9)
qsort1_in_ga(.(T14, []), T9) → U20_ga(T14, T9, qsort14_in_a(T17))
U20_ga(T14, T9, qsort14_out_a(T17)) → U21_ga(T14, T9, qsort14_in_a(X13))
U21_ga(T14, T9, qsort14_out_a(X13)) → qsort1_out_ga(.(T14, []), T9)
U20_ga(T14, T9, qsort14_out_a(T17)) → U22_ga(T14, T9, T17, qsort14_in_a(T20))
U22_ga(T14, T9, T17, qsort14_out_a(T20)) → U23_ga(T14, T9, append23_in_ggga(T17, T14, T20, T9))
append23_in_ggga([], T33, T34, .(T33, T34)) → append23_out_ggga([], T33, T34, .(T33, T34))
append23_in_ggga(.(T45, T46), T47, T48, .(T45, T50)) → U1_ggga(T45, T46, T47, T48, T50, append23_in_ggga(T46, T47, T48, T50))
U1_ggga(T45, T46, T47, T48, T50, append23_out_ggga(T46, T47, T48, T50)) → append23_out_ggga(.(T45, T46), T47, T48, .(T45, T50))
U23_ga(T14, T9, append23_out_ggga(T17, T14, T20, T9)) → qsort1_out_ga(.(T14, []), T9)
qsort1_in_ga(.(T69, .(T67, T68)), T9) → U24_ga(T69, T67, T68, T9, le36_in_gg(T67, T69))
le36_in_gg(s(T82), s(T83)) → U2_gg(T82, T83, le36_in_gg(T82, T83))
le36_in_gg(0, s(T90)) → le36_out_gg(0, s(T90))
le36_in_gg(0, 0) → le36_out_gg(0, 0)
U2_gg(T82, T83, le36_out_gg(T82, T83)) → le36_out_gg(s(T82), s(T83))
U24_ga(T69, T67, T68, T9, le36_out_gg(T67, T69)) → qsort1_out_ga(.(T69, .(T67, T68)), T9)
U24_ga(T69, T67, T68, T9, le36_out_gg(T67, T69)) → U25_ga(T69, T67, T68, T9, split51_in_ggaa(T68, T69, X93, X94))
split51_in_ggaa([], T101, [], []) → split51_out_ggaa([], T101, [], [])
split51_in_ggaa(.(T114, T115), T116, .(T114, X167), X168) → U3_ggaa(T114, T115, T116, X167, X168, le36_in_gg(T114, T116))
U3_ggaa(T114, T115, T116, X167, X168, le36_out_gg(T114, T116)) → split51_out_ggaa(.(T114, T115), T116, .(T114, X167), X168)
U3_ggaa(T114, T115, T116, X167, X168, le36_out_gg(T114, T116)) → U4_ggaa(T114, T115, T116, X167, X168, split51_in_ggaa(T115, T116, X167, X168))
split51_in_ggaa(.(T129, T130), T131, X199, .(T129, X200)) → U5_ggaa(T129, T130, T131, X199, X200, gt67_in_gg(T129, T131))
gt67_in_gg(s(T144), s(T145)) → U7_gg(T144, T145, gt67_in_gg(T144, T145))
gt67_in_gg(s(T150), 0) → gt67_out_gg(s(T150), 0)
U7_gg(T144, T145, gt67_out_gg(T144, T145)) → gt67_out_gg(s(T144), s(T145))
U5_ggaa(T129, T130, T131, X199, X200, gt67_out_gg(T129, T131)) → split51_out_ggaa(.(T129, T130), T131, X199, .(T129, X200))
U5_ggaa(T129, T130, T131, X199, X200, gt67_out_gg(T129, T131)) → U6_ggaa(T129, T130, T131, X199, X200, split51_in_ggaa(T130, T131, X199, X200))
U6_ggaa(T129, T130, T131, X199, X200, split51_out_ggaa(T130, T131, X199, X200)) → split51_out_ggaa(.(T129, T130), T131, X199, .(T129, X200))
U4_ggaa(T114, T115, T116, X167, X168, split51_out_ggaa(T115, T116, X167, X168)) → split51_out_ggaa(.(T114, T115), T116, .(T114, X167), X168)
U25_ga(T69, T67, T68, T9, split51_out_ggaa(T68, T69, X93, X94)) → qsort1_out_ga(.(T69, .(T67, T68)), T9)
U24_ga(T69, T67, T68, T9, le36_out_gg(T67, T69)) → U26_ga(T69, T67, T68, T9, split51_in_ggaa(T68, T69, T93, T94))
U26_ga(T69, T67, T68, T9, split51_out_ggaa(T68, T69, T93, T94)) → U27_ga(T69, T67, T68, T9, qsort1_in_aa(.(T67, T93), X12))
qsort1_in_aa([], []) → qsort1_out_aa([], [])
qsort1_in_aa(.(T14, []), T9) → U19_aa(T14, T9, qsort14_in_a(X12))
U19_aa(T14, T9, qsort14_out_a(X12)) → qsort1_out_aa(.(T14, []), T9)
qsort1_in_aa(.(T14, []), T9) → U20_aa(T14, T9, qsort14_in_a(T17))
U20_aa(T14, T9, qsort14_out_a(T17)) → U21_aa(T14, T9, qsort14_in_a(X13))
U21_aa(T14, T9, qsort14_out_a(X13)) → qsort1_out_aa(.(T14, []), T9)
U20_aa(T14, T9, qsort14_out_a(T17)) → U22_aa(T14, T9, T17, qsort14_in_a(T20))
U22_aa(T14, T9, T17, qsort14_out_a(T20)) → U23_aa(T14, T9, append23_in_gaga(T17, T14, T20, T9))
append23_in_gaga([], T33, T34, .(T33, T34)) → append23_out_gaga([], T33, T34, .(T33, T34))
append23_in_gaga(.(T45, T46), T47, T48, .(T45, T50)) → U1_gaga(T45, T46, T47, T48, T50, append23_in_gaga(T46, T47, T48, T50))
U1_gaga(T45, T46, T47, T48, T50, append23_out_gaga(T46, T47, T48, T50)) → append23_out_gaga(.(T45, T46), T47, T48, .(T45, T50))
U23_aa(T14, T9, append23_out_gaga(T17, T14, T20, T9)) → qsort1_out_aa(.(T14, []), T9)
qsort1_in_aa(.(T69, .(T67, T68)), T9) → U24_aa(T69, T67, T68, T9, le36_in_aa(T67, T69))
le36_in_aa(s(T82), s(T83)) → U2_aa(T82, T83, le36_in_aa(T82, T83))
le36_in_aa(0, s(T90)) → le36_out_aa(0, s(T90))
le36_in_aa(0, 0) → le36_out_aa(0, 0)
U2_aa(T82, T83, le36_out_aa(T82, T83)) → le36_out_aa(s(T82), s(T83))
U24_aa(T69, T67, T68, T9, le36_out_aa(T67, T69)) → qsort1_out_aa(.(T69, .(T67, T68)), T9)
U24_aa(T69, T67, T68, T9, le36_out_aa(T67, T69)) → U25_aa(T69, T67, T68, T9, split51_in_aaaa(T68, T69, X93, X94))
split51_in_aaaa([], T101, [], []) → split51_out_aaaa([], T101, [], [])
split51_in_aaaa(.(T114, T115), T116, .(T114, X167), X168) → U3_aaaa(T114, T115, T116, X167, X168, le36_in_aa(T114, T116))
U3_aaaa(T114, T115, T116, X167, X168, le36_out_aa(T114, T116)) → split51_out_aaaa(.(T114, T115), T116, .(T114, X167), X168)
U3_aaaa(T114, T115, T116, X167, X168, le36_out_aa(T114, T116)) → U4_aaaa(T114, T115, T116, X167, X168, split51_in_aaaa(T115, T116, X167, X168))
split51_in_aaaa(.(T129, T130), T131, X199, .(T129, X200)) → U5_aaaa(T129, T130, T131, X199, X200, gt67_in_aa(T129, T131))
gt67_in_aa(s(T144), s(T145)) → U7_aa(T144, T145, gt67_in_aa(T144, T145))
gt67_in_aa(s(T150), 0) → gt67_out_aa(s(T150), 0)
U7_aa(T144, T145, gt67_out_aa(T144, T145)) → gt67_out_aa(s(T144), s(T145))
U5_aaaa(T129, T130, T131, X199, X200, gt67_out_aa(T129, T131)) → split51_out_aaaa(.(T129, T130), T131, X199, .(T129, X200))
U5_aaaa(T129, T130, T131, X199, X200, gt67_out_aa(T129, T131)) → U6_aaaa(T129, T130, T131, X199, X200, split51_in_agaa(T130, T131, X199, X200))
split51_in_agaa([], T101, [], []) → split51_out_agaa([], T101, [], [])
split51_in_agaa(.(T114, T115), T116, .(T114, X167), X168) → U3_agaa(T114, T115, T116, X167, X168, le36_in_ag(T114, T116))
le36_in_ag(s(T82), s(T83)) → U2_ag(T82, T83, le36_in_ag(T82, T83))
le36_in_ag(0, s(T90)) → le36_out_ag(0, s(T90))
le36_in_ag(0, 0) → le36_out_ag(0, 0)
U2_ag(T82, T83, le36_out_ag(T82, T83)) → le36_out_ag(s(T82), s(T83))
U3_agaa(T114, T115, T116, X167, X168, le36_out_ag(T114, T116)) → split51_out_agaa(.(T114, T115), T116, .(T114, X167), X168)
U3_agaa(T114, T115, T116, X167, X168, le36_out_ag(T114, T116)) → U4_agaa(T114, T115, T116, X167, X168, split51_in_agaa(T115, T116, X167, X168))
split51_in_agaa(.(T129, T130), T131, X199, .(T129, X200)) → U5_agaa(T129, T130, T131, X199, X200, gt67_in_ag(T129, T131))
gt67_in_ag(s(T144), s(T145)) → U7_ag(T144, T145, gt67_in_ag(T144, T145))
gt67_in_ag(s(T150), 0) → gt67_out_ag(s(T150), 0)
U7_ag(T144, T145, gt67_out_ag(T144, T145)) → gt67_out_ag(s(T144), s(T145))
U5_agaa(T129, T130, T131, X199, X200, gt67_out_ag(T129, T131)) → split51_out_agaa(.(T129, T130), T131, X199, .(T129, X200))
U5_agaa(T129, T130, T131, X199, X200, gt67_out_ag(T129, T131)) → U6_agaa(T129, T130, T131, X199, X200, split51_in_agaa(T130, T131, X199, X200))
U6_agaa(T129, T130, T131, X199, X200, split51_out_agaa(T130, T131, X199, X200)) → split51_out_agaa(.(T129, T130), T131, X199, .(T129, X200))
U4_agaa(T114, T115, T116, X167, X168, split51_out_agaa(T115, T116, X167, X168)) → split51_out_agaa(.(T114, T115), T116, .(T114, X167), X168)
U6_aaaa(T129, T130, T131, X199, X200, split51_out_agaa(T130, T131, X199, X200)) → split51_out_aaaa(.(T129, T130), T131, X199, .(T129, X200))
U4_aaaa(T114, T115, T116, X167, X168, split51_out_aaaa(T115, T116, X167, X168)) → split51_out_aaaa(.(T114, T115), T116, .(T114, X167), X168)
U25_aa(T69, T67, T68, T9, split51_out_aaaa(T68, T69, X93, X94)) → qsort1_out_aa(.(T69, .(T67, T68)), T9)
U24_aa(T69, T67, T68, T9, le36_out_aa(T67, T69)) → U26_aa(T69, T67, T68, T9, split51_in_aaaa(T68, T69, T93, T94))
U26_aa(T69, T67, T68, T9, split51_out_aaaa(T68, T69, T93, T94)) → U27_aa(T69, T67, T68, T9, qsort1_in_aa(.(T67, T93), X12))
qsort1_in_aa(.(T215, .(T213, T214)), T9) → U30_aa(T215, T213, T214, T9, gt67_in_aa(T213, T215))
U30_aa(T215, T213, T214, T9, gt67_out_aa(T213, T215)) → qsort1_out_aa(.(T215, .(T213, T214)), T9)
U30_aa(T215, T213, T214, T9, gt67_out_aa(T213, T215)) → U31_aa(T215, T213, T214, T9, split51_in_agaa(T214, T215, X323, X324))
U31_aa(T215, T213, T214, T9, split51_out_agaa(T214, T215, X323, X324)) → qsort1_out_aa(.(T215, .(T213, T214)), T9)
U30_aa(T215, T213, T214, T9, gt67_out_aa(T213, T215)) → U32_aa(T215, T213, T214, T9, split51_in_agaa(T214, T215, T222, T223))
U32_aa(T215, T213, T214, T9, split51_out_agaa(T214, T215, T222, T223)) → U33_aa(T215, T213, T214, T9, qsort79_in_aa(T222, X12))
qsort79_in_aa([], []) → qsort79_out_aa([], [])
qsort79_in_aa(.(T163, T164), X265) → U8_aa(T163, T164, X265, split51_in_aaaa(T164, T163, X261, X262))
U8_aa(T163, T164, X265, split51_out_aaaa(T164, T163, X261, X262)) → qsort79_out_aa(.(T163, T164), X265)
qsort79_in_aa(.(T163, T164), X265) → U9_aa(T163, T164, X265, split51_in_aaaa(T164, T163, T167, T168))
U9_aa(T163, T164, X265, split51_out_aaaa(T164, T163, T167, T168)) → U10_aa(T163, T164, X265, qsort79_in_aa(T167, X263))
U10_aa(T163, T164, X265, qsort79_out_aa(T167, X263)) → qsort79_out_aa(.(T163, T164), X265)
U9_aa(T163, T164, X265, split51_out_aaaa(T164, T163, T167, T168)) → U11_aa(T163, T164, X265, T168, qsort79_in_aa(T167, T171))
U11_aa(T163, T164, X265, T168, qsort79_out_aa(T167, T171)) → U12_aa(T163, T164, X265, qsort79_in_aa(T168, X264))
U12_aa(T163, T164, X265, qsort79_out_aa(T168, X264)) → qsort79_out_aa(.(T163, T164), X265)
U11_aa(T163, T164, X265, T168, qsort79_out_aa(T167, T171)) → U13_aa(T163, T164, X265, T171, qsort79_in_aa(T168, T172))
U13_aa(T163, T164, X265, T171, qsort79_out_aa(T168, T172)) → U14_aa(T163, T164, X265, append94_in_aaaa(T171, T163, T172, X265))
append94_in_aaaa([], T185, T186, .(T185, T186)) → append94_out_aaaa([], T185, T186, .(T185, T186))
append94_in_aaaa(.(T195, T196), T197, T198, .(T195, X295)) → U15_aaaa(T195, T196, T197, T198, X295, append94_in_aaaa(T196, T197, T198, X295))
U15_aaaa(T195, T196, T197, T198, X295, append94_out_aaaa(T196, T197, T198, X295)) → append94_out_aaaa(.(T195, T196), T197, T198, .(T195, X295))
U14_aa(T163, T164, X265, append94_out_aaaa(T171, T163, T172, X265)) → qsort79_out_aa(.(T163, T164), X265)
U33_aa(T215, T213, T214, T9, qsort79_out_aa(T222, X12)) → qsort1_out_aa(.(T215, .(T213, T214)), T9)
U32_aa(T215, T213, T214, T9, split51_out_agaa(T214, T215, T222, T223)) → U34_aa(T215, T213, T214, T9, T223, qsort79_in_aa(T222, T226))
U34_aa(T215, T213, T214, T9, T223, qsort79_out_aa(T222, T226)) → U35_aa(T215, T213, T214, T9, p78_in_aaaga(.(T213, T223), X13, T226, T215, T9))
p78_in_aaaga(T94, X13, T155, T69, T9) → U16_aaaga(T94, X13, T155, T69, T9, qsort79_in_aa(T94, X13))
U16_aaaga(T94, X13, T155, T69, T9, qsort79_out_aa(T94, X13)) → p78_out_aaaga(T94, X13, T155, T69, T9)
p78_in_aaaga(T94, T158, T155, T69, T9) → U17_aaaga(T94, T158, T155, T69, T9, qsort79_in_aa(T94, T158))
U17_aaaga(T94, T158, T155, T69, T9, qsort79_out_aa(T94, T158)) → U18_aaaga(T94, T158, T155, T69, T9, append23_in_agaa(T155, T69, T158, T9))
append23_in_agaa([], T33, T34, .(T33, T34)) → append23_out_agaa([], T33, T34, .(T33, T34))
append23_in_agaa(.(T45, T46), T47, T48, .(T45, T50)) → U1_agaa(T45, T46, T47, T48, T50, append23_in_agaa(T46, T47, T48, T50))
U1_agaa(T45, T46, T47, T48, T50, append23_out_agaa(T46, T47, T48, T50)) → append23_out_agaa(.(T45, T46), T47, T48, .(T45, T50))
U18_aaaga(T94, T158, T155, T69, T9, append23_out_agaa(T155, T69, T158, T9)) → p78_out_aaaga(T94, T158, T155, T69, T9)
U35_aa(T215, T213, T214, T9, p78_out_aaaga(.(T213, T223), X13, T226, T215, T9)) → qsort1_out_aa(.(T215, .(T213, T214)), T9)
U27_aa(T69, T67, T68, T9, qsort1_out_aa(.(T67, T93), X12)) → qsort1_out_aa(.(T69, .(T67, T68)), T9)
U26_aa(T69, T67, T68, T9, split51_out_aaaa(T68, T69, T93, T94)) → U28_aa(T69, T67, T68, T9, T94, qsort1_in_aa(.(T67, T93), T155))
U28_aa(T69, T67, T68, T9, T94, qsort1_out_aa(.(T67, T93), T155)) → U29_aa(T69, T67, T68, T9, p78_in_aaaaa(T94, X13, T155, T69, T9))
p78_in_aaaaa(T94, X13, T155, T69, T9) → U16_aaaaa(T94, X13, T155, T69, T9, qsort79_in_aa(T94, X13))
U16_aaaaa(T94, X13, T155, T69, T9, qsort79_out_aa(T94, X13)) → p78_out_aaaaa(T94, X13, T155, T69, T9)
p78_in_aaaaa(T94, T158, T155, T69, T9) → U17_aaaaa(T94, T158, T155, T69, T9, qsort79_in_aa(T94, T158))
U17_aaaaa(T94, T158, T155, T69, T9, qsort79_out_aa(T94, T158)) → U18_aaaaa(T94, T158, T155, T69, T9, append23_in_aaaa(T155, T69, T158, T9))
append23_in_aaaa([], T33, T34, .(T33, T34)) → append23_out_aaaa([], T33, T34, .(T33, T34))
append23_in_aaaa(.(T45, T46), T47, T48, .(T45, T50)) → U1_aaaa(T45, T46, T47, T48, T50, append23_in_aaaa(T46, T47, T48, T50))
U1_aaaa(T45, T46, T47, T48, T50, append23_out_aaaa(T46, T47, T48, T50)) → append23_out_aaaa(.(T45, T46), T47, T48, .(T45, T50))
U18_aaaaa(T94, T158, T155, T69, T9, append23_out_aaaa(T155, T69, T158, T9)) → p78_out_aaaaa(T94, T158, T155, T69, T9)
U29_aa(T69, T67, T68, T9, p78_out_aaaaa(T94, X13, T155, T69, T9)) → qsort1_out_aa(.(T69, .(T67, T68)), T9)
U27_ga(T69, T67, T68, T9, qsort1_out_aa(.(T67, T93), X12)) → qsort1_out_ga(.(T69, .(T67, T68)), T9)
U26_ga(T69, T67, T68, T9, split51_out_ggaa(T68, T69, T93, T94)) → U28_ga(T69, T67, T68, T9, T94, qsort1_in_aa(.(T67, T93), T155))
U28_ga(T69, T67, T68, T9, T94, qsort1_out_aa(.(T67, T93), T155)) → U29_ga(T69, T67, T68, T9, p78_in_aaaga(T94, X13, T155, T69, T9))
U29_ga(T69, T67, T68, T9, p78_out_aaaga(T94, X13, T155, T69, T9)) → qsort1_out_ga(.(T69, .(T67, T68)), T9)
qsort1_in_ga(.(T215, .(T213, T214)), T9) → U30_ga(T215, T213, T214, T9, gt67_in_gg(T213, T215))
U30_ga(T215, T213, T214, T9, gt67_out_gg(T213, T215)) → qsort1_out_ga(.(T215, .(T213, T214)), T9)
U30_ga(T215, T213, T214, T9, gt67_out_gg(T213, T215)) → U31_ga(T215, T213, T214, T9, split51_in_ggaa(T214, T215, X323, X324))
U31_ga(T215, T213, T214, T9, split51_out_ggaa(T214, T215, X323, X324)) → qsort1_out_ga(.(T215, .(T213, T214)), T9)
U30_ga(T215, T213, T214, T9, gt67_out_gg(T213, T215)) → U32_ga(T215, T213, T214, T9, split51_in_ggaa(T214, T215, T222, T223))
U32_ga(T215, T213, T214, T9, split51_out_ggaa(T214, T215, T222, T223)) → U33_ga(T215, T213, T214, T9, qsort79_in_aa(T222, X12))
U33_ga(T215, T213, T214, T9, qsort79_out_aa(T222, X12)) → qsort1_out_ga(.(T215, .(T213, T214)), T9)
U32_ga(T215, T213, T214, T9, split51_out_ggaa(T214, T215, T222, T223)) → U34_ga(T215, T213, T214, T9, T223, qsort79_in_aa(T222, T226))
U34_ga(T215, T213, T214, T9, T223, qsort79_out_aa(T222, T226)) → U35_ga(T215, T213, T214, T9, p78_in_aaaga(.(T213, T223), X13, T226, T215, T9))
U35_ga(T215, T213, T214, T9, p78_out_aaaga(.(T213, T223), X13, T226, T215, T9)) → qsort1_out_ga(.(T215, .(T213, T214)), T9)
LE36_IN_AA(s(T82), s(T83)) → LE36_IN_AA(T82, T83)
LE36_IN_AA → LE36_IN_AA
SPLIT51_IN_AAAA(.(T114, T115), T116, .(T114, X167), X168) → U3_AAAA(T114, T115, T116, X167, X168, le36_in_aa(T114, T116))
U3_AAAA(T114, T115, T116, X167, X168, le36_out_aa(T114, T116)) → SPLIT51_IN_AAAA(T115, T116, X167, X168)
qsort1_in_ga([], []) → qsort1_out_ga([], [])
qsort1_in_ga(.(T14, []), T9) → U19_ga(T14, T9, qsort14_in_a(X12))
qsort14_in_a([]) → qsort14_out_a([])
U19_ga(T14, T9, qsort14_out_a(X12)) → qsort1_out_ga(.(T14, []), T9)
qsort1_in_ga(.(T14, []), T9) → U20_ga(T14, T9, qsort14_in_a(T17))
U20_ga(T14, T9, qsort14_out_a(T17)) → U21_ga(T14, T9, qsort14_in_a(X13))
U21_ga(T14, T9, qsort14_out_a(X13)) → qsort1_out_ga(.(T14, []), T9)
U20_ga(T14, T9, qsort14_out_a(T17)) → U22_ga(T14, T9, T17, qsort14_in_a(T20))
U22_ga(T14, T9, T17, qsort14_out_a(T20)) → U23_ga(T14, T9, append23_in_ggga(T17, T14, T20, T9))
append23_in_ggga([], T33, T34, .(T33, T34)) → append23_out_ggga([], T33, T34, .(T33, T34))
append23_in_ggga(.(T45, T46), T47, T48, .(T45, T50)) → U1_ggga(T45, T46, T47, T48, T50, append23_in_ggga(T46, T47, T48, T50))
U1_ggga(T45, T46, T47, T48, T50, append23_out_ggga(T46, T47, T48, T50)) → append23_out_ggga(.(T45, T46), T47, T48, .(T45, T50))
U23_ga(T14, T9, append23_out_ggga(T17, T14, T20, T9)) → qsort1_out_ga(.(T14, []), T9)
qsort1_in_ga(.(T69, .(T67, T68)), T9) → U24_ga(T69, T67, T68, T9, le36_in_gg(T67, T69))
le36_in_gg(s(T82), s(T83)) → U2_gg(T82, T83, le36_in_gg(T82, T83))
le36_in_gg(0, s(T90)) → le36_out_gg(0, s(T90))
le36_in_gg(0, 0) → le36_out_gg(0, 0)
U2_gg(T82, T83, le36_out_gg(T82, T83)) → le36_out_gg(s(T82), s(T83))
U24_ga(T69, T67, T68, T9, le36_out_gg(T67, T69)) → qsort1_out_ga(.(T69, .(T67, T68)), T9)
U24_ga(T69, T67, T68, T9, le36_out_gg(T67, T69)) → U25_ga(T69, T67, T68, T9, split51_in_ggaa(T68, T69, X93, X94))
split51_in_ggaa([], T101, [], []) → split51_out_ggaa([], T101, [], [])
split51_in_ggaa(.(T114, T115), T116, .(T114, X167), X168) → U3_ggaa(T114, T115, T116, X167, X168, le36_in_gg(T114, T116))
U3_ggaa(T114, T115, T116, X167, X168, le36_out_gg(T114, T116)) → split51_out_ggaa(.(T114, T115), T116, .(T114, X167), X168)
U3_ggaa(T114, T115, T116, X167, X168, le36_out_gg(T114, T116)) → U4_ggaa(T114, T115, T116, X167, X168, split51_in_ggaa(T115, T116, X167, X168))
split51_in_ggaa(.(T129, T130), T131, X199, .(T129, X200)) → U5_ggaa(T129, T130, T131, X199, X200, gt67_in_gg(T129, T131))
gt67_in_gg(s(T144), s(T145)) → U7_gg(T144, T145, gt67_in_gg(T144, T145))
gt67_in_gg(s(T150), 0) → gt67_out_gg(s(T150), 0)
U7_gg(T144, T145, gt67_out_gg(T144, T145)) → gt67_out_gg(s(T144), s(T145))
U5_ggaa(T129, T130, T131, X199, X200, gt67_out_gg(T129, T131)) → split51_out_ggaa(.(T129, T130), T131, X199, .(T129, X200))
U5_ggaa(T129, T130, T131, X199, X200, gt67_out_gg(T129, T131)) → U6_ggaa(T129, T130, T131, X199, X200, split51_in_ggaa(T130, T131, X199, X200))
U6_ggaa(T129, T130, T131, X199, X200, split51_out_ggaa(T130, T131, X199, X200)) → split51_out_ggaa(.(T129, T130), T131, X199, .(T129, X200))
U4_ggaa(T114, T115, T116, X167, X168, split51_out_ggaa(T115, T116, X167, X168)) → split51_out_ggaa(.(T114, T115), T116, .(T114, X167), X168)
U25_ga(T69, T67, T68, T9, split51_out_ggaa(T68, T69, X93, X94)) → qsort1_out_ga(.(T69, .(T67, T68)), T9)
U24_ga(T69, T67, T68, T9, le36_out_gg(T67, T69)) → U26_ga(T69, T67, T68, T9, split51_in_ggaa(T68, T69, T93, T94))
U26_ga(T69, T67, T68, T9, split51_out_ggaa(T68, T69, T93, T94)) → U27_ga(T69, T67, T68, T9, qsort1_in_aa(.(T67, T93), X12))
qsort1_in_aa([], []) → qsort1_out_aa([], [])
qsort1_in_aa(.(T14, []), T9) → U19_aa(T14, T9, qsort14_in_a(X12))
U19_aa(T14, T9, qsort14_out_a(X12)) → qsort1_out_aa(.(T14, []), T9)
qsort1_in_aa(.(T14, []), T9) → U20_aa(T14, T9, qsort14_in_a(T17))
U20_aa(T14, T9, qsort14_out_a(T17)) → U21_aa(T14, T9, qsort14_in_a(X13))
U21_aa(T14, T9, qsort14_out_a(X13)) → qsort1_out_aa(.(T14, []), T9)
U20_aa(T14, T9, qsort14_out_a(T17)) → U22_aa(T14, T9, T17, qsort14_in_a(T20))
U22_aa(T14, T9, T17, qsort14_out_a(T20)) → U23_aa(T14, T9, append23_in_gaga(T17, T14, T20, T9))
append23_in_gaga([], T33, T34, .(T33, T34)) → append23_out_gaga([], T33, T34, .(T33, T34))
append23_in_gaga(.(T45, T46), T47, T48, .(T45, T50)) → U1_gaga(T45, T46, T47, T48, T50, append23_in_gaga(T46, T47, T48, T50))
U1_gaga(T45, T46, T47, T48, T50, append23_out_gaga(T46, T47, T48, T50)) → append23_out_gaga(.(T45, T46), T47, T48, .(T45, T50))
U23_aa(T14, T9, append23_out_gaga(T17, T14, T20, T9)) → qsort1_out_aa(.(T14, []), T9)
qsort1_in_aa(.(T69, .(T67, T68)), T9) → U24_aa(T69, T67, T68, T9, le36_in_aa(T67, T69))
le36_in_aa(s(T82), s(T83)) → U2_aa(T82, T83, le36_in_aa(T82, T83))
le36_in_aa(0, s(T90)) → le36_out_aa(0, s(T90))
le36_in_aa(0, 0) → le36_out_aa(0, 0)
U2_aa(T82, T83, le36_out_aa(T82, T83)) → le36_out_aa(s(T82), s(T83))
U24_aa(T69, T67, T68, T9, le36_out_aa(T67, T69)) → qsort1_out_aa(.(T69, .(T67, T68)), T9)
U24_aa(T69, T67, T68, T9, le36_out_aa(T67, T69)) → U25_aa(T69, T67, T68, T9, split51_in_aaaa(T68, T69, X93, X94))
split51_in_aaaa([], T101, [], []) → split51_out_aaaa([], T101, [], [])
split51_in_aaaa(.(T114, T115), T116, .(T114, X167), X168) → U3_aaaa(T114, T115, T116, X167, X168, le36_in_aa(T114, T116))
U3_aaaa(T114, T115, T116, X167, X168, le36_out_aa(T114, T116)) → split51_out_aaaa(.(T114, T115), T116, .(T114, X167), X168)
U3_aaaa(T114, T115, T116, X167, X168, le36_out_aa(T114, T116)) → U4_aaaa(T114, T115, T116, X167, X168, split51_in_aaaa(T115, T116, X167, X168))
split51_in_aaaa(.(T129, T130), T131, X199, .(T129, X200)) → U5_aaaa(T129, T130, T131, X199, X200, gt67_in_aa(T129, T131))
gt67_in_aa(s(T144), s(T145)) → U7_aa(T144, T145, gt67_in_aa(T144, T145))
gt67_in_aa(s(T150), 0) → gt67_out_aa(s(T150), 0)
U7_aa(T144, T145, gt67_out_aa(T144, T145)) → gt67_out_aa(s(T144), s(T145))
U5_aaaa(T129, T130, T131, X199, X200, gt67_out_aa(T129, T131)) → split51_out_aaaa(.(T129, T130), T131, X199, .(T129, X200))
U5_aaaa(T129, T130, T131, X199, X200, gt67_out_aa(T129, T131)) → U6_aaaa(T129, T130, T131, X199, X200, split51_in_agaa(T130, T131, X199, X200))
split51_in_agaa([], T101, [], []) → split51_out_agaa([], T101, [], [])
split51_in_agaa(.(T114, T115), T116, .(T114, X167), X168) → U3_agaa(T114, T115, T116, X167, X168, le36_in_ag(T114, T116))
le36_in_ag(s(T82), s(T83)) → U2_ag(T82, T83, le36_in_ag(T82, T83))
le36_in_ag(0, s(T90)) → le36_out_ag(0, s(T90))
le36_in_ag(0, 0) → le36_out_ag(0, 0)
U2_ag(T82, T83, le36_out_ag(T82, T83)) → le36_out_ag(s(T82), s(T83))
U3_agaa(T114, T115, T116, X167, X168, le36_out_ag(T114, T116)) → split51_out_agaa(.(T114, T115), T116, .(T114, X167), X168)
U3_agaa(T114, T115, T116, X167, X168, le36_out_ag(T114, T116)) → U4_agaa(T114, T115, T116, X167, X168, split51_in_agaa(T115, T116, X167, X168))
split51_in_agaa(.(T129, T130), T131, X199, .(T129, X200)) → U5_agaa(T129, T130, T131, X199, X200, gt67_in_ag(T129, T131))
gt67_in_ag(s(T144), s(T145)) → U7_ag(T144, T145, gt67_in_ag(T144, T145))
gt67_in_ag(s(T150), 0) → gt67_out_ag(s(T150), 0)
U7_ag(T144, T145, gt67_out_ag(T144, T145)) → gt67_out_ag(s(T144), s(T145))
U5_agaa(T129, T130, T131, X199, X200, gt67_out_ag(T129, T131)) → split51_out_agaa(.(T129, T130), T131, X199, .(T129, X200))
U5_agaa(T129, T130, T131, X199, X200, gt67_out_ag(T129, T131)) → U6_agaa(T129, T130, T131, X199, X200, split51_in_agaa(T130, T131, X199, X200))
U6_agaa(T129, T130, T131, X199, X200, split51_out_agaa(T130, T131, X199, X200)) → split51_out_agaa(.(T129, T130), T131, X199, .(T129, X200))
U4_agaa(T114, T115, T116, X167, X168, split51_out_agaa(T115, T116, X167, X168)) → split51_out_agaa(.(T114, T115), T116, .(T114, X167), X168)
U6_aaaa(T129, T130, T131, X199, X200, split51_out_agaa(T130, T131, X199, X200)) → split51_out_aaaa(.(T129, T130), T131, X199, .(T129, X200))
U4_aaaa(T114, T115, T116, X167, X168, split51_out_aaaa(T115, T116, X167, X168)) → split51_out_aaaa(.(T114, T115), T116, .(T114, X167), X168)
U25_aa(T69, T67, T68, T9, split51_out_aaaa(T68, T69, X93, X94)) → qsort1_out_aa(.(T69, .(T67, T68)), T9)
U24_aa(T69, T67, T68, T9, le36_out_aa(T67, T69)) → U26_aa(T69, T67, T68, T9, split51_in_aaaa(T68, T69, T93, T94))
U26_aa(T69, T67, T68, T9, split51_out_aaaa(T68, T69, T93, T94)) → U27_aa(T69, T67, T68, T9, qsort1_in_aa(.(T67, T93), X12))
qsort1_in_aa(.(T215, .(T213, T214)), T9) → U30_aa(T215, T213, T214, T9, gt67_in_aa(T213, T215))
U30_aa(T215, T213, T214, T9, gt67_out_aa(T213, T215)) → qsort1_out_aa(.(T215, .(T213, T214)), T9)
U30_aa(T215, T213, T214, T9, gt67_out_aa(T213, T215)) → U31_aa(T215, T213, T214, T9, split51_in_agaa(T214, T215, X323, X324))
U31_aa(T215, T213, T214, T9, split51_out_agaa(T214, T215, X323, X324)) → qsort1_out_aa(.(T215, .(T213, T214)), T9)
U30_aa(T215, T213, T214, T9, gt67_out_aa(T213, T215)) → U32_aa(T215, T213, T214, T9, split51_in_agaa(T214, T215, T222, T223))
U32_aa(T215, T213, T214, T9, split51_out_agaa(T214, T215, T222, T223)) → U33_aa(T215, T213, T214, T9, qsort79_in_aa(T222, X12))
qsort79_in_aa([], []) → qsort79_out_aa([], [])
qsort79_in_aa(.(T163, T164), X265) → U8_aa(T163, T164, X265, split51_in_aaaa(T164, T163, X261, X262))
U8_aa(T163, T164, X265, split51_out_aaaa(T164, T163, X261, X262)) → qsort79_out_aa(.(T163, T164), X265)
qsort79_in_aa(.(T163, T164), X265) → U9_aa(T163, T164, X265, split51_in_aaaa(T164, T163, T167, T168))
U9_aa(T163, T164, X265, split51_out_aaaa(T164, T163, T167, T168)) → U10_aa(T163, T164, X265, qsort79_in_aa(T167, X263))
U10_aa(T163, T164, X265, qsort79_out_aa(T167, X263)) → qsort79_out_aa(.(T163, T164), X265)
U9_aa(T163, T164, X265, split51_out_aaaa(T164, T163, T167, T168)) → U11_aa(T163, T164, X265, T168, qsort79_in_aa(T167, T171))
U11_aa(T163, T164, X265, T168, qsort79_out_aa(T167, T171)) → U12_aa(T163, T164, X265, qsort79_in_aa(T168, X264))
U12_aa(T163, T164, X265, qsort79_out_aa(T168, X264)) → qsort79_out_aa(.(T163, T164), X265)
U11_aa(T163, T164, X265, T168, qsort79_out_aa(T167, T171)) → U13_aa(T163, T164, X265, T171, qsort79_in_aa(T168, T172))
U13_aa(T163, T164, X265, T171, qsort79_out_aa(T168, T172)) → U14_aa(T163, T164, X265, append94_in_aaaa(T171, T163, T172, X265))
append94_in_aaaa([], T185, T186, .(T185, T186)) → append94_out_aaaa([], T185, T186, .(T185, T186))
append94_in_aaaa(.(T195, T196), T197, T198, .(T195, X295)) → U15_aaaa(T195, T196, T197, T198, X295, append94_in_aaaa(T196, T197, T198, X295))
U15_aaaa(T195, T196, T197, T198, X295, append94_out_aaaa(T196, T197, T198, X295)) → append94_out_aaaa(.(T195, T196), T197, T198, .(T195, X295))
U14_aa(T163, T164, X265, append94_out_aaaa(T171, T163, T172, X265)) → qsort79_out_aa(.(T163, T164), X265)
U33_aa(T215, T213, T214, T9, qsort79_out_aa(T222, X12)) → qsort1_out_aa(.(T215, .(T213, T214)), T9)
U32_aa(T215, T213, T214, T9, split51_out_agaa(T214, T215, T222, T223)) → U34_aa(T215, T213, T214, T9, T223, qsort79_in_aa(T222, T226))
U34_aa(T215, T213, T214, T9, T223, qsort79_out_aa(T222, T226)) → U35_aa(T215, T213, T214, T9, p78_in_aaaga(.(T213, T223), X13, T226, T215, T9))
p78_in_aaaga(T94, X13, T155, T69, T9) → U16_aaaga(T94, X13, T155, T69, T9, qsort79_in_aa(T94, X13))
U16_aaaga(T94, X13, T155, T69, T9, qsort79_out_aa(T94, X13)) → p78_out_aaaga(T94, X13, T155, T69, T9)
p78_in_aaaga(T94, T158, T155, T69, T9) → U17_aaaga(T94, T158, T155, T69, T9, qsort79_in_aa(T94, T158))
U17_aaaga(T94, T158, T155, T69, T9, qsort79_out_aa(T94, T158)) → U18_aaaga(T94, T158, T155, T69, T9, append23_in_agaa(T155, T69, T158, T9))
append23_in_agaa([], T33, T34, .(T33, T34)) → append23_out_agaa([], T33, T34, .(T33, T34))
append23_in_agaa(.(T45, T46), T47, T48, .(T45, T50)) → U1_agaa(T45, T46, T47, T48, T50, append23_in_agaa(T46, T47, T48, T50))
U1_agaa(T45, T46, T47, T48, T50, append23_out_agaa(T46, T47, T48, T50)) → append23_out_agaa(.(T45, T46), T47, T48, .(T45, T50))
U18_aaaga(T94, T158, T155, T69, T9, append23_out_agaa(T155, T69, T158, T9)) → p78_out_aaaga(T94, T158, T155, T69, T9)
U35_aa(T215, T213, T214, T9, p78_out_aaaga(.(T213, T223), X13, T226, T215, T9)) → qsort1_out_aa(.(T215, .(T213, T214)), T9)
U27_aa(T69, T67, T68, T9, qsort1_out_aa(.(T67, T93), X12)) → qsort1_out_aa(.(T69, .(T67, T68)), T9)
U26_aa(T69, T67, T68, T9, split51_out_aaaa(T68, T69, T93, T94)) → U28_aa(T69, T67, T68, T9, T94, qsort1_in_aa(.(T67, T93), T155))
U28_aa(T69, T67, T68, T9, T94, qsort1_out_aa(.(T67, T93), T155)) → U29_aa(T69, T67, T68, T9, p78_in_aaaaa(T94, X13, T155, T69, T9))
p78_in_aaaaa(T94, X13, T155, T69, T9) → U16_aaaaa(T94, X13, T155, T69, T9, qsort79_in_aa(T94, X13))
U16_aaaaa(T94, X13, T155, T69, T9, qsort79_out_aa(T94, X13)) → p78_out_aaaaa(T94, X13, T155, T69, T9)
p78_in_aaaaa(T94, T158, T155, T69, T9) → U17_aaaaa(T94, T158, T155, T69, T9, qsort79_in_aa(T94, T158))
U17_aaaaa(T94, T158, T155, T69, T9, qsort79_out_aa(T94, T158)) → U18_aaaaa(T94, T158, T155, T69, T9, append23_in_aaaa(T155, T69, T158, T9))
append23_in_aaaa([], T33, T34, .(T33, T34)) → append23_out_aaaa([], T33, T34, .(T33, T34))
append23_in_aaaa(.(T45, T46), T47, T48, .(T45, T50)) → U1_aaaa(T45, T46, T47, T48, T50, append23_in_aaaa(T46, T47, T48, T50))
U1_aaaa(T45, T46, T47, T48, T50, append23_out_aaaa(T46, T47, T48, T50)) → append23_out_aaaa(.(T45, T46), T47, T48, .(T45, T50))
U18_aaaaa(T94, T158, T155, T69, T9, append23_out_aaaa(T155, T69, T158, T9)) → p78_out_aaaaa(T94, T158, T155, T69, T9)
U29_aa(T69, T67, T68, T9, p78_out_aaaaa(T94, X13, T155, T69, T9)) → qsort1_out_aa(.(T69, .(T67, T68)), T9)
U27_ga(T69, T67, T68, T9, qsort1_out_aa(.(T67, T93), X12)) → qsort1_out_ga(.(T69, .(T67, T68)), T9)
U26_ga(T69, T67, T68, T9, split51_out_ggaa(T68, T69, T93, T94)) → U28_ga(T69, T67, T68, T9, T94, qsort1_in_aa(.(T67, T93), T155))
U28_ga(T69, T67, T68, T9, T94, qsort1_out_aa(.(T67, T93), T155)) → U29_ga(T69, T67, T68, T9, p78_in_aaaga(T94, X13, T155, T69, T9))
U29_ga(T69, T67, T68, T9, p78_out_aaaga(T94, X13, T155, T69, T9)) → qsort1_out_ga(.(T69, .(T67, T68)), T9)
qsort1_in_ga(.(T215, .(T213, T214)), T9) → U30_ga(T215, T213, T214, T9, gt67_in_gg(T213, T215))
U30_ga(T215, T213, T214, T9, gt67_out_gg(T213, T215)) → qsort1_out_ga(.(T215, .(T213, T214)), T9)
U30_ga(T215, T213, T214, T9, gt67_out_gg(T213, T215)) → U31_ga(T215, T213, T214, T9, split51_in_ggaa(T214, T215, X323, X324))
U31_ga(T215, T213, T214, T9, split51_out_ggaa(T214, T215, X323, X324)) → qsort1_out_ga(.(T215, .(T213, T214)), T9)
U30_ga(T215, T213, T214, T9, gt67_out_gg(T213, T215)) → U32_ga(T215, T213, T214, T9, split51_in_ggaa(T214, T215, T222, T223))
U32_ga(T215, T213, T214, T9, split51_out_ggaa(T214, T215, T222, T223)) → U33_ga(T215, T213, T214, T9, qsort79_in_aa(T222, X12))
U33_ga(T215, T213, T214, T9, qsort79_out_aa(T222, X12)) → qsort1_out_ga(.(T215, .(T213, T214)), T9)
U32_ga(T215, T213, T214, T9, split51_out_ggaa(T214, T215, T222, T223)) → U34_ga(T215, T213, T214, T9, T223, qsort79_in_aa(T222, T226))
U34_ga(T215, T213, T214, T9, T223, qsort79_out_aa(T222, T226)) → U35_ga(T215, T213, T214, T9, p78_in_aaaga(.(T213, T223), X13, T226, T215, T9))
U35_ga(T215, T213, T214, T9, p78_out_aaaga(.(T213, T223), X13, T226, T215, T9)) → qsort1_out_ga(.(T215, .(T213, T214)), T9)
SPLIT51_IN_AAAA(.(T114, T115), T116, .(T114, X167), X168) → U3_AAAA(T114, T115, T116, X167, X168, le36_in_aa(T114, T116))
U3_AAAA(T114, T115, T116, X167, X168, le36_out_aa(T114, T116)) → SPLIT51_IN_AAAA(T115, T116, X167, X168)
le36_in_aa(s(T82), s(T83)) → U2_aa(T82, T83, le36_in_aa(T82, T83))
le36_in_aa(0, s(T90)) → le36_out_aa(0, s(T90))
le36_in_aa(0, 0) → le36_out_aa(0, 0)
U2_aa(T82, T83, le36_out_aa(T82, T83)) → le36_out_aa(s(T82), s(T83))
SPLIT51_IN_AAAA → U3_AAAA(le36_in_aa)
U3_AAAA(le36_out_aa(T114)) → SPLIT51_IN_AAAA
le36_in_aa → U2_aa(le36_in_aa)
le36_in_aa → le36_out_aa(0)
U2_aa(le36_out_aa(T82)) → le36_out_aa(s(T82))
le36_in_aa
U2_aa(x0)
SPLIT51_IN_AAAA → U3_AAAA(U2_aa(le36_in_aa))
SPLIT51_IN_AAAA → U3_AAAA(le36_out_aa(0))
U3_AAAA(le36_out_aa(T114)) → SPLIT51_IN_AAAA
SPLIT51_IN_AAAA → U3_AAAA(U2_aa(le36_in_aa))
SPLIT51_IN_AAAA → U3_AAAA(le36_out_aa(0))
le36_in_aa → U2_aa(le36_in_aa)
le36_in_aa → le36_out_aa(0)
U2_aa(le36_out_aa(T82)) → le36_out_aa(s(T82))
le36_in_aa
U2_aa(x0)
QSORT79_IN_AA(.(T163, T164), X265) → U9_AA(T163, T164, X265, split51_in_aaaa(T164, T163, T167, T168))
U9_AA(T163, T164, X265, split51_out_aaaa(T164, T163, T167, T168)) → QSORT79_IN_AA(T167, X263)
U9_AA(T163, T164, X265, split51_out_aaaa(T164, T163, T167, T168)) → U11_AA(T163, T164, X265, T168, qsort79_in_aa(T167, T171))
U11_AA(T163, T164, X265, T168, qsort79_out_aa(T167, T171)) → QSORT79_IN_AA(T168, X264)
qsort1_in_ga([], []) → qsort1_out_ga([], [])
qsort1_in_ga(.(T14, []), T9) → U19_ga(T14, T9, qsort14_in_a(X12))
qsort14_in_a([]) → qsort14_out_a([])
U19_ga(T14, T9, qsort14_out_a(X12)) → qsort1_out_ga(.(T14, []), T9)
qsort1_in_ga(.(T14, []), T9) → U20_ga(T14, T9, qsort14_in_a(T17))
U20_ga(T14, T9, qsort14_out_a(T17)) → U21_ga(T14, T9, qsort14_in_a(X13))
U21_ga(T14, T9, qsort14_out_a(X13)) → qsort1_out_ga(.(T14, []), T9)
U20_ga(T14, T9, qsort14_out_a(T17)) → U22_ga(T14, T9, T17, qsort14_in_a(T20))
U22_ga(T14, T9, T17, qsort14_out_a(T20)) → U23_ga(T14, T9, append23_in_ggga(T17, T14, T20, T9))
append23_in_ggga([], T33, T34, .(T33, T34)) → append23_out_ggga([], T33, T34, .(T33, T34))
append23_in_ggga(.(T45, T46), T47, T48, .(T45, T50)) → U1_ggga(T45, T46, T47, T48, T50, append23_in_ggga(T46, T47, T48, T50))
U1_ggga(T45, T46, T47, T48, T50, append23_out_ggga(T46, T47, T48, T50)) → append23_out_ggga(.(T45, T46), T47, T48, .(T45, T50))
U23_ga(T14, T9, append23_out_ggga(T17, T14, T20, T9)) → qsort1_out_ga(.(T14, []), T9)
qsort1_in_ga(.(T69, .(T67, T68)), T9) → U24_ga(T69, T67, T68, T9, le36_in_gg(T67, T69))
le36_in_gg(s(T82), s(T83)) → U2_gg(T82, T83, le36_in_gg(T82, T83))
le36_in_gg(0, s(T90)) → le36_out_gg(0, s(T90))
le36_in_gg(0, 0) → le36_out_gg(0, 0)
U2_gg(T82, T83, le36_out_gg(T82, T83)) → le36_out_gg(s(T82), s(T83))
U24_ga(T69, T67, T68, T9, le36_out_gg(T67, T69)) → qsort1_out_ga(.(T69, .(T67, T68)), T9)
U24_ga(T69, T67, T68, T9, le36_out_gg(T67, T69)) → U25_ga(T69, T67, T68, T9, split51_in_ggaa(T68, T69, X93, X94))
split51_in_ggaa([], T101, [], []) → split51_out_ggaa([], T101, [], [])
split51_in_ggaa(.(T114, T115), T116, .(T114, X167), X168) → U3_ggaa(T114, T115, T116, X167, X168, le36_in_gg(T114, T116))
U3_ggaa(T114, T115, T116, X167, X168, le36_out_gg(T114, T116)) → split51_out_ggaa(.(T114, T115), T116, .(T114, X167), X168)
U3_ggaa(T114, T115, T116, X167, X168, le36_out_gg(T114, T116)) → U4_ggaa(T114, T115, T116, X167, X168, split51_in_ggaa(T115, T116, X167, X168))
split51_in_ggaa(.(T129, T130), T131, X199, .(T129, X200)) → U5_ggaa(T129, T130, T131, X199, X200, gt67_in_gg(T129, T131))
gt67_in_gg(s(T144), s(T145)) → U7_gg(T144, T145, gt67_in_gg(T144, T145))
gt67_in_gg(s(T150), 0) → gt67_out_gg(s(T150), 0)
U7_gg(T144, T145, gt67_out_gg(T144, T145)) → gt67_out_gg(s(T144), s(T145))
U5_ggaa(T129, T130, T131, X199, X200, gt67_out_gg(T129, T131)) → split51_out_ggaa(.(T129, T130), T131, X199, .(T129, X200))
U5_ggaa(T129, T130, T131, X199, X200, gt67_out_gg(T129, T131)) → U6_ggaa(T129, T130, T131, X199, X200, split51_in_ggaa(T130, T131, X199, X200))
U6_ggaa(T129, T130, T131, X199, X200, split51_out_ggaa(T130, T131, X199, X200)) → split51_out_ggaa(.(T129, T130), T131, X199, .(T129, X200))
U4_ggaa(T114, T115, T116, X167, X168, split51_out_ggaa(T115, T116, X167, X168)) → split51_out_ggaa(.(T114, T115), T116, .(T114, X167), X168)
U25_ga(T69, T67, T68, T9, split51_out_ggaa(T68, T69, X93, X94)) → qsort1_out_ga(.(T69, .(T67, T68)), T9)
U24_ga(T69, T67, T68, T9, le36_out_gg(T67, T69)) → U26_ga(T69, T67, T68, T9, split51_in_ggaa(T68, T69, T93, T94))
U26_ga(T69, T67, T68, T9, split51_out_ggaa(T68, T69, T93, T94)) → U27_ga(T69, T67, T68, T9, qsort1_in_aa(.(T67, T93), X12))
qsort1_in_aa([], []) → qsort1_out_aa([], [])
qsort1_in_aa(.(T14, []), T9) → U19_aa(T14, T9, qsort14_in_a(X12))
U19_aa(T14, T9, qsort14_out_a(X12)) → qsort1_out_aa(.(T14, []), T9)
qsort1_in_aa(.(T14, []), T9) → U20_aa(T14, T9, qsort14_in_a(T17))
U20_aa(T14, T9, qsort14_out_a(T17)) → U21_aa(T14, T9, qsort14_in_a(X13))
U21_aa(T14, T9, qsort14_out_a(X13)) → qsort1_out_aa(.(T14, []), T9)
U20_aa(T14, T9, qsort14_out_a(T17)) → U22_aa(T14, T9, T17, qsort14_in_a(T20))
U22_aa(T14, T9, T17, qsort14_out_a(T20)) → U23_aa(T14, T9, append23_in_gaga(T17, T14, T20, T9))
append23_in_gaga([], T33, T34, .(T33, T34)) → append23_out_gaga([], T33, T34, .(T33, T34))
append23_in_gaga(.(T45, T46), T47, T48, .(T45, T50)) → U1_gaga(T45, T46, T47, T48, T50, append23_in_gaga(T46, T47, T48, T50))
U1_gaga(T45, T46, T47, T48, T50, append23_out_gaga(T46, T47, T48, T50)) → append23_out_gaga(.(T45, T46), T47, T48, .(T45, T50))
U23_aa(T14, T9, append23_out_gaga(T17, T14, T20, T9)) → qsort1_out_aa(.(T14, []), T9)
qsort1_in_aa(.(T69, .(T67, T68)), T9) → U24_aa(T69, T67, T68, T9, le36_in_aa(T67, T69))
le36_in_aa(s(T82), s(T83)) → U2_aa(T82, T83, le36_in_aa(T82, T83))
le36_in_aa(0, s(T90)) → le36_out_aa(0, s(T90))
le36_in_aa(0, 0) → le36_out_aa(0, 0)
U2_aa(T82, T83, le36_out_aa(T82, T83)) → le36_out_aa(s(T82), s(T83))
U24_aa(T69, T67, T68, T9, le36_out_aa(T67, T69)) → qsort1_out_aa(.(T69, .(T67, T68)), T9)
U24_aa(T69, T67, T68, T9, le36_out_aa(T67, T69)) → U25_aa(T69, T67, T68, T9, split51_in_aaaa(T68, T69, X93, X94))
split51_in_aaaa([], T101, [], []) → split51_out_aaaa([], T101, [], [])
split51_in_aaaa(.(T114, T115), T116, .(T114, X167), X168) → U3_aaaa(T114, T115, T116, X167, X168, le36_in_aa(T114, T116))
U3_aaaa(T114, T115, T116, X167, X168, le36_out_aa(T114, T116)) → split51_out_aaaa(.(T114, T115), T116, .(T114, X167), X168)
U3_aaaa(T114, T115, T116, X167, X168, le36_out_aa(T114, T116)) → U4_aaaa(T114, T115, T116, X167, X168, split51_in_aaaa(T115, T116, X167, X168))
split51_in_aaaa(.(T129, T130), T131, X199, .(T129, X200)) → U5_aaaa(T129, T130, T131, X199, X200, gt67_in_aa(T129, T131))
gt67_in_aa(s(T144), s(T145)) → U7_aa(T144, T145, gt67_in_aa(T144, T145))
gt67_in_aa(s(T150), 0) → gt67_out_aa(s(T150), 0)
U7_aa(T144, T145, gt67_out_aa(T144, T145)) → gt67_out_aa(s(T144), s(T145))
U5_aaaa(T129, T130, T131, X199, X200, gt67_out_aa(T129, T131)) → split51_out_aaaa(.(T129, T130), T131, X199, .(T129, X200))
U5_aaaa(T129, T130, T131, X199, X200, gt67_out_aa(T129, T131)) → U6_aaaa(T129, T130, T131, X199, X200, split51_in_agaa(T130, T131, X199, X200))
split51_in_agaa([], T101, [], []) → split51_out_agaa([], T101, [], [])
split51_in_agaa(.(T114, T115), T116, .(T114, X167), X168) → U3_agaa(T114, T115, T116, X167, X168, le36_in_ag(T114, T116))
le36_in_ag(s(T82), s(T83)) → U2_ag(T82, T83, le36_in_ag(T82, T83))
le36_in_ag(0, s(T90)) → le36_out_ag(0, s(T90))
le36_in_ag(0, 0) → le36_out_ag(0, 0)
U2_ag(T82, T83, le36_out_ag(T82, T83)) → le36_out_ag(s(T82), s(T83))
U3_agaa(T114, T115, T116, X167, X168, le36_out_ag(T114, T116)) → split51_out_agaa(.(T114, T115), T116, .(T114, X167), X168)
U3_agaa(T114, T115, T116, X167, X168, le36_out_ag(T114, T116)) → U4_agaa(T114, T115, T116, X167, X168, split51_in_agaa(T115, T116, X167, X168))
split51_in_agaa(.(T129, T130), T131, X199, .(T129, X200)) → U5_agaa(T129, T130, T131, X199, X200, gt67_in_ag(T129, T131))
gt67_in_ag(s(T144), s(T145)) → U7_ag(T144, T145, gt67_in_ag(T144, T145))
gt67_in_ag(s(T150), 0) → gt67_out_ag(s(T150), 0)
U7_ag(T144, T145, gt67_out_ag(T144, T145)) → gt67_out_ag(s(T144), s(T145))
U5_agaa(T129, T130, T131, X199, X200, gt67_out_ag(T129, T131)) → split51_out_agaa(.(T129, T130), T131, X199, .(T129, X200))
U5_agaa(T129, T130, T131, X199, X200, gt67_out_ag(T129, T131)) → U6_agaa(T129, T130, T131, X199, X200, split51_in_agaa(T130, T131, X199, X200))
U6_agaa(T129, T130, T131, X199, X200, split51_out_agaa(T130, T131, X199, X200)) → split51_out_agaa(.(T129, T130), T131, X199, .(T129, X200))
U4_agaa(T114, T115, T116, X167, X168, split51_out_agaa(T115, T116, X167, X168)) → split51_out_agaa(.(T114, T115), T116, .(T114, X167), X168)
U6_aaaa(T129, T130, T131, X199, X200, split51_out_agaa(T130, T131, X199, X200)) → split51_out_aaaa(.(T129, T130), T131, X199, .(T129, X200))
U4_aaaa(T114, T115, T116, X167, X168, split51_out_aaaa(T115, T116, X167, X168)) → split51_out_aaaa(.(T114, T115), T116, .(T114, X167), X168)
U25_aa(T69, T67, T68, T9, split51_out_aaaa(T68, T69, X93, X94)) → qsort1_out_aa(.(T69, .(T67, T68)), T9)
U24_aa(T69, T67, T68, T9, le36_out_aa(T67, T69)) → U26_aa(T69, T67, T68, T9, split51_in_aaaa(T68, T69, T93, T94))
U26_aa(T69, T67, T68, T9, split51_out_aaaa(T68, T69, T93, T94)) → U27_aa(T69, T67, T68, T9, qsort1_in_aa(.(T67, T93), X12))
qsort1_in_aa(.(T215, .(T213, T214)), T9) → U30_aa(T215, T213, T214, T9, gt67_in_aa(T213, T215))
U30_aa(T215, T213, T214, T9, gt67_out_aa(T213, T215)) → qsort1_out_aa(.(T215, .(T213, T214)), T9)
U30_aa(T215, T213, T214, T9, gt67_out_aa(T213, T215)) → U31_aa(T215, T213, T214, T9, split51_in_agaa(T214, T215, X323, X324))
U31_aa(T215, T213, T214, T9, split51_out_agaa(T214, T215, X323, X324)) → qsort1_out_aa(.(T215, .(T213, T214)), T9)
U30_aa(T215, T213, T214, T9, gt67_out_aa(T213, T215)) → U32_aa(T215, T213, T214, T9, split51_in_agaa(T214, T215, T222, T223))
U32_aa(T215, T213, T214, T9, split51_out_agaa(T214, T215, T222, T223)) → U33_aa(T215, T213, T214, T9, qsort79_in_aa(T222, X12))
qsort79_in_aa([], []) → qsort79_out_aa([], [])
qsort79_in_aa(.(T163, T164), X265) → U8_aa(T163, T164, X265, split51_in_aaaa(T164, T163, X261, X262))
U8_aa(T163, T164, X265, split51_out_aaaa(T164, T163, X261, X262)) → qsort79_out_aa(.(T163, T164), X265)
qsort79_in_aa(.(T163, T164), X265) → U9_aa(T163, T164, X265, split51_in_aaaa(T164, T163, T167, T168))
U9_aa(T163, T164, X265, split51_out_aaaa(T164, T163, T167, T168)) → U10_aa(T163, T164, X265, qsort79_in_aa(T167, X263))
U10_aa(T163, T164, X265, qsort79_out_aa(T167, X263)) → qsort79_out_aa(.(T163, T164), X265)
U9_aa(T163, T164, X265, split51_out_aaaa(T164, T163, T167, T168)) → U11_aa(T163, T164, X265, T168, qsort79_in_aa(T167, T171))
U11_aa(T163, T164, X265, T168, qsort79_out_aa(T167, T171)) → U12_aa(T163, T164, X265, qsort79_in_aa(T168, X264))
U12_aa(T163, T164, X265, qsort79_out_aa(T168, X264)) → qsort79_out_aa(.(T163, T164), X265)
U11_aa(T163, T164, X265, T168, qsort79_out_aa(T167, T171)) → U13_aa(T163, T164, X265, T171, qsort79_in_aa(T168, T172))
U13_aa(T163, T164, X265, T171, qsort79_out_aa(T168, T172)) → U14_aa(T163, T164, X265, append94_in_aaaa(T171, T163, T172, X265))
append94_in_aaaa([], T185, T186, .(T185, T186)) → append94_out_aaaa([], T185, T186, .(T185, T186))
append94_in_aaaa(.(T195, T196), T197, T198, .(T195, X295)) → U15_aaaa(T195, T196, T197, T198, X295, append94_in_aaaa(T196, T197, T198, X295))
U15_aaaa(T195, T196, T197, T198, X295, append94_out_aaaa(T196, T197, T198, X295)) → append94_out_aaaa(.(T195, T196), T197, T198, .(T195, X295))
U14_aa(T163, T164, X265, append94_out_aaaa(T171, T163, T172, X265)) → qsort79_out_aa(.(T163, T164), X265)
U33_aa(T215, T213, T214, T9, qsort79_out_aa(T222, X12)) → qsort1_out_aa(.(T215, .(T213, T214)), T9)
U32_aa(T215, T213, T214, T9, split51_out_agaa(T214, T215, T222, T223)) → U34_aa(T215, T213, T214, T9, T223, qsort79_in_aa(T222, T226))
U34_aa(T215, T213, T214, T9, T223, qsort79_out_aa(T222, T226)) → U35_aa(T215, T213, T214, T9, p78_in_aaaga(.(T213, T223), X13, T226, T215, T9))
p78_in_aaaga(T94, X13, T155, T69, T9) → U16_aaaga(T94, X13, T155, T69, T9, qsort79_in_aa(T94, X13))
U16_aaaga(T94, X13, T155, T69, T9, qsort79_out_aa(T94, X13)) → p78_out_aaaga(T94, X13, T155, T69, T9)
p78_in_aaaga(T94, T158, T155, T69, T9) → U17_aaaga(T94, T158, T155, T69, T9, qsort79_in_aa(T94, T158))
U17_aaaga(T94, T158, T155, T69, T9, qsort79_out_aa(T94, T158)) → U18_aaaga(T94, T158, T155, T69, T9, append23_in_agaa(T155, T69, T158, T9))
append23_in_agaa([], T33, T34, .(T33, T34)) → append23_out_agaa([], T33, T34, .(T33, T34))
append23_in_agaa(.(T45, T46), T47, T48, .(T45, T50)) → U1_agaa(T45, T46, T47, T48, T50, append23_in_agaa(T46, T47, T48, T50))
U1_agaa(T45, T46, T47, T48, T50, append23_out_agaa(T46, T47, T48, T50)) → append23_out_agaa(.(T45, T46), T47, T48, .(T45, T50))
U18_aaaga(T94, T158, T155, T69, T9, append23_out_agaa(T155, T69, T158, T9)) → p78_out_aaaga(T94, T158, T155, T69, T9)
U35_aa(T215, T213, T214, T9, p78_out_aaaga(.(T213, T223), X13, T226, T215, T9)) → qsort1_out_aa(.(T215, .(T213, T214)), T9)
U27_aa(T69, T67, T68, T9, qsort1_out_aa(.(T67, T93), X12)) → qsort1_out_aa(.(T69, .(T67, T68)), T9)
U26_aa(T69, T67, T68, T9, split51_out_aaaa(T68, T69, T93, T94)) → U28_aa(T69, T67, T68, T9, T94, qsort1_in_aa(.(T67, T93), T155))
U28_aa(T69, T67, T68, T9, T94, qsort1_out_aa(.(T67, T93), T155)) → U29_aa(T69, T67, T68, T9, p78_in_aaaaa(T94, X13, T155, T69, T9))
p78_in_aaaaa(T94, X13, T155, T69, T9) → U16_aaaaa(T94, X13, T155, T69, T9, qsort79_in_aa(T94, X13))
U16_aaaaa(T94, X13, T155, T69, T9, qsort79_out_aa(T94, X13)) → p78_out_aaaaa(T94, X13, T155, T69, T9)
p78_in_aaaaa(T94, T158, T155, T69, T9) → U17_aaaaa(T94, T158, T155, T69, T9, qsort79_in_aa(T94, T158))
U17_aaaaa(T94, T158, T155, T69, T9, qsort79_out_aa(T94, T158)) → U18_aaaaa(T94, T158, T155, T69, T9, append23_in_aaaa(T155, T69, T158, T9))
append23_in_aaaa([], T33, T34, .(T33, T34)) → append23_out_aaaa([], T33, T34, .(T33, T34))
append23_in_aaaa(.(T45, T46), T47, T48, .(T45, T50)) → U1_aaaa(T45, T46, T47, T48, T50, append23_in_aaaa(T46, T47, T48, T50))
U1_aaaa(T45, T46, T47, T48, T50, append23_out_aaaa(T46, T47, T48, T50)) → append23_out_aaaa(.(T45, T46), T47, T48, .(T45, T50))
U18_aaaaa(T94, T158, T155, T69, T9, append23_out_aaaa(T155, T69, T158, T9)) → p78_out_aaaaa(T94, T158, T155, T69, T9)
U29_aa(T69, T67, T68, T9, p78_out_aaaaa(T94, X13, T155, T69, T9)) → qsort1_out_aa(.(T69, .(T67, T68)), T9)
U27_ga(T69, T67, T68, T9, qsort1_out_aa(.(T67, T93), X12)) → qsort1_out_ga(.(T69, .(T67, T68)), T9)
U26_ga(T69, T67, T68, T9, split51_out_ggaa(T68, T69, T93, T94)) → U28_ga(T69, T67, T68, T9, T94, qsort1_in_aa(.(T67, T93), T155))
U28_ga(T69, T67, T68, T9, T94, qsort1_out_aa(.(T67, T93), T155)) → U29_ga(T69, T67, T68, T9, p78_in_aaaga(T94, X13, T155, T69, T9))
U29_ga(T69, T67, T68, T9, p78_out_aaaga(T94, X13, T155, T69, T9)) → qsort1_out_ga(.(T69, .(T67, T68)), T9)
qsort1_in_ga(.(T215, .(T213, T214)), T9) → U30_ga(T215, T213, T214, T9, gt67_in_gg(T213, T215))
U30_ga(T215, T213, T214, T9, gt67_out_gg(T213, T215)) → qsort1_out_ga(.(T215, .(T213, T214)), T9)
U30_ga(T215, T213, T214, T9, gt67_out_gg(T213, T215)) → U31_ga(T215, T213, T214, T9, split51_in_ggaa(T214, T215, X323, X324))
U31_ga(T215, T213, T214, T9, split51_out_ggaa(T214, T215, X323, X324)) → qsort1_out_ga(.(T215, .(T213, T214)), T9)
U30_ga(T215, T213, T214, T9, gt67_out_gg(T213, T215)) → U32_ga(T215, T213, T214, T9, split51_in_ggaa(T214, T215, T222, T223))
U32_ga(T215, T213, T214, T9, split51_out_ggaa(T214, T215, T222, T223)) → U33_ga(T215, T213, T214, T9, qsort79_in_aa(T222, X12))
U33_ga(T215, T213, T214, T9, qsort79_out_aa(T222, X12)) → qsort1_out_ga(.(T215, .(T213, T214)), T9)
U32_ga(T215, T213, T214, T9, split51_out_ggaa(T214, T215, T222, T223)) → U34_ga(T215, T213, T214, T9, T223, qsort79_in_aa(T222, T226))
U34_ga(T215, T213, T214, T9, T223, qsort79_out_aa(T222, T226)) → U35_ga(T215, T213, T214, T9, p78_in_aaaga(.(T213, T223), X13, T226, T215, T9))
U35_ga(T215, T213, T214, T9, p78_out_aaaga(.(T213, T223), X13, T226, T215, T9)) → qsort1_out_ga(.(T215, .(T213, T214)), T9)
QSORT79_IN_AA(.(T163, T164), X265) → U9_AA(T163, T164, X265, split51_in_aaaa(T164, T163, T167, T168))
U9_AA(T163, T164, X265, split51_out_aaaa(T164, T163, T167, T168)) → QSORT79_IN_AA(T167, X263)
U9_AA(T163, T164, X265, split51_out_aaaa(T164, T163, T167, T168)) → U11_AA(T163, T164, X265, T168, qsort79_in_aa(T167, T171))
U11_AA(T163, T164, X265, T168, qsort79_out_aa(T167, T171)) → QSORT79_IN_AA(T168, X264)
split51_in_aaaa([], T101, [], []) → split51_out_aaaa([], T101, [], [])
split51_in_aaaa(.(T114, T115), T116, .(T114, X167), X168) → U3_aaaa(T114, T115, T116, X167, X168, le36_in_aa(T114, T116))
split51_in_aaaa(.(T129, T130), T131, X199, .(T129, X200)) → U5_aaaa(T129, T130, T131, X199, X200, gt67_in_aa(T129, T131))
qsort79_in_aa([], []) → qsort79_out_aa([], [])
qsort79_in_aa(.(T163, T164), X265) → U8_aa(T163, T164, X265, split51_in_aaaa(T164, T163, X261, X262))
qsort79_in_aa(.(T163, T164), X265) → U9_aa(T163, T164, X265, split51_in_aaaa(T164, T163, T167, T168))
U3_aaaa(T114, T115, T116, X167, X168, le36_out_aa(T114, T116)) → split51_out_aaaa(.(T114, T115), T116, .(T114, X167), X168)
U3_aaaa(T114, T115, T116, X167, X168, le36_out_aa(T114, T116)) → U4_aaaa(T114, T115, T116, X167, X168, split51_in_aaaa(T115, T116, X167, X168))
U5_aaaa(T129, T130, T131, X199, X200, gt67_out_aa(T129, T131)) → split51_out_aaaa(.(T129, T130), T131, X199, .(T129, X200))
U5_aaaa(T129, T130, T131, X199, X200, gt67_out_aa(T129, T131)) → U6_aaaa(T129, T130, T131, X199, X200, split51_in_agaa(T130, T131, X199, X200))
U8_aa(T163, T164, X265, split51_out_aaaa(T164, T163, X261, X262)) → qsort79_out_aa(.(T163, T164), X265)
U9_aa(T163, T164, X265, split51_out_aaaa(T164, T163, T167, T168)) → U10_aa(T163, T164, X265, qsort79_in_aa(T167, X263))
U9_aa(T163, T164, X265, split51_out_aaaa(T164, T163, T167, T168)) → U11_aa(T163, T164, X265, T168, qsort79_in_aa(T167, T171))
le36_in_aa(s(T82), s(T83)) → U2_aa(T82, T83, le36_in_aa(T82, T83))
le36_in_aa(0, s(T90)) → le36_out_aa(0, s(T90))
le36_in_aa(0, 0) → le36_out_aa(0, 0)
U4_aaaa(T114, T115, T116, X167, X168, split51_out_aaaa(T115, T116, X167, X168)) → split51_out_aaaa(.(T114, T115), T116, .(T114, X167), X168)
gt67_in_aa(s(T144), s(T145)) → U7_aa(T144, T145, gt67_in_aa(T144, T145))
gt67_in_aa(s(T150), 0) → gt67_out_aa(s(T150), 0)
U6_aaaa(T129, T130, T131, X199, X200, split51_out_agaa(T130, T131, X199, X200)) → split51_out_aaaa(.(T129, T130), T131, X199, .(T129, X200))
U10_aa(T163, T164, X265, qsort79_out_aa(T167, X263)) → qsort79_out_aa(.(T163, T164), X265)
U11_aa(T163, T164, X265, T168, qsort79_out_aa(T167, T171)) → U12_aa(T163, T164, X265, qsort79_in_aa(T168, X264))
U11_aa(T163, T164, X265, T168, qsort79_out_aa(T167, T171)) → U13_aa(T163, T164, X265, T171, qsort79_in_aa(T168, T172))
U2_aa(T82, T83, le36_out_aa(T82, T83)) → le36_out_aa(s(T82), s(T83))
U7_aa(T144, T145, gt67_out_aa(T144, T145)) → gt67_out_aa(s(T144), s(T145))
split51_in_agaa([], T101, [], []) → split51_out_agaa([], T101, [], [])
split51_in_agaa(.(T114, T115), T116, .(T114, X167), X168) → U3_agaa(T114, T115, T116, X167, X168, le36_in_ag(T114, T116))
split51_in_agaa(.(T129, T130), T131, X199, .(T129, X200)) → U5_agaa(T129, T130, T131, X199, X200, gt67_in_ag(T129, T131))
U12_aa(T163, T164, X265, qsort79_out_aa(T168, X264)) → qsort79_out_aa(.(T163, T164), X265)
U13_aa(T163, T164, X265, T171, qsort79_out_aa(T168, T172)) → U14_aa(T163, T164, X265, append94_in_aaaa(T171, T163, T172, X265))
U3_agaa(T114, T115, T116, X167, X168, le36_out_ag(T114, T116)) → split51_out_agaa(.(T114, T115), T116, .(T114, X167), X168)
U3_agaa(T114, T115, T116, X167, X168, le36_out_ag(T114, T116)) → U4_agaa(T114, T115, T116, X167, X168, split51_in_agaa(T115, T116, X167, X168))
U5_agaa(T129, T130, T131, X199, X200, gt67_out_ag(T129, T131)) → split51_out_agaa(.(T129, T130), T131, X199, .(T129, X200))
U5_agaa(T129, T130, T131, X199, X200, gt67_out_ag(T129, T131)) → U6_agaa(T129, T130, T131, X199, X200, split51_in_agaa(T130, T131, X199, X200))
U14_aa(T163, T164, X265, append94_out_aaaa(T171, T163, T172, X265)) → qsort79_out_aa(.(T163, T164), X265)
le36_in_ag(s(T82), s(T83)) → U2_ag(T82, T83, le36_in_ag(T82, T83))
le36_in_ag(0, s(T90)) → le36_out_ag(0, s(T90))
le36_in_ag(0, 0) → le36_out_ag(0, 0)
U4_agaa(T114, T115, T116, X167, X168, split51_out_agaa(T115, T116, X167, X168)) → split51_out_agaa(.(T114, T115), T116, .(T114, X167), X168)
gt67_in_ag(s(T144), s(T145)) → U7_ag(T144, T145, gt67_in_ag(T144, T145))
gt67_in_ag(s(T150), 0) → gt67_out_ag(s(T150), 0)
U6_agaa(T129, T130, T131, X199, X200, split51_out_agaa(T130, T131, X199, X200)) → split51_out_agaa(.(T129, T130), T131, X199, .(T129, X200))
append94_in_aaaa([], T185, T186, .(T185, T186)) → append94_out_aaaa([], T185, T186, .(T185, T186))
append94_in_aaaa(.(T195, T196), T197, T198, .(T195, X295)) → U15_aaaa(T195, T196, T197, T198, X295, append94_in_aaaa(T196, T197, T198, X295))
U2_ag(T82, T83, le36_out_ag(T82, T83)) → le36_out_ag(s(T82), s(T83))
U7_ag(T144, T145, gt67_out_ag(T144, T145)) → gt67_out_ag(s(T144), s(T145))
U15_aaaa(T195, T196, T197, T198, X295, append94_out_aaaa(T196, T197, T198, X295)) → append94_out_aaaa(.(T195, T196), T197, T198, .(T195, X295))
QSORT79_IN_AA → U9_AA(split51_in_aaaa)
U9_AA(split51_out_aaaa) → QSORT79_IN_AA
U9_AA(split51_out_aaaa) → U11_AA(qsort79_in_aa)
U11_AA(qsort79_out_aa) → QSORT79_IN_AA
split51_in_aaaa → split51_out_aaaa
split51_in_aaaa → U3_aaaa(le36_in_aa)
split51_in_aaaa → U5_aaaa(gt67_in_aa)
qsort79_in_aa → qsort79_out_aa
qsort79_in_aa → U8_aa(split51_in_aaaa)
qsort79_in_aa → U9_aa(split51_in_aaaa)
U3_aaaa(le36_out_aa(T114)) → split51_out_aaaa
U3_aaaa(le36_out_aa(T114)) → U4_aaaa(split51_in_aaaa)
U5_aaaa(gt67_out_aa(T131)) → split51_out_aaaa
U5_aaaa(gt67_out_aa(T131)) → U6_aaaa(split51_in_agaa(T131))
U8_aa(split51_out_aaaa) → qsort79_out_aa
U9_aa(split51_out_aaaa) → U10_aa(qsort79_in_aa)
U9_aa(split51_out_aaaa) → U11_aa(qsort79_in_aa)
le36_in_aa → U2_aa(le36_in_aa)
le36_in_aa → le36_out_aa(0)
U4_aaaa(split51_out_aaaa) → split51_out_aaaa
gt67_in_aa → U7_aa(gt67_in_aa)
gt67_in_aa → gt67_out_aa(0)
U6_aaaa(split51_out_agaa(T131)) → split51_out_aaaa
U10_aa(qsort79_out_aa) → qsort79_out_aa
U11_aa(qsort79_out_aa) → U12_aa(qsort79_in_aa)
U11_aa(qsort79_out_aa) → U13_aa(qsort79_in_aa)
U2_aa(le36_out_aa(T82)) → le36_out_aa(s(T82))
U7_aa(gt67_out_aa(T145)) → gt67_out_aa(s(T145))
split51_in_agaa(T101) → split51_out_agaa(T101)
split51_in_agaa(T116) → U3_agaa(T116, le36_in_ag(T116))
split51_in_agaa(T131) → U5_agaa(T131, gt67_in_ag(T131))
U12_aa(qsort79_out_aa) → qsort79_out_aa
U13_aa(qsort79_out_aa) → U14_aa(append94_in_aaaa)
U3_agaa(T116, le36_out_ag(T114, T116)) → split51_out_agaa(T116)
U3_agaa(T116, le36_out_ag(T114, T116)) → U4_agaa(T116, split51_in_agaa(T116))
U5_agaa(T131, gt67_out_ag(T131)) → split51_out_agaa(T131)
U5_agaa(T131, gt67_out_ag(T131)) → U6_agaa(T131, split51_in_agaa(T131))
U14_aa(append94_out_aaaa) → qsort79_out_aa
le36_in_ag(s(T83)) → U2_ag(T83, le36_in_ag(T83))
le36_in_ag(s(T90)) → le36_out_ag(0, s(T90))
le36_in_ag(0) → le36_out_ag(0, 0)
U4_agaa(T116, split51_out_agaa(T116)) → split51_out_agaa(T116)
gt67_in_ag(s(T145)) → U7_ag(T145, gt67_in_ag(T145))
gt67_in_ag(0) → gt67_out_ag(0)
U6_agaa(T131, split51_out_agaa(T131)) → split51_out_agaa(T131)
append94_in_aaaa → append94_out_aaaa
append94_in_aaaa → U15_aaaa(append94_in_aaaa)
U2_ag(T83, le36_out_ag(T82, T83)) → le36_out_ag(s(T82), s(T83))
U7_ag(T145, gt67_out_ag(T145)) → gt67_out_ag(s(T145))
U15_aaaa(append94_out_aaaa) → append94_out_aaaa
split51_in_aaaa
qsort79_in_aa
U3_aaaa(x0)
U5_aaaa(x0)
U8_aa(x0)
U9_aa(x0)
le36_in_aa
U4_aaaa(x0)
gt67_in_aa
U6_aaaa(x0)
U10_aa(x0)
U11_aa(x0)
U2_aa(x0)
U7_aa(x0)
split51_in_agaa(x0)
U12_aa(x0)
U13_aa(x0)
U3_agaa(x0, x1)
U5_agaa(x0, x1)
U14_aa(x0)
le36_in_ag(x0)
U4_agaa(x0, x1)
gt67_in_ag(x0)
U6_agaa(x0, x1)
append94_in_aaaa
U2_ag(x0, x1)
U7_ag(x0, x1)
U15_aaaa(x0)
QSORT79_IN_AA → U9_AA(split51_out_aaaa)
QSORT79_IN_AA → U9_AA(U3_aaaa(le36_in_aa))
QSORT79_IN_AA → U9_AA(U5_aaaa(gt67_in_aa))
U9_AA(split51_out_aaaa) → QSORT79_IN_AA
U9_AA(split51_out_aaaa) → U11_AA(qsort79_in_aa)
U11_AA(qsort79_out_aa) → QSORT79_IN_AA
QSORT79_IN_AA → U9_AA(split51_out_aaaa)
QSORT79_IN_AA → U9_AA(U3_aaaa(le36_in_aa))
QSORT79_IN_AA → U9_AA(U5_aaaa(gt67_in_aa))
split51_in_aaaa → split51_out_aaaa
split51_in_aaaa → U3_aaaa(le36_in_aa)
split51_in_aaaa → U5_aaaa(gt67_in_aa)
qsort79_in_aa → qsort79_out_aa
qsort79_in_aa → U8_aa(split51_in_aaaa)
qsort79_in_aa → U9_aa(split51_in_aaaa)
U3_aaaa(le36_out_aa(T114)) → split51_out_aaaa
U3_aaaa(le36_out_aa(T114)) → U4_aaaa(split51_in_aaaa)
U5_aaaa(gt67_out_aa(T131)) → split51_out_aaaa
U5_aaaa(gt67_out_aa(T131)) → U6_aaaa(split51_in_agaa(T131))
U8_aa(split51_out_aaaa) → qsort79_out_aa
U9_aa(split51_out_aaaa) → U10_aa(qsort79_in_aa)
U9_aa(split51_out_aaaa) → U11_aa(qsort79_in_aa)
le36_in_aa → U2_aa(le36_in_aa)
le36_in_aa → le36_out_aa(0)
U4_aaaa(split51_out_aaaa) → split51_out_aaaa
gt67_in_aa → U7_aa(gt67_in_aa)
gt67_in_aa → gt67_out_aa(0)
U6_aaaa(split51_out_agaa(T131)) → split51_out_aaaa
U10_aa(qsort79_out_aa) → qsort79_out_aa
U11_aa(qsort79_out_aa) → U12_aa(qsort79_in_aa)
U11_aa(qsort79_out_aa) → U13_aa(qsort79_in_aa)
U2_aa(le36_out_aa(T82)) → le36_out_aa(s(T82))
U7_aa(gt67_out_aa(T145)) → gt67_out_aa(s(T145))
split51_in_agaa(T101) → split51_out_agaa(T101)
split51_in_agaa(T116) → U3_agaa(T116, le36_in_ag(T116))
split51_in_agaa(T131) → U5_agaa(T131, gt67_in_ag(T131))
U12_aa(qsort79_out_aa) → qsort79_out_aa
U13_aa(qsort79_out_aa) → U14_aa(append94_in_aaaa)
U3_agaa(T116, le36_out_ag(T114, T116)) → split51_out_agaa(T116)
U3_agaa(T116, le36_out_ag(T114, T116)) → U4_agaa(T116, split51_in_agaa(T116))
U5_agaa(T131, gt67_out_ag(T131)) → split51_out_agaa(T131)
U5_agaa(T131, gt67_out_ag(T131)) → U6_agaa(T131, split51_in_agaa(T131))
U14_aa(append94_out_aaaa) → qsort79_out_aa
le36_in_ag(s(T83)) → U2_ag(T83, le36_in_ag(T83))
le36_in_ag(s(T90)) → le36_out_ag(0, s(T90))
le36_in_ag(0) → le36_out_ag(0, 0)
U4_agaa(T116, split51_out_agaa(T116)) → split51_out_agaa(T116)
gt67_in_ag(s(T145)) → U7_ag(T145, gt67_in_ag(T145))
gt67_in_ag(0) → gt67_out_ag(0)
U6_agaa(T131, split51_out_agaa(T131)) → split51_out_agaa(T131)
append94_in_aaaa → append94_out_aaaa
append94_in_aaaa → U15_aaaa(append94_in_aaaa)
U2_ag(T83, le36_out_ag(T82, T83)) → le36_out_ag(s(T82), s(T83))
U7_ag(T145, gt67_out_ag(T145)) → gt67_out_ag(s(T145))
U15_aaaa(append94_out_aaaa) → append94_out_aaaa
split51_in_aaaa
qsort79_in_aa
U3_aaaa(x0)
U5_aaaa(x0)
U8_aa(x0)
U9_aa(x0)
le36_in_aa
U4_aaaa(x0)
gt67_in_aa
U6_aaaa(x0)
U10_aa(x0)
U11_aa(x0)
U2_aa(x0)
U7_aa(x0)
split51_in_agaa(x0)
U12_aa(x0)
U13_aa(x0)
U3_agaa(x0, x1)
U5_agaa(x0, x1)
U14_aa(x0)
le36_in_ag(x0)
U4_agaa(x0, x1)
gt67_in_ag(x0)
U6_agaa(x0, x1)
append94_in_aaaa
U2_ag(x0, x1)
U7_ag(x0, x1)
U15_aaaa(x0)
U9_AA(split51_out_aaaa) → U11_AA(qsort79_out_aa)
U9_AA(split51_out_aaaa) → U11_AA(U8_aa(split51_in_aaaa))
U9_AA(split51_out_aaaa) → U11_AA(U9_aa(split51_in_aaaa))
U9_AA(split51_out_aaaa) → QSORT79_IN_AA
U11_AA(qsort79_out_aa) → QSORT79_IN_AA
QSORT79_IN_AA → U9_AA(split51_out_aaaa)
QSORT79_IN_AA → U9_AA(U3_aaaa(le36_in_aa))
QSORT79_IN_AA → U9_AA(U5_aaaa(gt67_in_aa))
U9_AA(split51_out_aaaa) → U11_AA(qsort79_out_aa)
U9_AA(split51_out_aaaa) → U11_AA(U8_aa(split51_in_aaaa))
U9_AA(split51_out_aaaa) → U11_AA(U9_aa(split51_in_aaaa))
split51_in_aaaa → split51_out_aaaa
split51_in_aaaa → U3_aaaa(le36_in_aa)
split51_in_aaaa → U5_aaaa(gt67_in_aa)
qsort79_in_aa → qsort79_out_aa
qsort79_in_aa → U8_aa(split51_in_aaaa)
qsort79_in_aa → U9_aa(split51_in_aaaa)
U3_aaaa(le36_out_aa(T114)) → split51_out_aaaa
U3_aaaa(le36_out_aa(T114)) → U4_aaaa(split51_in_aaaa)
U5_aaaa(gt67_out_aa(T131)) → split51_out_aaaa
U5_aaaa(gt67_out_aa(T131)) → U6_aaaa(split51_in_agaa(T131))
U8_aa(split51_out_aaaa) → qsort79_out_aa
U9_aa(split51_out_aaaa) → U10_aa(qsort79_in_aa)
U9_aa(split51_out_aaaa) → U11_aa(qsort79_in_aa)
le36_in_aa → U2_aa(le36_in_aa)
le36_in_aa → le36_out_aa(0)
U4_aaaa(split51_out_aaaa) → split51_out_aaaa
gt67_in_aa → U7_aa(gt67_in_aa)
gt67_in_aa → gt67_out_aa(0)
U6_aaaa(split51_out_agaa(T131)) → split51_out_aaaa
U10_aa(qsort79_out_aa) → qsort79_out_aa
U11_aa(qsort79_out_aa) → U12_aa(qsort79_in_aa)
U11_aa(qsort79_out_aa) → U13_aa(qsort79_in_aa)
U2_aa(le36_out_aa(T82)) → le36_out_aa(s(T82))
U7_aa(gt67_out_aa(T145)) → gt67_out_aa(s(T145))
split51_in_agaa(T101) → split51_out_agaa(T101)
split51_in_agaa(T116) → U3_agaa(T116, le36_in_ag(T116))
split51_in_agaa(T131) → U5_agaa(T131, gt67_in_ag(T131))
U12_aa(qsort79_out_aa) → qsort79_out_aa
U13_aa(qsort79_out_aa) → U14_aa(append94_in_aaaa)
U3_agaa(T116, le36_out_ag(T114, T116)) → split51_out_agaa(T116)
U3_agaa(T116, le36_out_ag(T114, T116)) → U4_agaa(T116, split51_in_agaa(T116))
U5_agaa(T131, gt67_out_ag(T131)) → split51_out_agaa(T131)
U5_agaa(T131, gt67_out_ag(T131)) → U6_agaa(T131, split51_in_agaa(T131))
U14_aa(append94_out_aaaa) → qsort79_out_aa
le36_in_ag(s(T83)) → U2_ag(T83, le36_in_ag(T83))
le36_in_ag(s(T90)) → le36_out_ag(0, s(T90))
le36_in_ag(0) → le36_out_ag(0, 0)
U4_agaa(T116, split51_out_agaa(T116)) → split51_out_agaa(T116)
gt67_in_ag(s(T145)) → U7_ag(T145, gt67_in_ag(T145))
gt67_in_ag(0) → gt67_out_ag(0)
U6_agaa(T131, split51_out_agaa(T131)) → split51_out_agaa(T131)
append94_in_aaaa → append94_out_aaaa
append94_in_aaaa → U15_aaaa(append94_in_aaaa)
U2_ag(T83, le36_out_ag(T82, T83)) → le36_out_ag(s(T82), s(T83))
U7_ag(T145, gt67_out_ag(T145)) → gt67_out_ag(s(T145))
U15_aaaa(append94_out_aaaa) → append94_out_aaaa
split51_in_aaaa
qsort79_in_aa
U3_aaaa(x0)
U5_aaaa(x0)
U8_aa(x0)
U9_aa(x0)
le36_in_aa
U4_aaaa(x0)
gt67_in_aa
U6_aaaa(x0)
U10_aa(x0)
U11_aa(x0)
U2_aa(x0)
U7_aa(x0)
split51_in_agaa(x0)
U12_aa(x0)
U13_aa(x0)
U3_agaa(x0, x1)
U5_agaa(x0, x1)
U14_aa(x0)
le36_in_ag(x0)
U4_agaa(x0, x1)
gt67_in_ag(x0)
U6_agaa(x0, x1)
append94_in_aaaa
U2_ag(x0, x1)
U7_ag(x0, x1)
U15_aaaa(x0)
APPEND23_IN_GAGA(.(T45, T46), T47, T48, .(T45, T50)) → APPEND23_IN_GAGA(T46, T47, T48, T50)
qsort1_in_ga([], []) → qsort1_out_ga([], [])
qsort1_in_ga(.(T14, []), T9) → U19_ga(T14, T9, qsort14_in_a(X12))
qsort14_in_a([]) → qsort14_out_a([])
U19_ga(T14, T9, qsort14_out_a(X12)) → qsort1_out_ga(.(T14, []), T9)
qsort1_in_ga(.(T14, []), T9) → U20_ga(T14, T9, qsort14_in_a(T17))
U20_ga(T14, T9, qsort14_out_a(T17)) → U21_ga(T14, T9, qsort14_in_a(X13))
U21_ga(T14, T9, qsort14_out_a(X13)) → qsort1_out_ga(.(T14, []), T9)
U20_ga(T14, T9, qsort14_out_a(T17)) → U22_ga(T14, T9, T17, qsort14_in_a(T20))
U22_ga(T14, T9, T17, qsort14_out_a(T20)) → U23_ga(T14, T9, append23_in_ggga(T17, T14, T20, T9))
append23_in_ggga([], T33, T34, .(T33, T34)) → append23_out_ggga([], T33, T34, .(T33, T34))
append23_in_ggga(.(T45, T46), T47, T48, .(T45, T50)) → U1_ggga(T45, T46, T47, T48, T50, append23_in_ggga(T46, T47, T48, T50))
U1_ggga(T45, T46, T47, T48, T50, append23_out_ggga(T46, T47, T48, T50)) → append23_out_ggga(.(T45, T46), T47, T48, .(T45, T50))
U23_ga(T14, T9, append23_out_ggga(T17, T14, T20, T9)) → qsort1_out_ga(.(T14, []), T9)
qsort1_in_ga(.(T69, .(T67, T68)), T9) → U24_ga(T69, T67, T68, T9, le36_in_gg(T67, T69))
le36_in_gg(s(T82), s(T83)) → U2_gg(T82, T83, le36_in_gg(T82, T83))
le36_in_gg(0, s(T90)) → le36_out_gg(0, s(T90))
le36_in_gg(0, 0) → le36_out_gg(0, 0)
U2_gg(T82, T83, le36_out_gg(T82, T83)) → le36_out_gg(s(T82), s(T83))
U24_ga(T69, T67, T68, T9, le36_out_gg(T67, T69)) → qsort1_out_ga(.(T69, .(T67, T68)), T9)
U24_ga(T69, T67, T68, T9, le36_out_gg(T67, T69)) → U25_ga(T69, T67, T68, T9, split51_in_ggaa(T68, T69, X93, X94))
split51_in_ggaa([], T101, [], []) → split51_out_ggaa([], T101, [], [])
split51_in_ggaa(.(T114, T115), T116, .(T114, X167), X168) → U3_ggaa(T114, T115, T116, X167, X168, le36_in_gg(T114, T116))
U3_ggaa(T114, T115, T116, X167, X168, le36_out_gg(T114, T116)) → split51_out_ggaa(.(T114, T115), T116, .(T114, X167), X168)
U3_ggaa(T114, T115, T116, X167, X168, le36_out_gg(T114, T116)) → U4_ggaa(T114, T115, T116, X167, X168, split51_in_ggaa(T115, T116, X167, X168))
split51_in_ggaa(.(T129, T130), T131, X199, .(T129, X200)) → U5_ggaa(T129, T130, T131, X199, X200, gt67_in_gg(T129, T131))
gt67_in_gg(s(T144), s(T145)) → U7_gg(T144, T145, gt67_in_gg(T144, T145))
gt67_in_gg(s(T150), 0) → gt67_out_gg(s(T150), 0)
U7_gg(T144, T145, gt67_out_gg(T144, T145)) → gt67_out_gg(s(T144), s(T145))
U5_ggaa(T129, T130, T131, X199, X200, gt67_out_gg(T129, T131)) → split51_out_ggaa(.(T129, T130), T131, X199, .(T129, X200))
U5_ggaa(T129, T130, T131, X199, X200, gt67_out_gg(T129, T131)) → U6_ggaa(T129, T130, T131, X199, X200, split51_in_ggaa(T130, T131, X199, X200))
U6_ggaa(T129, T130, T131, X199, X200, split51_out_ggaa(T130, T131, X199, X200)) → split51_out_ggaa(.(T129, T130), T131, X199, .(T129, X200))
U4_ggaa(T114, T115, T116, X167, X168, split51_out_ggaa(T115, T116, X167, X168)) → split51_out_ggaa(.(T114, T115), T116, .(T114, X167), X168)
U25_ga(T69, T67, T68, T9, split51_out_ggaa(T68, T69, X93, X94)) → qsort1_out_ga(.(T69, .(T67, T68)), T9)
U24_ga(T69, T67, T68, T9, le36_out_gg(T67, T69)) → U26_ga(T69, T67, T68, T9, split51_in_ggaa(T68, T69, T93, T94))
U26_ga(T69, T67, T68, T9, split51_out_ggaa(T68, T69, T93, T94)) → U27_ga(T69, T67, T68, T9, qsort1_in_aa(.(T67, T93), X12))
qsort1_in_aa([], []) → qsort1_out_aa([], [])
qsort1_in_aa(.(T14, []), T9) → U19_aa(T14, T9, qsort14_in_a(X12))
U19_aa(T14, T9, qsort14_out_a(X12)) → qsort1_out_aa(.(T14, []), T9)
qsort1_in_aa(.(T14, []), T9) → U20_aa(T14, T9, qsort14_in_a(T17))
U20_aa(T14, T9, qsort14_out_a(T17)) → U21_aa(T14, T9, qsort14_in_a(X13))
U21_aa(T14, T9, qsort14_out_a(X13)) → qsort1_out_aa(.(T14, []), T9)
U20_aa(T14, T9, qsort14_out_a(T17)) → U22_aa(T14, T9, T17, qsort14_in_a(T20))
U22_aa(T14, T9, T17, qsort14_out_a(T20)) → U23_aa(T14, T9, append23_in_gaga(T17, T14, T20, T9))
append23_in_gaga([], T33, T34, .(T33, T34)) → append23_out_gaga([], T33, T34, .(T33, T34))
append23_in_gaga(.(T45, T46), T47, T48, .(T45, T50)) → U1_gaga(T45, T46, T47, T48, T50, append23_in_gaga(T46, T47, T48, T50))
U1_gaga(T45, T46, T47, T48, T50, append23_out_gaga(T46, T47, T48, T50)) → append23_out_gaga(.(T45, T46), T47, T48, .(T45, T50))
U23_aa(T14, T9, append23_out_gaga(T17, T14, T20, T9)) → qsort1_out_aa(.(T14, []), T9)
qsort1_in_aa(.(T69, .(T67, T68)), T9) → U24_aa(T69, T67, T68, T9, le36_in_aa(T67, T69))
le36_in_aa(s(T82), s(T83)) → U2_aa(T82, T83, le36_in_aa(T82, T83))
le36_in_aa(0, s(T90)) → le36_out_aa(0, s(T90))
le36_in_aa(0, 0) → le36_out_aa(0, 0)
U2_aa(T82, T83, le36_out_aa(T82, T83)) → le36_out_aa(s(T82), s(T83))
U24_aa(T69, T67, T68, T9, le36_out_aa(T67, T69)) → qsort1_out_aa(.(T69, .(T67, T68)), T9)
U24_aa(T69, T67, T68, T9, le36_out_aa(T67, T69)) → U25_aa(T69, T67, T68, T9, split51_in_aaaa(T68, T69, X93, X94))
split51_in_aaaa([], T101, [], []) → split51_out_aaaa([], T101, [], [])
split51_in_aaaa(.(T114, T115), T116, .(T114, X167), X168) → U3_aaaa(T114, T115, T116, X167, X168, le36_in_aa(T114, T116))
U3_aaaa(T114, T115, T116, X167, X168, le36_out_aa(T114, T116)) → split51_out_aaaa(.(T114, T115), T116, .(T114, X167), X168)
U3_aaaa(T114, T115, T116, X167, X168, le36_out_aa(T114, T116)) → U4_aaaa(T114, T115, T116, X167, X168, split51_in_aaaa(T115, T116, X167, X168))
split51_in_aaaa(.(T129, T130), T131, X199, .(T129, X200)) → U5_aaaa(T129, T130, T131, X199, X200, gt67_in_aa(T129, T131))
gt67_in_aa(s(T144), s(T145)) → U7_aa(T144, T145, gt67_in_aa(T144, T145))
gt67_in_aa(s(T150), 0) → gt67_out_aa(s(T150), 0)
U7_aa(T144, T145, gt67_out_aa(T144, T145)) → gt67_out_aa(s(T144), s(T145))
U5_aaaa(T129, T130, T131, X199, X200, gt67_out_aa(T129, T131)) → split51_out_aaaa(.(T129, T130), T131, X199, .(T129, X200))
U5_aaaa(T129, T130, T131, X199, X200, gt67_out_aa(T129, T131)) → U6_aaaa(T129, T130, T131, X199, X200, split51_in_agaa(T130, T131, X199, X200))
split51_in_agaa([], T101, [], []) → split51_out_agaa([], T101, [], [])
split51_in_agaa(.(T114, T115), T116, .(T114, X167), X168) → U3_agaa(T114, T115, T116, X167, X168, le36_in_ag(T114, T116))
le36_in_ag(s(T82), s(T83)) → U2_ag(T82, T83, le36_in_ag(T82, T83))
le36_in_ag(0, s(T90)) → le36_out_ag(0, s(T90))
le36_in_ag(0, 0) → le36_out_ag(0, 0)
U2_ag(T82, T83, le36_out_ag(T82, T83)) → le36_out_ag(s(T82), s(T83))
U3_agaa(T114, T115, T116, X167, X168, le36_out_ag(T114, T116)) → split51_out_agaa(.(T114, T115), T116, .(T114, X167), X168)
U3_agaa(T114, T115, T116, X167, X168, le36_out_ag(T114, T116)) → U4_agaa(T114, T115, T116, X167, X168, split51_in_agaa(T115, T116, X167, X168))
split51_in_agaa(.(T129, T130), T131, X199, .(T129, X200)) → U5_agaa(T129, T130, T131, X199, X200, gt67_in_ag(T129, T131))
gt67_in_ag(s(T144), s(T145)) → U7_ag(T144, T145, gt67_in_ag(T144, T145))
gt67_in_ag(s(T150), 0) → gt67_out_ag(s(T150), 0)
U7_ag(T144, T145, gt67_out_ag(T144, T145)) → gt67_out_ag(s(T144), s(T145))
U5_agaa(T129, T130, T131, X199, X200, gt67_out_ag(T129, T131)) → split51_out_agaa(.(T129, T130), T131, X199, .(T129, X200))
U5_agaa(T129, T130, T131, X199, X200, gt67_out_ag(T129, T131)) → U6_agaa(T129, T130, T131, X199, X200, split51_in_agaa(T130, T131, X199, X200))
U6_agaa(T129, T130, T131, X199, X200, split51_out_agaa(T130, T131, X199, X200)) → split51_out_agaa(.(T129, T130), T131, X199, .(T129, X200))
U4_agaa(T114, T115, T116, X167, X168, split51_out_agaa(T115, T116, X167, X168)) → split51_out_agaa(.(T114, T115), T116, .(T114, X167), X168)
U6_aaaa(T129, T130, T131, X199, X200, split51_out_agaa(T130, T131, X199, X200)) → split51_out_aaaa(.(T129, T130), T131, X199, .(T129, X200))
U4_aaaa(T114, T115, T116, X167, X168, split51_out_aaaa(T115, T116, X167, X168)) → split51_out_aaaa(.(T114, T115), T116, .(T114, X167), X168)
U25_aa(T69, T67, T68, T9, split51_out_aaaa(T68, T69, X93, X94)) → qsort1_out_aa(.(T69, .(T67, T68)), T9)
U24_aa(T69, T67, T68, T9, le36_out_aa(T67, T69)) → U26_aa(T69, T67, T68, T9, split51_in_aaaa(T68, T69, T93, T94))
U26_aa(T69, T67, T68, T9, split51_out_aaaa(T68, T69, T93, T94)) → U27_aa(T69, T67, T68, T9, qsort1_in_aa(.(T67, T93), X12))
qsort1_in_aa(.(T215, .(T213, T214)), T9) → U30_aa(T215, T213, T214, T9, gt67_in_aa(T213, T215))
U30_aa(T215, T213, T214, T9, gt67_out_aa(T213, T215)) → qsort1_out_aa(.(T215, .(T213, T214)), T9)
U30_aa(T215, T213, T214, T9, gt67_out_aa(T213, T215)) → U31_aa(T215, T213, T214, T9, split51_in_agaa(T214, T215, X323, X324))
U31_aa(T215, T213, T214, T9, split51_out_agaa(T214, T215, X323, X324)) → qsort1_out_aa(.(T215, .(T213, T214)), T9)
U30_aa(T215, T213, T214, T9, gt67_out_aa(T213, T215)) → U32_aa(T215, T213, T214, T9, split51_in_agaa(T214, T215, T222, T223))
U32_aa(T215, T213, T214, T9, split51_out_agaa(T214, T215, T222, T223)) → U33_aa(T215, T213, T214, T9, qsort79_in_aa(T222, X12))
qsort79_in_aa([], []) → qsort79_out_aa([], [])
qsort79_in_aa(.(T163, T164), X265) → U8_aa(T163, T164, X265, split51_in_aaaa(T164, T163, X261, X262))
U8_aa(T163, T164, X265, split51_out_aaaa(T164, T163, X261, X262)) → qsort79_out_aa(.(T163, T164), X265)
qsort79_in_aa(.(T163, T164), X265) → U9_aa(T163, T164, X265, split51_in_aaaa(T164, T163, T167, T168))
U9_aa(T163, T164, X265, split51_out_aaaa(T164, T163, T167, T168)) → U10_aa(T163, T164, X265, qsort79_in_aa(T167, X263))
U10_aa(T163, T164, X265, qsort79_out_aa(T167, X263)) → qsort79_out_aa(.(T163, T164), X265)
U9_aa(T163, T164, X265, split51_out_aaaa(T164, T163, T167, T168)) → U11_aa(T163, T164, X265, T168, qsort79_in_aa(T167, T171))
U11_aa(T163, T164, X265, T168, qsort79_out_aa(T167, T171)) → U12_aa(T163, T164, X265, qsort79_in_aa(T168, X264))
U12_aa(T163, T164, X265, qsort79_out_aa(T168, X264)) → qsort79_out_aa(.(T163, T164), X265)
U11_aa(T163, T164, X265, T168, qsort79_out_aa(T167, T171)) → U13_aa(T163, T164, X265, T171, qsort79_in_aa(T168, T172))
U13_aa(T163, T164, X265, T171, qsort79_out_aa(T168, T172)) → U14_aa(T163, T164, X265, append94_in_aaaa(T171, T163, T172, X265))
append94_in_aaaa([], T185, T186, .(T185, T186)) → append94_out_aaaa([], T185, T186, .(T185, T186))
append94_in_aaaa(.(T195, T196), T197, T198, .(T195, X295)) → U15_aaaa(T195, T196, T197, T198, X295, append94_in_aaaa(T196, T197, T198, X295))
U15_aaaa(T195, T196, T197, T198, X295, append94_out_aaaa(T196, T197, T198, X295)) → append94_out_aaaa(.(T195, T196), T197, T198, .(T195, X295))
U14_aa(T163, T164, X265, append94_out_aaaa(T171, T163, T172, X265)) → qsort79_out_aa(.(T163, T164), X265)
U33_aa(T215, T213, T214, T9, qsort79_out_aa(T222, X12)) → qsort1_out_aa(.(T215, .(T213, T214)), T9)
U32_aa(T215, T213, T214, T9, split51_out_agaa(T214, T215, T222, T223)) → U34_aa(T215, T213, T214, T9, T223, qsort79_in_aa(T222, T226))
U34_aa(T215, T213, T214, T9, T223, qsort79_out_aa(T222, T226)) → U35_aa(T215, T213, T214, T9, p78_in_aaaga(.(T213, T223), X13, T226, T215, T9))
p78_in_aaaga(T94, X13, T155, T69, T9) → U16_aaaga(T94, X13, T155, T69, T9, qsort79_in_aa(T94, X13))
U16_aaaga(T94, X13, T155, T69, T9, qsort79_out_aa(T94, X13)) → p78_out_aaaga(T94, X13, T155, T69, T9)
p78_in_aaaga(T94, T158, T155, T69, T9) → U17_aaaga(T94, T158, T155, T69, T9, qsort79_in_aa(T94, T158))
U17_aaaga(T94, T158, T155, T69, T9, qsort79_out_aa(T94, T158)) → U18_aaaga(T94, T158, T155, T69, T9, append23_in_agaa(T155, T69, T158, T9))
append23_in_agaa([], T33, T34, .(T33, T34)) → append23_out_agaa([], T33, T34, .(T33, T34))
append23_in_agaa(.(T45, T46), T47, T48, .(T45, T50)) → U1_agaa(T45, T46, T47, T48, T50, append23_in_agaa(T46, T47, T48, T50))
U1_agaa(T45, T46, T47, T48, T50, append23_out_agaa(T46, T47, T48, T50)) → append23_out_agaa(.(T45, T46), T47, T48, .(T45, T50))
U18_aaaga(T94, T158, T155, T69, T9, append23_out_agaa(T155, T69, T158, T9)) → p78_out_aaaga(T94, T158, T155, T69, T9)
U35_aa(T215, T213, T214, T9, p78_out_aaaga(.(T213, T223), X13, T226, T215, T9)) → qsort1_out_aa(.(T215, .(T213, T214)), T9)
U27_aa(T69, T67, T68, T9, qsort1_out_aa(.(T67, T93), X12)) → qsort1_out_aa(.(T69, .(T67, T68)), T9)
U26_aa(T69, T67, T68, T9, split51_out_aaaa(T68, T69, T93, T94)) → U28_aa(T69, T67, T68, T9, T94, qsort1_in_aa(.(T67, T93), T155))
U28_aa(T69, T67, T68, T9, T94, qsort1_out_aa(.(T67, T93), T155)) → U29_aa(T69, T67, T68, T9, p78_in_aaaaa(T94, X13, T155, T69, T9))
p78_in_aaaaa(T94, X13, T155, T69, T9) → U16_aaaaa(T94, X13, T155, T69, T9, qsort79_in_aa(T94, X13))
U16_aaaaa(T94, X13, T155, T69, T9, qsort79_out_aa(T94, X13)) → p78_out_aaaaa(T94, X13, T155, T69, T9)
p78_in_aaaaa(T94, T158, T155, T69, T9) → U17_aaaaa(T94, T158, T155, T69, T9, qsort79_in_aa(T94, T158))
U17_aaaaa(T94, T158, T155, T69, T9, qsort79_out_aa(T94, T158)) → U18_aaaaa(T94, T158, T155, T69, T9, append23_in_aaaa(T155, T69, T158, T9))
append23_in_aaaa([], T33, T34, .(T33, T34)) → append23_out_aaaa([], T33, T34, .(T33, T34))
append23_in_aaaa(.(T45, T46), T47, T48, .(T45, T50)) → U1_aaaa(T45, T46, T47, T48, T50, append23_in_aaaa(T46, T47, T48, T50))
U1_aaaa(T45, T46, T47, T48, T50, append23_out_aaaa(T46, T47, T48, T50)) → append23_out_aaaa(.(T45, T46), T47, T48, .(T45, T50))
U18_aaaaa(T94, T158, T155, T69, T9, append23_out_aaaa(T155, T69, T158, T9)) → p78_out_aaaaa(T94, T158, T155, T69, T9)
U29_aa(T69, T67, T68, T9, p78_out_aaaaa(T94, X13, T155, T69, T9)) → qsort1_out_aa(.(T69, .(T67, T68)), T9)
U27_ga(T69, T67, T68, T9, qsort1_out_aa(.(T67, T93), X12)) → qsort1_out_ga(.(T69, .(T67, T68)), T9)
U26_ga(T69, T67, T68, T9, split51_out_ggaa(T68, T69, T93, T94)) → U28_ga(T69, T67, T68, T9, T94, qsort1_in_aa(.(T67, T93), T155))
U28_ga(T69, T67, T68, T9, T94, qsort1_out_aa(.(T67, T93), T155)) → U29_ga(T69, T67, T68, T9, p78_in_aaaga(T94, X13, T155, T69, T9))
U29_ga(T69, T67, T68, T9, p78_out_aaaga(T94, X13, T155, T69, T9)) → qsort1_out_ga(.(T69, .(T67, T68)), T9)
qsort1_in_ga(.(T215, .(T213, T214)), T9) → U30_ga(T215, T213, T214, T9, gt67_in_gg(T213, T215))
U30_ga(T215, T213, T214, T9, gt67_out_gg(T213, T215)) → qsort1_out_ga(.(T215, .(T213, T214)), T9)
U30_ga(T215, T213, T214, T9, gt67_out_gg(T213, T215)) → U31_ga(T215, T213, T214, T9, split51_in_ggaa(T214, T215, X323, X324))
U31_ga(T215, T213, T214, T9, split51_out_ggaa(T214, T215, X323, X324)) → qsort1_out_ga(.(T215, .(T213, T214)), T9)
U30_ga(T215, T213, T214, T9, gt67_out_gg(T213, T215)) → U32_ga(T215, T213, T214, T9, split51_in_ggaa(T214, T215, T222, T223))
U32_ga(T215, T213, T214, T9, split51_out_ggaa(T214, T215, T222, T223)) → U33_ga(T215, T213, T214, T9, qsort79_in_aa(T222, X12))
U33_ga(T215, T213, T214, T9, qsort79_out_aa(T222, X12)) → qsort1_out_ga(.(T215, .(T213, T214)), T9)
U32_ga(T215, T213, T214, T9, split51_out_ggaa(T214, T215, T222, T223)) → U34_ga(T215, T213, T214, T9, T223, qsort79_in_aa(T222, T226))
U34_ga(T215, T213, T214, T9, T223, qsort79_out_aa(T222, T226)) → U35_ga(T215, T213, T214, T9, p78_in_aaaga(.(T213, T223), X13, T226, T215, T9))
U35_ga(T215, T213, T214, T9, p78_out_aaaga(.(T213, T223), X13, T226, T215, T9)) → qsort1_out_ga(.(T215, .(T213, T214)), T9)
APPEND23_IN_GAGA(.(T45, T46), T47, T48, .(T45, T50)) → APPEND23_IN_GAGA(T46, T47, T48, T50)
APPEND23_IN_GAGA(.(T45, T46), T48) → APPEND23_IN_GAGA(T46, T48)
From the DPs we obtained the following set of size-change graphs:
QSORT1_IN_AA(.(T69, .(T67, T68)), T9) → U24_AA(T69, T67, T68, T9, le36_in_aa(T67, T69))
U24_AA(T69, T67, T68, T9, le36_out_aa(T67, T69)) → U26_AA(T69, T67, T68, T9, split51_in_aaaa(T68, T69, T93, T94))
U26_AA(T69, T67, T68, T9, split51_out_aaaa(T68, T69, T93, T94)) → QSORT1_IN_AA(.(T67, T93), X12)
qsort1_in_ga([], []) → qsort1_out_ga([], [])
qsort1_in_ga(.(T14, []), T9) → U19_ga(T14, T9, qsort14_in_a(X12))
qsort14_in_a([]) → qsort14_out_a([])
U19_ga(T14, T9, qsort14_out_a(X12)) → qsort1_out_ga(.(T14, []), T9)
qsort1_in_ga(.(T14, []), T9) → U20_ga(T14, T9, qsort14_in_a(T17))
U20_ga(T14, T9, qsort14_out_a(T17)) → U21_ga(T14, T9, qsort14_in_a(X13))
U21_ga(T14, T9, qsort14_out_a(X13)) → qsort1_out_ga(.(T14, []), T9)
U20_ga(T14, T9, qsort14_out_a(T17)) → U22_ga(T14, T9, T17, qsort14_in_a(T20))
U22_ga(T14, T9, T17, qsort14_out_a(T20)) → U23_ga(T14, T9, append23_in_ggga(T17, T14, T20, T9))
append23_in_ggga([], T33, T34, .(T33, T34)) → append23_out_ggga([], T33, T34, .(T33, T34))
append23_in_ggga(.(T45, T46), T47, T48, .(T45, T50)) → U1_ggga(T45, T46, T47, T48, T50, append23_in_ggga(T46, T47, T48, T50))
U1_ggga(T45, T46, T47, T48, T50, append23_out_ggga(T46, T47, T48, T50)) → append23_out_ggga(.(T45, T46), T47, T48, .(T45, T50))
U23_ga(T14, T9, append23_out_ggga(T17, T14, T20, T9)) → qsort1_out_ga(.(T14, []), T9)
qsort1_in_ga(.(T69, .(T67, T68)), T9) → U24_ga(T69, T67, T68, T9, le36_in_gg(T67, T69))
le36_in_gg(s(T82), s(T83)) → U2_gg(T82, T83, le36_in_gg(T82, T83))
le36_in_gg(0, s(T90)) → le36_out_gg(0, s(T90))
le36_in_gg(0, 0) → le36_out_gg(0, 0)
U2_gg(T82, T83, le36_out_gg(T82, T83)) → le36_out_gg(s(T82), s(T83))
U24_ga(T69, T67, T68, T9, le36_out_gg(T67, T69)) → qsort1_out_ga(.(T69, .(T67, T68)), T9)
U24_ga(T69, T67, T68, T9, le36_out_gg(T67, T69)) → U25_ga(T69, T67, T68, T9, split51_in_ggaa(T68, T69, X93, X94))
split51_in_ggaa([], T101, [], []) → split51_out_ggaa([], T101, [], [])
split51_in_ggaa(.(T114, T115), T116, .(T114, X167), X168) → U3_ggaa(T114, T115, T116, X167, X168, le36_in_gg(T114, T116))
U3_ggaa(T114, T115, T116, X167, X168, le36_out_gg(T114, T116)) → split51_out_ggaa(.(T114, T115), T116, .(T114, X167), X168)
U3_ggaa(T114, T115, T116, X167, X168, le36_out_gg(T114, T116)) → U4_ggaa(T114, T115, T116, X167, X168, split51_in_ggaa(T115, T116, X167, X168))
split51_in_ggaa(.(T129, T130), T131, X199, .(T129, X200)) → U5_ggaa(T129, T130, T131, X199, X200, gt67_in_gg(T129, T131))
gt67_in_gg(s(T144), s(T145)) → U7_gg(T144, T145, gt67_in_gg(T144, T145))
gt67_in_gg(s(T150), 0) → gt67_out_gg(s(T150), 0)
U7_gg(T144, T145, gt67_out_gg(T144, T145)) → gt67_out_gg(s(T144), s(T145))
U5_ggaa(T129, T130, T131, X199, X200, gt67_out_gg(T129, T131)) → split51_out_ggaa(.(T129, T130), T131, X199, .(T129, X200))
U5_ggaa(T129, T130, T131, X199, X200, gt67_out_gg(T129, T131)) → U6_ggaa(T129, T130, T131, X199, X200, split51_in_ggaa(T130, T131, X199, X200))
U6_ggaa(T129, T130, T131, X199, X200, split51_out_ggaa(T130, T131, X199, X200)) → split51_out_ggaa(.(T129, T130), T131, X199, .(T129, X200))
U4_ggaa(T114, T115, T116, X167, X168, split51_out_ggaa(T115, T116, X167, X168)) → split51_out_ggaa(.(T114, T115), T116, .(T114, X167), X168)
U25_ga(T69, T67, T68, T9, split51_out_ggaa(T68, T69, X93, X94)) → qsort1_out_ga(.(T69, .(T67, T68)), T9)
U24_ga(T69, T67, T68, T9, le36_out_gg(T67, T69)) → U26_ga(T69, T67, T68, T9, split51_in_ggaa(T68, T69, T93, T94))
U26_ga(T69, T67, T68, T9, split51_out_ggaa(T68, T69, T93, T94)) → U27_ga(T69, T67, T68, T9, qsort1_in_aa(.(T67, T93), X12))
qsort1_in_aa([], []) → qsort1_out_aa([], [])
qsort1_in_aa(.(T14, []), T9) → U19_aa(T14, T9, qsort14_in_a(X12))
U19_aa(T14, T9, qsort14_out_a(X12)) → qsort1_out_aa(.(T14, []), T9)
qsort1_in_aa(.(T14, []), T9) → U20_aa(T14, T9, qsort14_in_a(T17))
U20_aa(T14, T9, qsort14_out_a(T17)) → U21_aa(T14, T9, qsort14_in_a(X13))
U21_aa(T14, T9, qsort14_out_a(X13)) → qsort1_out_aa(.(T14, []), T9)
U20_aa(T14, T9, qsort14_out_a(T17)) → U22_aa(T14, T9, T17, qsort14_in_a(T20))
U22_aa(T14, T9, T17, qsort14_out_a(T20)) → U23_aa(T14, T9, append23_in_gaga(T17, T14, T20, T9))
append23_in_gaga([], T33, T34, .(T33, T34)) → append23_out_gaga([], T33, T34, .(T33, T34))
append23_in_gaga(.(T45, T46), T47, T48, .(T45, T50)) → U1_gaga(T45, T46, T47, T48, T50, append23_in_gaga(T46, T47, T48, T50))
U1_gaga(T45, T46, T47, T48, T50, append23_out_gaga(T46, T47, T48, T50)) → append23_out_gaga(.(T45, T46), T47, T48, .(T45, T50))
U23_aa(T14, T9, append23_out_gaga(T17, T14, T20, T9)) → qsort1_out_aa(.(T14, []), T9)
qsort1_in_aa(.(T69, .(T67, T68)), T9) → U24_aa(T69, T67, T68, T9, le36_in_aa(T67, T69))
le36_in_aa(s(T82), s(T83)) → U2_aa(T82, T83, le36_in_aa(T82, T83))
le36_in_aa(0, s(T90)) → le36_out_aa(0, s(T90))
le36_in_aa(0, 0) → le36_out_aa(0, 0)
U2_aa(T82, T83, le36_out_aa(T82, T83)) → le36_out_aa(s(T82), s(T83))
U24_aa(T69, T67, T68, T9, le36_out_aa(T67, T69)) → qsort1_out_aa(.(T69, .(T67, T68)), T9)
U24_aa(T69, T67, T68, T9, le36_out_aa(T67, T69)) → U25_aa(T69, T67, T68, T9, split51_in_aaaa(T68, T69, X93, X94))
split51_in_aaaa([], T101, [], []) → split51_out_aaaa([], T101, [], [])
split51_in_aaaa(.(T114, T115), T116, .(T114, X167), X168) → U3_aaaa(T114, T115, T116, X167, X168, le36_in_aa(T114, T116))
U3_aaaa(T114, T115, T116, X167, X168, le36_out_aa(T114, T116)) → split51_out_aaaa(.(T114, T115), T116, .(T114, X167), X168)
U3_aaaa(T114, T115, T116, X167, X168, le36_out_aa(T114, T116)) → U4_aaaa(T114, T115, T116, X167, X168, split51_in_aaaa(T115, T116, X167, X168))
split51_in_aaaa(.(T129, T130), T131, X199, .(T129, X200)) → U5_aaaa(T129, T130, T131, X199, X200, gt67_in_aa(T129, T131))
gt67_in_aa(s(T144), s(T145)) → U7_aa(T144, T145, gt67_in_aa(T144, T145))
gt67_in_aa(s(T150), 0) → gt67_out_aa(s(T150), 0)
U7_aa(T144, T145, gt67_out_aa(T144, T145)) → gt67_out_aa(s(T144), s(T145))
U5_aaaa(T129, T130, T131, X199, X200, gt67_out_aa(T129, T131)) → split51_out_aaaa(.(T129, T130), T131, X199, .(T129, X200))
U5_aaaa(T129, T130, T131, X199, X200, gt67_out_aa(T129, T131)) → U6_aaaa(T129, T130, T131, X199, X200, split51_in_agaa(T130, T131, X199, X200))
split51_in_agaa([], T101, [], []) → split51_out_agaa([], T101, [], [])
split51_in_agaa(.(T114, T115), T116, .(T114, X167), X168) → U3_agaa(T114, T115, T116, X167, X168, le36_in_ag(T114, T116))
le36_in_ag(s(T82), s(T83)) → U2_ag(T82, T83, le36_in_ag(T82, T83))
le36_in_ag(0, s(T90)) → le36_out_ag(0, s(T90))
le36_in_ag(0, 0) → le36_out_ag(0, 0)
U2_ag(T82, T83, le36_out_ag(T82, T83)) → le36_out_ag(s(T82), s(T83))
U3_agaa(T114, T115, T116, X167, X168, le36_out_ag(T114, T116)) → split51_out_agaa(.(T114, T115), T116, .(T114, X167), X168)
U3_agaa(T114, T115, T116, X167, X168, le36_out_ag(T114, T116)) → U4_agaa(T114, T115, T116, X167, X168, split51_in_agaa(T115, T116, X167, X168))
split51_in_agaa(.(T129, T130), T131, X199, .(T129, X200)) → U5_agaa(T129, T130, T131, X199, X200, gt67_in_ag(T129, T131))
gt67_in_ag(s(T144), s(T145)) → U7_ag(T144, T145, gt67_in_ag(T144, T145))
gt67_in_ag(s(T150), 0) → gt67_out_ag(s(T150), 0)
U7_ag(T144, T145, gt67_out_ag(T144, T145)) → gt67_out_ag(s(T144), s(T145))
U5_agaa(T129, T130, T131, X199, X200, gt67_out_ag(T129, T131)) → split51_out_agaa(.(T129, T130), T131, X199, .(T129, X200))
U5_agaa(T129, T130, T131, X199, X200, gt67_out_ag(T129, T131)) → U6_agaa(T129, T130, T131, X199, X200, split51_in_agaa(T130, T131, X199, X200))
U6_agaa(T129, T130, T131, X199, X200, split51_out_agaa(T130, T131, X199, X200)) → split51_out_agaa(.(T129, T130), T131, X199, .(T129, X200))
U4_agaa(T114, T115, T116, X167, X168, split51_out_agaa(T115, T116, X167, X168)) → split51_out_agaa(.(T114, T115), T116, .(T114, X167), X168)
U6_aaaa(T129, T130, T131, X199, X200, split51_out_agaa(T130, T131, X199, X200)) → split51_out_aaaa(.(T129, T130), T131, X199, .(T129, X200))
U4_aaaa(T114, T115, T116, X167, X168, split51_out_aaaa(T115, T116, X167, X168)) → split51_out_aaaa(.(T114, T115), T116, .(T114, X167), X168)
U25_aa(T69, T67, T68, T9, split51_out_aaaa(T68, T69, X93, X94)) → qsort1_out_aa(.(T69, .(T67, T68)), T9)
U24_aa(T69, T67, T68, T9, le36_out_aa(T67, T69)) → U26_aa(T69, T67, T68, T9, split51_in_aaaa(T68, T69, T93, T94))
U26_aa(T69, T67, T68, T9, split51_out_aaaa(T68, T69, T93, T94)) → U27_aa(T69, T67, T68, T9, qsort1_in_aa(.(T67, T93), X12))
qsort1_in_aa(.(T215, .(T213, T214)), T9) → U30_aa(T215, T213, T214, T9, gt67_in_aa(T213, T215))
U30_aa(T215, T213, T214, T9, gt67_out_aa(T213, T215)) → qsort1_out_aa(.(T215, .(T213, T214)), T9)
U30_aa(T215, T213, T214, T9, gt67_out_aa(T213, T215)) → U31_aa(T215, T213, T214, T9, split51_in_agaa(T214, T215, X323, X324))
U31_aa(T215, T213, T214, T9, split51_out_agaa(T214, T215, X323, X324)) → qsort1_out_aa(.(T215, .(T213, T214)), T9)
U30_aa(T215, T213, T214, T9, gt67_out_aa(T213, T215)) → U32_aa(T215, T213, T214, T9, split51_in_agaa(T214, T215, T222, T223))
U32_aa(T215, T213, T214, T9, split51_out_agaa(T214, T215, T222, T223)) → U33_aa(T215, T213, T214, T9, qsort79_in_aa(T222, X12))
qsort79_in_aa([], []) → qsort79_out_aa([], [])
qsort79_in_aa(.(T163, T164), X265) → U8_aa(T163, T164, X265, split51_in_aaaa(T164, T163, X261, X262))
U8_aa(T163, T164, X265, split51_out_aaaa(T164, T163, X261, X262)) → qsort79_out_aa(.(T163, T164), X265)
qsort79_in_aa(.(T163, T164), X265) → U9_aa(T163, T164, X265, split51_in_aaaa(T164, T163, T167, T168))
U9_aa(T163, T164, X265, split51_out_aaaa(T164, T163, T167, T168)) → U10_aa(T163, T164, X265, qsort79_in_aa(T167, X263))
U10_aa(T163, T164, X265, qsort79_out_aa(T167, X263)) → qsort79_out_aa(.(T163, T164), X265)
U9_aa(T163, T164, X265, split51_out_aaaa(T164, T163, T167, T168)) → U11_aa(T163, T164, X265, T168, qsort79_in_aa(T167, T171))
U11_aa(T163, T164, X265, T168, qsort79_out_aa(T167, T171)) → U12_aa(T163, T164, X265, qsort79_in_aa(T168, X264))
U12_aa(T163, T164, X265, qsort79_out_aa(T168, X264)) → qsort79_out_aa(.(T163, T164), X265)
U11_aa(T163, T164, X265, T168, qsort79_out_aa(T167, T171)) → U13_aa(T163, T164, X265, T171, qsort79_in_aa(T168, T172))
U13_aa(T163, T164, X265, T171, qsort79_out_aa(T168, T172)) → U14_aa(T163, T164, X265, append94_in_aaaa(T171, T163, T172, X265))
append94_in_aaaa([], T185, T186, .(T185, T186)) → append94_out_aaaa([], T185, T186, .(T185, T186))
append94_in_aaaa(.(T195, T196), T197, T198, .(T195, X295)) → U15_aaaa(T195, T196, T197, T198, X295, append94_in_aaaa(T196, T197, T198, X295))
U15_aaaa(T195, T196, T197, T198, X295, append94_out_aaaa(T196, T197, T198, X295)) → append94_out_aaaa(.(T195, T196), T197, T198, .(T195, X295))
U14_aa(T163, T164, X265, append94_out_aaaa(T171, T163, T172, X265)) → qsort79_out_aa(.(T163, T164), X265)
U33_aa(T215, T213, T214, T9, qsort79_out_aa(T222, X12)) → qsort1_out_aa(.(T215, .(T213, T214)), T9)
U32_aa(T215, T213, T214, T9, split51_out_agaa(T214, T215, T222, T223)) → U34_aa(T215, T213, T214, T9, T223, qsort79_in_aa(T222, T226))
U34_aa(T215, T213, T214, T9, T223, qsort79_out_aa(T222, T226)) → U35_aa(T215, T213, T214, T9, p78_in_aaaga(.(T213, T223), X13, T226, T215, T9))
p78_in_aaaga(T94, X13, T155, T69, T9) → U16_aaaga(T94, X13, T155, T69, T9, qsort79_in_aa(T94, X13))
U16_aaaga(T94, X13, T155, T69, T9, qsort79_out_aa(T94, X13)) → p78_out_aaaga(T94, X13, T155, T69, T9)
p78_in_aaaga(T94, T158, T155, T69, T9) → U17_aaaga(T94, T158, T155, T69, T9, qsort79_in_aa(T94, T158))
U17_aaaga(T94, T158, T155, T69, T9, qsort79_out_aa(T94, T158)) → U18_aaaga(T94, T158, T155, T69, T9, append23_in_agaa(T155, T69, T158, T9))
append23_in_agaa([], T33, T34, .(T33, T34)) → append23_out_agaa([], T33, T34, .(T33, T34))
append23_in_agaa(.(T45, T46), T47, T48, .(T45, T50)) → U1_agaa(T45, T46, T47, T48, T50, append23_in_agaa(T46, T47, T48, T50))
U1_agaa(T45, T46, T47, T48, T50, append23_out_agaa(T46, T47, T48, T50)) → append23_out_agaa(.(T45, T46), T47, T48, .(T45, T50))
U18_aaaga(T94, T158, T155, T69, T9, append23_out_agaa(T155, T69, T158, T9)) → p78_out_aaaga(T94, T158, T155, T69, T9)
U35_aa(T215, T213, T214, T9, p78_out_aaaga(.(T213, T223), X13, T226, T215, T9)) → qsort1_out_aa(.(T215, .(T213, T214)), T9)
U27_aa(T69, T67, T68, T9, qsort1_out_aa(.(T67, T93), X12)) → qsort1_out_aa(.(T69, .(T67, T68)), T9)
U26_aa(T69, T67, T68, T9, split51_out_aaaa(T68, T69, T93, T94)) → U28_aa(T69, T67, T68, T9, T94, qsort1_in_aa(.(T67, T93), T155))
U28_aa(T69, T67, T68, T9, T94, qsort1_out_aa(.(T67, T93), T155)) → U29_aa(T69, T67, T68, T9, p78_in_aaaaa(T94, X13, T155, T69, T9))
p78_in_aaaaa(T94, X13, T155, T69, T9) → U16_aaaaa(T94, X13, T155, T69, T9, qsort79_in_aa(T94, X13))
U16_aaaaa(T94, X13, T155, T69, T9, qsort79_out_aa(T94, X13)) → p78_out_aaaaa(T94, X13, T155, T69, T9)
p78_in_aaaaa(T94, T158, T155, T69, T9) → U17_aaaaa(T94, T158, T155, T69, T9, qsort79_in_aa(T94, T158))
U17_aaaaa(T94, T158, T155, T69, T9, qsort79_out_aa(T94, T158)) → U18_aaaaa(T94, T158, T155, T69, T9, append23_in_aaaa(T155, T69, T158, T9))
append23_in_aaaa([], T33, T34, .(T33, T34)) → append23_out_aaaa([], T33, T34, .(T33, T34))
append23_in_aaaa(.(T45, T46), T47, T48, .(T45, T50)) → U1_aaaa(T45, T46, T47, T48, T50, append23_in_aaaa(T46, T47, T48, T50))
U1_aaaa(T45, T46, T47, T48, T50, append23_out_aaaa(T46, T47, T48, T50)) → append23_out_aaaa(.(T45, T46), T47, T48, .(T45, T50))
U18_aaaaa(T94, T158, T155, T69, T9, append23_out_aaaa(T155, T69, T158, T9)) → p78_out_aaaaa(T94, T158, T155, T69, T9)
U29_aa(T69, T67, T68, T9, p78_out_aaaaa(T94, X13, T155, T69, T9)) → qsort1_out_aa(.(T69, .(T67, T68)), T9)
U27_ga(T69, T67, T68, T9, qsort1_out_aa(.(T67, T93), X12)) → qsort1_out_ga(.(T69, .(T67, T68)), T9)
U26_ga(T69, T67, T68, T9, split51_out_ggaa(T68, T69, T93, T94)) → U28_ga(T69, T67, T68, T9, T94, qsort1_in_aa(.(T67, T93), T155))
U28_ga(T69, T67, T68, T9, T94, qsort1_out_aa(.(T67, T93), T155)) → U29_ga(T69, T67, T68, T9, p78_in_aaaga(T94, X13, T155, T69, T9))
U29_ga(T69, T67, T68, T9, p78_out_aaaga(T94, X13, T155, T69, T9)) → qsort1_out_ga(.(T69, .(T67, T68)), T9)
qsort1_in_ga(.(T215, .(T213, T214)), T9) → U30_ga(T215, T213, T214, T9, gt67_in_gg(T213, T215))
U30_ga(T215, T213, T214, T9, gt67_out_gg(T213, T215)) → qsort1_out_ga(.(T215, .(T213, T214)), T9)
U30_ga(T215, T213, T214, T9, gt67_out_gg(T213, T215)) → U31_ga(T215, T213, T214, T9, split51_in_ggaa(T214, T215, X323, X324))
U31_ga(T215, T213, T214, T9, split51_out_ggaa(T214, T215, X323, X324)) → qsort1_out_ga(.(T215, .(T213, T214)), T9)
U30_ga(T215, T213, T214, T9, gt67_out_gg(T213, T215)) → U32_ga(T215, T213, T214, T9, split51_in_ggaa(T214, T215, T222, T223))
U32_ga(T215, T213, T214, T9, split51_out_ggaa(T214, T215, T222, T223)) → U33_ga(T215, T213, T214, T9, qsort79_in_aa(T222, X12))
U33_ga(T215, T213, T214, T9, qsort79_out_aa(T222, X12)) → qsort1_out_ga(.(T215, .(T213, T214)), T9)
U32_ga(T215, T213, T214, T9, split51_out_ggaa(T214, T215, T222, T223)) → U34_ga(T215, T213, T214, T9, T223, qsort79_in_aa(T222, T226))
U34_ga(T215, T213, T214, T9, T223, qsort79_out_aa(T222, T226)) → U35_ga(T215, T213, T214, T9, p78_in_aaaga(.(T213, T223), X13, T226, T215, T9))
U35_ga(T215, T213, T214, T9, p78_out_aaaga(.(T213, T223), X13, T226, T215, T9)) → qsort1_out_ga(.(T215, .(T213, T214)), T9)
QSORT1_IN_AA(.(T69, .(T67, T68)), T9) → U24_AA(T69, T67, T68, T9, le36_in_aa(T67, T69))
U24_AA(T69, T67, T68, T9, le36_out_aa(T67, T69)) → U26_AA(T69, T67, T68, T9, split51_in_aaaa(T68, T69, T93, T94))
U26_AA(T69, T67, T68, T9, split51_out_aaaa(T68, T69, T93, T94)) → QSORT1_IN_AA(.(T67, T93), X12)
le36_in_aa(s(T82), s(T83)) → U2_aa(T82, T83, le36_in_aa(T82, T83))
le36_in_aa(0, s(T90)) → le36_out_aa(0, s(T90))
le36_in_aa(0, 0) → le36_out_aa(0, 0)
split51_in_aaaa([], T101, [], []) → split51_out_aaaa([], T101, [], [])
split51_in_aaaa(.(T114, T115), T116, .(T114, X167), X168) → U3_aaaa(T114, T115, T116, X167, X168, le36_in_aa(T114, T116))
split51_in_aaaa(.(T129, T130), T131, X199, .(T129, X200)) → U5_aaaa(T129, T130, T131, X199, X200, gt67_in_aa(T129, T131))
U2_aa(T82, T83, le36_out_aa(T82, T83)) → le36_out_aa(s(T82), s(T83))
U3_aaaa(T114, T115, T116, X167, X168, le36_out_aa(T114, T116)) → split51_out_aaaa(.(T114, T115), T116, .(T114, X167), X168)
U3_aaaa(T114, T115, T116, X167, X168, le36_out_aa(T114, T116)) → U4_aaaa(T114, T115, T116, X167, X168, split51_in_aaaa(T115, T116, X167, X168))
U5_aaaa(T129, T130, T131, X199, X200, gt67_out_aa(T129, T131)) → split51_out_aaaa(.(T129, T130), T131, X199, .(T129, X200))
U5_aaaa(T129, T130, T131, X199, X200, gt67_out_aa(T129, T131)) → U6_aaaa(T129, T130, T131, X199, X200, split51_in_agaa(T130, T131, X199, X200))
U4_aaaa(T114, T115, T116, X167, X168, split51_out_aaaa(T115, T116, X167, X168)) → split51_out_aaaa(.(T114, T115), T116, .(T114, X167), X168)
gt67_in_aa(s(T144), s(T145)) → U7_aa(T144, T145, gt67_in_aa(T144, T145))
gt67_in_aa(s(T150), 0) → gt67_out_aa(s(T150), 0)
U6_aaaa(T129, T130, T131, X199, X200, split51_out_agaa(T130, T131, X199, X200)) → split51_out_aaaa(.(T129, T130), T131, X199, .(T129, X200))
U7_aa(T144, T145, gt67_out_aa(T144, T145)) → gt67_out_aa(s(T144), s(T145))
split51_in_agaa([], T101, [], []) → split51_out_agaa([], T101, [], [])
split51_in_agaa(.(T114, T115), T116, .(T114, X167), X168) → U3_agaa(T114, T115, T116, X167, X168, le36_in_ag(T114, T116))
split51_in_agaa(.(T129, T130), T131, X199, .(T129, X200)) → U5_agaa(T129, T130, T131, X199, X200, gt67_in_ag(T129, T131))
U3_agaa(T114, T115, T116, X167, X168, le36_out_ag(T114, T116)) → split51_out_agaa(.(T114, T115), T116, .(T114, X167), X168)
U3_agaa(T114, T115, T116, X167, X168, le36_out_ag(T114, T116)) → U4_agaa(T114, T115, T116, X167, X168, split51_in_agaa(T115, T116, X167, X168))
U5_agaa(T129, T130, T131, X199, X200, gt67_out_ag(T129, T131)) → split51_out_agaa(.(T129, T130), T131, X199, .(T129, X200))
U5_agaa(T129, T130, T131, X199, X200, gt67_out_ag(T129, T131)) → U6_agaa(T129, T130, T131, X199, X200, split51_in_agaa(T130, T131, X199, X200))
le36_in_ag(s(T82), s(T83)) → U2_ag(T82, T83, le36_in_ag(T82, T83))
le36_in_ag(0, s(T90)) → le36_out_ag(0, s(T90))
le36_in_ag(0, 0) → le36_out_ag(0, 0)
U4_agaa(T114, T115, T116, X167, X168, split51_out_agaa(T115, T116, X167, X168)) → split51_out_agaa(.(T114, T115), T116, .(T114, X167), X168)
gt67_in_ag(s(T144), s(T145)) → U7_ag(T144, T145, gt67_in_ag(T144, T145))
gt67_in_ag(s(T150), 0) → gt67_out_ag(s(T150), 0)
U6_agaa(T129, T130, T131, X199, X200, split51_out_agaa(T130, T131, X199, X200)) → split51_out_agaa(.(T129, T130), T131, X199, .(T129, X200))
U2_ag(T82, T83, le36_out_ag(T82, T83)) → le36_out_ag(s(T82), s(T83))
U7_ag(T144, T145, gt67_out_ag(T144, T145)) → gt67_out_ag(s(T144), s(T145))
QSORT1_IN_AA → U24_AA(le36_in_aa)
U24_AA(le36_out_aa(T67)) → U26_AA(split51_in_aaaa)
U26_AA(split51_out_aaaa) → QSORT1_IN_AA
le36_in_aa → U2_aa(le36_in_aa)
le36_in_aa → le36_out_aa(0)
split51_in_aaaa → split51_out_aaaa
split51_in_aaaa → U3_aaaa(le36_in_aa)
split51_in_aaaa → U5_aaaa(gt67_in_aa)
U2_aa(le36_out_aa(T82)) → le36_out_aa(s(T82))
U3_aaaa(le36_out_aa(T114)) → split51_out_aaaa
U3_aaaa(le36_out_aa(T114)) → U4_aaaa(split51_in_aaaa)
U5_aaaa(gt67_out_aa(T131)) → split51_out_aaaa
U5_aaaa(gt67_out_aa(T131)) → U6_aaaa(split51_in_agaa(T131))
U4_aaaa(split51_out_aaaa) → split51_out_aaaa
gt67_in_aa → U7_aa(gt67_in_aa)
gt67_in_aa → gt67_out_aa(0)
U6_aaaa(split51_out_agaa(T131)) → split51_out_aaaa
U7_aa(gt67_out_aa(T145)) → gt67_out_aa(s(T145))
split51_in_agaa(T101) → split51_out_agaa(T101)
split51_in_agaa(T116) → U3_agaa(T116, le36_in_ag(T116))
split51_in_agaa(T131) → U5_agaa(T131, gt67_in_ag(T131))
U3_agaa(T116, le36_out_ag(T114, T116)) → split51_out_agaa(T116)
U3_agaa(T116, le36_out_ag(T114, T116)) → U4_agaa(T116, split51_in_agaa(T116))
U5_agaa(T131, gt67_out_ag(T131)) → split51_out_agaa(T131)
U5_agaa(T131, gt67_out_ag(T131)) → U6_agaa(T131, split51_in_agaa(T131))
le36_in_ag(s(T83)) → U2_ag(T83, le36_in_ag(T83))
le36_in_ag(s(T90)) → le36_out_ag(0, s(T90))
le36_in_ag(0) → le36_out_ag(0, 0)
U4_agaa(T116, split51_out_agaa(T116)) → split51_out_agaa(T116)
gt67_in_ag(s(T145)) → U7_ag(T145, gt67_in_ag(T145))
gt67_in_ag(0) → gt67_out_ag(0)
U6_agaa(T131, split51_out_agaa(T131)) → split51_out_agaa(T131)
U2_ag(T83, le36_out_ag(T82, T83)) → le36_out_ag(s(T82), s(T83))
U7_ag(T145, gt67_out_ag(T145)) → gt67_out_ag(s(T145))
le36_in_aa
split51_in_aaaa
U2_aa(x0)
U3_aaaa(x0)
U5_aaaa(x0)
U4_aaaa(x0)
gt67_in_aa
U6_aaaa(x0)
U7_aa(x0)
split51_in_agaa(x0)
U3_agaa(x0, x1)
U5_agaa(x0, x1)
le36_in_ag(x0)
U4_agaa(x0, x1)
gt67_in_ag(x0)
U6_agaa(x0, x1)
U2_ag(x0, x1)
U7_ag(x0, x1)
QSORT1_IN_AA → U24_AA(U2_aa(le36_in_aa))
QSORT1_IN_AA → U24_AA(le36_out_aa(0))
U24_AA(le36_out_aa(T67)) → U26_AA(split51_in_aaaa)
U26_AA(split51_out_aaaa) → QSORT1_IN_AA
QSORT1_IN_AA → U24_AA(U2_aa(le36_in_aa))
QSORT1_IN_AA → U24_AA(le36_out_aa(0))
le36_in_aa → U2_aa(le36_in_aa)
le36_in_aa → le36_out_aa(0)
split51_in_aaaa → split51_out_aaaa
split51_in_aaaa → U3_aaaa(le36_in_aa)
split51_in_aaaa → U5_aaaa(gt67_in_aa)
U2_aa(le36_out_aa(T82)) → le36_out_aa(s(T82))
U3_aaaa(le36_out_aa(T114)) → split51_out_aaaa
U3_aaaa(le36_out_aa(T114)) → U4_aaaa(split51_in_aaaa)
U5_aaaa(gt67_out_aa(T131)) → split51_out_aaaa
U5_aaaa(gt67_out_aa(T131)) → U6_aaaa(split51_in_agaa(T131))
U4_aaaa(split51_out_aaaa) → split51_out_aaaa
gt67_in_aa → U7_aa(gt67_in_aa)
gt67_in_aa → gt67_out_aa(0)
U6_aaaa(split51_out_agaa(T131)) → split51_out_aaaa
U7_aa(gt67_out_aa(T145)) → gt67_out_aa(s(T145))
split51_in_agaa(T101) → split51_out_agaa(T101)
split51_in_agaa(T116) → U3_agaa(T116, le36_in_ag(T116))
split51_in_agaa(T131) → U5_agaa(T131, gt67_in_ag(T131))
U3_agaa(T116, le36_out_ag(T114, T116)) → split51_out_agaa(T116)
U3_agaa(T116, le36_out_ag(T114, T116)) → U4_agaa(T116, split51_in_agaa(T116))
U5_agaa(T131, gt67_out_ag(T131)) → split51_out_agaa(T131)
U5_agaa(T131, gt67_out_ag(T131)) → U6_agaa(T131, split51_in_agaa(T131))
le36_in_ag(s(T83)) → U2_ag(T83, le36_in_ag(T83))
le36_in_ag(s(T90)) → le36_out_ag(0, s(T90))
le36_in_ag(0) → le36_out_ag(0, 0)
U4_agaa(T116, split51_out_agaa(T116)) → split51_out_agaa(T116)
gt67_in_ag(s(T145)) → U7_ag(T145, gt67_in_ag(T145))
gt67_in_ag(0) → gt67_out_ag(0)
U6_agaa(T131, split51_out_agaa(T131)) → split51_out_agaa(T131)
U2_ag(T83, le36_out_ag(T82, T83)) → le36_out_ag(s(T82), s(T83))
U7_ag(T145, gt67_out_ag(T145)) → gt67_out_ag(s(T145))
le36_in_aa
split51_in_aaaa
U2_aa(x0)
U3_aaaa(x0)
U5_aaaa(x0)
U4_aaaa(x0)
gt67_in_aa
U6_aaaa(x0)
U7_aa(x0)
split51_in_agaa(x0)
U3_agaa(x0, x1)
U5_agaa(x0, x1)
le36_in_ag(x0)
U4_agaa(x0, x1)
gt67_in_ag(x0)
U6_agaa(x0, x1)
U2_ag(x0, x1)
U7_ag(x0, x1)
U24_AA(le36_out_aa(y0)) → U26_AA(split51_out_aaaa)
U24_AA(le36_out_aa(y0)) → U26_AA(U3_aaaa(le36_in_aa))
U24_AA(le36_out_aa(y0)) → U26_AA(U5_aaaa(gt67_in_aa))
U26_AA(split51_out_aaaa) → QSORT1_IN_AA
QSORT1_IN_AA → U24_AA(U2_aa(le36_in_aa))
QSORT1_IN_AA → U24_AA(le36_out_aa(0))
U24_AA(le36_out_aa(y0)) → U26_AA(split51_out_aaaa)
U24_AA(le36_out_aa(y0)) → U26_AA(U3_aaaa(le36_in_aa))
U24_AA(le36_out_aa(y0)) → U26_AA(U5_aaaa(gt67_in_aa))
le36_in_aa → U2_aa(le36_in_aa)
le36_in_aa → le36_out_aa(0)
split51_in_aaaa → split51_out_aaaa
split51_in_aaaa → U3_aaaa(le36_in_aa)
split51_in_aaaa → U5_aaaa(gt67_in_aa)
U2_aa(le36_out_aa(T82)) → le36_out_aa(s(T82))
U3_aaaa(le36_out_aa(T114)) → split51_out_aaaa
U3_aaaa(le36_out_aa(T114)) → U4_aaaa(split51_in_aaaa)
U5_aaaa(gt67_out_aa(T131)) → split51_out_aaaa
U5_aaaa(gt67_out_aa(T131)) → U6_aaaa(split51_in_agaa(T131))
U4_aaaa(split51_out_aaaa) → split51_out_aaaa
gt67_in_aa → U7_aa(gt67_in_aa)
gt67_in_aa → gt67_out_aa(0)
U6_aaaa(split51_out_agaa(T131)) → split51_out_aaaa
U7_aa(gt67_out_aa(T145)) → gt67_out_aa(s(T145))
split51_in_agaa(T101) → split51_out_agaa(T101)
split51_in_agaa(T116) → U3_agaa(T116, le36_in_ag(T116))
split51_in_agaa(T131) → U5_agaa(T131, gt67_in_ag(T131))
U3_agaa(T116, le36_out_ag(T114, T116)) → split51_out_agaa(T116)
U3_agaa(T116, le36_out_ag(T114, T116)) → U4_agaa(T116, split51_in_agaa(T116))
U5_agaa(T131, gt67_out_ag(T131)) → split51_out_agaa(T131)
U5_agaa(T131, gt67_out_ag(T131)) → U6_agaa(T131, split51_in_agaa(T131))
le36_in_ag(s(T83)) → U2_ag(T83, le36_in_ag(T83))
le36_in_ag(s(T90)) → le36_out_ag(0, s(T90))
le36_in_ag(0) → le36_out_ag(0, 0)
U4_agaa(T116, split51_out_agaa(T116)) → split51_out_agaa(T116)
gt67_in_ag(s(T145)) → U7_ag(T145, gt67_in_ag(T145))
gt67_in_ag(0) → gt67_out_ag(0)
U6_agaa(T131, split51_out_agaa(T131)) → split51_out_agaa(T131)
U2_ag(T83, le36_out_ag(T82, T83)) → le36_out_ag(s(T82), s(T83))
U7_ag(T145, gt67_out_ag(T145)) → gt67_out_ag(s(T145))
le36_in_aa
split51_in_aaaa
U2_aa(x0)
U3_aaaa(x0)
U5_aaaa(x0)
U4_aaaa(x0)
gt67_in_aa
U6_aaaa(x0)
U7_aa(x0)
split51_in_agaa(x0)
U3_agaa(x0, x1)
U5_agaa(x0, x1)
le36_in_ag(x0)
U4_agaa(x0, x1)
gt67_in_ag(x0)
U6_agaa(x0, x1)
U2_ag(x0, x1)
U7_ag(x0, x1)
GT67_IN_GG(s(T144), s(T145)) → GT67_IN_GG(T144, T145)
qsort1_in_ga([], []) → qsort1_out_ga([], [])
qsort1_in_ga(.(T14, []), T9) → U19_ga(T14, T9, qsort14_in_a(X12))
qsort14_in_a([]) → qsort14_out_a([])
U19_ga(T14, T9, qsort14_out_a(X12)) → qsort1_out_ga(.(T14, []), T9)
qsort1_in_ga(.(T14, []), T9) → U20_ga(T14, T9, qsort14_in_a(T17))
U20_ga(T14, T9, qsort14_out_a(T17)) → U21_ga(T14, T9, qsort14_in_a(X13))
U21_ga(T14, T9, qsort14_out_a(X13)) → qsort1_out_ga(.(T14, []), T9)
U20_ga(T14, T9, qsort14_out_a(T17)) → U22_ga(T14, T9, T17, qsort14_in_a(T20))
U22_ga(T14, T9, T17, qsort14_out_a(T20)) → U23_ga(T14, T9, append23_in_ggga(T17, T14, T20, T9))
append23_in_ggga([], T33, T34, .(T33, T34)) → append23_out_ggga([], T33, T34, .(T33, T34))
append23_in_ggga(.(T45, T46), T47, T48, .(T45, T50)) → U1_ggga(T45, T46, T47, T48, T50, append23_in_ggga(T46, T47, T48, T50))
U1_ggga(T45, T46, T47, T48, T50, append23_out_ggga(T46, T47, T48, T50)) → append23_out_ggga(.(T45, T46), T47, T48, .(T45, T50))
U23_ga(T14, T9, append23_out_ggga(T17, T14, T20, T9)) → qsort1_out_ga(.(T14, []), T9)
qsort1_in_ga(.(T69, .(T67, T68)), T9) → U24_ga(T69, T67, T68, T9, le36_in_gg(T67, T69))
le36_in_gg(s(T82), s(T83)) → U2_gg(T82, T83, le36_in_gg(T82, T83))
le36_in_gg(0, s(T90)) → le36_out_gg(0, s(T90))
le36_in_gg(0, 0) → le36_out_gg(0, 0)
U2_gg(T82, T83, le36_out_gg(T82, T83)) → le36_out_gg(s(T82), s(T83))
U24_ga(T69, T67, T68, T9, le36_out_gg(T67, T69)) → qsort1_out_ga(.(T69, .(T67, T68)), T9)
U24_ga(T69, T67, T68, T9, le36_out_gg(T67, T69)) → U25_ga(T69, T67, T68, T9, split51_in_ggaa(T68, T69, X93, X94))
split51_in_ggaa([], T101, [], []) → split51_out_ggaa([], T101, [], [])
split51_in_ggaa(.(T114, T115), T116, .(T114, X167), X168) → U3_ggaa(T114, T115, T116, X167, X168, le36_in_gg(T114, T116))
U3_ggaa(T114, T115, T116, X167, X168, le36_out_gg(T114, T116)) → split51_out_ggaa(.(T114, T115), T116, .(T114, X167), X168)
U3_ggaa(T114, T115, T116, X167, X168, le36_out_gg(T114, T116)) → U4_ggaa(T114, T115, T116, X167, X168, split51_in_ggaa(T115, T116, X167, X168))
split51_in_ggaa(.(T129, T130), T131, X199, .(T129, X200)) → U5_ggaa(T129, T130, T131, X199, X200, gt67_in_gg(T129, T131))
gt67_in_gg(s(T144), s(T145)) → U7_gg(T144, T145, gt67_in_gg(T144, T145))
gt67_in_gg(s(T150), 0) → gt67_out_gg(s(T150), 0)
U7_gg(T144, T145, gt67_out_gg(T144, T145)) → gt67_out_gg(s(T144), s(T145))
U5_ggaa(T129, T130, T131, X199, X200, gt67_out_gg(T129, T131)) → split51_out_ggaa(.(T129, T130), T131, X199, .(T129, X200))
U5_ggaa(T129, T130, T131, X199, X200, gt67_out_gg(T129, T131)) → U6_ggaa(T129, T130, T131, X199, X200, split51_in_ggaa(T130, T131, X199, X200))
U6_ggaa(T129, T130, T131, X199, X200, split51_out_ggaa(T130, T131, X199, X200)) → split51_out_ggaa(.(T129, T130), T131, X199, .(T129, X200))
U4_ggaa(T114, T115, T116, X167, X168, split51_out_ggaa(T115, T116, X167, X168)) → split51_out_ggaa(.(T114, T115), T116, .(T114, X167), X168)
U25_ga(T69, T67, T68, T9, split51_out_ggaa(T68, T69, X93, X94)) → qsort1_out_ga(.(T69, .(T67, T68)), T9)
U24_ga(T69, T67, T68, T9, le36_out_gg(T67, T69)) → U26_ga(T69, T67, T68, T9, split51_in_ggaa(T68, T69, T93, T94))
U26_ga(T69, T67, T68, T9, split51_out_ggaa(T68, T69, T93, T94)) → U27_ga(T69, T67, T68, T9, qsort1_in_aa(.(T67, T93), X12))
qsort1_in_aa([], []) → qsort1_out_aa([], [])
qsort1_in_aa(.(T14, []), T9) → U19_aa(T14, T9, qsort14_in_a(X12))
U19_aa(T14, T9, qsort14_out_a(X12)) → qsort1_out_aa(.(T14, []), T9)
qsort1_in_aa(.(T14, []), T9) → U20_aa(T14, T9, qsort14_in_a(T17))
U20_aa(T14, T9, qsort14_out_a(T17)) → U21_aa(T14, T9, qsort14_in_a(X13))
U21_aa(T14, T9, qsort14_out_a(X13)) → qsort1_out_aa(.(T14, []), T9)
U20_aa(T14, T9, qsort14_out_a(T17)) → U22_aa(T14, T9, T17, qsort14_in_a(T20))
U22_aa(T14, T9, T17, qsort14_out_a(T20)) → U23_aa(T14, T9, append23_in_gaga(T17, T14, T20, T9))
append23_in_gaga([], T33, T34, .(T33, T34)) → append23_out_gaga([], T33, T34, .(T33, T34))
append23_in_gaga(.(T45, T46), T47, T48, .(T45, T50)) → U1_gaga(T45, T46, T47, T48, T50, append23_in_gaga(T46, T47, T48, T50))
U1_gaga(T45, T46, T47, T48, T50, append23_out_gaga(T46, T47, T48, T50)) → append23_out_gaga(.(T45, T46), T47, T48, .(T45, T50))
U23_aa(T14, T9, append23_out_gaga(T17, T14, T20, T9)) → qsort1_out_aa(.(T14, []), T9)
qsort1_in_aa(.(T69, .(T67, T68)), T9) → U24_aa(T69, T67, T68, T9, le36_in_aa(T67, T69))
le36_in_aa(s(T82), s(T83)) → U2_aa(T82, T83, le36_in_aa(T82, T83))
le36_in_aa(0, s(T90)) → le36_out_aa(0, s(T90))
le36_in_aa(0, 0) → le36_out_aa(0, 0)
U2_aa(T82, T83, le36_out_aa(T82, T83)) → le36_out_aa(s(T82), s(T83))
U24_aa(T69, T67, T68, T9, le36_out_aa(T67, T69)) → qsort1_out_aa(.(T69, .(T67, T68)), T9)
U24_aa(T69, T67, T68, T9, le36_out_aa(T67, T69)) → U25_aa(T69, T67, T68, T9, split51_in_aaaa(T68, T69, X93, X94))
split51_in_aaaa([], T101, [], []) → split51_out_aaaa([], T101, [], [])
split51_in_aaaa(.(T114, T115), T116, .(T114, X167), X168) → U3_aaaa(T114, T115, T116, X167, X168, le36_in_aa(T114, T116))
U3_aaaa(T114, T115, T116, X167, X168, le36_out_aa(T114, T116)) → split51_out_aaaa(.(T114, T115), T116, .(T114, X167), X168)
U3_aaaa(T114, T115, T116, X167, X168, le36_out_aa(T114, T116)) → U4_aaaa(T114, T115, T116, X167, X168, split51_in_aaaa(T115, T116, X167, X168))
split51_in_aaaa(.(T129, T130), T131, X199, .(T129, X200)) → U5_aaaa(T129, T130, T131, X199, X200, gt67_in_aa(T129, T131))
gt67_in_aa(s(T144), s(T145)) → U7_aa(T144, T145, gt67_in_aa(T144, T145))
gt67_in_aa(s(T150), 0) → gt67_out_aa(s(T150), 0)
U7_aa(T144, T145, gt67_out_aa(T144, T145)) → gt67_out_aa(s(T144), s(T145))
U5_aaaa(T129, T130, T131, X199, X200, gt67_out_aa(T129, T131)) → split51_out_aaaa(.(T129, T130), T131, X199, .(T129, X200))
U5_aaaa(T129, T130, T131, X199, X200, gt67_out_aa(T129, T131)) → U6_aaaa(T129, T130, T131, X199, X200, split51_in_agaa(T130, T131, X199, X200))
split51_in_agaa([], T101, [], []) → split51_out_agaa([], T101, [], [])
split51_in_agaa(.(T114, T115), T116, .(T114, X167), X168) → U3_agaa(T114, T115, T116, X167, X168, le36_in_ag(T114, T116))
le36_in_ag(s(T82), s(T83)) → U2_ag(T82, T83, le36_in_ag(T82, T83))
le36_in_ag(0, s(T90)) → le36_out_ag(0, s(T90))
le36_in_ag(0, 0) → le36_out_ag(0, 0)
U2_ag(T82, T83, le36_out_ag(T82, T83)) → le36_out_ag(s(T82), s(T83))
U3_agaa(T114, T115, T116, X167, X168, le36_out_ag(T114, T116)) → split51_out_agaa(.(T114, T115), T116, .(T114, X167), X168)
U3_agaa(T114, T115, T116, X167, X168, le36_out_ag(T114, T116)) → U4_agaa(T114, T115, T116, X167, X168, split51_in_agaa(T115, T116, X167, X168))
split51_in_agaa(.(T129, T130), T131, X199, .(T129, X200)) → U5_agaa(T129, T130, T131, X199, X200, gt67_in_ag(T129, T131))
gt67_in_ag(s(T144), s(T145)) → U7_ag(T144, T145, gt67_in_ag(T144, T145))
gt67_in_ag(s(T150), 0) → gt67_out_ag(s(T150), 0)
U7_ag(T144, T145, gt67_out_ag(T144, T145)) → gt67_out_ag(s(T144), s(T145))
U5_agaa(T129, T130, T131, X199, X200, gt67_out_ag(T129, T131)) → split51_out_agaa(.(T129, T130), T131, X199, .(T129, X200))
U5_agaa(T129, T130, T131, X199, X200, gt67_out_ag(T129, T131)) → U6_agaa(T129, T130, T131, X199, X200, split51_in_agaa(T130, T131, X199, X200))
U6_agaa(T129, T130, T131, X199, X200, split51_out_agaa(T130, T131, X199, X200)) → split51_out_agaa(.(T129, T130), T131, X199, .(T129, X200))
U4_agaa(T114, T115, T116, X167, X168, split51_out_agaa(T115, T116, X167, X168)) → split51_out_agaa(.(T114, T115), T116, .(T114, X167), X168)
U6_aaaa(T129, T130, T131, X199, X200, split51_out_agaa(T130, T131, X199, X200)) → split51_out_aaaa(.(T129, T130), T131, X199, .(T129, X200))
U4_aaaa(T114, T115, T116, X167, X168, split51_out_aaaa(T115, T116, X167, X168)) → split51_out_aaaa(.(T114, T115), T116, .(T114, X167), X168)
U25_aa(T69, T67, T68, T9, split51_out_aaaa(T68, T69, X93, X94)) → qsort1_out_aa(.(T69, .(T67, T68)), T9)
U24_aa(T69, T67, T68, T9, le36_out_aa(T67, T69)) → U26_aa(T69, T67, T68, T9, split51_in_aaaa(T68, T69, T93, T94))
U26_aa(T69, T67, T68, T9, split51_out_aaaa(T68, T69, T93, T94)) → U27_aa(T69, T67, T68, T9, qsort1_in_aa(.(T67, T93), X12))
qsort1_in_aa(.(T215, .(T213, T214)), T9) → U30_aa(T215, T213, T214, T9, gt67_in_aa(T213, T215))
U30_aa(T215, T213, T214, T9, gt67_out_aa(T213, T215)) → qsort1_out_aa(.(T215, .(T213, T214)), T9)
U30_aa(T215, T213, T214, T9, gt67_out_aa(T213, T215)) → U31_aa(T215, T213, T214, T9, split51_in_agaa(T214, T215, X323, X324))
U31_aa(T215, T213, T214, T9, split51_out_agaa(T214, T215, X323, X324)) → qsort1_out_aa(.(T215, .(T213, T214)), T9)
U30_aa(T215, T213, T214, T9, gt67_out_aa(T213, T215)) → U32_aa(T215, T213, T214, T9, split51_in_agaa(T214, T215, T222, T223))
U32_aa(T215, T213, T214, T9, split51_out_agaa(T214, T215, T222, T223)) → U33_aa(T215, T213, T214, T9, qsort79_in_aa(T222, X12))
qsort79_in_aa([], []) → qsort79_out_aa([], [])
qsort79_in_aa(.(T163, T164), X265) → U8_aa(T163, T164, X265, split51_in_aaaa(T164, T163, X261, X262))
U8_aa(T163, T164, X265, split51_out_aaaa(T164, T163, X261, X262)) → qsort79_out_aa(.(T163, T164), X265)
qsort79_in_aa(.(T163, T164), X265) → U9_aa(T163, T164, X265, split51_in_aaaa(T164, T163, T167, T168))
U9_aa(T163, T164, X265, split51_out_aaaa(T164, T163, T167, T168)) → U10_aa(T163, T164, X265, qsort79_in_aa(T167, X263))
U10_aa(T163, T164, X265, qsort79_out_aa(T167, X263)) → qsort79_out_aa(.(T163, T164), X265)
U9_aa(T163, T164, X265, split51_out_aaaa(T164, T163, T167, T168)) → U11_aa(T163, T164, X265, T168, qsort79_in_aa(T167, T171))
U11_aa(T163, T164, X265, T168, qsort79_out_aa(T167, T171)) → U12_aa(T163, T164, X265, qsort79_in_aa(T168, X264))
U12_aa(T163, T164, X265, qsort79_out_aa(T168, X264)) → qsort79_out_aa(.(T163, T164), X265)
U11_aa(T163, T164, X265, T168, qsort79_out_aa(T167, T171)) → U13_aa(T163, T164, X265, T171, qsort79_in_aa(T168, T172))
U13_aa(T163, T164, X265, T171, qsort79_out_aa(T168, T172)) → U14_aa(T163, T164, X265, append94_in_aaaa(T171, T163, T172, X265))
append94_in_aaaa([], T185, T186, .(T185, T186)) → append94_out_aaaa([], T185, T186, .(T185, T186))
append94_in_aaaa(.(T195, T196), T197, T198, .(T195, X295)) → U15_aaaa(T195, T196, T197, T198, X295, append94_in_aaaa(T196, T197, T198, X295))
U15_aaaa(T195, T196, T197, T198, X295, append94_out_aaaa(T196, T197, T198, X295)) → append94_out_aaaa(.(T195, T196), T197, T198, .(T195, X295))
U14_aa(T163, T164, X265, append94_out_aaaa(T171, T163, T172, X265)) → qsort79_out_aa(.(T163, T164), X265)
U33_aa(T215, T213, T214, T9, qsort79_out_aa(T222, X12)) → qsort1_out_aa(.(T215, .(T213, T214)), T9)
U32_aa(T215, T213, T214, T9, split51_out_agaa(T214, T215, T222, T223)) → U34_aa(T215, T213, T214, T9, T223, qsort79_in_aa(T222, T226))
U34_aa(T215, T213, T214, T9, T223, qsort79_out_aa(T222, T226)) → U35_aa(T215, T213, T214, T9, p78_in_aaaga(.(T213, T223), X13, T226, T215, T9))
p78_in_aaaga(T94, X13, T155, T69, T9) → U16_aaaga(T94, X13, T155, T69, T9, qsort79_in_aa(T94, X13))
U16_aaaga(T94, X13, T155, T69, T9, qsort79_out_aa(T94, X13)) → p78_out_aaaga(T94, X13, T155, T69, T9)
p78_in_aaaga(T94, T158, T155, T69, T9) → U17_aaaga(T94, T158, T155, T69, T9, qsort79_in_aa(T94, T158))
U17_aaaga(T94, T158, T155, T69, T9, qsort79_out_aa(T94, T158)) → U18_aaaga(T94, T158, T155, T69, T9, append23_in_agaa(T155, T69, T158, T9))
append23_in_agaa([], T33, T34, .(T33, T34)) → append23_out_agaa([], T33, T34, .(T33, T34))
append23_in_agaa(.(T45, T46), T47, T48, .(T45, T50)) → U1_agaa(T45, T46, T47, T48, T50, append23_in_agaa(T46, T47, T48, T50))
U1_agaa(T45, T46, T47, T48, T50, append23_out_agaa(T46, T47, T48, T50)) → append23_out_agaa(.(T45, T46), T47, T48, .(T45, T50))
U18_aaaga(T94, T158, T155, T69, T9, append23_out_agaa(T155, T69, T158, T9)) → p78_out_aaaga(T94, T158, T155, T69, T9)
U35_aa(T215, T213, T214, T9, p78_out_aaaga(.(T213, T223), X13, T226, T215, T9)) → qsort1_out_aa(.(T215, .(T213, T214)), T9)
U27_aa(T69, T67, T68, T9, qsort1_out_aa(.(T67, T93), X12)) → qsort1_out_aa(.(T69, .(T67, T68)), T9)
U26_aa(T69, T67, T68, T9, split51_out_aaaa(T68, T69, T93, T94)) → U28_aa(T69, T67, T68, T9, T94, qsort1_in_aa(.(T67, T93), T155))
U28_aa(T69, T67, T68, T9, T94, qsort1_out_aa(.(T67, T93), T155)) → U29_aa(T69, T67, T68, T9, p78_in_aaaaa(T94, X13, T155, T69, T9))
p78_in_aaaaa(T94, X13, T155, T69, T9) → U16_aaaaa(T94, X13, T155, T69, T9, qsort79_in_aa(T94, X13))
U16_aaaaa(T94, X13, T155, T69, T9, qsort79_out_aa(T94, X13)) → p78_out_aaaaa(T94, X13, T155, T69, T9)
p78_in_aaaaa(T94, T158, T155, T69, T9) → U17_aaaaa(T94, T158, T155, T69, T9, qsort79_in_aa(T94, T158))
U17_aaaaa(T94, T158, T155, T69, T9, qsort79_out_aa(T94, T158)) → U18_aaaaa(T94, T158, T155, T69, T9, append23_in_aaaa(T155, T69, T158, T9))
append23_in_aaaa([], T33, T34, .(T33, T34)) → append23_out_aaaa([], T33, T34, .(T33, T34))
append23_in_aaaa(.(T45, T46), T47, T48, .(T45, T50)) → U1_aaaa(T45, T46, T47, T48, T50, append23_in_aaaa(T46, T47, T48, T50))
U1_aaaa(T45, T46, T47, T48, T50, append23_out_aaaa(T46, T47, T48, T50)) → append23_out_aaaa(.(T45, T46), T47, T48, .(T45, T50))
U18_aaaaa(T94, T158, T155, T69, T9, append23_out_aaaa(T155, T69, T158, T9)) → p78_out_aaaaa(T94, T158, T155, T69, T9)
U29_aa(T69, T67, T68, T9, p78_out_aaaaa(T94, X13, T155, T69, T9)) → qsort1_out_aa(.(T69, .(T67, T68)), T9)
U27_ga(T69, T67, T68, T9, qsort1_out_aa(.(T67, T93), X12)) → qsort1_out_ga(.(T69, .(T67, T68)), T9)
U26_ga(T69, T67, T68, T9, split51_out_ggaa(T68, T69, T93, T94)) → U28_ga(T69, T67, T68, T9, T94, qsort1_in_aa(.(T67, T93), T155))
U28_ga(T69, T67, T68, T9, T94, qsort1_out_aa(.(T67, T93), T155)) → U29_ga(T69, T67, T68, T9, p78_in_aaaga(T94, X13, T155, T69, T9))
U29_ga(T69, T67, T68, T9, p78_out_aaaga(T94, X13, T155, T69, T9)) → qsort1_out_ga(.(T69, .(T67, T68)), T9)
qsort1_in_ga(.(T215, .(T213, T214)), T9) → U30_ga(T215, T213, T214, T9, gt67_in_gg(T213, T215))
U30_ga(T215, T213, T214, T9, gt67_out_gg(T213, T215)) → qsort1_out_ga(.(T215, .(T213, T214)), T9)
U30_ga(T215, T213, T214, T9, gt67_out_gg(T213, T215)) → U31_ga(T215, T213, T214, T9, split51_in_ggaa(T214, T215, X323, X324))
U31_ga(T215, T213, T214, T9, split51_out_ggaa(T214, T215, X323, X324)) → qsort1_out_ga(.(T215, .(T213, T214)), T9)
U30_ga(T215, T213, T214, T9, gt67_out_gg(T213, T215)) → U32_ga(T215, T213, T214, T9, split51_in_ggaa(T214, T215, T222, T223))
U32_ga(T215, T213, T214, T9, split51_out_ggaa(T214, T215, T222, T223)) → U33_ga(T215, T213, T214, T9, qsort79_in_aa(T222, X12))
U33_ga(T215, T213, T214, T9, qsort79_out_aa(T222, X12)) → qsort1_out_ga(.(T215, .(T213, T214)), T9)
U32_ga(T215, T213, T214, T9, split51_out_ggaa(T214, T215, T222, T223)) → U34_ga(T215, T213, T214, T9, T223, qsort79_in_aa(T222, T226))
U34_ga(T215, T213, T214, T9, T223, qsort79_out_aa(T222, T226)) → U35_ga(T215, T213, T214, T9, p78_in_aaaga(.(T213, T223), X13, T226, T215, T9))
U35_ga(T215, T213, T214, T9, p78_out_aaaga(.(T213, T223), X13, T226, T215, T9)) → qsort1_out_ga(.(T215, .(T213, T214)), T9)
GT67_IN_GG(s(T144), s(T145)) → GT67_IN_GG(T144, T145)
GT67_IN_GG(s(T144), s(T145)) → GT67_IN_GG(T144, T145)
From the DPs we obtained the following set of size-change graphs:
LE36_IN_GG(s(T82), s(T83)) → LE36_IN_GG(T82, T83)
qsort1_in_ga([], []) → qsort1_out_ga([], [])
qsort1_in_ga(.(T14, []), T9) → U19_ga(T14, T9, qsort14_in_a(X12))
qsort14_in_a([]) → qsort14_out_a([])
U19_ga(T14, T9, qsort14_out_a(X12)) → qsort1_out_ga(.(T14, []), T9)
qsort1_in_ga(.(T14, []), T9) → U20_ga(T14, T9, qsort14_in_a(T17))
U20_ga(T14, T9, qsort14_out_a(T17)) → U21_ga(T14, T9, qsort14_in_a(X13))
U21_ga(T14, T9, qsort14_out_a(X13)) → qsort1_out_ga(.(T14, []), T9)
U20_ga(T14, T9, qsort14_out_a(T17)) → U22_ga(T14, T9, T17, qsort14_in_a(T20))
U22_ga(T14, T9, T17, qsort14_out_a(T20)) → U23_ga(T14, T9, append23_in_ggga(T17, T14, T20, T9))
append23_in_ggga([], T33, T34, .(T33, T34)) → append23_out_ggga([], T33, T34, .(T33, T34))
append23_in_ggga(.(T45, T46), T47, T48, .(T45, T50)) → U1_ggga(T45, T46, T47, T48, T50, append23_in_ggga(T46, T47, T48, T50))
U1_ggga(T45, T46, T47, T48, T50, append23_out_ggga(T46, T47, T48, T50)) → append23_out_ggga(.(T45, T46), T47, T48, .(T45, T50))
U23_ga(T14, T9, append23_out_ggga(T17, T14, T20, T9)) → qsort1_out_ga(.(T14, []), T9)
qsort1_in_ga(.(T69, .(T67, T68)), T9) → U24_ga(T69, T67, T68, T9, le36_in_gg(T67, T69))
le36_in_gg(s(T82), s(T83)) → U2_gg(T82, T83, le36_in_gg(T82, T83))
le36_in_gg(0, s(T90)) → le36_out_gg(0, s(T90))
le36_in_gg(0, 0) → le36_out_gg(0, 0)
U2_gg(T82, T83, le36_out_gg(T82, T83)) → le36_out_gg(s(T82), s(T83))
U24_ga(T69, T67, T68, T9, le36_out_gg(T67, T69)) → qsort1_out_ga(.(T69, .(T67, T68)), T9)
U24_ga(T69, T67, T68, T9, le36_out_gg(T67, T69)) → U25_ga(T69, T67, T68, T9, split51_in_ggaa(T68, T69, X93, X94))
split51_in_ggaa([], T101, [], []) → split51_out_ggaa([], T101, [], [])
split51_in_ggaa(.(T114, T115), T116, .(T114, X167), X168) → U3_ggaa(T114, T115, T116, X167, X168, le36_in_gg(T114, T116))
U3_ggaa(T114, T115, T116, X167, X168, le36_out_gg(T114, T116)) → split51_out_ggaa(.(T114, T115), T116, .(T114, X167), X168)
U3_ggaa(T114, T115, T116, X167, X168, le36_out_gg(T114, T116)) → U4_ggaa(T114, T115, T116, X167, X168, split51_in_ggaa(T115, T116, X167, X168))
split51_in_ggaa(.(T129, T130), T131, X199, .(T129, X200)) → U5_ggaa(T129, T130, T131, X199, X200, gt67_in_gg(T129, T131))
gt67_in_gg(s(T144), s(T145)) → U7_gg(T144, T145, gt67_in_gg(T144, T145))
gt67_in_gg(s(T150), 0) → gt67_out_gg(s(T150), 0)
U7_gg(T144, T145, gt67_out_gg(T144, T145)) → gt67_out_gg(s(T144), s(T145))
U5_ggaa(T129, T130, T131, X199, X200, gt67_out_gg(T129, T131)) → split51_out_ggaa(.(T129, T130), T131, X199, .(T129, X200))
U5_ggaa(T129, T130, T131, X199, X200, gt67_out_gg(T129, T131)) → U6_ggaa(T129, T130, T131, X199, X200, split51_in_ggaa(T130, T131, X199, X200))
U6_ggaa(T129, T130, T131, X199, X200, split51_out_ggaa(T130, T131, X199, X200)) → split51_out_ggaa(.(T129, T130), T131, X199, .(T129, X200))
U4_ggaa(T114, T115, T116, X167, X168, split51_out_ggaa(T115, T116, X167, X168)) → split51_out_ggaa(.(T114, T115), T116, .(T114, X167), X168)
U25_ga(T69, T67, T68, T9, split51_out_ggaa(T68, T69, X93, X94)) → qsort1_out_ga(.(T69, .(T67, T68)), T9)
U24_ga(T69, T67, T68, T9, le36_out_gg(T67, T69)) → U26_ga(T69, T67, T68, T9, split51_in_ggaa(T68, T69, T93, T94))
U26_ga(T69, T67, T68, T9, split51_out_ggaa(T68, T69, T93, T94)) → U27_ga(T69, T67, T68, T9, qsort1_in_aa(.(T67, T93), X12))
qsort1_in_aa([], []) → qsort1_out_aa([], [])
qsort1_in_aa(.(T14, []), T9) → U19_aa(T14, T9, qsort14_in_a(X12))
U19_aa(T14, T9, qsort14_out_a(X12)) → qsort1_out_aa(.(T14, []), T9)
qsort1_in_aa(.(T14, []), T9) → U20_aa(T14, T9, qsort14_in_a(T17))
U20_aa(T14, T9, qsort14_out_a(T17)) → U21_aa(T14, T9, qsort14_in_a(X13))
U21_aa(T14, T9, qsort14_out_a(X13)) → qsort1_out_aa(.(T14, []), T9)
U20_aa(T14, T9, qsort14_out_a(T17)) → U22_aa(T14, T9, T17, qsort14_in_a(T20))
U22_aa(T14, T9, T17, qsort14_out_a(T20)) → U23_aa(T14, T9, append23_in_gaga(T17, T14, T20, T9))
append23_in_gaga([], T33, T34, .(T33, T34)) → append23_out_gaga([], T33, T34, .(T33, T34))
append23_in_gaga(.(T45, T46), T47, T48, .(T45, T50)) → U1_gaga(T45, T46, T47, T48, T50, append23_in_gaga(T46, T47, T48, T50))
U1_gaga(T45, T46, T47, T48, T50, append23_out_gaga(T46, T47, T48, T50)) → append23_out_gaga(.(T45, T46), T47, T48, .(T45, T50))
U23_aa(T14, T9, append23_out_gaga(T17, T14, T20, T9)) → qsort1_out_aa(.(T14, []), T9)
qsort1_in_aa(.(T69, .(T67, T68)), T9) → U24_aa(T69, T67, T68, T9, le36_in_aa(T67, T69))
le36_in_aa(s(T82), s(T83)) → U2_aa(T82, T83, le36_in_aa(T82, T83))
le36_in_aa(0, s(T90)) → le36_out_aa(0, s(T90))
le36_in_aa(0, 0) → le36_out_aa(0, 0)
U2_aa(T82, T83, le36_out_aa(T82, T83)) → le36_out_aa(s(T82), s(T83))
U24_aa(T69, T67, T68, T9, le36_out_aa(T67, T69)) → qsort1_out_aa(.(T69, .(T67, T68)), T9)
U24_aa(T69, T67, T68, T9, le36_out_aa(T67, T69)) → U25_aa(T69, T67, T68, T9, split51_in_aaaa(T68, T69, X93, X94))
split51_in_aaaa([], T101, [], []) → split51_out_aaaa([], T101, [], [])
split51_in_aaaa(.(T114, T115), T116, .(T114, X167), X168) → U3_aaaa(T114, T115, T116, X167, X168, le36_in_aa(T114, T116))
U3_aaaa(T114, T115, T116, X167, X168, le36_out_aa(T114, T116)) → split51_out_aaaa(.(T114, T115), T116, .(T114, X167), X168)
U3_aaaa(T114, T115, T116, X167, X168, le36_out_aa(T114, T116)) → U4_aaaa(T114, T115, T116, X167, X168, split51_in_aaaa(T115, T116, X167, X168))
split51_in_aaaa(.(T129, T130), T131, X199, .(T129, X200)) → U5_aaaa(T129, T130, T131, X199, X200, gt67_in_aa(T129, T131))
gt67_in_aa(s(T144), s(T145)) → U7_aa(T144, T145, gt67_in_aa(T144, T145))
gt67_in_aa(s(T150), 0) → gt67_out_aa(s(T150), 0)
U7_aa(T144, T145, gt67_out_aa(T144, T145)) → gt67_out_aa(s(T144), s(T145))
U5_aaaa(T129, T130, T131, X199, X200, gt67_out_aa(T129, T131)) → split51_out_aaaa(.(T129, T130), T131, X199, .(T129, X200))
U5_aaaa(T129, T130, T131, X199, X200, gt67_out_aa(T129, T131)) → U6_aaaa(T129, T130, T131, X199, X200, split51_in_agaa(T130, T131, X199, X200))
split51_in_agaa([], T101, [], []) → split51_out_agaa([], T101, [], [])
split51_in_agaa(.(T114, T115), T116, .(T114, X167), X168) → U3_agaa(T114, T115, T116, X167, X168, le36_in_ag(T114, T116))
le36_in_ag(s(T82), s(T83)) → U2_ag(T82, T83, le36_in_ag(T82, T83))
le36_in_ag(0, s(T90)) → le36_out_ag(0, s(T90))
le36_in_ag(0, 0) → le36_out_ag(0, 0)
U2_ag(T82, T83, le36_out_ag(T82, T83)) → le36_out_ag(s(T82), s(T83))
U3_agaa(T114, T115, T116, X167, X168, le36_out_ag(T114, T116)) → split51_out_agaa(.(T114, T115), T116, .(T114, X167), X168)
U3_agaa(T114, T115, T116, X167, X168, le36_out_ag(T114, T116)) → U4_agaa(T114, T115, T116, X167, X168, split51_in_agaa(T115, T116, X167, X168))
split51_in_agaa(.(T129, T130), T131, X199, .(T129, X200)) → U5_agaa(T129, T130, T131, X199, X200, gt67_in_ag(T129, T131))
gt67_in_ag(s(T144), s(T145)) → U7_ag(T144, T145, gt67_in_ag(T144, T145))
gt67_in_ag(s(T150), 0) → gt67_out_ag(s(T150), 0)
U7_ag(T144, T145, gt67_out_ag(T144, T145)) → gt67_out_ag(s(T144), s(T145))
U5_agaa(T129, T130, T131, X199, X200, gt67_out_ag(T129, T131)) → split51_out_agaa(.(T129, T130), T131, X199, .(T129, X200))
U5_agaa(T129, T130, T131, X199, X200, gt67_out_ag(T129, T131)) → U6_agaa(T129, T130, T131, X199, X200, split51_in_agaa(T130, T131, X199, X200))
U6_agaa(T129, T130, T131, X199, X200, split51_out_agaa(T130, T131, X199, X200)) → split51_out_agaa(.(T129, T130), T131, X199, .(T129, X200))
U4_agaa(T114, T115, T116, X167, X168, split51_out_agaa(T115, T116, X167, X168)) → split51_out_agaa(.(T114, T115), T116, .(T114, X167), X168)
U6_aaaa(T129, T130, T131, X199, X200, split51_out_agaa(T130, T131, X199, X200)) → split51_out_aaaa(.(T129, T130), T131, X199, .(T129, X200))
U4_aaaa(T114, T115, T116, X167, X168, split51_out_aaaa(T115, T116, X167, X168)) → split51_out_aaaa(.(T114, T115), T116, .(T114, X167), X168)
U25_aa(T69, T67, T68, T9, split51_out_aaaa(T68, T69, X93, X94)) → qsort1_out_aa(.(T69, .(T67, T68)), T9)
U24_aa(T69, T67, T68, T9, le36_out_aa(T67, T69)) → U26_aa(T69, T67, T68, T9, split51_in_aaaa(T68, T69, T93, T94))
U26_aa(T69, T67, T68, T9, split51_out_aaaa(T68, T69, T93, T94)) → U27_aa(T69, T67, T68, T9, qsort1_in_aa(.(T67, T93), X12))
qsort1_in_aa(.(T215, .(T213, T214)), T9) → U30_aa(T215, T213, T214, T9, gt67_in_aa(T213, T215))
U30_aa(T215, T213, T214, T9, gt67_out_aa(T213, T215)) → qsort1_out_aa(.(T215, .(T213, T214)), T9)
U30_aa(T215, T213, T214, T9, gt67_out_aa(T213, T215)) → U31_aa(T215, T213, T214, T9, split51_in_agaa(T214, T215, X323, X324))
U31_aa(T215, T213, T214, T9, split51_out_agaa(T214, T215, X323, X324)) → qsort1_out_aa(.(T215, .(T213, T214)), T9)
U30_aa(T215, T213, T214, T9, gt67_out_aa(T213, T215)) → U32_aa(T215, T213, T214, T9, split51_in_agaa(T214, T215, T222, T223))
U32_aa(T215, T213, T214, T9, split51_out_agaa(T214, T215, T222, T223)) → U33_aa(T215, T213, T214, T9, qsort79_in_aa(T222, X12))
qsort79_in_aa([], []) → qsort79_out_aa([], [])
qsort79_in_aa(.(T163, T164), X265) → U8_aa(T163, T164, X265, split51_in_aaaa(T164, T163, X261, X262))
U8_aa(T163, T164, X265, split51_out_aaaa(T164, T163, X261, X262)) → qsort79_out_aa(.(T163, T164), X265)
qsort79_in_aa(.(T163, T164), X265) → U9_aa(T163, T164, X265, split51_in_aaaa(T164, T163, T167, T168))
U9_aa(T163, T164, X265, split51_out_aaaa(T164, T163, T167, T168)) → U10_aa(T163, T164, X265, qsort79_in_aa(T167, X263))
U10_aa(T163, T164, X265, qsort79_out_aa(T167, X263)) → qsort79_out_aa(.(T163, T164), X265)
U9_aa(T163, T164, X265, split51_out_aaaa(T164, T163, T167, T168)) → U11_aa(T163, T164, X265, T168, qsort79_in_aa(T167, T171))
U11_aa(T163, T164, X265, T168, qsort79_out_aa(T167, T171)) → U12_aa(T163, T164, X265, qsort79_in_aa(T168, X264))
U12_aa(T163, T164, X265, qsort79_out_aa(T168, X264)) → qsort79_out_aa(.(T163, T164), X265)
U11_aa(T163, T164, X265, T168, qsort79_out_aa(T167, T171)) → U13_aa(T163, T164, X265, T171, qsort79_in_aa(T168, T172))
U13_aa(T163, T164, X265, T171, qsort79_out_aa(T168, T172)) → U14_aa(T163, T164, X265, append94_in_aaaa(T171, T163, T172, X265))
append94_in_aaaa([], T185, T186, .(T185, T186)) → append94_out_aaaa([], T185, T186, .(T185, T186))
append94_in_aaaa(.(T195, T196), T197, T198, .(T195, X295)) → U15_aaaa(T195, T196, T197, T198, X295, append94_in_aaaa(T196, T197, T198, X295))
U15_aaaa(T195, T196, T197, T198, X295, append94_out_aaaa(T196, T197, T198, X295)) → append94_out_aaaa(.(T195, T196), T197, T198, .(T195, X295))
U14_aa(T163, T164, X265, append94_out_aaaa(T171, T163, T172, X265)) → qsort79_out_aa(.(T163, T164), X265)
U33_aa(T215, T213, T214, T9, qsort79_out_aa(T222, X12)) → qsort1_out_aa(.(T215, .(T213, T214)), T9)
U32_aa(T215, T213, T214, T9, split51_out_agaa(T214, T215, T222, T223)) → U34_aa(T215, T213, T214, T9, T223, qsort79_in_aa(T222, T226))
U34_aa(T215, T213, T214, T9, T223, qsort79_out_aa(T222, T226)) → U35_aa(T215, T213, T214, T9, p78_in_aaaga(.(T213, T223), X13, T226, T215, T9))
p78_in_aaaga(T94, X13, T155, T69, T9) → U16_aaaga(T94, X13, T155, T69, T9, qsort79_in_aa(T94, X13))
U16_aaaga(T94, X13, T155, T69, T9, qsort79_out_aa(T94, X13)) → p78_out_aaaga(T94, X13, T155, T69, T9)
p78_in_aaaga(T94, T158, T155, T69, T9) → U17_aaaga(T94, T158, T155, T69, T9, qsort79_in_aa(T94, T158))
U17_aaaga(T94, T158, T155, T69, T9, qsort79_out_aa(T94, T158)) → U18_aaaga(T94, T158, T155, T69, T9, append23_in_agaa(T155, T69, T158, T9))
append23_in_agaa([], T33, T34, .(T33, T34)) → append23_out_agaa([], T33, T34, .(T33, T34))
append23_in_agaa(.(T45, T46), T47, T48, .(T45, T50)) → U1_agaa(T45, T46, T47, T48, T50, append23_in_agaa(T46, T47, T48, T50))
U1_agaa(T45, T46, T47, T48, T50, append23_out_agaa(T46, T47, T48, T50)) → append23_out_agaa(.(T45, T46), T47, T48, .(T45, T50))
U18_aaaga(T94, T158, T155, T69, T9, append23_out_agaa(T155, T69, T158, T9)) → p78_out_aaaga(T94, T158, T155, T69, T9)
U35_aa(T215, T213, T214, T9, p78_out_aaaga(.(T213, T223), X13, T226, T215, T9)) → qsort1_out_aa(.(T215, .(T213, T214)), T9)
U27_aa(T69, T67, T68, T9, qsort1_out_aa(.(T67, T93), X12)) → qsort1_out_aa(.(T69, .(T67, T68)), T9)
U26_aa(T69, T67, T68, T9, split51_out_aaaa(T68, T69, T93, T94)) → U28_aa(T69, T67, T68, T9, T94, qsort1_in_aa(.(T67, T93), T155))
U28_aa(T69, T67, T68, T9, T94, qsort1_out_aa(.(T67, T93), T155)) → U29_aa(T69, T67, T68, T9, p78_in_aaaaa(T94, X13, T155, T69, T9))
p78_in_aaaaa(T94, X13, T155, T69, T9) → U16_aaaaa(T94, X13, T155, T69, T9, qsort79_in_aa(T94, X13))
U16_aaaaa(T94, X13, T155, T69, T9, qsort79_out_aa(T94, X13)) → p78_out_aaaaa(T94, X13, T155, T69, T9)
p78_in_aaaaa(T94, T158, T155, T69, T9) → U17_aaaaa(T94, T158, T155, T69, T9, qsort79_in_aa(T94, T158))
U17_aaaaa(T94, T158, T155, T69, T9, qsort79_out_aa(T94, T158)) → U18_aaaaa(T94, T158, T155, T69, T9, append23_in_aaaa(T155, T69, T158, T9))
append23_in_aaaa([], T33, T34, .(T33, T34)) → append23_out_aaaa([], T33, T34, .(T33, T34))
append23_in_aaaa(.(T45, T46), T47, T48, .(T45, T50)) → U1_aaaa(T45, T46, T47, T48, T50, append23_in_aaaa(T46, T47, T48, T50))
U1_aaaa(T45, T46, T47, T48, T50, append23_out_aaaa(T46, T47, T48, T50)) → append23_out_aaaa(.(T45, T46), T47, T48, .(T45, T50))
U18_aaaaa(T94, T158, T155, T69, T9, append23_out_aaaa(T155, T69, T158, T9)) → p78_out_aaaaa(T94, T158, T155, T69, T9)
U29_aa(T69, T67, T68, T9, p78_out_aaaaa(T94, X13, T155, T69, T9)) → qsort1_out_aa(.(T69, .(T67, T68)), T9)
U27_ga(T69, T67, T68, T9, qsort1_out_aa(.(T67, T93), X12)) → qsort1_out_ga(.(T69, .(T67, T68)), T9)
U26_ga(T69, T67, T68, T9, split51_out_ggaa(T68, T69, T93, T94)) → U28_ga(T69, T67, T68, T9, T94, qsort1_in_aa(.(T67, T93), T155))
U28_ga(T69, T67, T68, T9, T94, qsort1_out_aa(.(T67, T93), T155)) → U29_ga(T69, T67, T68, T9, p78_in_aaaga(T94, X13, T155, T69, T9))
U29_ga(T69, T67, T68, T9, p78_out_aaaga(T94, X13, T155, T69, T9)) → qsort1_out_ga(.(T69, .(T67, T68)), T9)
qsort1_in_ga(.(T215, .(T213, T214)), T9) → U30_ga(T215, T213, T214, T9, gt67_in_gg(T213, T215))
U30_ga(T215, T213, T214, T9, gt67_out_gg(T213, T215)) → qsort1_out_ga(.(T215, .(T213, T214)), T9)
U30_ga(T215, T213, T214, T9, gt67_out_gg(T213, T215)) → U31_ga(T215, T213, T214, T9, split51_in_ggaa(T214, T215, X323, X324))
U31_ga(T215, T213, T214, T9, split51_out_ggaa(T214, T215, X323, X324)) → qsort1_out_ga(.(T215, .(T213, T214)), T9)
U30_ga(T215, T213, T214, T9, gt67_out_gg(T213, T215)) → U32_ga(T215, T213, T214, T9, split51_in_ggaa(T214, T215, T222, T223))
U32_ga(T215, T213, T214, T9, split51_out_ggaa(T214, T215, T222, T223)) → U33_ga(T215, T213, T214, T9, qsort79_in_aa(T222, X12))
U33_ga(T215, T213, T214, T9, qsort79_out_aa(T222, X12)) → qsort1_out_ga(.(T215, .(T213, T214)), T9)
U32_ga(T215, T213, T214, T9, split51_out_ggaa(T214, T215, T222, T223)) → U34_ga(T215, T213, T214, T9, T223, qsort79_in_aa(T222, T226))
U34_ga(T215, T213, T214, T9, T223, qsort79_out_aa(T222, T226)) → U35_ga(T215, T213, T214, T9, p78_in_aaaga(.(T213, T223), X13, T226, T215, T9))
U35_ga(T215, T213, T214, T9, p78_out_aaaga(.(T213, T223), X13, T226, T215, T9)) → qsort1_out_ga(.(T215, .(T213, T214)), T9)
LE36_IN_GG(s(T82), s(T83)) → LE36_IN_GG(T82, T83)
LE36_IN_GG(s(T82), s(T83)) → LE36_IN_GG(T82, T83)
From the DPs we obtained the following set of size-change graphs:
SPLIT51_IN_GGAA(.(T114, T115), T116, .(T114, X167), X168) → U3_GGAA(T114, T115, T116, X167, X168, le36_in_gg(T114, T116))
U3_GGAA(T114, T115, T116, X167, X168, le36_out_gg(T114, T116)) → SPLIT51_IN_GGAA(T115, T116, X167, X168)
SPLIT51_IN_GGAA(.(T129, T130), T131, X199, .(T129, X200)) → U5_GGAA(T129, T130, T131, X199, X200, gt67_in_gg(T129, T131))
U5_GGAA(T129, T130, T131, X199, X200, gt67_out_gg(T129, T131)) → SPLIT51_IN_GGAA(T130, T131, X199, X200)
qsort1_in_ga([], []) → qsort1_out_ga([], [])
qsort1_in_ga(.(T14, []), T9) → U19_ga(T14, T9, qsort14_in_a(X12))
qsort14_in_a([]) → qsort14_out_a([])
U19_ga(T14, T9, qsort14_out_a(X12)) → qsort1_out_ga(.(T14, []), T9)
qsort1_in_ga(.(T14, []), T9) → U20_ga(T14, T9, qsort14_in_a(T17))
U20_ga(T14, T9, qsort14_out_a(T17)) → U21_ga(T14, T9, qsort14_in_a(X13))
U21_ga(T14, T9, qsort14_out_a(X13)) → qsort1_out_ga(.(T14, []), T9)
U20_ga(T14, T9, qsort14_out_a(T17)) → U22_ga(T14, T9, T17, qsort14_in_a(T20))
U22_ga(T14, T9, T17, qsort14_out_a(T20)) → U23_ga(T14, T9, append23_in_ggga(T17, T14, T20, T9))
append23_in_ggga([], T33, T34, .(T33, T34)) → append23_out_ggga([], T33, T34, .(T33, T34))
append23_in_ggga(.(T45, T46), T47, T48, .(T45, T50)) → U1_ggga(T45, T46, T47, T48, T50, append23_in_ggga(T46, T47, T48, T50))
U1_ggga(T45, T46, T47, T48, T50, append23_out_ggga(T46, T47, T48, T50)) → append23_out_ggga(.(T45, T46), T47, T48, .(T45, T50))
U23_ga(T14, T9, append23_out_ggga(T17, T14, T20, T9)) → qsort1_out_ga(.(T14, []), T9)
qsort1_in_ga(.(T69, .(T67, T68)), T9) → U24_ga(T69, T67, T68, T9, le36_in_gg(T67, T69))
le36_in_gg(s(T82), s(T83)) → U2_gg(T82, T83, le36_in_gg(T82, T83))
le36_in_gg(0, s(T90)) → le36_out_gg(0, s(T90))
le36_in_gg(0, 0) → le36_out_gg(0, 0)
U2_gg(T82, T83, le36_out_gg(T82, T83)) → le36_out_gg(s(T82), s(T83))
U24_ga(T69, T67, T68, T9, le36_out_gg(T67, T69)) → qsort1_out_ga(.(T69, .(T67, T68)), T9)
U24_ga(T69, T67, T68, T9, le36_out_gg(T67, T69)) → U25_ga(T69, T67, T68, T9, split51_in_ggaa(T68, T69, X93, X94))
split51_in_ggaa([], T101, [], []) → split51_out_ggaa([], T101, [], [])
split51_in_ggaa(.(T114, T115), T116, .(T114, X167), X168) → U3_ggaa(T114, T115, T116, X167, X168, le36_in_gg(T114, T116))
U3_ggaa(T114, T115, T116, X167, X168, le36_out_gg(T114, T116)) → split51_out_ggaa(.(T114, T115), T116, .(T114, X167), X168)
U3_ggaa(T114, T115, T116, X167, X168, le36_out_gg(T114, T116)) → U4_ggaa(T114, T115, T116, X167, X168, split51_in_ggaa(T115, T116, X167, X168))
split51_in_ggaa(.(T129, T130), T131, X199, .(T129, X200)) → U5_ggaa(T129, T130, T131, X199, X200, gt67_in_gg(T129, T131))
gt67_in_gg(s(T144), s(T145)) → U7_gg(T144, T145, gt67_in_gg(T144, T145))
gt67_in_gg(s(T150), 0) → gt67_out_gg(s(T150), 0)
U7_gg(T144, T145, gt67_out_gg(T144, T145)) → gt67_out_gg(s(T144), s(T145))
U5_ggaa(T129, T130, T131, X199, X200, gt67_out_gg(T129, T131)) → split51_out_ggaa(.(T129, T130), T131, X199, .(T129, X200))
U5_ggaa(T129, T130, T131, X199, X200, gt67_out_gg(T129, T131)) → U6_ggaa(T129, T130, T131, X199, X200, split51_in_ggaa(T130, T131, X199, X200))
U6_ggaa(T129, T130, T131, X199, X200, split51_out_ggaa(T130, T131, X199, X200)) → split51_out_ggaa(.(T129, T130), T131, X199, .(T129, X200))
U4_ggaa(T114, T115, T116, X167, X168, split51_out_ggaa(T115, T116, X167, X168)) → split51_out_ggaa(.(T114, T115), T116, .(T114, X167), X168)
U25_ga(T69, T67, T68, T9, split51_out_ggaa(T68, T69, X93, X94)) → qsort1_out_ga(.(T69, .(T67, T68)), T9)
U24_ga(T69, T67, T68, T9, le36_out_gg(T67, T69)) → U26_ga(T69, T67, T68, T9, split51_in_ggaa(T68, T69, T93, T94))
U26_ga(T69, T67, T68, T9, split51_out_ggaa(T68, T69, T93, T94)) → U27_ga(T69, T67, T68, T9, qsort1_in_aa(.(T67, T93), X12))
qsort1_in_aa([], []) → qsort1_out_aa([], [])
qsort1_in_aa(.(T14, []), T9) → U19_aa(T14, T9, qsort14_in_a(X12))
U19_aa(T14, T9, qsort14_out_a(X12)) → qsort1_out_aa(.(T14, []), T9)
qsort1_in_aa(.(T14, []), T9) → U20_aa(T14, T9, qsort14_in_a(T17))
U20_aa(T14, T9, qsort14_out_a(T17)) → U21_aa(T14, T9, qsort14_in_a(X13))
U21_aa(T14, T9, qsort14_out_a(X13)) → qsort1_out_aa(.(T14, []), T9)
U20_aa(T14, T9, qsort14_out_a(T17)) → U22_aa(T14, T9, T17, qsort14_in_a(T20))
U22_aa(T14, T9, T17, qsort14_out_a(T20)) → U23_aa(T14, T9, append23_in_gaga(T17, T14, T20, T9))
append23_in_gaga([], T33, T34, .(T33, T34)) → append23_out_gaga([], T33, T34, .(T33, T34))
append23_in_gaga(.(T45, T46), T47, T48, .(T45, T50)) → U1_gaga(T45, T46, T47, T48, T50, append23_in_gaga(T46, T47, T48, T50))
U1_gaga(T45, T46, T47, T48, T50, append23_out_gaga(T46, T47, T48, T50)) → append23_out_gaga(.(T45, T46), T47, T48, .(T45, T50))
U23_aa(T14, T9, append23_out_gaga(T17, T14, T20, T9)) → qsort1_out_aa(.(T14, []), T9)
qsort1_in_aa(.(T69, .(T67, T68)), T9) → U24_aa(T69, T67, T68, T9, le36_in_aa(T67, T69))
le36_in_aa(s(T82), s(T83)) → U2_aa(T82, T83, le36_in_aa(T82, T83))
le36_in_aa(0, s(T90)) → le36_out_aa(0, s(T90))
le36_in_aa(0, 0) → le36_out_aa(0, 0)
U2_aa(T82, T83, le36_out_aa(T82, T83)) → le36_out_aa(s(T82), s(T83))
U24_aa(T69, T67, T68, T9, le36_out_aa(T67, T69)) → qsort1_out_aa(.(T69, .(T67, T68)), T9)
U24_aa(T69, T67, T68, T9, le36_out_aa(T67, T69)) → U25_aa(T69, T67, T68, T9, split51_in_aaaa(T68, T69, X93, X94))
split51_in_aaaa([], T101, [], []) → split51_out_aaaa([], T101, [], [])
split51_in_aaaa(.(T114, T115), T116, .(T114, X167), X168) → U3_aaaa(T114, T115, T116, X167, X168, le36_in_aa(T114, T116))
U3_aaaa(T114, T115, T116, X167, X168, le36_out_aa(T114, T116)) → split51_out_aaaa(.(T114, T115), T116, .(T114, X167), X168)
U3_aaaa(T114, T115, T116, X167, X168, le36_out_aa(T114, T116)) → U4_aaaa(T114, T115, T116, X167, X168, split51_in_aaaa(T115, T116, X167, X168))
split51_in_aaaa(.(T129, T130), T131, X199, .(T129, X200)) → U5_aaaa(T129, T130, T131, X199, X200, gt67_in_aa(T129, T131))
gt67_in_aa(s(T144), s(T145)) → U7_aa(T144, T145, gt67_in_aa(T144, T145))
gt67_in_aa(s(T150), 0) → gt67_out_aa(s(T150), 0)
U7_aa(T144, T145, gt67_out_aa(T144, T145)) → gt67_out_aa(s(T144), s(T145))
U5_aaaa(T129, T130, T131, X199, X200, gt67_out_aa(T129, T131)) → split51_out_aaaa(.(T129, T130), T131, X199, .(T129, X200))
U5_aaaa(T129, T130, T131, X199, X200, gt67_out_aa(T129, T131)) → U6_aaaa(T129, T130, T131, X199, X200, split51_in_agaa(T130, T131, X199, X200))
split51_in_agaa([], T101, [], []) → split51_out_agaa([], T101, [], [])
split51_in_agaa(.(T114, T115), T116, .(T114, X167), X168) → U3_agaa(T114, T115, T116, X167, X168, le36_in_ag(T114, T116))
le36_in_ag(s(T82), s(T83)) → U2_ag(T82, T83, le36_in_ag(T82, T83))
le36_in_ag(0, s(T90)) → le36_out_ag(0, s(T90))
le36_in_ag(0, 0) → le36_out_ag(0, 0)
U2_ag(T82, T83, le36_out_ag(T82, T83)) → le36_out_ag(s(T82), s(T83))
U3_agaa(T114, T115, T116, X167, X168, le36_out_ag(T114, T116)) → split51_out_agaa(.(T114, T115), T116, .(T114, X167), X168)
U3_agaa(T114, T115, T116, X167, X168, le36_out_ag(T114, T116)) → U4_agaa(T114, T115, T116, X167, X168, split51_in_agaa(T115, T116, X167, X168))
split51_in_agaa(.(T129, T130), T131, X199, .(T129, X200)) → U5_agaa(T129, T130, T131, X199, X200, gt67_in_ag(T129, T131))
gt67_in_ag(s(T144), s(T145)) → U7_ag(T144, T145, gt67_in_ag(T144, T145))
gt67_in_ag(s(T150), 0) → gt67_out_ag(s(T150), 0)
U7_ag(T144, T145, gt67_out_ag(T144, T145)) → gt67_out_ag(s(T144), s(T145))
U5_agaa(T129, T130, T131, X199, X200, gt67_out_ag(T129, T131)) → split51_out_agaa(.(T129, T130), T131, X199, .(T129, X200))
U5_agaa(T129, T130, T131, X199, X200, gt67_out_ag(T129, T131)) → U6_agaa(T129, T130, T131, X199, X200, split51_in_agaa(T130, T131, X199, X200))
U6_agaa(T129, T130, T131, X199, X200, split51_out_agaa(T130, T131, X199, X200)) → split51_out_agaa(.(T129, T130), T131, X199, .(T129, X200))
U4_agaa(T114, T115, T116, X167, X168, split51_out_agaa(T115, T116, X167, X168)) → split51_out_agaa(.(T114, T115), T116, .(T114, X167), X168)
U6_aaaa(T129, T130, T131, X199, X200, split51_out_agaa(T130, T131, X199, X200)) → split51_out_aaaa(.(T129, T130), T131, X199, .(T129, X200))
U4_aaaa(T114, T115, T116, X167, X168, split51_out_aaaa(T115, T116, X167, X168)) → split51_out_aaaa(.(T114, T115), T116, .(T114, X167), X168)
U25_aa(T69, T67, T68, T9, split51_out_aaaa(T68, T69, X93, X94)) → qsort1_out_aa(.(T69, .(T67, T68)), T9)
U24_aa(T69, T67, T68, T9, le36_out_aa(T67, T69)) → U26_aa(T69, T67, T68, T9, split51_in_aaaa(T68, T69, T93, T94))
U26_aa(T69, T67, T68, T9, split51_out_aaaa(T68, T69, T93, T94)) → U27_aa(T69, T67, T68, T9, qsort1_in_aa(.(T67, T93), X12))
qsort1_in_aa(.(T215, .(T213, T214)), T9) → U30_aa(T215, T213, T214, T9, gt67_in_aa(T213, T215))
U30_aa(T215, T213, T214, T9, gt67_out_aa(T213, T215)) → qsort1_out_aa(.(T215, .(T213, T214)), T9)
U30_aa(T215, T213, T214, T9, gt67_out_aa(T213, T215)) → U31_aa(T215, T213, T214, T9, split51_in_agaa(T214, T215, X323, X324))
U31_aa(T215, T213, T214, T9, split51_out_agaa(T214, T215, X323, X324)) → qsort1_out_aa(.(T215, .(T213, T214)), T9)
U30_aa(T215, T213, T214, T9, gt67_out_aa(T213, T215)) → U32_aa(T215, T213, T214, T9, split51_in_agaa(T214, T215, T222, T223))
U32_aa(T215, T213, T214, T9, split51_out_agaa(T214, T215, T222, T223)) → U33_aa(T215, T213, T214, T9, qsort79_in_aa(T222, X12))
qsort79_in_aa([], []) → qsort79_out_aa([], [])
qsort79_in_aa(.(T163, T164), X265) → U8_aa(T163, T164, X265, split51_in_aaaa(T164, T163, X261, X262))
U8_aa(T163, T164, X265, split51_out_aaaa(T164, T163, X261, X262)) → qsort79_out_aa(.(T163, T164), X265)
qsort79_in_aa(.(T163, T164), X265) → U9_aa(T163, T164, X265, split51_in_aaaa(T164, T163, T167, T168))
U9_aa(T163, T164, X265, split51_out_aaaa(T164, T163, T167, T168)) → U10_aa(T163, T164, X265, qsort79_in_aa(T167, X263))
U10_aa(T163, T164, X265, qsort79_out_aa(T167, X263)) → qsort79_out_aa(.(T163, T164), X265)
U9_aa(T163, T164, X265, split51_out_aaaa(T164, T163, T167, T168)) → U11_aa(T163, T164, X265, T168, qsort79_in_aa(T167, T171))
U11_aa(T163, T164, X265, T168, qsort79_out_aa(T167, T171)) → U12_aa(T163, T164, X265, qsort79_in_aa(T168, X264))
U12_aa(T163, T164, X265, qsort79_out_aa(T168, X264)) → qsort79_out_aa(.(T163, T164), X265)
U11_aa(T163, T164, X265, T168, qsort79_out_aa(T167, T171)) → U13_aa(T163, T164, X265, T171, qsort79_in_aa(T168, T172))
U13_aa(T163, T164, X265, T171, qsort79_out_aa(T168, T172)) → U14_aa(T163, T164, X265, append94_in_aaaa(T171, T163, T172, X265))
append94_in_aaaa([], T185, T186, .(T185, T186)) → append94_out_aaaa([], T185, T186, .(T185, T186))
append94_in_aaaa(.(T195, T196), T197, T198, .(T195, X295)) → U15_aaaa(T195, T196, T197, T198, X295, append94_in_aaaa(T196, T197, T198, X295))
U15_aaaa(T195, T196, T197, T198, X295, append94_out_aaaa(T196, T197, T198, X295)) → append94_out_aaaa(.(T195, T196), T197, T198, .(T195, X295))
U14_aa(T163, T164, X265, append94_out_aaaa(T171, T163, T172, X265)) → qsort79_out_aa(.(T163, T164), X265)
U33_aa(T215, T213, T214, T9, qsort79_out_aa(T222, X12)) → qsort1_out_aa(.(T215, .(T213, T214)), T9)
U32_aa(T215, T213, T214, T9, split51_out_agaa(T214, T215, T222, T223)) → U34_aa(T215, T213, T214, T9, T223, qsort79_in_aa(T222, T226))
U34_aa(T215, T213, T214, T9, T223, qsort79_out_aa(T222, T226)) → U35_aa(T215, T213, T214, T9, p78_in_aaaga(.(T213, T223), X13, T226, T215, T9))
p78_in_aaaga(T94, X13, T155, T69, T9) → U16_aaaga(T94, X13, T155, T69, T9, qsort79_in_aa(T94, X13))
U16_aaaga(T94, X13, T155, T69, T9, qsort79_out_aa(T94, X13)) → p78_out_aaaga(T94, X13, T155, T69, T9)
p78_in_aaaga(T94, T158, T155, T69, T9) → U17_aaaga(T94, T158, T155, T69, T9, qsort79_in_aa(T94, T158))
U17_aaaga(T94, T158, T155, T69, T9, qsort79_out_aa(T94, T158)) → U18_aaaga(T94, T158, T155, T69, T9, append23_in_agaa(T155, T69, T158, T9))
append23_in_agaa([], T33, T34, .(T33, T34)) → append23_out_agaa([], T33, T34, .(T33, T34))
append23_in_agaa(.(T45, T46), T47, T48, .(T45, T50)) → U1_agaa(T45, T46, T47, T48, T50, append23_in_agaa(T46, T47, T48, T50))
U1_agaa(T45, T46, T47, T48, T50, append23_out_agaa(T46, T47, T48, T50)) → append23_out_agaa(.(T45, T46), T47, T48, .(T45, T50))
U18_aaaga(T94, T158, T155, T69, T9, append23_out_agaa(T155, T69, T158, T9)) → p78_out_aaaga(T94, T158, T155, T69, T9)
U35_aa(T215, T213, T214, T9, p78_out_aaaga(.(T213, T223), X13, T226, T215, T9)) → qsort1_out_aa(.(T215, .(T213, T214)), T9)
U27_aa(T69, T67, T68, T9, qsort1_out_aa(.(T67, T93), X12)) → qsort1_out_aa(.(T69, .(T67, T68)), T9)
U26_aa(T69, T67, T68, T9, split51_out_aaaa(T68, T69, T93, T94)) → U28_aa(T69, T67, T68, T9, T94, qsort1_in_aa(.(T67, T93), T155))
U28_aa(T69, T67, T68, T9, T94, qsort1_out_aa(.(T67, T93), T155)) → U29_aa(T69, T67, T68, T9, p78_in_aaaaa(T94, X13, T155, T69, T9))
p78_in_aaaaa(T94, X13, T155, T69, T9) → U16_aaaaa(T94, X13, T155, T69, T9, qsort79_in_aa(T94, X13))
U16_aaaaa(T94, X13, T155, T69, T9, qsort79_out_aa(T94, X13)) → p78_out_aaaaa(T94, X13, T155, T69, T9)
p78_in_aaaaa(T94, T158, T155, T69, T9) → U17_aaaaa(T94, T158, T155, T69, T9, qsort79_in_aa(T94, T158))
U17_aaaaa(T94, T158, T155, T69, T9, qsort79_out_aa(T94, T158)) → U18_aaaaa(T94, T158, T155, T69, T9, append23_in_aaaa(T155, T69, T158, T9))
append23_in_aaaa([], T33, T34, .(T33, T34)) → append23_out_aaaa([], T33, T34, .(T33, T34))
append23_in_aaaa(.(T45, T46), T47, T48, .(T45, T50)) → U1_aaaa(T45, T46, T47, T48, T50, append23_in_aaaa(T46, T47, T48, T50))
U1_aaaa(T45, T46, T47, T48, T50, append23_out_aaaa(T46, T47, T48, T50)) → append23_out_aaaa(.(T45, T46), T47, T48, .(T45, T50))
U18_aaaaa(T94, T158, T155, T69, T9, append23_out_aaaa(T155, T69, T158, T9)) → p78_out_aaaaa(T94, T158, T155, T69, T9)
U29_aa(T69, T67, T68, T9, p78_out_aaaaa(T94, X13, T155, T69, T9)) → qsort1_out_aa(.(T69, .(T67, T68)), T9)
U27_ga(T69, T67, T68, T9, qsort1_out_aa(.(T67, T93), X12)) → qsort1_out_ga(.(T69, .(T67, T68)), T9)
U26_ga(T69, T67, T68, T9, split51_out_ggaa(T68, T69, T93, T94)) → U28_ga(T69, T67, T68, T9, T94, qsort1_in_aa(.(T67, T93), T155))
U28_ga(T69, T67, T68, T9, T94, qsort1_out_aa(.(T67, T93), T155)) → U29_ga(T69, T67, T68, T9, p78_in_aaaga(T94, X13, T155, T69, T9))
U29_ga(T69, T67, T68, T9, p78_out_aaaga(T94, X13, T155, T69, T9)) → qsort1_out_ga(.(T69, .(T67, T68)), T9)
qsort1_in_ga(.(T215, .(T213, T214)), T9) → U30_ga(T215, T213, T214, T9, gt67_in_gg(T213, T215))
U30_ga(T215, T213, T214, T9, gt67_out_gg(T213, T215)) → qsort1_out_ga(.(T215, .(T213, T214)), T9)
U30_ga(T215, T213, T214, T9, gt67_out_gg(T213, T215)) → U31_ga(T215, T213, T214, T9, split51_in_ggaa(T214, T215, X323, X324))
U31_ga(T215, T213, T214, T9, split51_out_ggaa(T214, T215, X323, X324)) → qsort1_out_ga(.(T215, .(T213, T214)), T9)
U30_ga(T215, T213, T214, T9, gt67_out_gg(T213, T215)) → U32_ga(T215, T213, T214, T9, split51_in_ggaa(T214, T215, T222, T223))
U32_ga(T215, T213, T214, T9, split51_out_ggaa(T214, T215, T222, T223)) → U33_ga(T215, T213, T214, T9, qsort79_in_aa(T222, X12))
U33_ga(T215, T213, T214, T9, qsort79_out_aa(T222, X12)) → qsort1_out_ga(.(T215, .(T213, T214)), T9)
U32_ga(T215, T213, T214, T9, split51_out_ggaa(T214, T215, T222, T223)) → U34_ga(T215, T213, T214, T9, T223, qsort79_in_aa(T222, T226))
U34_ga(T215, T213, T214, T9, T223, qsort79_out_aa(T222, T226)) → U35_ga(T215, T213, T214, T9, p78_in_aaaga(.(T213, T223), X13, T226, T215, T9))
U35_ga(T215, T213, T214, T9, p78_out_aaaga(.(T213, T223), X13, T226, T215, T9)) → qsort1_out_ga(.(T215, .(T213, T214)), T9)
SPLIT51_IN_GGAA(.(T114, T115), T116, .(T114, X167), X168) → U3_GGAA(T114, T115, T116, X167, X168, le36_in_gg(T114, T116))
U3_GGAA(T114, T115, T116, X167, X168, le36_out_gg(T114, T116)) → SPLIT51_IN_GGAA(T115, T116, X167, X168)
SPLIT51_IN_GGAA(.(T129, T130), T131, X199, .(T129, X200)) → U5_GGAA(T129, T130, T131, X199, X200, gt67_in_gg(T129, T131))
U5_GGAA(T129, T130, T131, X199, X200, gt67_out_gg(T129, T131)) → SPLIT51_IN_GGAA(T130, T131, X199, X200)
le36_in_gg(s(T82), s(T83)) → U2_gg(T82, T83, le36_in_gg(T82, T83))
le36_in_gg(0, s(T90)) → le36_out_gg(0, s(T90))
le36_in_gg(0, 0) → le36_out_gg(0, 0)
gt67_in_gg(s(T144), s(T145)) → U7_gg(T144, T145, gt67_in_gg(T144, T145))
gt67_in_gg(s(T150), 0) → gt67_out_gg(s(T150), 0)
U2_gg(T82, T83, le36_out_gg(T82, T83)) → le36_out_gg(s(T82), s(T83))
U7_gg(T144, T145, gt67_out_gg(T144, T145)) → gt67_out_gg(s(T144), s(T145))
SPLIT51_IN_GGAA(.(T114, T115), T116) → U3_GGAA(T114, T115, T116, le36_in_gg(T114, T116))
U3_GGAA(T114, T115, T116, le36_out_gg(T114, T116)) → SPLIT51_IN_GGAA(T115, T116)
SPLIT51_IN_GGAA(.(T129, T130), T131) → U5_GGAA(T129, T130, T131, gt67_in_gg(T129, T131))
U5_GGAA(T129, T130, T131, gt67_out_gg(T129, T131)) → SPLIT51_IN_GGAA(T130, T131)
le36_in_gg(s(T82), s(T83)) → U2_gg(T82, T83, le36_in_gg(T82, T83))
le36_in_gg(0, s(T90)) → le36_out_gg(0, s(T90))
le36_in_gg(0, 0) → le36_out_gg(0, 0)
gt67_in_gg(s(T144), s(T145)) → U7_gg(T144, T145, gt67_in_gg(T144, T145))
gt67_in_gg(s(T150), 0) → gt67_out_gg(s(T150), 0)
U2_gg(T82, T83, le36_out_gg(T82, T83)) → le36_out_gg(s(T82), s(T83))
U7_gg(T144, T145, gt67_out_gg(T144, T145)) → gt67_out_gg(s(T144), s(T145))
le36_in_gg(x0, x1)
gt67_in_gg(x0, x1)
U2_gg(x0, x1, x2)
U7_gg(x0, x1, x2)
From the DPs we obtained the following set of size-change graphs:
APPEND23_IN_GGGA(.(T45, T46), T47, T48, .(T45, T50)) → APPEND23_IN_GGGA(T46, T47, T48, T50)
qsort1_in_ga([], []) → qsort1_out_ga([], [])
qsort1_in_ga(.(T14, []), T9) → U19_ga(T14, T9, qsort14_in_a(X12))
qsort14_in_a([]) → qsort14_out_a([])
U19_ga(T14, T9, qsort14_out_a(X12)) → qsort1_out_ga(.(T14, []), T9)
qsort1_in_ga(.(T14, []), T9) → U20_ga(T14, T9, qsort14_in_a(T17))
U20_ga(T14, T9, qsort14_out_a(T17)) → U21_ga(T14, T9, qsort14_in_a(X13))
U21_ga(T14, T9, qsort14_out_a(X13)) → qsort1_out_ga(.(T14, []), T9)
U20_ga(T14, T9, qsort14_out_a(T17)) → U22_ga(T14, T9, T17, qsort14_in_a(T20))
U22_ga(T14, T9, T17, qsort14_out_a(T20)) → U23_ga(T14, T9, append23_in_ggga(T17, T14, T20, T9))
append23_in_ggga([], T33, T34, .(T33, T34)) → append23_out_ggga([], T33, T34, .(T33, T34))
append23_in_ggga(.(T45, T46), T47, T48, .(T45, T50)) → U1_ggga(T45, T46, T47, T48, T50, append23_in_ggga(T46, T47, T48, T50))
U1_ggga(T45, T46, T47, T48, T50, append23_out_ggga(T46, T47, T48, T50)) → append23_out_ggga(.(T45, T46), T47, T48, .(T45, T50))
U23_ga(T14, T9, append23_out_ggga(T17, T14, T20, T9)) → qsort1_out_ga(.(T14, []), T9)
qsort1_in_ga(.(T69, .(T67, T68)), T9) → U24_ga(T69, T67, T68, T9, le36_in_gg(T67, T69))
le36_in_gg(s(T82), s(T83)) → U2_gg(T82, T83, le36_in_gg(T82, T83))
le36_in_gg(0, s(T90)) → le36_out_gg(0, s(T90))
le36_in_gg(0, 0) → le36_out_gg(0, 0)
U2_gg(T82, T83, le36_out_gg(T82, T83)) → le36_out_gg(s(T82), s(T83))
U24_ga(T69, T67, T68, T9, le36_out_gg(T67, T69)) → qsort1_out_ga(.(T69, .(T67, T68)), T9)
U24_ga(T69, T67, T68, T9, le36_out_gg(T67, T69)) → U25_ga(T69, T67, T68, T9, split51_in_ggaa(T68, T69, X93, X94))
split51_in_ggaa([], T101, [], []) → split51_out_ggaa([], T101, [], [])
split51_in_ggaa(.(T114, T115), T116, .(T114, X167), X168) → U3_ggaa(T114, T115, T116, X167, X168, le36_in_gg(T114, T116))
U3_ggaa(T114, T115, T116, X167, X168, le36_out_gg(T114, T116)) → split51_out_ggaa(.(T114, T115), T116, .(T114, X167), X168)
U3_ggaa(T114, T115, T116, X167, X168, le36_out_gg(T114, T116)) → U4_ggaa(T114, T115, T116, X167, X168, split51_in_ggaa(T115, T116, X167, X168))
split51_in_ggaa(.(T129, T130), T131, X199, .(T129, X200)) → U5_ggaa(T129, T130, T131, X199, X200, gt67_in_gg(T129, T131))
gt67_in_gg(s(T144), s(T145)) → U7_gg(T144, T145, gt67_in_gg(T144, T145))
gt67_in_gg(s(T150), 0) → gt67_out_gg(s(T150), 0)
U7_gg(T144, T145, gt67_out_gg(T144, T145)) → gt67_out_gg(s(T144), s(T145))
U5_ggaa(T129, T130, T131, X199, X200, gt67_out_gg(T129, T131)) → split51_out_ggaa(.(T129, T130), T131, X199, .(T129, X200))
U5_ggaa(T129, T130, T131, X199, X200, gt67_out_gg(T129, T131)) → U6_ggaa(T129, T130, T131, X199, X200, split51_in_ggaa(T130, T131, X199, X200))
U6_ggaa(T129, T130, T131, X199, X200, split51_out_ggaa(T130, T131, X199, X200)) → split51_out_ggaa(.(T129, T130), T131, X199, .(T129, X200))
U4_ggaa(T114, T115, T116, X167, X168, split51_out_ggaa(T115, T116, X167, X168)) → split51_out_ggaa(.(T114, T115), T116, .(T114, X167), X168)
U25_ga(T69, T67, T68, T9, split51_out_ggaa(T68, T69, X93, X94)) → qsort1_out_ga(.(T69, .(T67, T68)), T9)
U24_ga(T69, T67, T68, T9, le36_out_gg(T67, T69)) → U26_ga(T69, T67, T68, T9, split51_in_ggaa(T68, T69, T93, T94))
U26_ga(T69, T67, T68, T9, split51_out_ggaa(T68, T69, T93, T94)) → U27_ga(T69, T67, T68, T9, qsort1_in_aa(.(T67, T93), X12))
qsort1_in_aa([], []) → qsort1_out_aa([], [])
qsort1_in_aa(.(T14, []), T9) → U19_aa(T14, T9, qsort14_in_a(X12))
U19_aa(T14, T9, qsort14_out_a(X12)) → qsort1_out_aa(.(T14, []), T9)
qsort1_in_aa(.(T14, []), T9) → U20_aa(T14, T9, qsort14_in_a(T17))
U20_aa(T14, T9, qsort14_out_a(T17)) → U21_aa(T14, T9, qsort14_in_a(X13))
U21_aa(T14, T9, qsort14_out_a(X13)) → qsort1_out_aa(.(T14, []), T9)
U20_aa(T14, T9, qsort14_out_a(T17)) → U22_aa(T14, T9, T17, qsort14_in_a(T20))
U22_aa(T14, T9, T17, qsort14_out_a(T20)) → U23_aa(T14, T9, append23_in_gaga(T17, T14, T20, T9))
append23_in_gaga([], T33, T34, .(T33, T34)) → append23_out_gaga([], T33, T34, .(T33, T34))
append23_in_gaga(.(T45, T46), T47, T48, .(T45, T50)) → U1_gaga(T45, T46, T47, T48, T50, append23_in_gaga(T46, T47, T48, T50))
U1_gaga(T45, T46, T47, T48, T50, append23_out_gaga(T46, T47, T48, T50)) → append23_out_gaga(.(T45, T46), T47, T48, .(T45, T50))
U23_aa(T14, T9, append23_out_gaga(T17, T14, T20, T9)) → qsort1_out_aa(.(T14, []), T9)
qsort1_in_aa(.(T69, .(T67, T68)), T9) → U24_aa(T69, T67, T68, T9, le36_in_aa(T67, T69))
le36_in_aa(s(T82), s(T83)) → U2_aa(T82, T83, le36_in_aa(T82, T83))
le36_in_aa(0, s(T90)) → le36_out_aa(0, s(T90))
le36_in_aa(0, 0) → le36_out_aa(0, 0)
U2_aa(T82, T83, le36_out_aa(T82, T83)) → le36_out_aa(s(T82), s(T83))
U24_aa(T69, T67, T68, T9, le36_out_aa(T67, T69)) → qsort1_out_aa(.(T69, .(T67, T68)), T9)
U24_aa(T69, T67, T68, T9, le36_out_aa(T67, T69)) → U25_aa(T69, T67, T68, T9, split51_in_aaaa(T68, T69, X93, X94))
split51_in_aaaa([], T101, [], []) → split51_out_aaaa([], T101, [], [])
split51_in_aaaa(.(T114, T115), T116, .(T114, X167), X168) → U3_aaaa(T114, T115, T116, X167, X168, le36_in_aa(T114, T116))
U3_aaaa(T114, T115, T116, X167, X168, le36_out_aa(T114, T116)) → split51_out_aaaa(.(T114, T115), T116, .(T114, X167), X168)
U3_aaaa(T114, T115, T116, X167, X168, le36_out_aa(T114, T116)) → U4_aaaa(T114, T115, T116, X167, X168, split51_in_aaaa(T115, T116, X167, X168))
split51_in_aaaa(.(T129, T130), T131, X199, .(T129, X200)) → U5_aaaa(T129, T130, T131, X199, X200, gt67_in_aa(T129, T131))
gt67_in_aa(s(T144), s(T145)) → U7_aa(T144, T145, gt67_in_aa(T144, T145))
gt67_in_aa(s(T150), 0) → gt67_out_aa(s(T150), 0)
U7_aa(T144, T145, gt67_out_aa(T144, T145)) → gt67_out_aa(s(T144), s(T145))
U5_aaaa(T129, T130, T131, X199, X200, gt67_out_aa(T129, T131)) → split51_out_aaaa(.(T129, T130), T131, X199, .(T129, X200))
U5_aaaa(T129, T130, T131, X199, X200, gt67_out_aa(T129, T131)) → U6_aaaa(T129, T130, T131, X199, X200, split51_in_agaa(T130, T131, X199, X200))
split51_in_agaa([], T101, [], []) → split51_out_agaa([], T101, [], [])
split51_in_agaa(.(T114, T115), T116, .(T114, X167), X168) → U3_agaa(T114, T115, T116, X167, X168, le36_in_ag(T114, T116))
le36_in_ag(s(T82), s(T83)) → U2_ag(T82, T83, le36_in_ag(T82, T83))
le36_in_ag(0, s(T90)) → le36_out_ag(0, s(T90))
le36_in_ag(0, 0) → le36_out_ag(0, 0)
U2_ag(T82, T83, le36_out_ag(T82, T83)) → le36_out_ag(s(T82), s(T83))
U3_agaa(T114, T115, T116, X167, X168, le36_out_ag(T114, T116)) → split51_out_agaa(.(T114, T115), T116, .(T114, X167), X168)
U3_agaa(T114, T115, T116, X167, X168, le36_out_ag(T114, T116)) → U4_agaa(T114, T115, T116, X167, X168, split51_in_agaa(T115, T116, X167, X168))
split51_in_agaa(.(T129, T130), T131, X199, .(T129, X200)) → U5_agaa(T129, T130, T131, X199, X200, gt67_in_ag(T129, T131))
gt67_in_ag(s(T144), s(T145)) → U7_ag(T144, T145, gt67_in_ag(T144, T145))
gt67_in_ag(s(T150), 0) → gt67_out_ag(s(T150), 0)
U7_ag(T144, T145, gt67_out_ag(T144, T145)) → gt67_out_ag(s(T144), s(T145))
U5_agaa(T129, T130, T131, X199, X200, gt67_out_ag(T129, T131)) → split51_out_agaa(.(T129, T130), T131, X199, .(T129, X200))
U5_agaa(T129, T130, T131, X199, X200, gt67_out_ag(T129, T131)) → U6_agaa(T129, T130, T131, X199, X200, split51_in_agaa(T130, T131, X199, X200))
U6_agaa(T129, T130, T131, X199, X200, split51_out_agaa(T130, T131, X199, X200)) → split51_out_agaa(.(T129, T130), T131, X199, .(T129, X200))
U4_agaa(T114, T115, T116, X167, X168, split51_out_agaa(T115, T116, X167, X168)) → split51_out_agaa(.(T114, T115), T116, .(T114, X167), X168)
U6_aaaa(T129, T130, T131, X199, X200, split51_out_agaa(T130, T131, X199, X200)) → split51_out_aaaa(.(T129, T130), T131, X199, .(T129, X200))
U4_aaaa(T114, T115, T116, X167, X168, split51_out_aaaa(T115, T116, X167, X168)) → split51_out_aaaa(.(T114, T115), T116, .(T114, X167), X168)
U25_aa(T69, T67, T68, T9, split51_out_aaaa(T68, T69, X93, X94)) → qsort1_out_aa(.(T69, .(T67, T68)), T9)
U24_aa(T69, T67, T68, T9, le36_out_aa(T67, T69)) → U26_aa(T69, T67, T68, T9, split51_in_aaaa(T68, T69, T93, T94))
U26_aa(T69, T67, T68, T9, split51_out_aaaa(T68, T69, T93, T94)) → U27_aa(T69, T67, T68, T9, qsort1_in_aa(.(T67, T93), X12))
qsort1_in_aa(.(T215, .(T213, T214)), T9) → U30_aa(T215, T213, T214, T9, gt67_in_aa(T213, T215))
U30_aa(T215, T213, T214, T9, gt67_out_aa(T213, T215)) → qsort1_out_aa(.(T215, .(T213, T214)), T9)
U30_aa(T215, T213, T214, T9, gt67_out_aa(T213, T215)) → U31_aa(T215, T213, T214, T9, split51_in_agaa(T214, T215, X323, X324))
U31_aa(T215, T213, T214, T9, split51_out_agaa(T214, T215, X323, X324)) → qsort1_out_aa(.(T215, .(T213, T214)), T9)
U30_aa(T215, T213, T214, T9, gt67_out_aa(T213, T215)) → U32_aa(T215, T213, T214, T9, split51_in_agaa(T214, T215, T222, T223))
U32_aa(T215, T213, T214, T9, split51_out_agaa(T214, T215, T222, T223)) → U33_aa(T215, T213, T214, T9, qsort79_in_aa(T222, X12))
qsort79_in_aa([], []) → qsort79_out_aa([], [])
qsort79_in_aa(.(T163, T164), X265) → U8_aa(T163, T164, X265, split51_in_aaaa(T164, T163, X261, X262))
U8_aa(T163, T164, X265, split51_out_aaaa(T164, T163, X261, X262)) → qsort79_out_aa(.(T163, T164), X265)
qsort79_in_aa(.(T163, T164), X265) → U9_aa(T163, T164, X265, split51_in_aaaa(T164, T163, T167, T168))
U9_aa(T163, T164, X265, split51_out_aaaa(T164, T163, T167, T168)) → U10_aa(T163, T164, X265, qsort79_in_aa(T167, X263))
U10_aa(T163, T164, X265, qsort79_out_aa(T167, X263)) → qsort79_out_aa(.(T163, T164), X265)
U9_aa(T163, T164, X265, split51_out_aaaa(T164, T163, T167, T168)) → U11_aa(T163, T164, X265, T168, qsort79_in_aa(T167, T171))
U11_aa(T163, T164, X265, T168, qsort79_out_aa(T167, T171)) → U12_aa(T163, T164, X265, qsort79_in_aa(T168, X264))
U12_aa(T163, T164, X265, qsort79_out_aa(T168, X264)) → qsort79_out_aa(.(T163, T164), X265)
U11_aa(T163, T164, X265, T168, qsort79_out_aa(T167, T171)) → U13_aa(T163, T164, X265, T171, qsort79_in_aa(T168, T172))
U13_aa(T163, T164, X265, T171, qsort79_out_aa(T168, T172)) → U14_aa(T163, T164, X265, append94_in_aaaa(T171, T163, T172, X265))
append94_in_aaaa([], T185, T186, .(T185, T186)) → append94_out_aaaa([], T185, T186, .(T185, T186))
append94_in_aaaa(.(T195, T196), T197, T198, .(T195, X295)) → U15_aaaa(T195, T196, T197, T198, X295, append94_in_aaaa(T196, T197, T198, X295))
U15_aaaa(T195, T196, T197, T198, X295, append94_out_aaaa(T196, T197, T198, X295)) → append94_out_aaaa(.(T195, T196), T197, T198, .(T195, X295))
U14_aa(T163, T164, X265, append94_out_aaaa(T171, T163, T172, X265)) → qsort79_out_aa(.(T163, T164), X265)
U33_aa(T215, T213, T214, T9, qsort79_out_aa(T222, X12)) → qsort1_out_aa(.(T215, .(T213, T214)), T9)
U32_aa(T215, T213, T214, T9, split51_out_agaa(T214, T215, T222, T223)) → U34_aa(T215, T213, T214, T9, T223, qsort79_in_aa(T222, T226))
U34_aa(T215, T213, T214, T9, T223, qsort79_out_aa(T222, T226)) → U35_aa(T215, T213, T214, T9, p78_in_aaaga(.(T213, T223), X13, T226, T215, T9))
p78_in_aaaga(T94, X13, T155, T69, T9) → U16_aaaga(T94, X13, T155, T69, T9, qsort79_in_aa(T94, X13))
U16_aaaga(T94, X13, T155, T69, T9, qsort79_out_aa(T94, X13)) → p78_out_aaaga(T94, X13, T155, T69, T9)
p78_in_aaaga(T94, T158, T155, T69, T9) → U17_aaaga(T94, T158, T155, T69, T9, qsort79_in_aa(T94, T158))
U17_aaaga(T94, T158, T155, T69, T9, qsort79_out_aa(T94, T158)) → U18_aaaga(T94, T158, T155, T69, T9, append23_in_agaa(T155, T69, T158, T9))
append23_in_agaa([], T33, T34, .(T33, T34)) → append23_out_agaa([], T33, T34, .(T33, T34))
append23_in_agaa(.(T45, T46), T47, T48, .(T45, T50)) → U1_agaa(T45, T46, T47, T48, T50, append23_in_agaa(T46, T47, T48, T50))
U1_agaa(T45, T46, T47, T48, T50, append23_out_agaa(T46, T47, T48, T50)) → append23_out_agaa(.(T45, T46), T47, T48, .(T45, T50))
U18_aaaga(T94, T158, T155, T69, T9, append23_out_agaa(T155, T69, T158, T9)) → p78_out_aaaga(T94, T158, T155, T69, T9)
U35_aa(T215, T213, T214, T9, p78_out_aaaga(.(T213, T223), X13, T226, T215, T9)) → qsort1_out_aa(.(T215, .(T213, T214)), T9)
U27_aa(T69, T67, T68, T9, qsort1_out_aa(.(T67, T93), X12)) → qsort1_out_aa(.(T69, .(T67, T68)), T9)
U26_aa(T69, T67, T68, T9, split51_out_aaaa(T68, T69, T93, T94)) → U28_aa(T69, T67, T68, T9, T94, qsort1_in_aa(.(T67, T93), T155))
U28_aa(T69, T67, T68, T9, T94, qsort1_out_aa(.(T67, T93), T155)) → U29_aa(T69, T67, T68, T9, p78_in_aaaaa(T94, X13, T155, T69, T9))
p78_in_aaaaa(T94, X13, T155, T69, T9) → U16_aaaaa(T94, X13, T155, T69, T9, qsort79_in_aa(T94, X13))
U16_aaaaa(T94, X13, T155, T69, T9, qsort79_out_aa(T94, X13)) → p78_out_aaaaa(T94, X13, T155, T69, T9)
p78_in_aaaaa(T94, T158, T155, T69, T9) → U17_aaaaa(T94, T158, T155, T69, T9, qsort79_in_aa(T94, T158))
U17_aaaaa(T94, T158, T155, T69, T9, qsort79_out_aa(T94, T158)) → U18_aaaaa(T94, T158, T155, T69, T9, append23_in_aaaa(T155, T69, T158, T9))
append23_in_aaaa([], T33, T34, .(T33, T34)) → append23_out_aaaa([], T33, T34, .(T33, T34))
append23_in_aaaa(.(T45, T46), T47, T48, .(T45, T50)) → U1_aaaa(T45, T46, T47, T48, T50, append23_in_aaaa(T46, T47, T48, T50))
U1_aaaa(T45, T46, T47, T48, T50, append23_out_aaaa(T46, T47, T48, T50)) → append23_out_aaaa(.(T45, T46), T47, T48, .(T45, T50))
U18_aaaaa(T94, T158, T155, T69, T9, append23_out_aaaa(T155, T69, T158, T9)) → p78_out_aaaaa(T94, T158, T155, T69, T9)
U29_aa(T69, T67, T68, T9, p78_out_aaaaa(T94, X13, T155, T69, T9)) → qsort1_out_aa(.(T69, .(T67, T68)), T9)
U27_ga(T69, T67, T68, T9, qsort1_out_aa(.(T67, T93), X12)) → qsort1_out_ga(.(T69, .(T67, T68)), T9)
U26_ga(T69, T67, T68, T9, split51_out_ggaa(T68, T69, T93, T94)) → U28_ga(T69, T67, T68, T9, T94, qsort1_in_aa(.(T67, T93), T155))
U28_ga(T69, T67, T68, T9, T94, qsort1_out_aa(.(T67, T93), T155)) → U29_ga(T69, T67, T68, T9, p78_in_aaaga(T94, X13, T155, T69, T9))
U29_ga(T69, T67, T68, T9, p78_out_aaaga(T94, X13, T155, T69, T9)) → qsort1_out_ga(.(T69, .(T67, T68)), T9)
qsort1_in_ga(.(T215, .(T213, T214)), T9) → U30_ga(T215, T213, T214, T9, gt67_in_gg(T213, T215))
U30_ga(T215, T213, T214, T9, gt67_out_gg(T213, T215)) → qsort1_out_ga(.(T215, .(T213, T214)), T9)
U30_ga(T215, T213, T214, T9, gt67_out_gg(T213, T215)) → U31_ga(T215, T213, T214, T9, split51_in_ggaa(T214, T215, X323, X324))
U31_ga(T215, T213, T214, T9, split51_out_ggaa(T214, T215, X323, X324)) → qsort1_out_ga(.(T215, .(T213, T214)), T9)
U30_ga(T215, T213, T214, T9, gt67_out_gg(T213, T215)) → U32_ga(T215, T213, T214, T9, split51_in_ggaa(T214, T215, T222, T223))
U32_ga(T215, T213, T214, T9, split51_out_ggaa(T214, T215, T222, T223)) → U33_ga(T215, T213, T214, T9, qsort79_in_aa(T222, X12))
U33_ga(T215, T213, T214, T9, qsort79_out_aa(T222, X12)) → qsort1_out_ga(.(T215, .(T213, T214)), T9)
U32_ga(T215, T213, T214, T9, split51_out_ggaa(T214, T215, T222, T223)) → U34_ga(T215, T213, T214, T9, T223, qsort79_in_aa(T222, T226))
U34_ga(T215, T213, T214, T9, T223, qsort79_out_aa(T222, T226)) → U35_ga(T215, T213, T214, T9, p78_in_aaaga(.(T213, T223), X13, T226, T215, T9))
U35_ga(T215, T213, T214, T9, p78_out_aaaga(.(T213, T223), X13, T226, T215, T9)) → qsort1_out_ga(.(T215, .(T213, T214)), T9)
APPEND23_IN_GGGA(.(T45, T46), T47, T48, .(T45, T50)) → APPEND23_IN_GGGA(T46, T47, T48, T50)
APPEND23_IN_GGGA(.(T45, T46), T47, T48) → APPEND23_IN_GGGA(T46, T47, T48)
From the DPs we obtained the following set of size-change graphs: