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 QDPSizeChangeProof (⇔)
↳29 YES
↳30 PiDP
↳31 UsableRulesProof (⇔)
↳32 PiDP
↳33 PiDPToQDPProof (⇐)
↳34 QDP
↳35 QDPSizeChangeProof (⇔)
↳36 YES
↳37 PiDP
↳38 UsableRulesProof (⇔)
↳39 PiDP
↳40 PiDPToQDPProof (⇐)
↳41 QDP
↳42 NonTerminationProof (⇔)
↳43 NO
↳44 PiDP
↳45 UsableRulesProof (⇔)
↳46 PiDP
↳47 PiDPToQDPProof (⇐)
↳48 QDP
↳49 Narrowing (⇐)
↳50 QDP
↳51 UsableRulesProof (⇔)
↳52 QDP
↳53 QReductionProof (⇔)
↳54 QDP
↳55 Narrowing (⇐)
↳56 QDP
↳57 NonTerminationProof (⇔)
↳58 NO
↳59 PiDP
↳60 UsableRulesProof (⇔)
↳61 PiDP
↳62 PiDPToQDPProof (⇐)
↳63 QDP
↳64 NonTerminationProof (⇔)
↳65 NO
↳66 PiDP
↳67 UsableRulesProof (⇔)
↳68 PiDP
↳69 PiDPToQDPProof (⇐)
↳70 QDP
↳71 Narrowing (⇐)
↳72 QDP
↳73 Narrowing (⇐)
↳74 QDP
↳75 Narrowing (⇐)
↳76 QDP
↳77 Narrowing (⇐)
↳78 QDP
↳79 Narrowing (⇐)
↳80 QDP
↳81 NonTerminationProof (⇔)
↳82 NO
↳83 PrologToPiTRSProof (⇐)
↳84 PiTRS
↳85 DependencyPairsProof (⇔)
↳86 PiDP
↳87 DependencyGraphProof (⇔)
↳88 AND
↳89 PiDP
↳90 UsableRulesProof (⇔)
↳91 PiDP
↳92 PiDPToQDPProof (⇔)
↳93 QDP
↳94 QDPSizeChangeProof (⇔)
↳95 YES
↳96 PiDP
↳97 UsableRulesProof (⇔)
↳98 PiDP
↳99 PiDPToQDPProof (⇐)
↳100 QDP
↳101 QDPSizeChangeProof (⇔)
↳102 YES
↳103 PiDP
↳104 UsableRulesProof (⇔)
↳105 PiDP
↳106 PiDPToQDPProof (⇐)
↳107 QDP
↳108 QDPSizeChangeProof (⇔)
↳109 YES
↳110 PiDP
↳111 UsableRulesProof (⇔)
↳112 PiDP
↳113 PiDPToQDPProof (⇐)
↳114 QDP
↳115 QDPSizeChangeProof (⇔)
↳116 YES
↳117 PiDP
↳118 UsableRulesProof (⇔)
↳119 PiDP
↳120 PiDPToQDPProof (⇐)
↳121 QDP
↳122 NonTerminationProof (⇔)
↳123 NO
↳124 PiDP
↳125 UsableRulesProof (⇔)
↳126 PiDP
↳127 PiDPToQDPProof (⇐)
↳128 QDP
↳129 Narrowing (⇐)
↳130 QDP
↳131 UsableRulesProof (⇔)
↳132 QDP
↳133 QReductionProof (⇔)
↳134 QDP
↳135 Narrowing (⇐)
↳136 QDP
↳137 NonTerminationProof (⇔)
↳138 NO
↳139 PiDP
↳140 UsableRulesProof (⇔)
↳141 PiDP
↳142 PiDPToQDPProof (⇐)
↳143 QDP
↳144 NonTerminationProof (⇔)
↳145 NO
↳146 PiDP
↳147 UsableRulesProof (⇔)
↳148 PiDP
↳149 PiDPToQDPProof (⇐)
↳150 QDP
↳151 Narrowing (⇐)
↳152 QDP
↳153 Narrowing (⇐)
↳154 QDP
↳155 Narrowing (⇐)
↳156 QDP
↳157 Narrowing (⇐)
↳158 QDP
↳159 Narrowing (⇐)
↳160 QDP
↳161 NonTerminationProof (⇔)
↳162 NO
ms1_in_ag([], []) → ms1_out_ag([], [])
ms1_in_ag(.(T29, .(T27, T28)), []) → U35_ag(T29, T27, T28, split12_in_aaaa(T27, T28, X42, X41))
split12_in_aaaa(T42, T44, .(T42, X71), X72) → U2_aaaa(T42, T44, X71, X72, split16_in_aaa(T44, X72, X71))
split16_in_aaa([], [], []) → split16_out_aaa([], [], [])
split16_in_aaa(.(T49, T51), .(T49, X89), X90) → U1_aaa(T49, T51, X89, X90, split16_in_aaa(T51, X90, X89))
U1_aaa(T49, T51, X89, X90, split16_out_aaa(T51, X90, X89)) → split16_out_aaa(.(T49, T51), .(T49, X89), X90)
U2_aaaa(T42, T44, X71, X72, split16_out_aaa(T44, X72, X71)) → split12_out_aaaa(T42, T44, .(T42, X71), X72)
U35_ag(T29, T27, T28, split12_out_aaaa(T27, T28, X42, X41)) → ms1_out_ag(.(T29, .(T27, T28)), [])
ms1_in_ag(.(T34, .(T27, T28)), []) → U36_ag(T34, T27, T28, split12_in_aaaa(T27, T28, T32, T33))
U36_ag(T34, T27, T28, split12_out_aaaa(T27, T28, T32, T33)) → U37_ag(T34, T27, T28, ms25_in_aaa(T34, T33, X13))
ms25_in_aaa(T62, [], .(T62, [])) → ms25_out_aaa(T62, [], .(T62, []))
ms25_in_aaa(T72, .(T73, T74), X127) → U21_aaa(T72, T73, T74, X127, p34_in_aaaaaaaa(T72, T73, T74, X123, X124, X125, X126, X127))
p34_in_aaaaaaaa(T72, T73, T74, X123, X124, X125, X126, X127) → U3_aaaaaaaa(T72, T73, T74, X123, X124, X125, X126, X127, split12_in_aaaa(T72, .(T73, T74), X123, X124))
U3_aaaaaaaa(T72, T73, T74, X123, X124, X125, X126, X127, split12_out_aaaa(T72, .(T73, T74), X123, X124)) → p34_out_aaaaaaaa(T72, T73, T74, X123, X124, X125, X126, X127)
p34_in_aaaaaaaa(T72, T73, T74, T78, T79, X125, X126, X127) → U4_aaaaaaaa(T72, T73, T74, T78, T79, X125, X126, X127, split12_in_aaaa(T72, .(T73, T74), T78, T79))
U4_aaaaaaaa(T72, T73, T74, T78, T79, X125, X126, X127, split12_out_aaaa(T72, .(T73, T74), T78, T79)) → U5_aaaaaaaa(T72, T73, T74, T78, T79, X125, X126, X127, ms38_in_aa(T78, X125))
ms38_in_aa([], []) → ms38_out_aa([], [])
ms38_in_aa(.(T89, []), .(T89, [])) → ms38_out_aa(.(T89, []), .(T89, []))
ms38_in_aa(.(T99, .(T100, T101)), X172) → U13_aa(T99, T100, T101, X172, p34_in_aaaaaaaa(T99, T100, T101, X168, X169, X170, X171, X172))
p34_in_aaaaaaaa(T72, T73, T74, T78, T84, T83, X126, X127) → U6_aaaaaaaa(T72, T73, T74, T78, T84, T83, X126, X127, split12_in_aaaa(T72, .(T73, T74), T78, T84))
U6_aaaaaaaa(T72, T73, T74, T78, T84, T83, X126, X127, split12_out_aaaa(T72, .(T73, T74), T78, T84)) → U7_aaaaaaaa(T72, T73, T74, T78, T84, T83, X126, X127, ms38_in_aa(T78, T83))
U7_aaaaaaaa(T72, T73, T74, T78, T84, T83, X126, X127, ms38_out_aa(T78, T83)) → U8_aaaaaaaa(T72, T73, T74, T78, T84, T83, X126, X127, ms38_in_aa(T84, X126))
U8_aaaaaaaa(T72, T73, T74, T78, T84, T83, X126, X127, ms38_out_aa(T84, X126)) → p34_out_aaaaaaaa(T72, T73, T74, T78, T84, T83, X126, X127)
p34_in_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127) → U9_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127, split12_in_aaaa(T72, .(T73, T74), T78, T84))
U9_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127, split12_out_aaaa(T72, .(T73, T74), T78, T84)) → U10_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127, ms38_in_aa(T78, T106))
U10_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127, ms38_out_aa(T78, T106)) → U11_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127, ms38_in_aa(T84, T105))
U11_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127, ms38_out_aa(T84, T105)) → U12_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127, merge54_in_aaa(T106, T105, X127))
merge54_in_aaa([], T113, T113) → merge54_out_aaa([], T113, T113)
merge54_in_aaa(T118, [], T118) → merge54_out_aaa(T118, [], T118)
merge54_in_aaa(.(T139, T141), .(T140, T142), .(T139, X226)) → U14_aaa(T139, T141, T140, T142, X226, less70_in_aa(T139, T140))
less70_in_aa(0, T154) → less70_out_aa(0, T154)
less70_in_aa(s(T161), T162) → U22_aa(T161, T162, less78_in_aa(T161, T162))
less78_in_aa(0, s(T169)) → less78_out_aa(0, s(T169))
less78_in_aa(s(T176), s(T177)) → U20_aa(T176, T177, less78_in_aa(T176, T177))
U20_aa(T176, T177, less78_out_aa(T176, T177)) → less78_out_aa(s(T176), s(T177))
U22_aa(T161, T162, less78_out_aa(T161, T162)) → less70_out_aa(s(T161), T162)
U14_aaa(T139, T141, T140, T142, X226, less70_out_aa(T139, T140)) → merge54_out_aaa(.(T139, T141), .(T140, T142), .(T139, X226))
merge54_in_aaa(.(T139, T145), .(T146, T147), .(T139, X226)) → U15_aaa(T139, T145, T146, T147, X226, less70_in_aa(T139, T146))
U15_aaa(T139, T145, T146, T147, X226, less70_out_aa(T139, T146)) → U16_aaa(T139, T145, T146, T147, X226, merge54_in_aaa(T145, .(T146, T147), X226))
merge54_in_aaa(.(T197, T199), .(T196, T198), .(T196, X287)) → U17_aaa(T197, T199, T196, T198, X287, less78_in_aa(T196, T197))
U17_aaa(T197, T199, T196, T198, X287, less78_out_aa(T196, T197)) → merge54_out_aaa(.(T197, T199), .(T196, T198), .(T196, X287))
merge54_in_aaa(.(T202, T203), .(T196, T204), .(T196, X287)) → U18_aaa(T202, T203, T196, T204, X287, less78_in_aa(T196, T202))
U18_aaa(T202, T203, T196, T204, X287, less78_out_aa(T196, T202)) → U19_aaa(T202, T203, T196, T204, X287, merge54_in_aaa(.(T202, T203), T204, X287))
U19_aaa(T202, T203, T196, T204, X287, merge54_out_aaa(.(T202, T203), T204, X287)) → merge54_out_aaa(.(T202, T203), .(T196, T204), .(T196, X287))
U16_aaa(T139, T145, T146, T147, X226, merge54_out_aaa(T145, .(T146, T147), X226)) → merge54_out_aaa(.(T139, T145), .(T146, T147), .(T139, X226))
U12_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127, merge54_out_aaa(T106, T105, X127)) → p34_out_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127)
U13_aa(T99, T100, T101, X172, p34_out_aaaaaaaa(T99, T100, T101, X168, X169, X170, X171, X172)) → ms38_out_aa(.(T99, .(T100, T101)), X172)
U5_aaaaaaaa(T72, T73, T74, T78, T79, X125, X126, X127, ms38_out_aa(T78, X125)) → p34_out_aaaaaaaa(T72, T73, T74, T78, T79, X125, X126, X127)
U21_aaa(T72, T73, T74, X127, p34_out_aaaaaaaa(T72, T73, T74, X123, X124, X125, X126, X127)) → ms25_out_aaa(T72, .(T73, T74), X127)
U37_ag(T34, T27, T28, ms25_out_aaa(T34, T33, X13)) → ms1_out_ag(.(T34, .(T27, T28)), [])
ms1_in_ag(.(T34, .(T27, T28)), []) → U38_ag(T34, T27, T28, split12_in_aaaa(T27, T28, T55, T33))
U38_ag(T34, T27, T28, split12_out_aaaa(T27, T28, T55, T33)) → U39_ag(T34, T27, T28, T55, ms25_in_aaa(T34, T33, T54))
U39_ag(T34, T27, T28, T55, ms25_out_aaa(T34, T33, T54)) → U40_ag(T34, T27, T28, ms38_in_aa(T55, X14))
U40_ag(T34, T27, T28, ms38_out_aa(T55, X14)) → ms1_out_ag(.(T34, .(T27, T28)), [])
U38_ag(T34, T27, T28, split12_out_aaaa(T27, T28, T55, T33)) → U41_ag(T34, T27, T28, T55, ms25_in_aaa(T34, T33, T212))
U41_ag(T34, T27, T28, T55, ms25_out_aaa(T34, T33, T212)) → U42_ag(T34, T27, T28, T212, ms38_in_aa(T55, T211))
U42_ag(T34, T27, T28, T212, ms38_out_aa(T55, T211)) → U43_ag(T34, T27, T28, merge93_in_aa(T212, T211))
merge93_in_aa([], []) → merge93_out_aa([], [])
U43_ag(T34, T27, T28, merge93_out_aa(T212, T211)) → ms1_out_ag(.(T34, .(T27, T28)), [])
ms1_in_ag(.(T234, []), .(T234, [])) → ms1_out_ag(.(T234, []), .(T234, []))
ms1_in_ag(.(T262, .(T260, T261)), .(T242, [])) → U44_ag(T262, T260, T261, T242, split12_in_aaaa(T260, T261, X367, X366))
U44_ag(T262, T260, T261, T242, split12_out_aaaa(T260, T261, X367, X366)) → ms1_out_ag(.(T262, .(T260, T261)), .(T242, []))
ms1_in_ag(.(T267, .(T260, T261)), .(T242, [])) → U45_ag(T267, T260, T261, T242, split12_in_aaaa(T260, T261, T265, T266))
U45_ag(T267, T260, T261, T242, split12_out_aaaa(T260, T261, T265, T266)) → U46_ag(T267, T260, T261, T242, ms25_in_aaa(T267, T266, X338))
U46_ag(T267, T260, T261, T242, ms25_out_aaa(T267, T266, X338)) → ms1_out_ag(.(T267, .(T260, T261)), .(T242, []))
ms1_in_ag(.(T267, .(T260, T261)), .(T242, [])) → U47_ag(T267, T260, T261, T242, split12_in_aaaa(T260, T261, T273, T266))
U47_ag(T267, T260, T261, T242, split12_out_aaaa(T260, T261, T273, T266)) → U48_ag(T267, T260, T261, T242, T273, ms25_in_aaa(T267, T266, T272))
U48_ag(T267, T260, T261, T242, T273, ms25_out_aaa(T267, T266, T272)) → U49_ag(T267, T260, T261, T242, ms38_in_aa(T273, X339))
U49_ag(T267, T260, T261, T242, ms38_out_aa(T273, X339)) → ms1_out_ag(.(T267, .(T260, T261)), .(T242, []))
ms1_in_ag(.(T267, .(T260, T261)), .(T291, [])) → U50_ag(T267, T260, T261, T291, split12_in_aaaa(T260, T261, T273, T266))
U50_ag(T267, T260, T261, T291, split12_out_aaaa(T260, T261, T273, T266)) → U51_ag(T267, T260, T261, T291, T273, ms25_in_aag(T267, T266, []))
ms25_in_aag(T62, [], .(T62, [])) → ms25_out_aag(T62, [], .(T62, []))
ms25_in_aag(T72, .(T73, T74), X127) → U21_aag(T72, T73, T74, X127, p34_in_aaaaaaag(T72, T73, T74, X123, X124, X125, X126, X127))
p34_in_aaaaaaag(T72, T73, T74, X123, X124, X125, X126, X127) → U3_aaaaaaag(T72, T73, T74, X123, X124, X125, X126, X127, split12_in_aaaa(T72, .(T73, T74), X123, X124))
U3_aaaaaaag(T72, T73, T74, X123, X124, X125, X126, X127, split12_out_aaaa(T72, .(T73, T74), X123, X124)) → p34_out_aaaaaaag(T72, T73, T74, X123, X124, X125, X126, X127)
p34_in_aaaaaaag(T72, T73, T74, T78, T79, X125, X126, X127) → U4_aaaaaaag(T72, T73, T74, T78, T79, X125, X126, X127, split12_in_aaaa(T72, .(T73, T74), T78, T79))
U4_aaaaaaag(T72, T73, T74, T78, T79, X125, X126, X127, split12_out_aaaa(T72, .(T73, T74), T78, T79)) → U5_aaaaaaag(T72, T73, T74, T78, T79, X125, X126, X127, ms38_in_aa(T78, X125))
U5_aaaaaaag(T72, T73, T74, T78, T79, X125, X126, X127, ms38_out_aa(T78, X125)) → p34_out_aaaaaaag(T72, T73, T74, T78, T79, X125, X126, X127)
p34_in_aaaaaaag(T72, T73, T74, T78, T84, T83, X126, X127) → U6_aaaaaaag(T72, T73, T74, T78, T84, T83, X126, X127, split12_in_aaaa(T72, .(T73, T74), T78, T84))
U6_aaaaaaag(T72, T73, T74, T78, T84, T83, X126, X127, split12_out_aaaa(T72, .(T73, T74), T78, T84)) → U7_aaaaaaag(T72, T73, T74, T78, T84, T83, X126, X127, ms38_in_aa(T78, T83))
U7_aaaaaaag(T72, T73, T74, T78, T84, T83, X126, X127, ms38_out_aa(T78, T83)) → U8_aaaaaaag(T72, T73, T74, T78, T84, T83, X126, X127, ms38_in_aa(T84, X126))
U8_aaaaaaag(T72, T73, T74, T78, T84, T83, X126, X127, ms38_out_aa(T84, X126)) → p34_out_aaaaaaag(T72, T73, T74, T78, T84, T83, X126, X127)
p34_in_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127) → U9_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127, split12_in_aaaa(T72, .(T73, T74), T78, T84))
U9_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127, split12_out_aaaa(T72, .(T73, T74), T78, T84)) → U10_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127, ms38_in_aa(T78, T106))
U10_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127, ms38_out_aa(T78, T106)) → U11_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127, ms38_in_aa(T84, T105))
U11_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127, ms38_out_aa(T84, T105)) → U12_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127, merge54_in_aag(T106, T105, X127))
merge54_in_aag([], T113, T113) → merge54_out_aag([], T113, T113)
merge54_in_aag(T118, [], T118) → merge54_out_aag(T118, [], T118)
merge54_in_aag(.(T139, T141), .(T140, T142), .(T139, X226)) → U14_aag(T139, T141, T140, T142, X226, less70_in_ga(T139, T140))
less70_in_ga(0, T154) → less70_out_ga(0, T154)
less70_in_ga(s(T161), T162) → U22_ga(T161, T162, less78_in_ga(T161, T162))
less78_in_ga(0, s(T169)) → less78_out_ga(0, s(T169))
less78_in_ga(s(T176), s(T177)) → U20_ga(T176, T177, less78_in_ga(T176, T177))
U20_ga(T176, T177, less78_out_ga(T176, T177)) → less78_out_ga(s(T176), s(T177))
U22_ga(T161, T162, less78_out_ga(T161, T162)) → less70_out_ga(s(T161), T162)
U14_aag(T139, T141, T140, T142, X226, less70_out_ga(T139, T140)) → merge54_out_aag(.(T139, T141), .(T140, T142), .(T139, X226))
merge54_in_aag(.(T139, T145), .(T146, T147), .(T139, X226)) → U15_aag(T139, T145, T146, T147, X226, less70_in_ga(T139, T146))
U15_aag(T139, T145, T146, T147, X226, less70_out_ga(T139, T146)) → U16_aag(T139, T145, T146, T147, X226, merge54_in_aag(T145, .(T146, T147), X226))
merge54_in_aag(.(T197, T199), .(T196, T198), .(T196, X287)) → U17_aag(T197, T199, T196, T198, X287, less78_in_ga(T196, T197))
U17_aag(T197, T199, T196, T198, X287, less78_out_ga(T196, T197)) → merge54_out_aag(.(T197, T199), .(T196, T198), .(T196, X287))
merge54_in_aag(.(T202, T203), .(T196, T204), .(T196, X287)) → U18_aag(T202, T203, T196, T204, X287, less78_in_ga(T196, T202))
U18_aag(T202, T203, T196, T204, X287, less78_out_ga(T196, T202)) → U19_aag(T202, T203, T196, T204, X287, merge54_in_aag(.(T202, T203), T204, X287))
U19_aag(T202, T203, T196, T204, X287, merge54_out_aag(.(T202, T203), T204, X287)) → merge54_out_aag(.(T202, T203), .(T196, T204), .(T196, X287))
U16_aag(T139, T145, T146, T147, X226, merge54_out_aag(T145, .(T146, T147), X226)) → merge54_out_aag(.(T139, T145), .(T146, T147), .(T139, X226))
U12_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127, merge54_out_aag(T106, T105, X127)) → p34_out_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127)
U21_aag(T72, T73, T74, X127, p34_out_aaaaaaag(T72, T73, T74, X123, X124, X125, X126, X127)) → ms25_out_aag(T72, .(T73, T74), X127)
U51_ag(T267, T260, T261, T291, T273, ms25_out_aag(T267, T266, [])) → U52_ag(T267, T260, T261, T291, ms38_in_ag(T273, .(T291, [])))
ms38_in_ag([], []) → ms38_out_ag([], [])
ms38_in_ag(.(T89, []), .(T89, [])) → ms38_out_ag(.(T89, []), .(T89, []))
ms38_in_ag(.(T99, .(T100, T101)), X172) → U13_ag(T99, T100, T101, X172, p34_in_aaaaaaag(T99, T100, T101, X168, X169, X170, X171, X172))
U13_ag(T99, T100, T101, X172, p34_out_aaaaaaag(T99, T100, T101, X168, X169, X170, X171, X172)) → ms38_out_ag(.(T99, .(T100, T101)), X172)
U52_ag(T267, T260, T261, T291, ms38_out_ag(T273, .(T291, []))) → ms1_out_ag(.(T267, .(T260, T261)), .(T291, []))
ms1_in_ag(.(T267, .(T260, T261)), .(T301, [])) → U53_ag(T267, T260, T261, T301, split12_in_aaaa(T260, T261, T273, T266))
U53_ag(T267, T260, T261, T301, split12_out_aaaa(T260, T261, T273, T266)) → U54_ag(T267, T260, T261, T301, T273, ms25_in_aag(T267, T266, .(T301, [])))
U54_ag(T267, T260, T261, T301, T273, ms25_out_aag(T267, T266, .(T301, []))) → U55_ag(T267, T260, T261, T301, ms38_in_ag(T273, []))
U55_ag(T267, T260, T261, T301, ms38_out_ag(T273, [])) → ms1_out_ag(.(T267, .(T260, T261)), .(T301, []))
ms1_in_ag(.(T267, .(T260, T261)), .(T318, [])) → U56_ag(T267, T260, T261, T318, split12_in_aaaa(T260, T261, T273, T266))
U56_ag(T267, T260, T261, T318, split12_out_aaaa(T260, T261, T273, T266)) → U57_ag(T267, T260, T261, T318, T273, ms25_in_aaa(T267, T266, .(T318, T323)))
U57_ag(T267, T260, T261, T318, T273, ms25_out_aaa(T267, T266, .(T318, T323))) → U58_ag(T267, T260, T261, T318, ms38_in_aa(T273, .(T322, T324)))
U58_ag(T267, T260, T261, T318, ms38_out_aa(T273, .(T322, T324))) → U59_ag(T267, T260, T261, T318, less70_in_ga(T318, T322))
U59_ag(T267, T260, T261, T318, less70_out_ga(T318, T322)) → ms1_out_ag(.(T267, .(T260, T261)), .(T318, []))
U56_ag(T267, T260, T261, T318, split12_out_aaaa(T260, T261, T273, T266)) → U60_ag(T267, T260, T261, T318, T273, ms25_in_aaa(T267, T266, .(T318, T327)))
U60_ag(T267, T260, T261, T318, T273, ms25_out_aaa(T267, T266, .(T318, T327))) → U61_ag(T267, T260, T261, T318, T327, ms38_in_aa(T273, .(T328, T329)))
U61_ag(T267, T260, T261, T318, T327, ms38_out_aa(T273, .(T328, T329))) → U62_ag(T267, T260, T261, T318, T327, T328, T329, less70_in_ga(T318, T328))
U62_ag(T267, T260, T261, T318, T327, T328, T329, less70_out_ga(T318, T328)) → U63_ag(T267, T260, T261, T318, merge93_in_aa(T327, .(T328, T329)))
U63_ag(T267, T260, T261, T318, merge93_out_aa(T327, .(T328, T329))) → ms1_out_ag(.(T267, .(T260, T261)), .(T318, []))
ms1_in_ag(.(T267, .(T260, T261)), .(T356, [])) → U64_ag(T267, T260, T261, T356, split12_in_aaaa(T260, T261, T273, T266))
U64_ag(T267, T260, T261, T356, split12_out_aaaa(T260, T261, T273, T266)) → U65_ag(T267, T260, T261, T356, T273, ms25_in_aaa(T267, T266, .(T358, T360)))
U65_ag(T267, T260, T261, T356, T273, ms25_out_aaa(T267, T266, .(T358, T360))) → U66_ag(T267, T260, T261, T356, T358, ms38_in_aa(T273, .(T356, T359)))
U66_ag(T267, T260, T261, T356, T358, ms38_out_aa(T273, .(T356, T359))) → U67_ag(T267, T260, T261, T356, less78_in_ga(T356, T358))
U67_ag(T267, T260, T261, T356, less78_out_ga(T356, T358)) → ms1_out_ag(.(T267, .(T260, T261)), .(T356, []))
U64_ag(T267, T260, T261, T356, split12_out_aaaa(T260, T261, T273, T266)) → U68_ag(T267, T260, T261, T356, T273, ms25_in_aaa(T267, T266, .(T363, T364)))
U68_ag(T267, T260, T261, T356, T273, ms25_out_aaa(T267, T266, .(T363, T364))) → U69_ag(T267, T260, T261, T356, T363, T364, ms38_in_aa(T273, .(T356, T365)))
U69_ag(T267, T260, T261, T356, T363, T364, ms38_out_aa(T273, .(T356, T365))) → U70_ag(T267, T260, T261, T356, T363, T364, T365, less78_in_ga(T356, T363))
U70_ag(T267, T260, T261, T356, T363, T364, T365, less78_out_ga(T356, T363)) → U71_ag(T267, T260, T261, T356, merge93_in_aa(.(T363, T364), T365))
U71_ag(T267, T260, T261, T356, merge93_out_aa(.(T363, T364), T365)) → ms1_out_ag(.(T267, .(T260, T261)), .(T356, []))
ms1_in_ag(.(T407, .(T405, T406)), T387) → U72_ag(T407, T405, T406, T387, split12_in_aaaa(T405, T406, X523, X522))
U72_ag(T407, T405, T406, T387, split12_out_aaaa(T405, T406, X523, X522)) → ms1_out_ag(.(T407, .(T405, T406)), T387)
ms1_in_ag(.(T412, .(T405, T406)), T387) → U73_ag(T412, T405, T406, T387, split12_in_aaaa(T405, T406, T410, T411))
U73_ag(T412, T405, T406, T387, split12_out_aaaa(T405, T406, T410, T411)) → U74_ag(T412, T405, T406, T387, ms25_in_aaa(T412, T411, X494))
U74_ag(T412, T405, T406, T387, ms25_out_aaa(T412, T411, X494)) → ms1_out_ag(.(T412, .(T405, T406)), T387)
ms1_in_ag(.(T412, .(T405, T406)), T387) → U75_ag(T412, T405, T406, T387, split12_in_aaaa(T405, T406, T420, T411))
U75_ag(T412, T405, T406, T387, split12_out_aaaa(T405, T406, T420, T411)) → U76_ag(T412, T405, T406, T387, T420, ms25_in_aaa(T412, T411, T419))
U76_ag(T412, T405, T406, T387, T420, ms25_out_aaa(T412, T411, T419)) → U77_ag(T412, T405, T406, T387, ms38_in_aa(T420, X495))
U77_ag(T412, T405, T406, T387, ms38_out_aa(T420, X495)) → ms1_out_ag(.(T412, .(T405, T406)), T387)
ms1_in_ag(.(T412, .(T405, T406)), T435) → U78_ag(T412, T405, T406, T435, split12_in_aaaa(T405, T406, T420, T411))
U78_ag(T412, T405, T406, T435, split12_out_aaaa(T405, T406, T420, T411)) → U79_ag(T412, T405, T406, T435, T420, ms25_in_aag(T412, T411, []))
U79_ag(T412, T405, T406, T435, T420, ms25_out_aag(T412, T411, [])) → U80_ag(T412, T405, T406, T435, ms38_in_ag(T420, T435))
U80_ag(T412, T405, T406, T435, ms38_out_ag(T420, T435)) → ms1_out_ag(.(T412, .(T405, T406)), T435)
ms1_in_ag(.(T412, .(T405, T406)), T440) → U81_ag(T412, T405, T406, T440, split12_in_aaaa(T405, T406, T420, T411))
U81_ag(T412, T405, T406, T440, split12_out_aaaa(T405, T406, T420, T411)) → U82_ag(T412, T405, T406, T440, T420, ms25_in_aag(T412, T411, T440))
U82_ag(T412, T405, T406, T440, T420, ms25_out_aag(T412, T411, T440)) → U83_ag(T412, T405, T406, T440, ms38_in_ag(T420, []))
U83_ag(T412, T405, T406, T440, ms38_out_ag(T420, [])) → ms1_out_ag(.(T412, .(T405, T406)), T440)
ms1_in_ag(.(T412, .(T405, T406)), .(T461, T465)) → U84_ag(T412, T405, T406, T461, T465, split12_in_aaaa(T405, T406, T420, T411))
U84_ag(T412, T405, T406, T461, T465, split12_out_aaaa(T405, T406, T420, T411)) → U85_ag(T412, T405, T406, T461, T465, T420, ms25_in_aaa(T412, T411, .(T461, T467)))
U85_ag(T412, T405, T406, T461, T465, T420, ms25_out_aaa(T412, T411, .(T461, T467))) → U86_ag(T412, T405, T406, T461, T465, ms38_in_aa(T420, .(T466, T468)))
U86_ag(T412, T405, T406, T461, T465, ms38_out_aa(T420, .(T466, T468))) → U87_ag(T412, T405, T406, T461, T465, less70_in_ga(T461, T466))
U87_ag(T412, T405, T406, T461, T465, less70_out_ga(T461, T466)) → ms1_out_ag(.(T412, .(T405, T406)), .(T461, T465))
ms1_in_ag(.(T412, .(T405, T406)), .(T461, .(T490, T491))) → U88_ag(T412, T405, T406, T461, T490, T491, split12_in_aaaa(T405, T406, T420, T411))
U88_ag(T412, T405, T406, T461, T490, T491, split12_out_aaaa(T405, T406, T420, T411)) → U89_ag(T412, T405, T406, T461, T490, T491, T420, ms25_in_aag(T412, T411, .(T461, [])))
U89_ag(T412, T405, T406, T461, T490, T491, T420, ms25_out_aag(T412, T411, .(T461, []))) → U90_ag(T412, T405, T406, T461, T490, T491, ms38_in_ag(T420, .(T490, T491)))
U90_ag(T412, T405, T406, T461, T490, T491, ms38_out_ag(T420, .(T490, T491))) → U91_ag(T412, T405, T406, T461, T490, T491, less70_in_gg(T461, T490))
less70_in_gg(0, T154) → less70_out_gg(0, T154)
less70_in_gg(s(T161), T162) → U22_gg(T161, T162, less78_in_gg(T161, T162))
less78_in_gg(0, s(T169)) → less78_out_gg(0, s(T169))
less78_in_gg(s(T176), s(T177)) → U20_gg(T176, T177, less78_in_gg(T176, T177))
U20_gg(T176, T177, less78_out_gg(T176, T177)) → less78_out_gg(s(T176), s(T177))
U22_gg(T161, T162, less78_out_gg(T161, T162)) → less70_out_gg(s(T161), T162)
U91_ag(T412, T405, T406, T461, T490, T491, less70_out_gg(T461, T490)) → ms1_out_ag(.(T412, .(T405, T406)), .(T461, .(T490, T491)))
ms1_in_ag(.(T412, .(T405, T406)), .(T461, .(T513, T517))) → U92_ag(T412, T405, T406, T461, T513, T517, split12_in_aaaa(T405, T406, T420, T411))
U92_ag(T412, T405, T406, T461, T513, T517, split12_out_aaaa(T405, T406, T420, T411)) → U93_ag(T412, T405, T406, T461, T513, T517, T420, ms25_in_aaa(T412, T411, .(T461, .(T513, T519))))
U93_ag(T412, T405, T406, T461, T513, T517, T420, ms25_out_aaa(T412, T411, .(T461, .(T513, T519)))) → U94_ag(T412, T405, T406, T461, T513, T517, T519, ms38_in_aa(T420, .(T518, T520)))
U94_ag(T412, T405, T406, T461, T513, T517, T519, ms38_out_aa(T420, .(T518, T520))) → U95_ag(T412, T405, T406, T461, T513, T517, T519, T518, T520, less70_in_ga(T461, T518))
U95_ag(T412, T405, T406, T461, T513, T517, T519, T518, T520, less70_out_ga(T461, T518)) → U96_ag(T412, T405, T406, T461, T513, T517, p179_in_gaaag(T513, T518, T519, T520, T517))
p179_in_gaaag(T513, T518, T519, T520, T517) → U23_gaaag(T513, T518, T519, T520, T517, less70_in_ga(T513, T518))
U23_gaaag(T513, T518, T519, T520, T517, less70_out_ga(T513, T518)) → p179_out_gaaag(T513, T518, T519, T520, T517)
p179_in_gaaag(T513, T540, [], T541, .(T540, T541)) → U24_gaaag(T513, T540, T541, less70_in_gg(T513, T540))
U24_gaaag(T513, T540, T541, less70_out_gg(T513, T540)) → p179_out_gaaag(T513, T540, [], T541, .(T540, T541))
p179_in_gaaag(T513, T568, .(T563, T569), T570, .(T563, T567)) → U25_gaaag(T513, T568, T563, T569, T570, T567, less70_in_ga(T513, T568))
U25_gaaag(T513, T568, T563, T569, T570, T567, less70_out_ga(T513, T568)) → U26_gaaag(T513, T568, T563, T569, T570, T567, p179_in_gaaag(T563, T568, T569, T570, T567))
p179_in_gaaag(T513, T585, .(T588, T590), T589, .(T585, T587)) → U27_gaaag(T513, T585, T588, T590, T589, T587, less70_in_gg(T513, T585))
U27_gaaag(T513, T585, T588, T590, T589, T587, less70_out_gg(T513, T585)) → U28_gaaag(T513, T585, T588, T590, T589, T587, p194_in_gaaag(T585, T588, T590, T589, T587))
p194_in_gaaag(T585, T588, T590, T589, T587) → U29_gaaag(T585, T588, T590, T589, T587, less78_in_ga(T585, T588))
U29_gaaag(T585, T588, T590, T589, T587, less78_out_ga(T585, T588)) → p194_out_gaaag(T585, T588, T590, T589, T587)
p194_in_gaaag(T585, T610, T611, [], .(T610, T611)) → U30_gaaag(T585, T610, T611, less78_in_gg(T585, T610))
U30_gaaag(T585, T610, T611, less78_out_gg(T585, T610)) → p194_out_gaaag(T585, T610, T611, [], .(T610, T611))
p194_in_gaaag(T585, T632, T638, .(T637, T639), .(T632, T636)) → U31_gaaag(T585, T632, T638, T637, T639, T636, less78_in_gg(T585, T632))
U31_gaaag(T585, T632, T638, T637, T639, T636, less78_out_gg(T585, T632)) → U32_gaaag(T585, T632, T638, T637, T639, T636, p179_in_gaaag(T632, T637, T638, T639, T636))
U32_gaaag(T585, T632, T638, T637, T639, T636, p179_out_gaaag(T632, T637, T638, T639, T636)) → p194_out_gaaag(T585, T632, T638, .(T637, T639), .(T632, T636))
p194_in_gaaag(T585, T657, T659, .(T654, T658), .(T654, T656)) → U33_gaaag(T585, T657, T659, T654, T658, T656, less78_in_ga(T585, T657))
U33_gaaag(T585, T657, T659, T654, T658, T656, less78_out_ga(T585, T657)) → U34_gaaag(T585, T657, T659, T654, T658, T656, p194_in_gaaag(T654, T657, T659, T658, T656))
U34_gaaag(T585, T657, T659, T654, T658, T656, p194_out_gaaag(T654, T657, T659, T658, T656)) → p194_out_gaaag(T585, T657, T659, .(T654, T658), .(T654, T656))
U28_gaaag(T513, T585, T588, T590, T589, T587, p194_out_gaaag(T585, T588, T590, T589, T587)) → p179_out_gaaag(T513, T585, .(T588, T590), T589, .(T585, T587))
U26_gaaag(T513, T568, T563, T569, T570, T567, p179_out_gaaag(T563, T568, T569, T570, T567)) → p179_out_gaaag(T513, T568, .(T563, T569), T570, .(T563, T567))
U96_ag(T412, T405, T406, T461, T513, T517, p179_out_gaaag(T513, T518, T519, T520, T517)) → ms1_out_ag(.(T412, .(T405, T406)), .(T461, .(T513, T517)))
ms1_in_ag(.(T412, .(T405, T406)), .(T461, .(T674, T676))) → U97_ag(T412, T405, T406, T461, T674, T676, split12_in_aaaa(T405, T406, T420, T411))
U97_ag(T412, T405, T406, T461, T674, T676, split12_out_aaaa(T405, T406, T420, T411)) → U98_ag(T412, T405, T406, T461, T674, T676, T420, ms25_in_aaa(T412, T411, .(T461, .(T677, T679))))
U98_ag(T412, T405, T406, T461, T674, T676, T420, ms25_out_aaa(T412, T411, .(T461, .(T677, T679)))) → U99_ag(T412, T405, T406, T461, T674, T676, T677, T679, ms38_in_aa(T420, .(T674, T678)))
U99_ag(T412, T405, T406, T461, T674, T676, T677, T679, ms38_out_aa(T420, .(T674, T678))) → U100_ag(T412, T405, T406, T461, T674, T676, T677, T679, T678, less70_in_gg(T461, T674))
U100_ag(T412, T405, T406, T461, T674, T676, T677, T679, T678, less70_out_gg(T461, T674)) → U101_ag(T412, T405, T406, T461, T674, T676, p194_in_gaaag(T674, T677, T679, T678, T676))
U101_ag(T412, T405, T406, T461, T674, T676, p194_out_gaaag(T674, T677, T679, T678, T676)) → ms1_out_ag(.(T412, .(T405, T406)), .(T461, .(T674, T676)))
ms1_in_ag(.(T412, .(T405, T406)), .(T694, T696)) → U102_ag(T412, T405, T406, T694, T696, split12_in_aaaa(T405, T406, T420, T411))
U102_ag(T412, T405, T406, T694, T696, split12_out_aaaa(T405, T406, T420, T411)) → U103_ag(T412, T405, T406, T694, T696, T420, ms25_in_aaa(T412, T411, .(T697, T699)))
U103_ag(T412, T405, T406, T694, T696, T420, ms25_out_aaa(T412, T411, .(T697, T699))) → U104_ag(T412, T405, T406, T694, T696, T697, T699, ms38_in_aa(T420, .(T694, T698)))
U104_ag(T412, T405, T406, T694, T696, T697, T699, ms38_out_aa(T420, .(T694, T698))) → U105_ag(T412, T405, T406, T694, T696, p194_in_gaaag(T694, T697, T699, T698, T696))
U105_ag(T412, T405, T406, T694, T696, p194_out_gaaag(T694, T697, T699, T698, T696)) → ms1_out_ag(.(T412, .(T405, T406)), .(T694, T696))
Infinitary Constructor Rewriting Termination of PiTRS implies Termination of Prolog
ms1_in_ag([], []) → ms1_out_ag([], [])
ms1_in_ag(.(T29, .(T27, T28)), []) → U35_ag(T29, T27, T28, split12_in_aaaa(T27, T28, X42, X41))
split12_in_aaaa(T42, T44, .(T42, X71), X72) → U2_aaaa(T42, T44, X71, X72, split16_in_aaa(T44, X72, X71))
split16_in_aaa([], [], []) → split16_out_aaa([], [], [])
split16_in_aaa(.(T49, T51), .(T49, X89), X90) → U1_aaa(T49, T51, X89, X90, split16_in_aaa(T51, X90, X89))
U1_aaa(T49, T51, X89, X90, split16_out_aaa(T51, X90, X89)) → split16_out_aaa(.(T49, T51), .(T49, X89), X90)
U2_aaaa(T42, T44, X71, X72, split16_out_aaa(T44, X72, X71)) → split12_out_aaaa(T42, T44, .(T42, X71), X72)
U35_ag(T29, T27, T28, split12_out_aaaa(T27, T28, X42, X41)) → ms1_out_ag(.(T29, .(T27, T28)), [])
ms1_in_ag(.(T34, .(T27, T28)), []) → U36_ag(T34, T27, T28, split12_in_aaaa(T27, T28, T32, T33))
U36_ag(T34, T27, T28, split12_out_aaaa(T27, T28, T32, T33)) → U37_ag(T34, T27, T28, ms25_in_aaa(T34, T33, X13))
ms25_in_aaa(T62, [], .(T62, [])) → ms25_out_aaa(T62, [], .(T62, []))
ms25_in_aaa(T72, .(T73, T74), X127) → U21_aaa(T72, T73, T74, X127, p34_in_aaaaaaaa(T72, T73, T74, X123, X124, X125, X126, X127))
p34_in_aaaaaaaa(T72, T73, T74, X123, X124, X125, X126, X127) → U3_aaaaaaaa(T72, T73, T74, X123, X124, X125, X126, X127, split12_in_aaaa(T72, .(T73, T74), X123, X124))
U3_aaaaaaaa(T72, T73, T74, X123, X124, X125, X126, X127, split12_out_aaaa(T72, .(T73, T74), X123, X124)) → p34_out_aaaaaaaa(T72, T73, T74, X123, X124, X125, X126, X127)
p34_in_aaaaaaaa(T72, T73, T74, T78, T79, X125, X126, X127) → U4_aaaaaaaa(T72, T73, T74, T78, T79, X125, X126, X127, split12_in_aaaa(T72, .(T73, T74), T78, T79))
U4_aaaaaaaa(T72, T73, T74, T78, T79, X125, X126, X127, split12_out_aaaa(T72, .(T73, T74), T78, T79)) → U5_aaaaaaaa(T72, T73, T74, T78, T79, X125, X126, X127, ms38_in_aa(T78, X125))
ms38_in_aa([], []) → ms38_out_aa([], [])
ms38_in_aa(.(T89, []), .(T89, [])) → ms38_out_aa(.(T89, []), .(T89, []))
ms38_in_aa(.(T99, .(T100, T101)), X172) → U13_aa(T99, T100, T101, X172, p34_in_aaaaaaaa(T99, T100, T101, X168, X169, X170, X171, X172))
p34_in_aaaaaaaa(T72, T73, T74, T78, T84, T83, X126, X127) → U6_aaaaaaaa(T72, T73, T74, T78, T84, T83, X126, X127, split12_in_aaaa(T72, .(T73, T74), T78, T84))
U6_aaaaaaaa(T72, T73, T74, T78, T84, T83, X126, X127, split12_out_aaaa(T72, .(T73, T74), T78, T84)) → U7_aaaaaaaa(T72, T73, T74, T78, T84, T83, X126, X127, ms38_in_aa(T78, T83))
U7_aaaaaaaa(T72, T73, T74, T78, T84, T83, X126, X127, ms38_out_aa(T78, T83)) → U8_aaaaaaaa(T72, T73, T74, T78, T84, T83, X126, X127, ms38_in_aa(T84, X126))
U8_aaaaaaaa(T72, T73, T74, T78, T84, T83, X126, X127, ms38_out_aa(T84, X126)) → p34_out_aaaaaaaa(T72, T73, T74, T78, T84, T83, X126, X127)
p34_in_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127) → U9_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127, split12_in_aaaa(T72, .(T73, T74), T78, T84))
U9_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127, split12_out_aaaa(T72, .(T73, T74), T78, T84)) → U10_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127, ms38_in_aa(T78, T106))
U10_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127, ms38_out_aa(T78, T106)) → U11_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127, ms38_in_aa(T84, T105))
U11_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127, ms38_out_aa(T84, T105)) → U12_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127, merge54_in_aaa(T106, T105, X127))
merge54_in_aaa([], T113, T113) → merge54_out_aaa([], T113, T113)
merge54_in_aaa(T118, [], T118) → merge54_out_aaa(T118, [], T118)
merge54_in_aaa(.(T139, T141), .(T140, T142), .(T139, X226)) → U14_aaa(T139, T141, T140, T142, X226, less70_in_aa(T139, T140))
less70_in_aa(0, T154) → less70_out_aa(0, T154)
less70_in_aa(s(T161), T162) → U22_aa(T161, T162, less78_in_aa(T161, T162))
less78_in_aa(0, s(T169)) → less78_out_aa(0, s(T169))
less78_in_aa(s(T176), s(T177)) → U20_aa(T176, T177, less78_in_aa(T176, T177))
U20_aa(T176, T177, less78_out_aa(T176, T177)) → less78_out_aa(s(T176), s(T177))
U22_aa(T161, T162, less78_out_aa(T161, T162)) → less70_out_aa(s(T161), T162)
U14_aaa(T139, T141, T140, T142, X226, less70_out_aa(T139, T140)) → merge54_out_aaa(.(T139, T141), .(T140, T142), .(T139, X226))
merge54_in_aaa(.(T139, T145), .(T146, T147), .(T139, X226)) → U15_aaa(T139, T145, T146, T147, X226, less70_in_aa(T139, T146))
U15_aaa(T139, T145, T146, T147, X226, less70_out_aa(T139, T146)) → U16_aaa(T139, T145, T146, T147, X226, merge54_in_aaa(T145, .(T146, T147), X226))
merge54_in_aaa(.(T197, T199), .(T196, T198), .(T196, X287)) → U17_aaa(T197, T199, T196, T198, X287, less78_in_aa(T196, T197))
U17_aaa(T197, T199, T196, T198, X287, less78_out_aa(T196, T197)) → merge54_out_aaa(.(T197, T199), .(T196, T198), .(T196, X287))
merge54_in_aaa(.(T202, T203), .(T196, T204), .(T196, X287)) → U18_aaa(T202, T203, T196, T204, X287, less78_in_aa(T196, T202))
U18_aaa(T202, T203, T196, T204, X287, less78_out_aa(T196, T202)) → U19_aaa(T202, T203, T196, T204, X287, merge54_in_aaa(.(T202, T203), T204, X287))
U19_aaa(T202, T203, T196, T204, X287, merge54_out_aaa(.(T202, T203), T204, X287)) → merge54_out_aaa(.(T202, T203), .(T196, T204), .(T196, X287))
U16_aaa(T139, T145, T146, T147, X226, merge54_out_aaa(T145, .(T146, T147), X226)) → merge54_out_aaa(.(T139, T145), .(T146, T147), .(T139, X226))
U12_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127, merge54_out_aaa(T106, T105, X127)) → p34_out_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127)
U13_aa(T99, T100, T101, X172, p34_out_aaaaaaaa(T99, T100, T101, X168, X169, X170, X171, X172)) → ms38_out_aa(.(T99, .(T100, T101)), X172)
U5_aaaaaaaa(T72, T73, T74, T78, T79, X125, X126, X127, ms38_out_aa(T78, X125)) → p34_out_aaaaaaaa(T72, T73, T74, T78, T79, X125, X126, X127)
U21_aaa(T72, T73, T74, X127, p34_out_aaaaaaaa(T72, T73, T74, X123, X124, X125, X126, X127)) → ms25_out_aaa(T72, .(T73, T74), X127)
U37_ag(T34, T27, T28, ms25_out_aaa(T34, T33, X13)) → ms1_out_ag(.(T34, .(T27, T28)), [])
ms1_in_ag(.(T34, .(T27, T28)), []) → U38_ag(T34, T27, T28, split12_in_aaaa(T27, T28, T55, T33))
U38_ag(T34, T27, T28, split12_out_aaaa(T27, T28, T55, T33)) → U39_ag(T34, T27, T28, T55, ms25_in_aaa(T34, T33, T54))
U39_ag(T34, T27, T28, T55, ms25_out_aaa(T34, T33, T54)) → U40_ag(T34, T27, T28, ms38_in_aa(T55, X14))
U40_ag(T34, T27, T28, ms38_out_aa(T55, X14)) → ms1_out_ag(.(T34, .(T27, T28)), [])
U38_ag(T34, T27, T28, split12_out_aaaa(T27, T28, T55, T33)) → U41_ag(T34, T27, T28, T55, ms25_in_aaa(T34, T33, T212))
U41_ag(T34, T27, T28, T55, ms25_out_aaa(T34, T33, T212)) → U42_ag(T34, T27, T28, T212, ms38_in_aa(T55, T211))
U42_ag(T34, T27, T28, T212, ms38_out_aa(T55, T211)) → U43_ag(T34, T27, T28, merge93_in_aa(T212, T211))
merge93_in_aa([], []) → merge93_out_aa([], [])
U43_ag(T34, T27, T28, merge93_out_aa(T212, T211)) → ms1_out_ag(.(T34, .(T27, T28)), [])
ms1_in_ag(.(T234, []), .(T234, [])) → ms1_out_ag(.(T234, []), .(T234, []))
ms1_in_ag(.(T262, .(T260, T261)), .(T242, [])) → U44_ag(T262, T260, T261, T242, split12_in_aaaa(T260, T261, X367, X366))
U44_ag(T262, T260, T261, T242, split12_out_aaaa(T260, T261, X367, X366)) → ms1_out_ag(.(T262, .(T260, T261)), .(T242, []))
ms1_in_ag(.(T267, .(T260, T261)), .(T242, [])) → U45_ag(T267, T260, T261, T242, split12_in_aaaa(T260, T261, T265, T266))
U45_ag(T267, T260, T261, T242, split12_out_aaaa(T260, T261, T265, T266)) → U46_ag(T267, T260, T261, T242, ms25_in_aaa(T267, T266, X338))
U46_ag(T267, T260, T261, T242, ms25_out_aaa(T267, T266, X338)) → ms1_out_ag(.(T267, .(T260, T261)), .(T242, []))
ms1_in_ag(.(T267, .(T260, T261)), .(T242, [])) → U47_ag(T267, T260, T261, T242, split12_in_aaaa(T260, T261, T273, T266))
U47_ag(T267, T260, T261, T242, split12_out_aaaa(T260, T261, T273, T266)) → U48_ag(T267, T260, T261, T242, T273, ms25_in_aaa(T267, T266, T272))
U48_ag(T267, T260, T261, T242, T273, ms25_out_aaa(T267, T266, T272)) → U49_ag(T267, T260, T261, T242, ms38_in_aa(T273, X339))
U49_ag(T267, T260, T261, T242, ms38_out_aa(T273, X339)) → ms1_out_ag(.(T267, .(T260, T261)), .(T242, []))
ms1_in_ag(.(T267, .(T260, T261)), .(T291, [])) → U50_ag(T267, T260, T261, T291, split12_in_aaaa(T260, T261, T273, T266))
U50_ag(T267, T260, T261, T291, split12_out_aaaa(T260, T261, T273, T266)) → U51_ag(T267, T260, T261, T291, T273, ms25_in_aag(T267, T266, []))
ms25_in_aag(T62, [], .(T62, [])) → ms25_out_aag(T62, [], .(T62, []))
ms25_in_aag(T72, .(T73, T74), X127) → U21_aag(T72, T73, T74, X127, p34_in_aaaaaaag(T72, T73, T74, X123, X124, X125, X126, X127))
p34_in_aaaaaaag(T72, T73, T74, X123, X124, X125, X126, X127) → U3_aaaaaaag(T72, T73, T74, X123, X124, X125, X126, X127, split12_in_aaaa(T72, .(T73, T74), X123, X124))
U3_aaaaaaag(T72, T73, T74, X123, X124, X125, X126, X127, split12_out_aaaa(T72, .(T73, T74), X123, X124)) → p34_out_aaaaaaag(T72, T73, T74, X123, X124, X125, X126, X127)
p34_in_aaaaaaag(T72, T73, T74, T78, T79, X125, X126, X127) → U4_aaaaaaag(T72, T73, T74, T78, T79, X125, X126, X127, split12_in_aaaa(T72, .(T73, T74), T78, T79))
U4_aaaaaaag(T72, T73, T74, T78, T79, X125, X126, X127, split12_out_aaaa(T72, .(T73, T74), T78, T79)) → U5_aaaaaaag(T72, T73, T74, T78, T79, X125, X126, X127, ms38_in_aa(T78, X125))
U5_aaaaaaag(T72, T73, T74, T78, T79, X125, X126, X127, ms38_out_aa(T78, X125)) → p34_out_aaaaaaag(T72, T73, T74, T78, T79, X125, X126, X127)
p34_in_aaaaaaag(T72, T73, T74, T78, T84, T83, X126, X127) → U6_aaaaaaag(T72, T73, T74, T78, T84, T83, X126, X127, split12_in_aaaa(T72, .(T73, T74), T78, T84))
U6_aaaaaaag(T72, T73, T74, T78, T84, T83, X126, X127, split12_out_aaaa(T72, .(T73, T74), T78, T84)) → U7_aaaaaaag(T72, T73, T74, T78, T84, T83, X126, X127, ms38_in_aa(T78, T83))
U7_aaaaaaag(T72, T73, T74, T78, T84, T83, X126, X127, ms38_out_aa(T78, T83)) → U8_aaaaaaag(T72, T73, T74, T78, T84, T83, X126, X127, ms38_in_aa(T84, X126))
U8_aaaaaaag(T72, T73, T74, T78, T84, T83, X126, X127, ms38_out_aa(T84, X126)) → p34_out_aaaaaaag(T72, T73, T74, T78, T84, T83, X126, X127)
p34_in_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127) → U9_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127, split12_in_aaaa(T72, .(T73, T74), T78, T84))
U9_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127, split12_out_aaaa(T72, .(T73, T74), T78, T84)) → U10_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127, ms38_in_aa(T78, T106))
U10_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127, ms38_out_aa(T78, T106)) → U11_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127, ms38_in_aa(T84, T105))
U11_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127, ms38_out_aa(T84, T105)) → U12_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127, merge54_in_aag(T106, T105, X127))
merge54_in_aag([], T113, T113) → merge54_out_aag([], T113, T113)
merge54_in_aag(T118, [], T118) → merge54_out_aag(T118, [], T118)
merge54_in_aag(.(T139, T141), .(T140, T142), .(T139, X226)) → U14_aag(T139, T141, T140, T142, X226, less70_in_ga(T139, T140))
less70_in_ga(0, T154) → less70_out_ga(0, T154)
less70_in_ga(s(T161), T162) → U22_ga(T161, T162, less78_in_ga(T161, T162))
less78_in_ga(0, s(T169)) → less78_out_ga(0, s(T169))
less78_in_ga(s(T176), s(T177)) → U20_ga(T176, T177, less78_in_ga(T176, T177))
U20_ga(T176, T177, less78_out_ga(T176, T177)) → less78_out_ga(s(T176), s(T177))
U22_ga(T161, T162, less78_out_ga(T161, T162)) → less70_out_ga(s(T161), T162)
U14_aag(T139, T141, T140, T142, X226, less70_out_ga(T139, T140)) → merge54_out_aag(.(T139, T141), .(T140, T142), .(T139, X226))
merge54_in_aag(.(T139, T145), .(T146, T147), .(T139, X226)) → U15_aag(T139, T145, T146, T147, X226, less70_in_ga(T139, T146))
U15_aag(T139, T145, T146, T147, X226, less70_out_ga(T139, T146)) → U16_aag(T139, T145, T146, T147, X226, merge54_in_aag(T145, .(T146, T147), X226))
merge54_in_aag(.(T197, T199), .(T196, T198), .(T196, X287)) → U17_aag(T197, T199, T196, T198, X287, less78_in_ga(T196, T197))
U17_aag(T197, T199, T196, T198, X287, less78_out_ga(T196, T197)) → merge54_out_aag(.(T197, T199), .(T196, T198), .(T196, X287))
merge54_in_aag(.(T202, T203), .(T196, T204), .(T196, X287)) → U18_aag(T202, T203, T196, T204, X287, less78_in_ga(T196, T202))
U18_aag(T202, T203, T196, T204, X287, less78_out_ga(T196, T202)) → U19_aag(T202, T203, T196, T204, X287, merge54_in_aag(.(T202, T203), T204, X287))
U19_aag(T202, T203, T196, T204, X287, merge54_out_aag(.(T202, T203), T204, X287)) → merge54_out_aag(.(T202, T203), .(T196, T204), .(T196, X287))
U16_aag(T139, T145, T146, T147, X226, merge54_out_aag(T145, .(T146, T147), X226)) → merge54_out_aag(.(T139, T145), .(T146, T147), .(T139, X226))
U12_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127, merge54_out_aag(T106, T105, X127)) → p34_out_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127)
U21_aag(T72, T73, T74, X127, p34_out_aaaaaaag(T72, T73, T74, X123, X124, X125, X126, X127)) → ms25_out_aag(T72, .(T73, T74), X127)
U51_ag(T267, T260, T261, T291, T273, ms25_out_aag(T267, T266, [])) → U52_ag(T267, T260, T261, T291, ms38_in_ag(T273, .(T291, [])))
ms38_in_ag([], []) → ms38_out_ag([], [])
ms38_in_ag(.(T89, []), .(T89, [])) → ms38_out_ag(.(T89, []), .(T89, []))
ms38_in_ag(.(T99, .(T100, T101)), X172) → U13_ag(T99, T100, T101, X172, p34_in_aaaaaaag(T99, T100, T101, X168, X169, X170, X171, X172))
U13_ag(T99, T100, T101, X172, p34_out_aaaaaaag(T99, T100, T101, X168, X169, X170, X171, X172)) → ms38_out_ag(.(T99, .(T100, T101)), X172)
U52_ag(T267, T260, T261, T291, ms38_out_ag(T273, .(T291, []))) → ms1_out_ag(.(T267, .(T260, T261)), .(T291, []))
ms1_in_ag(.(T267, .(T260, T261)), .(T301, [])) → U53_ag(T267, T260, T261, T301, split12_in_aaaa(T260, T261, T273, T266))
U53_ag(T267, T260, T261, T301, split12_out_aaaa(T260, T261, T273, T266)) → U54_ag(T267, T260, T261, T301, T273, ms25_in_aag(T267, T266, .(T301, [])))
U54_ag(T267, T260, T261, T301, T273, ms25_out_aag(T267, T266, .(T301, []))) → U55_ag(T267, T260, T261, T301, ms38_in_ag(T273, []))
U55_ag(T267, T260, T261, T301, ms38_out_ag(T273, [])) → ms1_out_ag(.(T267, .(T260, T261)), .(T301, []))
ms1_in_ag(.(T267, .(T260, T261)), .(T318, [])) → U56_ag(T267, T260, T261, T318, split12_in_aaaa(T260, T261, T273, T266))
U56_ag(T267, T260, T261, T318, split12_out_aaaa(T260, T261, T273, T266)) → U57_ag(T267, T260, T261, T318, T273, ms25_in_aaa(T267, T266, .(T318, T323)))
U57_ag(T267, T260, T261, T318, T273, ms25_out_aaa(T267, T266, .(T318, T323))) → U58_ag(T267, T260, T261, T318, ms38_in_aa(T273, .(T322, T324)))
U58_ag(T267, T260, T261, T318, ms38_out_aa(T273, .(T322, T324))) → U59_ag(T267, T260, T261, T318, less70_in_ga(T318, T322))
U59_ag(T267, T260, T261, T318, less70_out_ga(T318, T322)) → ms1_out_ag(.(T267, .(T260, T261)), .(T318, []))
U56_ag(T267, T260, T261, T318, split12_out_aaaa(T260, T261, T273, T266)) → U60_ag(T267, T260, T261, T318, T273, ms25_in_aaa(T267, T266, .(T318, T327)))
U60_ag(T267, T260, T261, T318, T273, ms25_out_aaa(T267, T266, .(T318, T327))) → U61_ag(T267, T260, T261, T318, T327, ms38_in_aa(T273, .(T328, T329)))
U61_ag(T267, T260, T261, T318, T327, ms38_out_aa(T273, .(T328, T329))) → U62_ag(T267, T260, T261, T318, T327, T328, T329, less70_in_ga(T318, T328))
U62_ag(T267, T260, T261, T318, T327, T328, T329, less70_out_ga(T318, T328)) → U63_ag(T267, T260, T261, T318, merge93_in_aa(T327, .(T328, T329)))
U63_ag(T267, T260, T261, T318, merge93_out_aa(T327, .(T328, T329))) → ms1_out_ag(.(T267, .(T260, T261)), .(T318, []))
ms1_in_ag(.(T267, .(T260, T261)), .(T356, [])) → U64_ag(T267, T260, T261, T356, split12_in_aaaa(T260, T261, T273, T266))
U64_ag(T267, T260, T261, T356, split12_out_aaaa(T260, T261, T273, T266)) → U65_ag(T267, T260, T261, T356, T273, ms25_in_aaa(T267, T266, .(T358, T360)))
U65_ag(T267, T260, T261, T356, T273, ms25_out_aaa(T267, T266, .(T358, T360))) → U66_ag(T267, T260, T261, T356, T358, ms38_in_aa(T273, .(T356, T359)))
U66_ag(T267, T260, T261, T356, T358, ms38_out_aa(T273, .(T356, T359))) → U67_ag(T267, T260, T261, T356, less78_in_ga(T356, T358))
U67_ag(T267, T260, T261, T356, less78_out_ga(T356, T358)) → ms1_out_ag(.(T267, .(T260, T261)), .(T356, []))
U64_ag(T267, T260, T261, T356, split12_out_aaaa(T260, T261, T273, T266)) → U68_ag(T267, T260, T261, T356, T273, ms25_in_aaa(T267, T266, .(T363, T364)))
U68_ag(T267, T260, T261, T356, T273, ms25_out_aaa(T267, T266, .(T363, T364))) → U69_ag(T267, T260, T261, T356, T363, T364, ms38_in_aa(T273, .(T356, T365)))
U69_ag(T267, T260, T261, T356, T363, T364, ms38_out_aa(T273, .(T356, T365))) → U70_ag(T267, T260, T261, T356, T363, T364, T365, less78_in_ga(T356, T363))
U70_ag(T267, T260, T261, T356, T363, T364, T365, less78_out_ga(T356, T363)) → U71_ag(T267, T260, T261, T356, merge93_in_aa(.(T363, T364), T365))
U71_ag(T267, T260, T261, T356, merge93_out_aa(.(T363, T364), T365)) → ms1_out_ag(.(T267, .(T260, T261)), .(T356, []))
ms1_in_ag(.(T407, .(T405, T406)), T387) → U72_ag(T407, T405, T406, T387, split12_in_aaaa(T405, T406, X523, X522))
U72_ag(T407, T405, T406, T387, split12_out_aaaa(T405, T406, X523, X522)) → ms1_out_ag(.(T407, .(T405, T406)), T387)
ms1_in_ag(.(T412, .(T405, T406)), T387) → U73_ag(T412, T405, T406, T387, split12_in_aaaa(T405, T406, T410, T411))
U73_ag(T412, T405, T406, T387, split12_out_aaaa(T405, T406, T410, T411)) → U74_ag(T412, T405, T406, T387, ms25_in_aaa(T412, T411, X494))
U74_ag(T412, T405, T406, T387, ms25_out_aaa(T412, T411, X494)) → ms1_out_ag(.(T412, .(T405, T406)), T387)
ms1_in_ag(.(T412, .(T405, T406)), T387) → U75_ag(T412, T405, T406, T387, split12_in_aaaa(T405, T406, T420, T411))
U75_ag(T412, T405, T406, T387, split12_out_aaaa(T405, T406, T420, T411)) → U76_ag(T412, T405, T406, T387, T420, ms25_in_aaa(T412, T411, T419))
U76_ag(T412, T405, T406, T387, T420, ms25_out_aaa(T412, T411, T419)) → U77_ag(T412, T405, T406, T387, ms38_in_aa(T420, X495))
U77_ag(T412, T405, T406, T387, ms38_out_aa(T420, X495)) → ms1_out_ag(.(T412, .(T405, T406)), T387)
ms1_in_ag(.(T412, .(T405, T406)), T435) → U78_ag(T412, T405, T406, T435, split12_in_aaaa(T405, T406, T420, T411))
U78_ag(T412, T405, T406, T435, split12_out_aaaa(T405, T406, T420, T411)) → U79_ag(T412, T405, T406, T435, T420, ms25_in_aag(T412, T411, []))
U79_ag(T412, T405, T406, T435, T420, ms25_out_aag(T412, T411, [])) → U80_ag(T412, T405, T406, T435, ms38_in_ag(T420, T435))
U80_ag(T412, T405, T406, T435, ms38_out_ag(T420, T435)) → ms1_out_ag(.(T412, .(T405, T406)), T435)
ms1_in_ag(.(T412, .(T405, T406)), T440) → U81_ag(T412, T405, T406, T440, split12_in_aaaa(T405, T406, T420, T411))
U81_ag(T412, T405, T406, T440, split12_out_aaaa(T405, T406, T420, T411)) → U82_ag(T412, T405, T406, T440, T420, ms25_in_aag(T412, T411, T440))
U82_ag(T412, T405, T406, T440, T420, ms25_out_aag(T412, T411, T440)) → U83_ag(T412, T405, T406, T440, ms38_in_ag(T420, []))
U83_ag(T412, T405, T406, T440, ms38_out_ag(T420, [])) → ms1_out_ag(.(T412, .(T405, T406)), T440)
ms1_in_ag(.(T412, .(T405, T406)), .(T461, T465)) → U84_ag(T412, T405, T406, T461, T465, split12_in_aaaa(T405, T406, T420, T411))
U84_ag(T412, T405, T406, T461, T465, split12_out_aaaa(T405, T406, T420, T411)) → U85_ag(T412, T405, T406, T461, T465, T420, ms25_in_aaa(T412, T411, .(T461, T467)))
U85_ag(T412, T405, T406, T461, T465, T420, ms25_out_aaa(T412, T411, .(T461, T467))) → U86_ag(T412, T405, T406, T461, T465, ms38_in_aa(T420, .(T466, T468)))
U86_ag(T412, T405, T406, T461, T465, ms38_out_aa(T420, .(T466, T468))) → U87_ag(T412, T405, T406, T461, T465, less70_in_ga(T461, T466))
U87_ag(T412, T405, T406, T461, T465, less70_out_ga(T461, T466)) → ms1_out_ag(.(T412, .(T405, T406)), .(T461, T465))
ms1_in_ag(.(T412, .(T405, T406)), .(T461, .(T490, T491))) → U88_ag(T412, T405, T406, T461, T490, T491, split12_in_aaaa(T405, T406, T420, T411))
U88_ag(T412, T405, T406, T461, T490, T491, split12_out_aaaa(T405, T406, T420, T411)) → U89_ag(T412, T405, T406, T461, T490, T491, T420, ms25_in_aag(T412, T411, .(T461, [])))
U89_ag(T412, T405, T406, T461, T490, T491, T420, ms25_out_aag(T412, T411, .(T461, []))) → U90_ag(T412, T405, T406, T461, T490, T491, ms38_in_ag(T420, .(T490, T491)))
U90_ag(T412, T405, T406, T461, T490, T491, ms38_out_ag(T420, .(T490, T491))) → U91_ag(T412, T405, T406, T461, T490, T491, less70_in_gg(T461, T490))
less70_in_gg(0, T154) → less70_out_gg(0, T154)
less70_in_gg(s(T161), T162) → U22_gg(T161, T162, less78_in_gg(T161, T162))
less78_in_gg(0, s(T169)) → less78_out_gg(0, s(T169))
less78_in_gg(s(T176), s(T177)) → U20_gg(T176, T177, less78_in_gg(T176, T177))
U20_gg(T176, T177, less78_out_gg(T176, T177)) → less78_out_gg(s(T176), s(T177))
U22_gg(T161, T162, less78_out_gg(T161, T162)) → less70_out_gg(s(T161), T162)
U91_ag(T412, T405, T406, T461, T490, T491, less70_out_gg(T461, T490)) → ms1_out_ag(.(T412, .(T405, T406)), .(T461, .(T490, T491)))
ms1_in_ag(.(T412, .(T405, T406)), .(T461, .(T513, T517))) → U92_ag(T412, T405, T406, T461, T513, T517, split12_in_aaaa(T405, T406, T420, T411))
U92_ag(T412, T405, T406, T461, T513, T517, split12_out_aaaa(T405, T406, T420, T411)) → U93_ag(T412, T405, T406, T461, T513, T517, T420, ms25_in_aaa(T412, T411, .(T461, .(T513, T519))))
U93_ag(T412, T405, T406, T461, T513, T517, T420, ms25_out_aaa(T412, T411, .(T461, .(T513, T519)))) → U94_ag(T412, T405, T406, T461, T513, T517, T519, ms38_in_aa(T420, .(T518, T520)))
U94_ag(T412, T405, T406, T461, T513, T517, T519, ms38_out_aa(T420, .(T518, T520))) → U95_ag(T412, T405, T406, T461, T513, T517, T519, T518, T520, less70_in_ga(T461, T518))
U95_ag(T412, T405, T406, T461, T513, T517, T519, T518, T520, less70_out_ga(T461, T518)) → U96_ag(T412, T405, T406, T461, T513, T517, p179_in_gaaag(T513, T518, T519, T520, T517))
p179_in_gaaag(T513, T518, T519, T520, T517) → U23_gaaag(T513, T518, T519, T520, T517, less70_in_ga(T513, T518))
U23_gaaag(T513, T518, T519, T520, T517, less70_out_ga(T513, T518)) → p179_out_gaaag(T513, T518, T519, T520, T517)
p179_in_gaaag(T513, T540, [], T541, .(T540, T541)) → U24_gaaag(T513, T540, T541, less70_in_gg(T513, T540))
U24_gaaag(T513, T540, T541, less70_out_gg(T513, T540)) → p179_out_gaaag(T513, T540, [], T541, .(T540, T541))
p179_in_gaaag(T513, T568, .(T563, T569), T570, .(T563, T567)) → U25_gaaag(T513, T568, T563, T569, T570, T567, less70_in_ga(T513, T568))
U25_gaaag(T513, T568, T563, T569, T570, T567, less70_out_ga(T513, T568)) → U26_gaaag(T513, T568, T563, T569, T570, T567, p179_in_gaaag(T563, T568, T569, T570, T567))
p179_in_gaaag(T513, T585, .(T588, T590), T589, .(T585, T587)) → U27_gaaag(T513, T585, T588, T590, T589, T587, less70_in_gg(T513, T585))
U27_gaaag(T513, T585, T588, T590, T589, T587, less70_out_gg(T513, T585)) → U28_gaaag(T513, T585, T588, T590, T589, T587, p194_in_gaaag(T585, T588, T590, T589, T587))
p194_in_gaaag(T585, T588, T590, T589, T587) → U29_gaaag(T585, T588, T590, T589, T587, less78_in_ga(T585, T588))
U29_gaaag(T585, T588, T590, T589, T587, less78_out_ga(T585, T588)) → p194_out_gaaag(T585, T588, T590, T589, T587)
p194_in_gaaag(T585, T610, T611, [], .(T610, T611)) → U30_gaaag(T585, T610, T611, less78_in_gg(T585, T610))
U30_gaaag(T585, T610, T611, less78_out_gg(T585, T610)) → p194_out_gaaag(T585, T610, T611, [], .(T610, T611))
p194_in_gaaag(T585, T632, T638, .(T637, T639), .(T632, T636)) → U31_gaaag(T585, T632, T638, T637, T639, T636, less78_in_gg(T585, T632))
U31_gaaag(T585, T632, T638, T637, T639, T636, less78_out_gg(T585, T632)) → U32_gaaag(T585, T632, T638, T637, T639, T636, p179_in_gaaag(T632, T637, T638, T639, T636))
U32_gaaag(T585, T632, T638, T637, T639, T636, p179_out_gaaag(T632, T637, T638, T639, T636)) → p194_out_gaaag(T585, T632, T638, .(T637, T639), .(T632, T636))
p194_in_gaaag(T585, T657, T659, .(T654, T658), .(T654, T656)) → U33_gaaag(T585, T657, T659, T654, T658, T656, less78_in_ga(T585, T657))
U33_gaaag(T585, T657, T659, T654, T658, T656, less78_out_ga(T585, T657)) → U34_gaaag(T585, T657, T659, T654, T658, T656, p194_in_gaaag(T654, T657, T659, T658, T656))
U34_gaaag(T585, T657, T659, T654, T658, T656, p194_out_gaaag(T654, T657, T659, T658, T656)) → p194_out_gaaag(T585, T657, T659, .(T654, T658), .(T654, T656))
U28_gaaag(T513, T585, T588, T590, T589, T587, p194_out_gaaag(T585, T588, T590, T589, T587)) → p179_out_gaaag(T513, T585, .(T588, T590), T589, .(T585, T587))
U26_gaaag(T513, T568, T563, T569, T570, T567, p179_out_gaaag(T563, T568, T569, T570, T567)) → p179_out_gaaag(T513, T568, .(T563, T569), T570, .(T563, T567))
U96_ag(T412, T405, T406, T461, T513, T517, p179_out_gaaag(T513, T518, T519, T520, T517)) → ms1_out_ag(.(T412, .(T405, T406)), .(T461, .(T513, T517)))
ms1_in_ag(.(T412, .(T405, T406)), .(T461, .(T674, T676))) → U97_ag(T412, T405, T406, T461, T674, T676, split12_in_aaaa(T405, T406, T420, T411))
U97_ag(T412, T405, T406, T461, T674, T676, split12_out_aaaa(T405, T406, T420, T411)) → U98_ag(T412, T405, T406, T461, T674, T676, T420, ms25_in_aaa(T412, T411, .(T461, .(T677, T679))))
U98_ag(T412, T405, T406, T461, T674, T676, T420, ms25_out_aaa(T412, T411, .(T461, .(T677, T679)))) → U99_ag(T412, T405, T406, T461, T674, T676, T677, T679, ms38_in_aa(T420, .(T674, T678)))
U99_ag(T412, T405, T406, T461, T674, T676, T677, T679, ms38_out_aa(T420, .(T674, T678))) → U100_ag(T412, T405, T406, T461, T674, T676, T677, T679, T678, less70_in_gg(T461, T674))
U100_ag(T412, T405, T406, T461, T674, T676, T677, T679, T678, less70_out_gg(T461, T674)) → U101_ag(T412, T405, T406, T461, T674, T676, p194_in_gaaag(T674, T677, T679, T678, T676))
U101_ag(T412, T405, T406, T461, T674, T676, p194_out_gaaag(T674, T677, T679, T678, T676)) → ms1_out_ag(.(T412, .(T405, T406)), .(T461, .(T674, T676)))
ms1_in_ag(.(T412, .(T405, T406)), .(T694, T696)) → U102_ag(T412, T405, T406, T694, T696, split12_in_aaaa(T405, T406, T420, T411))
U102_ag(T412, T405, T406, T694, T696, split12_out_aaaa(T405, T406, T420, T411)) → U103_ag(T412, T405, T406, T694, T696, T420, ms25_in_aaa(T412, T411, .(T697, T699)))
U103_ag(T412, T405, T406, T694, T696, T420, ms25_out_aaa(T412, T411, .(T697, T699))) → U104_ag(T412, T405, T406, T694, T696, T697, T699, ms38_in_aa(T420, .(T694, T698)))
U104_ag(T412, T405, T406, T694, T696, T697, T699, ms38_out_aa(T420, .(T694, T698))) → U105_ag(T412, T405, T406, T694, T696, p194_in_gaaag(T694, T697, T699, T698, T696))
U105_ag(T412, T405, T406, T694, T696, p194_out_gaaag(T694, T697, T699, T698, T696)) → ms1_out_ag(.(T412, .(T405, T406)), .(T694, T696))
MS1_IN_AG(.(T29, .(T27, T28)), []) → U35_AG(T29, T27, T28, split12_in_aaaa(T27, T28, X42, X41))
MS1_IN_AG(.(T29, .(T27, T28)), []) → SPLIT12_IN_AAAA(T27, T28, X42, X41)
SPLIT12_IN_AAAA(T42, T44, .(T42, X71), X72) → U2_AAAA(T42, T44, X71, X72, split16_in_aaa(T44, X72, X71))
SPLIT12_IN_AAAA(T42, T44, .(T42, X71), X72) → SPLIT16_IN_AAA(T44, X72, X71)
SPLIT16_IN_AAA(.(T49, T51), .(T49, X89), X90) → U1_AAA(T49, T51, X89, X90, split16_in_aaa(T51, X90, X89))
SPLIT16_IN_AAA(.(T49, T51), .(T49, X89), X90) → SPLIT16_IN_AAA(T51, X90, X89)
MS1_IN_AG(.(T34, .(T27, T28)), []) → U36_AG(T34, T27, T28, split12_in_aaaa(T27, T28, T32, T33))
U36_AG(T34, T27, T28, split12_out_aaaa(T27, T28, T32, T33)) → U37_AG(T34, T27, T28, ms25_in_aaa(T34, T33, X13))
U36_AG(T34, T27, T28, split12_out_aaaa(T27, T28, T32, T33)) → MS25_IN_AAA(T34, T33, X13)
MS25_IN_AAA(T72, .(T73, T74), X127) → U21_AAA(T72, T73, T74, X127, p34_in_aaaaaaaa(T72, T73, T74, X123, X124, X125, X126, X127))
MS25_IN_AAA(T72, .(T73, T74), X127) → P34_IN_AAAAAAAA(T72, T73, T74, X123, X124, X125, X126, X127)
P34_IN_AAAAAAAA(T72, T73, T74, X123, X124, X125, X126, X127) → U3_AAAAAAAA(T72, T73, T74, X123, X124, X125, X126, X127, split12_in_aaaa(T72, .(T73, T74), X123, X124))
P34_IN_AAAAAAAA(T72, T73, T74, X123, X124, X125, X126, X127) → SPLIT12_IN_AAAA(T72, .(T73, T74), X123, X124)
P34_IN_AAAAAAAA(T72, T73, T74, T78, T79, X125, X126, X127) → U4_AAAAAAAA(T72, T73, T74, T78, T79, X125, X126, X127, split12_in_aaaa(T72, .(T73, T74), T78, T79))
U4_AAAAAAAA(T72, T73, T74, T78, T79, X125, X126, X127, split12_out_aaaa(T72, .(T73, T74), T78, T79)) → U5_AAAAAAAA(T72, T73, T74, T78, T79, X125, X126, X127, ms38_in_aa(T78, X125))
U4_AAAAAAAA(T72, T73, T74, T78, T79, X125, X126, X127, split12_out_aaaa(T72, .(T73, T74), T78, T79)) → MS38_IN_AA(T78, X125)
MS38_IN_AA(.(T99, .(T100, T101)), X172) → U13_AA(T99, T100, T101, X172, p34_in_aaaaaaaa(T99, T100, T101, X168, X169, X170, X171, X172))
MS38_IN_AA(.(T99, .(T100, T101)), X172) → P34_IN_AAAAAAAA(T99, T100, T101, X168, X169, X170, X171, X172)
P34_IN_AAAAAAAA(T72, T73, T74, T78, T84, T83, X126, X127) → U6_AAAAAAAA(T72, T73, T74, T78, T84, T83, X126, X127, split12_in_aaaa(T72, .(T73, T74), T78, T84))
U6_AAAAAAAA(T72, T73, T74, T78, T84, T83, X126, X127, split12_out_aaaa(T72, .(T73, T74), T78, T84)) → U7_AAAAAAAA(T72, T73, T74, T78, T84, T83, X126, X127, ms38_in_aa(T78, T83))
U6_AAAAAAAA(T72, T73, T74, T78, T84, T83, X126, X127, split12_out_aaaa(T72, .(T73, T74), T78, T84)) → MS38_IN_AA(T78, T83)
U7_AAAAAAAA(T72, T73, T74, T78, T84, T83, X126, X127, ms38_out_aa(T78, T83)) → U8_AAAAAAAA(T72, T73, T74, T78, T84, T83, X126, X127, ms38_in_aa(T84, X126))
U7_AAAAAAAA(T72, T73, T74, T78, T84, T83, X126, X127, ms38_out_aa(T78, T83)) → MS38_IN_AA(T84, X126)
P34_IN_AAAAAAAA(T72, T73, T74, T78, T84, T106, T105, X127) → U9_AAAAAAAA(T72, T73, T74, T78, T84, T106, T105, X127, split12_in_aaaa(T72, .(T73, T74), T78, T84))
U9_AAAAAAAA(T72, T73, T74, T78, T84, T106, T105, X127, split12_out_aaaa(T72, .(T73, T74), T78, T84)) → U10_AAAAAAAA(T72, T73, T74, T78, T84, T106, T105, X127, ms38_in_aa(T78, T106))
U9_AAAAAAAA(T72, T73, T74, T78, T84, T106, T105, X127, split12_out_aaaa(T72, .(T73, T74), T78, T84)) → MS38_IN_AA(T78, T106)
U10_AAAAAAAA(T72, T73, T74, T78, T84, T106, T105, X127, ms38_out_aa(T78, T106)) → U11_AAAAAAAA(T72, T73, T74, T78, T84, T106, T105, X127, ms38_in_aa(T84, T105))
U10_AAAAAAAA(T72, T73, T74, T78, T84, T106, T105, X127, ms38_out_aa(T78, T106)) → MS38_IN_AA(T84, T105)
U11_AAAAAAAA(T72, T73, T74, T78, T84, T106, T105, X127, ms38_out_aa(T84, T105)) → U12_AAAAAAAA(T72, T73, T74, T78, T84, T106, T105, X127, merge54_in_aaa(T106, T105, X127))
U11_AAAAAAAA(T72, T73, T74, T78, T84, T106, T105, X127, ms38_out_aa(T84, T105)) → MERGE54_IN_AAA(T106, T105, X127)
MERGE54_IN_AAA(.(T139, T141), .(T140, T142), .(T139, X226)) → U14_AAA(T139, T141, T140, T142, X226, less70_in_aa(T139, T140))
MERGE54_IN_AAA(.(T139, T141), .(T140, T142), .(T139, X226)) → LESS70_IN_AA(T139, T140)
LESS70_IN_AA(s(T161), T162) → U22_AA(T161, T162, less78_in_aa(T161, T162))
LESS70_IN_AA(s(T161), T162) → LESS78_IN_AA(T161, T162)
LESS78_IN_AA(s(T176), s(T177)) → U20_AA(T176, T177, less78_in_aa(T176, T177))
LESS78_IN_AA(s(T176), s(T177)) → LESS78_IN_AA(T176, T177)
MERGE54_IN_AAA(.(T139, T145), .(T146, T147), .(T139, X226)) → U15_AAA(T139, T145, T146, T147, X226, less70_in_aa(T139, T146))
U15_AAA(T139, T145, T146, T147, X226, less70_out_aa(T139, T146)) → U16_AAA(T139, T145, T146, T147, X226, merge54_in_aaa(T145, .(T146, T147), X226))
U15_AAA(T139, T145, T146, T147, X226, less70_out_aa(T139, T146)) → MERGE54_IN_AAA(T145, .(T146, T147), X226)
MERGE54_IN_AAA(.(T197, T199), .(T196, T198), .(T196, X287)) → U17_AAA(T197, T199, T196, T198, X287, less78_in_aa(T196, T197))
MERGE54_IN_AAA(.(T197, T199), .(T196, T198), .(T196, X287)) → LESS78_IN_AA(T196, T197)
MERGE54_IN_AAA(.(T202, T203), .(T196, T204), .(T196, X287)) → U18_AAA(T202, T203, T196, T204, X287, less78_in_aa(T196, T202))
U18_AAA(T202, T203, T196, T204, X287, less78_out_aa(T196, T202)) → U19_AAA(T202, T203, T196, T204, X287, merge54_in_aaa(.(T202, T203), T204, X287))
U18_AAA(T202, T203, T196, T204, X287, less78_out_aa(T196, T202)) → MERGE54_IN_AAA(.(T202, T203), T204, X287)
MS1_IN_AG(.(T34, .(T27, T28)), []) → U38_AG(T34, T27, T28, split12_in_aaaa(T27, T28, T55, T33))
U38_AG(T34, T27, T28, split12_out_aaaa(T27, T28, T55, T33)) → U39_AG(T34, T27, T28, T55, ms25_in_aaa(T34, T33, T54))
U38_AG(T34, T27, T28, split12_out_aaaa(T27, T28, T55, T33)) → MS25_IN_AAA(T34, T33, T54)
U39_AG(T34, T27, T28, T55, ms25_out_aaa(T34, T33, T54)) → U40_AG(T34, T27, T28, ms38_in_aa(T55, X14))
U39_AG(T34, T27, T28, T55, ms25_out_aaa(T34, T33, T54)) → MS38_IN_AA(T55, X14)
U38_AG(T34, T27, T28, split12_out_aaaa(T27, T28, T55, T33)) → U41_AG(T34, T27, T28, T55, ms25_in_aaa(T34, T33, T212))
U41_AG(T34, T27, T28, T55, ms25_out_aaa(T34, T33, T212)) → U42_AG(T34, T27, T28, T212, ms38_in_aa(T55, T211))
U41_AG(T34, T27, T28, T55, ms25_out_aaa(T34, T33, T212)) → MS38_IN_AA(T55, T211)
U42_AG(T34, T27, T28, T212, ms38_out_aa(T55, T211)) → U43_AG(T34, T27, T28, merge93_in_aa(T212, T211))
U42_AG(T34, T27, T28, T212, ms38_out_aa(T55, T211)) → MERGE93_IN_AA(T212, T211)
MS1_IN_AG(.(T262, .(T260, T261)), .(T242, [])) → U44_AG(T262, T260, T261, T242, split12_in_aaaa(T260, T261, X367, X366))
MS1_IN_AG(.(T262, .(T260, T261)), .(T242, [])) → SPLIT12_IN_AAAA(T260, T261, X367, X366)
MS1_IN_AG(.(T267, .(T260, T261)), .(T242, [])) → U45_AG(T267, T260, T261, T242, split12_in_aaaa(T260, T261, T265, T266))
U45_AG(T267, T260, T261, T242, split12_out_aaaa(T260, T261, T265, T266)) → U46_AG(T267, T260, T261, T242, ms25_in_aaa(T267, T266, X338))
U45_AG(T267, T260, T261, T242, split12_out_aaaa(T260, T261, T265, T266)) → MS25_IN_AAA(T267, T266, X338)
MS1_IN_AG(.(T267, .(T260, T261)), .(T242, [])) → U47_AG(T267, T260, T261, T242, split12_in_aaaa(T260, T261, T273, T266))
U47_AG(T267, T260, T261, T242, split12_out_aaaa(T260, T261, T273, T266)) → U48_AG(T267, T260, T261, T242, T273, ms25_in_aaa(T267, T266, T272))
U47_AG(T267, T260, T261, T242, split12_out_aaaa(T260, T261, T273, T266)) → MS25_IN_AAA(T267, T266, T272)
U48_AG(T267, T260, T261, T242, T273, ms25_out_aaa(T267, T266, T272)) → U49_AG(T267, T260, T261, T242, ms38_in_aa(T273, X339))
U48_AG(T267, T260, T261, T242, T273, ms25_out_aaa(T267, T266, T272)) → MS38_IN_AA(T273, X339)
MS1_IN_AG(.(T267, .(T260, T261)), .(T291, [])) → U50_AG(T267, T260, T261, T291, split12_in_aaaa(T260, T261, T273, T266))
U50_AG(T267, T260, T261, T291, split12_out_aaaa(T260, T261, T273, T266)) → U51_AG(T267, T260, T261, T291, T273, ms25_in_aag(T267, T266, []))
U50_AG(T267, T260, T261, T291, split12_out_aaaa(T260, T261, T273, T266)) → MS25_IN_AAG(T267, T266, [])
MS25_IN_AAG(T72, .(T73, T74), X127) → U21_AAG(T72, T73, T74, X127, p34_in_aaaaaaag(T72, T73, T74, X123, X124, X125, X126, X127))
MS25_IN_AAG(T72, .(T73, T74), X127) → P34_IN_AAAAAAAG(T72, T73, T74, X123, X124, X125, X126, X127)
P34_IN_AAAAAAAG(T72, T73, T74, X123, X124, X125, X126, X127) → U3_AAAAAAAG(T72, T73, T74, X123, X124, X125, X126, X127, split12_in_aaaa(T72, .(T73, T74), X123, X124))
P34_IN_AAAAAAAG(T72, T73, T74, X123, X124, X125, X126, X127) → SPLIT12_IN_AAAA(T72, .(T73, T74), X123, X124)
P34_IN_AAAAAAAG(T72, T73, T74, T78, T79, X125, X126, X127) → U4_AAAAAAAG(T72, T73, T74, T78, T79, X125, X126, X127, split12_in_aaaa(T72, .(T73, T74), T78, T79))
U4_AAAAAAAG(T72, T73, T74, T78, T79, X125, X126, X127, split12_out_aaaa(T72, .(T73, T74), T78, T79)) → U5_AAAAAAAG(T72, T73, T74, T78, T79, X125, X126, X127, ms38_in_aa(T78, X125))
U4_AAAAAAAG(T72, T73, T74, T78, T79, X125, X126, X127, split12_out_aaaa(T72, .(T73, T74), T78, T79)) → MS38_IN_AA(T78, X125)
P34_IN_AAAAAAAG(T72, T73, T74, T78, T84, T83, X126, X127) → U6_AAAAAAAG(T72, T73, T74, T78, T84, T83, X126, X127, split12_in_aaaa(T72, .(T73, T74), T78, T84))
U6_AAAAAAAG(T72, T73, T74, T78, T84, T83, X126, X127, split12_out_aaaa(T72, .(T73, T74), T78, T84)) → U7_AAAAAAAG(T72, T73, T74, T78, T84, T83, X126, X127, ms38_in_aa(T78, T83))
U6_AAAAAAAG(T72, T73, T74, T78, T84, T83, X126, X127, split12_out_aaaa(T72, .(T73, T74), T78, T84)) → MS38_IN_AA(T78, T83)
U7_AAAAAAAG(T72, T73, T74, T78, T84, T83, X126, X127, ms38_out_aa(T78, T83)) → U8_AAAAAAAG(T72, T73, T74, T78, T84, T83, X126, X127, ms38_in_aa(T84, X126))
U7_AAAAAAAG(T72, T73, T74, T78, T84, T83, X126, X127, ms38_out_aa(T78, T83)) → MS38_IN_AA(T84, X126)
P34_IN_AAAAAAAG(T72, T73, T74, T78, T84, T106, T105, X127) → U9_AAAAAAAG(T72, T73, T74, T78, T84, T106, T105, X127, split12_in_aaaa(T72, .(T73, T74), T78, T84))
U9_AAAAAAAG(T72, T73, T74, T78, T84, T106, T105, X127, split12_out_aaaa(T72, .(T73, T74), T78, T84)) → U10_AAAAAAAG(T72, T73, T74, T78, T84, T106, T105, X127, ms38_in_aa(T78, T106))
U9_AAAAAAAG(T72, T73, T74, T78, T84, T106, T105, X127, split12_out_aaaa(T72, .(T73, T74), T78, T84)) → MS38_IN_AA(T78, T106)
U10_AAAAAAAG(T72, T73, T74, T78, T84, T106, T105, X127, ms38_out_aa(T78, T106)) → U11_AAAAAAAG(T72, T73, T74, T78, T84, T106, T105, X127, ms38_in_aa(T84, T105))
U10_AAAAAAAG(T72, T73, T74, T78, T84, T106, T105, X127, ms38_out_aa(T78, T106)) → MS38_IN_AA(T84, T105)
U11_AAAAAAAG(T72, T73, T74, T78, T84, T106, T105, X127, ms38_out_aa(T84, T105)) → U12_AAAAAAAG(T72, T73, T74, T78, T84, T106, T105, X127, merge54_in_aag(T106, T105, X127))
U11_AAAAAAAG(T72, T73, T74, T78, T84, T106, T105, X127, ms38_out_aa(T84, T105)) → MERGE54_IN_AAG(T106, T105, X127)
MERGE54_IN_AAG(.(T139, T141), .(T140, T142), .(T139, X226)) → U14_AAG(T139, T141, T140, T142, X226, less70_in_ga(T139, T140))
MERGE54_IN_AAG(.(T139, T141), .(T140, T142), .(T139, X226)) → LESS70_IN_GA(T139, T140)
LESS70_IN_GA(s(T161), T162) → U22_GA(T161, T162, less78_in_ga(T161, T162))
LESS70_IN_GA(s(T161), T162) → LESS78_IN_GA(T161, T162)
LESS78_IN_GA(s(T176), s(T177)) → U20_GA(T176, T177, less78_in_ga(T176, T177))
LESS78_IN_GA(s(T176), s(T177)) → LESS78_IN_GA(T176, T177)
MERGE54_IN_AAG(.(T139, T145), .(T146, T147), .(T139, X226)) → U15_AAG(T139, T145, T146, T147, X226, less70_in_ga(T139, T146))
U15_AAG(T139, T145, T146, T147, X226, less70_out_ga(T139, T146)) → U16_AAG(T139, T145, T146, T147, X226, merge54_in_aag(T145, .(T146, T147), X226))
U15_AAG(T139, T145, T146, T147, X226, less70_out_ga(T139, T146)) → MERGE54_IN_AAG(T145, .(T146, T147), X226)
MERGE54_IN_AAG(.(T197, T199), .(T196, T198), .(T196, X287)) → U17_AAG(T197, T199, T196, T198, X287, less78_in_ga(T196, T197))
MERGE54_IN_AAG(.(T197, T199), .(T196, T198), .(T196, X287)) → LESS78_IN_GA(T196, T197)
MERGE54_IN_AAG(.(T202, T203), .(T196, T204), .(T196, X287)) → U18_AAG(T202, T203, T196, T204, X287, less78_in_ga(T196, T202))
U18_AAG(T202, T203, T196, T204, X287, less78_out_ga(T196, T202)) → U19_AAG(T202, T203, T196, T204, X287, merge54_in_aag(.(T202, T203), T204, X287))
U18_AAG(T202, T203, T196, T204, X287, less78_out_ga(T196, T202)) → MERGE54_IN_AAG(.(T202, T203), T204, X287)
U51_AG(T267, T260, T261, T291, T273, ms25_out_aag(T267, T266, [])) → U52_AG(T267, T260, T261, T291, ms38_in_ag(T273, .(T291, [])))
U51_AG(T267, T260, T261, T291, T273, ms25_out_aag(T267, T266, [])) → MS38_IN_AG(T273, .(T291, []))
MS38_IN_AG(.(T99, .(T100, T101)), X172) → U13_AG(T99, T100, T101, X172, p34_in_aaaaaaag(T99, T100, T101, X168, X169, X170, X171, X172))
MS38_IN_AG(.(T99, .(T100, T101)), X172) → P34_IN_AAAAAAAG(T99, T100, T101, X168, X169, X170, X171, X172)
MS1_IN_AG(.(T267, .(T260, T261)), .(T301, [])) → U53_AG(T267, T260, T261, T301, split12_in_aaaa(T260, T261, T273, T266))
U53_AG(T267, T260, T261, T301, split12_out_aaaa(T260, T261, T273, T266)) → U54_AG(T267, T260, T261, T301, T273, ms25_in_aag(T267, T266, .(T301, [])))
U53_AG(T267, T260, T261, T301, split12_out_aaaa(T260, T261, T273, T266)) → MS25_IN_AAG(T267, T266, .(T301, []))
U54_AG(T267, T260, T261, T301, T273, ms25_out_aag(T267, T266, .(T301, []))) → U55_AG(T267, T260, T261, T301, ms38_in_ag(T273, []))
U54_AG(T267, T260, T261, T301, T273, ms25_out_aag(T267, T266, .(T301, []))) → MS38_IN_AG(T273, [])
MS1_IN_AG(.(T267, .(T260, T261)), .(T318, [])) → U56_AG(T267, T260, T261, T318, split12_in_aaaa(T260, T261, T273, T266))
U56_AG(T267, T260, T261, T318, split12_out_aaaa(T260, T261, T273, T266)) → U57_AG(T267, T260, T261, T318, T273, ms25_in_aaa(T267, T266, .(T318, T323)))
U56_AG(T267, T260, T261, T318, split12_out_aaaa(T260, T261, T273, T266)) → MS25_IN_AAA(T267, T266, .(T318, T323))
U57_AG(T267, T260, T261, T318, T273, ms25_out_aaa(T267, T266, .(T318, T323))) → U58_AG(T267, T260, T261, T318, ms38_in_aa(T273, .(T322, T324)))
U57_AG(T267, T260, T261, T318, T273, ms25_out_aaa(T267, T266, .(T318, T323))) → MS38_IN_AA(T273, .(T322, T324))
U58_AG(T267, T260, T261, T318, ms38_out_aa(T273, .(T322, T324))) → U59_AG(T267, T260, T261, T318, less70_in_ga(T318, T322))
U58_AG(T267, T260, T261, T318, ms38_out_aa(T273, .(T322, T324))) → LESS70_IN_GA(T318, T322)
U56_AG(T267, T260, T261, T318, split12_out_aaaa(T260, T261, T273, T266)) → U60_AG(T267, T260, T261, T318, T273, ms25_in_aaa(T267, T266, .(T318, T327)))
U60_AG(T267, T260, T261, T318, T273, ms25_out_aaa(T267, T266, .(T318, T327))) → U61_AG(T267, T260, T261, T318, T327, ms38_in_aa(T273, .(T328, T329)))
U60_AG(T267, T260, T261, T318, T273, ms25_out_aaa(T267, T266, .(T318, T327))) → MS38_IN_AA(T273, .(T328, T329))
U61_AG(T267, T260, T261, T318, T327, ms38_out_aa(T273, .(T328, T329))) → U62_AG(T267, T260, T261, T318, T327, T328, T329, less70_in_ga(T318, T328))
U61_AG(T267, T260, T261, T318, T327, ms38_out_aa(T273, .(T328, T329))) → LESS70_IN_GA(T318, T328)
U62_AG(T267, T260, T261, T318, T327, T328, T329, less70_out_ga(T318, T328)) → U63_AG(T267, T260, T261, T318, merge93_in_aa(T327, .(T328, T329)))
U62_AG(T267, T260, T261, T318, T327, T328, T329, less70_out_ga(T318, T328)) → MERGE93_IN_AA(T327, .(T328, T329))
MS1_IN_AG(.(T267, .(T260, T261)), .(T356, [])) → U64_AG(T267, T260, T261, T356, split12_in_aaaa(T260, T261, T273, T266))
U64_AG(T267, T260, T261, T356, split12_out_aaaa(T260, T261, T273, T266)) → U65_AG(T267, T260, T261, T356, T273, ms25_in_aaa(T267, T266, .(T358, T360)))
U64_AG(T267, T260, T261, T356, split12_out_aaaa(T260, T261, T273, T266)) → MS25_IN_AAA(T267, T266, .(T358, T360))
U65_AG(T267, T260, T261, T356, T273, ms25_out_aaa(T267, T266, .(T358, T360))) → U66_AG(T267, T260, T261, T356, T358, ms38_in_aa(T273, .(T356, T359)))
U65_AG(T267, T260, T261, T356, T273, ms25_out_aaa(T267, T266, .(T358, T360))) → MS38_IN_AA(T273, .(T356, T359))
U66_AG(T267, T260, T261, T356, T358, ms38_out_aa(T273, .(T356, T359))) → U67_AG(T267, T260, T261, T356, less78_in_ga(T356, T358))
U66_AG(T267, T260, T261, T356, T358, ms38_out_aa(T273, .(T356, T359))) → LESS78_IN_GA(T356, T358)
U64_AG(T267, T260, T261, T356, split12_out_aaaa(T260, T261, T273, T266)) → U68_AG(T267, T260, T261, T356, T273, ms25_in_aaa(T267, T266, .(T363, T364)))
U68_AG(T267, T260, T261, T356, T273, ms25_out_aaa(T267, T266, .(T363, T364))) → U69_AG(T267, T260, T261, T356, T363, T364, ms38_in_aa(T273, .(T356, T365)))
U68_AG(T267, T260, T261, T356, T273, ms25_out_aaa(T267, T266, .(T363, T364))) → MS38_IN_AA(T273, .(T356, T365))
U69_AG(T267, T260, T261, T356, T363, T364, ms38_out_aa(T273, .(T356, T365))) → U70_AG(T267, T260, T261, T356, T363, T364, T365, less78_in_ga(T356, T363))
U69_AG(T267, T260, T261, T356, T363, T364, ms38_out_aa(T273, .(T356, T365))) → LESS78_IN_GA(T356, T363)
U70_AG(T267, T260, T261, T356, T363, T364, T365, less78_out_ga(T356, T363)) → U71_AG(T267, T260, T261, T356, merge93_in_aa(.(T363, T364), T365))
U70_AG(T267, T260, T261, T356, T363, T364, T365, less78_out_ga(T356, T363)) → MERGE93_IN_AA(.(T363, T364), T365)
MS1_IN_AG(.(T407, .(T405, T406)), T387) → U72_AG(T407, T405, T406, T387, split12_in_aaaa(T405, T406, X523, X522))
MS1_IN_AG(.(T407, .(T405, T406)), T387) → SPLIT12_IN_AAAA(T405, T406, X523, X522)
MS1_IN_AG(.(T412, .(T405, T406)), T387) → U73_AG(T412, T405, T406, T387, split12_in_aaaa(T405, T406, T410, T411))
U73_AG(T412, T405, T406, T387, split12_out_aaaa(T405, T406, T410, T411)) → U74_AG(T412, T405, T406, T387, ms25_in_aaa(T412, T411, X494))
U73_AG(T412, T405, T406, T387, split12_out_aaaa(T405, T406, T410, T411)) → MS25_IN_AAA(T412, T411, X494)
MS1_IN_AG(.(T412, .(T405, T406)), T387) → U75_AG(T412, T405, T406, T387, split12_in_aaaa(T405, T406, T420, T411))
U75_AG(T412, T405, T406, T387, split12_out_aaaa(T405, T406, T420, T411)) → U76_AG(T412, T405, T406, T387, T420, ms25_in_aaa(T412, T411, T419))
U75_AG(T412, T405, T406, T387, split12_out_aaaa(T405, T406, T420, T411)) → MS25_IN_AAA(T412, T411, T419)
U76_AG(T412, T405, T406, T387, T420, ms25_out_aaa(T412, T411, T419)) → U77_AG(T412, T405, T406, T387, ms38_in_aa(T420, X495))
U76_AG(T412, T405, T406, T387, T420, ms25_out_aaa(T412, T411, T419)) → MS38_IN_AA(T420, X495)
MS1_IN_AG(.(T412, .(T405, T406)), T435) → U78_AG(T412, T405, T406, T435, split12_in_aaaa(T405, T406, T420, T411))
U78_AG(T412, T405, T406, T435, split12_out_aaaa(T405, T406, T420, T411)) → U79_AG(T412, T405, T406, T435, T420, ms25_in_aag(T412, T411, []))
U78_AG(T412, T405, T406, T435, split12_out_aaaa(T405, T406, T420, T411)) → MS25_IN_AAG(T412, T411, [])
U79_AG(T412, T405, T406, T435, T420, ms25_out_aag(T412, T411, [])) → U80_AG(T412, T405, T406, T435, ms38_in_ag(T420, T435))
U79_AG(T412, T405, T406, T435, T420, ms25_out_aag(T412, T411, [])) → MS38_IN_AG(T420, T435)
MS1_IN_AG(.(T412, .(T405, T406)), T440) → U81_AG(T412, T405, T406, T440, split12_in_aaaa(T405, T406, T420, T411))
U81_AG(T412, T405, T406, T440, split12_out_aaaa(T405, T406, T420, T411)) → U82_AG(T412, T405, T406, T440, T420, ms25_in_aag(T412, T411, T440))
U81_AG(T412, T405, T406, T440, split12_out_aaaa(T405, T406, T420, T411)) → MS25_IN_AAG(T412, T411, T440)
U82_AG(T412, T405, T406, T440, T420, ms25_out_aag(T412, T411, T440)) → U83_AG(T412, T405, T406, T440, ms38_in_ag(T420, []))
U82_AG(T412, T405, T406, T440, T420, ms25_out_aag(T412, T411, T440)) → MS38_IN_AG(T420, [])
MS1_IN_AG(.(T412, .(T405, T406)), .(T461, T465)) → U84_AG(T412, T405, T406, T461, T465, split12_in_aaaa(T405, T406, T420, T411))
MS1_IN_AG(.(T412, .(T405, T406)), .(T461, T465)) → SPLIT12_IN_AAAA(T405, T406, T420, T411)
U84_AG(T412, T405, T406, T461, T465, split12_out_aaaa(T405, T406, T420, T411)) → U85_AG(T412, T405, T406, T461, T465, T420, ms25_in_aaa(T412, T411, .(T461, T467)))
U84_AG(T412, T405, T406, T461, T465, split12_out_aaaa(T405, T406, T420, T411)) → MS25_IN_AAA(T412, T411, .(T461, T467))
U85_AG(T412, T405, T406, T461, T465, T420, ms25_out_aaa(T412, T411, .(T461, T467))) → U86_AG(T412, T405, T406, T461, T465, ms38_in_aa(T420, .(T466, T468)))
U85_AG(T412, T405, T406, T461, T465, T420, ms25_out_aaa(T412, T411, .(T461, T467))) → MS38_IN_AA(T420, .(T466, T468))
U86_AG(T412, T405, T406, T461, T465, ms38_out_aa(T420, .(T466, T468))) → U87_AG(T412, T405, T406, T461, T465, less70_in_ga(T461, T466))
U86_AG(T412, T405, T406, T461, T465, ms38_out_aa(T420, .(T466, T468))) → LESS70_IN_GA(T461, T466)
MS1_IN_AG(.(T412, .(T405, T406)), .(T461, .(T490, T491))) → U88_AG(T412, T405, T406, T461, T490, T491, split12_in_aaaa(T405, T406, T420, T411))
MS1_IN_AG(.(T412, .(T405, T406)), .(T461, .(T490, T491))) → SPLIT12_IN_AAAA(T405, T406, T420, T411)
U88_AG(T412, T405, T406, T461, T490, T491, split12_out_aaaa(T405, T406, T420, T411)) → U89_AG(T412, T405, T406, T461, T490, T491, T420, ms25_in_aag(T412, T411, .(T461, [])))
U88_AG(T412, T405, T406, T461, T490, T491, split12_out_aaaa(T405, T406, T420, T411)) → MS25_IN_AAG(T412, T411, .(T461, []))
U89_AG(T412, T405, T406, T461, T490, T491, T420, ms25_out_aag(T412, T411, .(T461, []))) → U90_AG(T412, T405, T406, T461, T490, T491, ms38_in_ag(T420, .(T490, T491)))
U89_AG(T412, T405, T406, T461, T490, T491, T420, ms25_out_aag(T412, T411, .(T461, []))) → MS38_IN_AG(T420, .(T490, T491))
U90_AG(T412, T405, T406, T461, T490, T491, ms38_out_ag(T420, .(T490, T491))) → U91_AG(T412, T405, T406, T461, T490, T491, less70_in_gg(T461, T490))
U90_AG(T412, T405, T406, T461, T490, T491, ms38_out_ag(T420, .(T490, T491))) → LESS70_IN_GG(T461, T490)
LESS70_IN_GG(s(T161), T162) → U22_GG(T161, T162, less78_in_gg(T161, T162))
LESS70_IN_GG(s(T161), T162) → LESS78_IN_GG(T161, T162)
LESS78_IN_GG(s(T176), s(T177)) → U20_GG(T176, T177, less78_in_gg(T176, T177))
LESS78_IN_GG(s(T176), s(T177)) → LESS78_IN_GG(T176, T177)
MS1_IN_AG(.(T412, .(T405, T406)), .(T461, .(T513, T517))) → U92_AG(T412, T405, T406, T461, T513, T517, split12_in_aaaa(T405, T406, T420, T411))
U92_AG(T412, T405, T406, T461, T513, T517, split12_out_aaaa(T405, T406, T420, T411)) → U93_AG(T412, T405, T406, T461, T513, T517, T420, ms25_in_aaa(T412, T411, .(T461, .(T513, T519))))
U92_AG(T412, T405, T406, T461, T513, T517, split12_out_aaaa(T405, T406, T420, T411)) → MS25_IN_AAA(T412, T411, .(T461, .(T513, T519)))
U93_AG(T412, T405, T406, T461, T513, T517, T420, ms25_out_aaa(T412, T411, .(T461, .(T513, T519)))) → U94_AG(T412, T405, T406, T461, T513, T517, T519, ms38_in_aa(T420, .(T518, T520)))
U93_AG(T412, T405, T406, T461, T513, T517, T420, ms25_out_aaa(T412, T411, .(T461, .(T513, T519)))) → MS38_IN_AA(T420, .(T518, T520))
U94_AG(T412, T405, T406, T461, T513, T517, T519, ms38_out_aa(T420, .(T518, T520))) → U95_AG(T412, T405, T406, T461, T513, T517, T519, T518, T520, less70_in_ga(T461, T518))
U94_AG(T412, T405, T406, T461, T513, T517, T519, ms38_out_aa(T420, .(T518, T520))) → LESS70_IN_GA(T461, T518)
U95_AG(T412, T405, T406, T461, T513, T517, T519, T518, T520, less70_out_ga(T461, T518)) → U96_AG(T412, T405, T406, T461, T513, T517, p179_in_gaaag(T513, T518, T519, T520, T517))
U95_AG(T412, T405, T406, T461, T513, T517, T519, T518, T520, less70_out_ga(T461, T518)) → P179_IN_GAAAG(T513, T518, T519, T520, T517)
P179_IN_GAAAG(T513, T518, T519, T520, T517) → U23_GAAAG(T513, T518, T519, T520, T517, less70_in_ga(T513, T518))
P179_IN_GAAAG(T513, T518, T519, T520, T517) → LESS70_IN_GA(T513, T518)
P179_IN_GAAAG(T513, T540, [], T541, .(T540, T541)) → U24_GAAAG(T513, T540, T541, less70_in_gg(T513, T540))
P179_IN_GAAAG(T513, T540, [], T541, .(T540, T541)) → LESS70_IN_GG(T513, T540)
P179_IN_GAAAG(T513, T568, .(T563, T569), T570, .(T563, T567)) → U25_GAAAG(T513, T568, T563, T569, T570, T567, less70_in_ga(T513, T568))
P179_IN_GAAAG(T513, T568, .(T563, T569), T570, .(T563, T567)) → LESS70_IN_GA(T513, T568)
U25_GAAAG(T513, T568, T563, T569, T570, T567, less70_out_ga(T513, T568)) → U26_GAAAG(T513, T568, T563, T569, T570, T567, p179_in_gaaag(T563, T568, T569, T570, T567))
U25_GAAAG(T513, T568, T563, T569, T570, T567, less70_out_ga(T513, T568)) → P179_IN_GAAAG(T563, T568, T569, T570, T567)
P179_IN_GAAAG(T513, T585, .(T588, T590), T589, .(T585, T587)) → U27_GAAAG(T513, T585, T588, T590, T589, T587, less70_in_gg(T513, T585))
P179_IN_GAAAG(T513, T585, .(T588, T590), T589, .(T585, T587)) → LESS70_IN_GG(T513, T585)
U27_GAAAG(T513, T585, T588, T590, T589, T587, less70_out_gg(T513, T585)) → U28_GAAAG(T513, T585, T588, T590, T589, T587, p194_in_gaaag(T585, T588, T590, T589, T587))
U27_GAAAG(T513, T585, T588, T590, T589, T587, less70_out_gg(T513, T585)) → P194_IN_GAAAG(T585, T588, T590, T589, T587)
P194_IN_GAAAG(T585, T588, T590, T589, T587) → U29_GAAAG(T585, T588, T590, T589, T587, less78_in_ga(T585, T588))
P194_IN_GAAAG(T585, T588, T590, T589, T587) → LESS78_IN_GA(T585, T588)
P194_IN_GAAAG(T585, T610, T611, [], .(T610, T611)) → U30_GAAAG(T585, T610, T611, less78_in_gg(T585, T610))
P194_IN_GAAAG(T585, T610, T611, [], .(T610, T611)) → LESS78_IN_GG(T585, T610)
P194_IN_GAAAG(T585, T632, T638, .(T637, T639), .(T632, T636)) → U31_GAAAG(T585, T632, T638, T637, T639, T636, less78_in_gg(T585, T632))
P194_IN_GAAAG(T585, T632, T638, .(T637, T639), .(T632, T636)) → LESS78_IN_GG(T585, T632)
U31_GAAAG(T585, T632, T638, T637, T639, T636, less78_out_gg(T585, T632)) → U32_GAAAG(T585, T632, T638, T637, T639, T636, p179_in_gaaag(T632, T637, T638, T639, T636))
U31_GAAAG(T585, T632, T638, T637, T639, T636, less78_out_gg(T585, T632)) → P179_IN_GAAAG(T632, T637, T638, T639, T636)
P194_IN_GAAAG(T585, T657, T659, .(T654, T658), .(T654, T656)) → U33_GAAAG(T585, T657, T659, T654, T658, T656, less78_in_ga(T585, T657))
P194_IN_GAAAG(T585, T657, T659, .(T654, T658), .(T654, T656)) → LESS78_IN_GA(T585, T657)
U33_GAAAG(T585, T657, T659, T654, T658, T656, less78_out_ga(T585, T657)) → U34_GAAAG(T585, T657, T659, T654, T658, T656, p194_in_gaaag(T654, T657, T659, T658, T656))
U33_GAAAG(T585, T657, T659, T654, T658, T656, less78_out_ga(T585, T657)) → P194_IN_GAAAG(T654, T657, T659, T658, T656)
MS1_IN_AG(.(T412, .(T405, T406)), .(T461, .(T674, T676))) → U97_AG(T412, T405, T406, T461, T674, T676, split12_in_aaaa(T405, T406, T420, T411))
U97_AG(T412, T405, T406, T461, T674, T676, split12_out_aaaa(T405, T406, T420, T411)) → U98_AG(T412, T405, T406, T461, T674, T676, T420, ms25_in_aaa(T412, T411, .(T461, .(T677, T679))))
U97_AG(T412, T405, T406, T461, T674, T676, split12_out_aaaa(T405, T406, T420, T411)) → MS25_IN_AAA(T412, T411, .(T461, .(T677, T679)))
U98_AG(T412, T405, T406, T461, T674, T676, T420, ms25_out_aaa(T412, T411, .(T461, .(T677, T679)))) → U99_AG(T412, T405, T406, T461, T674, T676, T677, T679, ms38_in_aa(T420, .(T674, T678)))
U98_AG(T412, T405, T406, T461, T674, T676, T420, ms25_out_aaa(T412, T411, .(T461, .(T677, T679)))) → MS38_IN_AA(T420, .(T674, T678))
U99_AG(T412, T405, T406, T461, T674, T676, T677, T679, ms38_out_aa(T420, .(T674, T678))) → U100_AG(T412, T405, T406, T461, T674, T676, T677, T679, T678, less70_in_gg(T461, T674))
U99_AG(T412, T405, T406, T461, T674, T676, T677, T679, ms38_out_aa(T420, .(T674, T678))) → LESS70_IN_GG(T461, T674)
U100_AG(T412, T405, T406, T461, T674, T676, T677, T679, T678, less70_out_gg(T461, T674)) → U101_AG(T412, T405, T406, T461, T674, T676, p194_in_gaaag(T674, T677, T679, T678, T676))
U100_AG(T412, T405, T406, T461, T674, T676, T677, T679, T678, less70_out_gg(T461, T674)) → P194_IN_GAAAG(T674, T677, T679, T678, T676)
MS1_IN_AG(.(T412, .(T405, T406)), .(T694, T696)) → U102_AG(T412, T405, T406, T694, T696, split12_in_aaaa(T405, T406, T420, T411))
U102_AG(T412, T405, T406, T694, T696, split12_out_aaaa(T405, T406, T420, T411)) → U103_AG(T412, T405, T406, T694, T696, T420, ms25_in_aaa(T412, T411, .(T697, T699)))
U102_AG(T412, T405, T406, T694, T696, split12_out_aaaa(T405, T406, T420, T411)) → MS25_IN_AAA(T412, T411, .(T697, T699))
U103_AG(T412, T405, T406, T694, T696, T420, ms25_out_aaa(T412, T411, .(T697, T699))) → U104_AG(T412, T405, T406, T694, T696, T697, T699, ms38_in_aa(T420, .(T694, T698)))
U103_AG(T412, T405, T406, T694, T696, T420, ms25_out_aaa(T412, T411, .(T697, T699))) → MS38_IN_AA(T420, .(T694, T698))
U104_AG(T412, T405, T406, T694, T696, T697, T699, ms38_out_aa(T420, .(T694, T698))) → U105_AG(T412, T405, T406, T694, T696, p194_in_gaaag(T694, T697, T699, T698, T696))
U104_AG(T412, T405, T406, T694, T696, T697, T699, ms38_out_aa(T420, .(T694, T698))) → P194_IN_GAAAG(T694, T697, T699, T698, T696)
ms1_in_ag([], []) → ms1_out_ag([], [])
ms1_in_ag(.(T29, .(T27, T28)), []) → U35_ag(T29, T27, T28, split12_in_aaaa(T27, T28, X42, X41))
split12_in_aaaa(T42, T44, .(T42, X71), X72) → U2_aaaa(T42, T44, X71, X72, split16_in_aaa(T44, X72, X71))
split16_in_aaa([], [], []) → split16_out_aaa([], [], [])
split16_in_aaa(.(T49, T51), .(T49, X89), X90) → U1_aaa(T49, T51, X89, X90, split16_in_aaa(T51, X90, X89))
U1_aaa(T49, T51, X89, X90, split16_out_aaa(T51, X90, X89)) → split16_out_aaa(.(T49, T51), .(T49, X89), X90)
U2_aaaa(T42, T44, X71, X72, split16_out_aaa(T44, X72, X71)) → split12_out_aaaa(T42, T44, .(T42, X71), X72)
U35_ag(T29, T27, T28, split12_out_aaaa(T27, T28, X42, X41)) → ms1_out_ag(.(T29, .(T27, T28)), [])
ms1_in_ag(.(T34, .(T27, T28)), []) → U36_ag(T34, T27, T28, split12_in_aaaa(T27, T28, T32, T33))
U36_ag(T34, T27, T28, split12_out_aaaa(T27, T28, T32, T33)) → U37_ag(T34, T27, T28, ms25_in_aaa(T34, T33, X13))
ms25_in_aaa(T62, [], .(T62, [])) → ms25_out_aaa(T62, [], .(T62, []))
ms25_in_aaa(T72, .(T73, T74), X127) → U21_aaa(T72, T73, T74, X127, p34_in_aaaaaaaa(T72, T73, T74, X123, X124, X125, X126, X127))
p34_in_aaaaaaaa(T72, T73, T74, X123, X124, X125, X126, X127) → U3_aaaaaaaa(T72, T73, T74, X123, X124, X125, X126, X127, split12_in_aaaa(T72, .(T73, T74), X123, X124))
U3_aaaaaaaa(T72, T73, T74, X123, X124, X125, X126, X127, split12_out_aaaa(T72, .(T73, T74), X123, X124)) → p34_out_aaaaaaaa(T72, T73, T74, X123, X124, X125, X126, X127)
p34_in_aaaaaaaa(T72, T73, T74, T78, T79, X125, X126, X127) → U4_aaaaaaaa(T72, T73, T74, T78, T79, X125, X126, X127, split12_in_aaaa(T72, .(T73, T74), T78, T79))
U4_aaaaaaaa(T72, T73, T74, T78, T79, X125, X126, X127, split12_out_aaaa(T72, .(T73, T74), T78, T79)) → U5_aaaaaaaa(T72, T73, T74, T78, T79, X125, X126, X127, ms38_in_aa(T78, X125))
ms38_in_aa([], []) → ms38_out_aa([], [])
ms38_in_aa(.(T89, []), .(T89, [])) → ms38_out_aa(.(T89, []), .(T89, []))
ms38_in_aa(.(T99, .(T100, T101)), X172) → U13_aa(T99, T100, T101, X172, p34_in_aaaaaaaa(T99, T100, T101, X168, X169, X170, X171, X172))
p34_in_aaaaaaaa(T72, T73, T74, T78, T84, T83, X126, X127) → U6_aaaaaaaa(T72, T73, T74, T78, T84, T83, X126, X127, split12_in_aaaa(T72, .(T73, T74), T78, T84))
U6_aaaaaaaa(T72, T73, T74, T78, T84, T83, X126, X127, split12_out_aaaa(T72, .(T73, T74), T78, T84)) → U7_aaaaaaaa(T72, T73, T74, T78, T84, T83, X126, X127, ms38_in_aa(T78, T83))
U7_aaaaaaaa(T72, T73, T74, T78, T84, T83, X126, X127, ms38_out_aa(T78, T83)) → U8_aaaaaaaa(T72, T73, T74, T78, T84, T83, X126, X127, ms38_in_aa(T84, X126))
U8_aaaaaaaa(T72, T73, T74, T78, T84, T83, X126, X127, ms38_out_aa(T84, X126)) → p34_out_aaaaaaaa(T72, T73, T74, T78, T84, T83, X126, X127)
p34_in_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127) → U9_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127, split12_in_aaaa(T72, .(T73, T74), T78, T84))
U9_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127, split12_out_aaaa(T72, .(T73, T74), T78, T84)) → U10_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127, ms38_in_aa(T78, T106))
U10_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127, ms38_out_aa(T78, T106)) → U11_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127, ms38_in_aa(T84, T105))
U11_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127, ms38_out_aa(T84, T105)) → U12_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127, merge54_in_aaa(T106, T105, X127))
merge54_in_aaa([], T113, T113) → merge54_out_aaa([], T113, T113)
merge54_in_aaa(T118, [], T118) → merge54_out_aaa(T118, [], T118)
merge54_in_aaa(.(T139, T141), .(T140, T142), .(T139, X226)) → U14_aaa(T139, T141, T140, T142, X226, less70_in_aa(T139, T140))
less70_in_aa(0, T154) → less70_out_aa(0, T154)
less70_in_aa(s(T161), T162) → U22_aa(T161, T162, less78_in_aa(T161, T162))
less78_in_aa(0, s(T169)) → less78_out_aa(0, s(T169))
less78_in_aa(s(T176), s(T177)) → U20_aa(T176, T177, less78_in_aa(T176, T177))
U20_aa(T176, T177, less78_out_aa(T176, T177)) → less78_out_aa(s(T176), s(T177))
U22_aa(T161, T162, less78_out_aa(T161, T162)) → less70_out_aa(s(T161), T162)
U14_aaa(T139, T141, T140, T142, X226, less70_out_aa(T139, T140)) → merge54_out_aaa(.(T139, T141), .(T140, T142), .(T139, X226))
merge54_in_aaa(.(T139, T145), .(T146, T147), .(T139, X226)) → U15_aaa(T139, T145, T146, T147, X226, less70_in_aa(T139, T146))
U15_aaa(T139, T145, T146, T147, X226, less70_out_aa(T139, T146)) → U16_aaa(T139, T145, T146, T147, X226, merge54_in_aaa(T145, .(T146, T147), X226))
merge54_in_aaa(.(T197, T199), .(T196, T198), .(T196, X287)) → U17_aaa(T197, T199, T196, T198, X287, less78_in_aa(T196, T197))
U17_aaa(T197, T199, T196, T198, X287, less78_out_aa(T196, T197)) → merge54_out_aaa(.(T197, T199), .(T196, T198), .(T196, X287))
merge54_in_aaa(.(T202, T203), .(T196, T204), .(T196, X287)) → U18_aaa(T202, T203, T196, T204, X287, less78_in_aa(T196, T202))
U18_aaa(T202, T203, T196, T204, X287, less78_out_aa(T196, T202)) → U19_aaa(T202, T203, T196, T204, X287, merge54_in_aaa(.(T202, T203), T204, X287))
U19_aaa(T202, T203, T196, T204, X287, merge54_out_aaa(.(T202, T203), T204, X287)) → merge54_out_aaa(.(T202, T203), .(T196, T204), .(T196, X287))
U16_aaa(T139, T145, T146, T147, X226, merge54_out_aaa(T145, .(T146, T147), X226)) → merge54_out_aaa(.(T139, T145), .(T146, T147), .(T139, X226))
U12_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127, merge54_out_aaa(T106, T105, X127)) → p34_out_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127)
U13_aa(T99, T100, T101, X172, p34_out_aaaaaaaa(T99, T100, T101, X168, X169, X170, X171, X172)) → ms38_out_aa(.(T99, .(T100, T101)), X172)
U5_aaaaaaaa(T72, T73, T74, T78, T79, X125, X126, X127, ms38_out_aa(T78, X125)) → p34_out_aaaaaaaa(T72, T73, T74, T78, T79, X125, X126, X127)
U21_aaa(T72, T73, T74, X127, p34_out_aaaaaaaa(T72, T73, T74, X123, X124, X125, X126, X127)) → ms25_out_aaa(T72, .(T73, T74), X127)
U37_ag(T34, T27, T28, ms25_out_aaa(T34, T33, X13)) → ms1_out_ag(.(T34, .(T27, T28)), [])
ms1_in_ag(.(T34, .(T27, T28)), []) → U38_ag(T34, T27, T28, split12_in_aaaa(T27, T28, T55, T33))
U38_ag(T34, T27, T28, split12_out_aaaa(T27, T28, T55, T33)) → U39_ag(T34, T27, T28, T55, ms25_in_aaa(T34, T33, T54))
U39_ag(T34, T27, T28, T55, ms25_out_aaa(T34, T33, T54)) → U40_ag(T34, T27, T28, ms38_in_aa(T55, X14))
U40_ag(T34, T27, T28, ms38_out_aa(T55, X14)) → ms1_out_ag(.(T34, .(T27, T28)), [])
U38_ag(T34, T27, T28, split12_out_aaaa(T27, T28, T55, T33)) → U41_ag(T34, T27, T28, T55, ms25_in_aaa(T34, T33, T212))
U41_ag(T34, T27, T28, T55, ms25_out_aaa(T34, T33, T212)) → U42_ag(T34, T27, T28, T212, ms38_in_aa(T55, T211))
U42_ag(T34, T27, T28, T212, ms38_out_aa(T55, T211)) → U43_ag(T34, T27, T28, merge93_in_aa(T212, T211))
merge93_in_aa([], []) → merge93_out_aa([], [])
U43_ag(T34, T27, T28, merge93_out_aa(T212, T211)) → ms1_out_ag(.(T34, .(T27, T28)), [])
ms1_in_ag(.(T234, []), .(T234, [])) → ms1_out_ag(.(T234, []), .(T234, []))
ms1_in_ag(.(T262, .(T260, T261)), .(T242, [])) → U44_ag(T262, T260, T261, T242, split12_in_aaaa(T260, T261, X367, X366))
U44_ag(T262, T260, T261, T242, split12_out_aaaa(T260, T261, X367, X366)) → ms1_out_ag(.(T262, .(T260, T261)), .(T242, []))
ms1_in_ag(.(T267, .(T260, T261)), .(T242, [])) → U45_ag(T267, T260, T261, T242, split12_in_aaaa(T260, T261, T265, T266))
U45_ag(T267, T260, T261, T242, split12_out_aaaa(T260, T261, T265, T266)) → U46_ag(T267, T260, T261, T242, ms25_in_aaa(T267, T266, X338))
U46_ag(T267, T260, T261, T242, ms25_out_aaa(T267, T266, X338)) → ms1_out_ag(.(T267, .(T260, T261)), .(T242, []))
ms1_in_ag(.(T267, .(T260, T261)), .(T242, [])) → U47_ag(T267, T260, T261, T242, split12_in_aaaa(T260, T261, T273, T266))
U47_ag(T267, T260, T261, T242, split12_out_aaaa(T260, T261, T273, T266)) → U48_ag(T267, T260, T261, T242, T273, ms25_in_aaa(T267, T266, T272))
U48_ag(T267, T260, T261, T242, T273, ms25_out_aaa(T267, T266, T272)) → U49_ag(T267, T260, T261, T242, ms38_in_aa(T273, X339))
U49_ag(T267, T260, T261, T242, ms38_out_aa(T273, X339)) → ms1_out_ag(.(T267, .(T260, T261)), .(T242, []))
ms1_in_ag(.(T267, .(T260, T261)), .(T291, [])) → U50_ag(T267, T260, T261, T291, split12_in_aaaa(T260, T261, T273, T266))
U50_ag(T267, T260, T261, T291, split12_out_aaaa(T260, T261, T273, T266)) → U51_ag(T267, T260, T261, T291, T273, ms25_in_aag(T267, T266, []))
ms25_in_aag(T62, [], .(T62, [])) → ms25_out_aag(T62, [], .(T62, []))
ms25_in_aag(T72, .(T73, T74), X127) → U21_aag(T72, T73, T74, X127, p34_in_aaaaaaag(T72, T73, T74, X123, X124, X125, X126, X127))
p34_in_aaaaaaag(T72, T73, T74, X123, X124, X125, X126, X127) → U3_aaaaaaag(T72, T73, T74, X123, X124, X125, X126, X127, split12_in_aaaa(T72, .(T73, T74), X123, X124))
U3_aaaaaaag(T72, T73, T74, X123, X124, X125, X126, X127, split12_out_aaaa(T72, .(T73, T74), X123, X124)) → p34_out_aaaaaaag(T72, T73, T74, X123, X124, X125, X126, X127)
p34_in_aaaaaaag(T72, T73, T74, T78, T79, X125, X126, X127) → U4_aaaaaaag(T72, T73, T74, T78, T79, X125, X126, X127, split12_in_aaaa(T72, .(T73, T74), T78, T79))
U4_aaaaaaag(T72, T73, T74, T78, T79, X125, X126, X127, split12_out_aaaa(T72, .(T73, T74), T78, T79)) → U5_aaaaaaag(T72, T73, T74, T78, T79, X125, X126, X127, ms38_in_aa(T78, X125))
U5_aaaaaaag(T72, T73, T74, T78, T79, X125, X126, X127, ms38_out_aa(T78, X125)) → p34_out_aaaaaaag(T72, T73, T74, T78, T79, X125, X126, X127)
p34_in_aaaaaaag(T72, T73, T74, T78, T84, T83, X126, X127) → U6_aaaaaaag(T72, T73, T74, T78, T84, T83, X126, X127, split12_in_aaaa(T72, .(T73, T74), T78, T84))
U6_aaaaaaag(T72, T73, T74, T78, T84, T83, X126, X127, split12_out_aaaa(T72, .(T73, T74), T78, T84)) → U7_aaaaaaag(T72, T73, T74, T78, T84, T83, X126, X127, ms38_in_aa(T78, T83))
U7_aaaaaaag(T72, T73, T74, T78, T84, T83, X126, X127, ms38_out_aa(T78, T83)) → U8_aaaaaaag(T72, T73, T74, T78, T84, T83, X126, X127, ms38_in_aa(T84, X126))
U8_aaaaaaag(T72, T73, T74, T78, T84, T83, X126, X127, ms38_out_aa(T84, X126)) → p34_out_aaaaaaag(T72, T73, T74, T78, T84, T83, X126, X127)
p34_in_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127) → U9_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127, split12_in_aaaa(T72, .(T73, T74), T78, T84))
U9_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127, split12_out_aaaa(T72, .(T73, T74), T78, T84)) → U10_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127, ms38_in_aa(T78, T106))
U10_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127, ms38_out_aa(T78, T106)) → U11_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127, ms38_in_aa(T84, T105))
U11_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127, ms38_out_aa(T84, T105)) → U12_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127, merge54_in_aag(T106, T105, X127))
merge54_in_aag([], T113, T113) → merge54_out_aag([], T113, T113)
merge54_in_aag(T118, [], T118) → merge54_out_aag(T118, [], T118)
merge54_in_aag(.(T139, T141), .(T140, T142), .(T139, X226)) → U14_aag(T139, T141, T140, T142, X226, less70_in_ga(T139, T140))
less70_in_ga(0, T154) → less70_out_ga(0, T154)
less70_in_ga(s(T161), T162) → U22_ga(T161, T162, less78_in_ga(T161, T162))
less78_in_ga(0, s(T169)) → less78_out_ga(0, s(T169))
less78_in_ga(s(T176), s(T177)) → U20_ga(T176, T177, less78_in_ga(T176, T177))
U20_ga(T176, T177, less78_out_ga(T176, T177)) → less78_out_ga(s(T176), s(T177))
U22_ga(T161, T162, less78_out_ga(T161, T162)) → less70_out_ga(s(T161), T162)
U14_aag(T139, T141, T140, T142, X226, less70_out_ga(T139, T140)) → merge54_out_aag(.(T139, T141), .(T140, T142), .(T139, X226))
merge54_in_aag(.(T139, T145), .(T146, T147), .(T139, X226)) → U15_aag(T139, T145, T146, T147, X226, less70_in_ga(T139, T146))
U15_aag(T139, T145, T146, T147, X226, less70_out_ga(T139, T146)) → U16_aag(T139, T145, T146, T147, X226, merge54_in_aag(T145, .(T146, T147), X226))
merge54_in_aag(.(T197, T199), .(T196, T198), .(T196, X287)) → U17_aag(T197, T199, T196, T198, X287, less78_in_ga(T196, T197))
U17_aag(T197, T199, T196, T198, X287, less78_out_ga(T196, T197)) → merge54_out_aag(.(T197, T199), .(T196, T198), .(T196, X287))
merge54_in_aag(.(T202, T203), .(T196, T204), .(T196, X287)) → U18_aag(T202, T203, T196, T204, X287, less78_in_ga(T196, T202))
U18_aag(T202, T203, T196, T204, X287, less78_out_ga(T196, T202)) → U19_aag(T202, T203, T196, T204, X287, merge54_in_aag(.(T202, T203), T204, X287))
U19_aag(T202, T203, T196, T204, X287, merge54_out_aag(.(T202, T203), T204, X287)) → merge54_out_aag(.(T202, T203), .(T196, T204), .(T196, X287))
U16_aag(T139, T145, T146, T147, X226, merge54_out_aag(T145, .(T146, T147), X226)) → merge54_out_aag(.(T139, T145), .(T146, T147), .(T139, X226))
U12_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127, merge54_out_aag(T106, T105, X127)) → p34_out_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127)
U21_aag(T72, T73, T74, X127, p34_out_aaaaaaag(T72, T73, T74, X123, X124, X125, X126, X127)) → ms25_out_aag(T72, .(T73, T74), X127)
U51_ag(T267, T260, T261, T291, T273, ms25_out_aag(T267, T266, [])) → U52_ag(T267, T260, T261, T291, ms38_in_ag(T273, .(T291, [])))
ms38_in_ag([], []) → ms38_out_ag([], [])
ms38_in_ag(.(T89, []), .(T89, [])) → ms38_out_ag(.(T89, []), .(T89, []))
ms38_in_ag(.(T99, .(T100, T101)), X172) → U13_ag(T99, T100, T101, X172, p34_in_aaaaaaag(T99, T100, T101, X168, X169, X170, X171, X172))
U13_ag(T99, T100, T101, X172, p34_out_aaaaaaag(T99, T100, T101, X168, X169, X170, X171, X172)) → ms38_out_ag(.(T99, .(T100, T101)), X172)
U52_ag(T267, T260, T261, T291, ms38_out_ag(T273, .(T291, []))) → ms1_out_ag(.(T267, .(T260, T261)), .(T291, []))
ms1_in_ag(.(T267, .(T260, T261)), .(T301, [])) → U53_ag(T267, T260, T261, T301, split12_in_aaaa(T260, T261, T273, T266))
U53_ag(T267, T260, T261, T301, split12_out_aaaa(T260, T261, T273, T266)) → U54_ag(T267, T260, T261, T301, T273, ms25_in_aag(T267, T266, .(T301, [])))
U54_ag(T267, T260, T261, T301, T273, ms25_out_aag(T267, T266, .(T301, []))) → U55_ag(T267, T260, T261, T301, ms38_in_ag(T273, []))
U55_ag(T267, T260, T261, T301, ms38_out_ag(T273, [])) → ms1_out_ag(.(T267, .(T260, T261)), .(T301, []))
ms1_in_ag(.(T267, .(T260, T261)), .(T318, [])) → U56_ag(T267, T260, T261, T318, split12_in_aaaa(T260, T261, T273, T266))
U56_ag(T267, T260, T261, T318, split12_out_aaaa(T260, T261, T273, T266)) → U57_ag(T267, T260, T261, T318, T273, ms25_in_aaa(T267, T266, .(T318, T323)))
U57_ag(T267, T260, T261, T318, T273, ms25_out_aaa(T267, T266, .(T318, T323))) → U58_ag(T267, T260, T261, T318, ms38_in_aa(T273, .(T322, T324)))
U58_ag(T267, T260, T261, T318, ms38_out_aa(T273, .(T322, T324))) → U59_ag(T267, T260, T261, T318, less70_in_ga(T318, T322))
U59_ag(T267, T260, T261, T318, less70_out_ga(T318, T322)) → ms1_out_ag(.(T267, .(T260, T261)), .(T318, []))
U56_ag(T267, T260, T261, T318, split12_out_aaaa(T260, T261, T273, T266)) → U60_ag(T267, T260, T261, T318, T273, ms25_in_aaa(T267, T266, .(T318, T327)))
U60_ag(T267, T260, T261, T318, T273, ms25_out_aaa(T267, T266, .(T318, T327))) → U61_ag(T267, T260, T261, T318, T327, ms38_in_aa(T273, .(T328, T329)))
U61_ag(T267, T260, T261, T318, T327, ms38_out_aa(T273, .(T328, T329))) → U62_ag(T267, T260, T261, T318, T327, T328, T329, less70_in_ga(T318, T328))
U62_ag(T267, T260, T261, T318, T327, T328, T329, less70_out_ga(T318, T328)) → U63_ag(T267, T260, T261, T318, merge93_in_aa(T327, .(T328, T329)))
U63_ag(T267, T260, T261, T318, merge93_out_aa(T327, .(T328, T329))) → ms1_out_ag(.(T267, .(T260, T261)), .(T318, []))
ms1_in_ag(.(T267, .(T260, T261)), .(T356, [])) → U64_ag(T267, T260, T261, T356, split12_in_aaaa(T260, T261, T273, T266))
U64_ag(T267, T260, T261, T356, split12_out_aaaa(T260, T261, T273, T266)) → U65_ag(T267, T260, T261, T356, T273, ms25_in_aaa(T267, T266, .(T358, T360)))
U65_ag(T267, T260, T261, T356, T273, ms25_out_aaa(T267, T266, .(T358, T360))) → U66_ag(T267, T260, T261, T356, T358, ms38_in_aa(T273, .(T356, T359)))
U66_ag(T267, T260, T261, T356, T358, ms38_out_aa(T273, .(T356, T359))) → U67_ag(T267, T260, T261, T356, less78_in_ga(T356, T358))
U67_ag(T267, T260, T261, T356, less78_out_ga(T356, T358)) → ms1_out_ag(.(T267, .(T260, T261)), .(T356, []))
U64_ag(T267, T260, T261, T356, split12_out_aaaa(T260, T261, T273, T266)) → U68_ag(T267, T260, T261, T356, T273, ms25_in_aaa(T267, T266, .(T363, T364)))
U68_ag(T267, T260, T261, T356, T273, ms25_out_aaa(T267, T266, .(T363, T364))) → U69_ag(T267, T260, T261, T356, T363, T364, ms38_in_aa(T273, .(T356, T365)))
U69_ag(T267, T260, T261, T356, T363, T364, ms38_out_aa(T273, .(T356, T365))) → U70_ag(T267, T260, T261, T356, T363, T364, T365, less78_in_ga(T356, T363))
U70_ag(T267, T260, T261, T356, T363, T364, T365, less78_out_ga(T356, T363)) → U71_ag(T267, T260, T261, T356, merge93_in_aa(.(T363, T364), T365))
U71_ag(T267, T260, T261, T356, merge93_out_aa(.(T363, T364), T365)) → ms1_out_ag(.(T267, .(T260, T261)), .(T356, []))
ms1_in_ag(.(T407, .(T405, T406)), T387) → U72_ag(T407, T405, T406, T387, split12_in_aaaa(T405, T406, X523, X522))
U72_ag(T407, T405, T406, T387, split12_out_aaaa(T405, T406, X523, X522)) → ms1_out_ag(.(T407, .(T405, T406)), T387)
ms1_in_ag(.(T412, .(T405, T406)), T387) → U73_ag(T412, T405, T406, T387, split12_in_aaaa(T405, T406, T410, T411))
U73_ag(T412, T405, T406, T387, split12_out_aaaa(T405, T406, T410, T411)) → U74_ag(T412, T405, T406, T387, ms25_in_aaa(T412, T411, X494))
U74_ag(T412, T405, T406, T387, ms25_out_aaa(T412, T411, X494)) → ms1_out_ag(.(T412, .(T405, T406)), T387)
ms1_in_ag(.(T412, .(T405, T406)), T387) → U75_ag(T412, T405, T406, T387, split12_in_aaaa(T405, T406, T420, T411))
U75_ag(T412, T405, T406, T387, split12_out_aaaa(T405, T406, T420, T411)) → U76_ag(T412, T405, T406, T387, T420, ms25_in_aaa(T412, T411, T419))
U76_ag(T412, T405, T406, T387, T420, ms25_out_aaa(T412, T411, T419)) → U77_ag(T412, T405, T406, T387, ms38_in_aa(T420, X495))
U77_ag(T412, T405, T406, T387, ms38_out_aa(T420, X495)) → ms1_out_ag(.(T412, .(T405, T406)), T387)
ms1_in_ag(.(T412, .(T405, T406)), T435) → U78_ag(T412, T405, T406, T435, split12_in_aaaa(T405, T406, T420, T411))
U78_ag(T412, T405, T406, T435, split12_out_aaaa(T405, T406, T420, T411)) → U79_ag(T412, T405, T406, T435, T420, ms25_in_aag(T412, T411, []))
U79_ag(T412, T405, T406, T435, T420, ms25_out_aag(T412, T411, [])) → U80_ag(T412, T405, T406, T435, ms38_in_ag(T420, T435))
U80_ag(T412, T405, T406, T435, ms38_out_ag(T420, T435)) → ms1_out_ag(.(T412, .(T405, T406)), T435)
ms1_in_ag(.(T412, .(T405, T406)), T440) → U81_ag(T412, T405, T406, T440, split12_in_aaaa(T405, T406, T420, T411))
U81_ag(T412, T405, T406, T440, split12_out_aaaa(T405, T406, T420, T411)) → U82_ag(T412, T405, T406, T440, T420, ms25_in_aag(T412, T411, T440))
U82_ag(T412, T405, T406, T440, T420, ms25_out_aag(T412, T411, T440)) → U83_ag(T412, T405, T406, T440, ms38_in_ag(T420, []))
U83_ag(T412, T405, T406, T440, ms38_out_ag(T420, [])) → ms1_out_ag(.(T412, .(T405, T406)), T440)
ms1_in_ag(.(T412, .(T405, T406)), .(T461, T465)) → U84_ag(T412, T405, T406, T461, T465, split12_in_aaaa(T405, T406, T420, T411))
U84_ag(T412, T405, T406, T461, T465, split12_out_aaaa(T405, T406, T420, T411)) → U85_ag(T412, T405, T406, T461, T465, T420, ms25_in_aaa(T412, T411, .(T461, T467)))
U85_ag(T412, T405, T406, T461, T465, T420, ms25_out_aaa(T412, T411, .(T461, T467))) → U86_ag(T412, T405, T406, T461, T465, ms38_in_aa(T420, .(T466, T468)))
U86_ag(T412, T405, T406, T461, T465, ms38_out_aa(T420, .(T466, T468))) → U87_ag(T412, T405, T406, T461, T465, less70_in_ga(T461, T466))
U87_ag(T412, T405, T406, T461, T465, less70_out_ga(T461, T466)) → ms1_out_ag(.(T412, .(T405, T406)), .(T461, T465))
ms1_in_ag(.(T412, .(T405, T406)), .(T461, .(T490, T491))) → U88_ag(T412, T405, T406, T461, T490, T491, split12_in_aaaa(T405, T406, T420, T411))
U88_ag(T412, T405, T406, T461, T490, T491, split12_out_aaaa(T405, T406, T420, T411)) → U89_ag(T412, T405, T406, T461, T490, T491, T420, ms25_in_aag(T412, T411, .(T461, [])))
U89_ag(T412, T405, T406, T461, T490, T491, T420, ms25_out_aag(T412, T411, .(T461, []))) → U90_ag(T412, T405, T406, T461, T490, T491, ms38_in_ag(T420, .(T490, T491)))
U90_ag(T412, T405, T406, T461, T490, T491, ms38_out_ag(T420, .(T490, T491))) → U91_ag(T412, T405, T406, T461, T490, T491, less70_in_gg(T461, T490))
less70_in_gg(0, T154) → less70_out_gg(0, T154)
less70_in_gg(s(T161), T162) → U22_gg(T161, T162, less78_in_gg(T161, T162))
less78_in_gg(0, s(T169)) → less78_out_gg(0, s(T169))
less78_in_gg(s(T176), s(T177)) → U20_gg(T176, T177, less78_in_gg(T176, T177))
U20_gg(T176, T177, less78_out_gg(T176, T177)) → less78_out_gg(s(T176), s(T177))
U22_gg(T161, T162, less78_out_gg(T161, T162)) → less70_out_gg(s(T161), T162)
U91_ag(T412, T405, T406, T461, T490, T491, less70_out_gg(T461, T490)) → ms1_out_ag(.(T412, .(T405, T406)), .(T461, .(T490, T491)))
ms1_in_ag(.(T412, .(T405, T406)), .(T461, .(T513, T517))) → U92_ag(T412, T405, T406, T461, T513, T517, split12_in_aaaa(T405, T406, T420, T411))
U92_ag(T412, T405, T406, T461, T513, T517, split12_out_aaaa(T405, T406, T420, T411)) → U93_ag(T412, T405, T406, T461, T513, T517, T420, ms25_in_aaa(T412, T411, .(T461, .(T513, T519))))
U93_ag(T412, T405, T406, T461, T513, T517, T420, ms25_out_aaa(T412, T411, .(T461, .(T513, T519)))) → U94_ag(T412, T405, T406, T461, T513, T517, T519, ms38_in_aa(T420, .(T518, T520)))
U94_ag(T412, T405, T406, T461, T513, T517, T519, ms38_out_aa(T420, .(T518, T520))) → U95_ag(T412, T405, T406, T461, T513, T517, T519, T518, T520, less70_in_ga(T461, T518))
U95_ag(T412, T405, T406, T461, T513, T517, T519, T518, T520, less70_out_ga(T461, T518)) → U96_ag(T412, T405, T406, T461, T513, T517, p179_in_gaaag(T513, T518, T519, T520, T517))
p179_in_gaaag(T513, T518, T519, T520, T517) → U23_gaaag(T513, T518, T519, T520, T517, less70_in_ga(T513, T518))
U23_gaaag(T513, T518, T519, T520, T517, less70_out_ga(T513, T518)) → p179_out_gaaag(T513, T518, T519, T520, T517)
p179_in_gaaag(T513, T540, [], T541, .(T540, T541)) → U24_gaaag(T513, T540, T541, less70_in_gg(T513, T540))
U24_gaaag(T513, T540, T541, less70_out_gg(T513, T540)) → p179_out_gaaag(T513, T540, [], T541, .(T540, T541))
p179_in_gaaag(T513, T568, .(T563, T569), T570, .(T563, T567)) → U25_gaaag(T513, T568, T563, T569, T570, T567, less70_in_ga(T513, T568))
U25_gaaag(T513, T568, T563, T569, T570, T567, less70_out_ga(T513, T568)) → U26_gaaag(T513, T568, T563, T569, T570, T567, p179_in_gaaag(T563, T568, T569, T570, T567))
p179_in_gaaag(T513, T585, .(T588, T590), T589, .(T585, T587)) → U27_gaaag(T513, T585, T588, T590, T589, T587, less70_in_gg(T513, T585))
U27_gaaag(T513, T585, T588, T590, T589, T587, less70_out_gg(T513, T585)) → U28_gaaag(T513, T585, T588, T590, T589, T587, p194_in_gaaag(T585, T588, T590, T589, T587))
p194_in_gaaag(T585, T588, T590, T589, T587) → U29_gaaag(T585, T588, T590, T589, T587, less78_in_ga(T585, T588))
U29_gaaag(T585, T588, T590, T589, T587, less78_out_ga(T585, T588)) → p194_out_gaaag(T585, T588, T590, T589, T587)
p194_in_gaaag(T585, T610, T611, [], .(T610, T611)) → U30_gaaag(T585, T610, T611, less78_in_gg(T585, T610))
U30_gaaag(T585, T610, T611, less78_out_gg(T585, T610)) → p194_out_gaaag(T585, T610, T611, [], .(T610, T611))
p194_in_gaaag(T585, T632, T638, .(T637, T639), .(T632, T636)) → U31_gaaag(T585, T632, T638, T637, T639, T636, less78_in_gg(T585, T632))
U31_gaaag(T585, T632, T638, T637, T639, T636, less78_out_gg(T585, T632)) → U32_gaaag(T585, T632, T638, T637, T639, T636, p179_in_gaaag(T632, T637, T638, T639, T636))
U32_gaaag(T585, T632, T638, T637, T639, T636, p179_out_gaaag(T632, T637, T638, T639, T636)) → p194_out_gaaag(T585, T632, T638, .(T637, T639), .(T632, T636))
p194_in_gaaag(T585, T657, T659, .(T654, T658), .(T654, T656)) → U33_gaaag(T585, T657, T659, T654, T658, T656, less78_in_ga(T585, T657))
U33_gaaag(T585, T657, T659, T654, T658, T656, less78_out_ga(T585, T657)) → U34_gaaag(T585, T657, T659, T654, T658, T656, p194_in_gaaag(T654, T657, T659, T658, T656))
U34_gaaag(T585, T657, T659, T654, T658, T656, p194_out_gaaag(T654, T657, T659, T658, T656)) → p194_out_gaaag(T585, T657, T659, .(T654, T658), .(T654, T656))
U28_gaaag(T513, T585, T588, T590, T589, T587, p194_out_gaaag(T585, T588, T590, T589, T587)) → p179_out_gaaag(T513, T585, .(T588, T590), T589, .(T585, T587))
U26_gaaag(T513, T568, T563, T569, T570, T567, p179_out_gaaag(T563, T568, T569, T570, T567)) → p179_out_gaaag(T513, T568, .(T563, T569), T570, .(T563, T567))
U96_ag(T412, T405, T406, T461, T513, T517, p179_out_gaaag(T513, T518, T519, T520, T517)) → ms1_out_ag(.(T412, .(T405, T406)), .(T461, .(T513, T517)))
ms1_in_ag(.(T412, .(T405, T406)), .(T461, .(T674, T676))) → U97_ag(T412, T405, T406, T461, T674, T676, split12_in_aaaa(T405, T406, T420, T411))
U97_ag(T412, T405, T406, T461, T674, T676, split12_out_aaaa(T405, T406, T420, T411)) → U98_ag(T412, T405, T406, T461, T674, T676, T420, ms25_in_aaa(T412, T411, .(T461, .(T677, T679))))
U98_ag(T412, T405, T406, T461, T674, T676, T420, ms25_out_aaa(T412, T411, .(T461, .(T677, T679)))) → U99_ag(T412, T405, T406, T461, T674, T676, T677, T679, ms38_in_aa(T420, .(T674, T678)))
U99_ag(T412, T405, T406, T461, T674, T676, T677, T679, ms38_out_aa(T420, .(T674, T678))) → U100_ag(T412, T405, T406, T461, T674, T676, T677, T679, T678, less70_in_gg(T461, T674))
U100_ag(T412, T405, T406, T461, T674, T676, T677, T679, T678, less70_out_gg(T461, T674)) → U101_ag(T412, T405, T406, T461, T674, T676, p194_in_gaaag(T674, T677, T679, T678, T676))
U101_ag(T412, T405, T406, T461, T674, T676, p194_out_gaaag(T674, T677, T679, T678, T676)) → ms1_out_ag(.(T412, .(T405, T406)), .(T461, .(T674, T676)))
ms1_in_ag(.(T412, .(T405, T406)), .(T694, T696)) → U102_ag(T412, T405, T406, T694, T696, split12_in_aaaa(T405, T406, T420, T411))
U102_ag(T412, T405, T406, T694, T696, split12_out_aaaa(T405, T406, T420, T411)) → U103_ag(T412, T405, T406, T694, T696, T420, ms25_in_aaa(T412, T411, .(T697, T699)))
U103_ag(T412, T405, T406, T694, T696, T420, ms25_out_aaa(T412, T411, .(T697, T699))) → U104_ag(T412, T405, T406, T694, T696, T697, T699, ms38_in_aa(T420, .(T694, T698)))
U104_ag(T412, T405, T406, T694, T696, T697, T699, ms38_out_aa(T420, .(T694, T698))) → U105_ag(T412, T405, T406, T694, T696, p194_in_gaaag(T694, T697, T699, T698, T696))
U105_ag(T412, T405, T406, T694, T696, p194_out_gaaag(T694, T697, T699, T698, T696)) → ms1_out_ag(.(T412, .(T405, T406)), .(T694, T696))
MS1_IN_AG(.(T29, .(T27, T28)), []) → U35_AG(T29, T27, T28, split12_in_aaaa(T27, T28, X42, X41))
MS1_IN_AG(.(T29, .(T27, T28)), []) → SPLIT12_IN_AAAA(T27, T28, X42, X41)
SPLIT12_IN_AAAA(T42, T44, .(T42, X71), X72) → U2_AAAA(T42, T44, X71, X72, split16_in_aaa(T44, X72, X71))
SPLIT12_IN_AAAA(T42, T44, .(T42, X71), X72) → SPLIT16_IN_AAA(T44, X72, X71)
SPLIT16_IN_AAA(.(T49, T51), .(T49, X89), X90) → U1_AAA(T49, T51, X89, X90, split16_in_aaa(T51, X90, X89))
SPLIT16_IN_AAA(.(T49, T51), .(T49, X89), X90) → SPLIT16_IN_AAA(T51, X90, X89)
MS1_IN_AG(.(T34, .(T27, T28)), []) → U36_AG(T34, T27, T28, split12_in_aaaa(T27, T28, T32, T33))
U36_AG(T34, T27, T28, split12_out_aaaa(T27, T28, T32, T33)) → U37_AG(T34, T27, T28, ms25_in_aaa(T34, T33, X13))
U36_AG(T34, T27, T28, split12_out_aaaa(T27, T28, T32, T33)) → MS25_IN_AAA(T34, T33, X13)
MS25_IN_AAA(T72, .(T73, T74), X127) → U21_AAA(T72, T73, T74, X127, p34_in_aaaaaaaa(T72, T73, T74, X123, X124, X125, X126, X127))
MS25_IN_AAA(T72, .(T73, T74), X127) → P34_IN_AAAAAAAA(T72, T73, T74, X123, X124, X125, X126, X127)
P34_IN_AAAAAAAA(T72, T73, T74, X123, X124, X125, X126, X127) → U3_AAAAAAAA(T72, T73, T74, X123, X124, X125, X126, X127, split12_in_aaaa(T72, .(T73, T74), X123, X124))
P34_IN_AAAAAAAA(T72, T73, T74, X123, X124, X125, X126, X127) → SPLIT12_IN_AAAA(T72, .(T73, T74), X123, X124)
P34_IN_AAAAAAAA(T72, T73, T74, T78, T79, X125, X126, X127) → U4_AAAAAAAA(T72, T73, T74, T78, T79, X125, X126, X127, split12_in_aaaa(T72, .(T73, T74), T78, T79))
U4_AAAAAAAA(T72, T73, T74, T78, T79, X125, X126, X127, split12_out_aaaa(T72, .(T73, T74), T78, T79)) → U5_AAAAAAAA(T72, T73, T74, T78, T79, X125, X126, X127, ms38_in_aa(T78, X125))
U4_AAAAAAAA(T72, T73, T74, T78, T79, X125, X126, X127, split12_out_aaaa(T72, .(T73, T74), T78, T79)) → MS38_IN_AA(T78, X125)
MS38_IN_AA(.(T99, .(T100, T101)), X172) → U13_AA(T99, T100, T101, X172, p34_in_aaaaaaaa(T99, T100, T101, X168, X169, X170, X171, X172))
MS38_IN_AA(.(T99, .(T100, T101)), X172) → P34_IN_AAAAAAAA(T99, T100, T101, X168, X169, X170, X171, X172)
P34_IN_AAAAAAAA(T72, T73, T74, T78, T84, T83, X126, X127) → U6_AAAAAAAA(T72, T73, T74, T78, T84, T83, X126, X127, split12_in_aaaa(T72, .(T73, T74), T78, T84))
U6_AAAAAAAA(T72, T73, T74, T78, T84, T83, X126, X127, split12_out_aaaa(T72, .(T73, T74), T78, T84)) → U7_AAAAAAAA(T72, T73, T74, T78, T84, T83, X126, X127, ms38_in_aa(T78, T83))
U6_AAAAAAAA(T72, T73, T74, T78, T84, T83, X126, X127, split12_out_aaaa(T72, .(T73, T74), T78, T84)) → MS38_IN_AA(T78, T83)
U7_AAAAAAAA(T72, T73, T74, T78, T84, T83, X126, X127, ms38_out_aa(T78, T83)) → U8_AAAAAAAA(T72, T73, T74, T78, T84, T83, X126, X127, ms38_in_aa(T84, X126))
U7_AAAAAAAA(T72, T73, T74, T78, T84, T83, X126, X127, ms38_out_aa(T78, T83)) → MS38_IN_AA(T84, X126)
P34_IN_AAAAAAAA(T72, T73, T74, T78, T84, T106, T105, X127) → U9_AAAAAAAA(T72, T73, T74, T78, T84, T106, T105, X127, split12_in_aaaa(T72, .(T73, T74), T78, T84))
U9_AAAAAAAA(T72, T73, T74, T78, T84, T106, T105, X127, split12_out_aaaa(T72, .(T73, T74), T78, T84)) → U10_AAAAAAAA(T72, T73, T74, T78, T84, T106, T105, X127, ms38_in_aa(T78, T106))
U9_AAAAAAAA(T72, T73, T74, T78, T84, T106, T105, X127, split12_out_aaaa(T72, .(T73, T74), T78, T84)) → MS38_IN_AA(T78, T106)
U10_AAAAAAAA(T72, T73, T74, T78, T84, T106, T105, X127, ms38_out_aa(T78, T106)) → U11_AAAAAAAA(T72, T73, T74, T78, T84, T106, T105, X127, ms38_in_aa(T84, T105))
U10_AAAAAAAA(T72, T73, T74, T78, T84, T106, T105, X127, ms38_out_aa(T78, T106)) → MS38_IN_AA(T84, T105)
U11_AAAAAAAA(T72, T73, T74, T78, T84, T106, T105, X127, ms38_out_aa(T84, T105)) → U12_AAAAAAAA(T72, T73, T74, T78, T84, T106, T105, X127, merge54_in_aaa(T106, T105, X127))
U11_AAAAAAAA(T72, T73, T74, T78, T84, T106, T105, X127, ms38_out_aa(T84, T105)) → MERGE54_IN_AAA(T106, T105, X127)
MERGE54_IN_AAA(.(T139, T141), .(T140, T142), .(T139, X226)) → U14_AAA(T139, T141, T140, T142, X226, less70_in_aa(T139, T140))
MERGE54_IN_AAA(.(T139, T141), .(T140, T142), .(T139, X226)) → LESS70_IN_AA(T139, T140)
LESS70_IN_AA(s(T161), T162) → U22_AA(T161, T162, less78_in_aa(T161, T162))
LESS70_IN_AA(s(T161), T162) → LESS78_IN_AA(T161, T162)
LESS78_IN_AA(s(T176), s(T177)) → U20_AA(T176, T177, less78_in_aa(T176, T177))
LESS78_IN_AA(s(T176), s(T177)) → LESS78_IN_AA(T176, T177)
MERGE54_IN_AAA(.(T139, T145), .(T146, T147), .(T139, X226)) → U15_AAA(T139, T145, T146, T147, X226, less70_in_aa(T139, T146))
U15_AAA(T139, T145, T146, T147, X226, less70_out_aa(T139, T146)) → U16_AAA(T139, T145, T146, T147, X226, merge54_in_aaa(T145, .(T146, T147), X226))
U15_AAA(T139, T145, T146, T147, X226, less70_out_aa(T139, T146)) → MERGE54_IN_AAA(T145, .(T146, T147), X226)
MERGE54_IN_AAA(.(T197, T199), .(T196, T198), .(T196, X287)) → U17_AAA(T197, T199, T196, T198, X287, less78_in_aa(T196, T197))
MERGE54_IN_AAA(.(T197, T199), .(T196, T198), .(T196, X287)) → LESS78_IN_AA(T196, T197)
MERGE54_IN_AAA(.(T202, T203), .(T196, T204), .(T196, X287)) → U18_AAA(T202, T203, T196, T204, X287, less78_in_aa(T196, T202))
U18_AAA(T202, T203, T196, T204, X287, less78_out_aa(T196, T202)) → U19_AAA(T202, T203, T196, T204, X287, merge54_in_aaa(.(T202, T203), T204, X287))
U18_AAA(T202, T203, T196, T204, X287, less78_out_aa(T196, T202)) → MERGE54_IN_AAA(.(T202, T203), T204, X287)
MS1_IN_AG(.(T34, .(T27, T28)), []) → U38_AG(T34, T27, T28, split12_in_aaaa(T27, T28, T55, T33))
U38_AG(T34, T27, T28, split12_out_aaaa(T27, T28, T55, T33)) → U39_AG(T34, T27, T28, T55, ms25_in_aaa(T34, T33, T54))
U38_AG(T34, T27, T28, split12_out_aaaa(T27, T28, T55, T33)) → MS25_IN_AAA(T34, T33, T54)
U39_AG(T34, T27, T28, T55, ms25_out_aaa(T34, T33, T54)) → U40_AG(T34, T27, T28, ms38_in_aa(T55, X14))
U39_AG(T34, T27, T28, T55, ms25_out_aaa(T34, T33, T54)) → MS38_IN_AA(T55, X14)
U38_AG(T34, T27, T28, split12_out_aaaa(T27, T28, T55, T33)) → U41_AG(T34, T27, T28, T55, ms25_in_aaa(T34, T33, T212))
U41_AG(T34, T27, T28, T55, ms25_out_aaa(T34, T33, T212)) → U42_AG(T34, T27, T28, T212, ms38_in_aa(T55, T211))
U41_AG(T34, T27, T28, T55, ms25_out_aaa(T34, T33, T212)) → MS38_IN_AA(T55, T211)
U42_AG(T34, T27, T28, T212, ms38_out_aa(T55, T211)) → U43_AG(T34, T27, T28, merge93_in_aa(T212, T211))
U42_AG(T34, T27, T28, T212, ms38_out_aa(T55, T211)) → MERGE93_IN_AA(T212, T211)
MS1_IN_AG(.(T262, .(T260, T261)), .(T242, [])) → U44_AG(T262, T260, T261, T242, split12_in_aaaa(T260, T261, X367, X366))
MS1_IN_AG(.(T262, .(T260, T261)), .(T242, [])) → SPLIT12_IN_AAAA(T260, T261, X367, X366)
MS1_IN_AG(.(T267, .(T260, T261)), .(T242, [])) → U45_AG(T267, T260, T261, T242, split12_in_aaaa(T260, T261, T265, T266))
U45_AG(T267, T260, T261, T242, split12_out_aaaa(T260, T261, T265, T266)) → U46_AG(T267, T260, T261, T242, ms25_in_aaa(T267, T266, X338))
U45_AG(T267, T260, T261, T242, split12_out_aaaa(T260, T261, T265, T266)) → MS25_IN_AAA(T267, T266, X338)
MS1_IN_AG(.(T267, .(T260, T261)), .(T242, [])) → U47_AG(T267, T260, T261, T242, split12_in_aaaa(T260, T261, T273, T266))
U47_AG(T267, T260, T261, T242, split12_out_aaaa(T260, T261, T273, T266)) → U48_AG(T267, T260, T261, T242, T273, ms25_in_aaa(T267, T266, T272))
U47_AG(T267, T260, T261, T242, split12_out_aaaa(T260, T261, T273, T266)) → MS25_IN_AAA(T267, T266, T272)
U48_AG(T267, T260, T261, T242, T273, ms25_out_aaa(T267, T266, T272)) → U49_AG(T267, T260, T261, T242, ms38_in_aa(T273, X339))
U48_AG(T267, T260, T261, T242, T273, ms25_out_aaa(T267, T266, T272)) → MS38_IN_AA(T273, X339)
MS1_IN_AG(.(T267, .(T260, T261)), .(T291, [])) → U50_AG(T267, T260, T261, T291, split12_in_aaaa(T260, T261, T273, T266))
U50_AG(T267, T260, T261, T291, split12_out_aaaa(T260, T261, T273, T266)) → U51_AG(T267, T260, T261, T291, T273, ms25_in_aag(T267, T266, []))
U50_AG(T267, T260, T261, T291, split12_out_aaaa(T260, T261, T273, T266)) → MS25_IN_AAG(T267, T266, [])
MS25_IN_AAG(T72, .(T73, T74), X127) → U21_AAG(T72, T73, T74, X127, p34_in_aaaaaaag(T72, T73, T74, X123, X124, X125, X126, X127))
MS25_IN_AAG(T72, .(T73, T74), X127) → P34_IN_AAAAAAAG(T72, T73, T74, X123, X124, X125, X126, X127)
P34_IN_AAAAAAAG(T72, T73, T74, X123, X124, X125, X126, X127) → U3_AAAAAAAG(T72, T73, T74, X123, X124, X125, X126, X127, split12_in_aaaa(T72, .(T73, T74), X123, X124))
P34_IN_AAAAAAAG(T72, T73, T74, X123, X124, X125, X126, X127) → SPLIT12_IN_AAAA(T72, .(T73, T74), X123, X124)
P34_IN_AAAAAAAG(T72, T73, T74, T78, T79, X125, X126, X127) → U4_AAAAAAAG(T72, T73, T74, T78, T79, X125, X126, X127, split12_in_aaaa(T72, .(T73, T74), T78, T79))
U4_AAAAAAAG(T72, T73, T74, T78, T79, X125, X126, X127, split12_out_aaaa(T72, .(T73, T74), T78, T79)) → U5_AAAAAAAG(T72, T73, T74, T78, T79, X125, X126, X127, ms38_in_aa(T78, X125))
U4_AAAAAAAG(T72, T73, T74, T78, T79, X125, X126, X127, split12_out_aaaa(T72, .(T73, T74), T78, T79)) → MS38_IN_AA(T78, X125)
P34_IN_AAAAAAAG(T72, T73, T74, T78, T84, T83, X126, X127) → U6_AAAAAAAG(T72, T73, T74, T78, T84, T83, X126, X127, split12_in_aaaa(T72, .(T73, T74), T78, T84))
U6_AAAAAAAG(T72, T73, T74, T78, T84, T83, X126, X127, split12_out_aaaa(T72, .(T73, T74), T78, T84)) → U7_AAAAAAAG(T72, T73, T74, T78, T84, T83, X126, X127, ms38_in_aa(T78, T83))
U6_AAAAAAAG(T72, T73, T74, T78, T84, T83, X126, X127, split12_out_aaaa(T72, .(T73, T74), T78, T84)) → MS38_IN_AA(T78, T83)
U7_AAAAAAAG(T72, T73, T74, T78, T84, T83, X126, X127, ms38_out_aa(T78, T83)) → U8_AAAAAAAG(T72, T73, T74, T78, T84, T83, X126, X127, ms38_in_aa(T84, X126))
U7_AAAAAAAG(T72, T73, T74, T78, T84, T83, X126, X127, ms38_out_aa(T78, T83)) → MS38_IN_AA(T84, X126)
P34_IN_AAAAAAAG(T72, T73, T74, T78, T84, T106, T105, X127) → U9_AAAAAAAG(T72, T73, T74, T78, T84, T106, T105, X127, split12_in_aaaa(T72, .(T73, T74), T78, T84))
U9_AAAAAAAG(T72, T73, T74, T78, T84, T106, T105, X127, split12_out_aaaa(T72, .(T73, T74), T78, T84)) → U10_AAAAAAAG(T72, T73, T74, T78, T84, T106, T105, X127, ms38_in_aa(T78, T106))
U9_AAAAAAAG(T72, T73, T74, T78, T84, T106, T105, X127, split12_out_aaaa(T72, .(T73, T74), T78, T84)) → MS38_IN_AA(T78, T106)
U10_AAAAAAAG(T72, T73, T74, T78, T84, T106, T105, X127, ms38_out_aa(T78, T106)) → U11_AAAAAAAG(T72, T73, T74, T78, T84, T106, T105, X127, ms38_in_aa(T84, T105))
U10_AAAAAAAG(T72, T73, T74, T78, T84, T106, T105, X127, ms38_out_aa(T78, T106)) → MS38_IN_AA(T84, T105)
U11_AAAAAAAG(T72, T73, T74, T78, T84, T106, T105, X127, ms38_out_aa(T84, T105)) → U12_AAAAAAAG(T72, T73, T74, T78, T84, T106, T105, X127, merge54_in_aag(T106, T105, X127))
U11_AAAAAAAG(T72, T73, T74, T78, T84, T106, T105, X127, ms38_out_aa(T84, T105)) → MERGE54_IN_AAG(T106, T105, X127)
MERGE54_IN_AAG(.(T139, T141), .(T140, T142), .(T139, X226)) → U14_AAG(T139, T141, T140, T142, X226, less70_in_ga(T139, T140))
MERGE54_IN_AAG(.(T139, T141), .(T140, T142), .(T139, X226)) → LESS70_IN_GA(T139, T140)
LESS70_IN_GA(s(T161), T162) → U22_GA(T161, T162, less78_in_ga(T161, T162))
LESS70_IN_GA(s(T161), T162) → LESS78_IN_GA(T161, T162)
LESS78_IN_GA(s(T176), s(T177)) → U20_GA(T176, T177, less78_in_ga(T176, T177))
LESS78_IN_GA(s(T176), s(T177)) → LESS78_IN_GA(T176, T177)
MERGE54_IN_AAG(.(T139, T145), .(T146, T147), .(T139, X226)) → U15_AAG(T139, T145, T146, T147, X226, less70_in_ga(T139, T146))
U15_AAG(T139, T145, T146, T147, X226, less70_out_ga(T139, T146)) → U16_AAG(T139, T145, T146, T147, X226, merge54_in_aag(T145, .(T146, T147), X226))
U15_AAG(T139, T145, T146, T147, X226, less70_out_ga(T139, T146)) → MERGE54_IN_AAG(T145, .(T146, T147), X226)
MERGE54_IN_AAG(.(T197, T199), .(T196, T198), .(T196, X287)) → U17_AAG(T197, T199, T196, T198, X287, less78_in_ga(T196, T197))
MERGE54_IN_AAG(.(T197, T199), .(T196, T198), .(T196, X287)) → LESS78_IN_GA(T196, T197)
MERGE54_IN_AAG(.(T202, T203), .(T196, T204), .(T196, X287)) → U18_AAG(T202, T203, T196, T204, X287, less78_in_ga(T196, T202))
U18_AAG(T202, T203, T196, T204, X287, less78_out_ga(T196, T202)) → U19_AAG(T202, T203, T196, T204, X287, merge54_in_aag(.(T202, T203), T204, X287))
U18_AAG(T202, T203, T196, T204, X287, less78_out_ga(T196, T202)) → MERGE54_IN_AAG(.(T202, T203), T204, X287)
U51_AG(T267, T260, T261, T291, T273, ms25_out_aag(T267, T266, [])) → U52_AG(T267, T260, T261, T291, ms38_in_ag(T273, .(T291, [])))
U51_AG(T267, T260, T261, T291, T273, ms25_out_aag(T267, T266, [])) → MS38_IN_AG(T273, .(T291, []))
MS38_IN_AG(.(T99, .(T100, T101)), X172) → U13_AG(T99, T100, T101, X172, p34_in_aaaaaaag(T99, T100, T101, X168, X169, X170, X171, X172))
MS38_IN_AG(.(T99, .(T100, T101)), X172) → P34_IN_AAAAAAAG(T99, T100, T101, X168, X169, X170, X171, X172)
MS1_IN_AG(.(T267, .(T260, T261)), .(T301, [])) → U53_AG(T267, T260, T261, T301, split12_in_aaaa(T260, T261, T273, T266))
U53_AG(T267, T260, T261, T301, split12_out_aaaa(T260, T261, T273, T266)) → U54_AG(T267, T260, T261, T301, T273, ms25_in_aag(T267, T266, .(T301, [])))
U53_AG(T267, T260, T261, T301, split12_out_aaaa(T260, T261, T273, T266)) → MS25_IN_AAG(T267, T266, .(T301, []))
U54_AG(T267, T260, T261, T301, T273, ms25_out_aag(T267, T266, .(T301, []))) → U55_AG(T267, T260, T261, T301, ms38_in_ag(T273, []))
U54_AG(T267, T260, T261, T301, T273, ms25_out_aag(T267, T266, .(T301, []))) → MS38_IN_AG(T273, [])
MS1_IN_AG(.(T267, .(T260, T261)), .(T318, [])) → U56_AG(T267, T260, T261, T318, split12_in_aaaa(T260, T261, T273, T266))
U56_AG(T267, T260, T261, T318, split12_out_aaaa(T260, T261, T273, T266)) → U57_AG(T267, T260, T261, T318, T273, ms25_in_aaa(T267, T266, .(T318, T323)))
U56_AG(T267, T260, T261, T318, split12_out_aaaa(T260, T261, T273, T266)) → MS25_IN_AAA(T267, T266, .(T318, T323))
U57_AG(T267, T260, T261, T318, T273, ms25_out_aaa(T267, T266, .(T318, T323))) → U58_AG(T267, T260, T261, T318, ms38_in_aa(T273, .(T322, T324)))
U57_AG(T267, T260, T261, T318, T273, ms25_out_aaa(T267, T266, .(T318, T323))) → MS38_IN_AA(T273, .(T322, T324))
U58_AG(T267, T260, T261, T318, ms38_out_aa(T273, .(T322, T324))) → U59_AG(T267, T260, T261, T318, less70_in_ga(T318, T322))
U58_AG(T267, T260, T261, T318, ms38_out_aa(T273, .(T322, T324))) → LESS70_IN_GA(T318, T322)
U56_AG(T267, T260, T261, T318, split12_out_aaaa(T260, T261, T273, T266)) → U60_AG(T267, T260, T261, T318, T273, ms25_in_aaa(T267, T266, .(T318, T327)))
U60_AG(T267, T260, T261, T318, T273, ms25_out_aaa(T267, T266, .(T318, T327))) → U61_AG(T267, T260, T261, T318, T327, ms38_in_aa(T273, .(T328, T329)))
U60_AG(T267, T260, T261, T318, T273, ms25_out_aaa(T267, T266, .(T318, T327))) → MS38_IN_AA(T273, .(T328, T329))
U61_AG(T267, T260, T261, T318, T327, ms38_out_aa(T273, .(T328, T329))) → U62_AG(T267, T260, T261, T318, T327, T328, T329, less70_in_ga(T318, T328))
U61_AG(T267, T260, T261, T318, T327, ms38_out_aa(T273, .(T328, T329))) → LESS70_IN_GA(T318, T328)
U62_AG(T267, T260, T261, T318, T327, T328, T329, less70_out_ga(T318, T328)) → U63_AG(T267, T260, T261, T318, merge93_in_aa(T327, .(T328, T329)))
U62_AG(T267, T260, T261, T318, T327, T328, T329, less70_out_ga(T318, T328)) → MERGE93_IN_AA(T327, .(T328, T329))
MS1_IN_AG(.(T267, .(T260, T261)), .(T356, [])) → U64_AG(T267, T260, T261, T356, split12_in_aaaa(T260, T261, T273, T266))
U64_AG(T267, T260, T261, T356, split12_out_aaaa(T260, T261, T273, T266)) → U65_AG(T267, T260, T261, T356, T273, ms25_in_aaa(T267, T266, .(T358, T360)))
U64_AG(T267, T260, T261, T356, split12_out_aaaa(T260, T261, T273, T266)) → MS25_IN_AAA(T267, T266, .(T358, T360))
U65_AG(T267, T260, T261, T356, T273, ms25_out_aaa(T267, T266, .(T358, T360))) → U66_AG(T267, T260, T261, T356, T358, ms38_in_aa(T273, .(T356, T359)))
U65_AG(T267, T260, T261, T356, T273, ms25_out_aaa(T267, T266, .(T358, T360))) → MS38_IN_AA(T273, .(T356, T359))
U66_AG(T267, T260, T261, T356, T358, ms38_out_aa(T273, .(T356, T359))) → U67_AG(T267, T260, T261, T356, less78_in_ga(T356, T358))
U66_AG(T267, T260, T261, T356, T358, ms38_out_aa(T273, .(T356, T359))) → LESS78_IN_GA(T356, T358)
U64_AG(T267, T260, T261, T356, split12_out_aaaa(T260, T261, T273, T266)) → U68_AG(T267, T260, T261, T356, T273, ms25_in_aaa(T267, T266, .(T363, T364)))
U68_AG(T267, T260, T261, T356, T273, ms25_out_aaa(T267, T266, .(T363, T364))) → U69_AG(T267, T260, T261, T356, T363, T364, ms38_in_aa(T273, .(T356, T365)))
U68_AG(T267, T260, T261, T356, T273, ms25_out_aaa(T267, T266, .(T363, T364))) → MS38_IN_AA(T273, .(T356, T365))
U69_AG(T267, T260, T261, T356, T363, T364, ms38_out_aa(T273, .(T356, T365))) → U70_AG(T267, T260, T261, T356, T363, T364, T365, less78_in_ga(T356, T363))
U69_AG(T267, T260, T261, T356, T363, T364, ms38_out_aa(T273, .(T356, T365))) → LESS78_IN_GA(T356, T363)
U70_AG(T267, T260, T261, T356, T363, T364, T365, less78_out_ga(T356, T363)) → U71_AG(T267, T260, T261, T356, merge93_in_aa(.(T363, T364), T365))
U70_AG(T267, T260, T261, T356, T363, T364, T365, less78_out_ga(T356, T363)) → MERGE93_IN_AA(.(T363, T364), T365)
MS1_IN_AG(.(T407, .(T405, T406)), T387) → U72_AG(T407, T405, T406, T387, split12_in_aaaa(T405, T406, X523, X522))
MS1_IN_AG(.(T407, .(T405, T406)), T387) → SPLIT12_IN_AAAA(T405, T406, X523, X522)
MS1_IN_AG(.(T412, .(T405, T406)), T387) → U73_AG(T412, T405, T406, T387, split12_in_aaaa(T405, T406, T410, T411))
U73_AG(T412, T405, T406, T387, split12_out_aaaa(T405, T406, T410, T411)) → U74_AG(T412, T405, T406, T387, ms25_in_aaa(T412, T411, X494))
U73_AG(T412, T405, T406, T387, split12_out_aaaa(T405, T406, T410, T411)) → MS25_IN_AAA(T412, T411, X494)
MS1_IN_AG(.(T412, .(T405, T406)), T387) → U75_AG(T412, T405, T406, T387, split12_in_aaaa(T405, T406, T420, T411))
U75_AG(T412, T405, T406, T387, split12_out_aaaa(T405, T406, T420, T411)) → U76_AG(T412, T405, T406, T387, T420, ms25_in_aaa(T412, T411, T419))
U75_AG(T412, T405, T406, T387, split12_out_aaaa(T405, T406, T420, T411)) → MS25_IN_AAA(T412, T411, T419)
U76_AG(T412, T405, T406, T387, T420, ms25_out_aaa(T412, T411, T419)) → U77_AG(T412, T405, T406, T387, ms38_in_aa(T420, X495))
U76_AG(T412, T405, T406, T387, T420, ms25_out_aaa(T412, T411, T419)) → MS38_IN_AA(T420, X495)
MS1_IN_AG(.(T412, .(T405, T406)), T435) → U78_AG(T412, T405, T406, T435, split12_in_aaaa(T405, T406, T420, T411))
U78_AG(T412, T405, T406, T435, split12_out_aaaa(T405, T406, T420, T411)) → U79_AG(T412, T405, T406, T435, T420, ms25_in_aag(T412, T411, []))
U78_AG(T412, T405, T406, T435, split12_out_aaaa(T405, T406, T420, T411)) → MS25_IN_AAG(T412, T411, [])
U79_AG(T412, T405, T406, T435, T420, ms25_out_aag(T412, T411, [])) → U80_AG(T412, T405, T406, T435, ms38_in_ag(T420, T435))
U79_AG(T412, T405, T406, T435, T420, ms25_out_aag(T412, T411, [])) → MS38_IN_AG(T420, T435)
MS1_IN_AG(.(T412, .(T405, T406)), T440) → U81_AG(T412, T405, T406, T440, split12_in_aaaa(T405, T406, T420, T411))
U81_AG(T412, T405, T406, T440, split12_out_aaaa(T405, T406, T420, T411)) → U82_AG(T412, T405, T406, T440, T420, ms25_in_aag(T412, T411, T440))
U81_AG(T412, T405, T406, T440, split12_out_aaaa(T405, T406, T420, T411)) → MS25_IN_AAG(T412, T411, T440)
U82_AG(T412, T405, T406, T440, T420, ms25_out_aag(T412, T411, T440)) → U83_AG(T412, T405, T406, T440, ms38_in_ag(T420, []))
U82_AG(T412, T405, T406, T440, T420, ms25_out_aag(T412, T411, T440)) → MS38_IN_AG(T420, [])
MS1_IN_AG(.(T412, .(T405, T406)), .(T461, T465)) → U84_AG(T412, T405, T406, T461, T465, split12_in_aaaa(T405, T406, T420, T411))
MS1_IN_AG(.(T412, .(T405, T406)), .(T461, T465)) → SPLIT12_IN_AAAA(T405, T406, T420, T411)
U84_AG(T412, T405, T406, T461, T465, split12_out_aaaa(T405, T406, T420, T411)) → U85_AG(T412, T405, T406, T461, T465, T420, ms25_in_aaa(T412, T411, .(T461, T467)))
U84_AG(T412, T405, T406, T461, T465, split12_out_aaaa(T405, T406, T420, T411)) → MS25_IN_AAA(T412, T411, .(T461, T467))
U85_AG(T412, T405, T406, T461, T465, T420, ms25_out_aaa(T412, T411, .(T461, T467))) → U86_AG(T412, T405, T406, T461, T465, ms38_in_aa(T420, .(T466, T468)))
U85_AG(T412, T405, T406, T461, T465, T420, ms25_out_aaa(T412, T411, .(T461, T467))) → MS38_IN_AA(T420, .(T466, T468))
U86_AG(T412, T405, T406, T461, T465, ms38_out_aa(T420, .(T466, T468))) → U87_AG(T412, T405, T406, T461, T465, less70_in_ga(T461, T466))
U86_AG(T412, T405, T406, T461, T465, ms38_out_aa(T420, .(T466, T468))) → LESS70_IN_GA(T461, T466)
MS1_IN_AG(.(T412, .(T405, T406)), .(T461, .(T490, T491))) → U88_AG(T412, T405, T406, T461, T490, T491, split12_in_aaaa(T405, T406, T420, T411))
MS1_IN_AG(.(T412, .(T405, T406)), .(T461, .(T490, T491))) → SPLIT12_IN_AAAA(T405, T406, T420, T411)
U88_AG(T412, T405, T406, T461, T490, T491, split12_out_aaaa(T405, T406, T420, T411)) → U89_AG(T412, T405, T406, T461, T490, T491, T420, ms25_in_aag(T412, T411, .(T461, [])))
U88_AG(T412, T405, T406, T461, T490, T491, split12_out_aaaa(T405, T406, T420, T411)) → MS25_IN_AAG(T412, T411, .(T461, []))
U89_AG(T412, T405, T406, T461, T490, T491, T420, ms25_out_aag(T412, T411, .(T461, []))) → U90_AG(T412, T405, T406, T461, T490, T491, ms38_in_ag(T420, .(T490, T491)))
U89_AG(T412, T405, T406, T461, T490, T491, T420, ms25_out_aag(T412, T411, .(T461, []))) → MS38_IN_AG(T420, .(T490, T491))
U90_AG(T412, T405, T406, T461, T490, T491, ms38_out_ag(T420, .(T490, T491))) → U91_AG(T412, T405, T406, T461, T490, T491, less70_in_gg(T461, T490))
U90_AG(T412, T405, T406, T461, T490, T491, ms38_out_ag(T420, .(T490, T491))) → LESS70_IN_GG(T461, T490)
LESS70_IN_GG(s(T161), T162) → U22_GG(T161, T162, less78_in_gg(T161, T162))
LESS70_IN_GG(s(T161), T162) → LESS78_IN_GG(T161, T162)
LESS78_IN_GG(s(T176), s(T177)) → U20_GG(T176, T177, less78_in_gg(T176, T177))
LESS78_IN_GG(s(T176), s(T177)) → LESS78_IN_GG(T176, T177)
MS1_IN_AG(.(T412, .(T405, T406)), .(T461, .(T513, T517))) → U92_AG(T412, T405, T406, T461, T513, T517, split12_in_aaaa(T405, T406, T420, T411))
U92_AG(T412, T405, T406, T461, T513, T517, split12_out_aaaa(T405, T406, T420, T411)) → U93_AG(T412, T405, T406, T461, T513, T517, T420, ms25_in_aaa(T412, T411, .(T461, .(T513, T519))))
U92_AG(T412, T405, T406, T461, T513, T517, split12_out_aaaa(T405, T406, T420, T411)) → MS25_IN_AAA(T412, T411, .(T461, .(T513, T519)))
U93_AG(T412, T405, T406, T461, T513, T517, T420, ms25_out_aaa(T412, T411, .(T461, .(T513, T519)))) → U94_AG(T412, T405, T406, T461, T513, T517, T519, ms38_in_aa(T420, .(T518, T520)))
U93_AG(T412, T405, T406, T461, T513, T517, T420, ms25_out_aaa(T412, T411, .(T461, .(T513, T519)))) → MS38_IN_AA(T420, .(T518, T520))
U94_AG(T412, T405, T406, T461, T513, T517, T519, ms38_out_aa(T420, .(T518, T520))) → U95_AG(T412, T405, T406, T461, T513, T517, T519, T518, T520, less70_in_ga(T461, T518))
U94_AG(T412, T405, T406, T461, T513, T517, T519, ms38_out_aa(T420, .(T518, T520))) → LESS70_IN_GA(T461, T518)
U95_AG(T412, T405, T406, T461, T513, T517, T519, T518, T520, less70_out_ga(T461, T518)) → U96_AG(T412, T405, T406, T461, T513, T517, p179_in_gaaag(T513, T518, T519, T520, T517))
U95_AG(T412, T405, T406, T461, T513, T517, T519, T518, T520, less70_out_ga(T461, T518)) → P179_IN_GAAAG(T513, T518, T519, T520, T517)
P179_IN_GAAAG(T513, T518, T519, T520, T517) → U23_GAAAG(T513, T518, T519, T520, T517, less70_in_ga(T513, T518))
P179_IN_GAAAG(T513, T518, T519, T520, T517) → LESS70_IN_GA(T513, T518)
P179_IN_GAAAG(T513, T540, [], T541, .(T540, T541)) → U24_GAAAG(T513, T540, T541, less70_in_gg(T513, T540))
P179_IN_GAAAG(T513, T540, [], T541, .(T540, T541)) → LESS70_IN_GG(T513, T540)
P179_IN_GAAAG(T513, T568, .(T563, T569), T570, .(T563, T567)) → U25_GAAAG(T513, T568, T563, T569, T570, T567, less70_in_ga(T513, T568))
P179_IN_GAAAG(T513, T568, .(T563, T569), T570, .(T563, T567)) → LESS70_IN_GA(T513, T568)
U25_GAAAG(T513, T568, T563, T569, T570, T567, less70_out_ga(T513, T568)) → U26_GAAAG(T513, T568, T563, T569, T570, T567, p179_in_gaaag(T563, T568, T569, T570, T567))
U25_GAAAG(T513, T568, T563, T569, T570, T567, less70_out_ga(T513, T568)) → P179_IN_GAAAG(T563, T568, T569, T570, T567)
P179_IN_GAAAG(T513, T585, .(T588, T590), T589, .(T585, T587)) → U27_GAAAG(T513, T585, T588, T590, T589, T587, less70_in_gg(T513, T585))
P179_IN_GAAAG(T513, T585, .(T588, T590), T589, .(T585, T587)) → LESS70_IN_GG(T513, T585)
U27_GAAAG(T513, T585, T588, T590, T589, T587, less70_out_gg(T513, T585)) → U28_GAAAG(T513, T585, T588, T590, T589, T587, p194_in_gaaag(T585, T588, T590, T589, T587))
U27_GAAAG(T513, T585, T588, T590, T589, T587, less70_out_gg(T513, T585)) → P194_IN_GAAAG(T585, T588, T590, T589, T587)
P194_IN_GAAAG(T585, T588, T590, T589, T587) → U29_GAAAG(T585, T588, T590, T589, T587, less78_in_ga(T585, T588))
P194_IN_GAAAG(T585, T588, T590, T589, T587) → LESS78_IN_GA(T585, T588)
P194_IN_GAAAG(T585, T610, T611, [], .(T610, T611)) → U30_GAAAG(T585, T610, T611, less78_in_gg(T585, T610))
P194_IN_GAAAG(T585, T610, T611, [], .(T610, T611)) → LESS78_IN_GG(T585, T610)
P194_IN_GAAAG(T585, T632, T638, .(T637, T639), .(T632, T636)) → U31_GAAAG(T585, T632, T638, T637, T639, T636, less78_in_gg(T585, T632))
P194_IN_GAAAG(T585, T632, T638, .(T637, T639), .(T632, T636)) → LESS78_IN_GG(T585, T632)
U31_GAAAG(T585, T632, T638, T637, T639, T636, less78_out_gg(T585, T632)) → U32_GAAAG(T585, T632, T638, T637, T639, T636, p179_in_gaaag(T632, T637, T638, T639, T636))
U31_GAAAG(T585, T632, T638, T637, T639, T636, less78_out_gg(T585, T632)) → P179_IN_GAAAG(T632, T637, T638, T639, T636)
P194_IN_GAAAG(T585, T657, T659, .(T654, T658), .(T654, T656)) → U33_GAAAG(T585, T657, T659, T654, T658, T656, less78_in_ga(T585, T657))
P194_IN_GAAAG(T585, T657, T659, .(T654, T658), .(T654, T656)) → LESS78_IN_GA(T585, T657)
U33_GAAAG(T585, T657, T659, T654, T658, T656, less78_out_ga(T585, T657)) → U34_GAAAG(T585, T657, T659, T654, T658, T656, p194_in_gaaag(T654, T657, T659, T658, T656))
U33_GAAAG(T585, T657, T659, T654, T658, T656, less78_out_ga(T585, T657)) → P194_IN_GAAAG(T654, T657, T659, T658, T656)
MS1_IN_AG(.(T412, .(T405, T406)), .(T461, .(T674, T676))) → U97_AG(T412, T405, T406, T461, T674, T676, split12_in_aaaa(T405, T406, T420, T411))
U97_AG(T412, T405, T406, T461, T674, T676, split12_out_aaaa(T405, T406, T420, T411)) → U98_AG(T412, T405, T406, T461, T674, T676, T420, ms25_in_aaa(T412, T411, .(T461, .(T677, T679))))
U97_AG(T412, T405, T406, T461, T674, T676, split12_out_aaaa(T405, T406, T420, T411)) → MS25_IN_AAA(T412, T411, .(T461, .(T677, T679)))
U98_AG(T412, T405, T406, T461, T674, T676, T420, ms25_out_aaa(T412, T411, .(T461, .(T677, T679)))) → U99_AG(T412, T405, T406, T461, T674, T676, T677, T679, ms38_in_aa(T420, .(T674, T678)))
U98_AG(T412, T405, T406, T461, T674, T676, T420, ms25_out_aaa(T412, T411, .(T461, .(T677, T679)))) → MS38_IN_AA(T420, .(T674, T678))
U99_AG(T412, T405, T406, T461, T674, T676, T677, T679, ms38_out_aa(T420, .(T674, T678))) → U100_AG(T412, T405, T406, T461, T674, T676, T677, T679, T678, less70_in_gg(T461, T674))
U99_AG(T412, T405, T406, T461, T674, T676, T677, T679, ms38_out_aa(T420, .(T674, T678))) → LESS70_IN_GG(T461, T674)
U100_AG(T412, T405, T406, T461, T674, T676, T677, T679, T678, less70_out_gg(T461, T674)) → U101_AG(T412, T405, T406, T461, T674, T676, p194_in_gaaag(T674, T677, T679, T678, T676))
U100_AG(T412, T405, T406, T461, T674, T676, T677, T679, T678, less70_out_gg(T461, T674)) → P194_IN_GAAAG(T674, T677, T679, T678, T676)
MS1_IN_AG(.(T412, .(T405, T406)), .(T694, T696)) → U102_AG(T412, T405, T406, T694, T696, split12_in_aaaa(T405, T406, T420, T411))
U102_AG(T412, T405, T406, T694, T696, split12_out_aaaa(T405, T406, T420, T411)) → U103_AG(T412, T405, T406, T694, T696, T420, ms25_in_aaa(T412, T411, .(T697, T699)))
U102_AG(T412, T405, T406, T694, T696, split12_out_aaaa(T405, T406, T420, T411)) → MS25_IN_AAA(T412, T411, .(T697, T699))
U103_AG(T412, T405, T406, T694, T696, T420, ms25_out_aaa(T412, T411, .(T697, T699))) → U104_AG(T412, T405, T406, T694, T696, T697, T699, ms38_in_aa(T420, .(T694, T698)))
U103_AG(T412, T405, T406, T694, T696, T420, ms25_out_aaa(T412, T411, .(T697, T699))) → MS38_IN_AA(T420, .(T694, T698))
U104_AG(T412, T405, T406, T694, T696, T697, T699, ms38_out_aa(T420, .(T694, T698))) → U105_AG(T412, T405, T406, T694, T696, p194_in_gaaag(T694, T697, T699, T698, T696))
U104_AG(T412, T405, T406, T694, T696, T697, T699, ms38_out_aa(T420, .(T694, T698))) → P194_IN_GAAAG(T694, T697, T699, T698, T696)
ms1_in_ag([], []) → ms1_out_ag([], [])
ms1_in_ag(.(T29, .(T27, T28)), []) → U35_ag(T29, T27, T28, split12_in_aaaa(T27, T28, X42, X41))
split12_in_aaaa(T42, T44, .(T42, X71), X72) → U2_aaaa(T42, T44, X71, X72, split16_in_aaa(T44, X72, X71))
split16_in_aaa([], [], []) → split16_out_aaa([], [], [])
split16_in_aaa(.(T49, T51), .(T49, X89), X90) → U1_aaa(T49, T51, X89, X90, split16_in_aaa(T51, X90, X89))
U1_aaa(T49, T51, X89, X90, split16_out_aaa(T51, X90, X89)) → split16_out_aaa(.(T49, T51), .(T49, X89), X90)
U2_aaaa(T42, T44, X71, X72, split16_out_aaa(T44, X72, X71)) → split12_out_aaaa(T42, T44, .(T42, X71), X72)
U35_ag(T29, T27, T28, split12_out_aaaa(T27, T28, X42, X41)) → ms1_out_ag(.(T29, .(T27, T28)), [])
ms1_in_ag(.(T34, .(T27, T28)), []) → U36_ag(T34, T27, T28, split12_in_aaaa(T27, T28, T32, T33))
U36_ag(T34, T27, T28, split12_out_aaaa(T27, T28, T32, T33)) → U37_ag(T34, T27, T28, ms25_in_aaa(T34, T33, X13))
ms25_in_aaa(T62, [], .(T62, [])) → ms25_out_aaa(T62, [], .(T62, []))
ms25_in_aaa(T72, .(T73, T74), X127) → U21_aaa(T72, T73, T74, X127, p34_in_aaaaaaaa(T72, T73, T74, X123, X124, X125, X126, X127))
p34_in_aaaaaaaa(T72, T73, T74, X123, X124, X125, X126, X127) → U3_aaaaaaaa(T72, T73, T74, X123, X124, X125, X126, X127, split12_in_aaaa(T72, .(T73, T74), X123, X124))
U3_aaaaaaaa(T72, T73, T74, X123, X124, X125, X126, X127, split12_out_aaaa(T72, .(T73, T74), X123, X124)) → p34_out_aaaaaaaa(T72, T73, T74, X123, X124, X125, X126, X127)
p34_in_aaaaaaaa(T72, T73, T74, T78, T79, X125, X126, X127) → U4_aaaaaaaa(T72, T73, T74, T78, T79, X125, X126, X127, split12_in_aaaa(T72, .(T73, T74), T78, T79))
U4_aaaaaaaa(T72, T73, T74, T78, T79, X125, X126, X127, split12_out_aaaa(T72, .(T73, T74), T78, T79)) → U5_aaaaaaaa(T72, T73, T74, T78, T79, X125, X126, X127, ms38_in_aa(T78, X125))
ms38_in_aa([], []) → ms38_out_aa([], [])
ms38_in_aa(.(T89, []), .(T89, [])) → ms38_out_aa(.(T89, []), .(T89, []))
ms38_in_aa(.(T99, .(T100, T101)), X172) → U13_aa(T99, T100, T101, X172, p34_in_aaaaaaaa(T99, T100, T101, X168, X169, X170, X171, X172))
p34_in_aaaaaaaa(T72, T73, T74, T78, T84, T83, X126, X127) → U6_aaaaaaaa(T72, T73, T74, T78, T84, T83, X126, X127, split12_in_aaaa(T72, .(T73, T74), T78, T84))
U6_aaaaaaaa(T72, T73, T74, T78, T84, T83, X126, X127, split12_out_aaaa(T72, .(T73, T74), T78, T84)) → U7_aaaaaaaa(T72, T73, T74, T78, T84, T83, X126, X127, ms38_in_aa(T78, T83))
U7_aaaaaaaa(T72, T73, T74, T78, T84, T83, X126, X127, ms38_out_aa(T78, T83)) → U8_aaaaaaaa(T72, T73, T74, T78, T84, T83, X126, X127, ms38_in_aa(T84, X126))
U8_aaaaaaaa(T72, T73, T74, T78, T84, T83, X126, X127, ms38_out_aa(T84, X126)) → p34_out_aaaaaaaa(T72, T73, T74, T78, T84, T83, X126, X127)
p34_in_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127) → U9_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127, split12_in_aaaa(T72, .(T73, T74), T78, T84))
U9_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127, split12_out_aaaa(T72, .(T73, T74), T78, T84)) → U10_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127, ms38_in_aa(T78, T106))
U10_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127, ms38_out_aa(T78, T106)) → U11_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127, ms38_in_aa(T84, T105))
U11_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127, ms38_out_aa(T84, T105)) → U12_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127, merge54_in_aaa(T106, T105, X127))
merge54_in_aaa([], T113, T113) → merge54_out_aaa([], T113, T113)
merge54_in_aaa(T118, [], T118) → merge54_out_aaa(T118, [], T118)
merge54_in_aaa(.(T139, T141), .(T140, T142), .(T139, X226)) → U14_aaa(T139, T141, T140, T142, X226, less70_in_aa(T139, T140))
less70_in_aa(0, T154) → less70_out_aa(0, T154)
less70_in_aa(s(T161), T162) → U22_aa(T161, T162, less78_in_aa(T161, T162))
less78_in_aa(0, s(T169)) → less78_out_aa(0, s(T169))
less78_in_aa(s(T176), s(T177)) → U20_aa(T176, T177, less78_in_aa(T176, T177))
U20_aa(T176, T177, less78_out_aa(T176, T177)) → less78_out_aa(s(T176), s(T177))
U22_aa(T161, T162, less78_out_aa(T161, T162)) → less70_out_aa(s(T161), T162)
U14_aaa(T139, T141, T140, T142, X226, less70_out_aa(T139, T140)) → merge54_out_aaa(.(T139, T141), .(T140, T142), .(T139, X226))
merge54_in_aaa(.(T139, T145), .(T146, T147), .(T139, X226)) → U15_aaa(T139, T145, T146, T147, X226, less70_in_aa(T139, T146))
U15_aaa(T139, T145, T146, T147, X226, less70_out_aa(T139, T146)) → U16_aaa(T139, T145, T146, T147, X226, merge54_in_aaa(T145, .(T146, T147), X226))
merge54_in_aaa(.(T197, T199), .(T196, T198), .(T196, X287)) → U17_aaa(T197, T199, T196, T198, X287, less78_in_aa(T196, T197))
U17_aaa(T197, T199, T196, T198, X287, less78_out_aa(T196, T197)) → merge54_out_aaa(.(T197, T199), .(T196, T198), .(T196, X287))
merge54_in_aaa(.(T202, T203), .(T196, T204), .(T196, X287)) → U18_aaa(T202, T203, T196, T204, X287, less78_in_aa(T196, T202))
U18_aaa(T202, T203, T196, T204, X287, less78_out_aa(T196, T202)) → U19_aaa(T202, T203, T196, T204, X287, merge54_in_aaa(.(T202, T203), T204, X287))
U19_aaa(T202, T203, T196, T204, X287, merge54_out_aaa(.(T202, T203), T204, X287)) → merge54_out_aaa(.(T202, T203), .(T196, T204), .(T196, X287))
U16_aaa(T139, T145, T146, T147, X226, merge54_out_aaa(T145, .(T146, T147), X226)) → merge54_out_aaa(.(T139, T145), .(T146, T147), .(T139, X226))
U12_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127, merge54_out_aaa(T106, T105, X127)) → p34_out_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127)
U13_aa(T99, T100, T101, X172, p34_out_aaaaaaaa(T99, T100, T101, X168, X169, X170, X171, X172)) → ms38_out_aa(.(T99, .(T100, T101)), X172)
U5_aaaaaaaa(T72, T73, T74, T78, T79, X125, X126, X127, ms38_out_aa(T78, X125)) → p34_out_aaaaaaaa(T72, T73, T74, T78, T79, X125, X126, X127)
U21_aaa(T72, T73, T74, X127, p34_out_aaaaaaaa(T72, T73, T74, X123, X124, X125, X126, X127)) → ms25_out_aaa(T72, .(T73, T74), X127)
U37_ag(T34, T27, T28, ms25_out_aaa(T34, T33, X13)) → ms1_out_ag(.(T34, .(T27, T28)), [])
ms1_in_ag(.(T34, .(T27, T28)), []) → U38_ag(T34, T27, T28, split12_in_aaaa(T27, T28, T55, T33))
U38_ag(T34, T27, T28, split12_out_aaaa(T27, T28, T55, T33)) → U39_ag(T34, T27, T28, T55, ms25_in_aaa(T34, T33, T54))
U39_ag(T34, T27, T28, T55, ms25_out_aaa(T34, T33, T54)) → U40_ag(T34, T27, T28, ms38_in_aa(T55, X14))
U40_ag(T34, T27, T28, ms38_out_aa(T55, X14)) → ms1_out_ag(.(T34, .(T27, T28)), [])
U38_ag(T34, T27, T28, split12_out_aaaa(T27, T28, T55, T33)) → U41_ag(T34, T27, T28, T55, ms25_in_aaa(T34, T33, T212))
U41_ag(T34, T27, T28, T55, ms25_out_aaa(T34, T33, T212)) → U42_ag(T34, T27, T28, T212, ms38_in_aa(T55, T211))
U42_ag(T34, T27, T28, T212, ms38_out_aa(T55, T211)) → U43_ag(T34, T27, T28, merge93_in_aa(T212, T211))
merge93_in_aa([], []) → merge93_out_aa([], [])
U43_ag(T34, T27, T28, merge93_out_aa(T212, T211)) → ms1_out_ag(.(T34, .(T27, T28)), [])
ms1_in_ag(.(T234, []), .(T234, [])) → ms1_out_ag(.(T234, []), .(T234, []))
ms1_in_ag(.(T262, .(T260, T261)), .(T242, [])) → U44_ag(T262, T260, T261, T242, split12_in_aaaa(T260, T261, X367, X366))
U44_ag(T262, T260, T261, T242, split12_out_aaaa(T260, T261, X367, X366)) → ms1_out_ag(.(T262, .(T260, T261)), .(T242, []))
ms1_in_ag(.(T267, .(T260, T261)), .(T242, [])) → U45_ag(T267, T260, T261, T242, split12_in_aaaa(T260, T261, T265, T266))
U45_ag(T267, T260, T261, T242, split12_out_aaaa(T260, T261, T265, T266)) → U46_ag(T267, T260, T261, T242, ms25_in_aaa(T267, T266, X338))
U46_ag(T267, T260, T261, T242, ms25_out_aaa(T267, T266, X338)) → ms1_out_ag(.(T267, .(T260, T261)), .(T242, []))
ms1_in_ag(.(T267, .(T260, T261)), .(T242, [])) → U47_ag(T267, T260, T261, T242, split12_in_aaaa(T260, T261, T273, T266))
U47_ag(T267, T260, T261, T242, split12_out_aaaa(T260, T261, T273, T266)) → U48_ag(T267, T260, T261, T242, T273, ms25_in_aaa(T267, T266, T272))
U48_ag(T267, T260, T261, T242, T273, ms25_out_aaa(T267, T266, T272)) → U49_ag(T267, T260, T261, T242, ms38_in_aa(T273, X339))
U49_ag(T267, T260, T261, T242, ms38_out_aa(T273, X339)) → ms1_out_ag(.(T267, .(T260, T261)), .(T242, []))
ms1_in_ag(.(T267, .(T260, T261)), .(T291, [])) → U50_ag(T267, T260, T261, T291, split12_in_aaaa(T260, T261, T273, T266))
U50_ag(T267, T260, T261, T291, split12_out_aaaa(T260, T261, T273, T266)) → U51_ag(T267, T260, T261, T291, T273, ms25_in_aag(T267, T266, []))
ms25_in_aag(T62, [], .(T62, [])) → ms25_out_aag(T62, [], .(T62, []))
ms25_in_aag(T72, .(T73, T74), X127) → U21_aag(T72, T73, T74, X127, p34_in_aaaaaaag(T72, T73, T74, X123, X124, X125, X126, X127))
p34_in_aaaaaaag(T72, T73, T74, X123, X124, X125, X126, X127) → U3_aaaaaaag(T72, T73, T74, X123, X124, X125, X126, X127, split12_in_aaaa(T72, .(T73, T74), X123, X124))
U3_aaaaaaag(T72, T73, T74, X123, X124, X125, X126, X127, split12_out_aaaa(T72, .(T73, T74), X123, X124)) → p34_out_aaaaaaag(T72, T73, T74, X123, X124, X125, X126, X127)
p34_in_aaaaaaag(T72, T73, T74, T78, T79, X125, X126, X127) → U4_aaaaaaag(T72, T73, T74, T78, T79, X125, X126, X127, split12_in_aaaa(T72, .(T73, T74), T78, T79))
U4_aaaaaaag(T72, T73, T74, T78, T79, X125, X126, X127, split12_out_aaaa(T72, .(T73, T74), T78, T79)) → U5_aaaaaaag(T72, T73, T74, T78, T79, X125, X126, X127, ms38_in_aa(T78, X125))
U5_aaaaaaag(T72, T73, T74, T78, T79, X125, X126, X127, ms38_out_aa(T78, X125)) → p34_out_aaaaaaag(T72, T73, T74, T78, T79, X125, X126, X127)
p34_in_aaaaaaag(T72, T73, T74, T78, T84, T83, X126, X127) → U6_aaaaaaag(T72, T73, T74, T78, T84, T83, X126, X127, split12_in_aaaa(T72, .(T73, T74), T78, T84))
U6_aaaaaaag(T72, T73, T74, T78, T84, T83, X126, X127, split12_out_aaaa(T72, .(T73, T74), T78, T84)) → U7_aaaaaaag(T72, T73, T74, T78, T84, T83, X126, X127, ms38_in_aa(T78, T83))
U7_aaaaaaag(T72, T73, T74, T78, T84, T83, X126, X127, ms38_out_aa(T78, T83)) → U8_aaaaaaag(T72, T73, T74, T78, T84, T83, X126, X127, ms38_in_aa(T84, X126))
U8_aaaaaaag(T72, T73, T74, T78, T84, T83, X126, X127, ms38_out_aa(T84, X126)) → p34_out_aaaaaaag(T72, T73, T74, T78, T84, T83, X126, X127)
p34_in_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127) → U9_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127, split12_in_aaaa(T72, .(T73, T74), T78, T84))
U9_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127, split12_out_aaaa(T72, .(T73, T74), T78, T84)) → U10_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127, ms38_in_aa(T78, T106))
U10_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127, ms38_out_aa(T78, T106)) → U11_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127, ms38_in_aa(T84, T105))
U11_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127, ms38_out_aa(T84, T105)) → U12_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127, merge54_in_aag(T106, T105, X127))
merge54_in_aag([], T113, T113) → merge54_out_aag([], T113, T113)
merge54_in_aag(T118, [], T118) → merge54_out_aag(T118, [], T118)
merge54_in_aag(.(T139, T141), .(T140, T142), .(T139, X226)) → U14_aag(T139, T141, T140, T142, X226, less70_in_ga(T139, T140))
less70_in_ga(0, T154) → less70_out_ga(0, T154)
less70_in_ga(s(T161), T162) → U22_ga(T161, T162, less78_in_ga(T161, T162))
less78_in_ga(0, s(T169)) → less78_out_ga(0, s(T169))
less78_in_ga(s(T176), s(T177)) → U20_ga(T176, T177, less78_in_ga(T176, T177))
U20_ga(T176, T177, less78_out_ga(T176, T177)) → less78_out_ga(s(T176), s(T177))
U22_ga(T161, T162, less78_out_ga(T161, T162)) → less70_out_ga(s(T161), T162)
U14_aag(T139, T141, T140, T142, X226, less70_out_ga(T139, T140)) → merge54_out_aag(.(T139, T141), .(T140, T142), .(T139, X226))
merge54_in_aag(.(T139, T145), .(T146, T147), .(T139, X226)) → U15_aag(T139, T145, T146, T147, X226, less70_in_ga(T139, T146))
U15_aag(T139, T145, T146, T147, X226, less70_out_ga(T139, T146)) → U16_aag(T139, T145, T146, T147, X226, merge54_in_aag(T145, .(T146, T147), X226))
merge54_in_aag(.(T197, T199), .(T196, T198), .(T196, X287)) → U17_aag(T197, T199, T196, T198, X287, less78_in_ga(T196, T197))
U17_aag(T197, T199, T196, T198, X287, less78_out_ga(T196, T197)) → merge54_out_aag(.(T197, T199), .(T196, T198), .(T196, X287))
merge54_in_aag(.(T202, T203), .(T196, T204), .(T196, X287)) → U18_aag(T202, T203, T196, T204, X287, less78_in_ga(T196, T202))
U18_aag(T202, T203, T196, T204, X287, less78_out_ga(T196, T202)) → U19_aag(T202, T203, T196, T204, X287, merge54_in_aag(.(T202, T203), T204, X287))
U19_aag(T202, T203, T196, T204, X287, merge54_out_aag(.(T202, T203), T204, X287)) → merge54_out_aag(.(T202, T203), .(T196, T204), .(T196, X287))
U16_aag(T139, T145, T146, T147, X226, merge54_out_aag(T145, .(T146, T147), X226)) → merge54_out_aag(.(T139, T145), .(T146, T147), .(T139, X226))
U12_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127, merge54_out_aag(T106, T105, X127)) → p34_out_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127)
U21_aag(T72, T73, T74, X127, p34_out_aaaaaaag(T72, T73, T74, X123, X124, X125, X126, X127)) → ms25_out_aag(T72, .(T73, T74), X127)
U51_ag(T267, T260, T261, T291, T273, ms25_out_aag(T267, T266, [])) → U52_ag(T267, T260, T261, T291, ms38_in_ag(T273, .(T291, [])))
ms38_in_ag([], []) → ms38_out_ag([], [])
ms38_in_ag(.(T89, []), .(T89, [])) → ms38_out_ag(.(T89, []), .(T89, []))
ms38_in_ag(.(T99, .(T100, T101)), X172) → U13_ag(T99, T100, T101, X172, p34_in_aaaaaaag(T99, T100, T101, X168, X169, X170, X171, X172))
U13_ag(T99, T100, T101, X172, p34_out_aaaaaaag(T99, T100, T101, X168, X169, X170, X171, X172)) → ms38_out_ag(.(T99, .(T100, T101)), X172)
U52_ag(T267, T260, T261, T291, ms38_out_ag(T273, .(T291, []))) → ms1_out_ag(.(T267, .(T260, T261)), .(T291, []))
ms1_in_ag(.(T267, .(T260, T261)), .(T301, [])) → U53_ag(T267, T260, T261, T301, split12_in_aaaa(T260, T261, T273, T266))
U53_ag(T267, T260, T261, T301, split12_out_aaaa(T260, T261, T273, T266)) → U54_ag(T267, T260, T261, T301, T273, ms25_in_aag(T267, T266, .(T301, [])))
U54_ag(T267, T260, T261, T301, T273, ms25_out_aag(T267, T266, .(T301, []))) → U55_ag(T267, T260, T261, T301, ms38_in_ag(T273, []))
U55_ag(T267, T260, T261, T301, ms38_out_ag(T273, [])) → ms1_out_ag(.(T267, .(T260, T261)), .(T301, []))
ms1_in_ag(.(T267, .(T260, T261)), .(T318, [])) → U56_ag(T267, T260, T261, T318, split12_in_aaaa(T260, T261, T273, T266))
U56_ag(T267, T260, T261, T318, split12_out_aaaa(T260, T261, T273, T266)) → U57_ag(T267, T260, T261, T318, T273, ms25_in_aaa(T267, T266, .(T318, T323)))
U57_ag(T267, T260, T261, T318, T273, ms25_out_aaa(T267, T266, .(T318, T323))) → U58_ag(T267, T260, T261, T318, ms38_in_aa(T273, .(T322, T324)))
U58_ag(T267, T260, T261, T318, ms38_out_aa(T273, .(T322, T324))) → U59_ag(T267, T260, T261, T318, less70_in_ga(T318, T322))
U59_ag(T267, T260, T261, T318, less70_out_ga(T318, T322)) → ms1_out_ag(.(T267, .(T260, T261)), .(T318, []))
U56_ag(T267, T260, T261, T318, split12_out_aaaa(T260, T261, T273, T266)) → U60_ag(T267, T260, T261, T318, T273, ms25_in_aaa(T267, T266, .(T318, T327)))
U60_ag(T267, T260, T261, T318, T273, ms25_out_aaa(T267, T266, .(T318, T327))) → U61_ag(T267, T260, T261, T318, T327, ms38_in_aa(T273, .(T328, T329)))
U61_ag(T267, T260, T261, T318, T327, ms38_out_aa(T273, .(T328, T329))) → U62_ag(T267, T260, T261, T318, T327, T328, T329, less70_in_ga(T318, T328))
U62_ag(T267, T260, T261, T318, T327, T328, T329, less70_out_ga(T318, T328)) → U63_ag(T267, T260, T261, T318, merge93_in_aa(T327, .(T328, T329)))
U63_ag(T267, T260, T261, T318, merge93_out_aa(T327, .(T328, T329))) → ms1_out_ag(.(T267, .(T260, T261)), .(T318, []))
ms1_in_ag(.(T267, .(T260, T261)), .(T356, [])) → U64_ag(T267, T260, T261, T356, split12_in_aaaa(T260, T261, T273, T266))
U64_ag(T267, T260, T261, T356, split12_out_aaaa(T260, T261, T273, T266)) → U65_ag(T267, T260, T261, T356, T273, ms25_in_aaa(T267, T266, .(T358, T360)))
U65_ag(T267, T260, T261, T356, T273, ms25_out_aaa(T267, T266, .(T358, T360))) → U66_ag(T267, T260, T261, T356, T358, ms38_in_aa(T273, .(T356, T359)))
U66_ag(T267, T260, T261, T356, T358, ms38_out_aa(T273, .(T356, T359))) → U67_ag(T267, T260, T261, T356, less78_in_ga(T356, T358))
U67_ag(T267, T260, T261, T356, less78_out_ga(T356, T358)) → ms1_out_ag(.(T267, .(T260, T261)), .(T356, []))
U64_ag(T267, T260, T261, T356, split12_out_aaaa(T260, T261, T273, T266)) → U68_ag(T267, T260, T261, T356, T273, ms25_in_aaa(T267, T266, .(T363, T364)))
U68_ag(T267, T260, T261, T356, T273, ms25_out_aaa(T267, T266, .(T363, T364))) → U69_ag(T267, T260, T261, T356, T363, T364, ms38_in_aa(T273, .(T356, T365)))
U69_ag(T267, T260, T261, T356, T363, T364, ms38_out_aa(T273, .(T356, T365))) → U70_ag(T267, T260, T261, T356, T363, T364, T365, less78_in_ga(T356, T363))
U70_ag(T267, T260, T261, T356, T363, T364, T365, less78_out_ga(T356, T363)) → U71_ag(T267, T260, T261, T356, merge93_in_aa(.(T363, T364), T365))
U71_ag(T267, T260, T261, T356, merge93_out_aa(.(T363, T364), T365)) → ms1_out_ag(.(T267, .(T260, T261)), .(T356, []))
ms1_in_ag(.(T407, .(T405, T406)), T387) → U72_ag(T407, T405, T406, T387, split12_in_aaaa(T405, T406, X523, X522))
U72_ag(T407, T405, T406, T387, split12_out_aaaa(T405, T406, X523, X522)) → ms1_out_ag(.(T407, .(T405, T406)), T387)
ms1_in_ag(.(T412, .(T405, T406)), T387) → U73_ag(T412, T405, T406, T387, split12_in_aaaa(T405, T406, T410, T411))
U73_ag(T412, T405, T406, T387, split12_out_aaaa(T405, T406, T410, T411)) → U74_ag(T412, T405, T406, T387, ms25_in_aaa(T412, T411, X494))
U74_ag(T412, T405, T406, T387, ms25_out_aaa(T412, T411, X494)) → ms1_out_ag(.(T412, .(T405, T406)), T387)
ms1_in_ag(.(T412, .(T405, T406)), T387) → U75_ag(T412, T405, T406, T387, split12_in_aaaa(T405, T406, T420, T411))
U75_ag(T412, T405, T406, T387, split12_out_aaaa(T405, T406, T420, T411)) → U76_ag(T412, T405, T406, T387, T420, ms25_in_aaa(T412, T411, T419))
U76_ag(T412, T405, T406, T387, T420, ms25_out_aaa(T412, T411, T419)) → U77_ag(T412, T405, T406, T387, ms38_in_aa(T420, X495))
U77_ag(T412, T405, T406, T387, ms38_out_aa(T420, X495)) → ms1_out_ag(.(T412, .(T405, T406)), T387)
ms1_in_ag(.(T412, .(T405, T406)), T435) → U78_ag(T412, T405, T406, T435, split12_in_aaaa(T405, T406, T420, T411))
U78_ag(T412, T405, T406, T435, split12_out_aaaa(T405, T406, T420, T411)) → U79_ag(T412, T405, T406, T435, T420, ms25_in_aag(T412, T411, []))
U79_ag(T412, T405, T406, T435, T420, ms25_out_aag(T412, T411, [])) → U80_ag(T412, T405, T406, T435, ms38_in_ag(T420, T435))
U80_ag(T412, T405, T406, T435, ms38_out_ag(T420, T435)) → ms1_out_ag(.(T412, .(T405, T406)), T435)
ms1_in_ag(.(T412, .(T405, T406)), T440) → U81_ag(T412, T405, T406, T440, split12_in_aaaa(T405, T406, T420, T411))
U81_ag(T412, T405, T406, T440, split12_out_aaaa(T405, T406, T420, T411)) → U82_ag(T412, T405, T406, T440, T420, ms25_in_aag(T412, T411, T440))
U82_ag(T412, T405, T406, T440, T420, ms25_out_aag(T412, T411, T440)) → U83_ag(T412, T405, T406, T440, ms38_in_ag(T420, []))
U83_ag(T412, T405, T406, T440, ms38_out_ag(T420, [])) → ms1_out_ag(.(T412, .(T405, T406)), T440)
ms1_in_ag(.(T412, .(T405, T406)), .(T461, T465)) → U84_ag(T412, T405, T406, T461, T465, split12_in_aaaa(T405, T406, T420, T411))
U84_ag(T412, T405, T406, T461, T465, split12_out_aaaa(T405, T406, T420, T411)) → U85_ag(T412, T405, T406, T461, T465, T420, ms25_in_aaa(T412, T411, .(T461, T467)))
U85_ag(T412, T405, T406, T461, T465, T420, ms25_out_aaa(T412, T411, .(T461, T467))) → U86_ag(T412, T405, T406, T461, T465, ms38_in_aa(T420, .(T466, T468)))
U86_ag(T412, T405, T406, T461, T465, ms38_out_aa(T420, .(T466, T468))) → U87_ag(T412, T405, T406, T461, T465, less70_in_ga(T461, T466))
U87_ag(T412, T405, T406, T461, T465, less70_out_ga(T461, T466)) → ms1_out_ag(.(T412, .(T405, T406)), .(T461, T465))
ms1_in_ag(.(T412, .(T405, T406)), .(T461, .(T490, T491))) → U88_ag(T412, T405, T406, T461, T490, T491, split12_in_aaaa(T405, T406, T420, T411))
U88_ag(T412, T405, T406, T461, T490, T491, split12_out_aaaa(T405, T406, T420, T411)) → U89_ag(T412, T405, T406, T461, T490, T491, T420, ms25_in_aag(T412, T411, .(T461, [])))
U89_ag(T412, T405, T406, T461, T490, T491, T420, ms25_out_aag(T412, T411, .(T461, []))) → U90_ag(T412, T405, T406, T461, T490, T491, ms38_in_ag(T420, .(T490, T491)))
U90_ag(T412, T405, T406, T461, T490, T491, ms38_out_ag(T420, .(T490, T491))) → U91_ag(T412, T405, T406, T461, T490, T491, less70_in_gg(T461, T490))
less70_in_gg(0, T154) → less70_out_gg(0, T154)
less70_in_gg(s(T161), T162) → U22_gg(T161, T162, less78_in_gg(T161, T162))
less78_in_gg(0, s(T169)) → less78_out_gg(0, s(T169))
less78_in_gg(s(T176), s(T177)) → U20_gg(T176, T177, less78_in_gg(T176, T177))
U20_gg(T176, T177, less78_out_gg(T176, T177)) → less78_out_gg(s(T176), s(T177))
U22_gg(T161, T162, less78_out_gg(T161, T162)) → less70_out_gg(s(T161), T162)
U91_ag(T412, T405, T406, T461, T490, T491, less70_out_gg(T461, T490)) → ms1_out_ag(.(T412, .(T405, T406)), .(T461, .(T490, T491)))
ms1_in_ag(.(T412, .(T405, T406)), .(T461, .(T513, T517))) → U92_ag(T412, T405, T406, T461, T513, T517, split12_in_aaaa(T405, T406, T420, T411))
U92_ag(T412, T405, T406, T461, T513, T517, split12_out_aaaa(T405, T406, T420, T411)) → U93_ag(T412, T405, T406, T461, T513, T517, T420, ms25_in_aaa(T412, T411, .(T461, .(T513, T519))))
U93_ag(T412, T405, T406, T461, T513, T517, T420, ms25_out_aaa(T412, T411, .(T461, .(T513, T519)))) → U94_ag(T412, T405, T406, T461, T513, T517, T519, ms38_in_aa(T420, .(T518, T520)))
U94_ag(T412, T405, T406, T461, T513, T517, T519, ms38_out_aa(T420, .(T518, T520))) → U95_ag(T412, T405, T406, T461, T513, T517, T519, T518, T520, less70_in_ga(T461, T518))
U95_ag(T412, T405, T406, T461, T513, T517, T519, T518, T520, less70_out_ga(T461, T518)) → U96_ag(T412, T405, T406, T461, T513, T517, p179_in_gaaag(T513, T518, T519, T520, T517))
p179_in_gaaag(T513, T518, T519, T520, T517) → U23_gaaag(T513, T518, T519, T520, T517, less70_in_ga(T513, T518))
U23_gaaag(T513, T518, T519, T520, T517, less70_out_ga(T513, T518)) → p179_out_gaaag(T513, T518, T519, T520, T517)
p179_in_gaaag(T513, T540, [], T541, .(T540, T541)) → U24_gaaag(T513, T540, T541, less70_in_gg(T513, T540))
U24_gaaag(T513, T540, T541, less70_out_gg(T513, T540)) → p179_out_gaaag(T513, T540, [], T541, .(T540, T541))
p179_in_gaaag(T513, T568, .(T563, T569), T570, .(T563, T567)) → U25_gaaag(T513, T568, T563, T569, T570, T567, less70_in_ga(T513, T568))
U25_gaaag(T513, T568, T563, T569, T570, T567, less70_out_ga(T513, T568)) → U26_gaaag(T513, T568, T563, T569, T570, T567, p179_in_gaaag(T563, T568, T569, T570, T567))
p179_in_gaaag(T513, T585, .(T588, T590), T589, .(T585, T587)) → U27_gaaag(T513, T585, T588, T590, T589, T587, less70_in_gg(T513, T585))
U27_gaaag(T513, T585, T588, T590, T589, T587, less70_out_gg(T513, T585)) → U28_gaaag(T513, T585, T588, T590, T589, T587, p194_in_gaaag(T585, T588, T590, T589, T587))
p194_in_gaaag(T585, T588, T590, T589, T587) → U29_gaaag(T585, T588, T590, T589, T587, less78_in_ga(T585, T588))
U29_gaaag(T585, T588, T590, T589, T587, less78_out_ga(T585, T588)) → p194_out_gaaag(T585, T588, T590, T589, T587)
p194_in_gaaag(T585, T610, T611, [], .(T610, T611)) → U30_gaaag(T585, T610, T611, less78_in_gg(T585, T610))
U30_gaaag(T585, T610, T611, less78_out_gg(T585, T610)) → p194_out_gaaag(T585, T610, T611, [], .(T610, T611))
p194_in_gaaag(T585, T632, T638, .(T637, T639), .(T632, T636)) → U31_gaaag(T585, T632, T638, T637, T639, T636, less78_in_gg(T585, T632))
U31_gaaag(T585, T632, T638, T637, T639, T636, less78_out_gg(T585, T632)) → U32_gaaag(T585, T632, T638, T637, T639, T636, p179_in_gaaag(T632, T637, T638, T639, T636))
U32_gaaag(T585, T632, T638, T637, T639, T636, p179_out_gaaag(T632, T637, T638, T639, T636)) → p194_out_gaaag(T585, T632, T638, .(T637, T639), .(T632, T636))
p194_in_gaaag(T585, T657, T659, .(T654, T658), .(T654, T656)) → U33_gaaag(T585, T657, T659, T654, T658, T656, less78_in_ga(T585, T657))
U33_gaaag(T585, T657, T659, T654, T658, T656, less78_out_ga(T585, T657)) → U34_gaaag(T585, T657, T659, T654, T658, T656, p194_in_gaaag(T654, T657, T659, T658, T656))
U34_gaaag(T585, T657, T659, T654, T658, T656, p194_out_gaaag(T654, T657, T659, T658, T656)) → p194_out_gaaag(T585, T657, T659, .(T654, T658), .(T654, T656))
U28_gaaag(T513, T585, T588, T590, T589, T587, p194_out_gaaag(T585, T588, T590, T589, T587)) → p179_out_gaaag(T513, T585, .(T588, T590), T589, .(T585, T587))
U26_gaaag(T513, T568, T563, T569, T570, T567, p179_out_gaaag(T563, T568, T569, T570, T567)) → p179_out_gaaag(T513, T568, .(T563, T569), T570, .(T563, T567))
U96_ag(T412, T405, T406, T461, T513, T517, p179_out_gaaag(T513, T518, T519, T520, T517)) → ms1_out_ag(.(T412, .(T405, T406)), .(T461, .(T513, T517)))
ms1_in_ag(.(T412, .(T405, T406)), .(T461, .(T674, T676))) → U97_ag(T412, T405, T406, T461, T674, T676, split12_in_aaaa(T405, T406, T420, T411))
U97_ag(T412, T405, T406, T461, T674, T676, split12_out_aaaa(T405, T406, T420, T411)) → U98_ag(T412, T405, T406, T461, T674, T676, T420, ms25_in_aaa(T412, T411, .(T461, .(T677, T679))))
U98_ag(T412, T405, T406, T461, T674, T676, T420, ms25_out_aaa(T412, T411, .(T461, .(T677, T679)))) → U99_ag(T412, T405, T406, T461, T674, T676, T677, T679, ms38_in_aa(T420, .(T674, T678)))
U99_ag(T412, T405, T406, T461, T674, T676, T677, T679, ms38_out_aa(T420, .(T674, T678))) → U100_ag(T412, T405, T406, T461, T674, T676, T677, T679, T678, less70_in_gg(T461, T674))
U100_ag(T412, T405, T406, T461, T674, T676, T677, T679, T678, less70_out_gg(T461, T674)) → U101_ag(T412, T405, T406, T461, T674, T676, p194_in_gaaag(T674, T677, T679, T678, T676))
U101_ag(T412, T405, T406, T461, T674, T676, p194_out_gaaag(T674, T677, T679, T678, T676)) → ms1_out_ag(.(T412, .(T405, T406)), .(T461, .(T674, T676)))
ms1_in_ag(.(T412, .(T405, T406)), .(T694, T696)) → U102_ag(T412, T405, T406, T694, T696, split12_in_aaaa(T405, T406, T420, T411))
U102_ag(T412, T405, T406, T694, T696, split12_out_aaaa(T405, T406, T420, T411)) → U103_ag(T412, T405, T406, T694, T696, T420, ms25_in_aaa(T412, T411, .(T697, T699)))
U103_ag(T412, T405, T406, T694, T696, T420, ms25_out_aaa(T412, T411, .(T697, T699))) → U104_ag(T412, T405, T406, T694, T696, T697, T699, ms38_in_aa(T420, .(T694, T698)))
U104_ag(T412, T405, T406, T694, T696, T697, T699, ms38_out_aa(T420, .(T694, T698))) → U105_ag(T412, T405, T406, T694, T696, p194_in_gaaag(T694, T697, T699, T698, T696))
U105_ag(T412, T405, T406, T694, T696, p194_out_gaaag(T694, T697, T699, T698, T696)) → ms1_out_ag(.(T412, .(T405, T406)), .(T694, T696))
LESS78_IN_GG(s(T176), s(T177)) → LESS78_IN_GG(T176, T177)
ms1_in_ag([], []) → ms1_out_ag([], [])
ms1_in_ag(.(T29, .(T27, T28)), []) → U35_ag(T29, T27, T28, split12_in_aaaa(T27, T28, X42, X41))
split12_in_aaaa(T42, T44, .(T42, X71), X72) → U2_aaaa(T42, T44, X71, X72, split16_in_aaa(T44, X72, X71))
split16_in_aaa([], [], []) → split16_out_aaa([], [], [])
split16_in_aaa(.(T49, T51), .(T49, X89), X90) → U1_aaa(T49, T51, X89, X90, split16_in_aaa(T51, X90, X89))
U1_aaa(T49, T51, X89, X90, split16_out_aaa(T51, X90, X89)) → split16_out_aaa(.(T49, T51), .(T49, X89), X90)
U2_aaaa(T42, T44, X71, X72, split16_out_aaa(T44, X72, X71)) → split12_out_aaaa(T42, T44, .(T42, X71), X72)
U35_ag(T29, T27, T28, split12_out_aaaa(T27, T28, X42, X41)) → ms1_out_ag(.(T29, .(T27, T28)), [])
ms1_in_ag(.(T34, .(T27, T28)), []) → U36_ag(T34, T27, T28, split12_in_aaaa(T27, T28, T32, T33))
U36_ag(T34, T27, T28, split12_out_aaaa(T27, T28, T32, T33)) → U37_ag(T34, T27, T28, ms25_in_aaa(T34, T33, X13))
ms25_in_aaa(T62, [], .(T62, [])) → ms25_out_aaa(T62, [], .(T62, []))
ms25_in_aaa(T72, .(T73, T74), X127) → U21_aaa(T72, T73, T74, X127, p34_in_aaaaaaaa(T72, T73, T74, X123, X124, X125, X126, X127))
p34_in_aaaaaaaa(T72, T73, T74, X123, X124, X125, X126, X127) → U3_aaaaaaaa(T72, T73, T74, X123, X124, X125, X126, X127, split12_in_aaaa(T72, .(T73, T74), X123, X124))
U3_aaaaaaaa(T72, T73, T74, X123, X124, X125, X126, X127, split12_out_aaaa(T72, .(T73, T74), X123, X124)) → p34_out_aaaaaaaa(T72, T73, T74, X123, X124, X125, X126, X127)
p34_in_aaaaaaaa(T72, T73, T74, T78, T79, X125, X126, X127) → U4_aaaaaaaa(T72, T73, T74, T78, T79, X125, X126, X127, split12_in_aaaa(T72, .(T73, T74), T78, T79))
U4_aaaaaaaa(T72, T73, T74, T78, T79, X125, X126, X127, split12_out_aaaa(T72, .(T73, T74), T78, T79)) → U5_aaaaaaaa(T72, T73, T74, T78, T79, X125, X126, X127, ms38_in_aa(T78, X125))
ms38_in_aa([], []) → ms38_out_aa([], [])
ms38_in_aa(.(T89, []), .(T89, [])) → ms38_out_aa(.(T89, []), .(T89, []))
ms38_in_aa(.(T99, .(T100, T101)), X172) → U13_aa(T99, T100, T101, X172, p34_in_aaaaaaaa(T99, T100, T101, X168, X169, X170, X171, X172))
p34_in_aaaaaaaa(T72, T73, T74, T78, T84, T83, X126, X127) → U6_aaaaaaaa(T72, T73, T74, T78, T84, T83, X126, X127, split12_in_aaaa(T72, .(T73, T74), T78, T84))
U6_aaaaaaaa(T72, T73, T74, T78, T84, T83, X126, X127, split12_out_aaaa(T72, .(T73, T74), T78, T84)) → U7_aaaaaaaa(T72, T73, T74, T78, T84, T83, X126, X127, ms38_in_aa(T78, T83))
U7_aaaaaaaa(T72, T73, T74, T78, T84, T83, X126, X127, ms38_out_aa(T78, T83)) → U8_aaaaaaaa(T72, T73, T74, T78, T84, T83, X126, X127, ms38_in_aa(T84, X126))
U8_aaaaaaaa(T72, T73, T74, T78, T84, T83, X126, X127, ms38_out_aa(T84, X126)) → p34_out_aaaaaaaa(T72, T73, T74, T78, T84, T83, X126, X127)
p34_in_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127) → U9_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127, split12_in_aaaa(T72, .(T73, T74), T78, T84))
U9_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127, split12_out_aaaa(T72, .(T73, T74), T78, T84)) → U10_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127, ms38_in_aa(T78, T106))
U10_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127, ms38_out_aa(T78, T106)) → U11_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127, ms38_in_aa(T84, T105))
U11_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127, ms38_out_aa(T84, T105)) → U12_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127, merge54_in_aaa(T106, T105, X127))
merge54_in_aaa([], T113, T113) → merge54_out_aaa([], T113, T113)
merge54_in_aaa(T118, [], T118) → merge54_out_aaa(T118, [], T118)
merge54_in_aaa(.(T139, T141), .(T140, T142), .(T139, X226)) → U14_aaa(T139, T141, T140, T142, X226, less70_in_aa(T139, T140))
less70_in_aa(0, T154) → less70_out_aa(0, T154)
less70_in_aa(s(T161), T162) → U22_aa(T161, T162, less78_in_aa(T161, T162))
less78_in_aa(0, s(T169)) → less78_out_aa(0, s(T169))
less78_in_aa(s(T176), s(T177)) → U20_aa(T176, T177, less78_in_aa(T176, T177))
U20_aa(T176, T177, less78_out_aa(T176, T177)) → less78_out_aa(s(T176), s(T177))
U22_aa(T161, T162, less78_out_aa(T161, T162)) → less70_out_aa(s(T161), T162)
U14_aaa(T139, T141, T140, T142, X226, less70_out_aa(T139, T140)) → merge54_out_aaa(.(T139, T141), .(T140, T142), .(T139, X226))
merge54_in_aaa(.(T139, T145), .(T146, T147), .(T139, X226)) → U15_aaa(T139, T145, T146, T147, X226, less70_in_aa(T139, T146))
U15_aaa(T139, T145, T146, T147, X226, less70_out_aa(T139, T146)) → U16_aaa(T139, T145, T146, T147, X226, merge54_in_aaa(T145, .(T146, T147), X226))
merge54_in_aaa(.(T197, T199), .(T196, T198), .(T196, X287)) → U17_aaa(T197, T199, T196, T198, X287, less78_in_aa(T196, T197))
U17_aaa(T197, T199, T196, T198, X287, less78_out_aa(T196, T197)) → merge54_out_aaa(.(T197, T199), .(T196, T198), .(T196, X287))
merge54_in_aaa(.(T202, T203), .(T196, T204), .(T196, X287)) → U18_aaa(T202, T203, T196, T204, X287, less78_in_aa(T196, T202))
U18_aaa(T202, T203, T196, T204, X287, less78_out_aa(T196, T202)) → U19_aaa(T202, T203, T196, T204, X287, merge54_in_aaa(.(T202, T203), T204, X287))
U19_aaa(T202, T203, T196, T204, X287, merge54_out_aaa(.(T202, T203), T204, X287)) → merge54_out_aaa(.(T202, T203), .(T196, T204), .(T196, X287))
U16_aaa(T139, T145, T146, T147, X226, merge54_out_aaa(T145, .(T146, T147), X226)) → merge54_out_aaa(.(T139, T145), .(T146, T147), .(T139, X226))
U12_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127, merge54_out_aaa(T106, T105, X127)) → p34_out_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127)
U13_aa(T99, T100, T101, X172, p34_out_aaaaaaaa(T99, T100, T101, X168, X169, X170, X171, X172)) → ms38_out_aa(.(T99, .(T100, T101)), X172)
U5_aaaaaaaa(T72, T73, T74, T78, T79, X125, X126, X127, ms38_out_aa(T78, X125)) → p34_out_aaaaaaaa(T72, T73, T74, T78, T79, X125, X126, X127)
U21_aaa(T72, T73, T74, X127, p34_out_aaaaaaaa(T72, T73, T74, X123, X124, X125, X126, X127)) → ms25_out_aaa(T72, .(T73, T74), X127)
U37_ag(T34, T27, T28, ms25_out_aaa(T34, T33, X13)) → ms1_out_ag(.(T34, .(T27, T28)), [])
ms1_in_ag(.(T34, .(T27, T28)), []) → U38_ag(T34, T27, T28, split12_in_aaaa(T27, T28, T55, T33))
U38_ag(T34, T27, T28, split12_out_aaaa(T27, T28, T55, T33)) → U39_ag(T34, T27, T28, T55, ms25_in_aaa(T34, T33, T54))
U39_ag(T34, T27, T28, T55, ms25_out_aaa(T34, T33, T54)) → U40_ag(T34, T27, T28, ms38_in_aa(T55, X14))
U40_ag(T34, T27, T28, ms38_out_aa(T55, X14)) → ms1_out_ag(.(T34, .(T27, T28)), [])
U38_ag(T34, T27, T28, split12_out_aaaa(T27, T28, T55, T33)) → U41_ag(T34, T27, T28, T55, ms25_in_aaa(T34, T33, T212))
U41_ag(T34, T27, T28, T55, ms25_out_aaa(T34, T33, T212)) → U42_ag(T34, T27, T28, T212, ms38_in_aa(T55, T211))
U42_ag(T34, T27, T28, T212, ms38_out_aa(T55, T211)) → U43_ag(T34, T27, T28, merge93_in_aa(T212, T211))
merge93_in_aa([], []) → merge93_out_aa([], [])
U43_ag(T34, T27, T28, merge93_out_aa(T212, T211)) → ms1_out_ag(.(T34, .(T27, T28)), [])
ms1_in_ag(.(T234, []), .(T234, [])) → ms1_out_ag(.(T234, []), .(T234, []))
ms1_in_ag(.(T262, .(T260, T261)), .(T242, [])) → U44_ag(T262, T260, T261, T242, split12_in_aaaa(T260, T261, X367, X366))
U44_ag(T262, T260, T261, T242, split12_out_aaaa(T260, T261, X367, X366)) → ms1_out_ag(.(T262, .(T260, T261)), .(T242, []))
ms1_in_ag(.(T267, .(T260, T261)), .(T242, [])) → U45_ag(T267, T260, T261, T242, split12_in_aaaa(T260, T261, T265, T266))
U45_ag(T267, T260, T261, T242, split12_out_aaaa(T260, T261, T265, T266)) → U46_ag(T267, T260, T261, T242, ms25_in_aaa(T267, T266, X338))
U46_ag(T267, T260, T261, T242, ms25_out_aaa(T267, T266, X338)) → ms1_out_ag(.(T267, .(T260, T261)), .(T242, []))
ms1_in_ag(.(T267, .(T260, T261)), .(T242, [])) → U47_ag(T267, T260, T261, T242, split12_in_aaaa(T260, T261, T273, T266))
U47_ag(T267, T260, T261, T242, split12_out_aaaa(T260, T261, T273, T266)) → U48_ag(T267, T260, T261, T242, T273, ms25_in_aaa(T267, T266, T272))
U48_ag(T267, T260, T261, T242, T273, ms25_out_aaa(T267, T266, T272)) → U49_ag(T267, T260, T261, T242, ms38_in_aa(T273, X339))
U49_ag(T267, T260, T261, T242, ms38_out_aa(T273, X339)) → ms1_out_ag(.(T267, .(T260, T261)), .(T242, []))
ms1_in_ag(.(T267, .(T260, T261)), .(T291, [])) → U50_ag(T267, T260, T261, T291, split12_in_aaaa(T260, T261, T273, T266))
U50_ag(T267, T260, T261, T291, split12_out_aaaa(T260, T261, T273, T266)) → U51_ag(T267, T260, T261, T291, T273, ms25_in_aag(T267, T266, []))
ms25_in_aag(T62, [], .(T62, [])) → ms25_out_aag(T62, [], .(T62, []))
ms25_in_aag(T72, .(T73, T74), X127) → U21_aag(T72, T73, T74, X127, p34_in_aaaaaaag(T72, T73, T74, X123, X124, X125, X126, X127))
p34_in_aaaaaaag(T72, T73, T74, X123, X124, X125, X126, X127) → U3_aaaaaaag(T72, T73, T74, X123, X124, X125, X126, X127, split12_in_aaaa(T72, .(T73, T74), X123, X124))
U3_aaaaaaag(T72, T73, T74, X123, X124, X125, X126, X127, split12_out_aaaa(T72, .(T73, T74), X123, X124)) → p34_out_aaaaaaag(T72, T73, T74, X123, X124, X125, X126, X127)
p34_in_aaaaaaag(T72, T73, T74, T78, T79, X125, X126, X127) → U4_aaaaaaag(T72, T73, T74, T78, T79, X125, X126, X127, split12_in_aaaa(T72, .(T73, T74), T78, T79))
U4_aaaaaaag(T72, T73, T74, T78, T79, X125, X126, X127, split12_out_aaaa(T72, .(T73, T74), T78, T79)) → U5_aaaaaaag(T72, T73, T74, T78, T79, X125, X126, X127, ms38_in_aa(T78, X125))
U5_aaaaaaag(T72, T73, T74, T78, T79, X125, X126, X127, ms38_out_aa(T78, X125)) → p34_out_aaaaaaag(T72, T73, T74, T78, T79, X125, X126, X127)
p34_in_aaaaaaag(T72, T73, T74, T78, T84, T83, X126, X127) → U6_aaaaaaag(T72, T73, T74, T78, T84, T83, X126, X127, split12_in_aaaa(T72, .(T73, T74), T78, T84))
U6_aaaaaaag(T72, T73, T74, T78, T84, T83, X126, X127, split12_out_aaaa(T72, .(T73, T74), T78, T84)) → U7_aaaaaaag(T72, T73, T74, T78, T84, T83, X126, X127, ms38_in_aa(T78, T83))
U7_aaaaaaag(T72, T73, T74, T78, T84, T83, X126, X127, ms38_out_aa(T78, T83)) → U8_aaaaaaag(T72, T73, T74, T78, T84, T83, X126, X127, ms38_in_aa(T84, X126))
U8_aaaaaaag(T72, T73, T74, T78, T84, T83, X126, X127, ms38_out_aa(T84, X126)) → p34_out_aaaaaaag(T72, T73, T74, T78, T84, T83, X126, X127)
p34_in_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127) → U9_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127, split12_in_aaaa(T72, .(T73, T74), T78, T84))
U9_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127, split12_out_aaaa(T72, .(T73, T74), T78, T84)) → U10_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127, ms38_in_aa(T78, T106))
U10_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127, ms38_out_aa(T78, T106)) → U11_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127, ms38_in_aa(T84, T105))
U11_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127, ms38_out_aa(T84, T105)) → U12_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127, merge54_in_aag(T106, T105, X127))
merge54_in_aag([], T113, T113) → merge54_out_aag([], T113, T113)
merge54_in_aag(T118, [], T118) → merge54_out_aag(T118, [], T118)
merge54_in_aag(.(T139, T141), .(T140, T142), .(T139, X226)) → U14_aag(T139, T141, T140, T142, X226, less70_in_ga(T139, T140))
less70_in_ga(0, T154) → less70_out_ga(0, T154)
less70_in_ga(s(T161), T162) → U22_ga(T161, T162, less78_in_ga(T161, T162))
less78_in_ga(0, s(T169)) → less78_out_ga(0, s(T169))
less78_in_ga(s(T176), s(T177)) → U20_ga(T176, T177, less78_in_ga(T176, T177))
U20_ga(T176, T177, less78_out_ga(T176, T177)) → less78_out_ga(s(T176), s(T177))
U22_ga(T161, T162, less78_out_ga(T161, T162)) → less70_out_ga(s(T161), T162)
U14_aag(T139, T141, T140, T142, X226, less70_out_ga(T139, T140)) → merge54_out_aag(.(T139, T141), .(T140, T142), .(T139, X226))
merge54_in_aag(.(T139, T145), .(T146, T147), .(T139, X226)) → U15_aag(T139, T145, T146, T147, X226, less70_in_ga(T139, T146))
U15_aag(T139, T145, T146, T147, X226, less70_out_ga(T139, T146)) → U16_aag(T139, T145, T146, T147, X226, merge54_in_aag(T145, .(T146, T147), X226))
merge54_in_aag(.(T197, T199), .(T196, T198), .(T196, X287)) → U17_aag(T197, T199, T196, T198, X287, less78_in_ga(T196, T197))
U17_aag(T197, T199, T196, T198, X287, less78_out_ga(T196, T197)) → merge54_out_aag(.(T197, T199), .(T196, T198), .(T196, X287))
merge54_in_aag(.(T202, T203), .(T196, T204), .(T196, X287)) → U18_aag(T202, T203, T196, T204, X287, less78_in_ga(T196, T202))
U18_aag(T202, T203, T196, T204, X287, less78_out_ga(T196, T202)) → U19_aag(T202, T203, T196, T204, X287, merge54_in_aag(.(T202, T203), T204, X287))
U19_aag(T202, T203, T196, T204, X287, merge54_out_aag(.(T202, T203), T204, X287)) → merge54_out_aag(.(T202, T203), .(T196, T204), .(T196, X287))
U16_aag(T139, T145, T146, T147, X226, merge54_out_aag(T145, .(T146, T147), X226)) → merge54_out_aag(.(T139, T145), .(T146, T147), .(T139, X226))
U12_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127, merge54_out_aag(T106, T105, X127)) → p34_out_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127)
U21_aag(T72, T73, T74, X127, p34_out_aaaaaaag(T72, T73, T74, X123, X124, X125, X126, X127)) → ms25_out_aag(T72, .(T73, T74), X127)
U51_ag(T267, T260, T261, T291, T273, ms25_out_aag(T267, T266, [])) → U52_ag(T267, T260, T261, T291, ms38_in_ag(T273, .(T291, [])))
ms38_in_ag([], []) → ms38_out_ag([], [])
ms38_in_ag(.(T89, []), .(T89, [])) → ms38_out_ag(.(T89, []), .(T89, []))
ms38_in_ag(.(T99, .(T100, T101)), X172) → U13_ag(T99, T100, T101, X172, p34_in_aaaaaaag(T99, T100, T101, X168, X169, X170, X171, X172))
U13_ag(T99, T100, T101, X172, p34_out_aaaaaaag(T99, T100, T101, X168, X169, X170, X171, X172)) → ms38_out_ag(.(T99, .(T100, T101)), X172)
U52_ag(T267, T260, T261, T291, ms38_out_ag(T273, .(T291, []))) → ms1_out_ag(.(T267, .(T260, T261)), .(T291, []))
ms1_in_ag(.(T267, .(T260, T261)), .(T301, [])) → U53_ag(T267, T260, T261, T301, split12_in_aaaa(T260, T261, T273, T266))
U53_ag(T267, T260, T261, T301, split12_out_aaaa(T260, T261, T273, T266)) → U54_ag(T267, T260, T261, T301, T273, ms25_in_aag(T267, T266, .(T301, [])))
U54_ag(T267, T260, T261, T301, T273, ms25_out_aag(T267, T266, .(T301, []))) → U55_ag(T267, T260, T261, T301, ms38_in_ag(T273, []))
U55_ag(T267, T260, T261, T301, ms38_out_ag(T273, [])) → ms1_out_ag(.(T267, .(T260, T261)), .(T301, []))
ms1_in_ag(.(T267, .(T260, T261)), .(T318, [])) → U56_ag(T267, T260, T261, T318, split12_in_aaaa(T260, T261, T273, T266))
U56_ag(T267, T260, T261, T318, split12_out_aaaa(T260, T261, T273, T266)) → U57_ag(T267, T260, T261, T318, T273, ms25_in_aaa(T267, T266, .(T318, T323)))
U57_ag(T267, T260, T261, T318, T273, ms25_out_aaa(T267, T266, .(T318, T323))) → U58_ag(T267, T260, T261, T318, ms38_in_aa(T273, .(T322, T324)))
U58_ag(T267, T260, T261, T318, ms38_out_aa(T273, .(T322, T324))) → U59_ag(T267, T260, T261, T318, less70_in_ga(T318, T322))
U59_ag(T267, T260, T261, T318, less70_out_ga(T318, T322)) → ms1_out_ag(.(T267, .(T260, T261)), .(T318, []))
U56_ag(T267, T260, T261, T318, split12_out_aaaa(T260, T261, T273, T266)) → U60_ag(T267, T260, T261, T318, T273, ms25_in_aaa(T267, T266, .(T318, T327)))
U60_ag(T267, T260, T261, T318, T273, ms25_out_aaa(T267, T266, .(T318, T327))) → U61_ag(T267, T260, T261, T318, T327, ms38_in_aa(T273, .(T328, T329)))
U61_ag(T267, T260, T261, T318, T327, ms38_out_aa(T273, .(T328, T329))) → U62_ag(T267, T260, T261, T318, T327, T328, T329, less70_in_ga(T318, T328))
U62_ag(T267, T260, T261, T318, T327, T328, T329, less70_out_ga(T318, T328)) → U63_ag(T267, T260, T261, T318, merge93_in_aa(T327, .(T328, T329)))
U63_ag(T267, T260, T261, T318, merge93_out_aa(T327, .(T328, T329))) → ms1_out_ag(.(T267, .(T260, T261)), .(T318, []))
ms1_in_ag(.(T267, .(T260, T261)), .(T356, [])) → U64_ag(T267, T260, T261, T356, split12_in_aaaa(T260, T261, T273, T266))
U64_ag(T267, T260, T261, T356, split12_out_aaaa(T260, T261, T273, T266)) → U65_ag(T267, T260, T261, T356, T273, ms25_in_aaa(T267, T266, .(T358, T360)))
U65_ag(T267, T260, T261, T356, T273, ms25_out_aaa(T267, T266, .(T358, T360))) → U66_ag(T267, T260, T261, T356, T358, ms38_in_aa(T273, .(T356, T359)))
U66_ag(T267, T260, T261, T356, T358, ms38_out_aa(T273, .(T356, T359))) → U67_ag(T267, T260, T261, T356, less78_in_ga(T356, T358))
U67_ag(T267, T260, T261, T356, less78_out_ga(T356, T358)) → ms1_out_ag(.(T267, .(T260, T261)), .(T356, []))
U64_ag(T267, T260, T261, T356, split12_out_aaaa(T260, T261, T273, T266)) → U68_ag(T267, T260, T261, T356, T273, ms25_in_aaa(T267, T266, .(T363, T364)))
U68_ag(T267, T260, T261, T356, T273, ms25_out_aaa(T267, T266, .(T363, T364))) → U69_ag(T267, T260, T261, T356, T363, T364, ms38_in_aa(T273, .(T356, T365)))
U69_ag(T267, T260, T261, T356, T363, T364, ms38_out_aa(T273, .(T356, T365))) → U70_ag(T267, T260, T261, T356, T363, T364, T365, less78_in_ga(T356, T363))
U70_ag(T267, T260, T261, T356, T363, T364, T365, less78_out_ga(T356, T363)) → U71_ag(T267, T260, T261, T356, merge93_in_aa(.(T363, T364), T365))
U71_ag(T267, T260, T261, T356, merge93_out_aa(.(T363, T364), T365)) → ms1_out_ag(.(T267, .(T260, T261)), .(T356, []))
ms1_in_ag(.(T407, .(T405, T406)), T387) → U72_ag(T407, T405, T406, T387, split12_in_aaaa(T405, T406, X523, X522))
U72_ag(T407, T405, T406, T387, split12_out_aaaa(T405, T406, X523, X522)) → ms1_out_ag(.(T407, .(T405, T406)), T387)
ms1_in_ag(.(T412, .(T405, T406)), T387) → U73_ag(T412, T405, T406, T387, split12_in_aaaa(T405, T406, T410, T411))
U73_ag(T412, T405, T406, T387, split12_out_aaaa(T405, T406, T410, T411)) → U74_ag(T412, T405, T406, T387, ms25_in_aaa(T412, T411, X494))
U74_ag(T412, T405, T406, T387, ms25_out_aaa(T412, T411, X494)) → ms1_out_ag(.(T412, .(T405, T406)), T387)
ms1_in_ag(.(T412, .(T405, T406)), T387) → U75_ag(T412, T405, T406, T387, split12_in_aaaa(T405, T406, T420, T411))
U75_ag(T412, T405, T406, T387, split12_out_aaaa(T405, T406, T420, T411)) → U76_ag(T412, T405, T406, T387, T420, ms25_in_aaa(T412, T411, T419))
U76_ag(T412, T405, T406, T387, T420, ms25_out_aaa(T412, T411, T419)) → U77_ag(T412, T405, T406, T387, ms38_in_aa(T420, X495))
U77_ag(T412, T405, T406, T387, ms38_out_aa(T420, X495)) → ms1_out_ag(.(T412, .(T405, T406)), T387)
ms1_in_ag(.(T412, .(T405, T406)), T435) → U78_ag(T412, T405, T406, T435, split12_in_aaaa(T405, T406, T420, T411))
U78_ag(T412, T405, T406, T435, split12_out_aaaa(T405, T406, T420, T411)) → U79_ag(T412, T405, T406, T435, T420, ms25_in_aag(T412, T411, []))
U79_ag(T412, T405, T406, T435, T420, ms25_out_aag(T412, T411, [])) → U80_ag(T412, T405, T406, T435, ms38_in_ag(T420, T435))
U80_ag(T412, T405, T406, T435, ms38_out_ag(T420, T435)) → ms1_out_ag(.(T412, .(T405, T406)), T435)
ms1_in_ag(.(T412, .(T405, T406)), T440) → U81_ag(T412, T405, T406, T440, split12_in_aaaa(T405, T406, T420, T411))
U81_ag(T412, T405, T406, T440, split12_out_aaaa(T405, T406, T420, T411)) → U82_ag(T412, T405, T406, T440, T420, ms25_in_aag(T412, T411, T440))
U82_ag(T412, T405, T406, T440, T420, ms25_out_aag(T412, T411, T440)) → U83_ag(T412, T405, T406, T440, ms38_in_ag(T420, []))
U83_ag(T412, T405, T406, T440, ms38_out_ag(T420, [])) → ms1_out_ag(.(T412, .(T405, T406)), T440)
ms1_in_ag(.(T412, .(T405, T406)), .(T461, T465)) → U84_ag(T412, T405, T406, T461, T465, split12_in_aaaa(T405, T406, T420, T411))
U84_ag(T412, T405, T406, T461, T465, split12_out_aaaa(T405, T406, T420, T411)) → U85_ag(T412, T405, T406, T461, T465, T420, ms25_in_aaa(T412, T411, .(T461, T467)))
U85_ag(T412, T405, T406, T461, T465, T420, ms25_out_aaa(T412, T411, .(T461, T467))) → U86_ag(T412, T405, T406, T461, T465, ms38_in_aa(T420, .(T466, T468)))
U86_ag(T412, T405, T406, T461, T465, ms38_out_aa(T420, .(T466, T468))) → U87_ag(T412, T405, T406, T461, T465, less70_in_ga(T461, T466))
U87_ag(T412, T405, T406, T461, T465, less70_out_ga(T461, T466)) → ms1_out_ag(.(T412, .(T405, T406)), .(T461, T465))
ms1_in_ag(.(T412, .(T405, T406)), .(T461, .(T490, T491))) → U88_ag(T412, T405, T406, T461, T490, T491, split12_in_aaaa(T405, T406, T420, T411))
U88_ag(T412, T405, T406, T461, T490, T491, split12_out_aaaa(T405, T406, T420, T411)) → U89_ag(T412, T405, T406, T461, T490, T491, T420, ms25_in_aag(T412, T411, .(T461, [])))
U89_ag(T412, T405, T406, T461, T490, T491, T420, ms25_out_aag(T412, T411, .(T461, []))) → U90_ag(T412, T405, T406, T461, T490, T491, ms38_in_ag(T420, .(T490, T491)))
U90_ag(T412, T405, T406, T461, T490, T491, ms38_out_ag(T420, .(T490, T491))) → U91_ag(T412, T405, T406, T461, T490, T491, less70_in_gg(T461, T490))
less70_in_gg(0, T154) → less70_out_gg(0, T154)
less70_in_gg(s(T161), T162) → U22_gg(T161, T162, less78_in_gg(T161, T162))
less78_in_gg(0, s(T169)) → less78_out_gg(0, s(T169))
less78_in_gg(s(T176), s(T177)) → U20_gg(T176, T177, less78_in_gg(T176, T177))
U20_gg(T176, T177, less78_out_gg(T176, T177)) → less78_out_gg(s(T176), s(T177))
U22_gg(T161, T162, less78_out_gg(T161, T162)) → less70_out_gg(s(T161), T162)
U91_ag(T412, T405, T406, T461, T490, T491, less70_out_gg(T461, T490)) → ms1_out_ag(.(T412, .(T405, T406)), .(T461, .(T490, T491)))
ms1_in_ag(.(T412, .(T405, T406)), .(T461, .(T513, T517))) → U92_ag(T412, T405, T406, T461, T513, T517, split12_in_aaaa(T405, T406, T420, T411))
U92_ag(T412, T405, T406, T461, T513, T517, split12_out_aaaa(T405, T406, T420, T411)) → U93_ag(T412, T405, T406, T461, T513, T517, T420, ms25_in_aaa(T412, T411, .(T461, .(T513, T519))))
U93_ag(T412, T405, T406, T461, T513, T517, T420, ms25_out_aaa(T412, T411, .(T461, .(T513, T519)))) → U94_ag(T412, T405, T406, T461, T513, T517, T519, ms38_in_aa(T420, .(T518, T520)))
U94_ag(T412, T405, T406, T461, T513, T517, T519, ms38_out_aa(T420, .(T518, T520))) → U95_ag(T412, T405, T406, T461, T513, T517, T519, T518, T520, less70_in_ga(T461, T518))
U95_ag(T412, T405, T406, T461, T513, T517, T519, T518, T520, less70_out_ga(T461, T518)) → U96_ag(T412, T405, T406, T461, T513, T517, p179_in_gaaag(T513, T518, T519, T520, T517))
p179_in_gaaag(T513, T518, T519, T520, T517) → U23_gaaag(T513, T518, T519, T520, T517, less70_in_ga(T513, T518))
U23_gaaag(T513, T518, T519, T520, T517, less70_out_ga(T513, T518)) → p179_out_gaaag(T513, T518, T519, T520, T517)
p179_in_gaaag(T513, T540, [], T541, .(T540, T541)) → U24_gaaag(T513, T540, T541, less70_in_gg(T513, T540))
U24_gaaag(T513, T540, T541, less70_out_gg(T513, T540)) → p179_out_gaaag(T513, T540, [], T541, .(T540, T541))
p179_in_gaaag(T513, T568, .(T563, T569), T570, .(T563, T567)) → U25_gaaag(T513, T568, T563, T569, T570, T567, less70_in_ga(T513, T568))
U25_gaaag(T513, T568, T563, T569, T570, T567, less70_out_ga(T513, T568)) → U26_gaaag(T513, T568, T563, T569, T570, T567, p179_in_gaaag(T563, T568, T569, T570, T567))
p179_in_gaaag(T513, T585, .(T588, T590), T589, .(T585, T587)) → U27_gaaag(T513, T585, T588, T590, T589, T587, less70_in_gg(T513, T585))
U27_gaaag(T513, T585, T588, T590, T589, T587, less70_out_gg(T513, T585)) → U28_gaaag(T513, T585, T588, T590, T589, T587, p194_in_gaaag(T585, T588, T590, T589, T587))
p194_in_gaaag(T585, T588, T590, T589, T587) → U29_gaaag(T585, T588, T590, T589, T587, less78_in_ga(T585, T588))
U29_gaaag(T585, T588, T590, T589, T587, less78_out_ga(T585, T588)) → p194_out_gaaag(T585, T588, T590, T589, T587)
p194_in_gaaag(T585, T610, T611, [], .(T610, T611)) → U30_gaaag(T585, T610, T611, less78_in_gg(T585, T610))
U30_gaaag(T585, T610, T611, less78_out_gg(T585, T610)) → p194_out_gaaag(T585, T610, T611, [], .(T610, T611))
p194_in_gaaag(T585, T632, T638, .(T637, T639), .(T632, T636)) → U31_gaaag(T585, T632, T638, T637, T639, T636, less78_in_gg(T585, T632))
U31_gaaag(T585, T632, T638, T637, T639, T636, less78_out_gg(T585, T632)) → U32_gaaag(T585, T632, T638, T637, T639, T636, p179_in_gaaag(T632, T637, T638, T639, T636))
U32_gaaag(T585, T632, T638, T637, T639, T636, p179_out_gaaag(T632, T637, T638, T639, T636)) → p194_out_gaaag(T585, T632, T638, .(T637, T639), .(T632, T636))
p194_in_gaaag(T585, T657, T659, .(T654, T658), .(T654, T656)) → U33_gaaag(T585, T657, T659, T654, T658, T656, less78_in_ga(T585, T657))
U33_gaaag(T585, T657, T659, T654, T658, T656, less78_out_ga(T585, T657)) → U34_gaaag(T585, T657, T659, T654, T658, T656, p194_in_gaaag(T654, T657, T659, T658, T656))
U34_gaaag(T585, T657, T659, T654, T658, T656, p194_out_gaaag(T654, T657, T659, T658, T656)) → p194_out_gaaag(T585, T657, T659, .(T654, T658), .(T654, T656))
U28_gaaag(T513, T585, T588, T590, T589, T587, p194_out_gaaag(T585, T588, T590, T589, T587)) → p179_out_gaaag(T513, T585, .(T588, T590), T589, .(T585, T587))
U26_gaaag(T513, T568, T563, T569, T570, T567, p179_out_gaaag(T563, T568, T569, T570, T567)) → p179_out_gaaag(T513, T568, .(T563, T569), T570, .(T563, T567))
U96_ag(T412, T405, T406, T461, T513, T517, p179_out_gaaag(T513, T518, T519, T520, T517)) → ms1_out_ag(.(T412, .(T405, T406)), .(T461, .(T513, T517)))
ms1_in_ag(.(T412, .(T405, T406)), .(T461, .(T674, T676))) → U97_ag(T412, T405, T406, T461, T674, T676, split12_in_aaaa(T405, T406, T420, T411))
U97_ag(T412, T405, T406, T461, T674, T676, split12_out_aaaa(T405, T406, T420, T411)) → U98_ag(T412, T405, T406, T461, T674, T676, T420, ms25_in_aaa(T412, T411, .(T461, .(T677, T679))))
U98_ag(T412, T405, T406, T461, T674, T676, T420, ms25_out_aaa(T412, T411, .(T461, .(T677, T679)))) → U99_ag(T412, T405, T406, T461, T674, T676, T677, T679, ms38_in_aa(T420, .(T674, T678)))
U99_ag(T412, T405, T406, T461, T674, T676, T677, T679, ms38_out_aa(T420, .(T674, T678))) → U100_ag(T412, T405, T406, T461, T674, T676, T677, T679, T678, less70_in_gg(T461, T674))
U100_ag(T412, T405, T406, T461, T674, T676, T677, T679, T678, less70_out_gg(T461, T674)) → U101_ag(T412, T405, T406, T461, T674, T676, p194_in_gaaag(T674, T677, T679, T678, T676))
U101_ag(T412, T405, T406, T461, T674, T676, p194_out_gaaag(T674, T677, T679, T678, T676)) → ms1_out_ag(.(T412, .(T405, T406)), .(T461, .(T674, T676)))
ms1_in_ag(.(T412, .(T405, T406)), .(T694, T696)) → U102_ag(T412, T405, T406, T694, T696, split12_in_aaaa(T405, T406, T420, T411))
U102_ag(T412, T405, T406, T694, T696, split12_out_aaaa(T405, T406, T420, T411)) → U103_ag(T412, T405, T406, T694, T696, T420, ms25_in_aaa(T412, T411, .(T697, T699)))
U103_ag(T412, T405, T406, T694, T696, T420, ms25_out_aaa(T412, T411, .(T697, T699))) → U104_ag(T412, T405, T406, T694, T696, T697, T699, ms38_in_aa(T420, .(T694, T698)))
U104_ag(T412, T405, T406, T694, T696, T697, T699, ms38_out_aa(T420, .(T694, T698))) → U105_ag(T412, T405, T406, T694, T696, p194_in_gaaag(T694, T697, T699, T698, T696))
U105_ag(T412, T405, T406, T694, T696, p194_out_gaaag(T694, T697, T699, T698, T696)) → ms1_out_ag(.(T412, .(T405, T406)), .(T694, T696))
LESS78_IN_GG(s(T176), s(T177)) → LESS78_IN_GG(T176, T177)
LESS78_IN_GG(s(T176), s(T177)) → LESS78_IN_GG(T176, T177)
From the DPs we obtained the following set of size-change graphs:
LESS78_IN_GA(s(T176), s(T177)) → LESS78_IN_GA(T176, T177)
ms1_in_ag([], []) → ms1_out_ag([], [])
ms1_in_ag(.(T29, .(T27, T28)), []) → U35_ag(T29, T27, T28, split12_in_aaaa(T27, T28, X42, X41))
split12_in_aaaa(T42, T44, .(T42, X71), X72) → U2_aaaa(T42, T44, X71, X72, split16_in_aaa(T44, X72, X71))
split16_in_aaa([], [], []) → split16_out_aaa([], [], [])
split16_in_aaa(.(T49, T51), .(T49, X89), X90) → U1_aaa(T49, T51, X89, X90, split16_in_aaa(T51, X90, X89))
U1_aaa(T49, T51, X89, X90, split16_out_aaa(T51, X90, X89)) → split16_out_aaa(.(T49, T51), .(T49, X89), X90)
U2_aaaa(T42, T44, X71, X72, split16_out_aaa(T44, X72, X71)) → split12_out_aaaa(T42, T44, .(T42, X71), X72)
U35_ag(T29, T27, T28, split12_out_aaaa(T27, T28, X42, X41)) → ms1_out_ag(.(T29, .(T27, T28)), [])
ms1_in_ag(.(T34, .(T27, T28)), []) → U36_ag(T34, T27, T28, split12_in_aaaa(T27, T28, T32, T33))
U36_ag(T34, T27, T28, split12_out_aaaa(T27, T28, T32, T33)) → U37_ag(T34, T27, T28, ms25_in_aaa(T34, T33, X13))
ms25_in_aaa(T62, [], .(T62, [])) → ms25_out_aaa(T62, [], .(T62, []))
ms25_in_aaa(T72, .(T73, T74), X127) → U21_aaa(T72, T73, T74, X127, p34_in_aaaaaaaa(T72, T73, T74, X123, X124, X125, X126, X127))
p34_in_aaaaaaaa(T72, T73, T74, X123, X124, X125, X126, X127) → U3_aaaaaaaa(T72, T73, T74, X123, X124, X125, X126, X127, split12_in_aaaa(T72, .(T73, T74), X123, X124))
U3_aaaaaaaa(T72, T73, T74, X123, X124, X125, X126, X127, split12_out_aaaa(T72, .(T73, T74), X123, X124)) → p34_out_aaaaaaaa(T72, T73, T74, X123, X124, X125, X126, X127)
p34_in_aaaaaaaa(T72, T73, T74, T78, T79, X125, X126, X127) → U4_aaaaaaaa(T72, T73, T74, T78, T79, X125, X126, X127, split12_in_aaaa(T72, .(T73, T74), T78, T79))
U4_aaaaaaaa(T72, T73, T74, T78, T79, X125, X126, X127, split12_out_aaaa(T72, .(T73, T74), T78, T79)) → U5_aaaaaaaa(T72, T73, T74, T78, T79, X125, X126, X127, ms38_in_aa(T78, X125))
ms38_in_aa([], []) → ms38_out_aa([], [])
ms38_in_aa(.(T89, []), .(T89, [])) → ms38_out_aa(.(T89, []), .(T89, []))
ms38_in_aa(.(T99, .(T100, T101)), X172) → U13_aa(T99, T100, T101, X172, p34_in_aaaaaaaa(T99, T100, T101, X168, X169, X170, X171, X172))
p34_in_aaaaaaaa(T72, T73, T74, T78, T84, T83, X126, X127) → U6_aaaaaaaa(T72, T73, T74, T78, T84, T83, X126, X127, split12_in_aaaa(T72, .(T73, T74), T78, T84))
U6_aaaaaaaa(T72, T73, T74, T78, T84, T83, X126, X127, split12_out_aaaa(T72, .(T73, T74), T78, T84)) → U7_aaaaaaaa(T72, T73, T74, T78, T84, T83, X126, X127, ms38_in_aa(T78, T83))
U7_aaaaaaaa(T72, T73, T74, T78, T84, T83, X126, X127, ms38_out_aa(T78, T83)) → U8_aaaaaaaa(T72, T73, T74, T78, T84, T83, X126, X127, ms38_in_aa(T84, X126))
U8_aaaaaaaa(T72, T73, T74, T78, T84, T83, X126, X127, ms38_out_aa(T84, X126)) → p34_out_aaaaaaaa(T72, T73, T74, T78, T84, T83, X126, X127)
p34_in_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127) → U9_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127, split12_in_aaaa(T72, .(T73, T74), T78, T84))
U9_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127, split12_out_aaaa(T72, .(T73, T74), T78, T84)) → U10_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127, ms38_in_aa(T78, T106))
U10_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127, ms38_out_aa(T78, T106)) → U11_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127, ms38_in_aa(T84, T105))
U11_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127, ms38_out_aa(T84, T105)) → U12_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127, merge54_in_aaa(T106, T105, X127))
merge54_in_aaa([], T113, T113) → merge54_out_aaa([], T113, T113)
merge54_in_aaa(T118, [], T118) → merge54_out_aaa(T118, [], T118)
merge54_in_aaa(.(T139, T141), .(T140, T142), .(T139, X226)) → U14_aaa(T139, T141, T140, T142, X226, less70_in_aa(T139, T140))
less70_in_aa(0, T154) → less70_out_aa(0, T154)
less70_in_aa(s(T161), T162) → U22_aa(T161, T162, less78_in_aa(T161, T162))
less78_in_aa(0, s(T169)) → less78_out_aa(0, s(T169))
less78_in_aa(s(T176), s(T177)) → U20_aa(T176, T177, less78_in_aa(T176, T177))
U20_aa(T176, T177, less78_out_aa(T176, T177)) → less78_out_aa(s(T176), s(T177))
U22_aa(T161, T162, less78_out_aa(T161, T162)) → less70_out_aa(s(T161), T162)
U14_aaa(T139, T141, T140, T142, X226, less70_out_aa(T139, T140)) → merge54_out_aaa(.(T139, T141), .(T140, T142), .(T139, X226))
merge54_in_aaa(.(T139, T145), .(T146, T147), .(T139, X226)) → U15_aaa(T139, T145, T146, T147, X226, less70_in_aa(T139, T146))
U15_aaa(T139, T145, T146, T147, X226, less70_out_aa(T139, T146)) → U16_aaa(T139, T145, T146, T147, X226, merge54_in_aaa(T145, .(T146, T147), X226))
merge54_in_aaa(.(T197, T199), .(T196, T198), .(T196, X287)) → U17_aaa(T197, T199, T196, T198, X287, less78_in_aa(T196, T197))
U17_aaa(T197, T199, T196, T198, X287, less78_out_aa(T196, T197)) → merge54_out_aaa(.(T197, T199), .(T196, T198), .(T196, X287))
merge54_in_aaa(.(T202, T203), .(T196, T204), .(T196, X287)) → U18_aaa(T202, T203, T196, T204, X287, less78_in_aa(T196, T202))
U18_aaa(T202, T203, T196, T204, X287, less78_out_aa(T196, T202)) → U19_aaa(T202, T203, T196, T204, X287, merge54_in_aaa(.(T202, T203), T204, X287))
U19_aaa(T202, T203, T196, T204, X287, merge54_out_aaa(.(T202, T203), T204, X287)) → merge54_out_aaa(.(T202, T203), .(T196, T204), .(T196, X287))
U16_aaa(T139, T145, T146, T147, X226, merge54_out_aaa(T145, .(T146, T147), X226)) → merge54_out_aaa(.(T139, T145), .(T146, T147), .(T139, X226))
U12_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127, merge54_out_aaa(T106, T105, X127)) → p34_out_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127)
U13_aa(T99, T100, T101, X172, p34_out_aaaaaaaa(T99, T100, T101, X168, X169, X170, X171, X172)) → ms38_out_aa(.(T99, .(T100, T101)), X172)
U5_aaaaaaaa(T72, T73, T74, T78, T79, X125, X126, X127, ms38_out_aa(T78, X125)) → p34_out_aaaaaaaa(T72, T73, T74, T78, T79, X125, X126, X127)
U21_aaa(T72, T73, T74, X127, p34_out_aaaaaaaa(T72, T73, T74, X123, X124, X125, X126, X127)) → ms25_out_aaa(T72, .(T73, T74), X127)
U37_ag(T34, T27, T28, ms25_out_aaa(T34, T33, X13)) → ms1_out_ag(.(T34, .(T27, T28)), [])
ms1_in_ag(.(T34, .(T27, T28)), []) → U38_ag(T34, T27, T28, split12_in_aaaa(T27, T28, T55, T33))
U38_ag(T34, T27, T28, split12_out_aaaa(T27, T28, T55, T33)) → U39_ag(T34, T27, T28, T55, ms25_in_aaa(T34, T33, T54))
U39_ag(T34, T27, T28, T55, ms25_out_aaa(T34, T33, T54)) → U40_ag(T34, T27, T28, ms38_in_aa(T55, X14))
U40_ag(T34, T27, T28, ms38_out_aa(T55, X14)) → ms1_out_ag(.(T34, .(T27, T28)), [])
U38_ag(T34, T27, T28, split12_out_aaaa(T27, T28, T55, T33)) → U41_ag(T34, T27, T28, T55, ms25_in_aaa(T34, T33, T212))
U41_ag(T34, T27, T28, T55, ms25_out_aaa(T34, T33, T212)) → U42_ag(T34, T27, T28, T212, ms38_in_aa(T55, T211))
U42_ag(T34, T27, T28, T212, ms38_out_aa(T55, T211)) → U43_ag(T34, T27, T28, merge93_in_aa(T212, T211))
merge93_in_aa([], []) → merge93_out_aa([], [])
U43_ag(T34, T27, T28, merge93_out_aa(T212, T211)) → ms1_out_ag(.(T34, .(T27, T28)), [])
ms1_in_ag(.(T234, []), .(T234, [])) → ms1_out_ag(.(T234, []), .(T234, []))
ms1_in_ag(.(T262, .(T260, T261)), .(T242, [])) → U44_ag(T262, T260, T261, T242, split12_in_aaaa(T260, T261, X367, X366))
U44_ag(T262, T260, T261, T242, split12_out_aaaa(T260, T261, X367, X366)) → ms1_out_ag(.(T262, .(T260, T261)), .(T242, []))
ms1_in_ag(.(T267, .(T260, T261)), .(T242, [])) → U45_ag(T267, T260, T261, T242, split12_in_aaaa(T260, T261, T265, T266))
U45_ag(T267, T260, T261, T242, split12_out_aaaa(T260, T261, T265, T266)) → U46_ag(T267, T260, T261, T242, ms25_in_aaa(T267, T266, X338))
U46_ag(T267, T260, T261, T242, ms25_out_aaa(T267, T266, X338)) → ms1_out_ag(.(T267, .(T260, T261)), .(T242, []))
ms1_in_ag(.(T267, .(T260, T261)), .(T242, [])) → U47_ag(T267, T260, T261, T242, split12_in_aaaa(T260, T261, T273, T266))
U47_ag(T267, T260, T261, T242, split12_out_aaaa(T260, T261, T273, T266)) → U48_ag(T267, T260, T261, T242, T273, ms25_in_aaa(T267, T266, T272))
U48_ag(T267, T260, T261, T242, T273, ms25_out_aaa(T267, T266, T272)) → U49_ag(T267, T260, T261, T242, ms38_in_aa(T273, X339))
U49_ag(T267, T260, T261, T242, ms38_out_aa(T273, X339)) → ms1_out_ag(.(T267, .(T260, T261)), .(T242, []))
ms1_in_ag(.(T267, .(T260, T261)), .(T291, [])) → U50_ag(T267, T260, T261, T291, split12_in_aaaa(T260, T261, T273, T266))
U50_ag(T267, T260, T261, T291, split12_out_aaaa(T260, T261, T273, T266)) → U51_ag(T267, T260, T261, T291, T273, ms25_in_aag(T267, T266, []))
ms25_in_aag(T62, [], .(T62, [])) → ms25_out_aag(T62, [], .(T62, []))
ms25_in_aag(T72, .(T73, T74), X127) → U21_aag(T72, T73, T74, X127, p34_in_aaaaaaag(T72, T73, T74, X123, X124, X125, X126, X127))
p34_in_aaaaaaag(T72, T73, T74, X123, X124, X125, X126, X127) → U3_aaaaaaag(T72, T73, T74, X123, X124, X125, X126, X127, split12_in_aaaa(T72, .(T73, T74), X123, X124))
U3_aaaaaaag(T72, T73, T74, X123, X124, X125, X126, X127, split12_out_aaaa(T72, .(T73, T74), X123, X124)) → p34_out_aaaaaaag(T72, T73, T74, X123, X124, X125, X126, X127)
p34_in_aaaaaaag(T72, T73, T74, T78, T79, X125, X126, X127) → U4_aaaaaaag(T72, T73, T74, T78, T79, X125, X126, X127, split12_in_aaaa(T72, .(T73, T74), T78, T79))
U4_aaaaaaag(T72, T73, T74, T78, T79, X125, X126, X127, split12_out_aaaa(T72, .(T73, T74), T78, T79)) → U5_aaaaaaag(T72, T73, T74, T78, T79, X125, X126, X127, ms38_in_aa(T78, X125))
U5_aaaaaaag(T72, T73, T74, T78, T79, X125, X126, X127, ms38_out_aa(T78, X125)) → p34_out_aaaaaaag(T72, T73, T74, T78, T79, X125, X126, X127)
p34_in_aaaaaaag(T72, T73, T74, T78, T84, T83, X126, X127) → U6_aaaaaaag(T72, T73, T74, T78, T84, T83, X126, X127, split12_in_aaaa(T72, .(T73, T74), T78, T84))
U6_aaaaaaag(T72, T73, T74, T78, T84, T83, X126, X127, split12_out_aaaa(T72, .(T73, T74), T78, T84)) → U7_aaaaaaag(T72, T73, T74, T78, T84, T83, X126, X127, ms38_in_aa(T78, T83))
U7_aaaaaaag(T72, T73, T74, T78, T84, T83, X126, X127, ms38_out_aa(T78, T83)) → U8_aaaaaaag(T72, T73, T74, T78, T84, T83, X126, X127, ms38_in_aa(T84, X126))
U8_aaaaaaag(T72, T73, T74, T78, T84, T83, X126, X127, ms38_out_aa(T84, X126)) → p34_out_aaaaaaag(T72, T73, T74, T78, T84, T83, X126, X127)
p34_in_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127) → U9_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127, split12_in_aaaa(T72, .(T73, T74), T78, T84))
U9_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127, split12_out_aaaa(T72, .(T73, T74), T78, T84)) → U10_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127, ms38_in_aa(T78, T106))
U10_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127, ms38_out_aa(T78, T106)) → U11_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127, ms38_in_aa(T84, T105))
U11_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127, ms38_out_aa(T84, T105)) → U12_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127, merge54_in_aag(T106, T105, X127))
merge54_in_aag([], T113, T113) → merge54_out_aag([], T113, T113)
merge54_in_aag(T118, [], T118) → merge54_out_aag(T118, [], T118)
merge54_in_aag(.(T139, T141), .(T140, T142), .(T139, X226)) → U14_aag(T139, T141, T140, T142, X226, less70_in_ga(T139, T140))
less70_in_ga(0, T154) → less70_out_ga(0, T154)
less70_in_ga(s(T161), T162) → U22_ga(T161, T162, less78_in_ga(T161, T162))
less78_in_ga(0, s(T169)) → less78_out_ga(0, s(T169))
less78_in_ga(s(T176), s(T177)) → U20_ga(T176, T177, less78_in_ga(T176, T177))
U20_ga(T176, T177, less78_out_ga(T176, T177)) → less78_out_ga(s(T176), s(T177))
U22_ga(T161, T162, less78_out_ga(T161, T162)) → less70_out_ga(s(T161), T162)
U14_aag(T139, T141, T140, T142, X226, less70_out_ga(T139, T140)) → merge54_out_aag(.(T139, T141), .(T140, T142), .(T139, X226))
merge54_in_aag(.(T139, T145), .(T146, T147), .(T139, X226)) → U15_aag(T139, T145, T146, T147, X226, less70_in_ga(T139, T146))
U15_aag(T139, T145, T146, T147, X226, less70_out_ga(T139, T146)) → U16_aag(T139, T145, T146, T147, X226, merge54_in_aag(T145, .(T146, T147), X226))
merge54_in_aag(.(T197, T199), .(T196, T198), .(T196, X287)) → U17_aag(T197, T199, T196, T198, X287, less78_in_ga(T196, T197))
U17_aag(T197, T199, T196, T198, X287, less78_out_ga(T196, T197)) → merge54_out_aag(.(T197, T199), .(T196, T198), .(T196, X287))
merge54_in_aag(.(T202, T203), .(T196, T204), .(T196, X287)) → U18_aag(T202, T203, T196, T204, X287, less78_in_ga(T196, T202))
U18_aag(T202, T203, T196, T204, X287, less78_out_ga(T196, T202)) → U19_aag(T202, T203, T196, T204, X287, merge54_in_aag(.(T202, T203), T204, X287))
U19_aag(T202, T203, T196, T204, X287, merge54_out_aag(.(T202, T203), T204, X287)) → merge54_out_aag(.(T202, T203), .(T196, T204), .(T196, X287))
U16_aag(T139, T145, T146, T147, X226, merge54_out_aag(T145, .(T146, T147), X226)) → merge54_out_aag(.(T139, T145), .(T146, T147), .(T139, X226))
U12_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127, merge54_out_aag(T106, T105, X127)) → p34_out_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127)
U21_aag(T72, T73, T74, X127, p34_out_aaaaaaag(T72, T73, T74, X123, X124, X125, X126, X127)) → ms25_out_aag(T72, .(T73, T74), X127)
U51_ag(T267, T260, T261, T291, T273, ms25_out_aag(T267, T266, [])) → U52_ag(T267, T260, T261, T291, ms38_in_ag(T273, .(T291, [])))
ms38_in_ag([], []) → ms38_out_ag([], [])
ms38_in_ag(.(T89, []), .(T89, [])) → ms38_out_ag(.(T89, []), .(T89, []))
ms38_in_ag(.(T99, .(T100, T101)), X172) → U13_ag(T99, T100, T101, X172, p34_in_aaaaaaag(T99, T100, T101, X168, X169, X170, X171, X172))
U13_ag(T99, T100, T101, X172, p34_out_aaaaaaag(T99, T100, T101, X168, X169, X170, X171, X172)) → ms38_out_ag(.(T99, .(T100, T101)), X172)
U52_ag(T267, T260, T261, T291, ms38_out_ag(T273, .(T291, []))) → ms1_out_ag(.(T267, .(T260, T261)), .(T291, []))
ms1_in_ag(.(T267, .(T260, T261)), .(T301, [])) → U53_ag(T267, T260, T261, T301, split12_in_aaaa(T260, T261, T273, T266))
U53_ag(T267, T260, T261, T301, split12_out_aaaa(T260, T261, T273, T266)) → U54_ag(T267, T260, T261, T301, T273, ms25_in_aag(T267, T266, .(T301, [])))
U54_ag(T267, T260, T261, T301, T273, ms25_out_aag(T267, T266, .(T301, []))) → U55_ag(T267, T260, T261, T301, ms38_in_ag(T273, []))
U55_ag(T267, T260, T261, T301, ms38_out_ag(T273, [])) → ms1_out_ag(.(T267, .(T260, T261)), .(T301, []))
ms1_in_ag(.(T267, .(T260, T261)), .(T318, [])) → U56_ag(T267, T260, T261, T318, split12_in_aaaa(T260, T261, T273, T266))
U56_ag(T267, T260, T261, T318, split12_out_aaaa(T260, T261, T273, T266)) → U57_ag(T267, T260, T261, T318, T273, ms25_in_aaa(T267, T266, .(T318, T323)))
U57_ag(T267, T260, T261, T318, T273, ms25_out_aaa(T267, T266, .(T318, T323))) → U58_ag(T267, T260, T261, T318, ms38_in_aa(T273, .(T322, T324)))
U58_ag(T267, T260, T261, T318, ms38_out_aa(T273, .(T322, T324))) → U59_ag(T267, T260, T261, T318, less70_in_ga(T318, T322))
U59_ag(T267, T260, T261, T318, less70_out_ga(T318, T322)) → ms1_out_ag(.(T267, .(T260, T261)), .(T318, []))
U56_ag(T267, T260, T261, T318, split12_out_aaaa(T260, T261, T273, T266)) → U60_ag(T267, T260, T261, T318, T273, ms25_in_aaa(T267, T266, .(T318, T327)))
U60_ag(T267, T260, T261, T318, T273, ms25_out_aaa(T267, T266, .(T318, T327))) → U61_ag(T267, T260, T261, T318, T327, ms38_in_aa(T273, .(T328, T329)))
U61_ag(T267, T260, T261, T318, T327, ms38_out_aa(T273, .(T328, T329))) → U62_ag(T267, T260, T261, T318, T327, T328, T329, less70_in_ga(T318, T328))
U62_ag(T267, T260, T261, T318, T327, T328, T329, less70_out_ga(T318, T328)) → U63_ag(T267, T260, T261, T318, merge93_in_aa(T327, .(T328, T329)))
U63_ag(T267, T260, T261, T318, merge93_out_aa(T327, .(T328, T329))) → ms1_out_ag(.(T267, .(T260, T261)), .(T318, []))
ms1_in_ag(.(T267, .(T260, T261)), .(T356, [])) → U64_ag(T267, T260, T261, T356, split12_in_aaaa(T260, T261, T273, T266))
U64_ag(T267, T260, T261, T356, split12_out_aaaa(T260, T261, T273, T266)) → U65_ag(T267, T260, T261, T356, T273, ms25_in_aaa(T267, T266, .(T358, T360)))
U65_ag(T267, T260, T261, T356, T273, ms25_out_aaa(T267, T266, .(T358, T360))) → U66_ag(T267, T260, T261, T356, T358, ms38_in_aa(T273, .(T356, T359)))
U66_ag(T267, T260, T261, T356, T358, ms38_out_aa(T273, .(T356, T359))) → U67_ag(T267, T260, T261, T356, less78_in_ga(T356, T358))
U67_ag(T267, T260, T261, T356, less78_out_ga(T356, T358)) → ms1_out_ag(.(T267, .(T260, T261)), .(T356, []))
U64_ag(T267, T260, T261, T356, split12_out_aaaa(T260, T261, T273, T266)) → U68_ag(T267, T260, T261, T356, T273, ms25_in_aaa(T267, T266, .(T363, T364)))
U68_ag(T267, T260, T261, T356, T273, ms25_out_aaa(T267, T266, .(T363, T364))) → U69_ag(T267, T260, T261, T356, T363, T364, ms38_in_aa(T273, .(T356, T365)))
U69_ag(T267, T260, T261, T356, T363, T364, ms38_out_aa(T273, .(T356, T365))) → U70_ag(T267, T260, T261, T356, T363, T364, T365, less78_in_ga(T356, T363))
U70_ag(T267, T260, T261, T356, T363, T364, T365, less78_out_ga(T356, T363)) → U71_ag(T267, T260, T261, T356, merge93_in_aa(.(T363, T364), T365))
U71_ag(T267, T260, T261, T356, merge93_out_aa(.(T363, T364), T365)) → ms1_out_ag(.(T267, .(T260, T261)), .(T356, []))
ms1_in_ag(.(T407, .(T405, T406)), T387) → U72_ag(T407, T405, T406, T387, split12_in_aaaa(T405, T406, X523, X522))
U72_ag(T407, T405, T406, T387, split12_out_aaaa(T405, T406, X523, X522)) → ms1_out_ag(.(T407, .(T405, T406)), T387)
ms1_in_ag(.(T412, .(T405, T406)), T387) → U73_ag(T412, T405, T406, T387, split12_in_aaaa(T405, T406, T410, T411))
U73_ag(T412, T405, T406, T387, split12_out_aaaa(T405, T406, T410, T411)) → U74_ag(T412, T405, T406, T387, ms25_in_aaa(T412, T411, X494))
U74_ag(T412, T405, T406, T387, ms25_out_aaa(T412, T411, X494)) → ms1_out_ag(.(T412, .(T405, T406)), T387)
ms1_in_ag(.(T412, .(T405, T406)), T387) → U75_ag(T412, T405, T406, T387, split12_in_aaaa(T405, T406, T420, T411))
U75_ag(T412, T405, T406, T387, split12_out_aaaa(T405, T406, T420, T411)) → U76_ag(T412, T405, T406, T387, T420, ms25_in_aaa(T412, T411, T419))
U76_ag(T412, T405, T406, T387, T420, ms25_out_aaa(T412, T411, T419)) → U77_ag(T412, T405, T406, T387, ms38_in_aa(T420, X495))
U77_ag(T412, T405, T406, T387, ms38_out_aa(T420, X495)) → ms1_out_ag(.(T412, .(T405, T406)), T387)
ms1_in_ag(.(T412, .(T405, T406)), T435) → U78_ag(T412, T405, T406, T435, split12_in_aaaa(T405, T406, T420, T411))
U78_ag(T412, T405, T406, T435, split12_out_aaaa(T405, T406, T420, T411)) → U79_ag(T412, T405, T406, T435, T420, ms25_in_aag(T412, T411, []))
U79_ag(T412, T405, T406, T435, T420, ms25_out_aag(T412, T411, [])) → U80_ag(T412, T405, T406, T435, ms38_in_ag(T420, T435))
U80_ag(T412, T405, T406, T435, ms38_out_ag(T420, T435)) → ms1_out_ag(.(T412, .(T405, T406)), T435)
ms1_in_ag(.(T412, .(T405, T406)), T440) → U81_ag(T412, T405, T406, T440, split12_in_aaaa(T405, T406, T420, T411))
U81_ag(T412, T405, T406, T440, split12_out_aaaa(T405, T406, T420, T411)) → U82_ag(T412, T405, T406, T440, T420, ms25_in_aag(T412, T411, T440))
U82_ag(T412, T405, T406, T440, T420, ms25_out_aag(T412, T411, T440)) → U83_ag(T412, T405, T406, T440, ms38_in_ag(T420, []))
U83_ag(T412, T405, T406, T440, ms38_out_ag(T420, [])) → ms1_out_ag(.(T412, .(T405, T406)), T440)
ms1_in_ag(.(T412, .(T405, T406)), .(T461, T465)) → U84_ag(T412, T405, T406, T461, T465, split12_in_aaaa(T405, T406, T420, T411))
U84_ag(T412, T405, T406, T461, T465, split12_out_aaaa(T405, T406, T420, T411)) → U85_ag(T412, T405, T406, T461, T465, T420, ms25_in_aaa(T412, T411, .(T461, T467)))
U85_ag(T412, T405, T406, T461, T465, T420, ms25_out_aaa(T412, T411, .(T461, T467))) → U86_ag(T412, T405, T406, T461, T465, ms38_in_aa(T420, .(T466, T468)))
U86_ag(T412, T405, T406, T461, T465, ms38_out_aa(T420, .(T466, T468))) → U87_ag(T412, T405, T406, T461, T465, less70_in_ga(T461, T466))
U87_ag(T412, T405, T406, T461, T465, less70_out_ga(T461, T466)) → ms1_out_ag(.(T412, .(T405, T406)), .(T461, T465))
ms1_in_ag(.(T412, .(T405, T406)), .(T461, .(T490, T491))) → U88_ag(T412, T405, T406, T461, T490, T491, split12_in_aaaa(T405, T406, T420, T411))
U88_ag(T412, T405, T406, T461, T490, T491, split12_out_aaaa(T405, T406, T420, T411)) → U89_ag(T412, T405, T406, T461, T490, T491, T420, ms25_in_aag(T412, T411, .(T461, [])))
U89_ag(T412, T405, T406, T461, T490, T491, T420, ms25_out_aag(T412, T411, .(T461, []))) → U90_ag(T412, T405, T406, T461, T490, T491, ms38_in_ag(T420, .(T490, T491)))
U90_ag(T412, T405, T406, T461, T490, T491, ms38_out_ag(T420, .(T490, T491))) → U91_ag(T412, T405, T406, T461, T490, T491, less70_in_gg(T461, T490))
less70_in_gg(0, T154) → less70_out_gg(0, T154)
less70_in_gg(s(T161), T162) → U22_gg(T161, T162, less78_in_gg(T161, T162))
less78_in_gg(0, s(T169)) → less78_out_gg(0, s(T169))
less78_in_gg(s(T176), s(T177)) → U20_gg(T176, T177, less78_in_gg(T176, T177))
U20_gg(T176, T177, less78_out_gg(T176, T177)) → less78_out_gg(s(T176), s(T177))
U22_gg(T161, T162, less78_out_gg(T161, T162)) → less70_out_gg(s(T161), T162)
U91_ag(T412, T405, T406, T461, T490, T491, less70_out_gg(T461, T490)) → ms1_out_ag(.(T412, .(T405, T406)), .(T461, .(T490, T491)))
ms1_in_ag(.(T412, .(T405, T406)), .(T461, .(T513, T517))) → U92_ag(T412, T405, T406, T461, T513, T517, split12_in_aaaa(T405, T406, T420, T411))
U92_ag(T412, T405, T406, T461, T513, T517, split12_out_aaaa(T405, T406, T420, T411)) → U93_ag(T412, T405, T406, T461, T513, T517, T420, ms25_in_aaa(T412, T411, .(T461, .(T513, T519))))
U93_ag(T412, T405, T406, T461, T513, T517, T420, ms25_out_aaa(T412, T411, .(T461, .(T513, T519)))) → U94_ag(T412, T405, T406, T461, T513, T517, T519, ms38_in_aa(T420, .(T518, T520)))
U94_ag(T412, T405, T406, T461, T513, T517, T519, ms38_out_aa(T420, .(T518, T520))) → U95_ag(T412, T405, T406, T461, T513, T517, T519, T518, T520, less70_in_ga(T461, T518))
U95_ag(T412, T405, T406, T461, T513, T517, T519, T518, T520, less70_out_ga(T461, T518)) → U96_ag(T412, T405, T406, T461, T513, T517, p179_in_gaaag(T513, T518, T519, T520, T517))
p179_in_gaaag(T513, T518, T519, T520, T517) → U23_gaaag(T513, T518, T519, T520, T517, less70_in_ga(T513, T518))
U23_gaaag(T513, T518, T519, T520, T517, less70_out_ga(T513, T518)) → p179_out_gaaag(T513, T518, T519, T520, T517)
p179_in_gaaag(T513, T540, [], T541, .(T540, T541)) → U24_gaaag(T513, T540, T541, less70_in_gg(T513, T540))
U24_gaaag(T513, T540, T541, less70_out_gg(T513, T540)) → p179_out_gaaag(T513, T540, [], T541, .(T540, T541))
p179_in_gaaag(T513, T568, .(T563, T569), T570, .(T563, T567)) → U25_gaaag(T513, T568, T563, T569, T570, T567, less70_in_ga(T513, T568))
U25_gaaag(T513, T568, T563, T569, T570, T567, less70_out_ga(T513, T568)) → U26_gaaag(T513, T568, T563, T569, T570, T567, p179_in_gaaag(T563, T568, T569, T570, T567))
p179_in_gaaag(T513, T585, .(T588, T590), T589, .(T585, T587)) → U27_gaaag(T513, T585, T588, T590, T589, T587, less70_in_gg(T513, T585))
U27_gaaag(T513, T585, T588, T590, T589, T587, less70_out_gg(T513, T585)) → U28_gaaag(T513, T585, T588, T590, T589, T587, p194_in_gaaag(T585, T588, T590, T589, T587))
p194_in_gaaag(T585, T588, T590, T589, T587) → U29_gaaag(T585, T588, T590, T589, T587, less78_in_ga(T585, T588))
U29_gaaag(T585, T588, T590, T589, T587, less78_out_ga(T585, T588)) → p194_out_gaaag(T585, T588, T590, T589, T587)
p194_in_gaaag(T585, T610, T611, [], .(T610, T611)) → U30_gaaag(T585, T610, T611, less78_in_gg(T585, T610))
U30_gaaag(T585, T610, T611, less78_out_gg(T585, T610)) → p194_out_gaaag(T585, T610, T611, [], .(T610, T611))
p194_in_gaaag(T585, T632, T638, .(T637, T639), .(T632, T636)) → U31_gaaag(T585, T632, T638, T637, T639, T636, less78_in_gg(T585, T632))
U31_gaaag(T585, T632, T638, T637, T639, T636, less78_out_gg(T585, T632)) → U32_gaaag(T585, T632, T638, T637, T639, T636, p179_in_gaaag(T632, T637, T638, T639, T636))
U32_gaaag(T585, T632, T638, T637, T639, T636, p179_out_gaaag(T632, T637, T638, T639, T636)) → p194_out_gaaag(T585, T632, T638, .(T637, T639), .(T632, T636))
p194_in_gaaag(T585, T657, T659, .(T654, T658), .(T654, T656)) → U33_gaaag(T585, T657, T659, T654, T658, T656, less78_in_ga(T585, T657))
U33_gaaag(T585, T657, T659, T654, T658, T656, less78_out_ga(T585, T657)) → U34_gaaag(T585, T657, T659, T654, T658, T656, p194_in_gaaag(T654, T657, T659, T658, T656))
U34_gaaag(T585, T657, T659, T654, T658, T656, p194_out_gaaag(T654, T657, T659, T658, T656)) → p194_out_gaaag(T585, T657, T659, .(T654, T658), .(T654, T656))
U28_gaaag(T513, T585, T588, T590, T589, T587, p194_out_gaaag(T585, T588, T590, T589, T587)) → p179_out_gaaag(T513, T585, .(T588, T590), T589, .(T585, T587))
U26_gaaag(T513, T568, T563, T569, T570, T567, p179_out_gaaag(T563, T568, T569, T570, T567)) → p179_out_gaaag(T513, T568, .(T563, T569), T570, .(T563, T567))
U96_ag(T412, T405, T406, T461, T513, T517, p179_out_gaaag(T513, T518, T519, T520, T517)) → ms1_out_ag(.(T412, .(T405, T406)), .(T461, .(T513, T517)))
ms1_in_ag(.(T412, .(T405, T406)), .(T461, .(T674, T676))) → U97_ag(T412, T405, T406, T461, T674, T676, split12_in_aaaa(T405, T406, T420, T411))
U97_ag(T412, T405, T406, T461, T674, T676, split12_out_aaaa(T405, T406, T420, T411)) → U98_ag(T412, T405, T406, T461, T674, T676, T420, ms25_in_aaa(T412, T411, .(T461, .(T677, T679))))
U98_ag(T412, T405, T406, T461, T674, T676, T420, ms25_out_aaa(T412, T411, .(T461, .(T677, T679)))) → U99_ag(T412, T405, T406, T461, T674, T676, T677, T679, ms38_in_aa(T420, .(T674, T678)))
U99_ag(T412, T405, T406, T461, T674, T676, T677, T679, ms38_out_aa(T420, .(T674, T678))) → U100_ag(T412, T405, T406, T461, T674, T676, T677, T679, T678, less70_in_gg(T461, T674))
U100_ag(T412, T405, T406, T461, T674, T676, T677, T679, T678, less70_out_gg(T461, T674)) → U101_ag(T412, T405, T406, T461, T674, T676, p194_in_gaaag(T674, T677, T679, T678, T676))
U101_ag(T412, T405, T406, T461, T674, T676, p194_out_gaaag(T674, T677, T679, T678, T676)) → ms1_out_ag(.(T412, .(T405, T406)), .(T461, .(T674, T676)))
ms1_in_ag(.(T412, .(T405, T406)), .(T694, T696)) → U102_ag(T412, T405, T406, T694, T696, split12_in_aaaa(T405, T406, T420, T411))
U102_ag(T412, T405, T406, T694, T696, split12_out_aaaa(T405, T406, T420, T411)) → U103_ag(T412, T405, T406, T694, T696, T420, ms25_in_aaa(T412, T411, .(T697, T699)))
U103_ag(T412, T405, T406, T694, T696, T420, ms25_out_aaa(T412, T411, .(T697, T699))) → U104_ag(T412, T405, T406, T694, T696, T697, T699, ms38_in_aa(T420, .(T694, T698)))
U104_ag(T412, T405, T406, T694, T696, T697, T699, ms38_out_aa(T420, .(T694, T698))) → U105_ag(T412, T405, T406, T694, T696, p194_in_gaaag(T694, T697, T699, T698, T696))
U105_ag(T412, T405, T406, T694, T696, p194_out_gaaag(T694, T697, T699, T698, T696)) → ms1_out_ag(.(T412, .(T405, T406)), .(T694, T696))
LESS78_IN_GA(s(T176), s(T177)) → LESS78_IN_GA(T176, T177)
LESS78_IN_GA(s(T176)) → LESS78_IN_GA(T176)
From the DPs we obtained the following set of size-change graphs:
P179_IN_GAAAG(T513, T568, .(T563, T569), T570, .(T563, T567)) → U25_GAAAG(T513, T568, T563, T569, T570, T567, less70_in_ga(T513, T568))
U25_GAAAG(T513, T568, T563, T569, T570, T567, less70_out_ga(T513, T568)) → P179_IN_GAAAG(T563, T568, T569, T570, T567)
P179_IN_GAAAG(T513, T585, .(T588, T590), T589, .(T585, T587)) → U27_GAAAG(T513, T585, T588, T590, T589, T587, less70_in_gg(T513, T585))
U27_GAAAG(T513, T585, T588, T590, T589, T587, less70_out_gg(T513, T585)) → P194_IN_GAAAG(T585, T588, T590, T589, T587)
P194_IN_GAAAG(T585, T632, T638, .(T637, T639), .(T632, T636)) → U31_GAAAG(T585, T632, T638, T637, T639, T636, less78_in_gg(T585, T632))
U31_GAAAG(T585, T632, T638, T637, T639, T636, less78_out_gg(T585, T632)) → P179_IN_GAAAG(T632, T637, T638, T639, T636)
P194_IN_GAAAG(T585, T657, T659, .(T654, T658), .(T654, T656)) → U33_GAAAG(T585, T657, T659, T654, T658, T656, less78_in_ga(T585, T657))
U33_GAAAG(T585, T657, T659, T654, T658, T656, less78_out_ga(T585, T657)) → P194_IN_GAAAG(T654, T657, T659, T658, T656)
ms1_in_ag([], []) → ms1_out_ag([], [])
ms1_in_ag(.(T29, .(T27, T28)), []) → U35_ag(T29, T27, T28, split12_in_aaaa(T27, T28, X42, X41))
split12_in_aaaa(T42, T44, .(T42, X71), X72) → U2_aaaa(T42, T44, X71, X72, split16_in_aaa(T44, X72, X71))
split16_in_aaa([], [], []) → split16_out_aaa([], [], [])
split16_in_aaa(.(T49, T51), .(T49, X89), X90) → U1_aaa(T49, T51, X89, X90, split16_in_aaa(T51, X90, X89))
U1_aaa(T49, T51, X89, X90, split16_out_aaa(T51, X90, X89)) → split16_out_aaa(.(T49, T51), .(T49, X89), X90)
U2_aaaa(T42, T44, X71, X72, split16_out_aaa(T44, X72, X71)) → split12_out_aaaa(T42, T44, .(T42, X71), X72)
U35_ag(T29, T27, T28, split12_out_aaaa(T27, T28, X42, X41)) → ms1_out_ag(.(T29, .(T27, T28)), [])
ms1_in_ag(.(T34, .(T27, T28)), []) → U36_ag(T34, T27, T28, split12_in_aaaa(T27, T28, T32, T33))
U36_ag(T34, T27, T28, split12_out_aaaa(T27, T28, T32, T33)) → U37_ag(T34, T27, T28, ms25_in_aaa(T34, T33, X13))
ms25_in_aaa(T62, [], .(T62, [])) → ms25_out_aaa(T62, [], .(T62, []))
ms25_in_aaa(T72, .(T73, T74), X127) → U21_aaa(T72, T73, T74, X127, p34_in_aaaaaaaa(T72, T73, T74, X123, X124, X125, X126, X127))
p34_in_aaaaaaaa(T72, T73, T74, X123, X124, X125, X126, X127) → U3_aaaaaaaa(T72, T73, T74, X123, X124, X125, X126, X127, split12_in_aaaa(T72, .(T73, T74), X123, X124))
U3_aaaaaaaa(T72, T73, T74, X123, X124, X125, X126, X127, split12_out_aaaa(T72, .(T73, T74), X123, X124)) → p34_out_aaaaaaaa(T72, T73, T74, X123, X124, X125, X126, X127)
p34_in_aaaaaaaa(T72, T73, T74, T78, T79, X125, X126, X127) → U4_aaaaaaaa(T72, T73, T74, T78, T79, X125, X126, X127, split12_in_aaaa(T72, .(T73, T74), T78, T79))
U4_aaaaaaaa(T72, T73, T74, T78, T79, X125, X126, X127, split12_out_aaaa(T72, .(T73, T74), T78, T79)) → U5_aaaaaaaa(T72, T73, T74, T78, T79, X125, X126, X127, ms38_in_aa(T78, X125))
ms38_in_aa([], []) → ms38_out_aa([], [])
ms38_in_aa(.(T89, []), .(T89, [])) → ms38_out_aa(.(T89, []), .(T89, []))
ms38_in_aa(.(T99, .(T100, T101)), X172) → U13_aa(T99, T100, T101, X172, p34_in_aaaaaaaa(T99, T100, T101, X168, X169, X170, X171, X172))
p34_in_aaaaaaaa(T72, T73, T74, T78, T84, T83, X126, X127) → U6_aaaaaaaa(T72, T73, T74, T78, T84, T83, X126, X127, split12_in_aaaa(T72, .(T73, T74), T78, T84))
U6_aaaaaaaa(T72, T73, T74, T78, T84, T83, X126, X127, split12_out_aaaa(T72, .(T73, T74), T78, T84)) → U7_aaaaaaaa(T72, T73, T74, T78, T84, T83, X126, X127, ms38_in_aa(T78, T83))
U7_aaaaaaaa(T72, T73, T74, T78, T84, T83, X126, X127, ms38_out_aa(T78, T83)) → U8_aaaaaaaa(T72, T73, T74, T78, T84, T83, X126, X127, ms38_in_aa(T84, X126))
U8_aaaaaaaa(T72, T73, T74, T78, T84, T83, X126, X127, ms38_out_aa(T84, X126)) → p34_out_aaaaaaaa(T72, T73, T74, T78, T84, T83, X126, X127)
p34_in_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127) → U9_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127, split12_in_aaaa(T72, .(T73, T74), T78, T84))
U9_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127, split12_out_aaaa(T72, .(T73, T74), T78, T84)) → U10_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127, ms38_in_aa(T78, T106))
U10_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127, ms38_out_aa(T78, T106)) → U11_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127, ms38_in_aa(T84, T105))
U11_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127, ms38_out_aa(T84, T105)) → U12_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127, merge54_in_aaa(T106, T105, X127))
merge54_in_aaa([], T113, T113) → merge54_out_aaa([], T113, T113)
merge54_in_aaa(T118, [], T118) → merge54_out_aaa(T118, [], T118)
merge54_in_aaa(.(T139, T141), .(T140, T142), .(T139, X226)) → U14_aaa(T139, T141, T140, T142, X226, less70_in_aa(T139, T140))
less70_in_aa(0, T154) → less70_out_aa(0, T154)
less70_in_aa(s(T161), T162) → U22_aa(T161, T162, less78_in_aa(T161, T162))
less78_in_aa(0, s(T169)) → less78_out_aa(0, s(T169))
less78_in_aa(s(T176), s(T177)) → U20_aa(T176, T177, less78_in_aa(T176, T177))
U20_aa(T176, T177, less78_out_aa(T176, T177)) → less78_out_aa(s(T176), s(T177))
U22_aa(T161, T162, less78_out_aa(T161, T162)) → less70_out_aa(s(T161), T162)
U14_aaa(T139, T141, T140, T142, X226, less70_out_aa(T139, T140)) → merge54_out_aaa(.(T139, T141), .(T140, T142), .(T139, X226))
merge54_in_aaa(.(T139, T145), .(T146, T147), .(T139, X226)) → U15_aaa(T139, T145, T146, T147, X226, less70_in_aa(T139, T146))
U15_aaa(T139, T145, T146, T147, X226, less70_out_aa(T139, T146)) → U16_aaa(T139, T145, T146, T147, X226, merge54_in_aaa(T145, .(T146, T147), X226))
merge54_in_aaa(.(T197, T199), .(T196, T198), .(T196, X287)) → U17_aaa(T197, T199, T196, T198, X287, less78_in_aa(T196, T197))
U17_aaa(T197, T199, T196, T198, X287, less78_out_aa(T196, T197)) → merge54_out_aaa(.(T197, T199), .(T196, T198), .(T196, X287))
merge54_in_aaa(.(T202, T203), .(T196, T204), .(T196, X287)) → U18_aaa(T202, T203, T196, T204, X287, less78_in_aa(T196, T202))
U18_aaa(T202, T203, T196, T204, X287, less78_out_aa(T196, T202)) → U19_aaa(T202, T203, T196, T204, X287, merge54_in_aaa(.(T202, T203), T204, X287))
U19_aaa(T202, T203, T196, T204, X287, merge54_out_aaa(.(T202, T203), T204, X287)) → merge54_out_aaa(.(T202, T203), .(T196, T204), .(T196, X287))
U16_aaa(T139, T145, T146, T147, X226, merge54_out_aaa(T145, .(T146, T147), X226)) → merge54_out_aaa(.(T139, T145), .(T146, T147), .(T139, X226))
U12_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127, merge54_out_aaa(T106, T105, X127)) → p34_out_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127)
U13_aa(T99, T100, T101, X172, p34_out_aaaaaaaa(T99, T100, T101, X168, X169, X170, X171, X172)) → ms38_out_aa(.(T99, .(T100, T101)), X172)
U5_aaaaaaaa(T72, T73, T74, T78, T79, X125, X126, X127, ms38_out_aa(T78, X125)) → p34_out_aaaaaaaa(T72, T73, T74, T78, T79, X125, X126, X127)
U21_aaa(T72, T73, T74, X127, p34_out_aaaaaaaa(T72, T73, T74, X123, X124, X125, X126, X127)) → ms25_out_aaa(T72, .(T73, T74), X127)
U37_ag(T34, T27, T28, ms25_out_aaa(T34, T33, X13)) → ms1_out_ag(.(T34, .(T27, T28)), [])
ms1_in_ag(.(T34, .(T27, T28)), []) → U38_ag(T34, T27, T28, split12_in_aaaa(T27, T28, T55, T33))
U38_ag(T34, T27, T28, split12_out_aaaa(T27, T28, T55, T33)) → U39_ag(T34, T27, T28, T55, ms25_in_aaa(T34, T33, T54))
U39_ag(T34, T27, T28, T55, ms25_out_aaa(T34, T33, T54)) → U40_ag(T34, T27, T28, ms38_in_aa(T55, X14))
U40_ag(T34, T27, T28, ms38_out_aa(T55, X14)) → ms1_out_ag(.(T34, .(T27, T28)), [])
U38_ag(T34, T27, T28, split12_out_aaaa(T27, T28, T55, T33)) → U41_ag(T34, T27, T28, T55, ms25_in_aaa(T34, T33, T212))
U41_ag(T34, T27, T28, T55, ms25_out_aaa(T34, T33, T212)) → U42_ag(T34, T27, T28, T212, ms38_in_aa(T55, T211))
U42_ag(T34, T27, T28, T212, ms38_out_aa(T55, T211)) → U43_ag(T34, T27, T28, merge93_in_aa(T212, T211))
merge93_in_aa([], []) → merge93_out_aa([], [])
U43_ag(T34, T27, T28, merge93_out_aa(T212, T211)) → ms1_out_ag(.(T34, .(T27, T28)), [])
ms1_in_ag(.(T234, []), .(T234, [])) → ms1_out_ag(.(T234, []), .(T234, []))
ms1_in_ag(.(T262, .(T260, T261)), .(T242, [])) → U44_ag(T262, T260, T261, T242, split12_in_aaaa(T260, T261, X367, X366))
U44_ag(T262, T260, T261, T242, split12_out_aaaa(T260, T261, X367, X366)) → ms1_out_ag(.(T262, .(T260, T261)), .(T242, []))
ms1_in_ag(.(T267, .(T260, T261)), .(T242, [])) → U45_ag(T267, T260, T261, T242, split12_in_aaaa(T260, T261, T265, T266))
U45_ag(T267, T260, T261, T242, split12_out_aaaa(T260, T261, T265, T266)) → U46_ag(T267, T260, T261, T242, ms25_in_aaa(T267, T266, X338))
U46_ag(T267, T260, T261, T242, ms25_out_aaa(T267, T266, X338)) → ms1_out_ag(.(T267, .(T260, T261)), .(T242, []))
ms1_in_ag(.(T267, .(T260, T261)), .(T242, [])) → U47_ag(T267, T260, T261, T242, split12_in_aaaa(T260, T261, T273, T266))
U47_ag(T267, T260, T261, T242, split12_out_aaaa(T260, T261, T273, T266)) → U48_ag(T267, T260, T261, T242, T273, ms25_in_aaa(T267, T266, T272))
U48_ag(T267, T260, T261, T242, T273, ms25_out_aaa(T267, T266, T272)) → U49_ag(T267, T260, T261, T242, ms38_in_aa(T273, X339))
U49_ag(T267, T260, T261, T242, ms38_out_aa(T273, X339)) → ms1_out_ag(.(T267, .(T260, T261)), .(T242, []))
ms1_in_ag(.(T267, .(T260, T261)), .(T291, [])) → U50_ag(T267, T260, T261, T291, split12_in_aaaa(T260, T261, T273, T266))
U50_ag(T267, T260, T261, T291, split12_out_aaaa(T260, T261, T273, T266)) → U51_ag(T267, T260, T261, T291, T273, ms25_in_aag(T267, T266, []))
ms25_in_aag(T62, [], .(T62, [])) → ms25_out_aag(T62, [], .(T62, []))
ms25_in_aag(T72, .(T73, T74), X127) → U21_aag(T72, T73, T74, X127, p34_in_aaaaaaag(T72, T73, T74, X123, X124, X125, X126, X127))
p34_in_aaaaaaag(T72, T73, T74, X123, X124, X125, X126, X127) → U3_aaaaaaag(T72, T73, T74, X123, X124, X125, X126, X127, split12_in_aaaa(T72, .(T73, T74), X123, X124))
U3_aaaaaaag(T72, T73, T74, X123, X124, X125, X126, X127, split12_out_aaaa(T72, .(T73, T74), X123, X124)) → p34_out_aaaaaaag(T72, T73, T74, X123, X124, X125, X126, X127)
p34_in_aaaaaaag(T72, T73, T74, T78, T79, X125, X126, X127) → U4_aaaaaaag(T72, T73, T74, T78, T79, X125, X126, X127, split12_in_aaaa(T72, .(T73, T74), T78, T79))
U4_aaaaaaag(T72, T73, T74, T78, T79, X125, X126, X127, split12_out_aaaa(T72, .(T73, T74), T78, T79)) → U5_aaaaaaag(T72, T73, T74, T78, T79, X125, X126, X127, ms38_in_aa(T78, X125))
U5_aaaaaaag(T72, T73, T74, T78, T79, X125, X126, X127, ms38_out_aa(T78, X125)) → p34_out_aaaaaaag(T72, T73, T74, T78, T79, X125, X126, X127)
p34_in_aaaaaaag(T72, T73, T74, T78, T84, T83, X126, X127) → U6_aaaaaaag(T72, T73, T74, T78, T84, T83, X126, X127, split12_in_aaaa(T72, .(T73, T74), T78, T84))
U6_aaaaaaag(T72, T73, T74, T78, T84, T83, X126, X127, split12_out_aaaa(T72, .(T73, T74), T78, T84)) → U7_aaaaaaag(T72, T73, T74, T78, T84, T83, X126, X127, ms38_in_aa(T78, T83))
U7_aaaaaaag(T72, T73, T74, T78, T84, T83, X126, X127, ms38_out_aa(T78, T83)) → U8_aaaaaaag(T72, T73, T74, T78, T84, T83, X126, X127, ms38_in_aa(T84, X126))
U8_aaaaaaag(T72, T73, T74, T78, T84, T83, X126, X127, ms38_out_aa(T84, X126)) → p34_out_aaaaaaag(T72, T73, T74, T78, T84, T83, X126, X127)
p34_in_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127) → U9_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127, split12_in_aaaa(T72, .(T73, T74), T78, T84))
U9_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127, split12_out_aaaa(T72, .(T73, T74), T78, T84)) → U10_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127, ms38_in_aa(T78, T106))
U10_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127, ms38_out_aa(T78, T106)) → U11_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127, ms38_in_aa(T84, T105))
U11_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127, ms38_out_aa(T84, T105)) → U12_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127, merge54_in_aag(T106, T105, X127))
merge54_in_aag([], T113, T113) → merge54_out_aag([], T113, T113)
merge54_in_aag(T118, [], T118) → merge54_out_aag(T118, [], T118)
merge54_in_aag(.(T139, T141), .(T140, T142), .(T139, X226)) → U14_aag(T139, T141, T140, T142, X226, less70_in_ga(T139, T140))
less70_in_ga(0, T154) → less70_out_ga(0, T154)
less70_in_ga(s(T161), T162) → U22_ga(T161, T162, less78_in_ga(T161, T162))
less78_in_ga(0, s(T169)) → less78_out_ga(0, s(T169))
less78_in_ga(s(T176), s(T177)) → U20_ga(T176, T177, less78_in_ga(T176, T177))
U20_ga(T176, T177, less78_out_ga(T176, T177)) → less78_out_ga(s(T176), s(T177))
U22_ga(T161, T162, less78_out_ga(T161, T162)) → less70_out_ga(s(T161), T162)
U14_aag(T139, T141, T140, T142, X226, less70_out_ga(T139, T140)) → merge54_out_aag(.(T139, T141), .(T140, T142), .(T139, X226))
merge54_in_aag(.(T139, T145), .(T146, T147), .(T139, X226)) → U15_aag(T139, T145, T146, T147, X226, less70_in_ga(T139, T146))
U15_aag(T139, T145, T146, T147, X226, less70_out_ga(T139, T146)) → U16_aag(T139, T145, T146, T147, X226, merge54_in_aag(T145, .(T146, T147), X226))
merge54_in_aag(.(T197, T199), .(T196, T198), .(T196, X287)) → U17_aag(T197, T199, T196, T198, X287, less78_in_ga(T196, T197))
U17_aag(T197, T199, T196, T198, X287, less78_out_ga(T196, T197)) → merge54_out_aag(.(T197, T199), .(T196, T198), .(T196, X287))
merge54_in_aag(.(T202, T203), .(T196, T204), .(T196, X287)) → U18_aag(T202, T203, T196, T204, X287, less78_in_ga(T196, T202))
U18_aag(T202, T203, T196, T204, X287, less78_out_ga(T196, T202)) → U19_aag(T202, T203, T196, T204, X287, merge54_in_aag(.(T202, T203), T204, X287))
U19_aag(T202, T203, T196, T204, X287, merge54_out_aag(.(T202, T203), T204, X287)) → merge54_out_aag(.(T202, T203), .(T196, T204), .(T196, X287))
U16_aag(T139, T145, T146, T147, X226, merge54_out_aag(T145, .(T146, T147), X226)) → merge54_out_aag(.(T139, T145), .(T146, T147), .(T139, X226))
U12_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127, merge54_out_aag(T106, T105, X127)) → p34_out_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127)
U21_aag(T72, T73, T74, X127, p34_out_aaaaaaag(T72, T73, T74, X123, X124, X125, X126, X127)) → ms25_out_aag(T72, .(T73, T74), X127)
U51_ag(T267, T260, T261, T291, T273, ms25_out_aag(T267, T266, [])) → U52_ag(T267, T260, T261, T291, ms38_in_ag(T273, .(T291, [])))
ms38_in_ag([], []) → ms38_out_ag([], [])
ms38_in_ag(.(T89, []), .(T89, [])) → ms38_out_ag(.(T89, []), .(T89, []))
ms38_in_ag(.(T99, .(T100, T101)), X172) → U13_ag(T99, T100, T101, X172, p34_in_aaaaaaag(T99, T100, T101, X168, X169, X170, X171, X172))
U13_ag(T99, T100, T101, X172, p34_out_aaaaaaag(T99, T100, T101, X168, X169, X170, X171, X172)) → ms38_out_ag(.(T99, .(T100, T101)), X172)
U52_ag(T267, T260, T261, T291, ms38_out_ag(T273, .(T291, []))) → ms1_out_ag(.(T267, .(T260, T261)), .(T291, []))
ms1_in_ag(.(T267, .(T260, T261)), .(T301, [])) → U53_ag(T267, T260, T261, T301, split12_in_aaaa(T260, T261, T273, T266))
U53_ag(T267, T260, T261, T301, split12_out_aaaa(T260, T261, T273, T266)) → U54_ag(T267, T260, T261, T301, T273, ms25_in_aag(T267, T266, .(T301, [])))
U54_ag(T267, T260, T261, T301, T273, ms25_out_aag(T267, T266, .(T301, []))) → U55_ag(T267, T260, T261, T301, ms38_in_ag(T273, []))
U55_ag(T267, T260, T261, T301, ms38_out_ag(T273, [])) → ms1_out_ag(.(T267, .(T260, T261)), .(T301, []))
ms1_in_ag(.(T267, .(T260, T261)), .(T318, [])) → U56_ag(T267, T260, T261, T318, split12_in_aaaa(T260, T261, T273, T266))
U56_ag(T267, T260, T261, T318, split12_out_aaaa(T260, T261, T273, T266)) → U57_ag(T267, T260, T261, T318, T273, ms25_in_aaa(T267, T266, .(T318, T323)))
U57_ag(T267, T260, T261, T318, T273, ms25_out_aaa(T267, T266, .(T318, T323))) → U58_ag(T267, T260, T261, T318, ms38_in_aa(T273, .(T322, T324)))
U58_ag(T267, T260, T261, T318, ms38_out_aa(T273, .(T322, T324))) → U59_ag(T267, T260, T261, T318, less70_in_ga(T318, T322))
U59_ag(T267, T260, T261, T318, less70_out_ga(T318, T322)) → ms1_out_ag(.(T267, .(T260, T261)), .(T318, []))
U56_ag(T267, T260, T261, T318, split12_out_aaaa(T260, T261, T273, T266)) → U60_ag(T267, T260, T261, T318, T273, ms25_in_aaa(T267, T266, .(T318, T327)))
U60_ag(T267, T260, T261, T318, T273, ms25_out_aaa(T267, T266, .(T318, T327))) → U61_ag(T267, T260, T261, T318, T327, ms38_in_aa(T273, .(T328, T329)))
U61_ag(T267, T260, T261, T318, T327, ms38_out_aa(T273, .(T328, T329))) → U62_ag(T267, T260, T261, T318, T327, T328, T329, less70_in_ga(T318, T328))
U62_ag(T267, T260, T261, T318, T327, T328, T329, less70_out_ga(T318, T328)) → U63_ag(T267, T260, T261, T318, merge93_in_aa(T327, .(T328, T329)))
U63_ag(T267, T260, T261, T318, merge93_out_aa(T327, .(T328, T329))) → ms1_out_ag(.(T267, .(T260, T261)), .(T318, []))
ms1_in_ag(.(T267, .(T260, T261)), .(T356, [])) → U64_ag(T267, T260, T261, T356, split12_in_aaaa(T260, T261, T273, T266))
U64_ag(T267, T260, T261, T356, split12_out_aaaa(T260, T261, T273, T266)) → U65_ag(T267, T260, T261, T356, T273, ms25_in_aaa(T267, T266, .(T358, T360)))
U65_ag(T267, T260, T261, T356, T273, ms25_out_aaa(T267, T266, .(T358, T360))) → U66_ag(T267, T260, T261, T356, T358, ms38_in_aa(T273, .(T356, T359)))
U66_ag(T267, T260, T261, T356, T358, ms38_out_aa(T273, .(T356, T359))) → U67_ag(T267, T260, T261, T356, less78_in_ga(T356, T358))
U67_ag(T267, T260, T261, T356, less78_out_ga(T356, T358)) → ms1_out_ag(.(T267, .(T260, T261)), .(T356, []))
U64_ag(T267, T260, T261, T356, split12_out_aaaa(T260, T261, T273, T266)) → U68_ag(T267, T260, T261, T356, T273, ms25_in_aaa(T267, T266, .(T363, T364)))
U68_ag(T267, T260, T261, T356, T273, ms25_out_aaa(T267, T266, .(T363, T364))) → U69_ag(T267, T260, T261, T356, T363, T364, ms38_in_aa(T273, .(T356, T365)))
U69_ag(T267, T260, T261, T356, T363, T364, ms38_out_aa(T273, .(T356, T365))) → U70_ag(T267, T260, T261, T356, T363, T364, T365, less78_in_ga(T356, T363))
U70_ag(T267, T260, T261, T356, T363, T364, T365, less78_out_ga(T356, T363)) → U71_ag(T267, T260, T261, T356, merge93_in_aa(.(T363, T364), T365))
U71_ag(T267, T260, T261, T356, merge93_out_aa(.(T363, T364), T365)) → ms1_out_ag(.(T267, .(T260, T261)), .(T356, []))
ms1_in_ag(.(T407, .(T405, T406)), T387) → U72_ag(T407, T405, T406, T387, split12_in_aaaa(T405, T406, X523, X522))
U72_ag(T407, T405, T406, T387, split12_out_aaaa(T405, T406, X523, X522)) → ms1_out_ag(.(T407, .(T405, T406)), T387)
ms1_in_ag(.(T412, .(T405, T406)), T387) → U73_ag(T412, T405, T406, T387, split12_in_aaaa(T405, T406, T410, T411))
U73_ag(T412, T405, T406, T387, split12_out_aaaa(T405, T406, T410, T411)) → U74_ag(T412, T405, T406, T387, ms25_in_aaa(T412, T411, X494))
U74_ag(T412, T405, T406, T387, ms25_out_aaa(T412, T411, X494)) → ms1_out_ag(.(T412, .(T405, T406)), T387)
ms1_in_ag(.(T412, .(T405, T406)), T387) → U75_ag(T412, T405, T406, T387, split12_in_aaaa(T405, T406, T420, T411))
U75_ag(T412, T405, T406, T387, split12_out_aaaa(T405, T406, T420, T411)) → U76_ag(T412, T405, T406, T387, T420, ms25_in_aaa(T412, T411, T419))
U76_ag(T412, T405, T406, T387, T420, ms25_out_aaa(T412, T411, T419)) → U77_ag(T412, T405, T406, T387, ms38_in_aa(T420, X495))
U77_ag(T412, T405, T406, T387, ms38_out_aa(T420, X495)) → ms1_out_ag(.(T412, .(T405, T406)), T387)
ms1_in_ag(.(T412, .(T405, T406)), T435) → U78_ag(T412, T405, T406, T435, split12_in_aaaa(T405, T406, T420, T411))
U78_ag(T412, T405, T406, T435, split12_out_aaaa(T405, T406, T420, T411)) → U79_ag(T412, T405, T406, T435, T420, ms25_in_aag(T412, T411, []))
U79_ag(T412, T405, T406, T435, T420, ms25_out_aag(T412, T411, [])) → U80_ag(T412, T405, T406, T435, ms38_in_ag(T420, T435))
U80_ag(T412, T405, T406, T435, ms38_out_ag(T420, T435)) → ms1_out_ag(.(T412, .(T405, T406)), T435)
ms1_in_ag(.(T412, .(T405, T406)), T440) → U81_ag(T412, T405, T406, T440, split12_in_aaaa(T405, T406, T420, T411))
U81_ag(T412, T405, T406, T440, split12_out_aaaa(T405, T406, T420, T411)) → U82_ag(T412, T405, T406, T440, T420, ms25_in_aag(T412, T411, T440))
U82_ag(T412, T405, T406, T440, T420, ms25_out_aag(T412, T411, T440)) → U83_ag(T412, T405, T406, T440, ms38_in_ag(T420, []))
U83_ag(T412, T405, T406, T440, ms38_out_ag(T420, [])) → ms1_out_ag(.(T412, .(T405, T406)), T440)
ms1_in_ag(.(T412, .(T405, T406)), .(T461, T465)) → U84_ag(T412, T405, T406, T461, T465, split12_in_aaaa(T405, T406, T420, T411))
U84_ag(T412, T405, T406, T461, T465, split12_out_aaaa(T405, T406, T420, T411)) → U85_ag(T412, T405, T406, T461, T465, T420, ms25_in_aaa(T412, T411, .(T461, T467)))
U85_ag(T412, T405, T406, T461, T465, T420, ms25_out_aaa(T412, T411, .(T461, T467))) → U86_ag(T412, T405, T406, T461, T465, ms38_in_aa(T420, .(T466, T468)))
U86_ag(T412, T405, T406, T461, T465, ms38_out_aa(T420, .(T466, T468))) → U87_ag(T412, T405, T406, T461, T465, less70_in_ga(T461, T466))
U87_ag(T412, T405, T406, T461, T465, less70_out_ga(T461, T466)) → ms1_out_ag(.(T412, .(T405, T406)), .(T461, T465))
ms1_in_ag(.(T412, .(T405, T406)), .(T461, .(T490, T491))) → U88_ag(T412, T405, T406, T461, T490, T491, split12_in_aaaa(T405, T406, T420, T411))
U88_ag(T412, T405, T406, T461, T490, T491, split12_out_aaaa(T405, T406, T420, T411)) → U89_ag(T412, T405, T406, T461, T490, T491, T420, ms25_in_aag(T412, T411, .(T461, [])))
U89_ag(T412, T405, T406, T461, T490, T491, T420, ms25_out_aag(T412, T411, .(T461, []))) → U90_ag(T412, T405, T406, T461, T490, T491, ms38_in_ag(T420, .(T490, T491)))
U90_ag(T412, T405, T406, T461, T490, T491, ms38_out_ag(T420, .(T490, T491))) → U91_ag(T412, T405, T406, T461, T490, T491, less70_in_gg(T461, T490))
less70_in_gg(0, T154) → less70_out_gg(0, T154)
less70_in_gg(s(T161), T162) → U22_gg(T161, T162, less78_in_gg(T161, T162))
less78_in_gg(0, s(T169)) → less78_out_gg(0, s(T169))
less78_in_gg(s(T176), s(T177)) → U20_gg(T176, T177, less78_in_gg(T176, T177))
U20_gg(T176, T177, less78_out_gg(T176, T177)) → less78_out_gg(s(T176), s(T177))
U22_gg(T161, T162, less78_out_gg(T161, T162)) → less70_out_gg(s(T161), T162)
U91_ag(T412, T405, T406, T461, T490, T491, less70_out_gg(T461, T490)) → ms1_out_ag(.(T412, .(T405, T406)), .(T461, .(T490, T491)))
ms1_in_ag(.(T412, .(T405, T406)), .(T461, .(T513, T517))) → U92_ag(T412, T405, T406, T461, T513, T517, split12_in_aaaa(T405, T406, T420, T411))
U92_ag(T412, T405, T406, T461, T513, T517, split12_out_aaaa(T405, T406, T420, T411)) → U93_ag(T412, T405, T406, T461, T513, T517, T420, ms25_in_aaa(T412, T411, .(T461, .(T513, T519))))
U93_ag(T412, T405, T406, T461, T513, T517, T420, ms25_out_aaa(T412, T411, .(T461, .(T513, T519)))) → U94_ag(T412, T405, T406, T461, T513, T517, T519, ms38_in_aa(T420, .(T518, T520)))
U94_ag(T412, T405, T406, T461, T513, T517, T519, ms38_out_aa(T420, .(T518, T520))) → U95_ag(T412, T405, T406, T461, T513, T517, T519, T518, T520, less70_in_ga(T461, T518))
U95_ag(T412, T405, T406, T461, T513, T517, T519, T518, T520, less70_out_ga(T461, T518)) → U96_ag(T412, T405, T406, T461, T513, T517, p179_in_gaaag(T513, T518, T519, T520, T517))
p179_in_gaaag(T513, T518, T519, T520, T517) → U23_gaaag(T513, T518, T519, T520, T517, less70_in_ga(T513, T518))
U23_gaaag(T513, T518, T519, T520, T517, less70_out_ga(T513, T518)) → p179_out_gaaag(T513, T518, T519, T520, T517)
p179_in_gaaag(T513, T540, [], T541, .(T540, T541)) → U24_gaaag(T513, T540, T541, less70_in_gg(T513, T540))
U24_gaaag(T513, T540, T541, less70_out_gg(T513, T540)) → p179_out_gaaag(T513, T540, [], T541, .(T540, T541))
p179_in_gaaag(T513, T568, .(T563, T569), T570, .(T563, T567)) → U25_gaaag(T513, T568, T563, T569, T570, T567, less70_in_ga(T513, T568))
U25_gaaag(T513, T568, T563, T569, T570, T567, less70_out_ga(T513, T568)) → U26_gaaag(T513, T568, T563, T569, T570, T567, p179_in_gaaag(T563, T568, T569, T570, T567))
p179_in_gaaag(T513, T585, .(T588, T590), T589, .(T585, T587)) → U27_gaaag(T513, T585, T588, T590, T589, T587, less70_in_gg(T513, T585))
U27_gaaag(T513, T585, T588, T590, T589, T587, less70_out_gg(T513, T585)) → U28_gaaag(T513, T585, T588, T590, T589, T587, p194_in_gaaag(T585, T588, T590, T589, T587))
p194_in_gaaag(T585, T588, T590, T589, T587) → U29_gaaag(T585, T588, T590, T589, T587, less78_in_ga(T585, T588))
U29_gaaag(T585, T588, T590, T589, T587, less78_out_ga(T585, T588)) → p194_out_gaaag(T585, T588, T590, T589, T587)
p194_in_gaaag(T585, T610, T611, [], .(T610, T611)) → U30_gaaag(T585, T610, T611, less78_in_gg(T585, T610))
U30_gaaag(T585, T610, T611, less78_out_gg(T585, T610)) → p194_out_gaaag(T585, T610, T611, [], .(T610, T611))
p194_in_gaaag(T585, T632, T638, .(T637, T639), .(T632, T636)) → U31_gaaag(T585, T632, T638, T637, T639, T636, less78_in_gg(T585, T632))
U31_gaaag(T585, T632, T638, T637, T639, T636, less78_out_gg(T585, T632)) → U32_gaaag(T585, T632, T638, T637, T639, T636, p179_in_gaaag(T632, T637, T638, T639, T636))
U32_gaaag(T585, T632, T638, T637, T639, T636, p179_out_gaaag(T632, T637, T638, T639, T636)) → p194_out_gaaag(T585, T632, T638, .(T637, T639), .(T632, T636))
p194_in_gaaag(T585, T657, T659, .(T654, T658), .(T654, T656)) → U33_gaaag(T585, T657, T659, T654, T658, T656, less78_in_ga(T585, T657))
U33_gaaag(T585, T657, T659, T654, T658, T656, less78_out_ga(T585, T657)) → U34_gaaag(T585, T657, T659, T654, T658, T656, p194_in_gaaag(T654, T657, T659, T658, T656))
U34_gaaag(T585, T657, T659, T654, T658, T656, p194_out_gaaag(T654, T657, T659, T658, T656)) → p194_out_gaaag(T585, T657, T659, .(T654, T658), .(T654, T656))
U28_gaaag(T513, T585, T588, T590, T589, T587, p194_out_gaaag(T585, T588, T590, T589, T587)) → p179_out_gaaag(T513, T585, .(T588, T590), T589, .(T585, T587))
U26_gaaag(T513, T568, T563, T569, T570, T567, p179_out_gaaag(T563, T568, T569, T570, T567)) → p179_out_gaaag(T513, T568, .(T563, T569), T570, .(T563, T567))
U96_ag(T412, T405, T406, T461, T513, T517, p179_out_gaaag(T513, T518, T519, T520, T517)) → ms1_out_ag(.(T412, .(T405, T406)), .(T461, .(T513, T517)))
ms1_in_ag(.(T412, .(T405, T406)), .(T461, .(T674, T676))) → U97_ag(T412, T405, T406, T461, T674, T676, split12_in_aaaa(T405, T406, T420, T411))
U97_ag(T412, T405, T406, T461, T674, T676, split12_out_aaaa(T405, T406, T420, T411)) → U98_ag(T412, T405, T406, T461, T674, T676, T420, ms25_in_aaa(T412, T411, .(T461, .(T677, T679))))
U98_ag(T412, T405, T406, T461, T674, T676, T420, ms25_out_aaa(T412, T411, .(T461, .(T677, T679)))) → U99_ag(T412, T405, T406, T461, T674, T676, T677, T679, ms38_in_aa(T420, .(T674, T678)))
U99_ag(T412, T405, T406, T461, T674, T676, T677, T679, ms38_out_aa(T420, .(T674, T678))) → U100_ag(T412, T405, T406, T461, T674, T676, T677, T679, T678, less70_in_gg(T461, T674))
U100_ag(T412, T405, T406, T461, T674, T676, T677, T679, T678, less70_out_gg(T461, T674)) → U101_ag(T412, T405, T406, T461, T674, T676, p194_in_gaaag(T674, T677, T679, T678, T676))
U101_ag(T412, T405, T406, T461, T674, T676, p194_out_gaaag(T674, T677, T679, T678, T676)) → ms1_out_ag(.(T412, .(T405, T406)), .(T461, .(T674, T676)))
ms1_in_ag(.(T412, .(T405, T406)), .(T694, T696)) → U102_ag(T412, T405, T406, T694, T696, split12_in_aaaa(T405, T406, T420, T411))
U102_ag(T412, T405, T406, T694, T696, split12_out_aaaa(T405, T406, T420, T411)) → U103_ag(T412, T405, T406, T694, T696, T420, ms25_in_aaa(T412, T411, .(T697, T699)))
U103_ag(T412, T405, T406, T694, T696, T420, ms25_out_aaa(T412, T411, .(T697, T699))) → U104_ag(T412, T405, T406, T694, T696, T697, T699, ms38_in_aa(T420, .(T694, T698)))
U104_ag(T412, T405, T406, T694, T696, T697, T699, ms38_out_aa(T420, .(T694, T698))) → U105_ag(T412, T405, T406, T694, T696, p194_in_gaaag(T694, T697, T699, T698, T696))
U105_ag(T412, T405, T406, T694, T696, p194_out_gaaag(T694, T697, T699, T698, T696)) → ms1_out_ag(.(T412, .(T405, T406)), .(T694, T696))
P179_IN_GAAAG(T513, T568, .(T563, T569), T570, .(T563, T567)) → U25_GAAAG(T513, T568, T563, T569, T570, T567, less70_in_ga(T513, T568))
U25_GAAAG(T513, T568, T563, T569, T570, T567, less70_out_ga(T513, T568)) → P179_IN_GAAAG(T563, T568, T569, T570, T567)
P179_IN_GAAAG(T513, T585, .(T588, T590), T589, .(T585, T587)) → U27_GAAAG(T513, T585, T588, T590, T589, T587, less70_in_gg(T513, T585))
U27_GAAAG(T513, T585, T588, T590, T589, T587, less70_out_gg(T513, T585)) → P194_IN_GAAAG(T585, T588, T590, T589, T587)
P194_IN_GAAAG(T585, T632, T638, .(T637, T639), .(T632, T636)) → U31_GAAAG(T585, T632, T638, T637, T639, T636, less78_in_gg(T585, T632))
U31_GAAAG(T585, T632, T638, T637, T639, T636, less78_out_gg(T585, T632)) → P179_IN_GAAAG(T632, T637, T638, T639, T636)
P194_IN_GAAAG(T585, T657, T659, .(T654, T658), .(T654, T656)) → U33_GAAAG(T585, T657, T659, T654, T658, T656, less78_in_ga(T585, T657))
U33_GAAAG(T585, T657, T659, T654, T658, T656, less78_out_ga(T585, T657)) → P194_IN_GAAAG(T654, T657, T659, T658, T656)
less70_in_ga(0, T154) → less70_out_ga(0, T154)
less70_in_ga(s(T161), T162) → U22_ga(T161, T162, less78_in_ga(T161, T162))
less70_in_gg(0, T154) → less70_out_gg(0, T154)
less70_in_gg(s(T161), T162) → U22_gg(T161, T162, less78_in_gg(T161, T162))
less78_in_gg(0, s(T169)) → less78_out_gg(0, s(T169))
less78_in_gg(s(T176), s(T177)) → U20_gg(T176, T177, less78_in_gg(T176, T177))
less78_in_ga(0, s(T169)) → less78_out_ga(0, s(T169))
less78_in_ga(s(T176), s(T177)) → U20_ga(T176, T177, less78_in_ga(T176, T177))
U22_ga(T161, T162, less78_out_ga(T161, T162)) → less70_out_ga(s(T161), T162)
U22_gg(T161, T162, less78_out_gg(T161, T162)) → less70_out_gg(s(T161), T162)
U20_gg(T176, T177, less78_out_gg(T176, T177)) → less78_out_gg(s(T176), s(T177))
U20_ga(T176, T177, less78_out_ga(T176, T177)) → less78_out_ga(s(T176), s(T177))
P179_IN_GAAAG(T513, .(T563, T567)) → U25_GAAAG(T563, T567, less70_in_ga(T513))
U25_GAAAG(T563, T567, less70_out_ga) → P179_IN_GAAAG(T563, T567)
P179_IN_GAAAG(T513, .(T585, T587)) → U27_GAAAG(T585, T587, less70_in_gg(T513, T585))
U27_GAAAG(T585, T587, less70_out_gg) → P194_IN_GAAAG(T585, T587)
P194_IN_GAAAG(T585, .(T632, T636)) → U31_GAAAG(T632, T636, less78_in_gg(T585, T632))
U31_GAAAG(T632, T636, less78_out_gg) → P179_IN_GAAAG(T632, T636)
P194_IN_GAAAG(T585, .(T654, T656)) → U33_GAAAG(T654, T656, less78_in_ga(T585))
U33_GAAAG(T654, T656, less78_out_ga) → P194_IN_GAAAG(T654, T656)
less70_in_ga(0) → less70_out_ga
less70_in_ga(s(T161)) → U22_ga(less78_in_ga(T161))
less70_in_gg(0, T154) → less70_out_gg
less70_in_gg(s(T161), T162) → U22_gg(less78_in_gg(T161, T162))
less78_in_gg(0, s(T169)) → less78_out_gg
less78_in_gg(s(T176), s(T177)) → U20_gg(less78_in_gg(T176, T177))
less78_in_ga(0) → less78_out_ga
less78_in_ga(s(T176)) → U20_ga(less78_in_ga(T176))
U22_ga(less78_out_ga) → less70_out_ga
U22_gg(less78_out_gg) → less70_out_gg
U20_gg(less78_out_gg) → less78_out_gg
U20_ga(less78_out_ga) → less78_out_ga
less70_in_ga(x0)
less70_in_gg(x0, x1)
less78_in_gg(x0, x1)
less78_in_ga(x0)
U22_ga(x0)
U22_gg(x0)
U20_gg(x0)
U20_ga(x0)
From the DPs we obtained the following set of size-change graphs:
MERGE54_IN_AAG(.(T139, T145), .(T146, T147), .(T139, X226)) → U15_AAG(T139, T145, T146, T147, X226, less70_in_ga(T139, T146))
U15_AAG(T139, T145, T146, T147, X226, less70_out_ga(T139, T146)) → MERGE54_IN_AAG(T145, .(T146, T147), X226)
MERGE54_IN_AAG(.(T202, T203), .(T196, T204), .(T196, X287)) → U18_AAG(T202, T203, T196, T204, X287, less78_in_ga(T196, T202))
U18_AAG(T202, T203, T196, T204, X287, less78_out_ga(T196, T202)) → MERGE54_IN_AAG(.(T202, T203), T204, X287)
ms1_in_ag([], []) → ms1_out_ag([], [])
ms1_in_ag(.(T29, .(T27, T28)), []) → U35_ag(T29, T27, T28, split12_in_aaaa(T27, T28, X42, X41))
split12_in_aaaa(T42, T44, .(T42, X71), X72) → U2_aaaa(T42, T44, X71, X72, split16_in_aaa(T44, X72, X71))
split16_in_aaa([], [], []) → split16_out_aaa([], [], [])
split16_in_aaa(.(T49, T51), .(T49, X89), X90) → U1_aaa(T49, T51, X89, X90, split16_in_aaa(T51, X90, X89))
U1_aaa(T49, T51, X89, X90, split16_out_aaa(T51, X90, X89)) → split16_out_aaa(.(T49, T51), .(T49, X89), X90)
U2_aaaa(T42, T44, X71, X72, split16_out_aaa(T44, X72, X71)) → split12_out_aaaa(T42, T44, .(T42, X71), X72)
U35_ag(T29, T27, T28, split12_out_aaaa(T27, T28, X42, X41)) → ms1_out_ag(.(T29, .(T27, T28)), [])
ms1_in_ag(.(T34, .(T27, T28)), []) → U36_ag(T34, T27, T28, split12_in_aaaa(T27, T28, T32, T33))
U36_ag(T34, T27, T28, split12_out_aaaa(T27, T28, T32, T33)) → U37_ag(T34, T27, T28, ms25_in_aaa(T34, T33, X13))
ms25_in_aaa(T62, [], .(T62, [])) → ms25_out_aaa(T62, [], .(T62, []))
ms25_in_aaa(T72, .(T73, T74), X127) → U21_aaa(T72, T73, T74, X127, p34_in_aaaaaaaa(T72, T73, T74, X123, X124, X125, X126, X127))
p34_in_aaaaaaaa(T72, T73, T74, X123, X124, X125, X126, X127) → U3_aaaaaaaa(T72, T73, T74, X123, X124, X125, X126, X127, split12_in_aaaa(T72, .(T73, T74), X123, X124))
U3_aaaaaaaa(T72, T73, T74, X123, X124, X125, X126, X127, split12_out_aaaa(T72, .(T73, T74), X123, X124)) → p34_out_aaaaaaaa(T72, T73, T74, X123, X124, X125, X126, X127)
p34_in_aaaaaaaa(T72, T73, T74, T78, T79, X125, X126, X127) → U4_aaaaaaaa(T72, T73, T74, T78, T79, X125, X126, X127, split12_in_aaaa(T72, .(T73, T74), T78, T79))
U4_aaaaaaaa(T72, T73, T74, T78, T79, X125, X126, X127, split12_out_aaaa(T72, .(T73, T74), T78, T79)) → U5_aaaaaaaa(T72, T73, T74, T78, T79, X125, X126, X127, ms38_in_aa(T78, X125))
ms38_in_aa([], []) → ms38_out_aa([], [])
ms38_in_aa(.(T89, []), .(T89, [])) → ms38_out_aa(.(T89, []), .(T89, []))
ms38_in_aa(.(T99, .(T100, T101)), X172) → U13_aa(T99, T100, T101, X172, p34_in_aaaaaaaa(T99, T100, T101, X168, X169, X170, X171, X172))
p34_in_aaaaaaaa(T72, T73, T74, T78, T84, T83, X126, X127) → U6_aaaaaaaa(T72, T73, T74, T78, T84, T83, X126, X127, split12_in_aaaa(T72, .(T73, T74), T78, T84))
U6_aaaaaaaa(T72, T73, T74, T78, T84, T83, X126, X127, split12_out_aaaa(T72, .(T73, T74), T78, T84)) → U7_aaaaaaaa(T72, T73, T74, T78, T84, T83, X126, X127, ms38_in_aa(T78, T83))
U7_aaaaaaaa(T72, T73, T74, T78, T84, T83, X126, X127, ms38_out_aa(T78, T83)) → U8_aaaaaaaa(T72, T73, T74, T78, T84, T83, X126, X127, ms38_in_aa(T84, X126))
U8_aaaaaaaa(T72, T73, T74, T78, T84, T83, X126, X127, ms38_out_aa(T84, X126)) → p34_out_aaaaaaaa(T72, T73, T74, T78, T84, T83, X126, X127)
p34_in_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127) → U9_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127, split12_in_aaaa(T72, .(T73, T74), T78, T84))
U9_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127, split12_out_aaaa(T72, .(T73, T74), T78, T84)) → U10_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127, ms38_in_aa(T78, T106))
U10_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127, ms38_out_aa(T78, T106)) → U11_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127, ms38_in_aa(T84, T105))
U11_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127, ms38_out_aa(T84, T105)) → U12_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127, merge54_in_aaa(T106, T105, X127))
merge54_in_aaa([], T113, T113) → merge54_out_aaa([], T113, T113)
merge54_in_aaa(T118, [], T118) → merge54_out_aaa(T118, [], T118)
merge54_in_aaa(.(T139, T141), .(T140, T142), .(T139, X226)) → U14_aaa(T139, T141, T140, T142, X226, less70_in_aa(T139, T140))
less70_in_aa(0, T154) → less70_out_aa(0, T154)
less70_in_aa(s(T161), T162) → U22_aa(T161, T162, less78_in_aa(T161, T162))
less78_in_aa(0, s(T169)) → less78_out_aa(0, s(T169))
less78_in_aa(s(T176), s(T177)) → U20_aa(T176, T177, less78_in_aa(T176, T177))
U20_aa(T176, T177, less78_out_aa(T176, T177)) → less78_out_aa(s(T176), s(T177))
U22_aa(T161, T162, less78_out_aa(T161, T162)) → less70_out_aa(s(T161), T162)
U14_aaa(T139, T141, T140, T142, X226, less70_out_aa(T139, T140)) → merge54_out_aaa(.(T139, T141), .(T140, T142), .(T139, X226))
merge54_in_aaa(.(T139, T145), .(T146, T147), .(T139, X226)) → U15_aaa(T139, T145, T146, T147, X226, less70_in_aa(T139, T146))
U15_aaa(T139, T145, T146, T147, X226, less70_out_aa(T139, T146)) → U16_aaa(T139, T145, T146, T147, X226, merge54_in_aaa(T145, .(T146, T147), X226))
merge54_in_aaa(.(T197, T199), .(T196, T198), .(T196, X287)) → U17_aaa(T197, T199, T196, T198, X287, less78_in_aa(T196, T197))
U17_aaa(T197, T199, T196, T198, X287, less78_out_aa(T196, T197)) → merge54_out_aaa(.(T197, T199), .(T196, T198), .(T196, X287))
merge54_in_aaa(.(T202, T203), .(T196, T204), .(T196, X287)) → U18_aaa(T202, T203, T196, T204, X287, less78_in_aa(T196, T202))
U18_aaa(T202, T203, T196, T204, X287, less78_out_aa(T196, T202)) → U19_aaa(T202, T203, T196, T204, X287, merge54_in_aaa(.(T202, T203), T204, X287))
U19_aaa(T202, T203, T196, T204, X287, merge54_out_aaa(.(T202, T203), T204, X287)) → merge54_out_aaa(.(T202, T203), .(T196, T204), .(T196, X287))
U16_aaa(T139, T145, T146, T147, X226, merge54_out_aaa(T145, .(T146, T147), X226)) → merge54_out_aaa(.(T139, T145), .(T146, T147), .(T139, X226))
U12_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127, merge54_out_aaa(T106, T105, X127)) → p34_out_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127)
U13_aa(T99, T100, T101, X172, p34_out_aaaaaaaa(T99, T100, T101, X168, X169, X170, X171, X172)) → ms38_out_aa(.(T99, .(T100, T101)), X172)
U5_aaaaaaaa(T72, T73, T74, T78, T79, X125, X126, X127, ms38_out_aa(T78, X125)) → p34_out_aaaaaaaa(T72, T73, T74, T78, T79, X125, X126, X127)
U21_aaa(T72, T73, T74, X127, p34_out_aaaaaaaa(T72, T73, T74, X123, X124, X125, X126, X127)) → ms25_out_aaa(T72, .(T73, T74), X127)
U37_ag(T34, T27, T28, ms25_out_aaa(T34, T33, X13)) → ms1_out_ag(.(T34, .(T27, T28)), [])
ms1_in_ag(.(T34, .(T27, T28)), []) → U38_ag(T34, T27, T28, split12_in_aaaa(T27, T28, T55, T33))
U38_ag(T34, T27, T28, split12_out_aaaa(T27, T28, T55, T33)) → U39_ag(T34, T27, T28, T55, ms25_in_aaa(T34, T33, T54))
U39_ag(T34, T27, T28, T55, ms25_out_aaa(T34, T33, T54)) → U40_ag(T34, T27, T28, ms38_in_aa(T55, X14))
U40_ag(T34, T27, T28, ms38_out_aa(T55, X14)) → ms1_out_ag(.(T34, .(T27, T28)), [])
U38_ag(T34, T27, T28, split12_out_aaaa(T27, T28, T55, T33)) → U41_ag(T34, T27, T28, T55, ms25_in_aaa(T34, T33, T212))
U41_ag(T34, T27, T28, T55, ms25_out_aaa(T34, T33, T212)) → U42_ag(T34, T27, T28, T212, ms38_in_aa(T55, T211))
U42_ag(T34, T27, T28, T212, ms38_out_aa(T55, T211)) → U43_ag(T34, T27, T28, merge93_in_aa(T212, T211))
merge93_in_aa([], []) → merge93_out_aa([], [])
U43_ag(T34, T27, T28, merge93_out_aa(T212, T211)) → ms1_out_ag(.(T34, .(T27, T28)), [])
ms1_in_ag(.(T234, []), .(T234, [])) → ms1_out_ag(.(T234, []), .(T234, []))
ms1_in_ag(.(T262, .(T260, T261)), .(T242, [])) → U44_ag(T262, T260, T261, T242, split12_in_aaaa(T260, T261, X367, X366))
U44_ag(T262, T260, T261, T242, split12_out_aaaa(T260, T261, X367, X366)) → ms1_out_ag(.(T262, .(T260, T261)), .(T242, []))
ms1_in_ag(.(T267, .(T260, T261)), .(T242, [])) → U45_ag(T267, T260, T261, T242, split12_in_aaaa(T260, T261, T265, T266))
U45_ag(T267, T260, T261, T242, split12_out_aaaa(T260, T261, T265, T266)) → U46_ag(T267, T260, T261, T242, ms25_in_aaa(T267, T266, X338))
U46_ag(T267, T260, T261, T242, ms25_out_aaa(T267, T266, X338)) → ms1_out_ag(.(T267, .(T260, T261)), .(T242, []))
ms1_in_ag(.(T267, .(T260, T261)), .(T242, [])) → U47_ag(T267, T260, T261, T242, split12_in_aaaa(T260, T261, T273, T266))
U47_ag(T267, T260, T261, T242, split12_out_aaaa(T260, T261, T273, T266)) → U48_ag(T267, T260, T261, T242, T273, ms25_in_aaa(T267, T266, T272))
U48_ag(T267, T260, T261, T242, T273, ms25_out_aaa(T267, T266, T272)) → U49_ag(T267, T260, T261, T242, ms38_in_aa(T273, X339))
U49_ag(T267, T260, T261, T242, ms38_out_aa(T273, X339)) → ms1_out_ag(.(T267, .(T260, T261)), .(T242, []))
ms1_in_ag(.(T267, .(T260, T261)), .(T291, [])) → U50_ag(T267, T260, T261, T291, split12_in_aaaa(T260, T261, T273, T266))
U50_ag(T267, T260, T261, T291, split12_out_aaaa(T260, T261, T273, T266)) → U51_ag(T267, T260, T261, T291, T273, ms25_in_aag(T267, T266, []))
ms25_in_aag(T62, [], .(T62, [])) → ms25_out_aag(T62, [], .(T62, []))
ms25_in_aag(T72, .(T73, T74), X127) → U21_aag(T72, T73, T74, X127, p34_in_aaaaaaag(T72, T73, T74, X123, X124, X125, X126, X127))
p34_in_aaaaaaag(T72, T73, T74, X123, X124, X125, X126, X127) → U3_aaaaaaag(T72, T73, T74, X123, X124, X125, X126, X127, split12_in_aaaa(T72, .(T73, T74), X123, X124))
U3_aaaaaaag(T72, T73, T74, X123, X124, X125, X126, X127, split12_out_aaaa(T72, .(T73, T74), X123, X124)) → p34_out_aaaaaaag(T72, T73, T74, X123, X124, X125, X126, X127)
p34_in_aaaaaaag(T72, T73, T74, T78, T79, X125, X126, X127) → U4_aaaaaaag(T72, T73, T74, T78, T79, X125, X126, X127, split12_in_aaaa(T72, .(T73, T74), T78, T79))
U4_aaaaaaag(T72, T73, T74, T78, T79, X125, X126, X127, split12_out_aaaa(T72, .(T73, T74), T78, T79)) → U5_aaaaaaag(T72, T73, T74, T78, T79, X125, X126, X127, ms38_in_aa(T78, X125))
U5_aaaaaaag(T72, T73, T74, T78, T79, X125, X126, X127, ms38_out_aa(T78, X125)) → p34_out_aaaaaaag(T72, T73, T74, T78, T79, X125, X126, X127)
p34_in_aaaaaaag(T72, T73, T74, T78, T84, T83, X126, X127) → U6_aaaaaaag(T72, T73, T74, T78, T84, T83, X126, X127, split12_in_aaaa(T72, .(T73, T74), T78, T84))
U6_aaaaaaag(T72, T73, T74, T78, T84, T83, X126, X127, split12_out_aaaa(T72, .(T73, T74), T78, T84)) → U7_aaaaaaag(T72, T73, T74, T78, T84, T83, X126, X127, ms38_in_aa(T78, T83))
U7_aaaaaaag(T72, T73, T74, T78, T84, T83, X126, X127, ms38_out_aa(T78, T83)) → U8_aaaaaaag(T72, T73, T74, T78, T84, T83, X126, X127, ms38_in_aa(T84, X126))
U8_aaaaaaag(T72, T73, T74, T78, T84, T83, X126, X127, ms38_out_aa(T84, X126)) → p34_out_aaaaaaag(T72, T73, T74, T78, T84, T83, X126, X127)
p34_in_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127) → U9_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127, split12_in_aaaa(T72, .(T73, T74), T78, T84))
U9_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127, split12_out_aaaa(T72, .(T73, T74), T78, T84)) → U10_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127, ms38_in_aa(T78, T106))
U10_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127, ms38_out_aa(T78, T106)) → U11_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127, ms38_in_aa(T84, T105))
U11_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127, ms38_out_aa(T84, T105)) → U12_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127, merge54_in_aag(T106, T105, X127))
merge54_in_aag([], T113, T113) → merge54_out_aag([], T113, T113)
merge54_in_aag(T118, [], T118) → merge54_out_aag(T118, [], T118)
merge54_in_aag(.(T139, T141), .(T140, T142), .(T139, X226)) → U14_aag(T139, T141, T140, T142, X226, less70_in_ga(T139, T140))
less70_in_ga(0, T154) → less70_out_ga(0, T154)
less70_in_ga(s(T161), T162) → U22_ga(T161, T162, less78_in_ga(T161, T162))
less78_in_ga(0, s(T169)) → less78_out_ga(0, s(T169))
less78_in_ga(s(T176), s(T177)) → U20_ga(T176, T177, less78_in_ga(T176, T177))
U20_ga(T176, T177, less78_out_ga(T176, T177)) → less78_out_ga(s(T176), s(T177))
U22_ga(T161, T162, less78_out_ga(T161, T162)) → less70_out_ga(s(T161), T162)
U14_aag(T139, T141, T140, T142, X226, less70_out_ga(T139, T140)) → merge54_out_aag(.(T139, T141), .(T140, T142), .(T139, X226))
merge54_in_aag(.(T139, T145), .(T146, T147), .(T139, X226)) → U15_aag(T139, T145, T146, T147, X226, less70_in_ga(T139, T146))
U15_aag(T139, T145, T146, T147, X226, less70_out_ga(T139, T146)) → U16_aag(T139, T145, T146, T147, X226, merge54_in_aag(T145, .(T146, T147), X226))
merge54_in_aag(.(T197, T199), .(T196, T198), .(T196, X287)) → U17_aag(T197, T199, T196, T198, X287, less78_in_ga(T196, T197))
U17_aag(T197, T199, T196, T198, X287, less78_out_ga(T196, T197)) → merge54_out_aag(.(T197, T199), .(T196, T198), .(T196, X287))
merge54_in_aag(.(T202, T203), .(T196, T204), .(T196, X287)) → U18_aag(T202, T203, T196, T204, X287, less78_in_ga(T196, T202))
U18_aag(T202, T203, T196, T204, X287, less78_out_ga(T196, T202)) → U19_aag(T202, T203, T196, T204, X287, merge54_in_aag(.(T202, T203), T204, X287))
U19_aag(T202, T203, T196, T204, X287, merge54_out_aag(.(T202, T203), T204, X287)) → merge54_out_aag(.(T202, T203), .(T196, T204), .(T196, X287))
U16_aag(T139, T145, T146, T147, X226, merge54_out_aag(T145, .(T146, T147), X226)) → merge54_out_aag(.(T139, T145), .(T146, T147), .(T139, X226))
U12_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127, merge54_out_aag(T106, T105, X127)) → p34_out_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127)
U21_aag(T72, T73, T74, X127, p34_out_aaaaaaag(T72, T73, T74, X123, X124, X125, X126, X127)) → ms25_out_aag(T72, .(T73, T74), X127)
U51_ag(T267, T260, T261, T291, T273, ms25_out_aag(T267, T266, [])) → U52_ag(T267, T260, T261, T291, ms38_in_ag(T273, .(T291, [])))
ms38_in_ag([], []) → ms38_out_ag([], [])
ms38_in_ag(.(T89, []), .(T89, [])) → ms38_out_ag(.(T89, []), .(T89, []))
ms38_in_ag(.(T99, .(T100, T101)), X172) → U13_ag(T99, T100, T101, X172, p34_in_aaaaaaag(T99, T100, T101, X168, X169, X170, X171, X172))
U13_ag(T99, T100, T101, X172, p34_out_aaaaaaag(T99, T100, T101, X168, X169, X170, X171, X172)) → ms38_out_ag(.(T99, .(T100, T101)), X172)
U52_ag(T267, T260, T261, T291, ms38_out_ag(T273, .(T291, []))) → ms1_out_ag(.(T267, .(T260, T261)), .(T291, []))
ms1_in_ag(.(T267, .(T260, T261)), .(T301, [])) → U53_ag(T267, T260, T261, T301, split12_in_aaaa(T260, T261, T273, T266))
U53_ag(T267, T260, T261, T301, split12_out_aaaa(T260, T261, T273, T266)) → U54_ag(T267, T260, T261, T301, T273, ms25_in_aag(T267, T266, .(T301, [])))
U54_ag(T267, T260, T261, T301, T273, ms25_out_aag(T267, T266, .(T301, []))) → U55_ag(T267, T260, T261, T301, ms38_in_ag(T273, []))
U55_ag(T267, T260, T261, T301, ms38_out_ag(T273, [])) → ms1_out_ag(.(T267, .(T260, T261)), .(T301, []))
ms1_in_ag(.(T267, .(T260, T261)), .(T318, [])) → U56_ag(T267, T260, T261, T318, split12_in_aaaa(T260, T261, T273, T266))
U56_ag(T267, T260, T261, T318, split12_out_aaaa(T260, T261, T273, T266)) → U57_ag(T267, T260, T261, T318, T273, ms25_in_aaa(T267, T266, .(T318, T323)))
U57_ag(T267, T260, T261, T318, T273, ms25_out_aaa(T267, T266, .(T318, T323))) → U58_ag(T267, T260, T261, T318, ms38_in_aa(T273, .(T322, T324)))
U58_ag(T267, T260, T261, T318, ms38_out_aa(T273, .(T322, T324))) → U59_ag(T267, T260, T261, T318, less70_in_ga(T318, T322))
U59_ag(T267, T260, T261, T318, less70_out_ga(T318, T322)) → ms1_out_ag(.(T267, .(T260, T261)), .(T318, []))
U56_ag(T267, T260, T261, T318, split12_out_aaaa(T260, T261, T273, T266)) → U60_ag(T267, T260, T261, T318, T273, ms25_in_aaa(T267, T266, .(T318, T327)))
U60_ag(T267, T260, T261, T318, T273, ms25_out_aaa(T267, T266, .(T318, T327))) → U61_ag(T267, T260, T261, T318, T327, ms38_in_aa(T273, .(T328, T329)))
U61_ag(T267, T260, T261, T318, T327, ms38_out_aa(T273, .(T328, T329))) → U62_ag(T267, T260, T261, T318, T327, T328, T329, less70_in_ga(T318, T328))
U62_ag(T267, T260, T261, T318, T327, T328, T329, less70_out_ga(T318, T328)) → U63_ag(T267, T260, T261, T318, merge93_in_aa(T327, .(T328, T329)))
U63_ag(T267, T260, T261, T318, merge93_out_aa(T327, .(T328, T329))) → ms1_out_ag(.(T267, .(T260, T261)), .(T318, []))
ms1_in_ag(.(T267, .(T260, T261)), .(T356, [])) → U64_ag(T267, T260, T261, T356, split12_in_aaaa(T260, T261, T273, T266))
U64_ag(T267, T260, T261, T356, split12_out_aaaa(T260, T261, T273, T266)) → U65_ag(T267, T260, T261, T356, T273, ms25_in_aaa(T267, T266, .(T358, T360)))
U65_ag(T267, T260, T261, T356, T273, ms25_out_aaa(T267, T266, .(T358, T360))) → U66_ag(T267, T260, T261, T356, T358, ms38_in_aa(T273, .(T356, T359)))
U66_ag(T267, T260, T261, T356, T358, ms38_out_aa(T273, .(T356, T359))) → U67_ag(T267, T260, T261, T356, less78_in_ga(T356, T358))
U67_ag(T267, T260, T261, T356, less78_out_ga(T356, T358)) → ms1_out_ag(.(T267, .(T260, T261)), .(T356, []))
U64_ag(T267, T260, T261, T356, split12_out_aaaa(T260, T261, T273, T266)) → U68_ag(T267, T260, T261, T356, T273, ms25_in_aaa(T267, T266, .(T363, T364)))
U68_ag(T267, T260, T261, T356, T273, ms25_out_aaa(T267, T266, .(T363, T364))) → U69_ag(T267, T260, T261, T356, T363, T364, ms38_in_aa(T273, .(T356, T365)))
U69_ag(T267, T260, T261, T356, T363, T364, ms38_out_aa(T273, .(T356, T365))) → U70_ag(T267, T260, T261, T356, T363, T364, T365, less78_in_ga(T356, T363))
U70_ag(T267, T260, T261, T356, T363, T364, T365, less78_out_ga(T356, T363)) → U71_ag(T267, T260, T261, T356, merge93_in_aa(.(T363, T364), T365))
U71_ag(T267, T260, T261, T356, merge93_out_aa(.(T363, T364), T365)) → ms1_out_ag(.(T267, .(T260, T261)), .(T356, []))
ms1_in_ag(.(T407, .(T405, T406)), T387) → U72_ag(T407, T405, T406, T387, split12_in_aaaa(T405, T406, X523, X522))
U72_ag(T407, T405, T406, T387, split12_out_aaaa(T405, T406, X523, X522)) → ms1_out_ag(.(T407, .(T405, T406)), T387)
ms1_in_ag(.(T412, .(T405, T406)), T387) → U73_ag(T412, T405, T406, T387, split12_in_aaaa(T405, T406, T410, T411))
U73_ag(T412, T405, T406, T387, split12_out_aaaa(T405, T406, T410, T411)) → U74_ag(T412, T405, T406, T387, ms25_in_aaa(T412, T411, X494))
U74_ag(T412, T405, T406, T387, ms25_out_aaa(T412, T411, X494)) → ms1_out_ag(.(T412, .(T405, T406)), T387)
ms1_in_ag(.(T412, .(T405, T406)), T387) → U75_ag(T412, T405, T406, T387, split12_in_aaaa(T405, T406, T420, T411))
U75_ag(T412, T405, T406, T387, split12_out_aaaa(T405, T406, T420, T411)) → U76_ag(T412, T405, T406, T387, T420, ms25_in_aaa(T412, T411, T419))
U76_ag(T412, T405, T406, T387, T420, ms25_out_aaa(T412, T411, T419)) → U77_ag(T412, T405, T406, T387, ms38_in_aa(T420, X495))
U77_ag(T412, T405, T406, T387, ms38_out_aa(T420, X495)) → ms1_out_ag(.(T412, .(T405, T406)), T387)
ms1_in_ag(.(T412, .(T405, T406)), T435) → U78_ag(T412, T405, T406, T435, split12_in_aaaa(T405, T406, T420, T411))
U78_ag(T412, T405, T406, T435, split12_out_aaaa(T405, T406, T420, T411)) → U79_ag(T412, T405, T406, T435, T420, ms25_in_aag(T412, T411, []))
U79_ag(T412, T405, T406, T435, T420, ms25_out_aag(T412, T411, [])) → U80_ag(T412, T405, T406, T435, ms38_in_ag(T420, T435))
U80_ag(T412, T405, T406, T435, ms38_out_ag(T420, T435)) → ms1_out_ag(.(T412, .(T405, T406)), T435)
ms1_in_ag(.(T412, .(T405, T406)), T440) → U81_ag(T412, T405, T406, T440, split12_in_aaaa(T405, T406, T420, T411))
U81_ag(T412, T405, T406, T440, split12_out_aaaa(T405, T406, T420, T411)) → U82_ag(T412, T405, T406, T440, T420, ms25_in_aag(T412, T411, T440))
U82_ag(T412, T405, T406, T440, T420, ms25_out_aag(T412, T411, T440)) → U83_ag(T412, T405, T406, T440, ms38_in_ag(T420, []))
U83_ag(T412, T405, T406, T440, ms38_out_ag(T420, [])) → ms1_out_ag(.(T412, .(T405, T406)), T440)
ms1_in_ag(.(T412, .(T405, T406)), .(T461, T465)) → U84_ag(T412, T405, T406, T461, T465, split12_in_aaaa(T405, T406, T420, T411))
U84_ag(T412, T405, T406, T461, T465, split12_out_aaaa(T405, T406, T420, T411)) → U85_ag(T412, T405, T406, T461, T465, T420, ms25_in_aaa(T412, T411, .(T461, T467)))
U85_ag(T412, T405, T406, T461, T465, T420, ms25_out_aaa(T412, T411, .(T461, T467))) → U86_ag(T412, T405, T406, T461, T465, ms38_in_aa(T420, .(T466, T468)))
U86_ag(T412, T405, T406, T461, T465, ms38_out_aa(T420, .(T466, T468))) → U87_ag(T412, T405, T406, T461, T465, less70_in_ga(T461, T466))
U87_ag(T412, T405, T406, T461, T465, less70_out_ga(T461, T466)) → ms1_out_ag(.(T412, .(T405, T406)), .(T461, T465))
ms1_in_ag(.(T412, .(T405, T406)), .(T461, .(T490, T491))) → U88_ag(T412, T405, T406, T461, T490, T491, split12_in_aaaa(T405, T406, T420, T411))
U88_ag(T412, T405, T406, T461, T490, T491, split12_out_aaaa(T405, T406, T420, T411)) → U89_ag(T412, T405, T406, T461, T490, T491, T420, ms25_in_aag(T412, T411, .(T461, [])))
U89_ag(T412, T405, T406, T461, T490, T491, T420, ms25_out_aag(T412, T411, .(T461, []))) → U90_ag(T412, T405, T406, T461, T490, T491, ms38_in_ag(T420, .(T490, T491)))
U90_ag(T412, T405, T406, T461, T490, T491, ms38_out_ag(T420, .(T490, T491))) → U91_ag(T412, T405, T406, T461, T490, T491, less70_in_gg(T461, T490))
less70_in_gg(0, T154) → less70_out_gg(0, T154)
less70_in_gg(s(T161), T162) → U22_gg(T161, T162, less78_in_gg(T161, T162))
less78_in_gg(0, s(T169)) → less78_out_gg(0, s(T169))
less78_in_gg(s(T176), s(T177)) → U20_gg(T176, T177, less78_in_gg(T176, T177))
U20_gg(T176, T177, less78_out_gg(T176, T177)) → less78_out_gg(s(T176), s(T177))
U22_gg(T161, T162, less78_out_gg(T161, T162)) → less70_out_gg(s(T161), T162)
U91_ag(T412, T405, T406, T461, T490, T491, less70_out_gg(T461, T490)) → ms1_out_ag(.(T412, .(T405, T406)), .(T461, .(T490, T491)))
ms1_in_ag(.(T412, .(T405, T406)), .(T461, .(T513, T517))) → U92_ag(T412, T405, T406, T461, T513, T517, split12_in_aaaa(T405, T406, T420, T411))
U92_ag(T412, T405, T406, T461, T513, T517, split12_out_aaaa(T405, T406, T420, T411)) → U93_ag(T412, T405, T406, T461, T513, T517, T420, ms25_in_aaa(T412, T411, .(T461, .(T513, T519))))
U93_ag(T412, T405, T406, T461, T513, T517, T420, ms25_out_aaa(T412, T411, .(T461, .(T513, T519)))) → U94_ag(T412, T405, T406, T461, T513, T517, T519, ms38_in_aa(T420, .(T518, T520)))
U94_ag(T412, T405, T406, T461, T513, T517, T519, ms38_out_aa(T420, .(T518, T520))) → U95_ag(T412, T405, T406, T461, T513, T517, T519, T518, T520, less70_in_ga(T461, T518))
U95_ag(T412, T405, T406, T461, T513, T517, T519, T518, T520, less70_out_ga(T461, T518)) → U96_ag(T412, T405, T406, T461, T513, T517, p179_in_gaaag(T513, T518, T519, T520, T517))
p179_in_gaaag(T513, T518, T519, T520, T517) → U23_gaaag(T513, T518, T519, T520, T517, less70_in_ga(T513, T518))
U23_gaaag(T513, T518, T519, T520, T517, less70_out_ga(T513, T518)) → p179_out_gaaag(T513, T518, T519, T520, T517)
p179_in_gaaag(T513, T540, [], T541, .(T540, T541)) → U24_gaaag(T513, T540, T541, less70_in_gg(T513, T540))
U24_gaaag(T513, T540, T541, less70_out_gg(T513, T540)) → p179_out_gaaag(T513, T540, [], T541, .(T540, T541))
p179_in_gaaag(T513, T568, .(T563, T569), T570, .(T563, T567)) → U25_gaaag(T513, T568, T563, T569, T570, T567, less70_in_ga(T513, T568))
U25_gaaag(T513, T568, T563, T569, T570, T567, less70_out_ga(T513, T568)) → U26_gaaag(T513, T568, T563, T569, T570, T567, p179_in_gaaag(T563, T568, T569, T570, T567))
p179_in_gaaag(T513, T585, .(T588, T590), T589, .(T585, T587)) → U27_gaaag(T513, T585, T588, T590, T589, T587, less70_in_gg(T513, T585))
U27_gaaag(T513, T585, T588, T590, T589, T587, less70_out_gg(T513, T585)) → U28_gaaag(T513, T585, T588, T590, T589, T587, p194_in_gaaag(T585, T588, T590, T589, T587))
p194_in_gaaag(T585, T588, T590, T589, T587) → U29_gaaag(T585, T588, T590, T589, T587, less78_in_ga(T585, T588))
U29_gaaag(T585, T588, T590, T589, T587, less78_out_ga(T585, T588)) → p194_out_gaaag(T585, T588, T590, T589, T587)
p194_in_gaaag(T585, T610, T611, [], .(T610, T611)) → U30_gaaag(T585, T610, T611, less78_in_gg(T585, T610))
U30_gaaag(T585, T610, T611, less78_out_gg(T585, T610)) → p194_out_gaaag(T585, T610, T611, [], .(T610, T611))
p194_in_gaaag(T585, T632, T638, .(T637, T639), .(T632, T636)) → U31_gaaag(T585, T632, T638, T637, T639, T636, less78_in_gg(T585, T632))
U31_gaaag(T585, T632, T638, T637, T639, T636, less78_out_gg(T585, T632)) → U32_gaaag(T585, T632, T638, T637, T639, T636, p179_in_gaaag(T632, T637, T638, T639, T636))
U32_gaaag(T585, T632, T638, T637, T639, T636, p179_out_gaaag(T632, T637, T638, T639, T636)) → p194_out_gaaag(T585, T632, T638, .(T637, T639), .(T632, T636))
p194_in_gaaag(T585, T657, T659, .(T654, T658), .(T654, T656)) → U33_gaaag(T585, T657, T659, T654, T658, T656, less78_in_ga(T585, T657))
U33_gaaag(T585, T657, T659, T654, T658, T656, less78_out_ga(T585, T657)) → U34_gaaag(T585, T657, T659, T654, T658, T656, p194_in_gaaag(T654, T657, T659, T658, T656))
U34_gaaag(T585, T657, T659, T654, T658, T656, p194_out_gaaag(T654, T657, T659, T658, T656)) → p194_out_gaaag(T585, T657, T659, .(T654, T658), .(T654, T656))
U28_gaaag(T513, T585, T588, T590, T589, T587, p194_out_gaaag(T585, T588, T590, T589, T587)) → p179_out_gaaag(T513, T585, .(T588, T590), T589, .(T585, T587))
U26_gaaag(T513, T568, T563, T569, T570, T567, p179_out_gaaag(T563, T568, T569, T570, T567)) → p179_out_gaaag(T513, T568, .(T563, T569), T570, .(T563, T567))
U96_ag(T412, T405, T406, T461, T513, T517, p179_out_gaaag(T513, T518, T519, T520, T517)) → ms1_out_ag(.(T412, .(T405, T406)), .(T461, .(T513, T517)))
ms1_in_ag(.(T412, .(T405, T406)), .(T461, .(T674, T676))) → U97_ag(T412, T405, T406, T461, T674, T676, split12_in_aaaa(T405, T406, T420, T411))
U97_ag(T412, T405, T406, T461, T674, T676, split12_out_aaaa(T405, T406, T420, T411)) → U98_ag(T412, T405, T406, T461, T674, T676, T420, ms25_in_aaa(T412, T411, .(T461, .(T677, T679))))
U98_ag(T412, T405, T406, T461, T674, T676, T420, ms25_out_aaa(T412, T411, .(T461, .(T677, T679)))) → U99_ag(T412, T405, T406, T461, T674, T676, T677, T679, ms38_in_aa(T420, .(T674, T678)))
U99_ag(T412, T405, T406, T461, T674, T676, T677, T679, ms38_out_aa(T420, .(T674, T678))) → U100_ag(T412, T405, T406, T461, T674, T676, T677, T679, T678, less70_in_gg(T461, T674))
U100_ag(T412, T405, T406, T461, T674, T676, T677, T679, T678, less70_out_gg(T461, T674)) → U101_ag(T412, T405, T406, T461, T674, T676, p194_in_gaaag(T674, T677, T679, T678, T676))
U101_ag(T412, T405, T406, T461, T674, T676, p194_out_gaaag(T674, T677, T679, T678, T676)) → ms1_out_ag(.(T412, .(T405, T406)), .(T461, .(T674, T676)))
ms1_in_ag(.(T412, .(T405, T406)), .(T694, T696)) → U102_ag(T412, T405, T406, T694, T696, split12_in_aaaa(T405, T406, T420, T411))
U102_ag(T412, T405, T406, T694, T696, split12_out_aaaa(T405, T406, T420, T411)) → U103_ag(T412, T405, T406, T694, T696, T420, ms25_in_aaa(T412, T411, .(T697, T699)))
U103_ag(T412, T405, T406, T694, T696, T420, ms25_out_aaa(T412, T411, .(T697, T699))) → U104_ag(T412, T405, T406, T694, T696, T697, T699, ms38_in_aa(T420, .(T694, T698)))
U104_ag(T412, T405, T406, T694, T696, T697, T699, ms38_out_aa(T420, .(T694, T698))) → U105_ag(T412, T405, T406, T694, T696, p194_in_gaaag(T694, T697, T699, T698, T696))
U105_ag(T412, T405, T406, T694, T696, p194_out_gaaag(T694, T697, T699, T698, T696)) → ms1_out_ag(.(T412, .(T405, T406)), .(T694, T696))
MERGE54_IN_AAG(.(T139, T145), .(T146, T147), .(T139, X226)) → U15_AAG(T139, T145, T146, T147, X226, less70_in_ga(T139, T146))
U15_AAG(T139, T145, T146, T147, X226, less70_out_ga(T139, T146)) → MERGE54_IN_AAG(T145, .(T146, T147), X226)
MERGE54_IN_AAG(.(T202, T203), .(T196, T204), .(T196, X287)) → U18_AAG(T202, T203, T196, T204, X287, less78_in_ga(T196, T202))
U18_AAG(T202, T203, T196, T204, X287, less78_out_ga(T196, T202)) → MERGE54_IN_AAG(.(T202, T203), T204, X287)
less70_in_ga(0, T154) → less70_out_ga(0, T154)
less70_in_ga(s(T161), T162) → U22_ga(T161, T162, less78_in_ga(T161, T162))
less78_in_ga(0, s(T169)) → less78_out_ga(0, s(T169))
less78_in_ga(s(T176), s(T177)) → U20_ga(T176, T177, less78_in_ga(T176, T177))
U22_ga(T161, T162, less78_out_ga(T161, T162)) → less70_out_ga(s(T161), T162)
U20_ga(T176, T177, less78_out_ga(T176, T177)) → less78_out_ga(s(T176), s(T177))
MERGE54_IN_AAG(.(T139, X226)) → U15_AAG(X226, less70_in_ga(T139))
U15_AAG(X226, less70_out_ga) → MERGE54_IN_AAG(X226)
MERGE54_IN_AAG(.(T196, X287)) → U18_AAG(X287, less78_in_ga(T196))
U18_AAG(X287, less78_out_ga) → MERGE54_IN_AAG(X287)
less70_in_ga(0) → less70_out_ga
less70_in_ga(s(T161)) → U22_ga(less78_in_ga(T161))
less78_in_ga(0) → less78_out_ga
less78_in_ga(s(T176)) → U20_ga(less78_in_ga(T176))
U22_ga(less78_out_ga) → less70_out_ga
U20_ga(less78_out_ga) → less78_out_ga
less70_in_ga(x0)
less78_in_ga(x0)
U22_ga(x0)
U20_ga(x0)
From the DPs we obtained the following set of size-change graphs:
LESS78_IN_AA(s(T176), s(T177)) → LESS78_IN_AA(T176, T177)
ms1_in_ag([], []) → ms1_out_ag([], [])
ms1_in_ag(.(T29, .(T27, T28)), []) → U35_ag(T29, T27, T28, split12_in_aaaa(T27, T28, X42, X41))
split12_in_aaaa(T42, T44, .(T42, X71), X72) → U2_aaaa(T42, T44, X71, X72, split16_in_aaa(T44, X72, X71))
split16_in_aaa([], [], []) → split16_out_aaa([], [], [])
split16_in_aaa(.(T49, T51), .(T49, X89), X90) → U1_aaa(T49, T51, X89, X90, split16_in_aaa(T51, X90, X89))
U1_aaa(T49, T51, X89, X90, split16_out_aaa(T51, X90, X89)) → split16_out_aaa(.(T49, T51), .(T49, X89), X90)
U2_aaaa(T42, T44, X71, X72, split16_out_aaa(T44, X72, X71)) → split12_out_aaaa(T42, T44, .(T42, X71), X72)
U35_ag(T29, T27, T28, split12_out_aaaa(T27, T28, X42, X41)) → ms1_out_ag(.(T29, .(T27, T28)), [])
ms1_in_ag(.(T34, .(T27, T28)), []) → U36_ag(T34, T27, T28, split12_in_aaaa(T27, T28, T32, T33))
U36_ag(T34, T27, T28, split12_out_aaaa(T27, T28, T32, T33)) → U37_ag(T34, T27, T28, ms25_in_aaa(T34, T33, X13))
ms25_in_aaa(T62, [], .(T62, [])) → ms25_out_aaa(T62, [], .(T62, []))
ms25_in_aaa(T72, .(T73, T74), X127) → U21_aaa(T72, T73, T74, X127, p34_in_aaaaaaaa(T72, T73, T74, X123, X124, X125, X126, X127))
p34_in_aaaaaaaa(T72, T73, T74, X123, X124, X125, X126, X127) → U3_aaaaaaaa(T72, T73, T74, X123, X124, X125, X126, X127, split12_in_aaaa(T72, .(T73, T74), X123, X124))
U3_aaaaaaaa(T72, T73, T74, X123, X124, X125, X126, X127, split12_out_aaaa(T72, .(T73, T74), X123, X124)) → p34_out_aaaaaaaa(T72, T73, T74, X123, X124, X125, X126, X127)
p34_in_aaaaaaaa(T72, T73, T74, T78, T79, X125, X126, X127) → U4_aaaaaaaa(T72, T73, T74, T78, T79, X125, X126, X127, split12_in_aaaa(T72, .(T73, T74), T78, T79))
U4_aaaaaaaa(T72, T73, T74, T78, T79, X125, X126, X127, split12_out_aaaa(T72, .(T73, T74), T78, T79)) → U5_aaaaaaaa(T72, T73, T74, T78, T79, X125, X126, X127, ms38_in_aa(T78, X125))
ms38_in_aa([], []) → ms38_out_aa([], [])
ms38_in_aa(.(T89, []), .(T89, [])) → ms38_out_aa(.(T89, []), .(T89, []))
ms38_in_aa(.(T99, .(T100, T101)), X172) → U13_aa(T99, T100, T101, X172, p34_in_aaaaaaaa(T99, T100, T101, X168, X169, X170, X171, X172))
p34_in_aaaaaaaa(T72, T73, T74, T78, T84, T83, X126, X127) → U6_aaaaaaaa(T72, T73, T74, T78, T84, T83, X126, X127, split12_in_aaaa(T72, .(T73, T74), T78, T84))
U6_aaaaaaaa(T72, T73, T74, T78, T84, T83, X126, X127, split12_out_aaaa(T72, .(T73, T74), T78, T84)) → U7_aaaaaaaa(T72, T73, T74, T78, T84, T83, X126, X127, ms38_in_aa(T78, T83))
U7_aaaaaaaa(T72, T73, T74, T78, T84, T83, X126, X127, ms38_out_aa(T78, T83)) → U8_aaaaaaaa(T72, T73, T74, T78, T84, T83, X126, X127, ms38_in_aa(T84, X126))
U8_aaaaaaaa(T72, T73, T74, T78, T84, T83, X126, X127, ms38_out_aa(T84, X126)) → p34_out_aaaaaaaa(T72, T73, T74, T78, T84, T83, X126, X127)
p34_in_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127) → U9_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127, split12_in_aaaa(T72, .(T73, T74), T78, T84))
U9_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127, split12_out_aaaa(T72, .(T73, T74), T78, T84)) → U10_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127, ms38_in_aa(T78, T106))
U10_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127, ms38_out_aa(T78, T106)) → U11_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127, ms38_in_aa(T84, T105))
U11_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127, ms38_out_aa(T84, T105)) → U12_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127, merge54_in_aaa(T106, T105, X127))
merge54_in_aaa([], T113, T113) → merge54_out_aaa([], T113, T113)
merge54_in_aaa(T118, [], T118) → merge54_out_aaa(T118, [], T118)
merge54_in_aaa(.(T139, T141), .(T140, T142), .(T139, X226)) → U14_aaa(T139, T141, T140, T142, X226, less70_in_aa(T139, T140))
less70_in_aa(0, T154) → less70_out_aa(0, T154)
less70_in_aa(s(T161), T162) → U22_aa(T161, T162, less78_in_aa(T161, T162))
less78_in_aa(0, s(T169)) → less78_out_aa(0, s(T169))
less78_in_aa(s(T176), s(T177)) → U20_aa(T176, T177, less78_in_aa(T176, T177))
U20_aa(T176, T177, less78_out_aa(T176, T177)) → less78_out_aa(s(T176), s(T177))
U22_aa(T161, T162, less78_out_aa(T161, T162)) → less70_out_aa(s(T161), T162)
U14_aaa(T139, T141, T140, T142, X226, less70_out_aa(T139, T140)) → merge54_out_aaa(.(T139, T141), .(T140, T142), .(T139, X226))
merge54_in_aaa(.(T139, T145), .(T146, T147), .(T139, X226)) → U15_aaa(T139, T145, T146, T147, X226, less70_in_aa(T139, T146))
U15_aaa(T139, T145, T146, T147, X226, less70_out_aa(T139, T146)) → U16_aaa(T139, T145, T146, T147, X226, merge54_in_aaa(T145, .(T146, T147), X226))
merge54_in_aaa(.(T197, T199), .(T196, T198), .(T196, X287)) → U17_aaa(T197, T199, T196, T198, X287, less78_in_aa(T196, T197))
U17_aaa(T197, T199, T196, T198, X287, less78_out_aa(T196, T197)) → merge54_out_aaa(.(T197, T199), .(T196, T198), .(T196, X287))
merge54_in_aaa(.(T202, T203), .(T196, T204), .(T196, X287)) → U18_aaa(T202, T203, T196, T204, X287, less78_in_aa(T196, T202))
U18_aaa(T202, T203, T196, T204, X287, less78_out_aa(T196, T202)) → U19_aaa(T202, T203, T196, T204, X287, merge54_in_aaa(.(T202, T203), T204, X287))
U19_aaa(T202, T203, T196, T204, X287, merge54_out_aaa(.(T202, T203), T204, X287)) → merge54_out_aaa(.(T202, T203), .(T196, T204), .(T196, X287))
U16_aaa(T139, T145, T146, T147, X226, merge54_out_aaa(T145, .(T146, T147), X226)) → merge54_out_aaa(.(T139, T145), .(T146, T147), .(T139, X226))
U12_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127, merge54_out_aaa(T106, T105, X127)) → p34_out_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127)
U13_aa(T99, T100, T101, X172, p34_out_aaaaaaaa(T99, T100, T101, X168, X169, X170, X171, X172)) → ms38_out_aa(.(T99, .(T100, T101)), X172)
U5_aaaaaaaa(T72, T73, T74, T78, T79, X125, X126, X127, ms38_out_aa(T78, X125)) → p34_out_aaaaaaaa(T72, T73, T74, T78, T79, X125, X126, X127)
U21_aaa(T72, T73, T74, X127, p34_out_aaaaaaaa(T72, T73, T74, X123, X124, X125, X126, X127)) → ms25_out_aaa(T72, .(T73, T74), X127)
U37_ag(T34, T27, T28, ms25_out_aaa(T34, T33, X13)) → ms1_out_ag(.(T34, .(T27, T28)), [])
ms1_in_ag(.(T34, .(T27, T28)), []) → U38_ag(T34, T27, T28, split12_in_aaaa(T27, T28, T55, T33))
U38_ag(T34, T27, T28, split12_out_aaaa(T27, T28, T55, T33)) → U39_ag(T34, T27, T28, T55, ms25_in_aaa(T34, T33, T54))
U39_ag(T34, T27, T28, T55, ms25_out_aaa(T34, T33, T54)) → U40_ag(T34, T27, T28, ms38_in_aa(T55, X14))
U40_ag(T34, T27, T28, ms38_out_aa(T55, X14)) → ms1_out_ag(.(T34, .(T27, T28)), [])
U38_ag(T34, T27, T28, split12_out_aaaa(T27, T28, T55, T33)) → U41_ag(T34, T27, T28, T55, ms25_in_aaa(T34, T33, T212))
U41_ag(T34, T27, T28, T55, ms25_out_aaa(T34, T33, T212)) → U42_ag(T34, T27, T28, T212, ms38_in_aa(T55, T211))
U42_ag(T34, T27, T28, T212, ms38_out_aa(T55, T211)) → U43_ag(T34, T27, T28, merge93_in_aa(T212, T211))
merge93_in_aa([], []) → merge93_out_aa([], [])
U43_ag(T34, T27, T28, merge93_out_aa(T212, T211)) → ms1_out_ag(.(T34, .(T27, T28)), [])
ms1_in_ag(.(T234, []), .(T234, [])) → ms1_out_ag(.(T234, []), .(T234, []))
ms1_in_ag(.(T262, .(T260, T261)), .(T242, [])) → U44_ag(T262, T260, T261, T242, split12_in_aaaa(T260, T261, X367, X366))
U44_ag(T262, T260, T261, T242, split12_out_aaaa(T260, T261, X367, X366)) → ms1_out_ag(.(T262, .(T260, T261)), .(T242, []))
ms1_in_ag(.(T267, .(T260, T261)), .(T242, [])) → U45_ag(T267, T260, T261, T242, split12_in_aaaa(T260, T261, T265, T266))
U45_ag(T267, T260, T261, T242, split12_out_aaaa(T260, T261, T265, T266)) → U46_ag(T267, T260, T261, T242, ms25_in_aaa(T267, T266, X338))
U46_ag(T267, T260, T261, T242, ms25_out_aaa(T267, T266, X338)) → ms1_out_ag(.(T267, .(T260, T261)), .(T242, []))
ms1_in_ag(.(T267, .(T260, T261)), .(T242, [])) → U47_ag(T267, T260, T261, T242, split12_in_aaaa(T260, T261, T273, T266))
U47_ag(T267, T260, T261, T242, split12_out_aaaa(T260, T261, T273, T266)) → U48_ag(T267, T260, T261, T242, T273, ms25_in_aaa(T267, T266, T272))
U48_ag(T267, T260, T261, T242, T273, ms25_out_aaa(T267, T266, T272)) → U49_ag(T267, T260, T261, T242, ms38_in_aa(T273, X339))
U49_ag(T267, T260, T261, T242, ms38_out_aa(T273, X339)) → ms1_out_ag(.(T267, .(T260, T261)), .(T242, []))
ms1_in_ag(.(T267, .(T260, T261)), .(T291, [])) → U50_ag(T267, T260, T261, T291, split12_in_aaaa(T260, T261, T273, T266))
U50_ag(T267, T260, T261, T291, split12_out_aaaa(T260, T261, T273, T266)) → U51_ag(T267, T260, T261, T291, T273, ms25_in_aag(T267, T266, []))
ms25_in_aag(T62, [], .(T62, [])) → ms25_out_aag(T62, [], .(T62, []))
ms25_in_aag(T72, .(T73, T74), X127) → U21_aag(T72, T73, T74, X127, p34_in_aaaaaaag(T72, T73, T74, X123, X124, X125, X126, X127))
p34_in_aaaaaaag(T72, T73, T74, X123, X124, X125, X126, X127) → U3_aaaaaaag(T72, T73, T74, X123, X124, X125, X126, X127, split12_in_aaaa(T72, .(T73, T74), X123, X124))
U3_aaaaaaag(T72, T73, T74, X123, X124, X125, X126, X127, split12_out_aaaa(T72, .(T73, T74), X123, X124)) → p34_out_aaaaaaag(T72, T73, T74, X123, X124, X125, X126, X127)
p34_in_aaaaaaag(T72, T73, T74, T78, T79, X125, X126, X127) → U4_aaaaaaag(T72, T73, T74, T78, T79, X125, X126, X127, split12_in_aaaa(T72, .(T73, T74), T78, T79))
U4_aaaaaaag(T72, T73, T74, T78, T79, X125, X126, X127, split12_out_aaaa(T72, .(T73, T74), T78, T79)) → U5_aaaaaaag(T72, T73, T74, T78, T79, X125, X126, X127, ms38_in_aa(T78, X125))
U5_aaaaaaag(T72, T73, T74, T78, T79, X125, X126, X127, ms38_out_aa(T78, X125)) → p34_out_aaaaaaag(T72, T73, T74, T78, T79, X125, X126, X127)
p34_in_aaaaaaag(T72, T73, T74, T78, T84, T83, X126, X127) → U6_aaaaaaag(T72, T73, T74, T78, T84, T83, X126, X127, split12_in_aaaa(T72, .(T73, T74), T78, T84))
U6_aaaaaaag(T72, T73, T74, T78, T84, T83, X126, X127, split12_out_aaaa(T72, .(T73, T74), T78, T84)) → U7_aaaaaaag(T72, T73, T74, T78, T84, T83, X126, X127, ms38_in_aa(T78, T83))
U7_aaaaaaag(T72, T73, T74, T78, T84, T83, X126, X127, ms38_out_aa(T78, T83)) → U8_aaaaaaag(T72, T73, T74, T78, T84, T83, X126, X127, ms38_in_aa(T84, X126))
U8_aaaaaaag(T72, T73, T74, T78, T84, T83, X126, X127, ms38_out_aa(T84, X126)) → p34_out_aaaaaaag(T72, T73, T74, T78, T84, T83, X126, X127)
p34_in_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127) → U9_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127, split12_in_aaaa(T72, .(T73, T74), T78, T84))
U9_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127, split12_out_aaaa(T72, .(T73, T74), T78, T84)) → U10_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127, ms38_in_aa(T78, T106))
U10_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127, ms38_out_aa(T78, T106)) → U11_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127, ms38_in_aa(T84, T105))
U11_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127, ms38_out_aa(T84, T105)) → U12_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127, merge54_in_aag(T106, T105, X127))
merge54_in_aag([], T113, T113) → merge54_out_aag([], T113, T113)
merge54_in_aag(T118, [], T118) → merge54_out_aag(T118, [], T118)
merge54_in_aag(.(T139, T141), .(T140, T142), .(T139, X226)) → U14_aag(T139, T141, T140, T142, X226, less70_in_ga(T139, T140))
less70_in_ga(0, T154) → less70_out_ga(0, T154)
less70_in_ga(s(T161), T162) → U22_ga(T161, T162, less78_in_ga(T161, T162))
less78_in_ga(0, s(T169)) → less78_out_ga(0, s(T169))
less78_in_ga(s(T176), s(T177)) → U20_ga(T176, T177, less78_in_ga(T176, T177))
U20_ga(T176, T177, less78_out_ga(T176, T177)) → less78_out_ga(s(T176), s(T177))
U22_ga(T161, T162, less78_out_ga(T161, T162)) → less70_out_ga(s(T161), T162)
U14_aag(T139, T141, T140, T142, X226, less70_out_ga(T139, T140)) → merge54_out_aag(.(T139, T141), .(T140, T142), .(T139, X226))
merge54_in_aag(.(T139, T145), .(T146, T147), .(T139, X226)) → U15_aag(T139, T145, T146, T147, X226, less70_in_ga(T139, T146))
U15_aag(T139, T145, T146, T147, X226, less70_out_ga(T139, T146)) → U16_aag(T139, T145, T146, T147, X226, merge54_in_aag(T145, .(T146, T147), X226))
merge54_in_aag(.(T197, T199), .(T196, T198), .(T196, X287)) → U17_aag(T197, T199, T196, T198, X287, less78_in_ga(T196, T197))
U17_aag(T197, T199, T196, T198, X287, less78_out_ga(T196, T197)) → merge54_out_aag(.(T197, T199), .(T196, T198), .(T196, X287))
merge54_in_aag(.(T202, T203), .(T196, T204), .(T196, X287)) → U18_aag(T202, T203, T196, T204, X287, less78_in_ga(T196, T202))
U18_aag(T202, T203, T196, T204, X287, less78_out_ga(T196, T202)) → U19_aag(T202, T203, T196, T204, X287, merge54_in_aag(.(T202, T203), T204, X287))
U19_aag(T202, T203, T196, T204, X287, merge54_out_aag(.(T202, T203), T204, X287)) → merge54_out_aag(.(T202, T203), .(T196, T204), .(T196, X287))
U16_aag(T139, T145, T146, T147, X226, merge54_out_aag(T145, .(T146, T147), X226)) → merge54_out_aag(.(T139, T145), .(T146, T147), .(T139, X226))
U12_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127, merge54_out_aag(T106, T105, X127)) → p34_out_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127)
U21_aag(T72, T73, T74, X127, p34_out_aaaaaaag(T72, T73, T74, X123, X124, X125, X126, X127)) → ms25_out_aag(T72, .(T73, T74), X127)
U51_ag(T267, T260, T261, T291, T273, ms25_out_aag(T267, T266, [])) → U52_ag(T267, T260, T261, T291, ms38_in_ag(T273, .(T291, [])))
ms38_in_ag([], []) → ms38_out_ag([], [])
ms38_in_ag(.(T89, []), .(T89, [])) → ms38_out_ag(.(T89, []), .(T89, []))
ms38_in_ag(.(T99, .(T100, T101)), X172) → U13_ag(T99, T100, T101, X172, p34_in_aaaaaaag(T99, T100, T101, X168, X169, X170, X171, X172))
U13_ag(T99, T100, T101, X172, p34_out_aaaaaaag(T99, T100, T101, X168, X169, X170, X171, X172)) → ms38_out_ag(.(T99, .(T100, T101)), X172)
U52_ag(T267, T260, T261, T291, ms38_out_ag(T273, .(T291, []))) → ms1_out_ag(.(T267, .(T260, T261)), .(T291, []))
ms1_in_ag(.(T267, .(T260, T261)), .(T301, [])) → U53_ag(T267, T260, T261, T301, split12_in_aaaa(T260, T261, T273, T266))
U53_ag(T267, T260, T261, T301, split12_out_aaaa(T260, T261, T273, T266)) → U54_ag(T267, T260, T261, T301, T273, ms25_in_aag(T267, T266, .(T301, [])))
U54_ag(T267, T260, T261, T301, T273, ms25_out_aag(T267, T266, .(T301, []))) → U55_ag(T267, T260, T261, T301, ms38_in_ag(T273, []))
U55_ag(T267, T260, T261, T301, ms38_out_ag(T273, [])) → ms1_out_ag(.(T267, .(T260, T261)), .(T301, []))
ms1_in_ag(.(T267, .(T260, T261)), .(T318, [])) → U56_ag(T267, T260, T261, T318, split12_in_aaaa(T260, T261, T273, T266))
U56_ag(T267, T260, T261, T318, split12_out_aaaa(T260, T261, T273, T266)) → U57_ag(T267, T260, T261, T318, T273, ms25_in_aaa(T267, T266, .(T318, T323)))
U57_ag(T267, T260, T261, T318, T273, ms25_out_aaa(T267, T266, .(T318, T323))) → U58_ag(T267, T260, T261, T318, ms38_in_aa(T273, .(T322, T324)))
U58_ag(T267, T260, T261, T318, ms38_out_aa(T273, .(T322, T324))) → U59_ag(T267, T260, T261, T318, less70_in_ga(T318, T322))
U59_ag(T267, T260, T261, T318, less70_out_ga(T318, T322)) → ms1_out_ag(.(T267, .(T260, T261)), .(T318, []))
U56_ag(T267, T260, T261, T318, split12_out_aaaa(T260, T261, T273, T266)) → U60_ag(T267, T260, T261, T318, T273, ms25_in_aaa(T267, T266, .(T318, T327)))
U60_ag(T267, T260, T261, T318, T273, ms25_out_aaa(T267, T266, .(T318, T327))) → U61_ag(T267, T260, T261, T318, T327, ms38_in_aa(T273, .(T328, T329)))
U61_ag(T267, T260, T261, T318, T327, ms38_out_aa(T273, .(T328, T329))) → U62_ag(T267, T260, T261, T318, T327, T328, T329, less70_in_ga(T318, T328))
U62_ag(T267, T260, T261, T318, T327, T328, T329, less70_out_ga(T318, T328)) → U63_ag(T267, T260, T261, T318, merge93_in_aa(T327, .(T328, T329)))
U63_ag(T267, T260, T261, T318, merge93_out_aa(T327, .(T328, T329))) → ms1_out_ag(.(T267, .(T260, T261)), .(T318, []))
ms1_in_ag(.(T267, .(T260, T261)), .(T356, [])) → U64_ag(T267, T260, T261, T356, split12_in_aaaa(T260, T261, T273, T266))
U64_ag(T267, T260, T261, T356, split12_out_aaaa(T260, T261, T273, T266)) → U65_ag(T267, T260, T261, T356, T273, ms25_in_aaa(T267, T266, .(T358, T360)))
U65_ag(T267, T260, T261, T356, T273, ms25_out_aaa(T267, T266, .(T358, T360))) → U66_ag(T267, T260, T261, T356, T358, ms38_in_aa(T273, .(T356, T359)))
U66_ag(T267, T260, T261, T356, T358, ms38_out_aa(T273, .(T356, T359))) → U67_ag(T267, T260, T261, T356, less78_in_ga(T356, T358))
U67_ag(T267, T260, T261, T356, less78_out_ga(T356, T358)) → ms1_out_ag(.(T267, .(T260, T261)), .(T356, []))
U64_ag(T267, T260, T261, T356, split12_out_aaaa(T260, T261, T273, T266)) → U68_ag(T267, T260, T261, T356, T273, ms25_in_aaa(T267, T266, .(T363, T364)))
U68_ag(T267, T260, T261, T356, T273, ms25_out_aaa(T267, T266, .(T363, T364))) → U69_ag(T267, T260, T261, T356, T363, T364, ms38_in_aa(T273, .(T356, T365)))
U69_ag(T267, T260, T261, T356, T363, T364, ms38_out_aa(T273, .(T356, T365))) → U70_ag(T267, T260, T261, T356, T363, T364, T365, less78_in_ga(T356, T363))
U70_ag(T267, T260, T261, T356, T363, T364, T365, less78_out_ga(T356, T363)) → U71_ag(T267, T260, T261, T356, merge93_in_aa(.(T363, T364), T365))
U71_ag(T267, T260, T261, T356, merge93_out_aa(.(T363, T364), T365)) → ms1_out_ag(.(T267, .(T260, T261)), .(T356, []))
ms1_in_ag(.(T407, .(T405, T406)), T387) → U72_ag(T407, T405, T406, T387, split12_in_aaaa(T405, T406, X523, X522))
U72_ag(T407, T405, T406, T387, split12_out_aaaa(T405, T406, X523, X522)) → ms1_out_ag(.(T407, .(T405, T406)), T387)
ms1_in_ag(.(T412, .(T405, T406)), T387) → U73_ag(T412, T405, T406, T387, split12_in_aaaa(T405, T406, T410, T411))
U73_ag(T412, T405, T406, T387, split12_out_aaaa(T405, T406, T410, T411)) → U74_ag(T412, T405, T406, T387, ms25_in_aaa(T412, T411, X494))
U74_ag(T412, T405, T406, T387, ms25_out_aaa(T412, T411, X494)) → ms1_out_ag(.(T412, .(T405, T406)), T387)
ms1_in_ag(.(T412, .(T405, T406)), T387) → U75_ag(T412, T405, T406, T387, split12_in_aaaa(T405, T406, T420, T411))
U75_ag(T412, T405, T406, T387, split12_out_aaaa(T405, T406, T420, T411)) → U76_ag(T412, T405, T406, T387, T420, ms25_in_aaa(T412, T411, T419))
U76_ag(T412, T405, T406, T387, T420, ms25_out_aaa(T412, T411, T419)) → U77_ag(T412, T405, T406, T387, ms38_in_aa(T420, X495))
U77_ag(T412, T405, T406, T387, ms38_out_aa(T420, X495)) → ms1_out_ag(.(T412, .(T405, T406)), T387)
ms1_in_ag(.(T412, .(T405, T406)), T435) → U78_ag(T412, T405, T406, T435, split12_in_aaaa(T405, T406, T420, T411))
U78_ag(T412, T405, T406, T435, split12_out_aaaa(T405, T406, T420, T411)) → U79_ag(T412, T405, T406, T435, T420, ms25_in_aag(T412, T411, []))
U79_ag(T412, T405, T406, T435, T420, ms25_out_aag(T412, T411, [])) → U80_ag(T412, T405, T406, T435, ms38_in_ag(T420, T435))
U80_ag(T412, T405, T406, T435, ms38_out_ag(T420, T435)) → ms1_out_ag(.(T412, .(T405, T406)), T435)
ms1_in_ag(.(T412, .(T405, T406)), T440) → U81_ag(T412, T405, T406, T440, split12_in_aaaa(T405, T406, T420, T411))
U81_ag(T412, T405, T406, T440, split12_out_aaaa(T405, T406, T420, T411)) → U82_ag(T412, T405, T406, T440, T420, ms25_in_aag(T412, T411, T440))
U82_ag(T412, T405, T406, T440, T420, ms25_out_aag(T412, T411, T440)) → U83_ag(T412, T405, T406, T440, ms38_in_ag(T420, []))
U83_ag(T412, T405, T406, T440, ms38_out_ag(T420, [])) → ms1_out_ag(.(T412, .(T405, T406)), T440)
ms1_in_ag(.(T412, .(T405, T406)), .(T461, T465)) → U84_ag(T412, T405, T406, T461, T465, split12_in_aaaa(T405, T406, T420, T411))
U84_ag(T412, T405, T406, T461, T465, split12_out_aaaa(T405, T406, T420, T411)) → U85_ag(T412, T405, T406, T461, T465, T420, ms25_in_aaa(T412, T411, .(T461, T467)))
U85_ag(T412, T405, T406, T461, T465, T420, ms25_out_aaa(T412, T411, .(T461, T467))) → U86_ag(T412, T405, T406, T461, T465, ms38_in_aa(T420, .(T466, T468)))
U86_ag(T412, T405, T406, T461, T465, ms38_out_aa(T420, .(T466, T468))) → U87_ag(T412, T405, T406, T461, T465, less70_in_ga(T461, T466))
U87_ag(T412, T405, T406, T461, T465, less70_out_ga(T461, T466)) → ms1_out_ag(.(T412, .(T405, T406)), .(T461, T465))
ms1_in_ag(.(T412, .(T405, T406)), .(T461, .(T490, T491))) → U88_ag(T412, T405, T406, T461, T490, T491, split12_in_aaaa(T405, T406, T420, T411))
U88_ag(T412, T405, T406, T461, T490, T491, split12_out_aaaa(T405, T406, T420, T411)) → U89_ag(T412, T405, T406, T461, T490, T491, T420, ms25_in_aag(T412, T411, .(T461, [])))
U89_ag(T412, T405, T406, T461, T490, T491, T420, ms25_out_aag(T412, T411, .(T461, []))) → U90_ag(T412, T405, T406, T461, T490, T491, ms38_in_ag(T420, .(T490, T491)))
U90_ag(T412, T405, T406, T461, T490, T491, ms38_out_ag(T420, .(T490, T491))) → U91_ag(T412, T405, T406, T461, T490, T491, less70_in_gg(T461, T490))
less70_in_gg(0, T154) → less70_out_gg(0, T154)
less70_in_gg(s(T161), T162) → U22_gg(T161, T162, less78_in_gg(T161, T162))
less78_in_gg(0, s(T169)) → less78_out_gg(0, s(T169))
less78_in_gg(s(T176), s(T177)) → U20_gg(T176, T177, less78_in_gg(T176, T177))
U20_gg(T176, T177, less78_out_gg(T176, T177)) → less78_out_gg(s(T176), s(T177))
U22_gg(T161, T162, less78_out_gg(T161, T162)) → less70_out_gg(s(T161), T162)
U91_ag(T412, T405, T406, T461, T490, T491, less70_out_gg(T461, T490)) → ms1_out_ag(.(T412, .(T405, T406)), .(T461, .(T490, T491)))
ms1_in_ag(.(T412, .(T405, T406)), .(T461, .(T513, T517))) → U92_ag(T412, T405, T406, T461, T513, T517, split12_in_aaaa(T405, T406, T420, T411))
U92_ag(T412, T405, T406, T461, T513, T517, split12_out_aaaa(T405, T406, T420, T411)) → U93_ag(T412, T405, T406, T461, T513, T517, T420, ms25_in_aaa(T412, T411, .(T461, .(T513, T519))))
U93_ag(T412, T405, T406, T461, T513, T517, T420, ms25_out_aaa(T412, T411, .(T461, .(T513, T519)))) → U94_ag(T412, T405, T406, T461, T513, T517, T519, ms38_in_aa(T420, .(T518, T520)))
U94_ag(T412, T405, T406, T461, T513, T517, T519, ms38_out_aa(T420, .(T518, T520))) → U95_ag(T412, T405, T406, T461, T513, T517, T519, T518, T520, less70_in_ga(T461, T518))
U95_ag(T412, T405, T406, T461, T513, T517, T519, T518, T520, less70_out_ga(T461, T518)) → U96_ag(T412, T405, T406, T461, T513, T517, p179_in_gaaag(T513, T518, T519, T520, T517))
p179_in_gaaag(T513, T518, T519, T520, T517) → U23_gaaag(T513, T518, T519, T520, T517, less70_in_ga(T513, T518))
U23_gaaag(T513, T518, T519, T520, T517, less70_out_ga(T513, T518)) → p179_out_gaaag(T513, T518, T519, T520, T517)
p179_in_gaaag(T513, T540, [], T541, .(T540, T541)) → U24_gaaag(T513, T540, T541, less70_in_gg(T513, T540))
U24_gaaag(T513, T540, T541, less70_out_gg(T513, T540)) → p179_out_gaaag(T513, T540, [], T541, .(T540, T541))
p179_in_gaaag(T513, T568, .(T563, T569), T570, .(T563, T567)) → U25_gaaag(T513, T568, T563, T569, T570, T567, less70_in_ga(T513, T568))
U25_gaaag(T513, T568, T563, T569, T570, T567, less70_out_ga(T513, T568)) → U26_gaaag(T513, T568, T563, T569, T570, T567, p179_in_gaaag(T563, T568, T569, T570, T567))
p179_in_gaaag(T513, T585, .(T588, T590), T589, .(T585, T587)) → U27_gaaag(T513, T585, T588, T590, T589, T587, less70_in_gg(T513, T585))
U27_gaaag(T513, T585, T588, T590, T589, T587, less70_out_gg(T513, T585)) → U28_gaaag(T513, T585, T588, T590, T589, T587, p194_in_gaaag(T585, T588, T590, T589, T587))
p194_in_gaaag(T585, T588, T590, T589, T587) → U29_gaaag(T585, T588, T590, T589, T587, less78_in_ga(T585, T588))
U29_gaaag(T585, T588, T590, T589, T587, less78_out_ga(T585, T588)) → p194_out_gaaag(T585, T588, T590, T589, T587)
p194_in_gaaag(T585, T610, T611, [], .(T610, T611)) → U30_gaaag(T585, T610, T611, less78_in_gg(T585, T610))
U30_gaaag(T585, T610, T611, less78_out_gg(T585, T610)) → p194_out_gaaag(T585, T610, T611, [], .(T610, T611))
p194_in_gaaag(T585, T632, T638, .(T637, T639), .(T632, T636)) → U31_gaaag(T585, T632, T638, T637, T639, T636, less78_in_gg(T585, T632))
U31_gaaag(T585, T632, T638, T637, T639, T636, less78_out_gg(T585, T632)) → U32_gaaag(T585, T632, T638, T637, T639, T636, p179_in_gaaag(T632, T637, T638, T639, T636))
U32_gaaag(T585, T632, T638, T637, T639, T636, p179_out_gaaag(T632, T637, T638, T639, T636)) → p194_out_gaaag(T585, T632, T638, .(T637, T639), .(T632, T636))
p194_in_gaaag(T585, T657, T659, .(T654, T658), .(T654, T656)) → U33_gaaag(T585, T657, T659, T654, T658, T656, less78_in_ga(T585, T657))
U33_gaaag(T585, T657, T659, T654, T658, T656, less78_out_ga(T585, T657)) → U34_gaaag(T585, T657, T659, T654, T658, T656, p194_in_gaaag(T654, T657, T659, T658, T656))
U34_gaaag(T585, T657, T659, T654, T658, T656, p194_out_gaaag(T654, T657, T659, T658, T656)) → p194_out_gaaag(T585, T657, T659, .(T654, T658), .(T654, T656))
U28_gaaag(T513, T585, T588, T590, T589, T587, p194_out_gaaag(T585, T588, T590, T589, T587)) → p179_out_gaaag(T513, T585, .(T588, T590), T589, .(T585, T587))
U26_gaaag(T513, T568, T563, T569, T570, T567, p179_out_gaaag(T563, T568, T569, T570, T567)) → p179_out_gaaag(T513, T568, .(T563, T569), T570, .(T563, T567))
U96_ag(T412, T405, T406, T461, T513, T517, p179_out_gaaag(T513, T518, T519, T520, T517)) → ms1_out_ag(.(T412, .(T405, T406)), .(T461, .(T513, T517)))
ms1_in_ag(.(T412, .(T405, T406)), .(T461, .(T674, T676))) → U97_ag(T412, T405, T406, T461, T674, T676, split12_in_aaaa(T405, T406, T420, T411))
U97_ag(T412, T405, T406, T461, T674, T676, split12_out_aaaa(T405, T406, T420, T411)) → U98_ag(T412, T405, T406, T461, T674, T676, T420, ms25_in_aaa(T412, T411, .(T461, .(T677, T679))))
U98_ag(T412, T405, T406, T461, T674, T676, T420, ms25_out_aaa(T412, T411, .(T461, .(T677, T679)))) → U99_ag(T412, T405, T406, T461, T674, T676, T677, T679, ms38_in_aa(T420, .(T674, T678)))
U99_ag(T412, T405, T406, T461, T674, T676, T677, T679, ms38_out_aa(T420, .(T674, T678))) → U100_ag(T412, T405, T406, T461, T674, T676, T677, T679, T678, less70_in_gg(T461, T674))
U100_ag(T412, T405, T406, T461, T674, T676, T677, T679, T678, less70_out_gg(T461, T674)) → U101_ag(T412, T405, T406, T461, T674, T676, p194_in_gaaag(T674, T677, T679, T678, T676))
U101_ag(T412, T405, T406, T461, T674, T676, p194_out_gaaag(T674, T677, T679, T678, T676)) → ms1_out_ag(.(T412, .(T405, T406)), .(T461, .(T674, T676)))
ms1_in_ag(.(T412, .(T405, T406)), .(T694, T696)) → U102_ag(T412, T405, T406, T694, T696, split12_in_aaaa(T405, T406, T420, T411))
U102_ag(T412, T405, T406, T694, T696, split12_out_aaaa(T405, T406, T420, T411)) → U103_ag(T412, T405, T406, T694, T696, T420, ms25_in_aaa(T412, T411, .(T697, T699)))
U103_ag(T412, T405, T406, T694, T696, T420, ms25_out_aaa(T412, T411, .(T697, T699))) → U104_ag(T412, T405, T406, T694, T696, T697, T699, ms38_in_aa(T420, .(T694, T698)))
U104_ag(T412, T405, T406, T694, T696, T697, T699, ms38_out_aa(T420, .(T694, T698))) → U105_ag(T412, T405, T406, T694, T696, p194_in_gaaag(T694, T697, T699, T698, T696))
U105_ag(T412, T405, T406, T694, T696, p194_out_gaaag(T694, T697, T699, T698, T696)) → ms1_out_ag(.(T412, .(T405, T406)), .(T694, T696))
LESS78_IN_AA(s(T176), s(T177)) → LESS78_IN_AA(T176, T177)
LESS78_IN_AA → LESS78_IN_AA
MERGE54_IN_AAA(.(T139, T145), .(T146, T147), .(T139, X226)) → U15_AAA(T139, T145, T146, T147, X226, less70_in_aa(T139, T146))
U15_AAA(T139, T145, T146, T147, X226, less70_out_aa(T139, T146)) → MERGE54_IN_AAA(T145, .(T146, T147), X226)
MERGE54_IN_AAA(.(T202, T203), .(T196, T204), .(T196, X287)) → U18_AAA(T202, T203, T196, T204, X287, less78_in_aa(T196, T202))
U18_AAA(T202, T203, T196, T204, X287, less78_out_aa(T196, T202)) → MERGE54_IN_AAA(.(T202, T203), T204, X287)
ms1_in_ag([], []) → ms1_out_ag([], [])
ms1_in_ag(.(T29, .(T27, T28)), []) → U35_ag(T29, T27, T28, split12_in_aaaa(T27, T28, X42, X41))
split12_in_aaaa(T42, T44, .(T42, X71), X72) → U2_aaaa(T42, T44, X71, X72, split16_in_aaa(T44, X72, X71))
split16_in_aaa([], [], []) → split16_out_aaa([], [], [])
split16_in_aaa(.(T49, T51), .(T49, X89), X90) → U1_aaa(T49, T51, X89, X90, split16_in_aaa(T51, X90, X89))
U1_aaa(T49, T51, X89, X90, split16_out_aaa(T51, X90, X89)) → split16_out_aaa(.(T49, T51), .(T49, X89), X90)
U2_aaaa(T42, T44, X71, X72, split16_out_aaa(T44, X72, X71)) → split12_out_aaaa(T42, T44, .(T42, X71), X72)
U35_ag(T29, T27, T28, split12_out_aaaa(T27, T28, X42, X41)) → ms1_out_ag(.(T29, .(T27, T28)), [])
ms1_in_ag(.(T34, .(T27, T28)), []) → U36_ag(T34, T27, T28, split12_in_aaaa(T27, T28, T32, T33))
U36_ag(T34, T27, T28, split12_out_aaaa(T27, T28, T32, T33)) → U37_ag(T34, T27, T28, ms25_in_aaa(T34, T33, X13))
ms25_in_aaa(T62, [], .(T62, [])) → ms25_out_aaa(T62, [], .(T62, []))
ms25_in_aaa(T72, .(T73, T74), X127) → U21_aaa(T72, T73, T74, X127, p34_in_aaaaaaaa(T72, T73, T74, X123, X124, X125, X126, X127))
p34_in_aaaaaaaa(T72, T73, T74, X123, X124, X125, X126, X127) → U3_aaaaaaaa(T72, T73, T74, X123, X124, X125, X126, X127, split12_in_aaaa(T72, .(T73, T74), X123, X124))
U3_aaaaaaaa(T72, T73, T74, X123, X124, X125, X126, X127, split12_out_aaaa(T72, .(T73, T74), X123, X124)) → p34_out_aaaaaaaa(T72, T73, T74, X123, X124, X125, X126, X127)
p34_in_aaaaaaaa(T72, T73, T74, T78, T79, X125, X126, X127) → U4_aaaaaaaa(T72, T73, T74, T78, T79, X125, X126, X127, split12_in_aaaa(T72, .(T73, T74), T78, T79))
U4_aaaaaaaa(T72, T73, T74, T78, T79, X125, X126, X127, split12_out_aaaa(T72, .(T73, T74), T78, T79)) → U5_aaaaaaaa(T72, T73, T74, T78, T79, X125, X126, X127, ms38_in_aa(T78, X125))
ms38_in_aa([], []) → ms38_out_aa([], [])
ms38_in_aa(.(T89, []), .(T89, [])) → ms38_out_aa(.(T89, []), .(T89, []))
ms38_in_aa(.(T99, .(T100, T101)), X172) → U13_aa(T99, T100, T101, X172, p34_in_aaaaaaaa(T99, T100, T101, X168, X169, X170, X171, X172))
p34_in_aaaaaaaa(T72, T73, T74, T78, T84, T83, X126, X127) → U6_aaaaaaaa(T72, T73, T74, T78, T84, T83, X126, X127, split12_in_aaaa(T72, .(T73, T74), T78, T84))
U6_aaaaaaaa(T72, T73, T74, T78, T84, T83, X126, X127, split12_out_aaaa(T72, .(T73, T74), T78, T84)) → U7_aaaaaaaa(T72, T73, T74, T78, T84, T83, X126, X127, ms38_in_aa(T78, T83))
U7_aaaaaaaa(T72, T73, T74, T78, T84, T83, X126, X127, ms38_out_aa(T78, T83)) → U8_aaaaaaaa(T72, T73, T74, T78, T84, T83, X126, X127, ms38_in_aa(T84, X126))
U8_aaaaaaaa(T72, T73, T74, T78, T84, T83, X126, X127, ms38_out_aa(T84, X126)) → p34_out_aaaaaaaa(T72, T73, T74, T78, T84, T83, X126, X127)
p34_in_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127) → U9_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127, split12_in_aaaa(T72, .(T73, T74), T78, T84))
U9_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127, split12_out_aaaa(T72, .(T73, T74), T78, T84)) → U10_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127, ms38_in_aa(T78, T106))
U10_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127, ms38_out_aa(T78, T106)) → U11_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127, ms38_in_aa(T84, T105))
U11_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127, ms38_out_aa(T84, T105)) → U12_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127, merge54_in_aaa(T106, T105, X127))
merge54_in_aaa([], T113, T113) → merge54_out_aaa([], T113, T113)
merge54_in_aaa(T118, [], T118) → merge54_out_aaa(T118, [], T118)
merge54_in_aaa(.(T139, T141), .(T140, T142), .(T139, X226)) → U14_aaa(T139, T141, T140, T142, X226, less70_in_aa(T139, T140))
less70_in_aa(0, T154) → less70_out_aa(0, T154)
less70_in_aa(s(T161), T162) → U22_aa(T161, T162, less78_in_aa(T161, T162))
less78_in_aa(0, s(T169)) → less78_out_aa(0, s(T169))
less78_in_aa(s(T176), s(T177)) → U20_aa(T176, T177, less78_in_aa(T176, T177))
U20_aa(T176, T177, less78_out_aa(T176, T177)) → less78_out_aa(s(T176), s(T177))
U22_aa(T161, T162, less78_out_aa(T161, T162)) → less70_out_aa(s(T161), T162)
U14_aaa(T139, T141, T140, T142, X226, less70_out_aa(T139, T140)) → merge54_out_aaa(.(T139, T141), .(T140, T142), .(T139, X226))
merge54_in_aaa(.(T139, T145), .(T146, T147), .(T139, X226)) → U15_aaa(T139, T145, T146, T147, X226, less70_in_aa(T139, T146))
U15_aaa(T139, T145, T146, T147, X226, less70_out_aa(T139, T146)) → U16_aaa(T139, T145, T146, T147, X226, merge54_in_aaa(T145, .(T146, T147), X226))
merge54_in_aaa(.(T197, T199), .(T196, T198), .(T196, X287)) → U17_aaa(T197, T199, T196, T198, X287, less78_in_aa(T196, T197))
U17_aaa(T197, T199, T196, T198, X287, less78_out_aa(T196, T197)) → merge54_out_aaa(.(T197, T199), .(T196, T198), .(T196, X287))
merge54_in_aaa(.(T202, T203), .(T196, T204), .(T196, X287)) → U18_aaa(T202, T203, T196, T204, X287, less78_in_aa(T196, T202))
U18_aaa(T202, T203, T196, T204, X287, less78_out_aa(T196, T202)) → U19_aaa(T202, T203, T196, T204, X287, merge54_in_aaa(.(T202, T203), T204, X287))
U19_aaa(T202, T203, T196, T204, X287, merge54_out_aaa(.(T202, T203), T204, X287)) → merge54_out_aaa(.(T202, T203), .(T196, T204), .(T196, X287))
U16_aaa(T139, T145, T146, T147, X226, merge54_out_aaa(T145, .(T146, T147), X226)) → merge54_out_aaa(.(T139, T145), .(T146, T147), .(T139, X226))
U12_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127, merge54_out_aaa(T106, T105, X127)) → p34_out_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127)
U13_aa(T99, T100, T101, X172, p34_out_aaaaaaaa(T99, T100, T101, X168, X169, X170, X171, X172)) → ms38_out_aa(.(T99, .(T100, T101)), X172)
U5_aaaaaaaa(T72, T73, T74, T78, T79, X125, X126, X127, ms38_out_aa(T78, X125)) → p34_out_aaaaaaaa(T72, T73, T74, T78, T79, X125, X126, X127)
U21_aaa(T72, T73, T74, X127, p34_out_aaaaaaaa(T72, T73, T74, X123, X124, X125, X126, X127)) → ms25_out_aaa(T72, .(T73, T74), X127)
U37_ag(T34, T27, T28, ms25_out_aaa(T34, T33, X13)) → ms1_out_ag(.(T34, .(T27, T28)), [])
ms1_in_ag(.(T34, .(T27, T28)), []) → U38_ag(T34, T27, T28, split12_in_aaaa(T27, T28, T55, T33))
U38_ag(T34, T27, T28, split12_out_aaaa(T27, T28, T55, T33)) → U39_ag(T34, T27, T28, T55, ms25_in_aaa(T34, T33, T54))
U39_ag(T34, T27, T28, T55, ms25_out_aaa(T34, T33, T54)) → U40_ag(T34, T27, T28, ms38_in_aa(T55, X14))
U40_ag(T34, T27, T28, ms38_out_aa(T55, X14)) → ms1_out_ag(.(T34, .(T27, T28)), [])
U38_ag(T34, T27, T28, split12_out_aaaa(T27, T28, T55, T33)) → U41_ag(T34, T27, T28, T55, ms25_in_aaa(T34, T33, T212))
U41_ag(T34, T27, T28, T55, ms25_out_aaa(T34, T33, T212)) → U42_ag(T34, T27, T28, T212, ms38_in_aa(T55, T211))
U42_ag(T34, T27, T28, T212, ms38_out_aa(T55, T211)) → U43_ag(T34, T27, T28, merge93_in_aa(T212, T211))
merge93_in_aa([], []) → merge93_out_aa([], [])
U43_ag(T34, T27, T28, merge93_out_aa(T212, T211)) → ms1_out_ag(.(T34, .(T27, T28)), [])
ms1_in_ag(.(T234, []), .(T234, [])) → ms1_out_ag(.(T234, []), .(T234, []))
ms1_in_ag(.(T262, .(T260, T261)), .(T242, [])) → U44_ag(T262, T260, T261, T242, split12_in_aaaa(T260, T261, X367, X366))
U44_ag(T262, T260, T261, T242, split12_out_aaaa(T260, T261, X367, X366)) → ms1_out_ag(.(T262, .(T260, T261)), .(T242, []))
ms1_in_ag(.(T267, .(T260, T261)), .(T242, [])) → U45_ag(T267, T260, T261, T242, split12_in_aaaa(T260, T261, T265, T266))
U45_ag(T267, T260, T261, T242, split12_out_aaaa(T260, T261, T265, T266)) → U46_ag(T267, T260, T261, T242, ms25_in_aaa(T267, T266, X338))
U46_ag(T267, T260, T261, T242, ms25_out_aaa(T267, T266, X338)) → ms1_out_ag(.(T267, .(T260, T261)), .(T242, []))
ms1_in_ag(.(T267, .(T260, T261)), .(T242, [])) → U47_ag(T267, T260, T261, T242, split12_in_aaaa(T260, T261, T273, T266))
U47_ag(T267, T260, T261, T242, split12_out_aaaa(T260, T261, T273, T266)) → U48_ag(T267, T260, T261, T242, T273, ms25_in_aaa(T267, T266, T272))
U48_ag(T267, T260, T261, T242, T273, ms25_out_aaa(T267, T266, T272)) → U49_ag(T267, T260, T261, T242, ms38_in_aa(T273, X339))
U49_ag(T267, T260, T261, T242, ms38_out_aa(T273, X339)) → ms1_out_ag(.(T267, .(T260, T261)), .(T242, []))
ms1_in_ag(.(T267, .(T260, T261)), .(T291, [])) → U50_ag(T267, T260, T261, T291, split12_in_aaaa(T260, T261, T273, T266))
U50_ag(T267, T260, T261, T291, split12_out_aaaa(T260, T261, T273, T266)) → U51_ag(T267, T260, T261, T291, T273, ms25_in_aag(T267, T266, []))
ms25_in_aag(T62, [], .(T62, [])) → ms25_out_aag(T62, [], .(T62, []))
ms25_in_aag(T72, .(T73, T74), X127) → U21_aag(T72, T73, T74, X127, p34_in_aaaaaaag(T72, T73, T74, X123, X124, X125, X126, X127))
p34_in_aaaaaaag(T72, T73, T74, X123, X124, X125, X126, X127) → U3_aaaaaaag(T72, T73, T74, X123, X124, X125, X126, X127, split12_in_aaaa(T72, .(T73, T74), X123, X124))
U3_aaaaaaag(T72, T73, T74, X123, X124, X125, X126, X127, split12_out_aaaa(T72, .(T73, T74), X123, X124)) → p34_out_aaaaaaag(T72, T73, T74, X123, X124, X125, X126, X127)
p34_in_aaaaaaag(T72, T73, T74, T78, T79, X125, X126, X127) → U4_aaaaaaag(T72, T73, T74, T78, T79, X125, X126, X127, split12_in_aaaa(T72, .(T73, T74), T78, T79))
U4_aaaaaaag(T72, T73, T74, T78, T79, X125, X126, X127, split12_out_aaaa(T72, .(T73, T74), T78, T79)) → U5_aaaaaaag(T72, T73, T74, T78, T79, X125, X126, X127, ms38_in_aa(T78, X125))
U5_aaaaaaag(T72, T73, T74, T78, T79, X125, X126, X127, ms38_out_aa(T78, X125)) → p34_out_aaaaaaag(T72, T73, T74, T78, T79, X125, X126, X127)
p34_in_aaaaaaag(T72, T73, T74, T78, T84, T83, X126, X127) → U6_aaaaaaag(T72, T73, T74, T78, T84, T83, X126, X127, split12_in_aaaa(T72, .(T73, T74), T78, T84))
U6_aaaaaaag(T72, T73, T74, T78, T84, T83, X126, X127, split12_out_aaaa(T72, .(T73, T74), T78, T84)) → U7_aaaaaaag(T72, T73, T74, T78, T84, T83, X126, X127, ms38_in_aa(T78, T83))
U7_aaaaaaag(T72, T73, T74, T78, T84, T83, X126, X127, ms38_out_aa(T78, T83)) → U8_aaaaaaag(T72, T73, T74, T78, T84, T83, X126, X127, ms38_in_aa(T84, X126))
U8_aaaaaaag(T72, T73, T74, T78, T84, T83, X126, X127, ms38_out_aa(T84, X126)) → p34_out_aaaaaaag(T72, T73, T74, T78, T84, T83, X126, X127)
p34_in_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127) → U9_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127, split12_in_aaaa(T72, .(T73, T74), T78, T84))
U9_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127, split12_out_aaaa(T72, .(T73, T74), T78, T84)) → U10_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127, ms38_in_aa(T78, T106))
U10_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127, ms38_out_aa(T78, T106)) → U11_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127, ms38_in_aa(T84, T105))
U11_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127, ms38_out_aa(T84, T105)) → U12_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127, merge54_in_aag(T106, T105, X127))
merge54_in_aag([], T113, T113) → merge54_out_aag([], T113, T113)
merge54_in_aag(T118, [], T118) → merge54_out_aag(T118, [], T118)
merge54_in_aag(.(T139, T141), .(T140, T142), .(T139, X226)) → U14_aag(T139, T141, T140, T142, X226, less70_in_ga(T139, T140))
less70_in_ga(0, T154) → less70_out_ga(0, T154)
less70_in_ga(s(T161), T162) → U22_ga(T161, T162, less78_in_ga(T161, T162))
less78_in_ga(0, s(T169)) → less78_out_ga(0, s(T169))
less78_in_ga(s(T176), s(T177)) → U20_ga(T176, T177, less78_in_ga(T176, T177))
U20_ga(T176, T177, less78_out_ga(T176, T177)) → less78_out_ga(s(T176), s(T177))
U22_ga(T161, T162, less78_out_ga(T161, T162)) → less70_out_ga(s(T161), T162)
U14_aag(T139, T141, T140, T142, X226, less70_out_ga(T139, T140)) → merge54_out_aag(.(T139, T141), .(T140, T142), .(T139, X226))
merge54_in_aag(.(T139, T145), .(T146, T147), .(T139, X226)) → U15_aag(T139, T145, T146, T147, X226, less70_in_ga(T139, T146))
U15_aag(T139, T145, T146, T147, X226, less70_out_ga(T139, T146)) → U16_aag(T139, T145, T146, T147, X226, merge54_in_aag(T145, .(T146, T147), X226))
merge54_in_aag(.(T197, T199), .(T196, T198), .(T196, X287)) → U17_aag(T197, T199, T196, T198, X287, less78_in_ga(T196, T197))
U17_aag(T197, T199, T196, T198, X287, less78_out_ga(T196, T197)) → merge54_out_aag(.(T197, T199), .(T196, T198), .(T196, X287))
merge54_in_aag(.(T202, T203), .(T196, T204), .(T196, X287)) → U18_aag(T202, T203, T196, T204, X287, less78_in_ga(T196, T202))
U18_aag(T202, T203, T196, T204, X287, less78_out_ga(T196, T202)) → U19_aag(T202, T203, T196, T204, X287, merge54_in_aag(.(T202, T203), T204, X287))
U19_aag(T202, T203, T196, T204, X287, merge54_out_aag(.(T202, T203), T204, X287)) → merge54_out_aag(.(T202, T203), .(T196, T204), .(T196, X287))
U16_aag(T139, T145, T146, T147, X226, merge54_out_aag(T145, .(T146, T147), X226)) → merge54_out_aag(.(T139, T145), .(T146, T147), .(T139, X226))
U12_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127, merge54_out_aag(T106, T105, X127)) → p34_out_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127)
U21_aag(T72, T73, T74, X127, p34_out_aaaaaaag(T72, T73, T74, X123, X124, X125, X126, X127)) → ms25_out_aag(T72, .(T73, T74), X127)
U51_ag(T267, T260, T261, T291, T273, ms25_out_aag(T267, T266, [])) → U52_ag(T267, T260, T261, T291, ms38_in_ag(T273, .(T291, [])))
ms38_in_ag([], []) → ms38_out_ag([], [])
ms38_in_ag(.(T89, []), .(T89, [])) → ms38_out_ag(.(T89, []), .(T89, []))
ms38_in_ag(.(T99, .(T100, T101)), X172) → U13_ag(T99, T100, T101, X172, p34_in_aaaaaaag(T99, T100, T101, X168, X169, X170, X171, X172))
U13_ag(T99, T100, T101, X172, p34_out_aaaaaaag(T99, T100, T101, X168, X169, X170, X171, X172)) → ms38_out_ag(.(T99, .(T100, T101)), X172)
U52_ag(T267, T260, T261, T291, ms38_out_ag(T273, .(T291, []))) → ms1_out_ag(.(T267, .(T260, T261)), .(T291, []))
ms1_in_ag(.(T267, .(T260, T261)), .(T301, [])) → U53_ag(T267, T260, T261, T301, split12_in_aaaa(T260, T261, T273, T266))
U53_ag(T267, T260, T261, T301, split12_out_aaaa(T260, T261, T273, T266)) → U54_ag(T267, T260, T261, T301, T273, ms25_in_aag(T267, T266, .(T301, [])))
U54_ag(T267, T260, T261, T301, T273, ms25_out_aag(T267, T266, .(T301, []))) → U55_ag(T267, T260, T261, T301, ms38_in_ag(T273, []))
U55_ag(T267, T260, T261, T301, ms38_out_ag(T273, [])) → ms1_out_ag(.(T267, .(T260, T261)), .(T301, []))
ms1_in_ag(.(T267, .(T260, T261)), .(T318, [])) → U56_ag(T267, T260, T261, T318, split12_in_aaaa(T260, T261, T273, T266))
U56_ag(T267, T260, T261, T318, split12_out_aaaa(T260, T261, T273, T266)) → U57_ag(T267, T260, T261, T318, T273, ms25_in_aaa(T267, T266, .(T318, T323)))
U57_ag(T267, T260, T261, T318, T273, ms25_out_aaa(T267, T266, .(T318, T323))) → U58_ag(T267, T260, T261, T318, ms38_in_aa(T273, .(T322, T324)))
U58_ag(T267, T260, T261, T318, ms38_out_aa(T273, .(T322, T324))) → U59_ag(T267, T260, T261, T318, less70_in_ga(T318, T322))
U59_ag(T267, T260, T261, T318, less70_out_ga(T318, T322)) → ms1_out_ag(.(T267, .(T260, T261)), .(T318, []))
U56_ag(T267, T260, T261, T318, split12_out_aaaa(T260, T261, T273, T266)) → U60_ag(T267, T260, T261, T318, T273, ms25_in_aaa(T267, T266, .(T318, T327)))
U60_ag(T267, T260, T261, T318, T273, ms25_out_aaa(T267, T266, .(T318, T327))) → U61_ag(T267, T260, T261, T318, T327, ms38_in_aa(T273, .(T328, T329)))
U61_ag(T267, T260, T261, T318, T327, ms38_out_aa(T273, .(T328, T329))) → U62_ag(T267, T260, T261, T318, T327, T328, T329, less70_in_ga(T318, T328))
U62_ag(T267, T260, T261, T318, T327, T328, T329, less70_out_ga(T318, T328)) → U63_ag(T267, T260, T261, T318, merge93_in_aa(T327, .(T328, T329)))
U63_ag(T267, T260, T261, T318, merge93_out_aa(T327, .(T328, T329))) → ms1_out_ag(.(T267, .(T260, T261)), .(T318, []))
ms1_in_ag(.(T267, .(T260, T261)), .(T356, [])) → U64_ag(T267, T260, T261, T356, split12_in_aaaa(T260, T261, T273, T266))
U64_ag(T267, T260, T261, T356, split12_out_aaaa(T260, T261, T273, T266)) → U65_ag(T267, T260, T261, T356, T273, ms25_in_aaa(T267, T266, .(T358, T360)))
U65_ag(T267, T260, T261, T356, T273, ms25_out_aaa(T267, T266, .(T358, T360))) → U66_ag(T267, T260, T261, T356, T358, ms38_in_aa(T273, .(T356, T359)))
U66_ag(T267, T260, T261, T356, T358, ms38_out_aa(T273, .(T356, T359))) → U67_ag(T267, T260, T261, T356, less78_in_ga(T356, T358))
U67_ag(T267, T260, T261, T356, less78_out_ga(T356, T358)) → ms1_out_ag(.(T267, .(T260, T261)), .(T356, []))
U64_ag(T267, T260, T261, T356, split12_out_aaaa(T260, T261, T273, T266)) → U68_ag(T267, T260, T261, T356, T273, ms25_in_aaa(T267, T266, .(T363, T364)))
U68_ag(T267, T260, T261, T356, T273, ms25_out_aaa(T267, T266, .(T363, T364))) → U69_ag(T267, T260, T261, T356, T363, T364, ms38_in_aa(T273, .(T356, T365)))
U69_ag(T267, T260, T261, T356, T363, T364, ms38_out_aa(T273, .(T356, T365))) → U70_ag(T267, T260, T261, T356, T363, T364, T365, less78_in_ga(T356, T363))
U70_ag(T267, T260, T261, T356, T363, T364, T365, less78_out_ga(T356, T363)) → U71_ag(T267, T260, T261, T356, merge93_in_aa(.(T363, T364), T365))
U71_ag(T267, T260, T261, T356, merge93_out_aa(.(T363, T364), T365)) → ms1_out_ag(.(T267, .(T260, T261)), .(T356, []))
ms1_in_ag(.(T407, .(T405, T406)), T387) → U72_ag(T407, T405, T406, T387, split12_in_aaaa(T405, T406, X523, X522))
U72_ag(T407, T405, T406, T387, split12_out_aaaa(T405, T406, X523, X522)) → ms1_out_ag(.(T407, .(T405, T406)), T387)
ms1_in_ag(.(T412, .(T405, T406)), T387) → U73_ag(T412, T405, T406, T387, split12_in_aaaa(T405, T406, T410, T411))
U73_ag(T412, T405, T406, T387, split12_out_aaaa(T405, T406, T410, T411)) → U74_ag(T412, T405, T406, T387, ms25_in_aaa(T412, T411, X494))
U74_ag(T412, T405, T406, T387, ms25_out_aaa(T412, T411, X494)) → ms1_out_ag(.(T412, .(T405, T406)), T387)
ms1_in_ag(.(T412, .(T405, T406)), T387) → U75_ag(T412, T405, T406, T387, split12_in_aaaa(T405, T406, T420, T411))
U75_ag(T412, T405, T406, T387, split12_out_aaaa(T405, T406, T420, T411)) → U76_ag(T412, T405, T406, T387, T420, ms25_in_aaa(T412, T411, T419))
U76_ag(T412, T405, T406, T387, T420, ms25_out_aaa(T412, T411, T419)) → U77_ag(T412, T405, T406, T387, ms38_in_aa(T420, X495))
U77_ag(T412, T405, T406, T387, ms38_out_aa(T420, X495)) → ms1_out_ag(.(T412, .(T405, T406)), T387)
ms1_in_ag(.(T412, .(T405, T406)), T435) → U78_ag(T412, T405, T406, T435, split12_in_aaaa(T405, T406, T420, T411))
U78_ag(T412, T405, T406, T435, split12_out_aaaa(T405, T406, T420, T411)) → U79_ag(T412, T405, T406, T435, T420, ms25_in_aag(T412, T411, []))
U79_ag(T412, T405, T406, T435, T420, ms25_out_aag(T412, T411, [])) → U80_ag(T412, T405, T406, T435, ms38_in_ag(T420, T435))
U80_ag(T412, T405, T406, T435, ms38_out_ag(T420, T435)) → ms1_out_ag(.(T412, .(T405, T406)), T435)
ms1_in_ag(.(T412, .(T405, T406)), T440) → U81_ag(T412, T405, T406, T440, split12_in_aaaa(T405, T406, T420, T411))
U81_ag(T412, T405, T406, T440, split12_out_aaaa(T405, T406, T420, T411)) → U82_ag(T412, T405, T406, T440, T420, ms25_in_aag(T412, T411, T440))
U82_ag(T412, T405, T406, T440, T420, ms25_out_aag(T412, T411, T440)) → U83_ag(T412, T405, T406, T440, ms38_in_ag(T420, []))
U83_ag(T412, T405, T406, T440, ms38_out_ag(T420, [])) → ms1_out_ag(.(T412, .(T405, T406)), T440)
ms1_in_ag(.(T412, .(T405, T406)), .(T461, T465)) → U84_ag(T412, T405, T406, T461, T465, split12_in_aaaa(T405, T406, T420, T411))
U84_ag(T412, T405, T406, T461, T465, split12_out_aaaa(T405, T406, T420, T411)) → U85_ag(T412, T405, T406, T461, T465, T420, ms25_in_aaa(T412, T411, .(T461, T467)))
U85_ag(T412, T405, T406, T461, T465, T420, ms25_out_aaa(T412, T411, .(T461, T467))) → U86_ag(T412, T405, T406, T461, T465, ms38_in_aa(T420, .(T466, T468)))
U86_ag(T412, T405, T406, T461, T465, ms38_out_aa(T420, .(T466, T468))) → U87_ag(T412, T405, T406, T461, T465, less70_in_ga(T461, T466))
U87_ag(T412, T405, T406, T461, T465, less70_out_ga(T461, T466)) → ms1_out_ag(.(T412, .(T405, T406)), .(T461, T465))
ms1_in_ag(.(T412, .(T405, T406)), .(T461, .(T490, T491))) → U88_ag(T412, T405, T406, T461, T490, T491, split12_in_aaaa(T405, T406, T420, T411))
U88_ag(T412, T405, T406, T461, T490, T491, split12_out_aaaa(T405, T406, T420, T411)) → U89_ag(T412, T405, T406, T461, T490, T491, T420, ms25_in_aag(T412, T411, .(T461, [])))
U89_ag(T412, T405, T406, T461, T490, T491, T420, ms25_out_aag(T412, T411, .(T461, []))) → U90_ag(T412, T405, T406, T461, T490, T491, ms38_in_ag(T420, .(T490, T491)))
U90_ag(T412, T405, T406, T461, T490, T491, ms38_out_ag(T420, .(T490, T491))) → U91_ag(T412, T405, T406, T461, T490, T491, less70_in_gg(T461, T490))
less70_in_gg(0, T154) → less70_out_gg(0, T154)
less70_in_gg(s(T161), T162) → U22_gg(T161, T162, less78_in_gg(T161, T162))
less78_in_gg(0, s(T169)) → less78_out_gg(0, s(T169))
less78_in_gg(s(T176), s(T177)) → U20_gg(T176, T177, less78_in_gg(T176, T177))
U20_gg(T176, T177, less78_out_gg(T176, T177)) → less78_out_gg(s(T176), s(T177))
U22_gg(T161, T162, less78_out_gg(T161, T162)) → less70_out_gg(s(T161), T162)
U91_ag(T412, T405, T406, T461, T490, T491, less70_out_gg(T461, T490)) → ms1_out_ag(.(T412, .(T405, T406)), .(T461, .(T490, T491)))
ms1_in_ag(.(T412, .(T405, T406)), .(T461, .(T513, T517))) → U92_ag(T412, T405, T406, T461, T513, T517, split12_in_aaaa(T405, T406, T420, T411))
U92_ag(T412, T405, T406, T461, T513, T517, split12_out_aaaa(T405, T406, T420, T411)) → U93_ag(T412, T405, T406, T461, T513, T517, T420, ms25_in_aaa(T412, T411, .(T461, .(T513, T519))))
U93_ag(T412, T405, T406, T461, T513, T517, T420, ms25_out_aaa(T412, T411, .(T461, .(T513, T519)))) → U94_ag(T412, T405, T406, T461, T513, T517, T519, ms38_in_aa(T420, .(T518, T520)))
U94_ag(T412, T405, T406, T461, T513, T517, T519, ms38_out_aa(T420, .(T518, T520))) → U95_ag(T412, T405, T406, T461, T513, T517, T519, T518, T520, less70_in_ga(T461, T518))
U95_ag(T412, T405, T406, T461, T513, T517, T519, T518, T520, less70_out_ga(T461, T518)) → U96_ag(T412, T405, T406, T461, T513, T517, p179_in_gaaag(T513, T518, T519, T520, T517))
p179_in_gaaag(T513, T518, T519, T520, T517) → U23_gaaag(T513, T518, T519, T520, T517, less70_in_ga(T513, T518))
U23_gaaag(T513, T518, T519, T520, T517, less70_out_ga(T513, T518)) → p179_out_gaaag(T513, T518, T519, T520, T517)
p179_in_gaaag(T513, T540, [], T541, .(T540, T541)) → U24_gaaag(T513, T540, T541, less70_in_gg(T513, T540))
U24_gaaag(T513, T540, T541, less70_out_gg(T513, T540)) → p179_out_gaaag(T513, T540, [], T541, .(T540, T541))
p179_in_gaaag(T513, T568, .(T563, T569), T570, .(T563, T567)) → U25_gaaag(T513, T568, T563, T569, T570, T567, less70_in_ga(T513, T568))
U25_gaaag(T513, T568, T563, T569, T570, T567, less70_out_ga(T513, T568)) → U26_gaaag(T513, T568, T563, T569, T570, T567, p179_in_gaaag(T563, T568, T569, T570, T567))
p179_in_gaaag(T513, T585, .(T588, T590), T589, .(T585, T587)) → U27_gaaag(T513, T585, T588, T590, T589, T587, less70_in_gg(T513, T585))
U27_gaaag(T513, T585, T588, T590, T589, T587, less70_out_gg(T513, T585)) → U28_gaaag(T513, T585, T588, T590, T589, T587, p194_in_gaaag(T585, T588, T590, T589, T587))
p194_in_gaaag(T585, T588, T590, T589, T587) → U29_gaaag(T585, T588, T590, T589, T587, less78_in_ga(T585, T588))
U29_gaaag(T585, T588, T590, T589, T587, less78_out_ga(T585, T588)) → p194_out_gaaag(T585, T588, T590, T589, T587)
p194_in_gaaag(T585, T610, T611, [], .(T610, T611)) → U30_gaaag(T585, T610, T611, less78_in_gg(T585, T610))
U30_gaaag(T585, T610, T611, less78_out_gg(T585, T610)) → p194_out_gaaag(T585, T610, T611, [], .(T610, T611))
p194_in_gaaag(T585, T632, T638, .(T637, T639), .(T632, T636)) → U31_gaaag(T585, T632, T638, T637, T639, T636, less78_in_gg(T585, T632))
U31_gaaag(T585, T632, T638, T637, T639, T636, less78_out_gg(T585, T632)) → U32_gaaag(T585, T632, T638, T637, T639, T636, p179_in_gaaag(T632, T637, T638, T639, T636))
U32_gaaag(T585, T632, T638, T637, T639, T636, p179_out_gaaag(T632, T637, T638, T639, T636)) → p194_out_gaaag(T585, T632, T638, .(T637, T639), .(T632, T636))
p194_in_gaaag(T585, T657, T659, .(T654, T658), .(T654, T656)) → U33_gaaag(T585, T657, T659, T654, T658, T656, less78_in_ga(T585, T657))
U33_gaaag(T585, T657, T659, T654, T658, T656, less78_out_ga(T585, T657)) → U34_gaaag(T585, T657, T659, T654, T658, T656, p194_in_gaaag(T654, T657, T659, T658, T656))
U34_gaaag(T585, T657, T659, T654, T658, T656, p194_out_gaaag(T654, T657, T659, T658, T656)) → p194_out_gaaag(T585, T657, T659, .(T654, T658), .(T654, T656))
U28_gaaag(T513, T585, T588, T590, T589, T587, p194_out_gaaag(T585, T588, T590, T589, T587)) → p179_out_gaaag(T513, T585, .(T588, T590), T589, .(T585, T587))
U26_gaaag(T513, T568, T563, T569, T570, T567, p179_out_gaaag(T563, T568, T569, T570, T567)) → p179_out_gaaag(T513, T568, .(T563, T569), T570, .(T563, T567))
U96_ag(T412, T405, T406, T461, T513, T517, p179_out_gaaag(T513, T518, T519, T520, T517)) → ms1_out_ag(.(T412, .(T405, T406)), .(T461, .(T513, T517)))
ms1_in_ag(.(T412, .(T405, T406)), .(T461, .(T674, T676))) → U97_ag(T412, T405, T406, T461, T674, T676, split12_in_aaaa(T405, T406, T420, T411))
U97_ag(T412, T405, T406, T461, T674, T676, split12_out_aaaa(T405, T406, T420, T411)) → U98_ag(T412, T405, T406, T461, T674, T676, T420, ms25_in_aaa(T412, T411, .(T461, .(T677, T679))))
U98_ag(T412, T405, T406, T461, T674, T676, T420, ms25_out_aaa(T412, T411, .(T461, .(T677, T679)))) → U99_ag(T412, T405, T406, T461, T674, T676, T677, T679, ms38_in_aa(T420, .(T674, T678)))
U99_ag(T412, T405, T406, T461, T674, T676, T677, T679, ms38_out_aa(T420, .(T674, T678))) → U100_ag(T412, T405, T406, T461, T674, T676, T677, T679, T678, less70_in_gg(T461, T674))
U100_ag(T412, T405, T406, T461, T674, T676, T677, T679, T678, less70_out_gg(T461, T674)) → U101_ag(T412, T405, T406, T461, T674, T676, p194_in_gaaag(T674, T677, T679, T678, T676))
U101_ag(T412, T405, T406, T461, T674, T676, p194_out_gaaag(T674, T677, T679, T678, T676)) → ms1_out_ag(.(T412, .(T405, T406)), .(T461, .(T674, T676)))
ms1_in_ag(.(T412, .(T405, T406)), .(T694, T696)) → U102_ag(T412, T405, T406, T694, T696, split12_in_aaaa(T405, T406, T420, T411))
U102_ag(T412, T405, T406, T694, T696, split12_out_aaaa(T405, T406, T420, T411)) → U103_ag(T412, T405, T406, T694, T696, T420, ms25_in_aaa(T412, T411, .(T697, T699)))
U103_ag(T412, T405, T406, T694, T696, T420, ms25_out_aaa(T412, T411, .(T697, T699))) → U104_ag(T412, T405, T406, T694, T696, T697, T699, ms38_in_aa(T420, .(T694, T698)))
U104_ag(T412, T405, T406, T694, T696, T697, T699, ms38_out_aa(T420, .(T694, T698))) → U105_ag(T412, T405, T406, T694, T696, p194_in_gaaag(T694, T697, T699, T698, T696))
U105_ag(T412, T405, T406, T694, T696, p194_out_gaaag(T694, T697, T699, T698, T696)) → ms1_out_ag(.(T412, .(T405, T406)), .(T694, T696))
MERGE54_IN_AAA(.(T139, T145), .(T146, T147), .(T139, X226)) → U15_AAA(T139, T145, T146, T147, X226, less70_in_aa(T139, T146))
U15_AAA(T139, T145, T146, T147, X226, less70_out_aa(T139, T146)) → MERGE54_IN_AAA(T145, .(T146, T147), X226)
MERGE54_IN_AAA(.(T202, T203), .(T196, T204), .(T196, X287)) → U18_AAA(T202, T203, T196, T204, X287, less78_in_aa(T196, T202))
U18_AAA(T202, T203, T196, T204, X287, less78_out_aa(T196, T202)) → MERGE54_IN_AAA(.(T202, T203), T204, X287)
less70_in_aa(0, T154) → less70_out_aa(0, T154)
less70_in_aa(s(T161), T162) → U22_aa(T161, T162, less78_in_aa(T161, T162))
less78_in_aa(0, s(T169)) → less78_out_aa(0, s(T169))
less78_in_aa(s(T176), s(T177)) → U20_aa(T176, T177, less78_in_aa(T176, T177))
U22_aa(T161, T162, less78_out_aa(T161, T162)) → less70_out_aa(s(T161), T162)
U20_aa(T176, T177, less78_out_aa(T176, T177)) → less78_out_aa(s(T176), s(T177))
MERGE54_IN_AAA → U15_AAA(less70_in_aa)
U15_AAA(less70_out_aa(T139)) → MERGE54_IN_AAA
MERGE54_IN_AAA → U18_AAA(less78_in_aa)
U18_AAA(less78_out_aa(T196)) → MERGE54_IN_AAA
less70_in_aa → less70_out_aa(0)
less70_in_aa → U22_aa(less78_in_aa)
less78_in_aa → less78_out_aa(0)
less78_in_aa → U20_aa(less78_in_aa)
U22_aa(less78_out_aa(T161)) → less70_out_aa(s(T161))
U20_aa(less78_out_aa(T176)) → less78_out_aa(s(T176))
less70_in_aa
less78_in_aa
U22_aa(x0)
U20_aa(x0)
MERGE54_IN_AAA → U15_AAA(less70_out_aa(0))
MERGE54_IN_AAA → U15_AAA(U22_aa(less78_in_aa))
U15_AAA(less70_out_aa(T139)) → MERGE54_IN_AAA
MERGE54_IN_AAA → U18_AAA(less78_in_aa)
U18_AAA(less78_out_aa(T196)) → MERGE54_IN_AAA
MERGE54_IN_AAA → U15_AAA(less70_out_aa(0))
MERGE54_IN_AAA → U15_AAA(U22_aa(less78_in_aa))
less70_in_aa → less70_out_aa(0)
less70_in_aa → U22_aa(less78_in_aa)
less78_in_aa → less78_out_aa(0)
less78_in_aa → U20_aa(less78_in_aa)
U22_aa(less78_out_aa(T161)) → less70_out_aa(s(T161))
U20_aa(less78_out_aa(T176)) → less78_out_aa(s(T176))
less70_in_aa
less78_in_aa
U22_aa(x0)
U20_aa(x0)
U15_AAA(less70_out_aa(T139)) → MERGE54_IN_AAA
MERGE54_IN_AAA → U18_AAA(less78_in_aa)
U18_AAA(less78_out_aa(T196)) → MERGE54_IN_AAA
MERGE54_IN_AAA → U15_AAA(less70_out_aa(0))
MERGE54_IN_AAA → U15_AAA(U22_aa(less78_in_aa))
less78_in_aa → less78_out_aa(0)
less78_in_aa → U20_aa(less78_in_aa)
U22_aa(less78_out_aa(T161)) → less70_out_aa(s(T161))
U20_aa(less78_out_aa(T176)) → less78_out_aa(s(T176))
less70_in_aa
less78_in_aa
U22_aa(x0)
U20_aa(x0)
less70_in_aa
U15_AAA(less70_out_aa(T139)) → MERGE54_IN_AAA
MERGE54_IN_AAA → U18_AAA(less78_in_aa)
U18_AAA(less78_out_aa(T196)) → MERGE54_IN_AAA
MERGE54_IN_AAA → U15_AAA(less70_out_aa(0))
MERGE54_IN_AAA → U15_AAA(U22_aa(less78_in_aa))
less78_in_aa → less78_out_aa(0)
less78_in_aa → U20_aa(less78_in_aa)
U22_aa(less78_out_aa(T161)) → less70_out_aa(s(T161))
U20_aa(less78_out_aa(T176)) → less78_out_aa(s(T176))
less78_in_aa
U22_aa(x0)
U20_aa(x0)
MERGE54_IN_AAA → U18_AAA(less78_out_aa(0))
MERGE54_IN_AAA → U18_AAA(U20_aa(less78_in_aa))
U15_AAA(less70_out_aa(T139)) → MERGE54_IN_AAA
U18_AAA(less78_out_aa(T196)) → MERGE54_IN_AAA
MERGE54_IN_AAA → U15_AAA(less70_out_aa(0))
MERGE54_IN_AAA → U15_AAA(U22_aa(less78_in_aa))
MERGE54_IN_AAA → U18_AAA(less78_out_aa(0))
MERGE54_IN_AAA → U18_AAA(U20_aa(less78_in_aa))
less78_in_aa → less78_out_aa(0)
less78_in_aa → U20_aa(less78_in_aa)
U22_aa(less78_out_aa(T161)) → less70_out_aa(s(T161))
U20_aa(less78_out_aa(T176)) → less78_out_aa(s(T176))
less78_in_aa
U22_aa(x0)
U20_aa(x0)
SPLIT16_IN_AAA(.(T49, T51), .(T49, X89), X90) → SPLIT16_IN_AAA(T51, X90, X89)
ms1_in_ag([], []) → ms1_out_ag([], [])
ms1_in_ag(.(T29, .(T27, T28)), []) → U35_ag(T29, T27, T28, split12_in_aaaa(T27, T28, X42, X41))
split12_in_aaaa(T42, T44, .(T42, X71), X72) → U2_aaaa(T42, T44, X71, X72, split16_in_aaa(T44, X72, X71))
split16_in_aaa([], [], []) → split16_out_aaa([], [], [])
split16_in_aaa(.(T49, T51), .(T49, X89), X90) → U1_aaa(T49, T51, X89, X90, split16_in_aaa(T51, X90, X89))
U1_aaa(T49, T51, X89, X90, split16_out_aaa(T51, X90, X89)) → split16_out_aaa(.(T49, T51), .(T49, X89), X90)
U2_aaaa(T42, T44, X71, X72, split16_out_aaa(T44, X72, X71)) → split12_out_aaaa(T42, T44, .(T42, X71), X72)
U35_ag(T29, T27, T28, split12_out_aaaa(T27, T28, X42, X41)) → ms1_out_ag(.(T29, .(T27, T28)), [])
ms1_in_ag(.(T34, .(T27, T28)), []) → U36_ag(T34, T27, T28, split12_in_aaaa(T27, T28, T32, T33))
U36_ag(T34, T27, T28, split12_out_aaaa(T27, T28, T32, T33)) → U37_ag(T34, T27, T28, ms25_in_aaa(T34, T33, X13))
ms25_in_aaa(T62, [], .(T62, [])) → ms25_out_aaa(T62, [], .(T62, []))
ms25_in_aaa(T72, .(T73, T74), X127) → U21_aaa(T72, T73, T74, X127, p34_in_aaaaaaaa(T72, T73, T74, X123, X124, X125, X126, X127))
p34_in_aaaaaaaa(T72, T73, T74, X123, X124, X125, X126, X127) → U3_aaaaaaaa(T72, T73, T74, X123, X124, X125, X126, X127, split12_in_aaaa(T72, .(T73, T74), X123, X124))
U3_aaaaaaaa(T72, T73, T74, X123, X124, X125, X126, X127, split12_out_aaaa(T72, .(T73, T74), X123, X124)) → p34_out_aaaaaaaa(T72, T73, T74, X123, X124, X125, X126, X127)
p34_in_aaaaaaaa(T72, T73, T74, T78, T79, X125, X126, X127) → U4_aaaaaaaa(T72, T73, T74, T78, T79, X125, X126, X127, split12_in_aaaa(T72, .(T73, T74), T78, T79))
U4_aaaaaaaa(T72, T73, T74, T78, T79, X125, X126, X127, split12_out_aaaa(T72, .(T73, T74), T78, T79)) → U5_aaaaaaaa(T72, T73, T74, T78, T79, X125, X126, X127, ms38_in_aa(T78, X125))
ms38_in_aa([], []) → ms38_out_aa([], [])
ms38_in_aa(.(T89, []), .(T89, [])) → ms38_out_aa(.(T89, []), .(T89, []))
ms38_in_aa(.(T99, .(T100, T101)), X172) → U13_aa(T99, T100, T101, X172, p34_in_aaaaaaaa(T99, T100, T101, X168, X169, X170, X171, X172))
p34_in_aaaaaaaa(T72, T73, T74, T78, T84, T83, X126, X127) → U6_aaaaaaaa(T72, T73, T74, T78, T84, T83, X126, X127, split12_in_aaaa(T72, .(T73, T74), T78, T84))
U6_aaaaaaaa(T72, T73, T74, T78, T84, T83, X126, X127, split12_out_aaaa(T72, .(T73, T74), T78, T84)) → U7_aaaaaaaa(T72, T73, T74, T78, T84, T83, X126, X127, ms38_in_aa(T78, T83))
U7_aaaaaaaa(T72, T73, T74, T78, T84, T83, X126, X127, ms38_out_aa(T78, T83)) → U8_aaaaaaaa(T72, T73, T74, T78, T84, T83, X126, X127, ms38_in_aa(T84, X126))
U8_aaaaaaaa(T72, T73, T74, T78, T84, T83, X126, X127, ms38_out_aa(T84, X126)) → p34_out_aaaaaaaa(T72, T73, T74, T78, T84, T83, X126, X127)
p34_in_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127) → U9_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127, split12_in_aaaa(T72, .(T73, T74), T78, T84))
U9_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127, split12_out_aaaa(T72, .(T73, T74), T78, T84)) → U10_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127, ms38_in_aa(T78, T106))
U10_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127, ms38_out_aa(T78, T106)) → U11_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127, ms38_in_aa(T84, T105))
U11_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127, ms38_out_aa(T84, T105)) → U12_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127, merge54_in_aaa(T106, T105, X127))
merge54_in_aaa([], T113, T113) → merge54_out_aaa([], T113, T113)
merge54_in_aaa(T118, [], T118) → merge54_out_aaa(T118, [], T118)
merge54_in_aaa(.(T139, T141), .(T140, T142), .(T139, X226)) → U14_aaa(T139, T141, T140, T142, X226, less70_in_aa(T139, T140))
less70_in_aa(0, T154) → less70_out_aa(0, T154)
less70_in_aa(s(T161), T162) → U22_aa(T161, T162, less78_in_aa(T161, T162))
less78_in_aa(0, s(T169)) → less78_out_aa(0, s(T169))
less78_in_aa(s(T176), s(T177)) → U20_aa(T176, T177, less78_in_aa(T176, T177))
U20_aa(T176, T177, less78_out_aa(T176, T177)) → less78_out_aa(s(T176), s(T177))
U22_aa(T161, T162, less78_out_aa(T161, T162)) → less70_out_aa(s(T161), T162)
U14_aaa(T139, T141, T140, T142, X226, less70_out_aa(T139, T140)) → merge54_out_aaa(.(T139, T141), .(T140, T142), .(T139, X226))
merge54_in_aaa(.(T139, T145), .(T146, T147), .(T139, X226)) → U15_aaa(T139, T145, T146, T147, X226, less70_in_aa(T139, T146))
U15_aaa(T139, T145, T146, T147, X226, less70_out_aa(T139, T146)) → U16_aaa(T139, T145, T146, T147, X226, merge54_in_aaa(T145, .(T146, T147), X226))
merge54_in_aaa(.(T197, T199), .(T196, T198), .(T196, X287)) → U17_aaa(T197, T199, T196, T198, X287, less78_in_aa(T196, T197))
U17_aaa(T197, T199, T196, T198, X287, less78_out_aa(T196, T197)) → merge54_out_aaa(.(T197, T199), .(T196, T198), .(T196, X287))
merge54_in_aaa(.(T202, T203), .(T196, T204), .(T196, X287)) → U18_aaa(T202, T203, T196, T204, X287, less78_in_aa(T196, T202))
U18_aaa(T202, T203, T196, T204, X287, less78_out_aa(T196, T202)) → U19_aaa(T202, T203, T196, T204, X287, merge54_in_aaa(.(T202, T203), T204, X287))
U19_aaa(T202, T203, T196, T204, X287, merge54_out_aaa(.(T202, T203), T204, X287)) → merge54_out_aaa(.(T202, T203), .(T196, T204), .(T196, X287))
U16_aaa(T139, T145, T146, T147, X226, merge54_out_aaa(T145, .(T146, T147), X226)) → merge54_out_aaa(.(T139, T145), .(T146, T147), .(T139, X226))
U12_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127, merge54_out_aaa(T106, T105, X127)) → p34_out_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127)
U13_aa(T99, T100, T101, X172, p34_out_aaaaaaaa(T99, T100, T101, X168, X169, X170, X171, X172)) → ms38_out_aa(.(T99, .(T100, T101)), X172)
U5_aaaaaaaa(T72, T73, T74, T78, T79, X125, X126, X127, ms38_out_aa(T78, X125)) → p34_out_aaaaaaaa(T72, T73, T74, T78, T79, X125, X126, X127)
U21_aaa(T72, T73, T74, X127, p34_out_aaaaaaaa(T72, T73, T74, X123, X124, X125, X126, X127)) → ms25_out_aaa(T72, .(T73, T74), X127)
U37_ag(T34, T27, T28, ms25_out_aaa(T34, T33, X13)) → ms1_out_ag(.(T34, .(T27, T28)), [])
ms1_in_ag(.(T34, .(T27, T28)), []) → U38_ag(T34, T27, T28, split12_in_aaaa(T27, T28, T55, T33))
U38_ag(T34, T27, T28, split12_out_aaaa(T27, T28, T55, T33)) → U39_ag(T34, T27, T28, T55, ms25_in_aaa(T34, T33, T54))
U39_ag(T34, T27, T28, T55, ms25_out_aaa(T34, T33, T54)) → U40_ag(T34, T27, T28, ms38_in_aa(T55, X14))
U40_ag(T34, T27, T28, ms38_out_aa(T55, X14)) → ms1_out_ag(.(T34, .(T27, T28)), [])
U38_ag(T34, T27, T28, split12_out_aaaa(T27, T28, T55, T33)) → U41_ag(T34, T27, T28, T55, ms25_in_aaa(T34, T33, T212))
U41_ag(T34, T27, T28, T55, ms25_out_aaa(T34, T33, T212)) → U42_ag(T34, T27, T28, T212, ms38_in_aa(T55, T211))
U42_ag(T34, T27, T28, T212, ms38_out_aa(T55, T211)) → U43_ag(T34, T27, T28, merge93_in_aa(T212, T211))
merge93_in_aa([], []) → merge93_out_aa([], [])
U43_ag(T34, T27, T28, merge93_out_aa(T212, T211)) → ms1_out_ag(.(T34, .(T27, T28)), [])
ms1_in_ag(.(T234, []), .(T234, [])) → ms1_out_ag(.(T234, []), .(T234, []))
ms1_in_ag(.(T262, .(T260, T261)), .(T242, [])) → U44_ag(T262, T260, T261, T242, split12_in_aaaa(T260, T261, X367, X366))
U44_ag(T262, T260, T261, T242, split12_out_aaaa(T260, T261, X367, X366)) → ms1_out_ag(.(T262, .(T260, T261)), .(T242, []))
ms1_in_ag(.(T267, .(T260, T261)), .(T242, [])) → U45_ag(T267, T260, T261, T242, split12_in_aaaa(T260, T261, T265, T266))
U45_ag(T267, T260, T261, T242, split12_out_aaaa(T260, T261, T265, T266)) → U46_ag(T267, T260, T261, T242, ms25_in_aaa(T267, T266, X338))
U46_ag(T267, T260, T261, T242, ms25_out_aaa(T267, T266, X338)) → ms1_out_ag(.(T267, .(T260, T261)), .(T242, []))
ms1_in_ag(.(T267, .(T260, T261)), .(T242, [])) → U47_ag(T267, T260, T261, T242, split12_in_aaaa(T260, T261, T273, T266))
U47_ag(T267, T260, T261, T242, split12_out_aaaa(T260, T261, T273, T266)) → U48_ag(T267, T260, T261, T242, T273, ms25_in_aaa(T267, T266, T272))
U48_ag(T267, T260, T261, T242, T273, ms25_out_aaa(T267, T266, T272)) → U49_ag(T267, T260, T261, T242, ms38_in_aa(T273, X339))
U49_ag(T267, T260, T261, T242, ms38_out_aa(T273, X339)) → ms1_out_ag(.(T267, .(T260, T261)), .(T242, []))
ms1_in_ag(.(T267, .(T260, T261)), .(T291, [])) → U50_ag(T267, T260, T261, T291, split12_in_aaaa(T260, T261, T273, T266))
U50_ag(T267, T260, T261, T291, split12_out_aaaa(T260, T261, T273, T266)) → U51_ag(T267, T260, T261, T291, T273, ms25_in_aag(T267, T266, []))
ms25_in_aag(T62, [], .(T62, [])) → ms25_out_aag(T62, [], .(T62, []))
ms25_in_aag(T72, .(T73, T74), X127) → U21_aag(T72, T73, T74, X127, p34_in_aaaaaaag(T72, T73, T74, X123, X124, X125, X126, X127))
p34_in_aaaaaaag(T72, T73, T74, X123, X124, X125, X126, X127) → U3_aaaaaaag(T72, T73, T74, X123, X124, X125, X126, X127, split12_in_aaaa(T72, .(T73, T74), X123, X124))
U3_aaaaaaag(T72, T73, T74, X123, X124, X125, X126, X127, split12_out_aaaa(T72, .(T73, T74), X123, X124)) → p34_out_aaaaaaag(T72, T73, T74, X123, X124, X125, X126, X127)
p34_in_aaaaaaag(T72, T73, T74, T78, T79, X125, X126, X127) → U4_aaaaaaag(T72, T73, T74, T78, T79, X125, X126, X127, split12_in_aaaa(T72, .(T73, T74), T78, T79))
U4_aaaaaaag(T72, T73, T74, T78, T79, X125, X126, X127, split12_out_aaaa(T72, .(T73, T74), T78, T79)) → U5_aaaaaaag(T72, T73, T74, T78, T79, X125, X126, X127, ms38_in_aa(T78, X125))
U5_aaaaaaag(T72, T73, T74, T78, T79, X125, X126, X127, ms38_out_aa(T78, X125)) → p34_out_aaaaaaag(T72, T73, T74, T78, T79, X125, X126, X127)
p34_in_aaaaaaag(T72, T73, T74, T78, T84, T83, X126, X127) → U6_aaaaaaag(T72, T73, T74, T78, T84, T83, X126, X127, split12_in_aaaa(T72, .(T73, T74), T78, T84))
U6_aaaaaaag(T72, T73, T74, T78, T84, T83, X126, X127, split12_out_aaaa(T72, .(T73, T74), T78, T84)) → U7_aaaaaaag(T72, T73, T74, T78, T84, T83, X126, X127, ms38_in_aa(T78, T83))
U7_aaaaaaag(T72, T73, T74, T78, T84, T83, X126, X127, ms38_out_aa(T78, T83)) → U8_aaaaaaag(T72, T73, T74, T78, T84, T83, X126, X127, ms38_in_aa(T84, X126))
U8_aaaaaaag(T72, T73, T74, T78, T84, T83, X126, X127, ms38_out_aa(T84, X126)) → p34_out_aaaaaaag(T72, T73, T74, T78, T84, T83, X126, X127)
p34_in_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127) → U9_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127, split12_in_aaaa(T72, .(T73, T74), T78, T84))
U9_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127, split12_out_aaaa(T72, .(T73, T74), T78, T84)) → U10_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127, ms38_in_aa(T78, T106))
U10_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127, ms38_out_aa(T78, T106)) → U11_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127, ms38_in_aa(T84, T105))
U11_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127, ms38_out_aa(T84, T105)) → U12_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127, merge54_in_aag(T106, T105, X127))
merge54_in_aag([], T113, T113) → merge54_out_aag([], T113, T113)
merge54_in_aag(T118, [], T118) → merge54_out_aag(T118, [], T118)
merge54_in_aag(.(T139, T141), .(T140, T142), .(T139, X226)) → U14_aag(T139, T141, T140, T142, X226, less70_in_ga(T139, T140))
less70_in_ga(0, T154) → less70_out_ga(0, T154)
less70_in_ga(s(T161), T162) → U22_ga(T161, T162, less78_in_ga(T161, T162))
less78_in_ga(0, s(T169)) → less78_out_ga(0, s(T169))
less78_in_ga(s(T176), s(T177)) → U20_ga(T176, T177, less78_in_ga(T176, T177))
U20_ga(T176, T177, less78_out_ga(T176, T177)) → less78_out_ga(s(T176), s(T177))
U22_ga(T161, T162, less78_out_ga(T161, T162)) → less70_out_ga(s(T161), T162)
U14_aag(T139, T141, T140, T142, X226, less70_out_ga(T139, T140)) → merge54_out_aag(.(T139, T141), .(T140, T142), .(T139, X226))
merge54_in_aag(.(T139, T145), .(T146, T147), .(T139, X226)) → U15_aag(T139, T145, T146, T147, X226, less70_in_ga(T139, T146))
U15_aag(T139, T145, T146, T147, X226, less70_out_ga(T139, T146)) → U16_aag(T139, T145, T146, T147, X226, merge54_in_aag(T145, .(T146, T147), X226))
merge54_in_aag(.(T197, T199), .(T196, T198), .(T196, X287)) → U17_aag(T197, T199, T196, T198, X287, less78_in_ga(T196, T197))
U17_aag(T197, T199, T196, T198, X287, less78_out_ga(T196, T197)) → merge54_out_aag(.(T197, T199), .(T196, T198), .(T196, X287))
merge54_in_aag(.(T202, T203), .(T196, T204), .(T196, X287)) → U18_aag(T202, T203, T196, T204, X287, less78_in_ga(T196, T202))
U18_aag(T202, T203, T196, T204, X287, less78_out_ga(T196, T202)) → U19_aag(T202, T203, T196, T204, X287, merge54_in_aag(.(T202, T203), T204, X287))
U19_aag(T202, T203, T196, T204, X287, merge54_out_aag(.(T202, T203), T204, X287)) → merge54_out_aag(.(T202, T203), .(T196, T204), .(T196, X287))
U16_aag(T139, T145, T146, T147, X226, merge54_out_aag(T145, .(T146, T147), X226)) → merge54_out_aag(.(T139, T145), .(T146, T147), .(T139, X226))
U12_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127, merge54_out_aag(T106, T105, X127)) → p34_out_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127)
U21_aag(T72, T73, T74, X127, p34_out_aaaaaaag(T72, T73, T74, X123, X124, X125, X126, X127)) → ms25_out_aag(T72, .(T73, T74), X127)
U51_ag(T267, T260, T261, T291, T273, ms25_out_aag(T267, T266, [])) → U52_ag(T267, T260, T261, T291, ms38_in_ag(T273, .(T291, [])))
ms38_in_ag([], []) → ms38_out_ag([], [])
ms38_in_ag(.(T89, []), .(T89, [])) → ms38_out_ag(.(T89, []), .(T89, []))
ms38_in_ag(.(T99, .(T100, T101)), X172) → U13_ag(T99, T100, T101, X172, p34_in_aaaaaaag(T99, T100, T101, X168, X169, X170, X171, X172))
U13_ag(T99, T100, T101, X172, p34_out_aaaaaaag(T99, T100, T101, X168, X169, X170, X171, X172)) → ms38_out_ag(.(T99, .(T100, T101)), X172)
U52_ag(T267, T260, T261, T291, ms38_out_ag(T273, .(T291, []))) → ms1_out_ag(.(T267, .(T260, T261)), .(T291, []))
ms1_in_ag(.(T267, .(T260, T261)), .(T301, [])) → U53_ag(T267, T260, T261, T301, split12_in_aaaa(T260, T261, T273, T266))
U53_ag(T267, T260, T261, T301, split12_out_aaaa(T260, T261, T273, T266)) → U54_ag(T267, T260, T261, T301, T273, ms25_in_aag(T267, T266, .(T301, [])))
U54_ag(T267, T260, T261, T301, T273, ms25_out_aag(T267, T266, .(T301, []))) → U55_ag(T267, T260, T261, T301, ms38_in_ag(T273, []))
U55_ag(T267, T260, T261, T301, ms38_out_ag(T273, [])) → ms1_out_ag(.(T267, .(T260, T261)), .(T301, []))
ms1_in_ag(.(T267, .(T260, T261)), .(T318, [])) → U56_ag(T267, T260, T261, T318, split12_in_aaaa(T260, T261, T273, T266))
U56_ag(T267, T260, T261, T318, split12_out_aaaa(T260, T261, T273, T266)) → U57_ag(T267, T260, T261, T318, T273, ms25_in_aaa(T267, T266, .(T318, T323)))
U57_ag(T267, T260, T261, T318, T273, ms25_out_aaa(T267, T266, .(T318, T323))) → U58_ag(T267, T260, T261, T318, ms38_in_aa(T273, .(T322, T324)))
U58_ag(T267, T260, T261, T318, ms38_out_aa(T273, .(T322, T324))) → U59_ag(T267, T260, T261, T318, less70_in_ga(T318, T322))
U59_ag(T267, T260, T261, T318, less70_out_ga(T318, T322)) → ms1_out_ag(.(T267, .(T260, T261)), .(T318, []))
U56_ag(T267, T260, T261, T318, split12_out_aaaa(T260, T261, T273, T266)) → U60_ag(T267, T260, T261, T318, T273, ms25_in_aaa(T267, T266, .(T318, T327)))
U60_ag(T267, T260, T261, T318, T273, ms25_out_aaa(T267, T266, .(T318, T327))) → U61_ag(T267, T260, T261, T318, T327, ms38_in_aa(T273, .(T328, T329)))
U61_ag(T267, T260, T261, T318, T327, ms38_out_aa(T273, .(T328, T329))) → U62_ag(T267, T260, T261, T318, T327, T328, T329, less70_in_ga(T318, T328))
U62_ag(T267, T260, T261, T318, T327, T328, T329, less70_out_ga(T318, T328)) → U63_ag(T267, T260, T261, T318, merge93_in_aa(T327, .(T328, T329)))
U63_ag(T267, T260, T261, T318, merge93_out_aa(T327, .(T328, T329))) → ms1_out_ag(.(T267, .(T260, T261)), .(T318, []))
ms1_in_ag(.(T267, .(T260, T261)), .(T356, [])) → U64_ag(T267, T260, T261, T356, split12_in_aaaa(T260, T261, T273, T266))
U64_ag(T267, T260, T261, T356, split12_out_aaaa(T260, T261, T273, T266)) → U65_ag(T267, T260, T261, T356, T273, ms25_in_aaa(T267, T266, .(T358, T360)))
U65_ag(T267, T260, T261, T356, T273, ms25_out_aaa(T267, T266, .(T358, T360))) → U66_ag(T267, T260, T261, T356, T358, ms38_in_aa(T273, .(T356, T359)))
U66_ag(T267, T260, T261, T356, T358, ms38_out_aa(T273, .(T356, T359))) → U67_ag(T267, T260, T261, T356, less78_in_ga(T356, T358))
U67_ag(T267, T260, T261, T356, less78_out_ga(T356, T358)) → ms1_out_ag(.(T267, .(T260, T261)), .(T356, []))
U64_ag(T267, T260, T261, T356, split12_out_aaaa(T260, T261, T273, T266)) → U68_ag(T267, T260, T261, T356, T273, ms25_in_aaa(T267, T266, .(T363, T364)))
U68_ag(T267, T260, T261, T356, T273, ms25_out_aaa(T267, T266, .(T363, T364))) → U69_ag(T267, T260, T261, T356, T363, T364, ms38_in_aa(T273, .(T356, T365)))
U69_ag(T267, T260, T261, T356, T363, T364, ms38_out_aa(T273, .(T356, T365))) → U70_ag(T267, T260, T261, T356, T363, T364, T365, less78_in_ga(T356, T363))
U70_ag(T267, T260, T261, T356, T363, T364, T365, less78_out_ga(T356, T363)) → U71_ag(T267, T260, T261, T356, merge93_in_aa(.(T363, T364), T365))
U71_ag(T267, T260, T261, T356, merge93_out_aa(.(T363, T364), T365)) → ms1_out_ag(.(T267, .(T260, T261)), .(T356, []))
ms1_in_ag(.(T407, .(T405, T406)), T387) → U72_ag(T407, T405, T406, T387, split12_in_aaaa(T405, T406, X523, X522))
U72_ag(T407, T405, T406, T387, split12_out_aaaa(T405, T406, X523, X522)) → ms1_out_ag(.(T407, .(T405, T406)), T387)
ms1_in_ag(.(T412, .(T405, T406)), T387) → U73_ag(T412, T405, T406, T387, split12_in_aaaa(T405, T406, T410, T411))
U73_ag(T412, T405, T406, T387, split12_out_aaaa(T405, T406, T410, T411)) → U74_ag(T412, T405, T406, T387, ms25_in_aaa(T412, T411, X494))
U74_ag(T412, T405, T406, T387, ms25_out_aaa(T412, T411, X494)) → ms1_out_ag(.(T412, .(T405, T406)), T387)
ms1_in_ag(.(T412, .(T405, T406)), T387) → U75_ag(T412, T405, T406, T387, split12_in_aaaa(T405, T406, T420, T411))
U75_ag(T412, T405, T406, T387, split12_out_aaaa(T405, T406, T420, T411)) → U76_ag(T412, T405, T406, T387, T420, ms25_in_aaa(T412, T411, T419))
U76_ag(T412, T405, T406, T387, T420, ms25_out_aaa(T412, T411, T419)) → U77_ag(T412, T405, T406, T387, ms38_in_aa(T420, X495))
U77_ag(T412, T405, T406, T387, ms38_out_aa(T420, X495)) → ms1_out_ag(.(T412, .(T405, T406)), T387)
ms1_in_ag(.(T412, .(T405, T406)), T435) → U78_ag(T412, T405, T406, T435, split12_in_aaaa(T405, T406, T420, T411))
U78_ag(T412, T405, T406, T435, split12_out_aaaa(T405, T406, T420, T411)) → U79_ag(T412, T405, T406, T435, T420, ms25_in_aag(T412, T411, []))
U79_ag(T412, T405, T406, T435, T420, ms25_out_aag(T412, T411, [])) → U80_ag(T412, T405, T406, T435, ms38_in_ag(T420, T435))
U80_ag(T412, T405, T406, T435, ms38_out_ag(T420, T435)) → ms1_out_ag(.(T412, .(T405, T406)), T435)
ms1_in_ag(.(T412, .(T405, T406)), T440) → U81_ag(T412, T405, T406, T440, split12_in_aaaa(T405, T406, T420, T411))
U81_ag(T412, T405, T406, T440, split12_out_aaaa(T405, T406, T420, T411)) → U82_ag(T412, T405, T406, T440, T420, ms25_in_aag(T412, T411, T440))
U82_ag(T412, T405, T406, T440, T420, ms25_out_aag(T412, T411, T440)) → U83_ag(T412, T405, T406, T440, ms38_in_ag(T420, []))
U83_ag(T412, T405, T406, T440, ms38_out_ag(T420, [])) → ms1_out_ag(.(T412, .(T405, T406)), T440)
ms1_in_ag(.(T412, .(T405, T406)), .(T461, T465)) → U84_ag(T412, T405, T406, T461, T465, split12_in_aaaa(T405, T406, T420, T411))
U84_ag(T412, T405, T406, T461, T465, split12_out_aaaa(T405, T406, T420, T411)) → U85_ag(T412, T405, T406, T461, T465, T420, ms25_in_aaa(T412, T411, .(T461, T467)))
U85_ag(T412, T405, T406, T461, T465, T420, ms25_out_aaa(T412, T411, .(T461, T467))) → U86_ag(T412, T405, T406, T461, T465, ms38_in_aa(T420, .(T466, T468)))
U86_ag(T412, T405, T406, T461, T465, ms38_out_aa(T420, .(T466, T468))) → U87_ag(T412, T405, T406, T461, T465, less70_in_ga(T461, T466))
U87_ag(T412, T405, T406, T461, T465, less70_out_ga(T461, T466)) → ms1_out_ag(.(T412, .(T405, T406)), .(T461, T465))
ms1_in_ag(.(T412, .(T405, T406)), .(T461, .(T490, T491))) → U88_ag(T412, T405, T406, T461, T490, T491, split12_in_aaaa(T405, T406, T420, T411))
U88_ag(T412, T405, T406, T461, T490, T491, split12_out_aaaa(T405, T406, T420, T411)) → U89_ag(T412, T405, T406, T461, T490, T491, T420, ms25_in_aag(T412, T411, .(T461, [])))
U89_ag(T412, T405, T406, T461, T490, T491, T420, ms25_out_aag(T412, T411, .(T461, []))) → U90_ag(T412, T405, T406, T461, T490, T491, ms38_in_ag(T420, .(T490, T491)))
U90_ag(T412, T405, T406, T461, T490, T491, ms38_out_ag(T420, .(T490, T491))) → U91_ag(T412, T405, T406, T461, T490, T491, less70_in_gg(T461, T490))
less70_in_gg(0, T154) → less70_out_gg(0, T154)
less70_in_gg(s(T161), T162) → U22_gg(T161, T162, less78_in_gg(T161, T162))
less78_in_gg(0, s(T169)) → less78_out_gg(0, s(T169))
less78_in_gg(s(T176), s(T177)) → U20_gg(T176, T177, less78_in_gg(T176, T177))
U20_gg(T176, T177, less78_out_gg(T176, T177)) → less78_out_gg(s(T176), s(T177))
U22_gg(T161, T162, less78_out_gg(T161, T162)) → less70_out_gg(s(T161), T162)
U91_ag(T412, T405, T406, T461, T490, T491, less70_out_gg(T461, T490)) → ms1_out_ag(.(T412, .(T405, T406)), .(T461, .(T490, T491)))
ms1_in_ag(.(T412, .(T405, T406)), .(T461, .(T513, T517))) → U92_ag(T412, T405, T406, T461, T513, T517, split12_in_aaaa(T405, T406, T420, T411))
U92_ag(T412, T405, T406, T461, T513, T517, split12_out_aaaa(T405, T406, T420, T411)) → U93_ag(T412, T405, T406, T461, T513, T517, T420, ms25_in_aaa(T412, T411, .(T461, .(T513, T519))))
U93_ag(T412, T405, T406, T461, T513, T517, T420, ms25_out_aaa(T412, T411, .(T461, .(T513, T519)))) → U94_ag(T412, T405, T406, T461, T513, T517, T519, ms38_in_aa(T420, .(T518, T520)))
U94_ag(T412, T405, T406, T461, T513, T517, T519, ms38_out_aa(T420, .(T518, T520))) → U95_ag(T412, T405, T406, T461, T513, T517, T519, T518, T520, less70_in_ga(T461, T518))
U95_ag(T412, T405, T406, T461, T513, T517, T519, T518, T520, less70_out_ga(T461, T518)) → U96_ag(T412, T405, T406, T461, T513, T517, p179_in_gaaag(T513, T518, T519, T520, T517))
p179_in_gaaag(T513, T518, T519, T520, T517) → U23_gaaag(T513, T518, T519, T520, T517, less70_in_ga(T513, T518))
U23_gaaag(T513, T518, T519, T520, T517, less70_out_ga(T513, T518)) → p179_out_gaaag(T513, T518, T519, T520, T517)
p179_in_gaaag(T513, T540, [], T541, .(T540, T541)) → U24_gaaag(T513, T540, T541, less70_in_gg(T513, T540))
U24_gaaag(T513, T540, T541, less70_out_gg(T513, T540)) → p179_out_gaaag(T513, T540, [], T541, .(T540, T541))
p179_in_gaaag(T513, T568, .(T563, T569), T570, .(T563, T567)) → U25_gaaag(T513, T568, T563, T569, T570, T567, less70_in_ga(T513, T568))
U25_gaaag(T513, T568, T563, T569, T570, T567, less70_out_ga(T513, T568)) → U26_gaaag(T513, T568, T563, T569, T570, T567, p179_in_gaaag(T563, T568, T569, T570, T567))
p179_in_gaaag(T513, T585, .(T588, T590), T589, .(T585, T587)) → U27_gaaag(T513, T585, T588, T590, T589, T587, less70_in_gg(T513, T585))
U27_gaaag(T513, T585, T588, T590, T589, T587, less70_out_gg(T513, T585)) → U28_gaaag(T513, T585, T588, T590, T589, T587, p194_in_gaaag(T585, T588, T590, T589, T587))
p194_in_gaaag(T585, T588, T590, T589, T587) → U29_gaaag(T585, T588, T590, T589, T587, less78_in_ga(T585, T588))
U29_gaaag(T585, T588, T590, T589, T587, less78_out_ga(T585, T588)) → p194_out_gaaag(T585, T588, T590, T589, T587)
p194_in_gaaag(T585, T610, T611, [], .(T610, T611)) → U30_gaaag(T585, T610, T611, less78_in_gg(T585, T610))
U30_gaaag(T585, T610, T611, less78_out_gg(T585, T610)) → p194_out_gaaag(T585, T610, T611, [], .(T610, T611))
p194_in_gaaag(T585, T632, T638, .(T637, T639), .(T632, T636)) → U31_gaaag(T585, T632, T638, T637, T639, T636, less78_in_gg(T585, T632))
U31_gaaag(T585, T632, T638, T637, T639, T636, less78_out_gg(T585, T632)) → U32_gaaag(T585, T632, T638, T637, T639, T636, p179_in_gaaag(T632, T637, T638, T639, T636))
U32_gaaag(T585, T632, T638, T637, T639, T636, p179_out_gaaag(T632, T637, T638, T639, T636)) → p194_out_gaaag(T585, T632, T638, .(T637, T639), .(T632, T636))
p194_in_gaaag(T585, T657, T659, .(T654, T658), .(T654, T656)) → U33_gaaag(T585, T657, T659, T654, T658, T656, less78_in_ga(T585, T657))
U33_gaaag(T585, T657, T659, T654, T658, T656, less78_out_ga(T585, T657)) → U34_gaaag(T585, T657, T659, T654, T658, T656, p194_in_gaaag(T654, T657, T659, T658, T656))
U34_gaaag(T585, T657, T659, T654, T658, T656, p194_out_gaaag(T654, T657, T659, T658, T656)) → p194_out_gaaag(T585, T657, T659, .(T654, T658), .(T654, T656))
U28_gaaag(T513, T585, T588, T590, T589, T587, p194_out_gaaag(T585, T588, T590, T589, T587)) → p179_out_gaaag(T513, T585, .(T588, T590), T589, .(T585, T587))
U26_gaaag(T513, T568, T563, T569, T570, T567, p179_out_gaaag(T563, T568, T569, T570, T567)) → p179_out_gaaag(T513, T568, .(T563, T569), T570, .(T563, T567))
U96_ag(T412, T405, T406, T461, T513, T517, p179_out_gaaag(T513, T518, T519, T520, T517)) → ms1_out_ag(.(T412, .(T405, T406)), .(T461, .(T513, T517)))
ms1_in_ag(.(T412, .(T405, T406)), .(T461, .(T674, T676))) → U97_ag(T412, T405, T406, T461, T674, T676, split12_in_aaaa(T405, T406, T420, T411))
U97_ag(T412, T405, T406, T461, T674, T676, split12_out_aaaa(T405, T406, T420, T411)) → U98_ag(T412, T405, T406, T461, T674, T676, T420, ms25_in_aaa(T412, T411, .(T461, .(T677, T679))))
U98_ag(T412, T405, T406, T461, T674, T676, T420, ms25_out_aaa(T412, T411, .(T461, .(T677, T679)))) → U99_ag(T412, T405, T406, T461, T674, T676, T677, T679, ms38_in_aa(T420, .(T674, T678)))
U99_ag(T412, T405, T406, T461, T674, T676, T677, T679, ms38_out_aa(T420, .(T674, T678))) → U100_ag(T412, T405, T406, T461, T674, T676, T677, T679, T678, less70_in_gg(T461, T674))
U100_ag(T412, T405, T406, T461, T674, T676, T677, T679, T678, less70_out_gg(T461, T674)) → U101_ag(T412, T405, T406, T461, T674, T676, p194_in_gaaag(T674, T677, T679, T678, T676))
U101_ag(T412, T405, T406, T461, T674, T676, p194_out_gaaag(T674, T677, T679, T678, T676)) → ms1_out_ag(.(T412, .(T405, T406)), .(T461, .(T674, T676)))
ms1_in_ag(.(T412, .(T405, T406)), .(T694, T696)) → U102_ag(T412, T405, T406, T694, T696, split12_in_aaaa(T405, T406, T420, T411))
U102_ag(T412, T405, T406, T694, T696, split12_out_aaaa(T405, T406, T420, T411)) → U103_ag(T412, T405, T406, T694, T696, T420, ms25_in_aaa(T412, T411, .(T697, T699)))
U103_ag(T412, T405, T406, T694, T696, T420, ms25_out_aaa(T412, T411, .(T697, T699))) → U104_ag(T412, T405, T406, T694, T696, T697, T699, ms38_in_aa(T420, .(T694, T698)))
U104_ag(T412, T405, T406, T694, T696, T697, T699, ms38_out_aa(T420, .(T694, T698))) → U105_ag(T412, T405, T406, T694, T696, p194_in_gaaag(T694, T697, T699, T698, T696))
U105_ag(T412, T405, T406, T694, T696, p194_out_gaaag(T694, T697, T699, T698, T696)) → ms1_out_ag(.(T412, .(T405, T406)), .(T694, T696))
SPLIT16_IN_AAA(.(T49, T51), .(T49, X89), X90) → SPLIT16_IN_AAA(T51, X90, X89)
SPLIT16_IN_AAA → SPLIT16_IN_AAA
P34_IN_AAAAAAAA(T72, T73, T74, T78, T79, X125, X126, X127) → U4_AAAAAAAA(T72, T73, T74, T78, T79, X125, X126, X127, split12_in_aaaa(T72, .(T73, T74), T78, T79))
U4_AAAAAAAA(T72, T73, T74, T78, T79, X125, X126, X127, split12_out_aaaa(T72, .(T73, T74), T78, T79)) → MS38_IN_AA(T78, X125)
MS38_IN_AA(.(T99, .(T100, T101)), X172) → P34_IN_AAAAAAAA(T99, T100, T101, X168, X169, X170, X171, X172)
P34_IN_AAAAAAAA(T72, T73, T74, T78, T84, T83, X126, X127) → U6_AAAAAAAA(T72, T73, T74, T78, T84, T83, X126, X127, split12_in_aaaa(T72, .(T73, T74), T78, T84))
U6_AAAAAAAA(T72, T73, T74, T78, T84, T83, X126, X127, split12_out_aaaa(T72, .(T73, T74), T78, T84)) → U7_AAAAAAAA(T72, T73, T74, T78, T84, T83, X126, X127, ms38_in_aa(T78, T83))
U7_AAAAAAAA(T72, T73, T74, T78, T84, T83, X126, X127, ms38_out_aa(T78, T83)) → MS38_IN_AA(T84, X126)
U6_AAAAAAAA(T72, T73, T74, T78, T84, T83, X126, X127, split12_out_aaaa(T72, .(T73, T74), T78, T84)) → MS38_IN_AA(T78, T83)
P34_IN_AAAAAAAA(T72, T73, T74, T78, T84, T106, T105, X127) → U9_AAAAAAAA(T72, T73, T74, T78, T84, T106, T105, X127, split12_in_aaaa(T72, .(T73, T74), T78, T84))
U9_AAAAAAAA(T72, T73, T74, T78, T84, T106, T105, X127, split12_out_aaaa(T72, .(T73, T74), T78, T84)) → U10_AAAAAAAA(T72, T73, T74, T78, T84, T106, T105, X127, ms38_in_aa(T78, T106))
U10_AAAAAAAA(T72, T73, T74, T78, T84, T106, T105, X127, ms38_out_aa(T78, T106)) → MS38_IN_AA(T84, T105)
U9_AAAAAAAA(T72, T73, T74, T78, T84, T106, T105, X127, split12_out_aaaa(T72, .(T73, T74), T78, T84)) → MS38_IN_AA(T78, T106)
ms1_in_ag([], []) → ms1_out_ag([], [])
ms1_in_ag(.(T29, .(T27, T28)), []) → U35_ag(T29, T27, T28, split12_in_aaaa(T27, T28, X42, X41))
split12_in_aaaa(T42, T44, .(T42, X71), X72) → U2_aaaa(T42, T44, X71, X72, split16_in_aaa(T44, X72, X71))
split16_in_aaa([], [], []) → split16_out_aaa([], [], [])
split16_in_aaa(.(T49, T51), .(T49, X89), X90) → U1_aaa(T49, T51, X89, X90, split16_in_aaa(T51, X90, X89))
U1_aaa(T49, T51, X89, X90, split16_out_aaa(T51, X90, X89)) → split16_out_aaa(.(T49, T51), .(T49, X89), X90)
U2_aaaa(T42, T44, X71, X72, split16_out_aaa(T44, X72, X71)) → split12_out_aaaa(T42, T44, .(T42, X71), X72)
U35_ag(T29, T27, T28, split12_out_aaaa(T27, T28, X42, X41)) → ms1_out_ag(.(T29, .(T27, T28)), [])
ms1_in_ag(.(T34, .(T27, T28)), []) → U36_ag(T34, T27, T28, split12_in_aaaa(T27, T28, T32, T33))
U36_ag(T34, T27, T28, split12_out_aaaa(T27, T28, T32, T33)) → U37_ag(T34, T27, T28, ms25_in_aaa(T34, T33, X13))
ms25_in_aaa(T62, [], .(T62, [])) → ms25_out_aaa(T62, [], .(T62, []))
ms25_in_aaa(T72, .(T73, T74), X127) → U21_aaa(T72, T73, T74, X127, p34_in_aaaaaaaa(T72, T73, T74, X123, X124, X125, X126, X127))
p34_in_aaaaaaaa(T72, T73, T74, X123, X124, X125, X126, X127) → U3_aaaaaaaa(T72, T73, T74, X123, X124, X125, X126, X127, split12_in_aaaa(T72, .(T73, T74), X123, X124))
U3_aaaaaaaa(T72, T73, T74, X123, X124, X125, X126, X127, split12_out_aaaa(T72, .(T73, T74), X123, X124)) → p34_out_aaaaaaaa(T72, T73, T74, X123, X124, X125, X126, X127)
p34_in_aaaaaaaa(T72, T73, T74, T78, T79, X125, X126, X127) → U4_aaaaaaaa(T72, T73, T74, T78, T79, X125, X126, X127, split12_in_aaaa(T72, .(T73, T74), T78, T79))
U4_aaaaaaaa(T72, T73, T74, T78, T79, X125, X126, X127, split12_out_aaaa(T72, .(T73, T74), T78, T79)) → U5_aaaaaaaa(T72, T73, T74, T78, T79, X125, X126, X127, ms38_in_aa(T78, X125))
ms38_in_aa([], []) → ms38_out_aa([], [])
ms38_in_aa(.(T89, []), .(T89, [])) → ms38_out_aa(.(T89, []), .(T89, []))
ms38_in_aa(.(T99, .(T100, T101)), X172) → U13_aa(T99, T100, T101, X172, p34_in_aaaaaaaa(T99, T100, T101, X168, X169, X170, X171, X172))
p34_in_aaaaaaaa(T72, T73, T74, T78, T84, T83, X126, X127) → U6_aaaaaaaa(T72, T73, T74, T78, T84, T83, X126, X127, split12_in_aaaa(T72, .(T73, T74), T78, T84))
U6_aaaaaaaa(T72, T73, T74, T78, T84, T83, X126, X127, split12_out_aaaa(T72, .(T73, T74), T78, T84)) → U7_aaaaaaaa(T72, T73, T74, T78, T84, T83, X126, X127, ms38_in_aa(T78, T83))
U7_aaaaaaaa(T72, T73, T74, T78, T84, T83, X126, X127, ms38_out_aa(T78, T83)) → U8_aaaaaaaa(T72, T73, T74, T78, T84, T83, X126, X127, ms38_in_aa(T84, X126))
U8_aaaaaaaa(T72, T73, T74, T78, T84, T83, X126, X127, ms38_out_aa(T84, X126)) → p34_out_aaaaaaaa(T72, T73, T74, T78, T84, T83, X126, X127)
p34_in_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127) → U9_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127, split12_in_aaaa(T72, .(T73, T74), T78, T84))
U9_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127, split12_out_aaaa(T72, .(T73, T74), T78, T84)) → U10_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127, ms38_in_aa(T78, T106))
U10_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127, ms38_out_aa(T78, T106)) → U11_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127, ms38_in_aa(T84, T105))
U11_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127, ms38_out_aa(T84, T105)) → U12_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127, merge54_in_aaa(T106, T105, X127))
merge54_in_aaa([], T113, T113) → merge54_out_aaa([], T113, T113)
merge54_in_aaa(T118, [], T118) → merge54_out_aaa(T118, [], T118)
merge54_in_aaa(.(T139, T141), .(T140, T142), .(T139, X226)) → U14_aaa(T139, T141, T140, T142, X226, less70_in_aa(T139, T140))
less70_in_aa(0, T154) → less70_out_aa(0, T154)
less70_in_aa(s(T161), T162) → U22_aa(T161, T162, less78_in_aa(T161, T162))
less78_in_aa(0, s(T169)) → less78_out_aa(0, s(T169))
less78_in_aa(s(T176), s(T177)) → U20_aa(T176, T177, less78_in_aa(T176, T177))
U20_aa(T176, T177, less78_out_aa(T176, T177)) → less78_out_aa(s(T176), s(T177))
U22_aa(T161, T162, less78_out_aa(T161, T162)) → less70_out_aa(s(T161), T162)
U14_aaa(T139, T141, T140, T142, X226, less70_out_aa(T139, T140)) → merge54_out_aaa(.(T139, T141), .(T140, T142), .(T139, X226))
merge54_in_aaa(.(T139, T145), .(T146, T147), .(T139, X226)) → U15_aaa(T139, T145, T146, T147, X226, less70_in_aa(T139, T146))
U15_aaa(T139, T145, T146, T147, X226, less70_out_aa(T139, T146)) → U16_aaa(T139, T145, T146, T147, X226, merge54_in_aaa(T145, .(T146, T147), X226))
merge54_in_aaa(.(T197, T199), .(T196, T198), .(T196, X287)) → U17_aaa(T197, T199, T196, T198, X287, less78_in_aa(T196, T197))
U17_aaa(T197, T199, T196, T198, X287, less78_out_aa(T196, T197)) → merge54_out_aaa(.(T197, T199), .(T196, T198), .(T196, X287))
merge54_in_aaa(.(T202, T203), .(T196, T204), .(T196, X287)) → U18_aaa(T202, T203, T196, T204, X287, less78_in_aa(T196, T202))
U18_aaa(T202, T203, T196, T204, X287, less78_out_aa(T196, T202)) → U19_aaa(T202, T203, T196, T204, X287, merge54_in_aaa(.(T202, T203), T204, X287))
U19_aaa(T202, T203, T196, T204, X287, merge54_out_aaa(.(T202, T203), T204, X287)) → merge54_out_aaa(.(T202, T203), .(T196, T204), .(T196, X287))
U16_aaa(T139, T145, T146, T147, X226, merge54_out_aaa(T145, .(T146, T147), X226)) → merge54_out_aaa(.(T139, T145), .(T146, T147), .(T139, X226))
U12_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127, merge54_out_aaa(T106, T105, X127)) → p34_out_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127)
U13_aa(T99, T100, T101, X172, p34_out_aaaaaaaa(T99, T100, T101, X168, X169, X170, X171, X172)) → ms38_out_aa(.(T99, .(T100, T101)), X172)
U5_aaaaaaaa(T72, T73, T74, T78, T79, X125, X126, X127, ms38_out_aa(T78, X125)) → p34_out_aaaaaaaa(T72, T73, T74, T78, T79, X125, X126, X127)
U21_aaa(T72, T73, T74, X127, p34_out_aaaaaaaa(T72, T73, T74, X123, X124, X125, X126, X127)) → ms25_out_aaa(T72, .(T73, T74), X127)
U37_ag(T34, T27, T28, ms25_out_aaa(T34, T33, X13)) → ms1_out_ag(.(T34, .(T27, T28)), [])
ms1_in_ag(.(T34, .(T27, T28)), []) → U38_ag(T34, T27, T28, split12_in_aaaa(T27, T28, T55, T33))
U38_ag(T34, T27, T28, split12_out_aaaa(T27, T28, T55, T33)) → U39_ag(T34, T27, T28, T55, ms25_in_aaa(T34, T33, T54))
U39_ag(T34, T27, T28, T55, ms25_out_aaa(T34, T33, T54)) → U40_ag(T34, T27, T28, ms38_in_aa(T55, X14))
U40_ag(T34, T27, T28, ms38_out_aa(T55, X14)) → ms1_out_ag(.(T34, .(T27, T28)), [])
U38_ag(T34, T27, T28, split12_out_aaaa(T27, T28, T55, T33)) → U41_ag(T34, T27, T28, T55, ms25_in_aaa(T34, T33, T212))
U41_ag(T34, T27, T28, T55, ms25_out_aaa(T34, T33, T212)) → U42_ag(T34, T27, T28, T212, ms38_in_aa(T55, T211))
U42_ag(T34, T27, T28, T212, ms38_out_aa(T55, T211)) → U43_ag(T34, T27, T28, merge93_in_aa(T212, T211))
merge93_in_aa([], []) → merge93_out_aa([], [])
U43_ag(T34, T27, T28, merge93_out_aa(T212, T211)) → ms1_out_ag(.(T34, .(T27, T28)), [])
ms1_in_ag(.(T234, []), .(T234, [])) → ms1_out_ag(.(T234, []), .(T234, []))
ms1_in_ag(.(T262, .(T260, T261)), .(T242, [])) → U44_ag(T262, T260, T261, T242, split12_in_aaaa(T260, T261, X367, X366))
U44_ag(T262, T260, T261, T242, split12_out_aaaa(T260, T261, X367, X366)) → ms1_out_ag(.(T262, .(T260, T261)), .(T242, []))
ms1_in_ag(.(T267, .(T260, T261)), .(T242, [])) → U45_ag(T267, T260, T261, T242, split12_in_aaaa(T260, T261, T265, T266))
U45_ag(T267, T260, T261, T242, split12_out_aaaa(T260, T261, T265, T266)) → U46_ag(T267, T260, T261, T242, ms25_in_aaa(T267, T266, X338))
U46_ag(T267, T260, T261, T242, ms25_out_aaa(T267, T266, X338)) → ms1_out_ag(.(T267, .(T260, T261)), .(T242, []))
ms1_in_ag(.(T267, .(T260, T261)), .(T242, [])) → U47_ag(T267, T260, T261, T242, split12_in_aaaa(T260, T261, T273, T266))
U47_ag(T267, T260, T261, T242, split12_out_aaaa(T260, T261, T273, T266)) → U48_ag(T267, T260, T261, T242, T273, ms25_in_aaa(T267, T266, T272))
U48_ag(T267, T260, T261, T242, T273, ms25_out_aaa(T267, T266, T272)) → U49_ag(T267, T260, T261, T242, ms38_in_aa(T273, X339))
U49_ag(T267, T260, T261, T242, ms38_out_aa(T273, X339)) → ms1_out_ag(.(T267, .(T260, T261)), .(T242, []))
ms1_in_ag(.(T267, .(T260, T261)), .(T291, [])) → U50_ag(T267, T260, T261, T291, split12_in_aaaa(T260, T261, T273, T266))
U50_ag(T267, T260, T261, T291, split12_out_aaaa(T260, T261, T273, T266)) → U51_ag(T267, T260, T261, T291, T273, ms25_in_aag(T267, T266, []))
ms25_in_aag(T62, [], .(T62, [])) → ms25_out_aag(T62, [], .(T62, []))
ms25_in_aag(T72, .(T73, T74), X127) → U21_aag(T72, T73, T74, X127, p34_in_aaaaaaag(T72, T73, T74, X123, X124, X125, X126, X127))
p34_in_aaaaaaag(T72, T73, T74, X123, X124, X125, X126, X127) → U3_aaaaaaag(T72, T73, T74, X123, X124, X125, X126, X127, split12_in_aaaa(T72, .(T73, T74), X123, X124))
U3_aaaaaaag(T72, T73, T74, X123, X124, X125, X126, X127, split12_out_aaaa(T72, .(T73, T74), X123, X124)) → p34_out_aaaaaaag(T72, T73, T74, X123, X124, X125, X126, X127)
p34_in_aaaaaaag(T72, T73, T74, T78, T79, X125, X126, X127) → U4_aaaaaaag(T72, T73, T74, T78, T79, X125, X126, X127, split12_in_aaaa(T72, .(T73, T74), T78, T79))
U4_aaaaaaag(T72, T73, T74, T78, T79, X125, X126, X127, split12_out_aaaa(T72, .(T73, T74), T78, T79)) → U5_aaaaaaag(T72, T73, T74, T78, T79, X125, X126, X127, ms38_in_aa(T78, X125))
U5_aaaaaaag(T72, T73, T74, T78, T79, X125, X126, X127, ms38_out_aa(T78, X125)) → p34_out_aaaaaaag(T72, T73, T74, T78, T79, X125, X126, X127)
p34_in_aaaaaaag(T72, T73, T74, T78, T84, T83, X126, X127) → U6_aaaaaaag(T72, T73, T74, T78, T84, T83, X126, X127, split12_in_aaaa(T72, .(T73, T74), T78, T84))
U6_aaaaaaag(T72, T73, T74, T78, T84, T83, X126, X127, split12_out_aaaa(T72, .(T73, T74), T78, T84)) → U7_aaaaaaag(T72, T73, T74, T78, T84, T83, X126, X127, ms38_in_aa(T78, T83))
U7_aaaaaaag(T72, T73, T74, T78, T84, T83, X126, X127, ms38_out_aa(T78, T83)) → U8_aaaaaaag(T72, T73, T74, T78, T84, T83, X126, X127, ms38_in_aa(T84, X126))
U8_aaaaaaag(T72, T73, T74, T78, T84, T83, X126, X127, ms38_out_aa(T84, X126)) → p34_out_aaaaaaag(T72, T73, T74, T78, T84, T83, X126, X127)
p34_in_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127) → U9_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127, split12_in_aaaa(T72, .(T73, T74), T78, T84))
U9_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127, split12_out_aaaa(T72, .(T73, T74), T78, T84)) → U10_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127, ms38_in_aa(T78, T106))
U10_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127, ms38_out_aa(T78, T106)) → U11_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127, ms38_in_aa(T84, T105))
U11_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127, ms38_out_aa(T84, T105)) → U12_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127, merge54_in_aag(T106, T105, X127))
merge54_in_aag([], T113, T113) → merge54_out_aag([], T113, T113)
merge54_in_aag(T118, [], T118) → merge54_out_aag(T118, [], T118)
merge54_in_aag(.(T139, T141), .(T140, T142), .(T139, X226)) → U14_aag(T139, T141, T140, T142, X226, less70_in_ga(T139, T140))
less70_in_ga(0, T154) → less70_out_ga(0, T154)
less70_in_ga(s(T161), T162) → U22_ga(T161, T162, less78_in_ga(T161, T162))
less78_in_ga(0, s(T169)) → less78_out_ga(0, s(T169))
less78_in_ga(s(T176), s(T177)) → U20_ga(T176, T177, less78_in_ga(T176, T177))
U20_ga(T176, T177, less78_out_ga(T176, T177)) → less78_out_ga(s(T176), s(T177))
U22_ga(T161, T162, less78_out_ga(T161, T162)) → less70_out_ga(s(T161), T162)
U14_aag(T139, T141, T140, T142, X226, less70_out_ga(T139, T140)) → merge54_out_aag(.(T139, T141), .(T140, T142), .(T139, X226))
merge54_in_aag(.(T139, T145), .(T146, T147), .(T139, X226)) → U15_aag(T139, T145, T146, T147, X226, less70_in_ga(T139, T146))
U15_aag(T139, T145, T146, T147, X226, less70_out_ga(T139, T146)) → U16_aag(T139, T145, T146, T147, X226, merge54_in_aag(T145, .(T146, T147), X226))
merge54_in_aag(.(T197, T199), .(T196, T198), .(T196, X287)) → U17_aag(T197, T199, T196, T198, X287, less78_in_ga(T196, T197))
U17_aag(T197, T199, T196, T198, X287, less78_out_ga(T196, T197)) → merge54_out_aag(.(T197, T199), .(T196, T198), .(T196, X287))
merge54_in_aag(.(T202, T203), .(T196, T204), .(T196, X287)) → U18_aag(T202, T203, T196, T204, X287, less78_in_ga(T196, T202))
U18_aag(T202, T203, T196, T204, X287, less78_out_ga(T196, T202)) → U19_aag(T202, T203, T196, T204, X287, merge54_in_aag(.(T202, T203), T204, X287))
U19_aag(T202, T203, T196, T204, X287, merge54_out_aag(.(T202, T203), T204, X287)) → merge54_out_aag(.(T202, T203), .(T196, T204), .(T196, X287))
U16_aag(T139, T145, T146, T147, X226, merge54_out_aag(T145, .(T146, T147), X226)) → merge54_out_aag(.(T139, T145), .(T146, T147), .(T139, X226))
U12_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127, merge54_out_aag(T106, T105, X127)) → p34_out_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127)
U21_aag(T72, T73, T74, X127, p34_out_aaaaaaag(T72, T73, T74, X123, X124, X125, X126, X127)) → ms25_out_aag(T72, .(T73, T74), X127)
U51_ag(T267, T260, T261, T291, T273, ms25_out_aag(T267, T266, [])) → U52_ag(T267, T260, T261, T291, ms38_in_ag(T273, .(T291, [])))
ms38_in_ag([], []) → ms38_out_ag([], [])
ms38_in_ag(.(T89, []), .(T89, [])) → ms38_out_ag(.(T89, []), .(T89, []))
ms38_in_ag(.(T99, .(T100, T101)), X172) → U13_ag(T99, T100, T101, X172, p34_in_aaaaaaag(T99, T100, T101, X168, X169, X170, X171, X172))
U13_ag(T99, T100, T101, X172, p34_out_aaaaaaag(T99, T100, T101, X168, X169, X170, X171, X172)) → ms38_out_ag(.(T99, .(T100, T101)), X172)
U52_ag(T267, T260, T261, T291, ms38_out_ag(T273, .(T291, []))) → ms1_out_ag(.(T267, .(T260, T261)), .(T291, []))
ms1_in_ag(.(T267, .(T260, T261)), .(T301, [])) → U53_ag(T267, T260, T261, T301, split12_in_aaaa(T260, T261, T273, T266))
U53_ag(T267, T260, T261, T301, split12_out_aaaa(T260, T261, T273, T266)) → U54_ag(T267, T260, T261, T301, T273, ms25_in_aag(T267, T266, .(T301, [])))
U54_ag(T267, T260, T261, T301, T273, ms25_out_aag(T267, T266, .(T301, []))) → U55_ag(T267, T260, T261, T301, ms38_in_ag(T273, []))
U55_ag(T267, T260, T261, T301, ms38_out_ag(T273, [])) → ms1_out_ag(.(T267, .(T260, T261)), .(T301, []))
ms1_in_ag(.(T267, .(T260, T261)), .(T318, [])) → U56_ag(T267, T260, T261, T318, split12_in_aaaa(T260, T261, T273, T266))
U56_ag(T267, T260, T261, T318, split12_out_aaaa(T260, T261, T273, T266)) → U57_ag(T267, T260, T261, T318, T273, ms25_in_aaa(T267, T266, .(T318, T323)))
U57_ag(T267, T260, T261, T318, T273, ms25_out_aaa(T267, T266, .(T318, T323))) → U58_ag(T267, T260, T261, T318, ms38_in_aa(T273, .(T322, T324)))
U58_ag(T267, T260, T261, T318, ms38_out_aa(T273, .(T322, T324))) → U59_ag(T267, T260, T261, T318, less70_in_ga(T318, T322))
U59_ag(T267, T260, T261, T318, less70_out_ga(T318, T322)) → ms1_out_ag(.(T267, .(T260, T261)), .(T318, []))
U56_ag(T267, T260, T261, T318, split12_out_aaaa(T260, T261, T273, T266)) → U60_ag(T267, T260, T261, T318, T273, ms25_in_aaa(T267, T266, .(T318, T327)))
U60_ag(T267, T260, T261, T318, T273, ms25_out_aaa(T267, T266, .(T318, T327))) → U61_ag(T267, T260, T261, T318, T327, ms38_in_aa(T273, .(T328, T329)))
U61_ag(T267, T260, T261, T318, T327, ms38_out_aa(T273, .(T328, T329))) → U62_ag(T267, T260, T261, T318, T327, T328, T329, less70_in_ga(T318, T328))
U62_ag(T267, T260, T261, T318, T327, T328, T329, less70_out_ga(T318, T328)) → U63_ag(T267, T260, T261, T318, merge93_in_aa(T327, .(T328, T329)))
U63_ag(T267, T260, T261, T318, merge93_out_aa(T327, .(T328, T329))) → ms1_out_ag(.(T267, .(T260, T261)), .(T318, []))
ms1_in_ag(.(T267, .(T260, T261)), .(T356, [])) → U64_ag(T267, T260, T261, T356, split12_in_aaaa(T260, T261, T273, T266))
U64_ag(T267, T260, T261, T356, split12_out_aaaa(T260, T261, T273, T266)) → U65_ag(T267, T260, T261, T356, T273, ms25_in_aaa(T267, T266, .(T358, T360)))
U65_ag(T267, T260, T261, T356, T273, ms25_out_aaa(T267, T266, .(T358, T360))) → U66_ag(T267, T260, T261, T356, T358, ms38_in_aa(T273, .(T356, T359)))
U66_ag(T267, T260, T261, T356, T358, ms38_out_aa(T273, .(T356, T359))) → U67_ag(T267, T260, T261, T356, less78_in_ga(T356, T358))
U67_ag(T267, T260, T261, T356, less78_out_ga(T356, T358)) → ms1_out_ag(.(T267, .(T260, T261)), .(T356, []))
U64_ag(T267, T260, T261, T356, split12_out_aaaa(T260, T261, T273, T266)) → U68_ag(T267, T260, T261, T356, T273, ms25_in_aaa(T267, T266, .(T363, T364)))
U68_ag(T267, T260, T261, T356, T273, ms25_out_aaa(T267, T266, .(T363, T364))) → U69_ag(T267, T260, T261, T356, T363, T364, ms38_in_aa(T273, .(T356, T365)))
U69_ag(T267, T260, T261, T356, T363, T364, ms38_out_aa(T273, .(T356, T365))) → U70_ag(T267, T260, T261, T356, T363, T364, T365, less78_in_ga(T356, T363))
U70_ag(T267, T260, T261, T356, T363, T364, T365, less78_out_ga(T356, T363)) → U71_ag(T267, T260, T261, T356, merge93_in_aa(.(T363, T364), T365))
U71_ag(T267, T260, T261, T356, merge93_out_aa(.(T363, T364), T365)) → ms1_out_ag(.(T267, .(T260, T261)), .(T356, []))
ms1_in_ag(.(T407, .(T405, T406)), T387) → U72_ag(T407, T405, T406, T387, split12_in_aaaa(T405, T406, X523, X522))
U72_ag(T407, T405, T406, T387, split12_out_aaaa(T405, T406, X523, X522)) → ms1_out_ag(.(T407, .(T405, T406)), T387)
ms1_in_ag(.(T412, .(T405, T406)), T387) → U73_ag(T412, T405, T406, T387, split12_in_aaaa(T405, T406, T410, T411))
U73_ag(T412, T405, T406, T387, split12_out_aaaa(T405, T406, T410, T411)) → U74_ag(T412, T405, T406, T387, ms25_in_aaa(T412, T411, X494))
U74_ag(T412, T405, T406, T387, ms25_out_aaa(T412, T411, X494)) → ms1_out_ag(.(T412, .(T405, T406)), T387)
ms1_in_ag(.(T412, .(T405, T406)), T387) → U75_ag(T412, T405, T406, T387, split12_in_aaaa(T405, T406, T420, T411))
U75_ag(T412, T405, T406, T387, split12_out_aaaa(T405, T406, T420, T411)) → U76_ag(T412, T405, T406, T387, T420, ms25_in_aaa(T412, T411, T419))
U76_ag(T412, T405, T406, T387, T420, ms25_out_aaa(T412, T411, T419)) → U77_ag(T412, T405, T406, T387, ms38_in_aa(T420, X495))
U77_ag(T412, T405, T406, T387, ms38_out_aa(T420, X495)) → ms1_out_ag(.(T412, .(T405, T406)), T387)
ms1_in_ag(.(T412, .(T405, T406)), T435) → U78_ag(T412, T405, T406, T435, split12_in_aaaa(T405, T406, T420, T411))
U78_ag(T412, T405, T406, T435, split12_out_aaaa(T405, T406, T420, T411)) → U79_ag(T412, T405, T406, T435, T420, ms25_in_aag(T412, T411, []))
U79_ag(T412, T405, T406, T435, T420, ms25_out_aag(T412, T411, [])) → U80_ag(T412, T405, T406, T435, ms38_in_ag(T420, T435))
U80_ag(T412, T405, T406, T435, ms38_out_ag(T420, T435)) → ms1_out_ag(.(T412, .(T405, T406)), T435)
ms1_in_ag(.(T412, .(T405, T406)), T440) → U81_ag(T412, T405, T406, T440, split12_in_aaaa(T405, T406, T420, T411))
U81_ag(T412, T405, T406, T440, split12_out_aaaa(T405, T406, T420, T411)) → U82_ag(T412, T405, T406, T440, T420, ms25_in_aag(T412, T411, T440))
U82_ag(T412, T405, T406, T440, T420, ms25_out_aag(T412, T411, T440)) → U83_ag(T412, T405, T406, T440, ms38_in_ag(T420, []))
U83_ag(T412, T405, T406, T440, ms38_out_ag(T420, [])) → ms1_out_ag(.(T412, .(T405, T406)), T440)
ms1_in_ag(.(T412, .(T405, T406)), .(T461, T465)) → U84_ag(T412, T405, T406, T461, T465, split12_in_aaaa(T405, T406, T420, T411))
U84_ag(T412, T405, T406, T461, T465, split12_out_aaaa(T405, T406, T420, T411)) → U85_ag(T412, T405, T406, T461, T465, T420, ms25_in_aaa(T412, T411, .(T461, T467)))
U85_ag(T412, T405, T406, T461, T465, T420, ms25_out_aaa(T412, T411, .(T461, T467))) → U86_ag(T412, T405, T406, T461, T465, ms38_in_aa(T420, .(T466, T468)))
U86_ag(T412, T405, T406, T461, T465, ms38_out_aa(T420, .(T466, T468))) → U87_ag(T412, T405, T406, T461, T465, less70_in_ga(T461, T466))
U87_ag(T412, T405, T406, T461, T465, less70_out_ga(T461, T466)) → ms1_out_ag(.(T412, .(T405, T406)), .(T461, T465))
ms1_in_ag(.(T412, .(T405, T406)), .(T461, .(T490, T491))) → U88_ag(T412, T405, T406, T461, T490, T491, split12_in_aaaa(T405, T406, T420, T411))
U88_ag(T412, T405, T406, T461, T490, T491, split12_out_aaaa(T405, T406, T420, T411)) → U89_ag(T412, T405, T406, T461, T490, T491, T420, ms25_in_aag(T412, T411, .(T461, [])))
U89_ag(T412, T405, T406, T461, T490, T491, T420, ms25_out_aag(T412, T411, .(T461, []))) → U90_ag(T412, T405, T406, T461, T490, T491, ms38_in_ag(T420, .(T490, T491)))
U90_ag(T412, T405, T406, T461, T490, T491, ms38_out_ag(T420, .(T490, T491))) → U91_ag(T412, T405, T406, T461, T490, T491, less70_in_gg(T461, T490))
less70_in_gg(0, T154) → less70_out_gg(0, T154)
less70_in_gg(s(T161), T162) → U22_gg(T161, T162, less78_in_gg(T161, T162))
less78_in_gg(0, s(T169)) → less78_out_gg(0, s(T169))
less78_in_gg(s(T176), s(T177)) → U20_gg(T176, T177, less78_in_gg(T176, T177))
U20_gg(T176, T177, less78_out_gg(T176, T177)) → less78_out_gg(s(T176), s(T177))
U22_gg(T161, T162, less78_out_gg(T161, T162)) → less70_out_gg(s(T161), T162)
U91_ag(T412, T405, T406, T461, T490, T491, less70_out_gg(T461, T490)) → ms1_out_ag(.(T412, .(T405, T406)), .(T461, .(T490, T491)))
ms1_in_ag(.(T412, .(T405, T406)), .(T461, .(T513, T517))) → U92_ag(T412, T405, T406, T461, T513, T517, split12_in_aaaa(T405, T406, T420, T411))
U92_ag(T412, T405, T406, T461, T513, T517, split12_out_aaaa(T405, T406, T420, T411)) → U93_ag(T412, T405, T406, T461, T513, T517, T420, ms25_in_aaa(T412, T411, .(T461, .(T513, T519))))
U93_ag(T412, T405, T406, T461, T513, T517, T420, ms25_out_aaa(T412, T411, .(T461, .(T513, T519)))) → U94_ag(T412, T405, T406, T461, T513, T517, T519, ms38_in_aa(T420, .(T518, T520)))
U94_ag(T412, T405, T406, T461, T513, T517, T519, ms38_out_aa(T420, .(T518, T520))) → U95_ag(T412, T405, T406, T461, T513, T517, T519, T518, T520, less70_in_ga(T461, T518))
U95_ag(T412, T405, T406, T461, T513, T517, T519, T518, T520, less70_out_ga(T461, T518)) → U96_ag(T412, T405, T406, T461, T513, T517, p179_in_gaaag(T513, T518, T519, T520, T517))
p179_in_gaaag(T513, T518, T519, T520, T517) → U23_gaaag(T513, T518, T519, T520, T517, less70_in_ga(T513, T518))
U23_gaaag(T513, T518, T519, T520, T517, less70_out_ga(T513, T518)) → p179_out_gaaag(T513, T518, T519, T520, T517)
p179_in_gaaag(T513, T540, [], T541, .(T540, T541)) → U24_gaaag(T513, T540, T541, less70_in_gg(T513, T540))
U24_gaaag(T513, T540, T541, less70_out_gg(T513, T540)) → p179_out_gaaag(T513, T540, [], T541, .(T540, T541))
p179_in_gaaag(T513, T568, .(T563, T569), T570, .(T563, T567)) → U25_gaaag(T513, T568, T563, T569, T570, T567, less70_in_ga(T513, T568))
U25_gaaag(T513, T568, T563, T569, T570, T567, less70_out_ga(T513, T568)) → U26_gaaag(T513, T568, T563, T569, T570, T567, p179_in_gaaag(T563, T568, T569, T570, T567))
p179_in_gaaag(T513, T585, .(T588, T590), T589, .(T585, T587)) → U27_gaaag(T513, T585, T588, T590, T589, T587, less70_in_gg(T513, T585))
U27_gaaag(T513, T585, T588, T590, T589, T587, less70_out_gg(T513, T585)) → U28_gaaag(T513, T585, T588, T590, T589, T587, p194_in_gaaag(T585, T588, T590, T589, T587))
p194_in_gaaag(T585, T588, T590, T589, T587) → U29_gaaag(T585, T588, T590, T589, T587, less78_in_ga(T585, T588))
U29_gaaag(T585, T588, T590, T589, T587, less78_out_ga(T585, T588)) → p194_out_gaaag(T585, T588, T590, T589, T587)
p194_in_gaaag(T585, T610, T611, [], .(T610, T611)) → U30_gaaag(T585, T610, T611, less78_in_gg(T585, T610))
U30_gaaag(T585, T610, T611, less78_out_gg(T585, T610)) → p194_out_gaaag(T585, T610, T611, [], .(T610, T611))
p194_in_gaaag(T585, T632, T638, .(T637, T639), .(T632, T636)) → U31_gaaag(T585, T632, T638, T637, T639, T636, less78_in_gg(T585, T632))
U31_gaaag(T585, T632, T638, T637, T639, T636, less78_out_gg(T585, T632)) → U32_gaaag(T585, T632, T638, T637, T639, T636, p179_in_gaaag(T632, T637, T638, T639, T636))
U32_gaaag(T585, T632, T638, T637, T639, T636, p179_out_gaaag(T632, T637, T638, T639, T636)) → p194_out_gaaag(T585, T632, T638, .(T637, T639), .(T632, T636))
p194_in_gaaag(T585, T657, T659, .(T654, T658), .(T654, T656)) → U33_gaaag(T585, T657, T659, T654, T658, T656, less78_in_ga(T585, T657))
U33_gaaag(T585, T657, T659, T654, T658, T656, less78_out_ga(T585, T657)) → U34_gaaag(T585, T657, T659, T654, T658, T656, p194_in_gaaag(T654, T657, T659, T658, T656))
U34_gaaag(T585, T657, T659, T654, T658, T656, p194_out_gaaag(T654, T657, T659, T658, T656)) → p194_out_gaaag(T585, T657, T659, .(T654, T658), .(T654, T656))
U28_gaaag(T513, T585, T588, T590, T589, T587, p194_out_gaaag(T585, T588, T590, T589, T587)) → p179_out_gaaag(T513, T585, .(T588, T590), T589, .(T585, T587))
U26_gaaag(T513, T568, T563, T569, T570, T567, p179_out_gaaag(T563, T568, T569, T570, T567)) → p179_out_gaaag(T513, T568, .(T563, T569), T570, .(T563, T567))
U96_ag(T412, T405, T406, T461, T513, T517, p179_out_gaaag(T513, T518, T519, T520, T517)) → ms1_out_ag(.(T412, .(T405, T406)), .(T461, .(T513, T517)))
ms1_in_ag(.(T412, .(T405, T406)), .(T461, .(T674, T676))) → U97_ag(T412, T405, T406, T461, T674, T676, split12_in_aaaa(T405, T406, T420, T411))
U97_ag(T412, T405, T406, T461, T674, T676, split12_out_aaaa(T405, T406, T420, T411)) → U98_ag(T412, T405, T406, T461, T674, T676, T420, ms25_in_aaa(T412, T411, .(T461, .(T677, T679))))
U98_ag(T412, T405, T406, T461, T674, T676, T420, ms25_out_aaa(T412, T411, .(T461, .(T677, T679)))) → U99_ag(T412, T405, T406, T461, T674, T676, T677, T679, ms38_in_aa(T420, .(T674, T678)))
U99_ag(T412, T405, T406, T461, T674, T676, T677, T679, ms38_out_aa(T420, .(T674, T678))) → U100_ag(T412, T405, T406, T461, T674, T676, T677, T679, T678, less70_in_gg(T461, T674))
U100_ag(T412, T405, T406, T461, T674, T676, T677, T679, T678, less70_out_gg(T461, T674)) → U101_ag(T412, T405, T406, T461, T674, T676, p194_in_gaaag(T674, T677, T679, T678, T676))
U101_ag(T412, T405, T406, T461, T674, T676, p194_out_gaaag(T674, T677, T679, T678, T676)) → ms1_out_ag(.(T412, .(T405, T406)), .(T461, .(T674, T676)))
ms1_in_ag(.(T412, .(T405, T406)), .(T694, T696)) → U102_ag(T412, T405, T406, T694, T696, split12_in_aaaa(T405, T406, T420, T411))
U102_ag(T412, T405, T406, T694, T696, split12_out_aaaa(T405, T406, T420, T411)) → U103_ag(T412, T405, T406, T694, T696, T420, ms25_in_aaa(T412, T411, .(T697, T699)))
U103_ag(T412, T405, T406, T694, T696, T420, ms25_out_aaa(T412, T411, .(T697, T699))) → U104_ag(T412, T405, T406, T694, T696, T697, T699, ms38_in_aa(T420, .(T694, T698)))
U104_ag(T412, T405, T406, T694, T696, T697, T699, ms38_out_aa(T420, .(T694, T698))) → U105_ag(T412, T405, T406, T694, T696, p194_in_gaaag(T694, T697, T699, T698, T696))
U105_ag(T412, T405, T406, T694, T696, p194_out_gaaag(T694, T697, T699, T698, T696)) → ms1_out_ag(.(T412, .(T405, T406)), .(T694, T696))
P34_IN_AAAAAAAA(T72, T73, T74, T78, T79, X125, X126, X127) → U4_AAAAAAAA(T72, T73, T74, T78, T79, X125, X126, X127, split12_in_aaaa(T72, .(T73, T74), T78, T79))
U4_AAAAAAAA(T72, T73, T74, T78, T79, X125, X126, X127, split12_out_aaaa(T72, .(T73, T74), T78, T79)) → MS38_IN_AA(T78, X125)
MS38_IN_AA(.(T99, .(T100, T101)), X172) → P34_IN_AAAAAAAA(T99, T100, T101, X168, X169, X170, X171, X172)
P34_IN_AAAAAAAA(T72, T73, T74, T78, T84, T83, X126, X127) → U6_AAAAAAAA(T72, T73, T74, T78, T84, T83, X126, X127, split12_in_aaaa(T72, .(T73, T74), T78, T84))
U6_AAAAAAAA(T72, T73, T74, T78, T84, T83, X126, X127, split12_out_aaaa(T72, .(T73, T74), T78, T84)) → U7_AAAAAAAA(T72, T73, T74, T78, T84, T83, X126, X127, ms38_in_aa(T78, T83))
U7_AAAAAAAA(T72, T73, T74, T78, T84, T83, X126, X127, ms38_out_aa(T78, T83)) → MS38_IN_AA(T84, X126)
U6_AAAAAAAA(T72, T73, T74, T78, T84, T83, X126, X127, split12_out_aaaa(T72, .(T73, T74), T78, T84)) → MS38_IN_AA(T78, T83)
P34_IN_AAAAAAAA(T72, T73, T74, T78, T84, T106, T105, X127) → U9_AAAAAAAA(T72, T73, T74, T78, T84, T106, T105, X127, split12_in_aaaa(T72, .(T73, T74), T78, T84))
U9_AAAAAAAA(T72, T73, T74, T78, T84, T106, T105, X127, split12_out_aaaa(T72, .(T73, T74), T78, T84)) → U10_AAAAAAAA(T72, T73, T74, T78, T84, T106, T105, X127, ms38_in_aa(T78, T106))
U10_AAAAAAAA(T72, T73, T74, T78, T84, T106, T105, X127, ms38_out_aa(T78, T106)) → MS38_IN_AA(T84, T105)
U9_AAAAAAAA(T72, T73, T74, T78, T84, T106, T105, X127, split12_out_aaaa(T72, .(T73, T74), T78, T84)) → MS38_IN_AA(T78, T106)
split12_in_aaaa(T42, T44, .(T42, X71), X72) → U2_aaaa(T42, T44, X71, X72, split16_in_aaa(T44, X72, X71))
ms38_in_aa([], []) → ms38_out_aa([], [])
ms38_in_aa(.(T89, []), .(T89, [])) → ms38_out_aa(.(T89, []), .(T89, []))
ms38_in_aa(.(T99, .(T100, T101)), X172) → U13_aa(T99, T100, T101, X172, p34_in_aaaaaaaa(T99, T100, T101, X168, X169, X170, X171, X172))
U2_aaaa(T42, T44, X71, X72, split16_out_aaa(T44, X72, X71)) → split12_out_aaaa(T42, T44, .(T42, X71), X72)
U13_aa(T99, T100, T101, X172, p34_out_aaaaaaaa(T99, T100, T101, X168, X169, X170, X171, X172)) → ms38_out_aa(.(T99, .(T100, T101)), X172)
split16_in_aaa([], [], []) → split16_out_aaa([], [], [])
split16_in_aaa(.(T49, T51), .(T49, X89), X90) → U1_aaa(T49, T51, X89, X90, split16_in_aaa(T51, X90, X89))
p34_in_aaaaaaaa(T72, T73, T74, X123, X124, X125, X126, X127) → U3_aaaaaaaa(T72, T73, T74, X123, X124, X125, X126, X127, split12_in_aaaa(T72, .(T73, T74), X123, X124))
p34_in_aaaaaaaa(T72, T73, T74, T78, T79, X125, X126, X127) → U4_aaaaaaaa(T72, T73, T74, T78, T79, X125, X126, X127, split12_in_aaaa(T72, .(T73, T74), T78, T79))
p34_in_aaaaaaaa(T72, T73, T74, T78, T84, T83, X126, X127) → U6_aaaaaaaa(T72, T73, T74, T78, T84, T83, X126, X127, split12_in_aaaa(T72, .(T73, T74), T78, T84))
p34_in_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127) → U9_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127, split12_in_aaaa(T72, .(T73, T74), T78, T84))
U1_aaa(T49, T51, X89, X90, split16_out_aaa(T51, X90, X89)) → split16_out_aaa(.(T49, T51), .(T49, X89), X90)
U3_aaaaaaaa(T72, T73, T74, X123, X124, X125, X126, X127, split12_out_aaaa(T72, .(T73, T74), X123, X124)) → p34_out_aaaaaaaa(T72, T73, T74, X123, X124, X125, X126, X127)
U4_aaaaaaaa(T72, T73, T74, T78, T79, X125, X126, X127, split12_out_aaaa(T72, .(T73, T74), T78, T79)) → U5_aaaaaaaa(T72, T73, T74, T78, T79, X125, X126, X127, ms38_in_aa(T78, X125))
U6_aaaaaaaa(T72, T73, T74, T78, T84, T83, X126, X127, split12_out_aaaa(T72, .(T73, T74), T78, T84)) → U7_aaaaaaaa(T72, T73, T74, T78, T84, T83, X126, X127, ms38_in_aa(T78, T83))
U9_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127, split12_out_aaaa(T72, .(T73, T74), T78, T84)) → U10_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127, ms38_in_aa(T78, T106))
U5_aaaaaaaa(T72, T73, T74, T78, T79, X125, X126, X127, ms38_out_aa(T78, X125)) → p34_out_aaaaaaaa(T72, T73, T74, T78, T79, X125, X126, X127)
U7_aaaaaaaa(T72, T73, T74, T78, T84, T83, X126, X127, ms38_out_aa(T78, T83)) → U8_aaaaaaaa(T72, T73, T74, T78, T84, T83, X126, X127, ms38_in_aa(T84, X126))
U10_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127, ms38_out_aa(T78, T106)) → U11_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127, ms38_in_aa(T84, T105))
U8_aaaaaaaa(T72, T73, T74, T78, T84, T83, X126, X127, ms38_out_aa(T84, X126)) → p34_out_aaaaaaaa(T72, T73, T74, T78, T84, T83, X126, X127)
U11_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127, ms38_out_aa(T84, T105)) → U12_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127, merge54_in_aaa(T106, T105, X127))
U12_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127, merge54_out_aaa(T106, T105, X127)) → p34_out_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127)
merge54_in_aaa([], T113, T113) → merge54_out_aaa([], T113, T113)
merge54_in_aaa(T118, [], T118) → merge54_out_aaa(T118, [], T118)
merge54_in_aaa(.(T139, T141), .(T140, T142), .(T139, X226)) → U14_aaa(T139, T141, T140, T142, X226, less70_in_aa(T139, T140))
merge54_in_aaa(.(T139, T145), .(T146, T147), .(T139, X226)) → U15_aaa(T139, T145, T146, T147, X226, less70_in_aa(T139, T146))
merge54_in_aaa(.(T197, T199), .(T196, T198), .(T196, X287)) → U17_aaa(T197, T199, T196, T198, X287, less78_in_aa(T196, T197))
merge54_in_aaa(.(T202, T203), .(T196, T204), .(T196, X287)) → U18_aaa(T202, T203, T196, T204, X287, less78_in_aa(T196, T202))
U14_aaa(T139, T141, T140, T142, X226, less70_out_aa(T139, T140)) → merge54_out_aaa(.(T139, T141), .(T140, T142), .(T139, X226))
U15_aaa(T139, T145, T146, T147, X226, less70_out_aa(T139, T146)) → U16_aaa(T139, T145, T146, T147, X226, merge54_in_aaa(T145, .(T146, T147), X226))
U17_aaa(T197, T199, T196, T198, X287, less78_out_aa(T196, T197)) → merge54_out_aaa(.(T197, T199), .(T196, T198), .(T196, X287))
U18_aaa(T202, T203, T196, T204, X287, less78_out_aa(T196, T202)) → U19_aaa(T202, T203, T196, T204, X287, merge54_in_aaa(.(T202, T203), T204, X287))
less70_in_aa(0, T154) → less70_out_aa(0, T154)
less70_in_aa(s(T161), T162) → U22_aa(T161, T162, less78_in_aa(T161, T162))
U16_aaa(T139, T145, T146, T147, X226, merge54_out_aaa(T145, .(T146, T147), X226)) → merge54_out_aaa(.(T139, T145), .(T146, T147), .(T139, X226))
less78_in_aa(0, s(T169)) → less78_out_aa(0, s(T169))
less78_in_aa(s(T176), s(T177)) → U20_aa(T176, T177, less78_in_aa(T176, T177))
U19_aaa(T202, T203, T196, T204, X287, merge54_out_aaa(.(T202, T203), T204, X287)) → merge54_out_aaa(.(T202, T203), .(T196, T204), .(T196, X287))
U22_aa(T161, T162, less78_out_aa(T161, T162)) → less70_out_aa(s(T161), T162)
U20_aa(T176, T177, less78_out_aa(T176, T177)) → less78_out_aa(s(T176), s(T177))
P34_IN_AAAAAAAA → U4_AAAAAAAA(split12_in_aaaa)
U4_AAAAAAAA(split12_out_aaaa) → MS38_IN_AA
MS38_IN_AA → P34_IN_AAAAAAAA
P34_IN_AAAAAAAA → U6_AAAAAAAA(split12_in_aaaa)
U6_AAAAAAAA(split12_out_aaaa) → U7_AAAAAAAA(ms38_in_aa)
U7_AAAAAAAA(ms38_out_aa) → MS38_IN_AA
U6_AAAAAAAA(split12_out_aaaa) → MS38_IN_AA
P34_IN_AAAAAAAA → U9_AAAAAAAA(split12_in_aaaa)
U9_AAAAAAAA(split12_out_aaaa) → U10_AAAAAAAA(ms38_in_aa)
U10_AAAAAAAA(ms38_out_aa) → MS38_IN_AA
U9_AAAAAAAA(split12_out_aaaa) → MS38_IN_AA
split12_in_aaaa → U2_aaaa(split16_in_aaa)
ms38_in_aa → ms38_out_aa
ms38_in_aa → U13_aa(p34_in_aaaaaaaa)
U2_aaaa(split16_out_aaa) → split12_out_aaaa
U13_aa(p34_out_aaaaaaaa) → ms38_out_aa
split16_in_aaa → split16_out_aaa
split16_in_aaa → U1_aaa(split16_in_aaa)
p34_in_aaaaaaaa → U3_aaaaaaaa(split12_in_aaaa)
p34_in_aaaaaaaa → U4_aaaaaaaa(split12_in_aaaa)
p34_in_aaaaaaaa → U6_aaaaaaaa(split12_in_aaaa)
p34_in_aaaaaaaa → U9_aaaaaaaa(split12_in_aaaa)
U1_aaa(split16_out_aaa) → split16_out_aaa
U3_aaaaaaaa(split12_out_aaaa) → p34_out_aaaaaaaa
U4_aaaaaaaa(split12_out_aaaa) → U5_aaaaaaaa(ms38_in_aa)
U6_aaaaaaaa(split12_out_aaaa) → U7_aaaaaaaa(ms38_in_aa)
U9_aaaaaaaa(split12_out_aaaa) → U10_aaaaaaaa(ms38_in_aa)
U5_aaaaaaaa(ms38_out_aa) → p34_out_aaaaaaaa
U7_aaaaaaaa(ms38_out_aa) → U8_aaaaaaaa(ms38_in_aa)
U10_aaaaaaaa(ms38_out_aa) → U11_aaaaaaaa(ms38_in_aa)
U8_aaaaaaaa(ms38_out_aa) → p34_out_aaaaaaaa
U11_aaaaaaaa(ms38_out_aa) → U12_aaaaaaaa(merge54_in_aaa)
U12_aaaaaaaa(merge54_out_aaa) → p34_out_aaaaaaaa
merge54_in_aaa → merge54_out_aaa
merge54_in_aaa → U14_aaa(less70_in_aa)
merge54_in_aaa → U15_aaa(less70_in_aa)
merge54_in_aaa → U17_aaa(less78_in_aa)
merge54_in_aaa → U18_aaa(less78_in_aa)
U14_aaa(less70_out_aa(T139)) → merge54_out_aaa
U15_aaa(less70_out_aa(T139)) → U16_aaa(merge54_in_aaa)
U17_aaa(less78_out_aa(T196)) → merge54_out_aaa
U18_aaa(less78_out_aa(T196)) → U19_aaa(merge54_in_aaa)
less70_in_aa → less70_out_aa(0)
less70_in_aa → U22_aa(less78_in_aa)
U16_aaa(merge54_out_aaa) → merge54_out_aaa
less78_in_aa → less78_out_aa(0)
less78_in_aa → U20_aa(less78_in_aa)
U19_aaa(merge54_out_aaa) → merge54_out_aaa
U22_aa(less78_out_aa(T161)) → less70_out_aa(s(T161))
U20_aa(less78_out_aa(T176)) → less78_out_aa(s(T176))
split12_in_aaaa
ms38_in_aa
U2_aaaa(x0)
U13_aa(x0)
split16_in_aaa
p34_in_aaaaaaaa
U1_aaa(x0)
U3_aaaaaaaa(x0)
U4_aaaaaaaa(x0)
U6_aaaaaaaa(x0)
U9_aaaaaaaa(x0)
U5_aaaaaaaa(x0)
U7_aaaaaaaa(x0)
U10_aaaaaaaa(x0)
U8_aaaaaaaa(x0)
U11_aaaaaaaa(x0)
U12_aaaaaaaa(x0)
merge54_in_aaa
U14_aaa(x0)
U15_aaa(x0)
U17_aaa(x0)
U18_aaa(x0)
less70_in_aa
U16_aaa(x0)
less78_in_aa
U19_aaa(x0)
U22_aa(x0)
U20_aa(x0)
P34_IN_AAAAAAAA → U4_AAAAAAAA(U2_aaaa(split16_in_aaa))
U4_AAAAAAAA(split12_out_aaaa) → MS38_IN_AA
MS38_IN_AA → P34_IN_AAAAAAAA
P34_IN_AAAAAAAA → U6_AAAAAAAA(split12_in_aaaa)
U6_AAAAAAAA(split12_out_aaaa) → U7_AAAAAAAA(ms38_in_aa)
U7_AAAAAAAA(ms38_out_aa) → MS38_IN_AA
U6_AAAAAAAA(split12_out_aaaa) → MS38_IN_AA
P34_IN_AAAAAAAA → U9_AAAAAAAA(split12_in_aaaa)
U9_AAAAAAAA(split12_out_aaaa) → U10_AAAAAAAA(ms38_in_aa)
U10_AAAAAAAA(ms38_out_aa) → MS38_IN_AA
U9_AAAAAAAA(split12_out_aaaa) → MS38_IN_AA
P34_IN_AAAAAAAA → U4_AAAAAAAA(U2_aaaa(split16_in_aaa))
split12_in_aaaa → U2_aaaa(split16_in_aaa)
ms38_in_aa → ms38_out_aa
ms38_in_aa → U13_aa(p34_in_aaaaaaaa)
U2_aaaa(split16_out_aaa) → split12_out_aaaa
U13_aa(p34_out_aaaaaaaa) → ms38_out_aa
split16_in_aaa → split16_out_aaa
split16_in_aaa → U1_aaa(split16_in_aaa)
p34_in_aaaaaaaa → U3_aaaaaaaa(split12_in_aaaa)
p34_in_aaaaaaaa → U4_aaaaaaaa(split12_in_aaaa)
p34_in_aaaaaaaa → U6_aaaaaaaa(split12_in_aaaa)
p34_in_aaaaaaaa → U9_aaaaaaaa(split12_in_aaaa)
U1_aaa(split16_out_aaa) → split16_out_aaa
U3_aaaaaaaa(split12_out_aaaa) → p34_out_aaaaaaaa
U4_aaaaaaaa(split12_out_aaaa) → U5_aaaaaaaa(ms38_in_aa)
U6_aaaaaaaa(split12_out_aaaa) → U7_aaaaaaaa(ms38_in_aa)
U9_aaaaaaaa(split12_out_aaaa) → U10_aaaaaaaa(ms38_in_aa)
U5_aaaaaaaa(ms38_out_aa) → p34_out_aaaaaaaa
U7_aaaaaaaa(ms38_out_aa) → U8_aaaaaaaa(ms38_in_aa)
U10_aaaaaaaa(ms38_out_aa) → U11_aaaaaaaa(ms38_in_aa)
U8_aaaaaaaa(ms38_out_aa) → p34_out_aaaaaaaa
U11_aaaaaaaa(ms38_out_aa) → U12_aaaaaaaa(merge54_in_aaa)
U12_aaaaaaaa(merge54_out_aaa) → p34_out_aaaaaaaa
merge54_in_aaa → merge54_out_aaa
merge54_in_aaa → U14_aaa(less70_in_aa)
merge54_in_aaa → U15_aaa(less70_in_aa)
merge54_in_aaa → U17_aaa(less78_in_aa)
merge54_in_aaa → U18_aaa(less78_in_aa)
U14_aaa(less70_out_aa(T139)) → merge54_out_aaa
U15_aaa(less70_out_aa(T139)) → U16_aaa(merge54_in_aaa)
U17_aaa(less78_out_aa(T196)) → merge54_out_aaa
U18_aaa(less78_out_aa(T196)) → U19_aaa(merge54_in_aaa)
less70_in_aa → less70_out_aa(0)
less70_in_aa → U22_aa(less78_in_aa)
U16_aaa(merge54_out_aaa) → merge54_out_aaa
less78_in_aa → less78_out_aa(0)
less78_in_aa → U20_aa(less78_in_aa)
U19_aaa(merge54_out_aaa) → merge54_out_aaa
U22_aa(less78_out_aa(T161)) → less70_out_aa(s(T161))
U20_aa(less78_out_aa(T176)) → less78_out_aa(s(T176))
split12_in_aaaa
ms38_in_aa
U2_aaaa(x0)
U13_aa(x0)
split16_in_aaa
p34_in_aaaaaaaa
U1_aaa(x0)
U3_aaaaaaaa(x0)
U4_aaaaaaaa(x0)
U6_aaaaaaaa(x0)
U9_aaaaaaaa(x0)
U5_aaaaaaaa(x0)
U7_aaaaaaaa(x0)
U10_aaaaaaaa(x0)
U8_aaaaaaaa(x0)
U11_aaaaaaaa(x0)
U12_aaaaaaaa(x0)
merge54_in_aaa
U14_aaa(x0)
U15_aaa(x0)
U17_aaa(x0)
U18_aaa(x0)
less70_in_aa
U16_aaa(x0)
less78_in_aa
U19_aaa(x0)
U22_aa(x0)
U20_aa(x0)
P34_IN_AAAAAAAA → U6_AAAAAAAA(U2_aaaa(split16_in_aaa))
U4_AAAAAAAA(split12_out_aaaa) → MS38_IN_AA
MS38_IN_AA → P34_IN_AAAAAAAA
U6_AAAAAAAA(split12_out_aaaa) → U7_AAAAAAAA(ms38_in_aa)
U7_AAAAAAAA(ms38_out_aa) → MS38_IN_AA
U6_AAAAAAAA(split12_out_aaaa) → MS38_IN_AA
P34_IN_AAAAAAAA → U9_AAAAAAAA(split12_in_aaaa)
U9_AAAAAAAA(split12_out_aaaa) → U10_AAAAAAAA(ms38_in_aa)
U10_AAAAAAAA(ms38_out_aa) → MS38_IN_AA
U9_AAAAAAAA(split12_out_aaaa) → MS38_IN_AA
P34_IN_AAAAAAAA → U4_AAAAAAAA(U2_aaaa(split16_in_aaa))
P34_IN_AAAAAAAA → U6_AAAAAAAA(U2_aaaa(split16_in_aaa))
split12_in_aaaa → U2_aaaa(split16_in_aaa)
ms38_in_aa → ms38_out_aa
ms38_in_aa → U13_aa(p34_in_aaaaaaaa)
U2_aaaa(split16_out_aaa) → split12_out_aaaa
U13_aa(p34_out_aaaaaaaa) → ms38_out_aa
split16_in_aaa → split16_out_aaa
split16_in_aaa → U1_aaa(split16_in_aaa)
p34_in_aaaaaaaa → U3_aaaaaaaa(split12_in_aaaa)
p34_in_aaaaaaaa → U4_aaaaaaaa(split12_in_aaaa)
p34_in_aaaaaaaa → U6_aaaaaaaa(split12_in_aaaa)
p34_in_aaaaaaaa → U9_aaaaaaaa(split12_in_aaaa)
U1_aaa(split16_out_aaa) → split16_out_aaa
U3_aaaaaaaa(split12_out_aaaa) → p34_out_aaaaaaaa
U4_aaaaaaaa(split12_out_aaaa) → U5_aaaaaaaa(ms38_in_aa)
U6_aaaaaaaa(split12_out_aaaa) → U7_aaaaaaaa(ms38_in_aa)
U9_aaaaaaaa(split12_out_aaaa) → U10_aaaaaaaa(ms38_in_aa)
U5_aaaaaaaa(ms38_out_aa) → p34_out_aaaaaaaa
U7_aaaaaaaa(ms38_out_aa) → U8_aaaaaaaa(ms38_in_aa)
U10_aaaaaaaa(ms38_out_aa) → U11_aaaaaaaa(ms38_in_aa)
U8_aaaaaaaa(ms38_out_aa) → p34_out_aaaaaaaa
U11_aaaaaaaa(ms38_out_aa) → U12_aaaaaaaa(merge54_in_aaa)
U12_aaaaaaaa(merge54_out_aaa) → p34_out_aaaaaaaa
merge54_in_aaa → merge54_out_aaa
merge54_in_aaa → U14_aaa(less70_in_aa)
merge54_in_aaa → U15_aaa(less70_in_aa)
merge54_in_aaa → U17_aaa(less78_in_aa)
merge54_in_aaa → U18_aaa(less78_in_aa)
U14_aaa(less70_out_aa(T139)) → merge54_out_aaa
U15_aaa(less70_out_aa(T139)) → U16_aaa(merge54_in_aaa)
U17_aaa(less78_out_aa(T196)) → merge54_out_aaa
U18_aaa(less78_out_aa(T196)) → U19_aaa(merge54_in_aaa)
less70_in_aa → less70_out_aa(0)
less70_in_aa → U22_aa(less78_in_aa)
U16_aaa(merge54_out_aaa) → merge54_out_aaa
less78_in_aa → less78_out_aa(0)
less78_in_aa → U20_aa(less78_in_aa)
U19_aaa(merge54_out_aaa) → merge54_out_aaa
U22_aa(less78_out_aa(T161)) → less70_out_aa(s(T161))
U20_aa(less78_out_aa(T176)) → less78_out_aa(s(T176))
split12_in_aaaa
ms38_in_aa
U2_aaaa(x0)
U13_aa(x0)
split16_in_aaa
p34_in_aaaaaaaa
U1_aaa(x0)
U3_aaaaaaaa(x0)
U4_aaaaaaaa(x0)
U6_aaaaaaaa(x0)
U9_aaaaaaaa(x0)
U5_aaaaaaaa(x0)
U7_aaaaaaaa(x0)
U10_aaaaaaaa(x0)
U8_aaaaaaaa(x0)
U11_aaaaaaaa(x0)
U12_aaaaaaaa(x0)
merge54_in_aaa
U14_aaa(x0)
U15_aaa(x0)
U17_aaa(x0)
U18_aaa(x0)
less70_in_aa
U16_aaa(x0)
less78_in_aa
U19_aaa(x0)
U22_aa(x0)
U20_aa(x0)
U6_AAAAAAAA(split12_out_aaaa) → U7_AAAAAAAA(ms38_out_aa)
U6_AAAAAAAA(split12_out_aaaa) → U7_AAAAAAAA(U13_aa(p34_in_aaaaaaaa))
U4_AAAAAAAA(split12_out_aaaa) → MS38_IN_AA
MS38_IN_AA → P34_IN_AAAAAAAA
U7_AAAAAAAA(ms38_out_aa) → MS38_IN_AA
U6_AAAAAAAA(split12_out_aaaa) → MS38_IN_AA
P34_IN_AAAAAAAA → U9_AAAAAAAA(split12_in_aaaa)
U9_AAAAAAAA(split12_out_aaaa) → U10_AAAAAAAA(ms38_in_aa)
U10_AAAAAAAA(ms38_out_aa) → MS38_IN_AA
U9_AAAAAAAA(split12_out_aaaa) → MS38_IN_AA
P34_IN_AAAAAAAA → U4_AAAAAAAA(U2_aaaa(split16_in_aaa))
P34_IN_AAAAAAAA → U6_AAAAAAAA(U2_aaaa(split16_in_aaa))
U6_AAAAAAAA(split12_out_aaaa) → U7_AAAAAAAA(ms38_out_aa)
U6_AAAAAAAA(split12_out_aaaa) → U7_AAAAAAAA(U13_aa(p34_in_aaaaaaaa))
split12_in_aaaa → U2_aaaa(split16_in_aaa)
ms38_in_aa → ms38_out_aa
ms38_in_aa → U13_aa(p34_in_aaaaaaaa)
U2_aaaa(split16_out_aaa) → split12_out_aaaa
U13_aa(p34_out_aaaaaaaa) → ms38_out_aa
split16_in_aaa → split16_out_aaa
split16_in_aaa → U1_aaa(split16_in_aaa)
p34_in_aaaaaaaa → U3_aaaaaaaa(split12_in_aaaa)
p34_in_aaaaaaaa → U4_aaaaaaaa(split12_in_aaaa)
p34_in_aaaaaaaa → U6_aaaaaaaa(split12_in_aaaa)
p34_in_aaaaaaaa → U9_aaaaaaaa(split12_in_aaaa)
U1_aaa(split16_out_aaa) → split16_out_aaa
U3_aaaaaaaa(split12_out_aaaa) → p34_out_aaaaaaaa
U4_aaaaaaaa(split12_out_aaaa) → U5_aaaaaaaa(ms38_in_aa)
U6_aaaaaaaa(split12_out_aaaa) → U7_aaaaaaaa(ms38_in_aa)
U9_aaaaaaaa(split12_out_aaaa) → U10_aaaaaaaa(ms38_in_aa)
U5_aaaaaaaa(ms38_out_aa) → p34_out_aaaaaaaa
U7_aaaaaaaa(ms38_out_aa) → U8_aaaaaaaa(ms38_in_aa)
U10_aaaaaaaa(ms38_out_aa) → U11_aaaaaaaa(ms38_in_aa)
U8_aaaaaaaa(ms38_out_aa) → p34_out_aaaaaaaa
U11_aaaaaaaa(ms38_out_aa) → U12_aaaaaaaa(merge54_in_aaa)
U12_aaaaaaaa(merge54_out_aaa) → p34_out_aaaaaaaa
merge54_in_aaa → merge54_out_aaa
merge54_in_aaa → U14_aaa(less70_in_aa)
merge54_in_aaa → U15_aaa(less70_in_aa)
merge54_in_aaa → U17_aaa(less78_in_aa)
merge54_in_aaa → U18_aaa(less78_in_aa)
U14_aaa(less70_out_aa(T139)) → merge54_out_aaa
U15_aaa(less70_out_aa(T139)) → U16_aaa(merge54_in_aaa)
U17_aaa(less78_out_aa(T196)) → merge54_out_aaa
U18_aaa(less78_out_aa(T196)) → U19_aaa(merge54_in_aaa)
less70_in_aa → less70_out_aa(0)
less70_in_aa → U22_aa(less78_in_aa)
U16_aaa(merge54_out_aaa) → merge54_out_aaa
less78_in_aa → less78_out_aa(0)
less78_in_aa → U20_aa(less78_in_aa)
U19_aaa(merge54_out_aaa) → merge54_out_aaa
U22_aa(less78_out_aa(T161)) → less70_out_aa(s(T161))
U20_aa(less78_out_aa(T176)) → less78_out_aa(s(T176))
split12_in_aaaa
ms38_in_aa
U2_aaaa(x0)
U13_aa(x0)
split16_in_aaa
p34_in_aaaaaaaa
U1_aaa(x0)
U3_aaaaaaaa(x0)
U4_aaaaaaaa(x0)
U6_aaaaaaaa(x0)
U9_aaaaaaaa(x0)
U5_aaaaaaaa(x0)
U7_aaaaaaaa(x0)
U10_aaaaaaaa(x0)
U8_aaaaaaaa(x0)
U11_aaaaaaaa(x0)
U12_aaaaaaaa(x0)
merge54_in_aaa
U14_aaa(x0)
U15_aaa(x0)
U17_aaa(x0)
U18_aaa(x0)
less70_in_aa
U16_aaa(x0)
less78_in_aa
U19_aaa(x0)
U22_aa(x0)
U20_aa(x0)
P34_IN_AAAAAAAA → U9_AAAAAAAA(U2_aaaa(split16_in_aaa))
U4_AAAAAAAA(split12_out_aaaa) → MS38_IN_AA
MS38_IN_AA → P34_IN_AAAAAAAA
U7_AAAAAAAA(ms38_out_aa) → MS38_IN_AA
U6_AAAAAAAA(split12_out_aaaa) → MS38_IN_AA
U9_AAAAAAAA(split12_out_aaaa) → U10_AAAAAAAA(ms38_in_aa)
U10_AAAAAAAA(ms38_out_aa) → MS38_IN_AA
U9_AAAAAAAA(split12_out_aaaa) → MS38_IN_AA
P34_IN_AAAAAAAA → U4_AAAAAAAA(U2_aaaa(split16_in_aaa))
P34_IN_AAAAAAAA → U6_AAAAAAAA(U2_aaaa(split16_in_aaa))
U6_AAAAAAAA(split12_out_aaaa) → U7_AAAAAAAA(ms38_out_aa)
U6_AAAAAAAA(split12_out_aaaa) → U7_AAAAAAAA(U13_aa(p34_in_aaaaaaaa))
P34_IN_AAAAAAAA → U9_AAAAAAAA(U2_aaaa(split16_in_aaa))
split12_in_aaaa → U2_aaaa(split16_in_aaa)
ms38_in_aa → ms38_out_aa
ms38_in_aa → U13_aa(p34_in_aaaaaaaa)
U2_aaaa(split16_out_aaa) → split12_out_aaaa
U13_aa(p34_out_aaaaaaaa) → ms38_out_aa
split16_in_aaa → split16_out_aaa
split16_in_aaa → U1_aaa(split16_in_aaa)
p34_in_aaaaaaaa → U3_aaaaaaaa(split12_in_aaaa)
p34_in_aaaaaaaa → U4_aaaaaaaa(split12_in_aaaa)
p34_in_aaaaaaaa → U6_aaaaaaaa(split12_in_aaaa)
p34_in_aaaaaaaa → U9_aaaaaaaa(split12_in_aaaa)
U1_aaa(split16_out_aaa) → split16_out_aaa
U3_aaaaaaaa(split12_out_aaaa) → p34_out_aaaaaaaa
U4_aaaaaaaa(split12_out_aaaa) → U5_aaaaaaaa(ms38_in_aa)
U6_aaaaaaaa(split12_out_aaaa) → U7_aaaaaaaa(ms38_in_aa)
U9_aaaaaaaa(split12_out_aaaa) → U10_aaaaaaaa(ms38_in_aa)
U5_aaaaaaaa(ms38_out_aa) → p34_out_aaaaaaaa
U7_aaaaaaaa(ms38_out_aa) → U8_aaaaaaaa(ms38_in_aa)
U10_aaaaaaaa(ms38_out_aa) → U11_aaaaaaaa(ms38_in_aa)
U8_aaaaaaaa(ms38_out_aa) → p34_out_aaaaaaaa
U11_aaaaaaaa(ms38_out_aa) → U12_aaaaaaaa(merge54_in_aaa)
U12_aaaaaaaa(merge54_out_aaa) → p34_out_aaaaaaaa
merge54_in_aaa → merge54_out_aaa
merge54_in_aaa → U14_aaa(less70_in_aa)
merge54_in_aaa → U15_aaa(less70_in_aa)
merge54_in_aaa → U17_aaa(less78_in_aa)
merge54_in_aaa → U18_aaa(less78_in_aa)
U14_aaa(less70_out_aa(T139)) → merge54_out_aaa
U15_aaa(less70_out_aa(T139)) → U16_aaa(merge54_in_aaa)
U17_aaa(less78_out_aa(T196)) → merge54_out_aaa
U18_aaa(less78_out_aa(T196)) → U19_aaa(merge54_in_aaa)
less70_in_aa → less70_out_aa(0)
less70_in_aa → U22_aa(less78_in_aa)
U16_aaa(merge54_out_aaa) → merge54_out_aaa
less78_in_aa → less78_out_aa(0)
less78_in_aa → U20_aa(less78_in_aa)
U19_aaa(merge54_out_aaa) → merge54_out_aaa
U22_aa(less78_out_aa(T161)) → less70_out_aa(s(T161))
U20_aa(less78_out_aa(T176)) → less78_out_aa(s(T176))
split12_in_aaaa
ms38_in_aa
U2_aaaa(x0)
U13_aa(x0)
split16_in_aaa
p34_in_aaaaaaaa
U1_aaa(x0)
U3_aaaaaaaa(x0)
U4_aaaaaaaa(x0)
U6_aaaaaaaa(x0)
U9_aaaaaaaa(x0)
U5_aaaaaaaa(x0)
U7_aaaaaaaa(x0)
U10_aaaaaaaa(x0)
U8_aaaaaaaa(x0)
U11_aaaaaaaa(x0)
U12_aaaaaaaa(x0)
merge54_in_aaa
U14_aaa(x0)
U15_aaa(x0)
U17_aaa(x0)
U18_aaa(x0)
less70_in_aa
U16_aaa(x0)
less78_in_aa
U19_aaa(x0)
U22_aa(x0)
U20_aa(x0)
U9_AAAAAAAA(split12_out_aaaa) → U10_AAAAAAAA(ms38_out_aa)
U9_AAAAAAAA(split12_out_aaaa) → U10_AAAAAAAA(U13_aa(p34_in_aaaaaaaa))
U4_AAAAAAAA(split12_out_aaaa) → MS38_IN_AA
MS38_IN_AA → P34_IN_AAAAAAAA
U7_AAAAAAAA(ms38_out_aa) → MS38_IN_AA
U6_AAAAAAAA(split12_out_aaaa) → MS38_IN_AA
U10_AAAAAAAA(ms38_out_aa) → MS38_IN_AA
U9_AAAAAAAA(split12_out_aaaa) → MS38_IN_AA
P34_IN_AAAAAAAA → U4_AAAAAAAA(U2_aaaa(split16_in_aaa))
P34_IN_AAAAAAAA → U6_AAAAAAAA(U2_aaaa(split16_in_aaa))
U6_AAAAAAAA(split12_out_aaaa) → U7_AAAAAAAA(ms38_out_aa)
U6_AAAAAAAA(split12_out_aaaa) → U7_AAAAAAAA(U13_aa(p34_in_aaaaaaaa))
P34_IN_AAAAAAAA → U9_AAAAAAAA(U2_aaaa(split16_in_aaa))
U9_AAAAAAAA(split12_out_aaaa) → U10_AAAAAAAA(ms38_out_aa)
U9_AAAAAAAA(split12_out_aaaa) → U10_AAAAAAAA(U13_aa(p34_in_aaaaaaaa))
split12_in_aaaa → U2_aaaa(split16_in_aaa)
ms38_in_aa → ms38_out_aa
ms38_in_aa → U13_aa(p34_in_aaaaaaaa)
U2_aaaa(split16_out_aaa) → split12_out_aaaa
U13_aa(p34_out_aaaaaaaa) → ms38_out_aa
split16_in_aaa → split16_out_aaa
split16_in_aaa → U1_aaa(split16_in_aaa)
p34_in_aaaaaaaa → U3_aaaaaaaa(split12_in_aaaa)
p34_in_aaaaaaaa → U4_aaaaaaaa(split12_in_aaaa)
p34_in_aaaaaaaa → U6_aaaaaaaa(split12_in_aaaa)
p34_in_aaaaaaaa → U9_aaaaaaaa(split12_in_aaaa)
U1_aaa(split16_out_aaa) → split16_out_aaa
U3_aaaaaaaa(split12_out_aaaa) → p34_out_aaaaaaaa
U4_aaaaaaaa(split12_out_aaaa) → U5_aaaaaaaa(ms38_in_aa)
U6_aaaaaaaa(split12_out_aaaa) → U7_aaaaaaaa(ms38_in_aa)
U9_aaaaaaaa(split12_out_aaaa) → U10_aaaaaaaa(ms38_in_aa)
U5_aaaaaaaa(ms38_out_aa) → p34_out_aaaaaaaa
U7_aaaaaaaa(ms38_out_aa) → U8_aaaaaaaa(ms38_in_aa)
U10_aaaaaaaa(ms38_out_aa) → U11_aaaaaaaa(ms38_in_aa)
U8_aaaaaaaa(ms38_out_aa) → p34_out_aaaaaaaa
U11_aaaaaaaa(ms38_out_aa) → U12_aaaaaaaa(merge54_in_aaa)
U12_aaaaaaaa(merge54_out_aaa) → p34_out_aaaaaaaa
merge54_in_aaa → merge54_out_aaa
merge54_in_aaa → U14_aaa(less70_in_aa)
merge54_in_aaa → U15_aaa(less70_in_aa)
merge54_in_aaa → U17_aaa(less78_in_aa)
merge54_in_aaa → U18_aaa(less78_in_aa)
U14_aaa(less70_out_aa(T139)) → merge54_out_aaa
U15_aaa(less70_out_aa(T139)) → U16_aaa(merge54_in_aaa)
U17_aaa(less78_out_aa(T196)) → merge54_out_aaa
U18_aaa(less78_out_aa(T196)) → U19_aaa(merge54_in_aaa)
less70_in_aa → less70_out_aa(0)
less70_in_aa → U22_aa(less78_in_aa)
U16_aaa(merge54_out_aaa) → merge54_out_aaa
less78_in_aa → less78_out_aa(0)
less78_in_aa → U20_aa(less78_in_aa)
U19_aaa(merge54_out_aaa) → merge54_out_aaa
U22_aa(less78_out_aa(T161)) → less70_out_aa(s(T161))
U20_aa(less78_out_aa(T176)) → less78_out_aa(s(T176))
split12_in_aaaa
ms38_in_aa
U2_aaaa(x0)
U13_aa(x0)
split16_in_aaa
p34_in_aaaaaaaa
U1_aaa(x0)
U3_aaaaaaaa(x0)
U4_aaaaaaaa(x0)
U6_aaaaaaaa(x0)
U9_aaaaaaaa(x0)
U5_aaaaaaaa(x0)
U7_aaaaaaaa(x0)
U10_aaaaaaaa(x0)
U8_aaaaaaaa(x0)
U11_aaaaaaaa(x0)
U12_aaaaaaaa(x0)
merge54_in_aaa
U14_aaa(x0)
U15_aaa(x0)
U17_aaa(x0)
U18_aaa(x0)
less70_in_aa
U16_aaa(x0)
less78_in_aa
U19_aaa(x0)
U22_aa(x0)
U20_aa(x0)
ms1_in_ag([], []) → ms1_out_ag([], [])
ms1_in_ag(.(T29, .(T27, T28)), []) → U35_ag(T29, T27, T28, split12_in_aaaa(T27, T28, X42, X41))
split12_in_aaaa(T42, T44, .(T42, X71), X72) → U2_aaaa(T42, T44, X71, X72, split16_in_aaa(T44, X72, X71))
split16_in_aaa([], [], []) → split16_out_aaa([], [], [])
split16_in_aaa(.(T49, T51), .(T49, X89), X90) → U1_aaa(T49, T51, X89, X90, split16_in_aaa(T51, X90, X89))
U1_aaa(T49, T51, X89, X90, split16_out_aaa(T51, X90, X89)) → split16_out_aaa(.(T49, T51), .(T49, X89), X90)
U2_aaaa(T42, T44, X71, X72, split16_out_aaa(T44, X72, X71)) → split12_out_aaaa(T42, T44, .(T42, X71), X72)
U35_ag(T29, T27, T28, split12_out_aaaa(T27, T28, X42, X41)) → ms1_out_ag(.(T29, .(T27, T28)), [])
ms1_in_ag(.(T34, .(T27, T28)), []) → U36_ag(T34, T27, T28, split12_in_aaaa(T27, T28, T32, T33))
U36_ag(T34, T27, T28, split12_out_aaaa(T27, T28, T32, T33)) → U37_ag(T34, T27, T28, ms25_in_aaa(T34, T33, X13))
ms25_in_aaa(T62, [], .(T62, [])) → ms25_out_aaa(T62, [], .(T62, []))
ms25_in_aaa(T72, .(T73, T74), X127) → U21_aaa(T72, T73, T74, X127, p34_in_aaaaaaaa(T72, T73, T74, X123, X124, X125, X126, X127))
p34_in_aaaaaaaa(T72, T73, T74, X123, X124, X125, X126, X127) → U3_aaaaaaaa(T72, T73, T74, X123, X124, X125, X126, X127, split12_in_aaaa(T72, .(T73, T74), X123, X124))
U3_aaaaaaaa(T72, T73, T74, X123, X124, X125, X126, X127, split12_out_aaaa(T72, .(T73, T74), X123, X124)) → p34_out_aaaaaaaa(T72, T73, T74, X123, X124, X125, X126, X127)
p34_in_aaaaaaaa(T72, T73, T74, T78, T79, X125, X126, X127) → U4_aaaaaaaa(T72, T73, T74, T78, T79, X125, X126, X127, split12_in_aaaa(T72, .(T73, T74), T78, T79))
U4_aaaaaaaa(T72, T73, T74, T78, T79, X125, X126, X127, split12_out_aaaa(T72, .(T73, T74), T78, T79)) → U5_aaaaaaaa(T72, T73, T74, T78, T79, X125, X126, X127, ms38_in_aa(T78, X125))
ms38_in_aa([], []) → ms38_out_aa([], [])
ms38_in_aa(.(T89, []), .(T89, [])) → ms38_out_aa(.(T89, []), .(T89, []))
ms38_in_aa(.(T99, .(T100, T101)), X172) → U13_aa(T99, T100, T101, X172, p34_in_aaaaaaaa(T99, T100, T101, X168, X169, X170, X171, X172))
p34_in_aaaaaaaa(T72, T73, T74, T78, T84, T83, X126, X127) → U6_aaaaaaaa(T72, T73, T74, T78, T84, T83, X126, X127, split12_in_aaaa(T72, .(T73, T74), T78, T84))
U6_aaaaaaaa(T72, T73, T74, T78, T84, T83, X126, X127, split12_out_aaaa(T72, .(T73, T74), T78, T84)) → U7_aaaaaaaa(T72, T73, T74, T78, T84, T83, X126, X127, ms38_in_aa(T78, T83))
U7_aaaaaaaa(T72, T73, T74, T78, T84, T83, X126, X127, ms38_out_aa(T78, T83)) → U8_aaaaaaaa(T72, T73, T74, T78, T84, T83, X126, X127, ms38_in_aa(T84, X126))
U8_aaaaaaaa(T72, T73, T74, T78, T84, T83, X126, X127, ms38_out_aa(T84, X126)) → p34_out_aaaaaaaa(T72, T73, T74, T78, T84, T83, X126, X127)
p34_in_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127) → U9_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127, split12_in_aaaa(T72, .(T73, T74), T78, T84))
U9_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127, split12_out_aaaa(T72, .(T73, T74), T78, T84)) → U10_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127, ms38_in_aa(T78, T106))
U10_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127, ms38_out_aa(T78, T106)) → U11_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127, ms38_in_aa(T84, T105))
U11_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127, ms38_out_aa(T84, T105)) → U12_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127, merge54_in_aaa(T106, T105, X127))
merge54_in_aaa([], T113, T113) → merge54_out_aaa([], T113, T113)
merge54_in_aaa(T118, [], T118) → merge54_out_aaa(T118, [], T118)
merge54_in_aaa(.(T139, T141), .(T140, T142), .(T139, X226)) → U14_aaa(T139, T141, T140, T142, X226, less70_in_aa(T139, T140))
less70_in_aa(0, T154) → less70_out_aa(0, T154)
less70_in_aa(s(T161), T162) → U22_aa(T161, T162, less78_in_aa(T161, T162))
less78_in_aa(0, s(T169)) → less78_out_aa(0, s(T169))
less78_in_aa(s(T176), s(T177)) → U20_aa(T176, T177, less78_in_aa(T176, T177))
U20_aa(T176, T177, less78_out_aa(T176, T177)) → less78_out_aa(s(T176), s(T177))
U22_aa(T161, T162, less78_out_aa(T161, T162)) → less70_out_aa(s(T161), T162)
U14_aaa(T139, T141, T140, T142, X226, less70_out_aa(T139, T140)) → merge54_out_aaa(.(T139, T141), .(T140, T142), .(T139, X226))
merge54_in_aaa(.(T139, T145), .(T146, T147), .(T139, X226)) → U15_aaa(T139, T145, T146, T147, X226, less70_in_aa(T139, T146))
U15_aaa(T139, T145, T146, T147, X226, less70_out_aa(T139, T146)) → U16_aaa(T139, T145, T146, T147, X226, merge54_in_aaa(T145, .(T146, T147), X226))
merge54_in_aaa(.(T197, T199), .(T196, T198), .(T196, X287)) → U17_aaa(T197, T199, T196, T198, X287, less78_in_aa(T196, T197))
U17_aaa(T197, T199, T196, T198, X287, less78_out_aa(T196, T197)) → merge54_out_aaa(.(T197, T199), .(T196, T198), .(T196, X287))
merge54_in_aaa(.(T202, T203), .(T196, T204), .(T196, X287)) → U18_aaa(T202, T203, T196, T204, X287, less78_in_aa(T196, T202))
U18_aaa(T202, T203, T196, T204, X287, less78_out_aa(T196, T202)) → U19_aaa(T202, T203, T196, T204, X287, merge54_in_aaa(.(T202, T203), T204, X287))
U19_aaa(T202, T203, T196, T204, X287, merge54_out_aaa(.(T202, T203), T204, X287)) → merge54_out_aaa(.(T202, T203), .(T196, T204), .(T196, X287))
U16_aaa(T139, T145, T146, T147, X226, merge54_out_aaa(T145, .(T146, T147), X226)) → merge54_out_aaa(.(T139, T145), .(T146, T147), .(T139, X226))
U12_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127, merge54_out_aaa(T106, T105, X127)) → p34_out_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127)
U13_aa(T99, T100, T101, X172, p34_out_aaaaaaaa(T99, T100, T101, X168, X169, X170, X171, X172)) → ms38_out_aa(.(T99, .(T100, T101)), X172)
U5_aaaaaaaa(T72, T73, T74, T78, T79, X125, X126, X127, ms38_out_aa(T78, X125)) → p34_out_aaaaaaaa(T72, T73, T74, T78, T79, X125, X126, X127)
U21_aaa(T72, T73, T74, X127, p34_out_aaaaaaaa(T72, T73, T74, X123, X124, X125, X126, X127)) → ms25_out_aaa(T72, .(T73, T74), X127)
U37_ag(T34, T27, T28, ms25_out_aaa(T34, T33, X13)) → ms1_out_ag(.(T34, .(T27, T28)), [])
ms1_in_ag(.(T34, .(T27, T28)), []) → U38_ag(T34, T27, T28, split12_in_aaaa(T27, T28, T55, T33))
U38_ag(T34, T27, T28, split12_out_aaaa(T27, T28, T55, T33)) → U39_ag(T34, T27, T28, T55, ms25_in_aaa(T34, T33, T54))
U39_ag(T34, T27, T28, T55, ms25_out_aaa(T34, T33, T54)) → U40_ag(T34, T27, T28, ms38_in_aa(T55, X14))
U40_ag(T34, T27, T28, ms38_out_aa(T55, X14)) → ms1_out_ag(.(T34, .(T27, T28)), [])
U38_ag(T34, T27, T28, split12_out_aaaa(T27, T28, T55, T33)) → U41_ag(T34, T27, T28, T55, ms25_in_aaa(T34, T33, T212))
U41_ag(T34, T27, T28, T55, ms25_out_aaa(T34, T33, T212)) → U42_ag(T34, T27, T28, T212, ms38_in_aa(T55, T211))
U42_ag(T34, T27, T28, T212, ms38_out_aa(T55, T211)) → U43_ag(T34, T27, T28, merge93_in_aa(T212, T211))
merge93_in_aa([], []) → merge93_out_aa([], [])
U43_ag(T34, T27, T28, merge93_out_aa(T212, T211)) → ms1_out_ag(.(T34, .(T27, T28)), [])
ms1_in_ag(.(T234, []), .(T234, [])) → ms1_out_ag(.(T234, []), .(T234, []))
ms1_in_ag(.(T262, .(T260, T261)), .(T242, [])) → U44_ag(T262, T260, T261, T242, split12_in_aaaa(T260, T261, X367, X366))
U44_ag(T262, T260, T261, T242, split12_out_aaaa(T260, T261, X367, X366)) → ms1_out_ag(.(T262, .(T260, T261)), .(T242, []))
ms1_in_ag(.(T267, .(T260, T261)), .(T242, [])) → U45_ag(T267, T260, T261, T242, split12_in_aaaa(T260, T261, T265, T266))
U45_ag(T267, T260, T261, T242, split12_out_aaaa(T260, T261, T265, T266)) → U46_ag(T267, T260, T261, T242, ms25_in_aaa(T267, T266, X338))
U46_ag(T267, T260, T261, T242, ms25_out_aaa(T267, T266, X338)) → ms1_out_ag(.(T267, .(T260, T261)), .(T242, []))
ms1_in_ag(.(T267, .(T260, T261)), .(T242, [])) → U47_ag(T267, T260, T261, T242, split12_in_aaaa(T260, T261, T273, T266))
U47_ag(T267, T260, T261, T242, split12_out_aaaa(T260, T261, T273, T266)) → U48_ag(T267, T260, T261, T242, T273, ms25_in_aaa(T267, T266, T272))
U48_ag(T267, T260, T261, T242, T273, ms25_out_aaa(T267, T266, T272)) → U49_ag(T267, T260, T261, T242, ms38_in_aa(T273, X339))
U49_ag(T267, T260, T261, T242, ms38_out_aa(T273, X339)) → ms1_out_ag(.(T267, .(T260, T261)), .(T242, []))
ms1_in_ag(.(T267, .(T260, T261)), .(T291, [])) → U50_ag(T267, T260, T261, T291, split12_in_aaaa(T260, T261, T273, T266))
U50_ag(T267, T260, T261, T291, split12_out_aaaa(T260, T261, T273, T266)) → U51_ag(T267, T260, T261, T291, T273, ms25_in_aag(T267, T266, []))
ms25_in_aag(T62, [], .(T62, [])) → ms25_out_aag(T62, [], .(T62, []))
ms25_in_aag(T72, .(T73, T74), X127) → U21_aag(T72, T73, T74, X127, p34_in_aaaaaaag(T72, T73, T74, X123, X124, X125, X126, X127))
p34_in_aaaaaaag(T72, T73, T74, X123, X124, X125, X126, X127) → U3_aaaaaaag(T72, T73, T74, X123, X124, X125, X126, X127, split12_in_aaaa(T72, .(T73, T74), X123, X124))
U3_aaaaaaag(T72, T73, T74, X123, X124, X125, X126, X127, split12_out_aaaa(T72, .(T73, T74), X123, X124)) → p34_out_aaaaaaag(T72, T73, T74, X123, X124, X125, X126, X127)
p34_in_aaaaaaag(T72, T73, T74, T78, T79, X125, X126, X127) → U4_aaaaaaag(T72, T73, T74, T78, T79, X125, X126, X127, split12_in_aaaa(T72, .(T73, T74), T78, T79))
U4_aaaaaaag(T72, T73, T74, T78, T79, X125, X126, X127, split12_out_aaaa(T72, .(T73, T74), T78, T79)) → U5_aaaaaaag(T72, T73, T74, T78, T79, X125, X126, X127, ms38_in_aa(T78, X125))
U5_aaaaaaag(T72, T73, T74, T78, T79, X125, X126, X127, ms38_out_aa(T78, X125)) → p34_out_aaaaaaag(T72, T73, T74, T78, T79, X125, X126, X127)
p34_in_aaaaaaag(T72, T73, T74, T78, T84, T83, X126, X127) → U6_aaaaaaag(T72, T73, T74, T78, T84, T83, X126, X127, split12_in_aaaa(T72, .(T73, T74), T78, T84))
U6_aaaaaaag(T72, T73, T74, T78, T84, T83, X126, X127, split12_out_aaaa(T72, .(T73, T74), T78, T84)) → U7_aaaaaaag(T72, T73, T74, T78, T84, T83, X126, X127, ms38_in_aa(T78, T83))
U7_aaaaaaag(T72, T73, T74, T78, T84, T83, X126, X127, ms38_out_aa(T78, T83)) → U8_aaaaaaag(T72, T73, T74, T78, T84, T83, X126, X127, ms38_in_aa(T84, X126))
U8_aaaaaaag(T72, T73, T74, T78, T84, T83, X126, X127, ms38_out_aa(T84, X126)) → p34_out_aaaaaaag(T72, T73, T74, T78, T84, T83, X126, X127)
p34_in_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127) → U9_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127, split12_in_aaaa(T72, .(T73, T74), T78, T84))
U9_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127, split12_out_aaaa(T72, .(T73, T74), T78, T84)) → U10_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127, ms38_in_aa(T78, T106))
U10_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127, ms38_out_aa(T78, T106)) → U11_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127, ms38_in_aa(T84, T105))
U11_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127, ms38_out_aa(T84, T105)) → U12_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127, merge54_in_aag(T106, T105, X127))
merge54_in_aag([], T113, T113) → merge54_out_aag([], T113, T113)
merge54_in_aag(T118, [], T118) → merge54_out_aag(T118, [], T118)
merge54_in_aag(.(T139, T141), .(T140, T142), .(T139, X226)) → U14_aag(T139, T141, T140, T142, X226, less70_in_ga(T139, T140))
less70_in_ga(0, T154) → less70_out_ga(0, T154)
less70_in_ga(s(T161), T162) → U22_ga(T161, T162, less78_in_ga(T161, T162))
less78_in_ga(0, s(T169)) → less78_out_ga(0, s(T169))
less78_in_ga(s(T176), s(T177)) → U20_ga(T176, T177, less78_in_ga(T176, T177))
U20_ga(T176, T177, less78_out_ga(T176, T177)) → less78_out_ga(s(T176), s(T177))
U22_ga(T161, T162, less78_out_ga(T161, T162)) → less70_out_ga(s(T161), T162)
U14_aag(T139, T141, T140, T142, X226, less70_out_ga(T139, T140)) → merge54_out_aag(.(T139, T141), .(T140, T142), .(T139, X226))
merge54_in_aag(.(T139, T145), .(T146, T147), .(T139, X226)) → U15_aag(T139, T145, T146, T147, X226, less70_in_ga(T139, T146))
U15_aag(T139, T145, T146, T147, X226, less70_out_ga(T139, T146)) → U16_aag(T139, T145, T146, T147, X226, merge54_in_aag(T145, .(T146, T147), X226))
merge54_in_aag(.(T197, T199), .(T196, T198), .(T196, X287)) → U17_aag(T197, T199, T196, T198, X287, less78_in_ga(T196, T197))
U17_aag(T197, T199, T196, T198, X287, less78_out_ga(T196, T197)) → merge54_out_aag(.(T197, T199), .(T196, T198), .(T196, X287))
merge54_in_aag(.(T202, T203), .(T196, T204), .(T196, X287)) → U18_aag(T202, T203, T196, T204, X287, less78_in_ga(T196, T202))
U18_aag(T202, T203, T196, T204, X287, less78_out_ga(T196, T202)) → U19_aag(T202, T203, T196, T204, X287, merge54_in_aag(.(T202, T203), T204, X287))
U19_aag(T202, T203, T196, T204, X287, merge54_out_aag(.(T202, T203), T204, X287)) → merge54_out_aag(.(T202, T203), .(T196, T204), .(T196, X287))
U16_aag(T139, T145, T146, T147, X226, merge54_out_aag(T145, .(T146, T147), X226)) → merge54_out_aag(.(T139, T145), .(T146, T147), .(T139, X226))
U12_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127, merge54_out_aag(T106, T105, X127)) → p34_out_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127)
U21_aag(T72, T73, T74, X127, p34_out_aaaaaaag(T72, T73, T74, X123, X124, X125, X126, X127)) → ms25_out_aag(T72, .(T73, T74), X127)
U51_ag(T267, T260, T261, T291, T273, ms25_out_aag(T267, T266, [])) → U52_ag(T267, T260, T261, T291, ms38_in_ag(T273, .(T291, [])))
ms38_in_ag([], []) → ms38_out_ag([], [])
ms38_in_ag(.(T89, []), .(T89, [])) → ms38_out_ag(.(T89, []), .(T89, []))
ms38_in_ag(.(T99, .(T100, T101)), X172) → U13_ag(T99, T100, T101, X172, p34_in_aaaaaaag(T99, T100, T101, X168, X169, X170, X171, X172))
U13_ag(T99, T100, T101, X172, p34_out_aaaaaaag(T99, T100, T101, X168, X169, X170, X171, X172)) → ms38_out_ag(.(T99, .(T100, T101)), X172)
U52_ag(T267, T260, T261, T291, ms38_out_ag(T273, .(T291, []))) → ms1_out_ag(.(T267, .(T260, T261)), .(T291, []))
ms1_in_ag(.(T267, .(T260, T261)), .(T301, [])) → U53_ag(T267, T260, T261, T301, split12_in_aaaa(T260, T261, T273, T266))
U53_ag(T267, T260, T261, T301, split12_out_aaaa(T260, T261, T273, T266)) → U54_ag(T267, T260, T261, T301, T273, ms25_in_aag(T267, T266, .(T301, [])))
U54_ag(T267, T260, T261, T301, T273, ms25_out_aag(T267, T266, .(T301, []))) → U55_ag(T267, T260, T261, T301, ms38_in_ag(T273, []))
U55_ag(T267, T260, T261, T301, ms38_out_ag(T273, [])) → ms1_out_ag(.(T267, .(T260, T261)), .(T301, []))
ms1_in_ag(.(T267, .(T260, T261)), .(T318, [])) → U56_ag(T267, T260, T261, T318, split12_in_aaaa(T260, T261, T273, T266))
U56_ag(T267, T260, T261, T318, split12_out_aaaa(T260, T261, T273, T266)) → U57_ag(T267, T260, T261, T318, T273, ms25_in_aaa(T267, T266, .(T318, T323)))
U57_ag(T267, T260, T261, T318, T273, ms25_out_aaa(T267, T266, .(T318, T323))) → U58_ag(T267, T260, T261, T318, ms38_in_aa(T273, .(T322, T324)))
U58_ag(T267, T260, T261, T318, ms38_out_aa(T273, .(T322, T324))) → U59_ag(T267, T260, T261, T318, less70_in_ga(T318, T322))
U59_ag(T267, T260, T261, T318, less70_out_ga(T318, T322)) → ms1_out_ag(.(T267, .(T260, T261)), .(T318, []))
U56_ag(T267, T260, T261, T318, split12_out_aaaa(T260, T261, T273, T266)) → U60_ag(T267, T260, T261, T318, T273, ms25_in_aaa(T267, T266, .(T318, T327)))
U60_ag(T267, T260, T261, T318, T273, ms25_out_aaa(T267, T266, .(T318, T327))) → U61_ag(T267, T260, T261, T318, T327, ms38_in_aa(T273, .(T328, T329)))
U61_ag(T267, T260, T261, T318, T327, ms38_out_aa(T273, .(T328, T329))) → U62_ag(T267, T260, T261, T318, T327, T328, T329, less70_in_ga(T318, T328))
U62_ag(T267, T260, T261, T318, T327, T328, T329, less70_out_ga(T318, T328)) → U63_ag(T267, T260, T261, T318, merge93_in_aa(T327, .(T328, T329)))
U63_ag(T267, T260, T261, T318, merge93_out_aa(T327, .(T328, T329))) → ms1_out_ag(.(T267, .(T260, T261)), .(T318, []))
ms1_in_ag(.(T267, .(T260, T261)), .(T356, [])) → U64_ag(T267, T260, T261, T356, split12_in_aaaa(T260, T261, T273, T266))
U64_ag(T267, T260, T261, T356, split12_out_aaaa(T260, T261, T273, T266)) → U65_ag(T267, T260, T261, T356, T273, ms25_in_aaa(T267, T266, .(T358, T360)))
U65_ag(T267, T260, T261, T356, T273, ms25_out_aaa(T267, T266, .(T358, T360))) → U66_ag(T267, T260, T261, T356, T358, ms38_in_aa(T273, .(T356, T359)))
U66_ag(T267, T260, T261, T356, T358, ms38_out_aa(T273, .(T356, T359))) → U67_ag(T267, T260, T261, T356, less78_in_ga(T356, T358))
U67_ag(T267, T260, T261, T356, less78_out_ga(T356, T358)) → ms1_out_ag(.(T267, .(T260, T261)), .(T356, []))
U64_ag(T267, T260, T261, T356, split12_out_aaaa(T260, T261, T273, T266)) → U68_ag(T267, T260, T261, T356, T273, ms25_in_aaa(T267, T266, .(T363, T364)))
U68_ag(T267, T260, T261, T356, T273, ms25_out_aaa(T267, T266, .(T363, T364))) → U69_ag(T267, T260, T261, T356, T363, T364, ms38_in_aa(T273, .(T356, T365)))
U69_ag(T267, T260, T261, T356, T363, T364, ms38_out_aa(T273, .(T356, T365))) → U70_ag(T267, T260, T261, T356, T363, T364, T365, less78_in_ga(T356, T363))
U70_ag(T267, T260, T261, T356, T363, T364, T365, less78_out_ga(T356, T363)) → U71_ag(T267, T260, T261, T356, merge93_in_aa(.(T363, T364), T365))
U71_ag(T267, T260, T261, T356, merge93_out_aa(.(T363, T364), T365)) → ms1_out_ag(.(T267, .(T260, T261)), .(T356, []))
ms1_in_ag(.(T407, .(T405, T406)), T387) → U72_ag(T407, T405, T406, T387, split12_in_aaaa(T405, T406, X523, X522))
U72_ag(T407, T405, T406, T387, split12_out_aaaa(T405, T406, X523, X522)) → ms1_out_ag(.(T407, .(T405, T406)), T387)
ms1_in_ag(.(T412, .(T405, T406)), T387) → U73_ag(T412, T405, T406, T387, split12_in_aaaa(T405, T406, T410, T411))
U73_ag(T412, T405, T406, T387, split12_out_aaaa(T405, T406, T410, T411)) → U74_ag(T412, T405, T406, T387, ms25_in_aaa(T412, T411, X494))
U74_ag(T412, T405, T406, T387, ms25_out_aaa(T412, T411, X494)) → ms1_out_ag(.(T412, .(T405, T406)), T387)
ms1_in_ag(.(T412, .(T405, T406)), T387) → U75_ag(T412, T405, T406, T387, split12_in_aaaa(T405, T406, T420, T411))
U75_ag(T412, T405, T406, T387, split12_out_aaaa(T405, T406, T420, T411)) → U76_ag(T412, T405, T406, T387, T420, ms25_in_aaa(T412, T411, T419))
U76_ag(T412, T405, T406, T387, T420, ms25_out_aaa(T412, T411, T419)) → U77_ag(T412, T405, T406, T387, ms38_in_aa(T420, X495))
U77_ag(T412, T405, T406, T387, ms38_out_aa(T420, X495)) → ms1_out_ag(.(T412, .(T405, T406)), T387)
ms1_in_ag(.(T412, .(T405, T406)), T435) → U78_ag(T412, T405, T406, T435, split12_in_aaaa(T405, T406, T420, T411))
U78_ag(T412, T405, T406, T435, split12_out_aaaa(T405, T406, T420, T411)) → U79_ag(T412, T405, T406, T435, T420, ms25_in_aag(T412, T411, []))
U79_ag(T412, T405, T406, T435, T420, ms25_out_aag(T412, T411, [])) → U80_ag(T412, T405, T406, T435, ms38_in_ag(T420, T435))
U80_ag(T412, T405, T406, T435, ms38_out_ag(T420, T435)) → ms1_out_ag(.(T412, .(T405, T406)), T435)
ms1_in_ag(.(T412, .(T405, T406)), T440) → U81_ag(T412, T405, T406, T440, split12_in_aaaa(T405, T406, T420, T411))
U81_ag(T412, T405, T406, T440, split12_out_aaaa(T405, T406, T420, T411)) → U82_ag(T412, T405, T406, T440, T420, ms25_in_aag(T412, T411, T440))
U82_ag(T412, T405, T406, T440, T420, ms25_out_aag(T412, T411, T440)) → U83_ag(T412, T405, T406, T440, ms38_in_ag(T420, []))
U83_ag(T412, T405, T406, T440, ms38_out_ag(T420, [])) → ms1_out_ag(.(T412, .(T405, T406)), T440)
ms1_in_ag(.(T412, .(T405, T406)), .(T461, T465)) → U84_ag(T412, T405, T406, T461, T465, split12_in_aaaa(T405, T406, T420, T411))
U84_ag(T412, T405, T406, T461, T465, split12_out_aaaa(T405, T406, T420, T411)) → U85_ag(T412, T405, T406, T461, T465, T420, ms25_in_aaa(T412, T411, .(T461, T467)))
U85_ag(T412, T405, T406, T461, T465, T420, ms25_out_aaa(T412, T411, .(T461, T467))) → U86_ag(T412, T405, T406, T461, T465, ms38_in_aa(T420, .(T466, T468)))
U86_ag(T412, T405, T406, T461, T465, ms38_out_aa(T420, .(T466, T468))) → U87_ag(T412, T405, T406, T461, T465, less70_in_ga(T461, T466))
U87_ag(T412, T405, T406, T461, T465, less70_out_ga(T461, T466)) → ms1_out_ag(.(T412, .(T405, T406)), .(T461, T465))
ms1_in_ag(.(T412, .(T405, T406)), .(T461, .(T490, T491))) → U88_ag(T412, T405, T406, T461, T490, T491, split12_in_aaaa(T405, T406, T420, T411))
U88_ag(T412, T405, T406, T461, T490, T491, split12_out_aaaa(T405, T406, T420, T411)) → U89_ag(T412, T405, T406, T461, T490, T491, T420, ms25_in_aag(T412, T411, .(T461, [])))
U89_ag(T412, T405, T406, T461, T490, T491, T420, ms25_out_aag(T412, T411, .(T461, []))) → U90_ag(T412, T405, T406, T461, T490, T491, ms38_in_ag(T420, .(T490, T491)))
U90_ag(T412, T405, T406, T461, T490, T491, ms38_out_ag(T420, .(T490, T491))) → U91_ag(T412, T405, T406, T461, T490, T491, less70_in_gg(T461, T490))
less70_in_gg(0, T154) → less70_out_gg(0, T154)
less70_in_gg(s(T161), T162) → U22_gg(T161, T162, less78_in_gg(T161, T162))
less78_in_gg(0, s(T169)) → less78_out_gg(0, s(T169))
less78_in_gg(s(T176), s(T177)) → U20_gg(T176, T177, less78_in_gg(T176, T177))
U20_gg(T176, T177, less78_out_gg(T176, T177)) → less78_out_gg(s(T176), s(T177))
U22_gg(T161, T162, less78_out_gg(T161, T162)) → less70_out_gg(s(T161), T162)
U91_ag(T412, T405, T406, T461, T490, T491, less70_out_gg(T461, T490)) → ms1_out_ag(.(T412, .(T405, T406)), .(T461, .(T490, T491)))
ms1_in_ag(.(T412, .(T405, T406)), .(T461, .(T513, T517))) → U92_ag(T412, T405, T406, T461, T513, T517, split12_in_aaaa(T405, T406, T420, T411))
U92_ag(T412, T405, T406, T461, T513, T517, split12_out_aaaa(T405, T406, T420, T411)) → U93_ag(T412, T405, T406, T461, T513, T517, T420, ms25_in_aaa(T412, T411, .(T461, .(T513, T519))))
U93_ag(T412, T405, T406, T461, T513, T517, T420, ms25_out_aaa(T412, T411, .(T461, .(T513, T519)))) → U94_ag(T412, T405, T406, T461, T513, T517, T519, ms38_in_aa(T420, .(T518, T520)))
U94_ag(T412, T405, T406, T461, T513, T517, T519, ms38_out_aa(T420, .(T518, T520))) → U95_ag(T412, T405, T406, T461, T513, T517, T519, T518, T520, less70_in_ga(T461, T518))
U95_ag(T412, T405, T406, T461, T513, T517, T519, T518, T520, less70_out_ga(T461, T518)) → U96_ag(T412, T405, T406, T461, T513, T517, p179_in_gaaag(T513, T518, T519, T520, T517))
p179_in_gaaag(T513, T518, T519, T520, T517) → U23_gaaag(T513, T518, T519, T520, T517, less70_in_ga(T513, T518))
U23_gaaag(T513, T518, T519, T520, T517, less70_out_ga(T513, T518)) → p179_out_gaaag(T513, T518, T519, T520, T517)
p179_in_gaaag(T513, T540, [], T541, .(T540, T541)) → U24_gaaag(T513, T540, T541, less70_in_gg(T513, T540))
U24_gaaag(T513, T540, T541, less70_out_gg(T513, T540)) → p179_out_gaaag(T513, T540, [], T541, .(T540, T541))
p179_in_gaaag(T513, T568, .(T563, T569), T570, .(T563, T567)) → U25_gaaag(T513, T568, T563, T569, T570, T567, less70_in_ga(T513, T568))
U25_gaaag(T513, T568, T563, T569, T570, T567, less70_out_ga(T513, T568)) → U26_gaaag(T513, T568, T563, T569, T570, T567, p179_in_gaaag(T563, T568, T569, T570, T567))
p179_in_gaaag(T513, T585, .(T588, T590), T589, .(T585, T587)) → U27_gaaag(T513, T585, T588, T590, T589, T587, less70_in_gg(T513, T585))
U27_gaaag(T513, T585, T588, T590, T589, T587, less70_out_gg(T513, T585)) → U28_gaaag(T513, T585, T588, T590, T589, T587, p194_in_gaaag(T585, T588, T590, T589, T587))
p194_in_gaaag(T585, T588, T590, T589, T587) → U29_gaaag(T585, T588, T590, T589, T587, less78_in_ga(T585, T588))
U29_gaaag(T585, T588, T590, T589, T587, less78_out_ga(T585, T588)) → p194_out_gaaag(T585, T588, T590, T589, T587)
p194_in_gaaag(T585, T610, T611, [], .(T610, T611)) → U30_gaaag(T585, T610, T611, less78_in_gg(T585, T610))
U30_gaaag(T585, T610, T611, less78_out_gg(T585, T610)) → p194_out_gaaag(T585, T610, T611, [], .(T610, T611))
p194_in_gaaag(T585, T632, T638, .(T637, T639), .(T632, T636)) → U31_gaaag(T585, T632, T638, T637, T639, T636, less78_in_gg(T585, T632))
U31_gaaag(T585, T632, T638, T637, T639, T636, less78_out_gg(T585, T632)) → U32_gaaag(T585, T632, T638, T637, T639, T636, p179_in_gaaag(T632, T637, T638, T639, T636))
U32_gaaag(T585, T632, T638, T637, T639, T636, p179_out_gaaag(T632, T637, T638, T639, T636)) → p194_out_gaaag(T585, T632, T638, .(T637, T639), .(T632, T636))
p194_in_gaaag(T585, T657, T659, .(T654, T658), .(T654, T656)) → U33_gaaag(T585, T657, T659, T654, T658, T656, less78_in_ga(T585, T657))
U33_gaaag(T585, T657, T659, T654, T658, T656, less78_out_ga(T585, T657)) → U34_gaaag(T585, T657, T659, T654, T658, T656, p194_in_gaaag(T654, T657, T659, T658, T656))
U34_gaaag(T585, T657, T659, T654, T658, T656, p194_out_gaaag(T654, T657, T659, T658, T656)) → p194_out_gaaag(T585, T657, T659, .(T654, T658), .(T654, T656))
U28_gaaag(T513, T585, T588, T590, T589, T587, p194_out_gaaag(T585, T588, T590, T589, T587)) → p179_out_gaaag(T513, T585, .(T588, T590), T589, .(T585, T587))
U26_gaaag(T513, T568, T563, T569, T570, T567, p179_out_gaaag(T563, T568, T569, T570, T567)) → p179_out_gaaag(T513, T568, .(T563, T569), T570, .(T563, T567))
U96_ag(T412, T405, T406, T461, T513, T517, p179_out_gaaag(T513, T518, T519, T520, T517)) → ms1_out_ag(.(T412, .(T405, T406)), .(T461, .(T513, T517)))
ms1_in_ag(.(T412, .(T405, T406)), .(T461, .(T674, T676))) → U97_ag(T412, T405, T406, T461, T674, T676, split12_in_aaaa(T405, T406, T420, T411))
U97_ag(T412, T405, T406, T461, T674, T676, split12_out_aaaa(T405, T406, T420, T411)) → U98_ag(T412, T405, T406, T461, T674, T676, T420, ms25_in_aaa(T412, T411, .(T461, .(T677, T679))))
U98_ag(T412, T405, T406, T461, T674, T676, T420, ms25_out_aaa(T412, T411, .(T461, .(T677, T679)))) → U99_ag(T412, T405, T406, T461, T674, T676, T677, T679, ms38_in_aa(T420, .(T674, T678)))
U99_ag(T412, T405, T406, T461, T674, T676, T677, T679, ms38_out_aa(T420, .(T674, T678))) → U100_ag(T412, T405, T406, T461, T674, T676, T677, T679, T678, less70_in_gg(T461, T674))
U100_ag(T412, T405, T406, T461, T674, T676, T677, T679, T678, less70_out_gg(T461, T674)) → U101_ag(T412, T405, T406, T461, T674, T676, p194_in_gaaag(T674, T677, T679, T678, T676))
U101_ag(T412, T405, T406, T461, T674, T676, p194_out_gaaag(T674, T677, T679, T678, T676)) → ms1_out_ag(.(T412, .(T405, T406)), .(T461, .(T674, T676)))
ms1_in_ag(.(T412, .(T405, T406)), .(T694, T696)) → U102_ag(T412, T405, T406, T694, T696, split12_in_aaaa(T405, T406, T420, T411))
U102_ag(T412, T405, T406, T694, T696, split12_out_aaaa(T405, T406, T420, T411)) → U103_ag(T412, T405, T406, T694, T696, T420, ms25_in_aaa(T412, T411, .(T697, T699)))
U103_ag(T412, T405, T406, T694, T696, T420, ms25_out_aaa(T412, T411, .(T697, T699))) → U104_ag(T412, T405, T406, T694, T696, T697, T699, ms38_in_aa(T420, .(T694, T698)))
U104_ag(T412, T405, T406, T694, T696, T697, T699, ms38_out_aa(T420, .(T694, T698))) → U105_ag(T412, T405, T406, T694, T696, p194_in_gaaag(T694, T697, T699, T698, T696))
U105_ag(T412, T405, T406, T694, T696, p194_out_gaaag(T694, T697, T699, T698, T696)) → ms1_out_ag(.(T412, .(T405, T406)), .(T694, T696))
Infinitary Constructor Rewriting Termination of PiTRS implies Termination of Prolog
ms1_in_ag([], []) → ms1_out_ag([], [])
ms1_in_ag(.(T29, .(T27, T28)), []) → U35_ag(T29, T27, T28, split12_in_aaaa(T27, T28, X42, X41))
split12_in_aaaa(T42, T44, .(T42, X71), X72) → U2_aaaa(T42, T44, X71, X72, split16_in_aaa(T44, X72, X71))
split16_in_aaa([], [], []) → split16_out_aaa([], [], [])
split16_in_aaa(.(T49, T51), .(T49, X89), X90) → U1_aaa(T49, T51, X89, X90, split16_in_aaa(T51, X90, X89))
U1_aaa(T49, T51, X89, X90, split16_out_aaa(T51, X90, X89)) → split16_out_aaa(.(T49, T51), .(T49, X89), X90)
U2_aaaa(T42, T44, X71, X72, split16_out_aaa(T44, X72, X71)) → split12_out_aaaa(T42, T44, .(T42, X71), X72)
U35_ag(T29, T27, T28, split12_out_aaaa(T27, T28, X42, X41)) → ms1_out_ag(.(T29, .(T27, T28)), [])
ms1_in_ag(.(T34, .(T27, T28)), []) → U36_ag(T34, T27, T28, split12_in_aaaa(T27, T28, T32, T33))
U36_ag(T34, T27, T28, split12_out_aaaa(T27, T28, T32, T33)) → U37_ag(T34, T27, T28, ms25_in_aaa(T34, T33, X13))
ms25_in_aaa(T62, [], .(T62, [])) → ms25_out_aaa(T62, [], .(T62, []))
ms25_in_aaa(T72, .(T73, T74), X127) → U21_aaa(T72, T73, T74, X127, p34_in_aaaaaaaa(T72, T73, T74, X123, X124, X125, X126, X127))
p34_in_aaaaaaaa(T72, T73, T74, X123, X124, X125, X126, X127) → U3_aaaaaaaa(T72, T73, T74, X123, X124, X125, X126, X127, split12_in_aaaa(T72, .(T73, T74), X123, X124))
U3_aaaaaaaa(T72, T73, T74, X123, X124, X125, X126, X127, split12_out_aaaa(T72, .(T73, T74), X123, X124)) → p34_out_aaaaaaaa(T72, T73, T74, X123, X124, X125, X126, X127)
p34_in_aaaaaaaa(T72, T73, T74, T78, T79, X125, X126, X127) → U4_aaaaaaaa(T72, T73, T74, T78, T79, X125, X126, X127, split12_in_aaaa(T72, .(T73, T74), T78, T79))
U4_aaaaaaaa(T72, T73, T74, T78, T79, X125, X126, X127, split12_out_aaaa(T72, .(T73, T74), T78, T79)) → U5_aaaaaaaa(T72, T73, T74, T78, T79, X125, X126, X127, ms38_in_aa(T78, X125))
ms38_in_aa([], []) → ms38_out_aa([], [])
ms38_in_aa(.(T89, []), .(T89, [])) → ms38_out_aa(.(T89, []), .(T89, []))
ms38_in_aa(.(T99, .(T100, T101)), X172) → U13_aa(T99, T100, T101, X172, p34_in_aaaaaaaa(T99, T100, T101, X168, X169, X170, X171, X172))
p34_in_aaaaaaaa(T72, T73, T74, T78, T84, T83, X126, X127) → U6_aaaaaaaa(T72, T73, T74, T78, T84, T83, X126, X127, split12_in_aaaa(T72, .(T73, T74), T78, T84))
U6_aaaaaaaa(T72, T73, T74, T78, T84, T83, X126, X127, split12_out_aaaa(T72, .(T73, T74), T78, T84)) → U7_aaaaaaaa(T72, T73, T74, T78, T84, T83, X126, X127, ms38_in_aa(T78, T83))
U7_aaaaaaaa(T72, T73, T74, T78, T84, T83, X126, X127, ms38_out_aa(T78, T83)) → U8_aaaaaaaa(T72, T73, T74, T78, T84, T83, X126, X127, ms38_in_aa(T84, X126))
U8_aaaaaaaa(T72, T73, T74, T78, T84, T83, X126, X127, ms38_out_aa(T84, X126)) → p34_out_aaaaaaaa(T72, T73, T74, T78, T84, T83, X126, X127)
p34_in_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127) → U9_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127, split12_in_aaaa(T72, .(T73, T74), T78, T84))
U9_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127, split12_out_aaaa(T72, .(T73, T74), T78, T84)) → U10_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127, ms38_in_aa(T78, T106))
U10_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127, ms38_out_aa(T78, T106)) → U11_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127, ms38_in_aa(T84, T105))
U11_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127, ms38_out_aa(T84, T105)) → U12_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127, merge54_in_aaa(T106, T105, X127))
merge54_in_aaa([], T113, T113) → merge54_out_aaa([], T113, T113)
merge54_in_aaa(T118, [], T118) → merge54_out_aaa(T118, [], T118)
merge54_in_aaa(.(T139, T141), .(T140, T142), .(T139, X226)) → U14_aaa(T139, T141, T140, T142, X226, less70_in_aa(T139, T140))
less70_in_aa(0, T154) → less70_out_aa(0, T154)
less70_in_aa(s(T161), T162) → U22_aa(T161, T162, less78_in_aa(T161, T162))
less78_in_aa(0, s(T169)) → less78_out_aa(0, s(T169))
less78_in_aa(s(T176), s(T177)) → U20_aa(T176, T177, less78_in_aa(T176, T177))
U20_aa(T176, T177, less78_out_aa(T176, T177)) → less78_out_aa(s(T176), s(T177))
U22_aa(T161, T162, less78_out_aa(T161, T162)) → less70_out_aa(s(T161), T162)
U14_aaa(T139, T141, T140, T142, X226, less70_out_aa(T139, T140)) → merge54_out_aaa(.(T139, T141), .(T140, T142), .(T139, X226))
merge54_in_aaa(.(T139, T145), .(T146, T147), .(T139, X226)) → U15_aaa(T139, T145, T146, T147, X226, less70_in_aa(T139, T146))
U15_aaa(T139, T145, T146, T147, X226, less70_out_aa(T139, T146)) → U16_aaa(T139, T145, T146, T147, X226, merge54_in_aaa(T145, .(T146, T147), X226))
merge54_in_aaa(.(T197, T199), .(T196, T198), .(T196, X287)) → U17_aaa(T197, T199, T196, T198, X287, less78_in_aa(T196, T197))
U17_aaa(T197, T199, T196, T198, X287, less78_out_aa(T196, T197)) → merge54_out_aaa(.(T197, T199), .(T196, T198), .(T196, X287))
merge54_in_aaa(.(T202, T203), .(T196, T204), .(T196, X287)) → U18_aaa(T202, T203, T196, T204, X287, less78_in_aa(T196, T202))
U18_aaa(T202, T203, T196, T204, X287, less78_out_aa(T196, T202)) → U19_aaa(T202, T203, T196, T204, X287, merge54_in_aaa(.(T202, T203), T204, X287))
U19_aaa(T202, T203, T196, T204, X287, merge54_out_aaa(.(T202, T203), T204, X287)) → merge54_out_aaa(.(T202, T203), .(T196, T204), .(T196, X287))
U16_aaa(T139, T145, T146, T147, X226, merge54_out_aaa(T145, .(T146, T147), X226)) → merge54_out_aaa(.(T139, T145), .(T146, T147), .(T139, X226))
U12_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127, merge54_out_aaa(T106, T105, X127)) → p34_out_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127)
U13_aa(T99, T100, T101, X172, p34_out_aaaaaaaa(T99, T100, T101, X168, X169, X170, X171, X172)) → ms38_out_aa(.(T99, .(T100, T101)), X172)
U5_aaaaaaaa(T72, T73, T74, T78, T79, X125, X126, X127, ms38_out_aa(T78, X125)) → p34_out_aaaaaaaa(T72, T73, T74, T78, T79, X125, X126, X127)
U21_aaa(T72, T73, T74, X127, p34_out_aaaaaaaa(T72, T73, T74, X123, X124, X125, X126, X127)) → ms25_out_aaa(T72, .(T73, T74), X127)
U37_ag(T34, T27, T28, ms25_out_aaa(T34, T33, X13)) → ms1_out_ag(.(T34, .(T27, T28)), [])
ms1_in_ag(.(T34, .(T27, T28)), []) → U38_ag(T34, T27, T28, split12_in_aaaa(T27, T28, T55, T33))
U38_ag(T34, T27, T28, split12_out_aaaa(T27, T28, T55, T33)) → U39_ag(T34, T27, T28, T55, ms25_in_aaa(T34, T33, T54))
U39_ag(T34, T27, T28, T55, ms25_out_aaa(T34, T33, T54)) → U40_ag(T34, T27, T28, ms38_in_aa(T55, X14))
U40_ag(T34, T27, T28, ms38_out_aa(T55, X14)) → ms1_out_ag(.(T34, .(T27, T28)), [])
U38_ag(T34, T27, T28, split12_out_aaaa(T27, T28, T55, T33)) → U41_ag(T34, T27, T28, T55, ms25_in_aaa(T34, T33, T212))
U41_ag(T34, T27, T28, T55, ms25_out_aaa(T34, T33, T212)) → U42_ag(T34, T27, T28, T212, ms38_in_aa(T55, T211))
U42_ag(T34, T27, T28, T212, ms38_out_aa(T55, T211)) → U43_ag(T34, T27, T28, merge93_in_aa(T212, T211))
merge93_in_aa([], []) → merge93_out_aa([], [])
U43_ag(T34, T27, T28, merge93_out_aa(T212, T211)) → ms1_out_ag(.(T34, .(T27, T28)), [])
ms1_in_ag(.(T234, []), .(T234, [])) → ms1_out_ag(.(T234, []), .(T234, []))
ms1_in_ag(.(T262, .(T260, T261)), .(T242, [])) → U44_ag(T262, T260, T261, T242, split12_in_aaaa(T260, T261, X367, X366))
U44_ag(T262, T260, T261, T242, split12_out_aaaa(T260, T261, X367, X366)) → ms1_out_ag(.(T262, .(T260, T261)), .(T242, []))
ms1_in_ag(.(T267, .(T260, T261)), .(T242, [])) → U45_ag(T267, T260, T261, T242, split12_in_aaaa(T260, T261, T265, T266))
U45_ag(T267, T260, T261, T242, split12_out_aaaa(T260, T261, T265, T266)) → U46_ag(T267, T260, T261, T242, ms25_in_aaa(T267, T266, X338))
U46_ag(T267, T260, T261, T242, ms25_out_aaa(T267, T266, X338)) → ms1_out_ag(.(T267, .(T260, T261)), .(T242, []))
ms1_in_ag(.(T267, .(T260, T261)), .(T242, [])) → U47_ag(T267, T260, T261, T242, split12_in_aaaa(T260, T261, T273, T266))
U47_ag(T267, T260, T261, T242, split12_out_aaaa(T260, T261, T273, T266)) → U48_ag(T267, T260, T261, T242, T273, ms25_in_aaa(T267, T266, T272))
U48_ag(T267, T260, T261, T242, T273, ms25_out_aaa(T267, T266, T272)) → U49_ag(T267, T260, T261, T242, ms38_in_aa(T273, X339))
U49_ag(T267, T260, T261, T242, ms38_out_aa(T273, X339)) → ms1_out_ag(.(T267, .(T260, T261)), .(T242, []))
ms1_in_ag(.(T267, .(T260, T261)), .(T291, [])) → U50_ag(T267, T260, T261, T291, split12_in_aaaa(T260, T261, T273, T266))
U50_ag(T267, T260, T261, T291, split12_out_aaaa(T260, T261, T273, T266)) → U51_ag(T267, T260, T261, T291, T273, ms25_in_aag(T267, T266, []))
ms25_in_aag(T62, [], .(T62, [])) → ms25_out_aag(T62, [], .(T62, []))
ms25_in_aag(T72, .(T73, T74), X127) → U21_aag(T72, T73, T74, X127, p34_in_aaaaaaag(T72, T73, T74, X123, X124, X125, X126, X127))
p34_in_aaaaaaag(T72, T73, T74, X123, X124, X125, X126, X127) → U3_aaaaaaag(T72, T73, T74, X123, X124, X125, X126, X127, split12_in_aaaa(T72, .(T73, T74), X123, X124))
U3_aaaaaaag(T72, T73, T74, X123, X124, X125, X126, X127, split12_out_aaaa(T72, .(T73, T74), X123, X124)) → p34_out_aaaaaaag(T72, T73, T74, X123, X124, X125, X126, X127)
p34_in_aaaaaaag(T72, T73, T74, T78, T79, X125, X126, X127) → U4_aaaaaaag(T72, T73, T74, T78, T79, X125, X126, X127, split12_in_aaaa(T72, .(T73, T74), T78, T79))
U4_aaaaaaag(T72, T73, T74, T78, T79, X125, X126, X127, split12_out_aaaa(T72, .(T73, T74), T78, T79)) → U5_aaaaaaag(T72, T73, T74, T78, T79, X125, X126, X127, ms38_in_aa(T78, X125))
U5_aaaaaaag(T72, T73, T74, T78, T79, X125, X126, X127, ms38_out_aa(T78, X125)) → p34_out_aaaaaaag(T72, T73, T74, T78, T79, X125, X126, X127)
p34_in_aaaaaaag(T72, T73, T74, T78, T84, T83, X126, X127) → U6_aaaaaaag(T72, T73, T74, T78, T84, T83, X126, X127, split12_in_aaaa(T72, .(T73, T74), T78, T84))
U6_aaaaaaag(T72, T73, T74, T78, T84, T83, X126, X127, split12_out_aaaa(T72, .(T73, T74), T78, T84)) → U7_aaaaaaag(T72, T73, T74, T78, T84, T83, X126, X127, ms38_in_aa(T78, T83))
U7_aaaaaaag(T72, T73, T74, T78, T84, T83, X126, X127, ms38_out_aa(T78, T83)) → U8_aaaaaaag(T72, T73, T74, T78, T84, T83, X126, X127, ms38_in_aa(T84, X126))
U8_aaaaaaag(T72, T73, T74, T78, T84, T83, X126, X127, ms38_out_aa(T84, X126)) → p34_out_aaaaaaag(T72, T73, T74, T78, T84, T83, X126, X127)
p34_in_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127) → U9_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127, split12_in_aaaa(T72, .(T73, T74), T78, T84))
U9_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127, split12_out_aaaa(T72, .(T73, T74), T78, T84)) → U10_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127, ms38_in_aa(T78, T106))
U10_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127, ms38_out_aa(T78, T106)) → U11_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127, ms38_in_aa(T84, T105))
U11_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127, ms38_out_aa(T84, T105)) → U12_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127, merge54_in_aag(T106, T105, X127))
merge54_in_aag([], T113, T113) → merge54_out_aag([], T113, T113)
merge54_in_aag(T118, [], T118) → merge54_out_aag(T118, [], T118)
merge54_in_aag(.(T139, T141), .(T140, T142), .(T139, X226)) → U14_aag(T139, T141, T140, T142, X226, less70_in_ga(T139, T140))
less70_in_ga(0, T154) → less70_out_ga(0, T154)
less70_in_ga(s(T161), T162) → U22_ga(T161, T162, less78_in_ga(T161, T162))
less78_in_ga(0, s(T169)) → less78_out_ga(0, s(T169))
less78_in_ga(s(T176), s(T177)) → U20_ga(T176, T177, less78_in_ga(T176, T177))
U20_ga(T176, T177, less78_out_ga(T176, T177)) → less78_out_ga(s(T176), s(T177))
U22_ga(T161, T162, less78_out_ga(T161, T162)) → less70_out_ga(s(T161), T162)
U14_aag(T139, T141, T140, T142, X226, less70_out_ga(T139, T140)) → merge54_out_aag(.(T139, T141), .(T140, T142), .(T139, X226))
merge54_in_aag(.(T139, T145), .(T146, T147), .(T139, X226)) → U15_aag(T139, T145, T146, T147, X226, less70_in_ga(T139, T146))
U15_aag(T139, T145, T146, T147, X226, less70_out_ga(T139, T146)) → U16_aag(T139, T145, T146, T147, X226, merge54_in_aag(T145, .(T146, T147), X226))
merge54_in_aag(.(T197, T199), .(T196, T198), .(T196, X287)) → U17_aag(T197, T199, T196, T198, X287, less78_in_ga(T196, T197))
U17_aag(T197, T199, T196, T198, X287, less78_out_ga(T196, T197)) → merge54_out_aag(.(T197, T199), .(T196, T198), .(T196, X287))
merge54_in_aag(.(T202, T203), .(T196, T204), .(T196, X287)) → U18_aag(T202, T203, T196, T204, X287, less78_in_ga(T196, T202))
U18_aag(T202, T203, T196, T204, X287, less78_out_ga(T196, T202)) → U19_aag(T202, T203, T196, T204, X287, merge54_in_aag(.(T202, T203), T204, X287))
U19_aag(T202, T203, T196, T204, X287, merge54_out_aag(.(T202, T203), T204, X287)) → merge54_out_aag(.(T202, T203), .(T196, T204), .(T196, X287))
U16_aag(T139, T145, T146, T147, X226, merge54_out_aag(T145, .(T146, T147), X226)) → merge54_out_aag(.(T139, T145), .(T146, T147), .(T139, X226))
U12_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127, merge54_out_aag(T106, T105, X127)) → p34_out_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127)
U21_aag(T72, T73, T74, X127, p34_out_aaaaaaag(T72, T73, T74, X123, X124, X125, X126, X127)) → ms25_out_aag(T72, .(T73, T74), X127)
U51_ag(T267, T260, T261, T291, T273, ms25_out_aag(T267, T266, [])) → U52_ag(T267, T260, T261, T291, ms38_in_ag(T273, .(T291, [])))
ms38_in_ag([], []) → ms38_out_ag([], [])
ms38_in_ag(.(T89, []), .(T89, [])) → ms38_out_ag(.(T89, []), .(T89, []))
ms38_in_ag(.(T99, .(T100, T101)), X172) → U13_ag(T99, T100, T101, X172, p34_in_aaaaaaag(T99, T100, T101, X168, X169, X170, X171, X172))
U13_ag(T99, T100, T101, X172, p34_out_aaaaaaag(T99, T100, T101, X168, X169, X170, X171, X172)) → ms38_out_ag(.(T99, .(T100, T101)), X172)
U52_ag(T267, T260, T261, T291, ms38_out_ag(T273, .(T291, []))) → ms1_out_ag(.(T267, .(T260, T261)), .(T291, []))
ms1_in_ag(.(T267, .(T260, T261)), .(T301, [])) → U53_ag(T267, T260, T261, T301, split12_in_aaaa(T260, T261, T273, T266))
U53_ag(T267, T260, T261, T301, split12_out_aaaa(T260, T261, T273, T266)) → U54_ag(T267, T260, T261, T301, T273, ms25_in_aag(T267, T266, .(T301, [])))
U54_ag(T267, T260, T261, T301, T273, ms25_out_aag(T267, T266, .(T301, []))) → U55_ag(T267, T260, T261, T301, ms38_in_ag(T273, []))
U55_ag(T267, T260, T261, T301, ms38_out_ag(T273, [])) → ms1_out_ag(.(T267, .(T260, T261)), .(T301, []))
ms1_in_ag(.(T267, .(T260, T261)), .(T318, [])) → U56_ag(T267, T260, T261, T318, split12_in_aaaa(T260, T261, T273, T266))
U56_ag(T267, T260, T261, T318, split12_out_aaaa(T260, T261, T273, T266)) → U57_ag(T267, T260, T261, T318, T273, ms25_in_aaa(T267, T266, .(T318, T323)))
U57_ag(T267, T260, T261, T318, T273, ms25_out_aaa(T267, T266, .(T318, T323))) → U58_ag(T267, T260, T261, T318, ms38_in_aa(T273, .(T322, T324)))
U58_ag(T267, T260, T261, T318, ms38_out_aa(T273, .(T322, T324))) → U59_ag(T267, T260, T261, T318, less70_in_ga(T318, T322))
U59_ag(T267, T260, T261, T318, less70_out_ga(T318, T322)) → ms1_out_ag(.(T267, .(T260, T261)), .(T318, []))
U56_ag(T267, T260, T261, T318, split12_out_aaaa(T260, T261, T273, T266)) → U60_ag(T267, T260, T261, T318, T273, ms25_in_aaa(T267, T266, .(T318, T327)))
U60_ag(T267, T260, T261, T318, T273, ms25_out_aaa(T267, T266, .(T318, T327))) → U61_ag(T267, T260, T261, T318, T327, ms38_in_aa(T273, .(T328, T329)))
U61_ag(T267, T260, T261, T318, T327, ms38_out_aa(T273, .(T328, T329))) → U62_ag(T267, T260, T261, T318, T327, T328, T329, less70_in_ga(T318, T328))
U62_ag(T267, T260, T261, T318, T327, T328, T329, less70_out_ga(T318, T328)) → U63_ag(T267, T260, T261, T318, merge93_in_aa(T327, .(T328, T329)))
U63_ag(T267, T260, T261, T318, merge93_out_aa(T327, .(T328, T329))) → ms1_out_ag(.(T267, .(T260, T261)), .(T318, []))
ms1_in_ag(.(T267, .(T260, T261)), .(T356, [])) → U64_ag(T267, T260, T261, T356, split12_in_aaaa(T260, T261, T273, T266))
U64_ag(T267, T260, T261, T356, split12_out_aaaa(T260, T261, T273, T266)) → U65_ag(T267, T260, T261, T356, T273, ms25_in_aaa(T267, T266, .(T358, T360)))
U65_ag(T267, T260, T261, T356, T273, ms25_out_aaa(T267, T266, .(T358, T360))) → U66_ag(T267, T260, T261, T356, T358, ms38_in_aa(T273, .(T356, T359)))
U66_ag(T267, T260, T261, T356, T358, ms38_out_aa(T273, .(T356, T359))) → U67_ag(T267, T260, T261, T356, less78_in_ga(T356, T358))
U67_ag(T267, T260, T261, T356, less78_out_ga(T356, T358)) → ms1_out_ag(.(T267, .(T260, T261)), .(T356, []))
U64_ag(T267, T260, T261, T356, split12_out_aaaa(T260, T261, T273, T266)) → U68_ag(T267, T260, T261, T356, T273, ms25_in_aaa(T267, T266, .(T363, T364)))
U68_ag(T267, T260, T261, T356, T273, ms25_out_aaa(T267, T266, .(T363, T364))) → U69_ag(T267, T260, T261, T356, T363, T364, ms38_in_aa(T273, .(T356, T365)))
U69_ag(T267, T260, T261, T356, T363, T364, ms38_out_aa(T273, .(T356, T365))) → U70_ag(T267, T260, T261, T356, T363, T364, T365, less78_in_ga(T356, T363))
U70_ag(T267, T260, T261, T356, T363, T364, T365, less78_out_ga(T356, T363)) → U71_ag(T267, T260, T261, T356, merge93_in_aa(.(T363, T364), T365))
U71_ag(T267, T260, T261, T356, merge93_out_aa(.(T363, T364), T365)) → ms1_out_ag(.(T267, .(T260, T261)), .(T356, []))
ms1_in_ag(.(T407, .(T405, T406)), T387) → U72_ag(T407, T405, T406, T387, split12_in_aaaa(T405, T406, X523, X522))
U72_ag(T407, T405, T406, T387, split12_out_aaaa(T405, T406, X523, X522)) → ms1_out_ag(.(T407, .(T405, T406)), T387)
ms1_in_ag(.(T412, .(T405, T406)), T387) → U73_ag(T412, T405, T406, T387, split12_in_aaaa(T405, T406, T410, T411))
U73_ag(T412, T405, T406, T387, split12_out_aaaa(T405, T406, T410, T411)) → U74_ag(T412, T405, T406, T387, ms25_in_aaa(T412, T411, X494))
U74_ag(T412, T405, T406, T387, ms25_out_aaa(T412, T411, X494)) → ms1_out_ag(.(T412, .(T405, T406)), T387)
ms1_in_ag(.(T412, .(T405, T406)), T387) → U75_ag(T412, T405, T406, T387, split12_in_aaaa(T405, T406, T420, T411))
U75_ag(T412, T405, T406, T387, split12_out_aaaa(T405, T406, T420, T411)) → U76_ag(T412, T405, T406, T387, T420, ms25_in_aaa(T412, T411, T419))
U76_ag(T412, T405, T406, T387, T420, ms25_out_aaa(T412, T411, T419)) → U77_ag(T412, T405, T406, T387, ms38_in_aa(T420, X495))
U77_ag(T412, T405, T406, T387, ms38_out_aa(T420, X495)) → ms1_out_ag(.(T412, .(T405, T406)), T387)
ms1_in_ag(.(T412, .(T405, T406)), T435) → U78_ag(T412, T405, T406, T435, split12_in_aaaa(T405, T406, T420, T411))
U78_ag(T412, T405, T406, T435, split12_out_aaaa(T405, T406, T420, T411)) → U79_ag(T412, T405, T406, T435, T420, ms25_in_aag(T412, T411, []))
U79_ag(T412, T405, T406, T435, T420, ms25_out_aag(T412, T411, [])) → U80_ag(T412, T405, T406, T435, ms38_in_ag(T420, T435))
U80_ag(T412, T405, T406, T435, ms38_out_ag(T420, T435)) → ms1_out_ag(.(T412, .(T405, T406)), T435)
ms1_in_ag(.(T412, .(T405, T406)), T440) → U81_ag(T412, T405, T406, T440, split12_in_aaaa(T405, T406, T420, T411))
U81_ag(T412, T405, T406, T440, split12_out_aaaa(T405, T406, T420, T411)) → U82_ag(T412, T405, T406, T440, T420, ms25_in_aag(T412, T411, T440))
U82_ag(T412, T405, T406, T440, T420, ms25_out_aag(T412, T411, T440)) → U83_ag(T412, T405, T406, T440, ms38_in_ag(T420, []))
U83_ag(T412, T405, T406, T440, ms38_out_ag(T420, [])) → ms1_out_ag(.(T412, .(T405, T406)), T440)
ms1_in_ag(.(T412, .(T405, T406)), .(T461, T465)) → U84_ag(T412, T405, T406, T461, T465, split12_in_aaaa(T405, T406, T420, T411))
U84_ag(T412, T405, T406, T461, T465, split12_out_aaaa(T405, T406, T420, T411)) → U85_ag(T412, T405, T406, T461, T465, T420, ms25_in_aaa(T412, T411, .(T461, T467)))
U85_ag(T412, T405, T406, T461, T465, T420, ms25_out_aaa(T412, T411, .(T461, T467))) → U86_ag(T412, T405, T406, T461, T465, ms38_in_aa(T420, .(T466, T468)))
U86_ag(T412, T405, T406, T461, T465, ms38_out_aa(T420, .(T466, T468))) → U87_ag(T412, T405, T406, T461, T465, less70_in_ga(T461, T466))
U87_ag(T412, T405, T406, T461, T465, less70_out_ga(T461, T466)) → ms1_out_ag(.(T412, .(T405, T406)), .(T461, T465))
ms1_in_ag(.(T412, .(T405, T406)), .(T461, .(T490, T491))) → U88_ag(T412, T405, T406, T461, T490, T491, split12_in_aaaa(T405, T406, T420, T411))
U88_ag(T412, T405, T406, T461, T490, T491, split12_out_aaaa(T405, T406, T420, T411)) → U89_ag(T412, T405, T406, T461, T490, T491, T420, ms25_in_aag(T412, T411, .(T461, [])))
U89_ag(T412, T405, T406, T461, T490, T491, T420, ms25_out_aag(T412, T411, .(T461, []))) → U90_ag(T412, T405, T406, T461, T490, T491, ms38_in_ag(T420, .(T490, T491)))
U90_ag(T412, T405, T406, T461, T490, T491, ms38_out_ag(T420, .(T490, T491))) → U91_ag(T412, T405, T406, T461, T490, T491, less70_in_gg(T461, T490))
less70_in_gg(0, T154) → less70_out_gg(0, T154)
less70_in_gg(s(T161), T162) → U22_gg(T161, T162, less78_in_gg(T161, T162))
less78_in_gg(0, s(T169)) → less78_out_gg(0, s(T169))
less78_in_gg(s(T176), s(T177)) → U20_gg(T176, T177, less78_in_gg(T176, T177))
U20_gg(T176, T177, less78_out_gg(T176, T177)) → less78_out_gg(s(T176), s(T177))
U22_gg(T161, T162, less78_out_gg(T161, T162)) → less70_out_gg(s(T161), T162)
U91_ag(T412, T405, T406, T461, T490, T491, less70_out_gg(T461, T490)) → ms1_out_ag(.(T412, .(T405, T406)), .(T461, .(T490, T491)))
ms1_in_ag(.(T412, .(T405, T406)), .(T461, .(T513, T517))) → U92_ag(T412, T405, T406, T461, T513, T517, split12_in_aaaa(T405, T406, T420, T411))
U92_ag(T412, T405, T406, T461, T513, T517, split12_out_aaaa(T405, T406, T420, T411)) → U93_ag(T412, T405, T406, T461, T513, T517, T420, ms25_in_aaa(T412, T411, .(T461, .(T513, T519))))
U93_ag(T412, T405, T406, T461, T513, T517, T420, ms25_out_aaa(T412, T411, .(T461, .(T513, T519)))) → U94_ag(T412, T405, T406, T461, T513, T517, T519, ms38_in_aa(T420, .(T518, T520)))
U94_ag(T412, T405, T406, T461, T513, T517, T519, ms38_out_aa(T420, .(T518, T520))) → U95_ag(T412, T405, T406, T461, T513, T517, T519, T518, T520, less70_in_ga(T461, T518))
U95_ag(T412, T405, T406, T461, T513, T517, T519, T518, T520, less70_out_ga(T461, T518)) → U96_ag(T412, T405, T406, T461, T513, T517, p179_in_gaaag(T513, T518, T519, T520, T517))
p179_in_gaaag(T513, T518, T519, T520, T517) → U23_gaaag(T513, T518, T519, T520, T517, less70_in_ga(T513, T518))
U23_gaaag(T513, T518, T519, T520, T517, less70_out_ga(T513, T518)) → p179_out_gaaag(T513, T518, T519, T520, T517)
p179_in_gaaag(T513, T540, [], T541, .(T540, T541)) → U24_gaaag(T513, T540, T541, less70_in_gg(T513, T540))
U24_gaaag(T513, T540, T541, less70_out_gg(T513, T540)) → p179_out_gaaag(T513, T540, [], T541, .(T540, T541))
p179_in_gaaag(T513, T568, .(T563, T569), T570, .(T563, T567)) → U25_gaaag(T513, T568, T563, T569, T570, T567, less70_in_ga(T513, T568))
U25_gaaag(T513, T568, T563, T569, T570, T567, less70_out_ga(T513, T568)) → U26_gaaag(T513, T568, T563, T569, T570, T567, p179_in_gaaag(T563, T568, T569, T570, T567))
p179_in_gaaag(T513, T585, .(T588, T590), T589, .(T585, T587)) → U27_gaaag(T513, T585, T588, T590, T589, T587, less70_in_gg(T513, T585))
U27_gaaag(T513, T585, T588, T590, T589, T587, less70_out_gg(T513, T585)) → U28_gaaag(T513, T585, T588, T590, T589, T587, p194_in_gaaag(T585, T588, T590, T589, T587))
p194_in_gaaag(T585, T588, T590, T589, T587) → U29_gaaag(T585, T588, T590, T589, T587, less78_in_ga(T585, T588))
U29_gaaag(T585, T588, T590, T589, T587, less78_out_ga(T585, T588)) → p194_out_gaaag(T585, T588, T590, T589, T587)
p194_in_gaaag(T585, T610, T611, [], .(T610, T611)) → U30_gaaag(T585, T610, T611, less78_in_gg(T585, T610))
U30_gaaag(T585, T610, T611, less78_out_gg(T585, T610)) → p194_out_gaaag(T585, T610, T611, [], .(T610, T611))
p194_in_gaaag(T585, T632, T638, .(T637, T639), .(T632, T636)) → U31_gaaag(T585, T632, T638, T637, T639, T636, less78_in_gg(T585, T632))
U31_gaaag(T585, T632, T638, T637, T639, T636, less78_out_gg(T585, T632)) → U32_gaaag(T585, T632, T638, T637, T639, T636, p179_in_gaaag(T632, T637, T638, T639, T636))
U32_gaaag(T585, T632, T638, T637, T639, T636, p179_out_gaaag(T632, T637, T638, T639, T636)) → p194_out_gaaag(T585, T632, T638, .(T637, T639), .(T632, T636))
p194_in_gaaag(T585, T657, T659, .(T654, T658), .(T654, T656)) → U33_gaaag(T585, T657, T659, T654, T658, T656, less78_in_ga(T585, T657))
U33_gaaag(T585, T657, T659, T654, T658, T656, less78_out_ga(T585, T657)) → U34_gaaag(T585, T657, T659, T654, T658, T656, p194_in_gaaag(T654, T657, T659, T658, T656))
U34_gaaag(T585, T657, T659, T654, T658, T656, p194_out_gaaag(T654, T657, T659, T658, T656)) → p194_out_gaaag(T585, T657, T659, .(T654, T658), .(T654, T656))
U28_gaaag(T513, T585, T588, T590, T589, T587, p194_out_gaaag(T585, T588, T590, T589, T587)) → p179_out_gaaag(T513, T585, .(T588, T590), T589, .(T585, T587))
U26_gaaag(T513, T568, T563, T569, T570, T567, p179_out_gaaag(T563, T568, T569, T570, T567)) → p179_out_gaaag(T513, T568, .(T563, T569), T570, .(T563, T567))
U96_ag(T412, T405, T406, T461, T513, T517, p179_out_gaaag(T513, T518, T519, T520, T517)) → ms1_out_ag(.(T412, .(T405, T406)), .(T461, .(T513, T517)))
ms1_in_ag(.(T412, .(T405, T406)), .(T461, .(T674, T676))) → U97_ag(T412, T405, T406, T461, T674, T676, split12_in_aaaa(T405, T406, T420, T411))
U97_ag(T412, T405, T406, T461, T674, T676, split12_out_aaaa(T405, T406, T420, T411)) → U98_ag(T412, T405, T406, T461, T674, T676, T420, ms25_in_aaa(T412, T411, .(T461, .(T677, T679))))
U98_ag(T412, T405, T406, T461, T674, T676, T420, ms25_out_aaa(T412, T411, .(T461, .(T677, T679)))) → U99_ag(T412, T405, T406, T461, T674, T676, T677, T679, ms38_in_aa(T420, .(T674, T678)))
U99_ag(T412, T405, T406, T461, T674, T676, T677, T679, ms38_out_aa(T420, .(T674, T678))) → U100_ag(T412, T405, T406, T461, T674, T676, T677, T679, T678, less70_in_gg(T461, T674))
U100_ag(T412, T405, T406, T461, T674, T676, T677, T679, T678, less70_out_gg(T461, T674)) → U101_ag(T412, T405, T406, T461, T674, T676, p194_in_gaaag(T674, T677, T679, T678, T676))
U101_ag(T412, T405, T406, T461, T674, T676, p194_out_gaaag(T674, T677, T679, T678, T676)) → ms1_out_ag(.(T412, .(T405, T406)), .(T461, .(T674, T676)))
ms1_in_ag(.(T412, .(T405, T406)), .(T694, T696)) → U102_ag(T412, T405, T406, T694, T696, split12_in_aaaa(T405, T406, T420, T411))
U102_ag(T412, T405, T406, T694, T696, split12_out_aaaa(T405, T406, T420, T411)) → U103_ag(T412, T405, T406, T694, T696, T420, ms25_in_aaa(T412, T411, .(T697, T699)))
U103_ag(T412, T405, T406, T694, T696, T420, ms25_out_aaa(T412, T411, .(T697, T699))) → U104_ag(T412, T405, T406, T694, T696, T697, T699, ms38_in_aa(T420, .(T694, T698)))
U104_ag(T412, T405, T406, T694, T696, T697, T699, ms38_out_aa(T420, .(T694, T698))) → U105_ag(T412, T405, T406, T694, T696, p194_in_gaaag(T694, T697, T699, T698, T696))
U105_ag(T412, T405, T406, T694, T696, p194_out_gaaag(T694, T697, T699, T698, T696)) → ms1_out_ag(.(T412, .(T405, T406)), .(T694, T696))
MS1_IN_AG(.(T29, .(T27, T28)), []) → U35_AG(T29, T27, T28, split12_in_aaaa(T27, T28, X42, X41))
MS1_IN_AG(.(T29, .(T27, T28)), []) → SPLIT12_IN_AAAA(T27, T28, X42, X41)
SPLIT12_IN_AAAA(T42, T44, .(T42, X71), X72) → U2_AAAA(T42, T44, X71, X72, split16_in_aaa(T44, X72, X71))
SPLIT12_IN_AAAA(T42, T44, .(T42, X71), X72) → SPLIT16_IN_AAA(T44, X72, X71)
SPLIT16_IN_AAA(.(T49, T51), .(T49, X89), X90) → U1_AAA(T49, T51, X89, X90, split16_in_aaa(T51, X90, X89))
SPLIT16_IN_AAA(.(T49, T51), .(T49, X89), X90) → SPLIT16_IN_AAA(T51, X90, X89)
MS1_IN_AG(.(T34, .(T27, T28)), []) → U36_AG(T34, T27, T28, split12_in_aaaa(T27, T28, T32, T33))
U36_AG(T34, T27, T28, split12_out_aaaa(T27, T28, T32, T33)) → U37_AG(T34, T27, T28, ms25_in_aaa(T34, T33, X13))
U36_AG(T34, T27, T28, split12_out_aaaa(T27, T28, T32, T33)) → MS25_IN_AAA(T34, T33, X13)
MS25_IN_AAA(T72, .(T73, T74), X127) → U21_AAA(T72, T73, T74, X127, p34_in_aaaaaaaa(T72, T73, T74, X123, X124, X125, X126, X127))
MS25_IN_AAA(T72, .(T73, T74), X127) → P34_IN_AAAAAAAA(T72, T73, T74, X123, X124, X125, X126, X127)
P34_IN_AAAAAAAA(T72, T73, T74, X123, X124, X125, X126, X127) → U3_AAAAAAAA(T72, T73, T74, X123, X124, X125, X126, X127, split12_in_aaaa(T72, .(T73, T74), X123, X124))
P34_IN_AAAAAAAA(T72, T73, T74, X123, X124, X125, X126, X127) → SPLIT12_IN_AAAA(T72, .(T73, T74), X123, X124)
P34_IN_AAAAAAAA(T72, T73, T74, T78, T79, X125, X126, X127) → U4_AAAAAAAA(T72, T73, T74, T78, T79, X125, X126, X127, split12_in_aaaa(T72, .(T73, T74), T78, T79))
U4_AAAAAAAA(T72, T73, T74, T78, T79, X125, X126, X127, split12_out_aaaa(T72, .(T73, T74), T78, T79)) → U5_AAAAAAAA(T72, T73, T74, T78, T79, X125, X126, X127, ms38_in_aa(T78, X125))
U4_AAAAAAAA(T72, T73, T74, T78, T79, X125, X126, X127, split12_out_aaaa(T72, .(T73, T74), T78, T79)) → MS38_IN_AA(T78, X125)
MS38_IN_AA(.(T99, .(T100, T101)), X172) → U13_AA(T99, T100, T101, X172, p34_in_aaaaaaaa(T99, T100, T101, X168, X169, X170, X171, X172))
MS38_IN_AA(.(T99, .(T100, T101)), X172) → P34_IN_AAAAAAAA(T99, T100, T101, X168, X169, X170, X171, X172)
P34_IN_AAAAAAAA(T72, T73, T74, T78, T84, T83, X126, X127) → U6_AAAAAAAA(T72, T73, T74, T78, T84, T83, X126, X127, split12_in_aaaa(T72, .(T73, T74), T78, T84))
U6_AAAAAAAA(T72, T73, T74, T78, T84, T83, X126, X127, split12_out_aaaa(T72, .(T73, T74), T78, T84)) → U7_AAAAAAAA(T72, T73, T74, T78, T84, T83, X126, X127, ms38_in_aa(T78, T83))
U6_AAAAAAAA(T72, T73, T74, T78, T84, T83, X126, X127, split12_out_aaaa(T72, .(T73, T74), T78, T84)) → MS38_IN_AA(T78, T83)
U7_AAAAAAAA(T72, T73, T74, T78, T84, T83, X126, X127, ms38_out_aa(T78, T83)) → U8_AAAAAAAA(T72, T73, T74, T78, T84, T83, X126, X127, ms38_in_aa(T84, X126))
U7_AAAAAAAA(T72, T73, T74, T78, T84, T83, X126, X127, ms38_out_aa(T78, T83)) → MS38_IN_AA(T84, X126)
P34_IN_AAAAAAAA(T72, T73, T74, T78, T84, T106, T105, X127) → U9_AAAAAAAA(T72, T73, T74, T78, T84, T106, T105, X127, split12_in_aaaa(T72, .(T73, T74), T78, T84))
U9_AAAAAAAA(T72, T73, T74, T78, T84, T106, T105, X127, split12_out_aaaa(T72, .(T73, T74), T78, T84)) → U10_AAAAAAAA(T72, T73, T74, T78, T84, T106, T105, X127, ms38_in_aa(T78, T106))
U9_AAAAAAAA(T72, T73, T74, T78, T84, T106, T105, X127, split12_out_aaaa(T72, .(T73, T74), T78, T84)) → MS38_IN_AA(T78, T106)
U10_AAAAAAAA(T72, T73, T74, T78, T84, T106, T105, X127, ms38_out_aa(T78, T106)) → U11_AAAAAAAA(T72, T73, T74, T78, T84, T106, T105, X127, ms38_in_aa(T84, T105))
U10_AAAAAAAA(T72, T73, T74, T78, T84, T106, T105, X127, ms38_out_aa(T78, T106)) → MS38_IN_AA(T84, T105)
U11_AAAAAAAA(T72, T73, T74, T78, T84, T106, T105, X127, ms38_out_aa(T84, T105)) → U12_AAAAAAAA(T72, T73, T74, T78, T84, T106, T105, X127, merge54_in_aaa(T106, T105, X127))
U11_AAAAAAAA(T72, T73, T74, T78, T84, T106, T105, X127, ms38_out_aa(T84, T105)) → MERGE54_IN_AAA(T106, T105, X127)
MERGE54_IN_AAA(.(T139, T141), .(T140, T142), .(T139, X226)) → U14_AAA(T139, T141, T140, T142, X226, less70_in_aa(T139, T140))
MERGE54_IN_AAA(.(T139, T141), .(T140, T142), .(T139, X226)) → LESS70_IN_AA(T139, T140)
LESS70_IN_AA(s(T161), T162) → U22_AA(T161, T162, less78_in_aa(T161, T162))
LESS70_IN_AA(s(T161), T162) → LESS78_IN_AA(T161, T162)
LESS78_IN_AA(s(T176), s(T177)) → U20_AA(T176, T177, less78_in_aa(T176, T177))
LESS78_IN_AA(s(T176), s(T177)) → LESS78_IN_AA(T176, T177)
MERGE54_IN_AAA(.(T139, T145), .(T146, T147), .(T139, X226)) → U15_AAA(T139, T145, T146, T147, X226, less70_in_aa(T139, T146))
U15_AAA(T139, T145, T146, T147, X226, less70_out_aa(T139, T146)) → U16_AAA(T139, T145, T146, T147, X226, merge54_in_aaa(T145, .(T146, T147), X226))
U15_AAA(T139, T145, T146, T147, X226, less70_out_aa(T139, T146)) → MERGE54_IN_AAA(T145, .(T146, T147), X226)
MERGE54_IN_AAA(.(T197, T199), .(T196, T198), .(T196, X287)) → U17_AAA(T197, T199, T196, T198, X287, less78_in_aa(T196, T197))
MERGE54_IN_AAA(.(T197, T199), .(T196, T198), .(T196, X287)) → LESS78_IN_AA(T196, T197)
MERGE54_IN_AAA(.(T202, T203), .(T196, T204), .(T196, X287)) → U18_AAA(T202, T203, T196, T204, X287, less78_in_aa(T196, T202))
U18_AAA(T202, T203, T196, T204, X287, less78_out_aa(T196, T202)) → U19_AAA(T202, T203, T196, T204, X287, merge54_in_aaa(.(T202, T203), T204, X287))
U18_AAA(T202, T203, T196, T204, X287, less78_out_aa(T196, T202)) → MERGE54_IN_AAA(.(T202, T203), T204, X287)
MS1_IN_AG(.(T34, .(T27, T28)), []) → U38_AG(T34, T27, T28, split12_in_aaaa(T27, T28, T55, T33))
U38_AG(T34, T27, T28, split12_out_aaaa(T27, T28, T55, T33)) → U39_AG(T34, T27, T28, T55, ms25_in_aaa(T34, T33, T54))
U38_AG(T34, T27, T28, split12_out_aaaa(T27, T28, T55, T33)) → MS25_IN_AAA(T34, T33, T54)
U39_AG(T34, T27, T28, T55, ms25_out_aaa(T34, T33, T54)) → U40_AG(T34, T27, T28, ms38_in_aa(T55, X14))
U39_AG(T34, T27, T28, T55, ms25_out_aaa(T34, T33, T54)) → MS38_IN_AA(T55, X14)
U38_AG(T34, T27, T28, split12_out_aaaa(T27, T28, T55, T33)) → U41_AG(T34, T27, T28, T55, ms25_in_aaa(T34, T33, T212))
U41_AG(T34, T27, T28, T55, ms25_out_aaa(T34, T33, T212)) → U42_AG(T34, T27, T28, T212, ms38_in_aa(T55, T211))
U41_AG(T34, T27, T28, T55, ms25_out_aaa(T34, T33, T212)) → MS38_IN_AA(T55, T211)
U42_AG(T34, T27, T28, T212, ms38_out_aa(T55, T211)) → U43_AG(T34, T27, T28, merge93_in_aa(T212, T211))
U42_AG(T34, T27, T28, T212, ms38_out_aa(T55, T211)) → MERGE93_IN_AA(T212, T211)
MS1_IN_AG(.(T262, .(T260, T261)), .(T242, [])) → U44_AG(T262, T260, T261, T242, split12_in_aaaa(T260, T261, X367, X366))
MS1_IN_AG(.(T262, .(T260, T261)), .(T242, [])) → SPLIT12_IN_AAAA(T260, T261, X367, X366)
MS1_IN_AG(.(T267, .(T260, T261)), .(T242, [])) → U45_AG(T267, T260, T261, T242, split12_in_aaaa(T260, T261, T265, T266))
U45_AG(T267, T260, T261, T242, split12_out_aaaa(T260, T261, T265, T266)) → U46_AG(T267, T260, T261, T242, ms25_in_aaa(T267, T266, X338))
U45_AG(T267, T260, T261, T242, split12_out_aaaa(T260, T261, T265, T266)) → MS25_IN_AAA(T267, T266, X338)
MS1_IN_AG(.(T267, .(T260, T261)), .(T242, [])) → U47_AG(T267, T260, T261, T242, split12_in_aaaa(T260, T261, T273, T266))
U47_AG(T267, T260, T261, T242, split12_out_aaaa(T260, T261, T273, T266)) → U48_AG(T267, T260, T261, T242, T273, ms25_in_aaa(T267, T266, T272))
U47_AG(T267, T260, T261, T242, split12_out_aaaa(T260, T261, T273, T266)) → MS25_IN_AAA(T267, T266, T272)
U48_AG(T267, T260, T261, T242, T273, ms25_out_aaa(T267, T266, T272)) → U49_AG(T267, T260, T261, T242, ms38_in_aa(T273, X339))
U48_AG(T267, T260, T261, T242, T273, ms25_out_aaa(T267, T266, T272)) → MS38_IN_AA(T273, X339)
MS1_IN_AG(.(T267, .(T260, T261)), .(T291, [])) → U50_AG(T267, T260, T261, T291, split12_in_aaaa(T260, T261, T273, T266))
U50_AG(T267, T260, T261, T291, split12_out_aaaa(T260, T261, T273, T266)) → U51_AG(T267, T260, T261, T291, T273, ms25_in_aag(T267, T266, []))
U50_AG(T267, T260, T261, T291, split12_out_aaaa(T260, T261, T273, T266)) → MS25_IN_AAG(T267, T266, [])
MS25_IN_AAG(T72, .(T73, T74), X127) → U21_AAG(T72, T73, T74, X127, p34_in_aaaaaaag(T72, T73, T74, X123, X124, X125, X126, X127))
MS25_IN_AAG(T72, .(T73, T74), X127) → P34_IN_AAAAAAAG(T72, T73, T74, X123, X124, X125, X126, X127)
P34_IN_AAAAAAAG(T72, T73, T74, X123, X124, X125, X126, X127) → U3_AAAAAAAG(T72, T73, T74, X123, X124, X125, X126, X127, split12_in_aaaa(T72, .(T73, T74), X123, X124))
P34_IN_AAAAAAAG(T72, T73, T74, X123, X124, X125, X126, X127) → SPLIT12_IN_AAAA(T72, .(T73, T74), X123, X124)
P34_IN_AAAAAAAG(T72, T73, T74, T78, T79, X125, X126, X127) → U4_AAAAAAAG(T72, T73, T74, T78, T79, X125, X126, X127, split12_in_aaaa(T72, .(T73, T74), T78, T79))
U4_AAAAAAAG(T72, T73, T74, T78, T79, X125, X126, X127, split12_out_aaaa(T72, .(T73, T74), T78, T79)) → U5_AAAAAAAG(T72, T73, T74, T78, T79, X125, X126, X127, ms38_in_aa(T78, X125))
U4_AAAAAAAG(T72, T73, T74, T78, T79, X125, X126, X127, split12_out_aaaa(T72, .(T73, T74), T78, T79)) → MS38_IN_AA(T78, X125)
P34_IN_AAAAAAAG(T72, T73, T74, T78, T84, T83, X126, X127) → U6_AAAAAAAG(T72, T73, T74, T78, T84, T83, X126, X127, split12_in_aaaa(T72, .(T73, T74), T78, T84))
U6_AAAAAAAG(T72, T73, T74, T78, T84, T83, X126, X127, split12_out_aaaa(T72, .(T73, T74), T78, T84)) → U7_AAAAAAAG(T72, T73, T74, T78, T84, T83, X126, X127, ms38_in_aa(T78, T83))
U6_AAAAAAAG(T72, T73, T74, T78, T84, T83, X126, X127, split12_out_aaaa(T72, .(T73, T74), T78, T84)) → MS38_IN_AA(T78, T83)
U7_AAAAAAAG(T72, T73, T74, T78, T84, T83, X126, X127, ms38_out_aa(T78, T83)) → U8_AAAAAAAG(T72, T73, T74, T78, T84, T83, X126, X127, ms38_in_aa(T84, X126))
U7_AAAAAAAG(T72, T73, T74, T78, T84, T83, X126, X127, ms38_out_aa(T78, T83)) → MS38_IN_AA(T84, X126)
P34_IN_AAAAAAAG(T72, T73, T74, T78, T84, T106, T105, X127) → U9_AAAAAAAG(T72, T73, T74, T78, T84, T106, T105, X127, split12_in_aaaa(T72, .(T73, T74), T78, T84))
U9_AAAAAAAG(T72, T73, T74, T78, T84, T106, T105, X127, split12_out_aaaa(T72, .(T73, T74), T78, T84)) → U10_AAAAAAAG(T72, T73, T74, T78, T84, T106, T105, X127, ms38_in_aa(T78, T106))
U9_AAAAAAAG(T72, T73, T74, T78, T84, T106, T105, X127, split12_out_aaaa(T72, .(T73, T74), T78, T84)) → MS38_IN_AA(T78, T106)
U10_AAAAAAAG(T72, T73, T74, T78, T84, T106, T105, X127, ms38_out_aa(T78, T106)) → U11_AAAAAAAG(T72, T73, T74, T78, T84, T106, T105, X127, ms38_in_aa(T84, T105))
U10_AAAAAAAG(T72, T73, T74, T78, T84, T106, T105, X127, ms38_out_aa(T78, T106)) → MS38_IN_AA(T84, T105)
U11_AAAAAAAG(T72, T73, T74, T78, T84, T106, T105, X127, ms38_out_aa(T84, T105)) → U12_AAAAAAAG(T72, T73, T74, T78, T84, T106, T105, X127, merge54_in_aag(T106, T105, X127))
U11_AAAAAAAG(T72, T73, T74, T78, T84, T106, T105, X127, ms38_out_aa(T84, T105)) → MERGE54_IN_AAG(T106, T105, X127)
MERGE54_IN_AAG(.(T139, T141), .(T140, T142), .(T139, X226)) → U14_AAG(T139, T141, T140, T142, X226, less70_in_ga(T139, T140))
MERGE54_IN_AAG(.(T139, T141), .(T140, T142), .(T139, X226)) → LESS70_IN_GA(T139, T140)
LESS70_IN_GA(s(T161), T162) → U22_GA(T161, T162, less78_in_ga(T161, T162))
LESS70_IN_GA(s(T161), T162) → LESS78_IN_GA(T161, T162)
LESS78_IN_GA(s(T176), s(T177)) → U20_GA(T176, T177, less78_in_ga(T176, T177))
LESS78_IN_GA(s(T176), s(T177)) → LESS78_IN_GA(T176, T177)
MERGE54_IN_AAG(.(T139, T145), .(T146, T147), .(T139, X226)) → U15_AAG(T139, T145, T146, T147, X226, less70_in_ga(T139, T146))
U15_AAG(T139, T145, T146, T147, X226, less70_out_ga(T139, T146)) → U16_AAG(T139, T145, T146, T147, X226, merge54_in_aag(T145, .(T146, T147), X226))
U15_AAG(T139, T145, T146, T147, X226, less70_out_ga(T139, T146)) → MERGE54_IN_AAG(T145, .(T146, T147), X226)
MERGE54_IN_AAG(.(T197, T199), .(T196, T198), .(T196, X287)) → U17_AAG(T197, T199, T196, T198, X287, less78_in_ga(T196, T197))
MERGE54_IN_AAG(.(T197, T199), .(T196, T198), .(T196, X287)) → LESS78_IN_GA(T196, T197)
MERGE54_IN_AAG(.(T202, T203), .(T196, T204), .(T196, X287)) → U18_AAG(T202, T203, T196, T204, X287, less78_in_ga(T196, T202))
U18_AAG(T202, T203, T196, T204, X287, less78_out_ga(T196, T202)) → U19_AAG(T202, T203, T196, T204, X287, merge54_in_aag(.(T202, T203), T204, X287))
U18_AAG(T202, T203, T196, T204, X287, less78_out_ga(T196, T202)) → MERGE54_IN_AAG(.(T202, T203), T204, X287)
U51_AG(T267, T260, T261, T291, T273, ms25_out_aag(T267, T266, [])) → U52_AG(T267, T260, T261, T291, ms38_in_ag(T273, .(T291, [])))
U51_AG(T267, T260, T261, T291, T273, ms25_out_aag(T267, T266, [])) → MS38_IN_AG(T273, .(T291, []))
MS38_IN_AG(.(T99, .(T100, T101)), X172) → U13_AG(T99, T100, T101, X172, p34_in_aaaaaaag(T99, T100, T101, X168, X169, X170, X171, X172))
MS38_IN_AG(.(T99, .(T100, T101)), X172) → P34_IN_AAAAAAAG(T99, T100, T101, X168, X169, X170, X171, X172)
MS1_IN_AG(.(T267, .(T260, T261)), .(T301, [])) → U53_AG(T267, T260, T261, T301, split12_in_aaaa(T260, T261, T273, T266))
U53_AG(T267, T260, T261, T301, split12_out_aaaa(T260, T261, T273, T266)) → U54_AG(T267, T260, T261, T301, T273, ms25_in_aag(T267, T266, .(T301, [])))
U53_AG(T267, T260, T261, T301, split12_out_aaaa(T260, T261, T273, T266)) → MS25_IN_AAG(T267, T266, .(T301, []))
U54_AG(T267, T260, T261, T301, T273, ms25_out_aag(T267, T266, .(T301, []))) → U55_AG(T267, T260, T261, T301, ms38_in_ag(T273, []))
U54_AG(T267, T260, T261, T301, T273, ms25_out_aag(T267, T266, .(T301, []))) → MS38_IN_AG(T273, [])
MS1_IN_AG(.(T267, .(T260, T261)), .(T318, [])) → U56_AG(T267, T260, T261, T318, split12_in_aaaa(T260, T261, T273, T266))
U56_AG(T267, T260, T261, T318, split12_out_aaaa(T260, T261, T273, T266)) → U57_AG(T267, T260, T261, T318, T273, ms25_in_aaa(T267, T266, .(T318, T323)))
U56_AG(T267, T260, T261, T318, split12_out_aaaa(T260, T261, T273, T266)) → MS25_IN_AAA(T267, T266, .(T318, T323))
U57_AG(T267, T260, T261, T318, T273, ms25_out_aaa(T267, T266, .(T318, T323))) → U58_AG(T267, T260, T261, T318, ms38_in_aa(T273, .(T322, T324)))
U57_AG(T267, T260, T261, T318, T273, ms25_out_aaa(T267, T266, .(T318, T323))) → MS38_IN_AA(T273, .(T322, T324))
U58_AG(T267, T260, T261, T318, ms38_out_aa(T273, .(T322, T324))) → U59_AG(T267, T260, T261, T318, less70_in_ga(T318, T322))
U58_AG(T267, T260, T261, T318, ms38_out_aa(T273, .(T322, T324))) → LESS70_IN_GA(T318, T322)
U56_AG(T267, T260, T261, T318, split12_out_aaaa(T260, T261, T273, T266)) → U60_AG(T267, T260, T261, T318, T273, ms25_in_aaa(T267, T266, .(T318, T327)))
U60_AG(T267, T260, T261, T318, T273, ms25_out_aaa(T267, T266, .(T318, T327))) → U61_AG(T267, T260, T261, T318, T327, ms38_in_aa(T273, .(T328, T329)))
U60_AG(T267, T260, T261, T318, T273, ms25_out_aaa(T267, T266, .(T318, T327))) → MS38_IN_AA(T273, .(T328, T329))
U61_AG(T267, T260, T261, T318, T327, ms38_out_aa(T273, .(T328, T329))) → U62_AG(T267, T260, T261, T318, T327, T328, T329, less70_in_ga(T318, T328))
U61_AG(T267, T260, T261, T318, T327, ms38_out_aa(T273, .(T328, T329))) → LESS70_IN_GA(T318, T328)
U62_AG(T267, T260, T261, T318, T327, T328, T329, less70_out_ga(T318, T328)) → U63_AG(T267, T260, T261, T318, merge93_in_aa(T327, .(T328, T329)))
U62_AG(T267, T260, T261, T318, T327, T328, T329, less70_out_ga(T318, T328)) → MERGE93_IN_AA(T327, .(T328, T329))
MS1_IN_AG(.(T267, .(T260, T261)), .(T356, [])) → U64_AG(T267, T260, T261, T356, split12_in_aaaa(T260, T261, T273, T266))
U64_AG(T267, T260, T261, T356, split12_out_aaaa(T260, T261, T273, T266)) → U65_AG(T267, T260, T261, T356, T273, ms25_in_aaa(T267, T266, .(T358, T360)))
U64_AG(T267, T260, T261, T356, split12_out_aaaa(T260, T261, T273, T266)) → MS25_IN_AAA(T267, T266, .(T358, T360))
U65_AG(T267, T260, T261, T356, T273, ms25_out_aaa(T267, T266, .(T358, T360))) → U66_AG(T267, T260, T261, T356, T358, ms38_in_aa(T273, .(T356, T359)))
U65_AG(T267, T260, T261, T356, T273, ms25_out_aaa(T267, T266, .(T358, T360))) → MS38_IN_AA(T273, .(T356, T359))
U66_AG(T267, T260, T261, T356, T358, ms38_out_aa(T273, .(T356, T359))) → U67_AG(T267, T260, T261, T356, less78_in_ga(T356, T358))
U66_AG(T267, T260, T261, T356, T358, ms38_out_aa(T273, .(T356, T359))) → LESS78_IN_GA(T356, T358)
U64_AG(T267, T260, T261, T356, split12_out_aaaa(T260, T261, T273, T266)) → U68_AG(T267, T260, T261, T356, T273, ms25_in_aaa(T267, T266, .(T363, T364)))
U68_AG(T267, T260, T261, T356, T273, ms25_out_aaa(T267, T266, .(T363, T364))) → U69_AG(T267, T260, T261, T356, T363, T364, ms38_in_aa(T273, .(T356, T365)))
U68_AG(T267, T260, T261, T356, T273, ms25_out_aaa(T267, T266, .(T363, T364))) → MS38_IN_AA(T273, .(T356, T365))
U69_AG(T267, T260, T261, T356, T363, T364, ms38_out_aa(T273, .(T356, T365))) → U70_AG(T267, T260, T261, T356, T363, T364, T365, less78_in_ga(T356, T363))
U69_AG(T267, T260, T261, T356, T363, T364, ms38_out_aa(T273, .(T356, T365))) → LESS78_IN_GA(T356, T363)
U70_AG(T267, T260, T261, T356, T363, T364, T365, less78_out_ga(T356, T363)) → U71_AG(T267, T260, T261, T356, merge93_in_aa(.(T363, T364), T365))
U70_AG(T267, T260, T261, T356, T363, T364, T365, less78_out_ga(T356, T363)) → MERGE93_IN_AA(.(T363, T364), T365)
MS1_IN_AG(.(T407, .(T405, T406)), T387) → U72_AG(T407, T405, T406, T387, split12_in_aaaa(T405, T406, X523, X522))
MS1_IN_AG(.(T407, .(T405, T406)), T387) → SPLIT12_IN_AAAA(T405, T406, X523, X522)
MS1_IN_AG(.(T412, .(T405, T406)), T387) → U73_AG(T412, T405, T406, T387, split12_in_aaaa(T405, T406, T410, T411))
U73_AG(T412, T405, T406, T387, split12_out_aaaa(T405, T406, T410, T411)) → U74_AG(T412, T405, T406, T387, ms25_in_aaa(T412, T411, X494))
U73_AG(T412, T405, T406, T387, split12_out_aaaa(T405, T406, T410, T411)) → MS25_IN_AAA(T412, T411, X494)
MS1_IN_AG(.(T412, .(T405, T406)), T387) → U75_AG(T412, T405, T406, T387, split12_in_aaaa(T405, T406, T420, T411))
U75_AG(T412, T405, T406, T387, split12_out_aaaa(T405, T406, T420, T411)) → U76_AG(T412, T405, T406, T387, T420, ms25_in_aaa(T412, T411, T419))
U75_AG(T412, T405, T406, T387, split12_out_aaaa(T405, T406, T420, T411)) → MS25_IN_AAA(T412, T411, T419)
U76_AG(T412, T405, T406, T387, T420, ms25_out_aaa(T412, T411, T419)) → U77_AG(T412, T405, T406, T387, ms38_in_aa(T420, X495))
U76_AG(T412, T405, T406, T387, T420, ms25_out_aaa(T412, T411, T419)) → MS38_IN_AA(T420, X495)
MS1_IN_AG(.(T412, .(T405, T406)), T435) → U78_AG(T412, T405, T406, T435, split12_in_aaaa(T405, T406, T420, T411))
U78_AG(T412, T405, T406, T435, split12_out_aaaa(T405, T406, T420, T411)) → U79_AG(T412, T405, T406, T435, T420, ms25_in_aag(T412, T411, []))
U78_AG(T412, T405, T406, T435, split12_out_aaaa(T405, T406, T420, T411)) → MS25_IN_AAG(T412, T411, [])
U79_AG(T412, T405, T406, T435, T420, ms25_out_aag(T412, T411, [])) → U80_AG(T412, T405, T406, T435, ms38_in_ag(T420, T435))
U79_AG(T412, T405, T406, T435, T420, ms25_out_aag(T412, T411, [])) → MS38_IN_AG(T420, T435)
MS1_IN_AG(.(T412, .(T405, T406)), T440) → U81_AG(T412, T405, T406, T440, split12_in_aaaa(T405, T406, T420, T411))
U81_AG(T412, T405, T406, T440, split12_out_aaaa(T405, T406, T420, T411)) → U82_AG(T412, T405, T406, T440, T420, ms25_in_aag(T412, T411, T440))
U81_AG(T412, T405, T406, T440, split12_out_aaaa(T405, T406, T420, T411)) → MS25_IN_AAG(T412, T411, T440)
U82_AG(T412, T405, T406, T440, T420, ms25_out_aag(T412, T411, T440)) → U83_AG(T412, T405, T406, T440, ms38_in_ag(T420, []))
U82_AG(T412, T405, T406, T440, T420, ms25_out_aag(T412, T411, T440)) → MS38_IN_AG(T420, [])
MS1_IN_AG(.(T412, .(T405, T406)), .(T461, T465)) → U84_AG(T412, T405, T406, T461, T465, split12_in_aaaa(T405, T406, T420, T411))
MS1_IN_AG(.(T412, .(T405, T406)), .(T461, T465)) → SPLIT12_IN_AAAA(T405, T406, T420, T411)
U84_AG(T412, T405, T406, T461, T465, split12_out_aaaa(T405, T406, T420, T411)) → U85_AG(T412, T405, T406, T461, T465, T420, ms25_in_aaa(T412, T411, .(T461, T467)))
U84_AG(T412, T405, T406, T461, T465, split12_out_aaaa(T405, T406, T420, T411)) → MS25_IN_AAA(T412, T411, .(T461, T467))
U85_AG(T412, T405, T406, T461, T465, T420, ms25_out_aaa(T412, T411, .(T461, T467))) → U86_AG(T412, T405, T406, T461, T465, ms38_in_aa(T420, .(T466, T468)))
U85_AG(T412, T405, T406, T461, T465, T420, ms25_out_aaa(T412, T411, .(T461, T467))) → MS38_IN_AA(T420, .(T466, T468))
U86_AG(T412, T405, T406, T461, T465, ms38_out_aa(T420, .(T466, T468))) → U87_AG(T412, T405, T406, T461, T465, less70_in_ga(T461, T466))
U86_AG(T412, T405, T406, T461, T465, ms38_out_aa(T420, .(T466, T468))) → LESS70_IN_GA(T461, T466)
MS1_IN_AG(.(T412, .(T405, T406)), .(T461, .(T490, T491))) → U88_AG(T412, T405, T406, T461, T490, T491, split12_in_aaaa(T405, T406, T420, T411))
MS1_IN_AG(.(T412, .(T405, T406)), .(T461, .(T490, T491))) → SPLIT12_IN_AAAA(T405, T406, T420, T411)
U88_AG(T412, T405, T406, T461, T490, T491, split12_out_aaaa(T405, T406, T420, T411)) → U89_AG(T412, T405, T406, T461, T490, T491, T420, ms25_in_aag(T412, T411, .(T461, [])))
U88_AG(T412, T405, T406, T461, T490, T491, split12_out_aaaa(T405, T406, T420, T411)) → MS25_IN_AAG(T412, T411, .(T461, []))
U89_AG(T412, T405, T406, T461, T490, T491, T420, ms25_out_aag(T412, T411, .(T461, []))) → U90_AG(T412, T405, T406, T461, T490, T491, ms38_in_ag(T420, .(T490, T491)))
U89_AG(T412, T405, T406, T461, T490, T491, T420, ms25_out_aag(T412, T411, .(T461, []))) → MS38_IN_AG(T420, .(T490, T491))
U90_AG(T412, T405, T406, T461, T490, T491, ms38_out_ag(T420, .(T490, T491))) → U91_AG(T412, T405, T406, T461, T490, T491, less70_in_gg(T461, T490))
U90_AG(T412, T405, T406, T461, T490, T491, ms38_out_ag(T420, .(T490, T491))) → LESS70_IN_GG(T461, T490)
LESS70_IN_GG(s(T161), T162) → U22_GG(T161, T162, less78_in_gg(T161, T162))
LESS70_IN_GG(s(T161), T162) → LESS78_IN_GG(T161, T162)
LESS78_IN_GG(s(T176), s(T177)) → U20_GG(T176, T177, less78_in_gg(T176, T177))
LESS78_IN_GG(s(T176), s(T177)) → LESS78_IN_GG(T176, T177)
MS1_IN_AG(.(T412, .(T405, T406)), .(T461, .(T513, T517))) → U92_AG(T412, T405, T406, T461, T513, T517, split12_in_aaaa(T405, T406, T420, T411))
U92_AG(T412, T405, T406, T461, T513, T517, split12_out_aaaa(T405, T406, T420, T411)) → U93_AG(T412, T405, T406, T461, T513, T517, T420, ms25_in_aaa(T412, T411, .(T461, .(T513, T519))))
U92_AG(T412, T405, T406, T461, T513, T517, split12_out_aaaa(T405, T406, T420, T411)) → MS25_IN_AAA(T412, T411, .(T461, .(T513, T519)))
U93_AG(T412, T405, T406, T461, T513, T517, T420, ms25_out_aaa(T412, T411, .(T461, .(T513, T519)))) → U94_AG(T412, T405, T406, T461, T513, T517, T519, ms38_in_aa(T420, .(T518, T520)))
U93_AG(T412, T405, T406, T461, T513, T517, T420, ms25_out_aaa(T412, T411, .(T461, .(T513, T519)))) → MS38_IN_AA(T420, .(T518, T520))
U94_AG(T412, T405, T406, T461, T513, T517, T519, ms38_out_aa(T420, .(T518, T520))) → U95_AG(T412, T405, T406, T461, T513, T517, T519, T518, T520, less70_in_ga(T461, T518))
U94_AG(T412, T405, T406, T461, T513, T517, T519, ms38_out_aa(T420, .(T518, T520))) → LESS70_IN_GA(T461, T518)
U95_AG(T412, T405, T406, T461, T513, T517, T519, T518, T520, less70_out_ga(T461, T518)) → U96_AG(T412, T405, T406, T461, T513, T517, p179_in_gaaag(T513, T518, T519, T520, T517))
U95_AG(T412, T405, T406, T461, T513, T517, T519, T518, T520, less70_out_ga(T461, T518)) → P179_IN_GAAAG(T513, T518, T519, T520, T517)
P179_IN_GAAAG(T513, T518, T519, T520, T517) → U23_GAAAG(T513, T518, T519, T520, T517, less70_in_ga(T513, T518))
P179_IN_GAAAG(T513, T518, T519, T520, T517) → LESS70_IN_GA(T513, T518)
P179_IN_GAAAG(T513, T540, [], T541, .(T540, T541)) → U24_GAAAG(T513, T540, T541, less70_in_gg(T513, T540))
P179_IN_GAAAG(T513, T540, [], T541, .(T540, T541)) → LESS70_IN_GG(T513, T540)
P179_IN_GAAAG(T513, T568, .(T563, T569), T570, .(T563, T567)) → U25_GAAAG(T513, T568, T563, T569, T570, T567, less70_in_ga(T513, T568))
P179_IN_GAAAG(T513, T568, .(T563, T569), T570, .(T563, T567)) → LESS70_IN_GA(T513, T568)
U25_GAAAG(T513, T568, T563, T569, T570, T567, less70_out_ga(T513, T568)) → U26_GAAAG(T513, T568, T563, T569, T570, T567, p179_in_gaaag(T563, T568, T569, T570, T567))
U25_GAAAG(T513, T568, T563, T569, T570, T567, less70_out_ga(T513, T568)) → P179_IN_GAAAG(T563, T568, T569, T570, T567)
P179_IN_GAAAG(T513, T585, .(T588, T590), T589, .(T585, T587)) → U27_GAAAG(T513, T585, T588, T590, T589, T587, less70_in_gg(T513, T585))
P179_IN_GAAAG(T513, T585, .(T588, T590), T589, .(T585, T587)) → LESS70_IN_GG(T513, T585)
U27_GAAAG(T513, T585, T588, T590, T589, T587, less70_out_gg(T513, T585)) → U28_GAAAG(T513, T585, T588, T590, T589, T587, p194_in_gaaag(T585, T588, T590, T589, T587))
U27_GAAAG(T513, T585, T588, T590, T589, T587, less70_out_gg(T513, T585)) → P194_IN_GAAAG(T585, T588, T590, T589, T587)
P194_IN_GAAAG(T585, T588, T590, T589, T587) → U29_GAAAG(T585, T588, T590, T589, T587, less78_in_ga(T585, T588))
P194_IN_GAAAG(T585, T588, T590, T589, T587) → LESS78_IN_GA(T585, T588)
P194_IN_GAAAG(T585, T610, T611, [], .(T610, T611)) → U30_GAAAG(T585, T610, T611, less78_in_gg(T585, T610))
P194_IN_GAAAG(T585, T610, T611, [], .(T610, T611)) → LESS78_IN_GG(T585, T610)
P194_IN_GAAAG(T585, T632, T638, .(T637, T639), .(T632, T636)) → U31_GAAAG(T585, T632, T638, T637, T639, T636, less78_in_gg(T585, T632))
P194_IN_GAAAG(T585, T632, T638, .(T637, T639), .(T632, T636)) → LESS78_IN_GG(T585, T632)
U31_GAAAG(T585, T632, T638, T637, T639, T636, less78_out_gg(T585, T632)) → U32_GAAAG(T585, T632, T638, T637, T639, T636, p179_in_gaaag(T632, T637, T638, T639, T636))
U31_GAAAG(T585, T632, T638, T637, T639, T636, less78_out_gg(T585, T632)) → P179_IN_GAAAG(T632, T637, T638, T639, T636)
P194_IN_GAAAG(T585, T657, T659, .(T654, T658), .(T654, T656)) → U33_GAAAG(T585, T657, T659, T654, T658, T656, less78_in_ga(T585, T657))
P194_IN_GAAAG(T585, T657, T659, .(T654, T658), .(T654, T656)) → LESS78_IN_GA(T585, T657)
U33_GAAAG(T585, T657, T659, T654, T658, T656, less78_out_ga(T585, T657)) → U34_GAAAG(T585, T657, T659, T654, T658, T656, p194_in_gaaag(T654, T657, T659, T658, T656))
U33_GAAAG(T585, T657, T659, T654, T658, T656, less78_out_ga(T585, T657)) → P194_IN_GAAAG(T654, T657, T659, T658, T656)
MS1_IN_AG(.(T412, .(T405, T406)), .(T461, .(T674, T676))) → U97_AG(T412, T405, T406, T461, T674, T676, split12_in_aaaa(T405, T406, T420, T411))
U97_AG(T412, T405, T406, T461, T674, T676, split12_out_aaaa(T405, T406, T420, T411)) → U98_AG(T412, T405, T406, T461, T674, T676, T420, ms25_in_aaa(T412, T411, .(T461, .(T677, T679))))
U97_AG(T412, T405, T406, T461, T674, T676, split12_out_aaaa(T405, T406, T420, T411)) → MS25_IN_AAA(T412, T411, .(T461, .(T677, T679)))
U98_AG(T412, T405, T406, T461, T674, T676, T420, ms25_out_aaa(T412, T411, .(T461, .(T677, T679)))) → U99_AG(T412, T405, T406, T461, T674, T676, T677, T679, ms38_in_aa(T420, .(T674, T678)))
U98_AG(T412, T405, T406, T461, T674, T676, T420, ms25_out_aaa(T412, T411, .(T461, .(T677, T679)))) → MS38_IN_AA(T420, .(T674, T678))
U99_AG(T412, T405, T406, T461, T674, T676, T677, T679, ms38_out_aa(T420, .(T674, T678))) → U100_AG(T412, T405, T406, T461, T674, T676, T677, T679, T678, less70_in_gg(T461, T674))
U99_AG(T412, T405, T406, T461, T674, T676, T677, T679, ms38_out_aa(T420, .(T674, T678))) → LESS70_IN_GG(T461, T674)
U100_AG(T412, T405, T406, T461, T674, T676, T677, T679, T678, less70_out_gg(T461, T674)) → U101_AG(T412, T405, T406, T461, T674, T676, p194_in_gaaag(T674, T677, T679, T678, T676))
U100_AG(T412, T405, T406, T461, T674, T676, T677, T679, T678, less70_out_gg(T461, T674)) → P194_IN_GAAAG(T674, T677, T679, T678, T676)
MS1_IN_AG(.(T412, .(T405, T406)), .(T694, T696)) → U102_AG(T412, T405, T406, T694, T696, split12_in_aaaa(T405, T406, T420, T411))
U102_AG(T412, T405, T406, T694, T696, split12_out_aaaa(T405, T406, T420, T411)) → U103_AG(T412, T405, T406, T694, T696, T420, ms25_in_aaa(T412, T411, .(T697, T699)))
U102_AG(T412, T405, T406, T694, T696, split12_out_aaaa(T405, T406, T420, T411)) → MS25_IN_AAA(T412, T411, .(T697, T699))
U103_AG(T412, T405, T406, T694, T696, T420, ms25_out_aaa(T412, T411, .(T697, T699))) → U104_AG(T412, T405, T406, T694, T696, T697, T699, ms38_in_aa(T420, .(T694, T698)))
U103_AG(T412, T405, T406, T694, T696, T420, ms25_out_aaa(T412, T411, .(T697, T699))) → MS38_IN_AA(T420, .(T694, T698))
U104_AG(T412, T405, T406, T694, T696, T697, T699, ms38_out_aa(T420, .(T694, T698))) → U105_AG(T412, T405, T406, T694, T696, p194_in_gaaag(T694, T697, T699, T698, T696))
U104_AG(T412, T405, T406, T694, T696, T697, T699, ms38_out_aa(T420, .(T694, T698))) → P194_IN_GAAAG(T694, T697, T699, T698, T696)
ms1_in_ag([], []) → ms1_out_ag([], [])
ms1_in_ag(.(T29, .(T27, T28)), []) → U35_ag(T29, T27, T28, split12_in_aaaa(T27, T28, X42, X41))
split12_in_aaaa(T42, T44, .(T42, X71), X72) → U2_aaaa(T42, T44, X71, X72, split16_in_aaa(T44, X72, X71))
split16_in_aaa([], [], []) → split16_out_aaa([], [], [])
split16_in_aaa(.(T49, T51), .(T49, X89), X90) → U1_aaa(T49, T51, X89, X90, split16_in_aaa(T51, X90, X89))
U1_aaa(T49, T51, X89, X90, split16_out_aaa(T51, X90, X89)) → split16_out_aaa(.(T49, T51), .(T49, X89), X90)
U2_aaaa(T42, T44, X71, X72, split16_out_aaa(T44, X72, X71)) → split12_out_aaaa(T42, T44, .(T42, X71), X72)
U35_ag(T29, T27, T28, split12_out_aaaa(T27, T28, X42, X41)) → ms1_out_ag(.(T29, .(T27, T28)), [])
ms1_in_ag(.(T34, .(T27, T28)), []) → U36_ag(T34, T27, T28, split12_in_aaaa(T27, T28, T32, T33))
U36_ag(T34, T27, T28, split12_out_aaaa(T27, T28, T32, T33)) → U37_ag(T34, T27, T28, ms25_in_aaa(T34, T33, X13))
ms25_in_aaa(T62, [], .(T62, [])) → ms25_out_aaa(T62, [], .(T62, []))
ms25_in_aaa(T72, .(T73, T74), X127) → U21_aaa(T72, T73, T74, X127, p34_in_aaaaaaaa(T72, T73, T74, X123, X124, X125, X126, X127))
p34_in_aaaaaaaa(T72, T73, T74, X123, X124, X125, X126, X127) → U3_aaaaaaaa(T72, T73, T74, X123, X124, X125, X126, X127, split12_in_aaaa(T72, .(T73, T74), X123, X124))
U3_aaaaaaaa(T72, T73, T74, X123, X124, X125, X126, X127, split12_out_aaaa(T72, .(T73, T74), X123, X124)) → p34_out_aaaaaaaa(T72, T73, T74, X123, X124, X125, X126, X127)
p34_in_aaaaaaaa(T72, T73, T74, T78, T79, X125, X126, X127) → U4_aaaaaaaa(T72, T73, T74, T78, T79, X125, X126, X127, split12_in_aaaa(T72, .(T73, T74), T78, T79))
U4_aaaaaaaa(T72, T73, T74, T78, T79, X125, X126, X127, split12_out_aaaa(T72, .(T73, T74), T78, T79)) → U5_aaaaaaaa(T72, T73, T74, T78, T79, X125, X126, X127, ms38_in_aa(T78, X125))
ms38_in_aa([], []) → ms38_out_aa([], [])
ms38_in_aa(.(T89, []), .(T89, [])) → ms38_out_aa(.(T89, []), .(T89, []))
ms38_in_aa(.(T99, .(T100, T101)), X172) → U13_aa(T99, T100, T101, X172, p34_in_aaaaaaaa(T99, T100, T101, X168, X169, X170, X171, X172))
p34_in_aaaaaaaa(T72, T73, T74, T78, T84, T83, X126, X127) → U6_aaaaaaaa(T72, T73, T74, T78, T84, T83, X126, X127, split12_in_aaaa(T72, .(T73, T74), T78, T84))
U6_aaaaaaaa(T72, T73, T74, T78, T84, T83, X126, X127, split12_out_aaaa(T72, .(T73, T74), T78, T84)) → U7_aaaaaaaa(T72, T73, T74, T78, T84, T83, X126, X127, ms38_in_aa(T78, T83))
U7_aaaaaaaa(T72, T73, T74, T78, T84, T83, X126, X127, ms38_out_aa(T78, T83)) → U8_aaaaaaaa(T72, T73, T74, T78, T84, T83, X126, X127, ms38_in_aa(T84, X126))
U8_aaaaaaaa(T72, T73, T74, T78, T84, T83, X126, X127, ms38_out_aa(T84, X126)) → p34_out_aaaaaaaa(T72, T73, T74, T78, T84, T83, X126, X127)
p34_in_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127) → U9_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127, split12_in_aaaa(T72, .(T73, T74), T78, T84))
U9_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127, split12_out_aaaa(T72, .(T73, T74), T78, T84)) → U10_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127, ms38_in_aa(T78, T106))
U10_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127, ms38_out_aa(T78, T106)) → U11_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127, ms38_in_aa(T84, T105))
U11_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127, ms38_out_aa(T84, T105)) → U12_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127, merge54_in_aaa(T106, T105, X127))
merge54_in_aaa([], T113, T113) → merge54_out_aaa([], T113, T113)
merge54_in_aaa(T118, [], T118) → merge54_out_aaa(T118, [], T118)
merge54_in_aaa(.(T139, T141), .(T140, T142), .(T139, X226)) → U14_aaa(T139, T141, T140, T142, X226, less70_in_aa(T139, T140))
less70_in_aa(0, T154) → less70_out_aa(0, T154)
less70_in_aa(s(T161), T162) → U22_aa(T161, T162, less78_in_aa(T161, T162))
less78_in_aa(0, s(T169)) → less78_out_aa(0, s(T169))
less78_in_aa(s(T176), s(T177)) → U20_aa(T176, T177, less78_in_aa(T176, T177))
U20_aa(T176, T177, less78_out_aa(T176, T177)) → less78_out_aa(s(T176), s(T177))
U22_aa(T161, T162, less78_out_aa(T161, T162)) → less70_out_aa(s(T161), T162)
U14_aaa(T139, T141, T140, T142, X226, less70_out_aa(T139, T140)) → merge54_out_aaa(.(T139, T141), .(T140, T142), .(T139, X226))
merge54_in_aaa(.(T139, T145), .(T146, T147), .(T139, X226)) → U15_aaa(T139, T145, T146, T147, X226, less70_in_aa(T139, T146))
U15_aaa(T139, T145, T146, T147, X226, less70_out_aa(T139, T146)) → U16_aaa(T139, T145, T146, T147, X226, merge54_in_aaa(T145, .(T146, T147), X226))
merge54_in_aaa(.(T197, T199), .(T196, T198), .(T196, X287)) → U17_aaa(T197, T199, T196, T198, X287, less78_in_aa(T196, T197))
U17_aaa(T197, T199, T196, T198, X287, less78_out_aa(T196, T197)) → merge54_out_aaa(.(T197, T199), .(T196, T198), .(T196, X287))
merge54_in_aaa(.(T202, T203), .(T196, T204), .(T196, X287)) → U18_aaa(T202, T203, T196, T204, X287, less78_in_aa(T196, T202))
U18_aaa(T202, T203, T196, T204, X287, less78_out_aa(T196, T202)) → U19_aaa(T202, T203, T196, T204, X287, merge54_in_aaa(.(T202, T203), T204, X287))
U19_aaa(T202, T203, T196, T204, X287, merge54_out_aaa(.(T202, T203), T204, X287)) → merge54_out_aaa(.(T202, T203), .(T196, T204), .(T196, X287))
U16_aaa(T139, T145, T146, T147, X226, merge54_out_aaa(T145, .(T146, T147), X226)) → merge54_out_aaa(.(T139, T145), .(T146, T147), .(T139, X226))
U12_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127, merge54_out_aaa(T106, T105, X127)) → p34_out_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127)
U13_aa(T99, T100, T101, X172, p34_out_aaaaaaaa(T99, T100, T101, X168, X169, X170, X171, X172)) → ms38_out_aa(.(T99, .(T100, T101)), X172)
U5_aaaaaaaa(T72, T73, T74, T78, T79, X125, X126, X127, ms38_out_aa(T78, X125)) → p34_out_aaaaaaaa(T72, T73, T74, T78, T79, X125, X126, X127)
U21_aaa(T72, T73, T74, X127, p34_out_aaaaaaaa(T72, T73, T74, X123, X124, X125, X126, X127)) → ms25_out_aaa(T72, .(T73, T74), X127)
U37_ag(T34, T27, T28, ms25_out_aaa(T34, T33, X13)) → ms1_out_ag(.(T34, .(T27, T28)), [])
ms1_in_ag(.(T34, .(T27, T28)), []) → U38_ag(T34, T27, T28, split12_in_aaaa(T27, T28, T55, T33))
U38_ag(T34, T27, T28, split12_out_aaaa(T27, T28, T55, T33)) → U39_ag(T34, T27, T28, T55, ms25_in_aaa(T34, T33, T54))
U39_ag(T34, T27, T28, T55, ms25_out_aaa(T34, T33, T54)) → U40_ag(T34, T27, T28, ms38_in_aa(T55, X14))
U40_ag(T34, T27, T28, ms38_out_aa(T55, X14)) → ms1_out_ag(.(T34, .(T27, T28)), [])
U38_ag(T34, T27, T28, split12_out_aaaa(T27, T28, T55, T33)) → U41_ag(T34, T27, T28, T55, ms25_in_aaa(T34, T33, T212))
U41_ag(T34, T27, T28, T55, ms25_out_aaa(T34, T33, T212)) → U42_ag(T34, T27, T28, T212, ms38_in_aa(T55, T211))
U42_ag(T34, T27, T28, T212, ms38_out_aa(T55, T211)) → U43_ag(T34, T27, T28, merge93_in_aa(T212, T211))
merge93_in_aa([], []) → merge93_out_aa([], [])
U43_ag(T34, T27, T28, merge93_out_aa(T212, T211)) → ms1_out_ag(.(T34, .(T27, T28)), [])
ms1_in_ag(.(T234, []), .(T234, [])) → ms1_out_ag(.(T234, []), .(T234, []))
ms1_in_ag(.(T262, .(T260, T261)), .(T242, [])) → U44_ag(T262, T260, T261, T242, split12_in_aaaa(T260, T261, X367, X366))
U44_ag(T262, T260, T261, T242, split12_out_aaaa(T260, T261, X367, X366)) → ms1_out_ag(.(T262, .(T260, T261)), .(T242, []))
ms1_in_ag(.(T267, .(T260, T261)), .(T242, [])) → U45_ag(T267, T260, T261, T242, split12_in_aaaa(T260, T261, T265, T266))
U45_ag(T267, T260, T261, T242, split12_out_aaaa(T260, T261, T265, T266)) → U46_ag(T267, T260, T261, T242, ms25_in_aaa(T267, T266, X338))
U46_ag(T267, T260, T261, T242, ms25_out_aaa(T267, T266, X338)) → ms1_out_ag(.(T267, .(T260, T261)), .(T242, []))
ms1_in_ag(.(T267, .(T260, T261)), .(T242, [])) → U47_ag(T267, T260, T261, T242, split12_in_aaaa(T260, T261, T273, T266))
U47_ag(T267, T260, T261, T242, split12_out_aaaa(T260, T261, T273, T266)) → U48_ag(T267, T260, T261, T242, T273, ms25_in_aaa(T267, T266, T272))
U48_ag(T267, T260, T261, T242, T273, ms25_out_aaa(T267, T266, T272)) → U49_ag(T267, T260, T261, T242, ms38_in_aa(T273, X339))
U49_ag(T267, T260, T261, T242, ms38_out_aa(T273, X339)) → ms1_out_ag(.(T267, .(T260, T261)), .(T242, []))
ms1_in_ag(.(T267, .(T260, T261)), .(T291, [])) → U50_ag(T267, T260, T261, T291, split12_in_aaaa(T260, T261, T273, T266))
U50_ag(T267, T260, T261, T291, split12_out_aaaa(T260, T261, T273, T266)) → U51_ag(T267, T260, T261, T291, T273, ms25_in_aag(T267, T266, []))
ms25_in_aag(T62, [], .(T62, [])) → ms25_out_aag(T62, [], .(T62, []))
ms25_in_aag(T72, .(T73, T74), X127) → U21_aag(T72, T73, T74, X127, p34_in_aaaaaaag(T72, T73, T74, X123, X124, X125, X126, X127))
p34_in_aaaaaaag(T72, T73, T74, X123, X124, X125, X126, X127) → U3_aaaaaaag(T72, T73, T74, X123, X124, X125, X126, X127, split12_in_aaaa(T72, .(T73, T74), X123, X124))
U3_aaaaaaag(T72, T73, T74, X123, X124, X125, X126, X127, split12_out_aaaa(T72, .(T73, T74), X123, X124)) → p34_out_aaaaaaag(T72, T73, T74, X123, X124, X125, X126, X127)
p34_in_aaaaaaag(T72, T73, T74, T78, T79, X125, X126, X127) → U4_aaaaaaag(T72, T73, T74, T78, T79, X125, X126, X127, split12_in_aaaa(T72, .(T73, T74), T78, T79))
U4_aaaaaaag(T72, T73, T74, T78, T79, X125, X126, X127, split12_out_aaaa(T72, .(T73, T74), T78, T79)) → U5_aaaaaaag(T72, T73, T74, T78, T79, X125, X126, X127, ms38_in_aa(T78, X125))
U5_aaaaaaag(T72, T73, T74, T78, T79, X125, X126, X127, ms38_out_aa(T78, X125)) → p34_out_aaaaaaag(T72, T73, T74, T78, T79, X125, X126, X127)
p34_in_aaaaaaag(T72, T73, T74, T78, T84, T83, X126, X127) → U6_aaaaaaag(T72, T73, T74, T78, T84, T83, X126, X127, split12_in_aaaa(T72, .(T73, T74), T78, T84))
U6_aaaaaaag(T72, T73, T74, T78, T84, T83, X126, X127, split12_out_aaaa(T72, .(T73, T74), T78, T84)) → U7_aaaaaaag(T72, T73, T74, T78, T84, T83, X126, X127, ms38_in_aa(T78, T83))
U7_aaaaaaag(T72, T73, T74, T78, T84, T83, X126, X127, ms38_out_aa(T78, T83)) → U8_aaaaaaag(T72, T73, T74, T78, T84, T83, X126, X127, ms38_in_aa(T84, X126))
U8_aaaaaaag(T72, T73, T74, T78, T84, T83, X126, X127, ms38_out_aa(T84, X126)) → p34_out_aaaaaaag(T72, T73, T74, T78, T84, T83, X126, X127)
p34_in_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127) → U9_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127, split12_in_aaaa(T72, .(T73, T74), T78, T84))
U9_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127, split12_out_aaaa(T72, .(T73, T74), T78, T84)) → U10_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127, ms38_in_aa(T78, T106))
U10_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127, ms38_out_aa(T78, T106)) → U11_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127, ms38_in_aa(T84, T105))
U11_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127, ms38_out_aa(T84, T105)) → U12_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127, merge54_in_aag(T106, T105, X127))
merge54_in_aag([], T113, T113) → merge54_out_aag([], T113, T113)
merge54_in_aag(T118, [], T118) → merge54_out_aag(T118, [], T118)
merge54_in_aag(.(T139, T141), .(T140, T142), .(T139, X226)) → U14_aag(T139, T141, T140, T142, X226, less70_in_ga(T139, T140))
less70_in_ga(0, T154) → less70_out_ga(0, T154)
less70_in_ga(s(T161), T162) → U22_ga(T161, T162, less78_in_ga(T161, T162))
less78_in_ga(0, s(T169)) → less78_out_ga(0, s(T169))
less78_in_ga(s(T176), s(T177)) → U20_ga(T176, T177, less78_in_ga(T176, T177))
U20_ga(T176, T177, less78_out_ga(T176, T177)) → less78_out_ga(s(T176), s(T177))
U22_ga(T161, T162, less78_out_ga(T161, T162)) → less70_out_ga(s(T161), T162)
U14_aag(T139, T141, T140, T142, X226, less70_out_ga(T139, T140)) → merge54_out_aag(.(T139, T141), .(T140, T142), .(T139, X226))
merge54_in_aag(.(T139, T145), .(T146, T147), .(T139, X226)) → U15_aag(T139, T145, T146, T147, X226, less70_in_ga(T139, T146))
U15_aag(T139, T145, T146, T147, X226, less70_out_ga(T139, T146)) → U16_aag(T139, T145, T146, T147, X226, merge54_in_aag(T145, .(T146, T147), X226))
merge54_in_aag(.(T197, T199), .(T196, T198), .(T196, X287)) → U17_aag(T197, T199, T196, T198, X287, less78_in_ga(T196, T197))
U17_aag(T197, T199, T196, T198, X287, less78_out_ga(T196, T197)) → merge54_out_aag(.(T197, T199), .(T196, T198), .(T196, X287))
merge54_in_aag(.(T202, T203), .(T196, T204), .(T196, X287)) → U18_aag(T202, T203, T196, T204, X287, less78_in_ga(T196, T202))
U18_aag(T202, T203, T196, T204, X287, less78_out_ga(T196, T202)) → U19_aag(T202, T203, T196, T204, X287, merge54_in_aag(.(T202, T203), T204, X287))
U19_aag(T202, T203, T196, T204, X287, merge54_out_aag(.(T202, T203), T204, X287)) → merge54_out_aag(.(T202, T203), .(T196, T204), .(T196, X287))
U16_aag(T139, T145, T146, T147, X226, merge54_out_aag(T145, .(T146, T147), X226)) → merge54_out_aag(.(T139, T145), .(T146, T147), .(T139, X226))
U12_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127, merge54_out_aag(T106, T105, X127)) → p34_out_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127)
U21_aag(T72, T73, T74, X127, p34_out_aaaaaaag(T72, T73, T74, X123, X124, X125, X126, X127)) → ms25_out_aag(T72, .(T73, T74), X127)
U51_ag(T267, T260, T261, T291, T273, ms25_out_aag(T267, T266, [])) → U52_ag(T267, T260, T261, T291, ms38_in_ag(T273, .(T291, [])))
ms38_in_ag([], []) → ms38_out_ag([], [])
ms38_in_ag(.(T89, []), .(T89, [])) → ms38_out_ag(.(T89, []), .(T89, []))
ms38_in_ag(.(T99, .(T100, T101)), X172) → U13_ag(T99, T100, T101, X172, p34_in_aaaaaaag(T99, T100, T101, X168, X169, X170, X171, X172))
U13_ag(T99, T100, T101, X172, p34_out_aaaaaaag(T99, T100, T101, X168, X169, X170, X171, X172)) → ms38_out_ag(.(T99, .(T100, T101)), X172)
U52_ag(T267, T260, T261, T291, ms38_out_ag(T273, .(T291, []))) → ms1_out_ag(.(T267, .(T260, T261)), .(T291, []))
ms1_in_ag(.(T267, .(T260, T261)), .(T301, [])) → U53_ag(T267, T260, T261, T301, split12_in_aaaa(T260, T261, T273, T266))
U53_ag(T267, T260, T261, T301, split12_out_aaaa(T260, T261, T273, T266)) → U54_ag(T267, T260, T261, T301, T273, ms25_in_aag(T267, T266, .(T301, [])))
U54_ag(T267, T260, T261, T301, T273, ms25_out_aag(T267, T266, .(T301, []))) → U55_ag(T267, T260, T261, T301, ms38_in_ag(T273, []))
U55_ag(T267, T260, T261, T301, ms38_out_ag(T273, [])) → ms1_out_ag(.(T267, .(T260, T261)), .(T301, []))
ms1_in_ag(.(T267, .(T260, T261)), .(T318, [])) → U56_ag(T267, T260, T261, T318, split12_in_aaaa(T260, T261, T273, T266))
U56_ag(T267, T260, T261, T318, split12_out_aaaa(T260, T261, T273, T266)) → U57_ag(T267, T260, T261, T318, T273, ms25_in_aaa(T267, T266, .(T318, T323)))
U57_ag(T267, T260, T261, T318, T273, ms25_out_aaa(T267, T266, .(T318, T323))) → U58_ag(T267, T260, T261, T318, ms38_in_aa(T273, .(T322, T324)))
U58_ag(T267, T260, T261, T318, ms38_out_aa(T273, .(T322, T324))) → U59_ag(T267, T260, T261, T318, less70_in_ga(T318, T322))
U59_ag(T267, T260, T261, T318, less70_out_ga(T318, T322)) → ms1_out_ag(.(T267, .(T260, T261)), .(T318, []))
U56_ag(T267, T260, T261, T318, split12_out_aaaa(T260, T261, T273, T266)) → U60_ag(T267, T260, T261, T318, T273, ms25_in_aaa(T267, T266, .(T318, T327)))
U60_ag(T267, T260, T261, T318, T273, ms25_out_aaa(T267, T266, .(T318, T327))) → U61_ag(T267, T260, T261, T318, T327, ms38_in_aa(T273, .(T328, T329)))
U61_ag(T267, T260, T261, T318, T327, ms38_out_aa(T273, .(T328, T329))) → U62_ag(T267, T260, T261, T318, T327, T328, T329, less70_in_ga(T318, T328))
U62_ag(T267, T260, T261, T318, T327, T328, T329, less70_out_ga(T318, T328)) → U63_ag(T267, T260, T261, T318, merge93_in_aa(T327, .(T328, T329)))
U63_ag(T267, T260, T261, T318, merge93_out_aa(T327, .(T328, T329))) → ms1_out_ag(.(T267, .(T260, T261)), .(T318, []))
ms1_in_ag(.(T267, .(T260, T261)), .(T356, [])) → U64_ag(T267, T260, T261, T356, split12_in_aaaa(T260, T261, T273, T266))
U64_ag(T267, T260, T261, T356, split12_out_aaaa(T260, T261, T273, T266)) → U65_ag(T267, T260, T261, T356, T273, ms25_in_aaa(T267, T266, .(T358, T360)))
U65_ag(T267, T260, T261, T356, T273, ms25_out_aaa(T267, T266, .(T358, T360))) → U66_ag(T267, T260, T261, T356, T358, ms38_in_aa(T273, .(T356, T359)))
U66_ag(T267, T260, T261, T356, T358, ms38_out_aa(T273, .(T356, T359))) → U67_ag(T267, T260, T261, T356, less78_in_ga(T356, T358))
U67_ag(T267, T260, T261, T356, less78_out_ga(T356, T358)) → ms1_out_ag(.(T267, .(T260, T261)), .(T356, []))
U64_ag(T267, T260, T261, T356, split12_out_aaaa(T260, T261, T273, T266)) → U68_ag(T267, T260, T261, T356, T273, ms25_in_aaa(T267, T266, .(T363, T364)))
U68_ag(T267, T260, T261, T356, T273, ms25_out_aaa(T267, T266, .(T363, T364))) → U69_ag(T267, T260, T261, T356, T363, T364, ms38_in_aa(T273, .(T356, T365)))
U69_ag(T267, T260, T261, T356, T363, T364, ms38_out_aa(T273, .(T356, T365))) → U70_ag(T267, T260, T261, T356, T363, T364, T365, less78_in_ga(T356, T363))
U70_ag(T267, T260, T261, T356, T363, T364, T365, less78_out_ga(T356, T363)) → U71_ag(T267, T260, T261, T356, merge93_in_aa(.(T363, T364), T365))
U71_ag(T267, T260, T261, T356, merge93_out_aa(.(T363, T364), T365)) → ms1_out_ag(.(T267, .(T260, T261)), .(T356, []))
ms1_in_ag(.(T407, .(T405, T406)), T387) → U72_ag(T407, T405, T406, T387, split12_in_aaaa(T405, T406, X523, X522))
U72_ag(T407, T405, T406, T387, split12_out_aaaa(T405, T406, X523, X522)) → ms1_out_ag(.(T407, .(T405, T406)), T387)
ms1_in_ag(.(T412, .(T405, T406)), T387) → U73_ag(T412, T405, T406, T387, split12_in_aaaa(T405, T406, T410, T411))
U73_ag(T412, T405, T406, T387, split12_out_aaaa(T405, T406, T410, T411)) → U74_ag(T412, T405, T406, T387, ms25_in_aaa(T412, T411, X494))
U74_ag(T412, T405, T406, T387, ms25_out_aaa(T412, T411, X494)) → ms1_out_ag(.(T412, .(T405, T406)), T387)
ms1_in_ag(.(T412, .(T405, T406)), T387) → U75_ag(T412, T405, T406, T387, split12_in_aaaa(T405, T406, T420, T411))
U75_ag(T412, T405, T406, T387, split12_out_aaaa(T405, T406, T420, T411)) → U76_ag(T412, T405, T406, T387, T420, ms25_in_aaa(T412, T411, T419))
U76_ag(T412, T405, T406, T387, T420, ms25_out_aaa(T412, T411, T419)) → U77_ag(T412, T405, T406, T387, ms38_in_aa(T420, X495))
U77_ag(T412, T405, T406, T387, ms38_out_aa(T420, X495)) → ms1_out_ag(.(T412, .(T405, T406)), T387)
ms1_in_ag(.(T412, .(T405, T406)), T435) → U78_ag(T412, T405, T406, T435, split12_in_aaaa(T405, T406, T420, T411))
U78_ag(T412, T405, T406, T435, split12_out_aaaa(T405, T406, T420, T411)) → U79_ag(T412, T405, T406, T435, T420, ms25_in_aag(T412, T411, []))
U79_ag(T412, T405, T406, T435, T420, ms25_out_aag(T412, T411, [])) → U80_ag(T412, T405, T406, T435, ms38_in_ag(T420, T435))
U80_ag(T412, T405, T406, T435, ms38_out_ag(T420, T435)) → ms1_out_ag(.(T412, .(T405, T406)), T435)
ms1_in_ag(.(T412, .(T405, T406)), T440) → U81_ag(T412, T405, T406, T440, split12_in_aaaa(T405, T406, T420, T411))
U81_ag(T412, T405, T406, T440, split12_out_aaaa(T405, T406, T420, T411)) → U82_ag(T412, T405, T406, T440, T420, ms25_in_aag(T412, T411, T440))
U82_ag(T412, T405, T406, T440, T420, ms25_out_aag(T412, T411, T440)) → U83_ag(T412, T405, T406, T440, ms38_in_ag(T420, []))
U83_ag(T412, T405, T406, T440, ms38_out_ag(T420, [])) → ms1_out_ag(.(T412, .(T405, T406)), T440)
ms1_in_ag(.(T412, .(T405, T406)), .(T461, T465)) → U84_ag(T412, T405, T406, T461, T465, split12_in_aaaa(T405, T406, T420, T411))
U84_ag(T412, T405, T406, T461, T465, split12_out_aaaa(T405, T406, T420, T411)) → U85_ag(T412, T405, T406, T461, T465, T420, ms25_in_aaa(T412, T411, .(T461, T467)))
U85_ag(T412, T405, T406, T461, T465, T420, ms25_out_aaa(T412, T411, .(T461, T467))) → U86_ag(T412, T405, T406, T461, T465, ms38_in_aa(T420, .(T466, T468)))
U86_ag(T412, T405, T406, T461, T465, ms38_out_aa(T420, .(T466, T468))) → U87_ag(T412, T405, T406, T461, T465, less70_in_ga(T461, T466))
U87_ag(T412, T405, T406, T461, T465, less70_out_ga(T461, T466)) → ms1_out_ag(.(T412, .(T405, T406)), .(T461, T465))
ms1_in_ag(.(T412, .(T405, T406)), .(T461, .(T490, T491))) → U88_ag(T412, T405, T406, T461, T490, T491, split12_in_aaaa(T405, T406, T420, T411))
U88_ag(T412, T405, T406, T461, T490, T491, split12_out_aaaa(T405, T406, T420, T411)) → U89_ag(T412, T405, T406, T461, T490, T491, T420, ms25_in_aag(T412, T411, .(T461, [])))
U89_ag(T412, T405, T406, T461, T490, T491, T420, ms25_out_aag(T412, T411, .(T461, []))) → U90_ag(T412, T405, T406, T461, T490, T491, ms38_in_ag(T420, .(T490, T491)))
U90_ag(T412, T405, T406, T461, T490, T491, ms38_out_ag(T420, .(T490, T491))) → U91_ag(T412, T405, T406, T461, T490, T491, less70_in_gg(T461, T490))
less70_in_gg(0, T154) → less70_out_gg(0, T154)
less70_in_gg(s(T161), T162) → U22_gg(T161, T162, less78_in_gg(T161, T162))
less78_in_gg(0, s(T169)) → less78_out_gg(0, s(T169))
less78_in_gg(s(T176), s(T177)) → U20_gg(T176, T177, less78_in_gg(T176, T177))
U20_gg(T176, T177, less78_out_gg(T176, T177)) → less78_out_gg(s(T176), s(T177))
U22_gg(T161, T162, less78_out_gg(T161, T162)) → less70_out_gg(s(T161), T162)
U91_ag(T412, T405, T406, T461, T490, T491, less70_out_gg(T461, T490)) → ms1_out_ag(.(T412, .(T405, T406)), .(T461, .(T490, T491)))
ms1_in_ag(.(T412, .(T405, T406)), .(T461, .(T513, T517))) → U92_ag(T412, T405, T406, T461, T513, T517, split12_in_aaaa(T405, T406, T420, T411))
U92_ag(T412, T405, T406, T461, T513, T517, split12_out_aaaa(T405, T406, T420, T411)) → U93_ag(T412, T405, T406, T461, T513, T517, T420, ms25_in_aaa(T412, T411, .(T461, .(T513, T519))))
U93_ag(T412, T405, T406, T461, T513, T517, T420, ms25_out_aaa(T412, T411, .(T461, .(T513, T519)))) → U94_ag(T412, T405, T406, T461, T513, T517, T519, ms38_in_aa(T420, .(T518, T520)))
U94_ag(T412, T405, T406, T461, T513, T517, T519, ms38_out_aa(T420, .(T518, T520))) → U95_ag(T412, T405, T406, T461, T513, T517, T519, T518, T520, less70_in_ga(T461, T518))
U95_ag(T412, T405, T406, T461, T513, T517, T519, T518, T520, less70_out_ga(T461, T518)) → U96_ag(T412, T405, T406, T461, T513, T517, p179_in_gaaag(T513, T518, T519, T520, T517))
p179_in_gaaag(T513, T518, T519, T520, T517) → U23_gaaag(T513, T518, T519, T520, T517, less70_in_ga(T513, T518))
U23_gaaag(T513, T518, T519, T520, T517, less70_out_ga(T513, T518)) → p179_out_gaaag(T513, T518, T519, T520, T517)
p179_in_gaaag(T513, T540, [], T541, .(T540, T541)) → U24_gaaag(T513, T540, T541, less70_in_gg(T513, T540))
U24_gaaag(T513, T540, T541, less70_out_gg(T513, T540)) → p179_out_gaaag(T513, T540, [], T541, .(T540, T541))
p179_in_gaaag(T513, T568, .(T563, T569), T570, .(T563, T567)) → U25_gaaag(T513, T568, T563, T569, T570, T567, less70_in_ga(T513, T568))
U25_gaaag(T513, T568, T563, T569, T570, T567, less70_out_ga(T513, T568)) → U26_gaaag(T513, T568, T563, T569, T570, T567, p179_in_gaaag(T563, T568, T569, T570, T567))
p179_in_gaaag(T513, T585, .(T588, T590), T589, .(T585, T587)) → U27_gaaag(T513, T585, T588, T590, T589, T587, less70_in_gg(T513, T585))
U27_gaaag(T513, T585, T588, T590, T589, T587, less70_out_gg(T513, T585)) → U28_gaaag(T513, T585, T588, T590, T589, T587, p194_in_gaaag(T585, T588, T590, T589, T587))
p194_in_gaaag(T585, T588, T590, T589, T587) → U29_gaaag(T585, T588, T590, T589, T587, less78_in_ga(T585, T588))
U29_gaaag(T585, T588, T590, T589, T587, less78_out_ga(T585, T588)) → p194_out_gaaag(T585, T588, T590, T589, T587)
p194_in_gaaag(T585, T610, T611, [], .(T610, T611)) → U30_gaaag(T585, T610, T611, less78_in_gg(T585, T610))
U30_gaaag(T585, T610, T611, less78_out_gg(T585, T610)) → p194_out_gaaag(T585, T610, T611, [], .(T610, T611))
p194_in_gaaag(T585, T632, T638, .(T637, T639), .(T632, T636)) → U31_gaaag(T585, T632, T638, T637, T639, T636, less78_in_gg(T585, T632))
U31_gaaag(T585, T632, T638, T637, T639, T636, less78_out_gg(T585, T632)) → U32_gaaag(T585, T632, T638, T637, T639, T636, p179_in_gaaag(T632, T637, T638, T639, T636))
U32_gaaag(T585, T632, T638, T637, T639, T636, p179_out_gaaag(T632, T637, T638, T639, T636)) → p194_out_gaaag(T585, T632, T638, .(T637, T639), .(T632, T636))
p194_in_gaaag(T585, T657, T659, .(T654, T658), .(T654, T656)) → U33_gaaag(T585, T657, T659, T654, T658, T656, less78_in_ga(T585, T657))
U33_gaaag(T585, T657, T659, T654, T658, T656, less78_out_ga(T585, T657)) → U34_gaaag(T585, T657, T659, T654, T658, T656, p194_in_gaaag(T654, T657, T659, T658, T656))
U34_gaaag(T585, T657, T659, T654, T658, T656, p194_out_gaaag(T654, T657, T659, T658, T656)) → p194_out_gaaag(T585, T657, T659, .(T654, T658), .(T654, T656))
U28_gaaag(T513, T585, T588, T590, T589, T587, p194_out_gaaag(T585, T588, T590, T589, T587)) → p179_out_gaaag(T513, T585, .(T588, T590), T589, .(T585, T587))
U26_gaaag(T513, T568, T563, T569, T570, T567, p179_out_gaaag(T563, T568, T569, T570, T567)) → p179_out_gaaag(T513, T568, .(T563, T569), T570, .(T563, T567))
U96_ag(T412, T405, T406, T461, T513, T517, p179_out_gaaag(T513, T518, T519, T520, T517)) → ms1_out_ag(.(T412, .(T405, T406)), .(T461, .(T513, T517)))
ms1_in_ag(.(T412, .(T405, T406)), .(T461, .(T674, T676))) → U97_ag(T412, T405, T406, T461, T674, T676, split12_in_aaaa(T405, T406, T420, T411))
U97_ag(T412, T405, T406, T461, T674, T676, split12_out_aaaa(T405, T406, T420, T411)) → U98_ag(T412, T405, T406, T461, T674, T676, T420, ms25_in_aaa(T412, T411, .(T461, .(T677, T679))))
U98_ag(T412, T405, T406, T461, T674, T676, T420, ms25_out_aaa(T412, T411, .(T461, .(T677, T679)))) → U99_ag(T412, T405, T406, T461, T674, T676, T677, T679, ms38_in_aa(T420, .(T674, T678)))
U99_ag(T412, T405, T406, T461, T674, T676, T677, T679, ms38_out_aa(T420, .(T674, T678))) → U100_ag(T412, T405, T406, T461, T674, T676, T677, T679, T678, less70_in_gg(T461, T674))
U100_ag(T412, T405, T406, T461, T674, T676, T677, T679, T678, less70_out_gg(T461, T674)) → U101_ag(T412, T405, T406, T461, T674, T676, p194_in_gaaag(T674, T677, T679, T678, T676))
U101_ag(T412, T405, T406, T461, T674, T676, p194_out_gaaag(T674, T677, T679, T678, T676)) → ms1_out_ag(.(T412, .(T405, T406)), .(T461, .(T674, T676)))
ms1_in_ag(.(T412, .(T405, T406)), .(T694, T696)) → U102_ag(T412, T405, T406, T694, T696, split12_in_aaaa(T405, T406, T420, T411))
U102_ag(T412, T405, T406, T694, T696, split12_out_aaaa(T405, T406, T420, T411)) → U103_ag(T412, T405, T406, T694, T696, T420, ms25_in_aaa(T412, T411, .(T697, T699)))
U103_ag(T412, T405, T406, T694, T696, T420, ms25_out_aaa(T412, T411, .(T697, T699))) → U104_ag(T412, T405, T406, T694, T696, T697, T699, ms38_in_aa(T420, .(T694, T698)))
U104_ag(T412, T405, T406, T694, T696, T697, T699, ms38_out_aa(T420, .(T694, T698))) → U105_ag(T412, T405, T406, T694, T696, p194_in_gaaag(T694, T697, T699, T698, T696))
U105_ag(T412, T405, T406, T694, T696, p194_out_gaaag(T694, T697, T699, T698, T696)) → ms1_out_ag(.(T412, .(T405, T406)), .(T694, T696))
MS1_IN_AG(.(T29, .(T27, T28)), []) → U35_AG(T29, T27, T28, split12_in_aaaa(T27, T28, X42, X41))
MS1_IN_AG(.(T29, .(T27, T28)), []) → SPLIT12_IN_AAAA(T27, T28, X42, X41)
SPLIT12_IN_AAAA(T42, T44, .(T42, X71), X72) → U2_AAAA(T42, T44, X71, X72, split16_in_aaa(T44, X72, X71))
SPLIT12_IN_AAAA(T42, T44, .(T42, X71), X72) → SPLIT16_IN_AAA(T44, X72, X71)
SPLIT16_IN_AAA(.(T49, T51), .(T49, X89), X90) → U1_AAA(T49, T51, X89, X90, split16_in_aaa(T51, X90, X89))
SPLIT16_IN_AAA(.(T49, T51), .(T49, X89), X90) → SPLIT16_IN_AAA(T51, X90, X89)
MS1_IN_AG(.(T34, .(T27, T28)), []) → U36_AG(T34, T27, T28, split12_in_aaaa(T27, T28, T32, T33))
U36_AG(T34, T27, T28, split12_out_aaaa(T27, T28, T32, T33)) → U37_AG(T34, T27, T28, ms25_in_aaa(T34, T33, X13))
U36_AG(T34, T27, T28, split12_out_aaaa(T27, T28, T32, T33)) → MS25_IN_AAA(T34, T33, X13)
MS25_IN_AAA(T72, .(T73, T74), X127) → U21_AAA(T72, T73, T74, X127, p34_in_aaaaaaaa(T72, T73, T74, X123, X124, X125, X126, X127))
MS25_IN_AAA(T72, .(T73, T74), X127) → P34_IN_AAAAAAAA(T72, T73, T74, X123, X124, X125, X126, X127)
P34_IN_AAAAAAAA(T72, T73, T74, X123, X124, X125, X126, X127) → U3_AAAAAAAA(T72, T73, T74, X123, X124, X125, X126, X127, split12_in_aaaa(T72, .(T73, T74), X123, X124))
P34_IN_AAAAAAAA(T72, T73, T74, X123, X124, X125, X126, X127) → SPLIT12_IN_AAAA(T72, .(T73, T74), X123, X124)
P34_IN_AAAAAAAA(T72, T73, T74, T78, T79, X125, X126, X127) → U4_AAAAAAAA(T72, T73, T74, T78, T79, X125, X126, X127, split12_in_aaaa(T72, .(T73, T74), T78, T79))
U4_AAAAAAAA(T72, T73, T74, T78, T79, X125, X126, X127, split12_out_aaaa(T72, .(T73, T74), T78, T79)) → U5_AAAAAAAA(T72, T73, T74, T78, T79, X125, X126, X127, ms38_in_aa(T78, X125))
U4_AAAAAAAA(T72, T73, T74, T78, T79, X125, X126, X127, split12_out_aaaa(T72, .(T73, T74), T78, T79)) → MS38_IN_AA(T78, X125)
MS38_IN_AA(.(T99, .(T100, T101)), X172) → U13_AA(T99, T100, T101, X172, p34_in_aaaaaaaa(T99, T100, T101, X168, X169, X170, X171, X172))
MS38_IN_AA(.(T99, .(T100, T101)), X172) → P34_IN_AAAAAAAA(T99, T100, T101, X168, X169, X170, X171, X172)
P34_IN_AAAAAAAA(T72, T73, T74, T78, T84, T83, X126, X127) → U6_AAAAAAAA(T72, T73, T74, T78, T84, T83, X126, X127, split12_in_aaaa(T72, .(T73, T74), T78, T84))
U6_AAAAAAAA(T72, T73, T74, T78, T84, T83, X126, X127, split12_out_aaaa(T72, .(T73, T74), T78, T84)) → U7_AAAAAAAA(T72, T73, T74, T78, T84, T83, X126, X127, ms38_in_aa(T78, T83))
U6_AAAAAAAA(T72, T73, T74, T78, T84, T83, X126, X127, split12_out_aaaa(T72, .(T73, T74), T78, T84)) → MS38_IN_AA(T78, T83)
U7_AAAAAAAA(T72, T73, T74, T78, T84, T83, X126, X127, ms38_out_aa(T78, T83)) → U8_AAAAAAAA(T72, T73, T74, T78, T84, T83, X126, X127, ms38_in_aa(T84, X126))
U7_AAAAAAAA(T72, T73, T74, T78, T84, T83, X126, X127, ms38_out_aa(T78, T83)) → MS38_IN_AA(T84, X126)
P34_IN_AAAAAAAA(T72, T73, T74, T78, T84, T106, T105, X127) → U9_AAAAAAAA(T72, T73, T74, T78, T84, T106, T105, X127, split12_in_aaaa(T72, .(T73, T74), T78, T84))
U9_AAAAAAAA(T72, T73, T74, T78, T84, T106, T105, X127, split12_out_aaaa(T72, .(T73, T74), T78, T84)) → U10_AAAAAAAA(T72, T73, T74, T78, T84, T106, T105, X127, ms38_in_aa(T78, T106))
U9_AAAAAAAA(T72, T73, T74, T78, T84, T106, T105, X127, split12_out_aaaa(T72, .(T73, T74), T78, T84)) → MS38_IN_AA(T78, T106)
U10_AAAAAAAA(T72, T73, T74, T78, T84, T106, T105, X127, ms38_out_aa(T78, T106)) → U11_AAAAAAAA(T72, T73, T74, T78, T84, T106, T105, X127, ms38_in_aa(T84, T105))
U10_AAAAAAAA(T72, T73, T74, T78, T84, T106, T105, X127, ms38_out_aa(T78, T106)) → MS38_IN_AA(T84, T105)
U11_AAAAAAAA(T72, T73, T74, T78, T84, T106, T105, X127, ms38_out_aa(T84, T105)) → U12_AAAAAAAA(T72, T73, T74, T78, T84, T106, T105, X127, merge54_in_aaa(T106, T105, X127))
U11_AAAAAAAA(T72, T73, T74, T78, T84, T106, T105, X127, ms38_out_aa(T84, T105)) → MERGE54_IN_AAA(T106, T105, X127)
MERGE54_IN_AAA(.(T139, T141), .(T140, T142), .(T139, X226)) → U14_AAA(T139, T141, T140, T142, X226, less70_in_aa(T139, T140))
MERGE54_IN_AAA(.(T139, T141), .(T140, T142), .(T139, X226)) → LESS70_IN_AA(T139, T140)
LESS70_IN_AA(s(T161), T162) → U22_AA(T161, T162, less78_in_aa(T161, T162))
LESS70_IN_AA(s(T161), T162) → LESS78_IN_AA(T161, T162)
LESS78_IN_AA(s(T176), s(T177)) → U20_AA(T176, T177, less78_in_aa(T176, T177))
LESS78_IN_AA(s(T176), s(T177)) → LESS78_IN_AA(T176, T177)
MERGE54_IN_AAA(.(T139, T145), .(T146, T147), .(T139, X226)) → U15_AAA(T139, T145, T146, T147, X226, less70_in_aa(T139, T146))
U15_AAA(T139, T145, T146, T147, X226, less70_out_aa(T139, T146)) → U16_AAA(T139, T145, T146, T147, X226, merge54_in_aaa(T145, .(T146, T147), X226))
U15_AAA(T139, T145, T146, T147, X226, less70_out_aa(T139, T146)) → MERGE54_IN_AAA(T145, .(T146, T147), X226)
MERGE54_IN_AAA(.(T197, T199), .(T196, T198), .(T196, X287)) → U17_AAA(T197, T199, T196, T198, X287, less78_in_aa(T196, T197))
MERGE54_IN_AAA(.(T197, T199), .(T196, T198), .(T196, X287)) → LESS78_IN_AA(T196, T197)
MERGE54_IN_AAA(.(T202, T203), .(T196, T204), .(T196, X287)) → U18_AAA(T202, T203, T196, T204, X287, less78_in_aa(T196, T202))
U18_AAA(T202, T203, T196, T204, X287, less78_out_aa(T196, T202)) → U19_AAA(T202, T203, T196, T204, X287, merge54_in_aaa(.(T202, T203), T204, X287))
U18_AAA(T202, T203, T196, T204, X287, less78_out_aa(T196, T202)) → MERGE54_IN_AAA(.(T202, T203), T204, X287)
MS1_IN_AG(.(T34, .(T27, T28)), []) → U38_AG(T34, T27, T28, split12_in_aaaa(T27, T28, T55, T33))
U38_AG(T34, T27, T28, split12_out_aaaa(T27, T28, T55, T33)) → U39_AG(T34, T27, T28, T55, ms25_in_aaa(T34, T33, T54))
U38_AG(T34, T27, T28, split12_out_aaaa(T27, T28, T55, T33)) → MS25_IN_AAA(T34, T33, T54)
U39_AG(T34, T27, T28, T55, ms25_out_aaa(T34, T33, T54)) → U40_AG(T34, T27, T28, ms38_in_aa(T55, X14))
U39_AG(T34, T27, T28, T55, ms25_out_aaa(T34, T33, T54)) → MS38_IN_AA(T55, X14)
U38_AG(T34, T27, T28, split12_out_aaaa(T27, T28, T55, T33)) → U41_AG(T34, T27, T28, T55, ms25_in_aaa(T34, T33, T212))
U41_AG(T34, T27, T28, T55, ms25_out_aaa(T34, T33, T212)) → U42_AG(T34, T27, T28, T212, ms38_in_aa(T55, T211))
U41_AG(T34, T27, T28, T55, ms25_out_aaa(T34, T33, T212)) → MS38_IN_AA(T55, T211)
U42_AG(T34, T27, T28, T212, ms38_out_aa(T55, T211)) → U43_AG(T34, T27, T28, merge93_in_aa(T212, T211))
U42_AG(T34, T27, T28, T212, ms38_out_aa(T55, T211)) → MERGE93_IN_AA(T212, T211)
MS1_IN_AG(.(T262, .(T260, T261)), .(T242, [])) → U44_AG(T262, T260, T261, T242, split12_in_aaaa(T260, T261, X367, X366))
MS1_IN_AG(.(T262, .(T260, T261)), .(T242, [])) → SPLIT12_IN_AAAA(T260, T261, X367, X366)
MS1_IN_AG(.(T267, .(T260, T261)), .(T242, [])) → U45_AG(T267, T260, T261, T242, split12_in_aaaa(T260, T261, T265, T266))
U45_AG(T267, T260, T261, T242, split12_out_aaaa(T260, T261, T265, T266)) → U46_AG(T267, T260, T261, T242, ms25_in_aaa(T267, T266, X338))
U45_AG(T267, T260, T261, T242, split12_out_aaaa(T260, T261, T265, T266)) → MS25_IN_AAA(T267, T266, X338)
MS1_IN_AG(.(T267, .(T260, T261)), .(T242, [])) → U47_AG(T267, T260, T261, T242, split12_in_aaaa(T260, T261, T273, T266))
U47_AG(T267, T260, T261, T242, split12_out_aaaa(T260, T261, T273, T266)) → U48_AG(T267, T260, T261, T242, T273, ms25_in_aaa(T267, T266, T272))
U47_AG(T267, T260, T261, T242, split12_out_aaaa(T260, T261, T273, T266)) → MS25_IN_AAA(T267, T266, T272)
U48_AG(T267, T260, T261, T242, T273, ms25_out_aaa(T267, T266, T272)) → U49_AG(T267, T260, T261, T242, ms38_in_aa(T273, X339))
U48_AG(T267, T260, T261, T242, T273, ms25_out_aaa(T267, T266, T272)) → MS38_IN_AA(T273, X339)
MS1_IN_AG(.(T267, .(T260, T261)), .(T291, [])) → U50_AG(T267, T260, T261, T291, split12_in_aaaa(T260, T261, T273, T266))
U50_AG(T267, T260, T261, T291, split12_out_aaaa(T260, T261, T273, T266)) → U51_AG(T267, T260, T261, T291, T273, ms25_in_aag(T267, T266, []))
U50_AG(T267, T260, T261, T291, split12_out_aaaa(T260, T261, T273, T266)) → MS25_IN_AAG(T267, T266, [])
MS25_IN_AAG(T72, .(T73, T74), X127) → U21_AAG(T72, T73, T74, X127, p34_in_aaaaaaag(T72, T73, T74, X123, X124, X125, X126, X127))
MS25_IN_AAG(T72, .(T73, T74), X127) → P34_IN_AAAAAAAG(T72, T73, T74, X123, X124, X125, X126, X127)
P34_IN_AAAAAAAG(T72, T73, T74, X123, X124, X125, X126, X127) → U3_AAAAAAAG(T72, T73, T74, X123, X124, X125, X126, X127, split12_in_aaaa(T72, .(T73, T74), X123, X124))
P34_IN_AAAAAAAG(T72, T73, T74, X123, X124, X125, X126, X127) → SPLIT12_IN_AAAA(T72, .(T73, T74), X123, X124)
P34_IN_AAAAAAAG(T72, T73, T74, T78, T79, X125, X126, X127) → U4_AAAAAAAG(T72, T73, T74, T78, T79, X125, X126, X127, split12_in_aaaa(T72, .(T73, T74), T78, T79))
U4_AAAAAAAG(T72, T73, T74, T78, T79, X125, X126, X127, split12_out_aaaa(T72, .(T73, T74), T78, T79)) → U5_AAAAAAAG(T72, T73, T74, T78, T79, X125, X126, X127, ms38_in_aa(T78, X125))
U4_AAAAAAAG(T72, T73, T74, T78, T79, X125, X126, X127, split12_out_aaaa(T72, .(T73, T74), T78, T79)) → MS38_IN_AA(T78, X125)
P34_IN_AAAAAAAG(T72, T73, T74, T78, T84, T83, X126, X127) → U6_AAAAAAAG(T72, T73, T74, T78, T84, T83, X126, X127, split12_in_aaaa(T72, .(T73, T74), T78, T84))
U6_AAAAAAAG(T72, T73, T74, T78, T84, T83, X126, X127, split12_out_aaaa(T72, .(T73, T74), T78, T84)) → U7_AAAAAAAG(T72, T73, T74, T78, T84, T83, X126, X127, ms38_in_aa(T78, T83))
U6_AAAAAAAG(T72, T73, T74, T78, T84, T83, X126, X127, split12_out_aaaa(T72, .(T73, T74), T78, T84)) → MS38_IN_AA(T78, T83)
U7_AAAAAAAG(T72, T73, T74, T78, T84, T83, X126, X127, ms38_out_aa(T78, T83)) → U8_AAAAAAAG(T72, T73, T74, T78, T84, T83, X126, X127, ms38_in_aa(T84, X126))
U7_AAAAAAAG(T72, T73, T74, T78, T84, T83, X126, X127, ms38_out_aa(T78, T83)) → MS38_IN_AA(T84, X126)
P34_IN_AAAAAAAG(T72, T73, T74, T78, T84, T106, T105, X127) → U9_AAAAAAAG(T72, T73, T74, T78, T84, T106, T105, X127, split12_in_aaaa(T72, .(T73, T74), T78, T84))
U9_AAAAAAAG(T72, T73, T74, T78, T84, T106, T105, X127, split12_out_aaaa(T72, .(T73, T74), T78, T84)) → U10_AAAAAAAG(T72, T73, T74, T78, T84, T106, T105, X127, ms38_in_aa(T78, T106))
U9_AAAAAAAG(T72, T73, T74, T78, T84, T106, T105, X127, split12_out_aaaa(T72, .(T73, T74), T78, T84)) → MS38_IN_AA(T78, T106)
U10_AAAAAAAG(T72, T73, T74, T78, T84, T106, T105, X127, ms38_out_aa(T78, T106)) → U11_AAAAAAAG(T72, T73, T74, T78, T84, T106, T105, X127, ms38_in_aa(T84, T105))
U10_AAAAAAAG(T72, T73, T74, T78, T84, T106, T105, X127, ms38_out_aa(T78, T106)) → MS38_IN_AA(T84, T105)
U11_AAAAAAAG(T72, T73, T74, T78, T84, T106, T105, X127, ms38_out_aa(T84, T105)) → U12_AAAAAAAG(T72, T73, T74, T78, T84, T106, T105, X127, merge54_in_aag(T106, T105, X127))
U11_AAAAAAAG(T72, T73, T74, T78, T84, T106, T105, X127, ms38_out_aa(T84, T105)) → MERGE54_IN_AAG(T106, T105, X127)
MERGE54_IN_AAG(.(T139, T141), .(T140, T142), .(T139, X226)) → U14_AAG(T139, T141, T140, T142, X226, less70_in_ga(T139, T140))
MERGE54_IN_AAG(.(T139, T141), .(T140, T142), .(T139, X226)) → LESS70_IN_GA(T139, T140)
LESS70_IN_GA(s(T161), T162) → U22_GA(T161, T162, less78_in_ga(T161, T162))
LESS70_IN_GA(s(T161), T162) → LESS78_IN_GA(T161, T162)
LESS78_IN_GA(s(T176), s(T177)) → U20_GA(T176, T177, less78_in_ga(T176, T177))
LESS78_IN_GA(s(T176), s(T177)) → LESS78_IN_GA(T176, T177)
MERGE54_IN_AAG(.(T139, T145), .(T146, T147), .(T139, X226)) → U15_AAG(T139, T145, T146, T147, X226, less70_in_ga(T139, T146))
U15_AAG(T139, T145, T146, T147, X226, less70_out_ga(T139, T146)) → U16_AAG(T139, T145, T146, T147, X226, merge54_in_aag(T145, .(T146, T147), X226))
U15_AAG(T139, T145, T146, T147, X226, less70_out_ga(T139, T146)) → MERGE54_IN_AAG(T145, .(T146, T147), X226)
MERGE54_IN_AAG(.(T197, T199), .(T196, T198), .(T196, X287)) → U17_AAG(T197, T199, T196, T198, X287, less78_in_ga(T196, T197))
MERGE54_IN_AAG(.(T197, T199), .(T196, T198), .(T196, X287)) → LESS78_IN_GA(T196, T197)
MERGE54_IN_AAG(.(T202, T203), .(T196, T204), .(T196, X287)) → U18_AAG(T202, T203, T196, T204, X287, less78_in_ga(T196, T202))
U18_AAG(T202, T203, T196, T204, X287, less78_out_ga(T196, T202)) → U19_AAG(T202, T203, T196, T204, X287, merge54_in_aag(.(T202, T203), T204, X287))
U18_AAG(T202, T203, T196, T204, X287, less78_out_ga(T196, T202)) → MERGE54_IN_AAG(.(T202, T203), T204, X287)
U51_AG(T267, T260, T261, T291, T273, ms25_out_aag(T267, T266, [])) → U52_AG(T267, T260, T261, T291, ms38_in_ag(T273, .(T291, [])))
U51_AG(T267, T260, T261, T291, T273, ms25_out_aag(T267, T266, [])) → MS38_IN_AG(T273, .(T291, []))
MS38_IN_AG(.(T99, .(T100, T101)), X172) → U13_AG(T99, T100, T101, X172, p34_in_aaaaaaag(T99, T100, T101, X168, X169, X170, X171, X172))
MS38_IN_AG(.(T99, .(T100, T101)), X172) → P34_IN_AAAAAAAG(T99, T100, T101, X168, X169, X170, X171, X172)
MS1_IN_AG(.(T267, .(T260, T261)), .(T301, [])) → U53_AG(T267, T260, T261, T301, split12_in_aaaa(T260, T261, T273, T266))
U53_AG(T267, T260, T261, T301, split12_out_aaaa(T260, T261, T273, T266)) → U54_AG(T267, T260, T261, T301, T273, ms25_in_aag(T267, T266, .(T301, [])))
U53_AG(T267, T260, T261, T301, split12_out_aaaa(T260, T261, T273, T266)) → MS25_IN_AAG(T267, T266, .(T301, []))
U54_AG(T267, T260, T261, T301, T273, ms25_out_aag(T267, T266, .(T301, []))) → U55_AG(T267, T260, T261, T301, ms38_in_ag(T273, []))
U54_AG(T267, T260, T261, T301, T273, ms25_out_aag(T267, T266, .(T301, []))) → MS38_IN_AG(T273, [])
MS1_IN_AG(.(T267, .(T260, T261)), .(T318, [])) → U56_AG(T267, T260, T261, T318, split12_in_aaaa(T260, T261, T273, T266))
U56_AG(T267, T260, T261, T318, split12_out_aaaa(T260, T261, T273, T266)) → U57_AG(T267, T260, T261, T318, T273, ms25_in_aaa(T267, T266, .(T318, T323)))
U56_AG(T267, T260, T261, T318, split12_out_aaaa(T260, T261, T273, T266)) → MS25_IN_AAA(T267, T266, .(T318, T323))
U57_AG(T267, T260, T261, T318, T273, ms25_out_aaa(T267, T266, .(T318, T323))) → U58_AG(T267, T260, T261, T318, ms38_in_aa(T273, .(T322, T324)))
U57_AG(T267, T260, T261, T318, T273, ms25_out_aaa(T267, T266, .(T318, T323))) → MS38_IN_AA(T273, .(T322, T324))
U58_AG(T267, T260, T261, T318, ms38_out_aa(T273, .(T322, T324))) → U59_AG(T267, T260, T261, T318, less70_in_ga(T318, T322))
U58_AG(T267, T260, T261, T318, ms38_out_aa(T273, .(T322, T324))) → LESS70_IN_GA(T318, T322)
U56_AG(T267, T260, T261, T318, split12_out_aaaa(T260, T261, T273, T266)) → U60_AG(T267, T260, T261, T318, T273, ms25_in_aaa(T267, T266, .(T318, T327)))
U60_AG(T267, T260, T261, T318, T273, ms25_out_aaa(T267, T266, .(T318, T327))) → U61_AG(T267, T260, T261, T318, T327, ms38_in_aa(T273, .(T328, T329)))
U60_AG(T267, T260, T261, T318, T273, ms25_out_aaa(T267, T266, .(T318, T327))) → MS38_IN_AA(T273, .(T328, T329))
U61_AG(T267, T260, T261, T318, T327, ms38_out_aa(T273, .(T328, T329))) → U62_AG(T267, T260, T261, T318, T327, T328, T329, less70_in_ga(T318, T328))
U61_AG(T267, T260, T261, T318, T327, ms38_out_aa(T273, .(T328, T329))) → LESS70_IN_GA(T318, T328)
U62_AG(T267, T260, T261, T318, T327, T328, T329, less70_out_ga(T318, T328)) → U63_AG(T267, T260, T261, T318, merge93_in_aa(T327, .(T328, T329)))
U62_AG(T267, T260, T261, T318, T327, T328, T329, less70_out_ga(T318, T328)) → MERGE93_IN_AA(T327, .(T328, T329))
MS1_IN_AG(.(T267, .(T260, T261)), .(T356, [])) → U64_AG(T267, T260, T261, T356, split12_in_aaaa(T260, T261, T273, T266))
U64_AG(T267, T260, T261, T356, split12_out_aaaa(T260, T261, T273, T266)) → U65_AG(T267, T260, T261, T356, T273, ms25_in_aaa(T267, T266, .(T358, T360)))
U64_AG(T267, T260, T261, T356, split12_out_aaaa(T260, T261, T273, T266)) → MS25_IN_AAA(T267, T266, .(T358, T360))
U65_AG(T267, T260, T261, T356, T273, ms25_out_aaa(T267, T266, .(T358, T360))) → U66_AG(T267, T260, T261, T356, T358, ms38_in_aa(T273, .(T356, T359)))
U65_AG(T267, T260, T261, T356, T273, ms25_out_aaa(T267, T266, .(T358, T360))) → MS38_IN_AA(T273, .(T356, T359))
U66_AG(T267, T260, T261, T356, T358, ms38_out_aa(T273, .(T356, T359))) → U67_AG(T267, T260, T261, T356, less78_in_ga(T356, T358))
U66_AG(T267, T260, T261, T356, T358, ms38_out_aa(T273, .(T356, T359))) → LESS78_IN_GA(T356, T358)
U64_AG(T267, T260, T261, T356, split12_out_aaaa(T260, T261, T273, T266)) → U68_AG(T267, T260, T261, T356, T273, ms25_in_aaa(T267, T266, .(T363, T364)))
U68_AG(T267, T260, T261, T356, T273, ms25_out_aaa(T267, T266, .(T363, T364))) → U69_AG(T267, T260, T261, T356, T363, T364, ms38_in_aa(T273, .(T356, T365)))
U68_AG(T267, T260, T261, T356, T273, ms25_out_aaa(T267, T266, .(T363, T364))) → MS38_IN_AA(T273, .(T356, T365))
U69_AG(T267, T260, T261, T356, T363, T364, ms38_out_aa(T273, .(T356, T365))) → U70_AG(T267, T260, T261, T356, T363, T364, T365, less78_in_ga(T356, T363))
U69_AG(T267, T260, T261, T356, T363, T364, ms38_out_aa(T273, .(T356, T365))) → LESS78_IN_GA(T356, T363)
U70_AG(T267, T260, T261, T356, T363, T364, T365, less78_out_ga(T356, T363)) → U71_AG(T267, T260, T261, T356, merge93_in_aa(.(T363, T364), T365))
U70_AG(T267, T260, T261, T356, T363, T364, T365, less78_out_ga(T356, T363)) → MERGE93_IN_AA(.(T363, T364), T365)
MS1_IN_AG(.(T407, .(T405, T406)), T387) → U72_AG(T407, T405, T406, T387, split12_in_aaaa(T405, T406, X523, X522))
MS1_IN_AG(.(T407, .(T405, T406)), T387) → SPLIT12_IN_AAAA(T405, T406, X523, X522)
MS1_IN_AG(.(T412, .(T405, T406)), T387) → U73_AG(T412, T405, T406, T387, split12_in_aaaa(T405, T406, T410, T411))
U73_AG(T412, T405, T406, T387, split12_out_aaaa(T405, T406, T410, T411)) → U74_AG(T412, T405, T406, T387, ms25_in_aaa(T412, T411, X494))
U73_AG(T412, T405, T406, T387, split12_out_aaaa(T405, T406, T410, T411)) → MS25_IN_AAA(T412, T411, X494)
MS1_IN_AG(.(T412, .(T405, T406)), T387) → U75_AG(T412, T405, T406, T387, split12_in_aaaa(T405, T406, T420, T411))
U75_AG(T412, T405, T406, T387, split12_out_aaaa(T405, T406, T420, T411)) → U76_AG(T412, T405, T406, T387, T420, ms25_in_aaa(T412, T411, T419))
U75_AG(T412, T405, T406, T387, split12_out_aaaa(T405, T406, T420, T411)) → MS25_IN_AAA(T412, T411, T419)
U76_AG(T412, T405, T406, T387, T420, ms25_out_aaa(T412, T411, T419)) → U77_AG(T412, T405, T406, T387, ms38_in_aa(T420, X495))
U76_AG(T412, T405, T406, T387, T420, ms25_out_aaa(T412, T411, T419)) → MS38_IN_AA(T420, X495)
MS1_IN_AG(.(T412, .(T405, T406)), T435) → U78_AG(T412, T405, T406, T435, split12_in_aaaa(T405, T406, T420, T411))
U78_AG(T412, T405, T406, T435, split12_out_aaaa(T405, T406, T420, T411)) → U79_AG(T412, T405, T406, T435, T420, ms25_in_aag(T412, T411, []))
U78_AG(T412, T405, T406, T435, split12_out_aaaa(T405, T406, T420, T411)) → MS25_IN_AAG(T412, T411, [])
U79_AG(T412, T405, T406, T435, T420, ms25_out_aag(T412, T411, [])) → U80_AG(T412, T405, T406, T435, ms38_in_ag(T420, T435))
U79_AG(T412, T405, T406, T435, T420, ms25_out_aag(T412, T411, [])) → MS38_IN_AG(T420, T435)
MS1_IN_AG(.(T412, .(T405, T406)), T440) → U81_AG(T412, T405, T406, T440, split12_in_aaaa(T405, T406, T420, T411))
U81_AG(T412, T405, T406, T440, split12_out_aaaa(T405, T406, T420, T411)) → U82_AG(T412, T405, T406, T440, T420, ms25_in_aag(T412, T411, T440))
U81_AG(T412, T405, T406, T440, split12_out_aaaa(T405, T406, T420, T411)) → MS25_IN_AAG(T412, T411, T440)
U82_AG(T412, T405, T406, T440, T420, ms25_out_aag(T412, T411, T440)) → U83_AG(T412, T405, T406, T440, ms38_in_ag(T420, []))
U82_AG(T412, T405, T406, T440, T420, ms25_out_aag(T412, T411, T440)) → MS38_IN_AG(T420, [])
MS1_IN_AG(.(T412, .(T405, T406)), .(T461, T465)) → U84_AG(T412, T405, T406, T461, T465, split12_in_aaaa(T405, T406, T420, T411))
MS1_IN_AG(.(T412, .(T405, T406)), .(T461, T465)) → SPLIT12_IN_AAAA(T405, T406, T420, T411)
U84_AG(T412, T405, T406, T461, T465, split12_out_aaaa(T405, T406, T420, T411)) → U85_AG(T412, T405, T406, T461, T465, T420, ms25_in_aaa(T412, T411, .(T461, T467)))
U84_AG(T412, T405, T406, T461, T465, split12_out_aaaa(T405, T406, T420, T411)) → MS25_IN_AAA(T412, T411, .(T461, T467))
U85_AG(T412, T405, T406, T461, T465, T420, ms25_out_aaa(T412, T411, .(T461, T467))) → U86_AG(T412, T405, T406, T461, T465, ms38_in_aa(T420, .(T466, T468)))
U85_AG(T412, T405, T406, T461, T465, T420, ms25_out_aaa(T412, T411, .(T461, T467))) → MS38_IN_AA(T420, .(T466, T468))
U86_AG(T412, T405, T406, T461, T465, ms38_out_aa(T420, .(T466, T468))) → U87_AG(T412, T405, T406, T461, T465, less70_in_ga(T461, T466))
U86_AG(T412, T405, T406, T461, T465, ms38_out_aa(T420, .(T466, T468))) → LESS70_IN_GA(T461, T466)
MS1_IN_AG(.(T412, .(T405, T406)), .(T461, .(T490, T491))) → U88_AG(T412, T405, T406, T461, T490, T491, split12_in_aaaa(T405, T406, T420, T411))
MS1_IN_AG(.(T412, .(T405, T406)), .(T461, .(T490, T491))) → SPLIT12_IN_AAAA(T405, T406, T420, T411)
U88_AG(T412, T405, T406, T461, T490, T491, split12_out_aaaa(T405, T406, T420, T411)) → U89_AG(T412, T405, T406, T461, T490, T491, T420, ms25_in_aag(T412, T411, .(T461, [])))
U88_AG(T412, T405, T406, T461, T490, T491, split12_out_aaaa(T405, T406, T420, T411)) → MS25_IN_AAG(T412, T411, .(T461, []))
U89_AG(T412, T405, T406, T461, T490, T491, T420, ms25_out_aag(T412, T411, .(T461, []))) → U90_AG(T412, T405, T406, T461, T490, T491, ms38_in_ag(T420, .(T490, T491)))
U89_AG(T412, T405, T406, T461, T490, T491, T420, ms25_out_aag(T412, T411, .(T461, []))) → MS38_IN_AG(T420, .(T490, T491))
U90_AG(T412, T405, T406, T461, T490, T491, ms38_out_ag(T420, .(T490, T491))) → U91_AG(T412, T405, T406, T461, T490, T491, less70_in_gg(T461, T490))
U90_AG(T412, T405, T406, T461, T490, T491, ms38_out_ag(T420, .(T490, T491))) → LESS70_IN_GG(T461, T490)
LESS70_IN_GG(s(T161), T162) → U22_GG(T161, T162, less78_in_gg(T161, T162))
LESS70_IN_GG(s(T161), T162) → LESS78_IN_GG(T161, T162)
LESS78_IN_GG(s(T176), s(T177)) → U20_GG(T176, T177, less78_in_gg(T176, T177))
LESS78_IN_GG(s(T176), s(T177)) → LESS78_IN_GG(T176, T177)
MS1_IN_AG(.(T412, .(T405, T406)), .(T461, .(T513, T517))) → U92_AG(T412, T405, T406, T461, T513, T517, split12_in_aaaa(T405, T406, T420, T411))
U92_AG(T412, T405, T406, T461, T513, T517, split12_out_aaaa(T405, T406, T420, T411)) → U93_AG(T412, T405, T406, T461, T513, T517, T420, ms25_in_aaa(T412, T411, .(T461, .(T513, T519))))
U92_AG(T412, T405, T406, T461, T513, T517, split12_out_aaaa(T405, T406, T420, T411)) → MS25_IN_AAA(T412, T411, .(T461, .(T513, T519)))
U93_AG(T412, T405, T406, T461, T513, T517, T420, ms25_out_aaa(T412, T411, .(T461, .(T513, T519)))) → U94_AG(T412, T405, T406, T461, T513, T517, T519, ms38_in_aa(T420, .(T518, T520)))
U93_AG(T412, T405, T406, T461, T513, T517, T420, ms25_out_aaa(T412, T411, .(T461, .(T513, T519)))) → MS38_IN_AA(T420, .(T518, T520))
U94_AG(T412, T405, T406, T461, T513, T517, T519, ms38_out_aa(T420, .(T518, T520))) → U95_AG(T412, T405, T406, T461, T513, T517, T519, T518, T520, less70_in_ga(T461, T518))
U94_AG(T412, T405, T406, T461, T513, T517, T519, ms38_out_aa(T420, .(T518, T520))) → LESS70_IN_GA(T461, T518)
U95_AG(T412, T405, T406, T461, T513, T517, T519, T518, T520, less70_out_ga(T461, T518)) → U96_AG(T412, T405, T406, T461, T513, T517, p179_in_gaaag(T513, T518, T519, T520, T517))
U95_AG(T412, T405, T406, T461, T513, T517, T519, T518, T520, less70_out_ga(T461, T518)) → P179_IN_GAAAG(T513, T518, T519, T520, T517)
P179_IN_GAAAG(T513, T518, T519, T520, T517) → U23_GAAAG(T513, T518, T519, T520, T517, less70_in_ga(T513, T518))
P179_IN_GAAAG(T513, T518, T519, T520, T517) → LESS70_IN_GA(T513, T518)
P179_IN_GAAAG(T513, T540, [], T541, .(T540, T541)) → U24_GAAAG(T513, T540, T541, less70_in_gg(T513, T540))
P179_IN_GAAAG(T513, T540, [], T541, .(T540, T541)) → LESS70_IN_GG(T513, T540)
P179_IN_GAAAG(T513, T568, .(T563, T569), T570, .(T563, T567)) → U25_GAAAG(T513, T568, T563, T569, T570, T567, less70_in_ga(T513, T568))
P179_IN_GAAAG(T513, T568, .(T563, T569), T570, .(T563, T567)) → LESS70_IN_GA(T513, T568)
U25_GAAAG(T513, T568, T563, T569, T570, T567, less70_out_ga(T513, T568)) → U26_GAAAG(T513, T568, T563, T569, T570, T567, p179_in_gaaag(T563, T568, T569, T570, T567))
U25_GAAAG(T513, T568, T563, T569, T570, T567, less70_out_ga(T513, T568)) → P179_IN_GAAAG(T563, T568, T569, T570, T567)
P179_IN_GAAAG(T513, T585, .(T588, T590), T589, .(T585, T587)) → U27_GAAAG(T513, T585, T588, T590, T589, T587, less70_in_gg(T513, T585))
P179_IN_GAAAG(T513, T585, .(T588, T590), T589, .(T585, T587)) → LESS70_IN_GG(T513, T585)
U27_GAAAG(T513, T585, T588, T590, T589, T587, less70_out_gg(T513, T585)) → U28_GAAAG(T513, T585, T588, T590, T589, T587, p194_in_gaaag(T585, T588, T590, T589, T587))
U27_GAAAG(T513, T585, T588, T590, T589, T587, less70_out_gg(T513, T585)) → P194_IN_GAAAG(T585, T588, T590, T589, T587)
P194_IN_GAAAG(T585, T588, T590, T589, T587) → U29_GAAAG(T585, T588, T590, T589, T587, less78_in_ga(T585, T588))
P194_IN_GAAAG(T585, T588, T590, T589, T587) → LESS78_IN_GA(T585, T588)
P194_IN_GAAAG(T585, T610, T611, [], .(T610, T611)) → U30_GAAAG(T585, T610, T611, less78_in_gg(T585, T610))
P194_IN_GAAAG(T585, T610, T611, [], .(T610, T611)) → LESS78_IN_GG(T585, T610)
P194_IN_GAAAG(T585, T632, T638, .(T637, T639), .(T632, T636)) → U31_GAAAG(T585, T632, T638, T637, T639, T636, less78_in_gg(T585, T632))
P194_IN_GAAAG(T585, T632, T638, .(T637, T639), .(T632, T636)) → LESS78_IN_GG(T585, T632)
U31_GAAAG(T585, T632, T638, T637, T639, T636, less78_out_gg(T585, T632)) → U32_GAAAG(T585, T632, T638, T637, T639, T636, p179_in_gaaag(T632, T637, T638, T639, T636))
U31_GAAAG(T585, T632, T638, T637, T639, T636, less78_out_gg(T585, T632)) → P179_IN_GAAAG(T632, T637, T638, T639, T636)
P194_IN_GAAAG(T585, T657, T659, .(T654, T658), .(T654, T656)) → U33_GAAAG(T585, T657, T659, T654, T658, T656, less78_in_ga(T585, T657))
P194_IN_GAAAG(T585, T657, T659, .(T654, T658), .(T654, T656)) → LESS78_IN_GA(T585, T657)
U33_GAAAG(T585, T657, T659, T654, T658, T656, less78_out_ga(T585, T657)) → U34_GAAAG(T585, T657, T659, T654, T658, T656, p194_in_gaaag(T654, T657, T659, T658, T656))
U33_GAAAG(T585, T657, T659, T654, T658, T656, less78_out_ga(T585, T657)) → P194_IN_GAAAG(T654, T657, T659, T658, T656)
MS1_IN_AG(.(T412, .(T405, T406)), .(T461, .(T674, T676))) → U97_AG(T412, T405, T406, T461, T674, T676, split12_in_aaaa(T405, T406, T420, T411))
U97_AG(T412, T405, T406, T461, T674, T676, split12_out_aaaa(T405, T406, T420, T411)) → U98_AG(T412, T405, T406, T461, T674, T676, T420, ms25_in_aaa(T412, T411, .(T461, .(T677, T679))))
U97_AG(T412, T405, T406, T461, T674, T676, split12_out_aaaa(T405, T406, T420, T411)) → MS25_IN_AAA(T412, T411, .(T461, .(T677, T679)))
U98_AG(T412, T405, T406, T461, T674, T676, T420, ms25_out_aaa(T412, T411, .(T461, .(T677, T679)))) → U99_AG(T412, T405, T406, T461, T674, T676, T677, T679, ms38_in_aa(T420, .(T674, T678)))
U98_AG(T412, T405, T406, T461, T674, T676, T420, ms25_out_aaa(T412, T411, .(T461, .(T677, T679)))) → MS38_IN_AA(T420, .(T674, T678))
U99_AG(T412, T405, T406, T461, T674, T676, T677, T679, ms38_out_aa(T420, .(T674, T678))) → U100_AG(T412, T405, T406, T461, T674, T676, T677, T679, T678, less70_in_gg(T461, T674))
U99_AG(T412, T405, T406, T461, T674, T676, T677, T679, ms38_out_aa(T420, .(T674, T678))) → LESS70_IN_GG(T461, T674)
U100_AG(T412, T405, T406, T461, T674, T676, T677, T679, T678, less70_out_gg(T461, T674)) → U101_AG(T412, T405, T406, T461, T674, T676, p194_in_gaaag(T674, T677, T679, T678, T676))
U100_AG(T412, T405, T406, T461, T674, T676, T677, T679, T678, less70_out_gg(T461, T674)) → P194_IN_GAAAG(T674, T677, T679, T678, T676)
MS1_IN_AG(.(T412, .(T405, T406)), .(T694, T696)) → U102_AG(T412, T405, T406, T694, T696, split12_in_aaaa(T405, T406, T420, T411))
U102_AG(T412, T405, T406, T694, T696, split12_out_aaaa(T405, T406, T420, T411)) → U103_AG(T412, T405, T406, T694, T696, T420, ms25_in_aaa(T412, T411, .(T697, T699)))
U102_AG(T412, T405, T406, T694, T696, split12_out_aaaa(T405, T406, T420, T411)) → MS25_IN_AAA(T412, T411, .(T697, T699))
U103_AG(T412, T405, T406, T694, T696, T420, ms25_out_aaa(T412, T411, .(T697, T699))) → U104_AG(T412, T405, T406, T694, T696, T697, T699, ms38_in_aa(T420, .(T694, T698)))
U103_AG(T412, T405, T406, T694, T696, T420, ms25_out_aaa(T412, T411, .(T697, T699))) → MS38_IN_AA(T420, .(T694, T698))
U104_AG(T412, T405, T406, T694, T696, T697, T699, ms38_out_aa(T420, .(T694, T698))) → U105_AG(T412, T405, T406, T694, T696, p194_in_gaaag(T694, T697, T699, T698, T696))
U104_AG(T412, T405, T406, T694, T696, T697, T699, ms38_out_aa(T420, .(T694, T698))) → P194_IN_GAAAG(T694, T697, T699, T698, T696)
ms1_in_ag([], []) → ms1_out_ag([], [])
ms1_in_ag(.(T29, .(T27, T28)), []) → U35_ag(T29, T27, T28, split12_in_aaaa(T27, T28, X42, X41))
split12_in_aaaa(T42, T44, .(T42, X71), X72) → U2_aaaa(T42, T44, X71, X72, split16_in_aaa(T44, X72, X71))
split16_in_aaa([], [], []) → split16_out_aaa([], [], [])
split16_in_aaa(.(T49, T51), .(T49, X89), X90) → U1_aaa(T49, T51, X89, X90, split16_in_aaa(T51, X90, X89))
U1_aaa(T49, T51, X89, X90, split16_out_aaa(T51, X90, X89)) → split16_out_aaa(.(T49, T51), .(T49, X89), X90)
U2_aaaa(T42, T44, X71, X72, split16_out_aaa(T44, X72, X71)) → split12_out_aaaa(T42, T44, .(T42, X71), X72)
U35_ag(T29, T27, T28, split12_out_aaaa(T27, T28, X42, X41)) → ms1_out_ag(.(T29, .(T27, T28)), [])
ms1_in_ag(.(T34, .(T27, T28)), []) → U36_ag(T34, T27, T28, split12_in_aaaa(T27, T28, T32, T33))
U36_ag(T34, T27, T28, split12_out_aaaa(T27, T28, T32, T33)) → U37_ag(T34, T27, T28, ms25_in_aaa(T34, T33, X13))
ms25_in_aaa(T62, [], .(T62, [])) → ms25_out_aaa(T62, [], .(T62, []))
ms25_in_aaa(T72, .(T73, T74), X127) → U21_aaa(T72, T73, T74, X127, p34_in_aaaaaaaa(T72, T73, T74, X123, X124, X125, X126, X127))
p34_in_aaaaaaaa(T72, T73, T74, X123, X124, X125, X126, X127) → U3_aaaaaaaa(T72, T73, T74, X123, X124, X125, X126, X127, split12_in_aaaa(T72, .(T73, T74), X123, X124))
U3_aaaaaaaa(T72, T73, T74, X123, X124, X125, X126, X127, split12_out_aaaa(T72, .(T73, T74), X123, X124)) → p34_out_aaaaaaaa(T72, T73, T74, X123, X124, X125, X126, X127)
p34_in_aaaaaaaa(T72, T73, T74, T78, T79, X125, X126, X127) → U4_aaaaaaaa(T72, T73, T74, T78, T79, X125, X126, X127, split12_in_aaaa(T72, .(T73, T74), T78, T79))
U4_aaaaaaaa(T72, T73, T74, T78, T79, X125, X126, X127, split12_out_aaaa(T72, .(T73, T74), T78, T79)) → U5_aaaaaaaa(T72, T73, T74, T78, T79, X125, X126, X127, ms38_in_aa(T78, X125))
ms38_in_aa([], []) → ms38_out_aa([], [])
ms38_in_aa(.(T89, []), .(T89, [])) → ms38_out_aa(.(T89, []), .(T89, []))
ms38_in_aa(.(T99, .(T100, T101)), X172) → U13_aa(T99, T100, T101, X172, p34_in_aaaaaaaa(T99, T100, T101, X168, X169, X170, X171, X172))
p34_in_aaaaaaaa(T72, T73, T74, T78, T84, T83, X126, X127) → U6_aaaaaaaa(T72, T73, T74, T78, T84, T83, X126, X127, split12_in_aaaa(T72, .(T73, T74), T78, T84))
U6_aaaaaaaa(T72, T73, T74, T78, T84, T83, X126, X127, split12_out_aaaa(T72, .(T73, T74), T78, T84)) → U7_aaaaaaaa(T72, T73, T74, T78, T84, T83, X126, X127, ms38_in_aa(T78, T83))
U7_aaaaaaaa(T72, T73, T74, T78, T84, T83, X126, X127, ms38_out_aa(T78, T83)) → U8_aaaaaaaa(T72, T73, T74, T78, T84, T83, X126, X127, ms38_in_aa(T84, X126))
U8_aaaaaaaa(T72, T73, T74, T78, T84, T83, X126, X127, ms38_out_aa(T84, X126)) → p34_out_aaaaaaaa(T72, T73, T74, T78, T84, T83, X126, X127)
p34_in_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127) → U9_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127, split12_in_aaaa(T72, .(T73, T74), T78, T84))
U9_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127, split12_out_aaaa(T72, .(T73, T74), T78, T84)) → U10_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127, ms38_in_aa(T78, T106))
U10_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127, ms38_out_aa(T78, T106)) → U11_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127, ms38_in_aa(T84, T105))
U11_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127, ms38_out_aa(T84, T105)) → U12_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127, merge54_in_aaa(T106, T105, X127))
merge54_in_aaa([], T113, T113) → merge54_out_aaa([], T113, T113)
merge54_in_aaa(T118, [], T118) → merge54_out_aaa(T118, [], T118)
merge54_in_aaa(.(T139, T141), .(T140, T142), .(T139, X226)) → U14_aaa(T139, T141, T140, T142, X226, less70_in_aa(T139, T140))
less70_in_aa(0, T154) → less70_out_aa(0, T154)
less70_in_aa(s(T161), T162) → U22_aa(T161, T162, less78_in_aa(T161, T162))
less78_in_aa(0, s(T169)) → less78_out_aa(0, s(T169))
less78_in_aa(s(T176), s(T177)) → U20_aa(T176, T177, less78_in_aa(T176, T177))
U20_aa(T176, T177, less78_out_aa(T176, T177)) → less78_out_aa(s(T176), s(T177))
U22_aa(T161, T162, less78_out_aa(T161, T162)) → less70_out_aa(s(T161), T162)
U14_aaa(T139, T141, T140, T142, X226, less70_out_aa(T139, T140)) → merge54_out_aaa(.(T139, T141), .(T140, T142), .(T139, X226))
merge54_in_aaa(.(T139, T145), .(T146, T147), .(T139, X226)) → U15_aaa(T139, T145, T146, T147, X226, less70_in_aa(T139, T146))
U15_aaa(T139, T145, T146, T147, X226, less70_out_aa(T139, T146)) → U16_aaa(T139, T145, T146, T147, X226, merge54_in_aaa(T145, .(T146, T147), X226))
merge54_in_aaa(.(T197, T199), .(T196, T198), .(T196, X287)) → U17_aaa(T197, T199, T196, T198, X287, less78_in_aa(T196, T197))
U17_aaa(T197, T199, T196, T198, X287, less78_out_aa(T196, T197)) → merge54_out_aaa(.(T197, T199), .(T196, T198), .(T196, X287))
merge54_in_aaa(.(T202, T203), .(T196, T204), .(T196, X287)) → U18_aaa(T202, T203, T196, T204, X287, less78_in_aa(T196, T202))
U18_aaa(T202, T203, T196, T204, X287, less78_out_aa(T196, T202)) → U19_aaa(T202, T203, T196, T204, X287, merge54_in_aaa(.(T202, T203), T204, X287))
U19_aaa(T202, T203, T196, T204, X287, merge54_out_aaa(.(T202, T203), T204, X287)) → merge54_out_aaa(.(T202, T203), .(T196, T204), .(T196, X287))
U16_aaa(T139, T145, T146, T147, X226, merge54_out_aaa(T145, .(T146, T147), X226)) → merge54_out_aaa(.(T139, T145), .(T146, T147), .(T139, X226))
U12_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127, merge54_out_aaa(T106, T105, X127)) → p34_out_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127)
U13_aa(T99, T100, T101, X172, p34_out_aaaaaaaa(T99, T100, T101, X168, X169, X170, X171, X172)) → ms38_out_aa(.(T99, .(T100, T101)), X172)
U5_aaaaaaaa(T72, T73, T74, T78, T79, X125, X126, X127, ms38_out_aa(T78, X125)) → p34_out_aaaaaaaa(T72, T73, T74, T78, T79, X125, X126, X127)
U21_aaa(T72, T73, T74, X127, p34_out_aaaaaaaa(T72, T73, T74, X123, X124, X125, X126, X127)) → ms25_out_aaa(T72, .(T73, T74), X127)
U37_ag(T34, T27, T28, ms25_out_aaa(T34, T33, X13)) → ms1_out_ag(.(T34, .(T27, T28)), [])
ms1_in_ag(.(T34, .(T27, T28)), []) → U38_ag(T34, T27, T28, split12_in_aaaa(T27, T28, T55, T33))
U38_ag(T34, T27, T28, split12_out_aaaa(T27, T28, T55, T33)) → U39_ag(T34, T27, T28, T55, ms25_in_aaa(T34, T33, T54))
U39_ag(T34, T27, T28, T55, ms25_out_aaa(T34, T33, T54)) → U40_ag(T34, T27, T28, ms38_in_aa(T55, X14))
U40_ag(T34, T27, T28, ms38_out_aa(T55, X14)) → ms1_out_ag(.(T34, .(T27, T28)), [])
U38_ag(T34, T27, T28, split12_out_aaaa(T27, T28, T55, T33)) → U41_ag(T34, T27, T28, T55, ms25_in_aaa(T34, T33, T212))
U41_ag(T34, T27, T28, T55, ms25_out_aaa(T34, T33, T212)) → U42_ag(T34, T27, T28, T212, ms38_in_aa(T55, T211))
U42_ag(T34, T27, T28, T212, ms38_out_aa(T55, T211)) → U43_ag(T34, T27, T28, merge93_in_aa(T212, T211))
merge93_in_aa([], []) → merge93_out_aa([], [])
U43_ag(T34, T27, T28, merge93_out_aa(T212, T211)) → ms1_out_ag(.(T34, .(T27, T28)), [])
ms1_in_ag(.(T234, []), .(T234, [])) → ms1_out_ag(.(T234, []), .(T234, []))
ms1_in_ag(.(T262, .(T260, T261)), .(T242, [])) → U44_ag(T262, T260, T261, T242, split12_in_aaaa(T260, T261, X367, X366))
U44_ag(T262, T260, T261, T242, split12_out_aaaa(T260, T261, X367, X366)) → ms1_out_ag(.(T262, .(T260, T261)), .(T242, []))
ms1_in_ag(.(T267, .(T260, T261)), .(T242, [])) → U45_ag(T267, T260, T261, T242, split12_in_aaaa(T260, T261, T265, T266))
U45_ag(T267, T260, T261, T242, split12_out_aaaa(T260, T261, T265, T266)) → U46_ag(T267, T260, T261, T242, ms25_in_aaa(T267, T266, X338))
U46_ag(T267, T260, T261, T242, ms25_out_aaa(T267, T266, X338)) → ms1_out_ag(.(T267, .(T260, T261)), .(T242, []))
ms1_in_ag(.(T267, .(T260, T261)), .(T242, [])) → U47_ag(T267, T260, T261, T242, split12_in_aaaa(T260, T261, T273, T266))
U47_ag(T267, T260, T261, T242, split12_out_aaaa(T260, T261, T273, T266)) → U48_ag(T267, T260, T261, T242, T273, ms25_in_aaa(T267, T266, T272))
U48_ag(T267, T260, T261, T242, T273, ms25_out_aaa(T267, T266, T272)) → U49_ag(T267, T260, T261, T242, ms38_in_aa(T273, X339))
U49_ag(T267, T260, T261, T242, ms38_out_aa(T273, X339)) → ms1_out_ag(.(T267, .(T260, T261)), .(T242, []))
ms1_in_ag(.(T267, .(T260, T261)), .(T291, [])) → U50_ag(T267, T260, T261, T291, split12_in_aaaa(T260, T261, T273, T266))
U50_ag(T267, T260, T261, T291, split12_out_aaaa(T260, T261, T273, T266)) → U51_ag(T267, T260, T261, T291, T273, ms25_in_aag(T267, T266, []))
ms25_in_aag(T62, [], .(T62, [])) → ms25_out_aag(T62, [], .(T62, []))
ms25_in_aag(T72, .(T73, T74), X127) → U21_aag(T72, T73, T74, X127, p34_in_aaaaaaag(T72, T73, T74, X123, X124, X125, X126, X127))
p34_in_aaaaaaag(T72, T73, T74, X123, X124, X125, X126, X127) → U3_aaaaaaag(T72, T73, T74, X123, X124, X125, X126, X127, split12_in_aaaa(T72, .(T73, T74), X123, X124))
U3_aaaaaaag(T72, T73, T74, X123, X124, X125, X126, X127, split12_out_aaaa(T72, .(T73, T74), X123, X124)) → p34_out_aaaaaaag(T72, T73, T74, X123, X124, X125, X126, X127)
p34_in_aaaaaaag(T72, T73, T74, T78, T79, X125, X126, X127) → U4_aaaaaaag(T72, T73, T74, T78, T79, X125, X126, X127, split12_in_aaaa(T72, .(T73, T74), T78, T79))
U4_aaaaaaag(T72, T73, T74, T78, T79, X125, X126, X127, split12_out_aaaa(T72, .(T73, T74), T78, T79)) → U5_aaaaaaag(T72, T73, T74, T78, T79, X125, X126, X127, ms38_in_aa(T78, X125))
U5_aaaaaaag(T72, T73, T74, T78, T79, X125, X126, X127, ms38_out_aa(T78, X125)) → p34_out_aaaaaaag(T72, T73, T74, T78, T79, X125, X126, X127)
p34_in_aaaaaaag(T72, T73, T74, T78, T84, T83, X126, X127) → U6_aaaaaaag(T72, T73, T74, T78, T84, T83, X126, X127, split12_in_aaaa(T72, .(T73, T74), T78, T84))
U6_aaaaaaag(T72, T73, T74, T78, T84, T83, X126, X127, split12_out_aaaa(T72, .(T73, T74), T78, T84)) → U7_aaaaaaag(T72, T73, T74, T78, T84, T83, X126, X127, ms38_in_aa(T78, T83))
U7_aaaaaaag(T72, T73, T74, T78, T84, T83, X126, X127, ms38_out_aa(T78, T83)) → U8_aaaaaaag(T72, T73, T74, T78, T84, T83, X126, X127, ms38_in_aa(T84, X126))
U8_aaaaaaag(T72, T73, T74, T78, T84, T83, X126, X127, ms38_out_aa(T84, X126)) → p34_out_aaaaaaag(T72, T73, T74, T78, T84, T83, X126, X127)
p34_in_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127) → U9_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127, split12_in_aaaa(T72, .(T73, T74), T78, T84))
U9_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127, split12_out_aaaa(T72, .(T73, T74), T78, T84)) → U10_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127, ms38_in_aa(T78, T106))
U10_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127, ms38_out_aa(T78, T106)) → U11_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127, ms38_in_aa(T84, T105))
U11_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127, ms38_out_aa(T84, T105)) → U12_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127, merge54_in_aag(T106, T105, X127))
merge54_in_aag([], T113, T113) → merge54_out_aag([], T113, T113)
merge54_in_aag(T118, [], T118) → merge54_out_aag(T118, [], T118)
merge54_in_aag(.(T139, T141), .(T140, T142), .(T139, X226)) → U14_aag(T139, T141, T140, T142, X226, less70_in_ga(T139, T140))
less70_in_ga(0, T154) → less70_out_ga(0, T154)
less70_in_ga(s(T161), T162) → U22_ga(T161, T162, less78_in_ga(T161, T162))
less78_in_ga(0, s(T169)) → less78_out_ga(0, s(T169))
less78_in_ga(s(T176), s(T177)) → U20_ga(T176, T177, less78_in_ga(T176, T177))
U20_ga(T176, T177, less78_out_ga(T176, T177)) → less78_out_ga(s(T176), s(T177))
U22_ga(T161, T162, less78_out_ga(T161, T162)) → less70_out_ga(s(T161), T162)
U14_aag(T139, T141, T140, T142, X226, less70_out_ga(T139, T140)) → merge54_out_aag(.(T139, T141), .(T140, T142), .(T139, X226))
merge54_in_aag(.(T139, T145), .(T146, T147), .(T139, X226)) → U15_aag(T139, T145, T146, T147, X226, less70_in_ga(T139, T146))
U15_aag(T139, T145, T146, T147, X226, less70_out_ga(T139, T146)) → U16_aag(T139, T145, T146, T147, X226, merge54_in_aag(T145, .(T146, T147), X226))
merge54_in_aag(.(T197, T199), .(T196, T198), .(T196, X287)) → U17_aag(T197, T199, T196, T198, X287, less78_in_ga(T196, T197))
U17_aag(T197, T199, T196, T198, X287, less78_out_ga(T196, T197)) → merge54_out_aag(.(T197, T199), .(T196, T198), .(T196, X287))
merge54_in_aag(.(T202, T203), .(T196, T204), .(T196, X287)) → U18_aag(T202, T203, T196, T204, X287, less78_in_ga(T196, T202))
U18_aag(T202, T203, T196, T204, X287, less78_out_ga(T196, T202)) → U19_aag(T202, T203, T196, T204, X287, merge54_in_aag(.(T202, T203), T204, X287))
U19_aag(T202, T203, T196, T204, X287, merge54_out_aag(.(T202, T203), T204, X287)) → merge54_out_aag(.(T202, T203), .(T196, T204), .(T196, X287))
U16_aag(T139, T145, T146, T147, X226, merge54_out_aag(T145, .(T146, T147), X226)) → merge54_out_aag(.(T139, T145), .(T146, T147), .(T139, X226))
U12_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127, merge54_out_aag(T106, T105, X127)) → p34_out_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127)
U21_aag(T72, T73, T74, X127, p34_out_aaaaaaag(T72, T73, T74, X123, X124, X125, X126, X127)) → ms25_out_aag(T72, .(T73, T74), X127)
U51_ag(T267, T260, T261, T291, T273, ms25_out_aag(T267, T266, [])) → U52_ag(T267, T260, T261, T291, ms38_in_ag(T273, .(T291, [])))
ms38_in_ag([], []) → ms38_out_ag([], [])
ms38_in_ag(.(T89, []), .(T89, [])) → ms38_out_ag(.(T89, []), .(T89, []))
ms38_in_ag(.(T99, .(T100, T101)), X172) → U13_ag(T99, T100, T101, X172, p34_in_aaaaaaag(T99, T100, T101, X168, X169, X170, X171, X172))
U13_ag(T99, T100, T101, X172, p34_out_aaaaaaag(T99, T100, T101, X168, X169, X170, X171, X172)) → ms38_out_ag(.(T99, .(T100, T101)), X172)
U52_ag(T267, T260, T261, T291, ms38_out_ag(T273, .(T291, []))) → ms1_out_ag(.(T267, .(T260, T261)), .(T291, []))
ms1_in_ag(.(T267, .(T260, T261)), .(T301, [])) → U53_ag(T267, T260, T261, T301, split12_in_aaaa(T260, T261, T273, T266))
U53_ag(T267, T260, T261, T301, split12_out_aaaa(T260, T261, T273, T266)) → U54_ag(T267, T260, T261, T301, T273, ms25_in_aag(T267, T266, .(T301, [])))
U54_ag(T267, T260, T261, T301, T273, ms25_out_aag(T267, T266, .(T301, []))) → U55_ag(T267, T260, T261, T301, ms38_in_ag(T273, []))
U55_ag(T267, T260, T261, T301, ms38_out_ag(T273, [])) → ms1_out_ag(.(T267, .(T260, T261)), .(T301, []))
ms1_in_ag(.(T267, .(T260, T261)), .(T318, [])) → U56_ag(T267, T260, T261, T318, split12_in_aaaa(T260, T261, T273, T266))
U56_ag(T267, T260, T261, T318, split12_out_aaaa(T260, T261, T273, T266)) → U57_ag(T267, T260, T261, T318, T273, ms25_in_aaa(T267, T266, .(T318, T323)))
U57_ag(T267, T260, T261, T318, T273, ms25_out_aaa(T267, T266, .(T318, T323))) → U58_ag(T267, T260, T261, T318, ms38_in_aa(T273, .(T322, T324)))
U58_ag(T267, T260, T261, T318, ms38_out_aa(T273, .(T322, T324))) → U59_ag(T267, T260, T261, T318, less70_in_ga(T318, T322))
U59_ag(T267, T260, T261, T318, less70_out_ga(T318, T322)) → ms1_out_ag(.(T267, .(T260, T261)), .(T318, []))
U56_ag(T267, T260, T261, T318, split12_out_aaaa(T260, T261, T273, T266)) → U60_ag(T267, T260, T261, T318, T273, ms25_in_aaa(T267, T266, .(T318, T327)))
U60_ag(T267, T260, T261, T318, T273, ms25_out_aaa(T267, T266, .(T318, T327))) → U61_ag(T267, T260, T261, T318, T327, ms38_in_aa(T273, .(T328, T329)))
U61_ag(T267, T260, T261, T318, T327, ms38_out_aa(T273, .(T328, T329))) → U62_ag(T267, T260, T261, T318, T327, T328, T329, less70_in_ga(T318, T328))
U62_ag(T267, T260, T261, T318, T327, T328, T329, less70_out_ga(T318, T328)) → U63_ag(T267, T260, T261, T318, merge93_in_aa(T327, .(T328, T329)))
U63_ag(T267, T260, T261, T318, merge93_out_aa(T327, .(T328, T329))) → ms1_out_ag(.(T267, .(T260, T261)), .(T318, []))
ms1_in_ag(.(T267, .(T260, T261)), .(T356, [])) → U64_ag(T267, T260, T261, T356, split12_in_aaaa(T260, T261, T273, T266))
U64_ag(T267, T260, T261, T356, split12_out_aaaa(T260, T261, T273, T266)) → U65_ag(T267, T260, T261, T356, T273, ms25_in_aaa(T267, T266, .(T358, T360)))
U65_ag(T267, T260, T261, T356, T273, ms25_out_aaa(T267, T266, .(T358, T360))) → U66_ag(T267, T260, T261, T356, T358, ms38_in_aa(T273, .(T356, T359)))
U66_ag(T267, T260, T261, T356, T358, ms38_out_aa(T273, .(T356, T359))) → U67_ag(T267, T260, T261, T356, less78_in_ga(T356, T358))
U67_ag(T267, T260, T261, T356, less78_out_ga(T356, T358)) → ms1_out_ag(.(T267, .(T260, T261)), .(T356, []))
U64_ag(T267, T260, T261, T356, split12_out_aaaa(T260, T261, T273, T266)) → U68_ag(T267, T260, T261, T356, T273, ms25_in_aaa(T267, T266, .(T363, T364)))
U68_ag(T267, T260, T261, T356, T273, ms25_out_aaa(T267, T266, .(T363, T364))) → U69_ag(T267, T260, T261, T356, T363, T364, ms38_in_aa(T273, .(T356, T365)))
U69_ag(T267, T260, T261, T356, T363, T364, ms38_out_aa(T273, .(T356, T365))) → U70_ag(T267, T260, T261, T356, T363, T364, T365, less78_in_ga(T356, T363))
U70_ag(T267, T260, T261, T356, T363, T364, T365, less78_out_ga(T356, T363)) → U71_ag(T267, T260, T261, T356, merge93_in_aa(.(T363, T364), T365))
U71_ag(T267, T260, T261, T356, merge93_out_aa(.(T363, T364), T365)) → ms1_out_ag(.(T267, .(T260, T261)), .(T356, []))
ms1_in_ag(.(T407, .(T405, T406)), T387) → U72_ag(T407, T405, T406, T387, split12_in_aaaa(T405, T406, X523, X522))
U72_ag(T407, T405, T406, T387, split12_out_aaaa(T405, T406, X523, X522)) → ms1_out_ag(.(T407, .(T405, T406)), T387)
ms1_in_ag(.(T412, .(T405, T406)), T387) → U73_ag(T412, T405, T406, T387, split12_in_aaaa(T405, T406, T410, T411))
U73_ag(T412, T405, T406, T387, split12_out_aaaa(T405, T406, T410, T411)) → U74_ag(T412, T405, T406, T387, ms25_in_aaa(T412, T411, X494))
U74_ag(T412, T405, T406, T387, ms25_out_aaa(T412, T411, X494)) → ms1_out_ag(.(T412, .(T405, T406)), T387)
ms1_in_ag(.(T412, .(T405, T406)), T387) → U75_ag(T412, T405, T406, T387, split12_in_aaaa(T405, T406, T420, T411))
U75_ag(T412, T405, T406, T387, split12_out_aaaa(T405, T406, T420, T411)) → U76_ag(T412, T405, T406, T387, T420, ms25_in_aaa(T412, T411, T419))
U76_ag(T412, T405, T406, T387, T420, ms25_out_aaa(T412, T411, T419)) → U77_ag(T412, T405, T406, T387, ms38_in_aa(T420, X495))
U77_ag(T412, T405, T406, T387, ms38_out_aa(T420, X495)) → ms1_out_ag(.(T412, .(T405, T406)), T387)
ms1_in_ag(.(T412, .(T405, T406)), T435) → U78_ag(T412, T405, T406, T435, split12_in_aaaa(T405, T406, T420, T411))
U78_ag(T412, T405, T406, T435, split12_out_aaaa(T405, T406, T420, T411)) → U79_ag(T412, T405, T406, T435, T420, ms25_in_aag(T412, T411, []))
U79_ag(T412, T405, T406, T435, T420, ms25_out_aag(T412, T411, [])) → U80_ag(T412, T405, T406, T435, ms38_in_ag(T420, T435))
U80_ag(T412, T405, T406, T435, ms38_out_ag(T420, T435)) → ms1_out_ag(.(T412, .(T405, T406)), T435)
ms1_in_ag(.(T412, .(T405, T406)), T440) → U81_ag(T412, T405, T406, T440, split12_in_aaaa(T405, T406, T420, T411))
U81_ag(T412, T405, T406, T440, split12_out_aaaa(T405, T406, T420, T411)) → U82_ag(T412, T405, T406, T440, T420, ms25_in_aag(T412, T411, T440))
U82_ag(T412, T405, T406, T440, T420, ms25_out_aag(T412, T411, T440)) → U83_ag(T412, T405, T406, T440, ms38_in_ag(T420, []))
U83_ag(T412, T405, T406, T440, ms38_out_ag(T420, [])) → ms1_out_ag(.(T412, .(T405, T406)), T440)
ms1_in_ag(.(T412, .(T405, T406)), .(T461, T465)) → U84_ag(T412, T405, T406, T461, T465, split12_in_aaaa(T405, T406, T420, T411))
U84_ag(T412, T405, T406, T461, T465, split12_out_aaaa(T405, T406, T420, T411)) → U85_ag(T412, T405, T406, T461, T465, T420, ms25_in_aaa(T412, T411, .(T461, T467)))
U85_ag(T412, T405, T406, T461, T465, T420, ms25_out_aaa(T412, T411, .(T461, T467))) → U86_ag(T412, T405, T406, T461, T465, ms38_in_aa(T420, .(T466, T468)))
U86_ag(T412, T405, T406, T461, T465, ms38_out_aa(T420, .(T466, T468))) → U87_ag(T412, T405, T406, T461, T465, less70_in_ga(T461, T466))
U87_ag(T412, T405, T406, T461, T465, less70_out_ga(T461, T466)) → ms1_out_ag(.(T412, .(T405, T406)), .(T461, T465))
ms1_in_ag(.(T412, .(T405, T406)), .(T461, .(T490, T491))) → U88_ag(T412, T405, T406, T461, T490, T491, split12_in_aaaa(T405, T406, T420, T411))
U88_ag(T412, T405, T406, T461, T490, T491, split12_out_aaaa(T405, T406, T420, T411)) → U89_ag(T412, T405, T406, T461, T490, T491, T420, ms25_in_aag(T412, T411, .(T461, [])))
U89_ag(T412, T405, T406, T461, T490, T491, T420, ms25_out_aag(T412, T411, .(T461, []))) → U90_ag(T412, T405, T406, T461, T490, T491, ms38_in_ag(T420, .(T490, T491)))
U90_ag(T412, T405, T406, T461, T490, T491, ms38_out_ag(T420, .(T490, T491))) → U91_ag(T412, T405, T406, T461, T490, T491, less70_in_gg(T461, T490))
less70_in_gg(0, T154) → less70_out_gg(0, T154)
less70_in_gg(s(T161), T162) → U22_gg(T161, T162, less78_in_gg(T161, T162))
less78_in_gg(0, s(T169)) → less78_out_gg(0, s(T169))
less78_in_gg(s(T176), s(T177)) → U20_gg(T176, T177, less78_in_gg(T176, T177))
U20_gg(T176, T177, less78_out_gg(T176, T177)) → less78_out_gg(s(T176), s(T177))
U22_gg(T161, T162, less78_out_gg(T161, T162)) → less70_out_gg(s(T161), T162)
U91_ag(T412, T405, T406, T461, T490, T491, less70_out_gg(T461, T490)) → ms1_out_ag(.(T412, .(T405, T406)), .(T461, .(T490, T491)))
ms1_in_ag(.(T412, .(T405, T406)), .(T461, .(T513, T517))) → U92_ag(T412, T405, T406, T461, T513, T517, split12_in_aaaa(T405, T406, T420, T411))
U92_ag(T412, T405, T406, T461, T513, T517, split12_out_aaaa(T405, T406, T420, T411)) → U93_ag(T412, T405, T406, T461, T513, T517, T420, ms25_in_aaa(T412, T411, .(T461, .(T513, T519))))
U93_ag(T412, T405, T406, T461, T513, T517, T420, ms25_out_aaa(T412, T411, .(T461, .(T513, T519)))) → U94_ag(T412, T405, T406, T461, T513, T517, T519, ms38_in_aa(T420, .(T518, T520)))
U94_ag(T412, T405, T406, T461, T513, T517, T519, ms38_out_aa(T420, .(T518, T520))) → U95_ag(T412, T405, T406, T461, T513, T517, T519, T518, T520, less70_in_ga(T461, T518))
U95_ag(T412, T405, T406, T461, T513, T517, T519, T518, T520, less70_out_ga(T461, T518)) → U96_ag(T412, T405, T406, T461, T513, T517, p179_in_gaaag(T513, T518, T519, T520, T517))
p179_in_gaaag(T513, T518, T519, T520, T517) → U23_gaaag(T513, T518, T519, T520, T517, less70_in_ga(T513, T518))
U23_gaaag(T513, T518, T519, T520, T517, less70_out_ga(T513, T518)) → p179_out_gaaag(T513, T518, T519, T520, T517)
p179_in_gaaag(T513, T540, [], T541, .(T540, T541)) → U24_gaaag(T513, T540, T541, less70_in_gg(T513, T540))
U24_gaaag(T513, T540, T541, less70_out_gg(T513, T540)) → p179_out_gaaag(T513, T540, [], T541, .(T540, T541))
p179_in_gaaag(T513, T568, .(T563, T569), T570, .(T563, T567)) → U25_gaaag(T513, T568, T563, T569, T570, T567, less70_in_ga(T513, T568))
U25_gaaag(T513, T568, T563, T569, T570, T567, less70_out_ga(T513, T568)) → U26_gaaag(T513, T568, T563, T569, T570, T567, p179_in_gaaag(T563, T568, T569, T570, T567))
p179_in_gaaag(T513, T585, .(T588, T590), T589, .(T585, T587)) → U27_gaaag(T513, T585, T588, T590, T589, T587, less70_in_gg(T513, T585))
U27_gaaag(T513, T585, T588, T590, T589, T587, less70_out_gg(T513, T585)) → U28_gaaag(T513, T585, T588, T590, T589, T587, p194_in_gaaag(T585, T588, T590, T589, T587))
p194_in_gaaag(T585, T588, T590, T589, T587) → U29_gaaag(T585, T588, T590, T589, T587, less78_in_ga(T585, T588))
U29_gaaag(T585, T588, T590, T589, T587, less78_out_ga(T585, T588)) → p194_out_gaaag(T585, T588, T590, T589, T587)
p194_in_gaaag(T585, T610, T611, [], .(T610, T611)) → U30_gaaag(T585, T610, T611, less78_in_gg(T585, T610))
U30_gaaag(T585, T610, T611, less78_out_gg(T585, T610)) → p194_out_gaaag(T585, T610, T611, [], .(T610, T611))
p194_in_gaaag(T585, T632, T638, .(T637, T639), .(T632, T636)) → U31_gaaag(T585, T632, T638, T637, T639, T636, less78_in_gg(T585, T632))
U31_gaaag(T585, T632, T638, T637, T639, T636, less78_out_gg(T585, T632)) → U32_gaaag(T585, T632, T638, T637, T639, T636, p179_in_gaaag(T632, T637, T638, T639, T636))
U32_gaaag(T585, T632, T638, T637, T639, T636, p179_out_gaaag(T632, T637, T638, T639, T636)) → p194_out_gaaag(T585, T632, T638, .(T637, T639), .(T632, T636))
p194_in_gaaag(T585, T657, T659, .(T654, T658), .(T654, T656)) → U33_gaaag(T585, T657, T659, T654, T658, T656, less78_in_ga(T585, T657))
U33_gaaag(T585, T657, T659, T654, T658, T656, less78_out_ga(T585, T657)) → U34_gaaag(T585, T657, T659, T654, T658, T656, p194_in_gaaag(T654, T657, T659, T658, T656))
U34_gaaag(T585, T657, T659, T654, T658, T656, p194_out_gaaag(T654, T657, T659, T658, T656)) → p194_out_gaaag(T585, T657, T659, .(T654, T658), .(T654, T656))
U28_gaaag(T513, T585, T588, T590, T589, T587, p194_out_gaaag(T585, T588, T590, T589, T587)) → p179_out_gaaag(T513, T585, .(T588, T590), T589, .(T585, T587))
U26_gaaag(T513, T568, T563, T569, T570, T567, p179_out_gaaag(T563, T568, T569, T570, T567)) → p179_out_gaaag(T513, T568, .(T563, T569), T570, .(T563, T567))
U96_ag(T412, T405, T406, T461, T513, T517, p179_out_gaaag(T513, T518, T519, T520, T517)) → ms1_out_ag(.(T412, .(T405, T406)), .(T461, .(T513, T517)))
ms1_in_ag(.(T412, .(T405, T406)), .(T461, .(T674, T676))) → U97_ag(T412, T405, T406, T461, T674, T676, split12_in_aaaa(T405, T406, T420, T411))
U97_ag(T412, T405, T406, T461, T674, T676, split12_out_aaaa(T405, T406, T420, T411)) → U98_ag(T412, T405, T406, T461, T674, T676, T420, ms25_in_aaa(T412, T411, .(T461, .(T677, T679))))
U98_ag(T412, T405, T406, T461, T674, T676, T420, ms25_out_aaa(T412, T411, .(T461, .(T677, T679)))) → U99_ag(T412, T405, T406, T461, T674, T676, T677, T679, ms38_in_aa(T420, .(T674, T678)))
U99_ag(T412, T405, T406, T461, T674, T676, T677, T679, ms38_out_aa(T420, .(T674, T678))) → U100_ag(T412, T405, T406, T461, T674, T676, T677, T679, T678, less70_in_gg(T461, T674))
U100_ag(T412, T405, T406, T461, T674, T676, T677, T679, T678, less70_out_gg(T461, T674)) → U101_ag(T412, T405, T406, T461, T674, T676, p194_in_gaaag(T674, T677, T679, T678, T676))
U101_ag(T412, T405, T406, T461, T674, T676, p194_out_gaaag(T674, T677, T679, T678, T676)) → ms1_out_ag(.(T412, .(T405, T406)), .(T461, .(T674, T676)))
ms1_in_ag(.(T412, .(T405, T406)), .(T694, T696)) → U102_ag(T412, T405, T406, T694, T696, split12_in_aaaa(T405, T406, T420, T411))
U102_ag(T412, T405, T406, T694, T696, split12_out_aaaa(T405, T406, T420, T411)) → U103_ag(T412, T405, T406, T694, T696, T420, ms25_in_aaa(T412, T411, .(T697, T699)))
U103_ag(T412, T405, T406, T694, T696, T420, ms25_out_aaa(T412, T411, .(T697, T699))) → U104_ag(T412, T405, T406, T694, T696, T697, T699, ms38_in_aa(T420, .(T694, T698)))
U104_ag(T412, T405, T406, T694, T696, T697, T699, ms38_out_aa(T420, .(T694, T698))) → U105_ag(T412, T405, T406, T694, T696, p194_in_gaaag(T694, T697, T699, T698, T696))
U105_ag(T412, T405, T406, T694, T696, p194_out_gaaag(T694, T697, T699, T698, T696)) → ms1_out_ag(.(T412, .(T405, T406)), .(T694, T696))
LESS78_IN_GG(s(T176), s(T177)) → LESS78_IN_GG(T176, T177)
ms1_in_ag([], []) → ms1_out_ag([], [])
ms1_in_ag(.(T29, .(T27, T28)), []) → U35_ag(T29, T27, T28, split12_in_aaaa(T27, T28, X42, X41))
split12_in_aaaa(T42, T44, .(T42, X71), X72) → U2_aaaa(T42, T44, X71, X72, split16_in_aaa(T44, X72, X71))
split16_in_aaa([], [], []) → split16_out_aaa([], [], [])
split16_in_aaa(.(T49, T51), .(T49, X89), X90) → U1_aaa(T49, T51, X89, X90, split16_in_aaa(T51, X90, X89))
U1_aaa(T49, T51, X89, X90, split16_out_aaa(T51, X90, X89)) → split16_out_aaa(.(T49, T51), .(T49, X89), X90)
U2_aaaa(T42, T44, X71, X72, split16_out_aaa(T44, X72, X71)) → split12_out_aaaa(T42, T44, .(T42, X71), X72)
U35_ag(T29, T27, T28, split12_out_aaaa(T27, T28, X42, X41)) → ms1_out_ag(.(T29, .(T27, T28)), [])
ms1_in_ag(.(T34, .(T27, T28)), []) → U36_ag(T34, T27, T28, split12_in_aaaa(T27, T28, T32, T33))
U36_ag(T34, T27, T28, split12_out_aaaa(T27, T28, T32, T33)) → U37_ag(T34, T27, T28, ms25_in_aaa(T34, T33, X13))
ms25_in_aaa(T62, [], .(T62, [])) → ms25_out_aaa(T62, [], .(T62, []))
ms25_in_aaa(T72, .(T73, T74), X127) → U21_aaa(T72, T73, T74, X127, p34_in_aaaaaaaa(T72, T73, T74, X123, X124, X125, X126, X127))
p34_in_aaaaaaaa(T72, T73, T74, X123, X124, X125, X126, X127) → U3_aaaaaaaa(T72, T73, T74, X123, X124, X125, X126, X127, split12_in_aaaa(T72, .(T73, T74), X123, X124))
U3_aaaaaaaa(T72, T73, T74, X123, X124, X125, X126, X127, split12_out_aaaa(T72, .(T73, T74), X123, X124)) → p34_out_aaaaaaaa(T72, T73, T74, X123, X124, X125, X126, X127)
p34_in_aaaaaaaa(T72, T73, T74, T78, T79, X125, X126, X127) → U4_aaaaaaaa(T72, T73, T74, T78, T79, X125, X126, X127, split12_in_aaaa(T72, .(T73, T74), T78, T79))
U4_aaaaaaaa(T72, T73, T74, T78, T79, X125, X126, X127, split12_out_aaaa(T72, .(T73, T74), T78, T79)) → U5_aaaaaaaa(T72, T73, T74, T78, T79, X125, X126, X127, ms38_in_aa(T78, X125))
ms38_in_aa([], []) → ms38_out_aa([], [])
ms38_in_aa(.(T89, []), .(T89, [])) → ms38_out_aa(.(T89, []), .(T89, []))
ms38_in_aa(.(T99, .(T100, T101)), X172) → U13_aa(T99, T100, T101, X172, p34_in_aaaaaaaa(T99, T100, T101, X168, X169, X170, X171, X172))
p34_in_aaaaaaaa(T72, T73, T74, T78, T84, T83, X126, X127) → U6_aaaaaaaa(T72, T73, T74, T78, T84, T83, X126, X127, split12_in_aaaa(T72, .(T73, T74), T78, T84))
U6_aaaaaaaa(T72, T73, T74, T78, T84, T83, X126, X127, split12_out_aaaa(T72, .(T73, T74), T78, T84)) → U7_aaaaaaaa(T72, T73, T74, T78, T84, T83, X126, X127, ms38_in_aa(T78, T83))
U7_aaaaaaaa(T72, T73, T74, T78, T84, T83, X126, X127, ms38_out_aa(T78, T83)) → U8_aaaaaaaa(T72, T73, T74, T78, T84, T83, X126, X127, ms38_in_aa(T84, X126))
U8_aaaaaaaa(T72, T73, T74, T78, T84, T83, X126, X127, ms38_out_aa(T84, X126)) → p34_out_aaaaaaaa(T72, T73, T74, T78, T84, T83, X126, X127)
p34_in_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127) → U9_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127, split12_in_aaaa(T72, .(T73, T74), T78, T84))
U9_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127, split12_out_aaaa(T72, .(T73, T74), T78, T84)) → U10_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127, ms38_in_aa(T78, T106))
U10_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127, ms38_out_aa(T78, T106)) → U11_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127, ms38_in_aa(T84, T105))
U11_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127, ms38_out_aa(T84, T105)) → U12_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127, merge54_in_aaa(T106, T105, X127))
merge54_in_aaa([], T113, T113) → merge54_out_aaa([], T113, T113)
merge54_in_aaa(T118, [], T118) → merge54_out_aaa(T118, [], T118)
merge54_in_aaa(.(T139, T141), .(T140, T142), .(T139, X226)) → U14_aaa(T139, T141, T140, T142, X226, less70_in_aa(T139, T140))
less70_in_aa(0, T154) → less70_out_aa(0, T154)
less70_in_aa(s(T161), T162) → U22_aa(T161, T162, less78_in_aa(T161, T162))
less78_in_aa(0, s(T169)) → less78_out_aa(0, s(T169))
less78_in_aa(s(T176), s(T177)) → U20_aa(T176, T177, less78_in_aa(T176, T177))
U20_aa(T176, T177, less78_out_aa(T176, T177)) → less78_out_aa(s(T176), s(T177))
U22_aa(T161, T162, less78_out_aa(T161, T162)) → less70_out_aa(s(T161), T162)
U14_aaa(T139, T141, T140, T142, X226, less70_out_aa(T139, T140)) → merge54_out_aaa(.(T139, T141), .(T140, T142), .(T139, X226))
merge54_in_aaa(.(T139, T145), .(T146, T147), .(T139, X226)) → U15_aaa(T139, T145, T146, T147, X226, less70_in_aa(T139, T146))
U15_aaa(T139, T145, T146, T147, X226, less70_out_aa(T139, T146)) → U16_aaa(T139, T145, T146, T147, X226, merge54_in_aaa(T145, .(T146, T147), X226))
merge54_in_aaa(.(T197, T199), .(T196, T198), .(T196, X287)) → U17_aaa(T197, T199, T196, T198, X287, less78_in_aa(T196, T197))
U17_aaa(T197, T199, T196, T198, X287, less78_out_aa(T196, T197)) → merge54_out_aaa(.(T197, T199), .(T196, T198), .(T196, X287))
merge54_in_aaa(.(T202, T203), .(T196, T204), .(T196, X287)) → U18_aaa(T202, T203, T196, T204, X287, less78_in_aa(T196, T202))
U18_aaa(T202, T203, T196, T204, X287, less78_out_aa(T196, T202)) → U19_aaa(T202, T203, T196, T204, X287, merge54_in_aaa(.(T202, T203), T204, X287))
U19_aaa(T202, T203, T196, T204, X287, merge54_out_aaa(.(T202, T203), T204, X287)) → merge54_out_aaa(.(T202, T203), .(T196, T204), .(T196, X287))
U16_aaa(T139, T145, T146, T147, X226, merge54_out_aaa(T145, .(T146, T147), X226)) → merge54_out_aaa(.(T139, T145), .(T146, T147), .(T139, X226))
U12_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127, merge54_out_aaa(T106, T105, X127)) → p34_out_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127)
U13_aa(T99, T100, T101, X172, p34_out_aaaaaaaa(T99, T100, T101, X168, X169, X170, X171, X172)) → ms38_out_aa(.(T99, .(T100, T101)), X172)
U5_aaaaaaaa(T72, T73, T74, T78, T79, X125, X126, X127, ms38_out_aa(T78, X125)) → p34_out_aaaaaaaa(T72, T73, T74, T78, T79, X125, X126, X127)
U21_aaa(T72, T73, T74, X127, p34_out_aaaaaaaa(T72, T73, T74, X123, X124, X125, X126, X127)) → ms25_out_aaa(T72, .(T73, T74), X127)
U37_ag(T34, T27, T28, ms25_out_aaa(T34, T33, X13)) → ms1_out_ag(.(T34, .(T27, T28)), [])
ms1_in_ag(.(T34, .(T27, T28)), []) → U38_ag(T34, T27, T28, split12_in_aaaa(T27, T28, T55, T33))
U38_ag(T34, T27, T28, split12_out_aaaa(T27, T28, T55, T33)) → U39_ag(T34, T27, T28, T55, ms25_in_aaa(T34, T33, T54))
U39_ag(T34, T27, T28, T55, ms25_out_aaa(T34, T33, T54)) → U40_ag(T34, T27, T28, ms38_in_aa(T55, X14))
U40_ag(T34, T27, T28, ms38_out_aa(T55, X14)) → ms1_out_ag(.(T34, .(T27, T28)), [])
U38_ag(T34, T27, T28, split12_out_aaaa(T27, T28, T55, T33)) → U41_ag(T34, T27, T28, T55, ms25_in_aaa(T34, T33, T212))
U41_ag(T34, T27, T28, T55, ms25_out_aaa(T34, T33, T212)) → U42_ag(T34, T27, T28, T212, ms38_in_aa(T55, T211))
U42_ag(T34, T27, T28, T212, ms38_out_aa(T55, T211)) → U43_ag(T34, T27, T28, merge93_in_aa(T212, T211))
merge93_in_aa([], []) → merge93_out_aa([], [])
U43_ag(T34, T27, T28, merge93_out_aa(T212, T211)) → ms1_out_ag(.(T34, .(T27, T28)), [])
ms1_in_ag(.(T234, []), .(T234, [])) → ms1_out_ag(.(T234, []), .(T234, []))
ms1_in_ag(.(T262, .(T260, T261)), .(T242, [])) → U44_ag(T262, T260, T261, T242, split12_in_aaaa(T260, T261, X367, X366))
U44_ag(T262, T260, T261, T242, split12_out_aaaa(T260, T261, X367, X366)) → ms1_out_ag(.(T262, .(T260, T261)), .(T242, []))
ms1_in_ag(.(T267, .(T260, T261)), .(T242, [])) → U45_ag(T267, T260, T261, T242, split12_in_aaaa(T260, T261, T265, T266))
U45_ag(T267, T260, T261, T242, split12_out_aaaa(T260, T261, T265, T266)) → U46_ag(T267, T260, T261, T242, ms25_in_aaa(T267, T266, X338))
U46_ag(T267, T260, T261, T242, ms25_out_aaa(T267, T266, X338)) → ms1_out_ag(.(T267, .(T260, T261)), .(T242, []))
ms1_in_ag(.(T267, .(T260, T261)), .(T242, [])) → U47_ag(T267, T260, T261, T242, split12_in_aaaa(T260, T261, T273, T266))
U47_ag(T267, T260, T261, T242, split12_out_aaaa(T260, T261, T273, T266)) → U48_ag(T267, T260, T261, T242, T273, ms25_in_aaa(T267, T266, T272))
U48_ag(T267, T260, T261, T242, T273, ms25_out_aaa(T267, T266, T272)) → U49_ag(T267, T260, T261, T242, ms38_in_aa(T273, X339))
U49_ag(T267, T260, T261, T242, ms38_out_aa(T273, X339)) → ms1_out_ag(.(T267, .(T260, T261)), .(T242, []))
ms1_in_ag(.(T267, .(T260, T261)), .(T291, [])) → U50_ag(T267, T260, T261, T291, split12_in_aaaa(T260, T261, T273, T266))
U50_ag(T267, T260, T261, T291, split12_out_aaaa(T260, T261, T273, T266)) → U51_ag(T267, T260, T261, T291, T273, ms25_in_aag(T267, T266, []))
ms25_in_aag(T62, [], .(T62, [])) → ms25_out_aag(T62, [], .(T62, []))
ms25_in_aag(T72, .(T73, T74), X127) → U21_aag(T72, T73, T74, X127, p34_in_aaaaaaag(T72, T73, T74, X123, X124, X125, X126, X127))
p34_in_aaaaaaag(T72, T73, T74, X123, X124, X125, X126, X127) → U3_aaaaaaag(T72, T73, T74, X123, X124, X125, X126, X127, split12_in_aaaa(T72, .(T73, T74), X123, X124))
U3_aaaaaaag(T72, T73, T74, X123, X124, X125, X126, X127, split12_out_aaaa(T72, .(T73, T74), X123, X124)) → p34_out_aaaaaaag(T72, T73, T74, X123, X124, X125, X126, X127)
p34_in_aaaaaaag(T72, T73, T74, T78, T79, X125, X126, X127) → U4_aaaaaaag(T72, T73, T74, T78, T79, X125, X126, X127, split12_in_aaaa(T72, .(T73, T74), T78, T79))
U4_aaaaaaag(T72, T73, T74, T78, T79, X125, X126, X127, split12_out_aaaa(T72, .(T73, T74), T78, T79)) → U5_aaaaaaag(T72, T73, T74, T78, T79, X125, X126, X127, ms38_in_aa(T78, X125))
U5_aaaaaaag(T72, T73, T74, T78, T79, X125, X126, X127, ms38_out_aa(T78, X125)) → p34_out_aaaaaaag(T72, T73, T74, T78, T79, X125, X126, X127)
p34_in_aaaaaaag(T72, T73, T74, T78, T84, T83, X126, X127) → U6_aaaaaaag(T72, T73, T74, T78, T84, T83, X126, X127, split12_in_aaaa(T72, .(T73, T74), T78, T84))
U6_aaaaaaag(T72, T73, T74, T78, T84, T83, X126, X127, split12_out_aaaa(T72, .(T73, T74), T78, T84)) → U7_aaaaaaag(T72, T73, T74, T78, T84, T83, X126, X127, ms38_in_aa(T78, T83))
U7_aaaaaaag(T72, T73, T74, T78, T84, T83, X126, X127, ms38_out_aa(T78, T83)) → U8_aaaaaaag(T72, T73, T74, T78, T84, T83, X126, X127, ms38_in_aa(T84, X126))
U8_aaaaaaag(T72, T73, T74, T78, T84, T83, X126, X127, ms38_out_aa(T84, X126)) → p34_out_aaaaaaag(T72, T73, T74, T78, T84, T83, X126, X127)
p34_in_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127) → U9_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127, split12_in_aaaa(T72, .(T73, T74), T78, T84))
U9_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127, split12_out_aaaa(T72, .(T73, T74), T78, T84)) → U10_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127, ms38_in_aa(T78, T106))
U10_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127, ms38_out_aa(T78, T106)) → U11_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127, ms38_in_aa(T84, T105))
U11_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127, ms38_out_aa(T84, T105)) → U12_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127, merge54_in_aag(T106, T105, X127))
merge54_in_aag([], T113, T113) → merge54_out_aag([], T113, T113)
merge54_in_aag(T118, [], T118) → merge54_out_aag(T118, [], T118)
merge54_in_aag(.(T139, T141), .(T140, T142), .(T139, X226)) → U14_aag(T139, T141, T140, T142, X226, less70_in_ga(T139, T140))
less70_in_ga(0, T154) → less70_out_ga(0, T154)
less70_in_ga(s(T161), T162) → U22_ga(T161, T162, less78_in_ga(T161, T162))
less78_in_ga(0, s(T169)) → less78_out_ga(0, s(T169))
less78_in_ga(s(T176), s(T177)) → U20_ga(T176, T177, less78_in_ga(T176, T177))
U20_ga(T176, T177, less78_out_ga(T176, T177)) → less78_out_ga(s(T176), s(T177))
U22_ga(T161, T162, less78_out_ga(T161, T162)) → less70_out_ga(s(T161), T162)
U14_aag(T139, T141, T140, T142, X226, less70_out_ga(T139, T140)) → merge54_out_aag(.(T139, T141), .(T140, T142), .(T139, X226))
merge54_in_aag(.(T139, T145), .(T146, T147), .(T139, X226)) → U15_aag(T139, T145, T146, T147, X226, less70_in_ga(T139, T146))
U15_aag(T139, T145, T146, T147, X226, less70_out_ga(T139, T146)) → U16_aag(T139, T145, T146, T147, X226, merge54_in_aag(T145, .(T146, T147), X226))
merge54_in_aag(.(T197, T199), .(T196, T198), .(T196, X287)) → U17_aag(T197, T199, T196, T198, X287, less78_in_ga(T196, T197))
U17_aag(T197, T199, T196, T198, X287, less78_out_ga(T196, T197)) → merge54_out_aag(.(T197, T199), .(T196, T198), .(T196, X287))
merge54_in_aag(.(T202, T203), .(T196, T204), .(T196, X287)) → U18_aag(T202, T203, T196, T204, X287, less78_in_ga(T196, T202))
U18_aag(T202, T203, T196, T204, X287, less78_out_ga(T196, T202)) → U19_aag(T202, T203, T196, T204, X287, merge54_in_aag(.(T202, T203), T204, X287))
U19_aag(T202, T203, T196, T204, X287, merge54_out_aag(.(T202, T203), T204, X287)) → merge54_out_aag(.(T202, T203), .(T196, T204), .(T196, X287))
U16_aag(T139, T145, T146, T147, X226, merge54_out_aag(T145, .(T146, T147), X226)) → merge54_out_aag(.(T139, T145), .(T146, T147), .(T139, X226))
U12_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127, merge54_out_aag(T106, T105, X127)) → p34_out_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127)
U21_aag(T72, T73, T74, X127, p34_out_aaaaaaag(T72, T73, T74, X123, X124, X125, X126, X127)) → ms25_out_aag(T72, .(T73, T74), X127)
U51_ag(T267, T260, T261, T291, T273, ms25_out_aag(T267, T266, [])) → U52_ag(T267, T260, T261, T291, ms38_in_ag(T273, .(T291, [])))
ms38_in_ag([], []) → ms38_out_ag([], [])
ms38_in_ag(.(T89, []), .(T89, [])) → ms38_out_ag(.(T89, []), .(T89, []))
ms38_in_ag(.(T99, .(T100, T101)), X172) → U13_ag(T99, T100, T101, X172, p34_in_aaaaaaag(T99, T100, T101, X168, X169, X170, X171, X172))
U13_ag(T99, T100, T101, X172, p34_out_aaaaaaag(T99, T100, T101, X168, X169, X170, X171, X172)) → ms38_out_ag(.(T99, .(T100, T101)), X172)
U52_ag(T267, T260, T261, T291, ms38_out_ag(T273, .(T291, []))) → ms1_out_ag(.(T267, .(T260, T261)), .(T291, []))
ms1_in_ag(.(T267, .(T260, T261)), .(T301, [])) → U53_ag(T267, T260, T261, T301, split12_in_aaaa(T260, T261, T273, T266))
U53_ag(T267, T260, T261, T301, split12_out_aaaa(T260, T261, T273, T266)) → U54_ag(T267, T260, T261, T301, T273, ms25_in_aag(T267, T266, .(T301, [])))
U54_ag(T267, T260, T261, T301, T273, ms25_out_aag(T267, T266, .(T301, []))) → U55_ag(T267, T260, T261, T301, ms38_in_ag(T273, []))
U55_ag(T267, T260, T261, T301, ms38_out_ag(T273, [])) → ms1_out_ag(.(T267, .(T260, T261)), .(T301, []))
ms1_in_ag(.(T267, .(T260, T261)), .(T318, [])) → U56_ag(T267, T260, T261, T318, split12_in_aaaa(T260, T261, T273, T266))
U56_ag(T267, T260, T261, T318, split12_out_aaaa(T260, T261, T273, T266)) → U57_ag(T267, T260, T261, T318, T273, ms25_in_aaa(T267, T266, .(T318, T323)))
U57_ag(T267, T260, T261, T318, T273, ms25_out_aaa(T267, T266, .(T318, T323))) → U58_ag(T267, T260, T261, T318, ms38_in_aa(T273, .(T322, T324)))
U58_ag(T267, T260, T261, T318, ms38_out_aa(T273, .(T322, T324))) → U59_ag(T267, T260, T261, T318, less70_in_ga(T318, T322))
U59_ag(T267, T260, T261, T318, less70_out_ga(T318, T322)) → ms1_out_ag(.(T267, .(T260, T261)), .(T318, []))
U56_ag(T267, T260, T261, T318, split12_out_aaaa(T260, T261, T273, T266)) → U60_ag(T267, T260, T261, T318, T273, ms25_in_aaa(T267, T266, .(T318, T327)))
U60_ag(T267, T260, T261, T318, T273, ms25_out_aaa(T267, T266, .(T318, T327))) → U61_ag(T267, T260, T261, T318, T327, ms38_in_aa(T273, .(T328, T329)))
U61_ag(T267, T260, T261, T318, T327, ms38_out_aa(T273, .(T328, T329))) → U62_ag(T267, T260, T261, T318, T327, T328, T329, less70_in_ga(T318, T328))
U62_ag(T267, T260, T261, T318, T327, T328, T329, less70_out_ga(T318, T328)) → U63_ag(T267, T260, T261, T318, merge93_in_aa(T327, .(T328, T329)))
U63_ag(T267, T260, T261, T318, merge93_out_aa(T327, .(T328, T329))) → ms1_out_ag(.(T267, .(T260, T261)), .(T318, []))
ms1_in_ag(.(T267, .(T260, T261)), .(T356, [])) → U64_ag(T267, T260, T261, T356, split12_in_aaaa(T260, T261, T273, T266))
U64_ag(T267, T260, T261, T356, split12_out_aaaa(T260, T261, T273, T266)) → U65_ag(T267, T260, T261, T356, T273, ms25_in_aaa(T267, T266, .(T358, T360)))
U65_ag(T267, T260, T261, T356, T273, ms25_out_aaa(T267, T266, .(T358, T360))) → U66_ag(T267, T260, T261, T356, T358, ms38_in_aa(T273, .(T356, T359)))
U66_ag(T267, T260, T261, T356, T358, ms38_out_aa(T273, .(T356, T359))) → U67_ag(T267, T260, T261, T356, less78_in_ga(T356, T358))
U67_ag(T267, T260, T261, T356, less78_out_ga(T356, T358)) → ms1_out_ag(.(T267, .(T260, T261)), .(T356, []))
U64_ag(T267, T260, T261, T356, split12_out_aaaa(T260, T261, T273, T266)) → U68_ag(T267, T260, T261, T356, T273, ms25_in_aaa(T267, T266, .(T363, T364)))
U68_ag(T267, T260, T261, T356, T273, ms25_out_aaa(T267, T266, .(T363, T364))) → U69_ag(T267, T260, T261, T356, T363, T364, ms38_in_aa(T273, .(T356, T365)))
U69_ag(T267, T260, T261, T356, T363, T364, ms38_out_aa(T273, .(T356, T365))) → U70_ag(T267, T260, T261, T356, T363, T364, T365, less78_in_ga(T356, T363))
U70_ag(T267, T260, T261, T356, T363, T364, T365, less78_out_ga(T356, T363)) → U71_ag(T267, T260, T261, T356, merge93_in_aa(.(T363, T364), T365))
U71_ag(T267, T260, T261, T356, merge93_out_aa(.(T363, T364), T365)) → ms1_out_ag(.(T267, .(T260, T261)), .(T356, []))
ms1_in_ag(.(T407, .(T405, T406)), T387) → U72_ag(T407, T405, T406, T387, split12_in_aaaa(T405, T406, X523, X522))
U72_ag(T407, T405, T406, T387, split12_out_aaaa(T405, T406, X523, X522)) → ms1_out_ag(.(T407, .(T405, T406)), T387)
ms1_in_ag(.(T412, .(T405, T406)), T387) → U73_ag(T412, T405, T406, T387, split12_in_aaaa(T405, T406, T410, T411))
U73_ag(T412, T405, T406, T387, split12_out_aaaa(T405, T406, T410, T411)) → U74_ag(T412, T405, T406, T387, ms25_in_aaa(T412, T411, X494))
U74_ag(T412, T405, T406, T387, ms25_out_aaa(T412, T411, X494)) → ms1_out_ag(.(T412, .(T405, T406)), T387)
ms1_in_ag(.(T412, .(T405, T406)), T387) → U75_ag(T412, T405, T406, T387, split12_in_aaaa(T405, T406, T420, T411))
U75_ag(T412, T405, T406, T387, split12_out_aaaa(T405, T406, T420, T411)) → U76_ag(T412, T405, T406, T387, T420, ms25_in_aaa(T412, T411, T419))
U76_ag(T412, T405, T406, T387, T420, ms25_out_aaa(T412, T411, T419)) → U77_ag(T412, T405, T406, T387, ms38_in_aa(T420, X495))
U77_ag(T412, T405, T406, T387, ms38_out_aa(T420, X495)) → ms1_out_ag(.(T412, .(T405, T406)), T387)
ms1_in_ag(.(T412, .(T405, T406)), T435) → U78_ag(T412, T405, T406, T435, split12_in_aaaa(T405, T406, T420, T411))
U78_ag(T412, T405, T406, T435, split12_out_aaaa(T405, T406, T420, T411)) → U79_ag(T412, T405, T406, T435, T420, ms25_in_aag(T412, T411, []))
U79_ag(T412, T405, T406, T435, T420, ms25_out_aag(T412, T411, [])) → U80_ag(T412, T405, T406, T435, ms38_in_ag(T420, T435))
U80_ag(T412, T405, T406, T435, ms38_out_ag(T420, T435)) → ms1_out_ag(.(T412, .(T405, T406)), T435)
ms1_in_ag(.(T412, .(T405, T406)), T440) → U81_ag(T412, T405, T406, T440, split12_in_aaaa(T405, T406, T420, T411))
U81_ag(T412, T405, T406, T440, split12_out_aaaa(T405, T406, T420, T411)) → U82_ag(T412, T405, T406, T440, T420, ms25_in_aag(T412, T411, T440))
U82_ag(T412, T405, T406, T440, T420, ms25_out_aag(T412, T411, T440)) → U83_ag(T412, T405, T406, T440, ms38_in_ag(T420, []))
U83_ag(T412, T405, T406, T440, ms38_out_ag(T420, [])) → ms1_out_ag(.(T412, .(T405, T406)), T440)
ms1_in_ag(.(T412, .(T405, T406)), .(T461, T465)) → U84_ag(T412, T405, T406, T461, T465, split12_in_aaaa(T405, T406, T420, T411))
U84_ag(T412, T405, T406, T461, T465, split12_out_aaaa(T405, T406, T420, T411)) → U85_ag(T412, T405, T406, T461, T465, T420, ms25_in_aaa(T412, T411, .(T461, T467)))
U85_ag(T412, T405, T406, T461, T465, T420, ms25_out_aaa(T412, T411, .(T461, T467))) → U86_ag(T412, T405, T406, T461, T465, ms38_in_aa(T420, .(T466, T468)))
U86_ag(T412, T405, T406, T461, T465, ms38_out_aa(T420, .(T466, T468))) → U87_ag(T412, T405, T406, T461, T465, less70_in_ga(T461, T466))
U87_ag(T412, T405, T406, T461, T465, less70_out_ga(T461, T466)) → ms1_out_ag(.(T412, .(T405, T406)), .(T461, T465))
ms1_in_ag(.(T412, .(T405, T406)), .(T461, .(T490, T491))) → U88_ag(T412, T405, T406, T461, T490, T491, split12_in_aaaa(T405, T406, T420, T411))
U88_ag(T412, T405, T406, T461, T490, T491, split12_out_aaaa(T405, T406, T420, T411)) → U89_ag(T412, T405, T406, T461, T490, T491, T420, ms25_in_aag(T412, T411, .(T461, [])))
U89_ag(T412, T405, T406, T461, T490, T491, T420, ms25_out_aag(T412, T411, .(T461, []))) → U90_ag(T412, T405, T406, T461, T490, T491, ms38_in_ag(T420, .(T490, T491)))
U90_ag(T412, T405, T406, T461, T490, T491, ms38_out_ag(T420, .(T490, T491))) → U91_ag(T412, T405, T406, T461, T490, T491, less70_in_gg(T461, T490))
less70_in_gg(0, T154) → less70_out_gg(0, T154)
less70_in_gg(s(T161), T162) → U22_gg(T161, T162, less78_in_gg(T161, T162))
less78_in_gg(0, s(T169)) → less78_out_gg(0, s(T169))
less78_in_gg(s(T176), s(T177)) → U20_gg(T176, T177, less78_in_gg(T176, T177))
U20_gg(T176, T177, less78_out_gg(T176, T177)) → less78_out_gg(s(T176), s(T177))
U22_gg(T161, T162, less78_out_gg(T161, T162)) → less70_out_gg(s(T161), T162)
U91_ag(T412, T405, T406, T461, T490, T491, less70_out_gg(T461, T490)) → ms1_out_ag(.(T412, .(T405, T406)), .(T461, .(T490, T491)))
ms1_in_ag(.(T412, .(T405, T406)), .(T461, .(T513, T517))) → U92_ag(T412, T405, T406, T461, T513, T517, split12_in_aaaa(T405, T406, T420, T411))
U92_ag(T412, T405, T406, T461, T513, T517, split12_out_aaaa(T405, T406, T420, T411)) → U93_ag(T412, T405, T406, T461, T513, T517, T420, ms25_in_aaa(T412, T411, .(T461, .(T513, T519))))
U93_ag(T412, T405, T406, T461, T513, T517, T420, ms25_out_aaa(T412, T411, .(T461, .(T513, T519)))) → U94_ag(T412, T405, T406, T461, T513, T517, T519, ms38_in_aa(T420, .(T518, T520)))
U94_ag(T412, T405, T406, T461, T513, T517, T519, ms38_out_aa(T420, .(T518, T520))) → U95_ag(T412, T405, T406, T461, T513, T517, T519, T518, T520, less70_in_ga(T461, T518))
U95_ag(T412, T405, T406, T461, T513, T517, T519, T518, T520, less70_out_ga(T461, T518)) → U96_ag(T412, T405, T406, T461, T513, T517, p179_in_gaaag(T513, T518, T519, T520, T517))
p179_in_gaaag(T513, T518, T519, T520, T517) → U23_gaaag(T513, T518, T519, T520, T517, less70_in_ga(T513, T518))
U23_gaaag(T513, T518, T519, T520, T517, less70_out_ga(T513, T518)) → p179_out_gaaag(T513, T518, T519, T520, T517)
p179_in_gaaag(T513, T540, [], T541, .(T540, T541)) → U24_gaaag(T513, T540, T541, less70_in_gg(T513, T540))
U24_gaaag(T513, T540, T541, less70_out_gg(T513, T540)) → p179_out_gaaag(T513, T540, [], T541, .(T540, T541))
p179_in_gaaag(T513, T568, .(T563, T569), T570, .(T563, T567)) → U25_gaaag(T513, T568, T563, T569, T570, T567, less70_in_ga(T513, T568))
U25_gaaag(T513, T568, T563, T569, T570, T567, less70_out_ga(T513, T568)) → U26_gaaag(T513, T568, T563, T569, T570, T567, p179_in_gaaag(T563, T568, T569, T570, T567))
p179_in_gaaag(T513, T585, .(T588, T590), T589, .(T585, T587)) → U27_gaaag(T513, T585, T588, T590, T589, T587, less70_in_gg(T513, T585))
U27_gaaag(T513, T585, T588, T590, T589, T587, less70_out_gg(T513, T585)) → U28_gaaag(T513, T585, T588, T590, T589, T587, p194_in_gaaag(T585, T588, T590, T589, T587))
p194_in_gaaag(T585, T588, T590, T589, T587) → U29_gaaag(T585, T588, T590, T589, T587, less78_in_ga(T585, T588))
U29_gaaag(T585, T588, T590, T589, T587, less78_out_ga(T585, T588)) → p194_out_gaaag(T585, T588, T590, T589, T587)
p194_in_gaaag(T585, T610, T611, [], .(T610, T611)) → U30_gaaag(T585, T610, T611, less78_in_gg(T585, T610))
U30_gaaag(T585, T610, T611, less78_out_gg(T585, T610)) → p194_out_gaaag(T585, T610, T611, [], .(T610, T611))
p194_in_gaaag(T585, T632, T638, .(T637, T639), .(T632, T636)) → U31_gaaag(T585, T632, T638, T637, T639, T636, less78_in_gg(T585, T632))
U31_gaaag(T585, T632, T638, T637, T639, T636, less78_out_gg(T585, T632)) → U32_gaaag(T585, T632, T638, T637, T639, T636, p179_in_gaaag(T632, T637, T638, T639, T636))
U32_gaaag(T585, T632, T638, T637, T639, T636, p179_out_gaaag(T632, T637, T638, T639, T636)) → p194_out_gaaag(T585, T632, T638, .(T637, T639), .(T632, T636))
p194_in_gaaag(T585, T657, T659, .(T654, T658), .(T654, T656)) → U33_gaaag(T585, T657, T659, T654, T658, T656, less78_in_ga(T585, T657))
U33_gaaag(T585, T657, T659, T654, T658, T656, less78_out_ga(T585, T657)) → U34_gaaag(T585, T657, T659, T654, T658, T656, p194_in_gaaag(T654, T657, T659, T658, T656))
U34_gaaag(T585, T657, T659, T654, T658, T656, p194_out_gaaag(T654, T657, T659, T658, T656)) → p194_out_gaaag(T585, T657, T659, .(T654, T658), .(T654, T656))
U28_gaaag(T513, T585, T588, T590, T589, T587, p194_out_gaaag(T585, T588, T590, T589, T587)) → p179_out_gaaag(T513, T585, .(T588, T590), T589, .(T585, T587))
U26_gaaag(T513, T568, T563, T569, T570, T567, p179_out_gaaag(T563, T568, T569, T570, T567)) → p179_out_gaaag(T513, T568, .(T563, T569), T570, .(T563, T567))
U96_ag(T412, T405, T406, T461, T513, T517, p179_out_gaaag(T513, T518, T519, T520, T517)) → ms1_out_ag(.(T412, .(T405, T406)), .(T461, .(T513, T517)))
ms1_in_ag(.(T412, .(T405, T406)), .(T461, .(T674, T676))) → U97_ag(T412, T405, T406, T461, T674, T676, split12_in_aaaa(T405, T406, T420, T411))
U97_ag(T412, T405, T406, T461, T674, T676, split12_out_aaaa(T405, T406, T420, T411)) → U98_ag(T412, T405, T406, T461, T674, T676, T420, ms25_in_aaa(T412, T411, .(T461, .(T677, T679))))
U98_ag(T412, T405, T406, T461, T674, T676, T420, ms25_out_aaa(T412, T411, .(T461, .(T677, T679)))) → U99_ag(T412, T405, T406, T461, T674, T676, T677, T679, ms38_in_aa(T420, .(T674, T678)))
U99_ag(T412, T405, T406, T461, T674, T676, T677, T679, ms38_out_aa(T420, .(T674, T678))) → U100_ag(T412, T405, T406, T461, T674, T676, T677, T679, T678, less70_in_gg(T461, T674))
U100_ag(T412, T405, T406, T461, T674, T676, T677, T679, T678, less70_out_gg(T461, T674)) → U101_ag(T412, T405, T406, T461, T674, T676, p194_in_gaaag(T674, T677, T679, T678, T676))
U101_ag(T412, T405, T406, T461, T674, T676, p194_out_gaaag(T674, T677, T679, T678, T676)) → ms1_out_ag(.(T412, .(T405, T406)), .(T461, .(T674, T676)))
ms1_in_ag(.(T412, .(T405, T406)), .(T694, T696)) → U102_ag(T412, T405, T406, T694, T696, split12_in_aaaa(T405, T406, T420, T411))
U102_ag(T412, T405, T406, T694, T696, split12_out_aaaa(T405, T406, T420, T411)) → U103_ag(T412, T405, T406, T694, T696, T420, ms25_in_aaa(T412, T411, .(T697, T699)))
U103_ag(T412, T405, T406, T694, T696, T420, ms25_out_aaa(T412, T411, .(T697, T699))) → U104_ag(T412, T405, T406, T694, T696, T697, T699, ms38_in_aa(T420, .(T694, T698)))
U104_ag(T412, T405, T406, T694, T696, T697, T699, ms38_out_aa(T420, .(T694, T698))) → U105_ag(T412, T405, T406, T694, T696, p194_in_gaaag(T694, T697, T699, T698, T696))
U105_ag(T412, T405, T406, T694, T696, p194_out_gaaag(T694, T697, T699, T698, T696)) → ms1_out_ag(.(T412, .(T405, T406)), .(T694, T696))
LESS78_IN_GG(s(T176), s(T177)) → LESS78_IN_GG(T176, T177)
LESS78_IN_GG(s(T176), s(T177)) → LESS78_IN_GG(T176, T177)
From the DPs we obtained the following set of size-change graphs:
LESS78_IN_GA(s(T176), s(T177)) → LESS78_IN_GA(T176, T177)
ms1_in_ag([], []) → ms1_out_ag([], [])
ms1_in_ag(.(T29, .(T27, T28)), []) → U35_ag(T29, T27, T28, split12_in_aaaa(T27, T28, X42, X41))
split12_in_aaaa(T42, T44, .(T42, X71), X72) → U2_aaaa(T42, T44, X71, X72, split16_in_aaa(T44, X72, X71))
split16_in_aaa([], [], []) → split16_out_aaa([], [], [])
split16_in_aaa(.(T49, T51), .(T49, X89), X90) → U1_aaa(T49, T51, X89, X90, split16_in_aaa(T51, X90, X89))
U1_aaa(T49, T51, X89, X90, split16_out_aaa(T51, X90, X89)) → split16_out_aaa(.(T49, T51), .(T49, X89), X90)
U2_aaaa(T42, T44, X71, X72, split16_out_aaa(T44, X72, X71)) → split12_out_aaaa(T42, T44, .(T42, X71), X72)
U35_ag(T29, T27, T28, split12_out_aaaa(T27, T28, X42, X41)) → ms1_out_ag(.(T29, .(T27, T28)), [])
ms1_in_ag(.(T34, .(T27, T28)), []) → U36_ag(T34, T27, T28, split12_in_aaaa(T27, T28, T32, T33))
U36_ag(T34, T27, T28, split12_out_aaaa(T27, T28, T32, T33)) → U37_ag(T34, T27, T28, ms25_in_aaa(T34, T33, X13))
ms25_in_aaa(T62, [], .(T62, [])) → ms25_out_aaa(T62, [], .(T62, []))
ms25_in_aaa(T72, .(T73, T74), X127) → U21_aaa(T72, T73, T74, X127, p34_in_aaaaaaaa(T72, T73, T74, X123, X124, X125, X126, X127))
p34_in_aaaaaaaa(T72, T73, T74, X123, X124, X125, X126, X127) → U3_aaaaaaaa(T72, T73, T74, X123, X124, X125, X126, X127, split12_in_aaaa(T72, .(T73, T74), X123, X124))
U3_aaaaaaaa(T72, T73, T74, X123, X124, X125, X126, X127, split12_out_aaaa(T72, .(T73, T74), X123, X124)) → p34_out_aaaaaaaa(T72, T73, T74, X123, X124, X125, X126, X127)
p34_in_aaaaaaaa(T72, T73, T74, T78, T79, X125, X126, X127) → U4_aaaaaaaa(T72, T73, T74, T78, T79, X125, X126, X127, split12_in_aaaa(T72, .(T73, T74), T78, T79))
U4_aaaaaaaa(T72, T73, T74, T78, T79, X125, X126, X127, split12_out_aaaa(T72, .(T73, T74), T78, T79)) → U5_aaaaaaaa(T72, T73, T74, T78, T79, X125, X126, X127, ms38_in_aa(T78, X125))
ms38_in_aa([], []) → ms38_out_aa([], [])
ms38_in_aa(.(T89, []), .(T89, [])) → ms38_out_aa(.(T89, []), .(T89, []))
ms38_in_aa(.(T99, .(T100, T101)), X172) → U13_aa(T99, T100, T101, X172, p34_in_aaaaaaaa(T99, T100, T101, X168, X169, X170, X171, X172))
p34_in_aaaaaaaa(T72, T73, T74, T78, T84, T83, X126, X127) → U6_aaaaaaaa(T72, T73, T74, T78, T84, T83, X126, X127, split12_in_aaaa(T72, .(T73, T74), T78, T84))
U6_aaaaaaaa(T72, T73, T74, T78, T84, T83, X126, X127, split12_out_aaaa(T72, .(T73, T74), T78, T84)) → U7_aaaaaaaa(T72, T73, T74, T78, T84, T83, X126, X127, ms38_in_aa(T78, T83))
U7_aaaaaaaa(T72, T73, T74, T78, T84, T83, X126, X127, ms38_out_aa(T78, T83)) → U8_aaaaaaaa(T72, T73, T74, T78, T84, T83, X126, X127, ms38_in_aa(T84, X126))
U8_aaaaaaaa(T72, T73, T74, T78, T84, T83, X126, X127, ms38_out_aa(T84, X126)) → p34_out_aaaaaaaa(T72, T73, T74, T78, T84, T83, X126, X127)
p34_in_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127) → U9_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127, split12_in_aaaa(T72, .(T73, T74), T78, T84))
U9_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127, split12_out_aaaa(T72, .(T73, T74), T78, T84)) → U10_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127, ms38_in_aa(T78, T106))
U10_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127, ms38_out_aa(T78, T106)) → U11_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127, ms38_in_aa(T84, T105))
U11_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127, ms38_out_aa(T84, T105)) → U12_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127, merge54_in_aaa(T106, T105, X127))
merge54_in_aaa([], T113, T113) → merge54_out_aaa([], T113, T113)
merge54_in_aaa(T118, [], T118) → merge54_out_aaa(T118, [], T118)
merge54_in_aaa(.(T139, T141), .(T140, T142), .(T139, X226)) → U14_aaa(T139, T141, T140, T142, X226, less70_in_aa(T139, T140))
less70_in_aa(0, T154) → less70_out_aa(0, T154)
less70_in_aa(s(T161), T162) → U22_aa(T161, T162, less78_in_aa(T161, T162))
less78_in_aa(0, s(T169)) → less78_out_aa(0, s(T169))
less78_in_aa(s(T176), s(T177)) → U20_aa(T176, T177, less78_in_aa(T176, T177))
U20_aa(T176, T177, less78_out_aa(T176, T177)) → less78_out_aa(s(T176), s(T177))
U22_aa(T161, T162, less78_out_aa(T161, T162)) → less70_out_aa(s(T161), T162)
U14_aaa(T139, T141, T140, T142, X226, less70_out_aa(T139, T140)) → merge54_out_aaa(.(T139, T141), .(T140, T142), .(T139, X226))
merge54_in_aaa(.(T139, T145), .(T146, T147), .(T139, X226)) → U15_aaa(T139, T145, T146, T147, X226, less70_in_aa(T139, T146))
U15_aaa(T139, T145, T146, T147, X226, less70_out_aa(T139, T146)) → U16_aaa(T139, T145, T146, T147, X226, merge54_in_aaa(T145, .(T146, T147), X226))
merge54_in_aaa(.(T197, T199), .(T196, T198), .(T196, X287)) → U17_aaa(T197, T199, T196, T198, X287, less78_in_aa(T196, T197))
U17_aaa(T197, T199, T196, T198, X287, less78_out_aa(T196, T197)) → merge54_out_aaa(.(T197, T199), .(T196, T198), .(T196, X287))
merge54_in_aaa(.(T202, T203), .(T196, T204), .(T196, X287)) → U18_aaa(T202, T203, T196, T204, X287, less78_in_aa(T196, T202))
U18_aaa(T202, T203, T196, T204, X287, less78_out_aa(T196, T202)) → U19_aaa(T202, T203, T196, T204, X287, merge54_in_aaa(.(T202, T203), T204, X287))
U19_aaa(T202, T203, T196, T204, X287, merge54_out_aaa(.(T202, T203), T204, X287)) → merge54_out_aaa(.(T202, T203), .(T196, T204), .(T196, X287))
U16_aaa(T139, T145, T146, T147, X226, merge54_out_aaa(T145, .(T146, T147), X226)) → merge54_out_aaa(.(T139, T145), .(T146, T147), .(T139, X226))
U12_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127, merge54_out_aaa(T106, T105, X127)) → p34_out_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127)
U13_aa(T99, T100, T101, X172, p34_out_aaaaaaaa(T99, T100, T101, X168, X169, X170, X171, X172)) → ms38_out_aa(.(T99, .(T100, T101)), X172)
U5_aaaaaaaa(T72, T73, T74, T78, T79, X125, X126, X127, ms38_out_aa(T78, X125)) → p34_out_aaaaaaaa(T72, T73, T74, T78, T79, X125, X126, X127)
U21_aaa(T72, T73, T74, X127, p34_out_aaaaaaaa(T72, T73, T74, X123, X124, X125, X126, X127)) → ms25_out_aaa(T72, .(T73, T74), X127)
U37_ag(T34, T27, T28, ms25_out_aaa(T34, T33, X13)) → ms1_out_ag(.(T34, .(T27, T28)), [])
ms1_in_ag(.(T34, .(T27, T28)), []) → U38_ag(T34, T27, T28, split12_in_aaaa(T27, T28, T55, T33))
U38_ag(T34, T27, T28, split12_out_aaaa(T27, T28, T55, T33)) → U39_ag(T34, T27, T28, T55, ms25_in_aaa(T34, T33, T54))
U39_ag(T34, T27, T28, T55, ms25_out_aaa(T34, T33, T54)) → U40_ag(T34, T27, T28, ms38_in_aa(T55, X14))
U40_ag(T34, T27, T28, ms38_out_aa(T55, X14)) → ms1_out_ag(.(T34, .(T27, T28)), [])
U38_ag(T34, T27, T28, split12_out_aaaa(T27, T28, T55, T33)) → U41_ag(T34, T27, T28, T55, ms25_in_aaa(T34, T33, T212))
U41_ag(T34, T27, T28, T55, ms25_out_aaa(T34, T33, T212)) → U42_ag(T34, T27, T28, T212, ms38_in_aa(T55, T211))
U42_ag(T34, T27, T28, T212, ms38_out_aa(T55, T211)) → U43_ag(T34, T27, T28, merge93_in_aa(T212, T211))
merge93_in_aa([], []) → merge93_out_aa([], [])
U43_ag(T34, T27, T28, merge93_out_aa(T212, T211)) → ms1_out_ag(.(T34, .(T27, T28)), [])
ms1_in_ag(.(T234, []), .(T234, [])) → ms1_out_ag(.(T234, []), .(T234, []))
ms1_in_ag(.(T262, .(T260, T261)), .(T242, [])) → U44_ag(T262, T260, T261, T242, split12_in_aaaa(T260, T261, X367, X366))
U44_ag(T262, T260, T261, T242, split12_out_aaaa(T260, T261, X367, X366)) → ms1_out_ag(.(T262, .(T260, T261)), .(T242, []))
ms1_in_ag(.(T267, .(T260, T261)), .(T242, [])) → U45_ag(T267, T260, T261, T242, split12_in_aaaa(T260, T261, T265, T266))
U45_ag(T267, T260, T261, T242, split12_out_aaaa(T260, T261, T265, T266)) → U46_ag(T267, T260, T261, T242, ms25_in_aaa(T267, T266, X338))
U46_ag(T267, T260, T261, T242, ms25_out_aaa(T267, T266, X338)) → ms1_out_ag(.(T267, .(T260, T261)), .(T242, []))
ms1_in_ag(.(T267, .(T260, T261)), .(T242, [])) → U47_ag(T267, T260, T261, T242, split12_in_aaaa(T260, T261, T273, T266))
U47_ag(T267, T260, T261, T242, split12_out_aaaa(T260, T261, T273, T266)) → U48_ag(T267, T260, T261, T242, T273, ms25_in_aaa(T267, T266, T272))
U48_ag(T267, T260, T261, T242, T273, ms25_out_aaa(T267, T266, T272)) → U49_ag(T267, T260, T261, T242, ms38_in_aa(T273, X339))
U49_ag(T267, T260, T261, T242, ms38_out_aa(T273, X339)) → ms1_out_ag(.(T267, .(T260, T261)), .(T242, []))
ms1_in_ag(.(T267, .(T260, T261)), .(T291, [])) → U50_ag(T267, T260, T261, T291, split12_in_aaaa(T260, T261, T273, T266))
U50_ag(T267, T260, T261, T291, split12_out_aaaa(T260, T261, T273, T266)) → U51_ag(T267, T260, T261, T291, T273, ms25_in_aag(T267, T266, []))
ms25_in_aag(T62, [], .(T62, [])) → ms25_out_aag(T62, [], .(T62, []))
ms25_in_aag(T72, .(T73, T74), X127) → U21_aag(T72, T73, T74, X127, p34_in_aaaaaaag(T72, T73, T74, X123, X124, X125, X126, X127))
p34_in_aaaaaaag(T72, T73, T74, X123, X124, X125, X126, X127) → U3_aaaaaaag(T72, T73, T74, X123, X124, X125, X126, X127, split12_in_aaaa(T72, .(T73, T74), X123, X124))
U3_aaaaaaag(T72, T73, T74, X123, X124, X125, X126, X127, split12_out_aaaa(T72, .(T73, T74), X123, X124)) → p34_out_aaaaaaag(T72, T73, T74, X123, X124, X125, X126, X127)
p34_in_aaaaaaag(T72, T73, T74, T78, T79, X125, X126, X127) → U4_aaaaaaag(T72, T73, T74, T78, T79, X125, X126, X127, split12_in_aaaa(T72, .(T73, T74), T78, T79))
U4_aaaaaaag(T72, T73, T74, T78, T79, X125, X126, X127, split12_out_aaaa(T72, .(T73, T74), T78, T79)) → U5_aaaaaaag(T72, T73, T74, T78, T79, X125, X126, X127, ms38_in_aa(T78, X125))
U5_aaaaaaag(T72, T73, T74, T78, T79, X125, X126, X127, ms38_out_aa(T78, X125)) → p34_out_aaaaaaag(T72, T73, T74, T78, T79, X125, X126, X127)
p34_in_aaaaaaag(T72, T73, T74, T78, T84, T83, X126, X127) → U6_aaaaaaag(T72, T73, T74, T78, T84, T83, X126, X127, split12_in_aaaa(T72, .(T73, T74), T78, T84))
U6_aaaaaaag(T72, T73, T74, T78, T84, T83, X126, X127, split12_out_aaaa(T72, .(T73, T74), T78, T84)) → U7_aaaaaaag(T72, T73, T74, T78, T84, T83, X126, X127, ms38_in_aa(T78, T83))
U7_aaaaaaag(T72, T73, T74, T78, T84, T83, X126, X127, ms38_out_aa(T78, T83)) → U8_aaaaaaag(T72, T73, T74, T78, T84, T83, X126, X127, ms38_in_aa(T84, X126))
U8_aaaaaaag(T72, T73, T74, T78, T84, T83, X126, X127, ms38_out_aa(T84, X126)) → p34_out_aaaaaaag(T72, T73, T74, T78, T84, T83, X126, X127)
p34_in_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127) → U9_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127, split12_in_aaaa(T72, .(T73, T74), T78, T84))
U9_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127, split12_out_aaaa(T72, .(T73, T74), T78, T84)) → U10_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127, ms38_in_aa(T78, T106))
U10_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127, ms38_out_aa(T78, T106)) → U11_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127, ms38_in_aa(T84, T105))
U11_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127, ms38_out_aa(T84, T105)) → U12_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127, merge54_in_aag(T106, T105, X127))
merge54_in_aag([], T113, T113) → merge54_out_aag([], T113, T113)
merge54_in_aag(T118, [], T118) → merge54_out_aag(T118, [], T118)
merge54_in_aag(.(T139, T141), .(T140, T142), .(T139, X226)) → U14_aag(T139, T141, T140, T142, X226, less70_in_ga(T139, T140))
less70_in_ga(0, T154) → less70_out_ga(0, T154)
less70_in_ga(s(T161), T162) → U22_ga(T161, T162, less78_in_ga(T161, T162))
less78_in_ga(0, s(T169)) → less78_out_ga(0, s(T169))
less78_in_ga(s(T176), s(T177)) → U20_ga(T176, T177, less78_in_ga(T176, T177))
U20_ga(T176, T177, less78_out_ga(T176, T177)) → less78_out_ga(s(T176), s(T177))
U22_ga(T161, T162, less78_out_ga(T161, T162)) → less70_out_ga(s(T161), T162)
U14_aag(T139, T141, T140, T142, X226, less70_out_ga(T139, T140)) → merge54_out_aag(.(T139, T141), .(T140, T142), .(T139, X226))
merge54_in_aag(.(T139, T145), .(T146, T147), .(T139, X226)) → U15_aag(T139, T145, T146, T147, X226, less70_in_ga(T139, T146))
U15_aag(T139, T145, T146, T147, X226, less70_out_ga(T139, T146)) → U16_aag(T139, T145, T146, T147, X226, merge54_in_aag(T145, .(T146, T147), X226))
merge54_in_aag(.(T197, T199), .(T196, T198), .(T196, X287)) → U17_aag(T197, T199, T196, T198, X287, less78_in_ga(T196, T197))
U17_aag(T197, T199, T196, T198, X287, less78_out_ga(T196, T197)) → merge54_out_aag(.(T197, T199), .(T196, T198), .(T196, X287))
merge54_in_aag(.(T202, T203), .(T196, T204), .(T196, X287)) → U18_aag(T202, T203, T196, T204, X287, less78_in_ga(T196, T202))
U18_aag(T202, T203, T196, T204, X287, less78_out_ga(T196, T202)) → U19_aag(T202, T203, T196, T204, X287, merge54_in_aag(.(T202, T203), T204, X287))
U19_aag(T202, T203, T196, T204, X287, merge54_out_aag(.(T202, T203), T204, X287)) → merge54_out_aag(.(T202, T203), .(T196, T204), .(T196, X287))
U16_aag(T139, T145, T146, T147, X226, merge54_out_aag(T145, .(T146, T147), X226)) → merge54_out_aag(.(T139, T145), .(T146, T147), .(T139, X226))
U12_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127, merge54_out_aag(T106, T105, X127)) → p34_out_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127)
U21_aag(T72, T73, T74, X127, p34_out_aaaaaaag(T72, T73, T74, X123, X124, X125, X126, X127)) → ms25_out_aag(T72, .(T73, T74), X127)
U51_ag(T267, T260, T261, T291, T273, ms25_out_aag(T267, T266, [])) → U52_ag(T267, T260, T261, T291, ms38_in_ag(T273, .(T291, [])))
ms38_in_ag([], []) → ms38_out_ag([], [])
ms38_in_ag(.(T89, []), .(T89, [])) → ms38_out_ag(.(T89, []), .(T89, []))
ms38_in_ag(.(T99, .(T100, T101)), X172) → U13_ag(T99, T100, T101, X172, p34_in_aaaaaaag(T99, T100, T101, X168, X169, X170, X171, X172))
U13_ag(T99, T100, T101, X172, p34_out_aaaaaaag(T99, T100, T101, X168, X169, X170, X171, X172)) → ms38_out_ag(.(T99, .(T100, T101)), X172)
U52_ag(T267, T260, T261, T291, ms38_out_ag(T273, .(T291, []))) → ms1_out_ag(.(T267, .(T260, T261)), .(T291, []))
ms1_in_ag(.(T267, .(T260, T261)), .(T301, [])) → U53_ag(T267, T260, T261, T301, split12_in_aaaa(T260, T261, T273, T266))
U53_ag(T267, T260, T261, T301, split12_out_aaaa(T260, T261, T273, T266)) → U54_ag(T267, T260, T261, T301, T273, ms25_in_aag(T267, T266, .(T301, [])))
U54_ag(T267, T260, T261, T301, T273, ms25_out_aag(T267, T266, .(T301, []))) → U55_ag(T267, T260, T261, T301, ms38_in_ag(T273, []))
U55_ag(T267, T260, T261, T301, ms38_out_ag(T273, [])) → ms1_out_ag(.(T267, .(T260, T261)), .(T301, []))
ms1_in_ag(.(T267, .(T260, T261)), .(T318, [])) → U56_ag(T267, T260, T261, T318, split12_in_aaaa(T260, T261, T273, T266))
U56_ag(T267, T260, T261, T318, split12_out_aaaa(T260, T261, T273, T266)) → U57_ag(T267, T260, T261, T318, T273, ms25_in_aaa(T267, T266, .(T318, T323)))
U57_ag(T267, T260, T261, T318, T273, ms25_out_aaa(T267, T266, .(T318, T323))) → U58_ag(T267, T260, T261, T318, ms38_in_aa(T273, .(T322, T324)))
U58_ag(T267, T260, T261, T318, ms38_out_aa(T273, .(T322, T324))) → U59_ag(T267, T260, T261, T318, less70_in_ga(T318, T322))
U59_ag(T267, T260, T261, T318, less70_out_ga(T318, T322)) → ms1_out_ag(.(T267, .(T260, T261)), .(T318, []))
U56_ag(T267, T260, T261, T318, split12_out_aaaa(T260, T261, T273, T266)) → U60_ag(T267, T260, T261, T318, T273, ms25_in_aaa(T267, T266, .(T318, T327)))
U60_ag(T267, T260, T261, T318, T273, ms25_out_aaa(T267, T266, .(T318, T327))) → U61_ag(T267, T260, T261, T318, T327, ms38_in_aa(T273, .(T328, T329)))
U61_ag(T267, T260, T261, T318, T327, ms38_out_aa(T273, .(T328, T329))) → U62_ag(T267, T260, T261, T318, T327, T328, T329, less70_in_ga(T318, T328))
U62_ag(T267, T260, T261, T318, T327, T328, T329, less70_out_ga(T318, T328)) → U63_ag(T267, T260, T261, T318, merge93_in_aa(T327, .(T328, T329)))
U63_ag(T267, T260, T261, T318, merge93_out_aa(T327, .(T328, T329))) → ms1_out_ag(.(T267, .(T260, T261)), .(T318, []))
ms1_in_ag(.(T267, .(T260, T261)), .(T356, [])) → U64_ag(T267, T260, T261, T356, split12_in_aaaa(T260, T261, T273, T266))
U64_ag(T267, T260, T261, T356, split12_out_aaaa(T260, T261, T273, T266)) → U65_ag(T267, T260, T261, T356, T273, ms25_in_aaa(T267, T266, .(T358, T360)))
U65_ag(T267, T260, T261, T356, T273, ms25_out_aaa(T267, T266, .(T358, T360))) → U66_ag(T267, T260, T261, T356, T358, ms38_in_aa(T273, .(T356, T359)))
U66_ag(T267, T260, T261, T356, T358, ms38_out_aa(T273, .(T356, T359))) → U67_ag(T267, T260, T261, T356, less78_in_ga(T356, T358))
U67_ag(T267, T260, T261, T356, less78_out_ga(T356, T358)) → ms1_out_ag(.(T267, .(T260, T261)), .(T356, []))
U64_ag(T267, T260, T261, T356, split12_out_aaaa(T260, T261, T273, T266)) → U68_ag(T267, T260, T261, T356, T273, ms25_in_aaa(T267, T266, .(T363, T364)))
U68_ag(T267, T260, T261, T356, T273, ms25_out_aaa(T267, T266, .(T363, T364))) → U69_ag(T267, T260, T261, T356, T363, T364, ms38_in_aa(T273, .(T356, T365)))
U69_ag(T267, T260, T261, T356, T363, T364, ms38_out_aa(T273, .(T356, T365))) → U70_ag(T267, T260, T261, T356, T363, T364, T365, less78_in_ga(T356, T363))
U70_ag(T267, T260, T261, T356, T363, T364, T365, less78_out_ga(T356, T363)) → U71_ag(T267, T260, T261, T356, merge93_in_aa(.(T363, T364), T365))
U71_ag(T267, T260, T261, T356, merge93_out_aa(.(T363, T364), T365)) → ms1_out_ag(.(T267, .(T260, T261)), .(T356, []))
ms1_in_ag(.(T407, .(T405, T406)), T387) → U72_ag(T407, T405, T406, T387, split12_in_aaaa(T405, T406, X523, X522))
U72_ag(T407, T405, T406, T387, split12_out_aaaa(T405, T406, X523, X522)) → ms1_out_ag(.(T407, .(T405, T406)), T387)
ms1_in_ag(.(T412, .(T405, T406)), T387) → U73_ag(T412, T405, T406, T387, split12_in_aaaa(T405, T406, T410, T411))
U73_ag(T412, T405, T406, T387, split12_out_aaaa(T405, T406, T410, T411)) → U74_ag(T412, T405, T406, T387, ms25_in_aaa(T412, T411, X494))
U74_ag(T412, T405, T406, T387, ms25_out_aaa(T412, T411, X494)) → ms1_out_ag(.(T412, .(T405, T406)), T387)
ms1_in_ag(.(T412, .(T405, T406)), T387) → U75_ag(T412, T405, T406, T387, split12_in_aaaa(T405, T406, T420, T411))
U75_ag(T412, T405, T406, T387, split12_out_aaaa(T405, T406, T420, T411)) → U76_ag(T412, T405, T406, T387, T420, ms25_in_aaa(T412, T411, T419))
U76_ag(T412, T405, T406, T387, T420, ms25_out_aaa(T412, T411, T419)) → U77_ag(T412, T405, T406, T387, ms38_in_aa(T420, X495))
U77_ag(T412, T405, T406, T387, ms38_out_aa(T420, X495)) → ms1_out_ag(.(T412, .(T405, T406)), T387)
ms1_in_ag(.(T412, .(T405, T406)), T435) → U78_ag(T412, T405, T406, T435, split12_in_aaaa(T405, T406, T420, T411))
U78_ag(T412, T405, T406, T435, split12_out_aaaa(T405, T406, T420, T411)) → U79_ag(T412, T405, T406, T435, T420, ms25_in_aag(T412, T411, []))
U79_ag(T412, T405, T406, T435, T420, ms25_out_aag(T412, T411, [])) → U80_ag(T412, T405, T406, T435, ms38_in_ag(T420, T435))
U80_ag(T412, T405, T406, T435, ms38_out_ag(T420, T435)) → ms1_out_ag(.(T412, .(T405, T406)), T435)
ms1_in_ag(.(T412, .(T405, T406)), T440) → U81_ag(T412, T405, T406, T440, split12_in_aaaa(T405, T406, T420, T411))
U81_ag(T412, T405, T406, T440, split12_out_aaaa(T405, T406, T420, T411)) → U82_ag(T412, T405, T406, T440, T420, ms25_in_aag(T412, T411, T440))
U82_ag(T412, T405, T406, T440, T420, ms25_out_aag(T412, T411, T440)) → U83_ag(T412, T405, T406, T440, ms38_in_ag(T420, []))
U83_ag(T412, T405, T406, T440, ms38_out_ag(T420, [])) → ms1_out_ag(.(T412, .(T405, T406)), T440)
ms1_in_ag(.(T412, .(T405, T406)), .(T461, T465)) → U84_ag(T412, T405, T406, T461, T465, split12_in_aaaa(T405, T406, T420, T411))
U84_ag(T412, T405, T406, T461, T465, split12_out_aaaa(T405, T406, T420, T411)) → U85_ag(T412, T405, T406, T461, T465, T420, ms25_in_aaa(T412, T411, .(T461, T467)))
U85_ag(T412, T405, T406, T461, T465, T420, ms25_out_aaa(T412, T411, .(T461, T467))) → U86_ag(T412, T405, T406, T461, T465, ms38_in_aa(T420, .(T466, T468)))
U86_ag(T412, T405, T406, T461, T465, ms38_out_aa(T420, .(T466, T468))) → U87_ag(T412, T405, T406, T461, T465, less70_in_ga(T461, T466))
U87_ag(T412, T405, T406, T461, T465, less70_out_ga(T461, T466)) → ms1_out_ag(.(T412, .(T405, T406)), .(T461, T465))
ms1_in_ag(.(T412, .(T405, T406)), .(T461, .(T490, T491))) → U88_ag(T412, T405, T406, T461, T490, T491, split12_in_aaaa(T405, T406, T420, T411))
U88_ag(T412, T405, T406, T461, T490, T491, split12_out_aaaa(T405, T406, T420, T411)) → U89_ag(T412, T405, T406, T461, T490, T491, T420, ms25_in_aag(T412, T411, .(T461, [])))
U89_ag(T412, T405, T406, T461, T490, T491, T420, ms25_out_aag(T412, T411, .(T461, []))) → U90_ag(T412, T405, T406, T461, T490, T491, ms38_in_ag(T420, .(T490, T491)))
U90_ag(T412, T405, T406, T461, T490, T491, ms38_out_ag(T420, .(T490, T491))) → U91_ag(T412, T405, T406, T461, T490, T491, less70_in_gg(T461, T490))
less70_in_gg(0, T154) → less70_out_gg(0, T154)
less70_in_gg(s(T161), T162) → U22_gg(T161, T162, less78_in_gg(T161, T162))
less78_in_gg(0, s(T169)) → less78_out_gg(0, s(T169))
less78_in_gg(s(T176), s(T177)) → U20_gg(T176, T177, less78_in_gg(T176, T177))
U20_gg(T176, T177, less78_out_gg(T176, T177)) → less78_out_gg(s(T176), s(T177))
U22_gg(T161, T162, less78_out_gg(T161, T162)) → less70_out_gg(s(T161), T162)
U91_ag(T412, T405, T406, T461, T490, T491, less70_out_gg(T461, T490)) → ms1_out_ag(.(T412, .(T405, T406)), .(T461, .(T490, T491)))
ms1_in_ag(.(T412, .(T405, T406)), .(T461, .(T513, T517))) → U92_ag(T412, T405, T406, T461, T513, T517, split12_in_aaaa(T405, T406, T420, T411))
U92_ag(T412, T405, T406, T461, T513, T517, split12_out_aaaa(T405, T406, T420, T411)) → U93_ag(T412, T405, T406, T461, T513, T517, T420, ms25_in_aaa(T412, T411, .(T461, .(T513, T519))))
U93_ag(T412, T405, T406, T461, T513, T517, T420, ms25_out_aaa(T412, T411, .(T461, .(T513, T519)))) → U94_ag(T412, T405, T406, T461, T513, T517, T519, ms38_in_aa(T420, .(T518, T520)))
U94_ag(T412, T405, T406, T461, T513, T517, T519, ms38_out_aa(T420, .(T518, T520))) → U95_ag(T412, T405, T406, T461, T513, T517, T519, T518, T520, less70_in_ga(T461, T518))
U95_ag(T412, T405, T406, T461, T513, T517, T519, T518, T520, less70_out_ga(T461, T518)) → U96_ag(T412, T405, T406, T461, T513, T517, p179_in_gaaag(T513, T518, T519, T520, T517))
p179_in_gaaag(T513, T518, T519, T520, T517) → U23_gaaag(T513, T518, T519, T520, T517, less70_in_ga(T513, T518))
U23_gaaag(T513, T518, T519, T520, T517, less70_out_ga(T513, T518)) → p179_out_gaaag(T513, T518, T519, T520, T517)
p179_in_gaaag(T513, T540, [], T541, .(T540, T541)) → U24_gaaag(T513, T540, T541, less70_in_gg(T513, T540))
U24_gaaag(T513, T540, T541, less70_out_gg(T513, T540)) → p179_out_gaaag(T513, T540, [], T541, .(T540, T541))
p179_in_gaaag(T513, T568, .(T563, T569), T570, .(T563, T567)) → U25_gaaag(T513, T568, T563, T569, T570, T567, less70_in_ga(T513, T568))
U25_gaaag(T513, T568, T563, T569, T570, T567, less70_out_ga(T513, T568)) → U26_gaaag(T513, T568, T563, T569, T570, T567, p179_in_gaaag(T563, T568, T569, T570, T567))
p179_in_gaaag(T513, T585, .(T588, T590), T589, .(T585, T587)) → U27_gaaag(T513, T585, T588, T590, T589, T587, less70_in_gg(T513, T585))
U27_gaaag(T513, T585, T588, T590, T589, T587, less70_out_gg(T513, T585)) → U28_gaaag(T513, T585, T588, T590, T589, T587, p194_in_gaaag(T585, T588, T590, T589, T587))
p194_in_gaaag(T585, T588, T590, T589, T587) → U29_gaaag(T585, T588, T590, T589, T587, less78_in_ga(T585, T588))
U29_gaaag(T585, T588, T590, T589, T587, less78_out_ga(T585, T588)) → p194_out_gaaag(T585, T588, T590, T589, T587)
p194_in_gaaag(T585, T610, T611, [], .(T610, T611)) → U30_gaaag(T585, T610, T611, less78_in_gg(T585, T610))
U30_gaaag(T585, T610, T611, less78_out_gg(T585, T610)) → p194_out_gaaag(T585, T610, T611, [], .(T610, T611))
p194_in_gaaag(T585, T632, T638, .(T637, T639), .(T632, T636)) → U31_gaaag(T585, T632, T638, T637, T639, T636, less78_in_gg(T585, T632))
U31_gaaag(T585, T632, T638, T637, T639, T636, less78_out_gg(T585, T632)) → U32_gaaag(T585, T632, T638, T637, T639, T636, p179_in_gaaag(T632, T637, T638, T639, T636))
U32_gaaag(T585, T632, T638, T637, T639, T636, p179_out_gaaag(T632, T637, T638, T639, T636)) → p194_out_gaaag(T585, T632, T638, .(T637, T639), .(T632, T636))
p194_in_gaaag(T585, T657, T659, .(T654, T658), .(T654, T656)) → U33_gaaag(T585, T657, T659, T654, T658, T656, less78_in_ga(T585, T657))
U33_gaaag(T585, T657, T659, T654, T658, T656, less78_out_ga(T585, T657)) → U34_gaaag(T585, T657, T659, T654, T658, T656, p194_in_gaaag(T654, T657, T659, T658, T656))
U34_gaaag(T585, T657, T659, T654, T658, T656, p194_out_gaaag(T654, T657, T659, T658, T656)) → p194_out_gaaag(T585, T657, T659, .(T654, T658), .(T654, T656))
U28_gaaag(T513, T585, T588, T590, T589, T587, p194_out_gaaag(T585, T588, T590, T589, T587)) → p179_out_gaaag(T513, T585, .(T588, T590), T589, .(T585, T587))
U26_gaaag(T513, T568, T563, T569, T570, T567, p179_out_gaaag(T563, T568, T569, T570, T567)) → p179_out_gaaag(T513, T568, .(T563, T569), T570, .(T563, T567))
U96_ag(T412, T405, T406, T461, T513, T517, p179_out_gaaag(T513, T518, T519, T520, T517)) → ms1_out_ag(.(T412, .(T405, T406)), .(T461, .(T513, T517)))
ms1_in_ag(.(T412, .(T405, T406)), .(T461, .(T674, T676))) → U97_ag(T412, T405, T406, T461, T674, T676, split12_in_aaaa(T405, T406, T420, T411))
U97_ag(T412, T405, T406, T461, T674, T676, split12_out_aaaa(T405, T406, T420, T411)) → U98_ag(T412, T405, T406, T461, T674, T676, T420, ms25_in_aaa(T412, T411, .(T461, .(T677, T679))))
U98_ag(T412, T405, T406, T461, T674, T676, T420, ms25_out_aaa(T412, T411, .(T461, .(T677, T679)))) → U99_ag(T412, T405, T406, T461, T674, T676, T677, T679, ms38_in_aa(T420, .(T674, T678)))
U99_ag(T412, T405, T406, T461, T674, T676, T677, T679, ms38_out_aa(T420, .(T674, T678))) → U100_ag(T412, T405, T406, T461, T674, T676, T677, T679, T678, less70_in_gg(T461, T674))
U100_ag(T412, T405, T406, T461, T674, T676, T677, T679, T678, less70_out_gg(T461, T674)) → U101_ag(T412, T405, T406, T461, T674, T676, p194_in_gaaag(T674, T677, T679, T678, T676))
U101_ag(T412, T405, T406, T461, T674, T676, p194_out_gaaag(T674, T677, T679, T678, T676)) → ms1_out_ag(.(T412, .(T405, T406)), .(T461, .(T674, T676)))
ms1_in_ag(.(T412, .(T405, T406)), .(T694, T696)) → U102_ag(T412, T405, T406, T694, T696, split12_in_aaaa(T405, T406, T420, T411))
U102_ag(T412, T405, T406, T694, T696, split12_out_aaaa(T405, T406, T420, T411)) → U103_ag(T412, T405, T406, T694, T696, T420, ms25_in_aaa(T412, T411, .(T697, T699)))
U103_ag(T412, T405, T406, T694, T696, T420, ms25_out_aaa(T412, T411, .(T697, T699))) → U104_ag(T412, T405, T406, T694, T696, T697, T699, ms38_in_aa(T420, .(T694, T698)))
U104_ag(T412, T405, T406, T694, T696, T697, T699, ms38_out_aa(T420, .(T694, T698))) → U105_ag(T412, T405, T406, T694, T696, p194_in_gaaag(T694, T697, T699, T698, T696))
U105_ag(T412, T405, T406, T694, T696, p194_out_gaaag(T694, T697, T699, T698, T696)) → ms1_out_ag(.(T412, .(T405, T406)), .(T694, T696))
LESS78_IN_GA(s(T176), s(T177)) → LESS78_IN_GA(T176, T177)
LESS78_IN_GA(s(T176)) → LESS78_IN_GA(T176)
From the DPs we obtained the following set of size-change graphs:
P179_IN_GAAAG(T513, T568, .(T563, T569), T570, .(T563, T567)) → U25_GAAAG(T513, T568, T563, T569, T570, T567, less70_in_ga(T513, T568))
U25_GAAAG(T513, T568, T563, T569, T570, T567, less70_out_ga(T513, T568)) → P179_IN_GAAAG(T563, T568, T569, T570, T567)
P179_IN_GAAAG(T513, T585, .(T588, T590), T589, .(T585, T587)) → U27_GAAAG(T513, T585, T588, T590, T589, T587, less70_in_gg(T513, T585))
U27_GAAAG(T513, T585, T588, T590, T589, T587, less70_out_gg(T513, T585)) → P194_IN_GAAAG(T585, T588, T590, T589, T587)
P194_IN_GAAAG(T585, T632, T638, .(T637, T639), .(T632, T636)) → U31_GAAAG(T585, T632, T638, T637, T639, T636, less78_in_gg(T585, T632))
U31_GAAAG(T585, T632, T638, T637, T639, T636, less78_out_gg(T585, T632)) → P179_IN_GAAAG(T632, T637, T638, T639, T636)
P194_IN_GAAAG(T585, T657, T659, .(T654, T658), .(T654, T656)) → U33_GAAAG(T585, T657, T659, T654, T658, T656, less78_in_ga(T585, T657))
U33_GAAAG(T585, T657, T659, T654, T658, T656, less78_out_ga(T585, T657)) → P194_IN_GAAAG(T654, T657, T659, T658, T656)
ms1_in_ag([], []) → ms1_out_ag([], [])
ms1_in_ag(.(T29, .(T27, T28)), []) → U35_ag(T29, T27, T28, split12_in_aaaa(T27, T28, X42, X41))
split12_in_aaaa(T42, T44, .(T42, X71), X72) → U2_aaaa(T42, T44, X71, X72, split16_in_aaa(T44, X72, X71))
split16_in_aaa([], [], []) → split16_out_aaa([], [], [])
split16_in_aaa(.(T49, T51), .(T49, X89), X90) → U1_aaa(T49, T51, X89, X90, split16_in_aaa(T51, X90, X89))
U1_aaa(T49, T51, X89, X90, split16_out_aaa(T51, X90, X89)) → split16_out_aaa(.(T49, T51), .(T49, X89), X90)
U2_aaaa(T42, T44, X71, X72, split16_out_aaa(T44, X72, X71)) → split12_out_aaaa(T42, T44, .(T42, X71), X72)
U35_ag(T29, T27, T28, split12_out_aaaa(T27, T28, X42, X41)) → ms1_out_ag(.(T29, .(T27, T28)), [])
ms1_in_ag(.(T34, .(T27, T28)), []) → U36_ag(T34, T27, T28, split12_in_aaaa(T27, T28, T32, T33))
U36_ag(T34, T27, T28, split12_out_aaaa(T27, T28, T32, T33)) → U37_ag(T34, T27, T28, ms25_in_aaa(T34, T33, X13))
ms25_in_aaa(T62, [], .(T62, [])) → ms25_out_aaa(T62, [], .(T62, []))
ms25_in_aaa(T72, .(T73, T74), X127) → U21_aaa(T72, T73, T74, X127, p34_in_aaaaaaaa(T72, T73, T74, X123, X124, X125, X126, X127))
p34_in_aaaaaaaa(T72, T73, T74, X123, X124, X125, X126, X127) → U3_aaaaaaaa(T72, T73, T74, X123, X124, X125, X126, X127, split12_in_aaaa(T72, .(T73, T74), X123, X124))
U3_aaaaaaaa(T72, T73, T74, X123, X124, X125, X126, X127, split12_out_aaaa(T72, .(T73, T74), X123, X124)) → p34_out_aaaaaaaa(T72, T73, T74, X123, X124, X125, X126, X127)
p34_in_aaaaaaaa(T72, T73, T74, T78, T79, X125, X126, X127) → U4_aaaaaaaa(T72, T73, T74, T78, T79, X125, X126, X127, split12_in_aaaa(T72, .(T73, T74), T78, T79))
U4_aaaaaaaa(T72, T73, T74, T78, T79, X125, X126, X127, split12_out_aaaa(T72, .(T73, T74), T78, T79)) → U5_aaaaaaaa(T72, T73, T74, T78, T79, X125, X126, X127, ms38_in_aa(T78, X125))
ms38_in_aa([], []) → ms38_out_aa([], [])
ms38_in_aa(.(T89, []), .(T89, [])) → ms38_out_aa(.(T89, []), .(T89, []))
ms38_in_aa(.(T99, .(T100, T101)), X172) → U13_aa(T99, T100, T101, X172, p34_in_aaaaaaaa(T99, T100, T101, X168, X169, X170, X171, X172))
p34_in_aaaaaaaa(T72, T73, T74, T78, T84, T83, X126, X127) → U6_aaaaaaaa(T72, T73, T74, T78, T84, T83, X126, X127, split12_in_aaaa(T72, .(T73, T74), T78, T84))
U6_aaaaaaaa(T72, T73, T74, T78, T84, T83, X126, X127, split12_out_aaaa(T72, .(T73, T74), T78, T84)) → U7_aaaaaaaa(T72, T73, T74, T78, T84, T83, X126, X127, ms38_in_aa(T78, T83))
U7_aaaaaaaa(T72, T73, T74, T78, T84, T83, X126, X127, ms38_out_aa(T78, T83)) → U8_aaaaaaaa(T72, T73, T74, T78, T84, T83, X126, X127, ms38_in_aa(T84, X126))
U8_aaaaaaaa(T72, T73, T74, T78, T84, T83, X126, X127, ms38_out_aa(T84, X126)) → p34_out_aaaaaaaa(T72, T73, T74, T78, T84, T83, X126, X127)
p34_in_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127) → U9_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127, split12_in_aaaa(T72, .(T73, T74), T78, T84))
U9_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127, split12_out_aaaa(T72, .(T73, T74), T78, T84)) → U10_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127, ms38_in_aa(T78, T106))
U10_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127, ms38_out_aa(T78, T106)) → U11_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127, ms38_in_aa(T84, T105))
U11_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127, ms38_out_aa(T84, T105)) → U12_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127, merge54_in_aaa(T106, T105, X127))
merge54_in_aaa([], T113, T113) → merge54_out_aaa([], T113, T113)
merge54_in_aaa(T118, [], T118) → merge54_out_aaa(T118, [], T118)
merge54_in_aaa(.(T139, T141), .(T140, T142), .(T139, X226)) → U14_aaa(T139, T141, T140, T142, X226, less70_in_aa(T139, T140))
less70_in_aa(0, T154) → less70_out_aa(0, T154)
less70_in_aa(s(T161), T162) → U22_aa(T161, T162, less78_in_aa(T161, T162))
less78_in_aa(0, s(T169)) → less78_out_aa(0, s(T169))
less78_in_aa(s(T176), s(T177)) → U20_aa(T176, T177, less78_in_aa(T176, T177))
U20_aa(T176, T177, less78_out_aa(T176, T177)) → less78_out_aa(s(T176), s(T177))
U22_aa(T161, T162, less78_out_aa(T161, T162)) → less70_out_aa(s(T161), T162)
U14_aaa(T139, T141, T140, T142, X226, less70_out_aa(T139, T140)) → merge54_out_aaa(.(T139, T141), .(T140, T142), .(T139, X226))
merge54_in_aaa(.(T139, T145), .(T146, T147), .(T139, X226)) → U15_aaa(T139, T145, T146, T147, X226, less70_in_aa(T139, T146))
U15_aaa(T139, T145, T146, T147, X226, less70_out_aa(T139, T146)) → U16_aaa(T139, T145, T146, T147, X226, merge54_in_aaa(T145, .(T146, T147), X226))
merge54_in_aaa(.(T197, T199), .(T196, T198), .(T196, X287)) → U17_aaa(T197, T199, T196, T198, X287, less78_in_aa(T196, T197))
U17_aaa(T197, T199, T196, T198, X287, less78_out_aa(T196, T197)) → merge54_out_aaa(.(T197, T199), .(T196, T198), .(T196, X287))
merge54_in_aaa(.(T202, T203), .(T196, T204), .(T196, X287)) → U18_aaa(T202, T203, T196, T204, X287, less78_in_aa(T196, T202))
U18_aaa(T202, T203, T196, T204, X287, less78_out_aa(T196, T202)) → U19_aaa(T202, T203, T196, T204, X287, merge54_in_aaa(.(T202, T203), T204, X287))
U19_aaa(T202, T203, T196, T204, X287, merge54_out_aaa(.(T202, T203), T204, X287)) → merge54_out_aaa(.(T202, T203), .(T196, T204), .(T196, X287))
U16_aaa(T139, T145, T146, T147, X226, merge54_out_aaa(T145, .(T146, T147), X226)) → merge54_out_aaa(.(T139, T145), .(T146, T147), .(T139, X226))
U12_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127, merge54_out_aaa(T106, T105, X127)) → p34_out_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127)
U13_aa(T99, T100, T101, X172, p34_out_aaaaaaaa(T99, T100, T101, X168, X169, X170, X171, X172)) → ms38_out_aa(.(T99, .(T100, T101)), X172)
U5_aaaaaaaa(T72, T73, T74, T78, T79, X125, X126, X127, ms38_out_aa(T78, X125)) → p34_out_aaaaaaaa(T72, T73, T74, T78, T79, X125, X126, X127)
U21_aaa(T72, T73, T74, X127, p34_out_aaaaaaaa(T72, T73, T74, X123, X124, X125, X126, X127)) → ms25_out_aaa(T72, .(T73, T74), X127)
U37_ag(T34, T27, T28, ms25_out_aaa(T34, T33, X13)) → ms1_out_ag(.(T34, .(T27, T28)), [])
ms1_in_ag(.(T34, .(T27, T28)), []) → U38_ag(T34, T27, T28, split12_in_aaaa(T27, T28, T55, T33))
U38_ag(T34, T27, T28, split12_out_aaaa(T27, T28, T55, T33)) → U39_ag(T34, T27, T28, T55, ms25_in_aaa(T34, T33, T54))
U39_ag(T34, T27, T28, T55, ms25_out_aaa(T34, T33, T54)) → U40_ag(T34, T27, T28, ms38_in_aa(T55, X14))
U40_ag(T34, T27, T28, ms38_out_aa(T55, X14)) → ms1_out_ag(.(T34, .(T27, T28)), [])
U38_ag(T34, T27, T28, split12_out_aaaa(T27, T28, T55, T33)) → U41_ag(T34, T27, T28, T55, ms25_in_aaa(T34, T33, T212))
U41_ag(T34, T27, T28, T55, ms25_out_aaa(T34, T33, T212)) → U42_ag(T34, T27, T28, T212, ms38_in_aa(T55, T211))
U42_ag(T34, T27, T28, T212, ms38_out_aa(T55, T211)) → U43_ag(T34, T27, T28, merge93_in_aa(T212, T211))
merge93_in_aa([], []) → merge93_out_aa([], [])
U43_ag(T34, T27, T28, merge93_out_aa(T212, T211)) → ms1_out_ag(.(T34, .(T27, T28)), [])
ms1_in_ag(.(T234, []), .(T234, [])) → ms1_out_ag(.(T234, []), .(T234, []))
ms1_in_ag(.(T262, .(T260, T261)), .(T242, [])) → U44_ag(T262, T260, T261, T242, split12_in_aaaa(T260, T261, X367, X366))
U44_ag(T262, T260, T261, T242, split12_out_aaaa(T260, T261, X367, X366)) → ms1_out_ag(.(T262, .(T260, T261)), .(T242, []))
ms1_in_ag(.(T267, .(T260, T261)), .(T242, [])) → U45_ag(T267, T260, T261, T242, split12_in_aaaa(T260, T261, T265, T266))
U45_ag(T267, T260, T261, T242, split12_out_aaaa(T260, T261, T265, T266)) → U46_ag(T267, T260, T261, T242, ms25_in_aaa(T267, T266, X338))
U46_ag(T267, T260, T261, T242, ms25_out_aaa(T267, T266, X338)) → ms1_out_ag(.(T267, .(T260, T261)), .(T242, []))
ms1_in_ag(.(T267, .(T260, T261)), .(T242, [])) → U47_ag(T267, T260, T261, T242, split12_in_aaaa(T260, T261, T273, T266))
U47_ag(T267, T260, T261, T242, split12_out_aaaa(T260, T261, T273, T266)) → U48_ag(T267, T260, T261, T242, T273, ms25_in_aaa(T267, T266, T272))
U48_ag(T267, T260, T261, T242, T273, ms25_out_aaa(T267, T266, T272)) → U49_ag(T267, T260, T261, T242, ms38_in_aa(T273, X339))
U49_ag(T267, T260, T261, T242, ms38_out_aa(T273, X339)) → ms1_out_ag(.(T267, .(T260, T261)), .(T242, []))
ms1_in_ag(.(T267, .(T260, T261)), .(T291, [])) → U50_ag(T267, T260, T261, T291, split12_in_aaaa(T260, T261, T273, T266))
U50_ag(T267, T260, T261, T291, split12_out_aaaa(T260, T261, T273, T266)) → U51_ag(T267, T260, T261, T291, T273, ms25_in_aag(T267, T266, []))
ms25_in_aag(T62, [], .(T62, [])) → ms25_out_aag(T62, [], .(T62, []))
ms25_in_aag(T72, .(T73, T74), X127) → U21_aag(T72, T73, T74, X127, p34_in_aaaaaaag(T72, T73, T74, X123, X124, X125, X126, X127))
p34_in_aaaaaaag(T72, T73, T74, X123, X124, X125, X126, X127) → U3_aaaaaaag(T72, T73, T74, X123, X124, X125, X126, X127, split12_in_aaaa(T72, .(T73, T74), X123, X124))
U3_aaaaaaag(T72, T73, T74, X123, X124, X125, X126, X127, split12_out_aaaa(T72, .(T73, T74), X123, X124)) → p34_out_aaaaaaag(T72, T73, T74, X123, X124, X125, X126, X127)
p34_in_aaaaaaag(T72, T73, T74, T78, T79, X125, X126, X127) → U4_aaaaaaag(T72, T73, T74, T78, T79, X125, X126, X127, split12_in_aaaa(T72, .(T73, T74), T78, T79))
U4_aaaaaaag(T72, T73, T74, T78, T79, X125, X126, X127, split12_out_aaaa(T72, .(T73, T74), T78, T79)) → U5_aaaaaaag(T72, T73, T74, T78, T79, X125, X126, X127, ms38_in_aa(T78, X125))
U5_aaaaaaag(T72, T73, T74, T78, T79, X125, X126, X127, ms38_out_aa(T78, X125)) → p34_out_aaaaaaag(T72, T73, T74, T78, T79, X125, X126, X127)
p34_in_aaaaaaag(T72, T73, T74, T78, T84, T83, X126, X127) → U6_aaaaaaag(T72, T73, T74, T78, T84, T83, X126, X127, split12_in_aaaa(T72, .(T73, T74), T78, T84))
U6_aaaaaaag(T72, T73, T74, T78, T84, T83, X126, X127, split12_out_aaaa(T72, .(T73, T74), T78, T84)) → U7_aaaaaaag(T72, T73, T74, T78, T84, T83, X126, X127, ms38_in_aa(T78, T83))
U7_aaaaaaag(T72, T73, T74, T78, T84, T83, X126, X127, ms38_out_aa(T78, T83)) → U8_aaaaaaag(T72, T73, T74, T78, T84, T83, X126, X127, ms38_in_aa(T84, X126))
U8_aaaaaaag(T72, T73, T74, T78, T84, T83, X126, X127, ms38_out_aa(T84, X126)) → p34_out_aaaaaaag(T72, T73, T74, T78, T84, T83, X126, X127)
p34_in_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127) → U9_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127, split12_in_aaaa(T72, .(T73, T74), T78, T84))
U9_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127, split12_out_aaaa(T72, .(T73, T74), T78, T84)) → U10_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127, ms38_in_aa(T78, T106))
U10_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127, ms38_out_aa(T78, T106)) → U11_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127, ms38_in_aa(T84, T105))
U11_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127, ms38_out_aa(T84, T105)) → U12_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127, merge54_in_aag(T106, T105, X127))
merge54_in_aag([], T113, T113) → merge54_out_aag([], T113, T113)
merge54_in_aag(T118, [], T118) → merge54_out_aag(T118, [], T118)
merge54_in_aag(.(T139, T141), .(T140, T142), .(T139, X226)) → U14_aag(T139, T141, T140, T142, X226, less70_in_ga(T139, T140))
less70_in_ga(0, T154) → less70_out_ga(0, T154)
less70_in_ga(s(T161), T162) → U22_ga(T161, T162, less78_in_ga(T161, T162))
less78_in_ga(0, s(T169)) → less78_out_ga(0, s(T169))
less78_in_ga(s(T176), s(T177)) → U20_ga(T176, T177, less78_in_ga(T176, T177))
U20_ga(T176, T177, less78_out_ga(T176, T177)) → less78_out_ga(s(T176), s(T177))
U22_ga(T161, T162, less78_out_ga(T161, T162)) → less70_out_ga(s(T161), T162)
U14_aag(T139, T141, T140, T142, X226, less70_out_ga(T139, T140)) → merge54_out_aag(.(T139, T141), .(T140, T142), .(T139, X226))
merge54_in_aag(.(T139, T145), .(T146, T147), .(T139, X226)) → U15_aag(T139, T145, T146, T147, X226, less70_in_ga(T139, T146))
U15_aag(T139, T145, T146, T147, X226, less70_out_ga(T139, T146)) → U16_aag(T139, T145, T146, T147, X226, merge54_in_aag(T145, .(T146, T147), X226))
merge54_in_aag(.(T197, T199), .(T196, T198), .(T196, X287)) → U17_aag(T197, T199, T196, T198, X287, less78_in_ga(T196, T197))
U17_aag(T197, T199, T196, T198, X287, less78_out_ga(T196, T197)) → merge54_out_aag(.(T197, T199), .(T196, T198), .(T196, X287))
merge54_in_aag(.(T202, T203), .(T196, T204), .(T196, X287)) → U18_aag(T202, T203, T196, T204, X287, less78_in_ga(T196, T202))
U18_aag(T202, T203, T196, T204, X287, less78_out_ga(T196, T202)) → U19_aag(T202, T203, T196, T204, X287, merge54_in_aag(.(T202, T203), T204, X287))
U19_aag(T202, T203, T196, T204, X287, merge54_out_aag(.(T202, T203), T204, X287)) → merge54_out_aag(.(T202, T203), .(T196, T204), .(T196, X287))
U16_aag(T139, T145, T146, T147, X226, merge54_out_aag(T145, .(T146, T147), X226)) → merge54_out_aag(.(T139, T145), .(T146, T147), .(T139, X226))
U12_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127, merge54_out_aag(T106, T105, X127)) → p34_out_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127)
U21_aag(T72, T73, T74, X127, p34_out_aaaaaaag(T72, T73, T74, X123, X124, X125, X126, X127)) → ms25_out_aag(T72, .(T73, T74), X127)
U51_ag(T267, T260, T261, T291, T273, ms25_out_aag(T267, T266, [])) → U52_ag(T267, T260, T261, T291, ms38_in_ag(T273, .(T291, [])))
ms38_in_ag([], []) → ms38_out_ag([], [])
ms38_in_ag(.(T89, []), .(T89, [])) → ms38_out_ag(.(T89, []), .(T89, []))
ms38_in_ag(.(T99, .(T100, T101)), X172) → U13_ag(T99, T100, T101, X172, p34_in_aaaaaaag(T99, T100, T101, X168, X169, X170, X171, X172))
U13_ag(T99, T100, T101, X172, p34_out_aaaaaaag(T99, T100, T101, X168, X169, X170, X171, X172)) → ms38_out_ag(.(T99, .(T100, T101)), X172)
U52_ag(T267, T260, T261, T291, ms38_out_ag(T273, .(T291, []))) → ms1_out_ag(.(T267, .(T260, T261)), .(T291, []))
ms1_in_ag(.(T267, .(T260, T261)), .(T301, [])) → U53_ag(T267, T260, T261, T301, split12_in_aaaa(T260, T261, T273, T266))
U53_ag(T267, T260, T261, T301, split12_out_aaaa(T260, T261, T273, T266)) → U54_ag(T267, T260, T261, T301, T273, ms25_in_aag(T267, T266, .(T301, [])))
U54_ag(T267, T260, T261, T301, T273, ms25_out_aag(T267, T266, .(T301, []))) → U55_ag(T267, T260, T261, T301, ms38_in_ag(T273, []))
U55_ag(T267, T260, T261, T301, ms38_out_ag(T273, [])) → ms1_out_ag(.(T267, .(T260, T261)), .(T301, []))
ms1_in_ag(.(T267, .(T260, T261)), .(T318, [])) → U56_ag(T267, T260, T261, T318, split12_in_aaaa(T260, T261, T273, T266))
U56_ag(T267, T260, T261, T318, split12_out_aaaa(T260, T261, T273, T266)) → U57_ag(T267, T260, T261, T318, T273, ms25_in_aaa(T267, T266, .(T318, T323)))
U57_ag(T267, T260, T261, T318, T273, ms25_out_aaa(T267, T266, .(T318, T323))) → U58_ag(T267, T260, T261, T318, ms38_in_aa(T273, .(T322, T324)))
U58_ag(T267, T260, T261, T318, ms38_out_aa(T273, .(T322, T324))) → U59_ag(T267, T260, T261, T318, less70_in_ga(T318, T322))
U59_ag(T267, T260, T261, T318, less70_out_ga(T318, T322)) → ms1_out_ag(.(T267, .(T260, T261)), .(T318, []))
U56_ag(T267, T260, T261, T318, split12_out_aaaa(T260, T261, T273, T266)) → U60_ag(T267, T260, T261, T318, T273, ms25_in_aaa(T267, T266, .(T318, T327)))
U60_ag(T267, T260, T261, T318, T273, ms25_out_aaa(T267, T266, .(T318, T327))) → U61_ag(T267, T260, T261, T318, T327, ms38_in_aa(T273, .(T328, T329)))
U61_ag(T267, T260, T261, T318, T327, ms38_out_aa(T273, .(T328, T329))) → U62_ag(T267, T260, T261, T318, T327, T328, T329, less70_in_ga(T318, T328))
U62_ag(T267, T260, T261, T318, T327, T328, T329, less70_out_ga(T318, T328)) → U63_ag(T267, T260, T261, T318, merge93_in_aa(T327, .(T328, T329)))
U63_ag(T267, T260, T261, T318, merge93_out_aa(T327, .(T328, T329))) → ms1_out_ag(.(T267, .(T260, T261)), .(T318, []))
ms1_in_ag(.(T267, .(T260, T261)), .(T356, [])) → U64_ag(T267, T260, T261, T356, split12_in_aaaa(T260, T261, T273, T266))
U64_ag(T267, T260, T261, T356, split12_out_aaaa(T260, T261, T273, T266)) → U65_ag(T267, T260, T261, T356, T273, ms25_in_aaa(T267, T266, .(T358, T360)))
U65_ag(T267, T260, T261, T356, T273, ms25_out_aaa(T267, T266, .(T358, T360))) → U66_ag(T267, T260, T261, T356, T358, ms38_in_aa(T273, .(T356, T359)))
U66_ag(T267, T260, T261, T356, T358, ms38_out_aa(T273, .(T356, T359))) → U67_ag(T267, T260, T261, T356, less78_in_ga(T356, T358))
U67_ag(T267, T260, T261, T356, less78_out_ga(T356, T358)) → ms1_out_ag(.(T267, .(T260, T261)), .(T356, []))
U64_ag(T267, T260, T261, T356, split12_out_aaaa(T260, T261, T273, T266)) → U68_ag(T267, T260, T261, T356, T273, ms25_in_aaa(T267, T266, .(T363, T364)))
U68_ag(T267, T260, T261, T356, T273, ms25_out_aaa(T267, T266, .(T363, T364))) → U69_ag(T267, T260, T261, T356, T363, T364, ms38_in_aa(T273, .(T356, T365)))
U69_ag(T267, T260, T261, T356, T363, T364, ms38_out_aa(T273, .(T356, T365))) → U70_ag(T267, T260, T261, T356, T363, T364, T365, less78_in_ga(T356, T363))
U70_ag(T267, T260, T261, T356, T363, T364, T365, less78_out_ga(T356, T363)) → U71_ag(T267, T260, T261, T356, merge93_in_aa(.(T363, T364), T365))
U71_ag(T267, T260, T261, T356, merge93_out_aa(.(T363, T364), T365)) → ms1_out_ag(.(T267, .(T260, T261)), .(T356, []))
ms1_in_ag(.(T407, .(T405, T406)), T387) → U72_ag(T407, T405, T406, T387, split12_in_aaaa(T405, T406, X523, X522))
U72_ag(T407, T405, T406, T387, split12_out_aaaa(T405, T406, X523, X522)) → ms1_out_ag(.(T407, .(T405, T406)), T387)
ms1_in_ag(.(T412, .(T405, T406)), T387) → U73_ag(T412, T405, T406, T387, split12_in_aaaa(T405, T406, T410, T411))
U73_ag(T412, T405, T406, T387, split12_out_aaaa(T405, T406, T410, T411)) → U74_ag(T412, T405, T406, T387, ms25_in_aaa(T412, T411, X494))
U74_ag(T412, T405, T406, T387, ms25_out_aaa(T412, T411, X494)) → ms1_out_ag(.(T412, .(T405, T406)), T387)
ms1_in_ag(.(T412, .(T405, T406)), T387) → U75_ag(T412, T405, T406, T387, split12_in_aaaa(T405, T406, T420, T411))
U75_ag(T412, T405, T406, T387, split12_out_aaaa(T405, T406, T420, T411)) → U76_ag(T412, T405, T406, T387, T420, ms25_in_aaa(T412, T411, T419))
U76_ag(T412, T405, T406, T387, T420, ms25_out_aaa(T412, T411, T419)) → U77_ag(T412, T405, T406, T387, ms38_in_aa(T420, X495))
U77_ag(T412, T405, T406, T387, ms38_out_aa(T420, X495)) → ms1_out_ag(.(T412, .(T405, T406)), T387)
ms1_in_ag(.(T412, .(T405, T406)), T435) → U78_ag(T412, T405, T406, T435, split12_in_aaaa(T405, T406, T420, T411))
U78_ag(T412, T405, T406, T435, split12_out_aaaa(T405, T406, T420, T411)) → U79_ag(T412, T405, T406, T435, T420, ms25_in_aag(T412, T411, []))
U79_ag(T412, T405, T406, T435, T420, ms25_out_aag(T412, T411, [])) → U80_ag(T412, T405, T406, T435, ms38_in_ag(T420, T435))
U80_ag(T412, T405, T406, T435, ms38_out_ag(T420, T435)) → ms1_out_ag(.(T412, .(T405, T406)), T435)
ms1_in_ag(.(T412, .(T405, T406)), T440) → U81_ag(T412, T405, T406, T440, split12_in_aaaa(T405, T406, T420, T411))
U81_ag(T412, T405, T406, T440, split12_out_aaaa(T405, T406, T420, T411)) → U82_ag(T412, T405, T406, T440, T420, ms25_in_aag(T412, T411, T440))
U82_ag(T412, T405, T406, T440, T420, ms25_out_aag(T412, T411, T440)) → U83_ag(T412, T405, T406, T440, ms38_in_ag(T420, []))
U83_ag(T412, T405, T406, T440, ms38_out_ag(T420, [])) → ms1_out_ag(.(T412, .(T405, T406)), T440)
ms1_in_ag(.(T412, .(T405, T406)), .(T461, T465)) → U84_ag(T412, T405, T406, T461, T465, split12_in_aaaa(T405, T406, T420, T411))
U84_ag(T412, T405, T406, T461, T465, split12_out_aaaa(T405, T406, T420, T411)) → U85_ag(T412, T405, T406, T461, T465, T420, ms25_in_aaa(T412, T411, .(T461, T467)))
U85_ag(T412, T405, T406, T461, T465, T420, ms25_out_aaa(T412, T411, .(T461, T467))) → U86_ag(T412, T405, T406, T461, T465, ms38_in_aa(T420, .(T466, T468)))
U86_ag(T412, T405, T406, T461, T465, ms38_out_aa(T420, .(T466, T468))) → U87_ag(T412, T405, T406, T461, T465, less70_in_ga(T461, T466))
U87_ag(T412, T405, T406, T461, T465, less70_out_ga(T461, T466)) → ms1_out_ag(.(T412, .(T405, T406)), .(T461, T465))
ms1_in_ag(.(T412, .(T405, T406)), .(T461, .(T490, T491))) → U88_ag(T412, T405, T406, T461, T490, T491, split12_in_aaaa(T405, T406, T420, T411))
U88_ag(T412, T405, T406, T461, T490, T491, split12_out_aaaa(T405, T406, T420, T411)) → U89_ag(T412, T405, T406, T461, T490, T491, T420, ms25_in_aag(T412, T411, .(T461, [])))
U89_ag(T412, T405, T406, T461, T490, T491, T420, ms25_out_aag(T412, T411, .(T461, []))) → U90_ag(T412, T405, T406, T461, T490, T491, ms38_in_ag(T420, .(T490, T491)))
U90_ag(T412, T405, T406, T461, T490, T491, ms38_out_ag(T420, .(T490, T491))) → U91_ag(T412, T405, T406, T461, T490, T491, less70_in_gg(T461, T490))
less70_in_gg(0, T154) → less70_out_gg(0, T154)
less70_in_gg(s(T161), T162) → U22_gg(T161, T162, less78_in_gg(T161, T162))
less78_in_gg(0, s(T169)) → less78_out_gg(0, s(T169))
less78_in_gg(s(T176), s(T177)) → U20_gg(T176, T177, less78_in_gg(T176, T177))
U20_gg(T176, T177, less78_out_gg(T176, T177)) → less78_out_gg(s(T176), s(T177))
U22_gg(T161, T162, less78_out_gg(T161, T162)) → less70_out_gg(s(T161), T162)
U91_ag(T412, T405, T406, T461, T490, T491, less70_out_gg(T461, T490)) → ms1_out_ag(.(T412, .(T405, T406)), .(T461, .(T490, T491)))
ms1_in_ag(.(T412, .(T405, T406)), .(T461, .(T513, T517))) → U92_ag(T412, T405, T406, T461, T513, T517, split12_in_aaaa(T405, T406, T420, T411))
U92_ag(T412, T405, T406, T461, T513, T517, split12_out_aaaa(T405, T406, T420, T411)) → U93_ag(T412, T405, T406, T461, T513, T517, T420, ms25_in_aaa(T412, T411, .(T461, .(T513, T519))))
U93_ag(T412, T405, T406, T461, T513, T517, T420, ms25_out_aaa(T412, T411, .(T461, .(T513, T519)))) → U94_ag(T412, T405, T406, T461, T513, T517, T519, ms38_in_aa(T420, .(T518, T520)))
U94_ag(T412, T405, T406, T461, T513, T517, T519, ms38_out_aa(T420, .(T518, T520))) → U95_ag(T412, T405, T406, T461, T513, T517, T519, T518, T520, less70_in_ga(T461, T518))
U95_ag(T412, T405, T406, T461, T513, T517, T519, T518, T520, less70_out_ga(T461, T518)) → U96_ag(T412, T405, T406, T461, T513, T517, p179_in_gaaag(T513, T518, T519, T520, T517))
p179_in_gaaag(T513, T518, T519, T520, T517) → U23_gaaag(T513, T518, T519, T520, T517, less70_in_ga(T513, T518))
U23_gaaag(T513, T518, T519, T520, T517, less70_out_ga(T513, T518)) → p179_out_gaaag(T513, T518, T519, T520, T517)
p179_in_gaaag(T513, T540, [], T541, .(T540, T541)) → U24_gaaag(T513, T540, T541, less70_in_gg(T513, T540))
U24_gaaag(T513, T540, T541, less70_out_gg(T513, T540)) → p179_out_gaaag(T513, T540, [], T541, .(T540, T541))
p179_in_gaaag(T513, T568, .(T563, T569), T570, .(T563, T567)) → U25_gaaag(T513, T568, T563, T569, T570, T567, less70_in_ga(T513, T568))
U25_gaaag(T513, T568, T563, T569, T570, T567, less70_out_ga(T513, T568)) → U26_gaaag(T513, T568, T563, T569, T570, T567, p179_in_gaaag(T563, T568, T569, T570, T567))
p179_in_gaaag(T513, T585, .(T588, T590), T589, .(T585, T587)) → U27_gaaag(T513, T585, T588, T590, T589, T587, less70_in_gg(T513, T585))
U27_gaaag(T513, T585, T588, T590, T589, T587, less70_out_gg(T513, T585)) → U28_gaaag(T513, T585, T588, T590, T589, T587, p194_in_gaaag(T585, T588, T590, T589, T587))
p194_in_gaaag(T585, T588, T590, T589, T587) → U29_gaaag(T585, T588, T590, T589, T587, less78_in_ga(T585, T588))
U29_gaaag(T585, T588, T590, T589, T587, less78_out_ga(T585, T588)) → p194_out_gaaag(T585, T588, T590, T589, T587)
p194_in_gaaag(T585, T610, T611, [], .(T610, T611)) → U30_gaaag(T585, T610, T611, less78_in_gg(T585, T610))
U30_gaaag(T585, T610, T611, less78_out_gg(T585, T610)) → p194_out_gaaag(T585, T610, T611, [], .(T610, T611))
p194_in_gaaag(T585, T632, T638, .(T637, T639), .(T632, T636)) → U31_gaaag(T585, T632, T638, T637, T639, T636, less78_in_gg(T585, T632))
U31_gaaag(T585, T632, T638, T637, T639, T636, less78_out_gg(T585, T632)) → U32_gaaag(T585, T632, T638, T637, T639, T636, p179_in_gaaag(T632, T637, T638, T639, T636))
U32_gaaag(T585, T632, T638, T637, T639, T636, p179_out_gaaag(T632, T637, T638, T639, T636)) → p194_out_gaaag(T585, T632, T638, .(T637, T639), .(T632, T636))
p194_in_gaaag(T585, T657, T659, .(T654, T658), .(T654, T656)) → U33_gaaag(T585, T657, T659, T654, T658, T656, less78_in_ga(T585, T657))
U33_gaaag(T585, T657, T659, T654, T658, T656, less78_out_ga(T585, T657)) → U34_gaaag(T585, T657, T659, T654, T658, T656, p194_in_gaaag(T654, T657, T659, T658, T656))
U34_gaaag(T585, T657, T659, T654, T658, T656, p194_out_gaaag(T654, T657, T659, T658, T656)) → p194_out_gaaag(T585, T657, T659, .(T654, T658), .(T654, T656))
U28_gaaag(T513, T585, T588, T590, T589, T587, p194_out_gaaag(T585, T588, T590, T589, T587)) → p179_out_gaaag(T513, T585, .(T588, T590), T589, .(T585, T587))
U26_gaaag(T513, T568, T563, T569, T570, T567, p179_out_gaaag(T563, T568, T569, T570, T567)) → p179_out_gaaag(T513, T568, .(T563, T569), T570, .(T563, T567))
U96_ag(T412, T405, T406, T461, T513, T517, p179_out_gaaag(T513, T518, T519, T520, T517)) → ms1_out_ag(.(T412, .(T405, T406)), .(T461, .(T513, T517)))
ms1_in_ag(.(T412, .(T405, T406)), .(T461, .(T674, T676))) → U97_ag(T412, T405, T406, T461, T674, T676, split12_in_aaaa(T405, T406, T420, T411))
U97_ag(T412, T405, T406, T461, T674, T676, split12_out_aaaa(T405, T406, T420, T411)) → U98_ag(T412, T405, T406, T461, T674, T676, T420, ms25_in_aaa(T412, T411, .(T461, .(T677, T679))))
U98_ag(T412, T405, T406, T461, T674, T676, T420, ms25_out_aaa(T412, T411, .(T461, .(T677, T679)))) → U99_ag(T412, T405, T406, T461, T674, T676, T677, T679, ms38_in_aa(T420, .(T674, T678)))
U99_ag(T412, T405, T406, T461, T674, T676, T677, T679, ms38_out_aa(T420, .(T674, T678))) → U100_ag(T412, T405, T406, T461, T674, T676, T677, T679, T678, less70_in_gg(T461, T674))
U100_ag(T412, T405, T406, T461, T674, T676, T677, T679, T678, less70_out_gg(T461, T674)) → U101_ag(T412, T405, T406, T461, T674, T676, p194_in_gaaag(T674, T677, T679, T678, T676))
U101_ag(T412, T405, T406, T461, T674, T676, p194_out_gaaag(T674, T677, T679, T678, T676)) → ms1_out_ag(.(T412, .(T405, T406)), .(T461, .(T674, T676)))
ms1_in_ag(.(T412, .(T405, T406)), .(T694, T696)) → U102_ag(T412, T405, T406, T694, T696, split12_in_aaaa(T405, T406, T420, T411))
U102_ag(T412, T405, T406, T694, T696, split12_out_aaaa(T405, T406, T420, T411)) → U103_ag(T412, T405, T406, T694, T696, T420, ms25_in_aaa(T412, T411, .(T697, T699)))
U103_ag(T412, T405, T406, T694, T696, T420, ms25_out_aaa(T412, T411, .(T697, T699))) → U104_ag(T412, T405, T406, T694, T696, T697, T699, ms38_in_aa(T420, .(T694, T698)))
U104_ag(T412, T405, T406, T694, T696, T697, T699, ms38_out_aa(T420, .(T694, T698))) → U105_ag(T412, T405, T406, T694, T696, p194_in_gaaag(T694, T697, T699, T698, T696))
U105_ag(T412, T405, T406, T694, T696, p194_out_gaaag(T694, T697, T699, T698, T696)) → ms1_out_ag(.(T412, .(T405, T406)), .(T694, T696))
P179_IN_GAAAG(T513, T568, .(T563, T569), T570, .(T563, T567)) → U25_GAAAG(T513, T568, T563, T569, T570, T567, less70_in_ga(T513, T568))
U25_GAAAG(T513, T568, T563, T569, T570, T567, less70_out_ga(T513, T568)) → P179_IN_GAAAG(T563, T568, T569, T570, T567)
P179_IN_GAAAG(T513, T585, .(T588, T590), T589, .(T585, T587)) → U27_GAAAG(T513, T585, T588, T590, T589, T587, less70_in_gg(T513, T585))
U27_GAAAG(T513, T585, T588, T590, T589, T587, less70_out_gg(T513, T585)) → P194_IN_GAAAG(T585, T588, T590, T589, T587)
P194_IN_GAAAG(T585, T632, T638, .(T637, T639), .(T632, T636)) → U31_GAAAG(T585, T632, T638, T637, T639, T636, less78_in_gg(T585, T632))
U31_GAAAG(T585, T632, T638, T637, T639, T636, less78_out_gg(T585, T632)) → P179_IN_GAAAG(T632, T637, T638, T639, T636)
P194_IN_GAAAG(T585, T657, T659, .(T654, T658), .(T654, T656)) → U33_GAAAG(T585, T657, T659, T654, T658, T656, less78_in_ga(T585, T657))
U33_GAAAG(T585, T657, T659, T654, T658, T656, less78_out_ga(T585, T657)) → P194_IN_GAAAG(T654, T657, T659, T658, T656)
less70_in_ga(0, T154) → less70_out_ga(0, T154)
less70_in_ga(s(T161), T162) → U22_ga(T161, T162, less78_in_ga(T161, T162))
less70_in_gg(0, T154) → less70_out_gg(0, T154)
less70_in_gg(s(T161), T162) → U22_gg(T161, T162, less78_in_gg(T161, T162))
less78_in_gg(0, s(T169)) → less78_out_gg(0, s(T169))
less78_in_gg(s(T176), s(T177)) → U20_gg(T176, T177, less78_in_gg(T176, T177))
less78_in_ga(0, s(T169)) → less78_out_ga(0, s(T169))
less78_in_ga(s(T176), s(T177)) → U20_ga(T176, T177, less78_in_ga(T176, T177))
U22_ga(T161, T162, less78_out_ga(T161, T162)) → less70_out_ga(s(T161), T162)
U22_gg(T161, T162, less78_out_gg(T161, T162)) → less70_out_gg(s(T161), T162)
U20_gg(T176, T177, less78_out_gg(T176, T177)) → less78_out_gg(s(T176), s(T177))
U20_ga(T176, T177, less78_out_ga(T176, T177)) → less78_out_ga(s(T176), s(T177))
P179_IN_GAAAG(T513, .(T563, T567)) → U25_GAAAG(T513, T563, T567, less70_in_ga(T513))
U25_GAAAG(T513, T563, T567, less70_out_ga(T513)) → P179_IN_GAAAG(T563, T567)
P179_IN_GAAAG(T513, .(T585, T587)) → U27_GAAAG(T513, T585, T587, less70_in_gg(T513, T585))
U27_GAAAG(T513, T585, T587, less70_out_gg(T513, T585)) → P194_IN_GAAAG(T585, T587)
P194_IN_GAAAG(T585, .(T632, T636)) → U31_GAAAG(T585, T632, T636, less78_in_gg(T585, T632))
U31_GAAAG(T585, T632, T636, less78_out_gg(T585, T632)) → P179_IN_GAAAG(T632, T636)
P194_IN_GAAAG(T585, .(T654, T656)) → U33_GAAAG(T585, T654, T656, less78_in_ga(T585))
U33_GAAAG(T585, T654, T656, less78_out_ga(T585)) → P194_IN_GAAAG(T654, T656)
less70_in_ga(0) → less70_out_ga(0)
less70_in_ga(s(T161)) → U22_ga(T161, less78_in_ga(T161))
less70_in_gg(0, T154) → less70_out_gg(0, T154)
less70_in_gg(s(T161), T162) → U22_gg(T161, T162, less78_in_gg(T161, T162))
less78_in_gg(0, s(T169)) → less78_out_gg(0, s(T169))
less78_in_gg(s(T176), s(T177)) → U20_gg(T176, T177, less78_in_gg(T176, T177))
less78_in_ga(0) → less78_out_ga(0)
less78_in_ga(s(T176)) → U20_ga(T176, less78_in_ga(T176))
U22_ga(T161, less78_out_ga(T161)) → less70_out_ga(s(T161))
U22_gg(T161, T162, less78_out_gg(T161, T162)) → less70_out_gg(s(T161), T162)
U20_gg(T176, T177, less78_out_gg(T176, T177)) → less78_out_gg(s(T176), s(T177))
U20_ga(T176, less78_out_ga(T176)) → less78_out_ga(s(T176))
less70_in_ga(x0)
less70_in_gg(x0, x1)
less78_in_gg(x0, x1)
less78_in_ga(x0)
U22_ga(x0, x1)
U22_gg(x0, x1, x2)
U20_gg(x0, x1, x2)
U20_ga(x0, x1)
From the DPs we obtained the following set of size-change graphs:
MERGE54_IN_AAG(.(T139, T145), .(T146, T147), .(T139, X226)) → U15_AAG(T139, T145, T146, T147, X226, less70_in_ga(T139, T146))
U15_AAG(T139, T145, T146, T147, X226, less70_out_ga(T139, T146)) → MERGE54_IN_AAG(T145, .(T146, T147), X226)
MERGE54_IN_AAG(.(T202, T203), .(T196, T204), .(T196, X287)) → U18_AAG(T202, T203, T196, T204, X287, less78_in_ga(T196, T202))
U18_AAG(T202, T203, T196, T204, X287, less78_out_ga(T196, T202)) → MERGE54_IN_AAG(.(T202, T203), T204, X287)
ms1_in_ag([], []) → ms1_out_ag([], [])
ms1_in_ag(.(T29, .(T27, T28)), []) → U35_ag(T29, T27, T28, split12_in_aaaa(T27, T28, X42, X41))
split12_in_aaaa(T42, T44, .(T42, X71), X72) → U2_aaaa(T42, T44, X71, X72, split16_in_aaa(T44, X72, X71))
split16_in_aaa([], [], []) → split16_out_aaa([], [], [])
split16_in_aaa(.(T49, T51), .(T49, X89), X90) → U1_aaa(T49, T51, X89, X90, split16_in_aaa(T51, X90, X89))
U1_aaa(T49, T51, X89, X90, split16_out_aaa(T51, X90, X89)) → split16_out_aaa(.(T49, T51), .(T49, X89), X90)
U2_aaaa(T42, T44, X71, X72, split16_out_aaa(T44, X72, X71)) → split12_out_aaaa(T42, T44, .(T42, X71), X72)
U35_ag(T29, T27, T28, split12_out_aaaa(T27, T28, X42, X41)) → ms1_out_ag(.(T29, .(T27, T28)), [])
ms1_in_ag(.(T34, .(T27, T28)), []) → U36_ag(T34, T27, T28, split12_in_aaaa(T27, T28, T32, T33))
U36_ag(T34, T27, T28, split12_out_aaaa(T27, T28, T32, T33)) → U37_ag(T34, T27, T28, ms25_in_aaa(T34, T33, X13))
ms25_in_aaa(T62, [], .(T62, [])) → ms25_out_aaa(T62, [], .(T62, []))
ms25_in_aaa(T72, .(T73, T74), X127) → U21_aaa(T72, T73, T74, X127, p34_in_aaaaaaaa(T72, T73, T74, X123, X124, X125, X126, X127))
p34_in_aaaaaaaa(T72, T73, T74, X123, X124, X125, X126, X127) → U3_aaaaaaaa(T72, T73, T74, X123, X124, X125, X126, X127, split12_in_aaaa(T72, .(T73, T74), X123, X124))
U3_aaaaaaaa(T72, T73, T74, X123, X124, X125, X126, X127, split12_out_aaaa(T72, .(T73, T74), X123, X124)) → p34_out_aaaaaaaa(T72, T73, T74, X123, X124, X125, X126, X127)
p34_in_aaaaaaaa(T72, T73, T74, T78, T79, X125, X126, X127) → U4_aaaaaaaa(T72, T73, T74, T78, T79, X125, X126, X127, split12_in_aaaa(T72, .(T73, T74), T78, T79))
U4_aaaaaaaa(T72, T73, T74, T78, T79, X125, X126, X127, split12_out_aaaa(T72, .(T73, T74), T78, T79)) → U5_aaaaaaaa(T72, T73, T74, T78, T79, X125, X126, X127, ms38_in_aa(T78, X125))
ms38_in_aa([], []) → ms38_out_aa([], [])
ms38_in_aa(.(T89, []), .(T89, [])) → ms38_out_aa(.(T89, []), .(T89, []))
ms38_in_aa(.(T99, .(T100, T101)), X172) → U13_aa(T99, T100, T101, X172, p34_in_aaaaaaaa(T99, T100, T101, X168, X169, X170, X171, X172))
p34_in_aaaaaaaa(T72, T73, T74, T78, T84, T83, X126, X127) → U6_aaaaaaaa(T72, T73, T74, T78, T84, T83, X126, X127, split12_in_aaaa(T72, .(T73, T74), T78, T84))
U6_aaaaaaaa(T72, T73, T74, T78, T84, T83, X126, X127, split12_out_aaaa(T72, .(T73, T74), T78, T84)) → U7_aaaaaaaa(T72, T73, T74, T78, T84, T83, X126, X127, ms38_in_aa(T78, T83))
U7_aaaaaaaa(T72, T73, T74, T78, T84, T83, X126, X127, ms38_out_aa(T78, T83)) → U8_aaaaaaaa(T72, T73, T74, T78, T84, T83, X126, X127, ms38_in_aa(T84, X126))
U8_aaaaaaaa(T72, T73, T74, T78, T84, T83, X126, X127, ms38_out_aa(T84, X126)) → p34_out_aaaaaaaa(T72, T73, T74, T78, T84, T83, X126, X127)
p34_in_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127) → U9_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127, split12_in_aaaa(T72, .(T73, T74), T78, T84))
U9_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127, split12_out_aaaa(T72, .(T73, T74), T78, T84)) → U10_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127, ms38_in_aa(T78, T106))
U10_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127, ms38_out_aa(T78, T106)) → U11_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127, ms38_in_aa(T84, T105))
U11_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127, ms38_out_aa(T84, T105)) → U12_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127, merge54_in_aaa(T106, T105, X127))
merge54_in_aaa([], T113, T113) → merge54_out_aaa([], T113, T113)
merge54_in_aaa(T118, [], T118) → merge54_out_aaa(T118, [], T118)
merge54_in_aaa(.(T139, T141), .(T140, T142), .(T139, X226)) → U14_aaa(T139, T141, T140, T142, X226, less70_in_aa(T139, T140))
less70_in_aa(0, T154) → less70_out_aa(0, T154)
less70_in_aa(s(T161), T162) → U22_aa(T161, T162, less78_in_aa(T161, T162))
less78_in_aa(0, s(T169)) → less78_out_aa(0, s(T169))
less78_in_aa(s(T176), s(T177)) → U20_aa(T176, T177, less78_in_aa(T176, T177))
U20_aa(T176, T177, less78_out_aa(T176, T177)) → less78_out_aa(s(T176), s(T177))
U22_aa(T161, T162, less78_out_aa(T161, T162)) → less70_out_aa(s(T161), T162)
U14_aaa(T139, T141, T140, T142, X226, less70_out_aa(T139, T140)) → merge54_out_aaa(.(T139, T141), .(T140, T142), .(T139, X226))
merge54_in_aaa(.(T139, T145), .(T146, T147), .(T139, X226)) → U15_aaa(T139, T145, T146, T147, X226, less70_in_aa(T139, T146))
U15_aaa(T139, T145, T146, T147, X226, less70_out_aa(T139, T146)) → U16_aaa(T139, T145, T146, T147, X226, merge54_in_aaa(T145, .(T146, T147), X226))
merge54_in_aaa(.(T197, T199), .(T196, T198), .(T196, X287)) → U17_aaa(T197, T199, T196, T198, X287, less78_in_aa(T196, T197))
U17_aaa(T197, T199, T196, T198, X287, less78_out_aa(T196, T197)) → merge54_out_aaa(.(T197, T199), .(T196, T198), .(T196, X287))
merge54_in_aaa(.(T202, T203), .(T196, T204), .(T196, X287)) → U18_aaa(T202, T203, T196, T204, X287, less78_in_aa(T196, T202))
U18_aaa(T202, T203, T196, T204, X287, less78_out_aa(T196, T202)) → U19_aaa(T202, T203, T196, T204, X287, merge54_in_aaa(.(T202, T203), T204, X287))
U19_aaa(T202, T203, T196, T204, X287, merge54_out_aaa(.(T202, T203), T204, X287)) → merge54_out_aaa(.(T202, T203), .(T196, T204), .(T196, X287))
U16_aaa(T139, T145, T146, T147, X226, merge54_out_aaa(T145, .(T146, T147), X226)) → merge54_out_aaa(.(T139, T145), .(T146, T147), .(T139, X226))
U12_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127, merge54_out_aaa(T106, T105, X127)) → p34_out_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127)
U13_aa(T99, T100, T101, X172, p34_out_aaaaaaaa(T99, T100, T101, X168, X169, X170, X171, X172)) → ms38_out_aa(.(T99, .(T100, T101)), X172)
U5_aaaaaaaa(T72, T73, T74, T78, T79, X125, X126, X127, ms38_out_aa(T78, X125)) → p34_out_aaaaaaaa(T72, T73, T74, T78, T79, X125, X126, X127)
U21_aaa(T72, T73, T74, X127, p34_out_aaaaaaaa(T72, T73, T74, X123, X124, X125, X126, X127)) → ms25_out_aaa(T72, .(T73, T74), X127)
U37_ag(T34, T27, T28, ms25_out_aaa(T34, T33, X13)) → ms1_out_ag(.(T34, .(T27, T28)), [])
ms1_in_ag(.(T34, .(T27, T28)), []) → U38_ag(T34, T27, T28, split12_in_aaaa(T27, T28, T55, T33))
U38_ag(T34, T27, T28, split12_out_aaaa(T27, T28, T55, T33)) → U39_ag(T34, T27, T28, T55, ms25_in_aaa(T34, T33, T54))
U39_ag(T34, T27, T28, T55, ms25_out_aaa(T34, T33, T54)) → U40_ag(T34, T27, T28, ms38_in_aa(T55, X14))
U40_ag(T34, T27, T28, ms38_out_aa(T55, X14)) → ms1_out_ag(.(T34, .(T27, T28)), [])
U38_ag(T34, T27, T28, split12_out_aaaa(T27, T28, T55, T33)) → U41_ag(T34, T27, T28, T55, ms25_in_aaa(T34, T33, T212))
U41_ag(T34, T27, T28, T55, ms25_out_aaa(T34, T33, T212)) → U42_ag(T34, T27, T28, T212, ms38_in_aa(T55, T211))
U42_ag(T34, T27, T28, T212, ms38_out_aa(T55, T211)) → U43_ag(T34, T27, T28, merge93_in_aa(T212, T211))
merge93_in_aa([], []) → merge93_out_aa([], [])
U43_ag(T34, T27, T28, merge93_out_aa(T212, T211)) → ms1_out_ag(.(T34, .(T27, T28)), [])
ms1_in_ag(.(T234, []), .(T234, [])) → ms1_out_ag(.(T234, []), .(T234, []))
ms1_in_ag(.(T262, .(T260, T261)), .(T242, [])) → U44_ag(T262, T260, T261, T242, split12_in_aaaa(T260, T261, X367, X366))
U44_ag(T262, T260, T261, T242, split12_out_aaaa(T260, T261, X367, X366)) → ms1_out_ag(.(T262, .(T260, T261)), .(T242, []))
ms1_in_ag(.(T267, .(T260, T261)), .(T242, [])) → U45_ag(T267, T260, T261, T242, split12_in_aaaa(T260, T261, T265, T266))
U45_ag(T267, T260, T261, T242, split12_out_aaaa(T260, T261, T265, T266)) → U46_ag(T267, T260, T261, T242, ms25_in_aaa(T267, T266, X338))
U46_ag(T267, T260, T261, T242, ms25_out_aaa(T267, T266, X338)) → ms1_out_ag(.(T267, .(T260, T261)), .(T242, []))
ms1_in_ag(.(T267, .(T260, T261)), .(T242, [])) → U47_ag(T267, T260, T261, T242, split12_in_aaaa(T260, T261, T273, T266))
U47_ag(T267, T260, T261, T242, split12_out_aaaa(T260, T261, T273, T266)) → U48_ag(T267, T260, T261, T242, T273, ms25_in_aaa(T267, T266, T272))
U48_ag(T267, T260, T261, T242, T273, ms25_out_aaa(T267, T266, T272)) → U49_ag(T267, T260, T261, T242, ms38_in_aa(T273, X339))
U49_ag(T267, T260, T261, T242, ms38_out_aa(T273, X339)) → ms1_out_ag(.(T267, .(T260, T261)), .(T242, []))
ms1_in_ag(.(T267, .(T260, T261)), .(T291, [])) → U50_ag(T267, T260, T261, T291, split12_in_aaaa(T260, T261, T273, T266))
U50_ag(T267, T260, T261, T291, split12_out_aaaa(T260, T261, T273, T266)) → U51_ag(T267, T260, T261, T291, T273, ms25_in_aag(T267, T266, []))
ms25_in_aag(T62, [], .(T62, [])) → ms25_out_aag(T62, [], .(T62, []))
ms25_in_aag(T72, .(T73, T74), X127) → U21_aag(T72, T73, T74, X127, p34_in_aaaaaaag(T72, T73, T74, X123, X124, X125, X126, X127))
p34_in_aaaaaaag(T72, T73, T74, X123, X124, X125, X126, X127) → U3_aaaaaaag(T72, T73, T74, X123, X124, X125, X126, X127, split12_in_aaaa(T72, .(T73, T74), X123, X124))
U3_aaaaaaag(T72, T73, T74, X123, X124, X125, X126, X127, split12_out_aaaa(T72, .(T73, T74), X123, X124)) → p34_out_aaaaaaag(T72, T73, T74, X123, X124, X125, X126, X127)
p34_in_aaaaaaag(T72, T73, T74, T78, T79, X125, X126, X127) → U4_aaaaaaag(T72, T73, T74, T78, T79, X125, X126, X127, split12_in_aaaa(T72, .(T73, T74), T78, T79))
U4_aaaaaaag(T72, T73, T74, T78, T79, X125, X126, X127, split12_out_aaaa(T72, .(T73, T74), T78, T79)) → U5_aaaaaaag(T72, T73, T74, T78, T79, X125, X126, X127, ms38_in_aa(T78, X125))
U5_aaaaaaag(T72, T73, T74, T78, T79, X125, X126, X127, ms38_out_aa(T78, X125)) → p34_out_aaaaaaag(T72, T73, T74, T78, T79, X125, X126, X127)
p34_in_aaaaaaag(T72, T73, T74, T78, T84, T83, X126, X127) → U6_aaaaaaag(T72, T73, T74, T78, T84, T83, X126, X127, split12_in_aaaa(T72, .(T73, T74), T78, T84))
U6_aaaaaaag(T72, T73, T74, T78, T84, T83, X126, X127, split12_out_aaaa(T72, .(T73, T74), T78, T84)) → U7_aaaaaaag(T72, T73, T74, T78, T84, T83, X126, X127, ms38_in_aa(T78, T83))
U7_aaaaaaag(T72, T73, T74, T78, T84, T83, X126, X127, ms38_out_aa(T78, T83)) → U8_aaaaaaag(T72, T73, T74, T78, T84, T83, X126, X127, ms38_in_aa(T84, X126))
U8_aaaaaaag(T72, T73, T74, T78, T84, T83, X126, X127, ms38_out_aa(T84, X126)) → p34_out_aaaaaaag(T72, T73, T74, T78, T84, T83, X126, X127)
p34_in_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127) → U9_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127, split12_in_aaaa(T72, .(T73, T74), T78, T84))
U9_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127, split12_out_aaaa(T72, .(T73, T74), T78, T84)) → U10_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127, ms38_in_aa(T78, T106))
U10_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127, ms38_out_aa(T78, T106)) → U11_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127, ms38_in_aa(T84, T105))
U11_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127, ms38_out_aa(T84, T105)) → U12_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127, merge54_in_aag(T106, T105, X127))
merge54_in_aag([], T113, T113) → merge54_out_aag([], T113, T113)
merge54_in_aag(T118, [], T118) → merge54_out_aag(T118, [], T118)
merge54_in_aag(.(T139, T141), .(T140, T142), .(T139, X226)) → U14_aag(T139, T141, T140, T142, X226, less70_in_ga(T139, T140))
less70_in_ga(0, T154) → less70_out_ga(0, T154)
less70_in_ga(s(T161), T162) → U22_ga(T161, T162, less78_in_ga(T161, T162))
less78_in_ga(0, s(T169)) → less78_out_ga(0, s(T169))
less78_in_ga(s(T176), s(T177)) → U20_ga(T176, T177, less78_in_ga(T176, T177))
U20_ga(T176, T177, less78_out_ga(T176, T177)) → less78_out_ga(s(T176), s(T177))
U22_ga(T161, T162, less78_out_ga(T161, T162)) → less70_out_ga(s(T161), T162)
U14_aag(T139, T141, T140, T142, X226, less70_out_ga(T139, T140)) → merge54_out_aag(.(T139, T141), .(T140, T142), .(T139, X226))
merge54_in_aag(.(T139, T145), .(T146, T147), .(T139, X226)) → U15_aag(T139, T145, T146, T147, X226, less70_in_ga(T139, T146))
U15_aag(T139, T145, T146, T147, X226, less70_out_ga(T139, T146)) → U16_aag(T139, T145, T146, T147, X226, merge54_in_aag(T145, .(T146, T147), X226))
merge54_in_aag(.(T197, T199), .(T196, T198), .(T196, X287)) → U17_aag(T197, T199, T196, T198, X287, less78_in_ga(T196, T197))
U17_aag(T197, T199, T196, T198, X287, less78_out_ga(T196, T197)) → merge54_out_aag(.(T197, T199), .(T196, T198), .(T196, X287))
merge54_in_aag(.(T202, T203), .(T196, T204), .(T196, X287)) → U18_aag(T202, T203, T196, T204, X287, less78_in_ga(T196, T202))
U18_aag(T202, T203, T196, T204, X287, less78_out_ga(T196, T202)) → U19_aag(T202, T203, T196, T204, X287, merge54_in_aag(.(T202, T203), T204, X287))
U19_aag(T202, T203, T196, T204, X287, merge54_out_aag(.(T202, T203), T204, X287)) → merge54_out_aag(.(T202, T203), .(T196, T204), .(T196, X287))
U16_aag(T139, T145, T146, T147, X226, merge54_out_aag(T145, .(T146, T147), X226)) → merge54_out_aag(.(T139, T145), .(T146, T147), .(T139, X226))
U12_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127, merge54_out_aag(T106, T105, X127)) → p34_out_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127)
U21_aag(T72, T73, T74, X127, p34_out_aaaaaaag(T72, T73, T74, X123, X124, X125, X126, X127)) → ms25_out_aag(T72, .(T73, T74), X127)
U51_ag(T267, T260, T261, T291, T273, ms25_out_aag(T267, T266, [])) → U52_ag(T267, T260, T261, T291, ms38_in_ag(T273, .(T291, [])))
ms38_in_ag([], []) → ms38_out_ag([], [])
ms38_in_ag(.(T89, []), .(T89, [])) → ms38_out_ag(.(T89, []), .(T89, []))
ms38_in_ag(.(T99, .(T100, T101)), X172) → U13_ag(T99, T100, T101, X172, p34_in_aaaaaaag(T99, T100, T101, X168, X169, X170, X171, X172))
U13_ag(T99, T100, T101, X172, p34_out_aaaaaaag(T99, T100, T101, X168, X169, X170, X171, X172)) → ms38_out_ag(.(T99, .(T100, T101)), X172)
U52_ag(T267, T260, T261, T291, ms38_out_ag(T273, .(T291, []))) → ms1_out_ag(.(T267, .(T260, T261)), .(T291, []))
ms1_in_ag(.(T267, .(T260, T261)), .(T301, [])) → U53_ag(T267, T260, T261, T301, split12_in_aaaa(T260, T261, T273, T266))
U53_ag(T267, T260, T261, T301, split12_out_aaaa(T260, T261, T273, T266)) → U54_ag(T267, T260, T261, T301, T273, ms25_in_aag(T267, T266, .(T301, [])))
U54_ag(T267, T260, T261, T301, T273, ms25_out_aag(T267, T266, .(T301, []))) → U55_ag(T267, T260, T261, T301, ms38_in_ag(T273, []))
U55_ag(T267, T260, T261, T301, ms38_out_ag(T273, [])) → ms1_out_ag(.(T267, .(T260, T261)), .(T301, []))
ms1_in_ag(.(T267, .(T260, T261)), .(T318, [])) → U56_ag(T267, T260, T261, T318, split12_in_aaaa(T260, T261, T273, T266))
U56_ag(T267, T260, T261, T318, split12_out_aaaa(T260, T261, T273, T266)) → U57_ag(T267, T260, T261, T318, T273, ms25_in_aaa(T267, T266, .(T318, T323)))
U57_ag(T267, T260, T261, T318, T273, ms25_out_aaa(T267, T266, .(T318, T323))) → U58_ag(T267, T260, T261, T318, ms38_in_aa(T273, .(T322, T324)))
U58_ag(T267, T260, T261, T318, ms38_out_aa(T273, .(T322, T324))) → U59_ag(T267, T260, T261, T318, less70_in_ga(T318, T322))
U59_ag(T267, T260, T261, T318, less70_out_ga(T318, T322)) → ms1_out_ag(.(T267, .(T260, T261)), .(T318, []))
U56_ag(T267, T260, T261, T318, split12_out_aaaa(T260, T261, T273, T266)) → U60_ag(T267, T260, T261, T318, T273, ms25_in_aaa(T267, T266, .(T318, T327)))
U60_ag(T267, T260, T261, T318, T273, ms25_out_aaa(T267, T266, .(T318, T327))) → U61_ag(T267, T260, T261, T318, T327, ms38_in_aa(T273, .(T328, T329)))
U61_ag(T267, T260, T261, T318, T327, ms38_out_aa(T273, .(T328, T329))) → U62_ag(T267, T260, T261, T318, T327, T328, T329, less70_in_ga(T318, T328))
U62_ag(T267, T260, T261, T318, T327, T328, T329, less70_out_ga(T318, T328)) → U63_ag(T267, T260, T261, T318, merge93_in_aa(T327, .(T328, T329)))
U63_ag(T267, T260, T261, T318, merge93_out_aa(T327, .(T328, T329))) → ms1_out_ag(.(T267, .(T260, T261)), .(T318, []))
ms1_in_ag(.(T267, .(T260, T261)), .(T356, [])) → U64_ag(T267, T260, T261, T356, split12_in_aaaa(T260, T261, T273, T266))
U64_ag(T267, T260, T261, T356, split12_out_aaaa(T260, T261, T273, T266)) → U65_ag(T267, T260, T261, T356, T273, ms25_in_aaa(T267, T266, .(T358, T360)))
U65_ag(T267, T260, T261, T356, T273, ms25_out_aaa(T267, T266, .(T358, T360))) → U66_ag(T267, T260, T261, T356, T358, ms38_in_aa(T273, .(T356, T359)))
U66_ag(T267, T260, T261, T356, T358, ms38_out_aa(T273, .(T356, T359))) → U67_ag(T267, T260, T261, T356, less78_in_ga(T356, T358))
U67_ag(T267, T260, T261, T356, less78_out_ga(T356, T358)) → ms1_out_ag(.(T267, .(T260, T261)), .(T356, []))
U64_ag(T267, T260, T261, T356, split12_out_aaaa(T260, T261, T273, T266)) → U68_ag(T267, T260, T261, T356, T273, ms25_in_aaa(T267, T266, .(T363, T364)))
U68_ag(T267, T260, T261, T356, T273, ms25_out_aaa(T267, T266, .(T363, T364))) → U69_ag(T267, T260, T261, T356, T363, T364, ms38_in_aa(T273, .(T356, T365)))
U69_ag(T267, T260, T261, T356, T363, T364, ms38_out_aa(T273, .(T356, T365))) → U70_ag(T267, T260, T261, T356, T363, T364, T365, less78_in_ga(T356, T363))
U70_ag(T267, T260, T261, T356, T363, T364, T365, less78_out_ga(T356, T363)) → U71_ag(T267, T260, T261, T356, merge93_in_aa(.(T363, T364), T365))
U71_ag(T267, T260, T261, T356, merge93_out_aa(.(T363, T364), T365)) → ms1_out_ag(.(T267, .(T260, T261)), .(T356, []))
ms1_in_ag(.(T407, .(T405, T406)), T387) → U72_ag(T407, T405, T406, T387, split12_in_aaaa(T405, T406, X523, X522))
U72_ag(T407, T405, T406, T387, split12_out_aaaa(T405, T406, X523, X522)) → ms1_out_ag(.(T407, .(T405, T406)), T387)
ms1_in_ag(.(T412, .(T405, T406)), T387) → U73_ag(T412, T405, T406, T387, split12_in_aaaa(T405, T406, T410, T411))
U73_ag(T412, T405, T406, T387, split12_out_aaaa(T405, T406, T410, T411)) → U74_ag(T412, T405, T406, T387, ms25_in_aaa(T412, T411, X494))
U74_ag(T412, T405, T406, T387, ms25_out_aaa(T412, T411, X494)) → ms1_out_ag(.(T412, .(T405, T406)), T387)
ms1_in_ag(.(T412, .(T405, T406)), T387) → U75_ag(T412, T405, T406, T387, split12_in_aaaa(T405, T406, T420, T411))
U75_ag(T412, T405, T406, T387, split12_out_aaaa(T405, T406, T420, T411)) → U76_ag(T412, T405, T406, T387, T420, ms25_in_aaa(T412, T411, T419))
U76_ag(T412, T405, T406, T387, T420, ms25_out_aaa(T412, T411, T419)) → U77_ag(T412, T405, T406, T387, ms38_in_aa(T420, X495))
U77_ag(T412, T405, T406, T387, ms38_out_aa(T420, X495)) → ms1_out_ag(.(T412, .(T405, T406)), T387)
ms1_in_ag(.(T412, .(T405, T406)), T435) → U78_ag(T412, T405, T406, T435, split12_in_aaaa(T405, T406, T420, T411))
U78_ag(T412, T405, T406, T435, split12_out_aaaa(T405, T406, T420, T411)) → U79_ag(T412, T405, T406, T435, T420, ms25_in_aag(T412, T411, []))
U79_ag(T412, T405, T406, T435, T420, ms25_out_aag(T412, T411, [])) → U80_ag(T412, T405, T406, T435, ms38_in_ag(T420, T435))
U80_ag(T412, T405, T406, T435, ms38_out_ag(T420, T435)) → ms1_out_ag(.(T412, .(T405, T406)), T435)
ms1_in_ag(.(T412, .(T405, T406)), T440) → U81_ag(T412, T405, T406, T440, split12_in_aaaa(T405, T406, T420, T411))
U81_ag(T412, T405, T406, T440, split12_out_aaaa(T405, T406, T420, T411)) → U82_ag(T412, T405, T406, T440, T420, ms25_in_aag(T412, T411, T440))
U82_ag(T412, T405, T406, T440, T420, ms25_out_aag(T412, T411, T440)) → U83_ag(T412, T405, T406, T440, ms38_in_ag(T420, []))
U83_ag(T412, T405, T406, T440, ms38_out_ag(T420, [])) → ms1_out_ag(.(T412, .(T405, T406)), T440)
ms1_in_ag(.(T412, .(T405, T406)), .(T461, T465)) → U84_ag(T412, T405, T406, T461, T465, split12_in_aaaa(T405, T406, T420, T411))
U84_ag(T412, T405, T406, T461, T465, split12_out_aaaa(T405, T406, T420, T411)) → U85_ag(T412, T405, T406, T461, T465, T420, ms25_in_aaa(T412, T411, .(T461, T467)))
U85_ag(T412, T405, T406, T461, T465, T420, ms25_out_aaa(T412, T411, .(T461, T467))) → U86_ag(T412, T405, T406, T461, T465, ms38_in_aa(T420, .(T466, T468)))
U86_ag(T412, T405, T406, T461, T465, ms38_out_aa(T420, .(T466, T468))) → U87_ag(T412, T405, T406, T461, T465, less70_in_ga(T461, T466))
U87_ag(T412, T405, T406, T461, T465, less70_out_ga(T461, T466)) → ms1_out_ag(.(T412, .(T405, T406)), .(T461, T465))
ms1_in_ag(.(T412, .(T405, T406)), .(T461, .(T490, T491))) → U88_ag(T412, T405, T406, T461, T490, T491, split12_in_aaaa(T405, T406, T420, T411))
U88_ag(T412, T405, T406, T461, T490, T491, split12_out_aaaa(T405, T406, T420, T411)) → U89_ag(T412, T405, T406, T461, T490, T491, T420, ms25_in_aag(T412, T411, .(T461, [])))
U89_ag(T412, T405, T406, T461, T490, T491, T420, ms25_out_aag(T412, T411, .(T461, []))) → U90_ag(T412, T405, T406, T461, T490, T491, ms38_in_ag(T420, .(T490, T491)))
U90_ag(T412, T405, T406, T461, T490, T491, ms38_out_ag(T420, .(T490, T491))) → U91_ag(T412, T405, T406, T461, T490, T491, less70_in_gg(T461, T490))
less70_in_gg(0, T154) → less70_out_gg(0, T154)
less70_in_gg(s(T161), T162) → U22_gg(T161, T162, less78_in_gg(T161, T162))
less78_in_gg(0, s(T169)) → less78_out_gg(0, s(T169))
less78_in_gg(s(T176), s(T177)) → U20_gg(T176, T177, less78_in_gg(T176, T177))
U20_gg(T176, T177, less78_out_gg(T176, T177)) → less78_out_gg(s(T176), s(T177))
U22_gg(T161, T162, less78_out_gg(T161, T162)) → less70_out_gg(s(T161), T162)
U91_ag(T412, T405, T406, T461, T490, T491, less70_out_gg(T461, T490)) → ms1_out_ag(.(T412, .(T405, T406)), .(T461, .(T490, T491)))
ms1_in_ag(.(T412, .(T405, T406)), .(T461, .(T513, T517))) → U92_ag(T412, T405, T406, T461, T513, T517, split12_in_aaaa(T405, T406, T420, T411))
U92_ag(T412, T405, T406, T461, T513, T517, split12_out_aaaa(T405, T406, T420, T411)) → U93_ag(T412, T405, T406, T461, T513, T517, T420, ms25_in_aaa(T412, T411, .(T461, .(T513, T519))))
U93_ag(T412, T405, T406, T461, T513, T517, T420, ms25_out_aaa(T412, T411, .(T461, .(T513, T519)))) → U94_ag(T412, T405, T406, T461, T513, T517, T519, ms38_in_aa(T420, .(T518, T520)))
U94_ag(T412, T405, T406, T461, T513, T517, T519, ms38_out_aa(T420, .(T518, T520))) → U95_ag(T412, T405, T406, T461, T513, T517, T519, T518, T520, less70_in_ga(T461, T518))
U95_ag(T412, T405, T406, T461, T513, T517, T519, T518, T520, less70_out_ga(T461, T518)) → U96_ag(T412, T405, T406, T461, T513, T517, p179_in_gaaag(T513, T518, T519, T520, T517))
p179_in_gaaag(T513, T518, T519, T520, T517) → U23_gaaag(T513, T518, T519, T520, T517, less70_in_ga(T513, T518))
U23_gaaag(T513, T518, T519, T520, T517, less70_out_ga(T513, T518)) → p179_out_gaaag(T513, T518, T519, T520, T517)
p179_in_gaaag(T513, T540, [], T541, .(T540, T541)) → U24_gaaag(T513, T540, T541, less70_in_gg(T513, T540))
U24_gaaag(T513, T540, T541, less70_out_gg(T513, T540)) → p179_out_gaaag(T513, T540, [], T541, .(T540, T541))
p179_in_gaaag(T513, T568, .(T563, T569), T570, .(T563, T567)) → U25_gaaag(T513, T568, T563, T569, T570, T567, less70_in_ga(T513, T568))
U25_gaaag(T513, T568, T563, T569, T570, T567, less70_out_ga(T513, T568)) → U26_gaaag(T513, T568, T563, T569, T570, T567, p179_in_gaaag(T563, T568, T569, T570, T567))
p179_in_gaaag(T513, T585, .(T588, T590), T589, .(T585, T587)) → U27_gaaag(T513, T585, T588, T590, T589, T587, less70_in_gg(T513, T585))
U27_gaaag(T513, T585, T588, T590, T589, T587, less70_out_gg(T513, T585)) → U28_gaaag(T513, T585, T588, T590, T589, T587, p194_in_gaaag(T585, T588, T590, T589, T587))
p194_in_gaaag(T585, T588, T590, T589, T587) → U29_gaaag(T585, T588, T590, T589, T587, less78_in_ga(T585, T588))
U29_gaaag(T585, T588, T590, T589, T587, less78_out_ga(T585, T588)) → p194_out_gaaag(T585, T588, T590, T589, T587)
p194_in_gaaag(T585, T610, T611, [], .(T610, T611)) → U30_gaaag(T585, T610, T611, less78_in_gg(T585, T610))
U30_gaaag(T585, T610, T611, less78_out_gg(T585, T610)) → p194_out_gaaag(T585, T610, T611, [], .(T610, T611))
p194_in_gaaag(T585, T632, T638, .(T637, T639), .(T632, T636)) → U31_gaaag(T585, T632, T638, T637, T639, T636, less78_in_gg(T585, T632))
U31_gaaag(T585, T632, T638, T637, T639, T636, less78_out_gg(T585, T632)) → U32_gaaag(T585, T632, T638, T637, T639, T636, p179_in_gaaag(T632, T637, T638, T639, T636))
U32_gaaag(T585, T632, T638, T637, T639, T636, p179_out_gaaag(T632, T637, T638, T639, T636)) → p194_out_gaaag(T585, T632, T638, .(T637, T639), .(T632, T636))
p194_in_gaaag(T585, T657, T659, .(T654, T658), .(T654, T656)) → U33_gaaag(T585, T657, T659, T654, T658, T656, less78_in_ga(T585, T657))
U33_gaaag(T585, T657, T659, T654, T658, T656, less78_out_ga(T585, T657)) → U34_gaaag(T585, T657, T659, T654, T658, T656, p194_in_gaaag(T654, T657, T659, T658, T656))
U34_gaaag(T585, T657, T659, T654, T658, T656, p194_out_gaaag(T654, T657, T659, T658, T656)) → p194_out_gaaag(T585, T657, T659, .(T654, T658), .(T654, T656))
U28_gaaag(T513, T585, T588, T590, T589, T587, p194_out_gaaag(T585, T588, T590, T589, T587)) → p179_out_gaaag(T513, T585, .(T588, T590), T589, .(T585, T587))
U26_gaaag(T513, T568, T563, T569, T570, T567, p179_out_gaaag(T563, T568, T569, T570, T567)) → p179_out_gaaag(T513, T568, .(T563, T569), T570, .(T563, T567))
U96_ag(T412, T405, T406, T461, T513, T517, p179_out_gaaag(T513, T518, T519, T520, T517)) → ms1_out_ag(.(T412, .(T405, T406)), .(T461, .(T513, T517)))
ms1_in_ag(.(T412, .(T405, T406)), .(T461, .(T674, T676))) → U97_ag(T412, T405, T406, T461, T674, T676, split12_in_aaaa(T405, T406, T420, T411))
U97_ag(T412, T405, T406, T461, T674, T676, split12_out_aaaa(T405, T406, T420, T411)) → U98_ag(T412, T405, T406, T461, T674, T676, T420, ms25_in_aaa(T412, T411, .(T461, .(T677, T679))))
U98_ag(T412, T405, T406, T461, T674, T676, T420, ms25_out_aaa(T412, T411, .(T461, .(T677, T679)))) → U99_ag(T412, T405, T406, T461, T674, T676, T677, T679, ms38_in_aa(T420, .(T674, T678)))
U99_ag(T412, T405, T406, T461, T674, T676, T677, T679, ms38_out_aa(T420, .(T674, T678))) → U100_ag(T412, T405, T406, T461, T674, T676, T677, T679, T678, less70_in_gg(T461, T674))
U100_ag(T412, T405, T406, T461, T674, T676, T677, T679, T678, less70_out_gg(T461, T674)) → U101_ag(T412, T405, T406, T461, T674, T676, p194_in_gaaag(T674, T677, T679, T678, T676))
U101_ag(T412, T405, T406, T461, T674, T676, p194_out_gaaag(T674, T677, T679, T678, T676)) → ms1_out_ag(.(T412, .(T405, T406)), .(T461, .(T674, T676)))
ms1_in_ag(.(T412, .(T405, T406)), .(T694, T696)) → U102_ag(T412, T405, T406, T694, T696, split12_in_aaaa(T405, T406, T420, T411))
U102_ag(T412, T405, T406, T694, T696, split12_out_aaaa(T405, T406, T420, T411)) → U103_ag(T412, T405, T406, T694, T696, T420, ms25_in_aaa(T412, T411, .(T697, T699)))
U103_ag(T412, T405, T406, T694, T696, T420, ms25_out_aaa(T412, T411, .(T697, T699))) → U104_ag(T412, T405, T406, T694, T696, T697, T699, ms38_in_aa(T420, .(T694, T698)))
U104_ag(T412, T405, T406, T694, T696, T697, T699, ms38_out_aa(T420, .(T694, T698))) → U105_ag(T412, T405, T406, T694, T696, p194_in_gaaag(T694, T697, T699, T698, T696))
U105_ag(T412, T405, T406, T694, T696, p194_out_gaaag(T694, T697, T699, T698, T696)) → ms1_out_ag(.(T412, .(T405, T406)), .(T694, T696))
MERGE54_IN_AAG(.(T139, T145), .(T146, T147), .(T139, X226)) → U15_AAG(T139, T145, T146, T147, X226, less70_in_ga(T139, T146))
U15_AAG(T139, T145, T146, T147, X226, less70_out_ga(T139, T146)) → MERGE54_IN_AAG(T145, .(T146, T147), X226)
MERGE54_IN_AAG(.(T202, T203), .(T196, T204), .(T196, X287)) → U18_AAG(T202, T203, T196, T204, X287, less78_in_ga(T196, T202))
U18_AAG(T202, T203, T196, T204, X287, less78_out_ga(T196, T202)) → MERGE54_IN_AAG(.(T202, T203), T204, X287)
less70_in_ga(0, T154) → less70_out_ga(0, T154)
less70_in_ga(s(T161), T162) → U22_ga(T161, T162, less78_in_ga(T161, T162))
less78_in_ga(0, s(T169)) → less78_out_ga(0, s(T169))
less78_in_ga(s(T176), s(T177)) → U20_ga(T176, T177, less78_in_ga(T176, T177))
U22_ga(T161, T162, less78_out_ga(T161, T162)) → less70_out_ga(s(T161), T162)
U20_ga(T176, T177, less78_out_ga(T176, T177)) → less78_out_ga(s(T176), s(T177))
MERGE54_IN_AAG(.(T139, X226)) → U15_AAG(T139, X226, less70_in_ga(T139))
U15_AAG(T139, X226, less70_out_ga(T139)) → MERGE54_IN_AAG(X226)
MERGE54_IN_AAG(.(T196, X287)) → U18_AAG(T196, X287, less78_in_ga(T196))
U18_AAG(T196, X287, less78_out_ga(T196)) → MERGE54_IN_AAG(X287)
less70_in_ga(0) → less70_out_ga(0)
less70_in_ga(s(T161)) → U22_ga(T161, less78_in_ga(T161))
less78_in_ga(0) → less78_out_ga(0)
less78_in_ga(s(T176)) → U20_ga(T176, less78_in_ga(T176))
U22_ga(T161, less78_out_ga(T161)) → less70_out_ga(s(T161))
U20_ga(T176, less78_out_ga(T176)) → less78_out_ga(s(T176))
less70_in_ga(x0)
less78_in_ga(x0)
U22_ga(x0, x1)
U20_ga(x0, x1)
From the DPs we obtained the following set of size-change graphs:
LESS78_IN_AA(s(T176), s(T177)) → LESS78_IN_AA(T176, T177)
ms1_in_ag([], []) → ms1_out_ag([], [])
ms1_in_ag(.(T29, .(T27, T28)), []) → U35_ag(T29, T27, T28, split12_in_aaaa(T27, T28, X42, X41))
split12_in_aaaa(T42, T44, .(T42, X71), X72) → U2_aaaa(T42, T44, X71, X72, split16_in_aaa(T44, X72, X71))
split16_in_aaa([], [], []) → split16_out_aaa([], [], [])
split16_in_aaa(.(T49, T51), .(T49, X89), X90) → U1_aaa(T49, T51, X89, X90, split16_in_aaa(T51, X90, X89))
U1_aaa(T49, T51, X89, X90, split16_out_aaa(T51, X90, X89)) → split16_out_aaa(.(T49, T51), .(T49, X89), X90)
U2_aaaa(T42, T44, X71, X72, split16_out_aaa(T44, X72, X71)) → split12_out_aaaa(T42, T44, .(T42, X71), X72)
U35_ag(T29, T27, T28, split12_out_aaaa(T27, T28, X42, X41)) → ms1_out_ag(.(T29, .(T27, T28)), [])
ms1_in_ag(.(T34, .(T27, T28)), []) → U36_ag(T34, T27, T28, split12_in_aaaa(T27, T28, T32, T33))
U36_ag(T34, T27, T28, split12_out_aaaa(T27, T28, T32, T33)) → U37_ag(T34, T27, T28, ms25_in_aaa(T34, T33, X13))
ms25_in_aaa(T62, [], .(T62, [])) → ms25_out_aaa(T62, [], .(T62, []))
ms25_in_aaa(T72, .(T73, T74), X127) → U21_aaa(T72, T73, T74, X127, p34_in_aaaaaaaa(T72, T73, T74, X123, X124, X125, X126, X127))
p34_in_aaaaaaaa(T72, T73, T74, X123, X124, X125, X126, X127) → U3_aaaaaaaa(T72, T73, T74, X123, X124, X125, X126, X127, split12_in_aaaa(T72, .(T73, T74), X123, X124))
U3_aaaaaaaa(T72, T73, T74, X123, X124, X125, X126, X127, split12_out_aaaa(T72, .(T73, T74), X123, X124)) → p34_out_aaaaaaaa(T72, T73, T74, X123, X124, X125, X126, X127)
p34_in_aaaaaaaa(T72, T73, T74, T78, T79, X125, X126, X127) → U4_aaaaaaaa(T72, T73, T74, T78, T79, X125, X126, X127, split12_in_aaaa(T72, .(T73, T74), T78, T79))
U4_aaaaaaaa(T72, T73, T74, T78, T79, X125, X126, X127, split12_out_aaaa(T72, .(T73, T74), T78, T79)) → U5_aaaaaaaa(T72, T73, T74, T78, T79, X125, X126, X127, ms38_in_aa(T78, X125))
ms38_in_aa([], []) → ms38_out_aa([], [])
ms38_in_aa(.(T89, []), .(T89, [])) → ms38_out_aa(.(T89, []), .(T89, []))
ms38_in_aa(.(T99, .(T100, T101)), X172) → U13_aa(T99, T100, T101, X172, p34_in_aaaaaaaa(T99, T100, T101, X168, X169, X170, X171, X172))
p34_in_aaaaaaaa(T72, T73, T74, T78, T84, T83, X126, X127) → U6_aaaaaaaa(T72, T73, T74, T78, T84, T83, X126, X127, split12_in_aaaa(T72, .(T73, T74), T78, T84))
U6_aaaaaaaa(T72, T73, T74, T78, T84, T83, X126, X127, split12_out_aaaa(T72, .(T73, T74), T78, T84)) → U7_aaaaaaaa(T72, T73, T74, T78, T84, T83, X126, X127, ms38_in_aa(T78, T83))
U7_aaaaaaaa(T72, T73, T74, T78, T84, T83, X126, X127, ms38_out_aa(T78, T83)) → U8_aaaaaaaa(T72, T73, T74, T78, T84, T83, X126, X127, ms38_in_aa(T84, X126))
U8_aaaaaaaa(T72, T73, T74, T78, T84, T83, X126, X127, ms38_out_aa(T84, X126)) → p34_out_aaaaaaaa(T72, T73, T74, T78, T84, T83, X126, X127)
p34_in_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127) → U9_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127, split12_in_aaaa(T72, .(T73, T74), T78, T84))
U9_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127, split12_out_aaaa(T72, .(T73, T74), T78, T84)) → U10_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127, ms38_in_aa(T78, T106))
U10_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127, ms38_out_aa(T78, T106)) → U11_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127, ms38_in_aa(T84, T105))
U11_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127, ms38_out_aa(T84, T105)) → U12_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127, merge54_in_aaa(T106, T105, X127))
merge54_in_aaa([], T113, T113) → merge54_out_aaa([], T113, T113)
merge54_in_aaa(T118, [], T118) → merge54_out_aaa(T118, [], T118)
merge54_in_aaa(.(T139, T141), .(T140, T142), .(T139, X226)) → U14_aaa(T139, T141, T140, T142, X226, less70_in_aa(T139, T140))
less70_in_aa(0, T154) → less70_out_aa(0, T154)
less70_in_aa(s(T161), T162) → U22_aa(T161, T162, less78_in_aa(T161, T162))
less78_in_aa(0, s(T169)) → less78_out_aa(0, s(T169))
less78_in_aa(s(T176), s(T177)) → U20_aa(T176, T177, less78_in_aa(T176, T177))
U20_aa(T176, T177, less78_out_aa(T176, T177)) → less78_out_aa(s(T176), s(T177))
U22_aa(T161, T162, less78_out_aa(T161, T162)) → less70_out_aa(s(T161), T162)
U14_aaa(T139, T141, T140, T142, X226, less70_out_aa(T139, T140)) → merge54_out_aaa(.(T139, T141), .(T140, T142), .(T139, X226))
merge54_in_aaa(.(T139, T145), .(T146, T147), .(T139, X226)) → U15_aaa(T139, T145, T146, T147, X226, less70_in_aa(T139, T146))
U15_aaa(T139, T145, T146, T147, X226, less70_out_aa(T139, T146)) → U16_aaa(T139, T145, T146, T147, X226, merge54_in_aaa(T145, .(T146, T147), X226))
merge54_in_aaa(.(T197, T199), .(T196, T198), .(T196, X287)) → U17_aaa(T197, T199, T196, T198, X287, less78_in_aa(T196, T197))
U17_aaa(T197, T199, T196, T198, X287, less78_out_aa(T196, T197)) → merge54_out_aaa(.(T197, T199), .(T196, T198), .(T196, X287))
merge54_in_aaa(.(T202, T203), .(T196, T204), .(T196, X287)) → U18_aaa(T202, T203, T196, T204, X287, less78_in_aa(T196, T202))
U18_aaa(T202, T203, T196, T204, X287, less78_out_aa(T196, T202)) → U19_aaa(T202, T203, T196, T204, X287, merge54_in_aaa(.(T202, T203), T204, X287))
U19_aaa(T202, T203, T196, T204, X287, merge54_out_aaa(.(T202, T203), T204, X287)) → merge54_out_aaa(.(T202, T203), .(T196, T204), .(T196, X287))
U16_aaa(T139, T145, T146, T147, X226, merge54_out_aaa(T145, .(T146, T147), X226)) → merge54_out_aaa(.(T139, T145), .(T146, T147), .(T139, X226))
U12_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127, merge54_out_aaa(T106, T105, X127)) → p34_out_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127)
U13_aa(T99, T100, T101, X172, p34_out_aaaaaaaa(T99, T100, T101, X168, X169, X170, X171, X172)) → ms38_out_aa(.(T99, .(T100, T101)), X172)
U5_aaaaaaaa(T72, T73, T74, T78, T79, X125, X126, X127, ms38_out_aa(T78, X125)) → p34_out_aaaaaaaa(T72, T73, T74, T78, T79, X125, X126, X127)
U21_aaa(T72, T73, T74, X127, p34_out_aaaaaaaa(T72, T73, T74, X123, X124, X125, X126, X127)) → ms25_out_aaa(T72, .(T73, T74), X127)
U37_ag(T34, T27, T28, ms25_out_aaa(T34, T33, X13)) → ms1_out_ag(.(T34, .(T27, T28)), [])
ms1_in_ag(.(T34, .(T27, T28)), []) → U38_ag(T34, T27, T28, split12_in_aaaa(T27, T28, T55, T33))
U38_ag(T34, T27, T28, split12_out_aaaa(T27, T28, T55, T33)) → U39_ag(T34, T27, T28, T55, ms25_in_aaa(T34, T33, T54))
U39_ag(T34, T27, T28, T55, ms25_out_aaa(T34, T33, T54)) → U40_ag(T34, T27, T28, ms38_in_aa(T55, X14))
U40_ag(T34, T27, T28, ms38_out_aa(T55, X14)) → ms1_out_ag(.(T34, .(T27, T28)), [])
U38_ag(T34, T27, T28, split12_out_aaaa(T27, T28, T55, T33)) → U41_ag(T34, T27, T28, T55, ms25_in_aaa(T34, T33, T212))
U41_ag(T34, T27, T28, T55, ms25_out_aaa(T34, T33, T212)) → U42_ag(T34, T27, T28, T212, ms38_in_aa(T55, T211))
U42_ag(T34, T27, T28, T212, ms38_out_aa(T55, T211)) → U43_ag(T34, T27, T28, merge93_in_aa(T212, T211))
merge93_in_aa([], []) → merge93_out_aa([], [])
U43_ag(T34, T27, T28, merge93_out_aa(T212, T211)) → ms1_out_ag(.(T34, .(T27, T28)), [])
ms1_in_ag(.(T234, []), .(T234, [])) → ms1_out_ag(.(T234, []), .(T234, []))
ms1_in_ag(.(T262, .(T260, T261)), .(T242, [])) → U44_ag(T262, T260, T261, T242, split12_in_aaaa(T260, T261, X367, X366))
U44_ag(T262, T260, T261, T242, split12_out_aaaa(T260, T261, X367, X366)) → ms1_out_ag(.(T262, .(T260, T261)), .(T242, []))
ms1_in_ag(.(T267, .(T260, T261)), .(T242, [])) → U45_ag(T267, T260, T261, T242, split12_in_aaaa(T260, T261, T265, T266))
U45_ag(T267, T260, T261, T242, split12_out_aaaa(T260, T261, T265, T266)) → U46_ag(T267, T260, T261, T242, ms25_in_aaa(T267, T266, X338))
U46_ag(T267, T260, T261, T242, ms25_out_aaa(T267, T266, X338)) → ms1_out_ag(.(T267, .(T260, T261)), .(T242, []))
ms1_in_ag(.(T267, .(T260, T261)), .(T242, [])) → U47_ag(T267, T260, T261, T242, split12_in_aaaa(T260, T261, T273, T266))
U47_ag(T267, T260, T261, T242, split12_out_aaaa(T260, T261, T273, T266)) → U48_ag(T267, T260, T261, T242, T273, ms25_in_aaa(T267, T266, T272))
U48_ag(T267, T260, T261, T242, T273, ms25_out_aaa(T267, T266, T272)) → U49_ag(T267, T260, T261, T242, ms38_in_aa(T273, X339))
U49_ag(T267, T260, T261, T242, ms38_out_aa(T273, X339)) → ms1_out_ag(.(T267, .(T260, T261)), .(T242, []))
ms1_in_ag(.(T267, .(T260, T261)), .(T291, [])) → U50_ag(T267, T260, T261, T291, split12_in_aaaa(T260, T261, T273, T266))
U50_ag(T267, T260, T261, T291, split12_out_aaaa(T260, T261, T273, T266)) → U51_ag(T267, T260, T261, T291, T273, ms25_in_aag(T267, T266, []))
ms25_in_aag(T62, [], .(T62, [])) → ms25_out_aag(T62, [], .(T62, []))
ms25_in_aag(T72, .(T73, T74), X127) → U21_aag(T72, T73, T74, X127, p34_in_aaaaaaag(T72, T73, T74, X123, X124, X125, X126, X127))
p34_in_aaaaaaag(T72, T73, T74, X123, X124, X125, X126, X127) → U3_aaaaaaag(T72, T73, T74, X123, X124, X125, X126, X127, split12_in_aaaa(T72, .(T73, T74), X123, X124))
U3_aaaaaaag(T72, T73, T74, X123, X124, X125, X126, X127, split12_out_aaaa(T72, .(T73, T74), X123, X124)) → p34_out_aaaaaaag(T72, T73, T74, X123, X124, X125, X126, X127)
p34_in_aaaaaaag(T72, T73, T74, T78, T79, X125, X126, X127) → U4_aaaaaaag(T72, T73, T74, T78, T79, X125, X126, X127, split12_in_aaaa(T72, .(T73, T74), T78, T79))
U4_aaaaaaag(T72, T73, T74, T78, T79, X125, X126, X127, split12_out_aaaa(T72, .(T73, T74), T78, T79)) → U5_aaaaaaag(T72, T73, T74, T78, T79, X125, X126, X127, ms38_in_aa(T78, X125))
U5_aaaaaaag(T72, T73, T74, T78, T79, X125, X126, X127, ms38_out_aa(T78, X125)) → p34_out_aaaaaaag(T72, T73, T74, T78, T79, X125, X126, X127)
p34_in_aaaaaaag(T72, T73, T74, T78, T84, T83, X126, X127) → U6_aaaaaaag(T72, T73, T74, T78, T84, T83, X126, X127, split12_in_aaaa(T72, .(T73, T74), T78, T84))
U6_aaaaaaag(T72, T73, T74, T78, T84, T83, X126, X127, split12_out_aaaa(T72, .(T73, T74), T78, T84)) → U7_aaaaaaag(T72, T73, T74, T78, T84, T83, X126, X127, ms38_in_aa(T78, T83))
U7_aaaaaaag(T72, T73, T74, T78, T84, T83, X126, X127, ms38_out_aa(T78, T83)) → U8_aaaaaaag(T72, T73, T74, T78, T84, T83, X126, X127, ms38_in_aa(T84, X126))
U8_aaaaaaag(T72, T73, T74, T78, T84, T83, X126, X127, ms38_out_aa(T84, X126)) → p34_out_aaaaaaag(T72, T73, T74, T78, T84, T83, X126, X127)
p34_in_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127) → U9_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127, split12_in_aaaa(T72, .(T73, T74), T78, T84))
U9_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127, split12_out_aaaa(T72, .(T73, T74), T78, T84)) → U10_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127, ms38_in_aa(T78, T106))
U10_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127, ms38_out_aa(T78, T106)) → U11_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127, ms38_in_aa(T84, T105))
U11_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127, ms38_out_aa(T84, T105)) → U12_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127, merge54_in_aag(T106, T105, X127))
merge54_in_aag([], T113, T113) → merge54_out_aag([], T113, T113)
merge54_in_aag(T118, [], T118) → merge54_out_aag(T118, [], T118)
merge54_in_aag(.(T139, T141), .(T140, T142), .(T139, X226)) → U14_aag(T139, T141, T140, T142, X226, less70_in_ga(T139, T140))
less70_in_ga(0, T154) → less70_out_ga(0, T154)
less70_in_ga(s(T161), T162) → U22_ga(T161, T162, less78_in_ga(T161, T162))
less78_in_ga(0, s(T169)) → less78_out_ga(0, s(T169))
less78_in_ga(s(T176), s(T177)) → U20_ga(T176, T177, less78_in_ga(T176, T177))
U20_ga(T176, T177, less78_out_ga(T176, T177)) → less78_out_ga(s(T176), s(T177))
U22_ga(T161, T162, less78_out_ga(T161, T162)) → less70_out_ga(s(T161), T162)
U14_aag(T139, T141, T140, T142, X226, less70_out_ga(T139, T140)) → merge54_out_aag(.(T139, T141), .(T140, T142), .(T139, X226))
merge54_in_aag(.(T139, T145), .(T146, T147), .(T139, X226)) → U15_aag(T139, T145, T146, T147, X226, less70_in_ga(T139, T146))
U15_aag(T139, T145, T146, T147, X226, less70_out_ga(T139, T146)) → U16_aag(T139, T145, T146, T147, X226, merge54_in_aag(T145, .(T146, T147), X226))
merge54_in_aag(.(T197, T199), .(T196, T198), .(T196, X287)) → U17_aag(T197, T199, T196, T198, X287, less78_in_ga(T196, T197))
U17_aag(T197, T199, T196, T198, X287, less78_out_ga(T196, T197)) → merge54_out_aag(.(T197, T199), .(T196, T198), .(T196, X287))
merge54_in_aag(.(T202, T203), .(T196, T204), .(T196, X287)) → U18_aag(T202, T203, T196, T204, X287, less78_in_ga(T196, T202))
U18_aag(T202, T203, T196, T204, X287, less78_out_ga(T196, T202)) → U19_aag(T202, T203, T196, T204, X287, merge54_in_aag(.(T202, T203), T204, X287))
U19_aag(T202, T203, T196, T204, X287, merge54_out_aag(.(T202, T203), T204, X287)) → merge54_out_aag(.(T202, T203), .(T196, T204), .(T196, X287))
U16_aag(T139, T145, T146, T147, X226, merge54_out_aag(T145, .(T146, T147), X226)) → merge54_out_aag(.(T139, T145), .(T146, T147), .(T139, X226))
U12_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127, merge54_out_aag(T106, T105, X127)) → p34_out_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127)
U21_aag(T72, T73, T74, X127, p34_out_aaaaaaag(T72, T73, T74, X123, X124, X125, X126, X127)) → ms25_out_aag(T72, .(T73, T74), X127)
U51_ag(T267, T260, T261, T291, T273, ms25_out_aag(T267, T266, [])) → U52_ag(T267, T260, T261, T291, ms38_in_ag(T273, .(T291, [])))
ms38_in_ag([], []) → ms38_out_ag([], [])
ms38_in_ag(.(T89, []), .(T89, [])) → ms38_out_ag(.(T89, []), .(T89, []))
ms38_in_ag(.(T99, .(T100, T101)), X172) → U13_ag(T99, T100, T101, X172, p34_in_aaaaaaag(T99, T100, T101, X168, X169, X170, X171, X172))
U13_ag(T99, T100, T101, X172, p34_out_aaaaaaag(T99, T100, T101, X168, X169, X170, X171, X172)) → ms38_out_ag(.(T99, .(T100, T101)), X172)
U52_ag(T267, T260, T261, T291, ms38_out_ag(T273, .(T291, []))) → ms1_out_ag(.(T267, .(T260, T261)), .(T291, []))
ms1_in_ag(.(T267, .(T260, T261)), .(T301, [])) → U53_ag(T267, T260, T261, T301, split12_in_aaaa(T260, T261, T273, T266))
U53_ag(T267, T260, T261, T301, split12_out_aaaa(T260, T261, T273, T266)) → U54_ag(T267, T260, T261, T301, T273, ms25_in_aag(T267, T266, .(T301, [])))
U54_ag(T267, T260, T261, T301, T273, ms25_out_aag(T267, T266, .(T301, []))) → U55_ag(T267, T260, T261, T301, ms38_in_ag(T273, []))
U55_ag(T267, T260, T261, T301, ms38_out_ag(T273, [])) → ms1_out_ag(.(T267, .(T260, T261)), .(T301, []))
ms1_in_ag(.(T267, .(T260, T261)), .(T318, [])) → U56_ag(T267, T260, T261, T318, split12_in_aaaa(T260, T261, T273, T266))
U56_ag(T267, T260, T261, T318, split12_out_aaaa(T260, T261, T273, T266)) → U57_ag(T267, T260, T261, T318, T273, ms25_in_aaa(T267, T266, .(T318, T323)))
U57_ag(T267, T260, T261, T318, T273, ms25_out_aaa(T267, T266, .(T318, T323))) → U58_ag(T267, T260, T261, T318, ms38_in_aa(T273, .(T322, T324)))
U58_ag(T267, T260, T261, T318, ms38_out_aa(T273, .(T322, T324))) → U59_ag(T267, T260, T261, T318, less70_in_ga(T318, T322))
U59_ag(T267, T260, T261, T318, less70_out_ga(T318, T322)) → ms1_out_ag(.(T267, .(T260, T261)), .(T318, []))
U56_ag(T267, T260, T261, T318, split12_out_aaaa(T260, T261, T273, T266)) → U60_ag(T267, T260, T261, T318, T273, ms25_in_aaa(T267, T266, .(T318, T327)))
U60_ag(T267, T260, T261, T318, T273, ms25_out_aaa(T267, T266, .(T318, T327))) → U61_ag(T267, T260, T261, T318, T327, ms38_in_aa(T273, .(T328, T329)))
U61_ag(T267, T260, T261, T318, T327, ms38_out_aa(T273, .(T328, T329))) → U62_ag(T267, T260, T261, T318, T327, T328, T329, less70_in_ga(T318, T328))
U62_ag(T267, T260, T261, T318, T327, T328, T329, less70_out_ga(T318, T328)) → U63_ag(T267, T260, T261, T318, merge93_in_aa(T327, .(T328, T329)))
U63_ag(T267, T260, T261, T318, merge93_out_aa(T327, .(T328, T329))) → ms1_out_ag(.(T267, .(T260, T261)), .(T318, []))
ms1_in_ag(.(T267, .(T260, T261)), .(T356, [])) → U64_ag(T267, T260, T261, T356, split12_in_aaaa(T260, T261, T273, T266))
U64_ag(T267, T260, T261, T356, split12_out_aaaa(T260, T261, T273, T266)) → U65_ag(T267, T260, T261, T356, T273, ms25_in_aaa(T267, T266, .(T358, T360)))
U65_ag(T267, T260, T261, T356, T273, ms25_out_aaa(T267, T266, .(T358, T360))) → U66_ag(T267, T260, T261, T356, T358, ms38_in_aa(T273, .(T356, T359)))
U66_ag(T267, T260, T261, T356, T358, ms38_out_aa(T273, .(T356, T359))) → U67_ag(T267, T260, T261, T356, less78_in_ga(T356, T358))
U67_ag(T267, T260, T261, T356, less78_out_ga(T356, T358)) → ms1_out_ag(.(T267, .(T260, T261)), .(T356, []))
U64_ag(T267, T260, T261, T356, split12_out_aaaa(T260, T261, T273, T266)) → U68_ag(T267, T260, T261, T356, T273, ms25_in_aaa(T267, T266, .(T363, T364)))
U68_ag(T267, T260, T261, T356, T273, ms25_out_aaa(T267, T266, .(T363, T364))) → U69_ag(T267, T260, T261, T356, T363, T364, ms38_in_aa(T273, .(T356, T365)))
U69_ag(T267, T260, T261, T356, T363, T364, ms38_out_aa(T273, .(T356, T365))) → U70_ag(T267, T260, T261, T356, T363, T364, T365, less78_in_ga(T356, T363))
U70_ag(T267, T260, T261, T356, T363, T364, T365, less78_out_ga(T356, T363)) → U71_ag(T267, T260, T261, T356, merge93_in_aa(.(T363, T364), T365))
U71_ag(T267, T260, T261, T356, merge93_out_aa(.(T363, T364), T365)) → ms1_out_ag(.(T267, .(T260, T261)), .(T356, []))
ms1_in_ag(.(T407, .(T405, T406)), T387) → U72_ag(T407, T405, T406, T387, split12_in_aaaa(T405, T406, X523, X522))
U72_ag(T407, T405, T406, T387, split12_out_aaaa(T405, T406, X523, X522)) → ms1_out_ag(.(T407, .(T405, T406)), T387)
ms1_in_ag(.(T412, .(T405, T406)), T387) → U73_ag(T412, T405, T406, T387, split12_in_aaaa(T405, T406, T410, T411))
U73_ag(T412, T405, T406, T387, split12_out_aaaa(T405, T406, T410, T411)) → U74_ag(T412, T405, T406, T387, ms25_in_aaa(T412, T411, X494))
U74_ag(T412, T405, T406, T387, ms25_out_aaa(T412, T411, X494)) → ms1_out_ag(.(T412, .(T405, T406)), T387)
ms1_in_ag(.(T412, .(T405, T406)), T387) → U75_ag(T412, T405, T406, T387, split12_in_aaaa(T405, T406, T420, T411))
U75_ag(T412, T405, T406, T387, split12_out_aaaa(T405, T406, T420, T411)) → U76_ag(T412, T405, T406, T387, T420, ms25_in_aaa(T412, T411, T419))
U76_ag(T412, T405, T406, T387, T420, ms25_out_aaa(T412, T411, T419)) → U77_ag(T412, T405, T406, T387, ms38_in_aa(T420, X495))
U77_ag(T412, T405, T406, T387, ms38_out_aa(T420, X495)) → ms1_out_ag(.(T412, .(T405, T406)), T387)
ms1_in_ag(.(T412, .(T405, T406)), T435) → U78_ag(T412, T405, T406, T435, split12_in_aaaa(T405, T406, T420, T411))
U78_ag(T412, T405, T406, T435, split12_out_aaaa(T405, T406, T420, T411)) → U79_ag(T412, T405, T406, T435, T420, ms25_in_aag(T412, T411, []))
U79_ag(T412, T405, T406, T435, T420, ms25_out_aag(T412, T411, [])) → U80_ag(T412, T405, T406, T435, ms38_in_ag(T420, T435))
U80_ag(T412, T405, T406, T435, ms38_out_ag(T420, T435)) → ms1_out_ag(.(T412, .(T405, T406)), T435)
ms1_in_ag(.(T412, .(T405, T406)), T440) → U81_ag(T412, T405, T406, T440, split12_in_aaaa(T405, T406, T420, T411))
U81_ag(T412, T405, T406, T440, split12_out_aaaa(T405, T406, T420, T411)) → U82_ag(T412, T405, T406, T440, T420, ms25_in_aag(T412, T411, T440))
U82_ag(T412, T405, T406, T440, T420, ms25_out_aag(T412, T411, T440)) → U83_ag(T412, T405, T406, T440, ms38_in_ag(T420, []))
U83_ag(T412, T405, T406, T440, ms38_out_ag(T420, [])) → ms1_out_ag(.(T412, .(T405, T406)), T440)
ms1_in_ag(.(T412, .(T405, T406)), .(T461, T465)) → U84_ag(T412, T405, T406, T461, T465, split12_in_aaaa(T405, T406, T420, T411))
U84_ag(T412, T405, T406, T461, T465, split12_out_aaaa(T405, T406, T420, T411)) → U85_ag(T412, T405, T406, T461, T465, T420, ms25_in_aaa(T412, T411, .(T461, T467)))
U85_ag(T412, T405, T406, T461, T465, T420, ms25_out_aaa(T412, T411, .(T461, T467))) → U86_ag(T412, T405, T406, T461, T465, ms38_in_aa(T420, .(T466, T468)))
U86_ag(T412, T405, T406, T461, T465, ms38_out_aa(T420, .(T466, T468))) → U87_ag(T412, T405, T406, T461, T465, less70_in_ga(T461, T466))
U87_ag(T412, T405, T406, T461, T465, less70_out_ga(T461, T466)) → ms1_out_ag(.(T412, .(T405, T406)), .(T461, T465))
ms1_in_ag(.(T412, .(T405, T406)), .(T461, .(T490, T491))) → U88_ag(T412, T405, T406, T461, T490, T491, split12_in_aaaa(T405, T406, T420, T411))
U88_ag(T412, T405, T406, T461, T490, T491, split12_out_aaaa(T405, T406, T420, T411)) → U89_ag(T412, T405, T406, T461, T490, T491, T420, ms25_in_aag(T412, T411, .(T461, [])))
U89_ag(T412, T405, T406, T461, T490, T491, T420, ms25_out_aag(T412, T411, .(T461, []))) → U90_ag(T412, T405, T406, T461, T490, T491, ms38_in_ag(T420, .(T490, T491)))
U90_ag(T412, T405, T406, T461, T490, T491, ms38_out_ag(T420, .(T490, T491))) → U91_ag(T412, T405, T406, T461, T490, T491, less70_in_gg(T461, T490))
less70_in_gg(0, T154) → less70_out_gg(0, T154)
less70_in_gg(s(T161), T162) → U22_gg(T161, T162, less78_in_gg(T161, T162))
less78_in_gg(0, s(T169)) → less78_out_gg(0, s(T169))
less78_in_gg(s(T176), s(T177)) → U20_gg(T176, T177, less78_in_gg(T176, T177))
U20_gg(T176, T177, less78_out_gg(T176, T177)) → less78_out_gg(s(T176), s(T177))
U22_gg(T161, T162, less78_out_gg(T161, T162)) → less70_out_gg(s(T161), T162)
U91_ag(T412, T405, T406, T461, T490, T491, less70_out_gg(T461, T490)) → ms1_out_ag(.(T412, .(T405, T406)), .(T461, .(T490, T491)))
ms1_in_ag(.(T412, .(T405, T406)), .(T461, .(T513, T517))) → U92_ag(T412, T405, T406, T461, T513, T517, split12_in_aaaa(T405, T406, T420, T411))
U92_ag(T412, T405, T406, T461, T513, T517, split12_out_aaaa(T405, T406, T420, T411)) → U93_ag(T412, T405, T406, T461, T513, T517, T420, ms25_in_aaa(T412, T411, .(T461, .(T513, T519))))
U93_ag(T412, T405, T406, T461, T513, T517, T420, ms25_out_aaa(T412, T411, .(T461, .(T513, T519)))) → U94_ag(T412, T405, T406, T461, T513, T517, T519, ms38_in_aa(T420, .(T518, T520)))
U94_ag(T412, T405, T406, T461, T513, T517, T519, ms38_out_aa(T420, .(T518, T520))) → U95_ag(T412, T405, T406, T461, T513, T517, T519, T518, T520, less70_in_ga(T461, T518))
U95_ag(T412, T405, T406, T461, T513, T517, T519, T518, T520, less70_out_ga(T461, T518)) → U96_ag(T412, T405, T406, T461, T513, T517, p179_in_gaaag(T513, T518, T519, T520, T517))
p179_in_gaaag(T513, T518, T519, T520, T517) → U23_gaaag(T513, T518, T519, T520, T517, less70_in_ga(T513, T518))
U23_gaaag(T513, T518, T519, T520, T517, less70_out_ga(T513, T518)) → p179_out_gaaag(T513, T518, T519, T520, T517)
p179_in_gaaag(T513, T540, [], T541, .(T540, T541)) → U24_gaaag(T513, T540, T541, less70_in_gg(T513, T540))
U24_gaaag(T513, T540, T541, less70_out_gg(T513, T540)) → p179_out_gaaag(T513, T540, [], T541, .(T540, T541))
p179_in_gaaag(T513, T568, .(T563, T569), T570, .(T563, T567)) → U25_gaaag(T513, T568, T563, T569, T570, T567, less70_in_ga(T513, T568))
U25_gaaag(T513, T568, T563, T569, T570, T567, less70_out_ga(T513, T568)) → U26_gaaag(T513, T568, T563, T569, T570, T567, p179_in_gaaag(T563, T568, T569, T570, T567))
p179_in_gaaag(T513, T585, .(T588, T590), T589, .(T585, T587)) → U27_gaaag(T513, T585, T588, T590, T589, T587, less70_in_gg(T513, T585))
U27_gaaag(T513, T585, T588, T590, T589, T587, less70_out_gg(T513, T585)) → U28_gaaag(T513, T585, T588, T590, T589, T587, p194_in_gaaag(T585, T588, T590, T589, T587))
p194_in_gaaag(T585, T588, T590, T589, T587) → U29_gaaag(T585, T588, T590, T589, T587, less78_in_ga(T585, T588))
U29_gaaag(T585, T588, T590, T589, T587, less78_out_ga(T585, T588)) → p194_out_gaaag(T585, T588, T590, T589, T587)
p194_in_gaaag(T585, T610, T611, [], .(T610, T611)) → U30_gaaag(T585, T610, T611, less78_in_gg(T585, T610))
U30_gaaag(T585, T610, T611, less78_out_gg(T585, T610)) → p194_out_gaaag(T585, T610, T611, [], .(T610, T611))
p194_in_gaaag(T585, T632, T638, .(T637, T639), .(T632, T636)) → U31_gaaag(T585, T632, T638, T637, T639, T636, less78_in_gg(T585, T632))
U31_gaaag(T585, T632, T638, T637, T639, T636, less78_out_gg(T585, T632)) → U32_gaaag(T585, T632, T638, T637, T639, T636, p179_in_gaaag(T632, T637, T638, T639, T636))
U32_gaaag(T585, T632, T638, T637, T639, T636, p179_out_gaaag(T632, T637, T638, T639, T636)) → p194_out_gaaag(T585, T632, T638, .(T637, T639), .(T632, T636))
p194_in_gaaag(T585, T657, T659, .(T654, T658), .(T654, T656)) → U33_gaaag(T585, T657, T659, T654, T658, T656, less78_in_ga(T585, T657))
U33_gaaag(T585, T657, T659, T654, T658, T656, less78_out_ga(T585, T657)) → U34_gaaag(T585, T657, T659, T654, T658, T656, p194_in_gaaag(T654, T657, T659, T658, T656))
U34_gaaag(T585, T657, T659, T654, T658, T656, p194_out_gaaag(T654, T657, T659, T658, T656)) → p194_out_gaaag(T585, T657, T659, .(T654, T658), .(T654, T656))
U28_gaaag(T513, T585, T588, T590, T589, T587, p194_out_gaaag(T585, T588, T590, T589, T587)) → p179_out_gaaag(T513, T585, .(T588, T590), T589, .(T585, T587))
U26_gaaag(T513, T568, T563, T569, T570, T567, p179_out_gaaag(T563, T568, T569, T570, T567)) → p179_out_gaaag(T513, T568, .(T563, T569), T570, .(T563, T567))
U96_ag(T412, T405, T406, T461, T513, T517, p179_out_gaaag(T513, T518, T519, T520, T517)) → ms1_out_ag(.(T412, .(T405, T406)), .(T461, .(T513, T517)))
ms1_in_ag(.(T412, .(T405, T406)), .(T461, .(T674, T676))) → U97_ag(T412, T405, T406, T461, T674, T676, split12_in_aaaa(T405, T406, T420, T411))
U97_ag(T412, T405, T406, T461, T674, T676, split12_out_aaaa(T405, T406, T420, T411)) → U98_ag(T412, T405, T406, T461, T674, T676, T420, ms25_in_aaa(T412, T411, .(T461, .(T677, T679))))
U98_ag(T412, T405, T406, T461, T674, T676, T420, ms25_out_aaa(T412, T411, .(T461, .(T677, T679)))) → U99_ag(T412, T405, T406, T461, T674, T676, T677, T679, ms38_in_aa(T420, .(T674, T678)))
U99_ag(T412, T405, T406, T461, T674, T676, T677, T679, ms38_out_aa(T420, .(T674, T678))) → U100_ag(T412, T405, T406, T461, T674, T676, T677, T679, T678, less70_in_gg(T461, T674))
U100_ag(T412, T405, T406, T461, T674, T676, T677, T679, T678, less70_out_gg(T461, T674)) → U101_ag(T412, T405, T406, T461, T674, T676, p194_in_gaaag(T674, T677, T679, T678, T676))
U101_ag(T412, T405, T406, T461, T674, T676, p194_out_gaaag(T674, T677, T679, T678, T676)) → ms1_out_ag(.(T412, .(T405, T406)), .(T461, .(T674, T676)))
ms1_in_ag(.(T412, .(T405, T406)), .(T694, T696)) → U102_ag(T412, T405, T406, T694, T696, split12_in_aaaa(T405, T406, T420, T411))
U102_ag(T412, T405, T406, T694, T696, split12_out_aaaa(T405, T406, T420, T411)) → U103_ag(T412, T405, T406, T694, T696, T420, ms25_in_aaa(T412, T411, .(T697, T699)))
U103_ag(T412, T405, T406, T694, T696, T420, ms25_out_aaa(T412, T411, .(T697, T699))) → U104_ag(T412, T405, T406, T694, T696, T697, T699, ms38_in_aa(T420, .(T694, T698)))
U104_ag(T412, T405, T406, T694, T696, T697, T699, ms38_out_aa(T420, .(T694, T698))) → U105_ag(T412, T405, T406, T694, T696, p194_in_gaaag(T694, T697, T699, T698, T696))
U105_ag(T412, T405, T406, T694, T696, p194_out_gaaag(T694, T697, T699, T698, T696)) → ms1_out_ag(.(T412, .(T405, T406)), .(T694, T696))
LESS78_IN_AA(s(T176), s(T177)) → LESS78_IN_AA(T176, T177)
LESS78_IN_AA → LESS78_IN_AA
MERGE54_IN_AAA(.(T139, T145), .(T146, T147), .(T139, X226)) → U15_AAA(T139, T145, T146, T147, X226, less70_in_aa(T139, T146))
U15_AAA(T139, T145, T146, T147, X226, less70_out_aa(T139, T146)) → MERGE54_IN_AAA(T145, .(T146, T147), X226)
MERGE54_IN_AAA(.(T202, T203), .(T196, T204), .(T196, X287)) → U18_AAA(T202, T203, T196, T204, X287, less78_in_aa(T196, T202))
U18_AAA(T202, T203, T196, T204, X287, less78_out_aa(T196, T202)) → MERGE54_IN_AAA(.(T202, T203), T204, X287)
ms1_in_ag([], []) → ms1_out_ag([], [])
ms1_in_ag(.(T29, .(T27, T28)), []) → U35_ag(T29, T27, T28, split12_in_aaaa(T27, T28, X42, X41))
split12_in_aaaa(T42, T44, .(T42, X71), X72) → U2_aaaa(T42, T44, X71, X72, split16_in_aaa(T44, X72, X71))
split16_in_aaa([], [], []) → split16_out_aaa([], [], [])
split16_in_aaa(.(T49, T51), .(T49, X89), X90) → U1_aaa(T49, T51, X89, X90, split16_in_aaa(T51, X90, X89))
U1_aaa(T49, T51, X89, X90, split16_out_aaa(T51, X90, X89)) → split16_out_aaa(.(T49, T51), .(T49, X89), X90)
U2_aaaa(T42, T44, X71, X72, split16_out_aaa(T44, X72, X71)) → split12_out_aaaa(T42, T44, .(T42, X71), X72)
U35_ag(T29, T27, T28, split12_out_aaaa(T27, T28, X42, X41)) → ms1_out_ag(.(T29, .(T27, T28)), [])
ms1_in_ag(.(T34, .(T27, T28)), []) → U36_ag(T34, T27, T28, split12_in_aaaa(T27, T28, T32, T33))
U36_ag(T34, T27, T28, split12_out_aaaa(T27, T28, T32, T33)) → U37_ag(T34, T27, T28, ms25_in_aaa(T34, T33, X13))
ms25_in_aaa(T62, [], .(T62, [])) → ms25_out_aaa(T62, [], .(T62, []))
ms25_in_aaa(T72, .(T73, T74), X127) → U21_aaa(T72, T73, T74, X127, p34_in_aaaaaaaa(T72, T73, T74, X123, X124, X125, X126, X127))
p34_in_aaaaaaaa(T72, T73, T74, X123, X124, X125, X126, X127) → U3_aaaaaaaa(T72, T73, T74, X123, X124, X125, X126, X127, split12_in_aaaa(T72, .(T73, T74), X123, X124))
U3_aaaaaaaa(T72, T73, T74, X123, X124, X125, X126, X127, split12_out_aaaa(T72, .(T73, T74), X123, X124)) → p34_out_aaaaaaaa(T72, T73, T74, X123, X124, X125, X126, X127)
p34_in_aaaaaaaa(T72, T73, T74, T78, T79, X125, X126, X127) → U4_aaaaaaaa(T72, T73, T74, T78, T79, X125, X126, X127, split12_in_aaaa(T72, .(T73, T74), T78, T79))
U4_aaaaaaaa(T72, T73, T74, T78, T79, X125, X126, X127, split12_out_aaaa(T72, .(T73, T74), T78, T79)) → U5_aaaaaaaa(T72, T73, T74, T78, T79, X125, X126, X127, ms38_in_aa(T78, X125))
ms38_in_aa([], []) → ms38_out_aa([], [])
ms38_in_aa(.(T89, []), .(T89, [])) → ms38_out_aa(.(T89, []), .(T89, []))
ms38_in_aa(.(T99, .(T100, T101)), X172) → U13_aa(T99, T100, T101, X172, p34_in_aaaaaaaa(T99, T100, T101, X168, X169, X170, X171, X172))
p34_in_aaaaaaaa(T72, T73, T74, T78, T84, T83, X126, X127) → U6_aaaaaaaa(T72, T73, T74, T78, T84, T83, X126, X127, split12_in_aaaa(T72, .(T73, T74), T78, T84))
U6_aaaaaaaa(T72, T73, T74, T78, T84, T83, X126, X127, split12_out_aaaa(T72, .(T73, T74), T78, T84)) → U7_aaaaaaaa(T72, T73, T74, T78, T84, T83, X126, X127, ms38_in_aa(T78, T83))
U7_aaaaaaaa(T72, T73, T74, T78, T84, T83, X126, X127, ms38_out_aa(T78, T83)) → U8_aaaaaaaa(T72, T73, T74, T78, T84, T83, X126, X127, ms38_in_aa(T84, X126))
U8_aaaaaaaa(T72, T73, T74, T78, T84, T83, X126, X127, ms38_out_aa(T84, X126)) → p34_out_aaaaaaaa(T72, T73, T74, T78, T84, T83, X126, X127)
p34_in_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127) → U9_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127, split12_in_aaaa(T72, .(T73, T74), T78, T84))
U9_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127, split12_out_aaaa(T72, .(T73, T74), T78, T84)) → U10_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127, ms38_in_aa(T78, T106))
U10_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127, ms38_out_aa(T78, T106)) → U11_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127, ms38_in_aa(T84, T105))
U11_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127, ms38_out_aa(T84, T105)) → U12_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127, merge54_in_aaa(T106, T105, X127))
merge54_in_aaa([], T113, T113) → merge54_out_aaa([], T113, T113)
merge54_in_aaa(T118, [], T118) → merge54_out_aaa(T118, [], T118)
merge54_in_aaa(.(T139, T141), .(T140, T142), .(T139, X226)) → U14_aaa(T139, T141, T140, T142, X226, less70_in_aa(T139, T140))
less70_in_aa(0, T154) → less70_out_aa(0, T154)
less70_in_aa(s(T161), T162) → U22_aa(T161, T162, less78_in_aa(T161, T162))
less78_in_aa(0, s(T169)) → less78_out_aa(0, s(T169))
less78_in_aa(s(T176), s(T177)) → U20_aa(T176, T177, less78_in_aa(T176, T177))
U20_aa(T176, T177, less78_out_aa(T176, T177)) → less78_out_aa(s(T176), s(T177))
U22_aa(T161, T162, less78_out_aa(T161, T162)) → less70_out_aa(s(T161), T162)
U14_aaa(T139, T141, T140, T142, X226, less70_out_aa(T139, T140)) → merge54_out_aaa(.(T139, T141), .(T140, T142), .(T139, X226))
merge54_in_aaa(.(T139, T145), .(T146, T147), .(T139, X226)) → U15_aaa(T139, T145, T146, T147, X226, less70_in_aa(T139, T146))
U15_aaa(T139, T145, T146, T147, X226, less70_out_aa(T139, T146)) → U16_aaa(T139, T145, T146, T147, X226, merge54_in_aaa(T145, .(T146, T147), X226))
merge54_in_aaa(.(T197, T199), .(T196, T198), .(T196, X287)) → U17_aaa(T197, T199, T196, T198, X287, less78_in_aa(T196, T197))
U17_aaa(T197, T199, T196, T198, X287, less78_out_aa(T196, T197)) → merge54_out_aaa(.(T197, T199), .(T196, T198), .(T196, X287))
merge54_in_aaa(.(T202, T203), .(T196, T204), .(T196, X287)) → U18_aaa(T202, T203, T196, T204, X287, less78_in_aa(T196, T202))
U18_aaa(T202, T203, T196, T204, X287, less78_out_aa(T196, T202)) → U19_aaa(T202, T203, T196, T204, X287, merge54_in_aaa(.(T202, T203), T204, X287))
U19_aaa(T202, T203, T196, T204, X287, merge54_out_aaa(.(T202, T203), T204, X287)) → merge54_out_aaa(.(T202, T203), .(T196, T204), .(T196, X287))
U16_aaa(T139, T145, T146, T147, X226, merge54_out_aaa(T145, .(T146, T147), X226)) → merge54_out_aaa(.(T139, T145), .(T146, T147), .(T139, X226))
U12_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127, merge54_out_aaa(T106, T105, X127)) → p34_out_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127)
U13_aa(T99, T100, T101, X172, p34_out_aaaaaaaa(T99, T100, T101, X168, X169, X170, X171, X172)) → ms38_out_aa(.(T99, .(T100, T101)), X172)
U5_aaaaaaaa(T72, T73, T74, T78, T79, X125, X126, X127, ms38_out_aa(T78, X125)) → p34_out_aaaaaaaa(T72, T73, T74, T78, T79, X125, X126, X127)
U21_aaa(T72, T73, T74, X127, p34_out_aaaaaaaa(T72, T73, T74, X123, X124, X125, X126, X127)) → ms25_out_aaa(T72, .(T73, T74), X127)
U37_ag(T34, T27, T28, ms25_out_aaa(T34, T33, X13)) → ms1_out_ag(.(T34, .(T27, T28)), [])
ms1_in_ag(.(T34, .(T27, T28)), []) → U38_ag(T34, T27, T28, split12_in_aaaa(T27, T28, T55, T33))
U38_ag(T34, T27, T28, split12_out_aaaa(T27, T28, T55, T33)) → U39_ag(T34, T27, T28, T55, ms25_in_aaa(T34, T33, T54))
U39_ag(T34, T27, T28, T55, ms25_out_aaa(T34, T33, T54)) → U40_ag(T34, T27, T28, ms38_in_aa(T55, X14))
U40_ag(T34, T27, T28, ms38_out_aa(T55, X14)) → ms1_out_ag(.(T34, .(T27, T28)), [])
U38_ag(T34, T27, T28, split12_out_aaaa(T27, T28, T55, T33)) → U41_ag(T34, T27, T28, T55, ms25_in_aaa(T34, T33, T212))
U41_ag(T34, T27, T28, T55, ms25_out_aaa(T34, T33, T212)) → U42_ag(T34, T27, T28, T212, ms38_in_aa(T55, T211))
U42_ag(T34, T27, T28, T212, ms38_out_aa(T55, T211)) → U43_ag(T34, T27, T28, merge93_in_aa(T212, T211))
merge93_in_aa([], []) → merge93_out_aa([], [])
U43_ag(T34, T27, T28, merge93_out_aa(T212, T211)) → ms1_out_ag(.(T34, .(T27, T28)), [])
ms1_in_ag(.(T234, []), .(T234, [])) → ms1_out_ag(.(T234, []), .(T234, []))
ms1_in_ag(.(T262, .(T260, T261)), .(T242, [])) → U44_ag(T262, T260, T261, T242, split12_in_aaaa(T260, T261, X367, X366))
U44_ag(T262, T260, T261, T242, split12_out_aaaa(T260, T261, X367, X366)) → ms1_out_ag(.(T262, .(T260, T261)), .(T242, []))
ms1_in_ag(.(T267, .(T260, T261)), .(T242, [])) → U45_ag(T267, T260, T261, T242, split12_in_aaaa(T260, T261, T265, T266))
U45_ag(T267, T260, T261, T242, split12_out_aaaa(T260, T261, T265, T266)) → U46_ag(T267, T260, T261, T242, ms25_in_aaa(T267, T266, X338))
U46_ag(T267, T260, T261, T242, ms25_out_aaa(T267, T266, X338)) → ms1_out_ag(.(T267, .(T260, T261)), .(T242, []))
ms1_in_ag(.(T267, .(T260, T261)), .(T242, [])) → U47_ag(T267, T260, T261, T242, split12_in_aaaa(T260, T261, T273, T266))
U47_ag(T267, T260, T261, T242, split12_out_aaaa(T260, T261, T273, T266)) → U48_ag(T267, T260, T261, T242, T273, ms25_in_aaa(T267, T266, T272))
U48_ag(T267, T260, T261, T242, T273, ms25_out_aaa(T267, T266, T272)) → U49_ag(T267, T260, T261, T242, ms38_in_aa(T273, X339))
U49_ag(T267, T260, T261, T242, ms38_out_aa(T273, X339)) → ms1_out_ag(.(T267, .(T260, T261)), .(T242, []))
ms1_in_ag(.(T267, .(T260, T261)), .(T291, [])) → U50_ag(T267, T260, T261, T291, split12_in_aaaa(T260, T261, T273, T266))
U50_ag(T267, T260, T261, T291, split12_out_aaaa(T260, T261, T273, T266)) → U51_ag(T267, T260, T261, T291, T273, ms25_in_aag(T267, T266, []))
ms25_in_aag(T62, [], .(T62, [])) → ms25_out_aag(T62, [], .(T62, []))
ms25_in_aag(T72, .(T73, T74), X127) → U21_aag(T72, T73, T74, X127, p34_in_aaaaaaag(T72, T73, T74, X123, X124, X125, X126, X127))
p34_in_aaaaaaag(T72, T73, T74, X123, X124, X125, X126, X127) → U3_aaaaaaag(T72, T73, T74, X123, X124, X125, X126, X127, split12_in_aaaa(T72, .(T73, T74), X123, X124))
U3_aaaaaaag(T72, T73, T74, X123, X124, X125, X126, X127, split12_out_aaaa(T72, .(T73, T74), X123, X124)) → p34_out_aaaaaaag(T72, T73, T74, X123, X124, X125, X126, X127)
p34_in_aaaaaaag(T72, T73, T74, T78, T79, X125, X126, X127) → U4_aaaaaaag(T72, T73, T74, T78, T79, X125, X126, X127, split12_in_aaaa(T72, .(T73, T74), T78, T79))
U4_aaaaaaag(T72, T73, T74, T78, T79, X125, X126, X127, split12_out_aaaa(T72, .(T73, T74), T78, T79)) → U5_aaaaaaag(T72, T73, T74, T78, T79, X125, X126, X127, ms38_in_aa(T78, X125))
U5_aaaaaaag(T72, T73, T74, T78, T79, X125, X126, X127, ms38_out_aa(T78, X125)) → p34_out_aaaaaaag(T72, T73, T74, T78, T79, X125, X126, X127)
p34_in_aaaaaaag(T72, T73, T74, T78, T84, T83, X126, X127) → U6_aaaaaaag(T72, T73, T74, T78, T84, T83, X126, X127, split12_in_aaaa(T72, .(T73, T74), T78, T84))
U6_aaaaaaag(T72, T73, T74, T78, T84, T83, X126, X127, split12_out_aaaa(T72, .(T73, T74), T78, T84)) → U7_aaaaaaag(T72, T73, T74, T78, T84, T83, X126, X127, ms38_in_aa(T78, T83))
U7_aaaaaaag(T72, T73, T74, T78, T84, T83, X126, X127, ms38_out_aa(T78, T83)) → U8_aaaaaaag(T72, T73, T74, T78, T84, T83, X126, X127, ms38_in_aa(T84, X126))
U8_aaaaaaag(T72, T73, T74, T78, T84, T83, X126, X127, ms38_out_aa(T84, X126)) → p34_out_aaaaaaag(T72, T73, T74, T78, T84, T83, X126, X127)
p34_in_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127) → U9_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127, split12_in_aaaa(T72, .(T73, T74), T78, T84))
U9_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127, split12_out_aaaa(T72, .(T73, T74), T78, T84)) → U10_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127, ms38_in_aa(T78, T106))
U10_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127, ms38_out_aa(T78, T106)) → U11_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127, ms38_in_aa(T84, T105))
U11_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127, ms38_out_aa(T84, T105)) → U12_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127, merge54_in_aag(T106, T105, X127))
merge54_in_aag([], T113, T113) → merge54_out_aag([], T113, T113)
merge54_in_aag(T118, [], T118) → merge54_out_aag(T118, [], T118)
merge54_in_aag(.(T139, T141), .(T140, T142), .(T139, X226)) → U14_aag(T139, T141, T140, T142, X226, less70_in_ga(T139, T140))
less70_in_ga(0, T154) → less70_out_ga(0, T154)
less70_in_ga(s(T161), T162) → U22_ga(T161, T162, less78_in_ga(T161, T162))
less78_in_ga(0, s(T169)) → less78_out_ga(0, s(T169))
less78_in_ga(s(T176), s(T177)) → U20_ga(T176, T177, less78_in_ga(T176, T177))
U20_ga(T176, T177, less78_out_ga(T176, T177)) → less78_out_ga(s(T176), s(T177))
U22_ga(T161, T162, less78_out_ga(T161, T162)) → less70_out_ga(s(T161), T162)
U14_aag(T139, T141, T140, T142, X226, less70_out_ga(T139, T140)) → merge54_out_aag(.(T139, T141), .(T140, T142), .(T139, X226))
merge54_in_aag(.(T139, T145), .(T146, T147), .(T139, X226)) → U15_aag(T139, T145, T146, T147, X226, less70_in_ga(T139, T146))
U15_aag(T139, T145, T146, T147, X226, less70_out_ga(T139, T146)) → U16_aag(T139, T145, T146, T147, X226, merge54_in_aag(T145, .(T146, T147), X226))
merge54_in_aag(.(T197, T199), .(T196, T198), .(T196, X287)) → U17_aag(T197, T199, T196, T198, X287, less78_in_ga(T196, T197))
U17_aag(T197, T199, T196, T198, X287, less78_out_ga(T196, T197)) → merge54_out_aag(.(T197, T199), .(T196, T198), .(T196, X287))
merge54_in_aag(.(T202, T203), .(T196, T204), .(T196, X287)) → U18_aag(T202, T203, T196, T204, X287, less78_in_ga(T196, T202))
U18_aag(T202, T203, T196, T204, X287, less78_out_ga(T196, T202)) → U19_aag(T202, T203, T196, T204, X287, merge54_in_aag(.(T202, T203), T204, X287))
U19_aag(T202, T203, T196, T204, X287, merge54_out_aag(.(T202, T203), T204, X287)) → merge54_out_aag(.(T202, T203), .(T196, T204), .(T196, X287))
U16_aag(T139, T145, T146, T147, X226, merge54_out_aag(T145, .(T146, T147), X226)) → merge54_out_aag(.(T139, T145), .(T146, T147), .(T139, X226))
U12_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127, merge54_out_aag(T106, T105, X127)) → p34_out_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127)
U21_aag(T72, T73, T74, X127, p34_out_aaaaaaag(T72, T73, T74, X123, X124, X125, X126, X127)) → ms25_out_aag(T72, .(T73, T74), X127)
U51_ag(T267, T260, T261, T291, T273, ms25_out_aag(T267, T266, [])) → U52_ag(T267, T260, T261, T291, ms38_in_ag(T273, .(T291, [])))
ms38_in_ag([], []) → ms38_out_ag([], [])
ms38_in_ag(.(T89, []), .(T89, [])) → ms38_out_ag(.(T89, []), .(T89, []))
ms38_in_ag(.(T99, .(T100, T101)), X172) → U13_ag(T99, T100, T101, X172, p34_in_aaaaaaag(T99, T100, T101, X168, X169, X170, X171, X172))
U13_ag(T99, T100, T101, X172, p34_out_aaaaaaag(T99, T100, T101, X168, X169, X170, X171, X172)) → ms38_out_ag(.(T99, .(T100, T101)), X172)
U52_ag(T267, T260, T261, T291, ms38_out_ag(T273, .(T291, []))) → ms1_out_ag(.(T267, .(T260, T261)), .(T291, []))
ms1_in_ag(.(T267, .(T260, T261)), .(T301, [])) → U53_ag(T267, T260, T261, T301, split12_in_aaaa(T260, T261, T273, T266))
U53_ag(T267, T260, T261, T301, split12_out_aaaa(T260, T261, T273, T266)) → U54_ag(T267, T260, T261, T301, T273, ms25_in_aag(T267, T266, .(T301, [])))
U54_ag(T267, T260, T261, T301, T273, ms25_out_aag(T267, T266, .(T301, []))) → U55_ag(T267, T260, T261, T301, ms38_in_ag(T273, []))
U55_ag(T267, T260, T261, T301, ms38_out_ag(T273, [])) → ms1_out_ag(.(T267, .(T260, T261)), .(T301, []))
ms1_in_ag(.(T267, .(T260, T261)), .(T318, [])) → U56_ag(T267, T260, T261, T318, split12_in_aaaa(T260, T261, T273, T266))
U56_ag(T267, T260, T261, T318, split12_out_aaaa(T260, T261, T273, T266)) → U57_ag(T267, T260, T261, T318, T273, ms25_in_aaa(T267, T266, .(T318, T323)))
U57_ag(T267, T260, T261, T318, T273, ms25_out_aaa(T267, T266, .(T318, T323))) → U58_ag(T267, T260, T261, T318, ms38_in_aa(T273, .(T322, T324)))
U58_ag(T267, T260, T261, T318, ms38_out_aa(T273, .(T322, T324))) → U59_ag(T267, T260, T261, T318, less70_in_ga(T318, T322))
U59_ag(T267, T260, T261, T318, less70_out_ga(T318, T322)) → ms1_out_ag(.(T267, .(T260, T261)), .(T318, []))
U56_ag(T267, T260, T261, T318, split12_out_aaaa(T260, T261, T273, T266)) → U60_ag(T267, T260, T261, T318, T273, ms25_in_aaa(T267, T266, .(T318, T327)))
U60_ag(T267, T260, T261, T318, T273, ms25_out_aaa(T267, T266, .(T318, T327))) → U61_ag(T267, T260, T261, T318, T327, ms38_in_aa(T273, .(T328, T329)))
U61_ag(T267, T260, T261, T318, T327, ms38_out_aa(T273, .(T328, T329))) → U62_ag(T267, T260, T261, T318, T327, T328, T329, less70_in_ga(T318, T328))
U62_ag(T267, T260, T261, T318, T327, T328, T329, less70_out_ga(T318, T328)) → U63_ag(T267, T260, T261, T318, merge93_in_aa(T327, .(T328, T329)))
U63_ag(T267, T260, T261, T318, merge93_out_aa(T327, .(T328, T329))) → ms1_out_ag(.(T267, .(T260, T261)), .(T318, []))
ms1_in_ag(.(T267, .(T260, T261)), .(T356, [])) → U64_ag(T267, T260, T261, T356, split12_in_aaaa(T260, T261, T273, T266))
U64_ag(T267, T260, T261, T356, split12_out_aaaa(T260, T261, T273, T266)) → U65_ag(T267, T260, T261, T356, T273, ms25_in_aaa(T267, T266, .(T358, T360)))
U65_ag(T267, T260, T261, T356, T273, ms25_out_aaa(T267, T266, .(T358, T360))) → U66_ag(T267, T260, T261, T356, T358, ms38_in_aa(T273, .(T356, T359)))
U66_ag(T267, T260, T261, T356, T358, ms38_out_aa(T273, .(T356, T359))) → U67_ag(T267, T260, T261, T356, less78_in_ga(T356, T358))
U67_ag(T267, T260, T261, T356, less78_out_ga(T356, T358)) → ms1_out_ag(.(T267, .(T260, T261)), .(T356, []))
U64_ag(T267, T260, T261, T356, split12_out_aaaa(T260, T261, T273, T266)) → U68_ag(T267, T260, T261, T356, T273, ms25_in_aaa(T267, T266, .(T363, T364)))
U68_ag(T267, T260, T261, T356, T273, ms25_out_aaa(T267, T266, .(T363, T364))) → U69_ag(T267, T260, T261, T356, T363, T364, ms38_in_aa(T273, .(T356, T365)))
U69_ag(T267, T260, T261, T356, T363, T364, ms38_out_aa(T273, .(T356, T365))) → U70_ag(T267, T260, T261, T356, T363, T364, T365, less78_in_ga(T356, T363))
U70_ag(T267, T260, T261, T356, T363, T364, T365, less78_out_ga(T356, T363)) → U71_ag(T267, T260, T261, T356, merge93_in_aa(.(T363, T364), T365))
U71_ag(T267, T260, T261, T356, merge93_out_aa(.(T363, T364), T365)) → ms1_out_ag(.(T267, .(T260, T261)), .(T356, []))
ms1_in_ag(.(T407, .(T405, T406)), T387) → U72_ag(T407, T405, T406, T387, split12_in_aaaa(T405, T406, X523, X522))
U72_ag(T407, T405, T406, T387, split12_out_aaaa(T405, T406, X523, X522)) → ms1_out_ag(.(T407, .(T405, T406)), T387)
ms1_in_ag(.(T412, .(T405, T406)), T387) → U73_ag(T412, T405, T406, T387, split12_in_aaaa(T405, T406, T410, T411))
U73_ag(T412, T405, T406, T387, split12_out_aaaa(T405, T406, T410, T411)) → U74_ag(T412, T405, T406, T387, ms25_in_aaa(T412, T411, X494))
U74_ag(T412, T405, T406, T387, ms25_out_aaa(T412, T411, X494)) → ms1_out_ag(.(T412, .(T405, T406)), T387)
ms1_in_ag(.(T412, .(T405, T406)), T387) → U75_ag(T412, T405, T406, T387, split12_in_aaaa(T405, T406, T420, T411))
U75_ag(T412, T405, T406, T387, split12_out_aaaa(T405, T406, T420, T411)) → U76_ag(T412, T405, T406, T387, T420, ms25_in_aaa(T412, T411, T419))
U76_ag(T412, T405, T406, T387, T420, ms25_out_aaa(T412, T411, T419)) → U77_ag(T412, T405, T406, T387, ms38_in_aa(T420, X495))
U77_ag(T412, T405, T406, T387, ms38_out_aa(T420, X495)) → ms1_out_ag(.(T412, .(T405, T406)), T387)
ms1_in_ag(.(T412, .(T405, T406)), T435) → U78_ag(T412, T405, T406, T435, split12_in_aaaa(T405, T406, T420, T411))
U78_ag(T412, T405, T406, T435, split12_out_aaaa(T405, T406, T420, T411)) → U79_ag(T412, T405, T406, T435, T420, ms25_in_aag(T412, T411, []))
U79_ag(T412, T405, T406, T435, T420, ms25_out_aag(T412, T411, [])) → U80_ag(T412, T405, T406, T435, ms38_in_ag(T420, T435))
U80_ag(T412, T405, T406, T435, ms38_out_ag(T420, T435)) → ms1_out_ag(.(T412, .(T405, T406)), T435)
ms1_in_ag(.(T412, .(T405, T406)), T440) → U81_ag(T412, T405, T406, T440, split12_in_aaaa(T405, T406, T420, T411))
U81_ag(T412, T405, T406, T440, split12_out_aaaa(T405, T406, T420, T411)) → U82_ag(T412, T405, T406, T440, T420, ms25_in_aag(T412, T411, T440))
U82_ag(T412, T405, T406, T440, T420, ms25_out_aag(T412, T411, T440)) → U83_ag(T412, T405, T406, T440, ms38_in_ag(T420, []))
U83_ag(T412, T405, T406, T440, ms38_out_ag(T420, [])) → ms1_out_ag(.(T412, .(T405, T406)), T440)
ms1_in_ag(.(T412, .(T405, T406)), .(T461, T465)) → U84_ag(T412, T405, T406, T461, T465, split12_in_aaaa(T405, T406, T420, T411))
U84_ag(T412, T405, T406, T461, T465, split12_out_aaaa(T405, T406, T420, T411)) → U85_ag(T412, T405, T406, T461, T465, T420, ms25_in_aaa(T412, T411, .(T461, T467)))
U85_ag(T412, T405, T406, T461, T465, T420, ms25_out_aaa(T412, T411, .(T461, T467))) → U86_ag(T412, T405, T406, T461, T465, ms38_in_aa(T420, .(T466, T468)))
U86_ag(T412, T405, T406, T461, T465, ms38_out_aa(T420, .(T466, T468))) → U87_ag(T412, T405, T406, T461, T465, less70_in_ga(T461, T466))
U87_ag(T412, T405, T406, T461, T465, less70_out_ga(T461, T466)) → ms1_out_ag(.(T412, .(T405, T406)), .(T461, T465))
ms1_in_ag(.(T412, .(T405, T406)), .(T461, .(T490, T491))) → U88_ag(T412, T405, T406, T461, T490, T491, split12_in_aaaa(T405, T406, T420, T411))
U88_ag(T412, T405, T406, T461, T490, T491, split12_out_aaaa(T405, T406, T420, T411)) → U89_ag(T412, T405, T406, T461, T490, T491, T420, ms25_in_aag(T412, T411, .(T461, [])))
U89_ag(T412, T405, T406, T461, T490, T491, T420, ms25_out_aag(T412, T411, .(T461, []))) → U90_ag(T412, T405, T406, T461, T490, T491, ms38_in_ag(T420, .(T490, T491)))
U90_ag(T412, T405, T406, T461, T490, T491, ms38_out_ag(T420, .(T490, T491))) → U91_ag(T412, T405, T406, T461, T490, T491, less70_in_gg(T461, T490))
less70_in_gg(0, T154) → less70_out_gg(0, T154)
less70_in_gg(s(T161), T162) → U22_gg(T161, T162, less78_in_gg(T161, T162))
less78_in_gg(0, s(T169)) → less78_out_gg(0, s(T169))
less78_in_gg(s(T176), s(T177)) → U20_gg(T176, T177, less78_in_gg(T176, T177))
U20_gg(T176, T177, less78_out_gg(T176, T177)) → less78_out_gg(s(T176), s(T177))
U22_gg(T161, T162, less78_out_gg(T161, T162)) → less70_out_gg(s(T161), T162)
U91_ag(T412, T405, T406, T461, T490, T491, less70_out_gg(T461, T490)) → ms1_out_ag(.(T412, .(T405, T406)), .(T461, .(T490, T491)))
ms1_in_ag(.(T412, .(T405, T406)), .(T461, .(T513, T517))) → U92_ag(T412, T405, T406, T461, T513, T517, split12_in_aaaa(T405, T406, T420, T411))
U92_ag(T412, T405, T406, T461, T513, T517, split12_out_aaaa(T405, T406, T420, T411)) → U93_ag(T412, T405, T406, T461, T513, T517, T420, ms25_in_aaa(T412, T411, .(T461, .(T513, T519))))
U93_ag(T412, T405, T406, T461, T513, T517, T420, ms25_out_aaa(T412, T411, .(T461, .(T513, T519)))) → U94_ag(T412, T405, T406, T461, T513, T517, T519, ms38_in_aa(T420, .(T518, T520)))
U94_ag(T412, T405, T406, T461, T513, T517, T519, ms38_out_aa(T420, .(T518, T520))) → U95_ag(T412, T405, T406, T461, T513, T517, T519, T518, T520, less70_in_ga(T461, T518))
U95_ag(T412, T405, T406, T461, T513, T517, T519, T518, T520, less70_out_ga(T461, T518)) → U96_ag(T412, T405, T406, T461, T513, T517, p179_in_gaaag(T513, T518, T519, T520, T517))
p179_in_gaaag(T513, T518, T519, T520, T517) → U23_gaaag(T513, T518, T519, T520, T517, less70_in_ga(T513, T518))
U23_gaaag(T513, T518, T519, T520, T517, less70_out_ga(T513, T518)) → p179_out_gaaag(T513, T518, T519, T520, T517)
p179_in_gaaag(T513, T540, [], T541, .(T540, T541)) → U24_gaaag(T513, T540, T541, less70_in_gg(T513, T540))
U24_gaaag(T513, T540, T541, less70_out_gg(T513, T540)) → p179_out_gaaag(T513, T540, [], T541, .(T540, T541))
p179_in_gaaag(T513, T568, .(T563, T569), T570, .(T563, T567)) → U25_gaaag(T513, T568, T563, T569, T570, T567, less70_in_ga(T513, T568))
U25_gaaag(T513, T568, T563, T569, T570, T567, less70_out_ga(T513, T568)) → U26_gaaag(T513, T568, T563, T569, T570, T567, p179_in_gaaag(T563, T568, T569, T570, T567))
p179_in_gaaag(T513, T585, .(T588, T590), T589, .(T585, T587)) → U27_gaaag(T513, T585, T588, T590, T589, T587, less70_in_gg(T513, T585))
U27_gaaag(T513, T585, T588, T590, T589, T587, less70_out_gg(T513, T585)) → U28_gaaag(T513, T585, T588, T590, T589, T587, p194_in_gaaag(T585, T588, T590, T589, T587))
p194_in_gaaag(T585, T588, T590, T589, T587) → U29_gaaag(T585, T588, T590, T589, T587, less78_in_ga(T585, T588))
U29_gaaag(T585, T588, T590, T589, T587, less78_out_ga(T585, T588)) → p194_out_gaaag(T585, T588, T590, T589, T587)
p194_in_gaaag(T585, T610, T611, [], .(T610, T611)) → U30_gaaag(T585, T610, T611, less78_in_gg(T585, T610))
U30_gaaag(T585, T610, T611, less78_out_gg(T585, T610)) → p194_out_gaaag(T585, T610, T611, [], .(T610, T611))
p194_in_gaaag(T585, T632, T638, .(T637, T639), .(T632, T636)) → U31_gaaag(T585, T632, T638, T637, T639, T636, less78_in_gg(T585, T632))
U31_gaaag(T585, T632, T638, T637, T639, T636, less78_out_gg(T585, T632)) → U32_gaaag(T585, T632, T638, T637, T639, T636, p179_in_gaaag(T632, T637, T638, T639, T636))
U32_gaaag(T585, T632, T638, T637, T639, T636, p179_out_gaaag(T632, T637, T638, T639, T636)) → p194_out_gaaag(T585, T632, T638, .(T637, T639), .(T632, T636))
p194_in_gaaag(T585, T657, T659, .(T654, T658), .(T654, T656)) → U33_gaaag(T585, T657, T659, T654, T658, T656, less78_in_ga(T585, T657))
U33_gaaag(T585, T657, T659, T654, T658, T656, less78_out_ga(T585, T657)) → U34_gaaag(T585, T657, T659, T654, T658, T656, p194_in_gaaag(T654, T657, T659, T658, T656))
U34_gaaag(T585, T657, T659, T654, T658, T656, p194_out_gaaag(T654, T657, T659, T658, T656)) → p194_out_gaaag(T585, T657, T659, .(T654, T658), .(T654, T656))
U28_gaaag(T513, T585, T588, T590, T589, T587, p194_out_gaaag(T585, T588, T590, T589, T587)) → p179_out_gaaag(T513, T585, .(T588, T590), T589, .(T585, T587))
U26_gaaag(T513, T568, T563, T569, T570, T567, p179_out_gaaag(T563, T568, T569, T570, T567)) → p179_out_gaaag(T513, T568, .(T563, T569), T570, .(T563, T567))
U96_ag(T412, T405, T406, T461, T513, T517, p179_out_gaaag(T513, T518, T519, T520, T517)) → ms1_out_ag(.(T412, .(T405, T406)), .(T461, .(T513, T517)))
ms1_in_ag(.(T412, .(T405, T406)), .(T461, .(T674, T676))) → U97_ag(T412, T405, T406, T461, T674, T676, split12_in_aaaa(T405, T406, T420, T411))
U97_ag(T412, T405, T406, T461, T674, T676, split12_out_aaaa(T405, T406, T420, T411)) → U98_ag(T412, T405, T406, T461, T674, T676, T420, ms25_in_aaa(T412, T411, .(T461, .(T677, T679))))
U98_ag(T412, T405, T406, T461, T674, T676, T420, ms25_out_aaa(T412, T411, .(T461, .(T677, T679)))) → U99_ag(T412, T405, T406, T461, T674, T676, T677, T679, ms38_in_aa(T420, .(T674, T678)))
U99_ag(T412, T405, T406, T461, T674, T676, T677, T679, ms38_out_aa(T420, .(T674, T678))) → U100_ag(T412, T405, T406, T461, T674, T676, T677, T679, T678, less70_in_gg(T461, T674))
U100_ag(T412, T405, T406, T461, T674, T676, T677, T679, T678, less70_out_gg(T461, T674)) → U101_ag(T412, T405, T406, T461, T674, T676, p194_in_gaaag(T674, T677, T679, T678, T676))
U101_ag(T412, T405, T406, T461, T674, T676, p194_out_gaaag(T674, T677, T679, T678, T676)) → ms1_out_ag(.(T412, .(T405, T406)), .(T461, .(T674, T676)))
ms1_in_ag(.(T412, .(T405, T406)), .(T694, T696)) → U102_ag(T412, T405, T406, T694, T696, split12_in_aaaa(T405, T406, T420, T411))
U102_ag(T412, T405, T406, T694, T696, split12_out_aaaa(T405, T406, T420, T411)) → U103_ag(T412, T405, T406, T694, T696, T420, ms25_in_aaa(T412, T411, .(T697, T699)))
U103_ag(T412, T405, T406, T694, T696, T420, ms25_out_aaa(T412, T411, .(T697, T699))) → U104_ag(T412, T405, T406, T694, T696, T697, T699, ms38_in_aa(T420, .(T694, T698)))
U104_ag(T412, T405, T406, T694, T696, T697, T699, ms38_out_aa(T420, .(T694, T698))) → U105_ag(T412, T405, T406, T694, T696, p194_in_gaaag(T694, T697, T699, T698, T696))
U105_ag(T412, T405, T406, T694, T696, p194_out_gaaag(T694, T697, T699, T698, T696)) → ms1_out_ag(.(T412, .(T405, T406)), .(T694, T696))
MERGE54_IN_AAA(.(T139, T145), .(T146, T147), .(T139, X226)) → U15_AAA(T139, T145, T146, T147, X226, less70_in_aa(T139, T146))
U15_AAA(T139, T145, T146, T147, X226, less70_out_aa(T139, T146)) → MERGE54_IN_AAA(T145, .(T146, T147), X226)
MERGE54_IN_AAA(.(T202, T203), .(T196, T204), .(T196, X287)) → U18_AAA(T202, T203, T196, T204, X287, less78_in_aa(T196, T202))
U18_AAA(T202, T203, T196, T204, X287, less78_out_aa(T196, T202)) → MERGE54_IN_AAA(.(T202, T203), T204, X287)
less70_in_aa(0, T154) → less70_out_aa(0, T154)
less70_in_aa(s(T161), T162) → U22_aa(T161, T162, less78_in_aa(T161, T162))
less78_in_aa(0, s(T169)) → less78_out_aa(0, s(T169))
less78_in_aa(s(T176), s(T177)) → U20_aa(T176, T177, less78_in_aa(T176, T177))
U22_aa(T161, T162, less78_out_aa(T161, T162)) → less70_out_aa(s(T161), T162)
U20_aa(T176, T177, less78_out_aa(T176, T177)) → less78_out_aa(s(T176), s(T177))
MERGE54_IN_AAA → U15_AAA(less70_in_aa)
U15_AAA(less70_out_aa(T139)) → MERGE54_IN_AAA
MERGE54_IN_AAA → U18_AAA(less78_in_aa)
U18_AAA(less78_out_aa(T196)) → MERGE54_IN_AAA
less70_in_aa → less70_out_aa(0)
less70_in_aa → U22_aa(less78_in_aa)
less78_in_aa → less78_out_aa(0)
less78_in_aa → U20_aa(less78_in_aa)
U22_aa(less78_out_aa(T161)) → less70_out_aa(s(T161))
U20_aa(less78_out_aa(T176)) → less78_out_aa(s(T176))
less70_in_aa
less78_in_aa
U22_aa(x0)
U20_aa(x0)
MERGE54_IN_AAA → U15_AAA(less70_out_aa(0))
MERGE54_IN_AAA → U15_AAA(U22_aa(less78_in_aa))
U15_AAA(less70_out_aa(T139)) → MERGE54_IN_AAA
MERGE54_IN_AAA → U18_AAA(less78_in_aa)
U18_AAA(less78_out_aa(T196)) → MERGE54_IN_AAA
MERGE54_IN_AAA → U15_AAA(less70_out_aa(0))
MERGE54_IN_AAA → U15_AAA(U22_aa(less78_in_aa))
less70_in_aa → less70_out_aa(0)
less70_in_aa → U22_aa(less78_in_aa)
less78_in_aa → less78_out_aa(0)
less78_in_aa → U20_aa(less78_in_aa)
U22_aa(less78_out_aa(T161)) → less70_out_aa(s(T161))
U20_aa(less78_out_aa(T176)) → less78_out_aa(s(T176))
less70_in_aa
less78_in_aa
U22_aa(x0)
U20_aa(x0)
U15_AAA(less70_out_aa(T139)) → MERGE54_IN_AAA
MERGE54_IN_AAA → U18_AAA(less78_in_aa)
U18_AAA(less78_out_aa(T196)) → MERGE54_IN_AAA
MERGE54_IN_AAA → U15_AAA(less70_out_aa(0))
MERGE54_IN_AAA → U15_AAA(U22_aa(less78_in_aa))
less78_in_aa → less78_out_aa(0)
less78_in_aa → U20_aa(less78_in_aa)
U22_aa(less78_out_aa(T161)) → less70_out_aa(s(T161))
U20_aa(less78_out_aa(T176)) → less78_out_aa(s(T176))
less70_in_aa
less78_in_aa
U22_aa(x0)
U20_aa(x0)
less70_in_aa
U15_AAA(less70_out_aa(T139)) → MERGE54_IN_AAA
MERGE54_IN_AAA → U18_AAA(less78_in_aa)
U18_AAA(less78_out_aa(T196)) → MERGE54_IN_AAA
MERGE54_IN_AAA → U15_AAA(less70_out_aa(0))
MERGE54_IN_AAA → U15_AAA(U22_aa(less78_in_aa))
less78_in_aa → less78_out_aa(0)
less78_in_aa → U20_aa(less78_in_aa)
U22_aa(less78_out_aa(T161)) → less70_out_aa(s(T161))
U20_aa(less78_out_aa(T176)) → less78_out_aa(s(T176))
less78_in_aa
U22_aa(x0)
U20_aa(x0)
MERGE54_IN_AAA → U18_AAA(less78_out_aa(0))
MERGE54_IN_AAA → U18_AAA(U20_aa(less78_in_aa))
U15_AAA(less70_out_aa(T139)) → MERGE54_IN_AAA
U18_AAA(less78_out_aa(T196)) → MERGE54_IN_AAA
MERGE54_IN_AAA → U15_AAA(less70_out_aa(0))
MERGE54_IN_AAA → U15_AAA(U22_aa(less78_in_aa))
MERGE54_IN_AAA → U18_AAA(less78_out_aa(0))
MERGE54_IN_AAA → U18_AAA(U20_aa(less78_in_aa))
less78_in_aa → less78_out_aa(0)
less78_in_aa → U20_aa(less78_in_aa)
U22_aa(less78_out_aa(T161)) → less70_out_aa(s(T161))
U20_aa(less78_out_aa(T176)) → less78_out_aa(s(T176))
less78_in_aa
U22_aa(x0)
U20_aa(x0)
SPLIT16_IN_AAA(.(T49, T51), .(T49, X89), X90) → SPLIT16_IN_AAA(T51, X90, X89)
ms1_in_ag([], []) → ms1_out_ag([], [])
ms1_in_ag(.(T29, .(T27, T28)), []) → U35_ag(T29, T27, T28, split12_in_aaaa(T27, T28, X42, X41))
split12_in_aaaa(T42, T44, .(T42, X71), X72) → U2_aaaa(T42, T44, X71, X72, split16_in_aaa(T44, X72, X71))
split16_in_aaa([], [], []) → split16_out_aaa([], [], [])
split16_in_aaa(.(T49, T51), .(T49, X89), X90) → U1_aaa(T49, T51, X89, X90, split16_in_aaa(T51, X90, X89))
U1_aaa(T49, T51, X89, X90, split16_out_aaa(T51, X90, X89)) → split16_out_aaa(.(T49, T51), .(T49, X89), X90)
U2_aaaa(T42, T44, X71, X72, split16_out_aaa(T44, X72, X71)) → split12_out_aaaa(T42, T44, .(T42, X71), X72)
U35_ag(T29, T27, T28, split12_out_aaaa(T27, T28, X42, X41)) → ms1_out_ag(.(T29, .(T27, T28)), [])
ms1_in_ag(.(T34, .(T27, T28)), []) → U36_ag(T34, T27, T28, split12_in_aaaa(T27, T28, T32, T33))
U36_ag(T34, T27, T28, split12_out_aaaa(T27, T28, T32, T33)) → U37_ag(T34, T27, T28, ms25_in_aaa(T34, T33, X13))
ms25_in_aaa(T62, [], .(T62, [])) → ms25_out_aaa(T62, [], .(T62, []))
ms25_in_aaa(T72, .(T73, T74), X127) → U21_aaa(T72, T73, T74, X127, p34_in_aaaaaaaa(T72, T73, T74, X123, X124, X125, X126, X127))
p34_in_aaaaaaaa(T72, T73, T74, X123, X124, X125, X126, X127) → U3_aaaaaaaa(T72, T73, T74, X123, X124, X125, X126, X127, split12_in_aaaa(T72, .(T73, T74), X123, X124))
U3_aaaaaaaa(T72, T73, T74, X123, X124, X125, X126, X127, split12_out_aaaa(T72, .(T73, T74), X123, X124)) → p34_out_aaaaaaaa(T72, T73, T74, X123, X124, X125, X126, X127)
p34_in_aaaaaaaa(T72, T73, T74, T78, T79, X125, X126, X127) → U4_aaaaaaaa(T72, T73, T74, T78, T79, X125, X126, X127, split12_in_aaaa(T72, .(T73, T74), T78, T79))
U4_aaaaaaaa(T72, T73, T74, T78, T79, X125, X126, X127, split12_out_aaaa(T72, .(T73, T74), T78, T79)) → U5_aaaaaaaa(T72, T73, T74, T78, T79, X125, X126, X127, ms38_in_aa(T78, X125))
ms38_in_aa([], []) → ms38_out_aa([], [])
ms38_in_aa(.(T89, []), .(T89, [])) → ms38_out_aa(.(T89, []), .(T89, []))
ms38_in_aa(.(T99, .(T100, T101)), X172) → U13_aa(T99, T100, T101, X172, p34_in_aaaaaaaa(T99, T100, T101, X168, X169, X170, X171, X172))
p34_in_aaaaaaaa(T72, T73, T74, T78, T84, T83, X126, X127) → U6_aaaaaaaa(T72, T73, T74, T78, T84, T83, X126, X127, split12_in_aaaa(T72, .(T73, T74), T78, T84))
U6_aaaaaaaa(T72, T73, T74, T78, T84, T83, X126, X127, split12_out_aaaa(T72, .(T73, T74), T78, T84)) → U7_aaaaaaaa(T72, T73, T74, T78, T84, T83, X126, X127, ms38_in_aa(T78, T83))
U7_aaaaaaaa(T72, T73, T74, T78, T84, T83, X126, X127, ms38_out_aa(T78, T83)) → U8_aaaaaaaa(T72, T73, T74, T78, T84, T83, X126, X127, ms38_in_aa(T84, X126))
U8_aaaaaaaa(T72, T73, T74, T78, T84, T83, X126, X127, ms38_out_aa(T84, X126)) → p34_out_aaaaaaaa(T72, T73, T74, T78, T84, T83, X126, X127)
p34_in_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127) → U9_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127, split12_in_aaaa(T72, .(T73, T74), T78, T84))
U9_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127, split12_out_aaaa(T72, .(T73, T74), T78, T84)) → U10_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127, ms38_in_aa(T78, T106))
U10_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127, ms38_out_aa(T78, T106)) → U11_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127, ms38_in_aa(T84, T105))
U11_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127, ms38_out_aa(T84, T105)) → U12_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127, merge54_in_aaa(T106, T105, X127))
merge54_in_aaa([], T113, T113) → merge54_out_aaa([], T113, T113)
merge54_in_aaa(T118, [], T118) → merge54_out_aaa(T118, [], T118)
merge54_in_aaa(.(T139, T141), .(T140, T142), .(T139, X226)) → U14_aaa(T139, T141, T140, T142, X226, less70_in_aa(T139, T140))
less70_in_aa(0, T154) → less70_out_aa(0, T154)
less70_in_aa(s(T161), T162) → U22_aa(T161, T162, less78_in_aa(T161, T162))
less78_in_aa(0, s(T169)) → less78_out_aa(0, s(T169))
less78_in_aa(s(T176), s(T177)) → U20_aa(T176, T177, less78_in_aa(T176, T177))
U20_aa(T176, T177, less78_out_aa(T176, T177)) → less78_out_aa(s(T176), s(T177))
U22_aa(T161, T162, less78_out_aa(T161, T162)) → less70_out_aa(s(T161), T162)
U14_aaa(T139, T141, T140, T142, X226, less70_out_aa(T139, T140)) → merge54_out_aaa(.(T139, T141), .(T140, T142), .(T139, X226))
merge54_in_aaa(.(T139, T145), .(T146, T147), .(T139, X226)) → U15_aaa(T139, T145, T146, T147, X226, less70_in_aa(T139, T146))
U15_aaa(T139, T145, T146, T147, X226, less70_out_aa(T139, T146)) → U16_aaa(T139, T145, T146, T147, X226, merge54_in_aaa(T145, .(T146, T147), X226))
merge54_in_aaa(.(T197, T199), .(T196, T198), .(T196, X287)) → U17_aaa(T197, T199, T196, T198, X287, less78_in_aa(T196, T197))
U17_aaa(T197, T199, T196, T198, X287, less78_out_aa(T196, T197)) → merge54_out_aaa(.(T197, T199), .(T196, T198), .(T196, X287))
merge54_in_aaa(.(T202, T203), .(T196, T204), .(T196, X287)) → U18_aaa(T202, T203, T196, T204, X287, less78_in_aa(T196, T202))
U18_aaa(T202, T203, T196, T204, X287, less78_out_aa(T196, T202)) → U19_aaa(T202, T203, T196, T204, X287, merge54_in_aaa(.(T202, T203), T204, X287))
U19_aaa(T202, T203, T196, T204, X287, merge54_out_aaa(.(T202, T203), T204, X287)) → merge54_out_aaa(.(T202, T203), .(T196, T204), .(T196, X287))
U16_aaa(T139, T145, T146, T147, X226, merge54_out_aaa(T145, .(T146, T147), X226)) → merge54_out_aaa(.(T139, T145), .(T146, T147), .(T139, X226))
U12_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127, merge54_out_aaa(T106, T105, X127)) → p34_out_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127)
U13_aa(T99, T100, T101, X172, p34_out_aaaaaaaa(T99, T100, T101, X168, X169, X170, X171, X172)) → ms38_out_aa(.(T99, .(T100, T101)), X172)
U5_aaaaaaaa(T72, T73, T74, T78, T79, X125, X126, X127, ms38_out_aa(T78, X125)) → p34_out_aaaaaaaa(T72, T73, T74, T78, T79, X125, X126, X127)
U21_aaa(T72, T73, T74, X127, p34_out_aaaaaaaa(T72, T73, T74, X123, X124, X125, X126, X127)) → ms25_out_aaa(T72, .(T73, T74), X127)
U37_ag(T34, T27, T28, ms25_out_aaa(T34, T33, X13)) → ms1_out_ag(.(T34, .(T27, T28)), [])
ms1_in_ag(.(T34, .(T27, T28)), []) → U38_ag(T34, T27, T28, split12_in_aaaa(T27, T28, T55, T33))
U38_ag(T34, T27, T28, split12_out_aaaa(T27, T28, T55, T33)) → U39_ag(T34, T27, T28, T55, ms25_in_aaa(T34, T33, T54))
U39_ag(T34, T27, T28, T55, ms25_out_aaa(T34, T33, T54)) → U40_ag(T34, T27, T28, ms38_in_aa(T55, X14))
U40_ag(T34, T27, T28, ms38_out_aa(T55, X14)) → ms1_out_ag(.(T34, .(T27, T28)), [])
U38_ag(T34, T27, T28, split12_out_aaaa(T27, T28, T55, T33)) → U41_ag(T34, T27, T28, T55, ms25_in_aaa(T34, T33, T212))
U41_ag(T34, T27, T28, T55, ms25_out_aaa(T34, T33, T212)) → U42_ag(T34, T27, T28, T212, ms38_in_aa(T55, T211))
U42_ag(T34, T27, T28, T212, ms38_out_aa(T55, T211)) → U43_ag(T34, T27, T28, merge93_in_aa(T212, T211))
merge93_in_aa([], []) → merge93_out_aa([], [])
U43_ag(T34, T27, T28, merge93_out_aa(T212, T211)) → ms1_out_ag(.(T34, .(T27, T28)), [])
ms1_in_ag(.(T234, []), .(T234, [])) → ms1_out_ag(.(T234, []), .(T234, []))
ms1_in_ag(.(T262, .(T260, T261)), .(T242, [])) → U44_ag(T262, T260, T261, T242, split12_in_aaaa(T260, T261, X367, X366))
U44_ag(T262, T260, T261, T242, split12_out_aaaa(T260, T261, X367, X366)) → ms1_out_ag(.(T262, .(T260, T261)), .(T242, []))
ms1_in_ag(.(T267, .(T260, T261)), .(T242, [])) → U45_ag(T267, T260, T261, T242, split12_in_aaaa(T260, T261, T265, T266))
U45_ag(T267, T260, T261, T242, split12_out_aaaa(T260, T261, T265, T266)) → U46_ag(T267, T260, T261, T242, ms25_in_aaa(T267, T266, X338))
U46_ag(T267, T260, T261, T242, ms25_out_aaa(T267, T266, X338)) → ms1_out_ag(.(T267, .(T260, T261)), .(T242, []))
ms1_in_ag(.(T267, .(T260, T261)), .(T242, [])) → U47_ag(T267, T260, T261, T242, split12_in_aaaa(T260, T261, T273, T266))
U47_ag(T267, T260, T261, T242, split12_out_aaaa(T260, T261, T273, T266)) → U48_ag(T267, T260, T261, T242, T273, ms25_in_aaa(T267, T266, T272))
U48_ag(T267, T260, T261, T242, T273, ms25_out_aaa(T267, T266, T272)) → U49_ag(T267, T260, T261, T242, ms38_in_aa(T273, X339))
U49_ag(T267, T260, T261, T242, ms38_out_aa(T273, X339)) → ms1_out_ag(.(T267, .(T260, T261)), .(T242, []))
ms1_in_ag(.(T267, .(T260, T261)), .(T291, [])) → U50_ag(T267, T260, T261, T291, split12_in_aaaa(T260, T261, T273, T266))
U50_ag(T267, T260, T261, T291, split12_out_aaaa(T260, T261, T273, T266)) → U51_ag(T267, T260, T261, T291, T273, ms25_in_aag(T267, T266, []))
ms25_in_aag(T62, [], .(T62, [])) → ms25_out_aag(T62, [], .(T62, []))
ms25_in_aag(T72, .(T73, T74), X127) → U21_aag(T72, T73, T74, X127, p34_in_aaaaaaag(T72, T73, T74, X123, X124, X125, X126, X127))
p34_in_aaaaaaag(T72, T73, T74, X123, X124, X125, X126, X127) → U3_aaaaaaag(T72, T73, T74, X123, X124, X125, X126, X127, split12_in_aaaa(T72, .(T73, T74), X123, X124))
U3_aaaaaaag(T72, T73, T74, X123, X124, X125, X126, X127, split12_out_aaaa(T72, .(T73, T74), X123, X124)) → p34_out_aaaaaaag(T72, T73, T74, X123, X124, X125, X126, X127)
p34_in_aaaaaaag(T72, T73, T74, T78, T79, X125, X126, X127) → U4_aaaaaaag(T72, T73, T74, T78, T79, X125, X126, X127, split12_in_aaaa(T72, .(T73, T74), T78, T79))
U4_aaaaaaag(T72, T73, T74, T78, T79, X125, X126, X127, split12_out_aaaa(T72, .(T73, T74), T78, T79)) → U5_aaaaaaag(T72, T73, T74, T78, T79, X125, X126, X127, ms38_in_aa(T78, X125))
U5_aaaaaaag(T72, T73, T74, T78, T79, X125, X126, X127, ms38_out_aa(T78, X125)) → p34_out_aaaaaaag(T72, T73, T74, T78, T79, X125, X126, X127)
p34_in_aaaaaaag(T72, T73, T74, T78, T84, T83, X126, X127) → U6_aaaaaaag(T72, T73, T74, T78, T84, T83, X126, X127, split12_in_aaaa(T72, .(T73, T74), T78, T84))
U6_aaaaaaag(T72, T73, T74, T78, T84, T83, X126, X127, split12_out_aaaa(T72, .(T73, T74), T78, T84)) → U7_aaaaaaag(T72, T73, T74, T78, T84, T83, X126, X127, ms38_in_aa(T78, T83))
U7_aaaaaaag(T72, T73, T74, T78, T84, T83, X126, X127, ms38_out_aa(T78, T83)) → U8_aaaaaaag(T72, T73, T74, T78, T84, T83, X126, X127, ms38_in_aa(T84, X126))
U8_aaaaaaag(T72, T73, T74, T78, T84, T83, X126, X127, ms38_out_aa(T84, X126)) → p34_out_aaaaaaag(T72, T73, T74, T78, T84, T83, X126, X127)
p34_in_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127) → U9_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127, split12_in_aaaa(T72, .(T73, T74), T78, T84))
U9_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127, split12_out_aaaa(T72, .(T73, T74), T78, T84)) → U10_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127, ms38_in_aa(T78, T106))
U10_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127, ms38_out_aa(T78, T106)) → U11_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127, ms38_in_aa(T84, T105))
U11_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127, ms38_out_aa(T84, T105)) → U12_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127, merge54_in_aag(T106, T105, X127))
merge54_in_aag([], T113, T113) → merge54_out_aag([], T113, T113)
merge54_in_aag(T118, [], T118) → merge54_out_aag(T118, [], T118)
merge54_in_aag(.(T139, T141), .(T140, T142), .(T139, X226)) → U14_aag(T139, T141, T140, T142, X226, less70_in_ga(T139, T140))
less70_in_ga(0, T154) → less70_out_ga(0, T154)
less70_in_ga(s(T161), T162) → U22_ga(T161, T162, less78_in_ga(T161, T162))
less78_in_ga(0, s(T169)) → less78_out_ga(0, s(T169))
less78_in_ga(s(T176), s(T177)) → U20_ga(T176, T177, less78_in_ga(T176, T177))
U20_ga(T176, T177, less78_out_ga(T176, T177)) → less78_out_ga(s(T176), s(T177))
U22_ga(T161, T162, less78_out_ga(T161, T162)) → less70_out_ga(s(T161), T162)
U14_aag(T139, T141, T140, T142, X226, less70_out_ga(T139, T140)) → merge54_out_aag(.(T139, T141), .(T140, T142), .(T139, X226))
merge54_in_aag(.(T139, T145), .(T146, T147), .(T139, X226)) → U15_aag(T139, T145, T146, T147, X226, less70_in_ga(T139, T146))
U15_aag(T139, T145, T146, T147, X226, less70_out_ga(T139, T146)) → U16_aag(T139, T145, T146, T147, X226, merge54_in_aag(T145, .(T146, T147), X226))
merge54_in_aag(.(T197, T199), .(T196, T198), .(T196, X287)) → U17_aag(T197, T199, T196, T198, X287, less78_in_ga(T196, T197))
U17_aag(T197, T199, T196, T198, X287, less78_out_ga(T196, T197)) → merge54_out_aag(.(T197, T199), .(T196, T198), .(T196, X287))
merge54_in_aag(.(T202, T203), .(T196, T204), .(T196, X287)) → U18_aag(T202, T203, T196, T204, X287, less78_in_ga(T196, T202))
U18_aag(T202, T203, T196, T204, X287, less78_out_ga(T196, T202)) → U19_aag(T202, T203, T196, T204, X287, merge54_in_aag(.(T202, T203), T204, X287))
U19_aag(T202, T203, T196, T204, X287, merge54_out_aag(.(T202, T203), T204, X287)) → merge54_out_aag(.(T202, T203), .(T196, T204), .(T196, X287))
U16_aag(T139, T145, T146, T147, X226, merge54_out_aag(T145, .(T146, T147), X226)) → merge54_out_aag(.(T139, T145), .(T146, T147), .(T139, X226))
U12_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127, merge54_out_aag(T106, T105, X127)) → p34_out_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127)
U21_aag(T72, T73, T74, X127, p34_out_aaaaaaag(T72, T73, T74, X123, X124, X125, X126, X127)) → ms25_out_aag(T72, .(T73, T74), X127)
U51_ag(T267, T260, T261, T291, T273, ms25_out_aag(T267, T266, [])) → U52_ag(T267, T260, T261, T291, ms38_in_ag(T273, .(T291, [])))
ms38_in_ag([], []) → ms38_out_ag([], [])
ms38_in_ag(.(T89, []), .(T89, [])) → ms38_out_ag(.(T89, []), .(T89, []))
ms38_in_ag(.(T99, .(T100, T101)), X172) → U13_ag(T99, T100, T101, X172, p34_in_aaaaaaag(T99, T100, T101, X168, X169, X170, X171, X172))
U13_ag(T99, T100, T101, X172, p34_out_aaaaaaag(T99, T100, T101, X168, X169, X170, X171, X172)) → ms38_out_ag(.(T99, .(T100, T101)), X172)
U52_ag(T267, T260, T261, T291, ms38_out_ag(T273, .(T291, []))) → ms1_out_ag(.(T267, .(T260, T261)), .(T291, []))
ms1_in_ag(.(T267, .(T260, T261)), .(T301, [])) → U53_ag(T267, T260, T261, T301, split12_in_aaaa(T260, T261, T273, T266))
U53_ag(T267, T260, T261, T301, split12_out_aaaa(T260, T261, T273, T266)) → U54_ag(T267, T260, T261, T301, T273, ms25_in_aag(T267, T266, .(T301, [])))
U54_ag(T267, T260, T261, T301, T273, ms25_out_aag(T267, T266, .(T301, []))) → U55_ag(T267, T260, T261, T301, ms38_in_ag(T273, []))
U55_ag(T267, T260, T261, T301, ms38_out_ag(T273, [])) → ms1_out_ag(.(T267, .(T260, T261)), .(T301, []))
ms1_in_ag(.(T267, .(T260, T261)), .(T318, [])) → U56_ag(T267, T260, T261, T318, split12_in_aaaa(T260, T261, T273, T266))
U56_ag(T267, T260, T261, T318, split12_out_aaaa(T260, T261, T273, T266)) → U57_ag(T267, T260, T261, T318, T273, ms25_in_aaa(T267, T266, .(T318, T323)))
U57_ag(T267, T260, T261, T318, T273, ms25_out_aaa(T267, T266, .(T318, T323))) → U58_ag(T267, T260, T261, T318, ms38_in_aa(T273, .(T322, T324)))
U58_ag(T267, T260, T261, T318, ms38_out_aa(T273, .(T322, T324))) → U59_ag(T267, T260, T261, T318, less70_in_ga(T318, T322))
U59_ag(T267, T260, T261, T318, less70_out_ga(T318, T322)) → ms1_out_ag(.(T267, .(T260, T261)), .(T318, []))
U56_ag(T267, T260, T261, T318, split12_out_aaaa(T260, T261, T273, T266)) → U60_ag(T267, T260, T261, T318, T273, ms25_in_aaa(T267, T266, .(T318, T327)))
U60_ag(T267, T260, T261, T318, T273, ms25_out_aaa(T267, T266, .(T318, T327))) → U61_ag(T267, T260, T261, T318, T327, ms38_in_aa(T273, .(T328, T329)))
U61_ag(T267, T260, T261, T318, T327, ms38_out_aa(T273, .(T328, T329))) → U62_ag(T267, T260, T261, T318, T327, T328, T329, less70_in_ga(T318, T328))
U62_ag(T267, T260, T261, T318, T327, T328, T329, less70_out_ga(T318, T328)) → U63_ag(T267, T260, T261, T318, merge93_in_aa(T327, .(T328, T329)))
U63_ag(T267, T260, T261, T318, merge93_out_aa(T327, .(T328, T329))) → ms1_out_ag(.(T267, .(T260, T261)), .(T318, []))
ms1_in_ag(.(T267, .(T260, T261)), .(T356, [])) → U64_ag(T267, T260, T261, T356, split12_in_aaaa(T260, T261, T273, T266))
U64_ag(T267, T260, T261, T356, split12_out_aaaa(T260, T261, T273, T266)) → U65_ag(T267, T260, T261, T356, T273, ms25_in_aaa(T267, T266, .(T358, T360)))
U65_ag(T267, T260, T261, T356, T273, ms25_out_aaa(T267, T266, .(T358, T360))) → U66_ag(T267, T260, T261, T356, T358, ms38_in_aa(T273, .(T356, T359)))
U66_ag(T267, T260, T261, T356, T358, ms38_out_aa(T273, .(T356, T359))) → U67_ag(T267, T260, T261, T356, less78_in_ga(T356, T358))
U67_ag(T267, T260, T261, T356, less78_out_ga(T356, T358)) → ms1_out_ag(.(T267, .(T260, T261)), .(T356, []))
U64_ag(T267, T260, T261, T356, split12_out_aaaa(T260, T261, T273, T266)) → U68_ag(T267, T260, T261, T356, T273, ms25_in_aaa(T267, T266, .(T363, T364)))
U68_ag(T267, T260, T261, T356, T273, ms25_out_aaa(T267, T266, .(T363, T364))) → U69_ag(T267, T260, T261, T356, T363, T364, ms38_in_aa(T273, .(T356, T365)))
U69_ag(T267, T260, T261, T356, T363, T364, ms38_out_aa(T273, .(T356, T365))) → U70_ag(T267, T260, T261, T356, T363, T364, T365, less78_in_ga(T356, T363))
U70_ag(T267, T260, T261, T356, T363, T364, T365, less78_out_ga(T356, T363)) → U71_ag(T267, T260, T261, T356, merge93_in_aa(.(T363, T364), T365))
U71_ag(T267, T260, T261, T356, merge93_out_aa(.(T363, T364), T365)) → ms1_out_ag(.(T267, .(T260, T261)), .(T356, []))
ms1_in_ag(.(T407, .(T405, T406)), T387) → U72_ag(T407, T405, T406, T387, split12_in_aaaa(T405, T406, X523, X522))
U72_ag(T407, T405, T406, T387, split12_out_aaaa(T405, T406, X523, X522)) → ms1_out_ag(.(T407, .(T405, T406)), T387)
ms1_in_ag(.(T412, .(T405, T406)), T387) → U73_ag(T412, T405, T406, T387, split12_in_aaaa(T405, T406, T410, T411))
U73_ag(T412, T405, T406, T387, split12_out_aaaa(T405, T406, T410, T411)) → U74_ag(T412, T405, T406, T387, ms25_in_aaa(T412, T411, X494))
U74_ag(T412, T405, T406, T387, ms25_out_aaa(T412, T411, X494)) → ms1_out_ag(.(T412, .(T405, T406)), T387)
ms1_in_ag(.(T412, .(T405, T406)), T387) → U75_ag(T412, T405, T406, T387, split12_in_aaaa(T405, T406, T420, T411))
U75_ag(T412, T405, T406, T387, split12_out_aaaa(T405, T406, T420, T411)) → U76_ag(T412, T405, T406, T387, T420, ms25_in_aaa(T412, T411, T419))
U76_ag(T412, T405, T406, T387, T420, ms25_out_aaa(T412, T411, T419)) → U77_ag(T412, T405, T406, T387, ms38_in_aa(T420, X495))
U77_ag(T412, T405, T406, T387, ms38_out_aa(T420, X495)) → ms1_out_ag(.(T412, .(T405, T406)), T387)
ms1_in_ag(.(T412, .(T405, T406)), T435) → U78_ag(T412, T405, T406, T435, split12_in_aaaa(T405, T406, T420, T411))
U78_ag(T412, T405, T406, T435, split12_out_aaaa(T405, T406, T420, T411)) → U79_ag(T412, T405, T406, T435, T420, ms25_in_aag(T412, T411, []))
U79_ag(T412, T405, T406, T435, T420, ms25_out_aag(T412, T411, [])) → U80_ag(T412, T405, T406, T435, ms38_in_ag(T420, T435))
U80_ag(T412, T405, T406, T435, ms38_out_ag(T420, T435)) → ms1_out_ag(.(T412, .(T405, T406)), T435)
ms1_in_ag(.(T412, .(T405, T406)), T440) → U81_ag(T412, T405, T406, T440, split12_in_aaaa(T405, T406, T420, T411))
U81_ag(T412, T405, T406, T440, split12_out_aaaa(T405, T406, T420, T411)) → U82_ag(T412, T405, T406, T440, T420, ms25_in_aag(T412, T411, T440))
U82_ag(T412, T405, T406, T440, T420, ms25_out_aag(T412, T411, T440)) → U83_ag(T412, T405, T406, T440, ms38_in_ag(T420, []))
U83_ag(T412, T405, T406, T440, ms38_out_ag(T420, [])) → ms1_out_ag(.(T412, .(T405, T406)), T440)
ms1_in_ag(.(T412, .(T405, T406)), .(T461, T465)) → U84_ag(T412, T405, T406, T461, T465, split12_in_aaaa(T405, T406, T420, T411))
U84_ag(T412, T405, T406, T461, T465, split12_out_aaaa(T405, T406, T420, T411)) → U85_ag(T412, T405, T406, T461, T465, T420, ms25_in_aaa(T412, T411, .(T461, T467)))
U85_ag(T412, T405, T406, T461, T465, T420, ms25_out_aaa(T412, T411, .(T461, T467))) → U86_ag(T412, T405, T406, T461, T465, ms38_in_aa(T420, .(T466, T468)))
U86_ag(T412, T405, T406, T461, T465, ms38_out_aa(T420, .(T466, T468))) → U87_ag(T412, T405, T406, T461, T465, less70_in_ga(T461, T466))
U87_ag(T412, T405, T406, T461, T465, less70_out_ga(T461, T466)) → ms1_out_ag(.(T412, .(T405, T406)), .(T461, T465))
ms1_in_ag(.(T412, .(T405, T406)), .(T461, .(T490, T491))) → U88_ag(T412, T405, T406, T461, T490, T491, split12_in_aaaa(T405, T406, T420, T411))
U88_ag(T412, T405, T406, T461, T490, T491, split12_out_aaaa(T405, T406, T420, T411)) → U89_ag(T412, T405, T406, T461, T490, T491, T420, ms25_in_aag(T412, T411, .(T461, [])))
U89_ag(T412, T405, T406, T461, T490, T491, T420, ms25_out_aag(T412, T411, .(T461, []))) → U90_ag(T412, T405, T406, T461, T490, T491, ms38_in_ag(T420, .(T490, T491)))
U90_ag(T412, T405, T406, T461, T490, T491, ms38_out_ag(T420, .(T490, T491))) → U91_ag(T412, T405, T406, T461, T490, T491, less70_in_gg(T461, T490))
less70_in_gg(0, T154) → less70_out_gg(0, T154)
less70_in_gg(s(T161), T162) → U22_gg(T161, T162, less78_in_gg(T161, T162))
less78_in_gg(0, s(T169)) → less78_out_gg(0, s(T169))
less78_in_gg(s(T176), s(T177)) → U20_gg(T176, T177, less78_in_gg(T176, T177))
U20_gg(T176, T177, less78_out_gg(T176, T177)) → less78_out_gg(s(T176), s(T177))
U22_gg(T161, T162, less78_out_gg(T161, T162)) → less70_out_gg(s(T161), T162)
U91_ag(T412, T405, T406, T461, T490, T491, less70_out_gg(T461, T490)) → ms1_out_ag(.(T412, .(T405, T406)), .(T461, .(T490, T491)))
ms1_in_ag(.(T412, .(T405, T406)), .(T461, .(T513, T517))) → U92_ag(T412, T405, T406, T461, T513, T517, split12_in_aaaa(T405, T406, T420, T411))
U92_ag(T412, T405, T406, T461, T513, T517, split12_out_aaaa(T405, T406, T420, T411)) → U93_ag(T412, T405, T406, T461, T513, T517, T420, ms25_in_aaa(T412, T411, .(T461, .(T513, T519))))
U93_ag(T412, T405, T406, T461, T513, T517, T420, ms25_out_aaa(T412, T411, .(T461, .(T513, T519)))) → U94_ag(T412, T405, T406, T461, T513, T517, T519, ms38_in_aa(T420, .(T518, T520)))
U94_ag(T412, T405, T406, T461, T513, T517, T519, ms38_out_aa(T420, .(T518, T520))) → U95_ag(T412, T405, T406, T461, T513, T517, T519, T518, T520, less70_in_ga(T461, T518))
U95_ag(T412, T405, T406, T461, T513, T517, T519, T518, T520, less70_out_ga(T461, T518)) → U96_ag(T412, T405, T406, T461, T513, T517, p179_in_gaaag(T513, T518, T519, T520, T517))
p179_in_gaaag(T513, T518, T519, T520, T517) → U23_gaaag(T513, T518, T519, T520, T517, less70_in_ga(T513, T518))
U23_gaaag(T513, T518, T519, T520, T517, less70_out_ga(T513, T518)) → p179_out_gaaag(T513, T518, T519, T520, T517)
p179_in_gaaag(T513, T540, [], T541, .(T540, T541)) → U24_gaaag(T513, T540, T541, less70_in_gg(T513, T540))
U24_gaaag(T513, T540, T541, less70_out_gg(T513, T540)) → p179_out_gaaag(T513, T540, [], T541, .(T540, T541))
p179_in_gaaag(T513, T568, .(T563, T569), T570, .(T563, T567)) → U25_gaaag(T513, T568, T563, T569, T570, T567, less70_in_ga(T513, T568))
U25_gaaag(T513, T568, T563, T569, T570, T567, less70_out_ga(T513, T568)) → U26_gaaag(T513, T568, T563, T569, T570, T567, p179_in_gaaag(T563, T568, T569, T570, T567))
p179_in_gaaag(T513, T585, .(T588, T590), T589, .(T585, T587)) → U27_gaaag(T513, T585, T588, T590, T589, T587, less70_in_gg(T513, T585))
U27_gaaag(T513, T585, T588, T590, T589, T587, less70_out_gg(T513, T585)) → U28_gaaag(T513, T585, T588, T590, T589, T587, p194_in_gaaag(T585, T588, T590, T589, T587))
p194_in_gaaag(T585, T588, T590, T589, T587) → U29_gaaag(T585, T588, T590, T589, T587, less78_in_ga(T585, T588))
U29_gaaag(T585, T588, T590, T589, T587, less78_out_ga(T585, T588)) → p194_out_gaaag(T585, T588, T590, T589, T587)
p194_in_gaaag(T585, T610, T611, [], .(T610, T611)) → U30_gaaag(T585, T610, T611, less78_in_gg(T585, T610))
U30_gaaag(T585, T610, T611, less78_out_gg(T585, T610)) → p194_out_gaaag(T585, T610, T611, [], .(T610, T611))
p194_in_gaaag(T585, T632, T638, .(T637, T639), .(T632, T636)) → U31_gaaag(T585, T632, T638, T637, T639, T636, less78_in_gg(T585, T632))
U31_gaaag(T585, T632, T638, T637, T639, T636, less78_out_gg(T585, T632)) → U32_gaaag(T585, T632, T638, T637, T639, T636, p179_in_gaaag(T632, T637, T638, T639, T636))
U32_gaaag(T585, T632, T638, T637, T639, T636, p179_out_gaaag(T632, T637, T638, T639, T636)) → p194_out_gaaag(T585, T632, T638, .(T637, T639), .(T632, T636))
p194_in_gaaag(T585, T657, T659, .(T654, T658), .(T654, T656)) → U33_gaaag(T585, T657, T659, T654, T658, T656, less78_in_ga(T585, T657))
U33_gaaag(T585, T657, T659, T654, T658, T656, less78_out_ga(T585, T657)) → U34_gaaag(T585, T657, T659, T654, T658, T656, p194_in_gaaag(T654, T657, T659, T658, T656))
U34_gaaag(T585, T657, T659, T654, T658, T656, p194_out_gaaag(T654, T657, T659, T658, T656)) → p194_out_gaaag(T585, T657, T659, .(T654, T658), .(T654, T656))
U28_gaaag(T513, T585, T588, T590, T589, T587, p194_out_gaaag(T585, T588, T590, T589, T587)) → p179_out_gaaag(T513, T585, .(T588, T590), T589, .(T585, T587))
U26_gaaag(T513, T568, T563, T569, T570, T567, p179_out_gaaag(T563, T568, T569, T570, T567)) → p179_out_gaaag(T513, T568, .(T563, T569), T570, .(T563, T567))
U96_ag(T412, T405, T406, T461, T513, T517, p179_out_gaaag(T513, T518, T519, T520, T517)) → ms1_out_ag(.(T412, .(T405, T406)), .(T461, .(T513, T517)))
ms1_in_ag(.(T412, .(T405, T406)), .(T461, .(T674, T676))) → U97_ag(T412, T405, T406, T461, T674, T676, split12_in_aaaa(T405, T406, T420, T411))
U97_ag(T412, T405, T406, T461, T674, T676, split12_out_aaaa(T405, T406, T420, T411)) → U98_ag(T412, T405, T406, T461, T674, T676, T420, ms25_in_aaa(T412, T411, .(T461, .(T677, T679))))
U98_ag(T412, T405, T406, T461, T674, T676, T420, ms25_out_aaa(T412, T411, .(T461, .(T677, T679)))) → U99_ag(T412, T405, T406, T461, T674, T676, T677, T679, ms38_in_aa(T420, .(T674, T678)))
U99_ag(T412, T405, T406, T461, T674, T676, T677, T679, ms38_out_aa(T420, .(T674, T678))) → U100_ag(T412, T405, T406, T461, T674, T676, T677, T679, T678, less70_in_gg(T461, T674))
U100_ag(T412, T405, T406, T461, T674, T676, T677, T679, T678, less70_out_gg(T461, T674)) → U101_ag(T412, T405, T406, T461, T674, T676, p194_in_gaaag(T674, T677, T679, T678, T676))
U101_ag(T412, T405, T406, T461, T674, T676, p194_out_gaaag(T674, T677, T679, T678, T676)) → ms1_out_ag(.(T412, .(T405, T406)), .(T461, .(T674, T676)))
ms1_in_ag(.(T412, .(T405, T406)), .(T694, T696)) → U102_ag(T412, T405, T406, T694, T696, split12_in_aaaa(T405, T406, T420, T411))
U102_ag(T412, T405, T406, T694, T696, split12_out_aaaa(T405, T406, T420, T411)) → U103_ag(T412, T405, T406, T694, T696, T420, ms25_in_aaa(T412, T411, .(T697, T699)))
U103_ag(T412, T405, T406, T694, T696, T420, ms25_out_aaa(T412, T411, .(T697, T699))) → U104_ag(T412, T405, T406, T694, T696, T697, T699, ms38_in_aa(T420, .(T694, T698)))
U104_ag(T412, T405, T406, T694, T696, T697, T699, ms38_out_aa(T420, .(T694, T698))) → U105_ag(T412, T405, T406, T694, T696, p194_in_gaaag(T694, T697, T699, T698, T696))
U105_ag(T412, T405, T406, T694, T696, p194_out_gaaag(T694, T697, T699, T698, T696)) → ms1_out_ag(.(T412, .(T405, T406)), .(T694, T696))
SPLIT16_IN_AAA(.(T49, T51), .(T49, X89), X90) → SPLIT16_IN_AAA(T51, X90, X89)
SPLIT16_IN_AAA → SPLIT16_IN_AAA
P34_IN_AAAAAAAA(T72, T73, T74, T78, T79, X125, X126, X127) → U4_AAAAAAAA(T72, T73, T74, T78, T79, X125, X126, X127, split12_in_aaaa(T72, .(T73, T74), T78, T79))
U4_AAAAAAAA(T72, T73, T74, T78, T79, X125, X126, X127, split12_out_aaaa(T72, .(T73, T74), T78, T79)) → MS38_IN_AA(T78, X125)
MS38_IN_AA(.(T99, .(T100, T101)), X172) → P34_IN_AAAAAAAA(T99, T100, T101, X168, X169, X170, X171, X172)
P34_IN_AAAAAAAA(T72, T73, T74, T78, T84, T83, X126, X127) → U6_AAAAAAAA(T72, T73, T74, T78, T84, T83, X126, X127, split12_in_aaaa(T72, .(T73, T74), T78, T84))
U6_AAAAAAAA(T72, T73, T74, T78, T84, T83, X126, X127, split12_out_aaaa(T72, .(T73, T74), T78, T84)) → U7_AAAAAAAA(T72, T73, T74, T78, T84, T83, X126, X127, ms38_in_aa(T78, T83))
U7_AAAAAAAA(T72, T73, T74, T78, T84, T83, X126, X127, ms38_out_aa(T78, T83)) → MS38_IN_AA(T84, X126)
U6_AAAAAAAA(T72, T73, T74, T78, T84, T83, X126, X127, split12_out_aaaa(T72, .(T73, T74), T78, T84)) → MS38_IN_AA(T78, T83)
P34_IN_AAAAAAAA(T72, T73, T74, T78, T84, T106, T105, X127) → U9_AAAAAAAA(T72, T73, T74, T78, T84, T106, T105, X127, split12_in_aaaa(T72, .(T73, T74), T78, T84))
U9_AAAAAAAA(T72, T73, T74, T78, T84, T106, T105, X127, split12_out_aaaa(T72, .(T73, T74), T78, T84)) → U10_AAAAAAAA(T72, T73, T74, T78, T84, T106, T105, X127, ms38_in_aa(T78, T106))
U10_AAAAAAAA(T72, T73, T74, T78, T84, T106, T105, X127, ms38_out_aa(T78, T106)) → MS38_IN_AA(T84, T105)
U9_AAAAAAAA(T72, T73, T74, T78, T84, T106, T105, X127, split12_out_aaaa(T72, .(T73, T74), T78, T84)) → MS38_IN_AA(T78, T106)
ms1_in_ag([], []) → ms1_out_ag([], [])
ms1_in_ag(.(T29, .(T27, T28)), []) → U35_ag(T29, T27, T28, split12_in_aaaa(T27, T28, X42, X41))
split12_in_aaaa(T42, T44, .(T42, X71), X72) → U2_aaaa(T42, T44, X71, X72, split16_in_aaa(T44, X72, X71))
split16_in_aaa([], [], []) → split16_out_aaa([], [], [])
split16_in_aaa(.(T49, T51), .(T49, X89), X90) → U1_aaa(T49, T51, X89, X90, split16_in_aaa(T51, X90, X89))
U1_aaa(T49, T51, X89, X90, split16_out_aaa(T51, X90, X89)) → split16_out_aaa(.(T49, T51), .(T49, X89), X90)
U2_aaaa(T42, T44, X71, X72, split16_out_aaa(T44, X72, X71)) → split12_out_aaaa(T42, T44, .(T42, X71), X72)
U35_ag(T29, T27, T28, split12_out_aaaa(T27, T28, X42, X41)) → ms1_out_ag(.(T29, .(T27, T28)), [])
ms1_in_ag(.(T34, .(T27, T28)), []) → U36_ag(T34, T27, T28, split12_in_aaaa(T27, T28, T32, T33))
U36_ag(T34, T27, T28, split12_out_aaaa(T27, T28, T32, T33)) → U37_ag(T34, T27, T28, ms25_in_aaa(T34, T33, X13))
ms25_in_aaa(T62, [], .(T62, [])) → ms25_out_aaa(T62, [], .(T62, []))
ms25_in_aaa(T72, .(T73, T74), X127) → U21_aaa(T72, T73, T74, X127, p34_in_aaaaaaaa(T72, T73, T74, X123, X124, X125, X126, X127))
p34_in_aaaaaaaa(T72, T73, T74, X123, X124, X125, X126, X127) → U3_aaaaaaaa(T72, T73, T74, X123, X124, X125, X126, X127, split12_in_aaaa(T72, .(T73, T74), X123, X124))
U3_aaaaaaaa(T72, T73, T74, X123, X124, X125, X126, X127, split12_out_aaaa(T72, .(T73, T74), X123, X124)) → p34_out_aaaaaaaa(T72, T73, T74, X123, X124, X125, X126, X127)
p34_in_aaaaaaaa(T72, T73, T74, T78, T79, X125, X126, X127) → U4_aaaaaaaa(T72, T73, T74, T78, T79, X125, X126, X127, split12_in_aaaa(T72, .(T73, T74), T78, T79))
U4_aaaaaaaa(T72, T73, T74, T78, T79, X125, X126, X127, split12_out_aaaa(T72, .(T73, T74), T78, T79)) → U5_aaaaaaaa(T72, T73, T74, T78, T79, X125, X126, X127, ms38_in_aa(T78, X125))
ms38_in_aa([], []) → ms38_out_aa([], [])
ms38_in_aa(.(T89, []), .(T89, [])) → ms38_out_aa(.(T89, []), .(T89, []))
ms38_in_aa(.(T99, .(T100, T101)), X172) → U13_aa(T99, T100, T101, X172, p34_in_aaaaaaaa(T99, T100, T101, X168, X169, X170, X171, X172))
p34_in_aaaaaaaa(T72, T73, T74, T78, T84, T83, X126, X127) → U6_aaaaaaaa(T72, T73, T74, T78, T84, T83, X126, X127, split12_in_aaaa(T72, .(T73, T74), T78, T84))
U6_aaaaaaaa(T72, T73, T74, T78, T84, T83, X126, X127, split12_out_aaaa(T72, .(T73, T74), T78, T84)) → U7_aaaaaaaa(T72, T73, T74, T78, T84, T83, X126, X127, ms38_in_aa(T78, T83))
U7_aaaaaaaa(T72, T73, T74, T78, T84, T83, X126, X127, ms38_out_aa(T78, T83)) → U8_aaaaaaaa(T72, T73, T74, T78, T84, T83, X126, X127, ms38_in_aa(T84, X126))
U8_aaaaaaaa(T72, T73, T74, T78, T84, T83, X126, X127, ms38_out_aa(T84, X126)) → p34_out_aaaaaaaa(T72, T73, T74, T78, T84, T83, X126, X127)
p34_in_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127) → U9_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127, split12_in_aaaa(T72, .(T73, T74), T78, T84))
U9_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127, split12_out_aaaa(T72, .(T73, T74), T78, T84)) → U10_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127, ms38_in_aa(T78, T106))
U10_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127, ms38_out_aa(T78, T106)) → U11_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127, ms38_in_aa(T84, T105))
U11_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127, ms38_out_aa(T84, T105)) → U12_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127, merge54_in_aaa(T106, T105, X127))
merge54_in_aaa([], T113, T113) → merge54_out_aaa([], T113, T113)
merge54_in_aaa(T118, [], T118) → merge54_out_aaa(T118, [], T118)
merge54_in_aaa(.(T139, T141), .(T140, T142), .(T139, X226)) → U14_aaa(T139, T141, T140, T142, X226, less70_in_aa(T139, T140))
less70_in_aa(0, T154) → less70_out_aa(0, T154)
less70_in_aa(s(T161), T162) → U22_aa(T161, T162, less78_in_aa(T161, T162))
less78_in_aa(0, s(T169)) → less78_out_aa(0, s(T169))
less78_in_aa(s(T176), s(T177)) → U20_aa(T176, T177, less78_in_aa(T176, T177))
U20_aa(T176, T177, less78_out_aa(T176, T177)) → less78_out_aa(s(T176), s(T177))
U22_aa(T161, T162, less78_out_aa(T161, T162)) → less70_out_aa(s(T161), T162)
U14_aaa(T139, T141, T140, T142, X226, less70_out_aa(T139, T140)) → merge54_out_aaa(.(T139, T141), .(T140, T142), .(T139, X226))
merge54_in_aaa(.(T139, T145), .(T146, T147), .(T139, X226)) → U15_aaa(T139, T145, T146, T147, X226, less70_in_aa(T139, T146))
U15_aaa(T139, T145, T146, T147, X226, less70_out_aa(T139, T146)) → U16_aaa(T139, T145, T146, T147, X226, merge54_in_aaa(T145, .(T146, T147), X226))
merge54_in_aaa(.(T197, T199), .(T196, T198), .(T196, X287)) → U17_aaa(T197, T199, T196, T198, X287, less78_in_aa(T196, T197))
U17_aaa(T197, T199, T196, T198, X287, less78_out_aa(T196, T197)) → merge54_out_aaa(.(T197, T199), .(T196, T198), .(T196, X287))
merge54_in_aaa(.(T202, T203), .(T196, T204), .(T196, X287)) → U18_aaa(T202, T203, T196, T204, X287, less78_in_aa(T196, T202))
U18_aaa(T202, T203, T196, T204, X287, less78_out_aa(T196, T202)) → U19_aaa(T202, T203, T196, T204, X287, merge54_in_aaa(.(T202, T203), T204, X287))
U19_aaa(T202, T203, T196, T204, X287, merge54_out_aaa(.(T202, T203), T204, X287)) → merge54_out_aaa(.(T202, T203), .(T196, T204), .(T196, X287))
U16_aaa(T139, T145, T146, T147, X226, merge54_out_aaa(T145, .(T146, T147), X226)) → merge54_out_aaa(.(T139, T145), .(T146, T147), .(T139, X226))
U12_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127, merge54_out_aaa(T106, T105, X127)) → p34_out_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127)
U13_aa(T99, T100, T101, X172, p34_out_aaaaaaaa(T99, T100, T101, X168, X169, X170, X171, X172)) → ms38_out_aa(.(T99, .(T100, T101)), X172)
U5_aaaaaaaa(T72, T73, T74, T78, T79, X125, X126, X127, ms38_out_aa(T78, X125)) → p34_out_aaaaaaaa(T72, T73, T74, T78, T79, X125, X126, X127)
U21_aaa(T72, T73, T74, X127, p34_out_aaaaaaaa(T72, T73, T74, X123, X124, X125, X126, X127)) → ms25_out_aaa(T72, .(T73, T74), X127)
U37_ag(T34, T27, T28, ms25_out_aaa(T34, T33, X13)) → ms1_out_ag(.(T34, .(T27, T28)), [])
ms1_in_ag(.(T34, .(T27, T28)), []) → U38_ag(T34, T27, T28, split12_in_aaaa(T27, T28, T55, T33))
U38_ag(T34, T27, T28, split12_out_aaaa(T27, T28, T55, T33)) → U39_ag(T34, T27, T28, T55, ms25_in_aaa(T34, T33, T54))
U39_ag(T34, T27, T28, T55, ms25_out_aaa(T34, T33, T54)) → U40_ag(T34, T27, T28, ms38_in_aa(T55, X14))
U40_ag(T34, T27, T28, ms38_out_aa(T55, X14)) → ms1_out_ag(.(T34, .(T27, T28)), [])
U38_ag(T34, T27, T28, split12_out_aaaa(T27, T28, T55, T33)) → U41_ag(T34, T27, T28, T55, ms25_in_aaa(T34, T33, T212))
U41_ag(T34, T27, T28, T55, ms25_out_aaa(T34, T33, T212)) → U42_ag(T34, T27, T28, T212, ms38_in_aa(T55, T211))
U42_ag(T34, T27, T28, T212, ms38_out_aa(T55, T211)) → U43_ag(T34, T27, T28, merge93_in_aa(T212, T211))
merge93_in_aa([], []) → merge93_out_aa([], [])
U43_ag(T34, T27, T28, merge93_out_aa(T212, T211)) → ms1_out_ag(.(T34, .(T27, T28)), [])
ms1_in_ag(.(T234, []), .(T234, [])) → ms1_out_ag(.(T234, []), .(T234, []))
ms1_in_ag(.(T262, .(T260, T261)), .(T242, [])) → U44_ag(T262, T260, T261, T242, split12_in_aaaa(T260, T261, X367, X366))
U44_ag(T262, T260, T261, T242, split12_out_aaaa(T260, T261, X367, X366)) → ms1_out_ag(.(T262, .(T260, T261)), .(T242, []))
ms1_in_ag(.(T267, .(T260, T261)), .(T242, [])) → U45_ag(T267, T260, T261, T242, split12_in_aaaa(T260, T261, T265, T266))
U45_ag(T267, T260, T261, T242, split12_out_aaaa(T260, T261, T265, T266)) → U46_ag(T267, T260, T261, T242, ms25_in_aaa(T267, T266, X338))
U46_ag(T267, T260, T261, T242, ms25_out_aaa(T267, T266, X338)) → ms1_out_ag(.(T267, .(T260, T261)), .(T242, []))
ms1_in_ag(.(T267, .(T260, T261)), .(T242, [])) → U47_ag(T267, T260, T261, T242, split12_in_aaaa(T260, T261, T273, T266))
U47_ag(T267, T260, T261, T242, split12_out_aaaa(T260, T261, T273, T266)) → U48_ag(T267, T260, T261, T242, T273, ms25_in_aaa(T267, T266, T272))
U48_ag(T267, T260, T261, T242, T273, ms25_out_aaa(T267, T266, T272)) → U49_ag(T267, T260, T261, T242, ms38_in_aa(T273, X339))
U49_ag(T267, T260, T261, T242, ms38_out_aa(T273, X339)) → ms1_out_ag(.(T267, .(T260, T261)), .(T242, []))
ms1_in_ag(.(T267, .(T260, T261)), .(T291, [])) → U50_ag(T267, T260, T261, T291, split12_in_aaaa(T260, T261, T273, T266))
U50_ag(T267, T260, T261, T291, split12_out_aaaa(T260, T261, T273, T266)) → U51_ag(T267, T260, T261, T291, T273, ms25_in_aag(T267, T266, []))
ms25_in_aag(T62, [], .(T62, [])) → ms25_out_aag(T62, [], .(T62, []))
ms25_in_aag(T72, .(T73, T74), X127) → U21_aag(T72, T73, T74, X127, p34_in_aaaaaaag(T72, T73, T74, X123, X124, X125, X126, X127))
p34_in_aaaaaaag(T72, T73, T74, X123, X124, X125, X126, X127) → U3_aaaaaaag(T72, T73, T74, X123, X124, X125, X126, X127, split12_in_aaaa(T72, .(T73, T74), X123, X124))
U3_aaaaaaag(T72, T73, T74, X123, X124, X125, X126, X127, split12_out_aaaa(T72, .(T73, T74), X123, X124)) → p34_out_aaaaaaag(T72, T73, T74, X123, X124, X125, X126, X127)
p34_in_aaaaaaag(T72, T73, T74, T78, T79, X125, X126, X127) → U4_aaaaaaag(T72, T73, T74, T78, T79, X125, X126, X127, split12_in_aaaa(T72, .(T73, T74), T78, T79))
U4_aaaaaaag(T72, T73, T74, T78, T79, X125, X126, X127, split12_out_aaaa(T72, .(T73, T74), T78, T79)) → U5_aaaaaaag(T72, T73, T74, T78, T79, X125, X126, X127, ms38_in_aa(T78, X125))
U5_aaaaaaag(T72, T73, T74, T78, T79, X125, X126, X127, ms38_out_aa(T78, X125)) → p34_out_aaaaaaag(T72, T73, T74, T78, T79, X125, X126, X127)
p34_in_aaaaaaag(T72, T73, T74, T78, T84, T83, X126, X127) → U6_aaaaaaag(T72, T73, T74, T78, T84, T83, X126, X127, split12_in_aaaa(T72, .(T73, T74), T78, T84))
U6_aaaaaaag(T72, T73, T74, T78, T84, T83, X126, X127, split12_out_aaaa(T72, .(T73, T74), T78, T84)) → U7_aaaaaaag(T72, T73, T74, T78, T84, T83, X126, X127, ms38_in_aa(T78, T83))
U7_aaaaaaag(T72, T73, T74, T78, T84, T83, X126, X127, ms38_out_aa(T78, T83)) → U8_aaaaaaag(T72, T73, T74, T78, T84, T83, X126, X127, ms38_in_aa(T84, X126))
U8_aaaaaaag(T72, T73, T74, T78, T84, T83, X126, X127, ms38_out_aa(T84, X126)) → p34_out_aaaaaaag(T72, T73, T74, T78, T84, T83, X126, X127)
p34_in_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127) → U9_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127, split12_in_aaaa(T72, .(T73, T74), T78, T84))
U9_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127, split12_out_aaaa(T72, .(T73, T74), T78, T84)) → U10_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127, ms38_in_aa(T78, T106))
U10_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127, ms38_out_aa(T78, T106)) → U11_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127, ms38_in_aa(T84, T105))
U11_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127, ms38_out_aa(T84, T105)) → U12_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127, merge54_in_aag(T106, T105, X127))
merge54_in_aag([], T113, T113) → merge54_out_aag([], T113, T113)
merge54_in_aag(T118, [], T118) → merge54_out_aag(T118, [], T118)
merge54_in_aag(.(T139, T141), .(T140, T142), .(T139, X226)) → U14_aag(T139, T141, T140, T142, X226, less70_in_ga(T139, T140))
less70_in_ga(0, T154) → less70_out_ga(0, T154)
less70_in_ga(s(T161), T162) → U22_ga(T161, T162, less78_in_ga(T161, T162))
less78_in_ga(0, s(T169)) → less78_out_ga(0, s(T169))
less78_in_ga(s(T176), s(T177)) → U20_ga(T176, T177, less78_in_ga(T176, T177))
U20_ga(T176, T177, less78_out_ga(T176, T177)) → less78_out_ga(s(T176), s(T177))
U22_ga(T161, T162, less78_out_ga(T161, T162)) → less70_out_ga(s(T161), T162)
U14_aag(T139, T141, T140, T142, X226, less70_out_ga(T139, T140)) → merge54_out_aag(.(T139, T141), .(T140, T142), .(T139, X226))
merge54_in_aag(.(T139, T145), .(T146, T147), .(T139, X226)) → U15_aag(T139, T145, T146, T147, X226, less70_in_ga(T139, T146))
U15_aag(T139, T145, T146, T147, X226, less70_out_ga(T139, T146)) → U16_aag(T139, T145, T146, T147, X226, merge54_in_aag(T145, .(T146, T147), X226))
merge54_in_aag(.(T197, T199), .(T196, T198), .(T196, X287)) → U17_aag(T197, T199, T196, T198, X287, less78_in_ga(T196, T197))
U17_aag(T197, T199, T196, T198, X287, less78_out_ga(T196, T197)) → merge54_out_aag(.(T197, T199), .(T196, T198), .(T196, X287))
merge54_in_aag(.(T202, T203), .(T196, T204), .(T196, X287)) → U18_aag(T202, T203, T196, T204, X287, less78_in_ga(T196, T202))
U18_aag(T202, T203, T196, T204, X287, less78_out_ga(T196, T202)) → U19_aag(T202, T203, T196, T204, X287, merge54_in_aag(.(T202, T203), T204, X287))
U19_aag(T202, T203, T196, T204, X287, merge54_out_aag(.(T202, T203), T204, X287)) → merge54_out_aag(.(T202, T203), .(T196, T204), .(T196, X287))
U16_aag(T139, T145, T146, T147, X226, merge54_out_aag(T145, .(T146, T147), X226)) → merge54_out_aag(.(T139, T145), .(T146, T147), .(T139, X226))
U12_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127, merge54_out_aag(T106, T105, X127)) → p34_out_aaaaaaag(T72, T73, T74, T78, T84, T106, T105, X127)
U21_aag(T72, T73, T74, X127, p34_out_aaaaaaag(T72, T73, T74, X123, X124, X125, X126, X127)) → ms25_out_aag(T72, .(T73, T74), X127)
U51_ag(T267, T260, T261, T291, T273, ms25_out_aag(T267, T266, [])) → U52_ag(T267, T260, T261, T291, ms38_in_ag(T273, .(T291, [])))
ms38_in_ag([], []) → ms38_out_ag([], [])
ms38_in_ag(.(T89, []), .(T89, [])) → ms38_out_ag(.(T89, []), .(T89, []))
ms38_in_ag(.(T99, .(T100, T101)), X172) → U13_ag(T99, T100, T101, X172, p34_in_aaaaaaag(T99, T100, T101, X168, X169, X170, X171, X172))
U13_ag(T99, T100, T101, X172, p34_out_aaaaaaag(T99, T100, T101, X168, X169, X170, X171, X172)) → ms38_out_ag(.(T99, .(T100, T101)), X172)
U52_ag(T267, T260, T261, T291, ms38_out_ag(T273, .(T291, []))) → ms1_out_ag(.(T267, .(T260, T261)), .(T291, []))
ms1_in_ag(.(T267, .(T260, T261)), .(T301, [])) → U53_ag(T267, T260, T261, T301, split12_in_aaaa(T260, T261, T273, T266))
U53_ag(T267, T260, T261, T301, split12_out_aaaa(T260, T261, T273, T266)) → U54_ag(T267, T260, T261, T301, T273, ms25_in_aag(T267, T266, .(T301, [])))
U54_ag(T267, T260, T261, T301, T273, ms25_out_aag(T267, T266, .(T301, []))) → U55_ag(T267, T260, T261, T301, ms38_in_ag(T273, []))
U55_ag(T267, T260, T261, T301, ms38_out_ag(T273, [])) → ms1_out_ag(.(T267, .(T260, T261)), .(T301, []))
ms1_in_ag(.(T267, .(T260, T261)), .(T318, [])) → U56_ag(T267, T260, T261, T318, split12_in_aaaa(T260, T261, T273, T266))
U56_ag(T267, T260, T261, T318, split12_out_aaaa(T260, T261, T273, T266)) → U57_ag(T267, T260, T261, T318, T273, ms25_in_aaa(T267, T266, .(T318, T323)))
U57_ag(T267, T260, T261, T318, T273, ms25_out_aaa(T267, T266, .(T318, T323))) → U58_ag(T267, T260, T261, T318, ms38_in_aa(T273, .(T322, T324)))
U58_ag(T267, T260, T261, T318, ms38_out_aa(T273, .(T322, T324))) → U59_ag(T267, T260, T261, T318, less70_in_ga(T318, T322))
U59_ag(T267, T260, T261, T318, less70_out_ga(T318, T322)) → ms1_out_ag(.(T267, .(T260, T261)), .(T318, []))
U56_ag(T267, T260, T261, T318, split12_out_aaaa(T260, T261, T273, T266)) → U60_ag(T267, T260, T261, T318, T273, ms25_in_aaa(T267, T266, .(T318, T327)))
U60_ag(T267, T260, T261, T318, T273, ms25_out_aaa(T267, T266, .(T318, T327))) → U61_ag(T267, T260, T261, T318, T327, ms38_in_aa(T273, .(T328, T329)))
U61_ag(T267, T260, T261, T318, T327, ms38_out_aa(T273, .(T328, T329))) → U62_ag(T267, T260, T261, T318, T327, T328, T329, less70_in_ga(T318, T328))
U62_ag(T267, T260, T261, T318, T327, T328, T329, less70_out_ga(T318, T328)) → U63_ag(T267, T260, T261, T318, merge93_in_aa(T327, .(T328, T329)))
U63_ag(T267, T260, T261, T318, merge93_out_aa(T327, .(T328, T329))) → ms1_out_ag(.(T267, .(T260, T261)), .(T318, []))
ms1_in_ag(.(T267, .(T260, T261)), .(T356, [])) → U64_ag(T267, T260, T261, T356, split12_in_aaaa(T260, T261, T273, T266))
U64_ag(T267, T260, T261, T356, split12_out_aaaa(T260, T261, T273, T266)) → U65_ag(T267, T260, T261, T356, T273, ms25_in_aaa(T267, T266, .(T358, T360)))
U65_ag(T267, T260, T261, T356, T273, ms25_out_aaa(T267, T266, .(T358, T360))) → U66_ag(T267, T260, T261, T356, T358, ms38_in_aa(T273, .(T356, T359)))
U66_ag(T267, T260, T261, T356, T358, ms38_out_aa(T273, .(T356, T359))) → U67_ag(T267, T260, T261, T356, less78_in_ga(T356, T358))
U67_ag(T267, T260, T261, T356, less78_out_ga(T356, T358)) → ms1_out_ag(.(T267, .(T260, T261)), .(T356, []))
U64_ag(T267, T260, T261, T356, split12_out_aaaa(T260, T261, T273, T266)) → U68_ag(T267, T260, T261, T356, T273, ms25_in_aaa(T267, T266, .(T363, T364)))
U68_ag(T267, T260, T261, T356, T273, ms25_out_aaa(T267, T266, .(T363, T364))) → U69_ag(T267, T260, T261, T356, T363, T364, ms38_in_aa(T273, .(T356, T365)))
U69_ag(T267, T260, T261, T356, T363, T364, ms38_out_aa(T273, .(T356, T365))) → U70_ag(T267, T260, T261, T356, T363, T364, T365, less78_in_ga(T356, T363))
U70_ag(T267, T260, T261, T356, T363, T364, T365, less78_out_ga(T356, T363)) → U71_ag(T267, T260, T261, T356, merge93_in_aa(.(T363, T364), T365))
U71_ag(T267, T260, T261, T356, merge93_out_aa(.(T363, T364), T365)) → ms1_out_ag(.(T267, .(T260, T261)), .(T356, []))
ms1_in_ag(.(T407, .(T405, T406)), T387) → U72_ag(T407, T405, T406, T387, split12_in_aaaa(T405, T406, X523, X522))
U72_ag(T407, T405, T406, T387, split12_out_aaaa(T405, T406, X523, X522)) → ms1_out_ag(.(T407, .(T405, T406)), T387)
ms1_in_ag(.(T412, .(T405, T406)), T387) → U73_ag(T412, T405, T406, T387, split12_in_aaaa(T405, T406, T410, T411))
U73_ag(T412, T405, T406, T387, split12_out_aaaa(T405, T406, T410, T411)) → U74_ag(T412, T405, T406, T387, ms25_in_aaa(T412, T411, X494))
U74_ag(T412, T405, T406, T387, ms25_out_aaa(T412, T411, X494)) → ms1_out_ag(.(T412, .(T405, T406)), T387)
ms1_in_ag(.(T412, .(T405, T406)), T387) → U75_ag(T412, T405, T406, T387, split12_in_aaaa(T405, T406, T420, T411))
U75_ag(T412, T405, T406, T387, split12_out_aaaa(T405, T406, T420, T411)) → U76_ag(T412, T405, T406, T387, T420, ms25_in_aaa(T412, T411, T419))
U76_ag(T412, T405, T406, T387, T420, ms25_out_aaa(T412, T411, T419)) → U77_ag(T412, T405, T406, T387, ms38_in_aa(T420, X495))
U77_ag(T412, T405, T406, T387, ms38_out_aa(T420, X495)) → ms1_out_ag(.(T412, .(T405, T406)), T387)
ms1_in_ag(.(T412, .(T405, T406)), T435) → U78_ag(T412, T405, T406, T435, split12_in_aaaa(T405, T406, T420, T411))
U78_ag(T412, T405, T406, T435, split12_out_aaaa(T405, T406, T420, T411)) → U79_ag(T412, T405, T406, T435, T420, ms25_in_aag(T412, T411, []))
U79_ag(T412, T405, T406, T435, T420, ms25_out_aag(T412, T411, [])) → U80_ag(T412, T405, T406, T435, ms38_in_ag(T420, T435))
U80_ag(T412, T405, T406, T435, ms38_out_ag(T420, T435)) → ms1_out_ag(.(T412, .(T405, T406)), T435)
ms1_in_ag(.(T412, .(T405, T406)), T440) → U81_ag(T412, T405, T406, T440, split12_in_aaaa(T405, T406, T420, T411))
U81_ag(T412, T405, T406, T440, split12_out_aaaa(T405, T406, T420, T411)) → U82_ag(T412, T405, T406, T440, T420, ms25_in_aag(T412, T411, T440))
U82_ag(T412, T405, T406, T440, T420, ms25_out_aag(T412, T411, T440)) → U83_ag(T412, T405, T406, T440, ms38_in_ag(T420, []))
U83_ag(T412, T405, T406, T440, ms38_out_ag(T420, [])) → ms1_out_ag(.(T412, .(T405, T406)), T440)
ms1_in_ag(.(T412, .(T405, T406)), .(T461, T465)) → U84_ag(T412, T405, T406, T461, T465, split12_in_aaaa(T405, T406, T420, T411))
U84_ag(T412, T405, T406, T461, T465, split12_out_aaaa(T405, T406, T420, T411)) → U85_ag(T412, T405, T406, T461, T465, T420, ms25_in_aaa(T412, T411, .(T461, T467)))
U85_ag(T412, T405, T406, T461, T465, T420, ms25_out_aaa(T412, T411, .(T461, T467))) → U86_ag(T412, T405, T406, T461, T465, ms38_in_aa(T420, .(T466, T468)))
U86_ag(T412, T405, T406, T461, T465, ms38_out_aa(T420, .(T466, T468))) → U87_ag(T412, T405, T406, T461, T465, less70_in_ga(T461, T466))
U87_ag(T412, T405, T406, T461, T465, less70_out_ga(T461, T466)) → ms1_out_ag(.(T412, .(T405, T406)), .(T461, T465))
ms1_in_ag(.(T412, .(T405, T406)), .(T461, .(T490, T491))) → U88_ag(T412, T405, T406, T461, T490, T491, split12_in_aaaa(T405, T406, T420, T411))
U88_ag(T412, T405, T406, T461, T490, T491, split12_out_aaaa(T405, T406, T420, T411)) → U89_ag(T412, T405, T406, T461, T490, T491, T420, ms25_in_aag(T412, T411, .(T461, [])))
U89_ag(T412, T405, T406, T461, T490, T491, T420, ms25_out_aag(T412, T411, .(T461, []))) → U90_ag(T412, T405, T406, T461, T490, T491, ms38_in_ag(T420, .(T490, T491)))
U90_ag(T412, T405, T406, T461, T490, T491, ms38_out_ag(T420, .(T490, T491))) → U91_ag(T412, T405, T406, T461, T490, T491, less70_in_gg(T461, T490))
less70_in_gg(0, T154) → less70_out_gg(0, T154)
less70_in_gg(s(T161), T162) → U22_gg(T161, T162, less78_in_gg(T161, T162))
less78_in_gg(0, s(T169)) → less78_out_gg(0, s(T169))
less78_in_gg(s(T176), s(T177)) → U20_gg(T176, T177, less78_in_gg(T176, T177))
U20_gg(T176, T177, less78_out_gg(T176, T177)) → less78_out_gg(s(T176), s(T177))
U22_gg(T161, T162, less78_out_gg(T161, T162)) → less70_out_gg(s(T161), T162)
U91_ag(T412, T405, T406, T461, T490, T491, less70_out_gg(T461, T490)) → ms1_out_ag(.(T412, .(T405, T406)), .(T461, .(T490, T491)))
ms1_in_ag(.(T412, .(T405, T406)), .(T461, .(T513, T517))) → U92_ag(T412, T405, T406, T461, T513, T517, split12_in_aaaa(T405, T406, T420, T411))
U92_ag(T412, T405, T406, T461, T513, T517, split12_out_aaaa(T405, T406, T420, T411)) → U93_ag(T412, T405, T406, T461, T513, T517, T420, ms25_in_aaa(T412, T411, .(T461, .(T513, T519))))
U93_ag(T412, T405, T406, T461, T513, T517, T420, ms25_out_aaa(T412, T411, .(T461, .(T513, T519)))) → U94_ag(T412, T405, T406, T461, T513, T517, T519, ms38_in_aa(T420, .(T518, T520)))
U94_ag(T412, T405, T406, T461, T513, T517, T519, ms38_out_aa(T420, .(T518, T520))) → U95_ag(T412, T405, T406, T461, T513, T517, T519, T518, T520, less70_in_ga(T461, T518))
U95_ag(T412, T405, T406, T461, T513, T517, T519, T518, T520, less70_out_ga(T461, T518)) → U96_ag(T412, T405, T406, T461, T513, T517, p179_in_gaaag(T513, T518, T519, T520, T517))
p179_in_gaaag(T513, T518, T519, T520, T517) → U23_gaaag(T513, T518, T519, T520, T517, less70_in_ga(T513, T518))
U23_gaaag(T513, T518, T519, T520, T517, less70_out_ga(T513, T518)) → p179_out_gaaag(T513, T518, T519, T520, T517)
p179_in_gaaag(T513, T540, [], T541, .(T540, T541)) → U24_gaaag(T513, T540, T541, less70_in_gg(T513, T540))
U24_gaaag(T513, T540, T541, less70_out_gg(T513, T540)) → p179_out_gaaag(T513, T540, [], T541, .(T540, T541))
p179_in_gaaag(T513, T568, .(T563, T569), T570, .(T563, T567)) → U25_gaaag(T513, T568, T563, T569, T570, T567, less70_in_ga(T513, T568))
U25_gaaag(T513, T568, T563, T569, T570, T567, less70_out_ga(T513, T568)) → U26_gaaag(T513, T568, T563, T569, T570, T567, p179_in_gaaag(T563, T568, T569, T570, T567))
p179_in_gaaag(T513, T585, .(T588, T590), T589, .(T585, T587)) → U27_gaaag(T513, T585, T588, T590, T589, T587, less70_in_gg(T513, T585))
U27_gaaag(T513, T585, T588, T590, T589, T587, less70_out_gg(T513, T585)) → U28_gaaag(T513, T585, T588, T590, T589, T587, p194_in_gaaag(T585, T588, T590, T589, T587))
p194_in_gaaag(T585, T588, T590, T589, T587) → U29_gaaag(T585, T588, T590, T589, T587, less78_in_ga(T585, T588))
U29_gaaag(T585, T588, T590, T589, T587, less78_out_ga(T585, T588)) → p194_out_gaaag(T585, T588, T590, T589, T587)
p194_in_gaaag(T585, T610, T611, [], .(T610, T611)) → U30_gaaag(T585, T610, T611, less78_in_gg(T585, T610))
U30_gaaag(T585, T610, T611, less78_out_gg(T585, T610)) → p194_out_gaaag(T585, T610, T611, [], .(T610, T611))
p194_in_gaaag(T585, T632, T638, .(T637, T639), .(T632, T636)) → U31_gaaag(T585, T632, T638, T637, T639, T636, less78_in_gg(T585, T632))
U31_gaaag(T585, T632, T638, T637, T639, T636, less78_out_gg(T585, T632)) → U32_gaaag(T585, T632, T638, T637, T639, T636, p179_in_gaaag(T632, T637, T638, T639, T636))
U32_gaaag(T585, T632, T638, T637, T639, T636, p179_out_gaaag(T632, T637, T638, T639, T636)) → p194_out_gaaag(T585, T632, T638, .(T637, T639), .(T632, T636))
p194_in_gaaag(T585, T657, T659, .(T654, T658), .(T654, T656)) → U33_gaaag(T585, T657, T659, T654, T658, T656, less78_in_ga(T585, T657))
U33_gaaag(T585, T657, T659, T654, T658, T656, less78_out_ga(T585, T657)) → U34_gaaag(T585, T657, T659, T654, T658, T656, p194_in_gaaag(T654, T657, T659, T658, T656))
U34_gaaag(T585, T657, T659, T654, T658, T656, p194_out_gaaag(T654, T657, T659, T658, T656)) → p194_out_gaaag(T585, T657, T659, .(T654, T658), .(T654, T656))
U28_gaaag(T513, T585, T588, T590, T589, T587, p194_out_gaaag(T585, T588, T590, T589, T587)) → p179_out_gaaag(T513, T585, .(T588, T590), T589, .(T585, T587))
U26_gaaag(T513, T568, T563, T569, T570, T567, p179_out_gaaag(T563, T568, T569, T570, T567)) → p179_out_gaaag(T513, T568, .(T563, T569), T570, .(T563, T567))
U96_ag(T412, T405, T406, T461, T513, T517, p179_out_gaaag(T513, T518, T519, T520, T517)) → ms1_out_ag(.(T412, .(T405, T406)), .(T461, .(T513, T517)))
ms1_in_ag(.(T412, .(T405, T406)), .(T461, .(T674, T676))) → U97_ag(T412, T405, T406, T461, T674, T676, split12_in_aaaa(T405, T406, T420, T411))
U97_ag(T412, T405, T406, T461, T674, T676, split12_out_aaaa(T405, T406, T420, T411)) → U98_ag(T412, T405, T406, T461, T674, T676, T420, ms25_in_aaa(T412, T411, .(T461, .(T677, T679))))
U98_ag(T412, T405, T406, T461, T674, T676, T420, ms25_out_aaa(T412, T411, .(T461, .(T677, T679)))) → U99_ag(T412, T405, T406, T461, T674, T676, T677, T679, ms38_in_aa(T420, .(T674, T678)))
U99_ag(T412, T405, T406, T461, T674, T676, T677, T679, ms38_out_aa(T420, .(T674, T678))) → U100_ag(T412, T405, T406, T461, T674, T676, T677, T679, T678, less70_in_gg(T461, T674))
U100_ag(T412, T405, T406, T461, T674, T676, T677, T679, T678, less70_out_gg(T461, T674)) → U101_ag(T412, T405, T406, T461, T674, T676, p194_in_gaaag(T674, T677, T679, T678, T676))
U101_ag(T412, T405, T406, T461, T674, T676, p194_out_gaaag(T674, T677, T679, T678, T676)) → ms1_out_ag(.(T412, .(T405, T406)), .(T461, .(T674, T676)))
ms1_in_ag(.(T412, .(T405, T406)), .(T694, T696)) → U102_ag(T412, T405, T406, T694, T696, split12_in_aaaa(T405, T406, T420, T411))
U102_ag(T412, T405, T406, T694, T696, split12_out_aaaa(T405, T406, T420, T411)) → U103_ag(T412, T405, T406, T694, T696, T420, ms25_in_aaa(T412, T411, .(T697, T699)))
U103_ag(T412, T405, T406, T694, T696, T420, ms25_out_aaa(T412, T411, .(T697, T699))) → U104_ag(T412, T405, T406, T694, T696, T697, T699, ms38_in_aa(T420, .(T694, T698)))
U104_ag(T412, T405, T406, T694, T696, T697, T699, ms38_out_aa(T420, .(T694, T698))) → U105_ag(T412, T405, T406, T694, T696, p194_in_gaaag(T694, T697, T699, T698, T696))
U105_ag(T412, T405, T406, T694, T696, p194_out_gaaag(T694, T697, T699, T698, T696)) → ms1_out_ag(.(T412, .(T405, T406)), .(T694, T696))
P34_IN_AAAAAAAA(T72, T73, T74, T78, T79, X125, X126, X127) → U4_AAAAAAAA(T72, T73, T74, T78, T79, X125, X126, X127, split12_in_aaaa(T72, .(T73, T74), T78, T79))
U4_AAAAAAAA(T72, T73, T74, T78, T79, X125, X126, X127, split12_out_aaaa(T72, .(T73, T74), T78, T79)) → MS38_IN_AA(T78, X125)
MS38_IN_AA(.(T99, .(T100, T101)), X172) → P34_IN_AAAAAAAA(T99, T100, T101, X168, X169, X170, X171, X172)
P34_IN_AAAAAAAA(T72, T73, T74, T78, T84, T83, X126, X127) → U6_AAAAAAAA(T72, T73, T74, T78, T84, T83, X126, X127, split12_in_aaaa(T72, .(T73, T74), T78, T84))
U6_AAAAAAAA(T72, T73, T74, T78, T84, T83, X126, X127, split12_out_aaaa(T72, .(T73, T74), T78, T84)) → U7_AAAAAAAA(T72, T73, T74, T78, T84, T83, X126, X127, ms38_in_aa(T78, T83))
U7_AAAAAAAA(T72, T73, T74, T78, T84, T83, X126, X127, ms38_out_aa(T78, T83)) → MS38_IN_AA(T84, X126)
U6_AAAAAAAA(T72, T73, T74, T78, T84, T83, X126, X127, split12_out_aaaa(T72, .(T73, T74), T78, T84)) → MS38_IN_AA(T78, T83)
P34_IN_AAAAAAAA(T72, T73, T74, T78, T84, T106, T105, X127) → U9_AAAAAAAA(T72, T73, T74, T78, T84, T106, T105, X127, split12_in_aaaa(T72, .(T73, T74), T78, T84))
U9_AAAAAAAA(T72, T73, T74, T78, T84, T106, T105, X127, split12_out_aaaa(T72, .(T73, T74), T78, T84)) → U10_AAAAAAAA(T72, T73, T74, T78, T84, T106, T105, X127, ms38_in_aa(T78, T106))
U10_AAAAAAAA(T72, T73, T74, T78, T84, T106, T105, X127, ms38_out_aa(T78, T106)) → MS38_IN_AA(T84, T105)
U9_AAAAAAAA(T72, T73, T74, T78, T84, T106, T105, X127, split12_out_aaaa(T72, .(T73, T74), T78, T84)) → MS38_IN_AA(T78, T106)
split12_in_aaaa(T42, T44, .(T42, X71), X72) → U2_aaaa(T42, T44, X71, X72, split16_in_aaa(T44, X72, X71))
ms38_in_aa([], []) → ms38_out_aa([], [])
ms38_in_aa(.(T89, []), .(T89, [])) → ms38_out_aa(.(T89, []), .(T89, []))
ms38_in_aa(.(T99, .(T100, T101)), X172) → U13_aa(T99, T100, T101, X172, p34_in_aaaaaaaa(T99, T100, T101, X168, X169, X170, X171, X172))
U2_aaaa(T42, T44, X71, X72, split16_out_aaa(T44, X72, X71)) → split12_out_aaaa(T42, T44, .(T42, X71), X72)
U13_aa(T99, T100, T101, X172, p34_out_aaaaaaaa(T99, T100, T101, X168, X169, X170, X171, X172)) → ms38_out_aa(.(T99, .(T100, T101)), X172)
split16_in_aaa([], [], []) → split16_out_aaa([], [], [])
split16_in_aaa(.(T49, T51), .(T49, X89), X90) → U1_aaa(T49, T51, X89, X90, split16_in_aaa(T51, X90, X89))
p34_in_aaaaaaaa(T72, T73, T74, X123, X124, X125, X126, X127) → U3_aaaaaaaa(T72, T73, T74, X123, X124, X125, X126, X127, split12_in_aaaa(T72, .(T73, T74), X123, X124))
p34_in_aaaaaaaa(T72, T73, T74, T78, T79, X125, X126, X127) → U4_aaaaaaaa(T72, T73, T74, T78, T79, X125, X126, X127, split12_in_aaaa(T72, .(T73, T74), T78, T79))
p34_in_aaaaaaaa(T72, T73, T74, T78, T84, T83, X126, X127) → U6_aaaaaaaa(T72, T73, T74, T78, T84, T83, X126, X127, split12_in_aaaa(T72, .(T73, T74), T78, T84))
p34_in_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127) → U9_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127, split12_in_aaaa(T72, .(T73, T74), T78, T84))
U1_aaa(T49, T51, X89, X90, split16_out_aaa(T51, X90, X89)) → split16_out_aaa(.(T49, T51), .(T49, X89), X90)
U3_aaaaaaaa(T72, T73, T74, X123, X124, X125, X126, X127, split12_out_aaaa(T72, .(T73, T74), X123, X124)) → p34_out_aaaaaaaa(T72, T73, T74, X123, X124, X125, X126, X127)
U4_aaaaaaaa(T72, T73, T74, T78, T79, X125, X126, X127, split12_out_aaaa(T72, .(T73, T74), T78, T79)) → U5_aaaaaaaa(T72, T73, T74, T78, T79, X125, X126, X127, ms38_in_aa(T78, X125))
U6_aaaaaaaa(T72, T73, T74, T78, T84, T83, X126, X127, split12_out_aaaa(T72, .(T73, T74), T78, T84)) → U7_aaaaaaaa(T72, T73, T74, T78, T84, T83, X126, X127, ms38_in_aa(T78, T83))
U9_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127, split12_out_aaaa(T72, .(T73, T74), T78, T84)) → U10_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127, ms38_in_aa(T78, T106))
U5_aaaaaaaa(T72, T73, T74, T78, T79, X125, X126, X127, ms38_out_aa(T78, X125)) → p34_out_aaaaaaaa(T72, T73, T74, T78, T79, X125, X126, X127)
U7_aaaaaaaa(T72, T73, T74, T78, T84, T83, X126, X127, ms38_out_aa(T78, T83)) → U8_aaaaaaaa(T72, T73, T74, T78, T84, T83, X126, X127, ms38_in_aa(T84, X126))
U10_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127, ms38_out_aa(T78, T106)) → U11_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127, ms38_in_aa(T84, T105))
U8_aaaaaaaa(T72, T73, T74, T78, T84, T83, X126, X127, ms38_out_aa(T84, X126)) → p34_out_aaaaaaaa(T72, T73, T74, T78, T84, T83, X126, X127)
U11_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127, ms38_out_aa(T84, T105)) → U12_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127, merge54_in_aaa(T106, T105, X127))
U12_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127, merge54_out_aaa(T106, T105, X127)) → p34_out_aaaaaaaa(T72, T73, T74, T78, T84, T106, T105, X127)
merge54_in_aaa([], T113, T113) → merge54_out_aaa([], T113, T113)
merge54_in_aaa(T118, [], T118) → merge54_out_aaa(T118, [], T118)
merge54_in_aaa(.(T139, T141), .(T140, T142), .(T139, X226)) → U14_aaa(T139, T141, T140, T142, X226, less70_in_aa(T139, T140))
merge54_in_aaa(.(T139, T145), .(T146, T147), .(T139, X226)) → U15_aaa(T139, T145, T146, T147, X226, less70_in_aa(T139, T146))
merge54_in_aaa(.(T197, T199), .(T196, T198), .(T196, X287)) → U17_aaa(T197, T199, T196, T198, X287, less78_in_aa(T196, T197))
merge54_in_aaa(.(T202, T203), .(T196, T204), .(T196, X287)) → U18_aaa(T202, T203, T196, T204, X287, less78_in_aa(T196, T202))
U14_aaa(T139, T141, T140, T142, X226, less70_out_aa(T139, T140)) → merge54_out_aaa(.(T139, T141), .(T140, T142), .(T139, X226))
U15_aaa(T139, T145, T146, T147, X226, less70_out_aa(T139, T146)) → U16_aaa(T139, T145, T146, T147, X226, merge54_in_aaa(T145, .(T146, T147), X226))
U17_aaa(T197, T199, T196, T198, X287, less78_out_aa(T196, T197)) → merge54_out_aaa(.(T197, T199), .(T196, T198), .(T196, X287))
U18_aaa(T202, T203, T196, T204, X287, less78_out_aa(T196, T202)) → U19_aaa(T202, T203, T196, T204, X287, merge54_in_aaa(.(T202, T203), T204, X287))
less70_in_aa(0, T154) → less70_out_aa(0, T154)
less70_in_aa(s(T161), T162) → U22_aa(T161, T162, less78_in_aa(T161, T162))
U16_aaa(T139, T145, T146, T147, X226, merge54_out_aaa(T145, .(T146, T147), X226)) → merge54_out_aaa(.(T139, T145), .(T146, T147), .(T139, X226))
less78_in_aa(0, s(T169)) → less78_out_aa(0, s(T169))
less78_in_aa(s(T176), s(T177)) → U20_aa(T176, T177, less78_in_aa(T176, T177))
U19_aaa(T202, T203, T196, T204, X287, merge54_out_aaa(.(T202, T203), T204, X287)) → merge54_out_aaa(.(T202, T203), .(T196, T204), .(T196, X287))
U22_aa(T161, T162, less78_out_aa(T161, T162)) → less70_out_aa(s(T161), T162)
U20_aa(T176, T177, less78_out_aa(T176, T177)) → less78_out_aa(s(T176), s(T177))
P34_IN_AAAAAAAA → U4_AAAAAAAA(split12_in_aaaa)
U4_AAAAAAAA(split12_out_aaaa) → MS38_IN_AA
MS38_IN_AA → P34_IN_AAAAAAAA
P34_IN_AAAAAAAA → U6_AAAAAAAA(split12_in_aaaa)
U6_AAAAAAAA(split12_out_aaaa) → U7_AAAAAAAA(ms38_in_aa)
U7_AAAAAAAA(ms38_out_aa) → MS38_IN_AA
U6_AAAAAAAA(split12_out_aaaa) → MS38_IN_AA
P34_IN_AAAAAAAA → U9_AAAAAAAA(split12_in_aaaa)
U9_AAAAAAAA(split12_out_aaaa) → U10_AAAAAAAA(ms38_in_aa)
U10_AAAAAAAA(ms38_out_aa) → MS38_IN_AA
U9_AAAAAAAA(split12_out_aaaa) → MS38_IN_AA
split12_in_aaaa → U2_aaaa(split16_in_aaa)
ms38_in_aa → ms38_out_aa
ms38_in_aa → U13_aa(p34_in_aaaaaaaa)
U2_aaaa(split16_out_aaa) → split12_out_aaaa
U13_aa(p34_out_aaaaaaaa) → ms38_out_aa
split16_in_aaa → split16_out_aaa
split16_in_aaa → U1_aaa(split16_in_aaa)
p34_in_aaaaaaaa → U3_aaaaaaaa(split12_in_aaaa)
p34_in_aaaaaaaa → U4_aaaaaaaa(split12_in_aaaa)
p34_in_aaaaaaaa → U6_aaaaaaaa(split12_in_aaaa)
p34_in_aaaaaaaa → U9_aaaaaaaa(split12_in_aaaa)
U1_aaa(split16_out_aaa) → split16_out_aaa
U3_aaaaaaaa(split12_out_aaaa) → p34_out_aaaaaaaa
U4_aaaaaaaa(split12_out_aaaa) → U5_aaaaaaaa(ms38_in_aa)
U6_aaaaaaaa(split12_out_aaaa) → U7_aaaaaaaa(ms38_in_aa)
U9_aaaaaaaa(split12_out_aaaa) → U10_aaaaaaaa(ms38_in_aa)
U5_aaaaaaaa(ms38_out_aa) → p34_out_aaaaaaaa
U7_aaaaaaaa(ms38_out_aa) → U8_aaaaaaaa(ms38_in_aa)
U10_aaaaaaaa(ms38_out_aa) → U11_aaaaaaaa(ms38_in_aa)
U8_aaaaaaaa(ms38_out_aa) → p34_out_aaaaaaaa
U11_aaaaaaaa(ms38_out_aa) → U12_aaaaaaaa(merge54_in_aaa)
U12_aaaaaaaa(merge54_out_aaa) → p34_out_aaaaaaaa
merge54_in_aaa → merge54_out_aaa
merge54_in_aaa → U14_aaa(less70_in_aa)
merge54_in_aaa → U15_aaa(less70_in_aa)
merge54_in_aaa → U17_aaa(less78_in_aa)
merge54_in_aaa → U18_aaa(less78_in_aa)
U14_aaa(less70_out_aa(T139)) → merge54_out_aaa
U15_aaa(less70_out_aa(T139)) → U16_aaa(merge54_in_aaa)
U17_aaa(less78_out_aa(T196)) → merge54_out_aaa
U18_aaa(less78_out_aa(T196)) → U19_aaa(merge54_in_aaa)
less70_in_aa → less70_out_aa(0)
less70_in_aa → U22_aa(less78_in_aa)
U16_aaa(merge54_out_aaa) → merge54_out_aaa
less78_in_aa → less78_out_aa(0)
less78_in_aa → U20_aa(less78_in_aa)
U19_aaa(merge54_out_aaa) → merge54_out_aaa
U22_aa(less78_out_aa(T161)) → less70_out_aa(s(T161))
U20_aa(less78_out_aa(T176)) → less78_out_aa(s(T176))
split12_in_aaaa
ms38_in_aa
U2_aaaa(x0)
U13_aa(x0)
split16_in_aaa
p34_in_aaaaaaaa
U1_aaa(x0)
U3_aaaaaaaa(x0)
U4_aaaaaaaa(x0)
U6_aaaaaaaa(x0)
U9_aaaaaaaa(x0)
U5_aaaaaaaa(x0)
U7_aaaaaaaa(x0)
U10_aaaaaaaa(x0)
U8_aaaaaaaa(x0)
U11_aaaaaaaa(x0)
U12_aaaaaaaa(x0)
merge54_in_aaa
U14_aaa(x0)
U15_aaa(x0)
U17_aaa(x0)
U18_aaa(x0)
less70_in_aa
U16_aaa(x0)
less78_in_aa
U19_aaa(x0)
U22_aa(x0)
U20_aa(x0)
P34_IN_AAAAAAAA → U4_AAAAAAAA(U2_aaaa(split16_in_aaa))
U4_AAAAAAAA(split12_out_aaaa) → MS38_IN_AA
MS38_IN_AA → P34_IN_AAAAAAAA
P34_IN_AAAAAAAA → U6_AAAAAAAA(split12_in_aaaa)
U6_AAAAAAAA(split12_out_aaaa) → U7_AAAAAAAA(ms38_in_aa)
U7_AAAAAAAA(ms38_out_aa) → MS38_IN_AA
U6_AAAAAAAA(split12_out_aaaa) → MS38_IN_AA
P34_IN_AAAAAAAA → U9_AAAAAAAA(split12_in_aaaa)
U9_AAAAAAAA(split12_out_aaaa) → U10_AAAAAAAA(ms38_in_aa)
U10_AAAAAAAA(ms38_out_aa) → MS38_IN_AA
U9_AAAAAAAA(split12_out_aaaa) → MS38_IN_AA
P34_IN_AAAAAAAA → U4_AAAAAAAA(U2_aaaa(split16_in_aaa))
split12_in_aaaa → U2_aaaa(split16_in_aaa)
ms38_in_aa → ms38_out_aa
ms38_in_aa → U13_aa(p34_in_aaaaaaaa)
U2_aaaa(split16_out_aaa) → split12_out_aaaa
U13_aa(p34_out_aaaaaaaa) → ms38_out_aa
split16_in_aaa → split16_out_aaa
split16_in_aaa → U1_aaa(split16_in_aaa)
p34_in_aaaaaaaa → U3_aaaaaaaa(split12_in_aaaa)
p34_in_aaaaaaaa → U4_aaaaaaaa(split12_in_aaaa)
p34_in_aaaaaaaa → U6_aaaaaaaa(split12_in_aaaa)
p34_in_aaaaaaaa → U9_aaaaaaaa(split12_in_aaaa)
U1_aaa(split16_out_aaa) → split16_out_aaa
U3_aaaaaaaa(split12_out_aaaa) → p34_out_aaaaaaaa
U4_aaaaaaaa(split12_out_aaaa) → U5_aaaaaaaa(ms38_in_aa)
U6_aaaaaaaa(split12_out_aaaa) → U7_aaaaaaaa(ms38_in_aa)
U9_aaaaaaaa(split12_out_aaaa) → U10_aaaaaaaa(ms38_in_aa)
U5_aaaaaaaa(ms38_out_aa) → p34_out_aaaaaaaa
U7_aaaaaaaa(ms38_out_aa) → U8_aaaaaaaa(ms38_in_aa)
U10_aaaaaaaa(ms38_out_aa) → U11_aaaaaaaa(ms38_in_aa)
U8_aaaaaaaa(ms38_out_aa) → p34_out_aaaaaaaa
U11_aaaaaaaa(ms38_out_aa) → U12_aaaaaaaa(merge54_in_aaa)
U12_aaaaaaaa(merge54_out_aaa) → p34_out_aaaaaaaa
merge54_in_aaa → merge54_out_aaa
merge54_in_aaa → U14_aaa(less70_in_aa)
merge54_in_aaa → U15_aaa(less70_in_aa)
merge54_in_aaa → U17_aaa(less78_in_aa)
merge54_in_aaa → U18_aaa(less78_in_aa)
U14_aaa(less70_out_aa(T139)) → merge54_out_aaa
U15_aaa(less70_out_aa(T139)) → U16_aaa(merge54_in_aaa)
U17_aaa(less78_out_aa(T196)) → merge54_out_aaa
U18_aaa(less78_out_aa(T196)) → U19_aaa(merge54_in_aaa)
less70_in_aa → less70_out_aa(0)
less70_in_aa → U22_aa(less78_in_aa)
U16_aaa(merge54_out_aaa) → merge54_out_aaa
less78_in_aa → less78_out_aa(0)
less78_in_aa → U20_aa(less78_in_aa)
U19_aaa(merge54_out_aaa) → merge54_out_aaa
U22_aa(less78_out_aa(T161)) → less70_out_aa(s(T161))
U20_aa(less78_out_aa(T176)) → less78_out_aa(s(T176))
split12_in_aaaa
ms38_in_aa
U2_aaaa(x0)
U13_aa(x0)
split16_in_aaa
p34_in_aaaaaaaa
U1_aaa(x0)
U3_aaaaaaaa(x0)
U4_aaaaaaaa(x0)
U6_aaaaaaaa(x0)
U9_aaaaaaaa(x0)
U5_aaaaaaaa(x0)
U7_aaaaaaaa(x0)
U10_aaaaaaaa(x0)
U8_aaaaaaaa(x0)
U11_aaaaaaaa(x0)
U12_aaaaaaaa(x0)
merge54_in_aaa
U14_aaa(x0)
U15_aaa(x0)
U17_aaa(x0)
U18_aaa(x0)
less70_in_aa
U16_aaa(x0)
less78_in_aa
U19_aaa(x0)
U22_aa(x0)
U20_aa(x0)
P34_IN_AAAAAAAA → U6_AAAAAAAA(U2_aaaa(split16_in_aaa))
U4_AAAAAAAA(split12_out_aaaa) → MS38_IN_AA
MS38_IN_AA → P34_IN_AAAAAAAA
U6_AAAAAAAA(split12_out_aaaa) → U7_AAAAAAAA(ms38_in_aa)
U7_AAAAAAAA(ms38_out_aa) → MS38_IN_AA
U6_AAAAAAAA(split12_out_aaaa) → MS38_IN_AA
P34_IN_AAAAAAAA → U9_AAAAAAAA(split12_in_aaaa)
U9_AAAAAAAA(split12_out_aaaa) → U10_AAAAAAAA(ms38_in_aa)
U10_AAAAAAAA(ms38_out_aa) → MS38_IN_AA
U9_AAAAAAAA(split12_out_aaaa) → MS38_IN_AA
P34_IN_AAAAAAAA → U4_AAAAAAAA(U2_aaaa(split16_in_aaa))
P34_IN_AAAAAAAA → U6_AAAAAAAA(U2_aaaa(split16_in_aaa))
split12_in_aaaa → U2_aaaa(split16_in_aaa)
ms38_in_aa → ms38_out_aa
ms38_in_aa → U13_aa(p34_in_aaaaaaaa)
U2_aaaa(split16_out_aaa) → split12_out_aaaa
U13_aa(p34_out_aaaaaaaa) → ms38_out_aa
split16_in_aaa → split16_out_aaa
split16_in_aaa → U1_aaa(split16_in_aaa)
p34_in_aaaaaaaa → U3_aaaaaaaa(split12_in_aaaa)
p34_in_aaaaaaaa → U4_aaaaaaaa(split12_in_aaaa)
p34_in_aaaaaaaa → U6_aaaaaaaa(split12_in_aaaa)
p34_in_aaaaaaaa → U9_aaaaaaaa(split12_in_aaaa)
U1_aaa(split16_out_aaa) → split16_out_aaa
U3_aaaaaaaa(split12_out_aaaa) → p34_out_aaaaaaaa
U4_aaaaaaaa(split12_out_aaaa) → U5_aaaaaaaa(ms38_in_aa)
U6_aaaaaaaa(split12_out_aaaa) → U7_aaaaaaaa(ms38_in_aa)
U9_aaaaaaaa(split12_out_aaaa) → U10_aaaaaaaa(ms38_in_aa)
U5_aaaaaaaa(ms38_out_aa) → p34_out_aaaaaaaa
U7_aaaaaaaa(ms38_out_aa) → U8_aaaaaaaa(ms38_in_aa)
U10_aaaaaaaa(ms38_out_aa) → U11_aaaaaaaa(ms38_in_aa)
U8_aaaaaaaa(ms38_out_aa) → p34_out_aaaaaaaa
U11_aaaaaaaa(ms38_out_aa) → U12_aaaaaaaa(merge54_in_aaa)
U12_aaaaaaaa(merge54_out_aaa) → p34_out_aaaaaaaa
merge54_in_aaa → merge54_out_aaa
merge54_in_aaa → U14_aaa(less70_in_aa)
merge54_in_aaa → U15_aaa(less70_in_aa)
merge54_in_aaa → U17_aaa(less78_in_aa)
merge54_in_aaa → U18_aaa(less78_in_aa)
U14_aaa(less70_out_aa(T139)) → merge54_out_aaa
U15_aaa(less70_out_aa(T139)) → U16_aaa(merge54_in_aaa)
U17_aaa(less78_out_aa(T196)) → merge54_out_aaa
U18_aaa(less78_out_aa(T196)) → U19_aaa(merge54_in_aaa)
less70_in_aa → less70_out_aa(0)
less70_in_aa → U22_aa(less78_in_aa)
U16_aaa(merge54_out_aaa) → merge54_out_aaa
less78_in_aa → less78_out_aa(0)
less78_in_aa → U20_aa(less78_in_aa)
U19_aaa(merge54_out_aaa) → merge54_out_aaa
U22_aa(less78_out_aa(T161)) → less70_out_aa(s(T161))
U20_aa(less78_out_aa(T176)) → less78_out_aa(s(T176))
split12_in_aaaa
ms38_in_aa
U2_aaaa(x0)
U13_aa(x0)
split16_in_aaa
p34_in_aaaaaaaa
U1_aaa(x0)
U3_aaaaaaaa(x0)
U4_aaaaaaaa(x0)
U6_aaaaaaaa(x0)
U9_aaaaaaaa(x0)
U5_aaaaaaaa(x0)
U7_aaaaaaaa(x0)
U10_aaaaaaaa(x0)
U8_aaaaaaaa(x0)
U11_aaaaaaaa(x0)
U12_aaaaaaaa(x0)
merge54_in_aaa
U14_aaa(x0)
U15_aaa(x0)
U17_aaa(x0)
U18_aaa(x0)
less70_in_aa
U16_aaa(x0)
less78_in_aa
U19_aaa(x0)
U22_aa(x0)
U20_aa(x0)
U6_AAAAAAAA(split12_out_aaaa) → U7_AAAAAAAA(ms38_out_aa)
U6_AAAAAAAA(split12_out_aaaa) → U7_AAAAAAAA(U13_aa(p34_in_aaaaaaaa))
U4_AAAAAAAA(split12_out_aaaa) → MS38_IN_AA
MS38_IN_AA → P34_IN_AAAAAAAA
U7_AAAAAAAA(ms38_out_aa) → MS38_IN_AA
U6_AAAAAAAA(split12_out_aaaa) → MS38_IN_AA
P34_IN_AAAAAAAA → U9_AAAAAAAA(split12_in_aaaa)
U9_AAAAAAAA(split12_out_aaaa) → U10_AAAAAAAA(ms38_in_aa)
U10_AAAAAAAA(ms38_out_aa) → MS38_IN_AA
U9_AAAAAAAA(split12_out_aaaa) → MS38_IN_AA
P34_IN_AAAAAAAA → U4_AAAAAAAA(U2_aaaa(split16_in_aaa))
P34_IN_AAAAAAAA → U6_AAAAAAAA(U2_aaaa(split16_in_aaa))
U6_AAAAAAAA(split12_out_aaaa) → U7_AAAAAAAA(ms38_out_aa)
U6_AAAAAAAA(split12_out_aaaa) → U7_AAAAAAAA(U13_aa(p34_in_aaaaaaaa))
split12_in_aaaa → U2_aaaa(split16_in_aaa)
ms38_in_aa → ms38_out_aa
ms38_in_aa → U13_aa(p34_in_aaaaaaaa)
U2_aaaa(split16_out_aaa) → split12_out_aaaa
U13_aa(p34_out_aaaaaaaa) → ms38_out_aa
split16_in_aaa → split16_out_aaa
split16_in_aaa → U1_aaa(split16_in_aaa)
p34_in_aaaaaaaa → U3_aaaaaaaa(split12_in_aaaa)
p34_in_aaaaaaaa → U4_aaaaaaaa(split12_in_aaaa)
p34_in_aaaaaaaa → U6_aaaaaaaa(split12_in_aaaa)
p34_in_aaaaaaaa → U9_aaaaaaaa(split12_in_aaaa)
U1_aaa(split16_out_aaa) → split16_out_aaa
U3_aaaaaaaa(split12_out_aaaa) → p34_out_aaaaaaaa
U4_aaaaaaaa(split12_out_aaaa) → U5_aaaaaaaa(ms38_in_aa)
U6_aaaaaaaa(split12_out_aaaa) → U7_aaaaaaaa(ms38_in_aa)
U9_aaaaaaaa(split12_out_aaaa) → U10_aaaaaaaa(ms38_in_aa)
U5_aaaaaaaa(ms38_out_aa) → p34_out_aaaaaaaa
U7_aaaaaaaa(ms38_out_aa) → U8_aaaaaaaa(ms38_in_aa)
U10_aaaaaaaa(ms38_out_aa) → U11_aaaaaaaa(ms38_in_aa)
U8_aaaaaaaa(ms38_out_aa) → p34_out_aaaaaaaa
U11_aaaaaaaa(ms38_out_aa) → U12_aaaaaaaa(merge54_in_aaa)
U12_aaaaaaaa(merge54_out_aaa) → p34_out_aaaaaaaa
merge54_in_aaa → merge54_out_aaa
merge54_in_aaa → U14_aaa(less70_in_aa)
merge54_in_aaa → U15_aaa(less70_in_aa)
merge54_in_aaa → U17_aaa(less78_in_aa)
merge54_in_aaa → U18_aaa(less78_in_aa)
U14_aaa(less70_out_aa(T139)) → merge54_out_aaa
U15_aaa(less70_out_aa(T139)) → U16_aaa(merge54_in_aaa)
U17_aaa(less78_out_aa(T196)) → merge54_out_aaa
U18_aaa(less78_out_aa(T196)) → U19_aaa(merge54_in_aaa)
less70_in_aa → less70_out_aa(0)
less70_in_aa → U22_aa(less78_in_aa)
U16_aaa(merge54_out_aaa) → merge54_out_aaa
less78_in_aa → less78_out_aa(0)
less78_in_aa → U20_aa(less78_in_aa)
U19_aaa(merge54_out_aaa) → merge54_out_aaa
U22_aa(less78_out_aa(T161)) → less70_out_aa(s(T161))
U20_aa(less78_out_aa(T176)) → less78_out_aa(s(T176))
split12_in_aaaa
ms38_in_aa
U2_aaaa(x0)
U13_aa(x0)
split16_in_aaa
p34_in_aaaaaaaa
U1_aaa(x0)
U3_aaaaaaaa(x0)
U4_aaaaaaaa(x0)
U6_aaaaaaaa(x0)
U9_aaaaaaaa(x0)
U5_aaaaaaaa(x0)
U7_aaaaaaaa(x0)
U10_aaaaaaaa(x0)
U8_aaaaaaaa(x0)
U11_aaaaaaaa(x0)
U12_aaaaaaaa(x0)
merge54_in_aaa
U14_aaa(x0)
U15_aaa(x0)
U17_aaa(x0)
U18_aaa(x0)
less70_in_aa
U16_aaa(x0)
less78_in_aa
U19_aaa(x0)
U22_aa(x0)
U20_aa(x0)
P34_IN_AAAAAAAA → U9_AAAAAAAA(U2_aaaa(split16_in_aaa))
U4_AAAAAAAA(split12_out_aaaa) → MS38_IN_AA
MS38_IN_AA → P34_IN_AAAAAAAA
U7_AAAAAAAA(ms38_out_aa) → MS38_IN_AA
U6_AAAAAAAA(split12_out_aaaa) → MS38_IN_AA
U9_AAAAAAAA(split12_out_aaaa) → U10_AAAAAAAA(ms38_in_aa)
U10_AAAAAAAA(ms38_out_aa) → MS38_IN_AA
U9_AAAAAAAA(split12_out_aaaa) → MS38_IN_AA
P34_IN_AAAAAAAA → U4_AAAAAAAA(U2_aaaa(split16_in_aaa))
P34_IN_AAAAAAAA → U6_AAAAAAAA(U2_aaaa(split16_in_aaa))
U6_AAAAAAAA(split12_out_aaaa) → U7_AAAAAAAA(ms38_out_aa)
U6_AAAAAAAA(split12_out_aaaa) → U7_AAAAAAAA(U13_aa(p34_in_aaaaaaaa))
P34_IN_AAAAAAAA → U9_AAAAAAAA(U2_aaaa(split16_in_aaa))
split12_in_aaaa → U2_aaaa(split16_in_aaa)
ms38_in_aa → ms38_out_aa
ms38_in_aa → U13_aa(p34_in_aaaaaaaa)
U2_aaaa(split16_out_aaa) → split12_out_aaaa
U13_aa(p34_out_aaaaaaaa) → ms38_out_aa
split16_in_aaa → split16_out_aaa
split16_in_aaa → U1_aaa(split16_in_aaa)
p34_in_aaaaaaaa → U3_aaaaaaaa(split12_in_aaaa)
p34_in_aaaaaaaa → U4_aaaaaaaa(split12_in_aaaa)
p34_in_aaaaaaaa → U6_aaaaaaaa(split12_in_aaaa)
p34_in_aaaaaaaa → U9_aaaaaaaa(split12_in_aaaa)
U1_aaa(split16_out_aaa) → split16_out_aaa
U3_aaaaaaaa(split12_out_aaaa) → p34_out_aaaaaaaa
U4_aaaaaaaa(split12_out_aaaa) → U5_aaaaaaaa(ms38_in_aa)
U6_aaaaaaaa(split12_out_aaaa) → U7_aaaaaaaa(ms38_in_aa)
U9_aaaaaaaa(split12_out_aaaa) → U10_aaaaaaaa(ms38_in_aa)
U5_aaaaaaaa(ms38_out_aa) → p34_out_aaaaaaaa
U7_aaaaaaaa(ms38_out_aa) → U8_aaaaaaaa(ms38_in_aa)
U10_aaaaaaaa(ms38_out_aa) → U11_aaaaaaaa(ms38_in_aa)
U8_aaaaaaaa(ms38_out_aa) → p34_out_aaaaaaaa
U11_aaaaaaaa(ms38_out_aa) → U12_aaaaaaaa(merge54_in_aaa)
U12_aaaaaaaa(merge54_out_aaa) → p34_out_aaaaaaaa
merge54_in_aaa → merge54_out_aaa
merge54_in_aaa → U14_aaa(less70_in_aa)
merge54_in_aaa → U15_aaa(less70_in_aa)
merge54_in_aaa → U17_aaa(less78_in_aa)
merge54_in_aaa → U18_aaa(less78_in_aa)
U14_aaa(less70_out_aa(T139)) → merge54_out_aaa
U15_aaa(less70_out_aa(T139)) → U16_aaa(merge54_in_aaa)
U17_aaa(less78_out_aa(T196)) → merge54_out_aaa
U18_aaa(less78_out_aa(T196)) → U19_aaa(merge54_in_aaa)
less70_in_aa → less70_out_aa(0)
less70_in_aa → U22_aa(less78_in_aa)
U16_aaa(merge54_out_aaa) → merge54_out_aaa
less78_in_aa → less78_out_aa(0)
less78_in_aa → U20_aa(less78_in_aa)
U19_aaa(merge54_out_aaa) → merge54_out_aaa
U22_aa(less78_out_aa(T161)) → less70_out_aa(s(T161))
U20_aa(less78_out_aa(T176)) → less78_out_aa(s(T176))
split12_in_aaaa
ms38_in_aa
U2_aaaa(x0)
U13_aa(x0)
split16_in_aaa
p34_in_aaaaaaaa
U1_aaa(x0)
U3_aaaaaaaa(x0)
U4_aaaaaaaa(x0)
U6_aaaaaaaa(x0)
U9_aaaaaaaa(x0)
U5_aaaaaaaa(x0)
U7_aaaaaaaa(x0)
U10_aaaaaaaa(x0)
U8_aaaaaaaa(x0)
U11_aaaaaaaa(x0)
U12_aaaaaaaa(x0)
merge54_in_aaa
U14_aaa(x0)
U15_aaa(x0)
U17_aaa(x0)
U18_aaa(x0)
less70_in_aa
U16_aaa(x0)
less78_in_aa
U19_aaa(x0)
U22_aa(x0)
U20_aa(x0)
U9_AAAAAAAA(split12_out_aaaa) → U10_AAAAAAAA(ms38_out_aa)
U9_AAAAAAAA(split12_out_aaaa) → U10_AAAAAAAA(U13_aa(p34_in_aaaaaaaa))
U4_AAAAAAAA(split12_out_aaaa) → MS38_IN_AA
MS38_IN_AA → P34_IN_AAAAAAAA
U7_AAAAAAAA(ms38_out_aa) → MS38_IN_AA
U6_AAAAAAAA(split12_out_aaaa) → MS38_IN_AA
U10_AAAAAAAA(ms38_out_aa) → MS38_IN_AA
U9_AAAAAAAA(split12_out_aaaa) → MS38_IN_AA
P34_IN_AAAAAAAA → U4_AAAAAAAA(U2_aaaa(split16_in_aaa))
P34_IN_AAAAAAAA → U6_AAAAAAAA(U2_aaaa(split16_in_aaa))
U6_AAAAAAAA(split12_out_aaaa) → U7_AAAAAAAA(ms38_out_aa)
U6_AAAAAAAA(split12_out_aaaa) → U7_AAAAAAAA(U13_aa(p34_in_aaaaaaaa))
P34_IN_AAAAAAAA → U9_AAAAAAAA(U2_aaaa(split16_in_aaa))
U9_AAAAAAAA(split12_out_aaaa) → U10_AAAAAAAA(ms38_out_aa)
U9_AAAAAAAA(split12_out_aaaa) → U10_AAAAAAAA(U13_aa(p34_in_aaaaaaaa))
split12_in_aaaa → U2_aaaa(split16_in_aaa)
ms38_in_aa → ms38_out_aa
ms38_in_aa → U13_aa(p34_in_aaaaaaaa)
U2_aaaa(split16_out_aaa) → split12_out_aaaa
U13_aa(p34_out_aaaaaaaa) → ms38_out_aa
split16_in_aaa → split16_out_aaa
split16_in_aaa → U1_aaa(split16_in_aaa)
p34_in_aaaaaaaa → U3_aaaaaaaa(split12_in_aaaa)
p34_in_aaaaaaaa → U4_aaaaaaaa(split12_in_aaaa)
p34_in_aaaaaaaa → U6_aaaaaaaa(split12_in_aaaa)
p34_in_aaaaaaaa → U9_aaaaaaaa(split12_in_aaaa)
U1_aaa(split16_out_aaa) → split16_out_aaa
U3_aaaaaaaa(split12_out_aaaa) → p34_out_aaaaaaaa
U4_aaaaaaaa(split12_out_aaaa) → U5_aaaaaaaa(ms38_in_aa)
U6_aaaaaaaa(split12_out_aaaa) → U7_aaaaaaaa(ms38_in_aa)
U9_aaaaaaaa(split12_out_aaaa) → U10_aaaaaaaa(ms38_in_aa)
U5_aaaaaaaa(ms38_out_aa) → p34_out_aaaaaaaa
U7_aaaaaaaa(ms38_out_aa) → U8_aaaaaaaa(ms38_in_aa)
U10_aaaaaaaa(ms38_out_aa) → U11_aaaaaaaa(ms38_in_aa)
U8_aaaaaaaa(ms38_out_aa) → p34_out_aaaaaaaa
U11_aaaaaaaa(ms38_out_aa) → U12_aaaaaaaa(merge54_in_aaa)
U12_aaaaaaaa(merge54_out_aaa) → p34_out_aaaaaaaa
merge54_in_aaa → merge54_out_aaa
merge54_in_aaa → U14_aaa(less70_in_aa)
merge54_in_aaa → U15_aaa(less70_in_aa)
merge54_in_aaa → U17_aaa(less78_in_aa)
merge54_in_aaa → U18_aaa(less78_in_aa)
U14_aaa(less70_out_aa(T139)) → merge54_out_aaa
U15_aaa(less70_out_aa(T139)) → U16_aaa(merge54_in_aaa)
U17_aaa(less78_out_aa(T196)) → merge54_out_aaa
U18_aaa(less78_out_aa(T196)) → U19_aaa(merge54_in_aaa)
less70_in_aa → less70_out_aa(0)
less70_in_aa → U22_aa(less78_in_aa)
U16_aaa(merge54_out_aaa) → merge54_out_aaa
less78_in_aa → less78_out_aa(0)
less78_in_aa → U20_aa(less78_in_aa)
U19_aaa(merge54_out_aaa) → merge54_out_aaa
U22_aa(less78_out_aa(T161)) → less70_out_aa(s(T161))
U20_aa(less78_out_aa(T176)) → less78_out_aa(s(T176))
split12_in_aaaa
ms38_in_aa
U2_aaaa(x0)
U13_aa(x0)
split16_in_aaa
p34_in_aaaaaaaa
U1_aaa(x0)
U3_aaaaaaaa(x0)
U4_aaaaaaaa(x0)
U6_aaaaaaaa(x0)
U9_aaaaaaaa(x0)
U5_aaaaaaaa(x0)
U7_aaaaaaaa(x0)
U10_aaaaaaaa(x0)
U8_aaaaaaaa(x0)
U11_aaaaaaaa(x0)
U12_aaaaaaaa(x0)
merge54_in_aaa
U14_aaa(x0)
U15_aaa(x0)
U17_aaa(x0)
U18_aaa(x0)
less70_in_aa
U16_aaa(x0)
less78_in_aa
U19_aaa(x0)
U22_aa(x0)
U20_aa(x0)