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 QDPSizeChangeProof (⇔)
↳22 YES
↳23 PiDP
↳24 UsableRulesProof (⇔)
↳25 PiDP
↳26 PiDPToQDPProof (⇐)
↳27 QDP
↳28 NonTerminationProof (⇔)
↳29 NO
↳30 PiDP
↳31 UsableRulesProof (⇔)
↳32 PiDP
↳33 PiDPToQDPProof (⇐)
↳34 QDP
↳35 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 QDPSizeChangeProof (⇔)
↳57 YES
↳58 PiDP
↳59 UsableRulesProof (⇔)
↳60 PiDP
↳61 PiDPToQDPProof (⇐)
↳62 QDP
↳63 Narrowing (⇐)
↳64 QDP
↳65 Narrowing (⇐)
↳66 QDP
↳67 Instantiation (⇔)
↳68 QDP
↳69 Instantiation (⇔)
↳70 QDP
↳71 DependencyGraphProof (⇔)
↳72 AND
↳73 QDP
↳74 UsableRulesProof (⇔)
↳75 QDP
↳76 QReductionProof (⇔)
↳77 QDP
↳78 NonTerminationProof (⇔)
↳79 NO
↳80 QDP
↳81 NonTerminationProof (⇔)
↳82 NO
↳83 PiDP
↳84 UsableRulesProof (⇔)
↳85 PiDP
↳86 PiDPToQDPProof (⇐)
↳87 QDP
↳88 NonTerminationProof (⇔)
↳89 NO
↳90 PiDP
↳91 UsableRulesProof (⇔)
↳92 PiDP
↳93 PiDPToQDPProof (⇐)
↳94 QDP
↳95 Narrowing (⇐)
↳96 QDP
↳97 Narrowing (⇐)
↳98 QDP
↳99 NonTerminationProof (⇔)
↳100 NO
↳101 PiDP
↳102 UsableRulesProof (⇔)
↳103 PiDP
↳104 PiDPToQDPProof (⇐)
↳105 QDP
↳106 Narrowing (⇐)
↳107 QDP
↳108 Narrowing (⇐)
↳109 QDP
↳110 NonTerminationProof (⇔)
↳111 NO
↳112 PiDP
↳113 UsableRulesProof (⇔)
↳114 PiDP
↳115 PiDPToQDPProof (⇔)
↳116 QDP
↳117 QDPSizeChangeProof (⇔)
↳118 YES
↳119 PiDP
↳120 UsableRulesProof (⇔)
↳121 PiDP
↳122 PiDPToQDPProof (⇔)
↳123 QDP
↳124 QDPSizeChangeProof (⇔)
↳125 YES
↳126 PiDP
↳127 UsableRulesProof (⇔)
↳128 PiDP
↳129 PiDPToQDPProof (⇐)
↳130 QDP
↳131 QDPSizeChangeProof (⇔)
↳132 YES
↳133 PrologToPiTRSProof (⇐)
↳134 PiTRS
↳135 DependencyPairsProof (⇔)
↳136 PiDP
↳137 DependencyGraphProof (⇔)
↳138 AND
↳139 PiDP
↳140 UsableRulesProof (⇔)
↳141 PiDP
↳142 PiDPToQDPProof (⇐)
↳143 QDP
↳144 QDPSizeChangeProof (⇔)
↳145 YES
↳146 PiDP
↳147 UsableRulesProof (⇔)
↳148 PiDP
↳149 PiDPToQDPProof (⇐)
↳150 QDP
↳151 QDPSizeChangeProof (⇔)
↳152 YES
↳153 PiDP
↳154 UsableRulesProof (⇔)
↳155 PiDP
↳156 PiDPToQDPProof (⇐)
↳157 QDP
↳158 NonTerminationProof (⇔)
↳159 NO
↳160 PiDP
↳161 UsableRulesProof (⇔)
↳162 PiDP
↳163 PiDPToQDPProof (⇐)
↳164 QDP
↳165 NonTerminationProof (⇔)
↳166 NO
↳167 PiDP
↳168 UsableRulesProof (⇔)
↳169 PiDP
↳170 PiDPToQDPProof (⇐)
↳171 QDP
↳172 NonTerminationProof (⇔)
↳173 NO
↳174 PiDP
↳175 UsableRulesProof (⇔)
↳176 PiDP
↳177 PiDPToQDPProof (⇐)
↳178 QDP
↳179 QDPSizeChangeProof (⇔)
↳180 YES
↳181 PiDP
↳182 UsableRulesProof (⇔)
↳183 PiDP
↳184 PiDPToQDPProof (⇐)
↳185 QDP
↳186 QDPSizeChangeProof (⇔)
↳187 YES
↳188 PiDP
↳189 UsableRulesProof (⇔)
↳190 PiDP
↳191 PiDPToQDPProof (⇐)
↳192 QDP
↳193 Narrowing (⇐)
↳194 QDP
↳195 Narrowing (⇐)
↳196 QDP
↳197 Instantiation (⇔)
↳198 QDP
↳199 Instantiation (⇔)
↳200 QDP
↳201 DependencyGraphProof (⇔)
↳202 AND
↳203 QDP
↳204 UsableRulesProof (⇔)
↳205 QDP
↳206 QReductionProof (⇔)
↳207 QDP
↳208 NonTerminationProof (⇔)
↳209 NO
↳210 QDP
↳211 NonTerminationProof (⇔)
↳212 NO
↳213 PiDP
↳214 UsableRulesProof (⇔)
↳215 PiDP
↳216 PiDPToQDPProof (⇐)
↳217 QDP
↳218 NonTerminationProof (⇔)
↳219 NO
↳220 PiDP
↳221 UsableRulesProof (⇔)
↳222 PiDP
↳223 PiDPToQDPProof (⇐)
↳224 QDP
↳225 Narrowing (⇐)
↳226 QDP
↳227 Narrowing (⇐)
↳228 QDP
↳229 NonTerminationProof (⇔)
↳230 NO
↳231 PiDP
↳232 UsableRulesProof (⇔)
↳233 PiDP
↳234 PiDPToQDPProof (⇐)
↳235 QDP
↳236 Narrowing (⇐)
↳237 QDP
↳238 Narrowing (⇐)
↳239 QDP
↳240 NonTerminationProof (⇔)
↳241 NO
↳242 PiDP
↳243 UsableRulesProof (⇔)
↳244 PiDP
↳245 PiDPToQDPProof (⇔)
↳246 QDP
↳247 QDPSizeChangeProof (⇔)
↳248 YES
↳249 PiDP
↳250 UsableRulesProof (⇔)
↳251 PiDP
↳252 PiDPToQDPProof (⇔)
↳253 QDP
↳254 QDPSizeChangeProof (⇔)
↳255 YES
↳256 PiDP
↳257 UsableRulesProof (⇔)
↳258 PiDP
↳259 PiDPToQDPProof (⇐)
↳260 QDP
↳261 QDPSizeChangeProof (⇔)
↳262 YES
qs1_in_ga(.(T22, .(T23, T24)), T9) → U19_ga(T22, T23, T24, T9, gt10_in_gg(T22, T23))
gt10_in_gg(s(T37), s(T38)) → U1_gg(T37, T38, gt10_in_gg(T37, T38))
gt10_in_gg(s(0), 0) → gt10_out_gg(s(0), 0)
U1_gg(T37, T38, gt10_out_gg(T37, T38)) → gt10_out_gg(s(T37), s(T38))
U19_ga(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U19_ga(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → U20_ga(T22, T23, T24, T9, part20_in_ggaa(T22, T24, X47, X48))
part20_in_ggaa(T61, .(T62, T63), .(T62, X119), X120) → U2_ggaa(T61, T62, T63, X119, X120, gt10_in_gg(T61, T62))
U2_ggaa(T61, T62, T63, X119, X120, gt10_out_gg(T61, T62)) → part20_out_ggaa(T61, .(T62, T63), .(T62, X119), X120)
U2_ggaa(T61, T62, T63, X119, X120, gt10_out_gg(T61, T62)) → U3_ggaa(T61, T62, T63, X119, X120, part20_in_ggaa(T61, T63, X119, X120))
part20_in_ggaa(T83, .(T84, T85), X170, .(T84, X171)) → U4_ggaa(T83, T84, T85, X170, X171, le33_in_gg(T83, T84))
le33_in_gg(s(T98), s(T99)) → U6_gg(T98, T99, le33_in_gg(T98, T99))
le33_in_gg(0, s(0)) → le33_out_gg(0, s(0))
le33_in_gg(0, 0) → le33_out_gg(0, 0)
U6_gg(T98, T99, le33_out_gg(T98, T99)) → le33_out_gg(s(T98), s(T99))
U4_ggaa(T83, T84, T85, X170, X171, le33_out_gg(T83, T84)) → part20_out_ggaa(T83, .(T84, T85), X170, .(T84, X171))
U4_ggaa(T83, T84, T85, X170, X171, le33_out_gg(T83, T84)) → U5_ggaa(T83, T84, T85, X170, X171, part20_in_ggaa(T83, T85, X170, X171))
part20_in_ggaa(T107, [], [], []) → part20_out_ggaa(T107, [], [], [])
U5_ggaa(T83, T84, T85, X170, X171, part20_out_ggaa(T83, T85, X170, X171)) → part20_out_ggaa(T83, .(T84, T85), X170, .(T84, X171))
U3_ggaa(T61, T62, T63, X119, X120, part20_out_ggaa(T61, T63, X119, X120)) → part20_out_ggaa(T61, .(T62, T63), .(T62, X119), X120)
U20_ga(T22, T23, T24, T9, part20_out_ggaa(T22, T24, X47, X48)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U19_ga(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → U21_ga(T22, T23, T24, T9, part20_in_ggaa(T22, T24, T44, T45))
U21_ga(T22, T23, T24, T9, part20_out_ggaa(T22, T24, T44, T45)) → U22_ga(T22, T23, T24, T9, qs1_in_aa(.(T23, T44), X9))
qs1_in_aa(.(T22, .(T23, T24)), T9) → U19_aa(T22, T23, T24, T9, gt10_in_aa(T22, T23))
gt10_in_aa(s(T37), s(T38)) → U1_aa(T37, T38, gt10_in_aa(T37, T38))
gt10_in_aa(s(0), 0) → gt10_out_aa(s(0), 0)
U1_aa(T37, T38, gt10_out_aa(T37, T38)) → gt10_out_aa(s(T37), s(T38))
U19_aa(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U19_aa(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → U20_aa(T22, T23, T24, T9, part20_in_gaaa(T22, T24, X47, X48))
part20_in_gaaa(T61, .(T62, T63), .(T62, X119), X120) → U2_gaaa(T61, T62, T63, X119, X120, gt10_in_ga(T61, T62))
gt10_in_ga(s(T37), s(T38)) → U1_ga(T37, T38, gt10_in_ga(T37, T38))
gt10_in_ga(s(0), 0) → gt10_out_ga(s(0), 0)
U1_ga(T37, T38, gt10_out_ga(T37, T38)) → gt10_out_ga(s(T37), s(T38))
U2_gaaa(T61, T62, T63, X119, X120, gt10_out_ga(T61, T62)) → part20_out_gaaa(T61, .(T62, T63), .(T62, X119), X120)
U2_gaaa(T61, T62, T63, X119, X120, gt10_out_ga(T61, T62)) → U3_gaaa(T61, T62, T63, X119, X120, part20_in_gaaa(T61, T63, X119, X120))
part20_in_gaaa(T83, .(T84, T85), X170, .(T84, X171)) → U4_gaaa(T83, T84, T85, X170, X171, le33_in_ga(T83, T84))
le33_in_ga(s(T98), s(T99)) → U6_ga(T98, T99, le33_in_ga(T98, T99))
le33_in_ga(0, s(0)) → le33_out_ga(0, s(0))
le33_in_ga(0, 0) → le33_out_ga(0, 0)
U6_ga(T98, T99, le33_out_ga(T98, T99)) → le33_out_ga(s(T98), s(T99))
U4_gaaa(T83, T84, T85, X170, X171, le33_out_ga(T83, T84)) → part20_out_gaaa(T83, .(T84, T85), X170, .(T84, X171))
U4_gaaa(T83, T84, T85, X170, X171, le33_out_ga(T83, T84)) → U5_gaaa(T83, T84, T85, X170, X171, part20_in_gaaa(T83, T85, X170, X171))
part20_in_gaaa(T107, [], [], []) → part20_out_gaaa(T107, [], [], [])
U5_gaaa(T83, T84, T85, X170, X171, part20_out_gaaa(T83, T85, X170, X171)) → part20_out_gaaa(T83, .(T84, T85), X170, .(T84, X171))
U3_gaaa(T61, T62, T63, X119, X120, part20_out_gaaa(T61, T63, X119, X120)) → part20_out_gaaa(T61, .(T62, T63), .(T62, X119), X120)
U20_aa(T22, T23, T24, T9, part20_out_gaaa(T22, T24, X47, X48)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U19_aa(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → U21_aa(T22, T23, T24, T9, part20_in_gaaa(T22, T24, T44, T45))
U21_aa(T22, T23, T24, T9, part20_out_gaaa(T22, T24, T44, T45)) → U22_aa(T22, T23, T24, T9, qs1_in_aa(.(T23, T44), X9))
qs1_in_aa(.(T234, .(T235, T236)), T9) → U25_aa(T234, T235, T236, T9, le33_in_aa(T234, T235))
le33_in_aa(s(T98), s(T99)) → U6_aa(T98, T99, le33_in_aa(T98, T99))
le33_in_aa(0, s(0)) → le33_out_aa(0, s(0))
le33_in_aa(0, 0) → le33_out_aa(0, 0)
U6_aa(T98, T99, le33_out_aa(T98, T99)) → le33_out_aa(s(T98), s(T99))
U25_aa(T234, T235, T236, T9, le33_out_aa(T234, T235)) → qs1_out_aa(.(T234, .(T235, T236)), T9)
U25_aa(T234, T235, T236, T9, le33_out_aa(T234, T235)) → U26_aa(T234, T235, T236, T9, part20_in_gaaa(T234, T236, X431, X432))
U26_aa(T234, T235, T236, T9, part20_out_gaaa(T234, T236, X431, X432)) → qs1_out_aa(.(T234, .(T235, T236)), T9)
U25_aa(T234, T235, T236, T9, le33_out_aa(T234, T235)) → U27_aa(T234, T235, T236, T9, part20_in_gaaa(T234, T236, T244, T245))
U27_aa(T234, T235, T236, T9, part20_out_gaaa(T234, T236, T244, T245)) → U28_aa(T234, T235, T236, T9, qs53_in_aa(T244, X9))
qs53_in_aa(.(T126, T127), X269) → U7_aa(T126, T127, X269, part20_in_aaaa(T126, T127, X265, X266))
part20_in_aaaa(T61, .(T62, T63), .(T62, X119), X120) → U2_aaaa(T61, T62, T63, X119, X120, gt10_in_aa(T61, T62))
U2_aaaa(T61, T62, T63, X119, X120, gt10_out_aa(T61, T62)) → part20_out_aaaa(T61, .(T62, T63), .(T62, X119), X120)
U2_aaaa(T61, T62, T63, X119, X120, gt10_out_aa(T61, T62)) → U3_aaaa(T61, T62, T63, X119, X120, part20_in_gaaa(T61, T63, X119, X120))
U3_aaaa(T61, T62, T63, X119, X120, part20_out_gaaa(T61, T63, X119, X120)) → part20_out_aaaa(T61, .(T62, T63), .(T62, X119), X120)
part20_in_aaaa(T83, .(T84, T85), X170, .(T84, X171)) → U4_aaaa(T83, T84, T85, X170, X171, le33_in_aa(T83, T84))
U4_aaaa(T83, T84, T85, X170, X171, le33_out_aa(T83, T84)) → part20_out_aaaa(T83, .(T84, T85), X170, .(T84, X171))
U4_aaaa(T83, T84, T85, X170, X171, le33_out_aa(T83, T84)) → U5_aaaa(T83, T84, T85, X170, X171, part20_in_gaaa(T83, T85, X170, X171))
U5_aaaa(T83, T84, T85, X170, X171, part20_out_gaaa(T83, T85, X170, X171)) → part20_out_aaaa(T83, .(T84, T85), X170, .(T84, X171))
part20_in_aaaa(T107, [], [], []) → part20_out_aaaa(T107, [], [], [])
U7_aa(T126, T127, X269, part20_out_aaaa(T126, T127, X265, X266)) → qs53_out_aa(.(T126, T127), X269)
qs53_in_aa(.(T126, T127), X269) → U8_aa(T126, T127, X269, part20_in_aaaa(T126, T127, T131, T132))
U8_aa(T126, T127, X269, part20_out_aaaa(T126, T127, T131, T132)) → U9_aa(T126, T127, X269, qs53_in_aa(T131, X267))
qs53_in_aa([], []) → qs53_out_aa([], [])
U9_aa(T126, T127, X269, qs53_out_aa(T131, X267)) → qs53_out_aa(.(T126, T127), X269)
U8_aa(T126, T127, X269, part20_out_aaaa(T126, T127, T131, T132)) → U10_aa(T126, T127, X269, T132, qs53_in_aa(T131, T138))
U10_aa(T126, T127, X269, T132, qs53_out_aa(T131, T138)) → U11_aa(T126, T127, X269, qs53_in_aa(T132, X268))
U11_aa(T126, T127, X269, qs53_out_aa(T132, X268)) → qs53_out_aa(.(T126, T127), X269)
U10_aa(T126, T127, X269, T132, qs53_out_aa(T131, T138)) → U12_aa(T126, T127, X269, T138, qs53_in_aa(T132, T143))
U12_aa(T126, T127, X269, T138, qs53_out_aa(T132, T143)) → U13_aa(T126, T127, X269, app65_in_aaaa(T138, T126, T143, X269))
app65_in_aaaa(.(T166, T167), T168, T169, .(T166, X348)) → U14_aaaa(T166, T167, T168, T169, X348, app65_in_aaaa(T167, T168, T169, X348))
app65_in_aaaa([], T178, T179, .(T178, T179)) → app65_out_aaaa([], T178, T179, .(T178, T179))
U14_aaaa(T166, T167, T168, T169, X348, app65_out_aaaa(T167, T168, T169, X348)) → app65_out_aaaa(.(T166, T167), T168, T169, .(T166, X348))
U13_aa(T126, T127, X269, app65_out_aaaa(T138, T126, T143, X269)) → qs53_out_aa(.(T126, T127), X269)
U28_aa(T234, T235, T236, T9, qs53_out_aa(T244, X9)) → qs1_out_aa(.(T234, .(T235, T236)), T9)
U27_aa(T234, T235, T236, T9, part20_out_gaaa(T234, T236, T244, T245)) → U29_aa(T234, T235, T236, T9, T245, qs53_in_aa(T244, T251))
U29_aa(T234, T235, T236, T9, T245, qs53_out_aa(T244, T251)) → U30_aa(T234, T235, T236, T9, p52_in_aaaga(.(T235, T245), X10, T251, T234, T9))
p52_in_aaaga(T45, X10, T110, T22, T9) → U16_aaaga(T45, X10, T110, T22, T9, qs53_in_aa(T45, X10))
U16_aaaga(T45, X10, T110, T22, T9, qs53_out_aa(T45, X10)) → p52_out_aaaga(T45, X10, T110, T22, T9)
p52_in_aaaga(T45, T115, T110, T22, T9) → U17_aaaga(T45, T115, T110, T22, T9, qs53_in_aa(T45, T115))
U17_aaaga(T45, T115, T110, T22, T9, qs53_out_aa(T45, T115)) → U18_aaaga(T45, T115, T110, T22, T9, app54_in_agaa(T110, T22, T115, T9))
app54_in_agaa(.(T205, T206), T207, T208, .(T205, T210)) → U15_agaa(T205, T206, T207, T208, T210, app54_in_agaa(T206, T207, T208, T210))
app54_in_agaa([], T220, T221, .(T220, T221)) → app54_out_agaa([], T220, T221, .(T220, T221))
U15_agaa(T205, T206, T207, T208, T210, app54_out_agaa(T206, T207, T208, T210)) → app54_out_agaa(.(T205, T206), T207, T208, .(T205, T210))
U18_aaaga(T45, T115, T110, T22, T9, app54_out_agaa(T110, T22, T115, T9)) → p52_out_aaaga(T45, T115, T110, T22, T9)
U30_aa(T234, T235, T236, T9, p52_out_aaaga(.(T235, T245), X10, T251, T234, T9)) → qs1_out_aa(.(T234, .(T235, T236)), T9)
qs1_in_aa(.(T260, []), T9) → U31_aa(T260, T9, qs99_in_a(X9))
qs99_in_a([]) → qs99_out_a([])
U31_aa(T260, T9, qs99_out_a(X9)) → qs1_out_aa(.(T260, []), T9)
qs1_in_aa(.(T260, []), T9) → U32_aa(T260, T9, qs99_in_a(T263))
U32_aa(T260, T9, qs99_out_a(T263)) → U33_aa(T260, T9, qs99_in_a(X10))
U33_aa(T260, T9, qs99_out_a(X10)) → qs1_out_aa(.(T260, []), T9)
U32_aa(T260, T9, qs99_out_a(T263)) → U34_aa(T260, T9, T263, qs99_in_a(T268))
U34_aa(T260, T9, T263, qs99_out_a(T268)) → U35_aa(T260, T9, app54_in_gaga(T263, T260, T268, T9))
app54_in_gaga(.(T205, T206), T207, T208, .(T205, T210)) → U15_gaga(T205, T206, T207, T208, T210, app54_in_gaga(T206, T207, T208, T210))
app54_in_gaga([], T220, T221, .(T220, T221)) → app54_out_gaga([], T220, T221, .(T220, T221))
U15_gaga(T205, T206, T207, T208, T210, app54_out_gaga(T206, T207, T208, T210)) → app54_out_gaga(.(T205, T206), T207, T208, .(T205, T210))
U35_aa(T260, T9, app54_out_gaga(T263, T260, T268, T9)) → qs1_out_aa(.(T260, []), T9)
qs1_in_aa([], []) → qs1_out_aa([], [])
U22_aa(T22, T23, T24, T9, qs1_out_aa(.(T23, T44), X9)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U21_aa(T22, T23, T24, T9, part20_out_gaaa(T22, T24, T44, T45)) → U23_aa(T22, T23, T24, T9, T45, qs1_in_aa(.(T23, T44), T110))
U23_aa(T22, T23, T24, T9, T45, qs1_out_aa(.(T23, T44), T110)) → U24_aa(T22, T23, T24, T9, p52_in_aaaga(T45, X10, T110, T22, T9))
U24_aa(T22, T23, T24, T9, p52_out_aaaga(T45, X10, T110, T22, T9)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U22_ga(T22, T23, T24, T9, qs1_out_aa(.(T23, T44), X9)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U21_ga(T22, T23, T24, T9, part20_out_ggaa(T22, T24, T44, T45)) → U23_ga(T22, T23, T24, T9, T45, qs1_in_aa(.(T23, T44), T110))
U23_ga(T22, T23, T24, T9, T45, qs1_out_aa(.(T23, T44), T110)) → U24_ga(T22, T23, T24, T9, p52_in_aaaga(T45, X10, T110, T22, T9))
U24_ga(T22, T23, T24, T9, p52_out_aaaga(T45, X10, T110, T22, T9)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
qs1_in_ga(.(T234, .(T235, T236)), T9) → U25_ga(T234, T235, T236, T9, le33_in_gg(T234, T235))
U25_ga(T234, T235, T236, T9, le33_out_gg(T234, T235)) → qs1_out_ga(.(T234, .(T235, T236)), T9)
U25_ga(T234, T235, T236, T9, le33_out_gg(T234, T235)) → U26_ga(T234, T235, T236, T9, part20_in_ggaa(T234, T236, X431, X432))
U26_ga(T234, T235, T236, T9, part20_out_ggaa(T234, T236, X431, X432)) → qs1_out_ga(.(T234, .(T235, T236)), T9)
U25_ga(T234, T235, T236, T9, le33_out_gg(T234, T235)) → U27_ga(T234, T235, T236, T9, part20_in_ggaa(T234, T236, T244, T245))
U27_ga(T234, T235, T236, T9, part20_out_ggaa(T234, T236, T244, T245)) → U28_ga(T234, T235, T236, T9, qs53_in_aa(T244, X9))
U28_ga(T234, T235, T236, T9, qs53_out_aa(T244, X9)) → qs1_out_ga(.(T234, .(T235, T236)), T9)
U27_ga(T234, T235, T236, T9, part20_out_ggaa(T234, T236, T244, T245)) → U29_ga(T234, T235, T236, T9, T245, qs53_in_aa(T244, T251))
U29_ga(T234, T235, T236, T9, T245, qs53_out_aa(T244, T251)) → U30_ga(T234, T235, T236, T9, p52_in_aaaga(.(T235, T245), X10, T251, T234, T9))
U30_ga(T234, T235, T236, T9, p52_out_aaaga(.(T235, T245), X10, T251, T234, T9)) → qs1_out_ga(.(T234, .(T235, T236)), T9)
qs1_in_ga(.(T260, []), T9) → U31_ga(T260, T9, qs99_in_a(X9))
U31_ga(T260, T9, qs99_out_a(X9)) → qs1_out_ga(.(T260, []), T9)
qs1_in_ga(.(T260, []), T9) → U32_ga(T260, T9, qs99_in_a(T263))
U32_ga(T260, T9, qs99_out_a(T263)) → U33_ga(T260, T9, qs99_in_a(X10))
U33_ga(T260, T9, qs99_out_a(X10)) → qs1_out_ga(.(T260, []), T9)
U32_ga(T260, T9, qs99_out_a(T263)) → U34_ga(T260, T9, T263, qs99_in_a(T268))
U34_ga(T260, T9, T263, qs99_out_a(T268)) → U35_ga(T260, T9, app54_in_ggga(T263, T260, T268, T9))
app54_in_ggga(.(T205, T206), T207, T208, .(T205, T210)) → U15_ggga(T205, T206, T207, T208, T210, app54_in_ggga(T206, T207, T208, T210))
app54_in_ggga([], T220, T221, .(T220, T221)) → app54_out_ggga([], T220, T221, .(T220, T221))
U15_ggga(T205, T206, T207, T208, T210, app54_out_ggga(T206, T207, T208, T210)) → app54_out_ggga(.(T205, T206), T207, T208, .(T205, T210))
U35_ga(T260, T9, app54_out_ggga(T263, T260, T268, T9)) → qs1_out_ga(.(T260, []), T9)
qs1_in_ga([], []) → qs1_out_ga([], [])
Infinitary Constructor Rewriting Termination of PiTRS implies Termination of Prolog
qs1_in_ga(.(T22, .(T23, T24)), T9) → U19_ga(T22, T23, T24, T9, gt10_in_gg(T22, T23))
gt10_in_gg(s(T37), s(T38)) → U1_gg(T37, T38, gt10_in_gg(T37, T38))
gt10_in_gg(s(0), 0) → gt10_out_gg(s(0), 0)
U1_gg(T37, T38, gt10_out_gg(T37, T38)) → gt10_out_gg(s(T37), s(T38))
U19_ga(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U19_ga(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → U20_ga(T22, T23, T24, T9, part20_in_ggaa(T22, T24, X47, X48))
part20_in_ggaa(T61, .(T62, T63), .(T62, X119), X120) → U2_ggaa(T61, T62, T63, X119, X120, gt10_in_gg(T61, T62))
U2_ggaa(T61, T62, T63, X119, X120, gt10_out_gg(T61, T62)) → part20_out_ggaa(T61, .(T62, T63), .(T62, X119), X120)
U2_ggaa(T61, T62, T63, X119, X120, gt10_out_gg(T61, T62)) → U3_ggaa(T61, T62, T63, X119, X120, part20_in_ggaa(T61, T63, X119, X120))
part20_in_ggaa(T83, .(T84, T85), X170, .(T84, X171)) → U4_ggaa(T83, T84, T85, X170, X171, le33_in_gg(T83, T84))
le33_in_gg(s(T98), s(T99)) → U6_gg(T98, T99, le33_in_gg(T98, T99))
le33_in_gg(0, s(0)) → le33_out_gg(0, s(0))
le33_in_gg(0, 0) → le33_out_gg(0, 0)
U6_gg(T98, T99, le33_out_gg(T98, T99)) → le33_out_gg(s(T98), s(T99))
U4_ggaa(T83, T84, T85, X170, X171, le33_out_gg(T83, T84)) → part20_out_ggaa(T83, .(T84, T85), X170, .(T84, X171))
U4_ggaa(T83, T84, T85, X170, X171, le33_out_gg(T83, T84)) → U5_ggaa(T83, T84, T85, X170, X171, part20_in_ggaa(T83, T85, X170, X171))
part20_in_ggaa(T107, [], [], []) → part20_out_ggaa(T107, [], [], [])
U5_ggaa(T83, T84, T85, X170, X171, part20_out_ggaa(T83, T85, X170, X171)) → part20_out_ggaa(T83, .(T84, T85), X170, .(T84, X171))
U3_ggaa(T61, T62, T63, X119, X120, part20_out_ggaa(T61, T63, X119, X120)) → part20_out_ggaa(T61, .(T62, T63), .(T62, X119), X120)
U20_ga(T22, T23, T24, T9, part20_out_ggaa(T22, T24, X47, X48)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U19_ga(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → U21_ga(T22, T23, T24, T9, part20_in_ggaa(T22, T24, T44, T45))
U21_ga(T22, T23, T24, T9, part20_out_ggaa(T22, T24, T44, T45)) → U22_ga(T22, T23, T24, T9, qs1_in_aa(.(T23, T44), X9))
qs1_in_aa(.(T22, .(T23, T24)), T9) → U19_aa(T22, T23, T24, T9, gt10_in_aa(T22, T23))
gt10_in_aa(s(T37), s(T38)) → U1_aa(T37, T38, gt10_in_aa(T37, T38))
gt10_in_aa(s(0), 0) → gt10_out_aa(s(0), 0)
U1_aa(T37, T38, gt10_out_aa(T37, T38)) → gt10_out_aa(s(T37), s(T38))
U19_aa(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U19_aa(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → U20_aa(T22, T23, T24, T9, part20_in_gaaa(T22, T24, X47, X48))
part20_in_gaaa(T61, .(T62, T63), .(T62, X119), X120) → U2_gaaa(T61, T62, T63, X119, X120, gt10_in_ga(T61, T62))
gt10_in_ga(s(T37), s(T38)) → U1_ga(T37, T38, gt10_in_ga(T37, T38))
gt10_in_ga(s(0), 0) → gt10_out_ga(s(0), 0)
U1_ga(T37, T38, gt10_out_ga(T37, T38)) → gt10_out_ga(s(T37), s(T38))
U2_gaaa(T61, T62, T63, X119, X120, gt10_out_ga(T61, T62)) → part20_out_gaaa(T61, .(T62, T63), .(T62, X119), X120)
U2_gaaa(T61, T62, T63, X119, X120, gt10_out_ga(T61, T62)) → U3_gaaa(T61, T62, T63, X119, X120, part20_in_gaaa(T61, T63, X119, X120))
part20_in_gaaa(T83, .(T84, T85), X170, .(T84, X171)) → U4_gaaa(T83, T84, T85, X170, X171, le33_in_ga(T83, T84))
le33_in_ga(s(T98), s(T99)) → U6_ga(T98, T99, le33_in_ga(T98, T99))
le33_in_ga(0, s(0)) → le33_out_ga(0, s(0))
le33_in_ga(0, 0) → le33_out_ga(0, 0)
U6_ga(T98, T99, le33_out_ga(T98, T99)) → le33_out_ga(s(T98), s(T99))
U4_gaaa(T83, T84, T85, X170, X171, le33_out_ga(T83, T84)) → part20_out_gaaa(T83, .(T84, T85), X170, .(T84, X171))
U4_gaaa(T83, T84, T85, X170, X171, le33_out_ga(T83, T84)) → U5_gaaa(T83, T84, T85, X170, X171, part20_in_gaaa(T83, T85, X170, X171))
part20_in_gaaa(T107, [], [], []) → part20_out_gaaa(T107, [], [], [])
U5_gaaa(T83, T84, T85, X170, X171, part20_out_gaaa(T83, T85, X170, X171)) → part20_out_gaaa(T83, .(T84, T85), X170, .(T84, X171))
U3_gaaa(T61, T62, T63, X119, X120, part20_out_gaaa(T61, T63, X119, X120)) → part20_out_gaaa(T61, .(T62, T63), .(T62, X119), X120)
U20_aa(T22, T23, T24, T9, part20_out_gaaa(T22, T24, X47, X48)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U19_aa(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → U21_aa(T22, T23, T24, T9, part20_in_gaaa(T22, T24, T44, T45))
U21_aa(T22, T23, T24, T9, part20_out_gaaa(T22, T24, T44, T45)) → U22_aa(T22, T23, T24, T9, qs1_in_aa(.(T23, T44), X9))
qs1_in_aa(.(T234, .(T235, T236)), T9) → U25_aa(T234, T235, T236, T9, le33_in_aa(T234, T235))
le33_in_aa(s(T98), s(T99)) → U6_aa(T98, T99, le33_in_aa(T98, T99))
le33_in_aa(0, s(0)) → le33_out_aa(0, s(0))
le33_in_aa(0, 0) → le33_out_aa(0, 0)
U6_aa(T98, T99, le33_out_aa(T98, T99)) → le33_out_aa(s(T98), s(T99))
U25_aa(T234, T235, T236, T9, le33_out_aa(T234, T235)) → qs1_out_aa(.(T234, .(T235, T236)), T9)
U25_aa(T234, T235, T236, T9, le33_out_aa(T234, T235)) → U26_aa(T234, T235, T236, T9, part20_in_gaaa(T234, T236, X431, X432))
U26_aa(T234, T235, T236, T9, part20_out_gaaa(T234, T236, X431, X432)) → qs1_out_aa(.(T234, .(T235, T236)), T9)
U25_aa(T234, T235, T236, T9, le33_out_aa(T234, T235)) → U27_aa(T234, T235, T236, T9, part20_in_gaaa(T234, T236, T244, T245))
U27_aa(T234, T235, T236, T9, part20_out_gaaa(T234, T236, T244, T245)) → U28_aa(T234, T235, T236, T9, qs53_in_aa(T244, X9))
qs53_in_aa(.(T126, T127), X269) → U7_aa(T126, T127, X269, part20_in_aaaa(T126, T127, X265, X266))
part20_in_aaaa(T61, .(T62, T63), .(T62, X119), X120) → U2_aaaa(T61, T62, T63, X119, X120, gt10_in_aa(T61, T62))
U2_aaaa(T61, T62, T63, X119, X120, gt10_out_aa(T61, T62)) → part20_out_aaaa(T61, .(T62, T63), .(T62, X119), X120)
U2_aaaa(T61, T62, T63, X119, X120, gt10_out_aa(T61, T62)) → U3_aaaa(T61, T62, T63, X119, X120, part20_in_gaaa(T61, T63, X119, X120))
U3_aaaa(T61, T62, T63, X119, X120, part20_out_gaaa(T61, T63, X119, X120)) → part20_out_aaaa(T61, .(T62, T63), .(T62, X119), X120)
part20_in_aaaa(T83, .(T84, T85), X170, .(T84, X171)) → U4_aaaa(T83, T84, T85, X170, X171, le33_in_aa(T83, T84))
U4_aaaa(T83, T84, T85, X170, X171, le33_out_aa(T83, T84)) → part20_out_aaaa(T83, .(T84, T85), X170, .(T84, X171))
U4_aaaa(T83, T84, T85, X170, X171, le33_out_aa(T83, T84)) → U5_aaaa(T83, T84, T85, X170, X171, part20_in_gaaa(T83, T85, X170, X171))
U5_aaaa(T83, T84, T85, X170, X171, part20_out_gaaa(T83, T85, X170, X171)) → part20_out_aaaa(T83, .(T84, T85), X170, .(T84, X171))
part20_in_aaaa(T107, [], [], []) → part20_out_aaaa(T107, [], [], [])
U7_aa(T126, T127, X269, part20_out_aaaa(T126, T127, X265, X266)) → qs53_out_aa(.(T126, T127), X269)
qs53_in_aa(.(T126, T127), X269) → U8_aa(T126, T127, X269, part20_in_aaaa(T126, T127, T131, T132))
U8_aa(T126, T127, X269, part20_out_aaaa(T126, T127, T131, T132)) → U9_aa(T126, T127, X269, qs53_in_aa(T131, X267))
qs53_in_aa([], []) → qs53_out_aa([], [])
U9_aa(T126, T127, X269, qs53_out_aa(T131, X267)) → qs53_out_aa(.(T126, T127), X269)
U8_aa(T126, T127, X269, part20_out_aaaa(T126, T127, T131, T132)) → U10_aa(T126, T127, X269, T132, qs53_in_aa(T131, T138))
U10_aa(T126, T127, X269, T132, qs53_out_aa(T131, T138)) → U11_aa(T126, T127, X269, qs53_in_aa(T132, X268))
U11_aa(T126, T127, X269, qs53_out_aa(T132, X268)) → qs53_out_aa(.(T126, T127), X269)
U10_aa(T126, T127, X269, T132, qs53_out_aa(T131, T138)) → U12_aa(T126, T127, X269, T138, qs53_in_aa(T132, T143))
U12_aa(T126, T127, X269, T138, qs53_out_aa(T132, T143)) → U13_aa(T126, T127, X269, app65_in_aaaa(T138, T126, T143, X269))
app65_in_aaaa(.(T166, T167), T168, T169, .(T166, X348)) → U14_aaaa(T166, T167, T168, T169, X348, app65_in_aaaa(T167, T168, T169, X348))
app65_in_aaaa([], T178, T179, .(T178, T179)) → app65_out_aaaa([], T178, T179, .(T178, T179))
U14_aaaa(T166, T167, T168, T169, X348, app65_out_aaaa(T167, T168, T169, X348)) → app65_out_aaaa(.(T166, T167), T168, T169, .(T166, X348))
U13_aa(T126, T127, X269, app65_out_aaaa(T138, T126, T143, X269)) → qs53_out_aa(.(T126, T127), X269)
U28_aa(T234, T235, T236, T9, qs53_out_aa(T244, X9)) → qs1_out_aa(.(T234, .(T235, T236)), T9)
U27_aa(T234, T235, T236, T9, part20_out_gaaa(T234, T236, T244, T245)) → U29_aa(T234, T235, T236, T9, T245, qs53_in_aa(T244, T251))
U29_aa(T234, T235, T236, T9, T245, qs53_out_aa(T244, T251)) → U30_aa(T234, T235, T236, T9, p52_in_aaaga(.(T235, T245), X10, T251, T234, T9))
p52_in_aaaga(T45, X10, T110, T22, T9) → U16_aaaga(T45, X10, T110, T22, T9, qs53_in_aa(T45, X10))
U16_aaaga(T45, X10, T110, T22, T9, qs53_out_aa(T45, X10)) → p52_out_aaaga(T45, X10, T110, T22, T9)
p52_in_aaaga(T45, T115, T110, T22, T9) → U17_aaaga(T45, T115, T110, T22, T9, qs53_in_aa(T45, T115))
U17_aaaga(T45, T115, T110, T22, T9, qs53_out_aa(T45, T115)) → U18_aaaga(T45, T115, T110, T22, T9, app54_in_agaa(T110, T22, T115, T9))
app54_in_agaa(.(T205, T206), T207, T208, .(T205, T210)) → U15_agaa(T205, T206, T207, T208, T210, app54_in_agaa(T206, T207, T208, T210))
app54_in_agaa([], T220, T221, .(T220, T221)) → app54_out_agaa([], T220, T221, .(T220, T221))
U15_agaa(T205, T206, T207, T208, T210, app54_out_agaa(T206, T207, T208, T210)) → app54_out_agaa(.(T205, T206), T207, T208, .(T205, T210))
U18_aaaga(T45, T115, T110, T22, T9, app54_out_agaa(T110, T22, T115, T9)) → p52_out_aaaga(T45, T115, T110, T22, T9)
U30_aa(T234, T235, T236, T9, p52_out_aaaga(.(T235, T245), X10, T251, T234, T9)) → qs1_out_aa(.(T234, .(T235, T236)), T9)
qs1_in_aa(.(T260, []), T9) → U31_aa(T260, T9, qs99_in_a(X9))
qs99_in_a([]) → qs99_out_a([])
U31_aa(T260, T9, qs99_out_a(X9)) → qs1_out_aa(.(T260, []), T9)
qs1_in_aa(.(T260, []), T9) → U32_aa(T260, T9, qs99_in_a(T263))
U32_aa(T260, T9, qs99_out_a(T263)) → U33_aa(T260, T9, qs99_in_a(X10))
U33_aa(T260, T9, qs99_out_a(X10)) → qs1_out_aa(.(T260, []), T9)
U32_aa(T260, T9, qs99_out_a(T263)) → U34_aa(T260, T9, T263, qs99_in_a(T268))
U34_aa(T260, T9, T263, qs99_out_a(T268)) → U35_aa(T260, T9, app54_in_gaga(T263, T260, T268, T9))
app54_in_gaga(.(T205, T206), T207, T208, .(T205, T210)) → U15_gaga(T205, T206, T207, T208, T210, app54_in_gaga(T206, T207, T208, T210))
app54_in_gaga([], T220, T221, .(T220, T221)) → app54_out_gaga([], T220, T221, .(T220, T221))
U15_gaga(T205, T206, T207, T208, T210, app54_out_gaga(T206, T207, T208, T210)) → app54_out_gaga(.(T205, T206), T207, T208, .(T205, T210))
U35_aa(T260, T9, app54_out_gaga(T263, T260, T268, T9)) → qs1_out_aa(.(T260, []), T9)
qs1_in_aa([], []) → qs1_out_aa([], [])
U22_aa(T22, T23, T24, T9, qs1_out_aa(.(T23, T44), X9)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U21_aa(T22, T23, T24, T9, part20_out_gaaa(T22, T24, T44, T45)) → U23_aa(T22, T23, T24, T9, T45, qs1_in_aa(.(T23, T44), T110))
U23_aa(T22, T23, T24, T9, T45, qs1_out_aa(.(T23, T44), T110)) → U24_aa(T22, T23, T24, T9, p52_in_aaaga(T45, X10, T110, T22, T9))
U24_aa(T22, T23, T24, T9, p52_out_aaaga(T45, X10, T110, T22, T9)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U22_ga(T22, T23, T24, T9, qs1_out_aa(.(T23, T44), X9)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U21_ga(T22, T23, T24, T9, part20_out_ggaa(T22, T24, T44, T45)) → U23_ga(T22, T23, T24, T9, T45, qs1_in_aa(.(T23, T44), T110))
U23_ga(T22, T23, T24, T9, T45, qs1_out_aa(.(T23, T44), T110)) → U24_ga(T22, T23, T24, T9, p52_in_aaaga(T45, X10, T110, T22, T9))
U24_ga(T22, T23, T24, T9, p52_out_aaaga(T45, X10, T110, T22, T9)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
qs1_in_ga(.(T234, .(T235, T236)), T9) → U25_ga(T234, T235, T236, T9, le33_in_gg(T234, T235))
U25_ga(T234, T235, T236, T9, le33_out_gg(T234, T235)) → qs1_out_ga(.(T234, .(T235, T236)), T9)
U25_ga(T234, T235, T236, T9, le33_out_gg(T234, T235)) → U26_ga(T234, T235, T236, T9, part20_in_ggaa(T234, T236, X431, X432))
U26_ga(T234, T235, T236, T9, part20_out_ggaa(T234, T236, X431, X432)) → qs1_out_ga(.(T234, .(T235, T236)), T9)
U25_ga(T234, T235, T236, T9, le33_out_gg(T234, T235)) → U27_ga(T234, T235, T236, T9, part20_in_ggaa(T234, T236, T244, T245))
U27_ga(T234, T235, T236, T9, part20_out_ggaa(T234, T236, T244, T245)) → U28_ga(T234, T235, T236, T9, qs53_in_aa(T244, X9))
U28_ga(T234, T235, T236, T9, qs53_out_aa(T244, X9)) → qs1_out_ga(.(T234, .(T235, T236)), T9)
U27_ga(T234, T235, T236, T9, part20_out_ggaa(T234, T236, T244, T245)) → U29_ga(T234, T235, T236, T9, T245, qs53_in_aa(T244, T251))
U29_ga(T234, T235, T236, T9, T245, qs53_out_aa(T244, T251)) → U30_ga(T234, T235, T236, T9, p52_in_aaaga(.(T235, T245), X10, T251, T234, T9))
U30_ga(T234, T235, T236, T9, p52_out_aaaga(.(T235, T245), X10, T251, T234, T9)) → qs1_out_ga(.(T234, .(T235, T236)), T9)
qs1_in_ga(.(T260, []), T9) → U31_ga(T260, T9, qs99_in_a(X9))
U31_ga(T260, T9, qs99_out_a(X9)) → qs1_out_ga(.(T260, []), T9)
qs1_in_ga(.(T260, []), T9) → U32_ga(T260, T9, qs99_in_a(T263))
U32_ga(T260, T9, qs99_out_a(T263)) → U33_ga(T260, T9, qs99_in_a(X10))
U33_ga(T260, T9, qs99_out_a(X10)) → qs1_out_ga(.(T260, []), T9)
U32_ga(T260, T9, qs99_out_a(T263)) → U34_ga(T260, T9, T263, qs99_in_a(T268))
U34_ga(T260, T9, T263, qs99_out_a(T268)) → U35_ga(T260, T9, app54_in_ggga(T263, T260, T268, T9))
app54_in_ggga(.(T205, T206), T207, T208, .(T205, T210)) → U15_ggga(T205, T206, T207, T208, T210, app54_in_ggga(T206, T207, T208, T210))
app54_in_ggga([], T220, T221, .(T220, T221)) → app54_out_ggga([], T220, T221, .(T220, T221))
U15_ggga(T205, T206, T207, T208, T210, app54_out_ggga(T206, T207, T208, T210)) → app54_out_ggga(.(T205, T206), T207, T208, .(T205, T210))
U35_ga(T260, T9, app54_out_ggga(T263, T260, T268, T9)) → qs1_out_ga(.(T260, []), T9)
qs1_in_ga([], []) → qs1_out_ga([], [])
QS1_IN_GA(.(T22, .(T23, T24)), T9) → U19_GA(T22, T23, T24, T9, gt10_in_gg(T22, T23))
QS1_IN_GA(.(T22, .(T23, T24)), T9) → GT10_IN_GG(T22, T23)
GT10_IN_GG(s(T37), s(T38)) → U1_GG(T37, T38, gt10_in_gg(T37, T38))
GT10_IN_GG(s(T37), s(T38)) → GT10_IN_GG(T37, T38)
U19_GA(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → U20_GA(T22, T23, T24, T9, part20_in_ggaa(T22, T24, X47, X48))
U19_GA(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → PART20_IN_GGAA(T22, T24, X47, X48)
PART20_IN_GGAA(T61, .(T62, T63), .(T62, X119), X120) → U2_GGAA(T61, T62, T63, X119, X120, gt10_in_gg(T61, T62))
PART20_IN_GGAA(T61, .(T62, T63), .(T62, X119), X120) → GT10_IN_GG(T61, T62)
U2_GGAA(T61, T62, T63, X119, X120, gt10_out_gg(T61, T62)) → U3_GGAA(T61, T62, T63, X119, X120, part20_in_ggaa(T61, T63, X119, X120))
U2_GGAA(T61, T62, T63, X119, X120, gt10_out_gg(T61, T62)) → PART20_IN_GGAA(T61, T63, X119, X120)
PART20_IN_GGAA(T83, .(T84, T85), X170, .(T84, X171)) → U4_GGAA(T83, T84, T85, X170, X171, le33_in_gg(T83, T84))
PART20_IN_GGAA(T83, .(T84, T85), X170, .(T84, X171)) → LE33_IN_GG(T83, T84)
LE33_IN_GG(s(T98), s(T99)) → U6_GG(T98, T99, le33_in_gg(T98, T99))
LE33_IN_GG(s(T98), s(T99)) → LE33_IN_GG(T98, T99)
U4_GGAA(T83, T84, T85, X170, X171, le33_out_gg(T83, T84)) → U5_GGAA(T83, T84, T85, X170, X171, part20_in_ggaa(T83, T85, X170, X171))
U4_GGAA(T83, T84, T85, X170, X171, le33_out_gg(T83, T84)) → PART20_IN_GGAA(T83, T85, X170, X171)
U19_GA(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → U21_GA(T22, T23, T24, T9, part20_in_ggaa(T22, T24, T44, T45))
U21_GA(T22, T23, T24, T9, part20_out_ggaa(T22, T24, T44, T45)) → U22_GA(T22, T23, T24, T9, qs1_in_aa(.(T23, T44), X9))
U21_GA(T22, T23, T24, T9, part20_out_ggaa(T22, T24, T44, T45)) → QS1_IN_AA(.(T23, T44), X9)
QS1_IN_AA(.(T22, .(T23, T24)), T9) → U19_AA(T22, T23, T24, T9, gt10_in_aa(T22, T23))
QS1_IN_AA(.(T22, .(T23, T24)), T9) → GT10_IN_AA(T22, T23)
GT10_IN_AA(s(T37), s(T38)) → U1_AA(T37, T38, gt10_in_aa(T37, T38))
GT10_IN_AA(s(T37), s(T38)) → GT10_IN_AA(T37, T38)
U19_AA(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → U20_AA(T22, T23, T24, T9, part20_in_gaaa(T22, T24, X47, X48))
U19_AA(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → PART20_IN_GAAA(T22, T24, X47, X48)
PART20_IN_GAAA(T61, .(T62, T63), .(T62, X119), X120) → U2_GAAA(T61, T62, T63, X119, X120, gt10_in_ga(T61, T62))
PART20_IN_GAAA(T61, .(T62, T63), .(T62, X119), X120) → GT10_IN_GA(T61, T62)
GT10_IN_GA(s(T37), s(T38)) → U1_GA(T37, T38, gt10_in_ga(T37, T38))
GT10_IN_GA(s(T37), s(T38)) → GT10_IN_GA(T37, T38)
U2_GAAA(T61, T62, T63, X119, X120, gt10_out_ga(T61, T62)) → U3_GAAA(T61, T62, T63, X119, X120, part20_in_gaaa(T61, T63, X119, X120))
U2_GAAA(T61, T62, T63, X119, X120, gt10_out_ga(T61, T62)) → PART20_IN_GAAA(T61, T63, X119, X120)
PART20_IN_GAAA(T83, .(T84, T85), X170, .(T84, X171)) → U4_GAAA(T83, T84, T85, X170, X171, le33_in_ga(T83, T84))
PART20_IN_GAAA(T83, .(T84, T85), X170, .(T84, X171)) → LE33_IN_GA(T83, T84)
LE33_IN_GA(s(T98), s(T99)) → U6_GA(T98, T99, le33_in_ga(T98, T99))
LE33_IN_GA(s(T98), s(T99)) → LE33_IN_GA(T98, T99)
U4_GAAA(T83, T84, T85, X170, X171, le33_out_ga(T83, T84)) → U5_GAAA(T83, T84, T85, X170, X171, part20_in_gaaa(T83, T85, X170, X171))
U4_GAAA(T83, T84, T85, X170, X171, le33_out_ga(T83, T84)) → PART20_IN_GAAA(T83, T85, X170, X171)
U19_AA(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → U21_AA(T22, T23, T24, T9, part20_in_gaaa(T22, T24, T44, T45))
U21_AA(T22, T23, T24, T9, part20_out_gaaa(T22, T24, T44, T45)) → U22_AA(T22, T23, T24, T9, qs1_in_aa(.(T23, T44), X9))
U21_AA(T22, T23, T24, T9, part20_out_gaaa(T22, T24, T44, T45)) → QS1_IN_AA(.(T23, T44), X9)
QS1_IN_AA(.(T234, .(T235, T236)), T9) → U25_AA(T234, T235, T236, T9, le33_in_aa(T234, T235))
QS1_IN_AA(.(T234, .(T235, T236)), T9) → LE33_IN_AA(T234, T235)
LE33_IN_AA(s(T98), s(T99)) → U6_AA(T98, T99, le33_in_aa(T98, T99))
LE33_IN_AA(s(T98), s(T99)) → LE33_IN_AA(T98, T99)
U25_AA(T234, T235, T236, T9, le33_out_aa(T234, T235)) → U26_AA(T234, T235, T236, T9, part20_in_gaaa(T234, T236, X431, X432))
U25_AA(T234, T235, T236, T9, le33_out_aa(T234, T235)) → PART20_IN_GAAA(T234, T236, X431, X432)
U25_AA(T234, T235, T236, T9, le33_out_aa(T234, T235)) → U27_AA(T234, T235, T236, T9, part20_in_gaaa(T234, T236, T244, T245))
U27_AA(T234, T235, T236, T9, part20_out_gaaa(T234, T236, T244, T245)) → U28_AA(T234, T235, T236, T9, qs53_in_aa(T244, X9))
U27_AA(T234, T235, T236, T9, part20_out_gaaa(T234, T236, T244, T245)) → QS53_IN_AA(T244, X9)
QS53_IN_AA(.(T126, T127), X269) → U7_AA(T126, T127, X269, part20_in_aaaa(T126, T127, X265, X266))
QS53_IN_AA(.(T126, T127), X269) → PART20_IN_AAAA(T126, T127, X265, X266)
PART20_IN_AAAA(T61, .(T62, T63), .(T62, X119), X120) → U2_AAAA(T61, T62, T63, X119, X120, gt10_in_aa(T61, T62))
PART20_IN_AAAA(T61, .(T62, T63), .(T62, X119), X120) → GT10_IN_AA(T61, T62)
U2_AAAA(T61, T62, T63, X119, X120, gt10_out_aa(T61, T62)) → U3_AAAA(T61, T62, T63, X119, X120, part20_in_gaaa(T61, T63, X119, X120))
U2_AAAA(T61, T62, T63, X119, X120, gt10_out_aa(T61, T62)) → PART20_IN_GAAA(T61, T63, X119, X120)
PART20_IN_AAAA(T83, .(T84, T85), X170, .(T84, X171)) → U4_AAAA(T83, T84, T85, X170, X171, le33_in_aa(T83, T84))
PART20_IN_AAAA(T83, .(T84, T85), X170, .(T84, X171)) → LE33_IN_AA(T83, T84)
U4_AAAA(T83, T84, T85, X170, X171, le33_out_aa(T83, T84)) → U5_AAAA(T83, T84, T85, X170, X171, part20_in_gaaa(T83, T85, X170, X171))
U4_AAAA(T83, T84, T85, X170, X171, le33_out_aa(T83, T84)) → PART20_IN_GAAA(T83, T85, X170, X171)
QS53_IN_AA(.(T126, T127), X269) → U8_AA(T126, T127, X269, part20_in_aaaa(T126, T127, T131, T132))
U8_AA(T126, T127, X269, part20_out_aaaa(T126, T127, T131, T132)) → U9_AA(T126, T127, X269, qs53_in_aa(T131, X267))
U8_AA(T126, T127, X269, part20_out_aaaa(T126, T127, T131, T132)) → QS53_IN_AA(T131, X267)
U8_AA(T126, T127, X269, part20_out_aaaa(T126, T127, T131, T132)) → U10_AA(T126, T127, X269, T132, qs53_in_aa(T131, T138))
U10_AA(T126, T127, X269, T132, qs53_out_aa(T131, T138)) → U11_AA(T126, T127, X269, qs53_in_aa(T132, X268))
U10_AA(T126, T127, X269, T132, qs53_out_aa(T131, T138)) → QS53_IN_AA(T132, X268)
U10_AA(T126, T127, X269, T132, qs53_out_aa(T131, T138)) → U12_AA(T126, T127, X269, T138, qs53_in_aa(T132, T143))
U12_AA(T126, T127, X269, T138, qs53_out_aa(T132, T143)) → U13_AA(T126, T127, X269, app65_in_aaaa(T138, T126, T143, X269))
U12_AA(T126, T127, X269, T138, qs53_out_aa(T132, T143)) → APP65_IN_AAAA(T138, T126, T143, X269)
APP65_IN_AAAA(.(T166, T167), T168, T169, .(T166, X348)) → U14_AAAA(T166, T167, T168, T169, X348, app65_in_aaaa(T167, T168, T169, X348))
APP65_IN_AAAA(.(T166, T167), T168, T169, .(T166, X348)) → APP65_IN_AAAA(T167, T168, T169, X348)
U27_AA(T234, T235, T236, T9, part20_out_gaaa(T234, T236, T244, T245)) → U29_AA(T234, T235, T236, T9, T245, qs53_in_aa(T244, T251))
U29_AA(T234, T235, T236, T9, T245, qs53_out_aa(T244, T251)) → U30_AA(T234, T235, T236, T9, p52_in_aaaga(.(T235, T245), X10, T251, T234, T9))
U29_AA(T234, T235, T236, T9, T245, qs53_out_aa(T244, T251)) → P52_IN_AAAGA(.(T235, T245), X10, T251, T234, T9)
P52_IN_AAAGA(T45, X10, T110, T22, T9) → U16_AAAGA(T45, X10, T110, T22, T9, qs53_in_aa(T45, X10))
P52_IN_AAAGA(T45, X10, T110, T22, T9) → QS53_IN_AA(T45, X10)
P52_IN_AAAGA(T45, T115, T110, T22, T9) → U17_AAAGA(T45, T115, T110, T22, T9, qs53_in_aa(T45, T115))
U17_AAAGA(T45, T115, T110, T22, T9, qs53_out_aa(T45, T115)) → U18_AAAGA(T45, T115, T110, T22, T9, app54_in_agaa(T110, T22, T115, T9))
U17_AAAGA(T45, T115, T110, T22, T9, qs53_out_aa(T45, T115)) → APP54_IN_AGAA(T110, T22, T115, T9)
APP54_IN_AGAA(.(T205, T206), T207, T208, .(T205, T210)) → U15_AGAA(T205, T206, T207, T208, T210, app54_in_agaa(T206, T207, T208, T210))
APP54_IN_AGAA(.(T205, T206), T207, T208, .(T205, T210)) → APP54_IN_AGAA(T206, T207, T208, T210)
QS1_IN_AA(.(T260, []), T9) → U31_AA(T260, T9, qs99_in_a(X9))
QS1_IN_AA(.(T260, []), T9) → QS99_IN_A(X9)
QS1_IN_AA(.(T260, []), T9) → U32_AA(T260, T9, qs99_in_a(T263))
U32_AA(T260, T9, qs99_out_a(T263)) → U33_AA(T260, T9, qs99_in_a(X10))
U32_AA(T260, T9, qs99_out_a(T263)) → QS99_IN_A(X10)
U32_AA(T260, T9, qs99_out_a(T263)) → U34_AA(T260, T9, T263, qs99_in_a(T268))
U34_AA(T260, T9, T263, qs99_out_a(T268)) → U35_AA(T260, T9, app54_in_gaga(T263, T260, T268, T9))
U34_AA(T260, T9, T263, qs99_out_a(T268)) → APP54_IN_GAGA(T263, T260, T268, T9)
APP54_IN_GAGA(.(T205, T206), T207, T208, .(T205, T210)) → U15_GAGA(T205, T206, T207, T208, T210, app54_in_gaga(T206, T207, T208, T210))
APP54_IN_GAGA(.(T205, T206), T207, T208, .(T205, T210)) → APP54_IN_GAGA(T206, T207, T208, T210)
U21_AA(T22, T23, T24, T9, part20_out_gaaa(T22, T24, T44, T45)) → U23_AA(T22, T23, T24, T9, T45, qs1_in_aa(.(T23, T44), T110))
U23_AA(T22, T23, T24, T9, T45, qs1_out_aa(.(T23, T44), T110)) → U24_AA(T22, T23, T24, T9, p52_in_aaaga(T45, X10, T110, T22, T9))
U23_AA(T22, T23, T24, T9, T45, qs1_out_aa(.(T23, T44), T110)) → P52_IN_AAAGA(T45, X10, T110, T22, T9)
U21_GA(T22, T23, T24, T9, part20_out_ggaa(T22, T24, T44, T45)) → U23_GA(T22, T23, T24, T9, T45, qs1_in_aa(.(T23, T44), T110))
U23_GA(T22, T23, T24, T9, T45, qs1_out_aa(.(T23, T44), T110)) → U24_GA(T22, T23, T24, T9, p52_in_aaaga(T45, X10, T110, T22, T9))
U23_GA(T22, T23, T24, T9, T45, qs1_out_aa(.(T23, T44), T110)) → P52_IN_AAAGA(T45, X10, T110, T22, T9)
QS1_IN_GA(.(T234, .(T235, T236)), T9) → U25_GA(T234, T235, T236, T9, le33_in_gg(T234, T235))
QS1_IN_GA(.(T234, .(T235, T236)), T9) → LE33_IN_GG(T234, T235)
U25_GA(T234, T235, T236, T9, le33_out_gg(T234, T235)) → U26_GA(T234, T235, T236, T9, part20_in_ggaa(T234, T236, X431, X432))
U25_GA(T234, T235, T236, T9, le33_out_gg(T234, T235)) → PART20_IN_GGAA(T234, T236, X431, X432)
U25_GA(T234, T235, T236, T9, le33_out_gg(T234, T235)) → U27_GA(T234, T235, T236, T9, part20_in_ggaa(T234, T236, T244, T245))
U27_GA(T234, T235, T236, T9, part20_out_ggaa(T234, T236, T244, T245)) → U28_GA(T234, T235, T236, T9, qs53_in_aa(T244, X9))
U27_GA(T234, T235, T236, T9, part20_out_ggaa(T234, T236, T244, T245)) → QS53_IN_AA(T244, X9)
U27_GA(T234, T235, T236, T9, part20_out_ggaa(T234, T236, T244, T245)) → U29_GA(T234, T235, T236, T9, T245, qs53_in_aa(T244, T251))
U29_GA(T234, T235, T236, T9, T245, qs53_out_aa(T244, T251)) → U30_GA(T234, T235, T236, T9, p52_in_aaaga(.(T235, T245), X10, T251, T234, T9))
U29_GA(T234, T235, T236, T9, T245, qs53_out_aa(T244, T251)) → P52_IN_AAAGA(.(T235, T245), X10, T251, T234, T9)
QS1_IN_GA(.(T260, []), T9) → U31_GA(T260, T9, qs99_in_a(X9))
QS1_IN_GA(.(T260, []), T9) → QS99_IN_A(X9)
QS1_IN_GA(.(T260, []), T9) → U32_GA(T260, T9, qs99_in_a(T263))
U32_GA(T260, T9, qs99_out_a(T263)) → U33_GA(T260, T9, qs99_in_a(X10))
U32_GA(T260, T9, qs99_out_a(T263)) → QS99_IN_A(X10)
U32_GA(T260, T9, qs99_out_a(T263)) → U34_GA(T260, T9, T263, qs99_in_a(T268))
U34_GA(T260, T9, T263, qs99_out_a(T268)) → U35_GA(T260, T9, app54_in_ggga(T263, T260, T268, T9))
U34_GA(T260, T9, T263, qs99_out_a(T268)) → APP54_IN_GGGA(T263, T260, T268, T9)
APP54_IN_GGGA(.(T205, T206), T207, T208, .(T205, T210)) → U15_GGGA(T205, T206, T207, T208, T210, app54_in_ggga(T206, T207, T208, T210))
APP54_IN_GGGA(.(T205, T206), T207, T208, .(T205, T210)) → APP54_IN_GGGA(T206, T207, T208, T210)
qs1_in_ga(.(T22, .(T23, T24)), T9) → U19_ga(T22, T23, T24, T9, gt10_in_gg(T22, T23))
gt10_in_gg(s(T37), s(T38)) → U1_gg(T37, T38, gt10_in_gg(T37, T38))
gt10_in_gg(s(0), 0) → gt10_out_gg(s(0), 0)
U1_gg(T37, T38, gt10_out_gg(T37, T38)) → gt10_out_gg(s(T37), s(T38))
U19_ga(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U19_ga(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → U20_ga(T22, T23, T24, T9, part20_in_ggaa(T22, T24, X47, X48))
part20_in_ggaa(T61, .(T62, T63), .(T62, X119), X120) → U2_ggaa(T61, T62, T63, X119, X120, gt10_in_gg(T61, T62))
U2_ggaa(T61, T62, T63, X119, X120, gt10_out_gg(T61, T62)) → part20_out_ggaa(T61, .(T62, T63), .(T62, X119), X120)
U2_ggaa(T61, T62, T63, X119, X120, gt10_out_gg(T61, T62)) → U3_ggaa(T61, T62, T63, X119, X120, part20_in_ggaa(T61, T63, X119, X120))
part20_in_ggaa(T83, .(T84, T85), X170, .(T84, X171)) → U4_ggaa(T83, T84, T85, X170, X171, le33_in_gg(T83, T84))
le33_in_gg(s(T98), s(T99)) → U6_gg(T98, T99, le33_in_gg(T98, T99))
le33_in_gg(0, s(0)) → le33_out_gg(0, s(0))
le33_in_gg(0, 0) → le33_out_gg(0, 0)
U6_gg(T98, T99, le33_out_gg(T98, T99)) → le33_out_gg(s(T98), s(T99))
U4_ggaa(T83, T84, T85, X170, X171, le33_out_gg(T83, T84)) → part20_out_ggaa(T83, .(T84, T85), X170, .(T84, X171))
U4_ggaa(T83, T84, T85, X170, X171, le33_out_gg(T83, T84)) → U5_ggaa(T83, T84, T85, X170, X171, part20_in_ggaa(T83, T85, X170, X171))
part20_in_ggaa(T107, [], [], []) → part20_out_ggaa(T107, [], [], [])
U5_ggaa(T83, T84, T85, X170, X171, part20_out_ggaa(T83, T85, X170, X171)) → part20_out_ggaa(T83, .(T84, T85), X170, .(T84, X171))
U3_ggaa(T61, T62, T63, X119, X120, part20_out_ggaa(T61, T63, X119, X120)) → part20_out_ggaa(T61, .(T62, T63), .(T62, X119), X120)
U20_ga(T22, T23, T24, T9, part20_out_ggaa(T22, T24, X47, X48)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U19_ga(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → U21_ga(T22, T23, T24, T9, part20_in_ggaa(T22, T24, T44, T45))
U21_ga(T22, T23, T24, T9, part20_out_ggaa(T22, T24, T44, T45)) → U22_ga(T22, T23, T24, T9, qs1_in_aa(.(T23, T44), X9))
qs1_in_aa(.(T22, .(T23, T24)), T9) → U19_aa(T22, T23, T24, T9, gt10_in_aa(T22, T23))
gt10_in_aa(s(T37), s(T38)) → U1_aa(T37, T38, gt10_in_aa(T37, T38))
gt10_in_aa(s(0), 0) → gt10_out_aa(s(0), 0)
U1_aa(T37, T38, gt10_out_aa(T37, T38)) → gt10_out_aa(s(T37), s(T38))
U19_aa(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U19_aa(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → U20_aa(T22, T23, T24, T9, part20_in_gaaa(T22, T24, X47, X48))
part20_in_gaaa(T61, .(T62, T63), .(T62, X119), X120) → U2_gaaa(T61, T62, T63, X119, X120, gt10_in_ga(T61, T62))
gt10_in_ga(s(T37), s(T38)) → U1_ga(T37, T38, gt10_in_ga(T37, T38))
gt10_in_ga(s(0), 0) → gt10_out_ga(s(0), 0)
U1_ga(T37, T38, gt10_out_ga(T37, T38)) → gt10_out_ga(s(T37), s(T38))
U2_gaaa(T61, T62, T63, X119, X120, gt10_out_ga(T61, T62)) → part20_out_gaaa(T61, .(T62, T63), .(T62, X119), X120)
U2_gaaa(T61, T62, T63, X119, X120, gt10_out_ga(T61, T62)) → U3_gaaa(T61, T62, T63, X119, X120, part20_in_gaaa(T61, T63, X119, X120))
part20_in_gaaa(T83, .(T84, T85), X170, .(T84, X171)) → U4_gaaa(T83, T84, T85, X170, X171, le33_in_ga(T83, T84))
le33_in_ga(s(T98), s(T99)) → U6_ga(T98, T99, le33_in_ga(T98, T99))
le33_in_ga(0, s(0)) → le33_out_ga(0, s(0))
le33_in_ga(0, 0) → le33_out_ga(0, 0)
U6_ga(T98, T99, le33_out_ga(T98, T99)) → le33_out_ga(s(T98), s(T99))
U4_gaaa(T83, T84, T85, X170, X171, le33_out_ga(T83, T84)) → part20_out_gaaa(T83, .(T84, T85), X170, .(T84, X171))
U4_gaaa(T83, T84, T85, X170, X171, le33_out_ga(T83, T84)) → U5_gaaa(T83, T84, T85, X170, X171, part20_in_gaaa(T83, T85, X170, X171))
part20_in_gaaa(T107, [], [], []) → part20_out_gaaa(T107, [], [], [])
U5_gaaa(T83, T84, T85, X170, X171, part20_out_gaaa(T83, T85, X170, X171)) → part20_out_gaaa(T83, .(T84, T85), X170, .(T84, X171))
U3_gaaa(T61, T62, T63, X119, X120, part20_out_gaaa(T61, T63, X119, X120)) → part20_out_gaaa(T61, .(T62, T63), .(T62, X119), X120)
U20_aa(T22, T23, T24, T9, part20_out_gaaa(T22, T24, X47, X48)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U19_aa(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → U21_aa(T22, T23, T24, T9, part20_in_gaaa(T22, T24, T44, T45))
U21_aa(T22, T23, T24, T9, part20_out_gaaa(T22, T24, T44, T45)) → U22_aa(T22, T23, T24, T9, qs1_in_aa(.(T23, T44), X9))
qs1_in_aa(.(T234, .(T235, T236)), T9) → U25_aa(T234, T235, T236, T9, le33_in_aa(T234, T235))
le33_in_aa(s(T98), s(T99)) → U6_aa(T98, T99, le33_in_aa(T98, T99))
le33_in_aa(0, s(0)) → le33_out_aa(0, s(0))
le33_in_aa(0, 0) → le33_out_aa(0, 0)
U6_aa(T98, T99, le33_out_aa(T98, T99)) → le33_out_aa(s(T98), s(T99))
U25_aa(T234, T235, T236, T9, le33_out_aa(T234, T235)) → qs1_out_aa(.(T234, .(T235, T236)), T9)
U25_aa(T234, T235, T236, T9, le33_out_aa(T234, T235)) → U26_aa(T234, T235, T236, T9, part20_in_gaaa(T234, T236, X431, X432))
U26_aa(T234, T235, T236, T9, part20_out_gaaa(T234, T236, X431, X432)) → qs1_out_aa(.(T234, .(T235, T236)), T9)
U25_aa(T234, T235, T236, T9, le33_out_aa(T234, T235)) → U27_aa(T234, T235, T236, T9, part20_in_gaaa(T234, T236, T244, T245))
U27_aa(T234, T235, T236, T9, part20_out_gaaa(T234, T236, T244, T245)) → U28_aa(T234, T235, T236, T9, qs53_in_aa(T244, X9))
qs53_in_aa(.(T126, T127), X269) → U7_aa(T126, T127, X269, part20_in_aaaa(T126, T127, X265, X266))
part20_in_aaaa(T61, .(T62, T63), .(T62, X119), X120) → U2_aaaa(T61, T62, T63, X119, X120, gt10_in_aa(T61, T62))
U2_aaaa(T61, T62, T63, X119, X120, gt10_out_aa(T61, T62)) → part20_out_aaaa(T61, .(T62, T63), .(T62, X119), X120)
U2_aaaa(T61, T62, T63, X119, X120, gt10_out_aa(T61, T62)) → U3_aaaa(T61, T62, T63, X119, X120, part20_in_gaaa(T61, T63, X119, X120))
U3_aaaa(T61, T62, T63, X119, X120, part20_out_gaaa(T61, T63, X119, X120)) → part20_out_aaaa(T61, .(T62, T63), .(T62, X119), X120)
part20_in_aaaa(T83, .(T84, T85), X170, .(T84, X171)) → U4_aaaa(T83, T84, T85, X170, X171, le33_in_aa(T83, T84))
U4_aaaa(T83, T84, T85, X170, X171, le33_out_aa(T83, T84)) → part20_out_aaaa(T83, .(T84, T85), X170, .(T84, X171))
U4_aaaa(T83, T84, T85, X170, X171, le33_out_aa(T83, T84)) → U5_aaaa(T83, T84, T85, X170, X171, part20_in_gaaa(T83, T85, X170, X171))
U5_aaaa(T83, T84, T85, X170, X171, part20_out_gaaa(T83, T85, X170, X171)) → part20_out_aaaa(T83, .(T84, T85), X170, .(T84, X171))
part20_in_aaaa(T107, [], [], []) → part20_out_aaaa(T107, [], [], [])
U7_aa(T126, T127, X269, part20_out_aaaa(T126, T127, X265, X266)) → qs53_out_aa(.(T126, T127), X269)
qs53_in_aa(.(T126, T127), X269) → U8_aa(T126, T127, X269, part20_in_aaaa(T126, T127, T131, T132))
U8_aa(T126, T127, X269, part20_out_aaaa(T126, T127, T131, T132)) → U9_aa(T126, T127, X269, qs53_in_aa(T131, X267))
qs53_in_aa([], []) → qs53_out_aa([], [])
U9_aa(T126, T127, X269, qs53_out_aa(T131, X267)) → qs53_out_aa(.(T126, T127), X269)
U8_aa(T126, T127, X269, part20_out_aaaa(T126, T127, T131, T132)) → U10_aa(T126, T127, X269, T132, qs53_in_aa(T131, T138))
U10_aa(T126, T127, X269, T132, qs53_out_aa(T131, T138)) → U11_aa(T126, T127, X269, qs53_in_aa(T132, X268))
U11_aa(T126, T127, X269, qs53_out_aa(T132, X268)) → qs53_out_aa(.(T126, T127), X269)
U10_aa(T126, T127, X269, T132, qs53_out_aa(T131, T138)) → U12_aa(T126, T127, X269, T138, qs53_in_aa(T132, T143))
U12_aa(T126, T127, X269, T138, qs53_out_aa(T132, T143)) → U13_aa(T126, T127, X269, app65_in_aaaa(T138, T126, T143, X269))
app65_in_aaaa(.(T166, T167), T168, T169, .(T166, X348)) → U14_aaaa(T166, T167, T168, T169, X348, app65_in_aaaa(T167, T168, T169, X348))
app65_in_aaaa([], T178, T179, .(T178, T179)) → app65_out_aaaa([], T178, T179, .(T178, T179))
U14_aaaa(T166, T167, T168, T169, X348, app65_out_aaaa(T167, T168, T169, X348)) → app65_out_aaaa(.(T166, T167), T168, T169, .(T166, X348))
U13_aa(T126, T127, X269, app65_out_aaaa(T138, T126, T143, X269)) → qs53_out_aa(.(T126, T127), X269)
U28_aa(T234, T235, T236, T9, qs53_out_aa(T244, X9)) → qs1_out_aa(.(T234, .(T235, T236)), T9)
U27_aa(T234, T235, T236, T9, part20_out_gaaa(T234, T236, T244, T245)) → U29_aa(T234, T235, T236, T9, T245, qs53_in_aa(T244, T251))
U29_aa(T234, T235, T236, T9, T245, qs53_out_aa(T244, T251)) → U30_aa(T234, T235, T236, T9, p52_in_aaaga(.(T235, T245), X10, T251, T234, T9))
p52_in_aaaga(T45, X10, T110, T22, T9) → U16_aaaga(T45, X10, T110, T22, T9, qs53_in_aa(T45, X10))
U16_aaaga(T45, X10, T110, T22, T9, qs53_out_aa(T45, X10)) → p52_out_aaaga(T45, X10, T110, T22, T9)
p52_in_aaaga(T45, T115, T110, T22, T9) → U17_aaaga(T45, T115, T110, T22, T9, qs53_in_aa(T45, T115))
U17_aaaga(T45, T115, T110, T22, T9, qs53_out_aa(T45, T115)) → U18_aaaga(T45, T115, T110, T22, T9, app54_in_agaa(T110, T22, T115, T9))
app54_in_agaa(.(T205, T206), T207, T208, .(T205, T210)) → U15_agaa(T205, T206, T207, T208, T210, app54_in_agaa(T206, T207, T208, T210))
app54_in_agaa([], T220, T221, .(T220, T221)) → app54_out_agaa([], T220, T221, .(T220, T221))
U15_agaa(T205, T206, T207, T208, T210, app54_out_agaa(T206, T207, T208, T210)) → app54_out_agaa(.(T205, T206), T207, T208, .(T205, T210))
U18_aaaga(T45, T115, T110, T22, T9, app54_out_agaa(T110, T22, T115, T9)) → p52_out_aaaga(T45, T115, T110, T22, T9)
U30_aa(T234, T235, T236, T9, p52_out_aaaga(.(T235, T245), X10, T251, T234, T9)) → qs1_out_aa(.(T234, .(T235, T236)), T9)
qs1_in_aa(.(T260, []), T9) → U31_aa(T260, T9, qs99_in_a(X9))
qs99_in_a([]) → qs99_out_a([])
U31_aa(T260, T9, qs99_out_a(X9)) → qs1_out_aa(.(T260, []), T9)
qs1_in_aa(.(T260, []), T9) → U32_aa(T260, T9, qs99_in_a(T263))
U32_aa(T260, T9, qs99_out_a(T263)) → U33_aa(T260, T9, qs99_in_a(X10))
U33_aa(T260, T9, qs99_out_a(X10)) → qs1_out_aa(.(T260, []), T9)
U32_aa(T260, T9, qs99_out_a(T263)) → U34_aa(T260, T9, T263, qs99_in_a(T268))
U34_aa(T260, T9, T263, qs99_out_a(T268)) → U35_aa(T260, T9, app54_in_gaga(T263, T260, T268, T9))
app54_in_gaga(.(T205, T206), T207, T208, .(T205, T210)) → U15_gaga(T205, T206, T207, T208, T210, app54_in_gaga(T206, T207, T208, T210))
app54_in_gaga([], T220, T221, .(T220, T221)) → app54_out_gaga([], T220, T221, .(T220, T221))
U15_gaga(T205, T206, T207, T208, T210, app54_out_gaga(T206, T207, T208, T210)) → app54_out_gaga(.(T205, T206), T207, T208, .(T205, T210))
U35_aa(T260, T9, app54_out_gaga(T263, T260, T268, T9)) → qs1_out_aa(.(T260, []), T9)
qs1_in_aa([], []) → qs1_out_aa([], [])
U22_aa(T22, T23, T24, T9, qs1_out_aa(.(T23, T44), X9)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U21_aa(T22, T23, T24, T9, part20_out_gaaa(T22, T24, T44, T45)) → U23_aa(T22, T23, T24, T9, T45, qs1_in_aa(.(T23, T44), T110))
U23_aa(T22, T23, T24, T9, T45, qs1_out_aa(.(T23, T44), T110)) → U24_aa(T22, T23, T24, T9, p52_in_aaaga(T45, X10, T110, T22, T9))
U24_aa(T22, T23, T24, T9, p52_out_aaaga(T45, X10, T110, T22, T9)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U22_ga(T22, T23, T24, T9, qs1_out_aa(.(T23, T44), X9)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U21_ga(T22, T23, T24, T9, part20_out_ggaa(T22, T24, T44, T45)) → U23_ga(T22, T23, T24, T9, T45, qs1_in_aa(.(T23, T44), T110))
U23_ga(T22, T23, T24, T9, T45, qs1_out_aa(.(T23, T44), T110)) → U24_ga(T22, T23, T24, T9, p52_in_aaaga(T45, X10, T110, T22, T9))
U24_ga(T22, T23, T24, T9, p52_out_aaaga(T45, X10, T110, T22, T9)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
qs1_in_ga(.(T234, .(T235, T236)), T9) → U25_ga(T234, T235, T236, T9, le33_in_gg(T234, T235))
U25_ga(T234, T235, T236, T9, le33_out_gg(T234, T235)) → qs1_out_ga(.(T234, .(T235, T236)), T9)
U25_ga(T234, T235, T236, T9, le33_out_gg(T234, T235)) → U26_ga(T234, T235, T236, T9, part20_in_ggaa(T234, T236, X431, X432))
U26_ga(T234, T235, T236, T9, part20_out_ggaa(T234, T236, X431, X432)) → qs1_out_ga(.(T234, .(T235, T236)), T9)
U25_ga(T234, T235, T236, T9, le33_out_gg(T234, T235)) → U27_ga(T234, T235, T236, T9, part20_in_ggaa(T234, T236, T244, T245))
U27_ga(T234, T235, T236, T9, part20_out_ggaa(T234, T236, T244, T245)) → U28_ga(T234, T235, T236, T9, qs53_in_aa(T244, X9))
U28_ga(T234, T235, T236, T9, qs53_out_aa(T244, X9)) → qs1_out_ga(.(T234, .(T235, T236)), T9)
U27_ga(T234, T235, T236, T9, part20_out_ggaa(T234, T236, T244, T245)) → U29_ga(T234, T235, T236, T9, T245, qs53_in_aa(T244, T251))
U29_ga(T234, T235, T236, T9, T245, qs53_out_aa(T244, T251)) → U30_ga(T234, T235, T236, T9, p52_in_aaaga(.(T235, T245), X10, T251, T234, T9))
U30_ga(T234, T235, T236, T9, p52_out_aaaga(.(T235, T245), X10, T251, T234, T9)) → qs1_out_ga(.(T234, .(T235, T236)), T9)
qs1_in_ga(.(T260, []), T9) → U31_ga(T260, T9, qs99_in_a(X9))
U31_ga(T260, T9, qs99_out_a(X9)) → qs1_out_ga(.(T260, []), T9)
qs1_in_ga(.(T260, []), T9) → U32_ga(T260, T9, qs99_in_a(T263))
U32_ga(T260, T9, qs99_out_a(T263)) → U33_ga(T260, T9, qs99_in_a(X10))
U33_ga(T260, T9, qs99_out_a(X10)) → qs1_out_ga(.(T260, []), T9)
U32_ga(T260, T9, qs99_out_a(T263)) → U34_ga(T260, T9, T263, qs99_in_a(T268))
U34_ga(T260, T9, T263, qs99_out_a(T268)) → U35_ga(T260, T9, app54_in_ggga(T263, T260, T268, T9))
app54_in_ggga(.(T205, T206), T207, T208, .(T205, T210)) → U15_ggga(T205, T206, T207, T208, T210, app54_in_ggga(T206, T207, T208, T210))
app54_in_ggga([], T220, T221, .(T220, T221)) → app54_out_ggga([], T220, T221, .(T220, T221))
U15_ggga(T205, T206, T207, T208, T210, app54_out_ggga(T206, T207, T208, T210)) → app54_out_ggga(.(T205, T206), T207, T208, .(T205, T210))
U35_ga(T260, T9, app54_out_ggga(T263, T260, T268, T9)) → qs1_out_ga(.(T260, []), T9)
qs1_in_ga([], []) → qs1_out_ga([], [])
QS1_IN_GA(.(T22, .(T23, T24)), T9) → U19_GA(T22, T23, T24, T9, gt10_in_gg(T22, T23))
QS1_IN_GA(.(T22, .(T23, T24)), T9) → GT10_IN_GG(T22, T23)
GT10_IN_GG(s(T37), s(T38)) → U1_GG(T37, T38, gt10_in_gg(T37, T38))
GT10_IN_GG(s(T37), s(T38)) → GT10_IN_GG(T37, T38)
U19_GA(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → U20_GA(T22, T23, T24, T9, part20_in_ggaa(T22, T24, X47, X48))
U19_GA(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → PART20_IN_GGAA(T22, T24, X47, X48)
PART20_IN_GGAA(T61, .(T62, T63), .(T62, X119), X120) → U2_GGAA(T61, T62, T63, X119, X120, gt10_in_gg(T61, T62))
PART20_IN_GGAA(T61, .(T62, T63), .(T62, X119), X120) → GT10_IN_GG(T61, T62)
U2_GGAA(T61, T62, T63, X119, X120, gt10_out_gg(T61, T62)) → U3_GGAA(T61, T62, T63, X119, X120, part20_in_ggaa(T61, T63, X119, X120))
U2_GGAA(T61, T62, T63, X119, X120, gt10_out_gg(T61, T62)) → PART20_IN_GGAA(T61, T63, X119, X120)
PART20_IN_GGAA(T83, .(T84, T85), X170, .(T84, X171)) → U4_GGAA(T83, T84, T85, X170, X171, le33_in_gg(T83, T84))
PART20_IN_GGAA(T83, .(T84, T85), X170, .(T84, X171)) → LE33_IN_GG(T83, T84)
LE33_IN_GG(s(T98), s(T99)) → U6_GG(T98, T99, le33_in_gg(T98, T99))
LE33_IN_GG(s(T98), s(T99)) → LE33_IN_GG(T98, T99)
U4_GGAA(T83, T84, T85, X170, X171, le33_out_gg(T83, T84)) → U5_GGAA(T83, T84, T85, X170, X171, part20_in_ggaa(T83, T85, X170, X171))
U4_GGAA(T83, T84, T85, X170, X171, le33_out_gg(T83, T84)) → PART20_IN_GGAA(T83, T85, X170, X171)
U19_GA(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → U21_GA(T22, T23, T24, T9, part20_in_ggaa(T22, T24, T44, T45))
U21_GA(T22, T23, T24, T9, part20_out_ggaa(T22, T24, T44, T45)) → U22_GA(T22, T23, T24, T9, qs1_in_aa(.(T23, T44), X9))
U21_GA(T22, T23, T24, T9, part20_out_ggaa(T22, T24, T44, T45)) → QS1_IN_AA(.(T23, T44), X9)
QS1_IN_AA(.(T22, .(T23, T24)), T9) → U19_AA(T22, T23, T24, T9, gt10_in_aa(T22, T23))
QS1_IN_AA(.(T22, .(T23, T24)), T9) → GT10_IN_AA(T22, T23)
GT10_IN_AA(s(T37), s(T38)) → U1_AA(T37, T38, gt10_in_aa(T37, T38))
GT10_IN_AA(s(T37), s(T38)) → GT10_IN_AA(T37, T38)
U19_AA(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → U20_AA(T22, T23, T24, T9, part20_in_gaaa(T22, T24, X47, X48))
U19_AA(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → PART20_IN_GAAA(T22, T24, X47, X48)
PART20_IN_GAAA(T61, .(T62, T63), .(T62, X119), X120) → U2_GAAA(T61, T62, T63, X119, X120, gt10_in_ga(T61, T62))
PART20_IN_GAAA(T61, .(T62, T63), .(T62, X119), X120) → GT10_IN_GA(T61, T62)
GT10_IN_GA(s(T37), s(T38)) → U1_GA(T37, T38, gt10_in_ga(T37, T38))
GT10_IN_GA(s(T37), s(T38)) → GT10_IN_GA(T37, T38)
U2_GAAA(T61, T62, T63, X119, X120, gt10_out_ga(T61, T62)) → U3_GAAA(T61, T62, T63, X119, X120, part20_in_gaaa(T61, T63, X119, X120))
U2_GAAA(T61, T62, T63, X119, X120, gt10_out_ga(T61, T62)) → PART20_IN_GAAA(T61, T63, X119, X120)
PART20_IN_GAAA(T83, .(T84, T85), X170, .(T84, X171)) → U4_GAAA(T83, T84, T85, X170, X171, le33_in_ga(T83, T84))
PART20_IN_GAAA(T83, .(T84, T85), X170, .(T84, X171)) → LE33_IN_GA(T83, T84)
LE33_IN_GA(s(T98), s(T99)) → U6_GA(T98, T99, le33_in_ga(T98, T99))
LE33_IN_GA(s(T98), s(T99)) → LE33_IN_GA(T98, T99)
U4_GAAA(T83, T84, T85, X170, X171, le33_out_ga(T83, T84)) → U5_GAAA(T83, T84, T85, X170, X171, part20_in_gaaa(T83, T85, X170, X171))
U4_GAAA(T83, T84, T85, X170, X171, le33_out_ga(T83, T84)) → PART20_IN_GAAA(T83, T85, X170, X171)
U19_AA(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → U21_AA(T22, T23, T24, T9, part20_in_gaaa(T22, T24, T44, T45))
U21_AA(T22, T23, T24, T9, part20_out_gaaa(T22, T24, T44, T45)) → U22_AA(T22, T23, T24, T9, qs1_in_aa(.(T23, T44), X9))
U21_AA(T22, T23, T24, T9, part20_out_gaaa(T22, T24, T44, T45)) → QS1_IN_AA(.(T23, T44), X9)
QS1_IN_AA(.(T234, .(T235, T236)), T9) → U25_AA(T234, T235, T236, T9, le33_in_aa(T234, T235))
QS1_IN_AA(.(T234, .(T235, T236)), T9) → LE33_IN_AA(T234, T235)
LE33_IN_AA(s(T98), s(T99)) → U6_AA(T98, T99, le33_in_aa(T98, T99))
LE33_IN_AA(s(T98), s(T99)) → LE33_IN_AA(T98, T99)
U25_AA(T234, T235, T236, T9, le33_out_aa(T234, T235)) → U26_AA(T234, T235, T236, T9, part20_in_gaaa(T234, T236, X431, X432))
U25_AA(T234, T235, T236, T9, le33_out_aa(T234, T235)) → PART20_IN_GAAA(T234, T236, X431, X432)
U25_AA(T234, T235, T236, T9, le33_out_aa(T234, T235)) → U27_AA(T234, T235, T236, T9, part20_in_gaaa(T234, T236, T244, T245))
U27_AA(T234, T235, T236, T9, part20_out_gaaa(T234, T236, T244, T245)) → U28_AA(T234, T235, T236, T9, qs53_in_aa(T244, X9))
U27_AA(T234, T235, T236, T9, part20_out_gaaa(T234, T236, T244, T245)) → QS53_IN_AA(T244, X9)
QS53_IN_AA(.(T126, T127), X269) → U7_AA(T126, T127, X269, part20_in_aaaa(T126, T127, X265, X266))
QS53_IN_AA(.(T126, T127), X269) → PART20_IN_AAAA(T126, T127, X265, X266)
PART20_IN_AAAA(T61, .(T62, T63), .(T62, X119), X120) → U2_AAAA(T61, T62, T63, X119, X120, gt10_in_aa(T61, T62))
PART20_IN_AAAA(T61, .(T62, T63), .(T62, X119), X120) → GT10_IN_AA(T61, T62)
U2_AAAA(T61, T62, T63, X119, X120, gt10_out_aa(T61, T62)) → U3_AAAA(T61, T62, T63, X119, X120, part20_in_gaaa(T61, T63, X119, X120))
U2_AAAA(T61, T62, T63, X119, X120, gt10_out_aa(T61, T62)) → PART20_IN_GAAA(T61, T63, X119, X120)
PART20_IN_AAAA(T83, .(T84, T85), X170, .(T84, X171)) → U4_AAAA(T83, T84, T85, X170, X171, le33_in_aa(T83, T84))
PART20_IN_AAAA(T83, .(T84, T85), X170, .(T84, X171)) → LE33_IN_AA(T83, T84)
U4_AAAA(T83, T84, T85, X170, X171, le33_out_aa(T83, T84)) → U5_AAAA(T83, T84, T85, X170, X171, part20_in_gaaa(T83, T85, X170, X171))
U4_AAAA(T83, T84, T85, X170, X171, le33_out_aa(T83, T84)) → PART20_IN_GAAA(T83, T85, X170, X171)
QS53_IN_AA(.(T126, T127), X269) → U8_AA(T126, T127, X269, part20_in_aaaa(T126, T127, T131, T132))
U8_AA(T126, T127, X269, part20_out_aaaa(T126, T127, T131, T132)) → U9_AA(T126, T127, X269, qs53_in_aa(T131, X267))
U8_AA(T126, T127, X269, part20_out_aaaa(T126, T127, T131, T132)) → QS53_IN_AA(T131, X267)
U8_AA(T126, T127, X269, part20_out_aaaa(T126, T127, T131, T132)) → U10_AA(T126, T127, X269, T132, qs53_in_aa(T131, T138))
U10_AA(T126, T127, X269, T132, qs53_out_aa(T131, T138)) → U11_AA(T126, T127, X269, qs53_in_aa(T132, X268))
U10_AA(T126, T127, X269, T132, qs53_out_aa(T131, T138)) → QS53_IN_AA(T132, X268)
U10_AA(T126, T127, X269, T132, qs53_out_aa(T131, T138)) → U12_AA(T126, T127, X269, T138, qs53_in_aa(T132, T143))
U12_AA(T126, T127, X269, T138, qs53_out_aa(T132, T143)) → U13_AA(T126, T127, X269, app65_in_aaaa(T138, T126, T143, X269))
U12_AA(T126, T127, X269, T138, qs53_out_aa(T132, T143)) → APP65_IN_AAAA(T138, T126, T143, X269)
APP65_IN_AAAA(.(T166, T167), T168, T169, .(T166, X348)) → U14_AAAA(T166, T167, T168, T169, X348, app65_in_aaaa(T167, T168, T169, X348))
APP65_IN_AAAA(.(T166, T167), T168, T169, .(T166, X348)) → APP65_IN_AAAA(T167, T168, T169, X348)
U27_AA(T234, T235, T236, T9, part20_out_gaaa(T234, T236, T244, T245)) → U29_AA(T234, T235, T236, T9, T245, qs53_in_aa(T244, T251))
U29_AA(T234, T235, T236, T9, T245, qs53_out_aa(T244, T251)) → U30_AA(T234, T235, T236, T9, p52_in_aaaga(.(T235, T245), X10, T251, T234, T9))
U29_AA(T234, T235, T236, T9, T245, qs53_out_aa(T244, T251)) → P52_IN_AAAGA(.(T235, T245), X10, T251, T234, T9)
P52_IN_AAAGA(T45, X10, T110, T22, T9) → U16_AAAGA(T45, X10, T110, T22, T9, qs53_in_aa(T45, X10))
P52_IN_AAAGA(T45, X10, T110, T22, T9) → QS53_IN_AA(T45, X10)
P52_IN_AAAGA(T45, T115, T110, T22, T9) → U17_AAAGA(T45, T115, T110, T22, T9, qs53_in_aa(T45, T115))
U17_AAAGA(T45, T115, T110, T22, T9, qs53_out_aa(T45, T115)) → U18_AAAGA(T45, T115, T110, T22, T9, app54_in_agaa(T110, T22, T115, T9))
U17_AAAGA(T45, T115, T110, T22, T9, qs53_out_aa(T45, T115)) → APP54_IN_AGAA(T110, T22, T115, T9)
APP54_IN_AGAA(.(T205, T206), T207, T208, .(T205, T210)) → U15_AGAA(T205, T206, T207, T208, T210, app54_in_agaa(T206, T207, T208, T210))
APP54_IN_AGAA(.(T205, T206), T207, T208, .(T205, T210)) → APP54_IN_AGAA(T206, T207, T208, T210)
QS1_IN_AA(.(T260, []), T9) → U31_AA(T260, T9, qs99_in_a(X9))
QS1_IN_AA(.(T260, []), T9) → QS99_IN_A(X9)
QS1_IN_AA(.(T260, []), T9) → U32_AA(T260, T9, qs99_in_a(T263))
U32_AA(T260, T9, qs99_out_a(T263)) → U33_AA(T260, T9, qs99_in_a(X10))
U32_AA(T260, T9, qs99_out_a(T263)) → QS99_IN_A(X10)
U32_AA(T260, T9, qs99_out_a(T263)) → U34_AA(T260, T9, T263, qs99_in_a(T268))
U34_AA(T260, T9, T263, qs99_out_a(T268)) → U35_AA(T260, T9, app54_in_gaga(T263, T260, T268, T9))
U34_AA(T260, T9, T263, qs99_out_a(T268)) → APP54_IN_GAGA(T263, T260, T268, T9)
APP54_IN_GAGA(.(T205, T206), T207, T208, .(T205, T210)) → U15_GAGA(T205, T206, T207, T208, T210, app54_in_gaga(T206, T207, T208, T210))
APP54_IN_GAGA(.(T205, T206), T207, T208, .(T205, T210)) → APP54_IN_GAGA(T206, T207, T208, T210)
U21_AA(T22, T23, T24, T9, part20_out_gaaa(T22, T24, T44, T45)) → U23_AA(T22, T23, T24, T9, T45, qs1_in_aa(.(T23, T44), T110))
U23_AA(T22, T23, T24, T9, T45, qs1_out_aa(.(T23, T44), T110)) → U24_AA(T22, T23, T24, T9, p52_in_aaaga(T45, X10, T110, T22, T9))
U23_AA(T22, T23, T24, T9, T45, qs1_out_aa(.(T23, T44), T110)) → P52_IN_AAAGA(T45, X10, T110, T22, T9)
U21_GA(T22, T23, T24, T9, part20_out_ggaa(T22, T24, T44, T45)) → U23_GA(T22, T23, T24, T9, T45, qs1_in_aa(.(T23, T44), T110))
U23_GA(T22, T23, T24, T9, T45, qs1_out_aa(.(T23, T44), T110)) → U24_GA(T22, T23, T24, T9, p52_in_aaaga(T45, X10, T110, T22, T9))
U23_GA(T22, T23, T24, T9, T45, qs1_out_aa(.(T23, T44), T110)) → P52_IN_AAAGA(T45, X10, T110, T22, T9)
QS1_IN_GA(.(T234, .(T235, T236)), T9) → U25_GA(T234, T235, T236, T9, le33_in_gg(T234, T235))
QS1_IN_GA(.(T234, .(T235, T236)), T9) → LE33_IN_GG(T234, T235)
U25_GA(T234, T235, T236, T9, le33_out_gg(T234, T235)) → U26_GA(T234, T235, T236, T9, part20_in_ggaa(T234, T236, X431, X432))
U25_GA(T234, T235, T236, T9, le33_out_gg(T234, T235)) → PART20_IN_GGAA(T234, T236, X431, X432)
U25_GA(T234, T235, T236, T9, le33_out_gg(T234, T235)) → U27_GA(T234, T235, T236, T9, part20_in_ggaa(T234, T236, T244, T245))
U27_GA(T234, T235, T236, T9, part20_out_ggaa(T234, T236, T244, T245)) → U28_GA(T234, T235, T236, T9, qs53_in_aa(T244, X9))
U27_GA(T234, T235, T236, T9, part20_out_ggaa(T234, T236, T244, T245)) → QS53_IN_AA(T244, X9)
U27_GA(T234, T235, T236, T9, part20_out_ggaa(T234, T236, T244, T245)) → U29_GA(T234, T235, T236, T9, T245, qs53_in_aa(T244, T251))
U29_GA(T234, T235, T236, T9, T245, qs53_out_aa(T244, T251)) → U30_GA(T234, T235, T236, T9, p52_in_aaaga(.(T235, T245), X10, T251, T234, T9))
U29_GA(T234, T235, T236, T9, T245, qs53_out_aa(T244, T251)) → P52_IN_AAAGA(.(T235, T245), X10, T251, T234, T9)
QS1_IN_GA(.(T260, []), T9) → U31_GA(T260, T9, qs99_in_a(X9))
QS1_IN_GA(.(T260, []), T9) → QS99_IN_A(X9)
QS1_IN_GA(.(T260, []), T9) → U32_GA(T260, T9, qs99_in_a(T263))
U32_GA(T260, T9, qs99_out_a(T263)) → U33_GA(T260, T9, qs99_in_a(X10))
U32_GA(T260, T9, qs99_out_a(T263)) → QS99_IN_A(X10)
U32_GA(T260, T9, qs99_out_a(T263)) → U34_GA(T260, T9, T263, qs99_in_a(T268))
U34_GA(T260, T9, T263, qs99_out_a(T268)) → U35_GA(T260, T9, app54_in_ggga(T263, T260, T268, T9))
U34_GA(T260, T9, T263, qs99_out_a(T268)) → APP54_IN_GGGA(T263, T260, T268, T9)
APP54_IN_GGGA(.(T205, T206), T207, T208, .(T205, T210)) → U15_GGGA(T205, T206, T207, T208, T210, app54_in_ggga(T206, T207, T208, T210))
APP54_IN_GGGA(.(T205, T206), T207, T208, .(T205, T210)) → APP54_IN_GGGA(T206, T207, T208, T210)
qs1_in_ga(.(T22, .(T23, T24)), T9) → U19_ga(T22, T23, T24, T9, gt10_in_gg(T22, T23))
gt10_in_gg(s(T37), s(T38)) → U1_gg(T37, T38, gt10_in_gg(T37, T38))
gt10_in_gg(s(0), 0) → gt10_out_gg(s(0), 0)
U1_gg(T37, T38, gt10_out_gg(T37, T38)) → gt10_out_gg(s(T37), s(T38))
U19_ga(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U19_ga(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → U20_ga(T22, T23, T24, T9, part20_in_ggaa(T22, T24, X47, X48))
part20_in_ggaa(T61, .(T62, T63), .(T62, X119), X120) → U2_ggaa(T61, T62, T63, X119, X120, gt10_in_gg(T61, T62))
U2_ggaa(T61, T62, T63, X119, X120, gt10_out_gg(T61, T62)) → part20_out_ggaa(T61, .(T62, T63), .(T62, X119), X120)
U2_ggaa(T61, T62, T63, X119, X120, gt10_out_gg(T61, T62)) → U3_ggaa(T61, T62, T63, X119, X120, part20_in_ggaa(T61, T63, X119, X120))
part20_in_ggaa(T83, .(T84, T85), X170, .(T84, X171)) → U4_ggaa(T83, T84, T85, X170, X171, le33_in_gg(T83, T84))
le33_in_gg(s(T98), s(T99)) → U6_gg(T98, T99, le33_in_gg(T98, T99))
le33_in_gg(0, s(0)) → le33_out_gg(0, s(0))
le33_in_gg(0, 0) → le33_out_gg(0, 0)
U6_gg(T98, T99, le33_out_gg(T98, T99)) → le33_out_gg(s(T98), s(T99))
U4_ggaa(T83, T84, T85, X170, X171, le33_out_gg(T83, T84)) → part20_out_ggaa(T83, .(T84, T85), X170, .(T84, X171))
U4_ggaa(T83, T84, T85, X170, X171, le33_out_gg(T83, T84)) → U5_ggaa(T83, T84, T85, X170, X171, part20_in_ggaa(T83, T85, X170, X171))
part20_in_ggaa(T107, [], [], []) → part20_out_ggaa(T107, [], [], [])
U5_ggaa(T83, T84, T85, X170, X171, part20_out_ggaa(T83, T85, X170, X171)) → part20_out_ggaa(T83, .(T84, T85), X170, .(T84, X171))
U3_ggaa(T61, T62, T63, X119, X120, part20_out_ggaa(T61, T63, X119, X120)) → part20_out_ggaa(T61, .(T62, T63), .(T62, X119), X120)
U20_ga(T22, T23, T24, T9, part20_out_ggaa(T22, T24, X47, X48)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U19_ga(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → U21_ga(T22, T23, T24, T9, part20_in_ggaa(T22, T24, T44, T45))
U21_ga(T22, T23, T24, T9, part20_out_ggaa(T22, T24, T44, T45)) → U22_ga(T22, T23, T24, T9, qs1_in_aa(.(T23, T44), X9))
qs1_in_aa(.(T22, .(T23, T24)), T9) → U19_aa(T22, T23, T24, T9, gt10_in_aa(T22, T23))
gt10_in_aa(s(T37), s(T38)) → U1_aa(T37, T38, gt10_in_aa(T37, T38))
gt10_in_aa(s(0), 0) → gt10_out_aa(s(0), 0)
U1_aa(T37, T38, gt10_out_aa(T37, T38)) → gt10_out_aa(s(T37), s(T38))
U19_aa(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U19_aa(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → U20_aa(T22, T23, T24, T9, part20_in_gaaa(T22, T24, X47, X48))
part20_in_gaaa(T61, .(T62, T63), .(T62, X119), X120) → U2_gaaa(T61, T62, T63, X119, X120, gt10_in_ga(T61, T62))
gt10_in_ga(s(T37), s(T38)) → U1_ga(T37, T38, gt10_in_ga(T37, T38))
gt10_in_ga(s(0), 0) → gt10_out_ga(s(0), 0)
U1_ga(T37, T38, gt10_out_ga(T37, T38)) → gt10_out_ga(s(T37), s(T38))
U2_gaaa(T61, T62, T63, X119, X120, gt10_out_ga(T61, T62)) → part20_out_gaaa(T61, .(T62, T63), .(T62, X119), X120)
U2_gaaa(T61, T62, T63, X119, X120, gt10_out_ga(T61, T62)) → U3_gaaa(T61, T62, T63, X119, X120, part20_in_gaaa(T61, T63, X119, X120))
part20_in_gaaa(T83, .(T84, T85), X170, .(T84, X171)) → U4_gaaa(T83, T84, T85, X170, X171, le33_in_ga(T83, T84))
le33_in_ga(s(T98), s(T99)) → U6_ga(T98, T99, le33_in_ga(T98, T99))
le33_in_ga(0, s(0)) → le33_out_ga(0, s(0))
le33_in_ga(0, 0) → le33_out_ga(0, 0)
U6_ga(T98, T99, le33_out_ga(T98, T99)) → le33_out_ga(s(T98), s(T99))
U4_gaaa(T83, T84, T85, X170, X171, le33_out_ga(T83, T84)) → part20_out_gaaa(T83, .(T84, T85), X170, .(T84, X171))
U4_gaaa(T83, T84, T85, X170, X171, le33_out_ga(T83, T84)) → U5_gaaa(T83, T84, T85, X170, X171, part20_in_gaaa(T83, T85, X170, X171))
part20_in_gaaa(T107, [], [], []) → part20_out_gaaa(T107, [], [], [])
U5_gaaa(T83, T84, T85, X170, X171, part20_out_gaaa(T83, T85, X170, X171)) → part20_out_gaaa(T83, .(T84, T85), X170, .(T84, X171))
U3_gaaa(T61, T62, T63, X119, X120, part20_out_gaaa(T61, T63, X119, X120)) → part20_out_gaaa(T61, .(T62, T63), .(T62, X119), X120)
U20_aa(T22, T23, T24, T9, part20_out_gaaa(T22, T24, X47, X48)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U19_aa(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → U21_aa(T22, T23, T24, T9, part20_in_gaaa(T22, T24, T44, T45))
U21_aa(T22, T23, T24, T9, part20_out_gaaa(T22, T24, T44, T45)) → U22_aa(T22, T23, T24, T9, qs1_in_aa(.(T23, T44), X9))
qs1_in_aa(.(T234, .(T235, T236)), T9) → U25_aa(T234, T235, T236, T9, le33_in_aa(T234, T235))
le33_in_aa(s(T98), s(T99)) → U6_aa(T98, T99, le33_in_aa(T98, T99))
le33_in_aa(0, s(0)) → le33_out_aa(0, s(0))
le33_in_aa(0, 0) → le33_out_aa(0, 0)
U6_aa(T98, T99, le33_out_aa(T98, T99)) → le33_out_aa(s(T98), s(T99))
U25_aa(T234, T235, T236, T9, le33_out_aa(T234, T235)) → qs1_out_aa(.(T234, .(T235, T236)), T9)
U25_aa(T234, T235, T236, T9, le33_out_aa(T234, T235)) → U26_aa(T234, T235, T236, T9, part20_in_gaaa(T234, T236, X431, X432))
U26_aa(T234, T235, T236, T9, part20_out_gaaa(T234, T236, X431, X432)) → qs1_out_aa(.(T234, .(T235, T236)), T9)
U25_aa(T234, T235, T236, T9, le33_out_aa(T234, T235)) → U27_aa(T234, T235, T236, T9, part20_in_gaaa(T234, T236, T244, T245))
U27_aa(T234, T235, T236, T9, part20_out_gaaa(T234, T236, T244, T245)) → U28_aa(T234, T235, T236, T9, qs53_in_aa(T244, X9))
qs53_in_aa(.(T126, T127), X269) → U7_aa(T126, T127, X269, part20_in_aaaa(T126, T127, X265, X266))
part20_in_aaaa(T61, .(T62, T63), .(T62, X119), X120) → U2_aaaa(T61, T62, T63, X119, X120, gt10_in_aa(T61, T62))
U2_aaaa(T61, T62, T63, X119, X120, gt10_out_aa(T61, T62)) → part20_out_aaaa(T61, .(T62, T63), .(T62, X119), X120)
U2_aaaa(T61, T62, T63, X119, X120, gt10_out_aa(T61, T62)) → U3_aaaa(T61, T62, T63, X119, X120, part20_in_gaaa(T61, T63, X119, X120))
U3_aaaa(T61, T62, T63, X119, X120, part20_out_gaaa(T61, T63, X119, X120)) → part20_out_aaaa(T61, .(T62, T63), .(T62, X119), X120)
part20_in_aaaa(T83, .(T84, T85), X170, .(T84, X171)) → U4_aaaa(T83, T84, T85, X170, X171, le33_in_aa(T83, T84))
U4_aaaa(T83, T84, T85, X170, X171, le33_out_aa(T83, T84)) → part20_out_aaaa(T83, .(T84, T85), X170, .(T84, X171))
U4_aaaa(T83, T84, T85, X170, X171, le33_out_aa(T83, T84)) → U5_aaaa(T83, T84, T85, X170, X171, part20_in_gaaa(T83, T85, X170, X171))
U5_aaaa(T83, T84, T85, X170, X171, part20_out_gaaa(T83, T85, X170, X171)) → part20_out_aaaa(T83, .(T84, T85), X170, .(T84, X171))
part20_in_aaaa(T107, [], [], []) → part20_out_aaaa(T107, [], [], [])
U7_aa(T126, T127, X269, part20_out_aaaa(T126, T127, X265, X266)) → qs53_out_aa(.(T126, T127), X269)
qs53_in_aa(.(T126, T127), X269) → U8_aa(T126, T127, X269, part20_in_aaaa(T126, T127, T131, T132))
U8_aa(T126, T127, X269, part20_out_aaaa(T126, T127, T131, T132)) → U9_aa(T126, T127, X269, qs53_in_aa(T131, X267))
qs53_in_aa([], []) → qs53_out_aa([], [])
U9_aa(T126, T127, X269, qs53_out_aa(T131, X267)) → qs53_out_aa(.(T126, T127), X269)
U8_aa(T126, T127, X269, part20_out_aaaa(T126, T127, T131, T132)) → U10_aa(T126, T127, X269, T132, qs53_in_aa(T131, T138))
U10_aa(T126, T127, X269, T132, qs53_out_aa(T131, T138)) → U11_aa(T126, T127, X269, qs53_in_aa(T132, X268))
U11_aa(T126, T127, X269, qs53_out_aa(T132, X268)) → qs53_out_aa(.(T126, T127), X269)
U10_aa(T126, T127, X269, T132, qs53_out_aa(T131, T138)) → U12_aa(T126, T127, X269, T138, qs53_in_aa(T132, T143))
U12_aa(T126, T127, X269, T138, qs53_out_aa(T132, T143)) → U13_aa(T126, T127, X269, app65_in_aaaa(T138, T126, T143, X269))
app65_in_aaaa(.(T166, T167), T168, T169, .(T166, X348)) → U14_aaaa(T166, T167, T168, T169, X348, app65_in_aaaa(T167, T168, T169, X348))
app65_in_aaaa([], T178, T179, .(T178, T179)) → app65_out_aaaa([], T178, T179, .(T178, T179))
U14_aaaa(T166, T167, T168, T169, X348, app65_out_aaaa(T167, T168, T169, X348)) → app65_out_aaaa(.(T166, T167), T168, T169, .(T166, X348))
U13_aa(T126, T127, X269, app65_out_aaaa(T138, T126, T143, X269)) → qs53_out_aa(.(T126, T127), X269)
U28_aa(T234, T235, T236, T9, qs53_out_aa(T244, X9)) → qs1_out_aa(.(T234, .(T235, T236)), T9)
U27_aa(T234, T235, T236, T9, part20_out_gaaa(T234, T236, T244, T245)) → U29_aa(T234, T235, T236, T9, T245, qs53_in_aa(T244, T251))
U29_aa(T234, T235, T236, T9, T245, qs53_out_aa(T244, T251)) → U30_aa(T234, T235, T236, T9, p52_in_aaaga(.(T235, T245), X10, T251, T234, T9))
p52_in_aaaga(T45, X10, T110, T22, T9) → U16_aaaga(T45, X10, T110, T22, T9, qs53_in_aa(T45, X10))
U16_aaaga(T45, X10, T110, T22, T9, qs53_out_aa(T45, X10)) → p52_out_aaaga(T45, X10, T110, T22, T9)
p52_in_aaaga(T45, T115, T110, T22, T9) → U17_aaaga(T45, T115, T110, T22, T9, qs53_in_aa(T45, T115))
U17_aaaga(T45, T115, T110, T22, T9, qs53_out_aa(T45, T115)) → U18_aaaga(T45, T115, T110, T22, T9, app54_in_agaa(T110, T22, T115, T9))
app54_in_agaa(.(T205, T206), T207, T208, .(T205, T210)) → U15_agaa(T205, T206, T207, T208, T210, app54_in_agaa(T206, T207, T208, T210))
app54_in_agaa([], T220, T221, .(T220, T221)) → app54_out_agaa([], T220, T221, .(T220, T221))
U15_agaa(T205, T206, T207, T208, T210, app54_out_agaa(T206, T207, T208, T210)) → app54_out_agaa(.(T205, T206), T207, T208, .(T205, T210))
U18_aaaga(T45, T115, T110, T22, T9, app54_out_agaa(T110, T22, T115, T9)) → p52_out_aaaga(T45, T115, T110, T22, T9)
U30_aa(T234, T235, T236, T9, p52_out_aaaga(.(T235, T245), X10, T251, T234, T9)) → qs1_out_aa(.(T234, .(T235, T236)), T9)
qs1_in_aa(.(T260, []), T9) → U31_aa(T260, T9, qs99_in_a(X9))
qs99_in_a([]) → qs99_out_a([])
U31_aa(T260, T9, qs99_out_a(X9)) → qs1_out_aa(.(T260, []), T9)
qs1_in_aa(.(T260, []), T9) → U32_aa(T260, T9, qs99_in_a(T263))
U32_aa(T260, T9, qs99_out_a(T263)) → U33_aa(T260, T9, qs99_in_a(X10))
U33_aa(T260, T9, qs99_out_a(X10)) → qs1_out_aa(.(T260, []), T9)
U32_aa(T260, T9, qs99_out_a(T263)) → U34_aa(T260, T9, T263, qs99_in_a(T268))
U34_aa(T260, T9, T263, qs99_out_a(T268)) → U35_aa(T260, T9, app54_in_gaga(T263, T260, T268, T9))
app54_in_gaga(.(T205, T206), T207, T208, .(T205, T210)) → U15_gaga(T205, T206, T207, T208, T210, app54_in_gaga(T206, T207, T208, T210))
app54_in_gaga([], T220, T221, .(T220, T221)) → app54_out_gaga([], T220, T221, .(T220, T221))
U15_gaga(T205, T206, T207, T208, T210, app54_out_gaga(T206, T207, T208, T210)) → app54_out_gaga(.(T205, T206), T207, T208, .(T205, T210))
U35_aa(T260, T9, app54_out_gaga(T263, T260, T268, T9)) → qs1_out_aa(.(T260, []), T9)
qs1_in_aa([], []) → qs1_out_aa([], [])
U22_aa(T22, T23, T24, T9, qs1_out_aa(.(T23, T44), X9)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U21_aa(T22, T23, T24, T9, part20_out_gaaa(T22, T24, T44, T45)) → U23_aa(T22, T23, T24, T9, T45, qs1_in_aa(.(T23, T44), T110))
U23_aa(T22, T23, T24, T9, T45, qs1_out_aa(.(T23, T44), T110)) → U24_aa(T22, T23, T24, T9, p52_in_aaaga(T45, X10, T110, T22, T9))
U24_aa(T22, T23, T24, T9, p52_out_aaaga(T45, X10, T110, T22, T9)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U22_ga(T22, T23, T24, T9, qs1_out_aa(.(T23, T44), X9)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U21_ga(T22, T23, T24, T9, part20_out_ggaa(T22, T24, T44, T45)) → U23_ga(T22, T23, T24, T9, T45, qs1_in_aa(.(T23, T44), T110))
U23_ga(T22, T23, T24, T9, T45, qs1_out_aa(.(T23, T44), T110)) → U24_ga(T22, T23, T24, T9, p52_in_aaaga(T45, X10, T110, T22, T9))
U24_ga(T22, T23, T24, T9, p52_out_aaaga(T45, X10, T110, T22, T9)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
qs1_in_ga(.(T234, .(T235, T236)), T9) → U25_ga(T234, T235, T236, T9, le33_in_gg(T234, T235))
U25_ga(T234, T235, T236, T9, le33_out_gg(T234, T235)) → qs1_out_ga(.(T234, .(T235, T236)), T9)
U25_ga(T234, T235, T236, T9, le33_out_gg(T234, T235)) → U26_ga(T234, T235, T236, T9, part20_in_ggaa(T234, T236, X431, X432))
U26_ga(T234, T235, T236, T9, part20_out_ggaa(T234, T236, X431, X432)) → qs1_out_ga(.(T234, .(T235, T236)), T9)
U25_ga(T234, T235, T236, T9, le33_out_gg(T234, T235)) → U27_ga(T234, T235, T236, T9, part20_in_ggaa(T234, T236, T244, T245))
U27_ga(T234, T235, T236, T9, part20_out_ggaa(T234, T236, T244, T245)) → U28_ga(T234, T235, T236, T9, qs53_in_aa(T244, X9))
U28_ga(T234, T235, T236, T9, qs53_out_aa(T244, X9)) → qs1_out_ga(.(T234, .(T235, T236)), T9)
U27_ga(T234, T235, T236, T9, part20_out_ggaa(T234, T236, T244, T245)) → U29_ga(T234, T235, T236, T9, T245, qs53_in_aa(T244, T251))
U29_ga(T234, T235, T236, T9, T245, qs53_out_aa(T244, T251)) → U30_ga(T234, T235, T236, T9, p52_in_aaaga(.(T235, T245), X10, T251, T234, T9))
U30_ga(T234, T235, T236, T9, p52_out_aaaga(.(T235, T245), X10, T251, T234, T9)) → qs1_out_ga(.(T234, .(T235, T236)), T9)
qs1_in_ga(.(T260, []), T9) → U31_ga(T260, T9, qs99_in_a(X9))
U31_ga(T260, T9, qs99_out_a(X9)) → qs1_out_ga(.(T260, []), T9)
qs1_in_ga(.(T260, []), T9) → U32_ga(T260, T9, qs99_in_a(T263))
U32_ga(T260, T9, qs99_out_a(T263)) → U33_ga(T260, T9, qs99_in_a(X10))
U33_ga(T260, T9, qs99_out_a(X10)) → qs1_out_ga(.(T260, []), T9)
U32_ga(T260, T9, qs99_out_a(T263)) → U34_ga(T260, T9, T263, qs99_in_a(T268))
U34_ga(T260, T9, T263, qs99_out_a(T268)) → U35_ga(T260, T9, app54_in_ggga(T263, T260, T268, T9))
app54_in_ggga(.(T205, T206), T207, T208, .(T205, T210)) → U15_ggga(T205, T206, T207, T208, T210, app54_in_ggga(T206, T207, T208, T210))
app54_in_ggga([], T220, T221, .(T220, T221)) → app54_out_ggga([], T220, T221, .(T220, T221))
U15_ggga(T205, T206, T207, T208, T210, app54_out_ggga(T206, T207, T208, T210)) → app54_out_ggga(.(T205, T206), T207, T208, .(T205, T210))
U35_ga(T260, T9, app54_out_ggga(T263, T260, T268, T9)) → qs1_out_ga(.(T260, []), T9)
qs1_in_ga([], []) → qs1_out_ga([], [])
APP54_IN_GGGA(.(T205, T206), T207, T208, .(T205, T210)) → APP54_IN_GGGA(T206, T207, T208, T210)
qs1_in_ga(.(T22, .(T23, T24)), T9) → U19_ga(T22, T23, T24, T9, gt10_in_gg(T22, T23))
gt10_in_gg(s(T37), s(T38)) → U1_gg(T37, T38, gt10_in_gg(T37, T38))
gt10_in_gg(s(0), 0) → gt10_out_gg(s(0), 0)
U1_gg(T37, T38, gt10_out_gg(T37, T38)) → gt10_out_gg(s(T37), s(T38))
U19_ga(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U19_ga(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → U20_ga(T22, T23, T24, T9, part20_in_ggaa(T22, T24, X47, X48))
part20_in_ggaa(T61, .(T62, T63), .(T62, X119), X120) → U2_ggaa(T61, T62, T63, X119, X120, gt10_in_gg(T61, T62))
U2_ggaa(T61, T62, T63, X119, X120, gt10_out_gg(T61, T62)) → part20_out_ggaa(T61, .(T62, T63), .(T62, X119), X120)
U2_ggaa(T61, T62, T63, X119, X120, gt10_out_gg(T61, T62)) → U3_ggaa(T61, T62, T63, X119, X120, part20_in_ggaa(T61, T63, X119, X120))
part20_in_ggaa(T83, .(T84, T85), X170, .(T84, X171)) → U4_ggaa(T83, T84, T85, X170, X171, le33_in_gg(T83, T84))
le33_in_gg(s(T98), s(T99)) → U6_gg(T98, T99, le33_in_gg(T98, T99))
le33_in_gg(0, s(0)) → le33_out_gg(0, s(0))
le33_in_gg(0, 0) → le33_out_gg(0, 0)
U6_gg(T98, T99, le33_out_gg(T98, T99)) → le33_out_gg(s(T98), s(T99))
U4_ggaa(T83, T84, T85, X170, X171, le33_out_gg(T83, T84)) → part20_out_ggaa(T83, .(T84, T85), X170, .(T84, X171))
U4_ggaa(T83, T84, T85, X170, X171, le33_out_gg(T83, T84)) → U5_ggaa(T83, T84, T85, X170, X171, part20_in_ggaa(T83, T85, X170, X171))
part20_in_ggaa(T107, [], [], []) → part20_out_ggaa(T107, [], [], [])
U5_ggaa(T83, T84, T85, X170, X171, part20_out_ggaa(T83, T85, X170, X171)) → part20_out_ggaa(T83, .(T84, T85), X170, .(T84, X171))
U3_ggaa(T61, T62, T63, X119, X120, part20_out_ggaa(T61, T63, X119, X120)) → part20_out_ggaa(T61, .(T62, T63), .(T62, X119), X120)
U20_ga(T22, T23, T24, T9, part20_out_ggaa(T22, T24, X47, X48)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U19_ga(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → U21_ga(T22, T23, T24, T9, part20_in_ggaa(T22, T24, T44, T45))
U21_ga(T22, T23, T24, T9, part20_out_ggaa(T22, T24, T44, T45)) → U22_ga(T22, T23, T24, T9, qs1_in_aa(.(T23, T44), X9))
qs1_in_aa(.(T22, .(T23, T24)), T9) → U19_aa(T22, T23, T24, T9, gt10_in_aa(T22, T23))
gt10_in_aa(s(T37), s(T38)) → U1_aa(T37, T38, gt10_in_aa(T37, T38))
gt10_in_aa(s(0), 0) → gt10_out_aa(s(0), 0)
U1_aa(T37, T38, gt10_out_aa(T37, T38)) → gt10_out_aa(s(T37), s(T38))
U19_aa(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U19_aa(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → U20_aa(T22, T23, T24, T9, part20_in_gaaa(T22, T24, X47, X48))
part20_in_gaaa(T61, .(T62, T63), .(T62, X119), X120) → U2_gaaa(T61, T62, T63, X119, X120, gt10_in_ga(T61, T62))
gt10_in_ga(s(T37), s(T38)) → U1_ga(T37, T38, gt10_in_ga(T37, T38))
gt10_in_ga(s(0), 0) → gt10_out_ga(s(0), 0)
U1_ga(T37, T38, gt10_out_ga(T37, T38)) → gt10_out_ga(s(T37), s(T38))
U2_gaaa(T61, T62, T63, X119, X120, gt10_out_ga(T61, T62)) → part20_out_gaaa(T61, .(T62, T63), .(T62, X119), X120)
U2_gaaa(T61, T62, T63, X119, X120, gt10_out_ga(T61, T62)) → U3_gaaa(T61, T62, T63, X119, X120, part20_in_gaaa(T61, T63, X119, X120))
part20_in_gaaa(T83, .(T84, T85), X170, .(T84, X171)) → U4_gaaa(T83, T84, T85, X170, X171, le33_in_ga(T83, T84))
le33_in_ga(s(T98), s(T99)) → U6_ga(T98, T99, le33_in_ga(T98, T99))
le33_in_ga(0, s(0)) → le33_out_ga(0, s(0))
le33_in_ga(0, 0) → le33_out_ga(0, 0)
U6_ga(T98, T99, le33_out_ga(T98, T99)) → le33_out_ga(s(T98), s(T99))
U4_gaaa(T83, T84, T85, X170, X171, le33_out_ga(T83, T84)) → part20_out_gaaa(T83, .(T84, T85), X170, .(T84, X171))
U4_gaaa(T83, T84, T85, X170, X171, le33_out_ga(T83, T84)) → U5_gaaa(T83, T84, T85, X170, X171, part20_in_gaaa(T83, T85, X170, X171))
part20_in_gaaa(T107, [], [], []) → part20_out_gaaa(T107, [], [], [])
U5_gaaa(T83, T84, T85, X170, X171, part20_out_gaaa(T83, T85, X170, X171)) → part20_out_gaaa(T83, .(T84, T85), X170, .(T84, X171))
U3_gaaa(T61, T62, T63, X119, X120, part20_out_gaaa(T61, T63, X119, X120)) → part20_out_gaaa(T61, .(T62, T63), .(T62, X119), X120)
U20_aa(T22, T23, T24, T9, part20_out_gaaa(T22, T24, X47, X48)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U19_aa(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → U21_aa(T22, T23, T24, T9, part20_in_gaaa(T22, T24, T44, T45))
U21_aa(T22, T23, T24, T9, part20_out_gaaa(T22, T24, T44, T45)) → U22_aa(T22, T23, T24, T9, qs1_in_aa(.(T23, T44), X9))
qs1_in_aa(.(T234, .(T235, T236)), T9) → U25_aa(T234, T235, T236, T9, le33_in_aa(T234, T235))
le33_in_aa(s(T98), s(T99)) → U6_aa(T98, T99, le33_in_aa(T98, T99))
le33_in_aa(0, s(0)) → le33_out_aa(0, s(0))
le33_in_aa(0, 0) → le33_out_aa(0, 0)
U6_aa(T98, T99, le33_out_aa(T98, T99)) → le33_out_aa(s(T98), s(T99))
U25_aa(T234, T235, T236, T9, le33_out_aa(T234, T235)) → qs1_out_aa(.(T234, .(T235, T236)), T9)
U25_aa(T234, T235, T236, T9, le33_out_aa(T234, T235)) → U26_aa(T234, T235, T236, T9, part20_in_gaaa(T234, T236, X431, X432))
U26_aa(T234, T235, T236, T9, part20_out_gaaa(T234, T236, X431, X432)) → qs1_out_aa(.(T234, .(T235, T236)), T9)
U25_aa(T234, T235, T236, T9, le33_out_aa(T234, T235)) → U27_aa(T234, T235, T236, T9, part20_in_gaaa(T234, T236, T244, T245))
U27_aa(T234, T235, T236, T9, part20_out_gaaa(T234, T236, T244, T245)) → U28_aa(T234, T235, T236, T9, qs53_in_aa(T244, X9))
qs53_in_aa(.(T126, T127), X269) → U7_aa(T126, T127, X269, part20_in_aaaa(T126, T127, X265, X266))
part20_in_aaaa(T61, .(T62, T63), .(T62, X119), X120) → U2_aaaa(T61, T62, T63, X119, X120, gt10_in_aa(T61, T62))
U2_aaaa(T61, T62, T63, X119, X120, gt10_out_aa(T61, T62)) → part20_out_aaaa(T61, .(T62, T63), .(T62, X119), X120)
U2_aaaa(T61, T62, T63, X119, X120, gt10_out_aa(T61, T62)) → U3_aaaa(T61, T62, T63, X119, X120, part20_in_gaaa(T61, T63, X119, X120))
U3_aaaa(T61, T62, T63, X119, X120, part20_out_gaaa(T61, T63, X119, X120)) → part20_out_aaaa(T61, .(T62, T63), .(T62, X119), X120)
part20_in_aaaa(T83, .(T84, T85), X170, .(T84, X171)) → U4_aaaa(T83, T84, T85, X170, X171, le33_in_aa(T83, T84))
U4_aaaa(T83, T84, T85, X170, X171, le33_out_aa(T83, T84)) → part20_out_aaaa(T83, .(T84, T85), X170, .(T84, X171))
U4_aaaa(T83, T84, T85, X170, X171, le33_out_aa(T83, T84)) → U5_aaaa(T83, T84, T85, X170, X171, part20_in_gaaa(T83, T85, X170, X171))
U5_aaaa(T83, T84, T85, X170, X171, part20_out_gaaa(T83, T85, X170, X171)) → part20_out_aaaa(T83, .(T84, T85), X170, .(T84, X171))
part20_in_aaaa(T107, [], [], []) → part20_out_aaaa(T107, [], [], [])
U7_aa(T126, T127, X269, part20_out_aaaa(T126, T127, X265, X266)) → qs53_out_aa(.(T126, T127), X269)
qs53_in_aa(.(T126, T127), X269) → U8_aa(T126, T127, X269, part20_in_aaaa(T126, T127, T131, T132))
U8_aa(T126, T127, X269, part20_out_aaaa(T126, T127, T131, T132)) → U9_aa(T126, T127, X269, qs53_in_aa(T131, X267))
qs53_in_aa([], []) → qs53_out_aa([], [])
U9_aa(T126, T127, X269, qs53_out_aa(T131, X267)) → qs53_out_aa(.(T126, T127), X269)
U8_aa(T126, T127, X269, part20_out_aaaa(T126, T127, T131, T132)) → U10_aa(T126, T127, X269, T132, qs53_in_aa(T131, T138))
U10_aa(T126, T127, X269, T132, qs53_out_aa(T131, T138)) → U11_aa(T126, T127, X269, qs53_in_aa(T132, X268))
U11_aa(T126, T127, X269, qs53_out_aa(T132, X268)) → qs53_out_aa(.(T126, T127), X269)
U10_aa(T126, T127, X269, T132, qs53_out_aa(T131, T138)) → U12_aa(T126, T127, X269, T138, qs53_in_aa(T132, T143))
U12_aa(T126, T127, X269, T138, qs53_out_aa(T132, T143)) → U13_aa(T126, T127, X269, app65_in_aaaa(T138, T126, T143, X269))
app65_in_aaaa(.(T166, T167), T168, T169, .(T166, X348)) → U14_aaaa(T166, T167, T168, T169, X348, app65_in_aaaa(T167, T168, T169, X348))
app65_in_aaaa([], T178, T179, .(T178, T179)) → app65_out_aaaa([], T178, T179, .(T178, T179))
U14_aaaa(T166, T167, T168, T169, X348, app65_out_aaaa(T167, T168, T169, X348)) → app65_out_aaaa(.(T166, T167), T168, T169, .(T166, X348))
U13_aa(T126, T127, X269, app65_out_aaaa(T138, T126, T143, X269)) → qs53_out_aa(.(T126, T127), X269)
U28_aa(T234, T235, T236, T9, qs53_out_aa(T244, X9)) → qs1_out_aa(.(T234, .(T235, T236)), T9)
U27_aa(T234, T235, T236, T9, part20_out_gaaa(T234, T236, T244, T245)) → U29_aa(T234, T235, T236, T9, T245, qs53_in_aa(T244, T251))
U29_aa(T234, T235, T236, T9, T245, qs53_out_aa(T244, T251)) → U30_aa(T234, T235, T236, T9, p52_in_aaaga(.(T235, T245), X10, T251, T234, T9))
p52_in_aaaga(T45, X10, T110, T22, T9) → U16_aaaga(T45, X10, T110, T22, T9, qs53_in_aa(T45, X10))
U16_aaaga(T45, X10, T110, T22, T9, qs53_out_aa(T45, X10)) → p52_out_aaaga(T45, X10, T110, T22, T9)
p52_in_aaaga(T45, T115, T110, T22, T9) → U17_aaaga(T45, T115, T110, T22, T9, qs53_in_aa(T45, T115))
U17_aaaga(T45, T115, T110, T22, T9, qs53_out_aa(T45, T115)) → U18_aaaga(T45, T115, T110, T22, T9, app54_in_agaa(T110, T22, T115, T9))
app54_in_agaa(.(T205, T206), T207, T208, .(T205, T210)) → U15_agaa(T205, T206, T207, T208, T210, app54_in_agaa(T206, T207, T208, T210))
app54_in_agaa([], T220, T221, .(T220, T221)) → app54_out_agaa([], T220, T221, .(T220, T221))
U15_agaa(T205, T206, T207, T208, T210, app54_out_agaa(T206, T207, T208, T210)) → app54_out_agaa(.(T205, T206), T207, T208, .(T205, T210))
U18_aaaga(T45, T115, T110, T22, T9, app54_out_agaa(T110, T22, T115, T9)) → p52_out_aaaga(T45, T115, T110, T22, T9)
U30_aa(T234, T235, T236, T9, p52_out_aaaga(.(T235, T245), X10, T251, T234, T9)) → qs1_out_aa(.(T234, .(T235, T236)), T9)
qs1_in_aa(.(T260, []), T9) → U31_aa(T260, T9, qs99_in_a(X9))
qs99_in_a([]) → qs99_out_a([])
U31_aa(T260, T9, qs99_out_a(X9)) → qs1_out_aa(.(T260, []), T9)
qs1_in_aa(.(T260, []), T9) → U32_aa(T260, T9, qs99_in_a(T263))
U32_aa(T260, T9, qs99_out_a(T263)) → U33_aa(T260, T9, qs99_in_a(X10))
U33_aa(T260, T9, qs99_out_a(X10)) → qs1_out_aa(.(T260, []), T9)
U32_aa(T260, T9, qs99_out_a(T263)) → U34_aa(T260, T9, T263, qs99_in_a(T268))
U34_aa(T260, T9, T263, qs99_out_a(T268)) → U35_aa(T260, T9, app54_in_gaga(T263, T260, T268, T9))
app54_in_gaga(.(T205, T206), T207, T208, .(T205, T210)) → U15_gaga(T205, T206, T207, T208, T210, app54_in_gaga(T206, T207, T208, T210))
app54_in_gaga([], T220, T221, .(T220, T221)) → app54_out_gaga([], T220, T221, .(T220, T221))
U15_gaga(T205, T206, T207, T208, T210, app54_out_gaga(T206, T207, T208, T210)) → app54_out_gaga(.(T205, T206), T207, T208, .(T205, T210))
U35_aa(T260, T9, app54_out_gaga(T263, T260, T268, T9)) → qs1_out_aa(.(T260, []), T9)
qs1_in_aa([], []) → qs1_out_aa([], [])
U22_aa(T22, T23, T24, T9, qs1_out_aa(.(T23, T44), X9)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U21_aa(T22, T23, T24, T9, part20_out_gaaa(T22, T24, T44, T45)) → U23_aa(T22, T23, T24, T9, T45, qs1_in_aa(.(T23, T44), T110))
U23_aa(T22, T23, T24, T9, T45, qs1_out_aa(.(T23, T44), T110)) → U24_aa(T22, T23, T24, T9, p52_in_aaaga(T45, X10, T110, T22, T9))
U24_aa(T22, T23, T24, T9, p52_out_aaaga(T45, X10, T110, T22, T9)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U22_ga(T22, T23, T24, T9, qs1_out_aa(.(T23, T44), X9)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U21_ga(T22, T23, T24, T9, part20_out_ggaa(T22, T24, T44, T45)) → U23_ga(T22, T23, T24, T9, T45, qs1_in_aa(.(T23, T44), T110))
U23_ga(T22, T23, T24, T9, T45, qs1_out_aa(.(T23, T44), T110)) → U24_ga(T22, T23, T24, T9, p52_in_aaaga(T45, X10, T110, T22, T9))
U24_ga(T22, T23, T24, T9, p52_out_aaaga(T45, X10, T110, T22, T9)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
qs1_in_ga(.(T234, .(T235, T236)), T9) → U25_ga(T234, T235, T236, T9, le33_in_gg(T234, T235))
U25_ga(T234, T235, T236, T9, le33_out_gg(T234, T235)) → qs1_out_ga(.(T234, .(T235, T236)), T9)
U25_ga(T234, T235, T236, T9, le33_out_gg(T234, T235)) → U26_ga(T234, T235, T236, T9, part20_in_ggaa(T234, T236, X431, X432))
U26_ga(T234, T235, T236, T9, part20_out_ggaa(T234, T236, X431, X432)) → qs1_out_ga(.(T234, .(T235, T236)), T9)
U25_ga(T234, T235, T236, T9, le33_out_gg(T234, T235)) → U27_ga(T234, T235, T236, T9, part20_in_ggaa(T234, T236, T244, T245))
U27_ga(T234, T235, T236, T9, part20_out_ggaa(T234, T236, T244, T245)) → U28_ga(T234, T235, T236, T9, qs53_in_aa(T244, X9))
U28_ga(T234, T235, T236, T9, qs53_out_aa(T244, X9)) → qs1_out_ga(.(T234, .(T235, T236)), T9)
U27_ga(T234, T235, T236, T9, part20_out_ggaa(T234, T236, T244, T245)) → U29_ga(T234, T235, T236, T9, T245, qs53_in_aa(T244, T251))
U29_ga(T234, T235, T236, T9, T245, qs53_out_aa(T244, T251)) → U30_ga(T234, T235, T236, T9, p52_in_aaaga(.(T235, T245), X10, T251, T234, T9))
U30_ga(T234, T235, T236, T9, p52_out_aaaga(.(T235, T245), X10, T251, T234, T9)) → qs1_out_ga(.(T234, .(T235, T236)), T9)
qs1_in_ga(.(T260, []), T9) → U31_ga(T260, T9, qs99_in_a(X9))
U31_ga(T260, T9, qs99_out_a(X9)) → qs1_out_ga(.(T260, []), T9)
qs1_in_ga(.(T260, []), T9) → U32_ga(T260, T9, qs99_in_a(T263))
U32_ga(T260, T9, qs99_out_a(T263)) → U33_ga(T260, T9, qs99_in_a(X10))
U33_ga(T260, T9, qs99_out_a(X10)) → qs1_out_ga(.(T260, []), T9)
U32_ga(T260, T9, qs99_out_a(T263)) → U34_ga(T260, T9, T263, qs99_in_a(T268))
U34_ga(T260, T9, T263, qs99_out_a(T268)) → U35_ga(T260, T9, app54_in_ggga(T263, T260, T268, T9))
app54_in_ggga(.(T205, T206), T207, T208, .(T205, T210)) → U15_ggga(T205, T206, T207, T208, T210, app54_in_ggga(T206, T207, T208, T210))
app54_in_ggga([], T220, T221, .(T220, T221)) → app54_out_ggga([], T220, T221, .(T220, T221))
U15_ggga(T205, T206, T207, T208, T210, app54_out_ggga(T206, T207, T208, T210)) → app54_out_ggga(.(T205, T206), T207, T208, .(T205, T210))
U35_ga(T260, T9, app54_out_ggga(T263, T260, T268, T9)) → qs1_out_ga(.(T260, []), T9)
qs1_in_ga([], []) → qs1_out_ga([], [])
APP54_IN_GGGA(.(T205, T206), T207, T208, .(T205, T210)) → APP54_IN_GGGA(T206, T207, T208, T210)
APP54_IN_GGGA(.(T205, T206), T207, T208) → APP54_IN_GGGA(T206, T207, T208)
From the DPs we obtained the following set of size-change graphs:
APP54_IN_GAGA(.(T205, T206), T207, T208, .(T205, T210)) → APP54_IN_GAGA(T206, T207, T208, T210)
qs1_in_ga(.(T22, .(T23, T24)), T9) → U19_ga(T22, T23, T24, T9, gt10_in_gg(T22, T23))
gt10_in_gg(s(T37), s(T38)) → U1_gg(T37, T38, gt10_in_gg(T37, T38))
gt10_in_gg(s(0), 0) → gt10_out_gg(s(0), 0)
U1_gg(T37, T38, gt10_out_gg(T37, T38)) → gt10_out_gg(s(T37), s(T38))
U19_ga(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U19_ga(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → U20_ga(T22, T23, T24, T9, part20_in_ggaa(T22, T24, X47, X48))
part20_in_ggaa(T61, .(T62, T63), .(T62, X119), X120) → U2_ggaa(T61, T62, T63, X119, X120, gt10_in_gg(T61, T62))
U2_ggaa(T61, T62, T63, X119, X120, gt10_out_gg(T61, T62)) → part20_out_ggaa(T61, .(T62, T63), .(T62, X119), X120)
U2_ggaa(T61, T62, T63, X119, X120, gt10_out_gg(T61, T62)) → U3_ggaa(T61, T62, T63, X119, X120, part20_in_ggaa(T61, T63, X119, X120))
part20_in_ggaa(T83, .(T84, T85), X170, .(T84, X171)) → U4_ggaa(T83, T84, T85, X170, X171, le33_in_gg(T83, T84))
le33_in_gg(s(T98), s(T99)) → U6_gg(T98, T99, le33_in_gg(T98, T99))
le33_in_gg(0, s(0)) → le33_out_gg(0, s(0))
le33_in_gg(0, 0) → le33_out_gg(0, 0)
U6_gg(T98, T99, le33_out_gg(T98, T99)) → le33_out_gg(s(T98), s(T99))
U4_ggaa(T83, T84, T85, X170, X171, le33_out_gg(T83, T84)) → part20_out_ggaa(T83, .(T84, T85), X170, .(T84, X171))
U4_ggaa(T83, T84, T85, X170, X171, le33_out_gg(T83, T84)) → U5_ggaa(T83, T84, T85, X170, X171, part20_in_ggaa(T83, T85, X170, X171))
part20_in_ggaa(T107, [], [], []) → part20_out_ggaa(T107, [], [], [])
U5_ggaa(T83, T84, T85, X170, X171, part20_out_ggaa(T83, T85, X170, X171)) → part20_out_ggaa(T83, .(T84, T85), X170, .(T84, X171))
U3_ggaa(T61, T62, T63, X119, X120, part20_out_ggaa(T61, T63, X119, X120)) → part20_out_ggaa(T61, .(T62, T63), .(T62, X119), X120)
U20_ga(T22, T23, T24, T9, part20_out_ggaa(T22, T24, X47, X48)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U19_ga(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → U21_ga(T22, T23, T24, T9, part20_in_ggaa(T22, T24, T44, T45))
U21_ga(T22, T23, T24, T9, part20_out_ggaa(T22, T24, T44, T45)) → U22_ga(T22, T23, T24, T9, qs1_in_aa(.(T23, T44), X9))
qs1_in_aa(.(T22, .(T23, T24)), T9) → U19_aa(T22, T23, T24, T9, gt10_in_aa(T22, T23))
gt10_in_aa(s(T37), s(T38)) → U1_aa(T37, T38, gt10_in_aa(T37, T38))
gt10_in_aa(s(0), 0) → gt10_out_aa(s(0), 0)
U1_aa(T37, T38, gt10_out_aa(T37, T38)) → gt10_out_aa(s(T37), s(T38))
U19_aa(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U19_aa(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → U20_aa(T22, T23, T24, T9, part20_in_gaaa(T22, T24, X47, X48))
part20_in_gaaa(T61, .(T62, T63), .(T62, X119), X120) → U2_gaaa(T61, T62, T63, X119, X120, gt10_in_ga(T61, T62))
gt10_in_ga(s(T37), s(T38)) → U1_ga(T37, T38, gt10_in_ga(T37, T38))
gt10_in_ga(s(0), 0) → gt10_out_ga(s(0), 0)
U1_ga(T37, T38, gt10_out_ga(T37, T38)) → gt10_out_ga(s(T37), s(T38))
U2_gaaa(T61, T62, T63, X119, X120, gt10_out_ga(T61, T62)) → part20_out_gaaa(T61, .(T62, T63), .(T62, X119), X120)
U2_gaaa(T61, T62, T63, X119, X120, gt10_out_ga(T61, T62)) → U3_gaaa(T61, T62, T63, X119, X120, part20_in_gaaa(T61, T63, X119, X120))
part20_in_gaaa(T83, .(T84, T85), X170, .(T84, X171)) → U4_gaaa(T83, T84, T85, X170, X171, le33_in_ga(T83, T84))
le33_in_ga(s(T98), s(T99)) → U6_ga(T98, T99, le33_in_ga(T98, T99))
le33_in_ga(0, s(0)) → le33_out_ga(0, s(0))
le33_in_ga(0, 0) → le33_out_ga(0, 0)
U6_ga(T98, T99, le33_out_ga(T98, T99)) → le33_out_ga(s(T98), s(T99))
U4_gaaa(T83, T84, T85, X170, X171, le33_out_ga(T83, T84)) → part20_out_gaaa(T83, .(T84, T85), X170, .(T84, X171))
U4_gaaa(T83, T84, T85, X170, X171, le33_out_ga(T83, T84)) → U5_gaaa(T83, T84, T85, X170, X171, part20_in_gaaa(T83, T85, X170, X171))
part20_in_gaaa(T107, [], [], []) → part20_out_gaaa(T107, [], [], [])
U5_gaaa(T83, T84, T85, X170, X171, part20_out_gaaa(T83, T85, X170, X171)) → part20_out_gaaa(T83, .(T84, T85), X170, .(T84, X171))
U3_gaaa(T61, T62, T63, X119, X120, part20_out_gaaa(T61, T63, X119, X120)) → part20_out_gaaa(T61, .(T62, T63), .(T62, X119), X120)
U20_aa(T22, T23, T24, T9, part20_out_gaaa(T22, T24, X47, X48)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U19_aa(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → U21_aa(T22, T23, T24, T9, part20_in_gaaa(T22, T24, T44, T45))
U21_aa(T22, T23, T24, T9, part20_out_gaaa(T22, T24, T44, T45)) → U22_aa(T22, T23, T24, T9, qs1_in_aa(.(T23, T44), X9))
qs1_in_aa(.(T234, .(T235, T236)), T9) → U25_aa(T234, T235, T236, T9, le33_in_aa(T234, T235))
le33_in_aa(s(T98), s(T99)) → U6_aa(T98, T99, le33_in_aa(T98, T99))
le33_in_aa(0, s(0)) → le33_out_aa(0, s(0))
le33_in_aa(0, 0) → le33_out_aa(0, 0)
U6_aa(T98, T99, le33_out_aa(T98, T99)) → le33_out_aa(s(T98), s(T99))
U25_aa(T234, T235, T236, T9, le33_out_aa(T234, T235)) → qs1_out_aa(.(T234, .(T235, T236)), T9)
U25_aa(T234, T235, T236, T9, le33_out_aa(T234, T235)) → U26_aa(T234, T235, T236, T9, part20_in_gaaa(T234, T236, X431, X432))
U26_aa(T234, T235, T236, T9, part20_out_gaaa(T234, T236, X431, X432)) → qs1_out_aa(.(T234, .(T235, T236)), T9)
U25_aa(T234, T235, T236, T9, le33_out_aa(T234, T235)) → U27_aa(T234, T235, T236, T9, part20_in_gaaa(T234, T236, T244, T245))
U27_aa(T234, T235, T236, T9, part20_out_gaaa(T234, T236, T244, T245)) → U28_aa(T234, T235, T236, T9, qs53_in_aa(T244, X9))
qs53_in_aa(.(T126, T127), X269) → U7_aa(T126, T127, X269, part20_in_aaaa(T126, T127, X265, X266))
part20_in_aaaa(T61, .(T62, T63), .(T62, X119), X120) → U2_aaaa(T61, T62, T63, X119, X120, gt10_in_aa(T61, T62))
U2_aaaa(T61, T62, T63, X119, X120, gt10_out_aa(T61, T62)) → part20_out_aaaa(T61, .(T62, T63), .(T62, X119), X120)
U2_aaaa(T61, T62, T63, X119, X120, gt10_out_aa(T61, T62)) → U3_aaaa(T61, T62, T63, X119, X120, part20_in_gaaa(T61, T63, X119, X120))
U3_aaaa(T61, T62, T63, X119, X120, part20_out_gaaa(T61, T63, X119, X120)) → part20_out_aaaa(T61, .(T62, T63), .(T62, X119), X120)
part20_in_aaaa(T83, .(T84, T85), X170, .(T84, X171)) → U4_aaaa(T83, T84, T85, X170, X171, le33_in_aa(T83, T84))
U4_aaaa(T83, T84, T85, X170, X171, le33_out_aa(T83, T84)) → part20_out_aaaa(T83, .(T84, T85), X170, .(T84, X171))
U4_aaaa(T83, T84, T85, X170, X171, le33_out_aa(T83, T84)) → U5_aaaa(T83, T84, T85, X170, X171, part20_in_gaaa(T83, T85, X170, X171))
U5_aaaa(T83, T84, T85, X170, X171, part20_out_gaaa(T83, T85, X170, X171)) → part20_out_aaaa(T83, .(T84, T85), X170, .(T84, X171))
part20_in_aaaa(T107, [], [], []) → part20_out_aaaa(T107, [], [], [])
U7_aa(T126, T127, X269, part20_out_aaaa(T126, T127, X265, X266)) → qs53_out_aa(.(T126, T127), X269)
qs53_in_aa(.(T126, T127), X269) → U8_aa(T126, T127, X269, part20_in_aaaa(T126, T127, T131, T132))
U8_aa(T126, T127, X269, part20_out_aaaa(T126, T127, T131, T132)) → U9_aa(T126, T127, X269, qs53_in_aa(T131, X267))
qs53_in_aa([], []) → qs53_out_aa([], [])
U9_aa(T126, T127, X269, qs53_out_aa(T131, X267)) → qs53_out_aa(.(T126, T127), X269)
U8_aa(T126, T127, X269, part20_out_aaaa(T126, T127, T131, T132)) → U10_aa(T126, T127, X269, T132, qs53_in_aa(T131, T138))
U10_aa(T126, T127, X269, T132, qs53_out_aa(T131, T138)) → U11_aa(T126, T127, X269, qs53_in_aa(T132, X268))
U11_aa(T126, T127, X269, qs53_out_aa(T132, X268)) → qs53_out_aa(.(T126, T127), X269)
U10_aa(T126, T127, X269, T132, qs53_out_aa(T131, T138)) → U12_aa(T126, T127, X269, T138, qs53_in_aa(T132, T143))
U12_aa(T126, T127, X269, T138, qs53_out_aa(T132, T143)) → U13_aa(T126, T127, X269, app65_in_aaaa(T138, T126, T143, X269))
app65_in_aaaa(.(T166, T167), T168, T169, .(T166, X348)) → U14_aaaa(T166, T167, T168, T169, X348, app65_in_aaaa(T167, T168, T169, X348))
app65_in_aaaa([], T178, T179, .(T178, T179)) → app65_out_aaaa([], T178, T179, .(T178, T179))
U14_aaaa(T166, T167, T168, T169, X348, app65_out_aaaa(T167, T168, T169, X348)) → app65_out_aaaa(.(T166, T167), T168, T169, .(T166, X348))
U13_aa(T126, T127, X269, app65_out_aaaa(T138, T126, T143, X269)) → qs53_out_aa(.(T126, T127), X269)
U28_aa(T234, T235, T236, T9, qs53_out_aa(T244, X9)) → qs1_out_aa(.(T234, .(T235, T236)), T9)
U27_aa(T234, T235, T236, T9, part20_out_gaaa(T234, T236, T244, T245)) → U29_aa(T234, T235, T236, T9, T245, qs53_in_aa(T244, T251))
U29_aa(T234, T235, T236, T9, T245, qs53_out_aa(T244, T251)) → U30_aa(T234, T235, T236, T9, p52_in_aaaga(.(T235, T245), X10, T251, T234, T9))
p52_in_aaaga(T45, X10, T110, T22, T9) → U16_aaaga(T45, X10, T110, T22, T9, qs53_in_aa(T45, X10))
U16_aaaga(T45, X10, T110, T22, T9, qs53_out_aa(T45, X10)) → p52_out_aaaga(T45, X10, T110, T22, T9)
p52_in_aaaga(T45, T115, T110, T22, T9) → U17_aaaga(T45, T115, T110, T22, T9, qs53_in_aa(T45, T115))
U17_aaaga(T45, T115, T110, T22, T9, qs53_out_aa(T45, T115)) → U18_aaaga(T45, T115, T110, T22, T9, app54_in_agaa(T110, T22, T115, T9))
app54_in_agaa(.(T205, T206), T207, T208, .(T205, T210)) → U15_agaa(T205, T206, T207, T208, T210, app54_in_agaa(T206, T207, T208, T210))
app54_in_agaa([], T220, T221, .(T220, T221)) → app54_out_agaa([], T220, T221, .(T220, T221))
U15_agaa(T205, T206, T207, T208, T210, app54_out_agaa(T206, T207, T208, T210)) → app54_out_agaa(.(T205, T206), T207, T208, .(T205, T210))
U18_aaaga(T45, T115, T110, T22, T9, app54_out_agaa(T110, T22, T115, T9)) → p52_out_aaaga(T45, T115, T110, T22, T9)
U30_aa(T234, T235, T236, T9, p52_out_aaaga(.(T235, T245), X10, T251, T234, T9)) → qs1_out_aa(.(T234, .(T235, T236)), T9)
qs1_in_aa(.(T260, []), T9) → U31_aa(T260, T9, qs99_in_a(X9))
qs99_in_a([]) → qs99_out_a([])
U31_aa(T260, T9, qs99_out_a(X9)) → qs1_out_aa(.(T260, []), T9)
qs1_in_aa(.(T260, []), T9) → U32_aa(T260, T9, qs99_in_a(T263))
U32_aa(T260, T9, qs99_out_a(T263)) → U33_aa(T260, T9, qs99_in_a(X10))
U33_aa(T260, T9, qs99_out_a(X10)) → qs1_out_aa(.(T260, []), T9)
U32_aa(T260, T9, qs99_out_a(T263)) → U34_aa(T260, T9, T263, qs99_in_a(T268))
U34_aa(T260, T9, T263, qs99_out_a(T268)) → U35_aa(T260, T9, app54_in_gaga(T263, T260, T268, T9))
app54_in_gaga(.(T205, T206), T207, T208, .(T205, T210)) → U15_gaga(T205, T206, T207, T208, T210, app54_in_gaga(T206, T207, T208, T210))
app54_in_gaga([], T220, T221, .(T220, T221)) → app54_out_gaga([], T220, T221, .(T220, T221))
U15_gaga(T205, T206, T207, T208, T210, app54_out_gaga(T206, T207, T208, T210)) → app54_out_gaga(.(T205, T206), T207, T208, .(T205, T210))
U35_aa(T260, T9, app54_out_gaga(T263, T260, T268, T9)) → qs1_out_aa(.(T260, []), T9)
qs1_in_aa([], []) → qs1_out_aa([], [])
U22_aa(T22, T23, T24, T9, qs1_out_aa(.(T23, T44), X9)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U21_aa(T22, T23, T24, T9, part20_out_gaaa(T22, T24, T44, T45)) → U23_aa(T22, T23, T24, T9, T45, qs1_in_aa(.(T23, T44), T110))
U23_aa(T22, T23, T24, T9, T45, qs1_out_aa(.(T23, T44), T110)) → U24_aa(T22, T23, T24, T9, p52_in_aaaga(T45, X10, T110, T22, T9))
U24_aa(T22, T23, T24, T9, p52_out_aaaga(T45, X10, T110, T22, T9)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U22_ga(T22, T23, T24, T9, qs1_out_aa(.(T23, T44), X9)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U21_ga(T22, T23, T24, T9, part20_out_ggaa(T22, T24, T44, T45)) → U23_ga(T22, T23, T24, T9, T45, qs1_in_aa(.(T23, T44), T110))
U23_ga(T22, T23, T24, T9, T45, qs1_out_aa(.(T23, T44), T110)) → U24_ga(T22, T23, T24, T9, p52_in_aaaga(T45, X10, T110, T22, T9))
U24_ga(T22, T23, T24, T9, p52_out_aaaga(T45, X10, T110, T22, T9)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
qs1_in_ga(.(T234, .(T235, T236)), T9) → U25_ga(T234, T235, T236, T9, le33_in_gg(T234, T235))
U25_ga(T234, T235, T236, T9, le33_out_gg(T234, T235)) → qs1_out_ga(.(T234, .(T235, T236)), T9)
U25_ga(T234, T235, T236, T9, le33_out_gg(T234, T235)) → U26_ga(T234, T235, T236, T9, part20_in_ggaa(T234, T236, X431, X432))
U26_ga(T234, T235, T236, T9, part20_out_ggaa(T234, T236, X431, X432)) → qs1_out_ga(.(T234, .(T235, T236)), T9)
U25_ga(T234, T235, T236, T9, le33_out_gg(T234, T235)) → U27_ga(T234, T235, T236, T9, part20_in_ggaa(T234, T236, T244, T245))
U27_ga(T234, T235, T236, T9, part20_out_ggaa(T234, T236, T244, T245)) → U28_ga(T234, T235, T236, T9, qs53_in_aa(T244, X9))
U28_ga(T234, T235, T236, T9, qs53_out_aa(T244, X9)) → qs1_out_ga(.(T234, .(T235, T236)), T9)
U27_ga(T234, T235, T236, T9, part20_out_ggaa(T234, T236, T244, T245)) → U29_ga(T234, T235, T236, T9, T245, qs53_in_aa(T244, T251))
U29_ga(T234, T235, T236, T9, T245, qs53_out_aa(T244, T251)) → U30_ga(T234, T235, T236, T9, p52_in_aaaga(.(T235, T245), X10, T251, T234, T9))
U30_ga(T234, T235, T236, T9, p52_out_aaaga(.(T235, T245), X10, T251, T234, T9)) → qs1_out_ga(.(T234, .(T235, T236)), T9)
qs1_in_ga(.(T260, []), T9) → U31_ga(T260, T9, qs99_in_a(X9))
U31_ga(T260, T9, qs99_out_a(X9)) → qs1_out_ga(.(T260, []), T9)
qs1_in_ga(.(T260, []), T9) → U32_ga(T260, T9, qs99_in_a(T263))
U32_ga(T260, T9, qs99_out_a(T263)) → U33_ga(T260, T9, qs99_in_a(X10))
U33_ga(T260, T9, qs99_out_a(X10)) → qs1_out_ga(.(T260, []), T9)
U32_ga(T260, T9, qs99_out_a(T263)) → U34_ga(T260, T9, T263, qs99_in_a(T268))
U34_ga(T260, T9, T263, qs99_out_a(T268)) → U35_ga(T260, T9, app54_in_ggga(T263, T260, T268, T9))
app54_in_ggga(.(T205, T206), T207, T208, .(T205, T210)) → U15_ggga(T205, T206, T207, T208, T210, app54_in_ggga(T206, T207, T208, T210))
app54_in_ggga([], T220, T221, .(T220, T221)) → app54_out_ggga([], T220, T221, .(T220, T221))
U15_ggga(T205, T206, T207, T208, T210, app54_out_ggga(T206, T207, T208, T210)) → app54_out_ggga(.(T205, T206), T207, T208, .(T205, T210))
U35_ga(T260, T9, app54_out_ggga(T263, T260, T268, T9)) → qs1_out_ga(.(T260, []), T9)
qs1_in_ga([], []) → qs1_out_ga([], [])
APP54_IN_GAGA(.(T205, T206), T207, T208, .(T205, T210)) → APP54_IN_GAGA(T206, T207, T208, T210)
APP54_IN_GAGA(.(T205, T206), T208) → APP54_IN_GAGA(T206, T208)
From the DPs we obtained the following set of size-change graphs:
APP54_IN_AGAA(.(T205, T206), T207, T208, .(T205, T210)) → APP54_IN_AGAA(T206, T207, T208, T210)
qs1_in_ga(.(T22, .(T23, T24)), T9) → U19_ga(T22, T23, T24, T9, gt10_in_gg(T22, T23))
gt10_in_gg(s(T37), s(T38)) → U1_gg(T37, T38, gt10_in_gg(T37, T38))
gt10_in_gg(s(0), 0) → gt10_out_gg(s(0), 0)
U1_gg(T37, T38, gt10_out_gg(T37, T38)) → gt10_out_gg(s(T37), s(T38))
U19_ga(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U19_ga(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → U20_ga(T22, T23, T24, T9, part20_in_ggaa(T22, T24, X47, X48))
part20_in_ggaa(T61, .(T62, T63), .(T62, X119), X120) → U2_ggaa(T61, T62, T63, X119, X120, gt10_in_gg(T61, T62))
U2_ggaa(T61, T62, T63, X119, X120, gt10_out_gg(T61, T62)) → part20_out_ggaa(T61, .(T62, T63), .(T62, X119), X120)
U2_ggaa(T61, T62, T63, X119, X120, gt10_out_gg(T61, T62)) → U3_ggaa(T61, T62, T63, X119, X120, part20_in_ggaa(T61, T63, X119, X120))
part20_in_ggaa(T83, .(T84, T85), X170, .(T84, X171)) → U4_ggaa(T83, T84, T85, X170, X171, le33_in_gg(T83, T84))
le33_in_gg(s(T98), s(T99)) → U6_gg(T98, T99, le33_in_gg(T98, T99))
le33_in_gg(0, s(0)) → le33_out_gg(0, s(0))
le33_in_gg(0, 0) → le33_out_gg(0, 0)
U6_gg(T98, T99, le33_out_gg(T98, T99)) → le33_out_gg(s(T98), s(T99))
U4_ggaa(T83, T84, T85, X170, X171, le33_out_gg(T83, T84)) → part20_out_ggaa(T83, .(T84, T85), X170, .(T84, X171))
U4_ggaa(T83, T84, T85, X170, X171, le33_out_gg(T83, T84)) → U5_ggaa(T83, T84, T85, X170, X171, part20_in_ggaa(T83, T85, X170, X171))
part20_in_ggaa(T107, [], [], []) → part20_out_ggaa(T107, [], [], [])
U5_ggaa(T83, T84, T85, X170, X171, part20_out_ggaa(T83, T85, X170, X171)) → part20_out_ggaa(T83, .(T84, T85), X170, .(T84, X171))
U3_ggaa(T61, T62, T63, X119, X120, part20_out_ggaa(T61, T63, X119, X120)) → part20_out_ggaa(T61, .(T62, T63), .(T62, X119), X120)
U20_ga(T22, T23, T24, T9, part20_out_ggaa(T22, T24, X47, X48)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U19_ga(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → U21_ga(T22, T23, T24, T9, part20_in_ggaa(T22, T24, T44, T45))
U21_ga(T22, T23, T24, T9, part20_out_ggaa(T22, T24, T44, T45)) → U22_ga(T22, T23, T24, T9, qs1_in_aa(.(T23, T44), X9))
qs1_in_aa(.(T22, .(T23, T24)), T9) → U19_aa(T22, T23, T24, T9, gt10_in_aa(T22, T23))
gt10_in_aa(s(T37), s(T38)) → U1_aa(T37, T38, gt10_in_aa(T37, T38))
gt10_in_aa(s(0), 0) → gt10_out_aa(s(0), 0)
U1_aa(T37, T38, gt10_out_aa(T37, T38)) → gt10_out_aa(s(T37), s(T38))
U19_aa(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U19_aa(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → U20_aa(T22, T23, T24, T9, part20_in_gaaa(T22, T24, X47, X48))
part20_in_gaaa(T61, .(T62, T63), .(T62, X119), X120) → U2_gaaa(T61, T62, T63, X119, X120, gt10_in_ga(T61, T62))
gt10_in_ga(s(T37), s(T38)) → U1_ga(T37, T38, gt10_in_ga(T37, T38))
gt10_in_ga(s(0), 0) → gt10_out_ga(s(0), 0)
U1_ga(T37, T38, gt10_out_ga(T37, T38)) → gt10_out_ga(s(T37), s(T38))
U2_gaaa(T61, T62, T63, X119, X120, gt10_out_ga(T61, T62)) → part20_out_gaaa(T61, .(T62, T63), .(T62, X119), X120)
U2_gaaa(T61, T62, T63, X119, X120, gt10_out_ga(T61, T62)) → U3_gaaa(T61, T62, T63, X119, X120, part20_in_gaaa(T61, T63, X119, X120))
part20_in_gaaa(T83, .(T84, T85), X170, .(T84, X171)) → U4_gaaa(T83, T84, T85, X170, X171, le33_in_ga(T83, T84))
le33_in_ga(s(T98), s(T99)) → U6_ga(T98, T99, le33_in_ga(T98, T99))
le33_in_ga(0, s(0)) → le33_out_ga(0, s(0))
le33_in_ga(0, 0) → le33_out_ga(0, 0)
U6_ga(T98, T99, le33_out_ga(T98, T99)) → le33_out_ga(s(T98), s(T99))
U4_gaaa(T83, T84, T85, X170, X171, le33_out_ga(T83, T84)) → part20_out_gaaa(T83, .(T84, T85), X170, .(T84, X171))
U4_gaaa(T83, T84, T85, X170, X171, le33_out_ga(T83, T84)) → U5_gaaa(T83, T84, T85, X170, X171, part20_in_gaaa(T83, T85, X170, X171))
part20_in_gaaa(T107, [], [], []) → part20_out_gaaa(T107, [], [], [])
U5_gaaa(T83, T84, T85, X170, X171, part20_out_gaaa(T83, T85, X170, X171)) → part20_out_gaaa(T83, .(T84, T85), X170, .(T84, X171))
U3_gaaa(T61, T62, T63, X119, X120, part20_out_gaaa(T61, T63, X119, X120)) → part20_out_gaaa(T61, .(T62, T63), .(T62, X119), X120)
U20_aa(T22, T23, T24, T9, part20_out_gaaa(T22, T24, X47, X48)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U19_aa(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → U21_aa(T22, T23, T24, T9, part20_in_gaaa(T22, T24, T44, T45))
U21_aa(T22, T23, T24, T9, part20_out_gaaa(T22, T24, T44, T45)) → U22_aa(T22, T23, T24, T9, qs1_in_aa(.(T23, T44), X9))
qs1_in_aa(.(T234, .(T235, T236)), T9) → U25_aa(T234, T235, T236, T9, le33_in_aa(T234, T235))
le33_in_aa(s(T98), s(T99)) → U6_aa(T98, T99, le33_in_aa(T98, T99))
le33_in_aa(0, s(0)) → le33_out_aa(0, s(0))
le33_in_aa(0, 0) → le33_out_aa(0, 0)
U6_aa(T98, T99, le33_out_aa(T98, T99)) → le33_out_aa(s(T98), s(T99))
U25_aa(T234, T235, T236, T9, le33_out_aa(T234, T235)) → qs1_out_aa(.(T234, .(T235, T236)), T9)
U25_aa(T234, T235, T236, T9, le33_out_aa(T234, T235)) → U26_aa(T234, T235, T236, T9, part20_in_gaaa(T234, T236, X431, X432))
U26_aa(T234, T235, T236, T9, part20_out_gaaa(T234, T236, X431, X432)) → qs1_out_aa(.(T234, .(T235, T236)), T9)
U25_aa(T234, T235, T236, T9, le33_out_aa(T234, T235)) → U27_aa(T234, T235, T236, T9, part20_in_gaaa(T234, T236, T244, T245))
U27_aa(T234, T235, T236, T9, part20_out_gaaa(T234, T236, T244, T245)) → U28_aa(T234, T235, T236, T9, qs53_in_aa(T244, X9))
qs53_in_aa(.(T126, T127), X269) → U7_aa(T126, T127, X269, part20_in_aaaa(T126, T127, X265, X266))
part20_in_aaaa(T61, .(T62, T63), .(T62, X119), X120) → U2_aaaa(T61, T62, T63, X119, X120, gt10_in_aa(T61, T62))
U2_aaaa(T61, T62, T63, X119, X120, gt10_out_aa(T61, T62)) → part20_out_aaaa(T61, .(T62, T63), .(T62, X119), X120)
U2_aaaa(T61, T62, T63, X119, X120, gt10_out_aa(T61, T62)) → U3_aaaa(T61, T62, T63, X119, X120, part20_in_gaaa(T61, T63, X119, X120))
U3_aaaa(T61, T62, T63, X119, X120, part20_out_gaaa(T61, T63, X119, X120)) → part20_out_aaaa(T61, .(T62, T63), .(T62, X119), X120)
part20_in_aaaa(T83, .(T84, T85), X170, .(T84, X171)) → U4_aaaa(T83, T84, T85, X170, X171, le33_in_aa(T83, T84))
U4_aaaa(T83, T84, T85, X170, X171, le33_out_aa(T83, T84)) → part20_out_aaaa(T83, .(T84, T85), X170, .(T84, X171))
U4_aaaa(T83, T84, T85, X170, X171, le33_out_aa(T83, T84)) → U5_aaaa(T83, T84, T85, X170, X171, part20_in_gaaa(T83, T85, X170, X171))
U5_aaaa(T83, T84, T85, X170, X171, part20_out_gaaa(T83, T85, X170, X171)) → part20_out_aaaa(T83, .(T84, T85), X170, .(T84, X171))
part20_in_aaaa(T107, [], [], []) → part20_out_aaaa(T107, [], [], [])
U7_aa(T126, T127, X269, part20_out_aaaa(T126, T127, X265, X266)) → qs53_out_aa(.(T126, T127), X269)
qs53_in_aa(.(T126, T127), X269) → U8_aa(T126, T127, X269, part20_in_aaaa(T126, T127, T131, T132))
U8_aa(T126, T127, X269, part20_out_aaaa(T126, T127, T131, T132)) → U9_aa(T126, T127, X269, qs53_in_aa(T131, X267))
qs53_in_aa([], []) → qs53_out_aa([], [])
U9_aa(T126, T127, X269, qs53_out_aa(T131, X267)) → qs53_out_aa(.(T126, T127), X269)
U8_aa(T126, T127, X269, part20_out_aaaa(T126, T127, T131, T132)) → U10_aa(T126, T127, X269, T132, qs53_in_aa(T131, T138))
U10_aa(T126, T127, X269, T132, qs53_out_aa(T131, T138)) → U11_aa(T126, T127, X269, qs53_in_aa(T132, X268))
U11_aa(T126, T127, X269, qs53_out_aa(T132, X268)) → qs53_out_aa(.(T126, T127), X269)
U10_aa(T126, T127, X269, T132, qs53_out_aa(T131, T138)) → U12_aa(T126, T127, X269, T138, qs53_in_aa(T132, T143))
U12_aa(T126, T127, X269, T138, qs53_out_aa(T132, T143)) → U13_aa(T126, T127, X269, app65_in_aaaa(T138, T126, T143, X269))
app65_in_aaaa(.(T166, T167), T168, T169, .(T166, X348)) → U14_aaaa(T166, T167, T168, T169, X348, app65_in_aaaa(T167, T168, T169, X348))
app65_in_aaaa([], T178, T179, .(T178, T179)) → app65_out_aaaa([], T178, T179, .(T178, T179))
U14_aaaa(T166, T167, T168, T169, X348, app65_out_aaaa(T167, T168, T169, X348)) → app65_out_aaaa(.(T166, T167), T168, T169, .(T166, X348))
U13_aa(T126, T127, X269, app65_out_aaaa(T138, T126, T143, X269)) → qs53_out_aa(.(T126, T127), X269)
U28_aa(T234, T235, T236, T9, qs53_out_aa(T244, X9)) → qs1_out_aa(.(T234, .(T235, T236)), T9)
U27_aa(T234, T235, T236, T9, part20_out_gaaa(T234, T236, T244, T245)) → U29_aa(T234, T235, T236, T9, T245, qs53_in_aa(T244, T251))
U29_aa(T234, T235, T236, T9, T245, qs53_out_aa(T244, T251)) → U30_aa(T234, T235, T236, T9, p52_in_aaaga(.(T235, T245), X10, T251, T234, T9))
p52_in_aaaga(T45, X10, T110, T22, T9) → U16_aaaga(T45, X10, T110, T22, T9, qs53_in_aa(T45, X10))
U16_aaaga(T45, X10, T110, T22, T9, qs53_out_aa(T45, X10)) → p52_out_aaaga(T45, X10, T110, T22, T9)
p52_in_aaaga(T45, T115, T110, T22, T9) → U17_aaaga(T45, T115, T110, T22, T9, qs53_in_aa(T45, T115))
U17_aaaga(T45, T115, T110, T22, T9, qs53_out_aa(T45, T115)) → U18_aaaga(T45, T115, T110, T22, T9, app54_in_agaa(T110, T22, T115, T9))
app54_in_agaa(.(T205, T206), T207, T208, .(T205, T210)) → U15_agaa(T205, T206, T207, T208, T210, app54_in_agaa(T206, T207, T208, T210))
app54_in_agaa([], T220, T221, .(T220, T221)) → app54_out_agaa([], T220, T221, .(T220, T221))
U15_agaa(T205, T206, T207, T208, T210, app54_out_agaa(T206, T207, T208, T210)) → app54_out_agaa(.(T205, T206), T207, T208, .(T205, T210))
U18_aaaga(T45, T115, T110, T22, T9, app54_out_agaa(T110, T22, T115, T9)) → p52_out_aaaga(T45, T115, T110, T22, T9)
U30_aa(T234, T235, T236, T9, p52_out_aaaga(.(T235, T245), X10, T251, T234, T9)) → qs1_out_aa(.(T234, .(T235, T236)), T9)
qs1_in_aa(.(T260, []), T9) → U31_aa(T260, T9, qs99_in_a(X9))
qs99_in_a([]) → qs99_out_a([])
U31_aa(T260, T9, qs99_out_a(X9)) → qs1_out_aa(.(T260, []), T9)
qs1_in_aa(.(T260, []), T9) → U32_aa(T260, T9, qs99_in_a(T263))
U32_aa(T260, T9, qs99_out_a(T263)) → U33_aa(T260, T9, qs99_in_a(X10))
U33_aa(T260, T9, qs99_out_a(X10)) → qs1_out_aa(.(T260, []), T9)
U32_aa(T260, T9, qs99_out_a(T263)) → U34_aa(T260, T9, T263, qs99_in_a(T268))
U34_aa(T260, T9, T263, qs99_out_a(T268)) → U35_aa(T260, T9, app54_in_gaga(T263, T260, T268, T9))
app54_in_gaga(.(T205, T206), T207, T208, .(T205, T210)) → U15_gaga(T205, T206, T207, T208, T210, app54_in_gaga(T206, T207, T208, T210))
app54_in_gaga([], T220, T221, .(T220, T221)) → app54_out_gaga([], T220, T221, .(T220, T221))
U15_gaga(T205, T206, T207, T208, T210, app54_out_gaga(T206, T207, T208, T210)) → app54_out_gaga(.(T205, T206), T207, T208, .(T205, T210))
U35_aa(T260, T9, app54_out_gaga(T263, T260, T268, T9)) → qs1_out_aa(.(T260, []), T9)
qs1_in_aa([], []) → qs1_out_aa([], [])
U22_aa(T22, T23, T24, T9, qs1_out_aa(.(T23, T44), X9)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U21_aa(T22, T23, T24, T9, part20_out_gaaa(T22, T24, T44, T45)) → U23_aa(T22, T23, T24, T9, T45, qs1_in_aa(.(T23, T44), T110))
U23_aa(T22, T23, T24, T9, T45, qs1_out_aa(.(T23, T44), T110)) → U24_aa(T22, T23, T24, T9, p52_in_aaaga(T45, X10, T110, T22, T9))
U24_aa(T22, T23, T24, T9, p52_out_aaaga(T45, X10, T110, T22, T9)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U22_ga(T22, T23, T24, T9, qs1_out_aa(.(T23, T44), X9)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U21_ga(T22, T23, T24, T9, part20_out_ggaa(T22, T24, T44, T45)) → U23_ga(T22, T23, T24, T9, T45, qs1_in_aa(.(T23, T44), T110))
U23_ga(T22, T23, T24, T9, T45, qs1_out_aa(.(T23, T44), T110)) → U24_ga(T22, T23, T24, T9, p52_in_aaaga(T45, X10, T110, T22, T9))
U24_ga(T22, T23, T24, T9, p52_out_aaaga(T45, X10, T110, T22, T9)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
qs1_in_ga(.(T234, .(T235, T236)), T9) → U25_ga(T234, T235, T236, T9, le33_in_gg(T234, T235))
U25_ga(T234, T235, T236, T9, le33_out_gg(T234, T235)) → qs1_out_ga(.(T234, .(T235, T236)), T9)
U25_ga(T234, T235, T236, T9, le33_out_gg(T234, T235)) → U26_ga(T234, T235, T236, T9, part20_in_ggaa(T234, T236, X431, X432))
U26_ga(T234, T235, T236, T9, part20_out_ggaa(T234, T236, X431, X432)) → qs1_out_ga(.(T234, .(T235, T236)), T9)
U25_ga(T234, T235, T236, T9, le33_out_gg(T234, T235)) → U27_ga(T234, T235, T236, T9, part20_in_ggaa(T234, T236, T244, T245))
U27_ga(T234, T235, T236, T9, part20_out_ggaa(T234, T236, T244, T245)) → U28_ga(T234, T235, T236, T9, qs53_in_aa(T244, X9))
U28_ga(T234, T235, T236, T9, qs53_out_aa(T244, X9)) → qs1_out_ga(.(T234, .(T235, T236)), T9)
U27_ga(T234, T235, T236, T9, part20_out_ggaa(T234, T236, T244, T245)) → U29_ga(T234, T235, T236, T9, T245, qs53_in_aa(T244, T251))
U29_ga(T234, T235, T236, T9, T245, qs53_out_aa(T244, T251)) → U30_ga(T234, T235, T236, T9, p52_in_aaaga(.(T235, T245), X10, T251, T234, T9))
U30_ga(T234, T235, T236, T9, p52_out_aaaga(.(T235, T245), X10, T251, T234, T9)) → qs1_out_ga(.(T234, .(T235, T236)), T9)
qs1_in_ga(.(T260, []), T9) → U31_ga(T260, T9, qs99_in_a(X9))
U31_ga(T260, T9, qs99_out_a(X9)) → qs1_out_ga(.(T260, []), T9)
qs1_in_ga(.(T260, []), T9) → U32_ga(T260, T9, qs99_in_a(T263))
U32_ga(T260, T9, qs99_out_a(T263)) → U33_ga(T260, T9, qs99_in_a(X10))
U33_ga(T260, T9, qs99_out_a(X10)) → qs1_out_ga(.(T260, []), T9)
U32_ga(T260, T9, qs99_out_a(T263)) → U34_ga(T260, T9, T263, qs99_in_a(T268))
U34_ga(T260, T9, T263, qs99_out_a(T268)) → U35_ga(T260, T9, app54_in_ggga(T263, T260, T268, T9))
app54_in_ggga(.(T205, T206), T207, T208, .(T205, T210)) → U15_ggga(T205, T206, T207, T208, T210, app54_in_ggga(T206, T207, T208, T210))
app54_in_ggga([], T220, T221, .(T220, T221)) → app54_out_ggga([], T220, T221, .(T220, T221))
U15_ggga(T205, T206, T207, T208, T210, app54_out_ggga(T206, T207, T208, T210)) → app54_out_ggga(.(T205, T206), T207, T208, .(T205, T210))
U35_ga(T260, T9, app54_out_ggga(T263, T260, T268, T9)) → qs1_out_ga(.(T260, []), T9)
qs1_in_ga([], []) → qs1_out_ga([], [])
APP54_IN_AGAA(.(T205, T206), T207, T208, .(T205, T210)) → APP54_IN_AGAA(T206, T207, T208, T210)
APP54_IN_AGAA(T207) → APP54_IN_AGAA(T207)
APP65_IN_AAAA(.(T166, T167), T168, T169, .(T166, X348)) → APP65_IN_AAAA(T167, T168, T169, X348)
qs1_in_ga(.(T22, .(T23, T24)), T9) → U19_ga(T22, T23, T24, T9, gt10_in_gg(T22, T23))
gt10_in_gg(s(T37), s(T38)) → U1_gg(T37, T38, gt10_in_gg(T37, T38))
gt10_in_gg(s(0), 0) → gt10_out_gg(s(0), 0)
U1_gg(T37, T38, gt10_out_gg(T37, T38)) → gt10_out_gg(s(T37), s(T38))
U19_ga(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U19_ga(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → U20_ga(T22, T23, T24, T9, part20_in_ggaa(T22, T24, X47, X48))
part20_in_ggaa(T61, .(T62, T63), .(T62, X119), X120) → U2_ggaa(T61, T62, T63, X119, X120, gt10_in_gg(T61, T62))
U2_ggaa(T61, T62, T63, X119, X120, gt10_out_gg(T61, T62)) → part20_out_ggaa(T61, .(T62, T63), .(T62, X119), X120)
U2_ggaa(T61, T62, T63, X119, X120, gt10_out_gg(T61, T62)) → U3_ggaa(T61, T62, T63, X119, X120, part20_in_ggaa(T61, T63, X119, X120))
part20_in_ggaa(T83, .(T84, T85), X170, .(T84, X171)) → U4_ggaa(T83, T84, T85, X170, X171, le33_in_gg(T83, T84))
le33_in_gg(s(T98), s(T99)) → U6_gg(T98, T99, le33_in_gg(T98, T99))
le33_in_gg(0, s(0)) → le33_out_gg(0, s(0))
le33_in_gg(0, 0) → le33_out_gg(0, 0)
U6_gg(T98, T99, le33_out_gg(T98, T99)) → le33_out_gg(s(T98), s(T99))
U4_ggaa(T83, T84, T85, X170, X171, le33_out_gg(T83, T84)) → part20_out_ggaa(T83, .(T84, T85), X170, .(T84, X171))
U4_ggaa(T83, T84, T85, X170, X171, le33_out_gg(T83, T84)) → U5_ggaa(T83, T84, T85, X170, X171, part20_in_ggaa(T83, T85, X170, X171))
part20_in_ggaa(T107, [], [], []) → part20_out_ggaa(T107, [], [], [])
U5_ggaa(T83, T84, T85, X170, X171, part20_out_ggaa(T83, T85, X170, X171)) → part20_out_ggaa(T83, .(T84, T85), X170, .(T84, X171))
U3_ggaa(T61, T62, T63, X119, X120, part20_out_ggaa(T61, T63, X119, X120)) → part20_out_ggaa(T61, .(T62, T63), .(T62, X119), X120)
U20_ga(T22, T23, T24, T9, part20_out_ggaa(T22, T24, X47, X48)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U19_ga(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → U21_ga(T22, T23, T24, T9, part20_in_ggaa(T22, T24, T44, T45))
U21_ga(T22, T23, T24, T9, part20_out_ggaa(T22, T24, T44, T45)) → U22_ga(T22, T23, T24, T9, qs1_in_aa(.(T23, T44), X9))
qs1_in_aa(.(T22, .(T23, T24)), T9) → U19_aa(T22, T23, T24, T9, gt10_in_aa(T22, T23))
gt10_in_aa(s(T37), s(T38)) → U1_aa(T37, T38, gt10_in_aa(T37, T38))
gt10_in_aa(s(0), 0) → gt10_out_aa(s(0), 0)
U1_aa(T37, T38, gt10_out_aa(T37, T38)) → gt10_out_aa(s(T37), s(T38))
U19_aa(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U19_aa(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → U20_aa(T22, T23, T24, T9, part20_in_gaaa(T22, T24, X47, X48))
part20_in_gaaa(T61, .(T62, T63), .(T62, X119), X120) → U2_gaaa(T61, T62, T63, X119, X120, gt10_in_ga(T61, T62))
gt10_in_ga(s(T37), s(T38)) → U1_ga(T37, T38, gt10_in_ga(T37, T38))
gt10_in_ga(s(0), 0) → gt10_out_ga(s(0), 0)
U1_ga(T37, T38, gt10_out_ga(T37, T38)) → gt10_out_ga(s(T37), s(T38))
U2_gaaa(T61, T62, T63, X119, X120, gt10_out_ga(T61, T62)) → part20_out_gaaa(T61, .(T62, T63), .(T62, X119), X120)
U2_gaaa(T61, T62, T63, X119, X120, gt10_out_ga(T61, T62)) → U3_gaaa(T61, T62, T63, X119, X120, part20_in_gaaa(T61, T63, X119, X120))
part20_in_gaaa(T83, .(T84, T85), X170, .(T84, X171)) → U4_gaaa(T83, T84, T85, X170, X171, le33_in_ga(T83, T84))
le33_in_ga(s(T98), s(T99)) → U6_ga(T98, T99, le33_in_ga(T98, T99))
le33_in_ga(0, s(0)) → le33_out_ga(0, s(0))
le33_in_ga(0, 0) → le33_out_ga(0, 0)
U6_ga(T98, T99, le33_out_ga(T98, T99)) → le33_out_ga(s(T98), s(T99))
U4_gaaa(T83, T84, T85, X170, X171, le33_out_ga(T83, T84)) → part20_out_gaaa(T83, .(T84, T85), X170, .(T84, X171))
U4_gaaa(T83, T84, T85, X170, X171, le33_out_ga(T83, T84)) → U5_gaaa(T83, T84, T85, X170, X171, part20_in_gaaa(T83, T85, X170, X171))
part20_in_gaaa(T107, [], [], []) → part20_out_gaaa(T107, [], [], [])
U5_gaaa(T83, T84, T85, X170, X171, part20_out_gaaa(T83, T85, X170, X171)) → part20_out_gaaa(T83, .(T84, T85), X170, .(T84, X171))
U3_gaaa(T61, T62, T63, X119, X120, part20_out_gaaa(T61, T63, X119, X120)) → part20_out_gaaa(T61, .(T62, T63), .(T62, X119), X120)
U20_aa(T22, T23, T24, T9, part20_out_gaaa(T22, T24, X47, X48)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U19_aa(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → U21_aa(T22, T23, T24, T9, part20_in_gaaa(T22, T24, T44, T45))
U21_aa(T22, T23, T24, T9, part20_out_gaaa(T22, T24, T44, T45)) → U22_aa(T22, T23, T24, T9, qs1_in_aa(.(T23, T44), X9))
qs1_in_aa(.(T234, .(T235, T236)), T9) → U25_aa(T234, T235, T236, T9, le33_in_aa(T234, T235))
le33_in_aa(s(T98), s(T99)) → U6_aa(T98, T99, le33_in_aa(T98, T99))
le33_in_aa(0, s(0)) → le33_out_aa(0, s(0))
le33_in_aa(0, 0) → le33_out_aa(0, 0)
U6_aa(T98, T99, le33_out_aa(T98, T99)) → le33_out_aa(s(T98), s(T99))
U25_aa(T234, T235, T236, T9, le33_out_aa(T234, T235)) → qs1_out_aa(.(T234, .(T235, T236)), T9)
U25_aa(T234, T235, T236, T9, le33_out_aa(T234, T235)) → U26_aa(T234, T235, T236, T9, part20_in_gaaa(T234, T236, X431, X432))
U26_aa(T234, T235, T236, T9, part20_out_gaaa(T234, T236, X431, X432)) → qs1_out_aa(.(T234, .(T235, T236)), T9)
U25_aa(T234, T235, T236, T9, le33_out_aa(T234, T235)) → U27_aa(T234, T235, T236, T9, part20_in_gaaa(T234, T236, T244, T245))
U27_aa(T234, T235, T236, T9, part20_out_gaaa(T234, T236, T244, T245)) → U28_aa(T234, T235, T236, T9, qs53_in_aa(T244, X9))
qs53_in_aa(.(T126, T127), X269) → U7_aa(T126, T127, X269, part20_in_aaaa(T126, T127, X265, X266))
part20_in_aaaa(T61, .(T62, T63), .(T62, X119), X120) → U2_aaaa(T61, T62, T63, X119, X120, gt10_in_aa(T61, T62))
U2_aaaa(T61, T62, T63, X119, X120, gt10_out_aa(T61, T62)) → part20_out_aaaa(T61, .(T62, T63), .(T62, X119), X120)
U2_aaaa(T61, T62, T63, X119, X120, gt10_out_aa(T61, T62)) → U3_aaaa(T61, T62, T63, X119, X120, part20_in_gaaa(T61, T63, X119, X120))
U3_aaaa(T61, T62, T63, X119, X120, part20_out_gaaa(T61, T63, X119, X120)) → part20_out_aaaa(T61, .(T62, T63), .(T62, X119), X120)
part20_in_aaaa(T83, .(T84, T85), X170, .(T84, X171)) → U4_aaaa(T83, T84, T85, X170, X171, le33_in_aa(T83, T84))
U4_aaaa(T83, T84, T85, X170, X171, le33_out_aa(T83, T84)) → part20_out_aaaa(T83, .(T84, T85), X170, .(T84, X171))
U4_aaaa(T83, T84, T85, X170, X171, le33_out_aa(T83, T84)) → U5_aaaa(T83, T84, T85, X170, X171, part20_in_gaaa(T83, T85, X170, X171))
U5_aaaa(T83, T84, T85, X170, X171, part20_out_gaaa(T83, T85, X170, X171)) → part20_out_aaaa(T83, .(T84, T85), X170, .(T84, X171))
part20_in_aaaa(T107, [], [], []) → part20_out_aaaa(T107, [], [], [])
U7_aa(T126, T127, X269, part20_out_aaaa(T126, T127, X265, X266)) → qs53_out_aa(.(T126, T127), X269)
qs53_in_aa(.(T126, T127), X269) → U8_aa(T126, T127, X269, part20_in_aaaa(T126, T127, T131, T132))
U8_aa(T126, T127, X269, part20_out_aaaa(T126, T127, T131, T132)) → U9_aa(T126, T127, X269, qs53_in_aa(T131, X267))
qs53_in_aa([], []) → qs53_out_aa([], [])
U9_aa(T126, T127, X269, qs53_out_aa(T131, X267)) → qs53_out_aa(.(T126, T127), X269)
U8_aa(T126, T127, X269, part20_out_aaaa(T126, T127, T131, T132)) → U10_aa(T126, T127, X269, T132, qs53_in_aa(T131, T138))
U10_aa(T126, T127, X269, T132, qs53_out_aa(T131, T138)) → U11_aa(T126, T127, X269, qs53_in_aa(T132, X268))
U11_aa(T126, T127, X269, qs53_out_aa(T132, X268)) → qs53_out_aa(.(T126, T127), X269)
U10_aa(T126, T127, X269, T132, qs53_out_aa(T131, T138)) → U12_aa(T126, T127, X269, T138, qs53_in_aa(T132, T143))
U12_aa(T126, T127, X269, T138, qs53_out_aa(T132, T143)) → U13_aa(T126, T127, X269, app65_in_aaaa(T138, T126, T143, X269))
app65_in_aaaa(.(T166, T167), T168, T169, .(T166, X348)) → U14_aaaa(T166, T167, T168, T169, X348, app65_in_aaaa(T167, T168, T169, X348))
app65_in_aaaa([], T178, T179, .(T178, T179)) → app65_out_aaaa([], T178, T179, .(T178, T179))
U14_aaaa(T166, T167, T168, T169, X348, app65_out_aaaa(T167, T168, T169, X348)) → app65_out_aaaa(.(T166, T167), T168, T169, .(T166, X348))
U13_aa(T126, T127, X269, app65_out_aaaa(T138, T126, T143, X269)) → qs53_out_aa(.(T126, T127), X269)
U28_aa(T234, T235, T236, T9, qs53_out_aa(T244, X9)) → qs1_out_aa(.(T234, .(T235, T236)), T9)
U27_aa(T234, T235, T236, T9, part20_out_gaaa(T234, T236, T244, T245)) → U29_aa(T234, T235, T236, T9, T245, qs53_in_aa(T244, T251))
U29_aa(T234, T235, T236, T9, T245, qs53_out_aa(T244, T251)) → U30_aa(T234, T235, T236, T9, p52_in_aaaga(.(T235, T245), X10, T251, T234, T9))
p52_in_aaaga(T45, X10, T110, T22, T9) → U16_aaaga(T45, X10, T110, T22, T9, qs53_in_aa(T45, X10))
U16_aaaga(T45, X10, T110, T22, T9, qs53_out_aa(T45, X10)) → p52_out_aaaga(T45, X10, T110, T22, T9)
p52_in_aaaga(T45, T115, T110, T22, T9) → U17_aaaga(T45, T115, T110, T22, T9, qs53_in_aa(T45, T115))
U17_aaaga(T45, T115, T110, T22, T9, qs53_out_aa(T45, T115)) → U18_aaaga(T45, T115, T110, T22, T9, app54_in_agaa(T110, T22, T115, T9))
app54_in_agaa(.(T205, T206), T207, T208, .(T205, T210)) → U15_agaa(T205, T206, T207, T208, T210, app54_in_agaa(T206, T207, T208, T210))
app54_in_agaa([], T220, T221, .(T220, T221)) → app54_out_agaa([], T220, T221, .(T220, T221))
U15_agaa(T205, T206, T207, T208, T210, app54_out_agaa(T206, T207, T208, T210)) → app54_out_agaa(.(T205, T206), T207, T208, .(T205, T210))
U18_aaaga(T45, T115, T110, T22, T9, app54_out_agaa(T110, T22, T115, T9)) → p52_out_aaaga(T45, T115, T110, T22, T9)
U30_aa(T234, T235, T236, T9, p52_out_aaaga(.(T235, T245), X10, T251, T234, T9)) → qs1_out_aa(.(T234, .(T235, T236)), T9)
qs1_in_aa(.(T260, []), T9) → U31_aa(T260, T9, qs99_in_a(X9))
qs99_in_a([]) → qs99_out_a([])
U31_aa(T260, T9, qs99_out_a(X9)) → qs1_out_aa(.(T260, []), T9)
qs1_in_aa(.(T260, []), T9) → U32_aa(T260, T9, qs99_in_a(T263))
U32_aa(T260, T9, qs99_out_a(T263)) → U33_aa(T260, T9, qs99_in_a(X10))
U33_aa(T260, T9, qs99_out_a(X10)) → qs1_out_aa(.(T260, []), T9)
U32_aa(T260, T9, qs99_out_a(T263)) → U34_aa(T260, T9, T263, qs99_in_a(T268))
U34_aa(T260, T9, T263, qs99_out_a(T268)) → U35_aa(T260, T9, app54_in_gaga(T263, T260, T268, T9))
app54_in_gaga(.(T205, T206), T207, T208, .(T205, T210)) → U15_gaga(T205, T206, T207, T208, T210, app54_in_gaga(T206, T207, T208, T210))
app54_in_gaga([], T220, T221, .(T220, T221)) → app54_out_gaga([], T220, T221, .(T220, T221))
U15_gaga(T205, T206, T207, T208, T210, app54_out_gaga(T206, T207, T208, T210)) → app54_out_gaga(.(T205, T206), T207, T208, .(T205, T210))
U35_aa(T260, T9, app54_out_gaga(T263, T260, T268, T9)) → qs1_out_aa(.(T260, []), T9)
qs1_in_aa([], []) → qs1_out_aa([], [])
U22_aa(T22, T23, T24, T9, qs1_out_aa(.(T23, T44), X9)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U21_aa(T22, T23, T24, T9, part20_out_gaaa(T22, T24, T44, T45)) → U23_aa(T22, T23, T24, T9, T45, qs1_in_aa(.(T23, T44), T110))
U23_aa(T22, T23, T24, T9, T45, qs1_out_aa(.(T23, T44), T110)) → U24_aa(T22, T23, T24, T9, p52_in_aaaga(T45, X10, T110, T22, T9))
U24_aa(T22, T23, T24, T9, p52_out_aaaga(T45, X10, T110, T22, T9)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U22_ga(T22, T23, T24, T9, qs1_out_aa(.(T23, T44), X9)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U21_ga(T22, T23, T24, T9, part20_out_ggaa(T22, T24, T44, T45)) → U23_ga(T22, T23, T24, T9, T45, qs1_in_aa(.(T23, T44), T110))
U23_ga(T22, T23, T24, T9, T45, qs1_out_aa(.(T23, T44), T110)) → U24_ga(T22, T23, T24, T9, p52_in_aaaga(T45, X10, T110, T22, T9))
U24_ga(T22, T23, T24, T9, p52_out_aaaga(T45, X10, T110, T22, T9)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
qs1_in_ga(.(T234, .(T235, T236)), T9) → U25_ga(T234, T235, T236, T9, le33_in_gg(T234, T235))
U25_ga(T234, T235, T236, T9, le33_out_gg(T234, T235)) → qs1_out_ga(.(T234, .(T235, T236)), T9)
U25_ga(T234, T235, T236, T9, le33_out_gg(T234, T235)) → U26_ga(T234, T235, T236, T9, part20_in_ggaa(T234, T236, X431, X432))
U26_ga(T234, T235, T236, T9, part20_out_ggaa(T234, T236, X431, X432)) → qs1_out_ga(.(T234, .(T235, T236)), T9)
U25_ga(T234, T235, T236, T9, le33_out_gg(T234, T235)) → U27_ga(T234, T235, T236, T9, part20_in_ggaa(T234, T236, T244, T245))
U27_ga(T234, T235, T236, T9, part20_out_ggaa(T234, T236, T244, T245)) → U28_ga(T234, T235, T236, T9, qs53_in_aa(T244, X9))
U28_ga(T234, T235, T236, T9, qs53_out_aa(T244, X9)) → qs1_out_ga(.(T234, .(T235, T236)), T9)
U27_ga(T234, T235, T236, T9, part20_out_ggaa(T234, T236, T244, T245)) → U29_ga(T234, T235, T236, T9, T245, qs53_in_aa(T244, T251))
U29_ga(T234, T235, T236, T9, T245, qs53_out_aa(T244, T251)) → U30_ga(T234, T235, T236, T9, p52_in_aaaga(.(T235, T245), X10, T251, T234, T9))
U30_ga(T234, T235, T236, T9, p52_out_aaaga(.(T235, T245), X10, T251, T234, T9)) → qs1_out_ga(.(T234, .(T235, T236)), T9)
qs1_in_ga(.(T260, []), T9) → U31_ga(T260, T9, qs99_in_a(X9))
U31_ga(T260, T9, qs99_out_a(X9)) → qs1_out_ga(.(T260, []), T9)
qs1_in_ga(.(T260, []), T9) → U32_ga(T260, T9, qs99_in_a(T263))
U32_ga(T260, T9, qs99_out_a(T263)) → U33_ga(T260, T9, qs99_in_a(X10))
U33_ga(T260, T9, qs99_out_a(X10)) → qs1_out_ga(.(T260, []), T9)
U32_ga(T260, T9, qs99_out_a(T263)) → U34_ga(T260, T9, T263, qs99_in_a(T268))
U34_ga(T260, T9, T263, qs99_out_a(T268)) → U35_ga(T260, T9, app54_in_ggga(T263, T260, T268, T9))
app54_in_ggga(.(T205, T206), T207, T208, .(T205, T210)) → U15_ggga(T205, T206, T207, T208, T210, app54_in_ggga(T206, T207, T208, T210))
app54_in_ggga([], T220, T221, .(T220, T221)) → app54_out_ggga([], T220, T221, .(T220, T221))
U15_ggga(T205, T206, T207, T208, T210, app54_out_ggga(T206, T207, T208, T210)) → app54_out_ggga(.(T205, T206), T207, T208, .(T205, T210))
U35_ga(T260, T9, app54_out_ggga(T263, T260, T268, T9)) → qs1_out_ga(.(T260, []), T9)
qs1_in_ga([], []) → qs1_out_ga([], [])
APP65_IN_AAAA(.(T166, T167), T168, T169, .(T166, X348)) → APP65_IN_AAAA(T167, T168, T169, X348)
APP65_IN_AAAA → APP65_IN_AAAA
LE33_IN_AA(s(T98), s(T99)) → LE33_IN_AA(T98, T99)
qs1_in_ga(.(T22, .(T23, T24)), T9) → U19_ga(T22, T23, T24, T9, gt10_in_gg(T22, T23))
gt10_in_gg(s(T37), s(T38)) → U1_gg(T37, T38, gt10_in_gg(T37, T38))
gt10_in_gg(s(0), 0) → gt10_out_gg(s(0), 0)
U1_gg(T37, T38, gt10_out_gg(T37, T38)) → gt10_out_gg(s(T37), s(T38))
U19_ga(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U19_ga(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → U20_ga(T22, T23, T24, T9, part20_in_ggaa(T22, T24, X47, X48))
part20_in_ggaa(T61, .(T62, T63), .(T62, X119), X120) → U2_ggaa(T61, T62, T63, X119, X120, gt10_in_gg(T61, T62))
U2_ggaa(T61, T62, T63, X119, X120, gt10_out_gg(T61, T62)) → part20_out_ggaa(T61, .(T62, T63), .(T62, X119), X120)
U2_ggaa(T61, T62, T63, X119, X120, gt10_out_gg(T61, T62)) → U3_ggaa(T61, T62, T63, X119, X120, part20_in_ggaa(T61, T63, X119, X120))
part20_in_ggaa(T83, .(T84, T85), X170, .(T84, X171)) → U4_ggaa(T83, T84, T85, X170, X171, le33_in_gg(T83, T84))
le33_in_gg(s(T98), s(T99)) → U6_gg(T98, T99, le33_in_gg(T98, T99))
le33_in_gg(0, s(0)) → le33_out_gg(0, s(0))
le33_in_gg(0, 0) → le33_out_gg(0, 0)
U6_gg(T98, T99, le33_out_gg(T98, T99)) → le33_out_gg(s(T98), s(T99))
U4_ggaa(T83, T84, T85, X170, X171, le33_out_gg(T83, T84)) → part20_out_ggaa(T83, .(T84, T85), X170, .(T84, X171))
U4_ggaa(T83, T84, T85, X170, X171, le33_out_gg(T83, T84)) → U5_ggaa(T83, T84, T85, X170, X171, part20_in_ggaa(T83, T85, X170, X171))
part20_in_ggaa(T107, [], [], []) → part20_out_ggaa(T107, [], [], [])
U5_ggaa(T83, T84, T85, X170, X171, part20_out_ggaa(T83, T85, X170, X171)) → part20_out_ggaa(T83, .(T84, T85), X170, .(T84, X171))
U3_ggaa(T61, T62, T63, X119, X120, part20_out_ggaa(T61, T63, X119, X120)) → part20_out_ggaa(T61, .(T62, T63), .(T62, X119), X120)
U20_ga(T22, T23, T24, T9, part20_out_ggaa(T22, T24, X47, X48)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U19_ga(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → U21_ga(T22, T23, T24, T9, part20_in_ggaa(T22, T24, T44, T45))
U21_ga(T22, T23, T24, T9, part20_out_ggaa(T22, T24, T44, T45)) → U22_ga(T22, T23, T24, T9, qs1_in_aa(.(T23, T44), X9))
qs1_in_aa(.(T22, .(T23, T24)), T9) → U19_aa(T22, T23, T24, T9, gt10_in_aa(T22, T23))
gt10_in_aa(s(T37), s(T38)) → U1_aa(T37, T38, gt10_in_aa(T37, T38))
gt10_in_aa(s(0), 0) → gt10_out_aa(s(0), 0)
U1_aa(T37, T38, gt10_out_aa(T37, T38)) → gt10_out_aa(s(T37), s(T38))
U19_aa(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U19_aa(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → U20_aa(T22, T23, T24, T9, part20_in_gaaa(T22, T24, X47, X48))
part20_in_gaaa(T61, .(T62, T63), .(T62, X119), X120) → U2_gaaa(T61, T62, T63, X119, X120, gt10_in_ga(T61, T62))
gt10_in_ga(s(T37), s(T38)) → U1_ga(T37, T38, gt10_in_ga(T37, T38))
gt10_in_ga(s(0), 0) → gt10_out_ga(s(0), 0)
U1_ga(T37, T38, gt10_out_ga(T37, T38)) → gt10_out_ga(s(T37), s(T38))
U2_gaaa(T61, T62, T63, X119, X120, gt10_out_ga(T61, T62)) → part20_out_gaaa(T61, .(T62, T63), .(T62, X119), X120)
U2_gaaa(T61, T62, T63, X119, X120, gt10_out_ga(T61, T62)) → U3_gaaa(T61, T62, T63, X119, X120, part20_in_gaaa(T61, T63, X119, X120))
part20_in_gaaa(T83, .(T84, T85), X170, .(T84, X171)) → U4_gaaa(T83, T84, T85, X170, X171, le33_in_ga(T83, T84))
le33_in_ga(s(T98), s(T99)) → U6_ga(T98, T99, le33_in_ga(T98, T99))
le33_in_ga(0, s(0)) → le33_out_ga(0, s(0))
le33_in_ga(0, 0) → le33_out_ga(0, 0)
U6_ga(T98, T99, le33_out_ga(T98, T99)) → le33_out_ga(s(T98), s(T99))
U4_gaaa(T83, T84, T85, X170, X171, le33_out_ga(T83, T84)) → part20_out_gaaa(T83, .(T84, T85), X170, .(T84, X171))
U4_gaaa(T83, T84, T85, X170, X171, le33_out_ga(T83, T84)) → U5_gaaa(T83, T84, T85, X170, X171, part20_in_gaaa(T83, T85, X170, X171))
part20_in_gaaa(T107, [], [], []) → part20_out_gaaa(T107, [], [], [])
U5_gaaa(T83, T84, T85, X170, X171, part20_out_gaaa(T83, T85, X170, X171)) → part20_out_gaaa(T83, .(T84, T85), X170, .(T84, X171))
U3_gaaa(T61, T62, T63, X119, X120, part20_out_gaaa(T61, T63, X119, X120)) → part20_out_gaaa(T61, .(T62, T63), .(T62, X119), X120)
U20_aa(T22, T23, T24, T9, part20_out_gaaa(T22, T24, X47, X48)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U19_aa(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → U21_aa(T22, T23, T24, T9, part20_in_gaaa(T22, T24, T44, T45))
U21_aa(T22, T23, T24, T9, part20_out_gaaa(T22, T24, T44, T45)) → U22_aa(T22, T23, T24, T9, qs1_in_aa(.(T23, T44), X9))
qs1_in_aa(.(T234, .(T235, T236)), T9) → U25_aa(T234, T235, T236, T9, le33_in_aa(T234, T235))
le33_in_aa(s(T98), s(T99)) → U6_aa(T98, T99, le33_in_aa(T98, T99))
le33_in_aa(0, s(0)) → le33_out_aa(0, s(0))
le33_in_aa(0, 0) → le33_out_aa(0, 0)
U6_aa(T98, T99, le33_out_aa(T98, T99)) → le33_out_aa(s(T98), s(T99))
U25_aa(T234, T235, T236, T9, le33_out_aa(T234, T235)) → qs1_out_aa(.(T234, .(T235, T236)), T9)
U25_aa(T234, T235, T236, T9, le33_out_aa(T234, T235)) → U26_aa(T234, T235, T236, T9, part20_in_gaaa(T234, T236, X431, X432))
U26_aa(T234, T235, T236, T9, part20_out_gaaa(T234, T236, X431, X432)) → qs1_out_aa(.(T234, .(T235, T236)), T9)
U25_aa(T234, T235, T236, T9, le33_out_aa(T234, T235)) → U27_aa(T234, T235, T236, T9, part20_in_gaaa(T234, T236, T244, T245))
U27_aa(T234, T235, T236, T9, part20_out_gaaa(T234, T236, T244, T245)) → U28_aa(T234, T235, T236, T9, qs53_in_aa(T244, X9))
qs53_in_aa(.(T126, T127), X269) → U7_aa(T126, T127, X269, part20_in_aaaa(T126, T127, X265, X266))
part20_in_aaaa(T61, .(T62, T63), .(T62, X119), X120) → U2_aaaa(T61, T62, T63, X119, X120, gt10_in_aa(T61, T62))
U2_aaaa(T61, T62, T63, X119, X120, gt10_out_aa(T61, T62)) → part20_out_aaaa(T61, .(T62, T63), .(T62, X119), X120)
U2_aaaa(T61, T62, T63, X119, X120, gt10_out_aa(T61, T62)) → U3_aaaa(T61, T62, T63, X119, X120, part20_in_gaaa(T61, T63, X119, X120))
U3_aaaa(T61, T62, T63, X119, X120, part20_out_gaaa(T61, T63, X119, X120)) → part20_out_aaaa(T61, .(T62, T63), .(T62, X119), X120)
part20_in_aaaa(T83, .(T84, T85), X170, .(T84, X171)) → U4_aaaa(T83, T84, T85, X170, X171, le33_in_aa(T83, T84))
U4_aaaa(T83, T84, T85, X170, X171, le33_out_aa(T83, T84)) → part20_out_aaaa(T83, .(T84, T85), X170, .(T84, X171))
U4_aaaa(T83, T84, T85, X170, X171, le33_out_aa(T83, T84)) → U5_aaaa(T83, T84, T85, X170, X171, part20_in_gaaa(T83, T85, X170, X171))
U5_aaaa(T83, T84, T85, X170, X171, part20_out_gaaa(T83, T85, X170, X171)) → part20_out_aaaa(T83, .(T84, T85), X170, .(T84, X171))
part20_in_aaaa(T107, [], [], []) → part20_out_aaaa(T107, [], [], [])
U7_aa(T126, T127, X269, part20_out_aaaa(T126, T127, X265, X266)) → qs53_out_aa(.(T126, T127), X269)
qs53_in_aa(.(T126, T127), X269) → U8_aa(T126, T127, X269, part20_in_aaaa(T126, T127, T131, T132))
U8_aa(T126, T127, X269, part20_out_aaaa(T126, T127, T131, T132)) → U9_aa(T126, T127, X269, qs53_in_aa(T131, X267))
qs53_in_aa([], []) → qs53_out_aa([], [])
U9_aa(T126, T127, X269, qs53_out_aa(T131, X267)) → qs53_out_aa(.(T126, T127), X269)
U8_aa(T126, T127, X269, part20_out_aaaa(T126, T127, T131, T132)) → U10_aa(T126, T127, X269, T132, qs53_in_aa(T131, T138))
U10_aa(T126, T127, X269, T132, qs53_out_aa(T131, T138)) → U11_aa(T126, T127, X269, qs53_in_aa(T132, X268))
U11_aa(T126, T127, X269, qs53_out_aa(T132, X268)) → qs53_out_aa(.(T126, T127), X269)
U10_aa(T126, T127, X269, T132, qs53_out_aa(T131, T138)) → U12_aa(T126, T127, X269, T138, qs53_in_aa(T132, T143))
U12_aa(T126, T127, X269, T138, qs53_out_aa(T132, T143)) → U13_aa(T126, T127, X269, app65_in_aaaa(T138, T126, T143, X269))
app65_in_aaaa(.(T166, T167), T168, T169, .(T166, X348)) → U14_aaaa(T166, T167, T168, T169, X348, app65_in_aaaa(T167, T168, T169, X348))
app65_in_aaaa([], T178, T179, .(T178, T179)) → app65_out_aaaa([], T178, T179, .(T178, T179))
U14_aaaa(T166, T167, T168, T169, X348, app65_out_aaaa(T167, T168, T169, X348)) → app65_out_aaaa(.(T166, T167), T168, T169, .(T166, X348))
U13_aa(T126, T127, X269, app65_out_aaaa(T138, T126, T143, X269)) → qs53_out_aa(.(T126, T127), X269)
U28_aa(T234, T235, T236, T9, qs53_out_aa(T244, X9)) → qs1_out_aa(.(T234, .(T235, T236)), T9)
U27_aa(T234, T235, T236, T9, part20_out_gaaa(T234, T236, T244, T245)) → U29_aa(T234, T235, T236, T9, T245, qs53_in_aa(T244, T251))
U29_aa(T234, T235, T236, T9, T245, qs53_out_aa(T244, T251)) → U30_aa(T234, T235, T236, T9, p52_in_aaaga(.(T235, T245), X10, T251, T234, T9))
p52_in_aaaga(T45, X10, T110, T22, T9) → U16_aaaga(T45, X10, T110, T22, T9, qs53_in_aa(T45, X10))
U16_aaaga(T45, X10, T110, T22, T9, qs53_out_aa(T45, X10)) → p52_out_aaaga(T45, X10, T110, T22, T9)
p52_in_aaaga(T45, T115, T110, T22, T9) → U17_aaaga(T45, T115, T110, T22, T9, qs53_in_aa(T45, T115))
U17_aaaga(T45, T115, T110, T22, T9, qs53_out_aa(T45, T115)) → U18_aaaga(T45, T115, T110, T22, T9, app54_in_agaa(T110, T22, T115, T9))
app54_in_agaa(.(T205, T206), T207, T208, .(T205, T210)) → U15_agaa(T205, T206, T207, T208, T210, app54_in_agaa(T206, T207, T208, T210))
app54_in_agaa([], T220, T221, .(T220, T221)) → app54_out_agaa([], T220, T221, .(T220, T221))
U15_agaa(T205, T206, T207, T208, T210, app54_out_agaa(T206, T207, T208, T210)) → app54_out_agaa(.(T205, T206), T207, T208, .(T205, T210))
U18_aaaga(T45, T115, T110, T22, T9, app54_out_agaa(T110, T22, T115, T9)) → p52_out_aaaga(T45, T115, T110, T22, T9)
U30_aa(T234, T235, T236, T9, p52_out_aaaga(.(T235, T245), X10, T251, T234, T9)) → qs1_out_aa(.(T234, .(T235, T236)), T9)
qs1_in_aa(.(T260, []), T9) → U31_aa(T260, T9, qs99_in_a(X9))
qs99_in_a([]) → qs99_out_a([])
U31_aa(T260, T9, qs99_out_a(X9)) → qs1_out_aa(.(T260, []), T9)
qs1_in_aa(.(T260, []), T9) → U32_aa(T260, T9, qs99_in_a(T263))
U32_aa(T260, T9, qs99_out_a(T263)) → U33_aa(T260, T9, qs99_in_a(X10))
U33_aa(T260, T9, qs99_out_a(X10)) → qs1_out_aa(.(T260, []), T9)
U32_aa(T260, T9, qs99_out_a(T263)) → U34_aa(T260, T9, T263, qs99_in_a(T268))
U34_aa(T260, T9, T263, qs99_out_a(T268)) → U35_aa(T260, T9, app54_in_gaga(T263, T260, T268, T9))
app54_in_gaga(.(T205, T206), T207, T208, .(T205, T210)) → U15_gaga(T205, T206, T207, T208, T210, app54_in_gaga(T206, T207, T208, T210))
app54_in_gaga([], T220, T221, .(T220, T221)) → app54_out_gaga([], T220, T221, .(T220, T221))
U15_gaga(T205, T206, T207, T208, T210, app54_out_gaga(T206, T207, T208, T210)) → app54_out_gaga(.(T205, T206), T207, T208, .(T205, T210))
U35_aa(T260, T9, app54_out_gaga(T263, T260, T268, T9)) → qs1_out_aa(.(T260, []), T9)
qs1_in_aa([], []) → qs1_out_aa([], [])
U22_aa(T22, T23, T24, T9, qs1_out_aa(.(T23, T44), X9)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U21_aa(T22, T23, T24, T9, part20_out_gaaa(T22, T24, T44, T45)) → U23_aa(T22, T23, T24, T9, T45, qs1_in_aa(.(T23, T44), T110))
U23_aa(T22, T23, T24, T9, T45, qs1_out_aa(.(T23, T44), T110)) → U24_aa(T22, T23, T24, T9, p52_in_aaaga(T45, X10, T110, T22, T9))
U24_aa(T22, T23, T24, T9, p52_out_aaaga(T45, X10, T110, T22, T9)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U22_ga(T22, T23, T24, T9, qs1_out_aa(.(T23, T44), X9)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U21_ga(T22, T23, T24, T9, part20_out_ggaa(T22, T24, T44, T45)) → U23_ga(T22, T23, T24, T9, T45, qs1_in_aa(.(T23, T44), T110))
U23_ga(T22, T23, T24, T9, T45, qs1_out_aa(.(T23, T44), T110)) → U24_ga(T22, T23, T24, T9, p52_in_aaaga(T45, X10, T110, T22, T9))
U24_ga(T22, T23, T24, T9, p52_out_aaaga(T45, X10, T110, T22, T9)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
qs1_in_ga(.(T234, .(T235, T236)), T9) → U25_ga(T234, T235, T236, T9, le33_in_gg(T234, T235))
U25_ga(T234, T235, T236, T9, le33_out_gg(T234, T235)) → qs1_out_ga(.(T234, .(T235, T236)), T9)
U25_ga(T234, T235, T236, T9, le33_out_gg(T234, T235)) → U26_ga(T234, T235, T236, T9, part20_in_ggaa(T234, T236, X431, X432))
U26_ga(T234, T235, T236, T9, part20_out_ggaa(T234, T236, X431, X432)) → qs1_out_ga(.(T234, .(T235, T236)), T9)
U25_ga(T234, T235, T236, T9, le33_out_gg(T234, T235)) → U27_ga(T234, T235, T236, T9, part20_in_ggaa(T234, T236, T244, T245))
U27_ga(T234, T235, T236, T9, part20_out_ggaa(T234, T236, T244, T245)) → U28_ga(T234, T235, T236, T9, qs53_in_aa(T244, X9))
U28_ga(T234, T235, T236, T9, qs53_out_aa(T244, X9)) → qs1_out_ga(.(T234, .(T235, T236)), T9)
U27_ga(T234, T235, T236, T9, part20_out_ggaa(T234, T236, T244, T245)) → U29_ga(T234, T235, T236, T9, T245, qs53_in_aa(T244, T251))
U29_ga(T234, T235, T236, T9, T245, qs53_out_aa(T244, T251)) → U30_ga(T234, T235, T236, T9, p52_in_aaaga(.(T235, T245), X10, T251, T234, T9))
U30_ga(T234, T235, T236, T9, p52_out_aaaga(.(T235, T245), X10, T251, T234, T9)) → qs1_out_ga(.(T234, .(T235, T236)), T9)
qs1_in_ga(.(T260, []), T9) → U31_ga(T260, T9, qs99_in_a(X9))
U31_ga(T260, T9, qs99_out_a(X9)) → qs1_out_ga(.(T260, []), T9)
qs1_in_ga(.(T260, []), T9) → U32_ga(T260, T9, qs99_in_a(T263))
U32_ga(T260, T9, qs99_out_a(T263)) → U33_ga(T260, T9, qs99_in_a(X10))
U33_ga(T260, T9, qs99_out_a(X10)) → qs1_out_ga(.(T260, []), T9)
U32_ga(T260, T9, qs99_out_a(T263)) → U34_ga(T260, T9, T263, qs99_in_a(T268))
U34_ga(T260, T9, T263, qs99_out_a(T268)) → U35_ga(T260, T9, app54_in_ggga(T263, T260, T268, T9))
app54_in_ggga(.(T205, T206), T207, T208, .(T205, T210)) → U15_ggga(T205, T206, T207, T208, T210, app54_in_ggga(T206, T207, T208, T210))
app54_in_ggga([], T220, T221, .(T220, T221)) → app54_out_ggga([], T220, T221, .(T220, T221))
U15_ggga(T205, T206, T207, T208, T210, app54_out_ggga(T206, T207, T208, T210)) → app54_out_ggga(.(T205, T206), T207, T208, .(T205, T210))
U35_ga(T260, T9, app54_out_ggga(T263, T260, T268, T9)) → qs1_out_ga(.(T260, []), T9)
qs1_in_ga([], []) → qs1_out_ga([], [])
LE33_IN_AA(s(T98), s(T99)) → LE33_IN_AA(T98, T99)
LE33_IN_AA → LE33_IN_AA
LE33_IN_GA(s(T98), s(T99)) → LE33_IN_GA(T98, T99)
qs1_in_ga(.(T22, .(T23, T24)), T9) → U19_ga(T22, T23, T24, T9, gt10_in_gg(T22, T23))
gt10_in_gg(s(T37), s(T38)) → U1_gg(T37, T38, gt10_in_gg(T37, T38))
gt10_in_gg(s(0), 0) → gt10_out_gg(s(0), 0)
U1_gg(T37, T38, gt10_out_gg(T37, T38)) → gt10_out_gg(s(T37), s(T38))
U19_ga(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U19_ga(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → U20_ga(T22, T23, T24, T9, part20_in_ggaa(T22, T24, X47, X48))
part20_in_ggaa(T61, .(T62, T63), .(T62, X119), X120) → U2_ggaa(T61, T62, T63, X119, X120, gt10_in_gg(T61, T62))
U2_ggaa(T61, T62, T63, X119, X120, gt10_out_gg(T61, T62)) → part20_out_ggaa(T61, .(T62, T63), .(T62, X119), X120)
U2_ggaa(T61, T62, T63, X119, X120, gt10_out_gg(T61, T62)) → U3_ggaa(T61, T62, T63, X119, X120, part20_in_ggaa(T61, T63, X119, X120))
part20_in_ggaa(T83, .(T84, T85), X170, .(T84, X171)) → U4_ggaa(T83, T84, T85, X170, X171, le33_in_gg(T83, T84))
le33_in_gg(s(T98), s(T99)) → U6_gg(T98, T99, le33_in_gg(T98, T99))
le33_in_gg(0, s(0)) → le33_out_gg(0, s(0))
le33_in_gg(0, 0) → le33_out_gg(0, 0)
U6_gg(T98, T99, le33_out_gg(T98, T99)) → le33_out_gg(s(T98), s(T99))
U4_ggaa(T83, T84, T85, X170, X171, le33_out_gg(T83, T84)) → part20_out_ggaa(T83, .(T84, T85), X170, .(T84, X171))
U4_ggaa(T83, T84, T85, X170, X171, le33_out_gg(T83, T84)) → U5_ggaa(T83, T84, T85, X170, X171, part20_in_ggaa(T83, T85, X170, X171))
part20_in_ggaa(T107, [], [], []) → part20_out_ggaa(T107, [], [], [])
U5_ggaa(T83, T84, T85, X170, X171, part20_out_ggaa(T83, T85, X170, X171)) → part20_out_ggaa(T83, .(T84, T85), X170, .(T84, X171))
U3_ggaa(T61, T62, T63, X119, X120, part20_out_ggaa(T61, T63, X119, X120)) → part20_out_ggaa(T61, .(T62, T63), .(T62, X119), X120)
U20_ga(T22, T23, T24, T9, part20_out_ggaa(T22, T24, X47, X48)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U19_ga(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → U21_ga(T22, T23, T24, T9, part20_in_ggaa(T22, T24, T44, T45))
U21_ga(T22, T23, T24, T9, part20_out_ggaa(T22, T24, T44, T45)) → U22_ga(T22, T23, T24, T9, qs1_in_aa(.(T23, T44), X9))
qs1_in_aa(.(T22, .(T23, T24)), T9) → U19_aa(T22, T23, T24, T9, gt10_in_aa(T22, T23))
gt10_in_aa(s(T37), s(T38)) → U1_aa(T37, T38, gt10_in_aa(T37, T38))
gt10_in_aa(s(0), 0) → gt10_out_aa(s(0), 0)
U1_aa(T37, T38, gt10_out_aa(T37, T38)) → gt10_out_aa(s(T37), s(T38))
U19_aa(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U19_aa(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → U20_aa(T22, T23, T24, T9, part20_in_gaaa(T22, T24, X47, X48))
part20_in_gaaa(T61, .(T62, T63), .(T62, X119), X120) → U2_gaaa(T61, T62, T63, X119, X120, gt10_in_ga(T61, T62))
gt10_in_ga(s(T37), s(T38)) → U1_ga(T37, T38, gt10_in_ga(T37, T38))
gt10_in_ga(s(0), 0) → gt10_out_ga(s(0), 0)
U1_ga(T37, T38, gt10_out_ga(T37, T38)) → gt10_out_ga(s(T37), s(T38))
U2_gaaa(T61, T62, T63, X119, X120, gt10_out_ga(T61, T62)) → part20_out_gaaa(T61, .(T62, T63), .(T62, X119), X120)
U2_gaaa(T61, T62, T63, X119, X120, gt10_out_ga(T61, T62)) → U3_gaaa(T61, T62, T63, X119, X120, part20_in_gaaa(T61, T63, X119, X120))
part20_in_gaaa(T83, .(T84, T85), X170, .(T84, X171)) → U4_gaaa(T83, T84, T85, X170, X171, le33_in_ga(T83, T84))
le33_in_ga(s(T98), s(T99)) → U6_ga(T98, T99, le33_in_ga(T98, T99))
le33_in_ga(0, s(0)) → le33_out_ga(0, s(0))
le33_in_ga(0, 0) → le33_out_ga(0, 0)
U6_ga(T98, T99, le33_out_ga(T98, T99)) → le33_out_ga(s(T98), s(T99))
U4_gaaa(T83, T84, T85, X170, X171, le33_out_ga(T83, T84)) → part20_out_gaaa(T83, .(T84, T85), X170, .(T84, X171))
U4_gaaa(T83, T84, T85, X170, X171, le33_out_ga(T83, T84)) → U5_gaaa(T83, T84, T85, X170, X171, part20_in_gaaa(T83, T85, X170, X171))
part20_in_gaaa(T107, [], [], []) → part20_out_gaaa(T107, [], [], [])
U5_gaaa(T83, T84, T85, X170, X171, part20_out_gaaa(T83, T85, X170, X171)) → part20_out_gaaa(T83, .(T84, T85), X170, .(T84, X171))
U3_gaaa(T61, T62, T63, X119, X120, part20_out_gaaa(T61, T63, X119, X120)) → part20_out_gaaa(T61, .(T62, T63), .(T62, X119), X120)
U20_aa(T22, T23, T24, T9, part20_out_gaaa(T22, T24, X47, X48)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U19_aa(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → U21_aa(T22, T23, T24, T9, part20_in_gaaa(T22, T24, T44, T45))
U21_aa(T22, T23, T24, T9, part20_out_gaaa(T22, T24, T44, T45)) → U22_aa(T22, T23, T24, T9, qs1_in_aa(.(T23, T44), X9))
qs1_in_aa(.(T234, .(T235, T236)), T9) → U25_aa(T234, T235, T236, T9, le33_in_aa(T234, T235))
le33_in_aa(s(T98), s(T99)) → U6_aa(T98, T99, le33_in_aa(T98, T99))
le33_in_aa(0, s(0)) → le33_out_aa(0, s(0))
le33_in_aa(0, 0) → le33_out_aa(0, 0)
U6_aa(T98, T99, le33_out_aa(T98, T99)) → le33_out_aa(s(T98), s(T99))
U25_aa(T234, T235, T236, T9, le33_out_aa(T234, T235)) → qs1_out_aa(.(T234, .(T235, T236)), T9)
U25_aa(T234, T235, T236, T9, le33_out_aa(T234, T235)) → U26_aa(T234, T235, T236, T9, part20_in_gaaa(T234, T236, X431, X432))
U26_aa(T234, T235, T236, T9, part20_out_gaaa(T234, T236, X431, X432)) → qs1_out_aa(.(T234, .(T235, T236)), T9)
U25_aa(T234, T235, T236, T9, le33_out_aa(T234, T235)) → U27_aa(T234, T235, T236, T9, part20_in_gaaa(T234, T236, T244, T245))
U27_aa(T234, T235, T236, T9, part20_out_gaaa(T234, T236, T244, T245)) → U28_aa(T234, T235, T236, T9, qs53_in_aa(T244, X9))
qs53_in_aa(.(T126, T127), X269) → U7_aa(T126, T127, X269, part20_in_aaaa(T126, T127, X265, X266))
part20_in_aaaa(T61, .(T62, T63), .(T62, X119), X120) → U2_aaaa(T61, T62, T63, X119, X120, gt10_in_aa(T61, T62))
U2_aaaa(T61, T62, T63, X119, X120, gt10_out_aa(T61, T62)) → part20_out_aaaa(T61, .(T62, T63), .(T62, X119), X120)
U2_aaaa(T61, T62, T63, X119, X120, gt10_out_aa(T61, T62)) → U3_aaaa(T61, T62, T63, X119, X120, part20_in_gaaa(T61, T63, X119, X120))
U3_aaaa(T61, T62, T63, X119, X120, part20_out_gaaa(T61, T63, X119, X120)) → part20_out_aaaa(T61, .(T62, T63), .(T62, X119), X120)
part20_in_aaaa(T83, .(T84, T85), X170, .(T84, X171)) → U4_aaaa(T83, T84, T85, X170, X171, le33_in_aa(T83, T84))
U4_aaaa(T83, T84, T85, X170, X171, le33_out_aa(T83, T84)) → part20_out_aaaa(T83, .(T84, T85), X170, .(T84, X171))
U4_aaaa(T83, T84, T85, X170, X171, le33_out_aa(T83, T84)) → U5_aaaa(T83, T84, T85, X170, X171, part20_in_gaaa(T83, T85, X170, X171))
U5_aaaa(T83, T84, T85, X170, X171, part20_out_gaaa(T83, T85, X170, X171)) → part20_out_aaaa(T83, .(T84, T85), X170, .(T84, X171))
part20_in_aaaa(T107, [], [], []) → part20_out_aaaa(T107, [], [], [])
U7_aa(T126, T127, X269, part20_out_aaaa(T126, T127, X265, X266)) → qs53_out_aa(.(T126, T127), X269)
qs53_in_aa(.(T126, T127), X269) → U8_aa(T126, T127, X269, part20_in_aaaa(T126, T127, T131, T132))
U8_aa(T126, T127, X269, part20_out_aaaa(T126, T127, T131, T132)) → U9_aa(T126, T127, X269, qs53_in_aa(T131, X267))
qs53_in_aa([], []) → qs53_out_aa([], [])
U9_aa(T126, T127, X269, qs53_out_aa(T131, X267)) → qs53_out_aa(.(T126, T127), X269)
U8_aa(T126, T127, X269, part20_out_aaaa(T126, T127, T131, T132)) → U10_aa(T126, T127, X269, T132, qs53_in_aa(T131, T138))
U10_aa(T126, T127, X269, T132, qs53_out_aa(T131, T138)) → U11_aa(T126, T127, X269, qs53_in_aa(T132, X268))
U11_aa(T126, T127, X269, qs53_out_aa(T132, X268)) → qs53_out_aa(.(T126, T127), X269)
U10_aa(T126, T127, X269, T132, qs53_out_aa(T131, T138)) → U12_aa(T126, T127, X269, T138, qs53_in_aa(T132, T143))
U12_aa(T126, T127, X269, T138, qs53_out_aa(T132, T143)) → U13_aa(T126, T127, X269, app65_in_aaaa(T138, T126, T143, X269))
app65_in_aaaa(.(T166, T167), T168, T169, .(T166, X348)) → U14_aaaa(T166, T167, T168, T169, X348, app65_in_aaaa(T167, T168, T169, X348))
app65_in_aaaa([], T178, T179, .(T178, T179)) → app65_out_aaaa([], T178, T179, .(T178, T179))
U14_aaaa(T166, T167, T168, T169, X348, app65_out_aaaa(T167, T168, T169, X348)) → app65_out_aaaa(.(T166, T167), T168, T169, .(T166, X348))
U13_aa(T126, T127, X269, app65_out_aaaa(T138, T126, T143, X269)) → qs53_out_aa(.(T126, T127), X269)
U28_aa(T234, T235, T236, T9, qs53_out_aa(T244, X9)) → qs1_out_aa(.(T234, .(T235, T236)), T9)
U27_aa(T234, T235, T236, T9, part20_out_gaaa(T234, T236, T244, T245)) → U29_aa(T234, T235, T236, T9, T245, qs53_in_aa(T244, T251))
U29_aa(T234, T235, T236, T9, T245, qs53_out_aa(T244, T251)) → U30_aa(T234, T235, T236, T9, p52_in_aaaga(.(T235, T245), X10, T251, T234, T9))
p52_in_aaaga(T45, X10, T110, T22, T9) → U16_aaaga(T45, X10, T110, T22, T9, qs53_in_aa(T45, X10))
U16_aaaga(T45, X10, T110, T22, T9, qs53_out_aa(T45, X10)) → p52_out_aaaga(T45, X10, T110, T22, T9)
p52_in_aaaga(T45, T115, T110, T22, T9) → U17_aaaga(T45, T115, T110, T22, T9, qs53_in_aa(T45, T115))
U17_aaaga(T45, T115, T110, T22, T9, qs53_out_aa(T45, T115)) → U18_aaaga(T45, T115, T110, T22, T9, app54_in_agaa(T110, T22, T115, T9))
app54_in_agaa(.(T205, T206), T207, T208, .(T205, T210)) → U15_agaa(T205, T206, T207, T208, T210, app54_in_agaa(T206, T207, T208, T210))
app54_in_agaa([], T220, T221, .(T220, T221)) → app54_out_agaa([], T220, T221, .(T220, T221))
U15_agaa(T205, T206, T207, T208, T210, app54_out_agaa(T206, T207, T208, T210)) → app54_out_agaa(.(T205, T206), T207, T208, .(T205, T210))
U18_aaaga(T45, T115, T110, T22, T9, app54_out_agaa(T110, T22, T115, T9)) → p52_out_aaaga(T45, T115, T110, T22, T9)
U30_aa(T234, T235, T236, T9, p52_out_aaaga(.(T235, T245), X10, T251, T234, T9)) → qs1_out_aa(.(T234, .(T235, T236)), T9)
qs1_in_aa(.(T260, []), T9) → U31_aa(T260, T9, qs99_in_a(X9))
qs99_in_a([]) → qs99_out_a([])
U31_aa(T260, T9, qs99_out_a(X9)) → qs1_out_aa(.(T260, []), T9)
qs1_in_aa(.(T260, []), T9) → U32_aa(T260, T9, qs99_in_a(T263))
U32_aa(T260, T9, qs99_out_a(T263)) → U33_aa(T260, T9, qs99_in_a(X10))
U33_aa(T260, T9, qs99_out_a(X10)) → qs1_out_aa(.(T260, []), T9)
U32_aa(T260, T9, qs99_out_a(T263)) → U34_aa(T260, T9, T263, qs99_in_a(T268))
U34_aa(T260, T9, T263, qs99_out_a(T268)) → U35_aa(T260, T9, app54_in_gaga(T263, T260, T268, T9))
app54_in_gaga(.(T205, T206), T207, T208, .(T205, T210)) → U15_gaga(T205, T206, T207, T208, T210, app54_in_gaga(T206, T207, T208, T210))
app54_in_gaga([], T220, T221, .(T220, T221)) → app54_out_gaga([], T220, T221, .(T220, T221))
U15_gaga(T205, T206, T207, T208, T210, app54_out_gaga(T206, T207, T208, T210)) → app54_out_gaga(.(T205, T206), T207, T208, .(T205, T210))
U35_aa(T260, T9, app54_out_gaga(T263, T260, T268, T9)) → qs1_out_aa(.(T260, []), T9)
qs1_in_aa([], []) → qs1_out_aa([], [])
U22_aa(T22, T23, T24, T9, qs1_out_aa(.(T23, T44), X9)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U21_aa(T22, T23, T24, T9, part20_out_gaaa(T22, T24, T44, T45)) → U23_aa(T22, T23, T24, T9, T45, qs1_in_aa(.(T23, T44), T110))
U23_aa(T22, T23, T24, T9, T45, qs1_out_aa(.(T23, T44), T110)) → U24_aa(T22, T23, T24, T9, p52_in_aaaga(T45, X10, T110, T22, T9))
U24_aa(T22, T23, T24, T9, p52_out_aaaga(T45, X10, T110, T22, T9)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U22_ga(T22, T23, T24, T9, qs1_out_aa(.(T23, T44), X9)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U21_ga(T22, T23, T24, T9, part20_out_ggaa(T22, T24, T44, T45)) → U23_ga(T22, T23, T24, T9, T45, qs1_in_aa(.(T23, T44), T110))
U23_ga(T22, T23, T24, T9, T45, qs1_out_aa(.(T23, T44), T110)) → U24_ga(T22, T23, T24, T9, p52_in_aaaga(T45, X10, T110, T22, T9))
U24_ga(T22, T23, T24, T9, p52_out_aaaga(T45, X10, T110, T22, T9)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
qs1_in_ga(.(T234, .(T235, T236)), T9) → U25_ga(T234, T235, T236, T9, le33_in_gg(T234, T235))
U25_ga(T234, T235, T236, T9, le33_out_gg(T234, T235)) → qs1_out_ga(.(T234, .(T235, T236)), T9)
U25_ga(T234, T235, T236, T9, le33_out_gg(T234, T235)) → U26_ga(T234, T235, T236, T9, part20_in_ggaa(T234, T236, X431, X432))
U26_ga(T234, T235, T236, T9, part20_out_ggaa(T234, T236, X431, X432)) → qs1_out_ga(.(T234, .(T235, T236)), T9)
U25_ga(T234, T235, T236, T9, le33_out_gg(T234, T235)) → U27_ga(T234, T235, T236, T9, part20_in_ggaa(T234, T236, T244, T245))
U27_ga(T234, T235, T236, T9, part20_out_ggaa(T234, T236, T244, T245)) → U28_ga(T234, T235, T236, T9, qs53_in_aa(T244, X9))
U28_ga(T234, T235, T236, T9, qs53_out_aa(T244, X9)) → qs1_out_ga(.(T234, .(T235, T236)), T9)
U27_ga(T234, T235, T236, T9, part20_out_ggaa(T234, T236, T244, T245)) → U29_ga(T234, T235, T236, T9, T245, qs53_in_aa(T244, T251))
U29_ga(T234, T235, T236, T9, T245, qs53_out_aa(T244, T251)) → U30_ga(T234, T235, T236, T9, p52_in_aaaga(.(T235, T245), X10, T251, T234, T9))
U30_ga(T234, T235, T236, T9, p52_out_aaaga(.(T235, T245), X10, T251, T234, T9)) → qs1_out_ga(.(T234, .(T235, T236)), T9)
qs1_in_ga(.(T260, []), T9) → U31_ga(T260, T9, qs99_in_a(X9))
U31_ga(T260, T9, qs99_out_a(X9)) → qs1_out_ga(.(T260, []), T9)
qs1_in_ga(.(T260, []), T9) → U32_ga(T260, T9, qs99_in_a(T263))
U32_ga(T260, T9, qs99_out_a(T263)) → U33_ga(T260, T9, qs99_in_a(X10))
U33_ga(T260, T9, qs99_out_a(X10)) → qs1_out_ga(.(T260, []), T9)
U32_ga(T260, T9, qs99_out_a(T263)) → U34_ga(T260, T9, T263, qs99_in_a(T268))
U34_ga(T260, T9, T263, qs99_out_a(T268)) → U35_ga(T260, T9, app54_in_ggga(T263, T260, T268, T9))
app54_in_ggga(.(T205, T206), T207, T208, .(T205, T210)) → U15_ggga(T205, T206, T207, T208, T210, app54_in_ggga(T206, T207, T208, T210))
app54_in_ggga([], T220, T221, .(T220, T221)) → app54_out_ggga([], T220, T221, .(T220, T221))
U15_ggga(T205, T206, T207, T208, T210, app54_out_ggga(T206, T207, T208, T210)) → app54_out_ggga(.(T205, T206), T207, T208, .(T205, T210))
U35_ga(T260, T9, app54_out_ggga(T263, T260, T268, T9)) → qs1_out_ga(.(T260, []), T9)
qs1_in_ga([], []) → qs1_out_ga([], [])
LE33_IN_GA(s(T98), s(T99)) → LE33_IN_GA(T98, T99)
LE33_IN_GA(s(T98)) → LE33_IN_GA(T98)
From the DPs we obtained the following set of size-change graphs:
GT10_IN_GA(s(T37), s(T38)) → GT10_IN_GA(T37, T38)
qs1_in_ga(.(T22, .(T23, T24)), T9) → U19_ga(T22, T23, T24, T9, gt10_in_gg(T22, T23))
gt10_in_gg(s(T37), s(T38)) → U1_gg(T37, T38, gt10_in_gg(T37, T38))
gt10_in_gg(s(0), 0) → gt10_out_gg(s(0), 0)
U1_gg(T37, T38, gt10_out_gg(T37, T38)) → gt10_out_gg(s(T37), s(T38))
U19_ga(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U19_ga(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → U20_ga(T22, T23, T24, T9, part20_in_ggaa(T22, T24, X47, X48))
part20_in_ggaa(T61, .(T62, T63), .(T62, X119), X120) → U2_ggaa(T61, T62, T63, X119, X120, gt10_in_gg(T61, T62))
U2_ggaa(T61, T62, T63, X119, X120, gt10_out_gg(T61, T62)) → part20_out_ggaa(T61, .(T62, T63), .(T62, X119), X120)
U2_ggaa(T61, T62, T63, X119, X120, gt10_out_gg(T61, T62)) → U3_ggaa(T61, T62, T63, X119, X120, part20_in_ggaa(T61, T63, X119, X120))
part20_in_ggaa(T83, .(T84, T85), X170, .(T84, X171)) → U4_ggaa(T83, T84, T85, X170, X171, le33_in_gg(T83, T84))
le33_in_gg(s(T98), s(T99)) → U6_gg(T98, T99, le33_in_gg(T98, T99))
le33_in_gg(0, s(0)) → le33_out_gg(0, s(0))
le33_in_gg(0, 0) → le33_out_gg(0, 0)
U6_gg(T98, T99, le33_out_gg(T98, T99)) → le33_out_gg(s(T98), s(T99))
U4_ggaa(T83, T84, T85, X170, X171, le33_out_gg(T83, T84)) → part20_out_ggaa(T83, .(T84, T85), X170, .(T84, X171))
U4_ggaa(T83, T84, T85, X170, X171, le33_out_gg(T83, T84)) → U5_ggaa(T83, T84, T85, X170, X171, part20_in_ggaa(T83, T85, X170, X171))
part20_in_ggaa(T107, [], [], []) → part20_out_ggaa(T107, [], [], [])
U5_ggaa(T83, T84, T85, X170, X171, part20_out_ggaa(T83, T85, X170, X171)) → part20_out_ggaa(T83, .(T84, T85), X170, .(T84, X171))
U3_ggaa(T61, T62, T63, X119, X120, part20_out_ggaa(T61, T63, X119, X120)) → part20_out_ggaa(T61, .(T62, T63), .(T62, X119), X120)
U20_ga(T22, T23, T24, T9, part20_out_ggaa(T22, T24, X47, X48)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U19_ga(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → U21_ga(T22, T23, T24, T9, part20_in_ggaa(T22, T24, T44, T45))
U21_ga(T22, T23, T24, T9, part20_out_ggaa(T22, T24, T44, T45)) → U22_ga(T22, T23, T24, T9, qs1_in_aa(.(T23, T44), X9))
qs1_in_aa(.(T22, .(T23, T24)), T9) → U19_aa(T22, T23, T24, T9, gt10_in_aa(T22, T23))
gt10_in_aa(s(T37), s(T38)) → U1_aa(T37, T38, gt10_in_aa(T37, T38))
gt10_in_aa(s(0), 0) → gt10_out_aa(s(0), 0)
U1_aa(T37, T38, gt10_out_aa(T37, T38)) → gt10_out_aa(s(T37), s(T38))
U19_aa(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U19_aa(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → U20_aa(T22, T23, T24, T9, part20_in_gaaa(T22, T24, X47, X48))
part20_in_gaaa(T61, .(T62, T63), .(T62, X119), X120) → U2_gaaa(T61, T62, T63, X119, X120, gt10_in_ga(T61, T62))
gt10_in_ga(s(T37), s(T38)) → U1_ga(T37, T38, gt10_in_ga(T37, T38))
gt10_in_ga(s(0), 0) → gt10_out_ga(s(0), 0)
U1_ga(T37, T38, gt10_out_ga(T37, T38)) → gt10_out_ga(s(T37), s(T38))
U2_gaaa(T61, T62, T63, X119, X120, gt10_out_ga(T61, T62)) → part20_out_gaaa(T61, .(T62, T63), .(T62, X119), X120)
U2_gaaa(T61, T62, T63, X119, X120, gt10_out_ga(T61, T62)) → U3_gaaa(T61, T62, T63, X119, X120, part20_in_gaaa(T61, T63, X119, X120))
part20_in_gaaa(T83, .(T84, T85), X170, .(T84, X171)) → U4_gaaa(T83, T84, T85, X170, X171, le33_in_ga(T83, T84))
le33_in_ga(s(T98), s(T99)) → U6_ga(T98, T99, le33_in_ga(T98, T99))
le33_in_ga(0, s(0)) → le33_out_ga(0, s(0))
le33_in_ga(0, 0) → le33_out_ga(0, 0)
U6_ga(T98, T99, le33_out_ga(T98, T99)) → le33_out_ga(s(T98), s(T99))
U4_gaaa(T83, T84, T85, X170, X171, le33_out_ga(T83, T84)) → part20_out_gaaa(T83, .(T84, T85), X170, .(T84, X171))
U4_gaaa(T83, T84, T85, X170, X171, le33_out_ga(T83, T84)) → U5_gaaa(T83, T84, T85, X170, X171, part20_in_gaaa(T83, T85, X170, X171))
part20_in_gaaa(T107, [], [], []) → part20_out_gaaa(T107, [], [], [])
U5_gaaa(T83, T84, T85, X170, X171, part20_out_gaaa(T83, T85, X170, X171)) → part20_out_gaaa(T83, .(T84, T85), X170, .(T84, X171))
U3_gaaa(T61, T62, T63, X119, X120, part20_out_gaaa(T61, T63, X119, X120)) → part20_out_gaaa(T61, .(T62, T63), .(T62, X119), X120)
U20_aa(T22, T23, T24, T9, part20_out_gaaa(T22, T24, X47, X48)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U19_aa(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → U21_aa(T22, T23, T24, T9, part20_in_gaaa(T22, T24, T44, T45))
U21_aa(T22, T23, T24, T9, part20_out_gaaa(T22, T24, T44, T45)) → U22_aa(T22, T23, T24, T9, qs1_in_aa(.(T23, T44), X9))
qs1_in_aa(.(T234, .(T235, T236)), T9) → U25_aa(T234, T235, T236, T9, le33_in_aa(T234, T235))
le33_in_aa(s(T98), s(T99)) → U6_aa(T98, T99, le33_in_aa(T98, T99))
le33_in_aa(0, s(0)) → le33_out_aa(0, s(0))
le33_in_aa(0, 0) → le33_out_aa(0, 0)
U6_aa(T98, T99, le33_out_aa(T98, T99)) → le33_out_aa(s(T98), s(T99))
U25_aa(T234, T235, T236, T9, le33_out_aa(T234, T235)) → qs1_out_aa(.(T234, .(T235, T236)), T9)
U25_aa(T234, T235, T236, T9, le33_out_aa(T234, T235)) → U26_aa(T234, T235, T236, T9, part20_in_gaaa(T234, T236, X431, X432))
U26_aa(T234, T235, T236, T9, part20_out_gaaa(T234, T236, X431, X432)) → qs1_out_aa(.(T234, .(T235, T236)), T9)
U25_aa(T234, T235, T236, T9, le33_out_aa(T234, T235)) → U27_aa(T234, T235, T236, T9, part20_in_gaaa(T234, T236, T244, T245))
U27_aa(T234, T235, T236, T9, part20_out_gaaa(T234, T236, T244, T245)) → U28_aa(T234, T235, T236, T9, qs53_in_aa(T244, X9))
qs53_in_aa(.(T126, T127), X269) → U7_aa(T126, T127, X269, part20_in_aaaa(T126, T127, X265, X266))
part20_in_aaaa(T61, .(T62, T63), .(T62, X119), X120) → U2_aaaa(T61, T62, T63, X119, X120, gt10_in_aa(T61, T62))
U2_aaaa(T61, T62, T63, X119, X120, gt10_out_aa(T61, T62)) → part20_out_aaaa(T61, .(T62, T63), .(T62, X119), X120)
U2_aaaa(T61, T62, T63, X119, X120, gt10_out_aa(T61, T62)) → U3_aaaa(T61, T62, T63, X119, X120, part20_in_gaaa(T61, T63, X119, X120))
U3_aaaa(T61, T62, T63, X119, X120, part20_out_gaaa(T61, T63, X119, X120)) → part20_out_aaaa(T61, .(T62, T63), .(T62, X119), X120)
part20_in_aaaa(T83, .(T84, T85), X170, .(T84, X171)) → U4_aaaa(T83, T84, T85, X170, X171, le33_in_aa(T83, T84))
U4_aaaa(T83, T84, T85, X170, X171, le33_out_aa(T83, T84)) → part20_out_aaaa(T83, .(T84, T85), X170, .(T84, X171))
U4_aaaa(T83, T84, T85, X170, X171, le33_out_aa(T83, T84)) → U5_aaaa(T83, T84, T85, X170, X171, part20_in_gaaa(T83, T85, X170, X171))
U5_aaaa(T83, T84, T85, X170, X171, part20_out_gaaa(T83, T85, X170, X171)) → part20_out_aaaa(T83, .(T84, T85), X170, .(T84, X171))
part20_in_aaaa(T107, [], [], []) → part20_out_aaaa(T107, [], [], [])
U7_aa(T126, T127, X269, part20_out_aaaa(T126, T127, X265, X266)) → qs53_out_aa(.(T126, T127), X269)
qs53_in_aa(.(T126, T127), X269) → U8_aa(T126, T127, X269, part20_in_aaaa(T126, T127, T131, T132))
U8_aa(T126, T127, X269, part20_out_aaaa(T126, T127, T131, T132)) → U9_aa(T126, T127, X269, qs53_in_aa(T131, X267))
qs53_in_aa([], []) → qs53_out_aa([], [])
U9_aa(T126, T127, X269, qs53_out_aa(T131, X267)) → qs53_out_aa(.(T126, T127), X269)
U8_aa(T126, T127, X269, part20_out_aaaa(T126, T127, T131, T132)) → U10_aa(T126, T127, X269, T132, qs53_in_aa(T131, T138))
U10_aa(T126, T127, X269, T132, qs53_out_aa(T131, T138)) → U11_aa(T126, T127, X269, qs53_in_aa(T132, X268))
U11_aa(T126, T127, X269, qs53_out_aa(T132, X268)) → qs53_out_aa(.(T126, T127), X269)
U10_aa(T126, T127, X269, T132, qs53_out_aa(T131, T138)) → U12_aa(T126, T127, X269, T138, qs53_in_aa(T132, T143))
U12_aa(T126, T127, X269, T138, qs53_out_aa(T132, T143)) → U13_aa(T126, T127, X269, app65_in_aaaa(T138, T126, T143, X269))
app65_in_aaaa(.(T166, T167), T168, T169, .(T166, X348)) → U14_aaaa(T166, T167, T168, T169, X348, app65_in_aaaa(T167, T168, T169, X348))
app65_in_aaaa([], T178, T179, .(T178, T179)) → app65_out_aaaa([], T178, T179, .(T178, T179))
U14_aaaa(T166, T167, T168, T169, X348, app65_out_aaaa(T167, T168, T169, X348)) → app65_out_aaaa(.(T166, T167), T168, T169, .(T166, X348))
U13_aa(T126, T127, X269, app65_out_aaaa(T138, T126, T143, X269)) → qs53_out_aa(.(T126, T127), X269)
U28_aa(T234, T235, T236, T9, qs53_out_aa(T244, X9)) → qs1_out_aa(.(T234, .(T235, T236)), T9)
U27_aa(T234, T235, T236, T9, part20_out_gaaa(T234, T236, T244, T245)) → U29_aa(T234, T235, T236, T9, T245, qs53_in_aa(T244, T251))
U29_aa(T234, T235, T236, T9, T245, qs53_out_aa(T244, T251)) → U30_aa(T234, T235, T236, T9, p52_in_aaaga(.(T235, T245), X10, T251, T234, T9))
p52_in_aaaga(T45, X10, T110, T22, T9) → U16_aaaga(T45, X10, T110, T22, T9, qs53_in_aa(T45, X10))
U16_aaaga(T45, X10, T110, T22, T9, qs53_out_aa(T45, X10)) → p52_out_aaaga(T45, X10, T110, T22, T9)
p52_in_aaaga(T45, T115, T110, T22, T9) → U17_aaaga(T45, T115, T110, T22, T9, qs53_in_aa(T45, T115))
U17_aaaga(T45, T115, T110, T22, T9, qs53_out_aa(T45, T115)) → U18_aaaga(T45, T115, T110, T22, T9, app54_in_agaa(T110, T22, T115, T9))
app54_in_agaa(.(T205, T206), T207, T208, .(T205, T210)) → U15_agaa(T205, T206, T207, T208, T210, app54_in_agaa(T206, T207, T208, T210))
app54_in_agaa([], T220, T221, .(T220, T221)) → app54_out_agaa([], T220, T221, .(T220, T221))
U15_agaa(T205, T206, T207, T208, T210, app54_out_agaa(T206, T207, T208, T210)) → app54_out_agaa(.(T205, T206), T207, T208, .(T205, T210))
U18_aaaga(T45, T115, T110, T22, T9, app54_out_agaa(T110, T22, T115, T9)) → p52_out_aaaga(T45, T115, T110, T22, T9)
U30_aa(T234, T235, T236, T9, p52_out_aaaga(.(T235, T245), X10, T251, T234, T9)) → qs1_out_aa(.(T234, .(T235, T236)), T9)
qs1_in_aa(.(T260, []), T9) → U31_aa(T260, T9, qs99_in_a(X9))
qs99_in_a([]) → qs99_out_a([])
U31_aa(T260, T9, qs99_out_a(X9)) → qs1_out_aa(.(T260, []), T9)
qs1_in_aa(.(T260, []), T9) → U32_aa(T260, T9, qs99_in_a(T263))
U32_aa(T260, T9, qs99_out_a(T263)) → U33_aa(T260, T9, qs99_in_a(X10))
U33_aa(T260, T9, qs99_out_a(X10)) → qs1_out_aa(.(T260, []), T9)
U32_aa(T260, T9, qs99_out_a(T263)) → U34_aa(T260, T9, T263, qs99_in_a(T268))
U34_aa(T260, T9, T263, qs99_out_a(T268)) → U35_aa(T260, T9, app54_in_gaga(T263, T260, T268, T9))
app54_in_gaga(.(T205, T206), T207, T208, .(T205, T210)) → U15_gaga(T205, T206, T207, T208, T210, app54_in_gaga(T206, T207, T208, T210))
app54_in_gaga([], T220, T221, .(T220, T221)) → app54_out_gaga([], T220, T221, .(T220, T221))
U15_gaga(T205, T206, T207, T208, T210, app54_out_gaga(T206, T207, T208, T210)) → app54_out_gaga(.(T205, T206), T207, T208, .(T205, T210))
U35_aa(T260, T9, app54_out_gaga(T263, T260, T268, T9)) → qs1_out_aa(.(T260, []), T9)
qs1_in_aa([], []) → qs1_out_aa([], [])
U22_aa(T22, T23, T24, T9, qs1_out_aa(.(T23, T44), X9)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U21_aa(T22, T23, T24, T9, part20_out_gaaa(T22, T24, T44, T45)) → U23_aa(T22, T23, T24, T9, T45, qs1_in_aa(.(T23, T44), T110))
U23_aa(T22, T23, T24, T9, T45, qs1_out_aa(.(T23, T44), T110)) → U24_aa(T22, T23, T24, T9, p52_in_aaaga(T45, X10, T110, T22, T9))
U24_aa(T22, T23, T24, T9, p52_out_aaaga(T45, X10, T110, T22, T9)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U22_ga(T22, T23, T24, T9, qs1_out_aa(.(T23, T44), X9)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U21_ga(T22, T23, T24, T9, part20_out_ggaa(T22, T24, T44, T45)) → U23_ga(T22, T23, T24, T9, T45, qs1_in_aa(.(T23, T44), T110))
U23_ga(T22, T23, T24, T9, T45, qs1_out_aa(.(T23, T44), T110)) → U24_ga(T22, T23, T24, T9, p52_in_aaaga(T45, X10, T110, T22, T9))
U24_ga(T22, T23, T24, T9, p52_out_aaaga(T45, X10, T110, T22, T9)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
qs1_in_ga(.(T234, .(T235, T236)), T9) → U25_ga(T234, T235, T236, T9, le33_in_gg(T234, T235))
U25_ga(T234, T235, T236, T9, le33_out_gg(T234, T235)) → qs1_out_ga(.(T234, .(T235, T236)), T9)
U25_ga(T234, T235, T236, T9, le33_out_gg(T234, T235)) → U26_ga(T234, T235, T236, T9, part20_in_ggaa(T234, T236, X431, X432))
U26_ga(T234, T235, T236, T9, part20_out_ggaa(T234, T236, X431, X432)) → qs1_out_ga(.(T234, .(T235, T236)), T9)
U25_ga(T234, T235, T236, T9, le33_out_gg(T234, T235)) → U27_ga(T234, T235, T236, T9, part20_in_ggaa(T234, T236, T244, T245))
U27_ga(T234, T235, T236, T9, part20_out_ggaa(T234, T236, T244, T245)) → U28_ga(T234, T235, T236, T9, qs53_in_aa(T244, X9))
U28_ga(T234, T235, T236, T9, qs53_out_aa(T244, X9)) → qs1_out_ga(.(T234, .(T235, T236)), T9)
U27_ga(T234, T235, T236, T9, part20_out_ggaa(T234, T236, T244, T245)) → U29_ga(T234, T235, T236, T9, T245, qs53_in_aa(T244, T251))
U29_ga(T234, T235, T236, T9, T245, qs53_out_aa(T244, T251)) → U30_ga(T234, T235, T236, T9, p52_in_aaaga(.(T235, T245), X10, T251, T234, T9))
U30_ga(T234, T235, T236, T9, p52_out_aaaga(.(T235, T245), X10, T251, T234, T9)) → qs1_out_ga(.(T234, .(T235, T236)), T9)
qs1_in_ga(.(T260, []), T9) → U31_ga(T260, T9, qs99_in_a(X9))
U31_ga(T260, T9, qs99_out_a(X9)) → qs1_out_ga(.(T260, []), T9)
qs1_in_ga(.(T260, []), T9) → U32_ga(T260, T9, qs99_in_a(T263))
U32_ga(T260, T9, qs99_out_a(T263)) → U33_ga(T260, T9, qs99_in_a(X10))
U33_ga(T260, T9, qs99_out_a(X10)) → qs1_out_ga(.(T260, []), T9)
U32_ga(T260, T9, qs99_out_a(T263)) → U34_ga(T260, T9, T263, qs99_in_a(T268))
U34_ga(T260, T9, T263, qs99_out_a(T268)) → U35_ga(T260, T9, app54_in_ggga(T263, T260, T268, T9))
app54_in_ggga(.(T205, T206), T207, T208, .(T205, T210)) → U15_ggga(T205, T206, T207, T208, T210, app54_in_ggga(T206, T207, T208, T210))
app54_in_ggga([], T220, T221, .(T220, T221)) → app54_out_ggga([], T220, T221, .(T220, T221))
U15_ggga(T205, T206, T207, T208, T210, app54_out_ggga(T206, T207, T208, T210)) → app54_out_ggga(.(T205, T206), T207, T208, .(T205, T210))
U35_ga(T260, T9, app54_out_ggga(T263, T260, T268, T9)) → qs1_out_ga(.(T260, []), T9)
qs1_in_ga([], []) → qs1_out_ga([], [])
GT10_IN_GA(s(T37), s(T38)) → GT10_IN_GA(T37, T38)
GT10_IN_GA(s(T37)) → GT10_IN_GA(T37)
From the DPs we obtained the following set of size-change graphs:
U2_GAAA(T61, T62, T63, X119, X120, gt10_out_ga(T61, T62)) → PART20_IN_GAAA(T61, T63, X119, X120)
PART20_IN_GAAA(T61, .(T62, T63), .(T62, X119), X120) → U2_GAAA(T61, T62, T63, X119, X120, gt10_in_ga(T61, T62))
PART20_IN_GAAA(T83, .(T84, T85), X170, .(T84, X171)) → U4_GAAA(T83, T84, T85, X170, X171, le33_in_ga(T83, T84))
U4_GAAA(T83, T84, T85, X170, X171, le33_out_ga(T83, T84)) → PART20_IN_GAAA(T83, T85, X170, X171)
qs1_in_ga(.(T22, .(T23, T24)), T9) → U19_ga(T22, T23, T24, T9, gt10_in_gg(T22, T23))
gt10_in_gg(s(T37), s(T38)) → U1_gg(T37, T38, gt10_in_gg(T37, T38))
gt10_in_gg(s(0), 0) → gt10_out_gg(s(0), 0)
U1_gg(T37, T38, gt10_out_gg(T37, T38)) → gt10_out_gg(s(T37), s(T38))
U19_ga(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U19_ga(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → U20_ga(T22, T23, T24, T9, part20_in_ggaa(T22, T24, X47, X48))
part20_in_ggaa(T61, .(T62, T63), .(T62, X119), X120) → U2_ggaa(T61, T62, T63, X119, X120, gt10_in_gg(T61, T62))
U2_ggaa(T61, T62, T63, X119, X120, gt10_out_gg(T61, T62)) → part20_out_ggaa(T61, .(T62, T63), .(T62, X119), X120)
U2_ggaa(T61, T62, T63, X119, X120, gt10_out_gg(T61, T62)) → U3_ggaa(T61, T62, T63, X119, X120, part20_in_ggaa(T61, T63, X119, X120))
part20_in_ggaa(T83, .(T84, T85), X170, .(T84, X171)) → U4_ggaa(T83, T84, T85, X170, X171, le33_in_gg(T83, T84))
le33_in_gg(s(T98), s(T99)) → U6_gg(T98, T99, le33_in_gg(T98, T99))
le33_in_gg(0, s(0)) → le33_out_gg(0, s(0))
le33_in_gg(0, 0) → le33_out_gg(0, 0)
U6_gg(T98, T99, le33_out_gg(T98, T99)) → le33_out_gg(s(T98), s(T99))
U4_ggaa(T83, T84, T85, X170, X171, le33_out_gg(T83, T84)) → part20_out_ggaa(T83, .(T84, T85), X170, .(T84, X171))
U4_ggaa(T83, T84, T85, X170, X171, le33_out_gg(T83, T84)) → U5_ggaa(T83, T84, T85, X170, X171, part20_in_ggaa(T83, T85, X170, X171))
part20_in_ggaa(T107, [], [], []) → part20_out_ggaa(T107, [], [], [])
U5_ggaa(T83, T84, T85, X170, X171, part20_out_ggaa(T83, T85, X170, X171)) → part20_out_ggaa(T83, .(T84, T85), X170, .(T84, X171))
U3_ggaa(T61, T62, T63, X119, X120, part20_out_ggaa(T61, T63, X119, X120)) → part20_out_ggaa(T61, .(T62, T63), .(T62, X119), X120)
U20_ga(T22, T23, T24, T9, part20_out_ggaa(T22, T24, X47, X48)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U19_ga(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → U21_ga(T22, T23, T24, T9, part20_in_ggaa(T22, T24, T44, T45))
U21_ga(T22, T23, T24, T9, part20_out_ggaa(T22, T24, T44, T45)) → U22_ga(T22, T23, T24, T9, qs1_in_aa(.(T23, T44), X9))
qs1_in_aa(.(T22, .(T23, T24)), T9) → U19_aa(T22, T23, T24, T9, gt10_in_aa(T22, T23))
gt10_in_aa(s(T37), s(T38)) → U1_aa(T37, T38, gt10_in_aa(T37, T38))
gt10_in_aa(s(0), 0) → gt10_out_aa(s(0), 0)
U1_aa(T37, T38, gt10_out_aa(T37, T38)) → gt10_out_aa(s(T37), s(T38))
U19_aa(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U19_aa(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → U20_aa(T22, T23, T24, T9, part20_in_gaaa(T22, T24, X47, X48))
part20_in_gaaa(T61, .(T62, T63), .(T62, X119), X120) → U2_gaaa(T61, T62, T63, X119, X120, gt10_in_ga(T61, T62))
gt10_in_ga(s(T37), s(T38)) → U1_ga(T37, T38, gt10_in_ga(T37, T38))
gt10_in_ga(s(0), 0) → gt10_out_ga(s(0), 0)
U1_ga(T37, T38, gt10_out_ga(T37, T38)) → gt10_out_ga(s(T37), s(T38))
U2_gaaa(T61, T62, T63, X119, X120, gt10_out_ga(T61, T62)) → part20_out_gaaa(T61, .(T62, T63), .(T62, X119), X120)
U2_gaaa(T61, T62, T63, X119, X120, gt10_out_ga(T61, T62)) → U3_gaaa(T61, T62, T63, X119, X120, part20_in_gaaa(T61, T63, X119, X120))
part20_in_gaaa(T83, .(T84, T85), X170, .(T84, X171)) → U4_gaaa(T83, T84, T85, X170, X171, le33_in_ga(T83, T84))
le33_in_ga(s(T98), s(T99)) → U6_ga(T98, T99, le33_in_ga(T98, T99))
le33_in_ga(0, s(0)) → le33_out_ga(0, s(0))
le33_in_ga(0, 0) → le33_out_ga(0, 0)
U6_ga(T98, T99, le33_out_ga(T98, T99)) → le33_out_ga(s(T98), s(T99))
U4_gaaa(T83, T84, T85, X170, X171, le33_out_ga(T83, T84)) → part20_out_gaaa(T83, .(T84, T85), X170, .(T84, X171))
U4_gaaa(T83, T84, T85, X170, X171, le33_out_ga(T83, T84)) → U5_gaaa(T83, T84, T85, X170, X171, part20_in_gaaa(T83, T85, X170, X171))
part20_in_gaaa(T107, [], [], []) → part20_out_gaaa(T107, [], [], [])
U5_gaaa(T83, T84, T85, X170, X171, part20_out_gaaa(T83, T85, X170, X171)) → part20_out_gaaa(T83, .(T84, T85), X170, .(T84, X171))
U3_gaaa(T61, T62, T63, X119, X120, part20_out_gaaa(T61, T63, X119, X120)) → part20_out_gaaa(T61, .(T62, T63), .(T62, X119), X120)
U20_aa(T22, T23, T24, T9, part20_out_gaaa(T22, T24, X47, X48)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U19_aa(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → U21_aa(T22, T23, T24, T9, part20_in_gaaa(T22, T24, T44, T45))
U21_aa(T22, T23, T24, T9, part20_out_gaaa(T22, T24, T44, T45)) → U22_aa(T22, T23, T24, T9, qs1_in_aa(.(T23, T44), X9))
qs1_in_aa(.(T234, .(T235, T236)), T9) → U25_aa(T234, T235, T236, T9, le33_in_aa(T234, T235))
le33_in_aa(s(T98), s(T99)) → U6_aa(T98, T99, le33_in_aa(T98, T99))
le33_in_aa(0, s(0)) → le33_out_aa(0, s(0))
le33_in_aa(0, 0) → le33_out_aa(0, 0)
U6_aa(T98, T99, le33_out_aa(T98, T99)) → le33_out_aa(s(T98), s(T99))
U25_aa(T234, T235, T236, T9, le33_out_aa(T234, T235)) → qs1_out_aa(.(T234, .(T235, T236)), T9)
U25_aa(T234, T235, T236, T9, le33_out_aa(T234, T235)) → U26_aa(T234, T235, T236, T9, part20_in_gaaa(T234, T236, X431, X432))
U26_aa(T234, T235, T236, T9, part20_out_gaaa(T234, T236, X431, X432)) → qs1_out_aa(.(T234, .(T235, T236)), T9)
U25_aa(T234, T235, T236, T9, le33_out_aa(T234, T235)) → U27_aa(T234, T235, T236, T9, part20_in_gaaa(T234, T236, T244, T245))
U27_aa(T234, T235, T236, T9, part20_out_gaaa(T234, T236, T244, T245)) → U28_aa(T234, T235, T236, T9, qs53_in_aa(T244, X9))
qs53_in_aa(.(T126, T127), X269) → U7_aa(T126, T127, X269, part20_in_aaaa(T126, T127, X265, X266))
part20_in_aaaa(T61, .(T62, T63), .(T62, X119), X120) → U2_aaaa(T61, T62, T63, X119, X120, gt10_in_aa(T61, T62))
U2_aaaa(T61, T62, T63, X119, X120, gt10_out_aa(T61, T62)) → part20_out_aaaa(T61, .(T62, T63), .(T62, X119), X120)
U2_aaaa(T61, T62, T63, X119, X120, gt10_out_aa(T61, T62)) → U3_aaaa(T61, T62, T63, X119, X120, part20_in_gaaa(T61, T63, X119, X120))
U3_aaaa(T61, T62, T63, X119, X120, part20_out_gaaa(T61, T63, X119, X120)) → part20_out_aaaa(T61, .(T62, T63), .(T62, X119), X120)
part20_in_aaaa(T83, .(T84, T85), X170, .(T84, X171)) → U4_aaaa(T83, T84, T85, X170, X171, le33_in_aa(T83, T84))
U4_aaaa(T83, T84, T85, X170, X171, le33_out_aa(T83, T84)) → part20_out_aaaa(T83, .(T84, T85), X170, .(T84, X171))
U4_aaaa(T83, T84, T85, X170, X171, le33_out_aa(T83, T84)) → U5_aaaa(T83, T84, T85, X170, X171, part20_in_gaaa(T83, T85, X170, X171))
U5_aaaa(T83, T84, T85, X170, X171, part20_out_gaaa(T83, T85, X170, X171)) → part20_out_aaaa(T83, .(T84, T85), X170, .(T84, X171))
part20_in_aaaa(T107, [], [], []) → part20_out_aaaa(T107, [], [], [])
U7_aa(T126, T127, X269, part20_out_aaaa(T126, T127, X265, X266)) → qs53_out_aa(.(T126, T127), X269)
qs53_in_aa(.(T126, T127), X269) → U8_aa(T126, T127, X269, part20_in_aaaa(T126, T127, T131, T132))
U8_aa(T126, T127, X269, part20_out_aaaa(T126, T127, T131, T132)) → U9_aa(T126, T127, X269, qs53_in_aa(T131, X267))
qs53_in_aa([], []) → qs53_out_aa([], [])
U9_aa(T126, T127, X269, qs53_out_aa(T131, X267)) → qs53_out_aa(.(T126, T127), X269)
U8_aa(T126, T127, X269, part20_out_aaaa(T126, T127, T131, T132)) → U10_aa(T126, T127, X269, T132, qs53_in_aa(T131, T138))
U10_aa(T126, T127, X269, T132, qs53_out_aa(T131, T138)) → U11_aa(T126, T127, X269, qs53_in_aa(T132, X268))
U11_aa(T126, T127, X269, qs53_out_aa(T132, X268)) → qs53_out_aa(.(T126, T127), X269)
U10_aa(T126, T127, X269, T132, qs53_out_aa(T131, T138)) → U12_aa(T126, T127, X269, T138, qs53_in_aa(T132, T143))
U12_aa(T126, T127, X269, T138, qs53_out_aa(T132, T143)) → U13_aa(T126, T127, X269, app65_in_aaaa(T138, T126, T143, X269))
app65_in_aaaa(.(T166, T167), T168, T169, .(T166, X348)) → U14_aaaa(T166, T167, T168, T169, X348, app65_in_aaaa(T167, T168, T169, X348))
app65_in_aaaa([], T178, T179, .(T178, T179)) → app65_out_aaaa([], T178, T179, .(T178, T179))
U14_aaaa(T166, T167, T168, T169, X348, app65_out_aaaa(T167, T168, T169, X348)) → app65_out_aaaa(.(T166, T167), T168, T169, .(T166, X348))
U13_aa(T126, T127, X269, app65_out_aaaa(T138, T126, T143, X269)) → qs53_out_aa(.(T126, T127), X269)
U28_aa(T234, T235, T236, T9, qs53_out_aa(T244, X9)) → qs1_out_aa(.(T234, .(T235, T236)), T9)
U27_aa(T234, T235, T236, T9, part20_out_gaaa(T234, T236, T244, T245)) → U29_aa(T234, T235, T236, T9, T245, qs53_in_aa(T244, T251))
U29_aa(T234, T235, T236, T9, T245, qs53_out_aa(T244, T251)) → U30_aa(T234, T235, T236, T9, p52_in_aaaga(.(T235, T245), X10, T251, T234, T9))
p52_in_aaaga(T45, X10, T110, T22, T9) → U16_aaaga(T45, X10, T110, T22, T9, qs53_in_aa(T45, X10))
U16_aaaga(T45, X10, T110, T22, T9, qs53_out_aa(T45, X10)) → p52_out_aaaga(T45, X10, T110, T22, T9)
p52_in_aaaga(T45, T115, T110, T22, T9) → U17_aaaga(T45, T115, T110, T22, T9, qs53_in_aa(T45, T115))
U17_aaaga(T45, T115, T110, T22, T9, qs53_out_aa(T45, T115)) → U18_aaaga(T45, T115, T110, T22, T9, app54_in_agaa(T110, T22, T115, T9))
app54_in_agaa(.(T205, T206), T207, T208, .(T205, T210)) → U15_agaa(T205, T206, T207, T208, T210, app54_in_agaa(T206, T207, T208, T210))
app54_in_agaa([], T220, T221, .(T220, T221)) → app54_out_agaa([], T220, T221, .(T220, T221))
U15_agaa(T205, T206, T207, T208, T210, app54_out_agaa(T206, T207, T208, T210)) → app54_out_agaa(.(T205, T206), T207, T208, .(T205, T210))
U18_aaaga(T45, T115, T110, T22, T9, app54_out_agaa(T110, T22, T115, T9)) → p52_out_aaaga(T45, T115, T110, T22, T9)
U30_aa(T234, T235, T236, T9, p52_out_aaaga(.(T235, T245), X10, T251, T234, T9)) → qs1_out_aa(.(T234, .(T235, T236)), T9)
qs1_in_aa(.(T260, []), T9) → U31_aa(T260, T9, qs99_in_a(X9))
qs99_in_a([]) → qs99_out_a([])
U31_aa(T260, T9, qs99_out_a(X9)) → qs1_out_aa(.(T260, []), T9)
qs1_in_aa(.(T260, []), T9) → U32_aa(T260, T9, qs99_in_a(T263))
U32_aa(T260, T9, qs99_out_a(T263)) → U33_aa(T260, T9, qs99_in_a(X10))
U33_aa(T260, T9, qs99_out_a(X10)) → qs1_out_aa(.(T260, []), T9)
U32_aa(T260, T9, qs99_out_a(T263)) → U34_aa(T260, T9, T263, qs99_in_a(T268))
U34_aa(T260, T9, T263, qs99_out_a(T268)) → U35_aa(T260, T9, app54_in_gaga(T263, T260, T268, T9))
app54_in_gaga(.(T205, T206), T207, T208, .(T205, T210)) → U15_gaga(T205, T206, T207, T208, T210, app54_in_gaga(T206, T207, T208, T210))
app54_in_gaga([], T220, T221, .(T220, T221)) → app54_out_gaga([], T220, T221, .(T220, T221))
U15_gaga(T205, T206, T207, T208, T210, app54_out_gaga(T206, T207, T208, T210)) → app54_out_gaga(.(T205, T206), T207, T208, .(T205, T210))
U35_aa(T260, T9, app54_out_gaga(T263, T260, T268, T9)) → qs1_out_aa(.(T260, []), T9)
qs1_in_aa([], []) → qs1_out_aa([], [])
U22_aa(T22, T23, T24, T9, qs1_out_aa(.(T23, T44), X9)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U21_aa(T22, T23, T24, T9, part20_out_gaaa(T22, T24, T44, T45)) → U23_aa(T22, T23, T24, T9, T45, qs1_in_aa(.(T23, T44), T110))
U23_aa(T22, T23, T24, T9, T45, qs1_out_aa(.(T23, T44), T110)) → U24_aa(T22, T23, T24, T9, p52_in_aaaga(T45, X10, T110, T22, T9))
U24_aa(T22, T23, T24, T9, p52_out_aaaga(T45, X10, T110, T22, T9)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U22_ga(T22, T23, T24, T9, qs1_out_aa(.(T23, T44), X9)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U21_ga(T22, T23, T24, T9, part20_out_ggaa(T22, T24, T44, T45)) → U23_ga(T22, T23, T24, T9, T45, qs1_in_aa(.(T23, T44), T110))
U23_ga(T22, T23, T24, T9, T45, qs1_out_aa(.(T23, T44), T110)) → U24_ga(T22, T23, T24, T9, p52_in_aaaga(T45, X10, T110, T22, T9))
U24_ga(T22, T23, T24, T9, p52_out_aaaga(T45, X10, T110, T22, T9)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
qs1_in_ga(.(T234, .(T235, T236)), T9) → U25_ga(T234, T235, T236, T9, le33_in_gg(T234, T235))
U25_ga(T234, T235, T236, T9, le33_out_gg(T234, T235)) → qs1_out_ga(.(T234, .(T235, T236)), T9)
U25_ga(T234, T235, T236, T9, le33_out_gg(T234, T235)) → U26_ga(T234, T235, T236, T9, part20_in_ggaa(T234, T236, X431, X432))
U26_ga(T234, T235, T236, T9, part20_out_ggaa(T234, T236, X431, X432)) → qs1_out_ga(.(T234, .(T235, T236)), T9)
U25_ga(T234, T235, T236, T9, le33_out_gg(T234, T235)) → U27_ga(T234, T235, T236, T9, part20_in_ggaa(T234, T236, T244, T245))
U27_ga(T234, T235, T236, T9, part20_out_ggaa(T234, T236, T244, T245)) → U28_ga(T234, T235, T236, T9, qs53_in_aa(T244, X9))
U28_ga(T234, T235, T236, T9, qs53_out_aa(T244, X9)) → qs1_out_ga(.(T234, .(T235, T236)), T9)
U27_ga(T234, T235, T236, T9, part20_out_ggaa(T234, T236, T244, T245)) → U29_ga(T234, T235, T236, T9, T245, qs53_in_aa(T244, T251))
U29_ga(T234, T235, T236, T9, T245, qs53_out_aa(T244, T251)) → U30_ga(T234, T235, T236, T9, p52_in_aaaga(.(T235, T245), X10, T251, T234, T9))
U30_ga(T234, T235, T236, T9, p52_out_aaaga(.(T235, T245), X10, T251, T234, T9)) → qs1_out_ga(.(T234, .(T235, T236)), T9)
qs1_in_ga(.(T260, []), T9) → U31_ga(T260, T9, qs99_in_a(X9))
U31_ga(T260, T9, qs99_out_a(X9)) → qs1_out_ga(.(T260, []), T9)
qs1_in_ga(.(T260, []), T9) → U32_ga(T260, T9, qs99_in_a(T263))
U32_ga(T260, T9, qs99_out_a(T263)) → U33_ga(T260, T9, qs99_in_a(X10))
U33_ga(T260, T9, qs99_out_a(X10)) → qs1_out_ga(.(T260, []), T9)
U32_ga(T260, T9, qs99_out_a(T263)) → U34_ga(T260, T9, T263, qs99_in_a(T268))
U34_ga(T260, T9, T263, qs99_out_a(T268)) → U35_ga(T260, T9, app54_in_ggga(T263, T260, T268, T9))
app54_in_ggga(.(T205, T206), T207, T208, .(T205, T210)) → U15_ggga(T205, T206, T207, T208, T210, app54_in_ggga(T206, T207, T208, T210))
app54_in_ggga([], T220, T221, .(T220, T221)) → app54_out_ggga([], T220, T221, .(T220, T221))
U15_ggga(T205, T206, T207, T208, T210, app54_out_ggga(T206, T207, T208, T210)) → app54_out_ggga(.(T205, T206), T207, T208, .(T205, T210))
U35_ga(T260, T9, app54_out_ggga(T263, T260, T268, T9)) → qs1_out_ga(.(T260, []), T9)
qs1_in_ga([], []) → qs1_out_ga([], [])
U2_GAAA(T61, T62, T63, X119, X120, gt10_out_ga(T61, T62)) → PART20_IN_GAAA(T61, T63, X119, X120)
PART20_IN_GAAA(T61, .(T62, T63), .(T62, X119), X120) → U2_GAAA(T61, T62, T63, X119, X120, gt10_in_ga(T61, T62))
PART20_IN_GAAA(T83, .(T84, T85), X170, .(T84, X171)) → U4_GAAA(T83, T84, T85, X170, X171, le33_in_ga(T83, T84))
U4_GAAA(T83, T84, T85, X170, X171, le33_out_ga(T83, T84)) → PART20_IN_GAAA(T83, T85, X170, X171)
gt10_in_ga(s(T37), s(T38)) → U1_ga(T37, T38, gt10_in_ga(T37, T38))
gt10_in_ga(s(0), 0) → gt10_out_ga(s(0), 0)
le33_in_ga(s(T98), s(T99)) → U6_ga(T98, T99, le33_in_ga(T98, T99))
le33_in_ga(0, s(0)) → le33_out_ga(0, s(0))
le33_in_ga(0, 0) → le33_out_ga(0, 0)
U1_ga(T37, T38, gt10_out_ga(T37, T38)) → gt10_out_ga(s(T37), s(T38))
U6_ga(T98, T99, le33_out_ga(T98, T99)) → le33_out_ga(s(T98), s(T99))
U2_GAAA(T61, gt10_out_ga(T61, T62)) → PART20_IN_GAAA(T61)
PART20_IN_GAAA(T61) → U2_GAAA(T61, gt10_in_ga(T61))
PART20_IN_GAAA(T83) → U4_GAAA(T83, le33_in_ga(T83))
U4_GAAA(T83, le33_out_ga(T83, T84)) → PART20_IN_GAAA(T83)
gt10_in_ga(s(T37)) → U1_ga(T37, gt10_in_ga(T37))
gt10_in_ga(s(0)) → gt10_out_ga(s(0), 0)
le33_in_ga(s(T98)) → U6_ga(T98, le33_in_ga(T98))
le33_in_ga(0) → le33_out_ga(0, s(0))
le33_in_ga(0) → le33_out_ga(0, 0)
U1_ga(T37, gt10_out_ga(T37, T38)) → gt10_out_ga(s(T37), s(T38))
U6_ga(T98, le33_out_ga(T98, T99)) → le33_out_ga(s(T98), s(T99))
gt10_in_ga(x0)
le33_in_ga(x0)
U1_ga(x0, x1)
U6_ga(x0, x1)
PART20_IN_GAAA(s(x0)) → U2_GAAA(s(x0), U1_ga(x0, gt10_in_ga(x0)))
PART20_IN_GAAA(s(0)) → U2_GAAA(s(0), gt10_out_ga(s(0), 0))
U2_GAAA(T61, gt10_out_ga(T61, T62)) → PART20_IN_GAAA(T61)
PART20_IN_GAAA(T83) → U4_GAAA(T83, le33_in_ga(T83))
U4_GAAA(T83, le33_out_ga(T83, T84)) → PART20_IN_GAAA(T83)
PART20_IN_GAAA(s(x0)) → U2_GAAA(s(x0), U1_ga(x0, gt10_in_ga(x0)))
PART20_IN_GAAA(s(0)) → U2_GAAA(s(0), gt10_out_ga(s(0), 0))
gt10_in_ga(s(T37)) → U1_ga(T37, gt10_in_ga(T37))
gt10_in_ga(s(0)) → gt10_out_ga(s(0), 0)
le33_in_ga(s(T98)) → U6_ga(T98, le33_in_ga(T98))
le33_in_ga(0) → le33_out_ga(0, s(0))
le33_in_ga(0) → le33_out_ga(0, 0)
U1_ga(T37, gt10_out_ga(T37, T38)) → gt10_out_ga(s(T37), s(T38))
U6_ga(T98, le33_out_ga(T98, T99)) → le33_out_ga(s(T98), s(T99))
gt10_in_ga(x0)
le33_in_ga(x0)
U1_ga(x0, x1)
U6_ga(x0, x1)
PART20_IN_GAAA(s(x0)) → U4_GAAA(s(x0), U6_ga(x0, le33_in_ga(x0)))
PART20_IN_GAAA(0) → U4_GAAA(0, le33_out_ga(0, s(0)))
PART20_IN_GAAA(0) → U4_GAAA(0, le33_out_ga(0, 0))
U2_GAAA(T61, gt10_out_ga(T61, T62)) → PART20_IN_GAAA(T61)
U4_GAAA(T83, le33_out_ga(T83, T84)) → PART20_IN_GAAA(T83)
PART20_IN_GAAA(s(x0)) → U2_GAAA(s(x0), U1_ga(x0, gt10_in_ga(x0)))
PART20_IN_GAAA(s(0)) → U2_GAAA(s(0), gt10_out_ga(s(0), 0))
PART20_IN_GAAA(s(x0)) → U4_GAAA(s(x0), U6_ga(x0, le33_in_ga(x0)))
PART20_IN_GAAA(0) → U4_GAAA(0, le33_out_ga(0, s(0)))
PART20_IN_GAAA(0) → U4_GAAA(0, le33_out_ga(0, 0))
gt10_in_ga(s(T37)) → U1_ga(T37, gt10_in_ga(T37))
gt10_in_ga(s(0)) → gt10_out_ga(s(0), 0)
le33_in_ga(s(T98)) → U6_ga(T98, le33_in_ga(T98))
le33_in_ga(0) → le33_out_ga(0, s(0))
le33_in_ga(0) → le33_out_ga(0, 0)
U1_ga(T37, gt10_out_ga(T37, T38)) → gt10_out_ga(s(T37), s(T38))
U6_ga(T98, le33_out_ga(T98, T99)) → le33_out_ga(s(T98), s(T99))
gt10_in_ga(x0)
le33_in_ga(x0)
U1_ga(x0, x1)
U6_ga(x0, x1)
U2_GAAA(s(z0), gt10_out_ga(s(z0), x1)) → PART20_IN_GAAA(s(z0))
U2_GAAA(s(0), gt10_out_ga(s(0), 0)) → PART20_IN_GAAA(s(0))
U4_GAAA(T83, le33_out_ga(T83, T84)) → PART20_IN_GAAA(T83)
PART20_IN_GAAA(s(x0)) → U2_GAAA(s(x0), U1_ga(x0, gt10_in_ga(x0)))
PART20_IN_GAAA(s(0)) → U2_GAAA(s(0), gt10_out_ga(s(0), 0))
PART20_IN_GAAA(s(x0)) → U4_GAAA(s(x0), U6_ga(x0, le33_in_ga(x0)))
PART20_IN_GAAA(0) → U4_GAAA(0, le33_out_ga(0, s(0)))
PART20_IN_GAAA(0) → U4_GAAA(0, le33_out_ga(0, 0))
U2_GAAA(s(z0), gt10_out_ga(s(z0), x1)) → PART20_IN_GAAA(s(z0))
U2_GAAA(s(0), gt10_out_ga(s(0), 0)) → PART20_IN_GAAA(s(0))
gt10_in_ga(s(T37)) → U1_ga(T37, gt10_in_ga(T37))
gt10_in_ga(s(0)) → gt10_out_ga(s(0), 0)
le33_in_ga(s(T98)) → U6_ga(T98, le33_in_ga(T98))
le33_in_ga(0) → le33_out_ga(0, s(0))
le33_in_ga(0) → le33_out_ga(0, 0)
U1_ga(T37, gt10_out_ga(T37, T38)) → gt10_out_ga(s(T37), s(T38))
U6_ga(T98, le33_out_ga(T98, T99)) → le33_out_ga(s(T98), s(T99))
gt10_in_ga(x0)
le33_in_ga(x0)
U1_ga(x0, x1)
U6_ga(x0, x1)
U4_GAAA(s(z0), le33_out_ga(s(z0), x1)) → PART20_IN_GAAA(s(z0))
U4_GAAA(0, le33_out_ga(0, s(0))) → PART20_IN_GAAA(0)
U4_GAAA(0, le33_out_ga(0, 0)) → PART20_IN_GAAA(0)
PART20_IN_GAAA(s(x0)) → U2_GAAA(s(x0), U1_ga(x0, gt10_in_ga(x0)))
PART20_IN_GAAA(s(0)) → U2_GAAA(s(0), gt10_out_ga(s(0), 0))
PART20_IN_GAAA(s(x0)) → U4_GAAA(s(x0), U6_ga(x0, le33_in_ga(x0)))
PART20_IN_GAAA(0) → U4_GAAA(0, le33_out_ga(0, s(0)))
PART20_IN_GAAA(0) → U4_GAAA(0, le33_out_ga(0, 0))
U2_GAAA(s(z0), gt10_out_ga(s(z0), x1)) → PART20_IN_GAAA(s(z0))
U2_GAAA(s(0), gt10_out_ga(s(0), 0)) → PART20_IN_GAAA(s(0))
U4_GAAA(s(z0), le33_out_ga(s(z0), x1)) → PART20_IN_GAAA(s(z0))
U4_GAAA(0, le33_out_ga(0, s(0))) → PART20_IN_GAAA(0)
U4_GAAA(0, le33_out_ga(0, 0)) → PART20_IN_GAAA(0)
gt10_in_ga(s(T37)) → U1_ga(T37, gt10_in_ga(T37))
gt10_in_ga(s(0)) → gt10_out_ga(s(0), 0)
le33_in_ga(s(T98)) → U6_ga(T98, le33_in_ga(T98))
le33_in_ga(0) → le33_out_ga(0, s(0))
le33_in_ga(0) → le33_out_ga(0, 0)
U1_ga(T37, gt10_out_ga(T37, T38)) → gt10_out_ga(s(T37), s(T38))
U6_ga(T98, le33_out_ga(T98, T99)) → le33_out_ga(s(T98), s(T99))
gt10_in_ga(x0)
le33_in_ga(x0)
U1_ga(x0, x1)
U6_ga(x0, x1)
U4_GAAA(0, le33_out_ga(0, s(0))) → PART20_IN_GAAA(0)
PART20_IN_GAAA(0) → U4_GAAA(0, le33_out_ga(0, s(0)))
PART20_IN_GAAA(0) → U4_GAAA(0, le33_out_ga(0, 0))
U4_GAAA(0, le33_out_ga(0, 0)) → PART20_IN_GAAA(0)
gt10_in_ga(s(T37)) → U1_ga(T37, gt10_in_ga(T37))
gt10_in_ga(s(0)) → gt10_out_ga(s(0), 0)
le33_in_ga(s(T98)) → U6_ga(T98, le33_in_ga(T98))
le33_in_ga(0) → le33_out_ga(0, s(0))
le33_in_ga(0) → le33_out_ga(0, 0)
U1_ga(T37, gt10_out_ga(T37, T38)) → gt10_out_ga(s(T37), s(T38))
U6_ga(T98, le33_out_ga(T98, T99)) → le33_out_ga(s(T98), s(T99))
gt10_in_ga(x0)
le33_in_ga(x0)
U1_ga(x0, x1)
U6_ga(x0, x1)
U4_GAAA(0, le33_out_ga(0, s(0))) → PART20_IN_GAAA(0)
PART20_IN_GAAA(0) → U4_GAAA(0, le33_out_ga(0, s(0)))
PART20_IN_GAAA(0) → U4_GAAA(0, le33_out_ga(0, 0))
U4_GAAA(0, le33_out_ga(0, 0)) → PART20_IN_GAAA(0)
gt10_in_ga(x0)
le33_in_ga(x0)
U1_ga(x0, x1)
U6_ga(x0, x1)
gt10_in_ga(x0)
le33_in_ga(x0)
U1_ga(x0, x1)
U6_ga(x0, x1)
U4_GAAA(0, le33_out_ga(0, s(0))) → PART20_IN_GAAA(0)
PART20_IN_GAAA(0) → U4_GAAA(0, le33_out_ga(0, s(0)))
PART20_IN_GAAA(0) → U4_GAAA(0, le33_out_ga(0, 0))
U4_GAAA(0, le33_out_ga(0, 0)) → PART20_IN_GAAA(0)
U2_GAAA(s(z0), gt10_out_ga(s(z0), x1)) → PART20_IN_GAAA(s(z0))
PART20_IN_GAAA(s(x0)) → U2_GAAA(s(x0), U1_ga(x0, gt10_in_ga(x0)))
U2_GAAA(s(0), gt10_out_ga(s(0), 0)) → PART20_IN_GAAA(s(0))
PART20_IN_GAAA(s(0)) → U2_GAAA(s(0), gt10_out_ga(s(0), 0))
PART20_IN_GAAA(s(x0)) → U4_GAAA(s(x0), U6_ga(x0, le33_in_ga(x0)))
U4_GAAA(s(z0), le33_out_ga(s(z0), x1)) → PART20_IN_GAAA(s(z0))
gt10_in_ga(s(T37)) → U1_ga(T37, gt10_in_ga(T37))
gt10_in_ga(s(0)) → gt10_out_ga(s(0), 0)
le33_in_ga(s(T98)) → U6_ga(T98, le33_in_ga(T98))
le33_in_ga(0) → le33_out_ga(0, s(0))
le33_in_ga(0) → le33_out_ga(0, 0)
U1_ga(T37, gt10_out_ga(T37, T38)) → gt10_out_ga(s(T37), s(T38))
U6_ga(T98, le33_out_ga(T98, T99)) → le33_out_ga(s(T98), s(T99))
gt10_in_ga(x0)
le33_in_ga(x0)
U1_ga(x0, x1)
U6_ga(x0, x1)
GT10_IN_AA(s(T37), s(T38)) → GT10_IN_AA(T37, T38)
qs1_in_ga(.(T22, .(T23, T24)), T9) → U19_ga(T22, T23, T24, T9, gt10_in_gg(T22, T23))
gt10_in_gg(s(T37), s(T38)) → U1_gg(T37, T38, gt10_in_gg(T37, T38))
gt10_in_gg(s(0), 0) → gt10_out_gg(s(0), 0)
U1_gg(T37, T38, gt10_out_gg(T37, T38)) → gt10_out_gg(s(T37), s(T38))
U19_ga(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U19_ga(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → U20_ga(T22, T23, T24, T9, part20_in_ggaa(T22, T24, X47, X48))
part20_in_ggaa(T61, .(T62, T63), .(T62, X119), X120) → U2_ggaa(T61, T62, T63, X119, X120, gt10_in_gg(T61, T62))
U2_ggaa(T61, T62, T63, X119, X120, gt10_out_gg(T61, T62)) → part20_out_ggaa(T61, .(T62, T63), .(T62, X119), X120)
U2_ggaa(T61, T62, T63, X119, X120, gt10_out_gg(T61, T62)) → U3_ggaa(T61, T62, T63, X119, X120, part20_in_ggaa(T61, T63, X119, X120))
part20_in_ggaa(T83, .(T84, T85), X170, .(T84, X171)) → U4_ggaa(T83, T84, T85, X170, X171, le33_in_gg(T83, T84))
le33_in_gg(s(T98), s(T99)) → U6_gg(T98, T99, le33_in_gg(T98, T99))
le33_in_gg(0, s(0)) → le33_out_gg(0, s(0))
le33_in_gg(0, 0) → le33_out_gg(0, 0)
U6_gg(T98, T99, le33_out_gg(T98, T99)) → le33_out_gg(s(T98), s(T99))
U4_ggaa(T83, T84, T85, X170, X171, le33_out_gg(T83, T84)) → part20_out_ggaa(T83, .(T84, T85), X170, .(T84, X171))
U4_ggaa(T83, T84, T85, X170, X171, le33_out_gg(T83, T84)) → U5_ggaa(T83, T84, T85, X170, X171, part20_in_ggaa(T83, T85, X170, X171))
part20_in_ggaa(T107, [], [], []) → part20_out_ggaa(T107, [], [], [])
U5_ggaa(T83, T84, T85, X170, X171, part20_out_ggaa(T83, T85, X170, X171)) → part20_out_ggaa(T83, .(T84, T85), X170, .(T84, X171))
U3_ggaa(T61, T62, T63, X119, X120, part20_out_ggaa(T61, T63, X119, X120)) → part20_out_ggaa(T61, .(T62, T63), .(T62, X119), X120)
U20_ga(T22, T23, T24, T9, part20_out_ggaa(T22, T24, X47, X48)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U19_ga(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → U21_ga(T22, T23, T24, T9, part20_in_ggaa(T22, T24, T44, T45))
U21_ga(T22, T23, T24, T9, part20_out_ggaa(T22, T24, T44, T45)) → U22_ga(T22, T23, T24, T9, qs1_in_aa(.(T23, T44), X9))
qs1_in_aa(.(T22, .(T23, T24)), T9) → U19_aa(T22, T23, T24, T9, gt10_in_aa(T22, T23))
gt10_in_aa(s(T37), s(T38)) → U1_aa(T37, T38, gt10_in_aa(T37, T38))
gt10_in_aa(s(0), 0) → gt10_out_aa(s(0), 0)
U1_aa(T37, T38, gt10_out_aa(T37, T38)) → gt10_out_aa(s(T37), s(T38))
U19_aa(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U19_aa(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → U20_aa(T22, T23, T24, T9, part20_in_gaaa(T22, T24, X47, X48))
part20_in_gaaa(T61, .(T62, T63), .(T62, X119), X120) → U2_gaaa(T61, T62, T63, X119, X120, gt10_in_ga(T61, T62))
gt10_in_ga(s(T37), s(T38)) → U1_ga(T37, T38, gt10_in_ga(T37, T38))
gt10_in_ga(s(0), 0) → gt10_out_ga(s(0), 0)
U1_ga(T37, T38, gt10_out_ga(T37, T38)) → gt10_out_ga(s(T37), s(T38))
U2_gaaa(T61, T62, T63, X119, X120, gt10_out_ga(T61, T62)) → part20_out_gaaa(T61, .(T62, T63), .(T62, X119), X120)
U2_gaaa(T61, T62, T63, X119, X120, gt10_out_ga(T61, T62)) → U3_gaaa(T61, T62, T63, X119, X120, part20_in_gaaa(T61, T63, X119, X120))
part20_in_gaaa(T83, .(T84, T85), X170, .(T84, X171)) → U4_gaaa(T83, T84, T85, X170, X171, le33_in_ga(T83, T84))
le33_in_ga(s(T98), s(T99)) → U6_ga(T98, T99, le33_in_ga(T98, T99))
le33_in_ga(0, s(0)) → le33_out_ga(0, s(0))
le33_in_ga(0, 0) → le33_out_ga(0, 0)
U6_ga(T98, T99, le33_out_ga(T98, T99)) → le33_out_ga(s(T98), s(T99))
U4_gaaa(T83, T84, T85, X170, X171, le33_out_ga(T83, T84)) → part20_out_gaaa(T83, .(T84, T85), X170, .(T84, X171))
U4_gaaa(T83, T84, T85, X170, X171, le33_out_ga(T83, T84)) → U5_gaaa(T83, T84, T85, X170, X171, part20_in_gaaa(T83, T85, X170, X171))
part20_in_gaaa(T107, [], [], []) → part20_out_gaaa(T107, [], [], [])
U5_gaaa(T83, T84, T85, X170, X171, part20_out_gaaa(T83, T85, X170, X171)) → part20_out_gaaa(T83, .(T84, T85), X170, .(T84, X171))
U3_gaaa(T61, T62, T63, X119, X120, part20_out_gaaa(T61, T63, X119, X120)) → part20_out_gaaa(T61, .(T62, T63), .(T62, X119), X120)
U20_aa(T22, T23, T24, T9, part20_out_gaaa(T22, T24, X47, X48)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U19_aa(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → U21_aa(T22, T23, T24, T9, part20_in_gaaa(T22, T24, T44, T45))
U21_aa(T22, T23, T24, T9, part20_out_gaaa(T22, T24, T44, T45)) → U22_aa(T22, T23, T24, T9, qs1_in_aa(.(T23, T44), X9))
qs1_in_aa(.(T234, .(T235, T236)), T9) → U25_aa(T234, T235, T236, T9, le33_in_aa(T234, T235))
le33_in_aa(s(T98), s(T99)) → U6_aa(T98, T99, le33_in_aa(T98, T99))
le33_in_aa(0, s(0)) → le33_out_aa(0, s(0))
le33_in_aa(0, 0) → le33_out_aa(0, 0)
U6_aa(T98, T99, le33_out_aa(T98, T99)) → le33_out_aa(s(T98), s(T99))
U25_aa(T234, T235, T236, T9, le33_out_aa(T234, T235)) → qs1_out_aa(.(T234, .(T235, T236)), T9)
U25_aa(T234, T235, T236, T9, le33_out_aa(T234, T235)) → U26_aa(T234, T235, T236, T9, part20_in_gaaa(T234, T236, X431, X432))
U26_aa(T234, T235, T236, T9, part20_out_gaaa(T234, T236, X431, X432)) → qs1_out_aa(.(T234, .(T235, T236)), T9)
U25_aa(T234, T235, T236, T9, le33_out_aa(T234, T235)) → U27_aa(T234, T235, T236, T9, part20_in_gaaa(T234, T236, T244, T245))
U27_aa(T234, T235, T236, T9, part20_out_gaaa(T234, T236, T244, T245)) → U28_aa(T234, T235, T236, T9, qs53_in_aa(T244, X9))
qs53_in_aa(.(T126, T127), X269) → U7_aa(T126, T127, X269, part20_in_aaaa(T126, T127, X265, X266))
part20_in_aaaa(T61, .(T62, T63), .(T62, X119), X120) → U2_aaaa(T61, T62, T63, X119, X120, gt10_in_aa(T61, T62))
U2_aaaa(T61, T62, T63, X119, X120, gt10_out_aa(T61, T62)) → part20_out_aaaa(T61, .(T62, T63), .(T62, X119), X120)
U2_aaaa(T61, T62, T63, X119, X120, gt10_out_aa(T61, T62)) → U3_aaaa(T61, T62, T63, X119, X120, part20_in_gaaa(T61, T63, X119, X120))
U3_aaaa(T61, T62, T63, X119, X120, part20_out_gaaa(T61, T63, X119, X120)) → part20_out_aaaa(T61, .(T62, T63), .(T62, X119), X120)
part20_in_aaaa(T83, .(T84, T85), X170, .(T84, X171)) → U4_aaaa(T83, T84, T85, X170, X171, le33_in_aa(T83, T84))
U4_aaaa(T83, T84, T85, X170, X171, le33_out_aa(T83, T84)) → part20_out_aaaa(T83, .(T84, T85), X170, .(T84, X171))
U4_aaaa(T83, T84, T85, X170, X171, le33_out_aa(T83, T84)) → U5_aaaa(T83, T84, T85, X170, X171, part20_in_gaaa(T83, T85, X170, X171))
U5_aaaa(T83, T84, T85, X170, X171, part20_out_gaaa(T83, T85, X170, X171)) → part20_out_aaaa(T83, .(T84, T85), X170, .(T84, X171))
part20_in_aaaa(T107, [], [], []) → part20_out_aaaa(T107, [], [], [])
U7_aa(T126, T127, X269, part20_out_aaaa(T126, T127, X265, X266)) → qs53_out_aa(.(T126, T127), X269)
qs53_in_aa(.(T126, T127), X269) → U8_aa(T126, T127, X269, part20_in_aaaa(T126, T127, T131, T132))
U8_aa(T126, T127, X269, part20_out_aaaa(T126, T127, T131, T132)) → U9_aa(T126, T127, X269, qs53_in_aa(T131, X267))
qs53_in_aa([], []) → qs53_out_aa([], [])
U9_aa(T126, T127, X269, qs53_out_aa(T131, X267)) → qs53_out_aa(.(T126, T127), X269)
U8_aa(T126, T127, X269, part20_out_aaaa(T126, T127, T131, T132)) → U10_aa(T126, T127, X269, T132, qs53_in_aa(T131, T138))
U10_aa(T126, T127, X269, T132, qs53_out_aa(T131, T138)) → U11_aa(T126, T127, X269, qs53_in_aa(T132, X268))
U11_aa(T126, T127, X269, qs53_out_aa(T132, X268)) → qs53_out_aa(.(T126, T127), X269)
U10_aa(T126, T127, X269, T132, qs53_out_aa(T131, T138)) → U12_aa(T126, T127, X269, T138, qs53_in_aa(T132, T143))
U12_aa(T126, T127, X269, T138, qs53_out_aa(T132, T143)) → U13_aa(T126, T127, X269, app65_in_aaaa(T138, T126, T143, X269))
app65_in_aaaa(.(T166, T167), T168, T169, .(T166, X348)) → U14_aaaa(T166, T167, T168, T169, X348, app65_in_aaaa(T167, T168, T169, X348))
app65_in_aaaa([], T178, T179, .(T178, T179)) → app65_out_aaaa([], T178, T179, .(T178, T179))
U14_aaaa(T166, T167, T168, T169, X348, app65_out_aaaa(T167, T168, T169, X348)) → app65_out_aaaa(.(T166, T167), T168, T169, .(T166, X348))
U13_aa(T126, T127, X269, app65_out_aaaa(T138, T126, T143, X269)) → qs53_out_aa(.(T126, T127), X269)
U28_aa(T234, T235, T236, T9, qs53_out_aa(T244, X9)) → qs1_out_aa(.(T234, .(T235, T236)), T9)
U27_aa(T234, T235, T236, T9, part20_out_gaaa(T234, T236, T244, T245)) → U29_aa(T234, T235, T236, T9, T245, qs53_in_aa(T244, T251))
U29_aa(T234, T235, T236, T9, T245, qs53_out_aa(T244, T251)) → U30_aa(T234, T235, T236, T9, p52_in_aaaga(.(T235, T245), X10, T251, T234, T9))
p52_in_aaaga(T45, X10, T110, T22, T9) → U16_aaaga(T45, X10, T110, T22, T9, qs53_in_aa(T45, X10))
U16_aaaga(T45, X10, T110, T22, T9, qs53_out_aa(T45, X10)) → p52_out_aaaga(T45, X10, T110, T22, T9)
p52_in_aaaga(T45, T115, T110, T22, T9) → U17_aaaga(T45, T115, T110, T22, T9, qs53_in_aa(T45, T115))
U17_aaaga(T45, T115, T110, T22, T9, qs53_out_aa(T45, T115)) → U18_aaaga(T45, T115, T110, T22, T9, app54_in_agaa(T110, T22, T115, T9))
app54_in_agaa(.(T205, T206), T207, T208, .(T205, T210)) → U15_agaa(T205, T206, T207, T208, T210, app54_in_agaa(T206, T207, T208, T210))
app54_in_agaa([], T220, T221, .(T220, T221)) → app54_out_agaa([], T220, T221, .(T220, T221))
U15_agaa(T205, T206, T207, T208, T210, app54_out_agaa(T206, T207, T208, T210)) → app54_out_agaa(.(T205, T206), T207, T208, .(T205, T210))
U18_aaaga(T45, T115, T110, T22, T9, app54_out_agaa(T110, T22, T115, T9)) → p52_out_aaaga(T45, T115, T110, T22, T9)
U30_aa(T234, T235, T236, T9, p52_out_aaaga(.(T235, T245), X10, T251, T234, T9)) → qs1_out_aa(.(T234, .(T235, T236)), T9)
qs1_in_aa(.(T260, []), T9) → U31_aa(T260, T9, qs99_in_a(X9))
qs99_in_a([]) → qs99_out_a([])
U31_aa(T260, T9, qs99_out_a(X9)) → qs1_out_aa(.(T260, []), T9)
qs1_in_aa(.(T260, []), T9) → U32_aa(T260, T9, qs99_in_a(T263))
U32_aa(T260, T9, qs99_out_a(T263)) → U33_aa(T260, T9, qs99_in_a(X10))
U33_aa(T260, T9, qs99_out_a(X10)) → qs1_out_aa(.(T260, []), T9)
U32_aa(T260, T9, qs99_out_a(T263)) → U34_aa(T260, T9, T263, qs99_in_a(T268))
U34_aa(T260, T9, T263, qs99_out_a(T268)) → U35_aa(T260, T9, app54_in_gaga(T263, T260, T268, T9))
app54_in_gaga(.(T205, T206), T207, T208, .(T205, T210)) → U15_gaga(T205, T206, T207, T208, T210, app54_in_gaga(T206, T207, T208, T210))
app54_in_gaga([], T220, T221, .(T220, T221)) → app54_out_gaga([], T220, T221, .(T220, T221))
U15_gaga(T205, T206, T207, T208, T210, app54_out_gaga(T206, T207, T208, T210)) → app54_out_gaga(.(T205, T206), T207, T208, .(T205, T210))
U35_aa(T260, T9, app54_out_gaga(T263, T260, T268, T9)) → qs1_out_aa(.(T260, []), T9)
qs1_in_aa([], []) → qs1_out_aa([], [])
U22_aa(T22, T23, T24, T9, qs1_out_aa(.(T23, T44), X9)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U21_aa(T22, T23, T24, T9, part20_out_gaaa(T22, T24, T44, T45)) → U23_aa(T22, T23, T24, T9, T45, qs1_in_aa(.(T23, T44), T110))
U23_aa(T22, T23, T24, T9, T45, qs1_out_aa(.(T23, T44), T110)) → U24_aa(T22, T23, T24, T9, p52_in_aaaga(T45, X10, T110, T22, T9))
U24_aa(T22, T23, T24, T9, p52_out_aaaga(T45, X10, T110, T22, T9)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U22_ga(T22, T23, T24, T9, qs1_out_aa(.(T23, T44), X9)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U21_ga(T22, T23, T24, T9, part20_out_ggaa(T22, T24, T44, T45)) → U23_ga(T22, T23, T24, T9, T45, qs1_in_aa(.(T23, T44), T110))
U23_ga(T22, T23, T24, T9, T45, qs1_out_aa(.(T23, T44), T110)) → U24_ga(T22, T23, T24, T9, p52_in_aaaga(T45, X10, T110, T22, T9))
U24_ga(T22, T23, T24, T9, p52_out_aaaga(T45, X10, T110, T22, T9)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
qs1_in_ga(.(T234, .(T235, T236)), T9) → U25_ga(T234, T235, T236, T9, le33_in_gg(T234, T235))
U25_ga(T234, T235, T236, T9, le33_out_gg(T234, T235)) → qs1_out_ga(.(T234, .(T235, T236)), T9)
U25_ga(T234, T235, T236, T9, le33_out_gg(T234, T235)) → U26_ga(T234, T235, T236, T9, part20_in_ggaa(T234, T236, X431, X432))
U26_ga(T234, T235, T236, T9, part20_out_ggaa(T234, T236, X431, X432)) → qs1_out_ga(.(T234, .(T235, T236)), T9)
U25_ga(T234, T235, T236, T9, le33_out_gg(T234, T235)) → U27_ga(T234, T235, T236, T9, part20_in_ggaa(T234, T236, T244, T245))
U27_ga(T234, T235, T236, T9, part20_out_ggaa(T234, T236, T244, T245)) → U28_ga(T234, T235, T236, T9, qs53_in_aa(T244, X9))
U28_ga(T234, T235, T236, T9, qs53_out_aa(T244, X9)) → qs1_out_ga(.(T234, .(T235, T236)), T9)
U27_ga(T234, T235, T236, T9, part20_out_ggaa(T234, T236, T244, T245)) → U29_ga(T234, T235, T236, T9, T245, qs53_in_aa(T244, T251))
U29_ga(T234, T235, T236, T9, T245, qs53_out_aa(T244, T251)) → U30_ga(T234, T235, T236, T9, p52_in_aaaga(.(T235, T245), X10, T251, T234, T9))
U30_ga(T234, T235, T236, T9, p52_out_aaaga(.(T235, T245), X10, T251, T234, T9)) → qs1_out_ga(.(T234, .(T235, T236)), T9)
qs1_in_ga(.(T260, []), T9) → U31_ga(T260, T9, qs99_in_a(X9))
U31_ga(T260, T9, qs99_out_a(X9)) → qs1_out_ga(.(T260, []), T9)
qs1_in_ga(.(T260, []), T9) → U32_ga(T260, T9, qs99_in_a(T263))
U32_ga(T260, T9, qs99_out_a(T263)) → U33_ga(T260, T9, qs99_in_a(X10))
U33_ga(T260, T9, qs99_out_a(X10)) → qs1_out_ga(.(T260, []), T9)
U32_ga(T260, T9, qs99_out_a(T263)) → U34_ga(T260, T9, T263, qs99_in_a(T268))
U34_ga(T260, T9, T263, qs99_out_a(T268)) → U35_ga(T260, T9, app54_in_ggga(T263, T260, T268, T9))
app54_in_ggga(.(T205, T206), T207, T208, .(T205, T210)) → U15_ggga(T205, T206, T207, T208, T210, app54_in_ggga(T206, T207, T208, T210))
app54_in_ggga([], T220, T221, .(T220, T221)) → app54_out_ggga([], T220, T221, .(T220, T221))
U15_ggga(T205, T206, T207, T208, T210, app54_out_ggga(T206, T207, T208, T210)) → app54_out_ggga(.(T205, T206), T207, T208, .(T205, T210))
U35_ga(T260, T9, app54_out_ggga(T263, T260, T268, T9)) → qs1_out_ga(.(T260, []), T9)
qs1_in_ga([], []) → qs1_out_ga([], [])
GT10_IN_AA(s(T37), s(T38)) → GT10_IN_AA(T37, T38)
GT10_IN_AA → GT10_IN_AA
QS53_IN_AA(.(T126, T127), X269) → U8_AA(T126, T127, X269, part20_in_aaaa(T126, T127, T131, T132))
U8_AA(T126, T127, X269, part20_out_aaaa(T126, T127, T131, T132)) → QS53_IN_AA(T131, X267)
U8_AA(T126, T127, X269, part20_out_aaaa(T126, T127, T131, T132)) → U10_AA(T126, T127, X269, T132, qs53_in_aa(T131, T138))
U10_AA(T126, T127, X269, T132, qs53_out_aa(T131, T138)) → QS53_IN_AA(T132, X268)
qs1_in_ga(.(T22, .(T23, T24)), T9) → U19_ga(T22, T23, T24, T9, gt10_in_gg(T22, T23))
gt10_in_gg(s(T37), s(T38)) → U1_gg(T37, T38, gt10_in_gg(T37, T38))
gt10_in_gg(s(0), 0) → gt10_out_gg(s(0), 0)
U1_gg(T37, T38, gt10_out_gg(T37, T38)) → gt10_out_gg(s(T37), s(T38))
U19_ga(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U19_ga(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → U20_ga(T22, T23, T24, T9, part20_in_ggaa(T22, T24, X47, X48))
part20_in_ggaa(T61, .(T62, T63), .(T62, X119), X120) → U2_ggaa(T61, T62, T63, X119, X120, gt10_in_gg(T61, T62))
U2_ggaa(T61, T62, T63, X119, X120, gt10_out_gg(T61, T62)) → part20_out_ggaa(T61, .(T62, T63), .(T62, X119), X120)
U2_ggaa(T61, T62, T63, X119, X120, gt10_out_gg(T61, T62)) → U3_ggaa(T61, T62, T63, X119, X120, part20_in_ggaa(T61, T63, X119, X120))
part20_in_ggaa(T83, .(T84, T85), X170, .(T84, X171)) → U4_ggaa(T83, T84, T85, X170, X171, le33_in_gg(T83, T84))
le33_in_gg(s(T98), s(T99)) → U6_gg(T98, T99, le33_in_gg(T98, T99))
le33_in_gg(0, s(0)) → le33_out_gg(0, s(0))
le33_in_gg(0, 0) → le33_out_gg(0, 0)
U6_gg(T98, T99, le33_out_gg(T98, T99)) → le33_out_gg(s(T98), s(T99))
U4_ggaa(T83, T84, T85, X170, X171, le33_out_gg(T83, T84)) → part20_out_ggaa(T83, .(T84, T85), X170, .(T84, X171))
U4_ggaa(T83, T84, T85, X170, X171, le33_out_gg(T83, T84)) → U5_ggaa(T83, T84, T85, X170, X171, part20_in_ggaa(T83, T85, X170, X171))
part20_in_ggaa(T107, [], [], []) → part20_out_ggaa(T107, [], [], [])
U5_ggaa(T83, T84, T85, X170, X171, part20_out_ggaa(T83, T85, X170, X171)) → part20_out_ggaa(T83, .(T84, T85), X170, .(T84, X171))
U3_ggaa(T61, T62, T63, X119, X120, part20_out_ggaa(T61, T63, X119, X120)) → part20_out_ggaa(T61, .(T62, T63), .(T62, X119), X120)
U20_ga(T22, T23, T24, T9, part20_out_ggaa(T22, T24, X47, X48)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U19_ga(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → U21_ga(T22, T23, T24, T9, part20_in_ggaa(T22, T24, T44, T45))
U21_ga(T22, T23, T24, T9, part20_out_ggaa(T22, T24, T44, T45)) → U22_ga(T22, T23, T24, T9, qs1_in_aa(.(T23, T44), X9))
qs1_in_aa(.(T22, .(T23, T24)), T9) → U19_aa(T22, T23, T24, T9, gt10_in_aa(T22, T23))
gt10_in_aa(s(T37), s(T38)) → U1_aa(T37, T38, gt10_in_aa(T37, T38))
gt10_in_aa(s(0), 0) → gt10_out_aa(s(0), 0)
U1_aa(T37, T38, gt10_out_aa(T37, T38)) → gt10_out_aa(s(T37), s(T38))
U19_aa(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U19_aa(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → U20_aa(T22, T23, T24, T9, part20_in_gaaa(T22, T24, X47, X48))
part20_in_gaaa(T61, .(T62, T63), .(T62, X119), X120) → U2_gaaa(T61, T62, T63, X119, X120, gt10_in_ga(T61, T62))
gt10_in_ga(s(T37), s(T38)) → U1_ga(T37, T38, gt10_in_ga(T37, T38))
gt10_in_ga(s(0), 0) → gt10_out_ga(s(0), 0)
U1_ga(T37, T38, gt10_out_ga(T37, T38)) → gt10_out_ga(s(T37), s(T38))
U2_gaaa(T61, T62, T63, X119, X120, gt10_out_ga(T61, T62)) → part20_out_gaaa(T61, .(T62, T63), .(T62, X119), X120)
U2_gaaa(T61, T62, T63, X119, X120, gt10_out_ga(T61, T62)) → U3_gaaa(T61, T62, T63, X119, X120, part20_in_gaaa(T61, T63, X119, X120))
part20_in_gaaa(T83, .(T84, T85), X170, .(T84, X171)) → U4_gaaa(T83, T84, T85, X170, X171, le33_in_ga(T83, T84))
le33_in_ga(s(T98), s(T99)) → U6_ga(T98, T99, le33_in_ga(T98, T99))
le33_in_ga(0, s(0)) → le33_out_ga(0, s(0))
le33_in_ga(0, 0) → le33_out_ga(0, 0)
U6_ga(T98, T99, le33_out_ga(T98, T99)) → le33_out_ga(s(T98), s(T99))
U4_gaaa(T83, T84, T85, X170, X171, le33_out_ga(T83, T84)) → part20_out_gaaa(T83, .(T84, T85), X170, .(T84, X171))
U4_gaaa(T83, T84, T85, X170, X171, le33_out_ga(T83, T84)) → U5_gaaa(T83, T84, T85, X170, X171, part20_in_gaaa(T83, T85, X170, X171))
part20_in_gaaa(T107, [], [], []) → part20_out_gaaa(T107, [], [], [])
U5_gaaa(T83, T84, T85, X170, X171, part20_out_gaaa(T83, T85, X170, X171)) → part20_out_gaaa(T83, .(T84, T85), X170, .(T84, X171))
U3_gaaa(T61, T62, T63, X119, X120, part20_out_gaaa(T61, T63, X119, X120)) → part20_out_gaaa(T61, .(T62, T63), .(T62, X119), X120)
U20_aa(T22, T23, T24, T9, part20_out_gaaa(T22, T24, X47, X48)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U19_aa(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → U21_aa(T22, T23, T24, T9, part20_in_gaaa(T22, T24, T44, T45))
U21_aa(T22, T23, T24, T9, part20_out_gaaa(T22, T24, T44, T45)) → U22_aa(T22, T23, T24, T9, qs1_in_aa(.(T23, T44), X9))
qs1_in_aa(.(T234, .(T235, T236)), T9) → U25_aa(T234, T235, T236, T9, le33_in_aa(T234, T235))
le33_in_aa(s(T98), s(T99)) → U6_aa(T98, T99, le33_in_aa(T98, T99))
le33_in_aa(0, s(0)) → le33_out_aa(0, s(0))
le33_in_aa(0, 0) → le33_out_aa(0, 0)
U6_aa(T98, T99, le33_out_aa(T98, T99)) → le33_out_aa(s(T98), s(T99))
U25_aa(T234, T235, T236, T9, le33_out_aa(T234, T235)) → qs1_out_aa(.(T234, .(T235, T236)), T9)
U25_aa(T234, T235, T236, T9, le33_out_aa(T234, T235)) → U26_aa(T234, T235, T236, T9, part20_in_gaaa(T234, T236, X431, X432))
U26_aa(T234, T235, T236, T9, part20_out_gaaa(T234, T236, X431, X432)) → qs1_out_aa(.(T234, .(T235, T236)), T9)
U25_aa(T234, T235, T236, T9, le33_out_aa(T234, T235)) → U27_aa(T234, T235, T236, T9, part20_in_gaaa(T234, T236, T244, T245))
U27_aa(T234, T235, T236, T9, part20_out_gaaa(T234, T236, T244, T245)) → U28_aa(T234, T235, T236, T9, qs53_in_aa(T244, X9))
qs53_in_aa(.(T126, T127), X269) → U7_aa(T126, T127, X269, part20_in_aaaa(T126, T127, X265, X266))
part20_in_aaaa(T61, .(T62, T63), .(T62, X119), X120) → U2_aaaa(T61, T62, T63, X119, X120, gt10_in_aa(T61, T62))
U2_aaaa(T61, T62, T63, X119, X120, gt10_out_aa(T61, T62)) → part20_out_aaaa(T61, .(T62, T63), .(T62, X119), X120)
U2_aaaa(T61, T62, T63, X119, X120, gt10_out_aa(T61, T62)) → U3_aaaa(T61, T62, T63, X119, X120, part20_in_gaaa(T61, T63, X119, X120))
U3_aaaa(T61, T62, T63, X119, X120, part20_out_gaaa(T61, T63, X119, X120)) → part20_out_aaaa(T61, .(T62, T63), .(T62, X119), X120)
part20_in_aaaa(T83, .(T84, T85), X170, .(T84, X171)) → U4_aaaa(T83, T84, T85, X170, X171, le33_in_aa(T83, T84))
U4_aaaa(T83, T84, T85, X170, X171, le33_out_aa(T83, T84)) → part20_out_aaaa(T83, .(T84, T85), X170, .(T84, X171))
U4_aaaa(T83, T84, T85, X170, X171, le33_out_aa(T83, T84)) → U5_aaaa(T83, T84, T85, X170, X171, part20_in_gaaa(T83, T85, X170, X171))
U5_aaaa(T83, T84, T85, X170, X171, part20_out_gaaa(T83, T85, X170, X171)) → part20_out_aaaa(T83, .(T84, T85), X170, .(T84, X171))
part20_in_aaaa(T107, [], [], []) → part20_out_aaaa(T107, [], [], [])
U7_aa(T126, T127, X269, part20_out_aaaa(T126, T127, X265, X266)) → qs53_out_aa(.(T126, T127), X269)
qs53_in_aa(.(T126, T127), X269) → U8_aa(T126, T127, X269, part20_in_aaaa(T126, T127, T131, T132))
U8_aa(T126, T127, X269, part20_out_aaaa(T126, T127, T131, T132)) → U9_aa(T126, T127, X269, qs53_in_aa(T131, X267))
qs53_in_aa([], []) → qs53_out_aa([], [])
U9_aa(T126, T127, X269, qs53_out_aa(T131, X267)) → qs53_out_aa(.(T126, T127), X269)
U8_aa(T126, T127, X269, part20_out_aaaa(T126, T127, T131, T132)) → U10_aa(T126, T127, X269, T132, qs53_in_aa(T131, T138))
U10_aa(T126, T127, X269, T132, qs53_out_aa(T131, T138)) → U11_aa(T126, T127, X269, qs53_in_aa(T132, X268))
U11_aa(T126, T127, X269, qs53_out_aa(T132, X268)) → qs53_out_aa(.(T126, T127), X269)
U10_aa(T126, T127, X269, T132, qs53_out_aa(T131, T138)) → U12_aa(T126, T127, X269, T138, qs53_in_aa(T132, T143))
U12_aa(T126, T127, X269, T138, qs53_out_aa(T132, T143)) → U13_aa(T126, T127, X269, app65_in_aaaa(T138, T126, T143, X269))
app65_in_aaaa(.(T166, T167), T168, T169, .(T166, X348)) → U14_aaaa(T166, T167, T168, T169, X348, app65_in_aaaa(T167, T168, T169, X348))
app65_in_aaaa([], T178, T179, .(T178, T179)) → app65_out_aaaa([], T178, T179, .(T178, T179))
U14_aaaa(T166, T167, T168, T169, X348, app65_out_aaaa(T167, T168, T169, X348)) → app65_out_aaaa(.(T166, T167), T168, T169, .(T166, X348))
U13_aa(T126, T127, X269, app65_out_aaaa(T138, T126, T143, X269)) → qs53_out_aa(.(T126, T127), X269)
U28_aa(T234, T235, T236, T9, qs53_out_aa(T244, X9)) → qs1_out_aa(.(T234, .(T235, T236)), T9)
U27_aa(T234, T235, T236, T9, part20_out_gaaa(T234, T236, T244, T245)) → U29_aa(T234, T235, T236, T9, T245, qs53_in_aa(T244, T251))
U29_aa(T234, T235, T236, T9, T245, qs53_out_aa(T244, T251)) → U30_aa(T234, T235, T236, T9, p52_in_aaaga(.(T235, T245), X10, T251, T234, T9))
p52_in_aaaga(T45, X10, T110, T22, T9) → U16_aaaga(T45, X10, T110, T22, T9, qs53_in_aa(T45, X10))
U16_aaaga(T45, X10, T110, T22, T9, qs53_out_aa(T45, X10)) → p52_out_aaaga(T45, X10, T110, T22, T9)
p52_in_aaaga(T45, T115, T110, T22, T9) → U17_aaaga(T45, T115, T110, T22, T9, qs53_in_aa(T45, T115))
U17_aaaga(T45, T115, T110, T22, T9, qs53_out_aa(T45, T115)) → U18_aaaga(T45, T115, T110, T22, T9, app54_in_agaa(T110, T22, T115, T9))
app54_in_agaa(.(T205, T206), T207, T208, .(T205, T210)) → U15_agaa(T205, T206, T207, T208, T210, app54_in_agaa(T206, T207, T208, T210))
app54_in_agaa([], T220, T221, .(T220, T221)) → app54_out_agaa([], T220, T221, .(T220, T221))
U15_agaa(T205, T206, T207, T208, T210, app54_out_agaa(T206, T207, T208, T210)) → app54_out_agaa(.(T205, T206), T207, T208, .(T205, T210))
U18_aaaga(T45, T115, T110, T22, T9, app54_out_agaa(T110, T22, T115, T9)) → p52_out_aaaga(T45, T115, T110, T22, T9)
U30_aa(T234, T235, T236, T9, p52_out_aaaga(.(T235, T245), X10, T251, T234, T9)) → qs1_out_aa(.(T234, .(T235, T236)), T9)
qs1_in_aa(.(T260, []), T9) → U31_aa(T260, T9, qs99_in_a(X9))
qs99_in_a([]) → qs99_out_a([])
U31_aa(T260, T9, qs99_out_a(X9)) → qs1_out_aa(.(T260, []), T9)
qs1_in_aa(.(T260, []), T9) → U32_aa(T260, T9, qs99_in_a(T263))
U32_aa(T260, T9, qs99_out_a(T263)) → U33_aa(T260, T9, qs99_in_a(X10))
U33_aa(T260, T9, qs99_out_a(X10)) → qs1_out_aa(.(T260, []), T9)
U32_aa(T260, T9, qs99_out_a(T263)) → U34_aa(T260, T9, T263, qs99_in_a(T268))
U34_aa(T260, T9, T263, qs99_out_a(T268)) → U35_aa(T260, T9, app54_in_gaga(T263, T260, T268, T9))
app54_in_gaga(.(T205, T206), T207, T208, .(T205, T210)) → U15_gaga(T205, T206, T207, T208, T210, app54_in_gaga(T206, T207, T208, T210))
app54_in_gaga([], T220, T221, .(T220, T221)) → app54_out_gaga([], T220, T221, .(T220, T221))
U15_gaga(T205, T206, T207, T208, T210, app54_out_gaga(T206, T207, T208, T210)) → app54_out_gaga(.(T205, T206), T207, T208, .(T205, T210))
U35_aa(T260, T9, app54_out_gaga(T263, T260, T268, T9)) → qs1_out_aa(.(T260, []), T9)
qs1_in_aa([], []) → qs1_out_aa([], [])
U22_aa(T22, T23, T24, T9, qs1_out_aa(.(T23, T44), X9)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U21_aa(T22, T23, T24, T9, part20_out_gaaa(T22, T24, T44, T45)) → U23_aa(T22, T23, T24, T9, T45, qs1_in_aa(.(T23, T44), T110))
U23_aa(T22, T23, T24, T9, T45, qs1_out_aa(.(T23, T44), T110)) → U24_aa(T22, T23, T24, T9, p52_in_aaaga(T45, X10, T110, T22, T9))
U24_aa(T22, T23, T24, T9, p52_out_aaaga(T45, X10, T110, T22, T9)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U22_ga(T22, T23, T24, T9, qs1_out_aa(.(T23, T44), X9)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U21_ga(T22, T23, T24, T9, part20_out_ggaa(T22, T24, T44, T45)) → U23_ga(T22, T23, T24, T9, T45, qs1_in_aa(.(T23, T44), T110))
U23_ga(T22, T23, T24, T9, T45, qs1_out_aa(.(T23, T44), T110)) → U24_ga(T22, T23, T24, T9, p52_in_aaaga(T45, X10, T110, T22, T9))
U24_ga(T22, T23, T24, T9, p52_out_aaaga(T45, X10, T110, T22, T9)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
qs1_in_ga(.(T234, .(T235, T236)), T9) → U25_ga(T234, T235, T236, T9, le33_in_gg(T234, T235))
U25_ga(T234, T235, T236, T9, le33_out_gg(T234, T235)) → qs1_out_ga(.(T234, .(T235, T236)), T9)
U25_ga(T234, T235, T236, T9, le33_out_gg(T234, T235)) → U26_ga(T234, T235, T236, T9, part20_in_ggaa(T234, T236, X431, X432))
U26_ga(T234, T235, T236, T9, part20_out_ggaa(T234, T236, X431, X432)) → qs1_out_ga(.(T234, .(T235, T236)), T9)
U25_ga(T234, T235, T236, T9, le33_out_gg(T234, T235)) → U27_ga(T234, T235, T236, T9, part20_in_ggaa(T234, T236, T244, T245))
U27_ga(T234, T235, T236, T9, part20_out_ggaa(T234, T236, T244, T245)) → U28_ga(T234, T235, T236, T9, qs53_in_aa(T244, X9))
U28_ga(T234, T235, T236, T9, qs53_out_aa(T244, X9)) → qs1_out_ga(.(T234, .(T235, T236)), T9)
U27_ga(T234, T235, T236, T9, part20_out_ggaa(T234, T236, T244, T245)) → U29_ga(T234, T235, T236, T9, T245, qs53_in_aa(T244, T251))
U29_ga(T234, T235, T236, T9, T245, qs53_out_aa(T244, T251)) → U30_ga(T234, T235, T236, T9, p52_in_aaaga(.(T235, T245), X10, T251, T234, T9))
U30_ga(T234, T235, T236, T9, p52_out_aaaga(.(T235, T245), X10, T251, T234, T9)) → qs1_out_ga(.(T234, .(T235, T236)), T9)
qs1_in_ga(.(T260, []), T9) → U31_ga(T260, T9, qs99_in_a(X9))
U31_ga(T260, T9, qs99_out_a(X9)) → qs1_out_ga(.(T260, []), T9)
qs1_in_ga(.(T260, []), T9) → U32_ga(T260, T9, qs99_in_a(T263))
U32_ga(T260, T9, qs99_out_a(T263)) → U33_ga(T260, T9, qs99_in_a(X10))
U33_ga(T260, T9, qs99_out_a(X10)) → qs1_out_ga(.(T260, []), T9)
U32_ga(T260, T9, qs99_out_a(T263)) → U34_ga(T260, T9, T263, qs99_in_a(T268))
U34_ga(T260, T9, T263, qs99_out_a(T268)) → U35_ga(T260, T9, app54_in_ggga(T263, T260, T268, T9))
app54_in_ggga(.(T205, T206), T207, T208, .(T205, T210)) → U15_ggga(T205, T206, T207, T208, T210, app54_in_ggga(T206, T207, T208, T210))
app54_in_ggga([], T220, T221, .(T220, T221)) → app54_out_ggga([], T220, T221, .(T220, T221))
U15_ggga(T205, T206, T207, T208, T210, app54_out_ggga(T206, T207, T208, T210)) → app54_out_ggga(.(T205, T206), T207, T208, .(T205, T210))
U35_ga(T260, T9, app54_out_ggga(T263, T260, T268, T9)) → qs1_out_ga(.(T260, []), T9)
qs1_in_ga([], []) → qs1_out_ga([], [])
QS53_IN_AA(.(T126, T127), X269) → U8_AA(T126, T127, X269, part20_in_aaaa(T126, T127, T131, T132))
U8_AA(T126, T127, X269, part20_out_aaaa(T126, T127, T131, T132)) → QS53_IN_AA(T131, X267)
U8_AA(T126, T127, X269, part20_out_aaaa(T126, T127, T131, T132)) → U10_AA(T126, T127, X269, T132, qs53_in_aa(T131, T138))
U10_AA(T126, T127, X269, T132, qs53_out_aa(T131, T138)) → QS53_IN_AA(T132, X268)
part20_in_aaaa(T61, .(T62, T63), .(T62, X119), X120) → U2_aaaa(T61, T62, T63, X119, X120, gt10_in_aa(T61, T62))
part20_in_aaaa(T83, .(T84, T85), X170, .(T84, X171)) → U4_aaaa(T83, T84, T85, X170, X171, le33_in_aa(T83, T84))
part20_in_aaaa(T107, [], [], []) → part20_out_aaaa(T107, [], [], [])
qs53_in_aa(.(T126, T127), X269) → U7_aa(T126, T127, X269, part20_in_aaaa(T126, T127, X265, X266))
qs53_in_aa(.(T126, T127), X269) → U8_aa(T126, T127, X269, part20_in_aaaa(T126, T127, T131, T132))
qs53_in_aa([], []) → qs53_out_aa([], [])
U2_aaaa(T61, T62, T63, X119, X120, gt10_out_aa(T61, T62)) → part20_out_aaaa(T61, .(T62, T63), .(T62, X119), X120)
U2_aaaa(T61, T62, T63, X119, X120, gt10_out_aa(T61, T62)) → U3_aaaa(T61, T62, T63, X119, X120, part20_in_gaaa(T61, T63, X119, X120))
U4_aaaa(T83, T84, T85, X170, X171, le33_out_aa(T83, T84)) → part20_out_aaaa(T83, .(T84, T85), X170, .(T84, X171))
U4_aaaa(T83, T84, T85, X170, X171, le33_out_aa(T83, T84)) → U5_aaaa(T83, T84, T85, X170, X171, part20_in_gaaa(T83, T85, X170, X171))
U7_aa(T126, T127, X269, part20_out_aaaa(T126, T127, X265, X266)) → qs53_out_aa(.(T126, T127), X269)
U8_aa(T126, T127, X269, part20_out_aaaa(T126, T127, T131, T132)) → U9_aa(T126, T127, X269, qs53_in_aa(T131, X267))
U8_aa(T126, T127, X269, part20_out_aaaa(T126, T127, T131, T132)) → U10_aa(T126, T127, X269, T132, qs53_in_aa(T131, T138))
gt10_in_aa(s(T37), s(T38)) → U1_aa(T37, T38, gt10_in_aa(T37, T38))
gt10_in_aa(s(0), 0) → gt10_out_aa(s(0), 0)
U3_aaaa(T61, T62, T63, X119, X120, part20_out_gaaa(T61, T63, X119, X120)) → part20_out_aaaa(T61, .(T62, T63), .(T62, X119), X120)
le33_in_aa(s(T98), s(T99)) → U6_aa(T98, T99, le33_in_aa(T98, T99))
le33_in_aa(0, s(0)) → le33_out_aa(0, s(0))
le33_in_aa(0, 0) → le33_out_aa(0, 0)
U5_aaaa(T83, T84, T85, X170, X171, part20_out_gaaa(T83, T85, X170, X171)) → part20_out_aaaa(T83, .(T84, T85), X170, .(T84, X171))
U9_aa(T126, T127, X269, qs53_out_aa(T131, X267)) → qs53_out_aa(.(T126, T127), X269)
U10_aa(T126, T127, X269, T132, qs53_out_aa(T131, T138)) → U11_aa(T126, T127, X269, qs53_in_aa(T132, X268))
U10_aa(T126, T127, X269, T132, qs53_out_aa(T131, T138)) → U12_aa(T126, T127, X269, T138, qs53_in_aa(T132, T143))
U1_aa(T37, T38, gt10_out_aa(T37, T38)) → gt10_out_aa(s(T37), s(T38))
part20_in_gaaa(T61, .(T62, T63), .(T62, X119), X120) → U2_gaaa(T61, T62, T63, X119, X120, gt10_in_ga(T61, T62))
part20_in_gaaa(T83, .(T84, T85), X170, .(T84, X171)) → U4_gaaa(T83, T84, T85, X170, X171, le33_in_ga(T83, T84))
part20_in_gaaa(T107, [], [], []) → part20_out_gaaa(T107, [], [], [])
U6_aa(T98, T99, le33_out_aa(T98, T99)) → le33_out_aa(s(T98), s(T99))
U11_aa(T126, T127, X269, qs53_out_aa(T132, X268)) → qs53_out_aa(.(T126, T127), X269)
U12_aa(T126, T127, X269, T138, qs53_out_aa(T132, T143)) → U13_aa(T126, T127, X269, app65_in_aaaa(T138, T126, T143, X269))
U2_gaaa(T61, T62, T63, X119, X120, gt10_out_ga(T61, T62)) → part20_out_gaaa(T61, .(T62, T63), .(T62, X119), X120)
U2_gaaa(T61, T62, T63, X119, X120, gt10_out_ga(T61, T62)) → U3_gaaa(T61, T62, T63, X119, X120, part20_in_gaaa(T61, T63, X119, X120))
U4_gaaa(T83, T84, T85, X170, X171, le33_out_ga(T83, T84)) → part20_out_gaaa(T83, .(T84, T85), X170, .(T84, X171))
U4_gaaa(T83, T84, T85, X170, X171, le33_out_ga(T83, T84)) → U5_gaaa(T83, T84, T85, X170, X171, part20_in_gaaa(T83, T85, X170, X171))
U13_aa(T126, T127, X269, app65_out_aaaa(T138, T126, T143, X269)) → qs53_out_aa(.(T126, T127), X269)
gt10_in_ga(s(T37), s(T38)) → U1_ga(T37, T38, gt10_in_ga(T37, T38))
gt10_in_ga(s(0), 0) → gt10_out_ga(s(0), 0)
U3_gaaa(T61, T62, T63, X119, X120, part20_out_gaaa(T61, T63, X119, X120)) → part20_out_gaaa(T61, .(T62, T63), .(T62, X119), X120)
le33_in_ga(s(T98), s(T99)) → U6_ga(T98, T99, le33_in_ga(T98, T99))
le33_in_ga(0, s(0)) → le33_out_ga(0, s(0))
le33_in_ga(0, 0) → le33_out_ga(0, 0)
U5_gaaa(T83, T84, T85, X170, X171, part20_out_gaaa(T83, T85, X170, X171)) → part20_out_gaaa(T83, .(T84, T85), X170, .(T84, X171))
app65_in_aaaa(.(T166, T167), T168, T169, .(T166, X348)) → U14_aaaa(T166, T167, T168, T169, X348, app65_in_aaaa(T167, T168, T169, X348))
app65_in_aaaa([], T178, T179, .(T178, T179)) → app65_out_aaaa([], T178, T179, .(T178, T179))
U1_ga(T37, T38, gt10_out_ga(T37, T38)) → gt10_out_ga(s(T37), s(T38))
U6_ga(T98, T99, le33_out_ga(T98, T99)) → le33_out_ga(s(T98), s(T99))
U14_aaaa(T166, T167, T168, T169, X348, app65_out_aaaa(T167, T168, T169, X348)) → app65_out_aaaa(.(T166, T167), T168, T169, .(T166, X348))
QS53_IN_AA → U8_AA(part20_in_aaaa)
U8_AA(part20_out_aaaa) → QS53_IN_AA
U8_AA(part20_out_aaaa) → U10_AA(qs53_in_aa)
U10_AA(qs53_out_aa) → QS53_IN_AA
part20_in_aaaa → U2_aaaa(gt10_in_aa)
part20_in_aaaa → U4_aaaa(le33_in_aa)
part20_in_aaaa → part20_out_aaaa
qs53_in_aa → U7_aa(part20_in_aaaa)
qs53_in_aa → U8_aa(part20_in_aaaa)
qs53_in_aa → qs53_out_aa
U2_aaaa(gt10_out_aa(T61, T62)) → part20_out_aaaa
U2_aaaa(gt10_out_aa(T61, T62)) → U3_aaaa(part20_in_gaaa(T61))
U4_aaaa(le33_out_aa(T83, T84)) → part20_out_aaaa
U4_aaaa(le33_out_aa(T83, T84)) → U5_aaaa(part20_in_gaaa(T83))
U7_aa(part20_out_aaaa) → qs53_out_aa
U8_aa(part20_out_aaaa) → U9_aa(qs53_in_aa)
U8_aa(part20_out_aaaa) → U10_aa(qs53_in_aa)
gt10_in_aa → U1_aa(gt10_in_aa)
gt10_in_aa → gt10_out_aa(s(0), 0)
U3_aaaa(part20_out_gaaa(T61)) → part20_out_aaaa
le33_in_aa → U6_aa(le33_in_aa)
le33_in_aa → le33_out_aa(0, s(0))
le33_in_aa → le33_out_aa(0, 0)
U5_aaaa(part20_out_gaaa(T83)) → part20_out_aaaa
U9_aa(qs53_out_aa) → qs53_out_aa
U10_aa(qs53_out_aa) → U11_aa(qs53_in_aa)
U10_aa(qs53_out_aa) → U12_aa(qs53_in_aa)
U1_aa(gt10_out_aa(T37, T38)) → gt10_out_aa(s(T37), s(T38))
part20_in_gaaa(T61) → U2_gaaa(T61, gt10_in_ga(T61))
part20_in_gaaa(T83) → U4_gaaa(T83, le33_in_ga(T83))
part20_in_gaaa(T107) → part20_out_gaaa(T107)
U6_aa(le33_out_aa(T98, T99)) → le33_out_aa(s(T98), s(T99))
U11_aa(qs53_out_aa) → qs53_out_aa
U12_aa(qs53_out_aa) → U13_aa(app65_in_aaaa)
U2_gaaa(T61, gt10_out_ga(T61, T62)) → part20_out_gaaa(T61)
U2_gaaa(T61, gt10_out_ga(T61, T62)) → U3_gaaa(T61, part20_in_gaaa(T61))
U4_gaaa(T83, le33_out_ga(T83, T84)) → part20_out_gaaa(T83)
U4_gaaa(T83, le33_out_ga(T83, T84)) → U5_gaaa(T83, part20_in_gaaa(T83))
U13_aa(app65_out_aaaa) → qs53_out_aa
gt10_in_ga(s(T37)) → U1_ga(T37, gt10_in_ga(T37))
gt10_in_ga(s(0)) → gt10_out_ga(s(0), 0)
U3_gaaa(T61, part20_out_gaaa(T61)) → part20_out_gaaa(T61)
le33_in_ga(s(T98)) → U6_ga(T98, le33_in_ga(T98))
le33_in_ga(0) → le33_out_ga(0, s(0))
le33_in_ga(0) → le33_out_ga(0, 0)
U5_gaaa(T83, part20_out_gaaa(T83)) → part20_out_gaaa(T83)
app65_in_aaaa → U14_aaaa(app65_in_aaaa)
app65_in_aaaa → app65_out_aaaa
U1_ga(T37, gt10_out_ga(T37, T38)) → gt10_out_ga(s(T37), s(T38))
U6_ga(T98, le33_out_ga(T98, T99)) → le33_out_ga(s(T98), s(T99))
U14_aaaa(app65_out_aaaa) → app65_out_aaaa
part20_in_aaaa
qs53_in_aa
U2_aaaa(x0)
U4_aaaa(x0)
U7_aa(x0)
U8_aa(x0)
gt10_in_aa
U3_aaaa(x0)
le33_in_aa
U5_aaaa(x0)
U9_aa(x0)
U10_aa(x0)
U1_aa(x0)
part20_in_gaaa(x0)
U6_aa(x0)
U11_aa(x0)
U12_aa(x0)
U2_gaaa(x0, x1)
U4_gaaa(x0, x1)
U13_aa(x0)
gt10_in_ga(x0)
U3_gaaa(x0, x1)
le33_in_ga(x0)
U5_gaaa(x0, x1)
app65_in_aaaa
U1_ga(x0, x1)
U6_ga(x0, x1)
U14_aaaa(x0)
QS53_IN_AA → U8_AA(U2_aaaa(gt10_in_aa))
QS53_IN_AA → U8_AA(U4_aaaa(le33_in_aa))
QS53_IN_AA → U8_AA(part20_out_aaaa)
U8_AA(part20_out_aaaa) → QS53_IN_AA
U8_AA(part20_out_aaaa) → U10_AA(qs53_in_aa)
U10_AA(qs53_out_aa) → QS53_IN_AA
QS53_IN_AA → U8_AA(U2_aaaa(gt10_in_aa))
QS53_IN_AA → U8_AA(U4_aaaa(le33_in_aa))
QS53_IN_AA → U8_AA(part20_out_aaaa)
part20_in_aaaa → U2_aaaa(gt10_in_aa)
part20_in_aaaa → U4_aaaa(le33_in_aa)
part20_in_aaaa → part20_out_aaaa
qs53_in_aa → U7_aa(part20_in_aaaa)
qs53_in_aa → U8_aa(part20_in_aaaa)
qs53_in_aa → qs53_out_aa
U2_aaaa(gt10_out_aa(T61, T62)) → part20_out_aaaa
U2_aaaa(gt10_out_aa(T61, T62)) → U3_aaaa(part20_in_gaaa(T61))
U4_aaaa(le33_out_aa(T83, T84)) → part20_out_aaaa
U4_aaaa(le33_out_aa(T83, T84)) → U5_aaaa(part20_in_gaaa(T83))
U7_aa(part20_out_aaaa) → qs53_out_aa
U8_aa(part20_out_aaaa) → U9_aa(qs53_in_aa)
U8_aa(part20_out_aaaa) → U10_aa(qs53_in_aa)
gt10_in_aa → U1_aa(gt10_in_aa)
gt10_in_aa → gt10_out_aa(s(0), 0)
U3_aaaa(part20_out_gaaa(T61)) → part20_out_aaaa
le33_in_aa → U6_aa(le33_in_aa)
le33_in_aa → le33_out_aa(0, s(0))
le33_in_aa → le33_out_aa(0, 0)
U5_aaaa(part20_out_gaaa(T83)) → part20_out_aaaa
U9_aa(qs53_out_aa) → qs53_out_aa
U10_aa(qs53_out_aa) → U11_aa(qs53_in_aa)
U10_aa(qs53_out_aa) → U12_aa(qs53_in_aa)
U1_aa(gt10_out_aa(T37, T38)) → gt10_out_aa(s(T37), s(T38))
part20_in_gaaa(T61) → U2_gaaa(T61, gt10_in_ga(T61))
part20_in_gaaa(T83) → U4_gaaa(T83, le33_in_ga(T83))
part20_in_gaaa(T107) → part20_out_gaaa(T107)
U6_aa(le33_out_aa(T98, T99)) → le33_out_aa(s(T98), s(T99))
U11_aa(qs53_out_aa) → qs53_out_aa
U12_aa(qs53_out_aa) → U13_aa(app65_in_aaaa)
U2_gaaa(T61, gt10_out_ga(T61, T62)) → part20_out_gaaa(T61)
U2_gaaa(T61, gt10_out_ga(T61, T62)) → U3_gaaa(T61, part20_in_gaaa(T61))
U4_gaaa(T83, le33_out_ga(T83, T84)) → part20_out_gaaa(T83)
U4_gaaa(T83, le33_out_ga(T83, T84)) → U5_gaaa(T83, part20_in_gaaa(T83))
U13_aa(app65_out_aaaa) → qs53_out_aa
gt10_in_ga(s(T37)) → U1_ga(T37, gt10_in_ga(T37))
gt10_in_ga(s(0)) → gt10_out_ga(s(0), 0)
U3_gaaa(T61, part20_out_gaaa(T61)) → part20_out_gaaa(T61)
le33_in_ga(s(T98)) → U6_ga(T98, le33_in_ga(T98))
le33_in_ga(0) → le33_out_ga(0, s(0))
le33_in_ga(0) → le33_out_ga(0, 0)
U5_gaaa(T83, part20_out_gaaa(T83)) → part20_out_gaaa(T83)
app65_in_aaaa → U14_aaaa(app65_in_aaaa)
app65_in_aaaa → app65_out_aaaa
U1_ga(T37, gt10_out_ga(T37, T38)) → gt10_out_ga(s(T37), s(T38))
U6_ga(T98, le33_out_ga(T98, T99)) → le33_out_ga(s(T98), s(T99))
U14_aaaa(app65_out_aaaa) → app65_out_aaaa
part20_in_aaaa
qs53_in_aa
U2_aaaa(x0)
U4_aaaa(x0)
U7_aa(x0)
U8_aa(x0)
gt10_in_aa
U3_aaaa(x0)
le33_in_aa
U5_aaaa(x0)
U9_aa(x0)
U10_aa(x0)
U1_aa(x0)
part20_in_gaaa(x0)
U6_aa(x0)
U11_aa(x0)
U12_aa(x0)
U2_gaaa(x0, x1)
U4_gaaa(x0, x1)
U13_aa(x0)
gt10_in_ga(x0)
U3_gaaa(x0, x1)
le33_in_ga(x0)
U5_gaaa(x0, x1)
app65_in_aaaa
U1_ga(x0, x1)
U6_ga(x0, x1)
U14_aaaa(x0)
U8_AA(part20_out_aaaa) → U10_AA(U7_aa(part20_in_aaaa))
U8_AA(part20_out_aaaa) → U10_AA(U8_aa(part20_in_aaaa))
U8_AA(part20_out_aaaa) → U10_AA(qs53_out_aa)
U8_AA(part20_out_aaaa) → QS53_IN_AA
U10_AA(qs53_out_aa) → QS53_IN_AA
QS53_IN_AA → U8_AA(U2_aaaa(gt10_in_aa))
QS53_IN_AA → U8_AA(U4_aaaa(le33_in_aa))
QS53_IN_AA → U8_AA(part20_out_aaaa)
U8_AA(part20_out_aaaa) → U10_AA(U7_aa(part20_in_aaaa))
U8_AA(part20_out_aaaa) → U10_AA(U8_aa(part20_in_aaaa))
U8_AA(part20_out_aaaa) → U10_AA(qs53_out_aa)
part20_in_aaaa → U2_aaaa(gt10_in_aa)
part20_in_aaaa → U4_aaaa(le33_in_aa)
part20_in_aaaa → part20_out_aaaa
qs53_in_aa → U7_aa(part20_in_aaaa)
qs53_in_aa → U8_aa(part20_in_aaaa)
qs53_in_aa → qs53_out_aa
U2_aaaa(gt10_out_aa(T61, T62)) → part20_out_aaaa
U2_aaaa(gt10_out_aa(T61, T62)) → U3_aaaa(part20_in_gaaa(T61))
U4_aaaa(le33_out_aa(T83, T84)) → part20_out_aaaa
U4_aaaa(le33_out_aa(T83, T84)) → U5_aaaa(part20_in_gaaa(T83))
U7_aa(part20_out_aaaa) → qs53_out_aa
U8_aa(part20_out_aaaa) → U9_aa(qs53_in_aa)
U8_aa(part20_out_aaaa) → U10_aa(qs53_in_aa)
gt10_in_aa → U1_aa(gt10_in_aa)
gt10_in_aa → gt10_out_aa(s(0), 0)
U3_aaaa(part20_out_gaaa(T61)) → part20_out_aaaa
le33_in_aa → U6_aa(le33_in_aa)
le33_in_aa → le33_out_aa(0, s(0))
le33_in_aa → le33_out_aa(0, 0)
U5_aaaa(part20_out_gaaa(T83)) → part20_out_aaaa
U9_aa(qs53_out_aa) → qs53_out_aa
U10_aa(qs53_out_aa) → U11_aa(qs53_in_aa)
U10_aa(qs53_out_aa) → U12_aa(qs53_in_aa)
U1_aa(gt10_out_aa(T37, T38)) → gt10_out_aa(s(T37), s(T38))
part20_in_gaaa(T61) → U2_gaaa(T61, gt10_in_ga(T61))
part20_in_gaaa(T83) → U4_gaaa(T83, le33_in_ga(T83))
part20_in_gaaa(T107) → part20_out_gaaa(T107)
U6_aa(le33_out_aa(T98, T99)) → le33_out_aa(s(T98), s(T99))
U11_aa(qs53_out_aa) → qs53_out_aa
U12_aa(qs53_out_aa) → U13_aa(app65_in_aaaa)
U2_gaaa(T61, gt10_out_ga(T61, T62)) → part20_out_gaaa(T61)
U2_gaaa(T61, gt10_out_ga(T61, T62)) → U3_gaaa(T61, part20_in_gaaa(T61))
U4_gaaa(T83, le33_out_ga(T83, T84)) → part20_out_gaaa(T83)
U4_gaaa(T83, le33_out_ga(T83, T84)) → U5_gaaa(T83, part20_in_gaaa(T83))
U13_aa(app65_out_aaaa) → qs53_out_aa
gt10_in_ga(s(T37)) → U1_ga(T37, gt10_in_ga(T37))
gt10_in_ga(s(0)) → gt10_out_ga(s(0), 0)
U3_gaaa(T61, part20_out_gaaa(T61)) → part20_out_gaaa(T61)
le33_in_ga(s(T98)) → U6_ga(T98, le33_in_ga(T98))
le33_in_ga(0) → le33_out_ga(0, s(0))
le33_in_ga(0) → le33_out_ga(0, 0)
U5_gaaa(T83, part20_out_gaaa(T83)) → part20_out_gaaa(T83)
app65_in_aaaa → U14_aaaa(app65_in_aaaa)
app65_in_aaaa → app65_out_aaaa
U1_ga(T37, gt10_out_ga(T37, T38)) → gt10_out_ga(s(T37), s(T38))
U6_ga(T98, le33_out_ga(T98, T99)) → le33_out_ga(s(T98), s(T99))
U14_aaaa(app65_out_aaaa) → app65_out_aaaa
part20_in_aaaa
qs53_in_aa
U2_aaaa(x0)
U4_aaaa(x0)
U7_aa(x0)
U8_aa(x0)
gt10_in_aa
U3_aaaa(x0)
le33_in_aa
U5_aaaa(x0)
U9_aa(x0)
U10_aa(x0)
U1_aa(x0)
part20_in_gaaa(x0)
U6_aa(x0)
U11_aa(x0)
U12_aa(x0)
U2_gaaa(x0, x1)
U4_gaaa(x0, x1)
U13_aa(x0)
gt10_in_ga(x0)
U3_gaaa(x0, x1)
le33_in_ga(x0)
U5_gaaa(x0, x1)
app65_in_aaaa
U1_ga(x0, x1)
U6_ga(x0, x1)
U14_aaaa(x0)
U19_AA(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → U21_AA(T22, T23, T24, T9, part20_in_gaaa(T22, T24, T44, T45))
U21_AA(T22, T23, T24, T9, part20_out_gaaa(T22, T24, T44, T45)) → QS1_IN_AA(.(T23, T44), X9)
QS1_IN_AA(.(T22, .(T23, T24)), T9) → U19_AA(T22, T23, T24, T9, gt10_in_aa(T22, T23))
qs1_in_ga(.(T22, .(T23, T24)), T9) → U19_ga(T22, T23, T24, T9, gt10_in_gg(T22, T23))
gt10_in_gg(s(T37), s(T38)) → U1_gg(T37, T38, gt10_in_gg(T37, T38))
gt10_in_gg(s(0), 0) → gt10_out_gg(s(0), 0)
U1_gg(T37, T38, gt10_out_gg(T37, T38)) → gt10_out_gg(s(T37), s(T38))
U19_ga(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U19_ga(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → U20_ga(T22, T23, T24, T9, part20_in_ggaa(T22, T24, X47, X48))
part20_in_ggaa(T61, .(T62, T63), .(T62, X119), X120) → U2_ggaa(T61, T62, T63, X119, X120, gt10_in_gg(T61, T62))
U2_ggaa(T61, T62, T63, X119, X120, gt10_out_gg(T61, T62)) → part20_out_ggaa(T61, .(T62, T63), .(T62, X119), X120)
U2_ggaa(T61, T62, T63, X119, X120, gt10_out_gg(T61, T62)) → U3_ggaa(T61, T62, T63, X119, X120, part20_in_ggaa(T61, T63, X119, X120))
part20_in_ggaa(T83, .(T84, T85), X170, .(T84, X171)) → U4_ggaa(T83, T84, T85, X170, X171, le33_in_gg(T83, T84))
le33_in_gg(s(T98), s(T99)) → U6_gg(T98, T99, le33_in_gg(T98, T99))
le33_in_gg(0, s(0)) → le33_out_gg(0, s(0))
le33_in_gg(0, 0) → le33_out_gg(0, 0)
U6_gg(T98, T99, le33_out_gg(T98, T99)) → le33_out_gg(s(T98), s(T99))
U4_ggaa(T83, T84, T85, X170, X171, le33_out_gg(T83, T84)) → part20_out_ggaa(T83, .(T84, T85), X170, .(T84, X171))
U4_ggaa(T83, T84, T85, X170, X171, le33_out_gg(T83, T84)) → U5_ggaa(T83, T84, T85, X170, X171, part20_in_ggaa(T83, T85, X170, X171))
part20_in_ggaa(T107, [], [], []) → part20_out_ggaa(T107, [], [], [])
U5_ggaa(T83, T84, T85, X170, X171, part20_out_ggaa(T83, T85, X170, X171)) → part20_out_ggaa(T83, .(T84, T85), X170, .(T84, X171))
U3_ggaa(T61, T62, T63, X119, X120, part20_out_ggaa(T61, T63, X119, X120)) → part20_out_ggaa(T61, .(T62, T63), .(T62, X119), X120)
U20_ga(T22, T23, T24, T9, part20_out_ggaa(T22, T24, X47, X48)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U19_ga(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → U21_ga(T22, T23, T24, T9, part20_in_ggaa(T22, T24, T44, T45))
U21_ga(T22, T23, T24, T9, part20_out_ggaa(T22, T24, T44, T45)) → U22_ga(T22, T23, T24, T9, qs1_in_aa(.(T23, T44), X9))
qs1_in_aa(.(T22, .(T23, T24)), T9) → U19_aa(T22, T23, T24, T9, gt10_in_aa(T22, T23))
gt10_in_aa(s(T37), s(T38)) → U1_aa(T37, T38, gt10_in_aa(T37, T38))
gt10_in_aa(s(0), 0) → gt10_out_aa(s(0), 0)
U1_aa(T37, T38, gt10_out_aa(T37, T38)) → gt10_out_aa(s(T37), s(T38))
U19_aa(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U19_aa(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → U20_aa(T22, T23, T24, T9, part20_in_gaaa(T22, T24, X47, X48))
part20_in_gaaa(T61, .(T62, T63), .(T62, X119), X120) → U2_gaaa(T61, T62, T63, X119, X120, gt10_in_ga(T61, T62))
gt10_in_ga(s(T37), s(T38)) → U1_ga(T37, T38, gt10_in_ga(T37, T38))
gt10_in_ga(s(0), 0) → gt10_out_ga(s(0), 0)
U1_ga(T37, T38, gt10_out_ga(T37, T38)) → gt10_out_ga(s(T37), s(T38))
U2_gaaa(T61, T62, T63, X119, X120, gt10_out_ga(T61, T62)) → part20_out_gaaa(T61, .(T62, T63), .(T62, X119), X120)
U2_gaaa(T61, T62, T63, X119, X120, gt10_out_ga(T61, T62)) → U3_gaaa(T61, T62, T63, X119, X120, part20_in_gaaa(T61, T63, X119, X120))
part20_in_gaaa(T83, .(T84, T85), X170, .(T84, X171)) → U4_gaaa(T83, T84, T85, X170, X171, le33_in_ga(T83, T84))
le33_in_ga(s(T98), s(T99)) → U6_ga(T98, T99, le33_in_ga(T98, T99))
le33_in_ga(0, s(0)) → le33_out_ga(0, s(0))
le33_in_ga(0, 0) → le33_out_ga(0, 0)
U6_ga(T98, T99, le33_out_ga(T98, T99)) → le33_out_ga(s(T98), s(T99))
U4_gaaa(T83, T84, T85, X170, X171, le33_out_ga(T83, T84)) → part20_out_gaaa(T83, .(T84, T85), X170, .(T84, X171))
U4_gaaa(T83, T84, T85, X170, X171, le33_out_ga(T83, T84)) → U5_gaaa(T83, T84, T85, X170, X171, part20_in_gaaa(T83, T85, X170, X171))
part20_in_gaaa(T107, [], [], []) → part20_out_gaaa(T107, [], [], [])
U5_gaaa(T83, T84, T85, X170, X171, part20_out_gaaa(T83, T85, X170, X171)) → part20_out_gaaa(T83, .(T84, T85), X170, .(T84, X171))
U3_gaaa(T61, T62, T63, X119, X120, part20_out_gaaa(T61, T63, X119, X120)) → part20_out_gaaa(T61, .(T62, T63), .(T62, X119), X120)
U20_aa(T22, T23, T24, T9, part20_out_gaaa(T22, T24, X47, X48)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U19_aa(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → U21_aa(T22, T23, T24, T9, part20_in_gaaa(T22, T24, T44, T45))
U21_aa(T22, T23, T24, T9, part20_out_gaaa(T22, T24, T44, T45)) → U22_aa(T22, T23, T24, T9, qs1_in_aa(.(T23, T44), X9))
qs1_in_aa(.(T234, .(T235, T236)), T9) → U25_aa(T234, T235, T236, T9, le33_in_aa(T234, T235))
le33_in_aa(s(T98), s(T99)) → U6_aa(T98, T99, le33_in_aa(T98, T99))
le33_in_aa(0, s(0)) → le33_out_aa(0, s(0))
le33_in_aa(0, 0) → le33_out_aa(0, 0)
U6_aa(T98, T99, le33_out_aa(T98, T99)) → le33_out_aa(s(T98), s(T99))
U25_aa(T234, T235, T236, T9, le33_out_aa(T234, T235)) → qs1_out_aa(.(T234, .(T235, T236)), T9)
U25_aa(T234, T235, T236, T9, le33_out_aa(T234, T235)) → U26_aa(T234, T235, T236, T9, part20_in_gaaa(T234, T236, X431, X432))
U26_aa(T234, T235, T236, T9, part20_out_gaaa(T234, T236, X431, X432)) → qs1_out_aa(.(T234, .(T235, T236)), T9)
U25_aa(T234, T235, T236, T9, le33_out_aa(T234, T235)) → U27_aa(T234, T235, T236, T9, part20_in_gaaa(T234, T236, T244, T245))
U27_aa(T234, T235, T236, T9, part20_out_gaaa(T234, T236, T244, T245)) → U28_aa(T234, T235, T236, T9, qs53_in_aa(T244, X9))
qs53_in_aa(.(T126, T127), X269) → U7_aa(T126, T127, X269, part20_in_aaaa(T126, T127, X265, X266))
part20_in_aaaa(T61, .(T62, T63), .(T62, X119), X120) → U2_aaaa(T61, T62, T63, X119, X120, gt10_in_aa(T61, T62))
U2_aaaa(T61, T62, T63, X119, X120, gt10_out_aa(T61, T62)) → part20_out_aaaa(T61, .(T62, T63), .(T62, X119), X120)
U2_aaaa(T61, T62, T63, X119, X120, gt10_out_aa(T61, T62)) → U3_aaaa(T61, T62, T63, X119, X120, part20_in_gaaa(T61, T63, X119, X120))
U3_aaaa(T61, T62, T63, X119, X120, part20_out_gaaa(T61, T63, X119, X120)) → part20_out_aaaa(T61, .(T62, T63), .(T62, X119), X120)
part20_in_aaaa(T83, .(T84, T85), X170, .(T84, X171)) → U4_aaaa(T83, T84, T85, X170, X171, le33_in_aa(T83, T84))
U4_aaaa(T83, T84, T85, X170, X171, le33_out_aa(T83, T84)) → part20_out_aaaa(T83, .(T84, T85), X170, .(T84, X171))
U4_aaaa(T83, T84, T85, X170, X171, le33_out_aa(T83, T84)) → U5_aaaa(T83, T84, T85, X170, X171, part20_in_gaaa(T83, T85, X170, X171))
U5_aaaa(T83, T84, T85, X170, X171, part20_out_gaaa(T83, T85, X170, X171)) → part20_out_aaaa(T83, .(T84, T85), X170, .(T84, X171))
part20_in_aaaa(T107, [], [], []) → part20_out_aaaa(T107, [], [], [])
U7_aa(T126, T127, X269, part20_out_aaaa(T126, T127, X265, X266)) → qs53_out_aa(.(T126, T127), X269)
qs53_in_aa(.(T126, T127), X269) → U8_aa(T126, T127, X269, part20_in_aaaa(T126, T127, T131, T132))
U8_aa(T126, T127, X269, part20_out_aaaa(T126, T127, T131, T132)) → U9_aa(T126, T127, X269, qs53_in_aa(T131, X267))
qs53_in_aa([], []) → qs53_out_aa([], [])
U9_aa(T126, T127, X269, qs53_out_aa(T131, X267)) → qs53_out_aa(.(T126, T127), X269)
U8_aa(T126, T127, X269, part20_out_aaaa(T126, T127, T131, T132)) → U10_aa(T126, T127, X269, T132, qs53_in_aa(T131, T138))
U10_aa(T126, T127, X269, T132, qs53_out_aa(T131, T138)) → U11_aa(T126, T127, X269, qs53_in_aa(T132, X268))
U11_aa(T126, T127, X269, qs53_out_aa(T132, X268)) → qs53_out_aa(.(T126, T127), X269)
U10_aa(T126, T127, X269, T132, qs53_out_aa(T131, T138)) → U12_aa(T126, T127, X269, T138, qs53_in_aa(T132, T143))
U12_aa(T126, T127, X269, T138, qs53_out_aa(T132, T143)) → U13_aa(T126, T127, X269, app65_in_aaaa(T138, T126, T143, X269))
app65_in_aaaa(.(T166, T167), T168, T169, .(T166, X348)) → U14_aaaa(T166, T167, T168, T169, X348, app65_in_aaaa(T167, T168, T169, X348))
app65_in_aaaa([], T178, T179, .(T178, T179)) → app65_out_aaaa([], T178, T179, .(T178, T179))
U14_aaaa(T166, T167, T168, T169, X348, app65_out_aaaa(T167, T168, T169, X348)) → app65_out_aaaa(.(T166, T167), T168, T169, .(T166, X348))
U13_aa(T126, T127, X269, app65_out_aaaa(T138, T126, T143, X269)) → qs53_out_aa(.(T126, T127), X269)
U28_aa(T234, T235, T236, T9, qs53_out_aa(T244, X9)) → qs1_out_aa(.(T234, .(T235, T236)), T9)
U27_aa(T234, T235, T236, T9, part20_out_gaaa(T234, T236, T244, T245)) → U29_aa(T234, T235, T236, T9, T245, qs53_in_aa(T244, T251))
U29_aa(T234, T235, T236, T9, T245, qs53_out_aa(T244, T251)) → U30_aa(T234, T235, T236, T9, p52_in_aaaga(.(T235, T245), X10, T251, T234, T9))
p52_in_aaaga(T45, X10, T110, T22, T9) → U16_aaaga(T45, X10, T110, T22, T9, qs53_in_aa(T45, X10))
U16_aaaga(T45, X10, T110, T22, T9, qs53_out_aa(T45, X10)) → p52_out_aaaga(T45, X10, T110, T22, T9)
p52_in_aaaga(T45, T115, T110, T22, T9) → U17_aaaga(T45, T115, T110, T22, T9, qs53_in_aa(T45, T115))
U17_aaaga(T45, T115, T110, T22, T9, qs53_out_aa(T45, T115)) → U18_aaaga(T45, T115, T110, T22, T9, app54_in_agaa(T110, T22, T115, T9))
app54_in_agaa(.(T205, T206), T207, T208, .(T205, T210)) → U15_agaa(T205, T206, T207, T208, T210, app54_in_agaa(T206, T207, T208, T210))
app54_in_agaa([], T220, T221, .(T220, T221)) → app54_out_agaa([], T220, T221, .(T220, T221))
U15_agaa(T205, T206, T207, T208, T210, app54_out_agaa(T206, T207, T208, T210)) → app54_out_agaa(.(T205, T206), T207, T208, .(T205, T210))
U18_aaaga(T45, T115, T110, T22, T9, app54_out_agaa(T110, T22, T115, T9)) → p52_out_aaaga(T45, T115, T110, T22, T9)
U30_aa(T234, T235, T236, T9, p52_out_aaaga(.(T235, T245), X10, T251, T234, T9)) → qs1_out_aa(.(T234, .(T235, T236)), T9)
qs1_in_aa(.(T260, []), T9) → U31_aa(T260, T9, qs99_in_a(X9))
qs99_in_a([]) → qs99_out_a([])
U31_aa(T260, T9, qs99_out_a(X9)) → qs1_out_aa(.(T260, []), T9)
qs1_in_aa(.(T260, []), T9) → U32_aa(T260, T9, qs99_in_a(T263))
U32_aa(T260, T9, qs99_out_a(T263)) → U33_aa(T260, T9, qs99_in_a(X10))
U33_aa(T260, T9, qs99_out_a(X10)) → qs1_out_aa(.(T260, []), T9)
U32_aa(T260, T9, qs99_out_a(T263)) → U34_aa(T260, T9, T263, qs99_in_a(T268))
U34_aa(T260, T9, T263, qs99_out_a(T268)) → U35_aa(T260, T9, app54_in_gaga(T263, T260, T268, T9))
app54_in_gaga(.(T205, T206), T207, T208, .(T205, T210)) → U15_gaga(T205, T206, T207, T208, T210, app54_in_gaga(T206, T207, T208, T210))
app54_in_gaga([], T220, T221, .(T220, T221)) → app54_out_gaga([], T220, T221, .(T220, T221))
U15_gaga(T205, T206, T207, T208, T210, app54_out_gaga(T206, T207, T208, T210)) → app54_out_gaga(.(T205, T206), T207, T208, .(T205, T210))
U35_aa(T260, T9, app54_out_gaga(T263, T260, T268, T9)) → qs1_out_aa(.(T260, []), T9)
qs1_in_aa([], []) → qs1_out_aa([], [])
U22_aa(T22, T23, T24, T9, qs1_out_aa(.(T23, T44), X9)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U21_aa(T22, T23, T24, T9, part20_out_gaaa(T22, T24, T44, T45)) → U23_aa(T22, T23, T24, T9, T45, qs1_in_aa(.(T23, T44), T110))
U23_aa(T22, T23, T24, T9, T45, qs1_out_aa(.(T23, T44), T110)) → U24_aa(T22, T23, T24, T9, p52_in_aaaga(T45, X10, T110, T22, T9))
U24_aa(T22, T23, T24, T9, p52_out_aaaga(T45, X10, T110, T22, T9)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U22_ga(T22, T23, T24, T9, qs1_out_aa(.(T23, T44), X9)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U21_ga(T22, T23, T24, T9, part20_out_ggaa(T22, T24, T44, T45)) → U23_ga(T22, T23, T24, T9, T45, qs1_in_aa(.(T23, T44), T110))
U23_ga(T22, T23, T24, T9, T45, qs1_out_aa(.(T23, T44), T110)) → U24_ga(T22, T23, T24, T9, p52_in_aaaga(T45, X10, T110, T22, T9))
U24_ga(T22, T23, T24, T9, p52_out_aaaga(T45, X10, T110, T22, T9)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
qs1_in_ga(.(T234, .(T235, T236)), T9) → U25_ga(T234, T235, T236, T9, le33_in_gg(T234, T235))
U25_ga(T234, T235, T236, T9, le33_out_gg(T234, T235)) → qs1_out_ga(.(T234, .(T235, T236)), T9)
U25_ga(T234, T235, T236, T9, le33_out_gg(T234, T235)) → U26_ga(T234, T235, T236, T9, part20_in_ggaa(T234, T236, X431, X432))
U26_ga(T234, T235, T236, T9, part20_out_ggaa(T234, T236, X431, X432)) → qs1_out_ga(.(T234, .(T235, T236)), T9)
U25_ga(T234, T235, T236, T9, le33_out_gg(T234, T235)) → U27_ga(T234, T235, T236, T9, part20_in_ggaa(T234, T236, T244, T245))
U27_ga(T234, T235, T236, T9, part20_out_ggaa(T234, T236, T244, T245)) → U28_ga(T234, T235, T236, T9, qs53_in_aa(T244, X9))
U28_ga(T234, T235, T236, T9, qs53_out_aa(T244, X9)) → qs1_out_ga(.(T234, .(T235, T236)), T9)
U27_ga(T234, T235, T236, T9, part20_out_ggaa(T234, T236, T244, T245)) → U29_ga(T234, T235, T236, T9, T245, qs53_in_aa(T244, T251))
U29_ga(T234, T235, T236, T9, T245, qs53_out_aa(T244, T251)) → U30_ga(T234, T235, T236, T9, p52_in_aaaga(.(T235, T245), X10, T251, T234, T9))
U30_ga(T234, T235, T236, T9, p52_out_aaaga(.(T235, T245), X10, T251, T234, T9)) → qs1_out_ga(.(T234, .(T235, T236)), T9)
qs1_in_ga(.(T260, []), T9) → U31_ga(T260, T9, qs99_in_a(X9))
U31_ga(T260, T9, qs99_out_a(X9)) → qs1_out_ga(.(T260, []), T9)
qs1_in_ga(.(T260, []), T9) → U32_ga(T260, T9, qs99_in_a(T263))
U32_ga(T260, T9, qs99_out_a(T263)) → U33_ga(T260, T9, qs99_in_a(X10))
U33_ga(T260, T9, qs99_out_a(X10)) → qs1_out_ga(.(T260, []), T9)
U32_ga(T260, T9, qs99_out_a(T263)) → U34_ga(T260, T9, T263, qs99_in_a(T268))
U34_ga(T260, T9, T263, qs99_out_a(T268)) → U35_ga(T260, T9, app54_in_ggga(T263, T260, T268, T9))
app54_in_ggga(.(T205, T206), T207, T208, .(T205, T210)) → U15_ggga(T205, T206, T207, T208, T210, app54_in_ggga(T206, T207, T208, T210))
app54_in_ggga([], T220, T221, .(T220, T221)) → app54_out_ggga([], T220, T221, .(T220, T221))
U15_ggga(T205, T206, T207, T208, T210, app54_out_ggga(T206, T207, T208, T210)) → app54_out_ggga(.(T205, T206), T207, T208, .(T205, T210))
U35_ga(T260, T9, app54_out_ggga(T263, T260, T268, T9)) → qs1_out_ga(.(T260, []), T9)
qs1_in_ga([], []) → qs1_out_ga([], [])
U19_AA(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → U21_AA(T22, T23, T24, T9, part20_in_gaaa(T22, T24, T44, T45))
U21_AA(T22, T23, T24, T9, part20_out_gaaa(T22, T24, T44, T45)) → QS1_IN_AA(.(T23, T44), X9)
QS1_IN_AA(.(T22, .(T23, T24)), T9) → U19_AA(T22, T23, T24, T9, gt10_in_aa(T22, T23))
part20_in_gaaa(T61, .(T62, T63), .(T62, X119), X120) → U2_gaaa(T61, T62, T63, X119, X120, gt10_in_ga(T61, T62))
part20_in_gaaa(T83, .(T84, T85), X170, .(T84, X171)) → U4_gaaa(T83, T84, T85, X170, X171, le33_in_ga(T83, T84))
part20_in_gaaa(T107, [], [], []) → part20_out_gaaa(T107, [], [], [])
gt10_in_aa(s(T37), s(T38)) → U1_aa(T37, T38, gt10_in_aa(T37, T38))
gt10_in_aa(s(0), 0) → gt10_out_aa(s(0), 0)
U2_gaaa(T61, T62, T63, X119, X120, gt10_out_ga(T61, T62)) → part20_out_gaaa(T61, .(T62, T63), .(T62, X119), X120)
U2_gaaa(T61, T62, T63, X119, X120, gt10_out_ga(T61, T62)) → U3_gaaa(T61, T62, T63, X119, X120, part20_in_gaaa(T61, T63, X119, X120))
U4_gaaa(T83, T84, T85, X170, X171, le33_out_ga(T83, T84)) → part20_out_gaaa(T83, .(T84, T85), X170, .(T84, X171))
U4_gaaa(T83, T84, T85, X170, X171, le33_out_ga(T83, T84)) → U5_gaaa(T83, T84, T85, X170, X171, part20_in_gaaa(T83, T85, X170, X171))
U1_aa(T37, T38, gt10_out_aa(T37, T38)) → gt10_out_aa(s(T37), s(T38))
gt10_in_ga(s(T37), s(T38)) → U1_ga(T37, T38, gt10_in_ga(T37, T38))
gt10_in_ga(s(0), 0) → gt10_out_ga(s(0), 0)
U3_gaaa(T61, T62, T63, X119, X120, part20_out_gaaa(T61, T63, X119, X120)) → part20_out_gaaa(T61, .(T62, T63), .(T62, X119), X120)
le33_in_ga(s(T98), s(T99)) → U6_ga(T98, T99, le33_in_ga(T98, T99))
le33_in_ga(0, s(0)) → le33_out_ga(0, s(0))
le33_in_ga(0, 0) → le33_out_ga(0, 0)
U5_gaaa(T83, T84, T85, X170, X171, part20_out_gaaa(T83, T85, X170, X171)) → part20_out_gaaa(T83, .(T84, T85), X170, .(T84, X171))
U1_ga(T37, T38, gt10_out_ga(T37, T38)) → gt10_out_ga(s(T37), s(T38))
U6_ga(T98, T99, le33_out_ga(T98, T99)) → le33_out_ga(s(T98), s(T99))
U19_AA(gt10_out_aa(T22, T23)) → U21_AA(T22, part20_in_gaaa(T22))
U21_AA(T22, part20_out_gaaa(T22)) → QS1_IN_AA
QS1_IN_AA → U19_AA(gt10_in_aa)
part20_in_gaaa(T61) → U2_gaaa(T61, gt10_in_ga(T61))
part20_in_gaaa(T83) → U4_gaaa(T83, le33_in_ga(T83))
part20_in_gaaa(T107) → part20_out_gaaa(T107)
gt10_in_aa → U1_aa(gt10_in_aa)
gt10_in_aa → gt10_out_aa(s(0), 0)
U2_gaaa(T61, gt10_out_ga(T61, T62)) → part20_out_gaaa(T61)
U2_gaaa(T61, gt10_out_ga(T61, T62)) → U3_gaaa(T61, part20_in_gaaa(T61))
U4_gaaa(T83, le33_out_ga(T83, T84)) → part20_out_gaaa(T83)
U4_gaaa(T83, le33_out_ga(T83, T84)) → U5_gaaa(T83, part20_in_gaaa(T83))
U1_aa(gt10_out_aa(T37, T38)) → gt10_out_aa(s(T37), s(T38))
gt10_in_ga(s(T37)) → U1_ga(T37, gt10_in_ga(T37))
gt10_in_ga(s(0)) → gt10_out_ga(s(0), 0)
U3_gaaa(T61, part20_out_gaaa(T61)) → part20_out_gaaa(T61)
le33_in_ga(s(T98)) → U6_ga(T98, le33_in_ga(T98))
le33_in_ga(0) → le33_out_ga(0, s(0))
le33_in_ga(0) → le33_out_ga(0, 0)
U5_gaaa(T83, part20_out_gaaa(T83)) → part20_out_gaaa(T83)
U1_ga(T37, gt10_out_ga(T37, T38)) → gt10_out_ga(s(T37), s(T38))
U6_ga(T98, le33_out_ga(T98, T99)) → le33_out_ga(s(T98), s(T99))
part20_in_gaaa(x0)
gt10_in_aa
U2_gaaa(x0, x1)
U4_gaaa(x0, x1)
U1_aa(x0)
gt10_in_ga(x0)
U3_gaaa(x0, x1)
le33_in_ga(x0)
U5_gaaa(x0, x1)
U1_ga(x0, x1)
U6_ga(x0, x1)
U19_AA(gt10_out_aa(x0, y1)) → U21_AA(x0, U2_gaaa(x0, gt10_in_ga(x0)))
U19_AA(gt10_out_aa(x0, y1)) → U21_AA(x0, U4_gaaa(x0, le33_in_ga(x0)))
U19_AA(gt10_out_aa(x0, y1)) → U21_AA(x0, part20_out_gaaa(x0))
U21_AA(T22, part20_out_gaaa(T22)) → QS1_IN_AA
QS1_IN_AA → U19_AA(gt10_in_aa)
U19_AA(gt10_out_aa(x0, y1)) → U21_AA(x0, U2_gaaa(x0, gt10_in_ga(x0)))
U19_AA(gt10_out_aa(x0, y1)) → U21_AA(x0, U4_gaaa(x0, le33_in_ga(x0)))
U19_AA(gt10_out_aa(x0, y1)) → U21_AA(x0, part20_out_gaaa(x0))
part20_in_gaaa(T61) → U2_gaaa(T61, gt10_in_ga(T61))
part20_in_gaaa(T83) → U4_gaaa(T83, le33_in_ga(T83))
part20_in_gaaa(T107) → part20_out_gaaa(T107)
gt10_in_aa → U1_aa(gt10_in_aa)
gt10_in_aa → gt10_out_aa(s(0), 0)
U2_gaaa(T61, gt10_out_ga(T61, T62)) → part20_out_gaaa(T61)
U2_gaaa(T61, gt10_out_ga(T61, T62)) → U3_gaaa(T61, part20_in_gaaa(T61))
U4_gaaa(T83, le33_out_ga(T83, T84)) → part20_out_gaaa(T83)
U4_gaaa(T83, le33_out_ga(T83, T84)) → U5_gaaa(T83, part20_in_gaaa(T83))
U1_aa(gt10_out_aa(T37, T38)) → gt10_out_aa(s(T37), s(T38))
gt10_in_ga(s(T37)) → U1_ga(T37, gt10_in_ga(T37))
gt10_in_ga(s(0)) → gt10_out_ga(s(0), 0)
U3_gaaa(T61, part20_out_gaaa(T61)) → part20_out_gaaa(T61)
le33_in_ga(s(T98)) → U6_ga(T98, le33_in_ga(T98))
le33_in_ga(0) → le33_out_ga(0, s(0))
le33_in_ga(0) → le33_out_ga(0, 0)
U5_gaaa(T83, part20_out_gaaa(T83)) → part20_out_gaaa(T83)
U1_ga(T37, gt10_out_ga(T37, T38)) → gt10_out_ga(s(T37), s(T38))
U6_ga(T98, le33_out_ga(T98, T99)) → le33_out_ga(s(T98), s(T99))
part20_in_gaaa(x0)
gt10_in_aa
U2_gaaa(x0, x1)
U4_gaaa(x0, x1)
U1_aa(x0)
gt10_in_ga(x0)
U3_gaaa(x0, x1)
le33_in_ga(x0)
U5_gaaa(x0, x1)
U1_ga(x0, x1)
U6_ga(x0, x1)
QS1_IN_AA → U19_AA(U1_aa(gt10_in_aa))
QS1_IN_AA → U19_AA(gt10_out_aa(s(0), 0))
U21_AA(T22, part20_out_gaaa(T22)) → QS1_IN_AA
U19_AA(gt10_out_aa(x0, y1)) → U21_AA(x0, U2_gaaa(x0, gt10_in_ga(x0)))
U19_AA(gt10_out_aa(x0, y1)) → U21_AA(x0, U4_gaaa(x0, le33_in_ga(x0)))
U19_AA(gt10_out_aa(x0, y1)) → U21_AA(x0, part20_out_gaaa(x0))
QS1_IN_AA → U19_AA(U1_aa(gt10_in_aa))
QS1_IN_AA → U19_AA(gt10_out_aa(s(0), 0))
part20_in_gaaa(T61) → U2_gaaa(T61, gt10_in_ga(T61))
part20_in_gaaa(T83) → U4_gaaa(T83, le33_in_ga(T83))
part20_in_gaaa(T107) → part20_out_gaaa(T107)
gt10_in_aa → U1_aa(gt10_in_aa)
gt10_in_aa → gt10_out_aa(s(0), 0)
U2_gaaa(T61, gt10_out_ga(T61, T62)) → part20_out_gaaa(T61)
U2_gaaa(T61, gt10_out_ga(T61, T62)) → U3_gaaa(T61, part20_in_gaaa(T61))
U4_gaaa(T83, le33_out_ga(T83, T84)) → part20_out_gaaa(T83)
U4_gaaa(T83, le33_out_ga(T83, T84)) → U5_gaaa(T83, part20_in_gaaa(T83))
U1_aa(gt10_out_aa(T37, T38)) → gt10_out_aa(s(T37), s(T38))
gt10_in_ga(s(T37)) → U1_ga(T37, gt10_in_ga(T37))
gt10_in_ga(s(0)) → gt10_out_ga(s(0), 0)
U3_gaaa(T61, part20_out_gaaa(T61)) → part20_out_gaaa(T61)
le33_in_ga(s(T98)) → U6_ga(T98, le33_in_ga(T98))
le33_in_ga(0) → le33_out_ga(0, s(0))
le33_in_ga(0) → le33_out_ga(0, 0)
U5_gaaa(T83, part20_out_gaaa(T83)) → part20_out_gaaa(T83)
U1_ga(T37, gt10_out_ga(T37, T38)) → gt10_out_ga(s(T37), s(T38))
U6_ga(T98, le33_out_ga(T98, T99)) → le33_out_ga(s(T98), s(T99))
part20_in_gaaa(x0)
gt10_in_aa
U2_gaaa(x0, x1)
U4_gaaa(x0, x1)
U1_aa(x0)
gt10_in_ga(x0)
U3_gaaa(x0, x1)
le33_in_ga(x0)
U5_gaaa(x0, x1)
U1_ga(x0, x1)
U6_ga(x0, x1)
LE33_IN_GG(s(T98), s(T99)) → LE33_IN_GG(T98, T99)
qs1_in_ga(.(T22, .(T23, T24)), T9) → U19_ga(T22, T23, T24, T9, gt10_in_gg(T22, T23))
gt10_in_gg(s(T37), s(T38)) → U1_gg(T37, T38, gt10_in_gg(T37, T38))
gt10_in_gg(s(0), 0) → gt10_out_gg(s(0), 0)
U1_gg(T37, T38, gt10_out_gg(T37, T38)) → gt10_out_gg(s(T37), s(T38))
U19_ga(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U19_ga(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → U20_ga(T22, T23, T24, T9, part20_in_ggaa(T22, T24, X47, X48))
part20_in_ggaa(T61, .(T62, T63), .(T62, X119), X120) → U2_ggaa(T61, T62, T63, X119, X120, gt10_in_gg(T61, T62))
U2_ggaa(T61, T62, T63, X119, X120, gt10_out_gg(T61, T62)) → part20_out_ggaa(T61, .(T62, T63), .(T62, X119), X120)
U2_ggaa(T61, T62, T63, X119, X120, gt10_out_gg(T61, T62)) → U3_ggaa(T61, T62, T63, X119, X120, part20_in_ggaa(T61, T63, X119, X120))
part20_in_ggaa(T83, .(T84, T85), X170, .(T84, X171)) → U4_ggaa(T83, T84, T85, X170, X171, le33_in_gg(T83, T84))
le33_in_gg(s(T98), s(T99)) → U6_gg(T98, T99, le33_in_gg(T98, T99))
le33_in_gg(0, s(0)) → le33_out_gg(0, s(0))
le33_in_gg(0, 0) → le33_out_gg(0, 0)
U6_gg(T98, T99, le33_out_gg(T98, T99)) → le33_out_gg(s(T98), s(T99))
U4_ggaa(T83, T84, T85, X170, X171, le33_out_gg(T83, T84)) → part20_out_ggaa(T83, .(T84, T85), X170, .(T84, X171))
U4_ggaa(T83, T84, T85, X170, X171, le33_out_gg(T83, T84)) → U5_ggaa(T83, T84, T85, X170, X171, part20_in_ggaa(T83, T85, X170, X171))
part20_in_ggaa(T107, [], [], []) → part20_out_ggaa(T107, [], [], [])
U5_ggaa(T83, T84, T85, X170, X171, part20_out_ggaa(T83, T85, X170, X171)) → part20_out_ggaa(T83, .(T84, T85), X170, .(T84, X171))
U3_ggaa(T61, T62, T63, X119, X120, part20_out_ggaa(T61, T63, X119, X120)) → part20_out_ggaa(T61, .(T62, T63), .(T62, X119), X120)
U20_ga(T22, T23, T24, T9, part20_out_ggaa(T22, T24, X47, X48)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U19_ga(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → U21_ga(T22, T23, T24, T9, part20_in_ggaa(T22, T24, T44, T45))
U21_ga(T22, T23, T24, T9, part20_out_ggaa(T22, T24, T44, T45)) → U22_ga(T22, T23, T24, T9, qs1_in_aa(.(T23, T44), X9))
qs1_in_aa(.(T22, .(T23, T24)), T9) → U19_aa(T22, T23, T24, T9, gt10_in_aa(T22, T23))
gt10_in_aa(s(T37), s(T38)) → U1_aa(T37, T38, gt10_in_aa(T37, T38))
gt10_in_aa(s(0), 0) → gt10_out_aa(s(0), 0)
U1_aa(T37, T38, gt10_out_aa(T37, T38)) → gt10_out_aa(s(T37), s(T38))
U19_aa(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U19_aa(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → U20_aa(T22, T23, T24, T9, part20_in_gaaa(T22, T24, X47, X48))
part20_in_gaaa(T61, .(T62, T63), .(T62, X119), X120) → U2_gaaa(T61, T62, T63, X119, X120, gt10_in_ga(T61, T62))
gt10_in_ga(s(T37), s(T38)) → U1_ga(T37, T38, gt10_in_ga(T37, T38))
gt10_in_ga(s(0), 0) → gt10_out_ga(s(0), 0)
U1_ga(T37, T38, gt10_out_ga(T37, T38)) → gt10_out_ga(s(T37), s(T38))
U2_gaaa(T61, T62, T63, X119, X120, gt10_out_ga(T61, T62)) → part20_out_gaaa(T61, .(T62, T63), .(T62, X119), X120)
U2_gaaa(T61, T62, T63, X119, X120, gt10_out_ga(T61, T62)) → U3_gaaa(T61, T62, T63, X119, X120, part20_in_gaaa(T61, T63, X119, X120))
part20_in_gaaa(T83, .(T84, T85), X170, .(T84, X171)) → U4_gaaa(T83, T84, T85, X170, X171, le33_in_ga(T83, T84))
le33_in_ga(s(T98), s(T99)) → U6_ga(T98, T99, le33_in_ga(T98, T99))
le33_in_ga(0, s(0)) → le33_out_ga(0, s(0))
le33_in_ga(0, 0) → le33_out_ga(0, 0)
U6_ga(T98, T99, le33_out_ga(T98, T99)) → le33_out_ga(s(T98), s(T99))
U4_gaaa(T83, T84, T85, X170, X171, le33_out_ga(T83, T84)) → part20_out_gaaa(T83, .(T84, T85), X170, .(T84, X171))
U4_gaaa(T83, T84, T85, X170, X171, le33_out_ga(T83, T84)) → U5_gaaa(T83, T84, T85, X170, X171, part20_in_gaaa(T83, T85, X170, X171))
part20_in_gaaa(T107, [], [], []) → part20_out_gaaa(T107, [], [], [])
U5_gaaa(T83, T84, T85, X170, X171, part20_out_gaaa(T83, T85, X170, X171)) → part20_out_gaaa(T83, .(T84, T85), X170, .(T84, X171))
U3_gaaa(T61, T62, T63, X119, X120, part20_out_gaaa(T61, T63, X119, X120)) → part20_out_gaaa(T61, .(T62, T63), .(T62, X119), X120)
U20_aa(T22, T23, T24, T9, part20_out_gaaa(T22, T24, X47, X48)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U19_aa(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → U21_aa(T22, T23, T24, T9, part20_in_gaaa(T22, T24, T44, T45))
U21_aa(T22, T23, T24, T9, part20_out_gaaa(T22, T24, T44, T45)) → U22_aa(T22, T23, T24, T9, qs1_in_aa(.(T23, T44), X9))
qs1_in_aa(.(T234, .(T235, T236)), T9) → U25_aa(T234, T235, T236, T9, le33_in_aa(T234, T235))
le33_in_aa(s(T98), s(T99)) → U6_aa(T98, T99, le33_in_aa(T98, T99))
le33_in_aa(0, s(0)) → le33_out_aa(0, s(0))
le33_in_aa(0, 0) → le33_out_aa(0, 0)
U6_aa(T98, T99, le33_out_aa(T98, T99)) → le33_out_aa(s(T98), s(T99))
U25_aa(T234, T235, T236, T9, le33_out_aa(T234, T235)) → qs1_out_aa(.(T234, .(T235, T236)), T9)
U25_aa(T234, T235, T236, T9, le33_out_aa(T234, T235)) → U26_aa(T234, T235, T236, T9, part20_in_gaaa(T234, T236, X431, X432))
U26_aa(T234, T235, T236, T9, part20_out_gaaa(T234, T236, X431, X432)) → qs1_out_aa(.(T234, .(T235, T236)), T9)
U25_aa(T234, T235, T236, T9, le33_out_aa(T234, T235)) → U27_aa(T234, T235, T236, T9, part20_in_gaaa(T234, T236, T244, T245))
U27_aa(T234, T235, T236, T9, part20_out_gaaa(T234, T236, T244, T245)) → U28_aa(T234, T235, T236, T9, qs53_in_aa(T244, X9))
qs53_in_aa(.(T126, T127), X269) → U7_aa(T126, T127, X269, part20_in_aaaa(T126, T127, X265, X266))
part20_in_aaaa(T61, .(T62, T63), .(T62, X119), X120) → U2_aaaa(T61, T62, T63, X119, X120, gt10_in_aa(T61, T62))
U2_aaaa(T61, T62, T63, X119, X120, gt10_out_aa(T61, T62)) → part20_out_aaaa(T61, .(T62, T63), .(T62, X119), X120)
U2_aaaa(T61, T62, T63, X119, X120, gt10_out_aa(T61, T62)) → U3_aaaa(T61, T62, T63, X119, X120, part20_in_gaaa(T61, T63, X119, X120))
U3_aaaa(T61, T62, T63, X119, X120, part20_out_gaaa(T61, T63, X119, X120)) → part20_out_aaaa(T61, .(T62, T63), .(T62, X119), X120)
part20_in_aaaa(T83, .(T84, T85), X170, .(T84, X171)) → U4_aaaa(T83, T84, T85, X170, X171, le33_in_aa(T83, T84))
U4_aaaa(T83, T84, T85, X170, X171, le33_out_aa(T83, T84)) → part20_out_aaaa(T83, .(T84, T85), X170, .(T84, X171))
U4_aaaa(T83, T84, T85, X170, X171, le33_out_aa(T83, T84)) → U5_aaaa(T83, T84, T85, X170, X171, part20_in_gaaa(T83, T85, X170, X171))
U5_aaaa(T83, T84, T85, X170, X171, part20_out_gaaa(T83, T85, X170, X171)) → part20_out_aaaa(T83, .(T84, T85), X170, .(T84, X171))
part20_in_aaaa(T107, [], [], []) → part20_out_aaaa(T107, [], [], [])
U7_aa(T126, T127, X269, part20_out_aaaa(T126, T127, X265, X266)) → qs53_out_aa(.(T126, T127), X269)
qs53_in_aa(.(T126, T127), X269) → U8_aa(T126, T127, X269, part20_in_aaaa(T126, T127, T131, T132))
U8_aa(T126, T127, X269, part20_out_aaaa(T126, T127, T131, T132)) → U9_aa(T126, T127, X269, qs53_in_aa(T131, X267))
qs53_in_aa([], []) → qs53_out_aa([], [])
U9_aa(T126, T127, X269, qs53_out_aa(T131, X267)) → qs53_out_aa(.(T126, T127), X269)
U8_aa(T126, T127, X269, part20_out_aaaa(T126, T127, T131, T132)) → U10_aa(T126, T127, X269, T132, qs53_in_aa(T131, T138))
U10_aa(T126, T127, X269, T132, qs53_out_aa(T131, T138)) → U11_aa(T126, T127, X269, qs53_in_aa(T132, X268))
U11_aa(T126, T127, X269, qs53_out_aa(T132, X268)) → qs53_out_aa(.(T126, T127), X269)
U10_aa(T126, T127, X269, T132, qs53_out_aa(T131, T138)) → U12_aa(T126, T127, X269, T138, qs53_in_aa(T132, T143))
U12_aa(T126, T127, X269, T138, qs53_out_aa(T132, T143)) → U13_aa(T126, T127, X269, app65_in_aaaa(T138, T126, T143, X269))
app65_in_aaaa(.(T166, T167), T168, T169, .(T166, X348)) → U14_aaaa(T166, T167, T168, T169, X348, app65_in_aaaa(T167, T168, T169, X348))
app65_in_aaaa([], T178, T179, .(T178, T179)) → app65_out_aaaa([], T178, T179, .(T178, T179))
U14_aaaa(T166, T167, T168, T169, X348, app65_out_aaaa(T167, T168, T169, X348)) → app65_out_aaaa(.(T166, T167), T168, T169, .(T166, X348))
U13_aa(T126, T127, X269, app65_out_aaaa(T138, T126, T143, X269)) → qs53_out_aa(.(T126, T127), X269)
U28_aa(T234, T235, T236, T9, qs53_out_aa(T244, X9)) → qs1_out_aa(.(T234, .(T235, T236)), T9)
U27_aa(T234, T235, T236, T9, part20_out_gaaa(T234, T236, T244, T245)) → U29_aa(T234, T235, T236, T9, T245, qs53_in_aa(T244, T251))
U29_aa(T234, T235, T236, T9, T245, qs53_out_aa(T244, T251)) → U30_aa(T234, T235, T236, T9, p52_in_aaaga(.(T235, T245), X10, T251, T234, T9))
p52_in_aaaga(T45, X10, T110, T22, T9) → U16_aaaga(T45, X10, T110, T22, T9, qs53_in_aa(T45, X10))
U16_aaaga(T45, X10, T110, T22, T9, qs53_out_aa(T45, X10)) → p52_out_aaaga(T45, X10, T110, T22, T9)
p52_in_aaaga(T45, T115, T110, T22, T9) → U17_aaaga(T45, T115, T110, T22, T9, qs53_in_aa(T45, T115))
U17_aaaga(T45, T115, T110, T22, T9, qs53_out_aa(T45, T115)) → U18_aaaga(T45, T115, T110, T22, T9, app54_in_agaa(T110, T22, T115, T9))
app54_in_agaa(.(T205, T206), T207, T208, .(T205, T210)) → U15_agaa(T205, T206, T207, T208, T210, app54_in_agaa(T206, T207, T208, T210))
app54_in_agaa([], T220, T221, .(T220, T221)) → app54_out_agaa([], T220, T221, .(T220, T221))
U15_agaa(T205, T206, T207, T208, T210, app54_out_agaa(T206, T207, T208, T210)) → app54_out_agaa(.(T205, T206), T207, T208, .(T205, T210))
U18_aaaga(T45, T115, T110, T22, T9, app54_out_agaa(T110, T22, T115, T9)) → p52_out_aaaga(T45, T115, T110, T22, T9)
U30_aa(T234, T235, T236, T9, p52_out_aaaga(.(T235, T245), X10, T251, T234, T9)) → qs1_out_aa(.(T234, .(T235, T236)), T9)
qs1_in_aa(.(T260, []), T9) → U31_aa(T260, T9, qs99_in_a(X9))
qs99_in_a([]) → qs99_out_a([])
U31_aa(T260, T9, qs99_out_a(X9)) → qs1_out_aa(.(T260, []), T9)
qs1_in_aa(.(T260, []), T9) → U32_aa(T260, T9, qs99_in_a(T263))
U32_aa(T260, T9, qs99_out_a(T263)) → U33_aa(T260, T9, qs99_in_a(X10))
U33_aa(T260, T9, qs99_out_a(X10)) → qs1_out_aa(.(T260, []), T9)
U32_aa(T260, T9, qs99_out_a(T263)) → U34_aa(T260, T9, T263, qs99_in_a(T268))
U34_aa(T260, T9, T263, qs99_out_a(T268)) → U35_aa(T260, T9, app54_in_gaga(T263, T260, T268, T9))
app54_in_gaga(.(T205, T206), T207, T208, .(T205, T210)) → U15_gaga(T205, T206, T207, T208, T210, app54_in_gaga(T206, T207, T208, T210))
app54_in_gaga([], T220, T221, .(T220, T221)) → app54_out_gaga([], T220, T221, .(T220, T221))
U15_gaga(T205, T206, T207, T208, T210, app54_out_gaga(T206, T207, T208, T210)) → app54_out_gaga(.(T205, T206), T207, T208, .(T205, T210))
U35_aa(T260, T9, app54_out_gaga(T263, T260, T268, T9)) → qs1_out_aa(.(T260, []), T9)
qs1_in_aa([], []) → qs1_out_aa([], [])
U22_aa(T22, T23, T24, T9, qs1_out_aa(.(T23, T44), X9)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U21_aa(T22, T23, T24, T9, part20_out_gaaa(T22, T24, T44, T45)) → U23_aa(T22, T23, T24, T9, T45, qs1_in_aa(.(T23, T44), T110))
U23_aa(T22, T23, T24, T9, T45, qs1_out_aa(.(T23, T44), T110)) → U24_aa(T22, T23, T24, T9, p52_in_aaaga(T45, X10, T110, T22, T9))
U24_aa(T22, T23, T24, T9, p52_out_aaaga(T45, X10, T110, T22, T9)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U22_ga(T22, T23, T24, T9, qs1_out_aa(.(T23, T44), X9)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U21_ga(T22, T23, T24, T9, part20_out_ggaa(T22, T24, T44, T45)) → U23_ga(T22, T23, T24, T9, T45, qs1_in_aa(.(T23, T44), T110))
U23_ga(T22, T23, T24, T9, T45, qs1_out_aa(.(T23, T44), T110)) → U24_ga(T22, T23, T24, T9, p52_in_aaaga(T45, X10, T110, T22, T9))
U24_ga(T22, T23, T24, T9, p52_out_aaaga(T45, X10, T110, T22, T9)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
qs1_in_ga(.(T234, .(T235, T236)), T9) → U25_ga(T234, T235, T236, T9, le33_in_gg(T234, T235))
U25_ga(T234, T235, T236, T9, le33_out_gg(T234, T235)) → qs1_out_ga(.(T234, .(T235, T236)), T9)
U25_ga(T234, T235, T236, T9, le33_out_gg(T234, T235)) → U26_ga(T234, T235, T236, T9, part20_in_ggaa(T234, T236, X431, X432))
U26_ga(T234, T235, T236, T9, part20_out_ggaa(T234, T236, X431, X432)) → qs1_out_ga(.(T234, .(T235, T236)), T9)
U25_ga(T234, T235, T236, T9, le33_out_gg(T234, T235)) → U27_ga(T234, T235, T236, T9, part20_in_ggaa(T234, T236, T244, T245))
U27_ga(T234, T235, T236, T9, part20_out_ggaa(T234, T236, T244, T245)) → U28_ga(T234, T235, T236, T9, qs53_in_aa(T244, X9))
U28_ga(T234, T235, T236, T9, qs53_out_aa(T244, X9)) → qs1_out_ga(.(T234, .(T235, T236)), T9)
U27_ga(T234, T235, T236, T9, part20_out_ggaa(T234, T236, T244, T245)) → U29_ga(T234, T235, T236, T9, T245, qs53_in_aa(T244, T251))
U29_ga(T234, T235, T236, T9, T245, qs53_out_aa(T244, T251)) → U30_ga(T234, T235, T236, T9, p52_in_aaaga(.(T235, T245), X10, T251, T234, T9))
U30_ga(T234, T235, T236, T9, p52_out_aaaga(.(T235, T245), X10, T251, T234, T9)) → qs1_out_ga(.(T234, .(T235, T236)), T9)
qs1_in_ga(.(T260, []), T9) → U31_ga(T260, T9, qs99_in_a(X9))
U31_ga(T260, T9, qs99_out_a(X9)) → qs1_out_ga(.(T260, []), T9)
qs1_in_ga(.(T260, []), T9) → U32_ga(T260, T9, qs99_in_a(T263))
U32_ga(T260, T9, qs99_out_a(T263)) → U33_ga(T260, T9, qs99_in_a(X10))
U33_ga(T260, T9, qs99_out_a(X10)) → qs1_out_ga(.(T260, []), T9)
U32_ga(T260, T9, qs99_out_a(T263)) → U34_ga(T260, T9, T263, qs99_in_a(T268))
U34_ga(T260, T9, T263, qs99_out_a(T268)) → U35_ga(T260, T9, app54_in_ggga(T263, T260, T268, T9))
app54_in_ggga(.(T205, T206), T207, T208, .(T205, T210)) → U15_ggga(T205, T206, T207, T208, T210, app54_in_ggga(T206, T207, T208, T210))
app54_in_ggga([], T220, T221, .(T220, T221)) → app54_out_ggga([], T220, T221, .(T220, T221))
U15_ggga(T205, T206, T207, T208, T210, app54_out_ggga(T206, T207, T208, T210)) → app54_out_ggga(.(T205, T206), T207, T208, .(T205, T210))
U35_ga(T260, T9, app54_out_ggga(T263, T260, T268, T9)) → qs1_out_ga(.(T260, []), T9)
qs1_in_ga([], []) → qs1_out_ga([], [])
LE33_IN_GG(s(T98), s(T99)) → LE33_IN_GG(T98, T99)
LE33_IN_GG(s(T98), s(T99)) → LE33_IN_GG(T98, T99)
From the DPs we obtained the following set of size-change graphs:
GT10_IN_GG(s(T37), s(T38)) → GT10_IN_GG(T37, T38)
qs1_in_ga(.(T22, .(T23, T24)), T9) → U19_ga(T22, T23, T24, T9, gt10_in_gg(T22, T23))
gt10_in_gg(s(T37), s(T38)) → U1_gg(T37, T38, gt10_in_gg(T37, T38))
gt10_in_gg(s(0), 0) → gt10_out_gg(s(0), 0)
U1_gg(T37, T38, gt10_out_gg(T37, T38)) → gt10_out_gg(s(T37), s(T38))
U19_ga(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U19_ga(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → U20_ga(T22, T23, T24, T9, part20_in_ggaa(T22, T24, X47, X48))
part20_in_ggaa(T61, .(T62, T63), .(T62, X119), X120) → U2_ggaa(T61, T62, T63, X119, X120, gt10_in_gg(T61, T62))
U2_ggaa(T61, T62, T63, X119, X120, gt10_out_gg(T61, T62)) → part20_out_ggaa(T61, .(T62, T63), .(T62, X119), X120)
U2_ggaa(T61, T62, T63, X119, X120, gt10_out_gg(T61, T62)) → U3_ggaa(T61, T62, T63, X119, X120, part20_in_ggaa(T61, T63, X119, X120))
part20_in_ggaa(T83, .(T84, T85), X170, .(T84, X171)) → U4_ggaa(T83, T84, T85, X170, X171, le33_in_gg(T83, T84))
le33_in_gg(s(T98), s(T99)) → U6_gg(T98, T99, le33_in_gg(T98, T99))
le33_in_gg(0, s(0)) → le33_out_gg(0, s(0))
le33_in_gg(0, 0) → le33_out_gg(0, 0)
U6_gg(T98, T99, le33_out_gg(T98, T99)) → le33_out_gg(s(T98), s(T99))
U4_ggaa(T83, T84, T85, X170, X171, le33_out_gg(T83, T84)) → part20_out_ggaa(T83, .(T84, T85), X170, .(T84, X171))
U4_ggaa(T83, T84, T85, X170, X171, le33_out_gg(T83, T84)) → U5_ggaa(T83, T84, T85, X170, X171, part20_in_ggaa(T83, T85, X170, X171))
part20_in_ggaa(T107, [], [], []) → part20_out_ggaa(T107, [], [], [])
U5_ggaa(T83, T84, T85, X170, X171, part20_out_ggaa(T83, T85, X170, X171)) → part20_out_ggaa(T83, .(T84, T85), X170, .(T84, X171))
U3_ggaa(T61, T62, T63, X119, X120, part20_out_ggaa(T61, T63, X119, X120)) → part20_out_ggaa(T61, .(T62, T63), .(T62, X119), X120)
U20_ga(T22, T23, T24, T9, part20_out_ggaa(T22, T24, X47, X48)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U19_ga(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → U21_ga(T22, T23, T24, T9, part20_in_ggaa(T22, T24, T44, T45))
U21_ga(T22, T23, T24, T9, part20_out_ggaa(T22, T24, T44, T45)) → U22_ga(T22, T23, T24, T9, qs1_in_aa(.(T23, T44), X9))
qs1_in_aa(.(T22, .(T23, T24)), T9) → U19_aa(T22, T23, T24, T9, gt10_in_aa(T22, T23))
gt10_in_aa(s(T37), s(T38)) → U1_aa(T37, T38, gt10_in_aa(T37, T38))
gt10_in_aa(s(0), 0) → gt10_out_aa(s(0), 0)
U1_aa(T37, T38, gt10_out_aa(T37, T38)) → gt10_out_aa(s(T37), s(T38))
U19_aa(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U19_aa(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → U20_aa(T22, T23, T24, T9, part20_in_gaaa(T22, T24, X47, X48))
part20_in_gaaa(T61, .(T62, T63), .(T62, X119), X120) → U2_gaaa(T61, T62, T63, X119, X120, gt10_in_ga(T61, T62))
gt10_in_ga(s(T37), s(T38)) → U1_ga(T37, T38, gt10_in_ga(T37, T38))
gt10_in_ga(s(0), 0) → gt10_out_ga(s(0), 0)
U1_ga(T37, T38, gt10_out_ga(T37, T38)) → gt10_out_ga(s(T37), s(T38))
U2_gaaa(T61, T62, T63, X119, X120, gt10_out_ga(T61, T62)) → part20_out_gaaa(T61, .(T62, T63), .(T62, X119), X120)
U2_gaaa(T61, T62, T63, X119, X120, gt10_out_ga(T61, T62)) → U3_gaaa(T61, T62, T63, X119, X120, part20_in_gaaa(T61, T63, X119, X120))
part20_in_gaaa(T83, .(T84, T85), X170, .(T84, X171)) → U4_gaaa(T83, T84, T85, X170, X171, le33_in_ga(T83, T84))
le33_in_ga(s(T98), s(T99)) → U6_ga(T98, T99, le33_in_ga(T98, T99))
le33_in_ga(0, s(0)) → le33_out_ga(0, s(0))
le33_in_ga(0, 0) → le33_out_ga(0, 0)
U6_ga(T98, T99, le33_out_ga(T98, T99)) → le33_out_ga(s(T98), s(T99))
U4_gaaa(T83, T84, T85, X170, X171, le33_out_ga(T83, T84)) → part20_out_gaaa(T83, .(T84, T85), X170, .(T84, X171))
U4_gaaa(T83, T84, T85, X170, X171, le33_out_ga(T83, T84)) → U5_gaaa(T83, T84, T85, X170, X171, part20_in_gaaa(T83, T85, X170, X171))
part20_in_gaaa(T107, [], [], []) → part20_out_gaaa(T107, [], [], [])
U5_gaaa(T83, T84, T85, X170, X171, part20_out_gaaa(T83, T85, X170, X171)) → part20_out_gaaa(T83, .(T84, T85), X170, .(T84, X171))
U3_gaaa(T61, T62, T63, X119, X120, part20_out_gaaa(T61, T63, X119, X120)) → part20_out_gaaa(T61, .(T62, T63), .(T62, X119), X120)
U20_aa(T22, T23, T24, T9, part20_out_gaaa(T22, T24, X47, X48)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U19_aa(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → U21_aa(T22, T23, T24, T9, part20_in_gaaa(T22, T24, T44, T45))
U21_aa(T22, T23, T24, T9, part20_out_gaaa(T22, T24, T44, T45)) → U22_aa(T22, T23, T24, T9, qs1_in_aa(.(T23, T44), X9))
qs1_in_aa(.(T234, .(T235, T236)), T9) → U25_aa(T234, T235, T236, T9, le33_in_aa(T234, T235))
le33_in_aa(s(T98), s(T99)) → U6_aa(T98, T99, le33_in_aa(T98, T99))
le33_in_aa(0, s(0)) → le33_out_aa(0, s(0))
le33_in_aa(0, 0) → le33_out_aa(0, 0)
U6_aa(T98, T99, le33_out_aa(T98, T99)) → le33_out_aa(s(T98), s(T99))
U25_aa(T234, T235, T236, T9, le33_out_aa(T234, T235)) → qs1_out_aa(.(T234, .(T235, T236)), T9)
U25_aa(T234, T235, T236, T9, le33_out_aa(T234, T235)) → U26_aa(T234, T235, T236, T9, part20_in_gaaa(T234, T236, X431, X432))
U26_aa(T234, T235, T236, T9, part20_out_gaaa(T234, T236, X431, X432)) → qs1_out_aa(.(T234, .(T235, T236)), T9)
U25_aa(T234, T235, T236, T9, le33_out_aa(T234, T235)) → U27_aa(T234, T235, T236, T9, part20_in_gaaa(T234, T236, T244, T245))
U27_aa(T234, T235, T236, T9, part20_out_gaaa(T234, T236, T244, T245)) → U28_aa(T234, T235, T236, T9, qs53_in_aa(T244, X9))
qs53_in_aa(.(T126, T127), X269) → U7_aa(T126, T127, X269, part20_in_aaaa(T126, T127, X265, X266))
part20_in_aaaa(T61, .(T62, T63), .(T62, X119), X120) → U2_aaaa(T61, T62, T63, X119, X120, gt10_in_aa(T61, T62))
U2_aaaa(T61, T62, T63, X119, X120, gt10_out_aa(T61, T62)) → part20_out_aaaa(T61, .(T62, T63), .(T62, X119), X120)
U2_aaaa(T61, T62, T63, X119, X120, gt10_out_aa(T61, T62)) → U3_aaaa(T61, T62, T63, X119, X120, part20_in_gaaa(T61, T63, X119, X120))
U3_aaaa(T61, T62, T63, X119, X120, part20_out_gaaa(T61, T63, X119, X120)) → part20_out_aaaa(T61, .(T62, T63), .(T62, X119), X120)
part20_in_aaaa(T83, .(T84, T85), X170, .(T84, X171)) → U4_aaaa(T83, T84, T85, X170, X171, le33_in_aa(T83, T84))
U4_aaaa(T83, T84, T85, X170, X171, le33_out_aa(T83, T84)) → part20_out_aaaa(T83, .(T84, T85), X170, .(T84, X171))
U4_aaaa(T83, T84, T85, X170, X171, le33_out_aa(T83, T84)) → U5_aaaa(T83, T84, T85, X170, X171, part20_in_gaaa(T83, T85, X170, X171))
U5_aaaa(T83, T84, T85, X170, X171, part20_out_gaaa(T83, T85, X170, X171)) → part20_out_aaaa(T83, .(T84, T85), X170, .(T84, X171))
part20_in_aaaa(T107, [], [], []) → part20_out_aaaa(T107, [], [], [])
U7_aa(T126, T127, X269, part20_out_aaaa(T126, T127, X265, X266)) → qs53_out_aa(.(T126, T127), X269)
qs53_in_aa(.(T126, T127), X269) → U8_aa(T126, T127, X269, part20_in_aaaa(T126, T127, T131, T132))
U8_aa(T126, T127, X269, part20_out_aaaa(T126, T127, T131, T132)) → U9_aa(T126, T127, X269, qs53_in_aa(T131, X267))
qs53_in_aa([], []) → qs53_out_aa([], [])
U9_aa(T126, T127, X269, qs53_out_aa(T131, X267)) → qs53_out_aa(.(T126, T127), X269)
U8_aa(T126, T127, X269, part20_out_aaaa(T126, T127, T131, T132)) → U10_aa(T126, T127, X269, T132, qs53_in_aa(T131, T138))
U10_aa(T126, T127, X269, T132, qs53_out_aa(T131, T138)) → U11_aa(T126, T127, X269, qs53_in_aa(T132, X268))
U11_aa(T126, T127, X269, qs53_out_aa(T132, X268)) → qs53_out_aa(.(T126, T127), X269)
U10_aa(T126, T127, X269, T132, qs53_out_aa(T131, T138)) → U12_aa(T126, T127, X269, T138, qs53_in_aa(T132, T143))
U12_aa(T126, T127, X269, T138, qs53_out_aa(T132, T143)) → U13_aa(T126, T127, X269, app65_in_aaaa(T138, T126, T143, X269))
app65_in_aaaa(.(T166, T167), T168, T169, .(T166, X348)) → U14_aaaa(T166, T167, T168, T169, X348, app65_in_aaaa(T167, T168, T169, X348))
app65_in_aaaa([], T178, T179, .(T178, T179)) → app65_out_aaaa([], T178, T179, .(T178, T179))
U14_aaaa(T166, T167, T168, T169, X348, app65_out_aaaa(T167, T168, T169, X348)) → app65_out_aaaa(.(T166, T167), T168, T169, .(T166, X348))
U13_aa(T126, T127, X269, app65_out_aaaa(T138, T126, T143, X269)) → qs53_out_aa(.(T126, T127), X269)
U28_aa(T234, T235, T236, T9, qs53_out_aa(T244, X9)) → qs1_out_aa(.(T234, .(T235, T236)), T9)
U27_aa(T234, T235, T236, T9, part20_out_gaaa(T234, T236, T244, T245)) → U29_aa(T234, T235, T236, T9, T245, qs53_in_aa(T244, T251))
U29_aa(T234, T235, T236, T9, T245, qs53_out_aa(T244, T251)) → U30_aa(T234, T235, T236, T9, p52_in_aaaga(.(T235, T245), X10, T251, T234, T9))
p52_in_aaaga(T45, X10, T110, T22, T9) → U16_aaaga(T45, X10, T110, T22, T9, qs53_in_aa(T45, X10))
U16_aaaga(T45, X10, T110, T22, T9, qs53_out_aa(T45, X10)) → p52_out_aaaga(T45, X10, T110, T22, T9)
p52_in_aaaga(T45, T115, T110, T22, T9) → U17_aaaga(T45, T115, T110, T22, T9, qs53_in_aa(T45, T115))
U17_aaaga(T45, T115, T110, T22, T9, qs53_out_aa(T45, T115)) → U18_aaaga(T45, T115, T110, T22, T9, app54_in_agaa(T110, T22, T115, T9))
app54_in_agaa(.(T205, T206), T207, T208, .(T205, T210)) → U15_agaa(T205, T206, T207, T208, T210, app54_in_agaa(T206, T207, T208, T210))
app54_in_agaa([], T220, T221, .(T220, T221)) → app54_out_agaa([], T220, T221, .(T220, T221))
U15_agaa(T205, T206, T207, T208, T210, app54_out_agaa(T206, T207, T208, T210)) → app54_out_agaa(.(T205, T206), T207, T208, .(T205, T210))
U18_aaaga(T45, T115, T110, T22, T9, app54_out_agaa(T110, T22, T115, T9)) → p52_out_aaaga(T45, T115, T110, T22, T9)
U30_aa(T234, T235, T236, T9, p52_out_aaaga(.(T235, T245), X10, T251, T234, T9)) → qs1_out_aa(.(T234, .(T235, T236)), T9)
qs1_in_aa(.(T260, []), T9) → U31_aa(T260, T9, qs99_in_a(X9))
qs99_in_a([]) → qs99_out_a([])
U31_aa(T260, T9, qs99_out_a(X9)) → qs1_out_aa(.(T260, []), T9)
qs1_in_aa(.(T260, []), T9) → U32_aa(T260, T9, qs99_in_a(T263))
U32_aa(T260, T9, qs99_out_a(T263)) → U33_aa(T260, T9, qs99_in_a(X10))
U33_aa(T260, T9, qs99_out_a(X10)) → qs1_out_aa(.(T260, []), T9)
U32_aa(T260, T9, qs99_out_a(T263)) → U34_aa(T260, T9, T263, qs99_in_a(T268))
U34_aa(T260, T9, T263, qs99_out_a(T268)) → U35_aa(T260, T9, app54_in_gaga(T263, T260, T268, T9))
app54_in_gaga(.(T205, T206), T207, T208, .(T205, T210)) → U15_gaga(T205, T206, T207, T208, T210, app54_in_gaga(T206, T207, T208, T210))
app54_in_gaga([], T220, T221, .(T220, T221)) → app54_out_gaga([], T220, T221, .(T220, T221))
U15_gaga(T205, T206, T207, T208, T210, app54_out_gaga(T206, T207, T208, T210)) → app54_out_gaga(.(T205, T206), T207, T208, .(T205, T210))
U35_aa(T260, T9, app54_out_gaga(T263, T260, T268, T9)) → qs1_out_aa(.(T260, []), T9)
qs1_in_aa([], []) → qs1_out_aa([], [])
U22_aa(T22, T23, T24, T9, qs1_out_aa(.(T23, T44), X9)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U21_aa(T22, T23, T24, T9, part20_out_gaaa(T22, T24, T44, T45)) → U23_aa(T22, T23, T24, T9, T45, qs1_in_aa(.(T23, T44), T110))
U23_aa(T22, T23, T24, T9, T45, qs1_out_aa(.(T23, T44), T110)) → U24_aa(T22, T23, T24, T9, p52_in_aaaga(T45, X10, T110, T22, T9))
U24_aa(T22, T23, T24, T9, p52_out_aaaga(T45, X10, T110, T22, T9)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U22_ga(T22, T23, T24, T9, qs1_out_aa(.(T23, T44), X9)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U21_ga(T22, T23, T24, T9, part20_out_ggaa(T22, T24, T44, T45)) → U23_ga(T22, T23, T24, T9, T45, qs1_in_aa(.(T23, T44), T110))
U23_ga(T22, T23, T24, T9, T45, qs1_out_aa(.(T23, T44), T110)) → U24_ga(T22, T23, T24, T9, p52_in_aaaga(T45, X10, T110, T22, T9))
U24_ga(T22, T23, T24, T9, p52_out_aaaga(T45, X10, T110, T22, T9)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
qs1_in_ga(.(T234, .(T235, T236)), T9) → U25_ga(T234, T235, T236, T9, le33_in_gg(T234, T235))
U25_ga(T234, T235, T236, T9, le33_out_gg(T234, T235)) → qs1_out_ga(.(T234, .(T235, T236)), T9)
U25_ga(T234, T235, T236, T9, le33_out_gg(T234, T235)) → U26_ga(T234, T235, T236, T9, part20_in_ggaa(T234, T236, X431, X432))
U26_ga(T234, T235, T236, T9, part20_out_ggaa(T234, T236, X431, X432)) → qs1_out_ga(.(T234, .(T235, T236)), T9)
U25_ga(T234, T235, T236, T9, le33_out_gg(T234, T235)) → U27_ga(T234, T235, T236, T9, part20_in_ggaa(T234, T236, T244, T245))
U27_ga(T234, T235, T236, T9, part20_out_ggaa(T234, T236, T244, T245)) → U28_ga(T234, T235, T236, T9, qs53_in_aa(T244, X9))
U28_ga(T234, T235, T236, T9, qs53_out_aa(T244, X9)) → qs1_out_ga(.(T234, .(T235, T236)), T9)
U27_ga(T234, T235, T236, T9, part20_out_ggaa(T234, T236, T244, T245)) → U29_ga(T234, T235, T236, T9, T245, qs53_in_aa(T244, T251))
U29_ga(T234, T235, T236, T9, T245, qs53_out_aa(T244, T251)) → U30_ga(T234, T235, T236, T9, p52_in_aaaga(.(T235, T245), X10, T251, T234, T9))
U30_ga(T234, T235, T236, T9, p52_out_aaaga(.(T235, T245), X10, T251, T234, T9)) → qs1_out_ga(.(T234, .(T235, T236)), T9)
qs1_in_ga(.(T260, []), T9) → U31_ga(T260, T9, qs99_in_a(X9))
U31_ga(T260, T9, qs99_out_a(X9)) → qs1_out_ga(.(T260, []), T9)
qs1_in_ga(.(T260, []), T9) → U32_ga(T260, T9, qs99_in_a(T263))
U32_ga(T260, T9, qs99_out_a(T263)) → U33_ga(T260, T9, qs99_in_a(X10))
U33_ga(T260, T9, qs99_out_a(X10)) → qs1_out_ga(.(T260, []), T9)
U32_ga(T260, T9, qs99_out_a(T263)) → U34_ga(T260, T9, T263, qs99_in_a(T268))
U34_ga(T260, T9, T263, qs99_out_a(T268)) → U35_ga(T260, T9, app54_in_ggga(T263, T260, T268, T9))
app54_in_ggga(.(T205, T206), T207, T208, .(T205, T210)) → U15_ggga(T205, T206, T207, T208, T210, app54_in_ggga(T206, T207, T208, T210))
app54_in_ggga([], T220, T221, .(T220, T221)) → app54_out_ggga([], T220, T221, .(T220, T221))
U15_ggga(T205, T206, T207, T208, T210, app54_out_ggga(T206, T207, T208, T210)) → app54_out_ggga(.(T205, T206), T207, T208, .(T205, T210))
U35_ga(T260, T9, app54_out_ggga(T263, T260, T268, T9)) → qs1_out_ga(.(T260, []), T9)
qs1_in_ga([], []) → qs1_out_ga([], [])
GT10_IN_GG(s(T37), s(T38)) → GT10_IN_GG(T37, T38)
GT10_IN_GG(s(T37), s(T38)) → GT10_IN_GG(T37, T38)
From the DPs we obtained the following set of size-change graphs:
PART20_IN_GGAA(T61, .(T62, T63), .(T62, X119), X120) → U2_GGAA(T61, T62, T63, X119, X120, gt10_in_gg(T61, T62))
U2_GGAA(T61, T62, T63, X119, X120, gt10_out_gg(T61, T62)) → PART20_IN_GGAA(T61, T63, X119, X120)
PART20_IN_GGAA(T83, .(T84, T85), X170, .(T84, X171)) → U4_GGAA(T83, T84, T85, X170, X171, le33_in_gg(T83, T84))
U4_GGAA(T83, T84, T85, X170, X171, le33_out_gg(T83, T84)) → PART20_IN_GGAA(T83, T85, X170, X171)
qs1_in_ga(.(T22, .(T23, T24)), T9) → U19_ga(T22, T23, T24, T9, gt10_in_gg(T22, T23))
gt10_in_gg(s(T37), s(T38)) → U1_gg(T37, T38, gt10_in_gg(T37, T38))
gt10_in_gg(s(0), 0) → gt10_out_gg(s(0), 0)
U1_gg(T37, T38, gt10_out_gg(T37, T38)) → gt10_out_gg(s(T37), s(T38))
U19_ga(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U19_ga(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → U20_ga(T22, T23, T24, T9, part20_in_ggaa(T22, T24, X47, X48))
part20_in_ggaa(T61, .(T62, T63), .(T62, X119), X120) → U2_ggaa(T61, T62, T63, X119, X120, gt10_in_gg(T61, T62))
U2_ggaa(T61, T62, T63, X119, X120, gt10_out_gg(T61, T62)) → part20_out_ggaa(T61, .(T62, T63), .(T62, X119), X120)
U2_ggaa(T61, T62, T63, X119, X120, gt10_out_gg(T61, T62)) → U3_ggaa(T61, T62, T63, X119, X120, part20_in_ggaa(T61, T63, X119, X120))
part20_in_ggaa(T83, .(T84, T85), X170, .(T84, X171)) → U4_ggaa(T83, T84, T85, X170, X171, le33_in_gg(T83, T84))
le33_in_gg(s(T98), s(T99)) → U6_gg(T98, T99, le33_in_gg(T98, T99))
le33_in_gg(0, s(0)) → le33_out_gg(0, s(0))
le33_in_gg(0, 0) → le33_out_gg(0, 0)
U6_gg(T98, T99, le33_out_gg(T98, T99)) → le33_out_gg(s(T98), s(T99))
U4_ggaa(T83, T84, T85, X170, X171, le33_out_gg(T83, T84)) → part20_out_ggaa(T83, .(T84, T85), X170, .(T84, X171))
U4_ggaa(T83, T84, T85, X170, X171, le33_out_gg(T83, T84)) → U5_ggaa(T83, T84, T85, X170, X171, part20_in_ggaa(T83, T85, X170, X171))
part20_in_ggaa(T107, [], [], []) → part20_out_ggaa(T107, [], [], [])
U5_ggaa(T83, T84, T85, X170, X171, part20_out_ggaa(T83, T85, X170, X171)) → part20_out_ggaa(T83, .(T84, T85), X170, .(T84, X171))
U3_ggaa(T61, T62, T63, X119, X120, part20_out_ggaa(T61, T63, X119, X120)) → part20_out_ggaa(T61, .(T62, T63), .(T62, X119), X120)
U20_ga(T22, T23, T24, T9, part20_out_ggaa(T22, T24, X47, X48)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U19_ga(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → U21_ga(T22, T23, T24, T9, part20_in_ggaa(T22, T24, T44, T45))
U21_ga(T22, T23, T24, T9, part20_out_ggaa(T22, T24, T44, T45)) → U22_ga(T22, T23, T24, T9, qs1_in_aa(.(T23, T44), X9))
qs1_in_aa(.(T22, .(T23, T24)), T9) → U19_aa(T22, T23, T24, T9, gt10_in_aa(T22, T23))
gt10_in_aa(s(T37), s(T38)) → U1_aa(T37, T38, gt10_in_aa(T37, T38))
gt10_in_aa(s(0), 0) → gt10_out_aa(s(0), 0)
U1_aa(T37, T38, gt10_out_aa(T37, T38)) → gt10_out_aa(s(T37), s(T38))
U19_aa(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U19_aa(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → U20_aa(T22, T23, T24, T9, part20_in_gaaa(T22, T24, X47, X48))
part20_in_gaaa(T61, .(T62, T63), .(T62, X119), X120) → U2_gaaa(T61, T62, T63, X119, X120, gt10_in_ga(T61, T62))
gt10_in_ga(s(T37), s(T38)) → U1_ga(T37, T38, gt10_in_ga(T37, T38))
gt10_in_ga(s(0), 0) → gt10_out_ga(s(0), 0)
U1_ga(T37, T38, gt10_out_ga(T37, T38)) → gt10_out_ga(s(T37), s(T38))
U2_gaaa(T61, T62, T63, X119, X120, gt10_out_ga(T61, T62)) → part20_out_gaaa(T61, .(T62, T63), .(T62, X119), X120)
U2_gaaa(T61, T62, T63, X119, X120, gt10_out_ga(T61, T62)) → U3_gaaa(T61, T62, T63, X119, X120, part20_in_gaaa(T61, T63, X119, X120))
part20_in_gaaa(T83, .(T84, T85), X170, .(T84, X171)) → U4_gaaa(T83, T84, T85, X170, X171, le33_in_ga(T83, T84))
le33_in_ga(s(T98), s(T99)) → U6_ga(T98, T99, le33_in_ga(T98, T99))
le33_in_ga(0, s(0)) → le33_out_ga(0, s(0))
le33_in_ga(0, 0) → le33_out_ga(0, 0)
U6_ga(T98, T99, le33_out_ga(T98, T99)) → le33_out_ga(s(T98), s(T99))
U4_gaaa(T83, T84, T85, X170, X171, le33_out_ga(T83, T84)) → part20_out_gaaa(T83, .(T84, T85), X170, .(T84, X171))
U4_gaaa(T83, T84, T85, X170, X171, le33_out_ga(T83, T84)) → U5_gaaa(T83, T84, T85, X170, X171, part20_in_gaaa(T83, T85, X170, X171))
part20_in_gaaa(T107, [], [], []) → part20_out_gaaa(T107, [], [], [])
U5_gaaa(T83, T84, T85, X170, X171, part20_out_gaaa(T83, T85, X170, X171)) → part20_out_gaaa(T83, .(T84, T85), X170, .(T84, X171))
U3_gaaa(T61, T62, T63, X119, X120, part20_out_gaaa(T61, T63, X119, X120)) → part20_out_gaaa(T61, .(T62, T63), .(T62, X119), X120)
U20_aa(T22, T23, T24, T9, part20_out_gaaa(T22, T24, X47, X48)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U19_aa(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → U21_aa(T22, T23, T24, T9, part20_in_gaaa(T22, T24, T44, T45))
U21_aa(T22, T23, T24, T9, part20_out_gaaa(T22, T24, T44, T45)) → U22_aa(T22, T23, T24, T9, qs1_in_aa(.(T23, T44), X9))
qs1_in_aa(.(T234, .(T235, T236)), T9) → U25_aa(T234, T235, T236, T9, le33_in_aa(T234, T235))
le33_in_aa(s(T98), s(T99)) → U6_aa(T98, T99, le33_in_aa(T98, T99))
le33_in_aa(0, s(0)) → le33_out_aa(0, s(0))
le33_in_aa(0, 0) → le33_out_aa(0, 0)
U6_aa(T98, T99, le33_out_aa(T98, T99)) → le33_out_aa(s(T98), s(T99))
U25_aa(T234, T235, T236, T9, le33_out_aa(T234, T235)) → qs1_out_aa(.(T234, .(T235, T236)), T9)
U25_aa(T234, T235, T236, T9, le33_out_aa(T234, T235)) → U26_aa(T234, T235, T236, T9, part20_in_gaaa(T234, T236, X431, X432))
U26_aa(T234, T235, T236, T9, part20_out_gaaa(T234, T236, X431, X432)) → qs1_out_aa(.(T234, .(T235, T236)), T9)
U25_aa(T234, T235, T236, T9, le33_out_aa(T234, T235)) → U27_aa(T234, T235, T236, T9, part20_in_gaaa(T234, T236, T244, T245))
U27_aa(T234, T235, T236, T9, part20_out_gaaa(T234, T236, T244, T245)) → U28_aa(T234, T235, T236, T9, qs53_in_aa(T244, X9))
qs53_in_aa(.(T126, T127), X269) → U7_aa(T126, T127, X269, part20_in_aaaa(T126, T127, X265, X266))
part20_in_aaaa(T61, .(T62, T63), .(T62, X119), X120) → U2_aaaa(T61, T62, T63, X119, X120, gt10_in_aa(T61, T62))
U2_aaaa(T61, T62, T63, X119, X120, gt10_out_aa(T61, T62)) → part20_out_aaaa(T61, .(T62, T63), .(T62, X119), X120)
U2_aaaa(T61, T62, T63, X119, X120, gt10_out_aa(T61, T62)) → U3_aaaa(T61, T62, T63, X119, X120, part20_in_gaaa(T61, T63, X119, X120))
U3_aaaa(T61, T62, T63, X119, X120, part20_out_gaaa(T61, T63, X119, X120)) → part20_out_aaaa(T61, .(T62, T63), .(T62, X119), X120)
part20_in_aaaa(T83, .(T84, T85), X170, .(T84, X171)) → U4_aaaa(T83, T84, T85, X170, X171, le33_in_aa(T83, T84))
U4_aaaa(T83, T84, T85, X170, X171, le33_out_aa(T83, T84)) → part20_out_aaaa(T83, .(T84, T85), X170, .(T84, X171))
U4_aaaa(T83, T84, T85, X170, X171, le33_out_aa(T83, T84)) → U5_aaaa(T83, T84, T85, X170, X171, part20_in_gaaa(T83, T85, X170, X171))
U5_aaaa(T83, T84, T85, X170, X171, part20_out_gaaa(T83, T85, X170, X171)) → part20_out_aaaa(T83, .(T84, T85), X170, .(T84, X171))
part20_in_aaaa(T107, [], [], []) → part20_out_aaaa(T107, [], [], [])
U7_aa(T126, T127, X269, part20_out_aaaa(T126, T127, X265, X266)) → qs53_out_aa(.(T126, T127), X269)
qs53_in_aa(.(T126, T127), X269) → U8_aa(T126, T127, X269, part20_in_aaaa(T126, T127, T131, T132))
U8_aa(T126, T127, X269, part20_out_aaaa(T126, T127, T131, T132)) → U9_aa(T126, T127, X269, qs53_in_aa(T131, X267))
qs53_in_aa([], []) → qs53_out_aa([], [])
U9_aa(T126, T127, X269, qs53_out_aa(T131, X267)) → qs53_out_aa(.(T126, T127), X269)
U8_aa(T126, T127, X269, part20_out_aaaa(T126, T127, T131, T132)) → U10_aa(T126, T127, X269, T132, qs53_in_aa(T131, T138))
U10_aa(T126, T127, X269, T132, qs53_out_aa(T131, T138)) → U11_aa(T126, T127, X269, qs53_in_aa(T132, X268))
U11_aa(T126, T127, X269, qs53_out_aa(T132, X268)) → qs53_out_aa(.(T126, T127), X269)
U10_aa(T126, T127, X269, T132, qs53_out_aa(T131, T138)) → U12_aa(T126, T127, X269, T138, qs53_in_aa(T132, T143))
U12_aa(T126, T127, X269, T138, qs53_out_aa(T132, T143)) → U13_aa(T126, T127, X269, app65_in_aaaa(T138, T126, T143, X269))
app65_in_aaaa(.(T166, T167), T168, T169, .(T166, X348)) → U14_aaaa(T166, T167, T168, T169, X348, app65_in_aaaa(T167, T168, T169, X348))
app65_in_aaaa([], T178, T179, .(T178, T179)) → app65_out_aaaa([], T178, T179, .(T178, T179))
U14_aaaa(T166, T167, T168, T169, X348, app65_out_aaaa(T167, T168, T169, X348)) → app65_out_aaaa(.(T166, T167), T168, T169, .(T166, X348))
U13_aa(T126, T127, X269, app65_out_aaaa(T138, T126, T143, X269)) → qs53_out_aa(.(T126, T127), X269)
U28_aa(T234, T235, T236, T9, qs53_out_aa(T244, X9)) → qs1_out_aa(.(T234, .(T235, T236)), T9)
U27_aa(T234, T235, T236, T9, part20_out_gaaa(T234, T236, T244, T245)) → U29_aa(T234, T235, T236, T9, T245, qs53_in_aa(T244, T251))
U29_aa(T234, T235, T236, T9, T245, qs53_out_aa(T244, T251)) → U30_aa(T234, T235, T236, T9, p52_in_aaaga(.(T235, T245), X10, T251, T234, T9))
p52_in_aaaga(T45, X10, T110, T22, T9) → U16_aaaga(T45, X10, T110, T22, T9, qs53_in_aa(T45, X10))
U16_aaaga(T45, X10, T110, T22, T9, qs53_out_aa(T45, X10)) → p52_out_aaaga(T45, X10, T110, T22, T9)
p52_in_aaaga(T45, T115, T110, T22, T9) → U17_aaaga(T45, T115, T110, T22, T9, qs53_in_aa(T45, T115))
U17_aaaga(T45, T115, T110, T22, T9, qs53_out_aa(T45, T115)) → U18_aaaga(T45, T115, T110, T22, T9, app54_in_agaa(T110, T22, T115, T9))
app54_in_agaa(.(T205, T206), T207, T208, .(T205, T210)) → U15_agaa(T205, T206, T207, T208, T210, app54_in_agaa(T206, T207, T208, T210))
app54_in_agaa([], T220, T221, .(T220, T221)) → app54_out_agaa([], T220, T221, .(T220, T221))
U15_agaa(T205, T206, T207, T208, T210, app54_out_agaa(T206, T207, T208, T210)) → app54_out_agaa(.(T205, T206), T207, T208, .(T205, T210))
U18_aaaga(T45, T115, T110, T22, T9, app54_out_agaa(T110, T22, T115, T9)) → p52_out_aaaga(T45, T115, T110, T22, T9)
U30_aa(T234, T235, T236, T9, p52_out_aaaga(.(T235, T245), X10, T251, T234, T9)) → qs1_out_aa(.(T234, .(T235, T236)), T9)
qs1_in_aa(.(T260, []), T9) → U31_aa(T260, T9, qs99_in_a(X9))
qs99_in_a([]) → qs99_out_a([])
U31_aa(T260, T9, qs99_out_a(X9)) → qs1_out_aa(.(T260, []), T9)
qs1_in_aa(.(T260, []), T9) → U32_aa(T260, T9, qs99_in_a(T263))
U32_aa(T260, T9, qs99_out_a(T263)) → U33_aa(T260, T9, qs99_in_a(X10))
U33_aa(T260, T9, qs99_out_a(X10)) → qs1_out_aa(.(T260, []), T9)
U32_aa(T260, T9, qs99_out_a(T263)) → U34_aa(T260, T9, T263, qs99_in_a(T268))
U34_aa(T260, T9, T263, qs99_out_a(T268)) → U35_aa(T260, T9, app54_in_gaga(T263, T260, T268, T9))
app54_in_gaga(.(T205, T206), T207, T208, .(T205, T210)) → U15_gaga(T205, T206, T207, T208, T210, app54_in_gaga(T206, T207, T208, T210))
app54_in_gaga([], T220, T221, .(T220, T221)) → app54_out_gaga([], T220, T221, .(T220, T221))
U15_gaga(T205, T206, T207, T208, T210, app54_out_gaga(T206, T207, T208, T210)) → app54_out_gaga(.(T205, T206), T207, T208, .(T205, T210))
U35_aa(T260, T9, app54_out_gaga(T263, T260, T268, T9)) → qs1_out_aa(.(T260, []), T9)
qs1_in_aa([], []) → qs1_out_aa([], [])
U22_aa(T22, T23, T24, T9, qs1_out_aa(.(T23, T44), X9)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U21_aa(T22, T23, T24, T9, part20_out_gaaa(T22, T24, T44, T45)) → U23_aa(T22, T23, T24, T9, T45, qs1_in_aa(.(T23, T44), T110))
U23_aa(T22, T23, T24, T9, T45, qs1_out_aa(.(T23, T44), T110)) → U24_aa(T22, T23, T24, T9, p52_in_aaaga(T45, X10, T110, T22, T9))
U24_aa(T22, T23, T24, T9, p52_out_aaaga(T45, X10, T110, T22, T9)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U22_ga(T22, T23, T24, T9, qs1_out_aa(.(T23, T44), X9)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U21_ga(T22, T23, T24, T9, part20_out_ggaa(T22, T24, T44, T45)) → U23_ga(T22, T23, T24, T9, T45, qs1_in_aa(.(T23, T44), T110))
U23_ga(T22, T23, T24, T9, T45, qs1_out_aa(.(T23, T44), T110)) → U24_ga(T22, T23, T24, T9, p52_in_aaaga(T45, X10, T110, T22, T9))
U24_ga(T22, T23, T24, T9, p52_out_aaaga(T45, X10, T110, T22, T9)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
qs1_in_ga(.(T234, .(T235, T236)), T9) → U25_ga(T234, T235, T236, T9, le33_in_gg(T234, T235))
U25_ga(T234, T235, T236, T9, le33_out_gg(T234, T235)) → qs1_out_ga(.(T234, .(T235, T236)), T9)
U25_ga(T234, T235, T236, T9, le33_out_gg(T234, T235)) → U26_ga(T234, T235, T236, T9, part20_in_ggaa(T234, T236, X431, X432))
U26_ga(T234, T235, T236, T9, part20_out_ggaa(T234, T236, X431, X432)) → qs1_out_ga(.(T234, .(T235, T236)), T9)
U25_ga(T234, T235, T236, T9, le33_out_gg(T234, T235)) → U27_ga(T234, T235, T236, T9, part20_in_ggaa(T234, T236, T244, T245))
U27_ga(T234, T235, T236, T9, part20_out_ggaa(T234, T236, T244, T245)) → U28_ga(T234, T235, T236, T9, qs53_in_aa(T244, X9))
U28_ga(T234, T235, T236, T9, qs53_out_aa(T244, X9)) → qs1_out_ga(.(T234, .(T235, T236)), T9)
U27_ga(T234, T235, T236, T9, part20_out_ggaa(T234, T236, T244, T245)) → U29_ga(T234, T235, T236, T9, T245, qs53_in_aa(T244, T251))
U29_ga(T234, T235, T236, T9, T245, qs53_out_aa(T244, T251)) → U30_ga(T234, T235, T236, T9, p52_in_aaaga(.(T235, T245), X10, T251, T234, T9))
U30_ga(T234, T235, T236, T9, p52_out_aaaga(.(T235, T245), X10, T251, T234, T9)) → qs1_out_ga(.(T234, .(T235, T236)), T9)
qs1_in_ga(.(T260, []), T9) → U31_ga(T260, T9, qs99_in_a(X9))
U31_ga(T260, T9, qs99_out_a(X9)) → qs1_out_ga(.(T260, []), T9)
qs1_in_ga(.(T260, []), T9) → U32_ga(T260, T9, qs99_in_a(T263))
U32_ga(T260, T9, qs99_out_a(T263)) → U33_ga(T260, T9, qs99_in_a(X10))
U33_ga(T260, T9, qs99_out_a(X10)) → qs1_out_ga(.(T260, []), T9)
U32_ga(T260, T9, qs99_out_a(T263)) → U34_ga(T260, T9, T263, qs99_in_a(T268))
U34_ga(T260, T9, T263, qs99_out_a(T268)) → U35_ga(T260, T9, app54_in_ggga(T263, T260, T268, T9))
app54_in_ggga(.(T205, T206), T207, T208, .(T205, T210)) → U15_ggga(T205, T206, T207, T208, T210, app54_in_ggga(T206, T207, T208, T210))
app54_in_ggga([], T220, T221, .(T220, T221)) → app54_out_ggga([], T220, T221, .(T220, T221))
U15_ggga(T205, T206, T207, T208, T210, app54_out_ggga(T206, T207, T208, T210)) → app54_out_ggga(.(T205, T206), T207, T208, .(T205, T210))
U35_ga(T260, T9, app54_out_ggga(T263, T260, T268, T9)) → qs1_out_ga(.(T260, []), T9)
qs1_in_ga([], []) → qs1_out_ga([], [])
PART20_IN_GGAA(T61, .(T62, T63), .(T62, X119), X120) → U2_GGAA(T61, T62, T63, X119, X120, gt10_in_gg(T61, T62))
U2_GGAA(T61, T62, T63, X119, X120, gt10_out_gg(T61, T62)) → PART20_IN_GGAA(T61, T63, X119, X120)
PART20_IN_GGAA(T83, .(T84, T85), X170, .(T84, X171)) → U4_GGAA(T83, T84, T85, X170, X171, le33_in_gg(T83, T84))
U4_GGAA(T83, T84, T85, X170, X171, le33_out_gg(T83, T84)) → PART20_IN_GGAA(T83, T85, X170, X171)
gt10_in_gg(s(T37), s(T38)) → U1_gg(T37, T38, gt10_in_gg(T37, T38))
gt10_in_gg(s(0), 0) → gt10_out_gg(s(0), 0)
le33_in_gg(s(T98), s(T99)) → U6_gg(T98, T99, le33_in_gg(T98, T99))
le33_in_gg(0, s(0)) → le33_out_gg(0, s(0))
le33_in_gg(0, 0) → le33_out_gg(0, 0)
U1_gg(T37, T38, gt10_out_gg(T37, T38)) → gt10_out_gg(s(T37), s(T38))
U6_gg(T98, T99, le33_out_gg(T98, T99)) → le33_out_gg(s(T98), s(T99))
PART20_IN_GGAA(T61, .(T62, T63)) → U2_GGAA(T61, T62, T63, gt10_in_gg(T61, T62))
U2_GGAA(T61, T62, T63, gt10_out_gg(T61, T62)) → PART20_IN_GGAA(T61, T63)
PART20_IN_GGAA(T83, .(T84, T85)) → U4_GGAA(T83, T84, T85, le33_in_gg(T83, T84))
U4_GGAA(T83, T84, T85, le33_out_gg(T83, T84)) → PART20_IN_GGAA(T83, T85)
gt10_in_gg(s(T37), s(T38)) → U1_gg(T37, T38, gt10_in_gg(T37, T38))
gt10_in_gg(s(0), 0) → gt10_out_gg(s(0), 0)
le33_in_gg(s(T98), s(T99)) → U6_gg(T98, T99, le33_in_gg(T98, T99))
le33_in_gg(0, s(0)) → le33_out_gg(0, s(0))
le33_in_gg(0, 0) → le33_out_gg(0, 0)
U1_gg(T37, T38, gt10_out_gg(T37, T38)) → gt10_out_gg(s(T37), s(T38))
U6_gg(T98, T99, le33_out_gg(T98, T99)) → le33_out_gg(s(T98), s(T99))
gt10_in_gg(x0, x1)
le33_in_gg(x0, x1)
U1_gg(x0, x1, x2)
U6_gg(x0, x1, x2)
From the DPs we obtained the following set of size-change graphs:
qs1_in_ga(.(T22, .(T23, T24)), T9) → U19_ga(T22, T23, T24, T9, gt10_in_gg(T22, T23))
gt10_in_gg(s(T37), s(T38)) → U1_gg(T37, T38, gt10_in_gg(T37, T38))
gt10_in_gg(s(0), 0) → gt10_out_gg(s(0), 0)
U1_gg(T37, T38, gt10_out_gg(T37, T38)) → gt10_out_gg(s(T37), s(T38))
U19_ga(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U19_ga(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → U20_ga(T22, T23, T24, T9, part20_in_ggaa(T22, T24, X47, X48))
part20_in_ggaa(T61, .(T62, T63), .(T62, X119), X120) → U2_ggaa(T61, T62, T63, X119, X120, gt10_in_gg(T61, T62))
U2_ggaa(T61, T62, T63, X119, X120, gt10_out_gg(T61, T62)) → part20_out_ggaa(T61, .(T62, T63), .(T62, X119), X120)
U2_ggaa(T61, T62, T63, X119, X120, gt10_out_gg(T61, T62)) → U3_ggaa(T61, T62, T63, X119, X120, part20_in_ggaa(T61, T63, X119, X120))
part20_in_ggaa(T83, .(T84, T85), X170, .(T84, X171)) → U4_ggaa(T83, T84, T85, X170, X171, le33_in_gg(T83, T84))
le33_in_gg(s(T98), s(T99)) → U6_gg(T98, T99, le33_in_gg(T98, T99))
le33_in_gg(0, s(0)) → le33_out_gg(0, s(0))
le33_in_gg(0, 0) → le33_out_gg(0, 0)
U6_gg(T98, T99, le33_out_gg(T98, T99)) → le33_out_gg(s(T98), s(T99))
U4_ggaa(T83, T84, T85, X170, X171, le33_out_gg(T83, T84)) → part20_out_ggaa(T83, .(T84, T85), X170, .(T84, X171))
U4_ggaa(T83, T84, T85, X170, X171, le33_out_gg(T83, T84)) → U5_ggaa(T83, T84, T85, X170, X171, part20_in_ggaa(T83, T85, X170, X171))
part20_in_ggaa(T107, [], [], []) → part20_out_ggaa(T107, [], [], [])
U5_ggaa(T83, T84, T85, X170, X171, part20_out_ggaa(T83, T85, X170, X171)) → part20_out_ggaa(T83, .(T84, T85), X170, .(T84, X171))
U3_ggaa(T61, T62, T63, X119, X120, part20_out_ggaa(T61, T63, X119, X120)) → part20_out_ggaa(T61, .(T62, T63), .(T62, X119), X120)
U20_ga(T22, T23, T24, T9, part20_out_ggaa(T22, T24, X47, X48)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U19_ga(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → U21_ga(T22, T23, T24, T9, part20_in_ggaa(T22, T24, T44, T45))
U21_ga(T22, T23, T24, T9, part20_out_ggaa(T22, T24, T44, T45)) → U22_ga(T22, T23, T24, T9, qs1_in_aa(.(T23, T44), X9))
qs1_in_aa(.(T22, .(T23, T24)), T9) → U19_aa(T22, T23, T24, T9, gt10_in_aa(T22, T23))
gt10_in_aa(s(T37), s(T38)) → U1_aa(T37, T38, gt10_in_aa(T37, T38))
gt10_in_aa(s(0), 0) → gt10_out_aa(s(0), 0)
U1_aa(T37, T38, gt10_out_aa(T37, T38)) → gt10_out_aa(s(T37), s(T38))
U19_aa(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U19_aa(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → U20_aa(T22, T23, T24, T9, part20_in_gaaa(T22, T24, X47, X48))
part20_in_gaaa(T61, .(T62, T63), .(T62, X119), X120) → U2_gaaa(T61, T62, T63, X119, X120, gt10_in_ga(T61, T62))
gt10_in_ga(s(T37), s(T38)) → U1_ga(T37, T38, gt10_in_ga(T37, T38))
gt10_in_ga(s(0), 0) → gt10_out_ga(s(0), 0)
U1_ga(T37, T38, gt10_out_ga(T37, T38)) → gt10_out_ga(s(T37), s(T38))
U2_gaaa(T61, T62, T63, X119, X120, gt10_out_ga(T61, T62)) → part20_out_gaaa(T61, .(T62, T63), .(T62, X119), X120)
U2_gaaa(T61, T62, T63, X119, X120, gt10_out_ga(T61, T62)) → U3_gaaa(T61, T62, T63, X119, X120, part20_in_gaaa(T61, T63, X119, X120))
part20_in_gaaa(T83, .(T84, T85), X170, .(T84, X171)) → U4_gaaa(T83, T84, T85, X170, X171, le33_in_ga(T83, T84))
le33_in_ga(s(T98), s(T99)) → U6_ga(T98, T99, le33_in_ga(T98, T99))
le33_in_ga(0, s(0)) → le33_out_ga(0, s(0))
le33_in_ga(0, 0) → le33_out_ga(0, 0)
U6_ga(T98, T99, le33_out_ga(T98, T99)) → le33_out_ga(s(T98), s(T99))
U4_gaaa(T83, T84, T85, X170, X171, le33_out_ga(T83, T84)) → part20_out_gaaa(T83, .(T84, T85), X170, .(T84, X171))
U4_gaaa(T83, T84, T85, X170, X171, le33_out_ga(T83, T84)) → U5_gaaa(T83, T84, T85, X170, X171, part20_in_gaaa(T83, T85, X170, X171))
part20_in_gaaa(T107, [], [], []) → part20_out_gaaa(T107, [], [], [])
U5_gaaa(T83, T84, T85, X170, X171, part20_out_gaaa(T83, T85, X170, X171)) → part20_out_gaaa(T83, .(T84, T85), X170, .(T84, X171))
U3_gaaa(T61, T62, T63, X119, X120, part20_out_gaaa(T61, T63, X119, X120)) → part20_out_gaaa(T61, .(T62, T63), .(T62, X119), X120)
U20_aa(T22, T23, T24, T9, part20_out_gaaa(T22, T24, X47, X48)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U19_aa(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → U21_aa(T22, T23, T24, T9, part20_in_gaaa(T22, T24, T44, T45))
U21_aa(T22, T23, T24, T9, part20_out_gaaa(T22, T24, T44, T45)) → U22_aa(T22, T23, T24, T9, qs1_in_aa(.(T23, T44), X9))
qs1_in_aa(.(T234, .(T235, T236)), T9) → U25_aa(T234, T235, T236, T9, le33_in_aa(T234, T235))
le33_in_aa(s(T98), s(T99)) → U6_aa(T98, T99, le33_in_aa(T98, T99))
le33_in_aa(0, s(0)) → le33_out_aa(0, s(0))
le33_in_aa(0, 0) → le33_out_aa(0, 0)
U6_aa(T98, T99, le33_out_aa(T98, T99)) → le33_out_aa(s(T98), s(T99))
U25_aa(T234, T235, T236, T9, le33_out_aa(T234, T235)) → qs1_out_aa(.(T234, .(T235, T236)), T9)
U25_aa(T234, T235, T236, T9, le33_out_aa(T234, T235)) → U26_aa(T234, T235, T236, T9, part20_in_gaaa(T234, T236, X431, X432))
U26_aa(T234, T235, T236, T9, part20_out_gaaa(T234, T236, X431, X432)) → qs1_out_aa(.(T234, .(T235, T236)), T9)
U25_aa(T234, T235, T236, T9, le33_out_aa(T234, T235)) → U27_aa(T234, T235, T236, T9, part20_in_gaaa(T234, T236, T244, T245))
U27_aa(T234, T235, T236, T9, part20_out_gaaa(T234, T236, T244, T245)) → U28_aa(T234, T235, T236, T9, qs53_in_aa(T244, X9))
qs53_in_aa(.(T126, T127), X269) → U7_aa(T126, T127, X269, part20_in_aaaa(T126, T127, X265, X266))
part20_in_aaaa(T61, .(T62, T63), .(T62, X119), X120) → U2_aaaa(T61, T62, T63, X119, X120, gt10_in_aa(T61, T62))
U2_aaaa(T61, T62, T63, X119, X120, gt10_out_aa(T61, T62)) → part20_out_aaaa(T61, .(T62, T63), .(T62, X119), X120)
U2_aaaa(T61, T62, T63, X119, X120, gt10_out_aa(T61, T62)) → U3_aaaa(T61, T62, T63, X119, X120, part20_in_gaaa(T61, T63, X119, X120))
U3_aaaa(T61, T62, T63, X119, X120, part20_out_gaaa(T61, T63, X119, X120)) → part20_out_aaaa(T61, .(T62, T63), .(T62, X119), X120)
part20_in_aaaa(T83, .(T84, T85), X170, .(T84, X171)) → U4_aaaa(T83, T84, T85, X170, X171, le33_in_aa(T83, T84))
U4_aaaa(T83, T84, T85, X170, X171, le33_out_aa(T83, T84)) → part20_out_aaaa(T83, .(T84, T85), X170, .(T84, X171))
U4_aaaa(T83, T84, T85, X170, X171, le33_out_aa(T83, T84)) → U5_aaaa(T83, T84, T85, X170, X171, part20_in_gaaa(T83, T85, X170, X171))
U5_aaaa(T83, T84, T85, X170, X171, part20_out_gaaa(T83, T85, X170, X171)) → part20_out_aaaa(T83, .(T84, T85), X170, .(T84, X171))
part20_in_aaaa(T107, [], [], []) → part20_out_aaaa(T107, [], [], [])
U7_aa(T126, T127, X269, part20_out_aaaa(T126, T127, X265, X266)) → qs53_out_aa(.(T126, T127), X269)
qs53_in_aa(.(T126, T127), X269) → U8_aa(T126, T127, X269, part20_in_aaaa(T126, T127, T131, T132))
U8_aa(T126, T127, X269, part20_out_aaaa(T126, T127, T131, T132)) → U9_aa(T126, T127, X269, qs53_in_aa(T131, X267))
qs53_in_aa([], []) → qs53_out_aa([], [])
U9_aa(T126, T127, X269, qs53_out_aa(T131, X267)) → qs53_out_aa(.(T126, T127), X269)
U8_aa(T126, T127, X269, part20_out_aaaa(T126, T127, T131, T132)) → U10_aa(T126, T127, X269, T132, qs53_in_aa(T131, T138))
U10_aa(T126, T127, X269, T132, qs53_out_aa(T131, T138)) → U11_aa(T126, T127, X269, qs53_in_aa(T132, X268))
U11_aa(T126, T127, X269, qs53_out_aa(T132, X268)) → qs53_out_aa(.(T126, T127), X269)
U10_aa(T126, T127, X269, T132, qs53_out_aa(T131, T138)) → U12_aa(T126, T127, X269, T138, qs53_in_aa(T132, T143))
U12_aa(T126, T127, X269, T138, qs53_out_aa(T132, T143)) → U13_aa(T126, T127, X269, app65_in_aaaa(T138, T126, T143, X269))
app65_in_aaaa(.(T166, T167), T168, T169, .(T166, X348)) → U14_aaaa(T166, T167, T168, T169, X348, app65_in_aaaa(T167, T168, T169, X348))
app65_in_aaaa([], T178, T179, .(T178, T179)) → app65_out_aaaa([], T178, T179, .(T178, T179))
U14_aaaa(T166, T167, T168, T169, X348, app65_out_aaaa(T167, T168, T169, X348)) → app65_out_aaaa(.(T166, T167), T168, T169, .(T166, X348))
U13_aa(T126, T127, X269, app65_out_aaaa(T138, T126, T143, X269)) → qs53_out_aa(.(T126, T127), X269)
U28_aa(T234, T235, T236, T9, qs53_out_aa(T244, X9)) → qs1_out_aa(.(T234, .(T235, T236)), T9)
U27_aa(T234, T235, T236, T9, part20_out_gaaa(T234, T236, T244, T245)) → U29_aa(T234, T235, T236, T9, T245, qs53_in_aa(T244, T251))
U29_aa(T234, T235, T236, T9, T245, qs53_out_aa(T244, T251)) → U30_aa(T234, T235, T236, T9, p52_in_aaaga(.(T235, T245), X10, T251, T234, T9))
p52_in_aaaga(T45, X10, T110, T22, T9) → U16_aaaga(T45, X10, T110, T22, T9, qs53_in_aa(T45, X10))
U16_aaaga(T45, X10, T110, T22, T9, qs53_out_aa(T45, X10)) → p52_out_aaaga(T45, X10, T110, T22, T9)
p52_in_aaaga(T45, T115, T110, T22, T9) → U17_aaaga(T45, T115, T110, T22, T9, qs53_in_aa(T45, T115))
U17_aaaga(T45, T115, T110, T22, T9, qs53_out_aa(T45, T115)) → U18_aaaga(T45, T115, T110, T22, T9, app54_in_agaa(T110, T22, T115, T9))
app54_in_agaa(.(T205, T206), T207, T208, .(T205, T210)) → U15_agaa(T205, T206, T207, T208, T210, app54_in_agaa(T206, T207, T208, T210))
app54_in_agaa([], T220, T221, .(T220, T221)) → app54_out_agaa([], T220, T221, .(T220, T221))
U15_agaa(T205, T206, T207, T208, T210, app54_out_agaa(T206, T207, T208, T210)) → app54_out_agaa(.(T205, T206), T207, T208, .(T205, T210))
U18_aaaga(T45, T115, T110, T22, T9, app54_out_agaa(T110, T22, T115, T9)) → p52_out_aaaga(T45, T115, T110, T22, T9)
U30_aa(T234, T235, T236, T9, p52_out_aaaga(.(T235, T245), X10, T251, T234, T9)) → qs1_out_aa(.(T234, .(T235, T236)), T9)
qs1_in_aa(.(T260, []), T9) → U31_aa(T260, T9, qs99_in_a(X9))
qs99_in_a([]) → qs99_out_a([])
U31_aa(T260, T9, qs99_out_a(X9)) → qs1_out_aa(.(T260, []), T9)
qs1_in_aa(.(T260, []), T9) → U32_aa(T260, T9, qs99_in_a(T263))
U32_aa(T260, T9, qs99_out_a(T263)) → U33_aa(T260, T9, qs99_in_a(X10))
U33_aa(T260, T9, qs99_out_a(X10)) → qs1_out_aa(.(T260, []), T9)
U32_aa(T260, T9, qs99_out_a(T263)) → U34_aa(T260, T9, T263, qs99_in_a(T268))
U34_aa(T260, T9, T263, qs99_out_a(T268)) → U35_aa(T260, T9, app54_in_gaga(T263, T260, T268, T9))
app54_in_gaga(.(T205, T206), T207, T208, .(T205, T210)) → U15_gaga(T205, T206, T207, T208, T210, app54_in_gaga(T206, T207, T208, T210))
app54_in_gaga([], T220, T221, .(T220, T221)) → app54_out_gaga([], T220, T221, .(T220, T221))
U15_gaga(T205, T206, T207, T208, T210, app54_out_gaga(T206, T207, T208, T210)) → app54_out_gaga(.(T205, T206), T207, T208, .(T205, T210))
U35_aa(T260, T9, app54_out_gaga(T263, T260, T268, T9)) → qs1_out_aa(.(T260, []), T9)
qs1_in_aa([], []) → qs1_out_aa([], [])
U22_aa(T22, T23, T24, T9, qs1_out_aa(.(T23, T44), X9)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U21_aa(T22, T23, T24, T9, part20_out_gaaa(T22, T24, T44, T45)) → U23_aa(T22, T23, T24, T9, T45, qs1_in_aa(.(T23, T44), T110))
U23_aa(T22, T23, T24, T9, T45, qs1_out_aa(.(T23, T44), T110)) → U24_aa(T22, T23, T24, T9, p52_in_aaaga(T45, X10, T110, T22, T9))
U24_aa(T22, T23, T24, T9, p52_out_aaaga(T45, X10, T110, T22, T9)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U22_ga(T22, T23, T24, T9, qs1_out_aa(.(T23, T44), X9)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U21_ga(T22, T23, T24, T9, part20_out_ggaa(T22, T24, T44, T45)) → U23_ga(T22, T23, T24, T9, T45, qs1_in_aa(.(T23, T44), T110))
U23_ga(T22, T23, T24, T9, T45, qs1_out_aa(.(T23, T44), T110)) → U24_ga(T22, T23, T24, T9, p52_in_aaaga(T45, X10, T110, T22, T9))
U24_ga(T22, T23, T24, T9, p52_out_aaaga(T45, X10, T110, T22, T9)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
qs1_in_ga(.(T234, .(T235, T236)), T9) → U25_ga(T234, T235, T236, T9, le33_in_gg(T234, T235))
U25_ga(T234, T235, T236, T9, le33_out_gg(T234, T235)) → qs1_out_ga(.(T234, .(T235, T236)), T9)
U25_ga(T234, T235, T236, T9, le33_out_gg(T234, T235)) → U26_ga(T234, T235, T236, T9, part20_in_ggaa(T234, T236, X431, X432))
U26_ga(T234, T235, T236, T9, part20_out_ggaa(T234, T236, X431, X432)) → qs1_out_ga(.(T234, .(T235, T236)), T9)
U25_ga(T234, T235, T236, T9, le33_out_gg(T234, T235)) → U27_ga(T234, T235, T236, T9, part20_in_ggaa(T234, T236, T244, T245))
U27_ga(T234, T235, T236, T9, part20_out_ggaa(T234, T236, T244, T245)) → U28_ga(T234, T235, T236, T9, qs53_in_aa(T244, X9))
U28_ga(T234, T235, T236, T9, qs53_out_aa(T244, X9)) → qs1_out_ga(.(T234, .(T235, T236)), T9)
U27_ga(T234, T235, T236, T9, part20_out_ggaa(T234, T236, T244, T245)) → U29_ga(T234, T235, T236, T9, T245, qs53_in_aa(T244, T251))
U29_ga(T234, T235, T236, T9, T245, qs53_out_aa(T244, T251)) → U30_ga(T234, T235, T236, T9, p52_in_aaaga(.(T235, T245), X10, T251, T234, T9))
U30_ga(T234, T235, T236, T9, p52_out_aaaga(.(T235, T245), X10, T251, T234, T9)) → qs1_out_ga(.(T234, .(T235, T236)), T9)
qs1_in_ga(.(T260, []), T9) → U31_ga(T260, T9, qs99_in_a(X9))
U31_ga(T260, T9, qs99_out_a(X9)) → qs1_out_ga(.(T260, []), T9)
qs1_in_ga(.(T260, []), T9) → U32_ga(T260, T9, qs99_in_a(T263))
U32_ga(T260, T9, qs99_out_a(T263)) → U33_ga(T260, T9, qs99_in_a(X10))
U33_ga(T260, T9, qs99_out_a(X10)) → qs1_out_ga(.(T260, []), T9)
U32_ga(T260, T9, qs99_out_a(T263)) → U34_ga(T260, T9, T263, qs99_in_a(T268))
U34_ga(T260, T9, T263, qs99_out_a(T268)) → U35_ga(T260, T9, app54_in_ggga(T263, T260, T268, T9))
app54_in_ggga(.(T205, T206), T207, T208, .(T205, T210)) → U15_ggga(T205, T206, T207, T208, T210, app54_in_ggga(T206, T207, T208, T210))
app54_in_ggga([], T220, T221, .(T220, T221)) → app54_out_ggga([], T220, T221, .(T220, T221))
U15_ggga(T205, T206, T207, T208, T210, app54_out_ggga(T206, T207, T208, T210)) → app54_out_ggga(.(T205, T206), T207, T208, .(T205, T210))
U35_ga(T260, T9, app54_out_ggga(T263, T260, T268, T9)) → qs1_out_ga(.(T260, []), T9)
qs1_in_ga([], []) → qs1_out_ga([], [])
Infinitary Constructor Rewriting Termination of PiTRS implies Termination of Prolog
qs1_in_ga(.(T22, .(T23, T24)), T9) → U19_ga(T22, T23, T24, T9, gt10_in_gg(T22, T23))
gt10_in_gg(s(T37), s(T38)) → U1_gg(T37, T38, gt10_in_gg(T37, T38))
gt10_in_gg(s(0), 0) → gt10_out_gg(s(0), 0)
U1_gg(T37, T38, gt10_out_gg(T37, T38)) → gt10_out_gg(s(T37), s(T38))
U19_ga(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U19_ga(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → U20_ga(T22, T23, T24, T9, part20_in_ggaa(T22, T24, X47, X48))
part20_in_ggaa(T61, .(T62, T63), .(T62, X119), X120) → U2_ggaa(T61, T62, T63, X119, X120, gt10_in_gg(T61, T62))
U2_ggaa(T61, T62, T63, X119, X120, gt10_out_gg(T61, T62)) → part20_out_ggaa(T61, .(T62, T63), .(T62, X119), X120)
U2_ggaa(T61, T62, T63, X119, X120, gt10_out_gg(T61, T62)) → U3_ggaa(T61, T62, T63, X119, X120, part20_in_ggaa(T61, T63, X119, X120))
part20_in_ggaa(T83, .(T84, T85), X170, .(T84, X171)) → U4_ggaa(T83, T84, T85, X170, X171, le33_in_gg(T83, T84))
le33_in_gg(s(T98), s(T99)) → U6_gg(T98, T99, le33_in_gg(T98, T99))
le33_in_gg(0, s(0)) → le33_out_gg(0, s(0))
le33_in_gg(0, 0) → le33_out_gg(0, 0)
U6_gg(T98, T99, le33_out_gg(T98, T99)) → le33_out_gg(s(T98), s(T99))
U4_ggaa(T83, T84, T85, X170, X171, le33_out_gg(T83, T84)) → part20_out_ggaa(T83, .(T84, T85), X170, .(T84, X171))
U4_ggaa(T83, T84, T85, X170, X171, le33_out_gg(T83, T84)) → U5_ggaa(T83, T84, T85, X170, X171, part20_in_ggaa(T83, T85, X170, X171))
part20_in_ggaa(T107, [], [], []) → part20_out_ggaa(T107, [], [], [])
U5_ggaa(T83, T84, T85, X170, X171, part20_out_ggaa(T83, T85, X170, X171)) → part20_out_ggaa(T83, .(T84, T85), X170, .(T84, X171))
U3_ggaa(T61, T62, T63, X119, X120, part20_out_ggaa(T61, T63, X119, X120)) → part20_out_ggaa(T61, .(T62, T63), .(T62, X119), X120)
U20_ga(T22, T23, T24, T9, part20_out_ggaa(T22, T24, X47, X48)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U19_ga(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → U21_ga(T22, T23, T24, T9, part20_in_ggaa(T22, T24, T44, T45))
U21_ga(T22, T23, T24, T9, part20_out_ggaa(T22, T24, T44, T45)) → U22_ga(T22, T23, T24, T9, qs1_in_aa(.(T23, T44), X9))
qs1_in_aa(.(T22, .(T23, T24)), T9) → U19_aa(T22, T23, T24, T9, gt10_in_aa(T22, T23))
gt10_in_aa(s(T37), s(T38)) → U1_aa(T37, T38, gt10_in_aa(T37, T38))
gt10_in_aa(s(0), 0) → gt10_out_aa(s(0), 0)
U1_aa(T37, T38, gt10_out_aa(T37, T38)) → gt10_out_aa(s(T37), s(T38))
U19_aa(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U19_aa(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → U20_aa(T22, T23, T24, T9, part20_in_gaaa(T22, T24, X47, X48))
part20_in_gaaa(T61, .(T62, T63), .(T62, X119), X120) → U2_gaaa(T61, T62, T63, X119, X120, gt10_in_ga(T61, T62))
gt10_in_ga(s(T37), s(T38)) → U1_ga(T37, T38, gt10_in_ga(T37, T38))
gt10_in_ga(s(0), 0) → gt10_out_ga(s(0), 0)
U1_ga(T37, T38, gt10_out_ga(T37, T38)) → gt10_out_ga(s(T37), s(T38))
U2_gaaa(T61, T62, T63, X119, X120, gt10_out_ga(T61, T62)) → part20_out_gaaa(T61, .(T62, T63), .(T62, X119), X120)
U2_gaaa(T61, T62, T63, X119, X120, gt10_out_ga(T61, T62)) → U3_gaaa(T61, T62, T63, X119, X120, part20_in_gaaa(T61, T63, X119, X120))
part20_in_gaaa(T83, .(T84, T85), X170, .(T84, X171)) → U4_gaaa(T83, T84, T85, X170, X171, le33_in_ga(T83, T84))
le33_in_ga(s(T98), s(T99)) → U6_ga(T98, T99, le33_in_ga(T98, T99))
le33_in_ga(0, s(0)) → le33_out_ga(0, s(0))
le33_in_ga(0, 0) → le33_out_ga(0, 0)
U6_ga(T98, T99, le33_out_ga(T98, T99)) → le33_out_ga(s(T98), s(T99))
U4_gaaa(T83, T84, T85, X170, X171, le33_out_ga(T83, T84)) → part20_out_gaaa(T83, .(T84, T85), X170, .(T84, X171))
U4_gaaa(T83, T84, T85, X170, X171, le33_out_ga(T83, T84)) → U5_gaaa(T83, T84, T85, X170, X171, part20_in_gaaa(T83, T85, X170, X171))
part20_in_gaaa(T107, [], [], []) → part20_out_gaaa(T107, [], [], [])
U5_gaaa(T83, T84, T85, X170, X171, part20_out_gaaa(T83, T85, X170, X171)) → part20_out_gaaa(T83, .(T84, T85), X170, .(T84, X171))
U3_gaaa(T61, T62, T63, X119, X120, part20_out_gaaa(T61, T63, X119, X120)) → part20_out_gaaa(T61, .(T62, T63), .(T62, X119), X120)
U20_aa(T22, T23, T24, T9, part20_out_gaaa(T22, T24, X47, X48)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U19_aa(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → U21_aa(T22, T23, T24, T9, part20_in_gaaa(T22, T24, T44, T45))
U21_aa(T22, T23, T24, T9, part20_out_gaaa(T22, T24, T44, T45)) → U22_aa(T22, T23, T24, T9, qs1_in_aa(.(T23, T44), X9))
qs1_in_aa(.(T234, .(T235, T236)), T9) → U25_aa(T234, T235, T236, T9, le33_in_aa(T234, T235))
le33_in_aa(s(T98), s(T99)) → U6_aa(T98, T99, le33_in_aa(T98, T99))
le33_in_aa(0, s(0)) → le33_out_aa(0, s(0))
le33_in_aa(0, 0) → le33_out_aa(0, 0)
U6_aa(T98, T99, le33_out_aa(T98, T99)) → le33_out_aa(s(T98), s(T99))
U25_aa(T234, T235, T236, T9, le33_out_aa(T234, T235)) → qs1_out_aa(.(T234, .(T235, T236)), T9)
U25_aa(T234, T235, T236, T9, le33_out_aa(T234, T235)) → U26_aa(T234, T235, T236, T9, part20_in_gaaa(T234, T236, X431, X432))
U26_aa(T234, T235, T236, T9, part20_out_gaaa(T234, T236, X431, X432)) → qs1_out_aa(.(T234, .(T235, T236)), T9)
U25_aa(T234, T235, T236, T9, le33_out_aa(T234, T235)) → U27_aa(T234, T235, T236, T9, part20_in_gaaa(T234, T236, T244, T245))
U27_aa(T234, T235, T236, T9, part20_out_gaaa(T234, T236, T244, T245)) → U28_aa(T234, T235, T236, T9, qs53_in_aa(T244, X9))
qs53_in_aa(.(T126, T127), X269) → U7_aa(T126, T127, X269, part20_in_aaaa(T126, T127, X265, X266))
part20_in_aaaa(T61, .(T62, T63), .(T62, X119), X120) → U2_aaaa(T61, T62, T63, X119, X120, gt10_in_aa(T61, T62))
U2_aaaa(T61, T62, T63, X119, X120, gt10_out_aa(T61, T62)) → part20_out_aaaa(T61, .(T62, T63), .(T62, X119), X120)
U2_aaaa(T61, T62, T63, X119, X120, gt10_out_aa(T61, T62)) → U3_aaaa(T61, T62, T63, X119, X120, part20_in_gaaa(T61, T63, X119, X120))
U3_aaaa(T61, T62, T63, X119, X120, part20_out_gaaa(T61, T63, X119, X120)) → part20_out_aaaa(T61, .(T62, T63), .(T62, X119), X120)
part20_in_aaaa(T83, .(T84, T85), X170, .(T84, X171)) → U4_aaaa(T83, T84, T85, X170, X171, le33_in_aa(T83, T84))
U4_aaaa(T83, T84, T85, X170, X171, le33_out_aa(T83, T84)) → part20_out_aaaa(T83, .(T84, T85), X170, .(T84, X171))
U4_aaaa(T83, T84, T85, X170, X171, le33_out_aa(T83, T84)) → U5_aaaa(T83, T84, T85, X170, X171, part20_in_gaaa(T83, T85, X170, X171))
U5_aaaa(T83, T84, T85, X170, X171, part20_out_gaaa(T83, T85, X170, X171)) → part20_out_aaaa(T83, .(T84, T85), X170, .(T84, X171))
part20_in_aaaa(T107, [], [], []) → part20_out_aaaa(T107, [], [], [])
U7_aa(T126, T127, X269, part20_out_aaaa(T126, T127, X265, X266)) → qs53_out_aa(.(T126, T127), X269)
qs53_in_aa(.(T126, T127), X269) → U8_aa(T126, T127, X269, part20_in_aaaa(T126, T127, T131, T132))
U8_aa(T126, T127, X269, part20_out_aaaa(T126, T127, T131, T132)) → U9_aa(T126, T127, X269, qs53_in_aa(T131, X267))
qs53_in_aa([], []) → qs53_out_aa([], [])
U9_aa(T126, T127, X269, qs53_out_aa(T131, X267)) → qs53_out_aa(.(T126, T127), X269)
U8_aa(T126, T127, X269, part20_out_aaaa(T126, T127, T131, T132)) → U10_aa(T126, T127, X269, T132, qs53_in_aa(T131, T138))
U10_aa(T126, T127, X269, T132, qs53_out_aa(T131, T138)) → U11_aa(T126, T127, X269, qs53_in_aa(T132, X268))
U11_aa(T126, T127, X269, qs53_out_aa(T132, X268)) → qs53_out_aa(.(T126, T127), X269)
U10_aa(T126, T127, X269, T132, qs53_out_aa(T131, T138)) → U12_aa(T126, T127, X269, T138, qs53_in_aa(T132, T143))
U12_aa(T126, T127, X269, T138, qs53_out_aa(T132, T143)) → U13_aa(T126, T127, X269, app65_in_aaaa(T138, T126, T143, X269))
app65_in_aaaa(.(T166, T167), T168, T169, .(T166, X348)) → U14_aaaa(T166, T167, T168, T169, X348, app65_in_aaaa(T167, T168, T169, X348))
app65_in_aaaa([], T178, T179, .(T178, T179)) → app65_out_aaaa([], T178, T179, .(T178, T179))
U14_aaaa(T166, T167, T168, T169, X348, app65_out_aaaa(T167, T168, T169, X348)) → app65_out_aaaa(.(T166, T167), T168, T169, .(T166, X348))
U13_aa(T126, T127, X269, app65_out_aaaa(T138, T126, T143, X269)) → qs53_out_aa(.(T126, T127), X269)
U28_aa(T234, T235, T236, T9, qs53_out_aa(T244, X9)) → qs1_out_aa(.(T234, .(T235, T236)), T9)
U27_aa(T234, T235, T236, T9, part20_out_gaaa(T234, T236, T244, T245)) → U29_aa(T234, T235, T236, T9, T245, qs53_in_aa(T244, T251))
U29_aa(T234, T235, T236, T9, T245, qs53_out_aa(T244, T251)) → U30_aa(T234, T235, T236, T9, p52_in_aaaga(.(T235, T245), X10, T251, T234, T9))
p52_in_aaaga(T45, X10, T110, T22, T9) → U16_aaaga(T45, X10, T110, T22, T9, qs53_in_aa(T45, X10))
U16_aaaga(T45, X10, T110, T22, T9, qs53_out_aa(T45, X10)) → p52_out_aaaga(T45, X10, T110, T22, T9)
p52_in_aaaga(T45, T115, T110, T22, T9) → U17_aaaga(T45, T115, T110, T22, T9, qs53_in_aa(T45, T115))
U17_aaaga(T45, T115, T110, T22, T9, qs53_out_aa(T45, T115)) → U18_aaaga(T45, T115, T110, T22, T9, app54_in_agaa(T110, T22, T115, T9))
app54_in_agaa(.(T205, T206), T207, T208, .(T205, T210)) → U15_agaa(T205, T206, T207, T208, T210, app54_in_agaa(T206, T207, T208, T210))
app54_in_agaa([], T220, T221, .(T220, T221)) → app54_out_agaa([], T220, T221, .(T220, T221))
U15_agaa(T205, T206, T207, T208, T210, app54_out_agaa(T206, T207, T208, T210)) → app54_out_agaa(.(T205, T206), T207, T208, .(T205, T210))
U18_aaaga(T45, T115, T110, T22, T9, app54_out_agaa(T110, T22, T115, T9)) → p52_out_aaaga(T45, T115, T110, T22, T9)
U30_aa(T234, T235, T236, T9, p52_out_aaaga(.(T235, T245), X10, T251, T234, T9)) → qs1_out_aa(.(T234, .(T235, T236)), T9)
qs1_in_aa(.(T260, []), T9) → U31_aa(T260, T9, qs99_in_a(X9))
qs99_in_a([]) → qs99_out_a([])
U31_aa(T260, T9, qs99_out_a(X9)) → qs1_out_aa(.(T260, []), T9)
qs1_in_aa(.(T260, []), T9) → U32_aa(T260, T9, qs99_in_a(T263))
U32_aa(T260, T9, qs99_out_a(T263)) → U33_aa(T260, T9, qs99_in_a(X10))
U33_aa(T260, T9, qs99_out_a(X10)) → qs1_out_aa(.(T260, []), T9)
U32_aa(T260, T9, qs99_out_a(T263)) → U34_aa(T260, T9, T263, qs99_in_a(T268))
U34_aa(T260, T9, T263, qs99_out_a(T268)) → U35_aa(T260, T9, app54_in_gaga(T263, T260, T268, T9))
app54_in_gaga(.(T205, T206), T207, T208, .(T205, T210)) → U15_gaga(T205, T206, T207, T208, T210, app54_in_gaga(T206, T207, T208, T210))
app54_in_gaga([], T220, T221, .(T220, T221)) → app54_out_gaga([], T220, T221, .(T220, T221))
U15_gaga(T205, T206, T207, T208, T210, app54_out_gaga(T206, T207, T208, T210)) → app54_out_gaga(.(T205, T206), T207, T208, .(T205, T210))
U35_aa(T260, T9, app54_out_gaga(T263, T260, T268, T9)) → qs1_out_aa(.(T260, []), T9)
qs1_in_aa([], []) → qs1_out_aa([], [])
U22_aa(T22, T23, T24, T9, qs1_out_aa(.(T23, T44), X9)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U21_aa(T22, T23, T24, T9, part20_out_gaaa(T22, T24, T44, T45)) → U23_aa(T22, T23, T24, T9, T45, qs1_in_aa(.(T23, T44), T110))
U23_aa(T22, T23, T24, T9, T45, qs1_out_aa(.(T23, T44), T110)) → U24_aa(T22, T23, T24, T9, p52_in_aaaga(T45, X10, T110, T22, T9))
U24_aa(T22, T23, T24, T9, p52_out_aaaga(T45, X10, T110, T22, T9)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U22_ga(T22, T23, T24, T9, qs1_out_aa(.(T23, T44), X9)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U21_ga(T22, T23, T24, T9, part20_out_ggaa(T22, T24, T44, T45)) → U23_ga(T22, T23, T24, T9, T45, qs1_in_aa(.(T23, T44), T110))
U23_ga(T22, T23, T24, T9, T45, qs1_out_aa(.(T23, T44), T110)) → U24_ga(T22, T23, T24, T9, p52_in_aaaga(T45, X10, T110, T22, T9))
U24_ga(T22, T23, T24, T9, p52_out_aaaga(T45, X10, T110, T22, T9)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
qs1_in_ga(.(T234, .(T235, T236)), T9) → U25_ga(T234, T235, T236, T9, le33_in_gg(T234, T235))
U25_ga(T234, T235, T236, T9, le33_out_gg(T234, T235)) → qs1_out_ga(.(T234, .(T235, T236)), T9)
U25_ga(T234, T235, T236, T9, le33_out_gg(T234, T235)) → U26_ga(T234, T235, T236, T9, part20_in_ggaa(T234, T236, X431, X432))
U26_ga(T234, T235, T236, T9, part20_out_ggaa(T234, T236, X431, X432)) → qs1_out_ga(.(T234, .(T235, T236)), T9)
U25_ga(T234, T235, T236, T9, le33_out_gg(T234, T235)) → U27_ga(T234, T235, T236, T9, part20_in_ggaa(T234, T236, T244, T245))
U27_ga(T234, T235, T236, T9, part20_out_ggaa(T234, T236, T244, T245)) → U28_ga(T234, T235, T236, T9, qs53_in_aa(T244, X9))
U28_ga(T234, T235, T236, T9, qs53_out_aa(T244, X9)) → qs1_out_ga(.(T234, .(T235, T236)), T9)
U27_ga(T234, T235, T236, T9, part20_out_ggaa(T234, T236, T244, T245)) → U29_ga(T234, T235, T236, T9, T245, qs53_in_aa(T244, T251))
U29_ga(T234, T235, T236, T9, T245, qs53_out_aa(T244, T251)) → U30_ga(T234, T235, T236, T9, p52_in_aaaga(.(T235, T245), X10, T251, T234, T9))
U30_ga(T234, T235, T236, T9, p52_out_aaaga(.(T235, T245), X10, T251, T234, T9)) → qs1_out_ga(.(T234, .(T235, T236)), T9)
qs1_in_ga(.(T260, []), T9) → U31_ga(T260, T9, qs99_in_a(X9))
U31_ga(T260, T9, qs99_out_a(X9)) → qs1_out_ga(.(T260, []), T9)
qs1_in_ga(.(T260, []), T9) → U32_ga(T260, T9, qs99_in_a(T263))
U32_ga(T260, T9, qs99_out_a(T263)) → U33_ga(T260, T9, qs99_in_a(X10))
U33_ga(T260, T9, qs99_out_a(X10)) → qs1_out_ga(.(T260, []), T9)
U32_ga(T260, T9, qs99_out_a(T263)) → U34_ga(T260, T9, T263, qs99_in_a(T268))
U34_ga(T260, T9, T263, qs99_out_a(T268)) → U35_ga(T260, T9, app54_in_ggga(T263, T260, T268, T9))
app54_in_ggga(.(T205, T206), T207, T208, .(T205, T210)) → U15_ggga(T205, T206, T207, T208, T210, app54_in_ggga(T206, T207, T208, T210))
app54_in_ggga([], T220, T221, .(T220, T221)) → app54_out_ggga([], T220, T221, .(T220, T221))
U15_ggga(T205, T206, T207, T208, T210, app54_out_ggga(T206, T207, T208, T210)) → app54_out_ggga(.(T205, T206), T207, T208, .(T205, T210))
U35_ga(T260, T9, app54_out_ggga(T263, T260, T268, T9)) → qs1_out_ga(.(T260, []), T9)
qs1_in_ga([], []) → qs1_out_ga([], [])
QS1_IN_GA(.(T22, .(T23, T24)), T9) → U19_GA(T22, T23, T24, T9, gt10_in_gg(T22, T23))
QS1_IN_GA(.(T22, .(T23, T24)), T9) → GT10_IN_GG(T22, T23)
GT10_IN_GG(s(T37), s(T38)) → U1_GG(T37, T38, gt10_in_gg(T37, T38))
GT10_IN_GG(s(T37), s(T38)) → GT10_IN_GG(T37, T38)
U19_GA(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → U20_GA(T22, T23, T24, T9, part20_in_ggaa(T22, T24, X47, X48))
U19_GA(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → PART20_IN_GGAA(T22, T24, X47, X48)
PART20_IN_GGAA(T61, .(T62, T63), .(T62, X119), X120) → U2_GGAA(T61, T62, T63, X119, X120, gt10_in_gg(T61, T62))
PART20_IN_GGAA(T61, .(T62, T63), .(T62, X119), X120) → GT10_IN_GG(T61, T62)
U2_GGAA(T61, T62, T63, X119, X120, gt10_out_gg(T61, T62)) → U3_GGAA(T61, T62, T63, X119, X120, part20_in_ggaa(T61, T63, X119, X120))
U2_GGAA(T61, T62, T63, X119, X120, gt10_out_gg(T61, T62)) → PART20_IN_GGAA(T61, T63, X119, X120)
PART20_IN_GGAA(T83, .(T84, T85), X170, .(T84, X171)) → U4_GGAA(T83, T84, T85, X170, X171, le33_in_gg(T83, T84))
PART20_IN_GGAA(T83, .(T84, T85), X170, .(T84, X171)) → LE33_IN_GG(T83, T84)
LE33_IN_GG(s(T98), s(T99)) → U6_GG(T98, T99, le33_in_gg(T98, T99))
LE33_IN_GG(s(T98), s(T99)) → LE33_IN_GG(T98, T99)
U4_GGAA(T83, T84, T85, X170, X171, le33_out_gg(T83, T84)) → U5_GGAA(T83, T84, T85, X170, X171, part20_in_ggaa(T83, T85, X170, X171))
U4_GGAA(T83, T84, T85, X170, X171, le33_out_gg(T83, T84)) → PART20_IN_GGAA(T83, T85, X170, X171)
U19_GA(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → U21_GA(T22, T23, T24, T9, part20_in_ggaa(T22, T24, T44, T45))
U21_GA(T22, T23, T24, T9, part20_out_ggaa(T22, T24, T44, T45)) → U22_GA(T22, T23, T24, T9, qs1_in_aa(.(T23, T44), X9))
U21_GA(T22, T23, T24, T9, part20_out_ggaa(T22, T24, T44, T45)) → QS1_IN_AA(.(T23, T44), X9)
QS1_IN_AA(.(T22, .(T23, T24)), T9) → U19_AA(T22, T23, T24, T9, gt10_in_aa(T22, T23))
QS1_IN_AA(.(T22, .(T23, T24)), T9) → GT10_IN_AA(T22, T23)
GT10_IN_AA(s(T37), s(T38)) → U1_AA(T37, T38, gt10_in_aa(T37, T38))
GT10_IN_AA(s(T37), s(T38)) → GT10_IN_AA(T37, T38)
U19_AA(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → U20_AA(T22, T23, T24, T9, part20_in_gaaa(T22, T24, X47, X48))
U19_AA(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → PART20_IN_GAAA(T22, T24, X47, X48)
PART20_IN_GAAA(T61, .(T62, T63), .(T62, X119), X120) → U2_GAAA(T61, T62, T63, X119, X120, gt10_in_ga(T61, T62))
PART20_IN_GAAA(T61, .(T62, T63), .(T62, X119), X120) → GT10_IN_GA(T61, T62)
GT10_IN_GA(s(T37), s(T38)) → U1_GA(T37, T38, gt10_in_ga(T37, T38))
GT10_IN_GA(s(T37), s(T38)) → GT10_IN_GA(T37, T38)
U2_GAAA(T61, T62, T63, X119, X120, gt10_out_ga(T61, T62)) → U3_GAAA(T61, T62, T63, X119, X120, part20_in_gaaa(T61, T63, X119, X120))
U2_GAAA(T61, T62, T63, X119, X120, gt10_out_ga(T61, T62)) → PART20_IN_GAAA(T61, T63, X119, X120)
PART20_IN_GAAA(T83, .(T84, T85), X170, .(T84, X171)) → U4_GAAA(T83, T84, T85, X170, X171, le33_in_ga(T83, T84))
PART20_IN_GAAA(T83, .(T84, T85), X170, .(T84, X171)) → LE33_IN_GA(T83, T84)
LE33_IN_GA(s(T98), s(T99)) → U6_GA(T98, T99, le33_in_ga(T98, T99))
LE33_IN_GA(s(T98), s(T99)) → LE33_IN_GA(T98, T99)
U4_GAAA(T83, T84, T85, X170, X171, le33_out_ga(T83, T84)) → U5_GAAA(T83, T84, T85, X170, X171, part20_in_gaaa(T83, T85, X170, X171))
U4_GAAA(T83, T84, T85, X170, X171, le33_out_ga(T83, T84)) → PART20_IN_GAAA(T83, T85, X170, X171)
U19_AA(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → U21_AA(T22, T23, T24, T9, part20_in_gaaa(T22, T24, T44, T45))
U21_AA(T22, T23, T24, T9, part20_out_gaaa(T22, T24, T44, T45)) → U22_AA(T22, T23, T24, T9, qs1_in_aa(.(T23, T44), X9))
U21_AA(T22, T23, T24, T9, part20_out_gaaa(T22, T24, T44, T45)) → QS1_IN_AA(.(T23, T44), X9)
QS1_IN_AA(.(T234, .(T235, T236)), T9) → U25_AA(T234, T235, T236, T9, le33_in_aa(T234, T235))
QS1_IN_AA(.(T234, .(T235, T236)), T9) → LE33_IN_AA(T234, T235)
LE33_IN_AA(s(T98), s(T99)) → U6_AA(T98, T99, le33_in_aa(T98, T99))
LE33_IN_AA(s(T98), s(T99)) → LE33_IN_AA(T98, T99)
U25_AA(T234, T235, T236, T9, le33_out_aa(T234, T235)) → U26_AA(T234, T235, T236, T9, part20_in_gaaa(T234, T236, X431, X432))
U25_AA(T234, T235, T236, T9, le33_out_aa(T234, T235)) → PART20_IN_GAAA(T234, T236, X431, X432)
U25_AA(T234, T235, T236, T9, le33_out_aa(T234, T235)) → U27_AA(T234, T235, T236, T9, part20_in_gaaa(T234, T236, T244, T245))
U27_AA(T234, T235, T236, T9, part20_out_gaaa(T234, T236, T244, T245)) → U28_AA(T234, T235, T236, T9, qs53_in_aa(T244, X9))
U27_AA(T234, T235, T236, T9, part20_out_gaaa(T234, T236, T244, T245)) → QS53_IN_AA(T244, X9)
QS53_IN_AA(.(T126, T127), X269) → U7_AA(T126, T127, X269, part20_in_aaaa(T126, T127, X265, X266))
QS53_IN_AA(.(T126, T127), X269) → PART20_IN_AAAA(T126, T127, X265, X266)
PART20_IN_AAAA(T61, .(T62, T63), .(T62, X119), X120) → U2_AAAA(T61, T62, T63, X119, X120, gt10_in_aa(T61, T62))
PART20_IN_AAAA(T61, .(T62, T63), .(T62, X119), X120) → GT10_IN_AA(T61, T62)
U2_AAAA(T61, T62, T63, X119, X120, gt10_out_aa(T61, T62)) → U3_AAAA(T61, T62, T63, X119, X120, part20_in_gaaa(T61, T63, X119, X120))
U2_AAAA(T61, T62, T63, X119, X120, gt10_out_aa(T61, T62)) → PART20_IN_GAAA(T61, T63, X119, X120)
PART20_IN_AAAA(T83, .(T84, T85), X170, .(T84, X171)) → U4_AAAA(T83, T84, T85, X170, X171, le33_in_aa(T83, T84))
PART20_IN_AAAA(T83, .(T84, T85), X170, .(T84, X171)) → LE33_IN_AA(T83, T84)
U4_AAAA(T83, T84, T85, X170, X171, le33_out_aa(T83, T84)) → U5_AAAA(T83, T84, T85, X170, X171, part20_in_gaaa(T83, T85, X170, X171))
U4_AAAA(T83, T84, T85, X170, X171, le33_out_aa(T83, T84)) → PART20_IN_GAAA(T83, T85, X170, X171)
QS53_IN_AA(.(T126, T127), X269) → U8_AA(T126, T127, X269, part20_in_aaaa(T126, T127, T131, T132))
U8_AA(T126, T127, X269, part20_out_aaaa(T126, T127, T131, T132)) → U9_AA(T126, T127, X269, qs53_in_aa(T131, X267))
U8_AA(T126, T127, X269, part20_out_aaaa(T126, T127, T131, T132)) → QS53_IN_AA(T131, X267)
U8_AA(T126, T127, X269, part20_out_aaaa(T126, T127, T131, T132)) → U10_AA(T126, T127, X269, T132, qs53_in_aa(T131, T138))
U10_AA(T126, T127, X269, T132, qs53_out_aa(T131, T138)) → U11_AA(T126, T127, X269, qs53_in_aa(T132, X268))
U10_AA(T126, T127, X269, T132, qs53_out_aa(T131, T138)) → QS53_IN_AA(T132, X268)
U10_AA(T126, T127, X269, T132, qs53_out_aa(T131, T138)) → U12_AA(T126, T127, X269, T138, qs53_in_aa(T132, T143))
U12_AA(T126, T127, X269, T138, qs53_out_aa(T132, T143)) → U13_AA(T126, T127, X269, app65_in_aaaa(T138, T126, T143, X269))
U12_AA(T126, T127, X269, T138, qs53_out_aa(T132, T143)) → APP65_IN_AAAA(T138, T126, T143, X269)
APP65_IN_AAAA(.(T166, T167), T168, T169, .(T166, X348)) → U14_AAAA(T166, T167, T168, T169, X348, app65_in_aaaa(T167, T168, T169, X348))
APP65_IN_AAAA(.(T166, T167), T168, T169, .(T166, X348)) → APP65_IN_AAAA(T167, T168, T169, X348)
U27_AA(T234, T235, T236, T9, part20_out_gaaa(T234, T236, T244, T245)) → U29_AA(T234, T235, T236, T9, T245, qs53_in_aa(T244, T251))
U29_AA(T234, T235, T236, T9, T245, qs53_out_aa(T244, T251)) → U30_AA(T234, T235, T236, T9, p52_in_aaaga(.(T235, T245), X10, T251, T234, T9))
U29_AA(T234, T235, T236, T9, T245, qs53_out_aa(T244, T251)) → P52_IN_AAAGA(.(T235, T245), X10, T251, T234, T9)
P52_IN_AAAGA(T45, X10, T110, T22, T9) → U16_AAAGA(T45, X10, T110, T22, T9, qs53_in_aa(T45, X10))
P52_IN_AAAGA(T45, X10, T110, T22, T9) → QS53_IN_AA(T45, X10)
P52_IN_AAAGA(T45, T115, T110, T22, T9) → U17_AAAGA(T45, T115, T110, T22, T9, qs53_in_aa(T45, T115))
U17_AAAGA(T45, T115, T110, T22, T9, qs53_out_aa(T45, T115)) → U18_AAAGA(T45, T115, T110, T22, T9, app54_in_agaa(T110, T22, T115, T9))
U17_AAAGA(T45, T115, T110, T22, T9, qs53_out_aa(T45, T115)) → APP54_IN_AGAA(T110, T22, T115, T9)
APP54_IN_AGAA(.(T205, T206), T207, T208, .(T205, T210)) → U15_AGAA(T205, T206, T207, T208, T210, app54_in_agaa(T206, T207, T208, T210))
APP54_IN_AGAA(.(T205, T206), T207, T208, .(T205, T210)) → APP54_IN_AGAA(T206, T207, T208, T210)
QS1_IN_AA(.(T260, []), T9) → U31_AA(T260, T9, qs99_in_a(X9))
QS1_IN_AA(.(T260, []), T9) → QS99_IN_A(X9)
QS1_IN_AA(.(T260, []), T9) → U32_AA(T260, T9, qs99_in_a(T263))
U32_AA(T260, T9, qs99_out_a(T263)) → U33_AA(T260, T9, qs99_in_a(X10))
U32_AA(T260, T9, qs99_out_a(T263)) → QS99_IN_A(X10)
U32_AA(T260, T9, qs99_out_a(T263)) → U34_AA(T260, T9, T263, qs99_in_a(T268))
U34_AA(T260, T9, T263, qs99_out_a(T268)) → U35_AA(T260, T9, app54_in_gaga(T263, T260, T268, T9))
U34_AA(T260, T9, T263, qs99_out_a(T268)) → APP54_IN_GAGA(T263, T260, T268, T9)
APP54_IN_GAGA(.(T205, T206), T207, T208, .(T205, T210)) → U15_GAGA(T205, T206, T207, T208, T210, app54_in_gaga(T206, T207, T208, T210))
APP54_IN_GAGA(.(T205, T206), T207, T208, .(T205, T210)) → APP54_IN_GAGA(T206, T207, T208, T210)
U21_AA(T22, T23, T24, T9, part20_out_gaaa(T22, T24, T44, T45)) → U23_AA(T22, T23, T24, T9, T45, qs1_in_aa(.(T23, T44), T110))
U23_AA(T22, T23, T24, T9, T45, qs1_out_aa(.(T23, T44), T110)) → U24_AA(T22, T23, T24, T9, p52_in_aaaga(T45, X10, T110, T22, T9))
U23_AA(T22, T23, T24, T9, T45, qs1_out_aa(.(T23, T44), T110)) → P52_IN_AAAGA(T45, X10, T110, T22, T9)
U21_GA(T22, T23, T24, T9, part20_out_ggaa(T22, T24, T44, T45)) → U23_GA(T22, T23, T24, T9, T45, qs1_in_aa(.(T23, T44), T110))
U23_GA(T22, T23, T24, T9, T45, qs1_out_aa(.(T23, T44), T110)) → U24_GA(T22, T23, T24, T9, p52_in_aaaga(T45, X10, T110, T22, T9))
U23_GA(T22, T23, T24, T9, T45, qs1_out_aa(.(T23, T44), T110)) → P52_IN_AAAGA(T45, X10, T110, T22, T9)
QS1_IN_GA(.(T234, .(T235, T236)), T9) → U25_GA(T234, T235, T236, T9, le33_in_gg(T234, T235))
QS1_IN_GA(.(T234, .(T235, T236)), T9) → LE33_IN_GG(T234, T235)
U25_GA(T234, T235, T236, T9, le33_out_gg(T234, T235)) → U26_GA(T234, T235, T236, T9, part20_in_ggaa(T234, T236, X431, X432))
U25_GA(T234, T235, T236, T9, le33_out_gg(T234, T235)) → PART20_IN_GGAA(T234, T236, X431, X432)
U25_GA(T234, T235, T236, T9, le33_out_gg(T234, T235)) → U27_GA(T234, T235, T236, T9, part20_in_ggaa(T234, T236, T244, T245))
U27_GA(T234, T235, T236, T9, part20_out_ggaa(T234, T236, T244, T245)) → U28_GA(T234, T235, T236, T9, qs53_in_aa(T244, X9))
U27_GA(T234, T235, T236, T9, part20_out_ggaa(T234, T236, T244, T245)) → QS53_IN_AA(T244, X9)
U27_GA(T234, T235, T236, T9, part20_out_ggaa(T234, T236, T244, T245)) → U29_GA(T234, T235, T236, T9, T245, qs53_in_aa(T244, T251))
U29_GA(T234, T235, T236, T9, T245, qs53_out_aa(T244, T251)) → U30_GA(T234, T235, T236, T9, p52_in_aaaga(.(T235, T245), X10, T251, T234, T9))
U29_GA(T234, T235, T236, T9, T245, qs53_out_aa(T244, T251)) → P52_IN_AAAGA(.(T235, T245), X10, T251, T234, T9)
QS1_IN_GA(.(T260, []), T9) → U31_GA(T260, T9, qs99_in_a(X9))
QS1_IN_GA(.(T260, []), T9) → QS99_IN_A(X9)
QS1_IN_GA(.(T260, []), T9) → U32_GA(T260, T9, qs99_in_a(T263))
U32_GA(T260, T9, qs99_out_a(T263)) → U33_GA(T260, T9, qs99_in_a(X10))
U32_GA(T260, T9, qs99_out_a(T263)) → QS99_IN_A(X10)
U32_GA(T260, T9, qs99_out_a(T263)) → U34_GA(T260, T9, T263, qs99_in_a(T268))
U34_GA(T260, T9, T263, qs99_out_a(T268)) → U35_GA(T260, T9, app54_in_ggga(T263, T260, T268, T9))
U34_GA(T260, T9, T263, qs99_out_a(T268)) → APP54_IN_GGGA(T263, T260, T268, T9)
APP54_IN_GGGA(.(T205, T206), T207, T208, .(T205, T210)) → U15_GGGA(T205, T206, T207, T208, T210, app54_in_ggga(T206, T207, T208, T210))
APP54_IN_GGGA(.(T205, T206), T207, T208, .(T205, T210)) → APP54_IN_GGGA(T206, T207, T208, T210)
qs1_in_ga(.(T22, .(T23, T24)), T9) → U19_ga(T22, T23, T24, T9, gt10_in_gg(T22, T23))
gt10_in_gg(s(T37), s(T38)) → U1_gg(T37, T38, gt10_in_gg(T37, T38))
gt10_in_gg(s(0), 0) → gt10_out_gg(s(0), 0)
U1_gg(T37, T38, gt10_out_gg(T37, T38)) → gt10_out_gg(s(T37), s(T38))
U19_ga(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U19_ga(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → U20_ga(T22, T23, T24, T9, part20_in_ggaa(T22, T24, X47, X48))
part20_in_ggaa(T61, .(T62, T63), .(T62, X119), X120) → U2_ggaa(T61, T62, T63, X119, X120, gt10_in_gg(T61, T62))
U2_ggaa(T61, T62, T63, X119, X120, gt10_out_gg(T61, T62)) → part20_out_ggaa(T61, .(T62, T63), .(T62, X119), X120)
U2_ggaa(T61, T62, T63, X119, X120, gt10_out_gg(T61, T62)) → U3_ggaa(T61, T62, T63, X119, X120, part20_in_ggaa(T61, T63, X119, X120))
part20_in_ggaa(T83, .(T84, T85), X170, .(T84, X171)) → U4_ggaa(T83, T84, T85, X170, X171, le33_in_gg(T83, T84))
le33_in_gg(s(T98), s(T99)) → U6_gg(T98, T99, le33_in_gg(T98, T99))
le33_in_gg(0, s(0)) → le33_out_gg(0, s(0))
le33_in_gg(0, 0) → le33_out_gg(0, 0)
U6_gg(T98, T99, le33_out_gg(T98, T99)) → le33_out_gg(s(T98), s(T99))
U4_ggaa(T83, T84, T85, X170, X171, le33_out_gg(T83, T84)) → part20_out_ggaa(T83, .(T84, T85), X170, .(T84, X171))
U4_ggaa(T83, T84, T85, X170, X171, le33_out_gg(T83, T84)) → U5_ggaa(T83, T84, T85, X170, X171, part20_in_ggaa(T83, T85, X170, X171))
part20_in_ggaa(T107, [], [], []) → part20_out_ggaa(T107, [], [], [])
U5_ggaa(T83, T84, T85, X170, X171, part20_out_ggaa(T83, T85, X170, X171)) → part20_out_ggaa(T83, .(T84, T85), X170, .(T84, X171))
U3_ggaa(T61, T62, T63, X119, X120, part20_out_ggaa(T61, T63, X119, X120)) → part20_out_ggaa(T61, .(T62, T63), .(T62, X119), X120)
U20_ga(T22, T23, T24, T9, part20_out_ggaa(T22, T24, X47, X48)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U19_ga(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → U21_ga(T22, T23, T24, T9, part20_in_ggaa(T22, T24, T44, T45))
U21_ga(T22, T23, T24, T9, part20_out_ggaa(T22, T24, T44, T45)) → U22_ga(T22, T23, T24, T9, qs1_in_aa(.(T23, T44), X9))
qs1_in_aa(.(T22, .(T23, T24)), T9) → U19_aa(T22, T23, T24, T9, gt10_in_aa(T22, T23))
gt10_in_aa(s(T37), s(T38)) → U1_aa(T37, T38, gt10_in_aa(T37, T38))
gt10_in_aa(s(0), 0) → gt10_out_aa(s(0), 0)
U1_aa(T37, T38, gt10_out_aa(T37, T38)) → gt10_out_aa(s(T37), s(T38))
U19_aa(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U19_aa(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → U20_aa(T22, T23, T24, T9, part20_in_gaaa(T22, T24, X47, X48))
part20_in_gaaa(T61, .(T62, T63), .(T62, X119), X120) → U2_gaaa(T61, T62, T63, X119, X120, gt10_in_ga(T61, T62))
gt10_in_ga(s(T37), s(T38)) → U1_ga(T37, T38, gt10_in_ga(T37, T38))
gt10_in_ga(s(0), 0) → gt10_out_ga(s(0), 0)
U1_ga(T37, T38, gt10_out_ga(T37, T38)) → gt10_out_ga(s(T37), s(T38))
U2_gaaa(T61, T62, T63, X119, X120, gt10_out_ga(T61, T62)) → part20_out_gaaa(T61, .(T62, T63), .(T62, X119), X120)
U2_gaaa(T61, T62, T63, X119, X120, gt10_out_ga(T61, T62)) → U3_gaaa(T61, T62, T63, X119, X120, part20_in_gaaa(T61, T63, X119, X120))
part20_in_gaaa(T83, .(T84, T85), X170, .(T84, X171)) → U4_gaaa(T83, T84, T85, X170, X171, le33_in_ga(T83, T84))
le33_in_ga(s(T98), s(T99)) → U6_ga(T98, T99, le33_in_ga(T98, T99))
le33_in_ga(0, s(0)) → le33_out_ga(0, s(0))
le33_in_ga(0, 0) → le33_out_ga(0, 0)
U6_ga(T98, T99, le33_out_ga(T98, T99)) → le33_out_ga(s(T98), s(T99))
U4_gaaa(T83, T84, T85, X170, X171, le33_out_ga(T83, T84)) → part20_out_gaaa(T83, .(T84, T85), X170, .(T84, X171))
U4_gaaa(T83, T84, T85, X170, X171, le33_out_ga(T83, T84)) → U5_gaaa(T83, T84, T85, X170, X171, part20_in_gaaa(T83, T85, X170, X171))
part20_in_gaaa(T107, [], [], []) → part20_out_gaaa(T107, [], [], [])
U5_gaaa(T83, T84, T85, X170, X171, part20_out_gaaa(T83, T85, X170, X171)) → part20_out_gaaa(T83, .(T84, T85), X170, .(T84, X171))
U3_gaaa(T61, T62, T63, X119, X120, part20_out_gaaa(T61, T63, X119, X120)) → part20_out_gaaa(T61, .(T62, T63), .(T62, X119), X120)
U20_aa(T22, T23, T24, T9, part20_out_gaaa(T22, T24, X47, X48)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U19_aa(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → U21_aa(T22, T23, T24, T9, part20_in_gaaa(T22, T24, T44, T45))
U21_aa(T22, T23, T24, T9, part20_out_gaaa(T22, T24, T44, T45)) → U22_aa(T22, T23, T24, T9, qs1_in_aa(.(T23, T44), X9))
qs1_in_aa(.(T234, .(T235, T236)), T9) → U25_aa(T234, T235, T236, T9, le33_in_aa(T234, T235))
le33_in_aa(s(T98), s(T99)) → U6_aa(T98, T99, le33_in_aa(T98, T99))
le33_in_aa(0, s(0)) → le33_out_aa(0, s(0))
le33_in_aa(0, 0) → le33_out_aa(0, 0)
U6_aa(T98, T99, le33_out_aa(T98, T99)) → le33_out_aa(s(T98), s(T99))
U25_aa(T234, T235, T236, T9, le33_out_aa(T234, T235)) → qs1_out_aa(.(T234, .(T235, T236)), T9)
U25_aa(T234, T235, T236, T9, le33_out_aa(T234, T235)) → U26_aa(T234, T235, T236, T9, part20_in_gaaa(T234, T236, X431, X432))
U26_aa(T234, T235, T236, T9, part20_out_gaaa(T234, T236, X431, X432)) → qs1_out_aa(.(T234, .(T235, T236)), T9)
U25_aa(T234, T235, T236, T9, le33_out_aa(T234, T235)) → U27_aa(T234, T235, T236, T9, part20_in_gaaa(T234, T236, T244, T245))
U27_aa(T234, T235, T236, T9, part20_out_gaaa(T234, T236, T244, T245)) → U28_aa(T234, T235, T236, T9, qs53_in_aa(T244, X9))
qs53_in_aa(.(T126, T127), X269) → U7_aa(T126, T127, X269, part20_in_aaaa(T126, T127, X265, X266))
part20_in_aaaa(T61, .(T62, T63), .(T62, X119), X120) → U2_aaaa(T61, T62, T63, X119, X120, gt10_in_aa(T61, T62))
U2_aaaa(T61, T62, T63, X119, X120, gt10_out_aa(T61, T62)) → part20_out_aaaa(T61, .(T62, T63), .(T62, X119), X120)
U2_aaaa(T61, T62, T63, X119, X120, gt10_out_aa(T61, T62)) → U3_aaaa(T61, T62, T63, X119, X120, part20_in_gaaa(T61, T63, X119, X120))
U3_aaaa(T61, T62, T63, X119, X120, part20_out_gaaa(T61, T63, X119, X120)) → part20_out_aaaa(T61, .(T62, T63), .(T62, X119), X120)
part20_in_aaaa(T83, .(T84, T85), X170, .(T84, X171)) → U4_aaaa(T83, T84, T85, X170, X171, le33_in_aa(T83, T84))
U4_aaaa(T83, T84, T85, X170, X171, le33_out_aa(T83, T84)) → part20_out_aaaa(T83, .(T84, T85), X170, .(T84, X171))
U4_aaaa(T83, T84, T85, X170, X171, le33_out_aa(T83, T84)) → U5_aaaa(T83, T84, T85, X170, X171, part20_in_gaaa(T83, T85, X170, X171))
U5_aaaa(T83, T84, T85, X170, X171, part20_out_gaaa(T83, T85, X170, X171)) → part20_out_aaaa(T83, .(T84, T85), X170, .(T84, X171))
part20_in_aaaa(T107, [], [], []) → part20_out_aaaa(T107, [], [], [])
U7_aa(T126, T127, X269, part20_out_aaaa(T126, T127, X265, X266)) → qs53_out_aa(.(T126, T127), X269)
qs53_in_aa(.(T126, T127), X269) → U8_aa(T126, T127, X269, part20_in_aaaa(T126, T127, T131, T132))
U8_aa(T126, T127, X269, part20_out_aaaa(T126, T127, T131, T132)) → U9_aa(T126, T127, X269, qs53_in_aa(T131, X267))
qs53_in_aa([], []) → qs53_out_aa([], [])
U9_aa(T126, T127, X269, qs53_out_aa(T131, X267)) → qs53_out_aa(.(T126, T127), X269)
U8_aa(T126, T127, X269, part20_out_aaaa(T126, T127, T131, T132)) → U10_aa(T126, T127, X269, T132, qs53_in_aa(T131, T138))
U10_aa(T126, T127, X269, T132, qs53_out_aa(T131, T138)) → U11_aa(T126, T127, X269, qs53_in_aa(T132, X268))
U11_aa(T126, T127, X269, qs53_out_aa(T132, X268)) → qs53_out_aa(.(T126, T127), X269)
U10_aa(T126, T127, X269, T132, qs53_out_aa(T131, T138)) → U12_aa(T126, T127, X269, T138, qs53_in_aa(T132, T143))
U12_aa(T126, T127, X269, T138, qs53_out_aa(T132, T143)) → U13_aa(T126, T127, X269, app65_in_aaaa(T138, T126, T143, X269))
app65_in_aaaa(.(T166, T167), T168, T169, .(T166, X348)) → U14_aaaa(T166, T167, T168, T169, X348, app65_in_aaaa(T167, T168, T169, X348))
app65_in_aaaa([], T178, T179, .(T178, T179)) → app65_out_aaaa([], T178, T179, .(T178, T179))
U14_aaaa(T166, T167, T168, T169, X348, app65_out_aaaa(T167, T168, T169, X348)) → app65_out_aaaa(.(T166, T167), T168, T169, .(T166, X348))
U13_aa(T126, T127, X269, app65_out_aaaa(T138, T126, T143, X269)) → qs53_out_aa(.(T126, T127), X269)
U28_aa(T234, T235, T236, T9, qs53_out_aa(T244, X9)) → qs1_out_aa(.(T234, .(T235, T236)), T9)
U27_aa(T234, T235, T236, T9, part20_out_gaaa(T234, T236, T244, T245)) → U29_aa(T234, T235, T236, T9, T245, qs53_in_aa(T244, T251))
U29_aa(T234, T235, T236, T9, T245, qs53_out_aa(T244, T251)) → U30_aa(T234, T235, T236, T9, p52_in_aaaga(.(T235, T245), X10, T251, T234, T9))
p52_in_aaaga(T45, X10, T110, T22, T9) → U16_aaaga(T45, X10, T110, T22, T9, qs53_in_aa(T45, X10))
U16_aaaga(T45, X10, T110, T22, T9, qs53_out_aa(T45, X10)) → p52_out_aaaga(T45, X10, T110, T22, T9)
p52_in_aaaga(T45, T115, T110, T22, T9) → U17_aaaga(T45, T115, T110, T22, T9, qs53_in_aa(T45, T115))
U17_aaaga(T45, T115, T110, T22, T9, qs53_out_aa(T45, T115)) → U18_aaaga(T45, T115, T110, T22, T9, app54_in_agaa(T110, T22, T115, T9))
app54_in_agaa(.(T205, T206), T207, T208, .(T205, T210)) → U15_agaa(T205, T206, T207, T208, T210, app54_in_agaa(T206, T207, T208, T210))
app54_in_agaa([], T220, T221, .(T220, T221)) → app54_out_agaa([], T220, T221, .(T220, T221))
U15_agaa(T205, T206, T207, T208, T210, app54_out_agaa(T206, T207, T208, T210)) → app54_out_agaa(.(T205, T206), T207, T208, .(T205, T210))
U18_aaaga(T45, T115, T110, T22, T9, app54_out_agaa(T110, T22, T115, T9)) → p52_out_aaaga(T45, T115, T110, T22, T9)
U30_aa(T234, T235, T236, T9, p52_out_aaaga(.(T235, T245), X10, T251, T234, T9)) → qs1_out_aa(.(T234, .(T235, T236)), T9)
qs1_in_aa(.(T260, []), T9) → U31_aa(T260, T9, qs99_in_a(X9))
qs99_in_a([]) → qs99_out_a([])
U31_aa(T260, T9, qs99_out_a(X9)) → qs1_out_aa(.(T260, []), T9)
qs1_in_aa(.(T260, []), T9) → U32_aa(T260, T9, qs99_in_a(T263))
U32_aa(T260, T9, qs99_out_a(T263)) → U33_aa(T260, T9, qs99_in_a(X10))
U33_aa(T260, T9, qs99_out_a(X10)) → qs1_out_aa(.(T260, []), T9)
U32_aa(T260, T9, qs99_out_a(T263)) → U34_aa(T260, T9, T263, qs99_in_a(T268))
U34_aa(T260, T9, T263, qs99_out_a(T268)) → U35_aa(T260, T9, app54_in_gaga(T263, T260, T268, T9))
app54_in_gaga(.(T205, T206), T207, T208, .(T205, T210)) → U15_gaga(T205, T206, T207, T208, T210, app54_in_gaga(T206, T207, T208, T210))
app54_in_gaga([], T220, T221, .(T220, T221)) → app54_out_gaga([], T220, T221, .(T220, T221))
U15_gaga(T205, T206, T207, T208, T210, app54_out_gaga(T206, T207, T208, T210)) → app54_out_gaga(.(T205, T206), T207, T208, .(T205, T210))
U35_aa(T260, T9, app54_out_gaga(T263, T260, T268, T9)) → qs1_out_aa(.(T260, []), T9)
qs1_in_aa([], []) → qs1_out_aa([], [])
U22_aa(T22, T23, T24, T9, qs1_out_aa(.(T23, T44), X9)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U21_aa(T22, T23, T24, T9, part20_out_gaaa(T22, T24, T44, T45)) → U23_aa(T22, T23, T24, T9, T45, qs1_in_aa(.(T23, T44), T110))
U23_aa(T22, T23, T24, T9, T45, qs1_out_aa(.(T23, T44), T110)) → U24_aa(T22, T23, T24, T9, p52_in_aaaga(T45, X10, T110, T22, T9))
U24_aa(T22, T23, T24, T9, p52_out_aaaga(T45, X10, T110, T22, T9)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U22_ga(T22, T23, T24, T9, qs1_out_aa(.(T23, T44), X9)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U21_ga(T22, T23, T24, T9, part20_out_ggaa(T22, T24, T44, T45)) → U23_ga(T22, T23, T24, T9, T45, qs1_in_aa(.(T23, T44), T110))
U23_ga(T22, T23, T24, T9, T45, qs1_out_aa(.(T23, T44), T110)) → U24_ga(T22, T23, T24, T9, p52_in_aaaga(T45, X10, T110, T22, T9))
U24_ga(T22, T23, T24, T9, p52_out_aaaga(T45, X10, T110, T22, T9)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
qs1_in_ga(.(T234, .(T235, T236)), T9) → U25_ga(T234, T235, T236, T9, le33_in_gg(T234, T235))
U25_ga(T234, T235, T236, T9, le33_out_gg(T234, T235)) → qs1_out_ga(.(T234, .(T235, T236)), T9)
U25_ga(T234, T235, T236, T9, le33_out_gg(T234, T235)) → U26_ga(T234, T235, T236, T9, part20_in_ggaa(T234, T236, X431, X432))
U26_ga(T234, T235, T236, T9, part20_out_ggaa(T234, T236, X431, X432)) → qs1_out_ga(.(T234, .(T235, T236)), T9)
U25_ga(T234, T235, T236, T9, le33_out_gg(T234, T235)) → U27_ga(T234, T235, T236, T9, part20_in_ggaa(T234, T236, T244, T245))
U27_ga(T234, T235, T236, T9, part20_out_ggaa(T234, T236, T244, T245)) → U28_ga(T234, T235, T236, T9, qs53_in_aa(T244, X9))
U28_ga(T234, T235, T236, T9, qs53_out_aa(T244, X9)) → qs1_out_ga(.(T234, .(T235, T236)), T9)
U27_ga(T234, T235, T236, T9, part20_out_ggaa(T234, T236, T244, T245)) → U29_ga(T234, T235, T236, T9, T245, qs53_in_aa(T244, T251))
U29_ga(T234, T235, T236, T9, T245, qs53_out_aa(T244, T251)) → U30_ga(T234, T235, T236, T9, p52_in_aaaga(.(T235, T245), X10, T251, T234, T9))
U30_ga(T234, T235, T236, T9, p52_out_aaaga(.(T235, T245), X10, T251, T234, T9)) → qs1_out_ga(.(T234, .(T235, T236)), T9)
qs1_in_ga(.(T260, []), T9) → U31_ga(T260, T9, qs99_in_a(X9))
U31_ga(T260, T9, qs99_out_a(X9)) → qs1_out_ga(.(T260, []), T9)
qs1_in_ga(.(T260, []), T9) → U32_ga(T260, T9, qs99_in_a(T263))
U32_ga(T260, T9, qs99_out_a(T263)) → U33_ga(T260, T9, qs99_in_a(X10))
U33_ga(T260, T9, qs99_out_a(X10)) → qs1_out_ga(.(T260, []), T9)
U32_ga(T260, T9, qs99_out_a(T263)) → U34_ga(T260, T9, T263, qs99_in_a(T268))
U34_ga(T260, T9, T263, qs99_out_a(T268)) → U35_ga(T260, T9, app54_in_ggga(T263, T260, T268, T9))
app54_in_ggga(.(T205, T206), T207, T208, .(T205, T210)) → U15_ggga(T205, T206, T207, T208, T210, app54_in_ggga(T206, T207, T208, T210))
app54_in_ggga([], T220, T221, .(T220, T221)) → app54_out_ggga([], T220, T221, .(T220, T221))
U15_ggga(T205, T206, T207, T208, T210, app54_out_ggga(T206, T207, T208, T210)) → app54_out_ggga(.(T205, T206), T207, T208, .(T205, T210))
U35_ga(T260, T9, app54_out_ggga(T263, T260, T268, T9)) → qs1_out_ga(.(T260, []), T9)
qs1_in_ga([], []) → qs1_out_ga([], [])
QS1_IN_GA(.(T22, .(T23, T24)), T9) → U19_GA(T22, T23, T24, T9, gt10_in_gg(T22, T23))
QS1_IN_GA(.(T22, .(T23, T24)), T9) → GT10_IN_GG(T22, T23)
GT10_IN_GG(s(T37), s(T38)) → U1_GG(T37, T38, gt10_in_gg(T37, T38))
GT10_IN_GG(s(T37), s(T38)) → GT10_IN_GG(T37, T38)
U19_GA(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → U20_GA(T22, T23, T24, T9, part20_in_ggaa(T22, T24, X47, X48))
U19_GA(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → PART20_IN_GGAA(T22, T24, X47, X48)
PART20_IN_GGAA(T61, .(T62, T63), .(T62, X119), X120) → U2_GGAA(T61, T62, T63, X119, X120, gt10_in_gg(T61, T62))
PART20_IN_GGAA(T61, .(T62, T63), .(T62, X119), X120) → GT10_IN_GG(T61, T62)
U2_GGAA(T61, T62, T63, X119, X120, gt10_out_gg(T61, T62)) → U3_GGAA(T61, T62, T63, X119, X120, part20_in_ggaa(T61, T63, X119, X120))
U2_GGAA(T61, T62, T63, X119, X120, gt10_out_gg(T61, T62)) → PART20_IN_GGAA(T61, T63, X119, X120)
PART20_IN_GGAA(T83, .(T84, T85), X170, .(T84, X171)) → U4_GGAA(T83, T84, T85, X170, X171, le33_in_gg(T83, T84))
PART20_IN_GGAA(T83, .(T84, T85), X170, .(T84, X171)) → LE33_IN_GG(T83, T84)
LE33_IN_GG(s(T98), s(T99)) → U6_GG(T98, T99, le33_in_gg(T98, T99))
LE33_IN_GG(s(T98), s(T99)) → LE33_IN_GG(T98, T99)
U4_GGAA(T83, T84, T85, X170, X171, le33_out_gg(T83, T84)) → U5_GGAA(T83, T84, T85, X170, X171, part20_in_ggaa(T83, T85, X170, X171))
U4_GGAA(T83, T84, T85, X170, X171, le33_out_gg(T83, T84)) → PART20_IN_GGAA(T83, T85, X170, X171)
U19_GA(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → U21_GA(T22, T23, T24, T9, part20_in_ggaa(T22, T24, T44, T45))
U21_GA(T22, T23, T24, T9, part20_out_ggaa(T22, T24, T44, T45)) → U22_GA(T22, T23, T24, T9, qs1_in_aa(.(T23, T44), X9))
U21_GA(T22, T23, T24, T9, part20_out_ggaa(T22, T24, T44, T45)) → QS1_IN_AA(.(T23, T44), X9)
QS1_IN_AA(.(T22, .(T23, T24)), T9) → U19_AA(T22, T23, T24, T9, gt10_in_aa(T22, T23))
QS1_IN_AA(.(T22, .(T23, T24)), T9) → GT10_IN_AA(T22, T23)
GT10_IN_AA(s(T37), s(T38)) → U1_AA(T37, T38, gt10_in_aa(T37, T38))
GT10_IN_AA(s(T37), s(T38)) → GT10_IN_AA(T37, T38)
U19_AA(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → U20_AA(T22, T23, T24, T9, part20_in_gaaa(T22, T24, X47, X48))
U19_AA(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → PART20_IN_GAAA(T22, T24, X47, X48)
PART20_IN_GAAA(T61, .(T62, T63), .(T62, X119), X120) → U2_GAAA(T61, T62, T63, X119, X120, gt10_in_ga(T61, T62))
PART20_IN_GAAA(T61, .(T62, T63), .(T62, X119), X120) → GT10_IN_GA(T61, T62)
GT10_IN_GA(s(T37), s(T38)) → U1_GA(T37, T38, gt10_in_ga(T37, T38))
GT10_IN_GA(s(T37), s(T38)) → GT10_IN_GA(T37, T38)
U2_GAAA(T61, T62, T63, X119, X120, gt10_out_ga(T61, T62)) → U3_GAAA(T61, T62, T63, X119, X120, part20_in_gaaa(T61, T63, X119, X120))
U2_GAAA(T61, T62, T63, X119, X120, gt10_out_ga(T61, T62)) → PART20_IN_GAAA(T61, T63, X119, X120)
PART20_IN_GAAA(T83, .(T84, T85), X170, .(T84, X171)) → U4_GAAA(T83, T84, T85, X170, X171, le33_in_ga(T83, T84))
PART20_IN_GAAA(T83, .(T84, T85), X170, .(T84, X171)) → LE33_IN_GA(T83, T84)
LE33_IN_GA(s(T98), s(T99)) → U6_GA(T98, T99, le33_in_ga(T98, T99))
LE33_IN_GA(s(T98), s(T99)) → LE33_IN_GA(T98, T99)
U4_GAAA(T83, T84, T85, X170, X171, le33_out_ga(T83, T84)) → U5_GAAA(T83, T84, T85, X170, X171, part20_in_gaaa(T83, T85, X170, X171))
U4_GAAA(T83, T84, T85, X170, X171, le33_out_ga(T83, T84)) → PART20_IN_GAAA(T83, T85, X170, X171)
U19_AA(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → U21_AA(T22, T23, T24, T9, part20_in_gaaa(T22, T24, T44, T45))
U21_AA(T22, T23, T24, T9, part20_out_gaaa(T22, T24, T44, T45)) → U22_AA(T22, T23, T24, T9, qs1_in_aa(.(T23, T44), X9))
U21_AA(T22, T23, T24, T9, part20_out_gaaa(T22, T24, T44, T45)) → QS1_IN_AA(.(T23, T44), X9)
QS1_IN_AA(.(T234, .(T235, T236)), T9) → U25_AA(T234, T235, T236, T9, le33_in_aa(T234, T235))
QS1_IN_AA(.(T234, .(T235, T236)), T9) → LE33_IN_AA(T234, T235)
LE33_IN_AA(s(T98), s(T99)) → U6_AA(T98, T99, le33_in_aa(T98, T99))
LE33_IN_AA(s(T98), s(T99)) → LE33_IN_AA(T98, T99)
U25_AA(T234, T235, T236, T9, le33_out_aa(T234, T235)) → U26_AA(T234, T235, T236, T9, part20_in_gaaa(T234, T236, X431, X432))
U25_AA(T234, T235, T236, T9, le33_out_aa(T234, T235)) → PART20_IN_GAAA(T234, T236, X431, X432)
U25_AA(T234, T235, T236, T9, le33_out_aa(T234, T235)) → U27_AA(T234, T235, T236, T9, part20_in_gaaa(T234, T236, T244, T245))
U27_AA(T234, T235, T236, T9, part20_out_gaaa(T234, T236, T244, T245)) → U28_AA(T234, T235, T236, T9, qs53_in_aa(T244, X9))
U27_AA(T234, T235, T236, T9, part20_out_gaaa(T234, T236, T244, T245)) → QS53_IN_AA(T244, X9)
QS53_IN_AA(.(T126, T127), X269) → U7_AA(T126, T127, X269, part20_in_aaaa(T126, T127, X265, X266))
QS53_IN_AA(.(T126, T127), X269) → PART20_IN_AAAA(T126, T127, X265, X266)
PART20_IN_AAAA(T61, .(T62, T63), .(T62, X119), X120) → U2_AAAA(T61, T62, T63, X119, X120, gt10_in_aa(T61, T62))
PART20_IN_AAAA(T61, .(T62, T63), .(T62, X119), X120) → GT10_IN_AA(T61, T62)
U2_AAAA(T61, T62, T63, X119, X120, gt10_out_aa(T61, T62)) → U3_AAAA(T61, T62, T63, X119, X120, part20_in_gaaa(T61, T63, X119, X120))
U2_AAAA(T61, T62, T63, X119, X120, gt10_out_aa(T61, T62)) → PART20_IN_GAAA(T61, T63, X119, X120)
PART20_IN_AAAA(T83, .(T84, T85), X170, .(T84, X171)) → U4_AAAA(T83, T84, T85, X170, X171, le33_in_aa(T83, T84))
PART20_IN_AAAA(T83, .(T84, T85), X170, .(T84, X171)) → LE33_IN_AA(T83, T84)
U4_AAAA(T83, T84, T85, X170, X171, le33_out_aa(T83, T84)) → U5_AAAA(T83, T84, T85, X170, X171, part20_in_gaaa(T83, T85, X170, X171))
U4_AAAA(T83, T84, T85, X170, X171, le33_out_aa(T83, T84)) → PART20_IN_GAAA(T83, T85, X170, X171)
QS53_IN_AA(.(T126, T127), X269) → U8_AA(T126, T127, X269, part20_in_aaaa(T126, T127, T131, T132))
U8_AA(T126, T127, X269, part20_out_aaaa(T126, T127, T131, T132)) → U9_AA(T126, T127, X269, qs53_in_aa(T131, X267))
U8_AA(T126, T127, X269, part20_out_aaaa(T126, T127, T131, T132)) → QS53_IN_AA(T131, X267)
U8_AA(T126, T127, X269, part20_out_aaaa(T126, T127, T131, T132)) → U10_AA(T126, T127, X269, T132, qs53_in_aa(T131, T138))
U10_AA(T126, T127, X269, T132, qs53_out_aa(T131, T138)) → U11_AA(T126, T127, X269, qs53_in_aa(T132, X268))
U10_AA(T126, T127, X269, T132, qs53_out_aa(T131, T138)) → QS53_IN_AA(T132, X268)
U10_AA(T126, T127, X269, T132, qs53_out_aa(T131, T138)) → U12_AA(T126, T127, X269, T138, qs53_in_aa(T132, T143))
U12_AA(T126, T127, X269, T138, qs53_out_aa(T132, T143)) → U13_AA(T126, T127, X269, app65_in_aaaa(T138, T126, T143, X269))
U12_AA(T126, T127, X269, T138, qs53_out_aa(T132, T143)) → APP65_IN_AAAA(T138, T126, T143, X269)
APP65_IN_AAAA(.(T166, T167), T168, T169, .(T166, X348)) → U14_AAAA(T166, T167, T168, T169, X348, app65_in_aaaa(T167, T168, T169, X348))
APP65_IN_AAAA(.(T166, T167), T168, T169, .(T166, X348)) → APP65_IN_AAAA(T167, T168, T169, X348)
U27_AA(T234, T235, T236, T9, part20_out_gaaa(T234, T236, T244, T245)) → U29_AA(T234, T235, T236, T9, T245, qs53_in_aa(T244, T251))
U29_AA(T234, T235, T236, T9, T245, qs53_out_aa(T244, T251)) → U30_AA(T234, T235, T236, T9, p52_in_aaaga(.(T235, T245), X10, T251, T234, T9))
U29_AA(T234, T235, T236, T9, T245, qs53_out_aa(T244, T251)) → P52_IN_AAAGA(.(T235, T245), X10, T251, T234, T9)
P52_IN_AAAGA(T45, X10, T110, T22, T9) → U16_AAAGA(T45, X10, T110, T22, T9, qs53_in_aa(T45, X10))
P52_IN_AAAGA(T45, X10, T110, T22, T9) → QS53_IN_AA(T45, X10)
P52_IN_AAAGA(T45, T115, T110, T22, T9) → U17_AAAGA(T45, T115, T110, T22, T9, qs53_in_aa(T45, T115))
U17_AAAGA(T45, T115, T110, T22, T9, qs53_out_aa(T45, T115)) → U18_AAAGA(T45, T115, T110, T22, T9, app54_in_agaa(T110, T22, T115, T9))
U17_AAAGA(T45, T115, T110, T22, T9, qs53_out_aa(T45, T115)) → APP54_IN_AGAA(T110, T22, T115, T9)
APP54_IN_AGAA(.(T205, T206), T207, T208, .(T205, T210)) → U15_AGAA(T205, T206, T207, T208, T210, app54_in_agaa(T206, T207, T208, T210))
APP54_IN_AGAA(.(T205, T206), T207, T208, .(T205, T210)) → APP54_IN_AGAA(T206, T207, T208, T210)
QS1_IN_AA(.(T260, []), T9) → U31_AA(T260, T9, qs99_in_a(X9))
QS1_IN_AA(.(T260, []), T9) → QS99_IN_A(X9)
QS1_IN_AA(.(T260, []), T9) → U32_AA(T260, T9, qs99_in_a(T263))
U32_AA(T260, T9, qs99_out_a(T263)) → U33_AA(T260, T9, qs99_in_a(X10))
U32_AA(T260, T9, qs99_out_a(T263)) → QS99_IN_A(X10)
U32_AA(T260, T9, qs99_out_a(T263)) → U34_AA(T260, T9, T263, qs99_in_a(T268))
U34_AA(T260, T9, T263, qs99_out_a(T268)) → U35_AA(T260, T9, app54_in_gaga(T263, T260, T268, T9))
U34_AA(T260, T9, T263, qs99_out_a(T268)) → APP54_IN_GAGA(T263, T260, T268, T9)
APP54_IN_GAGA(.(T205, T206), T207, T208, .(T205, T210)) → U15_GAGA(T205, T206, T207, T208, T210, app54_in_gaga(T206, T207, T208, T210))
APP54_IN_GAGA(.(T205, T206), T207, T208, .(T205, T210)) → APP54_IN_GAGA(T206, T207, T208, T210)
U21_AA(T22, T23, T24, T9, part20_out_gaaa(T22, T24, T44, T45)) → U23_AA(T22, T23, T24, T9, T45, qs1_in_aa(.(T23, T44), T110))
U23_AA(T22, T23, T24, T9, T45, qs1_out_aa(.(T23, T44), T110)) → U24_AA(T22, T23, T24, T9, p52_in_aaaga(T45, X10, T110, T22, T9))
U23_AA(T22, T23, T24, T9, T45, qs1_out_aa(.(T23, T44), T110)) → P52_IN_AAAGA(T45, X10, T110, T22, T9)
U21_GA(T22, T23, T24, T9, part20_out_ggaa(T22, T24, T44, T45)) → U23_GA(T22, T23, T24, T9, T45, qs1_in_aa(.(T23, T44), T110))
U23_GA(T22, T23, T24, T9, T45, qs1_out_aa(.(T23, T44), T110)) → U24_GA(T22, T23, T24, T9, p52_in_aaaga(T45, X10, T110, T22, T9))
U23_GA(T22, T23, T24, T9, T45, qs1_out_aa(.(T23, T44), T110)) → P52_IN_AAAGA(T45, X10, T110, T22, T9)
QS1_IN_GA(.(T234, .(T235, T236)), T9) → U25_GA(T234, T235, T236, T9, le33_in_gg(T234, T235))
QS1_IN_GA(.(T234, .(T235, T236)), T9) → LE33_IN_GG(T234, T235)
U25_GA(T234, T235, T236, T9, le33_out_gg(T234, T235)) → U26_GA(T234, T235, T236, T9, part20_in_ggaa(T234, T236, X431, X432))
U25_GA(T234, T235, T236, T9, le33_out_gg(T234, T235)) → PART20_IN_GGAA(T234, T236, X431, X432)
U25_GA(T234, T235, T236, T9, le33_out_gg(T234, T235)) → U27_GA(T234, T235, T236, T9, part20_in_ggaa(T234, T236, T244, T245))
U27_GA(T234, T235, T236, T9, part20_out_ggaa(T234, T236, T244, T245)) → U28_GA(T234, T235, T236, T9, qs53_in_aa(T244, X9))
U27_GA(T234, T235, T236, T9, part20_out_ggaa(T234, T236, T244, T245)) → QS53_IN_AA(T244, X9)
U27_GA(T234, T235, T236, T9, part20_out_ggaa(T234, T236, T244, T245)) → U29_GA(T234, T235, T236, T9, T245, qs53_in_aa(T244, T251))
U29_GA(T234, T235, T236, T9, T245, qs53_out_aa(T244, T251)) → U30_GA(T234, T235, T236, T9, p52_in_aaaga(.(T235, T245), X10, T251, T234, T9))
U29_GA(T234, T235, T236, T9, T245, qs53_out_aa(T244, T251)) → P52_IN_AAAGA(.(T235, T245), X10, T251, T234, T9)
QS1_IN_GA(.(T260, []), T9) → U31_GA(T260, T9, qs99_in_a(X9))
QS1_IN_GA(.(T260, []), T9) → QS99_IN_A(X9)
QS1_IN_GA(.(T260, []), T9) → U32_GA(T260, T9, qs99_in_a(T263))
U32_GA(T260, T9, qs99_out_a(T263)) → U33_GA(T260, T9, qs99_in_a(X10))
U32_GA(T260, T9, qs99_out_a(T263)) → QS99_IN_A(X10)
U32_GA(T260, T9, qs99_out_a(T263)) → U34_GA(T260, T9, T263, qs99_in_a(T268))
U34_GA(T260, T9, T263, qs99_out_a(T268)) → U35_GA(T260, T9, app54_in_ggga(T263, T260, T268, T9))
U34_GA(T260, T9, T263, qs99_out_a(T268)) → APP54_IN_GGGA(T263, T260, T268, T9)
APP54_IN_GGGA(.(T205, T206), T207, T208, .(T205, T210)) → U15_GGGA(T205, T206, T207, T208, T210, app54_in_ggga(T206, T207, T208, T210))
APP54_IN_GGGA(.(T205, T206), T207, T208, .(T205, T210)) → APP54_IN_GGGA(T206, T207, T208, T210)
qs1_in_ga(.(T22, .(T23, T24)), T9) → U19_ga(T22, T23, T24, T9, gt10_in_gg(T22, T23))
gt10_in_gg(s(T37), s(T38)) → U1_gg(T37, T38, gt10_in_gg(T37, T38))
gt10_in_gg(s(0), 0) → gt10_out_gg(s(0), 0)
U1_gg(T37, T38, gt10_out_gg(T37, T38)) → gt10_out_gg(s(T37), s(T38))
U19_ga(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U19_ga(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → U20_ga(T22, T23, T24, T9, part20_in_ggaa(T22, T24, X47, X48))
part20_in_ggaa(T61, .(T62, T63), .(T62, X119), X120) → U2_ggaa(T61, T62, T63, X119, X120, gt10_in_gg(T61, T62))
U2_ggaa(T61, T62, T63, X119, X120, gt10_out_gg(T61, T62)) → part20_out_ggaa(T61, .(T62, T63), .(T62, X119), X120)
U2_ggaa(T61, T62, T63, X119, X120, gt10_out_gg(T61, T62)) → U3_ggaa(T61, T62, T63, X119, X120, part20_in_ggaa(T61, T63, X119, X120))
part20_in_ggaa(T83, .(T84, T85), X170, .(T84, X171)) → U4_ggaa(T83, T84, T85, X170, X171, le33_in_gg(T83, T84))
le33_in_gg(s(T98), s(T99)) → U6_gg(T98, T99, le33_in_gg(T98, T99))
le33_in_gg(0, s(0)) → le33_out_gg(0, s(0))
le33_in_gg(0, 0) → le33_out_gg(0, 0)
U6_gg(T98, T99, le33_out_gg(T98, T99)) → le33_out_gg(s(T98), s(T99))
U4_ggaa(T83, T84, T85, X170, X171, le33_out_gg(T83, T84)) → part20_out_ggaa(T83, .(T84, T85), X170, .(T84, X171))
U4_ggaa(T83, T84, T85, X170, X171, le33_out_gg(T83, T84)) → U5_ggaa(T83, T84, T85, X170, X171, part20_in_ggaa(T83, T85, X170, X171))
part20_in_ggaa(T107, [], [], []) → part20_out_ggaa(T107, [], [], [])
U5_ggaa(T83, T84, T85, X170, X171, part20_out_ggaa(T83, T85, X170, X171)) → part20_out_ggaa(T83, .(T84, T85), X170, .(T84, X171))
U3_ggaa(T61, T62, T63, X119, X120, part20_out_ggaa(T61, T63, X119, X120)) → part20_out_ggaa(T61, .(T62, T63), .(T62, X119), X120)
U20_ga(T22, T23, T24, T9, part20_out_ggaa(T22, T24, X47, X48)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U19_ga(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → U21_ga(T22, T23, T24, T9, part20_in_ggaa(T22, T24, T44, T45))
U21_ga(T22, T23, T24, T9, part20_out_ggaa(T22, T24, T44, T45)) → U22_ga(T22, T23, T24, T9, qs1_in_aa(.(T23, T44), X9))
qs1_in_aa(.(T22, .(T23, T24)), T9) → U19_aa(T22, T23, T24, T9, gt10_in_aa(T22, T23))
gt10_in_aa(s(T37), s(T38)) → U1_aa(T37, T38, gt10_in_aa(T37, T38))
gt10_in_aa(s(0), 0) → gt10_out_aa(s(0), 0)
U1_aa(T37, T38, gt10_out_aa(T37, T38)) → gt10_out_aa(s(T37), s(T38))
U19_aa(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U19_aa(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → U20_aa(T22, T23, T24, T9, part20_in_gaaa(T22, T24, X47, X48))
part20_in_gaaa(T61, .(T62, T63), .(T62, X119), X120) → U2_gaaa(T61, T62, T63, X119, X120, gt10_in_ga(T61, T62))
gt10_in_ga(s(T37), s(T38)) → U1_ga(T37, T38, gt10_in_ga(T37, T38))
gt10_in_ga(s(0), 0) → gt10_out_ga(s(0), 0)
U1_ga(T37, T38, gt10_out_ga(T37, T38)) → gt10_out_ga(s(T37), s(T38))
U2_gaaa(T61, T62, T63, X119, X120, gt10_out_ga(T61, T62)) → part20_out_gaaa(T61, .(T62, T63), .(T62, X119), X120)
U2_gaaa(T61, T62, T63, X119, X120, gt10_out_ga(T61, T62)) → U3_gaaa(T61, T62, T63, X119, X120, part20_in_gaaa(T61, T63, X119, X120))
part20_in_gaaa(T83, .(T84, T85), X170, .(T84, X171)) → U4_gaaa(T83, T84, T85, X170, X171, le33_in_ga(T83, T84))
le33_in_ga(s(T98), s(T99)) → U6_ga(T98, T99, le33_in_ga(T98, T99))
le33_in_ga(0, s(0)) → le33_out_ga(0, s(0))
le33_in_ga(0, 0) → le33_out_ga(0, 0)
U6_ga(T98, T99, le33_out_ga(T98, T99)) → le33_out_ga(s(T98), s(T99))
U4_gaaa(T83, T84, T85, X170, X171, le33_out_ga(T83, T84)) → part20_out_gaaa(T83, .(T84, T85), X170, .(T84, X171))
U4_gaaa(T83, T84, T85, X170, X171, le33_out_ga(T83, T84)) → U5_gaaa(T83, T84, T85, X170, X171, part20_in_gaaa(T83, T85, X170, X171))
part20_in_gaaa(T107, [], [], []) → part20_out_gaaa(T107, [], [], [])
U5_gaaa(T83, T84, T85, X170, X171, part20_out_gaaa(T83, T85, X170, X171)) → part20_out_gaaa(T83, .(T84, T85), X170, .(T84, X171))
U3_gaaa(T61, T62, T63, X119, X120, part20_out_gaaa(T61, T63, X119, X120)) → part20_out_gaaa(T61, .(T62, T63), .(T62, X119), X120)
U20_aa(T22, T23, T24, T9, part20_out_gaaa(T22, T24, X47, X48)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U19_aa(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → U21_aa(T22, T23, T24, T9, part20_in_gaaa(T22, T24, T44, T45))
U21_aa(T22, T23, T24, T9, part20_out_gaaa(T22, T24, T44, T45)) → U22_aa(T22, T23, T24, T9, qs1_in_aa(.(T23, T44), X9))
qs1_in_aa(.(T234, .(T235, T236)), T9) → U25_aa(T234, T235, T236, T9, le33_in_aa(T234, T235))
le33_in_aa(s(T98), s(T99)) → U6_aa(T98, T99, le33_in_aa(T98, T99))
le33_in_aa(0, s(0)) → le33_out_aa(0, s(0))
le33_in_aa(0, 0) → le33_out_aa(0, 0)
U6_aa(T98, T99, le33_out_aa(T98, T99)) → le33_out_aa(s(T98), s(T99))
U25_aa(T234, T235, T236, T9, le33_out_aa(T234, T235)) → qs1_out_aa(.(T234, .(T235, T236)), T9)
U25_aa(T234, T235, T236, T9, le33_out_aa(T234, T235)) → U26_aa(T234, T235, T236, T9, part20_in_gaaa(T234, T236, X431, X432))
U26_aa(T234, T235, T236, T9, part20_out_gaaa(T234, T236, X431, X432)) → qs1_out_aa(.(T234, .(T235, T236)), T9)
U25_aa(T234, T235, T236, T9, le33_out_aa(T234, T235)) → U27_aa(T234, T235, T236, T9, part20_in_gaaa(T234, T236, T244, T245))
U27_aa(T234, T235, T236, T9, part20_out_gaaa(T234, T236, T244, T245)) → U28_aa(T234, T235, T236, T9, qs53_in_aa(T244, X9))
qs53_in_aa(.(T126, T127), X269) → U7_aa(T126, T127, X269, part20_in_aaaa(T126, T127, X265, X266))
part20_in_aaaa(T61, .(T62, T63), .(T62, X119), X120) → U2_aaaa(T61, T62, T63, X119, X120, gt10_in_aa(T61, T62))
U2_aaaa(T61, T62, T63, X119, X120, gt10_out_aa(T61, T62)) → part20_out_aaaa(T61, .(T62, T63), .(T62, X119), X120)
U2_aaaa(T61, T62, T63, X119, X120, gt10_out_aa(T61, T62)) → U3_aaaa(T61, T62, T63, X119, X120, part20_in_gaaa(T61, T63, X119, X120))
U3_aaaa(T61, T62, T63, X119, X120, part20_out_gaaa(T61, T63, X119, X120)) → part20_out_aaaa(T61, .(T62, T63), .(T62, X119), X120)
part20_in_aaaa(T83, .(T84, T85), X170, .(T84, X171)) → U4_aaaa(T83, T84, T85, X170, X171, le33_in_aa(T83, T84))
U4_aaaa(T83, T84, T85, X170, X171, le33_out_aa(T83, T84)) → part20_out_aaaa(T83, .(T84, T85), X170, .(T84, X171))
U4_aaaa(T83, T84, T85, X170, X171, le33_out_aa(T83, T84)) → U5_aaaa(T83, T84, T85, X170, X171, part20_in_gaaa(T83, T85, X170, X171))
U5_aaaa(T83, T84, T85, X170, X171, part20_out_gaaa(T83, T85, X170, X171)) → part20_out_aaaa(T83, .(T84, T85), X170, .(T84, X171))
part20_in_aaaa(T107, [], [], []) → part20_out_aaaa(T107, [], [], [])
U7_aa(T126, T127, X269, part20_out_aaaa(T126, T127, X265, X266)) → qs53_out_aa(.(T126, T127), X269)
qs53_in_aa(.(T126, T127), X269) → U8_aa(T126, T127, X269, part20_in_aaaa(T126, T127, T131, T132))
U8_aa(T126, T127, X269, part20_out_aaaa(T126, T127, T131, T132)) → U9_aa(T126, T127, X269, qs53_in_aa(T131, X267))
qs53_in_aa([], []) → qs53_out_aa([], [])
U9_aa(T126, T127, X269, qs53_out_aa(T131, X267)) → qs53_out_aa(.(T126, T127), X269)
U8_aa(T126, T127, X269, part20_out_aaaa(T126, T127, T131, T132)) → U10_aa(T126, T127, X269, T132, qs53_in_aa(T131, T138))
U10_aa(T126, T127, X269, T132, qs53_out_aa(T131, T138)) → U11_aa(T126, T127, X269, qs53_in_aa(T132, X268))
U11_aa(T126, T127, X269, qs53_out_aa(T132, X268)) → qs53_out_aa(.(T126, T127), X269)
U10_aa(T126, T127, X269, T132, qs53_out_aa(T131, T138)) → U12_aa(T126, T127, X269, T138, qs53_in_aa(T132, T143))
U12_aa(T126, T127, X269, T138, qs53_out_aa(T132, T143)) → U13_aa(T126, T127, X269, app65_in_aaaa(T138, T126, T143, X269))
app65_in_aaaa(.(T166, T167), T168, T169, .(T166, X348)) → U14_aaaa(T166, T167, T168, T169, X348, app65_in_aaaa(T167, T168, T169, X348))
app65_in_aaaa([], T178, T179, .(T178, T179)) → app65_out_aaaa([], T178, T179, .(T178, T179))
U14_aaaa(T166, T167, T168, T169, X348, app65_out_aaaa(T167, T168, T169, X348)) → app65_out_aaaa(.(T166, T167), T168, T169, .(T166, X348))
U13_aa(T126, T127, X269, app65_out_aaaa(T138, T126, T143, X269)) → qs53_out_aa(.(T126, T127), X269)
U28_aa(T234, T235, T236, T9, qs53_out_aa(T244, X9)) → qs1_out_aa(.(T234, .(T235, T236)), T9)
U27_aa(T234, T235, T236, T9, part20_out_gaaa(T234, T236, T244, T245)) → U29_aa(T234, T235, T236, T9, T245, qs53_in_aa(T244, T251))
U29_aa(T234, T235, T236, T9, T245, qs53_out_aa(T244, T251)) → U30_aa(T234, T235, T236, T9, p52_in_aaaga(.(T235, T245), X10, T251, T234, T9))
p52_in_aaaga(T45, X10, T110, T22, T9) → U16_aaaga(T45, X10, T110, T22, T9, qs53_in_aa(T45, X10))
U16_aaaga(T45, X10, T110, T22, T9, qs53_out_aa(T45, X10)) → p52_out_aaaga(T45, X10, T110, T22, T9)
p52_in_aaaga(T45, T115, T110, T22, T9) → U17_aaaga(T45, T115, T110, T22, T9, qs53_in_aa(T45, T115))
U17_aaaga(T45, T115, T110, T22, T9, qs53_out_aa(T45, T115)) → U18_aaaga(T45, T115, T110, T22, T9, app54_in_agaa(T110, T22, T115, T9))
app54_in_agaa(.(T205, T206), T207, T208, .(T205, T210)) → U15_agaa(T205, T206, T207, T208, T210, app54_in_agaa(T206, T207, T208, T210))
app54_in_agaa([], T220, T221, .(T220, T221)) → app54_out_agaa([], T220, T221, .(T220, T221))
U15_agaa(T205, T206, T207, T208, T210, app54_out_agaa(T206, T207, T208, T210)) → app54_out_agaa(.(T205, T206), T207, T208, .(T205, T210))
U18_aaaga(T45, T115, T110, T22, T9, app54_out_agaa(T110, T22, T115, T9)) → p52_out_aaaga(T45, T115, T110, T22, T9)
U30_aa(T234, T235, T236, T9, p52_out_aaaga(.(T235, T245), X10, T251, T234, T9)) → qs1_out_aa(.(T234, .(T235, T236)), T9)
qs1_in_aa(.(T260, []), T9) → U31_aa(T260, T9, qs99_in_a(X9))
qs99_in_a([]) → qs99_out_a([])
U31_aa(T260, T9, qs99_out_a(X9)) → qs1_out_aa(.(T260, []), T9)
qs1_in_aa(.(T260, []), T9) → U32_aa(T260, T9, qs99_in_a(T263))
U32_aa(T260, T9, qs99_out_a(T263)) → U33_aa(T260, T9, qs99_in_a(X10))
U33_aa(T260, T9, qs99_out_a(X10)) → qs1_out_aa(.(T260, []), T9)
U32_aa(T260, T9, qs99_out_a(T263)) → U34_aa(T260, T9, T263, qs99_in_a(T268))
U34_aa(T260, T9, T263, qs99_out_a(T268)) → U35_aa(T260, T9, app54_in_gaga(T263, T260, T268, T9))
app54_in_gaga(.(T205, T206), T207, T208, .(T205, T210)) → U15_gaga(T205, T206, T207, T208, T210, app54_in_gaga(T206, T207, T208, T210))
app54_in_gaga([], T220, T221, .(T220, T221)) → app54_out_gaga([], T220, T221, .(T220, T221))
U15_gaga(T205, T206, T207, T208, T210, app54_out_gaga(T206, T207, T208, T210)) → app54_out_gaga(.(T205, T206), T207, T208, .(T205, T210))
U35_aa(T260, T9, app54_out_gaga(T263, T260, T268, T9)) → qs1_out_aa(.(T260, []), T9)
qs1_in_aa([], []) → qs1_out_aa([], [])
U22_aa(T22, T23, T24, T9, qs1_out_aa(.(T23, T44), X9)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U21_aa(T22, T23, T24, T9, part20_out_gaaa(T22, T24, T44, T45)) → U23_aa(T22, T23, T24, T9, T45, qs1_in_aa(.(T23, T44), T110))
U23_aa(T22, T23, T24, T9, T45, qs1_out_aa(.(T23, T44), T110)) → U24_aa(T22, T23, T24, T9, p52_in_aaaga(T45, X10, T110, T22, T9))
U24_aa(T22, T23, T24, T9, p52_out_aaaga(T45, X10, T110, T22, T9)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U22_ga(T22, T23, T24, T9, qs1_out_aa(.(T23, T44), X9)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U21_ga(T22, T23, T24, T9, part20_out_ggaa(T22, T24, T44, T45)) → U23_ga(T22, T23, T24, T9, T45, qs1_in_aa(.(T23, T44), T110))
U23_ga(T22, T23, T24, T9, T45, qs1_out_aa(.(T23, T44), T110)) → U24_ga(T22, T23, T24, T9, p52_in_aaaga(T45, X10, T110, T22, T9))
U24_ga(T22, T23, T24, T9, p52_out_aaaga(T45, X10, T110, T22, T9)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
qs1_in_ga(.(T234, .(T235, T236)), T9) → U25_ga(T234, T235, T236, T9, le33_in_gg(T234, T235))
U25_ga(T234, T235, T236, T9, le33_out_gg(T234, T235)) → qs1_out_ga(.(T234, .(T235, T236)), T9)
U25_ga(T234, T235, T236, T9, le33_out_gg(T234, T235)) → U26_ga(T234, T235, T236, T9, part20_in_ggaa(T234, T236, X431, X432))
U26_ga(T234, T235, T236, T9, part20_out_ggaa(T234, T236, X431, X432)) → qs1_out_ga(.(T234, .(T235, T236)), T9)
U25_ga(T234, T235, T236, T9, le33_out_gg(T234, T235)) → U27_ga(T234, T235, T236, T9, part20_in_ggaa(T234, T236, T244, T245))
U27_ga(T234, T235, T236, T9, part20_out_ggaa(T234, T236, T244, T245)) → U28_ga(T234, T235, T236, T9, qs53_in_aa(T244, X9))
U28_ga(T234, T235, T236, T9, qs53_out_aa(T244, X9)) → qs1_out_ga(.(T234, .(T235, T236)), T9)
U27_ga(T234, T235, T236, T9, part20_out_ggaa(T234, T236, T244, T245)) → U29_ga(T234, T235, T236, T9, T245, qs53_in_aa(T244, T251))
U29_ga(T234, T235, T236, T9, T245, qs53_out_aa(T244, T251)) → U30_ga(T234, T235, T236, T9, p52_in_aaaga(.(T235, T245), X10, T251, T234, T9))
U30_ga(T234, T235, T236, T9, p52_out_aaaga(.(T235, T245), X10, T251, T234, T9)) → qs1_out_ga(.(T234, .(T235, T236)), T9)
qs1_in_ga(.(T260, []), T9) → U31_ga(T260, T9, qs99_in_a(X9))
U31_ga(T260, T9, qs99_out_a(X9)) → qs1_out_ga(.(T260, []), T9)
qs1_in_ga(.(T260, []), T9) → U32_ga(T260, T9, qs99_in_a(T263))
U32_ga(T260, T9, qs99_out_a(T263)) → U33_ga(T260, T9, qs99_in_a(X10))
U33_ga(T260, T9, qs99_out_a(X10)) → qs1_out_ga(.(T260, []), T9)
U32_ga(T260, T9, qs99_out_a(T263)) → U34_ga(T260, T9, T263, qs99_in_a(T268))
U34_ga(T260, T9, T263, qs99_out_a(T268)) → U35_ga(T260, T9, app54_in_ggga(T263, T260, T268, T9))
app54_in_ggga(.(T205, T206), T207, T208, .(T205, T210)) → U15_ggga(T205, T206, T207, T208, T210, app54_in_ggga(T206, T207, T208, T210))
app54_in_ggga([], T220, T221, .(T220, T221)) → app54_out_ggga([], T220, T221, .(T220, T221))
U15_ggga(T205, T206, T207, T208, T210, app54_out_ggga(T206, T207, T208, T210)) → app54_out_ggga(.(T205, T206), T207, T208, .(T205, T210))
U35_ga(T260, T9, app54_out_ggga(T263, T260, T268, T9)) → qs1_out_ga(.(T260, []), T9)
qs1_in_ga([], []) → qs1_out_ga([], [])
APP54_IN_GGGA(.(T205, T206), T207, T208, .(T205, T210)) → APP54_IN_GGGA(T206, T207, T208, T210)
qs1_in_ga(.(T22, .(T23, T24)), T9) → U19_ga(T22, T23, T24, T9, gt10_in_gg(T22, T23))
gt10_in_gg(s(T37), s(T38)) → U1_gg(T37, T38, gt10_in_gg(T37, T38))
gt10_in_gg(s(0), 0) → gt10_out_gg(s(0), 0)
U1_gg(T37, T38, gt10_out_gg(T37, T38)) → gt10_out_gg(s(T37), s(T38))
U19_ga(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U19_ga(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → U20_ga(T22, T23, T24, T9, part20_in_ggaa(T22, T24, X47, X48))
part20_in_ggaa(T61, .(T62, T63), .(T62, X119), X120) → U2_ggaa(T61, T62, T63, X119, X120, gt10_in_gg(T61, T62))
U2_ggaa(T61, T62, T63, X119, X120, gt10_out_gg(T61, T62)) → part20_out_ggaa(T61, .(T62, T63), .(T62, X119), X120)
U2_ggaa(T61, T62, T63, X119, X120, gt10_out_gg(T61, T62)) → U3_ggaa(T61, T62, T63, X119, X120, part20_in_ggaa(T61, T63, X119, X120))
part20_in_ggaa(T83, .(T84, T85), X170, .(T84, X171)) → U4_ggaa(T83, T84, T85, X170, X171, le33_in_gg(T83, T84))
le33_in_gg(s(T98), s(T99)) → U6_gg(T98, T99, le33_in_gg(T98, T99))
le33_in_gg(0, s(0)) → le33_out_gg(0, s(0))
le33_in_gg(0, 0) → le33_out_gg(0, 0)
U6_gg(T98, T99, le33_out_gg(T98, T99)) → le33_out_gg(s(T98), s(T99))
U4_ggaa(T83, T84, T85, X170, X171, le33_out_gg(T83, T84)) → part20_out_ggaa(T83, .(T84, T85), X170, .(T84, X171))
U4_ggaa(T83, T84, T85, X170, X171, le33_out_gg(T83, T84)) → U5_ggaa(T83, T84, T85, X170, X171, part20_in_ggaa(T83, T85, X170, X171))
part20_in_ggaa(T107, [], [], []) → part20_out_ggaa(T107, [], [], [])
U5_ggaa(T83, T84, T85, X170, X171, part20_out_ggaa(T83, T85, X170, X171)) → part20_out_ggaa(T83, .(T84, T85), X170, .(T84, X171))
U3_ggaa(T61, T62, T63, X119, X120, part20_out_ggaa(T61, T63, X119, X120)) → part20_out_ggaa(T61, .(T62, T63), .(T62, X119), X120)
U20_ga(T22, T23, T24, T9, part20_out_ggaa(T22, T24, X47, X48)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U19_ga(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → U21_ga(T22, T23, T24, T9, part20_in_ggaa(T22, T24, T44, T45))
U21_ga(T22, T23, T24, T9, part20_out_ggaa(T22, T24, T44, T45)) → U22_ga(T22, T23, T24, T9, qs1_in_aa(.(T23, T44), X9))
qs1_in_aa(.(T22, .(T23, T24)), T9) → U19_aa(T22, T23, T24, T9, gt10_in_aa(T22, T23))
gt10_in_aa(s(T37), s(T38)) → U1_aa(T37, T38, gt10_in_aa(T37, T38))
gt10_in_aa(s(0), 0) → gt10_out_aa(s(0), 0)
U1_aa(T37, T38, gt10_out_aa(T37, T38)) → gt10_out_aa(s(T37), s(T38))
U19_aa(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U19_aa(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → U20_aa(T22, T23, T24, T9, part20_in_gaaa(T22, T24, X47, X48))
part20_in_gaaa(T61, .(T62, T63), .(T62, X119), X120) → U2_gaaa(T61, T62, T63, X119, X120, gt10_in_ga(T61, T62))
gt10_in_ga(s(T37), s(T38)) → U1_ga(T37, T38, gt10_in_ga(T37, T38))
gt10_in_ga(s(0), 0) → gt10_out_ga(s(0), 0)
U1_ga(T37, T38, gt10_out_ga(T37, T38)) → gt10_out_ga(s(T37), s(T38))
U2_gaaa(T61, T62, T63, X119, X120, gt10_out_ga(T61, T62)) → part20_out_gaaa(T61, .(T62, T63), .(T62, X119), X120)
U2_gaaa(T61, T62, T63, X119, X120, gt10_out_ga(T61, T62)) → U3_gaaa(T61, T62, T63, X119, X120, part20_in_gaaa(T61, T63, X119, X120))
part20_in_gaaa(T83, .(T84, T85), X170, .(T84, X171)) → U4_gaaa(T83, T84, T85, X170, X171, le33_in_ga(T83, T84))
le33_in_ga(s(T98), s(T99)) → U6_ga(T98, T99, le33_in_ga(T98, T99))
le33_in_ga(0, s(0)) → le33_out_ga(0, s(0))
le33_in_ga(0, 0) → le33_out_ga(0, 0)
U6_ga(T98, T99, le33_out_ga(T98, T99)) → le33_out_ga(s(T98), s(T99))
U4_gaaa(T83, T84, T85, X170, X171, le33_out_ga(T83, T84)) → part20_out_gaaa(T83, .(T84, T85), X170, .(T84, X171))
U4_gaaa(T83, T84, T85, X170, X171, le33_out_ga(T83, T84)) → U5_gaaa(T83, T84, T85, X170, X171, part20_in_gaaa(T83, T85, X170, X171))
part20_in_gaaa(T107, [], [], []) → part20_out_gaaa(T107, [], [], [])
U5_gaaa(T83, T84, T85, X170, X171, part20_out_gaaa(T83, T85, X170, X171)) → part20_out_gaaa(T83, .(T84, T85), X170, .(T84, X171))
U3_gaaa(T61, T62, T63, X119, X120, part20_out_gaaa(T61, T63, X119, X120)) → part20_out_gaaa(T61, .(T62, T63), .(T62, X119), X120)
U20_aa(T22, T23, T24, T9, part20_out_gaaa(T22, T24, X47, X48)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U19_aa(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → U21_aa(T22, T23, T24, T9, part20_in_gaaa(T22, T24, T44, T45))
U21_aa(T22, T23, T24, T9, part20_out_gaaa(T22, T24, T44, T45)) → U22_aa(T22, T23, T24, T9, qs1_in_aa(.(T23, T44), X9))
qs1_in_aa(.(T234, .(T235, T236)), T9) → U25_aa(T234, T235, T236, T9, le33_in_aa(T234, T235))
le33_in_aa(s(T98), s(T99)) → U6_aa(T98, T99, le33_in_aa(T98, T99))
le33_in_aa(0, s(0)) → le33_out_aa(0, s(0))
le33_in_aa(0, 0) → le33_out_aa(0, 0)
U6_aa(T98, T99, le33_out_aa(T98, T99)) → le33_out_aa(s(T98), s(T99))
U25_aa(T234, T235, T236, T9, le33_out_aa(T234, T235)) → qs1_out_aa(.(T234, .(T235, T236)), T9)
U25_aa(T234, T235, T236, T9, le33_out_aa(T234, T235)) → U26_aa(T234, T235, T236, T9, part20_in_gaaa(T234, T236, X431, X432))
U26_aa(T234, T235, T236, T9, part20_out_gaaa(T234, T236, X431, X432)) → qs1_out_aa(.(T234, .(T235, T236)), T9)
U25_aa(T234, T235, T236, T9, le33_out_aa(T234, T235)) → U27_aa(T234, T235, T236, T9, part20_in_gaaa(T234, T236, T244, T245))
U27_aa(T234, T235, T236, T9, part20_out_gaaa(T234, T236, T244, T245)) → U28_aa(T234, T235, T236, T9, qs53_in_aa(T244, X9))
qs53_in_aa(.(T126, T127), X269) → U7_aa(T126, T127, X269, part20_in_aaaa(T126, T127, X265, X266))
part20_in_aaaa(T61, .(T62, T63), .(T62, X119), X120) → U2_aaaa(T61, T62, T63, X119, X120, gt10_in_aa(T61, T62))
U2_aaaa(T61, T62, T63, X119, X120, gt10_out_aa(T61, T62)) → part20_out_aaaa(T61, .(T62, T63), .(T62, X119), X120)
U2_aaaa(T61, T62, T63, X119, X120, gt10_out_aa(T61, T62)) → U3_aaaa(T61, T62, T63, X119, X120, part20_in_gaaa(T61, T63, X119, X120))
U3_aaaa(T61, T62, T63, X119, X120, part20_out_gaaa(T61, T63, X119, X120)) → part20_out_aaaa(T61, .(T62, T63), .(T62, X119), X120)
part20_in_aaaa(T83, .(T84, T85), X170, .(T84, X171)) → U4_aaaa(T83, T84, T85, X170, X171, le33_in_aa(T83, T84))
U4_aaaa(T83, T84, T85, X170, X171, le33_out_aa(T83, T84)) → part20_out_aaaa(T83, .(T84, T85), X170, .(T84, X171))
U4_aaaa(T83, T84, T85, X170, X171, le33_out_aa(T83, T84)) → U5_aaaa(T83, T84, T85, X170, X171, part20_in_gaaa(T83, T85, X170, X171))
U5_aaaa(T83, T84, T85, X170, X171, part20_out_gaaa(T83, T85, X170, X171)) → part20_out_aaaa(T83, .(T84, T85), X170, .(T84, X171))
part20_in_aaaa(T107, [], [], []) → part20_out_aaaa(T107, [], [], [])
U7_aa(T126, T127, X269, part20_out_aaaa(T126, T127, X265, X266)) → qs53_out_aa(.(T126, T127), X269)
qs53_in_aa(.(T126, T127), X269) → U8_aa(T126, T127, X269, part20_in_aaaa(T126, T127, T131, T132))
U8_aa(T126, T127, X269, part20_out_aaaa(T126, T127, T131, T132)) → U9_aa(T126, T127, X269, qs53_in_aa(T131, X267))
qs53_in_aa([], []) → qs53_out_aa([], [])
U9_aa(T126, T127, X269, qs53_out_aa(T131, X267)) → qs53_out_aa(.(T126, T127), X269)
U8_aa(T126, T127, X269, part20_out_aaaa(T126, T127, T131, T132)) → U10_aa(T126, T127, X269, T132, qs53_in_aa(T131, T138))
U10_aa(T126, T127, X269, T132, qs53_out_aa(T131, T138)) → U11_aa(T126, T127, X269, qs53_in_aa(T132, X268))
U11_aa(T126, T127, X269, qs53_out_aa(T132, X268)) → qs53_out_aa(.(T126, T127), X269)
U10_aa(T126, T127, X269, T132, qs53_out_aa(T131, T138)) → U12_aa(T126, T127, X269, T138, qs53_in_aa(T132, T143))
U12_aa(T126, T127, X269, T138, qs53_out_aa(T132, T143)) → U13_aa(T126, T127, X269, app65_in_aaaa(T138, T126, T143, X269))
app65_in_aaaa(.(T166, T167), T168, T169, .(T166, X348)) → U14_aaaa(T166, T167, T168, T169, X348, app65_in_aaaa(T167, T168, T169, X348))
app65_in_aaaa([], T178, T179, .(T178, T179)) → app65_out_aaaa([], T178, T179, .(T178, T179))
U14_aaaa(T166, T167, T168, T169, X348, app65_out_aaaa(T167, T168, T169, X348)) → app65_out_aaaa(.(T166, T167), T168, T169, .(T166, X348))
U13_aa(T126, T127, X269, app65_out_aaaa(T138, T126, T143, X269)) → qs53_out_aa(.(T126, T127), X269)
U28_aa(T234, T235, T236, T9, qs53_out_aa(T244, X9)) → qs1_out_aa(.(T234, .(T235, T236)), T9)
U27_aa(T234, T235, T236, T9, part20_out_gaaa(T234, T236, T244, T245)) → U29_aa(T234, T235, T236, T9, T245, qs53_in_aa(T244, T251))
U29_aa(T234, T235, T236, T9, T245, qs53_out_aa(T244, T251)) → U30_aa(T234, T235, T236, T9, p52_in_aaaga(.(T235, T245), X10, T251, T234, T9))
p52_in_aaaga(T45, X10, T110, T22, T9) → U16_aaaga(T45, X10, T110, T22, T9, qs53_in_aa(T45, X10))
U16_aaaga(T45, X10, T110, T22, T9, qs53_out_aa(T45, X10)) → p52_out_aaaga(T45, X10, T110, T22, T9)
p52_in_aaaga(T45, T115, T110, T22, T9) → U17_aaaga(T45, T115, T110, T22, T9, qs53_in_aa(T45, T115))
U17_aaaga(T45, T115, T110, T22, T9, qs53_out_aa(T45, T115)) → U18_aaaga(T45, T115, T110, T22, T9, app54_in_agaa(T110, T22, T115, T9))
app54_in_agaa(.(T205, T206), T207, T208, .(T205, T210)) → U15_agaa(T205, T206, T207, T208, T210, app54_in_agaa(T206, T207, T208, T210))
app54_in_agaa([], T220, T221, .(T220, T221)) → app54_out_agaa([], T220, T221, .(T220, T221))
U15_agaa(T205, T206, T207, T208, T210, app54_out_agaa(T206, T207, T208, T210)) → app54_out_agaa(.(T205, T206), T207, T208, .(T205, T210))
U18_aaaga(T45, T115, T110, T22, T9, app54_out_agaa(T110, T22, T115, T9)) → p52_out_aaaga(T45, T115, T110, T22, T9)
U30_aa(T234, T235, T236, T9, p52_out_aaaga(.(T235, T245), X10, T251, T234, T9)) → qs1_out_aa(.(T234, .(T235, T236)), T9)
qs1_in_aa(.(T260, []), T9) → U31_aa(T260, T9, qs99_in_a(X9))
qs99_in_a([]) → qs99_out_a([])
U31_aa(T260, T9, qs99_out_a(X9)) → qs1_out_aa(.(T260, []), T9)
qs1_in_aa(.(T260, []), T9) → U32_aa(T260, T9, qs99_in_a(T263))
U32_aa(T260, T9, qs99_out_a(T263)) → U33_aa(T260, T9, qs99_in_a(X10))
U33_aa(T260, T9, qs99_out_a(X10)) → qs1_out_aa(.(T260, []), T9)
U32_aa(T260, T9, qs99_out_a(T263)) → U34_aa(T260, T9, T263, qs99_in_a(T268))
U34_aa(T260, T9, T263, qs99_out_a(T268)) → U35_aa(T260, T9, app54_in_gaga(T263, T260, T268, T9))
app54_in_gaga(.(T205, T206), T207, T208, .(T205, T210)) → U15_gaga(T205, T206, T207, T208, T210, app54_in_gaga(T206, T207, T208, T210))
app54_in_gaga([], T220, T221, .(T220, T221)) → app54_out_gaga([], T220, T221, .(T220, T221))
U15_gaga(T205, T206, T207, T208, T210, app54_out_gaga(T206, T207, T208, T210)) → app54_out_gaga(.(T205, T206), T207, T208, .(T205, T210))
U35_aa(T260, T9, app54_out_gaga(T263, T260, T268, T9)) → qs1_out_aa(.(T260, []), T9)
qs1_in_aa([], []) → qs1_out_aa([], [])
U22_aa(T22, T23, T24, T9, qs1_out_aa(.(T23, T44), X9)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U21_aa(T22, T23, T24, T9, part20_out_gaaa(T22, T24, T44, T45)) → U23_aa(T22, T23, T24, T9, T45, qs1_in_aa(.(T23, T44), T110))
U23_aa(T22, T23, T24, T9, T45, qs1_out_aa(.(T23, T44), T110)) → U24_aa(T22, T23, T24, T9, p52_in_aaaga(T45, X10, T110, T22, T9))
U24_aa(T22, T23, T24, T9, p52_out_aaaga(T45, X10, T110, T22, T9)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U22_ga(T22, T23, T24, T9, qs1_out_aa(.(T23, T44), X9)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U21_ga(T22, T23, T24, T9, part20_out_ggaa(T22, T24, T44, T45)) → U23_ga(T22, T23, T24, T9, T45, qs1_in_aa(.(T23, T44), T110))
U23_ga(T22, T23, T24, T9, T45, qs1_out_aa(.(T23, T44), T110)) → U24_ga(T22, T23, T24, T9, p52_in_aaaga(T45, X10, T110, T22, T9))
U24_ga(T22, T23, T24, T9, p52_out_aaaga(T45, X10, T110, T22, T9)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
qs1_in_ga(.(T234, .(T235, T236)), T9) → U25_ga(T234, T235, T236, T9, le33_in_gg(T234, T235))
U25_ga(T234, T235, T236, T9, le33_out_gg(T234, T235)) → qs1_out_ga(.(T234, .(T235, T236)), T9)
U25_ga(T234, T235, T236, T9, le33_out_gg(T234, T235)) → U26_ga(T234, T235, T236, T9, part20_in_ggaa(T234, T236, X431, X432))
U26_ga(T234, T235, T236, T9, part20_out_ggaa(T234, T236, X431, X432)) → qs1_out_ga(.(T234, .(T235, T236)), T9)
U25_ga(T234, T235, T236, T9, le33_out_gg(T234, T235)) → U27_ga(T234, T235, T236, T9, part20_in_ggaa(T234, T236, T244, T245))
U27_ga(T234, T235, T236, T9, part20_out_ggaa(T234, T236, T244, T245)) → U28_ga(T234, T235, T236, T9, qs53_in_aa(T244, X9))
U28_ga(T234, T235, T236, T9, qs53_out_aa(T244, X9)) → qs1_out_ga(.(T234, .(T235, T236)), T9)
U27_ga(T234, T235, T236, T9, part20_out_ggaa(T234, T236, T244, T245)) → U29_ga(T234, T235, T236, T9, T245, qs53_in_aa(T244, T251))
U29_ga(T234, T235, T236, T9, T245, qs53_out_aa(T244, T251)) → U30_ga(T234, T235, T236, T9, p52_in_aaaga(.(T235, T245), X10, T251, T234, T9))
U30_ga(T234, T235, T236, T9, p52_out_aaaga(.(T235, T245), X10, T251, T234, T9)) → qs1_out_ga(.(T234, .(T235, T236)), T9)
qs1_in_ga(.(T260, []), T9) → U31_ga(T260, T9, qs99_in_a(X9))
U31_ga(T260, T9, qs99_out_a(X9)) → qs1_out_ga(.(T260, []), T9)
qs1_in_ga(.(T260, []), T9) → U32_ga(T260, T9, qs99_in_a(T263))
U32_ga(T260, T9, qs99_out_a(T263)) → U33_ga(T260, T9, qs99_in_a(X10))
U33_ga(T260, T9, qs99_out_a(X10)) → qs1_out_ga(.(T260, []), T9)
U32_ga(T260, T9, qs99_out_a(T263)) → U34_ga(T260, T9, T263, qs99_in_a(T268))
U34_ga(T260, T9, T263, qs99_out_a(T268)) → U35_ga(T260, T9, app54_in_ggga(T263, T260, T268, T9))
app54_in_ggga(.(T205, T206), T207, T208, .(T205, T210)) → U15_ggga(T205, T206, T207, T208, T210, app54_in_ggga(T206, T207, T208, T210))
app54_in_ggga([], T220, T221, .(T220, T221)) → app54_out_ggga([], T220, T221, .(T220, T221))
U15_ggga(T205, T206, T207, T208, T210, app54_out_ggga(T206, T207, T208, T210)) → app54_out_ggga(.(T205, T206), T207, T208, .(T205, T210))
U35_ga(T260, T9, app54_out_ggga(T263, T260, T268, T9)) → qs1_out_ga(.(T260, []), T9)
qs1_in_ga([], []) → qs1_out_ga([], [])
APP54_IN_GGGA(.(T205, T206), T207, T208, .(T205, T210)) → APP54_IN_GGGA(T206, T207, T208, T210)
APP54_IN_GGGA(.(T205, T206), T207, T208) → APP54_IN_GGGA(T206, T207, T208)
From the DPs we obtained the following set of size-change graphs:
APP54_IN_GAGA(.(T205, T206), T207, T208, .(T205, T210)) → APP54_IN_GAGA(T206, T207, T208, T210)
qs1_in_ga(.(T22, .(T23, T24)), T9) → U19_ga(T22, T23, T24, T9, gt10_in_gg(T22, T23))
gt10_in_gg(s(T37), s(T38)) → U1_gg(T37, T38, gt10_in_gg(T37, T38))
gt10_in_gg(s(0), 0) → gt10_out_gg(s(0), 0)
U1_gg(T37, T38, gt10_out_gg(T37, T38)) → gt10_out_gg(s(T37), s(T38))
U19_ga(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U19_ga(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → U20_ga(T22, T23, T24, T9, part20_in_ggaa(T22, T24, X47, X48))
part20_in_ggaa(T61, .(T62, T63), .(T62, X119), X120) → U2_ggaa(T61, T62, T63, X119, X120, gt10_in_gg(T61, T62))
U2_ggaa(T61, T62, T63, X119, X120, gt10_out_gg(T61, T62)) → part20_out_ggaa(T61, .(T62, T63), .(T62, X119), X120)
U2_ggaa(T61, T62, T63, X119, X120, gt10_out_gg(T61, T62)) → U3_ggaa(T61, T62, T63, X119, X120, part20_in_ggaa(T61, T63, X119, X120))
part20_in_ggaa(T83, .(T84, T85), X170, .(T84, X171)) → U4_ggaa(T83, T84, T85, X170, X171, le33_in_gg(T83, T84))
le33_in_gg(s(T98), s(T99)) → U6_gg(T98, T99, le33_in_gg(T98, T99))
le33_in_gg(0, s(0)) → le33_out_gg(0, s(0))
le33_in_gg(0, 0) → le33_out_gg(0, 0)
U6_gg(T98, T99, le33_out_gg(T98, T99)) → le33_out_gg(s(T98), s(T99))
U4_ggaa(T83, T84, T85, X170, X171, le33_out_gg(T83, T84)) → part20_out_ggaa(T83, .(T84, T85), X170, .(T84, X171))
U4_ggaa(T83, T84, T85, X170, X171, le33_out_gg(T83, T84)) → U5_ggaa(T83, T84, T85, X170, X171, part20_in_ggaa(T83, T85, X170, X171))
part20_in_ggaa(T107, [], [], []) → part20_out_ggaa(T107, [], [], [])
U5_ggaa(T83, T84, T85, X170, X171, part20_out_ggaa(T83, T85, X170, X171)) → part20_out_ggaa(T83, .(T84, T85), X170, .(T84, X171))
U3_ggaa(T61, T62, T63, X119, X120, part20_out_ggaa(T61, T63, X119, X120)) → part20_out_ggaa(T61, .(T62, T63), .(T62, X119), X120)
U20_ga(T22, T23, T24, T9, part20_out_ggaa(T22, T24, X47, X48)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U19_ga(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → U21_ga(T22, T23, T24, T9, part20_in_ggaa(T22, T24, T44, T45))
U21_ga(T22, T23, T24, T9, part20_out_ggaa(T22, T24, T44, T45)) → U22_ga(T22, T23, T24, T9, qs1_in_aa(.(T23, T44), X9))
qs1_in_aa(.(T22, .(T23, T24)), T9) → U19_aa(T22, T23, T24, T9, gt10_in_aa(T22, T23))
gt10_in_aa(s(T37), s(T38)) → U1_aa(T37, T38, gt10_in_aa(T37, T38))
gt10_in_aa(s(0), 0) → gt10_out_aa(s(0), 0)
U1_aa(T37, T38, gt10_out_aa(T37, T38)) → gt10_out_aa(s(T37), s(T38))
U19_aa(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U19_aa(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → U20_aa(T22, T23, T24, T9, part20_in_gaaa(T22, T24, X47, X48))
part20_in_gaaa(T61, .(T62, T63), .(T62, X119), X120) → U2_gaaa(T61, T62, T63, X119, X120, gt10_in_ga(T61, T62))
gt10_in_ga(s(T37), s(T38)) → U1_ga(T37, T38, gt10_in_ga(T37, T38))
gt10_in_ga(s(0), 0) → gt10_out_ga(s(0), 0)
U1_ga(T37, T38, gt10_out_ga(T37, T38)) → gt10_out_ga(s(T37), s(T38))
U2_gaaa(T61, T62, T63, X119, X120, gt10_out_ga(T61, T62)) → part20_out_gaaa(T61, .(T62, T63), .(T62, X119), X120)
U2_gaaa(T61, T62, T63, X119, X120, gt10_out_ga(T61, T62)) → U3_gaaa(T61, T62, T63, X119, X120, part20_in_gaaa(T61, T63, X119, X120))
part20_in_gaaa(T83, .(T84, T85), X170, .(T84, X171)) → U4_gaaa(T83, T84, T85, X170, X171, le33_in_ga(T83, T84))
le33_in_ga(s(T98), s(T99)) → U6_ga(T98, T99, le33_in_ga(T98, T99))
le33_in_ga(0, s(0)) → le33_out_ga(0, s(0))
le33_in_ga(0, 0) → le33_out_ga(0, 0)
U6_ga(T98, T99, le33_out_ga(T98, T99)) → le33_out_ga(s(T98), s(T99))
U4_gaaa(T83, T84, T85, X170, X171, le33_out_ga(T83, T84)) → part20_out_gaaa(T83, .(T84, T85), X170, .(T84, X171))
U4_gaaa(T83, T84, T85, X170, X171, le33_out_ga(T83, T84)) → U5_gaaa(T83, T84, T85, X170, X171, part20_in_gaaa(T83, T85, X170, X171))
part20_in_gaaa(T107, [], [], []) → part20_out_gaaa(T107, [], [], [])
U5_gaaa(T83, T84, T85, X170, X171, part20_out_gaaa(T83, T85, X170, X171)) → part20_out_gaaa(T83, .(T84, T85), X170, .(T84, X171))
U3_gaaa(T61, T62, T63, X119, X120, part20_out_gaaa(T61, T63, X119, X120)) → part20_out_gaaa(T61, .(T62, T63), .(T62, X119), X120)
U20_aa(T22, T23, T24, T9, part20_out_gaaa(T22, T24, X47, X48)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U19_aa(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → U21_aa(T22, T23, T24, T9, part20_in_gaaa(T22, T24, T44, T45))
U21_aa(T22, T23, T24, T9, part20_out_gaaa(T22, T24, T44, T45)) → U22_aa(T22, T23, T24, T9, qs1_in_aa(.(T23, T44), X9))
qs1_in_aa(.(T234, .(T235, T236)), T9) → U25_aa(T234, T235, T236, T9, le33_in_aa(T234, T235))
le33_in_aa(s(T98), s(T99)) → U6_aa(T98, T99, le33_in_aa(T98, T99))
le33_in_aa(0, s(0)) → le33_out_aa(0, s(0))
le33_in_aa(0, 0) → le33_out_aa(0, 0)
U6_aa(T98, T99, le33_out_aa(T98, T99)) → le33_out_aa(s(T98), s(T99))
U25_aa(T234, T235, T236, T9, le33_out_aa(T234, T235)) → qs1_out_aa(.(T234, .(T235, T236)), T9)
U25_aa(T234, T235, T236, T9, le33_out_aa(T234, T235)) → U26_aa(T234, T235, T236, T9, part20_in_gaaa(T234, T236, X431, X432))
U26_aa(T234, T235, T236, T9, part20_out_gaaa(T234, T236, X431, X432)) → qs1_out_aa(.(T234, .(T235, T236)), T9)
U25_aa(T234, T235, T236, T9, le33_out_aa(T234, T235)) → U27_aa(T234, T235, T236, T9, part20_in_gaaa(T234, T236, T244, T245))
U27_aa(T234, T235, T236, T9, part20_out_gaaa(T234, T236, T244, T245)) → U28_aa(T234, T235, T236, T9, qs53_in_aa(T244, X9))
qs53_in_aa(.(T126, T127), X269) → U7_aa(T126, T127, X269, part20_in_aaaa(T126, T127, X265, X266))
part20_in_aaaa(T61, .(T62, T63), .(T62, X119), X120) → U2_aaaa(T61, T62, T63, X119, X120, gt10_in_aa(T61, T62))
U2_aaaa(T61, T62, T63, X119, X120, gt10_out_aa(T61, T62)) → part20_out_aaaa(T61, .(T62, T63), .(T62, X119), X120)
U2_aaaa(T61, T62, T63, X119, X120, gt10_out_aa(T61, T62)) → U3_aaaa(T61, T62, T63, X119, X120, part20_in_gaaa(T61, T63, X119, X120))
U3_aaaa(T61, T62, T63, X119, X120, part20_out_gaaa(T61, T63, X119, X120)) → part20_out_aaaa(T61, .(T62, T63), .(T62, X119), X120)
part20_in_aaaa(T83, .(T84, T85), X170, .(T84, X171)) → U4_aaaa(T83, T84, T85, X170, X171, le33_in_aa(T83, T84))
U4_aaaa(T83, T84, T85, X170, X171, le33_out_aa(T83, T84)) → part20_out_aaaa(T83, .(T84, T85), X170, .(T84, X171))
U4_aaaa(T83, T84, T85, X170, X171, le33_out_aa(T83, T84)) → U5_aaaa(T83, T84, T85, X170, X171, part20_in_gaaa(T83, T85, X170, X171))
U5_aaaa(T83, T84, T85, X170, X171, part20_out_gaaa(T83, T85, X170, X171)) → part20_out_aaaa(T83, .(T84, T85), X170, .(T84, X171))
part20_in_aaaa(T107, [], [], []) → part20_out_aaaa(T107, [], [], [])
U7_aa(T126, T127, X269, part20_out_aaaa(T126, T127, X265, X266)) → qs53_out_aa(.(T126, T127), X269)
qs53_in_aa(.(T126, T127), X269) → U8_aa(T126, T127, X269, part20_in_aaaa(T126, T127, T131, T132))
U8_aa(T126, T127, X269, part20_out_aaaa(T126, T127, T131, T132)) → U9_aa(T126, T127, X269, qs53_in_aa(T131, X267))
qs53_in_aa([], []) → qs53_out_aa([], [])
U9_aa(T126, T127, X269, qs53_out_aa(T131, X267)) → qs53_out_aa(.(T126, T127), X269)
U8_aa(T126, T127, X269, part20_out_aaaa(T126, T127, T131, T132)) → U10_aa(T126, T127, X269, T132, qs53_in_aa(T131, T138))
U10_aa(T126, T127, X269, T132, qs53_out_aa(T131, T138)) → U11_aa(T126, T127, X269, qs53_in_aa(T132, X268))
U11_aa(T126, T127, X269, qs53_out_aa(T132, X268)) → qs53_out_aa(.(T126, T127), X269)
U10_aa(T126, T127, X269, T132, qs53_out_aa(T131, T138)) → U12_aa(T126, T127, X269, T138, qs53_in_aa(T132, T143))
U12_aa(T126, T127, X269, T138, qs53_out_aa(T132, T143)) → U13_aa(T126, T127, X269, app65_in_aaaa(T138, T126, T143, X269))
app65_in_aaaa(.(T166, T167), T168, T169, .(T166, X348)) → U14_aaaa(T166, T167, T168, T169, X348, app65_in_aaaa(T167, T168, T169, X348))
app65_in_aaaa([], T178, T179, .(T178, T179)) → app65_out_aaaa([], T178, T179, .(T178, T179))
U14_aaaa(T166, T167, T168, T169, X348, app65_out_aaaa(T167, T168, T169, X348)) → app65_out_aaaa(.(T166, T167), T168, T169, .(T166, X348))
U13_aa(T126, T127, X269, app65_out_aaaa(T138, T126, T143, X269)) → qs53_out_aa(.(T126, T127), X269)
U28_aa(T234, T235, T236, T9, qs53_out_aa(T244, X9)) → qs1_out_aa(.(T234, .(T235, T236)), T9)
U27_aa(T234, T235, T236, T9, part20_out_gaaa(T234, T236, T244, T245)) → U29_aa(T234, T235, T236, T9, T245, qs53_in_aa(T244, T251))
U29_aa(T234, T235, T236, T9, T245, qs53_out_aa(T244, T251)) → U30_aa(T234, T235, T236, T9, p52_in_aaaga(.(T235, T245), X10, T251, T234, T9))
p52_in_aaaga(T45, X10, T110, T22, T9) → U16_aaaga(T45, X10, T110, T22, T9, qs53_in_aa(T45, X10))
U16_aaaga(T45, X10, T110, T22, T9, qs53_out_aa(T45, X10)) → p52_out_aaaga(T45, X10, T110, T22, T9)
p52_in_aaaga(T45, T115, T110, T22, T9) → U17_aaaga(T45, T115, T110, T22, T9, qs53_in_aa(T45, T115))
U17_aaaga(T45, T115, T110, T22, T9, qs53_out_aa(T45, T115)) → U18_aaaga(T45, T115, T110, T22, T9, app54_in_agaa(T110, T22, T115, T9))
app54_in_agaa(.(T205, T206), T207, T208, .(T205, T210)) → U15_agaa(T205, T206, T207, T208, T210, app54_in_agaa(T206, T207, T208, T210))
app54_in_agaa([], T220, T221, .(T220, T221)) → app54_out_agaa([], T220, T221, .(T220, T221))
U15_agaa(T205, T206, T207, T208, T210, app54_out_agaa(T206, T207, T208, T210)) → app54_out_agaa(.(T205, T206), T207, T208, .(T205, T210))
U18_aaaga(T45, T115, T110, T22, T9, app54_out_agaa(T110, T22, T115, T9)) → p52_out_aaaga(T45, T115, T110, T22, T9)
U30_aa(T234, T235, T236, T9, p52_out_aaaga(.(T235, T245), X10, T251, T234, T9)) → qs1_out_aa(.(T234, .(T235, T236)), T9)
qs1_in_aa(.(T260, []), T9) → U31_aa(T260, T9, qs99_in_a(X9))
qs99_in_a([]) → qs99_out_a([])
U31_aa(T260, T9, qs99_out_a(X9)) → qs1_out_aa(.(T260, []), T9)
qs1_in_aa(.(T260, []), T9) → U32_aa(T260, T9, qs99_in_a(T263))
U32_aa(T260, T9, qs99_out_a(T263)) → U33_aa(T260, T9, qs99_in_a(X10))
U33_aa(T260, T9, qs99_out_a(X10)) → qs1_out_aa(.(T260, []), T9)
U32_aa(T260, T9, qs99_out_a(T263)) → U34_aa(T260, T9, T263, qs99_in_a(T268))
U34_aa(T260, T9, T263, qs99_out_a(T268)) → U35_aa(T260, T9, app54_in_gaga(T263, T260, T268, T9))
app54_in_gaga(.(T205, T206), T207, T208, .(T205, T210)) → U15_gaga(T205, T206, T207, T208, T210, app54_in_gaga(T206, T207, T208, T210))
app54_in_gaga([], T220, T221, .(T220, T221)) → app54_out_gaga([], T220, T221, .(T220, T221))
U15_gaga(T205, T206, T207, T208, T210, app54_out_gaga(T206, T207, T208, T210)) → app54_out_gaga(.(T205, T206), T207, T208, .(T205, T210))
U35_aa(T260, T9, app54_out_gaga(T263, T260, T268, T9)) → qs1_out_aa(.(T260, []), T9)
qs1_in_aa([], []) → qs1_out_aa([], [])
U22_aa(T22, T23, T24, T9, qs1_out_aa(.(T23, T44), X9)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U21_aa(T22, T23, T24, T9, part20_out_gaaa(T22, T24, T44, T45)) → U23_aa(T22, T23, T24, T9, T45, qs1_in_aa(.(T23, T44), T110))
U23_aa(T22, T23, T24, T9, T45, qs1_out_aa(.(T23, T44), T110)) → U24_aa(T22, T23, T24, T9, p52_in_aaaga(T45, X10, T110, T22, T9))
U24_aa(T22, T23, T24, T9, p52_out_aaaga(T45, X10, T110, T22, T9)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U22_ga(T22, T23, T24, T9, qs1_out_aa(.(T23, T44), X9)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U21_ga(T22, T23, T24, T9, part20_out_ggaa(T22, T24, T44, T45)) → U23_ga(T22, T23, T24, T9, T45, qs1_in_aa(.(T23, T44), T110))
U23_ga(T22, T23, T24, T9, T45, qs1_out_aa(.(T23, T44), T110)) → U24_ga(T22, T23, T24, T9, p52_in_aaaga(T45, X10, T110, T22, T9))
U24_ga(T22, T23, T24, T9, p52_out_aaaga(T45, X10, T110, T22, T9)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
qs1_in_ga(.(T234, .(T235, T236)), T9) → U25_ga(T234, T235, T236, T9, le33_in_gg(T234, T235))
U25_ga(T234, T235, T236, T9, le33_out_gg(T234, T235)) → qs1_out_ga(.(T234, .(T235, T236)), T9)
U25_ga(T234, T235, T236, T9, le33_out_gg(T234, T235)) → U26_ga(T234, T235, T236, T9, part20_in_ggaa(T234, T236, X431, X432))
U26_ga(T234, T235, T236, T9, part20_out_ggaa(T234, T236, X431, X432)) → qs1_out_ga(.(T234, .(T235, T236)), T9)
U25_ga(T234, T235, T236, T9, le33_out_gg(T234, T235)) → U27_ga(T234, T235, T236, T9, part20_in_ggaa(T234, T236, T244, T245))
U27_ga(T234, T235, T236, T9, part20_out_ggaa(T234, T236, T244, T245)) → U28_ga(T234, T235, T236, T9, qs53_in_aa(T244, X9))
U28_ga(T234, T235, T236, T9, qs53_out_aa(T244, X9)) → qs1_out_ga(.(T234, .(T235, T236)), T9)
U27_ga(T234, T235, T236, T9, part20_out_ggaa(T234, T236, T244, T245)) → U29_ga(T234, T235, T236, T9, T245, qs53_in_aa(T244, T251))
U29_ga(T234, T235, T236, T9, T245, qs53_out_aa(T244, T251)) → U30_ga(T234, T235, T236, T9, p52_in_aaaga(.(T235, T245), X10, T251, T234, T9))
U30_ga(T234, T235, T236, T9, p52_out_aaaga(.(T235, T245), X10, T251, T234, T9)) → qs1_out_ga(.(T234, .(T235, T236)), T9)
qs1_in_ga(.(T260, []), T9) → U31_ga(T260, T9, qs99_in_a(X9))
U31_ga(T260, T9, qs99_out_a(X9)) → qs1_out_ga(.(T260, []), T9)
qs1_in_ga(.(T260, []), T9) → U32_ga(T260, T9, qs99_in_a(T263))
U32_ga(T260, T9, qs99_out_a(T263)) → U33_ga(T260, T9, qs99_in_a(X10))
U33_ga(T260, T9, qs99_out_a(X10)) → qs1_out_ga(.(T260, []), T9)
U32_ga(T260, T9, qs99_out_a(T263)) → U34_ga(T260, T9, T263, qs99_in_a(T268))
U34_ga(T260, T9, T263, qs99_out_a(T268)) → U35_ga(T260, T9, app54_in_ggga(T263, T260, T268, T9))
app54_in_ggga(.(T205, T206), T207, T208, .(T205, T210)) → U15_ggga(T205, T206, T207, T208, T210, app54_in_ggga(T206, T207, T208, T210))
app54_in_ggga([], T220, T221, .(T220, T221)) → app54_out_ggga([], T220, T221, .(T220, T221))
U15_ggga(T205, T206, T207, T208, T210, app54_out_ggga(T206, T207, T208, T210)) → app54_out_ggga(.(T205, T206), T207, T208, .(T205, T210))
U35_ga(T260, T9, app54_out_ggga(T263, T260, T268, T9)) → qs1_out_ga(.(T260, []), T9)
qs1_in_ga([], []) → qs1_out_ga([], [])
APP54_IN_GAGA(.(T205, T206), T207, T208, .(T205, T210)) → APP54_IN_GAGA(T206, T207, T208, T210)
APP54_IN_GAGA(.(T205, T206), T208) → APP54_IN_GAGA(T206, T208)
From the DPs we obtained the following set of size-change graphs:
APP54_IN_AGAA(.(T205, T206), T207, T208, .(T205, T210)) → APP54_IN_AGAA(T206, T207, T208, T210)
qs1_in_ga(.(T22, .(T23, T24)), T9) → U19_ga(T22, T23, T24, T9, gt10_in_gg(T22, T23))
gt10_in_gg(s(T37), s(T38)) → U1_gg(T37, T38, gt10_in_gg(T37, T38))
gt10_in_gg(s(0), 0) → gt10_out_gg(s(0), 0)
U1_gg(T37, T38, gt10_out_gg(T37, T38)) → gt10_out_gg(s(T37), s(T38))
U19_ga(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U19_ga(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → U20_ga(T22, T23, T24, T9, part20_in_ggaa(T22, T24, X47, X48))
part20_in_ggaa(T61, .(T62, T63), .(T62, X119), X120) → U2_ggaa(T61, T62, T63, X119, X120, gt10_in_gg(T61, T62))
U2_ggaa(T61, T62, T63, X119, X120, gt10_out_gg(T61, T62)) → part20_out_ggaa(T61, .(T62, T63), .(T62, X119), X120)
U2_ggaa(T61, T62, T63, X119, X120, gt10_out_gg(T61, T62)) → U3_ggaa(T61, T62, T63, X119, X120, part20_in_ggaa(T61, T63, X119, X120))
part20_in_ggaa(T83, .(T84, T85), X170, .(T84, X171)) → U4_ggaa(T83, T84, T85, X170, X171, le33_in_gg(T83, T84))
le33_in_gg(s(T98), s(T99)) → U6_gg(T98, T99, le33_in_gg(T98, T99))
le33_in_gg(0, s(0)) → le33_out_gg(0, s(0))
le33_in_gg(0, 0) → le33_out_gg(0, 0)
U6_gg(T98, T99, le33_out_gg(T98, T99)) → le33_out_gg(s(T98), s(T99))
U4_ggaa(T83, T84, T85, X170, X171, le33_out_gg(T83, T84)) → part20_out_ggaa(T83, .(T84, T85), X170, .(T84, X171))
U4_ggaa(T83, T84, T85, X170, X171, le33_out_gg(T83, T84)) → U5_ggaa(T83, T84, T85, X170, X171, part20_in_ggaa(T83, T85, X170, X171))
part20_in_ggaa(T107, [], [], []) → part20_out_ggaa(T107, [], [], [])
U5_ggaa(T83, T84, T85, X170, X171, part20_out_ggaa(T83, T85, X170, X171)) → part20_out_ggaa(T83, .(T84, T85), X170, .(T84, X171))
U3_ggaa(T61, T62, T63, X119, X120, part20_out_ggaa(T61, T63, X119, X120)) → part20_out_ggaa(T61, .(T62, T63), .(T62, X119), X120)
U20_ga(T22, T23, T24, T9, part20_out_ggaa(T22, T24, X47, X48)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U19_ga(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → U21_ga(T22, T23, T24, T9, part20_in_ggaa(T22, T24, T44, T45))
U21_ga(T22, T23, T24, T9, part20_out_ggaa(T22, T24, T44, T45)) → U22_ga(T22, T23, T24, T9, qs1_in_aa(.(T23, T44), X9))
qs1_in_aa(.(T22, .(T23, T24)), T9) → U19_aa(T22, T23, T24, T9, gt10_in_aa(T22, T23))
gt10_in_aa(s(T37), s(T38)) → U1_aa(T37, T38, gt10_in_aa(T37, T38))
gt10_in_aa(s(0), 0) → gt10_out_aa(s(0), 0)
U1_aa(T37, T38, gt10_out_aa(T37, T38)) → gt10_out_aa(s(T37), s(T38))
U19_aa(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U19_aa(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → U20_aa(T22, T23, T24, T9, part20_in_gaaa(T22, T24, X47, X48))
part20_in_gaaa(T61, .(T62, T63), .(T62, X119), X120) → U2_gaaa(T61, T62, T63, X119, X120, gt10_in_ga(T61, T62))
gt10_in_ga(s(T37), s(T38)) → U1_ga(T37, T38, gt10_in_ga(T37, T38))
gt10_in_ga(s(0), 0) → gt10_out_ga(s(0), 0)
U1_ga(T37, T38, gt10_out_ga(T37, T38)) → gt10_out_ga(s(T37), s(T38))
U2_gaaa(T61, T62, T63, X119, X120, gt10_out_ga(T61, T62)) → part20_out_gaaa(T61, .(T62, T63), .(T62, X119), X120)
U2_gaaa(T61, T62, T63, X119, X120, gt10_out_ga(T61, T62)) → U3_gaaa(T61, T62, T63, X119, X120, part20_in_gaaa(T61, T63, X119, X120))
part20_in_gaaa(T83, .(T84, T85), X170, .(T84, X171)) → U4_gaaa(T83, T84, T85, X170, X171, le33_in_ga(T83, T84))
le33_in_ga(s(T98), s(T99)) → U6_ga(T98, T99, le33_in_ga(T98, T99))
le33_in_ga(0, s(0)) → le33_out_ga(0, s(0))
le33_in_ga(0, 0) → le33_out_ga(0, 0)
U6_ga(T98, T99, le33_out_ga(T98, T99)) → le33_out_ga(s(T98), s(T99))
U4_gaaa(T83, T84, T85, X170, X171, le33_out_ga(T83, T84)) → part20_out_gaaa(T83, .(T84, T85), X170, .(T84, X171))
U4_gaaa(T83, T84, T85, X170, X171, le33_out_ga(T83, T84)) → U5_gaaa(T83, T84, T85, X170, X171, part20_in_gaaa(T83, T85, X170, X171))
part20_in_gaaa(T107, [], [], []) → part20_out_gaaa(T107, [], [], [])
U5_gaaa(T83, T84, T85, X170, X171, part20_out_gaaa(T83, T85, X170, X171)) → part20_out_gaaa(T83, .(T84, T85), X170, .(T84, X171))
U3_gaaa(T61, T62, T63, X119, X120, part20_out_gaaa(T61, T63, X119, X120)) → part20_out_gaaa(T61, .(T62, T63), .(T62, X119), X120)
U20_aa(T22, T23, T24, T9, part20_out_gaaa(T22, T24, X47, X48)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U19_aa(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → U21_aa(T22, T23, T24, T9, part20_in_gaaa(T22, T24, T44, T45))
U21_aa(T22, T23, T24, T9, part20_out_gaaa(T22, T24, T44, T45)) → U22_aa(T22, T23, T24, T9, qs1_in_aa(.(T23, T44), X9))
qs1_in_aa(.(T234, .(T235, T236)), T9) → U25_aa(T234, T235, T236, T9, le33_in_aa(T234, T235))
le33_in_aa(s(T98), s(T99)) → U6_aa(T98, T99, le33_in_aa(T98, T99))
le33_in_aa(0, s(0)) → le33_out_aa(0, s(0))
le33_in_aa(0, 0) → le33_out_aa(0, 0)
U6_aa(T98, T99, le33_out_aa(T98, T99)) → le33_out_aa(s(T98), s(T99))
U25_aa(T234, T235, T236, T9, le33_out_aa(T234, T235)) → qs1_out_aa(.(T234, .(T235, T236)), T9)
U25_aa(T234, T235, T236, T9, le33_out_aa(T234, T235)) → U26_aa(T234, T235, T236, T9, part20_in_gaaa(T234, T236, X431, X432))
U26_aa(T234, T235, T236, T9, part20_out_gaaa(T234, T236, X431, X432)) → qs1_out_aa(.(T234, .(T235, T236)), T9)
U25_aa(T234, T235, T236, T9, le33_out_aa(T234, T235)) → U27_aa(T234, T235, T236, T9, part20_in_gaaa(T234, T236, T244, T245))
U27_aa(T234, T235, T236, T9, part20_out_gaaa(T234, T236, T244, T245)) → U28_aa(T234, T235, T236, T9, qs53_in_aa(T244, X9))
qs53_in_aa(.(T126, T127), X269) → U7_aa(T126, T127, X269, part20_in_aaaa(T126, T127, X265, X266))
part20_in_aaaa(T61, .(T62, T63), .(T62, X119), X120) → U2_aaaa(T61, T62, T63, X119, X120, gt10_in_aa(T61, T62))
U2_aaaa(T61, T62, T63, X119, X120, gt10_out_aa(T61, T62)) → part20_out_aaaa(T61, .(T62, T63), .(T62, X119), X120)
U2_aaaa(T61, T62, T63, X119, X120, gt10_out_aa(T61, T62)) → U3_aaaa(T61, T62, T63, X119, X120, part20_in_gaaa(T61, T63, X119, X120))
U3_aaaa(T61, T62, T63, X119, X120, part20_out_gaaa(T61, T63, X119, X120)) → part20_out_aaaa(T61, .(T62, T63), .(T62, X119), X120)
part20_in_aaaa(T83, .(T84, T85), X170, .(T84, X171)) → U4_aaaa(T83, T84, T85, X170, X171, le33_in_aa(T83, T84))
U4_aaaa(T83, T84, T85, X170, X171, le33_out_aa(T83, T84)) → part20_out_aaaa(T83, .(T84, T85), X170, .(T84, X171))
U4_aaaa(T83, T84, T85, X170, X171, le33_out_aa(T83, T84)) → U5_aaaa(T83, T84, T85, X170, X171, part20_in_gaaa(T83, T85, X170, X171))
U5_aaaa(T83, T84, T85, X170, X171, part20_out_gaaa(T83, T85, X170, X171)) → part20_out_aaaa(T83, .(T84, T85), X170, .(T84, X171))
part20_in_aaaa(T107, [], [], []) → part20_out_aaaa(T107, [], [], [])
U7_aa(T126, T127, X269, part20_out_aaaa(T126, T127, X265, X266)) → qs53_out_aa(.(T126, T127), X269)
qs53_in_aa(.(T126, T127), X269) → U8_aa(T126, T127, X269, part20_in_aaaa(T126, T127, T131, T132))
U8_aa(T126, T127, X269, part20_out_aaaa(T126, T127, T131, T132)) → U9_aa(T126, T127, X269, qs53_in_aa(T131, X267))
qs53_in_aa([], []) → qs53_out_aa([], [])
U9_aa(T126, T127, X269, qs53_out_aa(T131, X267)) → qs53_out_aa(.(T126, T127), X269)
U8_aa(T126, T127, X269, part20_out_aaaa(T126, T127, T131, T132)) → U10_aa(T126, T127, X269, T132, qs53_in_aa(T131, T138))
U10_aa(T126, T127, X269, T132, qs53_out_aa(T131, T138)) → U11_aa(T126, T127, X269, qs53_in_aa(T132, X268))
U11_aa(T126, T127, X269, qs53_out_aa(T132, X268)) → qs53_out_aa(.(T126, T127), X269)
U10_aa(T126, T127, X269, T132, qs53_out_aa(T131, T138)) → U12_aa(T126, T127, X269, T138, qs53_in_aa(T132, T143))
U12_aa(T126, T127, X269, T138, qs53_out_aa(T132, T143)) → U13_aa(T126, T127, X269, app65_in_aaaa(T138, T126, T143, X269))
app65_in_aaaa(.(T166, T167), T168, T169, .(T166, X348)) → U14_aaaa(T166, T167, T168, T169, X348, app65_in_aaaa(T167, T168, T169, X348))
app65_in_aaaa([], T178, T179, .(T178, T179)) → app65_out_aaaa([], T178, T179, .(T178, T179))
U14_aaaa(T166, T167, T168, T169, X348, app65_out_aaaa(T167, T168, T169, X348)) → app65_out_aaaa(.(T166, T167), T168, T169, .(T166, X348))
U13_aa(T126, T127, X269, app65_out_aaaa(T138, T126, T143, X269)) → qs53_out_aa(.(T126, T127), X269)
U28_aa(T234, T235, T236, T9, qs53_out_aa(T244, X9)) → qs1_out_aa(.(T234, .(T235, T236)), T9)
U27_aa(T234, T235, T236, T9, part20_out_gaaa(T234, T236, T244, T245)) → U29_aa(T234, T235, T236, T9, T245, qs53_in_aa(T244, T251))
U29_aa(T234, T235, T236, T9, T245, qs53_out_aa(T244, T251)) → U30_aa(T234, T235, T236, T9, p52_in_aaaga(.(T235, T245), X10, T251, T234, T9))
p52_in_aaaga(T45, X10, T110, T22, T9) → U16_aaaga(T45, X10, T110, T22, T9, qs53_in_aa(T45, X10))
U16_aaaga(T45, X10, T110, T22, T9, qs53_out_aa(T45, X10)) → p52_out_aaaga(T45, X10, T110, T22, T9)
p52_in_aaaga(T45, T115, T110, T22, T9) → U17_aaaga(T45, T115, T110, T22, T9, qs53_in_aa(T45, T115))
U17_aaaga(T45, T115, T110, T22, T9, qs53_out_aa(T45, T115)) → U18_aaaga(T45, T115, T110, T22, T9, app54_in_agaa(T110, T22, T115, T9))
app54_in_agaa(.(T205, T206), T207, T208, .(T205, T210)) → U15_agaa(T205, T206, T207, T208, T210, app54_in_agaa(T206, T207, T208, T210))
app54_in_agaa([], T220, T221, .(T220, T221)) → app54_out_agaa([], T220, T221, .(T220, T221))
U15_agaa(T205, T206, T207, T208, T210, app54_out_agaa(T206, T207, T208, T210)) → app54_out_agaa(.(T205, T206), T207, T208, .(T205, T210))
U18_aaaga(T45, T115, T110, T22, T9, app54_out_agaa(T110, T22, T115, T9)) → p52_out_aaaga(T45, T115, T110, T22, T9)
U30_aa(T234, T235, T236, T9, p52_out_aaaga(.(T235, T245), X10, T251, T234, T9)) → qs1_out_aa(.(T234, .(T235, T236)), T9)
qs1_in_aa(.(T260, []), T9) → U31_aa(T260, T9, qs99_in_a(X9))
qs99_in_a([]) → qs99_out_a([])
U31_aa(T260, T9, qs99_out_a(X9)) → qs1_out_aa(.(T260, []), T9)
qs1_in_aa(.(T260, []), T9) → U32_aa(T260, T9, qs99_in_a(T263))
U32_aa(T260, T9, qs99_out_a(T263)) → U33_aa(T260, T9, qs99_in_a(X10))
U33_aa(T260, T9, qs99_out_a(X10)) → qs1_out_aa(.(T260, []), T9)
U32_aa(T260, T9, qs99_out_a(T263)) → U34_aa(T260, T9, T263, qs99_in_a(T268))
U34_aa(T260, T9, T263, qs99_out_a(T268)) → U35_aa(T260, T9, app54_in_gaga(T263, T260, T268, T9))
app54_in_gaga(.(T205, T206), T207, T208, .(T205, T210)) → U15_gaga(T205, T206, T207, T208, T210, app54_in_gaga(T206, T207, T208, T210))
app54_in_gaga([], T220, T221, .(T220, T221)) → app54_out_gaga([], T220, T221, .(T220, T221))
U15_gaga(T205, T206, T207, T208, T210, app54_out_gaga(T206, T207, T208, T210)) → app54_out_gaga(.(T205, T206), T207, T208, .(T205, T210))
U35_aa(T260, T9, app54_out_gaga(T263, T260, T268, T9)) → qs1_out_aa(.(T260, []), T9)
qs1_in_aa([], []) → qs1_out_aa([], [])
U22_aa(T22, T23, T24, T9, qs1_out_aa(.(T23, T44), X9)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U21_aa(T22, T23, T24, T9, part20_out_gaaa(T22, T24, T44, T45)) → U23_aa(T22, T23, T24, T9, T45, qs1_in_aa(.(T23, T44), T110))
U23_aa(T22, T23, T24, T9, T45, qs1_out_aa(.(T23, T44), T110)) → U24_aa(T22, T23, T24, T9, p52_in_aaaga(T45, X10, T110, T22, T9))
U24_aa(T22, T23, T24, T9, p52_out_aaaga(T45, X10, T110, T22, T9)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U22_ga(T22, T23, T24, T9, qs1_out_aa(.(T23, T44), X9)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U21_ga(T22, T23, T24, T9, part20_out_ggaa(T22, T24, T44, T45)) → U23_ga(T22, T23, T24, T9, T45, qs1_in_aa(.(T23, T44), T110))
U23_ga(T22, T23, T24, T9, T45, qs1_out_aa(.(T23, T44), T110)) → U24_ga(T22, T23, T24, T9, p52_in_aaaga(T45, X10, T110, T22, T9))
U24_ga(T22, T23, T24, T9, p52_out_aaaga(T45, X10, T110, T22, T9)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
qs1_in_ga(.(T234, .(T235, T236)), T9) → U25_ga(T234, T235, T236, T9, le33_in_gg(T234, T235))
U25_ga(T234, T235, T236, T9, le33_out_gg(T234, T235)) → qs1_out_ga(.(T234, .(T235, T236)), T9)
U25_ga(T234, T235, T236, T9, le33_out_gg(T234, T235)) → U26_ga(T234, T235, T236, T9, part20_in_ggaa(T234, T236, X431, X432))
U26_ga(T234, T235, T236, T9, part20_out_ggaa(T234, T236, X431, X432)) → qs1_out_ga(.(T234, .(T235, T236)), T9)
U25_ga(T234, T235, T236, T9, le33_out_gg(T234, T235)) → U27_ga(T234, T235, T236, T9, part20_in_ggaa(T234, T236, T244, T245))
U27_ga(T234, T235, T236, T9, part20_out_ggaa(T234, T236, T244, T245)) → U28_ga(T234, T235, T236, T9, qs53_in_aa(T244, X9))
U28_ga(T234, T235, T236, T9, qs53_out_aa(T244, X9)) → qs1_out_ga(.(T234, .(T235, T236)), T9)
U27_ga(T234, T235, T236, T9, part20_out_ggaa(T234, T236, T244, T245)) → U29_ga(T234, T235, T236, T9, T245, qs53_in_aa(T244, T251))
U29_ga(T234, T235, T236, T9, T245, qs53_out_aa(T244, T251)) → U30_ga(T234, T235, T236, T9, p52_in_aaaga(.(T235, T245), X10, T251, T234, T9))
U30_ga(T234, T235, T236, T9, p52_out_aaaga(.(T235, T245), X10, T251, T234, T9)) → qs1_out_ga(.(T234, .(T235, T236)), T9)
qs1_in_ga(.(T260, []), T9) → U31_ga(T260, T9, qs99_in_a(X9))
U31_ga(T260, T9, qs99_out_a(X9)) → qs1_out_ga(.(T260, []), T9)
qs1_in_ga(.(T260, []), T9) → U32_ga(T260, T9, qs99_in_a(T263))
U32_ga(T260, T9, qs99_out_a(T263)) → U33_ga(T260, T9, qs99_in_a(X10))
U33_ga(T260, T9, qs99_out_a(X10)) → qs1_out_ga(.(T260, []), T9)
U32_ga(T260, T9, qs99_out_a(T263)) → U34_ga(T260, T9, T263, qs99_in_a(T268))
U34_ga(T260, T9, T263, qs99_out_a(T268)) → U35_ga(T260, T9, app54_in_ggga(T263, T260, T268, T9))
app54_in_ggga(.(T205, T206), T207, T208, .(T205, T210)) → U15_ggga(T205, T206, T207, T208, T210, app54_in_ggga(T206, T207, T208, T210))
app54_in_ggga([], T220, T221, .(T220, T221)) → app54_out_ggga([], T220, T221, .(T220, T221))
U15_ggga(T205, T206, T207, T208, T210, app54_out_ggga(T206, T207, T208, T210)) → app54_out_ggga(.(T205, T206), T207, T208, .(T205, T210))
U35_ga(T260, T9, app54_out_ggga(T263, T260, T268, T9)) → qs1_out_ga(.(T260, []), T9)
qs1_in_ga([], []) → qs1_out_ga([], [])
APP54_IN_AGAA(.(T205, T206), T207, T208, .(T205, T210)) → APP54_IN_AGAA(T206, T207, T208, T210)
APP54_IN_AGAA(T207) → APP54_IN_AGAA(T207)
APP65_IN_AAAA(.(T166, T167), T168, T169, .(T166, X348)) → APP65_IN_AAAA(T167, T168, T169, X348)
qs1_in_ga(.(T22, .(T23, T24)), T9) → U19_ga(T22, T23, T24, T9, gt10_in_gg(T22, T23))
gt10_in_gg(s(T37), s(T38)) → U1_gg(T37, T38, gt10_in_gg(T37, T38))
gt10_in_gg(s(0), 0) → gt10_out_gg(s(0), 0)
U1_gg(T37, T38, gt10_out_gg(T37, T38)) → gt10_out_gg(s(T37), s(T38))
U19_ga(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U19_ga(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → U20_ga(T22, T23, T24, T9, part20_in_ggaa(T22, T24, X47, X48))
part20_in_ggaa(T61, .(T62, T63), .(T62, X119), X120) → U2_ggaa(T61, T62, T63, X119, X120, gt10_in_gg(T61, T62))
U2_ggaa(T61, T62, T63, X119, X120, gt10_out_gg(T61, T62)) → part20_out_ggaa(T61, .(T62, T63), .(T62, X119), X120)
U2_ggaa(T61, T62, T63, X119, X120, gt10_out_gg(T61, T62)) → U3_ggaa(T61, T62, T63, X119, X120, part20_in_ggaa(T61, T63, X119, X120))
part20_in_ggaa(T83, .(T84, T85), X170, .(T84, X171)) → U4_ggaa(T83, T84, T85, X170, X171, le33_in_gg(T83, T84))
le33_in_gg(s(T98), s(T99)) → U6_gg(T98, T99, le33_in_gg(T98, T99))
le33_in_gg(0, s(0)) → le33_out_gg(0, s(0))
le33_in_gg(0, 0) → le33_out_gg(0, 0)
U6_gg(T98, T99, le33_out_gg(T98, T99)) → le33_out_gg(s(T98), s(T99))
U4_ggaa(T83, T84, T85, X170, X171, le33_out_gg(T83, T84)) → part20_out_ggaa(T83, .(T84, T85), X170, .(T84, X171))
U4_ggaa(T83, T84, T85, X170, X171, le33_out_gg(T83, T84)) → U5_ggaa(T83, T84, T85, X170, X171, part20_in_ggaa(T83, T85, X170, X171))
part20_in_ggaa(T107, [], [], []) → part20_out_ggaa(T107, [], [], [])
U5_ggaa(T83, T84, T85, X170, X171, part20_out_ggaa(T83, T85, X170, X171)) → part20_out_ggaa(T83, .(T84, T85), X170, .(T84, X171))
U3_ggaa(T61, T62, T63, X119, X120, part20_out_ggaa(T61, T63, X119, X120)) → part20_out_ggaa(T61, .(T62, T63), .(T62, X119), X120)
U20_ga(T22, T23, T24, T9, part20_out_ggaa(T22, T24, X47, X48)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U19_ga(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → U21_ga(T22, T23, T24, T9, part20_in_ggaa(T22, T24, T44, T45))
U21_ga(T22, T23, T24, T9, part20_out_ggaa(T22, T24, T44, T45)) → U22_ga(T22, T23, T24, T9, qs1_in_aa(.(T23, T44), X9))
qs1_in_aa(.(T22, .(T23, T24)), T9) → U19_aa(T22, T23, T24, T9, gt10_in_aa(T22, T23))
gt10_in_aa(s(T37), s(T38)) → U1_aa(T37, T38, gt10_in_aa(T37, T38))
gt10_in_aa(s(0), 0) → gt10_out_aa(s(0), 0)
U1_aa(T37, T38, gt10_out_aa(T37, T38)) → gt10_out_aa(s(T37), s(T38))
U19_aa(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U19_aa(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → U20_aa(T22, T23, T24, T9, part20_in_gaaa(T22, T24, X47, X48))
part20_in_gaaa(T61, .(T62, T63), .(T62, X119), X120) → U2_gaaa(T61, T62, T63, X119, X120, gt10_in_ga(T61, T62))
gt10_in_ga(s(T37), s(T38)) → U1_ga(T37, T38, gt10_in_ga(T37, T38))
gt10_in_ga(s(0), 0) → gt10_out_ga(s(0), 0)
U1_ga(T37, T38, gt10_out_ga(T37, T38)) → gt10_out_ga(s(T37), s(T38))
U2_gaaa(T61, T62, T63, X119, X120, gt10_out_ga(T61, T62)) → part20_out_gaaa(T61, .(T62, T63), .(T62, X119), X120)
U2_gaaa(T61, T62, T63, X119, X120, gt10_out_ga(T61, T62)) → U3_gaaa(T61, T62, T63, X119, X120, part20_in_gaaa(T61, T63, X119, X120))
part20_in_gaaa(T83, .(T84, T85), X170, .(T84, X171)) → U4_gaaa(T83, T84, T85, X170, X171, le33_in_ga(T83, T84))
le33_in_ga(s(T98), s(T99)) → U6_ga(T98, T99, le33_in_ga(T98, T99))
le33_in_ga(0, s(0)) → le33_out_ga(0, s(0))
le33_in_ga(0, 0) → le33_out_ga(0, 0)
U6_ga(T98, T99, le33_out_ga(T98, T99)) → le33_out_ga(s(T98), s(T99))
U4_gaaa(T83, T84, T85, X170, X171, le33_out_ga(T83, T84)) → part20_out_gaaa(T83, .(T84, T85), X170, .(T84, X171))
U4_gaaa(T83, T84, T85, X170, X171, le33_out_ga(T83, T84)) → U5_gaaa(T83, T84, T85, X170, X171, part20_in_gaaa(T83, T85, X170, X171))
part20_in_gaaa(T107, [], [], []) → part20_out_gaaa(T107, [], [], [])
U5_gaaa(T83, T84, T85, X170, X171, part20_out_gaaa(T83, T85, X170, X171)) → part20_out_gaaa(T83, .(T84, T85), X170, .(T84, X171))
U3_gaaa(T61, T62, T63, X119, X120, part20_out_gaaa(T61, T63, X119, X120)) → part20_out_gaaa(T61, .(T62, T63), .(T62, X119), X120)
U20_aa(T22, T23, T24, T9, part20_out_gaaa(T22, T24, X47, X48)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U19_aa(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → U21_aa(T22, T23, T24, T9, part20_in_gaaa(T22, T24, T44, T45))
U21_aa(T22, T23, T24, T9, part20_out_gaaa(T22, T24, T44, T45)) → U22_aa(T22, T23, T24, T9, qs1_in_aa(.(T23, T44), X9))
qs1_in_aa(.(T234, .(T235, T236)), T9) → U25_aa(T234, T235, T236, T9, le33_in_aa(T234, T235))
le33_in_aa(s(T98), s(T99)) → U6_aa(T98, T99, le33_in_aa(T98, T99))
le33_in_aa(0, s(0)) → le33_out_aa(0, s(0))
le33_in_aa(0, 0) → le33_out_aa(0, 0)
U6_aa(T98, T99, le33_out_aa(T98, T99)) → le33_out_aa(s(T98), s(T99))
U25_aa(T234, T235, T236, T9, le33_out_aa(T234, T235)) → qs1_out_aa(.(T234, .(T235, T236)), T9)
U25_aa(T234, T235, T236, T9, le33_out_aa(T234, T235)) → U26_aa(T234, T235, T236, T9, part20_in_gaaa(T234, T236, X431, X432))
U26_aa(T234, T235, T236, T9, part20_out_gaaa(T234, T236, X431, X432)) → qs1_out_aa(.(T234, .(T235, T236)), T9)
U25_aa(T234, T235, T236, T9, le33_out_aa(T234, T235)) → U27_aa(T234, T235, T236, T9, part20_in_gaaa(T234, T236, T244, T245))
U27_aa(T234, T235, T236, T9, part20_out_gaaa(T234, T236, T244, T245)) → U28_aa(T234, T235, T236, T9, qs53_in_aa(T244, X9))
qs53_in_aa(.(T126, T127), X269) → U7_aa(T126, T127, X269, part20_in_aaaa(T126, T127, X265, X266))
part20_in_aaaa(T61, .(T62, T63), .(T62, X119), X120) → U2_aaaa(T61, T62, T63, X119, X120, gt10_in_aa(T61, T62))
U2_aaaa(T61, T62, T63, X119, X120, gt10_out_aa(T61, T62)) → part20_out_aaaa(T61, .(T62, T63), .(T62, X119), X120)
U2_aaaa(T61, T62, T63, X119, X120, gt10_out_aa(T61, T62)) → U3_aaaa(T61, T62, T63, X119, X120, part20_in_gaaa(T61, T63, X119, X120))
U3_aaaa(T61, T62, T63, X119, X120, part20_out_gaaa(T61, T63, X119, X120)) → part20_out_aaaa(T61, .(T62, T63), .(T62, X119), X120)
part20_in_aaaa(T83, .(T84, T85), X170, .(T84, X171)) → U4_aaaa(T83, T84, T85, X170, X171, le33_in_aa(T83, T84))
U4_aaaa(T83, T84, T85, X170, X171, le33_out_aa(T83, T84)) → part20_out_aaaa(T83, .(T84, T85), X170, .(T84, X171))
U4_aaaa(T83, T84, T85, X170, X171, le33_out_aa(T83, T84)) → U5_aaaa(T83, T84, T85, X170, X171, part20_in_gaaa(T83, T85, X170, X171))
U5_aaaa(T83, T84, T85, X170, X171, part20_out_gaaa(T83, T85, X170, X171)) → part20_out_aaaa(T83, .(T84, T85), X170, .(T84, X171))
part20_in_aaaa(T107, [], [], []) → part20_out_aaaa(T107, [], [], [])
U7_aa(T126, T127, X269, part20_out_aaaa(T126, T127, X265, X266)) → qs53_out_aa(.(T126, T127), X269)
qs53_in_aa(.(T126, T127), X269) → U8_aa(T126, T127, X269, part20_in_aaaa(T126, T127, T131, T132))
U8_aa(T126, T127, X269, part20_out_aaaa(T126, T127, T131, T132)) → U9_aa(T126, T127, X269, qs53_in_aa(T131, X267))
qs53_in_aa([], []) → qs53_out_aa([], [])
U9_aa(T126, T127, X269, qs53_out_aa(T131, X267)) → qs53_out_aa(.(T126, T127), X269)
U8_aa(T126, T127, X269, part20_out_aaaa(T126, T127, T131, T132)) → U10_aa(T126, T127, X269, T132, qs53_in_aa(T131, T138))
U10_aa(T126, T127, X269, T132, qs53_out_aa(T131, T138)) → U11_aa(T126, T127, X269, qs53_in_aa(T132, X268))
U11_aa(T126, T127, X269, qs53_out_aa(T132, X268)) → qs53_out_aa(.(T126, T127), X269)
U10_aa(T126, T127, X269, T132, qs53_out_aa(T131, T138)) → U12_aa(T126, T127, X269, T138, qs53_in_aa(T132, T143))
U12_aa(T126, T127, X269, T138, qs53_out_aa(T132, T143)) → U13_aa(T126, T127, X269, app65_in_aaaa(T138, T126, T143, X269))
app65_in_aaaa(.(T166, T167), T168, T169, .(T166, X348)) → U14_aaaa(T166, T167, T168, T169, X348, app65_in_aaaa(T167, T168, T169, X348))
app65_in_aaaa([], T178, T179, .(T178, T179)) → app65_out_aaaa([], T178, T179, .(T178, T179))
U14_aaaa(T166, T167, T168, T169, X348, app65_out_aaaa(T167, T168, T169, X348)) → app65_out_aaaa(.(T166, T167), T168, T169, .(T166, X348))
U13_aa(T126, T127, X269, app65_out_aaaa(T138, T126, T143, X269)) → qs53_out_aa(.(T126, T127), X269)
U28_aa(T234, T235, T236, T9, qs53_out_aa(T244, X9)) → qs1_out_aa(.(T234, .(T235, T236)), T9)
U27_aa(T234, T235, T236, T9, part20_out_gaaa(T234, T236, T244, T245)) → U29_aa(T234, T235, T236, T9, T245, qs53_in_aa(T244, T251))
U29_aa(T234, T235, T236, T9, T245, qs53_out_aa(T244, T251)) → U30_aa(T234, T235, T236, T9, p52_in_aaaga(.(T235, T245), X10, T251, T234, T9))
p52_in_aaaga(T45, X10, T110, T22, T9) → U16_aaaga(T45, X10, T110, T22, T9, qs53_in_aa(T45, X10))
U16_aaaga(T45, X10, T110, T22, T9, qs53_out_aa(T45, X10)) → p52_out_aaaga(T45, X10, T110, T22, T9)
p52_in_aaaga(T45, T115, T110, T22, T9) → U17_aaaga(T45, T115, T110, T22, T9, qs53_in_aa(T45, T115))
U17_aaaga(T45, T115, T110, T22, T9, qs53_out_aa(T45, T115)) → U18_aaaga(T45, T115, T110, T22, T9, app54_in_agaa(T110, T22, T115, T9))
app54_in_agaa(.(T205, T206), T207, T208, .(T205, T210)) → U15_agaa(T205, T206, T207, T208, T210, app54_in_agaa(T206, T207, T208, T210))
app54_in_agaa([], T220, T221, .(T220, T221)) → app54_out_agaa([], T220, T221, .(T220, T221))
U15_agaa(T205, T206, T207, T208, T210, app54_out_agaa(T206, T207, T208, T210)) → app54_out_agaa(.(T205, T206), T207, T208, .(T205, T210))
U18_aaaga(T45, T115, T110, T22, T9, app54_out_agaa(T110, T22, T115, T9)) → p52_out_aaaga(T45, T115, T110, T22, T9)
U30_aa(T234, T235, T236, T9, p52_out_aaaga(.(T235, T245), X10, T251, T234, T9)) → qs1_out_aa(.(T234, .(T235, T236)), T9)
qs1_in_aa(.(T260, []), T9) → U31_aa(T260, T9, qs99_in_a(X9))
qs99_in_a([]) → qs99_out_a([])
U31_aa(T260, T9, qs99_out_a(X9)) → qs1_out_aa(.(T260, []), T9)
qs1_in_aa(.(T260, []), T9) → U32_aa(T260, T9, qs99_in_a(T263))
U32_aa(T260, T9, qs99_out_a(T263)) → U33_aa(T260, T9, qs99_in_a(X10))
U33_aa(T260, T9, qs99_out_a(X10)) → qs1_out_aa(.(T260, []), T9)
U32_aa(T260, T9, qs99_out_a(T263)) → U34_aa(T260, T9, T263, qs99_in_a(T268))
U34_aa(T260, T9, T263, qs99_out_a(T268)) → U35_aa(T260, T9, app54_in_gaga(T263, T260, T268, T9))
app54_in_gaga(.(T205, T206), T207, T208, .(T205, T210)) → U15_gaga(T205, T206, T207, T208, T210, app54_in_gaga(T206, T207, T208, T210))
app54_in_gaga([], T220, T221, .(T220, T221)) → app54_out_gaga([], T220, T221, .(T220, T221))
U15_gaga(T205, T206, T207, T208, T210, app54_out_gaga(T206, T207, T208, T210)) → app54_out_gaga(.(T205, T206), T207, T208, .(T205, T210))
U35_aa(T260, T9, app54_out_gaga(T263, T260, T268, T9)) → qs1_out_aa(.(T260, []), T9)
qs1_in_aa([], []) → qs1_out_aa([], [])
U22_aa(T22, T23, T24, T9, qs1_out_aa(.(T23, T44), X9)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U21_aa(T22, T23, T24, T9, part20_out_gaaa(T22, T24, T44, T45)) → U23_aa(T22, T23, T24, T9, T45, qs1_in_aa(.(T23, T44), T110))
U23_aa(T22, T23, T24, T9, T45, qs1_out_aa(.(T23, T44), T110)) → U24_aa(T22, T23, T24, T9, p52_in_aaaga(T45, X10, T110, T22, T9))
U24_aa(T22, T23, T24, T9, p52_out_aaaga(T45, X10, T110, T22, T9)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U22_ga(T22, T23, T24, T9, qs1_out_aa(.(T23, T44), X9)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U21_ga(T22, T23, T24, T9, part20_out_ggaa(T22, T24, T44, T45)) → U23_ga(T22, T23, T24, T9, T45, qs1_in_aa(.(T23, T44), T110))
U23_ga(T22, T23, T24, T9, T45, qs1_out_aa(.(T23, T44), T110)) → U24_ga(T22, T23, T24, T9, p52_in_aaaga(T45, X10, T110, T22, T9))
U24_ga(T22, T23, T24, T9, p52_out_aaaga(T45, X10, T110, T22, T9)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
qs1_in_ga(.(T234, .(T235, T236)), T9) → U25_ga(T234, T235, T236, T9, le33_in_gg(T234, T235))
U25_ga(T234, T235, T236, T9, le33_out_gg(T234, T235)) → qs1_out_ga(.(T234, .(T235, T236)), T9)
U25_ga(T234, T235, T236, T9, le33_out_gg(T234, T235)) → U26_ga(T234, T235, T236, T9, part20_in_ggaa(T234, T236, X431, X432))
U26_ga(T234, T235, T236, T9, part20_out_ggaa(T234, T236, X431, X432)) → qs1_out_ga(.(T234, .(T235, T236)), T9)
U25_ga(T234, T235, T236, T9, le33_out_gg(T234, T235)) → U27_ga(T234, T235, T236, T9, part20_in_ggaa(T234, T236, T244, T245))
U27_ga(T234, T235, T236, T9, part20_out_ggaa(T234, T236, T244, T245)) → U28_ga(T234, T235, T236, T9, qs53_in_aa(T244, X9))
U28_ga(T234, T235, T236, T9, qs53_out_aa(T244, X9)) → qs1_out_ga(.(T234, .(T235, T236)), T9)
U27_ga(T234, T235, T236, T9, part20_out_ggaa(T234, T236, T244, T245)) → U29_ga(T234, T235, T236, T9, T245, qs53_in_aa(T244, T251))
U29_ga(T234, T235, T236, T9, T245, qs53_out_aa(T244, T251)) → U30_ga(T234, T235, T236, T9, p52_in_aaaga(.(T235, T245), X10, T251, T234, T9))
U30_ga(T234, T235, T236, T9, p52_out_aaaga(.(T235, T245), X10, T251, T234, T9)) → qs1_out_ga(.(T234, .(T235, T236)), T9)
qs1_in_ga(.(T260, []), T9) → U31_ga(T260, T9, qs99_in_a(X9))
U31_ga(T260, T9, qs99_out_a(X9)) → qs1_out_ga(.(T260, []), T9)
qs1_in_ga(.(T260, []), T9) → U32_ga(T260, T9, qs99_in_a(T263))
U32_ga(T260, T9, qs99_out_a(T263)) → U33_ga(T260, T9, qs99_in_a(X10))
U33_ga(T260, T9, qs99_out_a(X10)) → qs1_out_ga(.(T260, []), T9)
U32_ga(T260, T9, qs99_out_a(T263)) → U34_ga(T260, T9, T263, qs99_in_a(T268))
U34_ga(T260, T9, T263, qs99_out_a(T268)) → U35_ga(T260, T9, app54_in_ggga(T263, T260, T268, T9))
app54_in_ggga(.(T205, T206), T207, T208, .(T205, T210)) → U15_ggga(T205, T206, T207, T208, T210, app54_in_ggga(T206, T207, T208, T210))
app54_in_ggga([], T220, T221, .(T220, T221)) → app54_out_ggga([], T220, T221, .(T220, T221))
U15_ggga(T205, T206, T207, T208, T210, app54_out_ggga(T206, T207, T208, T210)) → app54_out_ggga(.(T205, T206), T207, T208, .(T205, T210))
U35_ga(T260, T9, app54_out_ggga(T263, T260, T268, T9)) → qs1_out_ga(.(T260, []), T9)
qs1_in_ga([], []) → qs1_out_ga([], [])
APP65_IN_AAAA(.(T166, T167), T168, T169, .(T166, X348)) → APP65_IN_AAAA(T167, T168, T169, X348)
APP65_IN_AAAA → APP65_IN_AAAA
LE33_IN_AA(s(T98), s(T99)) → LE33_IN_AA(T98, T99)
qs1_in_ga(.(T22, .(T23, T24)), T9) → U19_ga(T22, T23, T24, T9, gt10_in_gg(T22, T23))
gt10_in_gg(s(T37), s(T38)) → U1_gg(T37, T38, gt10_in_gg(T37, T38))
gt10_in_gg(s(0), 0) → gt10_out_gg(s(0), 0)
U1_gg(T37, T38, gt10_out_gg(T37, T38)) → gt10_out_gg(s(T37), s(T38))
U19_ga(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U19_ga(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → U20_ga(T22, T23, T24, T9, part20_in_ggaa(T22, T24, X47, X48))
part20_in_ggaa(T61, .(T62, T63), .(T62, X119), X120) → U2_ggaa(T61, T62, T63, X119, X120, gt10_in_gg(T61, T62))
U2_ggaa(T61, T62, T63, X119, X120, gt10_out_gg(T61, T62)) → part20_out_ggaa(T61, .(T62, T63), .(T62, X119), X120)
U2_ggaa(T61, T62, T63, X119, X120, gt10_out_gg(T61, T62)) → U3_ggaa(T61, T62, T63, X119, X120, part20_in_ggaa(T61, T63, X119, X120))
part20_in_ggaa(T83, .(T84, T85), X170, .(T84, X171)) → U4_ggaa(T83, T84, T85, X170, X171, le33_in_gg(T83, T84))
le33_in_gg(s(T98), s(T99)) → U6_gg(T98, T99, le33_in_gg(T98, T99))
le33_in_gg(0, s(0)) → le33_out_gg(0, s(0))
le33_in_gg(0, 0) → le33_out_gg(0, 0)
U6_gg(T98, T99, le33_out_gg(T98, T99)) → le33_out_gg(s(T98), s(T99))
U4_ggaa(T83, T84, T85, X170, X171, le33_out_gg(T83, T84)) → part20_out_ggaa(T83, .(T84, T85), X170, .(T84, X171))
U4_ggaa(T83, T84, T85, X170, X171, le33_out_gg(T83, T84)) → U5_ggaa(T83, T84, T85, X170, X171, part20_in_ggaa(T83, T85, X170, X171))
part20_in_ggaa(T107, [], [], []) → part20_out_ggaa(T107, [], [], [])
U5_ggaa(T83, T84, T85, X170, X171, part20_out_ggaa(T83, T85, X170, X171)) → part20_out_ggaa(T83, .(T84, T85), X170, .(T84, X171))
U3_ggaa(T61, T62, T63, X119, X120, part20_out_ggaa(T61, T63, X119, X120)) → part20_out_ggaa(T61, .(T62, T63), .(T62, X119), X120)
U20_ga(T22, T23, T24, T9, part20_out_ggaa(T22, T24, X47, X48)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U19_ga(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → U21_ga(T22, T23, T24, T9, part20_in_ggaa(T22, T24, T44, T45))
U21_ga(T22, T23, T24, T9, part20_out_ggaa(T22, T24, T44, T45)) → U22_ga(T22, T23, T24, T9, qs1_in_aa(.(T23, T44), X9))
qs1_in_aa(.(T22, .(T23, T24)), T9) → U19_aa(T22, T23, T24, T9, gt10_in_aa(T22, T23))
gt10_in_aa(s(T37), s(T38)) → U1_aa(T37, T38, gt10_in_aa(T37, T38))
gt10_in_aa(s(0), 0) → gt10_out_aa(s(0), 0)
U1_aa(T37, T38, gt10_out_aa(T37, T38)) → gt10_out_aa(s(T37), s(T38))
U19_aa(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U19_aa(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → U20_aa(T22, T23, T24, T9, part20_in_gaaa(T22, T24, X47, X48))
part20_in_gaaa(T61, .(T62, T63), .(T62, X119), X120) → U2_gaaa(T61, T62, T63, X119, X120, gt10_in_ga(T61, T62))
gt10_in_ga(s(T37), s(T38)) → U1_ga(T37, T38, gt10_in_ga(T37, T38))
gt10_in_ga(s(0), 0) → gt10_out_ga(s(0), 0)
U1_ga(T37, T38, gt10_out_ga(T37, T38)) → gt10_out_ga(s(T37), s(T38))
U2_gaaa(T61, T62, T63, X119, X120, gt10_out_ga(T61, T62)) → part20_out_gaaa(T61, .(T62, T63), .(T62, X119), X120)
U2_gaaa(T61, T62, T63, X119, X120, gt10_out_ga(T61, T62)) → U3_gaaa(T61, T62, T63, X119, X120, part20_in_gaaa(T61, T63, X119, X120))
part20_in_gaaa(T83, .(T84, T85), X170, .(T84, X171)) → U4_gaaa(T83, T84, T85, X170, X171, le33_in_ga(T83, T84))
le33_in_ga(s(T98), s(T99)) → U6_ga(T98, T99, le33_in_ga(T98, T99))
le33_in_ga(0, s(0)) → le33_out_ga(0, s(0))
le33_in_ga(0, 0) → le33_out_ga(0, 0)
U6_ga(T98, T99, le33_out_ga(T98, T99)) → le33_out_ga(s(T98), s(T99))
U4_gaaa(T83, T84, T85, X170, X171, le33_out_ga(T83, T84)) → part20_out_gaaa(T83, .(T84, T85), X170, .(T84, X171))
U4_gaaa(T83, T84, T85, X170, X171, le33_out_ga(T83, T84)) → U5_gaaa(T83, T84, T85, X170, X171, part20_in_gaaa(T83, T85, X170, X171))
part20_in_gaaa(T107, [], [], []) → part20_out_gaaa(T107, [], [], [])
U5_gaaa(T83, T84, T85, X170, X171, part20_out_gaaa(T83, T85, X170, X171)) → part20_out_gaaa(T83, .(T84, T85), X170, .(T84, X171))
U3_gaaa(T61, T62, T63, X119, X120, part20_out_gaaa(T61, T63, X119, X120)) → part20_out_gaaa(T61, .(T62, T63), .(T62, X119), X120)
U20_aa(T22, T23, T24, T9, part20_out_gaaa(T22, T24, X47, X48)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U19_aa(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → U21_aa(T22, T23, T24, T9, part20_in_gaaa(T22, T24, T44, T45))
U21_aa(T22, T23, T24, T9, part20_out_gaaa(T22, T24, T44, T45)) → U22_aa(T22, T23, T24, T9, qs1_in_aa(.(T23, T44), X9))
qs1_in_aa(.(T234, .(T235, T236)), T9) → U25_aa(T234, T235, T236, T9, le33_in_aa(T234, T235))
le33_in_aa(s(T98), s(T99)) → U6_aa(T98, T99, le33_in_aa(T98, T99))
le33_in_aa(0, s(0)) → le33_out_aa(0, s(0))
le33_in_aa(0, 0) → le33_out_aa(0, 0)
U6_aa(T98, T99, le33_out_aa(T98, T99)) → le33_out_aa(s(T98), s(T99))
U25_aa(T234, T235, T236, T9, le33_out_aa(T234, T235)) → qs1_out_aa(.(T234, .(T235, T236)), T9)
U25_aa(T234, T235, T236, T9, le33_out_aa(T234, T235)) → U26_aa(T234, T235, T236, T9, part20_in_gaaa(T234, T236, X431, X432))
U26_aa(T234, T235, T236, T9, part20_out_gaaa(T234, T236, X431, X432)) → qs1_out_aa(.(T234, .(T235, T236)), T9)
U25_aa(T234, T235, T236, T9, le33_out_aa(T234, T235)) → U27_aa(T234, T235, T236, T9, part20_in_gaaa(T234, T236, T244, T245))
U27_aa(T234, T235, T236, T9, part20_out_gaaa(T234, T236, T244, T245)) → U28_aa(T234, T235, T236, T9, qs53_in_aa(T244, X9))
qs53_in_aa(.(T126, T127), X269) → U7_aa(T126, T127, X269, part20_in_aaaa(T126, T127, X265, X266))
part20_in_aaaa(T61, .(T62, T63), .(T62, X119), X120) → U2_aaaa(T61, T62, T63, X119, X120, gt10_in_aa(T61, T62))
U2_aaaa(T61, T62, T63, X119, X120, gt10_out_aa(T61, T62)) → part20_out_aaaa(T61, .(T62, T63), .(T62, X119), X120)
U2_aaaa(T61, T62, T63, X119, X120, gt10_out_aa(T61, T62)) → U3_aaaa(T61, T62, T63, X119, X120, part20_in_gaaa(T61, T63, X119, X120))
U3_aaaa(T61, T62, T63, X119, X120, part20_out_gaaa(T61, T63, X119, X120)) → part20_out_aaaa(T61, .(T62, T63), .(T62, X119), X120)
part20_in_aaaa(T83, .(T84, T85), X170, .(T84, X171)) → U4_aaaa(T83, T84, T85, X170, X171, le33_in_aa(T83, T84))
U4_aaaa(T83, T84, T85, X170, X171, le33_out_aa(T83, T84)) → part20_out_aaaa(T83, .(T84, T85), X170, .(T84, X171))
U4_aaaa(T83, T84, T85, X170, X171, le33_out_aa(T83, T84)) → U5_aaaa(T83, T84, T85, X170, X171, part20_in_gaaa(T83, T85, X170, X171))
U5_aaaa(T83, T84, T85, X170, X171, part20_out_gaaa(T83, T85, X170, X171)) → part20_out_aaaa(T83, .(T84, T85), X170, .(T84, X171))
part20_in_aaaa(T107, [], [], []) → part20_out_aaaa(T107, [], [], [])
U7_aa(T126, T127, X269, part20_out_aaaa(T126, T127, X265, X266)) → qs53_out_aa(.(T126, T127), X269)
qs53_in_aa(.(T126, T127), X269) → U8_aa(T126, T127, X269, part20_in_aaaa(T126, T127, T131, T132))
U8_aa(T126, T127, X269, part20_out_aaaa(T126, T127, T131, T132)) → U9_aa(T126, T127, X269, qs53_in_aa(T131, X267))
qs53_in_aa([], []) → qs53_out_aa([], [])
U9_aa(T126, T127, X269, qs53_out_aa(T131, X267)) → qs53_out_aa(.(T126, T127), X269)
U8_aa(T126, T127, X269, part20_out_aaaa(T126, T127, T131, T132)) → U10_aa(T126, T127, X269, T132, qs53_in_aa(T131, T138))
U10_aa(T126, T127, X269, T132, qs53_out_aa(T131, T138)) → U11_aa(T126, T127, X269, qs53_in_aa(T132, X268))
U11_aa(T126, T127, X269, qs53_out_aa(T132, X268)) → qs53_out_aa(.(T126, T127), X269)
U10_aa(T126, T127, X269, T132, qs53_out_aa(T131, T138)) → U12_aa(T126, T127, X269, T138, qs53_in_aa(T132, T143))
U12_aa(T126, T127, X269, T138, qs53_out_aa(T132, T143)) → U13_aa(T126, T127, X269, app65_in_aaaa(T138, T126, T143, X269))
app65_in_aaaa(.(T166, T167), T168, T169, .(T166, X348)) → U14_aaaa(T166, T167, T168, T169, X348, app65_in_aaaa(T167, T168, T169, X348))
app65_in_aaaa([], T178, T179, .(T178, T179)) → app65_out_aaaa([], T178, T179, .(T178, T179))
U14_aaaa(T166, T167, T168, T169, X348, app65_out_aaaa(T167, T168, T169, X348)) → app65_out_aaaa(.(T166, T167), T168, T169, .(T166, X348))
U13_aa(T126, T127, X269, app65_out_aaaa(T138, T126, T143, X269)) → qs53_out_aa(.(T126, T127), X269)
U28_aa(T234, T235, T236, T9, qs53_out_aa(T244, X9)) → qs1_out_aa(.(T234, .(T235, T236)), T9)
U27_aa(T234, T235, T236, T9, part20_out_gaaa(T234, T236, T244, T245)) → U29_aa(T234, T235, T236, T9, T245, qs53_in_aa(T244, T251))
U29_aa(T234, T235, T236, T9, T245, qs53_out_aa(T244, T251)) → U30_aa(T234, T235, T236, T9, p52_in_aaaga(.(T235, T245), X10, T251, T234, T9))
p52_in_aaaga(T45, X10, T110, T22, T9) → U16_aaaga(T45, X10, T110, T22, T9, qs53_in_aa(T45, X10))
U16_aaaga(T45, X10, T110, T22, T9, qs53_out_aa(T45, X10)) → p52_out_aaaga(T45, X10, T110, T22, T9)
p52_in_aaaga(T45, T115, T110, T22, T9) → U17_aaaga(T45, T115, T110, T22, T9, qs53_in_aa(T45, T115))
U17_aaaga(T45, T115, T110, T22, T9, qs53_out_aa(T45, T115)) → U18_aaaga(T45, T115, T110, T22, T9, app54_in_agaa(T110, T22, T115, T9))
app54_in_agaa(.(T205, T206), T207, T208, .(T205, T210)) → U15_agaa(T205, T206, T207, T208, T210, app54_in_agaa(T206, T207, T208, T210))
app54_in_agaa([], T220, T221, .(T220, T221)) → app54_out_agaa([], T220, T221, .(T220, T221))
U15_agaa(T205, T206, T207, T208, T210, app54_out_agaa(T206, T207, T208, T210)) → app54_out_agaa(.(T205, T206), T207, T208, .(T205, T210))
U18_aaaga(T45, T115, T110, T22, T9, app54_out_agaa(T110, T22, T115, T9)) → p52_out_aaaga(T45, T115, T110, T22, T9)
U30_aa(T234, T235, T236, T9, p52_out_aaaga(.(T235, T245), X10, T251, T234, T9)) → qs1_out_aa(.(T234, .(T235, T236)), T9)
qs1_in_aa(.(T260, []), T9) → U31_aa(T260, T9, qs99_in_a(X9))
qs99_in_a([]) → qs99_out_a([])
U31_aa(T260, T9, qs99_out_a(X9)) → qs1_out_aa(.(T260, []), T9)
qs1_in_aa(.(T260, []), T9) → U32_aa(T260, T9, qs99_in_a(T263))
U32_aa(T260, T9, qs99_out_a(T263)) → U33_aa(T260, T9, qs99_in_a(X10))
U33_aa(T260, T9, qs99_out_a(X10)) → qs1_out_aa(.(T260, []), T9)
U32_aa(T260, T9, qs99_out_a(T263)) → U34_aa(T260, T9, T263, qs99_in_a(T268))
U34_aa(T260, T9, T263, qs99_out_a(T268)) → U35_aa(T260, T9, app54_in_gaga(T263, T260, T268, T9))
app54_in_gaga(.(T205, T206), T207, T208, .(T205, T210)) → U15_gaga(T205, T206, T207, T208, T210, app54_in_gaga(T206, T207, T208, T210))
app54_in_gaga([], T220, T221, .(T220, T221)) → app54_out_gaga([], T220, T221, .(T220, T221))
U15_gaga(T205, T206, T207, T208, T210, app54_out_gaga(T206, T207, T208, T210)) → app54_out_gaga(.(T205, T206), T207, T208, .(T205, T210))
U35_aa(T260, T9, app54_out_gaga(T263, T260, T268, T9)) → qs1_out_aa(.(T260, []), T9)
qs1_in_aa([], []) → qs1_out_aa([], [])
U22_aa(T22, T23, T24, T9, qs1_out_aa(.(T23, T44), X9)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U21_aa(T22, T23, T24, T9, part20_out_gaaa(T22, T24, T44, T45)) → U23_aa(T22, T23, T24, T9, T45, qs1_in_aa(.(T23, T44), T110))
U23_aa(T22, T23, T24, T9, T45, qs1_out_aa(.(T23, T44), T110)) → U24_aa(T22, T23, T24, T9, p52_in_aaaga(T45, X10, T110, T22, T9))
U24_aa(T22, T23, T24, T9, p52_out_aaaga(T45, X10, T110, T22, T9)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U22_ga(T22, T23, T24, T9, qs1_out_aa(.(T23, T44), X9)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U21_ga(T22, T23, T24, T9, part20_out_ggaa(T22, T24, T44, T45)) → U23_ga(T22, T23, T24, T9, T45, qs1_in_aa(.(T23, T44), T110))
U23_ga(T22, T23, T24, T9, T45, qs1_out_aa(.(T23, T44), T110)) → U24_ga(T22, T23, T24, T9, p52_in_aaaga(T45, X10, T110, T22, T9))
U24_ga(T22, T23, T24, T9, p52_out_aaaga(T45, X10, T110, T22, T9)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
qs1_in_ga(.(T234, .(T235, T236)), T9) → U25_ga(T234, T235, T236, T9, le33_in_gg(T234, T235))
U25_ga(T234, T235, T236, T9, le33_out_gg(T234, T235)) → qs1_out_ga(.(T234, .(T235, T236)), T9)
U25_ga(T234, T235, T236, T9, le33_out_gg(T234, T235)) → U26_ga(T234, T235, T236, T9, part20_in_ggaa(T234, T236, X431, X432))
U26_ga(T234, T235, T236, T9, part20_out_ggaa(T234, T236, X431, X432)) → qs1_out_ga(.(T234, .(T235, T236)), T9)
U25_ga(T234, T235, T236, T9, le33_out_gg(T234, T235)) → U27_ga(T234, T235, T236, T9, part20_in_ggaa(T234, T236, T244, T245))
U27_ga(T234, T235, T236, T9, part20_out_ggaa(T234, T236, T244, T245)) → U28_ga(T234, T235, T236, T9, qs53_in_aa(T244, X9))
U28_ga(T234, T235, T236, T9, qs53_out_aa(T244, X9)) → qs1_out_ga(.(T234, .(T235, T236)), T9)
U27_ga(T234, T235, T236, T9, part20_out_ggaa(T234, T236, T244, T245)) → U29_ga(T234, T235, T236, T9, T245, qs53_in_aa(T244, T251))
U29_ga(T234, T235, T236, T9, T245, qs53_out_aa(T244, T251)) → U30_ga(T234, T235, T236, T9, p52_in_aaaga(.(T235, T245), X10, T251, T234, T9))
U30_ga(T234, T235, T236, T9, p52_out_aaaga(.(T235, T245), X10, T251, T234, T9)) → qs1_out_ga(.(T234, .(T235, T236)), T9)
qs1_in_ga(.(T260, []), T9) → U31_ga(T260, T9, qs99_in_a(X9))
U31_ga(T260, T9, qs99_out_a(X9)) → qs1_out_ga(.(T260, []), T9)
qs1_in_ga(.(T260, []), T9) → U32_ga(T260, T9, qs99_in_a(T263))
U32_ga(T260, T9, qs99_out_a(T263)) → U33_ga(T260, T9, qs99_in_a(X10))
U33_ga(T260, T9, qs99_out_a(X10)) → qs1_out_ga(.(T260, []), T9)
U32_ga(T260, T9, qs99_out_a(T263)) → U34_ga(T260, T9, T263, qs99_in_a(T268))
U34_ga(T260, T9, T263, qs99_out_a(T268)) → U35_ga(T260, T9, app54_in_ggga(T263, T260, T268, T9))
app54_in_ggga(.(T205, T206), T207, T208, .(T205, T210)) → U15_ggga(T205, T206, T207, T208, T210, app54_in_ggga(T206, T207, T208, T210))
app54_in_ggga([], T220, T221, .(T220, T221)) → app54_out_ggga([], T220, T221, .(T220, T221))
U15_ggga(T205, T206, T207, T208, T210, app54_out_ggga(T206, T207, T208, T210)) → app54_out_ggga(.(T205, T206), T207, T208, .(T205, T210))
U35_ga(T260, T9, app54_out_ggga(T263, T260, T268, T9)) → qs1_out_ga(.(T260, []), T9)
qs1_in_ga([], []) → qs1_out_ga([], [])
LE33_IN_AA(s(T98), s(T99)) → LE33_IN_AA(T98, T99)
LE33_IN_AA → LE33_IN_AA
LE33_IN_GA(s(T98), s(T99)) → LE33_IN_GA(T98, T99)
qs1_in_ga(.(T22, .(T23, T24)), T9) → U19_ga(T22, T23, T24, T9, gt10_in_gg(T22, T23))
gt10_in_gg(s(T37), s(T38)) → U1_gg(T37, T38, gt10_in_gg(T37, T38))
gt10_in_gg(s(0), 0) → gt10_out_gg(s(0), 0)
U1_gg(T37, T38, gt10_out_gg(T37, T38)) → gt10_out_gg(s(T37), s(T38))
U19_ga(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U19_ga(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → U20_ga(T22, T23, T24, T9, part20_in_ggaa(T22, T24, X47, X48))
part20_in_ggaa(T61, .(T62, T63), .(T62, X119), X120) → U2_ggaa(T61, T62, T63, X119, X120, gt10_in_gg(T61, T62))
U2_ggaa(T61, T62, T63, X119, X120, gt10_out_gg(T61, T62)) → part20_out_ggaa(T61, .(T62, T63), .(T62, X119), X120)
U2_ggaa(T61, T62, T63, X119, X120, gt10_out_gg(T61, T62)) → U3_ggaa(T61, T62, T63, X119, X120, part20_in_ggaa(T61, T63, X119, X120))
part20_in_ggaa(T83, .(T84, T85), X170, .(T84, X171)) → U4_ggaa(T83, T84, T85, X170, X171, le33_in_gg(T83, T84))
le33_in_gg(s(T98), s(T99)) → U6_gg(T98, T99, le33_in_gg(T98, T99))
le33_in_gg(0, s(0)) → le33_out_gg(0, s(0))
le33_in_gg(0, 0) → le33_out_gg(0, 0)
U6_gg(T98, T99, le33_out_gg(T98, T99)) → le33_out_gg(s(T98), s(T99))
U4_ggaa(T83, T84, T85, X170, X171, le33_out_gg(T83, T84)) → part20_out_ggaa(T83, .(T84, T85), X170, .(T84, X171))
U4_ggaa(T83, T84, T85, X170, X171, le33_out_gg(T83, T84)) → U5_ggaa(T83, T84, T85, X170, X171, part20_in_ggaa(T83, T85, X170, X171))
part20_in_ggaa(T107, [], [], []) → part20_out_ggaa(T107, [], [], [])
U5_ggaa(T83, T84, T85, X170, X171, part20_out_ggaa(T83, T85, X170, X171)) → part20_out_ggaa(T83, .(T84, T85), X170, .(T84, X171))
U3_ggaa(T61, T62, T63, X119, X120, part20_out_ggaa(T61, T63, X119, X120)) → part20_out_ggaa(T61, .(T62, T63), .(T62, X119), X120)
U20_ga(T22, T23, T24, T9, part20_out_ggaa(T22, T24, X47, X48)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U19_ga(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → U21_ga(T22, T23, T24, T9, part20_in_ggaa(T22, T24, T44, T45))
U21_ga(T22, T23, T24, T9, part20_out_ggaa(T22, T24, T44, T45)) → U22_ga(T22, T23, T24, T9, qs1_in_aa(.(T23, T44), X9))
qs1_in_aa(.(T22, .(T23, T24)), T9) → U19_aa(T22, T23, T24, T9, gt10_in_aa(T22, T23))
gt10_in_aa(s(T37), s(T38)) → U1_aa(T37, T38, gt10_in_aa(T37, T38))
gt10_in_aa(s(0), 0) → gt10_out_aa(s(0), 0)
U1_aa(T37, T38, gt10_out_aa(T37, T38)) → gt10_out_aa(s(T37), s(T38))
U19_aa(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U19_aa(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → U20_aa(T22, T23, T24, T9, part20_in_gaaa(T22, T24, X47, X48))
part20_in_gaaa(T61, .(T62, T63), .(T62, X119), X120) → U2_gaaa(T61, T62, T63, X119, X120, gt10_in_ga(T61, T62))
gt10_in_ga(s(T37), s(T38)) → U1_ga(T37, T38, gt10_in_ga(T37, T38))
gt10_in_ga(s(0), 0) → gt10_out_ga(s(0), 0)
U1_ga(T37, T38, gt10_out_ga(T37, T38)) → gt10_out_ga(s(T37), s(T38))
U2_gaaa(T61, T62, T63, X119, X120, gt10_out_ga(T61, T62)) → part20_out_gaaa(T61, .(T62, T63), .(T62, X119), X120)
U2_gaaa(T61, T62, T63, X119, X120, gt10_out_ga(T61, T62)) → U3_gaaa(T61, T62, T63, X119, X120, part20_in_gaaa(T61, T63, X119, X120))
part20_in_gaaa(T83, .(T84, T85), X170, .(T84, X171)) → U4_gaaa(T83, T84, T85, X170, X171, le33_in_ga(T83, T84))
le33_in_ga(s(T98), s(T99)) → U6_ga(T98, T99, le33_in_ga(T98, T99))
le33_in_ga(0, s(0)) → le33_out_ga(0, s(0))
le33_in_ga(0, 0) → le33_out_ga(0, 0)
U6_ga(T98, T99, le33_out_ga(T98, T99)) → le33_out_ga(s(T98), s(T99))
U4_gaaa(T83, T84, T85, X170, X171, le33_out_ga(T83, T84)) → part20_out_gaaa(T83, .(T84, T85), X170, .(T84, X171))
U4_gaaa(T83, T84, T85, X170, X171, le33_out_ga(T83, T84)) → U5_gaaa(T83, T84, T85, X170, X171, part20_in_gaaa(T83, T85, X170, X171))
part20_in_gaaa(T107, [], [], []) → part20_out_gaaa(T107, [], [], [])
U5_gaaa(T83, T84, T85, X170, X171, part20_out_gaaa(T83, T85, X170, X171)) → part20_out_gaaa(T83, .(T84, T85), X170, .(T84, X171))
U3_gaaa(T61, T62, T63, X119, X120, part20_out_gaaa(T61, T63, X119, X120)) → part20_out_gaaa(T61, .(T62, T63), .(T62, X119), X120)
U20_aa(T22, T23, T24, T9, part20_out_gaaa(T22, T24, X47, X48)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U19_aa(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → U21_aa(T22, T23, T24, T9, part20_in_gaaa(T22, T24, T44, T45))
U21_aa(T22, T23, T24, T9, part20_out_gaaa(T22, T24, T44, T45)) → U22_aa(T22, T23, T24, T9, qs1_in_aa(.(T23, T44), X9))
qs1_in_aa(.(T234, .(T235, T236)), T9) → U25_aa(T234, T235, T236, T9, le33_in_aa(T234, T235))
le33_in_aa(s(T98), s(T99)) → U6_aa(T98, T99, le33_in_aa(T98, T99))
le33_in_aa(0, s(0)) → le33_out_aa(0, s(0))
le33_in_aa(0, 0) → le33_out_aa(0, 0)
U6_aa(T98, T99, le33_out_aa(T98, T99)) → le33_out_aa(s(T98), s(T99))
U25_aa(T234, T235, T236, T9, le33_out_aa(T234, T235)) → qs1_out_aa(.(T234, .(T235, T236)), T9)
U25_aa(T234, T235, T236, T9, le33_out_aa(T234, T235)) → U26_aa(T234, T235, T236, T9, part20_in_gaaa(T234, T236, X431, X432))
U26_aa(T234, T235, T236, T9, part20_out_gaaa(T234, T236, X431, X432)) → qs1_out_aa(.(T234, .(T235, T236)), T9)
U25_aa(T234, T235, T236, T9, le33_out_aa(T234, T235)) → U27_aa(T234, T235, T236, T9, part20_in_gaaa(T234, T236, T244, T245))
U27_aa(T234, T235, T236, T9, part20_out_gaaa(T234, T236, T244, T245)) → U28_aa(T234, T235, T236, T9, qs53_in_aa(T244, X9))
qs53_in_aa(.(T126, T127), X269) → U7_aa(T126, T127, X269, part20_in_aaaa(T126, T127, X265, X266))
part20_in_aaaa(T61, .(T62, T63), .(T62, X119), X120) → U2_aaaa(T61, T62, T63, X119, X120, gt10_in_aa(T61, T62))
U2_aaaa(T61, T62, T63, X119, X120, gt10_out_aa(T61, T62)) → part20_out_aaaa(T61, .(T62, T63), .(T62, X119), X120)
U2_aaaa(T61, T62, T63, X119, X120, gt10_out_aa(T61, T62)) → U3_aaaa(T61, T62, T63, X119, X120, part20_in_gaaa(T61, T63, X119, X120))
U3_aaaa(T61, T62, T63, X119, X120, part20_out_gaaa(T61, T63, X119, X120)) → part20_out_aaaa(T61, .(T62, T63), .(T62, X119), X120)
part20_in_aaaa(T83, .(T84, T85), X170, .(T84, X171)) → U4_aaaa(T83, T84, T85, X170, X171, le33_in_aa(T83, T84))
U4_aaaa(T83, T84, T85, X170, X171, le33_out_aa(T83, T84)) → part20_out_aaaa(T83, .(T84, T85), X170, .(T84, X171))
U4_aaaa(T83, T84, T85, X170, X171, le33_out_aa(T83, T84)) → U5_aaaa(T83, T84, T85, X170, X171, part20_in_gaaa(T83, T85, X170, X171))
U5_aaaa(T83, T84, T85, X170, X171, part20_out_gaaa(T83, T85, X170, X171)) → part20_out_aaaa(T83, .(T84, T85), X170, .(T84, X171))
part20_in_aaaa(T107, [], [], []) → part20_out_aaaa(T107, [], [], [])
U7_aa(T126, T127, X269, part20_out_aaaa(T126, T127, X265, X266)) → qs53_out_aa(.(T126, T127), X269)
qs53_in_aa(.(T126, T127), X269) → U8_aa(T126, T127, X269, part20_in_aaaa(T126, T127, T131, T132))
U8_aa(T126, T127, X269, part20_out_aaaa(T126, T127, T131, T132)) → U9_aa(T126, T127, X269, qs53_in_aa(T131, X267))
qs53_in_aa([], []) → qs53_out_aa([], [])
U9_aa(T126, T127, X269, qs53_out_aa(T131, X267)) → qs53_out_aa(.(T126, T127), X269)
U8_aa(T126, T127, X269, part20_out_aaaa(T126, T127, T131, T132)) → U10_aa(T126, T127, X269, T132, qs53_in_aa(T131, T138))
U10_aa(T126, T127, X269, T132, qs53_out_aa(T131, T138)) → U11_aa(T126, T127, X269, qs53_in_aa(T132, X268))
U11_aa(T126, T127, X269, qs53_out_aa(T132, X268)) → qs53_out_aa(.(T126, T127), X269)
U10_aa(T126, T127, X269, T132, qs53_out_aa(T131, T138)) → U12_aa(T126, T127, X269, T138, qs53_in_aa(T132, T143))
U12_aa(T126, T127, X269, T138, qs53_out_aa(T132, T143)) → U13_aa(T126, T127, X269, app65_in_aaaa(T138, T126, T143, X269))
app65_in_aaaa(.(T166, T167), T168, T169, .(T166, X348)) → U14_aaaa(T166, T167, T168, T169, X348, app65_in_aaaa(T167, T168, T169, X348))
app65_in_aaaa([], T178, T179, .(T178, T179)) → app65_out_aaaa([], T178, T179, .(T178, T179))
U14_aaaa(T166, T167, T168, T169, X348, app65_out_aaaa(T167, T168, T169, X348)) → app65_out_aaaa(.(T166, T167), T168, T169, .(T166, X348))
U13_aa(T126, T127, X269, app65_out_aaaa(T138, T126, T143, X269)) → qs53_out_aa(.(T126, T127), X269)
U28_aa(T234, T235, T236, T9, qs53_out_aa(T244, X9)) → qs1_out_aa(.(T234, .(T235, T236)), T9)
U27_aa(T234, T235, T236, T9, part20_out_gaaa(T234, T236, T244, T245)) → U29_aa(T234, T235, T236, T9, T245, qs53_in_aa(T244, T251))
U29_aa(T234, T235, T236, T9, T245, qs53_out_aa(T244, T251)) → U30_aa(T234, T235, T236, T9, p52_in_aaaga(.(T235, T245), X10, T251, T234, T9))
p52_in_aaaga(T45, X10, T110, T22, T9) → U16_aaaga(T45, X10, T110, T22, T9, qs53_in_aa(T45, X10))
U16_aaaga(T45, X10, T110, T22, T9, qs53_out_aa(T45, X10)) → p52_out_aaaga(T45, X10, T110, T22, T9)
p52_in_aaaga(T45, T115, T110, T22, T9) → U17_aaaga(T45, T115, T110, T22, T9, qs53_in_aa(T45, T115))
U17_aaaga(T45, T115, T110, T22, T9, qs53_out_aa(T45, T115)) → U18_aaaga(T45, T115, T110, T22, T9, app54_in_agaa(T110, T22, T115, T9))
app54_in_agaa(.(T205, T206), T207, T208, .(T205, T210)) → U15_agaa(T205, T206, T207, T208, T210, app54_in_agaa(T206, T207, T208, T210))
app54_in_agaa([], T220, T221, .(T220, T221)) → app54_out_agaa([], T220, T221, .(T220, T221))
U15_agaa(T205, T206, T207, T208, T210, app54_out_agaa(T206, T207, T208, T210)) → app54_out_agaa(.(T205, T206), T207, T208, .(T205, T210))
U18_aaaga(T45, T115, T110, T22, T9, app54_out_agaa(T110, T22, T115, T9)) → p52_out_aaaga(T45, T115, T110, T22, T9)
U30_aa(T234, T235, T236, T9, p52_out_aaaga(.(T235, T245), X10, T251, T234, T9)) → qs1_out_aa(.(T234, .(T235, T236)), T9)
qs1_in_aa(.(T260, []), T9) → U31_aa(T260, T9, qs99_in_a(X9))
qs99_in_a([]) → qs99_out_a([])
U31_aa(T260, T9, qs99_out_a(X9)) → qs1_out_aa(.(T260, []), T9)
qs1_in_aa(.(T260, []), T9) → U32_aa(T260, T9, qs99_in_a(T263))
U32_aa(T260, T9, qs99_out_a(T263)) → U33_aa(T260, T9, qs99_in_a(X10))
U33_aa(T260, T9, qs99_out_a(X10)) → qs1_out_aa(.(T260, []), T9)
U32_aa(T260, T9, qs99_out_a(T263)) → U34_aa(T260, T9, T263, qs99_in_a(T268))
U34_aa(T260, T9, T263, qs99_out_a(T268)) → U35_aa(T260, T9, app54_in_gaga(T263, T260, T268, T9))
app54_in_gaga(.(T205, T206), T207, T208, .(T205, T210)) → U15_gaga(T205, T206, T207, T208, T210, app54_in_gaga(T206, T207, T208, T210))
app54_in_gaga([], T220, T221, .(T220, T221)) → app54_out_gaga([], T220, T221, .(T220, T221))
U15_gaga(T205, T206, T207, T208, T210, app54_out_gaga(T206, T207, T208, T210)) → app54_out_gaga(.(T205, T206), T207, T208, .(T205, T210))
U35_aa(T260, T9, app54_out_gaga(T263, T260, T268, T9)) → qs1_out_aa(.(T260, []), T9)
qs1_in_aa([], []) → qs1_out_aa([], [])
U22_aa(T22, T23, T24, T9, qs1_out_aa(.(T23, T44), X9)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U21_aa(T22, T23, T24, T9, part20_out_gaaa(T22, T24, T44, T45)) → U23_aa(T22, T23, T24, T9, T45, qs1_in_aa(.(T23, T44), T110))
U23_aa(T22, T23, T24, T9, T45, qs1_out_aa(.(T23, T44), T110)) → U24_aa(T22, T23, T24, T9, p52_in_aaaga(T45, X10, T110, T22, T9))
U24_aa(T22, T23, T24, T9, p52_out_aaaga(T45, X10, T110, T22, T9)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U22_ga(T22, T23, T24, T9, qs1_out_aa(.(T23, T44), X9)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U21_ga(T22, T23, T24, T9, part20_out_ggaa(T22, T24, T44, T45)) → U23_ga(T22, T23, T24, T9, T45, qs1_in_aa(.(T23, T44), T110))
U23_ga(T22, T23, T24, T9, T45, qs1_out_aa(.(T23, T44), T110)) → U24_ga(T22, T23, T24, T9, p52_in_aaaga(T45, X10, T110, T22, T9))
U24_ga(T22, T23, T24, T9, p52_out_aaaga(T45, X10, T110, T22, T9)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
qs1_in_ga(.(T234, .(T235, T236)), T9) → U25_ga(T234, T235, T236, T9, le33_in_gg(T234, T235))
U25_ga(T234, T235, T236, T9, le33_out_gg(T234, T235)) → qs1_out_ga(.(T234, .(T235, T236)), T9)
U25_ga(T234, T235, T236, T9, le33_out_gg(T234, T235)) → U26_ga(T234, T235, T236, T9, part20_in_ggaa(T234, T236, X431, X432))
U26_ga(T234, T235, T236, T9, part20_out_ggaa(T234, T236, X431, X432)) → qs1_out_ga(.(T234, .(T235, T236)), T9)
U25_ga(T234, T235, T236, T9, le33_out_gg(T234, T235)) → U27_ga(T234, T235, T236, T9, part20_in_ggaa(T234, T236, T244, T245))
U27_ga(T234, T235, T236, T9, part20_out_ggaa(T234, T236, T244, T245)) → U28_ga(T234, T235, T236, T9, qs53_in_aa(T244, X9))
U28_ga(T234, T235, T236, T9, qs53_out_aa(T244, X9)) → qs1_out_ga(.(T234, .(T235, T236)), T9)
U27_ga(T234, T235, T236, T9, part20_out_ggaa(T234, T236, T244, T245)) → U29_ga(T234, T235, T236, T9, T245, qs53_in_aa(T244, T251))
U29_ga(T234, T235, T236, T9, T245, qs53_out_aa(T244, T251)) → U30_ga(T234, T235, T236, T9, p52_in_aaaga(.(T235, T245), X10, T251, T234, T9))
U30_ga(T234, T235, T236, T9, p52_out_aaaga(.(T235, T245), X10, T251, T234, T9)) → qs1_out_ga(.(T234, .(T235, T236)), T9)
qs1_in_ga(.(T260, []), T9) → U31_ga(T260, T9, qs99_in_a(X9))
U31_ga(T260, T9, qs99_out_a(X9)) → qs1_out_ga(.(T260, []), T9)
qs1_in_ga(.(T260, []), T9) → U32_ga(T260, T9, qs99_in_a(T263))
U32_ga(T260, T9, qs99_out_a(T263)) → U33_ga(T260, T9, qs99_in_a(X10))
U33_ga(T260, T9, qs99_out_a(X10)) → qs1_out_ga(.(T260, []), T9)
U32_ga(T260, T9, qs99_out_a(T263)) → U34_ga(T260, T9, T263, qs99_in_a(T268))
U34_ga(T260, T9, T263, qs99_out_a(T268)) → U35_ga(T260, T9, app54_in_ggga(T263, T260, T268, T9))
app54_in_ggga(.(T205, T206), T207, T208, .(T205, T210)) → U15_ggga(T205, T206, T207, T208, T210, app54_in_ggga(T206, T207, T208, T210))
app54_in_ggga([], T220, T221, .(T220, T221)) → app54_out_ggga([], T220, T221, .(T220, T221))
U15_ggga(T205, T206, T207, T208, T210, app54_out_ggga(T206, T207, T208, T210)) → app54_out_ggga(.(T205, T206), T207, T208, .(T205, T210))
U35_ga(T260, T9, app54_out_ggga(T263, T260, T268, T9)) → qs1_out_ga(.(T260, []), T9)
qs1_in_ga([], []) → qs1_out_ga([], [])
LE33_IN_GA(s(T98), s(T99)) → LE33_IN_GA(T98, T99)
LE33_IN_GA(s(T98)) → LE33_IN_GA(T98)
From the DPs we obtained the following set of size-change graphs:
GT10_IN_GA(s(T37), s(T38)) → GT10_IN_GA(T37, T38)
qs1_in_ga(.(T22, .(T23, T24)), T9) → U19_ga(T22, T23, T24, T9, gt10_in_gg(T22, T23))
gt10_in_gg(s(T37), s(T38)) → U1_gg(T37, T38, gt10_in_gg(T37, T38))
gt10_in_gg(s(0), 0) → gt10_out_gg(s(0), 0)
U1_gg(T37, T38, gt10_out_gg(T37, T38)) → gt10_out_gg(s(T37), s(T38))
U19_ga(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U19_ga(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → U20_ga(T22, T23, T24, T9, part20_in_ggaa(T22, T24, X47, X48))
part20_in_ggaa(T61, .(T62, T63), .(T62, X119), X120) → U2_ggaa(T61, T62, T63, X119, X120, gt10_in_gg(T61, T62))
U2_ggaa(T61, T62, T63, X119, X120, gt10_out_gg(T61, T62)) → part20_out_ggaa(T61, .(T62, T63), .(T62, X119), X120)
U2_ggaa(T61, T62, T63, X119, X120, gt10_out_gg(T61, T62)) → U3_ggaa(T61, T62, T63, X119, X120, part20_in_ggaa(T61, T63, X119, X120))
part20_in_ggaa(T83, .(T84, T85), X170, .(T84, X171)) → U4_ggaa(T83, T84, T85, X170, X171, le33_in_gg(T83, T84))
le33_in_gg(s(T98), s(T99)) → U6_gg(T98, T99, le33_in_gg(T98, T99))
le33_in_gg(0, s(0)) → le33_out_gg(0, s(0))
le33_in_gg(0, 0) → le33_out_gg(0, 0)
U6_gg(T98, T99, le33_out_gg(T98, T99)) → le33_out_gg(s(T98), s(T99))
U4_ggaa(T83, T84, T85, X170, X171, le33_out_gg(T83, T84)) → part20_out_ggaa(T83, .(T84, T85), X170, .(T84, X171))
U4_ggaa(T83, T84, T85, X170, X171, le33_out_gg(T83, T84)) → U5_ggaa(T83, T84, T85, X170, X171, part20_in_ggaa(T83, T85, X170, X171))
part20_in_ggaa(T107, [], [], []) → part20_out_ggaa(T107, [], [], [])
U5_ggaa(T83, T84, T85, X170, X171, part20_out_ggaa(T83, T85, X170, X171)) → part20_out_ggaa(T83, .(T84, T85), X170, .(T84, X171))
U3_ggaa(T61, T62, T63, X119, X120, part20_out_ggaa(T61, T63, X119, X120)) → part20_out_ggaa(T61, .(T62, T63), .(T62, X119), X120)
U20_ga(T22, T23, T24, T9, part20_out_ggaa(T22, T24, X47, X48)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U19_ga(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → U21_ga(T22, T23, T24, T9, part20_in_ggaa(T22, T24, T44, T45))
U21_ga(T22, T23, T24, T9, part20_out_ggaa(T22, T24, T44, T45)) → U22_ga(T22, T23, T24, T9, qs1_in_aa(.(T23, T44), X9))
qs1_in_aa(.(T22, .(T23, T24)), T9) → U19_aa(T22, T23, T24, T9, gt10_in_aa(T22, T23))
gt10_in_aa(s(T37), s(T38)) → U1_aa(T37, T38, gt10_in_aa(T37, T38))
gt10_in_aa(s(0), 0) → gt10_out_aa(s(0), 0)
U1_aa(T37, T38, gt10_out_aa(T37, T38)) → gt10_out_aa(s(T37), s(T38))
U19_aa(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U19_aa(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → U20_aa(T22, T23, T24, T9, part20_in_gaaa(T22, T24, X47, X48))
part20_in_gaaa(T61, .(T62, T63), .(T62, X119), X120) → U2_gaaa(T61, T62, T63, X119, X120, gt10_in_ga(T61, T62))
gt10_in_ga(s(T37), s(T38)) → U1_ga(T37, T38, gt10_in_ga(T37, T38))
gt10_in_ga(s(0), 0) → gt10_out_ga(s(0), 0)
U1_ga(T37, T38, gt10_out_ga(T37, T38)) → gt10_out_ga(s(T37), s(T38))
U2_gaaa(T61, T62, T63, X119, X120, gt10_out_ga(T61, T62)) → part20_out_gaaa(T61, .(T62, T63), .(T62, X119), X120)
U2_gaaa(T61, T62, T63, X119, X120, gt10_out_ga(T61, T62)) → U3_gaaa(T61, T62, T63, X119, X120, part20_in_gaaa(T61, T63, X119, X120))
part20_in_gaaa(T83, .(T84, T85), X170, .(T84, X171)) → U4_gaaa(T83, T84, T85, X170, X171, le33_in_ga(T83, T84))
le33_in_ga(s(T98), s(T99)) → U6_ga(T98, T99, le33_in_ga(T98, T99))
le33_in_ga(0, s(0)) → le33_out_ga(0, s(0))
le33_in_ga(0, 0) → le33_out_ga(0, 0)
U6_ga(T98, T99, le33_out_ga(T98, T99)) → le33_out_ga(s(T98), s(T99))
U4_gaaa(T83, T84, T85, X170, X171, le33_out_ga(T83, T84)) → part20_out_gaaa(T83, .(T84, T85), X170, .(T84, X171))
U4_gaaa(T83, T84, T85, X170, X171, le33_out_ga(T83, T84)) → U5_gaaa(T83, T84, T85, X170, X171, part20_in_gaaa(T83, T85, X170, X171))
part20_in_gaaa(T107, [], [], []) → part20_out_gaaa(T107, [], [], [])
U5_gaaa(T83, T84, T85, X170, X171, part20_out_gaaa(T83, T85, X170, X171)) → part20_out_gaaa(T83, .(T84, T85), X170, .(T84, X171))
U3_gaaa(T61, T62, T63, X119, X120, part20_out_gaaa(T61, T63, X119, X120)) → part20_out_gaaa(T61, .(T62, T63), .(T62, X119), X120)
U20_aa(T22, T23, T24, T9, part20_out_gaaa(T22, T24, X47, X48)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U19_aa(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → U21_aa(T22, T23, T24, T9, part20_in_gaaa(T22, T24, T44, T45))
U21_aa(T22, T23, T24, T9, part20_out_gaaa(T22, T24, T44, T45)) → U22_aa(T22, T23, T24, T9, qs1_in_aa(.(T23, T44), X9))
qs1_in_aa(.(T234, .(T235, T236)), T9) → U25_aa(T234, T235, T236, T9, le33_in_aa(T234, T235))
le33_in_aa(s(T98), s(T99)) → U6_aa(T98, T99, le33_in_aa(T98, T99))
le33_in_aa(0, s(0)) → le33_out_aa(0, s(0))
le33_in_aa(0, 0) → le33_out_aa(0, 0)
U6_aa(T98, T99, le33_out_aa(T98, T99)) → le33_out_aa(s(T98), s(T99))
U25_aa(T234, T235, T236, T9, le33_out_aa(T234, T235)) → qs1_out_aa(.(T234, .(T235, T236)), T9)
U25_aa(T234, T235, T236, T9, le33_out_aa(T234, T235)) → U26_aa(T234, T235, T236, T9, part20_in_gaaa(T234, T236, X431, X432))
U26_aa(T234, T235, T236, T9, part20_out_gaaa(T234, T236, X431, X432)) → qs1_out_aa(.(T234, .(T235, T236)), T9)
U25_aa(T234, T235, T236, T9, le33_out_aa(T234, T235)) → U27_aa(T234, T235, T236, T9, part20_in_gaaa(T234, T236, T244, T245))
U27_aa(T234, T235, T236, T9, part20_out_gaaa(T234, T236, T244, T245)) → U28_aa(T234, T235, T236, T9, qs53_in_aa(T244, X9))
qs53_in_aa(.(T126, T127), X269) → U7_aa(T126, T127, X269, part20_in_aaaa(T126, T127, X265, X266))
part20_in_aaaa(T61, .(T62, T63), .(T62, X119), X120) → U2_aaaa(T61, T62, T63, X119, X120, gt10_in_aa(T61, T62))
U2_aaaa(T61, T62, T63, X119, X120, gt10_out_aa(T61, T62)) → part20_out_aaaa(T61, .(T62, T63), .(T62, X119), X120)
U2_aaaa(T61, T62, T63, X119, X120, gt10_out_aa(T61, T62)) → U3_aaaa(T61, T62, T63, X119, X120, part20_in_gaaa(T61, T63, X119, X120))
U3_aaaa(T61, T62, T63, X119, X120, part20_out_gaaa(T61, T63, X119, X120)) → part20_out_aaaa(T61, .(T62, T63), .(T62, X119), X120)
part20_in_aaaa(T83, .(T84, T85), X170, .(T84, X171)) → U4_aaaa(T83, T84, T85, X170, X171, le33_in_aa(T83, T84))
U4_aaaa(T83, T84, T85, X170, X171, le33_out_aa(T83, T84)) → part20_out_aaaa(T83, .(T84, T85), X170, .(T84, X171))
U4_aaaa(T83, T84, T85, X170, X171, le33_out_aa(T83, T84)) → U5_aaaa(T83, T84, T85, X170, X171, part20_in_gaaa(T83, T85, X170, X171))
U5_aaaa(T83, T84, T85, X170, X171, part20_out_gaaa(T83, T85, X170, X171)) → part20_out_aaaa(T83, .(T84, T85), X170, .(T84, X171))
part20_in_aaaa(T107, [], [], []) → part20_out_aaaa(T107, [], [], [])
U7_aa(T126, T127, X269, part20_out_aaaa(T126, T127, X265, X266)) → qs53_out_aa(.(T126, T127), X269)
qs53_in_aa(.(T126, T127), X269) → U8_aa(T126, T127, X269, part20_in_aaaa(T126, T127, T131, T132))
U8_aa(T126, T127, X269, part20_out_aaaa(T126, T127, T131, T132)) → U9_aa(T126, T127, X269, qs53_in_aa(T131, X267))
qs53_in_aa([], []) → qs53_out_aa([], [])
U9_aa(T126, T127, X269, qs53_out_aa(T131, X267)) → qs53_out_aa(.(T126, T127), X269)
U8_aa(T126, T127, X269, part20_out_aaaa(T126, T127, T131, T132)) → U10_aa(T126, T127, X269, T132, qs53_in_aa(T131, T138))
U10_aa(T126, T127, X269, T132, qs53_out_aa(T131, T138)) → U11_aa(T126, T127, X269, qs53_in_aa(T132, X268))
U11_aa(T126, T127, X269, qs53_out_aa(T132, X268)) → qs53_out_aa(.(T126, T127), X269)
U10_aa(T126, T127, X269, T132, qs53_out_aa(T131, T138)) → U12_aa(T126, T127, X269, T138, qs53_in_aa(T132, T143))
U12_aa(T126, T127, X269, T138, qs53_out_aa(T132, T143)) → U13_aa(T126, T127, X269, app65_in_aaaa(T138, T126, T143, X269))
app65_in_aaaa(.(T166, T167), T168, T169, .(T166, X348)) → U14_aaaa(T166, T167, T168, T169, X348, app65_in_aaaa(T167, T168, T169, X348))
app65_in_aaaa([], T178, T179, .(T178, T179)) → app65_out_aaaa([], T178, T179, .(T178, T179))
U14_aaaa(T166, T167, T168, T169, X348, app65_out_aaaa(T167, T168, T169, X348)) → app65_out_aaaa(.(T166, T167), T168, T169, .(T166, X348))
U13_aa(T126, T127, X269, app65_out_aaaa(T138, T126, T143, X269)) → qs53_out_aa(.(T126, T127), X269)
U28_aa(T234, T235, T236, T9, qs53_out_aa(T244, X9)) → qs1_out_aa(.(T234, .(T235, T236)), T9)
U27_aa(T234, T235, T236, T9, part20_out_gaaa(T234, T236, T244, T245)) → U29_aa(T234, T235, T236, T9, T245, qs53_in_aa(T244, T251))
U29_aa(T234, T235, T236, T9, T245, qs53_out_aa(T244, T251)) → U30_aa(T234, T235, T236, T9, p52_in_aaaga(.(T235, T245), X10, T251, T234, T9))
p52_in_aaaga(T45, X10, T110, T22, T9) → U16_aaaga(T45, X10, T110, T22, T9, qs53_in_aa(T45, X10))
U16_aaaga(T45, X10, T110, T22, T9, qs53_out_aa(T45, X10)) → p52_out_aaaga(T45, X10, T110, T22, T9)
p52_in_aaaga(T45, T115, T110, T22, T9) → U17_aaaga(T45, T115, T110, T22, T9, qs53_in_aa(T45, T115))
U17_aaaga(T45, T115, T110, T22, T9, qs53_out_aa(T45, T115)) → U18_aaaga(T45, T115, T110, T22, T9, app54_in_agaa(T110, T22, T115, T9))
app54_in_agaa(.(T205, T206), T207, T208, .(T205, T210)) → U15_agaa(T205, T206, T207, T208, T210, app54_in_agaa(T206, T207, T208, T210))
app54_in_agaa([], T220, T221, .(T220, T221)) → app54_out_agaa([], T220, T221, .(T220, T221))
U15_agaa(T205, T206, T207, T208, T210, app54_out_agaa(T206, T207, T208, T210)) → app54_out_agaa(.(T205, T206), T207, T208, .(T205, T210))
U18_aaaga(T45, T115, T110, T22, T9, app54_out_agaa(T110, T22, T115, T9)) → p52_out_aaaga(T45, T115, T110, T22, T9)
U30_aa(T234, T235, T236, T9, p52_out_aaaga(.(T235, T245), X10, T251, T234, T9)) → qs1_out_aa(.(T234, .(T235, T236)), T9)
qs1_in_aa(.(T260, []), T9) → U31_aa(T260, T9, qs99_in_a(X9))
qs99_in_a([]) → qs99_out_a([])
U31_aa(T260, T9, qs99_out_a(X9)) → qs1_out_aa(.(T260, []), T9)
qs1_in_aa(.(T260, []), T9) → U32_aa(T260, T9, qs99_in_a(T263))
U32_aa(T260, T9, qs99_out_a(T263)) → U33_aa(T260, T9, qs99_in_a(X10))
U33_aa(T260, T9, qs99_out_a(X10)) → qs1_out_aa(.(T260, []), T9)
U32_aa(T260, T9, qs99_out_a(T263)) → U34_aa(T260, T9, T263, qs99_in_a(T268))
U34_aa(T260, T9, T263, qs99_out_a(T268)) → U35_aa(T260, T9, app54_in_gaga(T263, T260, T268, T9))
app54_in_gaga(.(T205, T206), T207, T208, .(T205, T210)) → U15_gaga(T205, T206, T207, T208, T210, app54_in_gaga(T206, T207, T208, T210))
app54_in_gaga([], T220, T221, .(T220, T221)) → app54_out_gaga([], T220, T221, .(T220, T221))
U15_gaga(T205, T206, T207, T208, T210, app54_out_gaga(T206, T207, T208, T210)) → app54_out_gaga(.(T205, T206), T207, T208, .(T205, T210))
U35_aa(T260, T9, app54_out_gaga(T263, T260, T268, T9)) → qs1_out_aa(.(T260, []), T9)
qs1_in_aa([], []) → qs1_out_aa([], [])
U22_aa(T22, T23, T24, T9, qs1_out_aa(.(T23, T44), X9)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U21_aa(T22, T23, T24, T9, part20_out_gaaa(T22, T24, T44, T45)) → U23_aa(T22, T23, T24, T9, T45, qs1_in_aa(.(T23, T44), T110))
U23_aa(T22, T23, T24, T9, T45, qs1_out_aa(.(T23, T44), T110)) → U24_aa(T22, T23, T24, T9, p52_in_aaaga(T45, X10, T110, T22, T9))
U24_aa(T22, T23, T24, T9, p52_out_aaaga(T45, X10, T110, T22, T9)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U22_ga(T22, T23, T24, T9, qs1_out_aa(.(T23, T44), X9)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U21_ga(T22, T23, T24, T9, part20_out_ggaa(T22, T24, T44, T45)) → U23_ga(T22, T23, T24, T9, T45, qs1_in_aa(.(T23, T44), T110))
U23_ga(T22, T23, T24, T9, T45, qs1_out_aa(.(T23, T44), T110)) → U24_ga(T22, T23, T24, T9, p52_in_aaaga(T45, X10, T110, T22, T9))
U24_ga(T22, T23, T24, T9, p52_out_aaaga(T45, X10, T110, T22, T9)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
qs1_in_ga(.(T234, .(T235, T236)), T9) → U25_ga(T234, T235, T236, T9, le33_in_gg(T234, T235))
U25_ga(T234, T235, T236, T9, le33_out_gg(T234, T235)) → qs1_out_ga(.(T234, .(T235, T236)), T9)
U25_ga(T234, T235, T236, T9, le33_out_gg(T234, T235)) → U26_ga(T234, T235, T236, T9, part20_in_ggaa(T234, T236, X431, X432))
U26_ga(T234, T235, T236, T9, part20_out_ggaa(T234, T236, X431, X432)) → qs1_out_ga(.(T234, .(T235, T236)), T9)
U25_ga(T234, T235, T236, T9, le33_out_gg(T234, T235)) → U27_ga(T234, T235, T236, T9, part20_in_ggaa(T234, T236, T244, T245))
U27_ga(T234, T235, T236, T9, part20_out_ggaa(T234, T236, T244, T245)) → U28_ga(T234, T235, T236, T9, qs53_in_aa(T244, X9))
U28_ga(T234, T235, T236, T9, qs53_out_aa(T244, X9)) → qs1_out_ga(.(T234, .(T235, T236)), T9)
U27_ga(T234, T235, T236, T9, part20_out_ggaa(T234, T236, T244, T245)) → U29_ga(T234, T235, T236, T9, T245, qs53_in_aa(T244, T251))
U29_ga(T234, T235, T236, T9, T245, qs53_out_aa(T244, T251)) → U30_ga(T234, T235, T236, T9, p52_in_aaaga(.(T235, T245), X10, T251, T234, T9))
U30_ga(T234, T235, T236, T9, p52_out_aaaga(.(T235, T245), X10, T251, T234, T9)) → qs1_out_ga(.(T234, .(T235, T236)), T9)
qs1_in_ga(.(T260, []), T9) → U31_ga(T260, T9, qs99_in_a(X9))
U31_ga(T260, T9, qs99_out_a(X9)) → qs1_out_ga(.(T260, []), T9)
qs1_in_ga(.(T260, []), T9) → U32_ga(T260, T9, qs99_in_a(T263))
U32_ga(T260, T9, qs99_out_a(T263)) → U33_ga(T260, T9, qs99_in_a(X10))
U33_ga(T260, T9, qs99_out_a(X10)) → qs1_out_ga(.(T260, []), T9)
U32_ga(T260, T9, qs99_out_a(T263)) → U34_ga(T260, T9, T263, qs99_in_a(T268))
U34_ga(T260, T9, T263, qs99_out_a(T268)) → U35_ga(T260, T9, app54_in_ggga(T263, T260, T268, T9))
app54_in_ggga(.(T205, T206), T207, T208, .(T205, T210)) → U15_ggga(T205, T206, T207, T208, T210, app54_in_ggga(T206, T207, T208, T210))
app54_in_ggga([], T220, T221, .(T220, T221)) → app54_out_ggga([], T220, T221, .(T220, T221))
U15_ggga(T205, T206, T207, T208, T210, app54_out_ggga(T206, T207, T208, T210)) → app54_out_ggga(.(T205, T206), T207, T208, .(T205, T210))
U35_ga(T260, T9, app54_out_ggga(T263, T260, T268, T9)) → qs1_out_ga(.(T260, []), T9)
qs1_in_ga([], []) → qs1_out_ga([], [])
GT10_IN_GA(s(T37), s(T38)) → GT10_IN_GA(T37, T38)
GT10_IN_GA(s(T37)) → GT10_IN_GA(T37)
From the DPs we obtained the following set of size-change graphs:
U2_GAAA(T61, T62, T63, X119, X120, gt10_out_ga(T61, T62)) → PART20_IN_GAAA(T61, T63, X119, X120)
PART20_IN_GAAA(T61, .(T62, T63), .(T62, X119), X120) → U2_GAAA(T61, T62, T63, X119, X120, gt10_in_ga(T61, T62))
PART20_IN_GAAA(T83, .(T84, T85), X170, .(T84, X171)) → U4_GAAA(T83, T84, T85, X170, X171, le33_in_ga(T83, T84))
U4_GAAA(T83, T84, T85, X170, X171, le33_out_ga(T83, T84)) → PART20_IN_GAAA(T83, T85, X170, X171)
qs1_in_ga(.(T22, .(T23, T24)), T9) → U19_ga(T22, T23, T24, T9, gt10_in_gg(T22, T23))
gt10_in_gg(s(T37), s(T38)) → U1_gg(T37, T38, gt10_in_gg(T37, T38))
gt10_in_gg(s(0), 0) → gt10_out_gg(s(0), 0)
U1_gg(T37, T38, gt10_out_gg(T37, T38)) → gt10_out_gg(s(T37), s(T38))
U19_ga(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U19_ga(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → U20_ga(T22, T23, T24, T9, part20_in_ggaa(T22, T24, X47, X48))
part20_in_ggaa(T61, .(T62, T63), .(T62, X119), X120) → U2_ggaa(T61, T62, T63, X119, X120, gt10_in_gg(T61, T62))
U2_ggaa(T61, T62, T63, X119, X120, gt10_out_gg(T61, T62)) → part20_out_ggaa(T61, .(T62, T63), .(T62, X119), X120)
U2_ggaa(T61, T62, T63, X119, X120, gt10_out_gg(T61, T62)) → U3_ggaa(T61, T62, T63, X119, X120, part20_in_ggaa(T61, T63, X119, X120))
part20_in_ggaa(T83, .(T84, T85), X170, .(T84, X171)) → U4_ggaa(T83, T84, T85, X170, X171, le33_in_gg(T83, T84))
le33_in_gg(s(T98), s(T99)) → U6_gg(T98, T99, le33_in_gg(T98, T99))
le33_in_gg(0, s(0)) → le33_out_gg(0, s(0))
le33_in_gg(0, 0) → le33_out_gg(0, 0)
U6_gg(T98, T99, le33_out_gg(T98, T99)) → le33_out_gg(s(T98), s(T99))
U4_ggaa(T83, T84, T85, X170, X171, le33_out_gg(T83, T84)) → part20_out_ggaa(T83, .(T84, T85), X170, .(T84, X171))
U4_ggaa(T83, T84, T85, X170, X171, le33_out_gg(T83, T84)) → U5_ggaa(T83, T84, T85, X170, X171, part20_in_ggaa(T83, T85, X170, X171))
part20_in_ggaa(T107, [], [], []) → part20_out_ggaa(T107, [], [], [])
U5_ggaa(T83, T84, T85, X170, X171, part20_out_ggaa(T83, T85, X170, X171)) → part20_out_ggaa(T83, .(T84, T85), X170, .(T84, X171))
U3_ggaa(T61, T62, T63, X119, X120, part20_out_ggaa(T61, T63, X119, X120)) → part20_out_ggaa(T61, .(T62, T63), .(T62, X119), X120)
U20_ga(T22, T23, T24, T9, part20_out_ggaa(T22, T24, X47, X48)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U19_ga(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → U21_ga(T22, T23, T24, T9, part20_in_ggaa(T22, T24, T44, T45))
U21_ga(T22, T23, T24, T9, part20_out_ggaa(T22, T24, T44, T45)) → U22_ga(T22, T23, T24, T9, qs1_in_aa(.(T23, T44), X9))
qs1_in_aa(.(T22, .(T23, T24)), T9) → U19_aa(T22, T23, T24, T9, gt10_in_aa(T22, T23))
gt10_in_aa(s(T37), s(T38)) → U1_aa(T37, T38, gt10_in_aa(T37, T38))
gt10_in_aa(s(0), 0) → gt10_out_aa(s(0), 0)
U1_aa(T37, T38, gt10_out_aa(T37, T38)) → gt10_out_aa(s(T37), s(T38))
U19_aa(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U19_aa(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → U20_aa(T22, T23, T24, T9, part20_in_gaaa(T22, T24, X47, X48))
part20_in_gaaa(T61, .(T62, T63), .(T62, X119), X120) → U2_gaaa(T61, T62, T63, X119, X120, gt10_in_ga(T61, T62))
gt10_in_ga(s(T37), s(T38)) → U1_ga(T37, T38, gt10_in_ga(T37, T38))
gt10_in_ga(s(0), 0) → gt10_out_ga(s(0), 0)
U1_ga(T37, T38, gt10_out_ga(T37, T38)) → gt10_out_ga(s(T37), s(T38))
U2_gaaa(T61, T62, T63, X119, X120, gt10_out_ga(T61, T62)) → part20_out_gaaa(T61, .(T62, T63), .(T62, X119), X120)
U2_gaaa(T61, T62, T63, X119, X120, gt10_out_ga(T61, T62)) → U3_gaaa(T61, T62, T63, X119, X120, part20_in_gaaa(T61, T63, X119, X120))
part20_in_gaaa(T83, .(T84, T85), X170, .(T84, X171)) → U4_gaaa(T83, T84, T85, X170, X171, le33_in_ga(T83, T84))
le33_in_ga(s(T98), s(T99)) → U6_ga(T98, T99, le33_in_ga(T98, T99))
le33_in_ga(0, s(0)) → le33_out_ga(0, s(0))
le33_in_ga(0, 0) → le33_out_ga(0, 0)
U6_ga(T98, T99, le33_out_ga(T98, T99)) → le33_out_ga(s(T98), s(T99))
U4_gaaa(T83, T84, T85, X170, X171, le33_out_ga(T83, T84)) → part20_out_gaaa(T83, .(T84, T85), X170, .(T84, X171))
U4_gaaa(T83, T84, T85, X170, X171, le33_out_ga(T83, T84)) → U5_gaaa(T83, T84, T85, X170, X171, part20_in_gaaa(T83, T85, X170, X171))
part20_in_gaaa(T107, [], [], []) → part20_out_gaaa(T107, [], [], [])
U5_gaaa(T83, T84, T85, X170, X171, part20_out_gaaa(T83, T85, X170, X171)) → part20_out_gaaa(T83, .(T84, T85), X170, .(T84, X171))
U3_gaaa(T61, T62, T63, X119, X120, part20_out_gaaa(T61, T63, X119, X120)) → part20_out_gaaa(T61, .(T62, T63), .(T62, X119), X120)
U20_aa(T22, T23, T24, T9, part20_out_gaaa(T22, T24, X47, X48)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U19_aa(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → U21_aa(T22, T23, T24, T9, part20_in_gaaa(T22, T24, T44, T45))
U21_aa(T22, T23, T24, T9, part20_out_gaaa(T22, T24, T44, T45)) → U22_aa(T22, T23, T24, T9, qs1_in_aa(.(T23, T44), X9))
qs1_in_aa(.(T234, .(T235, T236)), T9) → U25_aa(T234, T235, T236, T9, le33_in_aa(T234, T235))
le33_in_aa(s(T98), s(T99)) → U6_aa(T98, T99, le33_in_aa(T98, T99))
le33_in_aa(0, s(0)) → le33_out_aa(0, s(0))
le33_in_aa(0, 0) → le33_out_aa(0, 0)
U6_aa(T98, T99, le33_out_aa(T98, T99)) → le33_out_aa(s(T98), s(T99))
U25_aa(T234, T235, T236, T9, le33_out_aa(T234, T235)) → qs1_out_aa(.(T234, .(T235, T236)), T9)
U25_aa(T234, T235, T236, T9, le33_out_aa(T234, T235)) → U26_aa(T234, T235, T236, T9, part20_in_gaaa(T234, T236, X431, X432))
U26_aa(T234, T235, T236, T9, part20_out_gaaa(T234, T236, X431, X432)) → qs1_out_aa(.(T234, .(T235, T236)), T9)
U25_aa(T234, T235, T236, T9, le33_out_aa(T234, T235)) → U27_aa(T234, T235, T236, T9, part20_in_gaaa(T234, T236, T244, T245))
U27_aa(T234, T235, T236, T9, part20_out_gaaa(T234, T236, T244, T245)) → U28_aa(T234, T235, T236, T9, qs53_in_aa(T244, X9))
qs53_in_aa(.(T126, T127), X269) → U7_aa(T126, T127, X269, part20_in_aaaa(T126, T127, X265, X266))
part20_in_aaaa(T61, .(T62, T63), .(T62, X119), X120) → U2_aaaa(T61, T62, T63, X119, X120, gt10_in_aa(T61, T62))
U2_aaaa(T61, T62, T63, X119, X120, gt10_out_aa(T61, T62)) → part20_out_aaaa(T61, .(T62, T63), .(T62, X119), X120)
U2_aaaa(T61, T62, T63, X119, X120, gt10_out_aa(T61, T62)) → U3_aaaa(T61, T62, T63, X119, X120, part20_in_gaaa(T61, T63, X119, X120))
U3_aaaa(T61, T62, T63, X119, X120, part20_out_gaaa(T61, T63, X119, X120)) → part20_out_aaaa(T61, .(T62, T63), .(T62, X119), X120)
part20_in_aaaa(T83, .(T84, T85), X170, .(T84, X171)) → U4_aaaa(T83, T84, T85, X170, X171, le33_in_aa(T83, T84))
U4_aaaa(T83, T84, T85, X170, X171, le33_out_aa(T83, T84)) → part20_out_aaaa(T83, .(T84, T85), X170, .(T84, X171))
U4_aaaa(T83, T84, T85, X170, X171, le33_out_aa(T83, T84)) → U5_aaaa(T83, T84, T85, X170, X171, part20_in_gaaa(T83, T85, X170, X171))
U5_aaaa(T83, T84, T85, X170, X171, part20_out_gaaa(T83, T85, X170, X171)) → part20_out_aaaa(T83, .(T84, T85), X170, .(T84, X171))
part20_in_aaaa(T107, [], [], []) → part20_out_aaaa(T107, [], [], [])
U7_aa(T126, T127, X269, part20_out_aaaa(T126, T127, X265, X266)) → qs53_out_aa(.(T126, T127), X269)
qs53_in_aa(.(T126, T127), X269) → U8_aa(T126, T127, X269, part20_in_aaaa(T126, T127, T131, T132))
U8_aa(T126, T127, X269, part20_out_aaaa(T126, T127, T131, T132)) → U9_aa(T126, T127, X269, qs53_in_aa(T131, X267))
qs53_in_aa([], []) → qs53_out_aa([], [])
U9_aa(T126, T127, X269, qs53_out_aa(T131, X267)) → qs53_out_aa(.(T126, T127), X269)
U8_aa(T126, T127, X269, part20_out_aaaa(T126, T127, T131, T132)) → U10_aa(T126, T127, X269, T132, qs53_in_aa(T131, T138))
U10_aa(T126, T127, X269, T132, qs53_out_aa(T131, T138)) → U11_aa(T126, T127, X269, qs53_in_aa(T132, X268))
U11_aa(T126, T127, X269, qs53_out_aa(T132, X268)) → qs53_out_aa(.(T126, T127), X269)
U10_aa(T126, T127, X269, T132, qs53_out_aa(T131, T138)) → U12_aa(T126, T127, X269, T138, qs53_in_aa(T132, T143))
U12_aa(T126, T127, X269, T138, qs53_out_aa(T132, T143)) → U13_aa(T126, T127, X269, app65_in_aaaa(T138, T126, T143, X269))
app65_in_aaaa(.(T166, T167), T168, T169, .(T166, X348)) → U14_aaaa(T166, T167, T168, T169, X348, app65_in_aaaa(T167, T168, T169, X348))
app65_in_aaaa([], T178, T179, .(T178, T179)) → app65_out_aaaa([], T178, T179, .(T178, T179))
U14_aaaa(T166, T167, T168, T169, X348, app65_out_aaaa(T167, T168, T169, X348)) → app65_out_aaaa(.(T166, T167), T168, T169, .(T166, X348))
U13_aa(T126, T127, X269, app65_out_aaaa(T138, T126, T143, X269)) → qs53_out_aa(.(T126, T127), X269)
U28_aa(T234, T235, T236, T9, qs53_out_aa(T244, X9)) → qs1_out_aa(.(T234, .(T235, T236)), T9)
U27_aa(T234, T235, T236, T9, part20_out_gaaa(T234, T236, T244, T245)) → U29_aa(T234, T235, T236, T9, T245, qs53_in_aa(T244, T251))
U29_aa(T234, T235, T236, T9, T245, qs53_out_aa(T244, T251)) → U30_aa(T234, T235, T236, T9, p52_in_aaaga(.(T235, T245), X10, T251, T234, T9))
p52_in_aaaga(T45, X10, T110, T22, T9) → U16_aaaga(T45, X10, T110, T22, T9, qs53_in_aa(T45, X10))
U16_aaaga(T45, X10, T110, T22, T9, qs53_out_aa(T45, X10)) → p52_out_aaaga(T45, X10, T110, T22, T9)
p52_in_aaaga(T45, T115, T110, T22, T9) → U17_aaaga(T45, T115, T110, T22, T9, qs53_in_aa(T45, T115))
U17_aaaga(T45, T115, T110, T22, T9, qs53_out_aa(T45, T115)) → U18_aaaga(T45, T115, T110, T22, T9, app54_in_agaa(T110, T22, T115, T9))
app54_in_agaa(.(T205, T206), T207, T208, .(T205, T210)) → U15_agaa(T205, T206, T207, T208, T210, app54_in_agaa(T206, T207, T208, T210))
app54_in_agaa([], T220, T221, .(T220, T221)) → app54_out_agaa([], T220, T221, .(T220, T221))
U15_agaa(T205, T206, T207, T208, T210, app54_out_agaa(T206, T207, T208, T210)) → app54_out_agaa(.(T205, T206), T207, T208, .(T205, T210))
U18_aaaga(T45, T115, T110, T22, T9, app54_out_agaa(T110, T22, T115, T9)) → p52_out_aaaga(T45, T115, T110, T22, T9)
U30_aa(T234, T235, T236, T9, p52_out_aaaga(.(T235, T245), X10, T251, T234, T9)) → qs1_out_aa(.(T234, .(T235, T236)), T9)
qs1_in_aa(.(T260, []), T9) → U31_aa(T260, T9, qs99_in_a(X9))
qs99_in_a([]) → qs99_out_a([])
U31_aa(T260, T9, qs99_out_a(X9)) → qs1_out_aa(.(T260, []), T9)
qs1_in_aa(.(T260, []), T9) → U32_aa(T260, T9, qs99_in_a(T263))
U32_aa(T260, T9, qs99_out_a(T263)) → U33_aa(T260, T9, qs99_in_a(X10))
U33_aa(T260, T9, qs99_out_a(X10)) → qs1_out_aa(.(T260, []), T9)
U32_aa(T260, T9, qs99_out_a(T263)) → U34_aa(T260, T9, T263, qs99_in_a(T268))
U34_aa(T260, T9, T263, qs99_out_a(T268)) → U35_aa(T260, T9, app54_in_gaga(T263, T260, T268, T9))
app54_in_gaga(.(T205, T206), T207, T208, .(T205, T210)) → U15_gaga(T205, T206, T207, T208, T210, app54_in_gaga(T206, T207, T208, T210))
app54_in_gaga([], T220, T221, .(T220, T221)) → app54_out_gaga([], T220, T221, .(T220, T221))
U15_gaga(T205, T206, T207, T208, T210, app54_out_gaga(T206, T207, T208, T210)) → app54_out_gaga(.(T205, T206), T207, T208, .(T205, T210))
U35_aa(T260, T9, app54_out_gaga(T263, T260, T268, T9)) → qs1_out_aa(.(T260, []), T9)
qs1_in_aa([], []) → qs1_out_aa([], [])
U22_aa(T22, T23, T24, T9, qs1_out_aa(.(T23, T44), X9)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U21_aa(T22, T23, T24, T9, part20_out_gaaa(T22, T24, T44, T45)) → U23_aa(T22, T23, T24, T9, T45, qs1_in_aa(.(T23, T44), T110))
U23_aa(T22, T23, T24, T9, T45, qs1_out_aa(.(T23, T44), T110)) → U24_aa(T22, T23, T24, T9, p52_in_aaaga(T45, X10, T110, T22, T9))
U24_aa(T22, T23, T24, T9, p52_out_aaaga(T45, X10, T110, T22, T9)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U22_ga(T22, T23, T24, T9, qs1_out_aa(.(T23, T44), X9)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U21_ga(T22, T23, T24, T9, part20_out_ggaa(T22, T24, T44, T45)) → U23_ga(T22, T23, T24, T9, T45, qs1_in_aa(.(T23, T44), T110))
U23_ga(T22, T23, T24, T9, T45, qs1_out_aa(.(T23, T44), T110)) → U24_ga(T22, T23, T24, T9, p52_in_aaaga(T45, X10, T110, T22, T9))
U24_ga(T22, T23, T24, T9, p52_out_aaaga(T45, X10, T110, T22, T9)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
qs1_in_ga(.(T234, .(T235, T236)), T9) → U25_ga(T234, T235, T236, T9, le33_in_gg(T234, T235))
U25_ga(T234, T235, T236, T9, le33_out_gg(T234, T235)) → qs1_out_ga(.(T234, .(T235, T236)), T9)
U25_ga(T234, T235, T236, T9, le33_out_gg(T234, T235)) → U26_ga(T234, T235, T236, T9, part20_in_ggaa(T234, T236, X431, X432))
U26_ga(T234, T235, T236, T9, part20_out_ggaa(T234, T236, X431, X432)) → qs1_out_ga(.(T234, .(T235, T236)), T9)
U25_ga(T234, T235, T236, T9, le33_out_gg(T234, T235)) → U27_ga(T234, T235, T236, T9, part20_in_ggaa(T234, T236, T244, T245))
U27_ga(T234, T235, T236, T9, part20_out_ggaa(T234, T236, T244, T245)) → U28_ga(T234, T235, T236, T9, qs53_in_aa(T244, X9))
U28_ga(T234, T235, T236, T9, qs53_out_aa(T244, X9)) → qs1_out_ga(.(T234, .(T235, T236)), T9)
U27_ga(T234, T235, T236, T9, part20_out_ggaa(T234, T236, T244, T245)) → U29_ga(T234, T235, T236, T9, T245, qs53_in_aa(T244, T251))
U29_ga(T234, T235, T236, T9, T245, qs53_out_aa(T244, T251)) → U30_ga(T234, T235, T236, T9, p52_in_aaaga(.(T235, T245), X10, T251, T234, T9))
U30_ga(T234, T235, T236, T9, p52_out_aaaga(.(T235, T245), X10, T251, T234, T9)) → qs1_out_ga(.(T234, .(T235, T236)), T9)
qs1_in_ga(.(T260, []), T9) → U31_ga(T260, T9, qs99_in_a(X9))
U31_ga(T260, T9, qs99_out_a(X9)) → qs1_out_ga(.(T260, []), T9)
qs1_in_ga(.(T260, []), T9) → U32_ga(T260, T9, qs99_in_a(T263))
U32_ga(T260, T9, qs99_out_a(T263)) → U33_ga(T260, T9, qs99_in_a(X10))
U33_ga(T260, T9, qs99_out_a(X10)) → qs1_out_ga(.(T260, []), T9)
U32_ga(T260, T9, qs99_out_a(T263)) → U34_ga(T260, T9, T263, qs99_in_a(T268))
U34_ga(T260, T9, T263, qs99_out_a(T268)) → U35_ga(T260, T9, app54_in_ggga(T263, T260, T268, T9))
app54_in_ggga(.(T205, T206), T207, T208, .(T205, T210)) → U15_ggga(T205, T206, T207, T208, T210, app54_in_ggga(T206, T207, T208, T210))
app54_in_ggga([], T220, T221, .(T220, T221)) → app54_out_ggga([], T220, T221, .(T220, T221))
U15_ggga(T205, T206, T207, T208, T210, app54_out_ggga(T206, T207, T208, T210)) → app54_out_ggga(.(T205, T206), T207, T208, .(T205, T210))
U35_ga(T260, T9, app54_out_ggga(T263, T260, T268, T9)) → qs1_out_ga(.(T260, []), T9)
qs1_in_ga([], []) → qs1_out_ga([], [])
U2_GAAA(T61, T62, T63, X119, X120, gt10_out_ga(T61, T62)) → PART20_IN_GAAA(T61, T63, X119, X120)
PART20_IN_GAAA(T61, .(T62, T63), .(T62, X119), X120) → U2_GAAA(T61, T62, T63, X119, X120, gt10_in_ga(T61, T62))
PART20_IN_GAAA(T83, .(T84, T85), X170, .(T84, X171)) → U4_GAAA(T83, T84, T85, X170, X171, le33_in_ga(T83, T84))
U4_GAAA(T83, T84, T85, X170, X171, le33_out_ga(T83, T84)) → PART20_IN_GAAA(T83, T85, X170, X171)
gt10_in_ga(s(T37), s(T38)) → U1_ga(T37, T38, gt10_in_ga(T37, T38))
gt10_in_ga(s(0), 0) → gt10_out_ga(s(0), 0)
le33_in_ga(s(T98), s(T99)) → U6_ga(T98, T99, le33_in_ga(T98, T99))
le33_in_ga(0, s(0)) → le33_out_ga(0, s(0))
le33_in_ga(0, 0) → le33_out_ga(0, 0)
U1_ga(T37, T38, gt10_out_ga(T37, T38)) → gt10_out_ga(s(T37), s(T38))
U6_ga(T98, T99, le33_out_ga(T98, T99)) → le33_out_ga(s(T98), s(T99))
U2_GAAA(T61, gt10_out_ga(T62)) → PART20_IN_GAAA(T61)
PART20_IN_GAAA(T61) → U2_GAAA(T61, gt10_in_ga(T61))
PART20_IN_GAAA(T83) → U4_GAAA(T83, le33_in_ga(T83))
U4_GAAA(T83, le33_out_ga(T84)) → PART20_IN_GAAA(T83)
gt10_in_ga(s(T37)) → U1_ga(gt10_in_ga(T37))
gt10_in_ga(s(0)) → gt10_out_ga(0)
le33_in_ga(s(T98)) → U6_ga(le33_in_ga(T98))
le33_in_ga(0) → le33_out_ga(s(0))
le33_in_ga(0) → le33_out_ga(0)
U1_ga(gt10_out_ga(T38)) → gt10_out_ga(s(T38))
U6_ga(le33_out_ga(T99)) → le33_out_ga(s(T99))
gt10_in_ga(x0)
le33_in_ga(x0)
U1_ga(x0)
U6_ga(x0)
PART20_IN_GAAA(s(x0)) → U2_GAAA(s(x0), U1_ga(gt10_in_ga(x0)))
PART20_IN_GAAA(s(0)) → U2_GAAA(s(0), gt10_out_ga(0))
U2_GAAA(T61, gt10_out_ga(T62)) → PART20_IN_GAAA(T61)
PART20_IN_GAAA(T83) → U4_GAAA(T83, le33_in_ga(T83))
U4_GAAA(T83, le33_out_ga(T84)) → PART20_IN_GAAA(T83)
PART20_IN_GAAA(s(x0)) → U2_GAAA(s(x0), U1_ga(gt10_in_ga(x0)))
PART20_IN_GAAA(s(0)) → U2_GAAA(s(0), gt10_out_ga(0))
gt10_in_ga(s(T37)) → U1_ga(gt10_in_ga(T37))
gt10_in_ga(s(0)) → gt10_out_ga(0)
le33_in_ga(s(T98)) → U6_ga(le33_in_ga(T98))
le33_in_ga(0) → le33_out_ga(s(0))
le33_in_ga(0) → le33_out_ga(0)
U1_ga(gt10_out_ga(T38)) → gt10_out_ga(s(T38))
U6_ga(le33_out_ga(T99)) → le33_out_ga(s(T99))
gt10_in_ga(x0)
le33_in_ga(x0)
U1_ga(x0)
U6_ga(x0)
PART20_IN_GAAA(s(x0)) → U4_GAAA(s(x0), U6_ga(le33_in_ga(x0)))
PART20_IN_GAAA(0) → U4_GAAA(0, le33_out_ga(s(0)))
PART20_IN_GAAA(0) → U4_GAAA(0, le33_out_ga(0))
U2_GAAA(T61, gt10_out_ga(T62)) → PART20_IN_GAAA(T61)
U4_GAAA(T83, le33_out_ga(T84)) → PART20_IN_GAAA(T83)
PART20_IN_GAAA(s(x0)) → U2_GAAA(s(x0), U1_ga(gt10_in_ga(x0)))
PART20_IN_GAAA(s(0)) → U2_GAAA(s(0), gt10_out_ga(0))
PART20_IN_GAAA(s(x0)) → U4_GAAA(s(x0), U6_ga(le33_in_ga(x0)))
PART20_IN_GAAA(0) → U4_GAAA(0, le33_out_ga(s(0)))
PART20_IN_GAAA(0) → U4_GAAA(0, le33_out_ga(0))
gt10_in_ga(s(T37)) → U1_ga(gt10_in_ga(T37))
gt10_in_ga(s(0)) → gt10_out_ga(0)
le33_in_ga(s(T98)) → U6_ga(le33_in_ga(T98))
le33_in_ga(0) → le33_out_ga(s(0))
le33_in_ga(0) → le33_out_ga(0)
U1_ga(gt10_out_ga(T38)) → gt10_out_ga(s(T38))
U6_ga(le33_out_ga(T99)) → le33_out_ga(s(T99))
gt10_in_ga(x0)
le33_in_ga(x0)
U1_ga(x0)
U6_ga(x0)
U2_GAAA(s(z0), gt10_out_ga(x1)) → PART20_IN_GAAA(s(z0))
U2_GAAA(s(0), gt10_out_ga(0)) → PART20_IN_GAAA(s(0))
U4_GAAA(T83, le33_out_ga(T84)) → PART20_IN_GAAA(T83)
PART20_IN_GAAA(s(x0)) → U2_GAAA(s(x0), U1_ga(gt10_in_ga(x0)))
PART20_IN_GAAA(s(0)) → U2_GAAA(s(0), gt10_out_ga(0))
PART20_IN_GAAA(s(x0)) → U4_GAAA(s(x0), U6_ga(le33_in_ga(x0)))
PART20_IN_GAAA(0) → U4_GAAA(0, le33_out_ga(s(0)))
PART20_IN_GAAA(0) → U4_GAAA(0, le33_out_ga(0))
U2_GAAA(s(z0), gt10_out_ga(x1)) → PART20_IN_GAAA(s(z0))
U2_GAAA(s(0), gt10_out_ga(0)) → PART20_IN_GAAA(s(0))
gt10_in_ga(s(T37)) → U1_ga(gt10_in_ga(T37))
gt10_in_ga(s(0)) → gt10_out_ga(0)
le33_in_ga(s(T98)) → U6_ga(le33_in_ga(T98))
le33_in_ga(0) → le33_out_ga(s(0))
le33_in_ga(0) → le33_out_ga(0)
U1_ga(gt10_out_ga(T38)) → gt10_out_ga(s(T38))
U6_ga(le33_out_ga(T99)) → le33_out_ga(s(T99))
gt10_in_ga(x0)
le33_in_ga(x0)
U1_ga(x0)
U6_ga(x0)
U4_GAAA(s(z0), le33_out_ga(x1)) → PART20_IN_GAAA(s(z0))
U4_GAAA(0, le33_out_ga(s(0))) → PART20_IN_GAAA(0)
U4_GAAA(0, le33_out_ga(0)) → PART20_IN_GAAA(0)
PART20_IN_GAAA(s(x0)) → U2_GAAA(s(x0), U1_ga(gt10_in_ga(x0)))
PART20_IN_GAAA(s(0)) → U2_GAAA(s(0), gt10_out_ga(0))
PART20_IN_GAAA(s(x0)) → U4_GAAA(s(x0), U6_ga(le33_in_ga(x0)))
PART20_IN_GAAA(0) → U4_GAAA(0, le33_out_ga(s(0)))
PART20_IN_GAAA(0) → U4_GAAA(0, le33_out_ga(0))
U2_GAAA(s(z0), gt10_out_ga(x1)) → PART20_IN_GAAA(s(z0))
U2_GAAA(s(0), gt10_out_ga(0)) → PART20_IN_GAAA(s(0))
U4_GAAA(s(z0), le33_out_ga(x1)) → PART20_IN_GAAA(s(z0))
U4_GAAA(0, le33_out_ga(s(0))) → PART20_IN_GAAA(0)
U4_GAAA(0, le33_out_ga(0)) → PART20_IN_GAAA(0)
gt10_in_ga(s(T37)) → U1_ga(gt10_in_ga(T37))
gt10_in_ga(s(0)) → gt10_out_ga(0)
le33_in_ga(s(T98)) → U6_ga(le33_in_ga(T98))
le33_in_ga(0) → le33_out_ga(s(0))
le33_in_ga(0) → le33_out_ga(0)
U1_ga(gt10_out_ga(T38)) → gt10_out_ga(s(T38))
U6_ga(le33_out_ga(T99)) → le33_out_ga(s(T99))
gt10_in_ga(x0)
le33_in_ga(x0)
U1_ga(x0)
U6_ga(x0)
U4_GAAA(0, le33_out_ga(s(0))) → PART20_IN_GAAA(0)
PART20_IN_GAAA(0) → U4_GAAA(0, le33_out_ga(s(0)))
PART20_IN_GAAA(0) → U4_GAAA(0, le33_out_ga(0))
U4_GAAA(0, le33_out_ga(0)) → PART20_IN_GAAA(0)
gt10_in_ga(s(T37)) → U1_ga(gt10_in_ga(T37))
gt10_in_ga(s(0)) → gt10_out_ga(0)
le33_in_ga(s(T98)) → U6_ga(le33_in_ga(T98))
le33_in_ga(0) → le33_out_ga(s(0))
le33_in_ga(0) → le33_out_ga(0)
U1_ga(gt10_out_ga(T38)) → gt10_out_ga(s(T38))
U6_ga(le33_out_ga(T99)) → le33_out_ga(s(T99))
gt10_in_ga(x0)
le33_in_ga(x0)
U1_ga(x0)
U6_ga(x0)
U4_GAAA(0, le33_out_ga(s(0))) → PART20_IN_GAAA(0)
PART20_IN_GAAA(0) → U4_GAAA(0, le33_out_ga(s(0)))
PART20_IN_GAAA(0) → U4_GAAA(0, le33_out_ga(0))
U4_GAAA(0, le33_out_ga(0)) → PART20_IN_GAAA(0)
gt10_in_ga(x0)
le33_in_ga(x0)
U1_ga(x0)
U6_ga(x0)
gt10_in_ga(x0)
le33_in_ga(x0)
U1_ga(x0)
U6_ga(x0)
U4_GAAA(0, le33_out_ga(s(0))) → PART20_IN_GAAA(0)
PART20_IN_GAAA(0) → U4_GAAA(0, le33_out_ga(s(0)))
PART20_IN_GAAA(0) → U4_GAAA(0, le33_out_ga(0))
U4_GAAA(0, le33_out_ga(0)) → PART20_IN_GAAA(0)
U2_GAAA(s(z0), gt10_out_ga(x1)) → PART20_IN_GAAA(s(z0))
PART20_IN_GAAA(s(x0)) → U2_GAAA(s(x0), U1_ga(gt10_in_ga(x0)))
U2_GAAA(s(0), gt10_out_ga(0)) → PART20_IN_GAAA(s(0))
PART20_IN_GAAA(s(0)) → U2_GAAA(s(0), gt10_out_ga(0))
PART20_IN_GAAA(s(x0)) → U4_GAAA(s(x0), U6_ga(le33_in_ga(x0)))
U4_GAAA(s(z0), le33_out_ga(x1)) → PART20_IN_GAAA(s(z0))
gt10_in_ga(s(T37)) → U1_ga(gt10_in_ga(T37))
gt10_in_ga(s(0)) → gt10_out_ga(0)
le33_in_ga(s(T98)) → U6_ga(le33_in_ga(T98))
le33_in_ga(0) → le33_out_ga(s(0))
le33_in_ga(0) → le33_out_ga(0)
U1_ga(gt10_out_ga(T38)) → gt10_out_ga(s(T38))
U6_ga(le33_out_ga(T99)) → le33_out_ga(s(T99))
gt10_in_ga(x0)
le33_in_ga(x0)
U1_ga(x0)
U6_ga(x0)
GT10_IN_AA(s(T37), s(T38)) → GT10_IN_AA(T37, T38)
qs1_in_ga(.(T22, .(T23, T24)), T9) → U19_ga(T22, T23, T24, T9, gt10_in_gg(T22, T23))
gt10_in_gg(s(T37), s(T38)) → U1_gg(T37, T38, gt10_in_gg(T37, T38))
gt10_in_gg(s(0), 0) → gt10_out_gg(s(0), 0)
U1_gg(T37, T38, gt10_out_gg(T37, T38)) → gt10_out_gg(s(T37), s(T38))
U19_ga(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U19_ga(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → U20_ga(T22, T23, T24, T9, part20_in_ggaa(T22, T24, X47, X48))
part20_in_ggaa(T61, .(T62, T63), .(T62, X119), X120) → U2_ggaa(T61, T62, T63, X119, X120, gt10_in_gg(T61, T62))
U2_ggaa(T61, T62, T63, X119, X120, gt10_out_gg(T61, T62)) → part20_out_ggaa(T61, .(T62, T63), .(T62, X119), X120)
U2_ggaa(T61, T62, T63, X119, X120, gt10_out_gg(T61, T62)) → U3_ggaa(T61, T62, T63, X119, X120, part20_in_ggaa(T61, T63, X119, X120))
part20_in_ggaa(T83, .(T84, T85), X170, .(T84, X171)) → U4_ggaa(T83, T84, T85, X170, X171, le33_in_gg(T83, T84))
le33_in_gg(s(T98), s(T99)) → U6_gg(T98, T99, le33_in_gg(T98, T99))
le33_in_gg(0, s(0)) → le33_out_gg(0, s(0))
le33_in_gg(0, 0) → le33_out_gg(0, 0)
U6_gg(T98, T99, le33_out_gg(T98, T99)) → le33_out_gg(s(T98), s(T99))
U4_ggaa(T83, T84, T85, X170, X171, le33_out_gg(T83, T84)) → part20_out_ggaa(T83, .(T84, T85), X170, .(T84, X171))
U4_ggaa(T83, T84, T85, X170, X171, le33_out_gg(T83, T84)) → U5_ggaa(T83, T84, T85, X170, X171, part20_in_ggaa(T83, T85, X170, X171))
part20_in_ggaa(T107, [], [], []) → part20_out_ggaa(T107, [], [], [])
U5_ggaa(T83, T84, T85, X170, X171, part20_out_ggaa(T83, T85, X170, X171)) → part20_out_ggaa(T83, .(T84, T85), X170, .(T84, X171))
U3_ggaa(T61, T62, T63, X119, X120, part20_out_ggaa(T61, T63, X119, X120)) → part20_out_ggaa(T61, .(T62, T63), .(T62, X119), X120)
U20_ga(T22, T23, T24, T9, part20_out_ggaa(T22, T24, X47, X48)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U19_ga(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → U21_ga(T22, T23, T24, T9, part20_in_ggaa(T22, T24, T44, T45))
U21_ga(T22, T23, T24, T9, part20_out_ggaa(T22, T24, T44, T45)) → U22_ga(T22, T23, T24, T9, qs1_in_aa(.(T23, T44), X9))
qs1_in_aa(.(T22, .(T23, T24)), T9) → U19_aa(T22, T23, T24, T9, gt10_in_aa(T22, T23))
gt10_in_aa(s(T37), s(T38)) → U1_aa(T37, T38, gt10_in_aa(T37, T38))
gt10_in_aa(s(0), 0) → gt10_out_aa(s(0), 0)
U1_aa(T37, T38, gt10_out_aa(T37, T38)) → gt10_out_aa(s(T37), s(T38))
U19_aa(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U19_aa(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → U20_aa(T22, T23, T24, T9, part20_in_gaaa(T22, T24, X47, X48))
part20_in_gaaa(T61, .(T62, T63), .(T62, X119), X120) → U2_gaaa(T61, T62, T63, X119, X120, gt10_in_ga(T61, T62))
gt10_in_ga(s(T37), s(T38)) → U1_ga(T37, T38, gt10_in_ga(T37, T38))
gt10_in_ga(s(0), 0) → gt10_out_ga(s(0), 0)
U1_ga(T37, T38, gt10_out_ga(T37, T38)) → gt10_out_ga(s(T37), s(T38))
U2_gaaa(T61, T62, T63, X119, X120, gt10_out_ga(T61, T62)) → part20_out_gaaa(T61, .(T62, T63), .(T62, X119), X120)
U2_gaaa(T61, T62, T63, X119, X120, gt10_out_ga(T61, T62)) → U3_gaaa(T61, T62, T63, X119, X120, part20_in_gaaa(T61, T63, X119, X120))
part20_in_gaaa(T83, .(T84, T85), X170, .(T84, X171)) → U4_gaaa(T83, T84, T85, X170, X171, le33_in_ga(T83, T84))
le33_in_ga(s(T98), s(T99)) → U6_ga(T98, T99, le33_in_ga(T98, T99))
le33_in_ga(0, s(0)) → le33_out_ga(0, s(0))
le33_in_ga(0, 0) → le33_out_ga(0, 0)
U6_ga(T98, T99, le33_out_ga(T98, T99)) → le33_out_ga(s(T98), s(T99))
U4_gaaa(T83, T84, T85, X170, X171, le33_out_ga(T83, T84)) → part20_out_gaaa(T83, .(T84, T85), X170, .(T84, X171))
U4_gaaa(T83, T84, T85, X170, X171, le33_out_ga(T83, T84)) → U5_gaaa(T83, T84, T85, X170, X171, part20_in_gaaa(T83, T85, X170, X171))
part20_in_gaaa(T107, [], [], []) → part20_out_gaaa(T107, [], [], [])
U5_gaaa(T83, T84, T85, X170, X171, part20_out_gaaa(T83, T85, X170, X171)) → part20_out_gaaa(T83, .(T84, T85), X170, .(T84, X171))
U3_gaaa(T61, T62, T63, X119, X120, part20_out_gaaa(T61, T63, X119, X120)) → part20_out_gaaa(T61, .(T62, T63), .(T62, X119), X120)
U20_aa(T22, T23, T24, T9, part20_out_gaaa(T22, T24, X47, X48)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U19_aa(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → U21_aa(T22, T23, T24, T9, part20_in_gaaa(T22, T24, T44, T45))
U21_aa(T22, T23, T24, T9, part20_out_gaaa(T22, T24, T44, T45)) → U22_aa(T22, T23, T24, T9, qs1_in_aa(.(T23, T44), X9))
qs1_in_aa(.(T234, .(T235, T236)), T9) → U25_aa(T234, T235, T236, T9, le33_in_aa(T234, T235))
le33_in_aa(s(T98), s(T99)) → U6_aa(T98, T99, le33_in_aa(T98, T99))
le33_in_aa(0, s(0)) → le33_out_aa(0, s(0))
le33_in_aa(0, 0) → le33_out_aa(0, 0)
U6_aa(T98, T99, le33_out_aa(T98, T99)) → le33_out_aa(s(T98), s(T99))
U25_aa(T234, T235, T236, T9, le33_out_aa(T234, T235)) → qs1_out_aa(.(T234, .(T235, T236)), T9)
U25_aa(T234, T235, T236, T9, le33_out_aa(T234, T235)) → U26_aa(T234, T235, T236, T9, part20_in_gaaa(T234, T236, X431, X432))
U26_aa(T234, T235, T236, T9, part20_out_gaaa(T234, T236, X431, X432)) → qs1_out_aa(.(T234, .(T235, T236)), T9)
U25_aa(T234, T235, T236, T9, le33_out_aa(T234, T235)) → U27_aa(T234, T235, T236, T9, part20_in_gaaa(T234, T236, T244, T245))
U27_aa(T234, T235, T236, T9, part20_out_gaaa(T234, T236, T244, T245)) → U28_aa(T234, T235, T236, T9, qs53_in_aa(T244, X9))
qs53_in_aa(.(T126, T127), X269) → U7_aa(T126, T127, X269, part20_in_aaaa(T126, T127, X265, X266))
part20_in_aaaa(T61, .(T62, T63), .(T62, X119), X120) → U2_aaaa(T61, T62, T63, X119, X120, gt10_in_aa(T61, T62))
U2_aaaa(T61, T62, T63, X119, X120, gt10_out_aa(T61, T62)) → part20_out_aaaa(T61, .(T62, T63), .(T62, X119), X120)
U2_aaaa(T61, T62, T63, X119, X120, gt10_out_aa(T61, T62)) → U3_aaaa(T61, T62, T63, X119, X120, part20_in_gaaa(T61, T63, X119, X120))
U3_aaaa(T61, T62, T63, X119, X120, part20_out_gaaa(T61, T63, X119, X120)) → part20_out_aaaa(T61, .(T62, T63), .(T62, X119), X120)
part20_in_aaaa(T83, .(T84, T85), X170, .(T84, X171)) → U4_aaaa(T83, T84, T85, X170, X171, le33_in_aa(T83, T84))
U4_aaaa(T83, T84, T85, X170, X171, le33_out_aa(T83, T84)) → part20_out_aaaa(T83, .(T84, T85), X170, .(T84, X171))
U4_aaaa(T83, T84, T85, X170, X171, le33_out_aa(T83, T84)) → U5_aaaa(T83, T84, T85, X170, X171, part20_in_gaaa(T83, T85, X170, X171))
U5_aaaa(T83, T84, T85, X170, X171, part20_out_gaaa(T83, T85, X170, X171)) → part20_out_aaaa(T83, .(T84, T85), X170, .(T84, X171))
part20_in_aaaa(T107, [], [], []) → part20_out_aaaa(T107, [], [], [])
U7_aa(T126, T127, X269, part20_out_aaaa(T126, T127, X265, X266)) → qs53_out_aa(.(T126, T127), X269)
qs53_in_aa(.(T126, T127), X269) → U8_aa(T126, T127, X269, part20_in_aaaa(T126, T127, T131, T132))
U8_aa(T126, T127, X269, part20_out_aaaa(T126, T127, T131, T132)) → U9_aa(T126, T127, X269, qs53_in_aa(T131, X267))
qs53_in_aa([], []) → qs53_out_aa([], [])
U9_aa(T126, T127, X269, qs53_out_aa(T131, X267)) → qs53_out_aa(.(T126, T127), X269)
U8_aa(T126, T127, X269, part20_out_aaaa(T126, T127, T131, T132)) → U10_aa(T126, T127, X269, T132, qs53_in_aa(T131, T138))
U10_aa(T126, T127, X269, T132, qs53_out_aa(T131, T138)) → U11_aa(T126, T127, X269, qs53_in_aa(T132, X268))
U11_aa(T126, T127, X269, qs53_out_aa(T132, X268)) → qs53_out_aa(.(T126, T127), X269)
U10_aa(T126, T127, X269, T132, qs53_out_aa(T131, T138)) → U12_aa(T126, T127, X269, T138, qs53_in_aa(T132, T143))
U12_aa(T126, T127, X269, T138, qs53_out_aa(T132, T143)) → U13_aa(T126, T127, X269, app65_in_aaaa(T138, T126, T143, X269))
app65_in_aaaa(.(T166, T167), T168, T169, .(T166, X348)) → U14_aaaa(T166, T167, T168, T169, X348, app65_in_aaaa(T167, T168, T169, X348))
app65_in_aaaa([], T178, T179, .(T178, T179)) → app65_out_aaaa([], T178, T179, .(T178, T179))
U14_aaaa(T166, T167, T168, T169, X348, app65_out_aaaa(T167, T168, T169, X348)) → app65_out_aaaa(.(T166, T167), T168, T169, .(T166, X348))
U13_aa(T126, T127, X269, app65_out_aaaa(T138, T126, T143, X269)) → qs53_out_aa(.(T126, T127), X269)
U28_aa(T234, T235, T236, T9, qs53_out_aa(T244, X9)) → qs1_out_aa(.(T234, .(T235, T236)), T9)
U27_aa(T234, T235, T236, T9, part20_out_gaaa(T234, T236, T244, T245)) → U29_aa(T234, T235, T236, T9, T245, qs53_in_aa(T244, T251))
U29_aa(T234, T235, T236, T9, T245, qs53_out_aa(T244, T251)) → U30_aa(T234, T235, T236, T9, p52_in_aaaga(.(T235, T245), X10, T251, T234, T9))
p52_in_aaaga(T45, X10, T110, T22, T9) → U16_aaaga(T45, X10, T110, T22, T9, qs53_in_aa(T45, X10))
U16_aaaga(T45, X10, T110, T22, T9, qs53_out_aa(T45, X10)) → p52_out_aaaga(T45, X10, T110, T22, T9)
p52_in_aaaga(T45, T115, T110, T22, T9) → U17_aaaga(T45, T115, T110, T22, T9, qs53_in_aa(T45, T115))
U17_aaaga(T45, T115, T110, T22, T9, qs53_out_aa(T45, T115)) → U18_aaaga(T45, T115, T110, T22, T9, app54_in_agaa(T110, T22, T115, T9))
app54_in_agaa(.(T205, T206), T207, T208, .(T205, T210)) → U15_agaa(T205, T206, T207, T208, T210, app54_in_agaa(T206, T207, T208, T210))
app54_in_agaa([], T220, T221, .(T220, T221)) → app54_out_agaa([], T220, T221, .(T220, T221))
U15_agaa(T205, T206, T207, T208, T210, app54_out_agaa(T206, T207, T208, T210)) → app54_out_agaa(.(T205, T206), T207, T208, .(T205, T210))
U18_aaaga(T45, T115, T110, T22, T9, app54_out_agaa(T110, T22, T115, T9)) → p52_out_aaaga(T45, T115, T110, T22, T9)
U30_aa(T234, T235, T236, T9, p52_out_aaaga(.(T235, T245), X10, T251, T234, T9)) → qs1_out_aa(.(T234, .(T235, T236)), T9)
qs1_in_aa(.(T260, []), T9) → U31_aa(T260, T9, qs99_in_a(X9))
qs99_in_a([]) → qs99_out_a([])
U31_aa(T260, T9, qs99_out_a(X9)) → qs1_out_aa(.(T260, []), T9)
qs1_in_aa(.(T260, []), T9) → U32_aa(T260, T9, qs99_in_a(T263))
U32_aa(T260, T9, qs99_out_a(T263)) → U33_aa(T260, T9, qs99_in_a(X10))
U33_aa(T260, T9, qs99_out_a(X10)) → qs1_out_aa(.(T260, []), T9)
U32_aa(T260, T9, qs99_out_a(T263)) → U34_aa(T260, T9, T263, qs99_in_a(T268))
U34_aa(T260, T9, T263, qs99_out_a(T268)) → U35_aa(T260, T9, app54_in_gaga(T263, T260, T268, T9))
app54_in_gaga(.(T205, T206), T207, T208, .(T205, T210)) → U15_gaga(T205, T206, T207, T208, T210, app54_in_gaga(T206, T207, T208, T210))
app54_in_gaga([], T220, T221, .(T220, T221)) → app54_out_gaga([], T220, T221, .(T220, T221))
U15_gaga(T205, T206, T207, T208, T210, app54_out_gaga(T206, T207, T208, T210)) → app54_out_gaga(.(T205, T206), T207, T208, .(T205, T210))
U35_aa(T260, T9, app54_out_gaga(T263, T260, T268, T9)) → qs1_out_aa(.(T260, []), T9)
qs1_in_aa([], []) → qs1_out_aa([], [])
U22_aa(T22, T23, T24, T9, qs1_out_aa(.(T23, T44), X9)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U21_aa(T22, T23, T24, T9, part20_out_gaaa(T22, T24, T44, T45)) → U23_aa(T22, T23, T24, T9, T45, qs1_in_aa(.(T23, T44), T110))
U23_aa(T22, T23, T24, T9, T45, qs1_out_aa(.(T23, T44), T110)) → U24_aa(T22, T23, T24, T9, p52_in_aaaga(T45, X10, T110, T22, T9))
U24_aa(T22, T23, T24, T9, p52_out_aaaga(T45, X10, T110, T22, T9)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U22_ga(T22, T23, T24, T9, qs1_out_aa(.(T23, T44), X9)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U21_ga(T22, T23, T24, T9, part20_out_ggaa(T22, T24, T44, T45)) → U23_ga(T22, T23, T24, T9, T45, qs1_in_aa(.(T23, T44), T110))
U23_ga(T22, T23, T24, T9, T45, qs1_out_aa(.(T23, T44), T110)) → U24_ga(T22, T23, T24, T9, p52_in_aaaga(T45, X10, T110, T22, T9))
U24_ga(T22, T23, T24, T9, p52_out_aaaga(T45, X10, T110, T22, T9)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
qs1_in_ga(.(T234, .(T235, T236)), T9) → U25_ga(T234, T235, T236, T9, le33_in_gg(T234, T235))
U25_ga(T234, T235, T236, T9, le33_out_gg(T234, T235)) → qs1_out_ga(.(T234, .(T235, T236)), T9)
U25_ga(T234, T235, T236, T9, le33_out_gg(T234, T235)) → U26_ga(T234, T235, T236, T9, part20_in_ggaa(T234, T236, X431, X432))
U26_ga(T234, T235, T236, T9, part20_out_ggaa(T234, T236, X431, X432)) → qs1_out_ga(.(T234, .(T235, T236)), T9)
U25_ga(T234, T235, T236, T9, le33_out_gg(T234, T235)) → U27_ga(T234, T235, T236, T9, part20_in_ggaa(T234, T236, T244, T245))
U27_ga(T234, T235, T236, T9, part20_out_ggaa(T234, T236, T244, T245)) → U28_ga(T234, T235, T236, T9, qs53_in_aa(T244, X9))
U28_ga(T234, T235, T236, T9, qs53_out_aa(T244, X9)) → qs1_out_ga(.(T234, .(T235, T236)), T9)
U27_ga(T234, T235, T236, T9, part20_out_ggaa(T234, T236, T244, T245)) → U29_ga(T234, T235, T236, T9, T245, qs53_in_aa(T244, T251))
U29_ga(T234, T235, T236, T9, T245, qs53_out_aa(T244, T251)) → U30_ga(T234, T235, T236, T9, p52_in_aaaga(.(T235, T245), X10, T251, T234, T9))
U30_ga(T234, T235, T236, T9, p52_out_aaaga(.(T235, T245), X10, T251, T234, T9)) → qs1_out_ga(.(T234, .(T235, T236)), T9)
qs1_in_ga(.(T260, []), T9) → U31_ga(T260, T9, qs99_in_a(X9))
U31_ga(T260, T9, qs99_out_a(X9)) → qs1_out_ga(.(T260, []), T9)
qs1_in_ga(.(T260, []), T9) → U32_ga(T260, T9, qs99_in_a(T263))
U32_ga(T260, T9, qs99_out_a(T263)) → U33_ga(T260, T9, qs99_in_a(X10))
U33_ga(T260, T9, qs99_out_a(X10)) → qs1_out_ga(.(T260, []), T9)
U32_ga(T260, T9, qs99_out_a(T263)) → U34_ga(T260, T9, T263, qs99_in_a(T268))
U34_ga(T260, T9, T263, qs99_out_a(T268)) → U35_ga(T260, T9, app54_in_ggga(T263, T260, T268, T9))
app54_in_ggga(.(T205, T206), T207, T208, .(T205, T210)) → U15_ggga(T205, T206, T207, T208, T210, app54_in_ggga(T206, T207, T208, T210))
app54_in_ggga([], T220, T221, .(T220, T221)) → app54_out_ggga([], T220, T221, .(T220, T221))
U15_ggga(T205, T206, T207, T208, T210, app54_out_ggga(T206, T207, T208, T210)) → app54_out_ggga(.(T205, T206), T207, T208, .(T205, T210))
U35_ga(T260, T9, app54_out_ggga(T263, T260, T268, T9)) → qs1_out_ga(.(T260, []), T9)
qs1_in_ga([], []) → qs1_out_ga([], [])
GT10_IN_AA(s(T37), s(T38)) → GT10_IN_AA(T37, T38)
GT10_IN_AA → GT10_IN_AA
QS53_IN_AA(.(T126, T127), X269) → U8_AA(T126, T127, X269, part20_in_aaaa(T126, T127, T131, T132))
U8_AA(T126, T127, X269, part20_out_aaaa(T126, T127, T131, T132)) → QS53_IN_AA(T131, X267)
U8_AA(T126, T127, X269, part20_out_aaaa(T126, T127, T131, T132)) → U10_AA(T126, T127, X269, T132, qs53_in_aa(T131, T138))
U10_AA(T126, T127, X269, T132, qs53_out_aa(T131, T138)) → QS53_IN_AA(T132, X268)
qs1_in_ga(.(T22, .(T23, T24)), T9) → U19_ga(T22, T23, T24, T9, gt10_in_gg(T22, T23))
gt10_in_gg(s(T37), s(T38)) → U1_gg(T37, T38, gt10_in_gg(T37, T38))
gt10_in_gg(s(0), 0) → gt10_out_gg(s(0), 0)
U1_gg(T37, T38, gt10_out_gg(T37, T38)) → gt10_out_gg(s(T37), s(T38))
U19_ga(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U19_ga(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → U20_ga(T22, T23, T24, T9, part20_in_ggaa(T22, T24, X47, X48))
part20_in_ggaa(T61, .(T62, T63), .(T62, X119), X120) → U2_ggaa(T61, T62, T63, X119, X120, gt10_in_gg(T61, T62))
U2_ggaa(T61, T62, T63, X119, X120, gt10_out_gg(T61, T62)) → part20_out_ggaa(T61, .(T62, T63), .(T62, X119), X120)
U2_ggaa(T61, T62, T63, X119, X120, gt10_out_gg(T61, T62)) → U3_ggaa(T61, T62, T63, X119, X120, part20_in_ggaa(T61, T63, X119, X120))
part20_in_ggaa(T83, .(T84, T85), X170, .(T84, X171)) → U4_ggaa(T83, T84, T85, X170, X171, le33_in_gg(T83, T84))
le33_in_gg(s(T98), s(T99)) → U6_gg(T98, T99, le33_in_gg(T98, T99))
le33_in_gg(0, s(0)) → le33_out_gg(0, s(0))
le33_in_gg(0, 0) → le33_out_gg(0, 0)
U6_gg(T98, T99, le33_out_gg(T98, T99)) → le33_out_gg(s(T98), s(T99))
U4_ggaa(T83, T84, T85, X170, X171, le33_out_gg(T83, T84)) → part20_out_ggaa(T83, .(T84, T85), X170, .(T84, X171))
U4_ggaa(T83, T84, T85, X170, X171, le33_out_gg(T83, T84)) → U5_ggaa(T83, T84, T85, X170, X171, part20_in_ggaa(T83, T85, X170, X171))
part20_in_ggaa(T107, [], [], []) → part20_out_ggaa(T107, [], [], [])
U5_ggaa(T83, T84, T85, X170, X171, part20_out_ggaa(T83, T85, X170, X171)) → part20_out_ggaa(T83, .(T84, T85), X170, .(T84, X171))
U3_ggaa(T61, T62, T63, X119, X120, part20_out_ggaa(T61, T63, X119, X120)) → part20_out_ggaa(T61, .(T62, T63), .(T62, X119), X120)
U20_ga(T22, T23, T24, T9, part20_out_ggaa(T22, T24, X47, X48)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U19_ga(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → U21_ga(T22, T23, T24, T9, part20_in_ggaa(T22, T24, T44, T45))
U21_ga(T22, T23, T24, T9, part20_out_ggaa(T22, T24, T44, T45)) → U22_ga(T22, T23, T24, T9, qs1_in_aa(.(T23, T44), X9))
qs1_in_aa(.(T22, .(T23, T24)), T9) → U19_aa(T22, T23, T24, T9, gt10_in_aa(T22, T23))
gt10_in_aa(s(T37), s(T38)) → U1_aa(T37, T38, gt10_in_aa(T37, T38))
gt10_in_aa(s(0), 0) → gt10_out_aa(s(0), 0)
U1_aa(T37, T38, gt10_out_aa(T37, T38)) → gt10_out_aa(s(T37), s(T38))
U19_aa(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U19_aa(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → U20_aa(T22, T23, T24, T9, part20_in_gaaa(T22, T24, X47, X48))
part20_in_gaaa(T61, .(T62, T63), .(T62, X119), X120) → U2_gaaa(T61, T62, T63, X119, X120, gt10_in_ga(T61, T62))
gt10_in_ga(s(T37), s(T38)) → U1_ga(T37, T38, gt10_in_ga(T37, T38))
gt10_in_ga(s(0), 0) → gt10_out_ga(s(0), 0)
U1_ga(T37, T38, gt10_out_ga(T37, T38)) → gt10_out_ga(s(T37), s(T38))
U2_gaaa(T61, T62, T63, X119, X120, gt10_out_ga(T61, T62)) → part20_out_gaaa(T61, .(T62, T63), .(T62, X119), X120)
U2_gaaa(T61, T62, T63, X119, X120, gt10_out_ga(T61, T62)) → U3_gaaa(T61, T62, T63, X119, X120, part20_in_gaaa(T61, T63, X119, X120))
part20_in_gaaa(T83, .(T84, T85), X170, .(T84, X171)) → U4_gaaa(T83, T84, T85, X170, X171, le33_in_ga(T83, T84))
le33_in_ga(s(T98), s(T99)) → U6_ga(T98, T99, le33_in_ga(T98, T99))
le33_in_ga(0, s(0)) → le33_out_ga(0, s(0))
le33_in_ga(0, 0) → le33_out_ga(0, 0)
U6_ga(T98, T99, le33_out_ga(T98, T99)) → le33_out_ga(s(T98), s(T99))
U4_gaaa(T83, T84, T85, X170, X171, le33_out_ga(T83, T84)) → part20_out_gaaa(T83, .(T84, T85), X170, .(T84, X171))
U4_gaaa(T83, T84, T85, X170, X171, le33_out_ga(T83, T84)) → U5_gaaa(T83, T84, T85, X170, X171, part20_in_gaaa(T83, T85, X170, X171))
part20_in_gaaa(T107, [], [], []) → part20_out_gaaa(T107, [], [], [])
U5_gaaa(T83, T84, T85, X170, X171, part20_out_gaaa(T83, T85, X170, X171)) → part20_out_gaaa(T83, .(T84, T85), X170, .(T84, X171))
U3_gaaa(T61, T62, T63, X119, X120, part20_out_gaaa(T61, T63, X119, X120)) → part20_out_gaaa(T61, .(T62, T63), .(T62, X119), X120)
U20_aa(T22, T23, T24, T9, part20_out_gaaa(T22, T24, X47, X48)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U19_aa(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → U21_aa(T22, T23, T24, T9, part20_in_gaaa(T22, T24, T44, T45))
U21_aa(T22, T23, T24, T9, part20_out_gaaa(T22, T24, T44, T45)) → U22_aa(T22, T23, T24, T9, qs1_in_aa(.(T23, T44), X9))
qs1_in_aa(.(T234, .(T235, T236)), T9) → U25_aa(T234, T235, T236, T9, le33_in_aa(T234, T235))
le33_in_aa(s(T98), s(T99)) → U6_aa(T98, T99, le33_in_aa(T98, T99))
le33_in_aa(0, s(0)) → le33_out_aa(0, s(0))
le33_in_aa(0, 0) → le33_out_aa(0, 0)
U6_aa(T98, T99, le33_out_aa(T98, T99)) → le33_out_aa(s(T98), s(T99))
U25_aa(T234, T235, T236, T9, le33_out_aa(T234, T235)) → qs1_out_aa(.(T234, .(T235, T236)), T9)
U25_aa(T234, T235, T236, T9, le33_out_aa(T234, T235)) → U26_aa(T234, T235, T236, T9, part20_in_gaaa(T234, T236, X431, X432))
U26_aa(T234, T235, T236, T9, part20_out_gaaa(T234, T236, X431, X432)) → qs1_out_aa(.(T234, .(T235, T236)), T9)
U25_aa(T234, T235, T236, T9, le33_out_aa(T234, T235)) → U27_aa(T234, T235, T236, T9, part20_in_gaaa(T234, T236, T244, T245))
U27_aa(T234, T235, T236, T9, part20_out_gaaa(T234, T236, T244, T245)) → U28_aa(T234, T235, T236, T9, qs53_in_aa(T244, X9))
qs53_in_aa(.(T126, T127), X269) → U7_aa(T126, T127, X269, part20_in_aaaa(T126, T127, X265, X266))
part20_in_aaaa(T61, .(T62, T63), .(T62, X119), X120) → U2_aaaa(T61, T62, T63, X119, X120, gt10_in_aa(T61, T62))
U2_aaaa(T61, T62, T63, X119, X120, gt10_out_aa(T61, T62)) → part20_out_aaaa(T61, .(T62, T63), .(T62, X119), X120)
U2_aaaa(T61, T62, T63, X119, X120, gt10_out_aa(T61, T62)) → U3_aaaa(T61, T62, T63, X119, X120, part20_in_gaaa(T61, T63, X119, X120))
U3_aaaa(T61, T62, T63, X119, X120, part20_out_gaaa(T61, T63, X119, X120)) → part20_out_aaaa(T61, .(T62, T63), .(T62, X119), X120)
part20_in_aaaa(T83, .(T84, T85), X170, .(T84, X171)) → U4_aaaa(T83, T84, T85, X170, X171, le33_in_aa(T83, T84))
U4_aaaa(T83, T84, T85, X170, X171, le33_out_aa(T83, T84)) → part20_out_aaaa(T83, .(T84, T85), X170, .(T84, X171))
U4_aaaa(T83, T84, T85, X170, X171, le33_out_aa(T83, T84)) → U5_aaaa(T83, T84, T85, X170, X171, part20_in_gaaa(T83, T85, X170, X171))
U5_aaaa(T83, T84, T85, X170, X171, part20_out_gaaa(T83, T85, X170, X171)) → part20_out_aaaa(T83, .(T84, T85), X170, .(T84, X171))
part20_in_aaaa(T107, [], [], []) → part20_out_aaaa(T107, [], [], [])
U7_aa(T126, T127, X269, part20_out_aaaa(T126, T127, X265, X266)) → qs53_out_aa(.(T126, T127), X269)
qs53_in_aa(.(T126, T127), X269) → U8_aa(T126, T127, X269, part20_in_aaaa(T126, T127, T131, T132))
U8_aa(T126, T127, X269, part20_out_aaaa(T126, T127, T131, T132)) → U9_aa(T126, T127, X269, qs53_in_aa(T131, X267))
qs53_in_aa([], []) → qs53_out_aa([], [])
U9_aa(T126, T127, X269, qs53_out_aa(T131, X267)) → qs53_out_aa(.(T126, T127), X269)
U8_aa(T126, T127, X269, part20_out_aaaa(T126, T127, T131, T132)) → U10_aa(T126, T127, X269, T132, qs53_in_aa(T131, T138))
U10_aa(T126, T127, X269, T132, qs53_out_aa(T131, T138)) → U11_aa(T126, T127, X269, qs53_in_aa(T132, X268))
U11_aa(T126, T127, X269, qs53_out_aa(T132, X268)) → qs53_out_aa(.(T126, T127), X269)
U10_aa(T126, T127, X269, T132, qs53_out_aa(T131, T138)) → U12_aa(T126, T127, X269, T138, qs53_in_aa(T132, T143))
U12_aa(T126, T127, X269, T138, qs53_out_aa(T132, T143)) → U13_aa(T126, T127, X269, app65_in_aaaa(T138, T126, T143, X269))
app65_in_aaaa(.(T166, T167), T168, T169, .(T166, X348)) → U14_aaaa(T166, T167, T168, T169, X348, app65_in_aaaa(T167, T168, T169, X348))
app65_in_aaaa([], T178, T179, .(T178, T179)) → app65_out_aaaa([], T178, T179, .(T178, T179))
U14_aaaa(T166, T167, T168, T169, X348, app65_out_aaaa(T167, T168, T169, X348)) → app65_out_aaaa(.(T166, T167), T168, T169, .(T166, X348))
U13_aa(T126, T127, X269, app65_out_aaaa(T138, T126, T143, X269)) → qs53_out_aa(.(T126, T127), X269)
U28_aa(T234, T235, T236, T9, qs53_out_aa(T244, X9)) → qs1_out_aa(.(T234, .(T235, T236)), T9)
U27_aa(T234, T235, T236, T9, part20_out_gaaa(T234, T236, T244, T245)) → U29_aa(T234, T235, T236, T9, T245, qs53_in_aa(T244, T251))
U29_aa(T234, T235, T236, T9, T245, qs53_out_aa(T244, T251)) → U30_aa(T234, T235, T236, T9, p52_in_aaaga(.(T235, T245), X10, T251, T234, T9))
p52_in_aaaga(T45, X10, T110, T22, T9) → U16_aaaga(T45, X10, T110, T22, T9, qs53_in_aa(T45, X10))
U16_aaaga(T45, X10, T110, T22, T9, qs53_out_aa(T45, X10)) → p52_out_aaaga(T45, X10, T110, T22, T9)
p52_in_aaaga(T45, T115, T110, T22, T9) → U17_aaaga(T45, T115, T110, T22, T9, qs53_in_aa(T45, T115))
U17_aaaga(T45, T115, T110, T22, T9, qs53_out_aa(T45, T115)) → U18_aaaga(T45, T115, T110, T22, T9, app54_in_agaa(T110, T22, T115, T9))
app54_in_agaa(.(T205, T206), T207, T208, .(T205, T210)) → U15_agaa(T205, T206, T207, T208, T210, app54_in_agaa(T206, T207, T208, T210))
app54_in_agaa([], T220, T221, .(T220, T221)) → app54_out_agaa([], T220, T221, .(T220, T221))
U15_agaa(T205, T206, T207, T208, T210, app54_out_agaa(T206, T207, T208, T210)) → app54_out_agaa(.(T205, T206), T207, T208, .(T205, T210))
U18_aaaga(T45, T115, T110, T22, T9, app54_out_agaa(T110, T22, T115, T9)) → p52_out_aaaga(T45, T115, T110, T22, T9)
U30_aa(T234, T235, T236, T9, p52_out_aaaga(.(T235, T245), X10, T251, T234, T9)) → qs1_out_aa(.(T234, .(T235, T236)), T9)
qs1_in_aa(.(T260, []), T9) → U31_aa(T260, T9, qs99_in_a(X9))
qs99_in_a([]) → qs99_out_a([])
U31_aa(T260, T9, qs99_out_a(X9)) → qs1_out_aa(.(T260, []), T9)
qs1_in_aa(.(T260, []), T9) → U32_aa(T260, T9, qs99_in_a(T263))
U32_aa(T260, T9, qs99_out_a(T263)) → U33_aa(T260, T9, qs99_in_a(X10))
U33_aa(T260, T9, qs99_out_a(X10)) → qs1_out_aa(.(T260, []), T9)
U32_aa(T260, T9, qs99_out_a(T263)) → U34_aa(T260, T9, T263, qs99_in_a(T268))
U34_aa(T260, T9, T263, qs99_out_a(T268)) → U35_aa(T260, T9, app54_in_gaga(T263, T260, T268, T9))
app54_in_gaga(.(T205, T206), T207, T208, .(T205, T210)) → U15_gaga(T205, T206, T207, T208, T210, app54_in_gaga(T206, T207, T208, T210))
app54_in_gaga([], T220, T221, .(T220, T221)) → app54_out_gaga([], T220, T221, .(T220, T221))
U15_gaga(T205, T206, T207, T208, T210, app54_out_gaga(T206, T207, T208, T210)) → app54_out_gaga(.(T205, T206), T207, T208, .(T205, T210))
U35_aa(T260, T9, app54_out_gaga(T263, T260, T268, T9)) → qs1_out_aa(.(T260, []), T9)
qs1_in_aa([], []) → qs1_out_aa([], [])
U22_aa(T22, T23, T24, T9, qs1_out_aa(.(T23, T44), X9)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U21_aa(T22, T23, T24, T9, part20_out_gaaa(T22, T24, T44, T45)) → U23_aa(T22, T23, T24, T9, T45, qs1_in_aa(.(T23, T44), T110))
U23_aa(T22, T23, T24, T9, T45, qs1_out_aa(.(T23, T44), T110)) → U24_aa(T22, T23, T24, T9, p52_in_aaaga(T45, X10, T110, T22, T9))
U24_aa(T22, T23, T24, T9, p52_out_aaaga(T45, X10, T110, T22, T9)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U22_ga(T22, T23, T24, T9, qs1_out_aa(.(T23, T44), X9)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U21_ga(T22, T23, T24, T9, part20_out_ggaa(T22, T24, T44, T45)) → U23_ga(T22, T23, T24, T9, T45, qs1_in_aa(.(T23, T44), T110))
U23_ga(T22, T23, T24, T9, T45, qs1_out_aa(.(T23, T44), T110)) → U24_ga(T22, T23, T24, T9, p52_in_aaaga(T45, X10, T110, T22, T9))
U24_ga(T22, T23, T24, T9, p52_out_aaaga(T45, X10, T110, T22, T9)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
qs1_in_ga(.(T234, .(T235, T236)), T9) → U25_ga(T234, T235, T236, T9, le33_in_gg(T234, T235))
U25_ga(T234, T235, T236, T9, le33_out_gg(T234, T235)) → qs1_out_ga(.(T234, .(T235, T236)), T9)
U25_ga(T234, T235, T236, T9, le33_out_gg(T234, T235)) → U26_ga(T234, T235, T236, T9, part20_in_ggaa(T234, T236, X431, X432))
U26_ga(T234, T235, T236, T9, part20_out_ggaa(T234, T236, X431, X432)) → qs1_out_ga(.(T234, .(T235, T236)), T9)
U25_ga(T234, T235, T236, T9, le33_out_gg(T234, T235)) → U27_ga(T234, T235, T236, T9, part20_in_ggaa(T234, T236, T244, T245))
U27_ga(T234, T235, T236, T9, part20_out_ggaa(T234, T236, T244, T245)) → U28_ga(T234, T235, T236, T9, qs53_in_aa(T244, X9))
U28_ga(T234, T235, T236, T9, qs53_out_aa(T244, X9)) → qs1_out_ga(.(T234, .(T235, T236)), T9)
U27_ga(T234, T235, T236, T9, part20_out_ggaa(T234, T236, T244, T245)) → U29_ga(T234, T235, T236, T9, T245, qs53_in_aa(T244, T251))
U29_ga(T234, T235, T236, T9, T245, qs53_out_aa(T244, T251)) → U30_ga(T234, T235, T236, T9, p52_in_aaaga(.(T235, T245), X10, T251, T234, T9))
U30_ga(T234, T235, T236, T9, p52_out_aaaga(.(T235, T245), X10, T251, T234, T9)) → qs1_out_ga(.(T234, .(T235, T236)), T9)
qs1_in_ga(.(T260, []), T9) → U31_ga(T260, T9, qs99_in_a(X9))
U31_ga(T260, T9, qs99_out_a(X9)) → qs1_out_ga(.(T260, []), T9)
qs1_in_ga(.(T260, []), T9) → U32_ga(T260, T9, qs99_in_a(T263))
U32_ga(T260, T9, qs99_out_a(T263)) → U33_ga(T260, T9, qs99_in_a(X10))
U33_ga(T260, T9, qs99_out_a(X10)) → qs1_out_ga(.(T260, []), T9)
U32_ga(T260, T9, qs99_out_a(T263)) → U34_ga(T260, T9, T263, qs99_in_a(T268))
U34_ga(T260, T9, T263, qs99_out_a(T268)) → U35_ga(T260, T9, app54_in_ggga(T263, T260, T268, T9))
app54_in_ggga(.(T205, T206), T207, T208, .(T205, T210)) → U15_ggga(T205, T206, T207, T208, T210, app54_in_ggga(T206, T207, T208, T210))
app54_in_ggga([], T220, T221, .(T220, T221)) → app54_out_ggga([], T220, T221, .(T220, T221))
U15_ggga(T205, T206, T207, T208, T210, app54_out_ggga(T206, T207, T208, T210)) → app54_out_ggga(.(T205, T206), T207, T208, .(T205, T210))
U35_ga(T260, T9, app54_out_ggga(T263, T260, T268, T9)) → qs1_out_ga(.(T260, []), T9)
qs1_in_ga([], []) → qs1_out_ga([], [])
QS53_IN_AA(.(T126, T127), X269) → U8_AA(T126, T127, X269, part20_in_aaaa(T126, T127, T131, T132))
U8_AA(T126, T127, X269, part20_out_aaaa(T126, T127, T131, T132)) → QS53_IN_AA(T131, X267)
U8_AA(T126, T127, X269, part20_out_aaaa(T126, T127, T131, T132)) → U10_AA(T126, T127, X269, T132, qs53_in_aa(T131, T138))
U10_AA(T126, T127, X269, T132, qs53_out_aa(T131, T138)) → QS53_IN_AA(T132, X268)
part20_in_aaaa(T61, .(T62, T63), .(T62, X119), X120) → U2_aaaa(T61, T62, T63, X119, X120, gt10_in_aa(T61, T62))
part20_in_aaaa(T83, .(T84, T85), X170, .(T84, X171)) → U4_aaaa(T83, T84, T85, X170, X171, le33_in_aa(T83, T84))
part20_in_aaaa(T107, [], [], []) → part20_out_aaaa(T107, [], [], [])
qs53_in_aa(.(T126, T127), X269) → U7_aa(T126, T127, X269, part20_in_aaaa(T126, T127, X265, X266))
qs53_in_aa(.(T126, T127), X269) → U8_aa(T126, T127, X269, part20_in_aaaa(T126, T127, T131, T132))
qs53_in_aa([], []) → qs53_out_aa([], [])
U2_aaaa(T61, T62, T63, X119, X120, gt10_out_aa(T61, T62)) → part20_out_aaaa(T61, .(T62, T63), .(T62, X119), X120)
U2_aaaa(T61, T62, T63, X119, X120, gt10_out_aa(T61, T62)) → U3_aaaa(T61, T62, T63, X119, X120, part20_in_gaaa(T61, T63, X119, X120))
U4_aaaa(T83, T84, T85, X170, X171, le33_out_aa(T83, T84)) → part20_out_aaaa(T83, .(T84, T85), X170, .(T84, X171))
U4_aaaa(T83, T84, T85, X170, X171, le33_out_aa(T83, T84)) → U5_aaaa(T83, T84, T85, X170, X171, part20_in_gaaa(T83, T85, X170, X171))
U7_aa(T126, T127, X269, part20_out_aaaa(T126, T127, X265, X266)) → qs53_out_aa(.(T126, T127), X269)
U8_aa(T126, T127, X269, part20_out_aaaa(T126, T127, T131, T132)) → U9_aa(T126, T127, X269, qs53_in_aa(T131, X267))
U8_aa(T126, T127, X269, part20_out_aaaa(T126, T127, T131, T132)) → U10_aa(T126, T127, X269, T132, qs53_in_aa(T131, T138))
gt10_in_aa(s(T37), s(T38)) → U1_aa(T37, T38, gt10_in_aa(T37, T38))
gt10_in_aa(s(0), 0) → gt10_out_aa(s(0), 0)
U3_aaaa(T61, T62, T63, X119, X120, part20_out_gaaa(T61, T63, X119, X120)) → part20_out_aaaa(T61, .(T62, T63), .(T62, X119), X120)
le33_in_aa(s(T98), s(T99)) → U6_aa(T98, T99, le33_in_aa(T98, T99))
le33_in_aa(0, s(0)) → le33_out_aa(0, s(0))
le33_in_aa(0, 0) → le33_out_aa(0, 0)
U5_aaaa(T83, T84, T85, X170, X171, part20_out_gaaa(T83, T85, X170, X171)) → part20_out_aaaa(T83, .(T84, T85), X170, .(T84, X171))
U9_aa(T126, T127, X269, qs53_out_aa(T131, X267)) → qs53_out_aa(.(T126, T127), X269)
U10_aa(T126, T127, X269, T132, qs53_out_aa(T131, T138)) → U11_aa(T126, T127, X269, qs53_in_aa(T132, X268))
U10_aa(T126, T127, X269, T132, qs53_out_aa(T131, T138)) → U12_aa(T126, T127, X269, T138, qs53_in_aa(T132, T143))
U1_aa(T37, T38, gt10_out_aa(T37, T38)) → gt10_out_aa(s(T37), s(T38))
part20_in_gaaa(T61, .(T62, T63), .(T62, X119), X120) → U2_gaaa(T61, T62, T63, X119, X120, gt10_in_ga(T61, T62))
part20_in_gaaa(T83, .(T84, T85), X170, .(T84, X171)) → U4_gaaa(T83, T84, T85, X170, X171, le33_in_ga(T83, T84))
part20_in_gaaa(T107, [], [], []) → part20_out_gaaa(T107, [], [], [])
U6_aa(T98, T99, le33_out_aa(T98, T99)) → le33_out_aa(s(T98), s(T99))
U11_aa(T126, T127, X269, qs53_out_aa(T132, X268)) → qs53_out_aa(.(T126, T127), X269)
U12_aa(T126, T127, X269, T138, qs53_out_aa(T132, T143)) → U13_aa(T126, T127, X269, app65_in_aaaa(T138, T126, T143, X269))
U2_gaaa(T61, T62, T63, X119, X120, gt10_out_ga(T61, T62)) → part20_out_gaaa(T61, .(T62, T63), .(T62, X119), X120)
U2_gaaa(T61, T62, T63, X119, X120, gt10_out_ga(T61, T62)) → U3_gaaa(T61, T62, T63, X119, X120, part20_in_gaaa(T61, T63, X119, X120))
U4_gaaa(T83, T84, T85, X170, X171, le33_out_ga(T83, T84)) → part20_out_gaaa(T83, .(T84, T85), X170, .(T84, X171))
U4_gaaa(T83, T84, T85, X170, X171, le33_out_ga(T83, T84)) → U5_gaaa(T83, T84, T85, X170, X171, part20_in_gaaa(T83, T85, X170, X171))
U13_aa(T126, T127, X269, app65_out_aaaa(T138, T126, T143, X269)) → qs53_out_aa(.(T126, T127), X269)
gt10_in_ga(s(T37), s(T38)) → U1_ga(T37, T38, gt10_in_ga(T37, T38))
gt10_in_ga(s(0), 0) → gt10_out_ga(s(0), 0)
U3_gaaa(T61, T62, T63, X119, X120, part20_out_gaaa(T61, T63, X119, X120)) → part20_out_gaaa(T61, .(T62, T63), .(T62, X119), X120)
le33_in_ga(s(T98), s(T99)) → U6_ga(T98, T99, le33_in_ga(T98, T99))
le33_in_ga(0, s(0)) → le33_out_ga(0, s(0))
le33_in_ga(0, 0) → le33_out_ga(0, 0)
U5_gaaa(T83, T84, T85, X170, X171, part20_out_gaaa(T83, T85, X170, X171)) → part20_out_gaaa(T83, .(T84, T85), X170, .(T84, X171))
app65_in_aaaa(.(T166, T167), T168, T169, .(T166, X348)) → U14_aaaa(T166, T167, T168, T169, X348, app65_in_aaaa(T167, T168, T169, X348))
app65_in_aaaa([], T178, T179, .(T178, T179)) → app65_out_aaaa([], T178, T179, .(T178, T179))
U1_ga(T37, T38, gt10_out_ga(T37, T38)) → gt10_out_ga(s(T37), s(T38))
U6_ga(T98, T99, le33_out_ga(T98, T99)) → le33_out_ga(s(T98), s(T99))
U14_aaaa(T166, T167, T168, T169, X348, app65_out_aaaa(T167, T168, T169, X348)) → app65_out_aaaa(.(T166, T167), T168, T169, .(T166, X348))
QS53_IN_AA → U8_AA(part20_in_aaaa)
U8_AA(part20_out_aaaa) → QS53_IN_AA
U8_AA(part20_out_aaaa) → U10_AA(qs53_in_aa)
U10_AA(qs53_out_aa) → QS53_IN_AA
part20_in_aaaa → U2_aaaa(gt10_in_aa)
part20_in_aaaa → U4_aaaa(le33_in_aa)
part20_in_aaaa → part20_out_aaaa
qs53_in_aa → U7_aa(part20_in_aaaa)
qs53_in_aa → U8_aa(part20_in_aaaa)
qs53_in_aa → qs53_out_aa
U2_aaaa(gt10_out_aa(T61, T62)) → part20_out_aaaa
U2_aaaa(gt10_out_aa(T61, T62)) → U3_aaaa(part20_in_gaaa(T61))
U4_aaaa(le33_out_aa(T83, T84)) → part20_out_aaaa
U4_aaaa(le33_out_aa(T83, T84)) → U5_aaaa(part20_in_gaaa(T83))
U7_aa(part20_out_aaaa) → qs53_out_aa
U8_aa(part20_out_aaaa) → U9_aa(qs53_in_aa)
U8_aa(part20_out_aaaa) → U10_aa(qs53_in_aa)
gt10_in_aa → U1_aa(gt10_in_aa)
gt10_in_aa → gt10_out_aa(s(0), 0)
U3_aaaa(part20_out_gaaa) → part20_out_aaaa
le33_in_aa → U6_aa(le33_in_aa)
le33_in_aa → le33_out_aa(0, s(0))
le33_in_aa → le33_out_aa(0, 0)
U5_aaaa(part20_out_gaaa) → part20_out_aaaa
U9_aa(qs53_out_aa) → qs53_out_aa
U10_aa(qs53_out_aa) → U11_aa(qs53_in_aa)
U10_aa(qs53_out_aa) → U12_aa(qs53_in_aa)
U1_aa(gt10_out_aa(T37, T38)) → gt10_out_aa(s(T37), s(T38))
part20_in_gaaa(T61) → U2_gaaa(T61, gt10_in_ga(T61))
part20_in_gaaa(T83) → U4_gaaa(T83, le33_in_ga(T83))
part20_in_gaaa(T107) → part20_out_gaaa
U6_aa(le33_out_aa(T98, T99)) → le33_out_aa(s(T98), s(T99))
U11_aa(qs53_out_aa) → qs53_out_aa
U12_aa(qs53_out_aa) → U13_aa(app65_in_aaaa)
U2_gaaa(T61, gt10_out_ga(T62)) → part20_out_gaaa
U2_gaaa(T61, gt10_out_ga(T62)) → U3_gaaa(part20_in_gaaa(T61))
U4_gaaa(T83, le33_out_ga(T84)) → part20_out_gaaa
U4_gaaa(T83, le33_out_ga(T84)) → U5_gaaa(part20_in_gaaa(T83))
U13_aa(app65_out_aaaa) → qs53_out_aa
gt10_in_ga(s(T37)) → U1_ga(gt10_in_ga(T37))
gt10_in_ga(s(0)) → gt10_out_ga(0)
U3_gaaa(part20_out_gaaa) → part20_out_gaaa
le33_in_ga(s(T98)) → U6_ga(le33_in_ga(T98))
le33_in_ga(0) → le33_out_ga(s(0))
le33_in_ga(0) → le33_out_ga(0)
U5_gaaa(part20_out_gaaa) → part20_out_gaaa
app65_in_aaaa → U14_aaaa(app65_in_aaaa)
app65_in_aaaa → app65_out_aaaa
U1_ga(gt10_out_ga(T38)) → gt10_out_ga(s(T38))
U6_ga(le33_out_ga(T99)) → le33_out_ga(s(T99))
U14_aaaa(app65_out_aaaa) → app65_out_aaaa
part20_in_aaaa
qs53_in_aa
U2_aaaa(x0)
U4_aaaa(x0)
U7_aa(x0)
U8_aa(x0)
gt10_in_aa
U3_aaaa(x0)
le33_in_aa
U5_aaaa(x0)
U9_aa(x0)
U10_aa(x0)
U1_aa(x0)
part20_in_gaaa(x0)
U6_aa(x0)
U11_aa(x0)
U12_aa(x0)
U2_gaaa(x0, x1)
U4_gaaa(x0, x1)
U13_aa(x0)
gt10_in_ga(x0)
U3_gaaa(x0)
le33_in_ga(x0)
U5_gaaa(x0)
app65_in_aaaa
U1_ga(x0)
U6_ga(x0)
U14_aaaa(x0)
QS53_IN_AA → U8_AA(U2_aaaa(gt10_in_aa))
QS53_IN_AA → U8_AA(U4_aaaa(le33_in_aa))
QS53_IN_AA → U8_AA(part20_out_aaaa)
U8_AA(part20_out_aaaa) → QS53_IN_AA
U8_AA(part20_out_aaaa) → U10_AA(qs53_in_aa)
U10_AA(qs53_out_aa) → QS53_IN_AA
QS53_IN_AA → U8_AA(U2_aaaa(gt10_in_aa))
QS53_IN_AA → U8_AA(U4_aaaa(le33_in_aa))
QS53_IN_AA → U8_AA(part20_out_aaaa)
part20_in_aaaa → U2_aaaa(gt10_in_aa)
part20_in_aaaa → U4_aaaa(le33_in_aa)
part20_in_aaaa → part20_out_aaaa
qs53_in_aa → U7_aa(part20_in_aaaa)
qs53_in_aa → U8_aa(part20_in_aaaa)
qs53_in_aa → qs53_out_aa
U2_aaaa(gt10_out_aa(T61, T62)) → part20_out_aaaa
U2_aaaa(gt10_out_aa(T61, T62)) → U3_aaaa(part20_in_gaaa(T61))
U4_aaaa(le33_out_aa(T83, T84)) → part20_out_aaaa
U4_aaaa(le33_out_aa(T83, T84)) → U5_aaaa(part20_in_gaaa(T83))
U7_aa(part20_out_aaaa) → qs53_out_aa
U8_aa(part20_out_aaaa) → U9_aa(qs53_in_aa)
U8_aa(part20_out_aaaa) → U10_aa(qs53_in_aa)
gt10_in_aa → U1_aa(gt10_in_aa)
gt10_in_aa → gt10_out_aa(s(0), 0)
U3_aaaa(part20_out_gaaa) → part20_out_aaaa
le33_in_aa → U6_aa(le33_in_aa)
le33_in_aa → le33_out_aa(0, s(0))
le33_in_aa → le33_out_aa(0, 0)
U5_aaaa(part20_out_gaaa) → part20_out_aaaa
U9_aa(qs53_out_aa) → qs53_out_aa
U10_aa(qs53_out_aa) → U11_aa(qs53_in_aa)
U10_aa(qs53_out_aa) → U12_aa(qs53_in_aa)
U1_aa(gt10_out_aa(T37, T38)) → gt10_out_aa(s(T37), s(T38))
part20_in_gaaa(T61) → U2_gaaa(T61, gt10_in_ga(T61))
part20_in_gaaa(T83) → U4_gaaa(T83, le33_in_ga(T83))
part20_in_gaaa(T107) → part20_out_gaaa
U6_aa(le33_out_aa(T98, T99)) → le33_out_aa(s(T98), s(T99))
U11_aa(qs53_out_aa) → qs53_out_aa
U12_aa(qs53_out_aa) → U13_aa(app65_in_aaaa)
U2_gaaa(T61, gt10_out_ga(T62)) → part20_out_gaaa
U2_gaaa(T61, gt10_out_ga(T62)) → U3_gaaa(part20_in_gaaa(T61))
U4_gaaa(T83, le33_out_ga(T84)) → part20_out_gaaa
U4_gaaa(T83, le33_out_ga(T84)) → U5_gaaa(part20_in_gaaa(T83))
U13_aa(app65_out_aaaa) → qs53_out_aa
gt10_in_ga(s(T37)) → U1_ga(gt10_in_ga(T37))
gt10_in_ga(s(0)) → gt10_out_ga(0)
U3_gaaa(part20_out_gaaa) → part20_out_gaaa
le33_in_ga(s(T98)) → U6_ga(le33_in_ga(T98))
le33_in_ga(0) → le33_out_ga(s(0))
le33_in_ga(0) → le33_out_ga(0)
U5_gaaa(part20_out_gaaa) → part20_out_gaaa
app65_in_aaaa → U14_aaaa(app65_in_aaaa)
app65_in_aaaa → app65_out_aaaa
U1_ga(gt10_out_ga(T38)) → gt10_out_ga(s(T38))
U6_ga(le33_out_ga(T99)) → le33_out_ga(s(T99))
U14_aaaa(app65_out_aaaa) → app65_out_aaaa
part20_in_aaaa
qs53_in_aa
U2_aaaa(x0)
U4_aaaa(x0)
U7_aa(x0)
U8_aa(x0)
gt10_in_aa
U3_aaaa(x0)
le33_in_aa
U5_aaaa(x0)
U9_aa(x0)
U10_aa(x0)
U1_aa(x0)
part20_in_gaaa(x0)
U6_aa(x0)
U11_aa(x0)
U12_aa(x0)
U2_gaaa(x0, x1)
U4_gaaa(x0, x1)
U13_aa(x0)
gt10_in_ga(x0)
U3_gaaa(x0)
le33_in_ga(x0)
U5_gaaa(x0)
app65_in_aaaa
U1_ga(x0)
U6_ga(x0)
U14_aaaa(x0)
U8_AA(part20_out_aaaa) → U10_AA(U7_aa(part20_in_aaaa))
U8_AA(part20_out_aaaa) → U10_AA(U8_aa(part20_in_aaaa))
U8_AA(part20_out_aaaa) → U10_AA(qs53_out_aa)
U8_AA(part20_out_aaaa) → QS53_IN_AA
U10_AA(qs53_out_aa) → QS53_IN_AA
QS53_IN_AA → U8_AA(U2_aaaa(gt10_in_aa))
QS53_IN_AA → U8_AA(U4_aaaa(le33_in_aa))
QS53_IN_AA → U8_AA(part20_out_aaaa)
U8_AA(part20_out_aaaa) → U10_AA(U7_aa(part20_in_aaaa))
U8_AA(part20_out_aaaa) → U10_AA(U8_aa(part20_in_aaaa))
U8_AA(part20_out_aaaa) → U10_AA(qs53_out_aa)
part20_in_aaaa → U2_aaaa(gt10_in_aa)
part20_in_aaaa → U4_aaaa(le33_in_aa)
part20_in_aaaa → part20_out_aaaa
qs53_in_aa → U7_aa(part20_in_aaaa)
qs53_in_aa → U8_aa(part20_in_aaaa)
qs53_in_aa → qs53_out_aa
U2_aaaa(gt10_out_aa(T61, T62)) → part20_out_aaaa
U2_aaaa(gt10_out_aa(T61, T62)) → U3_aaaa(part20_in_gaaa(T61))
U4_aaaa(le33_out_aa(T83, T84)) → part20_out_aaaa
U4_aaaa(le33_out_aa(T83, T84)) → U5_aaaa(part20_in_gaaa(T83))
U7_aa(part20_out_aaaa) → qs53_out_aa
U8_aa(part20_out_aaaa) → U9_aa(qs53_in_aa)
U8_aa(part20_out_aaaa) → U10_aa(qs53_in_aa)
gt10_in_aa → U1_aa(gt10_in_aa)
gt10_in_aa → gt10_out_aa(s(0), 0)
U3_aaaa(part20_out_gaaa) → part20_out_aaaa
le33_in_aa → U6_aa(le33_in_aa)
le33_in_aa → le33_out_aa(0, s(0))
le33_in_aa → le33_out_aa(0, 0)
U5_aaaa(part20_out_gaaa) → part20_out_aaaa
U9_aa(qs53_out_aa) → qs53_out_aa
U10_aa(qs53_out_aa) → U11_aa(qs53_in_aa)
U10_aa(qs53_out_aa) → U12_aa(qs53_in_aa)
U1_aa(gt10_out_aa(T37, T38)) → gt10_out_aa(s(T37), s(T38))
part20_in_gaaa(T61) → U2_gaaa(T61, gt10_in_ga(T61))
part20_in_gaaa(T83) → U4_gaaa(T83, le33_in_ga(T83))
part20_in_gaaa(T107) → part20_out_gaaa
U6_aa(le33_out_aa(T98, T99)) → le33_out_aa(s(T98), s(T99))
U11_aa(qs53_out_aa) → qs53_out_aa
U12_aa(qs53_out_aa) → U13_aa(app65_in_aaaa)
U2_gaaa(T61, gt10_out_ga(T62)) → part20_out_gaaa
U2_gaaa(T61, gt10_out_ga(T62)) → U3_gaaa(part20_in_gaaa(T61))
U4_gaaa(T83, le33_out_ga(T84)) → part20_out_gaaa
U4_gaaa(T83, le33_out_ga(T84)) → U5_gaaa(part20_in_gaaa(T83))
U13_aa(app65_out_aaaa) → qs53_out_aa
gt10_in_ga(s(T37)) → U1_ga(gt10_in_ga(T37))
gt10_in_ga(s(0)) → gt10_out_ga(0)
U3_gaaa(part20_out_gaaa) → part20_out_gaaa
le33_in_ga(s(T98)) → U6_ga(le33_in_ga(T98))
le33_in_ga(0) → le33_out_ga(s(0))
le33_in_ga(0) → le33_out_ga(0)
U5_gaaa(part20_out_gaaa) → part20_out_gaaa
app65_in_aaaa → U14_aaaa(app65_in_aaaa)
app65_in_aaaa → app65_out_aaaa
U1_ga(gt10_out_ga(T38)) → gt10_out_ga(s(T38))
U6_ga(le33_out_ga(T99)) → le33_out_ga(s(T99))
U14_aaaa(app65_out_aaaa) → app65_out_aaaa
part20_in_aaaa
qs53_in_aa
U2_aaaa(x0)
U4_aaaa(x0)
U7_aa(x0)
U8_aa(x0)
gt10_in_aa
U3_aaaa(x0)
le33_in_aa
U5_aaaa(x0)
U9_aa(x0)
U10_aa(x0)
U1_aa(x0)
part20_in_gaaa(x0)
U6_aa(x0)
U11_aa(x0)
U12_aa(x0)
U2_gaaa(x0, x1)
U4_gaaa(x0, x1)
U13_aa(x0)
gt10_in_ga(x0)
U3_gaaa(x0)
le33_in_ga(x0)
U5_gaaa(x0)
app65_in_aaaa
U1_ga(x0)
U6_ga(x0)
U14_aaaa(x0)
U19_AA(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → U21_AA(T22, T23, T24, T9, part20_in_gaaa(T22, T24, T44, T45))
U21_AA(T22, T23, T24, T9, part20_out_gaaa(T22, T24, T44, T45)) → QS1_IN_AA(.(T23, T44), X9)
QS1_IN_AA(.(T22, .(T23, T24)), T9) → U19_AA(T22, T23, T24, T9, gt10_in_aa(T22, T23))
qs1_in_ga(.(T22, .(T23, T24)), T9) → U19_ga(T22, T23, T24, T9, gt10_in_gg(T22, T23))
gt10_in_gg(s(T37), s(T38)) → U1_gg(T37, T38, gt10_in_gg(T37, T38))
gt10_in_gg(s(0), 0) → gt10_out_gg(s(0), 0)
U1_gg(T37, T38, gt10_out_gg(T37, T38)) → gt10_out_gg(s(T37), s(T38))
U19_ga(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U19_ga(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → U20_ga(T22, T23, T24, T9, part20_in_ggaa(T22, T24, X47, X48))
part20_in_ggaa(T61, .(T62, T63), .(T62, X119), X120) → U2_ggaa(T61, T62, T63, X119, X120, gt10_in_gg(T61, T62))
U2_ggaa(T61, T62, T63, X119, X120, gt10_out_gg(T61, T62)) → part20_out_ggaa(T61, .(T62, T63), .(T62, X119), X120)
U2_ggaa(T61, T62, T63, X119, X120, gt10_out_gg(T61, T62)) → U3_ggaa(T61, T62, T63, X119, X120, part20_in_ggaa(T61, T63, X119, X120))
part20_in_ggaa(T83, .(T84, T85), X170, .(T84, X171)) → U4_ggaa(T83, T84, T85, X170, X171, le33_in_gg(T83, T84))
le33_in_gg(s(T98), s(T99)) → U6_gg(T98, T99, le33_in_gg(T98, T99))
le33_in_gg(0, s(0)) → le33_out_gg(0, s(0))
le33_in_gg(0, 0) → le33_out_gg(0, 0)
U6_gg(T98, T99, le33_out_gg(T98, T99)) → le33_out_gg(s(T98), s(T99))
U4_ggaa(T83, T84, T85, X170, X171, le33_out_gg(T83, T84)) → part20_out_ggaa(T83, .(T84, T85), X170, .(T84, X171))
U4_ggaa(T83, T84, T85, X170, X171, le33_out_gg(T83, T84)) → U5_ggaa(T83, T84, T85, X170, X171, part20_in_ggaa(T83, T85, X170, X171))
part20_in_ggaa(T107, [], [], []) → part20_out_ggaa(T107, [], [], [])
U5_ggaa(T83, T84, T85, X170, X171, part20_out_ggaa(T83, T85, X170, X171)) → part20_out_ggaa(T83, .(T84, T85), X170, .(T84, X171))
U3_ggaa(T61, T62, T63, X119, X120, part20_out_ggaa(T61, T63, X119, X120)) → part20_out_ggaa(T61, .(T62, T63), .(T62, X119), X120)
U20_ga(T22, T23, T24, T9, part20_out_ggaa(T22, T24, X47, X48)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U19_ga(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → U21_ga(T22, T23, T24, T9, part20_in_ggaa(T22, T24, T44, T45))
U21_ga(T22, T23, T24, T9, part20_out_ggaa(T22, T24, T44, T45)) → U22_ga(T22, T23, T24, T9, qs1_in_aa(.(T23, T44), X9))
qs1_in_aa(.(T22, .(T23, T24)), T9) → U19_aa(T22, T23, T24, T9, gt10_in_aa(T22, T23))
gt10_in_aa(s(T37), s(T38)) → U1_aa(T37, T38, gt10_in_aa(T37, T38))
gt10_in_aa(s(0), 0) → gt10_out_aa(s(0), 0)
U1_aa(T37, T38, gt10_out_aa(T37, T38)) → gt10_out_aa(s(T37), s(T38))
U19_aa(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U19_aa(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → U20_aa(T22, T23, T24, T9, part20_in_gaaa(T22, T24, X47, X48))
part20_in_gaaa(T61, .(T62, T63), .(T62, X119), X120) → U2_gaaa(T61, T62, T63, X119, X120, gt10_in_ga(T61, T62))
gt10_in_ga(s(T37), s(T38)) → U1_ga(T37, T38, gt10_in_ga(T37, T38))
gt10_in_ga(s(0), 0) → gt10_out_ga(s(0), 0)
U1_ga(T37, T38, gt10_out_ga(T37, T38)) → gt10_out_ga(s(T37), s(T38))
U2_gaaa(T61, T62, T63, X119, X120, gt10_out_ga(T61, T62)) → part20_out_gaaa(T61, .(T62, T63), .(T62, X119), X120)
U2_gaaa(T61, T62, T63, X119, X120, gt10_out_ga(T61, T62)) → U3_gaaa(T61, T62, T63, X119, X120, part20_in_gaaa(T61, T63, X119, X120))
part20_in_gaaa(T83, .(T84, T85), X170, .(T84, X171)) → U4_gaaa(T83, T84, T85, X170, X171, le33_in_ga(T83, T84))
le33_in_ga(s(T98), s(T99)) → U6_ga(T98, T99, le33_in_ga(T98, T99))
le33_in_ga(0, s(0)) → le33_out_ga(0, s(0))
le33_in_ga(0, 0) → le33_out_ga(0, 0)
U6_ga(T98, T99, le33_out_ga(T98, T99)) → le33_out_ga(s(T98), s(T99))
U4_gaaa(T83, T84, T85, X170, X171, le33_out_ga(T83, T84)) → part20_out_gaaa(T83, .(T84, T85), X170, .(T84, X171))
U4_gaaa(T83, T84, T85, X170, X171, le33_out_ga(T83, T84)) → U5_gaaa(T83, T84, T85, X170, X171, part20_in_gaaa(T83, T85, X170, X171))
part20_in_gaaa(T107, [], [], []) → part20_out_gaaa(T107, [], [], [])
U5_gaaa(T83, T84, T85, X170, X171, part20_out_gaaa(T83, T85, X170, X171)) → part20_out_gaaa(T83, .(T84, T85), X170, .(T84, X171))
U3_gaaa(T61, T62, T63, X119, X120, part20_out_gaaa(T61, T63, X119, X120)) → part20_out_gaaa(T61, .(T62, T63), .(T62, X119), X120)
U20_aa(T22, T23, T24, T9, part20_out_gaaa(T22, T24, X47, X48)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U19_aa(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → U21_aa(T22, T23, T24, T9, part20_in_gaaa(T22, T24, T44, T45))
U21_aa(T22, T23, T24, T9, part20_out_gaaa(T22, T24, T44, T45)) → U22_aa(T22, T23, T24, T9, qs1_in_aa(.(T23, T44), X9))
qs1_in_aa(.(T234, .(T235, T236)), T9) → U25_aa(T234, T235, T236, T9, le33_in_aa(T234, T235))
le33_in_aa(s(T98), s(T99)) → U6_aa(T98, T99, le33_in_aa(T98, T99))
le33_in_aa(0, s(0)) → le33_out_aa(0, s(0))
le33_in_aa(0, 0) → le33_out_aa(0, 0)
U6_aa(T98, T99, le33_out_aa(T98, T99)) → le33_out_aa(s(T98), s(T99))
U25_aa(T234, T235, T236, T9, le33_out_aa(T234, T235)) → qs1_out_aa(.(T234, .(T235, T236)), T9)
U25_aa(T234, T235, T236, T9, le33_out_aa(T234, T235)) → U26_aa(T234, T235, T236, T9, part20_in_gaaa(T234, T236, X431, X432))
U26_aa(T234, T235, T236, T9, part20_out_gaaa(T234, T236, X431, X432)) → qs1_out_aa(.(T234, .(T235, T236)), T9)
U25_aa(T234, T235, T236, T9, le33_out_aa(T234, T235)) → U27_aa(T234, T235, T236, T9, part20_in_gaaa(T234, T236, T244, T245))
U27_aa(T234, T235, T236, T9, part20_out_gaaa(T234, T236, T244, T245)) → U28_aa(T234, T235, T236, T9, qs53_in_aa(T244, X9))
qs53_in_aa(.(T126, T127), X269) → U7_aa(T126, T127, X269, part20_in_aaaa(T126, T127, X265, X266))
part20_in_aaaa(T61, .(T62, T63), .(T62, X119), X120) → U2_aaaa(T61, T62, T63, X119, X120, gt10_in_aa(T61, T62))
U2_aaaa(T61, T62, T63, X119, X120, gt10_out_aa(T61, T62)) → part20_out_aaaa(T61, .(T62, T63), .(T62, X119), X120)
U2_aaaa(T61, T62, T63, X119, X120, gt10_out_aa(T61, T62)) → U3_aaaa(T61, T62, T63, X119, X120, part20_in_gaaa(T61, T63, X119, X120))
U3_aaaa(T61, T62, T63, X119, X120, part20_out_gaaa(T61, T63, X119, X120)) → part20_out_aaaa(T61, .(T62, T63), .(T62, X119), X120)
part20_in_aaaa(T83, .(T84, T85), X170, .(T84, X171)) → U4_aaaa(T83, T84, T85, X170, X171, le33_in_aa(T83, T84))
U4_aaaa(T83, T84, T85, X170, X171, le33_out_aa(T83, T84)) → part20_out_aaaa(T83, .(T84, T85), X170, .(T84, X171))
U4_aaaa(T83, T84, T85, X170, X171, le33_out_aa(T83, T84)) → U5_aaaa(T83, T84, T85, X170, X171, part20_in_gaaa(T83, T85, X170, X171))
U5_aaaa(T83, T84, T85, X170, X171, part20_out_gaaa(T83, T85, X170, X171)) → part20_out_aaaa(T83, .(T84, T85), X170, .(T84, X171))
part20_in_aaaa(T107, [], [], []) → part20_out_aaaa(T107, [], [], [])
U7_aa(T126, T127, X269, part20_out_aaaa(T126, T127, X265, X266)) → qs53_out_aa(.(T126, T127), X269)
qs53_in_aa(.(T126, T127), X269) → U8_aa(T126, T127, X269, part20_in_aaaa(T126, T127, T131, T132))
U8_aa(T126, T127, X269, part20_out_aaaa(T126, T127, T131, T132)) → U9_aa(T126, T127, X269, qs53_in_aa(T131, X267))
qs53_in_aa([], []) → qs53_out_aa([], [])
U9_aa(T126, T127, X269, qs53_out_aa(T131, X267)) → qs53_out_aa(.(T126, T127), X269)
U8_aa(T126, T127, X269, part20_out_aaaa(T126, T127, T131, T132)) → U10_aa(T126, T127, X269, T132, qs53_in_aa(T131, T138))
U10_aa(T126, T127, X269, T132, qs53_out_aa(T131, T138)) → U11_aa(T126, T127, X269, qs53_in_aa(T132, X268))
U11_aa(T126, T127, X269, qs53_out_aa(T132, X268)) → qs53_out_aa(.(T126, T127), X269)
U10_aa(T126, T127, X269, T132, qs53_out_aa(T131, T138)) → U12_aa(T126, T127, X269, T138, qs53_in_aa(T132, T143))
U12_aa(T126, T127, X269, T138, qs53_out_aa(T132, T143)) → U13_aa(T126, T127, X269, app65_in_aaaa(T138, T126, T143, X269))
app65_in_aaaa(.(T166, T167), T168, T169, .(T166, X348)) → U14_aaaa(T166, T167, T168, T169, X348, app65_in_aaaa(T167, T168, T169, X348))
app65_in_aaaa([], T178, T179, .(T178, T179)) → app65_out_aaaa([], T178, T179, .(T178, T179))
U14_aaaa(T166, T167, T168, T169, X348, app65_out_aaaa(T167, T168, T169, X348)) → app65_out_aaaa(.(T166, T167), T168, T169, .(T166, X348))
U13_aa(T126, T127, X269, app65_out_aaaa(T138, T126, T143, X269)) → qs53_out_aa(.(T126, T127), X269)
U28_aa(T234, T235, T236, T9, qs53_out_aa(T244, X9)) → qs1_out_aa(.(T234, .(T235, T236)), T9)
U27_aa(T234, T235, T236, T9, part20_out_gaaa(T234, T236, T244, T245)) → U29_aa(T234, T235, T236, T9, T245, qs53_in_aa(T244, T251))
U29_aa(T234, T235, T236, T9, T245, qs53_out_aa(T244, T251)) → U30_aa(T234, T235, T236, T9, p52_in_aaaga(.(T235, T245), X10, T251, T234, T9))
p52_in_aaaga(T45, X10, T110, T22, T9) → U16_aaaga(T45, X10, T110, T22, T9, qs53_in_aa(T45, X10))
U16_aaaga(T45, X10, T110, T22, T9, qs53_out_aa(T45, X10)) → p52_out_aaaga(T45, X10, T110, T22, T9)
p52_in_aaaga(T45, T115, T110, T22, T9) → U17_aaaga(T45, T115, T110, T22, T9, qs53_in_aa(T45, T115))
U17_aaaga(T45, T115, T110, T22, T9, qs53_out_aa(T45, T115)) → U18_aaaga(T45, T115, T110, T22, T9, app54_in_agaa(T110, T22, T115, T9))
app54_in_agaa(.(T205, T206), T207, T208, .(T205, T210)) → U15_agaa(T205, T206, T207, T208, T210, app54_in_agaa(T206, T207, T208, T210))
app54_in_agaa([], T220, T221, .(T220, T221)) → app54_out_agaa([], T220, T221, .(T220, T221))
U15_agaa(T205, T206, T207, T208, T210, app54_out_agaa(T206, T207, T208, T210)) → app54_out_agaa(.(T205, T206), T207, T208, .(T205, T210))
U18_aaaga(T45, T115, T110, T22, T9, app54_out_agaa(T110, T22, T115, T9)) → p52_out_aaaga(T45, T115, T110, T22, T9)
U30_aa(T234, T235, T236, T9, p52_out_aaaga(.(T235, T245), X10, T251, T234, T9)) → qs1_out_aa(.(T234, .(T235, T236)), T9)
qs1_in_aa(.(T260, []), T9) → U31_aa(T260, T9, qs99_in_a(X9))
qs99_in_a([]) → qs99_out_a([])
U31_aa(T260, T9, qs99_out_a(X9)) → qs1_out_aa(.(T260, []), T9)
qs1_in_aa(.(T260, []), T9) → U32_aa(T260, T9, qs99_in_a(T263))
U32_aa(T260, T9, qs99_out_a(T263)) → U33_aa(T260, T9, qs99_in_a(X10))
U33_aa(T260, T9, qs99_out_a(X10)) → qs1_out_aa(.(T260, []), T9)
U32_aa(T260, T9, qs99_out_a(T263)) → U34_aa(T260, T9, T263, qs99_in_a(T268))
U34_aa(T260, T9, T263, qs99_out_a(T268)) → U35_aa(T260, T9, app54_in_gaga(T263, T260, T268, T9))
app54_in_gaga(.(T205, T206), T207, T208, .(T205, T210)) → U15_gaga(T205, T206, T207, T208, T210, app54_in_gaga(T206, T207, T208, T210))
app54_in_gaga([], T220, T221, .(T220, T221)) → app54_out_gaga([], T220, T221, .(T220, T221))
U15_gaga(T205, T206, T207, T208, T210, app54_out_gaga(T206, T207, T208, T210)) → app54_out_gaga(.(T205, T206), T207, T208, .(T205, T210))
U35_aa(T260, T9, app54_out_gaga(T263, T260, T268, T9)) → qs1_out_aa(.(T260, []), T9)
qs1_in_aa([], []) → qs1_out_aa([], [])
U22_aa(T22, T23, T24, T9, qs1_out_aa(.(T23, T44), X9)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U21_aa(T22, T23, T24, T9, part20_out_gaaa(T22, T24, T44, T45)) → U23_aa(T22, T23, T24, T9, T45, qs1_in_aa(.(T23, T44), T110))
U23_aa(T22, T23, T24, T9, T45, qs1_out_aa(.(T23, T44), T110)) → U24_aa(T22, T23, T24, T9, p52_in_aaaga(T45, X10, T110, T22, T9))
U24_aa(T22, T23, T24, T9, p52_out_aaaga(T45, X10, T110, T22, T9)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U22_ga(T22, T23, T24, T9, qs1_out_aa(.(T23, T44), X9)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U21_ga(T22, T23, T24, T9, part20_out_ggaa(T22, T24, T44, T45)) → U23_ga(T22, T23, T24, T9, T45, qs1_in_aa(.(T23, T44), T110))
U23_ga(T22, T23, T24, T9, T45, qs1_out_aa(.(T23, T44), T110)) → U24_ga(T22, T23, T24, T9, p52_in_aaaga(T45, X10, T110, T22, T9))
U24_ga(T22, T23, T24, T9, p52_out_aaaga(T45, X10, T110, T22, T9)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
qs1_in_ga(.(T234, .(T235, T236)), T9) → U25_ga(T234, T235, T236, T9, le33_in_gg(T234, T235))
U25_ga(T234, T235, T236, T9, le33_out_gg(T234, T235)) → qs1_out_ga(.(T234, .(T235, T236)), T9)
U25_ga(T234, T235, T236, T9, le33_out_gg(T234, T235)) → U26_ga(T234, T235, T236, T9, part20_in_ggaa(T234, T236, X431, X432))
U26_ga(T234, T235, T236, T9, part20_out_ggaa(T234, T236, X431, X432)) → qs1_out_ga(.(T234, .(T235, T236)), T9)
U25_ga(T234, T235, T236, T9, le33_out_gg(T234, T235)) → U27_ga(T234, T235, T236, T9, part20_in_ggaa(T234, T236, T244, T245))
U27_ga(T234, T235, T236, T9, part20_out_ggaa(T234, T236, T244, T245)) → U28_ga(T234, T235, T236, T9, qs53_in_aa(T244, X9))
U28_ga(T234, T235, T236, T9, qs53_out_aa(T244, X9)) → qs1_out_ga(.(T234, .(T235, T236)), T9)
U27_ga(T234, T235, T236, T9, part20_out_ggaa(T234, T236, T244, T245)) → U29_ga(T234, T235, T236, T9, T245, qs53_in_aa(T244, T251))
U29_ga(T234, T235, T236, T9, T245, qs53_out_aa(T244, T251)) → U30_ga(T234, T235, T236, T9, p52_in_aaaga(.(T235, T245), X10, T251, T234, T9))
U30_ga(T234, T235, T236, T9, p52_out_aaaga(.(T235, T245), X10, T251, T234, T9)) → qs1_out_ga(.(T234, .(T235, T236)), T9)
qs1_in_ga(.(T260, []), T9) → U31_ga(T260, T9, qs99_in_a(X9))
U31_ga(T260, T9, qs99_out_a(X9)) → qs1_out_ga(.(T260, []), T9)
qs1_in_ga(.(T260, []), T9) → U32_ga(T260, T9, qs99_in_a(T263))
U32_ga(T260, T9, qs99_out_a(T263)) → U33_ga(T260, T9, qs99_in_a(X10))
U33_ga(T260, T9, qs99_out_a(X10)) → qs1_out_ga(.(T260, []), T9)
U32_ga(T260, T9, qs99_out_a(T263)) → U34_ga(T260, T9, T263, qs99_in_a(T268))
U34_ga(T260, T9, T263, qs99_out_a(T268)) → U35_ga(T260, T9, app54_in_ggga(T263, T260, T268, T9))
app54_in_ggga(.(T205, T206), T207, T208, .(T205, T210)) → U15_ggga(T205, T206, T207, T208, T210, app54_in_ggga(T206, T207, T208, T210))
app54_in_ggga([], T220, T221, .(T220, T221)) → app54_out_ggga([], T220, T221, .(T220, T221))
U15_ggga(T205, T206, T207, T208, T210, app54_out_ggga(T206, T207, T208, T210)) → app54_out_ggga(.(T205, T206), T207, T208, .(T205, T210))
U35_ga(T260, T9, app54_out_ggga(T263, T260, T268, T9)) → qs1_out_ga(.(T260, []), T9)
qs1_in_ga([], []) → qs1_out_ga([], [])
U19_AA(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → U21_AA(T22, T23, T24, T9, part20_in_gaaa(T22, T24, T44, T45))
U21_AA(T22, T23, T24, T9, part20_out_gaaa(T22, T24, T44, T45)) → QS1_IN_AA(.(T23, T44), X9)
QS1_IN_AA(.(T22, .(T23, T24)), T9) → U19_AA(T22, T23, T24, T9, gt10_in_aa(T22, T23))
part20_in_gaaa(T61, .(T62, T63), .(T62, X119), X120) → U2_gaaa(T61, T62, T63, X119, X120, gt10_in_ga(T61, T62))
part20_in_gaaa(T83, .(T84, T85), X170, .(T84, X171)) → U4_gaaa(T83, T84, T85, X170, X171, le33_in_ga(T83, T84))
part20_in_gaaa(T107, [], [], []) → part20_out_gaaa(T107, [], [], [])
gt10_in_aa(s(T37), s(T38)) → U1_aa(T37, T38, gt10_in_aa(T37, T38))
gt10_in_aa(s(0), 0) → gt10_out_aa(s(0), 0)
U2_gaaa(T61, T62, T63, X119, X120, gt10_out_ga(T61, T62)) → part20_out_gaaa(T61, .(T62, T63), .(T62, X119), X120)
U2_gaaa(T61, T62, T63, X119, X120, gt10_out_ga(T61, T62)) → U3_gaaa(T61, T62, T63, X119, X120, part20_in_gaaa(T61, T63, X119, X120))
U4_gaaa(T83, T84, T85, X170, X171, le33_out_ga(T83, T84)) → part20_out_gaaa(T83, .(T84, T85), X170, .(T84, X171))
U4_gaaa(T83, T84, T85, X170, X171, le33_out_ga(T83, T84)) → U5_gaaa(T83, T84, T85, X170, X171, part20_in_gaaa(T83, T85, X170, X171))
U1_aa(T37, T38, gt10_out_aa(T37, T38)) → gt10_out_aa(s(T37), s(T38))
gt10_in_ga(s(T37), s(T38)) → U1_ga(T37, T38, gt10_in_ga(T37, T38))
gt10_in_ga(s(0), 0) → gt10_out_ga(s(0), 0)
U3_gaaa(T61, T62, T63, X119, X120, part20_out_gaaa(T61, T63, X119, X120)) → part20_out_gaaa(T61, .(T62, T63), .(T62, X119), X120)
le33_in_ga(s(T98), s(T99)) → U6_ga(T98, T99, le33_in_ga(T98, T99))
le33_in_ga(0, s(0)) → le33_out_ga(0, s(0))
le33_in_ga(0, 0) → le33_out_ga(0, 0)
U5_gaaa(T83, T84, T85, X170, X171, part20_out_gaaa(T83, T85, X170, X171)) → part20_out_gaaa(T83, .(T84, T85), X170, .(T84, X171))
U1_ga(T37, T38, gt10_out_ga(T37, T38)) → gt10_out_ga(s(T37), s(T38))
U6_ga(T98, T99, le33_out_ga(T98, T99)) → le33_out_ga(s(T98), s(T99))
U19_AA(gt10_out_aa(T22, T23)) → U21_AA(T22, part20_in_gaaa(T22))
U21_AA(T22, part20_out_gaaa) → QS1_IN_AA
QS1_IN_AA → U19_AA(gt10_in_aa)
part20_in_gaaa(T61) → U2_gaaa(T61, gt10_in_ga(T61))
part20_in_gaaa(T83) → U4_gaaa(T83, le33_in_ga(T83))
part20_in_gaaa(T107) → part20_out_gaaa
gt10_in_aa → U1_aa(gt10_in_aa)
gt10_in_aa → gt10_out_aa(s(0), 0)
U2_gaaa(T61, gt10_out_ga(T62)) → part20_out_gaaa
U2_gaaa(T61, gt10_out_ga(T62)) → U3_gaaa(part20_in_gaaa(T61))
U4_gaaa(T83, le33_out_ga(T84)) → part20_out_gaaa
U4_gaaa(T83, le33_out_ga(T84)) → U5_gaaa(part20_in_gaaa(T83))
U1_aa(gt10_out_aa(T37, T38)) → gt10_out_aa(s(T37), s(T38))
gt10_in_ga(s(T37)) → U1_ga(gt10_in_ga(T37))
gt10_in_ga(s(0)) → gt10_out_ga(0)
U3_gaaa(part20_out_gaaa) → part20_out_gaaa
le33_in_ga(s(T98)) → U6_ga(le33_in_ga(T98))
le33_in_ga(0) → le33_out_ga(s(0))
le33_in_ga(0) → le33_out_ga(0)
U5_gaaa(part20_out_gaaa) → part20_out_gaaa
U1_ga(gt10_out_ga(T38)) → gt10_out_ga(s(T38))
U6_ga(le33_out_ga(T99)) → le33_out_ga(s(T99))
part20_in_gaaa(x0)
gt10_in_aa
U2_gaaa(x0, x1)
U4_gaaa(x0, x1)
U1_aa(x0)
gt10_in_ga(x0)
U3_gaaa(x0)
le33_in_ga(x0)
U5_gaaa(x0)
U1_ga(x0)
U6_ga(x0)
U19_AA(gt10_out_aa(x0, y1)) → U21_AA(x0, U2_gaaa(x0, gt10_in_ga(x0)))
U19_AA(gt10_out_aa(x0, y1)) → U21_AA(x0, U4_gaaa(x0, le33_in_ga(x0)))
U19_AA(gt10_out_aa(x0, y1)) → U21_AA(x0, part20_out_gaaa)
U21_AA(T22, part20_out_gaaa) → QS1_IN_AA
QS1_IN_AA → U19_AA(gt10_in_aa)
U19_AA(gt10_out_aa(x0, y1)) → U21_AA(x0, U2_gaaa(x0, gt10_in_ga(x0)))
U19_AA(gt10_out_aa(x0, y1)) → U21_AA(x0, U4_gaaa(x0, le33_in_ga(x0)))
U19_AA(gt10_out_aa(x0, y1)) → U21_AA(x0, part20_out_gaaa)
part20_in_gaaa(T61) → U2_gaaa(T61, gt10_in_ga(T61))
part20_in_gaaa(T83) → U4_gaaa(T83, le33_in_ga(T83))
part20_in_gaaa(T107) → part20_out_gaaa
gt10_in_aa → U1_aa(gt10_in_aa)
gt10_in_aa → gt10_out_aa(s(0), 0)
U2_gaaa(T61, gt10_out_ga(T62)) → part20_out_gaaa
U2_gaaa(T61, gt10_out_ga(T62)) → U3_gaaa(part20_in_gaaa(T61))
U4_gaaa(T83, le33_out_ga(T84)) → part20_out_gaaa
U4_gaaa(T83, le33_out_ga(T84)) → U5_gaaa(part20_in_gaaa(T83))
U1_aa(gt10_out_aa(T37, T38)) → gt10_out_aa(s(T37), s(T38))
gt10_in_ga(s(T37)) → U1_ga(gt10_in_ga(T37))
gt10_in_ga(s(0)) → gt10_out_ga(0)
U3_gaaa(part20_out_gaaa) → part20_out_gaaa
le33_in_ga(s(T98)) → U6_ga(le33_in_ga(T98))
le33_in_ga(0) → le33_out_ga(s(0))
le33_in_ga(0) → le33_out_ga(0)
U5_gaaa(part20_out_gaaa) → part20_out_gaaa
U1_ga(gt10_out_ga(T38)) → gt10_out_ga(s(T38))
U6_ga(le33_out_ga(T99)) → le33_out_ga(s(T99))
part20_in_gaaa(x0)
gt10_in_aa
U2_gaaa(x0, x1)
U4_gaaa(x0, x1)
U1_aa(x0)
gt10_in_ga(x0)
U3_gaaa(x0)
le33_in_ga(x0)
U5_gaaa(x0)
U1_ga(x0)
U6_ga(x0)
QS1_IN_AA → U19_AA(U1_aa(gt10_in_aa))
QS1_IN_AA → U19_AA(gt10_out_aa(s(0), 0))
U21_AA(T22, part20_out_gaaa) → QS1_IN_AA
U19_AA(gt10_out_aa(x0, y1)) → U21_AA(x0, U2_gaaa(x0, gt10_in_ga(x0)))
U19_AA(gt10_out_aa(x0, y1)) → U21_AA(x0, U4_gaaa(x0, le33_in_ga(x0)))
U19_AA(gt10_out_aa(x0, y1)) → U21_AA(x0, part20_out_gaaa)
QS1_IN_AA → U19_AA(U1_aa(gt10_in_aa))
QS1_IN_AA → U19_AA(gt10_out_aa(s(0), 0))
part20_in_gaaa(T61) → U2_gaaa(T61, gt10_in_ga(T61))
part20_in_gaaa(T83) → U4_gaaa(T83, le33_in_ga(T83))
part20_in_gaaa(T107) → part20_out_gaaa
gt10_in_aa → U1_aa(gt10_in_aa)
gt10_in_aa → gt10_out_aa(s(0), 0)
U2_gaaa(T61, gt10_out_ga(T62)) → part20_out_gaaa
U2_gaaa(T61, gt10_out_ga(T62)) → U3_gaaa(part20_in_gaaa(T61))
U4_gaaa(T83, le33_out_ga(T84)) → part20_out_gaaa
U4_gaaa(T83, le33_out_ga(T84)) → U5_gaaa(part20_in_gaaa(T83))
U1_aa(gt10_out_aa(T37, T38)) → gt10_out_aa(s(T37), s(T38))
gt10_in_ga(s(T37)) → U1_ga(gt10_in_ga(T37))
gt10_in_ga(s(0)) → gt10_out_ga(0)
U3_gaaa(part20_out_gaaa) → part20_out_gaaa
le33_in_ga(s(T98)) → U6_ga(le33_in_ga(T98))
le33_in_ga(0) → le33_out_ga(s(0))
le33_in_ga(0) → le33_out_ga(0)
U5_gaaa(part20_out_gaaa) → part20_out_gaaa
U1_ga(gt10_out_ga(T38)) → gt10_out_ga(s(T38))
U6_ga(le33_out_ga(T99)) → le33_out_ga(s(T99))
part20_in_gaaa(x0)
gt10_in_aa
U2_gaaa(x0, x1)
U4_gaaa(x0, x1)
U1_aa(x0)
gt10_in_ga(x0)
U3_gaaa(x0)
le33_in_ga(x0)
U5_gaaa(x0)
U1_ga(x0)
U6_ga(x0)
LE33_IN_GG(s(T98), s(T99)) → LE33_IN_GG(T98, T99)
qs1_in_ga(.(T22, .(T23, T24)), T9) → U19_ga(T22, T23, T24, T9, gt10_in_gg(T22, T23))
gt10_in_gg(s(T37), s(T38)) → U1_gg(T37, T38, gt10_in_gg(T37, T38))
gt10_in_gg(s(0), 0) → gt10_out_gg(s(0), 0)
U1_gg(T37, T38, gt10_out_gg(T37, T38)) → gt10_out_gg(s(T37), s(T38))
U19_ga(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U19_ga(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → U20_ga(T22, T23, T24, T9, part20_in_ggaa(T22, T24, X47, X48))
part20_in_ggaa(T61, .(T62, T63), .(T62, X119), X120) → U2_ggaa(T61, T62, T63, X119, X120, gt10_in_gg(T61, T62))
U2_ggaa(T61, T62, T63, X119, X120, gt10_out_gg(T61, T62)) → part20_out_ggaa(T61, .(T62, T63), .(T62, X119), X120)
U2_ggaa(T61, T62, T63, X119, X120, gt10_out_gg(T61, T62)) → U3_ggaa(T61, T62, T63, X119, X120, part20_in_ggaa(T61, T63, X119, X120))
part20_in_ggaa(T83, .(T84, T85), X170, .(T84, X171)) → U4_ggaa(T83, T84, T85, X170, X171, le33_in_gg(T83, T84))
le33_in_gg(s(T98), s(T99)) → U6_gg(T98, T99, le33_in_gg(T98, T99))
le33_in_gg(0, s(0)) → le33_out_gg(0, s(0))
le33_in_gg(0, 0) → le33_out_gg(0, 0)
U6_gg(T98, T99, le33_out_gg(T98, T99)) → le33_out_gg(s(T98), s(T99))
U4_ggaa(T83, T84, T85, X170, X171, le33_out_gg(T83, T84)) → part20_out_ggaa(T83, .(T84, T85), X170, .(T84, X171))
U4_ggaa(T83, T84, T85, X170, X171, le33_out_gg(T83, T84)) → U5_ggaa(T83, T84, T85, X170, X171, part20_in_ggaa(T83, T85, X170, X171))
part20_in_ggaa(T107, [], [], []) → part20_out_ggaa(T107, [], [], [])
U5_ggaa(T83, T84, T85, X170, X171, part20_out_ggaa(T83, T85, X170, X171)) → part20_out_ggaa(T83, .(T84, T85), X170, .(T84, X171))
U3_ggaa(T61, T62, T63, X119, X120, part20_out_ggaa(T61, T63, X119, X120)) → part20_out_ggaa(T61, .(T62, T63), .(T62, X119), X120)
U20_ga(T22, T23, T24, T9, part20_out_ggaa(T22, T24, X47, X48)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U19_ga(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → U21_ga(T22, T23, T24, T9, part20_in_ggaa(T22, T24, T44, T45))
U21_ga(T22, T23, T24, T9, part20_out_ggaa(T22, T24, T44, T45)) → U22_ga(T22, T23, T24, T9, qs1_in_aa(.(T23, T44), X9))
qs1_in_aa(.(T22, .(T23, T24)), T9) → U19_aa(T22, T23, T24, T9, gt10_in_aa(T22, T23))
gt10_in_aa(s(T37), s(T38)) → U1_aa(T37, T38, gt10_in_aa(T37, T38))
gt10_in_aa(s(0), 0) → gt10_out_aa(s(0), 0)
U1_aa(T37, T38, gt10_out_aa(T37, T38)) → gt10_out_aa(s(T37), s(T38))
U19_aa(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U19_aa(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → U20_aa(T22, T23, T24, T9, part20_in_gaaa(T22, T24, X47, X48))
part20_in_gaaa(T61, .(T62, T63), .(T62, X119), X120) → U2_gaaa(T61, T62, T63, X119, X120, gt10_in_ga(T61, T62))
gt10_in_ga(s(T37), s(T38)) → U1_ga(T37, T38, gt10_in_ga(T37, T38))
gt10_in_ga(s(0), 0) → gt10_out_ga(s(0), 0)
U1_ga(T37, T38, gt10_out_ga(T37, T38)) → gt10_out_ga(s(T37), s(T38))
U2_gaaa(T61, T62, T63, X119, X120, gt10_out_ga(T61, T62)) → part20_out_gaaa(T61, .(T62, T63), .(T62, X119), X120)
U2_gaaa(T61, T62, T63, X119, X120, gt10_out_ga(T61, T62)) → U3_gaaa(T61, T62, T63, X119, X120, part20_in_gaaa(T61, T63, X119, X120))
part20_in_gaaa(T83, .(T84, T85), X170, .(T84, X171)) → U4_gaaa(T83, T84, T85, X170, X171, le33_in_ga(T83, T84))
le33_in_ga(s(T98), s(T99)) → U6_ga(T98, T99, le33_in_ga(T98, T99))
le33_in_ga(0, s(0)) → le33_out_ga(0, s(0))
le33_in_ga(0, 0) → le33_out_ga(0, 0)
U6_ga(T98, T99, le33_out_ga(T98, T99)) → le33_out_ga(s(T98), s(T99))
U4_gaaa(T83, T84, T85, X170, X171, le33_out_ga(T83, T84)) → part20_out_gaaa(T83, .(T84, T85), X170, .(T84, X171))
U4_gaaa(T83, T84, T85, X170, X171, le33_out_ga(T83, T84)) → U5_gaaa(T83, T84, T85, X170, X171, part20_in_gaaa(T83, T85, X170, X171))
part20_in_gaaa(T107, [], [], []) → part20_out_gaaa(T107, [], [], [])
U5_gaaa(T83, T84, T85, X170, X171, part20_out_gaaa(T83, T85, X170, X171)) → part20_out_gaaa(T83, .(T84, T85), X170, .(T84, X171))
U3_gaaa(T61, T62, T63, X119, X120, part20_out_gaaa(T61, T63, X119, X120)) → part20_out_gaaa(T61, .(T62, T63), .(T62, X119), X120)
U20_aa(T22, T23, T24, T9, part20_out_gaaa(T22, T24, X47, X48)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U19_aa(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → U21_aa(T22, T23, T24, T9, part20_in_gaaa(T22, T24, T44, T45))
U21_aa(T22, T23, T24, T9, part20_out_gaaa(T22, T24, T44, T45)) → U22_aa(T22, T23, T24, T9, qs1_in_aa(.(T23, T44), X9))
qs1_in_aa(.(T234, .(T235, T236)), T9) → U25_aa(T234, T235, T236, T9, le33_in_aa(T234, T235))
le33_in_aa(s(T98), s(T99)) → U6_aa(T98, T99, le33_in_aa(T98, T99))
le33_in_aa(0, s(0)) → le33_out_aa(0, s(0))
le33_in_aa(0, 0) → le33_out_aa(0, 0)
U6_aa(T98, T99, le33_out_aa(T98, T99)) → le33_out_aa(s(T98), s(T99))
U25_aa(T234, T235, T236, T9, le33_out_aa(T234, T235)) → qs1_out_aa(.(T234, .(T235, T236)), T9)
U25_aa(T234, T235, T236, T9, le33_out_aa(T234, T235)) → U26_aa(T234, T235, T236, T9, part20_in_gaaa(T234, T236, X431, X432))
U26_aa(T234, T235, T236, T9, part20_out_gaaa(T234, T236, X431, X432)) → qs1_out_aa(.(T234, .(T235, T236)), T9)
U25_aa(T234, T235, T236, T9, le33_out_aa(T234, T235)) → U27_aa(T234, T235, T236, T9, part20_in_gaaa(T234, T236, T244, T245))
U27_aa(T234, T235, T236, T9, part20_out_gaaa(T234, T236, T244, T245)) → U28_aa(T234, T235, T236, T9, qs53_in_aa(T244, X9))
qs53_in_aa(.(T126, T127), X269) → U7_aa(T126, T127, X269, part20_in_aaaa(T126, T127, X265, X266))
part20_in_aaaa(T61, .(T62, T63), .(T62, X119), X120) → U2_aaaa(T61, T62, T63, X119, X120, gt10_in_aa(T61, T62))
U2_aaaa(T61, T62, T63, X119, X120, gt10_out_aa(T61, T62)) → part20_out_aaaa(T61, .(T62, T63), .(T62, X119), X120)
U2_aaaa(T61, T62, T63, X119, X120, gt10_out_aa(T61, T62)) → U3_aaaa(T61, T62, T63, X119, X120, part20_in_gaaa(T61, T63, X119, X120))
U3_aaaa(T61, T62, T63, X119, X120, part20_out_gaaa(T61, T63, X119, X120)) → part20_out_aaaa(T61, .(T62, T63), .(T62, X119), X120)
part20_in_aaaa(T83, .(T84, T85), X170, .(T84, X171)) → U4_aaaa(T83, T84, T85, X170, X171, le33_in_aa(T83, T84))
U4_aaaa(T83, T84, T85, X170, X171, le33_out_aa(T83, T84)) → part20_out_aaaa(T83, .(T84, T85), X170, .(T84, X171))
U4_aaaa(T83, T84, T85, X170, X171, le33_out_aa(T83, T84)) → U5_aaaa(T83, T84, T85, X170, X171, part20_in_gaaa(T83, T85, X170, X171))
U5_aaaa(T83, T84, T85, X170, X171, part20_out_gaaa(T83, T85, X170, X171)) → part20_out_aaaa(T83, .(T84, T85), X170, .(T84, X171))
part20_in_aaaa(T107, [], [], []) → part20_out_aaaa(T107, [], [], [])
U7_aa(T126, T127, X269, part20_out_aaaa(T126, T127, X265, X266)) → qs53_out_aa(.(T126, T127), X269)
qs53_in_aa(.(T126, T127), X269) → U8_aa(T126, T127, X269, part20_in_aaaa(T126, T127, T131, T132))
U8_aa(T126, T127, X269, part20_out_aaaa(T126, T127, T131, T132)) → U9_aa(T126, T127, X269, qs53_in_aa(T131, X267))
qs53_in_aa([], []) → qs53_out_aa([], [])
U9_aa(T126, T127, X269, qs53_out_aa(T131, X267)) → qs53_out_aa(.(T126, T127), X269)
U8_aa(T126, T127, X269, part20_out_aaaa(T126, T127, T131, T132)) → U10_aa(T126, T127, X269, T132, qs53_in_aa(T131, T138))
U10_aa(T126, T127, X269, T132, qs53_out_aa(T131, T138)) → U11_aa(T126, T127, X269, qs53_in_aa(T132, X268))
U11_aa(T126, T127, X269, qs53_out_aa(T132, X268)) → qs53_out_aa(.(T126, T127), X269)
U10_aa(T126, T127, X269, T132, qs53_out_aa(T131, T138)) → U12_aa(T126, T127, X269, T138, qs53_in_aa(T132, T143))
U12_aa(T126, T127, X269, T138, qs53_out_aa(T132, T143)) → U13_aa(T126, T127, X269, app65_in_aaaa(T138, T126, T143, X269))
app65_in_aaaa(.(T166, T167), T168, T169, .(T166, X348)) → U14_aaaa(T166, T167, T168, T169, X348, app65_in_aaaa(T167, T168, T169, X348))
app65_in_aaaa([], T178, T179, .(T178, T179)) → app65_out_aaaa([], T178, T179, .(T178, T179))
U14_aaaa(T166, T167, T168, T169, X348, app65_out_aaaa(T167, T168, T169, X348)) → app65_out_aaaa(.(T166, T167), T168, T169, .(T166, X348))
U13_aa(T126, T127, X269, app65_out_aaaa(T138, T126, T143, X269)) → qs53_out_aa(.(T126, T127), X269)
U28_aa(T234, T235, T236, T9, qs53_out_aa(T244, X9)) → qs1_out_aa(.(T234, .(T235, T236)), T9)
U27_aa(T234, T235, T236, T9, part20_out_gaaa(T234, T236, T244, T245)) → U29_aa(T234, T235, T236, T9, T245, qs53_in_aa(T244, T251))
U29_aa(T234, T235, T236, T9, T245, qs53_out_aa(T244, T251)) → U30_aa(T234, T235, T236, T9, p52_in_aaaga(.(T235, T245), X10, T251, T234, T9))
p52_in_aaaga(T45, X10, T110, T22, T9) → U16_aaaga(T45, X10, T110, T22, T9, qs53_in_aa(T45, X10))
U16_aaaga(T45, X10, T110, T22, T9, qs53_out_aa(T45, X10)) → p52_out_aaaga(T45, X10, T110, T22, T9)
p52_in_aaaga(T45, T115, T110, T22, T9) → U17_aaaga(T45, T115, T110, T22, T9, qs53_in_aa(T45, T115))
U17_aaaga(T45, T115, T110, T22, T9, qs53_out_aa(T45, T115)) → U18_aaaga(T45, T115, T110, T22, T9, app54_in_agaa(T110, T22, T115, T9))
app54_in_agaa(.(T205, T206), T207, T208, .(T205, T210)) → U15_agaa(T205, T206, T207, T208, T210, app54_in_agaa(T206, T207, T208, T210))
app54_in_agaa([], T220, T221, .(T220, T221)) → app54_out_agaa([], T220, T221, .(T220, T221))
U15_agaa(T205, T206, T207, T208, T210, app54_out_agaa(T206, T207, T208, T210)) → app54_out_agaa(.(T205, T206), T207, T208, .(T205, T210))
U18_aaaga(T45, T115, T110, T22, T9, app54_out_agaa(T110, T22, T115, T9)) → p52_out_aaaga(T45, T115, T110, T22, T9)
U30_aa(T234, T235, T236, T9, p52_out_aaaga(.(T235, T245), X10, T251, T234, T9)) → qs1_out_aa(.(T234, .(T235, T236)), T9)
qs1_in_aa(.(T260, []), T9) → U31_aa(T260, T9, qs99_in_a(X9))
qs99_in_a([]) → qs99_out_a([])
U31_aa(T260, T9, qs99_out_a(X9)) → qs1_out_aa(.(T260, []), T9)
qs1_in_aa(.(T260, []), T9) → U32_aa(T260, T9, qs99_in_a(T263))
U32_aa(T260, T9, qs99_out_a(T263)) → U33_aa(T260, T9, qs99_in_a(X10))
U33_aa(T260, T9, qs99_out_a(X10)) → qs1_out_aa(.(T260, []), T9)
U32_aa(T260, T9, qs99_out_a(T263)) → U34_aa(T260, T9, T263, qs99_in_a(T268))
U34_aa(T260, T9, T263, qs99_out_a(T268)) → U35_aa(T260, T9, app54_in_gaga(T263, T260, T268, T9))
app54_in_gaga(.(T205, T206), T207, T208, .(T205, T210)) → U15_gaga(T205, T206, T207, T208, T210, app54_in_gaga(T206, T207, T208, T210))
app54_in_gaga([], T220, T221, .(T220, T221)) → app54_out_gaga([], T220, T221, .(T220, T221))
U15_gaga(T205, T206, T207, T208, T210, app54_out_gaga(T206, T207, T208, T210)) → app54_out_gaga(.(T205, T206), T207, T208, .(T205, T210))
U35_aa(T260, T9, app54_out_gaga(T263, T260, T268, T9)) → qs1_out_aa(.(T260, []), T9)
qs1_in_aa([], []) → qs1_out_aa([], [])
U22_aa(T22, T23, T24, T9, qs1_out_aa(.(T23, T44), X9)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U21_aa(T22, T23, T24, T9, part20_out_gaaa(T22, T24, T44, T45)) → U23_aa(T22, T23, T24, T9, T45, qs1_in_aa(.(T23, T44), T110))
U23_aa(T22, T23, T24, T9, T45, qs1_out_aa(.(T23, T44), T110)) → U24_aa(T22, T23, T24, T9, p52_in_aaaga(T45, X10, T110, T22, T9))
U24_aa(T22, T23, T24, T9, p52_out_aaaga(T45, X10, T110, T22, T9)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U22_ga(T22, T23, T24, T9, qs1_out_aa(.(T23, T44), X9)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U21_ga(T22, T23, T24, T9, part20_out_ggaa(T22, T24, T44, T45)) → U23_ga(T22, T23, T24, T9, T45, qs1_in_aa(.(T23, T44), T110))
U23_ga(T22, T23, T24, T9, T45, qs1_out_aa(.(T23, T44), T110)) → U24_ga(T22, T23, T24, T9, p52_in_aaaga(T45, X10, T110, T22, T9))
U24_ga(T22, T23, T24, T9, p52_out_aaaga(T45, X10, T110, T22, T9)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
qs1_in_ga(.(T234, .(T235, T236)), T9) → U25_ga(T234, T235, T236, T9, le33_in_gg(T234, T235))
U25_ga(T234, T235, T236, T9, le33_out_gg(T234, T235)) → qs1_out_ga(.(T234, .(T235, T236)), T9)
U25_ga(T234, T235, T236, T9, le33_out_gg(T234, T235)) → U26_ga(T234, T235, T236, T9, part20_in_ggaa(T234, T236, X431, X432))
U26_ga(T234, T235, T236, T9, part20_out_ggaa(T234, T236, X431, X432)) → qs1_out_ga(.(T234, .(T235, T236)), T9)
U25_ga(T234, T235, T236, T9, le33_out_gg(T234, T235)) → U27_ga(T234, T235, T236, T9, part20_in_ggaa(T234, T236, T244, T245))
U27_ga(T234, T235, T236, T9, part20_out_ggaa(T234, T236, T244, T245)) → U28_ga(T234, T235, T236, T9, qs53_in_aa(T244, X9))
U28_ga(T234, T235, T236, T9, qs53_out_aa(T244, X9)) → qs1_out_ga(.(T234, .(T235, T236)), T9)
U27_ga(T234, T235, T236, T9, part20_out_ggaa(T234, T236, T244, T245)) → U29_ga(T234, T235, T236, T9, T245, qs53_in_aa(T244, T251))
U29_ga(T234, T235, T236, T9, T245, qs53_out_aa(T244, T251)) → U30_ga(T234, T235, T236, T9, p52_in_aaaga(.(T235, T245), X10, T251, T234, T9))
U30_ga(T234, T235, T236, T9, p52_out_aaaga(.(T235, T245), X10, T251, T234, T9)) → qs1_out_ga(.(T234, .(T235, T236)), T9)
qs1_in_ga(.(T260, []), T9) → U31_ga(T260, T9, qs99_in_a(X9))
U31_ga(T260, T9, qs99_out_a(X9)) → qs1_out_ga(.(T260, []), T9)
qs1_in_ga(.(T260, []), T9) → U32_ga(T260, T9, qs99_in_a(T263))
U32_ga(T260, T9, qs99_out_a(T263)) → U33_ga(T260, T9, qs99_in_a(X10))
U33_ga(T260, T9, qs99_out_a(X10)) → qs1_out_ga(.(T260, []), T9)
U32_ga(T260, T9, qs99_out_a(T263)) → U34_ga(T260, T9, T263, qs99_in_a(T268))
U34_ga(T260, T9, T263, qs99_out_a(T268)) → U35_ga(T260, T9, app54_in_ggga(T263, T260, T268, T9))
app54_in_ggga(.(T205, T206), T207, T208, .(T205, T210)) → U15_ggga(T205, T206, T207, T208, T210, app54_in_ggga(T206, T207, T208, T210))
app54_in_ggga([], T220, T221, .(T220, T221)) → app54_out_ggga([], T220, T221, .(T220, T221))
U15_ggga(T205, T206, T207, T208, T210, app54_out_ggga(T206, T207, T208, T210)) → app54_out_ggga(.(T205, T206), T207, T208, .(T205, T210))
U35_ga(T260, T9, app54_out_ggga(T263, T260, T268, T9)) → qs1_out_ga(.(T260, []), T9)
qs1_in_ga([], []) → qs1_out_ga([], [])
LE33_IN_GG(s(T98), s(T99)) → LE33_IN_GG(T98, T99)
LE33_IN_GG(s(T98), s(T99)) → LE33_IN_GG(T98, T99)
From the DPs we obtained the following set of size-change graphs:
GT10_IN_GG(s(T37), s(T38)) → GT10_IN_GG(T37, T38)
qs1_in_ga(.(T22, .(T23, T24)), T9) → U19_ga(T22, T23, T24, T9, gt10_in_gg(T22, T23))
gt10_in_gg(s(T37), s(T38)) → U1_gg(T37, T38, gt10_in_gg(T37, T38))
gt10_in_gg(s(0), 0) → gt10_out_gg(s(0), 0)
U1_gg(T37, T38, gt10_out_gg(T37, T38)) → gt10_out_gg(s(T37), s(T38))
U19_ga(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U19_ga(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → U20_ga(T22, T23, T24, T9, part20_in_ggaa(T22, T24, X47, X48))
part20_in_ggaa(T61, .(T62, T63), .(T62, X119), X120) → U2_ggaa(T61, T62, T63, X119, X120, gt10_in_gg(T61, T62))
U2_ggaa(T61, T62, T63, X119, X120, gt10_out_gg(T61, T62)) → part20_out_ggaa(T61, .(T62, T63), .(T62, X119), X120)
U2_ggaa(T61, T62, T63, X119, X120, gt10_out_gg(T61, T62)) → U3_ggaa(T61, T62, T63, X119, X120, part20_in_ggaa(T61, T63, X119, X120))
part20_in_ggaa(T83, .(T84, T85), X170, .(T84, X171)) → U4_ggaa(T83, T84, T85, X170, X171, le33_in_gg(T83, T84))
le33_in_gg(s(T98), s(T99)) → U6_gg(T98, T99, le33_in_gg(T98, T99))
le33_in_gg(0, s(0)) → le33_out_gg(0, s(0))
le33_in_gg(0, 0) → le33_out_gg(0, 0)
U6_gg(T98, T99, le33_out_gg(T98, T99)) → le33_out_gg(s(T98), s(T99))
U4_ggaa(T83, T84, T85, X170, X171, le33_out_gg(T83, T84)) → part20_out_ggaa(T83, .(T84, T85), X170, .(T84, X171))
U4_ggaa(T83, T84, T85, X170, X171, le33_out_gg(T83, T84)) → U5_ggaa(T83, T84, T85, X170, X171, part20_in_ggaa(T83, T85, X170, X171))
part20_in_ggaa(T107, [], [], []) → part20_out_ggaa(T107, [], [], [])
U5_ggaa(T83, T84, T85, X170, X171, part20_out_ggaa(T83, T85, X170, X171)) → part20_out_ggaa(T83, .(T84, T85), X170, .(T84, X171))
U3_ggaa(T61, T62, T63, X119, X120, part20_out_ggaa(T61, T63, X119, X120)) → part20_out_ggaa(T61, .(T62, T63), .(T62, X119), X120)
U20_ga(T22, T23, T24, T9, part20_out_ggaa(T22, T24, X47, X48)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U19_ga(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → U21_ga(T22, T23, T24, T9, part20_in_ggaa(T22, T24, T44, T45))
U21_ga(T22, T23, T24, T9, part20_out_ggaa(T22, T24, T44, T45)) → U22_ga(T22, T23, T24, T9, qs1_in_aa(.(T23, T44), X9))
qs1_in_aa(.(T22, .(T23, T24)), T9) → U19_aa(T22, T23, T24, T9, gt10_in_aa(T22, T23))
gt10_in_aa(s(T37), s(T38)) → U1_aa(T37, T38, gt10_in_aa(T37, T38))
gt10_in_aa(s(0), 0) → gt10_out_aa(s(0), 0)
U1_aa(T37, T38, gt10_out_aa(T37, T38)) → gt10_out_aa(s(T37), s(T38))
U19_aa(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U19_aa(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → U20_aa(T22, T23, T24, T9, part20_in_gaaa(T22, T24, X47, X48))
part20_in_gaaa(T61, .(T62, T63), .(T62, X119), X120) → U2_gaaa(T61, T62, T63, X119, X120, gt10_in_ga(T61, T62))
gt10_in_ga(s(T37), s(T38)) → U1_ga(T37, T38, gt10_in_ga(T37, T38))
gt10_in_ga(s(0), 0) → gt10_out_ga(s(0), 0)
U1_ga(T37, T38, gt10_out_ga(T37, T38)) → gt10_out_ga(s(T37), s(T38))
U2_gaaa(T61, T62, T63, X119, X120, gt10_out_ga(T61, T62)) → part20_out_gaaa(T61, .(T62, T63), .(T62, X119), X120)
U2_gaaa(T61, T62, T63, X119, X120, gt10_out_ga(T61, T62)) → U3_gaaa(T61, T62, T63, X119, X120, part20_in_gaaa(T61, T63, X119, X120))
part20_in_gaaa(T83, .(T84, T85), X170, .(T84, X171)) → U4_gaaa(T83, T84, T85, X170, X171, le33_in_ga(T83, T84))
le33_in_ga(s(T98), s(T99)) → U6_ga(T98, T99, le33_in_ga(T98, T99))
le33_in_ga(0, s(0)) → le33_out_ga(0, s(0))
le33_in_ga(0, 0) → le33_out_ga(0, 0)
U6_ga(T98, T99, le33_out_ga(T98, T99)) → le33_out_ga(s(T98), s(T99))
U4_gaaa(T83, T84, T85, X170, X171, le33_out_ga(T83, T84)) → part20_out_gaaa(T83, .(T84, T85), X170, .(T84, X171))
U4_gaaa(T83, T84, T85, X170, X171, le33_out_ga(T83, T84)) → U5_gaaa(T83, T84, T85, X170, X171, part20_in_gaaa(T83, T85, X170, X171))
part20_in_gaaa(T107, [], [], []) → part20_out_gaaa(T107, [], [], [])
U5_gaaa(T83, T84, T85, X170, X171, part20_out_gaaa(T83, T85, X170, X171)) → part20_out_gaaa(T83, .(T84, T85), X170, .(T84, X171))
U3_gaaa(T61, T62, T63, X119, X120, part20_out_gaaa(T61, T63, X119, X120)) → part20_out_gaaa(T61, .(T62, T63), .(T62, X119), X120)
U20_aa(T22, T23, T24, T9, part20_out_gaaa(T22, T24, X47, X48)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U19_aa(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → U21_aa(T22, T23, T24, T9, part20_in_gaaa(T22, T24, T44, T45))
U21_aa(T22, T23, T24, T9, part20_out_gaaa(T22, T24, T44, T45)) → U22_aa(T22, T23, T24, T9, qs1_in_aa(.(T23, T44), X9))
qs1_in_aa(.(T234, .(T235, T236)), T9) → U25_aa(T234, T235, T236, T9, le33_in_aa(T234, T235))
le33_in_aa(s(T98), s(T99)) → U6_aa(T98, T99, le33_in_aa(T98, T99))
le33_in_aa(0, s(0)) → le33_out_aa(0, s(0))
le33_in_aa(0, 0) → le33_out_aa(0, 0)
U6_aa(T98, T99, le33_out_aa(T98, T99)) → le33_out_aa(s(T98), s(T99))
U25_aa(T234, T235, T236, T9, le33_out_aa(T234, T235)) → qs1_out_aa(.(T234, .(T235, T236)), T9)
U25_aa(T234, T235, T236, T9, le33_out_aa(T234, T235)) → U26_aa(T234, T235, T236, T9, part20_in_gaaa(T234, T236, X431, X432))
U26_aa(T234, T235, T236, T9, part20_out_gaaa(T234, T236, X431, X432)) → qs1_out_aa(.(T234, .(T235, T236)), T9)
U25_aa(T234, T235, T236, T9, le33_out_aa(T234, T235)) → U27_aa(T234, T235, T236, T9, part20_in_gaaa(T234, T236, T244, T245))
U27_aa(T234, T235, T236, T9, part20_out_gaaa(T234, T236, T244, T245)) → U28_aa(T234, T235, T236, T9, qs53_in_aa(T244, X9))
qs53_in_aa(.(T126, T127), X269) → U7_aa(T126, T127, X269, part20_in_aaaa(T126, T127, X265, X266))
part20_in_aaaa(T61, .(T62, T63), .(T62, X119), X120) → U2_aaaa(T61, T62, T63, X119, X120, gt10_in_aa(T61, T62))
U2_aaaa(T61, T62, T63, X119, X120, gt10_out_aa(T61, T62)) → part20_out_aaaa(T61, .(T62, T63), .(T62, X119), X120)
U2_aaaa(T61, T62, T63, X119, X120, gt10_out_aa(T61, T62)) → U3_aaaa(T61, T62, T63, X119, X120, part20_in_gaaa(T61, T63, X119, X120))
U3_aaaa(T61, T62, T63, X119, X120, part20_out_gaaa(T61, T63, X119, X120)) → part20_out_aaaa(T61, .(T62, T63), .(T62, X119), X120)
part20_in_aaaa(T83, .(T84, T85), X170, .(T84, X171)) → U4_aaaa(T83, T84, T85, X170, X171, le33_in_aa(T83, T84))
U4_aaaa(T83, T84, T85, X170, X171, le33_out_aa(T83, T84)) → part20_out_aaaa(T83, .(T84, T85), X170, .(T84, X171))
U4_aaaa(T83, T84, T85, X170, X171, le33_out_aa(T83, T84)) → U5_aaaa(T83, T84, T85, X170, X171, part20_in_gaaa(T83, T85, X170, X171))
U5_aaaa(T83, T84, T85, X170, X171, part20_out_gaaa(T83, T85, X170, X171)) → part20_out_aaaa(T83, .(T84, T85), X170, .(T84, X171))
part20_in_aaaa(T107, [], [], []) → part20_out_aaaa(T107, [], [], [])
U7_aa(T126, T127, X269, part20_out_aaaa(T126, T127, X265, X266)) → qs53_out_aa(.(T126, T127), X269)
qs53_in_aa(.(T126, T127), X269) → U8_aa(T126, T127, X269, part20_in_aaaa(T126, T127, T131, T132))
U8_aa(T126, T127, X269, part20_out_aaaa(T126, T127, T131, T132)) → U9_aa(T126, T127, X269, qs53_in_aa(T131, X267))
qs53_in_aa([], []) → qs53_out_aa([], [])
U9_aa(T126, T127, X269, qs53_out_aa(T131, X267)) → qs53_out_aa(.(T126, T127), X269)
U8_aa(T126, T127, X269, part20_out_aaaa(T126, T127, T131, T132)) → U10_aa(T126, T127, X269, T132, qs53_in_aa(T131, T138))
U10_aa(T126, T127, X269, T132, qs53_out_aa(T131, T138)) → U11_aa(T126, T127, X269, qs53_in_aa(T132, X268))
U11_aa(T126, T127, X269, qs53_out_aa(T132, X268)) → qs53_out_aa(.(T126, T127), X269)
U10_aa(T126, T127, X269, T132, qs53_out_aa(T131, T138)) → U12_aa(T126, T127, X269, T138, qs53_in_aa(T132, T143))
U12_aa(T126, T127, X269, T138, qs53_out_aa(T132, T143)) → U13_aa(T126, T127, X269, app65_in_aaaa(T138, T126, T143, X269))
app65_in_aaaa(.(T166, T167), T168, T169, .(T166, X348)) → U14_aaaa(T166, T167, T168, T169, X348, app65_in_aaaa(T167, T168, T169, X348))
app65_in_aaaa([], T178, T179, .(T178, T179)) → app65_out_aaaa([], T178, T179, .(T178, T179))
U14_aaaa(T166, T167, T168, T169, X348, app65_out_aaaa(T167, T168, T169, X348)) → app65_out_aaaa(.(T166, T167), T168, T169, .(T166, X348))
U13_aa(T126, T127, X269, app65_out_aaaa(T138, T126, T143, X269)) → qs53_out_aa(.(T126, T127), X269)
U28_aa(T234, T235, T236, T9, qs53_out_aa(T244, X9)) → qs1_out_aa(.(T234, .(T235, T236)), T9)
U27_aa(T234, T235, T236, T9, part20_out_gaaa(T234, T236, T244, T245)) → U29_aa(T234, T235, T236, T9, T245, qs53_in_aa(T244, T251))
U29_aa(T234, T235, T236, T9, T245, qs53_out_aa(T244, T251)) → U30_aa(T234, T235, T236, T9, p52_in_aaaga(.(T235, T245), X10, T251, T234, T9))
p52_in_aaaga(T45, X10, T110, T22, T9) → U16_aaaga(T45, X10, T110, T22, T9, qs53_in_aa(T45, X10))
U16_aaaga(T45, X10, T110, T22, T9, qs53_out_aa(T45, X10)) → p52_out_aaaga(T45, X10, T110, T22, T9)
p52_in_aaaga(T45, T115, T110, T22, T9) → U17_aaaga(T45, T115, T110, T22, T9, qs53_in_aa(T45, T115))
U17_aaaga(T45, T115, T110, T22, T9, qs53_out_aa(T45, T115)) → U18_aaaga(T45, T115, T110, T22, T9, app54_in_agaa(T110, T22, T115, T9))
app54_in_agaa(.(T205, T206), T207, T208, .(T205, T210)) → U15_agaa(T205, T206, T207, T208, T210, app54_in_agaa(T206, T207, T208, T210))
app54_in_agaa([], T220, T221, .(T220, T221)) → app54_out_agaa([], T220, T221, .(T220, T221))
U15_agaa(T205, T206, T207, T208, T210, app54_out_agaa(T206, T207, T208, T210)) → app54_out_agaa(.(T205, T206), T207, T208, .(T205, T210))
U18_aaaga(T45, T115, T110, T22, T9, app54_out_agaa(T110, T22, T115, T9)) → p52_out_aaaga(T45, T115, T110, T22, T9)
U30_aa(T234, T235, T236, T9, p52_out_aaaga(.(T235, T245), X10, T251, T234, T9)) → qs1_out_aa(.(T234, .(T235, T236)), T9)
qs1_in_aa(.(T260, []), T9) → U31_aa(T260, T9, qs99_in_a(X9))
qs99_in_a([]) → qs99_out_a([])
U31_aa(T260, T9, qs99_out_a(X9)) → qs1_out_aa(.(T260, []), T9)
qs1_in_aa(.(T260, []), T9) → U32_aa(T260, T9, qs99_in_a(T263))
U32_aa(T260, T9, qs99_out_a(T263)) → U33_aa(T260, T9, qs99_in_a(X10))
U33_aa(T260, T9, qs99_out_a(X10)) → qs1_out_aa(.(T260, []), T9)
U32_aa(T260, T9, qs99_out_a(T263)) → U34_aa(T260, T9, T263, qs99_in_a(T268))
U34_aa(T260, T9, T263, qs99_out_a(T268)) → U35_aa(T260, T9, app54_in_gaga(T263, T260, T268, T9))
app54_in_gaga(.(T205, T206), T207, T208, .(T205, T210)) → U15_gaga(T205, T206, T207, T208, T210, app54_in_gaga(T206, T207, T208, T210))
app54_in_gaga([], T220, T221, .(T220, T221)) → app54_out_gaga([], T220, T221, .(T220, T221))
U15_gaga(T205, T206, T207, T208, T210, app54_out_gaga(T206, T207, T208, T210)) → app54_out_gaga(.(T205, T206), T207, T208, .(T205, T210))
U35_aa(T260, T9, app54_out_gaga(T263, T260, T268, T9)) → qs1_out_aa(.(T260, []), T9)
qs1_in_aa([], []) → qs1_out_aa([], [])
U22_aa(T22, T23, T24, T9, qs1_out_aa(.(T23, T44), X9)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U21_aa(T22, T23, T24, T9, part20_out_gaaa(T22, T24, T44, T45)) → U23_aa(T22, T23, T24, T9, T45, qs1_in_aa(.(T23, T44), T110))
U23_aa(T22, T23, T24, T9, T45, qs1_out_aa(.(T23, T44), T110)) → U24_aa(T22, T23, T24, T9, p52_in_aaaga(T45, X10, T110, T22, T9))
U24_aa(T22, T23, T24, T9, p52_out_aaaga(T45, X10, T110, T22, T9)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U22_ga(T22, T23, T24, T9, qs1_out_aa(.(T23, T44), X9)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U21_ga(T22, T23, T24, T9, part20_out_ggaa(T22, T24, T44, T45)) → U23_ga(T22, T23, T24, T9, T45, qs1_in_aa(.(T23, T44), T110))
U23_ga(T22, T23, T24, T9, T45, qs1_out_aa(.(T23, T44), T110)) → U24_ga(T22, T23, T24, T9, p52_in_aaaga(T45, X10, T110, T22, T9))
U24_ga(T22, T23, T24, T9, p52_out_aaaga(T45, X10, T110, T22, T9)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
qs1_in_ga(.(T234, .(T235, T236)), T9) → U25_ga(T234, T235, T236, T9, le33_in_gg(T234, T235))
U25_ga(T234, T235, T236, T9, le33_out_gg(T234, T235)) → qs1_out_ga(.(T234, .(T235, T236)), T9)
U25_ga(T234, T235, T236, T9, le33_out_gg(T234, T235)) → U26_ga(T234, T235, T236, T9, part20_in_ggaa(T234, T236, X431, X432))
U26_ga(T234, T235, T236, T9, part20_out_ggaa(T234, T236, X431, X432)) → qs1_out_ga(.(T234, .(T235, T236)), T9)
U25_ga(T234, T235, T236, T9, le33_out_gg(T234, T235)) → U27_ga(T234, T235, T236, T9, part20_in_ggaa(T234, T236, T244, T245))
U27_ga(T234, T235, T236, T9, part20_out_ggaa(T234, T236, T244, T245)) → U28_ga(T234, T235, T236, T9, qs53_in_aa(T244, X9))
U28_ga(T234, T235, T236, T9, qs53_out_aa(T244, X9)) → qs1_out_ga(.(T234, .(T235, T236)), T9)
U27_ga(T234, T235, T236, T9, part20_out_ggaa(T234, T236, T244, T245)) → U29_ga(T234, T235, T236, T9, T245, qs53_in_aa(T244, T251))
U29_ga(T234, T235, T236, T9, T245, qs53_out_aa(T244, T251)) → U30_ga(T234, T235, T236, T9, p52_in_aaaga(.(T235, T245), X10, T251, T234, T9))
U30_ga(T234, T235, T236, T9, p52_out_aaaga(.(T235, T245), X10, T251, T234, T9)) → qs1_out_ga(.(T234, .(T235, T236)), T9)
qs1_in_ga(.(T260, []), T9) → U31_ga(T260, T9, qs99_in_a(X9))
U31_ga(T260, T9, qs99_out_a(X9)) → qs1_out_ga(.(T260, []), T9)
qs1_in_ga(.(T260, []), T9) → U32_ga(T260, T9, qs99_in_a(T263))
U32_ga(T260, T9, qs99_out_a(T263)) → U33_ga(T260, T9, qs99_in_a(X10))
U33_ga(T260, T9, qs99_out_a(X10)) → qs1_out_ga(.(T260, []), T9)
U32_ga(T260, T9, qs99_out_a(T263)) → U34_ga(T260, T9, T263, qs99_in_a(T268))
U34_ga(T260, T9, T263, qs99_out_a(T268)) → U35_ga(T260, T9, app54_in_ggga(T263, T260, T268, T9))
app54_in_ggga(.(T205, T206), T207, T208, .(T205, T210)) → U15_ggga(T205, T206, T207, T208, T210, app54_in_ggga(T206, T207, T208, T210))
app54_in_ggga([], T220, T221, .(T220, T221)) → app54_out_ggga([], T220, T221, .(T220, T221))
U15_ggga(T205, T206, T207, T208, T210, app54_out_ggga(T206, T207, T208, T210)) → app54_out_ggga(.(T205, T206), T207, T208, .(T205, T210))
U35_ga(T260, T9, app54_out_ggga(T263, T260, T268, T9)) → qs1_out_ga(.(T260, []), T9)
qs1_in_ga([], []) → qs1_out_ga([], [])
GT10_IN_GG(s(T37), s(T38)) → GT10_IN_GG(T37, T38)
GT10_IN_GG(s(T37), s(T38)) → GT10_IN_GG(T37, T38)
From the DPs we obtained the following set of size-change graphs:
PART20_IN_GGAA(T61, .(T62, T63), .(T62, X119), X120) → U2_GGAA(T61, T62, T63, X119, X120, gt10_in_gg(T61, T62))
U2_GGAA(T61, T62, T63, X119, X120, gt10_out_gg(T61, T62)) → PART20_IN_GGAA(T61, T63, X119, X120)
PART20_IN_GGAA(T83, .(T84, T85), X170, .(T84, X171)) → U4_GGAA(T83, T84, T85, X170, X171, le33_in_gg(T83, T84))
U4_GGAA(T83, T84, T85, X170, X171, le33_out_gg(T83, T84)) → PART20_IN_GGAA(T83, T85, X170, X171)
qs1_in_ga(.(T22, .(T23, T24)), T9) → U19_ga(T22, T23, T24, T9, gt10_in_gg(T22, T23))
gt10_in_gg(s(T37), s(T38)) → U1_gg(T37, T38, gt10_in_gg(T37, T38))
gt10_in_gg(s(0), 0) → gt10_out_gg(s(0), 0)
U1_gg(T37, T38, gt10_out_gg(T37, T38)) → gt10_out_gg(s(T37), s(T38))
U19_ga(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U19_ga(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → U20_ga(T22, T23, T24, T9, part20_in_ggaa(T22, T24, X47, X48))
part20_in_ggaa(T61, .(T62, T63), .(T62, X119), X120) → U2_ggaa(T61, T62, T63, X119, X120, gt10_in_gg(T61, T62))
U2_ggaa(T61, T62, T63, X119, X120, gt10_out_gg(T61, T62)) → part20_out_ggaa(T61, .(T62, T63), .(T62, X119), X120)
U2_ggaa(T61, T62, T63, X119, X120, gt10_out_gg(T61, T62)) → U3_ggaa(T61, T62, T63, X119, X120, part20_in_ggaa(T61, T63, X119, X120))
part20_in_ggaa(T83, .(T84, T85), X170, .(T84, X171)) → U4_ggaa(T83, T84, T85, X170, X171, le33_in_gg(T83, T84))
le33_in_gg(s(T98), s(T99)) → U6_gg(T98, T99, le33_in_gg(T98, T99))
le33_in_gg(0, s(0)) → le33_out_gg(0, s(0))
le33_in_gg(0, 0) → le33_out_gg(0, 0)
U6_gg(T98, T99, le33_out_gg(T98, T99)) → le33_out_gg(s(T98), s(T99))
U4_ggaa(T83, T84, T85, X170, X171, le33_out_gg(T83, T84)) → part20_out_ggaa(T83, .(T84, T85), X170, .(T84, X171))
U4_ggaa(T83, T84, T85, X170, X171, le33_out_gg(T83, T84)) → U5_ggaa(T83, T84, T85, X170, X171, part20_in_ggaa(T83, T85, X170, X171))
part20_in_ggaa(T107, [], [], []) → part20_out_ggaa(T107, [], [], [])
U5_ggaa(T83, T84, T85, X170, X171, part20_out_ggaa(T83, T85, X170, X171)) → part20_out_ggaa(T83, .(T84, T85), X170, .(T84, X171))
U3_ggaa(T61, T62, T63, X119, X120, part20_out_ggaa(T61, T63, X119, X120)) → part20_out_ggaa(T61, .(T62, T63), .(T62, X119), X120)
U20_ga(T22, T23, T24, T9, part20_out_ggaa(T22, T24, X47, X48)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U19_ga(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → U21_ga(T22, T23, T24, T9, part20_in_ggaa(T22, T24, T44, T45))
U21_ga(T22, T23, T24, T9, part20_out_ggaa(T22, T24, T44, T45)) → U22_ga(T22, T23, T24, T9, qs1_in_aa(.(T23, T44), X9))
qs1_in_aa(.(T22, .(T23, T24)), T9) → U19_aa(T22, T23, T24, T9, gt10_in_aa(T22, T23))
gt10_in_aa(s(T37), s(T38)) → U1_aa(T37, T38, gt10_in_aa(T37, T38))
gt10_in_aa(s(0), 0) → gt10_out_aa(s(0), 0)
U1_aa(T37, T38, gt10_out_aa(T37, T38)) → gt10_out_aa(s(T37), s(T38))
U19_aa(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U19_aa(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → U20_aa(T22, T23, T24, T9, part20_in_gaaa(T22, T24, X47, X48))
part20_in_gaaa(T61, .(T62, T63), .(T62, X119), X120) → U2_gaaa(T61, T62, T63, X119, X120, gt10_in_ga(T61, T62))
gt10_in_ga(s(T37), s(T38)) → U1_ga(T37, T38, gt10_in_ga(T37, T38))
gt10_in_ga(s(0), 0) → gt10_out_ga(s(0), 0)
U1_ga(T37, T38, gt10_out_ga(T37, T38)) → gt10_out_ga(s(T37), s(T38))
U2_gaaa(T61, T62, T63, X119, X120, gt10_out_ga(T61, T62)) → part20_out_gaaa(T61, .(T62, T63), .(T62, X119), X120)
U2_gaaa(T61, T62, T63, X119, X120, gt10_out_ga(T61, T62)) → U3_gaaa(T61, T62, T63, X119, X120, part20_in_gaaa(T61, T63, X119, X120))
part20_in_gaaa(T83, .(T84, T85), X170, .(T84, X171)) → U4_gaaa(T83, T84, T85, X170, X171, le33_in_ga(T83, T84))
le33_in_ga(s(T98), s(T99)) → U6_ga(T98, T99, le33_in_ga(T98, T99))
le33_in_ga(0, s(0)) → le33_out_ga(0, s(0))
le33_in_ga(0, 0) → le33_out_ga(0, 0)
U6_ga(T98, T99, le33_out_ga(T98, T99)) → le33_out_ga(s(T98), s(T99))
U4_gaaa(T83, T84, T85, X170, X171, le33_out_ga(T83, T84)) → part20_out_gaaa(T83, .(T84, T85), X170, .(T84, X171))
U4_gaaa(T83, T84, T85, X170, X171, le33_out_ga(T83, T84)) → U5_gaaa(T83, T84, T85, X170, X171, part20_in_gaaa(T83, T85, X170, X171))
part20_in_gaaa(T107, [], [], []) → part20_out_gaaa(T107, [], [], [])
U5_gaaa(T83, T84, T85, X170, X171, part20_out_gaaa(T83, T85, X170, X171)) → part20_out_gaaa(T83, .(T84, T85), X170, .(T84, X171))
U3_gaaa(T61, T62, T63, X119, X120, part20_out_gaaa(T61, T63, X119, X120)) → part20_out_gaaa(T61, .(T62, T63), .(T62, X119), X120)
U20_aa(T22, T23, T24, T9, part20_out_gaaa(T22, T24, X47, X48)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U19_aa(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → U21_aa(T22, T23, T24, T9, part20_in_gaaa(T22, T24, T44, T45))
U21_aa(T22, T23, T24, T9, part20_out_gaaa(T22, T24, T44, T45)) → U22_aa(T22, T23, T24, T9, qs1_in_aa(.(T23, T44), X9))
qs1_in_aa(.(T234, .(T235, T236)), T9) → U25_aa(T234, T235, T236, T9, le33_in_aa(T234, T235))
le33_in_aa(s(T98), s(T99)) → U6_aa(T98, T99, le33_in_aa(T98, T99))
le33_in_aa(0, s(0)) → le33_out_aa(0, s(0))
le33_in_aa(0, 0) → le33_out_aa(0, 0)
U6_aa(T98, T99, le33_out_aa(T98, T99)) → le33_out_aa(s(T98), s(T99))
U25_aa(T234, T235, T236, T9, le33_out_aa(T234, T235)) → qs1_out_aa(.(T234, .(T235, T236)), T9)
U25_aa(T234, T235, T236, T9, le33_out_aa(T234, T235)) → U26_aa(T234, T235, T236, T9, part20_in_gaaa(T234, T236, X431, X432))
U26_aa(T234, T235, T236, T9, part20_out_gaaa(T234, T236, X431, X432)) → qs1_out_aa(.(T234, .(T235, T236)), T9)
U25_aa(T234, T235, T236, T9, le33_out_aa(T234, T235)) → U27_aa(T234, T235, T236, T9, part20_in_gaaa(T234, T236, T244, T245))
U27_aa(T234, T235, T236, T9, part20_out_gaaa(T234, T236, T244, T245)) → U28_aa(T234, T235, T236, T9, qs53_in_aa(T244, X9))
qs53_in_aa(.(T126, T127), X269) → U7_aa(T126, T127, X269, part20_in_aaaa(T126, T127, X265, X266))
part20_in_aaaa(T61, .(T62, T63), .(T62, X119), X120) → U2_aaaa(T61, T62, T63, X119, X120, gt10_in_aa(T61, T62))
U2_aaaa(T61, T62, T63, X119, X120, gt10_out_aa(T61, T62)) → part20_out_aaaa(T61, .(T62, T63), .(T62, X119), X120)
U2_aaaa(T61, T62, T63, X119, X120, gt10_out_aa(T61, T62)) → U3_aaaa(T61, T62, T63, X119, X120, part20_in_gaaa(T61, T63, X119, X120))
U3_aaaa(T61, T62, T63, X119, X120, part20_out_gaaa(T61, T63, X119, X120)) → part20_out_aaaa(T61, .(T62, T63), .(T62, X119), X120)
part20_in_aaaa(T83, .(T84, T85), X170, .(T84, X171)) → U4_aaaa(T83, T84, T85, X170, X171, le33_in_aa(T83, T84))
U4_aaaa(T83, T84, T85, X170, X171, le33_out_aa(T83, T84)) → part20_out_aaaa(T83, .(T84, T85), X170, .(T84, X171))
U4_aaaa(T83, T84, T85, X170, X171, le33_out_aa(T83, T84)) → U5_aaaa(T83, T84, T85, X170, X171, part20_in_gaaa(T83, T85, X170, X171))
U5_aaaa(T83, T84, T85, X170, X171, part20_out_gaaa(T83, T85, X170, X171)) → part20_out_aaaa(T83, .(T84, T85), X170, .(T84, X171))
part20_in_aaaa(T107, [], [], []) → part20_out_aaaa(T107, [], [], [])
U7_aa(T126, T127, X269, part20_out_aaaa(T126, T127, X265, X266)) → qs53_out_aa(.(T126, T127), X269)
qs53_in_aa(.(T126, T127), X269) → U8_aa(T126, T127, X269, part20_in_aaaa(T126, T127, T131, T132))
U8_aa(T126, T127, X269, part20_out_aaaa(T126, T127, T131, T132)) → U9_aa(T126, T127, X269, qs53_in_aa(T131, X267))
qs53_in_aa([], []) → qs53_out_aa([], [])
U9_aa(T126, T127, X269, qs53_out_aa(T131, X267)) → qs53_out_aa(.(T126, T127), X269)
U8_aa(T126, T127, X269, part20_out_aaaa(T126, T127, T131, T132)) → U10_aa(T126, T127, X269, T132, qs53_in_aa(T131, T138))
U10_aa(T126, T127, X269, T132, qs53_out_aa(T131, T138)) → U11_aa(T126, T127, X269, qs53_in_aa(T132, X268))
U11_aa(T126, T127, X269, qs53_out_aa(T132, X268)) → qs53_out_aa(.(T126, T127), X269)
U10_aa(T126, T127, X269, T132, qs53_out_aa(T131, T138)) → U12_aa(T126, T127, X269, T138, qs53_in_aa(T132, T143))
U12_aa(T126, T127, X269, T138, qs53_out_aa(T132, T143)) → U13_aa(T126, T127, X269, app65_in_aaaa(T138, T126, T143, X269))
app65_in_aaaa(.(T166, T167), T168, T169, .(T166, X348)) → U14_aaaa(T166, T167, T168, T169, X348, app65_in_aaaa(T167, T168, T169, X348))
app65_in_aaaa([], T178, T179, .(T178, T179)) → app65_out_aaaa([], T178, T179, .(T178, T179))
U14_aaaa(T166, T167, T168, T169, X348, app65_out_aaaa(T167, T168, T169, X348)) → app65_out_aaaa(.(T166, T167), T168, T169, .(T166, X348))
U13_aa(T126, T127, X269, app65_out_aaaa(T138, T126, T143, X269)) → qs53_out_aa(.(T126, T127), X269)
U28_aa(T234, T235, T236, T9, qs53_out_aa(T244, X9)) → qs1_out_aa(.(T234, .(T235, T236)), T9)
U27_aa(T234, T235, T236, T9, part20_out_gaaa(T234, T236, T244, T245)) → U29_aa(T234, T235, T236, T9, T245, qs53_in_aa(T244, T251))
U29_aa(T234, T235, T236, T9, T245, qs53_out_aa(T244, T251)) → U30_aa(T234, T235, T236, T9, p52_in_aaaga(.(T235, T245), X10, T251, T234, T9))
p52_in_aaaga(T45, X10, T110, T22, T9) → U16_aaaga(T45, X10, T110, T22, T9, qs53_in_aa(T45, X10))
U16_aaaga(T45, X10, T110, T22, T9, qs53_out_aa(T45, X10)) → p52_out_aaaga(T45, X10, T110, T22, T9)
p52_in_aaaga(T45, T115, T110, T22, T9) → U17_aaaga(T45, T115, T110, T22, T9, qs53_in_aa(T45, T115))
U17_aaaga(T45, T115, T110, T22, T9, qs53_out_aa(T45, T115)) → U18_aaaga(T45, T115, T110, T22, T9, app54_in_agaa(T110, T22, T115, T9))
app54_in_agaa(.(T205, T206), T207, T208, .(T205, T210)) → U15_agaa(T205, T206, T207, T208, T210, app54_in_agaa(T206, T207, T208, T210))
app54_in_agaa([], T220, T221, .(T220, T221)) → app54_out_agaa([], T220, T221, .(T220, T221))
U15_agaa(T205, T206, T207, T208, T210, app54_out_agaa(T206, T207, T208, T210)) → app54_out_agaa(.(T205, T206), T207, T208, .(T205, T210))
U18_aaaga(T45, T115, T110, T22, T9, app54_out_agaa(T110, T22, T115, T9)) → p52_out_aaaga(T45, T115, T110, T22, T9)
U30_aa(T234, T235, T236, T9, p52_out_aaaga(.(T235, T245), X10, T251, T234, T9)) → qs1_out_aa(.(T234, .(T235, T236)), T9)
qs1_in_aa(.(T260, []), T9) → U31_aa(T260, T9, qs99_in_a(X9))
qs99_in_a([]) → qs99_out_a([])
U31_aa(T260, T9, qs99_out_a(X9)) → qs1_out_aa(.(T260, []), T9)
qs1_in_aa(.(T260, []), T9) → U32_aa(T260, T9, qs99_in_a(T263))
U32_aa(T260, T9, qs99_out_a(T263)) → U33_aa(T260, T9, qs99_in_a(X10))
U33_aa(T260, T9, qs99_out_a(X10)) → qs1_out_aa(.(T260, []), T9)
U32_aa(T260, T9, qs99_out_a(T263)) → U34_aa(T260, T9, T263, qs99_in_a(T268))
U34_aa(T260, T9, T263, qs99_out_a(T268)) → U35_aa(T260, T9, app54_in_gaga(T263, T260, T268, T9))
app54_in_gaga(.(T205, T206), T207, T208, .(T205, T210)) → U15_gaga(T205, T206, T207, T208, T210, app54_in_gaga(T206, T207, T208, T210))
app54_in_gaga([], T220, T221, .(T220, T221)) → app54_out_gaga([], T220, T221, .(T220, T221))
U15_gaga(T205, T206, T207, T208, T210, app54_out_gaga(T206, T207, T208, T210)) → app54_out_gaga(.(T205, T206), T207, T208, .(T205, T210))
U35_aa(T260, T9, app54_out_gaga(T263, T260, T268, T9)) → qs1_out_aa(.(T260, []), T9)
qs1_in_aa([], []) → qs1_out_aa([], [])
U22_aa(T22, T23, T24, T9, qs1_out_aa(.(T23, T44), X9)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U21_aa(T22, T23, T24, T9, part20_out_gaaa(T22, T24, T44, T45)) → U23_aa(T22, T23, T24, T9, T45, qs1_in_aa(.(T23, T44), T110))
U23_aa(T22, T23, T24, T9, T45, qs1_out_aa(.(T23, T44), T110)) → U24_aa(T22, T23, T24, T9, p52_in_aaaga(T45, X10, T110, T22, T9))
U24_aa(T22, T23, T24, T9, p52_out_aaaga(T45, X10, T110, T22, T9)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U22_ga(T22, T23, T24, T9, qs1_out_aa(.(T23, T44), X9)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U21_ga(T22, T23, T24, T9, part20_out_ggaa(T22, T24, T44, T45)) → U23_ga(T22, T23, T24, T9, T45, qs1_in_aa(.(T23, T44), T110))
U23_ga(T22, T23, T24, T9, T45, qs1_out_aa(.(T23, T44), T110)) → U24_ga(T22, T23, T24, T9, p52_in_aaaga(T45, X10, T110, T22, T9))
U24_ga(T22, T23, T24, T9, p52_out_aaaga(T45, X10, T110, T22, T9)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
qs1_in_ga(.(T234, .(T235, T236)), T9) → U25_ga(T234, T235, T236, T9, le33_in_gg(T234, T235))
U25_ga(T234, T235, T236, T9, le33_out_gg(T234, T235)) → qs1_out_ga(.(T234, .(T235, T236)), T9)
U25_ga(T234, T235, T236, T9, le33_out_gg(T234, T235)) → U26_ga(T234, T235, T236, T9, part20_in_ggaa(T234, T236, X431, X432))
U26_ga(T234, T235, T236, T9, part20_out_ggaa(T234, T236, X431, X432)) → qs1_out_ga(.(T234, .(T235, T236)), T9)
U25_ga(T234, T235, T236, T9, le33_out_gg(T234, T235)) → U27_ga(T234, T235, T236, T9, part20_in_ggaa(T234, T236, T244, T245))
U27_ga(T234, T235, T236, T9, part20_out_ggaa(T234, T236, T244, T245)) → U28_ga(T234, T235, T236, T9, qs53_in_aa(T244, X9))
U28_ga(T234, T235, T236, T9, qs53_out_aa(T244, X9)) → qs1_out_ga(.(T234, .(T235, T236)), T9)
U27_ga(T234, T235, T236, T9, part20_out_ggaa(T234, T236, T244, T245)) → U29_ga(T234, T235, T236, T9, T245, qs53_in_aa(T244, T251))
U29_ga(T234, T235, T236, T9, T245, qs53_out_aa(T244, T251)) → U30_ga(T234, T235, T236, T9, p52_in_aaaga(.(T235, T245), X10, T251, T234, T9))
U30_ga(T234, T235, T236, T9, p52_out_aaaga(.(T235, T245), X10, T251, T234, T9)) → qs1_out_ga(.(T234, .(T235, T236)), T9)
qs1_in_ga(.(T260, []), T9) → U31_ga(T260, T9, qs99_in_a(X9))
U31_ga(T260, T9, qs99_out_a(X9)) → qs1_out_ga(.(T260, []), T9)
qs1_in_ga(.(T260, []), T9) → U32_ga(T260, T9, qs99_in_a(T263))
U32_ga(T260, T9, qs99_out_a(T263)) → U33_ga(T260, T9, qs99_in_a(X10))
U33_ga(T260, T9, qs99_out_a(X10)) → qs1_out_ga(.(T260, []), T9)
U32_ga(T260, T9, qs99_out_a(T263)) → U34_ga(T260, T9, T263, qs99_in_a(T268))
U34_ga(T260, T9, T263, qs99_out_a(T268)) → U35_ga(T260, T9, app54_in_ggga(T263, T260, T268, T9))
app54_in_ggga(.(T205, T206), T207, T208, .(T205, T210)) → U15_ggga(T205, T206, T207, T208, T210, app54_in_ggga(T206, T207, T208, T210))
app54_in_ggga([], T220, T221, .(T220, T221)) → app54_out_ggga([], T220, T221, .(T220, T221))
U15_ggga(T205, T206, T207, T208, T210, app54_out_ggga(T206, T207, T208, T210)) → app54_out_ggga(.(T205, T206), T207, T208, .(T205, T210))
U35_ga(T260, T9, app54_out_ggga(T263, T260, T268, T9)) → qs1_out_ga(.(T260, []), T9)
qs1_in_ga([], []) → qs1_out_ga([], [])
PART20_IN_GGAA(T61, .(T62, T63), .(T62, X119), X120) → U2_GGAA(T61, T62, T63, X119, X120, gt10_in_gg(T61, T62))
U2_GGAA(T61, T62, T63, X119, X120, gt10_out_gg(T61, T62)) → PART20_IN_GGAA(T61, T63, X119, X120)
PART20_IN_GGAA(T83, .(T84, T85), X170, .(T84, X171)) → U4_GGAA(T83, T84, T85, X170, X171, le33_in_gg(T83, T84))
U4_GGAA(T83, T84, T85, X170, X171, le33_out_gg(T83, T84)) → PART20_IN_GGAA(T83, T85, X170, X171)
gt10_in_gg(s(T37), s(T38)) → U1_gg(T37, T38, gt10_in_gg(T37, T38))
gt10_in_gg(s(0), 0) → gt10_out_gg(s(0), 0)
le33_in_gg(s(T98), s(T99)) → U6_gg(T98, T99, le33_in_gg(T98, T99))
le33_in_gg(0, s(0)) → le33_out_gg(0, s(0))
le33_in_gg(0, 0) → le33_out_gg(0, 0)
U1_gg(T37, T38, gt10_out_gg(T37, T38)) → gt10_out_gg(s(T37), s(T38))
U6_gg(T98, T99, le33_out_gg(T98, T99)) → le33_out_gg(s(T98), s(T99))
PART20_IN_GGAA(T61, .(T62, T63)) → U2_GGAA(T61, T63, gt10_in_gg(T61, T62))
U2_GGAA(T61, T63, gt10_out_gg) → PART20_IN_GGAA(T61, T63)
PART20_IN_GGAA(T83, .(T84, T85)) → U4_GGAA(T83, T85, le33_in_gg(T83, T84))
U4_GGAA(T83, T85, le33_out_gg) → PART20_IN_GGAA(T83, T85)
gt10_in_gg(s(T37), s(T38)) → U1_gg(gt10_in_gg(T37, T38))
gt10_in_gg(s(0), 0) → gt10_out_gg
le33_in_gg(s(T98), s(T99)) → U6_gg(le33_in_gg(T98, T99))
le33_in_gg(0, s(0)) → le33_out_gg
le33_in_gg(0, 0) → le33_out_gg
U1_gg(gt10_out_gg) → gt10_out_gg
U6_gg(le33_out_gg) → le33_out_gg
gt10_in_gg(x0, x1)
le33_in_gg(x0, x1)
U1_gg(x0)
U6_gg(x0)
From the DPs we obtained the following set of size-change graphs: