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 QDPSizeChangeProof (⇔)
↳15 YES
↳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 QDPSizeChangeProof (⇔)
↳29 YES
↳30 PiDP
↳31 UsableRulesProof (⇔)
↳32 PiDP
↳33 PiDPToQDPProof (⇐)
↳34 QDP
↳35 NonTerminationProof (⇔)
↳36 NO
↳37 PiDP
↳38 UsableRulesProof (⇔)
↳39 PiDP
↳40 PiDPToQDPProof (⇐)
↳41 QDP
↳42 NonTerminationProof (⇔)
↳43 NO
↳44 PiDP
↳45 UsableRulesProof (⇔)
↳46 PiDP
↳47 PiDPToQDPProof (⇐)
↳48 QDP
↳49 QDPSizeChangeProof (⇔)
↳50 YES
↳51 PiDP
↳52 UsableRulesProof (⇔)
↳53 PiDP
↳54 PiDPToQDPProof (⇐)
↳55 QDP
↳56 Narrowing (⇐)
↳57 QDP
↳58 Instantiation (⇔)
↳59 QDP
↳60 NonTerminationProof (⇔)
↳61 NO
↳62 PiDP
↳63 UsableRulesProof (⇔)
↳64 PiDP
↳65 PiDPToQDPProof (⇐)
↳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 Narrowing (⇐)
↳82 QDP
↳83 Narrowing (⇐)
↳84 QDP
↳85 NonTerminationProof (⇔)
↳86 NO
↳87 PiDP
↳88 UsableRulesProof (⇔)
↳89 PiDP
↳90 PiDPToQDPProof (⇐)
↳91 QDP
↳92 Narrowing (⇐)
↳93 QDP
↳94 Narrowing (⇐)
↳95 QDP
↳96 NonTerminationProof (⇔)
↳97 NO
↳98 PiDP
↳99 UsableRulesProof (⇔)
↳100 PiDP
↳101 PiDPToQDPProof (⇔)
↳102 QDP
↳103 QDPSizeChangeProof (⇔)
↳104 YES
↳105 PiDP
↳106 UsableRulesProof (⇔)
↳107 PiDP
↳108 PiDPToQDPProof (⇐)
↳109 QDP
↳110 QDPSizeChangeProof (⇔)
↳111 YES
↳112 PrologToPiTRSProof (⇐)
↳113 PiTRS
↳114 DependencyPairsProof (⇔)
↳115 PiDP
↳116 DependencyGraphProof (⇔)
↳117 AND
↳118 PiDP
↳119 UsableRulesProof (⇔)
↳120 PiDP
↳121 PiDPToQDPProof (⇐)
↳122 QDP
↳123 QDPSizeChangeProof (⇔)
↳124 YES
↳125 PiDP
↳126 UsableRulesProof (⇔)
↳127 PiDP
↳128 PiDPToQDPProof (⇐)
↳129 QDP
↳130 NonTerminationProof (⇔)
↳131 NO
↳132 PiDP
↳133 UsableRulesProof (⇔)
↳134 PiDP
↳135 PiDPToQDPProof (⇐)
↳136 QDP
↳137 QDPSizeChangeProof (⇔)
↳138 YES
↳139 PiDP
↳140 UsableRulesProof (⇔)
↳141 PiDP
↳142 PiDPToQDPProof (⇐)
↳143 QDP
↳144 NonTerminationProof (⇔)
↳145 NO
↳146 PiDP
↳147 UsableRulesProof (⇔)
↳148 PiDP
↳149 PiDPToQDPProof (⇐)
↳150 QDP
↳151 NonTerminationProof (⇔)
↳152 NO
↳153 PiDP
↳154 UsableRulesProof (⇔)
↳155 PiDP
↳156 PiDPToQDPProof (⇐)
↳157 QDP
↳158 QDPSizeChangeProof (⇔)
↳159 YES
↳160 PiDP
↳161 UsableRulesProof (⇔)
↳162 PiDP
↳163 PiDPToQDPProof (⇐)
↳164 QDP
↳165 Narrowing (⇐)
↳166 QDP
↳167 Instantiation (⇔)
↳168 QDP
↳169 NonTerminationProof (⇔)
↳170 NO
↳171 PiDP
↳172 UsableRulesProof (⇔)
↳173 PiDP
↳174 PiDPToQDPProof (⇐)
↳175 QDP
↳176 NonTerminationProof (⇔)
↳177 NO
↳178 PiDP
↳179 UsableRulesProof (⇔)
↳180 PiDP
↳181 PiDPToQDPProof (⇐)
↳182 QDP
↳183 NonTerminationProof (⇔)
↳184 NO
↳185 PiDP
↳186 UsableRulesProof (⇔)
↳187 PiDP
↳188 PiDPToQDPProof (⇐)
↳189 QDP
↳190 Narrowing (⇐)
↳191 QDP
↳192 Narrowing (⇐)
↳193 QDP
↳194 NonTerminationProof (⇔)
↳195 NO
↳196 PiDP
↳197 UsableRulesProof (⇔)
↳198 PiDP
↳199 PiDPToQDPProof (⇐)
↳200 QDP
↳201 Narrowing (⇐)
↳202 QDP
↳203 Narrowing (⇐)
↳204 QDP
↳205 NonTerminationProof (⇔)
↳206 NO
↳207 PiDP
↳208 UsableRulesProof (⇔)
↳209 PiDP
↳210 PiDPToQDPProof (⇔)
↳211 QDP
↳212 QDPSizeChangeProof (⇔)
↳213 YES
↳214 PiDP
↳215 UsableRulesProof (⇔)
↳216 PiDP
↳217 PiDPToQDPProof (⇐)
↳218 QDP
↳219 QDPSizeChangeProof (⇔)
↳220 YES
qs1_in_ga([], []) → qs1_out_ga([], [])
qs1_in_ga(.(T22, .(T23, T24)), T9) → U17_ga(T22, T23, T24, T9, less14_in_gg(T22, T23))
less14_in_gg(0, s(T33)) → less14_out_gg(0, s(T33))
less14_in_gg(s(T38), s(T39)) → U1_gg(T38, T39, less14_in_gg(T38, T39))
U1_gg(T38, T39, less14_out_gg(T38, T39)) → less14_out_gg(s(T38), s(T39))
U17_ga(T22, T23, T24, T9, less14_out_gg(T22, T23)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U17_ga(T22, T23, T24, T9, less14_out_gg(T22, T23)) → U18_ga(T22, T23, T24, T9, part24_in_ggaa(T22, T24, X52, X53))
part24_in_ggaa(T62, .(T63, T64), .(T63, X126), X127) → U2_ggaa(T62, T63, T64, X126, X127, less14_in_gg(T62, T63))
U2_ggaa(T62, T63, T64, X126, X127, less14_out_gg(T62, T63)) → part24_out_ggaa(T62, .(T63, T64), .(T63, X126), X127)
U2_ggaa(T62, T63, T64, X126, X127, less14_out_gg(T62, T63)) → U3_ggaa(T62, T63, T64, X126, X127, part24_in_ggaa(T62, T64, X126, X127))
part24_in_ggaa(T84, .(T85, T86), X177, .(T85, X178)) → U4_ggaa(T84, T85, T86, X177, X178, part24_in_ggaa(T84, T86, X177, X178))
part24_in_ggaa(T92, [], [], []) → part24_out_ggaa(T92, [], [], [])
U4_ggaa(T84, T85, T86, X177, X178, part24_out_ggaa(T84, T86, X177, X178)) → part24_out_ggaa(T84, .(T85, T86), X177, .(T85, X178))
U3_ggaa(T62, T63, T64, X126, X127, part24_out_ggaa(T62, T64, X126, X127)) → part24_out_ggaa(T62, .(T63, T64), .(T63, X126), X127)
U18_ga(T22, T23, T24, T9, part24_out_ggaa(T22, T24, X52, X53)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U17_ga(T22, T23, T24, T9, less14_out_gg(T22, T23)) → U19_ga(T22, T23, T24, T9, part24_in_ggaa(T22, T24, T45, T46))
U19_ga(T22, T23, T24, T9, part24_out_ggaa(T22, T24, T45, T46)) → U20_ga(T22, T23, T24, T9, qs1_in_aa(.(T23, T45), X14))
qs1_in_aa([], []) → qs1_out_aa([], [])
qs1_in_aa(.(T22, .(T23, T24)), T9) → U17_aa(T22, T23, T24, T9, less14_in_aa(T22, T23))
less14_in_aa(0, s(T33)) → less14_out_aa(0, s(T33))
less14_in_aa(s(T38), s(T39)) → U1_aa(T38, T39, less14_in_aa(T38, T39))
U1_aa(T38, T39, less14_out_aa(T38, T39)) → less14_out_aa(s(T38), s(T39))
U17_aa(T22, T23, T24, T9, less14_out_aa(T22, T23)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U17_aa(T22, T23, T24, T9, less14_out_aa(T22, T23)) → U18_aa(T22, T23, T24, T9, part24_in_gaaa(T22, T24, X52, X53))
part24_in_gaaa(T62, .(T63, T64), .(T63, X126), X127) → U2_gaaa(T62, T63, T64, X126, X127, less14_in_ga(T62, T63))
less14_in_ga(0, s(T33)) → less14_out_ga(0, s(T33))
less14_in_ga(s(T38), s(T39)) → U1_ga(T38, T39, less14_in_ga(T38, T39))
U1_ga(T38, T39, less14_out_ga(T38, T39)) → less14_out_ga(s(T38), s(T39))
U2_gaaa(T62, T63, T64, X126, X127, less14_out_ga(T62, T63)) → part24_out_gaaa(T62, .(T63, T64), .(T63, X126), X127)
U2_gaaa(T62, T63, T64, X126, X127, less14_out_ga(T62, T63)) → U3_gaaa(T62, T63, T64, X126, X127, part24_in_gaaa(T62, T64, X126, X127))
part24_in_gaaa(T84, .(T85, T86), X177, .(T85, X178)) → U4_gaaa(T84, T85, T86, X177, X178, part24_in_gaaa(T84, T86, X177, X178))
part24_in_gaaa(T92, [], [], []) → part24_out_gaaa(T92, [], [], [])
U4_gaaa(T84, T85, T86, X177, X178, part24_out_gaaa(T84, T86, X177, X178)) → part24_out_gaaa(T84, .(T85, T86), X177, .(T85, X178))
U3_gaaa(T62, T63, T64, X126, X127, part24_out_gaaa(T62, T64, X126, X127)) → part24_out_gaaa(T62, .(T63, T64), .(T63, X126), X127)
U18_aa(T22, T23, T24, T9, part24_out_gaaa(T22, T24, X52, X53)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U17_aa(T22, T23, T24, T9, less14_out_aa(T22, T23)) → U19_aa(T22, T23, T24, T9, part24_in_gaaa(T22, T24, T45, T46))
U19_aa(T22, T23, T24, T9, part24_out_gaaa(T22, T24, T45, T46)) → U20_aa(T22, T23, T24, T9, qs1_in_aa(.(T23, T45), X14))
qs1_in_aa(.(T191, .(T192, T193)), T9) → U23_aa(T191, T192, T193, T9, part24_in_aaaa(T191, T193, X336, X337))
part24_in_aaaa(T62, .(T63, T64), .(T63, X126), X127) → U2_aaaa(T62, T63, T64, X126, X127, less14_in_aa(T62, T63))
U2_aaaa(T62, T63, T64, X126, X127, less14_out_aa(T62, T63)) → part24_out_aaaa(T62, .(T63, T64), .(T63, X126), X127)
U2_aaaa(T62, T63, T64, X126, X127, less14_out_aa(T62, T63)) → U3_aaaa(T62, T63, T64, X126, X127, part24_in_gaaa(T62, T64, X126, X127))
U3_aaaa(T62, T63, T64, X126, X127, part24_out_gaaa(T62, T64, X126, X127)) → part24_out_aaaa(T62, .(T63, T64), .(T63, X126), X127)
part24_in_aaaa(T84, .(T85, T86), X177, .(T85, X178)) → U4_aaaa(T84, T85, T86, X177, X178, part24_in_aaaa(T84, T86, X177, X178))
part24_in_aaaa(T92, [], [], []) → part24_out_aaaa(T92, [], [], [])
U4_aaaa(T84, T85, T86, X177, X178, part24_out_aaaa(T84, T86, X177, X178)) → part24_out_aaaa(T84, .(T85, T86), X177, .(T85, X178))
U23_aa(T191, T192, T193, T9, part24_out_aaaa(T191, T193, X336, X337)) → qs1_out_aa(.(T191, .(T192, T193)), T9)
qs1_in_aa(.(T191, .(T192, T193)), T9) → U24_aa(T191, T192, T193, T9, part24_in_aaaa(T191, T193, T197, T198))
U24_aa(T191, T192, T193, T9, part24_out_aaaa(T191, T193, T197, T198)) → U25_aa(T191, T192, T193, T9, qs42_in_aa(T197, X14))
qs42_in_aa([], []) → qs42_out_aa([], [])
qs42_in_aa(.(T103, T104), X230) → U5_aa(T103, T104, X230, part24_in_aaaa(T103, T104, X226, X227))
U5_aa(T103, T104, X230, part24_out_aaaa(T103, T104, X226, X227)) → qs42_out_aa(.(T103, T104), X230)
qs42_in_aa(.(T103, T104), X230) → U6_aa(T103, T104, X230, part24_in_aaaa(T103, T104, T108, T109))
U6_aa(T103, T104, X230, part24_out_aaaa(T103, T104, T108, T109)) → U7_aa(T103, T104, X230, qs42_in_aa(T108, X228))
U7_aa(T103, T104, X230, qs42_out_aa(T108, X228)) → qs42_out_aa(.(T103, T104), X230)
U6_aa(T103, T104, X230, part24_out_aaaa(T103, T104, T108, T109)) → U8_aa(T103, T104, X230, T109, qs42_in_aa(T108, T113))
U8_aa(T103, T104, X230, T109, qs42_out_aa(T108, T113)) → U9_aa(T103, T104, X230, qs42_in_aa(T109, X229))
U9_aa(T103, T104, X230, qs42_out_aa(T109, X229)) → qs42_out_aa(.(T103, T104), X230)
U8_aa(T103, T104, X230, T109, qs42_out_aa(T108, T113)) → U10_aa(T103, T104, X230, T113, qs42_in_aa(T109, T114))
U10_aa(T103, T104, X230, T113, qs42_out_aa(T109, T114)) → U11_aa(T103, T104, X230, app57_in_aaaa(T113, T103, T114, X230))
app57_in_aaaa([], T127, T128, .(T127, T128)) → app57_out_aaaa([], T127, T128, .(T127, T128))
app57_in_aaaa(.(T137, T138), T139, T140, .(T137, X270)) → U12_aaaa(T137, T138, T139, T140, X270, app57_in_aaaa(T138, T139, T140, X270))
U12_aaaa(T137, T138, T139, T140, X270, app57_out_aaaa(T138, T139, T140, X270)) → app57_out_aaaa(.(T137, T138), T139, T140, .(T137, X270))
U11_aa(T103, T104, X230, app57_out_aaaa(T113, T103, T114, X230)) → qs42_out_aa(.(T103, T104), X230)
U25_aa(T191, T192, T193, T9, qs42_out_aa(T197, X14)) → qs1_out_aa(.(T191, .(T192, T193)), T9)
U24_aa(T191, T192, T193, T9, part24_out_aaaa(T191, T193, T197, T198)) → U26_aa(T191, T192, T193, T9, T198, qs42_in_aa(T197, T202))
U26_aa(T191, T192, T193, T9, T198, qs42_out_aa(T197, T202)) → U27_aa(T191, T192, T193, T9, p41_in_aaaaa(.(T192, T198), X15, T202, T191, T9))
p41_in_aaaaa(T46, X15, T95, T22, T9) → U14_aaaaa(T46, X15, T95, T22, T9, qs42_in_aa(T46, X15))
U14_aaaaa(T46, X15, T95, T22, T9, qs42_out_aa(T46, X15)) → p41_out_aaaaa(T46, X15, T95, T22, T9)
p41_in_aaaaa(T46, T98, T95, T22, T9) → U15_aaaaa(T46, T98, T95, T22, T9, qs42_in_aa(T46, T98))
U15_aaaaa(T46, T98, T95, T22, T9, qs42_out_aa(T46, T98)) → U16_aaaaa(T46, T98, T95, T22, T9, app43_in_aaaa(T95, T22, T98, T9))
app43_in_aaaa([], T157, T158, .(T157, T158)) → app43_out_aaaa([], T157, T158, .(T157, T158))
app43_in_aaaa(.(T169, T170), T171, T172, .(T169, T174)) → U13_aaaa(T169, T170, T171, T172, T174, app43_in_aaaa(T170, T171, T172, T174))
U13_aaaa(T169, T170, T171, T172, T174, app43_out_aaaa(T170, T171, T172, T174)) → app43_out_aaaa(.(T169, T170), T171, T172, .(T169, T174))
U16_aaaaa(T46, T98, T95, T22, T9, app43_out_aaaa(T95, T22, T98, T9)) → p41_out_aaaaa(T46, T98, T95, T22, T9)
U27_aa(T191, T192, T193, T9, p41_out_aaaaa(.(T192, T198), X15, T202, T191, T9)) → qs1_out_aa(.(T191, .(T192, T193)), T9)
qs1_in_aa(.(T207, []), T9) → U28_aa(T207, T9, qs84_in_a(X14))
qs84_in_a([]) → qs84_out_a([])
U28_aa(T207, T9, qs84_out_a(X14)) → qs1_out_aa(.(T207, []), T9)
qs1_in_aa(.(T207, []), T9) → U29_aa(T207, T9, qs84_in_a(T210))
U29_aa(T207, T9, qs84_out_a(T210)) → U30_aa(T207, T9, qs84_in_a(X15))
U30_aa(T207, T9, qs84_out_a(X15)) → qs1_out_aa(.(T207, []), T9)
U29_aa(T207, T9, qs84_out_a(T210)) → U31_aa(T207, T9, T210, qs84_in_a(T213))
U31_aa(T207, T9, T210, qs84_out_a(T213)) → U32_aa(T207, T9, app43_in_gaga(T210, T207, T213, T9))
app43_in_gaga([], T157, T158, .(T157, T158)) → app43_out_gaga([], T157, T158, .(T157, T158))
app43_in_gaga(.(T169, T170), T171, T172, .(T169, T174)) → U13_gaga(T169, T170, T171, T172, T174, app43_in_gaga(T170, T171, T172, T174))
U13_gaga(T169, T170, T171, T172, T174, app43_out_gaga(T170, T171, T172, T174)) → app43_out_gaga(.(T169, T170), T171, T172, .(T169, T174))
U32_aa(T207, T9, app43_out_gaga(T210, T207, T213, T9)) → qs1_out_aa(.(T207, []), T9)
U20_aa(T22, T23, T24, T9, qs1_out_aa(.(T23, T45), X14)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U19_aa(T22, T23, T24, T9, part24_out_gaaa(T22, T24, T45, T46)) → U21_aa(T22, T23, T24, T9, T46, qs1_in_aa(.(T23, T45), T95))
U21_aa(T22, T23, T24, T9, T46, qs1_out_aa(.(T23, T45), T95)) → U22_aa(T22, T23, T24, T9, p41_in_aaaga(T46, X15, T95, T22, T9))
p41_in_aaaga(T46, X15, T95, T22, T9) → U14_aaaga(T46, X15, T95, T22, T9, qs42_in_aa(T46, X15))
U14_aaaga(T46, X15, T95, T22, T9, qs42_out_aa(T46, X15)) → p41_out_aaaga(T46, X15, T95, T22, T9)
p41_in_aaaga(T46, T98, T95, T22, T9) → U15_aaaga(T46, T98, T95, T22, T9, qs42_in_aa(T46, T98))
U15_aaaga(T46, T98, T95, T22, T9, qs42_out_aa(T46, T98)) → U16_aaaga(T46, T98, T95, T22, T9, app43_in_agaa(T95, T22, T98, T9))
app43_in_agaa([], T157, T158, .(T157, T158)) → app43_out_agaa([], T157, T158, .(T157, T158))
app43_in_agaa(.(T169, T170), T171, T172, .(T169, T174)) → U13_agaa(T169, T170, T171, T172, T174, app43_in_agaa(T170, T171, T172, T174))
U13_agaa(T169, T170, T171, T172, T174, app43_out_agaa(T170, T171, T172, T174)) → app43_out_agaa(.(T169, T170), T171, T172, .(T169, T174))
U16_aaaga(T46, T98, T95, T22, T9, app43_out_agaa(T95, T22, T98, T9)) → p41_out_aaaga(T46, T98, T95, T22, T9)
U22_aa(T22, T23, T24, T9, p41_out_aaaga(T46, X15, T95, T22, T9)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U20_ga(T22, T23, T24, T9, qs1_out_aa(.(T23, T45), X14)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U19_ga(T22, T23, T24, T9, part24_out_ggaa(T22, T24, T45, T46)) → U21_ga(T22, T23, T24, T9, T46, qs1_in_aa(.(T23, T45), T95))
U21_ga(T22, T23, T24, T9, T46, qs1_out_aa(.(T23, T45), T95)) → U22_ga(T22, T23, T24, T9, p41_in_aaaga(T46, X15, T95, T22, T9))
U22_ga(T22, T23, T24, T9, p41_out_aaaga(T46, X15, T95, T22, T9)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
qs1_in_ga(.(T191, .(T192, T193)), T9) → U23_ga(T191, T192, T193, T9, part24_in_ggaa(T191, T193, X336, X337))
U23_ga(T191, T192, T193, T9, part24_out_ggaa(T191, T193, X336, X337)) → qs1_out_ga(.(T191, .(T192, T193)), T9)
qs1_in_ga(.(T191, .(T192, T193)), T9) → U24_ga(T191, T192, T193, T9, part24_in_ggaa(T191, T193, T197, T198))
U24_ga(T191, T192, T193, T9, part24_out_ggaa(T191, T193, T197, T198)) → U25_ga(T191, T192, T193, T9, qs42_in_aa(T197, X14))
U25_ga(T191, T192, T193, T9, qs42_out_aa(T197, X14)) → qs1_out_ga(.(T191, .(T192, T193)), T9)
U24_ga(T191, T192, T193, T9, part24_out_ggaa(T191, T193, T197, T198)) → U26_ga(T191, T192, T193, T9, T198, qs42_in_aa(T197, T202))
U26_ga(T191, T192, T193, T9, T198, qs42_out_aa(T197, T202)) → U27_ga(T191, T192, T193, T9, p41_in_aaaga(.(T192, T198), X15, T202, T191, T9))
U27_ga(T191, T192, T193, T9, p41_out_aaaga(.(T192, T198), X15, T202, T191, T9)) → qs1_out_ga(.(T191, .(T192, T193)), T9)
qs1_in_ga(.(T207, []), T9) → U28_ga(T207, T9, qs84_in_a(X14))
U28_ga(T207, T9, qs84_out_a(X14)) → qs1_out_ga(.(T207, []), T9)
qs1_in_ga(.(T207, []), T9) → U29_ga(T207, T9, qs84_in_a(T210))
U29_ga(T207, T9, qs84_out_a(T210)) → U30_ga(T207, T9, qs84_in_a(X15))
U30_ga(T207, T9, qs84_out_a(X15)) → qs1_out_ga(.(T207, []), T9)
U29_ga(T207, T9, qs84_out_a(T210)) → U31_ga(T207, T9, T210, qs84_in_a(T213))
U31_ga(T207, T9, T210, qs84_out_a(T213)) → U32_ga(T207, T9, app43_in_ggga(T210, T207, T213, T9))
app43_in_ggga([], T157, T158, .(T157, T158)) → app43_out_ggga([], T157, T158, .(T157, T158))
app43_in_ggga(.(T169, T170), T171, T172, .(T169, T174)) → U13_ggga(T169, T170, T171, T172, T174, app43_in_ggga(T170, T171, T172, T174))
U13_ggga(T169, T170, T171, T172, T174, app43_out_ggga(T170, T171, T172, T174)) → app43_out_ggga(.(T169, T170), T171, T172, .(T169, T174))
U32_ga(T207, T9, app43_out_ggga(T210, T207, T213, T9)) → qs1_out_ga(.(T207, []), T9)
Infinitary Constructor Rewriting Termination of PiTRS implies Termination of Prolog
qs1_in_ga([], []) → qs1_out_ga([], [])
qs1_in_ga(.(T22, .(T23, T24)), T9) → U17_ga(T22, T23, T24, T9, less14_in_gg(T22, T23))
less14_in_gg(0, s(T33)) → less14_out_gg(0, s(T33))
less14_in_gg(s(T38), s(T39)) → U1_gg(T38, T39, less14_in_gg(T38, T39))
U1_gg(T38, T39, less14_out_gg(T38, T39)) → less14_out_gg(s(T38), s(T39))
U17_ga(T22, T23, T24, T9, less14_out_gg(T22, T23)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U17_ga(T22, T23, T24, T9, less14_out_gg(T22, T23)) → U18_ga(T22, T23, T24, T9, part24_in_ggaa(T22, T24, X52, X53))
part24_in_ggaa(T62, .(T63, T64), .(T63, X126), X127) → U2_ggaa(T62, T63, T64, X126, X127, less14_in_gg(T62, T63))
U2_ggaa(T62, T63, T64, X126, X127, less14_out_gg(T62, T63)) → part24_out_ggaa(T62, .(T63, T64), .(T63, X126), X127)
U2_ggaa(T62, T63, T64, X126, X127, less14_out_gg(T62, T63)) → U3_ggaa(T62, T63, T64, X126, X127, part24_in_ggaa(T62, T64, X126, X127))
part24_in_ggaa(T84, .(T85, T86), X177, .(T85, X178)) → U4_ggaa(T84, T85, T86, X177, X178, part24_in_ggaa(T84, T86, X177, X178))
part24_in_ggaa(T92, [], [], []) → part24_out_ggaa(T92, [], [], [])
U4_ggaa(T84, T85, T86, X177, X178, part24_out_ggaa(T84, T86, X177, X178)) → part24_out_ggaa(T84, .(T85, T86), X177, .(T85, X178))
U3_ggaa(T62, T63, T64, X126, X127, part24_out_ggaa(T62, T64, X126, X127)) → part24_out_ggaa(T62, .(T63, T64), .(T63, X126), X127)
U18_ga(T22, T23, T24, T9, part24_out_ggaa(T22, T24, X52, X53)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U17_ga(T22, T23, T24, T9, less14_out_gg(T22, T23)) → U19_ga(T22, T23, T24, T9, part24_in_ggaa(T22, T24, T45, T46))
U19_ga(T22, T23, T24, T9, part24_out_ggaa(T22, T24, T45, T46)) → U20_ga(T22, T23, T24, T9, qs1_in_aa(.(T23, T45), X14))
qs1_in_aa([], []) → qs1_out_aa([], [])
qs1_in_aa(.(T22, .(T23, T24)), T9) → U17_aa(T22, T23, T24, T9, less14_in_aa(T22, T23))
less14_in_aa(0, s(T33)) → less14_out_aa(0, s(T33))
less14_in_aa(s(T38), s(T39)) → U1_aa(T38, T39, less14_in_aa(T38, T39))
U1_aa(T38, T39, less14_out_aa(T38, T39)) → less14_out_aa(s(T38), s(T39))
U17_aa(T22, T23, T24, T9, less14_out_aa(T22, T23)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U17_aa(T22, T23, T24, T9, less14_out_aa(T22, T23)) → U18_aa(T22, T23, T24, T9, part24_in_gaaa(T22, T24, X52, X53))
part24_in_gaaa(T62, .(T63, T64), .(T63, X126), X127) → U2_gaaa(T62, T63, T64, X126, X127, less14_in_ga(T62, T63))
less14_in_ga(0, s(T33)) → less14_out_ga(0, s(T33))
less14_in_ga(s(T38), s(T39)) → U1_ga(T38, T39, less14_in_ga(T38, T39))
U1_ga(T38, T39, less14_out_ga(T38, T39)) → less14_out_ga(s(T38), s(T39))
U2_gaaa(T62, T63, T64, X126, X127, less14_out_ga(T62, T63)) → part24_out_gaaa(T62, .(T63, T64), .(T63, X126), X127)
U2_gaaa(T62, T63, T64, X126, X127, less14_out_ga(T62, T63)) → U3_gaaa(T62, T63, T64, X126, X127, part24_in_gaaa(T62, T64, X126, X127))
part24_in_gaaa(T84, .(T85, T86), X177, .(T85, X178)) → U4_gaaa(T84, T85, T86, X177, X178, part24_in_gaaa(T84, T86, X177, X178))
part24_in_gaaa(T92, [], [], []) → part24_out_gaaa(T92, [], [], [])
U4_gaaa(T84, T85, T86, X177, X178, part24_out_gaaa(T84, T86, X177, X178)) → part24_out_gaaa(T84, .(T85, T86), X177, .(T85, X178))
U3_gaaa(T62, T63, T64, X126, X127, part24_out_gaaa(T62, T64, X126, X127)) → part24_out_gaaa(T62, .(T63, T64), .(T63, X126), X127)
U18_aa(T22, T23, T24, T9, part24_out_gaaa(T22, T24, X52, X53)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U17_aa(T22, T23, T24, T9, less14_out_aa(T22, T23)) → U19_aa(T22, T23, T24, T9, part24_in_gaaa(T22, T24, T45, T46))
U19_aa(T22, T23, T24, T9, part24_out_gaaa(T22, T24, T45, T46)) → U20_aa(T22, T23, T24, T9, qs1_in_aa(.(T23, T45), X14))
qs1_in_aa(.(T191, .(T192, T193)), T9) → U23_aa(T191, T192, T193, T9, part24_in_aaaa(T191, T193, X336, X337))
part24_in_aaaa(T62, .(T63, T64), .(T63, X126), X127) → U2_aaaa(T62, T63, T64, X126, X127, less14_in_aa(T62, T63))
U2_aaaa(T62, T63, T64, X126, X127, less14_out_aa(T62, T63)) → part24_out_aaaa(T62, .(T63, T64), .(T63, X126), X127)
U2_aaaa(T62, T63, T64, X126, X127, less14_out_aa(T62, T63)) → U3_aaaa(T62, T63, T64, X126, X127, part24_in_gaaa(T62, T64, X126, X127))
U3_aaaa(T62, T63, T64, X126, X127, part24_out_gaaa(T62, T64, X126, X127)) → part24_out_aaaa(T62, .(T63, T64), .(T63, X126), X127)
part24_in_aaaa(T84, .(T85, T86), X177, .(T85, X178)) → U4_aaaa(T84, T85, T86, X177, X178, part24_in_aaaa(T84, T86, X177, X178))
part24_in_aaaa(T92, [], [], []) → part24_out_aaaa(T92, [], [], [])
U4_aaaa(T84, T85, T86, X177, X178, part24_out_aaaa(T84, T86, X177, X178)) → part24_out_aaaa(T84, .(T85, T86), X177, .(T85, X178))
U23_aa(T191, T192, T193, T9, part24_out_aaaa(T191, T193, X336, X337)) → qs1_out_aa(.(T191, .(T192, T193)), T9)
qs1_in_aa(.(T191, .(T192, T193)), T9) → U24_aa(T191, T192, T193, T9, part24_in_aaaa(T191, T193, T197, T198))
U24_aa(T191, T192, T193, T9, part24_out_aaaa(T191, T193, T197, T198)) → U25_aa(T191, T192, T193, T9, qs42_in_aa(T197, X14))
qs42_in_aa([], []) → qs42_out_aa([], [])
qs42_in_aa(.(T103, T104), X230) → U5_aa(T103, T104, X230, part24_in_aaaa(T103, T104, X226, X227))
U5_aa(T103, T104, X230, part24_out_aaaa(T103, T104, X226, X227)) → qs42_out_aa(.(T103, T104), X230)
qs42_in_aa(.(T103, T104), X230) → U6_aa(T103, T104, X230, part24_in_aaaa(T103, T104, T108, T109))
U6_aa(T103, T104, X230, part24_out_aaaa(T103, T104, T108, T109)) → U7_aa(T103, T104, X230, qs42_in_aa(T108, X228))
U7_aa(T103, T104, X230, qs42_out_aa(T108, X228)) → qs42_out_aa(.(T103, T104), X230)
U6_aa(T103, T104, X230, part24_out_aaaa(T103, T104, T108, T109)) → U8_aa(T103, T104, X230, T109, qs42_in_aa(T108, T113))
U8_aa(T103, T104, X230, T109, qs42_out_aa(T108, T113)) → U9_aa(T103, T104, X230, qs42_in_aa(T109, X229))
U9_aa(T103, T104, X230, qs42_out_aa(T109, X229)) → qs42_out_aa(.(T103, T104), X230)
U8_aa(T103, T104, X230, T109, qs42_out_aa(T108, T113)) → U10_aa(T103, T104, X230, T113, qs42_in_aa(T109, T114))
U10_aa(T103, T104, X230, T113, qs42_out_aa(T109, T114)) → U11_aa(T103, T104, X230, app57_in_aaaa(T113, T103, T114, X230))
app57_in_aaaa([], T127, T128, .(T127, T128)) → app57_out_aaaa([], T127, T128, .(T127, T128))
app57_in_aaaa(.(T137, T138), T139, T140, .(T137, X270)) → U12_aaaa(T137, T138, T139, T140, X270, app57_in_aaaa(T138, T139, T140, X270))
U12_aaaa(T137, T138, T139, T140, X270, app57_out_aaaa(T138, T139, T140, X270)) → app57_out_aaaa(.(T137, T138), T139, T140, .(T137, X270))
U11_aa(T103, T104, X230, app57_out_aaaa(T113, T103, T114, X230)) → qs42_out_aa(.(T103, T104), X230)
U25_aa(T191, T192, T193, T9, qs42_out_aa(T197, X14)) → qs1_out_aa(.(T191, .(T192, T193)), T9)
U24_aa(T191, T192, T193, T9, part24_out_aaaa(T191, T193, T197, T198)) → U26_aa(T191, T192, T193, T9, T198, qs42_in_aa(T197, T202))
U26_aa(T191, T192, T193, T9, T198, qs42_out_aa(T197, T202)) → U27_aa(T191, T192, T193, T9, p41_in_aaaaa(.(T192, T198), X15, T202, T191, T9))
p41_in_aaaaa(T46, X15, T95, T22, T9) → U14_aaaaa(T46, X15, T95, T22, T9, qs42_in_aa(T46, X15))
U14_aaaaa(T46, X15, T95, T22, T9, qs42_out_aa(T46, X15)) → p41_out_aaaaa(T46, X15, T95, T22, T9)
p41_in_aaaaa(T46, T98, T95, T22, T9) → U15_aaaaa(T46, T98, T95, T22, T9, qs42_in_aa(T46, T98))
U15_aaaaa(T46, T98, T95, T22, T9, qs42_out_aa(T46, T98)) → U16_aaaaa(T46, T98, T95, T22, T9, app43_in_aaaa(T95, T22, T98, T9))
app43_in_aaaa([], T157, T158, .(T157, T158)) → app43_out_aaaa([], T157, T158, .(T157, T158))
app43_in_aaaa(.(T169, T170), T171, T172, .(T169, T174)) → U13_aaaa(T169, T170, T171, T172, T174, app43_in_aaaa(T170, T171, T172, T174))
U13_aaaa(T169, T170, T171, T172, T174, app43_out_aaaa(T170, T171, T172, T174)) → app43_out_aaaa(.(T169, T170), T171, T172, .(T169, T174))
U16_aaaaa(T46, T98, T95, T22, T9, app43_out_aaaa(T95, T22, T98, T9)) → p41_out_aaaaa(T46, T98, T95, T22, T9)
U27_aa(T191, T192, T193, T9, p41_out_aaaaa(.(T192, T198), X15, T202, T191, T9)) → qs1_out_aa(.(T191, .(T192, T193)), T9)
qs1_in_aa(.(T207, []), T9) → U28_aa(T207, T9, qs84_in_a(X14))
qs84_in_a([]) → qs84_out_a([])
U28_aa(T207, T9, qs84_out_a(X14)) → qs1_out_aa(.(T207, []), T9)
qs1_in_aa(.(T207, []), T9) → U29_aa(T207, T9, qs84_in_a(T210))
U29_aa(T207, T9, qs84_out_a(T210)) → U30_aa(T207, T9, qs84_in_a(X15))
U30_aa(T207, T9, qs84_out_a(X15)) → qs1_out_aa(.(T207, []), T9)
U29_aa(T207, T9, qs84_out_a(T210)) → U31_aa(T207, T9, T210, qs84_in_a(T213))
U31_aa(T207, T9, T210, qs84_out_a(T213)) → U32_aa(T207, T9, app43_in_gaga(T210, T207, T213, T9))
app43_in_gaga([], T157, T158, .(T157, T158)) → app43_out_gaga([], T157, T158, .(T157, T158))
app43_in_gaga(.(T169, T170), T171, T172, .(T169, T174)) → U13_gaga(T169, T170, T171, T172, T174, app43_in_gaga(T170, T171, T172, T174))
U13_gaga(T169, T170, T171, T172, T174, app43_out_gaga(T170, T171, T172, T174)) → app43_out_gaga(.(T169, T170), T171, T172, .(T169, T174))
U32_aa(T207, T9, app43_out_gaga(T210, T207, T213, T9)) → qs1_out_aa(.(T207, []), T9)
U20_aa(T22, T23, T24, T9, qs1_out_aa(.(T23, T45), X14)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U19_aa(T22, T23, T24, T9, part24_out_gaaa(T22, T24, T45, T46)) → U21_aa(T22, T23, T24, T9, T46, qs1_in_aa(.(T23, T45), T95))
U21_aa(T22, T23, T24, T9, T46, qs1_out_aa(.(T23, T45), T95)) → U22_aa(T22, T23, T24, T9, p41_in_aaaga(T46, X15, T95, T22, T9))
p41_in_aaaga(T46, X15, T95, T22, T9) → U14_aaaga(T46, X15, T95, T22, T9, qs42_in_aa(T46, X15))
U14_aaaga(T46, X15, T95, T22, T9, qs42_out_aa(T46, X15)) → p41_out_aaaga(T46, X15, T95, T22, T9)
p41_in_aaaga(T46, T98, T95, T22, T9) → U15_aaaga(T46, T98, T95, T22, T9, qs42_in_aa(T46, T98))
U15_aaaga(T46, T98, T95, T22, T9, qs42_out_aa(T46, T98)) → U16_aaaga(T46, T98, T95, T22, T9, app43_in_agaa(T95, T22, T98, T9))
app43_in_agaa([], T157, T158, .(T157, T158)) → app43_out_agaa([], T157, T158, .(T157, T158))
app43_in_agaa(.(T169, T170), T171, T172, .(T169, T174)) → U13_agaa(T169, T170, T171, T172, T174, app43_in_agaa(T170, T171, T172, T174))
U13_agaa(T169, T170, T171, T172, T174, app43_out_agaa(T170, T171, T172, T174)) → app43_out_agaa(.(T169, T170), T171, T172, .(T169, T174))
U16_aaaga(T46, T98, T95, T22, T9, app43_out_agaa(T95, T22, T98, T9)) → p41_out_aaaga(T46, T98, T95, T22, T9)
U22_aa(T22, T23, T24, T9, p41_out_aaaga(T46, X15, T95, T22, T9)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U20_ga(T22, T23, T24, T9, qs1_out_aa(.(T23, T45), X14)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U19_ga(T22, T23, T24, T9, part24_out_ggaa(T22, T24, T45, T46)) → U21_ga(T22, T23, T24, T9, T46, qs1_in_aa(.(T23, T45), T95))
U21_ga(T22, T23, T24, T9, T46, qs1_out_aa(.(T23, T45), T95)) → U22_ga(T22, T23, T24, T9, p41_in_aaaga(T46, X15, T95, T22, T9))
U22_ga(T22, T23, T24, T9, p41_out_aaaga(T46, X15, T95, T22, T9)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
qs1_in_ga(.(T191, .(T192, T193)), T9) → U23_ga(T191, T192, T193, T9, part24_in_ggaa(T191, T193, X336, X337))
U23_ga(T191, T192, T193, T9, part24_out_ggaa(T191, T193, X336, X337)) → qs1_out_ga(.(T191, .(T192, T193)), T9)
qs1_in_ga(.(T191, .(T192, T193)), T9) → U24_ga(T191, T192, T193, T9, part24_in_ggaa(T191, T193, T197, T198))
U24_ga(T191, T192, T193, T9, part24_out_ggaa(T191, T193, T197, T198)) → U25_ga(T191, T192, T193, T9, qs42_in_aa(T197, X14))
U25_ga(T191, T192, T193, T9, qs42_out_aa(T197, X14)) → qs1_out_ga(.(T191, .(T192, T193)), T9)
U24_ga(T191, T192, T193, T9, part24_out_ggaa(T191, T193, T197, T198)) → U26_ga(T191, T192, T193, T9, T198, qs42_in_aa(T197, T202))
U26_ga(T191, T192, T193, T9, T198, qs42_out_aa(T197, T202)) → U27_ga(T191, T192, T193, T9, p41_in_aaaga(.(T192, T198), X15, T202, T191, T9))
U27_ga(T191, T192, T193, T9, p41_out_aaaga(.(T192, T198), X15, T202, T191, T9)) → qs1_out_ga(.(T191, .(T192, T193)), T9)
qs1_in_ga(.(T207, []), T9) → U28_ga(T207, T9, qs84_in_a(X14))
U28_ga(T207, T9, qs84_out_a(X14)) → qs1_out_ga(.(T207, []), T9)
qs1_in_ga(.(T207, []), T9) → U29_ga(T207, T9, qs84_in_a(T210))
U29_ga(T207, T9, qs84_out_a(T210)) → U30_ga(T207, T9, qs84_in_a(X15))
U30_ga(T207, T9, qs84_out_a(X15)) → qs1_out_ga(.(T207, []), T9)
U29_ga(T207, T9, qs84_out_a(T210)) → U31_ga(T207, T9, T210, qs84_in_a(T213))
U31_ga(T207, T9, T210, qs84_out_a(T213)) → U32_ga(T207, T9, app43_in_ggga(T210, T207, T213, T9))
app43_in_ggga([], T157, T158, .(T157, T158)) → app43_out_ggga([], T157, T158, .(T157, T158))
app43_in_ggga(.(T169, T170), T171, T172, .(T169, T174)) → U13_ggga(T169, T170, T171, T172, T174, app43_in_ggga(T170, T171, T172, T174))
U13_ggga(T169, T170, T171, T172, T174, app43_out_ggga(T170, T171, T172, T174)) → app43_out_ggga(.(T169, T170), T171, T172, .(T169, T174))
U32_ga(T207, T9, app43_out_ggga(T210, T207, T213, T9)) → qs1_out_ga(.(T207, []), T9)
QS1_IN_GA(.(T22, .(T23, T24)), T9) → U17_GA(T22, T23, T24, T9, less14_in_gg(T22, T23))
QS1_IN_GA(.(T22, .(T23, T24)), T9) → LESS14_IN_GG(T22, T23)
LESS14_IN_GG(s(T38), s(T39)) → U1_GG(T38, T39, less14_in_gg(T38, T39))
LESS14_IN_GG(s(T38), s(T39)) → LESS14_IN_GG(T38, T39)
U17_GA(T22, T23, T24, T9, less14_out_gg(T22, T23)) → U18_GA(T22, T23, T24, T9, part24_in_ggaa(T22, T24, X52, X53))
U17_GA(T22, T23, T24, T9, less14_out_gg(T22, T23)) → PART24_IN_GGAA(T22, T24, X52, X53)
PART24_IN_GGAA(T62, .(T63, T64), .(T63, X126), X127) → U2_GGAA(T62, T63, T64, X126, X127, less14_in_gg(T62, T63))
PART24_IN_GGAA(T62, .(T63, T64), .(T63, X126), X127) → LESS14_IN_GG(T62, T63)
U2_GGAA(T62, T63, T64, X126, X127, less14_out_gg(T62, T63)) → U3_GGAA(T62, T63, T64, X126, X127, part24_in_ggaa(T62, T64, X126, X127))
U2_GGAA(T62, T63, T64, X126, X127, less14_out_gg(T62, T63)) → PART24_IN_GGAA(T62, T64, X126, X127)
PART24_IN_GGAA(T84, .(T85, T86), X177, .(T85, X178)) → U4_GGAA(T84, T85, T86, X177, X178, part24_in_ggaa(T84, T86, X177, X178))
PART24_IN_GGAA(T84, .(T85, T86), X177, .(T85, X178)) → PART24_IN_GGAA(T84, T86, X177, X178)
U17_GA(T22, T23, T24, T9, less14_out_gg(T22, T23)) → U19_GA(T22, T23, T24, T9, part24_in_ggaa(T22, T24, T45, T46))
U19_GA(T22, T23, T24, T9, part24_out_ggaa(T22, T24, T45, T46)) → U20_GA(T22, T23, T24, T9, qs1_in_aa(.(T23, T45), X14))
U19_GA(T22, T23, T24, T9, part24_out_ggaa(T22, T24, T45, T46)) → QS1_IN_AA(.(T23, T45), X14)
QS1_IN_AA(.(T22, .(T23, T24)), T9) → U17_AA(T22, T23, T24, T9, less14_in_aa(T22, T23))
QS1_IN_AA(.(T22, .(T23, T24)), T9) → LESS14_IN_AA(T22, T23)
LESS14_IN_AA(s(T38), s(T39)) → U1_AA(T38, T39, less14_in_aa(T38, T39))
LESS14_IN_AA(s(T38), s(T39)) → LESS14_IN_AA(T38, T39)
U17_AA(T22, T23, T24, T9, less14_out_aa(T22, T23)) → U18_AA(T22, T23, T24, T9, part24_in_gaaa(T22, T24, X52, X53))
U17_AA(T22, T23, T24, T9, less14_out_aa(T22, T23)) → PART24_IN_GAAA(T22, T24, X52, X53)
PART24_IN_GAAA(T62, .(T63, T64), .(T63, X126), X127) → U2_GAAA(T62, T63, T64, X126, X127, less14_in_ga(T62, T63))
PART24_IN_GAAA(T62, .(T63, T64), .(T63, X126), X127) → LESS14_IN_GA(T62, T63)
LESS14_IN_GA(s(T38), s(T39)) → U1_GA(T38, T39, less14_in_ga(T38, T39))
LESS14_IN_GA(s(T38), s(T39)) → LESS14_IN_GA(T38, T39)
U2_GAAA(T62, T63, T64, X126, X127, less14_out_ga(T62, T63)) → U3_GAAA(T62, T63, T64, X126, X127, part24_in_gaaa(T62, T64, X126, X127))
U2_GAAA(T62, T63, T64, X126, X127, less14_out_ga(T62, T63)) → PART24_IN_GAAA(T62, T64, X126, X127)
PART24_IN_GAAA(T84, .(T85, T86), X177, .(T85, X178)) → U4_GAAA(T84, T85, T86, X177, X178, part24_in_gaaa(T84, T86, X177, X178))
PART24_IN_GAAA(T84, .(T85, T86), X177, .(T85, X178)) → PART24_IN_GAAA(T84, T86, X177, X178)
U17_AA(T22, T23, T24, T9, less14_out_aa(T22, T23)) → U19_AA(T22, T23, T24, T9, part24_in_gaaa(T22, T24, T45, T46))
U19_AA(T22, T23, T24, T9, part24_out_gaaa(T22, T24, T45, T46)) → U20_AA(T22, T23, T24, T9, qs1_in_aa(.(T23, T45), X14))
U19_AA(T22, T23, T24, T9, part24_out_gaaa(T22, T24, T45, T46)) → QS1_IN_AA(.(T23, T45), X14)
QS1_IN_AA(.(T191, .(T192, T193)), T9) → U23_AA(T191, T192, T193, T9, part24_in_aaaa(T191, T193, X336, X337))
QS1_IN_AA(.(T191, .(T192, T193)), T9) → PART24_IN_AAAA(T191, T193, X336, X337)
PART24_IN_AAAA(T62, .(T63, T64), .(T63, X126), X127) → U2_AAAA(T62, T63, T64, X126, X127, less14_in_aa(T62, T63))
PART24_IN_AAAA(T62, .(T63, T64), .(T63, X126), X127) → LESS14_IN_AA(T62, T63)
U2_AAAA(T62, T63, T64, X126, X127, less14_out_aa(T62, T63)) → U3_AAAA(T62, T63, T64, X126, X127, part24_in_gaaa(T62, T64, X126, X127))
U2_AAAA(T62, T63, T64, X126, X127, less14_out_aa(T62, T63)) → PART24_IN_GAAA(T62, T64, X126, X127)
PART24_IN_AAAA(T84, .(T85, T86), X177, .(T85, X178)) → U4_AAAA(T84, T85, T86, X177, X178, part24_in_aaaa(T84, T86, X177, X178))
PART24_IN_AAAA(T84, .(T85, T86), X177, .(T85, X178)) → PART24_IN_AAAA(T84, T86, X177, X178)
QS1_IN_AA(.(T191, .(T192, T193)), T9) → U24_AA(T191, T192, T193, T9, part24_in_aaaa(T191, T193, T197, T198))
U24_AA(T191, T192, T193, T9, part24_out_aaaa(T191, T193, T197, T198)) → U25_AA(T191, T192, T193, T9, qs42_in_aa(T197, X14))
U24_AA(T191, T192, T193, T9, part24_out_aaaa(T191, T193, T197, T198)) → QS42_IN_AA(T197, X14)
QS42_IN_AA(.(T103, T104), X230) → U5_AA(T103, T104, X230, part24_in_aaaa(T103, T104, X226, X227))
QS42_IN_AA(.(T103, T104), X230) → PART24_IN_AAAA(T103, T104, X226, X227)
QS42_IN_AA(.(T103, T104), X230) → U6_AA(T103, T104, X230, part24_in_aaaa(T103, T104, T108, T109))
U6_AA(T103, T104, X230, part24_out_aaaa(T103, T104, T108, T109)) → U7_AA(T103, T104, X230, qs42_in_aa(T108, X228))
U6_AA(T103, T104, X230, part24_out_aaaa(T103, T104, T108, T109)) → QS42_IN_AA(T108, X228)
U6_AA(T103, T104, X230, part24_out_aaaa(T103, T104, T108, T109)) → U8_AA(T103, T104, X230, T109, qs42_in_aa(T108, T113))
U8_AA(T103, T104, X230, T109, qs42_out_aa(T108, T113)) → U9_AA(T103, T104, X230, qs42_in_aa(T109, X229))
U8_AA(T103, T104, X230, T109, qs42_out_aa(T108, T113)) → QS42_IN_AA(T109, X229)
U8_AA(T103, T104, X230, T109, qs42_out_aa(T108, T113)) → U10_AA(T103, T104, X230, T113, qs42_in_aa(T109, T114))
U10_AA(T103, T104, X230, T113, qs42_out_aa(T109, T114)) → U11_AA(T103, T104, X230, app57_in_aaaa(T113, T103, T114, X230))
U10_AA(T103, T104, X230, T113, qs42_out_aa(T109, T114)) → APP57_IN_AAAA(T113, T103, T114, X230)
APP57_IN_AAAA(.(T137, T138), T139, T140, .(T137, X270)) → U12_AAAA(T137, T138, T139, T140, X270, app57_in_aaaa(T138, T139, T140, X270))
APP57_IN_AAAA(.(T137, T138), T139, T140, .(T137, X270)) → APP57_IN_AAAA(T138, T139, T140, X270)
U24_AA(T191, T192, T193, T9, part24_out_aaaa(T191, T193, T197, T198)) → U26_AA(T191, T192, T193, T9, T198, qs42_in_aa(T197, T202))
U26_AA(T191, T192, T193, T9, T198, qs42_out_aa(T197, T202)) → U27_AA(T191, T192, T193, T9, p41_in_aaaaa(.(T192, T198), X15, T202, T191, T9))
U26_AA(T191, T192, T193, T9, T198, qs42_out_aa(T197, T202)) → P41_IN_AAAAA(.(T192, T198), X15, T202, T191, T9)
P41_IN_AAAAA(T46, X15, T95, T22, T9) → U14_AAAAA(T46, X15, T95, T22, T9, qs42_in_aa(T46, X15))
P41_IN_AAAAA(T46, X15, T95, T22, T9) → QS42_IN_AA(T46, X15)
P41_IN_AAAAA(T46, T98, T95, T22, T9) → U15_AAAAA(T46, T98, T95, T22, T9, qs42_in_aa(T46, T98))
U15_AAAAA(T46, T98, T95, T22, T9, qs42_out_aa(T46, T98)) → U16_AAAAA(T46, T98, T95, T22, T9, app43_in_aaaa(T95, T22, T98, T9))
U15_AAAAA(T46, T98, T95, T22, T9, qs42_out_aa(T46, T98)) → APP43_IN_AAAA(T95, T22, T98, T9)
APP43_IN_AAAA(.(T169, T170), T171, T172, .(T169, T174)) → U13_AAAA(T169, T170, T171, T172, T174, app43_in_aaaa(T170, T171, T172, T174))
APP43_IN_AAAA(.(T169, T170), T171, T172, .(T169, T174)) → APP43_IN_AAAA(T170, T171, T172, T174)
QS1_IN_AA(.(T207, []), T9) → U28_AA(T207, T9, qs84_in_a(X14))
QS1_IN_AA(.(T207, []), T9) → QS84_IN_A(X14)
QS1_IN_AA(.(T207, []), T9) → U29_AA(T207, T9, qs84_in_a(T210))
U29_AA(T207, T9, qs84_out_a(T210)) → U30_AA(T207, T9, qs84_in_a(X15))
U29_AA(T207, T9, qs84_out_a(T210)) → QS84_IN_A(X15)
U29_AA(T207, T9, qs84_out_a(T210)) → U31_AA(T207, T9, T210, qs84_in_a(T213))
U31_AA(T207, T9, T210, qs84_out_a(T213)) → U32_AA(T207, T9, app43_in_gaga(T210, T207, T213, T9))
U31_AA(T207, T9, T210, qs84_out_a(T213)) → APP43_IN_GAGA(T210, T207, T213, T9)
APP43_IN_GAGA(.(T169, T170), T171, T172, .(T169, T174)) → U13_GAGA(T169, T170, T171, T172, T174, app43_in_gaga(T170, T171, T172, T174))
APP43_IN_GAGA(.(T169, T170), T171, T172, .(T169, T174)) → APP43_IN_GAGA(T170, T171, T172, T174)
U19_AA(T22, T23, T24, T9, part24_out_gaaa(T22, T24, T45, T46)) → U21_AA(T22, T23, T24, T9, T46, qs1_in_aa(.(T23, T45), T95))
U21_AA(T22, T23, T24, T9, T46, qs1_out_aa(.(T23, T45), T95)) → U22_AA(T22, T23, T24, T9, p41_in_aaaga(T46, X15, T95, T22, T9))
U21_AA(T22, T23, T24, T9, T46, qs1_out_aa(.(T23, T45), T95)) → P41_IN_AAAGA(T46, X15, T95, T22, T9)
P41_IN_AAAGA(T46, X15, T95, T22, T9) → U14_AAAGA(T46, X15, T95, T22, T9, qs42_in_aa(T46, X15))
P41_IN_AAAGA(T46, X15, T95, T22, T9) → QS42_IN_AA(T46, X15)
P41_IN_AAAGA(T46, T98, T95, T22, T9) → U15_AAAGA(T46, T98, T95, T22, T9, qs42_in_aa(T46, T98))
U15_AAAGA(T46, T98, T95, T22, T9, qs42_out_aa(T46, T98)) → U16_AAAGA(T46, T98, T95, T22, T9, app43_in_agaa(T95, T22, T98, T9))
U15_AAAGA(T46, T98, T95, T22, T9, qs42_out_aa(T46, T98)) → APP43_IN_AGAA(T95, T22, T98, T9)
APP43_IN_AGAA(.(T169, T170), T171, T172, .(T169, T174)) → U13_AGAA(T169, T170, T171, T172, T174, app43_in_agaa(T170, T171, T172, T174))
APP43_IN_AGAA(.(T169, T170), T171, T172, .(T169, T174)) → APP43_IN_AGAA(T170, T171, T172, T174)
U19_GA(T22, T23, T24, T9, part24_out_ggaa(T22, T24, T45, T46)) → U21_GA(T22, T23, T24, T9, T46, qs1_in_aa(.(T23, T45), T95))
U21_GA(T22, T23, T24, T9, T46, qs1_out_aa(.(T23, T45), T95)) → U22_GA(T22, T23, T24, T9, p41_in_aaaga(T46, X15, T95, T22, T9))
U21_GA(T22, T23, T24, T9, T46, qs1_out_aa(.(T23, T45), T95)) → P41_IN_AAAGA(T46, X15, T95, T22, T9)
QS1_IN_GA(.(T191, .(T192, T193)), T9) → U23_GA(T191, T192, T193, T9, part24_in_ggaa(T191, T193, X336, X337))
QS1_IN_GA(.(T191, .(T192, T193)), T9) → PART24_IN_GGAA(T191, T193, X336, X337)
QS1_IN_GA(.(T191, .(T192, T193)), T9) → U24_GA(T191, T192, T193, T9, part24_in_ggaa(T191, T193, T197, T198))
U24_GA(T191, T192, T193, T9, part24_out_ggaa(T191, T193, T197, T198)) → U25_GA(T191, T192, T193, T9, qs42_in_aa(T197, X14))
U24_GA(T191, T192, T193, T9, part24_out_ggaa(T191, T193, T197, T198)) → QS42_IN_AA(T197, X14)
U24_GA(T191, T192, T193, T9, part24_out_ggaa(T191, T193, T197, T198)) → U26_GA(T191, T192, T193, T9, T198, qs42_in_aa(T197, T202))
U26_GA(T191, T192, T193, T9, T198, qs42_out_aa(T197, T202)) → U27_GA(T191, T192, T193, T9, p41_in_aaaga(.(T192, T198), X15, T202, T191, T9))
U26_GA(T191, T192, T193, T9, T198, qs42_out_aa(T197, T202)) → P41_IN_AAAGA(.(T192, T198), X15, T202, T191, T9)
QS1_IN_GA(.(T207, []), T9) → U28_GA(T207, T9, qs84_in_a(X14))
QS1_IN_GA(.(T207, []), T9) → QS84_IN_A(X14)
QS1_IN_GA(.(T207, []), T9) → U29_GA(T207, T9, qs84_in_a(T210))
U29_GA(T207, T9, qs84_out_a(T210)) → U30_GA(T207, T9, qs84_in_a(X15))
U29_GA(T207, T9, qs84_out_a(T210)) → QS84_IN_A(X15)
U29_GA(T207, T9, qs84_out_a(T210)) → U31_GA(T207, T9, T210, qs84_in_a(T213))
U31_GA(T207, T9, T210, qs84_out_a(T213)) → U32_GA(T207, T9, app43_in_ggga(T210, T207, T213, T9))
U31_GA(T207, T9, T210, qs84_out_a(T213)) → APP43_IN_GGGA(T210, T207, T213, T9)
APP43_IN_GGGA(.(T169, T170), T171, T172, .(T169, T174)) → U13_GGGA(T169, T170, T171, T172, T174, app43_in_ggga(T170, T171, T172, T174))
APP43_IN_GGGA(.(T169, T170), T171, T172, .(T169, T174)) → APP43_IN_GGGA(T170, T171, T172, T174)
qs1_in_ga([], []) → qs1_out_ga([], [])
qs1_in_ga(.(T22, .(T23, T24)), T9) → U17_ga(T22, T23, T24, T9, less14_in_gg(T22, T23))
less14_in_gg(0, s(T33)) → less14_out_gg(0, s(T33))
less14_in_gg(s(T38), s(T39)) → U1_gg(T38, T39, less14_in_gg(T38, T39))
U1_gg(T38, T39, less14_out_gg(T38, T39)) → less14_out_gg(s(T38), s(T39))
U17_ga(T22, T23, T24, T9, less14_out_gg(T22, T23)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U17_ga(T22, T23, T24, T9, less14_out_gg(T22, T23)) → U18_ga(T22, T23, T24, T9, part24_in_ggaa(T22, T24, X52, X53))
part24_in_ggaa(T62, .(T63, T64), .(T63, X126), X127) → U2_ggaa(T62, T63, T64, X126, X127, less14_in_gg(T62, T63))
U2_ggaa(T62, T63, T64, X126, X127, less14_out_gg(T62, T63)) → part24_out_ggaa(T62, .(T63, T64), .(T63, X126), X127)
U2_ggaa(T62, T63, T64, X126, X127, less14_out_gg(T62, T63)) → U3_ggaa(T62, T63, T64, X126, X127, part24_in_ggaa(T62, T64, X126, X127))
part24_in_ggaa(T84, .(T85, T86), X177, .(T85, X178)) → U4_ggaa(T84, T85, T86, X177, X178, part24_in_ggaa(T84, T86, X177, X178))
part24_in_ggaa(T92, [], [], []) → part24_out_ggaa(T92, [], [], [])
U4_ggaa(T84, T85, T86, X177, X178, part24_out_ggaa(T84, T86, X177, X178)) → part24_out_ggaa(T84, .(T85, T86), X177, .(T85, X178))
U3_ggaa(T62, T63, T64, X126, X127, part24_out_ggaa(T62, T64, X126, X127)) → part24_out_ggaa(T62, .(T63, T64), .(T63, X126), X127)
U18_ga(T22, T23, T24, T9, part24_out_ggaa(T22, T24, X52, X53)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U17_ga(T22, T23, T24, T9, less14_out_gg(T22, T23)) → U19_ga(T22, T23, T24, T9, part24_in_ggaa(T22, T24, T45, T46))
U19_ga(T22, T23, T24, T9, part24_out_ggaa(T22, T24, T45, T46)) → U20_ga(T22, T23, T24, T9, qs1_in_aa(.(T23, T45), X14))
qs1_in_aa([], []) → qs1_out_aa([], [])
qs1_in_aa(.(T22, .(T23, T24)), T9) → U17_aa(T22, T23, T24, T9, less14_in_aa(T22, T23))
less14_in_aa(0, s(T33)) → less14_out_aa(0, s(T33))
less14_in_aa(s(T38), s(T39)) → U1_aa(T38, T39, less14_in_aa(T38, T39))
U1_aa(T38, T39, less14_out_aa(T38, T39)) → less14_out_aa(s(T38), s(T39))
U17_aa(T22, T23, T24, T9, less14_out_aa(T22, T23)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U17_aa(T22, T23, T24, T9, less14_out_aa(T22, T23)) → U18_aa(T22, T23, T24, T9, part24_in_gaaa(T22, T24, X52, X53))
part24_in_gaaa(T62, .(T63, T64), .(T63, X126), X127) → U2_gaaa(T62, T63, T64, X126, X127, less14_in_ga(T62, T63))
less14_in_ga(0, s(T33)) → less14_out_ga(0, s(T33))
less14_in_ga(s(T38), s(T39)) → U1_ga(T38, T39, less14_in_ga(T38, T39))
U1_ga(T38, T39, less14_out_ga(T38, T39)) → less14_out_ga(s(T38), s(T39))
U2_gaaa(T62, T63, T64, X126, X127, less14_out_ga(T62, T63)) → part24_out_gaaa(T62, .(T63, T64), .(T63, X126), X127)
U2_gaaa(T62, T63, T64, X126, X127, less14_out_ga(T62, T63)) → U3_gaaa(T62, T63, T64, X126, X127, part24_in_gaaa(T62, T64, X126, X127))
part24_in_gaaa(T84, .(T85, T86), X177, .(T85, X178)) → U4_gaaa(T84, T85, T86, X177, X178, part24_in_gaaa(T84, T86, X177, X178))
part24_in_gaaa(T92, [], [], []) → part24_out_gaaa(T92, [], [], [])
U4_gaaa(T84, T85, T86, X177, X178, part24_out_gaaa(T84, T86, X177, X178)) → part24_out_gaaa(T84, .(T85, T86), X177, .(T85, X178))
U3_gaaa(T62, T63, T64, X126, X127, part24_out_gaaa(T62, T64, X126, X127)) → part24_out_gaaa(T62, .(T63, T64), .(T63, X126), X127)
U18_aa(T22, T23, T24, T9, part24_out_gaaa(T22, T24, X52, X53)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U17_aa(T22, T23, T24, T9, less14_out_aa(T22, T23)) → U19_aa(T22, T23, T24, T9, part24_in_gaaa(T22, T24, T45, T46))
U19_aa(T22, T23, T24, T9, part24_out_gaaa(T22, T24, T45, T46)) → U20_aa(T22, T23, T24, T9, qs1_in_aa(.(T23, T45), X14))
qs1_in_aa(.(T191, .(T192, T193)), T9) → U23_aa(T191, T192, T193, T9, part24_in_aaaa(T191, T193, X336, X337))
part24_in_aaaa(T62, .(T63, T64), .(T63, X126), X127) → U2_aaaa(T62, T63, T64, X126, X127, less14_in_aa(T62, T63))
U2_aaaa(T62, T63, T64, X126, X127, less14_out_aa(T62, T63)) → part24_out_aaaa(T62, .(T63, T64), .(T63, X126), X127)
U2_aaaa(T62, T63, T64, X126, X127, less14_out_aa(T62, T63)) → U3_aaaa(T62, T63, T64, X126, X127, part24_in_gaaa(T62, T64, X126, X127))
U3_aaaa(T62, T63, T64, X126, X127, part24_out_gaaa(T62, T64, X126, X127)) → part24_out_aaaa(T62, .(T63, T64), .(T63, X126), X127)
part24_in_aaaa(T84, .(T85, T86), X177, .(T85, X178)) → U4_aaaa(T84, T85, T86, X177, X178, part24_in_aaaa(T84, T86, X177, X178))
part24_in_aaaa(T92, [], [], []) → part24_out_aaaa(T92, [], [], [])
U4_aaaa(T84, T85, T86, X177, X178, part24_out_aaaa(T84, T86, X177, X178)) → part24_out_aaaa(T84, .(T85, T86), X177, .(T85, X178))
U23_aa(T191, T192, T193, T9, part24_out_aaaa(T191, T193, X336, X337)) → qs1_out_aa(.(T191, .(T192, T193)), T9)
qs1_in_aa(.(T191, .(T192, T193)), T9) → U24_aa(T191, T192, T193, T9, part24_in_aaaa(T191, T193, T197, T198))
U24_aa(T191, T192, T193, T9, part24_out_aaaa(T191, T193, T197, T198)) → U25_aa(T191, T192, T193, T9, qs42_in_aa(T197, X14))
qs42_in_aa([], []) → qs42_out_aa([], [])
qs42_in_aa(.(T103, T104), X230) → U5_aa(T103, T104, X230, part24_in_aaaa(T103, T104, X226, X227))
U5_aa(T103, T104, X230, part24_out_aaaa(T103, T104, X226, X227)) → qs42_out_aa(.(T103, T104), X230)
qs42_in_aa(.(T103, T104), X230) → U6_aa(T103, T104, X230, part24_in_aaaa(T103, T104, T108, T109))
U6_aa(T103, T104, X230, part24_out_aaaa(T103, T104, T108, T109)) → U7_aa(T103, T104, X230, qs42_in_aa(T108, X228))
U7_aa(T103, T104, X230, qs42_out_aa(T108, X228)) → qs42_out_aa(.(T103, T104), X230)
U6_aa(T103, T104, X230, part24_out_aaaa(T103, T104, T108, T109)) → U8_aa(T103, T104, X230, T109, qs42_in_aa(T108, T113))
U8_aa(T103, T104, X230, T109, qs42_out_aa(T108, T113)) → U9_aa(T103, T104, X230, qs42_in_aa(T109, X229))
U9_aa(T103, T104, X230, qs42_out_aa(T109, X229)) → qs42_out_aa(.(T103, T104), X230)
U8_aa(T103, T104, X230, T109, qs42_out_aa(T108, T113)) → U10_aa(T103, T104, X230, T113, qs42_in_aa(T109, T114))
U10_aa(T103, T104, X230, T113, qs42_out_aa(T109, T114)) → U11_aa(T103, T104, X230, app57_in_aaaa(T113, T103, T114, X230))
app57_in_aaaa([], T127, T128, .(T127, T128)) → app57_out_aaaa([], T127, T128, .(T127, T128))
app57_in_aaaa(.(T137, T138), T139, T140, .(T137, X270)) → U12_aaaa(T137, T138, T139, T140, X270, app57_in_aaaa(T138, T139, T140, X270))
U12_aaaa(T137, T138, T139, T140, X270, app57_out_aaaa(T138, T139, T140, X270)) → app57_out_aaaa(.(T137, T138), T139, T140, .(T137, X270))
U11_aa(T103, T104, X230, app57_out_aaaa(T113, T103, T114, X230)) → qs42_out_aa(.(T103, T104), X230)
U25_aa(T191, T192, T193, T9, qs42_out_aa(T197, X14)) → qs1_out_aa(.(T191, .(T192, T193)), T9)
U24_aa(T191, T192, T193, T9, part24_out_aaaa(T191, T193, T197, T198)) → U26_aa(T191, T192, T193, T9, T198, qs42_in_aa(T197, T202))
U26_aa(T191, T192, T193, T9, T198, qs42_out_aa(T197, T202)) → U27_aa(T191, T192, T193, T9, p41_in_aaaaa(.(T192, T198), X15, T202, T191, T9))
p41_in_aaaaa(T46, X15, T95, T22, T9) → U14_aaaaa(T46, X15, T95, T22, T9, qs42_in_aa(T46, X15))
U14_aaaaa(T46, X15, T95, T22, T9, qs42_out_aa(T46, X15)) → p41_out_aaaaa(T46, X15, T95, T22, T9)
p41_in_aaaaa(T46, T98, T95, T22, T9) → U15_aaaaa(T46, T98, T95, T22, T9, qs42_in_aa(T46, T98))
U15_aaaaa(T46, T98, T95, T22, T9, qs42_out_aa(T46, T98)) → U16_aaaaa(T46, T98, T95, T22, T9, app43_in_aaaa(T95, T22, T98, T9))
app43_in_aaaa([], T157, T158, .(T157, T158)) → app43_out_aaaa([], T157, T158, .(T157, T158))
app43_in_aaaa(.(T169, T170), T171, T172, .(T169, T174)) → U13_aaaa(T169, T170, T171, T172, T174, app43_in_aaaa(T170, T171, T172, T174))
U13_aaaa(T169, T170, T171, T172, T174, app43_out_aaaa(T170, T171, T172, T174)) → app43_out_aaaa(.(T169, T170), T171, T172, .(T169, T174))
U16_aaaaa(T46, T98, T95, T22, T9, app43_out_aaaa(T95, T22, T98, T9)) → p41_out_aaaaa(T46, T98, T95, T22, T9)
U27_aa(T191, T192, T193, T9, p41_out_aaaaa(.(T192, T198), X15, T202, T191, T9)) → qs1_out_aa(.(T191, .(T192, T193)), T9)
qs1_in_aa(.(T207, []), T9) → U28_aa(T207, T9, qs84_in_a(X14))
qs84_in_a([]) → qs84_out_a([])
U28_aa(T207, T9, qs84_out_a(X14)) → qs1_out_aa(.(T207, []), T9)
qs1_in_aa(.(T207, []), T9) → U29_aa(T207, T9, qs84_in_a(T210))
U29_aa(T207, T9, qs84_out_a(T210)) → U30_aa(T207, T9, qs84_in_a(X15))
U30_aa(T207, T9, qs84_out_a(X15)) → qs1_out_aa(.(T207, []), T9)
U29_aa(T207, T9, qs84_out_a(T210)) → U31_aa(T207, T9, T210, qs84_in_a(T213))
U31_aa(T207, T9, T210, qs84_out_a(T213)) → U32_aa(T207, T9, app43_in_gaga(T210, T207, T213, T9))
app43_in_gaga([], T157, T158, .(T157, T158)) → app43_out_gaga([], T157, T158, .(T157, T158))
app43_in_gaga(.(T169, T170), T171, T172, .(T169, T174)) → U13_gaga(T169, T170, T171, T172, T174, app43_in_gaga(T170, T171, T172, T174))
U13_gaga(T169, T170, T171, T172, T174, app43_out_gaga(T170, T171, T172, T174)) → app43_out_gaga(.(T169, T170), T171, T172, .(T169, T174))
U32_aa(T207, T9, app43_out_gaga(T210, T207, T213, T9)) → qs1_out_aa(.(T207, []), T9)
U20_aa(T22, T23, T24, T9, qs1_out_aa(.(T23, T45), X14)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U19_aa(T22, T23, T24, T9, part24_out_gaaa(T22, T24, T45, T46)) → U21_aa(T22, T23, T24, T9, T46, qs1_in_aa(.(T23, T45), T95))
U21_aa(T22, T23, T24, T9, T46, qs1_out_aa(.(T23, T45), T95)) → U22_aa(T22, T23, T24, T9, p41_in_aaaga(T46, X15, T95, T22, T9))
p41_in_aaaga(T46, X15, T95, T22, T9) → U14_aaaga(T46, X15, T95, T22, T9, qs42_in_aa(T46, X15))
U14_aaaga(T46, X15, T95, T22, T9, qs42_out_aa(T46, X15)) → p41_out_aaaga(T46, X15, T95, T22, T9)
p41_in_aaaga(T46, T98, T95, T22, T9) → U15_aaaga(T46, T98, T95, T22, T9, qs42_in_aa(T46, T98))
U15_aaaga(T46, T98, T95, T22, T9, qs42_out_aa(T46, T98)) → U16_aaaga(T46, T98, T95, T22, T9, app43_in_agaa(T95, T22, T98, T9))
app43_in_agaa([], T157, T158, .(T157, T158)) → app43_out_agaa([], T157, T158, .(T157, T158))
app43_in_agaa(.(T169, T170), T171, T172, .(T169, T174)) → U13_agaa(T169, T170, T171, T172, T174, app43_in_agaa(T170, T171, T172, T174))
U13_agaa(T169, T170, T171, T172, T174, app43_out_agaa(T170, T171, T172, T174)) → app43_out_agaa(.(T169, T170), T171, T172, .(T169, T174))
U16_aaaga(T46, T98, T95, T22, T9, app43_out_agaa(T95, T22, T98, T9)) → p41_out_aaaga(T46, T98, T95, T22, T9)
U22_aa(T22, T23, T24, T9, p41_out_aaaga(T46, X15, T95, T22, T9)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U20_ga(T22, T23, T24, T9, qs1_out_aa(.(T23, T45), X14)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U19_ga(T22, T23, T24, T9, part24_out_ggaa(T22, T24, T45, T46)) → U21_ga(T22, T23, T24, T9, T46, qs1_in_aa(.(T23, T45), T95))
U21_ga(T22, T23, T24, T9, T46, qs1_out_aa(.(T23, T45), T95)) → U22_ga(T22, T23, T24, T9, p41_in_aaaga(T46, X15, T95, T22, T9))
U22_ga(T22, T23, T24, T9, p41_out_aaaga(T46, X15, T95, T22, T9)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
qs1_in_ga(.(T191, .(T192, T193)), T9) → U23_ga(T191, T192, T193, T9, part24_in_ggaa(T191, T193, X336, X337))
U23_ga(T191, T192, T193, T9, part24_out_ggaa(T191, T193, X336, X337)) → qs1_out_ga(.(T191, .(T192, T193)), T9)
qs1_in_ga(.(T191, .(T192, T193)), T9) → U24_ga(T191, T192, T193, T9, part24_in_ggaa(T191, T193, T197, T198))
U24_ga(T191, T192, T193, T9, part24_out_ggaa(T191, T193, T197, T198)) → U25_ga(T191, T192, T193, T9, qs42_in_aa(T197, X14))
U25_ga(T191, T192, T193, T9, qs42_out_aa(T197, X14)) → qs1_out_ga(.(T191, .(T192, T193)), T9)
U24_ga(T191, T192, T193, T9, part24_out_ggaa(T191, T193, T197, T198)) → U26_ga(T191, T192, T193, T9, T198, qs42_in_aa(T197, T202))
U26_ga(T191, T192, T193, T9, T198, qs42_out_aa(T197, T202)) → U27_ga(T191, T192, T193, T9, p41_in_aaaga(.(T192, T198), X15, T202, T191, T9))
U27_ga(T191, T192, T193, T9, p41_out_aaaga(.(T192, T198), X15, T202, T191, T9)) → qs1_out_ga(.(T191, .(T192, T193)), T9)
qs1_in_ga(.(T207, []), T9) → U28_ga(T207, T9, qs84_in_a(X14))
U28_ga(T207, T9, qs84_out_a(X14)) → qs1_out_ga(.(T207, []), T9)
qs1_in_ga(.(T207, []), T9) → U29_ga(T207, T9, qs84_in_a(T210))
U29_ga(T207, T9, qs84_out_a(T210)) → U30_ga(T207, T9, qs84_in_a(X15))
U30_ga(T207, T9, qs84_out_a(X15)) → qs1_out_ga(.(T207, []), T9)
U29_ga(T207, T9, qs84_out_a(T210)) → U31_ga(T207, T9, T210, qs84_in_a(T213))
U31_ga(T207, T9, T210, qs84_out_a(T213)) → U32_ga(T207, T9, app43_in_ggga(T210, T207, T213, T9))
app43_in_ggga([], T157, T158, .(T157, T158)) → app43_out_ggga([], T157, T158, .(T157, T158))
app43_in_ggga(.(T169, T170), T171, T172, .(T169, T174)) → U13_ggga(T169, T170, T171, T172, T174, app43_in_ggga(T170, T171, T172, T174))
U13_ggga(T169, T170, T171, T172, T174, app43_out_ggga(T170, T171, T172, T174)) → app43_out_ggga(.(T169, T170), T171, T172, .(T169, T174))
U32_ga(T207, T9, app43_out_ggga(T210, T207, T213, T9)) → qs1_out_ga(.(T207, []), T9)
QS1_IN_GA(.(T22, .(T23, T24)), T9) → U17_GA(T22, T23, T24, T9, less14_in_gg(T22, T23))
QS1_IN_GA(.(T22, .(T23, T24)), T9) → LESS14_IN_GG(T22, T23)
LESS14_IN_GG(s(T38), s(T39)) → U1_GG(T38, T39, less14_in_gg(T38, T39))
LESS14_IN_GG(s(T38), s(T39)) → LESS14_IN_GG(T38, T39)
U17_GA(T22, T23, T24, T9, less14_out_gg(T22, T23)) → U18_GA(T22, T23, T24, T9, part24_in_ggaa(T22, T24, X52, X53))
U17_GA(T22, T23, T24, T9, less14_out_gg(T22, T23)) → PART24_IN_GGAA(T22, T24, X52, X53)
PART24_IN_GGAA(T62, .(T63, T64), .(T63, X126), X127) → U2_GGAA(T62, T63, T64, X126, X127, less14_in_gg(T62, T63))
PART24_IN_GGAA(T62, .(T63, T64), .(T63, X126), X127) → LESS14_IN_GG(T62, T63)
U2_GGAA(T62, T63, T64, X126, X127, less14_out_gg(T62, T63)) → U3_GGAA(T62, T63, T64, X126, X127, part24_in_ggaa(T62, T64, X126, X127))
U2_GGAA(T62, T63, T64, X126, X127, less14_out_gg(T62, T63)) → PART24_IN_GGAA(T62, T64, X126, X127)
PART24_IN_GGAA(T84, .(T85, T86), X177, .(T85, X178)) → U4_GGAA(T84, T85, T86, X177, X178, part24_in_ggaa(T84, T86, X177, X178))
PART24_IN_GGAA(T84, .(T85, T86), X177, .(T85, X178)) → PART24_IN_GGAA(T84, T86, X177, X178)
U17_GA(T22, T23, T24, T9, less14_out_gg(T22, T23)) → U19_GA(T22, T23, T24, T9, part24_in_ggaa(T22, T24, T45, T46))
U19_GA(T22, T23, T24, T9, part24_out_ggaa(T22, T24, T45, T46)) → U20_GA(T22, T23, T24, T9, qs1_in_aa(.(T23, T45), X14))
U19_GA(T22, T23, T24, T9, part24_out_ggaa(T22, T24, T45, T46)) → QS1_IN_AA(.(T23, T45), X14)
QS1_IN_AA(.(T22, .(T23, T24)), T9) → U17_AA(T22, T23, T24, T9, less14_in_aa(T22, T23))
QS1_IN_AA(.(T22, .(T23, T24)), T9) → LESS14_IN_AA(T22, T23)
LESS14_IN_AA(s(T38), s(T39)) → U1_AA(T38, T39, less14_in_aa(T38, T39))
LESS14_IN_AA(s(T38), s(T39)) → LESS14_IN_AA(T38, T39)
U17_AA(T22, T23, T24, T9, less14_out_aa(T22, T23)) → U18_AA(T22, T23, T24, T9, part24_in_gaaa(T22, T24, X52, X53))
U17_AA(T22, T23, T24, T9, less14_out_aa(T22, T23)) → PART24_IN_GAAA(T22, T24, X52, X53)
PART24_IN_GAAA(T62, .(T63, T64), .(T63, X126), X127) → U2_GAAA(T62, T63, T64, X126, X127, less14_in_ga(T62, T63))
PART24_IN_GAAA(T62, .(T63, T64), .(T63, X126), X127) → LESS14_IN_GA(T62, T63)
LESS14_IN_GA(s(T38), s(T39)) → U1_GA(T38, T39, less14_in_ga(T38, T39))
LESS14_IN_GA(s(T38), s(T39)) → LESS14_IN_GA(T38, T39)
U2_GAAA(T62, T63, T64, X126, X127, less14_out_ga(T62, T63)) → U3_GAAA(T62, T63, T64, X126, X127, part24_in_gaaa(T62, T64, X126, X127))
U2_GAAA(T62, T63, T64, X126, X127, less14_out_ga(T62, T63)) → PART24_IN_GAAA(T62, T64, X126, X127)
PART24_IN_GAAA(T84, .(T85, T86), X177, .(T85, X178)) → U4_GAAA(T84, T85, T86, X177, X178, part24_in_gaaa(T84, T86, X177, X178))
PART24_IN_GAAA(T84, .(T85, T86), X177, .(T85, X178)) → PART24_IN_GAAA(T84, T86, X177, X178)
U17_AA(T22, T23, T24, T9, less14_out_aa(T22, T23)) → U19_AA(T22, T23, T24, T9, part24_in_gaaa(T22, T24, T45, T46))
U19_AA(T22, T23, T24, T9, part24_out_gaaa(T22, T24, T45, T46)) → U20_AA(T22, T23, T24, T9, qs1_in_aa(.(T23, T45), X14))
U19_AA(T22, T23, T24, T9, part24_out_gaaa(T22, T24, T45, T46)) → QS1_IN_AA(.(T23, T45), X14)
QS1_IN_AA(.(T191, .(T192, T193)), T9) → U23_AA(T191, T192, T193, T9, part24_in_aaaa(T191, T193, X336, X337))
QS1_IN_AA(.(T191, .(T192, T193)), T9) → PART24_IN_AAAA(T191, T193, X336, X337)
PART24_IN_AAAA(T62, .(T63, T64), .(T63, X126), X127) → U2_AAAA(T62, T63, T64, X126, X127, less14_in_aa(T62, T63))
PART24_IN_AAAA(T62, .(T63, T64), .(T63, X126), X127) → LESS14_IN_AA(T62, T63)
U2_AAAA(T62, T63, T64, X126, X127, less14_out_aa(T62, T63)) → U3_AAAA(T62, T63, T64, X126, X127, part24_in_gaaa(T62, T64, X126, X127))
U2_AAAA(T62, T63, T64, X126, X127, less14_out_aa(T62, T63)) → PART24_IN_GAAA(T62, T64, X126, X127)
PART24_IN_AAAA(T84, .(T85, T86), X177, .(T85, X178)) → U4_AAAA(T84, T85, T86, X177, X178, part24_in_aaaa(T84, T86, X177, X178))
PART24_IN_AAAA(T84, .(T85, T86), X177, .(T85, X178)) → PART24_IN_AAAA(T84, T86, X177, X178)
QS1_IN_AA(.(T191, .(T192, T193)), T9) → U24_AA(T191, T192, T193, T9, part24_in_aaaa(T191, T193, T197, T198))
U24_AA(T191, T192, T193, T9, part24_out_aaaa(T191, T193, T197, T198)) → U25_AA(T191, T192, T193, T9, qs42_in_aa(T197, X14))
U24_AA(T191, T192, T193, T9, part24_out_aaaa(T191, T193, T197, T198)) → QS42_IN_AA(T197, X14)
QS42_IN_AA(.(T103, T104), X230) → U5_AA(T103, T104, X230, part24_in_aaaa(T103, T104, X226, X227))
QS42_IN_AA(.(T103, T104), X230) → PART24_IN_AAAA(T103, T104, X226, X227)
QS42_IN_AA(.(T103, T104), X230) → U6_AA(T103, T104, X230, part24_in_aaaa(T103, T104, T108, T109))
U6_AA(T103, T104, X230, part24_out_aaaa(T103, T104, T108, T109)) → U7_AA(T103, T104, X230, qs42_in_aa(T108, X228))
U6_AA(T103, T104, X230, part24_out_aaaa(T103, T104, T108, T109)) → QS42_IN_AA(T108, X228)
U6_AA(T103, T104, X230, part24_out_aaaa(T103, T104, T108, T109)) → U8_AA(T103, T104, X230, T109, qs42_in_aa(T108, T113))
U8_AA(T103, T104, X230, T109, qs42_out_aa(T108, T113)) → U9_AA(T103, T104, X230, qs42_in_aa(T109, X229))
U8_AA(T103, T104, X230, T109, qs42_out_aa(T108, T113)) → QS42_IN_AA(T109, X229)
U8_AA(T103, T104, X230, T109, qs42_out_aa(T108, T113)) → U10_AA(T103, T104, X230, T113, qs42_in_aa(T109, T114))
U10_AA(T103, T104, X230, T113, qs42_out_aa(T109, T114)) → U11_AA(T103, T104, X230, app57_in_aaaa(T113, T103, T114, X230))
U10_AA(T103, T104, X230, T113, qs42_out_aa(T109, T114)) → APP57_IN_AAAA(T113, T103, T114, X230)
APP57_IN_AAAA(.(T137, T138), T139, T140, .(T137, X270)) → U12_AAAA(T137, T138, T139, T140, X270, app57_in_aaaa(T138, T139, T140, X270))
APP57_IN_AAAA(.(T137, T138), T139, T140, .(T137, X270)) → APP57_IN_AAAA(T138, T139, T140, X270)
U24_AA(T191, T192, T193, T9, part24_out_aaaa(T191, T193, T197, T198)) → U26_AA(T191, T192, T193, T9, T198, qs42_in_aa(T197, T202))
U26_AA(T191, T192, T193, T9, T198, qs42_out_aa(T197, T202)) → U27_AA(T191, T192, T193, T9, p41_in_aaaaa(.(T192, T198), X15, T202, T191, T9))
U26_AA(T191, T192, T193, T9, T198, qs42_out_aa(T197, T202)) → P41_IN_AAAAA(.(T192, T198), X15, T202, T191, T9)
P41_IN_AAAAA(T46, X15, T95, T22, T9) → U14_AAAAA(T46, X15, T95, T22, T9, qs42_in_aa(T46, X15))
P41_IN_AAAAA(T46, X15, T95, T22, T9) → QS42_IN_AA(T46, X15)
P41_IN_AAAAA(T46, T98, T95, T22, T9) → U15_AAAAA(T46, T98, T95, T22, T9, qs42_in_aa(T46, T98))
U15_AAAAA(T46, T98, T95, T22, T9, qs42_out_aa(T46, T98)) → U16_AAAAA(T46, T98, T95, T22, T9, app43_in_aaaa(T95, T22, T98, T9))
U15_AAAAA(T46, T98, T95, T22, T9, qs42_out_aa(T46, T98)) → APP43_IN_AAAA(T95, T22, T98, T9)
APP43_IN_AAAA(.(T169, T170), T171, T172, .(T169, T174)) → U13_AAAA(T169, T170, T171, T172, T174, app43_in_aaaa(T170, T171, T172, T174))
APP43_IN_AAAA(.(T169, T170), T171, T172, .(T169, T174)) → APP43_IN_AAAA(T170, T171, T172, T174)
QS1_IN_AA(.(T207, []), T9) → U28_AA(T207, T9, qs84_in_a(X14))
QS1_IN_AA(.(T207, []), T9) → QS84_IN_A(X14)
QS1_IN_AA(.(T207, []), T9) → U29_AA(T207, T9, qs84_in_a(T210))
U29_AA(T207, T9, qs84_out_a(T210)) → U30_AA(T207, T9, qs84_in_a(X15))
U29_AA(T207, T9, qs84_out_a(T210)) → QS84_IN_A(X15)
U29_AA(T207, T9, qs84_out_a(T210)) → U31_AA(T207, T9, T210, qs84_in_a(T213))
U31_AA(T207, T9, T210, qs84_out_a(T213)) → U32_AA(T207, T9, app43_in_gaga(T210, T207, T213, T9))
U31_AA(T207, T9, T210, qs84_out_a(T213)) → APP43_IN_GAGA(T210, T207, T213, T9)
APP43_IN_GAGA(.(T169, T170), T171, T172, .(T169, T174)) → U13_GAGA(T169, T170, T171, T172, T174, app43_in_gaga(T170, T171, T172, T174))
APP43_IN_GAGA(.(T169, T170), T171, T172, .(T169, T174)) → APP43_IN_GAGA(T170, T171, T172, T174)
U19_AA(T22, T23, T24, T9, part24_out_gaaa(T22, T24, T45, T46)) → U21_AA(T22, T23, T24, T9, T46, qs1_in_aa(.(T23, T45), T95))
U21_AA(T22, T23, T24, T9, T46, qs1_out_aa(.(T23, T45), T95)) → U22_AA(T22, T23, T24, T9, p41_in_aaaga(T46, X15, T95, T22, T9))
U21_AA(T22, T23, T24, T9, T46, qs1_out_aa(.(T23, T45), T95)) → P41_IN_AAAGA(T46, X15, T95, T22, T9)
P41_IN_AAAGA(T46, X15, T95, T22, T9) → U14_AAAGA(T46, X15, T95, T22, T9, qs42_in_aa(T46, X15))
P41_IN_AAAGA(T46, X15, T95, T22, T9) → QS42_IN_AA(T46, X15)
P41_IN_AAAGA(T46, T98, T95, T22, T9) → U15_AAAGA(T46, T98, T95, T22, T9, qs42_in_aa(T46, T98))
U15_AAAGA(T46, T98, T95, T22, T9, qs42_out_aa(T46, T98)) → U16_AAAGA(T46, T98, T95, T22, T9, app43_in_agaa(T95, T22, T98, T9))
U15_AAAGA(T46, T98, T95, T22, T9, qs42_out_aa(T46, T98)) → APP43_IN_AGAA(T95, T22, T98, T9)
APP43_IN_AGAA(.(T169, T170), T171, T172, .(T169, T174)) → U13_AGAA(T169, T170, T171, T172, T174, app43_in_agaa(T170, T171, T172, T174))
APP43_IN_AGAA(.(T169, T170), T171, T172, .(T169, T174)) → APP43_IN_AGAA(T170, T171, T172, T174)
U19_GA(T22, T23, T24, T9, part24_out_ggaa(T22, T24, T45, T46)) → U21_GA(T22, T23, T24, T9, T46, qs1_in_aa(.(T23, T45), T95))
U21_GA(T22, T23, T24, T9, T46, qs1_out_aa(.(T23, T45), T95)) → U22_GA(T22, T23, T24, T9, p41_in_aaaga(T46, X15, T95, T22, T9))
U21_GA(T22, T23, T24, T9, T46, qs1_out_aa(.(T23, T45), T95)) → P41_IN_AAAGA(T46, X15, T95, T22, T9)
QS1_IN_GA(.(T191, .(T192, T193)), T9) → U23_GA(T191, T192, T193, T9, part24_in_ggaa(T191, T193, X336, X337))
QS1_IN_GA(.(T191, .(T192, T193)), T9) → PART24_IN_GGAA(T191, T193, X336, X337)
QS1_IN_GA(.(T191, .(T192, T193)), T9) → U24_GA(T191, T192, T193, T9, part24_in_ggaa(T191, T193, T197, T198))
U24_GA(T191, T192, T193, T9, part24_out_ggaa(T191, T193, T197, T198)) → U25_GA(T191, T192, T193, T9, qs42_in_aa(T197, X14))
U24_GA(T191, T192, T193, T9, part24_out_ggaa(T191, T193, T197, T198)) → QS42_IN_AA(T197, X14)
U24_GA(T191, T192, T193, T9, part24_out_ggaa(T191, T193, T197, T198)) → U26_GA(T191, T192, T193, T9, T198, qs42_in_aa(T197, T202))
U26_GA(T191, T192, T193, T9, T198, qs42_out_aa(T197, T202)) → U27_GA(T191, T192, T193, T9, p41_in_aaaga(.(T192, T198), X15, T202, T191, T9))
U26_GA(T191, T192, T193, T9, T198, qs42_out_aa(T197, T202)) → P41_IN_AAAGA(.(T192, T198), X15, T202, T191, T9)
QS1_IN_GA(.(T207, []), T9) → U28_GA(T207, T9, qs84_in_a(X14))
QS1_IN_GA(.(T207, []), T9) → QS84_IN_A(X14)
QS1_IN_GA(.(T207, []), T9) → U29_GA(T207, T9, qs84_in_a(T210))
U29_GA(T207, T9, qs84_out_a(T210)) → U30_GA(T207, T9, qs84_in_a(X15))
U29_GA(T207, T9, qs84_out_a(T210)) → QS84_IN_A(X15)
U29_GA(T207, T9, qs84_out_a(T210)) → U31_GA(T207, T9, T210, qs84_in_a(T213))
U31_GA(T207, T9, T210, qs84_out_a(T213)) → U32_GA(T207, T9, app43_in_ggga(T210, T207, T213, T9))
U31_GA(T207, T9, T210, qs84_out_a(T213)) → APP43_IN_GGGA(T210, T207, T213, T9)
APP43_IN_GGGA(.(T169, T170), T171, T172, .(T169, T174)) → U13_GGGA(T169, T170, T171, T172, T174, app43_in_ggga(T170, T171, T172, T174))
APP43_IN_GGGA(.(T169, T170), T171, T172, .(T169, T174)) → APP43_IN_GGGA(T170, T171, T172, T174)
qs1_in_ga([], []) → qs1_out_ga([], [])
qs1_in_ga(.(T22, .(T23, T24)), T9) → U17_ga(T22, T23, T24, T9, less14_in_gg(T22, T23))
less14_in_gg(0, s(T33)) → less14_out_gg(0, s(T33))
less14_in_gg(s(T38), s(T39)) → U1_gg(T38, T39, less14_in_gg(T38, T39))
U1_gg(T38, T39, less14_out_gg(T38, T39)) → less14_out_gg(s(T38), s(T39))
U17_ga(T22, T23, T24, T9, less14_out_gg(T22, T23)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U17_ga(T22, T23, T24, T9, less14_out_gg(T22, T23)) → U18_ga(T22, T23, T24, T9, part24_in_ggaa(T22, T24, X52, X53))
part24_in_ggaa(T62, .(T63, T64), .(T63, X126), X127) → U2_ggaa(T62, T63, T64, X126, X127, less14_in_gg(T62, T63))
U2_ggaa(T62, T63, T64, X126, X127, less14_out_gg(T62, T63)) → part24_out_ggaa(T62, .(T63, T64), .(T63, X126), X127)
U2_ggaa(T62, T63, T64, X126, X127, less14_out_gg(T62, T63)) → U3_ggaa(T62, T63, T64, X126, X127, part24_in_ggaa(T62, T64, X126, X127))
part24_in_ggaa(T84, .(T85, T86), X177, .(T85, X178)) → U4_ggaa(T84, T85, T86, X177, X178, part24_in_ggaa(T84, T86, X177, X178))
part24_in_ggaa(T92, [], [], []) → part24_out_ggaa(T92, [], [], [])
U4_ggaa(T84, T85, T86, X177, X178, part24_out_ggaa(T84, T86, X177, X178)) → part24_out_ggaa(T84, .(T85, T86), X177, .(T85, X178))
U3_ggaa(T62, T63, T64, X126, X127, part24_out_ggaa(T62, T64, X126, X127)) → part24_out_ggaa(T62, .(T63, T64), .(T63, X126), X127)
U18_ga(T22, T23, T24, T9, part24_out_ggaa(T22, T24, X52, X53)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U17_ga(T22, T23, T24, T9, less14_out_gg(T22, T23)) → U19_ga(T22, T23, T24, T9, part24_in_ggaa(T22, T24, T45, T46))
U19_ga(T22, T23, T24, T9, part24_out_ggaa(T22, T24, T45, T46)) → U20_ga(T22, T23, T24, T9, qs1_in_aa(.(T23, T45), X14))
qs1_in_aa([], []) → qs1_out_aa([], [])
qs1_in_aa(.(T22, .(T23, T24)), T9) → U17_aa(T22, T23, T24, T9, less14_in_aa(T22, T23))
less14_in_aa(0, s(T33)) → less14_out_aa(0, s(T33))
less14_in_aa(s(T38), s(T39)) → U1_aa(T38, T39, less14_in_aa(T38, T39))
U1_aa(T38, T39, less14_out_aa(T38, T39)) → less14_out_aa(s(T38), s(T39))
U17_aa(T22, T23, T24, T9, less14_out_aa(T22, T23)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U17_aa(T22, T23, T24, T9, less14_out_aa(T22, T23)) → U18_aa(T22, T23, T24, T9, part24_in_gaaa(T22, T24, X52, X53))
part24_in_gaaa(T62, .(T63, T64), .(T63, X126), X127) → U2_gaaa(T62, T63, T64, X126, X127, less14_in_ga(T62, T63))
less14_in_ga(0, s(T33)) → less14_out_ga(0, s(T33))
less14_in_ga(s(T38), s(T39)) → U1_ga(T38, T39, less14_in_ga(T38, T39))
U1_ga(T38, T39, less14_out_ga(T38, T39)) → less14_out_ga(s(T38), s(T39))
U2_gaaa(T62, T63, T64, X126, X127, less14_out_ga(T62, T63)) → part24_out_gaaa(T62, .(T63, T64), .(T63, X126), X127)
U2_gaaa(T62, T63, T64, X126, X127, less14_out_ga(T62, T63)) → U3_gaaa(T62, T63, T64, X126, X127, part24_in_gaaa(T62, T64, X126, X127))
part24_in_gaaa(T84, .(T85, T86), X177, .(T85, X178)) → U4_gaaa(T84, T85, T86, X177, X178, part24_in_gaaa(T84, T86, X177, X178))
part24_in_gaaa(T92, [], [], []) → part24_out_gaaa(T92, [], [], [])
U4_gaaa(T84, T85, T86, X177, X178, part24_out_gaaa(T84, T86, X177, X178)) → part24_out_gaaa(T84, .(T85, T86), X177, .(T85, X178))
U3_gaaa(T62, T63, T64, X126, X127, part24_out_gaaa(T62, T64, X126, X127)) → part24_out_gaaa(T62, .(T63, T64), .(T63, X126), X127)
U18_aa(T22, T23, T24, T9, part24_out_gaaa(T22, T24, X52, X53)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U17_aa(T22, T23, T24, T9, less14_out_aa(T22, T23)) → U19_aa(T22, T23, T24, T9, part24_in_gaaa(T22, T24, T45, T46))
U19_aa(T22, T23, T24, T9, part24_out_gaaa(T22, T24, T45, T46)) → U20_aa(T22, T23, T24, T9, qs1_in_aa(.(T23, T45), X14))
qs1_in_aa(.(T191, .(T192, T193)), T9) → U23_aa(T191, T192, T193, T9, part24_in_aaaa(T191, T193, X336, X337))
part24_in_aaaa(T62, .(T63, T64), .(T63, X126), X127) → U2_aaaa(T62, T63, T64, X126, X127, less14_in_aa(T62, T63))
U2_aaaa(T62, T63, T64, X126, X127, less14_out_aa(T62, T63)) → part24_out_aaaa(T62, .(T63, T64), .(T63, X126), X127)
U2_aaaa(T62, T63, T64, X126, X127, less14_out_aa(T62, T63)) → U3_aaaa(T62, T63, T64, X126, X127, part24_in_gaaa(T62, T64, X126, X127))
U3_aaaa(T62, T63, T64, X126, X127, part24_out_gaaa(T62, T64, X126, X127)) → part24_out_aaaa(T62, .(T63, T64), .(T63, X126), X127)
part24_in_aaaa(T84, .(T85, T86), X177, .(T85, X178)) → U4_aaaa(T84, T85, T86, X177, X178, part24_in_aaaa(T84, T86, X177, X178))
part24_in_aaaa(T92, [], [], []) → part24_out_aaaa(T92, [], [], [])
U4_aaaa(T84, T85, T86, X177, X178, part24_out_aaaa(T84, T86, X177, X178)) → part24_out_aaaa(T84, .(T85, T86), X177, .(T85, X178))
U23_aa(T191, T192, T193, T9, part24_out_aaaa(T191, T193, X336, X337)) → qs1_out_aa(.(T191, .(T192, T193)), T9)
qs1_in_aa(.(T191, .(T192, T193)), T9) → U24_aa(T191, T192, T193, T9, part24_in_aaaa(T191, T193, T197, T198))
U24_aa(T191, T192, T193, T9, part24_out_aaaa(T191, T193, T197, T198)) → U25_aa(T191, T192, T193, T9, qs42_in_aa(T197, X14))
qs42_in_aa([], []) → qs42_out_aa([], [])
qs42_in_aa(.(T103, T104), X230) → U5_aa(T103, T104, X230, part24_in_aaaa(T103, T104, X226, X227))
U5_aa(T103, T104, X230, part24_out_aaaa(T103, T104, X226, X227)) → qs42_out_aa(.(T103, T104), X230)
qs42_in_aa(.(T103, T104), X230) → U6_aa(T103, T104, X230, part24_in_aaaa(T103, T104, T108, T109))
U6_aa(T103, T104, X230, part24_out_aaaa(T103, T104, T108, T109)) → U7_aa(T103, T104, X230, qs42_in_aa(T108, X228))
U7_aa(T103, T104, X230, qs42_out_aa(T108, X228)) → qs42_out_aa(.(T103, T104), X230)
U6_aa(T103, T104, X230, part24_out_aaaa(T103, T104, T108, T109)) → U8_aa(T103, T104, X230, T109, qs42_in_aa(T108, T113))
U8_aa(T103, T104, X230, T109, qs42_out_aa(T108, T113)) → U9_aa(T103, T104, X230, qs42_in_aa(T109, X229))
U9_aa(T103, T104, X230, qs42_out_aa(T109, X229)) → qs42_out_aa(.(T103, T104), X230)
U8_aa(T103, T104, X230, T109, qs42_out_aa(T108, T113)) → U10_aa(T103, T104, X230, T113, qs42_in_aa(T109, T114))
U10_aa(T103, T104, X230, T113, qs42_out_aa(T109, T114)) → U11_aa(T103, T104, X230, app57_in_aaaa(T113, T103, T114, X230))
app57_in_aaaa([], T127, T128, .(T127, T128)) → app57_out_aaaa([], T127, T128, .(T127, T128))
app57_in_aaaa(.(T137, T138), T139, T140, .(T137, X270)) → U12_aaaa(T137, T138, T139, T140, X270, app57_in_aaaa(T138, T139, T140, X270))
U12_aaaa(T137, T138, T139, T140, X270, app57_out_aaaa(T138, T139, T140, X270)) → app57_out_aaaa(.(T137, T138), T139, T140, .(T137, X270))
U11_aa(T103, T104, X230, app57_out_aaaa(T113, T103, T114, X230)) → qs42_out_aa(.(T103, T104), X230)
U25_aa(T191, T192, T193, T9, qs42_out_aa(T197, X14)) → qs1_out_aa(.(T191, .(T192, T193)), T9)
U24_aa(T191, T192, T193, T9, part24_out_aaaa(T191, T193, T197, T198)) → U26_aa(T191, T192, T193, T9, T198, qs42_in_aa(T197, T202))
U26_aa(T191, T192, T193, T9, T198, qs42_out_aa(T197, T202)) → U27_aa(T191, T192, T193, T9, p41_in_aaaaa(.(T192, T198), X15, T202, T191, T9))
p41_in_aaaaa(T46, X15, T95, T22, T9) → U14_aaaaa(T46, X15, T95, T22, T9, qs42_in_aa(T46, X15))
U14_aaaaa(T46, X15, T95, T22, T9, qs42_out_aa(T46, X15)) → p41_out_aaaaa(T46, X15, T95, T22, T9)
p41_in_aaaaa(T46, T98, T95, T22, T9) → U15_aaaaa(T46, T98, T95, T22, T9, qs42_in_aa(T46, T98))
U15_aaaaa(T46, T98, T95, T22, T9, qs42_out_aa(T46, T98)) → U16_aaaaa(T46, T98, T95, T22, T9, app43_in_aaaa(T95, T22, T98, T9))
app43_in_aaaa([], T157, T158, .(T157, T158)) → app43_out_aaaa([], T157, T158, .(T157, T158))
app43_in_aaaa(.(T169, T170), T171, T172, .(T169, T174)) → U13_aaaa(T169, T170, T171, T172, T174, app43_in_aaaa(T170, T171, T172, T174))
U13_aaaa(T169, T170, T171, T172, T174, app43_out_aaaa(T170, T171, T172, T174)) → app43_out_aaaa(.(T169, T170), T171, T172, .(T169, T174))
U16_aaaaa(T46, T98, T95, T22, T9, app43_out_aaaa(T95, T22, T98, T9)) → p41_out_aaaaa(T46, T98, T95, T22, T9)
U27_aa(T191, T192, T193, T9, p41_out_aaaaa(.(T192, T198), X15, T202, T191, T9)) → qs1_out_aa(.(T191, .(T192, T193)), T9)
qs1_in_aa(.(T207, []), T9) → U28_aa(T207, T9, qs84_in_a(X14))
qs84_in_a([]) → qs84_out_a([])
U28_aa(T207, T9, qs84_out_a(X14)) → qs1_out_aa(.(T207, []), T9)
qs1_in_aa(.(T207, []), T9) → U29_aa(T207, T9, qs84_in_a(T210))
U29_aa(T207, T9, qs84_out_a(T210)) → U30_aa(T207, T9, qs84_in_a(X15))
U30_aa(T207, T9, qs84_out_a(X15)) → qs1_out_aa(.(T207, []), T9)
U29_aa(T207, T9, qs84_out_a(T210)) → U31_aa(T207, T9, T210, qs84_in_a(T213))
U31_aa(T207, T9, T210, qs84_out_a(T213)) → U32_aa(T207, T9, app43_in_gaga(T210, T207, T213, T9))
app43_in_gaga([], T157, T158, .(T157, T158)) → app43_out_gaga([], T157, T158, .(T157, T158))
app43_in_gaga(.(T169, T170), T171, T172, .(T169, T174)) → U13_gaga(T169, T170, T171, T172, T174, app43_in_gaga(T170, T171, T172, T174))
U13_gaga(T169, T170, T171, T172, T174, app43_out_gaga(T170, T171, T172, T174)) → app43_out_gaga(.(T169, T170), T171, T172, .(T169, T174))
U32_aa(T207, T9, app43_out_gaga(T210, T207, T213, T9)) → qs1_out_aa(.(T207, []), T9)
U20_aa(T22, T23, T24, T9, qs1_out_aa(.(T23, T45), X14)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U19_aa(T22, T23, T24, T9, part24_out_gaaa(T22, T24, T45, T46)) → U21_aa(T22, T23, T24, T9, T46, qs1_in_aa(.(T23, T45), T95))
U21_aa(T22, T23, T24, T9, T46, qs1_out_aa(.(T23, T45), T95)) → U22_aa(T22, T23, T24, T9, p41_in_aaaga(T46, X15, T95, T22, T9))
p41_in_aaaga(T46, X15, T95, T22, T9) → U14_aaaga(T46, X15, T95, T22, T9, qs42_in_aa(T46, X15))
U14_aaaga(T46, X15, T95, T22, T9, qs42_out_aa(T46, X15)) → p41_out_aaaga(T46, X15, T95, T22, T9)
p41_in_aaaga(T46, T98, T95, T22, T9) → U15_aaaga(T46, T98, T95, T22, T9, qs42_in_aa(T46, T98))
U15_aaaga(T46, T98, T95, T22, T9, qs42_out_aa(T46, T98)) → U16_aaaga(T46, T98, T95, T22, T9, app43_in_agaa(T95, T22, T98, T9))
app43_in_agaa([], T157, T158, .(T157, T158)) → app43_out_agaa([], T157, T158, .(T157, T158))
app43_in_agaa(.(T169, T170), T171, T172, .(T169, T174)) → U13_agaa(T169, T170, T171, T172, T174, app43_in_agaa(T170, T171, T172, T174))
U13_agaa(T169, T170, T171, T172, T174, app43_out_agaa(T170, T171, T172, T174)) → app43_out_agaa(.(T169, T170), T171, T172, .(T169, T174))
U16_aaaga(T46, T98, T95, T22, T9, app43_out_agaa(T95, T22, T98, T9)) → p41_out_aaaga(T46, T98, T95, T22, T9)
U22_aa(T22, T23, T24, T9, p41_out_aaaga(T46, X15, T95, T22, T9)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U20_ga(T22, T23, T24, T9, qs1_out_aa(.(T23, T45), X14)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U19_ga(T22, T23, T24, T9, part24_out_ggaa(T22, T24, T45, T46)) → U21_ga(T22, T23, T24, T9, T46, qs1_in_aa(.(T23, T45), T95))
U21_ga(T22, T23, T24, T9, T46, qs1_out_aa(.(T23, T45), T95)) → U22_ga(T22, T23, T24, T9, p41_in_aaaga(T46, X15, T95, T22, T9))
U22_ga(T22, T23, T24, T9, p41_out_aaaga(T46, X15, T95, T22, T9)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
qs1_in_ga(.(T191, .(T192, T193)), T9) → U23_ga(T191, T192, T193, T9, part24_in_ggaa(T191, T193, X336, X337))
U23_ga(T191, T192, T193, T9, part24_out_ggaa(T191, T193, X336, X337)) → qs1_out_ga(.(T191, .(T192, T193)), T9)
qs1_in_ga(.(T191, .(T192, T193)), T9) → U24_ga(T191, T192, T193, T9, part24_in_ggaa(T191, T193, T197, T198))
U24_ga(T191, T192, T193, T9, part24_out_ggaa(T191, T193, T197, T198)) → U25_ga(T191, T192, T193, T9, qs42_in_aa(T197, X14))
U25_ga(T191, T192, T193, T9, qs42_out_aa(T197, X14)) → qs1_out_ga(.(T191, .(T192, T193)), T9)
U24_ga(T191, T192, T193, T9, part24_out_ggaa(T191, T193, T197, T198)) → U26_ga(T191, T192, T193, T9, T198, qs42_in_aa(T197, T202))
U26_ga(T191, T192, T193, T9, T198, qs42_out_aa(T197, T202)) → U27_ga(T191, T192, T193, T9, p41_in_aaaga(.(T192, T198), X15, T202, T191, T9))
U27_ga(T191, T192, T193, T9, p41_out_aaaga(.(T192, T198), X15, T202, T191, T9)) → qs1_out_ga(.(T191, .(T192, T193)), T9)
qs1_in_ga(.(T207, []), T9) → U28_ga(T207, T9, qs84_in_a(X14))
U28_ga(T207, T9, qs84_out_a(X14)) → qs1_out_ga(.(T207, []), T9)
qs1_in_ga(.(T207, []), T9) → U29_ga(T207, T9, qs84_in_a(T210))
U29_ga(T207, T9, qs84_out_a(T210)) → U30_ga(T207, T9, qs84_in_a(X15))
U30_ga(T207, T9, qs84_out_a(X15)) → qs1_out_ga(.(T207, []), T9)
U29_ga(T207, T9, qs84_out_a(T210)) → U31_ga(T207, T9, T210, qs84_in_a(T213))
U31_ga(T207, T9, T210, qs84_out_a(T213)) → U32_ga(T207, T9, app43_in_ggga(T210, T207, T213, T9))
app43_in_ggga([], T157, T158, .(T157, T158)) → app43_out_ggga([], T157, T158, .(T157, T158))
app43_in_ggga(.(T169, T170), T171, T172, .(T169, T174)) → U13_ggga(T169, T170, T171, T172, T174, app43_in_ggga(T170, T171, T172, T174))
U13_ggga(T169, T170, T171, T172, T174, app43_out_ggga(T170, T171, T172, T174)) → app43_out_ggga(.(T169, T170), T171, T172, .(T169, T174))
U32_ga(T207, T9, app43_out_ggga(T210, T207, T213, T9)) → qs1_out_ga(.(T207, []), T9)
APP43_IN_GGGA(.(T169, T170), T171, T172, .(T169, T174)) → APP43_IN_GGGA(T170, T171, T172, T174)
qs1_in_ga([], []) → qs1_out_ga([], [])
qs1_in_ga(.(T22, .(T23, T24)), T9) → U17_ga(T22, T23, T24, T9, less14_in_gg(T22, T23))
less14_in_gg(0, s(T33)) → less14_out_gg(0, s(T33))
less14_in_gg(s(T38), s(T39)) → U1_gg(T38, T39, less14_in_gg(T38, T39))
U1_gg(T38, T39, less14_out_gg(T38, T39)) → less14_out_gg(s(T38), s(T39))
U17_ga(T22, T23, T24, T9, less14_out_gg(T22, T23)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U17_ga(T22, T23, T24, T9, less14_out_gg(T22, T23)) → U18_ga(T22, T23, T24, T9, part24_in_ggaa(T22, T24, X52, X53))
part24_in_ggaa(T62, .(T63, T64), .(T63, X126), X127) → U2_ggaa(T62, T63, T64, X126, X127, less14_in_gg(T62, T63))
U2_ggaa(T62, T63, T64, X126, X127, less14_out_gg(T62, T63)) → part24_out_ggaa(T62, .(T63, T64), .(T63, X126), X127)
U2_ggaa(T62, T63, T64, X126, X127, less14_out_gg(T62, T63)) → U3_ggaa(T62, T63, T64, X126, X127, part24_in_ggaa(T62, T64, X126, X127))
part24_in_ggaa(T84, .(T85, T86), X177, .(T85, X178)) → U4_ggaa(T84, T85, T86, X177, X178, part24_in_ggaa(T84, T86, X177, X178))
part24_in_ggaa(T92, [], [], []) → part24_out_ggaa(T92, [], [], [])
U4_ggaa(T84, T85, T86, X177, X178, part24_out_ggaa(T84, T86, X177, X178)) → part24_out_ggaa(T84, .(T85, T86), X177, .(T85, X178))
U3_ggaa(T62, T63, T64, X126, X127, part24_out_ggaa(T62, T64, X126, X127)) → part24_out_ggaa(T62, .(T63, T64), .(T63, X126), X127)
U18_ga(T22, T23, T24, T9, part24_out_ggaa(T22, T24, X52, X53)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U17_ga(T22, T23, T24, T9, less14_out_gg(T22, T23)) → U19_ga(T22, T23, T24, T9, part24_in_ggaa(T22, T24, T45, T46))
U19_ga(T22, T23, T24, T9, part24_out_ggaa(T22, T24, T45, T46)) → U20_ga(T22, T23, T24, T9, qs1_in_aa(.(T23, T45), X14))
qs1_in_aa([], []) → qs1_out_aa([], [])
qs1_in_aa(.(T22, .(T23, T24)), T9) → U17_aa(T22, T23, T24, T9, less14_in_aa(T22, T23))
less14_in_aa(0, s(T33)) → less14_out_aa(0, s(T33))
less14_in_aa(s(T38), s(T39)) → U1_aa(T38, T39, less14_in_aa(T38, T39))
U1_aa(T38, T39, less14_out_aa(T38, T39)) → less14_out_aa(s(T38), s(T39))
U17_aa(T22, T23, T24, T9, less14_out_aa(T22, T23)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U17_aa(T22, T23, T24, T9, less14_out_aa(T22, T23)) → U18_aa(T22, T23, T24, T9, part24_in_gaaa(T22, T24, X52, X53))
part24_in_gaaa(T62, .(T63, T64), .(T63, X126), X127) → U2_gaaa(T62, T63, T64, X126, X127, less14_in_ga(T62, T63))
less14_in_ga(0, s(T33)) → less14_out_ga(0, s(T33))
less14_in_ga(s(T38), s(T39)) → U1_ga(T38, T39, less14_in_ga(T38, T39))
U1_ga(T38, T39, less14_out_ga(T38, T39)) → less14_out_ga(s(T38), s(T39))
U2_gaaa(T62, T63, T64, X126, X127, less14_out_ga(T62, T63)) → part24_out_gaaa(T62, .(T63, T64), .(T63, X126), X127)
U2_gaaa(T62, T63, T64, X126, X127, less14_out_ga(T62, T63)) → U3_gaaa(T62, T63, T64, X126, X127, part24_in_gaaa(T62, T64, X126, X127))
part24_in_gaaa(T84, .(T85, T86), X177, .(T85, X178)) → U4_gaaa(T84, T85, T86, X177, X178, part24_in_gaaa(T84, T86, X177, X178))
part24_in_gaaa(T92, [], [], []) → part24_out_gaaa(T92, [], [], [])
U4_gaaa(T84, T85, T86, X177, X178, part24_out_gaaa(T84, T86, X177, X178)) → part24_out_gaaa(T84, .(T85, T86), X177, .(T85, X178))
U3_gaaa(T62, T63, T64, X126, X127, part24_out_gaaa(T62, T64, X126, X127)) → part24_out_gaaa(T62, .(T63, T64), .(T63, X126), X127)
U18_aa(T22, T23, T24, T9, part24_out_gaaa(T22, T24, X52, X53)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U17_aa(T22, T23, T24, T9, less14_out_aa(T22, T23)) → U19_aa(T22, T23, T24, T9, part24_in_gaaa(T22, T24, T45, T46))
U19_aa(T22, T23, T24, T9, part24_out_gaaa(T22, T24, T45, T46)) → U20_aa(T22, T23, T24, T9, qs1_in_aa(.(T23, T45), X14))
qs1_in_aa(.(T191, .(T192, T193)), T9) → U23_aa(T191, T192, T193, T9, part24_in_aaaa(T191, T193, X336, X337))
part24_in_aaaa(T62, .(T63, T64), .(T63, X126), X127) → U2_aaaa(T62, T63, T64, X126, X127, less14_in_aa(T62, T63))
U2_aaaa(T62, T63, T64, X126, X127, less14_out_aa(T62, T63)) → part24_out_aaaa(T62, .(T63, T64), .(T63, X126), X127)
U2_aaaa(T62, T63, T64, X126, X127, less14_out_aa(T62, T63)) → U3_aaaa(T62, T63, T64, X126, X127, part24_in_gaaa(T62, T64, X126, X127))
U3_aaaa(T62, T63, T64, X126, X127, part24_out_gaaa(T62, T64, X126, X127)) → part24_out_aaaa(T62, .(T63, T64), .(T63, X126), X127)
part24_in_aaaa(T84, .(T85, T86), X177, .(T85, X178)) → U4_aaaa(T84, T85, T86, X177, X178, part24_in_aaaa(T84, T86, X177, X178))
part24_in_aaaa(T92, [], [], []) → part24_out_aaaa(T92, [], [], [])
U4_aaaa(T84, T85, T86, X177, X178, part24_out_aaaa(T84, T86, X177, X178)) → part24_out_aaaa(T84, .(T85, T86), X177, .(T85, X178))
U23_aa(T191, T192, T193, T9, part24_out_aaaa(T191, T193, X336, X337)) → qs1_out_aa(.(T191, .(T192, T193)), T9)
qs1_in_aa(.(T191, .(T192, T193)), T9) → U24_aa(T191, T192, T193, T9, part24_in_aaaa(T191, T193, T197, T198))
U24_aa(T191, T192, T193, T9, part24_out_aaaa(T191, T193, T197, T198)) → U25_aa(T191, T192, T193, T9, qs42_in_aa(T197, X14))
qs42_in_aa([], []) → qs42_out_aa([], [])
qs42_in_aa(.(T103, T104), X230) → U5_aa(T103, T104, X230, part24_in_aaaa(T103, T104, X226, X227))
U5_aa(T103, T104, X230, part24_out_aaaa(T103, T104, X226, X227)) → qs42_out_aa(.(T103, T104), X230)
qs42_in_aa(.(T103, T104), X230) → U6_aa(T103, T104, X230, part24_in_aaaa(T103, T104, T108, T109))
U6_aa(T103, T104, X230, part24_out_aaaa(T103, T104, T108, T109)) → U7_aa(T103, T104, X230, qs42_in_aa(T108, X228))
U7_aa(T103, T104, X230, qs42_out_aa(T108, X228)) → qs42_out_aa(.(T103, T104), X230)
U6_aa(T103, T104, X230, part24_out_aaaa(T103, T104, T108, T109)) → U8_aa(T103, T104, X230, T109, qs42_in_aa(T108, T113))
U8_aa(T103, T104, X230, T109, qs42_out_aa(T108, T113)) → U9_aa(T103, T104, X230, qs42_in_aa(T109, X229))
U9_aa(T103, T104, X230, qs42_out_aa(T109, X229)) → qs42_out_aa(.(T103, T104), X230)
U8_aa(T103, T104, X230, T109, qs42_out_aa(T108, T113)) → U10_aa(T103, T104, X230, T113, qs42_in_aa(T109, T114))
U10_aa(T103, T104, X230, T113, qs42_out_aa(T109, T114)) → U11_aa(T103, T104, X230, app57_in_aaaa(T113, T103, T114, X230))
app57_in_aaaa([], T127, T128, .(T127, T128)) → app57_out_aaaa([], T127, T128, .(T127, T128))
app57_in_aaaa(.(T137, T138), T139, T140, .(T137, X270)) → U12_aaaa(T137, T138, T139, T140, X270, app57_in_aaaa(T138, T139, T140, X270))
U12_aaaa(T137, T138, T139, T140, X270, app57_out_aaaa(T138, T139, T140, X270)) → app57_out_aaaa(.(T137, T138), T139, T140, .(T137, X270))
U11_aa(T103, T104, X230, app57_out_aaaa(T113, T103, T114, X230)) → qs42_out_aa(.(T103, T104), X230)
U25_aa(T191, T192, T193, T9, qs42_out_aa(T197, X14)) → qs1_out_aa(.(T191, .(T192, T193)), T9)
U24_aa(T191, T192, T193, T9, part24_out_aaaa(T191, T193, T197, T198)) → U26_aa(T191, T192, T193, T9, T198, qs42_in_aa(T197, T202))
U26_aa(T191, T192, T193, T9, T198, qs42_out_aa(T197, T202)) → U27_aa(T191, T192, T193, T9, p41_in_aaaaa(.(T192, T198), X15, T202, T191, T9))
p41_in_aaaaa(T46, X15, T95, T22, T9) → U14_aaaaa(T46, X15, T95, T22, T9, qs42_in_aa(T46, X15))
U14_aaaaa(T46, X15, T95, T22, T9, qs42_out_aa(T46, X15)) → p41_out_aaaaa(T46, X15, T95, T22, T9)
p41_in_aaaaa(T46, T98, T95, T22, T9) → U15_aaaaa(T46, T98, T95, T22, T9, qs42_in_aa(T46, T98))
U15_aaaaa(T46, T98, T95, T22, T9, qs42_out_aa(T46, T98)) → U16_aaaaa(T46, T98, T95, T22, T9, app43_in_aaaa(T95, T22, T98, T9))
app43_in_aaaa([], T157, T158, .(T157, T158)) → app43_out_aaaa([], T157, T158, .(T157, T158))
app43_in_aaaa(.(T169, T170), T171, T172, .(T169, T174)) → U13_aaaa(T169, T170, T171, T172, T174, app43_in_aaaa(T170, T171, T172, T174))
U13_aaaa(T169, T170, T171, T172, T174, app43_out_aaaa(T170, T171, T172, T174)) → app43_out_aaaa(.(T169, T170), T171, T172, .(T169, T174))
U16_aaaaa(T46, T98, T95, T22, T9, app43_out_aaaa(T95, T22, T98, T9)) → p41_out_aaaaa(T46, T98, T95, T22, T9)
U27_aa(T191, T192, T193, T9, p41_out_aaaaa(.(T192, T198), X15, T202, T191, T9)) → qs1_out_aa(.(T191, .(T192, T193)), T9)
qs1_in_aa(.(T207, []), T9) → U28_aa(T207, T9, qs84_in_a(X14))
qs84_in_a([]) → qs84_out_a([])
U28_aa(T207, T9, qs84_out_a(X14)) → qs1_out_aa(.(T207, []), T9)
qs1_in_aa(.(T207, []), T9) → U29_aa(T207, T9, qs84_in_a(T210))
U29_aa(T207, T9, qs84_out_a(T210)) → U30_aa(T207, T9, qs84_in_a(X15))
U30_aa(T207, T9, qs84_out_a(X15)) → qs1_out_aa(.(T207, []), T9)
U29_aa(T207, T9, qs84_out_a(T210)) → U31_aa(T207, T9, T210, qs84_in_a(T213))
U31_aa(T207, T9, T210, qs84_out_a(T213)) → U32_aa(T207, T9, app43_in_gaga(T210, T207, T213, T9))
app43_in_gaga([], T157, T158, .(T157, T158)) → app43_out_gaga([], T157, T158, .(T157, T158))
app43_in_gaga(.(T169, T170), T171, T172, .(T169, T174)) → U13_gaga(T169, T170, T171, T172, T174, app43_in_gaga(T170, T171, T172, T174))
U13_gaga(T169, T170, T171, T172, T174, app43_out_gaga(T170, T171, T172, T174)) → app43_out_gaga(.(T169, T170), T171, T172, .(T169, T174))
U32_aa(T207, T9, app43_out_gaga(T210, T207, T213, T9)) → qs1_out_aa(.(T207, []), T9)
U20_aa(T22, T23, T24, T9, qs1_out_aa(.(T23, T45), X14)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U19_aa(T22, T23, T24, T9, part24_out_gaaa(T22, T24, T45, T46)) → U21_aa(T22, T23, T24, T9, T46, qs1_in_aa(.(T23, T45), T95))
U21_aa(T22, T23, T24, T9, T46, qs1_out_aa(.(T23, T45), T95)) → U22_aa(T22, T23, T24, T9, p41_in_aaaga(T46, X15, T95, T22, T9))
p41_in_aaaga(T46, X15, T95, T22, T9) → U14_aaaga(T46, X15, T95, T22, T9, qs42_in_aa(T46, X15))
U14_aaaga(T46, X15, T95, T22, T9, qs42_out_aa(T46, X15)) → p41_out_aaaga(T46, X15, T95, T22, T9)
p41_in_aaaga(T46, T98, T95, T22, T9) → U15_aaaga(T46, T98, T95, T22, T9, qs42_in_aa(T46, T98))
U15_aaaga(T46, T98, T95, T22, T9, qs42_out_aa(T46, T98)) → U16_aaaga(T46, T98, T95, T22, T9, app43_in_agaa(T95, T22, T98, T9))
app43_in_agaa([], T157, T158, .(T157, T158)) → app43_out_agaa([], T157, T158, .(T157, T158))
app43_in_agaa(.(T169, T170), T171, T172, .(T169, T174)) → U13_agaa(T169, T170, T171, T172, T174, app43_in_agaa(T170, T171, T172, T174))
U13_agaa(T169, T170, T171, T172, T174, app43_out_agaa(T170, T171, T172, T174)) → app43_out_agaa(.(T169, T170), T171, T172, .(T169, T174))
U16_aaaga(T46, T98, T95, T22, T9, app43_out_agaa(T95, T22, T98, T9)) → p41_out_aaaga(T46, T98, T95, T22, T9)
U22_aa(T22, T23, T24, T9, p41_out_aaaga(T46, X15, T95, T22, T9)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U20_ga(T22, T23, T24, T9, qs1_out_aa(.(T23, T45), X14)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U19_ga(T22, T23, T24, T9, part24_out_ggaa(T22, T24, T45, T46)) → U21_ga(T22, T23, T24, T9, T46, qs1_in_aa(.(T23, T45), T95))
U21_ga(T22, T23, T24, T9, T46, qs1_out_aa(.(T23, T45), T95)) → U22_ga(T22, T23, T24, T9, p41_in_aaaga(T46, X15, T95, T22, T9))
U22_ga(T22, T23, T24, T9, p41_out_aaaga(T46, X15, T95, T22, T9)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
qs1_in_ga(.(T191, .(T192, T193)), T9) → U23_ga(T191, T192, T193, T9, part24_in_ggaa(T191, T193, X336, X337))
U23_ga(T191, T192, T193, T9, part24_out_ggaa(T191, T193, X336, X337)) → qs1_out_ga(.(T191, .(T192, T193)), T9)
qs1_in_ga(.(T191, .(T192, T193)), T9) → U24_ga(T191, T192, T193, T9, part24_in_ggaa(T191, T193, T197, T198))
U24_ga(T191, T192, T193, T9, part24_out_ggaa(T191, T193, T197, T198)) → U25_ga(T191, T192, T193, T9, qs42_in_aa(T197, X14))
U25_ga(T191, T192, T193, T9, qs42_out_aa(T197, X14)) → qs1_out_ga(.(T191, .(T192, T193)), T9)
U24_ga(T191, T192, T193, T9, part24_out_ggaa(T191, T193, T197, T198)) → U26_ga(T191, T192, T193, T9, T198, qs42_in_aa(T197, T202))
U26_ga(T191, T192, T193, T9, T198, qs42_out_aa(T197, T202)) → U27_ga(T191, T192, T193, T9, p41_in_aaaga(.(T192, T198), X15, T202, T191, T9))
U27_ga(T191, T192, T193, T9, p41_out_aaaga(.(T192, T198), X15, T202, T191, T9)) → qs1_out_ga(.(T191, .(T192, T193)), T9)
qs1_in_ga(.(T207, []), T9) → U28_ga(T207, T9, qs84_in_a(X14))
U28_ga(T207, T9, qs84_out_a(X14)) → qs1_out_ga(.(T207, []), T9)
qs1_in_ga(.(T207, []), T9) → U29_ga(T207, T9, qs84_in_a(T210))
U29_ga(T207, T9, qs84_out_a(T210)) → U30_ga(T207, T9, qs84_in_a(X15))
U30_ga(T207, T9, qs84_out_a(X15)) → qs1_out_ga(.(T207, []), T9)
U29_ga(T207, T9, qs84_out_a(T210)) → U31_ga(T207, T9, T210, qs84_in_a(T213))
U31_ga(T207, T9, T210, qs84_out_a(T213)) → U32_ga(T207, T9, app43_in_ggga(T210, T207, T213, T9))
app43_in_ggga([], T157, T158, .(T157, T158)) → app43_out_ggga([], T157, T158, .(T157, T158))
app43_in_ggga(.(T169, T170), T171, T172, .(T169, T174)) → U13_ggga(T169, T170, T171, T172, T174, app43_in_ggga(T170, T171, T172, T174))
U13_ggga(T169, T170, T171, T172, T174, app43_out_ggga(T170, T171, T172, T174)) → app43_out_ggga(.(T169, T170), T171, T172, .(T169, T174))
U32_ga(T207, T9, app43_out_ggga(T210, T207, T213, T9)) → qs1_out_ga(.(T207, []), T9)
APP43_IN_GGGA(.(T169, T170), T171, T172, .(T169, T174)) → APP43_IN_GGGA(T170, T171, T172, T174)
APP43_IN_GGGA(.(T169, T170), T171, T172) → APP43_IN_GGGA(T170, T171, T172)
From the DPs we obtained the following set of size-change graphs:
APP43_IN_AGAA(.(T169, T170), T171, T172, .(T169, T174)) → APP43_IN_AGAA(T170, T171, T172, T174)
qs1_in_ga([], []) → qs1_out_ga([], [])
qs1_in_ga(.(T22, .(T23, T24)), T9) → U17_ga(T22, T23, T24, T9, less14_in_gg(T22, T23))
less14_in_gg(0, s(T33)) → less14_out_gg(0, s(T33))
less14_in_gg(s(T38), s(T39)) → U1_gg(T38, T39, less14_in_gg(T38, T39))
U1_gg(T38, T39, less14_out_gg(T38, T39)) → less14_out_gg(s(T38), s(T39))
U17_ga(T22, T23, T24, T9, less14_out_gg(T22, T23)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U17_ga(T22, T23, T24, T9, less14_out_gg(T22, T23)) → U18_ga(T22, T23, T24, T9, part24_in_ggaa(T22, T24, X52, X53))
part24_in_ggaa(T62, .(T63, T64), .(T63, X126), X127) → U2_ggaa(T62, T63, T64, X126, X127, less14_in_gg(T62, T63))
U2_ggaa(T62, T63, T64, X126, X127, less14_out_gg(T62, T63)) → part24_out_ggaa(T62, .(T63, T64), .(T63, X126), X127)
U2_ggaa(T62, T63, T64, X126, X127, less14_out_gg(T62, T63)) → U3_ggaa(T62, T63, T64, X126, X127, part24_in_ggaa(T62, T64, X126, X127))
part24_in_ggaa(T84, .(T85, T86), X177, .(T85, X178)) → U4_ggaa(T84, T85, T86, X177, X178, part24_in_ggaa(T84, T86, X177, X178))
part24_in_ggaa(T92, [], [], []) → part24_out_ggaa(T92, [], [], [])
U4_ggaa(T84, T85, T86, X177, X178, part24_out_ggaa(T84, T86, X177, X178)) → part24_out_ggaa(T84, .(T85, T86), X177, .(T85, X178))
U3_ggaa(T62, T63, T64, X126, X127, part24_out_ggaa(T62, T64, X126, X127)) → part24_out_ggaa(T62, .(T63, T64), .(T63, X126), X127)
U18_ga(T22, T23, T24, T9, part24_out_ggaa(T22, T24, X52, X53)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U17_ga(T22, T23, T24, T9, less14_out_gg(T22, T23)) → U19_ga(T22, T23, T24, T9, part24_in_ggaa(T22, T24, T45, T46))
U19_ga(T22, T23, T24, T9, part24_out_ggaa(T22, T24, T45, T46)) → U20_ga(T22, T23, T24, T9, qs1_in_aa(.(T23, T45), X14))
qs1_in_aa([], []) → qs1_out_aa([], [])
qs1_in_aa(.(T22, .(T23, T24)), T9) → U17_aa(T22, T23, T24, T9, less14_in_aa(T22, T23))
less14_in_aa(0, s(T33)) → less14_out_aa(0, s(T33))
less14_in_aa(s(T38), s(T39)) → U1_aa(T38, T39, less14_in_aa(T38, T39))
U1_aa(T38, T39, less14_out_aa(T38, T39)) → less14_out_aa(s(T38), s(T39))
U17_aa(T22, T23, T24, T9, less14_out_aa(T22, T23)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U17_aa(T22, T23, T24, T9, less14_out_aa(T22, T23)) → U18_aa(T22, T23, T24, T9, part24_in_gaaa(T22, T24, X52, X53))
part24_in_gaaa(T62, .(T63, T64), .(T63, X126), X127) → U2_gaaa(T62, T63, T64, X126, X127, less14_in_ga(T62, T63))
less14_in_ga(0, s(T33)) → less14_out_ga(0, s(T33))
less14_in_ga(s(T38), s(T39)) → U1_ga(T38, T39, less14_in_ga(T38, T39))
U1_ga(T38, T39, less14_out_ga(T38, T39)) → less14_out_ga(s(T38), s(T39))
U2_gaaa(T62, T63, T64, X126, X127, less14_out_ga(T62, T63)) → part24_out_gaaa(T62, .(T63, T64), .(T63, X126), X127)
U2_gaaa(T62, T63, T64, X126, X127, less14_out_ga(T62, T63)) → U3_gaaa(T62, T63, T64, X126, X127, part24_in_gaaa(T62, T64, X126, X127))
part24_in_gaaa(T84, .(T85, T86), X177, .(T85, X178)) → U4_gaaa(T84, T85, T86, X177, X178, part24_in_gaaa(T84, T86, X177, X178))
part24_in_gaaa(T92, [], [], []) → part24_out_gaaa(T92, [], [], [])
U4_gaaa(T84, T85, T86, X177, X178, part24_out_gaaa(T84, T86, X177, X178)) → part24_out_gaaa(T84, .(T85, T86), X177, .(T85, X178))
U3_gaaa(T62, T63, T64, X126, X127, part24_out_gaaa(T62, T64, X126, X127)) → part24_out_gaaa(T62, .(T63, T64), .(T63, X126), X127)
U18_aa(T22, T23, T24, T9, part24_out_gaaa(T22, T24, X52, X53)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U17_aa(T22, T23, T24, T9, less14_out_aa(T22, T23)) → U19_aa(T22, T23, T24, T9, part24_in_gaaa(T22, T24, T45, T46))
U19_aa(T22, T23, T24, T9, part24_out_gaaa(T22, T24, T45, T46)) → U20_aa(T22, T23, T24, T9, qs1_in_aa(.(T23, T45), X14))
qs1_in_aa(.(T191, .(T192, T193)), T9) → U23_aa(T191, T192, T193, T9, part24_in_aaaa(T191, T193, X336, X337))
part24_in_aaaa(T62, .(T63, T64), .(T63, X126), X127) → U2_aaaa(T62, T63, T64, X126, X127, less14_in_aa(T62, T63))
U2_aaaa(T62, T63, T64, X126, X127, less14_out_aa(T62, T63)) → part24_out_aaaa(T62, .(T63, T64), .(T63, X126), X127)
U2_aaaa(T62, T63, T64, X126, X127, less14_out_aa(T62, T63)) → U3_aaaa(T62, T63, T64, X126, X127, part24_in_gaaa(T62, T64, X126, X127))
U3_aaaa(T62, T63, T64, X126, X127, part24_out_gaaa(T62, T64, X126, X127)) → part24_out_aaaa(T62, .(T63, T64), .(T63, X126), X127)
part24_in_aaaa(T84, .(T85, T86), X177, .(T85, X178)) → U4_aaaa(T84, T85, T86, X177, X178, part24_in_aaaa(T84, T86, X177, X178))
part24_in_aaaa(T92, [], [], []) → part24_out_aaaa(T92, [], [], [])
U4_aaaa(T84, T85, T86, X177, X178, part24_out_aaaa(T84, T86, X177, X178)) → part24_out_aaaa(T84, .(T85, T86), X177, .(T85, X178))
U23_aa(T191, T192, T193, T9, part24_out_aaaa(T191, T193, X336, X337)) → qs1_out_aa(.(T191, .(T192, T193)), T9)
qs1_in_aa(.(T191, .(T192, T193)), T9) → U24_aa(T191, T192, T193, T9, part24_in_aaaa(T191, T193, T197, T198))
U24_aa(T191, T192, T193, T9, part24_out_aaaa(T191, T193, T197, T198)) → U25_aa(T191, T192, T193, T9, qs42_in_aa(T197, X14))
qs42_in_aa([], []) → qs42_out_aa([], [])
qs42_in_aa(.(T103, T104), X230) → U5_aa(T103, T104, X230, part24_in_aaaa(T103, T104, X226, X227))
U5_aa(T103, T104, X230, part24_out_aaaa(T103, T104, X226, X227)) → qs42_out_aa(.(T103, T104), X230)
qs42_in_aa(.(T103, T104), X230) → U6_aa(T103, T104, X230, part24_in_aaaa(T103, T104, T108, T109))
U6_aa(T103, T104, X230, part24_out_aaaa(T103, T104, T108, T109)) → U7_aa(T103, T104, X230, qs42_in_aa(T108, X228))
U7_aa(T103, T104, X230, qs42_out_aa(T108, X228)) → qs42_out_aa(.(T103, T104), X230)
U6_aa(T103, T104, X230, part24_out_aaaa(T103, T104, T108, T109)) → U8_aa(T103, T104, X230, T109, qs42_in_aa(T108, T113))
U8_aa(T103, T104, X230, T109, qs42_out_aa(T108, T113)) → U9_aa(T103, T104, X230, qs42_in_aa(T109, X229))
U9_aa(T103, T104, X230, qs42_out_aa(T109, X229)) → qs42_out_aa(.(T103, T104), X230)
U8_aa(T103, T104, X230, T109, qs42_out_aa(T108, T113)) → U10_aa(T103, T104, X230, T113, qs42_in_aa(T109, T114))
U10_aa(T103, T104, X230, T113, qs42_out_aa(T109, T114)) → U11_aa(T103, T104, X230, app57_in_aaaa(T113, T103, T114, X230))
app57_in_aaaa([], T127, T128, .(T127, T128)) → app57_out_aaaa([], T127, T128, .(T127, T128))
app57_in_aaaa(.(T137, T138), T139, T140, .(T137, X270)) → U12_aaaa(T137, T138, T139, T140, X270, app57_in_aaaa(T138, T139, T140, X270))
U12_aaaa(T137, T138, T139, T140, X270, app57_out_aaaa(T138, T139, T140, X270)) → app57_out_aaaa(.(T137, T138), T139, T140, .(T137, X270))
U11_aa(T103, T104, X230, app57_out_aaaa(T113, T103, T114, X230)) → qs42_out_aa(.(T103, T104), X230)
U25_aa(T191, T192, T193, T9, qs42_out_aa(T197, X14)) → qs1_out_aa(.(T191, .(T192, T193)), T9)
U24_aa(T191, T192, T193, T9, part24_out_aaaa(T191, T193, T197, T198)) → U26_aa(T191, T192, T193, T9, T198, qs42_in_aa(T197, T202))
U26_aa(T191, T192, T193, T9, T198, qs42_out_aa(T197, T202)) → U27_aa(T191, T192, T193, T9, p41_in_aaaaa(.(T192, T198), X15, T202, T191, T9))
p41_in_aaaaa(T46, X15, T95, T22, T9) → U14_aaaaa(T46, X15, T95, T22, T9, qs42_in_aa(T46, X15))
U14_aaaaa(T46, X15, T95, T22, T9, qs42_out_aa(T46, X15)) → p41_out_aaaaa(T46, X15, T95, T22, T9)
p41_in_aaaaa(T46, T98, T95, T22, T9) → U15_aaaaa(T46, T98, T95, T22, T9, qs42_in_aa(T46, T98))
U15_aaaaa(T46, T98, T95, T22, T9, qs42_out_aa(T46, T98)) → U16_aaaaa(T46, T98, T95, T22, T9, app43_in_aaaa(T95, T22, T98, T9))
app43_in_aaaa([], T157, T158, .(T157, T158)) → app43_out_aaaa([], T157, T158, .(T157, T158))
app43_in_aaaa(.(T169, T170), T171, T172, .(T169, T174)) → U13_aaaa(T169, T170, T171, T172, T174, app43_in_aaaa(T170, T171, T172, T174))
U13_aaaa(T169, T170, T171, T172, T174, app43_out_aaaa(T170, T171, T172, T174)) → app43_out_aaaa(.(T169, T170), T171, T172, .(T169, T174))
U16_aaaaa(T46, T98, T95, T22, T9, app43_out_aaaa(T95, T22, T98, T9)) → p41_out_aaaaa(T46, T98, T95, T22, T9)
U27_aa(T191, T192, T193, T9, p41_out_aaaaa(.(T192, T198), X15, T202, T191, T9)) → qs1_out_aa(.(T191, .(T192, T193)), T9)
qs1_in_aa(.(T207, []), T9) → U28_aa(T207, T9, qs84_in_a(X14))
qs84_in_a([]) → qs84_out_a([])
U28_aa(T207, T9, qs84_out_a(X14)) → qs1_out_aa(.(T207, []), T9)
qs1_in_aa(.(T207, []), T9) → U29_aa(T207, T9, qs84_in_a(T210))
U29_aa(T207, T9, qs84_out_a(T210)) → U30_aa(T207, T9, qs84_in_a(X15))
U30_aa(T207, T9, qs84_out_a(X15)) → qs1_out_aa(.(T207, []), T9)
U29_aa(T207, T9, qs84_out_a(T210)) → U31_aa(T207, T9, T210, qs84_in_a(T213))
U31_aa(T207, T9, T210, qs84_out_a(T213)) → U32_aa(T207, T9, app43_in_gaga(T210, T207, T213, T9))
app43_in_gaga([], T157, T158, .(T157, T158)) → app43_out_gaga([], T157, T158, .(T157, T158))
app43_in_gaga(.(T169, T170), T171, T172, .(T169, T174)) → U13_gaga(T169, T170, T171, T172, T174, app43_in_gaga(T170, T171, T172, T174))
U13_gaga(T169, T170, T171, T172, T174, app43_out_gaga(T170, T171, T172, T174)) → app43_out_gaga(.(T169, T170), T171, T172, .(T169, T174))
U32_aa(T207, T9, app43_out_gaga(T210, T207, T213, T9)) → qs1_out_aa(.(T207, []), T9)
U20_aa(T22, T23, T24, T9, qs1_out_aa(.(T23, T45), X14)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U19_aa(T22, T23, T24, T9, part24_out_gaaa(T22, T24, T45, T46)) → U21_aa(T22, T23, T24, T9, T46, qs1_in_aa(.(T23, T45), T95))
U21_aa(T22, T23, T24, T9, T46, qs1_out_aa(.(T23, T45), T95)) → U22_aa(T22, T23, T24, T9, p41_in_aaaga(T46, X15, T95, T22, T9))
p41_in_aaaga(T46, X15, T95, T22, T9) → U14_aaaga(T46, X15, T95, T22, T9, qs42_in_aa(T46, X15))
U14_aaaga(T46, X15, T95, T22, T9, qs42_out_aa(T46, X15)) → p41_out_aaaga(T46, X15, T95, T22, T9)
p41_in_aaaga(T46, T98, T95, T22, T9) → U15_aaaga(T46, T98, T95, T22, T9, qs42_in_aa(T46, T98))
U15_aaaga(T46, T98, T95, T22, T9, qs42_out_aa(T46, T98)) → U16_aaaga(T46, T98, T95, T22, T9, app43_in_agaa(T95, T22, T98, T9))
app43_in_agaa([], T157, T158, .(T157, T158)) → app43_out_agaa([], T157, T158, .(T157, T158))
app43_in_agaa(.(T169, T170), T171, T172, .(T169, T174)) → U13_agaa(T169, T170, T171, T172, T174, app43_in_agaa(T170, T171, T172, T174))
U13_agaa(T169, T170, T171, T172, T174, app43_out_agaa(T170, T171, T172, T174)) → app43_out_agaa(.(T169, T170), T171, T172, .(T169, T174))
U16_aaaga(T46, T98, T95, T22, T9, app43_out_agaa(T95, T22, T98, T9)) → p41_out_aaaga(T46, T98, T95, T22, T9)
U22_aa(T22, T23, T24, T9, p41_out_aaaga(T46, X15, T95, T22, T9)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U20_ga(T22, T23, T24, T9, qs1_out_aa(.(T23, T45), X14)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U19_ga(T22, T23, T24, T9, part24_out_ggaa(T22, T24, T45, T46)) → U21_ga(T22, T23, T24, T9, T46, qs1_in_aa(.(T23, T45), T95))
U21_ga(T22, T23, T24, T9, T46, qs1_out_aa(.(T23, T45), T95)) → U22_ga(T22, T23, T24, T9, p41_in_aaaga(T46, X15, T95, T22, T9))
U22_ga(T22, T23, T24, T9, p41_out_aaaga(T46, X15, T95, T22, T9)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
qs1_in_ga(.(T191, .(T192, T193)), T9) → U23_ga(T191, T192, T193, T9, part24_in_ggaa(T191, T193, X336, X337))
U23_ga(T191, T192, T193, T9, part24_out_ggaa(T191, T193, X336, X337)) → qs1_out_ga(.(T191, .(T192, T193)), T9)
qs1_in_ga(.(T191, .(T192, T193)), T9) → U24_ga(T191, T192, T193, T9, part24_in_ggaa(T191, T193, T197, T198))
U24_ga(T191, T192, T193, T9, part24_out_ggaa(T191, T193, T197, T198)) → U25_ga(T191, T192, T193, T9, qs42_in_aa(T197, X14))
U25_ga(T191, T192, T193, T9, qs42_out_aa(T197, X14)) → qs1_out_ga(.(T191, .(T192, T193)), T9)
U24_ga(T191, T192, T193, T9, part24_out_ggaa(T191, T193, T197, T198)) → U26_ga(T191, T192, T193, T9, T198, qs42_in_aa(T197, T202))
U26_ga(T191, T192, T193, T9, T198, qs42_out_aa(T197, T202)) → U27_ga(T191, T192, T193, T9, p41_in_aaaga(.(T192, T198), X15, T202, T191, T9))
U27_ga(T191, T192, T193, T9, p41_out_aaaga(.(T192, T198), X15, T202, T191, T9)) → qs1_out_ga(.(T191, .(T192, T193)), T9)
qs1_in_ga(.(T207, []), T9) → U28_ga(T207, T9, qs84_in_a(X14))
U28_ga(T207, T9, qs84_out_a(X14)) → qs1_out_ga(.(T207, []), T9)
qs1_in_ga(.(T207, []), T9) → U29_ga(T207, T9, qs84_in_a(T210))
U29_ga(T207, T9, qs84_out_a(T210)) → U30_ga(T207, T9, qs84_in_a(X15))
U30_ga(T207, T9, qs84_out_a(X15)) → qs1_out_ga(.(T207, []), T9)
U29_ga(T207, T9, qs84_out_a(T210)) → U31_ga(T207, T9, T210, qs84_in_a(T213))
U31_ga(T207, T9, T210, qs84_out_a(T213)) → U32_ga(T207, T9, app43_in_ggga(T210, T207, T213, T9))
app43_in_ggga([], T157, T158, .(T157, T158)) → app43_out_ggga([], T157, T158, .(T157, T158))
app43_in_ggga(.(T169, T170), T171, T172, .(T169, T174)) → U13_ggga(T169, T170, T171, T172, T174, app43_in_ggga(T170, T171, T172, T174))
U13_ggga(T169, T170, T171, T172, T174, app43_out_ggga(T170, T171, T172, T174)) → app43_out_ggga(.(T169, T170), T171, T172, .(T169, T174))
U32_ga(T207, T9, app43_out_ggga(T210, T207, T213, T9)) → qs1_out_ga(.(T207, []), T9)
APP43_IN_AGAA(.(T169, T170), T171, T172, .(T169, T174)) → APP43_IN_AGAA(T170, T171, T172, T174)
APP43_IN_AGAA(T171) → APP43_IN_AGAA(T171)
APP43_IN_GAGA(.(T169, T170), T171, T172, .(T169, T174)) → APP43_IN_GAGA(T170, T171, T172, T174)
qs1_in_ga([], []) → qs1_out_ga([], [])
qs1_in_ga(.(T22, .(T23, T24)), T9) → U17_ga(T22, T23, T24, T9, less14_in_gg(T22, T23))
less14_in_gg(0, s(T33)) → less14_out_gg(0, s(T33))
less14_in_gg(s(T38), s(T39)) → U1_gg(T38, T39, less14_in_gg(T38, T39))
U1_gg(T38, T39, less14_out_gg(T38, T39)) → less14_out_gg(s(T38), s(T39))
U17_ga(T22, T23, T24, T9, less14_out_gg(T22, T23)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U17_ga(T22, T23, T24, T9, less14_out_gg(T22, T23)) → U18_ga(T22, T23, T24, T9, part24_in_ggaa(T22, T24, X52, X53))
part24_in_ggaa(T62, .(T63, T64), .(T63, X126), X127) → U2_ggaa(T62, T63, T64, X126, X127, less14_in_gg(T62, T63))
U2_ggaa(T62, T63, T64, X126, X127, less14_out_gg(T62, T63)) → part24_out_ggaa(T62, .(T63, T64), .(T63, X126), X127)
U2_ggaa(T62, T63, T64, X126, X127, less14_out_gg(T62, T63)) → U3_ggaa(T62, T63, T64, X126, X127, part24_in_ggaa(T62, T64, X126, X127))
part24_in_ggaa(T84, .(T85, T86), X177, .(T85, X178)) → U4_ggaa(T84, T85, T86, X177, X178, part24_in_ggaa(T84, T86, X177, X178))
part24_in_ggaa(T92, [], [], []) → part24_out_ggaa(T92, [], [], [])
U4_ggaa(T84, T85, T86, X177, X178, part24_out_ggaa(T84, T86, X177, X178)) → part24_out_ggaa(T84, .(T85, T86), X177, .(T85, X178))
U3_ggaa(T62, T63, T64, X126, X127, part24_out_ggaa(T62, T64, X126, X127)) → part24_out_ggaa(T62, .(T63, T64), .(T63, X126), X127)
U18_ga(T22, T23, T24, T9, part24_out_ggaa(T22, T24, X52, X53)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U17_ga(T22, T23, T24, T9, less14_out_gg(T22, T23)) → U19_ga(T22, T23, T24, T9, part24_in_ggaa(T22, T24, T45, T46))
U19_ga(T22, T23, T24, T9, part24_out_ggaa(T22, T24, T45, T46)) → U20_ga(T22, T23, T24, T9, qs1_in_aa(.(T23, T45), X14))
qs1_in_aa([], []) → qs1_out_aa([], [])
qs1_in_aa(.(T22, .(T23, T24)), T9) → U17_aa(T22, T23, T24, T9, less14_in_aa(T22, T23))
less14_in_aa(0, s(T33)) → less14_out_aa(0, s(T33))
less14_in_aa(s(T38), s(T39)) → U1_aa(T38, T39, less14_in_aa(T38, T39))
U1_aa(T38, T39, less14_out_aa(T38, T39)) → less14_out_aa(s(T38), s(T39))
U17_aa(T22, T23, T24, T9, less14_out_aa(T22, T23)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U17_aa(T22, T23, T24, T9, less14_out_aa(T22, T23)) → U18_aa(T22, T23, T24, T9, part24_in_gaaa(T22, T24, X52, X53))
part24_in_gaaa(T62, .(T63, T64), .(T63, X126), X127) → U2_gaaa(T62, T63, T64, X126, X127, less14_in_ga(T62, T63))
less14_in_ga(0, s(T33)) → less14_out_ga(0, s(T33))
less14_in_ga(s(T38), s(T39)) → U1_ga(T38, T39, less14_in_ga(T38, T39))
U1_ga(T38, T39, less14_out_ga(T38, T39)) → less14_out_ga(s(T38), s(T39))
U2_gaaa(T62, T63, T64, X126, X127, less14_out_ga(T62, T63)) → part24_out_gaaa(T62, .(T63, T64), .(T63, X126), X127)
U2_gaaa(T62, T63, T64, X126, X127, less14_out_ga(T62, T63)) → U3_gaaa(T62, T63, T64, X126, X127, part24_in_gaaa(T62, T64, X126, X127))
part24_in_gaaa(T84, .(T85, T86), X177, .(T85, X178)) → U4_gaaa(T84, T85, T86, X177, X178, part24_in_gaaa(T84, T86, X177, X178))
part24_in_gaaa(T92, [], [], []) → part24_out_gaaa(T92, [], [], [])
U4_gaaa(T84, T85, T86, X177, X178, part24_out_gaaa(T84, T86, X177, X178)) → part24_out_gaaa(T84, .(T85, T86), X177, .(T85, X178))
U3_gaaa(T62, T63, T64, X126, X127, part24_out_gaaa(T62, T64, X126, X127)) → part24_out_gaaa(T62, .(T63, T64), .(T63, X126), X127)
U18_aa(T22, T23, T24, T9, part24_out_gaaa(T22, T24, X52, X53)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U17_aa(T22, T23, T24, T9, less14_out_aa(T22, T23)) → U19_aa(T22, T23, T24, T9, part24_in_gaaa(T22, T24, T45, T46))
U19_aa(T22, T23, T24, T9, part24_out_gaaa(T22, T24, T45, T46)) → U20_aa(T22, T23, T24, T9, qs1_in_aa(.(T23, T45), X14))
qs1_in_aa(.(T191, .(T192, T193)), T9) → U23_aa(T191, T192, T193, T9, part24_in_aaaa(T191, T193, X336, X337))
part24_in_aaaa(T62, .(T63, T64), .(T63, X126), X127) → U2_aaaa(T62, T63, T64, X126, X127, less14_in_aa(T62, T63))
U2_aaaa(T62, T63, T64, X126, X127, less14_out_aa(T62, T63)) → part24_out_aaaa(T62, .(T63, T64), .(T63, X126), X127)
U2_aaaa(T62, T63, T64, X126, X127, less14_out_aa(T62, T63)) → U3_aaaa(T62, T63, T64, X126, X127, part24_in_gaaa(T62, T64, X126, X127))
U3_aaaa(T62, T63, T64, X126, X127, part24_out_gaaa(T62, T64, X126, X127)) → part24_out_aaaa(T62, .(T63, T64), .(T63, X126), X127)
part24_in_aaaa(T84, .(T85, T86), X177, .(T85, X178)) → U4_aaaa(T84, T85, T86, X177, X178, part24_in_aaaa(T84, T86, X177, X178))
part24_in_aaaa(T92, [], [], []) → part24_out_aaaa(T92, [], [], [])
U4_aaaa(T84, T85, T86, X177, X178, part24_out_aaaa(T84, T86, X177, X178)) → part24_out_aaaa(T84, .(T85, T86), X177, .(T85, X178))
U23_aa(T191, T192, T193, T9, part24_out_aaaa(T191, T193, X336, X337)) → qs1_out_aa(.(T191, .(T192, T193)), T9)
qs1_in_aa(.(T191, .(T192, T193)), T9) → U24_aa(T191, T192, T193, T9, part24_in_aaaa(T191, T193, T197, T198))
U24_aa(T191, T192, T193, T9, part24_out_aaaa(T191, T193, T197, T198)) → U25_aa(T191, T192, T193, T9, qs42_in_aa(T197, X14))
qs42_in_aa([], []) → qs42_out_aa([], [])
qs42_in_aa(.(T103, T104), X230) → U5_aa(T103, T104, X230, part24_in_aaaa(T103, T104, X226, X227))
U5_aa(T103, T104, X230, part24_out_aaaa(T103, T104, X226, X227)) → qs42_out_aa(.(T103, T104), X230)
qs42_in_aa(.(T103, T104), X230) → U6_aa(T103, T104, X230, part24_in_aaaa(T103, T104, T108, T109))
U6_aa(T103, T104, X230, part24_out_aaaa(T103, T104, T108, T109)) → U7_aa(T103, T104, X230, qs42_in_aa(T108, X228))
U7_aa(T103, T104, X230, qs42_out_aa(T108, X228)) → qs42_out_aa(.(T103, T104), X230)
U6_aa(T103, T104, X230, part24_out_aaaa(T103, T104, T108, T109)) → U8_aa(T103, T104, X230, T109, qs42_in_aa(T108, T113))
U8_aa(T103, T104, X230, T109, qs42_out_aa(T108, T113)) → U9_aa(T103, T104, X230, qs42_in_aa(T109, X229))
U9_aa(T103, T104, X230, qs42_out_aa(T109, X229)) → qs42_out_aa(.(T103, T104), X230)
U8_aa(T103, T104, X230, T109, qs42_out_aa(T108, T113)) → U10_aa(T103, T104, X230, T113, qs42_in_aa(T109, T114))
U10_aa(T103, T104, X230, T113, qs42_out_aa(T109, T114)) → U11_aa(T103, T104, X230, app57_in_aaaa(T113, T103, T114, X230))
app57_in_aaaa([], T127, T128, .(T127, T128)) → app57_out_aaaa([], T127, T128, .(T127, T128))
app57_in_aaaa(.(T137, T138), T139, T140, .(T137, X270)) → U12_aaaa(T137, T138, T139, T140, X270, app57_in_aaaa(T138, T139, T140, X270))
U12_aaaa(T137, T138, T139, T140, X270, app57_out_aaaa(T138, T139, T140, X270)) → app57_out_aaaa(.(T137, T138), T139, T140, .(T137, X270))
U11_aa(T103, T104, X230, app57_out_aaaa(T113, T103, T114, X230)) → qs42_out_aa(.(T103, T104), X230)
U25_aa(T191, T192, T193, T9, qs42_out_aa(T197, X14)) → qs1_out_aa(.(T191, .(T192, T193)), T9)
U24_aa(T191, T192, T193, T9, part24_out_aaaa(T191, T193, T197, T198)) → U26_aa(T191, T192, T193, T9, T198, qs42_in_aa(T197, T202))
U26_aa(T191, T192, T193, T9, T198, qs42_out_aa(T197, T202)) → U27_aa(T191, T192, T193, T9, p41_in_aaaaa(.(T192, T198), X15, T202, T191, T9))
p41_in_aaaaa(T46, X15, T95, T22, T9) → U14_aaaaa(T46, X15, T95, T22, T9, qs42_in_aa(T46, X15))
U14_aaaaa(T46, X15, T95, T22, T9, qs42_out_aa(T46, X15)) → p41_out_aaaaa(T46, X15, T95, T22, T9)
p41_in_aaaaa(T46, T98, T95, T22, T9) → U15_aaaaa(T46, T98, T95, T22, T9, qs42_in_aa(T46, T98))
U15_aaaaa(T46, T98, T95, T22, T9, qs42_out_aa(T46, T98)) → U16_aaaaa(T46, T98, T95, T22, T9, app43_in_aaaa(T95, T22, T98, T9))
app43_in_aaaa([], T157, T158, .(T157, T158)) → app43_out_aaaa([], T157, T158, .(T157, T158))
app43_in_aaaa(.(T169, T170), T171, T172, .(T169, T174)) → U13_aaaa(T169, T170, T171, T172, T174, app43_in_aaaa(T170, T171, T172, T174))
U13_aaaa(T169, T170, T171, T172, T174, app43_out_aaaa(T170, T171, T172, T174)) → app43_out_aaaa(.(T169, T170), T171, T172, .(T169, T174))
U16_aaaaa(T46, T98, T95, T22, T9, app43_out_aaaa(T95, T22, T98, T9)) → p41_out_aaaaa(T46, T98, T95, T22, T9)
U27_aa(T191, T192, T193, T9, p41_out_aaaaa(.(T192, T198), X15, T202, T191, T9)) → qs1_out_aa(.(T191, .(T192, T193)), T9)
qs1_in_aa(.(T207, []), T9) → U28_aa(T207, T9, qs84_in_a(X14))
qs84_in_a([]) → qs84_out_a([])
U28_aa(T207, T9, qs84_out_a(X14)) → qs1_out_aa(.(T207, []), T9)
qs1_in_aa(.(T207, []), T9) → U29_aa(T207, T9, qs84_in_a(T210))
U29_aa(T207, T9, qs84_out_a(T210)) → U30_aa(T207, T9, qs84_in_a(X15))
U30_aa(T207, T9, qs84_out_a(X15)) → qs1_out_aa(.(T207, []), T9)
U29_aa(T207, T9, qs84_out_a(T210)) → U31_aa(T207, T9, T210, qs84_in_a(T213))
U31_aa(T207, T9, T210, qs84_out_a(T213)) → U32_aa(T207, T9, app43_in_gaga(T210, T207, T213, T9))
app43_in_gaga([], T157, T158, .(T157, T158)) → app43_out_gaga([], T157, T158, .(T157, T158))
app43_in_gaga(.(T169, T170), T171, T172, .(T169, T174)) → U13_gaga(T169, T170, T171, T172, T174, app43_in_gaga(T170, T171, T172, T174))
U13_gaga(T169, T170, T171, T172, T174, app43_out_gaga(T170, T171, T172, T174)) → app43_out_gaga(.(T169, T170), T171, T172, .(T169, T174))
U32_aa(T207, T9, app43_out_gaga(T210, T207, T213, T9)) → qs1_out_aa(.(T207, []), T9)
U20_aa(T22, T23, T24, T9, qs1_out_aa(.(T23, T45), X14)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U19_aa(T22, T23, T24, T9, part24_out_gaaa(T22, T24, T45, T46)) → U21_aa(T22, T23, T24, T9, T46, qs1_in_aa(.(T23, T45), T95))
U21_aa(T22, T23, T24, T9, T46, qs1_out_aa(.(T23, T45), T95)) → U22_aa(T22, T23, T24, T9, p41_in_aaaga(T46, X15, T95, T22, T9))
p41_in_aaaga(T46, X15, T95, T22, T9) → U14_aaaga(T46, X15, T95, T22, T9, qs42_in_aa(T46, X15))
U14_aaaga(T46, X15, T95, T22, T9, qs42_out_aa(T46, X15)) → p41_out_aaaga(T46, X15, T95, T22, T9)
p41_in_aaaga(T46, T98, T95, T22, T9) → U15_aaaga(T46, T98, T95, T22, T9, qs42_in_aa(T46, T98))
U15_aaaga(T46, T98, T95, T22, T9, qs42_out_aa(T46, T98)) → U16_aaaga(T46, T98, T95, T22, T9, app43_in_agaa(T95, T22, T98, T9))
app43_in_agaa([], T157, T158, .(T157, T158)) → app43_out_agaa([], T157, T158, .(T157, T158))
app43_in_agaa(.(T169, T170), T171, T172, .(T169, T174)) → U13_agaa(T169, T170, T171, T172, T174, app43_in_agaa(T170, T171, T172, T174))
U13_agaa(T169, T170, T171, T172, T174, app43_out_agaa(T170, T171, T172, T174)) → app43_out_agaa(.(T169, T170), T171, T172, .(T169, T174))
U16_aaaga(T46, T98, T95, T22, T9, app43_out_agaa(T95, T22, T98, T9)) → p41_out_aaaga(T46, T98, T95, T22, T9)
U22_aa(T22, T23, T24, T9, p41_out_aaaga(T46, X15, T95, T22, T9)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U20_ga(T22, T23, T24, T9, qs1_out_aa(.(T23, T45), X14)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U19_ga(T22, T23, T24, T9, part24_out_ggaa(T22, T24, T45, T46)) → U21_ga(T22, T23, T24, T9, T46, qs1_in_aa(.(T23, T45), T95))
U21_ga(T22, T23, T24, T9, T46, qs1_out_aa(.(T23, T45), T95)) → U22_ga(T22, T23, T24, T9, p41_in_aaaga(T46, X15, T95, T22, T9))
U22_ga(T22, T23, T24, T9, p41_out_aaaga(T46, X15, T95, T22, T9)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
qs1_in_ga(.(T191, .(T192, T193)), T9) → U23_ga(T191, T192, T193, T9, part24_in_ggaa(T191, T193, X336, X337))
U23_ga(T191, T192, T193, T9, part24_out_ggaa(T191, T193, X336, X337)) → qs1_out_ga(.(T191, .(T192, T193)), T9)
qs1_in_ga(.(T191, .(T192, T193)), T9) → U24_ga(T191, T192, T193, T9, part24_in_ggaa(T191, T193, T197, T198))
U24_ga(T191, T192, T193, T9, part24_out_ggaa(T191, T193, T197, T198)) → U25_ga(T191, T192, T193, T9, qs42_in_aa(T197, X14))
U25_ga(T191, T192, T193, T9, qs42_out_aa(T197, X14)) → qs1_out_ga(.(T191, .(T192, T193)), T9)
U24_ga(T191, T192, T193, T9, part24_out_ggaa(T191, T193, T197, T198)) → U26_ga(T191, T192, T193, T9, T198, qs42_in_aa(T197, T202))
U26_ga(T191, T192, T193, T9, T198, qs42_out_aa(T197, T202)) → U27_ga(T191, T192, T193, T9, p41_in_aaaga(.(T192, T198), X15, T202, T191, T9))
U27_ga(T191, T192, T193, T9, p41_out_aaaga(.(T192, T198), X15, T202, T191, T9)) → qs1_out_ga(.(T191, .(T192, T193)), T9)
qs1_in_ga(.(T207, []), T9) → U28_ga(T207, T9, qs84_in_a(X14))
U28_ga(T207, T9, qs84_out_a(X14)) → qs1_out_ga(.(T207, []), T9)
qs1_in_ga(.(T207, []), T9) → U29_ga(T207, T9, qs84_in_a(T210))
U29_ga(T207, T9, qs84_out_a(T210)) → U30_ga(T207, T9, qs84_in_a(X15))
U30_ga(T207, T9, qs84_out_a(X15)) → qs1_out_ga(.(T207, []), T9)
U29_ga(T207, T9, qs84_out_a(T210)) → U31_ga(T207, T9, T210, qs84_in_a(T213))
U31_ga(T207, T9, T210, qs84_out_a(T213)) → U32_ga(T207, T9, app43_in_ggga(T210, T207, T213, T9))
app43_in_ggga([], T157, T158, .(T157, T158)) → app43_out_ggga([], T157, T158, .(T157, T158))
app43_in_ggga(.(T169, T170), T171, T172, .(T169, T174)) → U13_ggga(T169, T170, T171, T172, T174, app43_in_ggga(T170, T171, T172, T174))
U13_ggga(T169, T170, T171, T172, T174, app43_out_ggga(T170, T171, T172, T174)) → app43_out_ggga(.(T169, T170), T171, T172, .(T169, T174))
U32_ga(T207, T9, app43_out_ggga(T210, T207, T213, T9)) → qs1_out_ga(.(T207, []), T9)
APP43_IN_GAGA(.(T169, T170), T171, T172, .(T169, T174)) → APP43_IN_GAGA(T170, T171, T172, T174)
APP43_IN_GAGA(.(T169, T170), T172) → APP43_IN_GAGA(T170, T172)
From the DPs we obtained the following set of size-change graphs:
APP43_IN_AAAA(.(T169, T170), T171, T172, .(T169, T174)) → APP43_IN_AAAA(T170, T171, T172, T174)
qs1_in_ga([], []) → qs1_out_ga([], [])
qs1_in_ga(.(T22, .(T23, T24)), T9) → U17_ga(T22, T23, T24, T9, less14_in_gg(T22, T23))
less14_in_gg(0, s(T33)) → less14_out_gg(0, s(T33))
less14_in_gg(s(T38), s(T39)) → U1_gg(T38, T39, less14_in_gg(T38, T39))
U1_gg(T38, T39, less14_out_gg(T38, T39)) → less14_out_gg(s(T38), s(T39))
U17_ga(T22, T23, T24, T9, less14_out_gg(T22, T23)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U17_ga(T22, T23, T24, T9, less14_out_gg(T22, T23)) → U18_ga(T22, T23, T24, T9, part24_in_ggaa(T22, T24, X52, X53))
part24_in_ggaa(T62, .(T63, T64), .(T63, X126), X127) → U2_ggaa(T62, T63, T64, X126, X127, less14_in_gg(T62, T63))
U2_ggaa(T62, T63, T64, X126, X127, less14_out_gg(T62, T63)) → part24_out_ggaa(T62, .(T63, T64), .(T63, X126), X127)
U2_ggaa(T62, T63, T64, X126, X127, less14_out_gg(T62, T63)) → U3_ggaa(T62, T63, T64, X126, X127, part24_in_ggaa(T62, T64, X126, X127))
part24_in_ggaa(T84, .(T85, T86), X177, .(T85, X178)) → U4_ggaa(T84, T85, T86, X177, X178, part24_in_ggaa(T84, T86, X177, X178))
part24_in_ggaa(T92, [], [], []) → part24_out_ggaa(T92, [], [], [])
U4_ggaa(T84, T85, T86, X177, X178, part24_out_ggaa(T84, T86, X177, X178)) → part24_out_ggaa(T84, .(T85, T86), X177, .(T85, X178))
U3_ggaa(T62, T63, T64, X126, X127, part24_out_ggaa(T62, T64, X126, X127)) → part24_out_ggaa(T62, .(T63, T64), .(T63, X126), X127)
U18_ga(T22, T23, T24, T9, part24_out_ggaa(T22, T24, X52, X53)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U17_ga(T22, T23, T24, T9, less14_out_gg(T22, T23)) → U19_ga(T22, T23, T24, T9, part24_in_ggaa(T22, T24, T45, T46))
U19_ga(T22, T23, T24, T9, part24_out_ggaa(T22, T24, T45, T46)) → U20_ga(T22, T23, T24, T9, qs1_in_aa(.(T23, T45), X14))
qs1_in_aa([], []) → qs1_out_aa([], [])
qs1_in_aa(.(T22, .(T23, T24)), T9) → U17_aa(T22, T23, T24, T9, less14_in_aa(T22, T23))
less14_in_aa(0, s(T33)) → less14_out_aa(0, s(T33))
less14_in_aa(s(T38), s(T39)) → U1_aa(T38, T39, less14_in_aa(T38, T39))
U1_aa(T38, T39, less14_out_aa(T38, T39)) → less14_out_aa(s(T38), s(T39))
U17_aa(T22, T23, T24, T9, less14_out_aa(T22, T23)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U17_aa(T22, T23, T24, T9, less14_out_aa(T22, T23)) → U18_aa(T22, T23, T24, T9, part24_in_gaaa(T22, T24, X52, X53))
part24_in_gaaa(T62, .(T63, T64), .(T63, X126), X127) → U2_gaaa(T62, T63, T64, X126, X127, less14_in_ga(T62, T63))
less14_in_ga(0, s(T33)) → less14_out_ga(0, s(T33))
less14_in_ga(s(T38), s(T39)) → U1_ga(T38, T39, less14_in_ga(T38, T39))
U1_ga(T38, T39, less14_out_ga(T38, T39)) → less14_out_ga(s(T38), s(T39))
U2_gaaa(T62, T63, T64, X126, X127, less14_out_ga(T62, T63)) → part24_out_gaaa(T62, .(T63, T64), .(T63, X126), X127)
U2_gaaa(T62, T63, T64, X126, X127, less14_out_ga(T62, T63)) → U3_gaaa(T62, T63, T64, X126, X127, part24_in_gaaa(T62, T64, X126, X127))
part24_in_gaaa(T84, .(T85, T86), X177, .(T85, X178)) → U4_gaaa(T84, T85, T86, X177, X178, part24_in_gaaa(T84, T86, X177, X178))
part24_in_gaaa(T92, [], [], []) → part24_out_gaaa(T92, [], [], [])
U4_gaaa(T84, T85, T86, X177, X178, part24_out_gaaa(T84, T86, X177, X178)) → part24_out_gaaa(T84, .(T85, T86), X177, .(T85, X178))
U3_gaaa(T62, T63, T64, X126, X127, part24_out_gaaa(T62, T64, X126, X127)) → part24_out_gaaa(T62, .(T63, T64), .(T63, X126), X127)
U18_aa(T22, T23, T24, T9, part24_out_gaaa(T22, T24, X52, X53)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U17_aa(T22, T23, T24, T9, less14_out_aa(T22, T23)) → U19_aa(T22, T23, T24, T9, part24_in_gaaa(T22, T24, T45, T46))
U19_aa(T22, T23, T24, T9, part24_out_gaaa(T22, T24, T45, T46)) → U20_aa(T22, T23, T24, T9, qs1_in_aa(.(T23, T45), X14))
qs1_in_aa(.(T191, .(T192, T193)), T9) → U23_aa(T191, T192, T193, T9, part24_in_aaaa(T191, T193, X336, X337))
part24_in_aaaa(T62, .(T63, T64), .(T63, X126), X127) → U2_aaaa(T62, T63, T64, X126, X127, less14_in_aa(T62, T63))
U2_aaaa(T62, T63, T64, X126, X127, less14_out_aa(T62, T63)) → part24_out_aaaa(T62, .(T63, T64), .(T63, X126), X127)
U2_aaaa(T62, T63, T64, X126, X127, less14_out_aa(T62, T63)) → U3_aaaa(T62, T63, T64, X126, X127, part24_in_gaaa(T62, T64, X126, X127))
U3_aaaa(T62, T63, T64, X126, X127, part24_out_gaaa(T62, T64, X126, X127)) → part24_out_aaaa(T62, .(T63, T64), .(T63, X126), X127)
part24_in_aaaa(T84, .(T85, T86), X177, .(T85, X178)) → U4_aaaa(T84, T85, T86, X177, X178, part24_in_aaaa(T84, T86, X177, X178))
part24_in_aaaa(T92, [], [], []) → part24_out_aaaa(T92, [], [], [])
U4_aaaa(T84, T85, T86, X177, X178, part24_out_aaaa(T84, T86, X177, X178)) → part24_out_aaaa(T84, .(T85, T86), X177, .(T85, X178))
U23_aa(T191, T192, T193, T9, part24_out_aaaa(T191, T193, X336, X337)) → qs1_out_aa(.(T191, .(T192, T193)), T9)
qs1_in_aa(.(T191, .(T192, T193)), T9) → U24_aa(T191, T192, T193, T9, part24_in_aaaa(T191, T193, T197, T198))
U24_aa(T191, T192, T193, T9, part24_out_aaaa(T191, T193, T197, T198)) → U25_aa(T191, T192, T193, T9, qs42_in_aa(T197, X14))
qs42_in_aa([], []) → qs42_out_aa([], [])
qs42_in_aa(.(T103, T104), X230) → U5_aa(T103, T104, X230, part24_in_aaaa(T103, T104, X226, X227))
U5_aa(T103, T104, X230, part24_out_aaaa(T103, T104, X226, X227)) → qs42_out_aa(.(T103, T104), X230)
qs42_in_aa(.(T103, T104), X230) → U6_aa(T103, T104, X230, part24_in_aaaa(T103, T104, T108, T109))
U6_aa(T103, T104, X230, part24_out_aaaa(T103, T104, T108, T109)) → U7_aa(T103, T104, X230, qs42_in_aa(T108, X228))
U7_aa(T103, T104, X230, qs42_out_aa(T108, X228)) → qs42_out_aa(.(T103, T104), X230)
U6_aa(T103, T104, X230, part24_out_aaaa(T103, T104, T108, T109)) → U8_aa(T103, T104, X230, T109, qs42_in_aa(T108, T113))
U8_aa(T103, T104, X230, T109, qs42_out_aa(T108, T113)) → U9_aa(T103, T104, X230, qs42_in_aa(T109, X229))
U9_aa(T103, T104, X230, qs42_out_aa(T109, X229)) → qs42_out_aa(.(T103, T104), X230)
U8_aa(T103, T104, X230, T109, qs42_out_aa(T108, T113)) → U10_aa(T103, T104, X230, T113, qs42_in_aa(T109, T114))
U10_aa(T103, T104, X230, T113, qs42_out_aa(T109, T114)) → U11_aa(T103, T104, X230, app57_in_aaaa(T113, T103, T114, X230))
app57_in_aaaa([], T127, T128, .(T127, T128)) → app57_out_aaaa([], T127, T128, .(T127, T128))
app57_in_aaaa(.(T137, T138), T139, T140, .(T137, X270)) → U12_aaaa(T137, T138, T139, T140, X270, app57_in_aaaa(T138, T139, T140, X270))
U12_aaaa(T137, T138, T139, T140, X270, app57_out_aaaa(T138, T139, T140, X270)) → app57_out_aaaa(.(T137, T138), T139, T140, .(T137, X270))
U11_aa(T103, T104, X230, app57_out_aaaa(T113, T103, T114, X230)) → qs42_out_aa(.(T103, T104), X230)
U25_aa(T191, T192, T193, T9, qs42_out_aa(T197, X14)) → qs1_out_aa(.(T191, .(T192, T193)), T9)
U24_aa(T191, T192, T193, T9, part24_out_aaaa(T191, T193, T197, T198)) → U26_aa(T191, T192, T193, T9, T198, qs42_in_aa(T197, T202))
U26_aa(T191, T192, T193, T9, T198, qs42_out_aa(T197, T202)) → U27_aa(T191, T192, T193, T9, p41_in_aaaaa(.(T192, T198), X15, T202, T191, T9))
p41_in_aaaaa(T46, X15, T95, T22, T9) → U14_aaaaa(T46, X15, T95, T22, T9, qs42_in_aa(T46, X15))
U14_aaaaa(T46, X15, T95, T22, T9, qs42_out_aa(T46, X15)) → p41_out_aaaaa(T46, X15, T95, T22, T9)
p41_in_aaaaa(T46, T98, T95, T22, T9) → U15_aaaaa(T46, T98, T95, T22, T9, qs42_in_aa(T46, T98))
U15_aaaaa(T46, T98, T95, T22, T9, qs42_out_aa(T46, T98)) → U16_aaaaa(T46, T98, T95, T22, T9, app43_in_aaaa(T95, T22, T98, T9))
app43_in_aaaa([], T157, T158, .(T157, T158)) → app43_out_aaaa([], T157, T158, .(T157, T158))
app43_in_aaaa(.(T169, T170), T171, T172, .(T169, T174)) → U13_aaaa(T169, T170, T171, T172, T174, app43_in_aaaa(T170, T171, T172, T174))
U13_aaaa(T169, T170, T171, T172, T174, app43_out_aaaa(T170, T171, T172, T174)) → app43_out_aaaa(.(T169, T170), T171, T172, .(T169, T174))
U16_aaaaa(T46, T98, T95, T22, T9, app43_out_aaaa(T95, T22, T98, T9)) → p41_out_aaaaa(T46, T98, T95, T22, T9)
U27_aa(T191, T192, T193, T9, p41_out_aaaaa(.(T192, T198), X15, T202, T191, T9)) → qs1_out_aa(.(T191, .(T192, T193)), T9)
qs1_in_aa(.(T207, []), T9) → U28_aa(T207, T9, qs84_in_a(X14))
qs84_in_a([]) → qs84_out_a([])
U28_aa(T207, T9, qs84_out_a(X14)) → qs1_out_aa(.(T207, []), T9)
qs1_in_aa(.(T207, []), T9) → U29_aa(T207, T9, qs84_in_a(T210))
U29_aa(T207, T9, qs84_out_a(T210)) → U30_aa(T207, T9, qs84_in_a(X15))
U30_aa(T207, T9, qs84_out_a(X15)) → qs1_out_aa(.(T207, []), T9)
U29_aa(T207, T9, qs84_out_a(T210)) → U31_aa(T207, T9, T210, qs84_in_a(T213))
U31_aa(T207, T9, T210, qs84_out_a(T213)) → U32_aa(T207, T9, app43_in_gaga(T210, T207, T213, T9))
app43_in_gaga([], T157, T158, .(T157, T158)) → app43_out_gaga([], T157, T158, .(T157, T158))
app43_in_gaga(.(T169, T170), T171, T172, .(T169, T174)) → U13_gaga(T169, T170, T171, T172, T174, app43_in_gaga(T170, T171, T172, T174))
U13_gaga(T169, T170, T171, T172, T174, app43_out_gaga(T170, T171, T172, T174)) → app43_out_gaga(.(T169, T170), T171, T172, .(T169, T174))
U32_aa(T207, T9, app43_out_gaga(T210, T207, T213, T9)) → qs1_out_aa(.(T207, []), T9)
U20_aa(T22, T23, T24, T9, qs1_out_aa(.(T23, T45), X14)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U19_aa(T22, T23, T24, T9, part24_out_gaaa(T22, T24, T45, T46)) → U21_aa(T22, T23, T24, T9, T46, qs1_in_aa(.(T23, T45), T95))
U21_aa(T22, T23, T24, T9, T46, qs1_out_aa(.(T23, T45), T95)) → U22_aa(T22, T23, T24, T9, p41_in_aaaga(T46, X15, T95, T22, T9))
p41_in_aaaga(T46, X15, T95, T22, T9) → U14_aaaga(T46, X15, T95, T22, T9, qs42_in_aa(T46, X15))
U14_aaaga(T46, X15, T95, T22, T9, qs42_out_aa(T46, X15)) → p41_out_aaaga(T46, X15, T95, T22, T9)
p41_in_aaaga(T46, T98, T95, T22, T9) → U15_aaaga(T46, T98, T95, T22, T9, qs42_in_aa(T46, T98))
U15_aaaga(T46, T98, T95, T22, T9, qs42_out_aa(T46, T98)) → U16_aaaga(T46, T98, T95, T22, T9, app43_in_agaa(T95, T22, T98, T9))
app43_in_agaa([], T157, T158, .(T157, T158)) → app43_out_agaa([], T157, T158, .(T157, T158))
app43_in_agaa(.(T169, T170), T171, T172, .(T169, T174)) → U13_agaa(T169, T170, T171, T172, T174, app43_in_agaa(T170, T171, T172, T174))
U13_agaa(T169, T170, T171, T172, T174, app43_out_agaa(T170, T171, T172, T174)) → app43_out_agaa(.(T169, T170), T171, T172, .(T169, T174))
U16_aaaga(T46, T98, T95, T22, T9, app43_out_agaa(T95, T22, T98, T9)) → p41_out_aaaga(T46, T98, T95, T22, T9)
U22_aa(T22, T23, T24, T9, p41_out_aaaga(T46, X15, T95, T22, T9)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U20_ga(T22, T23, T24, T9, qs1_out_aa(.(T23, T45), X14)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U19_ga(T22, T23, T24, T9, part24_out_ggaa(T22, T24, T45, T46)) → U21_ga(T22, T23, T24, T9, T46, qs1_in_aa(.(T23, T45), T95))
U21_ga(T22, T23, T24, T9, T46, qs1_out_aa(.(T23, T45), T95)) → U22_ga(T22, T23, T24, T9, p41_in_aaaga(T46, X15, T95, T22, T9))
U22_ga(T22, T23, T24, T9, p41_out_aaaga(T46, X15, T95, T22, T9)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
qs1_in_ga(.(T191, .(T192, T193)), T9) → U23_ga(T191, T192, T193, T9, part24_in_ggaa(T191, T193, X336, X337))
U23_ga(T191, T192, T193, T9, part24_out_ggaa(T191, T193, X336, X337)) → qs1_out_ga(.(T191, .(T192, T193)), T9)
qs1_in_ga(.(T191, .(T192, T193)), T9) → U24_ga(T191, T192, T193, T9, part24_in_ggaa(T191, T193, T197, T198))
U24_ga(T191, T192, T193, T9, part24_out_ggaa(T191, T193, T197, T198)) → U25_ga(T191, T192, T193, T9, qs42_in_aa(T197, X14))
U25_ga(T191, T192, T193, T9, qs42_out_aa(T197, X14)) → qs1_out_ga(.(T191, .(T192, T193)), T9)
U24_ga(T191, T192, T193, T9, part24_out_ggaa(T191, T193, T197, T198)) → U26_ga(T191, T192, T193, T9, T198, qs42_in_aa(T197, T202))
U26_ga(T191, T192, T193, T9, T198, qs42_out_aa(T197, T202)) → U27_ga(T191, T192, T193, T9, p41_in_aaaga(.(T192, T198), X15, T202, T191, T9))
U27_ga(T191, T192, T193, T9, p41_out_aaaga(.(T192, T198), X15, T202, T191, T9)) → qs1_out_ga(.(T191, .(T192, T193)), T9)
qs1_in_ga(.(T207, []), T9) → U28_ga(T207, T9, qs84_in_a(X14))
U28_ga(T207, T9, qs84_out_a(X14)) → qs1_out_ga(.(T207, []), T9)
qs1_in_ga(.(T207, []), T9) → U29_ga(T207, T9, qs84_in_a(T210))
U29_ga(T207, T9, qs84_out_a(T210)) → U30_ga(T207, T9, qs84_in_a(X15))
U30_ga(T207, T9, qs84_out_a(X15)) → qs1_out_ga(.(T207, []), T9)
U29_ga(T207, T9, qs84_out_a(T210)) → U31_ga(T207, T9, T210, qs84_in_a(T213))
U31_ga(T207, T9, T210, qs84_out_a(T213)) → U32_ga(T207, T9, app43_in_ggga(T210, T207, T213, T9))
app43_in_ggga([], T157, T158, .(T157, T158)) → app43_out_ggga([], T157, T158, .(T157, T158))
app43_in_ggga(.(T169, T170), T171, T172, .(T169, T174)) → U13_ggga(T169, T170, T171, T172, T174, app43_in_ggga(T170, T171, T172, T174))
U13_ggga(T169, T170, T171, T172, T174, app43_out_ggga(T170, T171, T172, T174)) → app43_out_ggga(.(T169, T170), T171, T172, .(T169, T174))
U32_ga(T207, T9, app43_out_ggga(T210, T207, T213, T9)) → qs1_out_ga(.(T207, []), T9)
APP43_IN_AAAA(.(T169, T170), T171, T172, .(T169, T174)) → APP43_IN_AAAA(T170, T171, T172, T174)
APP43_IN_AAAA → APP43_IN_AAAA
APP57_IN_AAAA(.(T137, T138), T139, T140, .(T137, X270)) → APP57_IN_AAAA(T138, T139, T140, X270)
qs1_in_ga([], []) → qs1_out_ga([], [])
qs1_in_ga(.(T22, .(T23, T24)), T9) → U17_ga(T22, T23, T24, T9, less14_in_gg(T22, T23))
less14_in_gg(0, s(T33)) → less14_out_gg(0, s(T33))
less14_in_gg(s(T38), s(T39)) → U1_gg(T38, T39, less14_in_gg(T38, T39))
U1_gg(T38, T39, less14_out_gg(T38, T39)) → less14_out_gg(s(T38), s(T39))
U17_ga(T22, T23, T24, T9, less14_out_gg(T22, T23)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U17_ga(T22, T23, T24, T9, less14_out_gg(T22, T23)) → U18_ga(T22, T23, T24, T9, part24_in_ggaa(T22, T24, X52, X53))
part24_in_ggaa(T62, .(T63, T64), .(T63, X126), X127) → U2_ggaa(T62, T63, T64, X126, X127, less14_in_gg(T62, T63))
U2_ggaa(T62, T63, T64, X126, X127, less14_out_gg(T62, T63)) → part24_out_ggaa(T62, .(T63, T64), .(T63, X126), X127)
U2_ggaa(T62, T63, T64, X126, X127, less14_out_gg(T62, T63)) → U3_ggaa(T62, T63, T64, X126, X127, part24_in_ggaa(T62, T64, X126, X127))
part24_in_ggaa(T84, .(T85, T86), X177, .(T85, X178)) → U4_ggaa(T84, T85, T86, X177, X178, part24_in_ggaa(T84, T86, X177, X178))
part24_in_ggaa(T92, [], [], []) → part24_out_ggaa(T92, [], [], [])
U4_ggaa(T84, T85, T86, X177, X178, part24_out_ggaa(T84, T86, X177, X178)) → part24_out_ggaa(T84, .(T85, T86), X177, .(T85, X178))
U3_ggaa(T62, T63, T64, X126, X127, part24_out_ggaa(T62, T64, X126, X127)) → part24_out_ggaa(T62, .(T63, T64), .(T63, X126), X127)
U18_ga(T22, T23, T24, T9, part24_out_ggaa(T22, T24, X52, X53)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U17_ga(T22, T23, T24, T9, less14_out_gg(T22, T23)) → U19_ga(T22, T23, T24, T9, part24_in_ggaa(T22, T24, T45, T46))
U19_ga(T22, T23, T24, T9, part24_out_ggaa(T22, T24, T45, T46)) → U20_ga(T22, T23, T24, T9, qs1_in_aa(.(T23, T45), X14))
qs1_in_aa([], []) → qs1_out_aa([], [])
qs1_in_aa(.(T22, .(T23, T24)), T9) → U17_aa(T22, T23, T24, T9, less14_in_aa(T22, T23))
less14_in_aa(0, s(T33)) → less14_out_aa(0, s(T33))
less14_in_aa(s(T38), s(T39)) → U1_aa(T38, T39, less14_in_aa(T38, T39))
U1_aa(T38, T39, less14_out_aa(T38, T39)) → less14_out_aa(s(T38), s(T39))
U17_aa(T22, T23, T24, T9, less14_out_aa(T22, T23)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U17_aa(T22, T23, T24, T9, less14_out_aa(T22, T23)) → U18_aa(T22, T23, T24, T9, part24_in_gaaa(T22, T24, X52, X53))
part24_in_gaaa(T62, .(T63, T64), .(T63, X126), X127) → U2_gaaa(T62, T63, T64, X126, X127, less14_in_ga(T62, T63))
less14_in_ga(0, s(T33)) → less14_out_ga(0, s(T33))
less14_in_ga(s(T38), s(T39)) → U1_ga(T38, T39, less14_in_ga(T38, T39))
U1_ga(T38, T39, less14_out_ga(T38, T39)) → less14_out_ga(s(T38), s(T39))
U2_gaaa(T62, T63, T64, X126, X127, less14_out_ga(T62, T63)) → part24_out_gaaa(T62, .(T63, T64), .(T63, X126), X127)
U2_gaaa(T62, T63, T64, X126, X127, less14_out_ga(T62, T63)) → U3_gaaa(T62, T63, T64, X126, X127, part24_in_gaaa(T62, T64, X126, X127))
part24_in_gaaa(T84, .(T85, T86), X177, .(T85, X178)) → U4_gaaa(T84, T85, T86, X177, X178, part24_in_gaaa(T84, T86, X177, X178))
part24_in_gaaa(T92, [], [], []) → part24_out_gaaa(T92, [], [], [])
U4_gaaa(T84, T85, T86, X177, X178, part24_out_gaaa(T84, T86, X177, X178)) → part24_out_gaaa(T84, .(T85, T86), X177, .(T85, X178))
U3_gaaa(T62, T63, T64, X126, X127, part24_out_gaaa(T62, T64, X126, X127)) → part24_out_gaaa(T62, .(T63, T64), .(T63, X126), X127)
U18_aa(T22, T23, T24, T9, part24_out_gaaa(T22, T24, X52, X53)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U17_aa(T22, T23, T24, T9, less14_out_aa(T22, T23)) → U19_aa(T22, T23, T24, T9, part24_in_gaaa(T22, T24, T45, T46))
U19_aa(T22, T23, T24, T9, part24_out_gaaa(T22, T24, T45, T46)) → U20_aa(T22, T23, T24, T9, qs1_in_aa(.(T23, T45), X14))
qs1_in_aa(.(T191, .(T192, T193)), T9) → U23_aa(T191, T192, T193, T9, part24_in_aaaa(T191, T193, X336, X337))
part24_in_aaaa(T62, .(T63, T64), .(T63, X126), X127) → U2_aaaa(T62, T63, T64, X126, X127, less14_in_aa(T62, T63))
U2_aaaa(T62, T63, T64, X126, X127, less14_out_aa(T62, T63)) → part24_out_aaaa(T62, .(T63, T64), .(T63, X126), X127)
U2_aaaa(T62, T63, T64, X126, X127, less14_out_aa(T62, T63)) → U3_aaaa(T62, T63, T64, X126, X127, part24_in_gaaa(T62, T64, X126, X127))
U3_aaaa(T62, T63, T64, X126, X127, part24_out_gaaa(T62, T64, X126, X127)) → part24_out_aaaa(T62, .(T63, T64), .(T63, X126), X127)
part24_in_aaaa(T84, .(T85, T86), X177, .(T85, X178)) → U4_aaaa(T84, T85, T86, X177, X178, part24_in_aaaa(T84, T86, X177, X178))
part24_in_aaaa(T92, [], [], []) → part24_out_aaaa(T92, [], [], [])
U4_aaaa(T84, T85, T86, X177, X178, part24_out_aaaa(T84, T86, X177, X178)) → part24_out_aaaa(T84, .(T85, T86), X177, .(T85, X178))
U23_aa(T191, T192, T193, T9, part24_out_aaaa(T191, T193, X336, X337)) → qs1_out_aa(.(T191, .(T192, T193)), T9)
qs1_in_aa(.(T191, .(T192, T193)), T9) → U24_aa(T191, T192, T193, T9, part24_in_aaaa(T191, T193, T197, T198))
U24_aa(T191, T192, T193, T9, part24_out_aaaa(T191, T193, T197, T198)) → U25_aa(T191, T192, T193, T9, qs42_in_aa(T197, X14))
qs42_in_aa([], []) → qs42_out_aa([], [])
qs42_in_aa(.(T103, T104), X230) → U5_aa(T103, T104, X230, part24_in_aaaa(T103, T104, X226, X227))
U5_aa(T103, T104, X230, part24_out_aaaa(T103, T104, X226, X227)) → qs42_out_aa(.(T103, T104), X230)
qs42_in_aa(.(T103, T104), X230) → U6_aa(T103, T104, X230, part24_in_aaaa(T103, T104, T108, T109))
U6_aa(T103, T104, X230, part24_out_aaaa(T103, T104, T108, T109)) → U7_aa(T103, T104, X230, qs42_in_aa(T108, X228))
U7_aa(T103, T104, X230, qs42_out_aa(T108, X228)) → qs42_out_aa(.(T103, T104), X230)
U6_aa(T103, T104, X230, part24_out_aaaa(T103, T104, T108, T109)) → U8_aa(T103, T104, X230, T109, qs42_in_aa(T108, T113))
U8_aa(T103, T104, X230, T109, qs42_out_aa(T108, T113)) → U9_aa(T103, T104, X230, qs42_in_aa(T109, X229))
U9_aa(T103, T104, X230, qs42_out_aa(T109, X229)) → qs42_out_aa(.(T103, T104), X230)
U8_aa(T103, T104, X230, T109, qs42_out_aa(T108, T113)) → U10_aa(T103, T104, X230, T113, qs42_in_aa(T109, T114))
U10_aa(T103, T104, X230, T113, qs42_out_aa(T109, T114)) → U11_aa(T103, T104, X230, app57_in_aaaa(T113, T103, T114, X230))
app57_in_aaaa([], T127, T128, .(T127, T128)) → app57_out_aaaa([], T127, T128, .(T127, T128))
app57_in_aaaa(.(T137, T138), T139, T140, .(T137, X270)) → U12_aaaa(T137, T138, T139, T140, X270, app57_in_aaaa(T138, T139, T140, X270))
U12_aaaa(T137, T138, T139, T140, X270, app57_out_aaaa(T138, T139, T140, X270)) → app57_out_aaaa(.(T137, T138), T139, T140, .(T137, X270))
U11_aa(T103, T104, X230, app57_out_aaaa(T113, T103, T114, X230)) → qs42_out_aa(.(T103, T104), X230)
U25_aa(T191, T192, T193, T9, qs42_out_aa(T197, X14)) → qs1_out_aa(.(T191, .(T192, T193)), T9)
U24_aa(T191, T192, T193, T9, part24_out_aaaa(T191, T193, T197, T198)) → U26_aa(T191, T192, T193, T9, T198, qs42_in_aa(T197, T202))
U26_aa(T191, T192, T193, T9, T198, qs42_out_aa(T197, T202)) → U27_aa(T191, T192, T193, T9, p41_in_aaaaa(.(T192, T198), X15, T202, T191, T9))
p41_in_aaaaa(T46, X15, T95, T22, T9) → U14_aaaaa(T46, X15, T95, T22, T9, qs42_in_aa(T46, X15))
U14_aaaaa(T46, X15, T95, T22, T9, qs42_out_aa(T46, X15)) → p41_out_aaaaa(T46, X15, T95, T22, T9)
p41_in_aaaaa(T46, T98, T95, T22, T9) → U15_aaaaa(T46, T98, T95, T22, T9, qs42_in_aa(T46, T98))
U15_aaaaa(T46, T98, T95, T22, T9, qs42_out_aa(T46, T98)) → U16_aaaaa(T46, T98, T95, T22, T9, app43_in_aaaa(T95, T22, T98, T9))
app43_in_aaaa([], T157, T158, .(T157, T158)) → app43_out_aaaa([], T157, T158, .(T157, T158))
app43_in_aaaa(.(T169, T170), T171, T172, .(T169, T174)) → U13_aaaa(T169, T170, T171, T172, T174, app43_in_aaaa(T170, T171, T172, T174))
U13_aaaa(T169, T170, T171, T172, T174, app43_out_aaaa(T170, T171, T172, T174)) → app43_out_aaaa(.(T169, T170), T171, T172, .(T169, T174))
U16_aaaaa(T46, T98, T95, T22, T9, app43_out_aaaa(T95, T22, T98, T9)) → p41_out_aaaaa(T46, T98, T95, T22, T9)
U27_aa(T191, T192, T193, T9, p41_out_aaaaa(.(T192, T198), X15, T202, T191, T9)) → qs1_out_aa(.(T191, .(T192, T193)), T9)
qs1_in_aa(.(T207, []), T9) → U28_aa(T207, T9, qs84_in_a(X14))
qs84_in_a([]) → qs84_out_a([])
U28_aa(T207, T9, qs84_out_a(X14)) → qs1_out_aa(.(T207, []), T9)
qs1_in_aa(.(T207, []), T9) → U29_aa(T207, T9, qs84_in_a(T210))
U29_aa(T207, T9, qs84_out_a(T210)) → U30_aa(T207, T9, qs84_in_a(X15))
U30_aa(T207, T9, qs84_out_a(X15)) → qs1_out_aa(.(T207, []), T9)
U29_aa(T207, T9, qs84_out_a(T210)) → U31_aa(T207, T9, T210, qs84_in_a(T213))
U31_aa(T207, T9, T210, qs84_out_a(T213)) → U32_aa(T207, T9, app43_in_gaga(T210, T207, T213, T9))
app43_in_gaga([], T157, T158, .(T157, T158)) → app43_out_gaga([], T157, T158, .(T157, T158))
app43_in_gaga(.(T169, T170), T171, T172, .(T169, T174)) → U13_gaga(T169, T170, T171, T172, T174, app43_in_gaga(T170, T171, T172, T174))
U13_gaga(T169, T170, T171, T172, T174, app43_out_gaga(T170, T171, T172, T174)) → app43_out_gaga(.(T169, T170), T171, T172, .(T169, T174))
U32_aa(T207, T9, app43_out_gaga(T210, T207, T213, T9)) → qs1_out_aa(.(T207, []), T9)
U20_aa(T22, T23, T24, T9, qs1_out_aa(.(T23, T45), X14)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U19_aa(T22, T23, T24, T9, part24_out_gaaa(T22, T24, T45, T46)) → U21_aa(T22, T23, T24, T9, T46, qs1_in_aa(.(T23, T45), T95))
U21_aa(T22, T23, T24, T9, T46, qs1_out_aa(.(T23, T45), T95)) → U22_aa(T22, T23, T24, T9, p41_in_aaaga(T46, X15, T95, T22, T9))
p41_in_aaaga(T46, X15, T95, T22, T9) → U14_aaaga(T46, X15, T95, T22, T9, qs42_in_aa(T46, X15))
U14_aaaga(T46, X15, T95, T22, T9, qs42_out_aa(T46, X15)) → p41_out_aaaga(T46, X15, T95, T22, T9)
p41_in_aaaga(T46, T98, T95, T22, T9) → U15_aaaga(T46, T98, T95, T22, T9, qs42_in_aa(T46, T98))
U15_aaaga(T46, T98, T95, T22, T9, qs42_out_aa(T46, T98)) → U16_aaaga(T46, T98, T95, T22, T9, app43_in_agaa(T95, T22, T98, T9))
app43_in_agaa([], T157, T158, .(T157, T158)) → app43_out_agaa([], T157, T158, .(T157, T158))
app43_in_agaa(.(T169, T170), T171, T172, .(T169, T174)) → U13_agaa(T169, T170, T171, T172, T174, app43_in_agaa(T170, T171, T172, T174))
U13_agaa(T169, T170, T171, T172, T174, app43_out_agaa(T170, T171, T172, T174)) → app43_out_agaa(.(T169, T170), T171, T172, .(T169, T174))
U16_aaaga(T46, T98, T95, T22, T9, app43_out_agaa(T95, T22, T98, T9)) → p41_out_aaaga(T46, T98, T95, T22, T9)
U22_aa(T22, T23, T24, T9, p41_out_aaaga(T46, X15, T95, T22, T9)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U20_ga(T22, T23, T24, T9, qs1_out_aa(.(T23, T45), X14)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U19_ga(T22, T23, T24, T9, part24_out_ggaa(T22, T24, T45, T46)) → U21_ga(T22, T23, T24, T9, T46, qs1_in_aa(.(T23, T45), T95))
U21_ga(T22, T23, T24, T9, T46, qs1_out_aa(.(T23, T45), T95)) → U22_ga(T22, T23, T24, T9, p41_in_aaaga(T46, X15, T95, T22, T9))
U22_ga(T22, T23, T24, T9, p41_out_aaaga(T46, X15, T95, T22, T9)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
qs1_in_ga(.(T191, .(T192, T193)), T9) → U23_ga(T191, T192, T193, T9, part24_in_ggaa(T191, T193, X336, X337))
U23_ga(T191, T192, T193, T9, part24_out_ggaa(T191, T193, X336, X337)) → qs1_out_ga(.(T191, .(T192, T193)), T9)
qs1_in_ga(.(T191, .(T192, T193)), T9) → U24_ga(T191, T192, T193, T9, part24_in_ggaa(T191, T193, T197, T198))
U24_ga(T191, T192, T193, T9, part24_out_ggaa(T191, T193, T197, T198)) → U25_ga(T191, T192, T193, T9, qs42_in_aa(T197, X14))
U25_ga(T191, T192, T193, T9, qs42_out_aa(T197, X14)) → qs1_out_ga(.(T191, .(T192, T193)), T9)
U24_ga(T191, T192, T193, T9, part24_out_ggaa(T191, T193, T197, T198)) → U26_ga(T191, T192, T193, T9, T198, qs42_in_aa(T197, T202))
U26_ga(T191, T192, T193, T9, T198, qs42_out_aa(T197, T202)) → U27_ga(T191, T192, T193, T9, p41_in_aaaga(.(T192, T198), X15, T202, T191, T9))
U27_ga(T191, T192, T193, T9, p41_out_aaaga(.(T192, T198), X15, T202, T191, T9)) → qs1_out_ga(.(T191, .(T192, T193)), T9)
qs1_in_ga(.(T207, []), T9) → U28_ga(T207, T9, qs84_in_a(X14))
U28_ga(T207, T9, qs84_out_a(X14)) → qs1_out_ga(.(T207, []), T9)
qs1_in_ga(.(T207, []), T9) → U29_ga(T207, T9, qs84_in_a(T210))
U29_ga(T207, T9, qs84_out_a(T210)) → U30_ga(T207, T9, qs84_in_a(X15))
U30_ga(T207, T9, qs84_out_a(X15)) → qs1_out_ga(.(T207, []), T9)
U29_ga(T207, T9, qs84_out_a(T210)) → U31_ga(T207, T9, T210, qs84_in_a(T213))
U31_ga(T207, T9, T210, qs84_out_a(T213)) → U32_ga(T207, T9, app43_in_ggga(T210, T207, T213, T9))
app43_in_ggga([], T157, T158, .(T157, T158)) → app43_out_ggga([], T157, T158, .(T157, T158))
app43_in_ggga(.(T169, T170), T171, T172, .(T169, T174)) → U13_ggga(T169, T170, T171, T172, T174, app43_in_ggga(T170, T171, T172, T174))
U13_ggga(T169, T170, T171, T172, T174, app43_out_ggga(T170, T171, T172, T174)) → app43_out_ggga(.(T169, T170), T171, T172, .(T169, T174))
U32_ga(T207, T9, app43_out_ggga(T210, T207, T213, T9)) → qs1_out_ga(.(T207, []), T9)
APP57_IN_AAAA(.(T137, T138), T139, T140, .(T137, X270)) → APP57_IN_AAAA(T138, T139, T140, X270)
APP57_IN_AAAA → APP57_IN_AAAA
LESS14_IN_GA(s(T38), s(T39)) → LESS14_IN_GA(T38, T39)
qs1_in_ga([], []) → qs1_out_ga([], [])
qs1_in_ga(.(T22, .(T23, T24)), T9) → U17_ga(T22, T23, T24, T9, less14_in_gg(T22, T23))
less14_in_gg(0, s(T33)) → less14_out_gg(0, s(T33))
less14_in_gg(s(T38), s(T39)) → U1_gg(T38, T39, less14_in_gg(T38, T39))
U1_gg(T38, T39, less14_out_gg(T38, T39)) → less14_out_gg(s(T38), s(T39))
U17_ga(T22, T23, T24, T9, less14_out_gg(T22, T23)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U17_ga(T22, T23, T24, T9, less14_out_gg(T22, T23)) → U18_ga(T22, T23, T24, T9, part24_in_ggaa(T22, T24, X52, X53))
part24_in_ggaa(T62, .(T63, T64), .(T63, X126), X127) → U2_ggaa(T62, T63, T64, X126, X127, less14_in_gg(T62, T63))
U2_ggaa(T62, T63, T64, X126, X127, less14_out_gg(T62, T63)) → part24_out_ggaa(T62, .(T63, T64), .(T63, X126), X127)
U2_ggaa(T62, T63, T64, X126, X127, less14_out_gg(T62, T63)) → U3_ggaa(T62, T63, T64, X126, X127, part24_in_ggaa(T62, T64, X126, X127))
part24_in_ggaa(T84, .(T85, T86), X177, .(T85, X178)) → U4_ggaa(T84, T85, T86, X177, X178, part24_in_ggaa(T84, T86, X177, X178))
part24_in_ggaa(T92, [], [], []) → part24_out_ggaa(T92, [], [], [])
U4_ggaa(T84, T85, T86, X177, X178, part24_out_ggaa(T84, T86, X177, X178)) → part24_out_ggaa(T84, .(T85, T86), X177, .(T85, X178))
U3_ggaa(T62, T63, T64, X126, X127, part24_out_ggaa(T62, T64, X126, X127)) → part24_out_ggaa(T62, .(T63, T64), .(T63, X126), X127)
U18_ga(T22, T23, T24, T9, part24_out_ggaa(T22, T24, X52, X53)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U17_ga(T22, T23, T24, T9, less14_out_gg(T22, T23)) → U19_ga(T22, T23, T24, T9, part24_in_ggaa(T22, T24, T45, T46))
U19_ga(T22, T23, T24, T9, part24_out_ggaa(T22, T24, T45, T46)) → U20_ga(T22, T23, T24, T9, qs1_in_aa(.(T23, T45), X14))
qs1_in_aa([], []) → qs1_out_aa([], [])
qs1_in_aa(.(T22, .(T23, T24)), T9) → U17_aa(T22, T23, T24, T9, less14_in_aa(T22, T23))
less14_in_aa(0, s(T33)) → less14_out_aa(0, s(T33))
less14_in_aa(s(T38), s(T39)) → U1_aa(T38, T39, less14_in_aa(T38, T39))
U1_aa(T38, T39, less14_out_aa(T38, T39)) → less14_out_aa(s(T38), s(T39))
U17_aa(T22, T23, T24, T9, less14_out_aa(T22, T23)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U17_aa(T22, T23, T24, T9, less14_out_aa(T22, T23)) → U18_aa(T22, T23, T24, T9, part24_in_gaaa(T22, T24, X52, X53))
part24_in_gaaa(T62, .(T63, T64), .(T63, X126), X127) → U2_gaaa(T62, T63, T64, X126, X127, less14_in_ga(T62, T63))
less14_in_ga(0, s(T33)) → less14_out_ga(0, s(T33))
less14_in_ga(s(T38), s(T39)) → U1_ga(T38, T39, less14_in_ga(T38, T39))
U1_ga(T38, T39, less14_out_ga(T38, T39)) → less14_out_ga(s(T38), s(T39))
U2_gaaa(T62, T63, T64, X126, X127, less14_out_ga(T62, T63)) → part24_out_gaaa(T62, .(T63, T64), .(T63, X126), X127)
U2_gaaa(T62, T63, T64, X126, X127, less14_out_ga(T62, T63)) → U3_gaaa(T62, T63, T64, X126, X127, part24_in_gaaa(T62, T64, X126, X127))
part24_in_gaaa(T84, .(T85, T86), X177, .(T85, X178)) → U4_gaaa(T84, T85, T86, X177, X178, part24_in_gaaa(T84, T86, X177, X178))
part24_in_gaaa(T92, [], [], []) → part24_out_gaaa(T92, [], [], [])
U4_gaaa(T84, T85, T86, X177, X178, part24_out_gaaa(T84, T86, X177, X178)) → part24_out_gaaa(T84, .(T85, T86), X177, .(T85, X178))
U3_gaaa(T62, T63, T64, X126, X127, part24_out_gaaa(T62, T64, X126, X127)) → part24_out_gaaa(T62, .(T63, T64), .(T63, X126), X127)
U18_aa(T22, T23, T24, T9, part24_out_gaaa(T22, T24, X52, X53)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U17_aa(T22, T23, T24, T9, less14_out_aa(T22, T23)) → U19_aa(T22, T23, T24, T9, part24_in_gaaa(T22, T24, T45, T46))
U19_aa(T22, T23, T24, T9, part24_out_gaaa(T22, T24, T45, T46)) → U20_aa(T22, T23, T24, T9, qs1_in_aa(.(T23, T45), X14))
qs1_in_aa(.(T191, .(T192, T193)), T9) → U23_aa(T191, T192, T193, T9, part24_in_aaaa(T191, T193, X336, X337))
part24_in_aaaa(T62, .(T63, T64), .(T63, X126), X127) → U2_aaaa(T62, T63, T64, X126, X127, less14_in_aa(T62, T63))
U2_aaaa(T62, T63, T64, X126, X127, less14_out_aa(T62, T63)) → part24_out_aaaa(T62, .(T63, T64), .(T63, X126), X127)
U2_aaaa(T62, T63, T64, X126, X127, less14_out_aa(T62, T63)) → U3_aaaa(T62, T63, T64, X126, X127, part24_in_gaaa(T62, T64, X126, X127))
U3_aaaa(T62, T63, T64, X126, X127, part24_out_gaaa(T62, T64, X126, X127)) → part24_out_aaaa(T62, .(T63, T64), .(T63, X126), X127)
part24_in_aaaa(T84, .(T85, T86), X177, .(T85, X178)) → U4_aaaa(T84, T85, T86, X177, X178, part24_in_aaaa(T84, T86, X177, X178))
part24_in_aaaa(T92, [], [], []) → part24_out_aaaa(T92, [], [], [])
U4_aaaa(T84, T85, T86, X177, X178, part24_out_aaaa(T84, T86, X177, X178)) → part24_out_aaaa(T84, .(T85, T86), X177, .(T85, X178))
U23_aa(T191, T192, T193, T9, part24_out_aaaa(T191, T193, X336, X337)) → qs1_out_aa(.(T191, .(T192, T193)), T9)
qs1_in_aa(.(T191, .(T192, T193)), T9) → U24_aa(T191, T192, T193, T9, part24_in_aaaa(T191, T193, T197, T198))
U24_aa(T191, T192, T193, T9, part24_out_aaaa(T191, T193, T197, T198)) → U25_aa(T191, T192, T193, T9, qs42_in_aa(T197, X14))
qs42_in_aa([], []) → qs42_out_aa([], [])
qs42_in_aa(.(T103, T104), X230) → U5_aa(T103, T104, X230, part24_in_aaaa(T103, T104, X226, X227))
U5_aa(T103, T104, X230, part24_out_aaaa(T103, T104, X226, X227)) → qs42_out_aa(.(T103, T104), X230)
qs42_in_aa(.(T103, T104), X230) → U6_aa(T103, T104, X230, part24_in_aaaa(T103, T104, T108, T109))
U6_aa(T103, T104, X230, part24_out_aaaa(T103, T104, T108, T109)) → U7_aa(T103, T104, X230, qs42_in_aa(T108, X228))
U7_aa(T103, T104, X230, qs42_out_aa(T108, X228)) → qs42_out_aa(.(T103, T104), X230)
U6_aa(T103, T104, X230, part24_out_aaaa(T103, T104, T108, T109)) → U8_aa(T103, T104, X230, T109, qs42_in_aa(T108, T113))
U8_aa(T103, T104, X230, T109, qs42_out_aa(T108, T113)) → U9_aa(T103, T104, X230, qs42_in_aa(T109, X229))
U9_aa(T103, T104, X230, qs42_out_aa(T109, X229)) → qs42_out_aa(.(T103, T104), X230)
U8_aa(T103, T104, X230, T109, qs42_out_aa(T108, T113)) → U10_aa(T103, T104, X230, T113, qs42_in_aa(T109, T114))
U10_aa(T103, T104, X230, T113, qs42_out_aa(T109, T114)) → U11_aa(T103, T104, X230, app57_in_aaaa(T113, T103, T114, X230))
app57_in_aaaa([], T127, T128, .(T127, T128)) → app57_out_aaaa([], T127, T128, .(T127, T128))
app57_in_aaaa(.(T137, T138), T139, T140, .(T137, X270)) → U12_aaaa(T137, T138, T139, T140, X270, app57_in_aaaa(T138, T139, T140, X270))
U12_aaaa(T137, T138, T139, T140, X270, app57_out_aaaa(T138, T139, T140, X270)) → app57_out_aaaa(.(T137, T138), T139, T140, .(T137, X270))
U11_aa(T103, T104, X230, app57_out_aaaa(T113, T103, T114, X230)) → qs42_out_aa(.(T103, T104), X230)
U25_aa(T191, T192, T193, T9, qs42_out_aa(T197, X14)) → qs1_out_aa(.(T191, .(T192, T193)), T9)
U24_aa(T191, T192, T193, T9, part24_out_aaaa(T191, T193, T197, T198)) → U26_aa(T191, T192, T193, T9, T198, qs42_in_aa(T197, T202))
U26_aa(T191, T192, T193, T9, T198, qs42_out_aa(T197, T202)) → U27_aa(T191, T192, T193, T9, p41_in_aaaaa(.(T192, T198), X15, T202, T191, T9))
p41_in_aaaaa(T46, X15, T95, T22, T9) → U14_aaaaa(T46, X15, T95, T22, T9, qs42_in_aa(T46, X15))
U14_aaaaa(T46, X15, T95, T22, T9, qs42_out_aa(T46, X15)) → p41_out_aaaaa(T46, X15, T95, T22, T9)
p41_in_aaaaa(T46, T98, T95, T22, T9) → U15_aaaaa(T46, T98, T95, T22, T9, qs42_in_aa(T46, T98))
U15_aaaaa(T46, T98, T95, T22, T9, qs42_out_aa(T46, T98)) → U16_aaaaa(T46, T98, T95, T22, T9, app43_in_aaaa(T95, T22, T98, T9))
app43_in_aaaa([], T157, T158, .(T157, T158)) → app43_out_aaaa([], T157, T158, .(T157, T158))
app43_in_aaaa(.(T169, T170), T171, T172, .(T169, T174)) → U13_aaaa(T169, T170, T171, T172, T174, app43_in_aaaa(T170, T171, T172, T174))
U13_aaaa(T169, T170, T171, T172, T174, app43_out_aaaa(T170, T171, T172, T174)) → app43_out_aaaa(.(T169, T170), T171, T172, .(T169, T174))
U16_aaaaa(T46, T98, T95, T22, T9, app43_out_aaaa(T95, T22, T98, T9)) → p41_out_aaaaa(T46, T98, T95, T22, T9)
U27_aa(T191, T192, T193, T9, p41_out_aaaaa(.(T192, T198), X15, T202, T191, T9)) → qs1_out_aa(.(T191, .(T192, T193)), T9)
qs1_in_aa(.(T207, []), T9) → U28_aa(T207, T9, qs84_in_a(X14))
qs84_in_a([]) → qs84_out_a([])
U28_aa(T207, T9, qs84_out_a(X14)) → qs1_out_aa(.(T207, []), T9)
qs1_in_aa(.(T207, []), T9) → U29_aa(T207, T9, qs84_in_a(T210))
U29_aa(T207, T9, qs84_out_a(T210)) → U30_aa(T207, T9, qs84_in_a(X15))
U30_aa(T207, T9, qs84_out_a(X15)) → qs1_out_aa(.(T207, []), T9)
U29_aa(T207, T9, qs84_out_a(T210)) → U31_aa(T207, T9, T210, qs84_in_a(T213))
U31_aa(T207, T9, T210, qs84_out_a(T213)) → U32_aa(T207, T9, app43_in_gaga(T210, T207, T213, T9))
app43_in_gaga([], T157, T158, .(T157, T158)) → app43_out_gaga([], T157, T158, .(T157, T158))
app43_in_gaga(.(T169, T170), T171, T172, .(T169, T174)) → U13_gaga(T169, T170, T171, T172, T174, app43_in_gaga(T170, T171, T172, T174))
U13_gaga(T169, T170, T171, T172, T174, app43_out_gaga(T170, T171, T172, T174)) → app43_out_gaga(.(T169, T170), T171, T172, .(T169, T174))
U32_aa(T207, T9, app43_out_gaga(T210, T207, T213, T9)) → qs1_out_aa(.(T207, []), T9)
U20_aa(T22, T23, T24, T9, qs1_out_aa(.(T23, T45), X14)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U19_aa(T22, T23, T24, T9, part24_out_gaaa(T22, T24, T45, T46)) → U21_aa(T22, T23, T24, T9, T46, qs1_in_aa(.(T23, T45), T95))
U21_aa(T22, T23, T24, T9, T46, qs1_out_aa(.(T23, T45), T95)) → U22_aa(T22, T23, T24, T9, p41_in_aaaga(T46, X15, T95, T22, T9))
p41_in_aaaga(T46, X15, T95, T22, T9) → U14_aaaga(T46, X15, T95, T22, T9, qs42_in_aa(T46, X15))
U14_aaaga(T46, X15, T95, T22, T9, qs42_out_aa(T46, X15)) → p41_out_aaaga(T46, X15, T95, T22, T9)
p41_in_aaaga(T46, T98, T95, T22, T9) → U15_aaaga(T46, T98, T95, T22, T9, qs42_in_aa(T46, T98))
U15_aaaga(T46, T98, T95, T22, T9, qs42_out_aa(T46, T98)) → U16_aaaga(T46, T98, T95, T22, T9, app43_in_agaa(T95, T22, T98, T9))
app43_in_agaa([], T157, T158, .(T157, T158)) → app43_out_agaa([], T157, T158, .(T157, T158))
app43_in_agaa(.(T169, T170), T171, T172, .(T169, T174)) → U13_agaa(T169, T170, T171, T172, T174, app43_in_agaa(T170, T171, T172, T174))
U13_agaa(T169, T170, T171, T172, T174, app43_out_agaa(T170, T171, T172, T174)) → app43_out_agaa(.(T169, T170), T171, T172, .(T169, T174))
U16_aaaga(T46, T98, T95, T22, T9, app43_out_agaa(T95, T22, T98, T9)) → p41_out_aaaga(T46, T98, T95, T22, T9)
U22_aa(T22, T23, T24, T9, p41_out_aaaga(T46, X15, T95, T22, T9)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U20_ga(T22, T23, T24, T9, qs1_out_aa(.(T23, T45), X14)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U19_ga(T22, T23, T24, T9, part24_out_ggaa(T22, T24, T45, T46)) → U21_ga(T22, T23, T24, T9, T46, qs1_in_aa(.(T23, T45), T95))
U21_ga(T22, T23, T24, T9, T46, qs1_out_aa(.(T23, T45), T95)) → U22_ga(T22, T23, T24, T9, p41_in_aaaga(T46, X15, T95, T22, T9))
U22_ga(T22, T23, T24, T9, p41_out_aaaga(T46, X15, T95, T22, T9)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
qs1_in_ga(.(T191, .(T192, T193)), T9) → U23_ga(T191, T192, T193, T9, part24_in_ggaa(T191, T193, X336, X337))
U23_ga(T191, T192, T193, T9, part24_out_ggaa(T191, T193, X336, X337)) → qs1_out_ga(.(T191, .(T192, T193)), T9)
qs1_in_ga(.(T191, .(T192, T193)), T9) → U24_ga(T191, T192, T193, T9, part24_in_ggaa(T191, T193, T197, T198))
U24_ga(T191, T192, T193, T9, part24_out_ggaa(T191, T193, T197, T198)) → U25_ga(T191, T192, T193, T9, qs42_in_aa(T197, X14))
U25_ga(T191, T192, T193, T9, qs42_out_aa(T197, X14)) → qs1_out_ga(.(T191, .(T192, T193)), T9)
U24_ga(T191, T192, T193, T9, part24_out_ggaa(T191, T193, T197, T198)) → U26_ga(T191, T192, T193, T9, T198, qs42_in_aa(T197, T202))
U26_ga(T191, T192, T193, T9, T198, qs42_out_aa(T197, T202)) → U27_ga(T191, T192, T193, T9, p41_in_aaaga(.(T192, T198), X15, T202, T191, T9))
U27_ga(T191, T192, T193, T9, p41_out_aaaga(.(T192, T198), X15, T202, T191, T9)) → qs1_out_ga(.(T191, .(T192, T193)), T9)
qs1_in_ga(.(T207, []), T9) → U28_ga(T207, T9, qs84_in_a(X14))
U28_ga(T207, T9, qs84_out_a(X14)) → qs1_out_ga(.(T207, []), T9)
qs1_in_ga(.(T207, []), T9) → U29_ga(T207, T9, qs84_in_a(T210))
U29_ga(T207, T9, qs84_out_a(T210)) → U30_ga(T207, T9, qs84_in_a(X15))
U30_ga(T207, T9, qs84_out_a(X15)) → qs1_out_ga(.(T207, []), T9)
U29_ga(T207, T9, qs84_out_a(T210)) → U31_ga(T207, T9, T210, qs84_in_a(T213))
U31_ga(T207, T9, T210, qs84_out_a(T213)) → U32_ga(T207, T9, app43_in_ggga(T210, T207, T213, T9))
app43_in_ggga([], T157, T158, .(T157, T158)) → app43_out_ggga([], T157, T158, .(T157, T158))
app43_in_ggga(.(T169, T170), T171, T172, .(T169, T174)) → U13_ggga(T169, T170, T171, T172, T174, app43_in_ggga(T170, T171, T172, T174))
U13_ggga(T169, T170, T171, T172, T174, app43_out_ggga(T170, T171, T172, T174)) → app43_out_ggga(.(T169, T170), T171, T172, .(T169, T174))
U32_ga(T207, T9, app43_out_ggga(T210, T207, T213, T9)) → qs1_out_ga(.(T207, []), T9)
LESS14_IN_GA(s(T38), s(T39)) → LESS14_IN_GA(T38, T39)
LESS14_IN_GA(s(T38)) → LESS14_IN_GA(T38)
From the DPs we obtained the following set of size-change graphs:
U2_GAAA(T62, T63, T64, X126, X127, less14_out_ga(T62, T63)) → PART24_IN_GAAA(T62, T64, X126, X127)
PART24_IN_GAAA(T62, .(T63, T64), .(T63, X126), X127) → U2_GAAA(T62, T63, T64, X126, X127, less14_in_ga(T62, T63))
PART24_IN_GAAA(T84, .(T85, T86), X177, .(T85, X178)) → PART24_IN_GAAA(T84, T86, X177, X178)
qs1_in_ga([], []) → qs1_out_ga([], [])
qs1_in_ga(.(T22, .(T23, T24)), T9) → U17_ga(T22, T23, T24, T9, less14_in_gg(T22, T23))
less14_in_gg(0, s(T33)) → less14_out_gg(0, s(T33))
less14_in_gg(s(T38), s(T39)) → U1_gg(T38, T39, less14_in_gg(T38, T39))
U1_gg(T38, T39, less14_out_gg(T38, T39)) → less14_out_gg(s(T38), s(T39))
U17_ga(T22, T23, T24, T9, less14_out_gg(T22, T23)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U17_ga(T22, T23, T24, T9, less14_out_gg(T22, T23)) → U18_ga(T22, T23, T24, T9, part24_in_ggaa(T22, T24, X52, X53))
part24_in_ggaa(T62, .(T63, T64), .(T63, X126), X127) → U2_ggaa(T62, T63, T64, X126, X127, less14_in_gg(T62, T63))
U2_ggaa(T62, T63, T64, X126, X127, less14_out_gg(T62, T63)) → part24_out_ggaa(T62, .(T63, T64), .(T63, X126), X127)
U2_ggaa(T62, T63, T64, X126, X127, less14_out_gg(T62, T63)) → U3_ggaa(T62, T63, T64, X126, X127, part24_in_ggaa(T62, T64, X126, X127))
part24_in_ggaa(T84, .(T85, T86), X177, .(T85, X178)) → U4_ggaa(T84, T85, T86, X177, X178, part24_in_ggaa(T84, T86, X177, X178))
part24_in_ggaa(T92, [], [], []) → part24_out_ggaa(T92, [], [], [])
U4_ggaa(T84, T85, T86, X177, X178, part24_out_ggaa(T84, T86, X177, X178)) → part24_out_ggaa(T84, .(T85, T86), X177, .(T85, X178))
U3_ggaa(T62, T63, T64, X126, X127, part24_out_ggaa(T62, T64, X126, X127)) → part24_out_ggaa(T62, .(T63, T64), .(T63, X126), X127)
U18_ga(T22, T23, T24, T9, part24_out_ggaa(T22, T24, X52, X53)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U17_ga(T22, T23, T24, T9, less14_out_gg(T22, T23)) → U19_ga(T22, T23, T24, T9, part24_in_ggaa(T22, T24, T45, T46))
U19_ga(T22, T23, T24, T9, part24_out_ggaa(T22, T24, T45, T46)) → U20_ga(T22, T23, T24, T9, qs1_in_aa(.(T23, T45), X14))
qs1_in_aa([], []) → qs1_out_aa([], [])
qs1_in_aa(.(T22, .(T23, T24)), T9) → U17_aa(T22, T23, T24, T9, less14_in_aa(T22, T23))
less14_in_aa(0, s(T33)) → less14_out_aa(0, s(T33))
less14_in_aa(s(T38), s(T39)) → U1_aa(T38, T39, less14_in_aa(T38, T39))
U1_aa(T38, T39, less14_out_aa(T38, T39)) → less14_out_aa(s(T38), s(T39))
U17_aa(T22, T23, T24, T9, less14_out_aa(T22, T23)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U17_aa(T22, T23, T24, T9, less14_out_aa(T22, T23)) → U18_aa(T22, T23, T24, T9, part24_in_gaaa(T22, T24, X52, X53))
part24_in_gaaa(T62, .(T63, T64), .(T63, X126), X127) → U2_gaaa(T62, T63, T64, X126, X127, less14_in_ga(T62, T63))
less14_in_ga(0, s(T33)) → less14_out_ga(0, s(T33))
less14_in_ga(s(T38), s(T39)) → U1_ga(T38, T39, less14_in_ga(T38, T39))
U1_ga(T38, T39, less14_out_ga(T38, T39)) → less14_out_ga(s(T38), s(T39))
U2_gaaa(T62, T63, T64, X126, X127, less14_out_ga(T62, T63)) → part24_out_gaaa(T62, .(T63, T64), .(T63, X126), X127)
U2_gaaa(T62, T63, T64, X126, X127, less14_out_ga(T62, T63)) → U3_gaaa(T62, T63, T64, X126, X127, part24_in_gaaa(T62, T64, X126, X127))
part24_in_gaaa(T84, .(T85, T86), X177, .(T85, X178)) → U4_gaaa(T84, T85, T86, X177, X178, part24_in_gaaa(T84, T86, X177, X178))
part24_in_gaaa(T92, [], [], []) → part24_out_gaaa(T92, [], [], [])
U4_gaaa(T84, T85, T86, X177, X178, part24_out_gaaa(T84, T86, X177, X178)) → part24_out_gaaa(T84, .(T85, T86), X177, .(T85, X178))
U3_gaaa(T62, T63, T64, X126, X127, part24_out_gaaa(T62, T64, X126, X127)) → part24_out_gaaa(T62, .(T63, T64), .(T63, X126), X127)
U18_aa(T22, T23, T24, T9, part24_out_gaaa(T22, T24, X52, X53)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U17_aa(T22, T23, T24, T9, less14_out_aa(T22, T23)) → U19_aa(T22, T23, T24, T9, part24_in_gaaa(T22, T24, T45, T46))
U19_aa(T22, T23, T24, T9, part24_out_gaaa(T22, T24, T45, T46)) → U20_aa(T22, T23, T24, T9, qs1_in_aa(.(T23, T45), X14))
qs1_in_aa(.(T191, .(T192, T193)), T9) → U23_aa(T191, T192, T193, T9, part24_in_aaaa(T191, T193, X336, X337))
part24_in_aaaa(T62, .(T63, T64), .(T63, X126), X127) → U2_aaaa(T62, T63, T64, X126, X127, less14_in_aa(T62, T63))
U2_aaaa(T62, T63, T64, X126, X127, less14_out_aa(T62, T63)) → part24_out_aaaa(T62, .(T63, T64), .(T63, X126), X127)
U2_aaaa(T62, T63, T64, X126, X127, less14_out_aa(T62, T63)) → U3_aaaa(T62, T63, T64, X126, X127, part24_in_gaaa(T62, T64, X126, X127))
U3_aaaa(T62, T63, T64, X126, X127, part24_out_gaaa(T62, T64, X126, X127)) → part24_out_aaaa(T62, .(T63, T64), .(T63, X126), X127)
part24_in_aaaa(T84, .(T85, T86), X177, .(T85, X178)) → U4_aaaa(T84, T85, T86, X177, X178, part24_in_aaaa(T84, T86, X177, X178))
part24_in_aaaa(T92, [], [], []) → part24_out_aaaa(T92, [], [], [])
U4_aaaa(T84, T85, T86, X177, X178, part24_out_aaaa(T84, T86, X177, X178)) → part24_out_aaaa(T84, .(T85, T86), X177, .(T85, X178))
U23_aa(T191, T192, T193, T9, part24_out_aaaa(T191, T193, X336, X337)) → qs1_out_aa(.(T191, .(T192, T193)), T9)
qs1_in_aa(.(T191, .(T192, T193)), T9) → U24_aa(T191, T192, T193, T9, part24_in_aaaa(T191, T193, T197, T198))
U24_aa(T191, T192, T193, T9, part24_out_aaaa(T191, T193, T197, T198)) → U25_aa(T191, T192, T193, T9, qs42_in_aa(T197, X14))
qs42_in_aa([], []) → qs42_out_aa([], [])
qs42_in_aa(.(T103, T104), X230) → U5_aa(T103, T104, X230, part24_in_aaaa(T103, T104, X226, X227))
U5_aa(T103, T104, X230, part24_out_aaaa(T103, T104, X226, X227)) → qs42_out_aa(.(T103, T104), X230)
qs42_in_aa(.(T103, T104), X230) → U6_aa(T103, T104, X230, part24_in_aaaa(T103, T104, T108, T109))
U6_aa(T103, T104, X230, part24_out_aaaa(T103, T104, T108, T109)) → U7_aa(T103, T104, X230, qs42_in_aa(T108, X228))
U7_aa(T103, T104, X230, qs42_out_aa(T108, X228)) → qs42_out_aa(.(T103, T104), X230)
U6_aa(T103, T104, X230, part24_out_aaaa(T103, T104, T108, T109)) → U8_aa(T103, T104, X230, T109, qs42_in_aa(T108, T113))
U8_aa(T103, T104, X230, T109, qs42_out_aa(T108, T113)) → U9_aa(T103, T104, X230, qs42_in_aa(T109, X229))
U9_aa(T103, T104, X230, qs42_out_aa(T109, X229)) → qs42_out_aa(.(T103, T104), X230)
U8_aa(T103, T104, X230, T109, qs42_out_aa(T108, T113)) → U10_aa(T103, T104, X230, T113, qs42_in_aa(T109, T114))
U10_aa(T103, T104, X230, T113, qs42_out_aa(T109, T114)) → U11_aa(T103, T104, X230, app57_in_aaaa(T113, T103, T114, X230))
app57_in_aaaa([], T127, T128, .(T127, T128)) → app57_out_aaaa([], T127, T128, .(T127, T128))
app57_in_aaaa(.(T137, T138), T139, T140, .(T137, X270)) → U12_aaaa(T137, T138, T139, T140, X270, app57_in_aaaa(T138, T139, T140, X270))
U12_aaaa(T137, T138, T139, T140, X270, app57_out_aaaa(T138, T139, T140, X270)) → app57_out_aaaa(.(T137, T138), T139, T140, .(T137, X270))
U11_aa(T103, T104, X230, app57_out_aaaa(T113, T103, T114, X230)) → qs42_out_aa(.(T103, T104), X230)
U25_aa(T191, T192, T193, T9, qs42_out_aa(T197, X14)) → qs1_out_aa(.(T191, .(T192, T193)), T9)
U24_aa(T191, T192, T193, T9, part24_out_aaaa(T191, T193, T197, T198)) → U26_aa(T191, T192, T193, T9, T198, qs42_in_aa(T197, T202))
U26_aa(T191, T192, T193, T9, T198, qs42_out_aa(T197, T202)) → U27_aa(T191, T192, T193, T9, p41_in_aaaaa(.(T192, T198), X15, T202, T191, T9))
p41_in_aaaaa(T46, X15, T95, T22, T9) → U14_aaaaa(T46, X15, T95, T22, T9, qs42_in_aa(T46, X15))
U14_aaaaa(T46, X15, T95, T22, T9, qs42_out_aa(T46, X15)) → p41_out_aaaaa(T46, X15, T95, T22, T9)
p41_in_aaaaa(T46, T98, T95, T22, T9) → U15_aaaaa(T46, T98, T95, T22, T9, qs42_in_aa(T46, T98))
U15_aaaaa(T46, T98, T95, T22, T9, qs42_out_aa(T46, T98)) → U16_aaaaa(T46, T98, T95, T22, T9, app43_in_aaaa(T95, T22, T98, T9))
app43_in_aaaa([], T157, T158, .(T157, T158)) → app43_out_aaaa([], T157, T158, .(T157, T158))
app43_in_aaaa(.(T169, T170), T171, T172, .(T169, T174)) → U13_aaaa(T169, T170, T171, T172, T174, app43_in_aaaa(T170, T171, T172, T174))
U13_aaaa(T169, T170, T171, T172, T174, app43_out_aaaa(T170, T171, T172, T174)) → app43_out_aaaa(.(T169, T170), T171, T172, .(T169, T174))
U16_aaaaa(T46, T98, T95, T22, T9, app43_out_aaaa(T95, T22, T98, T9)) → p41_out_aaaaa(T46, T98, T95, T22, T9)
U27_aa(T191, T192, T193, T9, p41_out_aaaaa(.(T192, T198), X15, T202, T191, T9)) → qs1_out_aa(.(T191, .(T192, T193)), T9)
qs1_in_aa(.(T207, []), T9) → U28_aa(T207, T9, qs84_in_a(X14))
qs84_in_a([]) → qs84_out_a([])
U28_aa(T207, T9, qs84_out_a(X14)) → qs1_out_aa(.(T207, []), T9)
qs1_in_aa(.(T207, []), T9) → U29_aa(T207, T9, qs84_in_a(T210))
U29_aa(T207, T9, qs84_out_a(T210)) → U30_aa(T207, T9, qs84_in_a(X15))
U30_aa(T207, T9, qs84_out_a(X15)) → qs1_out_aa(.(T207, []), T9)
U29_aa(T207, T9, qs84_out_a(T210)) → U31_aa(T207, T9, T210, qs84_in_a(T213))
U31_aa(T207, T9, T210, qs84_out_a(T213)) → U32_aa(T207, T9, app43_in_gaga(T210, T207, T213, T9))
app43_in_gaga([], T157, T158, .(T157, T158)) → app43_out_gaga([], T157, T158, .(T157, T158))
app43_in_gaga(.(T169, T170), T171, T172, .(T169, T174)) → U13_gaga(T169, T170, T171, T172, T174, app43_in_gaga(T170, T171, T172, T174))
U13_gaga(T169, T170, T171, T172, T174, app43_out_gaga(T170, T171, T172, T174)) → app43_out_gaga(.(T169, T170), T171, T172, .(T169, T174))
U32_aa(T207, T9, app43_out_gaga(T210, T207, T213, T9)) → qs1_out_aa(.(T207, []), T9)
U20_aa(T22, T23, T24, T9, qs1_out_aa(.(T23, T45), X14)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U19_aa(T22, T23, T24, T9, part24_out_gaaa(T22, T24, T45, T46)) → U21_aa(T22, T23, T24, T9, T46, qs1_in_aa(.(T23, T45), T95))
U21_aa(T22, T23, T24, T9, T46, qs1_out_aa(.(T23, T45), T95)) → U22_aa(T22, T23, T24, T9, p41_in_aaaga(T46, X15, T95, T22, T9))
p41_in_aaaga(T46, X15, T95, T22, T9) → U14_aaaga(T46, X15, T95, T22, T9, qs42_in_aa(T46, X15))
U14_aaaga(T46, X15, T95, T22, T9, qs42_out_aa(T46, X15)) → p41_out_aaaga(T46, X15, T95, T22, T9)
p41_in_aaaga(T46, T98, T95, T22, T9) → U15_aaaga(T46, T98, T95, T22, T9, qs42_in_aa(T46, T98))
U15_aaaga(T46, T98, T95, T22, T9, qs42_out_aa(T46, T98)) → U16_aaaga(T46, T98, T95, T22, T9, app43_in_agaa(T95, T22, T98, T9))
app43_in_agaa([], T157, T158, .(T157, T158)) → app43_out_agaa([], T157, T158, .(T157, T158))
app43_in_agaa(.(T169, T170), T171, T172, .(T169, T174)) → U13_agaa(T169, T170, T171, T172, T174, app43_in_agaa(T170, T171, T172, T174))
U13_agaa(T169, T170, T171, T172, T174, app43_out_agaa(T170, T171, T172, T174)) → app43_out_agaa(.(T169, T170), T171, T172, .(T169, T174))
U16_aaaga(T46, T98, T95, T22, T9, app43_out_agaa(T95, T22, T98, T9)) → p41_out_aaaga(T46, T98, T95, T22, T9)
U22_aa(T22, T23, T24, T9, p41_out_aaaga(T46, X15, T95, T22, T9)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U20_ga(T22, T23, T24, T9, qs1_out_aa(.(T23, T45), X14)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U19_ga(T22, T23, T24, T9, part24_out_ggaa(T22, T24, T45, T46)) → U21_ga(T22, T23, T24, T9, T46, qs1_in_aa(.(T23, T45), T95))
U21_ga(T22, T23, T24, T9, T46, qs1_out_aa(.(T23, T45), T95)) → U22_ga(T22, T23, T24, T9, p41_in_aaaga(T46, X15, T95, T22, T9))
U22_ga(T22, T23, T24, T9, p41_out_aaaga(T46, X15, T95, T22, T9)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
qs1_in_ga(.(T191, .(T192, T193)), T9) → U23_ga(T191, T192, T193, T9, part24_in_ggaa(T191, T193, X336, X337))
U23_ga(T191, T192, T193, T9, part24_out_ggaa(T191, T193, X336, X337)) → qs1_out_ga(.(T191, .(T192, T193)), T9)
qs1_in_ga(.(T191, .(T192, T193)), T9) → U24_ga(T191, T192, T193, T9, part24_in_ggaa(T191, T193, T197, T198))
U24_ga(T191, T192, T193, T9, part24_out_ggaa(T191, T193, T197, T198)) → U25_ga(T191, T192, T193, T9, qs42_in_aa(T197, X14))
U25_ga(T191, T192, T193, T9, qs42_out_aa(T197, X14)) → qs1_out_ga(.(T191, .(T192, T193)), T9)
U24_ga(T191, T192, T193, T9, part24_out_ggaa(T191, T193, T197, T198)) → U26_ga(T191, T192, T193, T9, T198, qs42_in_aa(T197, T202))
U26_ga(T191, T192, T193, T9, T198, qs42_out_aa(T197, T202)) → U27_ga(T191, T192, T193, T9, p41_in_aaaga(.(T192, T198), X15, T202, T191, T9))
U27_ga(T191, T192, T193, T9, p41_out_aaaga(.(T192, T198), X15, T202, T191, T9)) → qs1_out_ga(.(T191, .(T192, T193)), T9)
qs1_in_ga(.(T207, []), T9) → U28_ga(T207, T9, qs84_in_a(X14))
U28_ga(T207, T9, qs84_out_a(X14)) → qs1_out_ga(.(T207, []), T9)
qs1_in_ga(.(T207, []), T9) → U29_ga(T207, T9, qs84_in_a(T210))
U29_ga(T207, T9, qs84_out_a(T210)) → U30_ga(T207, T9, qs84_in_a(X15))
U30_ga(T207, T9, qs84_out_a(X15)) → qs1_out_ga(.(T207, []), T9)
U29_ga(T207, T9, qs84_out_a(T210)) → U31_ga(T207, T9, T210, qs84_in_a(T213))
U31_ga(T207, T9, T210, qs84_out_a(T213)) → U32_ga(T207, T9, app43_in_ggga(T210, T207, T213, T9))
app43_in_ggga([], T157, T158, .(T157, T158)) → app43_out_ggga([], T157, T158, .(T157, T158))
app43_in_ggga(.(T169, T170), T171, T172, .(T169, T174)) → U13_ggga(T169, T170, T171, T172, T174, app43_in_ggga(T170, T171, T172, T174))
U13_ggga(T169, T170, T171, T172, T174, app43_out_ggga(T170, T171, T172, T174)) → app43_out_ggga(.(T169, T170), T171, T172, .(T169, T174))
U32_ga(T207, T9, app43_out_ggga(T210, T207, T213, T9)) → qs1_out_ga(.(T207, []), T9)
U2_GAAA(T62, T63, T64, X126, X127, less14_out_ga(T62, T63)) → PART24_IN_GAAA(T62, T64, X126, X127)
PART24_IN_GAAA(T62, .(T63, T64), .(T63, X126), X127) → U2_GAAA(T62, T63, T64, X126, X127, less14_in_ga(T62, T63))
PART24_IN_GAAA(T84, .(T85, T86), X177, .(T85, X178)) → PART24_IN_GAAA(T84, T86, X177, X178)
less14_in_ga(0, s(T33)) → less14_out_ga(0, s(T33))
less14_in_ga(s(T38), s(T39)) → U1_ga(T38, T39, less14_in_ga(T38, T39))
U1_ga(T38, T39, less14_out_ga(T38, T39)) → less14_out_ga(s(T38), s(T39))
U2_GAAA(T62, less14_out_ga) → PART24_IN_GAAA(T62)
PART24_IN_GAAA(T62) → U2_GAAA(T62, less14_in_ga(T62))
PART24_IN_GAAA(T84) → PART24_IN_GAAA(T84)
less14_in_ga(0) → less14_out_ga
less14_in_ga(s(T38)) → U1_ga(less14_in_ga(T38))
U1_ga(less14_out_ga) → less14_out_ga
less14_in_ga(x0)
U1_ga(x0)
PART24_IN_GAAA(0) → U2_GAAA(0, less14_out_ga)
PART24_IN_GAAA(s(x0)) → U2_GAAA(s(x0), U1_ga(less14_in_ga(x0)))
U2_GAAA(T62, less14_out_ga) → PART24_IN_GAAA(T62)
PART24_IN_GAAA(T84) → PART24_IN_GAAA(T84)
PART24_IN_GAAA(0) → U2_GAAA(0, less14_out_ga)
PART24_IN_GAAA(s(x0)) → U2_GAAA(s(x0), U1_ga(less14_in_ga(x0)))
less14_in_ga(0) → less14_out_ga
less14_in_ga(s(T38)) → U1_ga(less14_in_ga(T38))
U1_ga(less14_out_ga) → less14_out_ga
less14_in_ga(x0)
U1_ga(x0)
U2_GAAA(0, less14_out_ga) → PART24_IN_GAAA(0)
U2_GAAA(s(z0), less14_out_ga) → PART24_IN_GAAA(s(z0))
PART24_IN_GAAA(T84) → PART24_IN_GAAA(T84)
PART24_IN_GAAA(0) → U2_GAAA(0, less14_out_ga)
PART24_IN_GAAA(s(x0)) → U2_GAAA(s(x0), U1_ga(less14_in_ga(x0)))
U2_GAAA(0, less14_out_ga) → PART24_IN_GAAA(0)
U2_GAAA(s(z0), less14_out_ga) → PART24_IN_GAAA(s(z0))
less14_in_ga(0) → less14_out_ga
less14_in_ga(s(T38)) → U1_ga(less14_in_ga(T38))
U1_ga(less14_out_ga) → less14_out_ga
less14_in_ga(x0)
U1_ga(x0)
LESS14_IN_AA(s(T38), s(T39)) → LESS14_IN_AA(T38, T39)
qs1_in_ga([], []) → qs1_out_ga([], [])
qs1_in_ga(.(T22, .(T23, T24)), T9) → U17_ga(T22, T23, T24, T9, less14_in_gg(T22, T23))
less14_in_gg(0, s(T33)) → less14_out_gg(0, s(T33))
less14_in_gg(s(T38), s(T39)) → U1_gg(T38, T39, less14_in_gg(T38, T39))
U1_gg(T38, T39, less14_out_gg(T38, T39)) → less14_out_gg(s(T38), s(T39))
U17_ga(T22, T23, T24, T9, less14_out_gg(T22, T23)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U17_ga(T22, T23, T24, T9, less14_out_gg(T22, T23)) → U18_ga(T22, T23, T24, T9, part24_in_ggaa(T22, T24, X52, X53))
part24_in_ggaa(T62, .(T63, T64), .(T63, X126), X127) → U2_ggaa(T62, T63, T64, X126, X127, less14_in_gg(T62, T63))
U2_ggaa(T62, T63, T64, X126, X127, less14_out_gg(T62, T63)) → part24_out_ggaa(T62, .(T63, T64), .(T63, X126), X127)
U2_ggaa(T62, T63, T64, X126, X127, less14_out_gg(T62, T63)) → U3_ggaa(T62, T63, T64, X126, X127, part24_in_ggaa(T62, T64, X126, X127))
part24_in_ggaa(T84, .(T85, T86), X177, .(T85, X178)) → U4_ggaa(T84, T85, T86, X177, X178, part24_in_ggaa(T84, T86, X177, X178))
part24_in_ggaa(T92, [], [], []) → part24_out_ggaa(T92, [], [], [])
U4_ggaa(T84, T85, T86, X177, X178, part24_out_ggaa(T84, T86, X177, X178)) → part24_out_ggaa(T84, .(T85, T86), X177, .(T85, X178))
U3_ggaa(T62, T63, T64, X126, X127, part24_out_ggaa(T62, T64, X126, X127)) → part24_out_ggaa(T62, .(T63, T64), .(T63, X126), X127)
U18_ga(T22, T23, T24, T9, part24_out_ggaa(T22, T24, X52, X53)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U17_ga(T22, T23, T24, T9, less14_out_gg(T22, T23)) → U19_ga(T22, T23, T24, T9, part24_in_ggaa(T22, T24, T45, T46))
U19_ga(T22, T23, T24, T9, part24_out_ggaa(T22, T24, T45, T46)) → U20_ga(T22, T23, T24, T9, qs1_in_aa(.(T23, T45), X14))
qs1_in_aa([], []) → qs1_out_aa([], [])
qs1_in_aa(.(T22, .(T23, T24)), T9) → U17_aa(T22, T23, T24, T9, less14_in_aa(T22, T23))
less14_in_aa(0, s(T33)) → less14_out_aa(0, s(T33))
less14_in_aa(s(T38), s(T39)) → U1_aa(T38, T39, less14_in_aa(T38, T39))
U1_aa(T38, T39, less14_out_aa(T38, T39)) → less14_out_aa(s(T38), s(T39))
U17_aa(T22, T23, T24, T9, less14_out_aa(T22, T23)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U17_aa(T22, T23, T24, T9, less14_out_aa(T22, T23)) → U18_aa(T22, T23, T24, T9, part24_in_gaaa(T22, T24, X52, X53))
part24_in_gaaa(T62, .(T63, T64), .(T63, X126), X127) → U2_gaaa(T62, T63, T64, X126, X127, less14_in_ga(T62, T63))
less14_in_ga(0, s(T33)) → less14_out_ga(0, s(T33))
less14_in_ga(s(T38), s(T39)) → U1_ga(T38, T39, less14_in_ga(T38, T39))
U1_ga(T38, T39, less14_out_ga(T38, T39)) → less14_out_ga(s(T38), s(T39))
U2_gaaa(T62, T63, T64, X126, X127, less14_out_ga(T62, T63)) → part24_out_gaaa(T62, .(T63, T64), .(T63, X126), X127)
U2_gaaa(T62, T63, T64, X126, X127, less14_out_ga(T62, T63)) → U3_gaaa(T62, T63, T64, X126, X127, part24_in_gaaa(T62, T64, X126, X127))
part24_in_gaaa(T84, .(T85, T86), X177, .(T85, X178)) → U4_gaaa(T84, T85, T86, X177, X178, part24_in_gaaa(T84, T86, X177, X178))
part24_in_gaaa(T92, [], [], []) → part24_out_gaaa(T92, [], [], [])
U4_gaaa(T84, T85, T86, X177, X178, part24_out_gaaa(T84, T86, X177, X178)) → part24_out_gaaa(T84, .(T85, T86), X177, .(T85, X178))
U3_gaaa(T62, T63, T64, X126, X127, part24_out_gaaa(T62, T64, X126, X127)) → part24_out_gaaa(T62, .(T63, T64), .(T63, X126), X127)
U18_aa(T22, T23, T24, T9, part24_out_gaaa(T22, T24, X52, X53)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U17_aa(T22, T23, T24, T9, less14_out_aa(T22, T23)) → U19_aa(T22, T23, T24, T9, part24_in_gaaa(T22, T24, T45, T46))
U19_aa(T22, T23, T24, T9, part24_out_gaaa(T22, T24, T45, T46)) → U20_aa(T22, T23, T24, T9, qs1_in_aa(.(T23, T45), X14))
qs1_in_aa(.(T191, .(T192, T193)), T9) → U23_aa(T191, T192, T193, T9, part24_in_aaaa(T191, T193, X336, X337))
part24_in_aaaa(T62, .(T63, T64), .(T63, X126), X127) → U2_aaaa(T62, T63, T64, X126, X127, less14_in_aa(T62, T63))
U2_aaaa(T62, T63, T64, X126, X127, less14_out_aa(T62, T63)) → part24_out_aaaa(T62, .(T63, T64), .(T63, X126), X127)
U2_aaaa(T62, T63, T64, X126, X127, less14_out_aa(T62, T63)) → U3_aaaa(T62, T63, T64, X126, X127, part24_in_gaaa(T62, T64, X126, X127))
U3_aaaa(T62, T63, T64, X126, X127, part24_out_gaaa(T62, T64, X126, X127)) → part24_out_aaaa(T62, .(T63, T64), .(T63, X126), X127)
part24_in_aaaa(T84, .(T85, T86), X177, .(T85, X178)) → U4_aaaa(T84, T85, T86, X177, X178, part24_in_aaaa(T84, T86, X177, X178))
part24_in_aaaa(T92, [], [], []) → part24_out_aaaa(T92, [], [], [])
U4_aaaa(T84, T85, T86, X177, X178, part24_out_aaaa(T84, T86, X177, X178)) → part24_out_aaaa(T84, .(T85, T86), X177, .(T85, X178))
U23_aa(T191, T192, T193, T9, part24_out_aaaa(T191, T193, X336, X337)) → qs1_out_aa(.(T191, .(T192, T193)), T9)
qs1_in_aa(.(T191, .(T192, T193)), T9) → U24_aa(T191, T192, T193, T9, part24_in_aaaa(T191, T193, T197, T198))
U24_aa(T191, T192, T193, T9, part24_out_aaaa(T191, T193, T197, T198)) → U25_aa(T191, T192, T193, T9, qs42_in_aa(T197, X14))
qs42_in_aa([], []) → qs42_out_aa([], [])
qs42_in_aa(.(T103, T104), X230) → U5_aa(T103, T104, X230, part24_in_aaaa(T103, T104, X226, X227))
U5_aa(T103, T104, X230, part24_out_aaaa(T103, T104, X226, X227)) → qs42_out_aa(.(T103, T104), X230)
qs42_in_aa(.(T103, T104), X230) → U6_aa(T103, T104, X230, part24_in_aaaa(T103, T104, T108, T109))
U6_aa(T103, T104, X230, part24_out_aaaa(T103, T104, T108, T109)) → U7_aa(T103, T104, X230, qs42_in_aa(T108, X228))
U7_aa(T103, T104, X230, qs42_out_aa(T108, X228)) → qs42_out_aa(.(T103, T104), X230)
U6_aa(T103, T104, X230, part24_out_aaaa(T103, T104, T108, T109)) → U8_aa(T103, T104, X230, T109, qs42_in_aa(T108, T113))
U8_aa(T103, T104, X230, T109, qs42_out_aa(T108, T113)) → U9_aa(T103, T104, X230, qs42_in_aa(T109, X229))
U9_aa(T103, T104, X230, qs42_out_aa(T109, X229)) → qs42_out_aa(.(T103, T104), X230)
U8_aa(T103, T104, X230, T109, qs42_out_aa(T108, T113)) → U10_aa(T103, T104, X230, T113, qs42_in_aa(T109, T114))
U10_aa(T103, T104, X230, T113, qs42_out_aa(T109, T114)) → U11_aa(T103, T104, X230, app57_in_aaaa(T113, T103, T114, X230))
app57_in_aaaa([], T127, T128, .(T127, T128)) → app57_out_aaaa([], T127, T128, .(T127, T128))
app57_in_aaaa(.(T137, T138), T139, T140, .(T137, X270)) → U12_aaaa(T137, T138, T139, T140, X270, app57_in_aaaa(T138, T139, T140, X270))
U12_aaaa(T137, T138, T139, T140, X270, app57_out_aaaa(T138, T139, T140, X270)) → app57_out_aaaa(.(T137, T138), T139, T140, .(T137, X270))
U11_aa(T103, T104, X230, app57_out_aaaa(T113, T103, T114, X230)) → qs42_out_aa(.(T103, T104), X230)
U25_aa(T191, T192, T193, T9, qs42_out_aa(T197, X14)) → qs1_out_aa(.(T191, .(T192, T193)), T9)
U24_aa(T191, T192, T193, T9, part24_out_aaaa(T191, T193, T197, T198)) → U26_aa(T191, T192, T193, T9, T198, qs42_in_aa(T197, T202))
U26_aa(T191, T192, T193, T9, T198, qs42_out_aa(T197, T202)) → U27_aa(T191, T192, T193, T9, p41_in_aaaaa(.(T192, T198), X15, T202, T191, T9))
p41_in_aaaaa(T46, X15, T95, T22, T9) → U14_aaaaa(T46, X15, T95, T22, T9, qs42_in_aa(T46, X15))
U14_aaaaa(T46, X15, T95, T22, T9, qs42_out_aa(T46, X15)) → p41_out_aaaaa(T46, X15, T95, T22, T9)
p41_in_aaaaa(T46, T98, T95, T22, T9) → U15_aaaaa(T46, T98, T95, T22, T9, qs42_in_aa(T46, T98))
U15_aaaaa(T46, T98, T95, T22, T9, qs42_out_aa(T46, T98)) → U16_aaaaa(T46, T98, T95, T22, T9, app43_in_aaaa(T95, T22, T98, T9))
app43_in_aaaa([], T157, T158, .(T157, T158)) → app43_out_aaaa([], T157, T158, .(T157, T158))
app43_in_aaaa(.(T169, T170), T171, T172, .(T169, T174)) → U13_aaaa(T169, T170, T171, T172, T174, app43_in_aaaa(T170, T171, T172, T174))
U13_aaaa(T169, T170, T171, T172, T174, app43_out_aaaa(T170, T171, T172, T174)) → app43_out_aaaa(.(T169, T170), T171, T172, .(T169, T174))
U16_aaaaa(T46, T98, T95, T22, T9, app43_out_aaaa(T95, T22, T98, T9)) → p41_out_aaaaa(T46, T98, T95, T22, T9)
U27_aa(T191, T192, T193, T9, p41_out_aaaaa(.(T192, T198), X15, T202, T191, T9)) → qs1_out_aa(.(T191, .(T192, T193)), T9)
qs1_in_aa(.(T207, []), T9) → U28_aa(T207, T9, qs84_in_a(X14))
qs84_in_a([]) → qs84_out_a([])
U28_aa(T207, T9, qs84_out_a(X14)) → qs1_out_aa(.(T207, []), T9)
qs1_in_aa(.(T207, []), T9) → U29_aa(T207, T9, qs84_in_a(T210))
U29_aa(T207, T9, qs84_out_a(T210)) → U30_aa(T207, T9, qs84_in_a(X15))
U30_aa(T207, T9, qs84_out_a(X15)) → qs1_out_aa(.(T207, []), T9)
U29_aa(T207, T9, qs84_out_a(T210)) → U31_aa(T207, T9, T210, qs84_in_a(T213))
U31_aa(T207, T9, T210, qs84_out_a(T213)) → U32_aa(T207, T9, app43_in_gaga(T210, T207, T213, T9))
app43_in_gaga([], T157, T158, .(T157, T158)) → app43_out_gaga([], T157, T158, .(T157, T158))
app43_in_gaga(.(T169, T170), T171, T172, .(T169, T174)) → U13_gaga(T169, T170, T171, T172, T174, app43_in_gaga(T170, T171, T172, T174))
U13_gaga(T169, T170, T171, T172, T174, app43_out_gaga(T170, T171, T172, T174)) → app43_out_gaga(.(T169, T170), T171, T172, .(T169, T174))
U32_aa(T207, T9, app43_out_gaga(T210, T207, T213, T9)) → qs1_out_aa(.(T207, []), T9)
U20_aa(T22, T23, T24, T9, qs1_out_aa(.(T23, T45), X14)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U19_aa(T22, T23, T24, T9, part24_out_gaaa(T22, T24, T45, T46)) → U21_aa(T22, T23, T24, T9, T46, qs1_in_aa(.(T23, T45), T95))
U21_aa(T22, T23, T24, T9, T46, qs1_out_aa(.(T23, T45), T95)) → U22_aa(T22, T23, T24, T9, p41_in_aaaga(T46, X15, T95, T22, T9))
p41_in_aaaga(T46, X15, T95, T22, T9) → U14_aaaga(T46, X15, T95, T22, T9, qs42_in_aa(T46, X15))
U14_aaaga(T46, X15, T95, T22, T9, qs42_out_aa(T46, X15)) → p41_out_aaaga(T46, X15, T95, T22, T9)
p41_in_aaaga(T46, T98, T95, T22, T9) → U15_aaaga(T46, T98, T95, T22, T9, qs42_in_aa(T46, T98))
U15_aaaga(T46, T98, T95, T22, T9, qs42_out_aa(T46, T98)) → U16_aaaga(T46, T98, T95, T22, T9, app43_in_agaa(T95, T22, T98, T9))
app43_in_agaa([], T157, T158, .(T157, T158)) → app43_out_agaa([], T157, T158, .(T157, T158))
app43_in_agaa(.(T169, T170), T171, T172, .(T169, T174)) → U13_agaa(T169, T170, T171, T172, T174, app43_in_agaa(T170, T171, T172, T174))
U13_agaa(T169, T170, T171, T172, T174, app43_out_agaa(T170, T171, T172, T174)) → app43_out_agaa(.(T169, T170), T171, T172, .(T169, T174))
U16_aaaga(T46, T98, T95, T22, T9, app43_out_agaa(T95, T22, T98, T9)) → p41_out_aaaga(T46, T98, T95, T22, T9)
U22_aa(T22, T23, T24, T9, p41_out_aaaga(T46, X15, T95, T22, T9)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U20_ga(T22, T23, T24, T9, qs1_out_aa(.(T23, T45), X14)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U19_ga(T22, T23, T24, T9, part24_out_ggaa(T22, T24, T45, T46)) → U21_ga(T22, T23, T24, T9, T46, qs1_in_aa(.(T23, T45), T95))
U21_ga(T22, T23, T24, T9, T46, qs1_out_aa(.(T23, T45), T95)) → U22_ga(T22, T23, T24, T9, p41_in_aaaga(T46, X15, T95, T22, T9))
U22_ga(T22, T23, T24, T9, p41_out_aaaga(T46, X15, T95, T22, T9)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
qs1_in_ga(.(T191, .(T192, T193)), T9) → U23_ga(T191, T192, T193, T9, part24_in_ggaa(T191, T193, X336, X337))
U23_ga(T191, T192, T193, T9, part24_out_ggaa(T191, T193, X336, X337)) → qs1_out_ga(.(T191, .(T192, T193)), T9)
qs1_in_ga(.(T191, .(T192, T193)), T9) → U24_ga(T191, T192, T193, T9, part24_in_ggaa(T191, T193, T197, T198))
U24_ga(T191, T192, T193, T9, part24_out_ggaa(T191, T193, T197, T198)) → U25_ga(T191, T192, T193, T9, qs42_in_aa(T197, X14))
U25_ga(T191, T192, T193, T9, qs42_out_aa(T197, X14)) → qs1_out_ga(.(T191, .(T192, T193)), T9)
U24_ga(T191, T192, T193, T9, part24_out_ggaa(T191, T193, T197, T198)) → U26_ga(T191, T192, T193, T9, T198, qs42_in_aa(T197, T202))
U26_ga(T191, T192, T193, T9, T198, qs42_out_aa(T197, T202)) → U27_ga(T191, T192, T193, T9, p41_in_aaaga(.(T192, T198), X15, T202, T191, T9))
U27_ga(T191, T192, T193, T9, p41_out_aaaga(.(T192, T198), X15, T202, T191, T9)) → qs1_out_ga(.(T191, .(T192, T193)), T9)
qs1_in_ga(.(T207, []), T9) → U28_ga(T207, T9, qs84_in_a(X14))
U28_ga(T207, T9, qs84_out_a(X14)) → qs1_out_ga(.(T207, []), T9)
qs1_in_ga(.(T207, []), T9) → U29_ga(T207, T9, qs84_in_a(T210))
U29_ga(T207, T9, qs84_out_a(T210)) → U30_ga(T207, T9, qs84_in_a(X15))
U30_ga(T207, T9, qs84_out_a(X15)) → qs1_out_ga(.(T207, []), T9)
U29_ga(T207, T9, qs84_out_a(T210)) → U31_ga(T207, T9, T210, qs84_in_a(T213))
U31_ga(T207, T9, T210, qs84_out_a(T213)) → U32_ga(T207, T9, app43_in_ggga(T210, T207, T213, T9))
app43_in_ggga([], T157, T158, .(T157, T158)) → app43_out_ggga([], T157, T158, .(T157, T158))
app43_in_ggga(.(T169, T170), T171, T172, .(T169, T174)) → U13_ggga(T169, T170, T171, T172, T174, app43_in_ggga(T170, T171, T172, T174))
U13_ggga(T169, T170, T171, T172, T174, app43_out_ggga(T170, T171, T172, T174)) → app43_out_ggga(.(T169, T170), T171, T172, .(T169, T174))
U32_ga(T207, T9, app43_out_ggga(T210, T207, T213, T9)) → qs1_out_ga(.(T207, []), T9)
LESS14_IN_AA(s(T38), s(T39)) → LESS14_IN_AA(T38, T39)
LESS14_IN_AA → LESS14_IN_AA
PART24_IN_AAAA(T84, .(T85, T86), X177, .(T85, X178)) → PART24_IN_AAAA(T84, T86, X177, X178)
qs1_in_ga([], []) → qs1_out_ga([], [])
qs1_in_ga(.(T22, .(T23, T24)), T9) → U17_ga(T22, T23, T24, T9, less14_in_gg(T22, T23))
less14_in_gg(0, s(T33)) → less14_out_gg(0, s(T33))
less14_in_gg(s(T38), s(T39)) → U1_gg(T38, T39, less14_in_gg(T38, T39))
U1_gg(T38, T39, less14_out_gg(T38, T39)) → less14_out_gg(s(T38), s(T39))
U17_ga(T22, T23, T24, T9, less14_out_gg(T22, T23)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U17_ga(T22, T23, T24, T9, less14_out_gg(T22, T23)) → U18_ga(T22, T23, T24, T9, part24_in_ggaa(T22, T24, X52, X53))
part24_in_ggaa(T62, .(T63, T64), .(T63, X126), X127) → U2_ggaa(T62, T63, T64, X126, X127, less14_in_gg(T62, T63))
U2_ggaa(T62, T63, T64, X126, X127, less14_out_gg(T62, T63)) → part24_out_ggaa(T62, .(T63, T64), .(T63, X126), X127)
U2_ggaa(T62, T63, T64, X126, X127, less14_out_gg(T62, T63)) → U3_ggaa(T62, T63, T64, X126, X127, part24_in_ggaa(T62, T64, X126, X127))
part24_in_ggaa(T84, .(T85, T86), X177, .(T85, X178)) → U4_ggaa(T84, T85, T86, X177, X178, part24_in_ggaa(T84, T86, X177, X178))
part24_in_ggaa(T92, [], [], []) → part24_out_ggaa(T92, [], [], [])
U4_ggaa(T84, T85, T86, X177, X178, part24_out_ggaa(T84, T86, X177, X178)) → part24_out_ggaa(T84, .(T85, T86), X177, .(T85, X178))
U3_ggaa(T62, T63, T64, X126, X127, part24_out_ggaa(T62, T64, X126, X127)) → part24_out_ggaa(T62, .(T63, T64), .(T63, X126), X127)
U18_ga(T22, T23, T24, T9, part24_out_ggaa(T22, T24, X52, X53)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U17_ga(T22, T23, T24, T9, less14_out_gg(T22, T23)) → U19_ga(T22, T23, T24, T9, part24_in_ggaa(T22, T24, T45, T46))
U19_ga(T22, T23, T24, T9, part24_out_ggaa(T22, T24, T45, T46)) → U20_ga(T22, T23, T24, T9, qs1_in_aa(.(T23, T45), X14))
qs1_in_aa([], []) → qs1_out_aa([], [])
qs1_in_aa(.(T22, .(T23, T24)), T9) → U17_aa(T22, T23, T24, T9, less14_in_aa(T22, T23))
less14_in_aa(0, s(T33)) → less14_out_aa(0, s(T33))
less14_in_aa(s(T38), s(T39)) → U1_aa(T38, T39, less14_in_aa(T38, T39))
U1_aa(T38, T39, less14_out_aa(T38, T39)) → less14_out_aa(s(T38), s(T39))
U17_aa(T22, T23, T24, T9, less14_out_aa(T22, T23)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U17_aa(T22, T23, T24, T9, less14_out_aa(T22, T23)) → U18_aa(T22, T23, T24, T9, part24_in_gaaa(T22, T24, X52, X53))
part24_in_gaaa(T62, .(T63, T64), .(T63, X126), X127) → U2_gaaa(T62, T63, T64, X126, X127, less14_in_ga(T62, T63))
less14_in_ga(0, s(T33)) → less14_out_ga(0, s(T33))
less14_in_ga(s(T38), s(T39)) → U1_ga(T38, T39, less14_in_ga(T38, T39))
U1_ga(T38, T39, less14_out_ga(T38, T39)) → less14_out_ga(s(T38), s(T39))
U2_gaaa(T62, T63, T64, X126, X127, less14_out_ga(T62, T63)) → part24_out_gaaa(T62, .(T63, T64), .(T63, X126), X127)
U2_gaaa(T62, T63, T64, X126, X127, less14_out_ga(T62, T63)) → U3_gaaa(T62, T63, T64, X126, X127, part24_in_gaaa(T62, T64, X126, X127))
part24_in_gaaa(T84, .(T85, T86), X177, .(T85, X178)) → U4_gaaa(T84, T85, T86, X177, X178, part24_in_gaaa(T84, T86, X177, X178))
part24_in_gaaa(T92, [], [], []) → part24_out_gaaa(T92, [], [], [])
U4_gaaa(T84, T85, T86, X177, X178, part24_out_gaaa(T84, T86, X177, X178)) → part24_out_gaaa(T84, .(T85, T86), X177, .(T85, X178))
U3_gaaa(T62, T63, T64, X126, X127, part24_out_gaaa(T62, T64, X126, X127)) → part24_out_gaaa(T62, .(T63, T64), .(T63, X126), X127)
U18_aa(T22, T23, T24, T9, part24_out_gaaa(T22, T24, X52, X53)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U17_aa(T22, T23, T24, T9, less14_out_aa(T22, T23)) → U19_aa(T22, T23, T24, T9, part24_in_gaaa(T22, T24, T45, T46))
U19_aa(T22, T23, T24, T9, part24_out_gaaa(T22, T24, T45, T46)) → U20_aa(T22, T23, T24, T9, qs1_in_aa(.(T23, T45), X14))
qs1_in_aa(.(T191, .(T192, T193)), T9) → U23_aa(T191, T192, T193, T9, part24_in_aaaa(T191, T193, X336, X337))
part24_in_aaaa(T62, .(T63, T64), .(T63, X126), X127) → U2_aaaa(T62, T63, T64, X126, X127, less14_in_aa(T62, T63))
U2_aaaa(T62, T63, T64, X126, X127, less14_out_aa(T62, T63)) → part24_out_aaaa(T62, .(T63, T64), .(T63, X126), X127)
U2_aaaa(T62, T63, T64, X126, X127, less14_out_aa(T62, T63)) → U3_aaaa(T62, T63, T64, X126, X127, part24_in_gaaa(T62, T64, X126, X127))
U3_aaaa(T62, T63, T64, X126, X127, part24_out_gaaa(T62, T64, X126, X127)) → part24_out_aaaa(T62, .(T63, T64), .(T63, X126), X127)
part24_in_aaaa(T84, .(T85, T86), X177, .(T85, X178)) → U4_aaaa(T84, T85, T86, X177, X178, part24_in_aaaa(T84, T86, X177, X178))
part24_in_aaaa(T92, [], [], []) → part24_out_aaaa(T92, [], [], [])
U4_aaaa(T84, T85, T86, X177, X178, part24_out_aaaa(T84, T86, X177, X178)) → part24_out_aaaa(T84, .(T85, T86), X177, .(T85, X178))
U23_aa(T191, T192, T193, T9, part24_out_aaaa(T191, T193, X336, X337)) → qs1_out_aa(.(T191, .(T192, T193)), T9)
qs1_in_aa(.(T191, .(T192, T193)), T9) → U24_aa(T191, T192, T193, T9, part24_in_aaaa(T191, T193, T197, T198))
U24_aa(T191, T192, T193, T9, part24_out_aaaa(T191, T193, T197, T198)) → U25_aa(T191, T192, T193, T9, qs42_in_aa(T197, X14))
qs42_in_aa([], []) → qs42_out_aa([], [])
qs42_in_aa(.(T103, T104), X230) → U5_aa(T103, T104, X230, part24_in_aaaa(T103, T104, X226, X227))
U5_aa(T103, T104, X230, part24_out_aaaa(T103, T104, X226, X227)) → qs42_out_aa(.(T103, T104), X230)
qs42_in_aa(.(T103, T104), X230) → U6_aa(T103, T104, X230, part24_in_aaaa(T103, T104, T108, T109))
U6_aa(T103, T104, X230, part24_out_aaaa(T103, T104, T108, T109)) → U7_aa(T103, T104, X230, qs42_in_aa(T108, X228))
U7_aa(T103, T104, X230, qs42_out_aa(T108, X228)) → qs42_out_aa(.(T103, T104), X230)
U6_aa(T103, T104, X230, part24_out_aaaa(T103, T104, T108, T109)) → U8_aa(T103, T104, X230, T109, qs42_in_aa(T108, T113))
U8_aa(T103, T104, X230, T109, qs42_out_aa(T108, T113)) → U9_aa(T103, T104, X230, qs42_in_aa(T109, X229))
U9_aa(T103, T104, X230, qs42_out_aa(T109, X229)) → qs42_out_aa(.(T103, T104), X230)
U8_aa(T103, T104, X230, T109, qs42_out_aa(T108, T113)) → U10_aa(T103, T104, X230, T113, qs42_in_aa(T109, T114))
U10_aa(T103, T104, X230, T113, qs42_out_aa(T109, T114)) → U11_aa(T103, T104, X230, app57_in_aaaa(T113, T103, T114, X230))
app57_in_aaaa([], T127, T128, .(T127, T128)) → app57_out_aaaa([], T127, T128, .(T127, T128))
app57_in_aaaa(.(T137, T138), T139, T140, .(T137, X270)) → U12_aaaa(T137, T138, T139, T140, X270, app57_in_aaaa(T138, T139, T140, X270))
U12_aaaa(T137, T138, T139, T140, X270, app57_out_aaaa(T138, T139, T140, X270)) → app57_out_aaaa(.(T137, T138), T139, T140, .(T137, X270))
U11_aa(T103, T104, X230, app57_out_aaaa(T113, T103, T114, X230)) → qs42_out_aa(.(T103, T104), X230)
U25_aa(T191, T192, T193, T9, qs42_out_aa(T197, X14)) → qs1_out_aa(.(T191, .(T192, T193)), T9)
U24_aa(T191, T192, T193, T9, part24_out_aaaa(T191, T193, T197, T198)) → U26_aa(T191, T192, T193, T9, T198, qs42_in_aa(T197, T202))
U26_aa(T191, T192, T193, T9, T198, qs42_out_aa(T197, T202)) → U27_aa(T191, T192, T193, T9, p41_in_aaaaa(.(T192, T198), X15, T202, T191, T9))
p41_in_aaaaa(T46, X15, T95, T22, T9) → U14_aaaaa(T46, X15, T95, T22, T9, qs42_in_aa(T46, X15))
U14_aaaaa(T46, X15, T95, T22, T9, qs42_out_aa(T46, X15)) → p41_out_aaaaa(T46, X15, T95, T22, T9)
p41_in_aaaaa(T46, T98, T95, T22, T9) → U15_aaaaa(T46, T98, T95, T22, T9, qs42_in_aa(T46, T98))
U15_aaaaa(T46, T98, T95, T22, T9, qs42_out_aa(T46, T98)) → U16_aaaaa(T46, T98, T95, T22, T9, app43_in_aaaa(T95, T22, T98, T9))
app43_in_aaaa([], T157, T158, .(T157, T158)) → app43_out_aaaa([], T157, T158, .(T157, T158))
app43_in_aaaa(.(T169, T170), T171, T172, .(T169, T174)) → U13_aaaa(T169, T170, T171, T172, T174, app43_in_aaaa(T170, T171, T172, T174))
U13_aaaa(T169, T170, T171, T172, T174, app43_out_aaaa(T170, T171, T172, T174)) → app43_out_aaaa(.(T169, T170), T171, T172, .(T169, T174))
U16_aaaaa(T46, T98, T95, T22, T9, app43_out_aaaa(T95, T22, T98, T9)) → p41_out_aaaaa(T46, T98, T95, T22, T9)
U27_aa(T191, T192, T193, T9, p41_out_aaaaa(.(T192, T198), X15, T202, T191, T9)) → qs1_out_aa(.(T191, .(T192, T193)), T9)
qs1_in_aa(.(T207, []), T9) → U28_aa(T207, T9, qs84_in_a(X14))
qs84_in_a([]) → qs84_out_a([])
U28_aa(T207, T9, qs84_out_a(X14)) → qs1_out_aa(.(T207, []), T9)
qs1_in_aa(.(T207, []), T9) → U29_aa(T207, T9, qs84_in_a(T210))
U29_aa(T207, T9, qs84_out_a(T210)) → U30_aa(T207, T9, qs84_in_a(X15))
U30_aa(T207, T9, qs84_out_a(X15)) → qs1_out_aa(.(T207, []), T9)
U29_aa(T207, T9, qs84_out_a(T210)) → U31_aa(T207, T9, T210, qs84_in_a(T213))
U31_aa(T207, T9, T210, qs84_out_a(T213)) → U32_aa(T207, T9, app43_in_gaga(T210, T207, T213, T9))
app43_in_gaga([], T157, T158, .(T157, T158)) → app43_out_gaga([], T157, T158, .(T157, T158))
app43_in_gaga(.(T169, T170), T171, T172, .(T169, T174)) → U13_gaga(T169, T170, T171, T172, T174, app43_in_gaga(T170, T171, T172, T174))
U13_gaga(T169, T170, T171, T172, T174, app43_out_gaga(T170, T171, T172, T174)) → app43_out_gaga(.(T169, T170), T171, T172, .(T169, T174))
U32_aa(T207, T9, app43_out_gaga(T210, T207, T213, T9)) → qs1_out_aa(.(T207, []), T9)
U20_aa(T22, T23, T24, T9, qs1_out_aa(.(T23, T45), X14)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U19_aa(T22, T23, T24, T9, part24_out_gaaa(T22, T24, T45, T46)) → U21_aa(T22, T23, T24, T9, T46, qs1_in_aa(.(T23, T45), T95))
U21_aa(T22, T23, T24, T9, T46, qs1_out_aa(.(T23, T45), T95)) → U22_aa(T22, T23, T24, T9, p41_in_aaaga(T46, X15, T95, T22, T9))
p41_in_aaaga(T46, X15, T95, T22, T9) → U14_aaaga(T46, X15, T95, T22, T9, qs42_in_aa(T46, X15))
U14_aaaga(T46, X15, T95, T22, T9, qs42_out_aa(T46, X15)) → p41_out_aaaga(T46, X15, T95, T22, T9)
p41_in_aaaga(T46, T98, T95, T22, T9) → U15_aaaga(T46, T98, T95, T22, T9, qs42_in_aa(T46, T98))
U15_aaaga(T46, T98, T95, T22, T9, qs42_out_aa(T46, T98)) → U16_aaaga(T46, T98, T95, T22, T9, app43_in_agaa(T95, T22, T98, T9))
app43_in_agaa([], T157, T158, .(T157, T158)) → app43_out_agaa([], T157, T158, .(T157, T158))
app43_in_agaa(.(T169, T170), T171, T172, .(T169, T174)) → U13_agaa(T169, T170, T171, T172, T174, app43_in_agaa(T170, T171, T172, T174))
U13_agaa(T169, T170, T171, T172, T174, app43_out_agaa(T170, T171, T172, T174)) → app43_out_agaa(.(T169, T170), T171, T172, .(T169, T174))
U16_aaaga(T46, T98, T95, T22, T9, app43_out_agaa(T95, T22, T98, T9)) → p41_out_aaaga(T46, T98, T95, T22, T9)
U22_aa(T22, T23, T24, T9, p41_out_aaaga(T46, X15, T95, T22, T9)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U20_ga(T22, T23, T24, T9, qs1_out_aa(.(T23, T45), X14)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U19_ga(T22, T23, T24, T9, part24_out_ggaa(T22, T24, T45, T46)) → U21_ga(T22, T23, T24, T9, T46, qs1_in_aa(.(T23, T45), T95))
U21_ga(T22, T23, T24, T9, T46, qs1_out_aa(.(T23, T45), T95)) → U22_ga(T22, T23, T24, T9, p41_in_aaaga(T46, X15, T95, T22, T9))
U22_ga(T22, T23, T24, T9, p41_out_aaaga(T46, X15, T95, T22, T9)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
qs1_in_ga(.(T191, .(T192, T193)), T9) → U23_ga(T191, T192, T193, T9, part24_in_ggaa(T191, T193, X336, X337))
U23_ga(T191, T192, T193, T9, part24_out_ggaa(T191, T193, X336, X337)) → qs1_out_ga(.(T191, .(T192, T193)), T9)
qs1_in_ga(.(T191, .(T192, T193)), T9) → U24_ga(T191, T192, T193, T9, part24_in_ggaa(T191, T193, T197, T198))
U24_ga(T191, T192, T193, T9, part24_out_ggaa(T191, T193, T197, T198)) → U25_ga(T191, T192, T193, T9, qs42_in_aa(T197, X14))
U25_ga(T191, T192, T193, T9, qs42_out_aa(T197, X14)) → qs1_out_ga(.(T191, .(T192, T193)), T9)
U24_ga(T191, T192, T193, T9, part24_out_ggaa(T191, T193, T197, T198)) → U26_ga(T191, T192, T193, T9, T198, qs42_in_aa(T197, T202))
U26_ga(T191, T192, T193, T9, T198, qs42_out_aa(T197, T202)) → U27_ga(T191, T192, T193, T9, p41_in_aaaga(.(T192, T198), X15, T202, T191, T9))
U27_ga(T191, T192, T193, T9, p41_out_aaaga(.(T192, T198), X15, T202, T191, T9)) → qs1_out_ga(.(T191, .(T192, T193)), T9)
qs1_in_ga(.(T207, []), T9) → U28_ga(T207, T9, qs84_in_a(X14))
U28_ga(T207, T9, qs84_out_a(X14)) → qs1_out_ga(.(T207, []), T9)
qs1_in_ga(.(T207, []), T9) → U29_ga(T207, T9, qs84_in_a(T210))
U29_ga(T207, T9, qs84_out_a(T210)) → U30_ga(T207, T9, qs84_in_a(X15))
U30_ga(T207, T9, qs84_out_a(X15)) → qs1_out_ga(.(T207, []), T9)
U29_ga(T207, T9, qs84_out_a(T210)) → U31_ga(T207, T9, T210, qs84_in_a(T213))
U31_ga(T207, T9, T210, qs84_out_a(T213)) → U32_ga(T207, T9, app43_in_ggga(T210, T207, T213, T9))
app43_in_ggga([], T157, T158, .(T157, T158)) → app43_out_ggga([], T157, T158, .(T157, T158))
app43_in_ggga(.(T169, T170), T171, T172, .(T169, T174)) → U13_ggga(T169, T170, T171, T172, T174, app43_in_ggga(T170, T171, T172, T174))
U13_ggga(T169, T170, T171, T172, T174, app43_out_ggga(T170, T171, T172, T174)) → app43_out_ggga(.(T169, T170), T171, T172, .(T169, T174))
U32_ga(T207, T9, app43_out_ggga(T210, T207, T213, T9)) → qs1_out_ga(.(T207, []), T9)
PART24_IN_AAAA(T84, .(T85, T86), X177, .(T85, X178)) → PART24_IN_AAAA(T84, T86, X177, X178)
PART24_IN_AAAA → PART24_IN_AAAA
QS42_IN_AA(.(T103, T104), X230) → U6_AA(T103, T104, X230, part24_in_aaaa(T103, T104, T108, T109))
U6_AA(T103, T104, X230, part24_out_aaaa(T103, T104, T108, T109)) → QS42_IN_AA(T108, X228)
U6_AA(T103, T104, X230, part24_out_aaaa(T103, T104, T108, T109)) → U8_AA(T103, T104, X230, T109, qs42_in_aa(T108, T113))
U8_AA(T103, T104, X230, T109, qs42_out_aa(T108, T113)) → QS42_IN_AA(T109, X229)
qs1_in_ga([], []) → qs1_out_ga([], [])
qs1_in_ga(.(T22, .(T23, T24)), T9) → U17_ga(T22, T23, T24, T9, less14_in_gg(T22, T23))
less14_in_gg(0, s(T33)) → less14_out_gg(0, s(T33))
less14_in_gg(s(T38), s(T39)) → U1_gg(T38, T39, less14_in_gg(T38, T39))
U1_gg(T38, T39, less14_out_gg(T38, T39)) → less14_out_gg(s(T38), s(T39))
U17_ga(T22, T23, T24, T9, less14_out_gg(T22, T23)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U17_ga(T22, T23, T24, T9, less14_out_gg(T22, T23)) → U18_ga(T22, T23, T24, T9, part24_in_ggaa(T22, T24, X52, X53))
part24_in_ggaa(T62, .(T63, T64), .(T63, X126), X127) → U2_ggaa(T62, T63, T64, X126, X127, less14_in_gg(T62, T63))
U2_ggaa(T62, T63, T64, X126, X127, less14_out_gg(T62, T63)) → part24_out_ggaa(T62, .(T63, T64), .(T63, X126), X127)
U2_ggaa(T62, T63, T64, X126, X127, less14_out_gg(T62, T63)) → U3_ggaa(T62, T63, T64, X126, X127, part24_in_ggaa(T62, T64, X126, X127))
part24_in_ggaa(T84, .(T85, T86), X177, .(T85, X178)) → U4_ggaa(T84, T85, T86, X177, X178, part24_in_ggaa(T84, T86, X177, X178))
part24_in_ggaa(T92, [], [], []) → part24_out_ggaa(T92, [], [], [])
U4_ggaa(T84, T85, T86, X177, X178, part24_out_ggaa(T84, T86, X177, X178)) → part24_out_ggaa(T84, .(T85, T86), X177, .(T85, X178))
U3_ggaa(T62, T63, T64, X126, X127, part24_out_ggaa(T62, T64, X126, X127)) → part24_out_ggaa(T62, .(T63, T64), .(T63, X126), X127)
U18_ga(T22, T23, T24, T9, part24_out_ggaa(T22, T24, X52, X53)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U17_ga(T22, T23, T24, T9, less14_out_gg(T22, T23)) → U19_ga(T22, T23, T24, T9, part24_in_ggaa(T22, T24, T45, T46))
U19_ga(T22, T23, T24, T9, part24_out_ggaa(T22, T24, T45, T46)) → U20_ga(T22, T23, T24, T9, qs1_in_aa(.(T23, T45), X14))
qs1_in_aa([], []) → qs1_out_aa([], [])
qs1_in_aa(.(T22, .(T23, T24)), T9) → U17_aa(T22, T23, T24, T9, less14_in_aa(T22, T23))
less14_in_aa(0, s(T33)) → less14_out_aa(0, s(T33))
less14_in_aa(s(T38), s(T39)) → U1_aa(T38, T39, less14_in_aa(T38, T39))
U1_aa(T38, T39, less14_out_aa(T38, T39)) → less14_out_aa(s(T38), s(T39))
U17_aa(T22, T23, T24, T9, less14_out_aa(T22, T23)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U17_aa(T22, T23, T24, T9, less14_out_aa(T22, T23)) → U18_aa(T22, T23, T24, T9, part24_in_gaaa(T22, T24, X52, X53))
part24_in_gaaa(T62, .(T63, T64), .(T63, X126), X127) → U2_gaaa(T62, T63, T64, X126, X127, less14_in_ga(T62, T63))
less14_in_ga(0, s(T33)) → less14_out_ga(0, s(T33))
less14_in_ga(s(T38), s(T39)) → U1_ga(T38, T39, less14_in_ga(T38, T39))
U1_ga(T38, T39, less14_out_ga(T38, T39)) → less14_out_ga(s(T38), s(T39))
U2_gaaa(T62, T63, T64, X126, X127, less14_out_ga(T62, T63)) → part24_out_gaaa(T62, .(T63, T64), .(T63, X126), X127)
U2_gaaa(T62, T63, T64, X126, X127, less14_out_ga(T62, T63)) → U3_gaaa(T62, T63, T64, X126, X127, part24_in_gaaa(T62, T64, X126, X127))
part24_in_gaaa(T84, .(T85, T86), X177, .(T85, X178)) → U4_gaaa(T84, T85, T86, X177, X178, part24_in_gaaa(T84, T86, X177, X178))
part24_in_gaaa(T92, [], [], []) → part24_out_gaaa(T92, [], [], [])
U4_gaaa(T84, T85, T86, X177, X178, part24_out_gaaa(T84, T86, X177, X178)) → part24_out_gaaa(T84, .(T85, T86), X177, .(T85, X178))
U3_gaaa(T62, T63, T64, X126, X127, part24_out_gaaa(T62, T64, X126, X127)) → part24_out_gaaa(T62, .(T63, T64), .(T63, X126), X127)
U18_aa(T22, T23, T24, T9, part24_out_gaaa(T22, T24, X52, X53)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U17_aa(T22, T23, T24, T9, less14_out_aa(T22, T23)) → U19_aa(T22, T23, T24, T9, part24_in_gaaa(T22, T24, T45, T46))
U19_aa(T22, T23, T24, T9, part24_out_gaaa(T22, T24, T45, T46)) → U20_aa(T22, T23, T24, T9, qs1_in_aa(.(T23, T45), X14))
qs1_in_aa(.(T191, .(T192, T193)), T9) → U23_aa(T191, T192, T193, T9, part24_in_aaaa(T191, T193, X336, X337))
part24_in_aaaa(T62, .(T63, T64), .(T63, X126), X127) → U2_aaaa(T62, T63, T64, X126, X127, less14_in_aa(T62, T63))
U2_aaaa(T62, T63, T64, X126, X127, less14_out_aa(T62, T63)) → part24_out_aaaa(T62, .(T63, T64), .(T63, X126), X127)
U2_aaaa(T62, T63, T64, X126, X127, less14_out_aa(T62, T63)) → U3_aaaa(T62, T63, T64, X126, X127, part24_in_gaaa(T62, T64, X126, X127))
U3_aaaa(T62, T63, T64, X126, X127, part24_out_gaaa(T62, T64, X126, X127)) → part24_out_aaaa(T62, .(T63, T64), .(T63, X126), X127)
part24_in_aaaa(T84, .(T85, T86), X177, .(T85, X178)) → U4_aaaa(T84, T85, T86, X177, X178, part24_in_aaaa(T84, T86, X177, X178))
part24_in_aaaa(T92, [], [], []) → part24_out_aaaa(T92, [], [], [])
U4_aaaa(T84, T85, T86, X177, X178, part24_out_aaaa(T84, T86, X177, X178)) → part24_out_aaaa(T84, .(T85, T86), X177, .(T85, X178))
U23_aa(T191, T192, T193, T9, part24_out_aaaa(T191, T193, X336, X337)) → qs1_out_aa(.(T191, .(T192, T193)), T9)
qs1_in_aa(.(T191, .(T192, T193)), T9) → U24_aa(T191, T192, T193, T9, part24_in_aaaa(T191, T193, T197, T198))
U24_aa(T191, T192, T193, T9, part24_out_aaaa(T191, T193, T197, T198)) → U25_aa(T191, T192, T193, T9, qs42_in_aa(T197, X14))
qs42_in_aa([], []) → qs42_out_aa([], [])
qs42_in_aa(.(T103, T104), X230) → U5_aa(T103, T104, X230, part24_in_aaaa(T103, T104, X226, X227))
U5_aa(T103, T104, X230, part24_out_aaaa(T103, T104, X226, X227)) → qs42_out_aa(.(T103, T104), X230)
qs42_in_aa(.(T103, T104), X230) → U6_aa(T103, T104, X230, part24_in_aaaa(T103, T104, T108, T109))
U6_aa(T103, T104, X230, part24_out_aaaa(T103, T104, T108, T109)) → U7_aa(T103, T104, X230, qs42_in_aa(T108, X228))
U7_aa(T103, T104, X230, qs42_out_aa(T108, X228)) → qs42_out_aa(.(T103, T104), X230)
U6_aa(T103, T104, X230, part24_out_aaaa(T103, T104, T108, T109)) → U8_aa(T103, T104, X230, T109, qs42_in_aa(T108, T113))
U8_aa(T103, T104, X230, T109, qs42_out_aa(T108, T113)) → U9_aa(T103, T104, X230, qs42_in_aa(T109, X229))
U9_aa(T103, T104, X230, qs42_out_aa(T109, X229)) → qs42_out_aa(.(T103, T104), X230)
U8_aa(T103, T104, X230, T109, qs42_out_aa(T108, T113)) → U10_aa(T103, T104, X230, T113, qs42_in_aa(T109, T114))
U10_aa(T103, T104, X230, T113, qs42_out_aa(T109, T114)) → U11_aa(T103, T104, X230, app57_in_aaaa(T113, T103, T114, X230))
app57_in_aaaa([], T127, T128, .(T127, T128)) → app57_out_aaaa([], T127, T128, .(T127, T128))
app57_in_aaaa(.(T137, T138), T139, T140, .(T137, X270)) → U12_aaaa(T137, T138, T139, T140, X270, app57_in_aaaa(T138, T139, T140, X270))
U12_aaaa(T137, T138, T139, T140, X270, app57_out_aaaa(T138, T139, T140, X270)) → app57_out_aaaa(.(T137, T138), T139, T140, .(T137, X270))
U11_aa(T103, T104, X230, app57_out_aaaa(T113, T103, T114, X230)) → qs42_out_aa(.(T103, T104), X230)
U25_aa(T191, T192, T193, T9, qs42_out_aa(T197, X14)) → qs1_out_aa(.(T191, .(T192, T193)), T9)
U24_aa(T191, T192, T193, T9, part24_out_aaaa(T191, T193, T197, T198)) → U26_aa(T191, T192, T193, T9, T198, qs42_in_aa(T197, T202))
U26_aa(T191, T192, T193, T9, T198, qs42_out_aa(T197, T202)) → U27_aa(T191, T192, T193, T9, p41_in_aaaaa(.(T192, T198), X15, T202, T191, T9))
p41_in_aaaaa(T46, X15, T95, T22, T9) → U14_aaaaa(T46, X15, T95, T22, T9, qs42_in_aa(T46, X15))
U14_aaaaa(T46, X15, T95, T22, T9, qs42_out_aa(T46, X15)) → p41_out_aaaaa(T46, X15, T95, T22, T9)
p41_in_aaaaa(T46, T98, T95, T22, T9) → U15_aaaaa(T46, T98, T95, T22, T9, qs42_in_aa(T46, T98))
U15_aaaaa(T46, T98, T95, T22, T9, qs42_out_aa(T46, T98)) → U16_aaaaa(T46, T98, T95, T22, T9, app43_in_aaaa(T95, T22, T98, T9))
app43_in_aaaa([], T157, T158, .(T157, T158)) → app43_out_aaaa([], T157, T158, .(T157, T158))
app43_in_aaaa(.(T169, T170), T171, T172, .(T169, T174)) → U13_aaaa(T169, T170, T171, T172, T174, app43_in_aaaa(T170, T171, T172, T174))
U13_aaaa(T169, T170, T171, T172, T174, app43_out_aaaa(T170, T171, T172, T174)) → app43_out_aaaa(.(T169, T170), T171, T172, .(T169, T174))
U16_aaaaa(T46, T98, T95, T22, T9, app43_out_aaaa(T95, T22, T98, T9)) → p41_out_aaaaa(T46, T98, T95, T22, T9)
U27_aa(T191, T192, T193, T9, p41_out_aaaaa(.(T192, T198), X15, T202, T191, T9)) → qs1_out_aa(.(T191, .(T192, T193)), T9)
qs1_in_aa(.(T207, []), T9) → U28_aa(T207, T9, qs84_in_a(X14))
qs84_in_a([]) → qs84_out_a([])
U28_aa(T207, T9, qs84_out_a(X14)) → qs1_out_aa(.(T207, []), T9)
qs1_in_aa(.(T207, []), T9) → U29_aa(T207, T9, qs84_in_a(T210))
U29_aa(T207, T9, qs84_out_a(T210)) → U30_aa(T207, T9, qs84_in_a(X15))
U30_aa(T207, T9, qs84_out_a(X15)) → qs1_out_aa(.(T207, []), T9)
U29_aa(T207, T9, qs84_out_a(T210)) → U31_aa(T207, T9, T210, qs84_in_a(T213))
U31_aa(T207, T9, T210, qs84_out_a(T213)) → U32_aa(T207, T9, app43_in_gaga(T210, T207, T213, T9))
app43_in_gaga([], T157, T158, .(T157, T158)) → app43_out_gaga([], T157, T158, .(T157, T158))
app43_in_gaga(.(T169, T170), T171, T172, .(T169, T174)) → U13_gaga(T169, T170, T171, T172, T174, app43_in_gaga(T170, T171, T172, T174))
U13_gaga(T169, T170, T171, T172, T174, app43_out_gaga(T170, T171, T172, T174)) → app43_out_gaga(.(T169, T170), T171, T172, .(T169, T174))
U32_aa(T207, T9, app43_out_gaga(T210, T207, T213, T9)) → qs1_out_aa(.(T207, []), T9)
U20_aa(T22, T23, T24, T9, qs1_out_aa(.(T23, T45), X14)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U19_aa(T22, T23, T24, T9, part24_out_gaaa(T22, T24, T45, T46)) → U21_aa(T22, T23, T24, T9, T46, qs1_in_aa(.(T23, T45), T95))
U21_aa(T22, T23, T24, T9, T46, qs1_out_aa(.(T23, T45), T95)) → U22_aa(T22, T23, T24, T9, p41_in_aaaga(T46, X15, T95, T22, T9))
p41_in_aaaga(T46, X15, T95, T22, T9) → U14_aaaga(T46, X15, T95, T22, T9, qs42_in_aa(T46, X15))
U14_aaaga(T46, X15, T95, T22, T9, qs42_out_aa(T46, X15)) → p41_out_aaaga(T46, X15, T95, T22, T9)
p41_in_aaaga(T46, T98, T95, T22, T9) → U15_aaaga(T46, T98, T95, T22, T9, qs42_in_aa(T46, T98))
U15_aaaga(T46, T98, T95, T22, T9, qs42_out_aa(T46, T98)) → U16_aaaga(T46, T98, T95, T22, T9, app43_in_agaa(T95, T22, T98, T9))
app43_in_agaa([], T157, T158, .(T157, T158)) → app43_out_agaa([], T157, T158, .(T157, T158))
app43_in_agaa(.(T169, T170), T171, T172, .(T169, T174)) → U13_agaa(T169, T170, T171, T172, T174, app43_in_agaa(T170, T171, T172, T174))
U13_agaa(T169, T170, T171, T172, T174, app43_out_agaa(T170, T171, T172, T174)) → app43_out_agaa(.(T169, T170), T171, T172, .(T169, T174))
U16_aaaga(T46, T98, T95, T22, T9, app43_out_agaa(T95, T22, T98, T9)) → p41_out_aaaga(T46, T98, T95, T22, T9)
U22_aa(T22, T23, T24, T9, p41_out_aaaga(T46, X15, T95, T22, T9)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U20_ga(T22, T23, T24, T9, qs1_out_aa(.(T23, T45), X14)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U19_ga(T22, T23, T24, T9, part24_out_ggaa(T22, T24, T45, T46)) → U21_ga(T22, T23, T24, T9, T46, qs1_in_aa(.(T23, T45), T95))
U21_ga(T22, T23, T24, T9, T46, qs1_out_aa(.(T23, T45), T95)) → U22_ga(T22, T23, T24, T9, p41_in_aaaga(T46, X15, T95, T22, T9))
U22_ga(T22, T23, T24, T9, p41_out_aaaga(T46, X15, T95, T22, T9)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
qs1_in_ga(.(T191, .(T192, T193)), T9) → U23_ga(T191, T192, T193, T9, part24_in_ggaa(T191, T193, X336, X337))
U23_ga(T191, T192, T193, T9, part24_out_ggaa(T191, T193, X336, X337)) → qs1_out_ga(.(T191, .(T192, T193)), T9)
qs1_in_ga(.(T191, .(T192, T193)), T9) → U24_ga(T191, T192, T193, T9, part24_in_ggaa(T191, T193, T197, T198))
U24_ga(T191, T192, T193, T9, part24_out_ggaa(T191, T193, T197, T198)) → U25_ga(T191, T192, T193, T9, qs42_in_aa(T197, X14))
U25_ga(T191, T192, T193, T9, qs42_out_aa(T197, X14)) → qs1_out_ga(.(T191, .(T192, T193)), T9)
U24_ga(T191, T192, T193, T9, part24_out_ggaa(T191, T193, T197, T198)) → U26_ga(T191, T192, T193, T9, T198, qs42_in_aa(T197, T202))
U26_ga(T191, T192, T193, T9, T198, qs42_out_aa(T197, T202)) → U27_ga(T191, T192, T193, T9, p41_in_aaaga(.(T192, T198), X15, T202, T191, T9))
U27_ga(T191, T192, T193, T9, p41_out_aaaga(.(T192, T198), X15, T202, T191, T9)) → qs1_out_ga(.(T191, .(T192, T193)), T9)
qs1_in_ga(.(T207, []), T9) → U28_ga(T207, T9, qs84_in_a(X14))
U28_ga(T207, T9, qs84_out_a(X14)) → qs1_out_ga(.(T207, []), T9)
qs1_in_ga(.(T207, []), T9) → U29_ga(T207, T9, qs84_in_a(T210))
U29_ga(T207, T9, qs84_out_a(T210)) → U30_ga(T207, T9, qs84_in_a(X15))
U30_ga(T207, T9, qs84_out_a(X15)) → qs1_out_ga(.(T207, []), T9)
U29_ga(T207, T9, qs84_out_a(T210)) → U31_ga(T207, T9, T210, qs84_in_a(T213))
U31_ga(T207, T9, T210, qs84_out_a(T213)) → U32_ga(T207, T9, app43_in_ggga(T210, T207, T213, T9))
app43_in_ggga([], T157, T158, .(T157, T158)) → app43_out_ggga([], T157, T158, .(T157, T158))
app43_in_ggga(.(T169, T170), T171, T172, .(T169, T174)) → U13_ggga(T169, T170, T171, T172, T174, app43_in_ggga(T170, T171, T172, T174))
U13_ggga(T169, T170, T171, T172, T174, app43_out_ggga(T170, T171, T172, T174)) → app43_out_ggga(.(T169, T170), T171, T172, .(T169, T174))
U32_ga(T207, T9, app43_out_ggga(T210, T207, T213, T9)) → qs1_out_ga(.(T207, []), T9)
QS42_IN_AA(.(T103, T104), X230) → U6_AA(T103, T104, X230, part24_in_aaaa(T103, T104, T108, T109))
U6_AA(T103, T104, X230, part24_out_aaaa(T103, T104, T108, T109)) → QS42_IN_AA(T108, X228)
U6_AA(T103, T104, X230, part24_out_aaaa(T103, T104, T108, T109)) → U8_AA(T103, T104, X230, T109, qs42_in_aa(T108, T113))
U8_AA(T103, T104, X230, T109, qs42_out_aa(T108, T113)) → QS42_IN_AA(T109, X229)
part24_in_aaaa(T62, .(T63, T64), .(T63, X126), X127) → U2_aaaa(T62, T63, T64, X126, X127, less14_in_aa(T62, T63))
part24_in_aaaa(T84, .(T85, T86), X177, .(T85, X178)) → U4_aaaa(T84, T85, T86, X177, X178, part24_in_aaaa(T84, T86, X177, X178))
part24_in_aaaa(T92, [], [], []) → part24_out_aaaa(T92, [], [], [])
qs42_in_aa([], []) → qs42_out_aa([], [])
qs42_in_aa(.(T103, T104), X230) → U5_aa(T103, T104, X230, part24_in_aaaa(T103, T104, X226, X227))
qs42_in_aa(.(T103, T104), X230) → U6_aa(T103, T104, X230, part24_in_aaaa(T103, T104, T108, T109))
U2_aaaa(T62, T63, T64, X126, X127, less14_out_aa(T62, T63)) → part24_out_aaaa(T62, .(T63, T64), .(T63, X126), X127)
U2_aaaa(T62, T63, T64, X126, X127, less14_out_aa(T62, T63)) → U3_aaaa(T62, T63, T64, X126, X127, part24_in_gaaa(T62, T64, X126, X127))
U4_aaaa(T84, T85, T86, X177, X178, part24_out_aaaa(T84, T86, X177, X178)) → part24_out_aaaa(T84, .(T85, T86), X177, .(T85, X178))
U5_aa(T103, T104, X230, part24_out_aaaa(T103, T104, X226, X227)) → qs42_out_aa(.(T103, T104), X230)
U6_aa(T103, T104, X230, part24_out_aaaa(T103, T104, T108, T109)) → U7_aa(T103, T104, X230, qs42_in_aa(T108, X228))
U6_aa(T103, T104, X230, part24_out_aaaa(T103, T104, T108, T109)) → U8_aa(T103, T104, X230, T109, qs42_in_aa(T108, T113))
less14_in_aa(0, s(T33)) → less14_out_aa(0, s(T33))
less14_in_aa(s(T38), s(T39)) → U1_aa(T38, T39, less14_in_aa(T38, T39))
U3_aaaa(T62, T63, T64, X126, X127, part24_out_gaaa(T62, T64, X126, X127)) → part24_out_aaaa(T62, .(T63, T64), .(T63, X126), X127)
U7_aa(T103, T104, X230, qs42_out_aa(T108, X228)) → qs42_out_aa(.(T103, T104), X230)
U8_aa(T103, T104, X230, T109, qs42_out_aa(T108, T113)) → U9_aa(T103, T104, X230, qs42_in_aa(T109, X229))
U8_aa(T103, T104, X230, T109, qs42_out_aa(T108, T113)) → U10_aa(T103, T104, X230, T113, qs42_in_aa(T109, T114))
U1_aa(T38, T39, less14_out_aa(T38, T39)) → less14_out_aa(s(T38), s(T39))
part24_in_gaaa(T62, .(T63, T64), .(T63, X126), X127) → U2_gaaa(T62, T63, T64, X126, X127, less14_in_ga(T62, T63))
part24_in_gaaa(T84, .(T85, T86), X177, .(T85, X178)) → U4_gaaa(T84, T85, T86, X177, X178, part24_in_gaaa(T84, T86, X177, X178))
part24_in_gaaa(T92, [], [], []) → part24_out_gaaa(T92, [], [], [])
U9_aa(T103, T104, X230, qs42_out_aa(T109, X229)) → qs42_out_aa(.(T103, T104), X230)
U10_aa(T103, T104, X230, T113, qs42_out_aa(T109, T114)) → U11_aa(T103, T104, X230, app57_in_aaaa(T113, T103, T114, X230))
U2_gaaa(T62, T63, T64, X126, X127, less14_out_ga(T62, T63)) → part24_out_gaaa(T62, .(T63, T64), .(T63, X126), X127)
U2_gaaa(T62, T63, T64, X126, X127, less14_out_ga(T62, T63)) → U3_gaaa(T62, T63, T64, X126, X127, part24_in_gaaa(T62, T64, X126, X127))
U4_gaaa(T84, T85, T86, X177, X178, part24_out_gaaa(T84, T86, X177, X178)) → part24_out_gaaa(T84, .(T85, T86), X177, .(T85, X178))
U11_aa(T103, T104, X230, app57_out_aaaa(T113, T103, T114, X230)) → qs42_out_aa(.(T103, T104), X230)
less14_in_ga(0, s(T33)) → less14_out_ga(0, s(T33))
less14_in_ga(s(T38), s(T39)) → U1_ga(T38, T39, less14_in_ga(T38, T39))
U3_gaaa(T62, T63, T64, X126, X127, part24_out_gaaa(T62, T64, X126, X127)) → part24_out_gaaa(T62, .(T63, T64), .(T63, X126), X127)
app57_in_aaaa([], T127, T128, .(T127, T128)) → app57_out_aaaa([], T127, T128, .(T127, T128))
app57_in_aaaa(.(T137, T138), T139, T140, .(T137, X270)) → U12_aaaa(T137, T138, T139, T140, X270, app57_in_aaaa(T138, T139, T140, X270))
U1_ga(T38, T39, less14_out_ga(T38, T39)) → less14_out_ga(s(T38), s(T39))
U12_aaaa(T137, T138, T139, T140, X270, app57_out_aaaa(T138, T139, T140, X270)) → app57_out_aaaa(.(T137, T138), T139, T140, .(T137, X270))
QS42_IN_AA → U6_AA(part24_in_aaaa)
U6_AA(part24_out_aaaa) → QS42_IN_AA
U6_AA(part24_out_aaaa) → U8_AA(qs42_in_aa)
U8_AA(qs42_out_aa) → QS42_IN_AA
part24_in_aaaa → U2_aaaa(less14_in_aa)
part24_in_aaaa → U4_aaaa(part24_in_aaaa)
part24_in_aaaa → part24_out_aaaa
qs42_in_aa → qs42_out_aa
qs42_in_aa → U5_aa(part24_in_aaaa)
qs42_in_aa → U6_aa(part24_in_aaaa)
U2_aaaa(less14_out_aa(T62)) → part24_out_aaaa
U2_aaaa(less14_out_aa(T62)) → U3_aaaa(part24_in_gaaa(T62))
U4_aaaa(part24_out_aaaa) → part24_out_aaaa
U5_aa(part24_out_aaaa) → qs42_out_aa
U6_aa(part24_out_aaaa) → U7_aa(qs42_in_aa)
U6_aa(part24_out_aaaa) → U8_aa(qs42_in_aa)
less14_in_aa → less14_out_aa(0)
less14_in_aa → U1_aa(less14_in_aa)
U3_aaaa(part24_out_gaaa) → part24_out_aaaa
U7_aa(qs42_out_aa) → qs42_out_aa
U8_aa(qs42_out_aa) → U9_aa(qs42_in_aa)
U8_aa(qs42_out_aa) → U10_aa(qs42_in_aa)
U1_aa(less14_out_aa(T38)) → less14_out_aa(s(T38))
part24_in_gaaa(T62) → U2_gaaa(T62, less14_in_ga(T62))
part24_in_gaaa(T84) → U4_gaaa(part24_in_gaaa(T84))
part24_in_gaaa(T92) → part24_out_gaaa
U9_aa(qs42_out_aa) → qs42_out_aa
U10_aa(qs42_out_aa) → U11_aa(app57_in_aaaa)
U2_gaaa(T62, less14_out_ga) → part24_out_gaaa
U2_gaaa(T62, less14_out_ga) → U3_gaaa(part24_in_gaaa(T62))
U4_gaaa(part24_out_gaaa) → part24_out_gaaa
U11_aa(app57_out_aaaa) → qs42_out_aa
less14_in_ga(0) → less14_out_ga
less14_in_ga(s(T38)) → U1_ga(less14_in_ga(T38))
U3_gaaa(part24_out_gaaa) → part24_out_gaaa
app57_in_aaaa → app57_out_aaaa
app57_in_aaaa → U12_aaaa(app57_in_aaaa)
U1_ga(less14_out_ga) → less14_out_ga
U12_aaaa(app57_out_aaaa) → app57_out_aaaa
part24_in_aaaa
qs42_in_aa
U2_aaaa(x0)
U4_aaaa(x0)
U5_aa(x0)
U6_aa(x0)
less14_in_aa
U3_aaaa(x0)
U7_aa(x0)
U8_aa(x0)
U1_aa(x0)
part24_in_gaaa(x0)
U9_aa(x0)
U10_aa(x0)
U2_gaaa(x0, x1)
U4_gaaa(x0)
U11_aa(x0)
less14_in_ga(x0)
U3_gaaa(x0)
app57_in_aaaa
U1_ga(x0)
U12_aaaa(x0)
QS42_IN_AA → U6_AA(U2_aaaa(less14_in_aa))
QS42_IN_AA → U6_AA(U4_aaaa(part24_in_aaaa))
QS42_IN_AA → U6_AA(part24_out_aaaa)
U6_AA(part24_out_aaaa) → QS42_IN_AA
U6_AA(part24_out_aaaa) → U8_AA(qs42_in_aa)
U8_AA(qs42_out_aa) → QS42_IN_AA
QS42_IN_AA → U6_AA(U2_aaaa(less14_in_aa))
QS42_IN_AA → U6_AA(U4_aaaa(part24_in_aaaa))
QS42_IN_AA → U6_AA(part24_out_aaaa)
part24_in_aaaa → U2_aaaa(less14_in_aa)
part24_in_aaaa → U4_aaaa(part24_in_aaaa)
part24_in_aaaa → part24_out_aaaa
qs42_in_aa → qs42_out_aa
qs42_in_aa → U5_aa(part24_in_aaaa)
qs42_in_aa → U6_aa(part24_in_aaaa)
U2_aaaa(less14_out_aa(T62)) → part24_out_aaaa
U2_aaaa(less14_out_aa(T62)) → U3_aaaa(part24_in_gaaa(T62))
U4_aaaa(part24_out_aaaa) → part24_out_aaaa
U5_aa(part24_out_aaaa) → qs42_out_aa
U6_aa(part24_out_aaaa) → U7_aa(qs42_in_aa)
U6_aa(part24_out_aaaa) → U8_aa(qs42_in_aa)
less14_in_aa → less14_out_aa(0)
less14_in_aa → U1_aa(less14_in_aa)
U3_aaaa(part24_out_gaaa) → part24_out_aaaa
U7_aa(qs42_out_aa) → qs42_out_aa
U8_aa(qs42_out_aa) → U9_aa(qs42_in_aa)
U8_aa(qs42_out_aa) → U10_aa(qs42_in_aa)
U1_aa(less14_out_aa(T38)) → less14_out_aa(s(T38))
part24_in_gaaa(T62) → U2_gaaa(T62, less14_in_ga(T62))
part24_in_gaaa(T84) → U4_gaaa(part24_in_gaaa(T84))
part24_in_gaaa(T92) → part24_out_gaaa
U9_aa(qs42_out_aa) → qs42_out_aa
U10_aa(qs42_out_aa) → U11_aa(app57_in_aaaa)
U2_gaaa(T62, less14_out_ga) → part24_out_gaaa
U2_gaaa(T62, less14_out_ga) → U3_gaaa(part24_in_gaaa(T62))
U4_gaaa(part24_out_gaaa) → part24_out_gaaa
U11_aa(app57_out_aaaa) → qs42_out_aa
less14_in_ga(0) → less14_out_ga
less14_in_ga(s(T38)) → U1_ga(less14_in_ga(T38))
U3_gaaa(part24_out_gaaa) → part24_out_gaaa
app57_in_aaaa → app57_out_aaaa
app57_in_aaaa → U12_aaaa(app57_in_aaaa)
U1_ga(less14_out_ga) → less14_out_ga
U12_aaaa(app57_out_aaaa) → app57_out_aaaa
part24_in_aaaa
qs42_in_aa
U2_aaaa(x0)
U4_aaaa(x0)
U5_aa(x0)
U6_aa(x0)
less14_in_aa
U3_aaaa(x0)
U7_aa(x0)
U8_aa(x0)
U1_aa(x0)
part24_in_gaaa(x0)
U9_aa(x0)
U10_aa(x0)
U2_gaaa(x0, x1)
U4_gaaa(x0)
U11_aa(x0)
less14_in_ga(x0)
U3_gaaa(x0)
app57_in_aaaa
U1_ga(x0)
U12_aaaa(x0)
U6_AA(part24_out_aaaa) → U8_AA(qs42_out_aa)
U6_AA(part24_out_aaaa) → U8_AA(U5_aa(part24_in_aaaa))
U6_AA(part24_out_aaaa) → U8_AA(U6_aa(part24_in_aaaa))
U6_AA(part24_out_aaaa) → QS42_IN_AA
U8_AA(qs42_out_aa) → QS42_IN_AA
QS42_IN_AA → U6_AA(U2_aaaa(less14_in_aa))
QS42_IN_AA → U6_AA(U4_aaaa(part24_in_aaaa))
QS42_IN_AA → U6_AA(part24_out_aaaa)
U6_AA(part24_out_aaaa) → U8_AA(qs42_out_aa)
U6_AA(part24_out_aaaa) → U8_AA(U5_aa(part24_in_aaaa))
U6_AA(part24_out_aaaa) → U8_AA(U6_aa(part24_in_aaaa))
part24_in_aaaa → U2_aaaa(less14_in_aa)
part24_in_aaaa → U4_aaaa(part24_in_aaaa)
part24_in_aaaa → part24_out_aaaa
qs42_in_aa → qs42_out_aa
qs42_in_aa → U5_aa(part24_in_aaaa)
qs42_in_aa → U6_aa(part24_in_aaaa)
U2_aaaa(less14_out_aa(T62)) → part24_out_aaaa
U2_aaaa(less14_out_aa(T62)) → U3_aaaa(part24_in_gaaa(T62))
U4_aaaa(part24_out_aaaa) → part24_out_aaaa
U5_aa(part24_out_aaaa) → qs42_out_aa
U6_aa(part24_out_aaaa) → U7_aa(qs42_in_aa)
U6_aa(part24_out_aaaa) → U8_aa(qs42_in_aa)
less14_in_aa → less14_out_aa(0)
less14_in_aa → U1_aa(less14_in_aa)
U3_aaaa(part24_out_gaaa) → part24_out_aaaa
U7_aa(qs42_out_aa) → qs42_out_aa
U8_aa(qs42_out_aa) → U9_aa(qs42_in_aa)
U8_aa(qs42_out_aa) → U10_aa(qs42_in_aa)
U1_aa(less14_out_aa(T38)) → less14_out_aa(s(T38))
part24_in_gaaa(T62) → U2_gaaa(T62, less14_in_ga(T62))
part24_in_gaaa(T84) → U4_gaaa(part24_in_gaaa(T84))
part24_in_gaaa(T92) → part24_out_gaaa
U9_aa(qs42_out_aa) → qs42_out_aa
U10_aa(qs42_out_aa) → U11_aa(app57_in_aaaa)
U2_gaaa(T62, less14_out_ga) → part24_out_gaaa
U2_gaaa(T62, less14_out_ga) → U3_gaaa(part24_in_gaaa(T62))
U4_gaaa(part24_out_gaaa) → part24_out_gaaa
U11_aa(app57_out_aaaa) → qs42_out_aa
less14_in_ga(0) → less14_out_ga
less14_in_ga(s(T38)) → U1_ga(less14_in_ga(T38))
U3_gaaa(part24_out_gaaa) → part24_out_gaaa
app57_in_aaaa → app57_out_aaaa
app57_in_aaaa → U12_aaaa(app57_in_aaaa)
U1_ga(less14_out_ga) → less14_out_ga
U12_aaaa(app57_out_aaaa) → app57_out_aaaa
part24_in_aaaa
qs42_in_aa
U2_aaaa(x0)
U4_aaaa(x0)
U5_aa(x0)
U6_aa(x0)
less14_in_aa
U3_aaaa(x0)
U7_aa(x0)
U8_aa(x0)
U1_aa(x0)
part24_in_gaaa(x0)
U9_aa(x0)
U10_aa(x0)
U2_gaaa(x0, x1)
U4_gaaa(x0)
U11_aa(x0)
less14_in_ga(x0)
U3_gaaa(x0)
app57_in_aaaa
U1_ga(x0)
U12_aaaa(x0)
U17_AA(T22, T23, T24, T9, less14_out_aa(T22, T23)) → U19_AA(T22, T23, T24, T9, part24_in_gaaa(T22, T24, T45, T46))
U19_AA(T22, T23, T24, T9, part24_out_gaaa(T22, T24, T45, T46)) → QS1_IN_AA(.(T23, T45), X14)
QS1_IN_AA(.(T22, .(T23, T24)), T9) → U17_AA(T22, T23, T24, T9, less14_in_aa(T22, T23))
qs1_in_ga([], []) → qs1_out_ga([], [])
qs1_in_ga(.(T22, .(T23, T24)), T9) → U17_ga(T22, T23, T24, T9, less14_in_gg(T22, T23))
less14_in_gg(0, s(T33)) → less14_out_gg(0, s(T33))
less14_in_gg(s(T38), s(T39)) → U1_gg(T38, T39, less14_in_gg(T38, T39))
U1_gg(T38, T39, less14_out_gg(T38, T39)) → less14_out_gg(s(T38), s(T39))
U17_ga(T22, T23, T24, T9, less14_out_gg(T22, T23)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U17_ga(T22, T23, T24, T9, less14_out_gg(T22, T23)) → U18_ga(T22, T23, T24, T9, part24_in_ggaa(T22, T24, X52, X53))
part24_in_ggaa(T62, .(T63, T64), .(T63, X126), X127) → U2_ggaa(T62, T63, T64, X126, X127, less14_in_gg(T62, T63))
U2_ggaa(T62, T63, T64, X126, X127, less14_out_gg(T62, T63)) → part24_out_ggaa(T62, .(T63, T64), .(T63, X126), X127)
U2_ggaa(T62, T63, T64, X126, X127, less14_out_gg(T62, T63)) → U3_ggaa(T62, T63, T64, X126, X127, part24_in_ggaa(T62, T64, X126, X127))
part24_in_ggaa(T84, .(T85, T86), X177, .(T85, X178)) → U4_ggaa(T84, T85, T86, X177, X178, part24_in_ggaa(T84, T86, X177, X178))
part24_in_ggaa(T92, [], [], []) → part24_out_ggaa(T92, [], [], [])
U4_ggaa(T84, T85, T86, X177, X178, part24_out_ggaa(T84, T86, X177, X178)) → part24_out_ggaa(T84, .(T85, T86), X177, .(T85, X178))
U3_ggaa(T62, T63, T64, X126, X127, part24_out_ggaa(T62, T64, X126, X127)) → part24_out_ggaa(T62, .(T63, T64), .(T63, X126), X127)
U18_ga(T22, T23, T24, T9, part24_out_ggaa(T22, T24, X52, X53)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U17_ga(T22, T23, T24, T9, less14_out_gg(T22, T23)) → U19_ga(T22, T23, T24, T9, part24_in_ggaa(T22, T24, T45, T46))
U19_ga(T22, T23, T24, T9, part24_out_ggaa(T22, T24, T45, T46)) → U20_ga(T22, T23, T24, T9, qs1_in_aa(.(T23, T45), X14))
qs1_in_aa([], []) → qs1_out_aa([], [])
qs1_in_aa(.(T22, .(T23, T24)), T9) → U17_aa(T22, T23, T24, T9, less14_in_aa(T22, T23))
less14_in_aa(0, s(T33)) → less14_out_aa(0, s(T33))
less14_in_aa(s(T38), s(T39)) → U1_aa(T38, T39, less14_in_aa(T38, T39))
U1_aa(T38, T39, less14_out_aa(T38, T39)) → less14_out_aa(s(T38), s(T39))
U17_aa(T22, T23, T24, T9, less14_out_aa(T22, T23)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U17_aa(T22, T23, T24, T9, less14_out_aa(T22, T23)) → U18_aa(T22, T23, T24, T9, part24_in_gaaa(T22, T24, X52, X53))
part24_in_gaaa(T62, .(T63, T64), .(T63, X126), X127) → U2_gaaa(T62, T63, T64, X126, X127, less14_in_ga(T62, T63))
less14_in_ga(0, s(T33)) → less14_out_ga(0, s(T33))
less14_in_ga(s(T38), s(T39)) → U1_ga(T38, T39, less14_in_ga(T38, T39))
U1_ga(T38, T39, less14_out_ga(T38, T39)) → less14_out_ga(s(T38), s(T39))
U2_gaaa(T62, T63, T64, X126, X127, less14_out_ga(T62, T63)) → part24_out_gaaa(T62, .(T63, T64), .(T63, X126), X127)
U2_gaaa(T62, T63, T64, X126, X127, less14_out_ga(T62, T63)) → U3_gaaa(T62, T63, T64, X126, X127, part24_in_gaaa(T62, T64, X126, X127))
part24_in_gaaa(T84, .(T85, T86), X177, .(T85, X178)) → U4_gaaa(T84, T85, T86, X177, X178, part24_in_gaaa(T84, T86, X177, X178))
part24_in_gaaa(T92, [], [], []) → part24_out_gaaa(T92, [], [], [])
U4_gaaa(T84, T85, T86, X177, X178, part24_out_gaaa(T84, T86, X177, X178)) → part24_out_gaaa(T84, .(T85, T86), X177, .(T85, X178))
U3_gaaa(T62, T63, T64, X126, X127, part24_out_gaaa(T62, T64, X126, X127)) → part24_out_gaaa(T62, .(T63, T64), .(T63, X126), X127)
U18_aa(T22, T23, T24, T9, part24_out_gaaa(T22, T24, X52, X53)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U17_aa(T22, T23, T24, T9, less14_out_aa(T22, T23)) → U19_aa(T22, T23, T24, T9, part24_in_gaaa(T22, T24, T45, T46))
U19_aa(T22, T23, T24, T9, part24_out_gaaa(T22, T24, T45, T46)) → U20_aa(T22, T23, T24, T9, qs1_in_aa(.(T23, T45), X14))
qs1_in_aa(.(T191, .(T192, T193)), T9) → U23_aa(T191, T192, T193, T9, part24_in_aaaa(T191, T193, X336, X337))
part24_in_aaaa(T62, .(T63, T64), .(T63, X126), X127) → U2_aaaa(T62, T63, T64, X126, X127, less14_in_aa(T62, T63))
U2_aaaa(T62, T63, T64, X126, X127, less14_out_aa(T62, T63)) → part24_out_aaaa(T62, .(T63, T64), .(T63, X126), X127)
U2_aaaa(T62, T63, T64, X126, X127, less14_out_aa(T62, T63)) → U3_aaaa(T62, T63, T64, X126, X127, part24_in_gaaa(T62, T64, X126, X127))
U3_aaaa(T62, T63, T64, X126, X127, part24_out_gaaa(T62, T64, X126, X127)) → part24_out_aaaa(T62, .(T63, T64), .(T63, X126), X127)
part24_in_aaaa(T84, .(T85, T86), X177, .(T85, X178)) → U4_aaaa(T84, T85, T86, X177, X178, part24_in_aaaa(T84, T86, X177, X178))
part24_in_aaaa(T92, [], [], []) → part24_out_aaaa(T92, [], [], [])
U4_aaaa(T84, T85, T86, X177, X178, part24_out_aaaa(T84, T86, X177, X178)) → part24_out_aaaa(T84, .(T85, T86), X177, .(T85, X178))
U23_aa(T191, T192, T193, T9, part24_out_aaaa(T191, T193, X336, X337)) → qs1_out_aa(.(T191, .(T192, T193)), T9)
qs1_in_aa(.(T191, .(T192, T193)), T9) → U24_aa(T191, T192, T193, T9, part24_in_aaaa(T191, T193, T197, T198))
U24_aa(T191, T192, T193, T9, part24_out_aaaa(T191, T193, T197, T198)) → U25_aa(T191, T192, T193, T9, qs42_in_aa(T197, X14))
qs42_in_aa([], []) → qs42_out_aa([], [])
qs42_in_aa(.(T103, T104), X230) → U5_aa(T103, T104, X230, part24_in_aaaa(T103, T104, X226, X227))
U5_aa(T103, T104, X230, part24_out_aaaa(T103, T104, X226, X227)) → qs42_out_aa(.(T103, T104), X230)
qs42_in_aa(.(T103, T104), X230) → U6_aa(T103, T104, X230, part24_in_aaaa(T103, T104, T108, T109))
U6_aa(T103, T104, X230, part24_out_aaaa(T103, T104, T108, T109)) → U7_aa(T103, T104, X230, qs42_in_aa(T108, X228))
U7_aa(T103, T104, X230, qs42_out_aa(T108, X228)) → qs42_out_aa(.(T103, T104), X230)
U6_aa(T103, T104, X230, part24_out_aaaa(T103, T104, T108, T109)) → U8_aa(T103, T104, X230, T109, qs42_in_aa(T108, T113))
U8_aa(T103, T104, X230, T109, qs42_out_aa(T108, T113)) → U9_aa(T103, T104, X230, qs42_in_aa(T109, X229))
U9_aa(T103, T104, X230, qs42_out_aa(T109, X229)) → qs42_out_aa(.(T103, T104), X230)
U8_aa(T103, T104, X230, T109, qs42_out_aa(T108, T113)) → U10_aa(T103, T104, X230, T113, qs42_in_aa(T109, T114))
U10_aa(T103, T104, X230, T113, qs42_out_aa(T109, T114)) → U11_aa(T103, T104, X230, app57_in_aaaa(T113, T103, T114, X230))
app57_in_aaaa([], T127, T128, .(T127, T128)) → app57_out_aaaa([], T127, T128, .(T127, T128))
app57_in_aaaa(.(T137, T138), T139, T140, .(T137, X270)) → U12_aaaa(T137, T138, T139, T140, X270, app57_in_aaaa(T138, T139, T140, X270))
U12_aaaa(T137, T138, T139, T140, X270, app57_out_aaaa(T138, T139, T140, X270)) → app57_out_aaaa(.(T137, T138), T139, T140, .(T137, X270))
U11_aa(T103, T104, X230, app57_out_aaaa(T113, T103, T114, X230)) → qs42_out_aa(.(T103, T104), X230)
U25_aa(T191, T192, T193, T9, qs42_out_aa(T197, X14)) → qs1_out_aa(.(T191, .(T192, T193)), T9)
U24_aa(T191, T192, T193, T9, part24_out_aaaa(T191, T193, T197, T198)) → U26_aa(T191, T192, T193, T9, T198, qs42_in_aa(T197, T202))
U26_aa(T191, T192, T193, T9, T198, qs42_out_aa(T197, T202)) → U27_aa(T191, T192, T193, T9, p41_in_aaaaa(.(T192, T198), X15, T202, T191, T9))
p41_in_aaaaa(T46, X15, T95, T22, T9) → U14_aaaaa(T46, X15, T95, T22, T9, qs42_in_aa(T46, X15))
U14_aaaaa(T46, X15, T95, T22, T9, qs42_out_aa(T46, X15)) → p41_out_aaaaa(T46, X15, T95, T22, T9)
p41_in_aaaaa(T46, T98, T95, T22, T9) → U15_aaaaa(T46, T98, T95, T22, T9, qs42_in_aa(T46, T98))
U15_aaaaa(T46, T98, T95, T22, T9, qs42_out_aa(T46, T98)) → U16_aaaaa(T46, T98, T95, T22, T9, app43_in_aaaa(T95, T22, T98, T9))
app43_in_aaaa([], T157, T158, .(T157, T158)) → app43_out_aaaa([], T157, T158, .(T157, T158))
app43_in_aaaa(.(T169, T170), T171, T172, .(T169, T174)) → U13_aaaa(T169, T170, T171, T172, T174, app43_in_aaaa(T170, T171, T172, T174))
U13_aaaa(T169, T170, T171, T172, T174, app43_out_aaaa(T170, T171, T172, T174)) → app43_out_aaaa(.(T169, T170), T171, T172, .(T169, T174))
U16_aaaaa(T46, T98, T95, T22, T9, app43_out_aaaa(T95, T22, T98, T9)) → p41_out_aaaaa(T46, T98, T95, T22, T9)
U27_aa(T191, T192, T193, T9, p41_out_aaaaa(.(T192, T198), X15, T202, T191, T9)) → qs1_out_aa(.(T191, .(T192, T193)), T9)
qs1_in_aa(.(T207, []), T9) → U28_aa(T207, T9, qs84_in_a(X14))
qs84_in_a([]) → qs84_out_a([])
U28_aa(T207, T9, qs84_out_a(X14)) → qs1_out_aa(.(T207, []), T9)
qs1_in_aa(.(T207, []), T9) → U29_aa(T207, T9, qs84_in_a(T210))
U29_aa(T207, T9, qs84_out_a(T210)) → U30_aa(T207, T9, qs84_in_a(X15))
U30_aa(T207, T9, qs84_out_a(X15)) → qs1_out_aa(.(T207, []), T9)
U29_aa(T207, T9, qs84_out_a(T210)) → U31_aa(T207, T9, T210, qs84_in_a(T213))
U31_aa(T207, T9, T210, qs84_out_a(T213)) → U32_aa(T207, T9, app43_in_gaga(T210, T207, T213, T9))
app43_in_gaga([], T157, T158, .(T157, T158)) → app43_out_gaga([], T157, T158, .(T157, T158))
app43_in_gaga(.(T169, T170), T171, T172, .(T169, T174)) → U13_gaga(T169, T170, T171, T172, T174, app43_in_gaga(T170, T171, T172, T174))
U13_gaga(T169, T170, T171, T172, T174, app43_out_gaga(T170, T171, T172, T174)) → app43_out_gaga(.(T169, T170), T171, T172, .(T169, T174))
U32_aa(T207, T9, app43_out_gaga(T210, T207, T213, T9)) → qs1_out_aa(.(T207, []), T9)
U20_aa(T22, T23, T24, T9, qs1_out_aa(.(T23, T45), X14)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U19_aa(T22, T23, T24, T9, part24_out_gaaa(T22, T24, T45, T46)) → U21_aa(T22, T23, T24, T9, T46, qs1_in_aa(.(T23, T45), T95))
U21_aa(T22, T23, T24, T9, T46, qs1_out_aa(.(T23, T45), T95)) → U22_aa(T22, T23, T24, T9, p41_in_aaaga(T46, X15, T95, T22, T9))
p41_in_aaaga(T46, X15, T95, T22, T9) → U14_aaaga(T46, X15, T95, T22, T9, qs42_in_aa(T46, X15))
U14_aaaga(T46, X15, T95, T22, T9, qs42_out_aa(T46, X15)) → p41_out_aaaga(T46, X15, T95, T22, T9)
p41_in_aaaga(T46, T98, T95, T22, T9) → U15_aaaga(T46, T98, T95, T22, T9, qs42_in_aa(T46, T98))
U15_aaaga(T46, T98, T95, T22, T9, qs42_out_aa(T46, T98)) → U16_aaaga(T46, T98, T95, T22, T9, app43_in_agaa(T95, T22, T98, T9))
app43_in_agaa([], T157, T158, .(T157, T158)) → app43_out_agaa([], T157, T158, .(T157, T158))
app43_in_agaa(.(T169, T170), T171, T172, .(T169, T174)) → U13_agaa(T169, T170, T171, T172, T174, app43_in_agaa(T170, T171, T172, T174))
U13_agaa(T169, T170, T171, T172, T174, app43_out_agaa(T170, T171, T172, T174)) → app43_out_agaa(.(T169, T170), T171, T172, .(T169, T174))
U16_aaaga(T46, T98, T95, T22, T9, app43_out_agaa(T95, T22, T98, T9)) → p41_out_aaaga(T46, T98, T95, T22, T9)
U22_aa(T22, T23, T24, T9, p41_out_aaaga(T46, X15, T95, T22, T9)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U20_ga(T22, T23, T24, T9, qs1_out_aa(.(T23, T45), X14)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U19_ga(T22, T23, T24, T9, part24_out_ggaa(T22, T24, T45, T46)) → U21_ga(T22, T23, T24, T9, T46, qs1_in_aa(.(T23, T45), T95))
U21_ga(T22, T23, T24, T9, T46, qs1_out_aa(.(T23, T45), T95)) → U22_ga(T22, T23, T24, T9, p41_in_aaaga(T46, X15, T95, T22, T9))
U22_ga(T22, T23, T24, T9, p41_out_aaaga(T46, X15, T95, T22, T9)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
qs1_in_ga(.(T191, .(T192, T193)), T9) → U23_ga(T191, T192, T193, T9, part24_in_ggaa(T191, T193, X336, X337))
U23_ga(T191, T192, T193, T9, part24_out_ggaa(T191, T193, X336, X337)) → qs1_out_ga(.(T191, .(T192, T193)), T9)
qs1_in_ga(.(T191, .(T192, T193)), T9) → U24_ga(T191, T192, T193, T9, part24_in_ggaa(T191, T193, T197, T198))
U24_ga(T191, T192, T193, T9, part24_out_ggaa(T191, T193, T197, T198)) → U25_ga(T191, T192, T193, T9, qs42_in_aa(T197, X14))
U25_ga(T191, T192, T193, T9, qs42_out_aa(T197, X14)) → qs1_out_ga(.(T191, .(T192, T193)), T9)
U24_ga(T191, T192, T193, T9, part24_out_ggaa(T191, T193, T197, T198)) → U26_ga(T191, T192, T193, T9, T198, qs42_in_aa(T197, T202))
U26_ga(T191, T192, T193, T9, T198, qs42_out_aa(T197, T202)) → U27_ga(T191, T192, T193, T9, p41_in_aaaga(.(T192, T198), X15, T202, T191, T9))
U27_ga(T191, T192, T193, T9, p41_out_aaaga(.(T192, T198), X15, T202, T191, T9)) → qs1_out_ga(.(T191, .(T192, T193)), T9)
qs1_in_ga(.(T207, []), T9) → U28_ga(T207, T9, qs84_in_a(X14))
U28_ga(T207, T9, qs84_out_a(X14)) → qs1_out_ga(.(T207, []), T9)
qs1_in_ga(.(T207, []), T9) → U29_ga(T207, T9, qs84_in_a(T210))
U29_ga(T207, T9, qs84_out_a(T210)) → U30_ga(T207, T9, qs84_in_a(X15))
U30_ga(T207, T9, qs84_out_a(X15)) → qs1_out_ga(.(T207, []), T9)
U29_ga(T207, T9, qs84_out_a(T210)) → U31_ga(T207, T9, T210, qs84_in_a(T213))
U31_ga(T207, T9, T210, qs84_out_a(T213)) → U32_ga(T207, T9, app43_in_ggga(T210, T207, T213, T9))
app43_in_ggga([], T157, T158, .(T157, T158)) → app43_out_ggga([], T157, T158, .(T157, T158))
app43_in_ggga(.(T169, T170), T171, T172, .(T169, T174)) → U13_ggga(T169, T170, T171, T172, T174, app43_in_ggga(T170, T171, T172, T174))
U13_ggga(T169, T170, T171, T172, T174, app43_out_ggga(T170, T171, T172, T174)) → app43_out_ggga(.(T169, T170), T171, T172, .(T169, T174))
U32_ga(T207, T9, app43_out_ggga(T210, T207, T213, T9)) → qs1_out_ga(.(T207, []), T9)
U17_AA(T22, T23, T24, T9, less14_out_aa(T22, T23)) → U19_AA(T22, T23, T24, T9, part24_in_gaaa(T22, T24, T45, T46))
U19_AA(T22, T23, T24, T9, part24_out_gaaa(T22, T24, T45, T46)) → QS1_IN_AA(.(T23, T45), X14)
QS1_IN_AA(.(T22, .(T23, T24)), T9) → U17_AA(T22, T23, T24, T9, less14_in_aa(T22, T23))
part24_in_gaaa(T62, .(T63, T64), .(T63, X126), X127) → U2_gaaa(T62, T63, T64, X126, X127, less14_in_ga(T62, T63))
part24_in_gaaa(T84, .(T85, T86), X177, .(T85, X178)) → U4_gaaa(T84, T85, T86, X177, X178, part24_in_gaaa(T84, T86, X177, X178))
part24_in_gaaa(T92, [], [], []) → part24_out_gaaa(T92, [], [], [])
less14_in_aa(0, s(T33)) → less14_out_aa(0, s(T33))
less14_in_aa(s(T38), s(T39)) → U1_aa(T38, T39, less14_in_aa(T38, T39))
U2_gaaa(T62, T63, T64, X126, X127, less14_out_ga(T62, T63)) → part24_out_gaaa(T62, .(T63, T64), .(T63, X126), X127)
U2_gaaa(T62, T63, T64, X126, X127, less14_out_ga(T62, T63)) → U3_gaaa(T62, T63, T64, X126, X127, part24_in_gaaa(T62, T64, X126, X127))
U4_gaaa(T84, T85, T86, X177, X178, part24_out_gaaa(T84, T86, X177, X178)) → part24_out_gaaa(T84, .(T85, T86), X177, .(T85, X178))
U1_aa(T38, T39, less14_out_aa(T38, T39)) → less14_out_aa(s(T38), s(T39))
less14_in_ga(0, s(T33)) → less14_out_ga(0, s(T33))
less14_in_ga(s(T38), s(T39)) → U1_ga(T38, T39, less14_in_ga(T38, T39))
U3_gaaa(T62, T63, T64, X126, X127, part24_out_gaaa(T62, T64, X126, X127)) → part24_out_gaaa(T62, .(T63, T64), .(T63, X126), X127)
U1_ga(T38, T39, less14_out_ga(T38, T39)) → less14_out_ga(s(T38), s(T39))
U17_AA(less14_out_aa(T22)) → U19_AA(T22, part24_in_gaaa(T22))
U19_AA(T22, part24_out_gaaa) → QS1_IN_AA
QS1_IN_AA → U17_AA(less14_in_aa)
part24_in_gaaa(T62) → U2_gaaa(T62, less14_in_ga(T62))
part24_in_gaaa(T84) → U4_gaaa(part24_in_gaaa(T84))
part24_in_gaaa(T92) → part24_out_gaaa
less14_in_aa → less14_out_aa(0)
less14_in_aa → U1_aa(less14_in_aa)
U2_gaaa(T62, less14_out_ga) → part24_out_gaaa
U2_gaaa(T62, less14_out_ga) → U3_gaaa(part24_in_gaaa(T62))
U4_gaaa(part24_out_gaaa) → part24_out_gaaa
U1_aa(less14_out_aa(T38)) → less14_out_aa(s(T38))
less14_in_ga(0) → less14_out_ga
less14_in_ga(s(T38)) → U1_ga(less14_in_ga(T38))
U3_gaaa(part24_out_gaaa) → part24_out_gaaa
U1_ga(less14_out_ga) → less14_out_ga
part24_in_gaaa(x0)
less14_in_aa
U2_gaaa(x0, x1)
U4_gaaa(x0)
U1_aa(x0)
less14_in_ga(x0)
U3_gaaa(x0)
U1_ga(x0)
U17_AA(less14_out_aa(x0)) → U19_AA(x0, U2_gaaa(x0, less14_in_ga(x0)))
U17_AA(less14_out_aa(x0)) → U19_AA(x0, U4_gaaa(part24_in_gaaa(x0)))
U17_AA(less14_out_aa(x0)) → U19_AA(x0, part24_out_gaaa)
U19_AA(T22, part24_out_gaaa) → QS1_IN_AA
QS1_IN_AA → U17_AA(less14_in_aa)
U17_AA(less14_out_aa(x0)) → U19_AA(x0, U2_gaaa(x0, less14_in_ga(x0)))
U17_AA(less14_out_aa(x0)) → U19_AA(x0, U4_gaaa(part24_in_gaaa(x0)))
U17_AA(less14_out_aa(x0)) → U19_AA(x0, part24_out_gaaa)
part24_in_gaaa(T62) → U2_gaaa(T62, less14_in_ga(T62))
part24_in_gaaa(T84) → U4_gaaa(part24_in_gaaa(T84))
part24_in_gaaa(T92) → part24_out_gaaa
less14_in_aa → less14_out_aa(0)
less14_in_aa → U1_aa(less14_in_aa)
U2_gaaa(T62, less14_out_ga) → part24_out_gaaa
U2_gaaa(T62, less14_out_ga) → U3_gaaa(part24_in_gaaa(T62))
U4_gaaa(part24_out_gaaa) → part24_out_gaaa
U1_aa(less14_out_aa(T38)) → less14_out_aa(s(T38))
less14_in_ga(0) → less14_out_ga
less14_in_ga(s(T38)) → U1_ga(less14_in_ga(T38))
U3_gaaa(part24_out_gaaa) → part24_out_gaaa
U1_ga(less14_out_ga) → less14_out_ga
part24_in_gaaa(x0)
less14_in_aa
U2_gaaa(x0, x1)
U4_gaaa(x0)
U1_aa(x0)
less14_in_ga(x0)
U3_gaaa(x0)
U1_ga(x0)
QS1_IN_AA → U17_AA(less14_out_aa(0))
QS1_IN_AA → U17_AA(U1_aa(less14_in_aa))
U19_AA(T22, part24_out_gaaa) → QS1_IN_AA
U17_AA(less14_out_aa(x0)) → U19_AA(x0, U2_gaaa(x0, less14_in_ga(x0)))
U17_AA(less14_out_aa(x0)) → U19_AA(x0, U4_gaaa(part24_in_gaaa(x0)))
U17_AA(less14_out_aa(x0)) → U19_AA(x0, part24_out_gaaa)
QS1_IN_AA → U17_AA(less14_out_aa(0))
QS1_IN_AA → U17_AA(U1_aa(less14_in_aa))
part24_in_gaaa(T62) → U2_gaaa(T62, less14_in_ga(T62))
part24_in_gaaa(T84) → U4_gaaa(part24_in_gaaa(T84))
part24_in_gaaa(T92) → part24_out_gaaa
less14_in_aa → less14_out_aa(0)
less14_in_aa → U1_aa(less14_in_aa)
U2_gaaa(T62, less14_out_ga) → part24_out_gaaa
U2_gaaa(T62, less14_out_ga) → U3_gaaa(part24_in_gaaa(T62))
U4_gaaa(part24_out_gaaa) → part24_out_gaaa
U1_aa(less14_out_aa(T38)) → less14_out_aa(s(T38))
less14_in_ga(0) → less14_out_ga
less14_in_ga(s(T38)) → U1_ga(less14_in_ga(T38))
U3_gaaa(part24_out_gaaa) → part24_out_gaaa
U1_ga(less14_out_ga) → less14_out_ga
part24_in_gaaa(x0)
less14_in_aa
U2_gaaa(x0, x1)
U4_gaaa(x0)
U1_aa(x0)
less14_in_ga(x0)
U3_gaaa(x0)
U1_ga(x0)
LESS14_IN_GG(s(T38), s(T39)) → LESS14_IN_GG(T38, T39)
qs1_in_ga([], []) → qs1_out_ga([], [])
qs1_in_ga(.(T22, .(T23, T24)), T9) → U17_ga(T22, T23, T24, T9, less14_in_gg(T22, T23))
less14_in_gg(0, s(T33)) → less14_out_gg(0, s(T33))
less14_in_gg(s(T38), s(T39)) → U1_gg(T38, T39, less14_in_gg(T38, T39))
U1_gg(T38, T39, less14_out_gg(T38, T39)) → less14_out_gg(s(T38), s(T39))
U17_ga(T22, T23, T24, T9, less14_out_gg(T22, T23)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U17_ga(T22, T23, T24, T9, less14_out_gg(T22, T23)) → U18_ga(T22, T23, T24, T9, part24_in_ggaa(T22, T24, X52, X53))
part24_in_ggaa(T62, .(T63, T64), .(T63, X126), X127) → U2_ggaa(T62, T63, T64, X126, X127, less14_in_gg(T62, T63))
U2_ggaa(T62, T63, T64, X126, X127, less14_out_gg(T62, T63)) → part24_out_ggaa(T62, .(T63, T64), .(T63, X126), X127)
U2_ggaa(T62, T63, T64, X126, X127, less14_out_gg(T62, T63)) → U3_ggaa(T62, T63, T64, X126, X127, part24_in_ggaa(T62, T64, X126, X127))
part24_in_ggaa(T84, .(T85, T86), X177, .(T85, X178)) → U4_ggaa(T84, T85, T86, X177, X178, part24_in_ggaa(T84, T86, X177, X178))
part24_in_ggaa(T92, [], [], []) → part24_out_ggaa(T92, [], [], [])
U4_ggaa(T84, T85, T86, X177, X178, part24_out_ggaa(T84, T86, X177, X178)) → part24_out_ggaa(T84, .(T85, T86), X177, .(T85, X178))
U3_ggaa(T62, T63, T64, X126, X127, part24_out_ggaa(T62, T64, X126, X127)) → part24_out_ggaa(T62, .(T63, T64), .(T63, X126), X127)
U18_ga(T22, T23, T24, T9, part24_out_ggaa(T22, T24, X52, X53)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U17_ga(T22, T23, T24, T9, less14_out_gg(T22, T23)) → U19_ga(T22, T23, T24, T9, part24_in_ggaa(T22, T24, T45, T46))
U19_ga(T22, T23, T24, T9, part24_out_ggaa(T22, T24, T45, T46)) → U20_ga(T22, T23, T24, T9, qs1_in_aa(.(T23, T45), X14))
qs1_in_aa([], []) → qs1_out_aa([], [])
qs1_in_aa(.(T22, .(T23, T24)), T9) → U17_aa(T22, T23, T24, T9, less14_in_aa(T22, T23))
less14_in_aa(0, s(T33)) → less14_out_aa(0, s(T33))
less14_in_aa(s(T38), s(T39)) → U1_aa(T38, T39, less14_in_aa(T38, T39))
U1_aa(T38, T39, less14_out_aa(T38, T39)) → less14_out_aa(s(T38), s(T39))
U17_aa(T22, T23, T24, T9, less14_out_aa(T22, T23)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U17_aa(T22, T23, T24, T9, less14_out_aa(T22, T23)) → U18_aa(T22, T23, T24, T9, part24_in_gaaa(T22, T24, X52, X53))
part24_in_gaaa(T62, .(T63, T64), .(T63, X126), X127) → U2_gaaa(T62, T63, T64, X126, X127, less14_in_ga(T62, T63))
less14_in_ga(0, s(T33)) → less14_out_ga(0, s(T33))
less14_in_ga(s(T38), s(T39)) → U1_ga(T38, T39, less14_in_ga(T38, T39))
U1_ga(T38, T39, less14_out_ga(T38, T39)) → less14_out_ga(s(T38), s(T39))
U2_gaaa(T62, T63, T64, X126, X127, less14_out_ga(T62, T63)) → part24_out_gaaa(T62, .(T63, T64), .(T63, X126), X127)
U2_gaaa(T62, T63, T64, X126, X127, less14_out_ga(T62, T63)) → U3_gaaa(T62, T63, T64, X126, X127, part24_in_gaaa(T62, T64, X126, X127))
part24_in_gaaa(T84, .(T85, T86), X177, .(T85, X178)) → U4_gaaa(T84, T85, T86, X177, X178, part24_in_gaaa(T84, T86, X177, X178))
part24_in_gaaa(T92, [], [], []) → part24_out_gaaa(T92, [], [], [])
U4_gaaa(T84, T85, T86, X177, X178, part24_out_gaaa(T84, T86, X177, X178)) → part24_out_gaaa(T84, .(T85, T86), X177, .(T85, X178))
U3_gaaa(T62, T63, T64, X126, X127, part24_out_gaaa(T62, T64, X126, X127)) → part24_out_gaaa(T62, .(T63, T64), .(T63, X126), X127)
U18_aa(T22, T23, T24, T9, part24_out_gaaa(T22, T24, X52, X53)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U17_aa(T22, T23, T24, T9, less14_out_aa(T22, T23)) → U19_aa(T22, T23, T24, T9, part24_in_gaaa(T22, T24, T45, T46))
U19_aa(T22, T23, T24, T9, part24_out_gaaa(T22, T24, T45, T46)) → U20_aa(T22, T23, T24, T9, qs1_in_aa(.(T23, T45), X14))
qs1_in_aa(.(T191, .(T192, T193)), T9) → U23_aa(T191, T192, T193, T9, part24_in_aaaa(T191, T193, X336, X337))
part24_in_aaaa(T62, .(T63, T64), .(T63, X126), X127) → U2_aaaa(T62, T63, T64, X126, X127, less14_in_aa(T62, T63))
U2_aaaa(T62, T63, T64, X126, X127, less14_out_aa(T62, T63)) → part24_out_aaaa(T62, .(T63, T64), .(T63, X126), X127)
U2_aaaa(T62, T63, T64, X126, X127, less14_out_aa(T62, T63)) → U3_aaaa(T62, T63, T64, X126, X127, part24_in_gaaa(T62, T64, X126, X127))
U3_aaaa(T62, T63, T64, X126, X127, part24_out_gaaa(T62, T64, X126, X127)) → part24_out_aaaa(T62, .(T63, T64), .(T63, X126), X127)
part24_in_aaaa(T84, .(T85, T86), X177, .(T85, X178)) → U4_aaaa(T84, T85, T86, X177, X178, part24_in_aaaa(T84, T86, X177, X178))
part24_in_aaaa(T92, [], [], []) → part24_out_aaaa(T92, [], [], [])
U4_aaaa(T84, T85, T86, X177, X178, part24_out_aaaa(T84, T86, X177, X178)) → part24_out_aaaa(T84, .(T85, T86), X177, .(T85, X178))
U23_aa(T191, T192, T193, T9, part24_out_aaaa(T191, T193, X336, X337)) → qs1_out_aa(.(T191, .(T192, T193)), T9)
qs1_in_aa(.(T191, .(T192, T193)), T9) → U24_aa(T191, T192, T193, T9, part24_in_aaaa(T191, T193, T197, T198))
U24_aa(T191, T192, T193, T9, part24_out_aaaa(T191, T193, T197, T198)) → U25_aa(T191, T192, T193, T9, qs42_in_aa(T197, X14))
qs42_in_aa([], []) → qs42_out_aa([], [])
qs42_in_aa(.(T103, T104), X230) → U5_aa(T103, T104, X230, part24_in_aaaa(T103, T104, X226, X227))
U5_aa(T103, T104, X230, part24_out_aaaa(T103, T104, X226, X227)) → qs42_out_aa(.(T103, T104), X230)
qs42_in_aa(.(T103, T104), X230) → U6_aa(T103, T104, X230, part24_in_aaaa(T103, T104, T108, T109))
U6_aa(T103, T104, X230, part24_out_aaaa(T103, T104, T108, T109)) → U7_aa(T103, T104, X230, qs42_in_aa(T108, X228))
U7_aa(T103, T104, X230, qs42_out_aa(T108, X228)) → qs42_out_aa(.(T103, T104), X230)
U6_aa(T103, T104, X230, part24_out_aaaa(T103, T104, T108, T109)) → U8_aa(T103, T104, X230, T109, qs42_in_aa(T108, T113))
U8_aa(T103, T104, X230, T109, qs42_out_aa(T108, T113)) → U9_aa(T103, T104, X230, qs42_in_aa(T109, X229))
U9_aa(T103, T104, X230, qs42_out_aa(T109, X229)) → qs42_out_aa(.(T103, T104), X230)
U8_aa(T103, T104, X230, T109, qs42_out_aa(T108, T113)) → U10_aa(T103, T104, X230, T113, qs42_in_aa(T109, T114))
U10_aa(T103, T104, X230, T113, qs42_out_aa(T109, T114)) → U11_aa(T103, T104, X230, app57_in_aaaa(T113, T103, T114, X230))
app57_in_aaaa([], T127, T128, .(T127, T128)) → app57_out_aaaa([], T127, T128, .(T127, T128))
app57_in_aaaa(.(T137, T138), T139, T140, .(T137, X270)) → U12_aaaa(T137, T138, T139, T140, X270, app57_in_aaaa(T138, T139, T140, X270))
U12_aaaa(T137, T138, T139, T140, X270, app57_out_aaaa(T138, T139, T140, X270)) → app57_out_aaaa(.(T137, T138), T139, T140, .(T137, X270))
U11_aa(T103, T104, X230, app57_out_aaaa(T113, T103, T114, X230)) → qs42_out_aa(.(T103, T104), X230)
U25_aa(T191, T192, T193, T9, qs42_out_aa(T197, X14)) → qs1_out_aa(.(T191, .(T192, T193)), T9)
U24_aa(T191, T192, T193, T9, part24_out_aaaa(T191, T193, T197, T198)) → U26_aa(T191, T192, T193, T9, T198, qs42_in_aa(T197, T202))
U26_aa(T191, T192, T193, T9, T198, qs42_out_aa(T197, T202)) → U27_aa(T191, T192, T193, T9, p41_in_aaaaa(.(T192, T198), X15, T202, T191, T9))
p41_in_aaaaa(T46, X15, T95, T22, T9) → U14_aaaaa(T46, X15, T95, T22, T9, qs42_in_aa(T46, X15))
U14_aaaaa(T46, X15, T95, T22, T9, qs42_out_aa(T46, X15)) → p41_out_aaaaa(T46, X15, T95, T22, T9)
p41_in_aaaaa(T46, T98, T95, T22, T9) → U15_aaaaa(T46, T98, T95, T22, T9, qs42_in_aa(T46, T98))
U15_aaaaa(T46, T98, T95, T22, T9, qs42_out_aa(T46, T98)) → U16_aaaaa(T46, T98, T95, T22, T9, app43_in_aaaa(T95, T22, T98, T9))
app43_in_aaaa([], T157, T158, .(T157, T158)) → app43_out_aaaa([], T157, T158, .(T157, T158))
app43_in_aaaa(.(T169, T170), T171, T172, .(T169, T174)) → U13_aaaa(T169, T170, T171, T172, T174, app43_in_aaaa(T170, T171, T172, T174))
U13_aaaa(T169, T170, T171, T172, T174, app43_out_aaaa(T170, T171, T172, T174)) → app43_out_aaaa(.(T169, T170), T171, T172, .(T169, T174))
U16_aaaaa(T46, T98, T95, T22, T9, app43_out_aaaa(T95, T22, T98, T9)) → p41_out_aaaaa(T46, T98, T95, T22, T9)
U27_aa(T191, T192, T193, T9, p41_out_aaaaa(.(T192, T198), X15, T202, T191, T9)) → qs1_out_aa(.(T191, .(T192, T193)), T9)
qs1_in_aa(.(T207, []), T9) → U28_aa(T207, T9, qs84_in_a(X14))
qs84_in_a([]) → qs84_out_a([])
U28_aa(T207, T9, qs84_out_a(X14)) → qs1_out_aa(.(T207, []), T9)
qs1_in_aa(.(T207, []), T9) → U29_aa(T207, T9, qs84_in_a(T210))
U29_aa(T207, T9, qs84_out_a(T210)) → U30_aa(T207, T9, qs84_in_a(X15))
U30_aa(T207, T9, qs84_out_a(X15)) → qs1_out_aa(.(T207, []), T9)
U29_aa(T207, T9, qs84_out_a(T210)) → U31_aa(T207, T9, T210, qs84_in_a(T213))
U31_aa(T207, T9, T210, qs84_out_a(T213)) → U32_aa(T207, T9, app43_in_gaga(T210, T207, T213, T9))
app43_in_gaga([], T157, T158, .(T157, T158)) → app43_out_gaga([], T157, T158, .(T157, T158))
app43_in_gaga(.(T169, T170), T171, T172, .(T169, T174)) → U13_gaga(T169, T170, T171, T172, T174, app43_in_gaga(T170, T171, T172, T174))
U13_gaga(T169, T170, T171, T172, T174, app43_out_gaga(T170, T171, T172, T174)) → app43_out_gaga(.(T169, T170), T171, T172, .(T169, T174))
U32_aa(T207, T9, app43_out_gaga(T210, T207, T213, T9)) → qs1_out_aa(.(T207, []), T9)
U20_aa(T22, T23, T24, T9, qs1_out_aa(.(T23, T45), X14)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U19_aa(T22, T23, T24, T9, part24_out_gaaa(T22, T24, T45, T46)) → U21_aa(T22, T23, T24, T9, T46, qs1_in_aa(.(T23, T45), T95))
U21_aa(T22, T23, T24, T9, T46, qs1_out_aa(.(T23, T45), T95)) → U22_aa(T22, T23, T24, T9, p41_in_aaaga(T46, X15, T95, T22, T9))
p41_in_aaaga(T46, X15, T95, T22, T9) → U14_aaaga(T46, X15, T95, T22, T9, qs42_in_aa(T46, X15))
U14_aaaga(T46, X15, T95, T22, T9, qs42_out_aa(T46, X15)) → p41_out_aaaga(T46, X15, T95, T22, T9)
p41_in_aaaga(T46, T98, T95, T22, T9) → U15_aaaga(T46, T98, T95, T22, T9, qs42_in_aa(T46, T98))
U15_aaaga(T46, T98, T95, T22, T9, qs42_out_aa(T46, T98)) → U16_aaaga(T46, T98, T95, T22, T9, app43_in_agaa(T95, T22, T98, T9))
app43_in_agaa([], T157, T158, .(T157, T158)) → app43_out_agaa([], T157, T158, .(T157, T158))
app43_in_agaa(.(T169, T170), T171, T172, .(T169, T174)) → U13_agaa(T169, T170, T171, T172, T174, app43_in_agaa(T170, T171, T172, T174))
U13_agaa(T169, T170, T171, T172, T174, app43_out_agaa(T170, T171, T172, T174)) → app43_out_agaa(.(T169, T170), T171, T172, .(T169, T174))
U16_aaaga(T46, T98, T95, T22, T9, app43_out_agaa(T95, T22, T98, T9)) → p41_out_aaaga(T46, T98, T95, T22, T9)
U22_aa(T22, T23, T24, T9, p41_out_aaaga(T46, X15, T95, T22, T9)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U20_ga(T22, T23, T24, T9, qs1_out_aa(.(T23, T45), X14)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U19_ga(T22, T23, T24, T9, part24_out_ggaa(T22, T24, T45, T46)) → U21_ga(T22, T23, T24, T9, T46, qs1_in_aa(.(T23, T45), T95))
U21_ga(T22, T23, T24, T9, T46, qs1_out_aa(.(T23, T45), T95)) → U22_ga(T22, T23, T24, T9, p41_in_aaaga(T46, X15, T95, T22, T9))
U22_ga(T22, T23, T24, T9, p41_out_aaaga(T46, X15, T95, T22, T9)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
qs1_in_ga(.(T191, .(T192, T193)), T9) → U23_ga(T191, T192, T193, T9, part24_in_ggaa(T191, T193, X336, X337))
U23_ga(T191, T192, T193, T9, part24_out_ggaa(T191, T193, X336, X337)) → qs1_out_ga(.(T191, .(T192, T193)), T9)
qs1_in_ga(.(T191, .(T192, T193)), T9) → U24_ga(T191, T192, T193, T9, part24_in_ggaa(T191, T193, T197, T198))
U24_ga(T191, T192, T193, T9, part24_out_ggaa(T191, T193, T197, T198)) → U25_ga(T191, T192, T193, T9, qs42_in_aa(T197, X14))
U25_ga(T191, T192, T193, T9, qs42_out_aa(T197, X14)) → qs1_out_ga(.(T191, .(T192, T193)), T9)
U24_ga(T191, T192, T193, T9, part24_out_ggaa(T191, T193, T197, T198)) → U26_ga(T191, T192, T193, T9, T198, qs42_in_aa(T197, T202))
U26_ga(T191, T192, T193, T9, T198, qs42_out_aa(T197, T202)) → U27_ga(T191, T192, T193, T9, p41_in_aaaga(.(T192, T198), X15, T202, T191, T9))
U27_ga(T191, T192, T193, T9, p41_out_aaaga(.(T192, T198), X15, T202, T191, T9)) → qs1_out_ga(.(T191, .(T192, T193)), T9)
qs1_in_ga(.(T207, []), T9) → U28_ga(T207, T9, qs84_in_a(X14))
U28_ga(T207, T9, qs84_out_a(X14)) → qs1_out_ga(.(T207, []), T9)
qs1_in_ga(.(T207, []), T9) → U29_ga(T207, T9, qs84_in_a(T210))
U29_ga(T207, T9, qs84_out_a(T210)) → U30_ga(T207, T9, qs84_in_a(X15))
U30_ga(T207, T9, qs84_out_a(X15)) → qs1_out_ga(.(T207, []), T9)
U29_ga(T207, T9, qs84_out_a(T210)) → U31_ga(T207, T9, T210, qs84_in_a(T213))
U31_ga(T207, T9, T210, qs84_out_a(T213)) → U32_ga(T207, T9, app43_in_ggga(T210, T207, T213, T9))
app43_in_ggga([], T157, T158, .(T157, T158)) → app43_out_ggga([], T157, T158, .(T157, T158))
app43_in_ggga(.(T169, T170), T171, T172, .(T169, T174)) → U13_ggga(T169, T170, T171, T172, T174, app43_in_ggga(T170, T171, T172, T174))
U13_ggga(T169, T170, T171, T172, T174, app43_out_ggga(T170, T171, T172, T174)) → app43_out_ggga(.(T169, T170), T171, T172, .(T169, T174))
U32_ga(T207, T9, app43_out_ggga(T210, T207, T213, T9)) → qs1_out_ga(.(T207, []), T9)
LESS14_IN_GG(s(T38), s(T39)) → LESS14_IN_GG(T38, T39)
LESS14_IN_GG(s(T38), s(T39)) → LESS14_IN_GG(T38, T39)
From the DPs we obtained the following set of size-change graphs:
PART24_IN_GGAA(T62, .(T63, T64), .(T63, X126), X127) → U2_GGAA(T62, T63, T64, X126, X127, less14_in_gg(T62, T63))
U2_GGAA(T62, T63, T64, X126, X127, less14_out_gg(T62, T63)) → PART24_IN_GGAA(T62, T64, X126, X127)
PART24_IN_GGAA(T84, .(T85, T86), X177, .(T85, X178)) → PART24_IN_GGAA(T84, T86, X177, X178)
qs1_in_ga([], []) → qs1_out_ga([], [])
qs1_in_ga(.(T22, .(T23, T24)), T9) → U17_ga(T22, T23, T24, T9, less14_in_gg(T22, T23))
less14_in_gg(0, s(T33)) → less14_out_gg(0, s(T33))
less14_in_gg(s(T38), s(T39)) → U1_gg(T38, T39, less14_in_gg(T38, T39))
U1_gg(T38, T39, less14_out_gg(T38, T39)) → less14_out_gg(s(T38), s(T39))
U17_ga(T22, T23, T24, T9, less14_out_gg(T22, T23)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U17_ga(T22, T23, T24, T9, less14_out_gg(T22, T23)) → U18_ga(T22, T23, T24, T9, part24_in_ggaa(T22, T24, X52, X53))
part24_in_ggaa(T62, .(T63, T64), .(T63, X126), X127) → U2_ggaa(T62, T63, T64, X126, X127, less14_in_gg(T62, T63))
U2_ggaa(T62, T63, T64, X126, X127, less14_out_gg(T62, T63)) → part24_out_ggaa(T62, .(T63, T64), .(T63, X126), X127)
U2_ggaa(T62, T63, T64, X126, X127, less14_out_gg(T62, T63)) → U3_ggaa(T62, T63, T64, X126, X127, part24_in_ggaa(T62, T64, X126, X127))
part24_in_ggaa(T84, .(T85, T86), X177, .(T85, X178)) → U4_ggaa(T84, T85, T86, X177, X178, part24_in_ggaa(T84, T86, X177, X178))
part24_in_ggaa(T92, [], [], []) → part24_out_ggaa(T92, [], [], [])
U4_ggaa(T84, T85, T86, X177, X178, part24_out_ggaa(T84, T86, X177, X178)) → part24_out_ggaa(T84, .(T85, T86), X177, .(T85, X178))
U3_ggaa(T62, T63, T64, X126, X127, part24_out_ggaa(T62, T64, X126, X127)) → part24_out_ggaa(T62, .(T63, T64), .(T63, X126), X127)
U18_ga(T22, T23, T24, T9, part24_out_ggaa(T22, T24, X52, X53)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U17_ga(T22, T23, T24, T9, less14_out_gg(T22, T23)) → U19_ga(T22, T23, T24, T9, part24_in_ggaa(T22, T24, T45, T46))
U19_ga(T22, T23, T24, T9, part24_out_ggaa(T22, T24, T45, T46)) → U20_ga(T22, T23, T24, T9, qs1_in_aa(.(T23, T45), X14))
qs1_in_aa([], []) → qs1_out_aa([], [])
qs1_in_aa(.(T22, .(T23, T24)), T9) → U17_aa(T22, T23, T24, T9, less14_in_aa(T22, T23))
less14_in_aa(0, s(T33)) → less14_out_aa(0, s(T33))
less14_in_aa(s(T38), s(T39)) → U1_aa(T38, T39, less14_in_aa(T38, T39))
U1_aa(T38, T39, less14_out_aa(T38, T39)) → less14_out_aa(s(T38), s(T39))
U17_aa(T22, T23, T24, T9, less14_out_aa(T22, T23)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U17_aa(T22, T23, T24, T9, less14_out_aa(T22, T23)) → U18_aa(T22, T23, T24, T9, part24_in_gaaa(T22, T24, X52, X53))
part24_in_gaaa(T62, .(T63, T64), .(T63, X126), X127) → U2_gaaa(T62, T63, T64, X126, X127, less14_in_ga(T62, T63))
less14_in_ga(0, s(T33)) → less14_out_ga(0, s(T33))
less14_in_ga(s(T38), s(T39)) → U1_ga(T38, T39, less14_in_ga(T38, T39))
U1_ga(T38, T39, less14_out_ga(T38, T39)) → less14_out_ga(s(T38), s(T39))
U2_gaaa(T62, T63, T64, X126, X127, less14_out_ga(T62, T63)) → part24_out_gaaa(T62, .(T63, T64), .(T63, X126), X127)
U2_gaaa(T62, T63, T64, X126, X127, less14_out_ga(T62, T63)) → U3_gaaa(T62, T63, T64, X126, X127, part24_in_gaaa(T62, T64, X126, X127))
part24_in_gaaa(T84, .(T85, T86), X177, .(T85, X178)) → U4_gaaa(T84, T85, T86, X177, X178, part24_in_gaaa(T84, T86, X177, X178))
part24_in_gaaa(T92, [], [], []) → part24_out_gaaa(T92, [], [], [])
U4_gaaa(T84, T85, T86, X177, X178, part24_out_gaaa(T84, T86, X177, X178)) → part24_out_gaaa(T84, .(T85, T86), X177, .(T85, X178))
U3_gaaa(T62, T63, T64, X126, X127, part24_out_gaaa(T62, T64, X126, X127)) → part24_out_gaaa(T62, .(T63, T64), .(T63, X126), X127)
U18_aa(T22, T23, T24, T9, part24_out_gaaa(T22, T24, X52, X53)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U17_aa(T22, T23, T24, T9, less14_out_aa(T22, T23)) → U19_aa(T22, T23, T24, T9, part24_in_gaaa(T22, T24, T45, T46))
U19_aa(T22, T23, T24, T9, part24_out_gaaa(T22, T24, T45, T46)) → U20_aa(T22, T23, T24, T9, qs1_in_aa(.(T23, T45), X14))
qs1_in_aa(.(T191, .(T192, T193)), T9) → U23_aa(T191, T192, T193, T9, part24_in_aaaa(T191, T193, X336, X337))
part24_in_aaaa(T62, .(T63, T64), .(T63, X126), X127) → U2_aaaa(T62, T63, T64, X126, X127, less14_in_aa(T62, T63))
U2_aaaa(T62, T63, T64, X126, X127, less14_out_aa(T62, T63)) → part24_out_aaaa(T62, .(T63, T64), .(T63, X126), X127)
U2_aaaa(T62, T63, T64, X126, X127, less14_out_aa(T62, T63)) → U3_aaaa(T62, T63, T64, X126, X127, part24_in_gaaa(T62, T64, X126, X127))
U3_aaaa(T62, T63, T64, X126, X127, part24_out_gaaa(T62, T64, X126, X127)) → part24_out_aaaa(T62, .(T63, T64), .(T63, X126), X127)
part24_in_aaaa(T84, .(T85, T86), X177, .(T85, X178)) → U4_aaaa(T84, T85, T86, X177, X178, part24_in_aaaa(T84, T86, X177, X178))
part24_in_aaaa(T92, [], [], []) → part24_out_aaaa(T92, [], [], [])
U4_aaaa(T84, T85, T86, X177, X178, part24_out_aaaa(T84, T86, X177, X178)) → part24_out_aaaa(T84, .(T85, T86), X177, .(T85, X178))
U23_aa(T191, T192, T193, T9, part24_out_aaaa(T191, T193, X336, X337)) → qs1_out_aa(.(T191, .(T192, T193)), T9)
qs1_in_aa(.(T191, .(T192, T193)), T9) → U24_aa(T191, T192, T193, T9, part24_in_aaaa(T191, T193, T197, T198))
U24_aa(T191, T192, T193, T9, part24_out_aaaa(T191, T193, T197, T198)) → U25_aa(T191, T192, T193, T9, qs42_in_aa(T197, X14))
qs42_in_aa([], []) → qs42_out_aa([], [])
qs42_in_aa(.(T103, T104), X230) → U5_aa(T103, T104, X230, part24_in_aaaa(T103, T104, X226, X227))
U5_aa(T103, T104, X230, part24_out_aaaa(T103, T104, X226, X227)) → qs42_out_aa(.(T103, T104), X230)
qs42_in_aa(.(T103, T104), X230) → U6_aa(T103, T104, X230, part24_in_aaaa(T103, T104, T108, T109))
U6_aa(T103, T104, X230, part24_out_aaaa(T103, T104, T108, T109)) → U7_aa(T103, T104, X230, qs42_in_aa(T108, X228))
U7_aa(T103, T104, X230, qs42_out_aa(T108, X228)) → qs42_out_aa(.(T103, T104), X230)
U6_aa(T103, T104, X230, part24_out_aaaa(T103, T104, T108, T109)) → U8_aa(T103, T104, X230, T109, qs42_in_aa(T108, T113))
U8_aa(T103, T104, X230, T109, qs42_out_aa(T108, T113)) → U9_aa(T103, T104, X230, qs42_in_aa(T109, X229))
U9_aa(T103, T104, X230, qs42_out_aa(T109, X229)) → qs42_out_aa(.(T103, T104), X230)
U8_aa(T103, T104, X230, T109, qs42_out_aa(T108, T113)) → U10_aa(T103, T104, X230, T113, qs42_in_aa(T109, T114))
U10_aa(T103, T104, X230, T113, qs42_out_aa(T109, T114)) → U11_aa(T103, T104, X230, app57_in_aaaa(T113, T103, T114, X230))
app57_in_aaaa([], T127, T128, .(T127, T128)) → app57_out_aaaa([], T127, T128, .(T127, T128))
app57_in_aaaa(.(T137, T138), T139, T140, .(T137, X270)) → U12_aaaa(T137, T138, T139, T140, X270, app57_in_aaaa(T138, T139, T140, X270))
U12_aaaa(T137, T138, T139, T140, X270, app57_out_aaaa(T138, T139, T140, X270)) → app57_out_aaaa(.(T137, T138), T139, T140, .(T137, X270))
U11_aa(T103, T104, X230, app57_out_aaaa(T113, T103, T114, X230)) → qs42_out_aa(.(T103, T104), X230)
U25_aa(T191, T192, T193, T9, qs42_out_aa(T197, X14)) → qs1_out_aa(.(T191, .(T192, T193)), T9)
U24_aa(T191, T192, T193, T9, part24_out_aaaa(T191, T193, T197, T198)) → U26_aa(T191, T192, T193, T9, T198, qs42_in_aa(T197, T202))
U26_aa(T191, T192, T193, T9, T198, qs42_out_aa(T197, T202)) → U27_aa(T191, T192, T193, T9, p41_in_aaaaa(.(T192, T198), X15, T202, T191, T9))
p41_in_aaaaa(T46, X15, T95, T22, T9) → U14_aaaaa(T46, X15, T95, T22, T9, qs42_in_aa(T46, X15))
U14_aaaaa(T46, X15, T95, T22, T9, qs42_out_aa(T46, X15)) → p41_out_aaaaa(T46, X15, T95, T22, T9)
p41_in_aaaaa(T46, T98, T95, T22, T9) → U15_aaaaa(T46, T98, T95, T22, T9, qs42_in_aa(T46, T98))
U15_aaaaa(T46, T98, T95, T22, T9, qs42_out_aa(T46, T98)) → U16_aaaaa(T46, T98, T95, T22, T9, app43_in_aaaa(T95, T22, T98, T9))
app43_in_aaaa([], T157, T158, .(T157, T158)) → app43_out_aaaa([], T157, T158, .(T157, T158))
app43_in_aaaa(.(T169, T170), T171, T172, .(T169, T174)) → U13_aaaa(T169, T170, T171, T172, T174, app43_in_aaaa(T170, T171, T172, T174))
U13_aaaa(T169, T170, T171, T172, T174, app43_out_aaaa(T170, T171, T172, T174)) → app43_out_aaaa(.(T169, T170), T171, T172, .(T169, T174))
U16_aaaaa(T46, T98, T95, T22, T9, app43_out_aaaa(T95, T22, T98, T9)) → p41_out_aaaaa(T46, T98, T95, T22, T9)
U27_aa(T191, T192, T193, T9, p41_out_aaaaa(.(T192, T198), X15, T202, T191, T9)) → qs1_out_aa(.(T191, .(T192, T193)), T9)
qs1_in_aa(.(T207, []), T9) → U28_aa(T207, T9, qs84_in_a(X14))
qs84_in_a([]) → qs84_out_a([])
U28_aa(T207, T9, qs84_out_a(X14)) → qs1_out_aa(.(T207, []), T9)
qs1_in_aa(.(T207, []), T9) → U29_aa(T207, T9, qs84_in_a(T210))
U29_aa(T207, T9, qs84_out_a(T210)) → U30_aa(T207, T9, qs84_in_a(X15))
U30_aa(T207, T9, qs84_out_a(X15)) → qs1_out_aa(.(T207, []), T9)
U29_aa(T207, T9, qs84_out_a(T210)) → U31_aa(T207, T9, T210, qs84_in_a(T213))
U31_aa(T207, T9, T210, qs84_out_a(T213)) → U32_aa(T207, T9, app43_in_gaga(T210, T207, T213, T9))
app43_in_gaga([], T157, T158, .(T157, T158)) → app43_out_gaga([], T157, T158, .(T157, T158))
app43_in_gaga(.(T169, T170), T171, T172, .(T169, T174)) → U13_gaga(T169, T170, T171, T172, T174, app43_in_gaga(T170, T171, T172, T174))
U13_gaga(T169, T170, T171, T172, T174, app43_out_gaga(T170, T171, T172, T174)) → app43_out_gaga(.(T169, T170), T171, T172, .(T169, T174))
U32_aa(T207, T9, app43_out_gaga(T210, T207, T213, T9)) → qs1_out_aa(.(T207, []), T9)
U20_aa(T22, T23, T24, T9, qs1_out_aa(.(T23, T45), X14)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U19_aa(T22, T23, T24, T9, part24_out_gaaa(T22, T24, T45, T46)) → U21_aa(T22, T23, T24, T9, T46, qs1_in_aa(.(T23, T45), T95))
U21_aa(T22, T23, T24, T9, T46, qs1_out_aa(.(T23, T45), T95)) → U22_aa(T22, T23, T24, T9, p41_in_aaaga(T46, X15, T95, T22, T9))
p41_in_aaaga(T46, X15, T95, T22, T9) → U14_aaaga(T46, X15, T95, T22, T9, qs42_in_aa(T46, X15))
U14_aaaga(T46, X15, T95, T22, T9, qs42_out_aa(T46, X15)) → p41_out_aaaga(T46, X15, T95, T22, T9)
p41_in_aaaga(T46, T98, T95, T22, T9) → U15_aaaga(T46, T98, T95, T22, T9, qs42_in_aa(T46, T98))
U15_aaaga(T46, T98, T95, T22, T9, qs42_out_aa(T46, T98)) → U16_aaaga(T46, T98, T95, T22, T9, app43_in_agaa(T95, T22, T98, T9))
app43_in_agaa([], T157, T158, .(T157, T158)) → app43_out_agaa([], T157, T158, .(T157, T158))
app43_in_agaa(.(T169, T170), T171, T172, .(T169, T174)) → U13_agaa(T169, T170, T171, T172, T174, app43_in_agaa(T170, T171, T172, T174))
U13_agaa(T169, T170, T171, T172, T174, app43_out_agaa(T170, T171, T172, T174)) → app43_out_agaa(.(T169, T170), T171, T172, .(T169, T174))
U16_aaaga(T46, T98, T95, T22, T9, app43_out_agaa(T95, T22, T98, T9)) → p41_out_aaaga(T46, T98, T95, T22, T9)
U22_aa(T22, T23, T24, T9, p41_out_aaaga(T46, X15, T95, T22, T9)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U20_ga(T22, T23, T24, T9, qs1_out_aa(.(T23, T45), X14)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U19_ga(T22, T23, T24, T9, part24_out_ggaa(T22, T24, T45, T46)) → U21_ga(T22, T23, T24, T9, T46, qs1_in_aa(.(T23, T45), T95))
U21_ga(T22, T23, T24, T9, T46, qs1_out_aa(.(T23, T45), T95)) → U22_ga(T22, T23, T24, T9, p41_in_aaaga(T46, X15, T95, T22, T9))
U22_ga(T22, T23, T24, T9, p41_out_aaaga(T46, X15, T95, T22, T9)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
qs1_in_ga(.(T191, .(T192, T193)), T9) → U23_ga(T191, T192, T193, T9, part24_in_ggaa(T191, T193, X336, X337))
U23_ga(T191, T192, T193, T9, part24_out_ggaa(T191, T193, X336, X337)) → qs1_out_ga(.(T191, .(T192, T193)), T9)
qs1_in_ga(.(T191, .(T192, T193)), T9) → U24_ga(T191, T192, T193, T9, part24_in_ggaa(T191, T193, T197, T198))
U24_ga(T191, T192, T193, T9, part24_out_ggaa(T191, T193, T197, T198)) → U25_ga(T191, T192, T193, T9, qs42_in_aa(T197, X14))
U25_ga(T191, T192, T193, T9, qs42_out_aa(T197, X14)) → qs1_out_ga(.(T191, .(T192, T193)), T9)
U24_ga(T191, T192, T193, T9, part24_out_ggaa(T191, T193, T197, T198)) → U26_ga(T191, T192, T193, T9, T198, qs42_in_aa(T197, T202))
U26_ga(T191, T192, T193, T9, T198, qs42_out_aa(T197, T202)) → U27_ga(T191, T192, T193, T9, p41_in_aaaga(.(T192, T198), X15, T202, T191, T9))
U27_ga(T191, T192, T193, T9, p41_out_aaaga(.(T192, T198), X15, T202, T191, T9)) → qs1_out_ga(.(T191, .(T192, T193)), T9)
qs1_in_ga(.(T207, []), T9) → U28_ga(T207, T9, qs84_in_a(X14))
U28_ga(T207, T9, qs84_out_a(X14)) → qs1_out_ga(.(T207, []), T9)
qs1_in_ga(.(T207, []), T9) → U29_ga(T207, T9, qs84_in_a(T210))
U29_ga(T207, T9, qs84_out_a(T210)) → U30_ga(T207, T9, qs84_in_a(X15))
U30_ga(T207, T9, qs84_out_a(X15)) → qs1_out_ga(.(T207, []), T9)
U29_ga(T207, T9, qs84_out_a(T210)) → U31_ga(T207, T9, T210, qs84_in_a(T213))
U31_ga(T207, T9, T210, qs84_out_a(T213)) → U32_ga(T207, T9, app43_in_ggga(T210, T207, T213, T9))
app43_in_ggga([], T157, T158, .(T157, T158)) → app43_out_ggga([], T157, T158, .(T157, T158))
app43_in_ggga(.(T169, T170), T171, T172, .(T169, T174)) → U13_ggga(T169, T170, T171, T172, T174, app43_in_ggga(T170, T171, T172, T174))
U13_ggga(T169, T170, T171, T172, T174, app43_out_ggga(T170, T171, T172, T174)) → app43_out_ggga(.(T169, T170), T171, T172, .(T169, T174))
U32_ga(T207, T9, app43_out_ggga(T210, T207, T213, T9)) → qs1_out_ga(.(T207, []), T9)
PART24_IN_GGAA(T62, .(T63, T64), .(T63, X126), X127) → U2_GGAA(T62, T63, T64, X126, X127, less14_in_gg(T62, T63))
U2_GGAA(T62, T63, T64, X126, X127, less14_out_gg(T62, T63)) → PART24_IN_GGAA(T62, T64, X126, X127)
PART24_IN_GGAA(T84, .(T85, T86), X177, .(T85, X178)) → PART24_IN_GGAA(T84, T86, X177, X178)
less14_in_gg(0, s(T33)) → less14_out_gg(0, s(T33))
less14_in_gg(s(T38), s(T39)) → U1_gg(T38, T39, less14_in_gg(T38, T39))
U1_gg(T38, T39, less14_out_gg(T38, T39)) → less14_out_gg(s(T38), s(T39))
PART24_IN_GGAA(T62, .(T63, T64)) → U2_GGAA(T62, T64, less14_in_gg(T62, T63))
U2_GGAA(T62, T64, less14_out_gg) → PART24_IN_GGAA(T62, T64)
PART24_IN_GGAA(T84, .(T85, T86)) → PART24_IN_GGAA(T84, T86)
less14_in_gg(0, s(T33)) → less14_out_gg
less14_in_gg(s(T38), s(T39)) → U1_gg(less14_in_gg(T38, T39))
U1_gg(less14_out_gg) → less14_out_gg
less14_in_gg(x0, x1)
U1_gg(x0)
From the DPs we obtained the following set of size-change graphs:
qs1_in_ga([], []) → qs1_out_ga([], [])
qs1_in_ga(.(T22, .(T23, T24)), T9) → U17_ga(T22, T23, T24, T9, less14_in_gg(T22, T23))
less14_in_gg(0, s(T33)) → less14_out_gg(0, s(T33))
less14_in_gg(s(T38), s(T39)) → U1_gg(T38, T39, less14_in_gg(T38, T39))
U1_gg(T38, T39, less14_out_gg(T38, T39)) → less14_out_gg(s(T38), s(T39))
U17_ga(T22, T23, T24, T9, less14_out_gg(T22, T23)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U17_ga(T22, T23, T24, T9, less14_out_gg(T22, T23)) → U18_ga(T22, T23, T24, T9, part24_in_ggaa(T22, T24, X52, X53))
part24_in_ggaa(T62, .(T63, T64), .(T63, X126), X127) → U2_ggaa(T62, T63, T64, X126, X127, less14_in_gg(T62, T63))
U2_ggaa(T62, T63, T64, X126, X127, less14_out_gg(T62, T63)) → part24_out_ggaa(T62, .(T63, T64), .(T63, X126), X127)
U2_ggaa(T62, T63, T64, X126, X127, less14_out_gg(T62, T63)) → U3_ggaa(T62, T63, T64, X126, X127, part24_in_ggaa(T62, T64, X126, X127))
part24_in_ggaa(T84, .(T85, T86), X177, .(T85, X178)) → U4_ggaa(T84, T85, T86, X177, X178, part24_in_ggaa(T84, T86, X177, X178))
part24_in_ggaa(T92, [], [], []) → part24_out_ggaa(T92, [], [], [])
U4_ggaa(T84, T85, T86, X177, X178, part24_out_ggaa(T84, T86, X177, X178)) → part24_out_ggaa(T84, .(T85, T86), X177, .(T85, X178))
U3_ggaa(T62, T63, T64, X126, X127, part24_out_ggaa(T62, T64, X126, X127)) → part24_out_ggaa(T62, .(T63, T64), .(T63, X126), X127)
U18_ga(T22, T23, T24, T9, part24_out_ggaa(T22, T24, X52, X53)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U17_ga(T22, T23, T24, T9, less14_out_gg(T22, T23)) → U19_ga(T22, T23, T24, T9, part24_in_ggaa(T22, T24, T45, T46))
U19_ga(T22, T23, T24, T9, part24_out_ggaa(T22, T24, T45, T46)) → U20_ga(T22, T23, T24, T9, qs1_in_aa(.(T23, T45), X14))
qs1_in_aa([], []) → qs1_out_aa([], [])
qs1_in_aa(.(T22, .(T23, T24)), T9) → U17_aa(T22, T23, T24, T9, less14_in_aa(T22, T23))
less14_in_aa(0, s(T33)) → less14_out_aa(0, s(T33))
less14_in_aa(s(T38), s(T39)) → U1_aa(T38, T39, less14_in_aa(T38, T39))
U1_aa(T38, T39, less14_out_aa(T38, T39)) → less14_out_aa(s(T38), s(T39))
U17_aa(T22, T23, T24, T9, less14_out_aa(T22, T23)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U17_aa(T22, T23, T24, T9, less14_out_aa(T22, T23)) → U18_aa(T22, T23, T24, T9, part24_in_gaaa(T22, T24, X52, X53))
part24_in_gaaa(T62, .(T63, T64), .(T63, X126), X127) → U2_gaaa(T62, T63, T64, X126, X127, less14_in_ga(T62, T63))
less14_in_ga(0, s(T33)) → less14_out_ga(0, s(T33))
less14_in_ga(s(T38), s(T39)) → U1_ga(T38, T39, less14_in_ga(T38, T39))
U1_ga(T38, T39, less14_out_ga(T38, T39)) → less14_out_ga(s(T38), s(T39))
U2_gaaa(T62, T63, T64, X126, X127, less14_out_ga(T62, T63)) → part24_out_gaaa(T62, .(T63, T64), .(T63, X126), X127)
U2_gaaa(T62, T63, T64, X126, X127, less14_out_ga(T62, T63)) → U3_gaaa(T62, T63, T64, X126, X127, part24_in_gaaa(T62, T64, X126, X127))
part24_in_gaaa(T84, .(T85, T86), X177, .(T85, X178)) → U4_gaaa(T84, T85, T86, X177, X178, part24_in_gaaa(T84, T86, X177, X178))
part24_in_gaaa(T92, [], [], []) → part24_out_gaaa(T92, [], [], [])
U4_gaaa(T84, T85, T86, X177, X178, part24_out_gaaa(T84, T86, X177, X178)) → part24_out_gaaa(T84, .(T85, T86), X177, .(T85, X178))
U3_gaaa(T62, T63, T64, X126, X127, part24_out_gaaa(T62, T64, X126, X127)) → part24_out_gaaa(T62, .(T63, T64), .(T63, X126), X127)
U18_aa(T22, T23, T24, T9, part24_out_gaaa(T22, T24, X52, X53)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U17_aa(T22, T23, T24, T9, less14_out_aa(T22, T23)) → U19_aa(T22, T23, T24, T9, part24_in_gaaa(T22, T24, T45, T46))
U19_aa(T22, T23, T24, T9, part24_out_gaaa(T22, T24, T45, T46)) → U20_aa(T22, T23, T24, T9, qs1_in_aa(.(T23, T45), X14))
qs1_in_aa(.(T191, .(T192, T193)), T9) → U23_aa(T191, T192, T193, T9, part24_in_aaaa(T191, T193, X336, X337))
part24_in_aaaa(T62, .(T63, T64), .(T63, X126), X127) → U2_aaaa(T62, T63, T64, X126, X127, less14_in_aa(T62, T63))
U2_aaaa(T62, T63, T64, X126, X127, less14_out_aa(T62, T63)) → part24_out_aaaa(T62, .(T63, T64), .(T63, X126), X127)
U2_aaaa(T62, T63, T64, X126, X127, less14_out_aa(T62, T63)) → U3_aaaa(T62, T63, T64, X126, X127, part24_in_gaaa(T62, T64, X126, X127))
U3_aaaa(T62, T63, T64, X126, X127, part24_out_gaaa(T62, T64, X126, X127)) → part24_out_aaaa(T62, .(T63, T64), .(T63, X126), X127)
part24_in_aaaa(T84, .(T85, T86), X177, .(T85, X178)) → U4_aaaa(T84, T85, T86, X177, X178, part24_in_aaaa(T84, T86, X177, X178))
part24_in_aaaa(T92, [], [], []) → part24_out_aaaa(T92, [], [], [])
U4_aaaa(T84, T85, T86, X177, X178, part24_out_aaaa(T84, T86, X177, X178)) → part24_out_aaaa(T84, .(T85, T86), X177, .(T85, X178))
U23_aa(T191, T192, T193, T9, part24_out_aaaa(T191, T193, X336, X337)) → qs1_out_aa(.(T191, .(T192, T193)), T9)
qs1_in_aa(.(T191, .(T192, T193)), T9) → U24_aa(T191, T192, T193, T9, part24_in_aaaa(T191, T193, T197, T198))
U24_aa(T191, T192, T193, T9, part24_out_aaaa(T191, T193, T197, T198)) → U25_aa(T191, T192, T193, T9, qs42_in_aa(T197, X14))
qs42_in_aa([], []) → qs42_out_aa([], [])
qs42_in_aa(.(T103, T104), X230) → U5_aa(T103, T104, X230, part24_in_aaaa(T103, T104, X226, X227))
U5_aa(T103, T104, X230, part24_out_aaaa(T103, T104, X226, X227)) → qs42_out_aa(.(T103, T104), X230)
qs42_in_aa(.(T103, T104), X230) → U6_aa(T103, T104, X230, part24_in_aaaa(T103, T104, T108, T109))
U6_aa(T103, T104, X230, part24_out_aaaa(T103, T104, T108, T109)) → U7_aa(T103, T104, X230, qs42_in_aa(T108, X228))
U7_aa(T103, T104, X230, qs42_out_aa(T108, X228)) → qs42_out_aa(.(T103, T104), X230)
U6_aa(T103, T104, X230, part24_out_aaaa(T103, T104, T108, T109)) → U8_aa(T103, T104, X230, T109, qs42_in_aa(T108, T113))
U8_aa(T103, T104, X230, T109, qs42_out_aa(T108, T113)) → U9_aa(T103, T104, X230, qs42_in_aa(T109, X229))
U9_aa(T103, T104, X230, qs42_out_aa(T109, X229)) → qs42_out_aa(.(T103, T104), X230)
U8_aa(T103, T104, X230, T109, qs42_out_aa(T108, T113)) → U10_aa(T103, T104, X230, T113, qs42_in_aa(T109, T114))
U10_aa(T103, T104, X230, T113, qs42_out_aa(T109, T114)) → U11_aa(T103, T104, X230, app57_in_aaaa(T113, T103, T114, X230))
app57_in_aaaa([], T127, T128, .(T127, T128)) → app57_out_aaaa([], T127, T128, .(T127, T128))
app57_in_aaaa(.(T137, T138), T139, T140, .(T137, X270)) → U12_aaaa(T137, T138, T139, T140, X270, app57_in_aaaa(T138, T139, T140, X270))
U12_aaaa(T137, T138, T139, T140, X270, app57_out_aaaa(T138, T139, T140, X270)) → app57_out_aaaa(.(T137, T138), T139, T140, .(T137, X270))
U11_aa(T103, T104, X230, app57_out_aaaa(T113, T103, T114, X230)) → qs42_out_aa(.(T103, T104), X230)
U25_aa(T191, T192, T193, T9, qs42_out_aa(T197, X14)) → qs1_out_aa(.(T191, .(T192, T193)), T9)
U24_aa(T191, T192, T193, T9, part24_out_aaaa(T191, T193, T197, T198)) → U26_aa(T191, T192, T193, T9, T198, qs42_in_aa(T197, T202))
U26_aa(T191, T192, T193, T9, T198, qs42_out_aa(T197, T202)) → U27_aa(T191, T192, T193, T9, p41_in_aaaaa(.(T192, T198), X15, T202, T191, T9))
p41_in_aaaaa(T46, X15, T95, T22, T9) → U14_aaaaa(T46, X15, T95, T22, T9, qs42_in_aa(T46, X15))
U14_aaaaa(T46, X15, T95, T22, T9, qs42_out_aa(T46, X15)) → p41_out_aaaaa(T46, X15, T95, T22, T9)
p41_in_aaaaa(T46, T98, T95, T22, T9) → U15_aaaaa(T46, T98, T95, T22, T9, qs42_in_aa(T46, T98))
U15_aaaaa(T46, T98, T95, T22, T9, qs42_out_aa(T46, T98)) → U16_aaaaa(T46, T98, T95, T22, T9, app43_in_aaaa(T95, T22, T98, T9))
app43_in_aaaa([], T157, T158, .(T157, T158)) → app43_out_aaaa([], T157, T158, .(T157, T158))
app43_in_aaaa(.(T169, T170), T171, T172, .(T169, T174)) → U13_aaaa(T169, T170, T171, T172, T174, app43_in_aaaa(T170, T171, T172, T174))
U13_aaaa(T169, T170, T171, T172, T174, app43_out_aaaa(T170, T171, T172, T174)) → app43_out_aaaa(.(T169, T170), T171, T172, .(T169, T174))
U16_aaaaa(T46, T98, T95, T22, T9, app43_out_aaaa(T95, T22, T98, T9)) → p41_out_aaaaa(T46, T98, T95, T22, T9)
U27_aa(T191, T192, T193, T9, p41_out_aaaaa(.(T192, T198), X15, T202, T191, T9)) → qs1_out_aa(.(T191, .(T192, T193)), T9)
qs1_in_aa(.(T207, []), T9) → U28_aa(T207, T9, qs84_in_a(X14))
qs84_in_a([]) → qs84_out_a([])
U28_aa(T207, T9, qs84_out_a(X14)) → qs1_out_aa(.(T207, []), T9)
qs1_in_aa(.(T207, []), T9) → U29_aa(T207, T9, qs84_in_a(T210))
U29_aa(T207, T9, qs84_out_a(T210)) → U30_aa(T207, T9, qs84_in_a(X15))
U30_aa(T207, T9, qs84_out_a(X15)) → qs1_out_aa(.(T207, []), T9)
U29_aa(T207, T9, qs84_out_a(T210)) → U31_aa(T207, T9, T210, qs84_in_a(T213))
U31_aa(T207, T9, T210, qs84_out_a(T213)) → U32_aa(T207, T9, app43_in_gaga(T210, T207, T213, T9))
app43_in_gaga([], T157, T158, .(T157, T158)) → app43_out_gaga([], T157, T158, .(T157, T158))
app43_in_gaga(.(T169, T170), T171, T172, .(T169, T174)) → U13_gaga(T169, T170, T171, T172, T174, app43_in_gaga(T170, T171, T172, T174))
U13_gaga(T169, T170, T171, T172, T174, app43_out_gaga(T170, T171, T172, T174)) → app43_out_gaga(.(T169, T170), T171, T172, .(T169, T174))
U32_aa(T207, T9, app43_out_gaga(T210, T207, T213, T9)) → qs1_out_aa(.(T207, []), T9)
U20_aa(T22, T23, T24, T9, qs1_out_aa(.(T23, T45), X14)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U19_aa(T22, T23, T24, T9, part24_out_gaaa(T22, T24, T45, T46)) → U21_aa(T22, T23, T24, T9, T46, qs1_in_aa(.(T23, T45), T95))
U21_aa(T22, T23, T24, T9, T46, qs1_out_aa(.(T23, T45), T95)) → U22_aa(T22, T23, T24, T9, p41_in_aaaga(T46, X15, T95, T22, T9))
p41_in_aaaga(T46, X15, T95, T22, T9) → U14_aaaga(T46, X15, T95, T22, T9, qs42_in_aa(T46, X15))
U14_aaaga(T46, X15, T95, T22, T9, qs42_out_aa(T46, X15)) → p41_out_aaaga(T46, X15, T95, T22, T9)
p41_in_aaaga(T46, T98, T95, T22, T9) → U15_aaaga(T46, T98, T95, T22, T9, qs42_in_aa(T46, T98))
U15_aaaga(T46, T98, T95, T22, T9, qs42_out_aa(T46, T98)) → U16_aaaga(T46, T98, T95, T22, T9, app43_in_agaa(T95, T22, T98, T9))
app43_in_agaa([], T157, T158, .(T157, T158)) → app43_out_agaa([], T157, T158, .(T157, T158))
app43_in_agaa(.(T169, T170), T171, T172, .(T169, T174)) → U13_agaa(T169, T170, T171, T172, T174, app43_in_agaa(T170, T171, T172, T174))
U13_agaa(T169, T170, T171, T172, T174, app43_out_agaa(T170, T171, T172, T174)) → app43_out_agaa(.(T169, T170), T171, T172, .(T169, T174))
U16_aaaga(T46, T98, T95, T22, T9, app43_out_agaa(T95, T22, T98, T9)) → p41_out_aaaga(T46, T98, T95, T22, T9)
U22_aa(T22, T23, T24, T9, p41_out_aaaga(T46, X15, T95, T22, T9)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U20_ga(T22, T23, T24, T9, qs1_out_aa(.(T23, T45), X14)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U19_ga(T22, T23, T24, T9, part24_out_ggaa(T22, T24, T45, T46)) → U21_ga(T22, T23, T24, T9, T46, qs1_in_aa(.(T23, T45), T95))
U21_ga(T22, T23, T24, T9, T46, qs1_out_aa(.(T23, T45), T95)) → U22_ga(T22, T23, T24, T9, p41_in_aaaga(T46, X15, T95, T22, T9))
U22_ga(T22, T23, T24, T9, p41_out_aaaga(T46, X15, T95, T22, T9)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
qs1_in_ga(.(T191, .(T192, T193)), T9) → U23_ga(T191, T192, T193, T9, part24_in_ggaa(T191, T193, X336, X337))
U23_ga(T191, T192, T193, T9, part24_out_ggaa(T191, T193, X336, X337)) → qs1_out_ga(.(T191, .(T192, T193)), T9)
qs1_in_ga(.(T191, .(T192, T193)), T9) → U24_ga(T191, T192, T193, T9, part24_in_ggaa(T191, T193, T197, T198))
U24_ga(T191, T192, T193, T9, part24_out_ggaa(T191, T193, T197, T198)) → U25_ga(T191, T192, T193, T9, qs42_in_aa(T197, X14))
U25_ga(T191, T192, T193, T9, qs42_out_aa(T197, X14)) → qs1_out_ga(.(T191, .(T192, T193)), T9)
U24_ga(T191, T192, T193, T9, part24_out_ggaa(T191, T193, T197, T198)) → U26_ga(T191, T192, T193, T9, T198, qs42_in_aa(T197, T202))
U26_ga(T191, T192, T193, T9, T198, qs42_out_aa(T197, T202)) → U27_ga(T191, T192, T193, T9, p41_in_aaaga(.(T192, T198), X15, T202, T191, T9))
U27_ga(T191, T192, T193, T9, p41_out_aaaga(.(T192, T198), X15, T202, T191, T9)) → qs1_out_ga(.(T191, .(T192, T193)), T9)
qs1_in_ga(.(T207, []), T9) → U28_ga(T207, T9, qs84_in_a(X14))
U28_ga(T207, T9, qs84_out_a(X14)) → qs1_out_ga(.(T207, []), T9)
qs1_in_ga(.(T207, []), T9) → U29_ga(T207, T9, qs84_in_a(T210))
U29_ga(T207, T9, qs84_out_a(T210)) → U30_ga(T207, T9, qs84_in_a(X15))
U30_ga(T207, T9, qs84_out_a(X15)) → qs1_out_ga(.(T207, []), T9)
U29_ga(T207, T9, qs84_out_a(T210)) → U31_ga(T207, T9, T210, qs84_in_a(T213))
U31_ga(T207, T9, T210, qs84_out_a(T213)) → U32_ga(T207, T9, app43_in_ggga(T210, T207, T213, T9))
app43_in_ggga([], T157, T158, .(T157, T158)) → app43_out_ggga([], T157, T158, .(T157, T158))
app43_in_ggga(.(T169, T170), T171, T172, .(T169, T174)) → U13_ggga(T169, T170, T171, T172, T174, app43_in_ggga(T170, T171, T172, T174))
U13_ggga(T169, T170, T171, T172, T174, app43_out_ggga(T170, T171, T172, T174)) → app43_out_ggga(.(T169, T170), T171, T172, .(T169, T174))
U32_ga(T207, T9, app43_out_ggga(T210, T207, T213, T9)) → qs1_out_ga(.(T207, []), T9)
Infinitary Constructor Rewriting Termination of PiTRS implies Termination of Prolog
qs1_in_ga([], []) → qs1_out_ga([], [])
qs1_in_ga(.(T22, .(T23, T24)), T9) → U17_ga(T22, T23, T24, T9, less14_in_gg(T22, T23))
less14_in_gg(0, s(T33)) → less14_out_gg(0, s(T33))
less14_in_gg(s(T38), s(T39)) → U1_gg(T38, T39, less14_in_gg(T38, T39))
U1_gg(T38, T39, less14_out_gg(T38, T39)) → less14_out_gg(s(T38), s(T39))
U17_ga(T22, T23, T24, T9, less14_out_gg(T22, T23)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U17_ga(T22, T23, T24, T9, less14_out_gg(T22, T23)) → U18_ga(T22, T23, T24, T9, part24_in_ggaa(T22, T24, X52, X53))
part24_in_ggaa(T62, .(T63, T64), .(T63, X126), X127) → U2_ggaa(T62, T63, T64, X126, X127, less14_in_gg(T62, T63))
U2_ggaa(T62, T63, T64, X126, X127, less14_out_gg(T62, T63)) → part24_out_ggaa(T62, .(T63, T64), .(T63, X126), X127)
U2_ggaa(T62, T63, T64, X126, X127, less14_out_gg(T62, T63)) → U3_ggaa(T62, T63, T64, X126, X127, part24_in_ggaa(T62, T64, X126, X127))
part24_in_ggaa(T84, .(T85, T86), X177, .(T85, X178)) → U4_ggaa(T84, T85, T86, X177, X178, part24_in_ggaa(T84, T86, X177, X178))
part24_in_ggaa(T92, [], [], []) → part24_out_ggaa(T92, [], [], [])
U4_ggaa(T84, T85, T86, X177, X178, part24_out_ggaa(T84, T86, X177, X178)) → part24_out_ggaa(T84, .(T85, T86), X177, .(T85, X178))
U3_ggaa(T62, T63, T64, X126, X127, part24_out_ggaa(T62, T64, X126, X127)) → part24_out_ggaa(T62, .(T63, T64), .(T63, X126), X127)
U18_ga(T22, T23, T24, T9, part24_out_ggaa(T22, T24, X52, X53)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U17_ga(T22, T23, T24, T9, less14_out_gg(T22, T23)) → U19_ga(T22, T23, T24, T9, part24_in_ggaa(T22, T24, T45, T46))
U19_ga(T22, T23, T24, T9, part24_out_ggaa(T22, T24, T45, T46)) → U20_ga(T22, T23, T24, T9, qs1_in_aa(.(T23, T45), X14))
qs1_in_aa([], []) → qs1_out_aa([], [])
qs1_in_aa(.(T22, .(T23, T24)), T9) → U17_aa(T22, T23, T24, T9, less14_in_aa(T22, T23))
less14_in_aa(0, s(T33)) → less14_out_aa(0, s(T33))
less14_in_aa(s(T38), s(T39)) → U1_aa(T38, T39, less14_in_aa(T38, T39))
U1_aa(T38, T39, less14_out_aa(T38, T39)) → less14_out_aa(s(T38), s(T39))
U17_aa(T22, T23, T24, T9, less14_out_aa(T22, T23)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U17_aa(T22, T23, T24, T9, less14_out_aa(T22, T23)) → U18_aa(T22, T23, T24, T9, part24_in_gaaa(T22, T24, X52, X53))
part24_in_gaaa(T62, .(T63, T64), .(T63, X126), X127) → U2_gaaa(T62, T63, T64, X126, X127, less14_in_ga(T62, T63))
less14_in_ga(0, s(T33)) → less14_out_ga(0, s(T33))
less14_in_ga(s(T38), s(T39)) → U1_ga(T38, T39, less14_in_ga(T38, T39))
U1_ga(T38, T39, less14_out_ga(T38, T39)) → less14_out_ga(s(T38), s(T39))
U2_gaaa(T62, T63, T64, X126, X127, less14_out_ga(T62, T63)) → part24_out_gaaa(T62, .(T63, T64), .(T63, X126), X127)
U2_gaaa(T62, T63, T64, X126, X127, less14_out_ga(T62, T63)) → U3_gaaa(T62, T63, T64, X126, X127, part24_in_gaaa(T62, T64, X126, X127))
part24_in_gaaa(T84, .(T85, T86), X177, .(T85, X178)) → U4_gaaa(T84, T85, T86, X177, X178, part24_in_gaaa(T84, T86, X177, X178))
part24_in_gaaa(T92, [], [], []) → part24_out_gaaa(T92, [], [], [])
U4_gaaa(T84, T85, T86, X177, X178, part24_out_gaaa(T84, T86, X177, X178)) → part24_out_gaaa(T84, .(T85, T86), X177, .(T85, X178))
U3_gaaa(T62, T63, T64, X126, X127, part24_out_gaaa(T62, T64, X126, X127)) → part24_out_gaaa(T62, .(T63, T64), .(T63, X126), X127)
U18_aa(T22, T23, T24, T9, part24_out_gaaa(T22, T24, X52, X53)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U17_aa(T22, T23, T24, T9, less14_out_aa(T22, T23)) → U19_aa(T22, T23, T24, T9, part24_in_gaaa(T22, T24, T45, T46))
U19_aa(T22, T23, T24, T9, part24_out_gaaa(T22, T24, T45, T46)) → U20_aa(T22, T23, T24, T9, qs1_in_aa(.(T23, T45), X14))
qs1_in_aa(.(T191, .(T192, T193)), T9) → U23_aa(T191, T192, T193, T9, part24_in_aaaa(T191, T193, X336, X337))
part24_in_aaaa(T62, .(T63, T64), .(T63, X126), X127) → U2_aaaa(T62, T63, T64, X126, X127, less14_in_aa(T62, T63))
U2_aaaa(T62, T63, T64, X126, X127, less14_out_aa(T62, T63)) → part24_out_aaaa(T62, .(T63, T64), .(T63, X126), X127)
U2_aaaa(T62, T63, T64, X126, X127, less14_out_aa(T62, T63)) → U3_aaaa(T62, T63, T64, X126, X127, part24_in_gaaa(T62, T64, X126, X127))
U3_aaaa(T62, T63, T64, X126, X127, part24_out_gaaa(T62, T64, X126, X127)) → part24_out_aaaa(T62, .(T63, T64), .(T63, X126), X127)
part24_in_aaaa(T84, .(T85, T86), X177, .(T85, X178)) → U4_aaaa(T84, T85, T86, X177, X178, part24_in_aaaa(T84, T86, X177, X178))
part24_in_aaaa(T92, [], [], []) → part24_out_aaaa(T92, [], [], [])
U4_aaaa(T84, T85, T86, X177, X178, part24_out_aaaa(T84, T86, X177, X178)) → part24_out_aaaa(T84, .(T85, T86), X177, .(T85, X178))
U23_aa(T191, T192, T193, T9, part24_out_aaaa(T191, T193, X336, X337)) → qs1_out_aa(.(T191, .(T192, T193)), T9)
qs1_in_aa(.(T191, .(T192, T193)), T9) → U24_aa(T191, T192, T193, T9, part24_in_aaaa(T191, T193, T197, T198))
U24_aa(T191, T192, T193, T9, part24_out_aaaa(T191, T193, T197, T198)) → U25_aa(T191, T192, T193, T9, qs42_in_aa(T197, X14))
qs42_in_aa([], []) → qs42_out_aa([], [])
qs42_in_aa(.(T103, T104), X230) → U5_aa(T103, T104, X230, part24_in_aaaa(T103, T104, X226, X227))
U5_aa(T103, T104, X230, part24_out_aaaa(T103, T104, X226, X227)) → qs42_out_aa(.(T103, T104), X230)
qs42_in_aa(.(T103, T104), X230) → U6_aa(T103, T104, X230, part24_in_aaaa(T103, T104, T108, T109))
U6_aa(T103, T104, X230, part24_out_aaaa(T103, T104, T108, T109)) → U7_aa(T103, T104, X230, qs42_in_aa(T108, X228))
U7_aa(T103, T104, X230, qs42_out_aa(T108, X228)) → qs42_out_aa(.(T103, T104), X230)
U6_aa(T103, T104, X230, part24_out_aaaa(T103, T104, T108, T109)) → U8_aa(T103, T104, X230, T109, qs42_in_aa(T108, T113))
U8_aa(T103, T104, X230, T109, qs42_out_aa(T108, T113)) → U9_aa(T103, T104, X230, qs42_in_aa(T109, X229))
U9_aa(T103, T104, X230, qs42_out_aa(T109, X229)) → qs42_out_aa(.(T103, T104), X230)
U8_aa(T103, T104, X230, T109, qs42_out_aa(T108, T113)) → U10_aa(T103, T104, X230, T113, qs42_in_aa(T109, T114))
U10_aa(T103, T104, X230, T113, qs42_out_aa(T109, T114)) → U11_aa(T103, T104, X230, app57_in_aaaa(T113, T103, T114, X230))
app57_in_aaaa([], T127, T128, .(T127, T128)) → app57_out_aaaa([], T127, T128, .(T127, T128))
app57_in_aaaa(.(T137, T138), T139, T140, .(T137, X270)) → U12_aaaa(T137, T138, T139, T140, X270, app57_in_aaaa(T138, T139, T140, X270))
U12_aaaa(T137, T138, T139, T140, X270, app57_out_aaaa(T138, T139, T140, X270)) → app57_out_aaaa(.(T137, T138), T139, T140, .(T137, X270))
U11_aa(T103, T104, X230, app57_out_aaaa(T113, T103, T114, X230)) → qs42_out_aa(.(T103, T104), X230)
U25_aa(T191, T192, T193, T9, qs42_out_aa(T197, X14)) → qs1_out_aa(.(T191, .(T192, T193)), T9)
U24_aa(T191, T192, T193, T9, part24_out_aaaa(T191, T193, T197, T198)) → U26_aa(T191, T192, T193, T9, T198, qs42_in_aa(T197, T202))
U26_aa(T191, T192, T193, T9, T198, qs42_out_aa(T197, T202)) → U27_aa(T191, T192, T193, T9, p41_in_aaaaa(.(T192, T198), X15, T202, T191, T9))
p41_in_aaaaa(T46, X15, T95, T22, T9) → U14_aaaaa(T46, X15, T95, T22, T9, qs42_in_aa(T46, X15))
U14_aaaaa(T46, X15, T95, T22, T9, qs42_out_aa(T46, X15)) → p41_out_aaaaa(T46, X15, T95, T22, T9)
p41_in_aaaaa(T46, T98, T95, T22, T9) → U15_aaaaa(T46, T98, T95, T22, T9, qs42_in_aa(T46, T98))
U15_aaaaa(T46, T98, T95, T22, T9, qs42_out_aa(T46, T98)) → U16_aaaaa(T46, T98, T95, T22, T9, app43_in_aaaa(T95, T22, T98, T9))
app43_in_aaaa([], T157, T158, .(T157, T158)) → app43_out_aaaa([], T157, T158, .(T157, T158))
app43_in_aaaa(.(T169, T170), T171, T172, .(T169, T174)) → U13_aaaa(T169, T170, T171, T172, T174, app43_in_aaaa(T170, T171, T172, T174))
U13_aaaa(T169, T170, T171, T172, T174, app43_out_aaaa(T170, T171, T172, T174)) → app43_out_aaaa(.(T169, T170), T171, T172, .(T169, T174))
U16_aaaaa(T46, T98, T95, T22, T9, app43_out_aaaa(T95, T22, T98, T9)) → p41_out_aaaaa(T46, T98, T95, T22, T9)
U27_aa(T191, T192, T193, T9, p41_out_aaaaa(.(T192, T198), X15, T202, T191, T9)) → qs1_out_aa(.(T191, .(T192, T193)), T9)
qs1_in_aa(.(T207, []), T9) → U28_aa(T207, T9, qs84_in_a(X14))
qs84_in_a([]) → qs84_out_a([])
U28_aa(T207, T9, qs84_out_a(X14)) → qs1_out_aa(.(T207, []), T9)
qs1_in_aa(.(T207, []), T9) → U29_aa(T207, T9, qs84_in_a(T210))
U29_aa(T207, T9, qs84_out_a(T210)) → U30_aa(T207, T9, qs84_in_a(X15))
U30_aa(T207, T9, qs84_out_a(X15)) → qs1_out_aa(.(T207, []), T9)
U29_aa(T207, T9, qs84_out_a(T210)) → U31_aa(T207, T9, T210, qs84_in_a(T213))
U31_aa(T207, T9, T210, qs84_out_a(T213)) → U32_aa(T207, T9, app43_in_gaga(T210, T207, T213, T9))
app43_in_gaga([], T157, T158, .(T157, T158)) → app43_out_gaga([], T157, T158, .(T157, T158))
app43_in_gaga(.(T169, T170), T171, T172, .(T169, T174)) → U13_gaga(T169, T170, T171, T172, T174, app43_in_gaga(T170, T171, T172, T174))
U13_gaga(T169, T170, T171, T172, T174, app43_out_gaga(T170, T171, T172, T174)) → app43_out_gaga(.(T169, T170), T171, T172, .(T169, T174))
U32_aa(T207, T9, app43_out_gaga(T210, T207, T213, T9)) → qs1_out_aa(.(T207, []), T9)
U20_aa(T22, T23, T24, T9, qs1_out_aa(.(T23, T45), X14)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U19_aa(T22, T23, T24, T9, part24_out_gaaa(T22, T24, T45, T46)) → U21_aa(T22, T23, T24, T9, T46, qs1_in_aa(.(T23, T45), T95))
U21_aa(T22, T23, T24, T9, T46, qs1_out_aa(.(T23, T45), T95)) → U22_aa(T22, T23, T24, T9, p41_in_aaaga(T46, X15, T95, T22, T9))
p41_in_aaaga(T46, X15, T95, T22, T9) → U14_aaaga(T46, X15, T95, T22, T9, qs42_in_aa(T46, X15))
U14_aaaga(T46, X15, T95, T22, T9, qs42_out_aa(T46, X15)) → p41_out_aaaga(T46, X15, T95, T22, T9)
p41_in_aaaga(T46, T98, T95, T22, T9) → U15_aaaga(T46, T98, T95, T22, T9, qs42_in_aa(T46, T98))
U15_aaaga(T46, T98, T95, T22, T9, qs42_out_aa(T46, T98)) → U16_aaaga(T46, T98, T95, T22, T9, app43_in_agaa(T95, T22, T98, T9))
app43_in_agaa([], T157, T158, .(T157, T158)) → app43_out_agaa([], T157, T158, .(T157, T158))
app43_in_agaa(.(T169, T170), T171, T172, .(T169, T174)) → U13_agaa(T169, T170, T171, T172, T174, app43_in_agaa(T170, T171, T172, T174))
U13_agaa(T169, T170, T171, T172, T174, app43_out_agaa(T170, T171, T172, T174)) → app43_out_agaa(.(T169, T170), T171, T172, .(T169, T174))
U16_aaaga(T46, T98, T95, T22, T9, app43_out_agaa(T95, T22, T98, T9)) → p41_out_aaaga(T46, T98, T95, T22, T9)
U22_aa(T22, T23, T24, T9, p41_out_aaaga(T46, X15, T95, T22, T9)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U20_ga(T22, T23, T24, T9, qs1_out_aa(.(T23, T45), X14)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U19_ga(T22, T23, T24, T9, part24_out_ggaa(T22, T24, T45, T46)) → U21_ga(T22, T23, T24, T9, T46, qs1_in_aa(.(T23, T45), T95))
U21_ga(T22, T23, T24, T9, T46, qs1_out_aa(.(T23, T45), T95)) → U22_ga(T22, T23, T24, T9, p41_in_aaaga(T46, X15, T95, T22, T9))
U22_ga(T22, T23, T24, T9, p41_out_aaaga(T46, X15, T95, T22, T9)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
qs1_in_ga(.(T191, .(T192, T193)), T9) → U23_ga(T191, T192, T193, T9, part24_in_ggaa(T191, T193, X336, X337))
U23_ga(T191, T192, T193, T9, part24_out_ggaa(T191, T193, X336, X337)) → qs1_out_ga(.(T191, .(T192, T193)), T9)
qs1_in_ga(.(T191, .(T192, T193)), T9) → U24_ga(T191, T192, T193, T9, part24_in_ggaa(T191, T193, T197, T198))
U24_ga(T191, T192, T193, T9, part24_out_ggaa(T191, T193, T197, T198)) → U25_ga(T191, T192, T193, T9, qs42_in_aa(T197, X14))
U25_ga(T191, T192, T193, T9, qs42_out_aa(T197, X14)) → qs1_out_ga(.(T191, .(T192, T193)), T9)
U24_ga(T191, T192, T193, T9, part24_out_ggaa(T191, T193, T197, T198)) → U26_ga(T191, T192, T193, T9, T198, qs42_in_aa(T197, T202))
U26_ga(T191, T192, T193, T9, T198, qs42_out_aa(T197, T202)) → U27_ga(T191, T192, T193, T9, p41_in_aaaga(.(T192, T198), X15, T202, T191, T9))
U27_ga(T191, T192, T193, T9, p41_out_aaaga(.(T192, T198), X15, T202, T191, T9)) → qs1_out_ga(.(T191, .(T192, T193)), T9)
qs1_in_ga(.(T207, []), T9) → U28_ga(T207, T9, qs84_in_a(X14))
U28_ga(T207, T9, qs84_out_a(X14)) → qs1_out_ga(.(T207, []), T9)
qs1_in_ga(.(T207, []), T9) → U29_ga(T207, T9, qs84_in_a(T210))
U29_ga(T207, T9, qs84_out_a(T210)) → U30_ga(T207, T9, qs84_in_a(X15))
U30_ga(T207, T9, qs84_out_a(X15)) → qs1_out_ga(.(T207, []), T9)
U29_ga(T207, T9, qs84_out_a(T210)) → U31_ga(T207, T9, T210, qs84_in_a(T213))
U31_ga(T207, T9, T210, qs84_out_a(T213)) → U32_ga(T207, T9, app43_in_ggga(T210, T207, T213, T9))
app43_in_ggga([], T157, T158, .(T157, T158)) → app43_out_ggga([], T157, T158, .(T157, T158))
app43_in_ggga(.(T169, T170), T171, T172, .(T169, T174)) → U13_ggga(T169, T170, T171, T172, T174, app43_in_ggga(T170, T171, T172, T174))
U13_ggga(T169, T170, T171, T172, T174, app43_out_ggga(T170, T171, T172, T174)) → app43_out_ggga(.(T169, T170), T171, T172, .(T169, T174))
U32_ga(T207, T9, app43_out_ggga(T210, T207, T213, T9)) → qs1_out_ga(.(T207, []), T9)
QS1_IN_GA(.(T22, .(T23, T24)), T9) → U17_GA(T22, T23, T24, T9, less14_in_gg(T22, T23))
QS1_IN_GA(.(T22, .(T23, T24)), T9) → LESS14_IN_GG(T22, T23)
LESS14_IN_GG(s(T38), s(T39)) → U1_GG(T38, T39, less14_in_gg(T38, T39))
LESS14_IN_GG(s(T38), s(T39)) → LESS14_IN_GG(T38, T39)
U17_GA(T22, T23, T24, T9, less14_out_gg(T22, T23)) → U18_GA(T22, T23, T24, T9, part24_in_ggaa(T22, T24, X52, X53))
U17_GA(T22, T23, T24, T9, less14_out_gg(T22, T23)) → PART24_IN_GGAA(T22, T24, X52, X53)
PART24_IN_GGAA(T62, .(T63, T64), .(T63, X126), X127) → U2_GGAA(T62, T63, T64, X126, X127, less14_in_gg(T62, T63))
PART24_IN_GGAA(T62, .(T63, T64), .(T63, X126), X127) → LESS14_IN_GG(T62, T63)
U2_GGAA(T62, T63, T64, X126, X127, less14_out_gg(T62, T63)) → U3_GGAA(T62, T63, T64, X126, X127, part24_in_ggaa(T62, T64, X126, X127))
U2_GGAA(T62, T63, T64, X126, X127, less14_out_gg(T62, T63)) → PART24_IN_GGAA(T62, T64, X126, X127)
PART24_IN_GGAA(T84, .(T85, T86), X177, .(T85, X178)) → U4_GGAA(T84, T85, T86, X177, X178, part24_in_ggaa(T84, T86, X177, X178))
PART24_IN_GGAA(T84, .(T85, T86), X177, .(T85, X178)) → PART24_IN_GGAA(T84, T86, X177, X178)
U17_GA(T22, T23, T24, T9, less14_out_gg(T22, T23)) → U19_GA(T22, T23, T24, T9, part24_in_ggaa(T22, T24, T45, T46))
U19_GA(T22, T23, T24, T9, part24_out_ggaa(T22, T24, T45, T46)) → U20_GA(T22, T23, T24, T9, qs1_in_aa(.(T23, T45), X14))
U19_GA(T22, T23, T24, T9, part24_out_ggaa(T22, T24, T45, T46)) → QS1_IN_AA(.(T23, T45), X14)
QS1_IN_AA(.(T22, .(T23, T24)), T9) → U17_AA(T22, T23, T24, T9, less14_in_aa(T22, T23))
QS1_IN_AA(.(T22, .(T23, T24)), T9) → LESS14_IN_AA(T22, T23)
LESS14_IN_AA(s(T38), s(T39)) → U1_AA(T38, T39, less14_in_aa(T38, T39))
LESS14_IN_AA(s(T38), s(T39)) → LESS14_IN_AA(T38, T39)
U17_AA(T22, T23, T24, T9, less14_out_aa(T22, T23)) → U18_AA(T22, T23, T24, T9, part24_in_gaaa(T22, T24, X52, X53))
U17_AA(T22, T23, T24, T9, less14_out_aa(T22, T23)) → PART24_IN_GAAA(T22, T24, X52, X53)
PART24_IN_GAAA(T62, .(T63, T64), .(T63, X126), X127) → U2_GAAA(T62, T63, T64, X126, X127, less14_in_ga(T62, T63))
PART24_IN_GAAA(T62, .(T63, T64), .(T63, X126), X127) → LESS14_IN_GA(T62, T63)
LESS14_IN_GA(s(T38), s(T39)) → U1_GA(T38, T39, less14_in_ga(T38, T39))
LESS14_IN_GA(s(T38), s(T39)) → LESS14_IN_GA(T38, T39)
U2_GAAA(T62, T63, T64, X126, X127, less14_out_ga(T62, T63)) → U3_GAAA(T62, T63, T64, X126, X127, part24_in_gaaa(T62, T64, X126, X127))
U2_GAAA(T62, T63, T64, X126, X127, less14_out_ga(T62, T63)) → PART24_IN_GAAA(T62, T64, X126, X127)
PART24_IN_GAAA(T84, .(T85, T86), X177, .(T85, X178)) → U4_GAAA(T84, T85, T86, X177, X178, part24_in_gaaa(T84, T86, X177, X178))
PART24_IN_GAAA(T84, .(T85, T86), X177, .(T85, X178)) → PART24_IN_GAAA(T84, T86, X177, X178)
U17_AA(T22, T23, T24, T9, less14_out_aa(T22, T23)) → U19_AA(T22, T23, T24, T9, part24_in_gaaa(T22, T24, T45, T46))
U19_AA(T22, T23, T24, T9, part24_out_gaaa(T22, T24, T45, T46)) → U20_AA(T22, T23, T24, T9, qs1_in_aa(.(T23, T45), X14))
U19_AA(T22, T23, T24, T9, part24_out_gaaa(T22, T24, T45, T46)) → QS1_IN_AA(.(T23, T45), X14)
QS1_IN_AA(.(T191, .(T192, T193)), T9) → U23_AA(T191, T192, T193, T9, part24_in_aaaa(T191, T193, X336, X337))
QS1_IN_AA(.(T191, .(T192, T193)), T9) → PART24_IN_AAAA(T191, T193, X336, X337)
PART24_IN_AAAA(T62, .(T63, T64), .(T63, X126), X127) → U2_AAAA(T62, T63, T64, X126, X127, less14_in_aa(T62, T63))
PART24_IN_AAAA(T62, .(T63, T64), .(T63, X126), X127) → LESS14_IN_AA(T62, T63)
U2_AAAA(T62, T63, T64, X126, X127, less14_out_aa(T62, T63)) → U3_AAAA(T62, T63, T64, X126, X127, part24_in_gaaa(T62, T64, X126, X127))
U2_AAAA(T62, T63, T64, X126, X127, less14_out_aa(T62, T63)) → PART24_IN_GAAA(T62, T64, X126, X127)
PART24_IN_AAAA(T84, .(T85, T86), X177, .(T85, X178)) → U4_AAAA(T84, T85, T86, X177, X178, part24_in_aaaa(T84, T86, X177, X178))
PART24_IN_AAAA(T84, .(T85, T86), X177, .(T85, X178)) → PART24_IN_AAAA(T84, T86, X177, X178)
QS1_IN_AA(.(T191, .(T192, T193)), T9) → U24_AA(T191, T192, T193, T9, part24_in_aaaa(T191, T193, T197, T198))
U24_AA(T191, T192, T193, T9, part24_out_aaaa(T191, T193, T197, T198)) → U25_AA(T191, T192, T193, T9, qs42_in_aa(T197, X14))
U24_AA(T191, T192, T193, T9, part24_out_aaaa(T191, T193, T197, T198)) → QS42_IN_AA(T197, X14)
QS42_IN_AA(.(T103, T104), X230) → U5_AA(T103, T104, X230, part24_in_aaaa(T103, T104, X226, X227))
QS42_IN_AA(.(T103, T104), X230) → PART24_IN_AAAA(T103, T104, X226, X227)
QS42_IN_AA(.(T103, T104), X230) → U6_AA(T103, T104, X230, part24_in_aaaa(T103, T104, T108, T109))
U6_AA(T103, T104, X230, part24_out_aaaa(T103, T104, T108, T109)) → U7_AA(T103, T104, X230, qs42_in_aa(T108, X228))
U6_AA(T103, T104, X230, part24_out_aaaa(T103, T104, T108, T109)) → QS42_IN_AA(T108, X228)
U6_AA(T103, T104, X230, part24_out_aaaa(T103, T104, T108, T109)) → U8_AA(T103, T104, X230, T109, qs42_in_aa(T108, T113))
U8_AA(T103, T104, X230, T109, qs42_out_aa(T108, T113)) → U9_AA(T103, T104, X230, qs42_in_aa(T109, X229))
U8_AA(T103, T104, X230, T109, qs42_out_aa(T108, T113)) → QS42_IN_AA(T109, X229)
U8_AA(T103, T104, X230, T109, qs42_out_aa(T108, T113)) → U10_AA(T103, T104, X230, T113, qs42_in_aa(T109, T114))
U10_AA(T103, T104, X230, T113, qs42_out_aa(T109, T114)) → U11_AA(T103, T104, X230, app57_in_aaaa(T113, T103, T114, X230))
U10_AA(T103, T104, X230, T113, qs42_out_aa(T109, T114)) → APP57_IN_AAAA(T113, T103, T114, X230)
APP57_IN_AAAA(.(T137, T138), T139, T140, .(T137, X270)) → U12_AAAA(T137, T138, T139, T140, X270, app57_in_aaaa(T138, T139, T140, X270))
APP57_IN_AAAA(.(T137, T138), T139, T140, .(T137, X270)) → APP57_IN_AAAA(T138, T139, T140, X270)
U24_AA(T191, T192, T193, T9, part24_out_aaaa(T191, T193, T197, T198)) → U26_AA(T191, T192, T193, T9, T198, qs42_in_aa(T197, T202))
U26_AA(T191, T192, T193, T9, T198, qs42_out_aa(T197, T202)) → U27_AA(T191, T192, T193, T9, p41_in_aaaaa(.(T192, T198), X15, T202, T191, T9))
U26_AA(T191, T192, T193, T9, T198, qs42_out_aa(T197, T202)) → P41_IN_AAAAA(.(T192, T198), X15, T202, T191, T9)
P41_IN_AAAAA(T46, X15, T95, T22, T9) → U14_AAAAA(T46, X15, T95, T22, T9, qs42_in_aa(T46, X15))
P41_IN_AAAAA(T46, X15, T95, T22, T9) → QS42_IN_AA(T46, X15)
P41_IN_AAAAA(T46, T98, T95, T22, T9) → U15_AAAAA(T46, T98, T95, T22, T9, qs42_in_aa(T46, T98))
U15_AAAAA(T46, T98, T95, T22, T9, qs42_out_aa(T46, T98)) → U16_AAAAA(T46, T98, T95, T22, T9, app43_in_aaaa(T95, T22, T98, T9))
U15_AAAAA(T46, T98, T95, T22, T9, qs42_out_aa(T46, T98)) → APP43_IN_AAAA(T95, T22, T98, T9)
APP43_IN_AAAA(.(T169, T170), T171, T172, .(T169, T174)) → U13_AAAA(T169, T170, T171, T172, T174, app43_in_aaaa(T170, T171, T172, T174))
APP43_IN_AAAA(.(T169, T170), T171, T172, .(T169, T174)) → APP43_IN_AAAA(T170, T171, T172, T174)
QS1_IN_AA(.(T207, []), T9) → U28_AA(T207, T9, qs84_in_a(X14))
QS1_IN_AA(.(T207, []), T9) → QS84_IN_A(X14)
QS1_IN_AA(.(T207, []), T9) → U29_AA(T207, T9, qs84_in_a(T210))
U29_AA(T207, T9, qs84_out_a(T210)) → U30_AA(T207, T9, qs84_in_a(X15))
U29_AA(T207, T9, qs84_out_a(T210)) → QS84_IN_A(X15)
U29_AA(T207, T9, qs84_out_a(T210)) → U31_AA(T207, T9, T210, qs84_in_a(T213))
U31_AA(T207, T9, T210, qs84_out_a(T213)) → U32_AA(T207, T9, app43_in_gaga(T210, T207, T213, T9))
U31_AA(T207, T9, T210, qs84_out_a(T213)) → APP43_IN_GAGA(T210, T207, T213, T9)
APP43_IN_GAGA(.(T169, T170), T171, T172, .(T169, T174)) → U13_GAGA(T169, T170, T171, T172, T174, app43_in_gaga(T170, T171, T172, T174))
APP43_IN_GAGA(.(T169, T170), T171, T172, .(T169, T174)) → APP43_IN_GAGA(T170, T171, T172, T174)
U19_AA(T22, T23, T24, T9, part24_out_gaaa(T22, T24, T45, T46)) → U21_AA(T22, T23, T24, T9, T46, qs1_in_aa(.(T23, T45), T95))
U21_AA(T22, T23, T24, T9, T46, qs1_out_aa(.(T23, T45), T95)) → U22_AA(T22, T23, T24, T9, p41_in_aaaga(T46, X15, T95, T22, T9))
U21_AA(T22, T23, T24, T9, T46, qs1_out_aa(.(T23, T45), T95)) → P41_IN_AAAGA(T46, X15, T95, T22, T9)
P41_IN_AAAGA(T46, X15, T95, T22, T9) → U14_AAAGA(T46, X15, T95, T22, T9, qs42_in_aa(T46, X15))
P41_IN_AAAGA(T46, X15, T95, T22, T9) → QS42_IN_AA(T46, X15)
P41_IN_AAAGA(T46, T98, T95, T22, T9) → U15_AAAGA(T46, T98, T95, T22, T9, qs42_in_aa(T46, T98))
U15_AAAGA(T46, T98, T95, T22, T9, qs42_out_aa(T46, T98)) → U16_AAAGA(T46, T98, T95, T22, T9, app43_in_agaa(T95, T22, T98, T9))
U15_AAAGA(T46, T98, T95, T22, T9, qs42_out_aa(T46, T98)) → APP43_IN_AGAA(T95, T22, T98, T9)
APP43_IN_AGAA(.(T169, T170), T171, T172, .(T169, T174)) → U13_AGAA(T169, T170, T171, T172, T174, app43_in_agaa(T170, T171, T172, T174))
APP43_IN_AGAA(.(T169, T170), T171, T172, .(T169, T174)) → APP43_IN_AGAA(T170, T171, T172, T174)
U19_GA(T22, T23, T24, T9, part24_out_ggaa(T22, T24, T45, T46)) → U21_GA(T22, T23, T24, T9, T46, qs1_in_aa(.(T23, T45), T95))
U21_GA(T22, T23, T24, T9, T46, qs1_out_aa(.(T23, T45), T95)) → U22_GA(T22, T23, T24, T9, p41_in_aaaga(T46, X15, T95, T22, T9))
U21_GA(T22, T23, T24, T9, T46, qs1_out_aa(.(T23, T45), T95)) → P41_IN_AAAGA(T46, X15, T95, T22, T9)
QS1_IN_GA(.(T191, .(T192, T193)), T9) → U23_GA(T191, T192, T193, T9, part24_in_ggaa(T191, T193, X336, X337))
QS1_IN_GA(.(T191, .(T192, T193)), T9) → PART24_IN_GGAA(T191, T193, X336, X337)
QS1_IN_GA(.(T191, .(T192, T193)), T9) → U24_GA(T191, T192, T193, T9, part24_in_ggaa(T191, T193, T197, T198))
U24_GA(T191, T192, T193, T9, part24_out_ggaa(T191, T193, T197, T198)) → U25_GA(T191, T192, T193, T9, qs42_in_aa(T197, X14))
U24_GA(T191, T192, T193, T9, part24_out_ggaa(T191, T193, T197, T198)) → QS42_IN_AA(T197, X14)
U24_GA(T191, T192, T193, T9, part24_out_ggaa(T191, T193, T197, T198)) → U26_GA(T191, T192, T193, T9, T198, qs42_in_aa(T197, T202))
U26_GA(T191, T192, T193, T9, T198, qs42_out_aa(T197, T202)) → U27_GA(T191, T192, T193, T9, p41_in_aaaga(.(T192, T198), X15, T202, T191, T9))
U26_GA(T191, T192, T193, T9, T198, qs42_out_aa(T197, T202)) → P41_IN_AAAGA(.(T192, T198), X15, T202, T191, T9)
QS1_IN_GA(.(T207, []), T9) → U28_GA(T207, T9, qs84_in_a(X14))
QS1_IN_GA(.(T207, []), T9) → QS84_IN_A(X14)
QS1_IN_GA(.(T207, []), T9) → U29_GA(T207, T9, qs84_in_a(T210))
U29_GA(T207, T9, qs84_out_a(T210)) → U30_GA(T207, T9, qs84_in_a(X15))
U29_GA(T207, T9, qs84_out_a(T210)) → QS84_IN_A(X15)
U29_GA(T207, T9, qs84_out_a(T210)) → U31_GA(T207, T9, T210, qs84_in_a(T213))
U31_GA(T207, T9, T210, qs84_out_a(T213)) → U32_GA(T207, T9, app43_in_ggga(T210, T207, T213, T9))
U31_GA(T207, T9, T210, qs84_out_a(T213)) → APP43_IN_GGGA(T210, T207, T213, T9)
APP43_IN_GGGA(.(T169, T170), T171, T172, .(T169, T174)) → U13_GGGA(T169, T170, T171, T172, T174, app43_in_ggga(T170, T171, T172, T174))
APP43_IN_GGGA(.(T169, T170), T171, T172, .(T169, T174)) → APP43_IN_GGGA(T170, T171, T172, T174)
qs1_in_ga([], []) → qs1_out_ga([], [])
qs1_in_ga(.(T22, .(T23, T24)), T9) → U17_ga(T22, T23, T24, T9, less14_in_gg(T22, T23))
less14_in_gg(0, s(T33)) → less14_out_gg(0, s(T33))
less14_in_gg(s(T38), s(T39)) → U1_gg(T38, T39, less14_in_gg(T38, T39))
U1_gg(T38, T39, less14_out_gg(T38, T39)) → less14_out_gg(s(T38), s(T39))
U17_ga(T22, T23, T24, T9, less14_out_gg(T22, T23)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U17_ga(T22, T23, T24, T9, less14_out_gg(T22, T23)) → U18_ga(T22, T23, T24, T9, part24_in_ggaa(T22, T24, X52, X53))
part24_in_ggaa(T62, .(T63, T64), .(T63, X126), X127) → U2_ggaa(T62, T63, T64, X126, X127, less14_in_gg(T62, T63))
U2_ggaa(T62, T63, T64, X126, X127, less14_out_gg(T62, T63)) → part24_out_ggaa(T62, .(T63, T64), .(T63, X126), X127)
U2_ggaa(T62, T63, T64, X126, X127, less14_out_gg(T62, T63)) → U3_ggaa(T62, T63, T64, X126, X127, part24_in_ggaa(T62, T64, X126, X127))
part24_in_ggaa(T84, .(T85, T86), X177, .(T85, X178)) → U4_ggaa(T84, T85, T86, X177, X178, part24_in_ggaa(T84, T86, X177, X178))
part24_in_ggaa(T92, [], [], []) → part24_out_ggaa(T92, [], [], [])
U4_ggaa(T84, T85, T86, X177, X178, part24_out_ggaa(T84, T86, X177, X178)) → part24_out_ggaa(T84, .(T85, T86), X177, .(T85, X178))
U3_ggaa(T62, T63, T64, X126, X127, part24_out_ggaa(T62, T64, X126, X127)) → part24_out_ggaa(T62, .(T63, T64), .(T63, X126), X127)
U18_ga(T22, T23, T24, T9, part24_out_ggaa(T22, T24, X52, X53)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U17_ga(T22, T23, T24, T9, less14_out_gg(T22, T23)) → U19_ga(T22, T23, T24, T9, part24_in_ggaa(T22, T24, T45, T46))
U19_ga(T22, T23, T24, T9, part24_out_ggaa(T22, T24, T45, T46)) → U20_ga(T22, T23, T24, T9, qs1_in_aa(.(T23, T45), X14))
qs1_in_aa([], []) → qs1_out_aa([], [])
qs1_in_aa(.(T22, .(T23, T24)), T9) → U17_aa(T22, T23, T24, T9, less14_in_aa(T22, T23))
less14_in_aa(0, s(T33)) → less14_out_aa(0, s(T33))
less14_in_aa(s(T38), s(T39)) → U1_aa(T38, T39, less14_in_aa(T38, T39))
U1_aa(T38, T39, less14_out_aa(T38, T39)) → less14_out_aa(s(T38), s(T39))
U17_aa(T22, T23, T24, T9, less14_out_aa(T22, T23)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U17_aa(T22, T23, T24, T9, less14_out_aa(T22, T23)) → U18_aa(T22, T23, T24, T9, part24_in_gaaa(T22, T24, X52, X53))
part24_in_gaaa(T62, .(T63, T64), .(T63, X126), X127) → U2_gaaa(T62, T63, T64, X126, X127, less14_in_ga(T62, T63))
less14_in_ga(0, s(T33)) → less14_out_ga(0, s(T33))
less14_in_ga(s(T38), s(T39)) → U1_ga(T38, T39, less14_in_ga(T38, T39))
U1_ga(T38, T39, less14_out_ga(T38, T39)) → less14_out_ga(s(T38), s(T39))
U2_gaaa(T62, T63, T64, X126, X127, less14_out_ga(T62, T63)) → part24_out_gaaa(T62, .(T63, T64), .(T63, X126), X127)
U2_gaaa(T62, T63, T64, X126, X127, less14_out_ga(T62, T63)) → U3_gaaa(T62, T63, T64, X126, X127, part24_in_gaaa(T62, T64, X126, X127))
part24_in_gaaa(T84, .(T85, T86), X177, .(T85, X178)) → U4_gaaa(T84, T85, T86, X177, X178, part24_in_gaaa(T84, T86, X177, X178))
part24_in_gaaa(T92, [], [], []) → part24_out_gaaa(T92, [], [], [])
U4_gaaa(T84, T85, T86, X177, X178, part24_out_gaaa(T84, T86, X177, X178)) → part24_out_gaaa(T84, .(T85, T86), X177, .(T85, X178))
U3_gaaa(T62, T63, T64, X126, X127, part24_out_gaaa(T62, T64, X126, X127)) → part24_out_gaaa(T62, .(T63, T64), .(T63, X126), X127)
U18_aa(T22, T23, T24, T9, part24_out_gaaa(T22, T24, X52, X53)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U17_aa(T22, T23, T24, T9, less14_out_aa(T22, T23)) → U19_aa(T22, T23, T24, T9, part24_in_gaaa(T22, T24, T45, T46))
U19_aa(T22, T23, T24, T9, part24_out_gaaa(T22, T24, T45, T46)) → U20_aa(T22, T23, T24, T9, qs1_in_aa(.(T23, T45), X14))
qs1_in_aa(.(T191, .(T192, T193)), T9) → U23_aa(T191, T192, T193, T9, part24_in_aaaa(T191, T193, X336, X337))
part24_in_aaaa(T62, .(T63, T64), .(T63, X126), X127) → U2_aaaa(T62, T63, T64, X126, X127, less14_in_aa(T62, T63))
U2_aaaa(T62, T63, T64, X126, X127, less14_out_aa(T62, T63)) → part24_out_aaaa(T62, .(T63, T64), .(T63, X126), X127)
U2_aaaa(T62, T63, T64, X126, X127, less14_out_aa(T62, T63)) → U3_aaaa(T62, T63, T64, X126, X127, part24_in_gaaa(T62, T64, X126, X127))
U3_aaaa(T62, T63, T64, X126, X127, part24_out_gaaa(T62, T64, X126, X127)) → part24_out_aaaa(T62, .(T63, T64), .(T63, X126), X127)
part24_in_aaaa(T84, .(T85, T86), X177, .(T85, X178)) → U4_aaaa(T84, T85, T86, X177, X178, part24_in_aaaa(T84, T86, X177, X178))
part24_in_aaaa(T92, [], [], []) → part24_out_aaaa(T92, [], [], [])
U4_aaaa(T84, T85, T86, X177, X178, part24_out_aaaa(T84, T86, X177, X178)) → part24_out_aaaa(T84, .(T85, T86), X177, .(T85, X178))
U23_aa(T191, T192, T193, T9, part24_out_aaaa(T191, T193, X336, X337)) → qs1_out_aa(.(T191, .(T192, T193)), T9)
qs1_in_aa(.(T191, .(T192, T193)), T9) → U24_aa(T191, T192, T193, T9, part24_in_aaaa(T191, T193, T197, T198))
U24_aa(T191, T192, T193, T9, part24_out_aaaa(T191, T193, T197, T198)) → U25_aa(T191, T192, T193, T9, qs42_in_aa(T197, X14))
qs42_in_aa([], []) → qs42_out_aa([], [])
qs42_in_aa(.(T103, T104), X230) → U5_aa(T103, T104, X230, part24_in_aaaa(T103, T104, X226, X227))
U5_aa(T103, T104, X230, part24_out_aaaa(T103, T104, X226, X227)) → qs42_out_aa(.(T103, T104), X230)
qs42_in_aa(.(T103, T104), X230) → U6_aa(T103, T104, X230, part24_in_aaaa(T103, T104, T108, T109))
U6_aa(T103, T104, X230, part24_out_aaaa(T103, T104, T108, T109)) → U7_aa(T103, T104, X230, qs42_in_aa(T108, X228))
U7_aa(T103, T104, X230, qs42_out_aa(T108, X228)) → qs42_out_aa(.(T103, T104), X230)
U6_aa(T103, T104, X230, part24_out_aaaa(T103, T104, T108, T109)) → U8_aa(T103, T104, X230, T109, qs42_in_aa(T108, T113))
U8_aa(T103, T104, X230, T109, qs42_out_aa(T108, T113)) → U9_aa(T103, T104, X230, qs42_in_aa(T109, X229))
U9_aa(T103, T104, X230, qs42_out_aa(T109, X229)) → qs42_out_aa(.(T103, T104), X230)
U8_aa(T103, T104, X230, T109, qs42_out_aa(T108, T113)) → U10_aa(T103, T104, X230, T113, qs42_in_aa(T109, T114))
U10_aa(T103, T104, X230, T113, qs42_out_aa(T109, T114)) → U11_aa(T103, T104, X230, app57_in_aaaa(T113, T103, T114, X230))
app57_in_aaaa([], T127, T128, .(T127, T128)) → app57_out_aaaa([], T127, T128, .(T127, T128))
app57_in_aaaa(.(T137, T138), T139, T140, .(T137, X270)) → U12_aaaa(T137, T138, T139, T140, X270, app57_in_aaaa(T138, T139, T140, X270))
U12_aaaa(T137, T138, T139, T140, X270, app57_out_aaaa(T138, T139, T140, X270)) → app57_out_aaaa(.(T137, T138), T139, T140, .(T137, X270))
U11_aa(T103, T104, X230, app57_out_aaaa(T113, T103, T114, X230)) → qs42_out_aa(.(T103, T104), X230)
U25_aa(T191, T192, T193, T9, qs42_out_aa(T197, X14)) → qs1_out_aa(.(T191, .(T192, T193)), T9)
U24_aa(T191, T192, T193, T9, part24_out_aaaa(T191, T193, T197, T198)) → U26_aa(T191, T192, T193, T9, T198, qs42_in_aa(T197, T202))
U26_aa(T191, T192, T193, T9, T198, qs42_out_aa(T197, T202)) → U27_aa(T191, T192, T193, T9, p41_in_aaaaa(.(T192, T198), X15, T202, T191, T9))
p41_in_aaaaa(T46, X15, T95, T22, T9) → U14_aaaaa(T46, X15, T95, T22, T9, qs42_in_aa(T46, X15))
U14_aaaaa(T46, X15, T95, T22, T9, qs42_out_aa(T46, X15)) → p41_out_aaaaa(T46, X15, T95, T22, T9)
p41_in_aaaaa(T46, T98, T95, T22, T9) → U15_aaaaa(T46, T98, T95, T22, T9, qs42_in_aa(T46, T98))
U15_aaaaa(T46, T98, T95, T22, T9, qs42_out_aa(T46, T98)) → U16_aaaaa(T46, T98, T95, T22, T9, app43_in_aaaa(T95, T22, T98, T9))
app43_in_aaaa([], T157, T158, .(T157, T158)) → app43_out_aaaa([], T157, T158, .(T157, T158))
app43_in_aaaa(.(T169, T170), T171, T172, .(T169, T174)) → U13_aaaa(T169, T170, T171, T172, T174, app43_in_aaaa(T170, T171, T172, T174))
U13_aaaa(T169, T170, T171, T172, T174, app43_out_aaaa(T170, T171, T172, T174)) → app43_out_aaaa(.(T169, T170), T171, T172, .(T169, T174))
U16_aaaaa(T46, T98, T95, T22, T9, app43_out_aaaa(T95, T22, T98, T9)) → p41_out_aaaaa(T46, T98, T95, T22, T9)
U27_aa(T191, T192, T193, T9, p41_out_aaaaa(.(T192, T198), X15, T202, T191, T9)) → qs1_out_aa(.(T191, .(T192, T193)), T9)
qs1_in_aa(.(T207, []), T9) → U28_aa(T207, T9, qs84_in_a(X14))
qs84_in_a([]) → qs84_out_a([])
U28_aa(T207, T9, qs84_out_a(X14)) → qs1_out_aa(.(T207, []), T9)
qs1_in_aa(.(T207, []), T9) → U29_aa(T207, T9, qs84_in_a(T210))
U29_aa(T207, T9, qs84_out_a(T210)) → U30_aa(T207, T9, qs84_in_a(X15))
U30_aa(T207, T9, qs84_out_a(X15)) → qs1_out_aa(.(T207, []), T9)
U29_aa(T207, T9, qs84_out_a(T210)) → U31_aa(T207, T9, T210, qs84_in_a(T213))
U31_aa(T207, T9, T210, qs84_out_a(T213)) → U32_aa(T207, T9, app43_in_gaga(T210, T207, T213, T9))
app43_in_gaga([], T157, T158, .(T157, T158)) → app43_out_gaga([], T157, T158, .(T157, T158))
app43_in_gaga(.(T169, T170), T171, T172, .(T169, T174)) → U13_gaga(T169, T170, T171, T172, T174, app43_in_gaga(T170, T171, T172, T174))
U13_gaga(T169, T170, T171, T172, T174, app43_out_gaga(T170, T171, T172, T174)) → app43_out_gaga(.(T169, T170), T171, T172, .(T169, T174))
U32_aa(T207, T9, app43_out_gaga(T210, T207, T213, T9)) → qs1_out_aa(.(T207, []), T9)
U20_aa(T22, T23, T24, T9, qs1_out_aa(.(T23, T45), X14)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U19_aa(T22, T23, T24, T9, part24_out_gaaa(T22, T24, T45, T46)) → U21_aa(T22, T23, T24, T9, T46, qs1_in_aa(.(T23, T45), T95))
U21_aa(T22, T23, T24, T9, T46, qs1_out_aa(.(T23, T45), T95)) → U22_aa(T22, T23, T24, T9, p41_in_aaaga(T46, X15, T95, T22, T9))
p41_in_aaaga(T46, X15, T95, T22, T9) → U14_aaaga(T46, X15, T95, T22, T9, qs42_in_aa(T46, X15))
U14_aaaga(T46, X15, T95, T22, T9, qs42_out_aa(T46, X15)) → p41_out_aaaga(T46, X15, T95, T22, T9)
p41_in_aaaga(T46, T98, T95, T22, T9) → U15_aaaga(T46, T98, T95, T22, T9, qs42_in_aa(T46, T98))
U15_aaaga(T46, T98, T95, T22, T9, qs42_out_aa(T46, T98)) → U16_aaaga(T46, T98, T95, T22, T9, app43_in_agaa(T95, T22, T98, T9))
app43_in_agaa([], T157, T158, .(T157, T158)) → app43_out_agaa([], T157, T158, .(T157, T158))
app43_in_agaa(.(T169, T170), T171, T172, .(T169, T174)) → U13_agaa(T169, T170, T171, T172, T174, app43_in_agaa(T170, T171, T172, T174))
U13_agaa(T169, T170, T171, T172, T174, app43_out_agaa(T170, T171, T172, T174)) → app43_out_agaa(.(T169, T170), T171, T172, .(T169, T174))
U16_aaaga(T46, T98, T95, T22, T9, app43_out_agaa(T95, T22, T98, T9)) → p41_out_aaaga(T46, T98, T95, T22, T9)
U22_aa(T22, T23, T24, T9, p41_out_aaaga(T46, X15, T95, T22, T9)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U20_ga(T22, T23, T24, T9, qs1_out_aa(.(T23, T45), X14)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U19_ga(T22, T23, T24, T9, part24_out_ggaa(T22, T24, T45, T46)) → U21_ga(T22, T23, T24, T9, T46, qs1_in_aa(.(T23, T45), T95))
U21_ga(T22, T23, T24, T9, T46, qs1_out_aa(.(T23, T45), T95)) → U22_ga(T22, T23, T24, T9, p41_in_aaaga(T46, X15, T95, T22, T9))
U22_ga(T22, T23, T24, T9, p41_out_aaaga(T46, X15, T95, T22, T9)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
qs1_in_ga(.(T191, .(T192, T193)), T9) → U23_ga(T191, T192, T193, T9, part24_in_ggaa(T191, T193, X336, X337))
U23_ga(T191, T192, T193, T9, part24_out_ggaa(T191, T193, X336, X337)) → qs1_out_ga(.(T191, .(T192, T193)), T9)
qs1_in_ga(.(T191, .(T192, T193)), T9) → U24_ga(T191, T192, T193, T9, part24_in_ggaa(T191, T193, T197, T198))
U24_ga(T191, T192, T193, T9, part24_out_ggaa(T191, T193, T197, T198)) → U25_ga(T191, T192, T193, T9, qs42_in_aa(T197, X14))
U25_ga(T191, T192, T193, T9, qs42_out_aa(T197, X14)) → qs1_out_ga(.(T191, .(T192, T193)), T9)
U24_ga(T191, T192, T193, T9, part24_out_ggaa(T191, T193, T197, T198)) → U26_ga(T191, T192, T193, T9, T198, qs42_in_aa(T197, T202))
U26_ga(T191, T192, T193, T9, T198, qs42_out_aa(T197, T202)) → U27_ga(T191, T192, T193, T9, p41_in_aaaga(.(T192, T198), X15, T202, T191, T9))
U27_ga(T191, T192, T193, T9, p41_out_aaaga(.(T192, T198), X15, T202, T191, T9)) → qs1_out_ga(.(T191, .(T192, T193)), T9)
qs1_in_ga(.(T207, []), T9) → U28_ga(T207, T9, qs84_in_a(X14))
U28_ga(T207, T9, qs84_out_a(X14)) → qs1_out_ga(.(T207, []), T9)
qs1_in_ga(.(T207, []), T9) → U29_ga(T207, T9, qs84_in_a(T210))
U29_ga(T207, T9, qs84_out_a(T210)) → U30_ga(T207, T9, qs84_in_a(X15))
U30_ga(T207, T9, qs84_out_a(X15)) → qs1_out_ga(.(T207, []), T9)
U29_ga(T207, T9, qs84_out_a(T210)) → U31_ga(T207, T9, T210, qs84_in_a(T213))
U31_ga(T207, T9, T210, qs84_out_a(T213)) → U32_ga(T207, T9, app43_in_ggga(T210, T207, T213, T9))
app43_in_ggga([], T157, T158, .(T157, T158)) → app43_out_ggga([], T157, T158, .(T157, T158))
app43_in_ggga(.(T169, T170), T171, T172, .(T169, T174)) → U13_ggga(T169, T170, T171, T172, T174, app43_in_ggga(T170, T171, T172, T174))
U13_ggga(T169, T170, T171, T172, T174, app43_out_ggga(T170, T171, T172, T174)) → app43_out_ggga(.(T169, T170), T171, T172, .(T169, T174))
U32_ga(T207, T9, app43_out_ggga(T210, T207, T213, T9)) → qs1_out_ga(.(T207, []), T9)
QS1_IN_GA(.(T22, .(T23, T24)), T9) → U17_GA(T22, T23, T24, T9, less14_in_gg(T22, T23))
QS1_IN_GA(.(T22, .(T23, T24)), T9) → LESS14_IN_GG(T22, T23)
LESS14_IN_GG(s(T38), s(T39)) → U1_GG(T38, T39, less14_in_gg(T38, T39))
LESS14_IN_GG(s(T38), s(T39)) → LESS14_IN_GG(T38, T39)
U17_GA(T22, T23, T24, T9, less14_out_gg(T22, T23)) → U18_GA(T22, T23, T24, T9, part24_in_ggaa(T22, T24, X52, X53))
U17_GA(T22, T23, T24, T9, less14_out_gg(T22, T23)) → PART24_IN_GGAA(T22, T24, X52, X53)
PART24_IN_GGAA(T62, .(T63, T64), .(T63, X126), X127) → U2_GGAA(T62, T63, T64, X126, X127, less14_in_gg(T62, T63))
PART24_IN_GGAA(T62, .(T63, T64), .(T63, X126), X127) → LESS14_IN_GG(T62, T63)
U2_GGAA(T62, T63, T64, X126, X127, less14_out_gg(T62, T63)) → U3_GGAA(T62, T63, T64, X126, X127, part24_in_ggaa(T62, T64, X126, X127))
U2_GGAA(T62, T63, T64, X126, X127, less14_out_gg(T62, T63)) → PART24_IN_GGAA(T62, T64, X126, X127)
PART24_IN_GGAA(T84, .(T85, T86), X177, .(T85, X178)) → U4_GGAA(T84, T85, T86, X177, X178, part24_in_ggaa(T84, T86, X177, X178))
PART24_IN_GGAA(T84, .(T85, T86), X177, .(T85, X178)) → PART24_IN_GGAA(T84, T86, X177, X178)
U17_GA(T22, T23, T24, T9, less14_out_gg(T22, T23)) → U19_GA(T22, T23, T24, T9, part24_in_ggaa(T22, T24, T45, T46))
U19_GA(T22, T23, T24, T9, part24_out_ggaa(T22, T24, T45, T46)) → U20_GA(T22, T23, T24, T9, qs1_in_aa(.(T23, T45), X14))
U19_GA(T22, T23, T24, T9, part24_out_ggaa(T22, T24, T45, T46)) → QS1_IN_AA(.(T23, T45), X14)
QS1_IN_AA(.(T22, .(T23, T24)), T9) → U17_AA(T22, T23, T24, T9, less14_in_aa(T22, T23))
QS1_IN_AA(.(T22, .(T23, T24)), T9) → LESS14_IN_AA(T22, T23)
LESS14_IN_AA(s(T38), s(T39)) → U1_AA(T38, T39, less14_in_aa(T38, T39))
LESS14_IN_AA(s(T38), s(T39)) → LESS14_IN_AA(T38, T39)
U17_AA(T22, T23, T24, T9, less14_out_aa(T22, T23)) → U18_AA(T22, T23, T24, T9, part24_in_gaaa(T22, T24, X52, X53))
U17_AA(T22, T23, T24, T9, less14_out_aa(T22, T23)) → PART24_IN_GAAA(T22, T24, X52, X53)
PART24_IN_GAAA(T62, .(T63, T64), .(T63, X126), X127) → U2_GAAA(T62, T63, T64, X126, X127, less14_in_ga(T62, T63))
PART24_IN_GAAA(T62, .(T63, T64), .(T63, X126), X127) → LESS14_IN_GA(T62, T63)
LESS14_IN_GA(s(T38), s(T39)) → U1_GA(T38, T39, less14_in_ga(T38, T39))
LESS14_IN_GA(s(T38), s(T39)) → LESS14_IN_GA(T38, T39)
U2_GAAA(T62, T63, T64, X126, X127, less14_out_ga(T62, T63)) → U3_GAAA(T62, T63, T64, X126, X127, part24_in_gaaa(T62, T64, X126, X127))
U2_GAAA(T62, T63, T64, X126, X127, less14_out_ga(T62, T63)) → PART24_IN_GAAA(T62, T64, X126, X127)
PART24_IN_GAAA(T84, .(T85, T86), X177, .(T85, X178)) → U4_GAAA(T84, T85, T86, X177, X178, part24_in_gaaa(T84, T86, X177, X178))
PART24_IN_GAAA(T84, .(T85, T86), X177, .(T85, X178)) → PART24_IN_GAAA(T84, T86, X177, X178)
U17_AA(T22, T23, T24, T9, less14_out_aa(T22, T23)) → U19_AA(T22, T23, T24, T9, part24_in_gaaa(T22, T24, T45, T46))
U19_AA(T22, T23, T24, T9, part24_out_gaaa(T22, T24, T45, T46)) → U20_AA(T22, T23, T24, T9, qs1_in_aa(.(T23, T45), X14))
U19_AA(T22, T23, T24, T9, part24_out_gaaa(T22, T24, T45, T46)) → QS1_IN_AA(.(T23, T45), X14)
QS1_IN_AA(.(T191, .(T192, T193)), T9) → U23_AA(T191, T192, T193, T9, part24_in_aaaa(T191, T193, X336, X337))
QS1_IN_AA(.(T191, .(T192, T193)), T9) → PART24_IN_AAAA(T191, T193, X336, X337)
PART24_IN_AAAA(T62, .(T63, T64), .(T63, X126), X127) → U2_AAAA(T62, T63, T64, X126, X127, less14_in_aa(T62, T63))
PART24_IN_AAAA(T62, .(T63, T64), .(T63, X126), X127) → LESS14_IN_AA(T62, T63)
U2_AAAA(T62, T63, T64, X126, X127, less14_out_aa(T62, T63)) → U3_AAAA(T62, T63, T64, X126, X127, part24_in_gaaa(T62, T64, X126, X127))
U2_AAAA(T62, T63, T64, X126, X127, less14_out_aa(T62, T63)) → PART24_IN_GAAA(T62, T64, X126, X127)
PART24_IN_AAAA(T84, .(T85, T86), X177, .(T85, X178)) → U4_AAAA(T84, T85, T86, X177, X178, part24_in_aaaa(T84, T86, X177, X178))
PART24_IN_AAAA(T84, .(T85, T86), X177, .(T85, X178)) → PART24_IN_AAAA(T84, T86, X177, X178)
QS1_IN_AA(.(T191, .(T192, T193)), T9) → U24_AA(T191, T192, T193, T9, part24_in_aaaa(T191, T193, T197, T198))
U24_AA(T191, T192, T193, T9, part24_out_aaaa(T191, T193, T197, T198)) → U25_AA(T191, T192, T193, T9, qs42_in_aa(T197, X14))
U24_AA(T191, T192, T193, T9, part24_out_aaaa(T191, T193, T197, T198)) → QS42_IN_AA(T197, X14)
QS42_IN_AA(.(T103, T104), X230) → U5_AA(T103, T104, X230, part24_in_aaaa(T103, T104, X226, X227))
QS42_IN_AA(.(T103, T104), X230) → PART24_IN_AAAA(T103, T104, X226, X227)
QS42_IN_AA(.(T103, T104), X230) → U6_AA(T103, T104, X230, part24_in_aaaa(T103, T104, T108, T109))
U6_AA(T103, T104, X230, part24_out_aaaa(T103, T104, T108, T109)) → U7_AA(T103, T104, X230, qs42_in_aa(T108, X228))
U6_AA(T103, T104, X230, part24_out_aaaa(T103, T104, T108, T109)) → QS42_IN_AA(T108, X228)
U6_AA(T103, T104, X230, part24_out_aaaa(T103, T104, T108, T109)) → U8_AA(T103, T104, X230, T109, qs42_in_aa(T108, T113))
U8_AA(T103, T104, X230, T109, qs42_out_aa(T108, T113)) → U9_AA(T103, T104, X230, qs42_in_aa(T109, X229))
U8_AA(T103, T104, X230, T109, qs42_out_aa(T108, T113)) → QS42_IN_AA(T109, X229)
U8_AA(T103, T104, X230, T109, qs42_out_aa(T108, T113)) → U10_AA(T103, T104, X230, T113, qs42_in_aa(T109, T114))
U10_AA(T103, T104, X230, T113, qs42_out_aa(T109, T114)) → U11_AA(T103, T104, X230, app57_in_aaaa(T113, T103, T114, X230))
U10_AA(T103, T104, X230, T113, qs42_out_aa(T109, T114)) → APP57_IN_AAAA(T113, T103, T114, X230)
APP57_IN_AAAA(.(T137, T138), T139, T140, .(T137, X270)) → U12_AAAA(T137, T138, T139, T140, X270, app57_in_aaaa(T138, T139, T140, X270))
APP57_IN_AAAA(.(T137, T138), T139, T140, .(T137, X270)) → APP57_IN_AAAA(T138, T139, T140, X270)
U24_AA(T191, T192, T193, T9, part24_out_aaaa(T191, T193, T197, T198)) → U26_AA(T191, T192, T193, T9, T198, qs42_in_aa(T197, T202))
U26_AA(T191, T192, T193, T9, T198, qs42_out_aa(T197, T202)) → U27_AA(T191, T192, T193, T9, p41_in_aaaaa(.(T192, T198), X15, T202, T191, T9))
U26_AA(T191, T192, T193, T9, T198, qs42_out_aa(T197, T202)) → P41_IN_AAAAA(.(T192, T198), X15, T202, T191, T9)
P41_IN_AAAAA(T46, X15, T95, T22, T9) → U14_AAAAA(T46, X15, T95, T22, T9, qs42_in_aa(T46, X15))
P41_IN_AAAAA(T46, X15, T95, T22, T9) → QS42_IN_AA(T46, X15)
P41_IN_AAAAA(T46, T98, T95, T22, T9) → U15_AAAAA(T46, T98, T95, T22, T9, qs42_in_aa(T46, T98))
U15_AAAAA(T46, T98, T95, T22, T9, qs42_out_aa(T46, T98)) → U16_AAAAA(T46, T98, T95, T22, T9, app43_in_aaaa(T95, T22, T98, T9))
U15_AAAAA(T46, T98, T95, T22, T9, qs42_out_aa(T46, T98)) → APP43_IN_AAAA(T95, T22, T98, T9)
APP43_IN_AAAA(.(T169, T170), T171, T172, .(T169, T174)) → U13_AAAA(T169, T170, T171, T172, T174, app43_in_aaaa(T170, T171, T172, T174))
APP43_IN_AAAA(.(T169, T170), T171, T172, .(T169, T174)) → APP43_IN_AAAA(T170, T171, T172, T174)
QS1_IN_AA(.(T207, []), T9) → U28_AA(T207, T9, qs84_in_a(X14))
QS1_IN_AA(.(T207, []), T9) → QS84_IN_A(X14)
QS1_IN_AA(.(T207, []), T9) → U29_AA(T207, T9, qs84_in_a(T210))
U29_AA(T207, T9, qs84_out_a(T210)) → U30_AA(T207, T9, qs84_in_a(X15))
U29_AA(T207, T9, qs84_out_a(T210)) → QS84_IN_A(X15)
U29_AA(T207, T9, qs84_out_a(T210)) → U31_AA(T207, T9, T210, qs84_in_a(T213))
U31_AA(T207, T9, T210, qs84_out_a(T213)) → U32_AA(T207, T9, app43_in_gaga(T210, T207, T213, T9))
U31_AA(T207, T9, T210, qs84_out_a(T213)) → APP43_IN_GAGA(T210, T207, T213, T9)
APP43_IN_GAGA(.(T169, T170), T171, T172, .(T169, T174)) → U13_GAGA(T169, T170, T171, T172, T174, app43_in_gaga(T170, T171, T172, T174))
APP43_IN_GAGA(.(T169, T170), T171, T172, .(T169, T174)) → APP43_IN_GAGA(T170, T171, T172, T174)
U19_AA(T22, T23, T24, T9, part24_out_gaaa(T22, T24, T45, T46)) → U21_AA(T22, T23, T24, T9, T46, qs1_in_aa(.(T23, T45), T95))
U21_AA(T22, T23, T24, T9, T46, qs1_out_aa(.(T23, T45), T95)) → U22_AA(T22, T23, T24, T9, p41_in_aaaga(T46, X15, T95, T22, T9))
U21_AA(T22, T23, T24, T9, T46, qs1_out_aa(.(T23, T45), T95)) → P41_IN_AAAGA(T46, X15, T95, T22, T9)
P41_IN_AAAGA(T46, X15, T95, T22, T9) → U14_AAAGA(T46, X15, T95, T22, T9, qs42_in_aa(T46, X15))
P41_IN_AAAGA(T46, X15, T95, T22, T9) → QS42_IN_AA(T46, X15)
P41_IN_AAAGA(T46, T98, T95, T22, T9) → U15_AAAGA(T46, T98, T95, T22, T9, qs42_in_aa(T46, T98))
U15_AAAGA(T46, T98, T95, T22, T9, qs42_out_aa(T46, T98)) → U16_AAAGA(T46, T98, T95, T22, T9, app43_in_agaa(T95, T22, T98, T9))
U15_AAAGA(T46, T98, T95, T22, T9, qs42_out_aa(T46, T98)) → APP43_IN_AGAA(T95, T22, T98, T9)
APP43_IN_AGAA(.(T169, T170), T171, T172, .(T169, T174)) → U13_AGAA(T169, T170, T171, T172, T174, app43_in_agaa(T170, T171, T172, T174))
APP43_IN_AGAA(.(T169, T170), T171, T172, .(T169, T174)) → APP43_IN_AGAA(T170, T171, T172, T174)
U19_GA(T22, T23, T24, T9, part24_out_ggaa(T22, T24, T45, T46)) → U21_GA(T22, T23, T24, T9, T46, qs1_in_aa(.(T23, T45), T95))
U21_GA(T22, T23, T24, T9, T46, qs1_out_aa(.(T23, T45), T95)) → U22_GA(T22, T23, T24, T9, p41_in_aaaga(T46, X15, T95, T22, T9))
U21_GA(T22, T23, T24, T9, T46, qs1_out_aa(.(T23, T45), T95)) → P41_IN_AAAGA(T46, X15, T95, T22, T9)
QS1_IN_GA(.(T191, .(T192, T193)), T9) → U23_GA(T191, T192, T193, T9, part24_in_ggaa(T191, T193, X336, X337))
QS1_IN_GA(.(T191, .(T192, T193)), T9) → PART24_IN_GGAA(T191, T193, X336, X337)
QS1_IN_GA(.(T191, .(T192, T193)), T9) → U24_GA(T191, T192, T193, T9, part24_in_ggaa(T191, T193, T197, T198))
U24_GA(T191, T192, T193, T9, part24_out_ggaa(T191, T193, T197, T198)) → U25_GA(T191, T192, T193, T9, qs42_in_aa(T197, X14))
U24_GA(T191, T192, T193, T9, part24_out_ggaa(T191, T193, T197, T198)) → QS42_IN_AA(T197, X14)
U24_GA(T191, T192, T193, T9, part24_out_ggaa(T191, T193, T197, T198)) → U26_GA(T191, T192, T193, T9, T198, qs42_in_aa(T197, T202))
U26_GA(T191, T192, T193, T9, T198, qs42_out_aa(T197, T202)) → U27_GA(T191, T192, T193, T9, p41_in_aaaga(.(T192, T198), X15, T202, T191, T9))
U26_GA(T191, T192, T193, T9, T198, qs42_out_aa(T197, T202)) → P41_IN_AAAGA(.(T192, T198), X15, T202, T191, T9)
QS1_IN_GA(.(T207, []), T9) → U28_GA(T207, T9, qs84_in_a(X14))
QS1_IN_GA(.(T207, []), T9) → QS84_IN_A(X14)
QS1_IN_GA(.(T207, []), T9) → U29_GA(T207, T9, qs84_in_a(T210))
U29_GA(T207, T9, qs84_out_a(T210)) → U30_GA(T207, T9, qs84_in_a(X15))
U29_GA(T207, T9, qs84_out_a(T210)) → QS84_IN_A(X15)
U29_GA(T207, T9, qs84_out_a(T210)) → U31_GA(T207, T9, T210, qs84_in_a(T213))
U31_GA(T207, T9, T210, qs84_out_a(T213)) → U32_GA(T207, T9, app43_in_ggga(T210, T207, T213, T9))
U31_GA(T207, T9, T210, qs84_out_a(T213)) → APP43_IN_GGGA(T210, T207, T213, T9)
APP43_IN_GGGA(.(T169, T170), T171, T172, .(T169, T174)) → U13_GGGA(T169, T170, T171, T172, T174, app43_in_ggga(T170, T171, T172, T174))
APP43_IN_GGGA(.(T169, T170), T171, T172, .(T169, T174)) → APP43_IN_GGGA(T170, T171, T172, T174)
qs1_in_ga([], []) → qs1_out_ga([], [])
qs1_in_ga(.(T22, .(T23, T24)), T9) → U17_ga(T22, T23, T24, T9, less14_in_gg(T22, T23))
less14_in_gg(0, s(T33)) → less14_out_gg(0, s(T33))
less14_in_gg(s(T38), s(T39)) → U1_gg(T38, T39, less14_in_gg(T38, T39))
U1_gg(T38, T39, less14_out_gg(T38, T39)) → less14_out_gg(s(T38), s(T39))
U17_ga(T22, T23, T24, T9, less14_out_gg(T22, T23)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U17_ga(T22, T23, T24, T9, less14_out_gg(T22, T23)) → U18_ga(T22, T23, T24, T9, part24_in_ggaa(T22, T24, X52, X53))
part24_in_ggaa(T62, .(T63, T64), .(T63, X126), X127) → U2_ggaa(T62, T63, T64, X126, X127, less14_in_gg(T62, T63))
U2_ggaa(T62, T63, T64, X126, X127, less14_out_gg(T62, T63)) → part24_out_ggaa(T62, .(T63, T64), .(T63, X126), X127)
U2_ggaa(T62, T63, T64, X126, X127, less14_out_gg(T62, T63)) → U3_ggaa(T62, T63, T64, X126, X127, part24_in_ggaa(T62, T64, X126, X127))
part24_in_ggaa(T84, .(T85, T86), X177, .(T85, X178)) → U4_ggaa(T84, T85, T86, X177, X178, part24_in_ggaa(T84, T86, X177, X178))
part24_in_ggaa(T92, [], [], []) → part24_out_ggaa(T92, [], [], [])
U4_ggaa(T84, T85, T86, X177, X178, part24_out_ggaa(T84, T86, X177, X178)) → part24_out_ggaa(T84, .(T85, T86), X177, .(T85, X178))
U3_ggaa(T62, T63, T64, X126, X127, part24_out_ggaa(T62, T64, X126, X127)) → part24_out_ggaa(T62, .(T63, T64), .(T63, X126), X127)
U18_ga(T22, T23, T24, T9, part24_out_ggaa(T22, T24, X52, X53)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U17_ga(T22, T23, T24, T9, less14_out_gg(T22, T23)) → U19_ga(T22, T23, T24, T9, part24_in_ggaa(T22, T24, T45, T46))
U19_ga(T22, T23, T24, T9, part24_out_ggaa(T22, T24, T45, T46)) → U20_ga(T22, T23, T24, T9, qs1_in_aa(.(T23, T45), X14))
qs1_in_aa([], []) → qs1_out_aa([], [])
qs1_in_aa(.(T22, .(T23, T24)), T9) → U17_aa(T22, T23, T24, T9, less14_in_aa(T22, T23))
less14_in_aa(0, s(T33)) → less14_out_aa(0, s(T33))
less14_in_aa(s(T38), s(T39)) → U1_aa(T38, T39, less14_in_aa(T38, T39))
U1_aa(T38, T39, less14_out_aa(T38, T39)) → less14_out_aa(s(T38), s(T39))
U17_aa(T22, T23, T24, T9, less14_out_aa(T22, T23)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U17_aa(T22, T23, T24, T9, less14_out_aa(T22, T23)) → U18_aa(T22, T23, T24, T9, part24_in_gaaa(T22, T24, X52, X53))
part24_in_gaaa(T62, .(T63, T64), .(T63, X126), X127) → U2_gaaa(T62, T63, T64, X126, X127, less14_in_ga(T62, T63))
less14_in_ga(0, s(T33)) → less14_out_ga(0, s(T33))
less14_in_ga(s(T38), s(T39)) → U1_ga(T38, T39, less14_in_ga(T38, T39))
U1_ga(T38, T39, less14_out_ga(T38, T39)) → less14_out_ga(s(T38), s(T39))
U2_gaaa(T62, T63, T64, X126, X127, less14_out_ga(T62, T63)) → part24_out_gaaa(T62, .(T63, T64), .(T63, X126), X127)
U2_gaaa(T62, T63, T64, X126, X127, less14_out_ga(T62, T63)) → U3_gaaa(T62, T63, T64, X126, X127, part24_in_gaaa(T62, T64, X126, X127))
part24_in_gaaa(T84, .(T85, T86), X177, .(T85, X178)) → U4_gaaa(T84, T85, T86, X177, X178, part24_in_gaaa(T84, T86, X177, X178))
part24_in_gaaa(T92, [], [], []) → part24_out_gaaa(T92, [], [], [])
U4_gaaa(T84, T85, T86, X177, X178, part24_out_gaaa(T84, T86, X177, X178)) → part24_out_gaaa(T84, .(T85, T86), X177, .(T85, X178))
U3_gaaa(T62, T63, T64, X126, X127, part24_out_gaaa(T62, T64, X126, X127)) → part24_out_gaaa(T62, .(T63, T64), .(T63, X126), X127)
U18_aa(T22, T23, T24, T9, part24_out_gaaa(T22, T24, X52, X53)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U17_aa(T22, T23, T24, T9, less14_out_aa(T22, T23)) → U19_aa(T22, T23, T24, T9, part24_in_gaaa(T22, T24, T45, T46))
U19_aa(T22, T23, T24, T9, part24_out_gaaa(T22, T24, T45, T46)) → U20_aa(T22, T23, T24, T9, qs1_in_aa(.(T23, T45), X14))
qs1_in_aa(.(T191, .(T192, T193)), T9) → U23_aa(T191, T192, T193, T9, part24_in_aaaa(T191, T193, X336, X337))
part24_in_aaaa(T62, .(T63, T64), .(T63, X126), X127) → U2_aaaa(T62, T63, T64, X126, X127, less14_in_aa(T62, T63))
U2_aaaa(T62, T63, T64, X126, X127, less14_out_aa(T62, T63)) → part24_out_aaaa(T62, .(T63, T64), .(T63, X126), X127)
U2_aaaa(T62, T63, T64, X126, X127, less14_out_aa(T62, T63)) → U3_aaaa(T62, T63, T64, X126, X127, part24_in_gaaa(T62, T64, X126, X127))
U3_aaaa(T62, T63, T64, X126, X127, part24_out_gaaa(T62, T64, X126, X127)) → part24_out_aaaa(T62, .(T63, T64), .(T63, X126), X127)
part24_in_aaaa(T84, .(T85, T86), X177, .(T85, X178)) → U4_aaaa(T84, T85, T86, X177, X178, part24_in_aaaa(T84, T86, X177, X178))
part24_in_aaaa(T92, [], [], []) → part24_out_aaaa(T92, [], [], [])
U4_aaaa(T84, T85, T86, X177, X178, part24_out_aaaa(T84, T86, X177, X178)) → part24_out_aaaa(T84, .(T85, T86), X177, .(T85, X178))
U23_aa(T191, T192, T193, T9, part24_out_aaaa(T191, T193, X336, X337)) → qs1_out_aa(.(T191, .(T192, T193)), T9)
qs1_in_aa(.(T191, .(T192, T193)), T9) → U24_aa(T191, T192, T193, T9, part24_in_aaaa(T191, T193, T197, T198))
U24_aa(T191, T192, T193, T9, part24_out_aaaa(T191, T193, T197, T198)) → U25_aa(T191, T192, T193, T9, qs42_in_aa(T197, X14))
qs42_in_aa([], []) → qs42_out_aa([], [])
qs42_in_aa(.(T103, T104), X230) → U5_aa(T103, T104, X230, part24_in_aaaa(T103, T104, X226, X227))
U5_aa(T103, T104, X230, part24_out_aaaa(T103, T104, X226, X227)) → qs42_out_aa(.(T103, T104), X230)
qs42_in_aa(.(T103, T104), X230) → U6_aa(T103, T104, X230, part24_in_aaaa(T103, T104, T108, T109))
U6_aa(T103, T104, X230, part24_out_aaaa(T103, T104, T108, T109)) → U7_aa(T103, T104, X230, qs42_in_aa(T108, X228))
U7_aa(T103, T104, X230, qs42_out_aa(T108, X228)) → qs42_out_aa(.(T103, T104), X230)
U6_aa(T103, T104, X230, part24_out_aaaa(T103, T104, T108, T109)) → U8_aa(T103, T104, X230, T109, qs42_in_aa(T108, T113))
U8_aa(T103, T104, X230, T109, qs42_out_aa(T108, T113)) → U9_aa(T103, T104, X230, qs42_in_aa(T109, X229))
U9_aa(T103, T104, X230, qs42_out_aa(T109, X229)) → qs42_out_aa(.(T103, T104), X230)
U8_aa(T103, T104, X230, T109, qs42_out_aa(T108, T113)) → U10_aa(T103, T104, X230, T113, qs42_in_aa(T109, T114))
U10_aa(T103, T104, X230, T113, qs42_out_aa(T109, T114)) → U11_aa(T103, T104, X230, app57_in_aaaa(T113, T103, T114, X230))
app57_in_aaaa([], T127, T128, .(T127, T128)) → app57_out_aaaa([], T127, T128, .(T127, T128))
app57_in_aaaa(.(T137, T138), T139, T140, .(T137, X270)) → U12_aaaa(T137, T138, T139, T140, X270, app57_in_aaaa(T138, T139, T140, X270))
U12_aaaa(T137, T138, T139, T140, X270, app57_out_aaaa(T138, T139, T140, X270)) → app57_out_aaaa(.(T137, T138), T139, T140, .(T137, X270))
U11_aa(T103, T104, X230, app57_out_aaaa(T113, T103, T114, X230)) → qs42_out_aa(.(T103, T104), X230)
U25_aa(T191, T192, T193, T9, qs42_out_aa(T197, X14)) → qs1_out_aa(.(T191, .(T192, T193)), T9)
U24_aa(T191, T192, T193, T9, part24_out_aaaa(T191, T193, T197, T198)) → U26_aa(T191, T192, T193, T9, T198, qs42_in_aa(T197, T202))
U26_aa(T191, T192, T193, T9, T198, qs42_out_aa(T197, T202)) → U27_aa(T191, T192, T193, T9, p41_in_aaaaa(.(T192, T198), X15, T202, T191, T9))
p41_in_aaaaa(T46, X15, T95, T22, T9) → U14_aaaaa(T46, X15, T95, T22, T9, qs42_in_aa(T46, X15))
U14_aaaaa(T46, X15, T95, T22, T9, qs42_out_aa(T46, X15)) → p41_out_aaaaa(T46, X15, T95, T22, T9)
p41_in_aaaaa(T46, T98, T95, T22, T9) → U15_aaaaa(T46, T98, T95, T22, T9, qs42_in_aa(T46, T98))
U15_aaaaa(T46, T98, T95, T22, T9, qs42_out_aa(T46, T98)) → U16_aaaaa(T46, T98, T95, T22, T9, app43_in_aaaa(T95, T22, T98, T9))
app43_in_aaaa([], T157, T158, .(T157, T158)) → app43_out_aaaa([], T157, T158, .(T157, T158))
app43_in_aaaa(.(T169, T170), T171, T172, .(T169, T174)) → U13_aaaa(T169, T170, T171, T172, T174, app43_in_aaaa(T170, T171, T172, T174))
U13_aaaa(T169, T170, T171, T172, T174, app43_out_aaaa(T170, T171, T172, T174)) → app43_out_aaaa(.(T169, T170), T171, T172, .(T169, T174))
U16_aaaaa(T46, T98, T95, T22, T9, app43_out_aaaa(T95, T22, T98, T9)) → p41_out_aaaaa(T46, T98, T95, T22, T9)
U27_aa(T191, T192, T193, T9, p41_out_aaaaa(.(T192, T198), X15, T202, T191, T9)) → qs1_out_aa(.(T191, .(T192, T193)), T9)
qs1_in_aa(.(T207, []), T9) → U28_aa(T207, T9, qs84_in_a(X14))
qs84_in_a([]) → qs84_out_a([])
U28_aa(T207, T9, qs84_out_a(X14)) → qs1_out_aa(.(T207, []), T9)
qs1_in_aa(.(T207, []), T9) → U29_aa(T207, T9, qs84_in_a(T210))
U29_aa(T207, T9, qs84_out_a(T210)) → U30_aa(T207, T9, qs84_in_a(X15))
U30_aa(T207, T9, qs84_out_a(X15)) → qs1_out_aa(.(T207, []), T9)
U29_aa(T207, T9, qs84_out_a(T210)) → U31_aa(T207, T9, T210, qs84_in_a(T213))
U31_aa(T207, T9, T210, qs84_out_a(T213)) → U32_aa(T207, T9, app43_in_gaga(T210, T207, T213, T9))
app43_in_gaga([], T157, T158, .(T157, T158)) → app43_out_gaga([], T157, T158, .(T157, T158))
app43_in_gaga(.(T169, T170), T171, T172, .(T169, T174)) → U13_gaga(T169, T170, T171, T172, T174, app43_in_gaga(T170, T171, T172, T174))
U13_gaga(T169, T170, T171, T172, T174, app43_out_gaga(T170, T171, T172, T174)) → app43_out_gaga(.(T169, T170), T171, T172, .(T169, T174))
U32_aa(T207, T9, app43_out_gaga(T210, T207, T213, T9)) → qs1_out_aa(.(T207, []), T9)
U20_aa(T22, T23, T24, T9, qs1_out_aa(.(T23, T45), X14)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U19_aa(T22, T23, T24, T9, part24_out_gaaa(T22, T24, T45, T46)) → U21_aa(T22, T23, T24, T9, T46, qs1_in_aa(.(T23, T45), T95))
U21_aa(T22, T23, T24, T9, T46, qs1_out_aa(.(T23, T45), T95)) → U22_aa(T22, T23, T24, T9, p41_in_aaaga(T46, X15, T95, T22, T9))
p41_in_aaaga(T46, X15, T95, T22, T9) → U14_aaaga(T46, X15, T95, T22, T9, qs42_in_aa(T46, X15))
U14_aaaga(T46, X15, T95, T22, T9, qs42_out_aa(T46, X15)) → p41_out_aaaga(T46, X15, T95, T22, T9)
p41_in_aaaga(T46, T98, T95, T22, T9) → U15_aaaga(T46, T98, T95, T22, T9, qs42_in_aa(T46, T98))
U15_aaaga(T46, T98, T95, T22, T9, qs42_out_aa(T46, T98)) → U16_aaaga(T46, T98, T95, T22, T9, app43_in_agaa(T95, T22, T98, T9))
app43_in_agaa([], T157, T158, .(T157, T158)) → app43_out_agaa([], T157, T158, .(T157, T158))
app43_in_agaa(.(T169, T170), T171, T172, .(T169, T174)) → U13_agaa(T169, T170, T171, T172, T174, app43_in_agaa(T170, T171, T172, T174))
U13_agaa(T169, T170, T171, T172, T174, app43_out_agaa(T170, T171, T172, T174)) → app43_out_agaa(.(T169, T170), T171, T172, .(T169, T174))
U16_aaaga(T46, T98, T95, T22, T9, app43_out_agaa(T95, T22, T98, T9)) → p41_out_aaaga(T46, T98, T95, T22, T9)
U22_aa(T22, T23, T24, T9, p41_out_aaaga(T46, X15, T95, T22, T9)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U20_ga(T22, T23, T24, T9, qs1_out_aa(.(T23, T45), X14)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U19_ga(T22, T23, T24, T9, part24_out_ggaa(T22, T24, T45, T46)) → U21_ga(T22, T23, T24, T9, T46, qs1_in_aa(.(T23, T45), T95))
U21_ga(T22, T23, T24, T9, T46, qs1_out_aa(.(T23, T45), T95)) → U22_ga(T22, T23, T24, T9, p41_in_aaaga(T46, X15, T95, T22, T9))
U22_ga(T22, T23, T24, T9, p41_out_aaaga(T46, X15, T95, T22, T9)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
qs1_in_ga(.(T191, .(T192, T193)), T9) → U23_ga(T191, T192, T193, T9, part24_in_ggaa(T191, T193, X336, X337))
U23_ga(T191, T192, T193, T9, part24_out_ggaa(T191, T193, X336, X337)) → qs1_out_ga(.(T191, .(T192, T193)), T9)
qs1_in_ga(.(T191, .(T192, T193)), T9) → U24_ga(T191, T192, T193, T9, part24_in_ggaa(T191, T193, T197, T198))
U24_ga(T191, T192, T193, T9, part24_out_ggaa(T191, T193, T197, T198)) → U25_ga(T191, T192, T193, T9, qs42_in_aa(T197, X14))
U25_ga(T191, T192, T193, T9, qs42_out_aa(T197, X14)) → qs1_out_ga(.(T191, .(T192, T193)), T9)
U24_ga(T191, T192, T193, T9, part24_out_ggaa(T191, T193, T197, T198)) → U26_ga(T191, T192, T193, T9, T198, qs42_in_aa(T197, T202))
U26_ga(T191, T192, T193, T9, T198, qs42_out_aa(T197, T202)) → U27_ga(T191, T192, T193, T9, p41_in_aaaga(.(T192, T198), X15, T202, T191, T9))
U27_ga(T191, T192, T193, T9, p41_out_aaaga(.(T192, T198), X15, T202, T191, T9)) → qs1_out_ga(.(T191, .(T192, T193)), T9)
qs1_in_ga(.(T207, []), T9) → U28_ga(T207, T9, qs84_in_a(X14))
U28_ga(T207, T9, qs84_out_a(X14)) → qs1_out_ga(.(T207, []), T9)
qs1_in_ga(.(T207, []), T9) → U29_ga(T207, T9, qs84_in_a(T210))
U29_ga(T207, T9, qs84_out_a(T210)) → U30_ga(T207, T9, qs84_in_a(X15))
U30_ga(T207, T9, qs84_out_a(X15)) → qs1_out_ga(.(T207, []), T9)
U29_ga(T207, T9, qs84_out_a(T210)) → U31_ga(T207, T9, T210, qs84_in_a(T213))
U31_ga(T207, T9, T210, qs84_out_a(T213)) → U32_ga(T207, T9, app43_in_ggga(T210, T207, T213, T9))
app43_in_ggga([], T157, T158, .(T157, T158)) → app43_out_ggga([], T157, T158, .(T157, T158))
app43_in_ggga(.(T169, T170), T171, T172, .(T169, T174)) → U13_ggga(T169, T170, T171, T172, T174, app43_in_ggga(T170, T171, T172, T174))
U13_ggga(T169, T170, T171, T172, T174, app43_out_ggga(T170, T171, T172, T174)) → app43_out_ggga(.(T169, T170), T171, T172, .(T169, T174))
U32_ga(T207, T9, app43_out_ggga(T210, T207, T213, T9)) → qs1_out_ga(.(T207, []), T9)
APP43_IN_GGGA(.(T169, T170), T171, T172, .(T169, T174)) → APP43_IN_GGGA(T170, T171, T172, T174)
qs1_in_ga([], []) → qs1_out_ga([], [])
qs1_in_ga(.(T22, .(T23, T24)), T9) → U17_ga(T22, T23, T24, T9, less14_in_gg(T22, T23))
less14_in_gg(0, s(T33)) → less14_out_gg(0, s(T33))
less14_in_gg(s(T38), s(T39)) → U1_gg(T38, T39, less14_in_gg(T38, T39))
U1_gg(T38, T39, less14_out_gg(T38, T39)) → less14_out_gg(s(T38), s(T39))
U17_ga(T22, T23, T24, T9, less14_out_gg(T22, T23)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U17_ga(T22, T23, T24, T9, less14_out_gg(T22, T23)) → U18_ga(T22, T23, T24, T9, part24_in_ggaa(T22, T24, X52, X53))
part24_in_ggaa(T62, .(T63, T64), .(T63, X126), X127) → U2_ggaa(T62, T63, T64, X126, X127, less14_in_gg(T62, T63))
U2_ggaa(T62, T63, T64, X126, X127, less14_out_gg(T62, T63)) → part24_out_ggaa(T62, .(T63, T64), .(T63, X126), X127)
U2_ggaa(T62, T63, T64, X126, X127, less14_out_gg(T62, T63)) → U3_ggaa(T62, T63, T64, X126, X127, part24_in_ggaa(T62, T64, X126, X127))
part24_in_ggaa(T84, .(T85, T86), X177, .(T85, X178)) → U4_ggaa(T84, T85, T86, X177, X178, part24_in_ggaa(T84, T86, X177, X178))
part24_in_ggaa(T92, [], [], []) → part24_out_ggaa(T92, [], [], [])
U4_ggaa(T84, T85, T86, X177, X178, part24_out_ggaa(T84, T86, X177, X178)) → part24_out_ggaa(T84, .(T85, T86), X177, .(T85, X178))
U3_ggaa(T62, T63, T64, X126, X127, part24_out_ggaa(T62, T64, X126, X127)) → part24_out_ggaa(T62, .(T63, T64), .(T63, X126), X127)
U18_ga(T22, T23, T24, T9, part24_out_ggaa(T22, T24, X52, X53)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U17_ga(T22, T23, T24, T9, less14_out_gg(T22, T23)) → U19_ga(T22, T23, T24, T9, part24_in_ggaa(T22, T24, T45, T46))
U19_ga(T22, T23, T24, T9, part24_out_ggaa(T22, T24, T45, T46)) → U20_ga(T22, T23, T24, T9, qs1_in_aa(.(T23, T45), X14))
qs1_in_aa([], []) → qs1_out_aa([], [])
qs1_in_aa(.(T22, .(T23, T24)), T9) → U17_aa(T22, T23, T24, T9, less14_in_aa(T22, T23))
less14_in_aa(0, s(T33)) → less14_out_aa(0, s(T33))
less14_in_aa(s(T38), s(T39)) → U1_aa(T38, T39, less14_in_aa(T38, T39))
U1_aa(T38, T39, less14_out_aa(T38, T39)) → less14_out_aa(s(T38), s(T39))
U17_aa(T22, T23, T24, T9, less14_out_aa(T22, T23)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U17_aa(T22, T23, T24, T9, less14_out_aa(T22, T23)) → U18_aa(T22, T23, T24, T9, part24_in_gaaa(T22, T24, X52, X53))
part24_in_gaaa(T62, .(T63, T64), .(T63, X126), X127) → U2_gaaa(T62, T63, T64, X126, X127, less14_in_ga(T62, T63))
less14_in_ga(0, s(T33)) → less14_out_ga(0, s(T33))
less14_in_ga(s(T38), s(T39)) → U1_ga(T38, T39, less14_in_ga(T38, T39))
U1_ga(T38, T39, less14_out_ga(T38, T39)) → less14_out_ga(s(T38), s(T39))
U2_gaaa(T62, T63, T64, X126, X127, less14_out_ga(T62, T63)) → part24_out_gaaa(T62, .(T63, T64), .(T63, X126), X127)
U2_gaaa(T62, T63, T64, X126, X127, less14_out_ga(T62, T63)) → U3_gaaa(T62, T63, T64, X126, X127, part24_in_gaaa(T62, T64, X126, X127))
part24_in_gaaa(T84, .(T85, T86), X177, .(T85, X178)) → U4_gaaa(T84, T85, T86, X177, X178, part24_in_gaaa(T84, T86, X177, X178))
part24_in_gaaa(T92, [], [], []) → part24_out_gaaa(T92, [], [], [])
U4_gaaa(T84, T85, T86, X177, X178, part24_out_gaaa(T84, T86, X177, X178)) → part24_out_gaaa(T84, .(T85, T86), X177, .(T85, X178))
U3_gaaa(T62, T63, T64, X126, X127, part24_out_gaaa(T62, T64, X126, X127)) → part24_out_gaaa(T62, .(T63, T64), .(T63, X126), X127)
U18_aa(T22, T23, T24, T9, part24_out_gaaa(T22, T24, X52, X53)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U17_aa(T22, T23, T24, T9, less14_out_aa(T22, T23)) → U19_aa(T22, T23, T24, T9, part24_in_gaaa(T22, T24, T45, T46))
U19_aa(T22, T23, T24, T9, part24_out_gaaa(T22, T24, T45, T46)) → U20_aa(T22, T23, T24, T9, qs1_in_aa(.(T23, T45), X14))
qs1_in_aa(.(T191, .(T192, T193)), T9) → U23_aa(T191, T192, T193, T9, part24_in_aaaa(T191, T193, X336, X337))
part24_in_aaaa(T62, .(T63, T64), .(T63, X126), X127) → U2_aaaa(T62, T63, T64, X126, X127, less14_in_aa(T62, T63))
U2_aaaa(T62, T63, T64, X126, X127, less14_out_aa(T62, T63)) → part24_out_aaaa(T62, .(T63, T64), .(T63, X126), X127)
U2_aaaa(T62, T63, T64, X126, X127, less14_out_aa(T62, T63)) → U3_aaaa(T62, T63, T64, X126, X127, part24_in_gaaa(T62, T64, X126, X127))
U3_aaaa(T62, T63, T64, X126, X127, part24_out_gaaa(T62, T64, X126, X127)) → part24_out_aaaa(T62, .(T63, T64), .(T63, X126), X127)
part24_in_aaaa(T84, .(T85, T86), X177, .(T85, X178)) → U4_aaaa(T84, T85, T86, X177, X178, part24_in_aaaa(T84, T86, X177, X178))
part24_in_aaaa(T92, [], [], []) → part24_out_aaaa(T92, [], [], [])
U4_aaaa(T84, T85, T86, X177, X178, part24_out_aaaa(T84, T86, X177, X178)) → part24_out_aaaa(T84, .(T85, T86), X177, .(T85, X178))
U23_aa(T191, T192, T193, T9, part24_out_aaaa(T191, T193, X336, X337)) → qs1_out_aa(.(T191, .(T192, T193)), T9)
qs1_in_aa(.(T191, .(T192, T193)), T9) → U24_aa(T191, T192, T193, T9, part24_in_aaaa(T191, T193, T197, T198))
U24_aa(T191, T192, T193, T9, part24_out_aaaa(T191, T193, T197, T198)) → U25_aa(T191, T192, T193, T9, qs42_in_aa(T197, X14))
qs42_in_aa([], []) → qs42_out_aa([], [])
qs42_in_aa(.(T103, T104), X230) → U5_aa(T103, T104, X230, part24_in_aaaa(T103, T104, X226, X227))
U5_aa(T103, T104, X230, part24_out_aaaa(T103, T104, X226, X227)) → qs42_out_aa(.(T103, T104), X230)
qs42_in_aa(.(T103, T104), X230) → U6_aa(T103, T104, X230, part24_in_aaaa(T103, T104, T108, T109))
U6_aa(T103, T104, X230, part24_out_aaaa(T103, T104, T108, T109)) → U7_aa(T103, T104, X230, qs42_in_aa(T108, X228))
U7_aa(T103, T104, X230, qs42_out_aa(T108, X228)) → qs42_out_aa(.(T103, T104), X230)
U6_aa(T103, T104, X230, part24_out_aaaa(T103, T104, T108, T109)) → U8_aa(T103, T104, X230, T109, qs42_in_aa(T108, T113))
U8_aa(T103, T104, X230, T109, qs42_out_aa(T108, T113)) → U9_aa(T103, T104, X230, qs42_in_aa(T109, X229))
U9_aa(T103, T104, X230, qs42_out_aa(T109, X229)) → qs42_out_aa(.(T103, T104), X230)
U8_aa(T103, T104, X230, T109, qs42_out_aa(T108, T113)) → U10_aa(T103, T104, X230, T113, qs42_in_aa(T109, T114))
U10_aa(T103, T104, X230, T113, qs42_out_aa(T109, T114)) → U11_aa(T103, T104, X230, app57_in_aaaa(T113, T103, T114, X230))
app57_in_aaaa([], T127, T128, .(T127, T128)) → app57_out_aaaa([], T127, T128, .(T127, T128))
app57_in_aaaa(.(T137, T138), T139, T140, .(T137, X270)) → U12_aaaa(T137, T138, T139, T140, X270, app57_in_aaaa(T138, T139, T140, X270))
U12_aaaa(T137, T138, T139, T140, X270, app57_out_aaaa(T138, T139, T140, X270)) → app57_out_aaaa(.(T137, T138), T139, T140, .(T137, X270))
U11_aa(T103, T104, X230, app57_out_aaaa(T113, T103, T114, X230)) → qs42_out_aa(.(T103, T104), X230)
U25_aa(T191, T192, T193, T9, qs42_out_aa(T197, X14)) → qs1_out_aa(.(T191, .(T192, T193)), T9)
U24_aa(T191, T192, T193, T9, part24_out_aaaa(T191, T193, T197, T198)) → U26_aa(T191, T192, T193, T9, T198, qs42_in_aa(T197, T202))
U26_aa(T191, T192, T193, T9, T198, qs42_out_aa(T197, T202)) → U27_aa(T191, T192, T193, T9, p41_in_aaaaa(.(T192, T198), X15, T202, T191, T9))
p41_in_aaaaa(T46, X15, T95, T22, T9) → U14_aaaaa(T46, X15, T95, T22, T9, qs42_in_aa(T46, X15))
U14_aaaaa(T46, X15, T95, T22, T9, qs42_out_aa(T46, X15)) → p41_out_aaaaa(T46, X15, T95, T22, T9)
p41_in_aaaaa(T46, T98, T95, T22, T9) → U15_aaaaa(T46, T98, T95, T22, T9, qs42_in_aa(T46, T98))
U15_aaaaa(T46, T98, T95, T22, T9, qs42_out_aa(T46, T98)) → U16_aaaaa(T46, T98, T95, T22, T9, app43_in_aaaa(T95, T22, T98, T9))
app43_in_aaaa([], T157, T158, .(T157, T158)) → app43_out_aaaa([], T157, T158, .(T157, T158))
app43_in_aaaa(.(T169, T170), T171, T172, .(T169, T174)) → U13_aaaa(T169, T170, T171, T172, T174, app43_in_aaaa(T170, T171, T172, T174))
U13_aaaa(T169, T170, T171, T172, T174, app43_out_aaaa(T170, T171, T172, T174)) → app43_out_aaaa(.(T169, T170), T171, T172, .(T169, T174))
U16_aaaaa(T46, T98, T95, T22, T9, app43_out_aaaa(T95, T22, T98, T9)) → p41_out_aaaaa(T46, T98, T95, T22, T9)
U27_aa(T191, T192, T193, T9, p41_out_aaaaa(.(T192, T198), X15, T202, T191, T9)) → qs1_out_aa(.(T191, .(T192, T193)), T9)
qs1_in_aa(.(T207, []), T9) → U28_aa(T207, T9, qs84_in_a(X14))
qs84_in_a([]) → qs84_out_a([])
U28_aa(T207, T9, qs84_out_a(X14)) → qs1_out_aa(.(T207, []), T9)
qs1_in_aa(.(T207, []), T9) → U29_aa(T207, T9, qs84_in_a(T210))
U29_aa(T207, T9, qs84_out_a(T210)) → U30_aa(T207, T9, qs84_in_a(X15))
U30_aa(T207, T9, qs84_out_a(X15)) → qs1_out_aa(.(T207, []), T9)
U29_aa(T207, T9, qs84_out_a(T210)) → U31_aa(T207, T9, T210, qs84_in_a(T213))
U31_aa(T207, T9, T210, qs84_out_a(T213)) → U32_aa(T207, T9, app43_in_gaga(T210, T207, T213, T9))
app43_in_gaga([], T157, T158, .(T157, T158)) → app43_out_gaga([], T157, T158, .(T157, T158))
app43_in_gaga(.(T169, T170), T171, T172, .(T169, T174)) → U13_gaga(T169, T170, T171, T172, T174, app43_in_gaga(T170, T171, T172, T174))
U13_gaga(T169, T170, T171, T172, T174, app43_out_gaga(T170, T171, T172, T174)) → app43_out_gaga(.(T169, T170), T171, T172, .(T169, T174))
U32_aa(T207, T9, app43_out_gaga(T210, T207, T213, T9)) → qs1_out_aa(.(T207, []), T9)
U20_aa(T22, T23, T24, T9, qs1_out_aa(.(T23, T45), X14)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U19_aa(T22, T23, T24, T9, part24_out_gaaa(T22, T24, T45, T46)) → U21_aa(T22, T23, T24, T9, T46, qs1_in_aa(.(T23, T45), T95))
U21_aa(T22, T23, T24, T9, T46, qs1_out_aa(.(T23, T45), T95)) → U22_aa(T22, T23, T24, T9, p41_in_aaaga(T46, X15, T95, T22, T9))
p41_in_aaaga(T46, X15, T95, T22, T9) → U14_aaaga(T46, X15, T95, T22, T9, qs42_in_aa(T46, X15))
U14_aaaga(T46, X15, T95, T22, T9, qs42_out_aa(T46, X15)) → p41_out_aaaga(T46, X15, T95, T22, T9)
p41_in_aaaga(T46, T98, T95, T22, T9) → U15_aaaga(T46, T98, T95, T22, T9, qs42_in_aa(T46, T98))
U15_aaaga(T46, T98, T95, T22, T9, qs42_out_aa(T46, T98)) → U16_aaaga(T46, T98, T95, T22, T9, app43_in_agaa(T95, T22, T98, T9))
app43_in_agaa([], T157, T158, .(T157, T158)) → app43_out_agaa([], T157, T158, .(T157, T158))
app43_in_agaa(.(T169, T170), T171, T172, .(T169, T174)) → U13_agaa(T169, T170, T171, T172, T174, app43_in_agaa(T170, T171, T172, T174))
U13_agaa(T169, T170, T171, T172, T174, app43_out_agaa(T170, T171, T172, T174)) → app43_out_agaa(.(T169, T170), T171, T172, .(T169, T174))
U16_aaaga(T46, T98, T95, T22, T9, app43_out_agaa(T95, T22, T98, T9)) → p41_out_aaaga(T46, T98, T95, T22, T9)
U22_aa(T22, T23, T24, T9, p41_out_aaaga(T46, X15, T95, T22, T9)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U20_ga(T22, T23, T24, T9, qs1_out_aa(.(T23, T45), X14)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U19_ga(T22, T23, T24, T9, part24_out_ggaa(T22, T24, T45, T46)) → U21_ga(T22, T23, T24, T9, T46, qs1_in_aa(.(T23, T45), T95))
U21_ga(T22, T23, T24, T9, T46, qs1_out_aa(.(T23, T45), T95)) → U22_ga(T22, T23, T24, T9, p41_in_aaaga(T46, X15, T95, T22, T9))
U22_ga(T22, T23, T24, T9, p41_out_aaaga(T46, X15, T95, T22, T9)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
qs1_in_ga(.(T191, .(T192, T193)), T9) → U23_ga(T191, T192, T193, T9, part24_in_ggaa(T191, T193, X336, X337))
U23_ga(T191, T192, T193, T9, part24_out_ggaa(T191, T193, X336, X337)) → qs1_out_ga(.(T191, .(T192, T193)), T9)
qs1_in_ga(.(T191, .(T192, T193)), T9) → U24_ga(T191, T192, T193, T9, part24_in_ggaa(T191, T193, T197, T198))
U24_ga(T191, T192, T193, T9, part24_out_ggaa(T191, T193, T197, T198)) → U25_ga(T191, T192, T193, T9, qs42_in_aa(T197, X14))
U25_ga(T191, T192, T193, T9, qs42_out_aa(T197, X14)) → qs1_out_ga(.(T191, .(T192, T193)), T9)
U24_ga(T191, T192, T193, T9, part24_out_ggaa(T191, T193, T197, T198)) → U26_ga(T191, T192, T193, T9, T198, qs42_in_aa(T197, T202))
U26_ga(T191, T192, T193, T9, T198, qs42_out_aa(T197, T202)) → U27_ga(T191, T192, T193, T9, p41_in_aaaga(.(T192, T198), X15, T202, T191, T9))
U27_ga(T191, T192, T193, T9, p41_out_aaaga(.(T192, T198), X15, T202, T191, T9)) → qs1_out_ga(.(T191, .(T192, T193)), T9)
qs1_in_ga(.(T207, []), T9) → U28_ga(T207, T9, qs84_in_a(X14))
U28_ga(T207, T9, qs84_out_a(X14)) → qs1_out_ga(.(T207, []), T9)
qs1_in_ga(.(T207, []), T9) → U29_ga(T207, T9, qs84_in_a(T210))
U29_ga(T207, T9, qs84_out_a(T210)) → U30_ga(T207, T9, qs84_in_a(X15))
U30_ga(T207, T9, qs84_out_a(X15)) → qs1_out_ga(.(T207, []), T9)
U29_ga(T207, T9, qs84_out_a(T210)) → U31_ga(T207, T9, T210, qs84_in_a(T213))
U31_ga(T207, T9, T210, qs84_out_a(T213)) → U32_ga(T207, T9, app43_in_ggga(T210, T207, T213, T9))
app43_in_ggga([], T157, T158, .(T157, T158)) → app43_out_ggga([], T157, T158, .(T157, T158))
app43_in_ggga(.(T169, T170), T171, T172, .(T169, T174)) → U13_ggga(T169, T170, T171, T172, T174, app43_in_ggga(T170, T171, T172, T174))
U13_ggga(T169, T170, T171, T172, T174, app43_out_ggga(T170, T171, T172, T174)) → app43_out_ggga(.(T169, T170), T171, T172, .(T169, T174))
U32_ga(T207, T9, app43_out_ggga(T210, T207, T213, T9)) → qs1_out_ga(.(T207, []), T9)
APP43_IN_GGGA(.(T169, T170), T171, T172, .(T169, T174)) → APP43_IN_GGGA(T170, T171, T172, T174)
APP43_IN_GGGA(.(T169, T170), T171, T172) → APP43_IN_GGGA(T170, T171, T172)
From the DPs we obtained the following set of size-change graphs:
APP43_IN_AGAA(.(T169, T170), T171, T172, .(T169, T174)) → APP43_IN_AGAA(T170, T171, T172, T174)
qs1_in_ga([], []) → qs1_out_ga([], [])
qs1_in_ga(.(T22, .(T23, T24)), T9) → U17_ga(T22, T23, T24, T9, less14_in_gg(T22, T23))
less14_in_gg(0, s(T33)) → less14_out_gg(0, s(T33))
less14_in_gg(s(T38), s(T39)) → U1_gg(T38, T39, less14_in_gg(T38, T39))
U1_gg(T38, T39, less14_out_gg(T38, T39)) → less14_out_gg(s(T38), s(T39))
U17_ga(T22, T23, T24, T9, less14_out_gg(T22, T23)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U17_ga(T22, T23, T24, T9, less14_out_gg(T22, T23)) → U18_ga(T22, T23, T24, T9, part24_in_ggaa(T22, T24, X52, X53))
part24_in_ggaa(T62, .(T63, T64), .(T63, X126), X127) → U2_ggaa(T62, T63, T64, X126, X127, less14_in_gg(T62, T63))
U2_ggaa(T62, T63, T64, X126, X127, less14_out_gg(T62, T63)) → part24_out_ggaa(T62, .(T63, T64), .(T63, X126), X127)
U2_ggaa(T62, T63, T64, X126, X127, less14_out_gg(T62, T63)) → U3_ggaa(T62, T63, T64, X126, X127, part24_in_ggaa(T62, T64, X126, X127))
part24_in_ggaa(T84, .(T85, T86), X177, .(T85, X178)) → U4_ggaa(T84, T85, T86, X177, X178, part24_in_ggaa(T84, T86, X177, X178))
part24_in_ggaa(T92, [], [], []) → part24_out_ggaa(T92, [], [], [])
U4_ggaa(T84, T85, T86, X177, X178, part24_out_ggaa(T84, T86, X177, X178)) → part24_out_ggaa(T84, .(T85, T86), X177, .(T85, X178))
U3_ggaa(T62, T63, T64, X126, X127, part24_out_ggaa(T62, T64, X126, X127)) → part24_out_ggaa(T62, .(T63, T64), .(T63, X126), X127)
U18_ga(T22, T23, T24, T9, part24_out_ggaa(T22, T24, X52, X53)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U17_ga(T22, T23, T24, T9, less14_out_gg(T22, T23)) → U19_ga(T22, T23, T24, T9, part24_in_ggaa(T22, T24, T45, T46))
U19_ga(T22, T23, T24, T9, part24_out_ggaa(T22, T24, T45, T46)) → U20_ga(T22, T23, T24, T9, qs1_in_aa(.(T23, T45), X14))
qs1_in_aa([], []) → qs1_out_aa([], [])
qs1_in_aa(.(T22, .(T23, T24)), T9) → U17_aa(T22, T23, T24, T9, less14_in_aa(T22, T23))
less14_in_aa(0, s(T33)) → less14_out_aa(0, s(T33))
less14_in_aa(s(T38), s(T39)) → U1_aa(T38, T39, less14_in_aa(T38, T39))
U1_aa(T38, T39, less14_out_aa(T38, T39)) → less14_out_aa(s(T38), s(T39))
U17_aa(T22, T23, T24, T9, less14_out_aa(T22, T23)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U17_aa(T22, T23, T24, T9, less14_out_aa(T22, T23)) → U18_aa(T22, T23, T24, T9, part24_in_gaaa(T22, T24, X52, X53))
part24_in_gaaa(T62, .(T63, T64), .(T63, X126), X127) → U2_gaaa(T62, T63, T64, X126, X127, less14_in_ga(T62, T63))
less14_in_ga(0, s(T33)) → less14_out_ga(0, s(T33))
less14_in_ga(s(T38), s(T39)) → U1_ga(T38, T39, less14_in_ga(T38, T39))
U1_ga(T38, T39, less14_out_ga(T38, T39)) → less14_out_ga(s(T38), s(T39))
U2_gaaa(T62, T63, T64, X126, X127, less14_out_ga(T62, T63)) → part24_out_gaaa(T62, .(T63, T64), .(T63, X126), X127)
U2_gaaa(T62, T63, T64, X126, X127, less14_out_ga(T62, T63)) → U3_gaaa(T62, T63, T64, X126, X127, part24_in_gaaa(T62, T64, X126, X127))
part24_in_gaaa(T84, .(T85, T86), X177, .(T85, X178)) → U4_gaaa(T84, T85, T86, X177, X178, part24_in_gaaa(T84, T86, X177, X178))
part24_in_gaaa(T92, [], [], []) → part24_out_gaaa(T92, [], [], [])
U4_gaaa(T84, T85, T86, X177, X178, part24_out_gaaa(T84, T86, X177, X178)) → part24_out_gaaa(T84, .(T85, T86), X177, .(T85, X178))
U3_gaaa(T62, T63, T64, X126, X127, part24_out_gaaa(T62, T64, X126, X127)) → part24_out_gaaa(T62, .(T63, T64), .(T63, X126), X127)
U18_aa(T22, T23, T24, T9, part24_out_gaaa(T22, T24, X52, X53)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U17_aa(T22, T23, T24, T9, less14_out_aa(T22, T23)) → U19_aa(T22, T23, T24, T9, part24_in_gaaa(T22, T24, T45, T46))
U19_aa(T22, T23, T24, T9, part24_out_gaaa(T22, T24, T45, T46)) → U20_aa(T22, T23, T24, T9, qs1_in_aa(.(T23, T45), X14))
qs1_in_aa(.(T191, .(T192, T193)), T9) → U23_aa(T191, T192, T193, T9, part24_in_aaaa(T191, T193, X336, X337))
part24_in_aaaa(T62, .(T63, T64), .(T63, X126), X127) → U2_aaaa(T62, T63, T64, X126, X127, less14_in_aa(T62, T63))
U2_aaaa(T62, T63, T64, X126, X127, less14_out_aa(T62, T63)) → part24_out_aaaa(T62, .(T63, T64), .(T63, X126), X127)
U2_aaaa(T62, T63, T64, X126, X127, less14_out_aa(T62, T63)) → U3_aaaa(T62, T63, T64, X126, X127, part24_in_gaaa(T62, T64, X126, X127))
U3_aaaa(T62, T63, T64, X126, X127, part24_out_gaaa(T62, T64, X126, X127)) → part24_out_aaaa(T62, .(T63, T64), .(T63, X126), X127)
part24_in_aaaa(T84, .(T85, T86), X177, .(T85, X178)) → U4_aaaa(T84, T85, T86, X177, X178, part24_in_aaaa(T84, T86, X177, X178))
part24_in_aaaa(T92, [], [], []) → part24_out_aaaa(T92, [], [], [])
U4_aaaa(T84, T85, T86, X177, X178, part24_out_aaaa(T84, T86, X177, X178)) → part24_out_aaaa(T84, .(T85, T86), X177, .(T85, X178))
U23_aa(T191, T192, T193, T9, part24_out_aaaa(T191, T193, X336, X337)) → qs1_out_aa(.(T191, .(T192, T193)), T9)
qs1_in_aa(.(T191, .(T192, T193)), T9) → U24_aa(T191, T192, T193, T9, part24_in_aaaa(T191, T193, T197, T198))
U24_aa(T191, T192, T193, T9, part24_out_aaaa(T191, T193, T197, T198)) → U25_aa(T191, T192, T193, T9, qs42_in_aa(T197, X14))
qs42_in_aa([], []) → qs42_out_aa([], [])
qs42_in_aa(.(T103, T104), X230) → U5_aa(T103, T104, X230, part24_in_aaaa(T103, T104, X226, X227))
U5_aa(T103, T104, X230, part24_out_aaaa(T103, T104, X226, X227)) → qs42_out_aa(.(T103, T104), X230)
qs42_in_aa(.(T103, T104), X230) → U6_aa(T103, T104, X230, part24_in_aaaa(T103, T104, T108, T109))
U6_aa(T103, T104, X230, part24_out_aaaa(T103, T104, T108, T109)) → U7_aa(T103, T104, X230, qs42_in_aa(T108, X228))
U7_aa(T103, T104, X230, qs42_out_aa(T108, X228)) → qs42_out_aa(.(T103, T104), X230)
U6_aa(T103, T104, X230, part24_out_aaaa(T103, T104, T108, T109)) → U8_aa(T103, T104, X230, T109, qs42_in_aa(T108, T113))
U8_aa(T103, T104, X230, T109, qs42_out_aa(T108, T113)) → U9_aa(T103, T104, X230, qs42_in_aa(T109, X229))
U9_aa(T103, T104, X230, qs42_out_aa(T109, X229)) → qs42_out_aa(.(T103, T104), X230)
U8_aa(T103, T104, X230, T109, qs42_out_aa(T108, T113)) → U10_aa(T103, T104, X230, T113, qs42_in_aa(T109, T114))
U10_aa(T103, T104, X230, T113, qs42_out_aa(T109, T114)) → U11_aa(T103, T104, X230, app57_in_aaaa(T113, T103, T114, X230))
app57_in_aaaa([], T127, T128, .(T127, T128)) → app57_out_aaaa([], T127, T128, .(T127, T128))
app57_in_aaaa(.(T137, T138), T139, T140, .(T137, X270)) → U12_aaaa(T137, T138, T139, T140, X270, app57_in_aaaa(T138, T139, T140, X270))
U12_aaaa(T137, T138, T139, T140, X270, app57_out_aaaa(T138, T139, T140, X270)) → app57_out_aaaa(.(T137, T138), T139, T140, .(T137, X270))
U11_aa(T103, T104, X230, app57_out_aaaa(T113, T103, T114, X230)) → qs42_out_aa(.(T103, T104), X230)
U25_aa(T191, T192, T193, T9, qs42_out_aa(T197, X14)) → qs1_out_aa(.(T191, .(T192, T193)), T9)
U24_aa(T191, T192, T193, T9, part24_out_aaaa(T191, T193, T197, T198)) → U26_aa(T191, T192, T193, T9, T198, qs42_in_aa(T197, T202))
U26_aa(T191, T192, T193, T9, T198, qs42_out_aa(T197, T202)) → U27_aa(T191, T192, T193, T9, p41_in_aaaaa(.(T192, T198), X15, T202, T191, T9))
p41_in_aaaaa(T46, X15, T95, T22, T9) → U14_aaaaa(T46, X15, T95, T22, T9, qs42_in_aa(T46, X15))
U14_aaaaa(T46, X15, T95, T22, T9, qs42_out_aa(T46, X15)) → p41_out_aaaaa(T46, X15, T95, T22, T9)
p41_in_aaaaa(T46, T98, T95, T22, T9) → U15_aaaaa(T46, T98, T95, T22, T9, qs42_in_aa(T46, T98))
U15_aaaaa(T46, T98, T95, T22, T9, qs42_out_aa(T46, T98)) → U16_aaaaa(T46, T98, T95, T22, T9, app43_in_aaaa(T95, T22, T98, T9))
app43_in_aaaa([], T157, T158, .(T157, T158)) → app43_out_aaaa([], T157, T158, .(T157, T158))
app43_in_aaaa(.(T169, T170), T171, T172, .(T169, T174)) → U13_aaaa(T169, T170, T171, T172, T174, app43_in_aaaa(T170, T171, T172, T174))
U13_aaaa(T169, T170, T171, T172, T174, app43_out_aaaa(T170, T171, T172, T174)) → app43_out_aaaa(.(T169, T170), T171, T172, .(T169, T174))
U16_aaaaa(T46, T98, T95, T22, T9, app43_out_aaaa(T95, T22, T98, T9)) → p41_out_aaaaa(T46, T98, T95, T22, T9)
U27_aa(T191, T192, T193, T9, p41_out_aaaaa(.(T192, T198), X15, T202, T191, T9)) → qs1_out_aa(.(T191, .(T192, T193)), T9)
qs1_in_aa(.(T207, []), T9) → U28_aa(T207, T9, qs84_in_a(X14))
qs84_in_a([]) → qs84_out_a([])
U28_aa(T207, T9, qs84_out_a(X14)) → qs1_out_aa(.(T207, []), T9)
qs1_in_aa(.(T207, []), T9) → U29_aa(T207, T9, qs84_in_a(T210))
U29_aa(T207, T9, qs84_out_a(T210)) → U30_aa(T207, T9, qs84_in_a(X15))
U30_aa(T207, T9, qs84_out_a(X15)) → qs1_out_aa(.(T207, []), T9)
U29_aa(T207, T9, qs84_out_a(T210)) → U31_aa(T207, T9, T210, qs84_in_a(T213))
U31_aa(T207, T9, T210, qs84_out_a(T213)) → U32_aa(T207, T9, app43_in_gaga(T210, T207, T213, T9))
app43_in_gaga([], T157, T158, .(T157, T158)) → app43_out_gaga([], T157, T158, .(T157, T158))
app43_in_gaga(.(T169, T170), T171, T172, .(T169, T174)) → U13_gaga(T169, T170, T171, T172, T174, app43_in_gaga(T170, T171, T172, T174))
U13_gaga(T169, T170, T171, T172, T174, app43_out_gaga(T170, T171, T172, T174)) → app43_out_gaga(.(T169, T170), T171, T172, .(T169, T174))
U32_aa(T207, T9, app43_out_gaga(T210, T207, T213, T9)) → qs1_out_aa(.(T207, []), T9)
U20_aa(T22, T23, T24, T9, qs1_out_aa(.(T23, T45), X14)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U19_aa(T22, T23, T24, T9, part24_out_gaaa(T22, T24, T45, T46)) → U21_aa(T22, T23, T24, T9, T46, qs1_in_aa(.(T23, T45), T95))
U21_aa(T22, T23, T24, T9, T46, qs1_out_aa(.(T23, T45), T95)) → U22_aa(T22, T23, T24, T9, p41_in_aaaga(T46, X15, T95, T22, T9))
p41_in_aaaga(T46, X15, T95, T22, T9) → U14_aaaga(T46, X15, T95, T22, T9, qs42_in_aa(T46, X15))
U14_aaaga(T46, X15, T95, T22, T9, qs42_out_aa(T46, X15)) → p41_out_aaaga(T46, X15, T95, T22, T9)
p41_in_aaaga(T46, T98, T95, T22, T9) → U15_aaaga(T46, T98, T95, T22, T9, qs42_in_aa(T46, T98))
U15_aaaga(T46, T98, T95, T22, T9, qs42_out_aa(T46, T98)) → U16_aaaga(T46, T98, T95, T22, T9, app43_in_agaa(T95, T22, T98, T9))
app43_in_agaa([], T157, T158, .(T157, T158)) → app43_out_agaa([], T157, T158, .(T157, T158))
app43_in_agaa(.(T169, T170), T171, T172, .(T169, T174)) → U13_agaa(T169, T170, T171, T172, T174, app43_in_agaa(T170, T171, T172, T174))
U13_agaa(T169, T170, T171, T172, T174, app43_out_agaa(T170, T171, T172, T174)) → app43_out_agaa(.(T169, T170), T171, T172, .(T169, T174))
U16_aaaga(T46, T98, T95, T22, T9, app43_out_agaa(T95, T22, T98, T9)) → p41_out_aaaga(T46, T98, T95, T22, T9)
U22_aa(T22, T23, T24, T9, p41_out_aaaga(T46, X15, T95, T22, T9)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U20_ga(T22, T23, T24, T9, qs1_out_aa(.(T23, T45), X14)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U19_ga(T22, T23, T24, T9, part24_out_ggaa(T22, T24, T45, T46)) → U21_ga(T22, T23, T24, T9, T46, qs1_in_aa(.(T23, T45), T95))
U21_ga(T22, T23, T24, T9, T46, qs1_out_aa(.(T23, T45), T95)) → U22_ga(T22, T23, T24, T9, p41_in_aaaga(T46, X15, T95, T22, T9))
U22_ga(T22, T23, T24, T9, p41_out_aaaga(T46, X15, T95, T22, T9)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
qs1_in_ga(.(T191, .(T192, T193)), T9) → U23_ga(T191, T192, T193, T9, part24_in_ggaa(T191, T193, X336, X337))
U23_ga(T191, T192, T193, T9, part24_out_ggaa(T191, T193, X336, X337)) → qs1_out_ga(.(T191, .(T192, T193)), T9)
qs1_in_ga(.(T191, .(T192, T193)), T9) → U24_ga(T191, T192, T193, T9, part24_in_ggaa(T191, T193, T197, T198))
U24_ga(T191, T192, T193, T9, part24_out_ggaa(T191, T193, T197, T198)) → U25_ga(T191, T192, T193, T9, qs42_in_aa(T197, X14))
U25_ga(T191, T192, T193, T9, qs42_out_aa(T197, X14)) → qs1_out_ga(.(T191, .(T192, T193)), T9)
U24_ga(T191, T192, T193, T9, part24_out_ggaa(T191, T193, T197, T198)) → U26_ga(T191, T192, T193, T9, T198, qs42_in_aa(T197, T202))
U26_ga(T191, T192, T193, T9, T198, qs42_out_aa(T197, T202)) → U27_ga(T191, T192, T193, T9, p41_in_aaaga(.(T192, T198), X15, T202, T191, T9))
U27_ga(T191, T192, T193, T9, p41_out_aaaga(.(T192, T198), X15, T202, T191, T9)) → qs1_out_ga(.(T191, .(T192, T193)), T9)
qs1_in_ga(.(T207, []), T9) → U28_ga(T207, T9, qs84_in_a(X14))
U28_ga(T207, T9, qs84_out_a(X14)) → qs1_out_ga(.(T207, []), T9)
qs1_in_ga(.(T207, []), T9) → U29_ga(T207, T9, qs84_in_a(T210))
U29_ga(T207, T9, qs84_out_a(T210)) → U30_ga(T207, T9, qs84_in_a(X15))
U30_ga(T207, T9, qs84_out_a(X15)) → qs1_out_ga(.(T207, []), T9)
U29_ga(T207, T9, qs84_out_a(T210)) → U31_ga(T207, T9, T210, qs84_in_a(T213))
U31_ga(T207, T9, T210, qs84_out_a(T213)) → U32_ga(T207, T9, app43_in_ggga(T210, T207, T213, T9))
app43_in_ggga([], T157, T158, .(T157, T158)) → app43_out_ggga([], T157, T158, .(T157, T158))
app43_in_ggga(.(T169, T170), T171, T172, .(T169, T174)) → U13_ggga(T169, T170, T171, T172, T174, app43_in_ggga(T170, T171, T172, T174))
U13_ggga(T169, T170, T171, T172, T174, app43_out_ggga(T170, T171, T172, T174)) → app43_out_ggga(.(T169, T170), T171, T172, .(T169, T174))
U32_ga(T207, T9, app43_out_ggga(T210, T207, T213, T9)) → qs1_out_ga(.(T207, []), T9)
APP43_IN_AGAA(.(T169, T170), T171, T172, .(T169, T174)) → APP43_IN_AGAA(T170, T171, T172, T174)
APP43_IN_AGAA(T171) → APP43_IN_AGAA(T171)
APP43_IN_GAGA(.(T169, T170), T171, T172, .(T169, T174)) → APP43_IN_GAGA(T170, T171, T172, T174)
qs1_in_ga([], []) → qs1_out_ga([], [])
qs1_in_ga(.(T22, .(T23, T24)), T9) → U17_ga(T22, T23, T24, T9, less14_in_gg(T22, T23))
less14_in_gg(0, s(T33)) → less14_out_gg(0, s(T33))
less14_in_gg(s(T38), s(T39)) → U1_gg(T38, T39, less14_in_gg(T38, T39))
U1_gg(T38, T39, less14_out_gg(T38, T39)) → less14_out_gg(s(T38), s(T39))
U17_ga(T22, T23, T24, T9, less14_out_gg(T22, T23)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U17_ga(T22, T23, T24, T9, less14_out_gg(T22, T23)) → U18_ga(T22, T23, T24, T9, part24_in_ggaa(T22, T24, X52, X53))
part24_in_ggaa(T62, .(T63, T64), .(T63, X126), X127) → U2_ggaa(T62, T63, T64, X126, X127, less14_in_gg(T62, T63))
U2_ggaa(T62, T63, T64, X126, X127, less14_out_gg(T62, T63)) → part24_out_ggaa(T62, .(T63, T64), .(T63, X126), X127)
U2_ggaa(T62, T63, T64, X126, X127, less14_out_gg(T62, T63)) → U3_ggaa(T62, T63, T64, X126, X127, part24_in_ggaa(T62, T64, X126, X127))
part24_in_ggaa(T84, .(T85, T86), X177, .(T85, X178)) → U4_ggaa(T84, T85, T86, X177, X178, part24_in_ggaa(T84, T86, X177, X178))
part24_in_ggaa(T92, [], [], []) → part24_out_ggaa(T92, [], [], [])
U4_ggaa(T84, T85, T86, X177, X178, part24_out_ggaa(T84, T86, X177, X178)) → part24_out_ggaa(T84, .(T85, T86), X177, .(T85, X178))
U3_ggaa(T62, T63, T64, X126, X127, part24_out_ggaa(T62, T64, X126, X127)) → part24_out_ggaa(T62, .(T63, T64), .(T63, X126), X127)
U18_ga(T22, T23, T24, T9, part24_out_ggaa(T22, T24, X52, X53)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U17_ga(T22, T23, T24, T9, less14_out_gg(T22, T23)) → U19_ga(T22, T23, T24, T9, part24_in_ggaa(T22, T24, T45, T46))
U19_ga(T22, T23, T24, T9, part24_out_ggaa(T22, T24, T45, T46)) → U20_ga(T22, T23, T24, T9, qs1_in_aa(.(T23, T45), X14))
qs1_in_aa([], []) → qs1_out_aa([], [])
qs1_in_aa(.(T22, .(T23, T24)), T9) → U17_aa(T22, T23, T24, T9, less14_in_aa(T22, T23))
less14_in_aa(0, s(T33)) → less14_out_aa(0, s(T33))
less14_in_aa(s(T38), s(T39)) → U1_aa(T38, T39, less14_in_aa(T38, T39))
U1_aa(T38, T39, less14_out_aa(T38, T39)) → less14_out_aa(s(T38), s(T39))
U17_aa(T22, T23, T24, T9, less14_out_aa(T22, T23)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U17_aa(T22, T23, T24, T9, less14_out_aa(T22, T23)) → U18_aa(T22, T23, T24, T9, part24_in_gaaa(T22, T24, X52, X53))
part24_in_gaaa(T62, .(T63, T64), .(T63, X126), X127) → U2_gaaa(T62, T63, T64, X126, X127, less14_in_ga(T62, T63))
less14_in_ga(0, s(T33)) → less14_out_ga(0, s(T33))
less14_in_ga(s(T38), s(T39)) → U1_ga(T38, T39, less14_in_ga(T38, T39))
U1_ga(T38, T39, less14_out_ga(T38, T39)) → less14_out_ga(s(T38), s(T39))
U2_gaaa(T62, T63, T64, X126, X127, less14_out_ga(T62, T63)) → part24_out_gaaa(T62, .(T63, T64), .(T63, X126), X127)
U2_gaaa(T62, T63, T64, X126, X127, less14_out_ga(T62, T63)) → U3_gaaa(T62, T63, T64, X126, X127, part24_in_gaaa(T62, T64, X126, X127))
part24_in_gaaa(T84, .(T85, T86), X177, .(T85, X178)) → U4_gaaa(T84, T85, T86, X177, X178, part24_in_gaaa(T84, T86, X177, X178))
part24_in_gaaa(T92, [], [], []) → part24_out_gaaa(T92, [], [], [])
U4_gaaa(T84, T85, T86, X177, X178, part24_out_gaaa(T84, T86, X177, X178)) → part24_out_gaaa(T84, .(T85, T86), X177, .(T85, X178))
U3_gaaa(T62, T63, T64, X126, X127, part24_out_gaaa(T62, T64, X126, X127)) → part24_out_gaaa(T62, .(T63, T64), .(T63, X126), X127)
U18_aa(T22, T23, T24, T9, part24_out_gaaa(T22, T24, X52, X53)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U17_aa(T22, T23, T24, T9, less14_out_aa(T22, T23)) → U19_aa(T22, T23, T24, T9, part24_in_gaaa(T22, T24, T45, T46))
U19_aa(T22, T23, T24, T9, part24_out_gaaa(T22, T24, T45, T46)) → U20_aa(T22, T23, T24, T9, qs1_in_aa(.(T23, T45), X14))
qs1_in_aa(.(T191, .(T192, T193)), T9) → U23_aa(T191, T192, T193, T9, part24_in_aaaa(T191, T193, X336, X337))
part24_in_aaaa(T62, .(T63, T64), .(T63, X126), X127) → U2_aaaa(T62, T63, T64, X126, X127, less14_in_aa(T62, T63))
U2_aaaa(T62, T63, T64, X126, X127, less14_out_aa(T62, T63)) → part24_out_aaaa(T62, .(T63, T64), .(T63, X126), X127)
U2_aaaa(T62, T63, T64, X126, X127, less14_out_aa(T62, T63)) → U3_aaaa(T62, T63, T64, X126, X127, part24_in_gaaa(T62, T64, X126, X127))
U3_aaaa(T62, T63, T64, X126, X127, part24_out_gaaa(T62, T64, X126, X127)) → part24_out_aaaa(T62, .(T63, T64), .(T63, X126), X127)
part24_in_aaaa(T84, .(T85, T86), X177, .(T85, X178)) → U4_aaaa(T84, T85, T86, X177, X178, part24_in_aaaa(T84, T86, X177, X178))
part24_in_aaaa(T92, [], [], []) → part24_out_aaaa(T92, [], [], [])
U4_aaaa(T84, T85, T86, X177, X178, part24_out_aaaa(T84, T86, X177, X178)) → part24_out_aaaa(T84, .(T85, T86), X177, .(T85, X178))
U23_aa(T191, T192, T193, T9, part24_out_aaaa(T191, T193, X336, X337)) → qs1_out_aa(.(T191, .(T192, T193)), T9)
qs1_in_aa(.(T191, .(T192, T193)), T9) → U24_aa(T191, T192, T193, T9, part24_in_aaaa(T191, T193, T197, T198))
U24_aa(T191, T192, T193, T9, part24_out_aaaa(T191, T193, T197, T198)) → U25_aa(T191, T192, T193, T9, qs42_in_aa(T197, X14))
qs42_in_aa([], []) → qs42_out_aa([], [])
qs42_in_aa(.(T103, T104), X230) → U5_aa(T103, T104, X230, part24_in_aaaa(T103, T104, X226, X227))
U5_aa(T103, T104, X230, part24_out_aaaa(T103, T104, X226, X227)) → qs42_out_aa(.(T103, T104), X230)
qs42_in_aa(.(T103, T104), X230) → U6_aa(T103, T104, X230, part24_in_aaaa(T103, T104, T108, T109))
U6_aa(T103, T104, X230, part24_out_aaaa(T103, T104, T108, T109)) → U7_aa(T103, T104, X230, qs42_in_aa(T108, X228))
U7_aa(T103, T104, X230, qs42_out_aa(T108, X228)) → qs42_out_aa(.(T103, T104), X230)
U6_aa(T103, T104, X230, part24_out_aaaa(T103, T104, T108, T109)) → U8_aa(T103, T104, X230, T109, qs42_in_aa(T108, T113))
U8_aa(T103, T104, X230, T109, qs42_out_aa(T108, T113)) → U9_aa(T103, T104, X230, qs42_in_aa(T109, X229))
U9_aa(T103, T104, X230, qs42_out_aa(T109, X229)) → qs42_out_aa(.(T103, T104), X230)
U8_aa(T103, T104, X230, T109, qs42_out_aa(T108, T113)) → U10_aa(T103, T104, X230, T113, qs42_in_aa(T109, T114))
U10_aa(T103, T104, X230, T113, qs42_out_aa(T109, T114)) → U11_aa(T103, T104, X230, app57_in_aaaa(T113, T103, T114, X230))
app57_in_aaaa([], T127, T128, .(T127, T128)) → app57_out_aaaa([], T127, T128, .(T127, T128))
app57_in_aaaa(.(T137, T138), T139, T140, .(T137, X270)) → U12_aaaa(T137, T138, T139, T140, X270, app57_in_aaaa(T138, T139, T140, X270))
U12_aaaa(T137, T138, T139, T140, X270, app57_out_aaaa(T138, T139, T140, X270)) → app57_out_aaaa(.(T137, T138), T139, T140, .(T137, X270))
U11_aa(T103, T104, X230, app57_out_aaaa(T113, T103, T114, X230)) → qs42_out_aa(.(T103, T104), X230)
U25_aa(T191, T192, T193, T9, qs42_out_aa(T197, X14)) → qs1_out_aa(.(T191, .(T192, T193)), T9)
U24_aa(T191, T192, T193, T9, part24_out_aaaa(T191, T193, T197, T198)) → U26_aa(T191, T192, T193, T9, T198, qs42_in_aa(T197, T202))
U26_aa(T191, T192, T193, T9, T198, qs42_out_aa(T197, T202)) → U27_aa(T191, T192, T193, T9, p41_in_aaaaa(.(T192, T198), X15, T202, T191, T9))
p41_in_aaaaa(T46, X15, T95, T22, T9) → U14_aaaaa(T46, X15, T95, T22, T9, qs42_in_aa(T46, X15))
U14_aaaaa(T46, X15, T95, T22, T9, qs42_out_aa(T46, X15)) → p41_out_aaaaa(T46, X15, T95, T22, T9)
p41_in_aaaaa(T46, T98, T95, T22, T9) → U15_aaaaa(T46, T98, T95, T22, T9, qs42_in_aa(T46, T98))
U15_aaaaa(T46, T98, T95, T22, T9, qs42_out_aa(T46, T98)) → U16_aaaaa(T46, T98, T95, T22, T9, app43_in_aaaa(T95, T22, T98, T9))
app43_in_aaaa([], T157, T158, .(T157, T158)) → app43_out_aaaa([], T157, T158, .(T157, T158))
app43_in_aaaa(.(T169, T170), T171, T172, .(T169, T174)) → U13_aaaa(T169, T170, T171, T172, T174, app43_in_aaaa(T170, T171, T172, T174))
U13_aaaa(T169, T170, T171, T172, T174, app43_out_aaaa(T170, T171, T172, T174)) → app43_out_aaaa(.(T169, T170), T171, T172, .(T169, T174))
U16_aaaaa(T46, T98, T95, T22, T9, app43_out_aaaa(T95, T22, T98, T9)) → p41_out_aaaaa(T46, T98, T95, T22, T9)
U27_aa(T191, T192, T193, T9, p41_out_aaaaa(.(T192, T198), X15, T202, T191, T9)) → qs1_out_aa(.(T191, .(T192, T193)), T9)
qs1_in_aa(.(T207, []), T9) → U28_aa(T207, T9, qs84_in_a(X14))
qs84_in_a([]) → qs84_out_a([])
U28_aa(T207, T9, qs84_out_a(X14)) → qs1_out_aa(.(T207, []), T9)
qs1_in_aa(.(T207, []), T9) → U29_aa(T207, T9, qs84_in_a(T210))
U29_aa(T207, T9, qs84_out_a(T210)) → U30_aa(T207, T9, qs84_in_a(X15))
U30_aa(T207, T9, qs84_out_a(X15)) → qs1_out_aa(.(T207, []), T9)
U29_aa(T207, T9, qs84_out_a(T210)) → U31_aa(T207, T9, T210, qs84_in_a(T213))
U31_aa(T207, T9, T210, qs84_out_a(T213)) → U32_aa(T207, T9, app43_in_gaga(T210, T207, T213, T9))
app43_in_gaga([], T157, T158, .(T157, T158)) → app43_out_gaga([], T157, T158, .(T157, T158))
app43_in_gaga(.(T169, T170), T171, T172, .(T169, T174)) → U13_gaga(T169, T170, T171, T172, T174, app43_in_gaga(T170, T171, T172, T174))
U13_gaga(T169, T170, T171, T172, T174, app43_out_gaga(T170, T171, T172, T174)) → app43_out_gaga(.(T169, T170), T171, T172, .(T169, T174))
U32_aa(T207, T9, app43_out_gaga(T210, T207, T213, T9)) → qs1_out_aa(.(T207, []), T9)
U20_aa(T22, T23, T24, T9, qs1_out_aa(.(T23, T45), X14)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U19_aa(T22, T23, T24, T9, part24_out_gaaa(T22, T24, T45, T46)) → U21_aa(T22, T23, T24, T9, T46, qs1_in_aa(.(T23, T45), T95))
U21_aa(T22, T23, T24, T9, T46, qs1_out_aa(.(T23, T45), T95)) → U22_aa(T22, T23, T24, T9, p41_in_aaaga(T46, X15, T95, T22, T9))
p41_in_aaaga(T46, X15, T95, T22, T9) → U14_aaaga(T46, X15, T95, T22, T9, qs42_in_aa(T46, X15))
U14_aaaga(T46, X15, T95, T22, T9, qs42_out_aa(T46, X15)) → p41_out_aaaga(T46, X15, T95, T22, T9)
p41_in_aaaga(T46, T98, T95, T22, T9) → U15_aaaga(T46, T98, T95, T22, T9, qs42_in_aa(T46, T98))
U15_aaaga(T46, T98, T95, T22, T9, qs42_out_aa(T46, T98)) → U16_aaaga(T46, T98, T95, T22, T9, app43_in_agaa(T95, T22, T98, T9))
app43_in_agaa([], T157, T158, .(T157, T158)) → app43_out_agaa([], T157, T158, .(T157, T158))
app43_in_agaa(.(T169, T170), T171, T172, .(T169, T174)) → U13_agaa(T169, T170, T171, T172, T174, app43_in_agaa(T170, T171, T172, T174))
U13_agaa(T169, T170, T171, T172, T174, app43_out_agaa(T170, T171, T172, T174)) → app43_out_agaa(.(T169, T170), T171, T172, .(T169, T174))
U16_aaaga(T46, T98, T95, T22, T9, app43_out_agaa(T95, T22, T98, T9)) → p41_out_aaaga(T46, T98, T95, T22, T9)
U22_aa(T22, T23, T24, T9, p41_out_aaaga(T46, X15, T95, T22, T9)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U20_ga(T22, T23, T24, T9, qs1_out_aa(.(T23, T45), X14)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U19_ga(T22, T23, T24, T9, part24_out_ggaa(T22, T24, T45, T46)) → U21_ga(T22, T23, T24, T9, T46, qs1_in_aa(.(T23, T45), T95))
U21_ga(T22, T23, T24, T9, T46, qs1_out_aa(.(T23, T45), T95)) → U22_ga(T22, T23, T24, T9, p41_in_aaaga(T46, X15, T95, T22, T9))
U22_ga(T22, T23, T24, T9, p41_out_aaaga(T46, X15, T95, T22, T9)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
qs1_in_ga(.(T191, .(T192, T193)), T9) → U23_ga(T191, T192, T193, T9, part24_in_ggaa(T191, T193, X336, X337))
U23_ga(T191, T192, T193, T9, part24_out_ggaa(T191, T193, X336, X337)) → qs1_out_ga(.(T191, .(T192, T193)), T9)
qs1_in_ga(.(T191, .(T192, T193)), T9) → U24_ga(T191, T192, T193, T9, part24_in_ggaa(T191, T193, T197, T198))
U24_ga(T191, T192, T193, T9, part24_out_ggaa(T191, T193, T197, T198)) → U25_ga(T191, T192, T193, T9, qs42_in_aa(T197, X14))
U25_ga(T191, T192, T193, T9, qs42_out_aa(T197, X14)) → qs1_out_ga(.(T191, .(T192, T193)), T9)
U24_ga(T191, T192, T193, T9, part24_out_ggaa(T191, T193, T197, T198)) → U26_ga(T191, T192, T193, T9, T198, qs42_in_aa(T197, T202))
U26_ga(T191, T192, T193, T9, T198, qs42_out_aa(T197, T202)) → U27_ga(T191, T192, T193, T9, p41_in_aaaga(.(T192, T198), X15, T202, T191, T9))
U27_ga(T191, T192, T193, T9, p41_out_aaaga(.(T192, T198), X15, T202, T191, T9)) → qs1_out_ga(.(T191, .(T192, T193)), T9)
qs1_in_ga(.(T207, []), T9) → U28_ga(T207, T9, qs84_in_a(X14))
U28_ga(T207, T9, qs84_out_a(X14)) → qs1_out_ga(.(T207, []), T9)
qs1_in_ga(.(T207, []), T9) → U29_ga(T207, T9, qs84_in_a(T210))
U29_ga(T207, T9, qs84_out_a(T210)) → U30_ga(T207, T9, qs84_in_a(X15))
U30_ga(T207, T9, qs84_out_a(X15)) → qs1_out_ga(.(T207, []), T9)
U29_ga(T207, T9, qs84_out_a(T210)) → U31_ga(T207, T9, T210, qs84_in_a(T213))
U31_ga(T207, T9, T210, qs84_out_a(T213)) → U32_ga(T207, T9, app43_in_ggga(T210, T207, T213, T9))
app43_in_ggga([], T157, T158, .(T157, T158)) → app43_out_ggga([], T157, T158, .(T157, T158))
app43_in_ggga(.(T169, T170), T171, T172, .(T169, T174)) → U13_ggga(T169, T170, T171, T172, T174, app43_in_ggga(T170, T171, T172, T174))
U13_ggga(T169, T170, T171, T172, T174, app43_out_ggga(T170, T171, T172, T174)) → app43_out_ggga(.(T169, T170), T171, T172, .(T169, T174))
U32_ga(T207, T9, app43_out_ggga(T210, T207, T213, T9)) → qs1_out_ga(.(T207, []), T9)
APP43_IN_GAGA(.(T169, T170), T171, T172, .(T169, T174)) → APP43_IN_GAGA(T170, T171, T172, T174)
APP43_IN_GAGA(.(T169, T170), T172) → APP43_IN_GAGA(T170, T172)
From the DPs we obtained the following set of size-change graphs:
APP43_IN_AAAA(.(T169, T170), T171, T172, .(T169, T174)) → APP43_IN_AAAA(T170, T171, T172, T174)
qs1_in_ga([], []) → qs1_out_ga([], [])
qs1_in_ga(.(T22, .(T23, T24)), T9) → U17_ga(T22, T23, T24, T9, less14_in_gg(T22, T23))
less14_in_gg(0, s(T33)) → less14_out_gg(0, s(T33))
less14_in_gg(s(T38), s(T39)) → U1_gg(T38, T39, less14_in_gg(T38, T39))
U1_gg(T38, T39, less14_out_gg(T38, T39)) → less14_out_gg(s(T38), s(T39))
U17_ga(T22, T23, T24, T9, less14_out_gg(T22, T23)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U17_ga(T22, T23, T24, T9, less14_out_gg(T22, T23)) → U18_ga(T22, T23, T24, T9, part24_in_ggaa(T22, T24, X52, X53))
part24_in_ggaa(T62, .(T63, T64), .(T63, X126), X127) → U2_ggaa(T62, T63, T64, X126, X127, less14_in_gg(T62, T63))
U2_ggaa(T62, T63, T64, X126, X127, less14_out_gg(T62, T63)) → part24_out_ggaa(T62, .(T63, T64), .(T63, X126), X127)
U2_ggaa(T62, T63, T64, X126, X127, less14_out_gg(T62, T63)) → U3_ggaa(T62, T63, T64, X126, X127, part24_in_ggaa(T62, T64, X126, X127))
part24_in_ggaa(T84, .(T85, T86), X177, .(T85, X178)) → U4_ggaa(T84, T85, T86, X177, X178, part24_in_ggaa(T84, T86, X177, X178))
part24_in_ggaa(T92, [], [], []) → part24_out_ggaa(T92, [], [], [])
U4_ggaa(T84, T85, T86, X177, X178, part24_out_ggaa(T84, T86, X177, X178)) → part24_out_ggaa(T84, .(T85, T86), X177, .(T85, X178))
U3_ggaa(T62, T63, T64, X126, X127, part24_out_ggaa(T62, T64, X126, X127)) → part24_out_ggaa(T62, .(T63, T64), .(T63, X126), X127)
U18_ga(T22, T23, T24, T9, part24_out_ggaa(T22, T24, X52, X53)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U17_ga(T22, T23, T24, T9, less14_out_gg(T22, T23)) → U19_ga(T22, T23, T24, T9, part24_in_ggaa(T22, T24, T45, T46))
U19_ga(T22, T23, T24, T9, part24_out_ggaa(T22, T24, T45, T46)) → U20_ga(T22, T23, T24, T9, qs1_in_aa(.(T23, T45), X14))
qs1_in_aa([], []) → qs1_out_aa([], [])
qs1_in_aa(.(T22, .(T23, T24)), T9) → U17_aa(T22, T23, T24, T9, less14_in_aa(T22, T23))
less14_in_aa(0, s(T33)) → less14_out_aa(0, s(T33))
less14_in_aa(s(T38), s(T39)) → U1_aa(T38, T39, less14_in_aa(T38, T39))
U1_aa(T38, T39, less14_out_aa(T38, T39)) → less14_out_aa(s(T38), s(T39))
U17_aa(T22, T23, T24, T9, less14_out_aa(T22, T23)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U17_aa(T22, T23, T24, T9, less14_out_aa(T22, T23)) → U18_aa(T22, T23, T24, T9, part24_in_gaaa(T22, T24, X52, X53))
part24_in_gaaa(T62, .(T63, T64), .(T63, X126), X127) → U2_gaaa(T62, T63, T64, X126, X127, less14_in_ga(T62, T63))
less14_in_ga(0, s(T33)) → less14_out_ga(0, s(T33))
less14_in_ga(s(T38), s(T39)) → U1_ga(T38, T39, less14_in_ga(T38, T39))
U1_ga(T38, T39, less14_out_ga(T38, T39)) → less14_out_ga(s(T38), s(T39))
U2_gaaa(T62, T63, T64, X126, X127, less14_out_ga(T62, T63)) → part24_out_gaaa(T62, .(T63, T64), .(T63, X126), X127)
U2_gaaa(T62, T63, T64, X126, X127, less14_out_ga(T62, T63)) → U3_gaaa(T62, T63, T64, X126, X127, part24_in_gaaa(T62, T64, X126, X127))
part24_in_gaaa(T84, .(T85, T86), X177, .(T85, X178)) → U4_gaaa(T84, T85, T86, X177, X178, part24_in_gaaa(T84, T86, X177, X178))
part24_in_gaaa(T92, [], [], []) → part24_out_gaaa(T92, [], [], [])
U4_gaaa(T84, T85, T86, X177, X178, part24_out_gaaa(T84, T86, X177, X178)) → part24_out_gaaa(T84, .(T85, T86), X177, .(T85, X178))
U3_gaaa(T62, T63, T64, X126, X127, part24_out_gaaa(T62, T64, X126, X127)) → part24_out_gaaa(T62, .(T63, T64), .(T63, X126), X127)
U18_aa(T22, T23, T24, T9, part24_out_gaaa(T22, T24, X52, X53)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U17_aa(T22, T23, T24, T9, less14_out_aa(T22, T23)) → U19_aa(T22, T23, T24, T9, part24_in_gaaa(T22, T24, T45, T46))
U19_aa(T22, T23, T24, T9, part24_out_gaaa(T22, T24, T45, T46)) → U20_aa(T22, T23, T24, T9, qs1_in_aa(.(T23, T45), X14))
qs1_in_aa(.(T191, .(T192, T193)), T9) → U23_aa(T191, T192, T193, T9, part24_in_aaaa(T191, T193, X336, X337))
part24_in_aaaa(T62, .(T63, T64), .(T63, X126), X127) → U2_aaaa(T62, T63, T64, X126, X127, less14_in_aa(T62, T63))
U2_aaaa(T62, T63, T64, X126, X127, less14_out_aa(T62, T63)) → part24_out_aaaa(T62, .(T63, T64), .(T63, X126), X127)
U2_aaaa(T62, T63, T64, X126, X127, less14_out_aa(T62, T63)) → U3_aaaa(T62, T63, T64, X126, X127, part24_in_gaaa(T62, T64, X126, X127))
U3_aaaa(T62, T63, T64, X126, X127, part24_out_gaaa(T62, T64, X126, X127)) → part24_out_aaaa(T62, .(T63, T64), .(T63, X126), X127)
part24_in_aaaa(T84, .(T85, T86), X177, .(T85, X178)) → U4_aaaa(T84, T85, T86, X177, X178, part24_in_aaaa(T84, T86, X177, X178))
part24_in_aaaa(T92, [], [], []) → part24_out_aaaa(T92, [], [], [])
U4_aaaa(T84, T85, T86, X177, X178, part24_out_aaaa(T84, T86, X177, X178)) → part24_out_aaaa(T84, .(T85, T86), X177, .(T85, X178))
U23_aa(T191, T192, T193, T9, part24_out_aaaa(T191, T193, X336, X337)) → qs1_out_aa(.(T191, .(T192, T193)), T9)
qs1_in_aa(.(T191, .(T192, T193)), T9) → U24_aa(T191, T192, T193, T9, part24_in_aaaa(T191, T193, T197, T198))
U24_aa(T191, T192, T193, T9, part24_out_aaaa(T191, T193, T197, T198)) → U25_aa(T191, T192, T193, T9, qs42_in_aa(T197, X14))
qs42_in_aa([], []) → qs42_out_aa([], [])
qs42_in_aa(.(T103, T104), X230) → U5_aa(T103, T104, X230, part24_in_aaaa(T103, T104, X226, X227))
U5_aa(T103, T104, X230, part24_out_aaaa(T103, T104, X226, X227)) → qs42_out_aa(.(T103, T104), X230)
qs42_in_aa(.(T103, T104), X230) → U6_aa(T103, T104, X230, part24_in_aaaa(T103, T104, T108, T109))
U6_aa(T103, T104, X230, part24_out_aaaa(T103, T104, T108, T109)) → U7_aa(T103, T104, X230, qs42_in_aa(T108, X228))
U7_aa(T103, T104, X230, qs42_out_aa(T108, X228)) → qs42_out_aa(.(T103, T104), X230)
U6_aa(T103, T104, X230, part24_out_aaaa(T103, T104, T108, T109)) → U8_aa(T103, T104, X230, T109, qs42_in_aa(T108, T113))
U8_aa(T103, T104, X230, T109, qs42_out_aa(T108, T113)) → U9_aa(T103, T104, X230, qs42_in_aa(T109, X229))
U9_aa(T103, T104, X230, qs42_out_aa(T109, X229)) → qs42_out_aa(.(T103, T104), X230)
U8_aa(T103, T104, X230, T109, qs42_out_aa(T108, T113)) → U10_aa(T103, T104, X230, T113, qs42_in_aa(T109, T114))
U10_aa(T103, T104, X230, T113, qs42_out_aa(T109, T114)) → U11_aa(T103, T104, X230, app57_in_aaaa(T113, T103, T114, X230))
app57_in_aaaa([], T127, T128, .(T127, T128)) → app57_out_aaaa([], T127, T128, .(T127, T128))
app57_in_aaaa(.(T137, T138), T139, T140, .(T137, X270)) → U12_aaaa(T137, T138, T139, T140, X270, app57_in_aaaa(T138, T139, T140, X270))
U12_aaaa(T137, T138, T139, T140, X270, app57_out_aaaa(T138, T139, T140, X270)) → app57_out_aaaa(.(T137, T138), T139, T140, .(T137, X270))
U11_aa(T103, T104, X230, app57_out_aaaa(T113, T103, T114, X230)) → qs42_out_aa(.(T103, T104), X230)
U25_aa(T191, T192, T193, T9, qs42_out_aa(T197, X14)) → qs1_out_aa(.(T191, .(T192, T193)), T9)
U24_aa(T191, T192, T193, T9, part24_out_aaaa(T191, T193, T197, T198)) → U26_aa(T191, T192, T193, T9, T198, qs42_in_aa(T197, T202))
U26_aa(T191, T192, T193, T9, T198, qs42_out_aa(T197, T202)) → U27_aa(T191, T192, T193, T9, p41_in_aaaaa(.(T192, T198), X15, T202, T191, T9))
p41_in_aaaaa(T46, X15, T95, T22, T9) → U14_aaaaa(T46, X15, T95, T22, T9, qs42_in_aa(T46, X15))
U14_aaaaa(T46, X15, T95, T22, T9, qs42_out_aa(T46, X15)) → p41_out_aaaaa(T46, X15, T95, T22, T9)
p41_in_aaaaa(T46, T98, T95, T22, T9) → U15_aaaaa(T46, T98, T95, T22, T9, qs42_in_aa(T46, T98))
U15_aaaaa(T46, T98, T95, T22, T9, qs42_out_aa(T46, T98)) → U16_aaaaa(T46, T98, T95, T22, T9, app43_in_aaaa(T95, T22, T98, T9))
app43_in_aaaa([], T157, T158, .(T157, T158)) → app43_out_aaaa([], T157, T158, .(T157, T158))
app43_in_aaaa(.(T169, T170), T171, T172, .(T169, T174)) → U13_aaaa(T169, T170, T171, T172, T174, app43_in_aaaa(T170, T171, T172, T174))
U13_aaaa(T169, T170, T171, T172, T174, app43_out_aaaa(T170, T171, T172, T174)) → app43_out_aaaa(.(T169, T170), T171, T172, .(T169, T174))
U16_aaaaa(T46, T98, T95, T22, T9, app43_out_aaaa(T95, T22, T98, T9)) → p41_out_aaaaa(T46, T98, T95, T22, T9)
U27_aa(T191, T192, T193, T9, p41_out_aaaaa(.(T192, T198), X15, T202, T191, T9)) → qs1_out_aa(.(T191, .(T192, T193)), T9)
qs1_in_aa(.(T207, []), T9) → U28_aa(T207, T9, qs84_in_a(X14))
qs84_in_a([]) → qs84_out_a([])
U28_aa(T207, T9, qs84_out_a(X14)) → qs1_out_aa(.(T207, []), T9)
qs1_in_aa(.(T207, []), T9) → U29_aa(T207, T9, qs84_in_a(T210))
U29_aa(T207, T9, qs84_out_a(T210)) → U30_aa(T207, T9, qs84_in_a(X15))
U30_aa(T207, T9, qs84_out_a(X15)) → qs1_out_aa(.(T207, []), T9)
U29_aa(T207, T9, qs84_out_a(T210)) → U31_aa(T207, T9, T210, qs84_in_a(T213))
U31_aa(T207, T9, T210, qs84_out_a(T213)) → U32_aa(T207, T9, app43_in_gaga(T210, T207, T213, T9))
app43_in_gaga([], T157, T158, .(T157, T158)) → app43_out_gaga([], T157, T158, .(T157, T158))
app43_in_gaga(.(T169, T170), T171, T172, .(T169, T174)) → U13_gaga(T169, T170, T171, T172, T174, app43_in_gaga(T170, T171, T172, T174))
U13_gaga(T169, T170, T171, T172, T174, app43_out_gaga(T170, T171, T172, T174)) → app43_out_gaga(.(T169, T170), T171, T172, .(T169, T174))
U32_aa(T207, T9, app43_out_gaga(T210, T207, T213, T9)) → qs1_out_aa(.(T207, []), T9)
U20_aa(T22, T23, T24, T9, qs1_out_aa(.(T23, T45), X14)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U19_aa(T22, T23, T24, T9, part24_out_gaaa(T22, T24, T45, T46)) → U21_aa(T22, T23, T24, T9, T46, qs1_in_aa(.(T23, T45), T95))
U21_aa(T22, T23, T24, T9, T46, qs1_out_aa(.(T23, T45), T95)) → U22_aa(T22, T23, T24, T9, p41_in_aaaga(T46, X15, T95, T22, T9))
p41_in_aaaga(T46, X15, T95, T22, T9) → U14_aaaga(T46, X15, T95, T22, T9, qs42_in_aa(T46, X15))
U14_aaaga(T46, X15, T95, T22, T9, qs42_out_aa(T46, X15)) → p41_out_aaaga(T46, X15, T95, T22, T9)
p41_in_aaaga(T46, T98, T95, T22, T9) → U15_aaaga(T46, T98, T95, T22, T9, qs42_in_aa(T46, T98))
U15_aaaga(T46, T98, T95, T22, T9, qs42_out_aa(T46, T98)) → U16_aaaga(T46, T98, T95, T22, T9, app43_in_agaa(T95, T22, T98, T9))
app43_in_agaa([], T157, T158, .(T157, T158)) → app43_out_agaa([], T157, T158, .(T157, T158))
app43_in_agaa(.(T169, T170), T171, T172, .(T169, T174)) → U13_agaa(T169, T170, T171, T172, T174, app43_in_agaa(T170, T171, T172, T174))
U13_agaa(T169, T170, T171, T172, T174, app43_out_agaa(T170, T171, T172, T174)) → app43_out_agaa(.(T169, T170), T171, T172, .(T169, T174))
U16_aaaga(T46, T98, T95, T22, T9, app43_out_agaa(T95, T22, T98, T9)) → p41_out_aaaga(T46, T98, T95, T22, T9)
U22_aa(T22, T23, T24, T9, p41_out_aaaga(T46, X15, T95, T22, T9)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U20_ga(T22, T23, T24, T9, qs1_out_aa(.(T23, T45), X14)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U19_ga(T22, T23, T24, T9, part24_out_ggaa(T22, T24, T45, T46)) → U21_ga(T22, T23, T24, T9, T46, qs1_in_aa(.(T23, T45), T95))
U21_ga(T22, T23, T24, T9, T46, qs1_out_aa(.(T23, T45), T95)) → U22_ga(T22, T23, T24, T9, p41_in_aaaga(T46, X15, T95, T22, T9))
U22_ga(T22, T23, T24, T9, p41_out_aaaga(T46, X15, T95, T22, T9)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
qs1_in_ga(.(T191, .(T192, T193)), T9) → U23_ga(T191, T192, T193, T9, part24_in_ggaa(T191, T193, X336, X337))
U23_ga(T191, T192, T193, T9, part24_out_ggaa(T191, T193, X336, X337)) → qs1_out_ga(.(T191, .(T192, T193)), T9)
qs1_in_ga(.(T191, .(T192, T193)), T9) → U24_ga(T191, T192, T193, T9, part24_in_ggaa(T191, T193, T197, T198))
U24_ga(T191, T192, T193, T9, part24_out_ggaa(T191, T193, T197, T198)) → U25_ga(T191, T192, T193, T9, qs42_in_aa(T197, X14))
U25_ga(T191, T192, T193, T9, qs42_out_aa(T197, X14)) → qs1_out_ga(.(T191, .(T192, T193)), T9)
U24_ga(T191, T192, T193, T9, part24_out_ggaa(T191, T193, T197, T198)) → U26_ga(T191, T192, T193, T9, T198, qs42_in_aa(T197, T202))
U26_ga(T191, T192, T193, T9, T198, qs42_out_aa(T197, T202)) → U27_ga(T191, T192, T193, T9, p41_in_aaaga(.(T192, T198), X15, T202, T191, T9))
U27_ga(T191, T192, T193, T9, p41_out_aaaga(.(T192, T198), X15, T202, T191, T9)) → qs1_out_ga(.(T191, .(T192, T193)), T9)
qs1_in_ga(.(T207, []), T9) → U28_ga(T207, T9, qs84_in_a(X14))
U28_ga(T207, T9, qs84_out_a(X14)) → qs1_out_ga(.(T207, []), T9)
qs1_in_ga(.(T207, []), T9) → U29_ga(T207, T9, qs84_in_a(T210))
U29_ga(T207, T9, qs84_out_a(T210)) → U30_ga(T207, T9, qs84_in_a(X15))
U30_ga(T207, T9, qs84_out_a(X15)) → qs1_out_ga(.(T207, []), T9)
U29_ga(T207, T9, qs84_out_a(T210)) → U31_ga(T207, T9, T210, qs84_in_a(T213))
U31_ga(T207, T9, T210, qs84_out_a(T213)) → U32_ga(T207, T9, app43_in_ggga(T210, T207, T213, T9))
app43_in_ggga([], T157, T158, .(T157, T158)) → app43_out_ggga([], T157, T158, .(T157, T158))
app43_in_ggga(.(T169, T170), T171, T172, .(T169, T174)) → U13_ggga(T169, T170, T171, T172, T174, app43_in_ggga(T170, T171, T172, T174))
U13_ggga(T169, T170, T171, T172, T174, app43_out_ggga(T170, T171, T172, T174)) → app43_out_ggga(.(T169, T170), T171, T172, .(T169, T174))
U32_ga(T207, T9, app43_out_ggga(T210, T207, T213, T9)) → qs1_out_ga(.(T207, []), T9)
APP43_IN_AAAA(.(T169, T170), T171, T172, .(T169, T174)) → APP43_IN_AAAA(T170, T171, T172, T174)
APP43_IN_AAAA → APP43_IN_AAAA
APP57_IN_AAAA(.(T137, T138), T139, T140, .(T137, X270)) → APP57_IN_AAAA(T138, T139, T140, X270)
qs1_in_ga([], []) → qs1_out_ga([], [])
qs1_in_ga(.(T22, .(T23, T24)), T9) → U17_ga(T22, T23, T24, T9, less14_in_gg(T22, T23))
less14_in_gg(0, s(T33)) → less14_out_gg(0, s(T33))
less14_in_gg(s(T38), s(T39)) → U1_gg(T38, T39, less14_in_gg(T38, T39))
U1_gg(T38, T39, less14_out_gg(T38, T39)) → less14_out_gg(s(T38), s(T39))
U17_ga(T22, T23, T24, T9, less14_out_gg(T22, T23)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U17_ga(T22, T23, T24, T9, less14_out_gg(T22, T23)) → U18_ga(T22, T23, T24, T9, part24_in_ggaa(T22, T24, X52, X53))
part24_in_ggaa(T62, .(T63, T64), .(T63, X126), X127) → U2_ggaa(T62, T63, T64, X126, X127, less14_in_gg(T62, T63))
U2_ggaa(T62, T63, T64, X126, X127, less14_out_gg(T62, T63)) → part24_out_ggaa(T62, .(T63, T64), .(T63, X126), X127)
U2_ggaa(T62, T63, T64, X126, X127, less14_out_gg(T62, T63)) → U3_ggaa(T62, T63, T64, X126, X127, part24_in_ggaa(T62, T64, X126, X127))
part24_in_ggaa(T84, .(T85, T86), X177, .(T85, X178)) → U4_ggaa(T84, T85, T86, X177, X178, part24_in_ggaa(T84, T86, X177, X178))
part24_in_ggaa(T92, [], [], []) → part24_out_ggaa(T92, [], [], [])
U4_ggaa(T84, T85, T86, X177, X178, part24_out_ggaa(T84, T86, X177, X178)) → part24_out_ggaa(T84, .(T85, T86), X177, .(T85, X178))
U3_ggaa(T62, T63, T64, X126, X127, part24_out_ggaa(T62, T64, X126, X127)) → part24_out_ggaa(T62, .(T63, T64), .(T63, X126), X127)
U18_ga(T22, T23, T24, T9, part24_out_ggaa(T22, T24, X52, X53)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U17_ga(T22, T23, T24, T9, less14_out_gg(T22, T23)) → U19_ga(T22, T23, T24, T9, part24_in_ggaa(T22, T24, T45, T46))
U19_ga(T22, T23, T24, T9, part24_out_ggaa(T22, T24, T45, T46)) → U20_ga(T22, T23, T24, T9, qs1_in_aa(.(T23, T45), X14))
qs1_in_aa([], []) → qs1_out_aa([], [])
qs1_in_aa(.(T22, .(T23, T24)), T9) → U17_aa(T22, T23, T24, T9, less14_in_aa(T22, T23))
less14_in_aa(0, s(T33)) → less14_out_aa(0, s(T33))
less14_in_aa(s(T38), s(T39)) → U1_aa(T38, T39, less14_in_aa(T38, T39))
U1_aa(T38, T39, less14_out_aa(T38, T39)) → less14_out_aa(s(T38), s(T39))
U17_aa(T22, T23, T24, T9, less14_out_aa(T22, T23)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U17_aa(T22, T23, T24, T9, less14_out_aa(T22, T23)) → U18_aa(T22, T23, T24, T9, part24_in_gaaa(T22, T24, X52, X53))
part24_in_gaaa(T62, .(T63, T64), .(T63, X126), X127) → U2_gaaa(T62, T63, T64, X126, X127, less14_in_ga(T62, T63))
less14_in_ga(0, s(T33)) → less14_out_ga(0, s(T33))
less14_in_ga(s(T38), s(T39)) → U1_ga(T38, T39, less14_in_ga(T38, T39))
U1_ga(T38, T39, less14_out_ga(T38, T39)) → less14_out_ga(s(T38), s(T39))
U2_gaaa(T62, T63, T64, X126, X127, less14_out_ga(T62, T63)) → part24_out_gaaa(T62, .(T63, T64), .(T63, X126), X127)
U2_gaaa(T62, T63, T64, X126, X127, less14_out_ga(T62, T63)) → U3_gaaa(T62, T63, T64, X126, X127, part24_in_gaaa(T62, T64, X126, X127))
part24_in_gaaa(T84, .(T85, T86), X177, .(T85, X178)) → U4_gaaa(T84, T85, T86, X177, X178, part24_in_gaaa(T84, T86, X177, X178))
part24_in_gaaa(T92, [], [], []) → part24_out_gaaa(T92, [], [], [])
U4_gaaa(T84, T85, T86, X177, X178, part24_out_gaaa(T84, T86, X177, X178)) → part24_out_gaaa(T84, .(T85, T86), X177, .(T85, X178))
U3_gaaa(T62, T63, T64, X126, X127, part24_out_gaaa(T62, T64, X126, X127)) → part24_out_gaaa(T62, .(T63, T64), .(T63, X126), X127)
U18_aa(T22, T23, T24, T9, part24_out_gaaa(T22, T24, X52, X53)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U17_aa(T22, T23, T24, T9, less14_out_aa(T22, T23)) → U19_aa(T22, T23, T24, T9, part24_in_gaaa(T22, T24, T45, T46))
U19_aa(T22, T23, T24, T9, part24_out_gaaa(T22, T24, T45, T46)) → U20_aa(T22, T23, T24, T9, qs1_in_aa(.(T23, T45), X14))
qs1_in_aa(.(T191, .(T192, T193)), T9) → U23_aa(T191, T192, T193, T9, part24_in_aaaa(T191, T193, X336, X337))
part24_in_aaaa(T62, .(T63, T64), .(T63, X126), X127) → U2_aaaa(T62, T63, T64, X126, X127, less14_in_aa(T62, T63))
U2_aaaa(T62, T63, T64, X126, X127, less14_out_aa(T62, T63)) → part24_out_aaaa(T62, .(T63, T64), .(T63, X126), X127)
U2_aaaa(T62, T63, T64, X126, X127, less14_out_aa(T62, T63)) → U3_aaaa(T62, T63, T64, X126, X127, part24_in_gaaa(T62, T64, X126, X127))
U3_aaaa(T62, T63, T64, X126, X127, part24_out_gaaa(T62, T64, X126, X127)) → part24_out_aaaa(T62, .(T63, T64), .(T63, X126), X127)
part24_in_aaaa(T84, .(T85, T86), X177, .(T85, X178)) → U4_aaaa(T84, T85, T86, X177, X178, part24_in_aaaa(T84, T86, X177, X178))
part24_in_aaaa(T92, [], [], []) → part24_out_aaaa(T92, [], [], [])
U4_aaaa(T84, T85, T86, X177, X178, part24_out_aaaa(T84, T86, X177, X178)) → part24_out_aaaa(T84, .(T85, T86), X177, .(T85, X178))
U23_aa(T191, T192, T193, T9, part24_out_aaaa(T191, T193, X336, X337)) → qs1_out_aa(.(T191, .(T192, T193)), T9)
qs1_in_aa(.(T191, .(T192, T193)), T9) → U24_aa(T191, T192, T193, T9, part24_in_aaaa(T191, T193, T197, T198))
U24_aa(T191, T192, T193, T9, part24_out_aaaa(T191, T193, T197, T198)) → U25_aa(T191, T192, T193, T9, qs42_in_aa(T197, X14))
qs42_in_aa([], []) → qs42_out_aa([], [])
qs42_in_aa(.(T103, T104), X230) → U5_aa(T103, T104, X230, part24_in_aaaa(T103, T104, X226, X227))
U5_aa(T103, T104, X230, part24_out_aaaa(T103, T104, X226, X227)) → qs42_out_aa(.(T103, T104), X230)
qs42_in_aa(.(T103, T104), X230) → U6_aa(T103, T104, X230, part24_in_aaaa(T103, T104, T108, T109))
U6_aa(T103, T104, X230, part24_out_aaaa(T103, T104, T108, T109)) → U7_aa(T103, T104, X230, qs42_in_aa(T108, X228))
U7_aa(T103, T104, X230, qs42_out_aa(T108, X228)) → qs42_out_aa(.(T103, T104), X230)
U6_aa(T103, T104, X230, part24_out_aaaa(T103, T104, T108, T109)) → U8_aa(T103, T104, X230, T109, qs42_in_aa(T108, T113))
U8_aa(T103, T104, X230, T109, qs42_out_aa(T108, T113)) → U9_aa(T103, T104, X230, qs42_in_aa(T109, X229))
U9_aa(T103, T104, X230, qs42_out_aa(T109, X229)) → qs42_out_aa(.(T103, T104), X230)
U8_aa(T103, T104, X230, T109, qs42_out_aa(T108, T113)) → U10_aa(T103, T104, X230, T113, qs42_in_aa(T109, T114))
U10_aa(T103, T104, X230, T113, qs42_out_aa(T109, T114)) → U11_aa(T103, T104, X230, app57_in_aaaa(T113, T103, T114, X230))
app57_in_aaaa([], T127, T128, .(T127, T128)) → app57_out_aaaa([], T127, T128, .(T127, T128))
app57_in_aaaa(.(T137, T138), T139, T140, .(T137, X270)) → U12_aaaa(T137, T138, T139, T140, X270, app57_in_aaaa(T138, T139, T140, X270))
U12_aaaa(T137, T138, T139, T140, X270, app57_out_aaaa(T138, T139, T140, X270)) → app57_out_aaaa(.(T137, T138), T139, T140, .(T137, X270))
U11_aa(T103, T104, X230, app57_out_aaaa(T113, T103, T114, X230)) → qs42_out_aa(.(T103, T104), X230)
U25_aa(T191, T192, T193, T9, qs42_out_aa(T197, X14)) → qs1_out_aa(.(T191, .(T192, T193)), T9)
U24_aa(T191, T192, T193, T9, part24_out_aaaa(T191, T193, T197, T198)) → U26_aa(T191, T192, T193, T9, T198, qs42_in_aa(T197, T202))
U26_aa(T191, T192, T193, T9, T198, qs42_out_aa(T197, T202)) → U27_aa(T191, T192, T193, T9, p41_in_aaaaa(.(T192, T198), X15, T202, T191, T9))
p41_in_aaaaa(T46, X15, T95, T22, T9) → U14_aaaaa(T46, X15, T95, T22, T9, qs42_in_aa(T46, X15))
U14_aaaaa(T46, X15, T95, T22, T9, qs42_out_aa(T46, X15)) → p41_out_aaaaa(T46, X15, T95, T22, T9)
p41_in_aaaaa(T46, T98, T95, T22, T9) → U15_aaaaa(T46, T98, T95, T22, T9, qs42_in_aa(T46, T98))
U15_aaaaa(T46, T98, T95, T22, T9, qs42_out_aa(T46, T98)) → U16_aaaaa(T46, T98, T95, T22, T9, app43_in_aaaa(T95, T22, T98, T9))
app43_in_aaaa([], T157, T158, .(T157, T158)) → app43_out_aaaa([], T157, T158, .(T157, T158))
app43_in_aaaa(.(T169, T170), T171, T172, .(T169, T174)) → U13_aaaa(T169, T170, T171, T172, T174, app43_in_aaaa(T170, T171, T172, T174))
U13_aaaa(T169, T170, T171, T172, T174, app43_out_aaaa(T170, T171, T172, T174)) → app43_out_aaaa(.(T169, T170), T171, T172, .(T169, T174))
U16_aaaaa(T46, T98, T95, T22, T9, app43_out_aaaa(T95, T22, T98, T9)) → p41_out_aaaaa(T46, T98, T95, T22, T9)
U27_aa(T191, T192, T193, T9, p41_out_aaaaa(.(T192, T198), X15, T202, T191, T9)) → qs1_out_aa(.(T191, .(T192, T193)), T9)
qs1_in_aa(.(T207, []), T9) → U28_aa(T207, T9, qs84_in_a(X14))
qs84_in_a([]) → qs84_out_a([])
U28_aa(T207, T9, qs84_out_a(X14)) → qs1_out_aa(.(T207, []), T9)
qs1_in_aa(.(T207, []), T9) → U29_aa(T207, T9, qs84_in_a(T210))
U29_aa(T207, T9, qs84_out_a(T210)) → U30_aa(T207, T9, qs84_in_a(X15))
U30_aa(T207, T9, qs84_out_a(X15)) → qs1_out_aa(.(T207, []), T9)
U29_aa(T207, T9, qs84_out_a(T210)) → U31_aa(T207, T9, T210, qs84_in_a(T213))
U31_aa(T207, T9, T210, qs84_out_a(T213)) → U32_aa(T207, T9, app43_in_gaga(T210, T207, T213, T9))
app43_in_gaga([], T157, T158, .(T157, T158)) → app43_out_gaga([], T157, T158, .(T157, T158))
app43_in_gaga(.(T169, T170), T171, T172, .(T169, T174)) → U13_gaga(T169, T170, T171, T172, T174, app43_in_gaga(T170, T171, T172, T174))
U13_gaga(T169, T170, T171, T172, T174, app43_out_gaga(T170, T171, T172, T174)) → app43_out_gaga(.(T169, T170), T171, T172, .(T169, T174))
U32_aa(T207, T9, app43_out_gaga(T210, T207, T213, T9)) → qs1_out_aa(.(T207, []), T9)
U20_aa(T22, T23, T24, T9, qs1_out_aa(.(T23, T45), X14)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U19_aa(T22, T23, T24, T9, part24_out_gaaa(T22, T24, T45, T46)) → U21_aa(T22, T23, T24, T9, T46, qs1_in_aa(.(T23, T45), T95))
U21_aa(T22, T23, T24, T9, T46, qs1_out_aa(.(T23, T45), T95)) → U22_aa(T22, T23, T24, T9, p41_in_aaaga(T46, X15, T95, T22, T9))
p41_in_aaaga(T46, X15, T95, T22, T9) → U14_aaaga(T46, X15, T95, T22, T9, qs42_in_aa(T46, X15))
U14_aaaga(T46, X15, T95, T22, T9, qs42_out_aa(T46, X15)) → p41_out_aaaga(T46, X15, T95, T22, T9)
p41_in_aaaga(T46, T98, T95, T22, T9) → U15_aaaga(T46, T98, T95, T22, T9, qs42_in_aa(T46, T98))
U15_aaaga(T46, T98, T95, T22, T9, qs42_out_aa(T46, T98)) → U16_aaaga(T46, T98, T95, T22, T9, app43_in_agaa(T95, T22, T98, T9))
app43_in_agaa([], T157, T158, .(T157, T158)) → app43_out_agaa([], T157, T158, .(T157, T158))
app43_in_agaa(.(T169, T170), T171, T172, .(T169, T174)) → U13_agaa(T169, T170, T171, T172, T174, app43_in_agaa(T170, T171, T172, T174))
U13_agaa(T169, T170, T171, T172, T174, app43_out_agaa(T170, T171, T172, T174)) → app43_out_agaa(.(T169, T170), T171, T172, .(T169, T174))
U16_aaaga(T46, T98, T95, T22, T9, app43_out_agaa(T95, T22, T98, T9)) → p41_out_aaaga(T46, T98, T95, T22, T9)
U22_aa(T22, T23, T24, T9, p41_out_aaaga(T46, X15, T95, T22, T9)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U20_ga(T22, T23, T24, T9, qs1_out_aa(.(T23, T45), X14)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U19_ga(T22, T23, T24, T9, part24_out_ggaa(T22, T24, T45, T46)) → U21_ga(T22, T23, T24, T9, T46, qs1_in_aa(.(T23, T45), T95))
U21_ga(T22, T23, T24, T9, T46, qs1_out_aa(.(T23, T45), T95)) → U22_ga(T22, T23, T24, T9, p41_in_aaaga(T46, X15, T95, T22, T9))
U22_ga(T22, T23, T24, T9, p41_out_aaaga(T46, X15, T95, T22, T9)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
qs1_in_ga(.(T191, .(T192, T193)), T9) → U23_ga(T191, T192, T193, T9, part24_in_ggaa(T191, T193, X336, X337))
U23_ga(T191, T192, T193, T9, part24_out_ggaa(T191, T193, X336, X337)) → qs1_out_ga(.(T191, .(T192, T193)), T9)
qs1_in_ga(.(T191, .(T192, T193)), T9) → U24_ga(T191, T192, T193, T9, part24_in_ggaa(T191, T193, T197, T198))
U24_ga(T191, T192, T193, T9, part24_out_ggaa(T191, T193, T197, T198)) → U25_ga(T191, T192, T193, T9, qs42_in_aa(T197, X14))
U25_ga(T191, T192, T193, T9, qs42_out_aa(T197, X14)) → qs1_out_ga(.(T191, .(T192, T193)), T9)
U24_ga(T191, T192, T193, T9, part24_out_ggaa(T191, T193, T197, T198)) → U26_ga(T191, T192, T193, T9, T198, qs42_in_aa(T197, T202))
U26_ga(T191, T192, T193, T9, T198, qs42_out_aa(T197, T202)) → U27_ga(T191, T192, T193, T9, p41_in_aaaga(.(T192, T198), X15, T202, T191, T9))
U27_ga(T191, T192, T193, T9, p41_out_aaaga(.(T192, T198), X15, T202, T191, T9)) → qs1_out_ga(.(T191, .(T192, T193)), T9)
qs1_in_ga(.(T207, []), T9) → U28_ga(T207, T9, qs84_in_a(X14))
U28_ga(T207, T9, qs84_out_a(X14)) → qs1_out_ga(.(T207, []), T9)
qs1_in_ga(.(T207, []), T9) → U29_ga(T207, T9, qs84_in_a(T210))
U29_ga(T207, T9, qs84_out_a(T210)) → U30_ga(T207, T9, qs84_in_a(X15))
U30_ga(T207, T9, qs84_out_a(X15)) → qs1_out_ga(.(T207, []), T9)
U29_ga(T207, T9, qs84_out_a(T210)) → U31_ga(T207, T9, T210, qs84_in_a(T213))
U31_ga(T207, T9, T210, qs84_out_a(T213)) → U32_ga(T207, T9, app43_in_ggga(T210, T207, T213, T9))
app43_in_ggga([], T157, T158, .(T157, T158)) → app43_out_ggga([], T157, T158, .(T157, T158))
app43_in_ggga(.(T169, T170), T171, T172, .(T169, T174)) → U13_ggga(T169, T170, T171, T172, T174, app43_in_ggga(T170, T171, T172, T174))
U13_ggga(T169, T170, T171, T172, T174, app43_out_ggga(T170, T171, T172, T174)) → app43_out_ggga(.(T169, T170), T171, T172, .(T169, T174))
U32_ga(T207, T9, app43_out_ggga(T210, T207, T213, T9)) → qs1_out_ga(.(T207, []), T9)
APP57_IN_AAAA(.(T137, T138), T139, T140, .(T137, X270)) → APP57_IN_AAAA(T138, T139, T140, X270)
APP57_IN_AAAA → APP57_IN_AAAA
LESS14_IN_GA(s(T38), s(T39)) → LESS14_IN_GA(T38, T39)
qs1_in_ga([], []) → qs1_out_ga([], [])
qs1_in_ga(.(T22, .(T23, T24)), T9) → U17_ga(T22, T23, T24, T9, less14_in_gg(T22, T23))
less14_in_gg(0, s(T33)) → less14_out_gg(0, s(T33))
less14_in_gg(s(T38), s(T39)) → U1_gg(T38, T39, less14_in_gg(T38, T39))
U1_gg(T38, T39, less14_out_gg(T38, T39)) → less14_out_gg(s(T38), s(T39))
U17_ga(T22, T23, T24, T9, less14_out_gg(T22, T23)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U17_ga(T22, T23, T24, T9, less14_out_gg(T22, T23)) → U18_ga(T22, T23, T24, T9, part24_in_ggaa(T22, T24, X52, X53))
part24_in_ggaa(T62, .(T63, T64), .(T63, X126), X127) → U2_ggaa(T62, T63, T64, X126, X127, less14_in_gg(T62, T63))
U2_ggaa(T62, T63, T64, X126, X127, less14_out_gg(T62, T63)) → part24_out_ggaa(T62, .(T63, T64), .(T63, X126), X127)
U2_ggaa(T62, T63, T64, X126, X127, less14_out_gg(T62, T63)) → U3_ggaa(T62, T63, T64, X126, X127, part24_in_ggaa(T62, T64, X126, X127))
part24_in_ggaa(T84, .(T85, T86), X177, .(T85, X178)) → U4_ggaa(T84, T85, T86, X177, X178, part24_in_ggaa(T84, T86, X177, X178))
part24_in_ggaa(T92, [], [], []) → part24_out_ggaa(T92, [], [], [])
U4_ggaa(T84, T85, T86, X177, X178, part24_out_ggaa(T84, T86, X177, X178)) → part24_out_ggaa(T84, .(T85, T86), X177, .(T85, X178))
U3_ggaa(T62, T63, T64, X126, X127, part24_out_ggaa(T62, T64, X126, X127)) → part24_out_ggaa(T62, .(T63, T64), .(T63, X126), X127)
U18_ga(T22, T23, T24, T9, part24_out_ggaa(T22, T24, X52, X53)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U17_ga(T22, T23, T24, T9, less14_out_gg(T22, T23)) → U19_ga(T22, T23, T24, T9, part24_in_ggaa(T22, T24, T45, T46))
U19_ga(T22, T23, T24, T9, part24_out_ggaa(T22, T24, T45, T46)) → U20_ga(T22, T23, T24, T9, qs1_in_aa(.(T23, T45), X14))
qs1_in_aa([], []) → qs1_out_aa([], [])
qs1_in_aa(.(T22, .(T23, T24)), T9) → U17_aa(T22, T23, T24, T9, less14_in_aa(T22, T23))
less14_in_aa(0, s(T33)) → less14_out_aa(0, s(T33))
less14_in_aa(s(T38), s(T39)) → U1_aa(T38, T39, less14_in_aa(T38, T39))
U1_aa(T38, T39, less14_out_aa(T38, T39)) → less14_out_aa(s(T38), s(T39))
U17_aa(T22, T23, T24, T9, less14_out_aa(T22, T23)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U17_aa(T22, T23, T24, T9, less14_out_aa(T22, T23)) → U18_aa(T22, T23, T24, T9, part24_in_gaaa(T22, T24, X52, X53))
part24_in_gaaa(T62, .(T63, T64), .(T63, X126), X127) → U2_gaaa(T62, T63, T64, X126, X127, less14_in_ga(T62, T63))
less14_in_ga(0, s(T33)) → less14_out_ga(0, s(T33))
less14_in_ga(s(T38), s(T39)) → U1_ga(T38, T39, less14_in_ga(T38, T39))
U1_ga(T38, T39, less14_out_ga(T38, T39)) → less14_out_ga(s(T38), s(T39))
U2_gaaa(T62, T63, T64, X126, X127, less14_out_ga(T62, T63)) → part24_out_gaaa(T62, .(T63, T64), .(T63, X126), X127)
U2_gaaa(T62, T63, T64, X126, X127, less14_out_ga(T62, T63)) → U3_gaaa(T62, T63, T64, X126, X127, part24_in_gaaa(T62, T64, X126, X127))
part24_in_gaaa(T84, .(T85, T86), X177, .(T85, X178)) → U4_gaaa(T84, T85, T86, X177, X178, part24_in_gaaa(T84, T86, X177, X178))
part24_in_gaaa(T92, [], [], []) → part24_out_gaaa(T92, [], [], [])
U4_gaaa(T84, T85, T86, X177, X178, part24_out_gaaa(T84, T86, X177, X178)) → part24_out_gaaa(T84, .(T85, T86), X177, .(T85, X178))
U3_gaaa(T62, T63, T64, X126, X127, part24_out_gaaa(T62, T64, X126, X127)) → part24_out_gaaa(T62, .(T63, T64), .(T63, X126), X127)
U18_aa(T22, T23, T24, T9, part24_out_gaaa(T22, T24, X52, X53)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U17_aa(T22, T23, T24, T9, less14_out_aa(T22, T23)) → U19_aa(T22, T23, T24, T9, part24_in_gaaa(T22, T24, T45, T46))
U19_aa(T22, T23, T24, T9, part24_out_gaaa(T22, T24, T45, T46)) → U20_aa(T22, T23, T24, T9, qs1_in_aa(.(T23, T45), X14))
qs1_in_aa(.(T191, .(T192, T193)), T9) → U23_aa(T191, T192, T193, T9, part24_in_aaaa(T191, T193, X336, X337))
part24_in_aaaa(T62, .(T63, T64), .(T63, X126), X127) → U2_aaaa(T62, T63, T64, X126, X127, less14_in_aa(T62, T63))
U2_aaaa(T62, T63, T64, X126, X127, less14_out_aa(T62, T63)) → part24_out_aaaa(T62, .(T63, T64), .(T63, X126), X127)
U2_aaaa(T62, T63, T64, X126, X127, less14_out_aa(T62, T63)) → U3_aaaa(T62, T63, T64, X126, X127, part24_in_gaaa(T62, T64, X126, X127))
U3_aaaa(T62, T63, T64, X126, X127, part24_out_gaaa(T62, T64, X126, X127)) → part24_out_aaaa(T62, .(T63, T64), .(T63, X126), X127)
part24_in_aaaa(T84, .(T85, T86), X177, .(T85, X178)) → U4_aaaa(T84, T85, T86, X177, X178, part24_in_aaaa(T84, T86, X177, X178))
part24_in_aaaa(T92, [], [], []) → part24_out_aaaa(T92, [], [], [])
U4_aaaa(T84, T85, T86, X177, X178, part24_out_aaaa(T84, T86, X177, X178)) → part24_out_aaaa(T84, .(T85, T86), X177, .(T85, X178))
U23_aa(T191, T192, T193, T9, part24_out_aaaa(T191, T193, X336, X337)) → qs1_out_aa(.(T191, .(T192, T193)), T9)
qs1_in_aa(.(T191, .(T192, T193)), T9) → U24_aa(T191, T192, T193, T9, part24_in_aaaa(T191, T193, T197, T198))
U24_aa(T191, T192, T193, T9, part24_out_aaaa(T191, T193, T197, T198)) → U25_aa(T191, T192, T193, T9, qs42_in_aa(T197, X14))
qs42_in_aa([], []) → qs42_out_aa([], [])
qs42_in_aa(.(T103, T104), X230) → U5_aa(T103, T104, X230, part24_in_aaaa(T103, T104, X226, X227))
U5_aa(T103, T104, X230, part24_out_aaaa(T103, T104, X226, X227)) → qs42_out_aa(.(T103, T104), X230)
qs42_in_aa(.(T103, T104), X230) → U6_aa(T103, T104, X230, part24_in_aaaa(T103, T104, T108, T109))
U6_aa(T103, T104, X230, part24_out_aaaa(T103, T104, T108, T109)) → U7_aa(T103, T104, X230, qs42_in_aa(T108, X228))
U7_aa(T103, T104, X230, qs42_out_aa(T108, X228)) → qs42_out_aa(.(T103, T104), X230)
U6_aa(T103, T104, X230, part24_out_aaaa(T103, T104, T108, T109)) → U8_aa(T103, T104, X230, T109, qs42_in_aa(T108, T113))
U8_aa(T103, T104, X230, T109, qs42_out_aa(T108, T113)) → U9_aa(T103, T104, X230, qs42_in_aa(T109, X229))
U9_aa(T103, T104, X230, qs42_out_aa(T109, X229)) → qs42_out_aa(.(T103, T104), X230)
U8_aa(T103, T104, X230, T109, qs42_out_aa(T108, T113)) → U10_aa(T103, T104, X230, T113, qs42_in_aa(T109, T114))
U10_aa(T103, T104, X230, T113, qs42_out_aa(T109, T114)) → U11_aa(T103, T104, X230, app57_in_aaaa(T113, T103, T114, X230))
app57_in_aaaa([], T127, T128, .(T127, T128)) → app57_out_aaaa([], T127, T128, .(T127, T128))
app57_in_aaaa(.(T137, T138), T139, T140, .(T137, X270)) → U12_aaaa(T137, T138, T139, T140, X270, app57_in_aaaa(T138, T139, T140, X270))
U12_aaaa(T137, T138, T139, T140, X270, app57_out_aaaa(T138, T139, T140, X270)) → app57_out_aaaa(.(T137, T138), T139, T140, .(T137, X270))
U11_aa(T103, T104, X230, app57_out_aaaa(T113, T103, T114, X230)) → qs42_out_aa(.(T103, T104), X230)
U25_aa(T191, T192, T193, T9, qs42_out_aa(T197, X14)) → qs1_out_aa(.(T191, .(T192, T193)), T9)
U24_aa(T191, T192, T193, T9, part24_out_aaaa(T191, T193, T197, T198)) → U26_aa(T191, T192, T193, T9, T198, qs42_in_aa(T197, T202))
U26_aa(T191, T192, T193, T9, T198, qs42_out_aa(T197, T202)) → U27_aa(T191, T192, T193, T9, p41_in_aaaaa(.(T192, T198), X15, T202, T191, T9))
p41_in_aaaaa(T46, X15, T95, T22, T9) → U14_aaaaa(T46, X15, T95, T22, T9, qs42_in_aa(T46, X15))
U14_aaaaa(T46, X15, T95, T22, T9, qs42_out_aa(T46, X15)) → p41_out_aaaaa(T46, X15, T95, T22, T9)
p41_in_aaaaa(T46, T98, T95, T22, T9) → U15_aaaaa(T46, T98, T95, T22, T9, qs42_in_aa(T46, T98))
U15_aaaaa(T46, T98, T95, T22, T9, qs42_out_aa(T46, T98)) → U16_aaaaa(T46, T98, T95, T22, T9, app43_in_aaaa(T95, T22, T98, T9))
app43_in_aaaa([], T157, T158, .(T157, T158)) → app43_out_aaaa([], T157, T158, .(T157, T158))
app43_in_aaaa(.(T169, T170), T171, T172, .(T169, T174)) → U13_aaaa(T169, T170, T171, T172, T174, app43_in_aaaa(T170, T171, T172, T174))
U13_aaaa(T169, T170, T171, T172, T174, app43_out_aaaa(T170, T171, T172, T174)) → app43_out_aaaa(.(T169, T170), T171, T172, .(T169, T174))
U16_aaaaa(T46, T98, T95, T22, T9, app43_out_aaaa(T95, T22, T98, T9)) → p41_out_aaaaa(T46, T98, T95, T22, T9)
U27_aa(T191, T192, T193, T9, p41_out_aaaaa(.(T192, T198), X15, T202, T191, T9)) → qs1_out_aa(.(T191, .(T192, T193)), T9)
qs1_in_aa(.(T207, []), T9) → U28_aa(T207, T9, qs84_in_a(X14))
qs84_in_a([]) → qs84_out_a([])
U28_aa(T207, T9, qs84_out_a(X14)) → qs1_out_aa(.(T207, []), T9)
qs1_in_aa(.(T207, []), T9) → U29_aa(T207, T9, qs84_in_a(T210))
U29_aa(T207, T9, qs84_out_a(T210)) → U30_aa(T207, T9, qs84_in_a(X15))
U30_aa(T207, T9, qs84_out_a(X15)) → qs1_out_aa(.(T207, []), T9)
U29_aa(T207, T9, qs84_out_a(T210)) → U31_aa(T207, T9, T210, qs84_in_a(T213))
U31_aa(T207, T9, T210, qs84_out_a(T213)) → U32_aa(T207, T9, app43_in_gaga(T210, T207, T213, T9))
app43_in_gaga([], T157, T158, .(T157, T158)) → app43_out_gaga([], T157, T158, .(T157, T158))
app43_in_gaga(.(T169, T170), T171, T172, .(T169, T174)) → U13_gaga(T169, T170, T171, T172, T174, app43_in_gaga(T170, T171, T172, T174))
U13_gaga(T169, T170, T171, T172, T174, app43_out_gaga(T170, T171, T172, T174)) → app43_out_gaga(.(T169, T170), T171, T172, .(T169, T174))
U32_aa(T207, T9, app43_out_gaga(T210, T207, T213, T9)) → qs1_out_aa(.(T207, []), T9)
U20_aa(T22, T23, T24, T9, qs1_out_aa(.(T23, T45), X14)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U19_aa(T22, T23, T24, T9, part24_out_gaaa(T22, T24, T45, T46)) → U21_aa(T22, T23, T24, T9, T46, qs1_in_aa(.(T23, T45), T95))
U21_aa(T22, T23, T24, T9, T46, qs1_out_aa(.(T23, T45), T95)) → U22_aa(T22, T23, T24, T9, p41_in_aaaga(T46, X15, T95, T22, T9))
p41_in_aaaga(T46, X15, T95, T22, T9) → U14_aaaga(T46, X15, T95, T22, T9, qs42_in_aa(T46, X15))
U14_aaaga(T46, X15, T95, T22, T9, qs42_out_aa(T46, X15)) → p41_out_aaaga(T46, X15, T95, T22, T9)
p41_in_aaaga(T46, T98, T95, T22, T9) → U15_aaaga(T46, T98, T95, T22, T9, qs42_in_aa(T46, T98))
U15_aaaga(T46, T98, T95, T22, T9, qs42_out_aa(T46, T98)) → U16_aaaga(T46, T98, T95, T22, T9, app43_in_agaa(T95, T22, T98, T9))
app43_in_agaa([], T157, T158, .(T157, T158)) → app43_out_agaa([], T157, T158, .(T157, T158))
app43_in_agaa(.(T169, T170), T171, T172, .(T169, T174)) → U13_agaa(T169, T170, T171, T172, T174, app43_in_agaa(T170, T171, T172, T174))
U13_agaa(T169, T170, T171, T172, T174, app43_out_agaa(T170, T171, T172, T174)) → app43_out_agaa(.(T169, T170), T171, T172, .(T169, T174))
U16_aaaga(T46, T98, T95, T22, T9, app43_out_agaa(T95, T22, T98, T9)) → p41_out_aaaga(T46, T98, T95, T22, T9)
U22_aa(T22, T23, T24, T9, p41_out_aaaga(T46, X15, T95, T22, T9)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U20_ga(T22, T23, T24, T9, qs1_out_aa(.(T23, T45), X14)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U19_ga(T22, T23, T24, T9, part24_out_ggaa(T22, T24, T45, T46)) → U21_ga(T22, T23, T24, T9, T46, qs1_in_aa(.(T23, T45), T95))
U21_ga(T22, T23, T24, T9, T46, qs1_out_aa(.(T23, T45), T95)) → U22_ga(T22, T23, T24, T9, p41_in_aaaga(T46, X15, T95, T22, T9))
U22_ga(T22, T23, T24, T9, p41_out_aaaga(T46, X15, T95, T22, T9)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
qs1_in_ga(.(T191, .(T192, T193)), T9) → U23_ga(T191, T192, T193, T9, part24_in_ggaa(T191, T193, X336, X337))
U23_ga(T191, T192, T193, T9, part24_out_ggaa(T191, T193, X336, X337)) → qs1_out_ga(.(T191, .(T192, T193)), T9)
qs1_in_ga(.(T191, .(T192, T193)), T9) → U24_ga(T191, T192, T193, T9, part24_in_ggaa(T191, T193, T197, T198))
U24_ga(T191, T192, T193, T9, part24_out_ggaa(T191, T193, T197, T198)) → U25_ga(T191, T192, T193, T9, qs42_in_aa(T197, X14))
U25_ga(T191, T192, T193, T9, qs42_out_aa(T197, X14)) → qs1_out_ga(.(T191, .(T192, T193)), T9)
U24_ga(T191, T192, T193, T9, part24_out_ggaa(T191, T193, T197, T198)) → U26_ga(T191, T192, T193, T9, T198, qs42_in_aa(T197, T202))
U26_ga(T191, T192, T193, T9, T198, qs42_out_aa(T197, T202)) → U27_ga(T191, T192, T193, T9, p41_in_aaaga(.(T192, T198), X15, T202, T191, T9))
U27_ga(T191, T192, T193, T9, p41_out_aaaga(.(T192, T198), X15, T202, T191, T9)) → qs1_out_ga(.(T191, .(T192, T193)), T9)
qs1_in_ga(.(T207, []), T9) → U28_ga(T207, T9, qs84_in_a(X14))
U28_ga(T207, T9, qs84_out_a(X14)) → qs1_out_ga(.(T207, []), T9)
qs1_in_ga(.(T207, []), T9) → U29_ga(T207, T9, qs84_in_a(T210))
U29_ga(T207, T9, qs84_out_a(T210)) → U30_ga(T207, T9, qs84_in_a(X15))
U30_ga(T207, T9, qs84_out_a(X15)) → qs1_out_ga(.(T207, []), T9)
U29_ga(T207, T9, qs84_out_a(T210)) → U31_ga(T207, T9, T210, qs84_in_a(T213))
U31_ga(T207, T9, T210, qs84_out_a(T213)) → U32_ga(T207, T9, app43_in_ggga(T210, T207, T213, T9))
app43_in_ggga([], T157, T158, .(T157, T158)) → app43_out_ggga([], T157, T158, .(T157, T158))
app43_in_ggga(.(T169, T170), T171, T172, .(T169, T174)) → U13_ggga(T169, T170, T171, T172, T174, app43_in_ggga(T170, T171, T172, T174))
U13_ggga(T169, T170, T171, T172, T174, app43_out_ggga(T170, T171, T172, T174)) → app43_out_ggga(.(T169, T170), T171, T172, .(T169, T174))
U32_ga(T207, T9, app43_out_ggga(T210, T207, T213, T9)) → qs1_out_ga(.(T207, []), T9)
LESS14_IN_GA(s(T38), s(T39)) → LESS14_IN_GA(T38, T39)
LESS14_IN_GA(s(T38)) → LESS14_IN_GA(T38)
From the DPs we obtained the following set of size-change graphs:
U2_GAAA(T62, T63, T64, X126, X127, less14_out_ga(T62, T63)) → PART24_IN_GAAA(T62, T64, X126, X127)
PART24_IN_GAAA(T62, .(T63, T64), .(T63, X126), X127) → U2_GAAA(T62, T63, T64, X126, X127, less14_in_ga(T62, T63))
PART24_IN_GAAA(T84, .(T85, T86), X177, .(T85, X178)) → PART24_IN_GAAA(T84, T86, X177, X178)
qs1_in_ga([], []) → qs1_out_ga([], [])
qs1_in_ga(.(T22, .(T23, T24)), T9) → U17_ga(T22, T23, T24, T9, less14_in_gg(T22, T23))
less14_in_gg(0, s(T33)) → less14_out_gg(0, s(T33))
less14_in_gg(s(T38), s(T39)) → U1_gg(T38, T39, less14_in_gg(T38, T39))
U1_gg(T38, T39, less14_out_gg(T38, T39)) → less14_out_gg(s(T38), s(T39))
U17_ga(T22, T23, T24, T9, less14_out_gg(T22, T23)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U17_ga(T22, T23, T24, T9, less14_out_gg(T22, T23)) → U18_ga(T22, T23, T24, T9, part24_in_ggaa(T22, T24, X52, X53))
part24_in_ggaa(T62, .(T63, T64), .(T63, X126), X127) → U2_ggaa(T62, T63, T64, X126, X127, less14_in_gg(T62, T63))
U2_ggaa(T62, T63, T64, X126, X127, less14_out_gg(T62, T63)) → part24_out_ggaa(T62, .(T63, T64), .(T63, X126), X127)
U2_ggaa(T62, T63, T64, X126, X127, less14_out_gg(T62, T63)) → U3_ggaa(T62, T63, T64, X126, X127, part24_in_ggaa(T62, T64, X126, X127))
part24_in_ggaa(T84, .(T85, T86), X177, .(T85, X178)) → U4_ggaa(T84, T85, T86, X177, X178, part24_in_ggaa(T84, T86, X177, X178))
part24_in_ggaa(T92, [], [], []) → part24_out_ggaa(T92, [], [], [])
U4_ggaa(T84, T85, T86, X177, X178, part24_out_ggaa(T84, T86, X177, X178)) → part24_out_ggaa(T84, .(T85, T86), X177, .(T85, X178))
U3_ggaa(T62, T63, T64, X126, X127, part24_out_ggaa(T62, T64, X126, X127)) → part24_out_ggaa(T62, .(T63, T64), .(T63, X126), X127)
U18_ga(T22, T23, T24, T9, part24_out_ggaa(T22, T24, X52, X53)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U17_ga(T22, T23, T24, T9, less14_out_gg(T22, T23)) → U19_ga(T22, T23, T24, T9, part24_in_ggaa(T22, T24, T45, T46))
U19_ga(T22, T23, T24, T9, part24_out_ggaa(T22, T24, T45, T46)) → U20_ga(T22, T23, T24, T9, qs1_in_aa(.(T23, T45), X14))
qs1_in_aa([], []) → qs1_out_aa([], [])
qs1_in_aa(.(T22, .(T23, T24)), T9) → U17_aa(T22, T23, T24, T9, less14_in_aa(T22, T23))
less14_in_aa(0, s(T33)) → less14_out_aa(0, s(T33))
less14_in_aa(s(T38), s(T39)) → U1_aa(T38, T39, less14_in_aa(T38, T39))
U1_aa(T38, T39, less14_out_aa(T38, T39)) → less14_out_aa(s(T38), s(T39))
U17_aa(T22, T23, T24, T9, less14_out_aa(T22, T23)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U17_aa(T22, T23, T24, T9, less14_out_aa(T22, T23)) → U18_aa(T22, T23, T24, T9, part24_in_gaaa(T22, T24, X52, X53))
part24_in_gaaa(T62, .(T63, T64), .(T63, X126), X127) → U2_gaaa(T62, T63, T64, X126, X127, less14_in_ga(T62, T63))
less14_in_ga(0, s(T33)) → less14_out_ga(0, s(T33))
less14_in_ga(s(T38), s(T39)) → U1_ga(T38, T39, less14_in_ga(T38, T39))
U1_ga(T38, T39, less14_out_ga(T38, T39)) → less14_out_ga(s(T38), s(T39))
U2_gaaa(T62, T63, T64, X126, X127, less14_out_ga(T62, T63)) → part24_out_gaaa(T62, .(T63, T64), .(T63, X126), X127)
U2_gaaa(T62, T63, T64, X126, X127, less14_out_ga(T62, T63)) → U3_gaaa(T62, T63, T64, X126, X127, part24_in_gaaa(T62, T64, X126, X127))
part24_in_gaaa(T84, .(T85, T86), X177, .(T85, X178)) → U4_gaaa(T84, T85, T86, X177, X178, part24_in_gaaa(T84, T86, X177, X178))
part24_in_gaaa(T92, [], [], []) → part24_out_gaaa(T92, [], [], [])
U4_gaaa(T84, T85, T86, X177, X178, part24_out_gaaa(T84, T86, X177, X178)) → part24_out_gaaa(T84, .(T85, T86), X177, .(T85, X178))
U3_gaaa(T62, T63, T64, X126, X127, part24_out_gaaa(T62, T64, X126, X127)) → part24_out_gaaa(T62, .(T63, T64), .(T63, X126), X127)
U18_aa(T22, T23, T24, T9, part24_out_gaaa(T22, T24, X52, X53)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U17_aa(T22, T23, T24, T9, less14_out_aa(T22, T23)) → U19_aa(T22, T23, T24, T9, part24_in_gaaa(T22, T24, T45, T46))
U19_aa(T22, T23, T24, T9, part24_out_gaaa(T22, T24, T45, T46)) → U20_aa(T22, T23, T24, T9, qs1_in_aa(.(T23, T45), X14))
qs1_in_aa(.(T191, .(T192, T193)), T9) → U23_aa(T191, T192, T193, T9, part24_in_aaaa(T191, T193, X336, X337))
part24_in_aaaa(T62, .(T63, T64), .(T63, X126), X127) → U2_aaaa(T62, T63, T64, X126, X127, less14_in_aa(T62, T63))
U2_aaaa(T62, T63, T64, X126, X127, less14_out_aa(T62, T63)) → part24_out_aaaa(T62, .(T63, T64), .(T63, X126), X127)
U2_aaaa(T62, T63, T64, X126, X127, less14_out_aa(T62, T63)) → U3_aaaa(T62, T63, T64, X126, X127, part24_in_gaaa(T62, T64, X126, X127))
U3_aaaa(T62, T63, T64, X126, X127, part24_out_gaaa(T62, T64, X126, X127)) → part24_out_aaaa(T62, .(T63, T64), .(T63, X126), X127)
part24_in_aaaa(T84, .(T85, T86), X177, .(T85, X178)) → U4_aaaa(T84, T85, T86, X177, X178, part24_in_aaaa(T84, T86, X177, X178))
part24_in_aaaa(T92, [], [], []) → part24_out_aaaa(T92, [], [], [])
U4_aaaa(T84, T85, T86, X177, X178, part24_out_aaaa(T84, T86, X177, X178)) → part24_out_aaaa(T84, .(T85, T86), X177, .(T85, X178))
U23_aa(T191, T192, T193, T9, part24_out_aaaa(T191, T193, X336, X337)) → qs1_out_aa(.(T191, .(T192, T193)), T9)
qs1_in_aa(.(T191, .(T192, T193)), T9) → U24_aa(T191, T192, T193, T9, part24_in_aaaa(T191, T193, T197, T198))
U24_aa(T191, T192, T193, T9, part24_out_aaaa(T191, T193, T197, T198)) → U25_aa(T191, T192, T193, T9, qs42_in_aa(T197, X14))
qs42_in_aa([], []) → qs42_out_aa([], [])
qs42_in_aa(.(T103, T104), X230) → U5_aa(T103, T104, X230, part24_in_aaaa(T103, T104, X226, X227))
U5_aa(T103, T104, X230, part24_out_aaaa(T103, T104, X226, X227)) → qs42_out_aa(.(T103, T104), X230)
qs42_in_aa(.(T103, T104), X230) → U6_aa(T103, T104, X230, part24_in_aaaa(T103, T104, T108, T109))
U6_aa(T103, T104, X230, part24_out_aaaa(T103, T104, T108, T109)) → U7_aa(T103, T104, X230, qs42_in_aa(T108, X228))
U7_aa(T103, T104, X230, qs42_out_aa(T108, X228)) → qs42_out_aa(.(T103, T104), X230)
U6_aa(T103, T104, X230, part24_out_aaaa(T103, T104, T108, T109)) → U8_aa(T103, T104, X230, T109, qs42_in_aa(T108, T113))
U8_aa(T103, T104, X230, T109, qs42_out_aa(T108, T113)) → U9_aa(T103, T104, X230, qs42_in_aa(T109, X229))
U9_aa(T103, T104, X230, qs42_out_aa(T109, X229)) → qs42_out_aa(.(T103, T104), X230)
U8_aa(T103, T104, X230, T109, qs42_out_aa(T108, T113)) → U10_aa(T103, T104, X230, T113, qs42_in_aa(T109, T114))
U10_aa(T103, T104, X230, T113, qs42_out_aa(T109, T114)) → U11_aa(T103, T104, X230, app57_in_aaaa(T113, T103, T114, X230))
app57_in_aaaa([], T127, T128, .(T127, T128)) → app57_out_aaaa([], T127, T128, .(T127, T128))
app57_in_aaaa(.(T137, T138), T139, T140, .(T137, X270)) → U12_aaaa(T137, T138, T139, T140, X270, app57_in_aaaa(T138, T139, T140, X270))
U12_aaaa(T137, T138, T139, T140, X270, app57_out_aaaa(T138, T139, T140, X270)) → app57_out_aaaa(.(T137, T138), T139, T140, .(T137, X270))
U11_aa(T103, T104, X230, app57_out_aaaa(T113, T103, T114, X230)) → qs42_out_aa(.(T103, T104), X230)
U25_aa(T191, T192, T193, T9, qs42_out_aa(T197, X14)) → qs1_out_aa(.(T191, .(T192, T193)), T9)
U24_aa(T191, T192, T193, T9, part24_out_aaaa(T191, T193, T197, T198)) → U26_aa(T191, T192, T193, T9, T198, qs42_in_aa(T197, T202))
U26_aa(T191, T192, T193, T9, T198, qs42_out_aa(T197, T202)) → U27_aa(T191, T192, T193, T9, p41_in_aaaaa(.(T192, T198), X15, T202, T191, T9))
p41_in_aaaaa(T46, X15, T95, T22, T9) → U14_aaaaa(T46, X15, T95, T22, T9, qs42_in_aa(T46, X15))
U14_aaaaa(T46, X15, T95, T22, T9, qs42_out_aa(T46, X15)) → p41_out_aaaaa(T46, X15, T95, T22, T9)
p41_in_aaaaa(T46, T98, T95, T22, T9) → U15_aaaaa(T46, T98, T95, T22, T9, qs42_in_aa(T46, T98))
U15_aaaaa(T46, T98, T95, T22, T9, qs42_out_aa(T46, T98)) → U16_aaaaa(T46, T98, T95, T22, T9, app43_in_aaaa(T95, T22, T98, T9))
app43_in_aaaa([], T157, T158, .(T157, T158)) → app43_out_aaaa([], T157, T158, .(T157, T158))
app43_in_aaaa(.(T169, T170), T171, T172, .(T169, T174)) → U13_aaaa(T169, T170, T171, T172, T174, app43_in_aaaa(T170, T171, T172, T174))
U13_aaaa(T169, T170, T171, T172, T174, app43_out_aaaa(T170, T171, T172, T174)) → app43_out_aaaa(.(T169, T170), T171, T172, .(T169, T174))
U16_aaaaa(T46, T98, T95, T22, T9, app43_out_aaaa(T95, T22, T98, T9)) → p41_out_aaaaa(T46, T98, T95, T22, T9)
U27_aa(T191, T192, T193, T9, p41_out_aaaaa(.(T192, T198), X15, T202, T191, T9)) → qs1_out_aa(.(T191, .(T192, T193)), T9)
qs1_in_aa(.(T207, []), T9) → U28_aa(T207, T9, qs84_in_a(X14))
qs84_in_a([]) → qs84_out_a([])
U28_aa(T207, T9, qs84_out_a(X14)) → qs1_out_aa(.(T207, []), T9)
qs1_in_aa(.(T207, []), T9) → U29_aa(T207, T9, qs84_in_a(T210))
U29_aa(T207, T9, qs84_out_a(T210)) → U30_aa(T207, T9, qs84_in_a(X15))
U30_aa(T207, T9, qs84_out_a(X15)) → qs1_out_aa(.(T207, []), T9)
U29_aa(T207, T9, qs84_out_a(T210)) → U31_aa(T207, T9, T210, qs84_in_a(T213))
U31_aa(T207, T9, T210, qs84_out_a(T213)) → U32_aa(T207, T9, app43_in_gaga(T210, T207, T213, T9))
app43_in_gaga([], T157, T158, .(T157, T158)) → app43_out_gaga([], T157, T158, .(T157, T158))
app43_in_gaga(.(T169, T170), T171, T172, .(T169, T174)) → U13_gaga(T169, T170, T171, T172, T174, app43_in_gaga(T170, T171, T172, T174))
U13_gaga(T169, T170, T171, T172, T174, app43_out_gaga(T170, T171, T172, T174)) → app43_out_gaga(.(T169, T170), T171, T172, .(T169, T174))
U32_aa(T207, T9, app43_out_gaga(T210, T207, T213, T9)) → qs1_out_aa(.(T207, []), T9)
U20_aa(T22, T23, T24, T9, qs1_out_aa(.(T23, T45), X14)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U19_aa(T22, T23, T24, T9, part24_out_gaaa(T22, T24, T45, T46)) → U21_aa(T22, T23, T24, T9, T46, qs1_in_aa(.(T23, T45), T95))
U21_aa(T22, T23, T24, T9, T46, qs1_out_aa(.(T23, T45), T95)) → U22_aa(T22, T23, T24, T9, p41_in_aaaga(T46, X15, T95, T22, T9))
p41_in_aaaga(T46, X15, T95, T22, T9) → U14_aaaga(T46, X15, T95, T22, T9, qs42_in_aa(T46, X15))
U14_aaaga(T46, X15, T95, T22, T9, qs42_out_aa(T46, X15)) → p41_out_aaaga(T46, X15, T95, T22, T9)
p41_in_aaaga(T46, T98, T95, T22, T9) → U15_aaaga(T46, T98, T95, T22, T9, qs42_in_aa(T46, T98))
U15_aaaga(T46, T98, T95, T22, T9, qs42_out_aa(T46, T98)) → U16_aaaga(T46, T98, T95, T22, T9, app43_in_agaa(T95, T22, T98, T9))
app43_in_agaa([], T157, T158, .(T157, T158)) → app43_out_agaa([], T157, T158, .(T157, T158))
app43_in_agaa(.(T169, T170), T171, T172, .(T169, T174)) → U13_agaa(T169, T170, T171, T172, T174, app43_in_agaa(T170, T171, T172, T174))
U13_agaa(T169, T170, T171, T172, T174, app43_out_agaa(T170, T171, T172, T174)) → app43_out_agaa(.(T169, T170), T171, T172, .(T169, T174))
U16_aaaga(T46, T98, T95, T22, T9, app43_out_agaa(T95, T22, T98, T9)) → p41_out_aaaga(T46, T98, T95, T22, T9)
U22_aa(T22, T23, T24, T9, p41_out_aaaga(T46, X15, T95, T22, T9)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U20_ga(T22, T23, T24, T9, qs1_out_aa(.(T23, T45), X14)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U19_ga(T22, T23, T24, T9, part24_out_ggaa(T22, T24, T45, T46)) → U21_ga(T22, T23, T24, T9, T46, qs1_in_aa(.(T23, T45), T95))
U21_ga(T22, T23, T24, T9, T46, qs1_out_aa(.(T23, T45), T95)) → U22_ga(T22, T23, T24, T9, p41_in_aaaga(T46, X15, T95, T22, T9))
U22_ga(T22, T23, T24, T9, p41_out_aaaga(T46, X15, T95, T22, T9)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
qs1_in_ga(.(T191, .(T192, T193)), T9) → U23_ga(T191, T192, T193, T9, part24_in_ggaa(T191, T193, X336, X337))
U23_ga(T191, T192, T193, T9, part24_out_ggaa(T191, T193, X336, X337)) → qs1_out_ga(.(T191, .(T192, T193)), T9)
qs1_in_ga(.(T191, .(T192, T193)), T9) → U24_ga(T191, T192, T193, T9, part24_in_ggaa(T191, T193, T197, T198))
U24_ga(T191, T192, T193, T9, part24_out_ggaa(T191, T193, T197, T198)) → U25_ga(T191, T192, T193, T9, qs42_in_aa(T197, X14))
U25_ga(T191, T192, T193, T9, qs42_out_aa(T197, X14)) → qs1_out_ga(.(T191, .(T192, T193)), T9)
U24_ga(T191, T192, T193, T9, part24_out_ggaa(T191, T193, T197, T198)) → U26_ga(T191, T192, T193, T9, T198, qs42_in_aa(T197, T202))
U26_ga(T191, T192, T193, T9, T198, qs42_out_aa(T197, T202)) → U27_ga(T191, T192, T193, T9, p41_in_aaaga(.(T192, T198), X15, T202, T191, T9))
U27_ga(T191, T192, T193, T9, p41_out_aaaga(.(T192, T198), X15, T202, T191, T9)) → qs1_out_ga(.(T191, .(T192, T193)), T9)
qs1_in_ga(.(T207, []), T9) → U28_ga(T207, T9, qs84_in_a(X14))
U28_ga(T207, T9, qs84_out_a(X14)) → qs1_out_ga(.(T207, []), T9)
qs1_in_ga(.(T207, []), T9) → U29_ga(T207, T9, qs84_in_a(T210))
U29_ga(T207, T9, qs84_out_a(T210)) → U30_ga(T207, T9, qs84_in_a(X15))
U30_ga(T207, T9, qs84_out_a(X15)) → qs1_out_ga(.(T207, []), T9)
U29_ga(T207, T9, qs84_out_a(T210)) → U31_ga(T207, T9, T210, qs84_in_a(T213))
U31_ga(T207, T9, T210, qs84_out_a(T213)) → U32_ga(T207, T9, app43_in_ggga(T210, T207, T213, T9))
app43_in_ggga([], T157, T158, .(T157, T158)) → app43_out_ggga([], T157, T158, .(T157, T158))
app43_in_ggga(.(T169, T170), T171, T172, .(T169, T174)) → U13_ggga(T169, T170, T171, T172, T174, app43_in_ggga(T170, T171, T172, T174))
U13_ggga(T169, T170, T171, T172, T174, app43_out_ggga(T170, T171, T172, T174)) → app43_out_ggga(.(T169, T170), T171, T172, .(T169, T174))
U32_ga(T207, T9, app43_out_ggga(T210, T207, T213, T9)) → qs1_out_ga(.(T207, []), T9)
U2_GAAA(T62, T63, T64, X126, X127, less14_out_ga(T62, T63)) → PART24_IN_GAAA(T62, T64, X126, X127)
PART24_IN_GAAA(T62, .(T63, T64), .(T63, X126), X127) → U2_GAAA(T62, T63, T64, X126, X127, less14_in_ga(T62, T63))
PART24_IN_GAAA(T84, .(T85, T86), X177, .(T85, X178)) → PART24_IN_GAAA(T84, T86, X177, X178)
less14_in_ga(0, s(T33)) → less14_out_ga(0, s(T33))
less14_in_ga(s(T38), s(T39)) → U1_ga(T38, T39, less14_in_ga(T38, T39))
U1_ga(T38, T39, less14_out_ga(T38, T39)) → less14_out_ga(s(T38), s(T39))
U2_GAAA(T62, less14_out_ga(T62)) → PART24_IN_GAAA(T62)
PART24_IN_GAAA(T62) → U2_GAAA(T62, less14_in_ga(T62))
PART24_IN_GAAA(T84) → PART24_IN_GAAA(T84)
less14_in_ga(0) → less14_out_ga(0)
less14_in_ga(s(T38)) → U1_ga(T38, less14_in_ga(T38))
U1_ga(T38, less14_out_ga(T38)) → less14_out_ga(s(T38))
less14_in_ga(x0)
U1_ga(x0, x1)
PART24_IN_GAAA(0) → U2_GAAA(0, less14_out_ga(0))
PART24_IN_GAAA(s(x0)) → U2_GAAA(s(x0), U1_ga(x0, less14_in_ga(x0)))
U2_GAAA(T62, less14_out_ga(T62)) → PART24_IN_GAAA(T62)
PART24_IN_GAAA(T84) → PART24_IN_GAAA(T84)
PART24_IN_GAAA(0) → U2_GAAA(0, less14_out_ga(0))
PART24_IN_GAAA(s(x0)) → U2_GAAA(s(x0), U1_ga(x0, less14_in_ga(x0)))
less14_in_ga(0) → less14_out_ga(0)
less14_in_ga(s(T38)) → U1_ga(T38, less14_in_ga(T38))
U1_ga(T38, less14_out_ga(T38)) → less14_out_ga(s(T38))
less14_in_ga(x0)
U1_ga(x0, x1)
U2_GAAA(0, less14_out_ga(0)) → PART24_IN_GAAA(0)
U2_GAAA(s(z0), less14_out_ga(s(z0))) → PART24_IN_GAAA(s(z0))
PART24_IN_GAAA(T84) → PART24_IN_GAAA(T84)
PART24_IN_GAAA(0) → U2_GAAA(0, less14_out_ga(0))
PART24_IN_GAAA(s(x0)) → U2_GAAA(s(x0), U1_ga(x0, less14_in_ga(x0)))
U2_GAAA(0, less14_out_ga(0)) → PART24_IN_GAAA(0)
U2_GAAA(s(z0), less14_out_ga(s(z0))) → PART24_IN_GAAA(s(z0))
less14_in_ga(0) → less14_out_ga(0)
less14_in_ga(s(T38)) → U1_ga(T38, less14_in_ga(T38))
U1_ga(T38, less14_out_ga(T38)) → less14_out_ga(s(T38))
less14_in_ga(x0)
U1_ga(x0, x1)
LESS14_IN_AA(s(T38), s(T39)) → LESS14_IN_AA(T38, T39)
qs1_in_ga([], []) → qs1_out_ga([], [])
qs1_in_ga(.(T22, .(T23, T24)), T9) → U17_ga(T22, T23, T24, T9, less14_in_gg(T22, T23))
less14_in_gg(0, s(T33)) → less14_out_gg(0, s(T33))
less14_in_gg(s(T38), s(T39)) → U1_gg(T38, T39, less14_in_gg(T38, T39))
U1_gg(T38, T39, less14_out_gg(T38, T39)) → less14_out_gg(s(T38), s(T39))
U17_ga(T22, T23, T24, T9, less14_out_gg(T22, T23)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U17_ga(T22, T23, T24, T9, less14_out_gg(T22, T23)) → U18_ga(T22, T23, T24, T9, part24_in_ggaa(T22, T24, X52, X53))
part24_in_ggaa(T62, .(T63, T64), .(T63, X126), X127) → U2_ggaa(T62, T63, T64, X126, X127, less14_in_gg(T62, T63))
U2_ggaa(T62, T63, T64, X126, X127, less14_out_gg(T62, T63)) → part24_out_ggaa(T62, .(T63, T64), .(T63, X126), X127)
U2_ggaa(T62, T63, T64, X126, X127, less14_out_gg(T62, T63)) → U3_ggaa(T62, T63, T64, X126, X127, part24_in_ggaa(T62, T64, X126, X127))
part24_in_ggaa(T84, .(T85, T86), X177, .(T85, X178)) → U4_ggaa(T84, T85, T86, X177, X178, part24_in_ggaa(T84, T86, X177, X178))
part24_in_ggaa(T92, [], [], []) → part24_out_ggaa(T92, [], [], [])
U4_ggaa(T84, T85, T86, X177, X178, part24_out_ggaa(T84, T86, X177, X178)) → part24_out_ggaa(T84, .(T85, T86), X177, .(T85, X178))
U3_ggaa(T62, T63, T64, X126, X127, part24_out_ggaa(T62, T64, X126, X127)) → part24_out_ggaa(T62, .(T63, T64), .(T63, X126), X127)
U18_ga(T22, T23, T24, T9, part24_out_ggaa(T22, T24, X52, X53)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U17_ga(T22, T23, T24, T9, less14_out_gg(T22, T23)) → U19_ga(T22, T23, T24, T9, part24_in_ggaa(T22, T24, T45, T46))
U19_ga(T22, T23, T24, T9, part24_out_ggaa(T22, T24, T45, T46)) → U20_ga(T22, T23, T24, T9, qs1_in_aa(.(T23, T45), X14))
qs1_in_aa([], []) → qs1_out_aa([], [])
qs1_in_aa(.(T22, .(T23, T24)), T9) → U17_aa(T22, T23, T24, T9, less14_in_aa(T22, T23))
less14_in_aa(0, s(T33)) → less14_out_aa(0, s(T33))
less14_in_aa(s(T38), s(T39)) → U1_aa(T38, T39, less14_in_aa(T38, T39))
U1_aa(T38, T39, less14_out_aa(T38, T39)) → less14_out_aa(s(T38), s(T39))
U17_aa(T22, T23, T24, T9, less14_out_aa(T22, T23)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U17_aa(T22, T23, T24, T9, less14_out_aa(T22, T23)) → U18_aa(T22, T23, T24, T9, part24_in_gaaa(T22, T24, X52, X53))
part24_in_gaaa(T62, .(T63, T64), .(T63, X126), X127) → U2_gaaa(T62, T63, T64, X126, X127, less14_in_ga(T62, T63))
less14_in_ga(0, s(T33)) → less14_out_ga(0, s(T33))
less14_in_ga(s(T38), s(T39)) → U1_ga(T38, T39, less14_in_ga(T38, T39))
U1_ga(T38, T39, less14_out_ga(T38, T39)) → less14_out_ga(s(T38), s(T39))
U2_gaaa(T62, T63, T64, X126, X127, less14_out_ga(T62, T63)) → part24_out_gaaa(T62, .(T63, T64), .(T63, X126), X127)
U2_gaaa(T62, T63, T64, X126, X127, less14_out_ga(T62, T63)) → U3_gaaa(T62, T63, T64, X126, X127, part24_in_gaaa(T62, T64, X126, X127))
part24_in_gaaa(T84, .(T85, T86), X177, .(T85, X178)) → U4_gaaa(T84, T85, T86, X177, X178, part24_in_gaaa(T84, T86, X177, X178))
part24_in_gaaa(T92, [], [], []) → part24_out_gaaa(T92, [], [], [])
U4_gaaa(T84, T85, T86, X177, X178, part24_out_gaaa(T84, T86, X177, X178)) → part24_out_gaaa(T84, .(T85, T86), X177, .(T85, X178))
U3_gaaa(T62, T63, T64, X126, X127, part24_out_gaaa(T62, T64, X126, X127)) → part24_out_gaaa(T62, .(T63, T64), .(T63, X126), X127)
U18_aa(T22, T23, T24, T9, part24_out_gaaa(T22, T24, X52, X53)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U17_aa(T22, T23, T24, T9, less14_out_aa(T22, T23)) → U19_aa(T22, T23, T24, T9, part24_in_gaaa(T22, T24, T45, T46))
U19_aa(T22, T23, T24, T9, part24_out_gaaa(T22, T24, T45, T46)) → U20_aa(T22, T23, T24, T9, qs1_in_aa(.(T23, T45), X14))
qs1_in_aa(.(T191, .(T192, T193)), T9) → U23_aa(T191, T192, T193, T9, part24_in_aaaa(T191, T193, X336, X337))
part24_in_aaaa(T62, .(T63, T64), .(T63, X126), X127) → U2_aaaa(T62, T63, T64, X126, X127, less14_in_aa(T62, T63))
U2_aaaa(T62, T63, T64, X126, X127, less14_out_aa(T62, T63)) → part24_out_aaaa(T62, .(T63, T64), .(T63, X126), X127)
U2_aaaa(T62, T63, T64, X126, X127, less14_out_aa(T62, T63)) → U3_aaaa(T62, T63, T64, X126, X127, part24_in_gaaa(T62, T64, X126, X127))
U3_aaaa(T62, T63, T64, X126, X127, part24_out_gaaa(T62, T64, X126, X127)) → part24_out_aaaa(T62, .(T63, T64), .(T63, X126), X127)
part24_in_aaaa(T84, .(T85, T86), X177, .(T85, X178)) → U4_aaaa(T84, T85, T86, X177, X178, part24_in_aaaa(T84, T86, X177, X178))
part24_in_aaaa(T92, [], [], []) → part24_out_aaaa(T92, [], [], [])
U4_aaaa(T84, T85, T86, X177, X178, part24_out_aaaa(T84, T86, X177, X178)) → part24_out_aaaa(T84, .(T85, T86), X177, .(T85, X178))
U23_aa(T191, T192, T193, T9, part24_out_aaaa(T191, T193, X336, X337)) → qs1_out_aa(.(T191, .(T192, T193)), T9)
qs1_in_aa(.(T191, .(T192, T193)), T9) → U24_aa(T191, T192, T193, T9, part24_in_aaaa(T191, T193, T197, T198))
U24_aa(T191, T192, T193, T9, part24_out_aaaa(T191, T193, T197, T198)) → U25_aa(T191, T192, T193, T9, qs42_in_aa(T197, X14))
qs42_in_aa([], []) → qs42_out_aa([], [])
qs42_in_aa(.(T103, T104), X230) → U5_aa(T103, T104, X230, part24_in_aaaa(T103, T104, X226, X227))
U5_aa(T103, T104, X230, part24_out_aaaa(T103, T104, X226, X227)) → qs42_out_aa(.(T103, T104), X230)
qs42_in_aa(.(T103, T104), X230) → U6_aa(T103, T104, X230, part24_in_aaaa(T103, T104, T108, T109))
U6_aa(T103, T104, X230, part24_out_aaaa(T103, T104, T108, T109)) → U7_aa(T103, T104, X230, qs42_in_aa(T108, X228))
U7_aa(T103, T104, X230, qs42_out_aa(T108, X228)) → qs42_out_aa(.(T103, T104), X230)
U6_aa(T103, T104, X230, part24_out_aaaa(T103, T104, T108, T109)) → U8_aa(T103, T104, X230, T109, qs42_in_aa(T108, T113))
U8_aa(T103, T104, X230, T109, qs42_out_aa(T108, T113)) → U9_aa(T103, T104, X230, qs42_in_aa(T109, X229))
U9_aa(T103, T104, X230, qs42_out_aa(T109, X229)) → qs42_out_aa(.(T103, T104), X230)
U8_aa(T103, T104, X230, T109, qs42_out_aa(T108, T113)) → U10_aa(T103, T104, X230, T113, qs42_in_aa(T109, T114))
U10_aa(T103, T104, X230, T113, qs42_out_aa(T109, T114)) → U11_aa(T103, T104, X230, app57_in_aaaa(T113, T103, T114, X230))
app57_in_aaaa([], T127, T128, .(T127, T128)) → app57_out_aaaa([], T127, T128, .(T127, T128))
app57_in_aaaa(.(T137, T138), T139, T140, .(T137, X270)) → U12_aaaa(T137, T138, T139, T140, X270, app57_in_aaaa(T138, T139, T140, X270))
U12_aaaa(T137, T138, T139, T140, X270, app57_out_aaaa(T138, T139, T140, X270)) → app57_out_aaaa(.(T137, T138), T139, T140, .(T137, X270))
U11_aa(T103, T104, X230, app57_out_aaaa(T113, T103, T114, X230)) → qs42_out_aa(.(T103, T104), X230)
U25_aa(T191, T192, T193, T9, qs42_out_aa(T197, X14)) → qs1_out_aa(.(T191, .(T192, T193)), T9)
U24_aa(T191, T192, T193, T9, part24_out_aaaa(T191, T193, T197, T198)) → U26_aa(T191, T192, T193, T9, T198, qs42_in_aa(T197, T202))
U26_aa(T191, T192, T193, T9, T198, qs42_out_aa(T197, T202)) → U27_aa(T191, T192, T193, T9, p41_in_aaaaa(.(T192, T198), X15, T202, T191, T9))
p41_in_aaaaa(T46, X15, T95, T22, T9) → U14_aaaaa(T46, X15, T95, T22, T9, qs42_in_aa(T46, X15))
U14_aaaaa(T46, X15, T95, T22, T9, qs42_out_aa(T46, X15)) → p41_out_aaaaa(T46, X15, T95, T22, T9)
p41_in_aaaaa(T46, T98, T95, T22, T9) → U15_aaaaa(T46, T98, T95, T22, T9, qs42_in_aa(T46, T98))
U15_aaaaa(T46, T98, T95, T22, T9, qs42_out_aa(T46, T98)) → U16_aaaaa(T46, T98, T95, T22, T9, app43_in_aaaa(T95, T22, T98, T9))
app43_in_aaaa([], T157, T158, .(T157, T158)) → app43_out_aaaa([], T157, T158, .(T157, T158))
app43_in_aaaa(.(T169, T170), T171, T172, .(T169, T174)) → U13_aaaa(T169, T170, T171, T172, T174, app43_in_aaaa(T170, T171, T172, T174))
U13_aaaa(T169, T170, T171, T172, T174, app43_out_aaaa(T170, T171, T172, T174)) → app43_out_aaaa(.(T169, T170), T171, T172, .(T169, T174))
U16_aaaaa(T46, T98, T95, T22, T9, app43_out_aaaa(T95, T22, T98, T9)) → p41_out_aaaaa(T46, T98, T95, T22, T9)
U27_aa(T191, T192, T193, T9, p41_out_aaaaa(.(T192, T198), X15, T202, T191, T9)) → qs1_out_aa(.(T191, .(T192, T193)), T9)
qs1_in_aa(.(T207, []), T9) → U28_aa(T207, T9, qs84_in_a(X14))
qs84_in_a([]) → qs84_out_a([])
U28_aa(T207, T9, qs84_out_a(X14)) → qs1_out_aa(.(T207, []), T9)
qs1_in_aa(.(T207, []), T9) → U29_aa(T207, T9, qs84_in_a(T210))
U29_aa(T207, T9, qs84_out_a(T210)) → U30_aa(T207, T9, qs84_in_a(X15))
U30_aa(T207, T9, qs84_out_a(X15)) → qs1_out_aa(.(T207, []), T9)
U29_aa(T207, T9, qs84_out_a(T210)) → U31_aa(T207, T9, T210, qs84_in_a(T213))
U31_aa(T207, T9, T210, qs84_out_a(T213)) → U32_aa(T207, T9, app43_in_gaga(T210, T207, T213, T9))
app43_in_gaga([], T157, T158, .(T157, T158)) → app43_out_gaga([], T157, T158, .(T157, T158))
app43_in_gaga(.(T169, T170), T171, T172, .(T169, T174)) → U13_gaga(T169, T170, T171, T172, T174, app43_in_gaga(T170, T171, T172, T174))
U13_gaga(T169, T170, T171, T172, T174, app43_out_gaga(T170, T171, T172, T174)) → app43_out_gaga(.(T169, T170), T171, T172, .(T169, T174))
U32_aa(T207, T9, app43_out_gaga(T210, T207, T213, T9)) → qs1_out_aa(.(T207, []), T9)
U20_aa(T22, T23, T24, T9, qs1_out_aa(.(T23, T45), X14)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U19_aa(T22, T23, T24, T9, part24_out_gaaa(T22, T24, T45, T46)) → U21_aa(T22, T23, T24, T9, T46, qs1_in_aa(.(T23, T45), T95))
U21_aa(T22, T23, T24, T9, T46, qs1_out_aa(.(T23, T45), T95)) → U22_aa(T22, T23, T24, T9, p41_in_aaaga(T46, X15, T95, T22, T9))
p41_in_aaaga(T46, X15, T95, T22, T9) → U14_aaaga(T46, X15, T95, T22, T9, qs42_in_aa(T46, X15))
U14_aaaga(T46, X15, T95, T22, T9, qs42_out_aa(T46, X15)) → p41_out_aaaga(T46, X15, T95, T22, T9)
p41_in_aaaga(T46, T98, T95, T22, T9) → U15_aaaga(T46, T98, T95, T22, T9, qs42_in_aa(T46, T98))
U15_aaaga(T46, T98, T95, T22, T9, qs42_out_aa(T46, T98)) → U16_aaaga(T46, T98, T95, T22, T9, app43_in_agaa(T95, T22, T98, T9))
app43_in_agaa([], T157, T158, .(T157, T158)) → app43_out_agaa([], T157, T158, .(T157, T158))
app43_in_agaa(.(T169, T170), T171, T172, .(T169, T174)) → U13_agaa(T169, T170, T171, T172, T174, app43_in_agaa(T170, T171, T172, T174))
U13_agaa(T169, T170, T171, T172, T174, app43_out_agaa(T170, T171, T172, T174)) → app43_out_agaa(.(T169, T170), T171, T172, .(T169, T174))
U16_aaaga(T46, T98, T95, T22, T9, app43_out_agaa(T95, T22, T98, T9)) → p41_out_aaaga(T46, T98, T95, T22, T9)
U22_aa(T22, T23, T24, T9, p41_out_aaaga(T46, X15, T95, T22, T9)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U20_ga(T22, T23, T24, T9, qs1_out_aa(.(T23, T45), X14)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U19_ga(T22, T23, T24, T9, part24_out_ggaa(T22, T24, T45, T46)) → U21_ga(T22, T23, T24, T9, T46, qs1_in_aa(.(T23, T45), T95))
U21_ga(T22, T23, T24, T9, T46, qs1_out_aa(.(T23, T45), T95)) → U22_ga(T22, T23, T24, T9, p41_in_aaaga(T46, X15, T95, T22, T9))
U22_ga(T22, T23, T24, T9, p41_out_aaaga(T46, X15, T95, T22, T9)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
qs1_in_ga(.(T191, .(T192, T193)), T9) → U23_ga(T191, T192, T193, T9, part24_in_ggaa(T191, T193, X336, X337))
U23_ga(T191, T192, T193, T9, part24_out_ggaa(T191, T193, X336, X337)) → qs1_out_ga(.(T191, .(T192, T193)), T9)
qs1_in_ga(.(T191, .(T192, T193)), T9) → U24_ga(T191, T192, T193, T9, part24_in_ggaa(T191, T193, T197, T198))
U24_ga(T191, T192, T193, T9, part24_out_ggaa(T191, T193, T197, T198)) → U25_ga(T191, T192, T193, T9, qs42_in_aa(T197, X14))
U25_ga(T191, T192, T193, T9, qs42_out_aa(T197, X14)) → qs1_out_ga(.(T191, .(T192, T193)), T9)
U24_ga(T191, T192, T193, T9, part24_out_ggaa(T191, T193, T197, T198)) → U26_ga(T191, T192, T193, T9, T198, qs42_in_aa(T197, T202))
U26_ga(T191, T192, T193, T9, T198, qs42_out_aa(T197, T202)) → U27_ga(T191, T192, T193, T9, p41_in_aaaga(.(T192, T198), X15, T202, T191, T9))
U27_ga(T191, T192, T193, T9, p41_out_aaaga(.(T192, T198), X15, T202, T191, T9)) → qs1_out_ga(.(T191, .(T192, T193)), T9)
qs1_in_ga(.(T207, []), T9) → U28_ga(T207, T9, qs84_in_a(X14))
U28_ga(T207, T9, qs84_out_a(X14)) → qs1_out_ga(.(T207, []), T9)
qs1_in_ga(.(T207, []), T9) → U29_ga(T207, T9, qs84_in_a(T210))
U29_ga(T207, T9, qs84_out_a(T210)) → U30_ga(T207, T9, qs84_in_a(X15))
U30_ga(T207, T9, qs84_out_a(X15)) → qs1_out_ga(.(T207, []), T9)
U29_ga(T207, T9, qs84_out_a(T210)) → U31_ga(T207, T9, T210, qs84_in_a(T213))
U31_ga(T207, T9, T210, qs84_out_a(T213)) → U32_ga(T207, T9, app43_in_ggga(T210, T207, T213, T9))
app43_in_ggga([], T157, T158, .(T157, T158)) → app43_out_ggga([], T157, T158, .(T157, T158))
app43_in_ggga(.(T169, T170), T171, T172, .(T169, T174)) → U13_ggga(T169, T170, T171, T172, T174, app43_in_ggga(T170, T171, T172, T174))
U13_ggga(T169, T170, T171, T172, T174, app43_out_ggga(T170, T171, T172, T174)) → app43_out_ggga(.(T169, T170), T171, T172, .(T169, T174))
U32_ga(T207, T9, app43_out_ggga(T210, T207, T213, T9)) → qs1_out_ga(.(T207, []), T9)
LESS14_IN_AA(s(T38), s(T39)) → LESS14_IN_AA(T38, T39)
LESS14_IN_AA → LESS14_IN_AA
PART24_IN_AAAA(T84, .(T85, T86), X177, .(T85, X178)) → PART24_IN_AAAA(T84, T86, X177, X178)
qs1_in_ga([], []) → qs1_out_ga([], [])
qs1_in_ga(.(T22, .(T23, T24)), T9) → U17_ga(T22, T23, T24, T9, less14_in_gg(T22, T23))
less14_in_gg(0, s(T33)) → less14_out_gg(0, s(T33))
less14_in_gg(s(T38), s(T39)) → U1_gg(T38, T39, less14_in_gg(T38, T39))
U1_gg(T38, T39, less14_out_gg(T38, T39)) → less14_out_gg(s(T38), s(T39))
U17_ga(T22, T23, T24, T9, less14_out_gg(T22, T23)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U17_ga(T22, T23, T24, T9, less14_out_gg(T22, T23)) → U18_ga(T22, T23, T24, T9, part24_in_ggaa(T22, T24, X52, X53))
part24_in_ggaa(T62, .(T63, T64), .(T63, X126), X127) → U2_ggaa(T62, T63, T64, X126, X127, less14_in_gg(T62, T63))
U2_ggaa(T62, T63, T64, X126, X127, less14_out_gg(T62, T63)) → part24_out_ggaa(T62, .(T63, T64), .(T63, X126), X127)
U2_ggaa(T62, T63, T64, X126, X127, less14_out_gg(T62, T63)) → U3_ggaa(T62, T63, T64, X126, X127, part24_in_ggaa(T62, T64, X126, X127))
part24_in_ggaa(T84, .(T85, T86), X177, .(T85, X178)) → U4_ggaa(T84, T85, T86, X177, X178, part24_in_ggaa(T84, T86, X177, X178))
part24_in_ggaa(T92, [], [], []) → part24_out_ggaa(T92, [], [], [])
U4_ggaa(T84, T85, T86, X177, X178, part24_out_ggaa(T84, T86, X177, X178)) → part24_out_ggaa(T84, .(T85, T86), X177, .(T85, X178))
U3_ggaa(T62, T63, T64, X126, X127, part24_out_ggaa(T62, T64, X126, X127)) → part24_out_ggaa(T62, .(T63, T64), .(T63, X126), X127)
U18_ga(T22, T23, T24, T9, part24_out_ggaa(T22, T24, X52, X53)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U17_ga(T22, T23, T24, T9, less14_out_gg(T22, T23)) → U19_ga(T22, T23, T24, T9, part24_in_ggaa(T22, T24, T45, T46))
U19_ga(T22, T23, T24, T9, part24_out_ggaa(T22, T24, T45, T46)) → U20_ga(T22, T23, T24, T9, qs1_in_aa(.(T23, T45), X14))
qs1_in_aa([], []) → qs1_out_aa([], [])
qs1_in_aa(.(T22, .(T23, T24)), T9) → U17_aa(T22, T23, T24, T9, less14_in_aa(T22, T23))
less14_in_aa(0, s(T33)) → less14_out_aa(0, s(T33))
less14_in_aa(s(T38), s(T39)) → U1_aa(T38, T39, less14_in_aa(T38, T39))
U1_aa(T38, T39, less14_out_aa(T38, T39)) → less14_out_aa(s(T38), s(T39))
U17_aa(T22, T23, T24, T9, less14_out_aa(T22, T23)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U17_aa(T22, T23, T24, T9, less14_out_aa(T22, T23)) → U18_aa(T22, T23, T24, T9, part24_in_gaaa(T22, T24, X52, X53))
part24_in_gaaa(T62, .(T63, T64), .(T63, X126), X127) → U2_gaaa(T62, T63, T64, X126, X127, less14_in_ga(T62, T63))
less14_in_ga(0, s(T33)) → less14_out_ga(0, s(T33))
less14_in_ga(s(T38), s(T39)) → U1_ga(T38, T39, less14_in_ga(T38, T39))
U1_ga(T38, T39, less14_out_ga(T38, T39)) → less14_out_ga(s(T38), s(T39))
U2_gaaa(T62, T63, T64, X126, X127, less14_out_ga(T62, T63)) → part24_out_gaaa(T62, .(T63, T64), .(T63, X126), X127)
U2_gaaa(T62, T63, T64, X126, X127, less14_out_ga(T62, T63)) → U3_gaaa(T62, T63, T64, X126, X127, part24_in_gaaa(T62, T64, X126, X127))
part24_in_gaaa(T84, .(T85, T86), X177, .(T85, X178)) → U4_gaaa(T84, T85, T86, X177, X178, part24_in_gaaa(T84, T86, X177, X178))
part24_in_gaaa(T92, [], [], []) → part24_out_gaaa(T92, [], [], [])
U4_gaaa(T84, T85, T86, X177, X178, part24_out_gaaa(T84, T86, X177, X178)) → part24_out_gaaa(T84, .(T85, T86), X177, .(T85, X178))
U3_gaaa(T62, T63, T64, X126, X127, part24_out_gaaa(T62, T64, X126, X127)) → part24_out_gaaa(T62, .(T63, T64), .(T63, X126), X127)
U18_aa(T22, T23, T24, T9, part24_out_gaaa(T22, T24, X52, X53)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U17_aa(T22, T23, T24, T9, less14_out_aa(T22, T23)) → U19_aa(T22, T23, T24, T9, part24_in_gaaa(T22, T24, T45, T46))
U19_aa(T22, T23, T24, T9, part24_out_gaaa(T22, T24, T45, T46)) → U20_aa(T22, T23, T24, T9, qs1_in_aa(.(T23, T45), X14))
qs1_in_aa(.(T191, .(T192, T193)), T9) → U23_aa(T191, T192, T193, T9, part24_in_aaaa(T191, T193, X336, X337))
part24_in_aaaa(T62, .(T63, T64), .(T63, X126), X127) → U2_aaaa(T62, T63, T64, X126, X127, less14_in_aa(T62, T63))
U2_aaaa(T62, T63, T64, X126, X127, less14_out_aa(T62, T63)) → part24_out_aaaa(T62, .(T63, T64), .(T63, X126), X127)
U2_aaaa(T62, T63, T64, X126, X127, less14_out_aa(T62, T63)) → U3_aaaa(T62, T63, T64, X126, X127, part24_in_gaaa(T62, T64, X126, X127))
U3_aaaa(T62, T63, T64, X126, X127, part24_out_gaaa(T62, T64, X126, X127)) → part24_out_aaaa(T62, .(T63, T64), .(T63, X126), X127)
part24_in_aaaa(T84, .(T85, T86), X177, .(T85, X178)) → U4_aaaa(T84, T85, T86, X177, X178, part24_in_aaaa(T84, T86, X177, X178))
part24_in_aaaa(T92, [], [], []) → part24_out_aaaa(T92, [], [], [])
U4_aaaa(T84, T85, T86, X177, X178, part24_out_aaaa(T84, T86, X177, X178)) → part24_out_aaaa(T84, .(T85, T86), X177, .(T85, X178))
U23_aa(T191, T192, T193, T9, part24_out_aaaa(T191, T193, X336, X337)) → qs1_out_aa(.(T191, .(T192, T193)), T9)
qs1_in_aa(.(T191, .(T192, T193)), T9) → U24_aa(T191, T192, T193, T9, part24_in_aaaa(T191, T193, T197, T198))
U24_aa(T191, T192, T193, T9, part24_out_aaaa(T191, T193, T197, T198)) → U25_aa(T191, T192, T193, T9, qs42_in_aa(T197, X14))
qs42_in_aa([], []) → qs42_out_aa([], [])
qs42_in_aa(.(T103, T104), X230) → U5_aa(T103, T104, X230, part24_in_aaaa(T103, T104, X226, X227))
U5_aa(T103, T104, X230, part24_out_aaaa(T103, T104, X226, X227)) → qs42_out_aa(.(T103, T104), X230)
qs42_in_aa(.(T103, T104), X230) → U6_aa(T103, T104, X230, part24_in_aaaa(T103, T104, T108, T109))
U6_aa(T103, T104, X230, part24_out_aaaa(T103, T104, T108, T109)) → U7_aa(T103, T104, X230, qs42_in_aa(T108, X228))
U7_aa(T103, T104, X230, qs42_out_aa(T108, X228)) → qs42_out_aa(.(T103, T104), X230)
U6_aa(T103, T104, X230, part24_out_aaaa(T103, T104, T108, T109)) → U8_aa(T103, T104, X230, T109, qs42_in_aa(T108, T113))
U8_aa(T103, T104, X230, T109, qs42_out_aa(T108, T113)) → U9_aa(T103, T104, X230, qs42_in_aa(T109, X229))
U9_aa(T103, T104, X230, qs42_out_aa(T109, X229)) → qs42_out_aa(.(T103, T104), X230)
U8_aa(T103, T104, X230, T109, qs42_out_aa(T108, T113)) → U10_aa(T103, T104, X230, T113, qs42_in_aa(T109, T114))
U10_aa(T103, T104, X230, T113, qs42_out_aa(T109, T114)) → U11_aa(T103, T104, X230, app57_in_aaaa(T113, T103, T114, X230))
app57_in_aaaa([], T127, T128, .(T127, T128)) → app57_out_aaaa([], T127, T128, .(T127, T128))
app57_in_aaaa(.(T137, T138), T139, T140, .(T137, X270)) → U12_aaaa(T137, T138, T139, T140, X270, app57_in_aaaa(T138, T139, T140, X270))
U12_aaaa(T137, T138, T139, T140, X270, app57_out_aaaa(T138, T139, T140, X270)) → app57_out_aaaa(.(T137, T138), T139, T140, .(T137, X270))
U11_aa(T103, T104, X230, app57_out_aaaa(T113, T103, T114, X230)) → qs42_out_aa(.(T103, T104), X230)
U25_aa(T191, T192, T193, T9, qs42_out_aa(T197, X14)) → qs1_out_aa(.(T191, .(T192, T193)), T9)
U24_aa(T191, T192, T193, T9, part24_out_aaaa(T191, T193, T197, T198)) → U26_aa(T191, T192, T193, T9, T198, qs42_in_aa(T197, T202))
U26_aa(T191, T192, T193, T9, T198, qs42_out_aa(T197, T202)) → U27_aa(T191, T192, T193, T9, p41_in_aaaaa(.(T192, T198), X15, T202, T191, T9))
p41_in_aaaaa(T46, X15, T95, T22, T9) → U14_aaaaa(T46, X15, T95, T22, T9, qs42_in_aa(T46, X15))
U14_aaaaa(T46, X15, T95, T22, T9, qs42_out_aa(T46, X15)) → p41_out_aaaaa(T46, X15, T95, T22, T9)
p41_in_aaaaa(T46, T98, T95, T22, T9) → U15_aaaaa(T46, T98, T95, T22, T9, qs42_in_aa(T46, T98))
U15_aaaaa(T46, T98, T95, T22, T9, qs42_out_aa(T46, T98)) → U16_aaaaa(T46, T98, T95, T22, T9, app43_in_aaaa(T95, T22, T98, T9))
app43_in_aaaa([], T157, T158, .(T157, T158)) → app43_out_aaaa([], T157, T158, .(T157, T158))
app43_in_aaaa(.(T169, T170), T171, T172, .(T169, T174)) → U13_aaaa(T169, T170, T171, T172, T174, app43_in_aaaa(T170, T171, T172, T174))
U13_aaaa(T169, T170, T171, T172, T174, app43_out_aaaa(T170, T171, T172, T174)) → app43_out_aaaa(.(T169, T170), T171, T172, .(T169, T174))
U16_aaaaa(T46, T98, T95, T22, T9, app43_out_aaaa(T95, T22, T98, T9)) → p41_out_aaaaa(T46, T98, T95, T22, T9)
U27_aa(T191, T192, T193, T9, p41_out_aaaaa(.(T192, T198), X15, T202, T191, T9)) → qs1_out_aa(.(T191, .(T192, T193)), T9)
qs1_in_aa(.(T207, []), T9) → U28_aa(T207, T9, qs84_in_a(X14))
qs84_in_a([]) → qs84_out_a([])
U28_aa(T207, T9, qs84_out_a(X14)) → qs1_out_aa(.(T207, []), T9)
qs1_in_aa(.(T207, []), T9) → U29_aa(T207, T9, qs84_in_a(T210))
U29_aa(T207, T9, qs84_out_a(T210)) → U30_aa(T207, T9, qs84_in_a(X15))
U30_aa(T207, T9, qs84_out_a(X15)) → qs1_out_aa(.(T207, []), T9)
U29_aa(T207, T9, qs84_out_a(T210)) → U31_aa(T207, T9, T210, qs84_in_a(T213))
U31_aa(T207, T9, T210, qs84_out_a(T213)) → U32_aa(T207, T9, app43_in_gaga(T210, T207, T213, T9))
app43_in_gaga([], T157, T158, .(T157, T158)) → app43_out_gaga([], T157, T158, .(T157, T158))
app43_in_gaga(.(T169, T170), T171, T172, .(T169, T174)) → U13_gaga(T169, T170, T171, T172, T174, app43_in_gaga(T170, T171, T172, T174))
U13_gaga(T169, T170, T171, T172, T174, app43_out_gaga(T170, T171, T172, T174)) → app43_out_gaga(.(T169, T170), T171, T172, .(T169, T174))
U32_aa(T207, T9, app43_out_gaga(T210, T207, T213, T9)) → qs1_out_aa(.(T207, []), T9)
U20_aa(T22, T23, T24, T9, qs1_out_aa(.(T23, T45), X14)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U19_aa(T22, T23, T24, T9, part24_out_gaaa(T22, T24, T45, T46)) → U21_aa(T22, T23, T24, T9, T46, qs1_in_aa(.(T23, T45), T95))
U21_aa(T22, T23, T24, T9, T46, qs1_out_aa(.(T23, T45), T95)) → U22_aa(T22, T23, T24, T9, p41_in_aaaga(T46, X15, T95, T22, T9))
p41_in_aaaga(T46, X15, T95, T22, T9) → U14_aaaga(T46, X15, T95, T22, T9, qs42_in_aa(T46, X15))
U14_aaaga(T46, X15, T95, T22, T9, qs42_out_aa(T46, X15)) → p41_out_aaaga(T46, X15, T95, T22, T9)
p41_in_aaaga(T46, T98, T95, T22, T9) → U15_aaaga(T46, T98, T95, T22, T9, qs42_in_aa(T46, T98))
U15_aaaga(T46, T98, T95, T22, T9, qs42_out_aa(T46, T98)) → U16_aaaga(T46, T98, T95, T22, T9, app43_in_agaa(T95, T22, T98, T9))
app43_in_agaa([], T157, T158, .(T157, T158)) → app43_out_agaa([], T157, T158, .(T157, T158))
app43_in_agaa(.(T169, T170), T171, T172, .(T169, T174)) → U13_agaa(T169, T170, T171, T172, T174, app43_in_agaa(T170, T171, T172, T174))
U13_agaa(T169, T170, T171, T172, T174, app43_out_agaa(T170, T171, T172, T174)) → app43_out_agaa(.(T169, T170), T171, T172, .(T169, T174))
U16_aaaga(T46, T98, T95, T22, T9, app43_out_agaa(T95, T22, T98, T9)) → p41_out_aaaga(T46, T98, T95, T22, T9)
U22_aa(T22, T23, T24, T9, p41_out_aaaga(T46, X15, T95, T22, T9)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U20_ga(T22, T23, T24, T9, qs1_out_aa(.(T23, T45), X14)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U19_ga(T22, T23, T24, T9, part24_out_ggaa(T22, T24, T45, T46)) → U21_ga(T22, T23, T24, T9, T46, qs1_in_aa(.(T23, T45), T95))
U21_ga(T22, T23, T24, T9, T46, qs1_out_aa(.(T23, T45), T95)) → U22_ga(T22, T23, T24, T9, p41_in_aaaga(T46, X15, T95, T22, T9))
U22_ga(T22, T23, T24, T9, p41_out_aaaga(T46, X15, T95, T22, T9)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
qs1_in_ga(.(T191, .(T192, T193)), T9) → U23_ga(T191, T192, T193, T9, part24_in_ggaa(T191, T193, X336, X337))
U23_ga(T191, T192, T193, T9, part24_out_ggaa(T191, T193, X336, X337)) → qs1_out_ga(.(T191, .(T192, T193)), T9)
qs1_in_ga(.(T191, .(T192, T193)), T9) → U24_ga(T191, T192, T193, T9, part24_in_ggaa(T191, T193, T197, T198))
U24_ga(T191, T192, T193, T9, part24_out_ggaa(T191, T193, T197, T198)) → U25_ga(T191, T192, T193, T9, qs42_in_aa(T197, X14))
U25_ga(T191, T192, T193, T9, qs42_out_aa(T197, X14)) → qs1_out_ga(.(T191, .(T192, T193)), T9)
U24_ga(T191, T192, T193, T9, part24_out_ggaa(T191, T193, T197, T198)) → U26_ga(T191, T192, T193, T9, T198, qs42_in_aa(T197, T202))
U26_ga(T191, T192, T193, T9, T198, qs42_out_aa(T197, T202)) → U27_ga(T191, T192, T193, T9, p41_in_aaaga(.(T192, T198), X15, T202, T191, T9))
U27_ga(T191, T192, T193, T9, p41_out_aaaga(.(T192, T198), X15, T202, T191, T9)) → qs1_out_ga(.(T191, .(T192, T193)), T9)
qs1_in_ga(.(T207, []), T9) → U28_ga(T207, T9, qs84_in_a(X14))
U28_ga(T207, T9, qs84_out_a(X14)) → qs1_out_ga(.(T207, []), T9)
qs1_in_ga(.(T207, []), T9) → U29_ga(T207, T9, qs84_in_a(T210))
U29_ga(T207, T9, qs84_out_a(T210)) → U30_ga(T207, T9, qs84_in_a(X15))
U30_ga(T207, T9, qs84_out_a(X15)) → qs1_out_ga(.(T207, []), T9)
U29_ga(T207, T9, qs84_out_a(T210)) → U31_ga(T207, T9, T210, qs84_in_a(T213))
U31_ga(T207, T9, T210, qs84_out_a(T213)) → U32_ga(T207, T9, app43_in_ggga(T210, T207, T213, T9))
app43_in_ggga([], T157, T158, .(T157, T158)) → app43_out_ggga([], T157, T158, .(T157, T158))
app43_in_ggga(.(T169, T170), T171, T172, .(T169, T174)) → U13_ggga(T169, T170, T171, T172, T174, app43_in_ggga(T170, T171, T172, T174))
U13_ggga(T169, T170, T171, T172, T174, app43_out_ggga(T170, T171, T172, T174)) → app43_out_ggga(.(T169, T170), T171, T172, .(T169, T174))
U32_ga(T207, T9, app43_out_ggga(T210, T207, T213, T9)) → qs1_out_ga(.(T207, []), T9)
PART24_IN_AAAA(T84, .(T85, T86), X177, .(T85, X178)) → PART24_IN_AAAA(T84, T86, X177, X178)
PART24_IN_AAAA → PART24_IN_AAAA
QS42_IN_AA(.(T103, T104), X230) → U6_AA(T103, T104, X230, part24_in_aaaa(T103, T104, T108, T109))
U6_AA(T103, T104, X230, part24_out_aaaa(T103, T104, T108, T109)) → QS42_IN_AA(T108, X228)
U6_AA(T103, T104, X230, part24_out_aaaa(T103, T104, T108, T109)) → U8_AA(T103, T104, X230, T109, qs42_in_aa(T108, T113))
U8_AA(T103, T104, X230, T109, qs42_out_aa(T108, T113)) → QS42_IN_AA(T109, X229)
qs1_in_ga([], []) → qs1_out_ga([], [])
qs1_in_ga(.(T22, .(T23, T24)), T9) → U17_ga(T22, T23, T24, T9, less14_in_gg(T22, T23))
less14_in_gg(0, s(T33)) → less14_out_gg(0, s(T33))
less14_in_gg(s(T38), s(T39)) → U1_gg(T38, T39, less14_in_gg(T38, T39))
U1_gg(T38, T39, less14_out_gg(T38, T39)) → less14_out_gg(s(T38), s(T39))
U17_ga(T22, T23, T24, T9, less14_out_gg(T22, T23)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U17_ga(T22, T23, T24, T9, less14_out_gg(T22, T23)) → U18_ga(T22, T23, T24, T9, part24_in_ggaa(T22, T24, X52, X53))
part24_in_ggaa(T62, .(T63, T64), .(T63, X126), X127) → U2_ggaa(T62, T63, T64, X126, X127, less14_in_gg(T62, T63))
U2_ggaa(T62, T63, T64, X126, X127, less14_out_gg(T62, T63)) → part24_out_ggaa(T62, .(T63, T64), .(T63, X126), X127)
U2_ggaa(T62, T63, T64, X126, X127, less14_out_gg(T62, T63)) → U3_ggaa(T62, T63, T64, X126, X127, part24_in_ggaa(T62, T64, X126, X127))
part24_in_ggaa(T84, .(T85, T86), X177, .(T85, X178)) → U4_ggaa(T84, T85, T86, X177, X178, part24_in_ggaa(T84, T86, X177, X178))
part24_in_ggaa(T92, [], [], []) → part24_out_ggaa(T92, [], [], [])
U4_ggaa(T84, T85, T86, X177, X178, part24_out_ggaa(T84, T86, X177, X178)) → part24_out_ggaa(T84, .(T85, T86), X177, .(T85, X178))
U3_ggaa(T62, T63, T64, X126, X127, part24_out_ggaa(T62, T64, X126, X127)) → part24_out_ggaa(T62, .(T63, T64), .(T63, X126), X127)
U18_ga(T22, T23, T24, T9, part24_out_ggaa(T22, T24, X52, X53)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U17_ga(T22, T23, T24, T9, less14_out_gg(T22, T23)) → U19_ga(T22, T23, T24, T9, part24_in_ggaa(T22, T24, T45, T46))
U19_ga(T22, T23, T24, T9, part24_out_ggaa(T22, T24, T45, T46)) → U20_ga(T22, T23, T24, T9, qs1_in_aa(.(T23, T45), X14))
qs1_in_aa([], []) → qs1_out_aa([], [])
qs1_in_aa(.(T22, .(T23, T24)), T9) → U17_aa(T22, T23, T24, T9, less14_in_aa(T22, T23))
less14_in_aa(0, s(T33)) → less14_out_aa(0, s(T33))
less14_in_aa(s(T38), s(T39)) → U1_aa(T38, T39, less14_in_aa(T38, T39))
U1_aa(T38, T39, less14_out_aa(T38, T39)) → less14_out_aa(s(T38), s(T39))
U17_aa(T22, T23, T24, T9, less14_out_aa(T22, T23)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U17_aa(T22, T23, T24, T9, less14_out_aa(T22, T23)) → U18_aa(T22, T23, T24, T9, part24_in_gaaa(T22, T24, X52, X53))
part24_in_gaaa(T62, .(T63, T64), .(T63, X126), X127) → U2_gaaa(T62, T63, T64, X126, X127, less14_in_ga(T62, T63))
less14_in_ga(0, s(T33)) → less14_out_ga(0, s(T33))
less14_in_ga(s(T38), s(T39)) → U1_ga(T38, T39, less14_in_ga(T38, T39))
U1_ga(T38, T39, less14_out_ga(T38, T39)) → less14_out_ga(s(T38), s(T39))
U2_gaaa(T62, T63, T64, X126, X127, less14_out_ga(T62, T63)) → part24_out_gaaa(T62, .(T63, T64), .(T63, X126), X127)
U2_gaaa(T62, T63, T64, X126, X127, less14_out_ga(T62, T63)) → U3_gaaa(T62, T63, T64, X126, X127, part24_in_gaaa(T62, T64, X126, X127))
part24_in_gaaa(T84, .(T85, T86), X177, .(T85, X178)) → U4_gaaa(T84, T85, T86, X177, X178, part24_in_gaaa(T84, T86, X177, X178))
part24_in_gaaa(T92, [], [], []) → part24_out_gaaa(T92, [], [], [])
U4_gaaa(T84, T85, T86, X177, X178, part24_out_gaaa(T84, T86, X177, X178)) → part24_out_gaaa(T84, .(T85, T86), X177, .(T85, X178))
U3_gaaa(T62, T63, T64, X126, X127, part24_out_gaaa(T62, T64, X126, X127)) → part24_out_gaaa(T62, .(T63, T64), .(T63, X126), X127)
U18_aa(T22, T23, T24, T9, part24_out_gaaa(T22, T24, X52, X53)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U17_aa(T22, T23, T24, T9, less14_out_aa(T22, T23)) → U19_aa(T22, T23, T24, T9, part24_in_gaaa(T22, T24, T45, T46))
U19_aa(T22, T23, T24, T9, part24_out_gaaa(T22, T24, T45, T46)) → U20_aa(T22, T23, T24, T9, qs1_in_aa(.(T23, T45), X14))
qs1_in_aa(.(T191, .(T192, T193)), T9) → U23_aa(T191, T192, T193, T9, part24_in_aaaa(T191, T193, X336, X337))
part24_in_aaaa(T62, .(T63, T64), .(T63, X126), X127) → U2_aaaa(T62, T63, T64, X126, X127, less14_in_aa(T62, T63))
U2_aaaa(T62, T63, T64, X126, X127, less14_out_aa(T62, T63)) → part24_out_aaaa(T62, .(T63, T64), .(T63, X126), X127)
U2_aaaa(T62, T63, T64, X126, X127, less14_out_aa(T62, T63)) → U3_aaaa(T62, T63, T64, X126, X127, part24_in_gaaa(T62, T64, X126, X127))
U3_aaaa(T62, T63, T64, X126, X127, part24_out_gaaa(T62, T64, X126, X127)) → part24_out_aaaa(T62, .(T63, T64), .(T63, X126), X127)
part24_in_aaaa(T84, .(T85, T86), X177, .(T85, X178)) → U4_aaaa(T84, T85, T86, X177, X178, part24_in_aaaa(T84, T86, X177, X178))
part24_in_aaaa(T92, [], [], []) → part24_out_aaaa(T92, [], [], [])
U4_aaaa(T84, T85, T86, X177, X178, part24_out_aaaa(T84, T86, X177, X178)) → part24_out_aaaa(T84, .(T85, T86), X177, .(T85, X178))
U23_aa(T191, T192, T193, T9, part24_out_aaaa(T191, T193, X336, X337)) → qs1_out_aa(.(T191, .(T192, T193)), T9)
qs1_in_aa(.(T191, .(T192, T193)), T9) → U24_aa(T191, T192, T193, T9, part24_in_aaaa(T191, T193, T197, T198))
U24_aa(T191, T192, T193, T9, part24_out_aaaa(T191, T193, T197, T198)) → U25_aa(T191, T192, T193, T9, qs42_in_aa(T197, X14))
qs42_in_aa([], []) → qs42_out_aa([], [])
qs42_in_aa(.(T103, T104), X230) → U5_aa(T103, T104, X230, part24_in_aaaa(T103, T104, X226, X227))
U5_aa(T103, T104, X230, part24_out_aaaa(T103, T104, X226, X227)) → qs42_out_aa(.(T103, T104), X230)
qs42_in_aa(.(T103, T104), X230) → U6_aa(T103, T104, X230, part24_in_aaaa(T103, T104, T108, T109))
U6_aa(T103, T104, X230, part24_out_aaaa(T103, T104, T108, T109)) → U7_aa(T103, T104, X230, qs42_in_aa(T108, X228))
U7_aa(T103, T104, X230, qs42_out_aa(T108, X228)) → qs42_out_aa(.(T103, T104), X230)
U6_aa(T103, T104, X230, part24_out_aaaa(T103, T104, T108, T109)) → U8_aa(T103, T104, X230, T109, qs42_in_aa(T108, T113))
U8_aa(T103, T104, X230, T109, qs42_out_aa(T108, T113)) → U9_aa(T103, T104, X230, qs42_in_aa(T109, X229))
U9_aa(T103, T104, X230, qs42_out_aa(T109, X229)) → qs42_out_aa(.(T103, T104), X230)
U8_aa(T103, T104, X230, T109, qs42_out_aa(T108, T113)) → U10_aa(T103, T104, X230, T113, qs42_in_aa(T109, T114))
U10_aa(T103, T104, X230, T113, qs42_out_aa(T109, T114)) → U11_aa(T103, T104, X230, app57_in_aaaa(T113, T103, T114, X230))
app57_in_aaaa([], T127, T128, .(T127, T128)) → app57_out_aaaa([], T127, T128, .(T127, T128))
app57_in_aaaa(.(T137, T138), T139, T140, .(T137, X270)) → U12_aaaa(T137, T138, T139, T140, X270, app57_in_aaaa(T138, T139, T140, X270))
U12_aaaa(T137, T138, T139, T140, X270, app57_out_aaaa(T138, T139, T140, X270)) → app57_out_aaaa(.(T137, T138), T139, T140, .(T137, X270))
U11_aa(T103, T104, X230, app57_out_aaaa(T113, T103, T114, X230)) → qs42_out_aa(.(T103, T104), X230)
U25_aa(T191, T192, T193, T9, qs42_out_aa(T197, X14)) → qs1_out_aa(.(T191, .(T192, T193)), T9)
U24_aa(T191, T192, T193, T9, part24_out_aaaa(T191, T193, T197, T198)) → U26_aa(T191, T192, T193, T9, T198, qs42_in_aa(T197, T202))
U26_aa(T191, T192, T193, T9, T198, qs42_out_aa(T197, T202)) → U27_aa(T191, T192, T193, T9, p41_in_aaaaa(.(T192, T198), X15, T202, T191, T9))
p41_in_aaaaa(T46, X15, T95, T22, T9) → U14_aaaaa(T46, X15, T95, T22, T9, qs42_in_aa(T46, X15))
U14_aaaaa(T46, X15, T95, T22, T9, qs42_out_aa(T46, X15)) → p41_out_aaaaa(T46, X15, T95, T22, T9)
p41_in_aaaaa(T46, T98, T95, T22, T9) → U15_aaaaa(T46, T98, T95, T22, T9, qs42_in_aa(T46, T98))
U15_aaaaa(T46, T98, T95, T22, T9, qs42_out_aa(T46, T98)) → U16_aaaaa(T46, T98, T95, T22, T9, app43_in_aaaa(T95, T22, T98, T9))
app43_in_aaaa([], T157, T158, .(T157, T158)) → app43_out_aaaa([], T157, T158, .(T157, T158))
app43_in_aaaa(.(T169, T170), T171, T172, .(T169, T174)) → U13_aaaa(T169, T170, T171, T172, T174, app43_in_aaaa(T170, T171, T172, T174))
U13_aaaa(T169, T170, T171, T172, T174, app43_out_aaaa(T170, T171, T172, T174)) → app43_out_aaaa(.(T169, T170), T171, T172, .(T169, T174))
U16_aaaaa(T46, T98, T95, T22, T9, app43_out_aaaa(T95, T22, T98, T9)) → p41_out_aaaaa(T46, T98, T95, T22, T9)
U27_aa(T191, T192, T193, T9, p41_out_aaaaa(.(T192, T198), X15, T202, T191, T9)) → qs1_out_aa(.(T191, .(T192, T193)), T9)
qs1_in_aa(.(T207, []), T9) → U28_aa(T207, T9, qs84_in_a(X14))
qs84_in_a([]) → qs84_out_a([])
U28_aa(T207, T9, qs84_out_a(X14)) → qs1_out_aa(.(T207, []), T9)
qs1_in_aa(.(T207, []), T9) → U29_aa(T207, T9, qs84_in_a(T210))
U29_aa(T207, T9, qs84_out_a(T210)) → U30_aa(T207, T9, qs84_in_a(X15))
U30_aa(T207, T9, qs84_out_a(X15)) → qs1_out_aa(.(T207, []), T9)
U29_aa(T207, T9, qs84_out_a(T210)) → U31_aa(T207, T9, T210, qs84_in_a(T213))
U31_aa(T207, T9, T210, qs84_out_a(T213)) → U32_aa(T207, T9, app43_in_gaga(T210, T207, T213, T9))
app43_in_gaga([], T157, T158, .(T157, T158)) → app43_out_gaga([], T157, T158, .(T157, T158))
app43_in_gaga(.(T169, T170), T171, T172, .(T169, T174)) → U13_gaga(T169, T170, T171, T172, T174, app43_in_gaga(T170, T171, T172, T174))
U13_gaga(T169, T170, T171, T172, T174, app43_out_gaga(T170, T171, T172, T174)) → app43_out_gaga(.(T169, T170), T171, T172, .(T169, T174))
U32_aa(T207, T9, app43_out_gaga(T210, T207, T213, T9)) → qs1_out_aa(.(T207, []), T9)
U20_aa(T22, T23, T24, T9, qs1_out_aa(.(T23, T45), X14)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U19_aa(T22, T23, T24, T9, part24_out_gaaa(T22, T24, T45, T46)) → U21_aa(T22, T23, T24, T9, T46, qs1_in_aa(.(T23, T45), T95))
U21_aa(T22, T23, T24, T9, T46, qs1_out_aa(.(T23, T45), T95)) → U22_aa(T22, T23, T24, T9, p41_in_aaaga(T46, X15, T95, T22, T9))
p41_in_aaaga(T46, X15, T95, T22, T9) → U14_aaaga(T46, X15, T95, T22, T9, qs42_in_aa(T46, X15))
U14_aaaga(T46, X15, T95, T22, T9, qs42_out_aa(T46, X15)) → p41_out_aaaga(T46, X15, T95, T22, T9)
p41_in_aaaga(T46, T98, T95, T22, T9) → U15_aaaga(T46, T98, T95, T22, T9, qs42_in_aa(T46, T98))
U15_aaaga(T46, T98, T95, T22, T9, qs42_out_aa(T46, T98)) → U16_aaaga(T46, T98, T95, T22, T9, app43_in_agaa(T95, T22, T98, T9))
app43_in_agaa([], T157, T158, .(T157, T158)) → app43_out_agaa([], T157, T158, .(T157, T158))
app43_in_agaa(.(T169, T170), T171, T172, .(T169, T174)) → U13_agaa(T169, T170, T171, T172, T174, app43_in_agaa(T170, T171, T172, T174))
U13_agaa(T169, T170, T171, T172, T174, app43_out_agaa(T170, T171, T172, T174)) → app43_out_agaa(.(T169, T170), T171, T172, .(T169, T174))
U16_aaaga(T46, T98, T95, T22, T9, app43_out_agaa(T95, T22, T98, T9)) → p41_out_aaaga(T46, T98, T95, T22, T9)
U22_aa(T22, T23, T24, T9, p41_out_aaaga(T46, X15, T95, T22, T9)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U20_ga(T22, T23, T24, T9, qs1_out_aa(.(T23, T45), X14)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U19_ga(T22, T23, T24, T9, part24_out_ggaa(T22, T24, T45, T46)) → U21_ga(T22, T23, T24, T9, T46, qs1_in_aa(.(T23, T45), T95))
U21_ga(T22, T23, T24, T9, T46, qs1_out_aa(.(T23, T45), T95)) → U22_ga(T22, T23, T24, T9, p41_in_aaaga(T46, X15, T95, T22, T9))
U22_ga(T22, T23, T24, T9, p41_out_aaaga(T46, X15, T95, T22, T9)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
qs1_in_ga(.(T191, .(T192, T193)), T9) → U23_ga(T191, T192, T193, T9, part24_in_ggaa(T191, T193, X336, X337))
U23_ga(T191, T192, T193, T9, part24_out_ggaa(T191, T193, X336, X337)) → qs1_out_ga(.(T191, .(T192, T193)), T9)
qs1_in_ga(.(T191, .(T192, T193)), T9) → U24_ga(T191, T192, T193, T9, part24_in_ggaa(T191, T193, T197, T198))
U24_ga(T191, T192, T193, T9, part24_out_ggaa(T191, T193, T197, T198)) → U25_ga(T191, T192, T193, T9, qs42_in_aa(T197, X14))
U25_ga(T191, T192, T193, T9, qs42_out_aa(T197, X14)) → qs1_out_ga(.(T191, .(T192, T193)), T9)
U24_ga(T191, T192, T193, T9, part24_out_ggaa(T191, T193, T197, T198)) → U26_ga(T191, T192, T193, T9, T198, qs42_in_aa(T197, T202))
U26_ga(T191, T192, T193, T9, T198, qs42_out_aa(T197, T202)) → U27_ga(T191, T192, T193, T9, p41_in_aaaga(.(T192, T198), X15, T202, T191, T9))
U27_ga(T191, T192, T193, T9, p41_out_aaaga(.(T192, T198), X15, T202, T191, T9)) → qs1_out_ga(.(T191, .(T192, T193)), T9)
qs1_in_ga(.(T207, []), T9) → U28_ga(T207, T9, qs84_in_a(X14))
U28_ga(T207, T9, qs84_out_a(X14)) → qs1_out_ga(.(T207, []), T9)
qs1_in_ga(.(T207, []), T9) → U29_ga(T207, T9, qs84_in_a(T210))
U29_ga(T207, T9, qs84_out_a(T210)) → U30_ga(T207, T9, qs84_in_a(X15))
U30_ga(T207, T9, qs84_out_a(X15)) → qs1_out_ga(.(T207, []), T9)
U29_ga(T207, T9, qs84_out_a(T210)) → U31_ga(T207, T9, T210, qs84_in_a(T213))
U31_ga(T207, T9, T210, qs84_out_a(T213)) → U32_ga(T207, T9, app43_in_ggga(T210, T207, T213, T9))
app43_in_ggga([], T157, T158, .(T157, T158)) → app43_out_ggga([], T157, T158, .(T157, T158))
app43_in_ggga(.(T169, T170), T171, T172, .(T169, T174)) → U13_ggga(T169, T170, T171, T172, T174, app43_in_ggga(T170, T171, T172, T174))
U13_ggga(T169, T170, T171, T172, T174, app43_out_ggga(T170, T171, T172, T174)) → app43_out_ggga(.(T169, T170), T171, T172, .(T169, T174))
U32_ga(T207, T9, app43_out_ggga(T210, T207, T213, T9)) → qs1_out_ga(.(T207, []), T9)
QS42_IN_AA(.(T103, T104), X230) → U6_AA(T103, T104, X230, part24_in_aaaa(T103, T104, T108, T109))
U6_AA(T103, T104, X230, part24_out_aaaa(T103, T104, T108, T109)) → QS42_IN_AA(T108, X228)
U6_AA(T103, T104, X230, part24_out_aaaa(T103, T104, T108, T109)) → U8_AA(T103, T104, X230, T109, qs42_in_aa(T108, T113))
U8_AA(T103, T104, X230, T109, qs42_out_aa(T108, T113)) → QS42_IN_AA(T109, X229)
part24_in_aaaa(T62, .(T63, T64), .(T63, X126), X127) → U2_aaaa(T62, T63, T64, X126, X127, less14_in_aa(T62, T63))
part24_in_aaaa(T84, .(T85, T86), X177, .(T85, X178)) → U4_aaaa(T84, T85, T86, X177, X178, part24_in_aaaa(T84, T86, X177, X178))
part24_in_aaaa(T92, [], [], []) → part24_out_aaaa(T92, [], [], [])
qs42_in_aa([], []) → qs42_out_aa([], [])
qs42_in_aa(.(T103, T104), X230) → U5_aa(T103, T104, X230, part24_in_aaaa(T103, T104, X226, X227))
qs42_in_aa(.(T103, T104), X230) → U6_aa(T103, T104, X230, part24_in_aaaa(T103, T104, T108, T109))
U2_aaaa(T62, T63, T64, X126, X127, less14_out_aa(T62, T63)) → part24_out_aaaa(T62, .(T63, T64), .(T63, X126), X127)
U2_aaaa(T62, T63, T64, X126, X127, less14_out_aa(T62, T63)) → U3_aaaa(T62, T63, T64, X126, X127, part24_in_gaaa(T62, T64, X126, X127))
U4_aaaa(T84, T85, T86, X177, X178, part24_out_aaaa(T84, T86, X177, X178)) → part24_out_aaaa(T84, .(T85, T86), X177, .(T85, X178))
U5_aa(T103, T104, X230, part24_out_aaaa(T103, T104, X226, X227)) → qs42_out_aa(.(T103, T104), X230)
U6_aa(T103, T104, X230, part24_out_aaaa(T103, T104, T108, T109)) → U7_aa(T103, T104, X230, qs42_in_aa(T108, X228))
U6_aa(T103, T104, X230, part24_out_aaaa(T103, T104, T108, T109)) → U8_aa(T103, T104, X230, T109, qs42_in_aa(T108, T113))
less14_in_aa(0, s(T33)) → less14_out_aa(0, s(T33))
less14_in_aa(s(T38), s(T39)) → U1_aa(T38, T39, less14_in_aa(T38, T39))
U3_aaaa(T62, T63, T64, X126, X127, part24_out_gaaa(T62, T64, X126, X127)) → part24_out_aaaa(T62, .(T63, T64), .(T63, X126), X127)
U7_aa(T103, T104, X230, qs42_out_aa(T108, X228)) → qs42_out_aa(.(T103, T104), X230)
U8_aa(T103, T104, X230, T109, qs42_out_aa(T108, T113)) → U9_aa(T103, T104, X230, qs42_in_aa(T109, X229))
U8_aa(T103, T104, X230, T109, qs42_out_aa(T108, T113)) → U10_aa(T103, T104, X230, T113, qs42_in_aa(T109, T114))
U1_aa(T38, T39, less14_out_aa(T38, T39)) → less14_out_aa(s(T38), s(T39))
part24_in_gaaa(T62, .(T63, T64), .(T63, X126), X127) → U2_gaaa(T62, T63, T64, X126, X127, less14_in_ga(T62, T63))
part24_in_gaaa(T84, .(T85, T86), X177, .(T85, X178)) → U4_gaaa(T84, T85, T86, X177, X178, part24_in_gaaa(T84, T86, X177, X178))
part24_in_gaaa(T92, [], [], []) → part24_out_gaaa(T92, [], [], [])
U9_aa(T103, T104, X230, qs42_out_aa(T109, X229)) → qs42_out_aa(.(T103, T104), X230)
U10_aa(T103, T104, X230, T113, qs42_out_aa(T109, T114)) → U11_aa(T103, T104, X230, app57_in_aaaa(T113, T103, T114, X230))
U2_gaaa(T62, T63, T64, X126, X127, less14_out_ga(T62, T63)) → part24_out_gaaa(T62, .(T63, T64), .(T63, X126), X127)
U2_gaaa(T62, T63, T64, X126, X127, less14_out_ga(T62, T63)) → U3_gaaa(T62, T63, T64, X126, X127, part24_in_gaaa(T62, T64, X126, X127))
U4_gaaa(T84, T85, T86, X177, X178, part24_out_gaaa(T84, T86, X177, X178)) → part24_out_gaaa(T84, .(T85, T86), X177, .(T85, X178))
U11_aa(T103, T104, X230, app57_out_aaaa(T113, T103, T114, X230)) → qs42_out_aa(.(T103, T104), X230)
less14_in_ga(0, s(T33)) → less14_out_ga(0, s(T33))
less14_in_ga(s(T38), s(T39)) → U1_ga(T38, T39, less14_in_ga(T38, T39))
U3_gaaa(T62, T63, T64, X126, X127, part24_out_gaaa(T62, T64, X126, X127)) → part24_out_gaaa(T62, .(T63, T64), .(T63, X126), X127)
app57_in_aaaa([], T127, T128, .(T127, T128)) → app57_out_aaaa([], T127, T128, .(T127, T128))
app57_in_aaaa(.(T137, T138), T139, T140, .(T137, X270)) → U12_aaaa(T137, T138, T139, T140, X270, app57_in_aaaa(T138, T139, T140, X270))
U1_ga(T38, T39, less14_out_ga(T38, T39)) → less14_out_ga(s(T38), s(T39))
U12_aaaa(T137, T138, T139, T140, X270, app57_out_aaaa(T138, T139, T140, X270)) → app57_out_aaaa(.(T137, T138), T139, T140, .(T137, X270))
QS42_IN_AA → U6_AA(part24_in_aaaa)
U6_AA(part24_out_aaaa) → QS42_IN_AA
U6_AA(part24_out_aaaa) → U8_AA(qs42_in_aa)
U8_AA(qs42_out_aa) → QS42_IN_AA
part24_in_aaaa → U2_aaaa(less14_in_aa)
part24_in_aaaa → U4_aaaa(part24_in_aaaa)
part24_in_aaaa → part24_out_aaaa
qs42_in_aa → qs42_out_aa
qs42_in_aa → U5_aa(part24_in_aaaa)
qs42_in_aa → U6_aa(part24_in_aaaa)
U2_aaaa(less14_out_aa(T62)) → part24_out_aaaa
U2_aaaa(less14_out_aa(T62)) → U3_aaaa(part24_in_gaaa(T62))
U4_aaaa(part24_out_aaaa) → part24_out_aaaa
U5_aa(part24_out_aaaa) → qs42_out_aa
U6_aa(part24_out_aaaa) → U7_aa(qs42_in_aa)
U6_aa(part24_out_aaaa) → U8_aa(qs42_in_aa)
less14_in_aa → less14_out_aa(0)
less14_in_aa → U1_aa(less14_in_aa)
U3_aaaa(part24_out_gaaa(T62)) → part24_out_aaaa
U7_aa(qs42_out_aa) → qs42_out_aa
U8_aa(qs42_out_aa) → U9_aa(qs42_in_aa)
U8_aa(qs42_out_aa) → U10_aa(qs42_in_aa)
U1_aa(less14_out_aa(T38)) → less14_out_aa(s(T38))
part24_in_gaaa(T62) → U2_gaaa(T62, less14_in_ga(T62))
part24_in_gaaa(T84) → U4_gaaa(T84, part24_in_gaaa(T84))
part24_in_gaaa(T92) → part24_out_gaaa(T92)
U9_aa(qs42_out_aa) → qs42_out_aa
U10_aa(qs42_out_aa) → U11_aa(app57_in_aaaa)
U2_gaaa(T62, less14_out_ga(T62)) → part24_out_gaaa(T62)
U2_gaaa(T62, less14_out_ga(T62)) → U3_gaaa(T62, part24_in_gaaa(T62))
U4_gaaa(T84, part24_out_gaaa(T84)) → part24_out_gaaa(T84)
U11_aa(app57_out_aaaa) → qs42_out_aa
less14_in_ga(0) → less14_out_ga(0)
less14_in_ga(s(T38)) → U1_ga(T38, less14_in_ga(T38))
U3_gaaa(T62, part24_out_gaaa(T62)) → part24_out_gaaa(T62)
app57_in_aaaa → app57_out_aaaa
app57_in_aaaa → U12_aaaa(app57_in_aaaa)
U1_ga(T38, less14_out_ga(T38)) → less14_out_ga(s(T38))
U12_aaaa(app57_out_aaaa) → app57_out_aaaa
part24_in_aaaa
qs42_in_aa
U2_aaaa(x0)
U4_aaaa(x0)
U5_aa(x0)
U6_aa(x0)
less14_in_aa
U3_aaaa(x0)
U7_aa(x0)
U8_aa(x0)
U1_aa(x0)
part24_in_gaaa(x0)
U9_aa(x0)
U10_aa(x0)
U2_gaaa(x0, x1)
U4_gaaa(x0, x1)
U11_aa(x0)
less14_in_ga(x0)
U3_gaaa(x0, x1)
app57_in_aaaa
U1_ga(x0, x1)
U12_aaaa(x0)
QS42_IN_AA → U6_AA(U2_aaaa(less14_in_aa))
QS42_IN_AA → U6_AA(U4_aaaa(part24_in_aaaa))
QS42_IN_AA → U6_AA(part24_out_aaaa)
U6_AA(part24_out_aaaa) → QS42_IN_AA
U6_AA(part24_out_aaaa) → U8_AA(qs42_in_aa)
U8_AA(qs42_out_aa) → QS42_IN_AA
QS42_IN_AA → U6_AA(U2_aaaa(less14_in_aa))
QS42_IN_AA → U6_AA(U4_aaaa(part24_in_aaaa))
QS42_IN_AA → U6_AA(part24_out_aaaa)
part24_in_aaaa → U2_aaaa(less14_in_aa)
part24_in_aaaa → U4_aaaa(part24_in_aaaa)
part24_in_aaaa → part24_out_aaaa
qs42_in_aa → qs42_out_aa
qs42_in_aa → U5_aa(part24_in_aaaa)
qs42_in_aa → U6_aa(part24_in_aaaa)
U2_aaaa(less14_out_aa(T62)) → part24_out_aaaa
U2_aaaa(less14_out_aa(T62)) → U3_aaaa(part24_in_gaaa(T62))
U4_aaaa(part24_out_aaaa) → part24_out_aaaa
U5_aa(part24_out_aaaa) → qs42_out_aa
U6_aa(part24_out_aaaa) → U7_aa(qs42_in_aa)
U6_aa(part24_out_aaaa) → U8_aa(qs42_in_aa)
less14_in_aa → less14_out_aa(0)
less14_in_aa → U1_aa(less14_in_aa)
U3_aaaa(part24_out_gaaa(T62)) → part24_out_aaaa
U7_aa(qs42_out_aa) → qs42_out_aa
U8_aa(qs42_out_aa) → U9_aa(qs42_in_aa)
U8_aa(qs42_out_aa) → U10_aa(qs42_in_aa)
U1_aa(less14_out_aa(T38)) → less14_out_aa(s(T38))
part24_in_gaaa(T62) → U2_gaaa(T62, less14_in_ga(T62))
part24_in_gaaa(T84) → U4_gaaa(T84, part24_in_gaaa(T84))
part24_in_gaaa(T92) → part24_out_gaaa(T92)
U9_aa(qs42_out_aa) → qs42_out_aa
U10_aa(qs42_out_aa) → U11_aa(app57_in_aaaa)
U2_gaaa(T62, less14_out_ga(T62)) → part24_out_gaaa(T62)
U2_gaaa(T62, less14_out_ga(T62)) → U3_gaaa(T62, part24_in_gaaa(T62))
U4_gaaa(T84, part24_out_gaaa(T84)) → part24_out_gaaa(T84)
U11_aa(app57_out_aaaa) → qs42_out_aa
less14_in_ga(0) → less14_out_ga(0)
less14_in_ga(s(T38)) → U1_ga(T38, less14_in_ga(T38))
U3_gaaa(T62, part24_out_gaaa(T62)) → part24_out_gaaa(T62)
app57_in_aaaa → app57_out_aaaa
app57_in_aaaa → U12_aaaa(app57_in_aaaa)
U1_ga(T38, less14_out_ga(T38)) → less14_out_ga(s(T38))
U12_aaaa(app57_out_aaaa) → app57_out_aaaa
part24_in_aaaa
qs42_in_aa
U2_aaaa(x0)
U4_aaaa(x0)
U5_aa(x0)
U6_aa(x0)
less14_in_aa
U3_aaaa(x0)
U7_aa(x0)
U8_aa(x0)
U1_aa(x0)
part24_in_gaaa(x0)
U9_aa(x0)
U10_aa(x0)
U2_gaaa(x0, x1)
U4_gaaa(x0, x1)
U11_aa(x0)
less14_in_ga(x0)
U3_gaaa(x0, x1)
app57_in_aaaa
U1_ga(x0, x1)
U12_aaaa(x0)
U6_AA(part24_out_aaaa) → U8_AA(qs42_out_aa)
U6_AA(part24_out_aaaa) → U8_AA(U5_aa(part24_in_aaaa))
U6_AA(part24_out_aaaa) → U8_AA(U6_aa(part24_in_aaaa))
U6_AA(part24_out_aaaa) → QS42_IN_AA
U8_AA(qs42_out_aa) → QS42_IN_AA
QS42_IN_AA → U6_AA(U2_aaaa(less14_in_aa))
QS42_IN_AA → U6_AA(U4_aaaa(part24_in_aaaa))
QS42_IN_AA → U6_AA(part24_out_aaaa)
U6_AA(part24_out_aaaa) → U8_AA(qs42_out_aa)
U6_AA(part24_out_aaaa) → U8_AA(U5_aa(part24_in_aaaa))
U6_AA(part24_out_aaaa) → U8_AA(U6_aa(part24_in_aaaa))
part24_in_aaaa → U2_aaaa(less14_in_aa)
part24_in_aaaa → U4_aaaa(part24_in_aaaa)
part24_in_aaaa → part24_out_aaaa
qs42_in_aa → qs42_out_aa
qs42_in_aa → U5_aa(part24_in_aaaa)
qs42_in_aa → U6_aa(part24_in_aaaa)
U2_aaaa(less14_out_aa(T62)) → part24_out_aaaa
U2_aaaa(less14_out_aa(T62)) → U3_aaaa(part24_in_gaaa(T62))
U4_aaaa(part24_out_aaaa) → part24_out_aaaa
U5_aa(part24_out_aaaa) → qs42_out_aa
U6_aa(part24_out_aaaa) → U7_aa(qs42_in_aa)
U6_aa(part24_out_aaaa) → U8_aa(qs42_in_aa)
less14_in_aa → less14_out_aa(0)
less14_in_aa → U1_aa(less14_in_aa)
U3_aaaa(part24_out_gaaa(T62)) → part24_out_aaaa
U7_aa(qs42_out_aa) → qs42_out_aa
U8_aa(qs42_out_aa) → U9_aa(qs42_in_aa)
U8_aa(qs42_out_aa) → U10_aa(qs42_in_aa)
U1_aa(less14_out_aa(T38)) → less14_out_aa(s(T38))
part24_in_gaaa(T62) → U2_gaaa(T62, less14_in_ga(T62))
part24_in_gaaa(T84) → U4_gaaa(T84, part24_in_gaaa(T84))
part24_in_gaaa(T92) → part24_out_gaaa(T92)
U9_aa(qs42_out_aa) → qs42_out_aa
U10_aa(qs42_out_aa) → U11_aa(app57_in_aaaa)
U2_gaaa(T62, less14_out_ga(T62)) → part24_out_gaaa(T62)
U2_gaaa(T62, less14_out_ga(T62)) → U3_gaaa(T62, part24_in_gaaa(T62))
U4_gaaa(T84, part24_out_gaaa(T84)) → part24_out_gaaa(T84)
U11_aa(app57_out_aaaa) → qs42_out_aa
less14_in_ga(0) → less14_out_ga(0)
less14_in_ga(s(T38)) → U1_ga(T38, less14_in_ga(T38))
U3_gaaa(T62, part24_out_gaaa(T62)) → part24_out_gaaa(T62)
app57_in_aaaa → app57_out_aaaa
app57_in_aaaa → U12_aaaa(app57_in_aaaa)
U1_ga(T38, less14_out_ga(T38)) → less14_out_ga(s(T38))
U12_aaaa(app57_out_aaaa) → app57_out_aaaa
part24_in_aaaa
qs42_in_aa
U2_aaaa(x0)
U4_aaaa(x0)
U5_aa(x0)
U6_aa(x0)
less14_in_aa
U3_aaaa(x0)
U7_aa(x0)
U8_aa(x0)
U1_aa(x0)
part24_in_gaaa(x0)
U9_aa(x0)
U10_aa(x0)
U2_gaaa(x0, x1)
U4_gaaa(x0, x1)
U11_aa(x0)
less14_in_ga(x0)
U3_gaaa(x0, x1)
app57_in_aaaa
U1_ga(x0, x1)
U12_aaaa(x0)
U17_AA(T22, T23, T24, T9, less14_out_aa(T22, T23)) → U19_AA(T22, T23, T24, T9, part24_in_gaaa(T22, T24, T45, T46))
U19_AA(T22, T23, T24, T9, part24_out_gaaa(T22, T24, T45, T46)) → QS1_IN_AA(.(T23, T45), X14)
QS1_IN_AA(.(T22, .(T23, T24)), T9) → U17_AA(T22, T23, T24, T9, less14_in_aa(T22, T23))
qs1_in_ga([], []) → qs1_out_ga([], [])
qs1_in_ga(.(T22, .(T23, T24)), T9) → U17_ga(T22, T23, T24, T9, less14_in_gg(T22, T23))
less14_in_gg(0, s(T33)) → less14_out_gg(0, s(T33))
less14_in_gg(s(T38), s(T39)) → U1_gg(T38, T39, less14_in_gg(T38, T39))
U1_gg(T38, T39, less14_out_gg(T38, T39)) → less14_out_gg(s(T38), s(T39))
U17_ga(T22, T23, T24, T9, less14_out_gg(T22, T23)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U17_ga(T22, T23, T24, T9, less14_out_gg(T22, T23)) → U18_ga(T22, T23, T24, T9, part24_in_ggaa(T22, T24, X52, X53))
part24_in_ggaa(T62, .(T63, T64), .(T63, X126), X127) → U2_ggaa(T62, T63, T64, X126, X127, less14_in_gg(T62, T63))
U2_ggaa(T62, T63, T64, X126, X127, less14_out_gg(T62, T63)) → part24_out_ggaa(T62, .(T63, T64), .(T63, X126), X127)
U2_ggaa(T62, T63, T64, X126, X127, less14_out_gg(T62, T63)) → U3_ggaa(T62, T63, T64, X126, X127, part24_in_ggaa(T62, T64, X126, X127))
part24_in_ggaa(T84, .(T85, T86), X177, .(T85, X178)) → U4_ggaa(T84, T85, T86, X177, X178, part24_in_ggaa(T84, T86, X177, X178))
part24_in_ggaa(T92, [], [], []) → part24_out_ggaa(T92, [], [], [])
U4_ggaa(T84, T85, T86, X177, X178, part24_out_ggaa(T84, T86, X177, X178)) → part24_out_ggaa(T84, .(T85, T86), X177, .(T85, X178))
U3_ggaa(T62, T63, T64, X126, X127, part24_out_ggaa(T62, T64, X126, X127)) → part24_out_ggaa(T62, .(T63, T64), .(T63, X126), X127)
U18_ga(T22, T23, T24, T9, part24_out_ggaa(T22, T24, X52, X53)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U17_ga(T22, T23, T24, T9, less14_out_gg(T22, T23)) → U19_ga(T22, T23, T24, T9, part24_in_ggaa(T22, T24, T45, T46))
U19_ga(T22, T23, T24, T9, part24_out_ggaa(T22, T24, T45, T46)) → U20_ga(T22, T23, T24, T9, qs1_in_aa(.(T23, T45), X14))
qs1_in_aa([], []) → qs1_out_aa([], [])
qs1_in_aa(.(T22, .(T23, T24)), T9) → U17_aa(T22, T23, T24, T9, less14_in_aa(T22, T23))
less14_in_aa(0, s(T33)) → less14_out_aa(0, s(T33))
less14_in_aa(s(T38), s(T39)) → U1_aa(T38, T39, less14_in_aa(T38, T39))
U1_aa(T38, T39, less14_out_aa(T38, T39)) → less14_out_aa(s(T38), s(T39))
U17_aa(T22, T23, T24, T9, less14_out_aa(T22, T23)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U17_aa(T22, T23, T24, T9, less14_out_aa(T22, T23)) → U18_aa(T22, T23, T24, T9, part24_in_gaaa(T22, T24, X52, X53))
part24_in_gaaa(T62, .(T63, T64), .(T63, X126), X127) → U2_gaaa(T62, T63, T64, X126, X127, less14_in_ga(T62, T63))
less14_in_ga(0, s(T33)) → less14_out_ga(0, s(T33))
less14_in_ga(s(T38), s(T39)) → U1_ga(T38, T39, less14_in_ga(T38, T39))
U1_ga(T38, T39, less14_out_ga(T38, T39)) → less14_out_ga(s(T38), s(T39))
U2_gaaa(T62, T63, T64, X126, X127, less14_out_ga(T62, T63)) → part24_out_gaaa(T62, .(T63, T64), .(T63, X126), X127)
U2_gaaa(T62, T63, T64, X126, X127, less14_out_ga(T62, T63)) → U3_gaaa(T62, T63, T64, X126, X127, part24_in_gaaa(T62, T64, X126, X127))
part24_in_gaaa(T84, .(T85, T86), X177, .(T85, X178)) → U4_gaaa(T84, T85, T86, X177, X178, part24_in_gaaa(T84, T86, X177, X178))
part24_in_gaaa(T92, [], [], []) → part24_out_gaaa(T92, [], [], [])
U4_gaaa(T84, T85, T86, X177, X178, part24_out_gaaa(T84, T86, X177, X178)) → part24_out_gaaa(T84, .(T85, T86), X177, .(T85, X178))
U3_gaaa(T62, T63, T64, X126, X127, part24_out_gaaa(T62, T64, X126, X127)) → part24_out_gaaa(T62, .(T63, T64), .(T63, X126), X127)
U18_aa(T22, T23, T24, T9, part24_out_gaaa(T22, T24, X52, X53)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U17_aa(T22, T23, T24, T9, less14_out_aa(T22, T23)) → U19_aa(T22, T23, T24, T9, part24_in_gaaa(T22, T24, T45, T46))
U19_aa(T22, T23, T24, T9, part24_out_gaaa(T22, T24, T45, T46)) → U20_aa(T22, T23, T24, T9, qs1_in_aa(.(T23, T45), X14))
qs1_in_aa(.(T191, .(T192, T193)), T9) → U23_aa(T191, T192, T193, T9, part24_in_aaaa(T191, T193, X336, X337))
part24_in_aaaa(T62, .(T63, T64), .(T63, X126), X127) → U2_aaaa(T62, T63, T64, X126, X127, less14_in_aa(T62, T63))
U2_aaaa(T62, T63, T64, X126, X127, less14_out_aa(T62, T63)) → part24_out_aaaa(T62, .(T63, T64), .(T63, X126), X127)
U2_aaaa(T62, T63, T64, X126, X127, less14_out_aa(T62, T63)) → U3_aaaa(T62, T63, T64, X126, X127, part24_in_gaaa(T62, T64, X126, X127))
U3_aaaa(T62, T63, T64, X126, X127, part24_out_gaaa(T62, T64, X126, X127)) → part24_out_aaaa(T62, .(T63, T64), .(T63, X126), X127)
part24_in_aaaa(T84, .(T85, T86), X177, .(T85, X178)) → U4_aaaa(T84, T85, T86, X177, X178, part24_in_aaaa(T84, T86, X177, X178))
part24_in_aaaa(T92, [], [], []) → part24_out_aaaa(T92, [], [], [])
U4_aaaa(T84, T85, T86, X177, X178, part24_out_aaaa(T84, T86, X177, X178)) → part24_out_aaaa(T84, .(T85, T86), X177, .(T85, X178))
U23_aa(T191, T192, T193, T9, part24_out_aaaa(T191, T193, X336, X337)) → qs1_out_aa(.(T191, .(T192, T193)), T9)
qs1_in_aa(.(T191, .(T192, T193)), T9) → U24_aa(T191, T192, T193, T9, part24_in_aaaa(T191, T193, T197, T198))
U24_aa(T191, T192, T193, T9, part24_out_aaaa(T191, T193, T197, T198)) → U25_aa(T191, T192, T193, T9, qs42_in_aa(T197, X14))
qs42_in_aa([], []) → qs42_out_aa([], [])
qs42_in_aa(.(T103, T104), X230) → U5_aa(T103, T104, X230, part24_in_aaaa(T103, T104, X226, X227))
U5_aa(T103, T104, X230, part24_out_aaaa(T103, T104, X226, X227)) → qs42_out_aa(.(T103, T104), X230)
qs42_in_aa(.(T103, T104), X230) → U6_aa(T103, T104, X230, part24_in_aaaa(T103, T104, T108, T109))
U6_aa(T103, T104, X230, part24_out_aaaa(T103, T104, T108, T109)) → U7_aa(T103, T104, X230, qs42_in_aa(T108, X228))
U7_aa(T103, T104, X230, qs42_out_aa(T108, X228)) → qs42_out_aa(.(T103, T104), X230)
U6_aa(T103, T104, X230, part24_out_aaaa(T103, T104, T108, T109)) → U8_aa(T103, T104, X230, T109, qs42_in_aa(T108, T113))
U8_aa(T103, T104, X230, T109, qs42_out_aa(T108, T113)) → U9_aa(T103, T104, X230, qs42_in_aa(T109, X229))
U9_aa(T103, T104, X230, qs42_out_aa(T109, X229)) → qs42_out_aa(.(T103, T104), X230)
U8_aa(T103, T104, X230, T109, qs42_out_aa(T108, T113)) → U10_aa(T103, T104, X230, T113, qs42_in_aa(T109, T114))
U10_aa(T103, T104, X230, T113, qs42_out_aa(T109, T114)) → U11_aa(T103, T104, X230, app57_in_aaaa(T113, T103, T114, X230))
app57_in_aaaa([], T127, T128, .(T127, T128)) → app57_out_aaaa([], T127, T128, .(T127, T128))
app57_in_aaaa(.(T137, T138), T139, T140, .(T137, X270)) → U12_aaaa(T137, T138, T139, T140, X270, app57_in_aaaa(T138, T139, T140, X270))
U12_aaaa(T137, T138, T139, T140, X270, app57_out_aaaa(T138, T139, T140, X270)) → app57_out_aaaa(.(T137, T138), T139, T140, .(T137, X270))
U11_aa(T103, T104, X230, app57_out_aaaa(T113, T103, T114, X230)) → qs42_out_aa(.(T103, T104), X230)
U25_aa(T191, T192, T193, T9, qs42_out_aa(T197, X14)) → qs1_out_aa(.(T191, .(T192, T193)), T9)
U24_aa(T191, T192, T193, T9, part24_out_aaaa(T191, T193, T197, T198)) → U26_aa(T191, T192, T193, T9, T198, qs42_in_aa(T197, T202))
U26_aa(T191, T192, T193, T9, T198, qs42_out_aa(T197, T202)) → U27_aa(T191, T192, T193, T9, p41_in_aaaaa(.(T192, T198), X15, T202, T191, T9))
p41_in_aaaaa(T46, X15, T95, T22, T9) → U14_aaaaa(T46, X15, T95, T22, T9, qs42_in_aa(T46, X15))
U14_aaaaa(T46, X15, T95, T22, T9, qs42_out_aa(T46, X15)) → p41_out_aaaaa(T46, X15, T95, T22, T9)
p41_in_aaaaa(T46, T98, T95, T22, T9) → U15_aaaaa(T46, T98, T95, T22, T9, qs42_in_aa(T46, T98))
U15_aaaaa(T46, T98, T95, T22, T9, qs42_out_aa(T46, T98)) → U16_aaaaa(T46, T98, T95, T22, T9, app43_in_aaaa(T95, T22, T98, T9))
app43_in_aaaa([], T157, T158, .(T157, T158)) → app43_out_aaaa([], T157, T158, .(T157, T158))
app43_in_aaaa(.(T169, T170), T171, T172, .(T169, T174)) → U13_aaaa(T169, T170, T171, T172, T174, app43_in_aaaa(T170, T171, T172, T174))
U13_aaaa(T169, T170, T171, T172, T174, app43_out_aaaa(T170, T171, T172, T174)) → app43_out_aaaa(.(T169, T170), T171, T172, .(T169, T174))
U16_aaaaa(T46, T98, T95, T22, T9, app43_out_aaaa(T95, T22, T98, T9)) → p41_out_aaaaa(T46, T98, T95, T22, T9)
U27_aa(T191, T192, T193, T9, p41_out_aaaaa(.(T192, T198), X15, T202, T191, T9)) → qs1_out_aa(.(T191, .(T192, T193)), T9)
qs1_in_aa(.(T207, []), T9) → U28_aa(T207, T9, qs84_in_a(X14))
qs84_in_a([]) → qs84_out_a([])
U28_aa(T207, T9, qs84_out_a(X14)) → qs1_out_aa(.(T207, []), T9)
qs1_in_aa(.(T207, []), T9) → U29_aa(T207, T9, qs84_in_a(T210))
U29_aa(T207, T9, qs84_out_a(T210)) → U30_aa(T207, T9, qs84_in_a(X15))
U30_aa(T207, T9, qs84_out_a(X15)) → qs1_out_aa(.(T207, []), T9)
U29_aa(T207, T9, qs84_out_a(T210)) → U31_aa(T207, T9, T210, qs84_in_a(T213))
U31_aa(T207, T9, T210, qs84_out_a(T213)) → U32_aa(T207, T9, app43_in_gaga(T210, T207, T213, T9))
app43_in_gaga([], T157, T158, .(T157, T158)) → app43_out_gaga([], T157, T158, .(T157, T158))
app43_in_gaga(.(T169, T170), T171, T172, .(T169, T174)) → U13_gaga(T169, T170, T171, T172, T174, app43_in_gaga(T170, T171, T172, T174))
U13_gaga(T169, T170, T171, T172, T174, app43_out_gaga(T170, T171, T172, T174)) → app43_out_gaga(.(T169, T170), T171, T172, .(T169, T174))
U32_aa(T207, T9, app43_out_gaga(T210, T207, T213, T9)) → qs1_out_aa(.(T207, []), T9)
U20_aa(T22, T23, T24, T9, qs1_out_aa(.(T23, T45), X14)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U19_aa(T22, T23, T24, T9, part24_out_gaaa(T22, T24, T45, T46)) → U21_aa(T22, T23, T24, T9, T46, qs1_in_aa(.(T23, T45), T95))
U21_aa(T22, T23, T24, T9, T46, qs1_out_aa(.(T23, T45), T95)) → U22_aa(T22, T23, T24, T9, p41_in_aaaga(T46, X15, T95, T22, T9))
p41_in_aaaga(T46, X15, T95, T22, T9) → U14_aaaga(T46, X15, T95, T22, T9, qs42_in_aa(T46, X15))
U14_aaaga(T46, X15, T95, T22, T9, qs42_out_aa(T46, X15)) → p41_out_aaaga(T46, X15, T95, T22, T9)
p41_in_aaaga(T46, T98, T95, T22, T9) → U15_aaaga(T46, T98, T95, T22, T9, qs42_in_aa(T46, T98))
U15_aaaga(T46, T98, T95, T22, T9, qs42_out_aa(T46, T98)) → U16_aaaga(T46, T98, T95, T22, T9, app43_in_agaa(T95, T22, T98, T9))
app43_in_agaa([], T157, T158, .(T157, T158)) → app43_out_agaa([], T157, T158, .(T157, T158))
app43_in_agaa(.(T169, T170), T171, T172, .(T169, T174)) → U13_agaa(T169, T170, T171, T172, T174, app43_in_agaa(T170, T171, T172, T174))
U13_agaa(T169, T170, T171, T172, T174, app43_out_agaa(T170, T171, T172, T174)) → app43_out_agaa(.(T169, T170), T171, T172, .(T169, T174))
U16_aaaga(T46, T98, T95, T22, T9, app43_out_agaa(T95, T22, T98, T9)) → p41_out_aaaga(T46, T98, T95, T22, T9)
U22_aa(T22, T23, T24, T9, p41_out_aaaga(T46, X15, T95, T22, T9)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U20_ga(T22, T23, T24, T9, qs1_out_aa(.(T23, T45), X14)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U19_ga(T22, T23, T24, T9, part24_out_ggaa(T22, T24, T45, T46)) → U21_ga(T22, T23, T24, T9, T46, qs1_in_aa(.(T23, T45), T95))
U21_ga(T22, T23, T24, T9, T46, qs1_out_aa(.(T23, T45), T95)) → U22_ga(T22, T23, T24, T9, p41_in_aaaga(T46, X15, T95, T22, T9))
U22_ga(T22, T23, T24, T9, p41_out_aaaga(T46, X15, T95, T22, T9)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
qs1_in_ga(.(T191, .(T192, T193)), T9) → U23_ga(T191, T192, T193, T9, part24_in_ggaa(T191, T193, X336, X337))
U23_ga(T191, T192, T193, T9, part24_out_ggaa(T191, T193, X336, X337)) → qs1_out_ga(.(T191, .(T192, T193)), T9)
qs1_in_ga(.(T191, .(T192, T193)), T9) → U24_ga(T191, T192, T193, T9, part24_in_ggaa(T191, T193, T197, T198))
U24_ga(T191, T192, T193, T9, part24_out_ggaa(T191, T193, T197, T198)) → U25_ga(T191, T192, T193, T9, qs42_in_aa(T197, X14))
U25_ga(T191, T192, T193, T9, qs42_out_aa(T197, X14)) → qs1_out_ga(.(T191, .(T192, T193)), T9)
U24_ga(T191, T192, T193, T9, part24_out_ggaa(T191, T193, T197, T198)) → U26_ga(T191, T192, T193, T9, T198, qs42_in_aa(T197, T202))
U26_ga(T191, T192, T193, T9, T198, qs42_out_aa(T197, T202)) → U27_ga(T191, T192, T193, T9, p41_in_aaaga(.(T192, T198), X15, T202, T191, T9))
U27_ga(T191, T192, T193, T9, p41_out_aaaga(.(T192, T198), X15, T202, T191, T9)) → qs1_out_ga(.(T191, .(T192, T193)), T9)
qs1_in_ga(.(T207, []), T9) → U28_ga(T207, T9, qs84_in_a(X14))
U28_ga(T207, T9, qs84_out_a(X14)) → qs1_out_ga(.(T207, []), T9)
qs1_in_ga(.(T207, []), T9) → U29_ga(T207, T9, qs84_in_a(T210))
U29_ga(T207, T9, qs84_out_a(T210)) → U30_ga(T207, T9, qs84_in_a(X15))
U30_ga(T207, T9, qs84_out_a(X15)) → qs1_out_ga(.(T207, []), T9)
U29_ga(T207, T9, qs84_out_a(T210)) → U31_ga(T207, T9, T210, qs84_in_a(T213))
U31_ga(T207, T9, T210, qs84_out_a(T213)) → U32_ga(T207, T9, app43_in_ggga(T210, T207, T213, T9))
app43_in_ggga([], T157, T158, .(T157, T158)) → app43_out_ggga([], T157, T158, .(T157, T158))
app43_in_ggga(.(T169, T170), T171, T172, .(T169, T174)) → U13_ggga(T169, T170, T171, T172, T174, app43_in_ggga(T170, T171, T172, T174))
U13_ggga(T169, T170, T171, T172, T174, app43_out_ggga(T170, T171, T172, T174)) → app43_out_ggga(.(T169, T170), T171, T172, .(T169, T174))
U32_ga(T207, T9, app43_out_ggga(T210, T207, T213, T9)) → qs1_out_ga(.(T207, []), T9)
U17_AA(T22, T23, T24, T9, less14_out_aa(T22, T23)) → U19_AA(T22, T23, T24, T9, part24_in_gaaa(T22, T24, T45, T46))
U19_AA(T22, T23, T24, T9, part24_out_gaaa(T22, T24, T45, T46)) → QS1_IN_AA(.(T23, T45), X14)
QS1_IN_AA(.(T22, .(T23, T24)), T9) → U17_AA(T22, T23, T24, T9, less14_in_aa(T22, T23))
part24_in_gaaa(T62, .(T63, T64), .(T63, X126), X127) → U2_gaaa(T62, T63, T64, X126, X127, less14_in_ga(T62, T63))
part24_in_gaaa(T84, .(T85, T86), X177, .(T85, X178)) → U4_gaaa(T84, T85, T86, X177, X178, part24_in_gaaa(T84, T86, X177, X178))
part24_in_gaaa(T92, [], [], []) → part24_out_gaaa(T92, [], [], [])
less14_in_aa(0, s(T33)) → less14_out_aa(0, s(T33))
less14_in_aa(s(T38), s(T39)) → U1_aa(T38, T39, less14_in_aa(T38, T39))
U2_gaaa(T62, T63, T64, X126, X127, less14_out_ga(T62, T63)) → part24_out_gaaa(T62, .(T63, T64), .(T63, X126), X127)
U2_gaaa(T62, T63, T64, X126, X127, less14_out_ga(T62, T63)) → U3_gaaa(T62, T63, T64, X126, X127, part24_in_gaaa(T62, T64, X126, X127))
U4_gaaa(T84, T85, T86, X177, X178, part24_out_gaaa(T84, T86, X177, X178)) → part24_out_gaaa(T84, .(T85, T86), X177, .(T85, X178))
U1_aa(T38, T39, less14_out_aa(T38, T39)) → less14_out_aa(s(T38), s(T39))
less14_in_ga(0, s(T33)) → less14_out_ga(0, s(T33))
less14_in_ga(s(T38), s(T39)) → U1_ga(T38, T39, less14_in_ga(T38, T39))
U3_gaaa(T62, T63, T64, X126, X127, part24_out_gaaa(T62, T64, X126, X127)) → part24_out_gaaa(T62, .(T63, T64), .(T63, X126), X127)
U1_ga(T38, T39, less14_out_ga(T38, T39)) → less14_out_ga(s(T38), s(T39))
U17_AA(less14_out_aa(T22)) → U19_AA(T22, part24_in_gaaa(T22))
U19_AA(T22, part24_out_gaaa(T22)) → QS1_IN_AA
QS1_IN_AA → U17_AA(less14_in_aa)
part24_in_gaaa(T62) → U2_gaaa(T62, less14_in_ga(T62))
part24_in_gaaa(T84) → U4_gaaa(T84, part24_in_gaaa(T84))
part24_in_gaaa(T92) → part24_out_gaaa(T92)
less14_in_aa → less14_out_aa(0)
less14_in_aa → U1_aa(less14_in_aa)
U2_gaaa(T62, less14_out_ga(T62)) → part24_out_gaaa(T62)
U2_gaaa(T62, less14_out_ga(T62)) → U3_gaaa(T62, part24_in_gaaa(T62))
U4_gaaa(T84, part24_out_gaaa(T84)) → part24_out_gaaa(T84)
U1_aa(less14_out_aa(T38)) → less14_out_aa(s(T38))
less14_in_ga(0) → less14_out_ga(0)
less14_in_ga(s(T38)) → U1_ga(T38, less14_in_ga(T38))
U3_gaaa(T62, part24_out_gaaa(T62)) → part24_out_gaaa(T62)
U1_ga(T38, less14_out_ga(T38)) → less14_out_ga(s(T38))
part24_in_gaaa(x0)
less14_in_aa
U2_gaaa(x0, x1)
U4_gaaa(x0, x1)
U1_aa(x0)
less14_in_ga(x0)
U3_gaaa(x0, x1)
U1_ga(x0, x1)
U17_AA(less14_out_aa(x0)) → U19_AA(x0, U2_gaaa(x0, less14_in_ga(x0)))
U17_AA(less14_out_aa(x0)) → U19_AA(x0, U4_gaaa(x0, part24_in_gaaa(x0)))
U17_AA(less14_out_aa(x0)) → U19_AA(x0, part24_out_gaaa(x0))
U19_AA(T22, part24_out_gaaa(T22)) → QS1_IN_AA
QS1_IN_AA → U17_AA(less14_in_aa)
U17_AA(less14_out_aa(x0)) → U19_AA(x0, U2_gaaa(x0, less14_in_ga(x0)))
U17_AA(less14_out_aa(x0)) → U19_AA(x0, U4_gaaa(x0, part24_in_gaaa(x0)))
U17_AA(less14_out_aa(x0)) → U19_AA(x0, part24_out_gaaa(x0))
part24_in_gaaa(T62) → U2_gaaa(T62, less14_in_ga(T62))
part24_in_gaaa(T84) → U4_gaaa(T84, part24_in_gaaa(T84))
part24_in_gaaa(T92) → part24_out_gaaa(T92)
less14_in_aa → less14_out_aa(0)
less14_in_aa → U1_aa(less14_in_aa)
U2_gaaa(T62, less14_out_ga(T62)) → part24_out_gaaa(T62)
U2_gaaa(T62, less14_out_ga(T62)) → U3_gaaa(T62, part24_in_gaaa(T62))
U4_gaaa(T84, part24_out_gaaa(T84)) → part24_out_gaaa(T84)
U1_aa(less14_out_aa(T38)) → less14_out_aa(s(T38))
less14_in_ga(0) → less14_out_ga(0)
less14_in_ga(s(T38)) → U1_ga(T38, less14_in_ga(T38))
U3_gaaa(T62, part24_out_gaaa(T62)) → part24_out_gaaa(T62)
U1_ga(T38, less14_out_ga(T38)) → less14_out_ga(s(T38))
part24_in_gaaa(x0)
less14_in_aa
U2_gaaa(x0, x1)
U4_gaaa(x0, x1)
U1_aa(x0)
less14_in_ga(x0)
U3_gaaa(x0, x1)
U1_ga(x0, x1)
QS1_IN_AA → U17_AA(less14_out_aa(0))
QS1_IN_AA → U17_AA(U1_aa(less14_in_aa))
U19_AA(T22, part24_out_gaaa(T22)) → QS1_IN_AA
U17_AA(less14_out_aa(x0)) → U19_AA(x0, U2_gaaa(x0, less14_in_ga(x0)))
U17_AA(less14_out_aa(x0)) → U19_AA(x0, U4_gaaa(x0, part24_in_gaaa(x0)))
U17_AA(less14_out_aa(x0)) → U19_AA(x0, part24_out_gaaa(x0))
QS1_IN_AA → U17_AA(less14_out_aa(0))
QS1_IN_AA → U17_AA(U1_aa(less14_in_aa))
part24_in_gaaa(T62) → U2_gaaa(T62, less14_in_ga(T62))
part24_in_gaaa(T84) → U4_gaaa(T84, part24_in_gaaa(T84))
part24_in_gaaa(T92) → part24_out_gaaa(T92)
less14_in_aa → less14_out_aa(0)
less14_in_aa → U1_aa(less14_in_aa)
U2_gaaa(T62, less14_out_ga(T62)) → part24_out_gaaa(T62)
U2_gaaa(T62, less14_out_ga(T62)) → U3_gaaa(T62, part24_in_gaaa(T62))
U4_gaaa(T84, part24_out_gaaa(T84)) → part24_out_gaaa(T84)
U1_aa(less14_out_aa(T38)) → less14_out_aa(s(T38))
less14_in_ga(0) → less14_out_ga(0)
less14_in_ga(s(T38)) → U1_ga(T38, less14_in_ga(T38))
U3_gaaa(T62, part24_out_gaaa(T62)) → part24_out_gaaa(T62)
U1_ga(T38, less14_out_ga(T38)) → less14_out_ga(s(T38))
part24_in_gaaa(x0)
less14_in_aa
U2_gaaa(x0, x1)
U4_gaaa(x0, x1)
U1_aa(x0)
less14_in_ga(x0)
U3_gaaa(x0, x1)
U1_ga(x0, x1)
LESS14_IN_GG(s(T38), s(T39)) → LESS14_IN_GG(T38, T39)
qs1_in_ga([], []) → qs1_out_ga([], [])
qs1_in_ga(.(T22, .(T23, T24)), T9) → U17_ga(T22, T23, T24, T9, less14_in_gg(T22, T23))
less14_in_gg(0, s(T33)) → less14_out_gg(0, s(T33))
less14_in_gg(s(T38), s(T39)) → U1_gg(T38, T39, less14_in_gg(T38, T39))
U1_gg(T38, T39, less14_out_gg(T38, T39)) → less14_out_gg(s(T38), s(T39))
U17_ga(T22, T23, T24, T9, less14_out_gg(T22, T23)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U17_ga(T22, T23, T24, T9, less14_out_gg(T22, T23)) → U18_ga(T22, T23, T24, T9, part24_in_ggaa(T22, T24, X52, X53))
part24_in_ggaa(T62, .(T63, T64), .(T63, X126), X127) → U2_ggaa(T62, T63, T64, X126, X127, less14_in_gg(T62, T63))
U2_ggaa(T62, T63, T64, X126, X127, less14_out_gg(T62, T63)) → part24_out_ggaa(T62, .(T63, T64), .(T63, X126), X127)
U2_ggaa(T62, T63, T64, X126, X127, less14_out_gg(T62, T63)) → U3_ggaa(T62, T63, T64, X126, X127, part24_in_ggaa(T62, T64, X126, X127))
part24_in_ggaa(T84, .(T85, T86), X177, .(T85, X178)) → U4_ggaa(T84, T85, T86, X177, X178, part24_in_ggaa(T84, T86, X177, X178))
part24_in_ggaa(T92, [], [], []) → part24_out_ggaa(T92, [], [], [])
U4_ggaa(T84, T85, T86, X177, X178, part24_out_ggaa(T84, T86, X177, X178)) → part24_out_ggaa(T84, .(T85, T86), X177, .(T85, X178))
U3_ggaa(T62, T63, T64, X126, X127, part24_out_ggaa(T62, T64, X126, X127)) → part24_out_ggaa(T62, .(T63, T64), .(T63, X126), X127)
U18_ga(T22, T23, T24, T9, part24_out_ggaa(T22, T24, X52, X53)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U17_ga(T22, T23, T24, T9, less14_out_gg(T22, T23)) → U19_ga(T22, T23, T24, T9, part24_in_ggaa(T22, T24, T45, T46))
U19_ga(T22, T23, T24, T9, part24_out_ggaa(T22, T24, T45, T46)) → U20_ga(T22, T23, T24, T9, qs1_in_aa(.(T23, T45), X14))
qs1_in_aa([], []) → qs1_out_aa([], [])
qs1_in_aa(.(T22, .(T23, T24)), T9) → U17_aa(T22, T23, T24, T9, less14_in_aa(T22, T23))
less14_in_aa(0, s(T33)) → less14_out_aa(0, s(T33))
less14_in_aa(s(T38), s(T39)) → U1_aa(T38, T39, less14_in_aa(T38, T39))
U1_aa(T38, T39, less14_out_aa(T38, T39)) → less14_out_aa(s(T38), s(T39))
U17_aa(T22, T23, T24, T9, less14_out_aa(T22, T23)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U17_aa(T22, T23, T24, T9, less14_out_aa(T22, T23)) → U18_aa(T22, T23, T24, T9, part24_in_gaaa(T22, T24, X52, X53))
part24_in_gaaa(T62, .(T63, T64), .(T63, X126), X127) → U2_gaaa(T62, T63, T64, X126, X127, less14_in_ga(T62, T63))
less14_in_ga(0, s(T33)) → less14_out_ga(0, s(T33))
less14_in_ga(s(T38), s(T39)) → U1_ga(T38, T39, less14_in_ga(T38, T39))
U1_ga(T38, T39, less14_out_ga(T38, T39)) → less14_out_ga(s(T38), s(T39))
U2_gaaa(T62, T63, T64, X126, X127, less14_out_ga(T62, T63)) → part24_out_gaaa(T62, .(T63, T64), .(T63, X126), X127)
U2_gaaa(T62, T63, T64, X126, X127, less14_out_ga(T62, T63)) → U3_gaaa(T62, T63, T64, X126, X127, part24_in_gaaa(T62, T64, X126, X127))
part24_in_gaaa(T84, .(T85, T86), X177, .(T85, X178)) → U4_gaaa(T84, T85, T86, X177, X178, part24_in_gaaa(T84, T86, X177, X178))
part24_in_gaaa(T92, [], [], []) → part24_out_gaaa(T92, [], [], [])
U4_gaaa(T84, T85, T86, X177, X178, part24_out_gaaa(T84, T86, X177, X178)) → part24_out_gaaa(T84, .(T85, T86), X177, .(T85, X178))
U3_gaaa(T62, T63, T64, X126, X127, part24_out_gaaa(T62, T64, X126, X127)) → part24_out_gaaa(T62, .(T63, T64), .(T63, X126), X127)
U18_aa(T22, T23, T24, T9, part24_out_gaaa(T22, T24, X52, X53)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U17_aa(T22, T23, T24, T9, less14_out_aa(T22, T23)) → U19_aa(T22, T23, T24, T9, part24_in_gaaa(T22, T24, T45, T46))
U19_aa(T22, T23, T24, T9, part24_out_gaaa(T22, T24, T45, T46)) → U20_aa(T22, T23, T24, T9, qs1_in_aa(.(T23, T45), X14))
qs1_in_aa(.(T191, .(T192, T193)), T9) → U23_aa(T191, T192, T193, T9, part24_in_aaaa(T191, T193, X336, X337))
part24_in_aaaa(T62, .(T63, T64), .(T63, X126), X127) → U2_aaaa(T62, T63, T64, X126, X127, less14_in_aa(T62, T63))
U2_aaaa(T62, T63, T64, X126, X127, less14_out_aa(T62, T63)) → part24_out_aaaa(T62, .(T63, T64), .(T63, X126), X127)
U2_aaaa(T62, T63, T64, X126, X127, less14_out_aa(T62, T63)) → U3_aaaa(T62, T63, T64, X126, X127, part24_in_gaaa(T62, T64, X126, X127))
U3_aaaa(T62, T63, T64, X126, X127, part24_out_gaaa(T62, T64, X126, X127)) → part24_out_aaaa(T62, .(T63, T64), .(T63, X126), X127)
part24_in_aaaa(T84, .(T85, T86), X177, .(T85, X178)) → U4_aaaa(T84, T85, T86, X177, X178, part24_in_aaaa(T84, T86, X177, X178))
part24_in_aaaa(T92, [], [], []) → part24_out_aaaa(T92, [], [], [])
U4_aaaa(T84, T85, T86, X177, X178, part24_out_aaaa(T84, T86, X177, X178)) → part24_out_aaaa(T84, .(T85, T86), X177, .(T85, X178))
U23_aa(T191, T192, T193, T9, part24_out_aaaa(T191, T193, X336, X337)) → qs1_out_aa(.(T191, .(T192, T193)), T9)
qs1_in_aa(.(T191, .(T192, T193)), T9) → U24_aa(T191, T192, T193, T9, part24_in_aaaa(T191, T193, T197, T198))
U24_aa(T191, T192, T193, T9, part24_out_aaaa(T191, T193, T197, T198)) → U25_aa(T191, T192, T193, T9, qs42_in_aa(T197, X14))
qs42_in_aa([], []) → qs42_out_aa([], [])
qs42_in_aa(.(T103, T104), X230) → U5_aa(T103, T104, X230, part24_in_aaaa(T103, T104, X226, X227))
U5_aa(T103, T104, X230, part24_out_aaaa(T103, T104, X226, X227)) → qs42_out_aa(.(T103, T104), X230)
qs42_in_aa(.(T103, T104), X230) → U6_aa(T103, T104, X230, part24_in_aaaa(T103, T104, T108, T109))
U6_aa(T103, T104, X230, part24_out_aaaa(T103, T104, T108, T109)) → U7_aa(T103, T104, X230, qs42_in_aa(T108, X228))
U7_aa(T103, T104, X230, qs42_out_aa(T108, X228)) → qs42_out_aa(.(T103, T104), X230)
U6_aa(T103, T104, X230, part24_out_aaaa(T103, T104, T108, T109)) → U8_aa(T103, T104, X230, T109, qs42_in_aa(T108, T113))
U8_aa(T103, T104, X230, T109, qs42_out_aa(T108, T113)) → U9_aa(T103, T104, X230, qs42_in_aa(T109, X229))
U9_aa(T103, T104, X230, qs42_out_aa(T109, X229)) → qs42_out_aa(.(T103, T104), X230)
U8_aa(T103, T104, X230, T109, qs42_out_aa(T108, T113)) → U10_aa(T103, T104, X230, T113, qs42_in_aa(T109, T114))
U10_aa(T103, T104, X230, T113, qs42_out_aa(T109, T114)) → U11_aa(T103, T104, X230, app57_in_aaaa(T113, T103, T114, X230))
app57_in_aaaa([], T127, T128, .(T127, T128)) → app57_out_aaaa([], T127, T128, .(T127, T128))
app57_in_aaaa(.(T137, T138), T139, T140, .(T137, X270)) → U12_aaaa(T137, T138, T139, T140, X270, app57_in_aaaa(T138, T139, T140, X270))
U12_aaaa(T137, T138, T139, T140, X270, app57_out_aaaa(T138, T139, T140, X270)) → app57_out_aaaa(.(T137, T138), T139, T140, .(T137, X270))
U11_aa(T103, T104, X230, app57_out_aaaa(T113, T103, T114, X230)) → qs42_out_aa(.(T103, T104), X230)
U25_aa(T191, T192, T193, T9, qs42_out_aa(T197, X14)) → qs1_out_aa(.(T191, .(T192, T193)), T9)
U24_aa(T191, T192, T193, T9, part24_out_aaaa(T191, T193, T197, T198)) → U26_aa(T191, T192, T193, T9, T198, qs42_in_aa(T197, T202))
U26_aa(T191, T192, T193, T9, T198, qs42_out_aa(T197, T202)) → U27_aa(T191, T192, T193, T9, p41_in_aaaaa(.(T192, T198), X15, T202, T191, T9))
p41_in_aaaaa(T46, X15, T95, T22, T9) → U14_aaaaa(T46, X15, T95, T22, T9, qs42_in_aa(T46, X15))
U14_aaaaa(T46, X15, T95, T22, T9, qs42_out_aa(T46, X15)) → p41_out_aaaaa(T46, X15, T95, T22, T9)
p41_in_aaaaa(T46, T98, T95, T22, T9) → U15_aaaaa(T46, T98, T95, T22, T9, qs42_in_aa(T46, T98))
U15_aaaaa(T46, T98, T95, T22, T9, qs42_out_aa(T46, T98)) → U16_aaaaa(T46, T98, T95, T22, T9, app43_in_aaaa(T95, T22, T98, T9))
app43_in_aaaa([], T157, T158, .(T157, T158)) → app43_out_aaaa([], T157, T158, .(T157, T158))
app43_in_aaaa(.(T169, T170), T171, T172, .(T169, T174)) → U13_aaaa(T169, T170, T171, T172, T174, app43_in_aaaa(T170, T171, T172, T174))
U13_aaaa(T169, T170, T171, T172, T174, app43_out_aaaa(T170, T171, T172, T174)) → app43_out_aaaa(.(T169, T170), T171, T172, .(T169, T174))
U16_aaaaa(T46, T98, T95, T22, T9, app43_out_aaaa(T95, T22, T98, T9)) → p41_out_aaaaa(T46, T98, T95, T22, T9)
U27_aa(T191, T192, T193, T9, p41_out_aaaaa(.(T192, T198), X15, T202, T191, T9)) → qs1_out_aa(.(T191, .(T192, T193)), T9)
qs1_in_aa(.(T207, []), T9) → U28_aa(T207, T9, qs84_in_a(X14))
qs84_in_a([]) → qs84_out_a([])
U28_aa(T207, T9, qs84_out_a(X14)) → qs1_out_aa(.(T207, []), T9)
qs1_in_aa(.(T207, []), T9) → U29_aa(T207, T9, qs84_in_a(T210))
U29_aa(T207, T9, qs84_out_a(T210)) → U30_aa(T207, T9, qs84_in_a(X15))
U30_aa(T207, T9, qs84_out_a(X15)) → qs1_out_aa(.(T207, []), T9)
U29_aa(T207, T9, qs84_out_a(T210)) → U31_aa(T207, T9, T210, qs84_in_a(T213))
U31_aa(T207, T9, T210, qs84_out_a(T213)) → U32_aa(T207, T9, app43_in_gaga(T210, T207, T213, T9))
app43_in_gaga([], T157, T158, .(T157, T158)) → app43_out_gaga([], T157, T158, .(T157, T158))
app43_in_gaga(.(T169, T170), T171, T172, .(T169, T174)) → U13_gaga(T169, T170, T171, T172, T174, app43_in_gaga(T170, T171, T172, T174))
U13_gaga(T169, T170, T171, T172, T174, app43_out_gaga(T170, T171, T172, T174)) → app43_out_gaga(.(T169, T170), T171, T172, .(T169, T174))
U32_aa(T207, T9, app43_out_gaga(T210, T207, T213, T9)) → qs1_out_aa(.(T207, []), T9)
U20_aa(T22, T23, T24, T9, qs1_out_aa(.(T23, T45), X14)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U19_aa(T22, T23, T24, T9, part24_out_gaaa(T22, T24, T45, T46)) → U21_aa(T22, T23, T24, T9, T46, qs1_in_aa(.(T23, T45), T95))
U21_aa(T22, T23, T24, T9, T46, qs1_out_aa(.(T23, T45), T95)) → U22_aa(T22, T23, T24, T9, p41_in_aaaga(T46, X15, T95, T22, T9))
p41_in_aaaga(T46, X15, T95, T22, T9) → U14_aaaga(T46, X15, T95, T22, T9, qs42_in_aa(T46, X15))
U14_aaaga(T46, X15, T95, T22, T9, qs42_out_aa(T46, X15)) → p41_out_aaaga(T46, X15, T95, T22, T9)
p41_in_aaaga(T46, T98, T95, T22, T9) → U15_aaaga(T46, T98, T95, T22, T9, qs42_in_aa(T46, T98))
U15_aaaga(T46, T98, T95, T22, T9, qs42_out_aa(T46, T98)) → U16_aaaga(T46, T98, T95, T22, T9, app43_in_agaa(T95, T22, T98, T9))
app43_in_agaa([], T157, T158, .(T157, T158)) → app43_out_agaa([], T157, T158, .(T157, T158))
app43_in_agaa(.(T169, T170), T171, T172, .(T169, T174)) → U13_agaa(T169, T170, T171, T172, T174, app43_in_agaa(T170, T171, T172, T174))
U13_agaa(T169, T170, T171, T172, T174, app43_out_agaa(T170, T171, T172, T174)) → app43_out_agaa(.(T169, T170), T171, T172, .(T169, T174))
U16_aaaga(T46, T98, T95, T22, T9, app43_out_agaa(T95, T22, T98, T9)) → p41_out_aaaga(T46, T98, T95, T22, T9)
U22_aa(T22, T23, T24, T9, p41_out_aaaga(T46, X15, T95, T22, T9)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U20_ga(T22, T23, T24, T9, qs1_out_aa(.(T23, T45), X14)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U19_ga(T22, T23, T24, T9, part24_out_ggaa(T22, T24, T45, T46)) → U21_ga(T22, T23, T24, T9, T46, qs1_in_aa(.(T23, T45), T95))
U21_ga(T22, T23, T24, T9, T46, qs1_out_aa(.(T23, T45), T95)) → U22_ga(T22, T23, T24, T9, p41_in_aaaga(T46, X15, T95, T22, T9))
U22_ga(T22, T23, T24, T9, p41_out_aaaga(T46, X15, T95, T22, T9)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
qs1_in_ga(.(T191, .(T192, T193)), T9) → U23_ga(T191, T192, T193, T9, part24_in_ggaa(T191, T193, X336, X337))
U23_ga(T191, T192, T193, T9, part24_out_ggaa(T191, T193, X336, X337)) → qs1_out_ga(.(T191, .(T192, T193)), T9)
qs1_in_ga(.(T191, .(T192, T193)), T9) → U24_ga(T191, T192, T193, T9, part24_in_ggaa(T191, T193, T197, T198))
U24_ga(T191, T192, T193, T9, part24_out_ggaa(T191, T193, T197, T198)) → U25_ga(T191, T192, T193, T9, qs42_in_aa(T197, X14))
U25_ga(T191, T192, T193, T9, qs42_out_aa(T197, X14)) → qs1_out_ga(.(T191, .(T192, T193)), T9)
U24_ga(T191, T192, T193, T9, part24_out_ggaa(T191, T193, T197, T198)) → U26_ga(T191, T192, T193, T9, T198, qs42_in_aa(T197, T202))
U26_ga(T191, T192, T193, T9, T198, qs42_out_aa(T197, T202)) → U27_ga(T191, T192, T193, T9, p41_in_aaaga(.(T192, T198), X15, T202, T191, T9))
U27_ga(T191, T192, T193, T9, p41_out_aaaga(.(T192, T198), X15, T202, T191, T9)) → qs1_out_ga(.(T191, .(T192, T193)), T9)
qs1_in_ga(.(T207, []), T9) → U28_ga(T207, T9, qs84_in_a(X14))
U28_ga(T207, T9, qs84_out_a(X14)) → qs1_out_ga(.(T207, []), T9)
qs1_in_ga(.(T207, []), T9) → U29_ga(T207, T9, qs84_in_a(T210))
U29_ga(T207, T9, qs84_out_a(T210)) → U30_ga(T207, T9, qs84_in_a(X15))
U30_ga(T207, T9, qs84_out_a(X15)) → qs1_out_ga(.(T207, []), T9)
U29_ga(T207, T9, qs84_out_a(T210)) → U31_ga(T207, T9, T210, qs84_in_a(T213))
U31_ga(T207, T9, T210, qs84_out_a(T213)) → U32_ga(T207, T9, app43_in_ggga(T210, T207, T213, T9))
app43_in_ggga([], T157, T158, .(T157, T158)) → app43_out_ggga([], T157, T158, .(T157, T158))
app43_in_ggga(.(T169, T170), T171, T172, .(T169, T174)) → U13_ggga(T169, T170, T171, T172, T174, app43_in_ggga(T170, T171, T172, T174))
U13_ggga(T169, T170, T171, T172, T174, app43_out_ggga(T170, T171, T172, T174)) → app43_out_ggga(.(T169, T170), T171, T172, .(T169, T174))
U32_ga(T207, T9, app43_out_ggga(T210, T207, T213, T9)) → qs1_out_ga(.(T207, []), T9)
LESS14_IN_GG(s(T38), s(T39)) → LESS14_IN_GG(T38, T39)
LESS14_IN_GG(s(T38), s(T39)) → LESS14_IN_GG(T38, T39)
From the DPs we obtained the following set of size-change graphs:
PART24_IN_GGAA(T62, .(T63, T64), .(T63, X126), X127) → U2_GGAA(T62, T63, T64, X126, X127, less14_in_gg(T62, T63))
U2_GGAA(T62, T63, T64, X126, X127, less14_out_gg(T62, T63)) → PART24_IN_GGAA(T62, T64, X126, X127)
PART24_IN_GGAA(T84, .(T85, T86), X177, .(T85, X178)) → PART24_IN_GGAA(T84, T86, X177, X178)
qs1_in_ga([], []) → qs1_out_ga([], [])
qs1_in_ga(.(T22, .(T23, T24)), T9) → U17_ga(T22, T23, T24, T9, less14_in_gg(T22, T23))
less14_in_gg(0, s(T33)) → less14_out_gg(0, s(T33))
less14_in_gg(s(T38), s(T39)) → U1_gg(T38, T39, less14_in_gg(T38, T39))
U1_gg(T38, T39, less14_out_gg(T38, T39)) → less14_out_gg(s(T38), s(T39))
U17_ga(T22, T23, T24, T9, less14_out_gg(T22, T23)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U17_ga(T22, T23, T24, T9, less14_out_gg(T22, T23)) → U18_ga(T22, T23, T24, T9, part24_in_ggaa(T22, T24, X52, X53))
part24_in_ggaa(T62, .(T63, T64), .(T63, X126), X127) → U2_ggaa(T62, T63, T64, X126, X127, less14_in_gg(T62, T63))
U2_ggaa(T62, T63, T64, X126, X127, less14_out_gg(T62, T63)) → part24_out_ggaa(T62, .(T63, T64), .(T63, X126), X127)
U2_ggaa(T62, T63, T64, X126, X127, less14_out_gg(T62, T63)) → U3_ggaa(T62, T63, T64, X126, X127, part24_in_ggaa(T62, T64, X126, X127))
part24_in_ggaa(T84, .(T85, T86), X177, .(T85, X178)) → U4_ggaa(T84, T85, T86, X177, X178, part24_in_ggaa(T84, T86, X177, X178))
part24_in_ggaa(T92, [], [], []) → part24_out_ggaa(T92, [], [], [])
U4_ggaa(T84, T85, T86, X177, X178, part24_out_ggaa(T84, T86, X177, X178)) → part24_out_ggaa(T84, .(T85, T86), X177, .(T85, X178))
U3_ggaa(T62, T63, T64, X126, X127, part24_out_ggaa(T62, T64, X126, X127)) → part24_out_ggaa(T62, .(T63, T64), .(T63, X126), X127)
U18_ga(T22, T23, T24, T9, part24_out_ggaa(T22, T24, X52, X53)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U17_ga(T22, T23, T24, T9, less14_out_gg(T22, T23)) → U19_ga(T22, T23, T24, T9, part24_in_ggaa(T22, T24, T45, T46))
U19_ga(T22, T23, T24, T9, part24_out_ggaa(T22, T24, T45, T46)) → U20_ga(T22, T23, T24, T9, qs1_in_aa(.(T23, T45), X14))
qs1_in_aa([], []) → qs1_out_aa([], [])
qs1_in_aa(.(T22, .(T23, T24)), T9) → U17_aa(T22, T23, T24, T9, less14_in_aa(T22, T23))
less14_in_aa(0, s(T33)) → less14_out_aa(0, s(T33))
less14_in_aa(s(T38), s(T39)) → U1_aa(T38, T39, less14_in_aa(T38, T39))
U1_aa(T38, T39, less14_out_aa(T38, T39)) → less14_out_aa(s(T38), s(T39))
U17_aa(T22, T23, T24, T9, less14_out_aa(T22, T23)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U17_aa(T22, T23, T24, T9, less14_out_aa(T22, T23)) → U18_aa(T22, T23, T24, T9, part24_in_gaaa(T22, T24, X52, X53))
part24_in_gaaa(T62, .(T63, T64), .(T63, X126), X127) → U2_gaaa(T62, T63, T64, X126, X127, less14_in_ga(T62, T63))
less14_in_ga(0, s(T33)) → less14_out_ga(0, s(T33))
less14_in_ga(s(T38), s(T39)) → U1_ga(T38, T39, less14_in_ga(T38, T39))
U1_ga(T38, T39, less14_out_ga(T38, T39)) → less14_out_ga(s(T38), s(T39))
U2_gaaa(T62, T63, T64, X126, X127, less14_out_ga(T62, T63)) → part24_out_gaaa(T62, .(T63, T64), .(T63, X126), X127)
U2_gaaa(T62, T63, T64, X126, X127, less14_out_ga(T62, T63)) → U3_gaaa(T62, T63, T64, X126, X127, part24_in_gaaa(T62, T64, X126, X127))
part24_in_gaaa(T84, .(T85, T86), X177, .(T85, X178)) → U4_gaaa(T84, T85, T86, X177, X178, part24_in_gaaa(T84, T86, X177, X178))
part24_in_gaaa(T92, [], [], []) → part24_out_gaaa(T92, [], [], [])
U4_gaaa(T84, T85, T86, X177, X178, part24_out_gaaa(T84, T86, X177, X178)) → part24_out_gaaa(T84, .(T85, T86), X177, .(T85, X178))
U3_gaaa(T62, T63, T64, X126, X127, part24_out_gaaa(T62, T64, X126, X127)) → part24_out_gaaa(T62, .(T63, T64), .(T63, X126), X127)
U18_aa(T22, T23, T24, T9, part24_out_gaaa(T22, T24, X52, X53)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U17_aa(T22, T23, T24, T9, less14_out_aa(T22, T23)) → U19_aa(T22, T23, T24, T9, part24_in_gaaa(T22, T24, T45, T46))
U19_aa(T22, T23, T24, T9, part24_out_gaaa(T22, T24, T45, T46)) → U20_aa(T22, T23, T24, T9, qs1_in_aa(.(T23, T45), X14))
qs1_in_aa(.(T191, .(T192, T193)), T9) → U23_aa(T191, T192, T193, T9, part24_in_aaaa(T191, T193, X336, X337))
part24_in_aaaa(T62, .(T63, T64), .(T63, X126), X127) → U2_aaaa(T62, T63, T64, X126, X127, less14_in_aa(T62, T63))
U2_aaaa(T62, T63, T64, X126, X127, less14_out_aa(T62, T63)) → part24_out_aaaa(T62, .(T63, T64), .(T63, X126), X127)
U2_aaaa(T62, T63, T64, X126, X127, less14_out_aa(T62, T63)) → U3_aaaa(T62, T63, T64, X126, X127, part24_in_gaaa(T62, T64, X126, X127))
U3_aaaa(T62, T63, T64, X126, X127, part24_out_gaaa(T62, T64, X126, X127)) → part24_out_aaaa(T62, .(T63, T64), .(T63, X126), X127)
part24_in_aaaa(T84, .(T85, T86), X177, .(T85, X178)) → U4_aaaa(T84, T85, T86, X177, X178, part24_in_aaaa(T84, T86, X177, X178))
part24_in_aaaa(T92, [], [], []) → part24_out_aaaa(T92, [], [], [])
U4_aaaa(T84, T85, T86, X177, X178, part24_out_aaaa(T84, T86, X177, X178)) → part24_out_aaaa(T84, .(T85, T86), X177, .(T85, X178))
U23_aa(T191, T192, T193, T9, part24_out_aaaa(T191, T193, X336, X337)) → qs1_out_aa(.(T191, .(T192, T193)), T9)
qs1_in_aa(.(T191, .(T192, T193)), T9) → U24_aa(T191, T192, T193, T9, part24_in_aaaa(T191, T193, T197, T198))
U24_aa(T191, T192, T193, T9, part24_out_aaaa(T191, T193, T197, T198)) → U25_aa(T191, T192, T193, T9, qs42_in_aa(T197, X14))
qs42_in_aa([], []) → qs42_out_aa([], [])
qs42_in_aa(.(T103, T104), X230) → U5_aa(T103, T104, X230, part24_in_aaaa(T103, T104, X226, X227))
U5_aa(T103, T104, X230, part24_out_aaaa(T103, T104, X226, X227)) → qs42_out_aa(.(T103, T104), X230)
qs42_in_aa(.(T103, T104), X230) → U6_aa(T103, T104, X230, part24_in_aaaa(T103, T104, T108, T109))
U6_aa(T103, T104, X230, part24_out_aaaa(T103, T104, T108, T109)) → U7_aa(T103, T104, X230, qs42_in_aa(T108, X228))
U7_aa(T103, T104, X230, qs42_out_aa(T108, X228)) → qs42_out_aa(.(T103, T104), X230)
U6_aa(T103, T104, X230, part24_out_aaaa(T103, T104, T108, T109)) → U8_aa(T103, T104, X230, T109, qs42_in_aa(T108, T113))
U8_aa(T103, T104, X230, T109, qs42_out_aa(T108, T113)) → U9_aa(T103, T104, X230, qs42_in_aa(T109, X229))
U9_aa(T103, T104, X230, qs42_out_aa(T109, X229)) → qs42_out_aa(.(T103, T104), X230)
U8_aa(T103, T104, X230, T109, qs42_out_aa(T108, T113)) → U10_aa(T103, T104, X230, T113, qs42_in_aa(T109, T114))
U10_aa(T103, T104, X230, T113, qs42_out_aa(T109, T114)) → U11_aa(T103, T104, X230, app57_in_aaaa(T113, T103, T114, X230))
app57_in_aaaa([], T127, T128, .(T127, T128)) → app57_out_aaaa([], T127, T128, .(T127, T128))
app57_in_aaaa(.(T137, T138), T139, T140, .(T137, X270)) → U12_aaaa(T137, T138, T139, T140, X270, app57_in_aaaa(T138, T139, T140, X270))
U12_aaaa(T137, T138, T139, T140, X270, app57_out_aaaa(T138, T139, T140, X270)) → app57_out_aaaa(.(T137, T138), T139, T140, .(T137, X270))
U11_aa(T103, T104, X230, app57_out_aaaa(T113, T103, T114, X230)) → qs42_out_aa(.(T103, T104), X230)
U25_aa(T191, T192, T193, T9, qs42_out_aa(T197, X14)) → qs1_out_aa(.(T191, .(T192, T193)), T9)
U24_aa(T191, T192, T193, T9, part24_out_aaaa(T191, T193, T197, T198)) → U26_aa(T191, T192, T193, T9, T198, qs42_in_aa(T197, T202))
U26_aa(T191, T192, T193, T9, T198, qs42_out_aa(T197, T202)) → U27_aa(T191, T192, T193, T9, p41_in_aaaaa(.(T192, T198), X15, T202, T191, T9))
p41_in_aaaaa(T46, X15, T95, T22, T9) → U14_aaaaa(T46, X15, T95, T22, T9, qs42_in_aa(T46, X15))
U14_aaaaa(T46, X15, T95, T22, T9, qs42_out_aa(T46, X15)) → p41_out_aaaaa(T46, X15, T95, T22, T9)
p41_in_aaaaa(T46, T98, T95, T22, T9) → U15_aaaaa(T46, T98, T95, T22, T9, qs42_in_aa(T46, T98))
U15_aaaaa(T46, T98, T95, T22, T9, qs42_out_aa(T46, T98)) → U16_aaaaa(T46, T98, T95, T22, T9, app43_in_aaaa(T95, T22, T98, T9))
app43_in_aaaa([], T157, T158, .(T157, T158)) → app43_out_aaaa([], T157, T158, .(T157, T158))
app43_in_aaaa(.(T169, T170), T171, T172, .(T169, T174)) → U13_aaaa(T169, T170, T171, T172, T174, app43_in_aaaa(T170, T171, T172, T174))
U13_aaaa(T169, T170, T171, T172, T174, app43_out_aaaa(T170, T171, T172, T174)) → app43_out_aaaa(.(T169, T170), T171, T172, .(T169, T174))
U16_aaaaa(T46, T98, T95, T22, T9, app43_out_aaaa(T95, T22, T98, T9)) → p41_out_aaaaa(T46, T98, T95, T22, T9)
U27_aa(T191, T192, T193, T9, p41_out_aaaaa(.(T192, T198), X15, T202, T191, T9)) → qs1_out_aa(.(T191, .(T192, T193)), T9)
qs1_in_aa(.(T207, []), T9) → U28_aa(T207, T9, qs84_in_a(X14))
qs84_in_a([]) → qs84_out_a([])
U28_aa(T207, T9, qs84_out_a(X14)) → qs1_out_aa(.(T207, []), T9)
qs1_in_aa(.(T207, []), T9) → U29_aa(T207, T9, qs84_in_a(T210))
U29_aa(T207, T9, qs84_out_a(T210)) → U30_aa(T207, T9, qs84_in_a(X15))
U30_aa(T207, T9, qs84_out_a(X15)) → qs1_out_aa(.(T207, []), T9)
U29_aa(T207, T9, qs84_out_a(T210)) → U31_aa(T207, T9, T210, qs84_in_a(T213))
U31_aa(T207, T9, T210, qs84_out_a(T213)) → U32_aa(T207, T9, app43_in_gaga(T210, T207, T213, T9))
app43_in_gaga([], T157, T158, .(T157, T158)) → app43_out_gaga([], T157, T158, .(T157, T158))
app43_in_gaga(.(T169, T170), T171, T172, .(T169, T174)) → U13_gaga(T169, T170, T171, T172, T174, app43_in_gaga(T170, T171, T172, T174))
U13_gaga(T169, T170, T171, T172, T174, app43_out_gaga(T170, T171, T172, T174)) → app43_out_gaga(.(T169, T170), T171, T172, .(T169, T174))
U32_aa(T207, T9, app43_out_gaga(T210, T207, T213, T9)) → qs1_out_aa(.(T207, []), T9)
U20_aa(T22, T23, T24, T9, qs1_out_aa(.(T23, T45), X14)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U19_aa(T22, T23, T24, T9, part24_out_gaaa(T22, T24, T45, T46)) → U21_aa(T22, T23, T24, T9, T46, qs1_in_aa(.(T23, T45), T95))
U21_aa(T22, T23, T24, T9, T46, qs1_out_aa(.(T23, T45), T95)) → U22_aa(T22, T23, T24, T9, p41_in_aaaga(T46, X15, T95, T22, T9))
p41_in_aaaga(T46, X15, T95, T22, T9) → U14_aaaga(T46, X15, T95, T22, T9, qs42_in_aa(T46, X15))
U14_aaaga(T46, X15, T95, T22, T9, qs42_out_aa(T46, X15)) → p41_out_aaaga(T46, X15, T95, T22, T9)
p41_in_aaaga(T46, T98, T95, T22, T9) → U15_aaaga(T46, T98, T95, T22, T9, qs42_in_aa(T46, T98))
U15_aaaga(T46, T98, T95, T22, T9, qs42_out_aa(T46, T98)) → U16_aaaga(T46, T98, T95, T22, T9, app43_in_agaa(T95, T22, T98, T9))
app43_in_agaa([], T157, T158, .(T157, T158)) → app43_out_agaa([], T157, T158, .(T157, T158))
app43_in_agaa(.(T169, T170), T171, T172, .(T169, T174)) → U13_agaa(T169, T170, T171, T172, T174, app43_in_agaa(T170, T171, T172, T174))
U13_agaa(T169, T170, T171, T172, T174, app43_out_agaa(T170, T171, T172, T174)) → app43_out_agaa(.(T169, T170), T171, T172, .(T169, T174))
U16_aaaga(T46, T98, T95, T22, T9, app43_out_agaa(T95, T22, T98, T9)) → p41_out_aaaga(T46, T98, T95, T22, T9)
U22_aa(T22, T23, T24, T9, p41_out_aaaga(T46, X15, T95, T22, T9)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U20_ga(T22, T23, T24, T9, qs1_out_aa(.(T23, T45), X14)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U19_ga(T22, T23, T24, T9, part24_out_ggaa(T22, T24, T45, T46)) → U21_ga(T22, T23, T24, T9, T46, qs1_in_aa(.(T23, T45), T95))
U21_ga(T22, T23, T24, T9, T46, qs1_out_aa(.(T23, T45), T95)) → U22_ga(T22, T23, T24, T9, p41_in_aaaga(T46, X15, T95, T22, T9))
U22_ga(T22, T23, T24, T9, p41_out_aaaga(T46, X15, T95, T22, T9)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
qs1_in_ga(.(T191, .(T192, T193)), T9) → U23_ga(T191, T192, T193, T9, part24_in_ggaa(T191, T193, X336, X337))
U23_ga(T191, T192, T193, T9, part24_out_ggaa(T191, T193, X336, X337)) → qs1_out_ga(.(T191, .(T192, T193)), T9)
qs1_in_ga(.(T191, .(T192, T193)), T9) → U24_ga(T191, T192, T193, T9, part24_in_ggaa(T191, T193, T197, T198))
U24_ga(T191, T192, T193, T9, part24_out_ggaa(T191, T193, T197, T198)) → U25_ga(T191, T192, T193, T9, qs42_in_aa(T197, X14))
U25_ga(T191, T192, T193, T9, qs42_out_aa(T197, X14)) → qs1_out_ga(.(T191, .(T192, T193)), T9)
U24_ga(T191, T192, T193, T9, part24_out_ggaa(T191, T193, T197, T198)) → U26_ga(T191, T192, T193, T9, T198, qs42_in_aa(T197, T202))
U26_ga(T191, T192, T193, T9, T198, qs42_out_aa(T197, T202)) → U27_ga(T191, T192, T193, T9, p41_in_aaaga(.(T192, T198), X15, T202, T191, T9))
U27_ga(T191, T192, T193, T9, p41_out_aaaga(.(T192, T198), X15, T202, T191, T9)) → qs1_out_ga(.(T191, .(T192, T193)), T9)
qs1_in_ga(.(T207, []), T9) → U28_ga(T207, T9, qs84_in_a(X14))
U28_ga(T207, T9, qs84_out_a(X14)) → qs1_out_ga(.(T207, []), T9)
qs1_in_ga(.(T207, []), T9) → U29_ga(T207, T9, qs84_in_a(T210))
U29_ga(T207, T9, qs84_out_a(T210)) → U30_ga(T207, T9, qs84_in_a(X15))
U30_ga(T207, T9, qs84_out_a(X15)) → qs1_out_ga(.(T207, []), T9)
U29_ga(T207, T9, qs84_out_a(T210)) → U31_ga(T207, T9, T210, qs84_in_a(T213))
U31_ga(T207, T9, T210, qs84_out_a(T213)) → U32_ga(T207, T9, app43_in_ggga(T210, T207, T213, T9))
app43_in_ggga([], T157, T158, .(T157, T158)) → app43_out_ggga([], T157, T158, .(T157, T158))
app43_in_ggga(.(T169, T170), T171, T172, .(T169, T174)) → U13_ggga(T169, T170, T171, T172, T174, app43_in_ggga(T170, T171, T172, T174))
U13_ggga(T169, T170, T171, T172, T174, app43_out_ggga(T170, T171, T172, T174)) → app43_out_ggga(.(T169, T170), T171, T172, .(T169, T174))
U32_ga(T207, T9, app43_out_ggga(T210, T207, T213, T9)) → qs1_out_ga(.(T207, []), T9)
PART24_IN_GGAA(T62, .(T63, T64), .(T63, X126), X127) → U2_GGAA(T62, T63, T64, X126, X127, less14_in_gg(T62, T63))
U2_GGAA(T62, T63, T64, X126, X127, less14_out_gg(T62, T63)) → PART24_IN_GGAA(T62, T64, X126, X127)
PART24_IN_GGAA(T84, .(T85, T86), X177, .(T85, X178)) → PART24_IN_GGAA(T84, T86, X177, X178)
less14_in_gg(0, s(T33)) → less14_out_gg(0, s(T33))
less14_in_gg(s(T38), s(T39)) → U1_gg(T38, T39, less14_in_gg(T38, T39))
U1_gg(T38, T39, less14_out_gg(T38, T39)) → less14_out_gg(s(T38), s(T39))
PART24_IN_GGAA(T62, .(T63, T64)) → U2_GGAA(T62, T63, T64, less14_in_gg(T62, T63))
U2_GGAA(T62, T63, T64, less14_out_gg(T62, T63)) → PART24_IN_GGAA(T62, T64)
PART24_IN_GGAA(T84, .(T85, T86)) → PART24_IN_GGAA(T84, T86)
less14_in_gg(0, s(T33)) → less14_out_gg(0, s(T33))
less14_in_gg(s(T38), s(T39)) → U1_gg(T38, T39, less14_in_gg(T38, T39))
U1_gg(T38, T39, less14_out_gg(T38, T39)) → less14_out_gg(s(T38), s(T39))
less14_in_gg(x0, x1)
U1_gg(x0, x1, x2)
From the DPs we obtained the following set of size-change graphs: