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 NonTerminationProof (⇔)
↳50 NO
↳51 PiDP
↳52 UsableRulesProof (⇔)
↳53 PiDP
↳54 PiDPToQDPProof (⇐)
↳55 QDP
↳56 NonTerminationProof (⇔)
↳57 NO
↳58 PiDP
↳59 UsableRulesProof (⇔)
↳60 PiDP
↳61 PiDPToQDPProof (⇐)
↳62 QDP
↳63 QDPSizeChangeProof (⇔)
↳64 YES
↳65 PiDP
↳66 UsableRulesProof (⇔)
↳67 PiDP
↳68 PiDPToQDPProof (⇐)
↳69 QDP
↳70 QDPSizeChangeProof (⇔)
↳71 YES
↳72 PiDP
↳73 UsableRulesProof (⇔)
↳74 PiDP
↳75 PiDPToQDPProof (⇐)
↳76 QDP
↳77 Narrowing (⇐)
↳78 QDP
↳79 Narrowing (⇐)
↳80 QDP
↳81 Instantiation (⇔)
↳82 QDP
↳83 Instantiation (⇔)
↳84 QDP
↳85 DependencyGraphProof (⇔)
↳86 AND
↳87 QDP
↳88 UsableRulesProof (⇔)
↳89 QDP
↳90 QReductionProof (⇔)
↳91 QDP
↳92 NonTerminationProof (⇔)
↳93 NO
↳94 QDP
↳95 NonTerminationProof (⇔)
↳96 NO
↳97 PiDP
↳98 UsableRulesProof (⇔)
↳99 PiDP
↳100 PiDPToQDPProof (⇐)
↳101 QDP
↳102 NonTerminationProof (⇔)
↳103 NO
↳104 PiDP
↳105 UsableRulesProof (⇔)
↳106 PiDP
↳107 PiDPToQDPProof (⇐)
↳108 QDP
↳109 Narrowing (⇐)
↳110 QDP
↳111 Narrowing (⇐)
↳112 QDP
↳113 Narrowing (⇐)
↳114 QDP
↳115 Narrowing (⇐)
↳116 QDP
↳117 NonTerminationProof (⇔)
↳118 NO
↳119 PiDP
↳120 UsableRulesProof (⇔)
↳121 PiDP
↳122 PiDPToQDPProof (⇐)
↳123 QDP
↳124 Narrowing (⇐)
↳125 QDP
↳126 Narrowing (⇐)
↳127 QDP
↳128 Narrowing (⇐)
↳129 QDP
↳130 Narrowing (⇐)
↳131 QDP
↳132 Narrowing (⇐)
↳133 QDP
↳134 NonTerminationProof (⇔)
↳135 NO
↳136 PrologToPiTRSProof (⇐)
↳137 PiTRS
↳138 DependencyPairsProof (⇔)
↳139 PiDP
↳140 DependencyGraphProof (⇔)
↳141 AND
↳142 PiDP
↳143 UsableRulesProof (⇔)
↳144 PiDP
↳145 PiDPToQDPProof (⇐)
↳146 QDP
↳147 QDPSizeChangeProof (⇔)
↳148 YES
↳149 PiDP
↳150 UsableRulesProof (⇔)
↳151 PiDP
↳152 PiDPToQDPProof (⇐)
↳153 QDP
↳154 QDPSizeChangeProof (⇔)
↳155 YES
↳156 PiDP
↳157 UsableRulesProof (⇔)
↳158 PiDP
↳159 PiDPToQDPProof (⇐)
↳160 QDP
↳161 NonTerminationProof (⇔)
↳162 NO
↳163 PiDP
↳164 UsableRulesProof (⇔)
↳165 PiDP
↳166 PiDPToQDPProof (⇐)
↳167 QDP
↳168 NonTerminationProof (⇔)
↳169 NO
↳170 PiDP
↳171 UsableRulesProof (⇔)
↳172 PiDP
↳173 PiDPToQDPProof (⇐)
↳174 QDP
↳175 NonTerminationProof (⇔)
↳176 NO
↳177 PiDP
↳178 UsableRulesProof (⇔)
↳179 PiDP
↳180 PiDPToQDPProof (⇐)
↳181 QDP
↳182 NonTerminationProof (⇔)
↳183 NO
↳184 PiDP
↳185 UsableRulesProof (⇔)
↳186 PiDP
↳187 PiDPToQDPProof (⇐)
↳188 QDP
↳189 NonTerminationProof (⇔)
↳190 NO
↳191 PiDP
↳192 UsableRulesProof (⇔)
↳193 PiDP
↳194 PiDPToQDPProof (⇐)
↳195 QDP
↳196 QDPSizeChangeProof (⇔)
↳197 YES
↳198 PiDP
↳199 UsableRulesProof (⇔)
↳200 PiDP
↳201 PiDPToQDPProof (⇐)
↳202 QDP
↳203 QDPSizeChangeProof (⇔)
↳204 YES
↳205 PiDP
↳206 UsableRulesProof (⇔)
↳207 PiDP
↳208 PiDPToQDPProof (⇐)
↳209 QDP
↳210 Narrowing (⇐)
↳211 QDP
↳212 Narrowing (⇐)
↳213 QDP
↳214 Instantiation (⇔)
↳215 QDP
↳216 Instantiation (⇔)
↳217 QDP
↳218 DependencyGraphProof (⇔)
↳219 AND
↳220 QDP
↳221 UsableRulesProof (⇔)
↳222 QDP
↳223 QReductionProof (⇔)
↳224 QDP
↳225 NonTerminationProof (⇔)
↳226 NO
↳227 QDP
↳228 NonTerminationProof (⇔)
↳229 NO
↳230 PiDP
↳231 UsableRulesProof (⇔)
↳232 PiDP
↳233 PiDPToQDPProof (⇐)
↳234 QDP
↳235 NonTerminationProof (⇔)
↳236 NO
↳237 PiDP
↳238 UsableRulesProof (⇔)
↳239 PiDP
↳240 PiDPToQDPProof (⇐)
↳241 QDP
↳242 Narrowing (⇐)
↳243 QDP
↳244 Narrowing (⇐)
↳245 QDP
↳246 Narrowing (⇐)
↳247 QDP
↳248 Narrowing (⇐)
↳249 QDP
↳250 NonTerminationProof (⇔)
↳251 NO
↳252 PiDP
↳253 UsableRulesProof (⇔)
↳254 PiDP
↳255 PiDPToQDPProof (⇐)
↳256 QDP
↳257 Narrowing (⇐)
↳258 QDP
↳259 Narrowing (⇐)
↳260 QDP
↳261 Narrowing (⇐)
↳262 QDP
↳263 Narrowing (⇐)
↳264 QDP
↳265 Narrowing (⇐)
↳266 QDP
↳267 NonTerminationProof (⇔)
↳268 NO
qs1_in_ag(.(T26, .(T27, T28)), T8) → U44_ag(T26, T27, T28, T8, gt10_in_aa(T26, T27))
gt10_in_aa(s(T46), s(T47)) → U1_aa(T46, T47, gt10_in_aa(T46, T47))
gt10_in_aa(s(0), 0) → gt10_out_aa(s(0), 0)
U1_aa(T46, T47, gt10_out_aa(T46, T47)) → gt10_out_aa(s(T46), s(T47))
U44_ag(T26, T27, T28, T8, gt10_out_aa(T26, T27)) → qs1_out_ag(.(T26, .(T27, T28)), T8)
qs1_in_ag(.(T31, .(T33, T32)), T8) → U45_ag(T31, T33, T32, T8, gt10_in_aa(T31, T33))
U45_ag(T31, T33, T32, T8, gt10_out_aa(T31, T33)) → U46_ag(T31, T33, T32, T8, part20_in_gaaa(T31, T32, X47, X48))
part20_in_gaaa(T70, .(T73, T74), .(T73, X119), X120) → U2_gaaa(T70, T73, T74, X119, X120, gt10_in_ga(T70, T73))
gt10_in_ga(s(T46), s(T47)) → U1_ga(T46, T47, gt10_in_ga(T46, T47))
gt10_in_ga(s(0), 0) → gt10_out_ga(s(0), 0)
U1_ga(T46, T47, gt10_out_ga(T46, T47)) → gt10_out_ga(s(T46), s(T47))
U2_gaaa(T70, T73, T74, X119, X120, gt10_out_ga(T70, T73)) → part20_out_gaaa(T70, .(T73, T74), .(T73, X119), X120)
part20_in_gaaa(T70, .(T73, T77), .(T73, X119), X120) → U3_gaaa(T70, T73, T77, X119, X120, gt10_in_ga(T70, T73))
U3_gaaa(T70, T73, T77, X119, X120, gt10_out_ga(T70, T73)) → U4_gaaa(T70, T73, T77, X119, X120, part20_in_gaaa(T70, T77, X119, X120))
part20_in_gaaa(T95, .(T98, T99), X170, .(T98, X171)) → U5_gaaa(T95, T98, T99, X170, X171, le33_in_ga(T95, T98))
le33_in_ga(s(T113), s(T115)) → U8_ga(T113, T115, le33_in_ga(T113, T115))
le33_in_ga(0, s(T122)) → le33_out_ga(0, s(T122))
le33_in_ga(0, 0) → le33_out_ga(0, 0)
U8_ga(T113, T115, le33_out_ga(T113, T115)) → le33_out_ga(s(T113), s(T115))
U5_gaaa(T95, T98, T99, X170, X171, le33_out_ga(T95, T98)) → part20_out_gaaa(T95, .(T98, T99), X170, .(T98, X171))
part20_in_gaaa(T95, .(T98, T102), X170, .(T98, X171)) → U6_gaaa(T95, T98, T102, X170, X171, le33_in_ga(T95, T98))
U6_gaaa(T95, T98, T102, X170, X171, le33_out_ga(T95, T98)) → U7_gaaa(T95, T98, T102, X170, X171, part20_in_gaaa(T95, T102, X170, X171))
part20_in_gaaa(T128, [], [], []) → part20_out_gaaa(T128, [], [], [])
U7_gaaa(T95, T98, T102, X170, X171, part20_out_gaaa(T95, T102, X170, X171)) → part20_out_gaaa(T95, .(T98, T102), X170, .(T98, X171))
U4_gaaa(T70, T73, T77, X119, X120, part20_out_gaaa(T70, T77, X119, X120)) → part20_out_gaaa(T70, .(T73, T77), .(T73, X119), X120)
U46_ag(T31, T33, T32, T8, part20_out_gaaa(T31, T32, X47, X48)) → qs1_out_ag(.(T31, .(T33, T32)), T8)
U45_ag(T31, T33, T32, T8, gt10_out_aa(T31, T33)) → U47_ag(T31, T33, T32, T8, part20_in_gaaa(T31, T32, T53, T54))
U47_ag(T31, T33, T32, T8, part20_out_gaaa(T31, T32, T53, T54)) → U48_ag(T31, T33, T32, T8, qs51_in_gaa(T33, T53, X9))
qs51_in_gaa(T148, T149, X273) → U37_gaa(T148, T149, X273, p56_in_gaaaaaa(T148, T149, X269, X270, X271, X272, X273))
p56_in_gaaaaaa(T148, T149, X269, X270, X271, X272, X273) → U9_gaaaaaa(T148, T149, X269, X270, X271, X272, X273, part20_in_gaaa(T148, T149, X269, X270))
U9_gaaaaaa(T148, T149, X269, X270, X271, X272, X273, part20_out_gaaa(T148, T149, X269, X270)) → p56_out_gaaaaaa(T148, T149, X269, X270, X271, X272, X273)
p56_in_gaaaaaa(T148, T149, T153, T154, X271, X272, X273) → U10_gaaaaaa(T148, T149, T153, T154, X271, X272, X273, part20_in_gaaa(T148, T149, T153, T154))
U10_gaaaaaa(T148, T149, T153, T154, X271, X272, X273, part20_out_gaaa(T148, T149, T153, T154)) → U11_gaaaaaa(T148, T149, T153, T154, X271, X272, X273, qs59_in_aa(T153, X271))
qs59_in_aa(.(T171, T172), X335) → U19_aa(T171, T172, X335, p56_in_aaaaaaa(T171, T172, X331, X332, X333, X334, X335))
p56_in_aaaaaaa(T148, T149, X269, X270, X271, X272, X273) → U9_aaaaaaa(T148, T149, X269, X270, X271, X272, X273, part20_in_aaaa(T148, T149, X269, X270))
part20_in_aaaa(T70, .(T73, T74), .(T73, X119), X120) → U2_aaaa(T70, T73, T74, X119, X120, gt10_in_aa(T70, T73))
U2_aaaa(T70, T73, T74, X119, X120, gt10_out_aa(T70, T73)) → part20_out_aaaa(T70, .(T73, T74), .(T73, X119), X120)
part20_in_aaaa(T70, .(T73, T77), .(T73, X119), X120) → U3_aaaa(T70, T73, T77, X119, X120, gt10_in_aa(T70, T73))
U3_aaaa(T70, T73, T77, X119, X120, gt10_out_aa(T70, T73)) → U4_aaaa(T70, T73, T77, X119, X120, part20_in_gaaa(T70, T77, X119, X120))
U4_aaaa(T70, T73, T77, X119, X120, part20_out_gaaa(T70, T77, X119, X120)) → part20_out_aaaa(T70, .(T73, T77), .(T73, X119), X120)
part20_in_aaaa(T95, .(T98, T99), X170, .(T98, X171)) → U5_aaaa(T95, T98, T99, X170, X171, le33_in_aa(T95, T98))
le33_in_aa(s(T113), s(T115)) → U8_aa(T113, T115, le33_in_aa(T113, T115))
le33_in_aa(0, s(T122)) → le33_out_aa(0, s(T122))
le33_in_aa(0, 0) → le33_out_aa(0, 0)
U8_aa(T113, T115, le33_out_aa(T113, T115)) → le33_out_aa(s(T113), s(T115))
U5_aaaa(T95, T98, T99, X170, X171, le33_out_aa(T95, T98)) → part20_out_aaaa(T95, .(T98, T99), X170, .(T98, X171))
part20_in_aaaa(T95, .(T98, T102), X170, .(T98, X171)) → U6_aaaa(T95, T98, T102, X170, X171, le33_in_aa(T95, T98))
U6_aaaa(T95, T98, T102, X170, X171, le33_out_aa(T95, T98)) → U7_aaaa(T95, T98, T102, X170, X171, part20_in_gaaa(T95, T102, X170, X171))
U7_aaaa(T95, T98, T102, X170, X171, part20_out_gaaa(T95, T102, X170, X171)) → part20_out_aaaa(T95, .(T98, T102), X170, .(T98, X171))
part20_in_aaaa(T128, [], [], []) → part20_out_aaaa(T128, [], [], [])
U9_aaaaaaa(T148, T149, X269, X270, X271, X272, X273, part20_out_aaaa(T148, T149, X269, X270)) → p56_out_aaaaaaa(T148, T149, X269, X270, X271, X272, X273)
p56_in_aaaaaaa(T148, T149, T153, T154, X271, X272, X273) → U10_aaaaaaa(T148, T149, T153, T154, X271, X272, X273, part20_in_aaaa(T148, T149, T153, T154))
U10_aaaaaaa(T148, T149, T153, T154, X271, X272, X273, part20_out_aaaa(T148, T149, T153, T154)) → U11_aaaaaaa(T148, T149, T153, T154, X271, X272, X273, qs59_in_aa(T153, X271))
qs59_in_aa([], []) → qs59_out_aa([], [])
U11_aaaaaaa(T148, T149, T153, T154, X271, X272, X273, qs59_out_aa(T153, X271)) → p56_out_aaaaaaa(T148, T149, T153, T154, X271, X272, X273)
p56_in_aaaaaaa(T148, T149, T153, T154, T160, X272, X273) → U12_aaaaaaa(T148, T149, T153, T154, T160, X272, X273, part20_in_aaaa(T148, T149, T153, T154))
U12_aaaaaaa(T148, T149, T153, T154, T160, X272, X273, part20_out_aaaa(T148, T149, T153, T154)) → U13_aaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_in_aa(T153, T160))
U13_aaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_out_aa(T153, T160)) → U14_aaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_in_aa(T154, X272))
U14_aaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_out_aa(T154, X272)) → p56_out_aaaaaaa(T148, T149, T153, T154, T160, X272, X273)
p56_in_aaaaaaa(T148, T149, T153, T154, T160, T178, X273) → U15_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, part20_in_aaaa(T148, T149, T153, T154))
U15_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, part20_out_aaaa(T148, T149, T153, T154)) → U16_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_in_aa(T153, T160))
U16_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_out_aa(T153, T160)) → U17_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_in_aa(T154, T178))
U17_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_out_aa(T154, T178)) → U18_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, app70_in_aaaa(T160, T148, T178, X273))
app70_in_aaaa(.(T201, T202), T203, T204, .(T201, X391)) → U20_aaaa(T201, T202, T203, T204, X391, app70_in_aaaa(T202, T203, T204, X391))
app70_in_aaaa([], T213, T214, .(T213, T214)) → app70_out_aaaa([], T213, T214, .(T213, T214))
U20_aaaa(T201, T202, T203, T204, X391, app70_out_aaaa(T202, T203, T204, X391)) → app70_out_aaaa(.(T201, T202), T203, T204, .(T201, X391))
U18_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, app70_out_aaaa(T160, T148, T178, X273)) → p56_out_aaaaaaa(T148, T149, T153, T154, T160, T178, X273)
U19_aa(T171, T172, X335, p56_out_aaaaaaa(T171, T172, X331, X332, X333, X334, X335)) → qs59_out_aa(.(T171, T172), X335)
U11_gaaaaaa(T148, T149, T153, T154, X271, X272, X273, qs59_out_aa(T153, X271)) → p56_out_gaaaaaa(T148, T149, T153, T154, X271, X272, X273)
p56_in_gaaaaaa(T148, T149, T153, T154, T160, X272, X273) → U12_gaaaaaa(T148, T149, T153, T154, T160, X272, X273, part20_in_gaaa(T148, T149, T153, T154))
U12_gaaaaaa(T148, T149, T153, T154, T160, X272, X273, part20_out_gaaa(T148, T149, T153, T154)) → U13_gaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_in_aa(T153, T160))
U13_gaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_out_aa(T153, T160)) → U14_gaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_in_aa(T154, X272))
U14_gaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_out_aa(T154, X272)) → p56_out_gaaaaaa(T148, T149, T153, T154, T160, X272, X273)
p56_in_gaaaaaa(T148, T149, T153, T154, T160, T178, X273) → U15_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, part20_in_gaaa(T148, T149, T153, T154))
U15_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, part20_out_gaaa(T148, T149, T153, T154)) → U16_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_in_aa(T153, T160))
U16_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_out_aa(T153, T160)) → U17_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_in_aa(T154, T178))
U17_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_out_aa(T154, T178)) → U18_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, app70_in_agaa(T160, T148, T178, X273))
app70_in_agaa(.(T201, T202), T203, T204, .(T201, X391)) → U20_agaa(T201, T202, T203, T204, X391, app70_in_agaa(T202, T203, T204, X391))
app70_in_agaa([], T213, T214, .(T213, T214)) → app70_out_agaa([], T213, T214, .(T213, T214))
U20_agaa(T201, T202, T203, T204, X391, app70_out_agaa(T202, T203, T204, X391)) → app70_out_agaa(.(T201, T202), T203, T204, .(T201, X391))
U18_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, app70_out_agaa(T160, T148, T178, X273)) → p56_out_gaaaaaa(T148, T149, T153, T154, T160, T178, X273)
U37_gaa(T148, T149, X273, p56_out_gaaaaaa(T148, T149, X269, X270, X271, X272, X273)) → qs51_out_gaa(T148, T149, X273)
U48_ag(T31, T33, T32, T8, qs51_out_gaa(T33, T53, X9)) → qs1_out_ag(.(T31, .(T33, T32)), T8)
U47_ag(T31, T33, T32, T8, part20_out_gaaa(T31, T32, T53, T54)) → U49_ag(T31, T33, T32, T8, T54, qs51_in_gaa(T33, T53, T131))
U49_ag(T31, T33, T32, T8, T54, qs51_out_gaa(T33, T53, T131)) → U50_ag(T31, T33, T32, T8, p52_in_aaagg(T54, X10, T131, T31, T8))
p52_in_aaagg(T54, X10, T131, T31, T8) → U33_aaagg(T54, X10, T131, T31, T8, qs80_in_aa(T54, X10))
qs80_in_aa(.(T230, T231), X452) → U22_aa(T230, T231, X452, part87_in_aaaa(T230, T231, X448, X449))
part87_in_aaaa(T256, .(T257, T258), .(T257, X503), X504) → U38_aaaa(T256, T257, T258, X503, X504, gt10_in_aa(T256, T257))
U38_aaaa(T256, T257, T258, X503, X504, gt10_out_aa(T256, T257)) → part87_out_aaaa(T256, .(T257, T258), .(T257, X503), X504)
part87_in_aaaa(T261, .(T257, T262), .(T257, X503), X504) → U39_aaaa(T261, T257, T262, X503, X504, gt10_in_aa(T261, T257))
U39_aaaa(T261, T257, T262, X503, X504, gt10_out_aa(T261, T257)) → U40_aaaa(T261, T257, T262, X503, X504, part20_in_gaaa(T261, T262, X503, X504))
U40_aaaa(T261, T257, T262, X503, X504, part20_out_gaaa(T261, T262, X503, X504)) → part87_out_aaaa(T261, .(T257, T262), .(T257, X503), X504)
part87_in_aaaa(T283, .(T284, T285), X554, .(T284, X555)) → U41_aaaa(T283, T284, T285, X554, X555, le100_in_aa(T283, T284))
le100_in_aa(s(T302), s(T303)) → U21_aa(T302, T303, le100_in_aa(T302, T303))
le100_in_aa(0, s(T310)) → le100_out_aa(0, s(T310))
le100_in_aa(0, 0) → le100_out_aa(0, 0)
U21_aa(T302, T303, le100_out_aa(T302, T303)) → le100_out_aa(s(T302), s(T303))
U41_aaaa(T283, T284, T285, X554, X555, le100_out_aa(T283, T284)) → part87_out_aaaa(T283, .(T284, T285), X554, .(T284, X555))
part87_in_aaaa(T288, .(T284, T289), X554, .(T284, X555)) → U42_aaaa(T288, T284, T289, X554, X555, le100_in_aa(T288, T284))
U42_aaaa(T288, T284, T289, X554, X555, le100_out_aa(T288, T284)) → U43_aaaa(T288, T284, T289, X554, X555, part20_in_gaaa(T288, T289, X554, X555))
U43_aaaa(T288, T284, T289, X554, X555, part20_out_gaaa(T288, T289, X554, X555)) → part87_out_aaaa(T288, .(T284, T289), X554, .(T284, X555))
part87_in_aaaa(T316, [], [], []) → part87_out_aaaa(T316, [], [], [])
U22_aa(T230, T231, X452, part87_out_aaaa(T230, T231, X448, X449)) → qs80_out_aa(.(T230, T231), X452)
qs80_in_aa(.(T237, T231), X452) → U23_aa(T237, T231, X452, part87_in_aaaa(T237, T231, T235, T236))
U23_aa(T237, T231, X452, part87_out_aaaa(T237, T231, T235, T236)) → U24_aa(T237, T231, X452, qs80_in_aa(T235, X450))
qs80_in_aa(.(T325, T231), X452) → U27_aa(T325, T231, X452, part87_in_aaaa(T325, T231, T235, T236))
U27_aa(T325, T231, X452, part87_out_aaaa(T325, T231, T235, T236)) → U28_aa(T325, T231, X452, T236, qs80_in_aa(T235, T319))
qs80_in_aa([], []) → qs80_out_aa([], [])
U28_aa(T325, T231, X452, T236, qs80_out_aa(T235, T319)) → U29_aa(T325, T231, X452, T319, qs80_in_aa(T236, T324))
U29_aa(T325, T231, X452, T319, qs80_out_aa(T236, T324)) → U30_aa(T325, T231, X452, app121_in_aaaa(T319, T325, T324, X452))
app121_in_aaaa(.(T348, T349), T352, T353, .(T348, X657)) → U31_aaaa(T348, T349, T352, T353, X657, app121_in_aaaa(T349, T352, T353, X657))
app121_in_aaaa([], T362, T363, .(T362, T363)) → app121_out_aaaa([], T362, T363, .(T362, T363))
U31_aaaa(T348, T349, T352, T353, X657, app121_out_aaaa(T349, T352, T353, X657)) → app121_out_aaaa(.(T348, T349), T352, T353, .(T348, X657))
U30_aa(T325, T231, X452, app121_out_aaaa(T319, T325, T324, X452)) → qs80_out_aa(.(T325, T231), X452)
U24_aa(T237, T231, X452, qs80_out_aa(T235, X450)) → qs80_out_aa(.(T237, T231), X452)
U23_aa(T237, T231, X452, part87_out_aaaa(T237, T231, T235, T236)) → U25_aa(T237, T231, X452, T236, qs80_in_aa(T235, T319))
U25_aa(T237, T231, X452, T236, qs80_out_aa(T235, T319)) → U26_aa(T237, T231, X452, qs80_in_aa(T236, X451))
U26_aa(T237, T231, X452, qs80_out_aa(T236, X451)) → qs80_out_aa(.(T237, T231), X452)
U33_aaagg(T54, X10, T131, T31, T8, qs80_out_aa(T54, X10)) → p52_out_aaagg(T54, X10, T131, T31, T8)
p52_in_aaagg(T54, T217, T131, T31, T8) → U34_aaagg(T54, T217, T131, T31, T8, qs80_in_aa(T54, T217))
U34_aaagg(T54, T217, T131, T31, T8, qs80_out_aa(T54, T217)) → U35_aaagg(T54, T217, T131, T31, T8, app81_in_agag(T131, T31, T217, T8))
app81_in_agag(.(T389, T390), T391, T394, .(T389, T393)) → U32_agag(T389, T390, T391, T394, T393, app81_in_agag(T390, T391, T394, T393))
app81_in_agag([], T404, T405, .(T404, T405)) → app81_out_agag([], T404, T405, .(T404, T405))
U32_agag(T389, T390, T391, T394, T393, app81_out_agag(T390, T391, T394, T393)) → app81_out_agag(.(T389, T390), T391, T394, .(T389, T393))
U35_aaagg(T54, T217, T131, T31, T8, app81_out_agag(T131, T31, T217, T8)) → p52_out_aaagg(T54, T217, T131, T31, T8)
U50_ag(T31, T33, T32, T8, p52_out_aaagg(T54, X10, T131, T31, T8)) → qs1_out_ag(.(T31, .(T33, T32)), T8)
qs1_in_ag(.(T421, .(T422, T423)), T8) → U51_ag(T421, T422, T423, T8, le100_in_aa(T421, T422))
U51_ag(T421, T422, T423, T8, le100_out_aa(T421, T422)) → qs1_out_ag(.(T421, .(T422, T423)), T8)
qs1_in_ag(.(T426, .(T428, T427)), T8) → U52_ag(T426, T428, T427, T8, le100_in_aa(T426, T428))
U52_ag(T426, T428, T427, T8, le100_out_aa(T426, T428)) → U53_ag(T426, T428, T427, T8, part20_in_gaaa(T426, T427, X740, X741))
U53_ag(T426, T428, T427, T8, part20_out_gaaa(T426, T427, X740, X741)) → qs1_out_ag(.(T426, .(T428, T427)), T8)
qs1_in_ag(.(T426, .(T436, T427)), T8) → U54_ag(T426, T436, T427, T8, le100_in_aa(T426, T436))
U54_ag(T426, T436, T427, T8, le100_out_aa(T426, T436)) → U55_ag(T426, T436, T427, T8, part20_in_gaaa(T426, T427, T434, T435))
U55_ag(T426, T436, T427, T8, part20_out_gaaa(T426, T427, T434, T435)) → U56_ag(T426, T436, T427, T8, qs80_in_aa(T434, X9))
U56_ag(T426, T436, T427, T8, qs80_out_aa(T434, X9)) → qs1_out_ag(.(T426, .(T436, T427)), T8)
U55_ag(T426, T436, T427, T8, part20_out_gaaa(T426, T427, T434, T435)) → U57_ag(T426, T436, T427, T8, T435, qs80_in_aa(T434, T442))
U57_ag(T426, T436, T427, T8, T435, qs80_out_aa(T434, T442)) → U58_ag(T426, T436, T427, T8, p52_in_aaagg(.(T436, T435), X10, T442, T426, T8))
U58_ag(T426, T436, T427, T8, p52_out_aaagg(.(T436, T435), X10, T442, T426, T8)) → qs1_out_ag(.(T426, .(T436, T427)), T8)
qs1_in_ag(.(T452, []), T8) → U59_ag(T452, T8, qs155_in_a(X9))
qs155_in_a([]) → qs155_out_a([])
U59_ag(T452, T8, qs155_out_a(X9)) → qs1_out_ag(.(T452, []), T8)
qs1_in_ag(.(T452, []), T8) → U60_ag(T452, T8, qs155_in_a(T455))
U60_ag(T452, T8, qs155_out_a(T455)) → U61_ag(T452, T8, qs155_in_a(X10))
U61_ag(T452, T8, qs155_out_a(X10)) → qs1_out_ag(.(T452, []), T8)
U60_ag(T452, T8, qs155_out_a(T455)) → U62_ag(T452, T8, T455, qs155_in_a(T460))
U62_ag(T452, T8, T455, qs155_out_a(T460)) → U63_ag(T452, T8, app162_in_gagg(T455, T452, T460, T8))
app162_in_gagg(.(T486, T487), T491, T489, .(T486, T490)) → U36_gagg(T486, T487, T491, T489, T490, app162_in_gagg(T487, T491, T489, T490))
app162_in_gagg([], T501, T502, .(T501, T502)) → app162_out_gagg([], T501, T502, .(T501, T502))
U36_gagg(T486, T487, T491, T489, T490, app162_out_gagg(T487, T491, T489, T490)) → app162_out_gagg(.(T486, T487), T491, T489, .(T486, T490))
U63_ag(T452, T8, app162_out_gagg(T455, T452, T460, T8)) → qs1_out_ag(.(T452, []), T8)
qs1_in_ag([], []) → qs1_out_ag([], [])
Infinitary Constructor Rewriting Termination of PiTRS implies Termination of Prolog
qs1_in_ag(.(T26, .(T27, T28)), T8) → U44_ag(T26, T27, T28, T8, gt10_in_aa(T26, T27))
gt10_in_aa(s(T46), s(T47)) → U1_aa(T46, T47, gt10_in_aa(T46, T47))
gt10_in_aa(s(0), 0) → gt10_out_aa(s(0), 0)
U1_aa(T46, T47, gt10_out_aa(T46, T47)) → gt10_out_aa(s(T46), s(T47))
U44_ag(T26, T27, T28, T8, gt10_out_aa(T26, T27)) → qs1_out_ag(.(T26, .(T27, T28)), T8)
qs1_in_ag(.(T31, .(T33, T32)), T8) → U45_ag(T31, T33, T32, T8, gt10_in_aa(T31, T33))
U45_ag(T31, T33, T32, T8, gt10_out_aa(T31, T33)) → U46_ag(T31, T33, T32, T8, part20_in_gaaa(T31, T32, X47, X48))
part20_in_gaaa(T70, .(T73, T74), .(T73, X119), X120) → U2_gaaa(T70, T73, T74, X119, X120, gt10_in_ga(T70, T73))
gt10_in_ga(s(T46), s(T47)) → U1_ga(T46, T47, gt10_in_ga(T46, T47))
gt10_in_ga(s(0), 0) → gt10_out_ga(s(0), 0)
U1_ga(T46, T47, gt10_out_ga(T46, T47)) → gt10_out_ga(s(T46), s(T47))
U2_gaaa(T70, T73, T74, X119, X120, gt10_out_ga(T70, T73)) → part20_out_gaaa(T70, .(T73, T74), .(T73, X119), X120)
part20_in_gaaa(T70, .(T73, T77), .(T73, X119), X120) → U3_gaaa(T70, T73, T77, X119, X120, gt10_in_ga(T70, T73))
U3_gaaa(T70, T73, T77, X119, X120, gt10_out_ga(T70, T73)) → U4_gaaa(T70, T73, T77, X119, X120, part20_in_gaaa(T70, T77, X119, X120))
part20_in_gaaa(T95, .(T98, T99), X170, .(T98, X171)) → U5_gaaa(T95, T98, T99, X170, X171, le33_in_ga(T95, T98))
le33_in_ga(s(T113), s(T115)) → U8_ga(T113, T115, le33_in_ga(T113, T115))
le33_in_ga(0, s(T122)) → le33_out_ga(0, s(T122))
le33_in_ga(0, 0) → le33_out_ga(0, 0)
U8_ga(T113, T115, le33_out_ga(T113, T115)) → le33_out_ga(s(T113), s(T115))
U5_gaaa(T95, T98, T99, X170, X171, le33_out_ga(T95, T98)) → part20_out_gaaa(T95, .(T98, T99), X170, .(T98, X171))
part20_in_gaaa(T95, .(T98, T102), X170, .(T98, X171)) → U6_gaaa(T95, T98, T102, X170, X171, le33_in_ga(T95, T98))
U6_gaaa(T95, T98, T102, X170, X171, le33_out_ga(T95, T98)) → U7_gaaa(T95, T98, T102, X170, X171, part20_in_gaaa(T95, T102, X170, X171))
part20_in_gaaa(T128, [], [], []) → part20_out_gaaa(T128, [], [], [])
U7_gaaa(T95, T98, T102, X170, X171, part20_out_gaaa(T95, T102, X170, X171)) → part20_out_gaaa(T95, .(T98, T102), X170, .(T98, X171))
U4_gaaa(T70, T73, T77, X119, X120, part20_out_gaaa(T70, T77, X119, X120)) → part20_out_gaaa(T70, .(T73, T77), .(T73, X119), X120)
U46_ag(T31, T33, T32, T8, part20_out_gaaa(T31, T32, X47, X48)) → qs1_out_ag(.(T31, .(T33, T32)), T8)
U45_ag(T31, T33, T32, T8, gt10_out_aa(T31, T33)) → U47_ag(T31, T33, T32, T8, part20_in_gaaa(T31, T32, T53, T54))
U47_ag(T31, T33, T32, T8, part20_out_gaaa(T31, T32, T53, T54)) → U48_ag(T31, T33, T32, T8, qs51_in_gaa(T33, T53, X9))
qs51_in_gaa(T148, T149, X273) → U37_gaa(T148, T149, X273, p56_in_gaaaaaa(T148, T149, X269, X270, X271, X272, X273))
p56_in_gaaaaaa(T148, T149, X269, X270, X271, X272, X273) → U9_gaaaaaa(T148, T149, X269, X270, X271, X272, X273, part20_in_gaaa(T148, T149, X269, X270))
U9_gaaaaaa(T148, T149, X269, X270, X271, X272, X273, part20_out_gaaa(T148, T149, X269, X270)) → p56_out_gaaaaaa(T148, T149, X269, X270, X271, X272, X273)
p56_in_gaaaaaa(T148, T149, T153, T154, X271, X272, X273) → U10_gaaaaaa(T148, T149, T153, T154, X271, X272, X273, part20_in_gaaa(T148, T149, T153, T154))
U10_gaaaaaa(T148, T149, T153, T154, X271, X272, X273, part20_out_gaaa(T148, T149, T153, T154)) → U11_gaaaaaa(T148, T149, T153, T154, X271, X272, X273, qs59_in_aa(T153, X271))
qs59_in_aa(.(T171, T172), X335) → U19_aa(T171, T172, X335, p56_in_aaaaaaa(T171, T172, X331, X332, X333, X334, X335))
p56_in_aaaaaaa(T148, T149, X269, X270, X271, X272, X273) → U9_aaaaaaa(T148, T149, X269, X270, X271, X272, X273, part20_in_aaaa(T148, T149, X269, X270))
part20_in_aaaa(T70, .(T73, T74), .(T73, X119), X120) → U2_aaaa(T70, T73, T74, X119, X120, gt10_in_aa(T70, T73))
U2_aaaa(T70, T73, T74, X119, X120, gt10_out_aa(T70, T73)) → part20_out_aaaa(T70, .(T73, T74), .(T73, X119), X120)
part20_in_aaaa(T70, .(T73, T77), .(T73, X119), X120) → U3_aaaa(T70, T73, T77, X119, X120, gt10_in_aa(T70, T73))
U3_aaaa(T70, T73, T77, X119, X120, gt10_out_aa(T70, T73)) → U4_aaaa(T70, T73, T77, X119, X120, part20_in_gaaa(T70, T77, X119, X120))
U4_aaaa(T70, T73, T77, X119, X120, part20_out_gaaa(T70, T77, X119, X120)) → part20_out_aaaa(T70, .(T73, T77), .(T73, X119), X120)
part20_in_aaaa(T95, .(T98, T99), X170, .(T98, X171)) → U5_aaaa(T95, T98, T99, X170, X171, le33_in_aa(T95, T98))
le33_in_aa(s(T113), s(T115)) → U8_aa(T113, T115, le33_in_aa(T113, T115))
le33_in_aa(0, s(T122)) → le33_out_aa(0, s(T122))
le33_in_aa(0, 0) → le33_out_aa(0, 0)
U8_aa(T113, T115, le33_out_aa(T113, T115)) → le33_out_aa(s(T113), s(T115))
U5_aaaa(T95, T98, T99, X170, X171, le33_out_aa(T95, T98)) → part20_out_aaaa(T95, .(T98, T99), X170, .(T98, X171))
part20_in_aaaa(T95, .(T98, T102), X170, .(T98, X171)) → U6_aaaa(T95, T98, T102, X170, X171, le33_in_aa(T95, T98))
U6_aaaa(T95, T98, T102, X170, X171, le33_out_aa(T95, T98)) → U7_aaaa(T95, T98, T102, X170, X171, part20_in_gaaa(T95, T102, X170, X171))
U7_aaaa(T95, T98, T102, X170, X171, part20_out_gaaa(T95, T102, X170, X171)) → part20_out_aaaa(T95, .(T98, T102), X170, .(T98, X171))
part20_in_aaaa(T128, [], [], []) → part20_out_aaaa(T128, [], [], [])
U9_aaaaaaa(T148, T149, X269, X270, X271, X272, X273, part20_out_aaaa(T148, T149, X269, X270)) → p56_out_aaaaaaa(T148, T149, X269, X270, X271, X272, X273)
p56_in_aaaaaaa(T148, T149, T153, T154, X271, X272, X273) → U10_aaaaaaa(T148, T149, T153, T154, X271, X272, X273, part20_in_aaaa(T148, T149, T153, T154))
U10_aaaaaaa(T148, T149, T153, T154, X271, X272, X273, part20_out_aaaa(T148, T149, T153, T154)) → U11_aaaaaaa(T148, T149, T153, T154, X271, X272, X273, qs59_in_aa(T153, X271))
qs59_in_aa([], []) → qs59_out_aa([], [])
U11_aaaaaaa(T148, T149, T153, T154, X271, X272, X273, qs59_out_aa(T153, X271)) → p56_out_aaaaaaa(T148, T149, T153, T154, X271, X272, X273)
p56_in_aaaaaaa(T148, T149, T153, T154, T160, X272, X273) → U12_aaaaaaa(T148, T149, T153, T154, T160, X272, X273, part20_in_aaaa(T148, T149, T153, T154))
U12_aaaaaaa(T148, T149, T153, T154, T160, X272, X273, part20_out_aaaa(T148, T149, T153, T154)) → U13_aaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_in_aa(T153, T160))
U13_aaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_out_aa(T153, T160)) → U14_aaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_in_aa(T154, X272))
U14_aaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_out_aa(T154, X272)) → p56_out_aaaaaaa(T148, T149, T153, T154, T160, X272, X273)
p56_in_aaaaaaa(T148, T149, T153, T154, T160, T178, X273) → U15_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, part20_in_aaaa(T148, T149, T153, T154))
U15_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, part20_out_aaaa(T148, T149, T153, T154)) → U16_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_in_aa(T153, T160))
U16_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_out_aa(T153, T160)) → U17_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_in_aa(T154, T178))
U17_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_out_aa(T154, T178)) → U18_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, app70_in_aaaa(T160, T148, T178, X273))
app70_in_aaaa(.(T201, T202), T203, T204, .(T201, X391)) → U20_aaaa(T201, T202, T203, T204, X391, app70_in_aaaa(T202, T203, T204, X391))
app70_in_aaaa([], T213, T214, .(T213, T214)) → app70_out_aaaa([], T213, T214, .(T213, T214))
U20_aaaa(T201, T202, T203, T204, X391, app70_out_aaaa(T202, T203, T204, X391)) → app70_out_aaaa(.(T201, T202), T203, T204, .(T201, X391))
U18_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, app70_out_aaaa(T160, T148, T178, X273)) → p56_out_aaaaaaa(T148, T149, T153, T154, T160, T178, X273)
U19_aa(T171, T172, X335, p56_out_aaaaaaa(T171, T172, X331, X332, X333, X334, X335)) → qs59_out_aa(.(T171, T172), X335)
U11_gaaaaaa(T148, T149, T153, T154, X271, X272, X273, qs59_out_aa(T153, X271)) → p56_out_gaaaaaa(T148, T149, T153, T154, X271, X272, X273)
p56_in_gaaaaaa(T148, T149, T153, T154, T160, X272, X273) → U12_gaaaaaa(T148, T149, T153, T154, T160, X272, X273, part20_in_gaaa(T148, T149, T153, T154))
U12_gaaaaaa(T148, T149, T153, T154, T160, X272, X273, part20_out_gaaa(T148, T149, T153, T154)) → U13_gaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_in_aa(T153, T160))
U13_gaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_out_aa(T153, T160)) → U14_gaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_in_aa(T154, X272))
U14_gaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_out_aa(T154, X272)) → p56_out_gaaaaaa(T148, T149, T153, T154, T160, X272, X273)
p56_in_gaaaaaa(T148, T149, T153, T154, T160, T178, X273) → U15_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, part20_in_gaaa(T148, T149, T153, T154))
U15_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, part20_out_gaaa(T148, T149, T153, T154)) → U16_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_in_aa(T153, T160))
U16_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_out_aa(T153, T160)) → U17_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_in_aa(T154, T178))
U17_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_out_aa(T154, T178)) → U18_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, app70_in_agaa(T160, T148, T178, X273))
app70_in_agaa(.(T201, T202), T203, T204, .(T201, X391)) → U20_agaa(T201, T202, T203, T204, X391, app70_in_agaa(T202, T203, T204, X391))
app70_in_agaa([], T213, T214, .(T213, T214)) → app70_out_agaa([], T213, T214, .(T213, T214))
U20_agaa(T201, T202, T203, T204, X391, app70_out_agaa(T202, T203, T204, X391)) → app70_out_agaa(.(T201, T202), T203, T204, .(T201, X391))
U18_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, app70_out_agaa(T160, T148, T178, X273)) → p56_out_gaaaaaa(T148, T149, T153, T154, T160, T178, X273)
U37_gaa(T148, T149, X273, p56_out_gaaaaaa(T148, T149, X269, X270, X271, X272, X273)) → qs51_out_gaa(T148, T149, X273)
U48_ag(T31, T33, T32, T8, qs51_out_gaa(T33, T53, X9)) → qs1_out_ag(.(T31, .(T33, T32)), T8)
U47_ag(T31, T33, T32, T8, part20_out_gaaa(T31, T32, T53, T54)) → U49_ag(T31, T33, T32, T8, T54, qs51_in_gaa(T33, T53, T131))
U49_ag(T31, T33, T32, T8, T54, qs51_out_gaa(T33, T53, T131)) → U50_ag(T31, T33, T32, T8, p52_in_aaagg(T54, X10, T131, T31, T8))
p52_in_aaagg(T54, X10, T131, T31, T8) → U33_aaagg(T54, X10, T131, T31, T8, qs80_in_aa(T54, X10))
qs80_in_aa(.(T230, T231), X452) → U22_aa(T230, T231, X452, part87_in_aaaa(T230, T231, X448, X449))
part87_in_aaaa(T256, .(T257, T258), .(T257, X503), X504) → U38_aaaa(T256, T257, T258, X503, X504, gt10_in_aa(T256, T257))
U38_aaaa(T256, T257, T258, X503, X504, gt10_out_aa(T256, T257)) → part87_out_aaaa(T256, .(T257, T258), .(T257, X503), X504)
part87_in_aaaa(T261, .(T257, T262), .(T257, X503), X504) → U39_aaaa(T261, T257, T262, X503, X504, gt10_in_aa(T261, T257))
U39_aaaa(T261, T257, T262, X503, X504, gt10_out_aa(T261, T257)) → U40_aaaa(T261, T257, T262, X503, X504, part20_in_gaaa(T261, T262, X503, X504))
U40_aaaa(T261, T257, T262, X503, X504, part20_out_gaaa(T261, T262, X503, X504)) → part87_out_aaaa(T261, .(T257, T262), .(T257, X503), X504)
part87_in_aaaa(T283, .(T284, T285), X554, .(T284, X555)) → U41_aaaa(T283, T284, T285, X554, X555, le100_in_aa(T283, T284))
le100_in_aa(s(T302), s(T303)) → U21_aa(T302, T303, le100_in_aa(T302, T303))
le100_in_aa(0, s(T310)) → le100_out_aa(0, s(T310))
le100_in_aa(0, 0) → le100_out_aa(0, 0)
U21_aa(T302, T303, le100_out_aa(T302, T303)) → le100_out_aa(s(T302), s(T303))
U41_aaaa(T283, T284, T285, X554, X555, le100_out_aa(T283, T284)) → part87_out_aaaa(T283, .(T284, T285), X554, .(T284, X555))
part87_in_aaaa(T288, .(T284, T289), X554, .(T284, X555)) → U42_aaaa(T288, T284, T289, X554, X555, le100_in_aa(T288, T284))
U42_aaaa(T288, T284, T289, X554, X555, le100_out_aa(T288, T284)) → U43_aaaa(T288, T284, T289, X554, X555, part20_in_gaaa(T288, T289, X554, X555))
U43_aaaa(T288, T284, T289, X554, X555, part20_out_gaaa(T288, T289, X554, X555)) → part87_out_aaaa(T288, .(T284, T289), X554, .(T284, X555))
part87_in_aaaa(T316, [], [], []) → part87_out_aaaa(T316, [], [], [])
U22_aa(T230, T231, X452, part87_out_aaaa(T230, T231, X448, X449)) → qs80_out_aa(.(T230, T231), X452)
qs80_in_aa(.(T237, T231), X452) → U23_aa(T237, T231, X452, part87_in_aaaa(T237, T231, T235, T236))
U23_aa(T237, T231, X452, part87_out_aaaa(T237, T231, T235, T236)) → U24_aa(T237, T231, X452, qs80_in_aa(T235, X450))
qs80_in_aa(.(T325, T231), X452) → U27_aa(T325, T231, X452, part87_in_aaaa(T325, T231, T235, T236))
U27_aa(T325, T231, X452, part87_out_aaaa(T325, T231, T235, T236)) → U28_aa(T325, T231, X452, T236, qs80_in_aa(T235, T319))
qs80_in_aa([], []) → qs80_out_aa([], [])
U28_aa(T325, T231, X452, T236, qs80_out_aa(T235, T319)) → U29_aa(T325, T231, X452, T319, qs80_in_aa(T236, T324))
U29_aa(T325, T231, X452, T319, qs80_out_aa(T236, T324)) → U30_aa(T325, T231, X452, app121_in_aaaa(T319, T325, T324, X452))
app121_in_aaaa(.(T348, T349), T352, T353, .(T348, X657)) → U31_aaaa(T348, T349, T352, T353, X657, app121_in_aaaa(T349, T352, T353, X657))
app121_in_aaaa([], T362, T363, .(T362, T363)) → app121_out_aaaa([], T362, T363, .(T362, T363))
U31_aaaa(T348, T349, T352, T353, X657, app121_out_aaaa(T349, T352, T353, X657)) → app121_out_aaaa(.(T348, T349), T352, T353, .(T348, X657))
U30_aa(T325, T231, X452, app121_out_aaaa(T319, T325, T324, X452)) → qs80_out_aa(.(T325, T231), X452)
U24_aa(T237, T231, X452, qs80_out_aa(T235, X450)) → qs80_out_aa(.(T237, T231), X452)
U23_aa(T237, T231, X452, part87_out_aaaa(T237, T231, T235, T236)) → U25_aa(T237, T231, X452, T236, qs80_in_aa(T235, T319))
U25_aa(T237, T231, X452, T236, qs80_out_aa(T235, T319)) → U26_aa(T237, T231, X452, qs80_in_aa(T236, X451))
U26_aa(T237, T231, X452, qs80_out_aa(T236, X451)) → qs80_out_aa(.(T237, T231), X452)
U33_aaagg(T54, X10, T131, T31, T8, qs80_out_aa(T54, X10)) → p52_out_aaagg(T54, X10, T131, T31, T8)
p52_in_aaagg(T54, T217, T131, T31, T8) → U34_aaagg(T54, T217, T131, T31, T8, qs80_in_aa(T54, T217))
U34_aaagg(T54, T217, T131, T31, T8, qs80_out_aa(T54, T217)) → U35_aaagg(T54, T217, T131, T31, T8, app81_in_agag(T131, T31, T217, T8))
app81_in_agag(.(T389, T390), T391, T394, .(T389, T393)) → U32_agag(T389, T390, T391, T394, T393, app81_in_agag(T390, T391, T394, T393))
app81_in_agag([], T404, T405, .(T404, T405)) → app81_out_agag([], T404, T405, .(T404, T405))
U32_agag(T389, T390, T391, T394, T393, app81_out_agag(T390, T391, T394, T393)) → app81_out_agag(.(T389, T390), T391, T394, .(T389, T393))
U35_aaagg(T54, T217, T131, T31, T8, app81_out_agag(T131, T31, T217, T8)) → p52_out_aaagg(T54, T217, T131, T31, T8)
U50_ag(T31, T33, T32, T8, p52_out_aaagg(T54, X10, T131, T31, T8)) → qs1_out_ag(.(T31, .(T33, T32)), T8)
qs1_in_ag(.(T421, .(T422, T423)), T8) → U51_ag(T421, T422, T423, T8, le100_in_aa(T421, T422))
U51_ag(T421, T422, T423, T8, le100_out_aa(T421, T422)) → qs1_out_ag(.(T421, .(T422, T423)), T8)
qs1_in_ag(.(T426, .(T428, T427)), T8) → U52_ag(T426, T428, T427, T8, le100_in_aa(T426, T428))
U52_ag(T426, T428, T427, T8, le100_out_aa(T426, T428)) → U53_ag(T426, T428, T427, T8, part20_in_gaaa(T426, T427, X740, X741))
U53_ag(T426, T428, T427, T8, part20_out_gaaa(T426, T427, X740, X741)) → qs1_out_ag(.(T426, .(T428, T427)), T8)
qs1_in_ag(.(T426, .(T436, T427)), T8) → U54_ag(T426, T436, T427, T8, le100_in_aa(T426, T436))
U54_ag(T426, T436, T427, T8, le100_out_aa(T426, T436)) → U55_ag(T426, T436, T427, T8, part20_in_gaaa(T426, T427, T434, T435))
U55_ag(T426, T436, T427, T8, part20_out_gaaa(T426, T427, T434, T435)) → U56_ag(T426, T436, T427, T8, qs80_in_aa(T434, X9))
U56_ag(T426, T436, T427, T8, qs80_out_aa(T434, X9)) → qs1_out_ag(.(T426, .(T436, T427)), T8)
U55_ag(T426, T436, T427, T8, part20_out_gaaa(T426, T427, T434, T435)) → U57_ag(T426, T436, T427, T8, T435, qs80_in_aa(T434, T442))
U57_ag(T426, T436, T427, T8, T435, qs80_out_aa(T434, T442)) → U58_ag(T426, T436, T427, T8, p52_in_aaagg(.(T436, T435), X10, T442, T426, T8))
U58_ag(T426, T436, T427, T8, p52_out_aaagg(.(T436, T435), X10, T442, T426, T8)) → qs1_out_ag(.(T426, .(T436, T427)), T8)
qs1_in_ag(.(T452, []), T8) → U59_ag(T452, T8, qs155_in_a(X9))
qs155_in_a([]) → qs155_out_a([])
U59_ag(T452, T8, qs155_out_a(X9)) → qs1_out_ag(.(T452, []), T8)
qs1_in_ag(.(T452, []), T8) → U60_ag(T452, T8, qs155_in_a(T455))
U60_ag(T452, T8, qs155_out_a(T455)) → U61_ag(T452, T8, qs155_in_a(X10))
U61_ag(T452, T8, qs155_out_a(X10)) → qs1_out_ag(.(T452, []), T8)
U60_ag(T452, T8, qs155_out_a(T455)) → U62_ag(T452, T8, T455, qs155_in_a(T460))
U62_ag(T452, T8, T455, qs155_out_a(T460)) → U63_ag(T452, T8, app162_in_gagg(T455, T452, T460, T8))
app162_in_gagg(.(T486, T487), T491, T489, .(T486, T490)) → U36_gagg(T486, T487, T491, T489, T490, app162_in_gagg(T487, T491, T489, T490))
app162_in_gagg([], T501, T502, .(T501, T502)) → app162_out_gagg([], T501, T502, .(T501, T502))
U36_gagg(T486, T487, T491, T489, T490, app162_out_gagg(T487, T491, T489, T490)) → app162_out_gagg(.(T486, T487), T491, T489, .(T486, T490))
U63_ag(T452, T8, app162_out_gagg(T455, T452, T460, T8)) → qs1_out_ag(.(T452, []), T8)
qs1_in_ag([], []) → qs1_out_ag([], [])
QS1_IN_AG(.(T26, .(T27, T28)), T8) → U44_AG(T26, T27, T28, T8, gt10_in_aa(T26, T27))
QS1_IN_AG(.(T26, .(T27, T28)), T8) → GT10_IN_AA(T26, T27)
GT10_IN_AA(s(T46), s(T47)) → U1_AA(T46, T47, gt10_in_aa(T46, T47))
GT10_IN_AA(s(T46), s(T47)) → GT10_IN_AA(T46, T47)
QS1_IN_AG(.(T31, .(T33, T32)), T8) → U45_AG(T31, T33, T32, T8, gt10_in_aa(T31, T33))
U45_AG(T31, T33, T32, T8, gt10_out_aa(T31, T33)) → U46_AG(T31, T33, T32, T8, part20_in_gaaa(T31, T32, X47, X48))
U45_AG(T31, T33, T32, T8, gt10_out_aa(T31, T33)) → PART20_IN_GAAA(T31, T32, X47, X48)
PART20_IN_GAAA(T70, .(T73, T74), .(T73, X119), X120) → U2_GAAA(T70, T73, T74, X119, X120, gt10_in_ga(T70, T73))
PART20_IN_GAAA(T70, .(T73, T74), .(T73, X119), X120) → GT10_IN_GA(T70, T73)
GT10_IN_GA(s(T46), s(T47)) → U1_GA(T46, T47, gt10_in_ga(T46, T47))
GT10_IN_GA(s(T46), s(T47)) → GT10_IN_GA(T46, T47)
PART20_IN_GAAA(T70, .(T73, T77), .(T73, X119), X120) → U3_GAAA(T70, T73, T77, X119, X120, gt10_in_ga(T70, T73))
U3_GAAA(T70, T73, T77, X119, X120, gt10_out_ga(T70, T73)) → U4_GAAA(T70, T73, T77, X119, X120, part20_in_gaaa(T70, T77, X119, X120))
U3_GAAA(T70, T73, T77, X119, X120, gt10_out_ga(T70, T73)) → PART20_IN_GAAA(T70, T77, X119, X120)
PART20_IN_GAAA(T95, .(T98, T99), X170, .(T98, X171)) → U5_GAAA(T95, T98, T99, X170, X171, le33_in_ga(T95, T98))
PART20_IN_GAAA(T95, .(T98, T99), X170, .(T98, X171)) → LE33_IN_GA(T95, T98)
LE33_IN_GA(s(T113), s(T115)) → U8_GA(T113, T115, le33_in_ga(T113, T115))
LE33_IN_GA(s(T113), s(T115)) → LE33_IN_GA(T113, T115)
PART20_IN_GAAA(T95, .(T98, T102), X170, .(T98, X171)) → U6_GAAA(T95, T98, T102, X170, X171, le33_in_ga(T95, T98))
U6_GAAA(T95, T98, T102, X170, X171, le33_out_ga(T95, T98)) → U7_GAAA(T95, T98, T102, X170, X171, part20_in_gaaa(T95, T102, X170, X171))
U6_GAAA(T95, T98, T102, X170, X171, le33_out_ga(T95, T98)) → PART20_IN_GAAA(T95, T102, X170, X171)
U45_AG(T31, T33, T32, T8, gt10_out_aa(T31, T33)) → U47_AG(T31, T33, T32, T8, part20_in_gaaa(T31, T32, T53, T54))
U47_AG(T31, T33, T32, T8, part20_out_gaaa(T31, T32, T53, T54)) → U48_AG(T31, T33, T32, T8, qs51_in_gaa(T33, T53, X9))
U47_AG(T31, T33, T32, T8, part20_out_gaaa(T31, T32, T53, T54)) → QS51_IN_GAA(T33, T53, X9)
QS51_IN_GAA(T148, T149, X273) → U37_GAA(T148, T149, X273, p56_in_gaaaaaa(T148, T149, X269, X270, X271, X272, X273))
QS51_IN_GAA(T148, T149, X273) → P56_IN_GAAAAAA(T148, T149, X269, X270, X271, X272, X273)
P56_IN_GAAAAAA(T148, T149, X269, X270, X271, X272, X273) → U9_GAAAAAA(T148, T149, X269, X270, X271, X272, X273, part20_in_gaaa(T148, T149, X269, X270))
P56_IN_GAAAAAA(T148, T149, X269, X270, X271, X272, X273) → PART20_IN_GAAA(T148, T149, X269, X270)
P56_IN_GAAAAAA(T148, T149, T153, T154, X271, X272, X273) → U10_GAAAAAA(T148, T149, T153, T154, X271, X272, X273, part20_in_gaaa(T148, T149, T153, T154))
U10_GAAAAAA(T148, T149, T153, T154, X271, X272, X273, part20_out_gaaa(T148, T149, T153, T154)) → U11_GAAAAAA(T148, T149, T153, T154, X271, X272, X273, qs59_in_aa(T153, X271))
U10_GAAAAAA(T148, T149, T153, T154, X271, X272, X273, part20_out_gaaa(T148, T149, T153, T154)) → QS59_IN_AA(T153, X271)
QS59_IN_AA(.(T171, T172), X335) → U19_AA(T171, T172, X335, p56_in_aaaaaaa(T171, T172, X331, X332, X333, X334, X335))
QS59_IN_AA(.(T171, T172), X335) → P56_IN_AAAAAAA(T171, T172, X331, X332, X333, X334, X335)
P56_IN_AAAAAAA(T148, T149, X269, X270, X271, X272, X273) → U9_AAAAAAA(T148, T149, X269, X270, X271, X272, X273, part20_in_aaaa(T148, T149, X269, X270))
P56_IN_AAAAAAA(T148, T149, X269, X270, X271, X272, X273) → PART20_IN_AAAA(T148, T149, X269, X270)
PART20_IN_AAAA(T70, .(T73, T74), .(T73, X119), X120) → U2_AAAA(T70, T73, T74, X119, X120, gt10_in_aa(T70, T73))
PART20_IN_AAAA(T70, .(T73, T74), .(T73, X119), X120) → GT10_IN_AA(T70, T73)
PART20_IN_AAAA(T70, .(T73, T77), .(T73, X119), X120) → U3_AAAA(T70, T73, T77, X119, X120, gt10_in_aa(T70, T73))
U3_AAAA(T70, T73, T77, X119, X120, gt10_out_aa(T70, T73)) → U4_AAAA(T70, T73, T77, X119, X120, part20_in_gaaa(T70, T77, X119, X120))
U3_AAAA(T70, T73, T77, X119, X120, gt10_out_aa(T70, T73)) → PART20_IN_GAAA(T70, T77, X119, X120)
PART20_IN_AAAA(T95, .(T98, T99), X170, .(T98, X171)) → U5_AAAA(T95, T98, T99, X170, X171, le33_in_aa(T95, T98))
PART20_IN_AAAA(T95, .(T98, T99), X170, .(T98, X171)) → LE33_IN_AA(T95, T98)
LE33_IN_AA(s(T113), s(T115)) → U8_AA(T113, T115, le33_in_aa(T113, T115))
LE33_IN_AA(s(T113), s(T115)) → LE33_IN_AA(T113, T115)
PART20_IN_AAAA(T95, .(T98, T102), X170, .(T98, X171)) → U6_AAAA(T95, T98, T102, X170, X171, le33_in_aa(T95, T98))
U6_AAAA(T95, T98, T102, X170, X171, le33_out_aa(T95, T98)) → U7_AAAA(T95, T98, T102, X170, X171, part20_in_gaaa(T95, T102, X170, X171))
U6_AAAA(T95, T98, T102, X170, X171, le33_out_aa(T95, T98)) → PART20_IN_GAAA(T95, T102, X170, X171)
P56_IN_AAAAAAA(T148, T149, T153, T154, X271, X272, X273) → U10_AAAAAAA(T148, T149, T153, T154, X271, X272, X273, part20_in_aaaa(T148, T149, T153, T154))
U10_AAAAAAA(T148, T149, T153, T154, X271, X272, X273, part20_out_aaaa(T148, T149, T153, T154)) → U11_AAAAAAA(T148, T149, T153, T154, X271, X272, X273, qs59_in_aa(T153, X271))
U10_AAAAAAA(T148, T149, T153, T154, X271, X272, X273, part20_out_aaaa(T148, T149, T153, T154)) → QS59_IN_AA(T153, X271)
P56_IN_AAAAAAA(T148, T149, T153, T154, T160, X272, X273) → U12_AAAAAAA(T148, T149, T153, T154, T160, X272, X273, part20_in_aaaa(T148, T149, T153, T154))
U12_AAAAAAA(T148, T149, T153, T154, T160, X272, X273, part20_out_aaaa(T148, T149, T153, T154)) → U13_AAAAAAA(T148, T149, T153, T154, T160, X272, X273, qs59_in_aa(T153, T160))
U12_AAAAAAA(T148, T149, T153, T154, T160, X272, X273, part20_out_aaaa(T148, T149, T153, T154)) → QS59_IN_AA(T153, T160)
U13_AAAAAAA(T148, T149, T153, T154, T160, X272, X273, qs59_out_aa(T153, T160)) → U14_AAAAAAA(T148, T149, T153, T154, T160, X272, X273, qs59_in_aa(T154, X272))
U13_AAAAAAA(T148, T149, T153, T154, T160, X272, X273, qs59_out_aa(T153, T160)) → QS59_IN_AA(T154, X272)
P56_IN_AAAAAAA(T148, T149, T153, T154, T160, T178, X273) → U15_AAAAAAA(T148, T149, T153, T154, T160, T178, X273, part20_in_aaaa(T148, T149, T153, T154))
U15_AAAAAAA(T148, T149, T153, T154, T160, T178, X273, part20_out_aaaa(T148, T149, T153, T154)) → U16_AAAAAAA(T148, T149, T153, T154, T160, T178, X273, qs59_in_aa(T153, T160))
U15_AAAAAAA(T148, T149, T153, T154, T160, T178, X273, part20_out_aaaa(T148, T149, T153, T154)) → QS59_IN_AA(T153, T160)
U16_AAAAAAA(T148, T149, T153, T154, T160, T178, X273, qs59_out_aa(T153, T160)) → U17_AAAAAAA(T148, T149, T153, T154, T160, T178, X273, qs59_in_aa(T154, T178))
U16_AAAAAAA(T148, T149, T153, T154, T160, T178, X273, qs59_out_aa(T153, T160)) → QS59_IN_AA(T154, T178)
U17_AAAAAAA(T148, T149, T153, T154, T160, T178, X273, qs59_out_aa(T154, T178)) → U18_AAAAAAA(T148, T149, T153, T154, T160, T178, X273, app70_in_aaaa(T160, T148, T178, X273))
U17_AAAAAAA(T148, T149, T153, T154, T160, T178, X273, qs59_out_aa(T154, T178)) → APP70_IN_AAAA(T160, T148, T178, X273)
APP70_IN_AAAA(.(T201, T202), T203, T204, .(T201, X391)) → U20_AAAA(T201, T202, T203, T204, X391, app70_in_aaaa(T202, T203, T204, X391))
APP70_IN_AAAA(.(T201, T202), T203, T204, .(T201, X391)) → APP70_IN_AAAA(T202, T203, T204, X391)
P56_IN_GAAAAAA(T148, T149, T153, T154, T160, X272, X273) → U12_GAAAAAA(T148, T149, T153, T154, T160, X272, X273, part20_in_gaaa(T148, T149, T153, T154))
U12_GAAAAAA(T148, T149, T153, T154, T160, X272, X273, part20_out_gaaa(T148, T149, T153, T154)) → U13_GAAAAAA(T148, T149, T153, T154, T160, X272, X273, qs59_in_aa(T153, T160))
U12_GAAAAAA(T148, T149, T153, T154, T160, X272, X273, part20_out_gaaa(T148, T149, T153, T154)) → QS59_IN_AA(T153, T160)
U13_GAAAAAA(T148, T149, T153, T154, T160, X272, X273, qs59_out_aa(T153, T160)) → U14_GAAAAAA(T148, T149, T153, T154, T160, X272, X273, qs59_in_aa(T154, X272))
U13_GAAAAAA(T148, T149, T153, T154, T160, X272, X273, qs59_out_aa(T153, T160)) → QS59_IN_AA(T154, X272)
P56_IN_GAAAAAA(T148, T149, T153, T154, T160, T178, X273) → U15_GAAAAAA(T148, T149, T153, T154, T160, T178, X273, part20_in_gaaa(T148, T149, T153, T154))
U15_GAAAAAA(T148, T149, T153, T154, T160, T178, X273, part20_out_gaaa(T148, T149, T153, T154)) → U16_GAAAAAA(T148, T149, T153, T154, T160, T178, X273, qs59_in_aa(T153, T160))
U15_GAAAAAA(T148, T149, T153, T154, T160, T178, X273, part20_out_gaaa(T148, T149, T153, T154)) → QS59_IN_AA(T153, T160)
U16_GAAAAAA(T148, T149, T153, T154, T160, T178, X273, qs59_out_aa(T153, T160)) → U17_GAAAAAA(T148, T149, T153, T154, T160, T178, X273, qs59_in_aa(T154, T178))
U16_GAAAAAA(T148, T149, T153, T154, T160, T178, X273, qs59_out_aa(T153, T160)) → QS59_IN_AA(T154, T178)
U17_GAAAAAA(T148, T149, T153, T154, T160, T178, X273, qs59_out_aa(T154, T178)) → U18_GAAAAAA(T148, T149, T153, T154, T160, T178, X273, app70_in_agaa(T160, T148, T178, X273))
U17_GAAAAAA(T148, T149, T153, T154, T160, T178, X273, qs59_out_aa(T154, T178)) → APP70_IN_AGAA(T160, T148, T178, X273)
APP70_IN_AGAA(.(T201, T202), T203, T204, .(T201, X391)) → U20_AGAA(T201, T202, T203, T204, X391, app70_in_agaa(T202, T203, T204, X391))
APP70_IN_AGAA(.(T201, T202), T203, T204, .(T201, X391)) → APP70_IN_AGAA(T202, T203, T204, X391)
U47_AG(T31, T33, T32, T8, part20_out_gaaa(T31, T32, T53, T54)) → U49_AG(T31, T33, T32, T8, T54, qs51_in_gaa(T33, T53, T131))
U49_AG(T31, T33, T32, T8, T54, qs51_out_gaa(T33, T53, T131)) → U50_AG(T31, T33, T32, T8, p52_in_aaagg(T54, X10, T131, T31, T8))
U49_AG(T31, T33, T32, T8, T54, qs51_out_gaa(T33, T53, T131)) → P52_IN_AAAGG(T54, X10, T131, T31, T8)
P52_IN_AAAGG(T54, X10, T131, T31, T8) → U33_AAAGG(T54, X10, T131, T31, T8, qs80_in_aa(T54, X10))
P52_IN_AAAGG(T54, X10, T131, T31, T8) → QS80_IN_AA(T54, X10)
QS80_IN_AA(.(T230, T231), X452) → U22_AA(T230, T231, X452, part87_in_aaaa(T230, T231, X448, X449))
QS80_IN_AA(.(T230, T231), X452) → PART87_IN_AAAA(T230, T231, X448, X449)
PART87_IN_AAAA(T256, .(T257, T258), .(T257, X503), X504) → U38_AAAA(T256, T257, T258, X503, X504, gt10_in_aa(T256, T257))
PART87_IN_AAAA(T256, .(T257, T258), .(T257, X503), X504) → GT10_IN_AA(T256, T257)
PART87_IN_AAAA(T261, .(T257, T262), .(T257, X503), X504) → U39_AAAA(T261, T257, T262, X503, X504, gt10_in_aa(T261, T257))
U39_AAAA(T261, T257, T262, X503, X504, gt10_out_aa(T261, T257)) → U40_AAAA(T261, T257, T262, X503, X504, part20_in_gaaa(T261, T262, X503, X504))
U39_AAAA(T261, T257, T262, X503, X504, gt10_out_aa(T261, T257)) → PART20_IN_GAAA(T261, T262, X503, X504)
PART87_IN_AAAA(T283, .(T284, T285), X554, .(T284, X555)) → U41_AAAA(T283, T284, T285, X554, X555, le100_in_aa(T283, T284))
PART87_IN_AAAA(T283, .(T284, T285), X554, .(T284, X555)) → LE100_IN_AA(T283, T284)
LE100_IN_AA(s(T302), s(T303)) → U21_AA(T302, T303, le100_in_aa(T302, T303))
LE100_IN_AA(s(T302), s(T303)) → LE100_IN_AA(T302, T303)
PART87_IN_AAAA(T288, .(T284, T289), X554, .(T284, X555)) → U42_AAAA(T288, T284, T289, X554, X555, le100_in_aa(T288, T284))
U42_AAAA(T288, T284, T289, X554, X555, le100_out_aa(T288, T284)) → U43_AAAA(T288, T284, T289, X554, X555, part20_in_gaaa(T288, T289, X554, X555))
U42_AAAA(T288, T284, T289, X554, X555, le100_out_aa(T288, T284)) → PART20_IN_GAAA(T288, T289, X554, X555)
QS80_IN_AA(.(T237, T231), X452) → U23_AA(T237, T231, X452, part87_in_aaaa(T237, T231, T235, T236))
U23_AA(T237, T231, X452, part87_out_aaaa(T237, T231, T235, T236)) → U24_AA(T237, T231, X452, qs80_in_aa(T235, X450))
U23_AA(T237, T231, X452, part87_out_aaaa(T237, T231, T235, T236)) → QS80_IN_AA(T235, X450)
QS80_IN_AA(.(T325, T231), X452) → U27_AA(T325, T231, X452, part87_in_aaaa(T325, T231, T235, T236))
U27_AA(T325, T231, X452, part87_out_aaaa(T325, T231, T235, T236)) → U28_AA(T325, T231, X452, T236, qs80_in_aa(T235, T319))
U27_AA(T325, T231, X452, part87_out_aaaa(T325, T231, T235, T236)) → QS80_IN_AA(T235, T319)
U28_AA(T325, T231, X452, T236, qs80_out_aa(T235, T319)) → U29_AA(T325, T231, X452, T319, qs80_in_aa(T236, T324))
U28_AA(T325, T231, X452, T236, qs80_out_aa(T235, T319)) → QS80_IN_AA(T236, T324)
U29_AA(T325, T231, X452, T319, qs80_out_aa(T236, T324)) → U30_AA(T325, T231, X452, app121_in_aaaa(T319, T325, T324, X452))
U29_AA(T325, T231, X452, T319, qs80_out_aa(T236, T324)) → APP121_IN_AAAA(T319, T325, T324, X452)
APP121_IN_AAAA(.(T348, T349), T352, T353, .(T348, X657)) → U31_AAAA(T348, T349, T352, T353, X657, app121_in_aaaa(T349, T352, T353, X657))
APP121_IN_AAAA(.(T348, T349), T352, T353, .(T348, X657)) → APP121_IN_AAAA(T349, T352, T353, X657)
U23_AA(T237, T231, X452, part87_out_aaaa(T237, T231, T235, T236)) → U25_AA(T237, T231, X452, T236, qs80_in_aa(T235, T319))
U25_AA(T237, T231, X452, T236, qs80_out_aa(T235, T319)) → U26_AA(T237, T231, X452, qs80_in_aa(T236, X451))
U25_AA(T237, T231, X452, T236, qs80_out_aa(T235, T319)) → QS80_IN_AA(T236, X451)
P52_IN_AAAGG(T54, T217, T131, T31, T8) → U34_AAAGG(T54, T217, T131, T31, T8, qs80_in_aa(T54, T217))
U34_AAAGG(T54, T217, T131, T31, T8, qs80_out_aa(T54, T217)) → U35_AAAGG(T54, T217, T131, T31, T8, app81_in_agag(T131, T31, T217, T8))
U34_AAAGG(T54, T217, T131, T31, T8, qs80_out_aa(T54, T217)) → APP81_IN_AGAG(T131, T31, T217, T8)
APP81_IN_AGAG(.(T389, T390), T391, T394, .(T389, T393)) → U32_AGAG(T389, T390, T391, T394, T393, app81_in_agag(T390, T391, T394, T393))
APP81_IN_AGAG(.(T389, T390), T391, T394, .(T389, T393)) → APP81_IN_AGAG(T390, T391, T394, T393)
QS1_IN_AG(.(T421, .(T422, T423)), T8) → U51_AG(T421, T422, T423, T8, le100_in_aa(T421, T422))
QS1_IN_AG(.(T421, .(T422, T423)), T8) → LE100_IN_AA(T421, T422)
QS1_IN_AG(.(T426, .(T428, T427)), T8) → U52_AG(T426, T428, T427, T8, le100_in_aa(T426, T428))
U52_AG(T426, T428, T427, T8, le100_out_aa(T426, T428)) → U53_AG(T426, T428, T427, T8, part20_in_gaaa(T426, T427, X740, X741))
U52_AG(T426, T428, T427, T8, le100_out_aa(T426, T428)) → PART20_IN_GAAA(T426, T427, X740, X741)
QS1_IN_AG(.(T426, .(T436, T427)), T8) → U54_AG(T426, T436, T427, T8, le100_in_aa(T426, T436))
U54_AG(T426, T436, T427, T8, le100_out_aa(T426, T436)) → U55_AG(T426, T436, T427, T8, part20_in_gaaa(T426, T427, T434, T435))
U54_AG(T426, T436, T427, T8, le100_out_aa(T426, T436)) → PART20_IN_GAAA(T426, T427, T434, T435)
U55_AG(T426, T436, T427, T8, part20_out_gaaa(T426, T427, T434, T435)) → U56_AG(T426, T436, T427, T8, qs80_in_aa(T434, X9))
U55_AG(T426, T436, T427, T8, part20_out_gaaa(T426, T427, T434, T435)) → QS80_IN_AA(T434, X9)
U55_AG(T426, T436, T427, T8, part20_out_gaaa(T426, T427, T434, T435)) → U57_AG(T426, T436, T427, T8, T435, qs80_in_aa(T434, T442))
U57_AG(T426, T436, T427, T8, T435, qs80_out_aa(T434, T442)) → U58_AG(T426, T436, T427, T8, p52_in_aaagg(.(T436, T435), X10, T442, T426, T8))
U57_AG(T426, T436, T427, T8, T435, qs80_out_aa(T434, T442)) → P52_IN_AAAGG(.(T436, T435), X10, T442, T426, T8)
QS1_IN_AG(.(T452, []), T8) → U59_AG(T452, T8, qs155_in_a(X9))
QS1_IN_AG(.(T452, []), T8) → QS155_IN_A(X9)
QS1_IN_AG(.(T452, []), T8) → U60_AG(T452, T8, qs155_in_a(T455))
U60_AG(T452, T8, qs155_out_a(T455)) → U61_AG(T452, T8, qs155_in_a(X10))
U60_AG(T452, T8, qs155_out_a(T455)) → QS155_IN_A(X10)
U60_AG(T452, T8, qs155_out_a(T455)) → U62_AG(T452, T8, T455, qs155_in_a(T460))
U62_AG(T452, T8, T455, qs155_out_a(T460)) → U63_AG(T452, T8, app162_in_gagg(T455, T452, T460, T8))
U62_AG(T452, T8, T455, qs155_out_a(T460)) → APP162_IN_GAGG(T455, T452, T460, T8)
APP162_IN_GAGG(.(T486, T487), T491, T489, .(T486, T490)) → U36_GAGG(T486, T487, T491, T489, T490, app162_in_gagg(T487, T491, T489, T490))
APP162_IN_GAGG(.(T486, T487), T491, T489, .(T486, T490)) → APP162_IN_GAGG(T487, T491, T489, T490)
qs1_in_ag(.(T26, .(T27, T28)), T8) → U44_ag(T26, T27, T28, T8, gt10_in_aa(T26, T27))
gt10_in_aa(s(T46), s(T47)) → U1_aa(T46, T47, gt10_in_aa(T46, T47))
gt10_in_aa(s(0), 0) → gt10_out_aa(s(0), 0)
U1_aa(T46, T47, gt10_out_aa(T46, T47)) → gt10_out_aa(s(T46), s(T47))
U44_ag(T26, T27, T28, T8, gt10_out_aa(T26, T27)) → qs1_out_ag(.(T26, .(T27, T28)), T8)
qs1_in_ag(.(T31, .(T33, T32)), T8) → U45_ag(T31, T33, T32, T8, gt10_in_aa(T31, T33))
U45_ag(T31, T33, T32, T8, gt10_out_aa(T31, T33)) → U46_ag(T31, T33, T32, T8, part20_in_gaaa(T31, T32, X47, X48))
part20_in_gaaa(T70, .(T73, T74), .(T73, X119), X120) → U2_gaaa(T70, T73, T74, X119, X120, gt10_in_ga(T70, T73))
gt10_in_ga(s(T46), s(T47)) → U1_ga(T46, T47, gt10_in_ga(T46, T47))
gt10_in_ga(s(0), 0) → gt10_out_ga(s(0), 0)
U1_ga(T46, T47, gt10_out_ga(T46, T47)) → gt10_out_ga(s(T46), s(T47))
U2_gaaa(T70, T73, T74, X119, X120, gt10_out_ga(T70, T73)) → part20_out_gaaa(T70, .(T73, T74), .(T73, X119), X120)
part20_in_gaaa(T70, .(T73, T77), .(T73, X119), X120) → U3_gaaa(T70, T73, T77, X119, X120, gt10_in_ga(T70, T73))
U3_gaaa(T70, T73, T77, X119, X120, gt10_out_ga(T70, T73)) → U4_gaaa(T70, T73, T77, X119, X120, part20_in_gaaa(T70, T77, X119, X120))
part20_in_gaaa(T95, .(T98, T99), X170, .(T98, X171)) → U5_gaaa(T95, T98, T99, X170, X171, le33_in_ga(T95, T98))
le33_in_ga(s(T113), s(T115)) → U8_ga(T113, T115, le33_in_ga(T113, T115))
le33_in_ga(0, s(T122)) → le33_out_ga(0, s(T122))
le33_in_ga(0, 0) → le33_out_ga(0, 0)
U8_ga(T113, T115, le33_out_ga(T113, T115)) → le33_out_ga(s(T113), s(T115))
U5_gaaa(T95, T98, T99, X170, X171, le33_out_ga(T95, T98)) → part20_out_gaaa(T95, .(T98, T99), X170, .(T98, X171))
part20_in_gaaa(T95, .(T98, T102), X170, .(T98, X171)) → U6_gaaa(T95, T98, T102, X170, X171, le33_in_ga(T95, T98))
U6_gaaa(T95, T98, T102, X170, X171, le33_out_ga(T95, T98)) → U7_gaaa(T95, T98, T102, X170, X171, part20_in_gaaa(T95, T102, X170, X171))
part20_in_gaaa(T128, [], [], []) → part20_out_gaaa(T128, [], [], [])
U7_gaaa(T95, T98, T102, X170, X171, part20_out_gaaa(T95, T102, X170, X171)) → part20_out_gaaa(T95, .(T98, T102), X170, .(T98, X171))
U4_gaaa(T70, T73, T77, X119, X120, part20_out_gaaa(T70, T77, X119, X120)) → part20_out_gaaa(T70, .(T73, T77), .(T73, X119), X120)
U46_ag(T31, T33, T32, T8, part20_out_gaaa(T31, T32, X47, X48)) → qs1_out_ag(.(T31, .(T33, T32)), T8)
U45_ag(T31, T33, T32, T8, gt10_out_aa(T31, T33)) → U47_ag(T31, T33, T32, T8, part20_in_gaaa(T31, T32, T53, T54))
U47_ag(T31, T33, T32, T8, part20_out_gaaa(T31, T32, T53, T54)) → U48_ag(T31, T33, T32, T8, qs51_in_gaa(T33, T53, X9))
qs51_in_gaa(T148, T149, X273) → U37_gaa(T148, T149, X273, p56_in_gaaaaaa(T148, T149, X269, X270, X271, X272, X273))
p56_in_gaaaaaa(T148, T149, X269, X270, X271, X272, X273) → U9_gaaaaaa(T148, T149, X269, X270, X271, X272, X273, part20_in_gaaa(T148, T149, X269, X270))
U9_gaaaaaa(T148, T149, X269, X270, X271, X272, X273, part20_out_gaaa(T148, T149, X269, X270)) → p56_out_gaaaaaa(T148, T149, X269, X270, X271, X272, X273)
p56_in_gaaaaaa(T148, T149, T153, T154, X271, X272, X273) → U10_gaaaaaa(T148, T149, T153, T154, X271, X272, X273, part20_in_gaaa(T148, T149, T153, T154))
U10_gaaaaaa(T148, T149, T153, T154, X271, X272, X273, part20_out_gaaa(T148, T149, T153, T154)) → U11_gaaaaaa(T148, T149, T153, T154, X271, X272, X273, qs59_in_aa(T153, X271))
qs59_in_aa(.(T171, T172), X335) → U19_aa(T171, T172, X335, p56_in_aaaaaaa(T171, T172, X331, X332, X333, X334, X335))
p56_in_aaaaaaa(T148, T149, X269, X270, X271, X272, X273) → U9_aaaaaaa(T148, T149, X269, X270, X271, X272, X273, part20_in_aaaa(T148, T149, X269, X270))
part20_in_aaaa(T70, .(T73, T74), .(T73, X119), X120) → U2_aaaa(T70, T73, T74, X119, X120, gt10_in_aa(T70, T73))
U2_aaaa(T70, T73, T74, X119, X120, gt10_out_aa(T70, T73)) → part20_out_aaaa(T70, .(T73, T74), .(T73, X119), X120)
part20_in_aaaa(T70, .(T73, T77), .(T73, X119), X120) → U3_aaaa(T70, T73, T77, X119, X120, gt10_in_aa(T70, T73))
U3_aaaa(T70, T73, T77, X119, X120, gt10_out_aa(T70, T73)) → U4_aaaa(T70, T73, T77, X119, X120, part20_in_gaaa(T70, T77, X119, X120))
U4_aaaa(T70, T73, T77, X119, X120, part20_out_gaaa(T70, T77, X119, X120)) → part20_out_aaaa(T70, .(T73, T77), .(T73, X119), X120)
part20_in_aaaa(T95, .(T98, T99), X170, .(T98, X171)) → U5_aaaa(T95, T98, T99, X170, X171, le33_in_aa(T95, T98))
le33_in_aa(s(T113), s(T115)) → U8_aa(T113, T115, le33_in_aa(T113, T115))
le33_in_aa(0, s(T122)) → le33_out_aa(0, s(T122))
le33_in_aa(0, 0) → le33_out_aa(0, 0)
U8_aa(T113, T115, le33_out_aa(T113, T115)) → le33_out_aa(s(T113), s(T115))
U5_aaaa(T95, T98, T99, X170, X171, le33_out_aa(T95, T98)) → part20_out_aaaa(T95, .(T98, T99), X170, .(T98, X171))
part20_in_aaaa(T95, .(T98, T102), X170, .(T98, X171)) → U6_aaaa(T95, T98, T102, X170, X171, le33_in_aa(T95, T98))
U6_aaaa(T95, T98, T102, X170, X171, le33_out_aa(T95, T98)) → U7_aaaa(T95, T98, T102, X170, X171, part20_in_gaaa(T95, T102, X170, X171))
U7_aaaa(T95, T98, T102, X170, X171, part20_out_gaaa(T95, T102, X170, X171)) → part20_out_aaaa(T95, .(T98, T102), X170, .(T98, X171))
part20_in_aaaa(T128, [], [], []) → part20_out_aaaa(T128, [], [], [])
U9_aaaaaaa(T148, T149, X269, X270, X271, X272, X273, part20_out_aaaa(T148, T149, X269, X270)) → p56_out_aaaaaaa(T148, T149, X269, X270, X271, X272, X273)
p56_in_aaaaaaa(T148, T149, T153, T154, X271, X272, X273) → U10_aaaaaaa(T148, T149, T153, T154, X271, X272, X273, part20_in_aaaa(T148, T149, T153, T154))
U10_aaaaaaa(T148, T149, T153, T154, X271, X272, X273, part20_out_aaaa(T148, T149, T153, T154)) → U11_aaaaaaa(T148, T149, T153, T154, X271, X272, X273, qs59_in_aa(T153, X271))
qs59_in_aa([], []) → qs59_out_aa([], [])
U11_aaaaaaa(T148, T149, T153, T154, X271, X272, X273, qs59_out_aa(T153, X271)) → p56_out_aaaaaaa(T148, T149, T153, T154, X271, X272, X273)
p56_in_aaaaaaa(T148, T149, T153, T154, T160, X272, X273) → U12_aaaaaaa(T148, T149, T153, T154, T160, X272, X273, part20_in_aaaa(T148, T149, T153, T154))
U12_aaaaaaa(T148, T149, T153, T154, T160, X272, X273, part20_out_aaaa(T148, T149, T153, T154)) → U13_aaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_in_aa(T153, T160))
U13_aaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_out_aa(T153, T160)) → U14_aaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_in_aa(T154, X272))
U14_aaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_out_aa(T154, X272)) → p56_out_aaaaaaa(T148, T149, T153, T154, T160, X272, X273)
p56_in_aaaaaaa(T148, T149, T153, T154, T160, T178, X273) → U15_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, part20_in_aaaa(T148, T149, T153, T154))
U15_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, part20_out_aaaa(T148, T149, T153, T154)) → U16_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_in_aa(T153, T160))
U16_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_out_aa(T153, T160)) → U17_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_in_aa(T154, T178))
U17_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_out_aa(T154, T178)) → U18_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, app70_in_aaaa(T160, T148, T178, X273))
app70_in_aaaa(.(T201, T202), T203, T204, .(T201, X391)) → U20_aaaa(T201, T202, T203, T204, X391, app70_in_aaaa(T202, T203, T204, X391))
app70_in_aaaa([], T213, T214, .(T213, T214)) → app70_out_aaaa([], T213, T214, .(T213, T214))
U20_aaaa(T201, T202, T203, T204, X391, app70_out_aaaa(T202, T203, T204, X391)) → app70_out_aaaa(.(T201, T202), T203, T204, .(T201, X391))
U18_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, app70_out_aaaa(T160, T148, T178, X273)) → p56_out_aaaaaaa(T148, T149, T153, T154, T160, T178, X273)
U19_aa(T171, T172, X335, p56_out_aaaaaaa(T171, T172, X331, X332, X333, X334, X335)) → qs59_out_aa(.(T171, T172), X335)
U11_gaaaaaa(T148, T149, T153, T154, X271, X272, X273, qs59_out_aa(T153, X271)) → p56_out_gaaaaaa(T148, T149, T153, T154, X271, X272, X273)
p56_in_gaaaaaa(T148, T149, T153, T154, T160, X272, X273) → U12_gaaaaaa(T148, T149, T153, T154, T160, X272, X273, part20_in_gaaa(T148, T149, T153, T154))
U12_gaaaaaa(T148, T149, T153, T154, T160, X272, X273, part20_out_gaaa(T148, T149, T153, T154)) → U13_gaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_in_aa(T153, T160))
U13_gaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_out_aa(T153, T160)) → U14_gaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_in_aa(T154, X272))
U14_gaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_out_aa(T154, X272)) → p56_out_gaaaaaa(T148, T149, T153, T154, T160, X272, X273)
p56_in_gaaaaaa(T148, T149, T153, T154, T160, T178, X273) → U15_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, part20_in_gaaa(T148, T149, T153, T154))
U15_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, part20_out_gaaa(T148, T149, T153, T154)) → U16_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_in_aa(T153, T160))
U16_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_out_aa(T153, T160)) → U17_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_in_aa(T154, T178))
U17_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_out_aa(T154, T178)) → U18_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, app70_in_agaa(T160, T148, T178, X273))
app70_in_agaa(.(T201, T202), T203, T204, .(T201, X391)) → U20_agaa(T201, T202, T203, T204, X391, app70_in_agaa(T202, T203, T204, X391))
app70_in_agaa([], T213, T214, .(T213, T214)) → app70_out_agaa([], T213, T214, .(T213, T214))
U20_agaa(T201, T202, T203, T204, X391, app70_out_agaa(T202, T203, T204, X391)) → app70_out_agaa(.(T201, T202), T203, T204, .(T201, X391))
U18_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, app70_out_agaa(T160, T148, T178, X273)) → p56_out_gaaaaaa(T148, T149, T153, T154, T160, T178, X273)
U37_gaa(T148, T149, X273, p56_out_gaaaaaa(T148, T149, X269, X270, X271, X272, X273)) → qs51_out_gaa(T148, T149, X273)
U48_ag(T31, T33, T32, T8, qs51_out_gaa(T33, T53, X9)) → qs1_out_ag(.(T31, .(T33, T32)), T8)
U47_ag(T31, T33, T32, T8, part20_out_gaaa(T31, T32, T53, T54)) → U49_ag(T31, T33, T32, T8, T54, qs51_in_gaa(T33, T53, T131))
U49_ag(T31, T33, T32, T8, T54, qs51_out_gaa(T33, T53, T131)) → U50_ag(T31, T33, T32, T8, p52_in_aaagg(T54, X10, T131, T31, T8))
p52_in_aaagg(T54, X10, T131, T31, T8) → U33_aaagg(T54, X10, T131, T31, T8, qs80_in_aa(T54, X10))
qs80_in_aa(.(T230, T231), X452) → U22_aa(T230, T231, X452, part87_in_aaaa(T230, T231, X448, X449))
part87_in_aaaa(T256, .(T257, T258), .(T257, X503), X504) → U38_aaaa(T256, T257, T258, X503, X504, gt10_in_aa(T256, T257))
U38_aaaa(T256, T257, T258, X503, X504, gt10_out_aa(T256, T257)) → part87_out_aaaa(T256, .(T257, T258), .(T257, X503), X504)
part87_in_aaaa(T261, .(T257, T262), .(T257, X503), X504) → U39_aaaa(T261, T257, T262, X503, X504, gt10_in_aa(T261, T257))
U39_aaaa(T261, T257, T262, X503, X504, gt10_out_aa(T261, T257)) → U40_aaaa(T261, T257, T262, X503, X504, part20_in_gaaa(T261, T262, X503, X504))
U40_aaaa(T261, T257, T262, X503, X504, part20_out_gaaa(T261, T262, X503, X504)) → part87_out_aaaa(T261, .(T257, T262), .(T257, X503), X504)
part87_in_aaaa(T283, .(T284, T285), X554, .(T284, X555)) → U41_aaaa(T283, T284, T285, X554, X555, le100_in_aa(T283, T284))
le100_in_aa(s(T302), s(T303)) → U21_aa(T302, T303, le100_in_aa(T302, T303))
le100_in_aa(0, s(T310)) → le100_out_aa(0, s(T310))
le100_in_aa(0, 0) → le100_out_aa(0, 0)
U21_aa(T302, T303, le100_out_aa(T302, T303)) → le100_out_aa(s(T302), s(T303))
U41_aaaa(T283, T284, T285, X554, X555, le100_out_aa(T283, T284)) → part87_out_aaaa(T283, .(T284, T285), X554, .(T284, X555))
part87_in_aaaa(T288, .(T284, T289), X554, .(T284, X555)) → U42_aaaa(T288, T284, T289, X554, X555, le100_in_aa(T288, T284))
U42_aaaa(T288, T284, T289, X554, X555, le100_out_aa(T288, T284)) → U43_aaaa(T288, T284, T289, X554, X555, part20_in_gaaa(T288, T289, X554, X555))
U43_aaaa(T288, T284, T289, X554, X555, part20_out_gaaa(T288, T289, X554, X555)) → part87_out_aaaa(T288, .(T284, T289), X554, .(T284, X555))
part87_in_aaaa(T316, [], [], []) → part87_out_aaaa(T316, [], [], [])
U22_aa(T230, T231, X452, part87_out_aaaa(T230, T231, X448, X449)) → qs80_out_aa(.(T230, T231), X452)
qs80_in_aa(.(T237, T231), X452) → U23_aa(T237, T231, X452, part87_in_aaaa(T237, T231, T235, T236))
U23_aa(T237, T231, X452, part87_out_aaaa(T237, T231, T235, T236)) → U24_aa(T237, T231, X452, qs80_in_aa(T235, X450))
qs80_in_aa(.(T325, T231), X452) → U27_aa(T325, T231, X452, part87_in_aaaa(T325, T231, T235, T236))
U27_aa(T325, T231, X452, part87_out_aaaa(T325, T231, T235, T236)) → U28_aa(T325, T231, X452, T236, qs80_in_aa(T235, T319))
qs80_in_aa([], []) → qs80_out_aa([], [])
U28_aa(T325, T231, X452, T236, qs80_out_aa(T235, T319)) → U29_aa(T325, T231, X452, T319, qs80_in_aa(T236, T324))
U29_aa(T325, T231, X452, T319, qs80_out_aa(T236, T324)) → U30_aa(T325, T231, X452, app121_in_aaaa(T319, T325, T324, X452))
app121_in_aaaa(.(T348, T349), T352, T353, .(T348, X657)) → U31_aaaa(T348, T349, T352, T353, X657, app121_in_aaaa(T349, T352, T353, X657))
app121_in_aaaa([], T362, T363, .(T362, T363)) → app121_out_aaaa([], T362, T363, .(T362, T363))
U31_aaaa(T348, T349, T352, T353, X657, app121_out_aaaa(T349, T352, T353, X657)) → app121_out_aaaa(.(T348, T349), T352, T353, .(T348, X657))
U30_aa(T325, T231, X452, app121_out_aaaa(T319, T325, T324, X452)) → qs80_out_aa(.(T325, T231), X452)
U24_aa(T237, T231, X452, qs80_out_aa(T235, X450)) → qs80_out_aa(.(T237, T231), X452)
U23_aa(T237, T231, X452, part87_out_aaaa(T237, T231, T235, T236)) → U25_aa(T237, T231, X452, T236, qs80_in_aa(T235, T319))
U25_aa(T237, T231, X452, T236, qs80_out_aa(T235, T319)) → U26_aa(T237, T231, X452, qs80_in_aa(T236, X451))
U26_aa(T237, T231, X452, qs80_out_aa(T236, X451)) → qs80_out_aa(.(T237, T231), X452)
U33_aaagg(T54, X10, T131, T31, T8, qs80_out_aa(T54, X10)) → p52_out_aaagg(T54, X10, T131, T31, T8)
p52_in_aaagg(T54, T217, T131, T31, T8) → U34_aaagg(T54, T217, T131, T31, T8, qs80_in_aa(T54, T217))
U34_aaagg(T54, T217, T131, T31, T8, qs80_out_aa(T54, T217)) → U35_aaagg(T54, T217, T131, T31, T8, app81_in_agag(T131, T31, T217, T8))
app81_in_agag(.(T389, T390), T391, T394, .(T389, T393)) → U32_agag(T389, T390, T391, T394, T393, app81_in_agag(T390, T391, T394, T393))
app81_in_agag([], T404, T405, .(T404, T405)) → app81_out_agag([], T404, T405, .(T404, T405))
U32_agag(T389, T390, T391, T394, T393, app81_out_agag(T390, T391, T394, T393)) → app81_out_agag(.(T389, T390), T391, T394, .(T389, T393))
U35_aaagg(T54, T217, T131, T31, T8, app81_out_agag(T131, T31, T217, T8)) → p52_out_aaagg(T54, T217, T131, T31, T8)
U50_ag(T31, T33, T32, T8, p52_out_aaagg(T54, X10, T131, T31, T8)) → qs1_out_ag(.(T31, .(T33, T32)), T8)
qs1_in_ag(.(T421, .(T422, T423)), T8) → U51_ag(T421, T422, T423, T8, le100_in_aa(T421, T422))
U51_ag(T421, T422, T423, T8, le100_out_aa(T421, T422)) → qs1_out_ag(.(T421, .(T422, T423)), T8)
qs1_in_ag(.(T426, .(T428, T427)), T8) → U52_ag(T426, T428, T427, T8, le100_in_aa(T426, T428))
U52_ag(T426, T428, T427, T8, le100_out_aa(T426, T428)) → U53_ag(T426, T428, T427, T8, part20_in_gaaa(T426, T427, X740, X741))
U53_ag(T426, T428, T427, T8, part20_out_gaaa(T426, T427, X740, X741)) → qs1_out_ag(.(T426, .(T428, T427)), T8)
qs1_in_ag(.(T426, .(T436, T427)), T8) → U54_ag(T426, T436, T427, T8, le100_in_aa(T426, T436))
U54_ag(T426, T436, T427, T8, le100_out_aa(T426, T436)) → U55_ag(T426, T436, T427, T8, part20_in_gaaa(T426, T427, T434, T435))
U55_ag(T426, T436, T427, T8, part20_out_gaaa(T426, T427, T434, T435)) → U56_ag(T426, T436, T427, T8, qs80_in_aa(T434, X9))
U56_ag(T426, T436, T427, T8, qs80_out_aa(T434, X9)) → qs1_out_ag(.(T426, .(T436, T427)), T8)
U55_ag(T426, T436, T427, T8, part20_out_gaaa(T426, T427, T434, T435)) → U57_ag(T426, T436, T427, T8, T435, qs80_in_aa(T434, T442))
U57_ag(T426, T436, T427, T8, T435, qs80_out_aa(T434, T442)) → U58_ag(T426, T436, T427, T8, p52_in_aaagg(.(T436, T435), X10, T442, T426, T8))
U58_ag(T426, T436, T427, T8, p52_out_aaagg(.(T436, T435), X10, T442, T426, T8)) → qs1_out_ag(.(T426, .(T436, T427)), T8)
qs1_in_ag(.(T452, []), T8) → U59_ag(T452, T8, qs155_in_a(X9))
qs155_in_a([]) → qs155_out_a([])
U59_ag(T452, T8, qs155_out_a(X9)) → qs1_out_ag(.(T452, []), T8)
qs1_in_ag(.(T452, []), T8) → U60_ag(T452, T8, qs155_in_a(T455))
U60_ag(T452, T8, qs155_out_a(T455)) → U61_ag(T452, T8, qs155_in_a(X10))
U61_ag(T452, T8, qs155_out_a(X10)) → qs1_out_ag(.(T452, []), T8)
U60_ag(T452, T8, qs155_out_a(T455)) → U62_ag(T452, T8, T455, qs155_in_a(T460))
U62_ag(T452, T8, T455, qs155_out_a(T460)) → U63_ag(T452, T8, app162_in_gagg(T455, T452, T460, T8))
app162_in_gagg(.(T486, T487), T491, T489, .(T486, T490)) → U36_gagg(T486, T487, T491, T489, T490, app162_in_gagg(T487, T491, T489, T490))
app162_in_gagg([], T501, T502, .(T501, T502)) → app162_out_gagg([], T501, T502, .(T501, T502))
U36_gagg(T486, T487, T491, T489, T490, app162_out_gagg(T487, T491, T489, T490)) → app162_out_gagg(.(T486, T487), T491, T489, .(T486, T490))
U63_ag(T452, T8, app162_out_gagg(T455, T452, T460, T8)) → qs1_out_ag(.(T452, []), T8)
qs1_in_ag([], []) → qs1_out_ag([], [])
QS1_IN_AG(.(T26, .(T27, T28)), T8) → U44_AG(T26, T27, T28, T8, gt10_in_aa(T26, T27))
QS1_IN_AG(.(T26, .(T27, T28)), T8) → GT10_IN_AA(T26, T27)
GT10_IN_AA(s(T46), s(T47)) → U1_AA(T46, T47, gt10_in_aa(T46, T47))
GT10_IN_AA(s(T46), s(T47)) → GT10_IN_AA(T46, T47)
QS1_IN_AG(.(T31, .(T33, T32)), T8) → U45_AG(T31, T33, T32, T8, gt10_in_aa(T31, T33))
U45_AG(T31, T33, T32, T8, gt10_out_aa(T31, T33)) → U46_AG(T31, T33, T32, T8, part20_in_gaaa(T31, T32, X47, X48))
U45_AG(T31, T33, T32, T8, gt10_out_aa(T31, T33)) → PART20_IN_GAAA(T31, T32, X47, X48)
PART20_IN_GAAA(T70, .(T73, T74), .(T73, X119), X120) → U2_GAAA(T70, T73, T74, X119, X120, gt10_in_ga(T70, T73))
PART20_IN_GAAA(T70, .(T73, T74), .(T73, X119), X120) → GT10_IN_GA(T70, T73)
GT10_IN_GA(s(T46), s(T47)) → U1_GA(T46, T47, gt10_in_ga(T46, T47))
GT10_IN_GA(s(T46), s(T47)) → GT10_IN_GA(T46, T47)
PART20_IN_GAAA(T70, .(T73, T77), .(T73, X119), X120) → U3_GAAA(T70, T73, T77, X119, X120, gt10_in_ga(T70, T73))
U3_GAAA(T70, T73, T77, X119, X120, gt10_out_ga(T70, T73)) → U4_GAAA(T70, T73, T77, X119, X120, part20_in_gaaa(T70, T77, X119, X120))
U3_GAAA(T70, T73, T77, X119, X120, gt10_out_ga(T70, T73)) → PART20_IN_GAAA(T70, T77, X119, X120)
PART20_IN_GAAA(T95, .(T98, T99), X170, .(T98, X171)) → U5_GAAA(T95, T98, T99, X170, X171, le33_in_ga(T95, T98))
PART20_IN_GAAA(T95, .(T98, T99), X170, .(T98, X171)) → LE33_IN_GA(T95, T98)
LE33_IN_GA(s(T113), s(T115)) → U8_GA(T113, T115, le33_in_ga(T113, T115))
LE33_IN_GA(s(T113), s(T115)) → LE33_IN_GA(T113, T115)
PART20_IN_GAAA(T95, .(T98, T102), X170, .(T98, X171)) → U6_GAAA(T95, T98, T102, X170, X171, le33_in_ga(T95, T98))
U6_GAAA(T95, T98, T102, X170, X171, le33_out_ga(T95, T98)) → U7_GAAA(T95, T98, T102, X170, X171, part20_in_gaaa(T95, T102, X170, X171))
U6_GAAA(T95, T98, T102, X170, X171, le33_out_ga(T95, T98)) → PART20_IN_GAAA(T95, T102, X170, X171)
U45_AG(T31, T33, T32, T8, gt10_out_aa(T31, T33)) → U47_AG(T31, T33, T32, T8, part20_in_gaaa(T31, T32, T53, T54))
U47_AG(T31, T33, T32, T8, part20_out_gaaa(T31, T32, T53, T54)) → U48_AG(T31, T33, T32, T8, qs51_in_gaa(T33, T53, X9))
U47_AG(T31, T33, T32, T8, part20_out_gaaa(T31, T32, T53, T54)) → QS51_IN_GAA(T33, T53, X9)
QS51_IN_GAA(T148, T149, X273) → U37_GAA(T148, T149, X273, p56_in_gaaaaaa(T148, T149, X269, X270, X271, X272, X273))
QS51_IN_GAA(T148, T149, X273) → P56_IN_GAAAAAA(T148, T149, X269, X270, X271, X272, X273)
P56_IN_GAAAAAA(T148, T149, X269, X270, X271, X272, X273) → U9_GAAAAAA(T148, T149, X269, X270, X271, X272, X273, part20_in_gaaa(T148, T149, X269, X270))
P56_IN_GAAAAAA(T148, T149, X269, X270, X271, X272, X273) → PART20_IN_GAAA(T148, T149, X269, X270)
P56_IN_GAAAAAA(T148, T149, T153, T154, X271, X272, X273) → U10_GAAAAAA(T148, T149, T153, T154, X271, X272, X273, part20_in_gaaa(T148, T149, T153, T154))
U10_GAAAAAA(T148, T149, T153, T154, X271, X272, X273, part20_out_gaaa(T148, T149, T153, T154)) → U11_GAAAAAA(T148, T149, T153, T154, X271, X272, X273, qs59_in_aa(T153, X271))
U10_GAAAAAA(T148, T149, T153, T154, X271, X272, X273, part20_out_gaaa(T148, T149, T153, T154)) → QS59_IN_AA(T153, X271)
QS59_IN_AA(.(T171, T172), X335) → U19_AA(T171, T172, X335, p56_in_aaaaaaa(T171, T172, X331, X332, X333, X334, X335))
QS59_IN_AA(.(T171, T172), X335) → P56_IN_AAAAAAA(T171, T172, X331, X332, X333, X334, X335)
P56_IN_AAAAAAA(T148, T149, X269, X270, X271, X272, X273) → U9_AAAAAAA(T148, T149, X269, X270, X271, X272, X273, part20_in_aaaa(T148, T149, X269, X270))
P56_IN_AAAAAAA(T148, T149, X269, X270, X271, X272, X273) → PART20_IN_AAAA(T148, T149, X269, X270)
PART20_IN_AAAA(T70, .(T73, T74), .(T73, X119), X120) → U2_AAAA(T70, T73, T74, X119, X120, gt10_in_aa(T70, T73))
PART20_IN_AAAA(T70, .(T73, T74), .(T73, X119), X120) → GT10_IN_AA(T70, T73)
PART20_IN_AAAA(T70, .(T73, T77), .(T73, X119), X120) → U3_AAAA(T70, T73, T77, X119, X120, gt10_in_aa(T70, T73))
U3_AAAA(T70, T73, T77, X119, X120, gt10_out_aa(T70, T73)) → U4_AAAA(T70, T73, T77, X119, X120, part20_in_gaaa(T70, T77, X119, X120))
U3_AAAA(T70, T73, T77, X119, X120, gt10_out_aa(T70, T73)) → PART20_IN_GAAA(T70, T77, X119, X120)
PART20_IN_AAAA(T95, .(T98, T99), X170, .(T98, X171)) → U5_AAAA(T95, T98, T99, X170, X171, le33_in_aa(T95, T98))
PART20_IN_AAAA(T95, .(T98, T99), X170, .(T98, X171)) → LE33_IN_AA(T95, T98)
LE33_IN_AA(s(T113), s(T115)) → U8_AA(T113, T115, le33_in_aa(T113, T115))
LE33_IN_AA(s(T113), s(T115)) → LE33_IN_AA(T113, T115)
PART20_IN_AAAA(T95, .(T98, T102), X170, .(T98, X171)) → U6_AAAA(T95, T98, T102, X170, X171, le33_in_aa(T95, T98))
U6_AAAA(T95, T98, T102, X170, X171, le33_out_aa(T95, T98)) → U7_AAAA(T95, T98, T102, X170, X171, part20_in_gaaa(T95, T102, X170, X171))
U6_AAAA(T95, T98, T102, X170, X171, le33_out_aa(T95, T98)) → PART20_IN_GAAA(T95, T102, X170, X171)
P56_IN_AAAAAAA(T148, T149, T153, T154, X271, X272, X273) → U10_AAAAAAA(T148, T149, T153, T154, X271, X272, X273, part20_in_aaaa(T148, T149, T153, T154))
U10_AAAAAAA(T148, T149, T153, T154, X271, X272, X273, part20_out_aaaa(T148, T149, T153, T154)) → U11_AAAAAAA(T148, T149, T153, T154, X271, X272, X273, qs59_in_aa(T153, X271))
U10_AAAAAAA(T148, T149, T153, T154, X271, X272, X273, part20_out_aaaa(T148, T149, T153, T154)) → QS59_IN_AA(T153, X271)
P56_IN_AAAAAAA(T148, T149, T153, T154, T160, X272, X273) → U12_AAAAAAA(T148, T149, T153, T154, T160, X272, X273, part20_in_aaaa(T148, T149, T153, T154))
U12_AAAAAAA(T148, T149, T153, T154, T160, X272, X273, part20_out_aaaa(T148, T149, T153, T154)) → U13_AAAAAAA(T148, T149, T153, T154, T160, X272, X273, qs59_in_aa(T153, T160))
U12_AAAAAAA(T148, T149, T153, T154, T160, X272, X273, part20_out_aaaa(T148, T149, T153, T154)) → QS59_IN_AA(T153, T160)
U13_AAAAAAA(T148, T149, T153, T154, T160, X272, X273, qs59_out_aa(T153, T160)) → U14_AAAAAAA(T148, T149, T153, T154, T160, X272, X273, qs59_in_aa(T154, X272))
U13_AAAAAAA(T148, T149, T153, T154, T160, X272, X273, qs59_out_aa(T153, T160)) → QS59_IN_AA(T154, X272)
P56_IN_AAAAAAA(T148, T149, T153, T154, T160, T178, X273) → U15_AAAAAAA(T148, T149, T153, T154, T160, T178, X273, part20_in_aaaa(T148, T149, T153, T154))
U15_AAAAAAA(T148, T149, T153, T154, T160, T178, X273, part20_out_aaaa(T148, T149, T153, T154)) → U16_AAAAAAA(T148, T149, T153, T154, T160, T178, X273, qs59_in_aa(T153, T160))
U15_AAAAAAA(T148, T149, T153, T154, T160, T178, X273, part20_out_aaaa(T148, T149, T153, T154)) → QS59_IN_AA(T153, T160)
U16_AAAAAAA(T148, T149, T153, T154, T160, T178, X273, qs59_out_aa(T153, T160)) → U17_AAAAAAA(T148, T149, T153, T154, T160, T178, X273, qs59_in_aa(T154, T178))
U16_AAAAAAA(T148, T149, T153, T154, T160, T178, X273, qs59_out_aa(T153, T160)) → QS59_IN_AA(T154, T178)
U17_AAAAAAA(T148, T149, T153, T154, T160, T178, X273, qs59_out_aa(T154, T178)) → U18_AAAAAAA(T148, T149, T153, T154, T160, T178, X273, app70_in_aaaa(T160, T148, T178, X273))
U17_AAAAAAA(T148, T149, T153, T154, T160, T178, X273, qs59_out_aa(T154, T178)) → APP70_IN_AAAA(T160, T148, T178, X273)
APP70_IN_AAAA(.(T201, T202), T203, T204, .(T201, X391)) → U20_AAAA(T201, T202, T203, T204, X391, app70_in_aaaa(T202, T203, T204, X391))
APP70_IN_AAAA(.(T201, T202), T203, T204, .(T201, X391)) → APP70_IN_AAAA(T202, T203, T204, X391)
P56_IN_GAAAAAA(T148, T149, T153, T154, T160, X272, X273) → U12_GAAAAAA(T148, T149, T153, T154, T160, X272, X273, part20_in_gaaa(T148, T149, T153, T154))
U12_GAAAAAA(T148, T149, T153, T154, T160, X272, X273, part20_out_gaaa(T148, T149, T153, T154)) → U13_GAAAAAA(T148, T149, T153, T154, T160, X272, X273, qs59_in_aa(T153, T160))
U12_GAAAAAA(T148, T149, T153, T154, T160, X272, X273, part20_out_gaaa(T148, T149, T153, T154)) → QS59_IN_AA(T153, T160)
U13_GAAAAAA(T148, T149, T153, T154, T160, X272, X273, qs59_out_aa(T153, T160)) → U14_GAAAAAA(T148, T149, T153, T154, T160, X272, X273, qs59_in_aa(T154, X272))
U13_GAAAAAA(T148, T149, T153, T154, T160, X272, X273, qs59_out_aa(T153, T160)) → QS59_IN_AA(T154, X272)
P56_IN_GAAAAAA(T148, T149, T153, T154, T160, T178, X273) → U15_GAAAAAA(T148, T149, T153, T154, T160, T178, X273, part20_in_gaaa(T148, T149, T153, T154))
U15_GAAAAAA(T148, T149, T153, T154, T160, T178, X273, part20_out_gaaa(T148, T149, T153, T154)) → U16_GAAAAAA(T148, T149, T153, T154, T160, T178, X273, qs59_in_aa(T153, T160))
U15_GAAAAAA(T148, T149, T153, T154, T160, T178, X273, part20_out_gaaa(T148, T149, T153, T154)) → QS59_IN_AA(T153, T160)
U16_GAAAAAA(T148, T149, T153, T154, T160, T178, X273, qs59_out_aa(T153, T160)) → U17_GAAAAAA(T148, T149, T153, T154, T160, T178, X273, qs59_in_aa(T154, T178))
U16_GAAAAAA(T148, T149, T153, T154, T160, T178, X273, qs59_out_aa(T153, T160)) → QS59_IN_AA(T154, T178)
U17_GAAAAAA(T148, T149, T153, T154, T160, T178, X273, qs59_out_aa(T154, T178)) → U18_GAAAAAA(T148, T149, T153, T154, T160, T178, X273, app70_in_agaa(T160, T148, T178, X273))
U17_GAAAAAA(T148, T149, T153, T154, T160, T178, X273, qs59_out_aa(T154, T178)) → APP70_IN_AGAA(T160, T148, T178, X273)
APP70_IN_AGAA(.(T201, T202), T203, T204, .(T201, X391)) → U20_AGAA(T201, T202, T203, T204, X391, app70_in_agaa(T202, T203, T204, X391))
APP70_IN_AGAA(.(T201, T202), T203, T204, .(T201, X391)) → APP70_IN_AGAA(T202, T203, T204, X391)
U47_AG(T31, T33, T32, T8, part20_out_gaaa(T31, T32, T53, T54)) → U49_AG(T31, T33, T32, T8, T54, qs51_in_gaa(T33, T53, T131))
U49_AG(T31, T33, T32, T8, T54, qs51_out_gaa(T33, T53, T131)) → U50_AG(T31, T33, T32, T8, p52_in_aaagg(T54, X10, T131, T31, T8))
U49_AG(T31, T33, T32, T8, T54, qs51_out_gaa(T33, T53, T131)) → P52_IN_AAAGG(T54, X10, T131, T31, T8)
P52_IN_AAAGG(T54, X10, T131, T31, T8) → U33_AAAGG(T54, X10, T131, T31, T8, qs80_in_aa(T54, X10))
P52_IN_AAAGG(T54, X10, T131, T31, T8) → QS80_IN_AA(T54, X10)
QS80_IN_AA(.(T230, T231), X452) → U22_AA(T230, T231, X452, part87_in_aaaa(T230, T231, X448, X449))
QS80_IN_AA(.(T230, T231), X452) → PART87_IN_AAAA(T230, T231, X448, X449)
PART87_IN_AAAA(T256, .(T257, T258), .(T257, X503), X504) → U38_AAAA(T256, T257, T258, X503, X504, gt10_in_aa(T256, T257))
PART87_IN_AAAA(T256, .(T257, T258), .(T257, X503), X504) → GT10_IN_AA(T256, T257)
PART87_IN_AAAA(T261, .(T257, T262), .(T257, X503), X504) → U39_AAAA(T261, T257, T262, X503, X504, gt10_in_aa(T261, T257))
U39_AAAA(T261, T257, T262, X503, X504, gt10_out_aa(T261, T257)) → U40_AAAA(T261, T257, T262, X503, X504, part20_in_gaaa(T261, T262, X503, X504))
U39_AAAA(T261, T257, T262, X503, X504, gt10_out_aa(T261, T257)) → PART20_IN_GAAA(T261, T262, X503, X504)
PART87_IN_AAAA(T283, .(T284, T285), X554, .(T284, X555)) → U41_AAAA(T283, T284, T285, X554, X555, le100_in_aa(T283, T284))
PART87_IN_AAAA(T283, .(T284, T285), X554, .(T284, X555)) → LE100_IN_AA(T283, T284)
LE100_IN_AA(s(T302), s(T303)) → U21_AA(T302, T303, le100_in_aa(T302, T303))
LE100_IN_AA(s(T302), s(T303)) → LE100_IN_AA(T302, T303)
PART87_IN_AAAA(T288, .(T284, T289), X554, .(T284, X555)) → U42_AAAA(T288, T284, T289, X554, X555, le100_in_aa(T288, T284))
U42_AAAA(T288, T284, T289, X554, X555, le100_out_aa(T288, T284)) → U43_AAAA(T288, T284, T289, X554, X555, part20_in_gaaa(T288, T289, X554, X555))
U42_AAAA(T288, T284, T289, X554, X555, le100_out_aa(T288, T284)) → PART20_IN_GAAA(T288, T289, X554, X555)
QS80_IN_AA(.(T237, T231), X452) → U23_AA(T237, T231, X452, part87_in_aaaa(T237, T231, T235, T236))
U23_AA(T237, T231, X452, part87_out_aaaa(T237, T231, T235, T236)) → U24_AA(T237, T231, X452, qs80_in_aa(T235, X450))
U23_AA(T237, T231, X452, part87_out_aaaa(T237, T231, T235, T236)) → QS80_IN_AA(T235, X450)
QS80_IN_AA(.(T325, T231), X452) → U27_AA(T325, T231, X452, part87_in_aaaa(T325, T231, T235, T236))
U27_AA(T325, T231, X452, part87_out_aaaa(T325, T231, T235, T236)) → U28_AA(T325, T231, X452, T236, qs80_in_aa(T235, T319))
U27_AA(T325, T231, X452, part87_out_aaaa(T325, T231, T235, T236)) → QS80_IN_AA(T235, T319)
U28_AA(T325, T231, X452, T236, qs80_out_aa(T235, T319)) → U29_AA(T325, T231, X452, T319, qs80_in_aa(T236, T324))
U28_AA(T325, T231, X452, T236, qs80_out_aa(T235, T319)) → QS80_IN_AA(T236, T324)
U29_AA(T325, T231, X452, T319, qs80_out_aa(T236, T324)) → U30_AA(T325, T231, X452, app121_in_aaaa(T319, T325, T324, X452))
U29_AA(T325, T231, X452, T319, qs80_out_aa(T236, T324)) → APP121_IN_AAAA(T319, T325, T324, X452)
APP121_IN_AAAA(.(T348, T349), T352, T353, .(T348, X657)) → U31_AAAA(T348, T349, T352, T353, X657, app121_in_aaaa(T349, T352, T353, X657))
APP121_IN_AAAA(.(T348, T349), T352, T353, .(T348, X657)) → APP121_IN_AAAA(T349, T352, T353, X657)
U23_AA(T237, T231, X452, part87_out_aaaa(T237, T231, T235, T236)) → U25_AA(T237, T231, X452, T236, qs80_in_aa(T235, T319))
U25_AA(T237, T231, X452, T236, qs80_out_aa(T235, T319)) → U26_AA(T237, T231, X452, qs80_in_aa(T236, X451))
U25_AA(T237, T231, X452, T236, qs80_out_aa(T235, T319)) → QS80_IN_AA(T236, X451)
P52_IN_AAAGG(T54, T217, T131, T31, T8) → U34_AAAGG(T54, T217, T131, T31, T8, qs80_in_aa(T54, T217))
U34_AAAGG(T54, T217, T131, T31, T8, qs80_out_aa(T54, T217)) → U35_AAAGG(T54, T217, T131, T31, T8, app81_in_agag(T131, T31, T217, T8))
U34_AAAGG(T54, T217, T131, T31, T8, qs80_out_aa(T54, T217)) → APP81_IN_AGAG(T131, T31, T217, T8)
APP81_IN_AGAG(.(T389, T390), T391, T394, .(T389, T393)) → U32_AGAG(T389, T390, T391, T394, T393, app81_in_agag(T390, T391, T394, T393))
APP81_IN_AGAG(.(T389, T390), T391, T394, .(T389, T393)) → APP81_IN_AGAG(T390, T391, T394, T393)
QS1_IN_AG(.(T421, .(T422, T423)), T8) → U51_AG(T421, T422, T423, T8, le100_in_aa(T421, T422))
QS1_IN_AG(.(T421, .(T422, T423)), T8) → LE100_IN_AA(T421, T422)
QS1_IN_AG(.(T426, .(T428, T427)), T8) → U52_AG(T426, T428, T427, T8, le100_in_aa(T426, T428))
U52_AG(T426, T428, T427, T8, le100_out_aa(T426, T428)) → U53_AG(T426, T428, T427, T8, part20_in_gaaa(T426, T427, X740, X741))
U52_AG(T426, T428, T427, T8, le100_out_aa(T426, T428)) → PART20_IN_GAAA(T426, T427, X740, X741)
QS1_IN_AG(.(T426, .(T436, T427)), T8) → U54_AG(T426, T436, T427, T8, le100_in_aa(T426, T436))
U54_AG(T426, T436, T427, T8, le100_out_aa(T426, T436)) → U55_AG(T426, T436, T427, T8, part20_in_gaaa(T426, T427, T434, T435))
U54_AG(T426, T436, T427, T8, le100_out_aa(T426, T436)) → PART20_IN_GAAA(T426, T427, T434, T435)
U55_AG(T426, T436, T427, T8, part20_out_gaaa(T426, T427, T434, T435)) → U56_AG(T426, T436, T427, T8, qs80_in_aa(T434, X9))
U55_AG(T426, T436, T427, T8, part20_out_gaaa(T426, T427, T434, T435)) → QS80_IN_AA(T434, X9)
U55_AG(T426, T436, T427, T8, part20_out_gaaa(T426, T427, T434, T435)) → U57_AG(T426, T436, T427, T8, T435, qs80_in_aa(T434, T442))
U57_AG(T426, T436, T427, T8, T435, qs80_out_aa(T434, T442)) → U58_AG(T426, T436, T427, T8, p52_in_aaagg(.(T436, T435), X10, T442, T426, T8))
U57_AG(T426, T436, T427, T8, T435, qs80_out_aa(T434, T442)) → P52_IN_AAAGG(.(T436, T435), X10, T442, T426, T8)
QS1_IN_AG(.(T452, []), T8) → U59_AG(T452, T8, qs155_in_a(X9))
QS1_IN_AG(.(T452, []), T8) → QS155_IN_A(X9)
QS1_IN_AG(.(T452, []), T8) → U60_AG(T452, T8, qs155_in_a(T455))
U60_AG(T452, T8, qs155_out_a(T455)) → U61_AG(T452, T8, qs155_in_a(X10))
U60_AG(T452, T8, qs155_out_a(T455)) → QS155_IN_A(X10)
U60_AG(T452, T8, qs155_out_a(T455)) → U62_AG(T452, T8, T455, qs155_in_a(T460))
U62_AG(T452, T8, T455, qs155_out_a(T460)) → U63_AG(T452, T8, app162_in_gagg(T455, T452, T460, T8))
U62_AG(T452, T8, T455, qs155_out_a(T460)) → APP162_IN_GAGG(T455, T452, T460, T8)
APP162_IN_GAGG(.(T486, T487), T491, T489, .(T486, T490)) → U36_GAGG(T486, T487, T491, T489, T490, app162_in_gagg(T487, T491, T489, T490))
APP162_IN_GAGG(.(T486, T487), T491, T489, .(T486, T490)) → APP162_IN_GAGG(T487, T491, T489, T490)
qs1_in_ag(.(T26, .(T27, T28)), T8) → U44_ag(T26, T27, T28, T8, gt10_in_aa(T26, T27))
gt10_in_aa(s(T46), s(T47)) → U1_aa(T46, T47, gt10_in_aa(T46, T47))
gt10_in_aa(s(0), 0) → gt10_out_aa(s(0), 0)
U1_aa(T46, T47, gt10_out_aa(T46, T47)) → gt10_out_aa(s(T46), s(T47))
U44_ag(T26, T27, T28, T8, gt10_out_aa(T26, T27)) → qs1_out_ag(.(T26, .(T27, T28)), T8)
qs1_in_ag(.(T31, .(T33, T32)), T8) → U45_ag(T31, T33, T32, T8, gt10_in_aa(T31, T33))
U45_ag(T31, T33, T32, T8, gt10_out_aa(T31, T33)) → U46_ag(T31, T33, T32, T8, part20_in_gaaa(T31, T32, X47, X48))
part20_in_gaaa(T70, .(T73, T74), .(T73, X119), X120) → U2_gaaa(T70, T73, T74, X119, X120, gt10_in_ga(T70, T73))
gt10_in_ga(s(T46), s(T47)) → U1_ga(T46, T47, gt10_in_ga(T46, T47))
gt10_in_ga(s(0), 0) → gt10_out_ga(s(0), 0)
U1_ga(T46, T47, gt10_out_ga(T46, T47)) → gt10_out_ga(s(T46), s(T47))
U2_gaaa(T70, T73, T74, X119, X120, gt10_out_ga(T70, T73)) → part20_out_gaaa(T70, .(T73, T74), .(T73, X119), X120)
part20_in_gaaa(T70, .(T73, T77), .(T73, X119), X120) → U3_gaaa(T70, T73, T77, X119, X120, gt10_in_ga(T70, T73))
U3_gaaa(T70, T73, T77, X119, X120, gt10_out_ga(T70, T73)) → U4_gaaa(T70, T73, T77, X119, X120, part20_in_gaaa(T70, T77, X119, X120))
part20_in_gaaa(T95, .(T98, T99), X170, .(T98, X171)) → U5_gaaa(T95, T98, T99, X170, X171, le33_in_ga(T95, T98))
le33_in_ga(s(T113), s(T115)) → U8_ga(T113, T115, le33_in_ga(T113, T115))
le33_in_ga(0, s(T122)) → le33_out_ga(0, s(T122))
le33_in_ga(0, 0) → le33_out_ga(0, 0)
U8_ga(T113, T115, le33_out_ga(T113, T115)) → le33_out_ga(s(T113), s(T115))
U5_gaaa(T95, T98, T99, X170, X171, le33_out_ga(T95, T98)) → part20_out_gaaa(T95, .(T98, T99), X170, .(T98, X171))
part20_in_gaaa(T95, .(T98, T102), X170, .(T98, X171)) → U6_gaaa(T95, T98, T102, X170, X171, le33_in_ga(T95, T98))
U6_gaaa(T95, T98, T102, X170, X171, le33_out_ga(T95, T98)) → U7_gaaa(T95, T98, T102, X170, X171, part20_in_gaaa(T95, T102, X170, X171))
part20_in_gaaa(T128, [], [], []) → part20_out_gaaa(T128, [], [], [])
U7_gaaa(T95, T98, T102, X170, X171, part20_out_gaaa(T95, T102, X170, X171)) → part20_out_gaaa(T95, .(T98, T102), X170, .(T98, X171))
U4_gaaa(T70, T73, T77, X119, X120, part20_out_gaaa(T70, T77, X119, X120)) → part20_out_gaaa(T70, .(T73, T77), .(T73, X119), X120)
U46_ag(T31, T33, T32, T8, part20_out_gaaa(T31, T32, X47, X48)) → qs1_out_ag(.(T31, .(T33, T32)), T8)
U45_ag(T31, T33, T32, T8, gt10_out_aa(T31, T33)) → U47_ag(T31, T33, T32, T8, part20_in_gaaa(T31, T32, T53, T54))
U47_ag(T31, T33, T32, T8, part20_out_gaaa(T31, T32, T53, T54)) → U48_ag(T31, T33, T32, T8, qs51_in_gaa(T33, T53, X9))
qs51_in_gaa(T148, T149, X273) → U37_gaa(T148, T149, X273, p56_in_gaaaaaa(T148, T149, X269, X270, X271, X272, X273))
p56_in_gaaaaaa(T148, T149, X269, X270, X271, X272, X273) → U9_gaaaaaa(T148, T149, X269, X270, X271, X272, X273, part20_in_gaaa(T148, T149, X269, X270))
U9_gaaaaaa(T148, T149, X269, X270, X271, X272, X273, part20_out_gaaa(T148, T149, X269, X270)) → p56_out_gaaaaaa(T148, T149, X269, X270, X271, X272, X273)
p56_in_gaaaaaa(T148, T149, T153, T154, X271, X272, X273) → U10_gaaaaaa(T148, T149, T153, T154, X271, X272, X273, part20_in_gaaa(T148, T149, T153, T154))
U10_gaaaaaa(T148, T149, T153, T154, X271, X272, X273, part20_out_gaaa(T148, T149, T153, T154)) → U11_gaaaaaa(T148, T149, T153, T154, X271, X272, X273, qs59_in_aa(T153, X271))
qs59_in_aa(.(T171, T172), X335) → U19_aa(T171, T172, X335, p56_in_aaaaaaa(T171, T172, X331, X332, X333, X334, X335))
p56_in_aaaaaaa(T148, T149, X269, X270, X271, X272, X273) → U9_aaaaaaa(T148, T149, X269, X270, X271, X272, X273, part20_in_aaaa(T148, T149, X269, X270))
part20_in_aaaa(T70, .(T73, T74), .(T73, X119), X120) → U2_aaaa(T70, T73, T74, X119, X120, gt10_in_aa(T70, T73))
U2_aaaa(T70, T73, T74, X119, X120, gt10_out_aa(T70, T73)) → part20_out_aaaa(T70, .(T73, T74), .(T73, X119), X120)
part20_in_aaaa(T70, .(T73, T77), .(T73, X119), X120) → U3_aaaa(T70, T73, T77, X119, X120, gt10_in_aa(T70, T73))
U3_aaaa(T70, T73, T77, X119, X120, gt10_out_aa(T70, T73)) → U4_aaaa(T70, T73, T77, X119, X120, part20_in_gaaa(T70, T77, X119, X120))
U4_aaaa(T70, T73, T77, X119, X120, part20_out_gaaa(T70, T77, X119, X120)) → part20_out_aaaa(T70, .(T73, T77), .(T73, X119), X120)
part20_in_aaaa(T95, .(T98, T99), X170, .(T98, X171)) → U5_aaaa(T95, T98, T99, X170, X171, le33_in_aa(T95, T98))
le33_in_aa(s(T113), s(T115)) → U8_aa(T113, T115, le33_in_aa(T113, T115))
le33_in_aa(0, s(T122)) → le33_out_aa(0, s(T122))
le33_in_aa(0, 0) → le33_out_aa(0, 0)
U8_aa(T113, T115, le33_out_aa(T113, T115)) → le33_out_aa(s(T113), s(T115))
U5_aaaa(T95, T98, T99, X170, X171, le33_out_aa(T95, T98)) → part20_out_aaaa(T95, .(T98, T99), X170, .(T98, X171))
part20_in_aaaa(T95, .(T98, T102), X170, .(T98, X171)) → U6_aaaa(T95, T98, T102, X170, X171, le33_in_aa(T95, T98))
U6_aaaa(T95, T98, T102, X170, X171, le33_out_aa(T95, T98)) → U7_aaaa(T95, T98, T102, X170, X171, part20_in_gaaa(T95, T102, X170, X171))
U7_aaaa(T95, T98, T102, X170, X171, part20_out_gaaa(T95, T102, X170, X171)) → part20_out_aaaa(T95, .(T98, T102), X170, .(T98, X171))
part20_in_aaaa(T128, [], [], []) → part20_out_aaaa(T128, [], [], [])
U9_aaaaaaa(T148, T149, X269, X270, X271, X272, X273, part20_out_aaaa(T148, T149, X269, X270)) → p56_out_aaaaaaa(T148, T149, X269, X270, X271, X272, X273)
p56_in_aaaaaaa(T148, T149, T153, T154, X271, X272, X273) → U10_aaaaaaa(T148, T149, T153, T154, X271, X272, X273, part20_in_aaaa(T148, T149, T153, T154))
U10_aaaaaaa(T148, T149, T153, T154, X271, X272, X273, part20_out_aaaa(T148, T149, T153, T154)) → U11_aaaaaaa(T148, T149, T153, T154, X271, X272, X273, qs59_in_aa(T153, X271))
qs59_in_aa([], []) → qs59_out_aa([], [])
U11_aaaaaaa(T148, T149, T153, T154, X271, X272, X273, qs59_out_aa(T153, X271)) → p56_out_aaaaaaa(T148, T149, T153, T154, X271, X272, X273)
p56_in_aaaaaaa(T148, T149, T153, T154, T160, X272, X273) → U12_aaaaaaa(T148, T149, T153, T154, T160, X272, X273, part20_in_aaaa(T148, T149, T153, T154))
U12_aaaaaaa(T148, T149, T153, T154, T160, X272, X273, part20_out_aaaa(T148, T149, T153, T154)) → U13_aaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_in_aa(T153, T160))
U13_aaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_out_aa(T153, T160)) → U14_aaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_in_aa(T154, X272))
U14_aaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_out_aa(T154, X272)) → p56_out_aaaaaaa(T148, T149, T153, T154, T160, X272, X273)
p56_in_aaaaaaa(T148, T149, T153, T154, T160, T178, X273) → U15_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, part20_in_aaaa(T148, T149, T153, T154))
U15_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, part20_out_aaaa(T148, T149, T153, T154)) → U16_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_in_aa(T153, T160))
U16_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_out_aa(T153, T160)) → U17_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_in_aa(T154, T178))
U17_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_out_aa(T154, T178)) → U18_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, app70_in_aaaa(T160, T148, T178, X273))
app70_in_aaaa(.(T201, T202), T203, T204, .(T201, X391)) → U20_aaaa(T201, T202, T203, T204, X391, app70_in_aaaa(T202, T203, T204, X391))
app70_in_aaaa([], T213, T214, .(T213, T214)) → app70_out_aaaa([], T213, T214, .(T213, T214))
U20_aaaa(T201, T202, T203, T204, X391, app70_out_aaaa(T202, T203, T204, X391)) → app70_out_aaaa(.(T201, T202), T203, T204, .(T201, X391))
U18_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, app70_out_aaaa(T160, T148, T178, X273)) → p56_out_aaaaaaa(T148, T149, T153, T154, T160, T178, X273)
U19_aa(T171, T172, X335, p56_out_aaaaaaa(T171, T172, X331, X332, X333, X334, X335)) → qs59_out_aa(.(T171, T172), X335)
U11_gaaaaaa(T148, T149, T153, T154, X271, X272, X273, qs59_out_aa(T153, X271)) → p56_out_gaaaaaa(T148, T149, T153, T154, X271, X272, X273)
p56_in_gaaaaaa(T148, T149, T153, T154, T160, X272, X273) → U12_gaaaaaa(T148, T149, T153, T154, T160, X272, X273, part20_in_gaaa(T148, T149, T153, T154))
U12_gaaaaaa(T148, T149, T153, T154, T160, X272, X273, part20_out_gaaa(T148, T149, T153, T154)) → U13_gaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_in_aa(T153, T160))
U13_gaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_out_aa(T153, T160)) → U14_gaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_in_aa(T154, X272))
U14_gaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_out_aa(T154, X272)) → p56_out_gaaaaaa(T148, T149, T153, T154, T160, X272, X273)
p56_in_gaaaaaa(T148, T149, T153, T154, T160, T178, X273) → U15_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, part20_in_gaaa(T148, T149, T153, T154))
U15_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, part20_out_gaaa(T148, T149, T153, T154)) → U16_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_in_aa(T153, T160))
U16_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_out_aa(T153, T160)) → U17_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_in_aa(T154, T178))
U17_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_out_aa(T154, T178)) → U18_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, app70_in_agaa(T160, T148, T178, X273))
app70_in_agaa(.(T201, T202), T203, T204, .(T201, X391)) → U20_agaa(T201, T202, T203, T204, X391, app70_in_agaa(T202, T203, T204, X391))
app70_in_agaa([], T213, T214, .(T213, T214)) → app70_out_agaa([], T213, T214, .(T213, T214))
U20_agaa(T201, T202, T203, T204, X391, app70_out_agaa(T202, T203, T204, X391)) → app70_out_agaa(.(T201, T202), T203, T204, .(T201, X391))
U18_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, app70_out_agaa(T160, T148, T178, X273)) → p56_out_gaaaaaa(T148, T149, T153, T154, T160, T178, X273)
U37_gaa(T148, T149, X273, p56_out_gaaaaaa(T148, T149, X269, X270, X271, X272, X273)) → qs51_out_gaa(T148, T149, X273)
U48_ag(T31, T33, T32, T8, qs51_out_gaa(T33, T53, X9)) → qs1_out_ag(.(T31, .(T33, T32)), T8)
U47_ag(T31, T33, T32, T8, part20_out_gaaa(T31, T32, T53, T54)) → U49_ag(T31, T33, T32, T8, T54, qs51_in_gaa(T33, T53, T131))
U49_ag(T31, T33, T32, T8, T54, qs51_out_gaa(T33, T53, T131)) → U50_ag(T31, T33, T32, T8, p52_in_aaagg(T54, X10, T131, T31, T8))
p52_in_aaagg(T54, X10, T131, T31, T8) → U33_aaagg(T54, X10, T131, T31, T8, qs80_in_aa(T54, X10))
qs80_in_aa(.(T230, T231), X452) → U22_aa(T230, T231, X452, part87_in_aaaa(T230, T231, X448, X449))
part87_in_aaaa(T256, .(T257, T258), .(T257, X503), X504) → U38_aaaa(T256, T257, T258, X503, X504, gt10_in_aa(T256, T257))
U38_aaaa(T256, T257, T258, X503, X504, gt10_out_aa(T256, T257)) → part87_out_aaaa(T256, .(T257, T258), .(T257, X503), X504)
part87_in_aaaa(T261, .(T257, T262), .(T257, X503), X504) → U39_aaaa(T261, T257, T262, X503, X504, gt10_in_aa(T261, T257))
U39_aaaa(T261, T257, T262, X503, X504, gt10_out_aa(T261, T257)) → U40_aaaa(T261, T257, T262, X503, X504, part20_in_gaaa(T261, T262, X503, X504))
U40_aaaa(T261, T257, T262, X503, X504, part20_out_gaaa(T261, T262, X503, X504)) → part87_out_aaaa(T261, .(T257, T262), .(T257, X503), X504)
part87_in_aaaa(T283, .(T284, T285), X554, .(T284, X555)) → U41_aaaa(T283, T284, T285, X554, X555, le100_in_aa(T283, T284))
le100_in_aa(s(T302), s(T303)) → U21_aa(T302, T303, le100_in_aa(T302, T303))
le100_in_aa(0, s(T310)) → le100_out_aa(0, s(T310))
le100_in_aa(0, 0) → le100_out_aa(0, 0)
U21_aa(T302, T303, le100_out_aa(T302, T303)) → le100_out_aa(s(T302), s(T303))
U41_aaaa(T283, T284, T285, X554, X555, le100_out_aa(T283, T284)) → part87_out_aaaa(T283, .(T284, T285), X554, .(T284, X555))
part87_in_aaaa(T288, .(T284, T289), X554, .(T284, X555)) → U42_aaaa(T288, T284, T289, X554, X555, le100_in_aa(T288, T284))
U42_aaaa(T288, T284, T289, X554, X555, le100_out_aa(T288, T284)) → U43_aaaa(T288, T284, T289, X554, X555, part20_in_gaaa(T288, T289, X554, X555))
U43_aaaa(T288, T284, T289, X554, X555, part20_out_gaaa(T288, T289, X554, X555)) → part87_out_aaaa(T288, .(T284, T289), X554, .(T284, X555))
part87_in_aaaa(T316, [], [], []) → part87_out_aaaa(T316, [], [], [])
U22_aa(T230, T231, X452, part87_out_aaaa(T230, T231, X448, X449)) → qs80_out_aa(.(T230, T231), X452)
qs80_in_aa(.(T237, T231), X452) → U23_aa(T237, T231, X452, part87_in_aaaa(T237, T231, T235, T236))
U23_aa(T237, T231, X452, part87_out_aaaa(T237, T231, T235, T236)) → U24_aa(T237, T231, X452, qs80_in_aa(T235, X450))
qs80_in_aa(.(T325, T231), X452) → U27_aa(T325, T231, X452, part87_in_aaaa(T325, T231, T235, T236))
U27_aa(T325, T231, X452, part87_out_aaaa(T325, T231, T235, T236)) → U28_aa(T325, T231, X452, T236, qs80_in_aa(T235, T319))
qs80_in_aa([], []) → qs80_out_aa([], [])
U28_aa(T325, T231, X452, T236, qs80_out_aa(T235, T319)) → U29_aa(T325, T231, X452, T319, qs80_in_aa(T236, T324))
U29_aa(T325, T231, X452, T319, qs80_out_aa(T236, T324)) → U30_aa(T325, T231, X452, app121_in_aaaa(T319, T325, T324, X452))
app121_in_aaaa(.(T348, T349), T352, T353, .(T348, X657)) → U31_aaaa(T348, T349, T352, T353, X657, app121_in_aaaa(T349, T352, T353, X657))
app121_in_aaaa([], T362, T363, .(T362, T363)) → app121_out_aaaa([], T362, T363, .(T362, T363))
U31_aaaa(T348, T349, T352, T353, X657, app121_out_aaaa(T349, T352, T353, X657)) → app121_out_aaaa(.(T348, T349), T352, T353, .(T348, X657))
U30_aa(T325, T231, X452, app121_out_aaaa(T319, T325, T324, X452)) → qs80_out_aa(.(T325, T231), X452)
U24_aa(T237, T231, X452, qs80_out_aa(T235, X450)) → qs80_out_aa(.(T237, T231), X452)
U23_aa(T237, T231, X452, part87_out_aaaa(T237, T231, T235, T236)) → U25_aa(T237, T231, X452, T236, qs80_in_aa(T235, T319))
U25_aa(T237, T231, X452, T236, qs80_out_aa(T235, T319)) → U26_aa(T237, T231, X452, qs80_in_aa(T236, X451))
U26_aa(T237, T231, X452, qs80_out_aa(T236, X451)) → qs80_out_aa(.(T237, T231), X452)
U33_aaagg(T54, X10, T131, T31, T8, qs80_out_aa(T54, X10)) → p52_out_aaagg(T54, X10, T131, T31, T8)
p52_in_aaagg(T54, T217, T131, T31, T8) → U34_aaagg(T54, T217, T131, T31, T8, qs80_in_aa(T54, T217))
U34_aaagg(T54, T217, T131, T31, T8, qs80_out_aa(T54, T217)) → U35_aaagg(T54, T217, T131, T31, T8, app81_in_agag(T131, T31, T217, T8))
app81_in_agag(.(T389, T390), T391, T394, .(T389, T393)) → U32_agag(T389, T390, T391, T394, T393, app81_in_agag(T390, T391, T394, T393))
app81_in_agag([], T404, T405, .(T404, T405)) → app81_out_agag([], T404, T405, .(T404, T405))
U32_agag(T389, T390, T391, T394, T393, app81_out_agag(T390, T391, T394, T393)) → app81_out_agag(.(T389, T390), T391, T394, .(T389, T393))
U35_aaagg(T54, T217, T131, T31, T8, app81_out_agag(T131, T31, T217, T8)) → p52_out_aaagg(T54, T217, T131, T31, T8)
U50_ag(T31, T33, T32, T8, p52_out_aaagg(T54, X10, T131, T31, T8)) → qs1_out_ag(.(T31, .(T33, T32)), T8)
qs1_in_ag(.(T421, .(T422, T423)), T8) → U51_ag(T421, T422, T423, T8, le100_in_aa(T421, T422))
U51_ag(T421, T422, T423, T8, le100_out_aa(T421, T422)) → qs1_out_ag(.(T421, .(T422, T423)), T8)
qs1_in_ag(.(T426, .(T428, T427)), T8) → U52_ag(T426, T428, T427, T8, le100_in_aa(T426, T428))
U52_ag(T426, T428, T427, T8, le100_out_aa(T426, T428)) → U53_ag(T426, T428, T427, T8, part20_in_gaaa(T426, T427, X740, X741))
U53_ag(T426, T428, T427, T8, part20_out_gaaa(T426, T427, X740, X741)) → qs1_out_ag(.(T426, .(T428, T427)), T8)
qs1_in_ag(.(T426, .(T436, T427)), T8) → U54_ag(T426, T436, T427, T8, le100_in_aa(T426, T436))
U54_ag(T426, T436, T427, T8, le100_out_aa(T426, T436)) → U55_ag(T426, T436, T427, T8, part20_in_gaaa(T426, T427, T434, T435))
U55_ag(T426, T436, T427, T8, part20_out_gaaa(T426, T427, T434, T435)) → U56_ag(T426, T436, T427, T8, qs80_in_aa(T434, X9))
U56_ag(T426, T436, T427, T8, qs80_out_aa(T434, X9)) → qs1_out_ag(.(T426, .(T436, T427)), T8)
U55_ag(T426, T436, T427, T8, part20_out_gaaa(T426, T427, T434, T435)) → U57_ag(T426, T436, T427, T8, T435, qs80_in_aa(T434, T442))
U57_ag(T426, T436, T427, T8, T435, qs80_out_aa(T434, T442)) → U58_ag(T426, T436, T427, T8, p52_in_aaagg(.(T436, T435), X10, T442, T426, T8))
U58_ag(T426, T436, T427, T8, p52_out_aaagg(.(T436, T435), X10, T442, T426, T8)) → qs1_out_ag(.(T426, .(T436, T427)), T8)
qs1_in_ag(.(T452, []), T8) → U59_ag(T452, T8, qs155_in_a(X9))
qs155_in_a([]) → qs155_out_a([])
U59_ag(T452, T8, qs155_out_a(X9)) → qs1_out_ag(.(T452, []), T8)
qs1_in_ag(.(T452, []), T8) → U60_ag(T452, T8, qs155_in_a(T455))
U60_ag(T452, T8, qs155_out_a(T455)) → U61_ag(T452, T8, qs155_in_a(X10))
U61_ag(T452, T8, qs155_out_a(X10)) → qs1_out_ag(.(T452, []), T8)
U60_ag(T452, T8, qs155_out_a(T455)) → U62_ag(T452, T8, T455, qs155_in_a(T460))
U62_ag(T452, T8, T455, qs155_out_a(T460)) → U63_ag(T452, T8, app162_in_gagg(T455, T452, T460, T8))
app162_in_gagg(.(T486, T487), T491, T489, .(T486, T490)) → U36_gagg(T486, T487, T491, T489, T490, app162_in_gagg(T487, T491, T489, T490))
app162_in_gagg([], T501, T502, .(T501, T502)) → app162_out_gagg([], T501, T502, .(T501, T502))
U36_gagg(T486, T487, T491, T489, T490, app162_out_gagg(T487, T491, T489, T490)) → app162_out_gagg(.(T486, T487), T491, T489, .(T486, T490))
U63_ag(T452, T8, app162_out_gagg(T455, T452, T460, T8)) → qs1_out_ag(.(T452, []), T8)
qs1_in_ag([], []) → qs1_out_ag([], [])
APP162_IN_GAGG(.(T486, T487), T491, T489, .(T486, T490)) → APP162_IN_GAGG(T487, T491, T489, T490)
qs1_in_ag(.(T26, .(T27, T28)), T8) → U44_ag(T26, T27, T28, T8, gt10_in_aa(T26, T27))
gt10_in_aa(s(T46), s(T47)) → U1_aa(T46, T47, gt10_in_aa(T46, T47))
gt10_in_aa(s(0), 0) → gt10_out_aa(s(0), 0)
U1_aa(T46, T47, gt10_out_aa(T46, T47)) → gt10_out_aa(s(T46), s(T47))
U44_ag(T26, T27, T28, T8, gt10_out_aa(T26, T27)) → qs1_out_ag(.(T26, .(T27, T28)), T8)
qs1_in_ag(.(T31, .(T33, T32)), T8) → U45_ag(T31, T33, T32, T8, gt10_in_aa(T31, T33))
U45_ag(T31, T33, T32, T8, gt10_out_aa(T31, T33)) → U46_ag(T31, T33, T32, T8, part20_in_gaaa(T31, T32, X47, X48))
part20_in_gaaa(T70, .(T73, T74), .(T73, X119), X120) → U2_gaaa(T70, T73, T74, X119, X120, gt10_in_ga(T70, T73))
gt10_in_ga(s(T46), s(T47)) → U1_ga(T46, T47, gt10_in_ga(T46, T47))
gt10_in_ga(s(0), 0) → gt10_out_ga(s(0), 0)
U1_ga(T46, T47, gt10_out_ga(T46, T47)) → gt10_out_ga(s(T46), s(T47))
U2_gaaa(T70, T73, T74, X119, X120, gt10_out_ga(T70, T73)) → part20_out_gaaa(T70, .(T73, T74), .(T73, X119), X120)
part20_in_gaaa(T70, .(T73, T77), .(T73, X119), X120) → U3_gaaa(T70, T73, T77, X119, X120, gt10_in_ga(T70, T73))
U3_gaaa(T70, T73, T77, X119, X120, gt10_out_ga(T70, T73)) → U4_gaaa(T70, T73, T77, X119, X120, part20_in_gaaa(T70, T77, X119, X120))
part20_in_gaaa(T95, .(T98, T99), X170, .(T98, X171)) → U5_gaaa(T95, T98, T99, X170, X171, le33_in_ga(T95, T98))
le33_in_ga(s(T113), s(T115)) → U8_ga(T113, T115, le33_in_ga(T113, T115))
le33_in_ga(0, s(T122)) → le33_out_ga(0, s(T122))
le33_in_ga(0, 0) → le33_out_ga(0, 0)
U8_ga(T113, T115, le33_out_ga(T113, T115)) → le33_out_ga(s(T113), s(T115))
U5_gaaa(T95, T98, T99, X170, X171, le33_out_ga(T95, T98)) → part20_out_gaaa(T95, .(T98, T99), X170, .(T98, X171))
part20_in_gaaa(T95, .(T98, T102), X170, .(T98, X171)) → U6_gaaa(T95, T98, T102, X170, X171, le33_in_ga(T95, T98))
U6_gaaa(T95, T98, T102, X170, X171, le33_out_ga(T95, T98)) → U7_gaaa(T95, T98, T102, X170, X171, part20_in_gaaa(T95, T102, X170, X171))
part20_in_gaaa(T128, [], [], []) → part20_out_gaaa(T128, [], [], [])
U7_gaaa(T95, T98, T102, X170, X171, part20_out_gaaa(T95, T102, X170, X171)) → part20_out_gaaa(T95, .(T98, T102), X170, .(T98, X171))
U4_gaaa(T70, T73, T77, X119, X120, part20_out_gaaa(T70, T77, X119, X120)) → part20_out_gaaa(T70, .(T73, T77), .(T73, X119), X120)
U46_ag(T31, T33, T32, T8, part20_out_gaaa(T31, T32, X47, X48)) → qs1_out_ag(.(T31, .(T33, T32)), T8)
U45_ag(T31, T33, T32, T8, gt10_out_aa(T31, T33)) → U47_ag(T31, T33, T32, T8, part20_in_gaaa(T31, T32, T53, T54))
U47_ag(T31, T33, T32, T8, part20_out_gaaa(T31, T32, T53, T54)) → U48_ag(T31, T33, T32, T8, qs51_in_gaa(T33, T53, X9))
qs51_in_gaa(T148, T149, X273) → U37_gaa(T148, T149, X273, p56_in_gaaaaaa(T148, T149, X269, X270, X271, X272, X273))
p56_in_gaaaaaa(T148, T149, X269, X270, X271, X272, X273) → U9_gaaaaaa(T148, T149, X269, X270, X271, X272, X273, part20_in_gaaa(T148, T149, X269, X270))
U9_gaaaaaa(T148, T149, X269, X270, X271, X272, X273, part20_out_gaaa(T148, T149, X269, X270)) → p56_out_gaaaaaa(T148, T149, X269, X270, X271, X272, X273)
p56_in_gaaaaaa(T148, T149, T153, T154, X271, X272, X273) → U10_gaaaaaa(T148, T149, T153, T154, X271, X272, X273, part20_in_gaaa(T148, T149, T153, T154))
U10_gaaaaaa(T148, T149, T153, T154, X271, X272, X273, part20_out_gaaa(T148, T149, T153, T154)) → U11_gaaaaaa(T148, T149, T153, T154, X271, X272, X273, qs59_in_aa(T153, X271))
qs59_in_aa(.(T171, T172), X335) → U19_aa(T171, T172, X335, p56_in_aaaaaaa(T171, T172, X331, X332, X333, X334, X335))
p56_in_aaaaaaa(T148, T149, X269, X270, X271, X272, X273) → U9_aaaaaaa(T148, T149, X269, X270, X271, X272, X273, part20_in_aaaa(T148, T149, X269, X270))
part20_in_aaaa(T70, .(T73, T74), .(T73, X119), X120) → U2_aaaa(T70, T73, T74, X119, X120, gt10_in_aa(T70, T73))
U2_aaaa(T70, T73, T74, X119, X120, gt10_out_aa(T70, T73)) → part20_out_aaaa(T70, .(T73, T74), .(T73, X119), X120)
part20_in_aaaa(T70, .(T73, T77), .(T73, X119), X120) → U3_aaaa(T70, T73, T77, X119, X120, gt10_in_aa(T70, T73))
U3_aaaa(T70, T73, T77, X119, X120, gt10_out_aa(T70, T73)) → U4_aaaa(T70, T73, T77, X119, X120, part20_in_gaaa(T70, T77, X119, X120))
U4_aaaa(T70, T73, T77, X119, X120, part20_out_gaaa(T70, T77, X119, X120)) → part20_out_aaaa(T70, .(T73, T77), .(T73, X119), X120)
part20_in_aaaa(T95, .(T98, T99), X170, .(T98, X171)) → U5_aaaa(T95, T98, T99, X170, X171, le33_in_aa(T95, T98))
le33_in_aa(s(T113), s(T115)) → U8_aa(T113, T115, le33_in_aa(T113, T115))
le33_in_aa(0, s(T122)) → le33_out_aa(0, s(T122))
le33_in_aa(0, 0) → le33_out_aa(0, 0)
U8_aa(T113, T115, le33_out_aa(T113, T115)) → le33_out_aa(s(T113), s(T115))
U5_aaaa(T95, T98, T99, X170, X171, le33_out_aa(T95, T98)) → part20_out_aaaa(T95, .(T98, T99), X170, .(T98, X171))
part20_in_aaaa(T95, .(T98, T102), X170, .(T98, X171)) → U6_aaaa(T95, T98, T102, X170, X171, le33_in_aa(T95, T98))
U6_aaaa(T95, T98, T102, X170, X171, le33_out_aa(T95, T98)) → U7_aaaa(T95, T98, T102, X170, X171, part20_in_gaaa(T95, T102, X170, X171))
U7_aaaa(T95, T98, T102, X170, X171, part20_out_gaaa(T95, T102, X170, X171)) → part20_out_aaaa(T95, .(T98, T102), X170, .(T98, X171))
part20_in_aaaa(T128, [], [], []) → part20_out_aaaa(T128, [], [], [])
U9_aaaaaaa(T148, T149, X269, X270, X271, X272, X273, part20_out_aaaa(T148, T149, X269, X270)) → p56_out_aaaaaaa(T148, T149, X269, X270, X271, X272, X273)
p56_in_aaaaaaa(T148, T149, T153, T154, X271, X272, X273) → U10_aaaaaaa(T148, T149, T153, T154, X271, X272, X273, part20_in_aaaa(T148, T149, T153, T154))
U10_aaaaaaa(T148, T149, T153, T154, X271, X272, X273, part20_out_aaaa(T148, T149, T153, T154)) → U11_aaaaaaa(T148, T149, T153, T154, X271, X272, X273, qs59_in_aa(T153, X271))
qs59_in_aa([], []) → qs59_out_aa([], [])
U11_aaaaaaa(T148, T149, T153, T154, X271, X272, X273, qs59_out_aa(T153, X271)) → p56_out_aaaaaaa(T148, T149, T153, T154, X271, X272, X273)
p56_in_aaaaaaa(T148, T149, T153, T154, T160, X272, X273) → U12_aaaaaaa(T148, T149, T153, T154, T160, X272, X273, part20_in_aaaa(T148, T149, T153, T154))
U12_aaaaaaa(T148, T149, T153, T154, T160, X272, X273, part20_out_aaaa(T148, T149, T153, T154)) → U13_aaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_in_aa(T153, T160))
U13_aaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_out_aa(T153, T160)) → U14_aaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_in_aa(T154, X272))
U14_aaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_out_aa(T154, X272)) → p56_out_aaaaaaa(T148, T149, T153, T154, T160, X272, X273)
p56_in_aaaaaaa(T148, T149, T153, T154, T160, T178, X273) → U15_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, part20_in_aaaa(T148, T149, T153, T154))
U15_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, part20_out_aaaa(T148, T149, T153, T154)) → U16_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_in_aa(T153, T160))
U16_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_out_aa(T153, T160)) → U17_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_in_aa(T154, T178))
U17_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_out_aa(T154, T178)) → U18_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, app70_in_aaaa(T160, T148, T178, X273))
app70_in_aaaa(.(T201, T202), T203, T204, .(T201, X391)) → U20_aaaa(T201, T202, T203, T204, X391, app70_in_aaaa(T202, T203, T204, X391))
app70_in_aaaa([], T213, T214, .(T213, T214)) → app70_out_aaaa([], T213, T214, .(T213, T214))
U20_aaaa(T201, T202, T203, T204, X391, app70_out_aaaa(T202, T203, T204, X391)) → app70_out_aaaa(.(T201, T202), T203, T204, .(T201, X391))
U18_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, app70_out_aaaa(T160, T148, T178, X273)) → p56_out_aaaaaaa(T148, T149, T153, T154, T160, T178, X273)
U19_aa(T171, T172, X335, p56_out_aaaaaaa(T171, T172, X331, X332, X333, X334, X335)) → qs59_out_aa(.(T171, T172), X335)
U11_gaaaaaa(T148, T149, T153, T154, X271, X272, X273, qs59_out_aa(T153, X271)) → p56_out_gaaaaaa(T148, T149, T153, T154, X271, X272, X273)
p56_in_gaaaaaa(T148, T149, T153, T154, T160, X272, X273) → U12_gaaaaaa(T148, T149, T153, T154, T160, X272, X273, part20_in_gaaa(T148, T149, T153, T154))
U12_gaaaaaa(T148, T149, T153, T154, T160, X272, X273, part20_out_gaaa(T148, T149, T153, T154)) → U13_gaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_in_aa(T153, T160))
U13_gaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_out_aa(T153, T160)) → U14_gaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_in_aa(T154, X272))
U14_gaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_out_aa(T154, X272)) → p56_out_gaaaaaa(T148, T149, T153, T154, T160, X272, X273)
p56_in_gaaaaaa(T148, T149, T153, T154, T160, T178, X273) → U15_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, part20_in_gaaa(T148, T149, T153, T154))
U15_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, part20_out_gaaa(T148, T149, T153, T154)) → U16_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_in_aa(T153, T160))
U16_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_out_aa(T153, T160)) → U17_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_in_aa(T154, T178))
U17_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_out_aa(T154, T178)) → U18_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, app70_in_agaa(T160, T148, T178, X273))
app70_in_agaa(.(T201, T202), T203, T204, .(T201, X391)) → U20_agaa(T201, T202, T203, T204, X391, app70_in_agaa(T202, T203, T204, X391))
app70_in_agaa([], T213, T214, .(T213, T214)) → app70_out_agaa([], T213, T214, .(T213, T214))
U20_agaa(T201, T202, T203, T204, X391, app70_out_agaa(T202, T203, T204, X391)) → app70_out_agaa(.(T201, T202), T203, T204, .(T201, X391))
U18_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, app70_out_agaa(T160, T148, T178, X273)) → p56_out_gaaaaaa(T148, T149, T153, T154, T160, T178, X273)
U37_gaa(T148, T149, X273, p56_out_gaaaaaa(T148, T149, X269, X270, X271, X272, X273)) → qs51_out_gaa(T148, T149, X273)
U48_ag(T31, T33, T32, T8, qs51_out_gaa(T33, T53, X9)) → qs1_out_ag(.(T31, .(T33, T32)), T8)
U47_ag(T31, T33, T32, T8, part20_out_gaaa(T31, T32, T53, T54)) → U49_ag(T31, T33, T32, T8, T54, qs51_in_gaa(T33, T53, T131))
U49_ag(T31, T33, T32, T8, T54, qs51_out_gaa(T33, T53, T131)) → U50_ag(T31, T33, T32, T8, p52_in_aaagg(T54, X10, T131, T31, T8))
p52_in_aaagg(T54, X10, T131, T31, T8) → U33_aaagg(T54, X10, T131, T31, T8, qs80_in_aa(T54, X10))
qs80_in_aa(.(T230, T231), X452) → U22_aa(T230, T231, X452, part87_in_aaaa(T230, T231, X448, X449))
part87_in_aaaa(T256, .(T257, T258), .(T257, X503), X504) → U38_aaaa(T256, T257, T258, X503, X504, gt10_in_aa(T256, T257))
U38_aaaa(T256, T257, T258, X503, X504, gt10_out_aa(T256, T257)) → part87_out_aaaa(T256, .(T257, T258), .(T257, X503), X504)
part87_in_aaaa(T261, .(T257, T262), .(T257, X503), X504) → U39_aaaa(T261, T257, T262, X503, X504, gt10_in_aa(T261, T257))
U39_aaaa(T261, T257, T262, X503, X504, gt10_out_aa(T261, T257)) → U40_aaaa(T261, T257, T262, X503, X504, part20_in_gaaa(T261, T262, X503, X504))
U40_aaaa(T261, T257, T262, X503, X504, part20_out_gaaa(T261, T262, X503, X504)) → part87_out_aaaa(T261, .(T257, T262), .(T257, X503), X504)
part87_in_aaaa(T283, .(T284, T285), X554, .(T284, X555)) → U41_aaaa(T283, T284, T285, X554, X555, le100_in_aa(T283, T284))
le100_in_aa(s(T302), s(T303)) → U21_aa(T302, T303, le100_in_aa(T302, T303))
le100_in_aa(0, s(T310)) → le100_out_aa(0, s(T310))
le100_in_aa(0, 0) → le100_out_aa(0, 0)
U21_aa(T302, T303, le100_out_aa(T302, T303)) → le100_out_aa(s(T302), s(T303))
U41_aaaa(T283, T284, T285, X554, X555, le100_out_aa(T283, T284)) → part87_out_aaaa(T283, .(T284, T285), X554, .(T284, X555))
part87_in_aaaa(T288, .(T284, T289), X554, .(T284, X555)) → U42_aaaa(T288, T284, T289, X554, X555, le100_in_aa(T288, T284))
U42_aaaa(T288, T284, T289, X554, X555, le100_out_aa(T288, T284)) → U43_aaaa(T288, T284, T289, X554, X555, part20_in_gaaa(T288, T289, X554, X555))
U43_aaaa(T288, T284, T289, X554, X555, part20_out_gaaa(T288, T289, X554, X555)) → part87_out_aaaa(T288, .(T284, T289), X554, .(T284, X555))
part87_in_aaaa(T316, [], [], []) → part87_out_aaaa(T316, [], [], [])
U22_aa(T230, T231, X452, part87_out_aaaa(T230, T231, X448, X449)) → qs80_out_aa(.(T230, T231), X452)
qs80_in_aa(.(T237, T231), X452) → U23_aa(T237, T231, X452, part87_in_aaaa(T237, T231, T235, T236))
U23_aa(T237, T231, X452, part87_out_aaaa(T237, T231, T235, T236)) → U24_aa(T237, T231, X452, qs80_in_aa(T235, X450))
qs80_in_aa(.(T325, T231), X452) → U27_aa(T325, T231, X452, part87_in_aaaa(T325, T231, T235, T236))
U27_aa(T325, T231, X452, part87_out_aaaa(T325, T231, T235, T236)) → U28_aa(T325, T231, X452, T236, qs80_in_aa(T235, T319))
qs80_in_aa([], []) → qs80_out_aa([], [])
U28_aa(T325, T231, X452, T236, qs80_out_aa(T235, T319)) → U29_aa(T325, T231, X452, T319, qs80_in_aa(T236, T324))
U29_aa(T325, T231, X452, T319, qs80_out_aa(T236, T324)) → U30_aa(T325, T231, X452, app121_in_aaaa(T319, T325, T324, X452))
app121_in_aaaa(.(T348, T349), T352, T353, .(T348, X657)) → U31_aaaa(T348, T349, T352, T353, X657, app121_in_aaaa(T349, T352, T353, X657))
app121_in_aaaa([], T362, T363, .(T362, T363)) → app121_out_aaaa([], T362, T363, .(T362, T363))
U31_aaaa(T348, T349, T352, T353, X657, app121_out_aaaa(T349, T352, T353, X657)) → app121_out_aaaa(.(T348, T349), T352, T353, .(T348, X657))
U30_aa(T325, T231, X452, app121_out_aaaa(T319, T325, T324, X452)) → qs80_out_aa(.(T325, T231), X452)
U24_aa(T237, T231, X452, qs80_out_aa(T235, X450)) → qs80_out_aa(.(T237, T231), X452)
U23_aa(T237, T231, X452, part87_out_aaaa(T237, T231, T235, T236)) → U25_aa(T237, T231, X452, T236, qs80_in_aa(T235, T319))
U25_aa(T237, T231, X452, T236, qs80_out_aa(T235, T319)) → U26_aa(T237, T231, X452, qs80_in_aa(T236, X451))
U26_aa(T237, T231, X452, qs80_out_aa(T236, X451)) → qs80_out_aa(.(T237, T231), X452)
U33_aaagg(T54, X10, T131, T31, T8, qs80_out_aa(T54, X10)) → p52_out_aaagg(T54, X10, T131, T31, T8)
p52_in_aaagg(T54, T217, T131, T31, T8) → U34_aaagg(T54, T217, T131, T31, T8, qs80_in_aa(T54, T217))
U34_aaagg(T54, T217, T131, T31, T8, qs80_out_aa(T54, T217)) → U35_aaagg(T54, T217, T131, T31, T8, app81_in_agag(T131, T31, T217, T8))
app81_in_agag(.(T389, T390), T391, T394, .(T389, T393)) → U32_agag(T389, T390, T391, T394, T393, app81_in_agag(T390, T391, T394, T393))
app81_in_agag([], T404, T405, .(T404, T405)) → app81_out_agag([], T404, T405, .(T404, T405))
U32_agag(T389, T390, T391, T394, T393, app81_out_agag(T390, T391, T394, T393)) → app81_out_agag(.(T389, T390), T391, T394, .(T389, T393))
U35_aaagg(T54, T217, T131, T31, T8, app81_out_agag(T131, T31, T217, T8)) → p52_out_aaagg(T54, T217, T131, T31, T8)
U50_ag(T31, T33, T32, T8, p52_out_aaagg(T54, X10, T131, T31, T8)) → qs1_out_ag(.(T31, .(T33, T32)), T8)
qs1_in_ag(.(T421, .(T422, T423)), T8) → U51_ag(T421, T422, T423, T8, le100_in_aa(T421, T422))
U51_ag(T421, T422, T423, T8, le100_out_aa(T421, T422)) → qs1_out_ag(.(T421, .(T422, T423)), T8)
qs1_in_ag(.(T426, .(T428, T427)), T8) → U52_ag(T426, T428, T427, T8, le100_in_aa(T426, T428))
U52_ag(T426, T428, T427, T8, le100_out_aa(T426, T428)) → U53_ag(T426, T428, T427, T8, part20_in_gaaa(T426, T427, X740, X741))
U53_ag(T426, T428, T427, T8, part20_out_gaaa(T426, T427, X740, X741)) → qs1_out_ag(.(T426, .(T428, T427)), T8)
qs1_in_ag(.(T426, .(T436, T427)), T8) → U54_ag(T426, T436, T427, T8, le100_in_aa(T426, T436))
U54_ag(T426, T436, T427, T8, le100_out_aa(T426, T436)) → U55_ag(T426, T436, T427, T8, part20_in_gaaa(T426, T427, T434, T435))
U55_ag(T426, T436, T427, T8, part20_out_gaaa(T426, T427, T434, T435)) → U56_ag(T426, T436, T427, T8, qs80_in_aa(T434, X9))
U56_ag(T426, T436, T427, T8, qs80_out_aa(T434, X9)) → qs1_out_ag(.(T426, .(T436, T427)), T8)
U55_ag(T426, T436, T427, T8, part20_out_gaaa(T426, T427, T434, T435)) → U57_ag(T426, T436, T427, T8, T435, qs80_in_aa(T434, T442))
U57_ag(T426, T436, T427, T8, T435, qs80_out_aa(T434, T442)) → U58_ag(T426, T436, T427, T8, p52_in_aaagg(.(T436, T435), X10, T442, T426, T8))
U58_ag(T426, T436, T427, T8, p52_out_aaagg(.(T436, T435), X10, T442, T426, T8)) → qs1_out_ag(.(T426, .(T436, T427)), T8)
qs1_in_ag(.(T452, []), T8) → U59_ag(T452, T8, qs155_in_a(X9))
qs155_in_a([]) → qs155_out_a([])
U59_ag(T452, T8, qs155_out_a(X9)) → qs1_out_ag(.(T452, []), T8)
qs1_in_ag(.(T452, []), T8) → U60_ag(T452, T8, qs155_in_a(T455))
U60_ag(T452, T8, qs155_out_a(T455)) → U61_ag(T452, T8, qs155_in_a(X10))
U61_ag(T452, T8, qs155_out_a(X10)) → qs1_out_ag(.(T452, []), T8)
U60_ag(T452, T8, qs155_out_a(T455)) → U62_ag(T452, T8, T455, qs155_in_a(T460))
U62_ag(T452, T8, T455, qs155_out_a(T460)) → U63_ag(T452, T8, app162_in_gagg(T455, T452, T460, T8))
app162_in_gagg(.(T486, T487), T491, T489, .(T486, T490)) → U36_gagg(T486, T487, T491, T489, T490, app162_in_gagg(T487, T491, T489, T490))
app162_in_gagg([], T501, T502, .(T501, T502)) → app162_out_gagg([], T501, T502, .(T501, T502))
U36_gagg(T486, T487, T491, T489, T490, app162_out_gagg(T487, T491, T489, T490)) → app162_out_gagg(.(T486, T487), T491, T489, .(T486, T490))
U63_ag(T452, T8, app162_out_gagg(T455, T452, T460, T8)) → qs1_out_ag(.(T452, []), T8)
qs1_in_ag([], []) → qs1_out_ag([], [])
APP162_IN_GAGG(.(T486, T487), T491, T489, .(T486, T490)) → APP162_IN_GAGG(T487, T491, T489, T490)
APP162_IN_GAGG(.(T486, T487), T489, .(T486, T490)) → APP162_IN_GAGG(T487, T489, T490)
From the DPs we obtained the following set of size-change graphs:
APP81_IN_AGAG(.(T389, T390), T391, T394, .(T389, T393)) → APP81_IN_AGAG(T390, T391, T394, T393)
qs1_in_ag(.(T26, .(T27, T28)), T8) → U44_ag(T26, T27, T28, T8, gt10_in_aa(T26, T27))
gt10_in_aa(s(T46), s(T47)) → U1_aa(T46, T47, gt10_in_aa(T46, T47))
gt10_in_aa(s(0), 0) → gt10_out_aa(s(0), 0)
U1_aa(T46, T47, gt10_out_aa(T46, T47)) → gt10_out_aa(s(T46), s(T47))
U44_ag(T26, T27, T28, T8, gt10_out_aa(T26, T27)) → qs1_out_ag(.(T26, .(T27, T28)), T8)
qs1_in_ag(.(T31, .(T33, T32)), T8) → U45_ag(T31, T33, T32, T8, gt10_in_aa(T31, T33))
U45_ag(T31, T33, T32, T8, gt10_out_aa(T31, T33)) → U46_ag(T31, T33, T32, T8, part20_in_gaaa(T31, T32, X47, X48))
part20_in_gaaa(T70, .(T73, T74), .(T73, X119), X120) → U2_gaaa(T70, T73, T74, X119, X120, gt10_in_ga(T70, T73))
gt10_in_ga(s(T46), s(T47)) → U1_ga(T46, T47, gt10_in_ga(T46, T47))
gt10_in_ga(s(0), 0) → gt10_out_ga(s(0), 0)
U1_ga(T46, T47, gt10_out_ga(T46, T47)) → gt10_out_ga(s(T46), s(T47))
U2_gaaa(T70, T73, T74, X119, X120, gt10_out_ga(T70, T73)) → part20_out_gaaa(T70, .(T73, T74), .(T73, X119), X120)
part20_in_gaaa(T70, .(T73, T77), .(T73, X119), X120) → U3_gaaa(T70, T73, T77, X119, X120, gt10_in_ga(T70, T73))
U3_gaaa(T70, T73, T77, X119, X120, gt10_out_ga(T70, T73)) → U4_gaaa(T70, T73, T77, X119, X120, part20_in_gaaa(T70, T77, X119, X120))
part20_in_gaaa(T95, .(T98, T99), X170, .(T98, X171)) → U5_gaaa(T95, T98, T99, X170, X171, le33_in_ga(T95, T98))
le33_in_ga(s(T113), s(T115)) → U8_ga(T113, T115, le33_in_ga(T113, T115))
le33_in_ga(0, s(T122)) → le33_out_ga(0, s(T122))
le33_in_ga(0, 0) → le33_out_ga(0, 0)
U8_ga(T113, T115, le33_out_ga(T113, T115)) → le33_out_ga(s(T113), s(T115))
U5_gaaa(T95, T98, T99, X170, X171, le33_out_ga(T95, T98)) → part20_out_gaaa(T95, .(T98, T99), X170, .(T98, X171))
part20_in_gaaa(T95, .(T98, T102), X170, .(T98, X171)) → U6_gaaa(T95, T98, T102, X170, X171, le33_in_ga(T95, T98))
U6_gaaa(T95, T98, T102, X170, X171, le33_out_ga(T95, T98)) → U7_gaaa(T95, T98, T102, X170, X171, part20_in_gaaa(T95, T102, X170, X171))
part20_in_gaaa(T128, [], [], []) → part20_out_gaaa(T128, [], [], [])
U7_gaaa(T95, T98, T102, X170, X171, part20_out_gaaa(T95, T102, X170, X171)) → part20_out_gaaa(T95, .(T98, T102), X170, .(T98, X171))
U4_gaaa(T70, T73, T77, X119, X120, part20_out_gaaa(T70, T77, X119, X120)) → part20_out_gaaa(T70, .(T73, T77), .(T73, X119), X120)
U46_ag(T31, T33, T32, T8, part20_out_gaaa(T31, T32, X47, X48)) → qs1_out_ag(.(T31, .(T33, T32)), T8)
U45_ag(T31, T33, T32, T8, gt10_out_aa(T31, T33)) → U47_ag(T31, T33, T32, T8, part20_in_gaaa(T31, T32, T53, T54))
U47_ag(T31, T33, T32, T8, part20_out_gaaa(T31, T32, T53, T54)) → U48_ag(T31, T33, T32, T8, qs51_in_gaa(T33, T53, X9))
qs51_in_gaa(T148, T149, X273) → U37_gaa(T148, T149, X273, p56_in_gaaaaaa(T148, T149, X269, X270, X271, X272, X273))
p56_in_gaaaaaa(T148, T149, X269, X270, X271, X272, X273) → U9_gaaaaaa(T148, T149, X269, X270, X271, X272, X273, part20_in_gaaa(T148, T149, X269, X270))
U9_gaaaaaa(T148, T149, X269, X270, X271, X272, X273, part20_out_gaaa(T148, T149, X269, X270)) → p56_out_gaaaaaa(T148, T149, X269, X270, X271, X272, X273)
p56_in_gaaaaaa(T148, T149, T153, T154, X271, X272, X273) → U10_gaaaaaa(T148, T149, T153, T154, X271, X272, X273, part20_in_gaaa(T148, T149, T153, T154))
U10_gaaaaaa(T148, T149, T153, T154, X271, X272, X273, part20_out_gaaa(T148, T149, T153, T154)) → U11_gaaaaaa(T148, T149, T153, T154, X271, X272, X273, qs59_in_aa(T153, X271))
qs59_in_aa(.(T171, T172), X335) → U19_aa(T171, T172, X335, p56_in_aaaaaaa(T171, T172, X331, X332, X333, X334, X335))
p56_in_aaaaaaa(T148, T149, X269, X270, X271, X272, X273) → U9_aaaaaaa(T148, T149, X269, X270, X271, X272, X273, part20_in_aaaa(T148, T149, X269, X270))
part20_in_aaaa(T70, .(T73, T74), .(T73, X119), X120) → U2_aaaa(T70, T73, T74, X119, X120, gt10_in_aa(T70, T73))
U2_aaaa(T70, T73, T74, X119, X120, gt10_out_aa(T70, T73)) → part20_out_aaaa(T70, .(T73, T74), .(T73, X119), X120)
part20_in_aaaa(T70, .(T73, T77), .(T73, X119), X120) → U3_aaaa(T70, T73, T77, X119, X120, gt10_in_aa(T70, T73))
U3_aaaa(T70, T73, T77, X119, X120, gt10_out_aa(T70, T73)) → U4_aaaa(T70, T73, T77, X119, X120, part20_in_gaaa(T70, T77, X119, X120))
U4_aaaa(T70, T73, T77, X119, X120, part20_out_gaaa(T70, T77, X119, X120)) → part20_out_aaaa(T70, .(T73, T77), .(T73, X119), X120)
part20_in_aaaa(T95, .(T98, T99), X170, .(T98, X171)) → U5_aaaa(T95, T98, T99, X170, X171, le33_in_aa(T95, T98))
le33_in_aa(s(T113), s(T115)) → U8_aa(T113, T115, le33_in_aa(T113, T115))
le33_in_aa(0, s(T122)) → le33_out_aa(0, s(T122))
le33_in_aa(0, 0) → le33_out_aa(0, 0)
U8_aa(T113, T115, le33_out_aa(T113, T115)) → le33_out_aa(s(T113), s(T115))
U5_aaaa(T95, T98, T99, X170, X171, le33_out_aa(T95, T98)) → part20_out_aaaa(T95, .(T98, T99), X170, .(T98, X171))
part20_in_aaaa(T95, .(T98, T102), X170, .(T98, X171)) → U6_aaaa(T95, T98, T102, X170, X171, le33_in_aa(T95, T98))
U6_aaaa(T95, T98, T102, X170, X171, le33_out_aa(T95, T98)) → U7_aaaa(T95, T98, T102, X170, X171, part20_in_gaaa(T95, T102, X170, X171))
U7_aaaa(T95, T98, T102, X170, X171, part20_out_gaaa(T95, T102, X170, X171)) → part20_out_aaaa(T95, .(T98, T102), X170, .(T98, X171))
part20_in_aaaa(T128, [], [], []) → part20_out_aaaa(T128, [], [], [])
U9_aaaaaaa(T148, T149, X269, X270, X271, X272, X273, part20_out_aaaa(T148, T149, X269, X270)) → p56_out_aaaaaaa(T148, T149, X269, X270, X271, X272, X273)
p56_in_aaaaaaa(T148, T149, T153, T154, X271, X272, X273) → U10_aaaaaaa(T148, T149, T153, T154, X271, X272, X273, part20_in_aaaa(T148, T149, T153, T154))
U10_aaaaaaa(T148, T149, T153, T154, X271, X272, X273, part20_out_aaaa(T148, T149, T153, T154)) → U11_aaaaaaa(T148, T149, T153, T154, X271, X272, X273, qs59_in_aa(T153, X271))
qs59_in_aa([], []) → qs59_out_aa([], [])
U11_aaaaaaa(T148, T149, T153, T154, X271, X272, X273, qs59_out_aa(T153, X271)) → p56_out_aaaaaaa(T148, T149, T153, T154, X271, X272, X273)
p56_in_aaaaaaa(T148, T149, T153, T154, T160, X272, X273) → U12_aaaaaaa(T148, T149, T153, T154, T160, X272, X273, part20_in_aaaa(T148, T149, T153, T154))
U12_aaaaaaa(T148, T149, T153, T154, T160, X272, X273, part20_out_aaaa(T148, T149, T153, T154)) → U13_aaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_in_aa(T153, T160))
U13_aaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_out_aa(T153, T160)) → U14_aaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_in_aa(T154, X272))
U14_aaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_out_aa(T154, X272)) → p56_out_aaaaaaa(T148, T149, T153, T154, T160, X272, X273)
p56_in_aaaaaaa(T148, T149, T153, T154, T160, T178, X273) → U15_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, part20_in_aaaa(T148, T149, T153, T154))
U15_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, part20_out_aaaa(T148, T149, T153, T154)) → U16_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_in_aa(T153, T160))
U16_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_out_aa(T153, T160)) → U17_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_in_aa(T154, T178))
U17_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_out_aa(T154, T178)) → U18_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, app70_in_aaaa(T160, T148, T178, X273))
app70_in_aaaa(.(T201, T202), T203, T204, .(T201, X391)) → U20_aaaa(T201, T202, T203, T204, X391, app70_in_aaaa(T202, T203, T204, X391))
app70_in_aaaa([], T213, T214, .(T213, T214)) → app70_out_aaaa([], T213, T214, .(T213, T214))
U20_aaaa(T201, T202, T203, T204, X391, app70_out_aaaa(T202, T203, T204, X391)) → app70_out_aaaa(.(T201, T202), T203, T204, .(T201, X391))
U18_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, app70_out_aaaa(T160, T148, T178, X273)) → p56_out_aaaaaaa(T148, T149, T153, T154, T160, T178, X273)
U19_aa(T171, T172, X335, p56_out_aaaaaaa(T171, T172, X331, X332, X333, X334, X335)) → qs59_out_aa(.(T171, T172), X335)
U11_gaaaaaa(T148, T149, T153, T154, X271, X272, X273, qs59_out_aa(T153, X271)) → p56_out_gaaaaaa(T148, T149, T153, T154, X271, X272, X273)
p56_in_gaaaaaa(T148, T149, T153, T154, T160, X272, X273) → U12_gaaaaaa(T148, T149, T153, T154, T160, X272, X273, part20_in_gaaa(T148, T149, T153, T154))
U12_gaaaaaa(T148, T149, T153, T154, T160, X272, X273, part20_out_gaaa(T148, T149, T153, T154)) → U13_gaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_in_aa(T153, T160))
U13_gaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_out_aa(T153, T160)) → U14_gaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_in_aa(T154, X272))
U14_gaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_out_aa(T154, X272)) → p56_out_gaaaaaa(T148, T149, T153, T154, T160, X272, X273)
p56_in_gaaaaaa(T148, T149, T153, T154, T160, T178, X273) → U15_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, part20_in_gaaa(T148, T149, T153, T154))
U15_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, part20_out_gaaa(T148, T149, T153, T154)) → U16_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_in_aa(T153, T160))
U16_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_out_aa(T153, T160)) → U17_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_in_aa(T154, T178))
U17_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_out_aa(T154, T178)) → U18_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, app70_in_agaa(T160, T148, T178, X273))
app70_in_agaa(.(T201, T202), T203, T204, .(T201, X391)) → U20_agaa(T201, T202, T203, T204, X391, app70_in_agaa(T202, T203, T204, X391))
app70_in_agaa([], T213, T214, .(T213, T214)) → app70_out_agaa([], T213, T214, .(T213, T214))
U20_agaa(T201, T202, T203, T204, X391, app70_out_agaa(T202, T203, T204, X391)) → app70_out_agaa(.(T201, T202), T203, T204, .(T201, X391))
U18_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, app70_out_agaa(T160, T148, T178, X273)) → p56_out_gaaaaaa(T148, T149, T153, T154, T160, T178, X273)
U37_gaa(T148, T149, X273, p56_out_gaaaaaa(T148, T149, X269, X270, X271, X272, X273)) → qs51_out_gaa(T148, T149, X273)
U48_ag(T31, T33, T32, T8, qs51_out_gaa(T33, T53, X9)) → qs1_out_ag(.(T31, .(T33, T32)), T8)
U47_ag(T31, T33, T32, T8, part20_out_gaaa(T31, T32, T53, T54)) → U49_ag(T31, T33, T32, T8, T54, qs51_in_gaa(T33, T53, T131))
U49_ag(T31, T33, T32, T8, T54, qs51_out_gaa(T33, T53, T131)) → U50_ag(T31, T33, T32, T8, p52_in_aaagg(T54, X10, T131, T31, T8))
p52_in_aaagg(T54, X10, T131, T31, T8) → U33_aaagg(T54, X10, T131, T31, T8, qs80_in_aa(T54, X10))
qs80_in_aa(.(T230, T231), X452) → U22_aa(T230, T231, X452, part87_in_aaaa(T230, T231, X448, X449))
part87_in_aaaa(T256, .(T257, T258), .(T257, X503), X504) → U38_aaaa(T256, T257, T258, X503, X504, gt10_in_aa(T256, T257))
U38_aaaa(T256, T257, T258, X503, X504, gt10_out_aa(T256, T257)) → part87_out_aaaa(T256, .(T257, T258), .(T257, X503), X504)
part87_in_aaaa(T261, .(T257, T262), .(T257, X503), X504) → U39_aaaa(T261, T257, T262, X503, X504, gt10_in_aa(T261, T257))
U39_aaaa(T261, T257, T262, X503, X504, gt10_out_aa(T261, T257)) → U40_aaaa(T261, T257, T262, X503, X504, part20_in_gaaa(T261, T262, X503, X504))
U40_aaaa(T261, T257, T262, X503, X504, part20_out_gaaa(T261, T262, X503, X504)) → part87_out_aaaa(T261, .(T257, T262), .(T257, X503), X504)
part87_in_aaaa(T283, .(T284, T285), X554, .(T284, X555)) → U41_aaaa(T283, T284, T285, X554, X555, le100_in_aa(T283, T284))
le100_in_aa(s(T302), s(T303)) → U21_aa(T302, T303, le100_in_aa(T302, T303))
le100_in_aa(0, s(T310)) → le100_out_aa(0, s(T310))
le100_in_aa(0, 0) → le100_out_aa(0, 0)
U21_aa(T302, T303, le100_out_aa(T302, T303)) → le100_out_aa(s(T302), s(T303))
U41_aaaa(T283, T284, T285, X554, X555, le100_out_aa(T283, T284)) → part87_out_aaaa(T283, .(T284, T285), X554, .(T284, X555))
part87_in_aaaa(T288, .(T284, T289), X554, .(T284, X555)) → U42_aaaa(T288, T284, T289, X554, X555, le100_in_aa(T288, T284))
U42_aaaa(T288, T284, T289, X554, X555, le100_out_aa(T288, T284)) → U43_aaaa(T288, T284, T289, X554, X555, part20_in_gaaa(T288, T289, X554, X555))
U43_aaaa(T288, T284, T289, X554, X555, part20_out_gaaa(T288, T289, X554, X555)) → part87_out_aaaa(T288, .(T284, T289), X554, .(T284, X555))
part87_in_aaaa(T316, [], [], []) → part87_out_aaaa(T316, [], [], [])
U22_aa(T230, T231, X452, part87_out_aaaa(T230, T231, X448, X449)) → qs80_out_aa(.(T230, T231), X452)
qs80_in_aa(.(T237, T231), X452) → U23_aa(T237, T231, X452, part87_in_aaaa(T237, T231, T235, T236))
U23_aa(T237, T231, X452, part87_out_aaaa(T237, T231, T235, T236)) → U24_aa(T237, T231, X452, qs80_in_aa(T235, X450))
qs80_in_aa(.(T325, T231), X452) → U27_aa(T325, T231, X452, part87_in_aaaa(T325, T231, T235, T236))
U27_aa(T325, T231, X452, part87_out_aaaa(T325, T231, T235, T236)) → U28_aa(T325, T231, X452, T236, qs80_in_aa(T235, T319))
qs80_in_aa([], []) → qs80_out_aa([], [])
U28_aa(T325, T231, X452, T236, qs80_out_aa(T235, T319)) → U29_aa(T325, T231, X452, T319, qs80_in_aa(T236, T324))
U29_aa(T325, T231, X452, T319, qs80_out_aa(T236, T324)) → U30_aa(T325, T231, X452, app121_in_aaaa(T319, T325, T324, X452))
app121_in_aaaa(.(T348, T349), T352, T353, .(T348, X657)) → U31_aaaa(T348, T349, T352, T353, X657, app121_in_aaaa(T349, T352, T353, X657))
app121_in_aaaa([], T362, T363, .(T362, T363)) → app121_out_aaaa([], T362, T363, .(T362, T363))
U31_aaaa(T348, T349, T352, T353, X657, app121_out_aaaa(T349, T352, T353, X657)) → app121_out_aaaa(.(T348, T349), T352, T353, .(T348, X657))
U30_aa(T325, T231, X452, app121_out_aaaa(T319, T325, T324, X452)) → qs80_out_aa(.(T325, T231), X452)
U24_aa(T237, T231, X452, qs80_out_aa(T235, X450)) → qs80_out_aa(.(T237, T231), X452)
U23_aa(T237, T231, X452, part87_out_aaaa(T237, T231, T235, T236)) → U25_aa(T237, T231, X452, T236, qs80_in_aa(T235, T319))
U25_aa(T237, T231, X452, T236, qs80_out_aa(T235, T319)) → U26_aa(T237, T231, X452, qs80_in_aa(T236, X451))
U26_aa(T237, T231, X452, qs80_out_aa(T236, X451)) → qs80_out_aa(.(T237, T231), X452)
U33_aaagg(T54, X10, T131, T31, T8, qs80_out_aa(T54, X10)) → p52_out_aaagg(T54, X10, T131, T31, T8)
p52_in_aaagg(T54, T217, T131, T31, T8) → U34_aaagg(T54, T217, T131, T31, T8, qs80_in_aa(T54, T217))
U34_aaagg(T54, T217, T131, T31, T8, qs80_out_aa(T54, T217)) → U35_aaagg(T54, T217, T131, T31, T8, app81_in_agag(T131, T31, T217, T8))
app81_in_agag(.(T389, T390), T391, T394, .(T389, T393)) → U32_agag(T389, T390, T391, T394, T393, app81_in_agag(T390, T391, T394, T393))
app81_in_agag([], T404, T405, .(T404, T405)) → app81_out_agag([], T404, T405, .(T404, T405))
U32_agag(T389, T390, T391, T394, T393, app81_out_agag(T390, T391, T394, T393)) → app81_out_agag(.(T389, T390), T391, T394, .(T389, T393))
U35_aaagg(T54, T217, T131, T31, T8, app81_out_agag(T131, T31, T217, T8)) → p52_out_aaagg(T54, T217, T131, T31, T8)
U50_ag(T31, T33, T32, T8, p52_out_aaagg(T54, X10, T131, T31, T8)) → qs1_out_ag(.(T31, .(T33, T32)), T8)
qs1_in_ag(.(T421, .(T422, T423)), T8) → U51_ag(T421, T422, T423, T8, le100_in_aa(T421, T422))
U51_ag(T421, T422, T423, T8, le100_out_aa(T421, T422)) → qs1_out_ag(.(T421, .(T422, T423)), T8)
qs1_in_ag(.(T426, .(T428, T427)), T8) → U52_ag(T426, T428, T427, T8, le100_in_aa(T426, T428))
U52_ag(T426, T428, T427, T8, le100_out_aa(T426, T428)) → U53_ag(T426, T428, T427, T8, part20_in_gaaa(T426, T427, X740, X741))
U53_ag(T426, T428, T427, T8, part20_out_gaaa(T426, T427, X740, X741)) → qs1_out_ag(.(T426, .(T428, T427)), T8)
qs1_in_ag(.(T426, .(T436, T427)), T8) → U54_ag(T426, T436, T427, T8, le100_in_aa(T426, T436))
U54_ag(T426, T436, T427, T8, le100_out_aa(T426, T436)) → U55_ag(T426, T436, T427, T8, part20_in_gaaa(T426, T427, T434, T435))
U55_ag(T426, T436, T427, T8, part20_out_gaaa(T426, T427, T434, T435)) → U56_ag(T426, T436, T427, T8, qs80_in_aa(T434, X9))
U56_ag(T426, T436, T427, T8, qs80_out_aa(T434, X9)) → qs1_out_ag(.(T426, .(T436, T427)), T8)
U55_ag(T426, T436, T427, T8, part20_out_gaaa(T426, T427, T434, T435)) → U57_ag(T426, T436, T427, T8, T435, qs80_in_aa(T434, T442))
U57_ag(T426, T436, T427, T8, T435, qs80_out_aa(T434, T442)) → U58_ag(T426, T436, T427, T8, p52_in_aaagg(.(T436, T435), X10, T442, T426, T8))
U58_ag(T426, T436, T427, T8, p52_out_aaagg(.(T436, T435), X10, T442, T426, T8)) → qs1_out_ag(.(T426, .(T436, T427)), T8)
qs1_in_ag(.(T452, []), T8) → U59_ag(T452, T8, qs155_in_a(X9))
qs155_in_a([]) → qs155_out_a([])
U59_ag(T452, T8, qs155_out_a(X9)) → qs1_out_ag(.(T452, []), T8)
qs1_in_ag(.(T452, []), T8) → U60_ag(T452, T8, qs155_in_a(T455))
U60_ag(T452, T8, qs155_out_a(T455)) → U61_ag(T452, T8, qs155_in_a(X10))
U61_ag(T452, T8, qs155_out_a(X10)) → qs1_out_ag(.(T452, []), T8)
U60_ag(T452, T8, qs155_out_a(T455)) → U62_ag(T452, T8, T455, qs155_in_a(T460))
U62_ag(T452, T8, T455, qs155_out_a(T460)) → U63_ag(T452, T8, app162_in_gagg(T455, T452, T460, T8))
app162_in_gagg(.(T486, T487), T491, T489, .(T486, T490)) → U36_gagg(T486, T487, T491, T489, T490, app162_in_gagg(T487, T491, T489, T490))
app162_in_gagg([], T501, T502, .(T501, T502)) → app162_out_gagg([], T501, T502, .(T501, T502))
U36_gagg(T486, T487, T491, T489, T490, app162_out_gagg(T487, T491, T489, T490)) → app162_out_gagg(.(T486, T487), T491, T489, .(T486, T490))
U63_ag(T452, T8, app162_out_gagg(T455, T452, T460, T8)) → qs1_out_ag(.(T452, []), T8)
qs1_in_ag([], []) → qs1_out_ag([], [])
APP81_IN_AGAG(.(T389, T390), T391, T394, .(T389, T393)) → APP81_IN_AGAG(T390, T391, T394, T393)
APP81_IN_AGAG(T391, .(T389, T393)) → APP81_IN_AGAG(T391, T393)
From the DPs we obtained the following set of size-change graphs:
APP121_IN_AAAA(.(T348, T349), T352, T353, .(T348, X657)) → APP121_IN_AAAA(T349, T352, T353, X657)
qs1_in_ag(.(T26, .(T27, T28)), T8) → U44_ag(T26, T27, T28, T8, gt10_in_aa(T26, T27))
gt10_in_aa(s(T46), s(T47)) → U1_aa(T46, T47, gt10_in_aa(T46, T47))
gt10_in_aa(s(0), 0) → gt10_out_aa(s(0), 0)
U1_aa(T46, T47, gt10_out_aa(T46, T47)) → gt10_out_aa(s(T46), s(T47))
U44_ag(T26, T27, T28, T8, gt10_out_aa(T26, T27)) → qs1_out_ag(.(T26, .(T27, T28)), T8)
qs1_in_ag(.(T31, .(T33, T32)), T8) → U45_ag(T31, T33, T32, T8, gt10_in_aa(T31, T33))
U45_ag(T31, T33, T32, T8, gt10_out_aa(T31, T33)) → U46_ag(T31, T33, T32, T8, part20_in_gaaa(T31, T32, X47, X48))
part20_in_gaaa(T70, .(T73, T74), .(T73, X119), X120) → U2_gaaa(T70, T73, T74, X119, X120, gt10_in_ga(T70, T73))
gt10_in_ga(s(T46), s(T47)) → U1_ga(T46, T47, gt10_in_ga(T46, T47))
gt10_in_ga(s(0), 0) → gt10_out_ga(s(0), 0)
U1_ga(T46, T47, gt10_out_ga(T46, T47)) → gt10_out_ga(s(T46), s(T47))
U2_gaaa(T70, T73, T74, X119, X120, gt10_out_ga(T70, T73)) → part20_out_gaaa(T70, .(T73, T74), .(T73, X119), X120)
part20_in_gaaa(T70, .(T73, T77), .(T73, X119), X120) → U3_gaaa(T70, T73, T77, X119, X120, gt10_in_ga(T70, T73))
U3_gaaa(T70, T73, T77, X119, X120, gt10_out_ga(T70, T73)) → U4_gaaa(T70, T73, T77, X119, X120, part20_in_gaaa(T70, T77, X119, X120))
part20_in_gaaa(T95, .(T98, T99), X170, .(T98, X171)) → U5_gaaa(T95, T98, T99, X170, X171, le33_in_ga(T95, T98))
le33_in_ga(s(T113), s(T115)) → U8_ga(T113, T115, le33_in_ga(T113, T115))
le33_in_ga(0, s(T122)) → le33_out_ga(0, s(T122))
le33_in_ga(0, 0) → le33_out_ga(0, 0)
U8_ga(T113, T115, le33_out_ga(T113, T115)) → le33_out_ga(s(T113), s(T115))
U5_gaaa(T95, T98, T99, X170, X171, le33_out_ga(T95, T98)) → part20_out_gaaa(T95, .(T98, T99), X170, .(T98, X171))
part20_in_gaaa(T95, .(T98, T102), X170, .(T98, X171)) → U6_gaaa(T95, T98, T102, X170, X171, le33_in_ga(T95, T98))
U6_gaaa(T95, T98, T102, X170, X171, le33_out_ga(T95, T98)) → U7_gaaa(T95, T98, T102, X170, X171, part20_in_gaaa(T95, T102, X170, X171))
part20_in_gaaa(T128, [], [], []) → part20_out_gaaa(T128, [], [], [])
U7_gaaa(T95, T98, T102, X170, X171, part20_out_gaaa(T95, T102, X170, X171)) → part20_out_gaaa(T95, .(T98, T102), X170, .(T98, X171))
U4_gaaa(T70, T73, T77, X119, X120, part20_out_gaaa(T70, T77, X119, X120)) → part20_out_gaaa(T70, .(T73, T77), .(T73, X119), X120)
U46_ag(T31, T33, T32, T8, part20_out_gaaa(T31, T32, X47, X48)) → qs1_out_ag(.(T31, .(T33, T32)), T8)
U45_ag(T31, T33, T32, T8, gt10_out_aa(T31, T33)) → U47_ag(T31, T33, T32, T8, part20_in_gaaa(T31, T32, T53, T54))
U47_ag(T31, T33, T32, T8, part20_out_gaaa(T31, T32, T53, T54)) → U48_ag(T31, T33, T32, T8, qs51_in_gaa(T33, T53, X9))
qs51_in_gaa(T148, T149, X273) → U37_gaa(T148, T149, X273, p56_in_gaaaaaa(T148, T149, X269, X270, X271, X272, X273))
p56_in_gaaaaaa(T148, T149, X269, X270, X271, X272, X273) → U9_gaaaaaa(T148, T149, X269, X270, X271, X272, X273, part20_in_gaaa(T148, T149, X269, X270))
U9_gaaaaaa(T148, T149, X269, X270, X271, X272, X273, part20_out_gaaa(T148, T149, X269, X270)) → p56_out_gaaaaaa(T148, T149, X269, X270, X271, X272, X273)
p56_in_gaaaaaa(T148, T149, T153, T154, X271, X272, X273) → U10_gaaaaaa(T148, T149, T153, T154, X271, X272, X273, part20_in_gaaa(T148, T149, T153, T154))
U10_gaaaaaa(T148, T149, T153, T154, X271, X272, X273, part20_out_gaaa(T148, T149, T153, T154)) → U11_gaaaaaa(T148, T149, T153, T154, X271, X272, X273, qs59_in_aa(T153, X271))
qs59_in_aa(.(T171, T172), X335) → U19_aa(T171, T172, X335, p56_in_aaaaaaa(T171, T172, X331, X332, X333, X334, X335))
p56_in_aaaaaaa(T148, T149, X269, X270, X271, X272, X273) → U9_aaaaaaa(T148, T149, X269, X270, X271, X272, X273, part20_in_aaaa(T148, T149, X269, X270))
part20_in_aaaa(T70, .(T73, T74), .(T73, X119), X120) → U2_aaaa(T70, T73, T74, X119, X120, gt10_in_aa(T70, T73))
U2_aaaa(T70, T73, T74, X119, X120, gt10_out_aa(T70, T73)) → part20_out_aaaa(T70, .(T73, T74), .(T73, X119), X120)
part20_in_aaaa(T70, .(T73, T77), .(T73, X119), X120) → U3_aaaa(T70, T73, T77, X119, X120, gt10_in_aa(T70, T73))
U3_aaaa(T70, T73, T77, X119, X120, gt10_out_aa(T70, T73)) → U4_aaaa(T70, T73, T77, X119, X120, part20_in_gaaa(T70, T77, X119, X120))
U4_aaaa(T70, T73, T77, X119, X120, part20_out_gaaa(T70, T77, X119, X120)) → part20_out_aaaa(T70, .(T73, T77), .(T73, X119), X120)
part20_in_aaaa(T95, .(T98, T99), X170, .(T98, X171)) → U5_aaaa(T95, T98, T99, X170, X171, le33_in_aa(T95, T98))
le33_in_aa(s(T113), s(T115)) → U8_aa(T113, T115, le33_in_aa(T113, T115))
le33_in_aa(0, s(T122)) → le33_out_aa(0, s(T122))
le33_in_aa(0, 0) → le33_out_aa(0, 0)
U8_aa(T113, T115, le33_out_aa(T113, T115)) → le33_out_aa(s(T113), s(T115))
U5_aaaa(T95, T98, T99, X170, X171, le33_out_aa(T95, T98)) → part20_out_aaaa(T95, .(T98, T99), X170, .(T98, X171))
part20_in_aaaa(T95, .(T98, T102), X170, .(T98, X171)) → U6_aaaa(T95, T98, T102, X170, X171, le33_in_aa(T95, T98))
U6_aaaa(T95, T98, T102, X170, X171, le33_out_aa(T95, T98)) → U7_aaaa(T95, T98, T102, X170, X171, part20_in_gaaa(T95, T102, X170, X171))
U7_aaaa(T95, T98, T102, X170, X171, part20_out_gaaa(T95, T102, X170, X171)) → part20_out_aaaa(T95, .(T98, T102), X170, .(T98, X171))
part20_in_aaaa(T128, [], [], []) → part20_out_aaaa(T128, [], [], [])
U9_aaaaaaa(T148, T149, X269, X270, X271, X272, X273, part20_out_aaaa(T148, T149, X269, X270)) → p56_out_aaaaaaa(T148, T149, X269, X270, X271, X272, X273)
p56_in_aaaaaaa(T148, T149, T153, T154, X271, X272, X273) → U10_aaaaaaa(T148, T149, T153, T154, X271, X272, X273, part20_in_aaaa(T148, T149, T153, T154))
U10_aaaaaaa(T148, T149, T153, T154, X271, X272, X273, part20_out_aaaa(T148, T149, T153, T154)) → U11_aaaaaaa(T148, T149, T153, T154, X271, X272, X273, qs59_in_aa(T153, X271))
qs59_in_aa([], []) → qs59_out_aa([], [])
U11_aaaaaaa(T148, T149, T153, T154, X271, X272, X273, qs59_out_aa(T153, X271)) → p56_out_aaaaaaa(T148, T149, T153, T154, X271, X272, X273)
p56_in_aaaaaaa(T148, T149, T153, T154, T160, X272, X273) → U12_aaaaaaa(T148, T149, T153, T154, T160, X272, X273, part20_in_aaaa(T148, T149, T153, T154))
U12_aaaaaaa(T148, T149, T153, T154, T160, X272, X273, part20_out_aaaa(T148, T149, T153, T154)) → U13_aaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_in_aa(T153, T160))
U13_aaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_out_aa(T153, T160)) → U14_aaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_in_aa(T154, X272))
U14_aaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_out_aa(T154, X272)) → p56_out_aaaaaaa(T148, T149, T153, T154, T160, X272, X273)
p56_in_aaaaaaa(T148, T149, T153, T154, T160, T178, X273) → U15_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, part20_in_aaaa(T148, T149, T153, T154))
U15_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, part20_out_aaaa(T148, T149, T153, T154)) → U16_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_in_aa(T153, T160))
U16_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_out_aa(T153, T160)) → U17_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_in_aa(T154, T178))
U17_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_out_aa(T154, T178)) → U18_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, app70_in_aaaa(T160, T148, T178, X273))
app70_in_aaaa(.(T201, T202), T203, T204, .(T201, X391)) → U20_aaaa(T201, T202, T203, T204, X391, app70_in_aaaa(T202, T203, T204, X391))
app70_in_aaaa([], T213, T214, .(T213, T214)) → app70_out_aaaa([], T213, T214, .(T213, T214))
U20_aaaa(T201, T202, T203, T204, X391, app70_out_aaaa(T202, T203, T204, X391)) → app70_out_aaaa(.(T201, T202), T203, T204, .(T201, X391))
U18_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, app70_out_aaaa(T160, T148, T178, X273)) → p56_out_aaaaaaa(T148, T149, T153, T154, T160, T178, X273)
U19_aa(T171, T172, X335, p56_out_aaaaaaa(T171, T172, X331, X332, X333, X334, X335)) → qs59_out_aa(.(T171, T172), X335)
U11_gaaaaaa(T148, T149, T153, T154, X271, X272, X273, qs59_out_aa(T153, X271)) → p56_out_gaaaaaa(T148, T149, T153, T154, X271, X272, X273)
p56_in_gaaaaaa(T148, T149, T153, T154, T160, X272, X273) → U12_gaaaaaa(T148, T149, T153, T154, T160, X272, X273, part20_in_gaaa(T148, T149, T153, T154))
U12_gaaaaaa(T148, T149, T153, T154, T160, X272, X273, part20_out_gaaa(T148, T149, T153, T154)) → U13_gaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_in_aa(T153, T160))
U13_gaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_out_aa(T153, T160)) → U14_gaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_in_aa(T154, X272))
U14_gaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_out_aa(T154, X272)) → p56_out_gaaaaaa(T148, T149, T153, T154, T160, X272, X273)
p56_in_gaaaaaa(T148, T149, T153, T154, T160, T178, X273) → U15_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, part20_in_gaaa(T148, T149, T153, T154))
U15_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, part20_out_gaaa(T148, T149, T153, T154)) → U16_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_in_aa(T153, T160))
U16_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_out_aa(T153, T160)) → U17_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_in_aa(T154, T178))
U17_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_out_aa(T154, T178)) → U18_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, app70_in_agaa(T160, T148, T178, X273))
app70_in_agaa(.(T201, T202), T203, T204, .(T201, X391)) → U20_agaa(T201, T202, T203, T204, X391, app70_in_agaa(T202, T203, T204, X391))
app70_in_agaa([], T213, T214, .(T213, T214)) → app70_out_agaa([], T213, T214, .(T213, T214))
U20_agaa(T201, T202, T203, T204, X391, app70_out_agaa(T202, T203, T204, X391)) → app70_out_agaa(.(T201, T202), T203, T204, .(T201, X391))
U18_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, app70_out_agaa(T160, T148, T178, X273)) → p56_out_gaaaaaa(T148, T149, T153, T154, T160, T178, X273)
U37_gaa(T148, T149, X273, p56_out_gaaaaaa(T148, T149, X269, X270, X271, X272, X273)) → qs51_out_gaa(T148, T149, X273)
U48_ag(T31, T33, T32, T8, qs51_out_gaa(T33, T53, X9)) → qs1_out_ag(.(T31, .(T33, T32)), T8)
U47_ag(T31, T33, T32, T8, part20_out_gaaa(T31, T32, T53, T54)) → U49_ag(T31, T33, T32, T8, T54, qs51_in_gaa(T33, T53, T131))
U49_ag(T31, T33, T32, T8, T54, qs51_out_gaa(T33, T53, T131)) → U50_ag(T31, T33, T32, T8, p52_in_aaagg(T54, X10, T131, T31, T8))
p52_in_aaagg(T54, X10, T131, T31, T8) → U33_aaagg(T54, X10, T131, T31, T8, qs80_in_aa(T54, X10))
qs80_in_aa(.(T230, T231), X452) → U22_aa(T230, T231, X452, part87_in_aaaa(T230, T231, X448, X449))
part87_in_aaaa(T256, .(T257, T258), .(T257, X503), X504) → U38_aaaa(T256, T257, T258, X503, X504, gt10_in_aa(T256, T257))
U38_aaaa(T256, T257, T258, X503, X504, gt10_out_aa(T256, T257)) → part87_out_aaaa(T256, .(T257, T258), .(T257, X503), X504)
part87_in_aaaa(T261, .(T257, T262), .(T257, X503), X504) → U39_aaaa(T261, T257, T262, X503, X504, gt10_in_aa(T261, T257))
U39_aaaa(T261, T257, T262, X503, X504, gt10_out_aa(T261, T257)) → U40_aaaa(T261, T257, T262, X503, X504, part20_in_gaaa(T261, T262, X503, X504))
U40_aaaa(T261, T257, T262, X503, X504, part20_out_gaaa(T261, T262, X503, X504)) → part87_out_aaaa(T261, .(T257, T262), .(T257, X503), X504)
part87_in_aaaa(T283, .(T284, T285), X554, .(T284, X555)) → U41_aaaa(T283, T284, T285, X554, X555, le100_in_aa(T283, T284))
le100_in_aa(s(T302), s(T303)) → U21_aa(T302, T303, le100_in_aa(T302, T303))
le100_in_aa(0, s(T310)) → le100_out_aa(0, s(T310))
le100_in_aa(0, 0) → le100_out_aa(0, 0)
U21_aa(T302, T303, le100_out_aa(T302, T303)) → le100_out_aa(s(T302), s(T303))
U41_aaaa(T283, T284, T285, X554, X555, le100_out_aa(T283, T284)) → part87_out_aaaa(T283, .(T284, T285), X554, .(T284, X555))
part87_in_aaaa(T288, .(T284, T289), X554, .(T284, X555)) → U42_aaaa(T288, T284, T289, X554, X555, le100_in_aa(T288, T284))
U42_aaaa(T288, T284, T289, X554, X555, le100_out_aa(T288, T284)) → U43_aaaa(T288, T284, T289, X554, X555, part20_in_gaaa(T288, T289, X554, X555))
U43_aaaa(T288, T284, T289, X554, X555, part20_out_gaaa(T288, T289, X554, X555)) → part87_out_aaaa(T288, .(T284, T289), X554, .(T284, X555))
part87_in_aaaa(T316, [], [], []) → part87_out_aaaa(T316, [], [], [])
U22_aa(T230, T231, X452, part87_out_aaaa(T230, T231, X448, X449)) → qs80_out_aa(.(T230, T231), X452)
qs80_in_aa(.(T237, T231), X452) → U23_aa(T237, T231, X452, part87_in_aaaa(T237, T231, T235, T236))
U23_aa(T237, T231, X452, part87_out_aaaa(T237, T231, T235, T236)) → U24_aa(T237, T231, X452, qs80_in_aa(T235, X450))
qs80_in_aa(.(T325, T231), X452) → U27_aa(T325, T231, X452, part87_in_aaaa(T325, T231, T235, T236))
U27_aa(T325, T231, X452, part87_out_aaaa(T325, T231, T235, T236)) → U28_aa(T325, T231, X452, T236, qs80_in_aa(T235, T319))
qs80_in_aa([], []) → qs80_out_aa([], [])
U28_aa(T325, T231, X452, T236, qs80_out_aa(T235, T319)) → U29_aa(T325, T231, X452, T319, qs80_in_aa(T236, T324))
U29_aa(T325, T231, X452, T319, qs80_out_aa(T236, T324)) → U30_aa(T325, T231, X452, app121_in_aaaa(T319, T325, T324, X452))
app121_in_aaaa(.(T348, T349), T352, T353, .(T348, X657)) → U31_aaaa(T348, T349, T352, T353, X657, app121_in_aaaa(T349, T352, T353, X657))
app121_in_aaaa([], T362, T363, .(T362, T363)) → app121_out_aaaa([], T362, T363, .(T362, T363))
U31_aaaa(T348, T349, T352, T353, X657, app121_out_aaaa(T349, T352, T353, X657)) → app121_out_aaaa(.(T348, T349), T352, T353, .(T348, X657))
U30_aa(T325, T231, X452, app121_out_aaaa(T319, T325, T324, X452)) → qs80_out_aa(.(T325, T231), X452)
U24_aa(T237, T231, X452, qs80_out_aa(T235, X450)) → qs80_out_aa(.(T237, T231), X452)
U23_aa(T237, T231, X452, part87_out_aaaa(T237, T231, T235, T236)) → U25_aa(T237, T231, X452, T236, qs80_in_aa(T235, T319))
U25_aa(T237, T231, X452, T236, qs80_out_aa(T235, T319)) → U26_aa(T237, T231, X452, qs80_in_aa(T236, X451))
U26_aa(T237, T231, X452, qs80_out_aa(T236, X451)) → qs80_out_aa(.(T237, T231), X452)
U33_aaagg(T54, X10, T131, T31, T8, qs80_out_aa(T54, X10)) → p52_out_aaagg(T54, X10, T131, T31, T8)
p52_in_aaagg(T54, T217, T131, T31, T8) → U34_aaagg(T54, T217, T131, T31, T8, qs80_in_aa(T54, T217))
U34_aaagg(T54, T217, T131, T31, T8, qs80_out_aa(T54, T217)) → U35_aaagg(T54, T217, T131, T31, T8, app81_in_agag(T131, T31, T217, T8))
app81_in_agag(.(T389, T390), T391, T394, .(T389, T393)) → U32_agag(T389, T390, T391, T394, T393, app81_in_agag(T390, T391, T394, T393))
app81_in_agag([], T404, T405, .(T404, T405)) → app81_out_agag([], T404, T405, .(T404, T405))
U32_agag(T389, T390, T391, T394, T393, app81_out_agag(T390, T391, T394, T393)) → app81_out_agag(.(T389, T390), T391, T394, .(T389, T393))
U35_aaagg(T54, T217, T131, T31, T8, app81_out_agag(T131, T31, T217, T8)) → p52_out_aaagg(T54, T217, T131, T31, T8)
U50_ag(T31, T33, T32, T8, p52_out_aaagg(T54, X10, T131, T31, T8)) → qs1_out_ag(.(T31, .(T33, T32)), T8)
qs1_in_ag(.(T421, .(T422, T423)), T8) → U51_ag(T421, T422, T423, T8, le100_in_aa(T421, T422))
U51_ag(T421, T422, T423, T8, le100_out_aa(T421, T422)) → qs1_out_ag(.(T421, .(T422, T423)), T8)
qs1_in_ag(.(T426, .(T428, T427)), T8) → U52_ag(T426, T428, T427, T8, le100_in_aa(T426, T428))
U52_ag(T426, T428, T427, T8, le100_out_aa(T426, T428)) → U53_ag(T426, T428, T427, T8, part20_in_gaaa(T426, T427, X740, X741))
U53_ag(T426, T428, T427, T8, part20_out_gaaa(T426, T427, X740, X741)) → qs1_out_ag(.(T426, .(T428, T427)), T8)
qs1_in_ag(.(T426, .(T436, T427)), T8) → U54_ag(T426, T436, T427, T8, le100_in_aa(T426, T436))
U54_ag(T426, T436, T427, T8, le100_out_aa(T426, T436)) → U55_ag(T426, T436, T427, T8, part20_in_gaaa(T426, T427, T434, T435))
U55_ag(T426, T436, T427, T8, part20_out_gaaa(T426, T427, T434, T435)) → U56_ag(T426, T436, T427, T8, qs80_in_aa(T434, X9))
U56_ag(T426, T436, T427, T8, qs80_out_aa(T434, X9)) → qs1_out_ag(.(T426, .(T436, T427)), T8)
U55_ag(T426, T436, T427, T8, part20_out_gaaa(T426, T427, T434, T435)) → U57_ag(T426, T436, T427, T8, T435, qs80_in_aa(T434, T442))
U57_ag(T426, T436, T427, T8, T435, qs80_out_aa(T434, T442)) → U58_ag(T426, T436, T427, T8, p52_in_aaagg(.(T436, T435), X10, T442, T426, T8))
U58_ag(T426, T436, T427, T8, p52_out_aaagg(.(T436, T435), X10, T442, T426, T8)) → qs1_out_ag(.(T426, .(T436, T427)), T8)
qs1_in_ag(.(T452, []), T8) → U59_ag(T452, T8, qs155_in_a(X9))
qs155_in_a([]) → qs155_out_a([])
U59_ag(T452, T8, qs155_out_a(X9)) → qs1_out_ag(.(T452, []), T8)
qs1_in_ag(.(T452, []), T8) → U60_ag(T452, T8, qs155_in_a(T455))
U60_ag(T452, T8, qs155_out_a(T455)) → U61_ag(T452, T8, qs155_in_a(X10))
U61_ag(T452, T8, qs155_out_a(X10)) → qs1_out_ag(.(T452, []), T8)
U60_ag(T452, T8, qs155_out_a(T455)) → U62_ag(T452, T8, T455, qs155_in_a(T460))
U62_ag(T452, T8, T455, qs155_out_a(T460)) → U63_ag(T452, T8, app162_in_gagg(T455, T452, T460, T8))
app162_in_gagg(.(T486, T487), T491, T489, .(T486, T490)) → U36_gagg(T486, T487, T491, T489, T490, app162_in_gagg(T487, T491, T489, T490))
app162_in_gagg([], T501, T502, .(T501, T502)) → app162_out_gagg([], T501, T502, .(T501, T502))
U36_gagg(T486, T487, T491, T489, T490, app162_out_gagg(T487, T491, T489, T490)) → app162_out_gagg(.(T486, T487), T491, T489, .(T486, T490))
U63_ag(T452, T8, app162_out_gagg(T455, T452, T460, T8)) → qs1_out_ag(.(T452, []), T8)
qs1_in_ag([], []) → qs1_out_ag([], [])
APP121_IN_AAAA(.(T348, T349), T352, T353, .(T348, X657)) → APP121_IN_AAAA(T349, T352, T353, X657)
APP121_IN_AAAA → APP121_IN_AAAA
LE100_IN_AA(s(T302), s(T303)) → LE100_IN_AA(T302, T303)
qs1_in_ag(.(T26, .(T27, T28)), T8) → U44_ag(T26, T27, T28, T8, gt10_in_aa(T26, T27))
gt10_in_aa(s(T46), s(T47)) → U1_aa(T46, T47, gt10_in_aa(T46, T47))
gt10_in_aa(s(0), 0) → gt10_out_aa(s(0), 0)
U1_aa(T46, T47, gt10_out_aa(T46, T47)) → gt10_out_aa(s(T46), s(T47))
U44_ag(T26, T27, T28, T8, gt10_out_aa(T26, T27)) → qs1_out_ag(.(T26, .(T27, T28)), T8)
qs1_in_ag(.(T31, .(T33, T32)), T8) → U45_ag(T31, T33, T32, T8, gt10_in_aa(T31, T33))
U45_ag(T31, T33, T32, T8, gt10_out_aa(T31, T33)) → U46_ag(T31, T33, T32, T8, part20_in_gaaa(T31, T32, X47, X48))
part20_in_gaaa(T70, .(T73, T74), .(T73, X119), X120) → U2_gaaa(T70, T73, T74, X119, X120, gt10_in_ga(T70, T73))
gt10_in_ga(s(T46), s(T47)) → U1_ga(T46, T47, gt10_in_ga(T46, T47))
gt10_in_ga(s(0), 0) → gt10_out_ga(s(0), 0)
U1_ga(T46, T47, gt10_out_ga(T46, T47)) → gt10_out_ga(s(T46), s(T47))
U2_gaaa(T70, T73, T74, X119, X120, gt10_out_ga(T70, T73)) → part20_out_gaaa(T70, .(T73, T74), .(T73, X119), X120)
part20_in_gaaa(T70, .(T73, T77), .(T73, X119), X120) → U3_gaaa(T70, T73, T77, X119, X120, gt10_in_ga(T70, T73))
U3_gaaa(T70, T73, T77, X119, X120, gt10_out_ga(T70, T73)) → U4_gaaa(T70, T73, T77, X119, X120, part20_in_gaaa(T70, T77, X119, X120))
part20_in_gaaa(T95, .(T98, T99), X170, .(T98, X171)) → U5_gaaa(T95, T98, T99, X170, X171, le33_in_ga(T95, T98))
le33_in_ga(s(T113), s(T115)) → U8_ga(T113, T115, le33_in_ga(T113, T115))
le33_in_ga(0, s(T122)) → le33_out_ga(0, s(T122))
le33_in_ga(0, 0) → le33_out_ga(0, 0)
U8_ga(T113, T115, le33_out_ga(T113, T115)) → le33_out_ga(s(T113), s(T115))
U5_gaaa(T95, T98, T99, X170, X171, le33_out_ga(T95, T98)) → part20_out_gaaa(T95, .(T98, T99), X170, .(T98, X171))
part20_in_gaaa(T95, .(T98, T102), X170, .(T98, X171)) → U6_gaaa(T95, T98, T102, X170, X171, le33_in_ga(T95, T98))
U6_gaaa(T95, T98, T102, X170, X171, le33_out_ga(T95, T98)) → U7_gaaa(T95, T98, T102, X170, X171, part20_in_gaaa(T95, T102, X170, X171))
part20_in_gaaa(T128, [], [], []) → part20_out_gaaa(T128, [], [], [])
U7_gaaa(T95, T98, T102, X170, X171, part20_out_gaaa(T95, T102, X170, X171)) → part20_out_gaaa(T95, .(T98, T102), X170, .(T98, X171))
U4_gaaa(T70, T73, T77, X119, X120, part20_out_gaaa(T70, T77, X119, X120)) → part20_out_gaaa(T70, .(T73, T77), .(T73, X119), X120)
U46_ag(T31, T33, T32, T8, part20_out_gaaa(T31, T32, X47, X48)) → qs1_out_ag(.(T31, .(T33, T32)), T8)
U45_ag(T31, T33, T32, T8, gt10_out_aa(T31, T33)) → U47_ag(T31, T33, T32, T8, part20_in_gaaa(T31, T32, T53, T54))
U47_ag(T31, T33, T32, T8, part20_out_gaaa(T31, T32, T53, T54)) → U48_ag(T31, T33, T32, T8, qs51_in_gaa(T33, T53, X9))
qs51_in_gaa(T148, T149, X273) → U37_gaa(T148, T149, X273, p56_in_gaaaaaa(T148, T149, X269, X270, X271, X272, X273))
p56_in_gaaaaaa(T148, T149, X269, X270, X271, X272, X273) → U9_gaaaaaa(T148, T149, X269, X270, X271, X272, X273, part20_in_gaaa(T148, T149, X269, X270))
U9_gaaaaaa(T148, T149, X269, X270, X271, X272, X273, part20_out_gaaa(T148, T149, X269, X270)) → p56_out_gaaaaaa(T148, T149, X269, X270, X271, X272, X273)
p56_in_gaaaaaa(T148, T149, T153, T154, X271, X272, X273) → U10_gaaaaaa(T148, T149, T153, T154, X271, X272, X273, part20_in_gaaa(T148, T149, T153, T154))
U10_gaaaaaa(T148, T149, T153, T154, X271, X272, X273, part20_out_gaaa(T148, T149, T153, T154)) → U11_gaaaaaa(T148, T149, T153, T154, X271, X272, X273, qs59_in_aa(T153, X271))
qs59_in_aa(.(T171, T172), X335) → U19_aa(T171, T172, X335, p56_in_aaaaaaa(T171, T172, X331, X332, X333, X334, X335))
p56_in_aaaaaaa(T148, T149, X269, X270, X271, X272, X273) → U9_aaaaaaa(T148, T149, X269, X270, X271, X272, X273, part20_in_aaaa(T148, T149, X269, X270))
part20_in_aaaa(T70, .(T73, T74), .(T73, X119), X120) → U2_aaaa(T70, T73, T74, X119, X120, gt10_in_aa(T70, T73))
U2_aaaa(T70, T73, T74, X119, X120, gt10_out_aa(T70, T73)) → part20_out_aaaa(T70, .(T73, T74), .(T73, X119), X120)
part20_in_aaaa(T70, .(T73, T77), .(T73, X119), X120) → U3_aaaa(T70, T73, T77, X119, X120, gt10_in_aa(T70, T73))
U3_aaaa(T70, T73, T77, X119, X120, gt10_out_aa(T70, T73)) → U4_aaaa(T70, T73, T77, X119, X120, part20_in_gaaa(T70, T77, X119, X120))
U4_aaaa(T70, T73, T77, X119, X120, part20_out_gaaa(T70, T77, X119, X120)) → part20_out_aaaa(T70, .(T73, T77), .(T73, X119), X120)
part20_in_aaaa(T95, .(T98, T99), X170, .(T98, X171)) → U5_aaaa(T95, T98, T99, X170, X171, le33_in_aa(T95, T98))
le33_in_aa(s(T113), s(T115)) → U8_aa(T113, T115, le33_in_aa(T113, T115))
le33_in_aa(0, s(T122)) → le33_out_aa(0, s(T122))
le33_in_aa(0, 0) → le33_out_aa(0, 0)
U8_aa(T113, T115, le33_out_aa(T113, T115)) → le33_out_aa(s(T113), s(T115))
U5_aaaa(T95, T98, T99, X170, X171, le33_out_aa(T95, T98)) → part20_out_aaaa(T95, .(T98, T99), X170, .(T98, X171))
part20_in_aaaa(T95, .(T98, T102), X170, .(T98, X171)) → U6_aaaa(T95, T98, T102, X170, X171, le33_in_aa(T95, T98))
U6_aaaa(T95, T98, T102, X170, X171, le33_out_aa(T95, T98)) → U7_aaaa(T95, T98, T102, X170, X171, part20_in_gaaa(T95, T102, X170, X171))
U7_aaaa(T95, T98, T102, X170, X171, part20_out_gaaa(T95, T102, X170, X171)) → part20_out_aaaa(T95, .(T98, T102), X170, .(T98, X171))
part20_in_aaaa(T128, [], [], []) → part20_out_aaaa(T128, [], [], [])
U9_aaaaaaa(T148, T149, X269, X270, X271, X272, X273, part20_out_aaaa(T148, T149, X269, X270)) → p56_out_aaaaaaa(T148, T149, X269, X270, X271, X272, X273)
p56_in_aaaaaaa(T148, T149, T153, T154, X271, X272, X273) → U10_aaaaaaa(T148, T149, T153, T154, X271, X272, X273, part20_in_aaaa(T148, T149, T153, T154))
U10_aaaaaaa(T148, T149, T153, T154, X271, X272, X273, part20_out_aaaa(T148, T149, T153, T154)) → U11_aaaaaaa(T148, T149, T153, T154, X271, X272, X273, qs59_in_aa(T153, X271))
qs59_in_aa([], []) → qs59_out_aa([], [])
U11_aaaaaaa(T148, T149, T153, T154, X271, X272, X273, qs59_out_aa(T153, X271)) → p56_out_aaaaaaa(T148, T149, T153, T154, X271, X272, X273)
p56_in_aaaaaaa(T148, T149, T153, T154, T160, X272, X273) → U12_aaaaaaa(T148, T149, T153, T154, T160, X272, X273, part20_in_aaaa(T148, T149, T153, T154))
U12_aaaaaaa(T148, T149, T153, T154, T160, X272, X273, part20_out_aaaa(T148, T149, T153, T154)) → U13_aaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_in_aa(T153, T160))
U13_aaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_out_aa(T153, T160)) → U14_aaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_in_aa(T154, X272))
U14_aaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_out_aa(T154, X272)) → p56_out_aaaaaaa(T148, T149, T153, T154, T160, X272, X273)
p56_in_aaaaaaa(T148, T149, T153, T154, T160, T178, X273) → U15_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, part20_in_aaaa(T148, T149, T153, T154))
U15_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, part20_out_aaaa(T148, T149, T153, T154)) → U16_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_in_aa(T153, T160))
U16_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_out_aa(T153, T160)) → U17_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_in_aa(T154, T178))
U17_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_out_aa(T154, T178)) → U18_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, app70_in_aaaa(T160, T148, T178, X273))
app70_in_aaaa(.(T201, T202), T203, T204, .(T201, X391)) → U20_aaaa(T201, T202, T203, T204, X391, app70_in_aaaa(T202, T203, T204, X391))
app70_in_aaaa([], T213, T214, .(T213, T214)) → app70_out_aaaa([], T213, T214, .(T213, T214))
U20_aaaa(T201, T202, T203, T204, X391, app70_out_aaaa(T202, T203, T204, X391)) → app70_out_aaaa(.(T201, T202), T203, T204, .(T201, X391))
U18_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, app70_out_aaaa(T160, T148, T178, X273)) → p56_out_aaaaaaa(T148, T149, T153, T154, T160, T178, X273)
U19_aa(T171, T172, X335, p56_out_aaaaaaa(T171, T172, X331, X332, X333, X334, X335)) → qs59_out_aa(.(T171, T172), X335)
U11_gaaaaaa(T148, T149, T153, T154, X271, X272, X273, qs59_out_aa(T153, X271)) → p56_out_gaaaaaa(T148, T149, T153, T154, X271, X272, X273)
p56_in_gaaaaaa(T148, T149, T153, T154, T160, X272, X273) → U12_gaaaaaa(T148, T149, T153, T154, T160, X272, X273, part20_in_gaaa(T148, T149, T153, T154))
U12_gaaaaaa(T148, T149, T153, T154, T160, X272, X273, part20_out_gaaa(T148, T149, T153, T154)) → U13_gaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_in_aa(T153, T160))
U13_gaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_out_aa(T153, T160)) → U14_gaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_in_aa(T154, X272))
U14_gaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_out_aa(T154, X272)) → p56_out_gaaaaaa(T148, T149, T153, T154, T160, X272, X273)
p56_in_gaaaaaa(T148, T149, T153, T154, T160, T178, X273) → U15_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, part20_in_gaaa(T148, T149, T153, T154))
U15_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, part20_out_gaaa(T148, T149, T153, T154)) → U16_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_in_aa(T153, T160))
U16_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_out_aa(T153, T160)) → U17_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_in_aa(T154, T178))
U17_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_out_aa(T154, T178)) → U18_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, app70_in_agaa(T160, T148, T178, X273))
app70_in_agaa(.(T201, T202), T203, T204, .(T201, X391)) → U20_agaa(T201, T202, T203, T204, X391, app70_in_agaa(T202, T203, T204, X391))
app70_in_agaa([], T213, T214, .(T213, T214)) → app70_out_agaa([], T213, T214, .(T213, T214))
U20_agaa(T201, T202, T203, T204, X391, app70_out_agaa(T202, T203, T204, X391)) → app70_out_agaa(.(T201, T202), T203, T204, .(T201, X391))
U18_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, app70_out_agaa(T160, T148, T178, X273)) → p56_out_gaaaaaa(T148, T149, T153, T154, T160, T178, X273)
U37_gaa(T148, T149, X273, p56_out_gaaaaaa(T148, T149, X269, X270, X271, X272, X273)) → qs51_out_gaa(T148, T149, X273)
U48_ag(T31, T33, T32, T8, qs51_out_gaa(T33, T53, X9)) → qs1_out_ag(.(T31, .(T33, T32)), T8)
U47_ag(T31, T33, T32, T8, part20_out_gaaa(T31, T32, T53, T54)) → U49_ag(T31, T33, T32, T8, T54, qs51_in_gaa(T33, T53, T131))
U49_ag(T31, T33, T32, T8, T54, qs51_out_gaa(T33, T53, T131)) → U50_ag(T31, T33, T32, T8, p52_in_aaagg(T54, X10, T131, T31, T8))
p52_in_aaagg(T54, X10, T131, T31, T8) → U33_aaagg(T54, X10, T131, T31, T8, qs80_in_aa(T54, X10))
qs80_in_aa(.(T230, T231), X452) → U22_aa(T230, T231, X452, part87_in_aaaa(T230, T231, X448, X449))
part87_in_aaaa(T256, .(T257, T258), .(T257, X503), X504) → U38_aaaa(T256, T257, T258, X503, X504, gt10_in_aa(T256, T257))
U38_aaaa(T256, T257, T258, X503, X504, gt10_out_aa(T256, T257)) → part87_out_aaaa(T256, .(T257, T258), .(T257, X503), X504)
part87_in_aaaa(T261, .(T257, T262), .(T257, X503), X504) → U39_aaaa(T261, T257, T262, X503, X504, gt10_in_aa(T261, T257))
U39_aaaa(T261, T257, T262, X503, X504, gt10_out_aa(T261, T257)) → U40_aaaa(T261, T257, T262, X503, X504, part20_in_gaaa(T261, T262, X503, X504))
U40_aaaa(T261, T257, T262, X503, X504, part20_out_gaaa(T261, T262, X503, X504)) → part87_out_aaaa(T261, .(T257, T262), .(T257, X503), X504)
part87_in_aaaa(T283, .(T284, T285), X554, .(T284, X555)) → U41_aaaa(T283, T284, T285, X554, X555, le100_in_aa(T283, T284))
le100_in_aa(s(T302), s(T303)) → U21_aa(T302, T303, le100_in_aa(T302, T303))
le100_in_aa(0, s(T310)) → le100_out_aa(0, s(T310))
le100_in_aa(0, 0) → le100_out_aa(0, 0)
U21_aa(T302, T303, le100_out_aa(T302, T303)) → le100_out_aa(s(T302), s(T303))
U41_aaaa(T283, T284, T285, X554, X555, le100_out_aa(T283, T284)) → part87_out_aaaa(T283, .(T284, T285), X554, .(T284, X555))
part87_in_aaaa(T288, .(T284, T289), X554, .(T284, X555)) → U42_aaaa(T288, T284, T289, X554, X555, le100_in_aa(T288, T284))
U42_aaaa(T288, T284, T289, X554, X555, le100_out_aa(T288, T284)) → U43_aaaa(T288, T284, T289, X554, X555, part20_in_gaaa(T288, T289, X554, X555))
U43_aaaa(T288, T284, T289, X554, X555, part20_out_gaaa(T288, T289, X554, X555)) → part87_out_aaaa(T288, .(T284, T289), X554, .(T284, X555))
part87_in_aaaa(T316, [], [], []) → part87_out_aaaa(T316, [], [], [])
U22_aa(T230, T231, X452, part87_out_aaaa(T230, T231, X448, X449)) → qs80_out_aa(.(T230, T231), X452)
qs80_in_aa(.(T237, T231), X452) → U23_aa(T237, T231, X452, part87_in_aaaa(T237, T231, T235, T236))
U23_aa(T237, T231, X452, part87_out_aaaa(T237, T231, T235, T236)) → U24_aa(T237, T231, X452, qs80_in_aa(T235, X450))
qs80_in_aa(.(T325, T231), X452) → U27_aa(T325, T231, X452, part87_in_aaaa(T325, T231, T235, T236))
U27_aa(T325, T231, X452, part87_out_aaaa(T325, T231, T235, T236)) → U28_aa(T325, T231, X452, T236, qs80_in_aa(T235, T319))
qs80_in_aa([], []) → qs80_out_aa([], [])
U28_aa(T325, T231, X452, T236, qs80_out_aa(T235, T319)) → U29_aa(T325, T231, X452, T319, qs80_in_aa(T236, T324))
U29_aa(T325, T231, X452, T319, qs80_out_aa(T236, T324)) → U30_aa(T325, T231, X452, app121_in_aaaa(T319, T325, T324, X452))
app121_in_aaaa(.(T348, T349), T352, T353, .(T348, X657)) → U31_aaaa(T348, T349, T352, T353, X657, app121_in_aaaa(T349, T352, T353, X657))
app121_in_aaaa([], T362, T363, .(T362, T363)) → app121_out_aaaa([], T362, T363, .(T362, T363))
U31_aaaa(T348, T349, T352, T353, X657, app121_out_aaaa(T349, T352, T353, X657)) → app121_out_aaaa(.(T348, T349), T352, T353, .(T348, X657))
U30_aa(T325, T231, X452, app121_out_aaaa(T319, T325, T324, X452)) → qs80_out_aa(.(T325, T231), X452)
U24_aa(T237, T231, X452, qs80_out_aa(T235, X450)) → qs80_out_aa(.(T237, T231), X452)
U23_aa(T237, T231, X452, part87_out_aaaa(T237, T231, T235, T236)) → U25_aa(T237, T231, X452, T236, qs80_in_aa(T235, T319))
U25_aa(T237, T231, X452, T236, qs80_out_aa(T235, T319)) → U26_aa(T237, T231, X452, qs80_in_aa(T236, X451))
U26_aa(T237, T231, X452, qs80_out_aa(T236, X451)) → qs80_out_aa(.(T237, T231), X452)
U33_aaagg(T54, X10, T131, T31, T8, qs80_out_aa(T54, X10)) → p52_out_aaagg(T54, X10, T131, T31, T8)
p52_in_aaagg(T54, T217, T131, T31, T8) → U34_aaagg(T54, T217, T131, T31, T8, qs80_in_aa(T54, T217))
U34_aaagg(T54, T217, T131, T31, T8, qs80_out_aa(T54, T217)) → U35_aaagg(T54, T217, T131, T31, T8, app81_in_agag(T131, T31, T217, T8))
app81_in_agag(.(T389, T390), T391, T394, .(T389, T393)) → U32_agag(T389, T390, T391, T394, T393, app81_in_agag(T390, T391, T394, T393))
app81_in_agag([], T404, T405, .(T404, T405)) → app81_out_agag([], T404, T405, .(T404, T405))
U32_agag(T389, T390, T391, T394, T393, app81_out_agag(T390, T391, T394, T393)) → app81_out_agag(.(T389, T390), T391, T394, .(T389, T393))
U35_aaagg(T54, T217, T131, T31, T8, app81_out_agag(T131, T31, T217, T8)) → p52_out_aaagg(T54, T217, T131, T31, T8)
U50_ag(T31, T33, T32, T8, p52_out_aaagg(T54, X10, T131, T31, T8)) → qs1_out_ag(.(T31, .(T33, T32)), T8)
qs1_in_ag(.(T421, .(T422, T423)), T8) → U51_ag(T421, T422, T423, T8, le100_in_aa(T421, T422))
U51_ag(T421, T422, T423, T8, le100_out_aa(T421, T422)) → qs1_out_ag(.(T421, .(T422, T423)), T8)
qs1_in_ag(.(T426, .(T428, T427)), T8) → U52_ag(T426, T428, T427, T8, le100_in_aa(T426, T428))
U52_ag(T426, T428, T427, T8, le100_out_aa(T426, T428)) → U53_ag(T426, T428, T427, T8, part20_in_gaaa(T426, T427, X740, X741))
U53_ag(T426, T428, T427, T8, part20_out_gaaa(T426, T427, X740, X741)) → qs1_out_ag(.(T426, .(T428, T427)), T8)
qs1_in_ag(.(T426, .(T436, T427)), T8) → U54_ag(T426, T436, T427, T8, le100_in_aa(T426, T436))
U54_ag(T426, T436, T427, T8, le100_out_aa(T426, T436)) → U55_ag(T426, T436, T427, T8, part20_in_gaaa(T426, T427, T434, T435))
U55_ag(T426, T436, T427, T8, part20_out_gaaa(T426, T427, T434, T435)) → U56_ag(T426, T436, T427, T8, qs80_in_aa(T434, X9))
U56_ag(T426, T436, T427, T8, qs80_out_aa(T434, X9)) → qs1_out_ag(.(T426, .(T436, T427)), T8)
U55_ag(T426, T436, T427, T8, part20_out_gaaa(T426, T427, T434, T435)) → U57_ag(T426, T436, T427, T8, T435, qs80_in_aa(T434, T442))
U57_ag(T426, T436, T427, T8, T435, qs80_out_aa(T434, T442)) → U58_ag(T426, T436, T427, T8, p52_in_aaagg(.(T436, T435), X10, T442, T426, T8))
U58_ag(T426, T436, T427, T8, p52_out_aaagg(.(T436, T435), X10, T442, T426, T8)) → qs1_out_ag(.(T426, .(T436, T427)), T8)
qs1_in_ag(.(T452, []), T8) → U59_ag(T452, T8, qs155_in_a(X9))
qs155_in_a([]) → qs155_out_a([])
U59_ag(T452, T8, qs155_out_a(X9)) → qs1_out_ag(.(T452, []), T8)
qs1_in_ag(.(T452, []), T8) → U60_ag(T452, T8, qs155_in_a(T455))
U60_ag(T452, T8, qs155_out_a(T455)) → U61_ag(T452, T8, qs155_in_a(X10))
U61_ag(T452, T8, qs155_out_a(X10)) → qs1_out_ag(.(T452, []), T8)
U60_ag(T452, T8, qs155_out_a(T455)) → U62_ag(T452, T8, T455, qs155_in_a(T460))
U62_ag(T452, T8, T455, qs155_out_a(T460)) → U63_ag(T452, T8, app162_in_gagg(T455, T452, T460, T8))
app162_in_gagg(.(T486, T487), T491, T489, .(T486, T490)) → U36_gagg(T486, T487, T491, T489, T490, app162_in_gagg(T487, T491, T489, T490))
app162_in_gagg([], T501, T502, .(T501, T502)) → app162_out_gagg([], T501, T502, .(T501, T502))
U36_gagg(T486, T487, T491, T489, T490, app162_out_gagg(T487, T491, T489, T490)) → app162_out_gagg(.(T486, T487), T491, T489, .(T486, T490))
U63_ag(T452, T8, app162_out_gagg(T455, T452, T460, T8)) → qs1_out_ag(.(T452, []), T8)
qs1_in_ag([], []) → qs1_out_ag([], [])
LE100_IN_AA(s(T302), s(T303)) → LE100_IN_AA(T302, T303)
LE100_IN_AA → LE100_IN_AA
APP70_IN_AGAA(.(T201, T202), T203, T204, .(T201, X391)) → APP70_IN_AGAA(T202, T203, T204, X391)
qs1_in_ag(.(T26, .(T27, T28)), T8) → U44_ag(T26, T27, T28, T8, gt10_in_aa(T26, T27))
gt10_in_aa(s(T46), s(T47)) → U1_aa(T46, T47, gt10_in_aa(T46, T47))
gt10_in_aa(s(0), 0) → gt10_out_aa(s(0), 0)
U1_aa(T46, T47, gt10_out_aa(T46, T47)) → gt10_out_aa(s(T46), s(T47))
U44_ag(T26, T27, T28, T8, gt10_out_aa(T26, T27)) → qs1_out_ag(.(T26, .(T27, T28)), T8)
qs1_in_ag(.(T31, .(T33, T32)), T8) → U45_ag(T31, T33, T32, T8, gt10_in_aa(T31, T33))
U45_ag(T31, T33, T32, T8, gt10_out_aa(T31, T33)) → U46_ag(T31, T33, T32, T8, part20_in_gaaa(T31, T32, X47, X48))
part20_in_gaaa(T70, .(T73, T74), .(T73, X119), X120) → U2_gaaa(T70, T73, T74, X119, X120, gt10_in_ga(T70, T73))
gt10_in_ga(s(T46), s(T47)) → U1_ga(T46, T47, gt10_in_ga(T46, T47))
gt10_in_ga(s(0), 0) → gt10_out_ga(s(0), 0)
U1_ga(T46, T47, gt10_out_ga(T46, T47)) → gt10_out_ga(s(T46), s(T47))
U2_gaaa(T70, T73, T74, X119, X120, gt10_out_ga(T70, T73)) → part20_out_gaaa(T70, .(T73, T74), .(T73, X119), X120)
part20_in_gaaa(T70, .(T73, T77), .(T73, X119), X120) → U3_gaaa(T70, T73, T77, X119, X120, gt10_in_ga(T70, T73))
U3_gaaa(T70, T73, T77, X119, X120, gt10_out_ga(T70, T73)) → U4_gaaa(T70, T73, T77, X119, X120, part20_in_gaaa(T70, T77, X119, X120))
part20_in_gaaa(T95, .(T98, T99), X170, .(T98, X171)) → U5_gaaa(T95, T98, T99, X170, X171, le33_in_ga(T95, T98))
le33_in_ga(s(T113), s(T115)) → U8_ga(T113, T115, le33_in_ga(T113, T115))
le33_in_ga(0, s(T122)) → le33_out_ga(0, s(T122))
le33_in_ga(0, 0) → le33_out_ga(0, 0)
U8_ga(T113, T115, le33_out_ga(T113, T115)) → le33_out_ga(s(T113), s(T115))
U5_gaaa(T95, T98, T99, X170, X171, le33_out_ga(T95, T98)) → part20_out_gaaa(T95, .(T98, T99), X170, .(T98, X171))
part20_in_gaaa(T95, .(T98, T102), X170, .(T98, X171)) → U6_gaaa(T95, T98, T102, X170, X171, le33_in_ga(T95, T98))
U6_gaaa(T95, T98, T102, X170, X171, le33_out_ga(T95, T98)) → U7_gaaa(T95, T98, T102, X170, X171, part20_in_gaaa(T95, T102, X170, X171))
part20_in_gaaa(T128, [], [], []) → part20_out_gaaa(T128, [], [], [])
U7_gaaa(T95, T98, T102, X170, X171, part20_out_gaaa(T95, T102, X170, X171)) → part20_out_gaaa(T95, .(T98, T102), X170, .(T98, X171))
U4_gaaa(T70, T73, T77, X119, X120, part20_out_gaaa(T70, T77, X119, X120)) → part20_out_gaaa(T70, .(T73, T77), .(T73, X119), X120)
U46_ag(T31, T33, T32, T8, part20_out_gaaa(T31, T32, X47, X48)) → qs1_out_ag(.(T31, .(T33, T32)), T8)
U45_ag(T31, T33, T32, T8, gt10_out_aa(T31, T33)) → U47_ag(T31, T33, T32, T8, part20_in_gaaa(T31, T32, T53, T54))
U47_ag(T31, T33, T32, T8, part20_out_gaaa(T31, T32, T53, T54)) → U48_ag(T31, T33, T32, T8, qs51_in_gaa(T33, T53, X9))
qs51_in_gaa(T148, T149, X273) → U37_gaa(T148, T149, X273, p56_in_gaaaaaa(T148, T149, X269, X270, X271, X272, X273))
p56_in_gaaaaaa(T148, T149, X269, X270, X271, X272, X273) → U9_gaaaaaa(T148, T149, X269, X270, X271, X272, X273, part20_in_gaaa(T148, T149, X269, X270))
U9_gaaaaaa(T148, T149, X269, X270, X271, X272, X273, part20_out_gaaa(T148, T149, X269, X270)) → p56_out_gaaaaaa(T148, T149, X269, X270, X271, X272, X273)
p56_in_gaaaaaa(T148, T149, T153, T154, X271, X272, X273) → U10_gaaaaaa(T148, T149, T153, T154, X271, X272, X273, part20_in_gaaa(T148, T149, T153, T154))
U10_gaaaaaa(T148, T149, T153, T154, X271, X272, X273, part20_out_gaaa(T148, T149, T153, T154)) → U11_gaaaaaa(T148, T149, T153, T154, X271, X272, X273, qs59_in_aa(T153, X271))
qs59_in_aa(.(T171, T172), X335) → U19_aa(T171, T172, X335, p56_in_aaaaaaa(T171, T172, X331, X332, X333, X334, X335))
p56_in_aaaaaaa(T148, T149, X269, X270, X271, X272, X273) → U9_aaaaaaa(T148, T149, X269, X270, X271, X272, X273, part20_in_aaaa(T148, T149, X269, X270))
part20_in_aaaa(T70, .(T73, T74), .(T73, X119), X120) → U2_aaaa(T70, T73, T74, X119, X120, gt10_in_aa(T70, T73))
U2_aaaa(T70, T73, T74, X119, X120, gt10_out_aa(T70, T73)) → part20_out_aaaa(T70, .(T73, T74), .(T73, X119), X120)
part20_in_aaaa(T70, .(T73, T77), .(T73, X119), X120) → U3_aaaa(T70, T73, T77, X119, X120, gt10_in_aa(T70, T73))
U3_aaaa(T70, T73, T77, X119, X120, gt10_out_aa(T70, T73)) → U4_aaaa(T70, T73, T77, X119, X120, part20_in_gaaa(T70, T77, X119, X120))
U4_aaaa(T70, T73, T77, X119, X120, part20_out_gaaa(T70, T77, X119, X120)) → part20_out_aaaa(T70, .(T73, T77), .(T73, X119), X120)
part20_in_aaaa(T95, .(T98, T99), X170, .(T98, X171)) → U5_aaaa(T95, T98, T99, X170, X171, le33_in_aa(T95, T98))
le33_in_aa(s(T113), s(T115)) → U8_aa(T113, T115, le33_in_aa(T113, T115))
le33_in_aa(0, s(T122)) → le33_out_aa(0, s(T122))
le33_in_aa(0, 0) → le33_out_aa(0, 0)
U8_aa(T113, T115, le33_out_aa(T113, T115)) → le33_out_aa(s(T113), s(T115))
U5_aaaa(T95, T98, T99, X170, X171, le33_out_aa(T95, T98)) → part20_out_aaaa(T95, .(T98, T99), X170, .(T98, X171))
part20_in_aaaa(T95, .(T98, T102), X170, .(T98, X171)) → U6_aaaa(T95, T98, T102, X170, X171, le33_in_aa(T95, T98))
U6_aaaa(T95, T98, T102, X170, X171, le33_out_aa(T95, T98)) → U7_aaaa(T95, T98, T102, X170, X171, part20_in_gaaa(T95, T102, X170, X171))
U7_aaaa(T95, T98, T102, X170, X171, part20_out_gaaa(T95, T102, X170, X171)) → part20_out_aaaa(T95, .(T98, T102), X170, .(T98, X171))
part20_in_aaaa(T128, [], [], []) → part20_out_aaaa(T128, [], [], [])
U9_aaaaaaa(T148, T149, X269, X270, X271, X272, X273, part20_out_aaaa(T148, T149, X269, X270)) → p56_out_aaaaaaa(T148, T149, X269, X270, X271, X272, X273)
p56_in_aaaaaaa(T148, T149, T153, T154, X271, X272, X273) → U10_aaaaaaa(T148, T149, T153, T154, X271, X272, X273, part20_in_aaaa(T148, T149, T153, T154))
U10_aaaaaaa(T148, T149, T153, T154, X271, X272, X273, part20_out_aaaa(T148, T149, T153, T154)) → U11_aaaaaaa(T148, T149, T153, T154, X271, X272, X273, qs59_in_aa(T153, X271))
qs59_in_aa([], []) → qs59_out_aa([], [])
U11_aaaaaaa(T148, T149, T153, T154, X271, X272, X273, qs59_out_aa(T153, X271)) → p56_out_aaaaaaa(T148, T149, T153, T154, X271, X272, X273)
p56_in_aaaaaaa(T148, T149, T153, T154, T160, X272, X273) → U12_aaaaaaa(T148, T149, T153, T154, T160, X272, X273, part20_in_aaaa(T148, T149, T153, T154))
U12_aaaaaaa(T148, T149, T153, T154, T160, X272, X273, part20_out_aaaa(T148, T149, T153, T154)) → U13_aaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_in_aa(T153, T160))
U13_aaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_out_aa(T153, T160)) → U14_aaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_in_aa(T154, X272))
U14_aaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_out_aa(T154, X272)) → p56_out_aaaaaaa(T148, T149, T153, T154, T160, X272, X273)
p56_in_aaaaaaa(T148, T149, T153, T154, T160, T178, X273) → U15_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, part20_in_aaaa(T148, T149, T153, T154))
U15_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, part20_out_aaaa(T148, T149, T153, T154)) → U16_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_in_aa(T153, T160))
U16_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_out_aa(T153, T160)) → U17_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_in_aa(T154, T178))
U17_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_out_aa(T154, T178)) → U18_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, app70_in_aaaa(T160, T148, T178, X273))
app70_in_aaaa(.(T201, T202), T203, T204, .(T201, X391)) → U20_aaaa(T201, T202, T203, T204, X391, app70_in_aaaa(T202, T203, T204, X391))
app70_in_aaaa([], T213, T214, .(T213, T214)) → app70_out_aaaa([], T213, T214, .(T213, T214))
U20_aaaa(T201, T202, T203, T204, X391, app70_out_aaaa(T202, T203, T204, X391)) → app70_out_aaaa(.(T201, T202), T203, T204, .(T201, X391))
U18_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, app70_out_aaaa(T160, T148, T178, X273)) → p56_out_aaaaaaa(T148, T149, T153, T154, T160, T178, X273)
U19_aa(T171, T172, X335, p56_out_aaaaaaa(T171, T172, X331, X332, X333, X334, X335)) → qs59_out_aa(.(T171, T172), X335)
U11_gaaaaaa(T148, T149, T153, T154, X271, X272, X273, qs59_out_aa(T153, X271)) → p56_out_gaaaaaa(T148, T149, T153, T154, X271, X272, X273)
p56_in_gaaaaaa(T148, T149, T153, T154, T160, X272, X273) → U12_gaaaaaa(T148, T149, T153, T154, T160, X272, X273, part20_in_gaaa(T148, T149, T153, T154))
U12_gaaaaaa(T148, T149, T153, T154, T160, X272, X273, part20_out_gaaa(T148, T149, T153, T154)) → U13_gaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_in_aa(T153, T160))
U13_gaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_out_aa(T153, T160)) → U14_gaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_in_aa(T154, X272))
U14_gaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_out_aa(T154, X272)) → p56_out_gaaaaaa(T148, T149, T153, T154, T160, X272, X273)
p56_in_gaaaaaa(T148, T149, T153, T154, T160, T178, X273) → U15_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, part20_in_gaaa(T148, T149, T153, T154))
U15_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, part20_out_gaaa(T148, T149, T153, T154)) → U16_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_in_aa(T153, T160))
U16_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_out_aa(T153, T160)) → U17_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_in_aa(T154, T178))
U17_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_out_aa(T154, T178)) → U18_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, app70_in_agaa(T160, T148, T178, X273))
app70_in_agaa(.(T201, T202), T203, T204, .(T201, X391)) → U20_agaa(T201, T202, T203, T204, X391, app70_in_agaa(T202, T203, T204, X391))
app70_in_agaa([], T213, T214, .(T213, T214)) → app70_out_agaa([], T213, T214, .(T213, T214))
U20_agaa(T201, T202, T203, T204, X391, app70_out_agaa(T202, T203, T204, X391)) → app70_out_agaa(.(T201, T202), T203, T204, .(T201, X391))
U18_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, app70_out_agaa(T160, T148, T178, X273)) → p56_out_gaaaaaa(T148, T149, T153, T154, T160, T178, X273)
U37_gaa(T148, T149, X273, p56_out_gaaaaaa(T148, T149, X269, X270, X271, X272, X273)) → qs51_out_gaa(T148, T149, X273)
U48_ag(T31, T33, T32, T8, qs51_out_gaa(T33, T53, X9)) → qs1_out_ag(.(T31, .(T33, T32)), T8)
U47_ag(T31, T33, T32, T8, part20_out_gaaa(T31, T32, T53, T54)) → U49_ag(T31, T33, T32, T8, T54, qs51_in_gaa(T33, T53, T131))
U49_ag(T31, T33, T32, T8, T54, qs51_out_gaa(T33, T53, T131)) → U50_ag(T31, T33, T32, T8, p52_in_aaagg(T54, X10, T131, T31, T8))
p52_in_aaagg(T54, X10, T131, T31, T8) → U33_aaagg(T54, X10, T131, T31, T8, qs80_in_aa(T54, X10))
qs80_in_aa(.(T230, T231), X452) → U22_aa(T230, T231, X452, part87_in_aaaa(T230, T231, X448, X449))
part87_in_aaaa(T256, .(T257, T258), .(T257, X503), X504) → U38_aaaa(T256, T257, T258, X503, X504, gt10_in_aa(T256, T257))
U38_aaaa(T256, T257, T258, X503, X504, gt10_out_aa(T256, T257)) → part87_out_aaaa(T256, .(T257, T258), .(T257, X503), X504)
part87_in_aaaa(T261, .(T257, T262), .(T257, X503), X504) → U39_aaaa(T261, T257, T262, X503, X504, gt10_in_aa(T261, T257))
U39_aaaa(T261, T257, T262, X503, X504, gt10_out_aa(T261, T257)) → U40_aaaa(T261, T257, T262, X503, X504, part20_in_gaaa(T261, T262, X503, X504))
U40_aaaa(T261, T257, T262, X503, X504, part20_out_gaaa(T261, T262, X503, X504)) → part87_out_aaaa(T261, .(T257, T262), .(T257, X503), X504)
part87_in_aaaa(T283, .(T284, T285), X554, .(T284, X555)) → U41_aaaa(T283, T284, T285, X554, X555, le100_in_aa(T283, T284))
le100_in_aa(s(T302), s(T303)) → U21_aa(T302, T303, le100_in_aa(T302, T303))
le100_in_aa(0, s(T310)) → le100_out_aa(0, s(T310))
le100_in_aa(0, 0) → le100_out_aa(0, 0)
U21_aa(T302, T303, le100_out_aa(T302, T303)) → le100_out_aa(s(T302), s(T303))
U41_aaaa(T283, T284, T285, X554, X555, le100_out_aa(T283, T284)) → part87_out_aaaa(T283, .(T284, T285), X554, .(T284, X555))
part87_in_aaaa(T288, .(T284, T289), X554, .(T284, X555)) → U42_aaaa(T288, T284, T289, X554, X555, le100_in_aa(T288, T284))
U42_aaaa(T288, T284, T289, X554, X555, le100_out_aa(T288, T284)) → U43_aaaa(T288, T284, T289, X554, X555, part20_in_gaaa(T288, T289, X554, X555))
U43_aaaa(T288, T284, T289, X554, X555, part20_out_gaaa(T288, T289, X554, X555)) → part87_out_aaaa(T288, .(T284, T289), X554, .(T284, X555))
part87_in_aaaa(T316, [], [], []) → part87_out_aaaa(T316, [], [], [])
U22_aa(T230, T231, X452, part87_out_aaaa(T230, T231, X448, X449)) → qs80_out_aa(.(T230, T231), X452)
qs80_in_aa(.(T237, T231), X452) → U23_aa(T237, T231, X452, part87_in_aaaa(T237, T231, T235, T236))
U23_aa(T237, T231, X452, part87_out_aaaa(T237, T231, T235, T236)) → U24_aa(T237, T231, X452, qs80_in_aa(T235, X450))
qs80_in_aa(.(T325, T231), X452) → U27_aa(T325, T231, X452, part87_in_aaaa(T325, T231, T235, T236))
U27_aa(T325, T231, X452, part87_out_aaaa(T325, T231, T235, T236)) → U28_aa(T325, T231, X452, T236, qs80_in_aa(T235, T319))
qs80_in_aa([], []) → qs80_out_aa([], [])
U28_aa(T325, T231, X452, T236, qs80_out_aa(T235, T319)) → U29_aa(T325, T231, X452, T319, qs80_in_aa(T236, T324))
U29_aa(T325, T231, X452, T319, qs80_out_aa(T236, T324)) → U30_aa(T325, T231, X452, app121_in_aaaa(T319, T325, T324, X452))
app121_in_aaaa(.(T348, T349), T352, T353, .(T348, X657)) → U31_aaaa(T348, T349, T352, T353, X657, app121_in_aaaa(T349, T352, T353, X657))
app121_in_aaaa([], T362, T363, .(T362, T363)) → app121_out_aaaa([], T362, T363, .(T362, T363))
U31_aaaa(T348, T349, T352, T353, X657, app121_out_aaaa(T349, T352, T353, X657)) → app121_out_aaaa(.(T348, T349), T352, T353, .(T348, X657))
U30_aa(T325, T231, X452, app121_out_aaaa(T319, T325, T324, X452)) → qs80_out_aa(.(T325, T231), X452)
U24_aa(T237, T231, X452, qs80_out_aa(T235, X450)) → qs80_out_aa(.(T237, T231), X452)
U23_aa(T237, T231, X452, part87_out_aaaa(T237, T231, T235, T236)) → U25_aa(T237, T231, X452, T236, qs80_in_aa(T235, T319))
U25_aa(T237, T231, X452, T236, qs80_out_aa(T235, T319)) → U26_aa(T237, T231, X452, qs80_in_aa(T236, X451))
U26_aa(T237, T231, X452, qs80_out_aa(T236, X451)) → qs80_out_aa(.(T237, T231), X452)
U33_aaagg(T54, X10, T131, T31, T8, qs80_out_aa(T54, X10)) → p52_out_aaagg(T54, X10, T131, T31, T8)
p52_in_aaagg(T54, T217, T131, T31, T8) → U34_aaagg(T54, T217, T131, T31, T8, qs80_in_aa(T54, T217))
U34_aaagg(T54, T217, T131, T31, T8, qs80_out_aa(T54, T217)) → U35_aaagg(T54, T217, T131, T31, T8, app81_in_agag(T131, T31, T217, T8))
app81_in_agag(.(T389, T390), T391, T394, .(T389, T393)) → U32_agag(T389, T390, T391, T394, T393, app81_in_agag(T390, T391, T394, T393))
app81_in_agag([], T404, T405, .(T404, T405)) → app81_out_agag([], T404, T405, .(T404, T405))
U32_agag(T389, T390, T391, T394, T393, app81_out_agag(T390, T391, T394, T393)) → app81_out_agag(.(T389, T390), T391, T394, .(T389, T393))
U35_aaagg(T54, T217, T131, T31, T8, app81_out_agag(T131, T31, T217, T8)) → p52_out_aaagg(T54, T217, T131, T31, T8)
U50_ag(T31, T33, T32, T8, p52_out_aaagg(T54, X10, T131, T31, T8)) → qs1_out_ag(.(T31, .(T33, T32)), T8)
qs1_in_ag(.(T421, .(T422, T423)), T8) → U51_ag(T421, T422, T423, T8, le100_in_aa(T421, T422))
U51_ag(T421, T422, T423, T8, le100_out_aa(T421, T422)) → qs1_out_ag(.(T421, .(T422, T423)), T8)
qs1_in_ag(.(T426, .(T428, T427)), T8) → U52_ag(T426, T428, T427, T8, le100_in_aa(T426, T428))
U52_ag(T426, T428, T427, T8, le100_out_aa(T426, T428)) → U53_ag(T426, T428, T427, T8, part20_in_gaaa(T426, T427, X740, X741))
U53_ag(T426, T428, T427, T8, part20_out_gaaa(T426, T427, X740, X741)) → qs1_out_ag(.(T426, .(T428, T427)), T8)
qs1_in_ag(.(T426, .(T436, T427)), T8) → U54_ag(T426, T436, T427, T8, le100_in_aa(T426, T436))
U54_ag(T426, T436, T427, T8, le100_out_aa(T426, T436)) → U55_ag(T426, T436, T427, T8, part20_in_gaaa(T426, T427, T434, T435))
U55_ag(T426, T436, T427, T8, part20_out_gaaa(T426, T427, T434, T435)) → U56_ag(T426, T436, T427, T8, qs80_in_aa(T434, X9))
U56_ag(T426, T436, T427, T8, qs80_out_aa(T434, X9)) → qs1_out_ag(.(T426, .(T436, T427)), T8)
U55_ag(T426, T436, T427, T8, part20_out_gaaa(T426, T427, T434, T435)) → U57_ag(T426, T436, T427, T8, T435, qs80_in_aa(T434, T442))
U57_ag(T426, T436, T427, T8, T435, qs80_out_aa(T434, T442)) → U58_ag(T426, T436, T427, T8, p52_in_aaagg(.(T436, T435), X10, T442, T426, T8))
U58_ag(T426, T436, T427, T8, p52_out_aaagg(.(T436, T435), X10, T442, T426, T8)) → qs1_out_ag(.(T426, .(T436, T427)), T8)
qs1_in_ag(.(T452, []), T8) → U59_ag(T452, T8, qs155_in_a(X9))
qs155_in_a([]) → qs155_out_a([])
U59_ag(T452, T8, qs155_out_a(X9)) → qs1_out_ag(.(T452, []), T8)
qs1_in_ag(.(T452, []), T8) → U60_ag(T452, T8, qs155_in_a(T455))
U60_ag(T452, T8, qs155_out_a(T455)) → U61_ag(T452, T8, qs155_in_a(X10))
U61_ag(T452, T8, qs155_out_a(X10)) → qs1_out_ag(.(T452, []), T8)
U60_ag(T452, T8, qs155_out_a(T455)) → U62_ag(T452, T8, T455, qs155_in_a(T460))
U62_ag(T452, T8, T455, qs155_out_a(T460)) → U63_ag(T452, T8, app162_in_gagg(T455, T452, T460, T8))
app162_in_gagg(.(T486, T487), T491, T489, .(T486, T490)) → U36_gagg(T486, T487, T491, T489, T490, app162_in_gagg(T487, T491, T489, T490))
app162_in_gagg([], T501, T502, .(T501, T502)) → app162_out_gagg([], T501, T502, .(T501, T502))
U36_gagg(T486, T487, T491, T489, T490, app162_out_gagg(T487, T491, T489, T490)) → app162_out_gagg(.(T486, T487), T491, T489, .(T486, T490))
U63_ag(T452, T8, app162_out_gagg(T455, T452, T460, T8)) → qs1_out_ag(.(T452, []), T8)
qs1_in_ag([], []) → qs1_out_ag([], [])
APP70_IN_AGAA(.(T201, T202), T203, T204, .(T201, X391)) → APP70_IN_AGAA(T202, T203, T204, X391)
APP70_IN_AGAA(T203) → APP70_IN_AGAA(T203)
APP70_IN_AAAA(.(T201, T202), T203, T204, .(T201, X391)) → APP70_IN_AAAA(T202, T203, T204, X391)
qs1_in_ag(.(T26, .(T27, T28)), T8) → U44_ag(T26, T27, T28, T8, gt10_in_aa(T26, T27))
gt10_in_aa(s(T46), s(T47)) → U1_aa(T46, T47, gt10_in_aa(T46, T47))
gt10_in_aa(s(0), 0) → gt10_out_aa(s(0), 0)
U1_aa(T46, T47, gt10_out_aa(T46, T47)) → gt10_out_aa(s(T46), s(T47))
U44_ag(T26, T27, T28, T8, gt10_out_aa(T26, T27)) → qs1_out_ag(.(T26, .(T27, T28)), T8)
qs1_in_ag(.(T31, .(T33, T32)), T8) → U45_ag(T31, T33, T32, T8, gt10_in_aa(T31, T33))
U45_ag(T31, T33, T32, T8, gt10_out_aa(T31, T33)) → U46_ag(T31, T33, T32, T8, part20_in_gaaa(T31, T32, X47, X48))
part20_in_gaaa(T70, .(T73, T74), .(T73, X119), X120) → U2_gaaa(T70, T73, T74, X119, X120, gt10_in_ga(T70, T73))
gt10_in_ga(s(T46), s(T47)) → U1_ga(T46, T47, gt10_in_ga(T46, T47))
gt10_in_ga(s(0), 0) → gt10_out_ga(s(0), 0)
U1_ga(T46, T47, gt10_out_ga(T46, T47)) → gt10_out_ga(s(T46), s(T47))
U2_gaaa(T70, T73, T74, X119, X120, gt10_out_ga(T70, T73)) → part20_out_gaaa(T70, .(T73, T74), .(T73, X119), X120)
part20_in_gaaa(T70, .(T73, T77), .(T73, X119), X120) → U3_gaaa(T70, T73, T77, X119, X120, gt10_in_ga(T70, T73))
U3_gaaa(T70, T73, T77, X119, X120, gt10_out_ga(T70, T73)) → U4_gaaa(T70, T73, T77, X119, X120, part20_in_gaaa(T70, T77, X119, X120))
part20_in_gaaa(T95, .(T98, T99), X170, .(T98, X171)) → U5_gaaa(T95, T98, T99, X170, X171, le33_in_ga(T95, T98))
le33_in_ga(s(T113), s(T115)) → U8_ga(T113, T115, le33_in_ga(T113, T115))
le33_in_ga(0, s(T122)) → le33_out_ga(0, s(T122))
le33_in_ga(0, 0) → le33_out_ga(0, 0)
U8_ga(T113, T115, le33_out_ga(T113, T115)) → le33_out_ga(s(T113), s(T115))
U5_gaaa(T95, T98, T99, X170, X171, le33_out_ga(T95, T98)) → part20_out_gaaa(T95, .(T98, T99), X170, .(T98, X171))
part20_in_gaaa(T95, .(T98, T102), X170, .(T98, X171)) → U6_gaaa(T95, T98, T102, X170, X171, le33_in_ga(T95, T98))
U6_gaaa(T95, T98, T102, X170, X171, le33_out_ga(T95, T98)) → U7_gaaa(T95, T98, T102, X170, X171, part20_in_gaaa(T95, T102, X170, X171))
part20_in_gaaa(T128, [], [], []) → part20_out_gaaa(T128, [], [], [])
U7_gaaa(T95, T98, T102, X170, X171, part20_out_gaaa(T95, T102, X170, X171)) → part20_out_gaaa(T95, .(T98, T102), X170, .(T98, X171))
U4_gaaa(T70, T73, T77, X119, X120, part20_out_gaaa(T70, T77, X119, X120)) → part20_out_gaaa(T70, .(T73, T77), .(T73, X119), X120)
U46_ag(T31, T33, T32, T8, part20_out_gaaa(T31, T32, X47, X48)) → qs1_out_ag(.(T31, .(T33, T32)), T8)
U45_ag(T31, T33, T32, T8, gt10_out_aa(T31, T33)) → U47_ag(T31, T33, T32, T8, part20_in_gaaa(T31, T32, T53, T54))
U47_ag(T31, T33, T32, T8, part20_out_gaaa(T31, T32, T53, T54)) → U48_ag(T31, T33, T32, T8, qs51_in_gaa(T33, T53, X9))
qs51_in_gaa(T148, T149, X273) → U37_gaa(T148, T149, X273, p56_in_gaaaaaa(T148, T149, X269, X270, X271, X272, X273))
p56_in_gaaaaaa(T148, T149, X269, X270, X271, X272, X273) → U9_gaaaaaa(T148, T149, X269, X270, X271, X272, X273, part20_in_gaaa(T148, T149, X269, X270))
U9_gaaaaaa(T148, T149, X269, X270, X271, X272, X273, part20_out_gaaa(T148, T149, X269, X270)) → p56_out_gaaaaaa(T148, T149, X269, X270, X271, X272, X273)
p56_in_gaaaaaa(T148, T149, T153, T154, X271, X272, X273) → U10_gaaaaaa(T148, T149, T153, T154, X271, X272, X273, part20_in_gaaa(T148, T149, T153, T154))
U10_gaaaaaa(T148, T149, T153, T154, X271, X272, X273, part20_out_gaaa(T148, T149, T153, T154)) → U11_gaaaaaa(T148, T149, T153, T154, X271, X272, X273, qs59_in_aa(T153, X271))
qs59_in_aa(.(T171, T172), X335) → U19_aa(T171, T172, X335, p56_in_aaaaaaa(T171, T172, X331, X332, X333, X334, X335))
p56_in_aaaaaaa(T148, T149, X269, X270, X271, X272, X273) → U9_aaaaaaa(T148, T149, X269, X270, X271, X272, X273, part20_in_aaaa(T148, T149, X269, X270))
part20_in_aaaa(T70, .(T73, T74), .(T73, X119), X120) → U2_aaaa(T70, T73, T74, X119, X120, gt10_in_aa(T70, T73))
U2_aaaa(T70, T73, T74, X119, X120, gt10_out_aa(T70, T73)) → part20_out_aaaa(T70, .(T73, T74), .(T73, X119), X120)
part20_in_aaaa(T70, .(T73, T77), .(T73, X119), X120) → U3_aaaa(T70, T73, T77, X119, X120, gt10_in_aa(T70, T73))
U3_aaaa(T70, T73, T77, X119, X120, gt10_out_aa(T70, T73)) → U4_aaaa(T70, T73, T77, X119, X120, part20_in_gaaa(T70, T77, X119, X120))
U4_aaaa(T70, T73, T77, X119, X120, part20_out_gaaa(T70, T77, X119, X120)) → part20_out_aaaa(T70, .(T73, T77), .(T73, X119), X120)
part20_in_aaaa(T95, .(T98, T99), X170, .(T98, X171)) → U5_aaaa(T95, T98, T99, X170, X171, le33_in_aa(T95, T98))
le33_in_aa(s(T113), s(T115)) → U8_aa(T113, T115, le33_in_aa(T113, T115))
le33_in_aa(0, s(T122)) → le33_out_aa(0, s(T122))
le33_in_aa(0, 0) → le33_out_aa(0, 0)
U8_aa(T113, T115, le33_out_aa(T113, T115)) → le33_out_aa(s(T113), s(T115))
U5_aaaa(T95, T98, T99, X170, X171, le33_out_aa(T95, T98)) → part20_out_aaaa(T95, .(T98, T99), X170, .(T98, X171))
part20_in_aaaa(T95, .(T98, T102), X170, .(T98, X171)) → U6_aaaa(T95, T98, T102, X170, X171, le33_in_aa(T95, T98))
U6_aaaa(T95, T98, T102, X170, X171, le33_out_aa(T95, T98)) → U7_aaaa(T95, T98, T102, X170, X171, part20_in_gaaa(T95, T102, X170, X171))
U7_aaaa(T95, T98, T102, X170, X171, part20_out_gaaa(T95, T102, X170, X171)) → part20_out_aaaa(T95, .(T98, T102), X170, .(T98, X171))
part20_in_aaaa(T128, [], [], []) → part20_out_aaaa(T128, [], [], [])
U9_aaaaaaa(T148, T149, X269, X270, X271, X272, X273, part20_out_aaaa(T148, T149, X269, X270)) → p56_out_aaaaaaa(T148, T149, X269, X270, X271, X272, X273)
p56_in_aaaaaaa(T148, T149, T153, T154, X271, X272, X273) → U10_aaaaaaa(T148, T149, T153, T154, X271, X272, X273, part20_in_aaaa(T148, T149, T153, T154))
U10_aaaaaaa(T148, T149, T153, T154, X271, X272, X273, part20_out_aaaa(T148, T149, T153, T154)) → U11_aaaaaaa(T148, T149, T153, T154, X271, X272, X273, qs59_in_aa(T153, X271))
qs59_in_aa([], []) → qs59_out_aa([], [])
U11_aaaaaaa(T148, T149, T153, T154, X271, X272, X273, qs59_out_aa(T153, X271)) → p56_out_aaaaaaa(T148, T149, T153, T154, X271, X272, X273)
p56_in_aaaaaaa(T148, T149, T153, T154, T160, X272, X273) → U12_aaaaaaa(T148, T149, T153, T154, T160, X272, X273, part20_in_aaaa(T148, T149, T153, T154))
U12_aaaaaaa(T148, T149, T153, T154, T160, X272, X273, part20_out_aaaa(T148, T149, T153, T154)) → U13_aaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_in_aa(T153, T160))
U13_aaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_out_aa(T153, T160)) → U14_aaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_in_aa(T154, X272))
U14_aaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_out_aa(T154, X272)) → p56_out_aaaaaaa(T148, T149, T153, T154, T160, X272, X273)
p56_in_aaaaaaa(T148, T149, T153, T154, T160, T178, X273) → U15_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, part20_in_aaaa(T148, T149, T153, T154))
U15_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, part20_out_aaaa(T148, T149, T153, T154)) → U16_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_in_aa(T153, T160))
U16_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_out_aa(T153, T160)) → U17_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_in_aa(T154, T178))
U17_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_out_aa(T154, T178)) → U18_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, app70_in_aaaa(T160, T148, T178, X273))
app70_in_aaaa(.(T201, T202), T203, T204, .(T201, X391)) → U20_aaaa(T201, T202, T203, T204, X391, app70_in_aaaa(T202, T203, T204, X391))
app70_in_aaaa([], T213, T214, .(T213, T214)) → app70_out_aaaa([], T213, T214, .(T213, T214))
U20_aaaa(T201, T202, T203, T204, X391, app70_out_aaaa(T202, T203, T204, X391)) → app70_out_aaaa(.(T201, T202), T203, T204, .(T201, X391))
U18_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, app70_out_aaaa(T160, T148, T178, X273)) → p56_out_aaaaaaa(T148, T149, T153, T154, T160, T178, X273)
U19_aa(T171, T172, X335, p56_out_aaaaaaa(T171, T172, X331, X332, X333, X334, X335)) → qs59_out_aa(.(T171, T172), X335)
U11_gaaaaaa(T148, T149, T153, T154, X271, X272, X273, qs59_out_aa(T153, X271)) → p56_out_gaaaaaa(T148, T149, T153, T154, X271, X272, X273)
p56_in_gaaaaaa(T148, T149, T153, T154, T160, X272, X273) → U12_gaaaaaa(T148, T149, T153, T154, T160, X272, X273, part20_in_gaaa(T148, T149, T153, T154))
U12_gaaaaaa(T148, T149, T153, T154, T160, X272, X273, part20_out_gaaa(T148, T149, T153, T154)) → U13_gaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_in_aa(T153, T160))
U13_gaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_out_aa(T153, T160)) → U14_gaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_in_aa(T154, X272))
U14_gaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_out_aa(T154, X272)) → p56_out_gaaaaaa(T148, T149, T153, T154, T160, X272, X273)
p56_in_gaaaaaa(T148, T149, T153, T154, T160, T178, X273) → U15_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, part20_in_gaaa(T148, T149, T153, T154))
U15_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, part20_out_gaaa(T148, T149, T153, T154)) → U16_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_in_aa(T153, T160))
U16_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_out_aa(T153, T160)) → U17_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_in_aa(T154, T178))
U17_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_out_aa(T154, T178)) → U18_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, app70_in_agaa(T160, T148, T178, X273))
app70_in_agaa(.(T201, T202), T203, T204, .(T201, X391)) → U20_agaa(T201, T202, T203, T204, X391, app70_in_agaa(T202, T203, T204, X391))
app70_in_agaa([], T213, T214, .(T213, T214)) → app70_out_agaa([], T213, T214, .(T213, T214))
U20_agaa(T201, T202, T203, T204, X391, app70_out_agaa(T202, T203, T204, X391)) → app70_out_agaa(.(T201, T202), T203, T204, .(T201, X391))
U18_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, app70_out_agaa(T160, T148, T178, X273)) → p56_out_gaaaaaa(T148, T149, T153, T154, T160, T178, X273)
U37_gaa(T148, T149, X273, p56_out_gaaaaaa(T148, T149, X269, X270, X271, X272, X273)) → qs51_out_gaa(T148, T149, X273)
U48_ag(T31, T33, T32, T8, qs51_out_gaa(T33, T53, X9)) → qs1_out_ag(.(T31, .(T33, T32)), T8)
U47_ag(T31, T33, T32, T8, part20_out_gaaa(T31, T32, T53, T54)) → U49_ag(T31, T33, T32, T8, T54, qs51_in_gaa(T33, T53, T131))
U49_ag(T31, T33, T32, T8, T54, qs51_out_gaa(T33, T53, T131)) → U50_ag(T31, T33, T32, T8, p52_in_aaagg(T54, X10, T131, T31, T8))
p52_in_aaagg(T54, X10, T131, T31, T8) → U33_aaagg(T54, X10, T131, T31, T8, qs80_in_aa(T54, X10))
qs80_in_aa(.(T230, T231), X452) → U22_aa(T230, T231, X452, part87_in_aaaa(T230, T231, X448, X449))
part87_in_aaaa(T256, .(T257, T258), .(T257, X503), X504) → U38_aaaa(T256, T257, T258, X503, X504, gt10_in_aa(T256, T257))
U38_aaaa(T256, T257, T258, X503, X504, gt10_out_aa(T256, T257)) → part87_out_aaaa(T256, .(T257, T258), .(T257, X503), X504)
part87_in_aaaa(T261, .(T257, T262), .(T257, X503), X504) → U39_aaaa(T261, T257, T262, X503, X504, gt10_in_aa(T261, T257))
U39_aaaa(T261, T257, T262, X503, X504, gt10_out_aa(T261, T257)) → U40_aaaa(T261, T257, T262, X503, X504, part20_in_gaaa(T261, T262, X503, X504))
U40_aaaa(T261, T257, T262, X503, X504, part20_out_gaaa(T261, T262, X503, X504)) → part87_out_aaaa(T261, .(T257, T262), .(T257, X503), X504)
part87_in_aaaa(T283, .(T284, T285), X554, .(T284, X555)) → U41_aaaa(T283, T284, T285, X554, X555, le100_in_aa(T283, T284))
le100_in_aa(s(T302), s(T303)) → U21_aa(T302, T303, le100_in_aa(T302, T303))
le100_in_aa(0, s(T310)) → le100_out_aa(0, s(T310))
le100_in_aa(0, 0) → le100_out_aa(0, 0)
U21_aa(T302, T303, le100_out_aa(T302, T303)) → le100_out_aa(s(T302), s(T303))
U41_aaaa(T283, T284, T285, X554, X555, le100_out_aa(T283, T284)) → part87_out_aaaa(T283, .(T284, T285), X554, .(T284, X555))
part87_in_aaaa(T288, .(T284, T289), X554, .(T284, X555)) → U42_aaaa(T288, T284, T289, X554, X555, le100_in_aa(T288, T284))
U42_aaaa(T288, T284, T289, X554, X555, le100_out_aa(T288, T284)) → U43_aaaa(T288, T284, T289, X554, X555, part20_in_gaaa(T288, T289, X554, X555))
U43_aaaa(T288, T284, T289, X554, X555, part20_out_gaaa(T288, T289, X554, X555)) → part87_out_aaaa(T288, .(T284, T289), X554, .(T284, X555))
part87_in_aaaa(T316, [], [], []) → part87_out_aaaa(T316, [], [], [])
U22_aa(T230, T231, X452, part87_out_aaaa(T230, T231, X448, X449)) → qs80_out_aa(.(T230, T231), X452)
qs80_in_aa(.(T237, T231), X452) → U23_aa(T237, T231, X452, part87_in_aaaa(T237, T231, T235, T236))
U23_aa(T237, T231, X452, part87_out_aaaa(T237, T231, T235, T236)) → U24_aa(T237, T231, X452, qs80_in_aa(T235, X450))
qs80_in_aa(.(T325, T231), X452) → U27_aa(T325, T231, X452, part87_in_aaaa(T325, T231, T235, T236))
U27_aa(T325, T231, X452, part87_out_aaaa(T325, T231, T235, T236)) → U28_aa(T325, T231, X452, T236, qs80_in_aa(T235, T319))
qs80_in_aa([], []) → qs80_out_aa([], [])
U28_aa(T325, T231, X452, T236, qs80_out_aa(T235, T319)) → U29_aa(T325, T231, X452, T319, qs80_in_aa(T236, T324))
U29_aa(T325, T231, X452, T319, qs80_out_aa(T236, T324)) → U30_aa(T325, T231, X452, app121_in_aaaa(T319, T325, T324, X452))
app121_in_aaaa(.(T348, T349), T352, T353, .(T348, X657)) → U31_aaaa(T348, T349, T352, T353, X657, app121_in_aaaa(T349, T352, T353, X657))
app121_in_aaaa([], T362, T363, .(T362, T363)) → app121_out_aaaa([], T362, T363, .(T362, T363))
U31_aaaa(T348, T349, T352, T353, X657, app121_out_aaaa(T349, T352, T353, X657)) → app121_out_aaaa(.(T348, T349), T352, T353, .(T348, X657))
U30_aa(T325, T231, X452, app121_out_aaaa(T319, T325, T324, X452)) → qs80_out_aa(.(T325, T231), X452)
U24_aa(T237, T231, X452, qs80_out_aa(T235, X450)) → qs80_out_aa(.(T237, T231), X452)
U23_aa(T237, T231, X452, part87_out_aaaa(T237, T231, T235, T236)) → U25_aa(T237, T231, X452, T236, qs80_in_aa(T235, T319))
U25_aa(T237, T231, X452, T236, qs80_out_aa(T235, T319)) → U26_aa(T237, T231, X452, qs80_in_aa(T236, X451))
U26_aa(T237, T231, X452, qs80_out_aa(T236, X451)) → qs80_out_aa(.(T237, T231), X452)
U33_aaagg(T54, X10, T131, T31, T8, qs80_out_aa(T54, X10)) → p52_out_aaagg(T54, X10, T131, T31, T8)
p52_in_aaagg(T54, T217, T131, T31, T8) → U34_aaagg(T54, T217, T131, T31, T8, qs80_in_aa(T54, T217))
U34_aaagg(T54, T217, T131, T31, T8, qs80_out_aa(T54, T217)) → U35_aaagg(T54, T217, T131, T31, T8, app81_in_agag(T131, T31, T217, T8))
app81_in_agag(.(T389, T390), T391, T394, .(T389, T393)) → U32_agag(T389, T390, T391, T394, T393, app81_in_agag(T390, T391, T394, T393))
app81_in_agag([], T404, T405, .(T404, T405)) → app81_out_agag([], T404, T405, .(T404, T405))
U32_agag(T389, T390, T391, T394, T393, app81_out_agag(T390, T391, T394, T393)) → app81_out_agag(.(T389, T390), T391, T394, .(T389, T393))
U35_aaagg(T54, T217, T131, T31, T8, app81_out_agag(T131, T31, T217, T8)) → p52_out_aaagg(T54, T217, T131, T31, T8)
U50_ag(T31, T33, T32, T8, p52_out_aaagg(T54, X10, T131, T31, T8)) → qs1_out_ag(.(T31, .(T33, T32)), T8)
qs1_in_ag(.(T421, .(T422, T423)), T8) → U51_ag(T421, T422, T423, T8, le100_in_aa(T421, T422))
U51_ag(T421, T422, T423, T8, le100_out_aa(T421, T422)) → qs1_out_ag(.(T421, .(T422, T423)), T8)
qs1_in_ag(.(T426, .(T428, T427)), T8) → U52_ag(T426, T428, T427, T8, le100_in_aa(T426, T428))
U52_ag(T426, T428, T427, T8, le100_out_aa(T426, T428)) → U53_ag(T426, T428, T427, T8, part20_in_gaaa(T426, T427, X740, X741))
U53_ag(T426, T428, T427, T8, part20_out_gaaa(T426, T427, X740, X741)) → qs1_out_ag(.(T426, .(T428, T427)), T8)
qs1_in_ag(.(T426, .(T436, T427)), T8) → U54_ag(T426, T436, T427, T8, le100_in_aa(T426, T436))
U54_ag(T426, T436, T427, T8, le100_out_aa(T426, T436)) → U55_ag(T426, T436, T427, T8, part20_in_gaaa(T426, T427, T434, T435))
U55_ag(T426, T436, T427, T8, part20_out_gaaa(T426, T427, T434, T435)) → U56_ag(T426, T436, T427, T8, qs80_in_aa(T434, X9))
U56_ag(T426, T436, T427, T8, qs80_out_aa(T434, X9)) → qs1_out_ag(.(T426, .(T436, T427)), T8)
U55_ag(T426, T436, T427, T8, part20_out_gaaa(T426, T427, T434, T435)) → U57_ag(T426, T436, T427, T8, T435, qs80_in_aa(T434, T442))
U57_ag(T426, T436, T427, T8, T435, qs80_out_aa(T434, T442)) → U58_ag(T426, T436, T427, T8, p52_in_aaagg(.(T436, T435), X10, T442, T426, T8))
U58_ag(T426, T436, T427, T8, p52_out_aaagg(.(T436, T435), X10, T442, T426, T8)) → qs1_out_ag(.(T426, .(T436, T427)), T8)
qs1_in_ag(.(T452, []), T8) → U59_ag(T452, T8, qs155_in_a(X9))
qs155_in_a([]) → qs155_out_a([])
U59_ag(T452, T8, qs155_out_a(X9)) → qs1_out_ag(.(T452, []), T8)
qs1_in_ag(.(T452, []), T8) → U60_ag(T452, T8, qs155_in_a(T455))
U60_ag(T452, T8, qs155_out_a(T455)) → U61_ag(T452, T8, qs155_in_a(X10))
U61_ag(T452, T8, qs155_out_a(X10)) → qs1_out_ag(.(T452, []), T8)
U60_ag(T452, T8, qs155_out_a(T455)) → U62_ag(T452, T8, T455, qs155_in_a(T460))
U62_ag(T452, T8, T455, qs155_out_a(T460)) → U63_ag(T452, T8, app162_in_gagg(T455, T452, T460, T8))
app162_in_gagg(.(T486, T487), T491, T489, .(T486, T490)) → U36_gagg(T486, T487, T491, T489, T490, app162_in_gagg(T487, T491, T489, T490))
app162_in_gagg([], T501, T502, .(T501, T502)) → app162_out_gagg([], T501, T502, .(T501, T502))
U36_gagg(T486, T487, T491, T489, T490, app162_out_gagg(T487, T491, T489, T490)) → app162_out_gagg(.(T486, T487), T491, T489, .(T486, T490))
U63_ag(T452, T8, app162_out_gagg(T455, T452, T460, T8)) → qs1_out_ag(.(T452, []), T8)
qs1_in_ag([], []) → qs1_out_ag([], [])
APP70_IN_AAAA(.(T201, T202), T203, T204, .(T201, X391)) → APP70_IN_AAAA(T202, T203, T204, X391)
APP70_IN_AAAA → APP70_IN_AAAA
LE33_IN_AA(s(T113), s(T115)) → LE33_IN_AA(T113, T115)
qs1_in_ag(.(T26, .(T27, T28)), T8) → U44_ag(T26, T27, T28, T8, gt10_in_aa(T26, T27))
gt10_in_aa(s(T46), s(T47)) → U1_aa(T46, T47, gt10_in_aa(T46, T47))
gt10_in_aa(s(0), 0) → gt10_out_aa(s(0), 0)
U1_aa(T46, T47, gt10_out_aa(T46, T47)) → gt10_out_aa(s(T46), s(T47))
U44_ag(T26, T27, T28, T8, gt10_out_aa(T26, T27)) → qs1_out_ag(.(T26, .(T27, T28)), T8)
qs1_in_ag(.(T31, .(T33, T32)), T8) → U45_ag(T31, T33, T32, T8, gt10_in_aa(T31, T33))
U45_ag(T31, T33, T32, T8, gt10_out_aa(T31, T33)) → U46_ag(T31, T33, T32, T8, part20_in_gaaa(T31, T32, X47, X48))
part20_in_gaaa(T70, .(T73, T74), .(T73, X119), X120) → U2_gaaa(T70, T73, T74, X119, X120, gt10_in_ga(T70, T73))
gt10_in_ga(s(T46), s(T47)) → U1_ga(T46, T47, gt10_in_ga(T46, T47))
gt10_in_ga(s(0), 0) → gt10_out_ga(s(0), 0)
U1_ga(T46, T47, gt10_out_ga(T46, T47)) → gt10_out_ga(s(T46), s(T47))
U2_gaaa(T70, T73, T74, X119, X120, gt10_out_ga(T70, T73)) → part20_out_gaaa(T70, .(T73, T74), .(T73, X119), X120)
part20_in_gaaa(T70, .(T73, T77), .(T73, X119), X120) → U3_gaaa(T70, T73, T77, X119, X120, gt10_in_ga(T70, T73))
U3_gaaa(T70, T73, T77, X119, X120, gt10_out_ga(T70, T73)) → U4_gaaa(T70, T73, T77, X119, X120, part20_in_gaaa(T70, T77, X119, X120))
part20_in_gaaa(T95, .(T98, T99), X170, .(T98, X171)) → U5_gaaa(T95, T98, T99, X170, X171, le33_in_ga(T95, T98))
le33_in_ga(s(T113), s(T115)) → U8_ga(T113, T115, le33_in_ga(T113, T115))
le33_in_ga(0, s(T122)) → le33_out_ga(0, s(T122))
le33_in_ga(0, 0) → le33_out_ga(0, 0)
U8_ga(T113, T115, le33_out_ga(T113, T115)) → le33_out_ga(s(T113), s(T115))
U5_gaaa(T95, T98, T99, X170, X171, le33_out_ga(T95, T98)) → part20_out_gaaa(T95, .(T98, T99), X170, .(T98, X171))
part20_in_gaaa(T95, .(T98, T102), X170, .(T98, X171)) → U6_gaaa(T95, T98, T102, X170, X171, le33_in_ga(T95, T98))
U6_gaaa(T95, T98, T102, X170, X171, le33_out_ga(T95, T98)) → U7_gaaa(T95, T98, T102, X170, X171, part20_in_gaaa(T95, T102, X170, X171))
part20_in_gaaa(T128, [], [], []) → part20_out_gaaa(T128, [], [], [])
U7_gaaa(T95, T98, T102, X170, X171, part20_out_gaaa(T95, T102, X170, X171)) → part20_out_gaaa(T95, .(T98, T102), X170, .(T98, X171))
U4_gaaa(T70, T73, T77, X119, X120, part20_out_gaaa(T70, T77, X119, X120)) → part20_out_gaaa(T70, .(T73, T77), .(T73, X119), X120)
U46_ag(T31, T33, T32, T8, part20_out_gaaa(T31, T32, X47, X48)) → qs1_out_ag(.(T31, .(T33, T32)), T8)
U45_ag(T31, T33, T32, T8, gt10_out_aa(T31, T33)) → U47_ag(T31, T33, T32, T8, part20_in_gaaa(T31, T32, T53, T54))
U47_ag(T31, T33, T32, T8, part20_out_gaaa(T31, T32, T53, T54)) → U48_ag(T31, T33, T32, T8, qs51_in_gaa(T33, T53, X9))
qs51_in_gaa(T148, T149, X273) → U37_gaa(T148, T149, X273, p56_in_gaaaaaa(T148, T149, X269, X270, X271, X272, X273))
p56_in_gaaaaaa(T148, T149, X269, X270, X271, X272, X273) → U9_gaaaaaa(T148, T149, X269, X270, X271, X272, X273, part20_in_gaaa(T148, T149, X269, X270))
U9_gaaaaaa(T148, T149, X269, X270, X271, X272, X273, part20_out_gaaa(T148, T149, X269, X270)) → p56_out_gaaaaaa(T148, T149, X269, X270, X271, X272, X273)
p56_in_gaaaaaa(T148, T149, T153, T154, X271, X272, X273) → U10_gaaaaaa(T148, T149, T153, T154, X271, X272, X273, part20_in_gaaa(T148, T149, T153, T154))
U10_gaaaaaa(T148, T149, T153, T154, X271, X272, X273, part20_out_gaaa(T148, T149, T153, T154)) → U11_gaaaaaa(T148, T149, T153, T154, X271, X272, X273, qs59_in_aa(T153, X271))
qs59_in_aa(.(T171, T172), X335) → U19_aa(T171, T172, X335, p56_in_aaaaaaa(T171, T172, X331, X332, X333, X334, X335))
p56_in_aaaaaaa(T148, T149, X269, X270, X271, X272, X273) → U9_aaaaaaa(T148, T149, X269, X270, X271, X272, X273, part20_in_aaaa(T148, T149, X269, X270))
part20_in_aaaa(T70, .(T73, T74), .(T73, X119), X120) → U2_aaaa(T70, T73, T74, X119, X120, gt10_in_aa(T70, T73))
U2_aaaa(T70, T73, T74, X119, X120, gt10_out_aa(T70, T73)) → part20_out_aaaa(T70, .(T73, T74), .(T73, X119), X120)
part20_in_aaaa(T70, .(T73, T77), .(T73, X119), X120) → U3_aaaa(T70, T73, T77, X119, X120, gt10_in_aa(T70, T73))
U3_aaaa(T70, T73, T77, X119, X120, gt10_out_aa(T70, T73)) → U4_aaaa(T70, T73, T77, X119, X120, part20_in_gaaa(T70, T77, X119, X120))
U4_aaaa(T70, T73, T77, X119, X120, part20_out_gaaa(T70, T77, X119, X120)) → part20_out_aaaa(T70, .(T73, T77), .(T73, X119), X120)
part20_in_aaaa(T95, .(T98, T99), X170, .(T98, X171)) → U5_aaaa(T95, T98, T99, X170, X171, le33_in_aa(T95, T98))
le33_in_aa(s(T113), s(T115)) → U8_aa(T113, T115, le33_in_aa(T113, T115))
le33_in_aa(0, s(T122)) → le33_out_aa(0, s(T122))
le33_in_aa(0, 0) → le33_out_aa(0, 0)
U8_aa(T113, T115, le33_out_aa(T113, T115)) → le33_out_aa(s(T113), s(T115))
U5_aaaa(T95, T98, T99, X170, X171, le33_out_aa(T95, T98)) → part20_out_aaaa(T95, .(T98, T99), X170, .(T98, X171))
part20_in_aaaa(T95, .(T98, T102), X170, .(T98, X171)) → U6_aaaa(T95, T98, T102, X170, X171, le33_in_aa(T95, T98))
U6_aaaa(T95, T98, T102, X170, X171, le33_out_aa(T95, T98)) → U7_aaaa(T95, T98, T102, X170, X171, part20_in_gaaa(T95, T102, X170, X171))
U7_aaaa(T95, T98, T102, X170, X171, part20_out_gaaa(T95, T102, X170, X171)) → part20_out_aaaa(T95, .(T98, T102), X170, .(T98, X171))
part20_in_aaaa(T128, [], [], []) → part20_out_aaaa(T128, [], [], [])
U9_aaaaaaa(T148, T149, X269, X270, X271, X272, X273, part20_out_aaaa(T148, T149, X269, X270)) → p56_out_aaaaaaa(T148, T149, X269, X270, X271, X272, X273)
p56_in_aaaaaaa(T148, T149, T153, T154, X271, X272, X273) → U10_aaaaaaa(T148, T149, T153, T154, X271, X272, X273, part20_in_aaaa(T148, T149, T153, T154))
U10_aaaaaaa(T148, T149, T153, T154, X271, X272, X273, part20_out_aaaa(T148, T149, T153, T154)) → U11_aaaaaaa(T148, T149, T153, T154, X271, X272, X273, qs59_in_aa(T153, X271))
qs59_in_aa([], []) → qs59_out_aa([], [])
U11_aaaaaaa(T148, T149, T153, T154, X271, X272, X273, qs59_out_aa(T153, X271)) → p56_out_aaaaaaa(T148, T149, T153, T154, X271, X272, X273)
p56_in_aaaaaaa(T148, T149, T153, T154, T160, X272, X273) → U12_aaaaaaa(T148, T149, T153, T154, T160, X272, X273, part20_in_aaaa(T148, T149, T153, T154))
U12_aaaaaaa(T148, T149, T153, T154, T160, X272, X273, part20_out_aaaa(T148, T149, T153, T154)) → U13_aaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_in_aa(T153, T160))
U13_aaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_out_aa(T153, T160)) → U14_aaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_in_aa(T154, X272))
U14_aaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_out_aa(T154, X272)) → p56_out_aaaaaaa(T148, T149, T153, T154, T160, X272, X273)
p56_in_aaaaaaa(T148, T149, T153, T154, T160, T178, X273) → U15_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, part20_in_aaaa(T148, T149, T153, T154))
U15_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, part20_out_aaaa(T148, T149, T153, T154)) → U16_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_in_aa(T153, T160))
U16_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_out_aa(T153, T160)) → U17_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_in_aa(T154, T178))
U17_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_out_aa(T154, T178)) → U18_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, app70_in_aaaa(T160, T148, T178, X273))
app70_in_aaaa(.(T201, T202), T203, T204, .(T201, X391)) → U20_aaaa(T201, T202, T203, T204, X391, app70_in_aaaa(T202, T203, T204, X391))
app70_in_aaaa([], T213, T214, .(T213, T214)) → app70_out_aaaa([], T213, T214, .(T213, T214))
U20_aaaa(T201, T202, T203, T204, X391, app70_out_aaaa(T202, T203, T204, X391)) → app70_out_aaaa(.(T201, T202), T203, T204, .(T201, X391))
U18_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, app70_out_aaaa(T160, T148, T178, X273)) → p56_out_aaaaaaa(T148, T149, T153, T154, T160, T178, X273)
U19_aa(T171, T172, X335, p56_out_aaaaaaa(T171, T172, X331, X332, X333, X334, X335)) → qs59_out_aa(.(T171, T172), X335)
U11_gaaaaaa(T148, T149, T153, T154, X271, X272, X273, qs59_out_aa(T153, X271)) → p56_out_gaaaaaa(T148, T149, T153, T154, X271, X272, X273)
p56_in_gaaaaaa(T148, T149, T153, T154, T160, X272, X273) → U12_gaaaaaa(T148, T149, T153, T154, T160, X272, X273, part20_in_gaaa(T148, T149, T153, T154))
U12_gaaaaaa(T148, T149, T153, T154, T160, X272, X273, part20_out_gaaa(T148, T149, T153, T154)) → U13_gaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_in_aa(T153, T160))
U13_gaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_out_aa(T153, T160)) → U14_gaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_in_aa(T154, X272))
U14_gaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_out_aa(T154, X272)) → p56_out_gaaaaaa(T148, T149, T153, T154, T160, X272, X273)
p56_in_gaaaaaa(T148, T149, T153, T154, T160, T178, X273) → U15_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, part20_in_gaaa(T148, T149, T153, T154))
U15_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, part20_out_gaaa(T148, T149, T153, T154)) → U16_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_in_aa(T153, T160))
U16_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_out_aa(T153, T160)) → U17_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_in_aa(T154, T178))
U17_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_out_aa(T154, T178)) → U18_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, app70_in_agaa(T160, T148, T178, X273))
app70_in_agaa(.(T201, T202), T203, T204, .(T201, X391)) → U20_agaa(T201, T202, T203, T204, X391, app70_in_agaa(T202, T203, T204, X391))
app70_in_agaa([], T213, T214, .(T213, T214)) → app70_out_agaa([], T213, T214, .(T213, T214))
U20_agaa(T201, T202, T203, T204, X391, app70_out_agaa(T202, T203, T204, X391)) → app70_out_agaa(.(T201, T202), T203, T204, .(T201, X391))
U18_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, app70_out_agaa(T160, T148, T178, X273)) → p56_out_gaaaaaa(T148, T149, T153, T154, T160, T178, X273)
U37_gaa(T148, T149, X273, p56_out_gaaaaaa(T148, T149, X269, X270, X271, X272, X273)) → qs51_out_gaa(T148, T149, X273)
U48_ag(T31, T33, T32, T8, qs51_out_gaa(T33, T53, X9)) → qs1_out_ag(.(T31, .(T33, T32)), T8)
U47_ag(T31, T33, T32, T8, part20_out_gaaa(T31, T32, T53, T54)) → U49_ag(T31, T33, T32, T8, T54, qs51_in_gaa(T33, T53, T131))
U49_ag(T31, T33, T32, T8, T54, qs51_out_gaa(T33, T53, T131)) → U50_ag(T31, T33, T32, T8, p52_in_aaagg(T54, X10, T131, T31, T8))
p52_in_aaagg(T54, X10, T131, T31, T8) → U33_aaagg(T54, X10, T131, T31, T8, qs80_in_aa(T54, X10))
qs80_in_aa(.(T230, T231), X452) → U22_aa(T230, T231, X452, part87_in_aaaa(T230, T231, X448, X449))
part87_in_aaaa(T256, .(T257, T258), .(T257, X503), X504) → U38_aaaa(T256, T257, T258, X503, X504, gt10_in_aa(T256, T257))
U38_aaaa(T256, T257, T258, X503, X504, gt10_out_aa(T256, T257)) → part87_out_aaaa(T256, .(T257, T258), .(T257, X503), X504)
part87_in_aaaa(T261, .(T257, T262), .(T257, X503), X504) → U39_aaaa(T261, T257, T262, X503, X504, gt10_in_aa(T261, T257))
U39_aaaa(T261, T257, T262, X503, X504, gt10_out_aa(T261, T257)) → U40_aaaa(T261, T257, T262, X503, X504, part20_in_gaaa(T261, T262, X503, X504))
U40_aaaa(T261, T257, T262, X503, X504, part20_out_gaaa(T261, T262, X503, X504)) → part87_out_aaaa(T261, .(T257, T262), .(T257, X503), X504)
part87_in_aaaa(T283, .(T284, T285), X554, .(T284, X555)) → U41_aaaa(T283, T284, T285, X554, X555, le100_in_aa(T283, T284))
le100_in_aa(s(T302), s(T303)) → U21_aa(T302, T303, le100_in_aa(T302, T303))
le100_in_aa(0, s(T310)) → le100_out_aa(0, s(T310))
le100_in_aa(0, 0) → le100_out_aa(0, 0)
U21_aa(T302, T303, le100_out_aa(T302, T303)) → le100_out_aa(s(T302), s(T303))
U41_aaaa(T283, T284, T285, X554, X555, le100_out_aa(T283, T284)) → part87_out_aaaa(T283, .(T284, T285), X554, .(T284, X555))
part87_in_aaaa(T288, .(T284, T289), X554, .(T284, X555)) → U42_aaaa(T288, T284, T289, X554, X555, le100_in_aa(T288, T284))
U42_aaaa(T288, T284, T289, X554, X555, le100_out_aa(T288, T284)) → U43_aaaa(T288, T284, T289, X554, X555, part20_in_gaaa(T288, T289, X554, X555))
U43_aaaa(T288, T284, T289, X554, X555, part20_out_gaaa(T288, T289, X554, X555)) → part87_out_aaaa(T288, .(T284, T289), X554, .(T284, X555))
part87_in_aaaa(T316, [], [], []) → part87_out_aaaa(T316, [], [], [])
U22_aa(T230, T231, X452, part87_out_aaaa(T230, T231, X448, X449)) → qs80_out_aa(.(T230, T231), X452)
qs80_in_aa(.(T237, T231), X452) → U23_aa(T237, T231, X452, part87_in_aaaa(T237, T231, T235, T236))
U23_aa(T237, T231, X452, part87_out_aaaa(T237, T231, T235, T236)) → U24_aa(T237, T231, X452, qs80_in_aa(T235, X450))
qs80_in_aa(.(T325, T231), X452) → U27_aa(T325, T231, X452, part87_in_aaaa(T325, T231, T235, T236))
U27_aa(T325, T231, X452, part87_out_aaaa(T325, T231, T235, T236)) → U28_aa(T325, T231, X452, T236, qs80_in_aa(T235, T319))
qs80_in_aa([], []) → qs80_out_aa([], [])
U28_aa(T325, T231, X452, T236, qs80_out_aa(T235, T319)) → U29_aa(T325, T231, X452, T319, qs80_in_aa(T236, T324))
U29_aa(T325, T231, X452, T319, qs80_out_aa(T236, T324)) → U30_aa(T325, T231, X452, app121_in_aaaa(T319, T325, T324, X452))
app121_in_aaaa(.(T348, T349), T352, T353, .(T348, X657)) → U31_aaaa(T348, T349, T352, T353, X657, app121_in_aaaa(T349, T352, T353, X657))
app121_in_aaaa([], T362, T363, .(T362, T363)) → app121_out_aaaa([], T362, T363, .(T362, T363))
U31_aaaa(T348, T349, T352, T353, X657, app121_out_aaaa(T349, T352, T353, X657)) → app121_out_aaaa(.(T348, T349), T352, T353, .(T348, X657))
U30_aa(T325, T231, X452, app121_out_aaaa(T319, T325, T324, X452)) → qs80_out_aa(.(T325, T231), X452)
U24_aa(T237, T231, X452, qs80_out_aa(T235, X450)) → qs80_out_aa(.(T237, T231), X452)
U23_aa(T237, T231, X452, part87_out_aaaa(T237, T231, T235, T236)) → U25_aa(T237, T231, X452, T236, qs80_in_aa(T235, T319))
U25_aa(T237, T231, X452, T236, qs80_out_aa(T235, T319)) → U26_aa(T237, T231, X452, qs80_in_aa(T236, X451))
U26_aa(T237, T231, X452, qs80_out_aa(T236, X451)) → qs80_out_aa(.(T237, T231), X452)
U33_aaagg(T54, X10, T131, T31, T8, qs80_out_aa(T54, X10)) → p52_out_aaagg(T54, X10, T131, T31, T8)
p52_in_aaagg(T54, T217, T131, T31, T8) → U34_aaagg(T54, T217, T131, T31, T8, qs80_in_aa(T54, T217))
U34_aaagg(T54, T217, T131, T31, T8, qs80_out_aa(T54, T217)) → U35_aaagg(T54, T217, T131, T31, T8, app81_in_agag(T131, T31, T217, T8))
app81_in_agag(.(T389, T390), T391, T394, .(T389, T393)) → U32_agag(T389, T390, T391, T394, T393, app81_in_agag(T390, T391, T394, T393))
app81_in_agag([], T404, T405, .(T404, T405)) → app81_out_agag([], T404, T405, .(T404, T405))
U32_agag(T389, T390, T391, T394, T393, app81_out_agag(T390, T391, T394, T393)) → app81_out_agag(.(T389, T390), T391, T394, .(T389, T393))
U35_aaagg(T54, T217, T131, T31, T8, app81_out_agag(T131, T31, T217, T8)) → p52_out_aaagg(T54, T217, T131, T31, T8)
U50_ag(T31, T33, T32, T8, p52_out_aaagg(T54, X10, T131, T31, T8)) → qs1_out_ag(.(T31, .(T33, T32)), T8)
qs1_in_ag(.(T421, .(T422, T423)), T8) → U51_ag(T421, T422, T423, T8, le100_in_aa(T421, T422))
U51_ag(T421, T422, T423, T8, le100_out_aa(T421, T422)) → qs1_out_ag(.(T421, .(T422, T423)), T8)
qs1_in_ag(.(T426, .(T428, T427)), T8) → U52_ag(T426, T428, T427, T8, le100_in_aa(T426, T428))
U52_ag(T426, T428, T427, T8, le100_out_aa(T426, T428)) → U53_ag(T426, T428, T427, T8, part20_in_gaaa(T426, T427, X740, X741))
U53_ag(T426, T428, T427, T8, part20_out_gaaa(T426, T427, X740, X741)) → qs1_out_ag(.(T426, .(T428, T427)), T8)
qs1_in_ag(.(T426, .(T436, T427)), T8) → U54_ag(T426, T436, T427, T8, le100_in_aa(T426, T436))
U54_ag(T426, T436, T427, T8, le100_out_aa(T426, T436)) → U55_ag(T426, T436, T427, T8, part20_in_gaaa(T426, T427, T434, T435))
U55_ag(T426, T436, T427, T8, part20_out_gaaa(T426, T427, T434, T435)) → U56_ag(T426, T436, T427, T8, qs80_in_aa(T434, X9))
U56_ag(T426, T436, T427, T8, qs80_out_aa(T434, X9)) → qs1_out_ag(.(T426, .(T436, T427)), T8)
U55_ag(T426, T436, T427, T8, part20_out_gaaa(T426, T427, T434, T435)) → U57_ag(T426, T436, T427, T8, T435, qs80_in_aa(T434, T442))
U57_ag(T426, T436, T427, T8, T435, qs80_out_aa(T434, T442)) → U58_ag(T426, T436, T427, T8, p52_in_aaagg(.(T436, T435), X10, T442, T426, T8))
U58_ag(T426, T436, T427, T8, p52_out_aaagg(.(T436, T435), X10, T442, T426, T8)) → qs1_out_ag(.(T426, .(T436, T427)), T8)
qs1_in_ag(.(T452, []), T8) → U59_ag(T452, T8, qs155_in_a(X9))
qs155_in_a([]) → qs155_out_a([])
U59_ag(T452, T8, qs155_out_a(X9)) → qs1_out_ag(.(T452, []), T8)
qs1_in_ag(.(T452, []), T8) → U60_ag(T452, T8, qs155_in_a(T455))
U60_ag(T452, T8, qs155_out_a(T455)) → U61_ag(T452, T8, qs155_in_a(X10))
U61_ag(T452, T8, qs155_out_a(X10)) → qs1_out_ag(.(T452, []), T8)
U60_ag(T452, T8, qs155_out_a(T455)) → U62_ag(T452, T8, T455, qs155_in_a(T460))
U62_ag(T452, T8, T455, qs155_out_a(T460)) → U63_ag(T452, T8, app162_in_gagg(T455, T452, T460, T8))
app162_in_gagg(.(T486, T487), T491, T489, .(T486, T490)) → U36_gagg(T486, T487, T491, T489, T490, app162_in_gagg(T487, T491, T489, T490))
app162_in_gagg([], T501, T502, .(T501, T502)) → app162_out_gagg([], T501, T502, .(T501, T502))
U36_gagg(T486, T487, T491, T489, T490, app162_out_gagg(T487, T491, T489, T490)) → app162_out_gagg(.(T486, T487), T491, T489, .(T486, T490))
U63_ag(T452, T8, app162_out_gagg(T455, T452, T460, T8)) → qs1_out_ag(.(T452, []), T8)
qs1_in_ag([], []) → qs1_out_ag([], [])
LE33_IN_AA(s(T113), s(T115)) → LE33_IN_AA(T113, T115)
LE33_IN_AA → LE33_IN_AA
LE33_IN_GA(s(T113), s(T115)) → LE33_IN_GA(T113, T115)
qs1_in_ag(.(T26, .(T27, T28)), T8) → U44_ag(T26, T27, T28, T8, gt10_in_aa(T26, T27))
gt10_in_aa(s(T46), s(T47)) → U1_aa(T46, T47, gt10_in_aa(T46, T47))
gt10_in_aa(s(0), 0) → gt10_out_aa(s(0), 0)
U1_aa(T46, T47, gt10_out_aa(T46, T47)) → gt10_out_aa(s(T46), s(T47))
U44_ag(T26, T27, T28, T8, gt10_out_aa(T26, T27)) → qs1_out_ag(.(T26, .(T27, T28)), T8)
qs1_in_ag(.(T31, .(T33, T32)), T8) → U45_ag(T31, T33, T32, T8, gt10_in_aa(T31, T33))
U45_ag(T31, T33, T32, T8, gt10_out_aa(T31, T33)) → U46_ag(T31, T33, T32, T8, part20_in_gaaa(T31, T32, X47, X48))
part20_in_gaaa(T70, .(T73, T74), .(T73, X119), X120) → U2_gaaa(T70, T73, T74, X119, X120, gt10_in_ga(T70, T73))
gt10_in_ga(s(T46), s(T47)) → U1_ga(T46, T47, gt10_in_ga(T46, T47))
gt10_in_ga(s(0), 0) → gt10_out_ga(s(0), 0)
U1_ga(T46, T47, gt10_out_ga(T46, T47)) → gt10_out_ga(s(T46), s(T47))
U2_gaaa(T70, T73, T74, X119, X120, gt10_out_ga(T70, T73)) → part20_out_gaaa(T70, .(T73, T74), .(T73, X119), X120)
part20_in_gaaa(T70, .(T73, T77), .(T73, X119), X120) → U3_gaaa(T70, T73, T77, X119, X120, gt10_in_ga(T70, T73))
U3_gaaa(T70, T73, T77, X119, X120, gt10_out_ga(T70, T73)) → U4_gaaa(T70, T73, T77, X119, X120, part20_in_gaaa(T70, T77, X119, X120))
part20_in_gaaa(T95, .(T98, T99), X170, .(T98, X171)) → U5_gaaa(T95, T98, T99, X170, X171, le33_in_ga(T95, T98))
le33_in_ga(s(T113), s(T115)) → U8_ga(T113, T115, le33_in_ga(T113, T115))
le33_in_ga(0, s(T122)) → le33_out_ga(0, s(T122))
le33_in_ga(0, 0) → le33_out_ga(0, 0)
U8_ga(T113, T115, le33_out_ga(T113, T115)) → le33_out_ga(s(T113), s(T115))
U5_gaaa(T95, T98, T99, X170, X171, le33_out_ga(T95, T98)) → part20_out_gaaa(T95, .(T98, T99), X170, .(T98, X171))
part20_in_gaaa(T95, .(T98, T102), X170, .(T98, X171)) → U6_gaaa(T95, T98, T102, X170, X171, le33_in_ga(T95, T98))
U6_gaaa(T95, T98, T102, X170, X171, le33_out_ga(T95, T98)) → U7_gaaa(T95, T98, T102, X170, X171, part20_in_gaaa(T95, T102, X170, X171))
part20_in_gaaa(T128, [], [], []) → part20_out_gaaa(T128, [], [], [])
U7_gaaa(T95, T98, T102, X170, X171, part20_out_gaaa(T95, T102, X170, X171)) → part20_out_gaaa(T95, .(T98, T102), X170, .(T98, X171))
U4_gaaa(T70, T73, T77, X119, X120, part20_out_gaaa(T70, T77, X119, X120)) → part20_out_gaaa(T70, .(T73, T77), .(T73, X119), X120)
U46_ag(T31, T33, T32, T8, part20_out_gaaa(T31, T32, X47, X48)) → qs1_out_ag(.(T31, .(T33, T32)), T8)
U45_ag(T31, T33, T32, T8, gt10_out_aa(T31, T33)) → U47_ag(T31, T33, T32, T8, part20_in_gaaa(T31, T32, T53, T54))
U47_ag(T31, T33, T32, T8, part20_out_gaaa(T31, T32, T53, T54)) → U48_ag(T31, T33, T32, T8, qs51_in_gaa(T33, T53, X9))
qs51_in_gaa(T148, T149, X273) → U37_gaa(T148, T149, X273, p56_in_gaaaaaa(T148, T149, X269, X270, X271, X272, X273))
p56_in_gaaaaaa(T148, T149, X269, X270, X271, X272, X273) → U9_gaaaaaa(T148, T149, X269, X270, X271, X272, X273, part20_in_gaaa(T148, T149, X269, X270))
U9_gaaaaaa(T148, T149, X269, X270, X271, X272, X273, part20_out_gaaa(T148, T149, X269, X270)) → p56_out_gaaaaaa(T148, T149, X269, X270, X271, X272, X273)
p56_in_gaaaaaa(T148, T149, T153, T154, X271, X272, X273) → U10_gaaaaaa(T148, T149, T153, T154, X271, X272, X273, part20_in_gaaa(T148, T149, T153, T154))
U10_gaaaaaa(T148, T149, T153, T154, X271, X272, X273, part20_out_gaaa(T148, T149, T153, T154)) → U11_gaaaaaa(T148, T149, T153, T154, X271, X272, X273, qs59_in_aa(T153, X271))
qs59_in_aa(.(T171, T172), X335) → U19_aa(T171, T172, X335, p56_in_aaaaaaa(T171, T172, X331, X332, X333, X334, X335))
p56_in_aaaaaaa(T148, T149, X269, X270, X271, X272, X273) → U9_aaaaaaa(T148, T149, X269, X270, X271, X272, X273, part20_in_aaaa(T148, T149, X269, X270))
part20_in_aaaa(T70, .(T73, T74), .(T73, X119), X120) → U2_aaaa(T70, T73, T74, X119, X120, gt10_in_aa(T70, T73))
U2_aaaa(T70, T73, T74, X119, X120, gt10_out_aa(T70, T73)) → part20_out_aaaa(T70, .(T73, T74), .(T73, X119), X120)
part20_in_aaaa(T70, .(T73, T77), .(T73, X119), X120) → U3_aaaa(T70, T73, T77, X119, X120, gt10_in_aa(T70, T73))
U3_aaaa(T70, T73, T77, X119, X120, gt10_out_aa(T70, T73)) → U4_aaaa(T70, T73, T77, X119, X120, part20_in_gaaa(T70, T77, X119, X120))
U4_aaaa(T70, T73, T77, X119, X120, part20_out_gaaa(T70, T77, X119, X120)) → part20_out_aaaa(T70, .(T73, T77), .(T73, X119), X120)
part20_in_aaaa(T95, .(T98, T99), X170, .(T98, X171)) → U5_aaaa(T95, T98, T99, X170, X171, le33_in_aa(T95, T98))
le33_in_aa(s(T113), s(T115)) → U8_aa(T113, T115, le33_in_aa(T113, T115))
le33_in_aa(0, s(T122)) → le33_out_aa(0, s(T122))
le33_in_aa(0, 0) → le33_out_aa(0, 0)
U8_aa(T113, T115, le33_out_aa(T113, T115)) → le33_out_aa(s(T113), s(T115))
U5_aaaa(T95, T98, T99, X170, X171, le33_out_aa(T95, T98)) → part20_out_aaaa(T95, .(T98, T99), X170, .(T98, X171))
part20_in_aaaa(T95, .(T98, T102), X170, .(T98, X171)) → U6_aaaa(T95, T98, T102, X170, X171, le33_in_aa(T95, T98))
U6_aaaa(T95, T98, T102, X170, X171, le33_out_aa(T95, T98)) → U7_aaaa(T95, T98, T102, X170, X171, part20_in_gaaa(T95, T102, X170, X171))
U7_aaaa(T95, T98, T102, X170, X171, part20_out_gaaa(T95, T102, X170, X171)) → part20_out_aaaa(T95, .(T98, T102), X170, .(T98, X171))
part20_in_aaaa(T128, [], [], []) → part20_out_aaaa(T128, [], [], [])
U9_aaaaaaa(T148, T149, X269, X270, X271, X272, X273, part20_out_aaaa(T148, T149, X269, X270)) → p56_out_aaaaaaa(T148, T149, X269, X270, X271, X272, X273)
p56_in_aaaaaaa(T148, T149, T153, T154, X271, X272, X273) → U10_aaaaaaa(T148, T149, T153, T154, X271, X272, X273, part20_in_aaaa(T148, T149, T153, T154))
U10_aaaaaaa(T148, T149, T153, T154, X271, X272, X273, part20_out_aaaa(T148, T149, T153, T154)) → U11_aaaaaaa(T148, T149, T153, T154, X271, X272, X273, qs59_in_aa(T153, X271))
qs59_in_aa([], []) → qs59_out_aa([], [])
U11_aaaaaaa(T148, T149, T153, T154, X271, X272, X273, qs59_out_aa(T153, X271)) → p56_out_aaaaaaa(T148, T149, T153, T154, X271, X272, X273)
p56_in_aaaaaaa(T148, T149, T153, T154, T160, X272, X273) → U12_aaaaaaa(T148, T149, T153, T154, T160, X272, X273, part20_in_aaaa(T148, T149, T153, T154))
U12_aaaaaaa(T148, T149, T153, T154, T160, X272, X273, part20_out_aaaa(T148, T149, T153, T154)) → U13_aaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_in_aa(T153, T160))
U13_aaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_out_aa(T153, T160)) → U14_aaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_in_aa(T154, X272))
U14_aaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_out_aa(T154, X272)) → p56_out_aaaaaaa(T148, T149, T153, T154, T160, X272, X273)
p56_in_aaaaaaa(T148, T149, T153, T154, T160, T178, X273) → U15_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, part20_in_aaaa(T148, T149, T153, T154))
U15_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, part20_out_aaaa(T148, T149, T153, T154)) → U16_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_in_aa(T153, T160))
U16_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_out_aa(T153, T160)) → U17_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_in_aa(T154, T178))
U17_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_out_aa(T154, T178)) → U18_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, app70_in_aaaa(T160, T148, T178, X273))
app70_in_aaaa(.(T201, T202), T203, T204, .(T201, X391)) → U20_aaaa(T201, T202, T203, T204, X391, app70_in_aaaa(T202, T203, T204, X391))
app70_in_aaaa([], T213, T214, .(T213, T214)) → app70_out_aaaa([], T213, T214, .(T213, T214))
U20_aaaa(T201, T202, T203, T204, X391, app70_out_aaaa(T202, T203, T204, X391)) → app70_out_aaaa(.(T201, T202), T203, T204, .(T201, X391))
U18_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, app70_out_aaaa(T160, T148, T178, X273)) → p56_out_aaaaaaa(T148, T149, T153, T154, T160, T178, X273)
U19_aa(T171, T172, X335, p56_out_aaaaaaa(T171, T172, X331, X332, X333, X334, X335)) → qs59_out_aa(.(T171, T172), X335)
U11_gaaaaaa(T148, T149, T153, T154, X271, X272, X273, qs59_out_aa(T153, X271)) → p56_out_gaaaaaa(T148, T149, T153, T154, X271, X272, X273)
p56_in_gaaaaaa(T148, T149, T153, T154, T160, X272, X273) → U12_gaaaaaa(T148, T149, T153, T154, T160, X272, X273, part20_in_gaaa(T148, T149, T153, T154))
U12_gaaaaaa(T148, T149, T153, T154, T160, X272, X273, part20_out_gaaa(T148, T149, T153, T154)) → U13_gaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_in_aa(T153, T160))
U13_gaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_out_aa(T153, T160)) → U14_gaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_in_aa(T154, X272))
U14_gaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_out_aa(T154, X272)) → p56_out_gaaaaaa(T148, T149, T153, T154, T160, X272, X273)
p56_in_gaaaaaa(T148, T149, T153, T154, T160, T178, X273) → U15_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, part20_in_gaaa(T148, T149, T153, T154))
U15_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, part20_out_gaaa(T148, T149, T153, T154)) → U16_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_in_aa(T153, T160))
U16_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_out_aa(T153, T160)) → U17_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_in_aa(T154, T178))
U17_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_out_aa(T154, T178)) → U18_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, app70_in_agaa(T160, T148, T178, X273))
app70_in_agaa(.(T201, T202), T203, T204, .(T201, X391)) → U20_agaa(T201, T202, T203, T204, X391, app70_in_agaa(T202, T203, T204, X391))
app70_in_agaa([], T213, T214, .(T213, T214)) → app70_out_agaa([], T213, T214, .(T213, T214))
U20_agaa(T201, T202, T203, T204, X391, app70_out_agaa(T202, T203, T204, X391)) → app70_out_agaa(.(T201, T202), T203, T204, .(T201, X391))
U18_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, app70_out_agaa(T160, T148, T178, X273)) → p56_out_gaaaaaa(T148, T149, T153, T154, T160, T178, X273)
U37_gaa(T148, T149, X273, p56_out_gaaaaaa(T148, T149, X269, X270, X271, X272, X273)) → qs51_out_gaa(T148, T149, X273)
U48_ag(T31, T33, T32, T8, qs51_out_gaa(T33, T53, X9)) → qs1_out_ag(.(T31, .(T33, T32)), T8)
U47_ag(T31, T33, T32, T8, part20_out_gaaa(T31, T32, T53, T54)) → U49_ag(T31, T33, T32, T8, T54, qs51_in_gaa(T33, T53, T131))
U49_ag(T31, T33, T32, T8, T54, qs51_out_gaa(T33, T53, T131)) → U50_ag(T31, T33, T32, T8, p52_in_aaagg(T54, X10, T131, T31, T8))
p52_in_aaagg(T54, X10, T131, T31, T8) → U33_aaagg(T54, X10, T131, T31, T8, qs80_in_aa(T54, X10))
qs80_in_aa(.(T230, T231), X452) → U22_aa(T230, T231, X452, part87_in_aaaa(T230, T231, X448, X449))
part87_in_aaaa(T256, .(T257, T258), .(T257, X503), X504) → U38_aaaa(T256, T257, T258, X503, X504, gt10_in_aa(T256, T257))
U38_aaaa(T256, T257, T258, X503, X504, gt10_out_aa(T256, T257)) → part87_out_aaaa(T256, .(T257, T258), .(T257, X503), X504)
part87_in_aaaa(T261, .(T257, T262), .(T257, X503), X504) → U39_aaaa(T261, T257, T262, X503, X504, gt10_in_aa(T261, T257))
U39_aaaa(T261, T257, T262, X503, X504, gt10_out_aa(T261, T257)) → U40_aaaa(T261, T257, T262, X503, X504, part20_in_gaaa(T261, T262, X503, X504))
U40_aaaa(T261, T257, T262, X503, X504, part20_out_gaaa(T261, T262, X503, X504)) → part87_out_aaaa(T261, .(T257, T262), .(T257, X503), X504)
part87_in_aaaa(T283, .(T284, T285), X554, .(T284, X555)) → U41_aaaa(T283, T284, T285, X554, X555, le100_in_aa(T283, T284))
le100_in_aa(s(T302), s(T303)) → U21_aa(T302, T303, le100_in_aa(T302, T303))
le100_in_aa(0, s(T310)) → le100_out_aa(0, s(T310))
le100_in_aa(0, 0) → le100_out_aa(0, 0)
U21_aa(T302, T303, le100_out_aa(T302, T303)) → le100_out_aa(s(T302), s(T303))
U41_aaaa(T283, T284, T285, X554, X555, le100_out_aa(T283, T284)) → part87_out_aaaa(T283, .(T284, T285), X554, .(T284, X555))
part87_in_aaaa(T288, .(T284, T289), X554, .(T284, X555)) → U42_aaaa(T288, T284, T289, X554, X555, le100_in_aa(T288, T284))
U42_aaaa(T288, T284, T289, X554, X555, le100_out_aa(T288, T284)) → U43_aaaa(T288, T284, T289, X554, X555, part20_in_gaaa(T288, T289, X554, X555))
U43_aaaa(T288, T284, T289, X554, X555, part20_out_gaaa(T288, T289, X554, X555)) → part87_out_aaaa(T288, .(T284, T289), X554, .(T284, X555))
part87_in_aaaa(T316, [], [], []) → part87_out_aaaa(T316, [], [], [])
U22_aa(T230, T231, X452, part87_out_aaaa(T230, T231, X448, X449)) → qs80_out_aa(.(T230, T231), X452)
qs80_in_aa(.(T237, T231), X452) → U23_aa(T237, T231, X452, part87_in_aaaa(T237, T231, T235, T236))
U23_aa(T237, T231, X452, part87_out_aaaa(T237, T231, T235, T236)) → U24_aa(T237, T231, X452, qs80_in_aa(T235, X450))
qs80_in_aa(.(T325, T231), X452) → U27_aa(T325, T231, X452, part87_in_aaaa(T325, T231, T235, T236))
U27_aa(T325, T231, X452, part87_out_aaaa(T325, T231, T235, T236)) → U28_aa(T325, T231, X452, T236, qs80_in_aa(T235, T319))
qs80_in_aa([], []) → qs80_out_aa([], [])
U28_aa(T325, T231, X452, T236, qs80_out_aa(T235, T319)) → U29_aa(T325, T231, X452, T319, qs80_in_aa(T236, T324))
U29_aa(T325, T231, X452, T319, qs80_out_aa(T236, T324)) → U30_aa(T325, T231, X452, app121_in_aaaa(T319, T325, T324, X452))
app121_in_aaaa(.(T348, T349), T352, T353, .(T348, X657)) → U31_aaaa(T348, T349, T352, T353, X657, app121_in_aaaa(T349, T352, T353, X657))
app121_in_aaaa([], T362, T363, .(T362, T363)) → app121_out_aaaa([], T362, T363, .(T362, T363))
U31_aaaa(T348, T349, T352, T353, X657, app121_out_aaaa(T349, T352, T353, X657)) → app121_out_aaaa(.(T348, T349), T352, T353, .(T348, X657))
U30_aa(T325, T231, X452, app121_out_aaaa(T319, T325, T324, X452)) → qs80_out_aa(.(T325, T231), X452)
U24_aa(T237, T231, X452, qs80_out_aa(T235, X450)) → qs80_out_aa(.(T237, T231), X452)
U23_aa(T237, T231, X452, part87_out_aaaa(T237, T231, T235, T236)) → U25_aa(T237, T231, X452, T236, qs80_in_aa(T235, T319))
U25_aa(T237, T231, X452, T236, qs80_out_aa(T235, T319)) → U26_aa(T237, T231, X452, qs80_in_aa(T236, X451))
U26_aa(T237, T231, X452, qs80_out_aa(T236, X451)) → qs80_out_aa(.(T237, T231), X452)
U33_aaagg(T54, X10, T131, T31, T8, qs80_out_aa(T54, X10)) → p52_out_aaagg(T54, X10, T131, T31, T8)
p52_in_aaagg(T54, T217, T131, T31, T8) → U34_aaagg(T54, T217, T131, T31, T8, qs80_in_aa(T54, T217))
U34_aaagg(T54, T217, T131, T31, T8, qs80_out_aa(T54, T217)) → U35_aaagg(T54, T217, T131, T31, T8, app81_in_agag(T131, T31, T217, T8))
app81_in_agag(.(T389, T390), T391, T394, .(T389, T393)) → U32_agag(T389, T390, T391, T394, T393, app81_in_agag(T390, T391, T394, T393))
app81_in_agag([], T404, T405, .(T404, T405)) → app81_out_agag([], T404, T405, .(T404, T405))
U32_agag(T389, T390, T391, T394, T393, app81_out_agag(T390, T391, T394, T393)) → app81_out_agag(.(T389, T390), T391, T394, .(T389, T393))
U35_aaagg(T54, T217, T131, T31, T8, app81_out_agag(T131, T31, T217, T8)) → p52_out_aaagg(T54, T217, T131, T31, T8)
U50_ag(T31, T33, T32, T8, p52_out_aaagg(T54, X10, T131, T31, T8)) → qs1_out_ag(.(T31, .(T33, T32)), T8)
qs1_in_ag(.(T421, .(T422, T423)), T8) → U51_ag(T421, T422, T423, T8, le100_in_aa(T421, T422))
U51_ag(T421, T422, T423, T8, le100_out_aa(T421, T422)) → qs1_out_ag(.(T421, .(T422, T423)), T8)
qs1_in_ag(.(T426, .(T428, T427)), T8) → U52_ag(T426, T428, T427, T8, le100_in_aa(T426, T428))
U52_ag(T426, T428, T427, T8, le100_out_aa(T426, T428)) → U53_ag(T426, T428, T427, T8, part20_in_gaaa(T426, T427, X740, X741))
U53_ag(T426, T428, T427, T8, part20_out_gaaa(T426, T427, X740, X741)) → qs1_out_ag(.(T426, .(T428, T427)), T8)
qs1_in_ag(.(T426, .(T436, T427)), T8) → U54_ag(T426, T436, T427, T8, le100_in_aa(T426, T436))
U54_ag(T426, T436, T427, T8, le100_out_aa(T426, T436)) → U55_ag(T426, T436, T427, T8, part20_in_gaaa(T426, T427, T434, T435))
U55_ag(T426, T436, T427, T8, part20_out_gaaa(T426, T427, T434, T435)) → U56_ag(T426, T436, T427, T8, qs80_in_aa(T434, X9))
U56_ag(T426, T436, T427, T8, qs80_out_aa(T434, X9)) → qs1_out_ag(.(T426, .(T436, T427)), T8)
U55_ag(T426, T436, T427, T8, part20_out_gaaa(T426, T427, T434, T435)) → U57_ag(T426, T436, T427, T8, T435, qs80_in_aa(T434, T442))
U57_ag(T426, T436, T427, T8, T435, qs80_out_aa(T434, T442)) → U58_ag(T426, T436, T427, T8, p52_in_aaagg(.(T436, T435), X10, T442, T426, T8))
U58_ag(T426, T436, T427, T8, p52_out_aaagg(.(T436, T435), X10, T442, T426, T8)) → qs1_out_ag(.(T426, .(T436, T427)), T8)
qs1_in_ag(.(T452, []), T8) → U59_ag(T452, T8, qs155_in_a(X9))
qs155_in_a([]) → qs155_out_a([])
U59_ag(T452, T8, qs155_out_a(X9)) → qs1_out_ag(.(T452, []), T8)
qs1_in_ag(.(T452, []), T8) → U60_ag(T452, T8, qs155_in_a(T455))
U60_ag(T452, T8, qs155_out_a(T455)) → U61_ag(T452, T8, qs155_in_a(X10))
U61_ag(T452, T8, qs155_out_a(X10)) → qs1_out_ag(.(T452, []), T8)
U60_ag(T452, T8, qs155_out_a(T455)) → U62_ag(T452, T8, T455, qs155_in_a(T460))
U62_ag(T452, T8, T455, qs155_out_a(T460)) → U63_ag(T452, T8, app162_in_gagg(T455, T452, T460, T8))
app162_in_gagg(.(T486, T487), T491, T489, .(T486, T490)) → U36_gagg(T486, T487, T491, T489, T490, app162_in_gagg(T487, T491, T489, T490))
app162_in_gagg([], T501, T502, .(T501, T502)) → app162_out_gagg([], T501, T502, .(T501, T502))
U36_gagg(T486, T487, T491, T489, T490, app162_out_gagg(T487, T491, T489, T490)) → app162_out_gagg(.(T486, T487), T491, T489, .(T486, T490))
U63_ag(T452, T8, app162_out_gagg(T455, T452, T460, T8)) → qs1_out_ag(.(T452, []), T8)
qs1_in_ag([], []) → qs1_out_ag([], [])
LE33_IN_GA(s(T113), s(T115)) → LE33_IN_GA(T113, T115)
LE33_IN_GA(s(T113)) → LE33_IN_GA(T113)
From the DPs we obtained the following set of size-change graphs:
GT10_IN_GA(s(T46), s(T47)) → GT10_IN_GA(T46, T47)
qs1_in_ag(.(T26, .(T27, T28)), T8) → U44_ag(T26, T27, T28, T8, gt10_in_aa(T26, T27))
gt10_in_aa(s(T46), s(T47)) → U1_aa(T46, T47, gt10_in_aa(T46, T47))
gt10_in_aa(s(0), 0) → gt10_out_aa(s(0), 0)
U1_aa(T46, T47, gt10_out_aa(T46, T47)) → gt10_out_aa(s(T46), s(T47))
U44_ag(T26, T27, T28, T8, gt10_out_aa(T26, T27)) → qs1_out_ag(.(T26, .(T27, T28)), T8)
qs1_in_ag(.(T31, .(T33, T32)), T8) → U45_ag(T31, T33, T32, T8, gt10_in_aa(T31, T33))
U45_ag(T31, T33, T32, T8, gt10_out_aa(T31, T33)) → U46_ag(T31, T33, T32, T8, part20_in_gaaa(T31, T32, X47, X48))
part20_in_gaaa(T70, .(T73, T74), .(T73, X119), X120) → U2_gaaa(T70, T73, T74, X119, X120, gt10_in_ga(T70, T73))
gt10_in_ga(s(T46), s(T47)) → U1_ga(T46, T47, gt10_in_ga(T46, T47))
gt10_in_ga(s(0), 0) → gt10_out_ga(s(0), 0)
U1_ga(T46, T47, gt10_out_ga(T46, T47)) → gt10_out_ga(s(T46), s(T47))
U2_gaaa(T70, T73, T74, X119, X120, gt10_out_ga(T70, T73)) → part20_out_gaaa(T70, .(T73, T74), .(T73, X119), X120)
part20_in_gaaa(T70, .(T73, T77), .(T73, X119), X120) → U3_gaaa(T70, T73, T77, X119, X120, gt10_in_ga(T70, T73))
U3_gaaa(T70, T73, T77, X119, X120, gt10_out_ga(T70, T73)) → U4_gaaa(T70, T73, T77, X119, X120, part20_in_gaaa(T70, T77, X119, X120))
part20_in_gaaa(T95, .(T98, T99), X170, .(T98, X171)) → U5_gaaa(T95, T98, T99, X170, X171, le33_in_ga(T95, T98))
le33_in_ga(s(T113), s(T115)) → U8_ga(T113, T115, le33_in_ga(T113, T115))
le33_in_ga(0, s(T122)) → le33_out_ga(0, s(T122))
le33_in_ga(0, 0) → le33_out_ga(0, 0)
U8_ga(T113, T115, le33_out_ga(T113, T115)) → le33_out_ga(s(T113), s(T115))
U5_gaaa(T95, T98, T99, X170, X171, le33_out_ga(T95, T98)) → part20_out_gaaa(T95, .(T98, T99), X170, .(T98, X171))
part20_in_gaaa(T95, .(T98, T102), X170, .(T98, X171)) → U6_gaaa(T95, T98, T102, X170, X171, le33_in_ga(T95, T98))
U6_gaaa(T95, T98, T102, X170, X171, le33_out_ga(T95, T98)) → U7_gaaa(T95, T98, T102, X170, X171, part20_in_gaaa(T95, T102, X170, X171))
part20_in_gaaa(T128, [], [], []) → part20_out_gaaa(T128, [], [], [])
U7_gaaa(T95, T98, T102, X170, X171, part20_out_gaaa(T95, T102, X170, X171)) → part20_out_gaaa(T95, .(T98, T102), X170, .(T98, X171))
U4_gaaa(T70, T73, T77, X119, X120, part20_out_gaaa(T70, T77, X119, X120)) → part20_out_gaaa(T70, .(T73, T77), .(T73, X119), X120)
U46_ag(T31, T33, T32, T8, part20_out_gaaa(T31, T32, X47, X48)) → qs1_out_ag(.(T31, .(T33, T32)), T8)
U45_ag(T31, T33, T32, T8, gt10_out_aa(T31, T33)) → U47_ag(T31, T33, T32, T8, part20_in_gaaa(T31, T32, T53, T54))
U47_ag(T31, T33, T32, T8, part20_out_gaaa(T31, T32, T53, T54)) → U48_ag(T31, T33, T32, T8, qs51_in_gaa(T33, T53, X9))
qs51_in_gaa(T148, T149, X273) → U37_gaa(T148, T149, X273, p56_in_gaaaaaa(T148, T149, X269, X270, X271, X272, X273))
p56_in_gaaaaaa(T148, T149, X269, X270, X271, X272, X273) → U9_gaaaaaa(T148, T149, X269, X270, X271, X272, X273, part20_in_gaaa(T148, T149, X269, X270))
U9_gaaaaaa(T148, T149, X269, X270, X271, X272, X273, part20_out_gaaa(T148, T149, X269, X270)) → p56_out_gaaaaaa(T148, T149, X269, X270, X271, X272, X273)
p56_in_gaaaaaa(T148, T149, T153, T154, X271, X272, X273) → U10_gaaaaaa(T148, T149, T153, T154, X271, X272, X273, part20_in_gaaa(T148, T149, T153, T154))
U10_gaaaaaa(T148, T149, T153, T154, X271, X272, X273, part20_out_gaaa(T148, T149, T153, T154)) → U11_gaaaaaa(T148, T149, T153, T154, X271, X272, X273, qs59_in_aa(T153, X271))
qs59_in_aa(.(T171, T172), X335) → U19_aa(T171, T172, X335, p56_in_aaaaaaa(T171, T172, X331, X332, X333, X334, X335))
p56_in_aaaaaaa(T148, T149, X269, X270, X271, X272, X273) → U9_aaaaaaa(T148, T149, X269, X270, X271, X272, X273, part20_in_aaaa(T148, T149, X269, X270))
part20_in_aaaa(T70, .(T73, T74), .(T73, X119), X120) → U2_aaaa(T70, T73, T74, X119, X120, gt10_in_aa(T70, T73))
U2_aaaa(T70, T73, T74, X119, X120, gt10_out_aa(T70, T73)) → part20_out_aaaa(T70, .(T73, T74), .(T73, X119), X120)
part20_in_aaaa(T70, .(T73, T77), .(T73, X119), X120) → U3_aaaa(T70, T73, T77, X119, X120, gt10_in_aa(T70, T73))
U3_aaaa(T70, T73, T77, X119, X120, gt10_out_aa(T70, T73)) → U4_aaaa(T70, T73, T77, X119, X120, part20_in_gaaa(T70, T77, X119, X120))
U4_aaaa(T70, T73, T77, X119, X120, part20_out_gaaa(T70, T77, X119, X120)) → part20_out_aaaa(T70, .(T73, T77), .(T73, X119), X120)
part20_in_aaaa(T95, .(T98, T99), X170, .(T98, X171)) → U5_aaaa(T95, T98, T99, X170, X171, le33_in_aa(T95, T98))
le33_in_aa(s(T113), s(T115)) → U8_aa(T113, T115, le33_in_aa(T113, T115))
le33_in_aa(0, s(T122)) → le33_out_aa(0, s(T122))
le33_in_aa(0, 0) → le33_out_aa(0, 0)
U8_aa(T113, T115, le33_out_aa(T113, T115)) → le33_out_aa(s(T113), s(T115))
U5_aaaa(T95, T98, T99, X170, X171, le33_out_aa(T95, T98)) → part20_out_aaaa(T95, .(T98, T99), X170, .(T98, X171))
part20_in_aaaa(T95, .(T98, T102), X170, .(T98, X171)) → U6_aaaa(T95, T98, T102, X170, X171, le33_in_aa(T95, T98))
U6_aaaa(T95, T98, T102, X170, X171, le33_out_aa(T95, T98)) → U7_aaaa(T95, T98, T102, X170, X171, part20_in_gaaa(T95, T102, X170, X171))
U7_aaaa(T95, T98, T102, X170, X171, part20_out_gaaa(T95, T102, X170, X171)) → part20_out_aaaa(T95, .(T98, T102), X170, .(T98, X171))
part20_in_aaaa(T128, [], [], []) → part20_out_aaaa(T128, [], [], [])
U9_aaaaaaa(T148, T149, X269, X270, X271, X272, X273, part20_out_aaaa(T148, T149, X269, X270)) → p56_out_aaaaaaa(T148, T149, X269, X270, X271, X272, X273)
p56_in_aaaaaaa(T148, T149, T153, T154, X271, X272, X273) → U10_aaaaaaa(T148, T149, T153, T154, X271, X272, X273, part20_in_aaaa(T148, T149, T153, T154))
U10_aaaaaaa(T148, T149, T153, T154, X271, X272, X273, part20_out_aaaa(T148, T149, T153, T154)) → U11_aaaaaaa(T148, T149, T153, T154, X271, X272, X273, qs59_in_aa(T153, X271))
qs59_in_aa([], []) → qs59_out_aa([], [])
U11_aaaaaaa(T148, T149, T153, T154, X271, X272, X273, qs59_out_aa(T153, X271)) → p56_out_aaaaaaa(T148, T149, T153, T154, X271, X272, X273)
p56_in_aaaaaaa(T148, T149, T153, T154, T160, X272, X273) → U12_aaaaaaa(T148, T149, T153, T154, T160, X272, X273, part20_in_aaaa(T148, T149, T153, T154))
U12_aaaaaaa(T148, T149, T153, T154, T160, X272, X273, part20_out_aaaa(T148, T149, T153, T154)) → U13_aaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_in_aa(T153, T160))
U13_aaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_out_aa(T153, T160)) → U14_aaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_in_aa(T154, X272))
U14_aaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_out_aa(T154, X272)) → p56_out_aaaaaaa(T148, T149, T153, T154, T160, X272, X273)
p56_in_aaaaaaa(T148, T149, T153, T154, T160, T178, X273) → U15_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, part20_in_aaaa(T148, T149, T153, T154))
U15_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, part20_out_aaaa(T148, T149, T153, T154)) → U16_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_in_aa(T153, T160))
U16_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_out_aa(T153, T160)) → U17_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_in_aa(T154, T178))
U17_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_out_aa(T154, T178)) → U18_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, app70_in_aaaa(T160, T148, T178, X273))
app70_in_aaaa(.(T201, T202), T203, T204, .(T201, X391)) → U20_aaaa(T201, T202, T203, T204, X391, app70_in_aaaa(T202, T203, T204, X391))
app70_in_aaaa([], T213, T214, .(T213, T214)) → app70_out_aaaa([], T213, T214, .(T213, T214))
U20_aaaa(T201, T202, T203, T204, X391, app70_out_aaaa(T202, T203, T204, X391)) → app70_out_aaaa(.(T201, T202), T203, T204, .(T201, X391))
U18_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, app70_out_aaaa(T160, T148, T178, X273)) → p56_out_aaaaaaa(T148, T149, T153, T154, T160, T178, X273)
U19_aa(T171, T172, X335, p56_out_aaaaaaa(T171, T172, X331, X332, X333, X334, X335)) → qs59_out_aa(.(T171, T172), X335)
U11_gaaaaaa(T148, T149, T153, T154, X271, X272, X273, qs59_out_aa(T153, X271)) → p56_out_gaaaaaa(T148, T149, T153, T154, X271, X272, X273)
p56_in_gaaaaaa(T148, T149, T153, T154, T160, X272, X273) → U12_gaaaaaa(T148, T149, T153, T154, T160, X272, X273, part20_in_gaaa(T148, T149, T153, T154))
U12_gaaaaaa(T148, T149, T153, T154, T160, X272, X273, part20_out_gaaa(T148, T149, T153, T154)) → U13_gaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_in_aa(T153, T160))
U13_gaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_out_aa(T153, T160)) → U14_gaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_in_aa(T154, X272))
U14_gaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_out_aa(T154, X272)) → p56_out_gaaaaaa(T148, T149, T153, T154, T160, X272, X273)
p56_in_gaaaaaa(T148, T149, T153, T154, T160, T178, X273) → U15_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, part20_in_gaaa(T148, T149, T153, T154))
U15_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, part20_out_gaaa(T148, T149, T153, T154)) → U16_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_in_aa(T153, T160))
U16_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_out_aa(T153, T160)) → U17_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_in_aa(T154, T178))
U17_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_out_aa(T154, T178)) → U18_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, app70_in_agaa(T160, T148, T178, X273))
app70_in_agaa(.(T201, T202), T203, T204, .(T201, X391)) → U20_agaa(T201, T202, T203, T204, X391, app70_in_agaa(T202, T203, T204, X391))
app70_in_agaa([], T213, T214, .(T213, T214)) → app70_out_agaa([], T213, T214, .(T213, T214))
U20_agaa(T201, T202, T203, T204, X391, app70_out_agaa(T202, T203, T204, X391)) → app70_out_agaa(.(T201, T202), T203, T204, .(T201, X391))
U18_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, app70_out_agaa(T160, T148, T178, X273)) → p56_out_gaaaaaa(T148, T149, T153, T154, T160, T178, X273)
U37_gaa(T148, T149, X273, p56_out_gaaaaaa(T148, T149, X269, X270, X271, X272, X273)) → qs51_out_gaa(T148, T149, X273)
U48_ag(T31, T33, T32, T8, qs51_out_gaa(T33, T53, X9)) → qs1_out_ag(.(T31, .(T33, T32)), T8)
U47_ag(T31, T33, T32, T8, part20_out_gaaa(T31, T32, T53, T54)) → U49_ag(T31, T33, T32, T8, T54, qs51_in_gaa(T33, T53, T131))
U49_ag(T31, T33, T32, T8, T54, qs51_out_gaa(T33, T53, T131)) → U50_ag(T31, T33, T32, T8, p52_in_aaagg(T54, X10, T131, T31, T8))
p52_in_aaagg(T54, X10, T131, T31, T8) → U33_aaagg(T54, X10, T131, T31, T8, qs80_in_aa(T54, X10))
qs80_in_aa(.(T230, T231), X452) → U22_aa(T230, T231, X452, part87_in_aaaa(T230, T231, X448, X449))
part87_in_aaaa(T256, .(T257, T258), .(T257, X503), X504) → U38_aaaa(T256, T257, T258, X503, X504, gt10_in_aa(T256, T257))
U38_aaaa(T256, T257, T258, X503, X504, gt10_out_aa(T256, T257)) → part87_out_aaaa(T256, .(T257, T258), .(T257, X503), X504)
part87_in_aaaa(T261, .(T257, T262), .(T257, X503), X504) → U39_aaaa(T261, T257, T262, X503, X504, gt10_in_aa(T261, T257))
U39_aaaa(T261, T257, T262, X503, X504, gt10_out_aa(T261, T257)) → U40_aaaa(T261, T257, T262, X503, X504, part20_in_gaaa(T261, T262, X503, X504))
U40_aaaa(T261, T257, T262, X503, X504, part20_out_gaaa(T261, T262, X503, X504)) → part87_out_aaaa(T261, .(T257, T262), .(T257, X503), X504)
part87_in_aaaa(T283, .(T284, T285), X554, .(T284, X555)) → U41_aaaa(T283, T284, T285, X554, X555, le100_in_aa(T283, T284))
le100_in_aa(s(T302), s(T303)) → U21_aa(T302, T303, le100_in_aa(T302, T303))
le100_in_aa(0, s(T310)) → le100_out_aa(0, s(T310))
le100_in_aa(0, 0) → le100_out_aa(0, 0)
U21_aa(T302, T303, le100_out_aa(T302, T303)) → le100_out_aa(s(T302), s(T303))
U41_aaaa(T283, T284, T285, X554, X555, le100_out_aa(T283, T284)) → part87_out_aaaa(T283, .(T284, T285), X554, .(T284, X555))
part87_in_aaaa(T288, .(T284, T289), X554, .(T284, X555)) → U42_aaaa(T288, T284, T289, X554, X555, le100_in_aa(T288, T284))
U42_aaaa(T288, T284, T289, X554, X555, le100_out_aa(T288, T284)) → U43_aaaa(T288, T284, T289, X554, X555, part20_in_gaaa(T288, T289, X554, X555))
U43_aaaa(T288, T284, T289, X554, X555, part20_out_gaaa(T288, T289, X554, X555)) → part87_out_aaaa(T288, .(T284, T289), X554, .(T284, X555))
part87_in_aaaa(T316, [], [], []) → part87_out_aaaa(T316, [], [], [])
U22_aa(T230, T231, X452, part87_out_aaaa(T230, T231, X448, X449)) → qs80_out_aa(.(T230, T231), X452)
qs80_in_aa(.(T237, T231), X452) → U23_aa(T237, T231, X452, part87_in_aaaa(T237, T231, T235, T236))
U23_aa(T237, T231, X452, part87_out_aaaa(T237, T231, T235, T236)) → U24_aa(T237, T231, X452, qs80_in_aa(T235, X450))
qs80_in_aa(.(T325, T231), X452) → U27_aa(T325, T231, X452, part87_in_aaaa(T325, T231, T235, T236))
U27_aa(T325, T231, X452, part87_out_aaaa(T325, T231, T235, T236)) → U28_aa(T325, T231, X452, T236, qs80_in_aa(T235, T319))
qs80_in_aa([], []) → qs80_out_aa([], [])
U28_aa(T325, T231, X452, T236, qs80_out_aa(T235, T319)) → U29_aa(T325, T231, X452, T319, qs80_in_aa(T236, T324))
U29_aa(T325, T231, X452, T319, qs80_out_aa(T236, T324)) → U30_aa(T325, T231, X452, app121_in_aaaa(T319, T325, T324, X452))
app121_in_aaaa(.(T348, T349), T352, T353, .(T348, X657)) → U31_aaaa(T348, T349, T352, T353, X657, app121_in_aaaa(T349, T352, T353, X657))
app121_in_aaaa([], T362, T363, .(T362, T363)) → app121_out_aaaa([], T362, T363, .(T362, T363))
U31_aaaa(T348, T349, T352, T353, X657, app121_out_aaaa(T349, T352, T353, X657)) → app121_out_aaaa(.(T348, T349), T352, T353, .(T348, X657))
U30_aa(T325, T231, X452, app121_out_aaaa(T319, T325, T324, X452)) → qs80_out_aa(.(T325, T231), X452)
U24_aa(T237, T231, X452, qs80_out_aa(T235, X450)) → qs80_out_aa(.(T237, T231), X452)
U23_aa(T237, T231, X452, part87_out_aaaa(T237, T231, T235, T236)) → U25_aa(T237, T231, X452, T236, qs80_in_aa(T235, T319))
U25_aa(T237, T231, X452, T236, qs80_out_aa(T235, T319)) → U26_aa(T237, T231, X452, qs80_in_aa(T236, X451))
U26_aa(T237, T231, X452, qs80_out_aa(T236, X451)) → qs80_out_aa(.(T237, T231), X452)
U33_aaagg(T54, X10, T131, T31, T8, qs80_out_aa(T54, X10)) → p52_out_aaagg(T54, X10, T131, T31, T8)
p52_in_aaagg(T54, T217, T131, T31, T8) → U34_aaagg(T54, T217, T131, T31, T8, qs80_in_aa(T54, T217))
U34_aaagg(T54, T217, T131, T31, T8, qs80_out_aa(T54, T217)) → U35_aaagg(T54, T217, T131, T31, T8, app81_in_agag(T131, T31, T217, T8))
app81_in_agag(.(T389, T390), T391, T394, .(T389, T393)) → U32_agag(T389, T390, T391, T394, T393, app81_in_agag(T390, T391, T394, T393))
app81_in_agag([], T404, T405, .(T404, T405)) → app81_out_agag([], T404, T405, .(T404, T405))
U32_agag(T389, T390, T391, T394, T393, app81_out_agag(T390, T391, T394, T393)) → app81_out_agag(.(T389, T390), T391, T394, .(T389, T393))
U35_aaagg(T54, T217, T131, T31, T8, app81_out_agag(T131, T31, T217, T8)) → p52_out_aaagg(T54, T217, T131, T31, T8)
U50_ag(T31, T33, T32, T8, p52_out_aaagg(T54, X10, T131, T31, T8)) → qs1_out_ag(.(T31, .(T33, T32)), T8)
qs1_in_ag(.(T421, .(T422, T423)), T8) → U51_ag(T421, T422, T423, T8, le100_in_aa(T421, T422))
U51_ag(T421, T422, T423, T8, le100_out_aa(T421, T422)) → qs1_out_ag(.(T421, .(T422, T423)), T8)
qs1_in_ag(.(T426, .(T428, T427)), T8) → U52_ag(T426, T428, T427, T8, le100_in_aa(T426, T428))
U52_ag(T426, T428, T427, T8, le100_out_aa(T426, T428)) → U53_ag(T426, T428, T427, T8, part20_in_gaaa(T426, T427, X740, X741))
U53_ag(T426, T428, T427, T8, part20_out_gaaa(T426, T427, X740, X741)) → qs1_out_ag(.(T426, .(T428, T427)), T8)
qs1_in_ag(.(T426, .(T436, T427)), T8) → U54_ag(T426, T436, T427, T8, le100_in_aa(T426, T436))
U54_ag(T426, T436, T427, T8, le100_out_aa(T426, T436)) → U55_ag(T426, T436, T427, T8, part20_in_gaaa(T426, T427, T434, T435))
U55_ag(T426, T436, T427, T8, part20_out_gaaa(T426, T427, T434, T435)) → U56_ag(T426, T436, T427, T8, qs80_in_aa(T434, X9))
U56_ag(T426, T436, T427, T8, qs80_out_aa(T434, X9)) → qs1_out_ag(.(T426, .(T436, T427)), T8)
U55_ag(T426, T436, T427, T8, part20_out_gaaa(T426, T427, T434, T435)) → U57_ag(T426, T436, T427, T8, T435, qs80_in_aa(T434, T442))
U57_ag(T426, T436, T427, T8, T435, qs80_out_aa(T434, T442)) → U58_ag(T426, T436, T427, T8, p52_in_aaagg(.(T436, T435), X10, T442, T426, T8))
U58_ag(T426, T436, T427, T8, p52_out_aaagg(.(T436, T435), X10, T442, T426, T8)) → qs1_out_ag(.(T426, .(T436, T427)), T8)
qs1_in_ag(.(T452, []), T8) → U59_ag(T452, T8, qs155_in_a(X9))
qs155_in_a([]) → qs155_out_a([])
U59_ag(T452, T8, qs155_out_a(X9)) → qs1_out_ag(.(T452, []), T8)
qs1_in_ag(.(T452, []), T8) → U60_ag(T452, T8, qs155_in_a(T455))
U60_ag(T452, T8, qs155_out_a(T455)) → U61_ag(T452, T8, qs155_in_a(X10))
U61_ag(T452, T8, qs155_out_a(X10)) → qs1_out_ag(.(T452, []), T8)
U60_ag(T452, T8, qs155_out_a(T455)) → U62_ag(T452, T8, T455, qs155_in_a(T460))
U62_ag(T452, T8, T455, qs155_out_a(T460)) → U63_ag(T452, T8, app162_in_gagg(T455, T452, T460, T8))
app162_in_gagg(.(T486, T487), T491, T489, .(T486, T490)) → U36_gagg(T486, T487, T491, T489, T490, app162_in_gagg(T487, T491, T489, T490))
app162_in_gagg([], T501, T502, .(T501, T502)) → app162_out_gagg([], T501, T502, .(T501, T502))
U36_gagg(T486, T487, T491, T489, T490, app162_out_gagg(T487, T491, T489, T490)) → app162_out_gagg(.(T486, T487), T491, T489, .(T486, T490))
U63_ag(T452, T8, app162_out_gagg(T455, T452, T460, T8)) → qs1_out_ag(.(T452, []), T8)
qs1_in_ag([], []) → qs1_out_ag([], [])
GT10_IN_GA(s(T46), s(T47)) → GT10_IN_GA(T46, T47)
GT10_IN_GA(s(T46)) → GT10_IN_GA(T46)
From the DPs we obtained the following set of size-change graphs:
PART20_IN_GAAA(T70, .(T73, T77), .(T73, X119), X120) → U3_GAAA(T70, T73, T77, X119, X120, gt10_in_ga(T70, T73))
U3_GAAA(T70, T73, T77, X119, X120, gt10_out_ga(T70, T73)) → PART20_IN_GAAA(T70, T77, X119, X120)
PART20_IN_GAAA(T95, .(T98, T102), X170, .(T98, X171)) → U6_GAAA(T95, T98, T102, X170, X171, le33_in_ga(T95, T98))
U6_GAAA(T95, T98, T102, X170, X171, le33_out_ga(T95, T98)) → PART20_IN_GAAA(T95, T102, X170, X171)
qs1_in_ag(.(T26, .(T27, T28)), T8) → U44_ag(T26, T27, T28, T8, gt10_in_aa(T26, T27))
gt10_in_aa(s(T46), s(T47)) → U1_aa(T46, T47, gt10_in_aa(T46, T47))
gt10_in_aa(s(0), 0) → gt10_out_aa(s(0), 0)
U1_aa(T46, T47, gt10_out_aa(T46, T47)) → gt10_out_aa(s(T46), s(T47))
U44_ag(T26, T27, T28, T8, gt10_out_aa(T26, T27)) → qs1_out_ag(.(T26, .(T27, T28)), T8)
qs1_in_ag(.(T31, .(T33, T32)), T8) → U45_ag(T31, T33, T32, T8, gt10_in_aa(T31, T33))
U45_ag(T31, T33, T32, T8, gt10_out_aa(T31, T33)) → U46_ag(T31, T33, T32, T8, part20_in_gaaa(T31, T32, X47, X48))
part20_in_gaaa(T70, .(T73, T74), .(T73, X119), X120) → U2_gaaa(T70, T73, T74, X119, X120, gt10_in_ga(T70, T73))
gt10_in_ga(s(T46), s(T47)) → U1_ga(T46, T47, gt10_in_ga(T46, T47))
gt10_in_ga(s(0), 0) → gt10_out_ga(s(0), 0)
U1_ga(T46, T47, gt10_out_ga(T46, T47)) → gt10_out_ga(s(T46), s(T47))
U2_gaaa(T70, T73, T74, X119, X120, gt10_out_ga(T70, T73)) → part20_out_gaaa(T70, .(T73, T74), .(T73, X119), X120)
part20_in_gaaa(T70, .(T73, T77), .(T73, X119), X120) → U3_gaaa(T70, T73, T77, X119, X120, gt10_in_ga(T70, T73))
U3_gaaa(T70, T73, T77, X119, X120, gt10_out_ga(T70, T73)) → U4_gaaa(T70, T73, T77, X119, X120, part20_in_gaaa(T70, T77, X119, X120))
part20_in_gaaa(T95, .(T98, T99), X170, .(T98, X171)) → U5_gaaa(T95, T98, T99, X170, X171, le33_in_ga(T95, T98))
le33_in_ga(s(T113), s(T115)) → U8_ga(T113, T115, le33_in_ga(T113, T115))
le33_in_ga(0, s(T122)) → le33_out_ga(0, s(T122))
le33_in_ga(0, 0) → le33_out_ga(0, 0)
U8_ga(T113, T115, le33_out_ga(T113, T115)) → le33_out_ga(s(T113), s(T115))
U5_gaaa(T95, T98, T99, X170, X171, le33_out_ga(T95, T98)) → part20_out_gaaa(T95, .(T98, T99), X170, .(T98, X171))
part20_in_gaaa(T95, .(T98, T102), X170, .(T98, X171)) → U6_gaaa(T95, T98, T102, X170, X171, le33_in_ga(T95, T98))
U6_gaaa(T95, T98, T102, X170, X171, le33_out_ga(T95, T98)) → U7_gaaa(T95, T98, T102, X170, X171, part20_in_gaaa(T95, T102, X170, X171))
part20_in_gaaa(T128, [], [], []) → part20_out_gaaa(T128, [], [], [])
U7_gaaa(T95, T98, T102, X170, X171, part20_out_gaaa(T95, T102, X170, X171)) → part20_out_gaaa(T95, .(T98, T102), X170, .(T98, X171))
U4_gaaa(T70, T73, T77, X119, X120, part20_out_gaaa(T70, T77, X119, X120)) → part20_out_gaaa(T70, .(T73, T77), .(T73, X119), X120)
U46_ag(T31, T33, T32, T8, part20_out_gaaa(T31, T32, X47, X48)) → qs1_out_ag(.(T31, .(T33, T32)), T8)
U45_ag(T31, T33, T32, T8, gt10_out_aa(T31, T33)) → U47_ag(T31, T33, T32, T8, part20_in_gaaa(T31, T32, T53, T54))
U47_ag(T31, T33, T32, T8, part20_out_gaaa(T31, T32, T53, T54)) → U48_ag(T31, T33, T32, T8, qs51_in_gaa(T33, T53, X9))
qs51_in_gaa(T148, T149, X273) → U37_gaa(T148, T149, X273, p56_in_gaaaaaa(T148, T149, X269, X270, X271, X272, X273))
p56_in_gaaaaaa(T148, T149, X269, X270, X271, X272, X273) → U9_gaaaaaa(T148, T149, X269, X270, X271, X272, X273, part20_in_gaaa(T148, T149, X269, X270))
U9_gaaaaaa(T148, T149, X269, X270, X271, X272, X273, part20_out_gaaa(T148, T149, X269, X270)) → p56_out_gaaaaaa(T148, T149, X269, X270, X271, X272, X273)
p56_in_gaaaaaa(T148, T149, T153, T154, X271, X272, X273) → U10_gaaaaaa(T148, T149, T153, T154, X271, X272, X273, part20_in_gaaa(T148, T149, T153, T154))
U10_gaaaaaa(T148, T149, T153, T154, X271, X272, X273, part20_out_gaaa(T148, T149, T153, T154)) → U11_gaaaaaa(T148, T149, T153, T154, X271, X272, X273, qs59_in_aa(T153, X271))
qs59_in_aa(.(T171, T172), X335) → U19_aa(T171, T172, X335, p56_in_aaaaaaa(T171, T172, X331, X332, X333, X334, X335))
p56_in_aaaaaaa(T148, T149, X269, X270, X271, X272, X273) → U9_aaaaaaa(T148, T149, X269, X270, X271, X272, X273, part20_in_aaaa(T148, T149, X269, X270))
part20_in_aaaa(T70, .(T73, T74), .(T73, X119), X120) → U2_aaaa(T70, T73, T74, X119, X120, gt10_in_aa(T70, T73))
U2_aaaa(T70, T73, T74, X119, X120, gt10_out_aa(T70, T73)) → part20_out_aaaa(T70, .(T73, T74), .(T73, X119), X120)
part20_in_aaaa(T70, .(T73, T77), .(T73, X119), X120) → U3_aaaa(T70, T73, T77, X119, X120, gt10_in_aa(T70, T73))
U3_aaaa(T70, T73, T77, X119, X120, gt10_out_aa(T70, T73)) → U4_aaaa(T70, T73, T77, X119, X120, part20_in_gaaa(T70, T77, X119, X120))
U4_aaaa(T70, T73, T77, X119, X120, part20_out_gaaa(T70, T77, X119, X120)) → part20_out_aaaa(T70, .(T73, T77), .(T73, X119), X120)
part20_in_aaaa(T95, .(T98, T99), X170, .(T98, X171)) → U5_aaaa(T95, T98, T99, X170, X171, le33_in_aa(T95, T98))
le33_in_aa(s(T113), s(T115)) → U8_aa(T113, T115, le33_in_aa(T113, T115))
le33_in_aa(0, s(T122)) → le33_out_aa(0, s(T122))
le33_in_aa(0, 0) → le33_out_aa(0, 0)
U8_aa(T113, T115, le33_out_aa(T113, T115)) → le33_out_aa(s(T113), s(T115))
U5_aaaa(T95, T98, T99, X170, X171, le33_out_aa(T95, T98)) → part20_out_aaaa(T95, .(T98, T99), X170, .(T98, X171))
part20_in_aaaa(T95, .(T98, T102), X170, .(T98, X171)) → U6_aaaa(T95, T98, T102, X170, X171, le33_in_aa(T95, T98))
U6_aaaa(T95, T98, T102, X170, X171, le33_out_aa(T95, T98)) → U7_aaaa(T95, T98, T102, X170, X171, part20_in_gaaa(T95, T102, X170, X171))
U7_aaaa(T95, T98, T102, X170, X171, part20_out_gaaa(T95, T102, X170, X171)) → part20_out_aaaa(T95, .(T98, T102), X170, .(T98, X171))
part20_in_aaaa(T128, [], [], []) → part20_out_aaaa(T128, [], [], [])
U9_aaaaaaa(T148, T149, X269, X270, X271, X272, X273, part20_out_aaaa(T148, T149, X269, X270)) → p56_out_aaaaaaa(T148, T149, X269, X270, X271, X272, X273)
p56_in_aaaaaaa(T148, T149, T153, T154, X271, X272, X273) → U10_aaaaaaa(T148, T149, T153, T154, X271, X272, X273, part20_in_aaaa(T148, T149, T153, T154))
U10_aaaaaaa(T148, T149, T153, T154, X271, X272, X273, part20_out_aaaa(T148, T149, T153, T154)) → U11_aaaaaaa(T148, T149, T153, T154, X271, X272, X273, qs59_in_aa(T153, X271))
qs59_in_aa([], []) → qs59_out_aa([], [])
U11_aaaaaaa(T148, T149, T153, T154, X271, X272, X273, qs59_out_aa(T153, X271)) → p56_out_aaaaaaa(T148, T149, T153, T154, X271, X272, X273)
p56_in_aaaaaaa(T148, T149, T153, T154, T160, X272, X273) → U12_aaaaaaa(T148, T149, T153, T154, T160, X272, X273, part20_in_aaaa(T148, T149, T153, T154))
U12_aaaaaaa(T148, T149, T153, T154, T160, X272, X273, part20_out_aaaa(T148, T149, T153, T154)) → U13_aaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_in_aa(T153, T160))
U13_aaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_out_aa(T153, T160)) → U14_aaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_in_aa(T154, X272))
U14_aaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_out_aa(T154, X272)) → p56_out_aaaaaaa(T148, T149, T153, T154, T160, X272, X273)
p56_in_aaaaaaa(T148, T149, T153, T154, T160, T178, X273) → U15_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, part20_in_aaaa(T148, T149, T153, T154))
U15_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, part20_out_aaaa(T148, T149, T153, T154)) → U16_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_in_aa(T153, T160))
U16_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_out_aa(T153, T160)) → U17_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_in_aa(T154, T178))
U17_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_out_aa(T154, T178)) → U18_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, app70_in_aaaa(T160, T148, T178, X273))
app70_in_aaaa(.(T201, T202), T203, T204, .(T201, X391)) → U20_aaaa(T201, T202, T203, T204, X391, app70_in_aaaa(T202, T203, T204, X391))
app70_in_aaaa([], T213, T214, .(T213, T214)) → app70_out_aaaa([], T213, T214, .(T213, T214))
U20_aaaa(T201, T202, T203, T204, X391, app70_out_aaaa(T202, T203, T204, X391)) → app70_out_aaaa(.(T201, T202), T203, T204, .(T201, X391))
U18_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, app70_out_aaaa(T160, T148, T178, X273)) → p56_out_aaaaaaa(T148, T149, T153, T154, T160, T178, X273)
U19_aa(T171, T172, X335, p56_out_aaaaaaa(T171, T172, X331, X332, X333, X334, X335)) → qs59_out_aa(.(T171, T172), X335)
U11_gaaaaaa(T148, T149, T153, T154, X271, X272, X273, qs59_out_aa(T153, X271)) → p56_out_gaaaaaa(T148, T149, T153, T154, X271, X272, X273)
p56_in_gaaaaaa(T148, T149, T153, T154, T160, X272, X273) → U12_gaaaaaa(T148, T149, T153, T154, T160, X272, X273, part20_in_gaaa(T148, T149, T153, T154))
U12_gaaaaaa(T148, T149, T153, T154, T160, X272, X273, part20_out_gaaa(T148, T149, T153, T154)) → U13_gaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_in_aa(T153, T160))
U13_gaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_out_aa(T153, T160)) → U14_gaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_in_aa(T154, X272))
U14_gaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_out_aa(T154, X272)) → p56_out_gaaaaaa(T148, T149, T153, T154, T160, X272, X273)
p56_in_gaaaaaa(T148, T149, T153, T154, T160, T178, X273) → U15_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, part20_in_gaaa(T148, T149, T153, T154))
U15_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, part20_out_gaaa(T148, T149, T153, T154)) → U16_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_in_aa(T153, T160))
U16_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_out_aa(T153, T160)) → U17_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_in_aa(T154, T178))
U17_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_out_aa(T154, T178)) → U18_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, app70_in_agaa(T160, T148, T178, X273))
app70_in_agaa(.(T201, T202), T203, T204, .(T201, X391)) → U20_agaa(T201, T202, T203, T204, X391, app70_in_agaa(T202, T203, T204, X391))
app70_in_agaa([], T213, T214, .(T213, T214)) → app70_out_agaa([], T213, T214, .(T213, T214))
U20_agaa(T201, T202, T203, T204, X391, app70_out_agaa(T202, T203, T204, X391)) → app70_out_agaa(.(T201, T202), T203, T204, .(T201, X391))
U18_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, app70_out_agaa(T160, T148, T178, X273)) → p56_out_gaaaaaa(T148, T149, T153, T154, T160, T178, X273)
U37_gaa(T148, T149, X273, p56_out_gaaaaaa(T148, T149, X269, X270, X271, X272, X273)) → qs51_out_gaa(T148, T149, X273)
U48_ag(T31, T33, T32, T8, qs51_out_gaa(T33, T53, X9)) → qs1_out_ag(.(T31, .(T33, T32)), T8)
U47_ag(T31, T33, T32, T8, part20_out_gaaa(T31, T32, T53, T54)) → U49_ag(T31, T33, T32, T8, T54, qs51_in_gaa(T33, T53, T131))
U49_ag(T31, T33, T32, T8, T54, qs51_out_gaa(T33, T53, T131)) → U50_ag(T31, T33, T32, T8, p52_in_aaagg(T54, X10, T131, T31, T8))
p52_in_aaagg(T54, X10, T131, T31, T8) → U33_aaagg(T54, X10, T131, T31, T8, qs80_in_aa(T54, X10))
qs80_in_aa(.(T230, T231), X452) → U22_aa(T230, T231, X452, part87_in_aaaa(T230, T231, X448, X449))
part87_in_aaaa(T256, .(T257, T258), .(T257, X503), X504) → U38_aaaa(T256, T257, T258, X503, X504, gt10_in_aa(T256, T257))
U38_aaaa(T256, T257, T258, X503, X504, gt10_out_aa(T256, T257)) → part87_out_aaaa(T256, .(T257, T258), .(T257, X503), X504)
part87_in_aaaa(T261, .(T257, T262), .(T257, X503), X504) → U39_aaaa(T261, T257, T262, X503, X504, gt10_in_aa(T261, T257))
U39_aaaa(T261, T257, T262, X503, X504, gt10_out_aa(T261, T257)) → U40_aaaa(T261, T257, T262, X503, X504, part20_in_gaaa(T261, T262, X503, X504))
U40_aaaa(T261, T257, T262, X503, X504, part20_out_gaaa(T261, T262, X503, X504)) → part87_out_aaaa(T261, .(T257, T262), .(T257, X503), X504)
part87_in_aaaa(T283, .(T284, T285), X554, .(T284, X555)) → U41_aaaa(T283, T284, T285, X554, X555, le100_in_aa(T283, T284))
le100_in_aa(s(T302), s(T303)) → U21_aa(T302, T303, le100_in_aa(T302, T303))
le100_in_aa(0, s(T310)) → le100_out_aa(0, s(T310))
le100_in_aa(0, 0) → le100_out_aa(0, 0)
U21_aa(T302, T303, le100_out_aa(T302, T303)) → le100_out_aa(s(T302), s(T303))
U41_aaaa(T283, T284, T285, X554, X555, le100_out_aa(T283, T284)) → part87_out_aaaa(T283, .(T284, T285), X554, .(T284, X555))
part87_in_aaaa(T288, .(T284, T289), X554, .(T284, X555)) → U42_aaaa(T288, T284, T289, X554, X555, le100_in_aa(T288, T284))
U42_aaaa(T288, T284, T289, X554, X555, le100_out_aa(T288, T284)) → U43_aaaa(T288, T284, T289, X554, X555, part20_in_gaaa(T288, T289, X554, X555))
U43_aaaa(T288, T284, T289, X554, X555, part20_out_gaaa(T288, T289, X554, X555)) → part87_out_aaaa(T288, .(T284, T289), X554, .(T284, X555))
part87_in_aaaa(T316, [], [], []) → part87_out_aaaa(T316, [], [], [])
U22_aa(T230, T231, X452, part87_out_aaaa(T230, T231, X448, X449)) → qs80_out_aa(.(T230, T231), X452)
qs80_in_aa(.(T237, T231), X452) → U23_aa(T237, T231, X452, part87_in_aaaa(T237, T231, T235, T236))
U23_aa(T237, T231, X452, part87_out_aaaa(T237, T231, T235, T236)) → U24_aa(T237, T231, X452, qs80_in_aa(T235, X450))
qs80_in_aa(.(T325, T231), X452) → U27_aa(T325, T231, X452, part87_in_aaaa(T325, T231, T235, T236))
U27_aa(T325, T231, X452, part87_out_aaaa(T325, T231, T235, T236)) → U28_aa(T325, T231, X452, T236, qs80_in_aa(T235, T319))
qs80_in_aa([], []) → qs80_out_aa([], [])
U28_aa(T325, T231, X452, T236, qs80_out_aa(T235, T319)) → U29_aa(T325, T231, X452, T319, qs80_in_aa(T236, T324))
U29_aa(T325, T231, X452, T319, qs80_out_aa(T236, T324)) → U30_aa(T325, T231, X452, app121_in_aaaa(T319, T325, T324, X452))
app121_in_aaaa(.(T348, T349), T352, T353, .(T348, X657)) → U31_aaaa(T348, T349, T352, T353, X657, app121_in_aaaa(T349, T352, T353, X657))
app121_in_aaaa([], T362, T363, .(T362, T363)) → app121_out_aaaa([], T362, T363, .(T362, T363))
U31_aaaa(T348, T349, T352, T353, X657, app121_out_aaaa(T349, T352, T353, X657)) → app121_out_aaaa(.(T348, T349), T352, T353, .(T348, X657))
U30_aa(T325, T231, X452, app121_out_aaaa(T319, T325, T324, X452)) → qs80_out_aa(.(T325, T231), X452)
U24_aa(T237, T231, X452, qs80_out_aa(T235, X450)) → qs80_out_aa(.(T237, T231), X452)
U23_aa(T237, T231, X452, part87_out_aaaa(T237, T231, T235, T236)) → U25_aa(T237, T231, X452, T236, qs80_in_aa(T235, T319))
U25_aa(T237, T231, X452, T236, qs80_out_aa(T235, T319)) → U26_aa(T237, T231, X452, qs80_in_aa(T236, X451))
U26_aa(T237, T231, X452, qs80_out_aa(T236, X451)) → qs80_out_aa(.(T237, T231), X452)
U33_aaagg(T54, X10, T131, T31, T8, qs80_out_aa(T54, X10)) → p52_out_aaagg(T54, X10, T131, T31, T8)
p52_in_aaagg(T54, T217, T131, T31, T8) → U34_aaagg(T54, T217, T131, T31, T8, qs80_in_aa(T54, T217))
U34_aaagg(T54, T217, T131, T31, T8, qs80_out_aa(T54, T217)) → U35_aaagg(T54, T217, T131, T31, T8, app81_in_agag(T131, T31, T217, T8))
app81_in_agag(.(T389, T390), T391, T394, .(T389, T393)) → U32_agag(T389, T390, T391, T394, T393, app81_in_agag(T390, T391, T394, T393))
app81_in_agag([], T404, T405, .(T404, T405)) → app81_out_agag([], T404, T405, .(T404, T405))
U32_agag(T389, T390, T391, T394, T393, app81_out_agag(T390, T391, T394, T393)) → app81_out_agag(.(T389, T390), T391, T394, .(T389, T393))
U35_aaagg(T54, T217, T131, T31, T8, app81_out_agag(T131, T31, T217, T8)) → p52_out_aaagg(T54, T217, T131, T31, T8)
U50_ag(T31, T33, T32, T8, p52_out_aaagg(T54, X10, T131, T31, T8)) → qs1_out_ag(.(T31, .(T33, T32)), T8)
qs1_in_ag(.(T421, .(T422, T423)), T8) → U51_ag(T421, T422, T423, T8, le100_in_aa(T421, T422))
U51_ag(T421, T422, T423, T8, le100_out_aa(T421, T422)) → qs1_out_ag(.(T421, .(T422, T423)), T8)
qs1_in_ag(.(T426, .(T428, T427)), T8) → U52_ag(T426, T428, T427, T8, le100_in_aa(T426, T428))
U52_ag(T426, T428, T427, T8, le100_out_aa(T426, T428)) → U53_ag(T426, T428, T427, T8, part20_in_gaaa(T426, T427, X740, X741))
U53_ag(T426, T428, T427, T8, part20_out_gaaa(T426, T427, X740, X741)) → qs1_out_ag(.(T426, .(T428, T427)), T8)
qs1_in_ag(.(T426, .(T436, T427)), T8) → U54_ag(T426, T436, T427, T8, le100_in_aa(T426, T436))
U54_ag(T426, T436, T427, T8, le100_out_aa(T426, T436)) → U55_ag(T426, T436, T427, T8, part20_in_gaaa(T426, T427, T434, T435))
U55_ag(T426, T436, T427, T8, part20_out_gaaa(T426, T427, T434, T435)) → U56_ag(T426, T436, T427, T8, qs80_in_aa(T434, X9))
U56_ag(T426, T436, T427, T8, qs80_out_aa(T434, X9)) → qs1_out_ag(.(T426, .(T436, T427)), T8)
U55_ag(T426, T436, T427, T8, part20_out_gaaa(T426, T427, T434, T435)) → U57_ag(T426, T436, T427, T8, T435, qs80_in_aa(T434, T442))
U57_ag(T426, T436, T427, T8, T435, qs80_out_aa(T434, T442)) → U58_ag(T426, T436, T427, T8, p52_in_aaagg(.(T436, T435), X10, T442, T426, T8))
U58_ag(T426, T436, T427, T8, p52_out_aaagg(.(T436, T435), X10, T442, T426, T8)) → qs1_out_ag(.(T426, .(T436, T427)), T8)
qs1_in_ag(.(T452, []), T8) → U59_ag(T452, T8, qs155_in_a(X9))
qs155_in_a([]) → qs155_out_a([])
U59_ag(T452, T8, qs155_out_a(X9)) → qs1_out_ag(.(T452, []), T8)
qs1_in_ag(.(T452, []), T8) → U60_ag(T452, T8, qs155_in_a(T455))
U60_ag(T452, T8, qs155_out_a(T455)) → U61_ag(T452, T8, qs155_in_a(X10))
U61_ag(T452, T8, qs155_out_a(X10)) → qs1_out_ag(.(T452, []), T8)
U60_ag(T452, T8, qs155_out_a(T455)) → U62_ag(T452, T8, T455, qs155_in_a(T460))
U62_ag(T452, T8, T455, qs155_out_a(T460)) → U63_ag(T452, T8, app162_in_gagg(T455, T452, T460, T8))
app162_in_gagg(.(T486, T487), T491, T489, .(T486, T490)) → U36_gagg(T486, T487, T491, T489, T490, app162_in_gagg(T487, T491, T489, T490))
app162_in_gagg([], T501, T502, .(T501, T502)) → app162_out_gagg([], T501, T502, .(T501, T502))
U36_gagg(T486, T487, T491, T489, T490, app162_out_gagg(T487, T491, T489, T490)) → app162_out_gagg(.(T486, T487), T491, T489, .(T486, T490))
U63_ag(T452, T8, app162_out_gagg(T455, T452, T460, T8)) → qs1_out_ag(.(T452, []), T8)
qs1_in_ag([], []) → qs1_out_ag([], [])
PART20_IN_GAAA(T70, .(T73, T77), .(T73, X119), X120) → U3_GAAA(T70, T73, T77, X119, X120, gt10_in_ga(T70, T73))
U3_GAAA(T70, T73, T77, X119, X120, gt10_out_ga(T70, T73)) → PART20_IN_GAAA(T70, T77, X119, X120)
PART20_IN_GAAA(T95, .(T98, T102), X170, .(T98, X171)) → U6_GAAA(T95, T98, T102, X170, X171, le33_in_ga(T95, T98))
U6_GAAA(T95, T98, T102, X170, X171, le33_out_ga(T95, T98)) → PART20_IN_GAAA(T95, T102, X170, X171)
gt10_in_ga(s(T46), s(T47)) → U1_ga(T46, T47, gt10_in_ga(T46, T47))
gt10_in_ga(s(0), 0) → gt10_out_ga(s(0), 0)
le33_in_ga(s(T113), s(T115)) → U8_ga(T113, T115, le33_in_ga(T113, T115))
le33_in_ga(0, s(T122)) → le33_out_ga(0, s(T122))
le33_in_ga(0, 0) → le33_out_ga(0, 0)
U1_ga(T46, T47, gt10_out_ga(T46, T47)) → gt10_out_ga(s(T46), s(T47))
U8_ga(T113, T115, le33_out_ga(T113, T115)) → le33_out_ga(s(T113), s(T115))
PART20_IN_GAAA(T70) → U3_GAAA(T70, gt10_in_ga(T70))
U3_GAAA(T70, gt10_out_ga(T70, T73)) → PART20_IN_GAAA(T70)
PART20_IN_GAAA(T95) → U6_GAAA(T95, le33_in_ga(T95))
U6_GAAA(T95, le33_out_ga(T95)) → PART20_IN_GAAA(T95)
gt10_in_ga(s(T46)) → U1_ga(T46, gt10_in_ga(T46))
gt10_in_ga(s(0)) → gt10_out_ga(s(0), 0)
le33_in_ga(s(T113)) → U8_ga(T113, le33_in_ga(T113))
le33_in_ga(0) → le33_out_ga(0)
U1_ga(T46, gt10_out_ga(T46, T47)) → gt10_out_ga(s(T46), s(T47))
U8_ga(T113, le33_out_ga(T113)) → le33_out_ga(s(T113))
gt10_in_ga(x0)
le33_in_ga(x0)
U1_ga(x0, x1)
U8_ga(x0, x1)
PART20_IN_GAAA(s(x0)) → U3_GAAA(s(x0), U1_ga(x0, gt10_in_ga(x0)))
PART20_IN_GAAA(s(0)) → U3_GAAA(s(0), gt10_out_ga(s(0), 0))
U3_GAAA(T70, gt10_out_ga(T70, T73)) → PART20_IN_GAAA(T70)
PART20_IN_GAAA(T95) → U6_GAAA(T95, le33_in_ga(T95))
U6_GAAA(T95, le33_out_ga(T95)) → PART20_IN_GAAA(T95)
PART20_IN_GAAA(s(x0)) → U3_GAAA(s(x0), U1_ga(x0, gt10_in_ga(x0)))
PART20_IN_GAAA(s(0)) → U3_GAAA(s(0), gt10_out_ga(s(0), 0))
gt10_in_ga(s(T46)) → U1_ga(T46, gt10_in_ga(T46))
gt10_in_ga(s(0)) → gt10_out_ga(s(0), 0)
le33_in_ga(s(T113)) → U8_ga(T113, le33_in_ga(T113))
le33_in_ga(0) → le33_out_ga(0)
U1_ga(T46, gt10_out_ga(T46, T47)) → gt10_out_ga(s(T46), s(T47))
U8_ga(T113, le33_out_ga(T113)) → le33_out_ga(s(T113))
gt10_in_ga(x0)
le33_in_ga(x0)
U1_ga(x0, x1)
U8_ga(x0, x1)
PART20_IN_GAAA(s(x0)) → U6_GAAA(s(x0), U8_ga(x0, le33_in_ga(x0)))
PART20_IN_GAAA(0) → U6_GAAA(0, le33_out_ga(0))
U3_GAAA(T70, gt10_out_ga(T70, T73)) → PART20_IN_GAAA(T70)
U6_GAAA(T95, le33_out_ga(T95)) → PART20_IN_GAAA(T95)
PART20_IN_GAAA(s(x0)) → U3_GAAA(s(x0), U1_ga(x0, gt10_in_ga(x0)))
PART20_IN_GAAA(s(0)) → U3_GAAA(s(0), gt10_out_ga(s(0), 0))
PART20_IN_GAAA(s(x0)) → U6_GAAA(s(x0), U8_ga(x0, le33_in_ga(x0)))
PART20_IN_GAAA(0) → U6_GAAA(0, le33_out_ga(0))
gt10_in_ga(s(T46)) → U1_ga(T46, gt10_in_ga(T46))
gt10_in_ga(s(0)) → gt10_out_ga(s(0), 0)
le33_in_ga(s(T113)) → U8_ga(T113, le33_in_ga(T113))
le33_in_ga(0) → le33_out_ga(0)
U1_ga(T46, gt10_out_ga(T46, T47)) → gt10_out_ga(s(T46), s(T47))
U8_ga(T113, le33_out_ga(T113)) → le33_out_ga(s(T113))
gt10_in_ga(x0)
le33_in_ga(x0)
U1_ga(x0, x1)
U8_ga(x0, x1)
U3_GAAA(s(z0), gt10_out_ga(s(z0), x1)) → PART20_IN_GAAA(s(z0))
U3_GAAA(s(0), gt10_out_ga(s(0), 0)) → PART20_IN_GAAA(s(0))
U6_GAAA(T95, le33_out_ga(T95)) → PART20_IN_GAAA(T95)
PART20_IN_GAAA(s(x0)) → U3_GAAA(s(x0), U1_ga(x0, gt10_in_ga(x0)))
PART20_IN_GAAA(s(0)) → U3_GAAA(s(0), gt10_out_ga(s(0), 0))
PART20_IN_GAAA(s(x0)) → U6_GAAA(s(x0), U8_ga(x0, le33_in_ga(x0)))
PART20_IN_GAAA(0) → U6_GAAA(0, le33_out_ga(0))
U3_GAAA(s(z0), gt10_out_ga(s(z0), x1)) → PART20_IN_GAAA(s(z0))
U3_GAAA(s(0), gt10_out_ga(s(0), 0)) → PART20_IN_GAAA(s(0))
gt10_in_ga(s(T46)) → U1_ga(T46, gt10_in_ga(T46))
gt10_in_ga(s(0)) → gt10_out_ga(s(0), 0)
le33_in_ga(s(T113)) → U8_ga(T113, le33_in_ga(T113))
le33_in_ga(0) → le33_out_ga(0)
U1_ga(T46, gt10_out_ga(T46, T47)) → gt10_out_ga(s(T46), s(T47))
U8_ga(T113, le33_out_ga(T113)) → le33_out_ga(s(T113))
gt10_in_ga(x0)
le33_in_ga(x0)
U1_ga(x0, x1)
U8_ga(x0, x1)
U6_GAAA(s(z0), le33_out_ga(s(z0))) → PART20_IN_GAAA(s(z0))
U6_GAAA(0, le33_out_ga(0)) → PART20_IN_GAAA(0)
PART20_IN_GAAA(s(x0)) → U3_GAAA(s(x0), U1_ga(x0, gt10_in_ga(x0)))
PART20_IN_GAAA(s(0)) → U3_GAAA(s(0), gt10_out_ga(s(0), 0))
PART20_IN_GAAA(s(x0)) → U6_GAAA(s(x0), U8_ga(x0, le33_in_ga(x0)))
PART20_IN_GAAA(0) → U6_GAAA(0, le33_out_ga(0))
U3_GAAA(s(z0), gt10_out_ga(s(z0), x1)) → PART20_IN_GAAA(s(z0))
U3_GAAA(s(0), gt10_out_ga(s(0), 0)) → PART20_IN_GAAA(s(0))
U6_GAAA(s(z0), le33_out_ga(s(z0))) → PART20_IN_GAAA(s(z0))
U6_GAAA(0, le33_out_ga(0)) → PART20_IN_GAAA(0)
gt10_in_ga(s(T46)) → U1_ga(T46, gt10_in_ga(T46))
gt10_in_ga(s(0)) → gt10_out_ga(s(0), 0)
le33_in_ga(s(T113)) → U8_ga(T113, le33_in_ga(T113))
le33_in_ga(0) → le33_out_ga(0)
U1_ga(T46, gt10_out_ga(T46, T47)) → gt10_out_ga(s(T46), s(T47))
U8_ga(T113, le33_out_ga(T113)) → le33_out_ga(s(T113))
gt10_in_ga(x0)
le33_in_ga(x0)
U1_ga(x0, x1)
U8_ga(x0, x1)
U6_GAAA(0, le33_out_ga(0)) → PART20_IN_GAAA(0)
PART20_IN_GAAA(0) → U6_GAAA(0, le33_out_ga(0))
gt10_in_ga(s(T46)) → U1_ga(T46, gt10_in_ga(T46))
gt10_in_ga(s(0)) → gt10_out_ga(s(0), 0)
le33_in_ga(s(T113)) → U8_ga(T113, le33_in_ga(T113))
le33_in_ga(0) → le33_out_ga(0)
U1_ga(T46, gt10_out_ga(T46, T47)) → gt10_out_ga(s(T46), s(T47))
U8_ga(T113, le33_out_ga(T113)) → le33_out_ga(s(T113))
gt10_in_ga(x0)
le33_in_ga(x0)
U1_ga(x0, x1)
U8_ga(x0, x1)
U6_GAAA(0, le33_out_ga(0)) → PART20_IN_GAAA(0)
PART20_IN_GAAA(0) → U6_GAAA(0, le33_out_ga(0))
gt10_in_ga(x0)
le33_in_ga(x0)
U1_ga(x0, x1)
U8_ga(x0, x1)
gt10_in_ga(x0)
le33_in_ga(x0)
U1_ga(x0, x1)
U8_ga(x0, x1)
U6_GAAA(0, le33_out_ga(0)) → PART20_IN_GAAA(0)
PART20_IN_GAAA(0) → U6_GAAA(0, le33_out_ga(0))
U3_GAAA(s(z0), gt10_out_ga(s(z0), x1)) → PART20_IN_GAAA(s(z0))
PART20_IN_GAAA(s(x0)) → U3_GAAA(s(x0), U1_ga(x0, gt10_in_ga(x0)))
U3_GAAA(s(0), gt10_out_ga(s(0), 0)) → PART20_IN_GAAA(s(0))
PART20_IN_GAAA(s(0)) → U3_GAAA(s(0), gt10_out_ga(s(0), 0))
PART20_IN_GAAA(s(x0)) → U6_GAAA(s(x0), U8_ga(x0, le33_in_ga(x0)))
U6_GAAA(s(z0), le33_out_ga(s(z0))) → PART20_IN_GAAA(s(z0))
gt10_in_ga(s(T46)) → U1_ga(T46, gt10_in_ga(T46))
gt10_in_ga(s(0)) → gt10_out_ga(s(0), 0)
le33_in_ga(s(T113)) → U8_ga(T113, le33_in_ga(T113))
le33_in_ga(0) → le33_out_ga(0)
U1_ga(T46, gt10_out_ga(T46, T47)) → gt10_out_ga(s(T46), s(T47))
U8_ga(T113, le33_out_ga(T113)) → le33_out_ga(s(T113))
gt10_in_ga(x0)
le33_in_ga(x0)
U1_ga(x0, x1)
U8_ga(x0, x1)
GT10_IN_AA(s(T46), s(T47)) → GT10_IN_AA(T46, T47)
qs1_in_ag(.(T26, .(T27, T28)), T8) → U44_ag(T26, T27, T28, T8, gt10_in_aa(T26, T27))
gt10_in_aa(s(T46), s(T47)) → U1_aa(T46, T47, gt10_in_aa(T46, T47))
gt10_in_aa(s(0), 0) → gt10_out_aa(s(0), 0)
U1_aa(T46, T47, gt10_out_aa(T46, T47)) → gt10_out_aa(s(T46), s(T47))
U44_ag(T26, T27, T28, T8, gt10_out_aa(T26, T27)) → qs1_out_ag(.(T26, .(T27, T28)), T8)
qs1_in_ag(.(T31, .(T33, T32)), T8) → U45_ag(T31, T33, T32, T8, gt10_in_aa(T31, T33))
U45_ag(T31, T33, T32, T8, gt10_out_aa(T31, T33)) → U46_ag(T31, T33, T32, T8, part20_in_gaaa(T31, T32, X47, X48))
part20_in_gaaa(T70, .(T73, T74), .(T73, X119), X120) → U2_gaaa(T70, T73, T74, X119, X120, gt10_in_ga(T70, T73))
gt10_in_ga(s(T46), s(T47)) → U1_ga(T46, T47, gt10_in_ga(T46, T47))
gt10_in_ga(s(0), 0) → gt10_out_ga(s(0), 0)
U1_ga(T46, T47, gt10_out_ga(T46, T47)) → gt10_out_ga(s(T46), s(T47))
U2_gaaa(T70, T73, T74, X119, X120, gt10_out_ga(T70, T73)) → part20_out_gaaa(T70, .(T73, T74), .(T73, X119), X120)
part20_in_gaaa(T70, .(T73, T77), .(T73, X119), X120) → U3_gaaa(T70, T73, T77, X119, X120, gt10_in_ga(T70, T73))
U3_gaaa(T70, T73, T77, X119, X120, gt10_out_ga(T70, T73)) → U4_gaaa(T70, T73, T77, X119, X120, part20_in_gaaa(T70, T77, X119, X120))
part20_in_gaaa(T95, .(T98, T99), X170, .(T98, X171)) → U5_gaaa(T95, T98, T99, X170, X171, le33_in_ga(T95, T98))
le33_in_ga(s(T113), s(T115)) → U8_ga(T113, T115, le33_in_ga(T113, T115))
le33_in_ga(0, s(T122)) → le33_out_ga(0, s(T122))
le33_in_ga(0, 0) → le33_out_ga(0, 0)
U8_ga(T113, T115, le33_out_ga(T113, T115)) → le33_out_ga(s(T113), s(T115))
U5_gaaa(T95, T98, T99, X170, X171, le33_out_ga(T95, T98)) → part20_out_gaaa(T95, .(T98, T99), X170, .(T98, X171))
part20_in_gaaa(T95, .(T98, T102), X170, .(T98, X171)) → U6_gaaa(T95, T98, T102, X170, X171, le33_in_ga(T95, T98))
U6_gaaa(T95, T98, T102, X170, X171, le33_out_ga(T95, T98)) → U7_gaaa(T95, T98, T102, X170, X171, part20_in_gaaa(T95, T102, X170, X171))
part20_in_gaaa(T128, [], [], []) → part20_out_gaaa(T128, [], [], [])
U7_gaaa(T95, T98, T102, X170, X171, part20_out_gaaa(T95, T102, X170, X171)) → part20_out_gaaa(T95, .(T98, T102), X170, .(T98, X171))
U4_gaaa(T70, T73, T77, X119, X120, part20_out_gaaa(T70, T77, X119, X120)) → part20_out_gaaa(T70, .(T73, T77), .(T73, X119), X120)
U46_ag(T31, T33, T32, T8, part20_out_gaaa(T31, T32, X47, X48)) → qs1_out_ag(.(T31, .(T33, T32)), T8)
U45_ag(T31, T33, T32, T8, gt10_out_aa(T31, T33)) → U47_ag(T31, T33, T32, T8, part20_in_gaaa(T31, T32, T53, T54))
U47_ag(T31, T33, T32, T8, part20_out_gaaa(T31, T32, T53, T54)) → U48_ag(T31, T33, T32, T8, qs51_in_gaa(T33, T53, X9))
qs51_in_gaa(T148, T149, X273) → U37_gaa(T148, T149, X273, p56_in_gaaaaaa(T148, T149, X269, X270, X271, X272, X273))
p56_in_gaaaaaa(T148, T149, X269, X270, X271, X272, X273) → U9_gaaaaaa(T148, T149, X269, X270, X271, X272, X273, part20_in_gaaa(T148, T149, X269, X270))
U9_gaaaaaa(T148, T149, X269, X270, X271, X272, X273, part20_out_gaaa(T148, T149, X269, X270)) → p56_out_gaaaaaa(T148, T149, X269, X270, X271, X272, X273)
p56_in_gaaaaaa(T148, T149, T153, T154, X271, X272, X273) → U10_gaaaaaa(T148, T149, T153, T154, X271, X272, X273, part20_in_gaaa(T148, T149, T153, T154))
U10_gaaaaaa(T148, T149, T153, T154, X271, X272, X273, part20_out_gaaa(T148, T149, T153, T154)) → U11_gaaaaaa(T148, T149, T153, T154, X271, X272, X273, qs59_in_aa(T153, X271))
qs59_in_aa(.(T171, T172), X335) → U19_aa(T171, T172, X335, p56_in_aaaaaaa(T171, T172, X331, X332, X333, X334, X335))
p56_in_aaaaaaa(T148, T149, X269, X270, X271, X272, X273) → U9_aaaaaaa(T148, T149, X269, X270, X271, X272, X273, part20_in_aaaa(T148, T149, X269, X270))
part20_in_aaaa(T70, .(T73, T74), .(T73, X119), X120) → U2_aaaa(T70, T73, T74, X119, X120, gt10_in_aa(T70, T73))
U2_aaaa(T70, T73, T74, X119, X120, gt10_out_aa(T70, T73)) → part20_out_aaaa(T70, .(T73, T74), .(T73, X119), X120)
part20_in_aaaa(T70, .(T73, T77), .(T73, X119), X120) → U3_aaaa(T70, T73, T77, X119, X120, gt10_in_aa(T70, T73))
U3_aaaa(T70, T73, T77, X119, X120, gt10_out_aa(T70, T73)) → U4_aaaa(T70, T73, T77, X119, X120, part20_in_gaaa(T70, T77, X119, X120))
U4_aaaa(T70, T73, T77, X119, X120, part20_out_gaaa(T70, T77, X119, X120)) → part20_out_aaaa(T70, .(T73, T77), .(T73, X119), X120)
part20_in_aaaa(T95, .(T98, T99), X170, .(T98, X171)) → U5_aaaa(T95, T98, T99, X170, X171, le33_in_aa(T95, T98))
le33_in_aa(s(T113), s(T115)) → U8_aa(T113, T115, le33_in_aa(T113, T115))
le33_in_aa(0, s(T122)) → le33_out_aa(0, s(T122))
le33_in_aa(0, 0) → le33_out_aa(0, 0)
U8_aa(T113, T115, le33_out_aa(T113, T115)) → le33_out_aa(s(T113), s(T115))
U5_aaaa(T95, T98, T99, X170, X171, le33_out_aa(T95, T98)) → part20_out_aaaa(T95, .(T98, T99), X170, .(T98, X171))
part20_in_aaaa(T95, .(T98, T102), X170, .(T98, X171)) → U6_aaaa(T95, T98, T102, X170, X171, le33_in_aa(T95, T98))
U6_aaaa(T95, T98, T102, X170, X171, le33_out_aa(T95, T98)) → U7_aaaa(T95, T98, T102, X170, X171, part20_in_gaaa(T95, T102, X170, X171))
U7_aaaa(T95, T98, T102, X170, X171, part20_out_gaaa(T95, T102, X170, X171)) → part20_out_aaaa(T95, .(T98, T102), X170, .(T98, X171))
part20_in_aaaa(T128, [], [], []) → part20_out_aaaa(T128, [], [], [])
U9_aaaaaaa(T148, T149, X269, X270, X271, X272, X273, part20_out_aaaa(T148, T149, X269, X270)) → p56_out_aaaaaaa(T148, T149, X269, X270, X271, X272, X273)
p56_in_aaaaaaa(T148, T149, T153, T154, X271, X272, X273) → U10_aaaaaaa(T148, T149, T153, T154, X271, X272, X273, part20_in_aaaa(T148, T149, T153, T154))
U10_aaaaaaa(T148, T149, T153, T154, X271, X272, X273, part20_out_aaaa(T148, T149, T153, T154)) → U11_aaaaaaa(T148, T149, T153, T154, X271, X272, X273, qs59_in_aa(T153, X271))
qs59_in_aa([], []) → qs59_out_aa([], [])
U11_aaaaaaa(T148, T149, T153, T154, X271, X272, X273, qs59_out_aa(T153, X271)) → p56_out_aaaaaaa(T148, T149, T153, T154, X271, X272, X273)
p56_in_aaaaaaa(T148, T149, T153, T154, T160, X272, X273) → U12_aaaaaaa(T148, T149, T153, T154, T160, X272, X273, part20_in_aaaa(T148, T149, T153, T154))
U12_aaaaaaa(T148, T149, T153, T154, T160, X272, X273, part20_out_aaaa(T148, T149, T153, T154)) → U13_aaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_in_aa(T153, T160))
U13_aaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_out_aa(T153, T160)) → U14_aaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_in_aa(T154, X272))
U14_aaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_out_aa(T154, X272)) → p56_out_aaaaaaa(T148, T149, T153, T154, T160, X272, X273)
p56_in_aaaaaaa(T148, T149, T153, T154, T160, T178, X273) → U15_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, part20_in_aaaa(T148, T149, T153, T154))
U15_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, part20_out_aaaa(T148, T149, T153, T154)) → U16_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_in_aa(T153, T160))
U16_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_out_aa(T153, T160)) → U17_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_in_aa(T154, T178))
U17_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_out_aa(T154, T178)) → U18_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, app70_in_aaaa(T160, T148, T178, X273))
app70_in_aaaa(.(T201, T202), T203, T204, .(T201, X391)) → U20_aaaa(T201, T202, T203, T204, X391, app70_in_aaaa(T202, T203, T204, X391))
app70_in_aaaa([], T213, T214, .(T213, T214)) → app70_out_aaaa([], T213, T214, .(T213, T214))
U20_aaaa(T201, T202, T203, T204, X391, app70_out_aaaa(T202, T203, T204, X391)) → app70_out_aaaa(.(T201, T202), T203, T204, .(T201, X391))
U18_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, app70_out_aaaa(T160, T148, T178, X273)) → p56_out_aaaaaaa(T148, T149, T153, T154, T160, T178, X273)
U19_aa(T171, T172, X335, p56_out_aaaaaaa(T171, T172, X331, X332, X333, X334, X335)) → qs59_out_aa(.(T171, T172), X335)
U11_gaaaaaa(T148, T149, T153, T154, X271, X272, X273, qs59_out_aa(T153, X271)) → p56_out_gaaaaaa(T148, T149, T153, T154, X271, X272, X273)
p56_in_gaaaaaa(T148, T149, T153, T154, T160, X272, X273) → U12_gaaaaaa(T148, T149, T153, T154, T160, X272, X273, part20_in_gaaa(T148, T149, T153, T154))
U12_gaaaaaa(T148, T149, T153, T154, T160, X272, X273, part20_out_gaaa(T148, T149, T153, T154)) → U13_gaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_in_aa(T153, T160))
U13_gaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_out_aa(T153, T160)) → U14_gaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_in_aa(T154, X272))
U14_gaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_out_aa(T154, X272)) → p56_out_gaaaaaa(T148, T149, T153, T154, T160, X272, X273)
p56_in_gaaaaaa(T148, T149, T153, T154, T160, T178, X273) → U15_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, part20_in_gaaa(T148, T149, T153, T154))
U15_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, part20_out_gaaa(T148, T149, T153, T154)) → U16_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_in_aa(T153, T160))
U16_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_out_aa(T153, T160)) → U17_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_in_aa(T154, T178))
U17_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_out_aa(T154, T178)) → U18_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, app70_in_agaa(T160, T148, T178, X273))
app70_in_agaa(.(T201, T202), T203, T204, .(T201, X391)) → U20_agaa(T201, T202, T203, T204, X391, app70_in_agaa(T202, T203, T204, X391))
app70_in_agaa([], T213, T214, .(T213, T214)) → app70_out_agaa([], T213, T214, .(T213, T214))
U20_agaa(T201, T202, T203, T204, X391, app70_out_agaa(T202, T203, T204, X391)) → app70_out_agaa(.(T201, T202), T203, T204, .(T201, X391))
U18_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, app70_out_agaa(T160, T148, T178, X273)) → p56_out_gaaaaaa(T148, T149, T153, T154, T160, T178, X273)
U37_gaa(T148, T149, X273, p56_out_gaaaaaa(T148, T149, X269, X270, X271, X272, X273)) → qs51_out_gaa(T148, T149, X273)
U48_ag(T31, T33, T32, T8, qs51_out_gaa(T33, T53, X9)) → qs1_out_ag(.(T31, .(T33, T32)), T8)
U47_ag(T31, T33, T32, T8, part20_out_gaaa(T31, T32, T53, T54)) → U49_ag(T31, T33, T32, T8, T54, qs51_in_gaa(T33, T53, T131))
U49_ag(T31, T33, T32, T8, T54, qs51_out_gaa(T33, T53, T131)) → U50_ag(T31, T33, T32, T8, p52_in_aaagg(T54, X10, T131, T31, T8))
p52_in_aaagg(T54, X10, T131, T31, T8) → U33_aaagg(T54, X10, T131, T31, T8, qs80_in_aa(T54, X10))
qs80_in_aa(.(T230, T231), X452) → U22_aa(T230, T231, X452, part87_in_aaaa(T230, T231, X448, X449))
part87_in_aaaa(T256, .(T257, T258), .(T257, X503), X504) → U38_aaaa(T256, T257, T258, X503, X504, gt10_in_aa(T256, T257))
U38_aaaa(T256, T257, T258, X503, X504, gt10_out_aa(T256, T257)) → part87_out_aaaa(T256, .(T257, T258), .(T257, X503), X504)
part87_in_aaaa(T261, .(T257, T262), .(T257, X503), X504) → U39_aaaa(T261, T257, T262, X503, X504, gt10_in_aa(T261, T257))
U39_aaaa(T261, T257, T262, X503, X504, gt10_out_aa(T261, T257)) → U40_aaaa(T261, T257, T262, X503, X504, part20_in_gaaa(T261, T262, X503, X504))
U40_aaaa(T261, T257, T262, X503, X504, part20_out_gaaa(T261, T262, X503, X504)) → part87_out_aaaa(T261, .(T257, T262), .(T257, X503), X504)
part87_in_aaaa(T283, .(T284, T285), X554, .(T284, X555)) → U41_aaaa(T283, T284, T285, X554, X555, le100_in_aa(T283, T284))
le100_in_aa(s(T302), s(T303)) → U21_aa(T302, T303, le100_in_aa(T302, T303))
le100_in_aa(0, s(T310)) → le100_out_aa(0, s(T310))
le100_in_aa(0, 0) → le100_out_aa(0, 0)
U21_aa(T302, T303, le100_out_aa(T302, T303)) → le100_out_aa(s(T302), s(T303))
U41_aaaa(T283, T284, T285, X554, X555, le100_out_aa(T283, T284)) → part87_out_aaaa(T283, .(T284, T285), X554, .(T284, X555))
part87_in_aaaa(T288, .(T284, T289), X554, .(T284, X555)) → U42_aaaa(T288, T284, T289, X554, X555, le100_in_aa(T288, T284))
U42_aaaa(T288, T284, T289, X554, X555, le100_out_aa(T288, T284)) → U43_aaaa(T288, T284, T289, X554, X555, part20_in_gaaa(T288, T289, X554, X555))
U43_aaaa(T288, T284, T289, X554, X555, part20_out_gaaa(T288, T289, X554, X555)) → part87_out_aaaa(T288, .(T284, T289), X554, .(T284, X555))
part87_in_aaaa(T316, [], [], []) → part87_out_aaaa(T316, [], [], [])
U22_aa(T230, T231, X452, part87_out_aaaa(T230, T231, X448, X449)) → qs80_out_aa(.(T230, T231), X452)
qs80_in_aa(.(T237, T231), X452) → U23_aa(T237, T231, X452, part87_in_aaaa(T237, T231, T235, T236))
U23_aa(T237, T231, X452, part87_out_aaaa(T237, T231, T235, T236)) → U24_aa(T237, T231, X452, qs80_in_aa(T235, X450))
qs80_in_aa(.(T325, T231), X452) → U27_aa(T325, T231, X452, part87_in_aaaa(T325, T231, T235, T236))
U27_aa(T325, T231, X452, part87_out_aaaa(T325, T231, T235, T236)) → U28_aa(T325, T231, X452, T236, qs80_in_aa(T235, T319))
qs80_in_aa([], []) → qs80_out_aa([], [])
U28_aa(T325, T231, X452, T236, qs80_out_aa(T235, T319)) → U29_aa(T325, T231, X452, T319, qs80_in_aa(T236, T324))
U29_aa(T325, T231, X452, T319, qs80_out_aa(T236, T324)) → U30_aa(T325, T231, X452, app121_in_aaaa(T319, T325, T324, X452))
app121_in_aaaa(.(T348, T349), T352, T353, .(T348, X657)) → U31_aaaa(T348, T349, T352, T353, X657, app121_in_aaaa(T349, T352, T353, X657))
app121_in_aaaa([], T362, T363, .(T362, T363)) → app121_out_aaaa([], T362, T363, .(T362, T363))
U31_aaaa(T348, T349, T352, T353, X657, app121_out_aaaa(T349, T352, T353, X657)) → app121_out_aaaa(.(T348, T349), T352, T353, .(T348, X657))
U30_aa(T325, T231, X452, app121_out_aaaa(T319, T325, T324, X452)) → qs80_out_aa(.(T325, T231), X452)
U24_aa(T237, T231, X452, qs80_out_aa(T235, X450)) → qs80_out_aa(.(T237, T231), X452)
U23_aa(T237, T231, X452, part87_out_aaaa(T237, T231, T235, T236)) → U25_aa(T237, T231, X452, T236, qs80_in_aa(T235, T319))
U25_aa(T237, T231, X452, T236, qs80_out_aa(T235, T319)) → U26_aa(T237, T231, X452, qs80_in_aa(T236, X451))
U26_aa(T237, T231, X452, qs80_out_aa(T236, X451)) → qs80_out_aa(.(T237, T231), X452)
U33_aaagg(T54, X10, T131, T31, T8, qs80_out_aa(T54, X10)) → p52_out_aaagg(T54, X10, T131, T31, T8)
p52_in_aaagg(T54, T217, T131, T31, T8) → U34_aaagg(T54, T217, T131, T31, T8, qs80_in_aa(T54, T217))
U34_aaagg(T54, T217, T131, T31, T8, qs80_out_aa(T54, T217)) → U35_aaagg(T54, T217, T131, T31, T8, app81_in_agag(T131, T31, T217, T8))
app81_in_agag(.(T389, T390), T391, T394, .(T389, T393)) → U32_agag(T389, T390, T391, T394, T393, app81_in_agag(T390, T391, T394, T393))
app81_in_agag([], T404, T405, .(T404, T405)) → app81_out_agag([], T404, T405, .(T404, T405))
U32_agag(T389, T390, T391, T394, T393, app81_out_agag(T390, T391, T394, T393)) → app81_out_agag(.(T389, T390), T391, T394, .(T389, T393))
U35_aaagg(T54, T217, T131, T31, T8, app81_out_agag(T131, T31, T217, T8)) → p52_out_aaagg(T54, T217, T131, T31, T8)
U50_ag(T31, T33, T32, T8, p52_out_aaagg(T54, X10, T131, T31, T8)) → qs1_out_ag(.(T31, .(T33, T32)), T8)
qs1_in_ag(.(T421, .(T422, T423)), T8) → U51_ag(T421, T422, T423, T8, le100_in_aa(T421, T422))
U51_ag(T421, T422, T423, T8, le100_out_aa(T421, T422)) → qs1_out_ag(.(T421, .(T422, T423)), T8)
qs1_in_ag(.(T426, .(T428, T427)), T8) → U52_ag(T426, T428, T427, T8, le100_in_aa(T426, T428))
U52_ag(T426, T428, T427, T8, le100_out_aa(T426, T428)) → U53_ag(T426, T428, T427, T8, part20_in_gaaa(T426, T427, X740, X741))
U53_ag(T426, T428, T427, T8, part20_out_gaaa(T426, T427, X740, X741)) → qs1_out_ag(.(T426, .(T428, T427)), T8)
qs1_in_ag(.(T426, .(T436, T427)), T8) → U54_ag(T426, T436, T427, T8, le100_in_aa(T426, T436))
U54_ag(T426, T436, T427, T8, le100_out_aa(T426, T436)) → U55_ag(T426, T436, T427, T8, part20_in_gaaa(T426, T427, T434, T435))
U55_ag(T426, T436, T427, T8, part20_out_gaaa(T426, T427, T434, T435)) → U56_ag(T426, T436, T427, T8, qs80_in_aa(T434, X9))
U56_ag(T426, T436, T427, T8, qs80_out_aa(T434, X9)) → qs1_out_ag(.(T426, .(T436, T427)), T8)
U55_ag(T426, T436, T427, T8, part20_out_gaaa(T426, T427, T434, T435)) → U57_ag(T426, T436, T427, T8, T435, qs80_in_aa(T434, T442))
U57_ag(T426, T436, T427, T8, T435, qs80_out_aa(T434, T442)) → U58_ag(T426, T436, T427, T8, p52_in_aaagg(.(T436, T435), X10, T442, T426, T8))
U58_ag(T426, T436, T427, T8, p52_out_aaagg(.(T436, T435), X10, T442, T426, T8)) → qs1_out_ag(.(T426, .(T436, T427)), T8)
qs1_in_ag(.(T452, []), T8) → U59_ag(T452, T8, qs155_in_a(X9))
qs155_in_a([]) → qs155_out_a([])
U59_ag(T452, T8, qs155_out_a(X9)) → qs1_out_ag(.(T452, []), T8)
qs1_in_ag(.(T452, []), T8) → U60_ag(T452, T8, qs155_in_a(T455))
U60_ag(T452, T8, qs155_out_a(T455)) → U61_ag(T452, T8, qs155_in_a(X10))
U61_ag(T452, T8, qs155_out_a(X10)) → qs1_out_ag(.(T452, []), T8)
U60_ag(T452, T8, qs155_out_a(T455)) → U62_ag(T452, T8, T455, qs155_in_a(T460))
U62_ag(T452, T8, T455, qs155_out_a(T460)) → U63_ag(T452, T8, app162_in_gagg(T455, T452, T460, T8))
app162_in_gagg(.(T486, T487), T491, T489, .(T486, T490)) → U36_gagg(T486, T487, T491, T489, T490, app162_in_gagg(T487, T491, T489, T490))
app162_in_gagg([], T501, T502, .(T501, T502)) → app162_out_gagg([], T501, T502, .(T501, T502))
U36_gagg(T486, T487, T491, T489, T490, app162_out_gagg(T487, T491, T489, T490)) → app162_out_gagg(.(T486, T487), T491, T489, .(T486, T490))
U63_ag(T452, T8, app162_out_gagg(T455, T452, T460, T8)) → qs1_out_ag(.(T452, []), T8)
qs1_in_ag([], []) → qs1_out_ag([], [])
GT10_IN_AA(s(T46), s(T47)) → GT10_IN_AA(T46, T47)
GT10_IN_AA → GT10_IN_AA
QS80_IN_AA(.(T237, T231), X452) → U23_AA(T237, T231, X452, part87_in_aaaa(T237, T231, T235, T236))
U23_AA(T237, T231, X452, part87_out_aaaa(T237, T231, T235, T236)) → QS80_IN_AA(T235, X450)
QS80_IN_AA(.(T325, T231), X452) → U27_AA(T325, T231, X452, part87_in_aaaa(T325, T231, T235, T236))
U27_AA(T325, T231, X452, part87_out_aaaa(T325, T231, T235, T236)) → U28_AA(T325, T231, X452, T236, qs80_in_aa(T235, T319))
U28_AA(T325, T231, X452, T236, qs80_out_aa(T235, T319)) → QS80_IN_AA(T236, T324)
U27_AA(T325, T231, X452, part87_out_aaaa(T325, T231, T235, T236)) → QS80_IN_AA(T235, T319)
U23_AA(T237, T231, X452, part87_out_aaaa(T237, T231, T235, T236)) → U25_AA(T237, T231, X452, T236, qs80_in_aa(T235, T319))
U25_AA(T237, T231, X452, T236, qs80_out_aa(T235, T319)) → QS80_IN_AA(T236, X451)
qs1_in_ag(.(T26, .(T27, T28)), T8) → U44_ag(T26, T27, T28, T8, gt10_in_aa(T26, T27))
gt10_in_aa(s(T46), s(T47)) → U1_aa(T46, T47, gt10_in_aa(T46, T47))
gt10_in_aa(s(0), 0) → gt10_out_aa(s(0), 0)
U1_aa(T46, T47, gt10_out_aa(T46, T47)) → gt10_out_aa(s(T46), s(T47))
U44_ag(T26, T27, T28, T8, gt10_out_aa(T26, T27)) → qs1_out_ag(.(T26, .(T27, T28)), T8)
qs1_in_ag(.(T31, .(T33, T32)), T8) → U45_ag(T31, T33, T32, T8, gt10_in_aa(T31, T33))
U45_ag(T31, T33, T32, T8, gt10_out_aa(T31, T33)) → U46_ag(T31, T33, T32, T8, part20_in_gaaa(T31, T32, X47, X48))
part20_in_gaaa(T70, .(T73, T74), .(T73, X119), X120) → U2_gaaa(T70, T73, T74, X119, X120, gt10_in_ga(T70, T73))
gt10_in_ga(s(T46), s(T47)) → U1_ga(T46, T47, gt10_in_ga(T46, T47))
gt10_in_ga(s(0), 0) → gt10_out_ga(s(0), 0)
U1_ga(T46, T47, gt10_out_ga(T46, T47)) → gt10_out_ga(s(T46), s(T47))
U2_gaaa(T70, T73, T74, X119, X120, gt10_out_ga(T70, T73)) → part20_out_gaaa(T70, .(T73, T74), .(T73, X119), X120)
part20_in_gaaa(T70, .(T73, T77), .(T73, X119), X120) → U3_gaaa(T70, T73, T77, X119, X120, gt10_in_ga(T70, T73))
U3_gaaa(T70, T73, T77, X119, X120, gt10_out_ga(T70, T73)) → U4_gaaa(T70, T73, T77, X119, X120, part20_in_gaaa(T70, T77, X119, X120))
part20_in_gaaa(T95, .(T98, T99), X170, .(T98, X171)) → U5_gaaa(T95, T98, T99, X170, X171, le33_in_ga(T95, T98))
le33_in_ga(s(T113), s(T115)) → U8_ga(T113, T115, le33_in_ga(T113, T115))
le33_in_ga(0, s(T122)) → le33_out_ga(0, s(T122))
le33_in_ga(0, 0) → le33_out_ga(0, 0)
U8_ga(T113, T115, le33_out_ga(T113, T115)) → le33_out_ga(s(T113), s(T115))
U5_gaaa(T95, T98, T99, X170, X171, le33_out_ga(T95, T98)) → part20_out_gaaa(T95, .(T98, T99), X170, .(T98, X171))
part20_in_gaaa(T95, .(T98, T102), X170, .(T98, X171)) → U6_gaaa(T95, T98, T102, X170, X171, le33_in_ga(T95, T98))
U6_gaaa(T95, T98, T102, X170, X171, le33_out_ga(T95, T98)) → U7_gaaa(T95, T98, T102, X170, X171, part20_in_gaaa(T95, T102, X170, X171))
part20_in_gaaa(T128, [], [], []) → part20_out_gaaa(T128, [], [], [])
U7_gaaa(T95, T98, T102, X170, X171, part20_out_gaaa(T95, T102, X170, X171)) → part20_out_gaaa(T95, .(T98, T102), X170, .(T98, X171))
U4_gaaa(T70, T73, T77, X119, X120, part20_out_gaaa(T70, T77, X119, X120)) → part20_out_gaaa(T70, .(T73, T77), .(T73, X119), X120)
U46_ag(T31, T33, T32, T8, part20_out_gaaa(T31, T32, X47, X48)) → qs1_out_ag(.(T31, .(T33, T32)), T8)
U45_ag(T31, T33, T32, T8, gt10_out_aa(T31, T33)) → U47_ag(T31, T33, T32, T8, part20_in_gaaa(T31, T32, T53, T54))
U47_ag(T31, T33, T32, T8, part20_out_gaaa(T31, T32, T53, T54)) → U48_ag(T31, T33, T32, T8, qs51_in_gaa(T33, T53, X9))
qs51_in_gaa(T148, T149, X273) → U37_gaa(T148, T149, X273, p56_in_gaaaaaa(T148, T149, X269, X270, X271, X272, X273))
p56_in_gaaaaaa(T148, T149, X269, X270, X271, X272, X273) → U9_gaaaaaa(T148, T149, X269, X270, X271, X272, X273, part20_in_gaaa(T148, T149, X269, X270))
U9_gaaaaaa(T148, T149, X269, X270, X271, X272, X273, part20_out_gaaa(T148, T149, X269, X270)) → p56_out_gaaaaaa(T148, T149, X269, X270, X271, X272, X273)
p56_in_gaaaaaa(T148, T149, T153, T154, X271, X272, X273) → U10_gaaaaaa(T148, T149, T153, T154, X271, X272, X273, part20_in_gaaa(T148, T149, T153, T154))
U10_gaaaaaa(T148, T149, T153, T154, X271, X272, X273, part20_out_gaaa(T148, T149, T153, T154)) → U11_gaaaaaa(T148, T149, T153, T154, X271, X272, X273, qs59_in_aa(T153, X271))
qs59_in_aa(.(T171, T172), X335) → U19_aa(T171, T172, X335, p56_in_aaaaaaa(T171, T172, X331, X332, X333, X334, X335))
p56_in_aaaaaaa(T148, T149, X269, X270, X271, X272, X273) → U9_aaaaaaa(T148, T149, X269, X270, X271, X272, X273, part20_in_aaaa(T148, T149, X269, X270))
part20_in_aaaa(T70, .(T73, T74), .(T73, X119), X120) → U2_aaaa(T70, T73, T74, X119, X120, gt10_in_aa(T70, T73))
U2_aaaa(T70, T73, T74, X119, X120, gt10_out_aa(T70, T73)) → part20_out_aaaa(T70, .(T73, T74), .(T73, X119), X120)
part20_in_aaaa(T70, .(T73, T77), .(T73, X119), X120) → U3_aaaa(T70, T73, T77, X119, X120, gt10_in_aa(T70, T73))
U3_aaaa(T70, T73, T77, X119, X120, gt10_out_aa(T70, T73)) → U4_aaaa(T70, T73, T77, X119, X120, part20_in_gaaa(T70, T77, X119, X120))
U4_aaaa(T70, T73, T77, X119, X120, part20_out_gaaa(T70, T77, X119, X120)) → part20_out_aaaa(T70, .(T73, T77), .(T73, X119), X120)
part20_in_aaaa(T95, .(T98, T99), X170, .(T98, X171)) → U5_aaaa(T95, T98, T99, X170, X171, le33_in_aa(T95, T98))
le33_in_aa(s(T113), s(T115)) → U8_aa(T113, T115, le33_in_aa(T113, T115))
le33_in_aa(0, s(T122)) → le33_out_aa(0, s(T122))
le33_in_aa(0, 0) → le33_out_aa(0, 0)
U8_aa(T113, T115, le33_out_aa(T113, T115)) → le33_out_aa(s(T113), s(T115))
U5_aaaa(T95, T98, T99, X170, X171, le33_out_aa(T95, T98)) → part20_out_aaaa(T95, .(T98, T99), X170, .(T98, X171))
part20_in_aaaa(T95, .(T98, T102), X170, .(T98, X171)) → U6_aaaa(T95, T98, T102, X170, X171, le33_in_aa(T95, T98))
U6_aaaa(T95, T98, T102, X170, X171, le33_out_aa(T95, T98)) → U7_aaaa(T95, T98, T102, X170, X171, part20_in_gaaa(T95, T102, X170, X171))
U7_aaaa(T95, T98, T102, X170, X171, part20_out_gaaa(T95, T102, X170, X171)) → part20_out_aaaa(T95, .(T98, T102), X170, .(T98, X171))
part20_in_aaaa(T128, [], [], []) → part20_out_aaaa(T128, [], [], [])
U9_aaaaaaa(T148, T149, X269, X270, X271, X272, X273, part20_out_aaaa(T148, T149, X269, X270)) → p56_out_aaaaaaa(T148, T149, X269, X270, X271, X272, X273)
p56_in_aaaaaaa(T148, T149, T153, T154, X271, X272, X273) → U10_aaaaaaa(T148, T149, T153, T154, X271, X272, X273, part20_in_aaaa(T148, T149, T153, T154))
U10_aaaaaaa(T148, T149, T153, T154, X271, X272, X273, part20_out_aaaa(T148, T149, T153, T154)) → U11_aaaaaaa(T148, T149, T153, T154, X271, X272, X273, qs59_in_aa(T153, X271))
qs59_in_aa([], []) → qs59_out_aa([], [])
U11_aaaaaaa(T148, T149, T153, T154, X271, X272, X273, qs59_out_aa(T153, X271)) → p56_out_aaaaaaa(T148, T149, T153, T154, X271, X272, X273)
p56_in_aaaaaaa(T148, T149, T153, T154, T160, X272, X273) → U12_aaaaaaa(T148, T149, T153, T154, T160, X272, X273, part20_in_aaaa(T148, T149, T153, T154))
U12_aaaaaaa(T148, T149, T153, T154, T160, X272, X273, part20_out_aaaa(T148, T149, T153, T154)) → U13_aaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_in_aa(T153, T160))
U13_aaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_out_aa(T153, T160)) → U14_aaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_in_aa(T154, X272))
U14_aaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_out_aa(T154, X272)) → p56_out_aaaaaaa(T148, T149, T153, T154, T160, X272, X273)
p56_in_aaaaaaa(T148, T149, T153, T154, T160, T178, X273) → U15_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, part20_in_aaaa(T148, T149, T153, T154))
U15_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, part20_out_aaaa(T148, T149, T153, T154)) → U16_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_in_aa(T153, T160))
U16_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_out_aa(T153, T160)) → U17_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_in_aa(T154, T178))
U17_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_out_aa(T154, T178)) → U18_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, app70_in_aaaa(T160, T148, T178, X273))
app70_in_aaaa(.(T201, T202), T203, T204, .(T201, X391)) → U20_aaaa(T201, T202, T203, T204, X391, app70_in_aaaa(T202, T203, T204, X391))
app70_in_aaaa([], T213, T214, .(T213, T214)) → app70_out_aaaa([], T213, T214, .(T213, T214))
U20_aaaa(T201, T202, T203, T204, X391, app70_out_aaaa(T202, T203, T204, X391)) → app70_out_aaaa(.(T201, T202), T203, T204, .(T201, X391))
U18_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, app70_out_aaaa(T160, T148, T178, X273)) → p56_out_aaaaaaa(T148, T149, T153, T154, T160, T178, X273)
U19_aa(T171, T172, X335, p56_out_aaaaaaa(T171, T172, X331, X332, X333, X334, X335)) → qs59_out_aa(.(T171, T172), X335)
U11_gaaaaaa(T148, T149, T153, T154, X271, X272, X273, qs59_out_aa(T153, X271)) → p56_out_gaaaaaa(T148, T149, T153, T154, X271, X272, X273)
p56_in_gaaaaaa(T148, T149, T153, T154, T160, X272, X273) → U12_gaaaaaa(T148, T149, T153, T154, T160, X272, X273, part20_in_gaaa(T148, T149, T153, T154))
U12_gaaaaaa(T148, T149, T153, T154, T160, X272, X273, part20_out_gaaa(T148, T149, T153, T154)) → U13_gaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_in_aa(T153, T160))
U13_gaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_out_aa(T153, T160)) → U14_gaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_in_aa(T154, X272))
U14_gaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_out_aa(T154, X272)) → p56_out_gaaaaaa(T148, T149, T153, T154, T160, X272, X273)
p56_in_gaaaaaa(T148, T149, T153, T154, T160, T178, X273) → U15_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, part20_in_gaaa(T148, T149, T153, T154))
U15_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, part20_out_gaaa(T148, T149, T153, T154)) → U16_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_in_aa(T153, T160))
U16_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_out_aa(T153, T160)) → U17_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_in_aa(T154, T178))
U17_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_out_aa(T154, T178)) → U18_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, app70_in_agaa(T160, T148, T178, X273))
app70_in_agaa(.(T201, T202), T203, T204, .(T201, X391)) → U20_agaa(T201, T202, T203, T204, X391, app70_in_agaa(T202, T203, T204, X391))
app70_in_agaa([], T213, T214, .(T213, T214)) → app70_out_agaa([], T213, T214, .(T213, T214))
U20_agaa(T201, T202, T203, T204, X391, app70_out_agaa(T202, T203, T204, X391)) → app70_out_agaa(.(T201, T202), T203, T204, .(T201, X391))
U18_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, app70_out_agaa(T160, T148, T178, X273)) → p56_out_gaaaaaa(T148, T149, T153, T154, T160, T178, X273)
U37_gaa(T148, T149, X273, p56_out_gaaaaaa(T148, T149, X269, X270, X271, X272, X273)) → qs51_out_gaa(T148, T149, X273)
U48_ag(T31, T33, T32, T8, qs51_out_gaa(T33, T53, X9)) → qs1_out_ag(.(T31, .(T33, T32)), T8)
U47_ag(T31, T33, T32, T8, part20_out_gaaa(T31, T32, T53, T54)) → U49_ag(T31, T33, T32, T8, T54, qs51_in_gaa(T33, T53, T131))
U49_ag(T31, T33, T32, T8, T54, qs51_out_gaa(T33, T53, T131)) → U50_ag(T31, T33, T32, T8, p52_in_aaagg(T54, X10, T131, T31, T8))
p52_in_aaagg(T54, X10, T131, T31, T8) → U33_aaagg(T54, X10, T131, T31, T8, qs80_in_aa(T54, X10))
qs80_in_aa(.(T230, T231), X452) → U22_aa(T230, T231, X452, part87_in_aaaa(T230, T231, X448, X449))
part87_in_aaaa(T256, .(T257, T258), .(T257, X503), X504) → U38_aaaa(T256, T257, T258, X503, X504, gt10_in_aa(T256, T257))
U38_aaaa(T256, T257, T258, X503, X504, gt10_out_aa(T256, T257)) → part87_out_aaaa(T256, .(T257, T258), .(T257, X503), X504)
part87_in_aaaa(T261, .(T257, T262), .(T257, X503), X504) → U39_aaaa(T261, T257, T262, X503, X504, gt10_in_aa(T261, T257))
U39_aaaa(T261, T257, T262, X503, X504, gt10_out_aa(T261, T257)) → U40_aaaa(T261, T257, T262, X503, X504, part20_in_gaaa(T261, T262, X503, X504))
U40_aaaa(T261, T257, T262, X503, X504, part20_out_gaaa(T261, T262, X503, X504)) → part87_out_aaaa(T261, .(T257, T262), .(T257, X503), X504)
part87_in_aaaa(T283, .(T284, T285), X554, .(T284, X555)) → U41_aaaa(T283, T284, T285, X554, X555, le100_in_aa(T283, T284))
le100_in_aa(s(T302), s(T303)) → U21_aa(T302, T303, le100_in_aa(T302, T303))
le100_in_aa(0, s(T310)) → le100_out_aa(0, s(T310))
le100_in_aa(0, 0) → le100_out_aa(0, 0)
U21_aa(T302, T303, le100_out_aa(T302, T303)) → le100_out_aa(s(T302), s(T303))
U41_aaaa(T283, T284, T285, X554, X555, le100_out_aa(T283, T284)) → part87_out_aaaa(T283, .(T284, T285), X554, .(T284, X555))
part87_in_aaaa(T288, .(T284, T289), X554, .(T284, X555)) → U42_aaaa(T288, T284, T289, X554, X555, le100_in_aa(T288, T284))
U42_aaaa(T288, T284, T289, X554, X555, le100_out_aa(T288, T284)) → U43_aaaa(T288, T284, T289, X554, X555, part20_in_gaaa(T288, T289, X554, X555))
U43_aaaa(T288, T284, T289, X554, X555, part20_out_gaaa(T288, T289, X554, X555)) → part87_out_aaaa(T288, .(T284, T289), X554, .(T284, X555))
part87_in_aaaa(T316, [], [], []) → part87_out_aaaa(T316, [], [], [])
U22_aa(T230, T231, X452, part87_out_aaaa(T230, T231, X448, X449)) → qs80_out_aa(.(T230, T231), X452)
qs80_in_aa(.(T237, T231), X452) → U23_aa(T237, T231, X452, part87_in_aaaa(T237, T231, T235, T236))
U23_aa(T237, T231, X452, part87_out_aaaa(T237, T231, T235, T236)) → U24_aa(T237, T231, X452, qs80_in_aa(T235, X450))
qs80_in_aa(.(T325, T231), X452) → U27_aa(T325, T231, X452, part87_in_aaaa(T325, T231, T235, T236))
U27_aa(T325, T231, X452, part87_out_aaaa(T325, T231, T235, T236)) → U28_aa(T325, T231, X452, T236, qs80_in_aa(T235, T319))
qs80_in_aa([], []) → qs80_out_aa([], [])
U28_aa(T325, T231, X452, T236, qs80_out_aa(T235, T319)) → U29_aa(T325, T231, X452, T319, qs80_in_aa(T236, T324))
U29_aa(T325, T231, X452, T319, qs80_out_aa(T236, T324)) → U30_aa(T325, T231, X452, app121_in_aaaa(T319, T325, T324, X452))
app121_in_aaaa(.(T348, T349), T352, T353, .(T348, X657)) → U31_aaaa(T348, T349, T352, T353, X657, app121_in_aaaa(T349, T352, T353, X657))
app121_in_aaaa([], T362, T363, .(T362, T363)) → app121_out_aaaa([], T362, T363, .(T362, T363))
U31_aaaa(T348, T349, T352, T353, X657, app121_out_aaaa(T349, T352, T353, X657)) → app121_out_aaaa(.(T348, T349), T352, T353, .(T348, X657))
U30_aa(T325, T231, X452, app121_out_aaaa(T319, T325, T324, X452)) → qs80_out_aa(.(T325, T231), X452)
U24_aa(T237, T231, X452, qs80_out_aa(T235, X450)) → qs80_out_aa(.(T237, T231), X452)
U23_aa(T237, T231, X452, part87_out_aaaa(T237, T231, T235, T236)) → U25_aa(T237, T231, X452, T236, qs80_in_aa(T235, T319))
U25_aa(T237, T231, X452, T236, qs80_out_aa(T235, T319)) → U26_aa(T237, T231, X452, qs80_in_aa(T236, X451))
U26_aa(T237, T231, X452, qs80_out_aa(T236, X451)) → qs80_out_aa(.(T237, T231), X452)
U33_aaagg(T54, X10, T131, T31, T8, qs80_out_aa(T54, X10)) → p52_out_aaagg(T54, X10, T131, T31, T8)
p52_in_aaagg(T54, T217, T131, T31, T8) → U34_aaagg(T54, T217, T131, T31, T8, qs80_in_aa(T54, T217))
U34_aaagg(T54, T217, T131, T31, T8, qs80_out_aa(T54, T217)) → U35_aaagg(T54, T217, T131, T31, T8, app81_in_agag(T131, T31, T217, T8))
app81_in_agag(.(T389, T390), T391, T394, .(T389, T393)) → U32_agag(T389, T390, T391, T394, T393, app81_in_agag(T390, T391, T394, T393))
app81_in_agag([], T404, T405, .(T404, T405)) → app81_out_agag([], T404, T405, .(T404, T405))
U32_agag(T389, T390, T391, T394, T393, app81_out_agag(T390, T391, T394, T393)) → app81_out_agag(.(T389, T390), T391, T394, .(T389, T393))
U35_aaagg(T54, T217, T131, T31, T8, app81_out_agag(T131, T31, T217, T8)) → p52_out_aaagg(T54, T217, T131, T31, T8)
U50_ag(T31, T33, T32, T8, p52_out_aaagg(T54, X10, T131, T31, T8)) → qs1_out_ag(.(T31, .(T33, T32)), T8)
qs1_in_ag(.(T421, .(T422, T423)), T8) → U51_ag(T421, T422, T423, T8, le100_in_aa(T421, T422))
U51_ag(T421, T422, T423, T8, le100_out_aa(T421, T422)) → qs1_out_ag(.(T421, .(T422, T423)), T8)
qs1_in_ag(.(T426, .(T428, T427)), T8) → U52_ag(T426, T428, T427, T8, le100_in_aa(T426, T428))
U52_ag(T426, T428, T427, T8, le100_out_aa(T426, T428)) → U53_ag(T426, T428, T427, T8, part20_in_gaaa(T426, T427, X740, X741))
U53_ag(T426, T428, T427, T8, part20_out_gaaa(T426, T427, X740, X741)) → qs1_out_ag(.(T426, .(T428, T427)), T8)
qs1_in_ag(.(T426, .(T436, T427)), T8) → U54_ag(T426, T436, T427, T8, le100_in_aa(T426, T436))
U54_ag(T426, T436, T427, T8, le100_out_aa(T426, T436)) → U55_ag(T426, T436, T427, T8, part20_in_gaaa(T426, T427, T434, T435))
U55_ag(T426, T436, T427, T8, part20_out_gaaa(T426, T427, T434, T435)) → U56_ag(T426, T436, T427, T8, qs80_in_aa(T434, X9))
U56_ag(T426, T436, T427, T8, qs80_out_aa(T434, X9)) → qs1_out_ag(.(T426, .(T436, T427)), T8)
U55_ag(T426, T436, T427, T8, part20_out_gaaa(T426, T427, T434, T435)) → U57_ag(T426, T436, T427, T8, T435, qs80_in_aa(T434, T442))
U57_ag(T426, T436, T427, T8, T435, qs80_out_aa(T434, T442)) → U58_ag(T426, T436, T427, T8, p52_in_aaagg(.(T436, T435), X10, T442, T426, T8))
U58_ag(T426, T436, T427, T8, p52_out_aaagg(.(T436, T435), X10, T442, T426, T8)) → qs1_out_ag(.(T426, .(T436, T427)), T8)
qs1_in_ag(.(T452, []), T8) → U59_ag(T452, T8, qs155_in_a(X9))
qs155_in_a([]) → qs155_out_a([])
U59_ag(T452, T8, qs155_out_a(X9)) → qs1_out_ag(.(T452, []), T8)
qs1_in_ag(.(T452, []), T8) → U60_ag(T452, T8, qs155_in_a(T455))
U60_ag(T452, T8, qs155_out_a(T455)) → U61_ag(T452, T8, qs155_in_a(X10))
U61_ag(T452, T8, qs155_out_a(X10)) → qs1_out_ag(.(T452, []), T8)
U60_ag(T452, T8, qs155_out_a(T455)) → U62_ag(T452, T8, T455, qs155_in_a(T460))
U62_ag(T452, T8, T455, qs155_out_a(T460)) → U63_ag(T452, T8, app162_in_gagg(T455, T452, T460, T8))
app162_in_gagg(.(T486, T487), T491, T489, .(T486, T490)) → U36_gagg(T486, T487, T491, T489, T490, app162_in_gagg(T487, T491, T489, T490))
app162_in_gagg([], T501, T502, .(T501, T502)) → app162_out_gagg([], T501, T502, .(T501, T502))
U36_gagg(T486, T487, T491, T489, T490, app162_out_gagg(T487, T491, T489, T490)) → app162_out_gagg(.(T486, T487), T491, T489, .(T486, T490))
U63_ag(T452, T8, app162_out_gagg(T455, T452, T460, T8)) → qs1_out_ag(.(T452, []), T8)
qs1_in_ag([], []) → qs1_out_ag([], [])
QS80_IN_AA(.(T237, T231), X452) → U23_AA(T237, T231, X452, part87_in_aaaa(T237, T231, T235, T236))
U23_AA(T237, T231, X452, part87_out_aaaa(T237, T231, T235, T236)) → QS80_IN_AA(T235, X450)
QS80_IN_AA(.(T325, T231), X452) → U27_AA(T325, T231, X452, part87_in_aaaa(T325, T231, T235, T236))
U27_AA(T325, T231, X452, part87_out_aaaa(T325, T231, T235, T236)) → U28_AA(T325, T231, X452, T236, qs80_in_aa(T235, T319))
U28_AA(T325, T231, X452, T236, qs80_out_aa(T235, T319)) → QS80_IN_AA(T236, T324)
U27_AA(T325, T231, X452, part87_out_aaaa(T325, T231, T235, T236)) → QS80_IN_AA(T235, T319)
U23_AA(T237, T231, X452, part87_out_aaaa(T237, T231, T235, T236)) → U25_AA(T237, T231, X452, T236, qs80_in_aa(T235, T319))
U25_AA(T237, T231, X452, T236, qs80_out_aa(T235, T319)) → QS80_IN_AA(T236, X451)
part87_in_aaaa(T256, .(T257, T258), .(T257, X503), X504) → U38_aaaa(T256, T257, T258, X503, X504, gt10_in_aa(T256, T257))
part87_in_aaaa(T261, .(T257, T262), .(T257, X503), X504) → U39_aaaa(T261, T257, T262, X503, X504, gt10_in_aa(T261, T257))
part87_in_aaaa(T283, .(T284, T285), X554, .(T284, X555)) → U41_aaaa(T283, T284, T285, X554, X555, le100_in_aa(T283, T284))
part87_in_aaaa(T288, .(T284, T289), X554, .(T284, X555)) → U42_aaaa(T288, T284, T289, X554, X555, le100_in_aa(T288, T284))
part87_in_aaaa(T316, [], [], []) → part87_out_aaaa(T316, [], [], [])
qs80_in_aa(.(T230, T231), X452) → U22_aa(T230, T231, X452, part87_in_aaaa(T230, T231, X448, X449))
qs80_in_aa(.(T237, T231), X452) → U23_aa(T237, T231, X452, part87_in_aaaa(T237, T231, T235, T236))
qs80_in_aa(.(T325, T231), X452) → U27_aa(T325, T231, X452, part87_in_aaaa(T325, T231, T235, T236))
qs80_in_aa([], []) → qs80_out_aa([], [])
U38_aaaa(T256, T257, T258, X503, X504, gt10_out_aa(T256, T257)) → part87_out_aaaa(T256, .(T257, T258), .(T257, X503), X504)
U39_aaaa(T261, T257, T262, X503, X504, gt10_out_aa(T261, T257)) → U40_aaaa(T261, T257, T262, X503, X504, part20_in_gaaa(T261, T262, X503, X504))
U41_aaaa(T283, T284, T285, X554, X555, le100_out_aa(T283, T284)) → part87_out_aaaa(T283, .(T284, T285), X554, .(T284, X555))
U42_aaaa(T288, T284, T289, X554, X555, le100_out_aa(T288, T284)) → U43_aaaa(T288, T284, T289, X554, X555, part20_in_gaaa(T288, T289, X554, X555))
U22_aa(T230, T231, X452, part87_out_aaaa(T230, T231, X448, X449)) → qs80_out_aa(.(T230, T231), X452)
U23_aa(T237, T231, X452, part87_out_aaaa(T237, T231, T235, T236)) → U24_aa(T237, T231, X452, qs80_in_aa(T235, X450))
U23_aa(T237, T231, X452, part87_out_aaaa(T237, T231, T235, T236)) → U25_aa(T237, T231, X452, T236, qs80_in_aa(T235, T319))
U27_aa(T325, T231, X452, part87_out_aaaa(T325, T231, T235, T236)) → U28_aa(T325, T231, X452, T236, qs80_in_aa(T235, T319))
gt10_in_aa(s(T46), s(T47)) → U1_aa(T46, T47, gt10_in_aa(T46, T47))
gt10_in_aa(s(0), 0) → gt10_out_aa(s(0), 0)
U40_aaaa(T261, T257, T262, X503, X504, part20_out_gaaa(T261, T262, X503, X504)) → part87_out_aaaa(T261, .(T257, T262), .(T257, X503), X504)
le100_in_aa(s(T302), s(T303)) → U21_aa(T302, T303, le100_in_aa(T302, T303))
le100_in_aa(0, s(T310)) → le100_out_aa(0, s(T310))
le100_in_aa(0, 0) → le100_out_aa(0, 0)
U43_aaaa(T288, T284, T289, X554, X555, part20_out_gaaa(T288, T289, X554, X555)) → part87_out_aaaa(T288, .(T284, T289), X554, .(T284, X555))
U24_aa(T237, T231, X452, qs80_out_aa(T235, X450)) → qs80_out_aa(.(T237, T231), X452)
U25_aa(T237, T231, X452, T236, qs80_out_aa(T235, T319)) → U26_aa(T237, T231, X452, qs80_in_aa(T236, X451))
U28_aa(T325, T231, X452, T236, qs80_out_aa(T235, T319)) → U29_aa(T325, T231, X452, T319, qs80_in_aa(T236, T324))
U1_aa(T46, T47, gt10_out_aa(T46, T47)) → gt10_out_aa(s(T46), s(T47))
part20_in_gaaa(T70, .(T73, T74), .(T73, X119), X120) → U2_gaaa(T70, T73, T74, X119, X120, gt10_in_ga(T70, T73))
part20_in_gaaa(T70, .(T73, T77), .(T73, X119), X120) → U3_gaaa(T70, T73, T77, X119, X120, gt10_in_ga(T70, T73))
part20_in_gaaa(T95, .(T98, T99), X170, .(T98, X171)) → U5_gaaa(T95, T98, T99, X170, X171, le33_in_ga(T95, T98))
part20_in_gaaa(T95, .(T98, T102), X170, .(T98, X171)) → U6_gaaa(T95, T98, T102, X170, X171, le33_in_ga(T95, T98))
part20_in_gaaa(T128, [], [], []) → part20_out_gaaa(T128, [], [], [])
U21_aa(T302, T303, le100_out_aa(T302, T303)) → le100_out_aa(s(T302), s(T303))
U26_aa(T237, T231, X452, qs80_out_aa(T236, X451)) → qs80_out_aa(.(T237, T231), X452)
U29_aa(T325, T231, X452, T319, qs80_out_aa(T236, T324)) → U30_aa(T325, T231, X452, app121_in_aaaa(T319, T325, T324, X452))
U2_gaaa(T70, T73, T74, X119, X120, gt10_out_ga(T70, T73)) → part20_out_gaaa(T70, .(T73, T74), .(T73, X119), X120)
U3_gaaa(T70, T73, T77, X119, X120, gt10_out_ga(T70, T73)) → U4_gaaa(T70, T73, T77, X119, X120, part20_in_gaaa(T70, T77, X119, X120))
U5_gaaa(T95, T98, T99, X170, X171, le33_out_ga(T95, T98)) → part20_out_gaaa(T95, .(T98, T99), X170, .(T98, X171))
U6_gaaa(T95, T98, T102, X170, X171, le33_out_ga(T95, T98)) → U7_gaaa(T95, T98, T102, X170, X171, part20_in_gaaa(T95, T102, X170, X171))
U30_aa(T325, T231, X452, app121_out_aaaa(T319, T325, T324, X452)) → qs80_out_aa(.(T325, T231), X452)
gt10_in_ga(s(T46), s(T47)) → U1_ga(T46, T47, gt10_in_ga(T46, T47))
gt10_in_ga(s(0), 0) → gt10_out_ga(s(0), 0)
U4_gaaa(T70, T73, T77, X119, X120, part20_out_gaaa(T70, T77, X119, X120)) → part20_out_gaaa(T70, .(T73, T77), .(T73, X119), X120)
le33_in_ga(s(T113), s(T115)) → U8_ga(T113, T115, le33_in_ga(T113, T115))
le33_in_ga(0, s(T122)) → le33_out_ga(0, s(T122))
le33_in_ga(0, 0) → le33_out_ga(0, 0)
U7_gaaa(T95, T98, T102, X170, X171, part20_out_gaaa(T95, T102, X170, X171)) → part20_out_gaaa(T95, .(T98, T102), X170, .(T98, X171))
app121_in_aaaa(.(T348, T349), T352, T353, .(T348, X657)) → U31_aaaa(T348, T349, T352, T353, X657, app121_in_aaaa(T349, T352, T353, X657))
app121_in_aaaa([], T362, T363, .(T362, T363)) → app121_out_aaaa([], T362, T363, .(T362, T363))
U1_ga(T46, T47, gt10_out_ga(T46, T47)) → gt10_out_ga(s(T46), s(T47))
U8_ga(T113, T115, le33_out_ga(T113, T115)) → le33_out_ga(s(T113), s(T115))
U31_aaaa(T348, T349, T352, T353, X657, app121_out_aaaa(T349, T352, T353, X657)) → app121_out_aaaa(.(T348, T349), T352, T353, .(T348, X657))
QS80_IN_AA → U23_AA(part87_in_aaaa)
U23_AA(part87_out_aaaa) → QS80_IN_AA
QS80_IN_AA → U27_AA(part87_in_aaaa)
U27_AA(part87_out_aaaa) → U28_AA(qs80_in_aa)
U28_AA(qs80_out_aa) → QS80_IN_AA
U27_AA(part87_out_aaaa) → QS80_IN_AA
U23_AA(part87_out_aaaa) → U25_AA(qs80_in_aa)
U25_AA(qs80_out_aa) → QS80_IN_AA
part87_in_aaaa → U38_aaaa(gt10_in_aa)
part87_in_aaaa → U39_aaaa(gt10_in_aa)
part87_in_aaaa → U41_aaaa(le100_in_aa)
part87_in_aaaa → U42_aaaa(le100_in_aa)
part87_in_aaaa → part87_out_aaaa
qs80_in_aa → U22_aa(part87_in_aaaa)
qs80_in_aa → U23_aa(part87_in_aaaa)
qs80_in_aa → U27_aa(part87_in_aaaa)
qs80_in_aa → qs80_out_aa
U38_aaaa(gt10_out_aa(T256, T257)) → part87_out_aaaa
U39_aaaa(gt10_out_aa(T261, T257)) → U40_aaaa(part20_in_gaaa(T261))
U41_aaaa(le100_out_aa(T283)) → part87_out_aaaa
U42_aaaa(le100_out_aa(T288)) → U43_aaaa(part20_in_gaaa(T288))
U22_aa(part87_out_aaaa) → qs80_out_aa
U23_aa(part87_out_aaaa) → U24_aa(qs80_in_aa)
U23_aa(part87_out_aaaa) → U25_aa(qs80_in_aa)
U27_aa(part87_out_aaaa) → U28_aa(qs80_in_aa)
gt10_in_aa → U1_aa(gt10_in_aa)
gt10_in_aa → gt10_out_aa(s(0), 0)
U40_aaaa(part20_out_gaaa(T261)) → part87_out_aaaa
le100_in_aa → U21_aa(le100_in_aa)
le100_in_aa → le100_out_aa(0)
U43_aaaa(part20_out_gaaa(T288)) → part87_out_aaaa
U24_aa(qs80_out_aa) → qs80_out_aa
U25_aa(qs80_out_aa) → U26_aa(qs80_in_aa)
U28_aa(qs80_out_aa) → U29_aa(qs80_in_aa)
U1_aa(gt10_out_aa(T46, T47)) → gt10_out_aa(s(T46), s(T47))
part20_in_gaaa(T70) → U2_gaaa(T70, gt10_in_ga(T70))
part20_in_gaaa(T70) → U3_gaaa(T70, gt10_in_ga(T70))
part20_in_gaaa(T95) → U5_gaaa(T95, le33_in_ga(T95))
part20_in_gaaa(T95) → U6_gaaa(T95, le33_in_ga(T95))
part20_in_gaaa(T128) → part20_out_gaaa(T128)
U21_aa(le100_out_aa(T302)) → le100_out_aa(s(T302))
U26_aa(qs80_out_aa) → qs80_out_aa
U29_aa(qs80_out_aa) → U30_aa(app121_in_aaaa)
U2_gaaa(T70, gt10_out_ga(T70, T73)) → part20_out_gaaa(T70)
U3_gaaa(T70, gt10_out_ga(T70, T73)) → U4_gaaa(T70, part20_in_gaaa(T70))
U5_gaaa(T95, le33_out_ga(T95)) → part20_out_gaaa(T95)
U6_gaaa(T95, le33_out_ga(T95)) → U7_gaaa(T95, part20_in_gaaa(T95))
U30_aa(app121_out_aaaa) → qs80_out_aa
gt10_in_ga(s(T46)) → U1_ga(T46, gt10_in_ga(T46))
gt10_in_ga(s(0)) → gt10_out_ga(s(0), 0)
U4_gaaa(T70, part20_out_gaaa(T70)) → part20_out_gaaa(T70)
le33_in_ga(s(T113)) → U8_ga(T113, le33_in_ga(T113))
le33_in_ga(0) → le33_out_ga(0)
U7_gaaa(T95, part20_out_gaaa(T95)) → part20_out_gaaa(T95)
app121_in_aaaa → U31_aaaa(app121_in_aaaa)
app121_in_aaaa → app121_out_aaaa
U1_ga(T46, gt10_out_ga(T46, T47)) → gt10_out_ga(s(T46), s(T47))
U8_ga(T113, le33_out_ga(T113)) → le33_out_ga(s(T113))
U31_aaaa(app121_out_aaaa) → app121_out_aaaa
part87_in_aaaa
qs80_in_aa
U38_aaaa(x0)
U39_aaaa(x0)
U41_aaaa(x0)
U42_aaaa(x0)
U22_aa(x0)
U23_aa(x0)
U27_aa(x0)
gt10_in_aa
U40_aaaa(x0)
le100_in_aa
U43_aaaa(x0)
U24_aa(x0)
U25_aa(x0)
U28_aa(x0)
U1_aa(x0)
part20_in_gaaa(x0)
U21_aa(x0)
U26_aa(x0)
U29_aa(x0)
U2_gaaa(x0, x1)
U3_gaaa(x0, x1)
U5_gaaa(x0, x1)
U6_gaaa(x0, x1)
U30_aa(x0)
gt10_in_ga(x0)
U4_gaaa(x0, x1)
le33_in_ga(x0)
U7_gaaa(x0, x1)
app121_in_aaaa
U1_ga(x0, x1)
U8_ga(x0, x1)
U31_aaaa(x0)
QS80_IN_AA → U23_AA(U38_aaaa(gt10_in_aa))
QS80_IN_AA → U23_AA(U39_aaaa(gt10_in_aa))
QS80_IN_AA → U23_AA(U41_aaaa(le100_in_aa))
QS80_IN_AA → U23_AA(U42_aaaa(le100_in_aa))
QS80_IN_AA → U23_AA(part87_out_aaaa)
U23_AA(part87_out_aaaa) → QS80_IN_AA
QS80_IN_AA → U27_AA(part87_in_aaaa)
U27_AA(part87_out_aaaa) → U28_AA(qs80_in_aa)
U28_AA(qs80_out_aa) → QS80_IN_AA
U27_AA(part87_out_aaaa) → QS80_IN_AA
U23_AA(part87_out_aaaa) → U25_AA(qs80_in_aa)
U25_AA(qs80_out_aa) → QS80_IN_AA
QS80_IN_AA → U23_AA(U38_aaaa(gt10_in_aa))
QS80_IN_AA → U23_AA(U39_aaaa(gt10_in_aa))
QS80_IN_AA → U23_AA(U41_aaaa(le100_in_aa))
QS80_IN_AA → U23_AA(U42_aaaa(le100_in_aa))
QS80_IN_AA → U23_AA(part87_out_aaaa)
part87_in_aaaa → U38_aaaa(gt10_in_aa)
part87_in_aaaa → U39_aaaa(gt10_in_aa)
part87_in_aaaa → U41_aaaa(le100_in_aa)
part87_in_aaaa → U42_aaaa(le100_in_aa)
part87_in_aaaa → part87_out_aaaa
qs80_in_aa → U22_aa(part87_in_aaaa)
qs80_in_aa → U23_aa(part87_in_aaaa)
qs80_in_aa → U27_aa(part87_in_aaaa)
qs80_in_aa → qs80_out_aa
U38_aaaa(gt10_out_aa(T256, T257)) → part87_out_aaaa
U39_aaaa(gt10_out_aa(T261, T257)) → U40_aaaa(part20_in_gaaa(T261))
U41_aaaa(le100_out_aa(T283)) → part87_out_aaaa
U42_aaaa(le100_out_aa(T288)) → U43_aaaa(part20_in_gaaa(T288))
U22_aa(part87_out_aaaa) → qs80_out_aa
U23_aa(part87_out_aaaa) → U24_aa(qs80_in_aa)
U23_aa(part87_out_aaaa) → U25_aa(qs80_in_aa)
U27_aa(part87_out_aaaa) → U28_aa(qs80_in_aa)
gt10_in_aa → U1_aa(gt10_in_aa)
gt10_in_aa → gt10_out_aa(s(0), 0)
U40_aaaa(part20_out_gaaa(T261)) → part87_out_aaaa
le100_in_aa → U21_aa(le100_in_aa)
le100_in_aa → le100_out_aa(0)
U43_aaaa(part20_out_gaaa(T288)) → part87_out_aaaa
U24_aa(qs80_out_aa) → qs80_out_aa
U25_aa(qs80_out_aa) → U26_aa(qs80_in_aa)
U28_aa(qs80_out_aa) → U29_aa(qs80_in_aa)
U1_aa(gt10_out_aa(T46, T47)) → gt10_out_aa(s(T46), s(T47))
part20_in_gaaa(T70) → U2_gaaa(T70, gt10_in_ga(T70))
part20_in_gaaa(T70) → U3_gaaa(T70, gt10_in_ga(T70))
part20_in_gaaa(T95) → U5_gaaa(T95, le33_in_ga(T95))
part20_in_gaaa(T95) → U6_gaaa(T95, le33_in_ga(T95))
part20_in_gaaa(T128) → part20_out_gaaa(T128)
U21_aa(le100_out_aa(T302)) → le100_out_aa(s(T302))
U26_aa(qs80_out_aa) → qs80_out_aa
U29_aa(qs80_out_aa) → U30_aa(app121_in_aaaa)
U2_gaaa(T70, gt10_out_ga(T70, T73)) → part20_out_gaaa(T70)
U3_gaaa(T70, gt10_out_ga(T70, T73)) → U4_gaaa(T70, part20_in_gaaa(T70))
U5_gaaa(T95, le33_out_ga(T95)) → part20_out_gaaa(T95)
U6_gaaa(T95, le33_out_ga(T95)) → U7_gaaa(T95, part20_in_gaaa(T95))
U30_aa(app121_out_aaaa) → qs80_out_aa
gt10_in_ga(s(T46)) → U1_ga(T46, gt10_in_ga(T46))
gt10_in_ga(s(0)) → gt10_out_ga(s(0), 0)
U4_gaaa(T70, part20_out_gaaa(T70)) → part20_out_gaaa(T70)
le33_in_ga(s(T113)) → U8_ga(T113, le33_in_ga(T113))
le33_in_ga(0) → le33_out_ga(0)
U7_gaaa(T95, part20_out_gaaa(T95)) → part20_out_gaaa(T95)
app121_in_aaaa → U31_aaaa(app121_in_aaaa)
app121_in_aaaa → app121_out_aaaa
U1_ga(T46, gt10_out_ga(T46, T47)) → gt10_out_ga(s(T46), s(T47))
U8_ga(T113, le33_out_ga(T113)) → le33_out_ga(s(T113))
U31_aaaa(app121_out_aaaa) → app121_out_aaaa
part87_in_aaaa
qs80_in_aa
U38_aaaa(x0)
U39_aaaa(x0)
U41_aaaa(x0)
U42_aaaa(x0)
U22_aa(x0)
U23_aa(x0)
U27_aa(x0)
gt10_in_aa
U40_aaaa(x0)
le100_in_aa
U43_aaaa(x0)
U24_aa(x0)
U25_aa(x0)
U28_aa(x0)
U1_aa(x0)
part20_in_gaaa(x0)
U21_aa(x0)
U26_aa(x0)
U29_aa(x0)
U2_gaaa(x0, x1)
U3_gaaa(x0, x1)
U5_gaaa(x0, x1)
U6_gaaa(x0, x1)
U30_aa(x0)
gt10_in_ga(x0)
U4_gaaa(x0, x1)
le33_in_ga(x0)
U7_gaaa(x0, x1)
app121_in_aaaa
U1_ga(x0, x1)
U8_ga(x0, x1)
U31_aaaa(x0)
QS80_IN_AA → U27_AA(U38_aaaa(gt10_in_aa))
QS80_IN_AA → U27_AA(U39_aaaa(gt10_in_aa))
QS80_IN_AA → U27_AA(U41_aaaa(le100_in_aa))
QS80_IN_AA → U27_AA(U42_aaaa(le100_in_aa))
QS80_IN_AA → U27_AA(part87_out_aaaa)
U23_AA(part87_out_aaaa) → QS80_IN_AA
U27_AA(part87_out_aaaa) → U28_AA(qs80_in_aa)
U28_AA(qs80_out_aa) → QS80_IN_AA
U27_AA(part87_out_aaaa) → QS80_IN_AA
U23_AA(part87_out_aaaa) → U25_AA(qs80_in_aa)
U25_AA(qs80_out_aa) → QS80_IN_AA
QS80_IN_AA → U23_AA(U38_aaaa(gt10_in_aa))
QS80_IN_AA → U23_AA(U39_aaaa(gt10_in_aa))
QS80_IN_AA → U23_AA(U41_aaaa(le100_in_aa))
QS80_IN_AA → U23_AA(U42_aaaa(le100_in_aa))
QS80_IN_AA → U23_AA(part87_out_aaaa)
QS80_IN_AA → U27_AA(U38_aaaa(gt10_in_aa))
QS80_IN_AA → U27_AA(U39_aaaa(gt10_in_aa))
QS80_IN_AA → U27_AA(U41_aaaa(le100_in_aa))
QS80_IN_AA → U27_AA(U42_aaaa(le100_in_aa))
QS80_IN_AA → U27_AA(part87_out_aaaa)
part87_in_aaaa → U38_aaaa(gt10_in_aa)
part87_in_aaaa → U39_aaaa(gt10_in_aa)
part87_in_aaaa → U41_aaaa(le100_in_aa)
part87_in_aaaa → U42_aaaa(le100_in_aa)
part87_in_aaaa → part87_out_aaaa
qs80_in_aa → U22_aa(part87_in_aaaa)
qs80_in_aa → U23_aa(part87_in_aaaa)
qs80_in_aa → U27_aa(part87_in_aaaa)
qs80_in_aa → qs80_out_aa
U38_aaaa(gt10_out_aa(T256, T257)) → part87_out_aaaa
U39_aaaa(gt10_out_aa(T261, T257)) → U40_aaaa(part20_in_gaaa(T261))
U41_aaaa(le100_out_aa(T283)) → part87_out_aaaa
U42_aaaa(le100_out_aa(T288)) → U43_aaaa(part20_in_gaaa(T288))
U22_aa(part87_out_aaaa) → qs80_out_aa
U23_aa(part87_out_aaaa) → U24_aa(qs80_in_aa)
U23_aa(part87_out_aaaa) → U25_aa(qs80_in_aa)
U27_aa(part87_out_aaaa) → U28_aa(qs80_in_aa)
gt10_in_aa → U1_aa(gt10_in_aa)
gt10_in_aa → gt10_out_aa(s(0), 0)
U40_aaaa(part20_out_gaaa(T261)) → part87_out_aaaa
le100_in_aa → U21_aa(le100_in_aa)
le100_in_aa → le100_out_aa(0)
U43_aaaa(part20_out_gaaa(T288)) → part87_out_aaaa
U24_aa(qs80_out_aa) → qs80_out_aa
U25_aa(qs80_out_aa) → U26_aa(qs80_in_aa)
U28_aa(qs80_out_aa) → U29_aa(qs80_in_aa)
U1_aa(gt10_out_aa(T46, T47)) → gt10_out_aa(s(T46), s(T47))
part20_in_gaaa(T70) → U2_gaaa(T70, gt10_in_ga(T70))
part20_in_gaaa(T70) → U3_gaaa(T70, gt10_in_ga(T70))
part20_in_gaaa(T95) → U5_gaaa(T95, le33_in_ga(T95))
part20_in_gaaa(T95) → U6_gaaa(T95, le33_in_ga(T95))
part20_in_gaaa(T128) → part20_out_gaaa(T128)
U21_aa(le100_out_aa(T302)) → le100_out_aa(s(T302))
U26_aa(qs80_out_aa) → qs80_out_aa
U29_aa(qs80_out_aa) → U30_aa(app121_in_aaaa)
U2_gaaa(T70, gt10_out_ga(T70, T73)) → part20_out_gaaa(T70)
U3_gaaa(T70, gt10_out_ga(T70, T73)) → U4_gaaa(T70, part20_in_gaaa(T70))
U5_gaaa(T95, le33_out_ga(T95)) → part20_out_gaaa(T95)
U6_gaaa(T95, le33_out_ga(T95)) → U7_gaaa(T95, part20_in_gaaa(T95))
U30_aa(app121_out_aaaa) → qs80_out_aa
gt10_in_ga(s(T46)) → U1_ga(T46, gt10_in_ga(T46))
gt10_in_ga(s(0)) → gt10_out_ga(s(0), 0)
U4_gaaa(T70, part20_out_gaaa(T70)) → part20_out_gaaa(T70)
le33_in_ga(s(T113)) → U8_ga(T113, le33_in_ga(T113))
le33_in_ga(0) → le33_out_ga(0)
U7_gaaa(T95, part20_out_gaaa(T95)) → part20_out_gaaa(T95)
app121_in_aaaa → U31_aaaa(app121_in_aaaa)
app121_in_aaaa → app121_out_aaaa
U1_ga(T46, gt10_out_ga(T46, T47)) → gt10_out_ga(s(T46), s(T47))
U8_ga(T113, le33_out_ga(T113)) → le33_out_ga(s(T113))
U31_aaaa(app121_out_aaaa) → app121_out_aaaa
part87_in_aaaa
qs80_in_aa
U38_aaaa(x0)
U39_aaaa(x0)
U41_aaaa(x0)
U42_aaaa(x0)
U22_aa(x0)
U23_aa(x0)
U27_aa(x0)
gt10_in_aa
U40_aaaa(x0)
le100_in_aa
U43_aaaa(x0)
U24_aa(x0)
U25_aa(x0)
U28_aa(x0)
U1_aa(x0)
part20_in_gaaa(x0)
U21_aa(x0)
U26_aa(x0)
U29_aa(x0)
U2_gaaa(x0, x1)
U3_gaaa(x0, x1)
U5_gaaa(x0, x1)
U6_gaaa(x0, x1)
U30_aa(x0)
gt10_in_ga(x0)
U4_gaaa(x0, x1)
le33_in_ga(x0)
U7_gaaa(x0, x1)
app121_in_aaaa
U1_ga(x0, x1)
U8_ga(x0, x1)
U31_aaaa(x0)
U27_AA(part87_out_aaaa) → U28_AA(U22_aa(part87_in_aaaa))
U27_AA(part87_out_aaaa) → U28_AA(U23_aa(part87_in_aaaa))
U27_AA(part87_out_aaaa) → U28_AA(U27_aa(part87_in_aaaa))
U27_AA(part87_out_aaaa) → U28_AA(qs80_out_aa)
U23_AA(part87_out_aaaa) → QS80_IN_AA
U28_AA(qs80_out_aa) → QS80_IN_AA
U27_AA(part87_out_aaaa) → QS80_IN_AA
U23_AA(part87_out_aaaa) → U25_AA(qs80_in_aa)
U25_AA(qs80_out_aa) → QS80_IN_AA
QS80_IN_AA → U23_AA(U38_aaaa(gt10_in_aa))
QS80_IN_AA → U23_AA(U39_aaaa(gt10_in_aa))
QS80_IN_AA → U23_AA(U41_aaaa(le100_in_aa))
QS80_IN_AA → U23_AA(U42_aaaa(le100_in_aa))
QS80_IN_AA → U23_AA(part87_out_aaaa)
QS80_IN_AA → U27_AA(U38_aaaa(gt10_in_aa))
QS80_IN_AA → U27_AA(U39_aaaa(gt10_in_aa))
QS80_IN_AA → U27_AA(U41_aaaa(le100_in_aa))
QS80_IN_AA → U27_AA(U42_aaaa(le100_in_aa))
QS80_IN_AA → U27_AA(part87_out_aaaa)
U27_AA(part87_out_aaaa) → U28_AA(U22_aa(part87_in_aaaa))
U27_AA(part87_out_aaaa) → U28_AA(U23_aa(part87_in_aaaa))
U27_AA(part87_out_aaaa) → U28_AA(U27_aa(part87_in_aaaa))
U27_AA(part87_out_aaaa) → U28_AA(qs80_out_aa)
part87_in_aaaa → U38_aaaa(gt10_in_aa)
part87_in_aaaa → U39_aaaa(gt10_in_aa)
part87_in_aaaa → U41_aaaa(le100_in_aa)
part87_in_aaaa → U42_aaaa(le100_in_aa)
part87_in_aaaa → part87_out_aaaa
qs80_in_aa → U22_aa(part87_in_aaaa)
qs80_in_aa → U23_aa(part87_in_aaaa)
qs80_in_aa → U27_aa(part87_in_aaaa)
qs80_in_aa → qs80_out_aa
U38_aaaa(gt10_out_aa(T256, T257)) → part87_out_aaaa
U39_aaaa(gt10_out_aa(T261, T257)) → U40_aaaa(part20_in_gaaa(T261))
U41_aaaa(le100_out_aa(T283)) → part87_out_aaaa
U42_aaaa(le100_out_aa(T288)) → U43_aaaa(part20_in_gaaa(T288))
U22_aa(part87_out_aaaa) → qs80_out_aa
U23_aa(part87_out_aaaa) → U24_aa(qs80_in_aa)
U23_aa(part87_out_aaaa) → U25_aa(qs80_in_aa)
U27_aa(part87_out_aaaa) → U28_aa(qs80_in_aa)
gt10_in_aa → U1_aa(gt10_in_aa)
gt10_in_aa → gt10_out_aa(s(0), 0)
U40_aaaa(part20_out_gaaa(T261)) → part87_out_aaaa
le100_in_aa → U21_aa(le100_in_aa)
le100_in_aa → le100_out_aa(0)
U43_aaaa(part20_out_gaaa(T288)) → part87_out_aaaa
U24_aa(qs80_out_aa) → qs80_out_aa
U25_aa(qs80_out_aa) → U26_aa(qs80_in_aa)
U28_aa(qs80_out_aa) → U29_aa(qs80_in_aa)
U1_aa(gt10_out_aa(T46, T47)) → gt10_out_aa(s(T46), s(T47))
part20_in_gaaa(T70) → U2_gaaa(T70, gt10_in_ga(T70))
part20_in_gaaa(T70) → U3_gaaa(T70, gt10_in_ga(T70))
part20_in_gaaa(T95) → U5_gaaa(T95, le33_in_ga(T95))
part20_in_gaaa(T95) → U6_gaaa(T95, le33_in_ga(T95))
part20_in_gaaa(T128) → part20_out_gaaa(T128)
U21_aa(le100_out_aa(T302)) → le100_out_aa(s(T302))
U26_aa(qs80_out_aa) → qs80_out_aa
U29_aa(qs80_out_aa) → U30_aa(app121_in_aaaa)
U2_gaaa(T70, gt10_out_ga(T70, T73)) → part20_out_gaaa(T70)
U3_gaaa(T70, gt10_out_ga(T70, T73)) → U4_gaaa(T70, part20_in_gaaa(T70))
U5_gaaa(T95, le33_out_ga(T95)) → part20_out_gaaa(T95)
U6_gaaa(T95, le33_out_ga(T95)) → U7_gaaa(T95, part20_in_gaaa(T95))
U30_aa(app121_out_aaaa) → qs80_out_aa
gt10_in_ga(s(T46)) → U1_ga(T46, gt10_in_ga(T46))
gt10_in_ga(s(0)) → gt10_out_ga(s(0), 0)
U4_gaaa(T70, part20_out_gaaa(T70)) → part20_out_gaaa(T70)
le33_in_ga(s(T113)) → U8_ga(T113, le33_in_ga(T113))
le33_in_ga(0) → le33_out_ga(0)
U7_gaaa(T95, part20_out_gaaa(T95)) → part20_out_gaaa(T95)
app121_in_aaaa → U31_aaaa(app121_in_aaaa)
app121_in_aaaa → app121_out_aaaa
U1_ga(T46, gt10_out_ga(T46, T47)) → gt10_out_ga(s(T46), s(T47))
U8_ga(T113, le33_out_ga(T113)) → le33_out_ga(s(T113))
U31_aaaa(app121_out_aaaa) → app121_out_aaaa
part87_in_aaaa
qs80_in_aa
U38_aaaa(x0)
U39_aaaa(x0)
U41_aaaa(x0)
U42_aaaa(x0)
U22_aa(x0)
U23_aa(x0)
U27_aa(x0)
gt10_in_aa
U40_aaaa(x0)
le100_in_aa
U43_aaaa(x0)
U24_aa(x0)
U25_aa(x0)
U28_aa(x0)
U1_aa(x0)
part20_in_gaaa(x0)
U21_aa(x0)
U26_aa(x0)
U29_aa(x0)
U2_gaaa(x0, x1)
U3_gaaa(x0, x1)
U5_gaaa(x0, x1)
U6_gaaa(x0, x1)
U30_aa(x0)
gt10_in_ga(x0)
U4_gaaa(x0, x1)
le33_in_ga(x0)
U7_gaaa(x0, x1)
app121_in_aaaa
U1_ga(x0, x1)
U8_ga(x0, x1)
U31_aaaa(x0)
U23_AA(part87_out_aaaa) → U25_AA(U22_aa(part87_in_aaaa))
U23_AA(part87_out_aaaa) → U25_AA(U23_aa(part87_in_aaaa))
U23_AA(part87_out_aaaa) → U25_AA(U27_aa(part87_in_aaaa))
U23_AA(part87_out_aaaa) → U25_AA(qs80_out_aa)
U23_AA(part87_out_aaaa) → QS80_IN_AA
U28_AA(qs80_out_aa) → QS80_IN_AA
U27_AA(part87_out_aaaa) → QS80_IN_AA
U25_AA(qs80_out_aa) → QS80_IN_AA
QS80_IN_AA → U23_AA(U38_aaaa(gt10_in_aa))
QS80_IN_AA → U23_AA(U39_aaaa(gt10_in_aa))
QS80_IN_AA → U23_AA(U41_aaaa(le100_in_aa))
QS80_IN_AA → U23_AA(U42_aaaa(le100_in_aa))
QS80_IN_AA → U23_AA(part87_out_aaaa)
QS80_IN_AA → U27_AA(U38_aaaa(gt10_in_aa))
QS80_IN_AA → U27_AA(U39_aaaa(gt10_in_aa))
QS80_IN_AA → U27_AA(U41_aaaa(le100_in_aa))
QS80_IN_AA → U27_AA(U42_aaaa(le100_in_aa))
QS80_IN_AA → U27_AA(part87_out_aaaa)
U27_AA(part87_out_aaaa) → U28_AA(U22_aa(part87_in_aaaa))
U27_AA(part87_out_aaaa) → U28_AA(U23_aa(part87_in_aaaa))
U27_AA(part87_out_aaaa) → U28_AA(U27_aa(part87_in_aaaa))
U27_AA(part87_out_aaaa) → U28_AA(qs80_out_aa)
U23_AA(part87_out_aaaa) → U25_AA(U22_aa(part87_in_aaaa))
U23_AA(part87_out_aaaa) → U25_AA(U23_aa(part87_in_aaaa))
U23_AA(part87_out_aaaa) → U25_AA(U27_aa(part87_in_aaaa))
U23_AA(part87_out_aaaa) → U25_AA(qs80_out_aa)
part87_in_aaaa → U38_aaaa(gt10_in_aa)
part87_in_aaaa → U39_aaaa(gt10_in_aa)
part87_in_aaaa → U41_aaaa(le100_in_aa)
part87_in_aaaa → U42_aaaa(le100_in_aa)
part87_in_aaaa → part87_out_aaaa
qs80_in_aa → U22_aa(part87_in_aaaa)
qs80_in_aa → U23_aa(part87_in_aaaa)
qs80_in_aa → U27_aa(part87_in_aaaa)
qs80_in_aa → qs80_out_aa
U38_aaaa(gt10_out_aa(T256, T257)) → part87_out_aaaa
U39_aaaa(gt10_out_aa(T261, T257)) → U40_aaaa(part20_in_gaaa(T261))
U41_aaaa(le100_out_aa(T283)) → part87_out_aaaa
U42_aaaa(le100_out_aa(T288)) → U43_aaaa(part20_in_gaaa(T288))
U22_aa(part87_out_aaaa) → qs80_out_aa
U23_aa(part87_out_aaaa) → U24_aa(qs80_in_aa)
U23_aa(part87_out_aaaa) → U25_aa(qs80_in_aa)
U27_aa(part87_out_aaaa) → U28_aa(qs80_in_aa)
gt10_in_aa → U1_aa(gt10_in_aa)
gt10_in_aa → gt10_out_aa(s(0), 0)
U40_aaaa(part20_out_gaaa(T261)) → part87_out_aaaa
le100_in_aa → U21_aa(le100_in_aa)
le100_in_aa → le100_out_aa(0)
U43_aaaa(part20_out_gaaa(T288)) → part87_out_aaaa
U24_aa(qs80_out_aa) → qs80_out_aa
U25_aa(qs80_out_aa) → U26_aa(qs80_in_aa)
U28_aa(qs80_out_aa) → U29_aa(qs80_in_aa)
U1_aa(gt10_out_aa(T46, T47)) → gt10_out_aa(s(T46), s(T47))
part20_in_gaaa(T70) → U2_gaaa(T70, gt10_in_ga(T70))
part20_in_gaaa(T70) → U3_gaaa(T70, gt10_in_ga(T70))
part20_in_gaaa(T95) → U5_gaaa(T95, le33_in_ga(T95))
part20_in_gaaa(T95) → U6_gaaa(T95, le33_in_ga(T95))
part20_in_gaaa(T128) → part20_out_gaaa(T128)
U21_aa(le100_out_aa(T302)) → le100_out_aa(s(T302))
U26_aa(qs80_out_aa) → qs80_out_aa
U29_aa(qs80_out_aa) → U30_aa(app121_in_aaaa)
U2_gaaa(T70, gt10_out_ga(T70, T73)) → part20_out_gaaa(T70)
U3_gaaa(T70, gt10_out_ga(T70, T73)) → U4_gaaa(T70, part20_in_gaaa(T70))
U5_gaaa(T95, le33_out_ga(T95)) → part20_out_gaaa(T95)
U6_gaaa(T95, le33_out_ga(T95)) → U7_gaaa(T95, part20_in_gaaa(T95))
U30_aa(app121_out_aaaa) → qs80_out_aa
gt10_in_ga(s(T46)) → U1_ga(T46, gt10_in_ga(T46))
gt10_in_ga(s(0)) → gt10_out_ga(s(0), 0)
U4_gaaa(T70, part20_out_gaaa(T70)) → part20_out_gaaa(T70)
le33_in_ga(s(T113)) → U8_ga(T113, le33_in_ga(T113))
le33_in_ga(0) → le33_out_ga(0)
U7_gaaa(T95, part20_out_gaaa(T95)) → part20_out_gaaa(T95)
app121_in_aaaa → U31_aaaa(app121_in_aaaa)
app121_in_aaaa → app121_out_aaaa
U1_ga(T46, gt10_out_ga(T46, T47)) → gt10_out_ga(s(T46), s(T47))
U8_ga(T113, le33_out_ga(T113)) → le33_out_ga(s(T113))
U31_aaaa(app121_out_aaaa) → app121_out_aaaa
part87_in_aaaa
qs80_in_aa
U38_aaaa(x0)
U39_aaaa(x0)
U41_aaaa(x0)
U42_aaaa(x0)
U22_aa(x0)
U23_aa(x0)
U27_aa(x0)
gt10_in_aa
U40_aaaa(x0)
le100_in_aa
U43_aaaa(x0)
U24_aa(x0)
U25_aa(x0)
U28_aa(x0)
U1_aa(x0)
part20_in_gaaa(x0)
U21_aa(x0)
U26_aa(x0)
U29_aa(x0)
U2_gaaa(x0, x1)
U3_gaaa(x0, x1)
U5_gaaa(x0, x1)
U6_gaaa(x0, x1)
U30_aa(x0)
gt10_in_ga(x0)
U4_gaaa(x0, x1)
le33_in_ga(x0)
U7_gaaa(x0, x1)
app121_in_aaaa
U1_ga(x0, x1)
U8_ga(x0, x1)
U31_aaaa(x0)
P56_IN_AAAAAAA(T148, T149, T153, T154, X271, X272, X273) → U10_AAAAAAA(T148, T149, T153, T154, X271, X272, X273, part20_in_aaaa(T148, T149, T153, T154))
U10_AAAAAAA(T148, T149, T153, T154, X271, X272, X273, part20_out_aaaa(T148, T149, T153, T154)) → QS59_IN_AA(T153, X271)
QS59_IN_AA(.(T171, T172), X335) → P56_IN_AAAAAAA(T171, T172, X331, X332, X333, X334, X335)
P56_IN_AAAAAAA(T148, T149, T153, T154, T160, X272, X273) → U12_AAAAAAA(T148, T149, T153, T154, T160, X272, X273, part20_in_aaaa(T148, T149, T153, T154))
U12_AAAAAAA(T148, T149, T153, T154, T160, X272, X273, part20_out_aaaa(T148, T149, T153, T154)) → U13_AAAAAAA(T148, T149, T153, T154, T160, X272, X273, qs59_in_aa(T153, T160))
U13_AAAAAAA(T148, T149, T153, T154, T160, X272, X273, qs59_out_aa(T153, T160)) → QS59_IN_AA(T154, X272)
U12_AAAAAAA(T148, T149, T153, T154, T160, X272, X273, part20_out_aaaa(T148, T149, T153, T154)) → QS59_IN_AA(T153, T160)
P56_IN_AAAAAAA(T148, T149, T153, T154, T160, T178, X273) → U15_AAAAAAA(T148, T149, T153, T154, T160, T178, X273, part20_in_aaaa(T148, T149, T153, T154))
U15_AAAAAAA(T148, T149, T153, T154, T160, T178, X273, part20_out_aaaa(T148, T149, T153, T154)) → U16_AAAAAAA(T148, T149, T153, T154, T160, T178, X273, qs59_in_aa(T153, T160))
U16_AAAAAAA(T148, T149, T153, T154, T160, T178, X273, qs59_out_aa(T153, T160)) → QS59_IN_AA(T154, T178)
U15_AAAAAAA(T148, T149, T153, T154, T160, T178, X273, part20_out_aaaa(T148, T149, T153, T154)) → QS59_IN_AA(T153, T160)
qs1_in_ag(.(T26, .(T27, T28)), T8) → U44_ag(T26, T27, T28, T8, gt10_in_aa(T26, T27))
gt10_in_aa(s(T46), s(T47)) → U1_aa(T46, T47, gt10_in_aa(T46, T47))
gt10_in_aa(s(0), 0) → gt10_out_aa(s(0), 0)
U1_aa(T46, T47, gt10_out_aa(T46, T47)) → gt10_out_aa(s(T46), s(T47))
U44_ag(T26, T27, T28, T8, gt10_out_aa(T26, T27)) → qs1_out_ag(.(T26, .(T27, T28)), T8)
qs1_in_ag(.(T31, .(T33, T32)), T8) → U45_ag(T31, T33, T32, T8, gt10_in_aa(T31, T33))
U45_ag(T31, T33, T32, T8, gt10_out_aa(T31, T33)) → U46_ag(T31, T33, T32, T8, part20_in_gaaa(T31, T32, X47, X48))
part20_in_gaaa(T70, .(T73, T74), .(T73, X119), X120) → U2_gaaa(T70, T73, T74, X119, X120, gt10_in_ga(T70, T73))
gt10_in_ga(s(T46), s(T47)) → U1_ga(T46, T47, gt10_in_ga(T46, T47))
gt10_in_ga(s(0), 0) → gt10_out_ga(s(0), 0)
U1_ga(T46, T47, gt10_out_ga(T46, T47)) → gt10_out_ga(s(T46), s(T47))
U2_gaaa(T70, T73, T74, X119, X120, gt10_out_ga(T70, T73)) → part20_out_gaaa(T70, .(T73, T74), .(T73, X119), X120)
part20_in_gaaa(T70, .(T73, T77), .(T73, X119), X120) → U3_gaaa(T70, T73, T77, X119, X120, gt10_in_ga(T70, T73))
U3_gaaa(T70, T73, T77, X119, X120, gt10_out_ga(T70, T73)) → U4_gaaa(T70, T73, T77, X119, X120, part20_in_gaaa(T70, T77, X119, X120))
part20_in_gaaa(T95, .(T98, T99), X170, .(T98, X171)) → U5_gaaa(T95, T98, T99, X170, X171, le33_in_ga(T95, T98))
le33_in_ga(s(T113), s(T115)) → U8_ga(T113, T115, le33_in_ga(T113, T115))
le33_in_ga(0, s(T122)) → le33_out_ga(0, s(T122))
le33_in_ga(0, 0) → le33_out_ga(0, 0)
U8_ga(T113, T115, le33_out_ga(T113, T115)) → le33_out_ga(s(T113), s(T115))
U5_gaaa(T95, T98, T99, X170, X171, le33_out_ga(T95, T98)) → part20_out_gaaa(T95, .(T98, T99), X170, .(T98, X171))
part20_in_gaaa(T95, .(T98, T102), X170, .(T98, X171)) → U6_gaaa(T95, T98, T102, X170, X171, le33_in_ga(T95, T98))
U6_gaaa(T95, T98, T102, X170, X171, le33_out_ga(T95, T98)) → U7_gaaa(T95, T98, T102, X170, X171, part20_in_gaaa(T95, T102, X170, X171))
part20_in_gaaa(T128, [], [], []) → part20_out_gaaa(T128, [], [], [])
U7_gaaa(T95, T98, T102, X170, X171, part20_out_gaaa(T95, T102, X170, X171)) → part20_out_gaaa(T95, .(T98, T102), X170, .(T98, X171))
U4_gaaa(T70, T73, T77, X119, X120, part20_out_gaaa(T70, T77, X119, X120)) → part20_out_gaaa(T70, .(T73, T77), .(T73, X119), X120)
U46_ag(T31, T33, T32, T8, part20_out_gaaa(T31, T32, X47, X48)) → qs1_out_ag(.(T31, .(T33, T32)), T8)
U45_ag(T31, T33, T32, T8, gt10_out_aa(T31, T33)) → U47_ag(T31, T33, T32, T8, part20_in_gaaa(T31, T32, T53, T54))
U47_ag(T31, T33, T32, T8, part20_out_gaaa(T31, T32, T53, T54)) → U48_ag(T31, T33, T32, T8, qs51_in_gaa(T33, T53, X9))
qs51_in_gaa(T148, T149, X273) → U37_gaa(T148, T149, X273, p56_in_gaaaaaa(T148, T149, X269, X270, X271, X272, X273))
p56_in_gaaaaaa(T148, T149, X269, X270, X271, X272, X273) → U9_gaaaaaa(T148, T149, X269, X270, X271, X272, X273, part20_in_gaaa(T148, T149, X269, X270))
U9_gaaaaaa(T148, T149, X269, X270, X271, X272, X273, part20_out_gaaa(T148, T149, X269, X270)) → p56_out_gaaaaaa(T148, T149, X269, X270, X271, X272, X273)
p56_in_gaaaaaa(T148, T149, T153, T154, X271, X272, X273) → U10_gaaaaaa(T148, T149, T153, T154, X271, X272, X273, part20_in_gaaa(T148, T149, T153, T154))
U10_gaaaaaa(T148, T149, T153, T154, X271, X272, X273, part20_out_gaaa(T148, T149, T153, T154)) → U11_gaaaaaa(T148, T149, T153, T154, X271, X272, X273, qs59_in_aa(T153, X271))
qs59_in_aa(.(T171, T172), X335) → U19_aa(T171, T172, X335, p56_in_aaaaaaa(T171, T172, X331, X332, X333, X334, X335))
p56_in_aaaaaaa(T148, T149, X269, X270, X271, X272, X273) → U9_aaaaaaa(T148, T149, X269, X270, X271, X272, X273, part20_in_aaaa(T148, T149, X269, X270))
part20_in_aaaa(T70, .(T73, T74), .(T73, X119), X120) → U2_aaaa(T70, T73, T74, X119, X120, gt10_in_aa(T70, T73))
U2_aaaa(T70, T73, T74, X119, X120, gt10_out_aa(T70, T73)) → part20_out_aaaa(T70, .(T73, T74), .(T73, X119), X120)
part20_in_aaaa(T70, .(T73, T77), .(T73, X119), X120) → U3_aaaa(T70, T73, T77, X119, X120, gt10_in_aa(T70, T73))
U3_aaaa(T70, T73, T77, X119, X120, gt10_out_aa(T70, T73)) → U4_aaaa(T70, T73, T77, X119, X120, part20_in_gaaa(T70, T77, X119, X120))
U4_aaaa(T70, T73, T77, X119, X120, part20_out_gaaa(T70, T77, X119, X120)) → part20_out_aaaa(T70, .(T73, T77), .(T73, X119), X120)
part20_in_aaaa(T95, .(T98, T99), X170, .(T98, X171)) → U5_aaaa(T95, T98, T99, X170, X171, le33_in_aa(T95, T98))
le33_in_aa(s(T113), s(T115)) → U8_aa(T113, T115, le33_in_aa(T113, T115))
le33_in_aa(0, s(T122)) → le33_out_aa(0, s(T122))
le33_in_aa(0, 0) → le33_out_aa(0, 0)
U8_aa(T113, T115, le33_out_aa(T113, T115)) → le33_out_aa(s(T113), s(T115))
U5_aaaa(T95, T98, T99, X170, X171, le33_out_aa(T95, T98)) → part20_out_aaaa(T95, .(T98, T99), X170, .(T98, X171))
part20_in_aaaa(T95, .(T98, T102), X170, .(T98, X171)) → U6_aaaa(T95, T98, T102, X170, X171, le33_in_aa(T95, T98))
U6_aaaa(T95, T98, T102, X170, X171, le33_out_aa(T95, T98)) → U7_aaaa(T95, T98, T102, X170, X171, part20_in_gaaa(T95, T102, X170, X171))
U7_aaaa(T95, T98, T102, X170, X171, part20_out_gaaa(T95, T102, X170, X171)) → part20_out_aaaa(T95, .(T98, T102), X170, .(T98, X171))
part20_in_aaaa(T128, [], [], []) → part20_out_aaaa(T128, [], [], [])
U9_aaaaaaa(T148, T149, X269, X270, X271, X272, X273, part20_out_aaaa(T148, T149, X269, X270)) → p56_out_aaaaaaa(T148, T149, X269, X270, X271, X272, X273)
p56_in_aaaaaaa(T148, T149, T153, T154, X271, X272, X273) → U10_aaaaaaa(T148, T149, T153, T154, X271, X272, X273, part20_in_aaaa(T148, T149, T153, T154))
U10_aaaaaaa(T148, T149, T153, T154, X271, X272, X273, part20_out_aaaa(T148, T149, T153, T154)) → U11_aaaaaaa(T148, T149, T153, T154, X271, X272, X273, qs59_in_aa(T153, X271))
qs59_in_aa([], []) → qs59_out_aa([], [])
U11_aaaaaaa(T148, T149, T153, T154, X271, X272, X273, qs59_out_aa(T153, X271)) → p56_out_aaaaaaa(T148, T149, T153, T154, X271, X272, X273)
p56_in_aaaaaaa(T148, T149, T153, T154, T160, X272, X273) → U12_aaaaaaa(T148, T149, T153, T154, T160, X272, X273, part20_in_aaaa(T148, T149, T153, T154))
U12_aaaaaaa(T148, T149, T153, T154, T160, X272, X273, part20_out_aaaa(T148, T149, T153, T154)) → U13_aaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_in_aa(T153, T160))
U13_aaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_out_aa(T153, T160)) → U14_aaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_in_aa(T154, X272))
U14_aaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_out_aa(T154, X272)) → p56_out_aaaaaaa(T148, T149, T153, T154, T160, X272, X273)
p56_in_aaaaaaa(T148, T149, T153, T154, T160, T178, X273) → U15_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, part20_in_aaaa(T148, T149, T153, T154))
U15_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, part20_out_aaaa(T148, T149, T153, T154)) → U16_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_in_aa(T153, T160))
U16_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_out_aa(T153, T160)) → U17_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_in_aa(T154, T178))
U17_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_out_aa(T154, T178)) → U18_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, app70_in_aaaa(T160, T148, T178, X273))
app70_in_aaaa(.(T201, T202), T203, T204, .(T201, X391)) → U20_aaaa(T201, T202, T203, T204, X391, app70_in_aaaa(T202, T203, T204, X391))
app70_in_aaaa([], T213, T214, .(T213, T214)) → app70_out_aaaa([], T213, T214, .(T213, T214))
U20_aaaa(T201, T202, T203, T204, X391, app70_out_aaaa(T202, T203, T204, X391)) → app70_out_aaaa(.(T201, T202), T203, T204, .(T201, X391))
U18_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, app70_out_aaaa(T160, T148, T178, X273)) → p56_out_aaaaaaa(T148, T149, T153, T154, T160, T178, X273)
U19_aa(T171, T172, X335, p56_out_aaaaaaa(T171, T172, X331, X332, X333, X334, X335)) → qs59_out_aa(.(T171, T172), X335)
U11_gaaaaaa(T148, T149, T153, T154, X271, X272, X273, qs59_out_aa(T153, X271)) → p56_out_gaaaaaa(T148, T149, T153, T154, X271, X272, X273)
p56_in_gaaaaaa(T148, T149, T153, T154, T160, X272, X273) → U12_gaaaaaa(T148, T149, T153, T154, T160, X272, X273, part20_in_gaaa(T148, T149, T153, T154))
U12_gaaaaaa(T148, T149, T153, T154, T160, X272, X273, part20_out_gaaa(T148, T149, T153, T154)) → U13_gaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_in_aa(T153, T160))
U13_gaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_out_aa(T153, T160)) → U14_gaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_in_aa(T154, X272))
U14_gaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_out_aa(T154, X272)) → p56_out_gaaaaaa(T148, T149, T153, T154, T160, X272, X273)
p56_in_gaaaaaa(T148, T149, T153, T154, T160, T178, X273) → U15_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, part20_in_gaaa(T148, T149, T153, T154))
U15_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, part20_out_gaaa(T148, T149, T153, T154)) → U16_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_in_aa(T153, T160))
U16_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_out_aa(T153, T160)) → U17_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_in_aa(T154, T178))
U17_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_out_aa(T154, T178)) → U18_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, app70_in_agaa(T160, T148, T178, X273))
app70_in_agaa(.(T201, T202), T203, T204, .(T201, X391)) → U20_agaa(T201, T202, T203, T204, X391, app70_in_agaa(T202, T203, T204, X391))
app70_in_agaa([], T213, T214, .(T213, T214)) → app70_out_agaa([], T213, T214, .(T213, T214))
U20_agaa(T201, T202, T203, T204, X391, app70_out_agaa(T202, T203, T204, X391)) → app70_out_agaa(.(T201, T202), T203, T204, .(T201, X391))
U18_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, app70_out_agaa(T160, T148, T178, X273)) → p56_out_gaaaaaa(T148, T149, T153, T154, T160, T178, X273)
U37_gaa(T148, T149, X273, p56_out_gaaaaaa(T148, T149, X269, X270, X271, X272, X273)) → qs51_out_gaa(T148, T149, X273)
U48_ag(T31, T33, T32, T8, qs51_out_gaa(T33, T53, X9)) → qs1_out_ag(.(T31, .(T33, T32)), T8)
U47_ag(T31, T33, T32, T8, part20_out_gaaa(T31, T32, T53, T54)) → U49_ag(T31, T33, T32, T8, T54, qs51_in_gaa(T33, T53, T131))
U49_ag(T31, T33, T32, T8, T54, qs51_out_gaa(T33, T53, T131)) → U50_ag(T31, T33, T32, T8, p52_in_aaagg(T54, X10, T131, T31, T8))
p52_in_aaagg(T54, X10, T131, T31, T8) → U33_aaagg(T54, X10, T131, T31, T8, qs80_in_aa(T54, X10))
qs80_in_aa(.(T230, T231), X452) → U22_aa(T230, T231, X452, part87_in_aaaa(T230, T231, X448, X449))
part87_in_aaaa(T256, .(T257, T258), .(T257, X503), X504) → U38_aaaa(T256, T257, T258, X503, X504, gt10_in_aa(T256, T257))
U38_aaaa(T256, T257, T258, X503, X504, gt10_out_aa(T256, T257)) → part87_out_aaaa(T256, .(T257, T258), .(T257, X503), X504)
part87_in_aaaa(T261, .(T257, T262), .(T257, X503), X504) → U39_aaaa(T261, T257, T262, X503, X504, gt10_in_aa(T261, T257))
U39_aaaa(T261, T257, T262, X503, X504, gt10_out_aa(T261, T257)) → U40_aaaa(T261, T257, T262, X503, X504, part20_in_gaaa(T261, T262, X503, X504))
U40_aaaa(T261, T257, T262, X503, X504, part20_out_gaaa(T261, T262, X503, X504)) → part87_out_aaaa(T261, .(T257, T262), .(T257, X503), X504)
part87_in_aaaa(T283, .(T284, T285), X554, .(T284, X555)) → U41_aaaa(T283, T284, T285, X554, X555, le100_in_aa(T283, T284))
le100_in_aa(s(T302), s(T303)) → U21_aa(T302, T303, le100_in_aa(T302, T303))
le100_in_aa(0, s(T310)) → le100_out_aa(0, s(T310))
le100_in_aa(0, 0) → le100_out_aa(0, 0)
U21_aa(T302, T303, le100_out_aa(T302, T303)) → le100_out_aa(s(T302), s(T303))
U41_aaaa(T283, T284, T285, X554, X555, le100_out_aa(T283, T284)) → part87_out_aaaa(T283, .(T284, T285), X554, .(T284, X555))
part87_in_aaaa(T288, .(T284, T289), X554, .(T284, X555)) → U42_aaaa(T288, T284, T289, X554, X555, le100_in_aa(T288, T284))
U42_aaaa(T288, T284, T289, X554, X555, le100_out_aa(T288, T284)) → U43_aaaa(T288, T284, T289, X554, X555, part20_in_gaaa(T288, T289, X554, X555))
U43_aaaa(T288, T284, T289, X554, X555, part20_out_gaaa(T288, T289, X554, X555)) → part87_out_aaaa(T288, .(T284, T289), X554, .(T284, X555))
part87_in_aaaa(T316, [], [], []) → part87_out_aaaa(T316, [], [], [])
U22_aa(T230, T231, X452, part87_out_aaaa(T230, T231, X448, X449)) → qs80_out_aa(.(T230, T231), X452)
qs80_in_aa(.(T237, T231), X452) → U23_aa(T237, T231, X452, part87_in_aaaa(T237, T231, T235, T236))
U23_aa(T237, T231, X452, part87_out_aaaa(T237, T231, T235, T236)) → U24_aa(T237, T231, X452, qs80_in_aa(T235, X450))
qs80_in_aa(.(T325, T231), X452) → U27_aa(T325, T231, X452, part87_in_aaaa(T325, T231, T235, T236))
U27_aa(T325, T231, X452, part87_out_aaaa(T325, T231, T235, T236)) → U28_aa(T325, T231, X452, T236, qs80_in_aa(T235, T319))
qs80_in_aa([], []) → qs80_out_aa([], [])
U28_aa(T325, T231, X452, T236, qs80_out_aa(T235, T319)) → U29_aa(T325, T231, X452, T319, qs80_in_aa(T236, T324))
U29_aa(T325, T231, X452, T319, qs80_out_aa(T236, T324)) → U30_aa(T325, T231, X452, app121_in_aaaa(T319, T325, T324, X452))
app121_in_aaaa(.(T348, T349), T352, T353, .(T348, X657)) → U31_aaaa(T348, T349, T352, T353, X657, app121_in_aaaa(T349, T352, T353, X657))
app121_in_aaaa([], T362, T363, .(T362, T363)) → app121_out_aaaa([], T362, T363, .(T362, T363))
U31_aaaa(T348, T349, T352, T353, X657, app121_out_aaaa(T349, T352, T353, X657)) → app121_out_aaaa(.(T348, T349), T352, T353, .(T348, X657))
U30_aa(T325, T231, X452, app121_out_aaaa(T319, T325, T324, X452)) → qs80_out_aa(.(T325, T231), X452)
U24_aa(T237, T231, X452, qs80_out_aa(T235, X450)) → qs80_out_aa(.(T237, T231), X452)
U23_aa(T237, T231, X452, part87_out_aaaa(T237, T231, T235, T236)) → U25_aa(T237, T231, X452, T236, qs80_in_aa(T235, T319))
U25_aa(T237, T231, X452, T236, qs80_out_aa(T235, T319)) → U26_aa(T237, T231, X452, qs80_in_aa(T236, X451))
U26_aa(T237, T231, X452, qs80_out_aa(T236, X451)) → qs80_out_aa(.(T237, T231), X452)
U33_aaagg(T54, X10, T131, T31, T8, qs80_out_aa(T54, X10)) → p52_out_aaagg(T54, X10, T131, T31, T8)
p52_in_aaagg(T54, T217, T131, T31, T8) → U34_aaagg(T54, T217, T131, T31, T8, qs80_in_aa(T54, T217))
U34_aaagg(T54, T217, T131, T31, T8, qs80_out_aa(T54, T217)) → U35_aaagg(T54, T217, T131, T31, T8, app81_in_agag(T131, T31, T217, T8))
app81_in_agag(.(T389, T390), T391, T394, .(T389, T393)) → U32_agag(T389, T390, T391, T394, T393, app81_in_agag(T390, T391, T394, T393))
app81_in_agag([], T404, T405, .(T404, T405)) → app81_out_agag([], T404, T405, .(T404, T405))
U32_agag(T389, T390, T391, T394, T393, app81_out_agag(T390, T391, T394, T393)) → app81_out_agag(.(T389, T390), T391, T394, .(T389, T393))
U35_aaagg(T54, T217, T131, T31, T8, app81_out_agag(T131, T31, T217, T8)) → p52_out_aaagg(T54, T217, T131, T31, T8)
U50_ag(T31, T33, T32, T8, p52_out_aaagg(T54, X10, T131, T31, T8)) → qs1_out_ag(.(T31, .(T33, T32)), T8)
qs1_in_ag(.(T421, .(T422, T423)), T8) → U51_ag(T421, T422, T423, T8, le100_in_aa(T421, T422))
U51_ag(T421, T422, T423, T8, le100_out_aa(T421, T422)) → qs1_out_ag(.(T421, .(T422, T423)), T8)
qs1_in_ag(.(T426, .(T428, T427)), T8) → U52_ag(T426, T428, T427, T8, le100_in_aa(T426, T428))
U52_ag(T426, T428, T427, T8, le100_out_aa(T426, T428)) → U53_ag(T426, T428, T427, T8, part20_in_gaaa(T426, T427, X740, X741))
U53_ag(T426, T428, T427, T8, part20_out_gaaa(T426, T427, X740, X741)) → qs1_out_ag(.(T426, .(T428, T427)), T8)
qs1_in_ag(.(T426, .(T436, T427)), T8) → U54_ag(T426, T436, T427, T8, le100_in_aa(T426, T436))
U54_ag(T426, T436, T427, T8, le100_out_aa(T426, T436)) → U55_ag(T426, T436, T427, T8, part20_in_gaaa(T426, T427, T434, T435))
U55_ag(T426, T436, T427, T8, part20_out_gaaa(T426, T427, T434, T435)) → U56_ag(T426, T436, T427, T8, qs80_in_aa(T434, X9))
U56_ag(T426, T436, T427, T8, qs80_out_aa(T434, X9)) → qs1_out_ag(.(T426, .(T436, T427)), T8)
U55_ag(T426, T436, T427, T8, part20_out_gaaa(T426, T427, T434, T435)) → U57_ag(T426, T436, T427, T8, T435, qs80_in_aa(T434, T442))
U57_ag(T426, T436, T427, T8, T435, qs80_out_aa(T434, T442)) → U58_ag(T426, T436, T427, T8, p52_in_aaagg(.(T436, T435), X10, T442, T426, T8))
U58_ag(T426, T436, T427, T8, p52_out_aaagg(.(T436, T435), X10, T442, T426, T8)) → qs1_out_ag(.(T426, .(T436, T427)), T8)
qs1_in_ag(.(T452, []), T8) → U59_ag(T452, T8, qs155_in_a(X9))
qs155_in_a([]) → qs155_out_a([])
U59_ag(T452, T8, qs155_out_a(X9)) → qs1_out_ag(.(T452, []), T8)
qs1_in_ag(.(T452, []), T8) → U60_ag(T452, T8, qs155_in_a(T455))
U60_ag(T452, T8, qs155_out_a(T455)) → U61_ag(T452, T8, qs155_in_a(X10))
U61_ag(T452, T8, qs155_out_a(X10)) → qs1_out_ag(.(T452, []), T8)
U60_ag(T452, T8, qs155_out_a(T455)) → U62_ag(T452, T8, T455, qs155_in_a(T460))
U62_ag(T452, T8, T455, qs155_out_a(T460)) → U63_ag(T452, T8, app162_in_gagg(T455, T452, T460, T8))
app162_in_gagg(.(T486, T487), T491, T489, .(T486, T490)) → U36_gagg(T486, T487, T491, T489, T490, app162_in_gagg(T487, T491, T489, T490))
app162_in_gagg([], T501, T502, .(T501, T502)) → app162_out_gagg([], T501, T502, .(T501, T502))
U36_gagg(T486, T487, T491, T489, T490, app162_out_gagg(T487, T491, T489, T490)) → app162_out_gagg(.(T486, T487), T491, T489, .(T486, T490))
U63_ag(T452, T8, app162_out_gagg(T455, T452, T460, T8)) → qs1_out_ag(.(T452, []), T8)
qs1_in_ag([], []) → qs1_out_ag([], [])
P56_IN_AAAAAAA(T148, T149, T153, T154, X271, X272, X273) → U10_AAAAAAA(T148, T149, T153, T154, X271, X272, X273, part20_in_aaaa(T148, T149, T153, T154))
U10_AAAAAAA(T148, T149, T153, T154, X271, X272, X273, part20_out_aaaa(T148, T149, T153, T154)) → QS59_IN_AA(T153, X271)
QS59_IN_AA(.(T171, T172), X335) → P56_IN_AAAAAAA(T171, T172, X331, X332, X333, X334, X335)
P56_IN_AAAAAAA(T148, T149, T153, T154, T160, X272, X273) → U12_AAAAAAA(T148, T149, T153, T154, T160, X272, X273, part20_in_aaaa(T148, T149, T153, T154))
U12_AAAAAAA(T148, T149, T153, T154, T160, X272, X273, part20_out_aaaa(T148, T149, T153, T154)) → U13_AAAAAAA(T148, T149, T153, T154, T160, X272, X273, qs59_in_aa(T153, T160))
U13_AAAAAAA(T148, T149, T153, T154, T160, X272, X273, qs59_out_aa(T153, T160)) → QS59_IN_AA(T154, X272)
U12_AAAAAAA(T148, T149, T153, T154, T160, X272, X273, part20_out_aaaa(T148, T149, T153, T154)) → QS59_IN_AA(T153, T160)
P56_IN_AAAAAAA(T148, T149, T153, T154, T160, T178, X273) → U15_AAAAAAA(T148, T149, T153, T154, T160, T178, X273, part20_in_aaaa(T148, T149, T153, T154))
U15_AAAAAAA(T148, T149, T153, T154, T160, T178, X273, part20_out_aaaa(T148, T149, T153, T154)) → U16_AAAAAAA(T148, T149, T153, T154, T160, T178, X273, qs59_in_aa(T153, T160))
U16_AAAAAAA(T148, T149, T153, T154, T160, T178, X273, qs59_out_aa(T153, T160)) → QS59_IN_AA(T154, T178)
U15_AAAAAAA(T148, T149, T153, T154, T160, T178, X273, part20_out_aaaa(T148, T149, T153, T154)) → QS59_IN_AA(T153, T160)
part20_in_aaaa(T70, .(T73, T74), .(T73, X119), X120) → U2_aaaa(T70, T73, T74, X119, X120, gt10_in_aa(T70, T73))
part20_in_aaaa(T70, .(T73, T77), .(T73, X119), X120) → U3_aaaa(T70, T73, T77, X119, X120, gt10_in_aa(T70, T73))
part20_in_aaaa(T95, .(T98, T99), X170, .(T98, X171)) → U5_aaaa(T95, T98, T99, X170, X171, le33_in_aa(T95, T98))
part20_in_aaaa(T95, .(T98, T102), X170, .(T98, X171)) → U6_aaaa(T95, T98, T102, X170, X171, le33_in_aa(T95, T98))
part20_in_aaaa(T128, [], [], []) → part20_out_aaaa(T128, [], [], [])
qs59_in_aa(.(T171, T172), X335) → U19_aa(T171, T172, X335, p56_in_aaaaaaa(T171, T172, X331, X332, X333, X334, X335))
qs59_in_aa([], []) → qs59_out_aa([], [])
U2_aaaa(T70, T73, T74, X119, X120, gt10_out_aa(T70, T73)) → part20_out_aaaa(T70, .(T73, T74), .(T73, X119), X120)
U3_aaaa(T70, T73, T77, X119, X120, gt10_out_aa(T70, T73)) → U4_aaaa(T70, T73, T77, X119, X120, part20_in_gaaa(T70, T77, X119, X120))
U5_aaaa(T95, T98, T99, X170, X171, le33_out_aa(T95, T98)) → part20_out_aaaa(T95, .(T98, T99), X170, .(T98, X171))
U6_aaaa(T95, T98, T102, X170, X171, le33_out_aa(T95, T98)) → U7_aaaa(T95, T98, T102, X170, X171, part20_in_gaaa(T95, T102, X170, X171))
U19_aa(T171, T172, X335, p56_out_aaaaaaa(T171, T172, X331, X332, X333, X334, X335)) → qs59_out_aa(.(T171, T172), X335)
gt10_in_aa(s(T46), s(T47)) → U1_aa(T46, T47, gt10_in_aa(T46, T47))
gt10_in_aa(s(0), 0) → gt10_out_aa(s(0), 0)
U4_aaaa(T70, T73, T77, X119, X120, part20_out_gaaa(T70, T77, X119, X120)) → part20_out_aaaa(T70, .(T73, T77), .(T73, X119), X120)
le33_in_aa(s(T113), s(T115)) → U8_aa(T113, T115, le33_in_aa(T113, T115))
le33_in_aa(0, s(T122)) → le33_out_aa(0, s(T122))
le33_in_aa(0, 0) → le33_out_aa(0, 0)
U7_aaaa(T95, T98, T102, X170, X171, part20_out_gaaa(T95, T102, X170, X171)) → part20_out_aaaa(T95, .(T98, T102), X170, .(T98, X171))
p56_in_aaaaaaa(T148, T149, X269, X270, X271, X272, X273) → U9_aaaaaaa(T148, T149, X269, X270, X271, X272, X273, part20_in_aaaa(T148, T149, X269, X270))
p56_in_aaaaaaa(T148, T149, T153, T154, X271, X272, X273) → U10_aaaaaaa(T148, T149, T153, T154, X271, X272, X273, part20_in_aaaa(T148, T149, T153, T154))
p56_in_aaaaaaa(T148, T149, T153, T154, T160, X272, X273) → U12_aaaaaaa(T148, T149, T153, T154, T160, X272, X273, part20_in_aaaa(T148, T149, T153, T154))
p56_in_aaaaaaa(T148, T149, T153, T154, T160, T178, X273) → U15_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, part20_in_aaaa(T148, T149, T153, T154))
U1_aa(T46, T47, gt10_out_aa(T46, T47)) → gt10_out_aa(s(T46), s(T47))
part20_in_gaaa(T70, .(T73, T74), .(T73, X119), X120) → U2_gaaa(T70, T73, T74, X119, X120, gt10_in_ga(T70, T73))
part20_in_gaaa(T70, .(T73, T77), .(T73, X119), X120) → U3_gaaa(T70, T73, T77, X119, X120, gt10_in_ga(T70, T73))
part20_in_gaaa(T95, .(T98, T99), X170, .(T98, X171)) → U5_gaaa(T95, T98, T99, X170, X171, le33_in_ga(T95, T98))
part20_in_gaaa(T95, .(T98, T102), X170, .(T98, X171)) → U6_gaaa(T95, T98, T102, X170, X171, le33_in_ga(T95, T98))
part20_in_gaaa(T128, [], [], []) → part20_out_gaaa(T128, [], [], [])
U8_aa(T113, T115, le33_out_aa(T113, T115)) → le33_out_aa(s(T113), s(T115))
U9_aaaaaaa(T148, T149, X269, X270, X271, X272, X273, part20_out_aaaa(T148, T149, X269, X270)) → p56_out_aaaaaaa(T148, T149, X269, X270, X271, X272, X273)
U10_aaaaaaa(T148, T149, T153, T154, X271, X272, X273, part20_out_aaaa(T148, T149, T153, T154)) → U11_aaaaaaa(T148, T149, T153, T154, X271, X272, X273, qs59_in_aa(T153, X271))
U12_aaaaaaa(T148, T149, T153, T154, T160, X272, X273, part20_out_aaaa(T148, T149, T153, T154)) → U13_aaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_in_aa(T153, T160))
U15_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, part20_out_aaaa(T148, T149, T153, T154)) → U16_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_in_aa(T153, T160))
U2_gaaa(T70, T73, T74, X119, X120, gt10_out_ga(T70, T73)) → part20_out_gaaa(T70, .(T73, T74), .(T73, X119), X120)
U3_gaaa(T70, T73, T77, X119, X120, gt10_out_ga(T70, T73)) → U4_gaaa(T70, T73, T77, X119, X120, part20_in_gaaa(T70, T77, X119, X120))
U5_gaaa(T95, T98, T99, X170, X171, le33_out_ga(T95, T98)) → part20_out_gaaa(T95, .(T98, T99), X170, .(T98, X171))
U6_gaaa(T95, T98, T102, X170, X171, le33_out_ga(T95, T98)) → U7_gaaa(T95, T98, T102, X170, X171, part20_in_gaaa(T95, T102, X170, X171))
U11_aaaaaaa(T148, T149, T153, T154, X271, X272, X273, qs59_out_aa(T153, X271)) → p56_out_aaaaaaa(T148, T149, T153, T154, X271, X272, X273)
U13_aaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_out_aa(T153, T160)) → U14_aaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_in_aa(T154, X272))
U16_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_out_aa(T153, T160)) → U17_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_in_aa(T154, T178))
gt10_in_ga(s(T46), s(T47)) → U1_ga(T46, T47, gt10_in_ga(T46, T47))
gt10_in_ga(s(0), 0) → gt10_out_ga(s(0), 0)
U4_gaaa(T70, T73, T77, X119, X120, part20_out_gaaa(T70, T77, X119, X120)) → part20_out_gaaa(T70, .(T73, T77), .(T73, X119), X120)
le33_in_ga(s(T113), s(T115)) → U8_ga(T113, T115, le33_in_ga(T113, T115))
le33_in_ga(0, s(T122)) → le33_out_ga(0, s(T122))
le33_in_ga(0, 0) → le33_out_ga(0, 0)
U7_gaaa(T95, T98, T102, X170, X171, part20_out_gaaa(T95, T102, X170, X171)) → part20_out_gaaa(T95, .(T98, T102), X170, .(T98, X171))
U14_aaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_out_aa(T154, X272)) → p56_out_aaaaaaa(T148, T149, T153, T154, T160, X272, X273)
U17_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_out_aa(T154, T178)) → U18_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, app70_in_aaaa(T160, T148, T178, X273))
U1_ga(T46, T47, gt10_out_ga(T46, T47)) → gt10_out_ga(s(T46), s(T47))
U8_ga(T113, T115, le33_out_ga(T113, T115)) → le33_out_ga(s(T113), s(T115))
U18_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, app70_out_aaaa(T160, T148, T178, X273)) → p56_out_aaaaaaa(T148, T149, T153, T154, T160, T178, X273)
app70_in_aaaa(.(T201, T202), T203, T204, .(T201, X391)) → U20_aaaa(T201, T202, T203, T204, X391, app70_in_aaaa(T202, T203, T204, X391))
app70_in_aaaa([], T213, T214, .(T213, T214)) → app70_out_aaaa([], T213, T214, .(T213, T214))
U20_aaaa(T201, T202, T203, T204, X391, app70_out_aaaa(T202, T203, T204, X391)) → app70_out_aaaa(.(T201, T202), T203, T204, .(T201, X391))
P56_IN_AAAAAAA → U10_AAAAAAA(part20_in_aaaa)
U10_AAAAAAA(part20_out_aaaa) → QS59_IN_AA
QS59_IN_AA → P56_IN_AAAAAAA
P56_IN_AAAAAAA → U12_AAAAAAA(part20_in_aaaa)
U12_AAAAAAA(part20_out_aaaa) → U13_AAAAAAA(qs59_in_aa)
U13_AAAAAAA(qs59_out_aa) → QS59_IN_AA
U12_AAAAAAA(part20_out_aaaa) → QS59_IN_AA
P56_IN_AAAAAAA → U15_AAAAAAA(part20_in_aaaa)
U15_AAAAAAA(part20_out_aaaa) → U16_AAAAAAA(qs59_in_aa)
U16_AAAAAAA(qs59_out_aa) → QS59_IN_AA
U15_AAAAAAA(part20_out_aaaa) → QS59_IN_AA
part20_in_aaaa → U2_aaaa(gt10_in_aa)
part20_in_aaaa → U3_aaaa(gt10_in_aa)
part20_in_aaaa → U5_aaaa(le33_in_aa)
part20_in_aaaa → U6_aaaa(le33_in_aa)
part20_in_aaaa → part20_out_aaaa
qs59_in_aa → U19_aa(p56_in_aaaaaaa)
qs59_in_aa → qs59_out_aa
U2_aaaa(gt10_out_aa(T70, T73)) → part20_out_aaaa
U3_aaaa(gt10_out_aa(T70, T73)) → U4_aaaa(part20_in_gaaa(T70))
U5_aaaa(le33_out_aa(T95)) → part20_out_aaaa
U6_aaaa(le33_out_aa(T95)) → U7_aaaa(part20_in_gaaa(T95))
U19_aa(p56_out_aaaaaaa) → qs59_out_aa
gt10_in_aa → U1_aa(gt10_in_aa)
gt10_in_aa → gt10_out_aa(s(0), 0)
U4_aaaa(part20_out_gaaa(T70)) → part20_out_aaaa
le33_in_aa → U8_aa(le33_in_aa)
le33_in_aa → le33_out_aa(0)
U7_aaaa(part20_out_gaaa(T95)) → part20_out_aaaa
p56_in_aaaaaaa → U9_aaaaaaa(part20_in_aaaa)
p56_in_aaaaaaa → U10_aaaaaaa(part20_in_aaaa)
p56_in_aaaaaaa → U12_aaaaaaa(part20_in_aaaa)
p56_in_aaaaaaa → U15_aaaaaaa(part20_in_aaaa)
U1_aa(gt10_out_aa(T46, T47)) → gt10_out_aa(s(T46), s(T47))
part20_in_gaaa(T70) → U2_gaaa(T70, gt10_in_ga(T70))
part20_in_gaaa(T70) → U3_gaaa(T70, gt10_in_ga(T70))
part20_in_gaaa(T95) → U5_gaaa(T95, le33_in_ga(T95))
part20_in_gaaa(T95) → U6_gaaa(T95, le33_in_ga(T95))
part20_in_gaaa(T128) → part20_out_gaaa(T128)
U8_aa(le33_out_aa(T113)) → le33_out_aa(s(T113))
U9_aaaaaaa(part20_out_aaaa) → p56_out_aaaaaaa
U10_aaaaaaa(part20_out_aaaa) → U11_aaaaaaa(qs59_in_aa)
U12_aaaaaaa(part20_out_aaaa) → U13_aaaaaaa(qs59_in_aa)
U15_aaaaaaa(part20_out_aaaa) → U16_aaaaaaa(qs59_in_aa)
U2_gaaa(T70, gt10_out_ga(T70, T73)) → part20_out_gaaa(T70)
U3_gaaa(T70, gt10_out_ga(T70, T73)) → U4_gaaa(T70, part20_in_gaaa(T70))
U5_gaaa(T95, le33_out_ga(T95)) → part20_out_gaaa(T95)
U6_gaaa(T95, le33_out_ga(T95)) → U7_gaaa(T95, part20_in_gaaa(T95))
U11_aaaaaaa(qs59_out_aa) → p56_out_aaaaaaa
U13_aaaaaaa(qs59_out_aa) → U14_aaaaaaa(qs59_in_aa)
U16_aaaaaaa(qs59_out_aa) → U17_aaaaaaa(qs59_in_aa)
gt10_in_ga(s(T46)) → U1_ga(T46, gt10_in_ga(T46))
gt10_in_ga(s(0)) → gt10_out_ga(s(0), 0)
U4_gaaa(T70, part20_out_gaaa(T70)) → part20_out_gaaa(T70)
le33_in_ga(s(T113)) → U8_ga(T113, le33_in_ga(T113))
le33_in_ga(0) → le33_out_ga(0)
U7_gaaa(T95, part20_out_gaaa(T95)) → part20_out_gaaa(T95)
U14_aaaaaaa(qs59_out_aa) → p56_out_aaaaaaa
U17_aaaaaaa(qs59_out_aa) → U18_aaaaaaa(app70_in_aaaa)
U1_ga(T46, gt10_out_ga(T46, T47)) → gt10_out_ga(s(T46), s(T47))
U8_ga(T113, le33_out_ga(T113)) → le33_out_ga(s(T113))
U18_aaaaaaa(app70_out_aaaa) → p56_out_aaaaaaa
app70_in_aaaa → U20_aaaa(app70_in_aaaa)
app70_in_aaaa → app70_out_aaaa
U20_aaaa(app70_out_aaaa) → app70_out_aaaa
part20_in_aaaa
qs59_in_aa
U2_aaaa(x0)
U3_aaaa(x0)
U5_aaaa(x0)
U6_aaaa(x0)
U19_aa(x0)
gt10_in_aa
U4_aaaa(x0)
le33_in_aa
U7_aaaa(x0)
p56_in_aaaaaaa
U1_aa(x0)
part20_in_gaaa(x0)
U8_aa(x0)
U9_aaaaaaa(x0)
U10_aaaaaaa(x0)
U12_aaaaaaa(x0)
U15_aaaaaaa(x0)
U2_gaaa(x0, x1)
U3_gaaa(x0, x1)
U5_gaaa(x0, x1)
U6_gaaa(x0, x1)
U11_aaaaaaa(x0)
U13_aaaaaaa(x0)
U16_aaaaaaa(x0)
gt10_in_ga(x0)
U4_gaaa(x0, x1)
le33_in_ga(x0)
U7_gaaa(x0, x1)
U14_aaaaaaa(x0)
U17_aaaaaaa(x0)
U1_ga(x0, x1)
U8_ga(x0, x1)
U18_aaaaaaa(x0)
app70_in_aaaa
U20_aaaa(x0)
P56_IN_AAAAAAA → U10_AAAAAAA(U2_aaaa(gt10_in_aa))
P56_IN_AAAAAAA → U10_AAAAAAA(U3_aaaa(gt10_in_aa))
P56_IN_AAAAAAA → U10_AAAAAAA(U5_aaaa(le33_in_aa))
P56_IN_AAAAAAA → U10_AAAAAAA(U6_aaaa(le33_in_aa))
P56_IN_AAAAAAA → U10_AAAAAAA(part20_out_aaaa)
U10_AAAAAAA(part20_out_aaaa) → QS59_IN_AA
QS59_IN_AA → P56_IN_AAAAAAA
P56_IN_AAAAAAA → U12_AAAAAAA(part20_in_aaaa)
U12_AAAAAAA(part20_out_aaaa) → U13_AAAAAAA(qs59_in_aa)
U13_AAAAAAA(qs59_out_aa) → QS59_IN_AA
U12_AAAAAAA(part20_out_aaaa) → QS59_IN_AA
P56_IN_AAAAAAA → U15_AAAAAAA(part20_in_aaaa)
U15_AAAAAAA(part20_out_aaaa) → U16_AAAAAAA(qs59_in_aa)
U16_AAAAAAA(qs59_out_aa) → QS59_IN_AA
U15_AAAAAAA(part20_out_aaaa) → QS59_IN_AA
P56_IN_AAAAAAA → U10_AAAAAAA(U2_aaaa(gt10_in_aa))
P56_IN_AAAAAAA → U10_AAAAAAA(U3_aaaa(gt10_in_aa))
P56_IN_AAAAAAA → U10_AAAAAAA(U5_aaaa(le33_in_aa))
P56_IN_AAAAAAA → U10_AAAAAAA(U6_aaaa(le33_in_aa))
P56_IN_AAAAAAA → U10_AAAAAAA(part20_out_aaaa)
part20_in_aaaa → U2_aaaa(gt10_in_aa)
part20_in_aaaa → U3_aaaa(gt10_in_aa)
part20_in_aaaa → U5_aaaa(le33_in_aa)
part20_in_aaaa → U6_aaaa(le33_in_aa)
part20_in_aaaa → part20_out_aaaa
qs59_in_aa → U19_aa(p56_in_aaaaaaa)
qs59_in_aa → qs59_out_aa
U2_aaaa(gt10_out_aa(T70, T73)) → part20_out_aaaa
U3_aaaa(gt10_out_aa(T70, T73)) → U4_aaaa(part20_in_gaaa(T70))
U5_aaaa(le33_out_aa(T95)) → part20_out_aaaa
U6_aaaa(le33_out_aa(T95)) → U7_aaaa(part20_in_gaaa(T95))
U19_aa(p56_out_aaaaaaa) → qs59_out_aa
gt10_in_aa → U1_aa(gt10_in_aa)
gt10_in_aa → gt10_out_aa(s(0), 0)
U4_aaaa(part20_out_gaaa(T70)) → part20_out_aaaa
le33_in_aa → U8_aa(le33_in_aa)
le33_in_aa → le33_out_aa(0)
U7_aaaa(part20_out_gaaa(T95)) → part20_out_aaaa
p56_in_aaaaaaa → U9_aaaaaaa(part20_in_aaaa)
p56_in_aaaaaaa → U10_aaaaaaa(part20_in_aaaa)
p56_in_aaaaaaa → U12_aaaaaaa(part20_in_aaaa)
p56_in_aaaaaaa → U15_aaaaaaa(part20_in_aaaa)
U1_aa(gt10_out_aa(T46, T47)) → gt10_out_aa(s(T46), s(T47))
part20_in_gaaa(T70) → U2_gaaa(T70, gt10_in_ga(T70))
part20_in_gaaa(T70) → U3_gaaa(T70, gt10_in_ga(T70))
part20_in_gaaa(T95) → U5_gaaa(T95, le33_in_ga(T95))
part20_in_gaaa(T95) → U6_gaaa(T95, le33_in_ga(T95))
part20_in_gaaa(T128) → part20_out_gaaa(T128)
U8_aa(le33_out_aa(T113)) → le33_out_aa(s(T113))
U9_aaaaaaa(part20_out_aaaa) → p56_out_aaaaaaa
U10_aaaaaaa(part20_out_aaaa) → U11_aaaaaaa(qs59_in_aa)
U12_aaaaaaa(part20_out_aaaa) → U13_aaaaaaa(qs59_in_aa)
U15_aaaaaaa(part20_out_aaaa) → U16_aaaaaaa(qs59_in_aa)
U2_gaaa(T70, gt10_out_ga(T70, T73)) → part20_out_gaaa(T70)
U3_gaaa(T70, gt10_out_ga(T70, T73)) → U4_gaaa(T70, part20_in_gaaa(T70))
U5_gaaa(T95, le33_out_ga(T95)) → part20_out_gaaa(T95)
U6_gaaa(T95, le33_out_ga(T95)) → U7_gaaa(T95, part20_in_gaaa(T95))
U11_aaaaaaa(qs59_out_aa) → p56_out_aaaaaaa
U13_aaaaaaa(qs59_out_aa) → U14_aaaaaaa(qs59_in_aa)
U16_aaaaaaa(qs59_out_aa) → U17_aaaaaaa(qs59_in_aa)
gt10_in_ga(s(T46)) → U1_ga(T46, gt10_in_ga(T46))
gt10_in_ga(s(0)) → gt10_out_ga(s(0), 0)
U4_gaaa(T70, part20_out_gaaa(T70)) → part20_out_gaaa(T70)
le33_in_ga(s(T113)) → U8_ga(T113, le33_in_ga(T113))
le33_in_ga(0) → le33_out_ga(0)
U7_gaaa(T95, part20_out_gaaa(T95)) → part20_out_gaaa(T95)
U14_aaaaaaa(qs59_out_aa) → p56_out_aaaaaaa
U17_aaaaaaa(qs59_out_aa) → U18_aaaaaaa(app70_in_aaaa)
U1_ga(T46, gt10_out_ga(T46, T47)) → gt10_out_ga(s(T46), s(T47))
U8_ga(T113, le33_out_ga(T113)) → le33_out_ga(s(T113))
U18_aaaaaaa(app70_out_aaaa) → p56_out_aaaaaaa
app70_in_aaaa → U20_aaaa(app70_in_aaaa)
app70_in_aaaa → app70_out_aaaa
U20_aaaa(app70_out_aaaa) → app70_out_aaaa
part20_in_aaaa
qs59_in_aa
U2_aaaa(x0)
U3_aaaa(x0)
U5_aaaa(x0)
U6_aaaa(x0)
U19_aa(x0)
gt10_in_aa
U4_aaaa(x0)
le33_in_aa
U7_aaaa(x0)
p56_in_aaaaaaa
U1_aa(x0)
part20_in_gaaa(x0)
U8_aa(x0)
U9_aaaaaaa(x0)
U10_aaaaaaa(x0)
U12_aaaaaaa(x0)
U15_aaaaaaa(x0)
U2_gaaa(x0, x1)
U3_gaaa(x0, x1)
U5_gaaa(x0, x1)
U6_gaaa(x0, x1)
U11_aaaaaaa(x0)
U13_aaaaaaa(x0)
U16_aaaaaaa(x0)
gt10_in_ga(x0)
U4_gaaa(x0, x1)
le33_in_ga(x0)
U7_gaaa(x0, x1)
U14_aaaaaaa(x0)
U17_aaaaaaa(x0)
U1_ga(x0, x1)
U8_ga(x0, x1)
U18_aaaaaaa(x0)
app70_in_aaaa
U20_aaaa(x0)
P56_IN_AAAAAAA → U12_AAAAAAA(U2_aaaa(gt10_in_aa))
P56_IN_AAAAAAA → U12_AAAAAAA(U3_aaaa(gt10_in_aa))
P56_IN_AAAAAAA → U12_AAAAAAA(U5_aaaa(le33_in_aa))
P56_IN_AAAAAAA → U12_AAAAAAA(U6_aaaa(le33_in_aa))
P56_IN_AAAAAAA → U12_AAAAAAA(part20_out_aaaa)
U10_AAAAAAA(part20_out_aaaa) → QS59_IN_AA
QS59_IN_AA → P56_IN_AAAAAAA
U12_AAAAAAA(part20_out_aaaa) → U13_AAAAAAA(qs59_in_aa)
U13_AAAAAAA(qs59_out_aa) → QS59_IN_AA
U12_AAAAAAA(part20_out_aaaa) → QS59_IN_AA
P56_IN_AAAAAAA → U15_AAAAAAA(part20_in_aaaa)
U15_AAAAAAA(part20_out_aaaa) → U16_AAAAAAA(qs59_in_aa)
U16_AAAAAAA(qs59_out_aa) → QS59_IN_AA
U15_AAAAAAA(part20_out_aaaa) → QS59_IN_AA
P56_IN_AAAAAAA → U10_AAAAAAA(U2_aaaa(gt10_in_aa))
P56_IN_AAAAAAA → U10_AAAAAAA(U3_aaaa(gt10_in_aa))
P56_IN_AAAAAAA → U10_AAAAAAA(U5_aaaa(le33_in_aa))
P56_IN_AAAAAAA → U10_AAAAAAA(U6_aaaa(le33_in_aa))
P56_IN_AAAAAAA → U10_AAAAAAA(part20_out_aaaa)
P56_IN_AAAAAAA → U12_AAAAAAA(U2_aaaa(gt10_in_aa))
P56_IN_AAAAAAA → U12_AAAAAAA(U3_aaaa(gt10_in_aa))
P56_IN_AAAAAAA → U12_AAAAAAA(U5_aaaa(le33_in_aa))
P56_IN_AAAAAAA → U12_AAAAAAA(U6_aaaa(le33_in_aa))
P56_IN_AAAAAAA → U12_AAAAAAA(part20_out_aaaa)
part20_in_aaaa → U2_aaaa(gt10_in_aa)
part20_in_aaaa → U3_aaaa(gt10_in_aa)
part20_in_aaaa → U5_aaaa(le33_in_aa)
part20_in_aaaa → U6_aaaa(le33_in_aa)
part20_in_aaaa → part20_out_aaaa
qs59_in_aa → U19_aa(p56_in_aaaaaaa)
qs59_in_aa → qs59_out_aa
U2_aaaa(gt10_out_aa(T70, T73)) → part20_out_aaaa
U3_aaaa(gt10_out_aa(T70, T73)) → U4_aaaa(part20_in_gaaa(T70))
U5_aaaa(le33_out_aa(T95)) → part20_out_aaaa
U6_aaaa(le33_out_aa(T95)) → U7_aaaa(part20_in_gaaa(T95))
U19_aa(p56_out_aaaaaaa) → qs59_out_aa
gt10_in_aa → U1_aa(gt10_in_aa)
gt10_in_aa → gt10_out_aa(s(0), 0)
U4_aaaa(part20_out_gaaa(T70)) → part20_out_aaaa
le33_in_aa → U8_aa(le33_in_aa)
le33_in_aa → le33_out_aa(0)
U7_aaaa(part20_out_gaaa(T95)) → part20_out_aaaa
p56_in_aaaaaaa → U9_aaaaaaa(part20_in_aaaa)
p56_in_aaaaaaa → U10_aaaaaaa(part20_in_aaaa)
p56_in_aaaaaaa → U12_aaaaaaa(part20_in_aaaa)
p56_in_aaaaaaa → U15_aaaaaaa(part20_in_aaaa)
U1_aa(gt10_out_aa(T46, T47)) → gt10_out_aa(s(T46), s(T47))
part20_in_gaaa(T70) → U2_gaaa(T70, gt10_in_ga(T70))
part20_in_gaaa(T70) → U3_gaaa(T70, gt10_in_ga(T70))
part20_in_gaaa(T95) → U5_gaaa(T95, le33_in_ga(T95))
part20_in_gaaa(T95) → U6_gaaa(T95, le33_in_ga(T95))
part20_in_gaaa(T128) → part20_out_gaaa(T128)
U8_aa(le33_out_aa(T113)) → le33_out_aa(s(T113))
U9_aaaaaaa(part20_out_aaaa) → p56_out_aaaaaaa
U10_aaaaaaa(part20_out_aaaa) → U11_aaaaaaa(qs59_in_aa)
U12_aaaaaaa(part20_out_aaaa) → U13_aaaaaaa(qs59_in_aa)
U15_aaaaaaa(part20_out_aaaa) → U16_aaaaaaa(qs59_in_aa)
U2_gaaa(T70, gt10_out_ga(T70, T73)) → part20_out_gaaa(T70)
U3_gaaa(T70, gt10_out_ga(T70, T73)) → U4_gaaa(T70, part20_in_gaaa(T70))
U5_gaaa(T95, le33_out_ga(T95)) → part20_out_gaaa(T95)
U6_gaaa(T95, le33_out_ga(T95)) → U7_gaaa(T95, part20_in_gaaa(T95))
U11_aaaaaaa(qs59_out_aa) → p56_out_aaaaaaa
U13_aaaaaaa(qs59_out_aa) → U14_aaaaaaa(qs59_in_aa)
U16_aaaaaaa(qs59_out_aa) → U17_aaaaaaa(qs59_in_aa)
gt10_in_ga(s(T46)) → U1_ga(T46, gt10_in_ga(T46))
gt10_in_ga(s(0)) → gt10_out_ga(s(0), 0)
U4_gaaa(T70, part20_out_gaaa(T70)) → part20_out_gaaa(T70)
le33_in_ga(s(T113)) → U8_ga(T113, le33_in_ga(T113))
le33_in_ga(0) → le33_out_ga(0)
U7_gaaa(T95, part20_out_gaaa(T95)) → part20_out_gaaa(T95)
U14_aaaaaaa(qs59_out_aa) → p56_out_aaaaaaa
U17_aaaaaaa(qs59_out_aa) → U18_aaaaaaa(app70_in_aaaa)
U1_ga(T46, gt10_out_ga(T46, T47)) → gt10_out_ga(s(T46), s(T47))
U8_ga(T113, le33_out_ga(T113)) → le33_out_ga(s(T113))
U18_aaaaaaa(app70_out_aaaa) → p56_out_aaaaaaa
app70_in_aaaa → U20_aaaa(app70_in_aaaa)
app70_in_aaaa → app70_out_aaaa
U20_aaaa(app70_out_aaaa) → app70_out_aaaa
part20_in_aaaa
qs59_in_aa
U2_aaaa(x0)
U3_aaaa(x0)
U5_aaaa(x0)
U6_aaaa(x0)
U19_aa(x0)
gt10_in_aa
U4_aaaa(x0)
le33_in_aa
U7_aaaa(x0)
p56_in_aaaaaaa
U1_aa(x0)
part20_in_gaaa(x0)
U8_aa(x0)
U9_aaaaaaa(x0)
U10_aaaaaaa(x0)
U12_aaaaaaa(x0)
U15_aaaaaaa(x0)
U2_gaaa(x0, x1)
U3_gaaa(x0, x1)
U5_gaaa(x0, x1)
U6_gaaa(x0, x1)
U11_aaaaaaa(x0)
U13_aaaaaaa(x0)
U16_aaaaaaa(x0)
gt10_in_ga(x0)
U4_gaaa(x0, x1)
le33_in_ga(x0)
U7_gaaa(x0, x1)
U14_aaaaaaa(x0)
U17_aaaaaaa(x0)
U1_ga(x0, x1)
U8_ga(x0, x1)
U18_aaaaaaa(x0)
app70_in_aaaa
U20_aaaa(x0)
U12_AAAAAAA(part20_out_aaaa) → U13_AAAAAAA(U19_aa(p56_in_aaaaaaa))
U12_AAAAAAA(part20_out_aaaa) → U13_AAAAAAA(qs59_out_aa)
U10_AAAAAAA(part20_out_aaaa) → QS59_IN_AA
QS59_IN_AA → P56_IN_AAAAAAA
U13_AAAAAAA(qs59_out_aa) → QS59_IN_AA
U12_AAAAAAA(part20_out_aaaa) → QS59_IN_AA
P56_IN_AAAAAAA → U15_AAAAAAA(part20_in_aaaa)
U15_AAAAAAA(part20_out_aaaa) → U16_AAAAAAA(qs59_in_aa)
U16_AAAAAAA(qs59_out_aa) → QS59_IN_AA
U15_AAAAAAA(part20_out_aaaa) → QS59_IN_AA
P56_IN_AAAAAAA → U10_AAAAAAA(U2_aaaa(gt10_in_aa))
P56_IN_AAAAAAA → U10_AAAAAAA(U3_aaaa(gt10_in_aa))
P56_IN_AAAAAAA → U10_AAAAAAA(U5_aaaa(le33_in_aa))
P56_IN_AAAAAAA → U10_AAAAAAA(U6_aaaa(le33_in_aa))
P56_IN_AAAAAAA → U10_AAAAAAA(part20_out_aaaa)
P56_IN_AAAAAAA → U12_AAAAAAA(U2_aaaa(gt10_in_aa))
P56_IN_AAAAAAA → U12_AAAAAAA(U3_aaaa(gt10_in_aa))
P56_IN_AAAAAAA → U12_AAAAAAA(U5_aaaa(le33_in_aa))
P56_IN_AAAAAAA → U12_AAAAAAA(U6_aaaa(le33_in_aa))
P56_IN_AAAAAAA → U12_AAAAAAA(part20_out_aaaa)
U12_AAAAAAA(part20_out_aaaa) → U13_AAAAAAA(U19_aa(p56_in_aaaaaaa))
U12_AAAAAAA(part20_out_aaaa) → U13_AAAAAAA(qs59_out_aa)
part20_in_aaaa → U2_aaaa(gt10_in_aa)
part20_in_aaaa → U3_aaaa(gt10_in_aa)
part20_in_aaaa → U5_aaaa(le33_in_aa)
part20_in_aaaa → U6_aaaa(le33_in_aa)
part20_in_aaaa → part20_out_aaaa
qs59_in_aa → U19_aa(p56_in_aaaaaaa)
qs59_in_aa → qs59_out_aa
U2_aaaa(gt10_out_aa(T70, T73)) → part20_out_aaaa
U3_aaaa(gt10_out_aa(T70, T73)) → U4_aaaa(part20_in_gaaa(T70))
U5_aaaa(le33_out_aa(T95)) → part20_out_aaaa
U6_aaaa(le33_out_aa(T95)) → U7_aaaa(part20_in_gaaa(T95))
U19_aa(p56_out_aaaaaaa) → qs59_out_aa
gt10_in_aa → U1_aa(gt10_in_aa)
gt10_in_aa → gt10_out_aa(s(0), 0)
U4_aaaa(part20_out_gaaa(T70)) → part20_out_aaaa
le33_in_aa → U8_aa(le33_in_aa)
le33_in_aa → le33_out_aa(0)
U7_aaaa(part20_out_gaaa(T95)) → part20_out_aaaa
p56_in_aaaaaaa → U9_aaaaaaa(part20_in_aaaa)
p56_in_aaaaaaa → U10_aaaaaaa(part20_in_aaaa)
p56_in_aaaaaaa → U12_aaaaaaa(part20_in_aaaa)
p56_in_aaaaaaa → U15_aaaaaaa(part20_in_aaaa)
U1_aa(gt10_out_aa(T46, T47)) → gt10_out_aa(s(T46), s(T47))
part20_in_gaaa(T70) → U2_gaaa(T70, gt10_in_ga(T70))
part20_in_gaaa(T70) → U3_gaaa(T70, gt10_in_ga(T70))
part20_in_gaaa(T95) → U5_gaaa(T95, le33_in_ga(T95))
part20_in_gaaa(T95) → U6_gaaa(T95, le33_in_ga(T95))
part20_in_gaaa(T128) → part20_out_gaaa(T128)
U8_aa(le33_out_aa(T113)) → le33_out_aa(s(T113))
U9_aaaaaaa(part20_out_aaaa) → p56_out_aaaaaaa
U10_aaaaaaa(part20_out_aaaa) → U11_aaaaaaa(qs59_in_aa)
U12_aaaaaaa(part20_out_aaaa) → U13_aaaaaaa(qs59_in_aa)
U15_aaaaaaa(part20_out_aaaa) → U16_aaaaaaa(qs59_in_aa)
U2_gaaa(T70, gt10_out_ga(T70, T73)) → part20_out_gaaa(T70)
U3_gaaa(T70, gt10_out_ga(T70, T73)) → U4_gaaa(T70, part20_in_gaaa(T70))
U5_gaaa(T95, le33_out_ga(T95)) → part20_out_gaaa(T95)
U6_gaaa(T95, le33_out_ga(T95)) → U7_gaaa(T95, part20_in_gaaa(T95))
U11_aaaaaaa(qs59_out_aa) → p56_out_aaaaaaa
U13_aaaaaaa(qs59_out_aa) → U14_aaaaaaa(qs59_in_aa)
U16_aaaaaaa(qs59_out_aa) → U17_aaaaaaa(qs59_in_aa)
gt10_in_ga(s(T46)) → U1_ga(T46, gt10_in_ga(T46))
gt10_in_ga(s(0)) → gt10_out_ga(s(0), 0)
U4_gaaa(T70, part20_out_gaaa(T70)) → part20_out_gaaa(T70)
le33_in_ga(s(T113)) → U8_ga(T113, le33_in_ga(T113))
le33_in_ga(0) → le33_out_ga(0)
U7_gaaa(T95, part20_out_gaaa(T95)) → part20_out_gaaa(T95)
U14_aaaaaaa(qs59_out_aa) → p56_out_aaaaaaa
U17_aaaaaaa(qs59_out_aa) → U18_aaaaaaa(app70_in_aaaa)
U1_ga(T46, gt10_out_ga(T46, T47)) → gt10_out_ga(s(T46), s(T47))
U8_ga(T113, le33_out_ga(T113)) → le33_out_ga(s(T113))
U18_aaaaaaa(app70_out_aaaa) → p56_out_aaaaaaa
app70_in_aaaa → U20_aaaa(app70_in_aaaa)
app70_in_aaaa → app70_out_aaaa
U20_aaaa(app70_out_aaaa) → app70_out_aaaa
part20_in_aaaa
qs59_in_aa
U2_aaaa(x0)
U3_aaaa(x0)
U5_aaaa(x0)
U6_aaaa(x0)
U19_aa(x0)
gt10_in_aa
U4_aaaa(x0)
le33_in_aa
U7_aaaa(x0)
p56_in_aaaaaaa
U1_aa(x0)
part20_in_gaaa(x0)
U8_aa(x0)
U9_aaaaaaa(x0)
U10_aaaaaaa(x0)
U12_aaaaaaa(x0)
U15_aaaaaaa(x0)
U2_gaaa(x0, x1)
U3_gaaa(x0, x1)
U5_gaaa(x0, x1)
U6_gaaa(x0, x1)
U11_aaaaaaa(x0)
U13_aaaaaaa(x0)
U16_aaaaaaa(x0)
gt10_in_ga(x0)
U4_gaaa(x0, x1)
le33_in_ga(x0)
U7_gaaa(x0, x1)
U14_aaaaaaa(x0)
U17_aaaaaaa(x0)
U1_ga(x0, x1)
U8_ga(x0, x1)
U18_aaaaaaa(x0)
app70_in_aaaa
U20_aaaa(x0)
P56_IN_AAAAAAA → U15_AAAAAAA(U2_aaaa(gt10_in_aa))
P56_IN_AAAAAAA → U15_AAAAAAA(U3_aaaa(gt10_in_aa))
P56_IN_AAAAAAA → U15_AAAAAAA(U5_aaaa(le33_in_aa))
P56_IN_AAAAAAA → U15_AAAAAAA(U6_aaaa(le33_in_aa))
P56_IN_AAAAAAA → U15_AAAAAAA(part20_out_aaaa)
U10_AAAAAAA(part20_out_aaaa) → QS59_IN_AA
QS59_IN_AA → P56_IN_AAAAAAA
U13_AAAAAAA(qs59_out_aa) → QS59_IN_AA
U12_AAAAAAA(part20_out_aaaa) → QS59_IN_AA
U15_AAAAAAA(part20_out_aaaa) → U16_AAAAAAA(qs59_in_aa)
U16_AAAAAAA(qs59_out_aa) → QS59_IN_AA
U15_AAAAAAA(part20_out_aaaa) → QS59_IN_AA
P56_IN_AAAAAAA → U10_AAAAAAA(U2_aaaa(gt10_in_aa))
P56_IN_AAAAAAA → U10_AAAAAAA(U3_aaaa(gt10_in_aa))
P56_IN_AAAAAAA → U10_AAAAAAA(U5_aaaa(le33_in_aa))
P56_IN_AAAAAAA → U10_AAAAAAA(U6_aaaa(le33_in_aa))
P56_IN_AAAAAAA → U10_AAAAAAA(part20_out_aaaa)
P56_IN_AAAAAAA → U12_AAAAAAA(U2_aaaa(gt10_in_aa))
P56_IN_AAAAAAA → U12_AAAAAAA(U3_aaaa(gt10_in_aa))
P56_IN_AAAAAAA → U12_AAAAAAA(U5_aaaa(le33_in_aa))
P56_IN_AAAAAAA → U12_AAAAAAA(U6_aaaa(le33_in_aa))
P56_IN_AAAAAAA → U12_AAAAAAA(part20_out_aaaa)
U12_AAAAAAA(part20_out_aaaa) → U13_AAAAAAA(U19_aa(p56_in_aaaaaaa))
U12_AAAAAAA(part20_out_aaaa) → U13_AAAAAAA(qs59_out_aa)
P56_IN_AAAAAAA → U15_AAAAAAA(U2_aaaa(gt10_in_aa))
P56_IN_AAAAAAA → U15_AAAAAAA(U3_aaaa(gt10_in_aa))
P56_IN_AAAAAAA → U15_AAAAAAA(U5_aaaa(le33_in_aa))
P56_IN_AAAAAAA → U15_AAAAAAA(U6_aaaa(le33_in_aa))
P56_IN_AAAAAAA → U15_AAAAAAA(part20_out_aaaa)
part20_in_aaaa → U2_aaaa(gt10_in_aa)
part20_in_aaaa → U3_aaaa(gt10_in_aa)
part20_in_aaaa → U5_aaaa(le33_in_aa)
part20_in_aaaa → U6_aaaa(le33_in_aa)
part20_in_aaaa → part20_out_aaaa
qs59_in_aa → U19_aa(p56_in_aaaaaaa)
qs59_in_aa → qs59_out_aa
U2_aaaa(gt10_out_aa(T70, T73)) → part20_out_aaaa
U3_aaaa(gt10_out_aa(T70, T73)) → U4_aaaa(part20_in_gaaa(T70))
U5_aaaa(le33_out_aa(T95)) → part20_out_aaaa
U6_aaaa(le33_out_aa(T95)) → U7_aaaa(part20_in_gaaa(T95))
U19_aa(p56_out_aaaaaaa) → qs59_out_aa
gt10_in_aa → U1_aa(gt10_in_aa)
gt10_in_aa → gt10_out_aa(s(0), 0)
U4_aaaa(part20_out_gaaa(T70)) → part20_out_aaaa
le33_in_aa → U8_aa(le33_in_aa)
le33_in_aa → le33_out_aa(0)
U7_aaaa(part20_out_gaaa(T95)) → part20_out_aaaa
p56_in_aaaaaaa → U9_aaaaaaa(part20_in_aaaa)
p56_in_aaaaaaa → U10_aaaaaaa(part20_in_aaaa)
p56_in_aaaaaaa → U12_aaaaaaa(part20_in_aaaa)
p56_in_aaaaaaa → U15_aaaaaaa(part20_in_aaaa)
U1_aa(gt10_out_aa(T46, T47)) → gt10_out_aa(s(T46), s(T47))
part20_in_gaaa(T70) → U2_gaaa(T70, gt10_in_ga(T70))
part20_in_gaaa(T70) → U3_gaaa(T70, gt10_in_ga(T70))
part20_in_gaaa(T95) → U5_gaaa(T95, le33_in_ga(T95))
part20_in_gaaa(T95) → U6_gaaa(T95, le33_in_ga(T95))
part20_in_gaaa(T128) → part20_out_gaaa(T128)
U8_aa(le33_out_aa(T113)) → le33_out_aa(s(T113))
U9_aaaaaaa(part20_out_aaaa) → p56_out_aaaaaaa
U10_aaaaaaa(part20_out_aaaa) → U11_aaaaaaa(qs59_in_aa)
U12_aaaaaaa(part20_out_aaaa) → U13_aaaaaaa(qs59_in_aa)
U15_aaaaaaa(part20_out_aaaa) → U16_aaaaaaa(qs59_in_aa)
U2_gaaa(T70, gt10_out_ga(T70, T73)) → part20_out_gaaa(T70)
U3_gaaa(T70, gt10_out_ga(T70, T73)) → U4_gaaa(T70, part20_in_gaaa(T70))
U5_gaaa(T95, le33_out_ga(T95)) → part20_out_gaaa(T95)
U6_gaaa(T95, le33_out_ga(T95)) → U7_gaaa(T95, part20_in_gaaa(T95))
U11_aaaaaaa(qs59_out_aa) → p56_out_aaaaaaa
U13_aaaaaaa(qs59_out_aa) → U14_aaaaaaa(qs59_in_aa)
U16_aaaaaaa(qs59_out_aa) → U17_aaaaaaa(qs59_in_aa)
gt10_in_ga(s(T46)) → U1_ga(T46, gt10_in_ga(T46))
gt10_in_ga(s(0)) → gt10_out_ga(s(0), 0)
U4_gaaa(T70, part20_out_gaaa(T70)) → part20_out_gaaa(T70)
le33_in_ga(s(T113)) → U8_ga(T113, le33_in_ga(T113))
le33_in_ga(0) → le33_out_ga(0)
U7_gaaa(T95, part20_out_gaaa(T95)) → part20_out_gaaa(T95)
U14_aaaaaaa(qs59_out_aa) → p56_out_aaaaaaa
U17_aaaaaaa(qs59_out_aa) → U18_aaaaaaa(app70_in_aaaa)
U1_ga(T46, gt10_out_ga(T46, T47)) → gt10_out_ga(s(T46), s(T47))
U8_ga(T113, le33_out_ga(T113)) → le33_out_ga(s(T113))
U18_aaaaaaa(app70_out_aaaa) → p56_out_aaaaaaa
app70_in_aaaa → U20_aaaa(app70_in_aaaa)
app70_in_aaaa → app70_out_aaaa
U20_aaaa(app70_out_aaaa) → app70_out_aaaa
part20_in_aaaa
qs59_in_aa
U2_aaaa(x0)
U3_aaaa(x0)
U5_aaaa(x0)
U6_aaaa(x0)
U19_aa(x0)
gt10_in_aa
U4_aaaa(x0)
le33_in_aa
U7_aaaa(x0)
p56_in_aaaaaaa
U1_aa(x0)
part20_in_gaaa(x0)
U8_aa(x0)
U9_aaaaaaa(x0)
U10_aaaaaaa(x0)
U12_aaaaaaa(x0)
U15_aaaaaaa(x0)
U2_gaaa(x0, x1)
U3_gaaa(x0, x1)
U5_gaaa(x0, x1)
U6_gaaa(x0, x1)
U11_aaaaaaa(x0)
U13_aaaaaaa(x0)
U16_aaaaaaa(x0)
gt10_in_ga(x0)
U4_gaaa(x0, x1)
le33_in_ga(x0)
U7_gaaa(x0, x1)
U14_aaaaaaa(x0)
U17_aaaaaaa(x0)
U1_ga(x0, x1)
U8_ga(x0, x1)
U18_aaaaaaa(x0)
app70_in_aaaa
U20_aaaa(x0)
U15_AAAAAAA(part20_out_aaaa) → U16_AAAAAAA(U19_aa(p56_in_aaaaaaa))
U15_AAAAAAA(part20_out_aaaa) → U16_AAAAAAA(qs59_out_aa)
U10_AAAAAAA(part20_out_aaaa) → QS59_IN_AA
QS59_IN_AA → P56_IN_AAAAAAA
U13_AAAAAAA(qs59_out_aa) → QS59_IN_AA
U12_AAAAAAA(part20_out_aaaa) → QS59_IN_AA
U16_AAAAAAA(qs59_out_aa) → QS59_IN_AA
U15_AAAAAAA(part20_out_aaaa) → QS59_IN_AA
P56_IN_AAAAAAA → U10_AAAAAAA(U2_aaaa(gt10_in_aa))
P56_IN_AAAAAAA → U10_AAAAAAA(U3_aaaa(gt10_in_aa))
P56_IN_AAAAAAA → U10_AAAAAAA(U5_aaaa(le33_in_aa))
P56_IN_AAAAAAA → U10_AAAAAAA(U6_aaaa(le33_in_aa))
P56_IN_AAAAAAA → U10_AAAAAAA(part20_out_aaaa)
P56_IN_AAAAAAA → U12_AAAAAAA(U2_aaaa(gt10_in_aa))
P56_IN_AAAAAAA → U12_AAAAAAA(U3_aaaa(gt10_in_aa))
P56_IN_AAAAAAA → U12_AAAAAAA(U5_aaaa(le33_in_aa))
P56_IN_AAAAAAA → U12_AAAAAAA(U6_aaaa(le33_in_aa))
P56_IN_AAAAAAA → U12_AAAAAAA(part20_out_aaaa)
U12_AAAAAAA(part20_out_aaaa) → U13_AAAAAAA(U19_aa(p56_in_aaaaaaa))
U12_AAAAAAA(part20_out_aaaa) → U13_AAAAAAA(qs59_out_aa)
P56_IN_AAAAAAA → U15_AAAAAAA(U2_aaaa(gt10_in_aa))
P56_IN_AAAAAAA → U15_AAAAAAA(U3_aaaa(gt10_in_aa))
P56_IN_AAAAAAA → U15_AAAAAAA(U5_aaaa(le33_in_aa))
P56_IN_AAAAAAA → U15_AAAAAAA(U6_aaaa(le33_in_aa))
P56_IN_AAAAAAA → U15_AAAAAAA(part20_out_aaaa)
U15_AAAAAAA(part20_out_aaaa) → U16_AAAAAAA(U19_aa(p56_in_aaaaaaa))
U15_AAAAAAA(part20_out_aaaa) → U16_AAAAAAA(qs59_out_aa)
part20_in_aaaa → U2_aaaa(gt10_in_aa)
part20_in_aaaa → U3_aaaa(gt10_in_aa)
part20_in_aaaa → U5_aaaa(le33_in_aa)
part20_in_aaaa → U6_aaaa(le33_in_aa)
part20_in_aaaa → part20_out_aaaa
qs59_in_aa → U19_aa(p56_in_aaaaaaa)
qs59_in_aa → qs59_out_aa
U2_aaaa(gt10_out_aa(T70, T73)) → part20_out_aaaa
U3_aaaa(gt10_out_aa(T70, T73)) → U4_aaaa(part20_in_gaaa(T70))
U5_aaaa(le33_out_aa(T95)) → part20_out_aaaa
U6_aaaa(le33_out_aa(T95)) → U7_aaaa(part20_in_gaaa(T95))
U19_aa(p56_out_aaaaaaa) → qs59_out_aa
gt10_in_aa → U1_aa(gt10_in_aa)
gt10_in_aa → gt10_out_aa(s(0), 0)
U4_aaaa(part20_out_gaaa(T70)) → part20_out_aaaa
le33_in_aa → U8_aa(le33_in_aa)
le33_in_aa → le33_out_aa(0)
U7_aaaa(part20_out_gaaa(T95)) → part20_out_aaaa
p56_in_aaaaaaa → U9_aaaaaaa(part20_in_aaaa)
p56_in_aaaaaaa → U10_aaaaaaa(part20_in_aaaa)
p56_in_aaaaaaa → U12_aaaaaaa(part20_in_aaaa)
p56_in_aaaaaaa → U15_aaaaaaa(part20_in_aaaa)
U1_aa(gt10_out_aa(T46, T47)) → gt10_out_aa(s(T46), s(T47))
part20_in_gaaa(T70) → U2_gaaa(T70, gt10_in_ga(T70))
part20_in_gaaa(T70) → U3_gaaa(T70, gt10_in_ga(T70))
part20_in_gaaa(T95) → U5_gaaa(T95, le33_in_ga(T95))
part20_in_gaaa(T95) → U6_gaaa(T95, le33_in_ga(T95))
part20_in_gaaa(T128) → part20_out_gaaa(T128)
U8_aa(le33_out_aa(T113)) → le33_out_aa(s(T113))
U9_aaaaaaa(part20_out_aaaa) → p56_out_aaaaaaa
U10_aaaaaaa(part20_out_aaaa) → U11_aaaaaaa(qs59_in_aa)
U12_aaaaaaa(part20_out_aaaa) → U13_aaaaaaa(qs59_in_aa)
U15_aaaaaaa(part20_out_aaaa) → U16_aaaaaaa(qs59_in_aa)
U2_gaaa(T70, gt10_out_ga(T70, T73)) → part20_out_gaaa(T70)
U3_gaaa(T70, gt10_out_ga(T70, T73)) → U4_gaaa(T70, part20_in_gaaa(T70))
U5_gaaa(T95, le33_out_ga(T95)) → part20_out_gaaa(T95)
U6_gaaa(T95, le33_out_ga(T95)) → U7_gaaa(T95, part20_in_gaaa(T95))
U11_aaaaaaa(qs59_out_aa) → p56_out_aaaaaaa
U13_aaaaaaa(qs59_out_aa) → U14_aaaaaaa(qs59_in_aa)
U16_aaaaaaa(qs59_out_aa) → U17_aaaaaaa(qs59_in_aa)
gt10_in_ga(s(T46)) → U1_ga(T46, gt10_in_ga(T46))
gt10_in_ga(s(0)) → gt10_out_ga(s(0), 0)
U4_gaaa(T70, part20_out_gaaa(T70)) → part20_out_gaaa(T70)
le33_in_ga(s(T113)) → U8_ga(T113, le33_in_ga(T113))
le33_in_ga(0) → le33_out_ga(0)
U7_gaaa(T95, part20_out_gaaa(T95)) → part20_out_gaaa(T95)
U14_aaaaaaa(qs59_out_aa) → p56_out_aaaaaaa
U17_aaaaaaa(qs59_out_aa) → U18_aaaaaaa(app70_in_aaaa)
U1_ga(T46, gt10_out_ga(T46, T47)) → gt10_out_ga(s(T46), s(T47))
U8_ga(T113, le33_out_ga(T113)) → le33_out_ga(s(T113))
U18_aaaaaaa(app70_out_aaaa) → p56_out_aaaaaaa
app70_in_aaaa → U20_aaaa(app70_in_aaaa)
app70_in_aaaa → app70_out_aaaa
U20_aaaa(app70_out_aaaa) → app70_out_aaaa
part20_in_aaaa
qs59_in_aa
U2_aaaa(x0)
U3_aaaa(x0)
U5_aaaa(x0)
U6_aaaa(x0)
U19_aa(x0)
gt10_in_aa
U4_aaaa(x0)
le33_in_aa
U7_aaaa(x0)
p56_in_aaaaaaa
U1_aa(x0)
part20_in_gaaa(x0)
U8_aa(x0)
U9_aaaaaaa(x0)
U10_aaaaaaa(x0)
U12_aaaaaaa(x0)
U15_aaaaaaa(x0)
U2_gaaa(x0, x1)
U3_gaaa(x0, x1)
U5_gaaa(x0, x1)
U6_gaaa(x0, x1)
U11_aaaaaaa(x0)
U13_aaaaaaa(x0)
U16_aaaaaaa(x0)
gt10_in_ga(x0)
U4_gaaa(x0, x1)
le33_in_ga(x0)
U7_gaaa(x0, x1)
U14_aaaaaaa(x0)
U17_aaaaaaa(x0)
U1_ga(x0, x1)
U8_ga(x0, x1)
U18_aaaaaaa(x0)
app70_in_aaaa
U20_aaaa(x0)
qs1_in_ag(.(T26, .(T27, T28)), T8) → U44_ag(T26, T27, T28, T8, gt10_in_aa(T26, T27))
gt10_in_aa(s(T46), s(T47)) → U1_aa(T46, T47, gt10_in_aa(T46, T47))
gt10_in_aa(s(0), 0) → gt10_out_aa(s(0), 0)
U1_aa(T46, T47, gt10_out_aa(T46, T47)) → gt10_out_aa(s(T46), s(T47))
U44_ag(T26, T27, T28, T8, gt10_out_aa(T26, T27)) → qs1_out_ag(.(T26, .(T27, T28)), T8)
qs1_in_ag(.(T31, .(T33, T32)), T8) → U45_ag(T31, T33, T32, T8, gt10_in_aa(T31, T33))
U45_ag(T31, T33, T32, T8, gt10_out_aa(T31, T33)) → U46_ag(T31, T33, T32, T8, part20_in_gaaa(T31, T32, X47, X48))
part20_in_gaaa(T70, .(T73, T74), .(T73, X119), X120) → U2_gaaa(T70, T73, T74, X119, X120, gt10_in_ga(T70, T73))
gt10_in_ga(s(T46), s(T47)) → U1_ga(T46, T47, gt10_in_ga(T46, T47))
gt10_in_ga(s(0), 0) → gt10_out_ga(s(0), 0)
U1_ga(T46, T47, gt10_out_ga(T46, T47)) → gt10_out_ga(s(T46), s(T47))
U2_gaaa(T70, T73, T74, X119, X120, gt10_out_ga(T70, T73)) → part20_out_gaaa(T70, .(T73, T74), .(T73, X119), X120)
part20_in_gaaa(T70, .(T73, T77), .(T73, X119), X120) → U3_gaaa(T70, T73, T77, X119, X120, gt10_in_ga(T70, T73))
U3_gaaa(T70, T73, T77, X119, X120, gt10_out_ga(T70, T73)) → U4_gaaa(T70, T73, T77, X119, X120, part20_in_gaaa(T70, T77, X119, X120))
part20_in_gaaa(T95, .(T98, T99), X170, .(T98, X171)) → U5_gaaa(T95, T98, T99, X170, X171, le33_in_ga(T95, T98))
le33_in_ga(s(T113), s(T115)) → U8_ga(T113, T115, le33_in_ga(T113, T115))
le33_in_ga(0, s(T122)) → le33_out_ga(0, s(T122))
le33_in_ga(0, 0) → le33_out_ga(0, 0)
U8_ga(T113, T115, le33_out_ga(T113, T115)) → le33_out_ga(s(T113), s(T115))
U5_gaaa(T95, T98, T99, X170, X171, le33_out_ga(T95, T98)) → part20_out_gaaa(T95, .(T98, T99), X170, .(T98, X171))
part20_in_gaaa(T95, .(T98, T102), X170, .(T98, X171)) → U6_gaaa(T95, T98, T102, X170, X171, le33_in_ga(T95, T98))
U6_gaaa(T95, T98, T102, X170, X171, le33_out_ga(T95, T98)) → U7_gaaa(T95, T98, T102, X170, X171, part20_in_gaaa(T95, T102, X170, X171))
part20_in_gaaa(T128, [], [], []) → part20_out_gaaa(T128, [], [], [])
U7_gaaa(T95, T98, T102, X170, X171, part20_out_gaaa(T95, T102, X170, X171)) → part20_out_gaaa(T95, .(T98, T102), X170, .(T98, X171))
U4_gaaa(T70, T73, T77, X119, X120, part20_out_gaaa(T70, T77, X119, X120)) → part20_out_gaaa(T70, .(T73, T77), .(T73, X119), X120)
U46_ag(T31, T33, T32, T8, part20_out_gaaa(T31, T32, X47, X48)) → qs1_out_ag(.(T31, .(T33, T32)), T8)
U45_ag(T31, T33, T32, T8, gt10_out_aa(T31, T33)) → U47_ag(T31, T33, T32, T8, part20_in_gaaa(T31, T32, T53, T54))
U47_ag(T31, T33, T32, T8, part20_out_gaaa(T31, T32, T53, T54)) → U48_ag(T31, T33, T32, T8, qs51_in_gaa(T33, T53, X9))
qs51_in_gaa(T148, T149, X273) → U37_gaa(T148, T149, X273, p56_in_gaaaaaa(T148, T149, X269, X270, X271, X272, X273))
p56_in_gaaaaaa(T148, T149, X269, X270, X271, X272, X273) → U9_gaaaaaa(T148, T149, X269, X270, X271, X272, X273, part20_in_gaaa(T148, T149, X269, X270))
U9_gaaaaaa(T148, T149, X269, X270, X271, X272, X273, part20_out_gaaa(T148, T149, X269, X270)) → p56_out_gaaaaaa(T148, T149, X269, X270, X271, X272, X273)
p56_in_gaaaaaa(T148, T149, T153, T154, X271, X272, X273) → U10_gaaaaaa(T148, T149, T153, T154, X271, X272, X273, part20_in_gaaa(T148, T149, T153, T154))
U10_gaaaaaa(T148, T149, T153, T154, X271, X272, X273, part20_out_gaaa(T148, T149, T153, T154)) → U11_gaaaaaa(T148, T149, T153, T154, X271, X272, X273, qs59_in_aa(T153, X271))
qs59_in_aa(.(T171, T172), X335) → U19_aa(T171, T172, X335, p56_in_aaaaaaa(T171, T172, X331, X332, X333, X334, X335))
p56_in_aaaaaaa(T148, T149, X269, X270, X271, X272, X273) → U9_aaaaaaa(T148, T149, X269, X270, X271, X272, X273, part20_in_aaaa(T148, T149, X269, X270))
part20_in_aaaa(T70, .(T73, T74), .(T73, X119), X120) → U2_aaaa(T70, T73, T74, X119, X120, gt10_in_aa(T70, T73))
U2_aaaa(T70, T73, T74, X119, X120, gt10_out_aa(T70, T73)) → part20_out_aaaa(T70, .(T73, T74), .(T73, X119), X120)
part20_in_aaaa(T70, .(T73, T77), .(T73, X119), X120) → U3_aaaa(T70, T73, T77, X119, X120, gt10_in_aa(T70, T73))
U3_aaaa(T70, T73, T77, X119, X120, gt10_out_aa(T70, T73)) → U4_aaaa(T70, T73, T77, X119, X120, part20_in_gaaa(T70, T77, X119, X120))
U4_aaaa(T70, T73, T77, X119, X120, part20_out_gaaa(T70, T77, X119, X120)) → part20_out_aaaa(T70, .(T73, T77), .(T73, X119), X120)
part20_in_aaaa(T95, .(T98, T99), X170, .(T98, X171)) → U5_aaaa(T95, T98, T99, X170, X171, le33_in_aa(T95, T98))
le33_in_aa(s(T113), s(T115)) → U8_aa(T113, T115, le33_in_aa(T113, T115))
le33_in_aa(0, s(T122)) → le33_out_aa(0, s(T122))
le33_in_aa(0, 0) → le33_out_aa(0, 0)
U8_aa(T113, T115, le33_out_aa(T113, T115)) → le33_out_aa(s(T113), s(T115))
U5_aaaa(T95, T98, T99, X170, X171, le33_out_aa(T95, T98)) → part20_out_aaaa(T95, .(T98, T99), X170, .(T98, X171))
part20_in_aaaa(T95, .(T98, T102), X170, .(T98, X171)) → U6_aaaa(T95, T98, T102, X170, X171, le33_in_aa(T95, T98))
U6_aaaa(T95, T98, T102, X170, X171, le33_out_aa(T95, T98)) → U7_aaaa(T95, T98, T102, X170, X171, part20_in_gaaa(T95, T102, X170, X171))
U7_aaaa(T95, T98, T102, X170, X171, part20_out_gaaa(T95, T102, X170, X171)) → part20_out_aaaa(T95, .(T98, T102), X170, .(T98, X171))
part20_in_aaaa(T128, [], [], []) → part20_out_aaaa(T128, [], [], [])
U9_aaaaaaa(T148, T149, X269, X270, X271, X272, X273, part20_out_aaaa(T148, T149, X269, X270)) → p56_out_aaaaaaa(T148, T149, X269, X270, X271, X272, X273)
p56_in_aaaaaaa(T148, T149, T153, T154, X271, X272, X273) → U10_aaaaaaa(T148, T149, T153, T154, X271, X272, X273, part20_in_aaaa(T148, T149, T153, T154))
U10_aaaaaaa(T148, T149, T153, T154, X271, X272, X273, part20_out_aaaa(T148, T149, T153, T154)) → U11_aaaaaaa(T148, T149, T153, T154, X271, X272, X273, qs59_in_aa(T153, X271))
qs59_in_aa([], []) → qs59_out_aa([], [])
U11_aaaaaaa(T148, T149, T153, T154, X271, X272, X273, qs59_out_aa(T153, X271)) → p56_out_aaaaaaa(T148, T149, T153, T154, X271, X272, X273)
p56_in_aaaaaaa(T148, T149, T153, T154, T160, X272, X273) → U12_aaaaaaa(T148, T149, T153, T154, T160, X272, X273, part20_in_aaaa(T148, T149, T153, T154))
U12_aaaaaaa(T148, T149, T153, T154, T160, X272, X273, part20_out_aaaa(T148, T149, T153, T154)) → U13_aaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_in_aa(T153, T160))
U13_aaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_out_aa(T153, T160)) → U14_aaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_in_aa(T154, X272))
U14_aaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_out_aa(T154, X272)) → p56_out_aaaaaaa(T148, T149, T153, T154, T160, X272, X273)
p56_in_aaaaaaa(T148, T149, T153, T154, T160, T178, X273) → U15_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, part20_in_aaaa(T148, T149, T153, T154))
U15_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, part20_out_aaaa(T148, T149, T153, T154)) → U16_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_in_aa(T153, T160))
U16_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_out_aa(T153, T160)) → U17_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_in_aa(T154, T178))
U17_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_out_aa(T154, T178)) → U18_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, app70_in_aaaa(T160, T148, T178, X273))
app70_in_aaaa(.(T201, T202), T203, T204, .(T201, X391)) → U20_aaaa(T201, T202, T203, T204, X391, app70_in_aaaa(T202, T203, T204, X391))
app70_in_aaaa([], T213, T214, .(T213, T214)) → app70_out_aaaa([], T213, T214, .(T213, T214))
U20_aaaa(T201, T202, T203, T204, X391, app70_out_aaaa(T202, T203, T204, X391)) → app70_out_aaaa(.(T201, T202), T203, T204, .(T201, X391))
U18_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, app70_out_aaaa(T160, T148, T178, X273)) → p56_out_aaaaaaa(T148, T149, T153, T154, T160, T178, X273)
U19_aa(T171, T172, X335, p56_out_aaaaaaa(T171, T172, X331, X332, X333, X334, X335)) → qs59_out_aa(.(T171, T172), X335)
U11_gaaaaaa(T148, T149, T153, T154, X271, X272, X273, qs59_out_aa(T153, X271)) → p56_out_gaaaaaa(T148, T149, T153, T154, X271, X272, X273)
p56_in_gaaaaaa(T148, T149, T153, T154, T160, X272, X273) → U12_gaaaaaa(T148, T149, T153, T154, T160, X272, X273, part20_in_gaaa(T148, T149, T153, T154))
U12_gaaaaaa(T148, T149, T153, T154, T160, X272, X273, part20_out_gaaa(T148, T149, T153, T154)) → U13_gaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_in_aa(T153, T160))
U13_gaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_out_aa(T153, T160)) → U14_gaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_in_aa(T154, X272))
U14_gaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_out_aa(T154, X272)) → p56_out_gaaaaaa(T148, T149, T153, T154, T160, X272, X273)
p56_in_gaaaaaa(T148, T149, T153, T154, T160, T178, X273) → U15_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, part20_in_gaaa(T148, T149, T153, T154))
U15_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, part20_out_gaaa(T148, T149, T153, T154)) → U16_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_in_aa(T153, T160))
U16_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_out_aa(T153, T160)) → U17_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_in_aa(T154, T178))
U17_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_out_aa(T154, T178)) → U18_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, app70_in_agaa(T160, T148, T178, X273))
app70_in_agaa(.(T201, T202), T203, T204, .(T201, X391)) → U20_agaa(T201, T202, T203, T204, X391, app70_in_agaa(T202, T203, T204, X391))
app70_in_agaa([], T213, T214, .(T213, T214)) → app70_out_agaa([], T213, T214, .(T213, T214))
U20_agaa(T201, T202, T203, T204, X391, app70_out_agaa(T202, T203, T204, X391)) → app70_out_agaa(.(T201, T202), T203, T204, .(T201, X391))
U18_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, app70_out_agaa(T160, T148, T178, X273)) → p56_out_gaaaaaa(T148, T149, T153, T154, T160, T178, X273)
U37_gaa(T148, T149, X273, p56_out_gaaaaaa(T148, T149, X269, X270, X271, X272, X273)) → qs51_out_gaa(T148, T149, X273)
U48_ag(T31, T33, T32, T8, qs51_out_gaa(T33, T53, X9)) → qs1_out_ag(.(T31, .(T33, T32)), T8)
U47_ag(T31, T33, T32, T8, part20_out_gaaa(T31, T32, T53, T54)) → U49_ag(T31, T33, T32, T8, T54, qs51_in_gaa(T33, T53, T131))
U49_ag(T31, T33, T32, T8, T54, qs51_out_gaa(T33, T53, T131)) → U50_ag(T31, T33, T32, T8, p52_in_aaagg(T54, X10, T131, T31, T8))
p52_in_aaagg(T54, X10, T131, T31, T8) → U33_aaagg(T54, X10, T131, T31, T8, qs80_in_aa(T54, X10))
qs80_in_aa(.(T230, T231), X452) → U22_aa(T230, T231, X452, part87_in_aaaa(T230, T231, X448, X449))
part87_in_aaaa(T256, .(T257, T258), .(T257, X503), X504) → U38_aaaa(T256, T257, T258, X503, X504, gt10_in_aa(T256, T257))
U38_aaaa(T256, T257, T258, X503, X504, gt10_out_aa(T256, T257)) → part87_out_aaaa(T256, .(T257, T258), .(T257, X503), X504)
part87_in_aaaa(T261, .(T257, T262), .(T257, X503), X504) → U39_aaaa(T261, T257, T262, X503, X504, gt10_in_aa(T261, T257))
U39_aaaa(T261, T257, T262, X503, X504, gt10_out_aa(T261, T257)) → U40_aaaa(T261, T257, T262, X503, X504, part20_in_gaaa(T261, T262, X503, X504))
U40_aaaa(T261, T257, T262, X503, X504, part20_out_gaaa(T261, T262, X503, X504)) → part87_out_aaaa(T261, .(T257, T262), .(T257, X503), X504)
part87_in_aaaa(T283, .(T284, T285), X554, .(T284, X555)) → U41_aaaa(T283, T284, T285, X554, X555, le100_in_aa(T283, T284))
le100_in_aa(s(T302), s(T303)) → U21_aa(T302, T303, le100_in_aa(T302, T303))
le100_in_aa(0, s(T310)) → le100_out_aa(0, s(T310))
le100_in_aa(0, 0) → le100_out_aa(0, 0)
U21_aa(T302, T303, le100_out_aa(T302, T303)) → le100_out_aa(s(T302), s(T303))
U41_aaaa(T283, T284, T285, X554, X555, le100_out_aa(T283, T284)) → part87_out_aaaa(T283, .(T284, T285), X554, .(T284, X555))
part87_in_aaaa(T288, .(T284, T289), X554, .(T284, X555)) → U42_aaaa(T288, T284, T289, X554, X555, le100_in_aa(T288, T284))
U42_aaaa(T288, T284, T289, X554, X555, le100_out_aa(T288, T284)) → U43_aaaa(T288, T284, T289, X554, X555, part20_in_gaaa(T288, T289, X554, X555))
U43_aaaa(T288, T284, T289, X554, X555, part20_out_gaaa(T288, T289, X554, X555)) → part87_out_aaaa(T288, .(T284, T289), X554, .(T284, X555))
part87_in_aaaa(T316, [], [], []) → part87_out_aaaa(T316, [], [], [])
U22_aa(T230, T231, X452, part87_out_aaaa(T230, T231, X448, X449)) → qs80_out_aa(.(T230, T231), X452)
qs80_in_aa(.(T237, T231), X452) → U23_aa(T237, T231, X452, part87_in_aaaa(T237, T231, T235, T236))
U23_aa(T237, T231, X452, part87_out_aaaa(T237, T231, T235, T236)) → U24_aa(T237, T231, X452, qs80_in_aa(T235, X450))
qs80_in_aa(.(T325, T231), X452) → U27_aa(T325, T231, X452, part87_in_aaaa(T325, T231, T235, T236))
U27_aa(T325, T231, X452, part87_out_aaaa(T325, T231, T235, T236)) → U28_aa(T325, T231, X452, T236, qs80_in_aa(T235, T319))
qs80_in_aa([], []) → qs80_out_aa([], [])
U28_aa(T325, T231, X452, T236, qs80_out_aa(T235, T319)) → U29_aa(T325, T231, X452, T319, qs80_in_aa(T236, T324))
U29_aa(T325, T231, X452, T319, qs80_out_aa(T236, T324)) → U30_aa(T325, T231, X452, app121_in_aaaa(T319, T325, T324, X452))
app121_in_aaaa(.(T348, T349), T352, T353, .(T348, X657)) → U31_aaaa(T348, T349, T352, T353, X657, app121_in_aaaa(T349, T352, T353, X657))
app121_in_aaaa([], T362, T363, .(T362, T363)) → app121_out_aaaa([], T362, T363, .(T362, T363))
U31_aaaa(T348, T349, T352, T353, X657, app121_out_aaaa(T349, T352, T353, X657)) → app121_out_aaaa(.(T348, T349), T352, T353, .(T348, X657))
U30_aa(T325, T231, X452, app121_out_aaaa(T319, T325, T324, X452)) → qs80_out_aa(.(T325, T231), X452)
U24_aa(T237, T231, X452, qs80_out_aa(T235, X450)) → qs80_out_aa(.(T237, T231), X452)
U23_aa(T237, T231, X452, part87_out_aaaa(T237, T231, T235, T236)) → U25_aa(T237, T231, X452, T236, qs80_in_aa(T235, T319))
U25_aa(T237, T231, X452, T236, qs80_out_aa(T235, T319)) → U26_aa(T237, T231, X452, qs80_in_aa(T236, X451))
U26_aa(T237, T231, X452, qs80_out_aa(T236, X451)) → qs80_out_aa(.(T237, T231), X452)
U33_aaagg(T54, X10, T131, T31, T8, qs80_out_aa(T54, X10)) → p52_out_aaagg(T54, X10, T131, T31, T8)
p52_in_aaagg(T54, T217, T131, T31, T8) → U34_aaagg(T54, T217, T131, T31, T8, qs80_in_aa(T54, T217))
U34_aaagg(T54, T217, T131, T31, T8, qs80_out_aa(T54, T217)) → U35_aaagg(T54, T217, T131, T31, T8, app81_in_agag(T131, T31, T217, T8))
app81_in_agag(.(T389, T390), T391, T394, .(T389, T393)) → U32_agag(T389, T390, T391, T394, T393, app81_in_agag(T390, T391, T394, T393))
app81_in_agag([], T404, T405, .(T404, T405)) → app81_out_agag([], T404, T405, .(T404, T405))
U32_agag(T389, T390, T391, T394, T393, app81_out_agag(T390, T391, T394, T393)) → app81_out_agag(.(T389, T390), T391, T394, .(T389, T393))
U35_aaagg(T54, T217, T131, T31, T8, app81_out_agag(T131, T31, T217, T8)) → p52_out_aaagg(T54, T217, T131, T31, T8)
U50_ag(T31, T33, T32, T8, p52_out_aaagg(T54, X10, T131, T31, T8)) → qs1_out_ag(.(T31, .(T33, T32)), T8)
qs1_in_ag(.(T421, .(T422, T423)), T8) → U51_ag(T421, T422, T423, T8, le100_in_aa(T421, T422))
U51_ag(T421, T422, T423, T8, le100_out_aa(T421, T422)) → qs1_out_ag(.(T421, .(T422, T423)), T8)
qs1_in_ag(.(T426, .(T428, T427)), T8) → U52_ag(T426, T428, T427, T8, le100_in_aa(T426, T428))
U52_ag(T426, T428, T427, T8, le100_out_aa(T426, T428)) → U53_ag(T426, T428, T427, T8, part20_in_gaaa(T426, T427, X740, X741))
U53_ag(T426, T428, T427, T8, part20_out_gaaa(T426, T427, X740, X741)) → qs1_out_ag(.(T426, .(T428, T427)), T8)
qs1_in_ag(.(T426, .(T436, T427)), T8) → U54_ag(T426, T436, T427, T8, le100_in_aa(T426, T436))
U54_ag(T426, T436, T427, T8, le100_out_aa(T426, T436)) → U55_ag(T426, T436, T427, T8, part20_in_gaaa(T426, T427, T434, T435))
U55_ag(T426, T436, T427, T8, part20_out_gaaa(T426, T427, T434, T435)) → U56_ag(T426, T436, T427, T8, qs80_in_aa(T434, X9))
U56_ag(T426, T436, T427, T8, qs80_out_aa(T434, X9)) → qs1_out_ag(.(T426, .(T436, T427)), T8)
U55_ag(T426, T436, T427, T8, part20_out_gaaa(T426, T427, T434, T435)) → U57_ag(T426, T436, T427, T8, T435, qs80_in_aa(T434, T442))
U57_ag(T426, T436, T427, T8, T435, qs80_out_aa(T434, T442)) → U58_ag(T426, T436, T427, T8, p52_in_aaagg(.(T436, T435), X10, T442, T426, T8))
U58_ag(T426, T436, T427, T8, p52_out_aaagg(.(T436, T435), X10, T442, T426, T8)) → qs1_out_ag(.(T426, .(T436, T427)), T8)
qs1_in_ag(.(T452, []), T8) → U59_ag(T452, T8, qs155_in_a(X9))
qs155_in_a([]) → qs155_out_a([])
U59_ag(T452, T8, qs155_out_a(X9)) → qs1_out_ag(.(T452, []), T8)
qs1_in_ag(.(T452, []), T8) → U60_ag(T452, T8, qs155_in_a(T455))
U60_ag(T452, T8, qs155_out_a(T455)) → U61_ag(T452, T8, qs155_in_a(X10))
U61_ag(T452, T8, qs155_out_a(X10)) → qs1_out_ag(.(T452, []), T8)
U60_ag(T452, T8, qs155_out_a(T455)) → U62_ag(T452, T8, T455, qs155_in_a(T460))
U62_ag(T452, T8, T455, qs155_out_a(T460)) → U63_ag(T452, T8, app162_in_gagg(T455, T452, T460, T8))
app162_in_gagg(.(T486, T487), T491, T489, .(T486, T490)) → U36_gagg(T486, T487, T491, T489, T490, app162_in_gagg(T487, T491, T489, T490))
app162_in_gagg([], T501, T502, .(T501, T502)) → app162_out_gagg([], T501, T502, .(T501, T502))
U36_gagg(T486, T487, T491, T489, T490, app162_out_gagg(T487, T491, T489, T490)) → app162_out_gagg(.(T486, T487), T491, T489, .(T486, T490))
U63_ag(T452, T8, app162_out_gagg(T455, T452, T460, T8)) → qs1_out_ag(.(T452, []), T8)
qs1_in_ag([], []) → qs1_out_ag([], [])
Infinitary Constructor Rewriting Termination of PiTRS implies Termination of Prolog
qs1_in_ag(.(T26, .(T27, T28)), T8) → U44_ag(T26, T27, T28, T8, gt10_in_aa(T26, T27))
gt10_in_aa(s(T46), s(T47)) → U1_aa(T46, T47, gt10_in_aa(T46, T47))
gt10_in_aa(s(0), 0) → gt10_out_aa(s(0), 0)
U1_aa(T46, T47, gt10_out_aa(T46, T47)) → gt10_out_aa(s(T46), s(T47))
U44_ag(T26, T27, T28, T8, gt10_out_aa(T26, T27)) → qs1_out_ag(.(T26, .(T27, T28)), T8)
qs1_in_ag(.(T31, .(T33, T32)), T8) → U45_ag(T31, T33, T32, T8, gt10_in_aa(T31, T33))
U45_ag(T31, T33, T32, T8, gt10_out_aa(T31, T33)) → U46_ag(T31, T33, T32, T8, part20_in_gaaa(T31, T32, X47, X48))
part20_in_gaaa(T70, .(T73, T74), .(T73, X119), X120) → U2_gaaa(T70, T73, T74, X119, X120, gt10_in_ga(T70, T73))
gt10_in_ga(s(T46), s(T47)) → U1_ga(T46, T47, gt10_in_ga(T46, T47))
gt10_in_ga(s(0), 0) → gt10_out_ga(s(0), 0)
U1_ga(T46, T47, gt10_out_ga(T46, T47)) → gt10_out_ga(s(T46), s(T47))
U2_gaaa(T70, T73, T74, X119, X120, gt10_out_ga(T70, T73)) → part20_out_gaaa(T70, .(T73, T74), .(T73, X119), X120)
part20_in_gaaa(T70, .(T73, T77), .(T73, X119), X120) → U3_gaaa(T70, T73, T77, X119, X120, gt10_in_ga(T70, T73))
U3_gaaa(T70, T73, T77, X119, X120, gt10_out_ga(T70, T73)) → U4_gaaa(T70, T73, T77, X119, X120, part20_in_gaaa(T70, T77, X119, X120))
part20_in_gaaa(T95, .(T98, T99), X170, .(T98, X171)) → U5_gaaa(T95, T98, T99, X170, X171, le33_in_ga(T95, T98))
le33_in_ga(s(T113), s(T115)) → U8_ga(T113, T115, le33_in_ga(T113, T115))
le33_in_ga(0, s(T122)) → le33_out_ga(0, s(T122))
le33_in_ga(0, 0) → le33_out_ga(0, 0)
U8_ga(T113, T115, le33_out_ga(T113, T115)) → le33_out_ga(s(T113), s(T115))
U5_gaaa(T95, T98, T99, X170, X171, le33_out_ga(T95, T98)) → part20_out_gaaa(T95, .(T98, T99), X170, .(T98, X171))
part20_in_gaaa(T95, .(T98, T102), X170, .(T98, X171)) → U6_gaaa(T95, T98, T102, X170, X171, le33_in_ga(T95, T98))
U6_gaaa(T95, T98, T102, X170, X171, le33_out_ga(T95, T98)) → U7_gaaa(T95, T98, T102, X170, X171, part20_in_gaaa(T95, T102, X170, X171))
part20_in_gaaa(T128, [], [], []) → part20_out_gaaa(T128, [], [], [])
U7_gaaa(T95, T98, T102, X170, X171, part20_out_gaaa(T95, T102, X170, X171)) → part20_out_gaaa(T95, .(T98, T102), X170, .(T98, X171))
U4_gaaa(T70, T73, T77, X119, X120, part20_out_gaaa(T70, T77, X119, X120)) → part20_out_gaaa(T70, .(T73, T77), .(T73, X119), X120)
U46_ag(T31, T33, T32, T8, part20_out_gaaa(T31, T32, X47, X48)) → qs1_out_ag(.(T31, .(T33, T32)), T8)
U45_ag(T31, T33, T32, T8, gt10_out_aa(T31, T33)) → U47_ag(T31, T33, T32, T8, part20_in_gaaa(T31, T32, T53, T54))
U47_ag(T31, T33, T32, T8, part20_out_gaaa(T31, T32, T53, T54)) → U48_ag(T31, T33, T32, T8, qs51_in_gaa(T33, T53, X9))
qs51_in_gaa(T148, T149, X273) → U37_gaa(T148, T149, X273, p56_in_gaaaaaa(T148, T149, X269, X270, X271, X272, X273))
p56_in_gaaaaaa(T148, T149, X269, X270, X271, X272, X273) → U9_gaaaaaa(T148, T149, X269, X270, X271, X272, X273, part20_in_gaaa(T148, T149, X269, X270))
U9_gaaaaaa(T148, T149, X269, X270, X271, X272, X273, part20_out_gaaa(T148, T149, X269, X270)) → p56_out_gaaaaaa(T148, T149, X269, X270, X271, X272, X273)
p56_in_gaaaaaa(T148, T149, T153, T154, X271, X272, X273) → U10_gaaaaaa(T148, T149, T153, T154, X271, X272, X273, part20_in_gaaa(T148, T149, T153, T154))
U10_gaaaaaa(T148, T149, T153, T154, X271, X272, X273, part20_out_gaaa(T148, T149, T153, T154)) → U11_gaaaaaa(T148, T149, T153, T154, X271, X272, X273, qs59_in_aa(T153, X271))
qs59_in_aa(.(T171, T172), X335) → U19_aa(T171, T172, X335, p56_in_aaaaaaa(T171, T172, X331, X332, X333, X334, X335))
p56_in_aaaaaaa(T148, T149, X269, X270, X271, X272, X273) → U9_aaaaaaa(T148, T149, X269, X270, X271, X272, X273, part20_in_aaaa(T148, T149, X269, X270))
part20_in_aaaa(T70, .(T73, T74), .(T73, X119), X120) → U2_aaaa(T70, T73, T74, X119, X120, gt10_in_aa(T70, T73))
U2_aaaa(T70, T73, T74, X119, X120, gt10_out_aa(T70, T73)) → part20_out_aaaa(T70, .(T73, T74), .(T73, X119), X120)
part20_in_aaaa(T70, .(T73, T77), .(T73, X119), X120) → U3_aaaa(T70, T73, T77, X119, X120, gt10_in_aa(T70, T73))
U3_aaaa(T70, T73, T77, X119, X120, gt10_out_aa(T70, T73)) → U4_aaaa(T70, T73, T77, X119, X120, part20_in_gaaa(T70, T77, X119, X120))
U4_aaaa(T70, T73, T77, X119, X120, part20_out_gaaa(T70, T77, X119, X120)) → part20_out_aaaa(T70, .(T73, T77), .(T73, X119), X120)
part20_in_aaaa(T95, .(T98, T99), X170, .(T98, X171)) → U5_aaaa(T95, T98, T99, X170, X171, le33_in_aa(T95, T98))
le33_in_aa(s(T113), s(T115)) → U8_aa(T113, T115, le33_in_aa(T113, T115))
le33_in_aa(0, s(T122)) → le33_out_aa(0, s(T122))
le33_in_aa(0, 0) → le33_out_aa(0, 0)
U8_aa(T113, T115, le33_out_aa(T113, T115)) → le33_out_aa(s(T113), s(T115))
U5_aaaa(T95, T98, T99, X170, X171, le33_out_aa(T95, T98)) → part20_out_aaaa(T95, .(T98, T99), X170, .(T98, X171))
part20_in_aaaa(T95, .(T98, T102), X170, .(T98, X171)) → U6_aaaa(T95, T98, T102, X170, X171, le33_in_aa(T95, T98))
U6_aaaa(T95, T98, T102, X170, X171, le33_out_aa(T95, T98)) → U7_aaaa(T95, T98, T102, X170, X171, part20_in_gaaa(T95, T102, X170, X171))
U7_aaaa(T95, T98, T102, X170, X171, part20_out_gaaa(T95, T102, X170, X171)) → part20_out_aaaa(T95, .(T98, T102), X170, .(T98, X171))
part20_in_aaaa(T128, [], [], []) → part20_out_aaaa(T128, [], [], [])
U9_aaaaaaa(T148, T149, X269, X270, X271, X272, X273, part20_out_aaaa(T148, T149, X269, X270)) → p56_out_aaaaaaa(T148, T149, X269, X270, X271, X272, X273)
p56_in_aaaaaaa(T148, T149, T153, T154, X271, X272, X273) → U10_aaaaaaa(T148, T149, T153, T154, X271, X272, X273, part20_in_aaaa(T148, T149, T153, T154))
U10_aaaaaaa(T148, T149, T153, T154, X271, X272, X273, part20_out_aaaa(T148, T149, T153, T154)) → U11_aaaaaaa(T148, T149, T153, T154, X271, X272, X273, qs59_in_aa(T153, X271))
qs59_in_aa([], []) → qs59_out_aa([], [])
U11_aaaaaaa(T148, T149, T153, T154, X271, X272, X273, qs59_out_aa(T153, X271)) → p56_out_aaaaaaa(T148, T149, T153, T154, X271, X272, X273)
p56_in_aaaaaaa(T148, T149, T153, T154, T160, X272, X273) → U12_aaaaaaa(T148, T149, T153, T154, T160, X272, X273, part20_in_aaaa(T148, T149, T153, T154))
U12_aaaaaaa(T148, T149, T153, T154, T160, X272, X273, part20_out_aaaa(T148, T149, T153, T154)) → U13_aaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_in_aa(T153, T160))
U13_aaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_out_aa(T153, T160)) → U14_aaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_in_aa(T154, X272))
U14_aaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_out_aa(T154, X272)) → p56_out_aaaaaaa(T148, T149, T153, T154, T160, X272, X273)
p56_in_aaaaaaa(T148, T149, T153, T154, T160, T178, X273) → U15_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, part20_in_aaaa(T148, T149, T153, T154))
U15_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, part20_out_aaaa(T148, T149, T153, T154)) → U16_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_in_aa(T153, T160))
U16_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_out_aa(T153, T160)) → U17_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_in_aa(T154, T178))
U17_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_out_aa(T154, T178)) → U18_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, app70_in_aaaa(T160, T148, T178, X273))
app70_in_aaaa(.(T201, T202), T203, T204, .(T201, X391)) → U20_aaaa(T201, T202, T203, T204, X391, app70_in_aaaa(T202, T203, T204, X391))
app70_in_aaaa([], T213, T214, .(T213, T214)) → app70_out_aaaa([], T213, T214, .(T213, T214))
U20_aaaa(T201, T202, T203, T204, X391, app70_out_aaaa(T202, T203, T204, X391)) → app70_out_aaaa(.(T201, T202), T203, T204, .(T201, X391))
U18_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, app70_out_aaaa(T160, T148, T178, X273)) → p56_out_aaaaaaa(T148, T149, T153, T154, T160, T178, X273)
U19_aa(T171, T172, X335, p56_out_aaaaaaa(T171, T172, X331, X332, X333, X334, X335)) → qs59_out_aa(.(T171, T172), X335)
U11_gaaaaaa(T148, T149, T153, T154, X271, X272, X273, qs59_out_aa(T153, X271)) → p56_out_gaaaaaa(T148, T149, T153, T154, X271, X272, X273)
p56_in_gaaaaaa(T148, T149, T153, T154, T160, X272, X273) → U12_gaaaaaa(T148, T149, T153, T154, T160, X272, X273, part20_in_gaaa(T148, T149, T153, T154))
U12_gaaaaaa(T148, T149, T153, T154, T160, X272, X273, part20_out_gaaa(T148, T149, T153, T154)) → U13_gaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_in_aa(T153, T160))
U13_gaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_out_aa(T153, T160)) → U14_gaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_in_aa(T154, X272))
U14_gaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_out_aa(T154, X272)) → p56_out_gaaaaaa(T148, T149, T153, T154, T160, X272, X273)
p56_in_gaaaaaa(T148, T149, T153, T154, T160, T178, X273) → U15_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, part20_in_gaaa(T148, T149, T153, T154))
U15_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, part20_out_gaaa(T148, T149, T153, T154)) → U16_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_in_aa(T153, T160))
U16_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_out_aa(T153, T160)) → U17_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_in_aa(T154, T178))
U17_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_out_aa(T154, T178)) → U18_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, app70_in_agaa(T160, T148, T178, X273))
app70_in_agaa(.(T201, T202), T203, T204, .(T201, X391)) → U20_agaa(T201, T202, T203, T204, X391, app70_in_agaa(T202, T203, T204, X391))
app70_in_agaa([], T213, T214, .(T213, T214)) → app70_out_agaa([], T213, T214, .(T213, T214))
U20_agaa(T201, T202, T203, T204, X391, app70_out_agaa(T202, T203, T204, X391)) → app70_out_agaa(.(T201, T202), T203, T204, .(T201, X391))
U18_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, app70_out_agaa(T160, T148, T178, X273)) → p56_out_gaaaaaa(T148, T149, T153, T154, T160, T178, X273)
U37_gaa(T148, T149, X273, p56_out_gaaaaaa(T148, T149, X269, X270, X271, X272, X273)) → qs51_out_gaa(T148, T149, X273)
U48_ag(T31, T33, T32, T8, qs51_out_gaa(T33, T53, X9)) → qs1_out_ag(.(T31, .(T33, T32)), T8)
U47_ag(T31, T33, T32, T8, part20_out_gaaa(T31, T32, T53, T54)) → U49_ag(T31, T33, T32, T8, T54, qs51_in_gaa(T33, T53, T131))
U49_ag(T31, T33, T32, T8, T54, qs51_out_gaa(T33, T53, T131)) → U50_ag(T31, T33, T32, T8, p52_in_aaagg(T54, X10, T131, T31, T8))
p52_in_aaagg(T54, X10, T131, T31, T8) → U33_aaagg(T54, X10, T131, T31, T8, qs80_in_aa(T54, X10))
qs80_in_aa(.(T230, T231), X452) → U22_aa(T230, T231, X452, part87_in_aaaa(T230, T231, X448, X449))
part87_in_aaaa(T256, .(T257, T258), .(T257, X503), X504) → U38_aaaa(T256, T257, T258, X503, X504, gt10_in_aa(T256, T257))
U38_aaaa(T256, T257, T258, X503, X504, gt10_out_aa(T256, T257)) → part87_out_aaaa(T256, .(T257, T258), .(T257, X503), X504)
part87_in_aaaa(T261, .(T257, T262), .(T257, X503), X504) → U39_aaaa(T261, T257, T262, X503, X504, gt10_in_aa(T261, T257))
U39_aaaa(T261, T257, T262, X503, X504, gt10_out_aa(T261, T257)) → U40_aaaa(T261, T257, T262, X503, X504, part20_in_gaaa(T261, T262, X503, X504))
U40_aaaa(T261, T257, T262, X503, X504, part20_out_gaaa(T261, T262, X503, X504)) → part87_out_aaaa(T261, .(T257, T262), .(T257, X503), X504)
part87_in_aaaa(T283, .(T284, T285), X554, .(T284, X555)) → U41_aaaa(T283, T284, T285, X554, X555, le100_in_aa(T283, T284))
le100_in_aa(s(T302), s(T303)) → U21_aa(T302, T303, le100_in_aa(T302, T303))
le100_in_aa(0, s(T310)) → le100_out_aa(0, s(T310))
le100_in_aa(0, 0) → le100_out_aa(0, 0)
U21_aa(T302, T303, le100_out_aa(T302, T303)) → le100_out_aa(s(T302), s(T303))
U41_aaaa(T283, T284, T285, X554, X555, le100_out_aa(T283, T284)) → part87_out_aaaa(T283, .(T284, T285), X554, .(T284, X555))
part87_in_aaaa(T288, .(T284, T289), X554, .(T284, X555)) → U42_aaaa(T288, T284, T289, X554, X555, le100_in_aa(T288, T284))
U42_aaaa(T288, T284, T289, X554, X555, le100_out_aa(T288, T284)) → U43_aaaa(T288, T284, T289, X554, X555, part20_in_gaaa(T288, T289, X554, X555))
U43_aaaa(T288, T284, T289, X554, X555, part20_out_gaaa(T288, T289, X554, X555)) → part87_out_aaaa(T288, .(T284, T289), X554, .(T284, X555))
part87_in_aaaa(T316, [], [], []) → part87_out_aaaa(T316, [], [], [])
U22_aa(T230, T231, X452, part87_out_aaaa(T230, T231, X448, X449)) → qs80_out_aa(.(T230, T231), X452)
qs80_in_aa(.(T237, T231), X452) → U23_aa(T237, T231, X452, part87_in_aaaa(T237, T231, T235, T236))
U23_aa(T237, T231, X452, part87_out_aaaa(T237, T231, T235, T236)) → U24_aa(T237, T231, X452, qs80_in_aa(T235, X450))
qs80_in_aa(.(T325, T231), X452) → U27_aa(T325, T231, X452, part87_in_aaaa(T325, T231, T235, T236))
U27_aa(T325, T231, X452, part87_out_aaaa(T325, T231, T235, T236)) → U28_aa(T325, T231, X452, T236, qs80_in_aa(T235, T319))
qs80_in_aa([], []) → qs80_out_aa([], [])
U28_aa(T325, T231, X452, T236, qs80_out_aa(T235, T319)) → U29_aa(T325, T231, X452, T319, qs80_in_aa(T236, T324))
U29_aa(T325, T231, X452, T319, qs80_out_aa(T236, T324)) → U30_aa(T325, T231, X452, app121_in_aaaa(T319, T325, T324, X452))
app121_in_aaaa(.(T348, T349), T352, T353, .(T348, X657)) → U31_aaaa(T348, T349, T352, T353, X657, app121_in_aaaa(T349, T352, T353, X657))
app121_in_aaaa([], T362, T363, .(T362, T363)) → app121_out_aaaa([], T362, T363, .(T362, T363))
U31_aaaa(T348, T349, T352, T353, X657, app121_out_aaaa(T349, T352, T353, X657)) → app121_out_aaaa(.(T348, T349), T352, T353, .(T348, X657))
U30_aa(T325, T231, X452, app121_out_aaaa(T319, T325, T324, X452)) → qs80_out_aa(.(T325, T231), X452)
U24_aa(T237, T231, X452, qs80_out_aa(T235, X450)) → qs80_out_aa(.(T237, T231), X452)
U23_aa(T237, T231, X452, part87_out_aaaa(T237, T231, T235, T236)) → U25_aa(T237, T231, X452, T236, qs80_in_aa(T235, T319))
U25_aa(T237, T231, X452, T236, qs80_out_aa(T235, T319)) → U26_aa(T237, T231, X452, qs80_in_aa(T236, X451))
U26_aa(T237, T231, X452, qs80_out_aa(T236, X451)) → qs80_out_aa(.(T237, T231), X452)
U33_aaagg(T54, X10, T131, T31, T8, qs80_out_aa(T54, X10)) → p52_out_aaagg(T54, X10, T131, T31, T8)
p52_in_aaagg(T54, T217, T131, T31, T8) → U34_aaagg(T54, T217, T131, T31, T8, qs80_in_aa(T54, T217))
U34_aaagg(T54, T217, T131, T31, T8, qs80_out_aa(T54, T217)) → U35_aaagg(T54, T217, T131, T31, T8, app81_in_agag(T131, T31, T217, T8))
app81_in_agag(.(T389, T390), T391, T394, .(T389, T393)) → U32_agag(T389, T390, T391, T394, T393, app81_in_agag(T390, T391, T394, T393))
app81_in_agag([], T404, T405, .(T404, T405)) → app81_out_agag([], T404, T405, .(T404, T405))
U32_agag(T389, T390, T391, T394, T393, app81_out_agag(T390, T391, T394, T393)) → app81_out_agag(.(T389, T390), T391, T394, .(T389, T393))
U35_aaagg(T54, T217, T131, T31, T8, app81_out_agag(T131, T31, T217, T8)) → p52_out_aaagg(T54, T217, T131, T31, T8)
U50_ag(T31, T33, T32, T8, p52_out_aaagg(T54, X10, T131, T31, T8)) → qs1_out_ag(.(T31, .(T33, T32)), T8)
qs1_in_ag(.(T421, .(T422, T423)), T8) → U51_ag(T421, T422, T423, T8, le100_in_aa(T421, T422))
U51_ag(T421, T422, T423, T8, le100_out_aa(T421, T422)) → qs1_out_ag(.(T421, .(T422, T423)), T8)
qs1_in_ag(.(T426, .(T428, T427)), T8) → U52_ag(T426, T428, T427, T8, le100_in_aa(T426, T428))
U52_ag(T426, T428, T427, T8, le100_out_aa(T426, T428)) → U53_ag(T426, T428, T427, T8, part20_in_gaaa(T426, T427, X740, X741))
U53_ag(T426, T428, T427, T8, part20_out_gaaa(T426, T427, X740, X741)) → qs1_out_ag(.(T426, .(T428, T427)), T8)
qs1_in_ag(.(T426, .(T436, T427)), T8) → U54_ag(T426, T436, T427, T8, le100_in_aa(T426, T436))
U54_ag(T426, T436, T427, T8, le100_out_aa(T426, T436)) → U55_ag(T426, T436, T427, T8, part20_in_gaaa(T426, T427, T434, T435))
U55_ag(T426, T436, T427, T8, part20_out_gaaa(T426, T427, T434, T435)) → U56_ag(T426, T436, T427, T8, qs80_in_aa(T434, X9))
U56_ag(T426, T436, T427, T8, qs80_out_aa(T434, X9)) → qs1_out_ag(.(T426, .(T436, T427)), T8)
U55_ag(T426, T436, T427, T8, part20_out_gaaa(T426, T427, T434, T435)) → U57_ag(T426, T436, T427, T8, T435, qs80_in_aa(T434, T442))
U57_ag(T426, T436, T427, T8, T435, qs80_out_aa(T434, T442)) → U58_ag(T426, T436, T427, T8, p52_in_aaagg(.(T436, T435), X10, T442, T426, T8))
U58_ag(T426, T436, T427, T8, p52_out_aaagg(.(T436, T435), X10, T442, T426, T8)) → qs1_out_ag(.(T426, .(T436, T427)), T8)
qs1_in_ag(.(T452, []), T8) → U59_ag(T452, T8, qs155_in_a(X9))
qs155_in_a([]) → qs155_out_a([])
U59_ag(T452, T8, qs155_out_a(X9)) → qs1_out_ag(.(T452, []), T8)
qs1_in_ag(.(T452, []), T8) → U60_ag(T452, T8, qs155_in_a(T455))
U60_ag(T452, T8, qs155_out_a(T455)) → U61_ag(T452, T8, qs155_in_a(X10))
U61_ag(T452, T8, qs155_out_a(X10)) → qs1_out_ag(.(T452, []), T8)
U60_ag(T452, T8, qs155_out_a(T455)) → U62_ag(T452, T8, T455, qs155_in_a(T460))
U62_ag(T452, T8, T455, qs155_out_a(T460)) → U63_ag(T452, T8, app162_in_gagg(T455, T452, T460, T8))
app162_in_gagg(.(T486, T487), T491, T489, .(T486, T490)) → U36_gagg(T486, T487, T491, T489, T490, app162_in_gagg(T487, T491, T489, T490))
app162_in_gagg([], T501, T502, .(T501, T502)) → app162_out_gagg([], T501, T502, .(T501, T502))
U36_gagg(T486, T487, T491, T489, T490, app162_out_gagg(T487, T491, T489, T490)) → app162_out_gagg(.(T486, T487), T491, T489, .(T486, T490))
U63_ag(T452, T8, app162_out_gagg(T455, T452, T460, T8)) → qs1_out_ag(.(T452, []), T8)
qs1_in_ag([], []) → qs1_out_ag([], [])
QS1_IN_AG(.(T26, .(T27, T28)), T8) → U44_AG(T26, T27, T28, T8, gt10_in_aa(T26, T27))
QS1_IN_AG(.(T26, .(T27, T28)), T8) → GT10_IN_AA(T26, T27)
GT10_IN_AA(s(T46), s(T47)) → U1_AA(T46, T47, gt10_in_aa(T46, T47))
GT10_IN_AA(s(T46), s(T47)) → GT10_IN_AA(T46, T47)
QS1_IN_AG(.(T31, .(T33, T32)), T8) → U45_AG(T31, T33, T32, T8, gt10_in_aa(T31, T33))
U45_AG(T31, T33, T32, T8, gt10_out_aa(T31, T33)) → U46_AG(T31, T33, T32, T8, part20_in_gaaa(T31, T32, X47, X48))
U45_AG(T31, T33, T32, T8, gt10_out_aa(T31, T33)) → PART20_IN_GAAA(T31, T32, X47, X48)
PART20_IN_GAAA(T70, .(T73, T74), .(T73, X119), X120) → U2_GAAA(T70, T73, T74, X119, X120, gt10_in_ga(T70, T73))
PART20_IN_GAAA(T70, .(T73, T74), .(T73, X119), X120) → GT10_IN_GA(T70, T73)
GT10_IN_GA(s(T46), s(T47)) → U1_GA(T46, T47, gt10_in_ga(T46, T47))
GT10_IN_GA(s(T46), s(T47)) → GT10_IN_GA(T46, T47)
PART20_IN_GAAA(T70, .(T73, T77), .(T73, X119), X120) → U3_GAAA(T70, T73, T77, X119, X120, gt10_in_ga(T70, T73))
U3_GAAA(T70, T73, T77, X119, X120, gt10_out_ga(T70, T73)) → U4_GAAA(T70, T73, T77, X119, X120, part20_in_gaaa(T70, T77, X119, X120))
U3_GAAA(T70, T73, T77, X119, X120, gt10_out_ga(T70, T73)) → PART20_IN_GAAA(T70, T77, X119, X120)
PART20_IN_GAAA(T95, .(T98, T99), X170, .(T98, X171)) → U5_GAAA(T95, T98, T99, X170, X171, le33_in_ga(T95, T98))
PART20_IN_GAAA(T95, .(T98, T99), X170, .(T98, X171)) → LE33_IN_GA(T95, T98)
LE33_IN_GA(s(T113), s(T115)) → U8_GA(T113, T115, le33_in_ga(T113, T115))
LE33_IN_GA(s(T113), s(T115)) → LE33_IN_GA(T113, T115)
PART20_IN_GAAA(T95, .(T98, T102), X170, .(T98, X171)) → U6_GAAA(T95, T98, T102, X170, X171, le33_in_ga(T95, T98))
U6_GAAA(T95, T98, T102, X170, X171, le33_out_ga(T95, T98)) → U7_GAAA(T95, T98, T102, X170, X171, part20_in_gaaa(T95, T102, X170, X171))
U6_GAAA(T95, T98, T102, X170, X171, le33_out_ga(T95, T98)) → PART20_IN_GAAA(T95, T102, X170, X171)
U45_AG(T31, T33, T32, T8, gt10_out_aa(T31, T33)) → U47_AG(T31, T33, T32, T8, part20_in_gaaa(T31, T32, T53, T54))
U47_AG(T31, T33, T32, T8, part20_out_gaaa(T31, T32, T53, T54)) → U48_AG(T31, T33, T32, T8, qs51_in_gaa(T33, T53, X9))
U47_AG(T31, T33, T32, T8, part20_out_gaaa(T31, T32, T53, T54)) → QS51_IN_GAA(T33, T53, X9)
QS51_IN_GAA(T148, T149, X273) → U37_GAA(T148, T149, X273, p56_in_gaaaaaa(T148, T149, X269, X270, X271, X272, X273))
QS51_IN_GAA(T148, T149, X273) → P56_IN_GAAAAAA(T148, T149, X269, X270, X271, X272, X273)
P56_IN_GAAAAAA(T148, T149, X269, X270, X271, X272, X273) → U9_GAAAAAA(T148, T149, X269, X270, X271, X272, X273, part20_in_gaaa(T148, T149, X269, X270))
P56_IN_GAAAAAA(T148, T149, X269, X270, X271, X272, X273) → PART20_IN_GAAA(T148, T149, X269, X270)
P56_IN_GAAAAAA(T148, T149, T153, T154, X271, X272, X273) → U10_GAAAAAA(T148, T149, T153, T154, X271, X272, X273, part20_in_gaaa(T148, T149, T153, T154))
U10_GAAAAAA(T148, T149, T153, T154, X271, X272, X273, part20_out_gaaa(T148, T149, T153, T154)) → U11_GAAAAAA(T148, T149, T153, T154, X271, X272, X273, qs59_in_aa(T153, X271))
U10_GAAAAAA(T148, T149, T153, T154, X271, X272, X273, part20_out_gaaa(T148, T149, T153, T154)) → QS59_IN_AA(T153, X271)
QS59_IN_AA(.(T171, T172), X335) → U19_AA(T171, T172, X335, p56_in_aaaaaaa(T171, T172, X331, X332, X333, X334, X335))
QS59_IN_AA(.(T171, T172), X335) → P56_IN_AAAAAAA(T171, T172, X331, X332, X333, X334, X335)
P56_IN_AAAAAAA(T148, T149, X269, X270, X271, X272, X273) → U9_AAAAAAA(T148, T149, X269, X270, X271, X272, X273, part20_in_aaaa(T148, T149, X269, X270))
P56_IN_AAAAAAA(T148, T149, X269, X270, X271, X272, X273) → PART20_IN_AAAA(T148, T149, X269, X270)
PART20_IN_AAAA(T70, .(T73, T74), .(T73, X119), X120) → U2_AAAA(T70, T73, T74, X119, X120, gt10_in_aa(T70, T73))
PART20_IN_AAAA(T70, .(T73, T74), .(T73, X119), X120) → GT10_IN_AA(T70, T73)
PART20_IN_AAAA(T70, .(T73, T77), .(T73, X119), X120) → U3_AAAA(T70, T73, T77, X119, X120, gt10_in_aa(T70, T73))
U3_AAAA(T70, T73, T77, X119, X120, gt10_out_aa(T70, T73)) → U4_AAAA(T70, T73, T77, X119, X120, part20_in_gaaa(T70, T77, X119, X120))
U3_AAAA(T70, T73, T77, X119, X120, gt10_out_aa(T70, T73)) → PART20_IN_GAAA(T70, T77, X119, X120)
PART20_IN_AAAA(T95, .(T98, T99), X170, .(T98, X171)) → U5_AAAA(T95, T98, T99, X170, X171, le33_in_aa(T95, T98))
PART20_IN_AAAA(T95, .(T98, T99), X170, .(T98, X171)) → LE33_IN_AA(T95, T98)
LE33_IN_AA(s(T113), s(T115)) → U8_AA(T113, T115, le33_in_aa(T113, T115))
LE33_IN_AA(s(T113), s(T115)) → LE33_IN_AA(T113, T115)
PART20_IN_AAAA(T95, .(T98, T102), X170, .(T98, X171)) → U6_AAAA(T95, T98, T102, X170, X171, le33_in_aa(T95, T98))
U6_AAAA(T95, T98, T102, X170, X171, le33_out_aa(T95, T98)) → U7_AAAA(T95, T98, T102, X170, X171, part20_in_gaaa(T95, T102, X170, X171))
U6_AAAA(T95, T98, T102, X170, X171, le33_out_aa(T95, T98)) → PART20_IN_GAAA(T95, T102, X170, X171)
P56_IN_AAAAAAA(T148, T149, T153, T154, X271, X272, X273) → U10_AAAAAAA(T148, T149, T153, T154, X271, X272, X273, part20_in_aaaa(T148, T149, T153, T154))
U10_AAAAAAA(T148, T149, T153, T154, X271, X272, X273, part20_out_aaaa(T148, T149, T153, T154)) → U11_AAAAAAA(T148, T149, T153, T154, X271, X272, X273, qs59_in_aa(T153, X271))
U10_AAAAAAA(T148, T149, T153, T154, X271, X272, X273, part20_out_aaaa(T148, T149, T153, T154)) → QS59_IN_AA(T153, X271)
P56_IN_AAAAAAA(T148, T149, T153, T154, T160, X272, X273) → U12_AAAAAAA(T148, T149, T153, T154, T160, X272, X273, part20_in_aaaa(T148, T149, T153, T154))
U12_AAAAAAA(T148, T149, T153, T154, T160, X272, X273, part20_out_aaaa(T148, T149, T153, T154)) → U13_AAAAAAA(T148, T149, T153, T154, T160, X272, X273, qs59_in_aa(T153, T160))
U12_AAAAAAA(T148, T149, T153, T154, T160, X272, X273, part20_out_aaaa(T148, T149, T153, T154)) → QS59_IN_AA(T153, T160)
U13_AAAAAAA(T148, T149, T153, T154, T160, X272, X273, qs59_out_aa(T153, T160)) → U14_AAAAAAA(T148, T149, T153, T154, T160, X272, X273, qs59_in_aa(T154, X272))
U13_AAAAAAA(T148, T149, T153, T154, T160, X272, X273, qs59_out_aa(T153, T160)) → QS59_IN_AA(T154, X272)
P56_IN_AAAAAAA(T148, T149, T153, T154, T160, T178, X273) → U15_AAAAAAA(T148, T149, T153, T154, T160, T178, X273, part20_in_aaaa(T148, T149, T153, T154))
U15_AAAAAAA(T148, T149, T153, T154, T160, T178, X273, part20_out_aaaa(T148, T149, T153, T154)) → U16_AAAAAAA(T148, T149, T153, T154, T160, T178, X273, qs59_in_aa(T153, T160))
U15_AAAAAAA(T148, T149, T153, T154, T160, T178, X273, part20_out_aaaa(T148, T149, T153, T154)) → QS59_IN_AA(T153, T160)
U16_AAAAAAA(T148, T149, T153, T154, T160, T178, X273, qs59_out_aa(T153, T160)) → U17_AAAAAAA(T148, T149, T153, T154, T160, T178, X273, qs59_in_aa(T154, T178))
U16_AAAAAAA(T148, T149, T153, T154, T160, T178, X273, qs59_out_aa(T153, T160)) → QS59_IN_AA(T154, T178)
U17_AAAAAAA(T148, T149, T153, T154, T160, T178, X273, qs59_out_aa(T154, T178)) → U18_AAAAAAA(T148, T149, T153, T154, T160, T178, X273, app70_in_aaaa(T160, T148, T178, X273))
U17_AAAAAAA(T148, T149, T153, T154, T160, T178, X273, qs59_out_aa(T154, T178)) → APP70_IN_AAAA(T160, T148, T178, X273)
APP70_IN_AAAA(.(T201, T202), T203, T204, .(T201, X391)) → U20_AAAA(T201, T202, T203, T204, X391, app70_in_aaaa(T202, T203, T204, X391))
APP70_IN_AAAA(.(T201, T202), T203, T204, .(T201, X391)) → APP70_IN_AAAA(T202, T203, T204, X391)
P56_IN_GAAAAAA(T148, T149, T153, T154, T160, X272, X273) → U12_GAAAAAA(T148, T149, T153, T154, T160, X272, X273, part20_in_gaaa(T148, T149, T153, T154))
U12_GAAAAAA(T148, T149, T153, T154, T160, X272, X273, part20_out_gaaa(T148, T149, T153, T154)) → U13_GAAAAAA(T148, T149, T153, T154, T160, X272, X273, qs59_in_aa(T153, T160))
U12_GAAAAAA(T148, T149, T153, T154, T160, X272, X273, part20_out_gaaa(T148, T149, T153, T154)) → QS59_IN_AA(T153, T160)
U13_GAAAAAA(T148, T149, T153, T154, T160, X272, X273, qs59_out_aa(T153, T160)) → U14_GAAAAAA(T148, T149, T153, T154, T160, X272, X273, qs59_in_aa(T154, X272))
U13_GAAAAAA(T148, T149, T153, T154, T160, X272, X273, qs59_out_aa(T153, T160)) → QS59_IN_AA(T154, X272)
P56_IN_GAAAAAA(T148, T149, T153, T154, T160, T178, X273) → U15_GAAAAAA(T148, T149, T153, T154, T160, T178, X273, part20_in_gaaa(T148, T149, T153, T154))
U15_GAAAAAA(T148, T149, T153, T154, T160, T178, X273, part20_out_gaaa(T148, T149, T153, T154)) → U16_GAAAAAA(T148, T149, T153, T154, T160, T178, X273, qs59_in_aa(T153, T160))
U15_GAAAAAA(T148, T149, T153, T154, T160, T178, X273, part20_out_gaaa(T148, T149, T153, T154)) → QS59_IN_AA(T153, T160)
U16_GAAAAAA(T148, T149, T153, T154, T160, T178, X273, qs59_out_aa(T153, T160)) → U17_GAAAAAA(T148, T149, T153, T154, T160, T178, X273, qs59_in_aa(T154, T178))
U16_GAAAAAA(T148, T149, T153, T154, T160, T178, X273, qs59_out_aa(T153, T160)) → QS59_IN_AA(T154, T178)
U17_GAAAAAA(T148, T149, T153, T154, T160, T178, X273, qs59_out_aa(T154, T178)) → U18_GAAAAAA(T148, T149, T153, T154, T160, T178, X273, app70_in_agaa(T160, T148, T178, X273))
U17_GAAAAAA(T148, T149, T153, T154, T160, T178, X273, qs59_out_aa(T154, T178)) → APP70_IN_AGAA(T160, T148, T178, X273)
APP70_IN_AGAA(.(T201, T202), T203, T204, .(T201, X391)) → U20_AGAA(T201, T202, T203, T204, X391, app70_in_agaa(T202, T203, T204, X391))
APP70_IN_AGAA(.(T201, T202), T203, T204, .(T201, X391)) → APP70_IN_AGAA(T202, T203, T204, X391)
U47_AG(T31, T33, T32, T8, part20_out_gaaa(T31, T32, T53, T54)) → U49_AG(T31, T33, T32, T8, T54, qs51_in_gaa(T33, T53, T131))
U49_AG(T31, T33, T32, T8, T54, qs51_out_gaa(T33, T53, T131)) → U50_AG(T31, T33, T32, T8, p52_in_aaagg(T54, X10, T131, T31, T8))
U49_AG(T31, T33, T32, T8, T54, qs51_out_gaa(T33, T53, T131)) → P52_IN_AAAGG(T54, X10, T131, T31, T8)
P52_IN_AAAGG(T54, X10, T131, T31, T8) → U33_AAAGG(T54, X10, T131, T31, T8, qs80_in_aa(T54, X10))
P52_IN_AAAGG(T54, X10, T131, T31, T8) → QS80_IN_AA(T54, X10)
QS80_IN_AA(.(T230, T231), X452) → U22_AA(T230, T231, X452, part87_in_aaaa(T230, T231, X448, X449))
QS80_IN_AA(.(T230, T231), X452) → PART87_IN_AAAA(T230, T231, X448, X449)
PART87_IN_AAAA(T256, .(T257, T258), .(T257, X503), X504) → U38_AAAA(T256, T257, T258, X503, X504, gt10_in_aa(T256, T257))
PART87_IN_AAAA(T256, .(T257, T258), .(T257, X503), X504) → GT10_IN_AA(T256, T257)
PART87_IN_AAAA(T261, .(T257, T262), .(T257, X503), X504) → U39_AAAA(T261, T257, T262, X503, X504, gt10_in_aa(T261, T257))
U39_AAAA(T261, T257, T262, X503, X504, gt10_out_aa(T261, T257)) → U40_AAAA(T261, T257, T262, X503, X504, part20_in_gaaa(T261, T262, X503, X504))
U39_AAAA(T261, T257, T262, X503, X504, gt10_out_aa(T261, T257)) → PART20_IN_GAAA(T261, T262, X503, X504)
PART87_IN_AAAA(T283, .(T284, T285), X554, .(T284, X555)) → U41_AAAA(T283, T284, T285, X554, X555, le100_in_aa(T283, T284))
PART87_IN_AAAA(T283, .(T284, T285), X554, .(T284, X555)) → LE100_IN_AA(T283, T284)
LE100_IN_AA(s(T302), s(T303)) → U21_AA(T302, T303, le100_in_aa(T302, T303))
LE100_IN_AA(s(T302), s(T303)) → LE100_IN_AA(T302, T303)
PART87_IN_AAAA(T288, .(T284, T289), X554, .(T284, X555)) → U42_AAAA(T288, T284, T289, X554, X555, le100_in_aa(T288, T284))
U42_AAAA(T288, T284, T289, X554, X555, le100_out_aa(T288, T284)) → U43_AAAA(T288, T284, T289, X554, X555, part20_in_gaaa(T288, T289, X554, X555))
U42_AAAA(T288, T284, T289, X554, X555, le100_out_aa(T288, T284)) → PART20_IN_GAAA(T288, T289, X554, X555)
QS80_IN_AA(.(T237, T231), X452) → U23_AA(T237, T231, X452, part87_in_aaaa(T237, T231, T235, T236))
U23_AA(T237, T231, X452, part87_out_aaaa(T237, T231, T235, T236)) → U24_AA(T237, T231, X452, qs80_in_aa(T235, X450))
U23_AA(T237, T231, X452, part87_out_aaaa(T237, T231, T235, T236)) → QS80_IN_AA(T235, X450)
QS80_IN_AA(.(T325, T231), X452) → U27_AA(T325, T231, X452, part87_in_aaaa(T325, T231, T235, T236))
U27_AA(T325, T231, X452, part87_out_aaaa(T325, T231, T235, T236)) → U28_AA(T325, T231, X452, T236, qs80_in_aa(T235, T319))
U27_AA(T325, T231, X452, part87_out_aaaa(T325, T231, T235, T236)) → QS80_IN_AA(T235, T319)
U28_AA(T325, T231, X452, T236, qs80_out_aa(T235, T319)) → U29_AA(T325, T231, X452, T319, qs80_in_aa(T236, T324))
U28_AA(T325, T231, X452, T236, qs80_out_aa(T235, T319)) → QS80_IN_AA(T236, T324)
U29_AA(T325, T231, X452, T319, qs80_out_aa(T236, T324)) → U30_AA(T325, T231, X452, app121_in_aaaa(T319, T325, T324, X452))
U29_AA(T325, T231, X452, T319, qs80_out_aa(T236, T324)) → APP121_IN_AAAA(T319, T325, T324, X452)
APP121_IN_AAAA(.(T348, T349), T352, T353, .(T348, X657)) → U31_AAAA(T348, T349, T352, T353, X657, app121_in_aaaa(T349, T352, T353, X657))
APP121_IN_AAAA(.(T348, T349), T352, T353, .(T348, X657)) → APP121_IN_AAAA(T349, T352, T353, X657)
U23_AA(T237, T231, X452, part87_out_aaaa(T237, T231, T235, T236)) → U25_AA(T237, T231, X452, T236, qs80_in_aa(T235, T319))
U25_AA(T237, T231, X452, T236, qs80_out_aa(T235, T319)) → U26_AA(T237, T231, X452, qs80_in_aa(T236, X451))
U25_AA(T237, T231, X452, T236, qs80_out_aa(T235, T319)) → QS80_IN_AA(T236, X451)
P52_IN_AAAGG(T54, T217, T131, T31, T8) → U34_AAAGG(T54, T217, T131, T31, T8, qs80_in_aa(T54, T217))
U34_AAAGG(T54, T217, T131, T31, T8, qs80_out_aa(T54, T217)) → U35_AAAGG(T54, T217, T131, T31, T8, app81_in_agag(T131, T31, T217, T8))
U34_AAAGG(T54, T217, T131, T31, T8, qs80_out_aa(T54, T217)) → APP81_IN_AGAG(T131, T31, T217, T8)
APP81_IN_AGAG(.(T389, T390), T391, T394, .(T389, T393)) → U32_AGAG(T389, T390, T391, T394, T393, app81_in_agag(T390, T391, T394, T393))
APP81_IN_AGAG(.(T389, T390), T391, T394, .(T389, T393)) → APP81_IN_AGAG(T390, T391, T394, T393)
QS1_IN_AG(.(T421, .(T422, T423)), T8) → U51_AG(T421, T422, T423, T8, le100_in_aa(T421, T422))
QS1_IN_AG(.(T421, .(T422, T423)), T8) → LE100_IN_AA(T421, T422)
QS1_IN_AG(.(T426, .(T428, T427)), T8) → U52_AG(T426, T428, T427, T8, le100_in_aa(T426, T428))
U52_AG(T426, T428, T427, T8, le100_out_aa(T426, T428)) → U53_AG(T426, T428, T427, T8, part20_in_gaaa(T426, T427, X740, X741))
U52_AG(T426, T428, T427, T8, le100_out_aa(T426, T428)) → PART20_IN_GAAA(T426, T427, X740, X741)
QS1_IN_AG(.(T426, .(T436, T427)), T8) → U54_AG(T426, T436, T427, T8, le100_in_aa(T426, T436))
U54_AG(T426, T436, T427, T8, le100_out_aa(T426, T436)) → U55_AG(T426, T436, T427, T8, part20_in_gaaa(T426, T427, T434, T435))
U54_AG(T426, T436, T427, T8, le100_out_aa(T426, T436)) → PART20_IN_GAAA(T426, T427, T434, T435)
U55_AG(T426, T436, T427, T8, part20_out_gaaa(T426, T427, T434, T435)) → U56_AG(T426, T436, T427, T8, qs80_in_aa(T434, X9))
U55_AG(T426, T436, T427, T8, part20_out_gaaa(T426, T427, T434, T435)) → QS80_IN_AA(T434, X9)
U55_AG(T426, T436, T427, T8, part20_out_gaaa(T426, T427, T434, T435)) → U57_AG(T426, T436, T427, T8, T435, qs80_in_aa(T434, T442))
U57_AG(T426, T436, T427, T8, T435, qs80_out_aa(T434, T442)) → U58_AG(T426, T436, T427, T8, p52_in_aaagg(.(T436, T435), X10, T442, T426, T8))
U57_AG(T426, T436, T427, T8, T435, qs80_out_aa(T434, T442)) → P52_IN_AAAGG(.(T436, T435), X10, T442, T426, T8)
QS1_IN_AG(.(T452, []), T8) → U59_AG(T452, T8, qs155_in_a(X9))
QS1_IN_AG(.(T452, []), T8) → QS155_IN_A(X9)
QS1_IN_AG(.(T452, []), T8) → U60_AG(T452, T8, qs155_in_a(T455))
U60_AG(T452, T8, qs155_out_a(T455)) → U61_AG(T452, T8, qs155_in_a(X10))
U60_AG(T452, T8, qs155_out_a(T455)) → QS155_IN_A(X10)
U60_AG(T452, T8, qs155_out_a(T455)) → U62_AG(T452, T8, T455, qs155_in_a(T460))
U62_AG(T452, T8, T455, qs155_out_a(T460)) → U63_AG(T452, T8, app162_in_gagg(T455, T452, T460, T8))
U62_AG(T452, T8, T455, qs155_out_a(T460)) → APP162_IN_GAGG(T455, T452, T460, T8)
APP162_IN_GAGG(.(T486, T487), T491, T489, .(T486, T490)) → U36_GAGG(T486, T487, T491, T489, T490, app162_in_gagg(T487, T491, T489, T490))
APP162_IN_GAGG(.(T486, T487), T491, T489, .(T486, T490)) → APP162_IN_GAGG(T487, T491, T489, T490)
qs1_in_ag(.(T26, .(T27, T28)), T8) → U44_ag(T26, T27, T28, T8, gt10_in_aa(T26, T27))
gt10_in_aa(s(T46), s(T47)) → U1_aa(T46, T47, gt10_in_aa(T46, T47))
gt10_in_aa(s(0), 0) → gt10_out_aa(s(0), 0)
U1_aa(T46, T47, gt10_out_aa(T46, T47)) → gt10_out_aa(s(T46), s(T47))
U44_ag(T26, T27, T28, T8, gt10_out_aa(T26, T27)) → qs1_out_ag(.(T26, .(T27, T28)), T8)
qs1_in_ag(.(T31, .(T33, T32)), T8) → U45_ag(T31, T33, T32, T8, gt10_in_aa(T31, T33))
U45_ag(T31, T33, T32, T8, gt10_out_aa(T31, T33)) → U46_ag(T31, T33, T32, T8, part20_in_gaaa(T31, T32, X47, X48))
part20_in_gaaa(T70, .(T73, T74), .(T73, X119), X120) → U2_gaaa(T70, T73, T74, X119, X120, gt10_in_ga(T70, T73))
gt10_in_ga(s(T46), s(T47)) → U1_ga(T46, T47, gt10_in_ga(T46, T47))
gt10_in_ga(s(0), 0) → gt10_out_ga(s(0), 0)
U1_ga(T46, T47, gt10_out_ga(T46, T47)) → gt10_out_ga(s(T46), s(T47))
U2_gaaa(T70, T73, T74, X119, X120, gt10_out_ga(T70, T73)) → part20_out_gaaa(T70, .(T73, T74), .(T73, X119), X120)
part20_in_gaaa(T70, .(T73, T77), .(T73, X119), X120) → U3_gaaa(T70, T73, T77, X119, X120, gt10_in_ga(T70, T73))
U3_gaaa(T70, T73, T77, X119, X120, gt10_out_ga(T70, T73)) → U4_gaaa(T70, T73, T77, X119, X120, part20_in_gaaa(T70, T77, X119, X120))
part20_in_gaaa(T95, .(T98, T99), X170, .(T98, X171)) → U5_gaaa(T95, T98, T99, X170, X171, le33_in_ga(T95, T98))
le33_in_ga(s(T113), s(T115)) → U8_ga(T113, T115, le33_in_ga(T113, T115))
le33_in_ga(0, s(T122)) → le33_out_ga(0, s(T122))
le33_in_ga(0, 0) → le33_out_ga(0, 0)
U8_ga(T113, T115, le33_out_ga(T113, T115)) → le33_out_ga(s(T113), s(T115))
U5_gaaa(T95, T98, T99, X170, X171, le33_out_ga(T95, T98)) → part20_out_gaaa(T95, .(T98, T99), X170, .(T98, X171))
part20_in_gaaa(T95, .(T98, T102), X170, .(T98, X171)) → U6_gaaa(T95, T98, T102, X170, X171, le33_in_ga(T95, T98))
U6_gaaa(T95, T98, T102, X170, X171, le33_out_ga(T95, T98)) → U7_gaaa(T95, T98, T102, X170, X171, part20_in_gaaa(T95, T102, X170, X171))
part20_in_gaaa(T128, [], [], []) → part20_out_gaaa(T128, [], [], [])
U7_gaaa(T95, T98, T102, X170, X171, part20_out_gaaa(T95, T102, X170, X171)) → part20_out_gaaa(T95, .(T98, T102), X170, .(T98, X171))
U4_gaaa(T70, T73, T77, X119, X120, part20_out_gaaa(T70, T77, X119, X120)) → part20_out_gaaa(T70, .(T73, T77), .(T73, X119), X120)
U46_ag(T31, T33, T32, T8, part20_out_gaaa(T31, T32, X47, X48)) → qs1_out_ag(.(T31, .(T33, T32)), T8)
U45_ag(T31, T33, T32, T8, gt10_out_aa(T31, T33)) → U47_ag(T31, T33, T32, T8, part20_in_gaaa(T31, T32, T53, T54))
U47_ag(T31, T33, T32, T8, part20_out_gaaa(T31, T32, T53, T54)) → U48_ag(T31, T33, T32, T8, qs51_in_gaa(T33, T53, X9))
qs51_in_gaa(T148, T149, X273) → U37_gaa(T148, T149, X273, p56_in_gaaaaaa(T148, T149, X269, X270, X271, X272, X273))
p56_in_gaaaaaa(T148, T149, X269, X270, X271, X272, X273) → U9_gaaaaaa(T148, T149, X269, X270, X271, X272, X273, part20_in_gaaa(T148, T149, X269, X270))
U9_gaaaaaa(T148, T149, X269, X270, X271, X272, X273, part20_out_gaaa(T148, T149, X269, X270)) → p56_out_gaaaaaa(T148, T149, X269, X270, X271, X272, X273)
p56_in_gaaaaaa(T148, T149, T153, T154, X271, X272, X273) → U10_gaaaaaa(T148, T149, T153, T154, X271, X272, X273, part20_in_gaaa(T148, T149, T153, T154))
U10_gaaaaaa(T148, T149, T153, T154, X271, X272, X273, part20_out_gaaa(T148, T149, T153, T154)) → U11_gaaaaaa(T148, T149, T153, T154, X271, X272, X273, qs59_in_aa(T153, X271))
qs59_in_aa(.(T171, T172), X335) → U19_aa(T171, T172, X335, p56_in_aaaaaaa(T171, T172, X331, X332, X333, X334, X335))
p56_in_aaaaaaa(T148, T149, X269, X270, X271, X272, X273) → U9_aaaaaaa(T148, T149, X269, X270, X271, X272, X273, part20_in_aaaa(T148, T149, X269, X270))
part20_in_aaaa(T70, .(T73, T74), .(T73, X119), X120) → U2_aaaa(T70, T73, T74, X119, X120, gt10_in_aa(T70, T73))
U2_aaaa(T70, T73, T74, X119, X120, gt10_out_aa(T70, T73)) → part20_out_aaaa(T70, .(T73, T74), .(T73, X119), X120)
part20_in_aaaa(T70, .(T73, T77), .(T73, X119), X120) → U3_aaaa(T70, T73, T77, X119, X120, gt10_in_aa(T70, T73))
U3_aaaa(T70, T73, T77, X119, X120, gt10_out_aa(T70, T73)) → U4_aaaa(T70, T73, T77, X119, X120, part20_in_gaaa(T70, T77, X119, X120))
U4_aaaa(T70, T73, T77, X119, X120, part20_out_gaaa(T70, T77, X119, X120)) → part20_out_aaaa(T70, .(T73, T77), .(T73, X119), X120)
part20_in_aaaa(T95, .(T98, T99), X170, .(T98, X171)) → U5_aaaa(T95, T98, T99, X170, X171, le33_in_aa(T95, T98))
le33_in_aa(s(T113), s(T115)) → U8_aa(T113, T115, le33_in_aa(T113, T115))
le33_in_aa(0, s(T122)) → le33_out_aa(0, s(T122))
le33_in_aa(0, 0) → le33_out_aa(0, 0)
U8_aa(T113, T115, le33_out_aa(T113, T115)) → le33_out_aa(s(T113), s(T115))
U5_aaaa(T95, T98, T99, X170, X171, le33_out_aa(T95, T98)) → part20_out_aaaa(T95, .(T98, T99), X170, .(T98, X171))
part20_in_aaaa(T95, .(T98, T102), X170, .(T98, X171)) → U6_aaaa(T95, T98, T102, X170, X171, le33_in_aa(T95, T98))
U6_aaaa(T95, T98, T102, X170, X171, le33_out_aa(T95, T98)) → U7_aaaa(T95, T98, T102, X170, X171, part20_in_gaaa(T95, T102, X170, X171))
U7_aaaa(T95, T98, T102, X170, X171, part20_out_gaaa(T95, T102, X170, X171)) → part20_out_aaaa(T95, .(T98, T102), X170, .(T98, X171))
part20_in_aaaa(T128, [], [], []) → part20_out_aaaa(T128, [], [], [])
U9_aaaaaaa(T148, T149, X269, X270, X271, X272, X273, part20_out_aaaa(T148, T149, X269, X270)) → p56_out_aaaaaaa(T148, T149, X269, X270, X271, X272, X273)
p56_in_aaaaaaa(T148, T149, T153, T154, X271, X272, X273) → U10_aaaaaaa(T148, T149, T153, T154, X271, X272, X273, part20_in_aaaa(T148, T149, T153, T154))
U10_aaaaaaa(T148, T149, T153, T154, X271, X272, X273, part20_out_aaaa(T148, T149, T153, T154)) → U11_aaaaaaa(T148, T149, T153, T154, X271, X272, X273, qs59_in_aa(T153, X271))
qs59_in_aa([], []) → qs59_out_aa([], [])
U11_aaaaaaa(T148, T149, T153, T154, X271, X272, X273, qs59_out_aa(T153, X271)) → p56_out_aaaaaaa(T148, T149, T153, T154, X271, X272, X273)
p56_in_aaaaaaa(T148, T149, T153, T154, T160, X272, X273) → U12_aaaaaaa(T148, T149, T153, T154, T160, X272, X273, part20_in_aaaa(T148, T149, T153, T154))
U12_aaaaaaa(T148, T149, T153, T154, T160, X272, X273, part20_out_aaaa(T148, T149, T153, T154)) → U13_aaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_in_aa(T153, T160))
U13_aaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_out_aa(T153, T160)) → U14_aaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_in_aa(T154, X272))
U14_aaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_out_aa(T154, X272)) → p56_out_aaaaaaa(T148, T149, T153, T154, T160, X272, X273)
p56_in_aaaaaaa(T148, T149, T153, T154, T160, T178, X273) → U15_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, part20_in_aaaa(T148, T149, T153, T154))
U15_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, part20_out_aaaa(T148, T149, T153, T154)) → U16_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_in_aa(T153, T160))
U16_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_out_aa(T153, T160)) → U17_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_in_aa(T154, T178))
U17_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_out_aa(T154, T178)) → U18_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, app70_in_aaaa(T160, T148, T178, X273))
app70_in_aaaa(.(T201, T202), T203, T204, .(T201, X391)) → U20_aaaa(T201, T202, T203, T204, X391, app70_in_aaaa(T202, T203, T204, X391))
app70_in_aaaa([], T213, T214, .(T213, T214)) → app70_out_aaaa([], T213, T214, .(T213, T214))
U20_aaaa(T201, T202, T203, T204, X391, app70_out_aaaa(T202, T203, T204, X391)) → app70_out_aaaa(.(T201, T202), T203, T204, .(T201, X391))
U18_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, app70_out_aaaa(T160, T148, T178, X273)) → p56_out_aaaaaaa(T148, T149, T153, T154, T160, T178, X273)
U19_aa(T171, T172, X335, p56_out_aaaaaaa(T171, T172, X331, X332, X333, X334, X335)) → qs59_out_aa(.(T171, T172), X335)
U11_gaaaaaa(T148, T149, T153, T154, X271, X272, X273, qs59_out_aa(T153, X271)) → p56_out_gaaaaaa(T148, T149, T153, T154, X271, X272, X273)
p56_in_gaaaaaa(T148, T149, T153, T154, T160, X272, X273) → U12_gaaaaaa(T148, T149, T153, T154, T160, X272, X273, part20_in_gaaa(T148, T149, T153, T154))
U12_gaaaaaa(T148, T149, T153, T154, T160, X272, X273, part20_out_gaaa(T148, T149, T153, T154)) → U13_gaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_in_aa(T153, T160))
U13_gaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_out_aa(T153, T160)) → U14_gaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_in_aa(T154, X272))
U14_gaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_out_aa(T154, X272)) → p56_out_gaaaaaa(T148, T149, T153, T154, T160, X272, X273)
p56_in_gaaaaaa(T148, T149, T153, T154, T160, T178, X273) → U15_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, part20_in_gaaa(T148, T149, T153, T154))
U15_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, part20_out_gaaa(T148, T149, T153, T154)) → U16_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_in_aa(T153, T160))
U16_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_out_aa(T153, T160)) → U17_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_in_aa(T154, T178))
U17_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_out_aa(T154, T178)) → U18_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, app70_in_agaa(T160, T148, T178, X273))
app70_in_agaa(.(T201, T202), T203, T204, .(T201, X391)) → U20_agaa(T201, T202, T203, T204, X391, app70_in_agaa(T202, T203, T204, X391))
app70_in_agaa([], T213, T214, .(T213, T214)) → app70_out_agaa([], T213, T214, .(T213, T214))
U20_agaa(T201, T202, T203, T204, X391, app70_out_agaa(T202, T203, T204, X391)) → app70_out_agaa(.(T201, T202), T203, T204, .(T201, X391))
U18_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, app70_out_agaa(T160, T148, T178, X273)) → p56_out_gaaaaaa(T148, T149, T153, T154, T160, T178, X273)
U37_gaa(T148, T149, X273, p56_out_gaaaaaa(T148, T149, X269, X270, X271, X272, X273)) → qs51_out_gaa(T148, T149, X273)
U48_ag(T31, T33, T32, T8, qs51_out_gaa(T33, T53, X9)) → qs1_out_ag(.(T31, .(T33, T32)), T8)
U47_ag(T31, T33, T32, T8, part20_out_gaaa(T31, T32, T53, T54)) → U49_ag(T31, T33, T32, T8, T54, qs51_in_gaa(T33, T53, T131))
U49_ag(T31, T33, T32, T8, T54, qs51_out_gaa(T33, T53, T131)) → U50_ag(T31, T33, T32, T8, p52_in_aaagg(T54, X10, T131, T31, T8))
p52_in_aaagg(T54, X10, T131, T31, T8) → U33_aaagg(T54, X10, T131, T31, T8, qs80_in_aa(T54, X10))
qs80_in_aa(.(T230, T231), X452) → U22_aa(T230, T231, X452, part87_in_aaaa(T230, T231, X448, X449))
part87_in_aaaa(T256, .(T257, T258), .(T257, X503), X504) → U38_aaaa(T256, T257, T258, X503, X504, gt10_in_aa(T256, T257))
U38_aaaa(T256, T257, T258, X503, X504, gt10_out_aa(T256, T257)) → part87_out_aaaa(T256, .(T257, T258), .(T257, X503), X504)
part87_in_aaaa(T261, .(T257, T262), .(T257, X503), X504) → U39_aaaa(T261, T257, T262, X503, X504, gt10_in_aa(T261, T257))
U39_aaaa(T261, T257, T262, X503, X504, gt10_out_aa(T261, T257)) → U40_aaaa(T261, T257, T262, X503, X504, part20_in_gaaa(T261, T262, X503, X504))
U40_aaaa(T261, T257, T262, X503, X504, part20_out_gaaa(T261, T262, X503, X504)) → part87_out_aaaa(T261, .(T257, T262), .(T257, X503), X504)
part87_in_aaaa(T283, .(T284, T285), X554, .(T284, X555)) → U41_aaaa(T283, T284, T285, X554, X555, le100_in_aa(T283, T284))
le100_in_aa(s(T302), s(T303)) → U21_aa(T302, T303, le100_in_aa(T302, T303))
le100_in_aa(0, s(T310)) → le100_out_aa(0, s(T310))
le100_in_aa(0, 0) → le100_out_aa(0, 0)
U21_aa(T302, T303, le100_out_aa(T302, T303)) → le100_out_aa(s(T302), s(T303))
U41_aaaa(T283, T284, T285, X554, X555, le100_out_aa(T283, T284)) → part87_out_aaaa(T283, .(T284, T285), X554, .(T284, X555))
part87_in_aaaa(T288, .(T284, T289), X554, .(T284, X555)) → U42_aaaa(T288, T284, T289, X554, X555, le100_in_aa(T288, T284))
U42_aaaa(T288, T284, T289, X554, X555, le100_out_aa(T288, T284)) → U43_aaaa(T288, T284, T289, X554, X555, part20_in_gaaa(T288, T289, X554, X555))
U43_aaaa(T288, T284, T289, X554, X555, part20_out_gaaa(T288, T289, X554, X555)) → part87_out_aaaa(T288, .(T284, T289), X554, .(T284, X555))
part87_in_aaaa(T316, [], [], []) → part87_out_aaaa(T316, [], [], [])
U22_aa(T230, T231, X452, part87_out_aaaa(T230, T231, X448, X449)) → qs80_out_aa(.(T230, T231), X452)
qs80_in_aa(.(T237, T231), X452) → U23_aa(T237, T231, X452, part87_in_aaaa(T237, T231, T235, T236))
U23_aa(T237, T231, X452, part87_out_aaaa(T237, T231, T235, T236)) → U24_aa(T237, T231, X452, qs80_in_aa(T235, X450))
qs80_in_aa(.(T325, T231), X452) → U27_aa(T325, T231, X452, part87_in_aaaa(T325, T231, T235, T236))
U27_aa(T325, T231, X452, part87_out_aaaa(T325, T231, T235, T236)) → U28_aa(T325, T231, X452, T236, qs80_in_aa(T235, T319))
qs80_in_aa([], []) → qs80_out_aa([], [])
U28_aa(T325, T231, X452, T236, qs80_out_aa(T235, T319)) → U29_aa(T325, T231, X452, T319, qs80_in_aa(T236, T324))
U29_aa(T325, T231, X452, T319, qs80_out_aa(T236, T324)) → U30_aa(T325, T231, X452, app121_in_aaaa(T319, T325, T324, X452))
app121_in_aaaa(.(T348, T349), T352, T353, .(T348, X657)) → U31_aaaa(T348, T349, T352, T353, X657, app121_in_aaaa(T349, T352, T353, X657))
app121_in_aaaa([], T362, T363, .(T362, T363)) → app121_out_aaaa([], T362, T363, .(T362, T363))
U31_aaaa(T348, T349, T352, T353, X657, app121_out_aaaa(T349, T352, T353, X657)) → app121_out_aaaa(.(T348, T349), T352, T353, .(T348, X657))
U30_aa(T325, T231, X452, app121_out_aaaa(T319, T325, T324, X452)) → qs80_out_aa(.(T325, T231), X452)
U24_aa(T237, T231, X452, qs80_out_aa(T235, X450)) → qs80_out_aa(.(T237, T231), X452)
U23_aa(T237, T231, X452, part87_out_aaaa(T237, T231, T235, T236)) → U25_aa(T237, T231, X452, T236, qs80_in_aa(T235, T319))
U25_aa(T237, T231, X452, T236, qs80_out_aa(T235, T319)) → U26_aa(T237, T231, X452, qs80_in_aa(T236, X451))
U26_aa(T237, T231, X452, qs80_out_aa(T236, X451)) → qs80_out_aa(.(T237, T231), X452)
U33_aaagg(T54, X10, T131, T31, T8, qs80_out_aa(T54, X10)) → p52_out_aaagg(T54, X10, T131, T31, T8)
p52_in_aaagg(T54, T217, T131, T31, T8) → U34_aaagg(T54, T217, T131, T31, T8, qs80_in_aa(T54, T217))
U34_aaagg(T54, T217, T131, T31, T8, qs80_out_aa(T54, T217)) → U35_aaagg(T54, T217, T131, T31, T8, app81_in_agag(T131, T31, T217, T8))
app81_in_agag(.(T389, T390), T391, T394, .(T389, T393)) → U32_agag(T389, T390, T391, T394, T393, app81_in_agag(T390, T391, T394, T393))
app81_in_agag([], T404, T405, .(T404, T405)) → app81_out_agag([], T404, T405, .(T404, T405))
U32_agag(T389, T390, T391, T394, T393, app81_out_agag(T390, T391, T394, T393)) → app81_out_agag(.(T389, T390), T391, T394, .(T389, T393))
U35_aaagg(T54, T217, T131, T31, T8, app81_out_agag(T131, T31, T217, T8)) → p52_out_aaagg(T54, T217, T131, T31, T8)
U50_ag(T31, T33, T32, T8, p52_out_aaagg(T54, X10, T131, T31, T8)) → qs1_out_ag(.(T31, .(T33, T32)), T8)
qs1_in_ag(.(T421, .(T422, T423)), T8) → U51_ag(T421, T422, T423, T8, le100_in_aa(T421, T422))
U51_ag(T421, T422, T423, T8, le100_out_aa(T421, T422)) → qs1_out_ag(.(T421, .(T422, T423)), T8)
qs1_in_ag(.(T426, .(T428, T427)), T8) → U52_ag(T426, T428, T427, T8, le100_in_aa(T426, T428))
U52_ag(T426, T428, T427, T8, le100_out_aa(T426, T428)) → U53_ag(T426, T428, T427, T8, part20_in_gaaa(T426, T427, X740, X741))
U53_ag(T426, T428, T427, T8, part20_out_gaaa(T426, T427, X740, X741)) → qs1_out_ag(.(T426, .(T428, T427)), T8)
qs1_in_ag(.(T426, .(T436, T427)), T8) → U54_ag(T426, T436, T427, T8, le100_in_aa(T426, T436))
U54_ag(T426, T436, T427, T8, le100_out_aa(T426, T436)) → U55_ag(T426, T436, T427, T8, part20_in_gaaa(T426, T427, T434, T435))
U55_ag(T426, T436, T427, T8, part20_out_gaaa(T426, T427, T434, T435)) → U56_ag(T426, T436, T427, T8, qs80_in_aa(T434, X9))
U56_ag(T426, T436, T427, T8, qs80_out_aa(T434, X9)) → qs1_out_ag(.(T426, .(T436, T427)), T8)
U55_ag(T426, T436, T427, T8, part20_out_gaaa(T426, T427, T434, T435)) → U57_ag(T426, T436, T427, T8, T435, qs80_in_aa(T434, T442))
U57_ag(T426, T436, T427, T8, T435, qs80_out_aa(T434, T442)) → U58_ag(T426, T436, T427, T8, p52_in_aaagg(.(T436, T435), X10, T442, T426, T8))
U58_ag(T426, T436, T427, T8, p52_out_aaagg(.(T436, T435), X10, T442, T426, T8)) → qs1_out_ag(.(T426, .(T436, T427)), T8)
qs1_in_ag(.(T452, []), T8) → U59_ag(T452, T8, qs155_in_a(X9))
qs155_in_a([]) → qs155_out_a([])
U59_ag(T452, T8, qs155_out_a(X9)) → qs1_out_ag(.(T452, []), T8)
qs1_in_ag(.(T452, []), T8) → U60_ag(T452, T8, qs155_in_a(T455))
U60_ag(T452, T8, qs155_out_a(T455)) → U61_ag(T452, T8, qs155_in_a(X10))
U61_ag(T452, T8, qs155_out_a(X10)) → qs1_out_ag(.(T452, []), T8)
U60_ag(T452, T8, qs155_out_a(T455)) → U62_ag(T452, T8, T455, qs155_in_a(T460))
U62_ag(T452, T8, T455, qs155_out_a(T460)) → U63_ag(T452, T8, app162_in_gagg(T455, T452, T460, T8))
app162_in_gagg(.(T486, T487), T491, T489, .(T486, T490)) → U36_gagg(T486, T487, T491, T489, T490, app162_in_gagg(T487, T491, T489, T490))
app162_in_gagg([], T501, T502, .(T501, T502)) → app162_out_gagg([], T501, T502, .(T501, T502))
U36_gagg(T486, T487, T491, T489, T490, app162_out_gagg(T487, T491, T489, T490)) → app162_out_gagg(.(T486, T487), T491, T489, .(T486, T490))
U63_ag(T452, T8, app162_out_gagg(T455, T452, T460, T8)) → qs1_out_ag(.(T452, []), T8)
qs1_in_ag([], []) → qs1_out_ag([], [])
QS1_IN_AG(.(T26, .(T27, T28)), T8) → U44_AG(T26, T27, T28, T8, gt10_in_aa(T26, T27))
QS1_IN_AG(.(T26, .(T27, T28)), T8) → GT10_IN_AA(T26, T27)
GT10_IN_AA(s(T46), s(T47)) → U1_AA(T46, T47, gt10_in_aa(T46, T47))
GT10_IN_AA(s(T46), s(T47)) → GT10_IN_AA(T46, T47)
QS1_IN_AG(.(T31, .(T33, T32)), T8) → U45_AG(T31, T33, T32, T8, gt10_in_aa(T31, T33))
U45_AG(T31, T33, T32, T8, gt10_out_aa(T31, T33)) → U46_AG(T31, T33, T32, T8, part20_in_gaaa(T31, T32, X47, X48))
U45_AG(T31, T33, T32, T8, gt10_out_aa(T31, T33)) → PART20_IN_GAAA(T31, T32, X47, X48)
PART20_IN_GAAA(T70, .(T73, T74), .(T73, X119), X120) → U2_GAAA(T70, T73, T74, X119, X120, gt10_in_ga(T70, T73))
PART20_IN_GAAA(T70, .(T73, T74), .(T73, X119), X120) → GT10_IN_GA(T70, T73)
GT10_IN_GA(s(T46), s(T47)) → U1_GA(T46, T47, gt10_in_ga(T46, T47))
GT10_IN_GA(s(T46), s(T47)) → GT10_IN_GA(T46, T47)
PART20_IN_GAAA(T70, .(T73, T77), .(T73, X119), X120) → U3_GAAA(T70, T73, T77, X119, X120, gt10_in_ga(T70, T73))
U3_GAAA(T70, T73, T77, X119, X120, gt10_out_ga(T70, T73)) → U4_GAAA(T70, T73, T77, X119, X120, part20_in_gaaa(T70, T77, X119, X120))
U3_GAAA(T70, T73, T77, X119, X120, gt10_out_ga(T70, T73)) → PART20_IN_GAAA(T70, T77, X119, X120)
PART20_IN_GAAA(T95, .(T98, T99), X170, .(T98, X171)) → U5_GAAA(T95, T98, T99, X170, X171, le33_in_ga(T95, T98))
PART20_IN_GAAA(T95, .(T98, T99), X170, .(T98, X171)) → LE33_IN_GA(T95, T98)
LE33_IN_GA(s(T113), s(T115)) → U8_GA(T113, T115, le33_in_ga(T113, T115))
LE33_IN_GA(s(T113), s(T115)) → LE33_IN_GA(T113, T115)
PART20_IN_GAAA(T95, .(T98, T102), X170, .(T98, X171)) → U6_GAAA(T95, T98, T102, X170, X171, le33_in_ga(T95, T98))
U6_GAAA(T95, T98, T102, X170, X171, le33_out_ga(T95, T98)) → U7_GAAA(T95, T98, T102, X170, X171, part20_in_gaaa(T95, T102, X170, X171))
U6_GAAA(T95, T98, T102, X170, X171, le33_out_ga(T95, T98)) → PART20_IN_GAAA(T95, T102, X170, X171)
U45_AG(T31, T33, T32, T8, gt10_out_aa(T31, T33)) → U47_AG(T31, T33, T32, T8, part20_in_gaaa(T31, T32, T53, T54))
U47_AG(T31, T33, T32, T8, part20_out_gaaa(T31, T32, T53, T54)) → U48_AG(T31, T33, T32, T8, qs51_in_gaa(T33, T53, X9))
U47_AG(T31, T33, T32, T8, part20_out_gaaa(T31, T32, T53, T54)) → QS51_IN_GAA(T33, T53, X9)
QS51_IN_GAA(T148, T149, X273) → U37_GAA(T148, T149, X273, p56_in_gaaaaaa(T148, T149, X269, X270, X271, X272, X273))
QS51_IN_GAA(T148, T149, X273) → P56_IN_GAAAAAA(T148, T149, X269, X270, X271, X272, X273)
P56_IN_GAAAAAA(T148, T149, X269, X270, X271, X272, X273) → U9_GAAAAAA(T148, T149, X269, X270, X271, X272, X273, part20_in_gaaa(T148, T149, X269, X270))
P56_IN_GAAAAAA(T148, T149, X269, X270, X271, X272, X273) → PART20_IN_GAAA(T148, T149, X269, X270)
P56_IN_GAAAAAA(T148, T149, T153, T154, X271, X272, X273) → U10_GAAAAAA(T148, T149, T153, T154, X271, X272, X273, part20_in_gaaa(T148, T149, T153, T154))
U10_GAAAAAA(T148, T149, T153, T154, X271, X272, X273, part20_out_gaaa(T148, T149, T153, T154)) → U11_GAAAAAA(T148, T149, T153, T154, X271, X272, X273, qs59_in_aa(T153, X271))
U10_GAAAAAA(T148, T149, T153, T154, X271, X272, X273, part20_out_gaaa(T148, T149, T153, T154)) → QS59_IN_AA(T153, X271)
QS59_IN_AA(.(T171, T172), X335) → U19_AA(T171, T172, X335, p56_in_aaaaaaa(T171, T172, X331, X332, X333, X334, X335))
QS59_IN_AA(.(T171, T172), X335) → P56_IN_AAAAAAA(T171, T172, X331, X332, X333, X334, X335)
P56_IN_AAAAAAA(T148, T149, X269, X270, X271, X272, X273) → U9_AAAAAAA(T148, T149, X269, X270, X271, X272, X273, part20_in_aaaa(T148, T149, X269, X270))
P56_IN_AAAAAAA(T148, T149, X269, X270, X271, X272, X273) → PART20_IN_AAAA(T148, T149, X269, X270)
PART20_IN_AAAA(T70, .(T73, T74), .(T73, X119), X120) → U2_AAAA(T70, T73, T74, X119, X120, gt10_in_aa(T70, T73))
PART20_IN_AAAA(T70, .(T73, T74), .(T73, X119), X120) → GT10_IN_AA(T70, T73)
PART20_IN_AAAA(T70, .(T73, T77), .(T73, X119), X120) → U3_AAAA(T70, T73, T77, X119, X120, gt10_in_aa(T70, T73))
U3_AAAA(T70, T73, T77, X119, X120, gt10_out_aa(T70, T73)) → U4_AAAA(T70, T73, T77, X119, X120, part20_in_gaaa(T70, T77, X119, X120))
U3_AAAA(T70, T73, T77, X119, X120, gt10_out_aa(T70, T73)) → PART20_IN_GAAA(T70, T77, X119, X120)
PART20_IN_AAAA(T95, .(T98, T99), X170, .(T98, X171)) → U5_AAAA(T95, T98, T99, X170, X171, le33_in_aa(T95, T98))
PART20_IN_AAAA(T95, .(T98, T99), X170, .(T98, X171)) → LE33_IN_AA(T95, T98)
LE33_IN_AA(s(T113), s(T115)) → U8_AA(T113, T115, le33_in_aa(T113, T115))
LE33_IN_AA(s(T113), s(T115)) → LE33_IN_AA(T113, T115)
PART20_IN_AAAA(T95, .(T98, T102), X170, .(T98, X171)) → U6_AAAA(T95, T98, T102, X170, X171, le33_in_aa(T95, T98))
U6_AAAA(T95, T98, T102, X170, X171, le33_out_aa(T95, T98)) → U7_AAAA(T95, T98, T102, X170, X171, part20_in_gaaa(T95, T102, X170, X171))
U6_AAAA(T95, T98, T102, X170, X171, le33_out_aa(T95, T98)) → PART20_IN_GAAA(T95, T102, X170, X171)
P56_IN_AAAAAAA(T148, T149, T153, T154, X271, X272, X273) → U10_AAAAAAA(T148, T149, T153, T154, X271, X272, X273, part20_in_aaaa(T148, T149, T153, T154))
U10_AAAAAAA(T148, T149, T153, T154, X271, X272, X273, part20_out_aaaa(T148, T149, T153, T154)) → U11_AAAAAAA(T148, T149, T153, T154, X271, X272, X273, qs59_in_aa(T153, X271))
U10_AAAAAAA(T148, T149, T153, T154, X271, X272, X273, part20_out_aaaa(T148, T149, T153, T154)) → QS59_IN_AA(T153, X271)
P56_IN_AAAAAAA(T148, T149, T153, T154, T160, X272, X273) → U12_AAAAAAA(T148, T149, T153, T154, T160, X272, X273, part20_in_aaaa(T148, T149, T153, T154))
U12_AAAAAAA(T148, T149, T153, T154, T160, X272, X273, part20_out_aaaa(T148, T149, T153, T154)) → U13_AAAAAAA(T148, T149, T153, T154, T160, X272, X273, qs59_in_aa(T153, T160))
U12_AAAAAAA(T148, T149, T153, T154, T160, X272, X273, part20_out_aaaa(T148, T149, T153, T154)) → QS59_IN_AA(T153, T160)
U13_AAAAAAA(T148, T149, T153, T154, T160, X272, X273, qs59_out_aa(T153, T160)) → U14_AAAAAAA(T148, T149, T153, T154, T160, X272, X273, qs59_in_aa(T154, X272))
U13_AAAAAAA(T148, T149, T153, T154, T160, X272, X273, qs59_out_aa(T153, T160)) → QS59_IN_AA(T154, X272)
P56_IN_AAAAAAA(T148, T149, T153, T154, T160, T178, X273) → U15_AAAAAAA(T148, T149, T153, T154, T160, T178, X273, part20_in_aaaa(T148, T149, T153, T154))
U15_AAAAAAA(T148, T149, T153, T154, T160, T178, X273, part20_out_aaaa(T148, T149, T153, T154)) → U16_AAAAAAA(T148, T149, T153, T154, T160, T178, X273, qs59_in_aa(T153, T160))
U15_AAAAAAA(T148, T149, T153, T154, T160, T178, X273, part20_out_aaaa(T148, T149, T153, T154)) → QS59_IN_AA(T153, T160)
U16_AAAAAAA(T148, T149, T153, T154, T160, T178, X273, qs59_out_aa(T153, T160)) → U17_AAAAAAA(T148, T149, T153, T154, T160, T178, X273, qs59_in_aa(T154, T178))
U16_AAAAAAA(T148, T149, T153, T154, T160, T178, X273, qs59_out_aa(T153, T160)) → QS59_IN_AA(T154, T178)
U17_AAAAAAA(T148, T149, T153, T154, T160, T178, X273, qs59_out_aa(T154, T178)) → U18_AAAAAAA(T148, T149, T153, T154, T160, T178, X273, app70_in_aaaa(T160, T148, T178, X273))
U17_AAAAAAA(T148, T149, T153, T154, T160, T178, X273, qs59_out_aa(T154, T178)) → APP70_IN_AAAA(T160, T148, T178, X273)
APP70_IN_AAAA(.(T201, T202), T203, T204, .(T201, X391)) → U20_AAAA(T201, T202, T203, T204, X391, app70_in_aaaa(T202, T203, T204, X391))
APP70_IN_AAAA(.(T201, T202), T203, T204, .(T201, X391)) → APP70_IN_AAAA(T202, T203, T204, X391)
P56_IN_GAAAAAA(T148, T149, T153, T154, T160, X272, X273) → U12_GAAAAAA(T148, T149, T153, T154, T160, X272, X273, part20_in_gaaa(T148, T149, T153, T154))
U12_GAAAAAA(T148, T149, T153, T154, T160, X272, X273, part20_out_gaaa(T148, T149, T153, T154)) → U13_GAAAAAA(T148, T149, T153, T154, T160, X272, X273, qs59_in_aa(T153, T160))
U12_GAAAAAA(T148, T149, T153, T154, T160, X272, X273, part20_out_gaaa(T148, T149, T153, T154)) → QS59_IN_AA(T153, T160)
U13_GAAAAAA(T148, T149, T153, T154, T160, X272, X273, qs59_out_aa(T153, T160)) → U14_GAAAAAA(T148, T149, T153, T154, T160, X272, X273, qs59_in_aa(T154, X272))
U13_GAAAAAA(T148, T149, T153, T154, T160, X272, X273, qs59_out_aa(T153, T160)) → QS59_IN_AA(T154, X272)
P56_IN_GAAAAAA(T148, T149, T153, T154, T160, T178, X273) → U15_GAAAAAA(T148, T149, T153, T154, T160, T178, X273, part20_in_gaaa(T148, T149, T153, T154))
U15_GAAAAAA(T148, T149, T153, T154, T160, T178, X273, part20_out_gaaa(T148, T149, T153, T154)) → U16_GAAAAAA(T148, T149, T153, T154, T160, T178, X273, qs59_in_aa(T153, T160))
U15_GAAAAAA(T148, T149, T153, T154, T160, T178, X273, part20_out_gaaa(T148, T149, T153, T154)) → QS59_IN_AA(T153, T160)
U16_GAAAAAA(T148, T149, T153, T154, T160, T178, X273, qs59_out_aa(T153, T160)) → U17_GAAAAAA(T148, T149, T153, T154, T160, T178, X273, qs59_in_aa(T154, T178))
U16_GAAAAAA(T148, T149, T153, T154, T160, T178, X273, qs59_out_aa(T153, T160)) → QS59_IN_AA(T154, T178)
U17_GAAAAAA(T148, T149, T153, T154, T160, T178, X273, qs59_out_aa(T154, T178)) → U18_GAAAAAA(T148, T149, T153, T154, T160, T178, X273, app70_in_agaa(T160, T148, T178, X273))
U17_GAAAAAA(T148, T149, T153, T154, T160, T178, X273, qs59_out_aa(T154, T178)) → APP70_IN_AGAA(T160, T148, T178, X273)
APP70_IN_AGAA(.(T201, T202), T203, T204, .(T201, X391)) → U20_AGAA(T201, T202, T203, T204, X391, app70_in_agaa(T202, T203, T204, X391))
APP70_IN_AGAA(.(T201, T202), T203, T204, .(T201, X391)) → APP70_IN_AGAA(T202, T203, T204, X391)
U47_AG(T31, T33, T32, T8, part20_out_gaaa(T31, T32, T53, T54)) → U49_AG(T31, T33, T32, T8, T54, qs51_in_gaa(T33, T53, T131))
U49_AG(T31, T33, T32, T8, T54, qs51_out_gaa(T33, T53, T131)) → U50_AG(T31, T33, T32, T8, p52_in_aaagg(T54, X10, T131, T31, T8))
U49_AG(T31, T33, T32, T8, T54, qs51_out_gaa(T33, T53, T131)) → P52_IN_AAAGG(T54, X10, T131, T31, T8)
P52_IN_AAAGG(T54, X10, T131, T31, T8) → U33_AAAGG(T54, X10, T131, T31, T8, qs80_in_aa(T54, X10))
P52_IN_AAAGG(T54, X10, T131, T31, T8) → QS80_IN_AA(T54, X10)
QS80_IN_AA(.(T230, T231), X452) → U22_AA(T230, T231, X452, part87_in_aaaa(T230, T231, X448, X449))
QS80_IN_AA(.(T230, T231), X452) → PART87_IN_AAAA(T230, T231, X448, X449)
PART87_IN_AAAA(T256, .(T257, T258), .(T257, X503), X504) → U38_AAAA(T256, T257, T258, X503, X504, gt10_in_aa(T256, T257))
PART87_IN_AAAA(T256, .(T257, T258), .(T257, X503), X504) → GT10_IN_AA(T256, T257)
PART87_IN_AAAA(T261, .(T257, T262), .(T257, X503), X504) → U39_AAAA(T261, T257, T262, X503, X504, gt10_in_aa(T261, T257))
U39_AAAA(T261, T257, T262, X503, X504, gt10_out_aa(T261, T257)) → U40_AAAA(T261, T257, T262, X503, X504, part20_in_gaaa(T261, T262, X503, X504))
U39_AAAA(T261, T257, T262, X503, X504, gt10_out_aa(T261, T257)) → PART20_IN_GAAA(T261, T262, X503, X504)
PART87_IN_AAAA(T283, .(T284, T285), X554, .(T284, X555)) → U41_AAAA(T283, T284, T285, X554, X555, le100_in_aa(T283, T284))
PART87_IN_AAAA(T283, .(T284, T285), X554, .(T284, X555)) → LE100_IN_AA(T283, T284)
LE100_IN_AA(s(T302), s(T303)) → U21_AA(T302, T303, le100_in_aa(T302, T303))
LE100_IN_AA(s(T302), s(T303)) → LE100_IN_AA(T302, T303)
PART87_IN_AAAA(T288, .(T284, T289), X554, .(T284, X555)) → U42_AAAA(T288, T284, T289, X554, X555, le100_in_aa(T288, T284))
U42_AAAA(T288, T284, T289, X554, X555, le100_out_aa(T288, T284)) → U43_AAAA(T288, T284, T289, X554, X555, part20_in_gaaa(T288, T289, X554, X555))
U42_AAAA(T288, T284, T289, X554, X555, le100_out_aa(T288, T284)) → PART20_IN_GAAA(T288, T289, X554, X555)
QS80_IN_AA(.(T237, T231), X452) → U23_AA(T237, T231, X452, part87_in_aaaa(T237, T231, T235, T236))
U23_AA(T237, T231, X452, part87_out_aaaa(T237, T231, T235, T236)) → U24_AA(T237, T231, X452, qs80_in_aa(T235, X450))
U23_AA(T237, T231, X452, part87_out_aaaa(T237, T231, T235, T236)) → QS80_IN_AA(T235, X450)
QS80_IN_AA(.(T325, T231), X452) → U27_AA(T325, T231, X452, part87_in_aaaa(T325, T231, T235, T236))
U27_AA(T325, T231, X452, part87_out_aaaa(T325, T231, T235, T236)) → U28_AA(T325, T231, X452, T236, qs80_in_aa(T235, T319))
U27_AA(T325, T231, X452, part87_out_aaaa(T325, T231, T235, T236)) → QS80_IN_AA(T235, T319)
U28_AA(T325, T231, X452, T236, qs80_out_aa(T235, T319)) → U29_AA(T325, T231, X452, T319, qs80_in_aa(T236, T324))
U28_AA(T325, T231, X452, T236, qs80_out_aa(T235, T319)) → QS80_IN_AA(T236, T324)
U29_AA(T325, T231, X452, T319, qs80_out_aa(T236, T324)) → U30_AA(T325, T231, X452, app121_in_aaaa(T319, T325, T324, X452))
U29_AA(T325, T231, X452, T319, qs80_out_aa(T236, T324)) → APP121_IN_AAAA(T319, T325, T324, X452)
APP121_IN_AAAA(.(T348, T349), T352, T353, .(T348, X657)) → U31_AAAA(T348, T349, T352, T353, X657, app121_in_aaaa(T349, T352, T353, X657))
APP121_IN_AAAA(.(T348, T349), T352, T353, .(T348, X657)) → APP121_IN_AAAA(T349, T352, T353, X657)
U23_AA(T237, T231, X452, part87_out_aaaa(T237, T231, T235, T236)) → U25_AA(T237, T231, X452, T236, qs80_in_aa(T235, T319))
U25_AA(T237, T231, X452, T236, qs80_out_aa(T235, T319)) → U26_AA(T237, T231, X452, qs80_in_aa(T236, X451))
U25_AA(T237, T231, X452, T236, qs80_out_aa(T235, T319)) → QS80_IN_AA(T236, X451)
P52_IN_AAAGG(T54, T217, T131, T31, T8) → U34_AAAGG(T54, T217, T131, T31, T8, qs80_in_aa(T54, T217))
U34_AAAGG(T54, T217, T131, T31, T8, qs80_out_aa(T54, T217)) → U35_AAAGG(T54, T217, T131, T31, T8, app81_in_agag(T131, T31, T217, T8))
U34_AAAGG(T54, T217, T131, T31, T8, qs80_out_aa(T54, T217)) → APP81_IN_AGAG(T131, T31, T217, T8)
APP81_IN_AGAG(.(T389, T390), T391, T394, .(T389, T393)) → U32_AGAG(T389, T390, T391, T394, T393, app81_in_agag(T390, T391, T394, T393))
APP81_IN_AGAG(.(T389, T390), T391, T394, .(T389, T393)) → APP81_IN_AGAG(T390, T391, T394, T393)
QS1_IN_AG(.(T421, .(T422, T423)), T8) → U51_AG(T421, T422, T423, T8, le100_in_aa(T421, T422))
QS1_IN_AG(.(T421, .(T422, T423)), T8) → LE100_IN_AA(T421, T422)
QS1_IN_AG(.(T426, .(T428, T427)), T8) → U52_AG(T426, T428, T427, T8, le100_in_aa(T426, T428))
U52_AG(T426, T428, T427, T8, le100_out_aa(T426, T428)) → U53_AG(T426, T428, T427, T8, part20_in_gaaa(T426, T427, X740, X741))
U52_AG(T426, T428, T427, T8, le100_out_aa(T426, T428)) → PART20_IN_GAAA(T426, T427, X740, X741)
QS1_IN_AG(.(T426, .(T436, T427)), T8) → U54_AG(T426, T436, T427, T8, le100_in_aa(T426, T436))
U54_AG(T426, T436, T427, T8, le100_out_aa(T426, T436)) → U55_AG(T426, T436, T427, T8, part20_in_gaaa(T426, T427, T434, T435))
U54_AG(T426, T436, T427, T8, le100_out_aa(T426, T436)) → PART20_IN_GAAA(T426, T427, T434, T435)
U55_AG(T426, T436, T427, T8, part20_out_gaaa(T426, T427, T434, T435)) → U56_AG(T426, T436, T427, T8, qs80_in_aa(T434, X9))
U55_AG(T426, T436, T427, T8, part20_out_gaaa(T426, T427, T434, T435)) → QS80_IN_AA(T434, X9)
U55_AG(T426, T436, T427, T8, part20_out_gaaa(T426, T427, T434, T435)) → U57_AG(T426, T436, T427, T8, T435, qs80_in_aa(T434, T442))
U57_AG(T426, T436, T427, T8, T435, qs80_out_aa(T434, T442)) → U58_AG(T426, T436, T427, T8, p52_in_aaagg(.(T436, T435), X10, T442, T426, T8))
U57_AG(T426, T436, T427, T8, T435, qs80_out_aa(T434, T442)) → P52_IN_AAAGG(.(T436, T435), X10, T442, T426, T8)
QS1_IN_AG(.(T452, []), T8) → U59_AG(T452, T8, qs155_in_a(X9))
QS1_IN_AG(.(T452, []), T8) → QS155_IN_A(X9)
QS1_IN_AG(.(T452, []), T8) → U60_AG(T452, T8, qs155_in_a(T455))
U60_AG(T452, T8, qs155_out_a(T455)) → U61_AG(T452, T8, qs155_in_a(X10))
U60_AG(T452, T8, qs155_out_a(T455)) → QS155_IN_A(X10)
U60_AG(T452, T8, qs155_out_a(T455)) → U62_AG(T452, T8, T455, qs155_in_a(T460))
U62_AG(T452, T8, T455, qs155_out_a(T460)) → U63_AG(T452, T8, app162_in_gagg(T455, T452, T460, T8))
U62_AG(T452, T8, T455, qs155_out_a(T460)) → APP162_IN_GAGG(T455, T452, T460, T8)
APP162_IN_GAGG(.(T486, T487), T491, T489, .(T486, T490)) → U36_GAGG(T486, T487, T491, T489, T490, app162_in_gagg(T487, T491, T489, T490))
APP162_IN_GAGG(.(T486, T487), T491, T489, .(T486, T490)) → APP162_IN_GAGG(T487, T491, T489, T490)
qs1_in_ag(.(T26, .(T27, T28)), T8) → U44_ag(T26, T27, T28, T8, gt10_in_aa(T26, T27))
gt10_in_aa(s(T46), s(T47)) → U1_aa(T46, T47, gt10_in_aa(T46, T47))
gt10_in_aa(s(0), 0) → gt10_out_aa(s(0), 0)
U1_aa(T46, T47, gt10_out_aa(T46, T47)) → gt10_out_aa(s(T46), s(T47))
U44_ag(T26, T27, T28, T8, gt10_out_aa(T26, T27)) → qs1_out_ag(.(T26, .(T27, T28)), T8)
qs1_in_ag(.(T31, .(T33, T32)), T8) → U45_ag(T31, T33, T32, T8, gt10_in_aa(T31, T33))
U45_ag(T31, T33, T32, T8, gt10_out_aa(T31, T33)) → U46_ag(T31, T33, T32, T8, part20_in_gaaa(T31, T32, X47, X48))
part20_in_gaaa(T70, .(T73, T74), .(T73, X119), X120) → U2_gaaa(T70, T73, T74, X119, X120, gt10_in_ga(T70, T73))
gt10_in_ga(s(T46), s(T47)) → U1_ga(T46, T47, gt10_in_ga(T46, T47))
gt10_in_ga(s(0), 0) → gt10_out_ga(s(0), 0)
U1_ga(T46, T47, gt10_out_ga(T46, T47)) → gt10_out_ga(s(T46), s(T47))
U2_gaaa(T70, T73, T74, X119, X120, gt10_out_ga(T70, T73)) → part20_out_gaaa(T70, .(T73, T74), .(T73, X119), X120)
part20_in_gaaa(T70, .(T73, T77), .(T73, X119), X120) → U3_gaaa(T70, T73, T77, X119, X120, gt10_in_ga(T70, T73))
U3_gaaa(T70, T73, T77, X119, X120, gt10_out_ga(T70, T73)) → U4_gaaa(T70, T73, T77, X119, X120, part20_in_gaaa(T70, T77, X119, X120))
part20_in_gaaa(T95, .(T98, T99), X170, .(T98, X171)) → U5_gaaa(T95, T98, T99, X170, X171, le33_in_ga(T95, T98))
le33_in_ga(s(T113), s(T115)) → U8_ga(T113, T115, le33_in_ga(T113, T115))
le33_in_ga(0, s(T122)) → le33_out_ga(0, s(T122))
le33_in_ga(0, 0) → le33_out_ga(0, 0)
U8_ga(T113, T115, le33_out_ga(T113, T115)) → le33_out_ga(s(T113), s(T115))
U5_gaaa(T95, T98, T99, X170, X171, le33_out_ga(T95, T98)) → part20_out_gaaa(T95, .(T98, T99), X170, .(T98, X171))
part20_in_gaaa(T95, .(T98, T102), X170, .(T98, X171)) → U6_gaaa(T95, T98, T102, X170, X171, le33_in_ga(T95, T98))
U6_gaaa(T95, T98, T102, X170, X171, le33_out_ga(T95, T98)) → U7_gaaa(T95, T98, T102, X170, X171, part20_in_gaaa(T95, T102, X170, X171))
part20_in_gaaa(T128, [], [], []) → part20_out_gaaa(T128, [], [], [])
U7_gaaa(T95, T98, T102, X170, X171, part20_out_gaaa(T95, T102, X170, X171)) → part20_out_gaaa(T95, .(T98, T102), X170, .(T98, X171))
U4_gaaa(T70, T73, T77, X119, X120, part20_out_gaaa(T70, T77, X119, X120)) → part20_out_gaaa(T70, .(T73, T77), .(T73, X119), X120)
U46_ag(T31, T33, T32, T8, part20_out_gaaa(T31, T32, X47, X48)) → qs1_out_ag(.(T31, .(T33, T32)), T8)
U45_ag(T31, T33, T32, T8, gt10_out_aa(T31, T33)) → U47_ag(T31, T33, T32, T8, part20_in_gaaa(T31, T32, T53, T54))
U47_ag(T31, T33, T32, T8, part20_out_gaaa(T31, T32, T53, T54)) → U48_ag(T31, T33, T32, T8, qs51_in_gaa(T33, T53, X9))
qs51_in_gaa(T148, T149, X273) → U37_gaa(T148, T149, X273, p56_in_gaaaaaa(T148, T149, X269, X270, X271, X272, X273))
p56_in_gaaaaaa(T148, T149, X269, X270, X271, X272, X273) → U9_gaaaaaa(T148, T149, X269, X270, X271, X272, X273, part20_in_gaaa(T148, T149, X269, X270))
U9_gaaaaaa(T148, T149, X269, X270, X271, X272, X273, part20_out_gaaa(T148, T149, X269, X270)) → p56_out_gaaaaaa(T148, T149, X269, X270, X271, X272, X273)
p56_in_gaaaaaa(T148, T149, T153, T154, X271, X272, X273) → U10_gaaaaaa(T148, T149, T153, T154, X271, X272, X273, part20_in_gaaa(T148, T149, T153, T154))
U10_gaaaaaa(T148, T149, T153, T154, X271, X272, X273, part20_out_gaaa(T148, T149, T153, T154)) → U11_gaaaaaa(T148, T149, T153, T154, X271, X272, X273, qs59_in_aa(T153, X271))
qs59_in_aa(.(T171, T172), X335) → U19_aa(T171, T172, X335, p56_in_aaaaaaa(T171, T172, X331, X332, X333, X334, X335))
p56_in_aaaaaaa(T148, T149, X269, X270, X271, X272, X273) → U9_aaaaaaa(T148, T149, X269, X270, X271, X272, X273, part20_in_aaaa(T148, T149, X269, X270))
part20_in_aaaa(T70, .(T73, T74), .(T73, X119), X120) → U2_aaaa(T70, T73, T74, X119, X120, gt10_in_aa(T70, T73))
U2_aaaa(T70, T73, T74, X119, X120, gt10_out_aa(T70, T73)) → part20_out_aaaa(T70, .(T73, T74), .(T73, X119), X120)
part20_in_aaaa(T70, .(T73, T77), .(T73, X119), X120) → U3_aaaa(T70, T73, T77, X119, X120, gt10_in_aa(T70, T73))
U3_aaaa(T70, T73, T77, X119, X120, gt10_out_aa(T70, T73)) → U4_aaaa(T70, T73, T77, X119, X120, part20_in_gaaa(T70, T77, X119, X120))
U4_aaaa(T70, T73, T77, X119, X120, part20_out_gaaa(T70, T77, X119, X120)) → part20_out_aaaa(T70, .(T73, T77), .(T73, X119), X120)
part20_in_aaaa(T95, .(T98, T99), X170, .(T98, X171)) → U5_aaaa(T95, T98, T99, X170, X171, le33_in_aa(T95, T98))
le33_in_aa(s(T113), s(T115)) → U8_aa(T113, T115, le33_in_aa(T113, T115))
le33_in_aa(0, s(T122)) → le33_out_aa(0, s(T122))
le33_in_aa(0, 0) → le33_out_aa(0, 0)
U8_aa(T113, T115, le33_out_aa(T113, T115)) → le33_out_aa(s(T113), s(T115))
U5_aaaa(T95, T98, T99, X170, X171, le33_out_aa(T95, T98)) → part20_out_aaaa(T95, .(T98, T99), X170, .(T98, X171))
part20_in_aaaa(T95, .(T98, T102), X170, .(T98, X171)) → U6_aaaa(T95, T98, T102, X170, X171, le33_in_aa(T95, T98))
U6_aaaa(T95, T98, T102, X170, X171, le33_out_aa(T95, T98)) → U7_aaaa(T95, T98, T102, X170, X171, part20_in_gaaa(T95, T102, X170, X171))
U7_aaaa(T95, T98, T102, X170, X171, part20_out_gaaa(T95, T102, X170, X171)) → part20_out_aaaa(T95, .(T98, T102), X170, .(T98, X171))
part20_in_aaaa(T128, [], [], []) → part20_out_aaaa(T128, [], [], [])
U9_aaaaaaa(T148, T149, X269, X270, X271, X272, X273, part20_out_aaaa(T148, T149, X269, X270)) → p56_out_aaaaaaa(T148, T149, X269, X270, X271, X272, X273)
p56_in_aaaaaaa(T148, T149, T153, T154, X271, X272, X273) → U10_aaaaaaa(T148, T149, T153, T154, X271, X272, X273, part20_in_aaaa(T148, T149, T153, T154))
U10_aaaaaaa(T148, T149, T153, T154, X271, X272, X273, part20_out_aaaa(T148, T149, T153, T154)) → U11_aaaaaaa(T148, T149, T153, T154, X271, X272, X273, qs59_in_aa(T153, X271))
qs59_in_aa([], []) → qs59_out_aa([], [])
U11_aaaaaaa(T148, T149, T153, T154, X271, X272, X273, qs59_out_aa(T153, X271)) → p56_out_aaaaaaa(T148, T149, T153, T154, X271, X272, X273)
p56_in_aaaaaaa(T148, T149, T153, T154, T160, X272, X273) → U12_aaaaaaa(T148, T149, T153, T154, T160, X272, X273, part20_in_aaaa(T148, T149, T153, T154))
U12_aaaaaaa(T148, T149, T153, T154, T160, X272, X273, part20_out_aaaa(T148, T149, T153, T154)) → U13_aaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_in_aa(T153, T160))
U13_aaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_out_aa(T153, T160)) → U14_aaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_in_aa(T154, X272))
U14_aaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_out_aa(T154, X272)) → p56_out_aaaaaaa(T148, T149, T153, T154, T160, X272, X273)
p56_in_aaaaaaa(T148, T149, T153, T154, T160, T178, X273) → U15_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, part20_in_aaaa(T148, T149, T153, T154))
U15_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, part20_out_aaaa(T148, T149, T153, T154)) → U16_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_in_aa(T153, T160))
U16_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_out_aa(T153, T160)) → U17_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_in_aa(T154, T178))
U17_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_out_aa(T154, T178)) → U18_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, app70_in_aaaa(T160, T148, T178, X273))
app70_in_aaaa(.(T201, T202), T203, T204, .(T201, X391)) → U20_aaaa(T201, T202, T203, T204, X391, app70_in_aaaa(T202, T203, T204, X391))
app70_in_aaaa([], T213, T214, .(T213, T214)) → app70_out_aaaa([], T213, T214, .(T213, T214))
U20_aaaa(T201, T202, T203, T204, X391, app70_out_aaaa(T202, T203, T204, X391)) → app70_out_aaaa(.(T201, T202), T203, T204, .(T201, X391))
U18_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, app70_out_aaaa(T160, T148, T178, X273)) → p56_out_aaaaaaa(T148, T149, T153, T154, T160, T178, X273)
U19_aa(T171, T172, X335, p56_out_aaaaaaa(T171, T172, X331, X332, X333, X334, X335)) → qs59_out_aa(.(T171, T172), X335)
U11_gaaaaaa(T148, T149, T153, T154, X271, X272, X273, qs59_out_aa(T153, X271)) → p56_out_gaaaaaa(T148, T149, T153, T154, X271, X272, X273)
p56_in_gaaaaaa(T148, T149, T153, T154, T160, X272, X273) → U12_gaaaaaa(T148, T149, T153, T154, T160, X272, X273, part20_in_gaaa(T148, T149, T153, T154))
U12_gaaaaaa(T148, T149, T153, T154, T160, X272, X273, part20_out_gaaa(T148, T149, T153, T154)) → U13_gaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_in_aa(T153, T160))
U13_gaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_out_aa(T153, T160)) → U14_gaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_in_aa(T154, X272))
U14_gaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_out_aa(T154, X272)) → p56_out_gaaaaaa(T148, T149, T153, T154, T160, X272, X273)
p56_in_gaaaaaa(T148, T149, T153, T154, T160, T178, X273) → U15_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, part20_in_gaaa(T148, T149, T153, T154))
U15_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, part20_out_gaaa(T148, T149, T153, T154)) → U16_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_in_aa(T153, T160))
U16_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_out_aa(T153, T160)) → U17_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_in_aa(T154, T178))
U17_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_out_aa(T154, T178)) → U18_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, app70_in_agaa(T160, T148, T178, X273))
app70_in_agaa(.(T201, T202), T203, T204, .(T201, X391)) → U20_agaa(T201, T202, T203, T204, X391, app70_in_agaa(T202, T203, T204, X391))
app70_in_agaa([], T213, T214, .(T213, T214)) → app70_out_agaa([], T213, T214, .(T213, T214))
U20_agaa(T201, T202, T203, T204, X391, app70_out_agaa(T202, T203, T204, X391)) → app70_out_agaa(.(T201, T202), T203, T204, .(T201, X391))
U18_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, app70_out_agaa(T160, T148, T178, X273)) → p56_out_gaaaaaa(T148, T149, T153, T154, T160, T178, X273)
U37_gaa(T148, T149, X273, p56_out_gaaaaaa(T148, T149, X269, X270, X271, X272, X273)) → qs51_out_gaa(T148, T149, X273)
U48_ag(T31, T33, T32, T8, qs51_out_gaa(T33, T53, X9)) → qs1_out_ag(.(T31, .(T33, T32)), T8)
U47_ag(T31, T33, T32, T8, part20_out_gaaa(T31, T32, T53, T54)) → U49_ag(T31, T33, T32, T8, T54, qs51_in_gaa(T33, T53, T131))
U49_ag(T31, T33, T32, T8, T54, qs51_out_gaa(T33, T53, T131)) → U50_ag(T31, T33, T32, T8, p52_in_aaagg(T54, X10, T131, T31, T8))
p52_in_aaagg(T54, X10, T131, T31, T8) → U33_aaagg(T54, X10, T131, T31, T8, qs80_in_aa(T54, X10))
qs80_in_aa(.(T230, T231), X452) → U22_aa(T230, T231, X452, part87_in_aaaa(T230, T231, X448, X449))
part87_in_aaaa(T256, .(T257, T258), .(T257, X503), X504) → U38_aaaa(T256, T257, T258, X503, X504, gt10_in_aa(T256, T257))
U38_aaaa(T256, T257, T258, X503, X504, gt10_out_aa(T256, T257)) → part87_out_aaaa(T256, .(T257, T258), .(T257, X503), X504)
part87_in_aaaa(T261, .(T257, T262), .(T257, X503), X504) → U39_aaaa(T261, T257, T262, X503, X504, gt10_in_aa(T261, T257))
U39_aaaa(T261, T257, T262, X503, X504, gt10_out_aa(T261, T257)) → U40_aaaa(T261, T257, T262, X503, X504, part20_in_gaaa(T261, T262, X503, X504))
U40_aaaa(T261, T257, T262, X503, X504, part20_out_gaaa(T261, T262, X503, X504)) → part87_out_aaaa(T261, .(T257, T262), .(T257, X503), X504)
part87_in_aaaa(T283, .(T284, T285), X554, .(T284, X555)) → U41_aaaa(T283, T284, T285, X554, X555, le100_in_aa(T283, T284))
le100_in_aa(s(T302), s(T303)) → U21_aa(T302, T303, le100_in_aa(T302, T303))
le100_in_aa(0, s(T310)) → le100_out_aa(0, s(T310))
le100_in_aa(0, 0) → le100_out_aa(0, 0)
U21_aa(T302, T303, le100_out_aa(T302, T303)) → le100_out_aa(s(T302), s(T303))
U41_aaaa(T283, T284, T285, X554, X555, le100_out_aa(T283, T284)) → part87_out_aaaa(T283, .(T284, T285), X554, .(T284, X555))
part87_in_aaaa(T288, .(T284, T289), X554, .(T284, X555)) → U42_aaaa(T288, T284, T289, X554, X555, le100_in_aa(T288, T284))
U42_aaaa(T288, T284, T289, X554, X555, le100_out_aa(T288, T284)) → U43_aaaa(T288, T284, T289, X554, X555, part20_in_gaaa(T288, T289, X554, X555))
U43_aaaa(T288, T284, T289, X554, X555, part20_out_gaaa(T288, T289, X554, X555)) → part87_out_aaaa(T288, .(T284, T289), X554, .(T284, X555))
part87_in_aaaa(T316, [], [], []) → part87_out_aaaa(T316, [], [], [])
U22_aa(T230, T231, X452, part87_out_aaaa(T230, T231, X448, X449)) → qs80_out_aa(.(T230, T231), X452)
qs80_in_aa(.(T237, T231), X452) → U23_aa(T237, T231, X452, part87_in_aaaa(T237, T231, T235, T236))
U23_aa(T237, T231, X452, part87_out_aaaa(T237, T231, T235, T236)) → U24_aa(T237, T231, X452, qs80_in_aa(T235, X450))
qs80_in_aa(.(T325, T231), X452) → U27_aa(T325, T231, X452, part87_in_aaaa(T325, T231, T235, T236))
U27_aa(T325, T231, X452, part87_out_aaaa(T325, T231, T235, T236)) → U28_aa(T325, T231, X452, T236, qs80_in_aa(T235, T319))
qs80_in_aa([], []) → qs80_out_aa([], [])
U28_aa(T325, T231, X452, T236, qs80_out_aa(T235, T319)) → U29_aa(T325, T231, X452, T319, qs80_in_aa(T236, T324))
U29_aa(T325, T231, X452, T319, qs80_out_aa(T236, T324)) → U30_aa(T325, T231, X452, app121_in_aaaa(T319, T325, T324, X452))
app121_in_aaaa(.(T348, T349), T352, T353, .(T348, X657)) → U31_aaaa(T348, T349, T352, T353, X657, app121_in_aaaa(T349, T352, T353, X657))
app121_in_aaaa([], T362, T363, .(T362, T363)) → app121_out_aaaa([], T362, T363, .(T362, T363))
U31_aaaa(T348, T349, T352, T353, X657, app121_out_aaaa(T349, T352, T353, X657)) → app121_out_aaaa(.(T348, T349), T352, T353, .(T348, X657))
U30_aa(T325, T231, X452, app121_out_aaaa(T319, T325, T324, X452)) → qs80_out_aa(.(T325, T231), X452)
U24_aa(T237, T231, X452, qs80_out_aa(T235, X450)) → qs80_out_aa(.(T237, T231), X452)
U23_aa(T237, T231, X452, part87_out_aaaa(T237, T231, T235, T236)) → U25_aa(T237, T231, X452, T236, qs80_in_aa(T235, T319))
U25_aa(T237, T231, X452, T236, qs80_out_aa(T235, T319)) → U26_aa(T237, T231, X452, qs80_in_aa(T236, X451))
U26_aa(T237, T231, X452, qs80_out_aa(T236, X451)) → qs80_out_aa(.(T237, T231), X452)
U33_aaagg(T54, X10, T131, T31, T8, qs80_out_aa(T54, X10)) → p52_out_aaagg(T54, X10, T131, T31, T8)
p52_in_aaagg(T54, T217, T131, T31, T8) → U34_aaagg(T54, T217, T131, T31, T8, qs80_in_aa(T54, T217))
U34_aaagg(T54, T217, T131, T31, T8, qs80_out_aa(T54, T217)) → U35_aaagg(T54, T217, T131, T31, T8, app81_in_agag(T131, T31, T217, T8))
app81_in_agag(.(T389, T390), T391, T394, .(T389, T393)) → U32_agag(T389, T390, T391, T394, T393, app81_in_agag(T390, T391, T394, T393))
app81_in_agag([], T404, T405, .(T404, T405)) → app81_out_agag([], T404, T405, .(T404, T405))
U32_agag(T389, T390, T391, T394, T393, app81_out_agag(T390, T391, T394, T393)) → app81_out_agag(.(T389, T390), T391, T394, .(T389, T393))
U35_aaagg(T54, T217, T131, T31, T8, app81_out_agag(T131, T31, T217, T8)) → p52_out_aaagg(T54, T217, T131, T31, T8)
U50_ag(T31, T33, T32, T8, p52_out_aaagg(T54, X10, T131, T31, T8)) → qs1_out_ag(.(T31, .(T33, T32)), T8)
qs1_in_ag(.(T421, .(T422, T423)), T8) → U51_ag(T421, T422, T423, T8, le100_in_aa(T421, T422))
U51_ag(T421, T422, T423, T8, le100_out_aa(T421, T422)) → qs1_out_ag(.(T421, .(T422, T423)), T8)
qs1_in_ag(.(T426, .(T428, T427)), T8) → U52_ag(T426, T428, T427, T8, le100_in_aa(T426, T428))
U52_ag(T426, T428, T427, T8, le100_out_aa(T426, T428)) → U53_ag(T426, T428, T427, T8, part20_in_gaaa(T426, T427, X740, X741))
U53_ag(T426, T428, T427, T8, part20_out_gaaa(T426, T427, X740, X741)) → qs1_out_ag(.(T426, .(T428, T427)), T8)
qs1_in_ag(.(T426, .(T436, T427)), T8) → U54_ag(T426, T436, T427, T8, le100_in_aa(T426, T436))
U54_ag(T426, T436, T427, T8, le100_out_aa(T426, T436)) → U55_ag(T426, T436, T427, T8, part20_in_gaaa(T426, T427, T434, T435))
U55_ag(T426, T436, T427, T8, part20_out_gaaa(T426, T427, T434, T435)) → U56_ag(T426, T436, T427, T8, qs80_in_aa(T434, X9))
U56_ag(T426, T436, T427, T8, qs80_out_aa(T434, X9)) → qs1_out_ag(.(T426, .(T436, T427)), T8)
U55_ag(T426, T436, T427, T8, part20_out_gaaa(T426, T427, T434, T435)) → U57_ag(T426, T436, T427, T8, T435, qs80_in_aa(T434, T442))
U57_ag(T426, T436, T427, T8, T435, qs80_out_aa(T434, T442)) → U58_ag(T426, T436, T427, T8, p52_in_aaagg(.(T436, T435), X10, T442, T426, T8))
U58_ag(T426, T436, T427, T8, p52_out_aaagg(.(T436, T435), X10, T442, T426, T8)) → qs1_out_ag(.(T426, .(T436, T427)), T8)
qs1_in_ag(.(T452, []), T8) → U59_ag(T452, T8, qs155_in_a(X9))
qs155_in_a([]) → qs155_out_a([])
U59_ag(T452, T8, qs155_out_a(X9)) → qs1_out_ag(.(T452, []), T8)
qs1_in_ag(.(T452, []), T8) → U60_ag(T452, T8, qs155_in_a(T455))
U60_ag(T452, T8, qs155_out_a(T455)) → U61_ag(T452, T8, qs155_in_a(X10))
U61_ag(T452, T8, qs155_out_a(X10)) → qs1_out_ag(.(T452, []), T8)
U60_ag(T452, T8, qs155_out_a(T455)) → U62_ag(T452, T8, T455, qs155_in_a(T460))
U62_ag(T452, T8, T455, qs155_out_a(T460)) → U63_ag(T452, T8, app162_in_gagg(T455, T452, T460, T8))
app162_in_gagg(.(T486, T487), T491, T489, .(T486, T490)) → U36_gagg(T486, T487, T491, T489, T490, app162_in_gagg(T487, T491, T489, T490))
app162_in_gagg([], T501, T502, .(T501, T502)) → app162_out_gagg([], T501, T502, .(T501, T502))
U36_gagg(T486, T487, T491, T489, T490, app162_out_gagg(T487, T491, T489, T490)) → app162_out_gagg(.(T486, T487), T491, T489, .(T486, T490))
U63_ag(T452, T8, app162_out_gagg(T455, T452, T460, T8)) → qs1_out_ag(.(T452, []), T8)
qs1_in_ag([], []) → qs1_out_ag([], [])
APP162_IN_GAGG(.(T486, T487), T491, T489, .(T486, T490)) → APP162_IN_GAGG(T487, T491, T489, T490)
qs1_in_ag(.(T26, .(T27, T28)), T8) → U44_ag(T26, T27, T28, T8, gt10_in_aa(T26, T27))
gt10_in_aa(s(T46), s(T47)) → U1_aa(T46, T47, gt10_in_aa(T46, T47))
gt10_in_aa(s(0), 0) → gt10_out_aa(s(0), 0)
U1_aa(T46, T47, gt10_out_aa(T46, T47)) → gt10_out_aa(s(T46), s(T47))
U44_ag(T26, T27, T28, T8, gt10_out_aa(T26, T27)) → qs1_out_ag(.(T26, .(T27, T28)), T8)
qs1_in_ag(.(T31, .(T33, T32)), T8) → U45_ag(T31, T33, T32, T8, gt10_in_aa(T31, T33))
U45_ag(T31, T33, T32, T8, gt10_out_aa(T31, T33)) → U46_ag(T31, T33, T32, T8, part20_in_gaaa(T31, T32, X47, X48))
part20_in_gaaa(T70, .(T73, T74), .(T73, X119), X120) → U2_gaaa(T70, T73, T74, X119, X120, gt10_in_ga(T70, T73))
gt10_in_ga(s(T46), s(T47)) → U1_ga(T46, T47, gt10_in_ga(T46, T47))
gt10_in_ga(s(0), 0) → gt10_out_ga(s(0), 0)
U1_ga(T46, T47, gt10_out_ga(T46, T47)) → gt10_out_ga(s(T46), s(T47))
U2_gaaa(T70, T73, T74, X119, X120, gt10_out_ga(T70, T73)) → part20_out_gaaa(T70, .(T73, T74), .(T73, X119), X120)
part20_in_gaaa(T70, .(T73, T77), .(T73, X119), X120) → U3_gaaa(T70, T73, T77, X119, X120, gt10_in_ga(T70, T73))
U3_gaaa(T70, T73, T77, X119, X120, gt10_out_ga(T70, T73)) → U4_gaaa(T70, T73, T77, X119, X120, part20_in_gaaa(T70, T77, X119, X120))
part20_in_gaaa(T95, .(T98, T99), X170, .(T98, X171)) → U5_gaaa(T95, T98, T99, X170, X171, le33_in_ga(T95, T98))
le33_in_ga(s(T113), s(T115)) → U8_ga(T113, T115, le33_in_ga(T113, T115))
le33_in_ga(0, s(T122)) → le33_out_ga(0, s(T122))
le33_in_ga(0, 0) → le33_out_ga(0, 0)
U8_ga(T113, T115, le33_out_ga(T113, T115)) → le33_out_ga(s(T113), s(T115))
U5_gaaa(T95, T98, T99, X170, X171, le33_out_ga(T95, T98)) → part20_out_gaaa(T95, .(T98, T99), X170, .(T98, X171))
part20_in_gaaa(T95, .(T98, T102), X170, .(T98, X171)) → U6_gaaa(T95, T98, T102, X170, X171, le33_in_ga(T95, T98))
U6_gaaa(T95, T98, T102, X170, X171, le33_out_ga(T95, T98)) → U7_gaaa(T95, T98, T102, X170, X171, part20_in_gaaa(T95, T102, X170, X171))
part20_in_gaaa(T128, [], [], []) → part20_out_gaaa(T128, [], [], [])
U7_gaaa(T95, T98, T102, X170, X171, part20_out_gaaa(T95, T102, X170, X171)) → part20_out_gaaa(T95, .(T98, T102), X170, .(T98, X171))
U4_gaaa(T70, T73, T77, X119, X120, part20_out_gaaa(T70, T77, X119, X120)) → part20_out_gaaa(T70, .(T73, T77), .(T73, X119), X120)
U46_ag(T31, T33, T32, T8, part20_out_gaaa(T31, T32, X47, X48)) → qs1_out_ag(.(T31, .(T33, T32)), T8)
U45_ag(T31, T33, T32, T8, gt10_out_aa(T31, T33)) → U47_ag(T31, T33, T32, T8, part20_in_gaaa(T31, T32, T53, T54))
U47_ag(T31, T33, T32, T8, part20_out_gaaa(T31, T32, T53, T54)) → U48_ag(T31, T33, T32, T8, qs51_in_gaa(T33, T53, X9))
qs51_in_gaa(T148, T149, X273) → U37_gaa(T148, T149, X273, p56_in_gaaaaaa(T148, T149, X269, X270, X271, X272, X273))
p56_in_gaaaaaa(T148, T149, X269, X270, X271, X272, X273) → U9_gaaaaaa(T148, T149, X269, X270, X271, X272, X273, part20_in_gaaa(T148, T149, X269, X270))
U9_gaaaaaa(T148, T149, X269, X270, X271, X272, X273, part20_out_gaaa(T148, T149, X269, X270)) → p56_out_gaaaaaa(T148, T149, X269, X270, X271, X272, X273)
p56_in_gaaaaaa(T148, T149, T153, T154, X271, X272, X273) → U10_gaaaaaa(T148, T149, T153, T154, X271, X272, X273, part20_in_gaaa(T148, T149, T153, T154))
U10_gaaaaaa(T148, T149, T153, T154, X271, X272, X273, part20_out_gaaa(T148, T149, T153, T154)) → U11_gaaaaaa(T148, T149, T153, T154, X271, X272, X273, qs59_in_aa(T153, X271))
qs59_in_aa(.(T171, T172), X335) → U19_aa(T171, T172, X335, p56_in_aaaaaaa(T171, T172, X331, X332, X333, X334, X335))
p56_in_aaaaaaa(T148, T149, X269, X270, X271, X272, X273) → U9_aaaaaaa(T148, T149, X269, X270, X271, X272, X273, part20_in_aaaa(T148, T149, X269, X270))
part20_in_aaaa(T70, .(T73, T74), .(T73, X119), X120) → U2_aaaa(T70, T73, T74, X119, X120, gt10_in_aa(T70, T73))
U2_aaaa(T70, T73, T74, X119, X120, gt10_out_aa(T70, T73)) → part20_out_aaaa(T70, .(T73, T74), .(T73, X119), X120)
part20_in_aaaa(T70, .(T73, T77), .(T73, X119), X120) → U3_aaaa(T70, T73, T77, X119, X120, gt10_in_aa(T70, T73))
U3_aaaa(T70, T73, T77, X119, X120, gt10_out_aa(T70, T73)) → U4_aaaa(T70, T73, T77, X119, X120, part20_in_gaaa(T70, T77, X119, X120))
U4_aaaa(T70, T73, T77, X119, X120, part20_out_gaaa(T70, T77, X119, X120)) → part20_out_aaaa(T70, .(T73, T77), .(T73, X119), X120)
part20_in_aaaa(T95, .(T98, T99), X170, .(T98, X171)) → U5_aaaa(T95, T98, T99, X170, X171, le33_in_aa(T95, T98))
le33_in_aa(s(T113), s(T115)) → U8_aa(T113, T115, le33_in_aa(T113, T115))
le33_in_aa(0, s(T122)) → le33_out_aa(0, s(T122))
le33_in_aa(0, 0) → le33_out_aa(0, 0)
U8_aa(T113, T115, le33_out_aa(T113, T115)) → le33_out_aa(s(T113), s(T115))
U5_aaaa(T95, T98, T99, X170, X171, le33_out_aa(T95, T98)) → part20_out_aaaa(T95, .(T98, T99), X170, .(T98, X171))
part20_in_aaaa(T95, .(T98, T102), X170, .(T98, X171)) → U6_aaaa(T95, T98, T102, X170, X171, le33_in_aa(T95, T98))
U6_aaaa(T95, T98, T102, X170, X171, le33_out_aa(T95, T98)) → U7_aaaa(T95, T98, T102, X170, X171, part20_in_gaaa(T95, T102, X170, X171))
U7_aaaa(T95, T98, T102, X170, X171, part20_out_gaaa(T95, T102, X170, X171)) → part20_out_aaaa(T95, .(T98, T102), X170, .(T98, X171))
part20_in_aaaa(T128, [], [], []) → part20_out_aaaa(T128, [], [], [])
U9_aaaaaaa(T148, T149, X269, X270, X271, X272, X273, part20_out_aaaa(T148, T149, X269, X270)) → p56_out_aaaaaaa(T148, T149, X269, X270, X271, X272, X273)
p56_in_aaaaaaa(T148, T149, T153, T154, X271, X272, X273) → U10_aaaaaaa(T148, T149, T153, T154, X271, X272, X273, part20_in_aaaa(T148, T149, T153, T154))
U10_aaaaaaa(T148, T149, T153, T154, X271, X272, X273, part20_out_aaaa(T148, T149, T153, T154)) → U11_aaaaaaa(T148, T149, T153, T154, X271, X272, X273, qs59_in_aa(T153, X271))
qs59_in_aa([], []) → qs59_out_aa([], [])
U11_aaaaaaa(T148, T149, T153, T154, X271, X272, X273, qs59_out_aa(T153, X271)) → p56_out_aaaaaaa(T148, T149, T153, T154, X271, X272, X273)
p56_in_aaaaaaa(T148, T149, T153, T154, T160, X272, X273) → U12_aaaaaaa(T148, T149, T153, T154, T160, X272, X273, part20_in_aaaa(T148, T149, T153, T154))
U12_aaaaaaa(T148, T149, T153, T154, T160, X272, X273, part20_out_aaaa(T148, T149, T153, T154)) → U13_aaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_in_aa(T153, T160))
U13_aaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_out_aa(T153, T160)) → U14_aaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_in_aa(T154, X272))
U14_aaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_out_aa(T154, X272)) → p56_out_aaaaaaa(T148, T149, T153, T154, T160, X272, X273)
p56_in_aaaaaaa(T148, T149, T153, T154, T160, T178, X273) → U15_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, part20_in_aaaa(T148, T149, T153, T154))
U15_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, part20_out_aaaa(T148, T149, T153, T154)) → U16_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_in_aa(T153, T160))
U16_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_out_aa(T153, T160)) → U17_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_in_aa(T154, T178))
U17_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_out_aa(T154, T178)) → U18_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, app70_in_aaaa(T160, T148, T178, X273))
app70_in_aaaa(.(T201, T202), T203, T204, .(T201, X391)) → U20_aaaa(T201, T202, T203, T204, X391, app70_in_aaaa(T202, T203, T204, X391))
app70_in_aaaa([], T213, T214, .(T213, T214)) → app70_out_aaaa([], T213, T214, .(T213, T214))
U20_aaaa(T201, T202, T203, T204, X391, app70_out_aaaa(T202, T203, T204, X391)) → app70_out_aaaa(.(T201, T202), T203, T204, .(T201, X391))
U18_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, app70_out_aaaa(T160, T148, T178, X273)) → p56_out_aaaaaaa(T148, T149, T153, T154, T160, T178, X273)
U19_aa(T171, T172, X335, p56_out_aaaaaaa(T171, T172, X331, X332, X333, X334, X335)) → qs59_out_aa(.(T171, T172), X335)
U11_gaaaaaa(T148, T149, T153, T154, X271, X272, X273, qs59_out_aa(T153, X271)) → p56_out_gaaaaaa(T148, T149, T153, T154, X271, X272, X273)
p56_in_gaaaaaa(T148, T149, T153, T154, T160, X272, X273) → U12_gaaaaaa(T148, T149, T153, T154, T160, X272, X273, part20_in_gaaa(T148, T149, T153, T154))
U12_gaaaaaa(T148, T149, T153, T154, T160, X272, X273, part20_out_gaaa(T148, T149, T153, T154)) → U13_gaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_in_aa(T153, T160))
U13_gaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_out_aa(T153, T160)) → U14_gaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_in_aa(T154, X272))
U14_gaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_out_aa(T154, X272)) → p56_out_gaaaaaa(T148, T149, T153, T154, T160, X272, X273)
p56_in_gaaaaaa(T148, T149, T153, T154, T160, T178, X273) → U15_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, part20_in_gaaa(T148, T149, T153, T154))
U15_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, part20_out_gaaa(T148, T149, T153, T154)) → U16_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_in_aa(T153, T160))
U16_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_out_aa(T153, T160)) → U17_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_in_aa(T154, T178))
U17_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_out_aa(T154, T178)) → U18_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, app70_in_agaa(T160, T148, T178, X273))
app70_in_agaa(.(T201, T202), T203, T204, .(T201, X391)) → U20_agaa(T201, T202, T203, T204, X391, app70_in_agaa(T202, T203, T204, X391))
app70_in_agaa([], T213, T214, .(T213, T214)) → app70_out_agaa([], T213, T214, .(T213, T214))
U20_agaa(T201, T202, T203, T204, X391, app70_out_agaa(T202, T203, T204, X391)) → app70_out_agaa(.(T201, T202), T203, T204, .(T201, X391))
U18_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, app70_out_agaa(T160, T148, T178, X273)) → p56_out_gaaaaaa(T148, T149, T153, T154, T160, T178, X273)
U37_gaa(T148, T149, X273, p56_out_gaaaaaa(T148, T149, X269, X270, X271, X272, X273)) → qs51_out_gaa(T148, T149, X273)
U48_ag(T31, T33, T32, T8, qs51_out_gaa(T33, T53, X9)) → qs1_out_ag(.(T31, .(T33, T32)), T8)
U47_ag(T31, T33, T32, T8, part20_out_gaaa(T31, T32, T53, T54)) → U49_ag(T31, T33, T32, T8, T54, qs51_in_gaa(T33, T53, T131))
U49_ag(T31, T33, T32, T8, T54, qs51_out_gaa(T33, T53, T131)) → U50_ag(T31, T33, T32, T8, p52_in_aaagg(T54, X10, T131, T31, T8))
p52_in_aaagg(T54, X10, T131, T31, T8) → U33_aaagg(T54, X10, T131, T31, T8, qs80_in_aa(T54, X10))
qs80_in_aa(.(T230, T231), X452) → U22_aa(T230, T231, X452, part87_in_aaaa(T230, T231, X448, X449))
part87_in_aaaa(T256, .(T257, T258), .(T257, X503), X504) → U38_aaaa(T256, T257, T258, X503, X504, gt10_in_aa(T256, T257))
U38_aaaa(T256, T257, T258, X503, X504, gt10_out_aa(T256, T257)) → part87_out_aaaa(T256, .(T257, T258), .(T257, X503), X504)
part87_in_aaaa(T261, .(T257, T262), .(T257, X503), X504) → U39_aaaa(T261, T257, T262, X503, X504, gt10_in_aa(T261, T257))
U39_aaaa(T261, T257, T262, X503, X504, gt10_out_aa(T261, T257)) → U40_aaaa(T261, T257, T262, X503, X504, part20_in_gaaa(T261, T262, X503, X504))
U40_aaaa(T261, T257, T262, X503, X504, part20_out_gaaa(T261, T262, X503, X504)) → part87_out_aaaa(T261, .(T257, T262), .(T257, X503), X504)
part87_in_aaaa(T283, .(T284, T285), X554, .(T284, X555)) → U41_aaaa(T283, T284, T285, X554, X555, le100_in_aa(T283, T284))
le100_in_aa(s(T302), s(T303)) → U21_aa(T302, T303, le100_in_aa(T302, T303))
le100_in_aa(0, s(T310)) → le100_out_aa(0, s(T310))
le100_in_aa(0, 0) → le100_out_aa(0, 0)
U21_aa(T302, T303, le100_out_aa(T302, T303)) → le100_out_aa(s(T302), s(T303))
U41_aaaa(T283, T284, T285, X554, X555, le100_out_aa(T283, T284)) → part87_out_aaaa(T283, .(T284, T285), X554, .(T284, X555))
part87_in_aaaa(T288, .(T284, T289), X554, .(T284, X555)) → U42_aaaa(T288, T284, T289, X554, X555, le100_in_aa(T288, T284))
U42_aaaa(T288, T284, T289, X554, X555, le100_out_aa(T288, T284)) → U43_aaaa(T288, T284, T289, X554, X555, part20_in_gaaa(T288, T289, X554, X555))
U43_aaaa(T288, T284, T289, X554, X555, part20_out_gaaa(T288, T289, X554, X555)) → part87_out_aaaa(T288, .(T284, T289), X554, .(T284, X555))
part87_in_aaaa(T316, [], [], []) → part87_out_aaaa(T316, [], [], [])
U22_aa(T230, T231, X452, part87_out_aaaa(T230, T231, X448, X449)) → qs80_out_aa(.(T230, T231), X452)
qs80_in_aa(.(T237, T231), X452) → U23_aa(T237, T231, X452, part87_in_aaaa(T237, T231, T235, T236))
U23_aa(T237, T231, X452, part87_out_aaaa(T237, T231, T235, T236)) → U24_aa(T237, T231, X452, qs80_in_aa(T235, X450))
qs80_in_aa(.(T325, T231), X452) → U27_aa(T325, T231, X452, part87_in_aaaa(T325, T231, T235, T236))
U27_aa(T325, T231, X452, part87_out_aaaa(T325, T231, T235, T236)) → U28_aa(T325, T231, X452, T236, qs80_in_aa(T235, T319))
qs80_in_aa([], []) → qs80_out_aa([], [])
U28_aa(T325, T231, X452, T236, qs80_out_aa(T235, T319)) → U29_aa(T325, T231, X452, T319, qs80_in_aa(T236, T324))
U29_aa(T325, T231, X452, T319, qs80_out_aa(T236, T324)) → U30_aa(T325, T231, X452, app121_in_aaaa(T319, T325, T324, X452))
app121_in_aaaa(.(T348, T349), T352, T353, .(T348, X657)) → U31_aaaa(T348, T349, T352, T353, X657, app121_in_aaaa(T349, T352, T353, X657))
app121_in_aaaa([], T362, T363, .(T362, T363)) → app121_out_aaaa([], T362, T363, .(T362, T363))
U31_aaaa(T348, T349, T352, T353, X657, app121_out_aaaa(T349, T352, T353, X657)) → app121_out_aaaa(.(T348, T349), T352, T353, .(T348, X657))
U30_aa(T325, T231, X452, app121_out_aaaa(T319, T325, T324, X452)) → qs80_out_aa(.(T325, T231), X452)
U24_aa(T237, T231, X452, qs80_out_aa(T235, X450)) → qs80_out_aa(.(T237, T231), X452)
U23_aa(T237, T231, X452, part87_out_aaaa(T237, T231, T235, T236)) → U25_aa(T237, T231, X452, T236, qs80_in_aa(T235, T319))
U25_aa(T237, T231, X452, T236, qs80_out_aa(T235, T319)) → U26_aa(T237, T231, X452, qs80_in_aa(T236, X451))
U26_aa(T237, T231, X452, qs80_out_aa(T236, X451)) → qs80_out_aa(.(T237, T231), X452)
U33_aaagg(T54, X10, T131, T31, T8, qs80_out_aa(T54, X10)) → p52_out_aaagg(T54, X10, T131, T31, T8)
p52_in_aaagg(T54, T217, T131, T31, T8) → U34_aaagg(T54, T217, T131, T31, T8, qs80_in_aa(T54, T217))
U34_aaagg(T54, T217, T131, T31, T8, qs80_out_aa(T54, T217)) → U35_aaagg(T54, T217, T131, T31, T8, app81_in_agag(T131, T31, T217, T8))
app81_in_agag(.(T389, T390), T391, T394, .(T389, T393)) → U32_agag(T389, T390, T391, T394, T393, app81_in_agag(T390, T391, T394, T393))
app81_in_agag([], T404, T405, .(T404, T405)) → app81_out_agag([], T404, T405, .(T404, T405))
U32_agag(T389, T390, T391, T394, T393, app81_out_agag(T390, T391, T394, T393)) → app81_out_agag(.(T389, T390), T391, T394, .(T389, T393))
U35_aaagg(T54, T217, T131, T31, T8, app81_out_agag(T131, T31, T217, T8)) → p52_out_aaagg(T54, T217, T131, T31, T8)
U50_ag(T31, T33, T32, T8, p52_out_aaagg(T54, X10, T131, T31, T8)) → qs1_out_ag(.(T31, .(T33, T32)), T8)
qs1_in_ag(.(T421, .(T422, T423)), T8) → U51_ag(T421, T422, T423, T8, le100_in_aa(T421, T422))
U51_ag(T421, T422, T423, T8, le100_out_aa(T421, T422)) → qs1_out_ag(.(T421, .(T422, T423)), T8)
qs1_in_ag(.(T426, .(T428, T427)), T8) → U52_ag(T426, T428, T427, T8, le100_in_aa(T426, T428))
U52_ag(T426, T428, T427, T8, le100_out_aa(T426, T428)) → U53_ag(T426, T428, T427, T8, part20_in_gaaa(T426, T427, X740, X741))
U53_ag(T426, T428, T427, T8, part20_out_gaaa(T426, T427, X740, X741)) → qs1_out_ag(.(T426, .(T428, T427)), T8)
qs1_in_ag(.(T426, .(T436, T427)), T8) → U54_ag(T426, T436, T427, T8, le100_in_aa(T426, T436))
U54_ag(T426, T436, T427, T8, le100_out_aa(T426, T436)) → U55_ag(T426, T436, T427, T8, part20_in_gaaa(T426, T427, T434, T435))
U55_ag(T426, T436, T427, T8, part20_out_gaaa(T426, T427, T434, T435)) → U56_ag(T426, T436, T427, T8, qs80_in_aa(T434, X9))
U56_ag(T426, T436, T427, T8, qs80_out_aa(T434, X9)) → qs1_out_ag(.(T426, .(T436, T427)), T8)
U55_ag(T426, T436, T427, T8, part20_out_gaaa(T426, T427, T434, T435)) → U57_ag(T426, T436, T427, T8, T435, qs80_in_aa(T434, T442))
U57_ag(T426, T436, T427, T8, T435, qs80_out_aa(T434, T442)) → U58_ag(T426, T436, T427, T8, p52_in_aaagg(.(T436, T435), X10, T442, T426, T8))
U58_ag(T426, T436, T427, T8, p52_out_aaagg(.(T436, T435), X10, T442, T426, T8)) → qs1_out_ag(.(T426, .(T436, T427)), T8)
qs1_in_ag(.(T452, []), T8) → U59_ag(T452, T8, qs155_in_a(X9))
qs155_in_a([]) → qs155_out_a([])
U59_ag(T452, T8, qs155_out_a(X9)) → qs1_out_ag(.(T452, []), T8)
qs1_in_ag(.(T452, []), T8) → U60_ag(T452, T8, qs155_in_a(T455))
U60_ag(T452, T8, qs155_out_a(T455)) → U61_ag(T452, T8, qs155_in_a(X10))
U61_ag(T452, T8, qs155_out_a(X10)) → qs1_out_ag(.(T452, []), T8)
U60_ag(T452, T8, qs155_out_a(T455)) → U62_ag(T452, T8, T455, qs155_in_a(T460))
U62_ag(T452, T8, T455, qs155_out_a(T460)) → U63_ag(T452, T8, app162_in_gagg(T455, T452, T460, T8))
app162_in_gagg(.(T486, T487), T491, T489, .(T486, T490)) → U36_gagg(T486, T487, T491, T489, T490, app162_in_gagg(T487, T491, T489, T490))
app162_in_gagg([], T501, T502, .(T501, T502)) → app162_out_gagg([], T501, T502, .(T501, T502))
U36_gagg(T486, T487, T491, T489, T490, app162_out_gagg(T487, T491, T489, T490)) → app162_out_gagg(.(T486, T487), T491, T489, .(T486, T490))
U63_ag(T452, T8, app162_out_gagg(T455, T452, T460, T8)) → qs1_out_ag(.(T452, []), T8)
qs1_in_ag([], []) → qs1_out_ag([], [])
APP162_IN_GAGG(.(T486, T487), T491, T489, .(T486, T490)) → APP162_IN_GAGG(T487, T491, T489, T490)
APP162_IN_GAGG(.(T486, T487), T489, .(T486, T490)) → APP162_IN_GAGG(T487, T489, T490)
From the DPs we obtained the following set of size-change graphs:
APP81_IN_AGAG(.(T389, T390), T391, T394, .(T389, T393)) → APP81_IN_AGAG(T390, T391, T394, T393)
qs1_in_ag(.(T26, .(T27, T28)), T8) → U44_ag(T26, T27, T28, T8, gt10_in_aa(T26, T27))
gt10_in_aa(s(T46), s(T47)) → U1_aa(T46, T47, gt10_in_aa(T46, T47))
gt10_in_aa(s(0), 0) → gt10_out_aa(s(0), 0)
U1_aa(T46, T47, gt10_out_aa(T46, T47)) → gt10_out_aa(s(T46), s(T47))
U44_ag(T26, T27, T28, T8, gt10_out_aa(T26, T27)) → qs1_out_ag(.(T26, .(T27, T28)), T8)
qs1_in_ag(.(T31, .(T33, T32)), T8) → U45_ag(T31, T33, T32, T8, gt10_in_aa(T31, T33))
U45_ag(T31, T33, T32, T8, gt10_out_aa(T31, T33)) → U46_ag(T31, T33, T32, T8, part20_in_gaaa(T31, T32, X47, X48))
part20_in_gaaa(T70, .(T73, T74), .(T73, X119), X120) → U2_gaaa(T70, T73, T74, X119, X120, gt10_in_ga(T70, T73))
gt10_in_ga(s(T46), s(T47)) → U1_ga(T46, T47, gt10_in_ga(T46, T47))
gt10_in_ga(s(0), 0) → gt10_out_ga(s(0), 0)
U1_ga(T46, T47, gt10_out_ga(T46, T47)) → gt10_out_ga(s(T46), s(T47))
U2_gaaa(T70, T73, T74, X119, X120, gt10_out_ga(T70, T73)) → part20_out_gaaa(T70, .(T73, T74), .(T73, X119), X120)
part20_in_gaaa(T70, .(T73, T77), .(T73, X119), X120) → U3_gaaa(T70, T73, T77, X119, X120, gt10_in_ga(T70, T73))
U3_gaaa(T70, T73, T77, X119, X120, gt10_out_ga(T70, T73)) → U4_gaaa(T70, T73, T77, X119, X120, part20_in_gaaa(T70, T77, X119, X120))
part20_in_gaaa(T95, .(T98, T99), X170, .(T98, X171)) → U5_gaaa(T95, T98, T99, X170, X171, le33_in_ga(T95, T98))
le33_in_ga(s(T113), s(T115)) → U8_ga(T113, T115, le33_in_ga(T113, T115))
le33_in_ga(0, s(T122)) → le33_out_ga(0, s(T122))
le33_in_ga(0, 0) → le33_out_ga(0, 0)
U8_ga(T113, T115, le33_out_ga(T113, T115)) → le33_out_ga(s(T113), s(T115))
U5_gaaa(T95, T98, T99, X170, X171, le33_out_ga(T95, T98)) → part20_out_gaaa(T95, .(T98, T99), X170, .(T98, X171))
part20_in_gaaa(T95, .(T98, T102), X170, .(T98, X171)) → U6_gaaa(T95, T98, T102, X170, X171, le33_in_ga(T95, T98))
U6_gaaa(T95, T98, T102, X170, X171, le33_out_ga(T95, T98)) → U7_gaaa(T95, T98, T102, X170, X171, part20_in_gaaa(T95, T102, X170, X171))
part20_in_gaaa(T128, [], [], []) → part20_out_gaaa(T128, [], [], [])
U7_gaaa(T95, T98, T102, X170, X171, part20_out_gaaa(T95, T102, X170, X171)) → part20_out_gaaa(T95, .(T98, T102), X170, .(T98, X171))
U4_gaaa(T70, T73, T77, X119, X120, part20_out_gaaa(T70, T77, X119, X120)) → part20_out_gaaa(T70, .(T73, T77), .(T73, X119), X120)
U46_ag(T31, T33, T32, T8, part20_out_gaaa(T31, T32, X47, X48)) → qs1_out_ag(.(T31, .(T33, T32)), T8)
U45_ag(T31, T33, T32, T8, gt10_out_aa(T31, T33)) → U47_ag(T31, T33, T32, T8, part20_in_gaaa(T31, T32, T53, T54))
U47_ag(T31, T33, T32, T8, part20_out_gaaa(T31, T32, T53, T54)) → U48_ag(T31, T33, T32, T8, qs51_in_gaa(T33, T53, X9))
qs51_in_gaa(T148, T149, X273) → U37_gaa(T148, T149, X273, p56_in_gaaaaaa(T148, T149, X269, X270, X271, X272, X273))
p56_in_gaaaaaa(T148, T149, X269, X270, X271, X272, X273) → U9_gaaaaaa(T148, T149, X269, X270, X271, X272, X273, part20_in_gaaa(T148, T149, X269, X270))
U9_gaaaaaa(T148, T149, X269, X270, X271, X272, X273, part20_out_gaaa(T148, T149, X269, X270)) → p56_out_gaaaaaa(T148, T149, X269, X270, X271, X272, X273)
p56_in_gaaaaaa(T148, T149, T153, T154, X271, X272, X273) → U10_gaaaaaa(T148, T149, T153, T154, X271, X272, X273, part20_in_gaaa(T148, T149, T153, T154))
U10_gaaaaaa(T148, T149, T153, T154, X271, X272, X273, part20_out_gaaa(T148, T149, T153, T154)) → U11_gaaaaaa(T148, T149, T153, T154, X271, X272, X273, qs59_in_aa(T153, X271))
qs59_in_aa(.(T171, T172), X335) → U19_aa(T171, T172, X335, p56_in_aaaaaaa(T171, T172, X331, X332, X333, X334, X335))
p56_in_aaaaaaa(T148, T149, X269, X270, X271, X272, X273) → U9_aaaaaaa(T148, T149, X269, X270, X271, X272, X273, part20_in_aaaa(T148, T149, X269, X270))
part20_in_aaaa(T70, .(T73, T74), .(T73, X119), X120) → U2_aaaa(T70, T73, T74, X119, X120, gt10_in_aa(T70, T73))
U2_aaaa(T70, T73, T74, X119, X120, gt10_out_aa(T70, T73)) → part20_out_aaaa(T70, .(T73, T74), .(T73, X119), X120)
part20_in_aaaa(T70, .(T73, T77), .(T73, X119), X120) → U3_aaaa(T70, T73, T77, X119, X120, gt10_in_aa(T70, T73))
U3_aaaa(T70, T73, T77, X119, X120, gt10_out_aa(T70, T73)) → U4_aaaa(T70, T73, T77, X119, X120, part20_in_gaaa(T70, T77, X119, X120))
U4_aaaa(T70, T73, T77, X119, X120, part20_out_gaaa(T70, T77, X119, X120)) → part20_out_aaaa(T70, .(T73, T77), .(T73, X119), X120)
part20_in_aaaa(T95, .(T98, T99), X170, .(T98, X171)) → U5_aaaa(T95, T98, T99, X170, X171, le33_in_aa(T95, T98))
le33_in_aa(s(T113), s(T115)) → U8_aa(T113, T115, le33_in_aa(T113, T115))
le33_in_aa(0, s(T122)) → le33_out_aa(0, s(T122))
le33_in_aa(0, 0) → le33_out_aa(0, 0)
U8_aa(T113, T115, le33_out_aa(T113, T115)) → le33_out_aa(s(T113), s(T115))
U5_aaaa(T95, T98, T99, X170, X171, le33_out_aa(T95, T98)) → part20_out_aaaa(T95, .(T98, T99), X170, .(T98, X171))
part20_in_aaaa(T95, .(T98, T102), X170, .(T98, X171)) → U6_aaaa(T95, T98, T102, X170, X171, le33_in_aa(T95, T98))
U6_aaaa(T95, T98, T102, X170, X171, le33_out_aa(T95, T98)) → U7_aaaa(T95, T98, T102, X170, X171, part20_in_gaaa(T95, T102, X170, X171))
U7_aaaa(T95, T98, T102, X170, X171, part20_out_gaaa(T95, T102, X170, X171)) → part20_out_aaaa(T95, .(T98, T102), X170, .(T98, X171))
part20_in_aaaa(T128, [], [], []) → part20_out_aaaa(T128, [], [], [])
U9_aaaaaaa(T148, T149, X269, X270, X271, X272, X273, part20_out_aaaa(T148, T149, X269, X270)) → p56_out_aaaaaaa(T148, T149, X269, X270, X271, X272, X273)
p56_in_aaaaaaa(T148, T149, T153, T154, X271, X272, X273) → U10_aaaaaaa(T148, T149, T153, T154, X271, X272, X273, part20_in_aaaa(T148, T149, T153, T154))
U10_aaaaaaa(T148, T149, T153, T154, X271, X272, X273, part20_out_aaaa(T148, T149, T153, T154)) → U11_aaaaaaa(T148, T149, T153, T154, X271, X272, X273, qs59_in_aa(T153, X271))
qs59_in_aa([], []) → qs59_out_aa([], [])
U11_aaaaaaa(T148, T149, T153, T154, X271, X272, X273, qs59_out_aa(T153, X271)) → p56_out_aaaaaaa(T148, T149, T153, T154, X271, X272, X273)
p56_in_aaaaaaa(T148, T149, T153, T154, T160, X272, X273) → U12_aaaaaaa(T148, T149, T153, T154, T160, X272, X273, part20_in_aaaa(T148, T149, T153, T154))
U12_aaaaaaa(T148, T149, T153, T154, T160, X272, X273, part20_out_aaaa(T148, T149, T153, T154)) → U13_aaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_in_aa(T153, T160))
U13_aaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_out_aa(T153, T160)) → U14_aaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_in_aa(T154, X272))
U14_aaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_out_aa(T154, X272)) → p56_out_aaaaaaa(T148, T149, T153, T154, T160, X272, X273)
p56_in_aaaaaaa(T148, T149, T153, T154, T160, T178, X273) → U15_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, part20_in_aaaa(T148, T149, T153, T154))
U15_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, part20_out_aaaa(T148, T149, T153, T154)) → U16_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_in_aa(T153, T160))
U16_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_out_aa(T153, T160)) → U17_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_in_aa(T154, T178))
U17_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_out_aa(T154, T178)) → U18_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, app70_in_aaaa(T160, T148, T178, X273))
app70_in_aaaa(.(T201, T202), T203, T204, .(T201, X391)) → U20_aaaa(T201, T202, T203, T204, X391, app70_in_aaaa(T202, T203, T204, X391))
app70_in_aaaa([], T213, T214, .(T213, T214)) → app70_out_aaaa([], T213, T214, .(T213, T214))
U20_aaaa(T201, T202, T203, T204, X391, app70_out_aaaa(T202, T203, T204, X391)) → app70_out_aaaa(.(T201, T202), T203, T204, .(T201, X391))
U18_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, app70_out_aaaa(T160, T148, T178, X273)) → p56_out_aaaaaaa(T148, T149, T153, T154, T160, T178, X273)
U19_aa(T171, T172, X335, p56_out_aaaaaaa(T171, T172, X331, X332, X333, X334, X335)) → qs59_out_aa(.(T171, T172), X335)
U11_gaaaaaa(T148, T149, T153, T154, X271, X272, X273, qs59_out_aa(T153, X271)) → p56_out_gaaaaaa(T148, T149, T153, T154, X271, X272, X273)
p56_in_gaaaaaa(T148, T149, T153, T154, T160, X272, X273) → U12_gaaaaaa(T148, T149, T153, T154, T160, X272, X273, part20_in_gaaa(T148, T149, T153, T154))
U12_gaaaaaa(T148, T149, T153, T154, T160, X272, X273, part20_out_gaaa(T148, T149, T153, T154)) → U13_gaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_in_aa(T153, T160))
U13_gaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_out_aa(T153, T160)) → U14_gaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_in_aa(T154, X272))
U14_gaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_out_aa(T154, X272)) → p56_out_gaaaaaa(T148, T149, T153, T154, T160, X272, X273)
p56_in_gaaaaaa(T148, T149, T153, T154, T160, T178, X273) → U15_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, part20_in_gaaa(T148, T149, T153, T154))
U15_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, part20_out_gaaa(T148, T149, T153, T154)) → U16_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_in_aa(T153, T160))
U16_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_out_aa(T153, T160)) → U17_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_in_aa(T154, T178))
U17_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_out_aa(T154, T178)) → U18_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, app70_in_agaa(T160, T148, T178, X273))
app70_in_agaa(.(T201, T202), T203, T204, .(T201, X391)) → U20_agaa(T201, T202, T203, T204, X391, app70_in_agaa(T202, T203, T204, X391))
app70_in_agaa([], T213, T214, .(T213, T214)) → app70_out_agaa([], T213, T214, .(T213, T214))
U20_agaa(T201, T202, T203, T204, X391, app70_out_agaa(T202, T203, T204, X391)) → app70_out_agaa(.(T201, T202), T203, T204, .(T201, X391))
U18_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, app70_out_agaa(T160, T148, T178, X273)) → p56_out_gaaaaaa(T148, T149, T153, T154, T160, T178, X273)
U37_gaa(T148, T149, X273, p56_out_gaaaaaa(T148, T149, X269, X270, X271, X272, X273)) → qs51_out_gaa(T148, T149, X273)
U48_ag(T31, T33, T32, T8, qs51_out_gaa(T33, T53, X9)) → qs1_out_ag(.(T31, .(T33, T32)), T8)
U47_ag(T31, T33, T32, T8, part20_out_gaaa(T31, T32, T53, T54)) → U49_ag(T31, T33, T32, T8, T54, qs51_in_gaa(T33, T53, T131))
U49_ag(T31, T33, T32, T8, T54, qs51_out_gaa(T33, T53, T131)) → U50_ag(T31, T33, T32, T8, p52_in_aaagg(T54, X10, T131, T31, T8))
p52_in_aaagg(T54, X10, T131, T31, T8) → U33_aaagg(T54, X10, T131, T31, T8, qs80_in_aa(T54, X10))
qs80_in_aa(.(T230, T231), X452) → U22_aa(T230, T231, X452, part87_in_aaaa(T230, T231, X448, X449))
part87_in_aaaa(T256, .(T257, T258), .(T257, X503), X504) → U38_aaaa(T256, T257, T258, X503, X504, gt10_in_aa(T256, T257))
U38_aaaa(T256, T257, T258, X503, X504, gt10_out_aa(T256, T257)) → part87_out_aaaa(T256, .(T257, T258), .(T257, X503), X504)
part87_in_aaaa(T261, .(T257, T262), .(T257, X503), X504) → U39_aaaa(T261, T257, T262, X503, X504, gt10_in_aa(T261, T257))
U39_aaaa(T261, T257, T262, X503, X504, gt10_out_aa(T261, T257)) → U40_aaaa(T261, T257, T262, X503, X504, part20_in_gaaa(T261, T262, X503, X504))
U40_aaaa(T261, T257, T262, X503, X504, part20_out_gaaa(T261, T262, X503, X504)) → part87_out_aaaa(T261, .(T257, T262), .(T257, X503), X504)
part87_in_aaaa(T283, .(T284, T285), X554, .(T284, X555)) → U41_aaaa(T283, T284, T285, X554, X555, le100_in_aa(T283, T284))
le100_in_aa(s(T302), s(T303)) → U21_aa(T302, T303, le100_in_aa(T302, T303))
le100_in_aa(0, s(T310)) → le100_out_aa(0, s(T310))
le100_in_aa(0, 0) → le100_out_aa(0, 0)
U21_aa(T302, T303, le100_out_aa(T302, T303)) → le100_out_aa(s(T302), s(T303))
U41_aaaa(T283, T284, T285, X554, X555, le100_out_aa(T283, T284)) → part87_out_aaaa(T283, .(T284, T285), X554, .(T284, X555))
part87_in_aaaa(T288, .(T284, T289), X554, .(T284, X555)) → U42_aaaa(T288, T284, T289, X554, X555, le100_in_aa(T288, T284))
U42_aaaa(T288, T284, T289, X554, X555, le100_out_aa(T288, T284)) → U43_aaaa(T288, T284, T289, X554, X555, part20_in_gaaa(T288, T289, X554, X555))
U43_aaaa(T288, T284, T289, X554, X555, part20_out_gaaa(T288, T289, X554, X555)) → part87_out_aaaa(T288, .(T284, T289), X554, .(T284, X555))
part87_in_aaaa(T316, [], [], []) → part87_out_aaaa(T316, [], [], [])
U22_aa(T230, T231, X452, part87_out_aaaa(T230, T231, X448, X449)) → qs80_out_aa(.(T230, T231), X452)
qs80_in_aa(.(T237, T231), X452) → U23_aa(T237, T231, X452, part87_in_aaaa(T237, T231, T235, T236))
U23_aa(T237, T231, X452, part87_out_aaaa(T237, T231, T235, T236)) → U24_aa(T237, T231, X452, qs80_in_aa(T235, X450))
qs80_in_aa(.(T325, T231), X452) → U27_aa(T325, T231, X452, part87_in_aaaa(T325, T231, T235, T236))
U27_aa(T325, T231, X452, part87_out_aaaa(T325, T231, T235, T236)) → U28_aa(T325, T231, X452, T236, qs80_in_aa(T235, T319))
qs80_in_aa([], []) → qs80_out_aa([], [])
U28_aa(T325, T231, X452, T236, qs80_out_aa(T235, T319)) → U29_aa(T325, T231, X452, T319, qs80_in_aa(T236, T324))
U29_aa(T325, T231, X452, T319, qs80_out_aa(T236, T324)) → U30_aa(T325, T231, X452, app121_in_aaaa(T319, T325, T324, X452))
app121_in_aaaa(.(T348, T349), T352, T353, .(T348, X657)) → U31_aaaa(T348, T349, T352, T353, X657, app121_in_aaaa(T349, T352, T353, X657))
app121_in_aaaa([], T362, T363, .(T362, T363)) → app121_out_aaaa([], T362, T363, .(T362, T363))
U31_aaaa(T348, T349, T352, T353, X657, app121_out_aaaa(T349, T352, T353, X657)) → app121_out_aaaa(.(T348, T349), T352, T353, .(T348, X657))
U30_aa(T325, T231, X452, app121_out_aaaa(T319, T325, T324, X452)) → qs80_out_aa(.(T325, T231), X452)
U24_aa(T237, T231, X452, qs80_out_aa(T235, X450)) → qs80_out_aa(.(T237, T231), X452)
U23_aa(T237, T231, X452, part87_out_aaaa(T237, T231, T235, T236)) → U25_aa(T237, T231, X452, T236, qs80_in_aa(T235, T319))
U25_aa(T237, T231, X452, T236, qs80_out_aa(T235, T319)) → U26_aa(T237, T231, X452, qs80_in_aa(T236, X451))
U26_aa(T237, T231, X452, qs80_out_aa(T236, X451)) → qs80_out_aa(.(T237, T231), X452)
U33_aaagg(T54, X10, T131, T31, T8, qs80_out_aa(T54, X10)) → p52_out_aaagg(T54, X10, T131, T31, T8)
p52_in_aaagg(T54, T217, T131, T31, T8) → U34_aaagg(T54, T217, T131, T31, T8, qs80_in_aa(T54, T217))
U34_aaagg(T54, T217, T131, T31, T8, qs80_out_aa(T54, T217)) → U35_aaagg(T54, T217, T131, T31, T8, app81_in_agag(T131, T31, T217, T8))
app81_in_agag(.(T389, T390), T391, T394, .(T389, T393)) → U32_agag(T389, T390, T391, T394, T393, app81_in_agag(T390, T391, T394, T393))
app81_in_agag([], T404, T405, .(T404, T405)) → app81_out_agag([], T404, T405, .(T404, T405))
U32_agag(T389, T390, T391, T394, T393, app81_out_agag(T390, T391, T394, T393)) → app81_out_agag(.(T389, T390), T391, T394, .(T389, T393))
U35_aaagg(T54, T217, T131, T31, T8, app81_out_agag(T131, T31, T217, T8)) → p52_out_aaagg(T54, T217, T131, T31, T8)
U50_ag(T31, T33, T32, T8, p52_out_aaagg(T54, X10, T131, T31, T8)) → qs1_out_ag(.(T31, .(T33, T32)), T8)
qs1_in_ag(.(T421, .(T422, T423)), T8) → U51_ag(T421, T422, T423, T8, le100_in_aa(T421, T422))
U51_ag(T421, T422, T423, T8, le100_out_aa(T421, T422)) → qs1_out_ag(.(T421, .(T422, T423)), T8)
qs1_in_ag(.(T426, .(T428, T427)), T8) → U52_ag(T426, T428, T427, T8, le100_in_aa(T426, T428))
U52_ag(T426, T428, T427, T8, le100_out_aa(T426, T428)) → U53_ag(T426, T428, T427, T8, part20_in_gaaa(T426, T427, X740, X741))
U53_ag(T426, T428, T427, T8, part20_out_gaaa(T426, T427, X740, X741)) → qs1_out_ag(.(T426, .(T428, T427)), T8)
qs1_in_ag(.(T426, .(T436, T427)), T8) → U54_ag(T426, T436, T427, T8, le100_in_aa(T426, T436))
U54_ag(T426, T436, T427, T8, le100_out_aa(T426, T436)) → U55_ag(T426, T436, T427, T8, part20_in_gaaa(T426, T427, T434, T435))
U55_ag(T426, T436, T427, T8, part20_out_gaaa(T426, T427, T434, T435)) → U56_ag(T426, T436, T427, T8, qs80_in_aa(T434, X9))
U56_ag(T426, T436, T427, T8, qs80_out_aa(T434, X9)) → qs1_out_ag(.(T426, .(T436, T427)), T8)
U55_ag(T426, T436, T427, T8, part20_out_gaaa(T426, T427, T434, T435)) → U57_ag(T426, T436, T427, T8, T435, qs80_in_aa(T434, T442))
U57_ag(T426, T436, T427, T8, T435, qs80_out_aa(T434, T442)) → U58_ag(T426, T436, T427, T8, p52_in_aaagg(.(T436, T435), X10, T442, T426, T8))
U58_ag(T426, T436, T427, T8, p52_out_aaagg(.(T436, T435), X10, T442, T426, T8)) → qs1_out_ag(.(T426, .(T436, T427)), T8)
qs1_in_ag(.(T452, []), T8) → U59_ag(T452, T8, qs155_in_a(X9))
qs155_in_a([]) → qs155_out_a([])
U59_ag(T452, T8, qs155_out_a(X9)) → qs1_out_ag(.(T452, []), T8)
qs1_in_ag(.(T452, []), T8) → U60_ag(T452, T8, qs155_in_a(T455))
U60_ag(T452, T8, qs155_out_a(T455)) → U61_ag(T452, T8, qs155_in_a(X10))
U61_ag(T452, T8, qs155_out_a(X10)) → qs1_out_ag(.(T452, []), T8)
U60_ag(T452, T8, qs155_out_a(T455)) → U62_ag(T452, T8, T455, qs155_in_a(T460))
U62_ag(T452, T8, T455, qs155_out_a(T460)) → U63_ag(T452, T8, app162_in_gagg(T455, T452, T460, T8))
app162_in_gagg(.(T486, T487), T491, T489, .(T486, T490)) → U36_gagg(T486, T487, T491, T489, T490, app162_in_gagg(T487, T491, T489, T490))
app162_in_gagg([], T501, T502, .(T501, T502)) → app162_out_gagg([], T501, T502, .(T501, T502))
U36_gagg(T486, T487, T491, T489, T490, app162_out_gagg(T487, T491, T489, T490)) → app162_out_gagg(.(T486, T487), T491, T489, .(T486, T490))
U63_ag(T452, T8, app162_out_gagg(T455, T452, T460, T8)) → qs1_out_ag(.(T452, []), T8)
qs1_in_ag([], []) → qs1_out_ag([], [])
APP81_IN_AGAG(.(T389, T390), T391, T394, .(T389, T393)) → APP81_IN_AGAG(T390, T391, T394, T393)
APP81_IN_AGAG(T391, .(T389, T393)) → APP81_IN_AGAG(T391, T393)
From the DPs we obtained the following set of size-change graphs:
APP121_IN_AAAA(.(T348, T349), T352, T353, .(T348, X657)) → APP121_IN_AAAA(T349, T352, T353, X657)
qs1_in_ag(.(T26, .(T27, T28)), T8) → U44_ag(T26, T27, T28, T8, gt10_in_aa(T26, T27))
gt10_in_aa(s(T46), s(T47)) → U1_aa(T46, T47, gt10_in_aa(T46, T47))
gt10_in_aa(s(0), 0) → gt10_out_aa(s(0), 0)
U1_aa(T46, T47, gt10_out_aa(T46, T47)) → gt10_out_aa(s(T46), s(T47))
U44_ag(T26, T27, T28, T8, gt10_out_aa(T26, T27)) → qs1_out_ag(.(T26, .(T27, T28)), T8)
qs1_in_ag(.(T31, .(T33, T32)), T8) → U45_ag(T31, T33, T32, T8, gt10_in_aa(T31, T33))
U45_ag(T31, T33, T32, T8, gt10_out_aa(T31, T33)) → U46_ag(T31, T33, T32, T8, part20_in_gaaa(T31, T32, X47, X48))
part20_in_gaaa(T70, .(T73, T74), .(T73, X119), X120) → U2_gaaa(T70, T73, T74, X119, X120, gt10_in_ga(T70, T73))
gt10_in_ga(s(T46), s(T47)) → U1_ga(T46, T47, gt10_in_ga(T46, T47))
gt10_in_ga(s(0), 0) → gt10_out_ga(s(0), 0)
U1_ga(T46, T47, gt10_out_ga(T46, T47)) → gt10_out_ga(s(T46), s(T47))
U2_gaaa(T70, T73, T74, X119, X120, gt10_out_ga(T70, T73)) → part20_out_gaaa(T70, .(T73, T74), .(T73, X119), X120)
part20_in_gaaa(T70, .(T73, T77), .(T73, X119), X120) → U3_gaaa(T70, T73, T77, X119, X120, gt10_in_ga(T70, T73))
U3_gaaa(T70, T73, T77, X119, X120, gt10_out_ga(T70, T73)) → U4_gaaa(T70, T73, T77, X119, X120, part20_in_gaaa(T70, T77, X119, X120))
part20_in_gaaa(T95, .(T98, T99), X170, .(T98, X171)) → U5_gaaa(T95, T98, T99, X170, X171, le33_in_ga(T95, T98))
le33_in_ga(s(T113), s(T115)) → U8_ga(T113, T115, le33_in_ga(T113, T115))
le33_in_ga(0, s(T122)) → le33_out_ga(0, s(T122))
le33_in_ga(0, 0) → le33_out_ga(0, 0)
U8_ga(T113, T115, le33_out_ga(T113, T115)) → le33_out_ga(s(T113), s(T115))
U5_gaaa(T95, T98, T99, X170, X171, le33_out_ga(T95, T98)) → part20_out_gaaa(T95, .(T98, T99), X170, .(T98, X171))
part20_in_gaaa(T95, .(T98, T102), X170, .(T98, X171)) → U6_gaaa(T95, T98, T102, X170, X171, le33_in_ga(T95, T98))
U6_gaaa(T95, T98, T102, X170, X171, le33_out_ga(T95, T98)) → U7_gaaa(T95, T98, T102, X170, X171, part20_in_gaaa(T95, T102, X170, X171))
part20_in_gaaa(T128, [], [], []) → part20_out_gaaa(T128, [], [], [])
U7_gaaa(T95, T98, T102, X170, X171, part20_out_gaaa(T95, T102, X170, X171)) → part20_out_gaaa(T95, .(T98, T102), X170, .(T98, X171))
U4_gaaa(T70, T73, T77, X119, X120, part20_out_gaaa(T70, T77, X119, X120)) → part20_out_gaaa(T70, .(T73, T77), .(T73, X119), X120)
U46_ag(T31, T33, T32, T8, part20_out_gaaa(T31, T32, X47, X48)) → qs1_out_ag(.(T31, .(T33, T32)), T8)
U45_ag(T31, T33, T32, T8, gt10_out_aa(T31, T33)) → U47_ag(T31, T33, T32, T8, part20_in_gaaa(T31, T32, T53, T54))
U47_ag(T31, T33, T32, T8, part20_out_gaaa(T31, T32, T53, T54)) → U48_ag(T31, T33, T32, T8, qs51_in_gaa(T33, T53, X9))
qs51_in_gaa(T148, T149, X273) → U37_gaa(T148, T149, X273, p56_in_gaaaaaa(T148, T149, X269, X270, X271, X272, X273))
p56_in_gaaaaaa(T148, T149, X269, X270, X271, X272, X273) → U9_gaaaaaa(T148, T149, X269, X270, X271, X272, X273, part20_in_gaaa(T148, T149, X269, X270))
U9_gaaaaaa(T148, T149, X269, X270, X271, X272, X273, part20_out_gaaa(T148, T149, X269, X270)) → p56_out_gaaaaaa(T148, T149, X269, X270, X271, X272, X273)
p56_in_gaaaaaa(T148, T149, T153, T154, X271, X272, X273) → U10_gaaaaaa(T148, T149, T153, T154, X271, X272, X273, part20_in_gaaa(T148, T149, T153, T154))
U10_gaaaaaa(T148, T149, T153, T154, X271, X272, X273, part20_out_gaaa(T148, T149, T153, T154)) → U11_gaaaaaa(T148, T149, T153, T154, X271, X272, X273, qs59_in_aa(T153, X271))
qs59_in_aa(.(T171, T172), X335) → U19_aa(T171, T172, X335, p56_in_aaaaaaa(T171, T172, X331, X332, X333, X334, X335))
p56_in_aaaaaaa(T148, T149, X269, X270, X271, X272, X273) → U9_aaaaaaa(T148, T149, X269, X270, X271, X272, X273, part20_in_aaaa(T148, T149, X269, X270))
part20_in_aaaa(T70, .(T73, T74), .(T73, X119), X120) → U2_aaaa(T70, T73, T74, X119, X120, gt10_in_aa(T70, T73))
U2_aaaa(T70, T73, T74, X119, X120, gt10_out_aa(T70, T73)) → part20_out_aaaa(T70, .(T73, T74), .(T73, X119), X120)
part20_in_aaaa(T70, .(T73, T77), .(T73, X119), X120) → U3_aaaa(T70, T73, T77, X119, X120, gt10_in_aa(T70, T73))
U3_aaaa(T70, T73, T77, X119, X120, gt10_out_aa(T70, T73)) → U4_aaaa(T70, T73, T77, X119, X120, part20_in_gaaa(T70, T77, X119, X120))
U4_aaaa(T70, T73, T77, X119, X120, part20_out_gaaa(T70, T77, X119, X120)) → part20_out_aaaa(T70, .(T73, T77), .(T73, X119), X120)
part20_in_aaaa(T95, .(T98, T99), X170, .(T98, X171)) → U5_aaaa(T95, T98, T99, X170, X171, le33_in_aa(T95, T98))
le33_in_aa(s(T113), s(T115)) → U8_aa(T113, T115, le33_in_aa(T113, T115))
le33_in_aa(0, s(T122)) → le33_out_aa(0, s(T122))
le33_in_aa(0, 0) → le33_out_aa(0, 0)
U8_aa(T113, T115, le33_out_aa(T113, T115)) → le33_out_aa(s(T113), s(T115))
U5_aaaa(T95, T98, T99, X170, X171, le33_out_aa(T95, T98)) → part20_out_aaaa(T95, .(T98, T99), X170, .(T98, X171))
part20_in_aaaa(T95, .(T98, T102), X170, .(T98, X171)) → U6_aaaa(T95, T98, T102, X170, X171, le33_in_aa(T95, T98))
U6_aaaa(T95, T98, T102, X170, X171, le33_out_aa(T95, T98)) → U7_aaaa(T95, T98, T102, X170, X171, part20_in_gaaa(T95, T102, X170, X171))
U7_aaaa(T95, T98, T102, X170, X171, part20_out_gaaa(T95, T102, X170, X171)) → part20_out_aaaa(T95, .(T98, T102), X170, .(T98, X171))
part20_in_aaaa(T128, [], [], []) → part20_out_aaaa(T128, [], [], [])
U9_aaaaaaa(T148, T149, X269, X270, X271, X272, X273, part20_out_aaaa(T148, T149, X269, X270)) → p56_out_aaaaaaa(T148, T149, X269, X270, X271, X272, X273)
p56_in_aaaaaaa(T148, T149, T153, T154, X271, X272, X273) → U10_aaaaaaa(T148, T149, T153, T154, X271, X272, X273, part20_in_aaaa(T148, T149, T153, T154))
U10_aaaaaaa(T148, T149, T153, T154, X271, X272, X273, part20_out_aaaa(T148, T149, T153, T154)) → U11_aaaaaaa(T148, T149, T153, T154, X271, X272, X273, qs59_in_aa(T153, X271))
qs59_in_aa([], []) → qs59_out_aa([], [])
U11_aaaaaaa(T148, T149, T153, T154, X271, X272, X273, qs59_out_aa(T153, X271)) → p56_out_aaaaaaa(T148, T149, T153, T154, X271, X272, X273)
p56_in_aaaaaaa(T148, T149, T153, T154, T160, X272, X273) → U12_aaaaaaa(T148, T149, T153, T154, T160, X272, X273, part20_in_aaaa(T148, T149, T153, T154))
U12_aaaaaaa(T148, T149, T153, T154, T160, X272, X273, part20_out_aaaa(T148, T149, T153, T154)) → U13_aaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_in_aa(T153, T160))
U13_aaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_out_aa(T153, T160)) → U14_aaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_in_aa(T154, X272))
U14_aaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_out_aa(T154, X272)) → p56_out_aaaaaaa(T148, T149, T153, T154, T160, X272, X273)
p56_in_aaaaaaa(T148, T149, T153, T154, T160, T178, X273) → U15_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, part20_in_aaaa(T148, T149, T153, T154))
U15_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, part20_out_aaaa(T148, T149, T153, T154)) → U16_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_in_aa(T153, T160))
U16_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_out_aa(T153, T160)) → U17_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_in_aa(T154, T178))
U17_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_out_aa(T154, T178)) → U18_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, app70_in_aaaa(T160, T148, T178, X273))
app70_in_aaaa(.(T201, T202), T203, T204, .(T201, X391)) → U20_aaaa(T201, T202, T203, T204, X391, app70_in_aaaa(T202, T203, T204, X391))
app70_in_aaaa([], T213, T214, .(T213, T214)) → app70_out_aaaa([], T213, T214, .(T213, T214))
U20_aaaa(T201, T202, T203, T204, X391, app70_out_aaaa(T202, T203, T204, X391)) → app70_out_aaaa(.(T201, T202), T203, T204, .(T201, X391))
U18_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, app70_out_aaaa(T160, T148, T178, X273)) → p56_out_aaaaaaa(T148, T149, T153, T154, T160, T178, X273)
U19_aa(T171, T172, X335, p56_out_aaaaaaa(T171, T172, X331, X332, X333, X334, X335)) → qs59_out_aa(.(T171, T172), X335)
U11_gaaaaaa(T148, T149, T153, T154, X271, X272, X273, qs59_out_aa(T153, X271)) → p56_out_gaaaaaa(T148, T149, T153, T154, X271, X272, X273)
p56_in_gaaaaaa(T148, T149, T153, T154, T160, X272, X273) → U12_gaaaaaa(T148, T149, T153, T154, T160, X272, X273, part20_in_gaaa(T148, T149, T153, T154))
U12_gaaaaaa(T148, T149, T153, T154, T160, X272, X273, part20_out_gaaa(T148, T149, T153, T154)) → U13_gaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_in_aa(T153, T160))
U13_gaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_out_aa(T153, T160)) → U14_gaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_in_aa(T154, X272))
U14_gaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_out_aa(T154, X272)) → p56_out_gaaaaaa(T148, T149, T153, T154, T160, X272, X273)
p56_in_gaaaaaa(T148, T149, T153, T154, T160, T178, X273) → U15_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, part20_in_gaaa(T148, T149, T153, T154))
U15_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, part20_out_gaaa(T148, T149, T153, T154)) → U16_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_in_aa(T153, T160))
U16_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_out_aa(T153, T160)) → U17_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_in_aa(T154, T178))
U17_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_out_aa(T154, T178)) → U18_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, app70_in_agaa(T160, T148, T178, X273))
app70_in_agaa(.(T201, T202), T203, T204, .(T201, X391)) → U20_agaa(T201, T202, T203, T204, X391, app70_in_agaa(T202, T203, T204, X391))
app70_in_agaa([], T213, T214, .(T213, T214)) → app70_out_agaa([], T213, T214, .(T213, T214))
U20_agaa(T201, T202, T203, T204, X391, app70_out_agaa(T202, T203, T204, X391)) → app70_out_agaa(.(T201, T202), T203, T204, .(T201, X391))
U18_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, app70_out_agaa(T160, T148, T178, X273)) → p56_out_gaaaaaa(T148, T149, T153, T154, T160, T178, X273)
U37_gaa(T148, T149, X273, p56_out_gaaaaaa(T148, T149, X269, X270, X271, X272, X273)) → qs51_out_gaa(T148, T149, X273)
U48_ag(T31, T33, T32, T8, qs51_out_gaa(T33, T53, X9)) → qs1_out_ag(.(T31, .(T33, T32)), T8)
U47_ag(T31, T33, T32, T8, part20_out_gaaa(T31, T32, T53, T54)) → U49_ag(T31, T33, T32, T8, T54, qs51_in_gaa(T33, T53, T131))
U49_ag(T31, T33, T32, T8, T54, qs51_out_gaa(T33, T53, T131)) → U50_ag(T31, T33, T32, T8, p52_in_aaagg(T54, X10, T131, T31, T8))
p52_in_aaagg(T54, X10, T131, T31, T8) → U33_aaagg(T54, X10, T131, T31, T8, qs80_in_aa(T54, X10))
qs80_in_aa(.(T230, T231), X452) → U22_aa(T230, T231, X452, part87_in_aaaa(T230, T231, X448, X449))
part87_in_aaaa(T256, .(T257, T258), .(T257, X503), X504) → U38_aaaa(T256, T257, T258, X503, X504, gt10_in_aa(T256, T257))
U38_aaaa(T256, T257, T258, X503, X504, gt10_out_aa(T256, T257)) → part87_out_aaaa(T256, .(T257, T258), .(T257, X503), X504)
part87_in_aaaa(T261, .(T257, T262), .(T257, X503), X504) → U39_aaaa(T261, T257, T262, X503, X504, gt10_in_aa(T261, T257))
U39_aaaa(T261, T257, T262, X503, X504, gt10_out_aa(T261, T257)) → U40_aaaa(T261, T257, T262, X503, X504, part20_in_gaaa(T261, T262, X503, X504))
U40_aaaa(T261, T257, T262, X503, X504, part20_out_gaaa(T261, T262, X503, X504)) → part87_out_aaaa(T261, .(T257, T262), .(T257, X503), X504)
part87_in_aaaa(T283, .(T284, T285), X554, .(T284, X555)) → U41_aaaa(T283, T284, T285, X554, X555, le100_in_aa(T283, T284))
le100_in_aa(s(T302), s(T303)) → U21_aa(T302, T303, le100_in_aa(T302, T303))
le100_in_aa(0, s(T310)) → le100_out_aa(0, s(T310))
le100_in_aa(0, 0) → le100_out_aa(0, 0)
U21_aa(T302, T303, le100_out_aa(T302, T303)) → le100_out_aa(s(T302), s(T303))
U41_aaaa(T283, T284, T285, X554, X555, le100_out_aa(T283, T284)) → part87_out_aaaa(T283, .(T284, T285), X554, .(T284, X555))
part87_in_aaaa(T288, .(T284, T289), X554, .(T284, X555)) → U42_aaaa(T288, T284, T289, X554, X555, le100_in_aa(T288, T284))
U42_aaaa(T288, T284, T289, X554, X555, le100_out_aa(T288, T284)) → U43_aaaa(T288, T284, T289, X554, X555, part20_in_gaaa(T288, T289, X554, X555))
U43_aaaa(T288, T284, T289, X554, X555, part20_out_gaaa(T288, T289, X554, X555)) → part87_out_aaaa(T288, .(T284, T289), X554, .(T284, X555))
part87_in_aaaa(T316, [], [], []) → part87_out_aaaa(T316, [], [], [])
U22_aa(T230, T231, X452, part87_out_aaaa(T230, T231, X448, X449)) → qs80_out_aa(.(T230, T231), X452)
qs80_in_aa(.(T237, T231), X452) → U23_aa(T237, T231, X452, part87_in_aaaa(T237, T231, T235, T236))
U23_aa(T237, T231, X452, part87_out_aaaa(T237, T231, T235, T236)) → U24_aa(T237, T231, X452, qs80_in_aa(T235, X450))
qs80_in_aa(.(T325, T231), X452) → U27_aa(T325, T231, X452, part87_in_aaaa(T325, T231, T235, T236))
U27_aa(T325, T231, X452, part87_out_aaaa(T325, T231, T235, T236)) → U28_aa(T325, T231, X452, T236, qs80_in_aa(T235, T319))
qs80_in_aa([], []) → qs80_out_aa([], [])
U28_aa(T325, T231, X452, T236, qs80_out_aa(T235, T319)) → U29_aa(T325, T231, X452, T319, qs80_in_aa(T236, T324))
U29_aa(T325, T231, X452, T319, qs80_out_aa(T236, T324)) → U30_aa(T325, T231, X452, app121_in_aaaa(T319, T325, T324, X452))
app121_in_aaaa(.(T348, T349), T352, T353, .(T348, X657)) → U31_aaaa(T348, T349, T352, T353, X657, app121_in_aaaa(T349, T352, T353, X657))
app121_in_aaaa([], T362, T363, .(T362, T363)) → app121_out_aaaa([], T362, T363, .(T362, T363))
U31_aaaa(T348, T349, T352, T353, X657, app121_out_aaaa(T349, T352, T353, X657)) → app121_out_aaaa(.(T348, T349), T352, T353, .(T348, X657))
U30_aa(T325, T231, X452, app121_out_aaaa(T319, T325, T324, X452)) → qs80_out_aa(.(T325, T231), X452)
U24_aa(T237, T231, X452, qs80_out_aa(T235, X450)) → qs80_out_aa(.(T237, T231), X452)
U23_aa(T237, T231, X452, part87_out_aaaa(T237, T231, T235, T236)) → U25_aa(T237, T231, X452, T236, qs80_in_aa(T235, T319))
U25_aa(T237, T231, X452, T236, qs80_out_aa(T235, T319)) → U26_aa(T237, T231, X452, qs80_in_aa(T236, X451))
U26_aa(T237, T231, X452, qs80_out_aa(T236, X451)) → qs80_out_aa(.(T237, T231), X452)
U33_aaagg(T54, X10, T131, T31, T8, qs80_out_aa(T54, X10)) → p52_out_aaagg(T54, X10, T131, T31, T8)
p52_in_aaagg(T54, T217, T131, T31, T8) → U34_aaagg(T54, T217, T131, T31, T8, qs80_in_aa(T54, T217))
U34_aaagg(T54, T217, T131, T31, T8, qs80_out_aa(T54, T217)) → U35_aaagg(T54, T217, T131, T31, T8, app81_in_agag(T131, T31, T217, T8))
app81_in_agag(.(T389, T390), T391, T394, .(T389, T393)) → U32_agag(T389, T390, T391, T394, T393, app81_in_agag(T390, T391, T394, T393))
app81_in_agag([], T404, T405, .(T404, T405)) → app81_out_agag([], T404, T405, .(T404, T405))
U32_agag(T389, T390, T391, T394, T393, app81_out_agag(T390, T391, T394, T393)) → app81_out_agag(.(T389, T390), T391, T394, .(T389, T393))
U35_aaagg(T54, T217, T131, T31, T8, app81_out_agag(T131, T31, T217, T8)) → p52_out_aaagg(T54, T217, T131, T31, T8)
U50_ag(T31, T33, T32, T8, p52_out_aaagg(T54, X10, T131, T31, T8)) → qs1_out_ag(.(T31, .(T33, T32)), T8)
qs1_in_ag(.(T421, .(T422, T423)), T8) → U51_ag(T421, T422, T423, T8, le100_in_aa(T421, T422))
U51_ag(T421, T422, T423, T8, le100_out_aa(T421, T422)) → qs1_out_ag(.(T421, .(T422, T423)), T8)
qs1_in_ag(.(T426, .(T428, T427)), T8) → U52_ag(T426, T428, T427, T8, le100_in_aa(T426, T428))
U52_ag(T426, T428, T427, T8, le100_out_aa(T426, T428)) → U53_ag(T426, T428, T427, T8, part20_in_gaaa(T426, T427, X740, X741))
U53_ag(T426, T428, T427, T8, part20_out_gaaa(T426, T427, X740, X741)) → qs1_out_ag(.(T426, .(T428, T427)), T8)
qs1_in_ag(.(T426, .(T436, T427)), T8) → U54_ag(T426, T436, T427, T8, le100_in_aa(T426, T436))
U54_ag(T426, T436, T427, T8, le100_out_aa(T426, T436)) → U55_ag(T426, T436, T427, T8, part20_in_gaaa(T426, T427, T434, T435))
U55_ag(T426, T436, T427, T8, part20_out_gaaa(T426, T427, T434, T435)) → U56_ag(T426, T436, T427, T8, qs80_in_aa(T434, X9))
U56_ag(T426, T436, T427, T8, qs80_out_aa(T434, X9)) → qs1_out_ag(.(T426, .(T436, T427)), T8)
U55_ag(T426, T436, T427, T8, part20_out_gaaa(T426, T427, T434, T435)) → U57_ag(T426, T436, T427, T8, T435, qs80_in_aa(T434, T442))
U57_ag(T426, T436, T427, T8, T435, qs80_out_aa(T434, T442)) → U58_ag(T426, T436, T427, T8, p52_in_aaagg(.(T436, T435), X10, T442, T426, T8))
U58_ag(T426, T436, T427, T8, p52_out_aaagg(.(T436, T435), X10, T442, T426, T8)) → qs1_out_ag(.(T426, .(T436, T427)), T8)
qs1_in_ag(.(T452, []), T8) → U59_ag(T452, T8, qs155_in_a(X9))
qs155_in_a([]) → qs155_out_a([])
U59_ag(T452, T8, qs155_out_a(X9)) → qs1_out_ag(.(T452, []), T8)
qs1_in_ag(.(T452, []), T8) → U60_ag(T452, T8, qs155_in_a(T455))
U60_ag(T452, T8, qs155_out_a(T455)) → U61_ag(T452, T8, qs155_in_a(X10))
U61_ag(T452, T8, qs155_out_a(X10)) → qs1_out_ag(.(T452, []), T8)
U60_ag(T452, T8, qs155_out_a(T455)) → U62_ag(T452, T8, T455, qs155_in_a(T460))
U62_ag(T452, T8, T455, qs155_out_a(T460)) → U63_ag(T452, T8, app162_in_gagg(T455, T452, T460, T8))
app162_in_gagg(.(T486, T487), T491, T489, .(T486, T490)) → U36_gagg(T486, T487, T491, T489, T490, app162_in_gagg(T487, T491, T489, T490))
app162_in_gagg([], T501, T502, .(T501, T502)) → app162_out_gagg([], T501, T502, .(T501, T502))
U36_gagg(T486, T487, T491, T489, T490, app162_out_gagg(T487, T491, T489, T490)) → app162_out_gagg(.(T486, T487), T491, T489, .(T486, T490))
U63_ag(T452, T8, app162_out_gagg(T455, T452, T460, T8)) → qs1_out_ag(.(T452, []), T8)
qs1_in_ag([], []) → qs1_out_ag([], [])
APP121_IN_AAAA(.(T348, T349), T352, T353, .(T348, X657)) → APP121_IN_AAAA(T349, T352, T353, X657)
APP121_IN_AAAA → APP121_IN_AAAA
LE100_IN_AA(s(T302), s(T303)) → LE100_IN_AA(T302, T303)
qs1_in_ag(.(T26, .(T27, T28)), T8) → U44_ag(T26, T27, T28, T8, gt10_in_aa(T26, T27))
gt10_in_aa(s(T46), s(T47)) → U1_aa(T46, T47, gt10_in_aa(T46, T47))
gt10_in_aa(s(0), 0) → gt10_out_aa(s(0), 0)
U1_aa(T46, T47, gt10_out_aa(T46, T47)) → gt10_out_aa(s(T46), s(T47))
U44_ag(T26, T27, T28, T8, gt10_out_aa(T26, T27)) → qs1_out_ag(.(T26, .(T27, T28)), T8)
qs1_in_ag(.(T31, .(T33, T32)), T8) → U45_ag(T31, T33, T32, T8, gt10_in_aa(T31, T33))
U45_ag(T31, T33, T32, T8, gt10_out_aa(T31, T33)) → U46_ag(T31, T33, T32, T8, part20_in_gaaa(T31, T32, X47, X48))
part20_in_gaaa(T70, .(T73, T74), .(T73, X119), X120) → U2_gaaa(T70, T73, T74, X119, X120, gt10_in_ga(T70, T73))
gt10_in_ga(s(T46), s(T47)) → U1_ga(T46, T47, gt10_in_ga(T46, T47))
gt10_in_ga(s(0), 0) → gt10_out_ga(s(0), 0)
U1_ga(T46, T47, gt10_out_ga(T46, T47)) → gt10_out_ga(s(T46), s(T47))
U2_gaaa(T70, T73, T74, X119, X120, gt10_out_ga(T70, T73)) → part20_out_gaaa(T70, .(T73, T74), .(T73, X119), X120)
part20_in_gaaa(T70, .(T73, T77), .(T73, X119), X120) → U3_gaaa(T70, T73, T77, X119, X120, gt10_in_ga(T70, T73))
U3_gaaa(T70, T73, T77, X119, X120, gt10_out_ga(T70, T73)) → U4_gaaa(T70, T73, T77, X119, X120, part20_in_gaaa(T70, T77, X119, X120))
part20_in_gaaa(T95, .(T98, T99), X170, .(T98, X171)) → U5_gaaa(T95, T98, T99, X170, X171, le33_in_ga(T95, T98))
le33_in_ga(s(T113), s(T115)) → U8_ga(T113, T115, le33_in_ga(T113, T115))
le33_in_ga(0, s(T122)) → le33_out_ga(0, s(T122))
le33_in_ga(0, 0) → le33_out_ga(0, 0)
U8_ga(T113, T115, le33_out_ga(T113, T115)) → le33_out_ga(s(T113), s(T115))
U5_gaaa(T95, T98, T99, X170, X171, le33_out_ga(T95, T98)) → part20_out_gaaa(T95, .(T98, T99), X170, .(T98, X171))
part20_in_gaaa(T95, .(T98, T102), X170, .(T98, X171)) → U6_gaaa(T95, T98, T102, X170, X171, le33_in_ga(T95, T98))
U6_gaaa(T95, T98, T102, X170, X171, le33_out_ga(T95, T98)) → U7_gaaa(T95, T98, T102, X170, X171, part20_in_gaaa(T95, T102, X170, X171))
part20_in_gaaa(T128, [], [], []) → part20_out_gaaa(T128, [], [], [])
U7_gaaa(T95, T98, T102, X170, X171, part20_out_gaaa(T95, T102, X170, X171)) → part20_out_gaaa(T95, .(T98, T102), X170, .(T98, X171))
U4_gaaa(T70, T73, T77, X119, X120, part20_out_gaaa(T70, T77, X119, X120)) → part20_out_gaaa(T70, .(T73, T77), .(T73, X119), X120)
U46_ag(T31, T33, T32, T8, part20_out_gaaa(T31, T32, X47, X48)) → qs1_out_ag(.(T31, .(T33, T32)), T8)
U45_ag(T31, T33, T32, T8, gt10_out_aa(T31, T33)) → U47_ag(T31, T33, T32, T8, part20_in_gaaa(T31, T32, T53, T54))
U47_ag(T31, T33, T32, T8, part20_out_gaaa(T31, T32, T53, T54)) → U48_ag(T31, T33, T32, T8, qs51_in_gaa(T33, T53, X9))
qs51_in_gaa(T148, T149, X273) → U37_gaa(T148, T149, X273, p56_in_gaaaaaa(T148, T149, X269, X270, X271, X272, X273))
p56_in_gaaaaaa(T148, T149, X269, X270, X271, X272, X273) → U9_gaaaaaa(T148, T149, X269, X270, X271, X272, X273, part20_in_gaaa(T148, T149, X269, X270))
U9_gaaaaaa(T148, T149, X269, X270, X271, X272, X273, part20_out_gaaa(T148, T149, X269, X270)) → p56_out_gaaaaaa(T148, T149, X269, X270, X271, X272, X273)
p56_in_gaaaaaa(T148, T149, T153, T154, X271, X272, X273) → U10_gaaaaaa(T148, T149, T153, T154, X271, X272, X273, part20_in_gaaa(T148, T149, T153, T154))
U10_gaaaaaa(T148, T149, T153, T154, X271, X272, X273, part20_out_gaaa(T148, T149, T153, T154)) → U11_gaaaaaa(T148, T149, T153, T154, X271, X272, X273, qs59_in_aa(T153, X271))
qs59_in_aa(.(T171, T172), X335) → U19_aa(T171, T172, X335, p56_in_aaaaaaa(T171, T172, X331, X332, X333, X334, X335))
p56_in_aaaaaaa(T148, T149, X269, X270, X271, X272, X273) → U9_aaaaaaa(T148, T149, X269, X270, X271, X272, X273, part20_in_aaaa(T148, T149, X269, X270))
part20_in_aaaa(T70, .(T73, T74), .(T73, X119), X120) → U2_aaaa(T70, T73, T74, X119, X120, gt10_in_aa(T70, T73))
U2_aaaa(T70, T73, T74, X119, X120, gt10_out_aa(T70, T73)) → part20_out_aaaa(T70, .(T73, T74), .(T73, X119), X120)
part20_in_aaaa(T70, .(T73, T77), .(T73, X119), X120) → U3_aaaa(T70, T73, T77, X119, X120, gt10_in_aa(T70, T73))
U3_aaaa(T70, T73, T77, X119, X120, gt10_out_aa(T70, T73)) → U4_aaaa(T70, T73, T77, X119, X120, part20_in_gaaa(T70, T77, X119, X120))
U4_aaaa(T70, T73, T77, X119, X120, part20_out_gaaa(T70, T77, X119, X120)) → part20_out_aaaa(T70, .(T73, T77), .(T73, X119), X120)
part20_in_aaaa(T95, .(T98, T99), X170, .(T98, X171)) → U5_aaaa(T95, T98, T99, X170, X171, le33_in_aa(T95, T98))
le33_in_aa(s(T113), s(T115)) → U8_aa(T113, T115, le33_in_aa(T113, T115))
le33_in_aa(0, s(T122)) → le33_out_aa(0, s(T122))
le33_in_aa(0, 0) → le33_out_aa(0, 0)
U8_aa(T113, T115, le33_out_aa(T113, T115)) → le33_out_aa(s(T113), s(T115))
U5_aaaa(T95, T98, T99, X170, X171, le33_out_aa(T95, T98)) → part20_out_aaaa(T95, .(T98, T99), X170, .(T98, X171))
part20_in_aaaa(T95, .(T98, T102), X170, .(T98, X171)) → U6_aaaa(T95, T98, T102, X170, X171, le33_in_aa(T95, T98))
U6_aaaa(T95, T98, T102, X170, X171, le33_out_aa(T95, T98)) → U7_aaaa(T95, T98, T102, X170, X171, part20_in_gaaa(T95, T102, X170, X171))
U7_aaaa(T95, T98, T102, X170, X171, part20_out_gaaa(T95, T102, X170, X171)) → part20_out_aaaa(T95, .(T98, T102), X170, .(T98, X171))
part20_in_aaaa(T128, [], [], []) → part20_out_aaaa(T128, [], [], [])
U9_aaaaaaa(T148, T149, X269, X270, X271, X272, X273, part20_out_aaaa(T148, T149, X269, X270)) → p56_out_aaaaaaa(T148, T149, X269, X270, X271, X272, X273)
p56_in_aaaaaaa(T148, T149, T153, T154, X271, X272, X273) → U10_aaaaaaa(T148, T149, T153, T154, X271, X272, X273, part20_in_aaaa(T148, T149, T153, T154))
U10_aaaaaaa(T148, T149, T153, T154, X271, X272, X273, part20_out_aaaa(T148, T149, T153, T154)) → U11_aaaaaaa(T148, T149, T153, T154, X271, X272, X273, qs59_in_aa(T153, X271))
qs59_in_aa([], []) → qs59_out_aa([], [])
U11_aaaaaaa(T148, T149, T153, T154, X271, X272, X273, qs59_out_aa(T153, X271)) → p56_out_aaaaaaa(T148, T149, T153, T154, X271, X272, X273)
p56_in_aaaaaaa(T148, T149, T153, T154, T160, X272, X273) → U12_aaaaaaa(T148, T149, T153, T154, T160, X272, X273, part20_in_aaaa(T148, T149, T153, T154))
U12_aaaaaaa(T148, T149, T153, T154, T160, X272, X273, part20_out_aaaa(T148, T149, T153, T154)) → U13_aaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_in_aa(T153, T160))
U13_aaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_out_aa(T153, T160)) → U14_aaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_in_aa(T154, X272))
U14_aaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_out_aa(T154, X272)) → p56_out_aaaaaaa(T148, T149, T153, T154, T160, X272, X273)
p56_in_aaaaaaa(T148, T149, T153, T154, T160, T178, X273) → U15_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, part20_in_aaaa(T148, T149, T153, T154))
U15_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, part20_out_aaaa(T148, T149, T153, T154)) → U16_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_in_aa(T153, T160))
U16_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_out_aa(T153, T160)) → U17_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_in_aa(T154, T178))
U17_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_out_aa(T154, T178)) → U18_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, app70_in_aaaa(T160, T148, T178, X273))
app70_in_aaaa(.(T201, T202), T203, T204, .(T201, X391)) → U20_aaaa(T201, T202, T203, T204, X391, app70_in_aaaa(T202, T203, T204, X391))
app70_in_aaaa([], T213, T214, .(T213, T214)) → app70_out_aaaa([], T213, T214, .(T213, T214))
U20_aaaa(T201, T202, T203, T204, X391, app70_out_aaaa(T202, T203, T204, X391)) → app70_out_aaaa(.(T201, T202), T203, T204, .(T201, X391))
U18_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, app70_out_aaaa(T160, T148, T178, X273)) → p56_out_aaaaaaa(T148, T149, T153, T154, T160, T178, X273)
U19_aa(T171, T172, X335, p56_out_aaaaaaa(T171, T172, X331, X332, X333, X334, X335)) → qs59_out_aa(.(T171, T172), X335)
U11_gaaaaaa(T148, T149, T153, T154, X271, X272, X273, qs59_out_aa(T153, X271)) → p56_out_gaaaaaa(T148, T149, T153, T154, X271, X272, X273)
p56_in_gaaaaaa(T148, T149, T153, T154, T160, X272, X273) → U12_gaaaaaa(T148, T149, T153, T154, T160, X272, X273, part20_in_gaaa(T148, T149, T153, T154))
U12_gaaaaaa(T148, T149, T153, T154, T160, X272, X273, part20_out_gaaa(T148, T149, T153, T154)) → U13_gaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_in_aa(T153, T160))
U13_gaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_out_aa(T153, T160)) → U14_gaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_in_aa(T154, X272))
U14_gaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_out_aa(T154, X272)) → p56_out_gaaaaaa(T148, T149, T153, T154, T160, X272, X273)
p56_in_gaaaaaa(T148, T149, T153, T154, T160, T178, X273) → U15_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, part20_in_gaaa(T148, T149, T153, T154))
U15_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, part20_out_gaaa(T148, T149, T153, T154)) → U16_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_in_aa(T153, T160))
U16_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_out_aa(T153, T160)) → U17_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_in_aa(T154, T178))
U17_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_out_aa(T154, T178)) → U18_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, app70_in_agaa(T160, T148, T178, X273))
app70_in_agaa(.(T201, T202), T203, T204, .(T201, X391)) → U20_agaa(T201, T202, T203, T204, X391, app70_in_agaa(T202, T203, T204, X391))
app70_in_agaa([], T213, T214, .(T213, T214)) → app70_out_agaa([], T213, T214, .(T213, T214))
U20_agaa(T201, T202, T203, T204, X391, app70_out_agaa(T202, T203, T204, X391)) → app70_out_agaa(.(T201, T202), T203, T204, .(T201, X391))
U18_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, app70_out_agaa(T160, T148, T178, X273)) → p56_out_gaaaaaa(T148, T149, T153, T154, T160, T178, X273)
U37_gaa(T148, T149, X273, p56_out_gaaaaaa(T148, T149, X269, X270, X271, X272, X273)) → qs51_out_gaa(T148, T149, X273)
U48_ag(T31, T33, T32, T8, qs51_out_gaa(T33, T53, X9)) → qs1_out_ag(.(T31, .(T33, T32)), T8)
U47_ag(T31, T33, T32, T8, part20_out_gaaa(T31, T32, T53, T54)) → U49_ag(T31, T33, T32, T8, T54, qs51_in_gaa(T33, T53, T131))
U49_ag(T31, T33, T32, T8, T54, qs51_out_gaa(T33, T53, T131)) → U50_ag(T31, T33, T32, T8, p52_in_aaagg(T54, X10, T131, T31, T8))
p52_in_aaagg(T54, X10, T131, T31, T8) → U33_aaagg(T54, X10, T131, T31, T8, qs80_in_aa(T54, X10))
qs80_in_aa(.(T230, T231), X452) → U22_aa(T230, T231, X452, part87_in_aaaa(T230, T231, X448, X449))
part87_in_aaaa(T256, .(T257, T258), .(T257, X503), X504) → U38_aaaa(T256, T257, T258, X503, X504, gt10_in_aa(T256, T257))
U38_aaaa(T256, T257, T258, X503, X504, gt10_out_aa(T256, T257)) → part87_out_aaaa(T256, .(T257, T258), .(T257, X503), X504)
part87_in_aaaa(T261, .(T257, T262), .(T257, X503), X504) → U39_aaaa(T261, T257, T262, X503, X504, gt10_in_aa(T261, T257))
U39_aaaa(T261, T257, T262, X503, X504, gt10_out_aa(T261, T257)) → U40_aaaa(T261, T257, T262, X503, X504, part20_in_gaaa(T261, T262, X503, X504))
U40_aaaa(T261, T257, T262, X503, X504, part20_out_gaaa(T261, T262, X503, X504)) → part87_out_aaaa(T261, .(T257, T262), .(T257, X503), X504)
part87_in_aaaa(T283, .(T284, T285), X554, .(T284, X555)) → U41_aaaa(T283, T284, T285, X554, X555, le100_in_aa(T283, T284))
le100_in_aa(s(T302), s(T303)) → U21_aa(T302, T303, le100_in_aa(T302, T303))
le100_in_aa(0, s(T310)) → le100_out_aa(0, s(T310))
le100_in_aa(0, 0) → le100_out_aa(0, 0)
U21_aa(T302, T303, le100_out_aa(T302, T303)) → le100_out_aa(s(T302), s(T303))
U41_aaaa(T283, T284, T285, X554, X555, le100_out_aa(T283, T284)) → part87_out_aaaa(T283, .(T284, T285), X554, .(T284, X555))
part87_in_aaaa(T288, .(T284, T289), X554, .(T284, X555)) → U42_aaaa(T288, T284, T289, X554, X555, le100_in_aa(T288, T284))
U42_aaaa(T288, T284, T289, X554, X555, le100_out_aa(T288, T284)) → U43_aaaa(T288, T284, T289, X554, X555, part20_in_gaaa(T288, T289, X554, X555))
U43_aaaa(T288, T284, T289, X554, X555, part20_out_gaaa(T288, T289, X554, X555)) → part87_out_aaaa(T288, .(T284, T289), X554, .(T284, X555))
part87_in_aaaa(T316, [], [], []) → part87_out_aaaa(T316, [], [], [])
U22_aa(T230, T231, X452, part87_out_aaaa(T230, T231, X448, X449)) → qs80_out_aa(.(T230, T231), X452)
qs80_in_aa(.(T237, T231), X452) → U23_aa(T237, T231, X452, part87_in_aaaa(T237, T231, T235, T236))
U23_aa(T237, T231, X452, part87_out_aaaa(T237, T231, T235, T236)) → U24_aa(T237, T231, X452, qs80_in_aa(T235, X450))
qs80_in_aa(.(T325, T231), X452) → U27_aa(T325, T231, X452, part87_in_aaaa(T325, T231, T235, T236))
U27_aa(T325, T231, X452, part87_out_aaaa(T325, T231, T235, T236)) → U28_aa(T325, T231, X452, T236, qs80_in_aa(T235, T319))
qs80_in_aa([], []) → qs80_out_aa([], [])
U28_aa(T325, T231, X452, T236, qs80_out_aa(T235, T319)) → U29_aa(T325, T231, X452, T319, qs80_in_aa(T236, T324))
U29_aa(T325, T231, X452, T319, qs80_out_aa(T236, T324)) → U30_aa(T325, T231, X452, app121_in_aaaa(T319, T325, T324, X452))
app121_in_aaaa(.(T348, T349), T352, T353, .(T348, X657)) → U31_aaaa(T348, T349, T352, T353, X657, app121_in_aaaa(T349, T352, T353, X657))
app121_in_aaaa([], T362, T363, .(T362, T363)) → app121_out_aaaa([], T362, T363, .(T362, T363))
U31_aaaa(T348, T349, T352, T353, X657, app121_out_aaaa(T349, T352, T353, X657)) → app121_out_aaaa(.(T348, T349), T352, T353, .(T348, X657))
U30_aa(T325, T231, X452, app121_out_aaaa(T319, T325, T324, X452)) → qs80_out_aa(.(T325, T231), X452)
U24_aa(T237, T231, X452, qs80_out_aa(T235, X450)) → qs80_out_aa(.(T237, T231), X452)
U23_aa(T237, T231, X452, part87_out_aaaa(T237, T231, T235, T236)) → U25_aa(T237, T231, X452, T236, qs80_in_aa(T235, T319))
U25_aa(T237, T231, X452, T236, qs80_out_aa(T235, T319)) → U26_aa(T237, T231, X452, qs80_in_aa(T236, X451))
U26_aa(T237, T231, X452, qs80_out_aa(T236, X451)) → qs80_out_aa(.(T237, T231), X452)
U33_aaagg(T54, X10, T131, T31, T8, qs80_out_aa(T54, X10)) → p52_out_aaagg(T54, X10, T131, T31, T8)
p52_in_aaagg(T54, T217, T131, T31, T8) → U34_aaagg(T54, T217, T131, T31, T8, qs80_in_aa(T54, T217))
U34_aaagg(T54, T217, T131, T31, T8, qs80_out_aa(T54, T217)) → U35_aaagg(T54, T217, T131, T31, T8, app81_in_agag(T131, T31, T217, T8))
app81_in_agag(.(T389, T390), T391, T394, .(T389, T393)) → U32_agag(T389, T390, T391, T394, T393, app81_in_agag(T390, T391, T394, T393))
app81_in_agag([], T404, T405, .(T404, T405)) → app81_out_agag([], T404, T405, .(T404, T405))
U32_agag(T389, T390, T391, T394, T393, app81_out_agag(T390, T391, T394, T393)) → app81_out_agag(.(T389, T390), T391, T394, .(T389, T393))
U35_aaagg(T54, T217, T131, T31, T8, app81_out_agag(T131, T31, T217, T8)) → p52_out_aaagg(T54, T217, T131, T31, T8)
U50_ag(T31, T33, T32, T8, p52_out_aaagg(T54, X10, T131, T31, T8)) → qs1_out_ag(.(T31, .(T33, T32)), T8)
qs1_in_ag(.(T421, .(T422, T423)), T8) → U51_ag(T421, T422, T423, T8, le100_in_aa(T421, T422))
U51_ag(T421, T422, T423, T8, le100_out_aa(T421, T422)) → qs1_out_ag(.(T421, .(T422, T423)), T8)
qs1_in_ag(.(T426, .(T428, T427)), T8) → U52_ag(T426, T428, T427, T8, le100_in_aa(T426, T428))
U52_ag(T426, T428, T427, T8, le100_out_aa(T426, T428)) → U53_ag(T426, T428, T427, T8, part20_in_gaaa(T426, T427, X740, X741))
U53_ag(T426, T428, T427, T8, part20_out_gaaa(T426, T427, X740, X741)) → qs1_out_ag(.(T426, .(T428, T427)), T8)
qs1_in_ag(.(T426, .(T436, T427)), T8) → U54_ag(T426, T436, T427, T8, le100_in_aa(T426, T436))
U54_ag(T426, T436, T427, T8, le100_out_aa(T426, T436)) → U55_ag(T426, T436, T427, T8, part20_in_gaaa(T426, T427, T434, T435))
U55_ag(T426, T436, T427, T8, part20_out_gaaa(T426, T427, T434, T435)) → U56_ag(T426, T436, T427, T8, qs80_in_aa(T434, X9))
U56_ag(T426, T436, T427, T8, qs80_out_aa(T434, X9)) → qs1_out_ag(.(T426, .(T436, T427)), T8)
U55_ag(T426, T436, T427, T8, part20_out_gaaa(T426, T427, T434, T435)) → U57_ag(T426, T436, T427, T8, T435, qs80_in_aa(T434, T442))
U57_ag(T426, T436, T427, T8, T435, qs80_out_aa(T434, T442)) → U58_ag(T426, T436, T427, T8, p52_in_aaagg(.(T436, T435), X10, T442, T426, T8))
U58_ag(T426, T436, T427, T8, p52_out_aaagg(.(T436, T435), X10, T442, T426, T8)) → qs1_out_ag(.(T426, .(T436, T427)), T8)
qs1_in_ag(.(T452, []), T8) → U59_ag(T452, T8, qs155_in_a(X9))
qs155_in_a([]) → qs155_out_a([])
U59_ag(T452, T8, qs155_out_a(X9)) → qs1_out_ag(.(T452, []), T8)
qs1_in_ag(.(T452, []), T8) → U60_ag(T452, T8, qs155_in_a(T455))
U60_ag(T452, T8, qs155_out_a(T455)) → U61_ag(T452, T8, qs155_in_a(X10))
U61_ag(T452, T8, qs155_out_a(X10)) → qs1_out_ag(.(T452, []), T8)
U60_ag(T452, T8, qs155_out_a(T455)) → U62_ag(T452, T8, T455, qs155_in_a(T460))
U62_ag(T452, T8, T455, qs155_out_a(T460)) → U63_ag(T452, T8, app162_in_gagg(T455, T452, T460, T8))
app162_in_gagg(.(T486, T487), T491, T489, .(T486, T490)) → U36_gagg(T486, T487, T491, T489, T490, app162_in_gagg(T487, T491, T489, T490))
app162_in_gagg([], T501, T502, .(T501, T502)) → app162_out_gagg([], T501, T502, .(T501, T502))
U36_gagg(T486, T487, T491, T489, T490, app162_out_gagg(T487, T491, T489, T490)) → app162_out_gagg(.(T486, T487), T491, T489, .(T486, T490))
U63_ag(T452, T8, app162_out_gagg(T455, T452, T460, T8)) → qs1_out_ag(.(T452, []), T8)
qs1_in_ag([], []) → qs1_out_ag([], [])
LE100_IN_AA(s(T302), s(T303)) → LE100_IN_AA(T302, T303)
LE100_IN_AA → LE100_IN_AA
APP70_IN_AGAA(.(T201, T202), T203, T204, .(T201, X391)) → APP70_IN_AGAA(T202, T203, T204, X391)
qs1_in_ag(.(T26, .(T27, T28)), T8) → U44_ag(T26, T27, T28, T8, gt10_in_aa(T26, T27))
gt10_in_aa(s(T46), s(T47)) → U1_aa(T46, T47, gt10_in_aa(T46, T47))
gt10_in_aa(s(0), 0) → gt10_out_aa(s(0), 0)
U1_aa(T46, T47, gt10_out_aa(T46, T47)) → gt10_out_aa(s(T46), s(T47))
U44_ag(T26, T27, T28, T8, gt10_out_aa(T26, T27)) → qs1_out_ag(.(T26, .(T27, T28)), T8)
qs1_in_ag(.(T31, .(T33, T32)), T8) → U45_ag(T31, T33, T32, T8, gt10_in_aa(T31, T33))
U45_ag(T31, T33, T32, T8, gt10_out_aa(T31, T33)) → U46_ag(T31, T33, T32, T8, part20_in_gaaa(T31, T32, X47, X48))
part20_in_gaaa(T70, .(T73, T74), .(T73, X119), X120) → U2_gaaa(T70, T73, T74, X119, X120, gt10_in_ga(T70, T73))
gt10_in_ga(s(T46), s(T47)) → U1_ga(T46, T47, gt10_in_ga(T46, T47))
gt10_in_ga(s(0), 0) → gt10_out_ga(s(0), 0)
U1_ga(T46, T47, gt10_out_ga(T46, T47)) → gt10_out_ga(s(T46), s(T47))
U2_gaaa(T70, T73, T74, X119, X120, gt10_out_ga(T70, T73)) → part20_out_gaaa(T70, .(T73, T74), .(T73, X119), X120)
part20_in_gaaa(T70, .(T73, T77), .(T73, X119), X120) → U3_gaaa(T70, T73, T77, X119, X120, gt10_in_ga(T70, T73))
U3_gaaa(T70, T73, T77, X119, X120, gt10_out_ga(T70, T73)) → U4_gaaa(T70, T73, T77, X119, X120, part20_in_gaaa(T70, T77, X119, X120))
part20_in_gaaa(T95, .(T98, T99), X170, .(T98, X171)) → U5_gaaa(T95, T98, T99, X170, X171, le33_in_ga(T95, T98))
le33_in_ga(s(T113), s(T115)) → U8_ga(T113, T115, le33_in_ga(T113, T115))
le33_in_ga(0, s(T122)) → le33_out_ga(0, s(T122))
le33_in_ga(0, 0) → le33_out_ga(0, 0)
U8_ga(T113, T115, le33_out_ga(T113, T115)) → le33_out_ga(s(T113), s(T115))
U5_gaaa(T95, T98, T99, X170, X171, le33_out_ga(T95, T98)) → part20_out_gaaa(T95, .(T98, T99), X170, .(T98, X171))
part20_in_gaaa(T95, .(T98, T102), X170, .(T98, X171)) → U6_gaaa(T95, T98, T102, X170, X171, le33_in_ga(T95, T98))
U6_gaaa(T95, T98, T102, X170, X171, le33_out_ga(T95, T98)) → U7_gaaa(T95, T98, T102, X170, X171, part20_in_gaaa(T95, T102, X170, X171))
part20_in_gaaa(T128, [], [], []) → part20_out_gaaa(T128, [], [], [])
U7_gaaa(T95, T98, T102, X170, X171, part20_out_gaaa(T95, T102, X170, X171)) → part20_out_gaaa(T95, .(T98, T102), X170, .(T98, X171))
U4_gaaa(T70, T73, T77, X119, X120, part20_out_gaaa(T70, T77, X119, X120)) → part20_out_gaaa(T70, .(T73, T77), .(T73, X119), X120)
U46_ag(T31, T33, T32, T8, part20_out_gaaa(T31, T32, X47, X48)) → qs1_out_ag(.(T31, .(T33, T32)), T8)
U45_ag(T31, T33, T32, T8, gt10_out_aa(T31, T33)) → U47_ag(T31, T33, T32, T8, part20_in_gaaa(T31, T32, T53, T54))
U47_ag(T31, T33, T32, T8, part20_out_gaaa(T31, T32, T53, T54)) → U48_ag(T31, T33, T32, T8, qs51_in_gaa(T33, T53, X9))
qs51_in_gaa(T148, T149, X273) → U37_gaa(T148, T149, X273, p56_in_gaaaaaa(T148, T149, X269, X270, X271, X272, X273))
p56_in_gaaaaaa(T148, T149, X269, X270, X271, X272, X273) → U9_gaaaaaa(T148, T149, X269, X270, X271, X272, X273, part20_in_gaaa(T148, T149, X269, X270))
U9_gaaaaaa(T148, T149, X269, X270, X271, X272, X273, part20_out_gaaa(T148, T149, X269, X270)) → p56_out_gaaaaaa(T148, T149, X269, X270, X271, X272, X273)
p56_in_gaaaaaa(T148, T149, T153, T154, X271, X272, X273) → U10_gaaaaaa(T148, T149, T153, T154, X271, X272, X273, part20_in_gaaa(T148, T149, T153, T154))
U10_gaaaaaa(T148, T149, T153, T154, X271, X272, X273, part20_out_gaaa(T148, T149, T153, T154)) → U11_gaaaaaa(T148, T149, T153, T154, X271, X272, X273, qs59_in_aa(T153, X271))
qs59_in_aa(.(T171, T172), X335) → U19_aa(T171, T172, X335, p56_in_aaaaaaa(T171, T172, X331, X332, X333, X334, X335))
p56_in_aaaaaaa(T148, T149, X269, X270, X271, X272, X273) → U9_aaaaaaa(T148, T149, X269, X270, X271, X272, X273, part20_in_aaaa(T148, T149, X269, X270))
part20_in_aaaa(T70, .(T73, T74), .(T73, X119), X120) → U2_aaaa(T70, T73, T74, X119, X120, gt10_in_aa(T70, T73))
U2_aaaa(T70, T73, T74, X119, X120, gt10_out_aa(T70, T73)) → part20_out_aaaa(T70, .(T73, T74), .(T73, X119), X120)
part20_in_aaaa(T70, .(T73, T77), .(T73, X119), X120) → U3_aaaa(T70, T73, T77, X119, X120, gt10_in_aa(T70, T73))
U3_aaaa(T70, T73, T77, X119, X120, gt10_out_aa(T70, T73)) → U4_aaaa(T70, T73, T77, X119, X120, part20_in_gaaa(T70, T77, X119, X120))
U4_aaaa(T70, T73, T77, X119, X120, part20_out_gaaa(T70, T77, X119, X120)) → part20_out_aaaa(T70, .(T73, T77), .(T73, X119), X120)
part20_in_aaaa(T95, .(T98, T99), X170, .(T98, X171)) → U5_aaaa(T95, T98, T99, X170, X171, le33_in_aa(T95, T98))
le33_in_aa(s(T113), s(T115)) → U8_aa(T113, T115, le33_in_aa(T113, T115))
le33_in_aa(0, s(T122)) → le33_out_aa(0, s(T122))
le33_in_aa(0, 0) → le33_out_aa(0, 0)
U8_aa(T113, T115, le33_out_aa(T113, T115)) → le33_out_aa(s(T113), s(T115))
U5_aaaa(T95, T98, T99, X170, X171, le33_out_aa(T95, T98)) → part20_out_aaaa(T95, .(T98, T99), X170, .(T98, X171))
part20_in_aaaa(T95, .(T98, T102), X170, .(T98, X171)) → U6_aaaa(T95, T98, T102, X170, X171, le33_in_aa(T95, T98))
U6_aaaa(T95, T98, T102, X170, X171, le33_out_aa(T95, T98)) → U7_aaaa(T95, T98, T102, X170, X171, part20_in_gaaa(T95, T102, X170, X171))
U7_aaaa(T95, T98, T102, X170, X171, part20_out_gaaa(T95, T102, X170, X171)) → part20_out_aaaa(T95, .(T98, T102), X170, .(T98, X171))
part20_in_aaaa(T128, [], [], []) → part20_out_aaaa(T128, [], [], [])
U9_aaaaaaa(T148, T149, X269, X270, X271, X272, X273, part20_out_aaaa(T148, T149, X269, X270)) → p56_out_aaaaaaa(T148, T149, X269, X270, X271, X272, X273)
p56_in_aaaaaaa(T148, T149, T153, T154, X271, X272, X273) → U10_aaaaaaa(T148, T149, T153, T154, X271, X272, X273, part20_in_aaaa(T148, T149, T153, T154))
U10_aaaaaaa(T148, T149, T153, T154, X271, X272, X273, part20_out_aaaa(T148, T149, T153, T154)) → U11_aaaaaaa(T148, T149, T153, T154, X271, X272, X273, qs59_in_aa(T153, X271))
qs59_in_aa([], []) → qs59_out_aa([], [])
U11_aaaaaaa(T148, T149, T153, T154, X271, X272, X273, qs59_out_aa(T153, X271)) → p56_out_aaaaaaa(T148, T149, T153, T154, X271, X272, X273)
p56_in_aaaaaaa(T148, T149, T153, T154, T160, X272, X273) → U12_aaaaaaa(T148, T149, T153, T154, T160, X272, X273, part20_in_aaaa(T148, T149, T153, T154))
U12_aaaaaaa(T148, T149, T153, T154, T160, X272, X273, part20_out_aaaa(T148, T149, T153, T154)) → U13_aaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_in_aa(T153, T160))
U13_aaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_out_aa(T153, T160)) → U14_aaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_in_aa(T154, X272))
U14_aaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_out_aa(T154, X272)) → p56_out_aaaaaaa(T148, T149, T153, T154, T160, X272, X273)
p56_in_aaaaaaa(T148, T149, T153, T154, T160, T178, X273) → U15_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, part20_in_aaaa(T148, T149, T153, T154))
U15_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, part20_out_aaaa(T148, T149, T153, T154)) → U16_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_in_aa(T153, T160))
U16_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_out_aa(T153, T160)) → U17_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_in_aa(T154, T178))
U17_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_out_aa(T154, T178)) → U18_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, app70_in_aaaa(T160, T148, T178, X273))
app70_in_aaaa(.(T201, T202), T203, T204, .(T201, X391)) → U20_aaaa(T201, T202, T203, T204, X391, app70_in_aaaa(T202, T203, T204, X391))
app70_in_aaaa([], T213, T214, .(T213, T214)) → app70_out_aaaa([], T213, T214, .(T213, T214))
U20_aaaa(T201, T202, T203, T204, X391, app70_out_aaaa(T202, T203, T204, X391)) → app70_out_aaaa(.(T201, T202), T203, T204, .(T201, X391))
U18_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, app70_out_aaaa(T160, T148, T178, X273)) → p56_out_aaaaaaa(T148, T149, T153, T154, T160, T178, X273)
U19_aa(T171, T172, X335, p56_out_aaaaaaa(T171, T172, X331, X332, X333, X334, X335)) → qs59_out_aa(.(T171, T172), X335)
U11_gaaaaaa(T148, T149, T153, T154, X271, X272, X273, qs59_out_aa(T153, X271)) → p56_out_gaaaaaa(T148, T149, T153, T154, X271, X272, X273)
p56_in_gaaaaaa(T148, T149, T153, T154, T160, X272, X273) → U12_gaaaaaa(T148, T149, T153, T154, T160, X272, X273, part20_in_gaaa(T148, T149, T153, T154))
U12_gaaaaaa(T148, T149, T153, T154, T160, X272, X273, part20_out_gaaa(T148, T149, T153, T154)) → U13_gaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_in_aa(T153, T160))
U13_gaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_out_aa(T153, T160)) → U14_gaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_in_aa(T154, X272))
U14_gaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_out_aa(T154, X272)) → p56_out_gaaaaaa(T148, T149, T153, T154, T160, X272, X273)
p56_in_gaaaaaa(T148, T149, T153, T154, T160, T178, X273) → U15_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, part20_in_gaaa(T148, T149, T153, T154))
U15_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, part20_out_gaaa(T148, T149, T153, T154)) → U16_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_in_aa(T153, T160))
U16_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_out_aa(T153, T160)) → U17_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_in_aa(T154, T178))
U17_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_out_aa(T154, T178)) → U18_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, app70_in_agaa(T160, T148, T178, X273))
app70_in_agaa(.(T201, T202), T203, T204, .(T201, X391)) → U20_agaa(T201, T202, T203, T204, X391, app70_in_agaa(T202, T203, T204, X391))
app70_in_agaa([], T213, T214, .(T213, T214)) → app70_out_agaa([], T213, T214, .(T213, T214))
U20_agaa(T201, T202, T203, T204, X391, app70_out_agaa(T202, T203, T204, X391)) → app70_out_agaa(.(T201, T202), T203, T204, .(T201, X391))
U18_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, app70_out_agaa(T160, T148, T178, X273)) → p56_out_gaaaaaa(T148, T149, T153, T154, T160, T178, X273)
U37_gaa(T148, T149, X273, p56_out_gaaaaaa(T148, T149, X269, X270, X271, X272, X273)) → qs51_out_gaa(T148, T149, X273)
U48_ag(T31, T33, T32, T8, qs51_out_gaa(T33, T53, X9)) → qs1_out_ag(.(T31, .(T33, T32)), T8)
U47_ag(T31, T33, T32, T8, part20_out_gaaa(T31, T32, T53, T54)) → U49_ag(T31, T33, T32, T8, T54, qs51_in_gaa(T33, T53, T131))
U49_ag(T31, T33, T32, T8, T54, qs51_out_gaa(T33, T53, T131)) → U50_ag(T31, T33, T32, T8, p52_in_aaagg(T54, X10, T131, T31, T8))
p52_in_aaagg(T54, X10, T131, T31, T8) → U33_aaagg(T54, X10, T131, T31, T8, qs80_in_aa(T54, X10))
qs80_in_aa(.(T230, T231), X452) → U22_aa(T230, T231, X452, part87_in_aaaa(T230, T231, X448, X449))
part87_in_aaaa(T256, .(T257, T258), .(T257, X503), X504) → U38_aaaa(T256, T257, T258, X503, X504, gt10_in_aa(T256, T257))
U38_aaaa(T256, T257, T258, X503, X504, gt10_out_aa(T256, T257)) → part87_out_aaaa(T256, .(T257, T258), .(T257, X503), X504)
part87_in_aaaa(T261, .(T257, T262), .(T257, X503), X504) → U39_aaaa(T261, T257, T262, X503, X504, gt10_in_aa(T261, T257))
U39_aaaa(T261, T257, T262, X503, X504, gt10_out_aa(T261, T257)) → U40_aaaa(T261, T257, T262, X503, X504, part20_in_gaaa(T261, T262, X503, X504))
U40_aaaa(T261, T257, T262, X503, X504, part20_out_gaaa(T261, T262, X503, X504)) → part87_out_aaaa(T261, .(T257, T262), .(T257, X503), X504)
part87_in_aaaa(T283, .(T284, T285), X554, .(T284, X555)) → U41_aaaa(T283, T284, T285, X554, X555, le100_in_aa(T283, T284))
le100_in_aa(s(T302), s(T303)) → U21_aa(T302, T303, le100_in_aa(T302, T303))
le100_in_aa(0, s(T310)) → le100_out_aa(0, s(T310))
le100_in_aa(0, 0) → le100_out_aa(0, 0)
U21_aa(T302, T303, le100_out_aa(T302, T303)) → le100_out_aa(s(T302), s(T303))
U41_aaaa(T283, T284, T285, X554, X555, le100_out_aa(T283, T284)) → part87_out_aaaa(T283, .(T284, T285), X554, .(T284, X555))
part87_in_aaaa(T288, .(T284, T289), X554, .(T284, X555)) → U42_aaaa(T288, T284, T289, X554, X555, le100_in_aa(T288, T284))
U42_aaaa(T288, T284, T289, X554, X555, le100_out_aa(T288, T284)) → U43_aaaa(T288, T284, T289, X554, X555, part20_in_gaaa(T288, T289, X554, X555))
U43_aaaa(T288, T284, T289, X554, X555, part20_out_gaaa(T288, T289, X554, X555)) → part87_out_aaaa(T288, .(T284, T289), X554, .(T284, X555))
part87_in_aaaa(T316, [], [], []) → part87_out_aaaa(T316, [], [], [])
U22_aa(T230, T231, X452, part87_out_aaaa(T230, T231, X448, X449)) → qs80_out_aa(.(T230, T231), X452)
qs80_in_aa(.(T237, T231), X452) → U23_aa(T237, T231, X452, part87_in_aaaa(T237, T231, T235, T236))
U23_aa(T237, T231, X452, part87_out_aaaa(T237, T231, T235, T236)) → U24_aa(T237, T231, X452, qs80_in_aa(T235, X450))
qs80_in_aa(.(T325, T231), X452) → U27_aa(T325, T231, X452, part87_in_aaaa(T325, T231, T235, T236))
U27_aa(T325, T231, X452, part87_out_aaaa(T325, T231, T235, T236)) → U28_aa(T325, T231, X452, T236, qs80_in_aa(T235, T319))
qs80_in_aa([], []) → qs80_out_aa([], [])
U28_aa(T325, T231, X452, T236, qs80_out_aa(T235, T319)) → U29_aa(T325, T231, X452, T319, qs80_in_aa(T236, T324))
U29_aa(T325, T231, X452, T319, qs80_out_aa(T236, T324)) → U30_aa(T325, T231, X452, app121_in_aaaa(T319, T325, T324, X452))
app121_in_aaaa(.(T348, T349), T352, T353, .(T348, X657)) → U31_aaaa(T348, T349, T352, T353, X657, app121_in_aaaa(T349, T352, T353, X657))
app121_in_aaaa([], T362, T363, .(T362, T363)) → app121_out_aaaa([], T362, T363, .(T362, T363))
U31_aaaa(T348, T349, T352, T353, X657, app121_out_aaaa(T349, T352, T353, X657)) → app121_out_aaaa(.(T348, T349), T352, T353, .(T348, X657))
U30_aa(T325, T231, X452, app121_out_aaaa(T319, T325, T324, X452)) → qs80_out_aa(.(T325, T231), X452)
U24_aa(T237, T231, X452, qs80_out_aa(T235, X450)) → qs80_out_aa(.(T237, T231), X452)
U23_aa(T237, T231, X452, part87_out_aaaa(T237, T231, T235, T236)) → U25_aa(T237, T231, X452, T236, qs80_in_aa(T235, T319))
U25_aa(T237, T231, X452, T236, qs80_out_aa(T235, T319)) → U26_aa(T237, T231, X452, qs80_in_aa(T236, X451))
U26_aa(T237, T231, X452, qs80_out_aa(T236, X451)) → qs80_out_aa(.(T237, T231), X452)
U33_aaagg(T54, X10, T131, T31, T8, qs80_out_aa(T54, X10)) → p52_out_aaagg(T54, X10, T131, T31, T8)
p52_in_aaagg(T54, T217, T131, T31, T8) → U34_aaagg(T54, T217, T131, T31, T8, qs80_in_aa(T54, T217))
U34_aaagg(T54, T217, T131, T31, T8, qs80_out_aa(T54, T217)) → U35_aaagg(T54, T217, T131, T31, T8, app81_in_agag(T131, T31, T217, T8))
app81_in_agag(.(T389, T390), T391, T394, .(T389, T393)) → U32_agag(T389, T390, T391, T394, T393, app81_in_agag(T390, T391, T394, T393))
app81_in_agag([], T404, T405, .(T404, T405)) → app81_out_agag([], T404, T405, .(T404, T405))
U32_agag(T389, T390, T391, T394, T393, app81_out_agag(T390, T391, T394, T393)) → app81_out_agag(.(T389, T390), T391, T394, .(T389, T393))
U35_aaagg(T54, T217, T131, T31, T8, app81_out_agag(T131, T31, T217, T8)) → p52_out_aaagg(T54, T217, T131, T31, T8)
U50_ag(T31, T33, T32, T8, p52_out_aaagg(T54, X10, T131, T31, T8)) → qs1_out_ag(.(T31, .(T33, T32)), T8)
qs1_in_ag(.(T421, .(T422, T423)), T8) → U51_ag(T421, T422, T423, T8, le100_in_aa(T421, T422))
U51_ag(T421, T422, T423, T8, le100_out_aa(T421, T422)) → qs1_out_ag(.(T421, .(T422, T423)), T8)
qs1_in_ag(.(T426, .(T428, T427)), T8) → U52_ag(T426, T428, T427, T8, le100_in_aa(T426, T428))
U52_ag(T426, T428, T427, T8, le100_out_aa(T426, T428)) → U53_ag(T426, T428, T427, T8, part20_in_gaaa(T426, T427, X740, X741))
U53_ag(T426, T428, T427, T8, part20_out_gaaa(T426, T427, X740, X741)) → qs1_out_ag(.(T426, .(T428, T427)), T8)
qs1_in_ag(.(T426, .(T436, T427)), T8) → U54_ag(T426, T436, T427, T8, le100_in_aa(T426, T436))
U54_ag(T426, T436, T427, T8, le100_out_aa(T426, T436)) → U55_ag(T426, T436, T427, T8, part20_in_gaaa(T426, T427, T434, T435))
U55_ag(T426, T436, T427, T8, part20_out_gaaa(T426, T427, T434, T435)) → U56_ag(T426, T436, T427, T8, qs80_in_aa(T434, X9))
U56_ag(T426, T436, T427, T8, qs80_out_aa(T434, X9)) → qs1_out_ag(.(T426, .(T436, T427)), T8)
U55_ag(T426, T436, T427, T8, part20_out_gaaa(T426, T427, T434, T435)) → U57_ag(T426, T436, T427, T8, T435, qs80_in_aa(T434, T442))
U57_ag(T426, T436, T427, T8, T435, qs80_out_aa(T434, T442)) → U58_ag(T426, T436, T427, T8, p52_in_aaagg(.(T436, T435), X10, T442, T426, T8))
U58_ag(T426, T436, T427, T8, p52_out_aaagg(.(T436, T435), X10, T442, T426, T8)) → qs1_out_ag(.(T426, .(T436, T427)), T8)
qs1_in_ag(.(T452, []), T8) → U59_ag(T452, T8, qs155_in_a(X9))
qs155_in_a([]) → qs155_out_a([])
U59_ag(T452, T8, qs155_out_a(X9)) → qs1_out_ag(.(T452, []), T8)
qs1_in_ag(.(T452, []), T8) → U60_ag(T452, T8, qs155_in_a(T455))
U60_ag(T452, T8, qs155_out_a(T455)) → U61_ag(T452, T8, qs155_in_a(X10))
U61_ag(T452, T8, qs155_out_a(X10)) → qs1_out_ag(.(T452, []), T8)
U60_ag(T452, T8, qs155_out_a(T455)) → U62_ag(T452, T8, T455, qs155_in_a(T460))
U62_ag(T452, T8, T455, qs155_out_a(T460)) → U63_ag(T452, T8, app162_in_gagg(T455, T452, T460, T8))
app162_in_gagg(.(T486, T487), T491, T489, .(T486, T490)) → U36_gagg(T486, T487, T491, T489, T490, app162_in_gagg(T487, T491, T489, T490))
app162_in_gagg([], T501, T502, .(T501, T502)) → app162_out_gagg([], T501, T502, .(T501, T502))
U36_gagg(T486, T487, T491, T489, T490, app162_out_gagg(T487, T491, T489, T490)) → app162_out_gagg(.(T486, T487), T491, T489, .(T486, T490))
U63_ag(T452, T8, app162_out_gagg(T455, T452, T460, T8)) → qs1_out_ag(.(T452, []), T8)
qs1_in_ag([], []) → qs1_out_ag([], [])
APP70_IN_AGAA(.(T201, T202), T203, T204, .(T201, X391)) → APP70_IN_AGAA(T202, T203, T204, X391)
APP70_IN_AGAA(T203) → APP70_IN_AGAA(T203)
APP70_IN_AAAA(.(T201, T202), T203, T204, .(T201, X391)) → APP70_IN_AAAA(T202, T203, T204, X391)
qs1_in_ag(.(T26, .(T27, T28)), T8) → U44_ag(T26, T27, T28, T8, gt10_in_aa(T26, T27))
gt10_in_aa(s(T46), s(T47)) → U1_aa(T46, T47, gt10_in_aa(T46, T47))
gt10_in_aa(s(0), 0) → gt10_out_aa(s(0), 0)
U1_aa(T46, T47, gt10_out_aa(T46, T47)) → gt10_out_aa(s(T46), s(T47))
U44_ag(T26, T27, T28, T8, gt10_out_aa(T26, T27)) → qs1_out_ag(.(T26, .(T27, T28)), T8)
qs1_in_ag(.(T31, .(T33, T32)), T8) → U45_ag(T31, T33, T32, T8, gt10_in_aa(T31, T33))
U45_ag(T31, T33, T32, T8, gt10_out_aa(T31, T33)) → U46_ag(T31, T33, T32, T8, part20_in_gaaa(T31, T32, X47, X48))
part20_in_gaaa(T70, .(T73, T74), .(T73, X119), X120) → U2_gaaa(T70, T73, T74, X119, X120, gt10_in_ga(T70, T73))
gt10_in_ga(s(T46), s(T47)) → U1_ga(T46, T47, gt10_in_ga(T46, T47))
gt10_in_ga(s(0), 0) → gt10_out_ga(s(0), 0)
U1_ga(T46, T47, gt10_out_ga(T46, T47)) → gt10_out_ga(s(T46), s(T47))
U2_gaaa(T70, T73, T74, X119, X120, gt10_out_ga(T70, T73)) → part20_out_gaaa(T70, .(T73, T74), .(T73, X119), X120)
part20_in_gaaa(T70, .(T73, T77), .(T73, X119), X120) → U3_gaaa(T70, T73, T77, X119, X120, gt10_in_ga(T70, T73))
U3_gaaa(T70, T73, T77, X119, X120, gt10_out_ga(T70, T73)) → U4_gaaa(T70, T73, T77, X119, X120, part20_in_gaaa(T70, T77, X119, X120))
part20_in_gaaa(T95, .(T98, T99), X170, .(T98, X171)) → U5_gaaa(T95, T98, T99, X170, X171, le33_in_ga(T95, T98))
le33_in_ga(s(T113), s(T115)) → U8_ga(T113, T115, le33_in_ga(T113, T115))
le33_in_ga(0, s(T122)) → le33_out_ga(0, s(T122))
le33_in_ga(0, 0) → le33_out_ga(0, 0)
U8_ga(T113, T115, le33_out_ga(T113, T115)) → le33_out_ga(s(T113), s(T115))
U5_gaaa(T95, T98, T99, X170, X171, le33_out_ga(T95, T98)) → part20_out_gaaa(T95, .(T98, T99), X170, .(T98, X171))
part20_in_gaaa(T95, .(T98, T102), X170, .(T98, X171)) → U6_gaaa(T95, T98, T102, X170, X171, le33_in_ga(T95, T98))
U6_gaaa(T95, T98, T102, X170, X171, le33_out_ga(T95, T98)) → U7_gaaa(T95, T98, T102, X170, X171, part20_in_gaaa(T95, T102, X170, X171))
part20_in_gaaa(T128, [], [], []) → part20_out_gaaa(T128, [], [], [])
U7_gaaa(T95, T98, T102, X170, X171, part20_out_gaaa(T95, T102, X170, X171)) → part20_out_gaaa(T95, .(T98, T102), X170, .(T98, X171))
U4_gaaa(T70, T73, T77, X119, X120, part20_out_gaaa(T70, T77, X119, X120)) → part20_out_gaaa(T70, .(T73, T77), .(T73, X119), X120)
U46_ag(T31, T33, T32, T8, part20_out_gaaa(T31, T32, X47, X48)) → qs1_out_ag(.(T31, .(T33, T32)), T8)
U45_ag(T31, T33, T32, T8, gt10_out_aa(T31, T33)) → U47_ag(T31, T33, T32, T8, part20_in_gaaa(T31, T32, T53, T54))
U47_ag(T31, T33, T32, T8, part20_out_gaaa(T31, T32, T53, T54)) → U48_ag(T31, T33, T32, T8, qs51_in_gaa(T33, T53, X9))
qs51_in_gaa(T148, T149, X273) → U37_gaa(T148, T149, X273, p56_in_gaaaaaa(T148, T149, X269, X270, X271, X272, X273))
p56_in_gaaaaaa(T148, T149, X269, X270, X271, X272, X273) → U9_gaaaaaa(T148, T149, X269, X270, X271, X272, X273, part20_in_gaaa(T148, T149, X269, X270))
U9_gaaaaaa(T148, T149, X269, X270, X271, X272, X273, part20_out_gaaa(T148, T149, X269, X270)) → p56_out_gaaaaaa(T148, T149, X269, X270, X271, X272, X273)
p56_in_gaaaaaa(T148, T149, T153, T154, X271, X272, X273) → U10_gaaaaaa(T148, T149, T153, T154, X271, X272, X273, part20_in_gaaa(T148, T149, T153, T154))
U10_gaaaaaa(T148, T149, T153, T154, X271, X272, X273, part20_out_gaaa(T148, T149, T153, T154)) → U11_gaaaaaa(T148, T149, T153, T154, X271, X272, X273, qs59_in_aa(T153, X271))
qs59_in_aa(.(T171, T172), X335) → U19_aa(T171, T172, X335, p56_in_aaaaaaa(T171, T172, X331, X332, X333, X334, X335))
p56_in_aaaaaaa(T148, T149, X269, X270, X271, X272, X273) → U9_aaaaaaa(T148, T149, X269, X270, X271, X272, X273, part20_in_aaaa(T148, T149, X269, X270))
part20_in_aaaa(T70, .(T73, T74), .(T73, X119), X120) → U2_aaaa(T70, T73, T74, X119, X120, gt10_in_aa(T70, T73))
U2_aaaa(T70, T73, T74, X119, X120, gt10_out_aa(T70, T73)) → part20_out_aaaa(T70, .(T73, T74), .(T73, X119), X120)
part20_in_aaaa(T70, .(T73, T77), .(T73, X119), X120) → U3_aaaa(T70, T73, T77, X119, X120, gt10_in_aa(T70, T73))
U3_aaaa(T70, T73, T77, X119, X120, gt10_out_aa(T70, T73)) → U4_aaaa(T70, T73, T77, X119, X120, part20_in_gaaa(T70, T77, X119, X120))
U4_aaaa(T70, T73, T77, X119, X120, part20_out_gaaa(T70, T77, X119, X120)) → part20_out_aaaa(T70, .(T73, T77), .(T73, X119), X120)
part20_in_aaaa(T95, .(T98, T99), X170, .(T98, X171)) → U5_aaaa(T95, T98, T99, X170, X171, le33_in_aa(T95, T98))
le33_in_aa(s(T113), s(T115)) → U8_aa(T113, T115, le33_in_aa(T113, T115))
le33_in_aa(0, s(T122)) → le33_out_aa(0, s(T122))
le33_in_aa(0, 0) → le33_out_aa(0, 0)
U8_aa(T113, T115, le33_out_aa(T113, T115)) → le33_out_aa(s(T113), s(T115))
U5_aaaa(T95, T98, T99, X170, X171, le33_out_aa(T95, T98)) → part20_out_aaaa(T95, .(T98, T99), X170, .(T98, X171))
part20_in_aaaa(T95, .(T98, T102), X170, .(T98, X171)) → U6_aaaa(T95, T98, T102, X170, X171, le33_in_aa(T95, T98))
U6_aaaa(T95, T98, T102, X170, X171, le33_out_aa(T95, T98)) → U7_aaaa(T95, T98, T102, X170, X171, part20_in_gaaa(T95, T102, X170, X171))
U7_aaaa(T95, T98, T102, X170, X171, part20_out_gaaa(T95, T102, X170, X171)) → part20_out_aaaa(T95, .(T98, T102), X170, .(T98, X171))
part20_in_aaaa(T128, [], [], []) → part20_out_aaaa(T128, [], [], [])
U9_aaaaaaa(T148, T149, X269, X270, X271, X272, X273, part20_out_aaaa(T148, T149, X269, X270)) → p56_out_aaaaaaa(T148, T149, X269, X270, X271, X272, X273)
p56_in_aaaaaaa(T148, T149, T153, T154, X271, X272, X273) → U10_aaaaaaa(T148, T149, T153, T154, X271, X272, X273, part20_in_aaaa(T148, T149, T153, T154))
U10_aaaaaaa(T148, T149, T153, T154, X271, X272, X273, part20_out_aaaa(T148, T149, T153, T154)) → U11_aaaaaaa(T148, T149, T153, T154, X271, X272, X273, qs59_in_aa(T153, X271))
qs59_in_aa([], []) → qs59_out_aa([], [])
U11_aaaaaaa(T148, T149, T153, T154, X271, X272, X273, qs59_out_aa(T153, X271)) → p56_out_aaaaaaa(T148, T149, T153, T154, X271, X272, X273)
p56_in_aaaaaaa(T148, T149, T153, T154, T160, X272, X273) → U12_aaaaaaa(T148, T149, T153, T154, T160, X272, X273, part20_in_aaaa(T148, T149, T153, T154))
U12_aaaaaaa(T148, T149, T153, T154, T160, X272, X273, part20_out_aaaa(T148, T149, T153, T154)) → U13_aaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_in_aa(T153, T160))
U13_aaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_out_aa(T153, T160)) → U14_aaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_in_aa(T154, X272))
U14_aaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_out_aa(T154, X272)) → p56_out_aaaaaaa(T148, T149, T153, T154, T160, X272, X273)
p56_in_aaaaaaa(T148, T149, T153, T154, T160, T178, X273) → U15_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, part20_in_aaaa(T148, T149, T153, T154))
U15_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, part20_out_aaaa(T148, T149, T153, T154)) → U16_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_in_aa(T153, T160))
U16_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_out_aa(T153, T160)) → U17_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_in_aa(T154, T178))
U17_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_out_aa(T154, T178)) → U18_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, app70_in_aaaa(T160, T148, T178, X273))
app70_in_aaaa(.(T201, T202), T203, T204, .(T201, X391)) → U20_aaaa(T201, T202, T203, T204, X391, app70_in_aaaa(T202, T203, T204, X391))
app70_in_aaaa([], T213, T214, .(T213, T214)) → app70_out_aaaa([], T213, T214, .(T213, T214))
U20_aaaa(T201, T202, T203, T204, X391, app70_out_aaaa(T202, T203, T204, X391)) → app70_out_aaaa(.(T201, T202), T203, T204, .(T201, X391))
U18_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, app70_out_aaaa(T160, T148, T178, X273)) → p56_out_aaaaaaa(T148, T149, T153, T154, T160, T178, X273)
U19_aa(T171, T172, X335, p56_out_aaaaaaa(T171, T172, X331, X332, X333, X334, X335)) → qs59_out_aa(.(T171, T172), X335)
U11_gaaaaaa(T148, T149, T153, T154, X271, X272, X273, qs59_out_aa(T153, X271)) → p56_out_gaaaaaa(T148, T149, T153, T154, X271, X272, X273)
p56_in_gaaaaaa(T148, T149, T153, T154, T160, X272, X273) → U12_gaaaaaa(T148, T149, T153, T154, T160, X272, X273, part20_in_gaaa(T148, T149, T153, T154))
U12_gaaaaaa(T148, T149, T153, T154, T160, X272, X273, part20_out_gaaa(T148, T149, T153, T154)) → U13_gaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_in_aa(T153, T160))
U13_gaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_out_aa(T153, T160)) → U14_gaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_in_aa(T154, X272))
U14_gaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_out_aa(T154, X272)) → p56_out_gaaaaaa(T148, T149, T153, T154, T160, X272, X273)
p56_in_gaaaaaa(T148, T149, T153, T154, T160, T178, X273) → U15_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, part20_in_gaaa(T148, T149, T153, T154))
U15_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, part20_out_gaaa(T148, T149, T153, T154)) → U16_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_in_aa(T153, T160))
U16_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_out_aa(T153, T160)) → U17_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_in_aa(T154, T178))
U17_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_out_aa(T154, T178)) → U18_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, app70_in_agaa(T160, T148, T178, X273))
app70_in_agaa(.(T201, T202), T203, T204, .(T201, X391)) → U20_agaa(T201, T202, T203, T204, X391, app70_in_agaa(T202, T203, T204, X391))
app70_in_agaa([], T213, T214, .(T213, T214)) → app70_out_agaa([], T213, T214, .(T213, T214))
U20_agaa(T201, T202, T203, T204, X391, app70_out_agaa(T202, T203, T204, X391)) → app70_out_agaa(.(T201, T202), T203, T204, .(T201, X391))
U18_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, app70_out_agaa(T160, T148, T178, X273)) → p56_out_gaaaaaa(T148, T149, T153, T154, T160, T178, X273)
U37_gaa(T148, T149, X273, p56_out_gaaaaaa(T148, T149, X269, X270, X271, X272, X273)) → qs51_out_gaa(T148, T149, X273)
U48_ag(T31, T33, T32, T8, qs51_out_gaa(T33, T53, X9)) → qs1_out_ag(.(T31, .(T33, T32)), T8)
U47_ag(T31, T33, T32, T8, part20_out_gaaa(T31, T32, T53, T54)) → U49_ag(T31, T33, T32, T8, T54, qs51_in_gaa(T33, T53, T131))
U49_ag(T31, T33, T32, T8, T54, qs51_out_gaa(T33, T53, T131)) → U50_ag(T31, T33, T32, T8, p52_in_aaagg(T54, X10, T131, T31, T8))
p52_in_aaagg(T54, X10, T131, T31, T8) → U33_aaagg(T54, X10, T131, T31, T8, qs80_in_aa(T54, X10))
qs80_in_aa(.(T230, T231), X452) → U22_aa(T230, T231, X452, part87_in_aaaa(T230, T231, X448, X449))
part87_in_aaaa(T256, .(T257, T258), .(T257, X503), X504) → U38_aaaa(T256, T257, T258, X503, X504, gt10_in_aa(T256, T257))
U38_aaaa(T256, T257, T258, X503, X504, gt10_out_aa(T256, T257)) → part87_out_aaaa(T256, .(T257, T258), .(T257, X503), X504)
part87_in_aaaa(T261, .(T257, T262), .(T257, X503), X504) → U39_aaaa(T261, T257, T262, X503, X504, gt10_in_aa(T261, T257))
U39_aaaa(T261, T257, T262, X503, X504, gt10_out_aa(T261, T257)) → U40_aaaa(T261, T257, T262, X503, X504, part20_in_gaaa(T261, T262, X503, X504))
U40_aaaa(T261, T257, T262, X503, X504, part20_out_gaaa(T261, T262, X503, X504)) → part87_out_aaaa(T261, .(T257, T262), .(T257, X503), X504)
part87_in_aaaa(T283, .(T284, T285), X554, .(T284, X555)) → U41_aaaa(T283, T284, T285, X554, X555, le100_in_aa(T283, T284))
le100_in_aa(s(T302), s(T303)) → U21_aa(T302, T303, le100_in_aa(T302, T303))
le100_in_aa(0, s(T310)) → le100_out_aa(0, s(T310))
le100_in_aa(0, 0) → le100_out_aa(0, 0)
U21_aa(T302, T303, le100_out_aa(T302, T303)) → le100_out_aa(s(T302), s(T303))
U41_aaaa(T283, T284, T285, X554, X555, le100_out_aa(T283, T284)) → part87_out_aaaa(T283, .(T284, T285), X554, .(T284, X555))
part87_in_aaaa(T288, .(T284, T289), X554, .(T284, X555)) → U42_aaaa(T288, T284, T289, X554, X555, le100_in_aa(T288, T284))
U42_aaaa(T288, T284, T289, X554, X555, le100_out_aa(T288, T284)) → U43_aaaa(T288, T284, T289, X554, X555, part20_in_gaaa(T288, T289, X554, X555))
U43_aaaa(T288, T284, T289, X554, X555, part20_out_gaaa(T288, T289, X554, X555)) → part87_out_aaaa(T288, .(T284, T289), X554, .(T284, X555))
part87_in_aaaa(T316, [], [], []) → part87_out_aaaa(T316, [], [], [])
U22_aa(T230, T231, X452, part87_out_aaaa(T230, T231, X448, X449)) → qs80_out_aa(.(T230, T231), X452)
qs80_in_aa(.(T237, T231), X452) → U23_aa(T237, T231, X452, part87_in_aaaa(T237, T231, T235, T236))
U23_aa(T237, T231, X452, part87_out_aaaa(T237, T231, T235, T236)) → U24_aa(T237, T231, X452, qs80_in_aa(T235, X450))
qs80_in_aa(.(T325, T231), X452) → U27_aa(T325, T231, X452, part87_in_aaaa(T325, T231, T235, T236))
U27_aa(T325, T231, X452, part87_out_aaaa(T325, T231, T235, T236)) → U28_aa(T325, T231, X452, T236, qs80_in_aa(T235, T319))
qs80_in_aa([], []) → qs80_out_aa([], [])
U28_aa(T325, T231, X452, T236, qs80_out_aa(T235, T319)) → U29_aa(T325, T231, X452, T319, qs80_in_aa(T236, T324))
U29_aa(T325, T231, X452, T319, qs80_out_aa(T236, T324)) → U30_aa(T325, T231, X452, app121_in_aaaa(T319, T325, T324, X452))
app121_in_aaaa(.(T348, T349), T352, T353, .(T348, X657)) → U31_aaaa(T348, T349, T352, T353, X657, app121_in_aaaa(T349, T352, T353, X657))
app121_in_aaaa([], T362, T363, .(T362, T363)) → app121_out_aaaa([], T362, T363, .(T362, T363))
U31_aaaa(T348, T349, T352, T353, X657, app121_out_aaaa(T349, T352, T353, X657)) → app121_out_aaaa(.(T348, T349), T352, T353, .(T348, X657))
U30_aa(T325, T231, X452, app121_out_aaaa(T319, T325, T324, X452)) → qs80_out_aa(.(T325, T231), X452)
U24_aa(T237, T231, X452, qs80_out_aa(T235, X450)) → qs80_out_aa(.(T237, T231), X452)
U23_aa(T237, T231, X452, part87_out_aaaa(T237, T231, T235, T236)) → U25_aa(T237, T231, X452, T236, qs80_in_aa(T235, T319))
U25_aa(T237, T231, X452, T236, qs80_out_aa(T235, T319)) → U26_aa(T237, T231, X452, qs80_in_aa(T236, X451))
U26_aa(T237, T231, X452, qs80_out_aa(T236, X451)) → qs80_out_aa(.(T237, T231), X452)
U33_aaagg(T54, X10, T131, T31, T8, qs80_out_aa(T54, X10)) → p52_out_aaagg(T54, X10, T131, T31, T8)
p52_in_aaagg(T54, T217, T131, T31, T8) → U34_aaagg(T54, T217, T131, T31, T8, qs80_in_aa(T54, T217))
U34_aaagg(T54, T217, T131, T31, T8, qs80_out_aa(T54, T217)) → U35_aaagg(T54, T217, T131, T31, T8, app81_in_agag(T131, T31, T217, T8))
app81_in_agag(.(T389, T390), T391, T394, .(T389, T393)) → U32_agag(T389, T390, T391, T394, T393, app81_in_agag(T390, T391, T394, T393))
app81_in_agag([], T404, T405, .(T404, T405)) → app81_out_agag([], T404, T405, .(T404, T405))
U32_agag(T389, T390, T391, T394, T393, app81_out_agag(T390, T391, T394, T393)) → app81_out_agag(.(T389, T390), T391, T394, .(T389, T393))
U35_aaagg(T54, T217, T131, T31, T8, app81_out_agag(T131, T31, T217, T8)) → p52_out_aaagg(T54, T217, T131, T31, T8)
U50_ag(T31, T33, T32, T8, p52_out_aaagg(T54, X10, T131, T31, T8)) → qs1_out_ag(.(T31, .(T33, T32)), T8)
qs1_in_ag(.(T421, .(T422, T423)), T8) → U51_ag(T421, T422, T423, T8, le100_in_aa(T421, T422))
U51_ag(T421, T422, T423, T8, le100_out_aa(T421, T422)) → qs1_out_ag(.(T421, .(T422, T423)), T8)
qs1_in_ag(.(T426, .(T428, T427)), T8) → U52_ag(T426, T428, T427, T8, le100_in_aa(T426, T428))
U52_ag(T426, T428, T427, T8, le100_out_aa(T426, T428)) → U53_ag(T426, T428, T427, T8, part20_in_gaaa(T426, T427, X740, X741))
U53_ag(T426, T428, T427, T8, part20_out_gaaa(T426, T427, X740, X741)) → qs1_out_ag(.(T426, .(T428, T427)), T8)
qs1_in_ag(.(T426, .(T436, T427)), T8) → U54_ag(T426, T436, T427, T8, le100_in_aa(T426, T436))
U54_ag(T426, T436, T427, T8, le100_out_aa(T426, T436)) → U55_ag(T426, T436, T427, T8, part20_in_gaaa(T426, T427, T434, T435))
U55_ag(T426, T436, T427, T8, part20_out_gaaa(T426, T427, T434, T435)) → U56_ag(T426, T436, T427, T8, qs80_in_aa(T434, X9))
U56_ag(T426, T436, T427, T8, qs80_out_aa(T434, X9)) → qs1_out_ag(.(T426, .(T436, T427)), T8)
U55_ag(T426, T436, T427, T8, part20_out_gaaa(T426, T427, T434, T435)) → U57_ag(T426, T436, T427, T8, T435, qs80_in_aa(T434, T442))
U57_ag(T426, T436, T427, T8, T435, qs80_out_aa(T434, T442)) → U58_ag(T426, T436, T427, T8, p52_in_aaagg(.(T436, T435), X10, T442, T426, T8))
U58_ag(T426, T436, T427, T8, p52_out_aaagg(.(T436, T435), X10, T442, T426, T8)) → qs1_out_ag(.(T426, .(T436, T427)), T8)
qs1_in_ag(.(T452, []), T8) → U59_ag(T452, T8, qs155_in_a(X9))
qs155_in_a([]) → qs155_out_a([])
U59_ag(T452, T8, qs155_out_a(X9)) → qs1_out_ag(.(T452, []), T8)
qs1_in_ag(.(T452, []), T8) → U60_ag(T452, T8, qs155_in_a(T455))
U60_ag(T452, T8, qs155_out_a(T455)) → U61_ag(T452, T8, qs155_in_a(X10))
U61_ag(T452, T8, qs155_out_a(X10)) → qs1_out_ag(.(T452, []), T8)
U60_ag(T452, T8, qs155_out_a(T455)) → U62_ag(T452, T8, T455, qs155_in_a(T460))
U62_ag(T452, T8, T455, qs155_out_a(T460)) → U63_ag(T452, T8, app162_in_gagg(T455, T452, T460, T8))
app162_in_gagg(.(T486, T487), T491, T489, .(T486, T490)) → U36_gagg(T486, T487, T491, T489, T490, app162_in_gagg(T487, T491, T489, T490))
app162_in_gagg([], T501, T502, .(T501, T502)) → app162_out_gagg([], T501, T502, .(T501, T502))
U36_gagg(T486, T487, T491, T489, T490, app162_out_gagg(T487, T491, T489, T490)) → app162_out_gagg(.(T486, T487), T491, T489, .(T486, T490))
U63_ag(T452, T8, app162_out_gagg(T455, T452, T460, T8)) → qs1_out_ag(.(T452, []), T8)
qs1_in_ag([], []) → qs1_out_ag([], [])
APP70_IN_AAAA(.(T201, T202), T203, T204, .(T201, X391)) → APP70_IN_AAAA(T202, T203, T204, X391)
APP70_IN_AAAA → APP70_IN_AAAA
LE33_IN_AA(s(T113), s(T115)) → LE33_IN_AA(T113, T115)
qs1_in_ag(.(T26, .(T27, T28)), T8) → U44_ag(T26, T27, T28, T8, gt10_in_aa(T26, T27))
gt10_in_aa(s(T46), s(T47)) → U1_aa(T46, T47, gt10_in_aa(T46, T47))
gt10_in_aa(s(0), 0) → gt10_out_aa(s(0), 0)
U1_aa(T46, T47, gt10_out_aa(T46, T47)) → gt10_out_aa(s(T46), s(T47))
U44_ag(T26, T27, T28, T8, gt10_out_aa(T26, T27)) → qs1_out_ag(.(T26, .(T27, T28)), T8)
qs1_in_ag(.(T31, .(T33, T32)), T8) → U45_ag(T31, T33, T32, T8, gt10_in_aa(T31, T33))
U45_ag(T31, T33, T32, T8, gt10_out_aa(T31, T33)) → U46_ag(T31, T33, T32, T8, part20_in_gaaa(T31, T32, X47, X48))
part20_in_gaaa(T70, .(T73, T74), .(T73, X119), X120) → U2_gaaa(T70, T73, T74, X119, X120, gt10_in_ga(T70, T73))
gt10_in_ga(s(T46), s(T47)) → U1_ga(T46, T47, gt10_in_ga(T46, T47))
gt10_in_ga(s(0), 0) → gt10_out_ga(s(0), 0)
U1_ga(T46, T47, gt10_out_ga(T46, T47)) → gt10_out_ga(s(T46), s(T47))
U2_gaaa(T70, T73, T74, X119, X120, gt10_out_ga(T70, T73)) → part20_out_gaaa(T70, .(T73, T74), .(T73, X119), X120)
part20_in_gaaa(T70, .(T73, T77), .(T73, X119), X120) → U3_gaaa(T70, T73, T77, X119, X120, gt10_in_ga(T70, T73))
U3_gaaa(T70, T73, T77, X119, X120, gt10_out_ga(T70, T73)) → U4_gaaa(T70, T73, T77, X119, X120, part20_in_gaaa(T70, T77, X119, X120))
part20_in_gaaa(T95, .(T98, T99), X170, .(T98, X171)) → U5_gaaa(T95, T98, T99, X170, X171, le33_in_ga(T95, T98))
le33_in_ga(s(T113), s(T115)) → U8_ga(T113, T115, le33_in_ga(T113, T115))
le33_in_ga(0, s(T122)) → le33_out_ga(0, s(T122))
le33_in_ga(0, 0) → le33_out_ga(0, 0)
U8_ga(T113, T115, le33_out_ga(T113, T115)) → le33_out_ga(s(T113), s(T115))
U5_gaaa(T95, T98, T99, X170, X171, le33_out_ga(T95, T98)) → part20_out_gaaa(T95, .(T98, T99), X170, .(T98, X171))
part20_in_gaaa(T95, .(T98, T102), X170, .(T98, X171)) → U6_gaaa(T95, T98, T102, X170, X171, le33_in_ga(T95, T98))
U6_gaaa(T95, T98, T102, X170, X171, le33_out_ga(T95, T98)) → U7_gaaa(T95, T98, T102, X170, X171, part20_in_gaaa(T95, T102, X170, X171))
part20_in_gaaa(T128, [], [], []) → part20_out_gaaa(T128, [], [], [])
U7_gaaa(T95, T98, T102, X170, X171, part20_out_gaaa(T95, T102, X170, X171)) → part20_out_gaaa(T95, .(T98, T102), X170, .(T98, X171))
U4_gaaa(T70, T73, T77, X119, X120, part20_out_gaaa(T70, T77, X119, X120)) → part20_out_gaaa(T70, .(T73, T77), .(T73, X119), X120)
U46_ag(T31, T33, T32, T8, part20_out_gaaa(T31, T32, X47, X48)) → qs1_out_ag(.(T31, .(T33, T32)), T8)
U45_ag(T31, T33, T32, T8, gt10_out_aa(T31, T33)) → U47_ag(T31, T33, T32, T8, part20_in_gaaa(T31, T32, T53, T54))
U47_ag(T31, T33, T32, T8, part20_out_gaaa(T31, T32, T53, T54)) → U48_ag(T31, T33, T32, T8, qs51_in_gaa(T33, T53, X9))
qs51_in_gaa(T148, T149, X273) → U37_gaa(T148, T149, X273, p56_in_gaaaaaa(T148, T149, X269, X270, X271, X272, X273))
p56_in_gaaaaaa(T148, T149, X269, X270, X271, X272, X273) → U9_gaaaaaa(T148, T149, X269, X270, X271, X272, X273, part20_in_gaaa(T148, T149, X269, X270))
U9_gaaaaaa(T148, T149, X269, X270, X271, X272, X273, part20_out_gaaa(T148, T149, X269, X270)) → p56_out_gaaaaaa(T148, T149, X269, X270, X271, X272, X273)
p56_in_gaaaaaa(T148, T149, T153, T154, X271, X272, X273) → U10_gaaaaaa(T148, T149, T153, T154, X271, X272, X273, part20_in_gaaa(T148, T149, T153, T154))
U10_gaaaaaa(T148, T149, T153, T154, X271, X272, X273, part20_out_gaaa(T148, T149, T153, T154)) → U11_gaaaaaa(T148, T149, T153, T154, X271, X272, X273, qs59_in_aa(T153, X271))
qs59_in_aa(.(T171, T172), X335) → U19_aa(T171, T172, X335, p56_in_aaaaaaa(T171, T172, X331, X332, X333, X334, X335))
p56_in_aaaaaaa(T148, T149, X269, X270, X271, X272, X273) → U9_aaaaaaa(T148, T149, X269, X270, X271, X272, X273, part20_in_aaaa(T148, T149, X269, X270))
part20_in_aaaa(T70, .(T73, T74), .(T73, X119), X120) → U2_aaaa(T70, T73, T74, X119, X120, gt10_in_aa(T70, T73))
U2_aaaa(T70, T73, T74, X119, X120, gt10_out_aa(T70, T73)) → part20_out_aaaa(T70, .(T73, T74), .(T73, X119), X120)
part20_in_aaaa(T70, .(T73, T77), .(T73, X119), X120) → U3_aaaa(T70, T73, T77, X119, X120, gt10_in_aa(T70, T73))
U3_aaaa(T70, T73, T77, X119, X120, gt10_out_aa(T70, T73)) → U4_aaaa(T70, T73, T77, X119, X120, part20_in_gaaa(T70, T77, X119, X120))
U4_aaaa(T70, T73, T77, X119, X120, part20_out_gaaa(T70, T77, X119, X120)) → part20_out_aaaa(T70, .(T73, T77), .(T73, X119), X120)
part20_in_aaaa(T95, .(T98, T99), X170, .(T98, X171)) → U5_aaaa(T95, T98, T99, X170, X171, le33_in_aa(T95, T98))
le33_in_aa(s(T113), s(T115)) → U8_aa(T113, T115, le33_in_aa(T113, T115))
le33_in_aa(0, s(T122)) → le33_out_aa(0, s(T122))
le33_in_aa(0, 0) → le33_out_aa(0, 0)
U8_aa(T113, T115, le33_out_aa(T113, T115)) → le33_out_aa(s(T113), s(T115))
U5_aaaa(T95, T98, T99, X170, X171, le33_out_aa(T95, T98)) → part20_out_aaaa(T95, .(T98, T99), X170, .(T98, X171))
part20_in_aaaa(T95, .(T98, T102), X170, .(T98, X171)) → U6_aaaa(T95, T98, T102, X170, X171, le33_in_aa(T95, T98))
U6_aaaa(T95, T98, T102, X170, X171, le33_out_aa(T95, T98)) → U7_aaaa(T95, T98, T102, X170, X171, part20_in_gaaa(T95, T102, X170, X171))
U7_aaaa(T95, T98, T102, X170, X171, part20_out_gaaa(T95, T102, X170, X171)) → part20_out_aaaa(T95, .(T98, T102), X170, .(T98, X171))
part20_in_aaaa(T128, [], [], []) → part20_out_aaaa(T128, [], [], [])
U9_aaaaaaa(T148, T149, X269, X270, X271, X272, X273, part20_out_aaaa(T148, T149, X269, X270)) → p56_out_aaaaaaa(T148, T149, X269, X270, X271, X272, X273)
p56_in_aaaaaaa(T148, T149, T153, T154, X271, X272, X273) → U10_aaaaaaa(T148, T149, T153, T154, X271, X272, X273, part20_in_aaaa(T148, T149, T153, T154))
U10_aaaaaaa(T148, T149, T153, T154, X271, X272, X273, part20_out_aaaa(T148, T149, T153, T154)) → U11_aaaaaaa(T148, T149, T153, T154, X271, X272, X273, qs59_in_aa(T153, X271))
qs59_in_aa([], []) → qs59_out_aa([], [])
U11_aaaaaaa(T148, T149, T153, T154, X271, X272, X273, qs59_out_aa(T153, X271)) → p56_out_aaaaaaa(T148, T149, T153, T154, X271, X272, X273)
p56_in_aaaaaaa(T148, T149, T153, T154, T160, X272, X273) → U12_aaaaaaa(T148, T149, T153, T154, T160, X272, X273, part20_in_aaaa(T148, T149, T153, T154))
U12_aaaaaaa(T148, T149, T153, T154, T160, X272, X273, part20_out_aaaa(T148, T149, T153, T154)) → U13_aaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_in_aa(T153, T160))
U13_aaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_out_aa(T153, T160)) → U14_aaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_in_aa(T154, X272))
U14_aaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_out_aa(T154, X272)) → p56_out_aaaaaaa(T148, T149, T153, T154, T160, X272, X273)
p56_in_aaaaaaa(T148, T149, T153, T154, T160, T178, X273) → U15_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, part20_in_aaaa(T148, T149, T153, T154))
U15_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, part20_out_aaaa(T148, T149, T153, T154)) → U16_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_in_aa(T153, T160))
U16_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_out_aa(T153, T160)) → U17_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_in_aa(T154, T178))
U17_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_out_aa(T154, T178)) → U18_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, app70_in_aaaa(T160, T148, T178, X273))
app70_in_aaaa(.(T201, T202), T203, T204, .(T201, X391)) → U20_aaaa(T201, T202, T203, T204, X391, app70_in_aaaa(T202, T203, T204, X391))
app70_in_aaaa([], T213, T214, .(T213, T214)) → app70_out_aaaa([], T213, T214, .(T213, T214))
U20_aaaa(T201, T202, T203, T204, X391, app70_out_aaaa(T202, T203, T204, X391)) → app70_out_aaaa(.(T201, T202), T203, T204, .(T201, X391))
U18_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, app70_out_aaaa(T160, T148, T178, X273)) → p56_out_aaaaaaa(T148, T149, T153, T154, T160, T178, X273)
U19_aa(T171, T172, X335, p56_out_aaaaaaa(T171, T172, X331, X332, X333, X334, X335)) → qs59_out_aa(.(T171, T172), X335)
U11_gaaaaaa(T148, T149, T153, T154, X271, X272, X273, qs59_out_aa(T153, X271)) → p56_out_gaaaaaa(T148, T149, T153, T154, X271, X272, X273)
p56_in_gaaaaaa(T148, T149, T153, T154, T160, X272, X273) → U12_gaaaaaa(T148, T149, T153, T154, T160, X272, X273, part20_in_gaaa(T148, T149, T153, T154))
U12_gaaaaaa(T148, T149, T153, T154, T160, X272, X273, part20_out_gaaa(T148, T149, T153, T154)) → U13_gaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_in_aa(T153, T160))
U13_gaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_out_aa(T153, T160)) → U14_gaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_in_aa(T154, X272))
U14_gaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_out_aa(T154, X272)) → p56_out_gaaaaaa(T148, T149, T153, T154, T160, X272, X273)
p56_in_gaaaaaa(T148, T149, T153, T154, T160, T178, X273) → U15_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, part20_in_gaaa(T148, T149, T153, T154))
U15_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, part20_out_gaaa(T148, T149, T153, T154)) → U16_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_in_aa(T153, T160))
U16_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_out_aa(T153, T160)) → U17_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_in_aa(T154, T178))
U17_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_out_aa(T154, T178)) → U18_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, app70_in_agaa(T160, T148, T178, X273))
app70_in_agaa(.(T201, T202), T203, T204, .(T201, X391)) → U20_agaa(T201, T202, T203, T204, X391, app70_in_agaa(T202, T203, T204, X391))
app70_in_agaa([], T213, T214, .(T213, T214)) → app70_out_agaa([], T213, T214, .(T213, T214))
U20_agaa(T201, T202, T203, T204, X391, app70_out_agaa(T202, T203, T204, X391)) → app70_out_agaa(.(T201, T202), T203, T204, .(T201, X391))
U18_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, app70_out_agaa(T160, T148, T178, X273)) → p56_out_gaaaaaa(T148, T149, T153, T154, T160, T178, X273)
U37_gaa(T148, T149, X273, p56_out_gaaaaaa(T148, T149, X269, X270, X271, X272, X273)) → qs51_out_gaa(T148, T149, X273)
U48_ag(T31, T33, T32, T8, qs51_out_gaa(T33, T53, X9)) → qs1_out_ag(.(T31, .(T33, T32)), T8)
U47_ag(T31, T33, T32, T8, part20_out_gaaa(T31, T32, T53, T54)) → U49_ag(T31, T33, T32, T8, T54, qs51_in_gaa(T33, T53, T131))
U49_ag(T31, T33, T32, T8, T54, qs51_out_gaa(T33, T53, T131)) → U50_ag(T31, T33, T32, T8, p52_in_aaagg(T54, X10, T131, T31, T8))
p52_in_aaagg(T54, X10, T131, T31, T8) → U33_aaagg(T54, X10, T131, T31, T8, qs80_in_aa(T54, X10))
qs80_in_aa(.(T230, T231), X452) → U22_aa(T230, T231, X452, part87_in_aaaa(T230, T231, X448, X449))
part87_in_aaaa(T256, .(T257, T258), .(T257, X503), X504) → U38_aaaa(T256, T257, T258, X503, X504, gt10_in_aa(T256, T257))
U38_aaaa(T256, T257, T258, X503, X504, gt10_out_aa(T256, T257)) → part87_out_aaaa(T256, .(T257, T258), .(T257, X503), X504)
part87_in_aaaa(T261, .(T257, T262), .(T257, X503), X504) → U39_aaaa(T261, T257, T262, X503, X504, gt10_in_aa(T261, T257))
U39_aaaa(T261, T257, T262, X503, X504, gt10_out_aa(T261, T257)) → U40_aaaa(T261, T257, T262, X503, X504, part20_in_gaaa(T261, T262, X503, X504))
U40_aaaa(T261, T257, T262, X503, X504, part20_out_gaaa(T261, T262, X503, X504)) → part87_out_aaaa(T261, .(T257, T262), .(T257, X503), X504)
part87_in_aaaa(T283, .(T284, T285), X554, .(T284, X555)) → U41_aaaa(T283, T284, T285, X554, X555, le100_in_aa(T283, T284))
le100_in_aa(s(T302), s(T303)) → U21_aa(T302, T303, le100_in_aa(T302, T303))
le100_in_aa(0, s(T310)) → le100_out_aa(0, s(T310))
le100_in_aa(0, 0) → le100_out_aa(0, 0)
U21_aa(T302, T303, le100_out_aa(T302, T303)) → le100_out_aa(s(T302), s(T303))
U41_aaaa(T283, T284, T285, X554, X555, le100_out_aa(T283, T284)) → part87_out_aaaa(T283, .(T284, T285), X554, .(T284, X555))
part87_in_aaaa(T288, .(T284, T289), X554, .(T284, X555)) → U42_aaaa(T288, T284, T289, X554, X555, le100_in_aa(T288, T284))
U42_aaaa(T288, T284, T289, X554, X555, le100_out_aa(T288, T284)) → U43_aaaa(T288, T284, T289, X554, X555, part20_in_gaaa(T288, T289, X554, X555))
U43_aaaa(T288, T284, T289, X554, X555, part20_out_gaaa(T288, T289, X554, X555)) → part87_out_aaaa(T288, .(T284, T289), X554, .(T284, X555))
part87_in_aaaa(T316, [], [], []) → part87_out_aaaa(T316, [], [], [])
U22_aa(T230, T231, X452, part87_out_aaaa(T230, T231, X448, X449)) → qs80_out_aa(.(T230, T231), X452)
qs80_in_aa(.(T237, T231), X452) → U23_aa(T237, T231, X452, part87_in_aaaa(T237, T231, T235, T236))
U23_aa(T237, T231, X452, part87_out_aaaa(T237, T231, T235, T236)) → U24_aa(T237, T231, X452, qs80_in_aa(T235, X450))
qs80_in_aa(.(T325, T231), X452) → U27_aa(T325, T231, X452, part87_in_aaaa(T325, T231, T235, T236))
U27_aa(T325, T231, X452, part87_out_aaaa(T325, T231, T235, T236)) → U28_aa(T325, T231, X452, T236, qs80_in_aa(T235, T319))
qs80_in_aa([], []) → qs80_out_aa([], [])
U28_aa(T325, T231, X452, T236, qs80_out_aa(T235, T319)) → U29_aa(T325, T231, X452, T319, qs80_in_aa(T236, T324))
U29_aa(T325, T231, X452, T319, qs80_out_aa(T236, T324)) → U30_aa(T325, T231, X452, app121_in_aaaa(T319, T325, T324, X452))
app121_in_aaaa(.(T348, T349), T352, T353, .(T348, X657)) → U31_aaaa(T348, T349, T352, T353, X657, app121_in_aaaa(T349, T352, T353, X657))
app121_in_aaaa([], T362, T363, .(T362, T363)) → app121_out_aaaa([], T362, T363, .(T362, T363))
U31_aaaa(T348, T349, T352, T353, X657, app121_out_aaaa(T349, T352, T353, X657)) → app121_out_aaaa(.(T348, T349), T352, T353, .(T348, X657))
U30_aa(T325, T231, X452, app121_out_aaaa(T319, T325, T324, X452)) → qs80_out_aa(.(T325, T231), X452)
U24_aa(T237, T231, X452, qs80_out_aa(T235, X450)) → qs80_out_aa(.(T237, T231), X452)
U23_aa(T237, T231, X452, part87_out_aaaa(T237, T231, T235, T236)) → U25_aa(T237, T231, X452, T236, qs80_in_aa(T235, T319))
U25_aa(T237, T231, X452, T236, qs80_out_aa(T235, T319)) → U26_aa(T237, T231, X452, qs80_in_aa(T236, X451))
U26_aa(T237, T231, X452, qs80_out_aa(T236, X451)) → qs80_out_aa(.(T237, T231), X452)
U33_aaagg(T54, X10, T131, T31, T8, qs80_out_aa(T54, X10)) → p52_out_aaagg(T54, X10, T131, T31, T8)
p52_in_aaagg(T54, T217, T131, T31, T8) → U34_aaagg(T54, T217, T131, T31, T8, qs80_in_aa(T54, T217))
U34_aaagg(T54, T217, T131, T31, T8, qs80_out_aa(T54, T217)) → U35_aaagg(T54, T217, T131, T31, T8, app81_in_agag(T131, T31, T217, T8))
app81_in_agag(.(T389, T390), T391, T394, .(T389, T393)) → U32_agag(T389, T390, T391, T394, T393, app81_in_agag(T390, T391, T394, T393))
app81_in_agag([], T404, T405, .(T404, T405)) → app81_out_agag([], T404, T405, .(T404, T405))
U32_agag(T389, T390, T391, T394, T393, app81_out_agag(T390, T391, T394, T393)) → app81_out_agag(.(T389, T390), T391, T394, .(T389, T393))
U35_aaagg(T54, T217, T131, T31, T8, app81_out_agag(T131, T31, T217, T8)) → p52_out_aaagg(T54, T217, T131, T31, T8)
U50_ag(T31, T33, T32, T8, p52_out_aaagg(T54, X10, T131, T31, T8)) → qs1_out_ag(.(T31, .(T33, T32)), T8)
qs1_in_ag(.(T421, .(T422, T423)), T8) → U51_ag(T421, T422, T423, T8, le100_in_aa(T421, T422))
U51_ag(T421, T422, T423, T8, le100_out_aa(T421, T422)) → qs1_out_ag(.(T421, .(T422, T423)), T8)
qs1_in_ag(.(T426, .(T428, T427)), T8) → U52_ag(T426, T428, T427, T8, le100_in_aa(T426, T428))
U52_ag(T426, T428, T427, T8, le100_out_aa(T426, T428)) → U53_ag(T426, T428, T427, T8, part20_in_gaaa(T426, T427, X740, X741))
U53_ag(T426, T428, T427, T8, part20_out_gaaa(T426, T427, X740, X741)) → qs1_out_ag(.(T426, .(T428, T427)), T8)
qs1_in_ag(.(T426, .(T436, T427)), T8) → U54_ag(T426, T436, T427, T8, le100_in_aa(T426, T436))
U54_ag(T426, T436, T427, T8, le100_out_aa(T426, T436)) → U55_ag(T426, T436, T427, T8, part20_in_gaaa(T426, T427, T434, T435))
U55_ag(T426, T436, T427, T8, part20_out_gaaa(T426, T427, T434, T435)) → U56_ag(T426, T436, T427, T8, qs80_in_aa(T434, X9))
U56_ag(T426, T436, T427, T8, qs80_out_aa(T434, X9)) → qs1_out_ag(.(T426, .(T436, T427)), T8)
U55_ag(T426, T436, T427, T8, part20_out_gaaa(T426, T427, T434, T435)) → U57_ag(T426, T436, T427, T8, T435, qs80_in_aa(T434, T442))
U57_ag(T426, T436, T427, T8, T435, qs80_out_aa(T434, T442)) → U58_ag(T426, T436, T427, T8, p52_in_aaagg(.(T436, T435), X10, T442, T426, T8))
U58_ag(T426, T436, T427, T8, p52_out_aaagg(.(T436, T435), X10, T442, T426, T8)) → qs1_out_ag(.(T426, .(T436, T427)), T8)
qs1_in_ag(.(T452, []), T8) → U59_ag(T452, T8, qs155_in_a(X9))
qs155_in_a([]) → qs155_out_a([])
U59_ag(T452, T8, qs155_out_a(X9)) → qs1_out_ag(.(T452, []), T8)
qs1_in_ag(.(T452, []), T8) → U60_ag(T452, T8, qs155_in_a(T455))
U60_ag(T452, T8, qs155_out_a(T455)) → U61_ag(T452, T8, qs155_in_a(X10))
U61_ag(T452, T8, qs155_out_a(X10)) → qs1_out_ag(.(T452, []), T8)
U60_ag(T452, T8, qs155_out_a(T455)) → U62_ag(T452, T8, T455, qs155_in_a(T460))
U62_ag(T452, T8, T455, qs155_out_a(T460)) → U63_ag(T452, T8, app162_in_gagg(T455, T452, T460, T8))
app162_in_gagg(.(T486, T487), T491, T489, .(T486, T490)) → U36_gagg(T486, T487, T491, T489, T490, app162_in_gagg(T487, T491, T489, T490))
app162_in_gagg([], T501, T502, .(T501, T502)) → app162_out_gagg([], T501, T502, .(T501, T502))
U36_gagg(T486, T487, T491, T489, T490, app162_out_gagg(T487, T491, T489, T490)) → app162_out_gagg(.(T486, T487), T491, T489, .(T486, T490))
U63_ag(T452, T8, app162_out_gagg(T455, T452, T460, T8)) → qs1_out_ag(.(T452, []), T8)
qs1_in_ag([], []) → qs1_out_ag([], [])
LE33_IN_AA(s(T113), s(T115)) → LE33_IN_AA(T113, T115)
LE33_IN_AA → LE33_IN_AA
LE33_IN_GA(s(T113), s(T115)) → LE33_IN_GA(T113, T115)
qs1_in_ag(.(T26, .(T27, T28)), T8) → U44_ag(T26, T27, T28, T8, gt10_in_aa(T26, T27))
gt10_in_aa(s(T46), s(T47)) → U1_aa(T46, T47, gt10_in_aa(T46, T47))
gt10_in_aa(s(0), 0) → gt10_out_aa(s(0), 0)
U1_aa(T46, T47, gt10_out_aa(T46, T47)) → gt10_out_aa(s(T46), s(T47))
U44_ag(T26, T27, T28, T8, gt10_out_aa(T26, T27)) → qs1_out_ag(.(T26, .(T27, T28)), T8)
qs1_in_ag(.(T31, .(T33, T32)), T8) → U45_ag(T31, T33, T32, T8, gt10_in_aa(T31, T33))
U45_ag(T31, T33, T32, T8, gt10_out_aa(T31, T33)) → U46_ag(T31, T33, T32, T8, part20_in_gaaa(T31, T32, X47, X48))
part20_in_gaaa(T70, .(T73, T74), .(T73, X119), X120) → U2_gaaa(T70, T73, T74, X119, X120, gt10_in_ga(T70, T73))
gt10_in_ga(s(T46), s(T47)) → U1_ga(T46, T47, gt10_in_ga(T46, T47))
gt10_in_ga(s(0), 0) → gt10_out_ga(s(0), 0)
U1_ga(T46, T47, gt10_out_ga(T46, T47)) → gt10_out_ga(s(T46), s(T47))
U2_gaaa(T70, T73, T74, X119, X120, gt10_out_ga(T70, T73)) → part20_out_gaaa(T70, .(T73, T74), .(T73, X119), X120)
part20_in_gaaa(T70, .(T73, T77), .(T73, X119), X120) → U3_gaaa(T70, T73, T77, X119, X120, gt10_in_ga(T70, T73))
U3_gaaa(T70, T73, T77, X119, X120, gt10_out_ga(T70, T73)) → U4_gaaa(T70, T73, T77, X119, X120, part20_in_gaaa(T70, T77, X119, X120))
part20_in_gaaa(T95, .(T98, T99), X170, .(T98, X171)) → U5_gaaa(T95, T98, T99, X170, X171, le33_in_ga(T95, T98))
le33_in_ga(s(T113), s(T115)) → U8_ga(T113, T115, le33_in_ga(T113, T115))
le33_in_ga(0, s(T122)) → le33_out_ga(0, s(T122))
le33_in_ga(0, 0) → le33_out_ga(0, 0)
U8_ga(T113, T115, le33_out_ga(T113, T115)) → le33_out_ga(s(T113), s(T115))
U5_gaaa(T95, T98, T99, X170, X171, le33_out_ga(T95, T98)) → part20_out_gaaa(T95, .(T98, T99), X170, .(T98, X171))
part20_in_gaaa(T95, .(T98, T102), X170, .(T98, X171)) → U6_gaaa(T95, T98, T102, X170, X171, le33_in_ga(T95, T98))
U6_gaaa(T95, T98, T102, X170, X171, le33_out_ga(T95, T98)) → U7_gaaa(T95, T98, T102, X170, X171, part20_in_gaaa(T95, T102, X170, X171))
part20_in_gaaa(T128, [], [], []) → part20_out_gaaa(T128, [], [], [])
U7_gaaa(T95, T98, T102, X170, X171, part20_out_gaaa(T95, T102, X170, X171)) → part20_out_gaaa(T95, .(T98, T102), X170, .(T98, X171))
U4_gaaa(T70, T73, T77, X119, X120, part20_out_gaaa(T70, T77, X119, X120)) → part20_out_gaaa(T70, .(T73, T77), .(T73, X119), X120)
U46_ag(T31, T33, T32, T8, part20_out_gaaa(T31, T32, X47, X48)) → qs1_out_ag(.(T31, .(T33, T32)), T8)
U45_ag(T31, T33, T32, T8, gt10_out_aa(T31, T33)) → U47_ag(T31, T33, T32, T8, part20_in_gaaa(T31, T32, T53, T54))
U47_ag(T31, T33, T32, T8, part20_out_gaaa(T31, T32, T53, T54)) → U48_ag(T31, T33, T32, T8, qs51_in_gaa(T33, T53, X9))
qs51_in_gaa(T148, T149, X273) → U37_gaa(T148, T149, X273, p56_in_gaaaaaa(T148, T149, X269, X270, X271, X272, X273))
p56_in_gaaaaaa(T148, T149, X269, X270, X271, X272, X273) → U9_gaaaaaa(T148, T149, X269, X270, X271, X272, X273, part20_in_gaaa(T148, T149, X269, X270))
U9_gaaaaaa(T148, T149, X269, X270, X271, X272, X273, part20_out_gaaa(T148, T149, X269, X270)) → p56_out_gaaaaaa(T148, T149, X269, X270, X271, X272, X273)
p56_in_gaaaaaa(T148, T149, T153, T154, X271, X272, X273) → U10_gaaaaaa(T148, T149, T153, T154, X271, X272, X273, part20_in_gaaa(T148, T149, T153, T154))
U10_gaaaaaa(T148, T149, T153, T154, X271, X272, X273, part20_out_gaaa(T148, T149, T153, T154)) → U11_gaaaaaa(T148, T149, T153, T154, X271, X272, X273, qs59_in_aa(T153, X271))
qs59_in_aa(.(T171, T172), X335) → U19_aa(T171, T172, X335, p56_in_aaaaaaa(T171, T172, X331, X332, X333, X334, X335))
p56_in_aaaaaaa(T148, T149, X269, X270, X271, X272, X273) → U9_aaaaaaa(T148, T149, X269, X270, X271, X272, X273, part20_in_aaaa(T148, T149, X269, X270))
part20_in_aaaa(T70, .(T73, T74), .(T73, X119), X120) → U2_aaaa(T70, T73, T74, X119, X120, gt10_in_aa(T70, T73))
U2_aaaa(T70, T73, T74, X119, X120, gt10_out_aa(T70, T73)) → part20_out_aaaa(T70, .(T73, T74), .(T73, X119), X120)
part20_in_aaaa(T70, .(T73, T77), .(T73, X119), X120) → U3_aaaa(T70, T73, T77, X119, X120, gt10_in_aa(T70, T73))
U3_aaaa(T70, T73, T77, X119, X120, gt10_out_aa(T70, T73)) → U4_aaaa(T70, T73, T77, X119, X120, part20_in_gaaa(T70, T77, X119, X120))
U4_aaaa(T70, T73, T77, X119, X120, part20_out_gaaa(T70, T77, X119, X120)) → part20_out_aaaa(T70, .(T73, T77), .(T73, X119), X120)
part20_in_aaaa(T95, .(T98, T99), X170, .(T98, X171)) → U5_aaaa(T95, T98, T99, X170, X171, le33_in_aa(T95, T98))
le33_in_aa(s(T113), s(T115)) → U8_aa(T113, T115, le33_in_aa(T113, T115))
le33_in_aa(0, s(T122)) → le33_out_aa(0, s(T122))
le33_in_aa(0, 0) → le33_out_aa(0, 0)
U8_aa(T113, T115, le33_out_aa(T113, T115)) → le33_out_aa(s(T113), s(T115))
U5_aaaa(T95, T98, T99, X170, X171, le33_out_aa(T95, T98)) → part20_out_aaaa(T95, .(T98, T99), X170, .(T98, X171))
part20_in_aaaa(T95, .(T98, T102), X170, .(T98, X171)) → U6_aaaa(T95, T98, T102, X170, X171, le33_in_aa(T95, T98))
U6_aaaa(T95, T98, T102, X170, X171, le33_out_aa(T95, T98)) → U7_aaaa(T95, T98, T102, X170, X171, part20_in_gaaa(T95, T102, X170, X171))
U7_aaaa(T95, T98, T102, X170, X171, part20_out_gaaa(T95, T102, X170, X171)) → part20_out_aaaa(T95, .(T98, T102), X170, .(T98, X171))
part20_in_aaaa(T128, [], [], []) → part20_out_aaaa(T128, [], [], [])
U9_aaaaaaa(T148, T149, X269, X270, X271, X272, X273, part20_out_aaaa(T148, T149, X269, X270)) → p56_out_aaaaaaa(T148, T149, X269, X270, X271, X272, X273)
p56_in_aaaaaaa(T148, T149, T153, T154, X271, X272, X273) → U10_aaaaaaa(T148, T149, T153, T154, X271, X272, X273, part20_in_aaaa(T148, T149, T153, T154))
U10_aaaaaaa(T148, T149, T153, T154, X271, X272, X273, part20_out_aaaa(T148, T149, T153, T154)) → U11_aaaaaaa(T148, T149, T153, T154, X271, X272, X273, qs59_in_aa(T153, X271))
qs59_in_aa([], []) → qs59_out_aa([], [])
U11_aaaaaaa(T148, T149, T153, T154, X271, X272, X273, qs59_out_aa(T153, X271)) → p56_out_aaaaaaa(T148, T149, T153, T154, X271, X272, X273)
p56_in_aaaaaaa(T148, T149, T153, T154, T160, X272, X273) → U12_aaaaaaa(T148, T149, T153, T154, T160, X272, X273, part20_in_aaaa(T148, T149, T153, T154))
U12_aaaaaaa(T148, T149, T153, T154, T160, X272, X273, part20_out_aaaa(T148, T149, T153, T154)) → U13_aaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_in_aa(T153, T160))
U13_aaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_out_aa(T153, T160)) → U14_aaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_in_aa(T154, X272))
U14_aaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_out_aa(T154, X272)) → p56_out_aaaaaaa(T148, T149, T153, T154, T160, X272, X273)
p56_in_aaaaaaa(T148, T149, T153, T154, T160, T178, X273) → U15_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, part20_in_aaaa(T148, T149, T153, T154))
U15_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, part20_out_aaaa(T148, T149, T153, T154)) → U16_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_in_aa(T153, T160))
U16_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_out_aa(T153, T160)) → U17_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_in_aa(T154, T178))
U17_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_out_aa(T154, T178)) → U18_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, app70_in_aaaa(T160, T148, T178, X273))
app70_in_aaaa(.(T201, T202), T203, T204, .(T201, X391)) → U20_aaaa(T201, T202, T203, T204, X391, app70_in_aaaa(T202, T203, T204, X391))
app70_in_aaaa([], T213, T214, .(T213, T214)) → app70_out_aaaa([], T213, T214, .(T213, T214))
U20_aaaa(T201, T202, T203, T204, X391, app70_out_aaaa(T202, T203, T204, X391)) → app70_out_aaaa(.(T201, T202), T203, T204, .(T201, X391))
U18_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, app70_out_aaaa(T160, T148, T178, X273)) → p56_out_aaaaaaa(T148, T149, T153, T154, T160, T178, X273)
U19_aa(T171, T172, X335, p56_out_aaaaaaa(T171, T172, X331, X332, X333, X334, X335)) → qs59_out_aa(.(T171, T172), X335)
U11_gaaaaaa(T148, T149, T153, T154, X271, X272, X273, qs59_out_aa(T153, X271)) → p56_out_gaaaaaa(T148, T149, T153, T154, X271, X272, X273)
p56_in_gaaaaaa(T148, T149, T153, T154, T160, X272, X273) → U12_gaaaaaa(T148, T149, T153, T154, T160, X272, X273, part20_in_gaaa(T148, T149, T153, T154))
U12_gaaaaaa(T148, T149, T153, T154, T160, X272, X273, part20_out_gaaa(T148, T149, T153, T154)) → U13_gaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_in_aa(T153, T160))
U13_gaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_out_aa(T153, T160)) → U14_gaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_in_aa(T154, X272))
U14_gaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_out_aa(T154, X272)) → p56_out_gaaaaaa(T148, T149, T153, T154, T160, X272, X273)
p56_in_gaaaaaa(T148, T149, T153, T154, T160, T178, X273) → U15_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, part20_in_gaaa(T148, T149, T153, T154))
U15_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, part20_out_gaaa(T148, T149, T153, T154)) → U16_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_in_aa(T153, T160))
U16_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_out_aa(T153, T160)) → U17_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_in_aa(T154, T178))
U17_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_out_aa(T154, T178)) → U18_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, app70_in_agaa(T160, T148, T178, X273))
app70_in_agaa(.(T201, T202), T203, T204, .(T201, X391)) → U20_agaa(T201, T202, T203, T204, X391, app70_in_agaa(T202, T203, T204, X391))
app70_in_agaa([], T213, T214, .(T213, T214)) → app70_out_agaa([], T213, T214, .(T213, T214))
U20_agaa(T201, T202, T203, T204, X391, app70_out_agaa(T202, T203, T204, X391)) → app70_out_agaa(.(T201, T202), T203, T204, .(T201, X391))
U18_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, app70_out_agaa(T160, T148, T178, X273)) → p56_out_gaaaaaa(T148, T149, T153, T154, T160, T178, X273)
U37_gaa(T148, T149, X273, p56_out_gaaaaaa(T148, T149, X269, X270, X271, X272, X273)) → qs51_out_gaa(T148, T149, X273)
U48_ag(T31, T33, T32, T8, qs51_out_gaa(T33, T53, X9)) → qs1_out_ag(.(T31, .(T33, T32)), T8)
U47_ag(T31, T33, T32, T8, part20_out_gaaa(T31, T32, T53, T54)) → U49_ag(T31, T33, T32, T8, T54, qs51_in_gaa(T33, T53, T131))
U49_ag(T31, T33, T32, T8, T54, qs51_out_gaa(T33, T53, T131)) → U50_ag(T31, T33, T32, T8, p52_in_aaagg(T54, X10, T131, T31, T8))
p52_in_aaagg(T54, X10, T131, T31, T8) → U33_aaagg(T54, X10, T131, T31, T8, qs80_in_aa(T54, X10))
qs80_in_aa(.(T230, T231), X452) → U22_aa(T230, T231, X452, part87_in_aaaa(T230, T231, X448, X449))
part87_in_aaaa(T256, .(T257, T258), .(T257, X503), X504) → U38_aaaa(T256, T257, T258, X503, X504, gt10_in_aa(T256, T257))
U38_aaaa(T256, T257, T258, X503, X504, gt10_out_aa(T256, T257)) → part87_out_aaaa(T256, .(T257, T258), .(T257, X503), X504)
part87_in_aaaa(T261, .(T257, T262), .(T257, X503), X504) → U39_aaaa(T261, T257, T262, X503, X504, gt10_in_aa(T261, T257))
U39_aaaa(T261, T257, T262, X503, X504, gt10_out_aa(T261, T257)) → U40_aaaa(T261, T257, T262, X503, X504, part20_in_gaaa(T261, T262, X503, X504))
U40_aaaa(T261, T257, T262, X503, X504, part20_out_gaaa(T261, T262, X503, X504)) → part87_out_aaaa(T261, .(T257, T262), .(T257, X503), X504)
part87_in_aaaa(T283, .(T284, T285), X554, .(T284, X555)) → U41_aaaa(T283, T284, T285, X554, X555, le100_in_aa(T283, T284))
le100_in_aa(s(T302), s(T303)) → U21_aa(T302, T303, le100_in_aa(T302, T303))
le100_in_aa(0, s(T310)) → le100_out_aa(0, s(T310))
le100_in_aa(0, 0) → le100_out_aa(0, 0)
U21_aa(T302, T303, le100_out_aa(T302, T303)) → le100_out_aa(s(T302), s(T303))
U41_aaaa(T283, T284, T285, X554, X555, le100_out_aa(T283, T284)) → part87_out_aaaa(T283, .(T284, T285), X554, .(T284, X555))
part87_in_aaaa(T288, .(T284, T289), X554, .(T284, X555)) → U42_aaaa(T288, T284, T289, X554, X555, le100_in_aa(T288, T284))
U42_aaaa(T288, T284, T289, X554, X555, le100_out_aa(T288, T284)) → U43_aaaa(T288, T284, T289, X554, X555, part20_in_gaaa(T288, T289, X554, X555))
U43_aaaa(T288, T284, T289, X554, X555, part20_out_gaaa(T288, T289, X554, X555)) → part87_out_aaaa(T288, .(T284, T289), X554, .(T284, X555))
part87_in_aaaa(T316, [], [], []) → part87_out_aaaa(T316, [], [], [])
U22_aa(T230, T231, X452, part87_out_aaaa(T230, T231, X448, X449)) → qs80_out_aa(.(T230, T231), X452)
qs80_in_aa(.(T237, T231), X452) → U23_aa(T237, T231, X452, part87_in_aaaa(T237, T231, T235, T236))
U23_aa(T237, T231, X452, part87_out_aaaa(T237, T231, T235, T236)) → U24_aa(T237, T231, X452, qs80_in_aa(T235, X450))
qs80_in_aa(.(T325, T231), X452) → U27_aa(T325, T231, X452, part87_in_aaaa(T325, T231, T235, T236))
U27_aa(T325, T231, X452, part87_out_aaaa(T325, T231, T235, T236)) → U28_aa(T325, T231, X452, T236, qs80_in_aa(T235, T319))
qs80_in_aa([], []) → qs80_out_aa([], [])
U28_aa(T325, T231, X452, T236, qs80_out_aa(T235, T319)) → U29_aa(T325, T231, X452, T319, qs80_in_aa(T236, T324))
U29_aa(T325, T231, X452, T319, qs80_out_aa(T236, T324)) → U30_aa(T325, T231, X452, app121_in_aaaa(T319, T325, T324, X452))
app121_in_aaaa(.(T348, T349), T352, T353, .(T348, X657)) → U31_aaaa(T348, T349, T352, T353, X657, app121_in_aaaa(T349, T352, T353, X657))
app121_in_aaaa([], T362, T363, .(T362, T363)) → app121_out_aaaa([], T362, T363, .(T362, T363))
U31_aaaa(T348, T349, T352, T353, X657, app121_out_aaaa(T349, T352, T353, X657)) → app121_out_aaaa(.(T348, T349), T352, T353, .(T348, X657))
U30_aa(T325, T231, X452, app121_out_aaaa(T319, T325, T324, X452)) → qs80_out_aa(.(T325, T231), X452)
U24_aa(T237, T231, X452, qs80_out_aa(T235, X450)) → qs80_out_aa(.(T237, T231), X452)
U23_aa(T237, T231, X452, part87_out_aaaa(T237, T231, T235, T236)) → U25_aa(T237, T231, X452, T236, qs80_in_aa(T235, T319))
U25_aa(T237, T231, X452, T236, qs80_out_aa(T235, T319)) → U26_aa(T237, T231, X452, qs80_in_aa(T236, X451))
U26_aa(T237, T231, X452, qs80_out_aa(T236, X451)) → qs80_out_aa(.(T237, T231), X452)
U33_aaagg(T54, X10, T131, T31, T8, qs80_out_aa(T54, X10)) → p52_out_aaagg(T54, X10, T131, T31, T8)
p52_in_aaagg(T54, T217, T131, T31, T8) → U34_aaagg(T54, T217, T131, T31, T8, qs80_in_aa(T54, T217))
U34_aaagg(T54, T217, T131, T31, T8, qs80_out_aa(T54, T217)) → U35_aaagg(T54, T217, T131, T31, T8, app81_in_agag(T131, T31, T217, T8))
app81_in_agag(.(T389, T390), T391, T394, .(T389, T393)) → U32_agag(T389, T390, T391, T394, T393, app81_in_agag(T390, T391, T394, T393))
app81_in_agag([], T404, T405, .(T404, T405)) → app81_out_agag([], T404, T405, .(T404, T405))
U32_agag(T389, T390, T391, T394, T393, app81_out_agag(T390, T391, T394, T393)) → app81_out_agag(.(T389, T390), T391, T394, .(T389, T393))
U35_aaagg(T54, T217, T131, T31, T8, app81_out_agag(T131, T31, T217, T8)) → p52_out_aaagg(T54, T217, T131, T31, T8)
U50_ag(T31, T33, T32, T8, p52_out_aaagg(T54, X10, T131, T31, T8)) → qs1_out_ag(.(T31, .(T33, T32)), T8)
qs1_in_ag(.(T421, .(T422, T423)), T8) → U51_ag(T421, T422, T423, T8, le100_in_aa(T421, T422))
U51_ag(T421, T422, T423, T8, le100_out_aa(T421, T422)) → qs1_out_ag(.(T421, .(T422, T423)), T8)
qs1_in_ag(.(T426, .(T428, T427)), T8) → U52_ag(T426, T428, T427, T8, le100_in_aa(T426, T428))
U52_ag(T426, T428, T427, T8, le100_out_aa(T426, T428)) → U53_ag(T426, T428, T427, T8, part20_in_gaaa(T426, T427, X740, X741))
U53_ag(T426, T428, T427, T8, part20_out_gaaa(T426, T427, X740, X741)) → qs1_out_ag(.(T426, .(T428, T427)), T8)
qs1_in_ag(.(T426, .(T436, T427)), T8) → U54_ag(T426, T436, T427, T8, le100_in_aa(T426, T436))
U54_ag(T426, T436, T427, T8, le100_out_aa(T426, T436)) → U55_ag(T426, T436, T427, T8, part20_in_gaaa(T426, T427, T434, T435))
U55_ag(T426, T436, T427, T8, part20_out_gaaa(T426, T427, T434, T435)) → U56_ag(T426, T436, T427, T8, qs80_in_aa(T434, X9))
U56_ag(T426, T436, T427, T8, qs80_out_aa(T434, X9)) → qs1_out_ag(.(T426, .(T436, T427)), T8)
U55_ag(T426, T436, T427, T8, part20_out_gaaa(T426, T427, T434, T435)) → U57_ag(T426, T436, T427, T8, T435, qs80_in_aa(T434, T442))
U57_ag(T426, T436, T427, T8, T435, qs80_out_aa(T434, T442)) → U58_ag(T426, T436, T427, T8, p52_in_aaagg(.(T436, T435), X10, T442, T426, T8))
U58_ag(T426, T436, T427, T8, p52_out_aaagg(.(T436, T435), X10, T442, T426, T8)) → qs1_out_ag(.(T426, .(T436, T427)), T8)
qs1_in_ag(.(T452, []), T8) → U59_ag(T452, T8, qs155_in_a(X9))
qs155_in_a([]) → qs155_out_a([])
U59_ag(T452, T8, qs155_out_a(X9)) → qs1_out_ag(.(T452, []), T8)
qs1_in_ag(.(T452, []), T8) → U60_ag(T452, T8, qs155_in_a(T455))
U60_ag(T452, T8, qs155_out_a(T455)) → U61_ag(T452, T8, qs155_in_a(X10))
U61_ag(T452, T8, qs155_out_a(X10)) → qs1_out_ag(.(T452, []), T8)
U60_ag(T452, T8, qs155_out_a(T455)) → U62_ag(T452, T8, T455, qs155_in_a(T460))
U62_ag(T452, T8, T455, qs155_out_a(T460)) → U63_ag(T452, T8, app162_in_gagg(T455, T452, T460, T8))
app162_in_gagg(.(T486, T487), T491, T489, .(T486, T490)) → U36_gagg(T486, T487, T491, T489, T490, app162_in_gagg(T487, T491, T489, T490))
app162_in_gagg([], T501, T502, .(T501, T502)) → app162_out_gagg([], T501, T502, .(T501, T502))
U36_gagg(T486, T487, T491, T489, T490, app162_out_gagg(T487, T491, T489, T490)) → app162_out_gagg(.(T486, T487), T491, T489, .(T486, T490))
U63_ag(T452, T8, app162_out_gagg(T455, T452, T460, T8)) → qs1_out_ag(.(T452, []), T8)
qs1_in_ag([], []) → qs1_out_ag([], [])
LE33_IN_GA(s(T113), s(T115)) → LE33_IN_GA(T113, T115)
LE33_IN_GA(s(T113)) → LE33_IN_GA(T113)
From the DPs we obtained the following set of size-change graphs:
GT10_IN_GA(s(T46), s(T47)) → GT10_IN_GA(T46, T47)
qs1_in_ag(.(T26, .(T27, T28)), T8) → U44_ag(T26, T27, T28, T8, gt10_in_aa(T26, T27))
gt10_in_aa(s(T46), s(T47)) → U1_aa(T46, T47, gt10_in_aa(T46, T47))
gt10_in_aa(s(0), 0) → gt10_out_aa(s(0), 0)
U1_aa(T46, T47, gt10_out_aa(T46, T47)) → gt10_out_aa(s(T46), s(T47))
U44_ag(T26, T27, T28, T8, gt10_out_aa(T26, T27)) → qs1_out_ag(.(T26, .(T27, T28)), T8)
qs1_in_ag(.(T31, .(T33, T32)), T8) → U45_ag(T31, T33, T32, T8, gt10_in_aa(T31, T33))
U45_ag(T31, T33, T32, T8, gt10_out_aa(T31, T33)) → U46_ag(T31, T33, T32, T8, part20_in_gaaa(T31, T32, X47, X48))
part20_in_gaaa(T70, .(T73, T74), .(T73, X119), X120) → U2_gaaa(T70, T73, T74, X119, X120, gt10_in_ga(T70, T73))
gt10_in_ga(s(T46), s(T47)) → U1_ga(T46, T47, gt10_in_ga(T46, T47))
gt10_in_ga(s(0), 0) → gt10_out_ga(s(0), 0)
U1_ga(T46, T47, gt10_out_ga(T46, T47)) → gt10_out_ga(s(T46), s(T47))
U2_gaaa(T70, T73, T74, X119, X120, gt10_out_ga(T70, T73)) → part20_out_gaaa(T70, .(T73, T74), .(T73, X119), X120)
part20_in_gaaa(T70, .(T73, T77), .(T73, X119), X120) → U3_gaaa(T70, T73, T77, X119, X120, gt10_in_ga(T70, T73))
U3_gaaa(T70, T73, T77, X119, X120, gt10_out_ga(T70, T73)) → U4_gaaa(T70, T73, T77, X119, X120, part20_in_gaaa(T70, T77, X119, X120))
part20_in_gaaa(T95, .(T98, T99), X170, .(T98, X171)) → U5_gaaa(T95, T98, T99, X170, X171, le33_in_ga(T95, T98))
le33_in_ga(s(T113), s(T115)) → U8_ga(T113, T115, le33_in_ga(T113, T115))
le33_in_ga(0, s(T122)) → le33_out_ga(0, s(T122))
le33_in_ga(0, 0) → le33_out_ga(0, 0)
U8_ga(T113, T115, le33_out_ga(T113, T115)) → le33_out_ga(s(T113), s(T115))
U5_gaaa(T95, T98, T99, X170, X171, le33_out_ga(T95, T98)) → part20_out_gaaa(T95, .(T98, T99), X170, .(T98, X171))
part20_in_gaaa(T95, .(T98, T102), X170, .(T98, X171)) → U6_gaaa(T95, T98, T102, X170, X171, le33_in_ga(T95, T98))
U6_gaaa(T95, T98, T102, X170, X171, le33_out_ga(T95, T98)) → U7_gaaa(T95, T98, T102, X170, X171, part20_in_gaaa(T95, T102, X170, X171))
part20_in_gaaa(T128, [], [], []) → part20_out_gaaa(T128, [], [], [])
U7_gaaa(T95, T98, T102, X170, X171, part20_out_gaaa(T95, T102, X170, X171)) → part20_out_gaaa(T95, .(T98, T102), X170, .(T98, X171))
U4_gaaa(T70, T73, T77, X119, X120, part20_out_gaaa(T70, T77, X119, X120)) → part20_out_gaaa(T70, .(T73, T77), .(T73, X119), X120)
U46_ag(T31, T33, T32, T8, part20_out_gaaa(T31, T32, X47, X48)) → qs1_out_ag(.(T31, .(T33, T32)), T8)
U45_ag(T31, T33, T32, T8, gt10_out_aa(T31, T33)) → U47_ag(T31, T33, T32, T8, part20_in_gaaa(T31, T32, T53, T54))
U47_ag(T31, T33, T32, T8, part20_out_gaaa(T31, T32, T53, T54)) → U48_ag(T31, T33, T32, T8, qs51_in_gaa(T33, T53, X9))
qs51_in_gaa(T148, T149, X273) → U37_gaa(T148, T149, X273, p56_in_gaaaaaa(T148, T149, X269, X270, X271, X272, X273))
p56_in_gaaaaaa(T148, T149, X269, X270, X271, X272, X273) → U9_gaaaaaa(T148, T149, X269, X270, X271, X272, X273, part20_in_gaaa(T148, T149, X269, X270))
U9_gaaaaaa(T148, T149, X269, X270, X271, X272, X273, part20_out_gaaa(T148, T149, X269, X270)) → p56_out_gaaaaaa(T148, T149, X269, X270, X271, X272, X273)
p56_in_gaaaaaa(T148, T149, T153, T154, X271, X272, X273) → U10_gaaaaaa(T148, T149, T153, T154, X271, X272, X273, part20_in_gaaa(T148, T149, T153, T154))
U10_gaaaaaa(T148, T149, T153, T154, X271, X272, X273, part20_out_gaaa(T148, T149, T153, T154)) → U11_gaaaaaa(T148, T149, T153, T154, X271, X272, X273, qs59_in_aa(T153, X271))
qs59_in_aa(.(T171, T172), X335) → U19_aa(T171, T172, X335, p56_in_aaaaaaa(T171, T172, X331, X332, X333, X334, X335))
p56_in_aaaaaaa(T148, T149, X269, X270, X271, X272, X273) → U9_aaaaaaa(T148, T149, X269, X270, X271, X272, X273, part20_in_aaaa(T148, T149, X269, X270))
part20_in_aaaa(T70, .(T73, T74), .(T73, X119), X120) → U2_aaaa(T70, T73, T74, X119, X120, gt10_in_aa(T70, T73))
U2_aaaa(T70, T73, T74, X119, X120, gt10_out_aa(T70, T73)) → part20_out_aaaa(T70, .(T73, T74), .(T73, X119), X120)
part20_in_aaaa(T70, .(T73, T77), .(T73, X119), X120) → U3_aaaa(T70, T73, T77, X119, X120, gt10_in_aa(T70, T73))
U3_aaaa(T70, T73, T77, X119, X120, gt10_out_aa(T70, T73)) → U4_aaaa(T70, T73, T77, X119, X120, part20_in_gaaa(T70, T77, X119, X120))
U4_aaaa(T70, T73, T77, X119, X120, part20_out_gaaa(T70, T77, X119, X120)) → part20_out_aaaa(T70, .(T73, T77), .(T73, X119), X120)
part20_in_aaaa(T95, .(T98, T99), X170, .(T98, X171)) → U5_aaaa(T95, T98, T99, X170, X171, le33_in_aa(T95, T98))
le33_in_aa(s(T113), s(T115)) → U8_aa(T113, T115, le33_in_aa(T113, T115))
le33_in_aa(0, s(T122)) → le33_out_aa(0, s(T122))
le33_in_aa(0, 0) → le33_out_aa(0, 0)
U8_aa(T113, T115, le33_out_aa(T113, T115)) → le33_out_aa(s(T113), s(T115))
U5_aaaa(T95, T98, T99, X170, X171, le33_out_aa(T95, T98)) → part20_out_aaaa(T95, .(T98, T99), X170, .(T98, X171))
part20_in_aaaa(T95, .(T98, T102), X170, .(T98, X171)) → U6_aaaa(T95, T98, T102, X170, X171, le33_in_aa(T95, T98))
U6_aaaa(T95, T98, T102, X170, X171, le33_out_aa(T95, T98)) → U7_aaaa(T95, T98, T102, X170, X171, part20_in_gaaa(T95, T102, X170, X171))
U7_aaaa(T95, T98, T102, X170, X171, part20_out_gaaa(T95, T102, X170, X171)) → part20_out_aaaa(T95, .(T98, T102), X170, .(T98, X171))
part20_in_aaaa(T128, [], [], []) → part20_out_aaaa(T128, [], [], [])
U9_aaaaaaa(T148, T149, X269, X270, X271, X272, X273, part20_out_aaaa(T148, T149, X269, X270)) → p56_out_aaaaaaa(T148, T149, X269, X270, X271, X272, X273)
p56_in_aaaaaaa(T148, T149, T153, T154, X271, X272, X273) → U10_aaaaaaa(T148, T149, T153, T154, X271, X272, X273, part20_in_aaaa(T148, T149, T153, T154))
U10_aaaaaaa(T148, T149, T153, T154, X271, X272, X273, part20_out_aaaa(T148, T149, T153, T154)) → U11_aaaaaaa(T148, T149, T153, T154, X271, X272, X273, qs59_in_aa(T153, X271))
qs59_in_aa([], []) → qs59_out_aa([], [])
U11_aaaaaaa(T148, T149, T153, T154, X271, X272, X273, qs59_out_aa(T153, X271)) → p56_out_aaaaaaa(T148, T149, T153, T154, X271, X272, X273)
p56_in_aaaaaaa(T148, T149, T153, T154, T160, X272, X273) → U12_aaaaaaa(T148, T149, T153, T154, T160, X272, X273, part20_in_aaaa(T148, T149, T153, T154))
U12_aaaaaaa(T148, T149, T153, T154, T160, X272, X273, part20_out_aaaa(T148, T149, T153, T154)) → U13_aaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_in_aa(T153, T160))
U13_aaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_out_aa(T153, T160)) → U14_aaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_in_aa(T154, X272))
U14_aaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_out_aa(T154, X272)) → p56_out_aaaaaaa(T148, T149, T153, T154, T160, X272, X273)
p56_in_aaaaaaa(T148, T149, T153, T154, T160, T178, X273) → U15_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, part20_in_aaaa(T148, T149, T153, T154))
U15_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, part20_out_aaaa(T148, T149, T153, T154)) → U16_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_in_aa(T153, T160))
U16_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_out_aa(T153, T160)) → U17_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_in_aa(T154, T178))
U17_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_out_aa(T154, T178)) → U18_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, app70_in_aaaa(T160, T148, T178, X273))
app70_in_aaaa(.(T201, T202), T203, T204, .(T201, X391)) → U20_aaaa(T201, T202, T203, T204, X391, app70_in_aaaa(T202, T203, T204, X391))
app70_in_aaaa([], T213, T214, .(T213, T214)) → app70_out_aaaa([], T213, T214, .(T213, T214))
U20_aaaa(T201, T202, T203, T204, X391, app70_out_aaaa(T202, T203, T204, X391)) → app70_out_aaaa(.(T201, T202), T203, T204, .(T201, X391))
U18_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, app70_out_aaaa(T160, T148, T178, X273)) → p56_out_aaaaaaa(T148, T149, T153, T154, T160, T178, X273)
U19_aa(T171, T172, X335, p56_out_aaaaaaa(T171, T172, X331, X332, X333, X334, X335)) → qs59_out_aa(.(T171, T172), X335)
U11_gaaaaaa(T148, T149, T153, T154, X271, X272, X273, qs59_out_aa(T153, X271)) → p56_out_gaaaaaa(T148, T149, T153, T154, X271, X272, X273)
p56_in_gaaaaaa(T148, T149, T153, T154, T160, X272, X273) → U12_gaaaaaa(T148, T149, T153, T154, T160, X272, X273, part20_in_gaaa(T148, T149, T153, T154))
U12_gaaaaaa(T148, T149, T153, T154, T160, X272, X273, part20_out_gaaa(T148, T149, T153, T154)) → U13_gaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_in_aa(T153, T160))
U13_gaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_out_aa(T153, T160)) → U14_gaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_in_aa(T154, X272))
U14_gaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_out_aa(T154, X272)) → p56_out_gaaaaaa(T148, T149, T153, T154, T160, X272, X273)
p56_in_gaaaaaa(T148, T149, T153, T154, T160, T178, X273) → U15_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, part20_in_gaaa(T148, T149, T153, T154))
U15_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, part20_out_gaaa(T148, T149, T153, T154)) → U16_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_in_aa(T153, T160))
U16_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_out_aa(T153, T160)) → U17_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_in_aa(T154, T178))
U17_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_out_aa(T154, T178)) → U18_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, app70_in_agaa(T160, T148, T178, X273))
app70_in_agaa(.(T201, T202), T203, T204, .(T201, X391)) → U20_agaa(T201, T202, T203, T204, X391, app70_in_agaa(T202, T203, T204, X391))
app70_in_agaa([], T213, T214, .(T213, T214)) → app70_out_agaa([], T213, T214, .(T213, T214))
U20_agaa(T201, T202, T203, T204, X391, app70_out_agaa(T202, T203, T204, X391)) → app70_out_agaa(.(T201, T202), T203, T204, .(T201, X391))
U18_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, app70_out_agaa(T160, T148, T178, X273)) → p56_out_gaaaaaa(T148, T149, T153, T154, T160, T178, X273)
U37_gaa(T148, T149, X273, p56_out_gaaaaaa(T148, T149, X269, X270, X271, X272, X273)) → qs51_out_gaa(T148, T149, X273)
U48_ag(T31, T33, T32, T8, qs51_out_gaa(T33, T53, X9)) → qs1_out_ag(.(T31, .(T33, T32)), T8)
U47_ag(T31, T33, T32, T8, part20_out_gaaa(T31, T32, T53, T54)) → U49_ag(T31, T33, T32, T8, T54, qs51_in_gaa(T33, T53, T131))
U49_ag(T31, T33, T32, T8, T54, qs51_out_gaa(T33, T53, T131)) → U50_ag(T31, T33, T32, T8, p52_in_aaagg(T54, X10, T131, T31, T8))
p52_in_aaagg(T54, X10, T131, T31, T8) → U33_aaagg(T54, X10, T131, T31, T8, qs80_in_aa(T54, X10))
qs80_in_aa(.(T230, T231), X452) → U22_aa(T230, T231, X452, part87_in_aaaa(T230, T231, X448, X449))
part87_in_aaaa(T256, .(T257, T258), .(T257, X503), X504) → U38_aaaa(T256, T257, T258, X503, X504, gt10_in_aa(T256, T257))
U38_aaaa(T256, T257, T258, X503, X504, gt10_out_aa(T256, T257)) → part87_out_aaaa(T256, .(T257, T258), .(T257, X503), X504)
part87_in_aaaa(T261, .(T257, T262), .(T257, X503), X504) → U39_aaaa(T261, T257, T262, X503, X504, gt10_in_aa(T261, T257))
U39_aaaa(T261, T257, T262, X503, X504, gt10_out_aa(T261, T257)) → U40_aaaa(T261, T257, T262, X503, X504, part20_in_gaaa(T261, T262, X503, X504))
U40_aaaa(T261, T257, T262, X503, X504, part20_out_gaaa(T261, T262, X503, X504)) → part87_out_aaaa(T261, .(T257, T262), .(T257, X503), X504)
part87_in_aaaa(T283, .(T284, T285), X554, .(T284, X555)) → U41_aaaa(T283, T284, T285, X554, X555, le100_in_aa(T283, T284))
le100_in_aa(s(T302), s(T303)) → U21_aa(T302, T303, le100_in_aa(T302, T303))
le100_in_aa(0, s(T310)) → le100_out_aa(0, s(T310))
le100_in_aa(0, 0) → le100_out_aa(0, 0)
U21_aa(T302, T303, le100_out_aa(T302, T303)) → le100_out_aa(s(T302), s(T303))
U41_aaaa(T283, T284, T285, X554, X555, le100_out_aa(T283, T284)) → part87_out_aaaa(T283, .(T284, T285), X554, .(T284, X555))
part87_in_aaaa(T288, .(T284, T289), X554, .(T284, X555)) → U42_aaaa(T288, T284, T289, X554, X555, le100_in_aa(T288, T284))
U42_aaaa(T288, T284, T289, X554, X555, le100_out_aa(T288, T284)) → U43_aaaa(T288, T284, T289, X554, X555, part20_in_gaaa(T288, T289, X554, X555))
U43_aaaa(T288, T284, T289, X554, X555, part20_out_gaaa(T288, T289, X554, X555)) → part87_out_aaaa(T288, .(T284, T289), X554, .(T284, X555))
part87_in_aaaa(T316, [], [], []) → part87_out_aaaa(T316, [], [], [])
U22_aa(T230, T231, X452, part87_out_aaaa(T230, T231, X448, X449)) → qs80_out_aa(.(T230, T231), X452)
qs80_in_aa(.(T237, T231), X452) → U23_aa(T237, T231, X452, part87_in_aaaa(T237, T231, T235, T236))
U23_aa(T237, T231, X452, part87_out_aaaa(T237, T231, T235, T236)) → U24_aa(T237, T231, X452, qs80_in_aa(T235, X450))
qs80_in_aa(.(T325, T231), X452) → U27_aa(T325, T231, X452, part87_in_aaaa(T325, T231, T235, T236))
U27_aa(T325, T231, X452, part87_out_aaaa(T325, T231, T235, T236)) → U28_aa(T325, T231, X452, T236, qs80_in_aa(T235, T319))
qs80_in_aa([], []) → qs80_out_aa([], [])
U28_aa(T325, T231, X452, T236, qs80_out_aa(T235, T319)) → U29_aa(T325, T231, X452, T319, qs80_in_aa(T236, T324))
U29_aa(T325, T231, X452, T319, qs80_out_aa(T236, T324)) → U30_aa(T325, T231, X452, app121_in_aaaa(T319, T325, T324, X452))
app121_in_aaaa(.(T348, T349), T352, T353, .(T348, X657)) → U31_aaaa(T348, T349, T352, T353, X657, app121_in_aaaa(T349, T352, T353, X657))
app121_in_aaaa([], T362, T363, .(T362, T363)) → app121_out_aaaa([], T362, T363, .(T362, T363))
U31_aaaa(T348, T349, T352, T353, X657, app121_out_aaaa(T349, T352, T353, X657)) → app121_out_aaaa(.(T348, T349), T352, T353, .(T348, X657))
U30_aa(T325, T231, X452, app121_out_aaaa(T319, T325, T324, X452)) → qs80_out_aa(.(T325, T231), X452)
U24_aa(T237, T231, X452, qs80_out_aa(T235, X450)) → qs80_out_aa(.(T237, T231), X452)
U23_aa(T237, T231, X452, part87_out_aaaa(T237, T231, T235, T236)) → U25_aa(T237, T231, X452, T236, qs80_in_aa(T235, T319))
U25_aa(T237, T231, X452, T236, qs80_out_aa(T235, T319)) → U26_aa(T237, T231, X452, qs80_in_aa(T236, X451))
U26_aa(T237, T231, X452, qs80_out_aa(T236, X451)) → qs80_out_aa(.(T237, T231), X452)
U33_aaagg(T54, X10, T131, T31, T8, qs80_out_aa(T54, X10)) → p52_out_aaagg(T54, X10, T131, T31, T8)
p52_in_aaagg(T54, T217, T131, T31, T8) → U34_aaagg(T54, T217, T131, T31, T8, qs80_in_aa(T54, T217))
U34_aaagg(T54, T217, T131, T31, T8, qs80_out_aa(T54, T217)) → U35_aaagg(T54, T217, T131, T31, T8, app81_in_agag(T131, T31, T217, T8))
app81_in_agag(.(T389, T390), T391, T394, .(T389, T393)) → U32_agag(T389, T390, T391, T394, T393, app81_in_agag(T390, T391, T394, T393))
app81_in_agag([], T404, T405, .(T404, T405)) → app81_out_agag([], T404, T405, .(T404, T405))
U32_agag(T389, T390, T391, T394, T393, app81_out_agag(T390, T391, T394, T393)) → app81_out_agag(.(T389, T390), T391, T394, .(T389, T393))
U35_aaagg(T54, T217, T131, T31, T8, app81_out_agag(T131, T31, T217, T8)) → p52_out_aaagg(T54, T217, T131, T31, T8)
U50_ag(T31, T33, T32, T8, p52_out_aaagg(T54, X10, T131, T31, T8)) → qs1_out_ag(.(T31, .(T33, T32)), T8)
qs1_in_ag(.(T421, .(T422, T423)), T8) → U51_ag(T421, T422, T423, T8, le100_in_aa(T421, T422))
U51_ag(T421, T422, T423, T8, le100_out_aa(T421, T422)) → qs1_out_ag(.(T421, .(T422, T423)), T8)
qs1_in_ag(.(T426, .(T428, T427)), T8) → U52_ag(T426, T428, T427, T8, le100_in_aa(T426, T428))
U52_ag(T426, T428, T427, T8, le100_out_aa(T426, T428)) → U53_ag(T426, T428, T427, T8, part20_in_gaaa(T426, T427, X740, X741))
U53_ag(T426, T428, T427, T8, part20_out_gaaa(T426, T427, X740, X741)) → qs1_out_ag(.(T426, .(T428, T427)), T8)
qs1_in_ag(.(T426, .(T436, T427)), T8) → U54_ag(T426, T436, T427, T8, le100_in_aa(T426, T436))
U54_ag(T426, T436, T427, T8, le100_out_aa(T426, T436)) → U55_ag(T426, T436, T427, T8, part20_in_gaaa(T426, T427, T434, T435))
U55_ag(T426, T436, T427, T8, part20_out_gaaa(T426, T427, T434, T435)) → U56_ag(T426, T436, T427, T8, qs80_in_aa(T434, X9))
U56_ag(T426, T436, T427, T8, qs80_out_aa(T434, X9)) → qs1_out_ag(.(T426, .(T436, T427)), T8)
U55_ag(T426, T436, T427, T8, part20_out_gaaa(T426, T427, T434, T435)) → U57_ag(T426, T436, T427, T8, T435, qs80_in_aa(T434, T442))
U57_ag(T426, T436, T427, T8, T435, qs80_out_aa(T434, T442)) → U58_ag(T426, T436, T427, T8, p52_in_aaagg(.(T436, T435), X10, T442, T426, T8))
U58_ag(T426, T436, T427, T8, p52_out_aaagg(.(T436, T435), X10, T442, T426, T8)) → qs1_out_ag(.(T426, .(T436, T427)), T8)
qs1_in_ag(.(T452, []), T8) → U59_ag(T452, T8, qs155_in_a(X9))
qs155_in_a([]) → qs155_out_a([])
U59_ag(T452, T8, qs155_out_a(X9)) → qs1_out_ag(.(T452, []), T8)
qs1_in_ag(.(T452, []), T8) → U60_ag(T452, T8, qs155_in_a(T455))
U60_ag(T452, T8, qs155_out_a(T455)) → U61_ag(T452, T8, qs155_in_a(X10))
U61_ag(T452, T8, qs155_out_a(X10)) → qs1_out_ag(.(T452, []), T8)
U60_ag(T452, T8, qs155_out_a(T455)) → U62_ag(T452, T8, T455, qs155_in_a(T460))
U62_ag(T452, T8, T455, qs155_out_a(T460)) → U63_ag(T452, T8, app162_in_gagg(T455, T452, T460, T8))
app162_in_gagg(.(T486, T487), T491, T489, .(T486, T490)) → U36_gagg(T486, T487, T491, T489, T490, app162_in_gagg(T487, T491, T489, T490))
app162_in_gagg([], T501, T502, .(T501, T502)) → app162_out_gagg([], T501, T502, .(T501, T502))
U36_gagg(T486, T487, T491, T489, T490, app162_out_gagg(T487, T491, T489, T490)) → app162_out_gagg(.(T486, T487), T491, T489, .(T486, T490))
U63_ag(T452, T8, app162_out_gagg(T455, T452, T460, T8)) → qs1_out_ag(.(T452, []), T8)
qs1_in_ag([], []) → qs1_out_ag([], [])
GT10_IN_GA(s(T46), s(T47)) → GT10_IN_GA(T46, T47)
GT10_IN_GA(s(T46)) → GT10_IN_GA(T46)
From the DPs we obtained the following set of size-change graphs:
PART20_IN_GAAA(T70, .(T73, T77), .(T73, X119), X120) → U3_GAAA(T70, T73, T77, X119, X120, gt10_in_ga(T70, T73))
U3_GAAA(T70, T73, T77, X119, X120, gt10_out_ga(T70, T73)) → PART20_IN_GAAA(T70, T77, X119, X120)
PART20_IN_GAAA(T95, .(T98, T102), X170, .(T98, X171)) → U6_GAAA(T95, T98, T102, X170, X171, le33_in_ga(T95, T98))
U6_GAAA(T95, T98, T102, X170, X171, le33_out_ga(T95, T98)) → PART20_IN_GAAA(T95, T102, X170, X171)
qs1_in_ag(.(T26, .(T27, T28)), T8) → U44_ag(T26, T27, T28, T8, gt10_in_aa(T26, T27))
gt10_in_aa(s(T46), s(T47)) → U1_aa(T46, T47, gt10_in_aa(T46, T47))
gt10_in_aa(s(0), 0) → gt10_out_aa(s(0), 0)
U1_aa(T46, T47, gt10_out_aa(T46, T47)) → gt10_out_aa(s(T46), s(T47))
U44_ag(T26, T27, T28, T8, gt10_out_aa(T26, T27)) → qs1_out_ag(.(T26, .(T27, T28)), T8)
qs1_in_ag(.(T31, .(T33, T32)), T8) → U45_ag(T31, T33, T32, T8, gt10_in_aa(T31, T33))
U45_ag(T31, T33, T32, T8, gt10_out_aa(T31, T33)) → U46_ag(T31, T33, T32, T8, part20_in_gaaa(T31, T32, X47, X48))
part20_in_gaaa(T70, .(T73, T74), .(T73, X119), X120) → U2_gaaa(T70, T73, T74, X119, X120, gt10_in_ga(T70, T73))
gt10_in_ga(s(T46), s(T47)) → U1_ga(T46, T47, gt10_in_ga(T46, T47))
gt10_in_ga(s(0), 0) → gt10_out_ga(s(0), 0)
U1_ga(T46, T47, gt10_out_ga(T46, T47)) → gt10_out_ga(s(T46), s(T47))
U2_gaaa(T70, T73, T74, X119, X120, gt10_out_ga(T70, T73)) → part20_out_gaaa(T70, .(T73, T74), .(T73, X119), X120)
part20_in_gaaa(T70, .(T73, T77), .(T73, X119), X120) → U3_gaaa(T70, T73, T77, X119, X120, gt10_in_ga(T70, T73))
U3_gaaa(T70, T73, T77, X119, X120, gt10_out_ga(T70, T73)) → U4_gaaa(T70, T73, T77, X119, X120, part20_in_gaaa(T70, T77, X119, X120))
part20_in_gaaa(T95, .(T98, T99), X170, .(T98, X171)) → U5_gaaa(T95, T98, T99, X170, X171, le33_in_ga(T95, T98))
le33_in_ga(s(T113), s(T115)) → U8_ga(T113, T115, le33_in_ga(T113, T115))
le33_in_ga(0, s(T122)) → le33_out_ga(0, s(T122))
le33_in_ga(0, 0) → le33_out_ga(0, 0)
U8_ga(T113, T115, le33_out_ga(T113, T115)) → le33_out_ga(s(T113), s(T115))
U5_gaaa(T95, T98, T99, X170, X171, le33_out_ga(T95, T98)) → part20_out_gaaa(T95, .(T98, T99), X170, .(T98, X171))
part20_in_gaaa(T95, .(T98, T102), X170, .(T98, X171)) → U6_gaaa(T95, T98, T102, X170, X171, le33_in_ga(T95, T98))
U6_gaaa(T95, T98, T102, X170, X171, le33_out_ga(T95, T98)) → U7_gaaa(T95, T98, T102, X170, X171, part20_in_gaaa(T95, T102, X170, X171))
part20_in_gaaa(T128, [], [], []) → part20_out_gaaa(T128, [], [], [])
U7_gaaa(T95, T98, T102, X170, X171, part20_out_gaaa(T95, T102, X170, X171)) → part20_out_gaaa(T95, .(T98, T102), X170, .(T98, X171))
U4_gaaa(T70, T73, T77, X119, X120, part20_out_gaaa(T70, T77, X119, X120)) → part20_out_gaaa(T70, .(T73, T77), .(T73, X119), X120)
U46_ag(T31, T33, T32, T8, part20_out_gaaa(T31, T32, X47, X48)) → qs1_out_ag(.(T31, .(T33, T32)), T8)
U45_ag(T31, T33, T32, T8, gt10_out_aa(T31, T33)) → U47_ag(T31, T33, T32, T8, part20_in_gaaa(T31, T32, T53, T54))
U47_ag(T31, T33, T32, T8, part20_out_gaaa(T31, T32, T53, T54)) → U48_ag(T31, T33, T32, T8, qs51_in_gaa(T33, T53, X9))
qs51_in_gaa(T148, T149, X273) → U37_gaa(T148, T149, X273, p56_in_gaaaaaa(T148, T149, X269, X270, X271, X272, X273))
p56_in_gaaaaaa(T148, T149, X269, X270, X271, X272, X273) → U9_gaaaaaa(T148, T149, X269, X270, X271, X272, X273, part20_in_gaaa(T148, T149, X269, X270))
U9_gaaaaaa(T148, T149, X269, X270, X271, X272, X273, part20_out_gaaa(T148, T149, X269, X270)) → p56_out_gaaaaaa(T148, T149, X269, X270, X271, X272, X273)
p56_in_gaaaaaa(T148, T149, T153, T154, X271, X272, X273) → U10_gaaaaaa(T148, T149, T153, T154, X271, X272, X273, part20_in_gaaa(T148, T149, T153, T154))
U10_gaaaaaa(T148, T149, T153, T154, X271, X272, X273, part20_out_gaaa(T148, T149, T153, T154)) → U11_gaaaaaa(T148, T149, T153, T154, X271, X272, X273, qs59_in_aa(T153, X271))
qs59_in_aa(.(T171, T172), X335) → U19_aa(T171, T172, X335, p56_in_aaaaaaa(T171, T172, X331, X332, X333, X334, X335))
p56_in_aaaaaaa(T148, T149, X269, X270, X271, X272, X273) → U9_aaaaaaa(T148, T149, X269, X270, X271, X272, X273, part20_in_aaaa(T148, T149, X269, X270))
part20_in_aaaa(T70, .(T73, T74), .(T73, X119), X120) → U2_aaaa(T70, T73, T74, X119, X120, gt10_in_aa(T70, T73))
U2_aaaa(T70, T73, T74, X119, X120, gt10_out_aa(T70, T73)) → part20_out_aaaa(T70, .(T73, T74), .(T73, X119), X120)
part20_in_aaaa(T70, .(T73, T77), .(T73, X119), X120) → U3_aaaa(T70, T73, T77, X119, X120, gt10_in_aa(T70, T73))
U3_aaaa(T70, T73, T77, X119, X120, gt10_out_aa(T70, T73)) → U4_aaaa(T70, T73, T77, X119, X120, part20_in_gaaa(T70, T77, X119, X120))
U4_aaaa(T70, T73, T77, X119, X120, part20_out_gaaa(T70, T77, X119, X120)) → part20_out_aaaa(T70, .(T73, T77), .(T73, X119), X120)
part20_in_aaaa(T95, .(T98, T99), X170, .(T98, X171)) → U5_aaaa(T95, T98, T99, X170, X171, le33_in_aa(T95, T98))
le33_in_aa(s(T113), s(T115)) → U8_aa(T113, T115, le33_in_aa(T113, T115))
le33_in_aa(0, s(T122)) → le33_out_aa(0, s(T122))
le33_in_aa(0, 0) → le33_out_aa(0, 0)
U8_aa(T113, T115, le33_out_aa(T113, T115)) → le33_out_aa(s(T113), s(T115))
U5_aaaa(T95, T98, T99, X170, X171, le33_out_aa(T95, T98)) → part20_out_aaaa(T95, .(T98, T99), X170, .(T98, X171))
part20_in_aaaa(T95, .(T98, T102), X170, .(T98, X171)) → U6_aaaa(T95, T98, T102, X170, X171, le33_in_aa(T95, T98))
U6_aaaa(T95, T98, T102, X170, X171, le33_out_aa(T95, T98)) → U7_aaaa(T95, T98, T102, X170, X171, part20_in_gaaa(T95, T102, X170, X171))
U7_aaaa(T95, T98, T102, X170, X171, part20_out_gaaa(T95, T102, X170, X171)) → part20_out_aaaa(T95, .(T98, T102), X170, .(T98, X171))
part20_in_aaaa(T128, [], [], []) → part20_out_aaaa(T128, [], [], [])
U9_aaaaaaa(T148, T149, X269, X270, X271, X272, X273, part20_out_aaaa(T148, T149, X269, X270)) → p56_out_aaaaaaa(T148, T149, X269, X270, X271, X272, X273)
p56_in_aaaaaaa(T148, T149, T153, T154, X271, X272, X273) → U10_aaaaaaa(T148, T149, T153, T154, X271, X272, X273, part20_in_aaaa(T148, T149, T153, T154))
U10_aaaaaaa(T148, T149, T153, T154, X271, X272, X273, part20_out_aaaa(T148, T149, T153, T154)) → U11_aaaaaaa(T148, T149, T153, T154, X271, X272, X273, qs59_in_aa(T153, X271))
qs59_in_aa([], []) → qs59_out_aa([], [])
U11_aaaaaaa(T148, T149, T153, T154, X271, X272, X273, qs59_out_aa(T153, X271)) → p56_out_aaaaaaa(T148, T149, T153, T154, X271, X272, X273)
p56_in_aaaaaaa(T148, T149, T153, T154, T160, X272, X273) → U12_aaaaaaa(T148, T149, T153, T154, T160, X272, X273, part20_in_aaaa(T148, T149, T153, T154))
U12_aaaaaaa(T148, T149, T153, T154, T160, X272, X273, part20_out_aaaa(T148, T149, T153, T154)) → U13_aaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_in_aa(T153, T160))
U13_aaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_out_aa(T153, T160)) → U14_aaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_in_aa(T154, X272))
U14_aaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_out_aa(T154, X272)) → p56_out_aaaaaaa(T148, T149, T153, T154, T160, X272, X273)
p56_in_aaaaaaa(T148, T149, T153, T154, T160, T178, X273) → U15_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, part20_in_aaaa(T148, T149, T153, T154))
U15_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, part20_out_aaaa(T148, T149, T153, T154)) → U16_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_in_aa(T153, T160))
U16_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_out_aa(T153, T160)) → U17_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_in_aa(T154, T178))
U17_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_out_aa(T154, T178)) → U18_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, app70_in_aaaa(T160, T148, T178, X273))
app70_in_aaaa(.(T201, T202), T203, T204, .(T201, X391)) → U20_aaaa(T201, T202, T203, T204, X391, app70_in_aaaa(T202, T203, T204, X391))
app70_in_aaaa([], T213, T214, .(T213, T214)) → app70_out_aaaa([], T213, T214, .(T213, T214))
U20_aaaa(T201, T202, T203, T204, X391, app70_out_aaaa(T202, T203, T204, X391)) → app70_out_aaaa(.(T201, T202), T203, T204, .(T201, X391))
U18_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, app70_out_aaaa(T160, T148, T178, X273)) → p56_out_aaaaaaa(T148, T149, T153, T154, T160, T178, X273)
U19_aa(T171, T172, X335, p56_out_aaaaaaa(T171, T172, X331, X332, X333, X334, X335)) → qs59_out_aa(.(T171, T172), X335)
U11_gaaaaaa(T148, T149, T153, T154, X271, X272, X273, qs59_out_aa(T153, X271)) → p56_out_gaaaaaa(T148, T149, T153, T154, X271, X272, X273)
p56_in_gaaaaaa(T148, T149, T153, T154, T160, X272, X273) → U12_gaaaaaa(T148, T149, T153, T154, T160, X272, X273, part20_in_gaaa(T148, T149, T153, T154))
U12_gaaaaaa(T148, T149, T153, T154, T160, X272, X273, part20_out_gaaa(T148, T149, T153, T154)) → U13_gaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_in_aa(T153, T160))
U13_gaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_out_aa(T153, T160)) → U14_gaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_in_aa(T154, X272))
U14_gaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_out_aa(T154, X272)) → p56_out_gaaaaaa(T148, T149, T153, T154, T160, X272, X273)
p56_in_gaaaaaa(T148, T149, T153, T154, T160, T178, X273) → U15_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, part20_in_gaaa(T148, T149, T153, T154))
U15_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, part20_out_gaaa(T148, T149, T153, T154)) → U16_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_in_aa(T153, T160))
U16_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_out_aa(T153, T160)) → U17_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_in_aa(T154, T178))
U17_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_out_aa(T154, T178)) → U18_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, app70_in_agaa(T160, T148, T178, X273))
app70_in_agaa(.(T201, T202), T203, T204, .(T201, X391)) → U20_agaa(T201, T202, T203, T204, X391, app70_in_agaa(T202, T203, T204, X391))
app70_in_agaa([], T213, T214, .(T213, T214)) → app70_out_agaa([], T213, T214, .(T213, T214))
U20_agaa(T201, T202, T203, T204, X391, app70_out_agaa(T202, T203, T204, X391)) → app70_out_agaa(.(T201, T202), T203, T204, .(T201, X391))
U18_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, app70_out_agaa(T160, T148, T178, X273)) → p56_out_gaaaaaa(T148, T149, T153, T154, T160, T178, X273)
U37_gaa(T148, T149, X273, p56_out_gaaaaaa(T148, T149, X269, X270, X271, X272, X273)) → qs51_out_gaa(T148, T149, X273)
U48_ag(T31, T33, T32, T8, qs51_out_gaa(T33, T53, X9)) → qs1_out_ag(.(T31, .(T33, T32)), T8)
U47_ag(T31, T33, T32, T8, part20_out_gaaa(T31, T32, T53, T54)) → U49_ag(T31, T33, T32, T8, T54, qs51_in_gaa(T33, T53, T131))
U49_ag(T31, T33, T32, T8, T54, qs51_out_gaa(T33, T53, T131)) → U50_ag(T31, T33, T32, T8, p52_in_aaagg(T54, X10, T131, T31, T8))
p52_in_aaagg(T54, X10, T131, T31, T8) → U33_aaagg(T54, X10, T131, T31, T8, qs80_in_aa(T54, X10))
qs80_in_aa(.(T230, T231), X452) → U22_aa(T230, T231, X452, part87_in_aaaa(T230, T231, X448, X449))
part87_in_aaaa(T256, .(T257, T258), .(T257, X503), X504) → U38_aaaa(T256, T257, T258, X503, X504, gt10_in_aa(T256, T257))
U38_aaaa(T256, T257, T258, X503, X504, gt10_out_aa(T256, T257)) → part87_out_aaaa(T256, .(T257, T258), .(T257, X503), X504)
part87_in_aaaa(T261, .(T257, T262), .(T257, X503), X504) → U39_aaaa(T261, T257, T262, X503, X504, gt10_in_aa(T261, T257))
U39_aaaa(T261, T257, T262, X503, X504, gt10_out_aa(T261, T257)) → U40_aaaa(T261, T257, T262, X503, X504, part20_in_gaaa(T261, T262, X503, X504))
U40_aaaa(T261, T257, T262, X503, X504, part20_out_gaaa(T261, T262, X503, X504)) → part87_out_aaaa(T261, .(T257, T262), .(T257, X503), X504)
part87_in_aaaa(T283, .(T284, T285), X554, .(T284, X555)) → U41_aaaa(T283, T284, T285, X554, X555, le100_in_aa(T283, T284))
le100_in_aa(s(T302), s(T303)) → U21_aa(T302, T303, le100_in_aa(T302, T303))
le100_in_aa(0, s(T310)) → le100_out_aa(0, s(T310))
le100_in_aa(0, 0) → le100_out_aa(0, 0)
U21_aa(T302, T303, le100_out_aa(T302, T303)) → le100_out_aa(s(T302), s(T303))
U41_aaaa(T283, T284, T285, X554, X555, le100_out_aa(T283, T284)) → part87_out_aaaa(T283, .(T284, T285), X554, .(T284, X555))
part87_in_aaaa(T288, .(T284, T289), X554, .(T284, X555)) → U42_aaaa(T288, T284, T289, X554, X555, le100_in_aa(T288, T284))
U42_aaaa(T288, T284, T289, X554, X555, le100_out_aa(T288, T284)) → U43_aaaa(T288, T284, T289, X554, X555, part20_in_gaaa(T288, T289, X554, X555))
U43_aaaa(T288, T284, T289, X554, X555, part20_out_gaaa(T288, T289, X554, X555)) → part87_out_aaaa(T288, .(T284, T289), X554, .(T284, X555))
part87_in_aaaa(T316, [], [], []) → part87_out_aaaa(T316, [], [], [])
U22_aa(T230, T231, X452, part87_out_aaaa(T230, T231, X448, X449)) → qs80_out_aa(.(T230, T231), X452)
qs80_in_aa(.(T237, T231), X452) → U23_aa(T237, T231, X452, part87_in_aaaa(T237, T231, T235, T236))
U23_aa(T237, T231, X452, part87_out_aaaa(T237, T231, T235, T236)) → U24_aa(T237, T231, X452, qs80_in_aa(T235, X450))
qs80_in_aa(.(T325, T231), X452) → U27_aa(T325, T231, X452, part87_in_aaaa(T325, T231, T235, T236))
U27_aa(T325, T231, X452, part87_out_aaaa(T325, T231, T235, T236)) → U28_aa(T325, T231, X452, T236, qs80_in_aa(T235, T319))
qs80_in_aa([], []) → qs80_out_aa([], [])
U28_aa(T325, T231, X452, T236, qs80_out_aa(T235, T319)) → U29_aa(T325, T231, X452, T319, qs80_in_aa(T236, T324))
U29_aa(T325, T231, X452, T319, qs80_out_aa(T236, T324)) → U30_aa(T325, T231, X452, app121_in_aaaa(T319, T325, T324, X452))
app121_in_aaaa(.(T348, T349), T352, T353, .(T348, X657)) → U31_aaaa(T348, T349, T352, T353, X657, app121_in_aaaa(T349, T352, T353, X657))
app121_in_aaaa([], T362, T363, .(T362, T363)) → app121_out_aaaa([], T362, T363, .(T362, T363))
U31_aaaa(T348, T349, T352, T353, X657, app121_out_aaaa(T349, T352, T353, X657)) → app121_out_aaaa(.(T348, T349), T352, T353, .(T348, X657))
U30_aa(T325, T231, X452, app121_out_aaaa(T319, T325, T324, X452)) → qs80_out_aa(.(T325, T231), X452)
U24_aa(T237, T231, X452, qs80_out_aa(T235, X450)) → qs80_out_aa(.(T237, T231), X452)
U23_aa(T237, T231, X452, part87_out_aaaa(T237, T231, T235, T236)) → U25_aa(T237, T231, X452, T236, qs80_in_aa(T235, T319))
U25_aa(T237, T231, X452, T236, qs80_out_aa(T235, T319)) → U26_aa(T237, T231, X452, qs80_in_aa(T236, X451))
U26_aa(T237, T231, X452, qs80_out_aa(T236, X451)) → qs80_out_aa(.(T237, T231), X452)
U33_aaagg(T54, X10, T131, T31, T8, qs80_out_aa(T54, X10)) → p52_out_aaagg(T54, X10, T131, T31, T8)
p52_in_aaagg(T54, T217, T131, T31, T8) → U34_aaagg(T54, T217, T131, T31, T8, qs80_in_aa(T54, T217))
U34_aaagg(T54, T217, T131, T31, T8, qs80_out_aa(T54, T217)) → U35_aaagg(T54, T217, T131, T31, T8, app81_in_agag(T131, T31, T217, T8))
app81_in_agag(.(T389, T390), T391, T394, .(T389, T393)) → U32_agag(T389, T390, T391, T394, T393, app81_in_agag(T390, T391, T394, T393))
app81_in_agag([], T404, T405, .(T404, T405)) → app81_out_agag([], T404, T405, .(T404, T405))
U32_agag(T389, T390, T391, T394, T393, app81_out_agag(T390, T391, T394, T393)) → app81_out_agag(.(T389, T390), T391, T394, .(T389, T393))
U35_aaagg(T54, T217, T131, T31, T8, app81_out_agag(T131, T31, T217, T8)) → p52_out_aaagg(T54, T217, T131, T31, T8)
U50_ag(T31, T33, T32, T8, p52_out_aaagg(T54, X10, T131, T31, T8)) → qs1_out_ag(.(T31, .(T33, T32)), T8)
qs1_in_ag(.(T421, .(T422, T423)), T8) → U51_ag(T421, T422, T423, T8, le100_in_aa(T421, T422))
U51_ag(T421, T422, T423, T8, le100_out_aa(T421, T422)) → qs1_out_ag(.(T421, .(T422, T423)), T8)
qs1_in_ag(.(T426, .(T428, T427)), T8) → U52_ag(T426, T428, T427, T8, le100_in_aa(T426, T428))
U52_ag(T426, T428, T427, T8, le100_out_aa(T426, T428)) → U53_ag(T426, T428, T427, T8, part20_in_gaaa(T426, T427, X740, X741))
U53_ag(T426, T428, T427, T8, part20_out_gaaa(T426, T427, X740, X741)) → qs1_out_ag(.(T426, .(T428, T427)), T8)
qs1_in_ag(.(T426, .(T436, T427)), T8) → U54_ag(T426, T436, T427, T8, le100_in_aa(T426, T436))
U54_ag(T426, T436, T427, T8, le100_out_aa(T426, T436)) → U55_ag(T426, T436, T427, T8, part20_in_gaaa(T426, T427, T434, T435))
U55_ag(T426, T436, T427, T8, part20_out_gaaa(T426, T427, T434, T435)) → U56_ag(T426, T436, T427, T8, qs80_in_aa(T434, X9))
U56_ag(T426, T436, T427, T8, qs80_out_aa(T434, X9)) → qs1_out_ag(.(T426, .(T436, T427)), T8)
U55_ag(T426, T436, T427, T8, part20_out_gaaa(T426, T427, T434, T435)) → U57_ag(T426, T436, T427, T8, T435, qs80_in_aa(T434, T442))
U57_ag(T426, T436, T427, T8, T435, qs80_out_aa(T434, T442)) → U58_ag(T426, T436, T427, T8, p52_in_aaagg(.(T436, T435), X10, T442, T426, T8))
U58_ag(T426, T436, T427, T8, p52_out_aaagg(.(T436, T435), X10, T442, T426, T8)) → qs1_out_ag(.(T426, .(T436, T427)), T8)
qs1_in_ag(.(T452, []), T8) → U59_ag(T452, T8, qs155_in_a(X9))
qs155_in_a([]) → qs155_out_a([])
U59_ag(T452, T8, qs155_out_a(X9)) → qs1_out_ag(.(T452, []), T8)
qs1_in_ag(.(T452, []), T8) → U60_ag(T452, T8, qs155_in_a(T455))
U60_ag(T452, T8, qs155_out_a(T455)) → U61_ag(T452, T8, qs155_in_a(X10))
U61_ag(T452, T8, qs155_out_a(X10)) → qs1_out_ag(.(T452, []), T8)
U60_ag(T452, T8, qs155_out_a(T455)) → U62_ag(T452, T8, T455, qs155_in_a(T460))
U62_ag(T452, T8, T455, qs155_out_a(T460)) → U63_ag(T452, T8, app162_in_gagg(T455, T452, T460, T8))
app162_in_gagg(.(T486, T487), T491, T489, .(T486, T490)) → U36_gagg(T486, T487, T491, T489, T490, app162_in_gagg(T487, T491, T489, T490))
app162_in_gagg([], T501, T502, .(T501, T502)) → app162_out_gagg([], T501, T502, .(T501, T502))
U36_gagg(T486, T487, T491, T489, T490, app162_out_gagg(T487, T491, T489, T490)) → app162_out_gagg(.(T486, T487), T491, T489, .(T486, T490))
U63_ag(T452, T8, app162_out_gagg(T455, T452, T460, T8)) → qs1_out_ag(.(T452, []), T8)
qs1_in_ag([], []) → qs1_out_ag([], [])
PART20_IN_GAAA(T70, .(T73, T77), .(T73, X119), X120) → U3_GAAA(T70, T73, T77, X119, X120, gt10_in_ga(T70, T73))
U3_GAAA(T70, T73, T77, X119, X120, gt10_out_ga(T70, T73)) → PART20_IN_GAAA(T70, T77, X119, X120)
PART20_IN_GAAA(T95, .(T98, T102), X170, .(T98, X171)) → U6_GAAA(T95, T98, T102, X170, X171, le33_in_ga(T95, T98))
U6_GAAA(T95, T98, T102, X170, X171, le33_out_ga(T95, T98)) → PART20_IN_GAAA(T95, T102, X170, X171)
gt10_in_ga(s(T46), s(T47)) → U1_ga(T46, T47, gt10_in_ga(T46, T47))
gt10_in_ga(s(0), 0) → gt10_out_ga(s(0), 0)
le33_in_ga(s(T113), s(T115)) → U8_ga(T113, T115, le33_in_ga(T113, T115))
le33_in_ga(0, s(T122)) → le33_out_ga(0, s(T122))
le33_in_ga(0, 0) → le33_out_ga(0, 0)
U1_ga(T46, T47, gt10_out_ga(T46, T47)) → gt10_out_ga(s(T46), s(T47))
U8_ga(T113, T115, le33_out_ga(T113, T115)) → le33_out_ga(s(T113), s(T115))
PART20_IN_GAAA(T70) → U3_GAAA(T70, gt10_in_ga(T70))
U3_GAAA(T70, gt10_out_ga(T73)) → PART20_IN_GAAA(T70)
PART20_IN_GAAA(T95) → U6_GAAA(T95, le33_in_ga(T95))
U6_GAAA(T95, le33_out_ga) → PART20_IN_GAAA(T95)
gt10_in_ga(s(T46)) → U1_ga(gt10_in_ga(T46))
gt10_in_ga(s(0)) → gt10_out_ga(0)
le33_in_ga(s(T113)) → U8_ga(le33_in_ga(T113))
le33_in_ga(0) → le33_out_ga
U1_ga(gt10_out_ga(T47)) → gt10_out_ga(s(T47))
U8_ga(le33_out_ga) → le33_out_ga
gt10_in_ga(x0)
le33_in_ga(x0)
U1_ga(x0)
U8_ga(x0)
PART20_IN_GAAA(s(x0)) → U3_GAAA(s(x0), U1_ga(gt10_in_ga(x0)))
PART20_IN_GAAA(s(0)) → U3_GAAA(s(0), gt10_out_ga(0))
U3_GAAA(T70, gt10_out_ga(T73)) → PART20_IN_GAAA(T70)
PART20_IN_GAAA(T95) → U6_GAAA(T95, le33_in_ga(T95))
U6_GAAA(T95, le33_out_ga) → PART20_IN_GAAA(T95)
PART20_IN_GAAA(s(x0)) → U3_GAAA(s(x0), U1_ga(gt10_in_ga(x0)))
PART20_IN_GAAA(s(0)) → U3_GAAA(s(0), gt10_out_ga(0))
gt10_in_ga(s(T46)) → U1_ga(gt10_in_ga(T46))
gt10_in_ga(s(0)) → gt10_out_ga(0)
le33_in_ga(s(T113)) → U8_ga(le33_in_ga(T113))
le33_in_ga(0) → le33_out_ga
U1_ga(gt10_out_ga(T47)) → gt10_out_ga(s(T47))
U8_ga(le33_out_ga) → le33_out_ga
gt10_in_ga(x0)
le33_in_ga(x0)
U1_ga(x0)
U8_ga(x0)
PART20_IN_GAAA(s(x0)) → U6_GAAA(s(x0), U8_ga(le33_in_ga(x0)))
PART20_IN_GAAA(0) → U6_GAAA(0, le33_out_ga)
U3_GAAA(T70, gt10_out_ga(T73)) → PART20_IN_GAAA(T70)
U6_GAAA(T95, le33_out_ga) → PART20_IN_GAAA(T95)
PART20_IN_GAAA(s(x0)) → U3_GAAA(s(x0), U1_ga(gt10_in_ga(x0)))
PART20_IN_GAAA(s(0)) → U3_GAAA(s(0), gt10_out_ga(0))
PART20_IN_GAAA(s(x0)) → U6_GAAA(s(x0), U8_ga(le33_in_ga(x0)))
PART20_IN_GAAA(0) → U6_GAAA(0, le33_out_ga)
gt10_in_ga(s(T46)) → U1_ga(gt10_in_ga(T46))
gt10_in_ga(s(0)) → gt10_out_ga(0)
le33_in_ga(s(T113)) → U8_ga(le33_in_ga(T113))
le33_in_ga(0) → le33_out_ga
U1_ga(gt10_out_ga(T47)) → gt10_out_ga(s(T47))
U8_ga(le33_out_ga) → le33_out_ga
gt10_in_ga(x0)
le33_in_ga(x0)
U1_ga(x0)
U8_ga(x0)
U3_GAAA(s(z0), gt10_out_ga(x1)) → PART20_IN_GAAA(s(z0))
U3_GAAA(s(0), gt10_out_ga(0)) → PART20_IN_GAAA(s(0))
U6_GAAA(T95, le33_out_ga) → PART20_IN_GAAA(T95)
PART20_IN_GAAA(s(x0)) → U3_GAAA(s(x0), U1_ga(gt10_in_ga(x0)))
PART20_IN_GAAA(s(0)) → U3_GAAA(s(0), gt10_out_ga(0))
PART20_IN_GAAA(s(x0)) → U6_GAAA(s(x0), U8_ga(le33_in_ga(x0)))
PART20_IN_GAAA(0) → U6_GAAA(0, le33_out_ga)
U3_GAAA(s(z0), gt10_out_ga(x1)) → PART20_IN_GAAA(s(z0))
U3_GAAA(s(0), gt10_out_ga(0)) → PART20_IN_GAAA(s(0))
gt10_in_ga(s(T46)) → U1_ga(gt10_in_ga(T46))
gt10_in_ga(s(0)) → gt10_out_ga(0)
le33_in_ga(s(T113)) → U8_ga(le33_in_ga(T113))
le33_in_ga(0) → le33_out_ga
U1_ga(gt10_out_ga(T47)) → gt10_out_ga(s(T47))
U8_ga(le33_out_ga) → le33_out_ga
gt10_in_ga(x0)
le33_in_ga(x0)
U1_ga(x0)
U8_ga(x0)
U6_GAAA(s(z0), le33_out_ga) → PART20_IN_GAAA(s(z0))
U6_GAAA(0, le33_out_ga) → PART20_IN_GAAA(0)
PART20_IN_GAAA(s(x0)) → U3_GAAA(s(x0), U1_ga(gt10_in_ga(x0)))
PART20_IN_GAAA(s(0)) → U3_GAAA(s(0), gt10_out_ga(0))
PART20_IN_GAAA(s(x0)) → U6_GAAA(s(x0), U8_ga(le33_in_ga(x0)))
PART20_IN_GAAA(0) → U6_GAAA(0, le33_out_ga)
U3_GAAA(s(z0), gt10_out_ga(x1)) → PART20_IN_GAAA(s(z0))
U3_GAAA(s(0), gt10_out_ga(0)) → PART20_IN_GAAA(s(0))
U6_GAAA(s(z0), le33_out_ga) → PART20_IN_GAAA(s(z0))
U6_GAAA(0, le33_out_ga) → PART20_IN_GAAA(0)
gt10_in_ga(s(T46)) → U1_ga(gt10_in_ga(T46))
gt10_in_ga(s(0)) → gt10_out_ga(0)
le33_in_ga(s(T113)) → U8_ga(le33_in_ga(T113))
le33_in_ga(0) → le33_out_ga
U1_ga(gt10_out_ga(T47)) → gt10_out_ga(s(T47))
U8_ga(le33_out_ga) → le33_out_ga
gt10_in_ga(x0)
le33_in_ga(x0)
U1_ga(x0)
U8_ga(x0)
U6_GAAA(0, le33_out_ga) → PART20_IN_GAAA(0)
PART20_IN_GAAA(0) → U6_GAAA(0, le33_out_ga)
gt10_in_ga(s(T46)) → U1_ga(gt10_in_ga(T46))
gt10_in_ga(s(0)) → gt10_out_ga(0)
le33_in_ga(s(T113)) → U8_ga(le33_in_ga(T113))
le33_in_ga(0) → le33_out_ga
U1_ga(gt10_out_ga(T47)) → gt10_out_ga(s(T47))
U8_ga(le33_out_ga) → le33_out_ga
gt10_in_ga(x0)
le33_in_ga(x0)
U1_ga(x0)
U8_ga(x0)
U6_GAAA(0, le33_out_ga) → PART20_IN_GAAA(0)
PART20_IN_GAAA(0) → U6_GAAA(0, le33_out_ga)
gt10_in_ga(x0)
le33_in_ga(x0)
U1_ga(x0)
U8_ga(x0)
gt10_in_ga(x0)
le33_in_ga(x0)
U1_ga(x0)
U8_ga(x0)
U6_GAAA(0, le33_out_ga) → PART20_IN_GAAA(0)
PART20_IN_GAAA(0) → U6_GAAA(0, le33_out_ga)
U3_GAAA(s(z0), gt10_out_ga(x1)) → PART20_IN_GAAA(s(z0))
PART20_IN_GAAA(s(x0)) → U3_GAAA(s(x0), U1_ga(gt10_in_ga(x0)))
U3_GAAA(s(0), gt10_out_ga(0)) → PART20_IN_GAAA(s(0))
PART20_IN_GAAA(s(0)) → U3_GAAA(s(0), gt10_out_ga(0))
PART20_IN_GAAA(s(x0)) → U6_GAAA(s(x0), U8_ga(le33_in_ga(x0)))
U6_GAAA(s(z0), le33_out_ga) → PART20_IN_GAAA(s(z0))
gt10_in_ga(s(T46)) → U1_ga(gt10_in_ga(T46))
gt10_in_ga(s(0)) → gt10_out_ga(0)
le33_in_ga(s(T113)) → U8_ga(le33_in_ga(T113))
le33_in_ga(0) → le33_out_ga
U1_ga(gt10_out_ga(T47)) → gt10_out_ga(s(T47))
U8_ga(le33_out_ga) → le33_out_ga
gt10_in_ga(x0)
le33_in_ga(x0)
U1_ga(x0)
U8_ga(x0)
GT10_IN_AA(s(T46), s(T47)) → GT10_IN_AA(T46, T47)
qs1_in_ag(.(T26, .(T27, T28)), T8) → U44_ag(T26, T27, T28, T8, gt10_in_aa(T26, T27))
gt10_in_aa(s(T46), s(T47)) → U1_aa(T46, T47, gt10_in_aa(T46, T47))
gt10_in_aa(s(0), 0) → gt10_out_aa(s(0), 0)
U1_aa(T46, T47, gt10_out_aa(T46, T47)) → gt10_out_aa(s(T46), s(T47))
U44_ag(T26, T27, T28, T8, gt10_out_aa(T26, T27)) → qs1_out_ag(.(T26, .(T27, T28)), T8)
qs1_in_ag(.(T31, .(T33, T32)), T8) → U45_ag(T31, T33, T32, T8, gt10_in_aa(T31, T33))
U45_ag(T31, T33, T32, T8, gt10_out_aa(T31, T33)) → U46_ag(T31, T33, T32, T8, part20_in_gaaa(T31, T32, X47, X48))
part20_in_gaaa(T70, .(T73, T74), .(T73, X119), X120) → U2_gaaa(T70, T73, T74, X119, X120, gt10_in_ga(T70, T73))
gt10_in_ga(s(T46), s(T47)) → U1_ga(T46, T47, gt10_in_ga(T46, T47))
gt10_in_ga(s(0), 0) → gt10_out_ga(s(0), 0)
U1_ga(T46, T47, gt10_out_ga(T46, T47)) → gt10_out_ga(s(T46), s(T47))
U2_gaaa(T70, T73, T74, X119, X120, gt10_out_ga(T70, T73)) → part20_out_gaaa(T70, .(T73, T74), .(T73, X119), X120)
part20_in_gaaa(T70, .(T73, T77), .(T73, X119), X120) → U3_gaaa(T70, T73, T77, X119, X120, gt10_in_ga(T70, T73))
U3_gaaa(T70, T73, T77, X119, X120, gt10_out_ga(T70, T73)) → U4_gaaa(T70, T73, T77, X119, X120, part20_in_gaaa(T70, T77, X119, X120))
part20_in_gaaa(T95, .(T98, T99), X170, .(T98, X171)) → U5_gaaa(T95, T98, T99, X170, X171, le33_in_ga(T95, T98))
le33_in_ga(s(T113), s(T115)) → U8_ga(T113, T115, le33_in_ga(T113, T115))
le33_in_ga(0, s(T122)) → le33_out_ga(0, s(T122))
le33_in_ga(0, 0) → le33_out_ga(0, 0)
U8_ga(T113, T115, le33_out_ga(T113, T115)) → le33_out_ga(s(T113), s(T115))
U5_gaaa(T95, T98, T99, X170, X171, le33_out_ga(T95, T98)) → part20_out_gaaa(T95, .(T98, T99), X170, .(T98, X171))
part20_in_gaaa(T95, .(T98, T102), X170, .(T98, X171)) → U6_gaaa(T95, T98, T102, X170, X171, le33_in_ga(T95, T98))
U6_gaaa(T95, T98, T102, X170, X171, le33_out_ga(T95, T98)) → U7_gaaa(T95, T98, T102, X170, X171, part20_in_gaaa(T95, T102, X170, X171))
part20_in_gaaa(T128, [], [], []) → part20_out_gaaa(T128, [], [], [])
U7_gaaa(T95, T98, T102, X170, X171, part20_out_gaaa(T95, T102, X170, X171)) → part20_out_gaaa(T95, .(T98, T102), X170, .(T98, X171))
U4_gaaa(T70, T73, T77, X119, X120, part20_out_gaaa(T70, T77, X119, X120)) → part20_out_gaaa(T70, .(T73, T77), .(T73, X119), X120)
U46_ag(T31, T33, T32, T8, part20_out_gaaa(T31, T32, X47, X48)) → qs1_out_ag(.(T31, .(T33, T32)), T8)
U45_ag(T31, T33, T32, T8, gt10_out_aa(T31, T33)) → U47_ag(T31, T33, T32, T8, part20_in_gaaa(T31, T32, T53, T54))
U47_ag(T31, T33, T32, T8, part20_out_gaaa(T31, T32, T53, T54)) → U48_ag(T31, T33, T32, T8, qs51_in_gaa(T33, T53, X9))
qs51_in_gaa(T148, T149, X273) → U37_gaa(T148, T149, X273, p56_in_gaaaaaa(T148, T149, X269, X270, X271, X272, X273))
p56_in_gaaaaaa(T148, T149, X269, X270, X271, X272, X273) → U9_gaaaaaa(T148, T149, X269, X270, X271, X272, X273, part20_in_gaaa(T148, T149, X269, X270))
U9_gaaaaaa(T148, T149, X269, X270, X271, X272, X273, part20_out_gaaa(T148, T149, X269, X270)) → p56_out_gaaaaaa(T148, T149, X269, X270, X271, X272, X273)
p56_in_gaaaaaa(T148, T149, T153, T154, X271, X272, X273) → U10_gaaaaaa(T148, T149, T153, T154, X271, X272, X273, part20_in_gaaa(T148, T149, T153, T154))
U10_gaaaaaa(T148, T149, T153, T154, X271, X272, X273, part20_out_gaaa(T148, T149, T153, T154)) → U11_gaaaaaa(T148, T149, T153, T154, X271, X272, X273, qs59_in_aa(T153, X271))
qs59_in_aa(.(T171, T172), X335) → U19_aa(T171, T172, X335, p56_in_aaaaaaa(T171, T172, X331, X332, X333, X334, X335))
p56_in_aaaaaaa(T148, T149, X269, X270, X271, X272, X273) → U9_aaaaaaa(T148, T149, X269, X270, X271, X272, X273, part20_in_aaaa(T148, T149, X269, X270))
part20_in_aaaa(T70, .(T73, T74), .(T73, X119), X120) → U2_aaaa(T70, T73, T74, X119, X120, gt10_in_aa(T70, T73))
U2_aaaa(T70, T73, T74, X119, X120, gt10_out_aa(T70, T73)) → part20_out_aaaa(T70, .(T73, T74), .(T73, X119), X120)
part20_in_aaaa(T70, .(T73, T77), .(T73, X119), X120) → U3_aaaa(T70, T73, T77, X119, X120, gt10_in_aa(T70, T73))
U3_aaaa(T70, T73, T77, X119, X120, gt10_out_aa(T70, T73)) → U4_aaaa(T70, T73, T77, X119, X120, part20_in_gaaa(T70, T77, X119, X120))
U4_aaaa(T70, T73, T77, X119, X120, part20_out_gaaa(T70, T77, X119, X120)) → part20_out_aaaa(T70, .(T73, T77), .(T73, X119), X120)
part20_in_aaaa(T95, .(T98, T99), X170, .(T98, X171)) → U5_aaaa(T95, T98, T99, X170, X171, le33_in_aa(T95, T98))
le33_in_aa(s(T113), s(T115)) → U8_aa(T113, T115, le33_in_aa(T113, T115))
le33_in_aa(0, s(T122)) → le33_out_aa(0, s(T122))
le33_in_aa(0, 0) → le33_out_aa(0, 0)
U8_aa(T113, T115, le33_out_aa(T113, T115)) → le33_out_aa(s(T113), s(T115))
U5_aaaa(T95, T98, T99, X170, X171, le33_out_aa(T95, T98)) → part20_out_aaaa(T95, .(T98, T99), X170, .(T98, X171))
part20_in_aaaa(T95, .(T98, T102), X170, .(T98, X171)) → U6_aaaa(T95, T98, T102, X170, X171, le33_in_aa(T95, T98))
U6_aaaa(T95, T98, T102, X170, X171, le33_out_aa(T95, T98)) → U7_aaaa(T95, T98, T102, X170, X171, part20_in_gaaa(T95, T102, X170, X171))
U7_aaaa(T95, T98, T102, X170, X171, part20_out_gaaa(T95, T102, X170, X171)) → part20_out_aaaa(T95, .(T98, T102), X170, .(T98, X171))
part20_in_aaaa(T128, [], [], []) → part20_out_aaaa(T128, [], [], [])
U9_aaaaaaa(T148, T149, X269, X270, X271, X272, X273, part20_out_aaaa(T148, T149, X269, X270)) → p56_out_aaaaaaa(T148, T149, X269, X270, X271, X272, X273)
p56_in_aaaaaaa(T148, T149, T153, T154, X271, X272, X273) → U10_aaaaaaa(T148, T149, T153, T154, X271, X272, X273, part20_in_aaaa(T148, T149, T153, T154))
U10_aaaaaaa(T148, T149, T153, T154, X271, X272, X273, part20_out_aaaa(T148, T149, T153, T154)) → U11_aaaaaaa(T148, T149, T153, T154, X271, X272, X273, qs59_in_aa(T153, X271))
qs59_in_aa([], []) → qs59_out_aa([], [])
U11_aaaaaaa(T148, T149, T153, T154, X271, X272, X273, qs59_out_aa(T153, X271)) → p56_out_aaaaaaa(T148, T149, T153, T154, X271, X272, X273)
p56_in_aaaaaaa(T148, T149, T153, T154, T160, X272, X273) → U12_aaaaaaa(T148, T149, T153, T154, T160, X272, X273, part20_in_aaaa(T148, T149, T153, T154))
U12_aaaaaaa(T148, T149, T153, T154, T160, X272, X273, part20_out_aaaa(T148, T149, T153, T154)) → U13_aaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_in_aa(T153, T160))
U13_aaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_out_aa(T153, T160)) → U14_aaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_in_aa(T154, X272))
U14_aaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_out_aa(T154, X272)) → p56_out_aaaaaaa(T148, T149, T153, T154, T160, X272, X273)
p56_in_aaaaaaa(T148, T149, T153, T154, T160, T178, X273) → U15_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, part20_in_aaaa(T148, T149, T153, T154))
U15_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, part20_out_aaaa(T148, T149, T153, T154)) → U16_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_in_aa(T153, T160))
U16_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_out_aa(T153, T160)) → U17_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_in_aa(T154, T178))
U17_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_out_aa(T154, T178)) → U18_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, app70_in_aaaa(T160, T148, T178, X273))
app70_in_aaaa(.(T201, T202), T203, T204, .(T201, X391)) → U20_aaaa(T201, T202, T203, T204, X391, app70_in_aaaa(T202, T203, T204, X391))
app70_in_aaaa([], T213, T214, .(T213, T214)) → app70_out_aaaa([], T213, T214, .(T213, T214))
U20_aaaa(T201, T202, T203, T204, X391, app70_out_aaaa(T202, T203, T204, X391)) → app70_out_aaaa(.(T201, T202), T203, T204, .(T201, X391))
U18_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, app70_out_aaaa(T160, T148, T178, X273)) → p56_out_aaaaaaa(T148, T149, T153, T154, T160, T178, X273)
U19_aa(T171, T172, X335, p56_out_aaaaaaa(T171, T172, X331, X332, X333, X334, X335)) → qs59_out_aa(.(T171, T172), X335)
U11_gaaaaaa(T148, T149, T153, T154, X271, X272, X273, qs59_out_aa(T153, X271)) → p56_out_gaaaaaa(T148, T149, T153, T154, X271, X272, X273)
p56_in_gaaaaaa(T148, T149, T153, T154, T160, X272, X273) → U12_gaaaaaa(T148, T149, T153, T154, T160, X272, X273, part20_in_gaaa(T148, T149, T153, T154))
U12_gaaaaaa(T148, T149, T153, T154, T160, X272, X273, part20_out_gaaa(T148, T149, T153, T154)) → U13_gaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_in_aa(T153, T160))
U13_gaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_out_aa(T153, T160)) → U14_gaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_in_aa(T154, X272))
U14_gaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_out_aa(T154, X272)) → p56_out_gaaaaaa(T148, T149, T153, T154, T160, X272, X273)
p56_in_gaaaaaa(T148, T149, T153, T154, T160, T178, X273) → U15_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, part20_in_gaaa(T148, T149, T153, T154))
U15_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, part20_out_gaaa(T148, T149, T153, T154)) → U16_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_in_aa(T153, T160))
U16_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_out_aa(T153, T160)) → U17_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_in_aa(T154, T178))
U17_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_out_aa(T154, T178)) → U18_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, app70_in_agaa(T160, T148, T178, X273))
app70_in_agaa(.(T201, T202), T203, T204, .(T201, X391)) → U20_agaa(T201, T202, T203, T204, X391, app70_in_agaa(T202, T203, T204, X391))
app70_in_agaa([], T213, T214, .(T213, T214)) → app70_out_agaa([], T213, T214, .(T213, T214))
U20_agaa(T201, T202, T203, T204, X391, app70_out_agaa(T202, T203, T204, X391)) → app70_out_agaa(.(T201, T202), T203, T204, .(T201, X391))
U18_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, app70_out_agaa(T160, T148, T178, X273)) → p56_out_gaaaaaa(T148, T149, T153, T154, T160, T178, X273)
U37_gaa(T148, T149, X273, p56_out_gaaaaaa(T148, T149, X269, X270, X271, X272, X273)) → qs51_out_gaa(T148, T149, X273)
U48_ag(T31, T33, T32, T8, qs51_out_gaa(T33, T53, X9)) → qs1_out_ag(.(T31, .(T33, T32)), T8)
U47_ag(T31, T33, T32, T8, part20_out_gaaa(T31, T32, T53, T54)) → U49_ag(T31, T33, T32, T8, T54, qs51_in_gaa(T33, T53, T131))
U49_ag(T31, T33, T32, T8, T54, qs51_out_gaa(T33, T53, T131)) → U50_ag(T31, T33, T32, T8, p52_in_aaagg(T54, X10, T131, T31, T8))
p52_in_aaagg(T54, X10, T131, T31, T8) → U33_aaagg(T54, X10, T131, T31, T8, qs80_in_aa(T54, X10))
qs80_in_aa(.(T230, T231), X452) → U22_aa(T230, T231, X452, part87_in_aaaa(T230, T231, X448, X449))
part87_in_aaaa(T256, .(T257, T258), .(T257, X503), X504) → U38_aaaa(T256, T257, T258, X503, X504, gt10_in_aa(T256, T257))
U38_aaaa(T256, T257, T258, X503, X504, gt10_out_aa(T256, T257)) → part87_out_aaaa(T256, .(T257, T258), .(T257, X503), X504)
part87_in_aaaa(T261, .(T257, T262), .(T257, X503), X504) → U39_aaaa(T261, T257, T262, X503, X504, gt10_in_aa(T261, T257))
U39_aaaa(T261, T257, T262, X503, X504, gt10_out_aa(T261, T257)) → U40_aaaa(T261, T257, T262, X503, X504, part20_in_gaaa(T261, T262, X503, X504))
U40_aaaa(T261, T257, T262, X503, X504, part20_out_gaaa(T261, T262, X503, X504)) → part87_out_aaaa(T261, .(T257, T262), .(T257, X503), X504)
part87_in_aaaa(T283, .(T284, T285), X554, .(T284, X555)) → U41_aaaa(T283, T284, T285, X554, X555, le100_in_aa(T283, T284))
le100_in_aa(s(T302), s(T303)) → U21_aa(T302, T303, le100_in_aa(T302, T303))
le100_in_aa(0, s(T310)) → le100_out_aa(0, s(T310))
le100_in_aa(0, 0) → le100_out_aa(0, 0)
U21_aa(T302, T303, le100_out_aa(T302, T303)) → le100_out_aa(s(T302), s(T303))
U41_aaaa(T283, T284, T285, X554, X555, le100_out_aa(T283, T284)) → part87_out_aaaa(T283, .(T284, T285), X554, .(T284, X555))
part87_in_aaaa(T288, .(T284, T289), X554, .(T284, X555)) → U42_aaaa(T288, T284, T289, X554, X555, le100_in_aa(T288, T284))
U42_aaaa(T288, T284, T289, X554, X555, le100_out_aa(T288, T284)) → U43_aaaa(T288, T284, T289, X554, X555, part20_in_gaaa(T288, T289, X554, X555))
U43_aaaa(T288, T284, T289, X554, X555, part20_out_gaaa(T288, T289, X554, X555)) → part87_out_aaaa(T288, .(T284, T289), X554, .(T284, X555))
part87_in_aaaa(T316, [], [], []) → part87_out_aaaa(T316, [], [], [])
U22_aa(T230, T231, X452, part87_out_aaaa(T230, T231, X448, X449)) → qs80_out_aa(.(T230, T231), X452)
qs80_in_aa(.(T237, T231), X452) → U23_aa(T237, T231, X452, part87_in_aaaa(T237, T231, T235, T236))
U23_aa(T237, T231, X452, part87_out_aaaa(T237, T231, T235, T236)) → U24_aa(T237, T231, X452, qs80_in_aa(T235, X450))
qs80_in_aa(.(T325, T231), X452) → U27_aa(T325, T231, X452, part87_in_aaaa(T325, T231, T235, T236))
U27_aa(T325, T231, X452, part87_out_aaaa(T325, T231, T235, T236)) → U28_aa(T325, T231, X452, T236, qs80_in_aa(T235, T319))
qs80_in_aa([], []) → qs80_out_aa([], [])
U28_aa(T325, T231, X452, T236, qs80_out_aa(T235, T319)) → U29_aa(T325, T231, X452, T319, qs80_in_aa(T236, T324))
U29_aa(T325, T231, X452, T319, qs80_out_aa(T236, T324)) → U30_aa(T325, T231, X452, app121_in_aaaa(T319, T325, T324, X452))
app121_in_aaaa(.(T348, T349), T352, T353, .(T348, X657)) → U31_aaaa(T348, T349, T352, T353, X657, app121_in_aaaa(T349, T352, T353, X657))
app121_in_aaaa([], T362, T363, .(T362, T363)) → app121_out_aaaa([], T362, T363, .(T362, T363))
U31_aaaa(T348, T349, T352, T353, X657, app121_out_aaaa(T349, T352, T353, X657)) → app121_out_aaaa(.(T348, T349), T352, T353, .(T348, X657))
U30_aa(T325, T231, X452, app121_out_aaaa(T319, T325, T324, X452)) → qs80_out_aa(.(T325, T231), X452)
U24_aa(T237, T231, X452, qs80_out_aa(T235, X450)) → qs80_out_aa(.(T237, T231), X452)
U23_aa(T237, T231, X452, part87_out_aaaa(T237, T231, T235, T236)) → U25_aa(T237, T231, X452, T236, qs80_in_aa(T235, T319))
U25_aa(T237, T231, X452, T236, qs80_out_aa(T235, T319)) → U26_aa(T237, T231, X452, qs80_in_aa(T236, X451))
U26_aa(T237, T231, X452, qs80_out_aa(T236, X451)) → qs80_out_aa(.(T237, T231), X452)
U33_aaagg(T54, X10, T131, T31, T8, qs80_out_aa(T54, X10)) → p52_out_aaagg(T54, X10, T131, T31, T8)
p52_in_aaagg(T54, T217, T131, T31, T8) → U34_aaagg(T54, T217, T131, T31, T8, qs80_in_aa(T54, T217))
U34_aaagg(T54, T217, T131, T31, T8, qs80_out_aa(T54, T217)) → U35_aaagg(T54, T217, T131, T31, T8, app81_in_agag(T131, T31, T217, T8))
app81_in_agag(.(T389, T390), T391, T394, .(T389, T393)) → U32_agag(T389, T390, T391, T394, T393, app81_in_agag(T390, T391, T394, T393))
app81_in_agag([], T404, T405, .(T404, T405)) → app81_out_agag([], T404, T405, .(T404, T405))
U32_agag(T389, T390, T391, T394, T393, app81_out_agag(T390, T391, T394, T393)) → app81_out_agag(.(T389, T390), T391, T394, .(T389, T393))
U35_aaagg(T54, T217, T131, T31, T8, app81_out_agag(T131, T31, T217, T8)) → p52_out_aaagg(T54, T217, T131, T31, T8)
U50_ag(T31, T33, T32, T8, p52_out_aaagg(T54, X10, T131, T31, T8)) → qs1_out_ag(.(T31, .(T33, T32)), T8)
qs1_in_ag(.(T421, .(T422, T423)), T8) → U51_ag(T421, T422, T423, T8, le100_in_aa(T421, T422))
U51_ag(T421, T422, T423, T8, le100_out_aa(T421, T422)) → qs1_out_ag(.(T421, .(T422, T423)), T8)
qs1_in_ag(.(T426, .(T428, T427)), T8) → U52_ag(T426, T428, T427, T8, le100_in_aa(T426, T428))
U52_ag(T426, T428, T427, T8, le100_out_aa(T426, T428)) → U53_ag(T426, T428, T427, T8, part20_in_gaaa(T426, T427, X740, X741))
U53_ag(T426, T428, T427, T8, part20_out_gaaa(T426, T427, X740, X741)) → qs1_out_ag(.(T426, .(T428, T427)), T8)
qs1_in_ag(.(T426, .(T436, T427)), T8) → U54_ag(T426, T436, T427, T8, le100_in_aa(T426, T436))
U54_ag(T426, T436, T427, T8, le100_out_aa(T426, T436)) → U55_ag(T426, T436, T427, T8, part20_in_gaaa(T426, T427, T434, T435))
U55_ag(T426, T436, T427, T8, part20_out_gaaa(T426, T427, T434, T435)) → U56_ag(T426, T436, T427, T8, qs80_in_aa(T434, X9))
U56_ag(T426, T436, T427, T8, qs80_out_aa(T434, X9)) → qs1_out_ag(.(T426, .(T436, T427)), T8)
U55_ag(T426, T436, T427, T8, part20_out_gaaa(T426, T427, T434, T435)) → U57_ag(T426, T436, T427, T8, T435, qs80_in_aa(T434, T442))
U57_ag(T426, T436, T427, T8, T435, qs80_out_aa(T434, T442)) → U58_ag(T426, T436, T427, T8, p52_in_aaagg(.(T436, T435), X10, T442, T426, T8))
U58_ag(T426, T436, T427, T8, p52_out_aaagg(.(T436, T435), X10, T442, T426, T8)) → qs1_out_ag(.(T426, .(T436, T427)), T8)
qs1_in_ag(.(T452, []), T8) → U59_ag(T452, T8, qs155_in_a(X9))
qs155_in_a([]) → qs155_out_a([])
U59_ag(T452, T8, qs155_out_a(X9)) → qs1_out_ag(.(T452, []), T8)
qs1_in_ag(.(T452, []), T8) → U60_ag(T452, T8, qs155_in_a(T455))
U60_ag(T452, T8, qs155_out_a(T455)) → U61_ag(T452, T8, qs155_in_a(X10))
U61_ag(T452, T8, qs155_out_a(X10)) → qs1_out_ag(.(T452, []), T8)
U60_ag(T452, T8, qs155_out_a(T455)) → U62_ag(T452, T8, T455, qs155_in_a(T460))
U62_ag(T452, T8, T455, qs155_out_a(T460)) → U63_ag(T452, T8, app162_in_gagg(T455, T452, T460, T8))
app162_in_gagg(.(T486, T487), T491, T489, .(T486, T490)) → U36_gagg(T486, T487, T491, T489, T490, app162_in_gagg(T487, T491, T489, T490))
app162_in_gagg([], T501, T502, .(T501, T502)) → app162_out_gagg([], T501, T502, .(T501, T502))
U36_gagg(T486, T487, T491, T489, T490, app162_out_gagg(T487, T491, T489, T490)) → app162_out_gagg(.(T486, T487), T491, T489, .(T486, T490))
U63_ag(T452, T8, app162_out_gagg(T455, T452, T460, T8)) → qs1_out_ag(.(T452, []), T8)
qs1_in_ag([], []) → qs1_out_ag([], [])
GT10_IN_AA(s(T46), s(T47)) → GT10_IN_AA(T46, T47)
GT10_IN_AA → GT10_IN_AA
QS80_IN_AA(.(T237, T231), X452) → U23_AA(T237, T231, X452, part87_in_aaaa(T237, T231, T235, T236))
U23_AA(T237, T231, X452, part87_out_aaaa(T237, T231, T235, T236)) → QS80_IN_AA(T235, X450)
QS80_IN_AA(.(T325, T231), X452) → U27_AA(T325, T231, X452, part87_in_aaaa(T325, T231, T235, T236))
U27_AA(T325, T231, X452, part87_out_aaaa(T325, T231, T235, T236)) → U28_AA(T325, T231, X452, T236, qs80_in_aa(T235, T319))
U28_AA(T325, T231, X452, T236, qs80_out_aa(T235, T319)) → QS80_IN_AA(T236, T324)
U27_AA(T325, T231, X452, part87_out_aaaa(T325, T231, T235, T236)) → QS80_IN_AA(T235, T319)
U23_AA(T237, T231, X452, part87_out_aaaa(T237, T231, T235, T236)) → U25_AA(T237, T231, X452, T236, qs80_in_aa(T235, T319))
U25_AA(T237, T231, X452, T236, qs80_out_aa(T235, T319)) → QS80_IN_AA(T236, X451)
qs1_in_ag(.(T26, .(T27, T28)), T8) → U44_ag(T26, T27, T28, T8, gt10_in_aa(T26, T27))
gt10_in_aa(s(T46), s(T47)) → U1_aa(T46, T47, gt10_in_aa(T46, T47))
gt10_in_aa(s(0), 0) → gt10_out_aa(s(0), 0)
U1_aa(T46, T47, gt10_out_aa(T46, T47)) → gt10_out_aa(s(T46), s(T47))
U44_ag(T26, T27, T28, T8, gt10_out_aa(T26, T27)) → qs1_out_ag(.(T26, .(T27, T28)), T8)
qs1_in_ag(.(T31, .(T33, T32)), T8) → U45_ag(T31, T33, T32, T8, gt10_in_aa(T31, T33))
U45_ag(T31, T33, T32, T8, gt10_out_aa(T31, T33)) → U46_ag(T31, T33, T32, T8, part20_in_gaaa(T31, T32, X47, X48))
part20_in_gaaa(T70, .(T73, T74), .(T73, X119), X120) → U2_gaaa(T70, T73, T74, X119, X120, gt10_in_ga(T70, T73))
gt10_in_ga(s(T46), s(T47)) → U1_ga(T46, T47, gt10_in_ga(T46, T47))
gt10_in_ga(s(0), 0) → gt10_out_ga(s(0), 0)
U1_ga(T46, T47, gt10_out_ga(T46, T47)) → gt10_out_ga(s(T46), s(T47))
U2_gaaa(T70, T73, T74, X119, X120, gt10_out_ga(T70, T73)) → part20_out_gaaa(T70, .(T73, T74), .(T73, X119), X120)
part20_in_gaaa(T70, .(T73, T77), .(T73, X119), X120) → U3_gaaa(T70, T73, T77, X119, X120, gt10_in_ga(T70, T73))
U3_gaaa(T70, T73, T77, X119, X120, gt10_out_ga(T70, T73)) → U4_gaaa(T70, T73, T77, X119, X120, part20_in_gaaa(T70, T77, X119, X120))
part20_in_gaaa(T95, .(T98, T99), X170, .(T98, X171)) → U5_gaaa(T95, T98, T99, X170, X171, le33_in_ga(T95, T98))
le33_in_ga(s(T113), s(T115)) → U8_ga(T113, T115, le33_in_ga(T113, T115))
le33_in_ga(0, s(T122)) → le33_out_ga(0, s(T122))
le33_in_ga(0, 0) → le33_out_ga(0, 0)
U8_ga(T113, T115, le33_out_ga(T113, T115)) → le33_out_ga(s(T113), s(T115))
U5_gaaa(T95, T98, T99, X170, X171, le33_out_ga(T95, T98)) → part20_out_gaaa(T95, .(T98, T99), X170, .(T98, X171))
part20_in_gaaa(T95, .(T98, T102), X170, .(T98, X171)) → U6_gaaa(T95, T98, T102, X170, X171, le33_in_ga(T95, T98))
U6_gaaa(T95, T98, T102, X170, X171, le33_out_ga(T95, T98)) → U7_gaaa(T95, T98, T102, X170, X171, part20_in_gaaa(T95, T102, X170, X171))
part20_in_gaaa(T128, [], [], []) → part20_out_gaaa(T128, [], [], [])
U7_gaaa(T95, T98, T102, X170, X171, part20_out_gaaa(T95, T102, X170, X171)) → part20_out_gaaa(T95, .(T98, T102), X170, .(T98, X171))
U4_gaaa(T70, T73, T77, X119, X120, part20_out_gaaa(T70, T77, X119, X120)) → part20_out_gaaa(T70, .(T73, T77), .(T73, X119), X120)
U46_ag(T31, T33, T32, T8, part20_out_gaaa(T31, T32, X47, X48)) → qs1_out_ag(.(T31, .(T33, T32)), T8)
U45_ag(T31, T33, T32, T8, gt10_out_aa(T31, T33)) → U47_ag(T31, T33, T32, T8, part20_in_gaaa(T31, T32, T53, T54))
U47_ag(T31, T33, T32, T8, part20_out_gaaa(T31, T32, T53, T54)) → U48_ag(T31, T33, T32, T8, qs51_in_gaa(T33, T53, X9))
qs51_in_gaa(T148, T149, X273) → U37_gaa(T148, T149, X273, p56_in_gaaaaaa(T148, T149, X269, X270, X271, X272, X273))
p56_in_gaaaaaa(T148, T149, X269, X270, X271, X272, X273) → U9_gaaaaaa(T148, T149, X269, X270, X271, X272, X273, part20_in_gaaa(T148, T149, X269, X270))
U9_gaaaaaa(T148, T149, X269, X270, X271, X272, X273, part20_out_gaaa(T148, T149, X269, X270)) → p56_out_gaaaaaa(T148, T149, X269, X270, X271, X272, X273)
p56_in_gaaaaaa(T148, T149, T153, T154, X271, X272, X273) → U10_gaaaaaa(T148, T149, T153, T154, X271, X272, X273, part20_in_gaaa(T148, T149, T153, T154))
U10_gaaaaaa(T148, T149, T153, T154, X271, X272, X273, part20_out_gaaa(T148, T149, T153, T154)) → U11_gaaaaaa(T148, T149, T153, T154, X271, X272, X273, qs59_in_aa(T153, X271))
qs59_in_aa(.(T171, T172), X335) → U19_aa(T171, T172, X335, p56_in_aaaaaaa(T171, T172, X331, X332, X333, X334, X335))
p56_in_aaaaaaa(T148, T149, X269, X270, X271, X272, X273) → U9_aaaaaaa(T148, T149, X269, X270, X271, X272, X273, part20_in_aaaa(T148, T149, X269, X270))
part20_in_aaaa(T70, .(T73, T74), .(T73, X119), X120) → U2_aaaa(T70, T73, T74, X119, X120, gt10_in_aa(T70, T73))
U2_aaaa(T70, T73, T74, X119, X120, gt10_out_aa(T70, T73)) → part20_out_aaaa(T70, .(T73, T74), .(T73, X119), X120)
part20_in_aaaa(T70, .(T73, T77), .(T73, X119), X120) → U3_aaaa(T70, T73, T77, X119, X120, gt10_in_aa(T70, T73))
U3_aaaa(T70, T73, T77, X119, X120, gt10_out_aa(T70, T73)) → U4_aaaa(T70, T73, T77, X119, X120, part20_in_gaaa(T70, T77, X119, X120))
U4_aaaa(T70, T73, T77, X119, X120, part20_out_gaaa(T70, T77, X119, X120)) → part20_out_aaaa(T70, .(T73, T77), .(T73, X119), X120)
part20_in_aaaa(T95, .(T98, T99), X170, .(T98, X171)) → U5_aaaa(T95, T98, T99, X170, X171, le33_in_aa(T95, T98))
le33_in_aa(s(T113), s(T115)) → U8_aa(T113, T115, le33_in_aa(T113, T115))
le33_in_aa(0, s(T122)) → le33_out_aa(0, s(T122))
le33_in_aa(0, 0) → le33_out_aa(0, 0)
U8_aa(T113, T115, le33_out_aa(T113, T115)) → le33_out_aa(s(T113), s(T115))
U5_aaaa(T95, T98, T99, X170, X171, le33_out_aa(T95, T98)) → part20_out_aaaa(T95, .(T98, T99), X170, .(T98, X171))
part20_in_aaaa(T95, .(T98, T102), X170, .(T98, X171)) → U6_aaaa(T95, T98, T102, X170, X171, le33_in_aa(T95, T98))
U6_aaaa(T95, T98, T102, X170, X171, le33_out_aa(T95, T98)) → U7_aaaa(T95, T98, T102, X170, X171, part20_in_gaaa(T95, T102, X170, X171))
U7_aaaa(T95, T98, T102, X170, X171, part20_out_gaaa(T95, T102, X170, X171)) → part20_out_aaaa(T95, .(T98, T102), X170, .(T98, X171))
part20_in_aaaa(T128, [], [], []) → part20_out_aaaa(T128, [], [], [])
U9_aaaaaaa(T148, T149, X269, X270, X271, X272, X273, part20_out_aaaa(T148, T149, X269, X270)) → p56_out_aaaaaaa(T148, T149, X269, X270, X271, X272, X273)
p56_in_aaaaaaa(T148, T149, T153, T154, X271, X272, X273) → U10_aaaaaaa(T148, T149, T153, T154, X271, X272, X273, part20_in_aaaa(T148, T149, T153, T154))
U10_aaaaaaa(T148, T149, T153, T154, X271, X272, X273, part20_out_aaaa(T148, T149, T153, T154)) → U11_aaaaaaa(T148, T149, T153, T154, X271, X272, X273, qs59_in_aa(T153, X271))
qs59_in_aa([], []) → qs59_out_aa([], [])
U11_aaaaaaa(T148, T149, T153, T154, X271, X272, X273, qs59_out_aa(T153, X271)) → p56_out_aaaaaaa(T148, T149, T153, T154, X271, X272, X273)
p56_in_aaaaaaa(T148, T149, T153, T154, T160, X272, X273) → U12_aaaaaaa(T148, T149, T153, T154, T160, X272, X273, part20_in_aaaa(T148, T149, T153, T154))
U12_aaaaaaa(T148, T149, T153, T154, T160, X272, X273, part20_out_aaaa(T148, T149, T153, T154)) → U13_aaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_in_aa(T153, T160))
U13_aaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_out_aa(T153, T160)) → U14_aaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_in_aa(T154, X272))
U14_aaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_out_aa(T154, X272)) → p56_out_aaaaaaa(T148, T149, T153, T154, T160, X272, X273)
p56_in_aaaaaaa(T148, T149, T153, T154, T160, T178, X273) → U15_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, part20_in_aaaa(T148, T149, T153, T154))
U15_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, part20_out_aaaa(T148, T149, T153, T154)) → U16_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_in_aa(T153, T160))
U16_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_out_aa(T153, T160)) → U17_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_in_aa(T154, T178))
U17_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_out_aa(T154, T178)) → U18_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, app70_in_aaaa(T160, T148, T178, X273))
app70_in_aaaa(.(T201, T202), T203, T204, .(T201, X391)) → U20_aaaa(T201, T202, T203, T204, X391, app70_in_aaaa(T202, T203, T204, X391))
app70_in_aaaa([], T213, T214, .(T213, T214)) → app70_out_aaaa([], T213, T214, .(T213, T214))
U20_aaaa(T201, T202, T203, T204, X391, app70_out_aaaa(T202, T203, T204, X391)) → app70_out_aaaa(.(T201, T202), T203, T204, .(T201, X391))
U18_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, app70_out_aaaa(T160, T148, T178, X273)) → p56_out_aaaaaaa(T148, T149, T153, T154, T160, T178, X273)
U19_aa(T171, T172, X335, p56_out_aaaaaaa(T171, T172, X331, X332, X333, X334, X335)) → qs59_out_aa(.(T171, T172), X335)
U11_gaaaaaa(T148, T149, T153, T154, X271, X272, X273, qs59_out_aa(T153, X271)) → p56_out_gaaaaaa(T148, T149, T153, T154, X271, X272, X273)
p56_in_gaaaaaa(T148, T149, T153, T154, T160, X272, X273) → U12_gaaaaaa(T148, T149, T153, T154, T160, X272, X273, part20_in_gaaa(T148, T149, T153, T154))
U12_gaaaaaa(T148, T149, T153, T154, T160, X272, X273, part20_out_gaaa(T148, T149, T153, T154)) → U13_gaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_in_aa(T153, T160))
U13_gaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_out_aa(T153, T160)) → U14_gaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_in_aa(T154, X272))
U14_gaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_out_aa(T154, X272)) → p56_out_gaaaaaa(T148, T149, T153, T154, T160, X272, X273)
p56_in_gaaaaaa(T148, T149, T153, T154, T160, T178, X273) → U15_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, part20_in_gaaa(T148, T149, T153, T154))
U15_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, part20_out_gaaa(T148, T149, T153, T154)) → U16_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_in_aa(T153, T160))
U16_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_out_aa(T153, T160)) → U17_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_in_aa(T154, T178))
U17_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_out_aa(T154, T178)) → U18_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, app70_in_agaa(T160, T148, T178, X273))
app70_in_agaa(.(T201, T202), T203, T204, .(T201, X391)) → U20_agaa(T201, T202, T203, T204, X391, app70_in_agaa(T202, T203, T204, X391))
app70_in_agaa([], T213, T214, .(T213, T214)) → app70_out_agaa([], T213, T214, .(T213, T214))
U20_agaa(T201, T202, T203, T204, X391, app70_out_agaa(T202, T203, T204, X391)) → app70_out_agaa(.(T201, T202), T203, T204, .(T201, X391))
U18_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, app70_out_agaa(T160, T148, T178, X273)) → p56_out_gaaaaaa(T148, T149, T153, T154, T160, T178, X273)
U37_gaa(T148, T149, X273, p56_out_gaaaaaa(T148, T149, X269, X270, X271, X272, X273)) → qs51_out_gaa(T148, T149, X273)
U48_ag(T31, T33, T32, T8, qs51_out_gaa(T33, T53, X9)) → qs1_out_ag(.(T31, .(T33, T32)), T8)
U47_ag(T31, T33, T32, T8, part20_out_gaaa(T31, T32, T53, T54)) → U49_ag(T31, T33, T32, T8, T54, qs51_in_gaa(T33, T53, T131))
U49_ag(T31, T33, T32, T8, T54, qs51_out_gaa(T33, T53, T131)) → U50_ag(T31, T33, T32, T8, p52_in_aaagg(T54, X10, T131, T31, T8))
p52_in_aaagg(T54, X10, T131, T31, T8) → U33_aaagg(T54, X10, T131, T31, T8, qs80_in_aa(T54, X10))
qs80_in_aa(.(T230, T231), X452) → U22_aa(T230, T231, X452, part87_in_aaaa(T230, T231, X448, X449))
part87_in_aaaa(T256, .(T257, T258), .(T257, X503), X504) → U38_aaaa(T256, T257, T258, X503, X504, gt10_in_aa(T256, T257))
U38_aaaa(T256, T257, T258, X503, X504, gt10_out_aa(T256, T257)) → part87_out_aaaa(T256, .(T257, T258), .(T257, X503), X504)
part87_in_aaaa(T261, .(T257, T262), .(T257, X503), X504) → U39_aaaa(T261, T257, T262, X503, X504, gt10_in_aa(T261, T257))
U39_aaaa(T261, T257, T262, X503, X504, gt10_out_aa(T261, T257)) → U40_aaaa(T261, T257, T262, X503, X504, part20_in_gaaa(T261, T262, X503, X504))
U40_aaaa(T261, T257, T262, X503, X504, part20_out_gaaa(T261, T262, X503, X504)) → part87_out_aaaa(T261, .(T257, T262), .(T257, X503), X504)
part87_in_aaaa(T283, .(T284, T285), X554, .(T284, X555)) → U41_aaaa(T283, T284, T285, X554, X555, le100_in_aa(T283, T284))
le100_in_aa(s(T302), s(T303)) → U21_aa(T302, T303, le100_in_aa(T302, T303))
le100_in_aa(0, s(T310)) → le100_out_aa(0, s(T310))
le100_in_aa(0, 0) → le100_out_aa(0, 0)
U21_aa(T302, T303, le100_out_aa(T302, T303)) → le100_out_aa(s(T302), s(T303))
U41_aaaa(T283, T284, T285, X554, X555, le100_out_aa(T283, T284)) → part87_out_aaaa(T283, .(T284, T285), X554, .(T284, X555))
part87_in_aaaa(T288, .(T284, T289), X554, .(T284, X555)) → U42_aaaa(T288, T284, T289, X554, X555, le100_in_aa(T288, T284))
U42_aaaa(T288, T284, T289, X554, X555, le100_out_aa(T288, T284)) → U43_aaaa(T288, T284, T289, X554, X555, part20_in_gaaa(T288, T289, X554, X555))
U43_aaaa(T288, T284, T289, X554, X555, part20_out_gaaa(T288, T289, X554, X555)) → part87_out_aaaa(T288, .(T284, T289), X554, .(T284, X555))
part87_in_aaaa(T316, [], [], []) → part87_out_aaaa(T316, [], [], [])
U22_aa(T230, T231, X452, part87_out_aaaa(T230, T231, X448, X449)) → qs80_out_aa(.(T230, T231), X452)
qs80_in_aa(.(T237, T231), X452) → U23_aa(T237, T231, X452, part87_in_aaaa(T237, T231, T235, T236))
U23_aa(T237, T231, X452, part87_out_aaaa(T237, T231, T235, T236)) → U24_aa(T237, T231, X452, qs80_in_aa(T235, X450))
qs80_in_aa(.(T325, T231), X452) → U27_aa(T325, T231, X452, part87_in_aaaa(T325, T231, T235, T236))
U27_aa(T325, T231, X452, part87_out_aaaa(T325, T231, T235, T236)) → U28_aa(T325, T231, X452, T236, qs80_in_aa(T235, T319))
qs80_in_aa([], []) → qs80_out_aa([], [])
U28_aa(T325, T231, X452, T236, qs80_out_aa(T235, T319)) → U29_aa(T325, T231, X452, T319, qs80_in_aa(T236, T324))
U29_aa(T325, T231, X452, T319, qs80_out_aa(T236, T324)) → U30_aa(T325, T231, X452, app121_in_aaaa(T319, T325, T324, X452))
app121_in_aaaa(.(T348, T349), T352, T353, .(T348, X657)) → U31_aaaa(T348, T349, T352, T353, X657, app121_in_aaaa(T349, T352, T353, X657))
app121_in_aaaa([], T362, T363, .(T362, T363)) → app121_out_aaaa([], T362, T363, .(T362, T363))
U31_aaaa(T348, T349, T352, T353, X657, app121_out_aaaa(T349, T352, T353, X657)) → app121_out_aaaa(.(T348, T349), T352, T353, .(T348, X657))
U30_aa(T325, T231, X452, app121_out_aaaa(T319, T325, T324, X452)) → qs80_out_aa(.(T325, T231), X452)
U24_aa(T237, T231, X452, qs80_out_aa(T235, X450)) → qs80_out_aa(.(T237, T231), X452)
U23_aa(T237, T231, X452, part87_out_aaaa(T237, T231, T235, T236)) → U25_aa(T237, T231, X452, T236, qs80_in_aa(T235, T319))
U25_aa(T237, T231, X452, T236, qs80_out_aa(T235, T319)) → U26_aa(T237, T231, X452, qs80_in_aa(T236, X451))
U26_aa(T237, T231, X452, qs80_out_aa(T236, X451)) → qs80_out_aa(.(T237, T231), X452)
U33_aaagg(T54, X10, T131, T31, T8, qs80_out_aa(T54, X10)) → p52_out_aaagg(T54, X10, T131, T31, T8)
p52_in_aaagg(T54, T217, T131, T31, T8) → U34_aaagg(T54, T217, T131, T31, T8, qs80_in_aa(T54, T217))
U34_aaagg(T54, T217, T131, T31, T8, qs80_out_aa(T54, T217)) → U35_aaagg(T54, T217, T131, T31, T8, app81_in_agag(T131, T31, T217, T8))
app81_in_agag(.(T389, T390), T391, T394, .(T389, T393)) → U32_agag(T389, T390, T391, T394, T393, app81_in_agag(T390, T391, T394, T393))
app81_in_agag([], T404, T405, .(T404, T405)) → app81_out_agag([], T404, T405, .(T404, T405))
U32_agag(T389, T390, T391, T394, T393, app81_out_agag(T390, T391, T394, T393)) → app81_out_agag(.(T389, T390), T391, T394, .(T389, T393))
U35_aaagg(T54, T217, T131, T31, T8, app81_out_agag(T131, T31, T217, T8)) → p52_out_aaagg(T54, T217, T131, T31, T8)
U50_ag(T31, T33, T32, T8, p52_out_aaagg(T54, X10, T131, T31, T8)) → qs1_out_ag(.(T31, .(T33, T32)), T8)
qs1_in_ag(.(T421, .(T422, T423)), T8) → U51_ag(T421, T422, T423, T8, le100_in_aa(T421, T422))
U51_ag(T421, T422, T423, T8, le100_out_aa(T421, T422)) → qs1_out_ag(.(T421, .(T422, T423)), T8)
qs1_in_ag(.(T426, .(T428, T427)), T8) → U52_ag(T426, T428, T427, T8, le100_in_aa(T426, T428))
U52_ag(T426, T428, T427, T8, le100_out_aa(T426, T428)) → U53_ag(T426, T428, T427, T8, part20_in_gaaa(T426, T427, X740, X741))
U53_ag(T426, T428, T427, T8, part20_out_gaaa(T426, T427, X740, X741)) → qs1_out_ag(.(T426, .(T428, T427)), T8)
qs1_in_ag(.(T426, .(T436, T427)), T8) → U54_ag(T426, T436, T427, T8, le100_in_aa(T426, T436))
U54_ag(T426, T436, T427, T8, le100_out_aa(T426, T436)) → U55_ag(T426, T436, T427, T8, part20_in_gaaa(T426, T427, T434, T435))
U55_ag(T426, T436, T427, T8, part20_out_gaaa(T426, T427, T434, T435)) → U56_ag(T426, T436, T427, T8, qs80_in_aa(T434, X9))
U56_ag(T426, T436, T427, T8, qs80_out_aa(T434, X9)) → qs1_out_ag(.(T426, .(T436, T427)), T8)
U55_ag(T426, T436, T427, T8, part20_out_gaaa(T426, T427, T434, T435)) → U57_ag(T426, T436, T427, T8, T435, qs80_in_aa(T434, T442))
U57_ag(T426, T436, T427, T8, T435, qs80_out_aa(T434, T442)) → U58_ag(T426, T436, T427, T8, p52_in_aaagg(.(T436, T435), X10, T442, T426, T8))
U58_ag(T426, T436, T427, T8, p52_out_aaagg(.(T436, T435), X10, T442, T426, T8)) → qs1_out_ag(.(T426, .(T436, T427)), T8)
qs1_in_ag(.(T452, []), T8) → U59_ag(T452, T8, qs155_in_a(X9))
qs155_in_a([]) → qs155_out_a([])
U59_ag(T452, T8, qs155_out_a(X9)) → qs1_out_ag(.(T452, []), T8)
qs1_in_ag(.(T452, []), T8) → U60_ag(T452, T8, qs155_in_a(T455))
U60_ag(T452, T8, qs155_out_a(T455)) → U61_ag(T452, T8, qs155_in_a(X10))
U61_ag(T452, T8, qs155_out_a(X10)) → qs1_out_ag(.(T452, []), T8)
U60_ag(T452, T8, qs155_out_a(T455)) → U62_ag(T452, T8, T455, qs155_in_a(T460))
U62_ag(T452, T8, T455, qs155_out_a(T460)) → U63_ag(T452, T8, app162_in_gagg(T455, T452, T460, T8))
app162_in_gagg(.(T486, T487), T491, T489, .(T486, T490)) → U36_gagg(T486, T487, T491, T489, T490, app162_in_gagg(T487, T491, T489, T490))
app162_in_gagg([], T501, T502, .(T501, T502)) → app162_out_gagg([], T501, T502, .(T501, T502))
U36_gagg(T486, T487, T491, T489, T490, app162_out_gagg(T487, T491, T489, T490)) → app162_out_gagg(.(T486, T487), T491, T489, .(T486, T490))
U63_ag(T452, T8, app162_out_gagg(T455, T452, T460, T8)) → qs1_out_ag(.(T452, []), T8)
qs1_in_ag([], []) → qs1_out_ag([], [])
QS80_IN_AA(.(T237, T231), X452) → U23_AA(T237, T231, X452, part87_in_aaaa(T237, T231, T235, T236))
U23_AA(T237, T231, X452, part87_out_aaaa(T237, T231, T235, T236)) → QS80_IN_AA(T235, X450)
QS80_IN_AA(.(T325, T231), X452) → U27_AA(T325, T231, X452, part87_in_aaaa(T325, T231, T235, T236))
U27_AA(T325, T231, X452, part87_out_aaaa(T325, T231, T235, T236)) → U28_AA(T325, T231, X452, T236, qs80_in_aa(T235, T319))
U28_AA(T325, T231, X452, T236, qs80_out_aa(T235, T319)) → QS80_IN_AA(T236, T324)
U27_AA(T325, T231, X452, part87_out_aaaa(T325, T231, T235, T236)) → QS80_IN_AA(T235, T319)
U23_AA(T237, T231, X452, part87_out_aaaa(T237, T231, T235, T236)) → U25_AA(T237, T231, X452, T236, qs80_in_aa(T235, T319))
U25_AA(T237, T231, X452, T236, qs80_out_aa(T235, T319)) → QS80_IN_AA(T236, X451)
part87_in_aaaa(T256, .(T257, T258), .(T257, X503), X504) → U38_aaaa(T256, T257, T258, X503, X504, gt10_in_aa(T256, T257))
part87_in_aaaa(T261, .(T257, T262), .(T257, X503), X504) → U39_aaaa(T261, T257, T262, X503, X504, gt10_in_aa(T261, T257))
part87_in_aaaa(T283, .(T284, T285), X554, .(T284, X555)) → U41_aaaa(T283, T284, T285, X554, X555, le100_in_aa(T283, T284))
part87_in_aaaa(T288, .(T284, T289), X554, .(T284, X555)) → U42_aaaa(T288, T284, T289, X554, X555, le100_in_aa(T288, T284))
part87_in_aaaa(T316, [], [], []) → part87_out_aaaa(T316, [], [], [])
qs80_in_aa(.(T230, T231), X452) → U22_aa(T230, T231, X452, part87_in_aaaa(T230, T231, X448, X449))
qs80_in_aa(.(T237, T231), X452) → U23_aa(T237, T231, X452, part87_in_aaaa(T237, T231, T235, T236))
qs80_in_aa(.(T325, T231), X452) → U27_aa(T325, T231, X452, part87_in_aaaa(T325, T231, T235, T236))
qs80_in_aa([], []) → qs80_out_aa([], [])
U38_aaaa(T256, T257, T258, X503, X504, gt10_out_aa(T256, T257)) → part87_out_aaaa(T256, .(T257, T258), .(T257, X503), X504)
U39_aaaa(T261, T257, T262, X503, X504, gt10_out_aa(T261, T257)) → U40_aaaa(T261, T257, T262, X503, X504, part20_in_gaaa(T261, T262, X503, X504))
U41_aaaa(T283, T284, T285, X554, X555, le100_out_aa(T283, T284)) → part87_out_aaaa(T283, .(T284, T285), X554, .(T284, X555))
U42_aaaa(T288, T284, T289, X554, X555, le100_out_aa(T288, T284)) → U43_aaaa(T288, T284, T289, X554, X555, part20_in_gaaa(T288, T289, X554, X555))
U22_aa(T230, T231, X452, part87_out_aaaa(T230, T231, X448, X449)) → qs80_out_aa(.(T230, T231), X452)
U23_aa(T237, T231, X452, part87_out_aaaa(T237, T231, T235, T236)) → U24_aa(T237, T231, X452, qs80_in_aa(T235, X450))
U23_aa(T237, T231, X452, part87_out_aaaa(T237, T231, T235, T236)) → U25_aa(T237, T231, X452, T236, qs80_in_aa(T235, T319))
U27_aa(T325, T231, X452, part87_out_aaaa(T325, T231, T235, T236)) → U28_aa(T325, T231, X452, T236, qs80_in_aa(T235, T319))
gt10_in_aa(s(T46), s(T47)) → U1_aa(T46, T47, gt10_in_aa(T46, T47))
gt10_in_aa(s(0), 0) → gt10_out_aa(s(0), 0)
U40_aaaa(T261, T257, T262, X503, X504, part20_out_gaaa(T261, T262, X503, X504)) → part87_out_aaaa(T261, .(T257, T262), .(T257, X503), X504)
le100_in_aa(s(T302), s(T303)) → U21_aa(T302, T303, le100_in_aa(T302, T303))
le100_in_aa(0, s(T310)) → le100_out_aa(0, s(T310))
le100_in_aa(0, 0) → le100_out_aa(0, 0)
U43_aaaa(T288, T284, T289, X554, X555, part20_out_gaaa(T288, T289, X554, X555)) → part87_out_aaaa(T288, .(T284, T289), X554, .(T284, X555))
U24_aa(T237, T231, X452, qs80_out_aa(T235, X450)) → qs80_out_aa(.(T237, T231), X452)
U25_aa(T237, T231, X452, T236, qs80_out_aa(T235, T319)) → U26_aa(T237, T231, X452, qs80_in_aa(T236, X451))
U28_aa(T325, T231, X452, T236, qs80_out_aa(T235, T319)) → U29_aa(T325, T231, X452, T319, qs80_in_aa(T236, T324))
U1_aa(T46, T47, gt10_out_aa(T46, T47)) → gt10_out_aa(s(T46), s(T47))
part20_in_gaaa(T70, .(T73, T74), .(T73, X119), X120) → U2_gaaa(T70, T73, T74, X119, X120, gt10_in_ga(T70, T73))
part20_in_gaaa(T70, .(T73, T77), .(T73, X119), X120) → U3_gaaa(T70, T73, T77, X119, X120, gt10_in_ga(T70, T73))
part20_in_gaaa(T95, .(T98, T99), X170, .(T98, X171)) → U5_gaaa(T95, T98, T99, X170, X171, le33_in_ga(T95, T98))
part20_in_gaaa(T95, .(T98, T102), X170, .(T98, X171)) → U6_gaaa(T95, T98, T102, X170, X171, le33_in_ga(T95, T98))
part20_in_gaaa(T128, [], [], []) → part20_out_gaaa(T128, [], [], [])
U21_aa(T302, T303, le100_out_aa(T302, T303)) → le100_out_aa(s(T302), s(T303))
U26_aa(T237, T231, X452, qs80_out_aa(T236, X451)) → qs80_out_aa(.(T237, T231), X452)
U29_aa(T325, T231, X452, T319, qs80_out_aa(T236, T324)) → U30_aa(T325, T231, X452, app121_in_aaaa(T319, T325, T324, X452))
U2_gaaa(T70, T73, T74, X119, X120, gt10_out_ga(T70, T73)) → part20_out_gaaa(T70, .(T73, T74), .(T73, X119), X120)
U3_gaaa(T70, T73, T77, X119, X120, gt10_out_ga(T70, T73)) → U4_gaaa(T70, T73, T77, X119, X120, part20_in_gaaa(T70, T77, X119, X120))
U5_gaaa(T95, T98, T99, X170, X171, le33_out_ga(T95, T98)) → part20_out_gaaa(T95, .(T98, T99), X170, .(T98, X171))
U6_gaaa(T95, T98, T102, X170, X171, le33_out_ga(T95, T98)) → U7_gaaa(T95, T98, T102, X170, X171, part20_in_gaaa(T95, T102, X170, X171))
U30_aa(T325, T231, X452, app121_out_aaaa(T319, T325, T324, X452)) → qs80_out_aa(.(T325, T231), X452)
gt10_in_ga(s(T46), s(T47)) → U1_ga(T46, T47, gt10_in_ga(T46, T47))
gt10_in_ga(s(0), 0) → gt10_out_ga(s(0), 0)
U4_gaaa(T70, T73, T77, X119, X120, part20_out_gaaa(T70, T77, X119, X120)) → part20_out_gaaa(T70, .(T73, T77), .(T73, X119), X120)
le33_in_ga(s(T113), s(T115)) → U8_ga(T113, T115, le33_in_ga(T113, T115))
le33_in_ga(0, s(T122)) → le33_out_ga(0, s(T122))
le33_in_ga(0, 0) → le33_out_ga(0, 0)
U7_gaaa(T95, T98, T102, X170, X171, part20_out_gaaa(T95, T102, X170, X171)) → part20_out_gaaa(T95, .(T98, T102), X170, .(T98, X171))
app121_in_aaaa(.(T348, T349), T352, T353, .(T348, X657)) → U31_aaaa(T348, T349, T352, T353, X657, app121_in_aaaa(T349, T352, T353, X657))
app121_in_aaaa([], T362, T363, .(T362, T363)) → app121_out_aaaa([], T362, T363, .(T362, T363))
U1_ga(T46, T47, gt10_out_ga(T46, T47)) → gt10_out_ga(s(T46), s(T47))
U8_ga(T113, T115, le33_out_ga(T113, T115)) → le33_out_ga(s(T113), s(T115))
U31_aaaa(T348, T349, T352, T353, X657, app121_out_aaaa(T349, T352, T353, X657)) → app121_out_aaaa(.(T348, T349), T352, T353, .(T348, X657))
QS80_IN_AA → U23_AA(part87_in_aaaa)
U23_AA(part87_out_aaaa) → QS80_IN_AA
QS80_IN_AA → U27_AA(part87_in_aaaa)
U27_AA(part87_out_aaaa) → U28_AA(qs80_in_aa)
U28_AA(qs80_out_aa) → QS80_IN_AA
U27_AA(part87_out_aaaa) → QS80_IN_AA
U23_AA(part87_out_aaaa) → U25_AA(qs80_in_aa)
U25_AA(qs80_out_aa) → QS80_IN_AA
part87_in_aaaa → U38_aaaa(gt10_in_aa)
part87_in_aaaa → U39_aaaa(gt10_in_aa)
part87_in_aaaa → U41_aaaa(le100_in_aa)
part87_in_aaaa → U42_aaaa(le100_in_aa)
part87_in_aaaa → part87_out_aaaa
qs80_in_aa → U22_aa(part87_in_aaaa)
qs80_in_aa → U23_aa(part87_in_aaaa)
qs80_in_aa → U27_aa(part87_in_aaaa)
qs80_in_aa → qs80_out_aa
U38_aaaa(gt10_out_aa(T256, T257)) → part87_out_aaaa
U39_aaaa(gt10_out_aa(T261, T257)) → U40_aaaa(part20_in_gaaa(T261))
U41_aaaa(le100_out_aa(T283)) → part87_out_aaaa
U42_aaaa(le100_out_aa(T288)) → U43_aaaa(part20_in_gaaa(T288))
U22_aa(part87_out_aaaa) → qs80_out_aa
U23_aa(part87_out_aaaa) → U24_aa(qs80_in_aa)
U23_aa(part87_out_aaaa) → U25_aa(qs80_in_aa)
U27_aa(part87_out_aaaa) → U28_aa(qs80_in_aa)
gt10_in_aa → U1_aa(gt10_in_aa)
gt10_in_aa → gt10_out_aa(s(0), 0)
U40_aaaa(part20_out_gaaa) → part87_out_aaaa
le100_in_aa → U21_aa(le100_in_aa)
le100_in_aa → le100_out_aa(0)
U43_aaaa(part20_out_gaaa) → part87_out_aaaa
U24_aa(qs80_out_aa) → qs80_out_aa
U25_aa(qs80_out_aa) → U26_aa(qs80_in_aa)
U28_aa(qs80_out_aa) → U29_aa(qs80_in_aa)
U1_aa(gt10_out_aa(T46, T47)) → gt10_out_aa(s(T46), s(T47))
part20_in_gaaa(T70) → U2_gaaa(gt10_in_ga(T70))
part20_in_gaaa(T70) → U3_gaaa(T70, gt10_in_ga(T70))
part20_in_gaaa(T95) → U5_gaaa(le33_in_ga(T95))
part20_in_gaaa(T95) → U6_gaaa(T95, le33_in_ga(T95))
part20_in_gaaa(T128) → part20_out_gaaa
U21_aa(le100_out_aa(T302)) → le100_out_aa(s(T302))
U26_aa(qs80_out_aa) → qs80_out_aa
U29_aa(qs80_out_aa) → U30_aa(app121_in_aaaa)
U2_gaaa(gt10_out_ga(T73)) → part20_out_gaaa
U3_gaaa(T70, gt10_out_ga(T73)) → U4_gaaa(part20_in_gaaa(T70))
U5_gaaa(le33_out_ga) → part20_out_gaaa
U6_gaaa(T95, le33_out_ga) → U7_gaaa(part20_in_gaaa(T95))
U30_aa(app121_out_aaaa) → qs80_out_aa
gt10_in_ga(s(T46)) → U1_ga(gt10_in_ga(T46))
gt10_in_ga(s(0)) → gt10_out_ga(0)
U4_gaaa(part20_out_gaaa) → part20_out_gaaa
le33_in_ga(s(T113)) → U8_ga(le33_in_ga(T113))
le33_in_ga(0) → le33_out_ga
U7_gaaa(part20_out_gaaa) → part20_out_gaaa
app121_in_aaaa → U31_aaaa(app121_in_aaaa)
app121_in_aaaa → app121_out_aaaa
U1_ga(gt10_out_ga(T47)) → gt10_out_ga(s(T47))
U8_ga(le33_out_ga) → le33_out_ga
U31_aaaa(app121_out_aaaa) → app121_out_aaaa
part87_in_aaaa
qs80_in_aa
U38_aaaa(x0)
U39_aaaa(x0)
U41_aaaa(x0)
U42_aaaa(x0)
U22_aa(x0)
U23_aa(x0)
U27_aa(x0)
gt10_in_aa
U40_aaaa(x0)
le100_in_aa
U43_aaaa(x0)
U24_aa(x0)
U25_aa(x0)
U28_aa(x0)
U1_aa(x0)
part20_in_gaaa(x0)
U21_aa(x0)
U26_aa(x0)
U29_aa(x0)
U2_gaaa(x0)
U3_gaaa(x0, x1)
U5_gaaa(x0)
U6_gaaa(x0, x1)
U30_aa(x0)
gt10_in_ga(x0)
U4_gaaa(x0)
le33_in_ga(x0)
U7_gaaa(x0)
app121_in_aaaa
U1_ga(x0)
U8_ga(x0)
U31_aaaa(x0)
QS80_IN_AA → U23_AA(U38_aaaa(gt10_in_aa))
QS80_IN_AA → U23_AA(U39_aaaa(gt10_in_aa))
QS80_IN_AA → U23_AA(U41_aaaa(le100_in_aa))
QS80_IN_AA → U23_AA(U42_aaaa(le100_in_aa))
QS80_IN_AA → U23_AA(part87_out_aaaa)
U23_AA(part87_out_aaaa) → QS80_IN_AA
QS80_IN_AA → U27_AA(part87_in_aaaa)
U27_AA(part87_out_aaaa) → U28_AA(qs80_in_aa)
U28_AA(qs80_out_aa) → QS80_IN_AA
U27_AA(part87_out_aaaa) → QS80_IN_AA
U23_AA(part87_out_aaaa) → U25_AA(qs80_in_aa)
U25_AA(qs80_out_aa) → QS80_IN_AA
QS80_IN_AA → U23_AA(U38_aaaa(gt10_in_aa))
QS80_IN_AA → U23_AA(U39_aaaa(gt10_in_aa))
QS80_IN_AA → U23_AA(U41_aaaa(le100_in_aa))
QS80_IN_AA → U23_AA(U42_aaaa(le100_in_aa))
QS80_IN_AA → U23_AA(part87_out_aaaa)
part87_in_aaaa → U38_aaaa(gt10_in_aa)
part87_in_aaaa → U39_aaaa(gt10_in_aa)
part87_in_aaaa → U41_aaaa(le100_in_aa)
part87_in_aaaa → U42_aaaa(le100_in_aa)
part87_in_aaaa → part87_out_aaaa
qs80_in_aa → U22_aa(part87_in_aaaa)
qs80_in_aa → U23_aa(part87_in_aaaa)
qs80_in_aa → U27_aa(part87_in_aaaa)
qs80_in_aa → qs80_out_aa
U38_aaaa(gt10_out_aa(T256, T257)) → part87_out_aaaa
U39_aaaa(gt10_out_aa(T261, T257)) → U40_aaaa(part20_in_gaaa(T261))
U41_aaaa(le100_out_aa(T283)) → part87_out_aaaa
U42_aaaa(le100_out_aa(T288)) → U43_aaaa(part20_in_gaaa(T288))
U22_aa(part87_out_aaaa) → qs80_out_aa
U23_aa(part87_out_aaaa) → U24_aa(qs80_in_aa)
U23_aa(part87_out_aaaa) → U25_aa(qs80_in_aa)
U27_aa(part87_out_aaaa) → U28_aa(qs80_in_aa)
gt10_in_aa → U1_aa(gt10_in_aa)
gt10_in_aa → gt10_out_aa(s(0), 0)
U40_aaaa(part20_out_gaaa) → part87_out_aaaa
le100_in_aa → U21_aa(le100_in_aa)
le100_in_aa → le100_out_aa(0)
U43_aaaa(part20_out_gaaa) → part87_out_aaaa
U24_aa(qs80_out_aa) → qs80_out_aa
U25_aa(qs80_out_aa) → U26_aa(qs80_in_aa)
U28_aa(qs80_out_aa) → U29_aa(qs80_in_aa)
U1_aa(gt10_out_aa(T46, T47)) → gt10_out_aa(s(T46), s(T47))
part20_in_gaaa(T70) → U2_gaaa(gt10_in_ga(T70))
part20_in_gaaa(T70) → U3_gaaa(T70, gt10_in_ga(T70))
part20_in_gaaa(T95) → U5_gaaa(le33_in_ga(T95))
part20_in_gaaa(T95) → U6_gaaa(T95, le33_in_ga(T95))
part20_in_gaaa(T128) → part20_out_gaaa
U21_aa(le100_out_aa(T302)) → le100_out_aa(s(T302))
U26_aa(qs80_out_aa) → qs80_out_aa
U29_aa(qs80_out_aa) → U30_aa(app121_in_aaaa)
U2_gaaa(gt10_out_ga(T73)) → part20_out_gaaa
U3_gaaa(T70, gt10_out_ga(T73)) → U4_gaaa(part20_in_gaaa(T70))
U5_gaaa(le33_out_ga) → part20_out_gaaa
U6_gaaa(T95, le33_out_ga) → U7_gaaa(part20_in_gaaa(T95))
U30_aa(app121_out_aaaa) → qs80_out_aa
gt10_in_ga(s(T46)) → U1_ga(gt10_in_ga(T46))
gt10_in_ga(s(0)) → gt10_out_ga(0)
U4_gaaa(part20_out_gaaa) → part20_out_gaaa
le33_in_ga(s(T113)) → U8_ga(le33_in_ga(T113))
le33_in_ga(0) → le33_out_ga
U7_gaaa(part20_out_gaaa) → part20_out_gaaa
app121_in_aaaa → U31_aaaa(app121_in_aaaa)
app121_in_aaaa → app121_out_aaaa
U1_ga(gt10_out_ga(T47)) → gt10_out_ga(s(T47))
U8_ga(le33_out_ga) → le33_out_ga
U31_aaaa(app121_out_aaaa) → app121_out_aaaa
part87_in_aaaa
qs80_in_aa
U38_aaaa(x0)
U39_aaaa(x0)
U41_aaaa(x0)
U42_aaaa(x0)
U22_aa(x0)
U23_aa(x0)
U27_aa(x0)
gt10_in_aa
U40_aaaa(x0)
le100_in_aa
U43_aaaa(x0)
U24_aa(x0)
U25_aa(x0)
U28_aa(x0)
U1_aa(x0)
part20_in_gaaa(x0)
U21_aa(x0)
U26_aa(x0)
U29_aa(x0)
U2_gaaa(x0)
U3_gaaa(x0, x1)
U5_gaaa(x0)
U6_gaaa(x0, x1)
U30_aa(x0)
gt10_in_ga(x0)
U4_gaaa(x0)
le33_in_ga(x0)
U7_gaaa(x0)
app121_in_aaaa
U1_ga(x0)
U8_ga(x0)
U31_aaaa(x0)
QS80_IN_AA → U27_AA(U38_aaaa(gt10_in_aa))
QS80_IN_AA → U27_AA(U39_aaaa(gt10_in_aa))
QS80_IN_AA → U27_AA(U41_aaaa(le100_in_aa))
QS80_IN_AA → U27_AA(U42_aaaa(le100_in_aa))
QS80_IN_AA → U27_AA(part87_out_aaaa)
U23_AA(part87_out_aaaa) → QS80_IN_AA
U27_AA(part87_out_aaaa) → U28_AA(qs80_in_aa)
U28_AA(qs80_out_aa) → QS80_IN_AA
U27_AA(part87_out_aaaa) → QS80_IN_AA
U23_AA(part87_out_aaaa) → U25_AA(qs80_in_aa)
U25_AA(qs80_out_aa) → QS80_IN_AA
QS80_IN_AA → U23_AA(U38_aaaa(gt10_in_aa))
QS80_IN_AA → U23_AA(U39_aaaa(gt10_in_aa))
QS80_IN_AA → U23_AA(U41_aaaa(le100_in_aa))
QS80_IN_AA → U23_AA(U42_aaaa(le100_in_aa))
QS80_IN_AA → U23_AA(part87_out_aaaa)
QS80_IN_AA → U27_AA(U38_aaaa(gt10_in_aa))
QS80_IN_AA → U27_AA(U39_aaaa(gt10_in_aa))
QS80_IN_AA → U27_AA(U41_aaaa(le100_in_aa))
QS80_IN_AA → U27_AA(U42_aaaa(le100_in_aa))
QS80_IN_AA → U27_AA(part87_out_aaaa)
part87_in_aaaa → U38_aaaa(gt10_in_aa)
part87_in_aaaa → U39_aaaa(gt10_in_aa)
part87_in_aaaa → U41_aaaa(le100_in_aa)
part87_in_aaaa → U42_aaaa(le100_in_aa)
part87_in_aaaa → part87_out_aaaa
qs80_in_aa → U22_aa(part87_in_aaaa)
qs80_in_aa → U23_aa(part87_in_aaaa)
qs80_in_aa → U27_aa(part87_in_aaaa)
qs80_in_aa → qs80_out_aa
U38_aaaa(gt10_out_aa(T256, T257)) → part87_out_aaaa
U39_aaaa(gt10_out_aa(T261, T257)) → U40_aaaa(part20_in_gaaa(T261))
U41_aaaa(le100_out_aa(T283)) → part87_out_aaaa
U42_aaaa(le100_out_aa(T288)) → U43_aaaa(part20_in_gaaa(T288))
U22_aa(part87_out_aaaa) → qs80_out_aa
U23_aa(part87_out_aaaa) → U24_aa(qs80_in_aa)
U23_aa(part87_out_aaaa) → U25_aa(qs80_in_aa)
U27_aa(part87_out_aaaa) → U28_aa(qs80_in_aa)
gt10_in_aa → U1_aa(gt10_in_aa)
gt10_in_aa → gt10_out_aa(s(0), 0)
U40_aaaa(part20_out_gaaa) → part87_out_aaaa
le100_in_aa → U21_aa(le100_in_aa)
le100_in_aa → le100_out_aa(0)
U43_aaaa(part20_out_gaaa) → part87_out_aaaa
U24_aa(qs80_out_aa) → qs80_out_aa
U25_aa(qs80_out_aa) → U26_aa(qs80_in_aa)
U28_aa(qs80_out_aa) → U29_aa(qs80_in_aa)
U1_aa(gt10_out_aa(T46, T47)) → gt10_out_aa(s(T46), s(T47))
part20_in_gaaa(T70) → U2_gaaa(gt10_in_ga(T70))
part20_in_gaaa(T70) → U3_gaaa(T70, gt10_in_ga(T70))
part20_in_gaaa(T95) → U5_gaaa(le33_in_ga(T95))
part20_in_gaaa(T95) → U6_gaaa(T95, le33_in_ga(T95))
part20_in_gaaa(T128) → part20_out_gaaa
U21_aa(le100_out_aa(T302)) → le100_out_aa(s(T302))
U26_aa(qs80_out_aa) → qs80_out_aa
U29_aa(qs80_out_aa) → U30_aa(app121_in_aaaa)
U2_gaaa(gt10_out_ga(T73)) → part20_out_gaaa
U3_gaaa(T70, gt10_out_ga(T73)) → U4_gaaa(part20_in_gaaa(T70))
U5_gaaa(le33_out_ga) → part20_out_gaaa
U6_gaaa(T95, le33_out_ga) → U7_gaaa(part20_in_gaaa(T95))
U30_aa(app121_out_aaaa) → qs80_out_aa
gt10_in_ga(s(T46)) → U1_ga(gt10_in_ga(T46))
gt10_in_ga(s(0)) → gt10_out_ga(0)
U4_gaaa(part20_out_gaaa) → part20_out_gaaa
le33_in_ga(s(T113)) → U8_ga(le33_in_ga(T113))
le33_in_ga(0) → le33_out_ga
U7_gaaa(part20_out_gaaa) → part20_out_gaaa
app121_in_aaaa → U31_aaaa(app121_in_aaaa)
app121_in_aaaa → app121_out_aaaa
U1_ga(gt10_out_ga(T47)) → gt10_out_ga(s(T47))
U8_ga(le33_out_ga) → le33_out_ga
U31_aaaa(app121_out_aaaa) → app121_out_aaaa
part87_in_aaaa
qs80_in_aa
U38_aaaa(x0)
U39_aaaa(x0)
U41_aaaa(x0)
U42_aaaa(x0)
U22_aa(x0)
U23_aa(x0)
U27_aa(x0)
gt10_in_aa
U40_aaaa(x0)
le100_in_aa
U43_aaaa(x0)
U24_aa(x0)
U25_aa(x0)
U28_aa(x0)
U1_aa(x0)
part20_in_gaaa(x0)
U21_aa(x0)
U26_aa(x0)
U29_aa(x0)
U2_gaaa(x0)
U3_gaaa(x0, x1)
U5_gaaa(x0)
U6_gaaa(x0, x1)
U30_aa(x0)
gt10_in_ga(x0)
U4_gaaa(x0)
le33_in_ga(x0)
U7_gaaa(x0)
app121_in_aaaa
U1_ga(x0)
U8_ga(x0)
U31_aaaa(x0)
U27_AA(part87_out_aaaa) → U28_AA(U22_aa(part87_in_aaaa))
U27_AA(part87_out_aaaa) → U28_AA(U23_aa(part87_in_aaaa))
U27_AA(part87_out_aaaa) → U28_AA(U27_aa(part87_in_aaaa))
U27_AA(part87_out_aaaa) → U28_AA(qs80_out_aa)
U23_AA(part87_out_aaaa) → QS80_IN_AA
U28_AA(qs80_out_aa) → QS80_IN_AA
U27_AA(part87_out_aaaa) → QS80_IN_AA
U23_AA(part87_out_aaaa) → U25_AA(qs80_in_aa)
U25_AA(qs80_out_aa) → QS80_IN_AA
QS80_IN_AA → U23_AA(U38_aaaa(gt10_in_aa))
QS80_IN_AA → U23_AA(U39_aaaa(gt10_in_aa))
QS80_IN_AA → U23_AA(U41_aaaa(le100_in_aa))
QS80_IN_AA → U23_AA(U42_aaaa(le100_in_aa))
QS80_IN_AA → U23_AA(part87_out_aaaa)
QS80_IN_AA → U27_AA(U38_aaaa(gt10_in_aa))
QS80_IN_AA → U27_AA(U39_aaaa(gt10_in_aa))
QS80_IN_AA → U27_AA(U41_aaaa(le100_in_aa))
QS80_IN_AA → U27_AA(U42_aaaa(le100_in_aa))
QS80_IN_AA → U27_AA(part87_out_aaaa)
U27_AA(part87_out_aaaa) → U28_AA(U22_aa(part87_in_aaaa))
U27_AA(part87_out_aaaa) → U28_AA(U23_aa(part87_in_aaaa))
U27_AA(part87_out_aaaa) → U28_AA(U27_aa(part87_in_aaaa))
U27_AA(part87_out_aaaa) → U28_AA(qs80_out_aa)
part87_in_aaaa → U38_aaaa(gt10_in_aa)
part87_in_aaaa → U39_aaaa(gt10_in_aa)
part87_in_aaaa → U41_aaaa(le100_in_aa)
part87_in_aaaa → U42_aaaa(le100_in_aa)
part87_in_aaaa → part87_out_aaaa
qs80_in_aa → U22_aa(part87_in_aaaa)
qs80_in_aa → U23_aa(part87_in_aaaa)
qs80_in_aa → U27_aa(part87_in_aaaa)
qs80_in_aa → qs80_out_aa
U38_aaaa(gt10_out_aa(T256, T257)) → part87_out_aaaa
U39_aaaa(gt10_out_aa(T261, T257)) → U40_aaaa(part20_in_gaaa(T261))
U41_aaaa(le100_out_aa(T283)) → part87_out_aaaa
U42_aaaa(le100_out_aa(T288)) → U43_aaaa(part20_in_gaaa(T288))
U22_aa(part87_out_aaaa) → qs80_out_aa
U23_aa(part87_out_aaaa) → U24_aa(qs80_in_aa)
U23_aa(part87_out_aaaa) → U25_aa(qs80_in_aa)
U27_aa(part87_out_aaaa) → U28_aa(qs80_in_aa)
gt10_in_aa → U1_aa(gt10_in_aa)
gt10_in_aa → gt10_out_aa(s(0), 0)
U40_aaaa(part20_out_gaaa) → part87_out_aaaa
le100_in_aa → U21_aa(le100_in_aa)
le100_in_aa → le100_out_aa(0)
U43_aaaa(part20_out_gaaa) → part87_out_aaaa
U24_aa(qs80_out_aa) → qs80_out_aa
U25_aa(qs80_out_aa) → U26_aa(qs80_in_aa)
U28_aa(qs80_out_aa) → U29_aa(qs80_in_aa)
U1_aa(gt10_out_aa(T46, T47)) → gt10_out_aa(s(T46), s(T47))
part20_in_gaaa(T70) → U2_gaaa(gt10_in_ga(T70))
part20_in_gaaa(T70) → U3_gaaa(T70, gt10_in_ga(T70))
part20_in_gaaa(T95) → U5_gaaa(le33_in_ga(T95))
part20_in_gaaa(T95) → U6_gaaa(T95, le33_in_ga(T95))
part20_in_gaaa(T128) → part20_out_gaaa
U21_aa(le100_out_aa(T302)) → le100_out_aa(s(T302))
U26_aa(qs80_out_aa) → qs80_out_aa
U29_aa(qs80_out_aa) → U30_aa(app121_in_aaaa)
U2_gaaa(gt10_out_ga(T73)) → part20_out_gaaa
U3_gaaa(T70, gt10_out_ga(T73)) → U4_gaaa(part20_in_gaaa(T70))
U5_gaaa(le33_out_ga) → part20_out_gaaa
U6_gaaa(T95, le33_out_ga) → U7_gaaa(part20_in_gaaa(T95))
U30_aa(app121_out_aaaa) → qs80_out_aa
gt10_in_ga(s(T46)) → U1_ga(gt10_in_ga(T46))
gt10_in_ga(s(0)) → gt10_out_ga(0)
U4_gaaa(part20_out_gaaa) → part20_out_gaaa
le33_in_ga(s(T113)) → U8_ga(le33_in_ga(T113))
le33_in_ga(0) → le33_out_ga
U7_gaaa(part20_out_gaaa) → part20_out_gaaa
app121_in_aaaa → U31_aaaa(app121_in_aaaa)
app121_in_aaaa → app121_out_aaaa
U1_ga(gt10_out_ga(T47)) → gt10_out_ga(s(T47))
U8_ga(le33_out_ga) → le33_out_ga
U31_aaaa(app121_out_aaaa) → app121_out_aaaa
part87_in_aaaa
qs80_in_aa
U38_aaaa(x0)
U39_aaaa(x0)
U41_aaaa(x0)
U42_aaaa(x0)
U22_aa(x0)
U23_aa(x0)
U27_aa(x0)
gt10_in_aa
U40_aaaa(x0)
le100_in_aa
U43_aaaa(x0)
U24_aa(x0)
U25_aa(x0)
U28_aa(x0)
U1_aa(x0)
part20_in_gaaa(x0)
U21_aa(x0)
U26_aa(x0)
U29_aa(x0)
U2_gaaa(x0)
U3_gaaa(x0, x1)
U5_gaaa(x0)
U6_gaaa(x0, x1)
U30_aa(x0)
gt10_in_ga(x0)
U4_gaaa(x0)
le33_in_ga(x0)
U7_gaaa(x0)
app121_in_aaaa
U1_ga(x0)
U8_ga(x0)
U31_aaaa(x0)
U23_AA(part87_out_aaaa) → U25_AA(U22_aa(part87_in_aaaa))
U23_AA(part87_out_aaaa) → U25_AA(U23_aa(part87_in_aaaa))
U23_AA(part87_out_aaaa) → U25_AA(U27_aa(part87_in_aaaa))
U23_AA(part87_out_aaaa) → U25_AA(qs80_out_aa)
U23_AA(part87_out_aaaa) → QS80_IN_AA
U28_AA(qs80_out_aa) → QS80_IN_AA
U27_AA(part87_out_aaaa) → QS80_IN_AA
U25_AA(qs80_out_aa) → QS80_IN_AA
QS80_IN_AA → U23_AA(U38_aaaa(gt10_in_aa))
QS80_IN_AA → U23_AA(U39_aaaa(gt10_in_aa))
QS80_IN_AA → U23_AA(U41_aaaa(le100_in_aa))
QS80_IN_AA → U23_AA(U42_aaaa(le100_in_aa))
QS80_IN_AA → U23_AA(part87_out_aaaa)
QS80_IN_AA → U27_AA(U38_aaaa(gt10_in_aa))
QS80_IN_AA → U27_AA(U39_aaaa(gt10_in_aa))
QS80_IN_AA → U27_AA(U41_aaaa(le100_in_aa))
QS80_IN_AA → U27_AA(U42_aaaa(le100_in_aa))
QS80_IN_AA → U27_AA(part87_out_aaaa)
U27_AA(part87_out_aaaa) → U28_AA(U22_aa(part87_in_aaaa))
U27_AA(part87_out_aaaa) → U28_AA(U23_aa(part87_in_aaaa))
U27_AA(part87_out_aaaa) → U28_AA(U27_aa(part87_in_aaaa))
U27_AA(part87_out_aaaa) → U28_AA(qs80_out_aa)
U23_AA(part87_out_aaaa) → U25_AA(U22_aa(part87_in_aaaa))
U23_AA(part87_out_aaaa) → U25_AA(U23_aa(part87_in_aaaa))
U23_AA(part87_out_aaaa) → U25_AA(U27_aa(part87_in_aaaa))
U23_AA(part87_out_aaaa) → U25_AA(qs80_out_aa)
part87_in_aaaa → U38_aaaa(gt10_in_aa)
part87_in_aaaa → U39_aaaa(gt10_in_aa)
part87_in_aaaa → U41_aaaa(le100_in_aa)
part87_in_aaaa → U42_aaaa(le100_in_aa)
part87_in_aaaa → part87_out_aaaa
qs80_in_aa → U22_aa(part87_in_aaaa)
qs80_in_aa → U23_aa(part87_in_aaaa)
qs80_in_aa → U27_aa(part87_in_aaaa)
qs80_in_aa → qs80_out_aa
U38_aaaa(gt10_out_aa(T256, T257)) → part87_out_aaaa
U39_aaaa(gt10_out_aa(T261, T257)) → U40_aaaa(part20_in_gaaa(T261))
U41_aaaa(le100_out_aa(T283)) → part87_out_aaaa
U42_aaaa(le100_out_aa(T288)) → U43_aaaa(part20_in_gaaa(T288))
U22_aa(part87_out_aaaa) → qs80_out_aa
U23_aa(part87_out_aaaa) → U24_aa(qs80_in_aa)
U23_aa(part87_out_aaaa) → U25_aa(qs80_in_aa)
U27_aa(part87_out_aaaa) → U28_aa(qs80_in_aa)
gt10_in_aa → U1_aa(gt10_in_aa)
gt10_in_aa → gt10_out_aa(s(0), 0)
U40_aaaa(part20_out_gaaa) → part87_out_aaaa
le100_in_aa → U21_aa(le100_in_aa)
le100_in_aa → le100_out_aa(0)
U43_aaaa(part20_out_gaaa) → part87_out_aaaa
U24_aa(qs80_out_aa) → qs80_out_aa
U25_aa(qs80_out_aa) → U26_aa(qs80_in_aa)
U28_aa(qs80_out_aa) → U29_aa(qs80_in_aa)
U1_aa(gt10_out_aa(T46, T47)) → gt10_out_aa(s(T46), s(T47))
part20_in_gaaa(T70) → U2_gaaa(gt10_in_ga(T70))
part20_in_gaaa(T70) → U3_gaaa(T70, gt10_in_ga(T70))
part20_in_gaaa(T95) → U5_gaaa(le33_in_ga(T95))
part20_in_gaaa(T95) → U6_gaaa(T95, le33_in_ga(T95))
part20_in_gaaa(T128) → part20_out_gaaa
U21_aa(le100_out_aa(T302)) → le100_out_aa(s(T302))
U26_aa(qs80_out_aa) → qs80_out_aa
U29_aa(qs80_out_aa) → U30_aa(app121_in_aaaa)
U2_gaaa(gt10_out_ga(T73)) → part20_out_gaaa
U3_gaaa(T70, gt10_out_ga(T73)) → U4_gaaa(part20_in_gaaa(T70))
U5_gaaa(le33_out_ga) → part20_out_gaaa
U6_gaaa(T95, le33_out_ga) → U7_gaaa(part20_in_gaaa(T95))
U30_aa(app121_out_aaaa) → qs80_out_aa
gt10_in_ga(s(T46)) → U1_ga(gt10_in_ga(T46))
gt10_in_ga(s(0)) → gt10_out_ga(0)
U4_gaaa(part20_out_gaaa) → part20_out_gaaa
le33_in_ga(s(T113)) → U8_ga(le33_in_ga(T113))
le33_in_ga(0) → le33_out_ga
U7_gaaa(part20_out_gaaa) → part20_out_gaaa
app121_in_aaaa → U31_aaaa(app121_in_aaaa)
app121_in_aaaa → app121_out_aaaa
U1_ga(gt10_out_ga(T47)) → gt10_out_ga(s(T47))
U8_ga(le33_out_ga) → le33_out_ga
U31_aaaa(app121_out_aaaa) → app121_out_aaaa
part87_in_aaaa
qs80_in_aa
U38_aaaa(x0)
U39_aaaa(x0)
U41_aaaa(x0)
U42_aaaa(x0)
U22_aa(x0)
U23_aa(x0)
U27_aa(x0)
gt10_in_aa
U40_aaaa(x0)
le100_in_aa
U43_aaaa(x0)
U24_aa(x0)
U25_aa(x0)
U28_aa(x0)
U1_aa(x0)
part20_in_gaaa(x0)
U21_aa(x0)
U26_aa(x0)
U29_aa(x0)
U2_gaaa(x0)
U3_gaaa(x0, x1)
U5_gaaa(x0)
U6_gaaa(x0, x1)
U30_aa(x0)
gt10_in_ga(x0)
U4_gaaa(x0)
le33_in_ga(x0)
U7_gaaa(x0)
app121_in_aaaa
U1_ga(x0)
U8_ga(x0)
U31_aaaa(x0)
P56_IN_AAAAAAA(T148, T149, T153, T154, X271, X272, X273) → U10_AAAAAAA(T148, T149, T153, T154, X271, X272, X273, part20_in_aaaa(T148, T149, T153, T154))
U10_AAAAAAA(T148, T149, T153, T154, X271, X272, X273, part20_out_aaaa(T148, T149, T153, T154)) → QS59_IN_AA(T153, X271)
QS59_IN_AA(.(T171, T172), X335) → P56_IN_AAAAAAA(T171, T172, X331, X332, X333, X334, X335)
P56_IN_AAAAAAA(T148, T149, T153, T154, T160, X272, X273) → U12_AAAAAAA(T148, T149, T153, T154, T160, X272, X273, part20_in_aaaa(T148, T149, T153, T154))
U12_AAAAAAA(T148, T149, T153, T154, T160, X272, X273, part20_out_aaaa(T148, T149, T153, T154)) → U13_AAAAAAA(T148, T149, T153, T154, T160, X272, X273, qs59_in_aa(T153, T160))
U13_AAAAAAA(T148, T149, T153, T154, T160, X272, X273, qs59_out_aa(T153, T160)) → QS59_IN_AA(T154, X272)
U12_AAAAAAA(T148, T149, T153, T154, T160, X272, X273, part20_out_aaaa(T148, T149, T153, T154)) → QS59_IN_AA(T153, T160)
P56_IN_AAAAAAA(T148, T149, T153, T154, T160, T178, X273) → U15_AAAAAAA(T148, T149, T153, T154, T160, T178, X273, part20_in_aaaa(T148, T149, T153, T154))
U15_AAAAAAA(T148, T149, T153, T154, T160, T178, X273, part20_out_aaaa(T148, T149, T153, T154)) → U16_AAAAAAA(T148, T149, T153, T154, T160, T178, X273, qs59_in_aa(T153, T160))
U16_AAAAAAA(T148, T149, T153, T154, T160, T178, X273, qs59_out_aa(T153, T160)) → QS59_IN_AA(T154, T178)
U15_AAAAAAA(T148, T149, T153, T154, T160, T178, X273, part20_out_aaaa(T148, T149, T153, T154)) → QS59_IN_AA(T153, T160)
qs1_in_ag(.(T26, .(T27, T28)), T8) → U44_ag(T26, T27, T28, T8, gt10_in_aa(T26, T27))
gt10_in_aa(s(T46), s(T47)) → U1_aa(T46, T47, gt10_in_aa(T46, T47))
gt10_in_aa(s(0), 0) → gt10_out_aa(s(0), 0)
U1_aa(T46, T47, gt10_out_aa(T46, T47)) → gt10_out_aa(s(T46), s(T47))
U44_ag(T26, T27, T28, T8, gt10_out_aa(T26, T27)) → qs1_out_ag(.(T26, .(T27, T28)), T8)
qs1_in_ag(.(T31, .(T33, T32)), T8) → U45_ag(T31, T33, T32, T8, gt10_in_aa(T31, T33))
U45_ag(T31, T33, T32, T8, gt10_out_aa(T31, T33)) → U46_ag(T31, T33, T32, T8, part20_in_gaaa(T31, T32, X47, X48))
part20_in_gaaa(T70, .(T73, T74), .(T73, X119), X120) → U2_gaaa(T70, T73, T74, X119, X120, gt10_in_ga(T70, T73))
gt10_in_ga(s(T46), s(T47)) → U1_ga(T46, T47, gt10_in_ga(T46, T47))
gt10_in_ga(s(0), 0) → gt10_out_ga(s(0), 0)
U1_ga(T46, T47, gt10_out_ga(T46, T47)) → gt10_out_ga(s(T46), s(T47))
U2_gaaa(T70, T73, T74, X119, X120, gt10_out_ga(T70, T73)) → part20_out_gaaa(T70, .(T73, T74), .(T73, X119), X120)
part20_in_gaaa(T70, .(T73, T77), .(T73, X119), X120) → U3_gaaa(T70, T73, T77, X119, X120, gt10_in_ga(T70, T73))
U3_gaaa(T70, T73, T77, X119, X120, gt10_out_ga(T70, T73)) → U4_gaaa(T70, T73, T77, X119, X120, part20_in_gaaa(T70, T77, X119, X120))
part20_in_gaaa(T95, .(T98, T99), X170, .(T98, X171)) → U5_gaaa(T95, T98, T99, X170, X171, le33_in_ga(T95, T98))
le33_in_ga(s(T113), s(T115)) → U8_ga(T113, T115, le33_in_ga(T113, T115))
le33_in_ga(0, s(T122)) → le33_out_ga(0, s(T122))
le33_in_ga(0, 0) → le33_out_ga(0, 0)
U8_ga(T113, T115, le33_out_ga(T113, T115)) → le33_out_ga(s(T113), s(T115))
U5_gaaa(T95, T98, T99, X170, X171, le33_out_ga(T95, T98)) → part20_out_gaaa(T95, .(T98, T99), X170, .(T98, X171))
part20_in_gaaa(T95, .(T98, T102), X170, .(T98, X171)) → U6_gaaa(T95, T98, T102, X170, X171, le33_in_ga(T95, T98))
U6_gaaa(T95, T98, T102, X170, X171, le33_out_ga(T95, T98)) → U7_gaaa(T95, T98, T102, X170, X171, part20_in_gaaa(T95, T102, X170, X171))
part20_in_gaaa(T128, [], [], []) → part20_out_gaaa(T128, [], [], [])
U7_gaaa(T95, T98, T102, X170, X171, part20_out_gaaa(T95, T102, X170, X171)) → part20_out_gaaa(T95, .(T98, T102), X170, .(T98, X171))
U4_gaaa(T70, T73, T77, X119, X120, part20_out_gaaa(T70, T77, X119, X120)) → part20_out_gaaa(T70, .(T73, T77), .(T73, X119), X120)
U46_ag(T31, T33, T32, T8, part20_out_gaaa(T31, T32, X47, X48)) → qs1_out_ag(.(T31, .(T33, T32)), T8)
U45_ag(T31, T33, T32, T8, gt10_out_aa(T31, T33)) → U47_ag(T31, T33, T32, T8, part20_in_gaaa(T31, T32, T53, T54))
U47_ag(T31, T33, T32, T8, part20_out_gaaa(T31, T32, T53, T54)) → U48_ag(T31, T33, T32, T8, qs51_in_gaa(T33, T53, X9))
qs51_in_gaa(T148, T149, X273) → U37_gaa(T148, T149, X273, p56_in_gaaaaaa(T148, T149, X269, X270, X271, X272, X273))
p56_in_gaaaaaa(T148, T149, X269, X270, X271, X272, X273) → U9_gaaaaaa(T148, T149, X269, X270, X271, X272, X273, part20_in_gaaa(T148, T149, X269, X270))
U9_gaaaaaa(T148, T149, X269, X270, X271, X272, X273, part20_out_gaaa(T148, T149, X269, X270)) → p56_out_gaaaaaa(T148, T149, X269, X270, X271, X272, X273)
p56_in_gaaaaaa(T148, T149, T153, T154, X271, X272, X273) → U10_gaaaaaa(T148, T149, T153, T154, X271, X272, X273, part20_in_gaaa(T148, T149, T153, T154))
U10_gaaaaaa(T148, T149, T153, T154, X271, X272, X273, part20_out_gaaa(T148, T149, T153, T154)) → U11_gaaaaaa(T148, T149, T153, T154, X271, X272, X273, qs59_in_aa(T153, X271))
qs59_in_aa(.(T171, T172), X335) → U19_aa(T171, T172, X335, p56_in_aaaaaaa(T171, T172, X331, X332, X333, X334, X335))
p56_in_aaaaaaa(T148, T149, X269, X270, X271, X272, X273) → U9_aaaaaaa(T148, T149, X269, X270, X271, X272, X273, part20_in_aaaa(T148, T149, X269, X270))
part20_in_aaaa(T70, .(T73, T74), .(T73, X119), X120) → U2_aaaa(T70, T73, T74, X119, X120, gt10_in_aa(T70, T73))
U2_aaaa(T70, T73, T74, X119, X120, gt10_out_aa(T70, T73)) → part20_out_aaaa(T70, .(T73, T74), .(T73, X119), X120)
part20_in_aaaa(T70, .(T73, T77), .(T73, X119), X120) → U3_aaaa(T70, T73, T77, X119, X120, gt10_in_aa(T70, T73))
U3_aaaa(T70, T73, T77, X119, X120, gt10_out_aa(T70, T73)) → U4_aaaa(T70, T73, T77, X119, X120, part20_in_gaaa(T70, T77, X119, X120))
U4_aaaa(T70, T73, T77, X119, X120, part20_out_gaaa(T70, T77, X119, X120)) → part20_out_aaaa(T70, .(T73, T77), .(T73, X119), X120)
part20_in_aaaa(T95, .(T98, T99), X170, .(T98, X171)) → U5_aaaa(T95, T98, T99, X170, X171, le33_in_aa(T95, T98))
le33_in_aa(s(T113), s(T115)) → U8_aa(T113, T115, le33_in_aa(T113, T115))
le33_in_aa(0, s(T122)) → le33_out_aa(0, s(T122))
le33_in_aa(0, 0) → le33_out_aa(0, 0)
U8_aa(T113, T115, le33_out_aa(T113, T115)) → le33_out_aa(s(T113), s(T115))
U5_aaaa(T95, T98, T99, X170, X171, le33_out_aa(T95, T98)) → part20_out_aaaa(T95, .(T98, T99), X170, .(T98, X171))
part20_in_aaaa(T95, .(T98, T102), X170, .(T98, X171)) → U6_aaaa(T95, T98, T102, X170, X171, le33_in_aa(T95, T98))
U6_aaaa(T95, T98, T102, X170, X171, le33_out_aa(T95, T98)) → U7_aaaa(T95, T98, T102, X170, X171, part20_in_gaaa(T95, T102, X170, X171))
U7_aaaa(T95, T98, T102, X170, X171, part20_out_gaaa(T95, T102, X170, X171)) → part20_out_aaaa(T95, .(T98, T102), X170, .(T98, X171))
part20_in_aaaa(T128, [], [], []) → part20_out_aaaa(T128, [], [], [])
U9_aaaaaaa(T148, T149, X269, X270, X271, X272, X273, part20_out_aaaa(T148, T149, X269, X270)) → p56_out_aaaaaaa(T148, T149, X269, X270, X271, X272, X273)
p56_in_aaaaaaa(T148, T149, T153, T154, X271, X272, X273) → U10_aaaaaaa(T148, T149, T153, T154, X271, X272, X273, part20_in_aaaa(T148, T149, T153, T154))
U10_aaaaaaa(T148, T149, T153, T154, X271, X272, X273, part20_out_aaaa(T148, T149, T153, T154)) → U11_aaaaaaa(T148, T149, T153, T154, X271, X272, X273, qs59_in_aa(T153, X271))
qs59_in_aa([], []) → qs59_out_aa([], [])
U11_aaaaaaa(T148, T149, T153, T154, X271, X272, X273, qs59_out_aa(T153, X271)) → p56_out_aaaaaaa(T148, T149, T153, T154, X271, X272, X273)
p56_in_aaaaaaa(T148, T149, T153, T154, T160, X272, X273) → U12_aaaaaaa(T148, T149, T153, T154, T160, X272, X273, part20_in_aaaa(T148, T149, T153, T154))
U12_aaaaaaa(T148, T149, T153, T154, T160, X272, X273, part20_out_aaaa(T148, T149, T153, T154)) → U13_aaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_in_aa(T153, T160))
U13_aaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_out_aa(T153, T160)) → U14_aaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_in_aa(T154, X272))
U14_aaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_out_aa(T154, X272)) → p56_out_aaaaaaa(T148, T149, T153, T154, T160, X272, X273)
p56_in_aaaaaaa(T148, T149, T153, T154, T160, T178, X273) → U15_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, part20_in_aaaa(T148, T149, T153, T154))
U15_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, part20_out_aaaa(T148, T149, T153, T154)) → U16_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_in_aa(T153, T160))
U16_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_out_aa(T153, T160)) → U17_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_in_aa(T154, T178))
U17_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_out_aa(T154, T178)) → U18_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, app70_in_aaaa(T160, T148, T178, X273))
app70_in_aaaa(.(T201, T202), T203, T204, .(T201, X391)) → U20_aaaa(T201, T202, T203, T204, X391, app70_in_aaaa(T202, T203, T204, X391))
app70_in_aaaa([], T213, T214, .(T213, T214)) → app70_out_aaaa([], T213, T214, .(T213, T214))
U20_aaaa(T201, T202, T203, T204, X391, app70_out_aaaa(T202, T203, T204, X391)) → app70_out_aaaa(.(T201, T202), T203, T204, .(T201, X391))
U18_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, app70_out_aaaa(T160, T148, T178, X273)) → p56_out_aaaaaaa(T148, T149, T153, T154, T160, T178, X273)
U19_aa(T171, T172, X335, p56_out_aaaaaaa(T171, T172, X331, X332, X333, X334, X335)) → qs59_out_aa(.(T171, T172), X335)
U11_gaaaaaa(T148, T149, T153, T154, X271, X272, X273, qs59_out_aa(T153, X271)) → p56_out_gaaaaaa(T148, T149, T153, T154, X271, X272, X273)
p56_in_gaaaaaa(T148, T149, T153, T154, T160, X272, X273) → U12_gaaaaaa(T148, T149, T153, T154, T160, X272, X273, part20_in_gaaa(T148, T149, T153, T154))
U12_gaaaaaa(T148, T149, T153, T154, T160, X272, X273, part20_out_gaaa(T148, T149, T153, T154)) → U13_gaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_in_aa(T153, T160))
U13_gaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_out_aa(T153, T160)) → U14_gaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_in_aa(T154, X272))
U14_gaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_out_aa(T154, X272)) → p56_out_gaaaaaa(T148, T149, T153, T154, T160, X272, X273)
p56_in_gaaaaaa(T148, T149, T153, T154, T160, T178, X273) → U15_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, part20_in_gaaa(T148, T149, T153, T154))
U15_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, part20_out_gaaa(T148, T149, T153, T154)) → U16_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_in_aa(T153, T160))
U16_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_out_aa(T153, T160)) → U17_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_in_aa(T154, T178))
U17_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_out_aa(T154, T178)) → U18_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, app70_in_agaa(T160, T148, T178, X273))
app70_in_agaa(.(T201, T202), T203, T204, .(T201, X391)) → U20_agaa(T201, T202, T203, T204, X391, app70_in_agaa(T202, T203, T204, X391))
app70_in_agaa([], T213, T214, .(T213, T214)) → app70_out_agaa([], T213, T214, .(T213, T214))
U20_agaa(T201, T202, T203, T204, X391, app70_out_agaa(T202, T203, T204, X391)) → app70_out_agaa(.(T201, T202), T203, T204, .(T201, X391))
U18_gaaaaaa(T148, T149, T153, T154, T160, T178, X273, app70_out_agaa(T160, T148, T178, X273)) → p56_out_gaaaaaa(T148, T149, T153, T154, T160, T178, X273)
U37_gaa(T148, T149, X273, p56_out_gaaaaaa(T148, T149, X269, X270, X271, X272, X273)) → qs51_out_gaa(T148, T149, X273)
U48_ag(T31, T33, T32, T8, qs51_out_gaa(T33, T53, X9)) → qs1_out_ag(.(T31, .(T33, T32)), T8)
U47_ag(T31, T33, T32, T8, part20_out_gaaa(T31, T32, T53, T54)) → U49_ag(T31, T33, T32, T8, T54, qs51_in_gaa(T33, T53, T131))
U49_ag(T31, T33, T32, T8, T54, qs51_out_gaa(T33, T53, T131)) → U50_ag(T31, T33, T32, T8, p52_in_aaagg(T54, X10, T131, T31, T8))
p52_in_aaagg(T54, X10, T131, T31, T8) → U33_aaagg(T54, X10, T131, T31, T8, qs80_in_aa(T54, X10))
qs80_in_aa(.(T230, T231), X452) → U22_aa(T230, T231, X452, part87_in_aaaa(T230, T231, X448, X449))
part87_in_aaaa(T256, .(T257, T258), .(T257, X503), X504) → U38_aaaa(T256, T257, T258, X503, X504, gt10_in_aa(T256, T257))
U38_aaaa(T256, T257, T258, X503, X504, gt10_out_aa(T256, T257)) → part87_out_aaaa(T256, .(T257, T258), .(T257, X503), X504)
part87_in_aaaa(T261, .(T257, T262), .(T257, X503), X504) → U39_aaaa(T261, T257, T262, X503, X504, gt10_in_aa(T261, T257))
U39_aaaa(T261, T257, T262, X503, X504, gt10_out_aa(T261, T257)) → U40_aaaa(T261, T257, T262, X503, X504, part20_in_gaaa(T261, T262, X503, X504))
U40_aaaa(T261, T257, T262, X503, X504, part20_out_gaaa(T261, T262, X503, X504)) → part87_out_aaaa(T261, .(T257, T262), .(T257, X503), X504)
part87_in_aaaa(T283, .(T284, T285), X554, .(T284, X555)) → U41_aaaa(T283, T284, T285, X554, X555, le100_in_aa(T283, T284))
le100_in_aa(s(T302), s(T303)) → U21_aa(T302, T303, le100_in_aa(T302, T303))
le100_in_aa(0, s(T310)) → le100_out_aa(0, s(T310))
le100_in_aa(0, 0) → le100_out_aa(0, 0)
U21_aa(T302, T303, le100_out_aa(T302, T303)) → le100_out_aa(s(T302), s(T303))
U41_aaaa(T283, T284, T285, X554, X555, le100_out_aa(T283, T284)) → part87_out_aaaa(T283, .(T284, T285), X554, .(T284, X555))
part87_in_aaaa(T288, .(T284, T289), X554, .(T284, X555)) → U42_aaaa(T288, T284, T289, X554, X555, le100_in_aa(T288, T284))
U42_aaaa(T288, T284, T289, X554, X555, le100_out_aa(T288, T284)) → U43_aaaa(T288, T284, T289, X554, X555, part20_in_gaaa(T288, T289, X554, X555))
U43_aaaa(T288, T284, T289, X554, X555, part20_out_gaaa(T288, T289, X554, X555)) → part87_out_aaaa(T288, .(T284, T289), X554, .(T284, X555))
part87_in_aaaa(T316, [], [], []) → part87_out_aaaa(T316, [], [], [])
U22_aa(T230, T231, X452, part87_out_aaaa(T230, T231, X448, X449)) → qs80_out_aa(.(T230, T231), X452)
qs80_in_aa(.(T237, T231), X452) → U23_aa(T237, T231, X452, part87_in_aaaa(T237, T231, T235, T236))
U23_aa(T237, T231, X452, part87_out_aaaa(T237, T231, T235, T236)) → U24_aa(T237, T231, X452, qs80_in_aa(T235, X450))
qs80_in_aa(.(T325, T231), X452) → U27_aa(T325, T231, X452, part87_in_aaaa(T325, T231, T235, T236))
U27_aa(T325, T231, X452, part87_out_aaaa(T325, T231, T235, T236)) → U28_aa(T325, T231, X452, T236, qs80_in_aa(T235, T319))
qs80_in_aa([], []) → qs80_out_aa([], [])
U28_aa(T325, T231, X452, T236, qs80_out_aa(T235, T319)) → U29_aa(T325, T231, X452, T319, qs80_in_aa(T236, T324))
U29_aa(T325, T231, X452, T319, qs80_out_aa(T236, T324)) → U30_aa(T325, T231, X452, app121_in_aaaa(T319, T325, T324, X452))
app121_in_aaaa(.(T348, T349), T352, T353, .(T348, X657)) → U31_aaaa(T348, T349, T352, T353, X657, app121_in_aaaa(T349, T352, T353, X657))
app121_in_aaaa([], T362, T363, .(T362, T363)) → app121_out_aaaa([], T362, T363, .(T362, T363))
U31_aaaa(T348, T349, T352, T353, X657, app121_out_aaaa(T349, T352, T353, X657)) → app121_out_aaaa(.(T348, T349), T352, T353, .(T348, X657))
U30_aa(T325, T231, X452, app121_out_aaaa(T319, T325, T324, X452)) → qs80_out_aa(.(T325, T231), X452)
U24_aa(T237, T231, X452, qs80_out_aa(T235, X450)) → qs80_out_aa(.(T237, T231), X452)
U23_aa(T237, T231, X452, part87_out_aaaa(T237, T231, T235, T236)) → U25_aa(T237, T231, X452, T236, qs80_in_aa(T235, T319))
U25_aa(T237, T231, X452, T236, qs80_out_aa(T235, T319)) → U26_aa(T237, T231, X452, qs80_in_aa(T236, X451))
U26_aa(T237, T231, X452, qs80_out_aa(T236, X451)) → qs80_out_aa(.(T237, T231), X452)
U33_aaagg(T54, X10, T131, T31, T8, qs80_out_aa(T54, X10)) → p52_out_aaagg(T54, X10, T131, T31, T8)
p52_in_aaagg(T54, T217, T131, T31, T8) → U34_aaagg(T54, T217, T131, T31, T8, qs80_in_aa(T54, T217))
U34_aaagg(T54, T217, T131, T31, T8, qs80_out_aa(T54, T217)) → U35_aaagg(T54, T217, T131, T31, T8, app81_in_agag(T131, T31, T217, T8))
app81_in_agag(.(T389, T390), T391, T394, .(T389, T393)) → U32_agag(T389, T390, T391, T394, T393, app81_in_agag(T390, T391, T394, T393))
app81_in_agag([], T404, T405, .(T404, T405)) → app81_out_agag([], T404, T405, .(T404, T405))
U32_agag(T389, T390, T391, T394, T393, app81_out_agag(T390, T391, T394, T393)) → app81_out_agag(.(T389, T390), T391, T394, .(T389, T393))
U35_aaagg(T54, T217, T131, T31, T8, app81_out_agag(T131, T31, T217, T8)) → p52_out_aaagg(T54, T217, T131, T31, T8)
U50_ag(T31, T33, T32, T8, p52_out_aaagg(T54, X10, T131, T31, T8)) → qs1_out_ag(.(T31, .(T33, T32)), T8)
qs1_in_ag(.(T421, .(T422, T423)), T8) → U51_ag(T421, T422, T423, T8, le100_in_aa(T421, T422))
U51_ag(T421, T422, T423, T8, le100_out_aa(T421, T422)) → qs1_out_ag(.(T421, .(T422, T423)), T8)
qs1_in_ag(.(T426, .(T428, T427)), T8) → U52_ag(T426, T428, T427, T8, le100_in_aa(T426, T428))
U52_ag(T426, T428, T427, T8, le100_out_aa(T426, T428)) → U53_ag(T426, T428, T427, T8, part20_in_gaaa(T426, T427, X740, X741))
U53_ag(T426, T428, T427, T8, part20_out_gaaa(T426, T427, X740, X741)) → qs1_out_ag(.(T426, .(T428, T427)), T8)
qs1_in_ag(.(T426, .(T436, T427)), T8) → U54_ag(T426, T436, T427, T8, le100_in_aa(T426, T436))
U54_ag(T426, T436, T427, T8, le100_out_aa(T426, T436)) → U55_ag(T426, T436, T427, T8, part20_in_gaaa(T426, T427, T434, T435))
U55_ag(T426, T436, T427, T8, part20_out_gaaa(T426, T427, T434, T435)) → U56_ag(T426, T436, T427, T8, qs80_in_aa(T434, X9))
U56_ag(T426, T436, T427, T8, qs80_out_aa(T434, X9)) → qs1_out_ag(.(T426, .(T436, T427)), T8)
U55_ag(T426, T436, T427, T8, part20_out_gaaa(T426, T427, T434, T435)) → U57_ag(T426, T436, T427, T8, T435, qs80_in_aa(T434, T442))
U57_ag(T426, T436, T427, T8, T435, qs80_out_aa(T434, T442)) → U58_ag(T426, T436, T427, T8, p52_in_aaagg(.(T436, T435), X10, T442, T426, T8))
U58_ag(T426, T436, T427, T8, p52_out_aaagg(.(T436, T435), X10, T442, T426, T8)) → qs1_out_ag(.(T426, .(T436, T427)), T8)
qs1_in_ag(.(T452, []), T8) → U59_ag(T452, T8, qs155_in_a(X9))
qs155_in_a([]) → qs155_out_a([])
U59_ag(T452, T8, qs155_out_a(X9)) → qs1_out_ag(.(T452, []), T8)
qs1_in_ag(.(T452, []), T8) → U60_ag(T452, T8, qs155_in_a(T455))
U60_ag(T452, T8, qs155_out_a(T455)) → U61_ag(T452, T8, qs155_in_a(X10))
U61_ag(T452, T8, qs155_out_a(X10)) → qs1_out_ag(.(T452, []), T8)
U60_ag(T452, T8, qs155_out_a(T455)) → U62_ag(T452, T8, T455, qs155_in_a(T460))
U62_ag(T452, T8, T455, qs155_out_a(T460)) → U63_ag(T452, T8, app162_in_gagg(T455, T452, T460, T8))
app162_in_gagg(.(T486, T487), T491, T489, .(T486, T490)) → U36_gagg(T486, T487, T491, T489, T490, app162_in_gagg(T487, T491, T489, T490))
app162_in_gagg([], T501, T502, .(T501, T502)) → app162_out_gagg([], T501, T502, .(T501, T502))
U36_gagg(T486, T487, T491, T489, T490, app162_out_gagg(T487, T491, T489, T490)) → app162_out_gagg(.(T486, T487), T491, T489, .(T486, T490))
U63_ag(T452, T8, app162_out_gagg(T455, T452, T460, T8)) → qs1_out_ag(.(T452, []), T8)
qs1_in_ag([], []) → qs1_out_ag([], [])
P56_IN_AAAAAAA(T148, T149, T153, T154, X271, X272, X273) → U10_AAAAAAA(T148, T149, T153, T154, X271, X272, X273, part20_in_aaaa(T148, T149, T153, T154))
U10_AAAAAAA(T148, T149, T153, T154, X271, X272, X273, part20_out_aaaa(T148, T149, T153, T154)) → QS59_IN_AA(T153, X271)
QS59_IN_AA(.(T171, T172), X335) → P56_IN_AAAAAAA(T171, T172, X331, X332, X333, X334, X335)
P56_IN_AAAAAAA(T148, T149, T153, T154, T160, X272, X273) → U12_AAAAAAA(T148, T149, T153, T154, T160, X272, X273, part20_in_aaaa(T148, T149, T153, T154))
U12_AAAAAAA(T148, T149, T153, T154, T160, X272, X273, part20_out_aaaa(T148, T149, T153, T154)) → U13_AAAAAAA(T148, T149, T153, T154, T160, X272, X273, qs59_in_aa(T153, T160))
U13_AAAAAAA(T148, T149, T153, T154, T160, X272, X273, qs59_out_aa(T153, T160)) → QS59_IN_AA(T154, X272)
U12_AAAAAAA(T148, T149, T153, T154, T160, X272, X273, part20_out_aaaa(T148, T149, T153, T154)) → QS59_IN_AA(T153, T160)
P56_IN_AAAAAAA(T148, T149, T153, T154, T160, T178, X273) → U15_AAAAAAA(T148, T149, T153, T154, T160, T178, X273, part20_in_aaaa(T148, T149, T153, T154))
U15_AAAAAAA(T148, T149, T153, T154, T160, T178, X273, part20_out_aaaa(T148, T149, T153, T154)) → U16_AAAAAAA(T148, T149, T153, T154, T160, T178, X273, qs59_in_aa(T153, T160))
U16_AAAAAAA(T148, T149, T153, T154, T160, T178, X273, qs59_out_aa(T153, T160)) → QS59_IN_AA(T154, T178)
U15_AAAAAAA(T148, T149, T153, T154, T160, T178, X273, part20_out_aaaa(T148, T149, T153, T154)) → QS59_IN_AA(T153, T160)
part20_in_aaaa(T70, .(T73, T74), .(T73, X119), X120) → U2_aaaa(T70, T73, T74, X119, X120, gt10_in_aa(T70, T73))
part20_in_aaaa(T70, .(T73, T77), .(T73, X119), X120) → U3_aaaa(T70, T73, T77, X119, X120, gt10_in_aa(T70, T73))
part20_in_aaaa(T95, .(T98, T99), X170, .(T98, X171)) → U5_aaaa(T95, T98, T99, X170, X171, le33_in_aa(T95, T98))
part20_in_aaaa(T95, .(T98, T102), X170, .(T98, X171)) → U6_aaaa(T95, T98, T102, X170, X171, le33_in_aa(T95, T98))
part20_in_aaaa(T128, [], [], []) → part20_out_aaaa(T128, [], [], [])
qs59_in_aa(.(T171, T172), X335) → U19_aa(T171, T172, X335, p56_in_aaaaaaa(T171, T172, X331, X332, X333, X334, X335))
qs59_in_aa([], []) → qs59_out_aa([], [])
U2_aaaa(T70, T73, T74, X119, X120, gt10_out_aa(T70, T73)) → part20_out_aaaa(T70, .(T73, T74), .(T73, X119), X120)
U3_aaaa(T70, T73, T77, X119, X120, gt10_out_aa(T70, T73)) → U4_aaaa(T70, T73, T77, X119, X120, part20_in_gaaa(T70, T77, X119, X120))
U5_aaaa(T95, T98, T99, X170, X171, le33_out_aa(T95, T98)) → part20_out_aaaa(T95, .(T98, T99), X170, .(T98, X171))
U6_aaaa(T95, T98, T102, X170, X171, le33_out_aa(T95, T98)) → U7_aaaa(T95, T98, T102, X170, X171, part20_in_gaaa(T95, T102, X170, X171))
U19_aa(T171, T172, X335, p56_out_aaaaaaa(T171, T172, X331, X332, X333, X334, X335)) → qs59_out_aa(.(T171, T172), X335)
gt10_in_aa(s(T46), s(T47)) → U1_aa(T46, T47, gt10_in_aa(T46, T47))
gt10_in_aa(s(0), 0) → gt10_out_aa(s(0), 0)
U4_aaaa(T70, T73, T77, X119, X120, part20_out_gaaa(T70, T77, X119, X120)) → part20_out_aaaa(T70, .(T73, T77), .(T73, X119), X120)
le33_in_aa(s(T113), s(T115)) → U8_aa(T113, T115, le33_in_aa(T113, T115))
le33_in_aa(0, s(T122)) → le33_out_aa(0, s(T122))
le33_in_aa(0, 0) → le33_out_aa(0, 0)
U7_aaaa(T95, T98, T102, X170, X171, part20_out_gaaa(T95, T102, X170, X171)) → part20_out_aaaa(T95, .(T98, T102), X170, .(T98, X171))
p56_in_aaaaaaa(T148, T149, X269, X270, X271, X272, X273) → U9_aaaaaaa(T148, T149, X269, X270, X271, X272, X273, part20_in_aaaa(T148, T149, X269, X270))
p56_in_aaaaaaa(T148, T149, T153, T154, X271, X272, X273) → U10_aaaaaaa(T148, T149, T153, T154, X271, X272, X273, part20_in_aaaa(T148, T149, T153, T154))
p56_in_aaaaaaa(T148, T149, T153, T154, T160, X272, X273) → U12_aaaaaaa(T148, T149, T153, T154, T160, X272, X273, part20_in_aaaa(T148, T149, T153, T154))
p56_in_aaaaaaa(T148, T149, T153, T154, T160, T178, X273) → U15_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, part20_in_aaaa(T148, T149, T153, T154))
U1_aa(T46, T47, gt10_out_aa(T46, T47)) → gt10_out_aa(s(T46), s(T47))
part20_in_gaaa(T70, .(T73, T74), .(T73, X119), X120) → U2_gaaa(T70, T73, T74, X119, X120, gt10_in_ga(T70, T73))
part20_in_gaaa(T70, .(T73, T77), .(T73, X119), X120) → U3_gaaa(T70, T73, T77, X119, X120, gt10_in_ga(T70, T73))
part20_in_gaaa(T95, .(T98, T99), X170, .(T98, X171)) → U5_gaaa(T95, T98, T99, X170, X171, le33_in_ga(T95, T98))
part20_in_gaaa(T95, .(T98, T102), X170, .(T98, X171)) → U6_gaaa(T95, T98, T102, X170, X171, le33_in_ga(T95, T98))
part20_in_gaaa(T128, [], [], []) → part20_out_gaaa(T128, [], [], [])
U8_aa(T113, T115, le33_out_aa(T113, T115)) → le33_out_aa(s(T113), s(T115))
U9_aaaaaaa(T148, T149, X269, X270, X271, X272, X273, part20_out_aaaa(T148, T149, X269, X270)) → p56_out_aaaaaaa(T148, T149, X269, X270, X271, X272, X273)
U10_aaaaaaa(T148, T149, T153, T154, X271, X272, X273, part20_out_aaaa(T148, T149, T153, T154)) → U11_aaaaaaa(T148, T149, T153, T154, X271, X272, X273, qs59_in_aa(T153, X271))
U12_aaaaaaa(T148, T149, T153, T154, T160, X272, X273, part20_out_aaaa(T148, T149, T153, T154)) → U13_aaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_in_aa(T153, T160))
U15_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, part20_out_aaaa(T148, T149, T153, T154)) → U16_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_in_aa(T153, T160))
U2_gaaa(T70, T73, T74, X119, X120, gt10_out_ga(T70, T73)) → part20_out_gaaa(T70, .(T73, T74), .(T73, X119), X120)
U3_gaaa(T70, T73, T77, X119, X120, gt10_out_ga(T70, T73)) → U4_gaaa(T70, T73, T77, X119, X120, part20_in_gaaa(T70, T77, X119, X120))
U5_gaaa(T95, T98, T99, X170, X171, le33_out_ga(T95, T98)) → part20_out_gaaa(T95, .(T98, T99), X170, .(T98, X171))
U6_gaaa(T95, T98, T102, X170, X171, le33_out_ga(T95, T98)) → U7_gaaa(T95, T98, T102, X170, X171, part20_in_gaaa(T95, T102, X170, X171))
U11_aaaaaaa(T148, T149, T153, T154, X271, X272, X273, qs59_out_aa(T153, X271)) → p56_out_aaaaaaa(T148, T149, T153, T154, X271, X272, X273)
U13_aaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_out_aa(T153, T160)) → U14_aaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_in_aa(T154, X272))
U16_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_out_aa(T153, T160)) → U17_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_in_aa(T154, T178))
gt10_in_ga(s(T46), s(T47)) → U1_ga(T46, T47, gt10_in_ga(T46, T47))
gt10_in_ga(s(0), 0) → gt10_out_ga(s(0), 0)
U4_gaaa(T70, T73, T77, X119, X120, part20_out_gaaa(T70, T77, X119, X120)) → part20_out_gaaa(T70, .(T73, T77), .(T73, X119), X120)
le33_in_ga(s(T113), s(T115)) → U8_ga(T113, T115, le33_in_ga(T113, T115))
le33_in_ga(0, s(T122)) → le33_out_ga(0, s(T122))
le33_in_ga(0, 0) → le33_out_ga(0, 0)
U7_gaaa(T95, T98, T102, X170, X171, part20_out_gaaa(T95, T102, X170, X171)) → part20_out_gaaa(T95, .(T98, T102), X170, .(T98, X171))
U14_aaaaaaa(T148, T149, T153, T154, T160, X272, X273, qs59_out_aa(T154, X272)) → p56_out_aaaaaaa(T148, T149, T153, T154, T160, X272, X273)
U17_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, qs59_out_aa(T154, T178)) → U18_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, app70_in_aaaa(T160, T148, T178, X273))
U1_ga(T46, T47, gt10_out_ga(T46, T47)) → gt10_out_ga(s(T46), s(T47))
U8_ga(T113, T115, le33_out_ga(T113, T115)) → le33_out_ga(s(T113), s(T115))
U18_aaaaaaa(T148, T149, T153, T154, T160, T178, X273, app70_out_aaaa(T160, T148, T178, X273)) → p56_out_aaaaaaa(T148, T149, T153, T154, T160, T178, X273)
app70_in_aaaa(.(T201, T202), T203, T204, .(T201, X391)) → U20_aaaa(T201, T202, T203, T204, X391, app70_in_aaaa(T202, T203, T204, X391))
app70_in_aaaa([], T213, T214, .(T213, T214)) → app70_out_aaaa([], T213, T214, .(T213, T214))
U20_aaaa(T201, T202, T203, T204, X391, app70_out_aaaa(T202, T203, T204, X391)) → app70_out_aaaa(.(T201, T202), T203, T204, .(T201, X391))
P56_IN_AAAAAAA → U10_AAAAAAA(part20_in_aaaa)
U10_AAAAAAA(part20_out_aaaa) → QS59_IN_AA
QS59_IN_AA → P56_IN_AAAAAAA
P56_IN_AAAAAAA → U12_AAAAAAA(part20_in_aaaa)
U12_AAAAAAA(part20_out_aaaa) → U13_AAAAAAA(qs59_in_aa)
U13_AAAAAAA(qs59_out_aa) → QS59_IN_AA
U12_AAAAAAA(part20_out_aaaa) → QS59_IN_AA
P56_IN_AAAAAAA → U15_AAAAAAA(part20_in_aaaa)
U15_AAAAAAA(part20_out_aaaa) → U16_AAAAAAA(qs59_in_aa)
U16_AAAAAAA(qs59_out_aa) → QS59_IN_AA
U15_AAAAAAA(part20_out_aaaa) → QS59_IN_AA
part20_in_aaaa → U2_aaaa(gt10_in_aa)
part20_in_aaaa → U3_aaaa(gt10_in_aa)
part20_in_aaaa → U5_aaaa(le33_in_aa)
part20_in_aaaa → U6_aaaa(le33_in_aa)
part20_in_aaaa → part20_out_aaaa
qs59_in_aa → U19_aa(p56_in_aaaaaaa)
qs59_in_aa → qs59_out_aa
U2_aaaa(gt10_out_aa(T70, T73)) → part20_out_aaaa
U3_aaaa(gt10_out_aa(T70, T73)) → U4_aaaa(part20_in_gaaa(T70))
U5_aaaa(le33_out_aa(T95)) → part20_out_aaaa
U6_aaaa(le33_out_aa(T95)) → U7_aaaa(part20_in_gaaa(T95))
U19_aa(p56_out_aaaaaaa) → qs59_out_aa
gt10_in_aa → U1_aa(gt10_in_aa)
gt10_in_aa → gt10_out_aa(s(0), 0)
U4_aaaa(part20_out_gaaa) → part20_out_aaaa
le33_in_aa → U8_aa(le33_in_aa)
le33_in_aa → le33_out_aa(0)
U7_aaaa(part20_out_gaaa) → part20_out_aaaa
p56_in_aaaaaaa → U9_aaaaaaa(part20_in_aaaa)
p56_in_aaaaaaa → U10_aaaaaaa(part20_in_aaaa)
p56_in_aaaaaaa → U12_aaaaaaa(part20_in_aaaa)
p56_in_aaaaaaa → U15_aaaaaaa(part20_in_aaaa)
U1_aa(gt10_out_aa(T46, T47)) → gt10_out_aa(s(T46), s(T47))
part20_in_gaaa(T70) → U2_gaaa(gt10_in_ga(T70))
part20_in_gaaa(T70) → U3_gaaa(T70, gt10_in_ga(T70))
part20_in_gaaa(T95) → U5_gaaa(le33_in_ga(T95))
part20_in_gaaa(T95) → U6_gaaa(T95, le33_in_ga(T95))
part20_in_gaaa(T128) → part20_out_gaaa
U8_aa(le33_out_aa(T113)) → le33_out_aa(s(T113))
U9_aaaaaaa(part20_out_aaaa) → p56_out_aaaaaaa
U10_aaaaaaa(part20_out_aaaa) → U11_aaaaaaa(qs59_in_aa)
U12_aaaaaaa(part20_out_aaaa) → U13_aaaaaaa(qs59_in_aa)
U15_aaaaaaa(part20_out_aaaa) → U16_aaaaaaa(qs59_in_aa)
U2_gaaa(gt10_out_ga(T73)) → part20_out_gaaa
U3_gaaa(T70, gt10_out_ga(T73)) → U4_gaaa(part20_in_gaaa(T70))
U5_gaaa(le33_out_ga) → part20_out_gaaa
U6_gaaa(T95, le33_out_ga) → U7_gaaa(part20_in_gaaa(T95))
U11_aaaaaaa(qs59_out_aa) → p56_out_aaaaaaa
U13_aaaaaaa(qs59_out_aa) → U14_aaaaaaa(qs59_in_aa)
U16_aaaaaaa(qs59_out_aa) → U17_aaaaaaa(qs59_in_aa)
gt10_in_ga(s(T46)) → U1_ga(gt10_in_ga(T46))
gt10_in_ga(s(0)) → gt10_out_ga(0)
U4_gaaa(part20_out_gaaa) → part20_out_gaaa
le33_in_ga(s(T113)) → U8_ga(le33_in_ga(T113))
le33_in_ga(0) → le33_out_ga
U7_gaaa(part20_out_gaaa) → part20_out_gaaa
U14_aaaaaaa(qs59_out_aa) → p56_out_aaaaaaa
U17_aaaaaaa(qs59_out_aa) → U18_aaaaaaa(app70_in_aaaa)
U1_ga(gt10_out_ga(T47)) → gt10_out_ga(s(T47))
U8_ga(le33_out_ga) → le33_out_ga
U18_aaaaaaa(app70_out_aaaa) → p56_out_aaaaaaa
app70_in_aaaa → U20_aaaa(app70_in_aaaa)
app70_in_aaaa → app70_out_aaaa
U20_aaaa(app70_out_aaaa) → app70_out_aaaa
part20_in_aaaa
qs59_in_aa
U2_aaaa(x0)
U3_aaaa(x0)
U5_aaaa(x0)
U6_aaaa(x0)
U19_aa(x0)
gt10_in_aa
U4_aaaa(x0)
le33_in_aa
U7_aaaa(x0)
p56_in_aaaaaaa
U1_aa(x0)
part20_in_gaaa(x0)
U8_aa(x0)
U9_aaaaaaa(x0)
U10_aaaaaaa(x0)
U12_aaaaaaa(x0)
U15_aaaaaaa(x0)
U2_gaaa(x0)
U3_gaaa(x0, x1)
U5_gaaa(x0)
U6_gaaa(x0, x1)
U11_aaaaaaa(x0)
U13_aaaaaaa(x0)
U16_aaaaaaa(x0)
gt10_in_ga(x0)
U4_gaaa(x0)
le33_in_ga(x0)
U7_gaaa(x0)
U14_aaaaaaa(x0)
U17_aaaaaaa(x0)
U1_ga(x0)
U8_ga(x0)
U18_aaaaaaa(x0)
app70_in_aaaa
U20_aaaa(x0)
P56_IN_AAAAAAA → U10_AAAAAAA(U2_aaaa(gt10_in_aa))
P56_IN_AAAAAAA → U10_AAAAAAA(U3_aaaa(gt10_in_aa))
P56_IN_AAAAAAA → U10_AAAAAAA(U5_aaaa(le33_in_aa))
P56_IN_AAAAAAA → U10_AAAAAAA(U6_aaaa(le33_in_aa))
P56_IN_AAAAAAA → U10_AAAAAAA(part20_out_aaaa)
U10_AAAAAAA(part20_out_aaaa) → QS59_IN_AA
QS59_IN_AA → P56_IN_AAAAAAA
P56_IN_AAAAAAA → U12_AAAAAAA(part20_in_aaaa)
U12_AAAAAAA(part20_out_aaaa) → U13_AAAAAAA(qs59_in_aa)
U13_AAAAAAA(qs59_out_aa) → QS59_IN_AA
U12_AAAAAAA(part20_out_aaaa) → QS59_IN_AA
P56_IN_AAAAAAA → U15_AAAAAAA(part20_in_aaaa)
U15_AAAAAAA(part20_out_aaaa) → U16_AAAAAAA(qs59_in_aa)
U16_AAAAAAA(qs59_out_aa) → QS59_IN_AA
U15_AAAAAAA(part20_out_aaaa) → QS59_IN_AA
P56_IN_AAAAAAA → U10_AAAAAAA(U2_aaaa(gt10_in_aa))
P56_IN_AAAAAAA → U10_AAAAAAA(U3_aaaa(gt10_in_aa))
P56_IN_AAAAAAA → U10_AAAAAAA(U5_aaaa(le33_in_aa))
P56_IN_AAAAAAA → U10_AAAAAAA(U6_aaaa(le33_in_aa))
P56_IN_AAAAAAA → U10_AAAAAAA(part20_out_aaaa)
part20_in_aaaa → U2_aaaa(gt10_in_aa)
part20_in_aaaa → U3_aaaa(gt10_in_aa)
part20_in_aaaa → U5_aaaa(le33_in_aa)
part20_in_aaaa → U6_aaaa(le33_in_aa)
part20_in_aaaa → part20_out_aaaa
qs59_in_aa → U19_aa(p56_in_aaaaaaa)
qs59_in_aa → qs59_out_aa
U2_aaaa(gt10_out_aa(T70, T73)) → part20_out_aaaa
U3_aaaa(gt10_out_aa(T70, T73)) → U4_aaaa(part20_in_gaaa(T70))
U5_aaaa(le33_out_aa(T95)) → part20_out_aaaa
U6_aaaa(le33_out_aa(T95)) → U7_aaaa(part20_in_gaaa(T95))
U19_aa(p56_out_aaaaaaa) → qs59_out_aa
gt10_in_aa → U1_aa(gt10_in_aa)
gt10_in_aa → gt10_out_aa(s(0), 0)
U4_aaaa(part20_out_gaaa) → part20_out_aaaa
le33_in_aa → U8_aa(le33_in_aa)
le33_in_aa → le33_out_aa(0)
U7_aaaa(part20_out_gaaa) → part20_out_aaaa
p56_in_aaaaaaa → U9_aaaaaaa(part20_in_aaaa)
p56_in_aaaaaaa → U10_aaaaaaa(part20_in_aaaa)
p56_in_aaaaaaa → U12_aaaaaaa(part20_in_aaaa)
p56_in_aaaaaaa → U15_aaaaaaa(part20_in_aaaa)
U1_aa(gt10_out_aa(T46, T47)) → gt10_out_aa(s(T46), s(T47))
part20_in_gaaa(T70) → U2_gaaa(gt10_in_ga(T70))
part20_in_gaaa(T70) → U3_gaaa(T70, gt10_in_ga(T70))
part20_in_gaaa(T95) → U5_gaaa(le33_in_ga(T95))
part20_in_gaaa(T95) → U6_gaaa(T95, le33_in_ga(T95))
part20_in_gaaa(T128) → part20_out_gaaa
U8_aa(le33_out_aa(T113)) → le33_out_aa(s(T113))
U9_aaaaaaa(part20_out_aaaa) → p56_out_aaaaaaa
U10_aaaaaaa(part20_out_aaaa) → U11_aaaaaaa(qs59_in_aa)
U12_aaaaaaa(part20_out_aaaa) → U13_aaaaaaa(qs59_in_aa)
U15_aaaaaaa(part20_out_aaaa) → U16_aaaaaaa(qs59_in_aa)
U2_gaaa(gt10_out_ga(T73)) → part20_out_gaaa
U3_gaaa(T70, gt10_out_ga(T73)) → U4_gaaa(part20_in_gaaa(T70))
U5_gaaa(le33_out_ga) → part20_out_gaaa
U6_gaaa(T95, le33_out_ga) → U7_gaaa(part20_in_gaaa(T95))
U11_aaaaaaa(qs59_out_aa) → p56_out_aaaaaaa
U13_aaaaaaa(qs59_out_aa) → U14_aaaaaaa(qs59_in_aa)
U16_aaaaaaa(qs59_out_aa) → U17_aaaaaaa(qs59_in_aa)
gt10_in_ga(s(T46)) → U1_ga(gt10_in_ga(T46))
gt10_in_ga(s(0)) → gt10_out_ga(0)
U4_gaaa(part20_out_gaaa) → part20_out_gaaa
le33_in_ga(s(T113)) → U8_ga(le33_in_ga(T113))
le33_in_ga(0) → le33_out_ga
U7_gaaa(part20_out_gaaa) → part20_out_gaaa
U14_aaaaaaa(qs59_out_aa) → p56_out_aaaaaaa
U17_aaaaaaa(qs59_out_aa) → U18_aaaaaaa(app70_in_aaaa)
U1_ga(gt10_out_ga(T47)) → gt10_out_ga(s(T47))
U8_ga(le33_out_ga) → le33_out_ga
U18_aaaaaaa(app70_out_aaaa) → p56_out_aaaaaaa
app70_in_aaaa → U20_aaaa(app70_in_aaaa)
app70_in_aaaa → app70_out_aaaa
U20_aaaa(app70_out_aaaa) → app70_out_aaaa
part20_in_aaaa
qs59_in_aa
U2_aaaa(x0)
U3_aaaa(x0)
U5_aaaa(x0)
U6_aaaa(x0)
U19_aa(x0)
gt10_in_aa
U4_aaaa(x0)
le33_in_aa
U7_aaaa(x0)
p56_in_aaaaaaa
U1_aa(x0)
part20_in_gaaa(x0)
U8_aa(x0)
U9_aaaaaaa(x0)
U10_aaaaaaa(x0)
U12_aaaaaaa(x0)
U15_aaaaaaa(x0)
U2_gaaa(x0)
U3_gaaa(x0, x1)
U5_gaaa(x0)
U6_gaaa(x0, x1)
U11_aaaaaaa(x0)
U13_aaaaaaa(x0)
U16_aaaaaaa(x0)
gt10_in_ga(x0)
U4_gaaa(x0)
le33_in_ga(x0)
U7_gaaa(x0)
U14_aaaaaaa(x0)
U17_aaaaaaa(x0)
U1_ga(x0)
U8_ga(x0)
U18_aaaaaaa(x0)
app70_in_aaaa
U20_aaaa(x0)
P56_IN_AAAAAAA → U12_AAAAAAA(U2_aaaa(gt10_in_aa))
P56_IN_AAAAAAA → U12_AAAAAAA(U3_aaaa(gt10_in_aa))
P56_IN_AAAAAAA → U12_AAAAAAA(U5_aaaa(le33_in_aa))
P56_IN_AAAAAAA → U12_AAAAAAA(U6_aaaa(le33_in_aa))
P56_IN_AAAAAAA → U12_AAAAAAA(part20_out_aaaa)
U10_AAAAAAA(part20_out_aaaa) → QS59_IN_AA
QS59_IN_AA → P56_IN_AAAAAAA
U12_AAAAAAA(part20_out_aaaa) → U13_AAAAAAA(qs59_in_aa)
U13_AAAAAAA(qs59_out_aa) → QS59_IN_AA
U12_AAAAAAA(part20_out_aaaa) → QS59_IN_AA
P56_IN_AAAAAAA → U15_AAAAAAA(part20_in_aaaa)
U15_AAAAAAA(part20_out_aaaa) → U16_AAAAAAA(qs59_in_aa)
U16_AAAAAAA(qs59_out_aa) → QS59_IN_AA
U15_AAAAAAA(part20_out_aaaa) → QS59_IN_AA
P56_IN_AAAAAAA → U10_AAAAAAA(U2_aaaa(gt10_in_aa))
P56_IN_AAAAAAA → U10_AAAAAAA(U3_aaaa(gt10_in_aa))
P56_IN_AAAAAAA → U10_AAAAAAA(U5_aaaa(le33_in_aa))
P56_IN_AAAAAAA → U10_AAAAAAA(U6_aaaa(le33_in_aa))
P56_IN_AAAAAAA → U10_AAAAAAA(part20_out_aaaa)
P56_IN_AAAAAAA → U12_AAAAAAA(U2_aaaa(gt10_in_aa))
P56_IN_AAAAAAA → U12_AAAAAAA(U3_aaaa(gt10_in_aa))
P56_IN_AAAAAAA → U12_AAAAAAA(U5_aaaa(le33_in_aa))
P56_IN_AAAAAAA → U12_AAAAAAA(U6_aaaa(le33_in_aa))
P56_IN_AAAAAAA → U12_AAAAAAA(part20_out_aaaa)
part20_in_aaaa → U2_aaaa(gt10_in_aa)
part20_in_aaaa → U3_aaaa(gt10_in_aa)
part20_in_aaaa → U5_aaaa(le33_in_aa)
part20_in_aaaa → U6_aaaa(le33_in_aa)
part20_in_aaaa → part20_out_aaaa
qs59_in_aa → U19_aa(p56_in_aaaaaaa)
qs59_in_aa → qs59_out_aa
U2_aaaa(gt10_out_aa(T70, T73)) → part20_out_aaaa
U3_aaaa(gt10_out_aa(T70, T73)) → U4_aaaa(part20_in_gaaa(T70))
U5_aaaa(le33_out_aa(T95)) → part20_out_aaaa
U6_aaaa(le33_out_aa(T95)) → U7_aaaa(part20_in_gaaa(T95))
U19_aa(p56_out_aaaaaaa) → qs59_out_aa
gt10_in_aa → U1_aa(gt10_in_aa)
gt10_in_aa → gt10_out_aa(s(0), 0)
U4_aaaa(part20_out_gaaa) → part20_out_aaaa
le33_in_aa → U8_aa(le33_in_aa)
le33_in_aa → le33_out_aa(0)
U7_aaaa(part20_out_gaaa) → part20_out_aaaa
p56_in_aaaaaaa → U9_aaaaaaa(part20_in_aaaa)
p56_in_aaaaaaa → U10_aaaaaaa(part20_in_aaaa)
p56_in_aaaaaaa → U12_aaaaaaa(part20_in_aaaa)
p56_in_aaaaaaa → U15_aaaaaaa(part20_in_aaaa)
U1_aa(gt10_out_aa(T46, T47)) → gt10_out_aa(s(T46), s(T47))
part20_in_gaaa(T70) → U2_gaaa(gt10_in_ga(T70))
part20_in_gaaa(T70) → U3_gaaa(T70, gt10_in_ga(T70))
part20_in_gaaa(T95) → U5_gaaa(le33_in_ga(T95))
part20_in_gaaa(T95) → U6_gaaa(T95, le33_in_ga(T95))
part20_in_gaaa(T128) → part20_out_gaaa
U8_aa(le33_out_aa(T113)) → le33_out_aa(s(T113))
U9_aaaaaaa(part20_out_aaaa) → p56_out_aaaaaaa
U10_aaaaaaa(part20_out_aaaa) → U11_aaaaaaa(qs59_in_aa)
U12_aaaaaaa(part20_out_aaaa) → U13_aaaaaaa(qs59_in_aa)
U15_aaaaaaa(part20_out_aaaa) → U16_aaaaaaa(qs59_in_aa)
U2_gaaa(gt10_out_ga(T73)) → part20_out_gaaa
U3_gaaa(T70, gt10_out_ga(T73)) → U4_gaaa(part20_in_gaaa(T70))
U5_gaaa(le33_out_ga) → part20_out_gaaa
U6_gaaa(T95, le33_out_ga) → U7_gaaa(part20_in_gaaa(T95))
U11_aaaaaaa(qs59_out_aa) → p56_out_aaaaaaa
U13_aaaaaaa(qs59_out_aa) → U14_aaaaaaa(qs59_in_aa)
U16_aaaaaaa(qs59_out_aa) → U17_aaaaaaa(qs59_in_aa)
gt10_in_ga(s(T46)) → U1_ga(gt10_in_ga(T46))
gt10_in_ga(s(0)) → gt10_out_ga(0)
U4_gaaa(part20_out_gaaa) → part20_out_gaaa
le33_in_ga(s(T113)) → U8_ga(le33_in_ga(T113))
le33_in_ga(0) → le33_out_ga
U7_gaaa(part20_out_gaaa) → part20_out_gaaa
U14_aaaaaaa(qs59_out_aa) → p56_out_aaaaaaa
U17_aaaaaaa(qs59_out_aa) → U18_aaaaaaa(app70_in_aaaa)
U1_ga(gt10_out_ga(T47)) → gt10_out_ga(s(T47))
U8_ga(le33_out_ga) → le33_out_ga
U18_aaaaaaa(app70_out_aaaa) → p56_out_aaaaaaa
app70_in_aaaa → U20_aaaa(app70_in_aaaa)
app70_in_aaaa → app70_out_aaaa
U20_aaaa(app70_out_aaaa) → app70_out_aaaa
part20_in_aaaa
qs59_in_aa
U2_aaaa(x0)
U3_aaaa(x0)
U5_aaaa(x0)
U6_aaaa(x0)
U19_aa(x0)
gt10_in_aa
U4_aaaa(x0)
le33_in_aa
U7_aaaa(x0)
p56_in_aaaaaaa
U1_aa(x0)
part20_in_gaaa(x0)
U8_aa(x0)
U9_aaaaaaa(x0)
U10_aaaaaaa(x0)
U12_aaaaaaa(x0)
U15_aaaaaaa(x0)
U2_gaaa(x0)
U3_gaaa(x0, x1)
U5_gaaa(x0)
U6_gaaa(x0, x1)
U11_aaaaaaa(x0)
U13_aaaaaaa(x0)
U16_aaaaaaa(x0)
gt10_in_ga(x0)
U4_gaaa(x0)
le33_in_ga(x0)
U7_gaaa(x0)
U14_aaaaaaa(x0)
U17_aaaaaaa(x0)
U1_ga(x0)
U8_ga(x0)
U18_aaaaaaa(x0)
app70_in_aaaa
U20_aaaa(x0)
U12_AAAAAAA(part20_out_aaaa) → U13_AAAAAAA(U19_aa(p56_in_aaaaaaa))
U12_AAAAAAA(part20_out_aaaa) → U13_AAAAAAA(qs59_out_aa)
U10_AAAAAAA(part20_out_aaaa) → QS59_IN_AA
QS59_IN_AA → P56_IN_AAAAAAA
U13_AAAAAAA(qs59_out_aa) → QS59_IN_AA
U12_AAAAAAA(part20_out_aaaa) → QS59_IN_AA
P56_IN_AAAAAAA → U15_AAAAAAA(part20_in_aaaa)
U15_AAAAAAA(part20_out_aaaa) → U16_AAAAAAA(qs59_in_aa)
U16_AAAAAAA(qs59_out_aa) → QS59_IN_AA
U15_AAAAAAA(part20_out_aaaa) → QS59_IN_AA
P56_IN_AAAAAAA → U10_AAAAAAA(U2_aaaa(gt10_in_aa))
P56_IN_AAAAAAA → U10_AAAAAAA(U3_aaaa(gt10_in_aa))
P56_IN_AAAAAAA → U10_AAAAAAA(U5_aaaa(le33_in_aa))
P56_IN_AAAAAAA → U10_AAAAAAA(U6_aaaa(le33_in_aa))
P56_IN_AAAAAAA → U10_AAAAAAA(part20_out_aaaa)
P56_IN_AAAAAAA → U12_AAAAAAA(U2_aaaa(gt10_in_aa))
P56_IN_AAAAAAA → U12_AAAAAAA(U3_aaaa(gt10_in_aa))
P56_IN_AAAAAAA → U12_AAAAAAA(U5_aaaa(le33_in_aa))
P56_IN_AAAAAAA → U12_AAAAAAA(U6_aaaa(le33_in_aa))
P56_IN_AAAAAAA → U12_AAAAAAA(part20_out_aaaa)
U12_AAAAAAA(part20_out_aaaa) → U13_AAAAAAA(U19_aa(p56_in_aaaaaaa))
U12_AAAAAAA(part20_out_aaaa) → U13_AAAAAAA(qs59_out_aa)
part20_in_aaaa → U2_aaaa(gt10_in_aa)
part20_in_aaaa → U3_aaaa(gt10_in_aa)
part20_in_aaaa → U5_aaaa(le33_in_aa)
part20_in_aaaa → U6_aaaa(le33_in_aa)
part20_in_aaaa → part20_out_aaaa
qs59_in_aa → U19_aa(p56_in_aaaaaaa)
qs59_in_aa → qs59_out_aa
U2_aaaa(gt10_out_aa(T70, T73)) → part20_out_aaaa
U3_aaaa(gt10_out_aa(T70, T73)) → U4_aaaa(part20_in_gaaa(T70))
U5_aaaa(le33_out_aa(T95)) → part20_out_aaaa
U6_aaaa(le33_out_aa(T95)) → U7_aaaa(part20_in_gaaa(T95))
U19_aa(p56_out_aaaaaaa) → qs59_out_aa
gt10_in_aa → U1_aa(gt10_in_aa)
gt10_in_aa → gt10_out_aa(s(0), 0)
U4_aaaa(part20_out_gaaa) → part20_out_aaaa
le33_in_aa → U8_aa(le33_in_aa)
le33_in_aa → le33_out_aa(0)
U7_aaaa(part20_out_gaaa) → part20_out_aaaa
p56_in_aaaaaaa → U9_aaaaaaa(part20_in_aaaa)
p56_in_aaaaaaa → U10_aaaaaaa(part20_in_aaaa)
p56_in_aaaaaaa → U12_aaaaaaa(part20_in_aaaa)
p56_in_aaaaaaa → U15_aaaaaaa(part20_in_aaaa)
U1_aa(gt10_out_aa(T46, T47)) → gt10_out_aa(s(T46), s(T47))
part20_in_gaaa(T70) → U2_gaaa(gt10_in_ga(T70))
part20_in_gaaa(T70) → U3_gaaa(T70, gt10_in_ga(T70))
part20_in_gaaa(T95) → U5_gaaa(le33_in_ga(T95))
part20_in_gaaa(T95) → U6_gaaa(T95, le33_in_ga(T95))
part20_in_gaaa(T128) → part20_out_gaaa
U8_aa(le33_out_aa(T113)) → le33_out_aa(s(T113))
U9_aaaaaaa(part20_out_aaaa) → p56_out_aaaaaaa
U10_aaaaaaa(part20_out_aaaa) → U11_aaaaaaa(qs59_in_aa)
U12_aaaaaaa(part20_out_aaaa) → U13_aaaaaaa(qs59_in_aa)
U15_aaaaaaa(part20_out_aaaa) → U16_aaaaaaa(qs59_in_aa)
U2_gaaa(gt10_out_ga(T73)) → part20_out_gaaa
U3_gaaa(T70, gt10_out_ga(T73)) → U4_gaaa(part20_in_gaaa(T70))
U5_gaaa(le33_out_ga) → part20_out_gaaa
U6_gaaa(T95, le33_out_ga) → U7_gaaa(part20_in_gaaa(T95))
U11_aaaaaaa(qs59_out_aa) → p56_out_aaaaaaa
U13_aaaaaaa(qs59_out_aa) → U14_aaaaaaa(qs59_in_aa)
U16_aaaaaaa(qs59_out_aa) → U17_aaaaaaa(qs59_in_aa)
gt10_in_ga(s(T46)) → U1_ga(gt10_in_ga(T46))
gt10_in_ga(s(0)) → gt10_out_ga(0)
U4_gaaa(part20_out_gaaa) → part20_out_gaaa
le33_in_ga(s(T113)) → U8_ga(le33_in_ga(T113))
le33_in_ga(0) → le33_out_ga
U7_gaaa(part20_out_gaaa) → part20_out_gaaa
U14_aaaaaaa(qs59_out_aa) → p56_out_aaaaaaa
U17_aaaaaaa(qs59_out_aa) → U18_aaaaaaa(app70_in_aaaa)
U1_ga(gt10_out_ga(T47)) → gt10_out_ga(s(T47))
U8_ga(le33_out_ga) → le33_out_ga
U18_aaaaaaa(app70_out_aaaa) → p56_out_aaaaaaa
app70_in_aaaa → U20_aaaa(app70_in_aaaa)
app70_in_aaaa → app70_out_aaaa
U20_aaaa(app70_out_aaaa) → app70_out_aaaa
part20_in_aaaa
qs59_in_aa
U2_aaaa(x0)
U3_aaaa(x0)
U5_aaaa(x0)
U6_aaaa(x0)
U19_aa(x0)
gt10_in_aa
U4_aaaa(x0)
le33_in_aa
U7_aaaa(x0)
p56_in_aaaaaaa
U1_aa(x0)
part20_in_gaaa(x0)
U8_aa(x0)
U9_aaaaaaa(x0)
U10_aaaaaaa(x0)
U12_aaaaaaa(x0)
U15_aaaaaaa(x0)
U2_gaaa(x0)
U3_gaaa(x0, x1)
U5_gaaa(x0)
U6_gaaa(x0, x1)
U11_aaaaaaa(x0)
U13_aaaaaaa(x0)
U16_aaaaaaa(x0)
gt10_in_ga(x0)
U4_gaaa(x0)
le33_in_ga(x0)
U7_gaaa(x0)
U14_aaaaaaa(x0)
U17_aaaaaaa(x0)
U1_ga(x0)
U8_ga(x0)
U18_aaaaaaa(x0)
app70_in_aaaa
U20_aaaa(x0)
P56_IN_AAAAAAA → U15_AAAAAAA(U2_aaaa(gt10_in_aa))
P56_IN_AAAAAAA → U15_AAAAAAA(U3_aaaa(gt10_in_aa))
P56_IN_AAAAAAA → U15_AAAAAAA(U5_aaaa(le33_in_aa))
P56_IN_AAAAAAA → U15_AAAAAAA(U6_aaaa(le33_in_aa))
P56_IN_AAAAAAA → U15_AAAAAAA(part20_out_aaaa)
U10_AAAAAAA(part20_out_aaaa) → QS59_IN_AA
QS59_IN_AA → P56_IN_AAAAAAA
U13_AAAAAAA(qs59_out_aa) → QS59_IN_AA
U12_AAAAAAA(part20_out_aaaa) → QS59_IN_AA
U15_AAAAAAA(part20_out_aaaa) → U16_AAAAAAA(qs59_in_aa)
U16_AAAAAAA(qs59_out_aa) → QS59_IN_AA
U15_AAAAAAA(part20_out_aaaa) → QS59_IN_AA
P56_IN_AAAAAAA → U10_AAAAAAA(U2_aaaa(gt10_in_aa))
P56_IN_AAAAAAA → U10_AAAAAAA(U3_aaaa(gt10_in_aa))
P56_IN_AAAAAAA → U10_AAAAAAA(U5_aaaa(le33_in_aa))
P56_IN_AAAAAAA → U10_AAAAAAA(U6_aaaa(le33_in_aa))
P56_IN_AAAAAAA → U10_AAAAAAA(part20_out_aaaa)
P56_IN_AAAAAAA → U12_AAAAAAA(U2_aaaa(gt10_in_aa))
P56_IN_AAAAAAA → U12_AAAAAAA(U3_aaaa(gt10_in_aa))
P56_IN_AAAAAAA → U12_AAAAAAA(U5_aaaa(le33_in_aa))
P56_IN_AAAAAAA → U12_AAAAAAA(U6_aaaa(le33_in_aa))
P56_IN_AAAAAAA → U12_AAAAAAA(part20_out_aaaa)
U12_AAAAAAA(part20_out_aaaa) → U13_AAAAAAA(U19_aa(p56_in_aaaaaaa))
U12_AAAAAAA(part20_out_aaaa) → U13_AAAAAAA(qs59_out_aa)
P56_IN_AAAAAAA → U15_AAAAAAA(U2_aaaa(gt10_in_aa))
P56_IN_AAAAAAA → U15_AAAAAAA(U3_aaaa(gt10_in_aa))
P56_IN_AAAAAAA → U15_AAAAAAA(U5_aaaa(le33_in_aa))
P56_IN_AAAAAAA → U15_AAAAAAA(U6_aaaa(le33_in_aa))
P56_IN_AAAAAAA → U15_AAAAAAA(part20_out_aaaa)
part20_in_aaaa → U2_aaaa(gt10_in_aa)
part20_in_aaaa → U3_aaaa(gt10_in_aa)
part20_in_aaaa → U5_aaaa(le33_in_aa)
part20_in_aaaa → U6_aaaa(le33_in_aa)
part20_in_aaaa → part20_out_aaaa
qs59_in_aa → U19_aa(p56_in_aaaaaaa)
qs59_in_aa → qs59_out_aa
U2_aaaa(gt10_out_aa(T70, T73)) → part20_out_aaaa
U3_aaaa(gt10_out_aa(T70, T73)) → U4_aaaa(part20_in_gaaa(T70))
U5_aaaa(le33_out_aa(T95)) → part20_out_aaaa
U6_aaaa(le33_out_aa(T95)) → U7_aaaa(part20_in_gaaa(T95))
U19_aa(p56_out_aaaaaaa) → qs59_out_aa
gt10_in_aa → U1_aa(gt10_in_aa)
gt10_in_aa → gt10_out_aa(s(0), 0)
U4_aaaa(part20_out_gaaa) → part20_out_aaaa
le33_in_aa → U8_aa(le33_in_aa)
le33_in_aa → le33_out_aa(0)
U7_aaaa(part20_out_gaaa) → part20_out_aaaa
p56_in_aaaaaaa → U9_aaaaaaa(part20_in_aaaa)
p56_in_aaaaaaa → U10_aaaaaaa(part20_in_aaaa)
p56_in_aaaaaaa → U12_aaaaaaa(part20_in_aaaa)
p56_in_aaaaaaa → U15_aaaaaaa(part20_in_aaaa)
U1_aa(gt10_out_aa(T46, T47)) → gt10_out_aa(s(T46), s(T47))
part20_in_gaaa(T70) → U2_gaaa(gt10_in_ga(T70))
part20_in_gaaa(T70) → U3_gaaa(T70, gt10_in_ga(T70))
part20_in_gaaa(T95) → U5_gaaa(le33_in_ga(T95))
part20_in_gaaa(T95) → U6_gaaa(T95, le33_in_ga(T95))
part20_in_gaaa(T128) → part20_out_gaaa
U8_aa(le33_out_aa(T113)) → le33_out_aa(s(T113))
U9_aaaaaaa(part20_out_aaaa) → p56_out_aaaaaaa
U10_aaaaaaa(part20_out_aaaa) → U11_aaaaaaa(qs59_in_aa)
U12_aaaaaaa(part20_out_aaaa) → U13_aaaaaaa(qs59_in_aa)
U15_aaaaaaa(part20_out_aaaa) → U16_aaaaaaa(qs59_in_aa)
U2_gaaa(gt10_out_ga(T73)) → part20_out_gaaa
U3_gaaa(T70, gt10_out_ga(T73)) → U4_gaaa(part20_in_gaaa(T70))
U5_gaaa(le33_out_ga) → part20_out_gaaa
U6_gaaa(T95, le33_out_ga) → U7_gaaa(part20_in_gaaa(T95))
U11_aaaaaaa(qs59_out_aa) → p56_out_aaaaaaa
U13_aaaaaaa(qs59_out_aa) → U14_aaaaaaa(qs59_in_aa)
U16_aaaaaaa(qs59_out_aa) → U17_aaaaaaa(qs59_in_aa)
gt10_in_ga(s(T46)) → U1_ga(gt10_in_ga(T46))
gt10_in_ga(s(0)) → gt10_out_ga(0)
U4_gaaa(part20_out_gaaa) → part20_out_gaaa
le33_in_ga(s(T113)) → U8_ga(le33_in_ga(T113))
le33_in_ga(0) → le33_out_ga
U7_gaaa(part20_out_gaaa) → part20_out_gaaa
U14_aaaaaaa(qs59_out_aa) → p56_out_aaaaaaa
U17_aaaaaaa(qs59_out_aa) → U18_aaaaaaa(app70_in_aaaa)
U1_ga(gt10_out_ga(T47)) → gt10_out_ga(s(T47))
U8_ga(le33_out_ga) → le33_out_ga
U18_aaaaaaa(app70_out_aaaa) → p56_out_aaaaaaa
app70_in_aaaa → U20_aaaa(app70_in_aaaa)
app70_in_aaaa → app70_out_aaaa
U20_aaaa(app70_out_aaaa) → app70_out_aaaa
part20_in_aaaa
qs59_in_aa
U2_aaaa(x0)
U3_aaaa(x0)
U5_aaaa(x0)
U6_aaaa(x0)
U19_aa(x0)
gt10_in_aa
U4_aaaa(x0)
le33_in_aa
U7_aaaa(x0)
p56_in_aaaaaaa
U1_aa(x0)
part20_in_gaaa(x0)
U8_aa(x0)
U9_aaaaaaa(x0)
U10_aaaaaaa(x0)
U12_aaaaaaa(x0)
U15_aaaaaaa(x0)
U2_gaaa(x0)
U3_gaaa(x0, x1)
U5_gaaa(x0)
U6_gaaa(x0, x1)
U11_aaaaaaa(x0)
U13_aaaaaaa(x0)
U16_aaaaaaa(x0)
gt10_in_ga(x0)
U4_gaaa(x0)
le33_in_ga(x0)
U7_gaaa(x0)
U14_aaaaaaa(x0)
U17_aaaaaaa(x0)
U1_ga(x0)
U8_ga(x0)
U18_aaaaaaa(x0)
app70_in_aaaa
U20_aaaa(x0)
U15_AAAAAAA(part20_out_aaaa) → U16_AAAAAAA(U19_aa(p56_in_aaaaaaa))
U15_AAAAAAA(part20_out_aaaa) → U16_AAAAAAA(qs59_out_aa)
U10_AAAAAAA(part20_out_aaaa) → QS59_IN_AA
QS59_IN_AA → P56_IN_AAAAAAA
U13_AAAAAAA(qs59_out_aa) → QS59_IN_AA
U12_AAAAAAA(part20_out_aaaa) → QS59_IN_AA
U16_AAAAAAA(qs59_out_aa) → QS59_IN_AA
U15_AAAAAAA(part20_out_aaaa) → QS59_IN_AA
P56_IN_AAAAAAA → U10_AAAAAAA(U2_aaaa(gt10_in_aa))
P56_IN_AAAAAAA → U10_AAAAAAA(U3_aaaa(gt10_in_aa))
P56_IN_AAAAAAA → U10_AAAAAAA(U5_aaaa(le33_in_aa))
P56_IN_AAAAAAA → U10_AAAAAAA(U6_aaaa(le33_in_aa))
P56_IN_AAAAAAA → U10_AAAAAAA(part20_out_aaaa)
P56_IN_AAAAAAA → U12_AAAAAAA(U2_aaaa(gt10_in_aa))
P56_IN_AAAAAAA → U12_AAAAAAA(U3_aaaa(gt10_in_aa))
P56_IN_AAAAAAA → U12_AAAAAAA(U5_aaaa(le33_in_aa))
P56_IN_AAAAAAA → U12_AAAAAAA(U6_aaaa(le33_in_aa))
P56_IN_AAAAAAA → U12_AAAAAAA(part20_out_aaaa)
U12_AAAAAAA(part20_out_aaaa) → U13_AAAAAAA(U19_aa(p56_in_aaaaaaa))
U12_AAAAAAA(part20_out_aaaa) → U13_AAAAAAA(qs59_out_aa)
P56_IN_AAAAAAA → U15_AAAAAAA(U2_aaaa(gt10_in_aa))
P56_IN_AAAAAAA → U15_AAAAAAA(U3_aaaa(gt10_in_aa))
P56_IN_AAAAAAA → U15_AAAAAAA(U5_aaaa(le33_in_aa))
P56_IN_AAAAAAA → U15_AAAAAAA(U6_aaaa(le33_in_aa))
P56_IN_AAAAAAA → U15_AAAAAAA(part20_out_aaaa)
U15_AAAAAAA(part20_out_aaaa) → U16_AAAAAAA(U19_aa(p56_in_aaaaaaa))
U15_AAAAAAA(part20_out_aaaa) → U16_AAAAAAA(qs59_out_aa)
part20_in_aaaa → U2_aaaa(gt10_in_aa)
part20_in_aaaa → U3_aaaa(gt10_in_aa)
part20_in_aaaa → U5_aaaa(le33_in_aa)
part20_in_aaaa → U6_aaaa(le33_in_aa)
part20_in_aaaa → part20_out_aaaa
qs59_in_aa → U19_aa(p56_in_aaaaaaa)
qs59_in_aa → qs59_out_aa
U2_aaaa(gt10_out_aa(T70, T73)) → part20_out_aaaa
U3_aaaa(gt10_out_aa(T70, T73)) → U4_aaaa(part20_in_gaaa(T70))
U5_aaaa(le33_out_aa(T95)) → part20_out_aaaa
U6_aaaa(le33_out_aa(T95)) → U7_aaaa(part20_in_gaaa(T95))
U19_aa(p56_out_aaaaaaa) → qs59_out_aa
gt10_in_aa → U1_aa(gt10_in_aa)
gt10_in_aa → gt10_out_aa(s(0), 0)
U4_aaaa(part20_out_gaaa) → part20_out_aaaa
le33_in_aa → U8_aa(le33_in_aa)
le33_in_aa → le33_out_aa(0)
U7_aaaa(part20_out_gaaa) → part20_out_aaaa
p56_in_aaaaaaa → U9_aaaaaaa(part20_in_aaaa)
p56_in_aaaaaaa → U10_aaaaaaa(part20_in_aaaa)
p56_in_aaaaaaa → U12_aaaaaaa(part20_in_aaaa)
p56_in_aaaaaaa → U15_aaaaaaa(part20_in_aaaa)
U1_aa(gt10_out_aa(T46, T47)) → gt10_out_aa(s(T46), s(T47))
part20_in_gaaa(T70) → U2_gaaa(gt10_in_ga(T70))
part20_in_gaaa(T70) → U3_gaaa(T70, gt10_in_ga(T70))
part20_in_gaaa(T95) → U5_gaaa(le33_in_ga(T95))
part20_in_gaaa(T95) → U6_gaaa(T95, le33_in_ga(T95))
part20_in_gaaa(T128) → part20_out_gaaa
U8_aa(le33_out_aa(T113)) → le33_out_aa(s(T113))
U9_aaaaaaa(part20_out_aaaa) → p56_out_aaaaaaa
U10_aaaaaaa(part20_out_aaaa) → U11_aaaaaaa(qs59_in_aa)
U12_aaaaaaa(part20_out_aaaa) → U13_aaaaaaa(qs59_in_aa)
U15_aaaaaaa(part20_out_aaaa) → U16_aaaaaaa(qs59_in_aa)
U2_gaaa(gt10_out_ga(T73)) → part20_out_gaaa
U3_gaaa(T70, gt10_out_ga(T73)) → U4_gaaa(part20_in_gaaa(T70))
U5_gaaa(le33_out_ga) → part20_out_gaaa
U6_gaaa(T95, le33_out_ga) → U7_gaaa(part20_in_gaaa(T95))
U11_aaaaaaa(qs59_out_aa) → p56_out_aaaaaaa
U13_aaaaaaa(qs59_out_aa) → U14_aaaaaaa(qs59_in_aa)
U16_aaaaaaa(qs59_out_aa) → U17_aaaaaaa(qs59_in_aa)
gt10_in_ga(s(T46)) → U1_ga(gt10_in_ga(T46))
gt10_in_ga(s(0)) → gt10_out_ga(0)
U4_gaaa(part20_out_gaaa) → part20_out_gaaa
le33_in_ga(s(T113)) → U8_ga(le33_in_ga(T113))
le33_in_ga(0) → le33_out_ga
U7_gaaa(part20_out_gaaa) → part20_out_gaaa
U14_aaaaaaa(qs59_out_aa) → p56_out_aaaaaaa
U17_aaaaaaa(qs59_out_aa) → U18_aaaaaaa(app70_in_aaaa)
U1_ga(gt10_out_ga(T47)) → gt10_out_ga(s(T47))
U8_ga(le33_out_ga) → le33_out_ga
U18_aaaaaaa(app70_out_aaaa) → p56_out_aaaaaaa
app70_in_aaaa → U20_aaaa(app70_in_aaaa)
app70_in_aaaa → app70_out_aaaa
U20_aaaa(app70_out_aaaa) → app70_out_aaaa
part20_in_aaaa
qs59_in_aa
U2_aaaa(x0)
U3_aaaa(x0)
U5_aaaa(x0)
U6_aaaa(x0)
U19_aa(x0)
gt10_in_aa
U4_aaaa(x0)
le33_in_aa
U7_aaaa(x0)
p56_in_aaaaaaa
U1_aa(x0)
part20_in_gaaa(x0)
U8_aa(x0)
U9_aaaaaaa(x0)
U10_aaaaaaa(x0)
U12_aaaaaaa(x0)
U15_aaaaaaa(x0)
U2_gaaa(x0)
U3_gaaa(x0, x1)
U5_gaaa(x0)
U6_gaaa(x0, x1)
U11_aaaaaaa(x0)
U13_aaaaaaa(x0)
U16_aaaaaaa(x0)
gt10_in_ga(x0)
U4_gaaa(x0)
le33_in_ga(x0)
U7_gaaa(x0)
U14_aaaaaaa(x0)
U17_aaaaaaa(x0)
U1_ga(x0)
U8_ga(x0)
U18_aaaaaaa(x0)
app70_in_aaaa
U20_aaaa(x0)