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 Narrowing (⇐)
↳29 QDP
↳30 Narrowing (⇐)
↳31 QDP
↳32 Narrowing (⇐)
↳33 QDP
↳34 Instantiation (⇔)
↳35 QDP
↳36 DependencyGraphProof (⇔)
↳37 AND
↳38 QDP
↳39 Instantiation (⇔)
↳40 QDP
↳41 Instantiation (⇔)
↳42 QDP
↳43 Instantiation (⇔)
↳44 QDP
↳45 Instantiation (⇔)
↳46 QDP
↳47 ForwardInstantiation (⇔)
↳48 QDP
↳49 ForwardInstantiation (⇔)
↳50 QDP
↳51 ForwardInstantiation (⇔)
↳52 QDP
↳53 ForwardInstantiation (⇔)
↳54 QDP
↳55 NonTerminationProof (⇔)
↳56 NO
↳57 QDP
↳58 UsableRulesProof (⇔)
↳59 QDP
↳60 QReductionProof (⇔)
↳61 QDP
↳62 NonTerminationProof (⇔)
↳63 NO
↳64 PrologToPiTRSProof (⇐)
↳65 PiTRS
↳66 DependencyPairsProof (⇔)
↳67 PiDP
↳68 DependencyGraphProof (⇔)
↳69 AND
↳70 PiDP
↳71 UsableRulesProof (⇔)
↳72 PiDP
↳73 PiDPToQDPProof (⇐)
↳74 QDP
↳75 QDPSizeChangeProof (⇔)
↳76 YES
↳77 PiDP
↳78 UsableRulesProof (⇔)
↳79 PiDP
↳80 PiDPToQDPProof (⇐)
↳81 QDP
↳82 QDPSizeChangeProof (⇔)
↳83 YES
↳84 PiDP
↳85 UsableRulesProof (⇔)
↳86 PiDP
↳87 PiDPToQDPProof (⇐)
↳88 QDP
↳89 Narrowing (⇐)
↳90 QDP
↳91 Narrowing (⇐)
↳92 QDP
↳93 Narrowing (⇐)
↳94 QDP
↳95 Instantiation (⇔)
↳96 QDP
↳97 DependencyGraphProof (⇔)
↳98 AND
↳99 QDP
↳100 Instantiation (⇔)
↳101 QDP
↳102 Instantiation (⇔)
↳103 QDP
↳104 Instantiation (⇔)
↳105 QDP
↳106 Instantiation (⇔)
↳107 QDP
↳108 ForwardInstantiation (⇔)
↳109 QDP
↳110 ForwardInstantiation (⇔)
↳111 QDP
↳112 ForwardInstantiation (⇔)
↳113 QDP
↳114 ForwardInstantiation (⇔)
↳115 QDP
↳116 NonTerminationProof (⇔)
↳117 NO
↳118 QDP
↳119 UsableRulesProof (⇔)
↳120 QDP
↳121 QReductionProof (⇔)
↳122 QDP
↳123 NonTerminationProof (⇔)
↳124 NO
insert1_in_gaa(T5, void, tree(T5, void, void)) → insert1_out_gaa(T5, void, tree(T5, void, void))
insert1_in_gaa(T9, tree(T9, T10, T11), tree(T9, T10, T11)) → insert1_out_gaa(T9, tree(T9, T10, T11), tree(T9, T10, T11))
insert1_in_gaa(0, tree(s(T29), T30, T20), tree(s(T29), T31, T20)) → U13_gaa(T29, T30, T20, T31, insert1_in_gaa(0, T30, T31))
insert1_in_gaa(s(T40), tree(s(T42), T43, T20), tree(s(T42), T44, T20)) → U14_gaa(T40, T42, T43, T20, T44, p18_in_gaaa(T40, T42, T43, T44))
p18_in_gaaa(T40, T42, T43, T44) → U3_gaaa(T40, T42, T43, T44, less20_in_ga(T40, T42))
less20_in_ga(0, s(T55)) → less20_out_ga(0, s(T55))
less20_in_ga(s(T60), s(T62)) → U1_ga(T60, T62, less20_in_ga(T60, T62))
U1_ga(T60, T62, less20_out_ga(T60, T62)) → less20_out_ga(s(T60), s(T62))
U3_gaaa(T40, T42, T43, T44, less20_out_ga(T40, T42)) → p18_out_gaaa(T40, T42, T43, T44)
p18_in_gaaa(T40, T42, T47, T48) → U4_gaaa(T40, T42, T47, T48, less20_in_ga(T40, T42))
U4_gaaa(T40, T42, T47, T48, less20_out_ga(T40, T42)) → U5_gaaa(T40, T42, T47, T48, insert1_in_gaa(s(T40), T47, T48))
insert1_in_gaa(T77, tree(T82, T79, T83), tree(T82, T79, T84)) → U15_gaa(T77, T82, T79, T83, T84, less33_in_ag(T82, T77))
less33_in_ag(0, s(T95)) → less33_out_ag(0, s(T95))
less33_in_ag(s(T102), s(T101)) → U2_ag(T102, T101, less33_in_ag(T102, T101))
U2_ag(T102, T101, less33_out_ag(T102, T101)) → less33_out_ag(s(T102), s(T101))
U15_gaa(T77, T82, T79, T83, T84, less33_out_ag(T82, T77)) → insert1_out_gaa(T77, tree(T82, T79, T83), tree(T82, T79, T84))
insert1_in_gaa(T77, tree(T82, T79, T87), tree(T82, T79, T88)) → U16_gaa(T77, T82, T79, T87, T88, less33_in_ag(T82, T77))
U16_gaa(T77, T82, T79, T87, T88, less33_out_ag(T82, T77)) → U17_gaa(T77, T82, T79, T87, T88, insert1_in_gaa(T77, T87, T88))
insert1_in_gaa(T112, tree(T117, T114, T118), tree(T117, T114, T119)) → U18_gaa(T112, T117, T114, T118, T119, p43_in_agaa(T117, T112, T118, T119))
p43_in_agaa(0, s(T124), T125, T126) → U6_agaa(T124, T125, T126, insert1_in_gaa(s(T124), T125, T126))
insert1_in_gaa(0, tree(s(T163), T164, T154), tree(s(T163), T165, T154)) → U19_gaa(T163, T164, T154, T165, insert1_in_gaa(0, T164, T165))
insert1_in_gaa(s(T174), tree(s(T176), T177, T154), tree(s(T176), T178, T154)) → U20_gaa(T174, T176, T177, T154, T178, p18_in_gaaa(T174, T176, T177, T178))
U20_gaa(T174, T176, T177, T154, T178, p18_out_gaaa(T174, T176, T177, T178)) → insert1_out_gaa(s(T174), tree(s(T176), T177, T154), tree(s(T176), T178, T154))
insert1_in_gaa(T191, tree(T196, T193, T197), tree(T196, T193, T198)) → U21_gaa(T191, T196, T193, T197, T198, p43_in_agaa(T196, T191, T197, T198))
p43_in_agaa(s(T135), s(T134), T136, T137) → U7_agaa(T135, T134, T136, T137, p50_in_agaa(T135, T134, T136, T137))
p50_in_agaa(T135, T134, T136, T137) → U8_agaa(T135, T134, T136, T137, less33_in_ag(T135, T134))
U8_agaa(T135, T134, T136, T137, less33_out_ag(T135, T134)) → p50_out_agaa(T135, T134, T136, T137)
p50_in_agaa(T135, T134, T140, T141) → U9_agaa(T135, T134, T140, T141, less33_in_ag(T135, T134))
U9_agaa(T135, T134, T140, T141, less33_out_ag(T135, T134)) → U10_agaa(T135, T134, T140, T141, insert1_in_gaa(s(T134), T140, T141))
insert1_in_gaa(T206, tree(T211, T208, T212), tree(T211, T208, T213)) → U22_gaa(T206, T211, T208, T212, T213, p68_in_agaa(T211, T206, T212, T213))
p68_in_agaa(0, s(T218), T219, T220) → U11_agaa(T218, T219, T220, insert1_in_gaa(s(T218), T219, T220))
insert1_in_gaa(0, tree(s(T257), T258, T248), tree(s(T257), T259, T248)) → U23_gaa(T257, T258, T248, T259, insert1_in_gaa(0, T258, T259))
insert1_in_gaa(s(T268), tree(s(T270), T271, T248), tree(s(T270), T272, T248)) → U24_gaa(T268, T270, T271, T248, T272, p18_in_gaaa(T268, T270, T271, T272))
U24_gaa(T268, T270, T271, T248, T272, p18_out_gaaa(T268, T270, T271, T272)) → insert1_out_gaa(s(T268), tree(s(T270), T271, T248), tree(s(T270), T272, T248))
insert1_in_gaa(T285, tree(T290, T287, T291), tree(T290, T287, T292)) → U25_gaa(T285, T290, T287, T291, T292, p68_in_agaa(T290, T285, T291, T292))
p68_in_agaa(s(T229), s(T228), T230, T231) → U12_agaa(T229, T228, T230, T231, p50_in_agaa(T229, T228, T230, T231))
U12_agaa(T229, T228, T230, T231, p50_out_agaa(T229, T228, T230, T231)) → p68_out_agaa(s(T229), s(T228), T230, T231)
U25_gaa(T285, T290, T287, T291, T292, p68_out_agaa(T290, T285, T291, T292)) → insert1_out_gaa(T285, tree(T290, T287, T291), tree(T290, T287, T292))
insert1_in_gaa(s(T312), tree(0, T302, T313), tree(0, T302, T314)) → U26_gaa(T312, T302, T313, T314, insert1_in_gaa(s(T312), T313, T314))
insert1_in_gaa(s(T322), tree(s(T323), T302, T324), tree(s(T323), T302, T325)) → U27_gaa(T322, T323, T302, T324, T325, p50_in_agaa(T323, T322, T324, T325))
U27_gaa(T322, T323, T302, T324, T325, p50_out_agaa(T323, T322, T324, T325)) → insert1_out_gaa(s(T322), tree(s(T323), T302, T324), tree(s(T323), T302, T325))
insert1_in_gaa(0, tree(s(T345), T346, T336), tree(s(T345), T347, T336)) → U28_gaa(T345, T346, T336, T347, insert1_in_gaa(0, T346, T347))
insert1_in_gaa(s(T356), tree(s(T358), T359, T336), tree(s(T358), T360, T336)) → U29_gaa(T356, T358, T359, T336, T360, p18_in_gaaa(T356, T358, T359, T360))
U29_gaa(T356, T358, T359, T336, T360, p18_out_gaaa(T356, T358, T359, T360)) → insert1_out_gaa(s(T356), tree(s(T358), T359, T336), tree(s(T358), T360, T336))
insert1_in_gaa(T373, tree(T378, T375, T379), tree(T378, T375, T380)) → U30_gaa(T373, T378, T375, T379, T380, p68_in_agaa(T378, T373, T379, T380))
U30_gaa(T373, T378, T375, T379, T380, p68_out_agaa(T378, T373, T379, T380)) → insert1_out_gaa(T373, tree(T378, T375, T379), tree(T378, T375, T380))
insert1_in_gaa(s(T400), tree(0, T390, T401), tree(0, T390, T402)) → U31_gaa(T400, T390, T401, T402, insert1_in_gaa(s(T400), T401, T402))
insert1_in_gaa(s(T410), tree(s(T411), T390, T412), tree(s(T411), T390, T413)) → U32_gaa(T410, T411, T390, T412, T413, p50_in_agaa(T411, T410, T412, T413))
U32_gaa(T410, T411, T390, T412, T413, p50_out_agaa(T411, T410, T412, T413)) → insert1_out_gaa(s(T410), tree(s(T411), T390, T412), tree(s(T411), T390, T413))
U31_gaa(T400, T390, T401, T402, insert1_out_gaa(s(T400), T401, T402)) → insert1_out_gaa(s(T400), tree(0, T390, T401), tree(0, T390, T402))
U28_gaa(T345, T346, T336, T347, insert1_out_gaa(0, T346, T347)) → insert1_out_gaa(0, tree(s(T345), T346, T336), tree(s(T345), T347, T336))
U26_gaa(T312, T302, T313, T314, insert1_out_gaa(s(T312), T313, T314)) → insert1_out_gaa(s(T312), tree(0, T302, T313), tree(0, T302, T314))
U23_gaa(T257, T258, T248, T259, insert1_out_gaa(0, T258, T259)) → insert1_out_gaa(0, tree(s(T257), T258, T248), tree(s(T257), T259, T248))
U11_agaa(T218, T219, T220, insert1_out_gaa(s(T218), T219, T220)) → p68_out_agaa(0, s(T218), T219, T220)
U22_gaa(T206, T211, T208, T212, T213, p68_out_agaa(T211, T206, T212, T213)) → insert1_out_gaa(T206, tree(T211, T208, T212), tree(T211, T208, T213))
U10_agaa(T135, T134, T140, T141, insert1_out_gaa(s(T134), T140, T141)) → p50_out_agaa(T135, T134, T140, T141)
U7_agaa(T135, T134, T136, T137, p50_out_agaa(T135, T134, T136, T137)) → p43_out_agaa(s(T135), s(T134), T136, T137)
U21_gaa(T191, T196, T193, T197, T198, p43_out_agaa(T196, T191, T197, T198)) → insert1_out_gaa(T191, tree(T196, T193, T197), tree(T196, T193, T198))
U19_gaa(T163, T164, T154, T165, insert1_out_gaa(0, T164, T165)) → insert1_out_gaa(0, tree(s(T163), T164, T154), tree(s(T163), T165, T154))
U6_agaa(T124, T125, T126, insert1_out_gaa(s(T124), T125, T126)) → p43_out_agaa(0, s(T124), T125, T126)
U18_gaa(T112, T117, T114, T118, T119, p43_out_agaa(T117, T112, T118, T119)) → insert1_out_gaa(T112, tree(T117, T114, T118), tree(T117, T114, T119))
U17_gaa(T77, T82, T79, T87, T88, insert1_out_gaa(T77, T87, T88)) → insert1_out_gaa(T77, tree(T82, T79, T87), tree(T82, T79, T88))
U5_gaaa(T40, T42, T47, T48, insert1_out_gaa(s(T40), T47, T48)) → p18_out_gaaa(T40, T42, T47, T48)
U14_gaa(T40, T42, T43, T20, T44, p18_out_gaaa(T40, T42, T43, T44)) → insert1_out_gaa(s(T40), tree(s(T42), T43, T20), tree(s(T42), T44, T20))
U13_gaa(T29, T30, T20, T31, insert1_out_gaa(0, T30, T31)) → insert1_out_gaa(0, tree(s(T29), T30, T20), tree(s(T29), T31, T20))
Infinitary Constructor Rewriting Termination of PiTRS implies Termination of Prolog
insert1_in_gaa(T5, void, tree(T5, void, void)) → insert1_out_gaa(T5, void, tree(T5, void, void))
insert1_in_gaa(T9, tree(T9, T10, T11), tree(T9, T10, T11)) → insert1_out_gaa(T9, tree(T9, T10, T11), tree(T9, T10, T11))
insert1_in_gaa(0, tree(s(T29), T30, T20), tree(s(T29), T31, T20)) → U13_gaa(T29, T30, T20, T31, insert1_in_gaa(0, T30, T31))
insert1_in_gaa(s(T40), tree(s(T42), T43, T20), tree(s(T42), T44, T20)) → U14_gaa(T40, T42, T43, T20, T44, p18_in_gaaa(T40, T42, T43, T44))
p18_in_gaaa(T40, T42, T43, T44) → U3_gaaa(T40, T42, T43, T44, less20_in_ga(T40, T42))
less20_in_ga(0, s(T55)) → less20_out_ga(0, s(T55))
less20_in_ga(s(T60), s(T62)) → U1_ga(T60, T62, less20_in_ga(T60, T62))
U1_ga(T60, T62, less20_out_ga(T60, T62)) → less20_out_ga(s(T60), s(T62))
U3_gaaa(T40, T42, T43, T44, less20_out_ga(T40, T42)) → p18_out_gaaa(T40, T42, T43, T44)
p18_in_gaaa(T40, T42, T47, T48) → U4_gaaa(T40, T42, T47, T48, less20_in_ga(T40, T42))
U4_gaaa(T40, T42, T47, T48, less20_out_ga(T40, T42)) → U5_gaaa(T40, T42, T47, T48, insert1_in_gaa(s(T40), T47, T48))
insert1_in_gaa(T77, tree(T82, T79, T83), tree(T82, T79, T84)) → U15_gaa(T77, T82, T79, T83, T84, less33_in_ag(T82, T77))
less33_in_ag(0, s(T95)) → less33_out_ag(0, s(T95))
less33_in_ag(s(T102), s(T101)) → U2_ag(T102, T101, less33_in_ag(T102, T101))
U2_ag(T102, T101, less33_out_ag(T102, T101)) → less33_out_ag(s(T102), s(T101))
U15_gaa(T77, T82, T79, T83, T84, less33_out_ag(T82, T77)) → insert1_out_gaa(T77, tree(T82, T79, T83), tree(T82, T79, T84))
insert1_in_gaa(T77, tree(T82, T79, T87), tree(T82, T79, T88)) → U16_gaa(T77, T82, T79, T87, T88, less33_in_ag(T82, T77))
U16_gaa(T77, T82, T79, T87, T88, less33_out_ag(T82, T77)) → U17_gaa(T77, T82, T79, T87, T88, insert1_in_gaa(T77, T87, T88))
insert1_in_gaa(T112, tree(T117, T114, T118), tree(T117, T114, T119)) → U18_gaa(T112, T117, T114, T118, T119, p43_in_agaa(T117, T112, T118, T119))
p43_in_agaa(0, s(T124), T125, T126) → U6_agaa(T124, T125, T126, insert1_in_gaa(s(T124), T125, T126))
insert1_in_gaa(0, tree(s(T163), T164, T154), tree(s(T163), T165, T154)) → U19_gaa(T163, T164, T154, T165, insert1_in_gaa(0, T164, T165))
insert1_in_gaa(s(T174), tree(s(T176), T177, T154), tree(s(T176), T178, T154)) → U20_gaa(T174, T176, T177, T154, T178, p18_in_gaaa(T174, T176, T177, T178))
U20_gaa(T174, T176, T177, T154, T178, p18_out_gaaa(T174, T176, T177, T178)) → insert1_out_gaa(s(T174), tree(s(T176), T177, T154), tree(s(T176), T178, T154))
insert1_in_gaa(T191, tree(T196, T193, T197), tree(T196, T193, T198)) → U21_gaa(T191, T196, T193, T197, T198, p43_in_agaa(T196, T191, T197, T198))
p43_in_agaa(s(T135), s(T134), T136, T137) → U7_agaa(T135, T134, T136, T137, p50_in_agaa(T135, T134, T136, T137))
p50_in_agaa(T135, T134, T136, T137) → U8_agaa(T135, T134, T136, T137, less33_in_ag(T135, T134))
U8_agaa(T135, T134, T136, T137, less33_out_ag(T135, T134)) → p50_out_agaa(T135, T134, T136, T137)
p50_in_agaa(T135, T134, T140, T141) → U9_agaa(T135, T134, T140, T141, less33_in_ag(T135, T134))
U9_agaa(T135, T134, T140, T141, less33_out_ag(T135, T134)) → U10_agaa(T135, T134, T140, T141, insert1_in_gaa(s(T134), T140, T141))
insert1_in_gaa(T206, tree(T211, T208, T212), tree(T211, T208, T213)) → U22_gaa(T206, T211, T208, T212, T213, p68_in_agaa(T211, T206, T212, T213))
p68_in_agaa(0, s(T218), T219, T220) → U11_agaa(T218, T219, T220, insert1_in_gaa(s(T218), T219, T220))
insert1_in_gaa(0, tree(s(T257), T258, T248), tree(s(T257), T259, T248)) → U23_gaa(T257, T258, T248, T259, insert1_in_gaa(0, T258, T259))
insert1_in_gaa(s(T268), tree(s(T270), T271, T248), tree(s(T270), T272, T248)) → U24_gaa(T268, T270, T271, T248, T272, p18_in_gaaa(T268, T270, T271, T272))
U24_gaa(T268, T270, T271, T248, T272, p18_out_gaaa(T268, T270, T271, T272)) → insert1_out_gaa(s(T268), tree(s(T270), T271, T248), tree(s(T270), T272, T248))
insert1_in_gaa(T285, tree(T290, T287, T291), tree(T290, T287, T292)) → U25_gaa(T285, T290, T287, T291, T292, p68_in_agaa(T290, T285, T291, T292))
p68_in_agaa(s(T229), s(T228), T230, T231) → U12_agaa(T229, T228, T230, T231, p50_in_agaa(T229, T228, T230, T231))
U12_agaa(T229, T228, T230, T231, p50_out_agaa(T229, T228, T230, T231)) → p68_out_agaa(s(T229), s(T228), T230, T231)
U25_gaa(T285, T290, T287, T291, T292, p68_out_agaa(T290, T285, T291, T292)) → insert1_out_gaa(T285, tree(T290, T287, T291), tree(T290, T287, T292))
insert1_in_gaa(s(T312), tree(0, T302, T313), tree(0, T302, T314)) → U26_gaa(T312, T302, T313, T314, insert1_in_gaa(s(T312), T313, T314))
insert1_in_gaa(s(T322), tree(s(T323), T302, T324), tree(s(T323), T302, T325)) → U27_gaa(T322, T323, T302, T324, T325, p50_in_agaa(T323, T322, T324, T325))
U27_gaa(T322, T323, T302, T324, T325, p50_out_agaa(T323, T322, T324, T325)) → insert1_out_gaa(s(T322), tree(s(T323), T302, T324), tree(s(T323), T302, T325))
insert1_in_gaa(0, tree(s(T345), T346, T336), tree(s(T345), T347, T336)) → U28_gaa(T345, T346, T336, T347, insert1_in_gaa(0, T346, T347))
insert1_in_gaa(s(T356), tree(s(T358), T359, T336), tree(s(T358), T360, T336)) → U29_gaa(T356, T358, T359, T336, T360, p18_in_gaaa(T356, T358, T359, T360))
U29_gaa(T356, T358, T359, T336, T360, p18_out_gaaa(T356, T358, T359, T360)) → insert1_out_gaa(s(T356), tree(s(T358), T359, T336), tree(s(T358), T360, T336))
insert1_in_gaa(T373, tree(T378, T375, T379), tree(T378, T375, T380)) → U30_gaa(T373, T378, T375, T379, T380, p68_in_agaa(T378, T373, T379, T380))
U30_gaa(T373, T378, T375, T379, T380, p68_out_agaa(T378, T373, T379, T380)) → insert1_out_gaa(T373, tree(T378, T375, T379), tree(T378, T375, T380))
insert1_in_gaa(s(T400), tree(0, T390, T401), tree(0, T390, T402)) → U31_gaa(T400, T390, T401, T402, insert1_in_gaa(s(T400), T401, T402))
insert1_in_gaa(s(T410), tree(s(T411), T390, T412), tree(s(T411), T390, T413)) → U32_gaa(T410, T411, T390, T412, T413, p50_in_agaa(T411, T410, T412, T413))
U32_gaa(T410, T411, T390, T412, T413, p50_out_agaa(T411, T410, T412, T413)) → insert1_out_gaa(s(T410), tree(s(T411), T390, T412), tree(s(T411), T390, T413))
U31_gaa(T400, T390, T401, T402, insert1_out_gaa(s(T400), T401, T402)) → insert1_out_gaa(s(T400), tree(0, T390, T401), tree(0, T390, T402))
U28_gaa(T345, T346, T336, T347, insert1_out_gaa(0, T346, T347)) → insert1_out_gaa(0, tree(s(T345), T346, T336), tree(s(T345), T347, T336))
U26_gaa(T312, T302, T313, T314, insert1_out_gaa(s(T312), T313, T314)) → insert1_out_gaa(s(T312), tree(0, T302, T313), tree(0, T302, T314))
U23_gaa(T257, T258, T248, T259, insert1_out_gaa(0, T258, T259)) → insert1_out_gaa(0, tree(s(T257), T258, T248), tree(s(T257), T259, T248))
U11_agaa(T218, T219, T220, insert1_out_gaa(s(T218), T219, T220)) → p68_out_agaa(0, s(T218), T219, T220)
U22_gaa(T206, T211, T208, T212, T213, p68_out_agaa(T211, T206, T212, T213)) → insert1_out_gaa(T206, tree(T211, T208, T212), tree(T211, T208, T213))
U10_agaa(T135, T134, T140, T141, insert1_out_gaa(s(T134), T140, T141)) → p50_out_agaa(T135, T134, T140, T141)
U7_agaa(T135, T134, T136, T137, p50_out_agaa(T135, T134, T136, T137)) → p43_out_agaa(s(T135), s(T134), T136, T137)
U21_gaa(T191, T196, T193, T197, T198, p43_out_agaa(T196, T191, T197, T198)) → insert1_out_gaa(T191, tree(T196, T193, T197), tree(T196, T193, T198))
U19_gaa(T163, T164, T154, T165, insert1_out_gaa(0, T164, T165)) → insert1_out_gaa(0, tree(s(T163), T164, T154), tree(s(T163), T165, T154))
U6_agaa(T124, T125, T126, insert1_out_gaa(s(T124), T125, T126)) → p43_out_agaa(0, s(T124), T125, T126)
U18_gaa(T112, T117, T114, T118, T119, p43_out_agaa(T117, T112, T118, T119)) → insert1_out_gaa(T112, tree(T117, T114, T118), tree(T117, T114, T119))
U17_gaa(T77, T82, T79, T87, T88, insert1_out_gaa(T77, T87, T88)) → insert1_out_gaa(T77, tree(T82, T79, T87), tree(T82, T79, T88))
U5_gaaa(T40, T42, T47, T48, insert1_out_gaa(s(T40), T47, T48)) → p18_out_gaaa(T40, T42, T47, T48)
U14_gaa(T40, T42, T43, T20, T44, p18_out_gaaa(T40, T42, T43, T44)) → insert1_out_gaa(s(T40), tree(s(T42), T43, T20), tree(s(T42), T44, T20))
U13_gaa(T29, T30, T20, T31, insert1_out_gaa(0, T30, T31)) → insert1_out_gaa(0, tree(s(T29), T30, T20), tree(s(T29), T31, T20))
INSERT1_IN_GAA(0, tree(s(T29), T30, T20), tree(s(T29), T31, T20)) → U13_GAA(T29, T30, T20, T31, insert1_in_gaa(0, T30, T31))
INSERT1_IN_GAA(0, tree(s(T29), T30, T20), tree(s(T29), T31, T20)) → INSERT1_IN_GAA(0, T30, T31)
INSERT1_IN_GAA(s(T40), tree(s(T42), T43, T20), tree(s(T42), T44, T20)) → U14_GAA(T40, T42, T43, T20, T44, p18_in_gaaa(T40, T42, T43, T44))
INSERT1_IN_GAA(s(T40), tree(s(T42), T43, T20), tree(s(T42), T44, T20)) → P18_IN_GAAA(T40, T42, T43, T44)
P18_IN_GAAA(T40, T42, T43, T44) → U3_GAAA(T40, T42, T43, T44, less20_in_ga(T40, T42))
P18_IN_GAAA(T40, T42, T43, T44) → LESS20_IN_GA(T40, T42)
LESS20_IN_GA(s(T60), s(T62)) → U1_GA(T60, T62, less20_in_ga(T60, T62))
LESS20_IN_GA(s(T60), s(T62)) → LESS20_IN_GA(T60, T62)
P18_IN_GAAA(T40, T42, T47, T48) → U4_GAAA(T40, T42, T47, T48, less20_in_ga(T40, T42))
U4_GAAA(T40, T42, T47, T48, less20_out_ga(T40, T42)) → U5_GAAA(T40, T42, T47, T48, insert1_in_gaa(s(T40), T47, T48))
U4_GAAA(T40, T42, T47, T48, less20_out_ga(T40, T42)) → INSERT1_IN_GAA(s(T40), T47, T48)
INSERT1_IN_GAA(T77, tree(T82, T79, T83), tree(T82, T79, T84)) → U15_GAA(T77, T82, T79, T83, T84, less33_in_ag(T82, T77))
INSERT1_IN_GAA(T77, tree(T82, T79, T83), tree(T82, T79, T84)) → LESS33_IN_AG(T82, T77)
LESS33_IN_AG(s(T102), s(T101)) → U2_AG(T102, T101, less33_in_ag(T102, T101))
LESS33_IN_AG(s(T102), s(T101)) → LESS33_IN_AG(T102, T101)
INSERT1_IN_GAA(T77, tree(T82, T79, T87), tree(T82, T79, T88)) → U16_GAA(T77, T82, T79, T87, T88, less33_in_ag(T82, T77))
U16_GAA(T77, T82, T79, T87, T88, less33_out_ag(T82, T77)) → U17_GAA(T77, T82, T79, T87, T88, insert1_in_gaa(T77, T87, T88))
U16_GAA(T77, T82, T79, T87, T88, less33_out_ag(T82, T77)) → INSERT1_IN_GAA(T77, T87, T88)
INSERT1_IN_GAA(T112, tree(T117, T114, T118), tree(T117, T114, T119)) → U18_GAA(T112, T117, T114, T118, T119, p43_in_agaa(T117, T112, T118, T119))
INSERT1_IN_GAA(T112, tree(T117, T114, T118), tree(T117, T114, T119)) → P43_IN_AGAA(T117, T112, T118, T119)
P43_IN_AGAA(0, s(T124), T125, T126) → U6_AGAA(T124, T125, T126, insert1_in_gaa(s(T124), T125, T126))
P43_IN_AGAA(0, s(T124), T125, T126) → INSERT1_IN_GAA(s(T124), T125, T126)
INSERT1_IN_GAA(0, tree(s(T163), T164, T154), tree(s(T163), T165, T154)) → U19_GAA(T163, T164, T154, T165, insert1_in_gaa(0, T164, T165))
INSERT1_IN_GAA(s(T174), tree(s(T176), T177, T154), tree(s(T176), T178, T154)) → U20_GAA(T174, T176, T177, T154, T178, p18_in_gaaa(T174, T176, T177, T178))
INSERT1_IN_GAA(T191, tree(T196, T193, T197), tree(T196, T193, T198)) → U21_GAA(T191, T196, T193, T197, T198, p43_in_agaa(T196, T191, T197, T198))
P43_IN_AGAA(s(T135), s(T134), T136, T137) → U7_AGAA(T135, T134, T136, T137, p50_in_agaa(T135, T134, T136, T137))
P43_IN_AGAA(s(T135), s(T134), T136, T137) → P50_IN_AGAA(T135, T134, T136, T137)
P50_IN_AGAA(T135, T134, T136, T137) → U8_AGAA(T135, T134, T136, T137, less33_in_ag(T135, T134))
P50_IN_AGAA(T135, T134, T136, T137) → LESS33_IN_AG(T135, T134)
P50_IN_AGAA(T135, T134, T140, T141) → U9_AGAA(T135, T134, T140, T141, less33_in_ag(T135, T134))
U9_AGAA(T135, T134, T140, T141, less33_out_ag(T135, T134)) → U10_AGAA(T135, T134, T140, T141, insert1_in_gaa(s(T134), T140, T141))
U9_AGAA(T135, T134, T140, T141, less33_out_ag(T135, T134)) → INSERT1_IN_GAA(s(T134), T140, T141)
INSERT1_IN_GAA(T206, tree(T211, T208, T212), tree(T211, T208, T213)) → U22_GAA(T206, T211, T208, T212, T213, p68_in_agaa(T211, T206, T212, T213))
INSERT1_IN_GAA(T206, tree(T211, T208, T212), tree(T211, T208, T213)) → P68_IN_AGAA(T211, T206, T212, T213)
P68_IN_AGAA(0, s(T218), T219, T220) → U11_AGAA(T218, T219, T220, insert1_in_gaa(s(T218), T219, T220))
P68_IN_AGAA(0, s(T218), T219, T220) → INSERT1_IN_GAA(s(T218), T219, T220)
INSERT1_IN_GAA(0, tree(s(T257), T258, T248), tree(s(T257), T259, T248)) → U23_GAA(T257, T258, T248, T259, insert1_in_gaa(0, T258, T259))
INSERT1_IN_GAA(s(T268), tree(s(T270), T271, T248), tree(s(T270), T272, T248)) → U24_GAA(T268, T270, T271, T248, T272, p18_in_gaaa(T268, T270, T271, T272))
INSERT1_IN_GAA(T285, tree(T290, T287, T291), tree(T290, T287, T292)) → U25_GAA(T285, T290, T287, T291, T292, p68_in_agaa(T290, T285, T291, T292))
P68_IN_AGAA(s(T229), s(T228), T230, T231) → U12_AGAA(T229, T228, T230, T231, p50_in_agaa(T229, T228, T230, T231))
P68_IN_AGAA(s(T229), s(T228), T230, T231) → P50_IN_AGAA(T229, T228, T230, T231)
INSERT1_IN_GAA(s(T312), tree(0, T302, T313), tree(0, T302, T314)) → U26_GAA(T312, T302, T313, T314, insert1_in_gaa(s(T312), T313, T314))
INSERT1_IN_GAA(s(T312), tree(0, T302, T313), tree(0, T302, T314)) → INSERT1_IN_GAA(s(T312), T313, T314)
INSERT1_IN_GAA(s(T322), tree(s(T323), T302, T324), tree(s(T323), T302, T325)) → U27_GAA(T322, T323, T302, T324, T325, p50_in_agaa(T323, T322, T324, T325))
INSERT1_IN_GAA(s(T322), tree(s(T323), T302, T324), tree(s(T323), T302, T325)) → P50_IN_AGAA(T323, T322, T324, T325)
INSERT1_IN_GAA(0, tree(s(T345), T346, T336), tree(s(T345), T347, T336)) → U28_GAA(T345, T346, T336, T347, insert1_in_gaa(0, T346, T347))
INSERT1_IN_GAA(s(T356), tree(s(T358), T359, T336), tree(s(T358), T360, T336)) → U29_GAA(T356, T358, T359, T336, T360, p18_in_gaaa(T356, T358, T359, T360))
INSERT1_IN_GAA(T373, tree(T378, T375, T379), tree(T378, T375, T380)) → U30_GAA(T373, T378, T375, T379, T380, p68_in_agaa(T378, T373, T379, T380))
INSERT1_IN_GAA(s(T400), tree(0, T390, T401), tree(0, T390, T402)) → U31_GAA(T400, T390, T401, T402, insert1_in_gaa(s(T400), T401, T402))
INSERT1_IN_GAA(s(T410), tree(s(T411), T390, T412), tree(s(T411), T390, T413)) → U32_GAA(T410, T411, T390, T412, T413, p50_in_agaa(T411, T410, T412, T413))
insert1_in_gaa(T5, void, tree(T5, void, void)) → insert1_out_gaa(T5, void, tree(T5, void, void))
insert1_in_gaa(T9, tree(T9, T10, T11), tree(T9, T10, T11)) → insert1_out_gaa(T9, tree(T9, T10, T11), tree(T9, T10, T11))
insert1_in_gaa(0, tree(s(T29), T30, T20), tree(s(T29), T31, T20)) → U13_gaa(T29, T30, T20, T31, insert1_in_gaa(0, T30, T31))
insert1_in_gaa(s(T40), tree(s(T42), T43, T20), tree(s(T42), T44, T20)) → U14_gaa(T40, T42, T43, T20, T44, p18_in_gaaa(T40, T42, T43, T44))
p18_in_gaaa(T40, T42, T43, T44) → U3_gaaa(T40, T42, T43, T44, less20_in_ga(T40, T42))
less20_in_ga(0, s(T55)) → less20_out_ga(0, s(T55))
less20_in_ga(s(T60), s(T62)) → U1_ga(T60, T62, less20_in_ga(T60, T62))
U1_ga(T60, T62, less20_out_ga(T60, T62)) → less20_out_ga(s(T60), s(T62))
U3_gaaa(T40, T42, T43, T44, less20_out_ga(T40, T42)) → p18_out_gaaa(T40, T42, T43, T44)
p18_in_gaaa(T40, T42, T47, T48) → U4_gaaa(T40, T42, T47, T48, less20_in_ga(T40, T42))
U4_gaaa(T40, T42, T47, T48, less20_out_ga(T40, T42)) → U5_gaaa(T40, T42, T47, T48, insert1_in_gaa(s(T40), T47, T48))
insert1_in_gaa(T77, tree(T82, T79, T83), tree(T82, T79, T84)) → U15_gaa(T77, T82, T79, T83, T84, less33_in_ag(T82, T77))
less33_in_ag(0, s(T95)) → less33_out_ag(0, s(T95))
less33_in_ag(s(T102), s(T101)) → U2_ag(T102, T101, less33_in_ag(T102, T101))
U2_ag(T102, T101, less33_out_ag(T102, T101)) → less33_out_ag(s(T102), s(T101))
U15_gaa(T77, T82, T79, T83, T84, less33_out_ag(T82, T77)) → insert1_out_gaa(T77, tree(T82, T79, T83), tree(T82, T79, T84))
insert1_in_gaa(T77, tree(T82, T79, T87), tree(T82, T79, T88)) → U16_gaa(T77, T82, T79, T87, T88, less33_in_ag(T82, T77))
U16_gaa(T77, T82, T79, T87, T88, less33_out_ag(T82, T77)) → U17_gaa(T77, T82, T79, T87, T88, insert1_in_gaa(T77, T87, T88))
insert1_in_gaa(T112, tree(T117, T114, T118), tree(T117, T114, T119)) → U18_gaa(T112, T117, T114, T118, T119, p43_in_agaa(T117, T112, T118, T119))
p43_in_agaa(0, s(T124), T125, T126) → U6_agaa(T124, T125, T126, insert1_in_gaa(s(T124), T125, T126))
insert1_in_gaa(0, tree(s(T163), T164, T154), tree(s(T163), T165, T154)) → U19_gaa(T163, T164, T154, T165, insert1_in_gaa(0, T164, T165))
insert1_in_gaa(s(T174), tree(s(T176), T177, T154), tree(s(T176), T178, T154)) → U20_gaa(T174, T176, T177, T154, T178, p18_in_gaaa(T174, T176, T177, T178))
U20_gaa(T174, T176, T177, T154, T178, p18_out_gaaa(T174, T176, T177, T178)) → insert1_out_gaa(s(T174), tree(s(T176), T177, T154), tree(s(T176), T178, T154))
insert1_in_gaa(T191, tree(T196, T193, T197), tree(T196, T193, T198)) → U21_gaa(T191, T196, T193, T197, T198, p43_in_agaa(T196, T191, T197, T198))
p43_in_agaa(s(T135), s(T134), T136, T137) → U7_agaa(T135, T134, T136, T137, p50_in_agaa(T135, T134, T136, T137))
p50_in_agaa(T135, T134, T136, T137) → U8_agaa(T135, T134, T136, T137, less33_in_ag(T135, T134))
U8_agaa(T135, T134, T136, T137, less33_out_ag(T135, T134)) → p50_out_agaa(T135, T134, T136, T137)
p50_in_agaa(T135, T134, T140, T141) → U9_agaa(T135, T134, T140, T141, less33_in_ag(T135, T134))
U9_agaa(T135, T134, T140, T141, less33_out_ag(T135, T134)) → U10_agaa(T135, T134, T140, T141, insert1_in_gaa(s(T134), T140, T141))
insert1_in_gaa(T206, tree(T211, T208, T212), tree(T211, T208, T213)) → U22_gaa(T206, T211, T208, T212, T213, p68_in_agaa(T211, T206, T212, T213))
p68_in_agaa(0, s(T218), T219, T220) → U11_agaa(T218, T219, T220, insert1_in_gaa(s(T218), T219, T220))
insert1_in_gaa(0, tree(s(T257), T258, T248), tree(s(T257), T259, T248)) → U23_gaa(T257, T258, T248, T259, insert1_in_gaa(0, T258, T259))
insert1_in_gaa(s(T268), tree(s(T270), T271, T248), tree(s(T270), T272, T248)) → U24_gaa(T268, T270, T271, T248, T272, p18_in_gaaa(T268, T270, T271, T272))
U24_gaa(T268, T270, T271, T248, T272, p18_out_gaaa(T268, T270, T271, T272)) → insert1_out_gaa(s(T268), tree(s(T270), T271, T248), tree(s(T270), T272, T248))
insert1_in_gaa(T285, tree(T290, T287, T291), tree(T290, T287, T292)) → U25_gaa(T285, T290, T287, T291, T292, p68_in_agaa(T290, T285, T291, T292))
p68_in_agaa(s(T229), s(T228), T230, T231) → U12_agaa(T229, T228, T230, T231, p50_in_agaa(T229, T228, T230, T231))
U12_agaa(T229, T228, T230, T231, p50_out_agaa(T229, T228, T230, T231)) → p68_out_agaa(s(T229), s(T228), T230, T231)
U25_gaa(T285, T290, T287, T291, T292, p68_out_agaa(T290, T285, T291, T292)) → insert1_out_gaa(T285, tree(T290, T287, T291), tree(T290, T287, T292))
insert1_in_gaa(s(T312), tree(0, T302, T313), tree(0, T302, T314)) → U26_gaa(T312, T302, T313, T314, insert1_in_gaa(s(T312), T313, T314))
insert1_in_gaa(s(T322), tree(s(T323), T302, T324), tree(s(T323), T302, T325)) → U27_gaa(T322, T323, T302, T324, T325, p50_in_agaa(T323, T322, T324, T325))
U27_gaa(T322, T323, T302, T324, T325, p50_out_agaa(T323, T322, T324, T325)) → insert1_out_gaa(s(T322), tree(s(T323), T302, T324), tree(s(T323), T302, T325))
insert1_in_gaa(0, tree(s(T345), T346, T336), tree(s(T345), T347, T336)) → U28_gaa(T345, T346, T336, T347, insert1_in_gaa(0, T346, T347))
insert1_in_gaa(s(T356), tree(s(T358), T359, T336), tree(s(T358), T360, T336)) → U29_gaa(T356, T358, T359, T336, T360, p18_in_gaaa(T356, T358, T359, T360))
U29_gaa(T356, T358, T359, T336, T360, p18_out_gaaa(T356, T358, T359, T360)) → insert1_out_gaa(s(T356), tree(s(T358), T359, T336), tree(s(T358), T360, T336))
insert1_in_gaa(T373, tree(T378, T375, T379), tree(T378, T375, T380)) → U30_gaa(T373, T378, T375, T379, T380, p68_in_agaa(T378, T373, T379, T380))
U30_gaa(T373, T378, T375, T379, T380, p68_out_agaa(T378, T373, T379, T380)) → insert1_out_gaa(T373, tree(T378, T375, T379), tree(T378, T375, T380))
insert1_in_gaa(s(T400), tree(0, T390, T401), tree(0, T390, T402)) → U31_gaa(T400, T390, T401, T402, insert1_in_gaa(s(T400), T401, T402))
insert1_in_gaa(s(T410), tree(s(T411), T390, T412), tree(s(T411), T390, T413)) → U32_gaa(T410, T411, T390, T412, T413, p50_in_agaa(T411, T410, T412, T413))
U32_gaa(T410, T411, T390, T412, T413, p50_out_agaa(T411, T410, T412, T413)) → insert1_out_gaa(s(T410), tree(s(T411), T390, T412), tree(s(T411), T390, T413))
U31_gaa(T400, T390, T401, T402, insert1_out_gaa(s(T400), T401, T402)) → insert1_out_gaa(s(T400), tree(0, T390, T401), tree(0, T390, T402))
U28_gaa(T345, T346, T336, T347, insert1_out_gaa(0, T346, T347)) → insert1_out_gaa(0, tree(s(T345), T346, T336), tree(s(T345), T347, T336))
U26_gaa(T312, T302, T313, T314, insert1_out_gaa(s(T312), T313, T314)) → insert1_out_gaa(s(T312), tree(0, T302, T313), tree(0, T302, T314))
U23_gaa(T257, T258, T248, T259, insert1_out_gaa(0, T258, T259)) → insert1_out_gaa(0, tree(s(T257), T258, T248), tree(s(T257), T259, T248))
U11_agaa(T218, T219, T220, insert1_out_gaa(s(T218), T219, T220)) → p68_out_agaa(0, s(T218), T219, T220)
U22_gaa(T206, T211, T208, T212, T213, p68_out_agaa(T211, T206, T212, T213)) → insert1_out_gaa(T206, tree(T211, T208, T212), tree(T211, T208, T213))
U10_agaa(T135, T134, T140, T141, insert1_out_gaa(s(T134), T140, T141)) → p50_out_agaa(T135, T134, T140, T141)
U7_agaa(T135, T134, T136, T137, p50_out_agaa(T135, T134, T136, T137)) → p43_out_agaa(s(T135), s(T134), T136, T137)
U21_gaa(T191, T196, T193, T197, T198, p43_out_agaa(T196, T191, T197, T198)) → insert1_out_gaa(T191, tree(T196, T193, T197), tree(T196, T193, T198))
U19_gaa(T163, T164, T154, T165, insert1_out_gaa(0, T164, T165)) → insert1_out_gaa(0, tree(s(T163), T164, T154), tree(s(T163), T165, T154))
U6_agaa(T124, T125, T126, insert1_out_gaa(s(T124), T125, T126)) → p43_out_agaa(0, s(T124), T125, T126)
U18_gaa(T112, T117, T114, T118, T119, p43_out_agaa(T117, T112, T118, T119)) → insert1_out_gaa(T112, tree(T117, T114, T118), tree(T117, T114, T119))
U17_gaa(T77, T82, T79, T87, T88, insert1_out_gaa(T77, T87, T88)) → insert1_out_gaa(T77, tree(T82, T79, T87), tree(T82, T79, T88))
U5_gaaa(T40, T42, T47, T48, insert1_out_gaa(s(T40), T47, T48)) → p18_out_gaaa(T40, T42, T47, T48)
U14_gaa(T40, T42, T43, T20, T44, p18_out_gaaa(T40, T42, T43, T44)) → insert1_out_gaa(s(T40), tree(s(T42), T43, T20), tree(s(T42), T44, T20))
U13_gaa(T29, T30, T20, T31, insert1_out_gaa(0, T30, T31)) → insert1_out_gaa(0, tree(s(T29), T30, T20), tree(s(T29), T31, T20))
INSERT1_IN_GAA(0, tree(s(T29), T30, T20), tree(s(T29), T31, T20)) → U13_GAA(T29, T30, T20, T31, insert1_in_gaa(0, T30, T31))
INSERT1_IN_GAA(0, tree(s(T29), T30, T20), tree(s(T29), T31, T20)) → INSERT1_IN_GAA(0, T30, T31)
INSERT1_IN_GAA(s(T40), tree(s(T42), T43, T20), tree(s(T42), T44, T20)) → U14_GAA(T40, T42, T43, T20, T44, p18_in_gaaa(T40, T42, T43, T44))
INSERT1_IN_GAA(s(T40), tree(s(T42), T43, T20), tree(s(T42), T44, T20)) → P18_IN_GAAA(T40, T42, T43, T44)
P18_IN_GAAA(T40, T42, T43, T44) → U3_GAAA(T40, T42, T43, T44, less20_in_ga(T40, T42))
P18_IN_GAAA(T40, T42, T43, T44) → LESS20_IN_GA(T40, T42)
LESS20_IN_GA(s(T60), s(T62)) → U1_GA(T60, T62, less20_in_ga(T60, T62))
LESS20_IN_GA(s(T60), s(T62)) → LESS20_IN_GA(T60, T62)
P18_IN_GAAA(T40, T42, T47, T48) → U4_GAAA(T40, T42, T47, T48, less20_in_ga(T40, T42))
U4_GAAA(T40, T42, T47, T48, less20_out_ga(T40, T42)) → U5_GAAA(T40, T42, T47, T48, insert1_in_gaa(s(T40), T47, T48))
U4_GAAA(T40, T42, T47, T48, less20_out_ga(T40, T42)) → INSERT1_IN_GAA(s(T40), T47, T48)
INSERT1_IN_GAA(T77, tree(T82, T79, T83), tree(T82, T79, T84)) → U15_GAA(T77, T82, T79, T83, T84, less33_in_ag(T82, T77))
INSERT1_IN_GAA(T77, tree(T82, T79, T83), tree(T82, T79, T84)) → LESS33_IN_AG(T82, T77)
LESS33_IN_AG(s(T102), s(T101)) → U2_AG(T102, T101, less33_in_ag(T102, T101))
LESS33_IN_AG(s(T102), s(T101)) → LESS33_IN_AG(T102, T101)
INSERT1_IN_GAA(T77, tree(T82, T79, T87), tree(T82, T79, T88)) → U16_GAA(T77, T82, T79, T87, T88, less33_in_ag(T82, T77))
U16_GAA(T77, T82, T79, T87, T88, less33_out_ag(T82, T77)) → U17_GAA(T77, T82, T79, T87, T88, insert1_in_gaa(T77, T87, T88))
U16_GAA(T77, T82, T79, T87, T88, less33_out_ag(T82, T77)) → INSERT1_IN_GAA(T77, T87, T88)
INSERT1_IN_GAA(T112, tree(T117, T114, T118), tree(T117, T114, T119)) → U18_GAA(T112, T117, T114, T118, T119, p43_in_agaa(T117, T112, T118, T119))
INSERT1_IN_GAA(T112, tree(T117, T114, T118), tree(T117, T114, T119)) → P43_IN_AGAA(T117, T112, T118, T119)
P43_IN_AGAA(0, s(T124), T125, T126) → U6_AGAA(T124, T125, T126, insert1_in_gaa(s(T124), T125, T126))
P43_IN_AGAA(0, s(T124), T125, T126) → INSERT1_IN_GAA(s(T124), T125, T126)
INSERT1_IN_GAA(0, tree(s(T163), T164, T154), tree(s(T163), T165, T154)) → U19_GAA(T163, T164, T154, T165, insert1_in_gaa(0, T164, T165))
INSERT1_IN_GAA(s(T174), tree(s(T176), T177, T154), tree(s(T176), T178, T154)) → U20_GAA(T174, T176, T177, T154, T178, p18_in_gaaa(T174, T176, T177, T178))
INSERT1_IN_GAA(T191, tree(T196, T193, T197), tree(T196, T193, T198)) → U21_GAA(T191, T196, T193, T197, T198, p43_in_agaa(T196, T191, T197, T198))
P43_IN_AGAA(s(T135), s(T134), T136, T137) → U7_AGAA(T135, T134, T136, T137, p50_in_agaa(T135, T134, T136, T137))
P43_IN_AGAA(s(T135), s(T134), T136, T137) → P50_IN_AGAA(T135, T134, T136, T137)
P50_IN_AGAA(T135, T134, T136, T137) → U8_AGAA(T135, T134, T136, T137, less33_in_ag(T135, T134))
P50_IN_AGAA(T135, T134, T136, T137) → LESS33_IN_AG(T135, T134)
P50_IN_AGAA(T135, T134, T140, T141) → U9_AGAA(T135, T134, T140, T141, less33_in_ag(T135, T134))
U9_AGAA(T135, T134, T140, T141, less33_out_ag(T135, T134)) → U10_AGAA(T135, T134, T140, T141, insert1_in_gaa(s(T134), T140, T141))
U9_AGAA(T135, T134, T140, T141, less33_out_ag(T135, T134)) → INSERT1_IN_GAA(s(T134), T140, T141)
INSERT1_IN_GAA(T206, tree(T211, T208, T212), tree(T211, T208, T213)) → U22_GAA(T206, T211, T208, T212, T213, p68_in_agaa(T211, T206, T212, T213))
INSERT1_IN_GAA(T206, tree(T211, T208, T212), tree(T211, T208, T213)) → P68_IN_AGAA(T211, T206, T212, T213)
P68_IN_AGAA(0, s(T218), T219, T220) → U11_AGAA(T218, T219, T220, insert1_in_gaa(s(T218), T219, T220))
P68_IN_AGAA(0, s(T218), T219, T220) → INSERT1_IN_GAA(s(T218), T219, T220)
INSERT1_IN_GAA(0, tree(s(T257), T258, T248), tree(s(T257), T259, T248)) → U23_GAA(T257, T258, T248, T259, insert1_in_gaa(0, T258, T259))
INSERT1_IN_GAA(s(T268), tree(s(T270), T271, T248), tree(s(T270), T272, T248)) → U24_GAA(T268, T270, T271, T248, T272, p18_in_gaaa(T268, T270, T271, T272))
INSERT1_IN_GAA(T285, tree(T290, T287, T291), tree(T290, T287, T292)) → U25_GAA(T285, T290, T287, T291, T292, p68_in_agaa(T290, T285, T291, T292))
P68_IN_AGAA(s(T229), s(T228), T230, T231) → U12_AGAA(T229, T228, T230, T231, p50_in_agaa(T229, T228, T230, T231))
P68_IN_AGAA(s(T229), s(T228), T230, T231) → P50_IN_AGAA(T229, T228, T230, T231)
INSERT1_IN_GAA(s(T312), tree(0, T302, T313), tree(0, T302, T314)) → U26_GAA(T312, T302, T313, T314, insert1_in_gaa(s(T312), T313, T314))
INSERT1_IN_GAA(s(T312), tree(0, T302, T313), tree(0, T302, T314)) → INSERT1_IN_GAA(s(T312), T313, T314)
INSERT1_IN_GAA(s(T322), tree(s(T323), T302, T324), tree(s(T323), T302, T325)) → U27_GAA(T322, T323, T302, T324, T325, p50_in_agaa(T323, T322, T324, T325))
INSERT1_IN_GAA(s(T322), tree(s(T323), T302, T324), tree(s(T323), T302, T325)) → P50_IN_AGAA(T323, T322, T324, T325)
INSERT1_IN_GAA(0, tree(s(T345), T346, T336), tree(s(T345), T347, T336)) → U28_GAA(T345, T346, T336, T347, insert1_in_gaa(0, T346, T347))
INSERT1_IN_GAA(s(T356), tree(s(T358), T359, T336), tree(s(T358), T360, T336)) → U29_GAA(T356, T358, T359, T336, T360, p18_in_gaaa(T356, T358, T359, T360))
INSERT1_IN_GAA(T373, tree(T378, T375, T379), tree(T378, T375, T380)) → U30_GAA(T373, T378, T375, T379, T380, p68_in_agaa(T378, T373, T379, T380))
INSERT1_IN_GAA(s(T400), tree(0, T390, T401), tree(0, T390, T402)) → U31_GAA(T400, T390, T401, T402, insert1_in_gaa(s(T400), T401, T402))
INSERT1_IN_GAA(s(T410), tree(s(T411), T390, T412), tree(s(T411), T390, T413)) → U32_GAA(T410, T411, T390, T412, T413, p50_in_agaa(T411, T410, T412, T413))
insert1_in_gaa(T5, void, tree(T5, void, void)) → insert1_out_gaa(T5, void, tree(T5, void, void))
insert1_in_gaa(T9, tree(T9, T10, T11), tree(T9, T10, T11)) → insert1_out_gaa(T9, tree(T9, T10, T11), tree(T9, T10, T11))
insert1_in_gaa(0, tree(s(T29), T30, T20), tree(s(T29), T31, T20)) → U13_gaa(T29, T30, T20, T31, insert1_in_gaa(0, T30, T31))
insert1_in_gaa(s(T40), tree(s(T42), T43, T20), tree(s(T42), T44, T20)) → U14_gaa(T40, T42, T43, T20, T44, p18_in_gaaa(T40, T42, T43, T44))
p18_in_gaaa(T40, T42, T43, T44) → U3_gaaa(T40, T42, T43, T44, less20_in_ga(T40, T42))
less20_in_ga(0, s(T55)) → less20_out_ga(0, s(T55))
less20_in_ga(s(T60), s(T62)) → U1_ga(T60, T62, less20_in_ga(T60, T62))
U1_ga(T60, T62, less20_out_ga(T60, T62)) → less20_out_ga(s(T60), s(T62))
U3_gaaa(T40, T42, T43, T44, less20_out_ga(T40, T42)) → p18_out_gaaa(T40, T42, T43, T44)
p18_in_gaaa(T40, T42, T47, T48) → U4_gaaa(T40, T42, T47, T48, less20_in_ga(T40, T42))
U4_gaaa(T40, T42, T47, T48, less20_out_ga(T40, T42)) → U5_gaaa(T40, T42, T47, T48, insert1_in_gaa(s(T40), T47, T48))
insert1_in_gaa(T77, tree(T82, T79, T83), tree(T82, T79, T84)) → U15_gaa(T77, T82, T79, T83, T84, less33_in_ag(T82, T77))
less33_in_ag(0, s(T95)) → less33_out_ag(0, s(T95))
less33_in_ag(s(T102), s(T101)) → U2_ag(T102, T101, less33_in_ag(T102, T101))
U2_ag(T102, T101, less33_out_ag(T102, T101)) → less33_out_ag(s(T102), s(T101))
U15_gaa(T77, T82, T79, T83, T84, less33_out_ag(T82, T77)) → insert1_out_gaa(T77, tree(T82, T79, T83), tree(T82, T79, T84))
insert1_in_gaa(T77, tree(T82, T79, T87), tree(T82, T79, T88)) → U16_gaa(T77, T82, T79, T87, T88, less33_in_ag(T82, T77))
U16_gaa(T77, T82, T79, T87, T88, less33_out_ag(T82, T77)) → U17_gaa(T77, T82, T79, T87, T88, insert1_in_gaa(T77, T87, T88))
insert1_in_gaa(T112, tree(T117, T114, T118), tree(T117, T114, T119)) → U18_gaa(T112, T117, T114, T118, T119, p43_in_agaa(T117, T112, T118, T119))
p43_in_agaa(0, s(T124), T125, T126) → U6_agaa(T124, T125, T126, insert1_in_gaa(s(T124), T125, T126))
insert1_in_gaa(0, tree(s(T163), T164, T154), tree(s(T163), T165, T154)) → U19_gaa(T163, T164, T154, T165, insert1_in_gaa(0, T164, T165))
insert1_in_gaa(s(T174), tree(s(T176), T177, T154), tree(s(T176), T178, T154)) → U20_gaa(T174, T176, T177, T154, T178, p18_in_gaaa(T174, T176, T177, T178))
U20_gaa(T174, T176, T177, T154, T178, p18_out_gaaa(T174, T176, T177, T178)) → insert1_out_gaa(s(T174), tree(s(T176), T177, T154), tree(s(T176), T178, T154))
insert1_in_gaa(T191, tree(T196, T193, T197), tree(T196, T193, T198)) → U21_gaa(T191, T196, T193, T197, T198, p43_in_agaa(T196, T191, T197, T198))
p43_in_agaa(s(T135), s(T134), T136, T137) → U7_agaa(T135, T134, T136, T137, p50_in_agaa(T135, T134, T136, T137))
p50_in_agaa(T135, T134, T136, T137) → U8_agaa(T135, T134, T136, T137, less33_in_ag(T135, T134))
U8_agaa(T135, T134, T136, T137, less33_out_ag(T135, T134)) → p50_out_agaa(T135, T134, T136, T137)
p50_in_agaa(T135, T134, T140, T141) → U9_agaa(T135, T134, T140, T141, less33_in_ag(T135, T134))
U9_agaa(T135, T134, T140, T141, less33_out_ag(T135, T134)) → U10_agaa(T135, T134, T140, T141, insert1_in_gaa(s(T134), T140, T141))
insert1_in_gaa(T206, tree(T211, T208, T212), tree(T211, T208, T213)) → U22_gaa(T206, T211, T208, T212, T213, p68_in_agaa(T211, T206, T212, T213))
p68_in_agaa(0, s(T218), T219, T220) → U11_agaa(T218, T219, T220, insert1_in_gaa(s(T218), T219, T220))
insert1_in_gaa(0, tree(s(T257), T258, T248), tree(s(T257), T259, T248)) → U23_gaa(T257, T258, T248, T259, insert1_in_gaa(0, T258, T259))
insert1_in_gaa(s(T268), tree(s(T270), T271, T248), tree(s(T270), T272, T248)) → U24_gaa(T268, T270, T271, T248, T272, p18_in_gaaa(T268, T270, T271, T272))
U24_gaa(T268, T270, T271, T248, T272, p18_out_gaaa(T268, T270, T271, T272)) → insert1_out_gaa(s(T268), tree(s(T270), T271, T248), tree(s(T270), T272, T248))
insert1_in_gaa(T285, tree(T290, T287, T291), tree(T290, T287, T292)) → U25_gaa(T285, T290, T287, T291, T292, p68_in_agaa(T290, T285, T291, T292))
p68_in_agaa(s(T229), s(T228), T230, T231) → U12_agaa(T229, T228, T230, T231, p50_in_agaa(T229, T228, T230, T231))
U12_agaa(T229, T228, T230, T231, p50_out_agaa(T229, T228, T230, T231)) → p68_out_agaa(s(T229), s(T228), T230, T231)
U25_gaa(T285, T290, T287, T291, T292, p68_out_agaa(T290, T285, T291, T292)) → insert1_out_gaa(T285, tree(T290, T287, T291), tree(T290, T287, T292))
insert1_in_gaa(s(T312), tree(0, T302, T313), tree(0, T302, T314)) → U26_gaa(T312, T302, T313, T314, insert1_in_gaa(s(T312), T313, T314))
insert1_in_gaa(s(T322), tree(s(T323), T302, T324), tree(s(T323), T302, T325)) → U27_gaa(T322, T323, T302, T324, T325, p50_in_agaa(T323, T322, T324, T325))
U27_gaa(T322, T323, T302, T324, T325, p50_out_agaa(T323, T322, T324, T325)) → insert1_out_gaa(s(T322), tree(s(T323), T302, T324), tree(s(T323), T302, T325))
insert1_in_gaa(0, tree(s(T345), T346, T336), tree(s(T345), T347, T336)) → U28_gaa(T345, T346, T336, T347, insert1_in_gaa(0, T346, T347))
insert1_in_gaa(s(T356), tree(s(T358), T359, T336), tree(s(T358), T360, T336)) → U29_gaa(T356, T358, T359, T336, T360, p18_in_gaaa(T356, T358, T359, T360))
U29_gaa(T356, T358, T359, T336, T360, p18_out_gaaa(T356, T358, T359, T360)) → insert1_out_gaa(s(T356), tree(s(T358), T359, T336), tree(s(T358), T360, T336))
insert1_in_gaa(T373, tree(T378, T375, T379), tree(T378, T375, T380)) → U30_gaa(T373, T378, T375, T379, T380, p68_in_agaa(T378, T373, T379, T380))
U30_gaa(T373, T378, T375, T379, T380, p68_out_agaa(T378, T373, T379, T380)) → insert1_out_gaa(T373, tree(T378, T375, T379), tree(T378, T375, T380))
insert1_in_gaa(s(T400), tree(0, T390, T401), tree(0, T390, T402)) → U31_gaa(T400, T390, T401, T402, insert1_in_gaa(s(T400), T401, T402))
insert1_in_gaa(s(T410), tree(s(T411), T390, T412), tree(s(T411), T390, T413)) → U32_gaa(T410, T411, T390, T412, T413, p50_in_agaa(T411, T410, T412, T413))
U32_gaa(T410, T411, T390, T412, T413, p50_out_agaa(T411, T410, T412, T413)) → insert1_out_gaa(s(T410), tree(s(T411), T390, T412), tree(s(T411), T390, T413))
U31_gaa(T400, T390, T401, T402, insert1_out_gaa(s(T400), T401, T402)) → insert1_out_gaa(s(T400), tree(0, T390, T401), tree(0, T390, T402))
U28_gaa(T345, T346, T336, T347, insert1_out_gaa(0, T346, T347)) → insert1_out_gaa(0, tree(s(T345), T346, T336), tree(s(T345), T347, T336))
U26_gaa(T312, T302, T313, T314, insert1_out_gaa(s(T312), T313, T314)) → insert1_out_gaa(s(T312), tree(0, T302, T313), tree(0, T302, T314))
U23_gaa(T257, T258, T248, T259, insert1_out_gaa(0, T258, T259)) → insert1_out_gaa(0, tree(s(T257), T258, T248), tree(s(T257), T259, T248))
U11_agaa(T218, T219, T220, insert1_out_gaa(s(T218), T219, T220)) → p68_out_agaa(0, s(T218), T219, T220)
U22_gaa(T206, T211, T208, T212, T213, p68_out_agaa(T211, T206, T212, T213)) → insert1_out_gaa(T206, tree(T211, T208, T212), tree(T211, T208, T213))
U10_agaa(T135, T134, T140, T141, insert1_out_gaa(s(T134), T140, T141)) → p50_out_agaa(T135, T134, T140, T141)
U7_agaa(T135, T134, T136, T137, p50_out_agaa(T135, T134, T136, T137)) → p43_out_agaa(s(T135), s(T134), T136, T137)
U21_gaa(T191, T196, T193, T197, T198, p43_out_agaa(T196, T191, T197, T198)) → insert1_out_gaa(T191, tree(T196, T193, T197), tree(T196, T193, T198))
U19_gaa(T163, T164, T154, T165, insert1_out_gaa(0, T164, T165)) → insert1_out_gaa(0, tree(s(T163), T164, T154), tree(s(T163), T165, T154))
U6_agaa(T124, T125, T126, insert1_out_gaa(s(T124), T125, T126)) → p43_out_agaa(0, s(T124), T125, T126)
U18_gaa(T112, T117, T114, T118, T119, p43_out_agaa(T117, T112, T118, T119)) → insert1_out_gaa(T112, tree(T117, T114, T118), tree(T117, T114, T119))
U17_gaa(T77, T82, T79, T87, T88, insert1_out_gaa(T77, T87, T88)) → insert1_out_gaa(T77, tree(T82, T79, T87), tree(T82, T79, T88))
U5_gaaa(T40, T42, T47, T48, insert1_out_gaa(s(T40), T47, T48)) → p18_out_gaaa(T40, T42, T47, T48)
U14_gaa(T40, T42, T43, T20, T44, p18_out_gaaa(T40, T42, T43, T44)) → insert1_out_gaa(s(T40), tree(s(T42), T43, T20), tree(s(T42), T44, T20))
U13_gaa(T29, T30, T20, T31, insert1_out_gaa(0, T30, T31)) → insert1_out_gaa(0, tree(s(T29), T30, T20), tree(s(T29), T31, T20))
LESS33_IN_AG(s(T102), s(T101)) → LESS33_IN_AG(T102, T101)
insert1_in_gaa(T5, void, tree(T5, void, void)) → insert1_out_gaa(T5, void, tree(T5, void, void))
insert1_in_gaa(T9, tree(T9, T10, T11), tree(T9, T10, T11)) → insert1_out_gaa(T9, tree(T9, T10, T11), tree(T9, T10, T11))
insert1_in_gaa(0, tree(s(T29), T30, T20), tree(s(T29), T31, T20)) → U13_gaa(T29, T30, T20, T31, insert1_in_gaa(0, T30, T31))
insert1_in_gaa(s(T40), tree(s(T42), T43, T20), tree(s(T42), T44, T20)) → U14_gaa(T40, T42, T43, T20, T44, p18_in_gaaa(T40, T42, T43, T44))
p18_in_gaaa(T40, T42, T43, T44) → U3_gaaa(T40, T42, T43, T44, less20_in_ga(T40, T42))
less20_in_ga(0, s(T55)) → less20_out_ga(0, s(T55))
less20_in_ga(s(T60), s(T62)) → U1_ga(T60, T62, less20_in_ga(T60, T62))
U1_ga(T60, T62, less20_out_ga(T60, T62)) → less20_out_ga(s(T60), s(T62))
U3_gaaa(T40, T42, T43, T44, less20_out_ga(T40, T42)) → p18_out_gaaa(T40, T42, T43, T44)
p18_in_gaaa(T40, T42, T47, T48) → U4_gaaa(T40, T42, T47, T48, less20_in_ga(T40, T42))
U4_gaaa(T40, T42, T47, T48, less20_out_ga(T40, T42)) → U5_gaaa(T40, T42, T47, T48, insert1_in_gaa(s(T40), T47, T48))
insert1_in_gaa(T77, tree(T82, T79, T83), tree(T82, T79, T84)) → U15_gaa(T77, T82, T79, T83, T84, less33_in_ag(T82, T77))
less33_in_ag(0, s(T95)) → less33_out_ag(0, s(T95))
less33_in_ag(s(T102), s(T101)) → U2_ag(T102, T101, less33_in_ag(T102, T101))
U2_ag(T102, T101, less33_out_ag(T102, T101)) → less33_out_ag(s(T102), s(T101))
U15_gaa(T77, T82, T79, T83, T84, less33_out_ag(T82, T77)) → insert1_out_gaa(T77, tree(T82, T79, T83), tree(T82, T79, T84))
insert1_in_gaa(T77, tree(T82, T79, T87), tree(T82, T79, T88)) → U16_gaa(T77, T82, T79, T87, T88, less33_in_ag(T82, T77))
U16_gaa(T77, T82, T79, T87, T88, less33_out_ag(T82, T77)) → U17_gaa(T77, T82, T79, T87, T88, insert1_in_gaa(T77, T87, T88))
insert1_in_gaa(T112, tree(T117, T114, T118), tree(T117, T114, T119)) → U18_gaa(T112, T117, T114, T118, T119, p43_in_agaa(T117, T112, T118, T119))
p43_in_agaa(0, s(T124), T125, T126) → U6_agaa(T124, T125, T126, insert1_in_gaa(s(T124), T125, T126))
insert1_in_gaa(0, tree(s(T163), T164, T154), tree(s(T163), T165, T154)) → U19_gaa(T163, T164, T154, T165, insert1_in_gaa(0, T164, T165))
insert1_in_gaa(s(T174), tree(s(T176), T177, T154), tree(s(T176), T178, T154)) → U20_gaa(T174, T176, T177, T154, T178, p18_in_gaaa(T174, T176, T177, T178))
U20_gaa(T174, T176, T177, T154, T178, p18_out_gaaa(T174, T176, T177, T178)) → insert1_out_gaa(s(T174), tree(s(T176), T177, T154), tree(s(T176), T178, T154))
insert1_in_gaa(T191, tree(T196, T193, T197), tree(T196, T193, T198)) → U21_gaa(T191, T196, T193, T197, T198, p43_in_agaa(T196, T191, T197, T198))
p43_in_agaa(s(T135), s(T134), T136, T137) → U7_agaa(T135, T134, T136, T137, p50_in_agaa(T135, T134, T136, T137))
p50_in_agaa(T135, T134, T136, T137) → U8_agaa(T135, T134, T136, T137, less33_in_ag(T135, T134))
U8_agaa(T135, T134, T136, T137, less33_out_ag(T135, T134)) → p50_out_agaa(T135, T134, T136, T137)
p50_in_agaa(T135, T134, T140, T141) → U9_agaa(T135, T134, T140, T141, less33_in_ag(T135, T134))
U9_agaa(T135, T134, T140, T141, less33_out_ag(T135, T134)) → U10_agaa(T135, T134, T140, T141, insert1_in_gaa(s(T134), T140, T141))
insert1_in_gaa(T206, tree(T211, T208, T212), tree(T211, T208, T213)) → U22_gaa(T206, T211, T208, T212, T213, p68_in_agaa(T211, T206, T212, T213))
p68_in_agaa(0, s(T218), T219, T220) → U11_agaa(T218, T219, T220, insert1_in_gaa(s(T218), T219, T220))
insert1_in_gaa(0, tree(s(T257), T258, T248), tree(s(T257), T259, T248)) → U23_gaa(T257, T258, T248, T259, insert1_in_gaa(0, T258, T259))
insert1_in_gaa(s(T268), tree(s(T270), T271, T248), tree(s(T270), T272, T248)) → U24_gaa(T268, T270, T271, T248, T272, p18_in_gaaa(T268, T270, T271, T272))
U24_gaa(T268, T270, T271, T248, T272, p18_out_gaaa(T268, T270, T271, T272)) → insert1_out_gaa(s(T268), tree(s(T270), T271, T248), tree(s(T270), T272, T248))
insert1_in_gaa(T285, tree(T290, T287, T291), tree(T290, T287, T292)) → U25_gaa(T285, T290, T287, T291, T292, p68_in_agaa(T290, T285, T291, T292))
p68_in_agaa(s(T229), s(T228), T230, T231) → U12_agaa(T229, T228, T230, T231, p50_in_agaa(T229, T228, T230, T231))
U12_agaa(T229, T228, T230, T231, p50_out_agaa(T229, T228, T230, T231)) → p68_out_agaa(s(T229), s(T228), T230, T231)
U25_gaa(T285, T290, T287, T291, T292, p68_out_agaa(T290, T285, T291, T292)) → insert1_out_gaa(T285, tree(T290, T287, T291), tree(T290, T287, T292))
insert1_in_gaa(s(T312), tree(0, T302, T313), tree(0, T302, T314)) → U26_gaa(T312, T302, T313, T314, insert1_in_gaa(s(T312), T313, T314))
insert1_in_gaa(s(T322), tree(s(T323), T302, T324), tree(s(T323), T302, T325)) → U27_gaa(T322, T323, T302, T324, T325, p50_in_agaa(T323, T322, T324, T325))
U27_gaa(T322, T323, T302, T324, T325, p50_out_agaa(T323, T322, T324, T325)) → insert1_out_gaa(s(T322), tree(s(T323), T302, T324), tree(s(T323), T302, T325))
insert1_in_gaa(0, tree(s(T345), T346, T336), tree(s(T345), T347, T336)) → U28_gaa(T345, T346, T336, T347, insert1_in_gaa(0, T346, T347))
insert1_in_gaa(s(T356), tree(s(T358), T359, T336), tree(s(T358), T360, T336)) → U29_gaa(T356, T358, T359, T336, T360, p18_in_gaaa(T356, T358, T359, T360))
U29_gaa(T356, T358, T359, T336, T360, p18_out_gaaa(T356, T358, T359, T360)) → insert1_out_gaa(s(T356), tree(s(T358), T359, T336), tree(s(T358), T360, T336))
insert1_in_gaa(T373, tree(T378, T375, T379), tree(T378, T375, T380)) → U30_gaa(T373, T378, T375, T379, T380, p68_in_agaa(T378, T373, T379, T380))
U30_gaa(T373, T378, T375, T379, T380, p68_out_agaa(T378, T373, T379, T380)) → insert1_out_gaa(T373, tree(T378, T375, T379), tree(T378, T375, T380))
insert1_in_gaa(s(T400), tree(0, T390, T401), tree(0, T390, T402)) → U31_gaa(T400, T390, T401, T402, insert1_in_gaa(s(T400), T401, T402))
insert1_in_gaa(s(T410), tree(s(T411), T390, T412), tree(s(T411), T390, T413)) → U32_gaa(T410, T411, T390, T412, T413, p50_in_agaa(T411, T410, T412, T413))
U32_gaa(T410, T411, T390, T412, T413, p50_out_agaa(T411, T410, T412, T413)) → insert1_out_gaa(s(T410), tree(s(T411), T390, T412), tree(s(T411), T390, T413))
U31_gaa(T400, T390, T401, T402, insert1_out_gaa(s(T400), T401, T402)) → insert1_out_gaa(s(T400), tree(0, T390, T401), tree(0, T390, T402))
U28_gaa(T345, T346, T336, T347, insert1_out_gaa(0, T346, T347)) → insert1_out_gaa(0, tree(s(T345), T346, T336), tree(s(T345), T347, T336))
U26_gaa(T312, T302, T313, T314, insert1_out_gaa(s(T312), T313, T314)) → insert1_out_gaa(s(T312), tree(0, T302, T313), tree(0, T302, T314))
U23_gaa(T257, T258, T248, T259, insert1_out_gaa(0, T258, T259)) → insert1_out_gaa(0, tree(s(T257), T258, T248), tree(s(T257), T259, T248))
U11_agaa(T218, T219, T220, insert1_out_gaa(s(T218), T219, T220)) → p68_out_agaa(0, s(T218), T219, T220)
U22_gaa(T206, T211, T208, T212, T213, p68_out_agaa(T211, T206, T212, T213)) → insert1_out_gaa(T206, tree(T211, T208, T212), tree(T211, T208, T213))
U10_agaa(T135, T134, T140, T141, insert1_out_gaa(s(T134), T140, T141)) → p50_out_agaa(T135, T134, T140, T141)
U7_agaa(T135, T134, T136, T137, p50_out_agaa(T135, T134, T136, T137)) → p43_out_agaa(s(T135), s(T134), T136, T137)
U21_gaa(T191, T196, T193, T197, T198, p43_out_agaa(T196, T191, T197, T198)) → insert1_out_gaa(T191, tree(T196, T193, T197), tree(T196, T193, T198))
U19_gaa(T163, T164, T154, T165, insert1_out_gaa(0, T164, T165)) → insert1_out_gaa(0, tree(s(T163), T164, T154), tree(s(T163), T165, T154))
U6_agaa(T124, T125, T126, insert1_out_gaa(s(T124), T125, T126)) → p43_out_agaa(0, s(T124), T125, T126)
U18_gaa(T112, T117, T114, T118, T119, p43_out_agaa(T117, T112, T118, T119)) → insert1_out_gaa(T112, tree(T117, T114, T118), tree(T117, T114, T119))
U17_gaa(T77, T82, T79, T87, T88, insert1_out_gaa(T77, T87, T88)) → insert1_out_gaa(T77, tree(T82, T79, T87), tree(T82, T79, T88))
U5_gaaa(T40, T42, T47, T48, insert1_out_gaa(s(T40), T47, T48)) → p18_out_gaaa(T40, T42, T47, T48)
U14_gaa(T40, T42, T43, T20, T44, p18_out_gaaa(T40, T42, T43, T44)) → insert1_out_gaa(s(T40), tree(s(T42), T43, T20), tree(s(T42), T44, T20))
U13_gaa(T29, T30, T20, T31, insert1_out_gaa(0, T30, T31)) → insert1_out_gaa(0, tree(s(T29), T30, T20), tree(s(T29), T31, T20))
LESS33_IN_AG(s(T102), s(T101)) → LESS33_IN_AG(T102, T101)
LESS33_IN_AG(s(T101)) → LESS33_IN_AG(T101)
From the DPs we obtained the following set of size-change graphs:
LESS20_IN_GA(s(T60), s(T62)) → LESS20_IN_GA(T60, T62)
insert1_in_gaa(T5, void, tree(T5, void, void)) → insert1_out_gaa(T5, void, tree(T5, void, void))
insert1_in_gaa(T9, tree(T9, T10, T11), tree(T9, T10, T11)) → insert1_out_gaa(T9, tree(T9, T10, T11), tree(T9, T10, T11))
insert1_in_gaa(0, tree(s(T29), T30, T20), tree(s(T29), T31, T20)) → U13_gaa(T29, T30, T20, T31, insert1_in_gaa(0, T30, T31))
insert1_in_gaa(s(T40), tree(s(T42), T43, T20), tree(s(T42), T44, T20)) → U14_gaa(T40, T42, T43, T20, T44, p18_in_gaaa(T40, T42, T43, T44))
p18_in_gaaa(T40, T42, T43, T44) → U3_gaaa(T40, T42, T43, T44, less20_in_ga(T40, T42))
less20_in_ga(0, s(T55)) → less20_out_ga(0, s(T55))
less20_in_ga(s(T60), s(T62)) → U1_ga(T60, T62, less20_in_ga(T60, T62))
U1_ga(T60, T62, less20_out_ga(T60, T62)) → less20_out_ga(s(T60), s(T62))
U3_gaaa(T40, T42, T43, T44, less20_out_ga(T40, T42)) → p18_out_gaaa(T40, T42, T43, T44)
p18_in_gaaa(T40, T42, T47, T48) → U4_gaaa(T40, T42, T47, T48, less20_in_ga(T40, T42))
U4_gaaa(T40, T42, T47, T48, less20_out_ga(T40, T42)) → U5_gaaa(T40, T42, T47, T48, insert1_in_gaa(s(T40), T47, T48))
insert1_in_gaa(T77, tree(T82, T79, T83), tree(T82, T79, T84)) → U15_gaa(T77, T82, T79, T83, T84, less33_in_ag(T82, T77))
less33_in_ag(0, s(T95)) → less33_out_ag(0, s(T95))
less33_in_ag(s(T102), s(T101)) → U2_ag(T102, T101, less33_in_ag(T102, T101))
U2_ag(T102, T101, less33_out_ag(T102, T101)) → less33_out_ag(s(T102), s(T101))
U15_gaa(T77, T82, T79, T83, T84, less33_out_ag(T82, T77)) → insert1_out_gaa(T77, tree(T82, T79, T83), tree(T82, T79, T84))
insert1_in_gaa(T77, tree(T82, T79, T87), tree(T82, T79, T88)) → U16_gaa(T77, T82, T79, T87, T88, less33_in_ag(T82, T77))
U16_gaa(T77, T82, T79, T87, T88, less33_out_ag(T82, T77)) → U17_gaa(T77, T82, T79, T87, T88, insert1_in_gaa(T77, T87, T88))
insert1_in_gaa(T112, tree(T117, T114, T118), tree(T117, T114, T119)) → U18_gaa(T112, T117, T114, T118, T119, p43_in_agaa(T117, T112, T118, T119))
p43_in_agaa(0, s(T124), T125, T126) → U6_agaa(T124, T125, T126, insert1_in_gaa(s(T124), T125, T126))
insert1_in_gaa(0, tree(s(T163), T164, T154), tree(s(T163), T165, T154)) → U19_gaa(T163, T164, T154, T165, insert1_in_gaa(0, T164, T165))
insert1_in_gaa(s(T174), tree(s(T176), T177, T154), tree(s(T176), T178, T154)) → U20_gaa(T174, T176, T177, T154, T178, p18_in_gaaa(T174, T176, T177, T178))
U20_gaa(T174, T176, T177, T154, T178, p18_out_gaaa(T174, T176, T177, T178)) → insert1_out_gaa(s(T174), tree(s(T176), T177, T154), tree(s(T176), T178, T154))
insert1_in_gaa(T191, tree(T196, T193, T197), tree(T196, T193, T198)) → U21_gaa(T191, T196, T193, T197, T198, p43_in_agaa(T196, T191, T197, T198))
p43_in_agaa(s(T135), s(T134), T136, T137) → U7_agaa(T135, T134, T136, T137, p50_in_agaa(T135, T134, T136, T137))
p50_in_agaa(T135, T134, T136, T137) → U8_agaa(T135, T134, T136, T137, less33_in_ag(T135, T134))
U8_agaa(T135, T134, T136, T137, less33_out_ag(T135, T134)) → p50_out_agaa(T135, T134, T136, T137)
p50_in_agaa(T135, T134, T140, T141) → U9_agaa(T135, T134, T140, T141, less33_in_ag(T135, T134))
U9_agaa(T135, T134, T140, T141, less33_out_ag(T135, T134)) → U10_agaa(T135, T134, T140, T141, insert1_in_gaa(s(T134), T140, T141))
insert1_in_gaa(T206, tree(T211, T208, T212), tree(T211, T208, T213)) → U22_gaa(T206, T211, T208, T212, T213, p68_in_agaa(T211, T206, T212, T213))
p68_in_agaa(0, s(T218), T219, T220) → U11_agaa(T218, T219, T220, insert1_in_gaa(s(T218), T219, T220))
insert1_in_gaa(0, tree(s(T257), T258, T248), tree(s(T257), T259, T248)) → U23_gaa(T257, T258, T248, T259, insert1_in_gaa(0, T258, T259))
insert1_in_gaa(s(T268), tree(s(T270), T271, T248), tree(s(T270), T272, T248)) → U24_gaa(T268, T270, T271, T248, T272, p18_in_gaaa(T268, T270, T271, T272))
U24_gaa(T268, T270, T271, T248, T272, p18_out_gaaa(T268, T270, T271, T272)) → insert1_out_gaa(s(T268), tree(s(T270), T271, T248), tree(s(T270), T272, T248))
insert1_in_gaa(T285, tree(T290, T287, T291), tree(T290, T287, T292)) → U25_gaa(T285, T290, T287, T291, T292, p68_in_agaa(T290, T285, T291, T292))
p68_in_agaa(s(T229), s(T228), T230, T231) → U12_agaa(T229, T228, T230, T231, p50_in_agaa(T229, T228, T230, T231))
U12_agaa(T229, T228, T230, T231, p50_out_agaa(T229, T228, T230, T231)) → p68_out_agaa(s(T229), s(T228), T230, T231)
U25_gaa(T285, T290, T287, T291, T292, p68_out_agaa(T290, T285, T291, T292)) → insert1_out_gaa(T285, tree(T290, T287, T291), tree(T290, T287, T292))
insert1_in_gaa(s(T312), tree(0, T302, T313), tree(0, T302, T314)) → U26_gaa(T312, T302, T313, T314, insert1_in_gaa(s(T312), T313, T314))
insert1_in_gaa(s(T322), tree(s(T323), T302, T324), tree(s(T323), T302, T325)) → U27_gaa(T322, T323, T302, T324, T325, p50_in_agaa(T323, T322, T324, T325))
U27_gaa(T322, T323, T302, T324, T325, p50_out_agaa(T323, T322, T324, T325)) → insert1_out_gaa(s(T322), tree(s(T323), T302, T324), tree(s(T323), T302, T325))
insert1_in_gaa(0, tree(s(T345), T346, T336), tree(s(T345), T347, T336)) → U28_gaa(T345, T346, T336, T347, insert1_in_gaa(0, T346, T347))
insert1_in_gaa(s(T356), tree(s(T358), T359, T336), tree(s(T358), T360, T336)) → U29_gaa(T356, T358, T359, T336, T360, p18_in_gaaa(T356, T358, T359, T360))
U29_gaa(T356, T358, T359, T336, T360, p18_out_gaaa(T356, T358, T359, T360)) → insert1_out_gaa(s(T356), tree(s(T358), T359, T336), tree(s(T358), T360, T336))
insert1_in_gaa(T373, tree(T378, T375, T379), tree(T378, T375, T380)) → U30_gaa(T373, T378, T375, T379, T380, p68_in_agaa(T378, T373, T379, T380))
U30_gaa(T373, T378, T375, T379, T380, p68_out_agaa(T378, T373, T379, T380)) → insert1_out_gaa(T373, tree(T378, T375, T379), tree(T378, T375, T380))
insert1_in_gaa(s(T400), tree(0, T390, T401), tree(0, T390, T402)) → U31_gaa(T400, T390, T401, T402, insert1_in_gaa(s(T400), T401, T402))
insert1_in_gaa(s(T410), tree(s(T411), T390, T412), tree(s(T411), T390, T413)) → U32_gaa(T410, T411, T390, T412, T413, p50_in_agaa(T411, T410, T412, T413))
U32_gaa(T410, T411, T390, T412, T413, p50_out_agaa(T411, T410, T412, T413)) → insert1_out_gaa(s(T410), tree(s(T411), T390, T412), tree(s(T411), T390, T413))
U31_gaa(T400, T390, T401, T402, insert1_out_gaa(s(T400), T401, T402)) → insert1_out_gaa(s(T400), tree(0, T390, T401), tree(0, T390, T402))
U28_gaa(T345, T346, T336, T347, insert1_out_gaa(0, T346, T347)) → insert1_out_gaa(0, tree(s(T345), T346, T336), tree(s(T345), T347, T336))
U26_gaa(T312, T302, T313, T314, insert1_out_gaa(s(T312), T313, T314)) → insert1_out_gaa(s(T312), tree(0, T302, T313), tree(0, T302, T314))
U23_gaa(T257, T258, T248, T259, insert1_out_gaa(0, T258, T259)) → insert1_out_gaa(0, tree(s(T257), T258, T248), tree(s(T257), T259, T248))
U11_agaa(T218, T219, T220, insert1_out_gaa(s(T218), T219, T220)) → p68_out_agaa(0, s(T218), T219, T220)
U22_gaa(T206, T211, T208, T212, T213, p68_out_agaa(T211, T206, T212, T213)) → insert1_out_gaa(T206, tree(T211, T208, T212), tree(T211, T208, T213))
U10_agaa(T135, T134, T140, T141, insert1_out_gaa(s(T134), T140, T141)) → p50_out_agaa(T135, T134, T140, T141)
U7_agaa(T135, T134, T136, T137, p50_out_agaa(T135, T134, T136, T137)) → p43_out_agaa(s(T135), s(T134), T136, T137)
U21_gaa(T191, T196, T193, T197, T198, p43_out_agaa(T196, T191, T197, T198)) → insert1_out_gaa(T191, tree(T196, T193, T197), tree(T196, T193, T198))
U19_gaa(T163, T164, T154, T165, insert1_out_gaa(0, T164, T165)) → insert1_out_gaa(0, tree(s(T163), T164, T154), tree(s(T163), T165, T154))
U6_agaa(T124, T125, T126, insert1_out_gaa(s(T124), T125, T126)) → p43_out_agaa(0, s(T124), T125, T126)
U18_gaa(T112, T117, T114, T118, T119, p43_out_agaa(T117, T112, T118, T119)) → insert1_out_gaa(T112, tree(T117, T114, T118), tree(T117, T114, T119))
U17_gaa(T77, T82, T79, T87, T88, insert1_out_gaa(T77, T87, T88)) → insert1_out_gaa(T77, tree(T82, T79, T87), tree(T82, T79, T88))
U5_gaaa(T40, T42, T47, T48, insert1_out_gaa(s(T40), T47, T48)) → p18_out_gaaa(T40, T42, T47, T48)
U14_gaa(T40, T42, T43, T20, T44, p18_out_gaaa(T40, T42, T43, T44)) → insert1_out_gaa(s(T40), tree(s(T42), T43, T20), tree(s(T42), T44, T20))
U13_gaa(T29, T30, T20, T31, insert1_out_gaa(0, T30, T31)) → insert1_out_gaa(0, tree(s(T29), T30, T20), tree(s(T29), T31, T20))
LESS20_IN_GA(s(T60), s(T62)) → LESS20_IN_GA(T60, T62)
LESS20_IN_GA(s(T60)) → LESS20_IN_GA(T60)
From the DPs we obtained the following set of size-change graphs:
INSERT1_IN_GAA(T77, tree(T82, T79, T87), tree(T82, T79, T88)) → U16_GAA(T77, T82, T79, T87, T88, less33_in_ag(T82, T77))
U16_GAA(T77, T82, T79, T87, T88, less33_out_ag(T82, T77)) → INSERT1_IN_GAA(T77, T87, T88)
INSERT1_IN_GAA(0, tree(s(T29), T30, T20), tree(s(T29), T31, T20)) → INSERT1_IN_GAA(0, T30, T31)
INSERT1_IN_GAA(T112, tree(T117, T114, T118), tree(T117, T114, T119)) → P43_IN_AGAA(T117, T112, T118, T119)
P43_IN_AGAA(0, s(T124), T125, T126) → INSERT1_IN_GAA(s(T124), T125, T126)
INSERT1_IN_GAA(s(T40), tree(s(T42), T43, T20), tree(s(T42), T44, T20)) → P18_IN_GAAA(T40, T42, T43, T44)
P18_IN_GAAA(T40, T42, T47, T48) → U4_GAAA(T40, T42, T47, T48, less20_in_ga(T40, T42))
U4_GAAA(T40, T42, T47, T48, less20_out_ga(T40, T42)) → INSERT1_IN_GAA(s(T40), T47, T48)
INSERT1_IN_GAA(T206, tree(T211, T208, T212), tree(T211, T208, T213)) → P68_IN_AGAA(T211, T206, T212, T213)
P68_IN_AGAA(0, s(T218), T219, T220) → INSERT1_IN_GAA(s(T218), T219, T220)
INSERT1_IN_GAA(s(T312), tree(0, T302, T313), tree(0, T302, T314)) → INSERT1_IN_GAA(s(T312), T313, T314)
INSERT1_IN_GAA(s(T322), tree(s(T323), T302, T324), tree(s(T323), T302, T325)) → P50_IN_AGAA(T323, T322, T324, T325)
P50_IN_AGAA(T135, T134, T140, T141) → U9_AGAA(T135, T134, T140, T141, less33_in_ag(T135, T134))
U9_AGAA(T135, T134, T140, T141, less33_out_ag(T135, T134)) → INSERT1_IN_GAA(s(T134), T140, T141)
P68_IN_AGAA(s(T229), s(T228), T230, T231) → P50_IN_AGAA(T229, T228, T230, T231)
P43_IN_AGAA(s(T135), s(T134), T136, T137) → P50_IN_AGAA(T135, T134, T136, T137)
insert1_in_gaa(T5, void, tree(T5, void, void)) → insert1_out_gaa(T5, void, tree(T5, void, void))
insert1_in_gaa(T9, tree(T9, T10, T11), tree(T9, T10, T11)) → insert1_out_gaa(T9, tree(T9, T10, T11), tree(T9, T10, T11))
insert1_in_gaa(0, tree(s(T29), T30, T20), tree(s(T29), T31, T20)) → U13_gaa(T29, T30, T20, T31, insert1_in_gaa(0, T30, T31))
insert1_in_gaa(s(T40), tree(s(T42), T43, T20), tree(s(T42), T44, T20)) → U14_gaa(T40, T42, T43, T20, T44, p18_in_gaaa(T40, T42, T43, T44))
p18_in_gaaa(T40, T42, T43, T44) → U3_gaaa(T40, T42, T43, T44, less20_in_ga(T40, T42))
less20_in_ga(0, s(T55)) → less20_out_ga(0, s(T55))
less20_in_ga(s(T60), s(T62)) → U1_ga(T60, T62, less20_in_ga(T60, T62))
U1_ga(T60, T62, less20_out_ga(T60, T62)) → less20_out_ga(s(T60), s(T62))
U3_gaaa(T40, T42, T43, T44, less20_out_ga(T40, T42)) → p18_out_gaaa(T40, T42, T43, T44)
p18_in_gaaa(T40, T42, T47, T48) → U4_gaaa(T40, T42, T47, T48, less20_in_ga(T40, T42))
U4_gaaa(T40, T42, T47, T48, less20_out_ga(T40, T42)) → U5_gaaa(T40, T42, T47, T48, insert1_in_gaa(s(T40), T47, T48))
insert1_in_gaa(T77, tree(T82, T79, T83), tree(T82, T79, T84)) → U15_gaa(T77, T82, T79, T83, T84, less33_in_ag(T82, T77))
less33_in_ag(0, s(T95)) → less33_out_ag(0, s(T95))
less33_in_ag(s(T102), s(T101)) → U2_ag(T102, T101, less33_in_ag(T102, T101))
U2_ag(T102, T101, less33_out_ag(T102, T101)) → less33_out_ag(s(T102), s(T101))
U15_gaa(T77, T82, T79, T83, T84, less33_out_ag(T82, T77)) → insert1_out_gaa(T77, tree(T82, T79, T83), tree(T82, T79, T84))
insert1_in_gaa(T77, tree(T82, T79, T87), tree(T82, T79, T88)) → U16_gaa(T77, T82, T79, T87, T88, less33_in_ag(T82, T77))
U16_gaa(T77, T82, T79, T87, T88, less33_out_ag(T82, T77)) → U17_gaa(T77, T82, T79, T87, T88, insert1_in_gaa(T77, T87, T88))
insert1_in_gaa(T112, tree(T117, T114, T118), tree(T117, T114, T119)) → U18_gaa(T112, T117, T114, T118, T119, p43_in_agaa(T117, T112, T118, T119))
p43_in_agaa(0, s(T124), T125, T126) → U6_agaa(T124, T125, T126, insert1_in_gaa(s(T124), T125, T126))
insert1_in_gaa(0, tree(s(T163), T164, T154), tree(s(T163), T165, T154)) → U19_gaa(T163, T164, T154, T165, insert1_in_gaa(0, T164, T165))
insert1_in_gaa(s(T174), tree(s(T176), T177, T154), tree(s(T176), T178, T154)) → U20_gaa(T174, T176, T177, T154, T178, p18_in_gaaa(T174, T176, T177, T178))
U20_gaa(T174, T176, T177, T154, T178, p18_out_gaaa(T174, T176, T177, T178)) → insert1_out_gaa(s(T174), tree(s(T176), T177, T154), tree(s(T176), T178, T154))
insert1_in_gaa(T191, tree(T196, T193, T197), tree(T196, T193, T198)) → U21_gaa(T191, T196, T193, T197, T198, p43_in_agaa(T196, T191, T197, T198))
p43_in_agaa(s(T135), s(T134), T136, T137) → U7_agaa(T135, T134, T136, T137, p50_in_agaa(T135, T134, T136, T137))
p50_in_agaa(T135, T134, T136, T137) → U8_agaa(T135, T134, T136, T137, less33_in_ag(T135, T134))
U8_agaa(T135, T134, T136, T137, less33_out_ag(T135, T134)) → p50_out_agaa(T135, T134, T136, T137)
p50_in_agaa(T135, T134, T140, T141) → U9_agaa(T135, T134, T140, T141, less33_in_ag(T135, T134))
U9_agaa(T135, T134, T140, T141, less33_out_ag(T135, T134)) → U10_agaa(T135, T134, T140, T141, insert1_in_gaa(s(T134), T140, T141))
insert1_in_gaa(T206, tree(T211, T208, T212), tree(T211, T208, T213)) → U22_gaa(T206, T211, T208, T212, T213, p68_in_agaa(T211, T206, T212, T213))
p68_in_agaa(0, s(T218), T219, T220) → U11_agaa(T218, T219, T220, insert1_in_gaa(s(T218), T219, T220))
insert1_in_gaa(0, tree(s(T257), T258, T248), tree(s(T257), T259, T248)) → U23_gaa(T257, T258, T248, T259, insert1_in_gaa(0, T258, T259))
insert1_in_gaa(s(T268), tree(s(T270), T271, T248), tree(s(T270), T272, T248)) → U24_gaa(T268, T270, T271, T248, T272, p18_in_gaaa(T268, T270, T271, T272))
U24_gaa(T268, T270, T271, T248, T272, p18_out_gaaa(T268, T270, T271, T272)) → insert1_out_gaa(s(T268), tree(s(T270), T271, T248), tree(s(T270), T272, T248))
insert1_in_gaa(T285, tree(T290, T287, T291), tree(T290, T287, T292)) → U25_gaa(T285, T290, T287, T291, T292, p68_in_agaa(T290, T285, T291, T292))
p68_in_agaa(s(T229), s(T228), T230, T231) → U12_agaa(T229, T228, T230, T231, p50_in_agaa(T229, T228, T230, T231))
U12_agaa(T229, T228, T230, T231, p50_out_agaa(T229, T228, T230, T231)) → p68_out_agaa(s(T229), s(T228), T230, T231)
U25_gaa(T285, T290, T287, T291, T292, p68_out_agaa(T290, T285, T291, T292)) → insert1_out_gaa(T285, tree(T290, T287, T291), tree(T290, T287, T292))
insert1_in_gaa(s(T312), tree(0, T302, T313), tree(0, T302, T314)) → U26_gaa(T312, T302, T313, T314, insert1_in_gaa(s(T312), T313, T314))
insert1_in_gaa(s(T322), tree(s(T323), T302, T324), tree(s(T323), T302, T325)) → U27_gaa(T322, T323, T302, T324, T325, p50_in_agaa(T323, T322, T324, T325))
U27_gaa(T322, T323, T302, T324, T325, p50_out_agaa(T323, T322, T324, T325)) → insert1_out_gaa(s(T322), tree(s(T323), T302, T324), tree(s(T323), T302, T325))
insert1_in_gaa(0, tree(s(T345), T346, T336), tree(s(T345), T347, T336)) → U28_gaa(T345, T346, T336, T347, insert1_in_gaa(0, T346, T347))
insert1_in_gaa(s(T356), tree(s(T358), T359, T336), tree(s(T358), T360, T336)) → U29_gaa(T356, T358, T359, T336, T360, p18_in_gaaa(T356, T358, T359, T360))
U29_gaa(T356, T358, T359, T336, T360, p18_out_gaaa(T356, T358, T359, T360)) → insert1_out_gaa(s(T356), tree(s(T358), T359, T336), tree(s(T358), T360, T336))
insert1_in_gaa(T373, tree(T378, T375, T379), tree(T378, T375, T380)) → U30_gaa(T373, T378, T375, T379, T380, p68_in_agaa(T378, T373, T379, T380))
U30_gaa(T373, T378, T375, T379, T380, p68_out_agaa(T378, T373, T379, T380)) → insert1_out_gaa(T373, tree(T378, T375, T379), tree(T378, T375, T380))
insert1_in_gaa(s(T400), tree(0, T390, T401), tree(0, T390, T402)) → U31_gaa(T400, T390, T401, T402, insert1_in_gaa(s(T400), T401, T402))
insert1_in_gaa(s(T410), tree(s(T411), T390, T412), tree(s(T411), T390, T413)) → U32_gaa(T410, T411, T390, T412, T413, p50_in_agaa(T411, T410, T412, T413))
U32_gaa(T410, T411, T390, T412, T413, p50_out_agaa(T411, T410, T412, T413)) → insert1_out_gaa(s(T410), tree(s(T411), T390, T412), tree(s(T411), T390, T413))
U31_gaa(T400, T390, T401, T402, insert1_out_gaa(s(T400), T401, T402)) → insert1_out_gaa(s(T400), tree(0, T390, T401), tree(0, T390, T402))
U28_gaa(T345, T346, T336, T347, insert1_out_gaa(0, T346, T347)) → insert1_out_gaa(0, tree(s(T345), T346, T336), tree(s(T345), T347, T336))
U26_gaa(T312, T302, T313, T314, insert1_out_gaa(s(T312), T313, T314)) → insert1_out_gaa(s(T312), tree(0, T302, T313), tree(0, T302, T314))
U23_gaa(T257, T258, T248, T259, insert1_out_gaa(0, T258, T259)) → insert1_out_gaa(0, tree(s(T257), T258, T248), tree(s(T257), T259, T248))
U11_agaa(T218, T219, T220, insert1_out_gaa(s(T218), T219, T220)) → p68_out_agaa(0, s(T218), T219, T220)
U22_gaa(T206, T211, T208, T212, T213, p68_out_agaa(T211, T206, T212, T213)) → insert1_out_gaa(T206, tree(T211, T208, T212), tree(T211, T208, T213))
U10_agaa(T135, T134, T140, T141, insert1_out_gaa(s(T134), T140, T141)) → p50_out_agaa(T135, T134, T140, T141)
U7_agaa(T135, T134, T136, T137, p50_out_agaa(T135, T134, T136, T137)) → p43_out_agaa(s(T135), s(T134), T136, T137)
U21_gaa(T191, T196, T193, T197, T198, p43_out_agaa(T196, T191, T197, T198)) → insert1_out_gaa(T191, tree(T196, T193, T197), tree(T196, T193, T198))
U19_gaa(T163, T164, T154, T165, insert1_out_gaa(0, T164, T165)) → insert1_out_gaa(0, tree(s(T163), T164, T154), tree(s(T163), T165, T154))
U6_agaa(T124, T125, T126, insert1_out_gaa(s(T124), T125, T126)) → p43_out_agaa(0, s(T124), T125, T126)
U18_gaa(T112, T117, T114, T118, T119, p43_out_agaa(T117, T112, T118, T119)) → insert1_out_gaa(T112, tree(T117, T114, T118), tree(T117, T114, T119))
U17_gaa(T77, T82, T79, T87, T88, insert1_out_gaa(T77, T87, T88)) → insert1_out_gaa(T77, tree(T82, T79, T87), tree(T82, T79, T88))
U5_gaaa(T40, T42, T47, T48, insert1_out_gaa(s(T40), T47, T48)) → p18_out_gaaa(T40, T42, T47, T48)
U14_gaa(T40, T42, T43, T20, T44, p18_out_gaaa(T40, T42, T43, T44)) → insert1_out_gaa(s(T40), tree(s(T42), T43, T20), tree(s(T42), T44, T20))
U13_gaa(T29, T30, T20, T31, insert1_out_gaa(0, T30, T31)) → insert1_out_gaa(0, tree(s(T29), T30, T20), tree(s(T29), T31, T20))
INSERT1_IN_GAA(T77, tree(T82, T79, T87), tree(T82, T79, T88)) → U16_GAA(T77, T82, T79, T87, T88, less33_in_ag(T82, T77))
U16_GAA(T77, T82, T79, T87, T88, less33_out_ag(T82, T77)) → INSERT1_IN_GAA(T77, T87, T88)
INSERT1_IN_GAA(0, tree(s(T29), T30, T20), tree(s(T29), T31, T20)) → INSERT1_IN_GAA(0, T30, T31)
INSERT1_IN_GAA(T112, tree(T117, T114, T118), tree(T117, T114, T119)) → P43_IN_AGAA(T117, T112, T118, T119)
P43_IN_AGAA(0, s(T124), T125, T126) → INSERT1_IN_GAA(s(T124), T125, T126)
INSERT1_IN_GAA(s(T40), tree(s(T42), T43, T20), tree(s(T42), T44, T20)) → P18_IN_GAAA(T40, T42, T43, T44)
P18_IN_GAAA(T40, T42, T47, T48) → U4_GAAA(T40, T42, T47, T48, less20_in_ga(T40, T42))
U4_GAAA(T40, T42, T47, T48, less20_out_ga(T40, T42)) → INSERT1_IN_GAA(s(T40), T47, T48)
INSERT1_IN_GAA(T206, tree(T211, T208, T212), tree(T211, T208, T213)) → P68_IN_AGAA(T211, T206, T212, T213)
P68_IN_AGAA(0, s(T218), T219, T220) → INSERT1_IN_GAA(s(T218), T219, T220)
INSERT1_IN_GAA(s(T312), tree(0, T302, T313), tree(0, T302, T314)) → INSERT1_IN_GAA(s(T312), T313, T314)
INSERT1_IN_GAA(s(T322), tree(s(T323), T302, T324), tree(s(T323), T302, T325)) → P50_IN_AGAA(T323, T322, T324, T325)
P50_IN_AGAA(T135, T134, T140, T141) → U9_AGAA(T135, T134, T140, T141, less33_in_ag(T135, T134))
U9_AGAA(T135, T134, T140, T141, less33_out_ag(T135, T134)) → INSERT1_IN_GAA(s(T134), T140, T141)
P68_IN_AGAA(s(T229), s(T228), T230, T231) → P50_IN_AGAA(T229, T228, T230, T231)
P43_IN_AGAA(s(T135), s(T134), T136, T137) → P50_IN_AGAA(T135, T134, T136, T137)
less33_in_ag(0, s(T95)) → less33_out_ag(0, s(T95))
less33_in_ag(s(T102), s(T101)) → U2_ag(T102, T101, less33_in_ag(T102, T101))
less20_in_ga(0, s(T55)) → less20_out_ga(0, s(T55))
less20_in_ga(s(T60), s(T62)) → U1_ga(T60, T62, less20_in_ga(T60, T62))
U2_ag(T102, T101, less33_out_ag(T102, T101)) → less33_out_ag(s(T102), s(T101))
U1_ga(T60, T62, less20_out_ga(T60, T62)) → less20_out_ga(s(T60), s(T62))
INSERT1_IN_GAA(T77) → U16_GAA(T77, less33_in_ag(T77))
U16_GAA(T77, less33_out_ag(T82)) → INSERT1_IN_GAA(T77)
INSERT1_IN_GAA(0) → INSERT1_IN_GAA(0)
INSERT1_IN_GAA(T112) → P43_IN_AGAA(T112)
P43_IN_AGAA(s(T124)) → INSERT1_IN_GAA(s(T124))
INSERT1_IN_GAA(s(T40)) → P18_IN_GAAA(T40)
P18_IN_GAAA(T40) → U4_GAAA(T40, less20_in_ga(T40))
U4_GAAA(T40, less20_out_ga) → INSERT1_IN_GAA(s(T40))
INSERT1_IN_GAA(T206) → P68_IN_AGAA(T206)
P68_IN_AGAA(s(T218)) → INSERT1_IN_GAA(s(T218))
INSERT1_IN_GAA(s(T312)) → INSERT1_IN_GAA(s(T312))
INSERT1_IN_GAA(s(T322)) → P50_IN_AGAA(T322)
P50_IN_AGAA(T134) → U9_AGAA(T134, less33_in_ag(T134))
U9_AGAA(T134, less33_out_ag(T135)) → INSERT1_IN_GAA(s(T134))
P68_IN_AGAA(s(T228)) → P50_IN_AGAA(T228)
P43_IN_AGAA(s(T134)) → P50_IN_AGAA(T134)
less33_in_ag(s(T95)) → less33_out_ag(0)
less33_in_ag(s(T101)) → U2_ag(less33_in_ag(T101))
less20_in_ga(0) → less20_out_ga
less20_in_ga(s(T60)) → U1_ga(less20_in_ga(T60))
U2_ag(less33_out_ag(T102)) → less33_out_ag(s(T102))
U1_ga(less20_out_ga) → less20_out_ga
less33_in_ag(x0)
less20_in_ga(x0)
U2_ag(x0)
U1_ga(x0)
INSERT1_IN_GAA(s(x0)) → U16_GAA(s(x0), less33_out_ag(0))
INSERT1_IN_GAA(s(x0)) → U16_GAA(s(x0), U2_ag(less33_in_ag(x0)))
U16_GAA(T77, less33_out_ag(T82)) → INSERT1_IN_GAA(T77)
INSERT1_IN_GAA(0) → INSERT1_IN_GAA(0)
INSERT1_IN_GAA(T112) → P43_IN_AGAA(T112)
P43_IN_AGAA(s(T124)) → INSERT1_IN_GAA(s(T124))
INSERT1_IN_GAA(s(T40)) → P18_IN_GAAA(T40)
P18_IN_GAAA(T40) → U4_GAAA(T40, less20_in_ga(T40))
U4_GAAA(T40, less20_out_ga) → INSERT1_IN_GAA(s(T40))
INSERT1_IN_GAA(T206) → P68_IN_AGAA(T206)
P68_IN_AGAA(s(T218)) → INSERT1_IN_GAA(s(T218))
INSERT1_IN_GAA(s(T312)) → INSERT1_IN_GAA(s(T312))
INSERT1_IN_GAA(s(T322)) → P50_IN_AGAA(T322)
P50_IN_AGAA(T134) → U9_AGAA(T134, less33_in_ag(T134))
U9_AGAA(T134, less33_out_ag(T135)) → INSERT1_IN_GAA(s(T134))
P68_IN_AGAA(s(T228)) → P50_IN_AGAA(T228)
P43_IN_AGAA(s(T134)) → P50_IN_AGAA(T134)
INSERT1_IN_GAA(s(x0)) → U16_GAA(s(x0), less33_out_ag(0))
INSERT1_IN_GAA(s(x0)) → U16_GAA(s(x0), U2_ag(less33_in_ag(x0)))
less33_in_ag(s(T95)) → less33_out_ag(0)
less33_in_ag(s(T101)) → U2_ag(less33_in_ag(T101))
less20_in_ga(0) → less20_out_ga
less20_in_ga(s(T60)) → U1_ga(less20_in_ga(T60))
U2_ag(less33_out_ag(T102)) → less33_out_ag(s(T102))
U1_ga(less20_out_ga) → less20_out_ga
less33_in_ag(x0)
less20_in_ga(x0)
U2_ag(x0)
U1_ga(x0)
P18_IN_GAAA(0) → U4_GAAA(0, less20_out_ga)
P18_IN_GAAA(s(x0)) → U4_GAAA(s(x0), U1_ga(less20_in_ga(x0)))
U16_GAA(T77, less33_out_ag(T82)) → INSERT1_IN_GAA(T77)
INSERT1_IN_GAA(0) → INSERT1_IN_GAA(0)
INSERT1_IN_GAA(T112) → P43_IN_AGAA(T112)
P43_IN_AGAA(s(T124)) → INSERT1_IN_GAA(s(T124))
INSERT1_IN_GAA(s(T40)) → P18_IN_GAAA(T40)
U4_GAAA(T40, less20_out_ga) → INSERT1_IN_GAA(s(T40))
INSERT1_IN_GAA(T206) → P68_IN_AGAA(T206)
P68_IN_AGAA(s(T218)) → INSERT1_IN_GAA(s(T218))
INSERT1_IN_GAA(s(T312)) → INSERT1_IN_GAA(s(T312))
INSERT1_IN_GAA(s(T322)) → P50_IN_AGAA(T322)
P50_IN_AGAA(T134) → U9_AGAA(T134, less33_in_ag(T134))
U9_AGAA(T134, less33_out_ag(T135)) → INSERT1_IN_GAA(s(T134))
P68_IN_AGAA(s(T228)) → P50_IN_AGAA(T228)
P43_IN_AGAA(s(T134)) → P50_IN_AGAA(T134)
INSERT1_IN_GAA(s(x0)) → U16_GAA(s(x0), less33_out_ag(0))
INSERT1_IN_GAA(s(x0)) → U16_GAA(s(x0), U2_ag(less33_in_ag(x0)))
P18_IN_GAAA(0) → U4_GAAA(0, less20_out_ga)
P18_IN_GAAA(s(x0)) → U4_GAAA(s(x0), U1_ga(less20_in_ga(x0)))
less33_in_ag(s(T95)) → less33_out_ag(0)
less33_in_ag(s(T101)) → U2_ag(less33_in_ag(T101))
less20_in_ga(0) → less20_out_ga
less20_in_ga(s(T60)) → U1_ga(less20_in_ga(T60))
U2_ag(less33_out_ag(T102)) → less33_out_ag(s(T102))
U1_ga(less20_out_ga) → less20_out_ga
less33_in_ag(x0)
less20_in_ga(x0)
U2_ag(x0)
U1_ga(x0)
P50_IN_AGAA(s(x0)) → U9_AGAA(s(x0), less33_out_ag(0))
P50_IN_AGAA(s(x0)) → U9_AGAA(s(x0), U2_ag(less33_in_ag(x0)))
U16_GAA(T77, less33_out_ag(T82)) → INSERT1_IN_GAA(T77)
INSERT1_IN_GAA(0) → INSERT1_IN_GAA(0)
INSERT1_IN_GAA(T112) → P43_IN_AGAA(T112)
P43_IN_AGAA(s(T124)) → INSERT1_IN_GAA(s(T124))
INSERT1_IN_GAA(s(T40)) → P18_IN_GAAA(T40)
U4_GAAA(T40, less20_out_ga) → INSERT1_IN_GAA(s(T40))
INSERT1_IN_GAA(T206) → P68_IN_AGAA(T206)
P68_IN_AGAA(s(T218)) → INSERT1_IN_GAA(s(T218))
INSERT1_IN_GAA(s(T312)) → INSERT1_IN_GAA(s(T312))
INSERT1_IN_GAA(s(T322)) → P50_IN_AGAA(T322)
U9_AGAA(T134, less33_out_ag(T135)) → INSERT1_IN_GAA(s(T134))
P68_IN_AGAA(s(T228)) → P50_IN_AGAA(T228)
P43_IN_AGAA(s(T134)) → P50_IN_AGAA(T134)
INSERT1_IN_GAA(s(x0)) → U16_GAA(s(x0), less33_out_ag(0))
INSERT1_IN_GAA(s(x0)) → U16_GAA(s(x0), U2_ag(less33_in_ag(x0)))
P18_IN_GAAA(0) → U4_GAAA(0, less20_out_ga)
P18_IN_GAAA(s(x0)) → U4_GAAA(s(x0), U1_ga(less20_in_ga(x0)))
P50_IN_AGAA(s(x0)) → U9_AGAA(s(x0), less33_out_ag(0))
P50_IN_AGAA(s(x0)) → U9_AGAA(s(x0), U2_ag(less33_in_ag(x0)))
less33_in_ag(s(T95)) → less33_out_ag(0)
less33_in_ag(s(T101)) → U2_ag(less33_in_ag(T101))
less20_in_ga(0) → less20_out_ga
less20_in_ga(s(T60)) → U1_ga(less20_in_ga(T60))
U2_ag(less33_out_ag(T102)) → less33_out_ag(s(T102))
U1_ga(less20_out_ga) → less20_out_ga
less33_in_ag(x0)
less20_in_ga(x0)
U2_ag(x0)
U1_ga(x0)
U16_GAA(s(z0), less33_out_ag(0)) → INSERT1_IN_GAA(s(z0))
U16_GAA(s(z0), less33_out_ag(x1)) → INSERT1_IN_GAA(s(z0))
INSERT1_IN_GAA(0) → INSERT1_IN_GAA(0)
INSERT1_IN_GAA(T112) → P43_IN_AGAA(T112)
P43_IN_AGAA(s(T124)) → INSERT1_IN_GAA(s(T124))
INSERT1_IN_GAA(s(T40)) → P18_IN_GAAA(T40)
U4_GAAA(T40, less20_out_ga) → INSERT1_IN_GAA(s(T40))
INSERT1_IN_GAA(T206) → P68_IN_AGAA(T206)
P68_IN_AGAA(s(T218)) → INSERT1_IN_GAA(s(T218))
INSERT1_IN_GAA(s(T312)) → INSERT1_IN_GAA(s(T312))
INSERT1_IN_GAA(s(T322)) → P50_IN_AGAA(T322)
U9_AGAA(T134, less33_out_ag(T135)) → INSERT1_IN_GAA(s(T134))
P68_IN_AGAA(s(T228)) → P50_IN_AGAA(T228)
P43_IN_AGAA(s(T134)) → P50_IN_AGAA(T134)
INSERT1_IN_GAA(s(x0)) → U16_GAA(s(x0), less33_out_ag(0))
INSERT1_IN_GAA(s(x0)) → U16_GAA(s(x0), U2_ag(less33_in_ag(x0)))
P18_IN_GAAA(0) → U4_GAAA(0, less20_out_ga)
P18_IN_GAAA(s(x0)) → U4_GAAA(s(x0), U1_ga(less20_in_ga(x0)))
P50_IN_AGAA(s(x0)) → U9_AGAA(s(x0), less33_out_ag(0))
P50_IN_AGAA(s(x0)) → U9_AGAA(s(x0), U2_ag(less33_in_ag(x0)))
U16_GAA(s(z0), less33_out_ag(0)) → INSERT1_IN_GAA(s(z0))
U16_GAA(s(z0), less33_out_ag(x1)) → INSERT1_IN_GAA(s(z0))
less33_in_ag(s(T95)) → less33_out_ag(0)
less33_in_ag(s(T101)) → U2_ag(less33_in_ag(T101))
less20_in_ga(0) → less20_out_ga
less20_in_ga(s(T60)) → U1_ga(less20_in_ga(T60))
U2_ag(less33_out_ag(T102)) → less33_out_ag(s(T102))
U1_ga(less20_out_ga) → less20_out_ga
less33_in_ag(x0)
less20_in_ga(x0)
U2_ag(x0)
U1_ga(x0)
P43_IN_AGAA(s(T124)) → INSERT1_IN_GAA(s(T124))
INSERT1_IN_GAA(T112) → P43_IN_AGAA(T112)
P43_IN_AGAA(s(T134)) → P50_IN_AGAA(T134)
P50_IN_AGAA(s(x0)) → U9_AGAA(s(x0), less33_out_ag(0))
U9_AGAA(T134, less33_out_ag(T135)) → INSERT1_IN_GAA(s(T134))
INSERT1_IN_GAA(s(T40)) → P18_IN_GAAA(T40)
P18_IN_GAAA(0) → U4_GAAA(0, less20_out_ga)
U4_GAAA(T40, less20_out_ga) → INSERT1_IN_GAA(s(T40))
INSERT1_IN_GAA(T206) → P68_IN_AGAA(T206)
P68_IN_AGAA(s(T218)) → INSERT1_IN_GAA(s(T218))
INSERT1_IN_GAA(s(T312)) → INSERT1_IN_GAA(s(T312))
INSERT1_IN_GAA(s(T322)) → P50_IN_AGAA(T322)
P50_IN_AGAA(s(x0)) → U9_AGAA(s(x0), U2_ag(less33_in_ag(x0)))
INSERT1_IN_GAA(s(x0)) → U16_GAA(s(x0), less33_out_ag(0))
U16_GAA(s(z0), less33_out_ag(0)) → INSERT1_IN_GAA(s(z0))
INSERT1_IN_GAA(s(x0)) → U16_GAA(s(x0), U2_ag(less33_in_ag(x0)))
U16_GAA(s(z0), less33_out_ag(x1)) → INSERT1_IN_GAA(s(z0))
P68_IN_AGAA(s(T228)) → P50_IN_AGAA(T228)
P18_IN_GAAA(s(x0)) → U4_GAAA(s(x0), U1_ga(less20_in_ga(x0)))
less33_in_ag(s(T95)) → less33_out_ag(0)
less33_in_ag(s(T101)) → U2_ag(less33_in_ag(T101))
less20_in_ga(0) → less20_out_ga
less20_in_ga(s(T60)) → U1_ga(less20_in_ga(T60))
U2_ag(less33_out_ag(T102)) → less33_out_ag(s(T102))
U1_ga(less20_out_ga) → less20_out_ga
less33_in_ag(x0)
less20_in_ga(x0)
U2_ag(x0)
U1_ga(x0)
INSERT1_IN_GAA(s(z0)) → P43_IN_AGAA(s(z0))
P43_IN_AGAA(s(T124)) → INSERT1_IN_GAA(s(T124))
P43_IN_AGAA(s(T134)) → P50_IN_AGAA(T134)
P50_IN_AGAA(s(x0)) → U9_AGAA(s(x0), less33_out_ag(0))
U9_AGAA(T134, less33_out_ag(T135)) → INSERT1_IN_GAA(s(T134))
INSERT1_IN_GAA(s(T40)) → P18_IN_GAAA(T40)
P18_IN_GAAA(0) → U4_GAAA(0, less20_out_ga)
U4_GAAA(T40, less20_out_ga) → INSERT1_IN_GAA(s(T40))
INSERT1_IN_GAA(T206) → P68_IN_AGAA(T206)
P68_IN_AGAA(s(T218)) → INSERT1_IN_GAA(s(T218))
INSERT1_IN_GAA(s(T312)) → INSERT1_IN_GAA(s(T312))
INSERT1_IN_GAA(s(T322)) → P50_IN_AGAA(T322)
P50_IN_AGAA(s(x0)) → U9_AGAA(s(x0), U2_ag(less33_in_ag(x0)))
INSERT1_IN_GAA(s(x0)) → U16_GAA(s(x0), less33_out_ag(0))
U16_GAA(s(z0), less33_out_ag(0)) → INSERT1_IN_GAA(s(z0))
INSERT1_IN_GAA(s(x0)) → U16_GAA(s(x0), U2_ag(less33_in_ag(x0)))
U16_GAA(s(z0), less33_out_ag(x1)) → INSERT1_IN_GAA(s(z0))
P68_IN_AGAA(s(T228)) → P50_IN_AGAA(T228)
P18_IN_GAAA(s(x0)) → U4_GAAA(s(x0), U1_ga(less20_in_ga(x0)))
INSERT1_IN_GAA(s(z0)) → P43_IN_AGAA(s(z0))
less33_in_ag(s(T95)) → less33_out_ag(0)
less33_in_ag(s(T101)) → U2_ag(less33_in_ag(T101))
less20_in_ga(0) → less20_out_ga
less20_in_ga(s(T60)) → U1_ga(less20_in_ga(T60))
U2_ag(less33_out_ag(T102)) → less33_out_ag(s(T102))
U1_ga(less20_out_ga) → less20_out_ga
less33_in_ag(x0)
less20_in_ga(x0)
U2_ag(x0)
U1_ga(x0)
U9_AGAA(s(z0), less33_out_ag(0)) → INSERT1_IN_GAA(s(s(z0)))
U9_AGAA(s(z0), less33_out_ag(x1)) → INSERT1_IN_GAA(s(s(z0)))
P43_IN_AGAA(s(T124)) → INSERT1_IN_GAA(s(T124))
P43_IN_AGAA(s(T134)) → P50_IN_AGAA(T134)
P50_IN_AGAA(s(x0)) → U9_AGAA(s(x0), less33_out_ag(0))
INSERT1_IN_GAA(s(T40)) → P18_IN_GAAA(T40)
P18_IN_GAAA(0) → U4_GAAA(0, less20_out_ga)
U4_GAAA(T40, less20_out_ga) → INSERT1_IN_GAA(s(T40))
INSERT1_IN_GAA(T206) → P68_IN_AGAA(T206)
P68_IN_AGAA(s(T218)) → INSERT1_IN_GAA(s(T218))
INSERT1_IN_GAA(s(T312)) → INSERT1_IN_GAA(s(T312))
INSERT1_IN_GAA(s(T322)) → P50_IN_AGAA(T322)
P50_IN_AGAA(s(x0)) → U9_AGAA(s(x0), U2_ag(less33_in_ag(x0)))
INSERT1_IN_GAA(s(x0)) → U16_GAA(s(x0), less33_out_ag(0))
U16_GAA(s(z0), less33_out_ag(0)) → INSERT1_IN_GAA(s(z0))
INSERT1_IN_GAA(s(x0)) → U16_GAA(s(x0), U2_ag(less33_in_ag(x0)))
U16_GAA(s(z0), less33_out_ag(x1)) → INSERT1_IN_GAA(s(z0))
P68_IN_AGAA(s(T228)) → P50_IN_AGAA(T228)
P18_IN_GAAA(s(x0)) → U4_GAAA(s(x0), U1_ga(less20_in_ga(x0)))
INSERT1_IN_GAA(s(z0)) → P43_IN_AGAA(s(z0))
U9_AGAA(s(z0), less33_out_ag(0)) → INSERT1_IN_GAA(s(s(z0)))
U9_AGAA(s(z0), less33_out_ag(x1)) → INSERT1_IN_GAA(s(s(z0)))
less33_in_ag(s(T95)) → less33_out_ag(0)
less33_in_ag(s(T101)) → U2_ag(less33_in_ag(T101))
less20_in_ga(0) → less20_out_ga
less20_in_ga(s(T60)) → U1_ga(less20_in_ga(T60))
U2_ag(less33_out_ag(T102)) → less33_out_ag(s(T102))
U1_ga(less20_out_ga) → less20_out_ga
less33_in_ag(x0)
less20_in_ga(x0)
U2_ag(x0)
U1_ga(x0)
U4_GAAA(0, less20_out_ga) → INSERT1_IN_GAA(s(0))
U4_GAAA(s(z0), less20_out_ga) → INSERT1_IN_GAA(s(s(z0)))
P43_IN_AGAA(s(T124)) → INSERT1_IN_GAA(s(T124))
P43_IN_AGAA(s(T134)) → P50_IN_AGAA(T134)
P50_IN_AGAA(s(x0)) → U9_AGAA(s(x0), less33_out_ag(0))
INSERT1_IN_GAA(s(T40)) → P18_IN_GAAA(T40)
P18_IN_GAAA(0) → U4_GAAA(0, less20_out_ga)
INSERT1_IN_GAA(T206) → P68_IN_AGAA(T206)
P68_IN_AGAA(s(T218)) → INSERT1_IN_GAA(s(T218))
INSERT1_IN_GAA(s(T312)) → INSERT1_IN_GAA(s(T312))
INSERT1_IN_GAA(s(T322)) → P50_IN_AGAA(T322)
P50_IN_AGAA(s(x0)) → U9_AGAA(s(x0), U2_ag(less33_in_ag(x0)))
INSERT1_IN_GAA(s(x0)) → U16_GAA(s(x0), less33_out_ag(0))
U16_GAA(s(z0), less33_out_ag(0)) → INSERT1_IN_GAA(s(z0))
INSERT1_IN_GAA(s(x0)) → U16_GAA(s(x0), U2_ag(less33_in_ag(x0)))
U16_GAA(s(z0), less33_out_ag(x1)) → INSERT1_IN_GAA(s(z0))
P68_IN_AGAA(s(T228)) → P50_IN_AGAA(T228)
P18_IN_GAAA(s(x0)) → U4_GAAA(s(x0), U1_ga(less20_in_ga(x0)))
INSERT1_IN_GAA(s(z0)) → P43_IN_AGAA(s(z0))
U9_AGAA(s(z0), less33_out_ag(0)) → INSERT1_IN_GAA(s(s(z0)))
U9_AGAA(s(z0), less33_out_ag(x1)) → INSERT1_IN_GAA(s(s(z0)))
U4_GAAA(0, less20_out_ga) → INSERT1_IN_GAA(s(0))
U4_GAAA(s(z0), less20_out_ga) → INSERT1_IN_GAA(s(s(z0)))
less33_in_ag(s(T95)) → less33_out_ag(0)
less33_in_ag(s(T101)) → U2_ag(less33_in_ag(T101))
less20_in_ga(0) → less20_out_ga
less20_in_ga(s(T60)) → U1_ga(less20_in_ga(T60))
U2_ag(less33_out_ag(T102)) → less33_out_ag(s(T102))
U1_ga(less20_out_ga) → less20_out_ga
less33_in_ag(x0)
less20_in_ga(x0)
U2_ag(x0)
U1_ga(x0)
INSERT1_IN_GAA(s(z0)) → P68_IN_AGAA(s(z0))
INSERT1_IN_GAA(s(s(z0))) → P68_IN_AGAA(s(s(z0)))
INSERT1_IN_GAA(s(0)) → P68_IN_AGAA(s(0))
P43_IN_AGAA(s(T124)) → INSERT1_IN_GAA(s(T124))
P43_IN_AGAA(s(T134)) → P50_IN_AGAA(T134)
P50_IN_AGAA(s(x0)) → U9_AGAA(s(x0), less33_out_ag(0))
INSERT1_IN_GAA(s(T40)) → P18_IN_GAAA(T40)
P18_IN_GAAA(0) → U4_GAAA(0, less20_out_ga)
P68_IN_AGAA(s(T218)) → INSERT1_IN_GAA(s(T218))
INSERT1_IN_GAA(s(T312)) → INSERT1_IN_GAA(s(T312))
INSERT1_IN_GAA(s(T322)) → P50_IN_AGAA(T322)
P50_IN_AGAA(s(x0)) → U9_AGAA(s(x0), U2_ag(less33_in_ag(x0)))
INSERT1_IN_GAA(s(x0)) → U16_GAA(s(x0), less33_out_ag(0))
U16_GAA(s(z0), less33_out_ag(0)) → INSERT1_IN_GAA(s(z0))
INSERT1_IN_GAA(s(x0)) → U16_GAA(s(x0), U2_ag(less33_in_ag(x0)))
U16_GAA(s(z0), less33_out_ag(x1)) → INSERT1_IN_GAA(s(z0))
P68_IN_AGAA(s(T228)) → P50_IN_AGAA(T228)
P18_IN_GAAA(s(x0)) → U4_GAAA(s(x0), U1_ga(less20_in_ga(x0)))
INSERT1_IN_GAA(s(z0)) → P43_IN_AGAA(s(z0))
U9_AGAA(s(z0), less33_out_ag(0)) → INSERT1_IN_GAA(s(s(z0)))
U9_AGAA(s(z0), less33_out_ag(x1)) → INSERT1_IN_GAA(s(s(z0)))
U4_GAAA(0, less20_out_ga) → INSERT1_IN_GAA(s(0))
U4_GAAA(s(z0), less20_out_ga) → INSERT1_IN_GAA(s(s(z0)))
INSERT1_IN_GAA(s(z0)) → P68_IN_AGAA(s(z0))
INSERT1_IN_GAA(s(s(z0))) → P68_IN_AGAA(s(s(z0)))
INSERT1_IN_GAA(s(0)) → P68_IN_AGAA(s(0))
less33_in_ag(s(T95)) → less33_out_ag(0)
less33_in_ag(s(T101)) → U2_ag(less33_in_ag(T101))
less20_in_ga(0) → less20_out_ga
less20_in_ga(s(T60)) → U1_ga(less20_in_ga(T60))
U2_ag(less33_out_ag(T102)) → less33_out_ag(s(T102))
U1_ga(less20_out_ga) → less20_out_ga
less33_in_ag(x0)
less20_in_ga(x0)
U2_ag(x0)
U1_ga(x0)
P43_IN_AGAA(s(s(y_0))) → P50_IN_AGAA(s(y_0))
P43_IN_AGAA(s(T124)) → INSERT1_IN_GAA(s(T124))
P50_IN_AGAA(s(x0)) → U9_AGAA(s(x0), less33_out_ag(0))
INSERT1_IN_GAA(s(T40)) → P18_IN_GAAA(T40)
P18_IN_GAAA(0) → U4_GAAA(0, less20_out_ga)
P68_IN_AGAA(s(T218)) → INSERT1_IN_GAA(s(T218))
INSERT1_IN_GAA(s(T312)) → INSERT1_IN_GAA(s(T312))
INSERT1_IN_GAA(s(T322)) → P50_IN_AGAA(T322)
P50_IN_AGAA(s(x0)) → U9_AGAA(s(x0), U2_ag(less33_in_ag(x0)))
INSERT1_IN_GAA(s(x0)) → U16_GAA(s(x0), less33_out_ag(0))
U16_GAA(s(z0), less33_out_ag(0)) → INSERT1_IN_GAA(s(z0))
INSERT1_IN_GAA(s(x0)) → U16_GAA(s(x0), U2_ag(less33_in_ag(x0)))
U16_GAA(s(z0), less33_out_ag(x1)) → INSERT1_IN_GAA(s(z0))
P68_IN_AGAA(s(T228)) → P50_IN_AGAA(T228)
P18_IN_GAAA(s(x0)) → U4_GAAA(s(x0), U1_ga(less20_in_ga(x0)))
INSERT1_IN_GAA(s(z0)) → P43_IN_AGAA(s(z0))
U9_AGAA(s(z0), less33_out_ag(0)) → INSERT1_IN_GAA(s(s(z0)))
U9_AGAA(s(z0), less33_out_ag(x1)) → INSERT1_IN_GAA(s(s(z0)))
U4_GAAA(0, less20_out_ga) → INSERT1_IN_GAA(s(0))
U4_GAAA(s(z0), less20_out_ga) → INSERT1_IN_GAA(s(s(z0)))
INSERT1_IN_GAA(s(z0)) → P68_IN_AGAA(s(z0))
INSERT1_IN_GAA(s(s(z0))) → P68_IN_AGAA(s(s(z0)))
INSERT1_IN_GAA(s(0)) → P68_IN_AGAA(s(0))
P43_IN_AGAA(s(s(y_0))) → P50_IN_AGAA(s(y_0))
less33_in_ag(s(T95)) → less33_out_ag(0)
less33_in_ag(s(T101)) → U2_ag(less33_in_ag(T101))
less20_in_ga(0) → less20_out_ga
less20_in_ga(s(T60)) → U1_ga(less20_in_ga(T60))
U2_ag(less33_out_ag(T102)) → less33_out_ag(s(T102))
U1_ga(less20_out_ga) → less20_out_ga
less33_in_ag(x0)
less20_in_ga(x0)
U2_ag(x0)
U1_ga(x0)
INSERT1_IN_GAA(s(0)) → P18_IN_GAAA(0)
INSERT1_IN_GAA(s(s(y_0))) → P18_IN_GAAA(s(y_0))
P43_IN_AGAA(s(T124)) → INSERT1_IN_GAA(s(T124))
P50_IN_AGAA(s(x0)) → U9_AGAA(s(x0), less33_out_ag(0))
P18_IN_GAAA(0) → U4_GAAA(0, less20_out_ga)
P68_IN_AGAA(s(T218)) → INSERT1_IN_GAA(s(T218))
INSERT1_IN_GAA(s(T312)) → INSERT1_IN_GAA(s(T312))
INSERT1_IN_GAA(s(T322)) → P50_IN_AGAA(T322)
P50_IN_AGAA(s(x0)) → U9_AGAA(s(x0), U2_ag(less33_in_ag(x0)))
INSERT1_IN_GAA(s(x0)) → U16_GAA(s(x0), less33_out_ag(0))
U16_GAA(s(z0), less33_out_ag(0)) → INSERT1_IN_GAA(s(z0))
INSERT1_IN_GAA(s(x0)) → U16_GAA(s(x0), U2_ag(less33_in_ag(x0)))
U16_GAA(s(z0), less33_out_ag(x1)) → INSERT1_IN_GAA(s(z0))
P68_IN_AGAA(s(T228)) → P50_IN_AGAA(T228)
P18_IN_GAAA(s(x0)) → U4_GAAA(s(x0), U1_ga(less20_in_ga(x0)))
INSERT1_IN_GAA(s(z0)) → P43_IN_AGAA(s(z0))
U9_AGAA(s(z0), less33_out_ag(0)) → INSERT1_IN_GAA(s(s(z0)))
U9_AGAA(s(z0), less33_out_ag(x1)) → INSERT1_IN_GAA(s(s(z0)))
U4_GAAA(0, less20_out_ga) → INSERT1_IN_GAA(s(0))
U4_GAAA(s(z0), less20_out_ga) → INSERT1_IN_GAA(s(s(z0)))
INSERT1_IN_GAA(s(z0)) → P68_IN_AGAA(s(z0))
INSERT1_IN_GAA(s(s(z0))) → P68_IN_AGAA(s(s(z0)))
INSERT1_IN_GAA(s(0)) → P68_IN_AGAA(s(0))
P43_IN_AGAA(s(s(y_0))) → P50_IN_AGAA(s(y_0))
INSERT1_IN_GAA(s(0)) → P18_IN_GAAA(0)
INSERT1_IN_GAA(s(s(y_0))) → P18_IN_GAAA(s(y_0))
less33_in_ag(s(T95)) → less33_out_ag(0)
less33_in_ag(s(T101)) → U2_ag(less33_in_ag(T101))
less20_in_ga(0) → less20_out_ga
less20_in_ga(s(T60)) → U1_ga(less20_in_ga(T60))
U2_ag(less33_out_ag(T102)) → less33_out_ag(s(T102))
U1_ga(less20_out_ga) → less20_out_ga
less33_in_ag(x0)
less20_in_ga(x0)
U2_ag(x0)
U1_ga(x0)
INSERT1_IN_GAA(s(s(y_0))) → P50_IN_AGAA(s(y_0))
P43_IN_AGAA(s(T124)) → INSERT1_IN_GAA(s(T124))
P50_IN_AGAA(s(x0)) → U9_AGAA(s(x0), less33_out_ag(0))
P18_IN_GAAA(0) → U4_GAAA(0, less20_out_ga)
P68_IN_AGAA(s(T218)) → INSERT1_IN_GAA(s(T218))
INSERT1_IN_GAA(s(T312)) → INSERT1_IN_GAA(s(T312))
P50_IN_AGAA(s(x0)) → U9_AGAA(s(x0), U2_ag(less33_in_ag(x0)))
INSERT1_IN_GAA(s(x0)) → U16_GAA(s(x0), less33_out_ag(0))
U16_GAA(s(z0), less33_out_ag(0)) → INSERT1_IN_GAA(s(z0))
INSERT1_IN_GAA(s(x0)) → U16_GAA(s(x0), U2_ag(less33_in_ag(x0)))
U16_GAA(s(z0), less33_out_ag(x1)) → INSERT1_IN_GAA(s(z0))
P68_IN_AGAA(s(T228)) → P50_IN_AGAA(T228)
P18_IN_GAAA(s(x0)) → U4_GAAA(s(x0), U1_ga(less20_in_ga(x0)))
INSERT1_IN_GAA(s(z0)) → P43_IN_AGAA(s(z0))
U9_AGAA(s(z0), less33_out_ag(0)) → INSERT1_IN_GAA(s(s(z0)))
U9_AGAA(s(z0), less33_out_ag(x1)) → INSERT1_IN_GAA(s(s(z0)))
U4_GAAA(0, less20_out_ga) → INSERT1_IN_GAA(s(0))
U4_GAAA(s(z0), less20_out_ga) → INSERT1_IN_GAA(s(s(z0)))
INSERT1_IN_GAA(s(z0)) → P68_IN_AGAA(s(z0))
INSERT1_IN_GAA(s(s(z0))) → P68_IN_AGAA(s(s(z0)))
INSERT1_IN_GAA(s(0)) → P68_IN_AGAA(s(0))
P43_IN_AGAA(s(s(y_0))) → P50_IN_AGAA(s(y_0))
INSERT1_IN_GAA(s(0)) → P18_IN_GAAA(0)
INSERT1_IN_GAA(s(s(y_0))) → P18_IN_GAAA(s(y_0))
INSERT1_IN_GAA(s(s(y_0))) → P50_IN_AGAA(s(y_0))
less33_in_ag(s(T95)) → less33_out_ag(0)
less33_in_ag(s(T101)) → U2_ag(less33_in_ag(T101))
less20_in_ga(0) → less20_out_ga
less20_in_ga(s(T60)) → U1_ga(less20_in_ga(T60))
U2_ag(less33_out_ag(T102)) → less33_out_ag(s(T102))
U1_ga(less20_out_ga) → less20_out_ga
less33_in_ag(x0)
less20_in_ga(x0)
U2_ag(x0)
U1_ga(x0)
P68_IN_AGAA(s(s(y_0))) → P50_IN_AGAA(s(y_0))
P43_IN_AGAA(s(T124)) → INSERT1_IN_GAA(s(T124))
P50_IN_AGAA(s(x0)) → U9_AGAA(s(x0), less33_out_ag(0))
P18_IN_GAAA(0) → U4_GAAA(0, less20_out_ga)
P68_IN_AGAA(s(T218)) → INSERT1_IN_GAA(s(T218))
INSERT1_IN_GAA(s(T312)) → INSERT1_IN_GAA(s(T312))
P50_IN_AGAA(s(x0)) → U9_AGAA(s(x0), U2_ag(less33_in_ag(x0)))
INSERT1_IN_GAA(s(x0)) → U16_GAA(s(x0), less33_out_ag(0))
U16_GAA(s(z0), less33_out_ag(0)) → INSERT1_IN_GAA(s(z0))
INSERT1_IN_GAA(s(x0)) → U16_GAA(s(x0), U2_ag(less33_in_ag(x0)))
U16_GAA(s(z0), less33_out_ag(x1)) → INSERT1_IN_GAA(s(z0))
P18_IN_GAAA(s(x0)) → U4_GAAA(s(x0), U1_ga(less20_in_ga(x0)))
INSERT1_IN_GAA(s(z0)) → P43_IN_AGAA(s(z0))
U9_AGAA(s(z0), less33_out_ag(0)) → INSERT1_IN_GAA(s(s(z0)))
U9_AGAA(s(z0), less33_out_ag(x1)) → INSERT1_IN_GAA(s(s(z0)))
U4_GAAA(0, less20_out_ga) → INSERT1_IN_GAA(s(0))
U4_GAAA(s(z0), less20_out_ga) → INSERT1_IN_GAA(s(s(z0)))
INSERT1_IN_GAA(s(z0)) → P68_IN_AGAA(s(z0))
INSERT1_IN_GAA(s(s(z0))) → P68_IN_AGAA(s(s(z0)))
INSERT1_IN_GAA(s(0)) → P68_IN_AGAA(s(0))
P43_IN_AGAA(s(s(y_0))) → P50_IN_AGAA(s(y_0))
INSERT1_IN_GAA(s(0)) → P18_IN_GAAA(0)
INSERT1_IN_GAA(s(s(y_0))) → P18_IN_GAAA(s(y_0))
INSERT1_IN_GAA(s(s(y_0))) → P50_IN_AGAA(s(y_0))
P68_IN_AGAA(s(s(y_0))) → P50_IN_AGAA(s(y_0))
less33_in_ag(s(T95)) → less33_out_ag(0)
less33_in_ag(s(T101)) → U2_ag(less33_in_ag(T101))
less20_in_ga(0) → less20_out_ga
less20_in_ga(s(T60)) → U1_ga(less20_in_ga(T60))
U2_ag(less33_out_ag(T102)) → less33_out_ag(s(T102))
U1_ga(less20_out_ga) → less20_out_ga
less33_in_ag(x0)
less20_in_ga(x0)
U2_ag(x0)
U1_ga(x0)
INSERT1_IN_GAA(0) → INSERT1_IN_GAA(0)
less33_in_ag(s(T95)) → less33_out_ag(0)
less33_in_ag(s(T101)) → U2_ag(less33_in_ag(T101))
less20_in_ga(0) → less20_out_ga
less20_in_ga(s(T60)) → U1_ga(less20_in_ga(T60))
U2_ag(less33_out_ag(T102)) → less33_out_ag(s(T102))
U1_ga(less20_out_ga) → less20_out_ga
less33_in_ag(x0)
less20_in_ga(x0)
U2_ag(x0)
U1_ga(x0)
INSERT1_IN_GAA(0) → INSERT1_IN_GAA(0)
less33_in_ag(x0)
less20_in_ga(x0)
U2_ag(x0)
U1_ga(x0)
less33_in_ag(x0)
less20_in_ga(x0)
U2_ag(x0)
U1_ga(x0)
INSERT1_IN_GAA(0) → INSERT1_IN_GAA(0)
insert1_in_gaa(T5, void, tree(T5, void, void)) → insert1_out_gaa(T5, void, tree(T5, void, void))
insert1_in_gaa(T9, tree(T9, T10, T11), tree(T9, T10, T11)) → insert1_out_gaa(T9, tree(T9, T10, T11), tree(T9, T10, T11))
insert1_in_gaa(0, tree(s(T29), T30, T20), tree(s(T29), T31, T20)) → U13_gaa(T29, T30, T20, T31, insert1_in_gaa(0, T30, T31))
insert1_in_gaa(s(T40), tree(s(T42), T43, T20), tree(s(T42), T44, T20)) → U14_gaa(T40, T42, T43, T20, T44, p18_in_gaaa(T40, T42, T43, T44))
p18_in_gaaa(T40, T42, T43, T44) → U3_gaaa(T40, T42, T43, T44, less20_in_ga(T40, T42))
less20_in_ga(0, s(T55)) → less20_out_ga(0, s(T55))
less20_in_ga(s(T60), s(T62)) → U1_ga(T60, T62, less20_in_ga(T60, T62))
U1_ga(T60, T62, less20_out_ga(T60, T62)) → less20_out_ga(s(T60), s(T62))
U3_gaaa(T40, T42, T43, T44, less20_out_ga(T40, T42)) → p18_out_gaaa(T40, T42, T43, T44)
p18_in_gaaa(T40, T42, T47, T48) → U4_gaaa(T40, T42, T47, T48, less20_in_ga(T40, T42))
U4_gaaa(T40, T42, T47, T48, less20_out_ga(T40, T42)) → U5_gaaa(T40, T42, T47, T48, insert1_in_gaa(s(T40), T47, T48))
insert1_in_gaa(T77, tree(T82, T79, T83), tree(T82, T79, T84)) → U15_gaa(T77, T82, T79, T83, T84, less33_in_ag(T82, T77))
less33_in_ag(0, s(T95)) → less33_out_ag(0, s(T95))
less33_in_ag(s(T102), s(T101)) → U2_ag(T102, T101, less33_in_ag(T102, T101))
U2_ag(T102, T101, less33_out_ag(T102, T101)) → less33_out_ag(s(T102), s(T101))
U15_gaa(T77, T82, T79, T83, T84, less33_out_ag(T82, T77)) → insert1_out_gaa(T77, tree(T82, T79, T83), tree(T82, T79, T84))
insert1_in_gaa(T77, tree(T82, T79, T87), tree(T82, T79, T88)) → U16_gaa(T77, T82, T79, T87, T88, less33_in_ag(T82, T77))
U16_gaa(T77, T82, T79, T87, T88, less33_out_ag(T82, T77)) → U17_gaa(T77, T82, T79, T87, T88, insert1_in_gaa(T77, T87, T88))
insert1_in_gaa(T112, tree(T117, T114, T118), tree(T117, T114, T119)) → U18_gaa(T112, T117, T114, T118, T119, p43_in_agaa(T117, T112, T118, T119))
p43_in_agaa(0, s(T124), T125, T126) → U6_agaa(T124, T125, T126, insert1_in_gaa(s(T124), T125, T126))
insert1_in_gaa(0, tree(s(T163), T164, T154), tree(s(T163), T165, T154)) → U19_gaa(T163, T164, T154, T165, insert1_in_gaa(0, T164, T165))
insert1_in_gaa(s(T174), tree(s(T176), T177, T154), tree(s(T176), T178, T154)) → U20_gaa(T174, T176, T177, T154, T178, p18_in_gaaa(T174, T176, T177, T178))
U20_gaa(T174, T176, T177, T154, T178, p18_out_gaaa(T174, T176, T177, T178)) → insert1_out_gaa(s(T174), tree(s(T176), T177, T154), tree(s(T176), T178, T154))
insert1_in_gaa(T191, tree(T196, T193, T197), tree(T196, T193, T198)) → U21_gaa(T191, T196, T193, T197, T198, p43_in_agaa(T196, T191, T197, T198))
p43_in_agaa(s(T135), s(T134), T136, T137) → U7_agaa(T135, T134, T136, T137, p50_in_agaa(T135, T134, T136, T137))
p50_in_agaa(T135, T134, T136, T137) → U8_agaa(T135, T134, T136, T137, less33_in_ag(T135, T134))
U8_agaa(T135, T134, T136, T137, less33_out_ag(T135, T134)) → p50_out_agaa(T135, T134, T136, T137)
p50_in_agaa(T135, T134, T140, T141) → U9_agaa(T135, T134, T140, T141, less33_in_ag(T135, T134))
U9_agaa(T135, T134, T140, T141, less33_out_ag(T135, T134)) → U10_agaa(T135, T134, T140, T141, insert1_in_gaa(s(T134), T140, T141))
insert1_in_gaa(T206, tree(T211, T208, T212), tree(T211, T208, T213)) → U22_gaa(T206, T211, T208, T212, T213, p68_in_agaa(T211, T206, T212, T213))
p68_in_agaa(0, s(T218), T219, T220) → U11_agaa(T218, T219, T220, insert1_in_gaa(s(T218), T219, T220))
insert1_in_gaa(0, tree(s(T257), T258, T248), tree(s(T257), T259, T248)) → U23_gaa(T257, T258, T248, T259, insert1_in_gaa(0, T258, T259))
insert1_in_gaa(s(T268), tree(s(T270), T271, T248), tree(s(T270), T272, T248)) → U24_gaa(T268, T270, T271, T248, T272, p18_in_gaaa(T268, T270, T271, T272))
U24_gaa(T268, T270, T271, T248, T272, p18_out_gaaa(T268, T270, T271, T272)) → insert1_out_gaa(s(T268), tree(s(T270), T271, T248), tree(s(T270), T272, T248))
insert1_in_gaa(T285, tree(T290, T287, T291), tree(T290, T287, T292)) → U25_gaa(T285, T290, T287, T291, T292, p68_in_agaa(T290, T285, T291, T292))
p68_in_agaa(s(T229), s(T228), T230, T231) → U12_agaa(T229, T228, T230, T231, p50_in_agaa(T229, T228, T230, T231))
U12_agaa(T229, T228, T230, T231, p50_out_agaa(T229, T228, T230, T231)) → p68_out_agaa(s(T229), s(T228), T230, T231)
U25_gaa(T285, T290, T287, T291, T292, p68_out_agaa(T290, T285, T291, T292)) → insert1_out_gaa(T285, tree(T290, T287, T291), tree(T290, T287, T292))
insert1_in_gaa(s(T312), tree(0, T302, T313), tree(0, T302, T314)) → U26_gaa(T312, T302, T313, T314, insert1_in_gaa(s(T312), T313, T314))
insert1_in_gaa(s(T322), tree(s(T323), T302, T324), tree(s(T323), T302, T325)) → U27_gaa(T322, T323, T302, T324, T325, p50_in_agaa(T323, T322, T324, T325))
U27_gaa(T322, T323, T302, T324, T325, p50_out_agaa(T323, T322, T324, T325)) → insert1_out_gaa(s(T322), tree(s(T323), T302, T324), tree(s(T323), T302, T325))
insert1_in_gaa(0, tree(s(T345), T346, T336), tree(s(T345), T347, T336)) → U28_gaa(T345, T346, T336, T347, insert1_in_gaa(0, T346, T347))
insert1_in_gaa(s(T356), tree(s(T358), T359, T336), tree(s(T358), T360, T336)) → U29_gaa(T356, T358, T359, T336, T360, p18_in_gaaa(T356, T358, T359, T360))
U29_gaa(T356, T358, T359, T336, T360, p18_out_gaaa(T356, T358, T359, T360)) → insert1_out_gaa(s(T356), tree(s(T358), T359, T336), tree(s(T358), T360, T336))
insert1_in_gaa(T373, tree(T378, T375, T379), tree(T378, T375, T380)) → U30_gaa(T373, T378, T375, T379, T380, p68_in_agaa(T378, T373, T379, T380))
U30_gaa(T373, T378, T375, T379, T380, p68_out_agaa(T378, T373, T379, T380)) → insert1_out_gaa(T373, tree(T378, T375, T379), tree(T378, T375, T380))
insert1_in_gaa(s(T400), tree(0, T390, T401), tree(0, T390, T402)) → U31_gaa(T400, T390, T401, T402, insert1_in_gaa(s(T400), T401, T402))
insert1_in_gaa(s(T410), tree(s(T411), T390, T412), tree(s(T411), T390, T413)) → U32_gaa(T410, T411, T390, T412, T413, p50_in_agaa(T411, T410, T412, T413))
U32_gaa(T410, T411, T390, T412, T413, p50_out_agaa(T411, T410, T412, T413)) → insert1_out_gaa(s(T410), tree(s(T411), T390, T412), tree(s(T411), T390, T413))
U31_gaa(T400, T390, T401, T402, insert1_out_gaa(s(T400), T401, T402)) → insert1_out_gaa(s(T400), tree(0, T390, T401), tree(0, T390, T402))
U28_gaa(T345, T346, T336, T347, insert1_out_gaa(0, T346, T347)) → insert1_out_gaa(0, tree(s(T345), T346, T336), tree(s(T345), T347, T336))
U26_gaa(T312, T302, T313, T314, insert1_out_gaa(s(T312), T313, T314)) → insert1_out_gaa(s(T312), tree(0, T302, T313), tree(0, T302, T314))
U23_gaa(T257, T258, T248, T259, insert1_out_gaa(0, T258, T259)) → insert1_out_gaa(0, tree(s(T257), T258, T248), tree(s(T257), T259, T248))
U11_agaa(T218, T219, T220, insert1_out_gaa(s(T218), T219, T220)) → p68_out_agaa(0, s(T218), T219, T220)
U22_gaa(T206, T211, T208, T212, T213, p68_out_agaa(T211, T206, T212, T213)) → insert1_out_gaa(T206, tree(T211, T208, T212), tree(T211, T208, T213))
U10_agaa(T135, T134, T140, T141, insert1_out_gaa(s(T134), T140, T141)) → p50_out_agaa(T135, T134, T140, T141)
U7_agaa(T135, T134, T136, T137, p50_out_agaa(T135, T134, T136, T137)) → p43_out_agaa(s(T135), s(T134), T136, T137)
U21_gaa(T191, T196, T193, T197, T198, p43_out_agaa(T196, T191, T197, T198)) → insert1_out_gaa(T191, tree(T196, T193, T197), tree(T196, T193, T198))
U19_gaa(T163, T164, T154, T165, insert1_out_gaa(0, T164, T165)) → insert1_out_gaa(0, tree(s(T163), T164, T154), tree(s(T163), T165, T154))
U6_agaa(T124, T125, T126, insert1_out_gaa(s(T124), T125, T126)) → p43_out_agaa(0, s(T124), T125, T126)
U18_gaa(T112, T117, T114, T118, T119, p43_out_agaa(T117, T112, T118, T119)) → insert1_out_gaa(T112, tree(T117, T114, T118), tree(T117, T114, T119))
U17_gaa(T77, T82, T79, T87, T88, insert1_out_gaa(T77, T87, T88)) → insert1_out_gaa(T77, tree(T82, T79, T87), tree(T82, T79, T88))
U5_gaaa(T40, T42, T47, T48, insert1_out_gaa(s(T40), T47, T48)) → p18_out_gaaa(T40, T42, T47, T48)
U14_gaa(T40, T42, T43, T20, T44, p18_out_gaaa(T40, T42, T43, T44)) → insert1_out_gaa(s(T40), tree(s(T42), T43, T20), tree(s(T42), T44, T20))
U13_gaa(T29, T30, T20, T31, insert1_out_gaa(0, T30, T31)) → insert1_out_gaa(0, tree(s(T29), T30, T20), tree(s(T29), T31, T20))
Infinitary Constructor Rewriting Termination of PiTRS implies Termination of Prolog
insert1_in_gaa(T5, void, tree(T5, void, void)) → insert1_out_gaa(T5, void, tree(T5, void, void))
insert1_in_gaa(T9, tree(T9, T10, T11), tree(T9, T10, T11)) → insert1_out_gaa(T9, tree(T9, T10, T11), tree(T9, T10, T11))
insert1_in_gaa(0, tree(s(T29), T30, T20), tree(s(T29), T31, T20)) → U13_gaa(T29, T30, T20, T31, insert1_in_gaa(0, T30, T31))
insert1_in_gaa(s(T40), tree(s(T42), T43, T20), tree(s(T42), T44, T20)) → U14_gaa(T40, T42, T43, T20, T44, p18_in_gaaa(T40, T42, T43, T44))
p18_in_gaaa(T40, T42, T43, T44) → U3_gaaa(T40, T42, T43, T44, less20_in_ga(T40, T42))
less20_in_ga(0, s(T55)) → less20_out_ga(0, s(T55))
less20_in_ga(s(T60), s(T62)) → U1_ga(T60, T62, less20_in_ga(T60, T62))
U1_ga(T60, T62, less20_out_ga(T60, T62)) → less20_out_ga(s(T60), s(T62))
U3_gaaa(T40, T42, T43, T44, less20_out_ga(T40, T42)) → p18_out_gaaa(T40, T42, T43, T44)
p18_in_gaaa(T40, T42, T47, T48) → U4_gaaa(T40, T42, T47, T48, less20_in_ga(T40, T42))
U4_gaaa(T40, T42, T47, T48, less20_out_ga(T40, T42)) → U5_gaaa(T40, T42, T47, T48, insert1_in_gaa(s(T40), T47, T48))
insert1_in_gaa(T77, tree(T82, T79, T83), tree(T82, T79, T84)) → U15_gaa(T77, T82, T79, T83, T84, less33_in_ag(T82, T77))
less33_in_ag(0, s(T95)) → less33_out_ag(0, s(T95))
less33_in_ag(s(T102), s(T101)) → U2_ag(T102, T101, less33_in_ag(T102, T101))
U2_ag(T102, T101, less33_out_ag(T102, T101)) → less33_out_ag(s(T102), s(T101))
U15_gaa(T77, T82, T79, T83, T84, less33_out_ag(T82, T77)) → insert1_out_gaa(T77, tree(T82, T79, T83), tree(T82, T79, T84))
insert1_in_gaa(T77, tree(T82, T79, T87), tree(T82, T79, T88)) → U16_gaa(T77, T82, T79, T87, T88, less33_in_ag(T82, T77))
U16_gaa(T77, T82, T79, T87, T88, less33_out_ag(T82, T77)) → U17_gaa(T77, T82, T79, T87, T88, insert1_in_gaa(T77, T87, T88))
insert1_in_gaa(T112, tree(T117, T114, T118), tree(T117, T114, T119)) → U18_gaa(T112, T117, T114, T118, T119, p43_in_agaa(T117, T112, T118, T119))
p43_in_agaa(0, s(T124), T125, T126) → U6_agaa(T124, T125, T126, insert1_in_gaa(s(T124), T125, T126))
insert1_in_gaa(0, tree(s(T163), T164, T154), tree(s(T163), T165, T154)) → U19_gaa(T163, T164, T154, T165, insert1_in_gaa(0, T164, T165))
insert1_in_gaa(s(T174), tree(s(T176), T177, T154), tree(s(T176), T178, T154)) → U20_gaa(T174, T176, T177, T154, T178, p18_in_gaaa(T174, T176, T177, T178))
U20_gaa(T174, T176, T177, T154, T178, p18_out_gaaa(T174, T176, T177, T178)) → insert1_out_gaa(s(T174), tree(s(T176), T177, T154), tree(s(T176), T178, T154))
insert1_in_gaa(T191, tree(T196, T193, T197), tree(T196, T193, T198)) → U21_gaa(T191, T196, T193, T197, T198, p43_in_agaa(T196, T191, T197, T198))
p43_in_agaa(s(T135), s(T134), T136, T137) → U7_agaa(T135, T134, T136, T137, p50_in_agaa(T135, T134, T136, T137))
p50_in_agaa(T135, T134, T136, T137) → U8_agaa(T135, T134, T136, T137, less33_in_ag(T135, T134))
U8_agaa(T135, T134, T136, T137, less33_out_ag(T135, T134)) → p50_out_agaa(T135, T134, T136, T137)
p50_in_agaa(T135, T134, T140, T141) → U9_agaa(T135, T134, T140, T141, less33_in_ag(T135, T134))
U9_agaa(T135, T134, T140, T141, less33_out_ag(T135, T134)) → U10_agaa(T135, T134, T140, T141, insert1_in_gaa(s(T134), T140, T141))
insert1_in_gaa(T206, tree(T211, T208, T212), tree(T211, T208, T213)) → U22_gaa(T206, T211, T208, T212, T213, p68_in_agaa(T211, T206, T212, T213))
p68_in_agaa(0, s(T218), T219, T220) → U11_agaa(T218, T219, T220, insert1_in_gaa(s(T218), T219, T220))
insert1_in_gaa(0, tree(s(T257), T258, T248), tree(s(T257), T259, T248)) → U23_gaa(T257, T258, T248, T259, insert1_in_gaa(0, T258, T259))
insert1_in_gaa(s(T268), tree(s(T270), T271, T248), tree(s(T270), T272, T248)) → U24_gaa(T268, T270, T271, T248, T272, p18_in_gaaa(T268, T270, T271, T272))
U24_gaa(T268, T270, T271, T248, T272, p18_out_gaaa(T268, T270, T271, T272)) → insert1_out_gaa(s(T268), tree(s(T270), T271, T248), tree(s(T270), T272, T248))
insert1_in_gaa(T285, tree(T290, T287, T291), tree(T290, T287, T292)) → U25_gaa(T285, T290, T287, T291, T292, p68_in_agaa(T290, T285, T291, T292))
p68_in_agaa(s(T229), s(T228), T230, T231) → U12_agaa(T229, T228, T230, T231, p50_in_agaa(T229, T228, T230, T231))
U12_agaa(T229, T228, T230, T231, p50_out_agaa(T229, T228, T230, T231)) → p68_out_agaa(s(T229), s(T228), T230, T231)
U25_gaa(T285, T290, T287, T291, T292, p68_out_agaa(T290, T285, T291, T292)) → insert1_out_gaa(T285, tree(T290, T287, T291), tree(T290, T287, T292))
insert1_in_gaa(s(T312), tree(0, T302, T313), tree(0, T302, T314)) → U26_gaa(T312, T302, T313, T314, insert1_in_gaa(s(T312), T313, T314))
insert1_in_gaa(s(T322), tree(s(T323), T302, T324), tree(s(T323), T302, T325)) → U27_gaa(T322, T323, T302, T324, T325, p50_in_agaa(T323, T322, T324, T325))
U27_gaa(T322, T323, T302, T324, T325, p50_out_agaa(T323, T322, T324, T325)) → insert1_out_gaa(s(T322), tree(s(T323), T302, T324), tree(s(T323), T302, T325))
insert1_in_gaa(0, tree(s(T345), T346, T336), tree(s(T345), T347, T336)) → U28_gaa(T345, T346, T336, T347, insert1_in_gaa(0, T346, T347))
insert1_in_gaa(s(T356), tree(s(T358), T359, T336), tree(s(T358), T360, T336)) → U29_gaa(T356, T358, T359, T336, T360, p18_in_gaaa(T356, T358, T359, T360))
U29_gaa(T356, T358, T359, T336, T360, p18_out_gaaa(T356, T358, T359, T360)) → insert1_out_gaa(s(T356), tree(s(T358), T359, T336), tree(s(T358), T360, T336))
insert1_in_gaa(T373, tree(T378, T375, T379), tree(T378, T375, T380)) → U30_gaa(T373, T378, T375, T379, T380, p68_in_agaa(T378, T373, T379, T380))
U30_gaa(T373, T378, T375, T379, T380, p68_out_agaa(T378, T373, T379, T380)) → insert1_out_gaa(T373, tree(T378, T375, T379), tree(T378, T375, T380))
insert1_in_gaa(s(T400), tree(0, T390, T401), tree(0, T390, T402)) → U31_gaa(T400, T390, T401, T402, insert1_in_gaa(s(T400), T401, T402))
insert1_in_gaa(s(T410), tree(s(T411), T390, T412), tree(s(T411), T390, T413)) → U32_gaa(T410, T411, T390, T412, T413, p50_in_agaa(T411, T410, T412, T413))
U32_gaa(T410, T411, T390, T412, T413, p50_out_agaa(T411, T410, T412, T413)) → insert1_out_gaa(s(T410), tree(s(T411), T390, T412), tree(s(T411), T390, T413))
U31_gaa(T400, T390, T401, T402, insert1_out_gaa(s(T400), T401, T402)) → insert1_out_gaa(s(T400), tree(0, T390, T401), tree(0, T390, T402))
U28_gaa(T345, T346, T336, T347, insert1_out_gaa(0, T346, T347)) → insert1_out_gaa(0, tree(s(T345), T346, T336), tree(s(T345), T347, T336))
U26_gaa(T312, T302, T313, T314, insert1_out_gaa(s(T312), T313, T314)) → insert1_out_gaa(s(T312), tree(0, T302, T313), tree(0, T302, T314))
U23_gaa(T257, T258, T248, T259, insert1_out_gaa(0, T258, T259)) → insert1_out_gaa(0, tree(s(T257), T258, T248), tree(s(T257), T259, T248))
U11_agaa(T218, T219, T220, insert1_out_gaa(s(T218), T219, T220)) → p68_out_agaa(0, s(T218), T219, T220)
U22_gaa(T206, T211, T208, T212, T213, p68_out_agaa(T211, T206, T212, T213)) → insert1_out_gaa(T206, tree(T211, T208, T212), tree(T211, T208, T213))
U10_agaa(T135, T134, T140, T141, insert1_out_gaa(s(T134), T140, T141)) → p50_out_agaa(T135, T134, T140, T141)
U7_agaa(T135, T134, T136, T137, p50_out_agaa(T135, T134, T136, T137)) → p43_out_agaa(s(T135), s(T134), T136, T137)
U21_gaa(T191, T196, T193, T197, T198, p43_out_agaa(T196, T191, T197, T198)) → insert1_out_gaa(T191, tree(T196, T193, T197), tree(T196, T193, T198))
U19_gaa(T163, T164, T154, T165, insert1_out_gaa(0, T164, T165)) → insert1_out_gaa(0, tree(s(T163), T164, T154), tree(s(T163), T165, T154))
U6_agaa(T124, T125, T126, insert1_out_gaa(s(T124), T125, T126)) → p43_out_agaa(0, s(T124), T125, T126)
U18_gaa(T112, T117, T114, T118, T119, p43_out_agaa(T117, T112, T118, T119)) → insert1_out_gaa(T112, tree(T117, T114, T118), tree(T117, T114, T119))
U17_gaa(T77, T82, T79, T87, T88, insert1_out_gaa(T77, T87, T88)) → insert1_out_gaa(T77, tree(T82, T79, T87), tree(T82, T79, T88))
U5_gaaa(T40, T42, T47, T48, insert1_out_gaa(s(T40), T47, T48)) → p18_out_gaaa(T40, T42, T47, T48)
U14_gaa(T40, T42, T43, T20, T44, p18_out_gaaa(T40, T42, T43, T44)) → insert1_out_gaa(s(T40), tree(s(T42), T43, T20), tree(s(T42), T44, T20))
U13_gaa(T29, T30, T20, T31, insert1_out_gaa(0, T30, T31)) → insert1_out_gaa(0, tree(s(T29), T30, T20), tree(s(T29), T31, T20))
INSERT1_IN_GAA(0, tree(s(T29), T30, T20), tree(s(T29), T31, T20)) → U13_GAA(T29, T30, T20, T31, insert1_in_gaa(0, T30, T31))
INSERT1_IN_GAA(0, tree(s(T29), T30, T20), tree(s(T29), T31, T20)) → INSERT1_IN_GAA(0, T30, T31)
INSERT1_IN_GAA(s(T40), tree(s(T42), T43, T20), tree(s(T42), T44, T20)) → U14_GAA(T40, T42, T43, T20, T44, p18_in_gaaa(T40, T42, T43, T44))
INSERT1_IN_GAA(s(T40), tree(s(T42), T43, T20), tree(s(T42), T44, T20)) → P18_IN_GAAA(T40, T42, T43, T44)
P18_IN_GAAA(T40, T42, T43, T44) → U3_GAAA(T40, T42, T43, T44, less20_in_ga(T40, T42))
P18_IN_GAAA(T40, T42, T43, T44) → LESS20_IN_GA(T40, T42)
LESS20_IN_GA(s(T60), s(T62)) → U1_GA(T60, T62, less20_in_ga(T60, T62))
LESS20_IN_GA(s(T60), s(T62)) → LESS20_IN_GA(T60, T62)
P18_IN_GAAA(T40, T42, T47, T48) → U4_GAAA(T40, T42, T47, T48, less20_in_ga(T40, T42))
U4_GAAA(T40, T42, T47, T48, less20_out_ga(T40, T42)) → U5_GAAA(T40, T42, T47, T48, insert1_in_gaa(s(T40), T47, T48))
U4_GAAA(T40, T42, T47, T48, less20_out_ga(T40, T42)) → INSERT1_IN_GAA(s(T40), T47, T48)
INSERT1_IN_GAA(T77, tree(T82, T79, T83), tree(T82, T79, T84)) → U15_GAA(T77, T82, T79, T83, T84, less33_in_ag(T82, T77))
INSERT1_IN_GAA(T77, tree(T82, T79, T83), tree(T82, T79, T84)) → LESS33_IN_AG(T82, T77)
LESS33_IN_AG(s(T102), s(T101)) → U2_AG(T102, T101, less33_in_ag(T102, T101))
LESS33_IN_AG(s(T102), s(T101)) → LESS33_IN_AG(T102, T101)
INSERT1_IN_GAA(T77, tree(T82, T79, T87), tree(T82, T79, T88)) → U16_GAA(T77, T82, T79, T87, T88, less33_in_ag(T82, T77))
U16_GAA(T77, T82, T79, T87, T88, less33_out_ag(T82, T77)) → U17_GAA(T77, T82, T79, T87, T88, insert1_in_gaa(T77, T87, T88))
U16_GAA(T77, T82, T79, T87, T88, less33_out_ag(T82, T77)) → INSERT1_IN_GAA(T77, T87, T88)
INSERT1_IN_GAA(T112, tree(T117, T114, T118), tree(T117, T114, T119)) → U18_GAA(T112, T117, T114, T118, T119, p43_in_agaa(T117, T112, T118, T119))
INSERT1_IN_GAA(T112, tree(T117, T114, T118), tree(T117, T114, T119)) → P43_IN_AGAA(T117, T112, T118, T119)
P43_IN_AGAA(0, s(T124), T125, T126) → U6_AGAA(T124, T125, T126, insert1_in_gaa(s(T124), T125, T126))
P43_IN_AGAA(0, s(T124), T125, T126) → INSERT1_IN_GAA(s(T124), T125, T126)
INSERT1_IN_GAA(0, tree(s(T163), T164, T154), tree(s(T163), T165, T154)) → U19_GAA(T163, T164, T154, T165, insert1_in_gaa(0, T164, T165))
INSERT1_IN_GAA(s(T174), tree(s(T176), T177, T154), tree(s(T176), T178, T154)) → U20_GAA(T174, T176, T177, T154, T178, p18_in_gaaa(T174, T176, T177, T178))
INSERT1_IN_GAA(T191, tree(T196, T193, T197), tree(T196, T193, T198)) → U21_GAA(T191, T196, T193, T197, T198, p43_in_agaa(T196, T191, T197, T198))
P43_IN_AGAA(s(T135), s(T134), T136, T137) → U7_AGAA(T135, T134, T136, T137, p50_in_agaa(T135, T134, T136, T137))
P43_IN_AGAA(s(T135), s(T134), T136, T137) → P50_IN_AGAA(T135, T134, T136, T137)
P50_IN_AGAA(T135, T134, T136, T137) → U8_AGAA(T135, T134, T136, T137, less33_in_ag(T135, T134))
P50_IN_AGAA(T135, T134, T136, T137) → LESS33_IN_AG(T135, T134)
P50_IN_AGAA(T135, T134, T140, T141) → U9_AGAA(T135, T134, T140, T141, less33_in_ag(T135, T134))
U9_AGAA(T135, T134, T140, T141, less33_out_ag(T135, T134)) → U10_AGAA(T135, T134, T140, T141, insert1_in_gaa(s(T134), T140, T141))
U9_AGAA(T135, T134, T140, T141, less33_out_ag(T135, T134)) → INSERT1_IN_GAA(s(T134), T140, T141)
INSERT1_IN_GAA(T206, tree(T211, T208, T212), tree(T211, T208, T213)) → U22_GAA(T206, T211, T208, T212, T213, p68_in_agaa(T211, T206, T212, T213))
INSERT1_IN_GAA(T206, tree(T211, T208, T212), tree(T211, T208, T213)) → P68_IN_AGAA(T211, T206, T212, T213)
P68_IN_AGAA(0, s(T218), T219, T220) → U11_AGAA(T218, T219, T220, insert1_in_gaa(s(T218), T219, T220))
P68_IN_AGAA(0, s(T218), T219, T220) → INSERT1_IN_GAA(s(T218), T219, T220)
INSERT1_IN_GAA(0, tree(s(T257), T258, T248), tree(s(T257), T259, T248)) → U23_GAA(T257, T258, T248, T259, insert1_in_gaa(0, T258, T259))
INSERT1_IN_GAA(s(T268), tree(s(T270), T271, T248), tree(s(T270), T272, T248)) → U24_GAA(T268, T270, T271, T248, T272, p18_in_gaaa(T268, T270, T271, T272))
INSERT1_IN_GAA(T285, tree(T290, T287, T291), tree(T290, T287, T292)) → U25_GAA(T285, T290, T287, T291, T292, p68_in_agaa(T290, T285, T291, T292))
P68_IN_AGAA(s(T229), s(T228), T230, T231) → U12_AGAA(T229, T228, T230, T231, p50_in_agaa(T229, T228, T230, T231))
P68_IN_AGAA(s(T229), s(T228), T230, T231) → P50_IN_AGAA(T229, T228, T230, T231)
INSERT1_IN_GAA(s(T312), tree(0, T302, T313), tree(0, T302, T314)) → U26_GAA(T312, T302, T313, T314, insert1_in_gaa(s(T312), T313, T314))
INSERT1_IN_GAA(s(T312), tree(0, T302, T313), tree(0, T302, T314)) → INSERT1_IN_GAA(s(T312), T313, T314)
INSERT1_IN_GAA(s(T322), tree(s(T323), T302, T324), tree(s(T323), T302, T325)) → U27_GAA(T322, T323, T302, T324, T325, p50_in_agaa(T323, T322, T324, T325))
INSERT1_IN_GAA(s(T322), tree(s(T323), T302, T324), tree(s(T323), T302, T325)) → P50_IN_AGAA(T323, T322, T324, T325)
INSERT1_IN_GAA(0, tree(s(T345), T346, T336), tree(s(T345), T347, T336)) → U28_GAA(T345, T346, T336, T347, insert1_in_gaa(0, T346, T347))
INSERT1_IN_GAA(s(T356), tree(s(T358), T359, T336), tree(s(T358), T360, T336)) → U29_GAA(T356, T358, T359, T336, T360, p18_in_gaaa(T356, T358, T359, T360))
INSERT1_IN_GAA(T373, tree(T378, T375, T379), tree(T378, T375, T380)) → U30_GAA(T373, T378, T375, T379, T380, p68_in_agaa(T378, T373, T379, T380))
INSERT1_IN_GAA(s(T400), tree(0, T390, T401), tree(0, T390, T402)) → U31_GAA(T400, T390, T401, T402, insert1_in_gaa(s(T400), T401, T402))
INSERT1_IN_GAA(s(T410), tree(s(T411), T390, T412), tree(s(T411), T390, T413)) → U32_GAA(T410, T411, T390, T412, T413, p50_in_agaa(T411, T410, T412, T413))
insert1_in_gaa(T5, void, tree(T5, void, void)) → insert1_out_gaa(T5, void, tree(T5, void, void))
insert1_in_gaa(T9, tree(T9, T10, T11), tree(T9, T10, T11)) → insert1_out_gaa(T9, tree(T9, T10, T11), tree(T9, T10, T11))
insert1_in_gaa(0, tree(s(T29), T30, T20), tree(s(T29), T31, T20)) → U13_gaa(T29, T30, T20, T31, insert1_in_gaa(0, T30, T31))
insert1_in_gaa(s(T40), tree(s(T42), T43, T20), tree(s(T42), T44, T20)) → U14_gaa(T40, T42, T43, T20, T44, p18_in_gaaa(T40, T42, T43, T44))
p18_in_gaaa(T40, T42, T43, T44) → U3_gaaa(T40, T42, T43, T44, less20_in_ga(T40, T42))
less20_in_ga(0, s(T55)) → less20_out_ga(0, s(T55))
less20_in_ga(s(T60), s(T62)) → U1_ga(T60, T62, less20_in_ga(T60, T62))
U1_ga(T60, T62, less20_out_ga(T60, T62)) → less20_out_ga(s(T60), s(T62))
U3_gaaa(T40, T42, T43, T44, less20_out_ga(T40, T42)) → p18_out_gaaa(T40, T42, T43, T44)
p18_in_gaaa(T40, T42, T47, T48) → U4_gaaa(T40, T42, T47, T48, less20_in_ga(T40, T42))
U4_gaaa(T40, T42, T47, T48, less20_out_ga(T40, T42)) → U5_gaaa(T40, T42, T47, T48, insert1_in_gaa(s(T40), T47, T48))
insert1_in_gaa(T77, tree(T82, T79, T83), tree(T82, T79, T84)) → U15_gaa(T77, T82, T79, T83, T84, less33_in_ag(T82, T77))
less33_in_ag(0, s(T95)) → less33_out_ag(0, s(T95))
less33_in_ag(s(T102), s(T101)) → U2_ag(T102, T101, less33_in_ag(T102, T101))
U2_ag(T102, T101, less33_out_ag(T102, T101)) → less33_out_ag(s(T102), s(T101))
U15_gaa(T77, T82, T79, T83, T84, less33_out_ag(T82, T77)) → insert1_out_gaa(T77, tree(T82, T79, T83), tree(T82, T79, T84))
insert1_in_gaa(T77, tree(T82, T79, T87), tree(T82, T79, T88)) → U16_gaa(T77, T82, T79, T87, T88, less33_in_ag(T82, T77))
U16_gaa(T77, T82, T79, T87, T88, less33_out_ag(T82, T77)) → U17_gaa(T77, T82, T79, T87, T88, insert1_in_gaa(T77, T87, T88))
insert1_in_gaa(T112, tree(T117, T114, T118), tree(T117, T114, T119)) → U18_gaa(T112, T117, T114, T118, T119, p43_in_agaa(T117, T112, T118, T119))
p43_in_agaa(0, s(T124), T125, T126) → U6_agaa(T124, T125, T126, insert1_in_gaa(s(T124), T125, T126))
insert1_in_gaa(0, tree(s(T163), T164, T154), tree(s(T163), T165, T154)) → U19_gaa(T163, T164, T154, T165, insert1_in_gaa(0, T164, T165))
insert1_in_gaa(s(T174), tree(s(T176), T177, T154), tree(s(T176), T178, T154)) → U20_gaa(T174, T176, T177, T154, T178, p18_in_gaaa(T174, T176, T177, T178))
U20_gaa(T174, T176, T177, T154, T178, p18_out_gaaa(T174, T176, T177, T178)) → insert1_out_gaa(s(T174), tree(s(T176), T177, T154), tree(s(T176), T178, T154))
insert1_in_gaa(T191, tree(T196, T193, T197), tree(T196, T193, T198)) → U21_gaa(T191, T196, T193, T197, T198, p43_in_agaa(T196, T191, T197, T198))
p43_in_agaa(s(T135), s(T134), T136, T137) → U7_agaa(T135, T134, T136, T137, p50_in_agaa(T135, T134, T136, T137))
p50_in_agaa(T135, T134, T136, T137) → U8_agaa(T135, T134, T136, T137, less33_in_ag(T135, T134))
U8_agaa(T135, T134, T136, T137, less33_out_ag(T135, T134)) → p50_out_agaa(T135, T134, T136, T137)
p50_in_agaa(T135, T134, T140, T141) → U9_agaa(T135, T134, T140, T141, less33_in_ag(T135, T134))
U9_agaa(T135, T134, T140, T141, less33_out_ag(T135, T134)) → U10_agaa(T135, T134, T140, T141, insert1_in_gaa(s(T134), T140, T141))
insert1_in_gaa(T206, tree(T211, T208, T212), tree(T211, T208, T213)) → U22_gaa(T206, T211, T208, T212, T213, p68_in_agaa(T211, T206, T212, T213))
p68_in_agaa(0, s(T218), T219, T220) → U11_agaa(T218, T219, T220, insert1_in_gaa(s(T218), T219, T220))
insert1_in_gaa(0, tree(s(T257), T258, T248), tree(s(T257), T259, T248)) → U23_gaa(T257, T258, T248, T259, insert1_in_gaa(0, T258, T259))
insert1_in_gaa(s(T268), tree(s(T270), T271, T248), tree(s(T270), T272, T248)) → U24_gaa(T268, T270, T271, T248, T272, p18_in_gaaa(T268, T270, T271, T272))
U24_gaa(T268, T270, T271, T248, T272, p18_out_gaaa(T268, T270, T271, T272)) → insert1_out_gaa(s(T268), tree(s(T270), T271, T248), tree(s(T270), T272, T248))
insert1_in_gaa(T285, tree(T290, T287, T291), tree(T290, T287, T292)) → U25_gaa(T285, T290, T287, T291, T292, p68_in_agaa(T290, T285, T291, T292))
p68_in_agaa(s(T229), s(T228), T230, T231) → U12_agaa(T229, T228, T230, T231, p50_in_agaa(T229, T228, T230, T231))
U12_agaa(T229, T228, T230, T231, p50_out_agaa(T229, T228, T230, T231)) → p68_out_agaa(s(T229), s(T228), T230, T231)
U25_gaa(T285, T290, T287, T291, T292, p68_out_agaa(T290, T285, T291, T292)) → insert1_out_gaa(T285, tree(T290, T287, T291), tree(T290, T287, T292))
insert1_in_gaa(s(T312), tree(0, T302, T313), tree(0, T302, T314)) → U26_gaa(T312, T302, T313, T314, insert1_in_gaa(s(T312), T313, T314))
insert1_in_gaa(s(T322), tree(s(T323), T302, T324), tree(s(T323), T302, T325)) → U27_gaa(T322, T323, T302, T324, T325, p50_in_agaa(T323, T322, T324, T325))
U27_gaa(T322, T323, T302, T324, T325, p50_out_agaa(T323, T322, T324, T325)) → insert1_out_gaa(s(T322), tree(s(T323), T302, T324), tree(s(T323), T302, T325))
insert1_in_gaa(0, tree(s(T345), T346, T336), tree(s(T345), T347, T336)) → U28_gaa(T345, T346, T336, T347, insert1_in_gaa(0, T346, T347))
insert1_in_gaa(s(T356), tree(s(T358), T359, T336), tree(s(T358), T360, T336)) → U29_gaa(T356, T358, T359, T336, T360, p18_in_gaaa(T356, T358, T359, T360))
U29_gaa(T356, T358, T359, T336, T360, p18_out_gaaa(T356, T358, T359, T360)) → insert1_out_gaa(s(T356), tree(s(T358), T359, T336), tree(s(T358), T360, T336))
insert1_in_gaa(T373, tree(T378, T375, T379), tree(T378, T375, T380)) → U30_gaa(T373, T378, T375, T379, T380, p68_in_agaa(T378, T373, T379, T380))
U30_gaa(T373, T378, T375, T379, T380, p68_out_agaa(T378, T373, T379, T380)) → insert1_out_gaa(T373, tree(T378, T375, T379), tree(T378, T375, T380))
insert1_in_gaa(s(T400), tree(0, T390, T401), tree(0, T390, T402)) → U31_gaa(T400, T390, T401, T402, insert1_in_gaa(s(T400), T401, T402))
insert1_in_gaa(s(T410), tree(s(T411), T390, T412), tree(s(T411), T390, T413)) → U32_gaa(T410, T411, T390, T412, T413, p50_in_agaa(T411, T410, T412, T413))
U32_gaa(T410, T411, T390, T412, T413, p50_out_agaa(T411, T410, T412, T413)) → insert1_out_gaa(s(T410), tree(s(T411), T390, T412), tree(s(T411), T390, T413))
U31_gaa(T400, T390, T401, T402, insert1_out_gaa(s(T400), T401, T402)) → insert1_out_gaa(s(T400), tree(0, T390, T401), tree(0, T390, T402))
U28_gaa(T345, T346, T336, T347, insert1_out_gaa(0, T346, T347)) → insert1_out_gaa(0, tree(s(T345), T346, T336), tree(s(T345), T347, T336))
U26_gaa(T312, T302, T313, T314, insert1_out_gaa(s(T312), T313, T314)) → insert1_out_gaa(s(T312), tree(0, T302, T313), tree(0, T302, T314))
U23_gaa(T257, T258, T248, T259, insert1_out_gaa(0, T258, T259)) → insert1_out_gaa(0, tree(s(T257), T258, T248), tree(s(T257), T259, T248))
U11_agaa(T218, T219, T220, insert1_out_gaa(s(T218), T219, T220)) → p68_out_agaa(0, s(T218), T219, T220)
U22_gaa(T206, T211, T208, T212, T213, p68_out_agaa(T211, T206, T212, T213)) → insert1_out_gaa(T206, tree(T211, T208, T212), tree(T211, T208, T213))
U10_agaa(T135, T134, T140, T141, insert1_out_gaa(s(T134), T140, T141)) → p50_out_agaa(T135, T134, T140, T141)
U7_agaa(T135, T134, T136, T137, p50_out_agaa(T135, T134, T136, T137)) → p43_out_agaa(s(T135), s(T134), T136, T137)
U21_gaa(T191, T196, T193, T197, T198, p43_out_agaa(T196, T191, T197, T198)) → insert1_out_gaa(T191, tree(T196, T193, T197), tree(T196, T193, T198))
U19_gaa(T163, T164, T154, T165, insert1_out_gaa(0, T164, T165)) → insert1_out_gaa(0, tree(s(T163), T164, T154), tree(s(T163), T165, T154))
U6_agaa(T124, T125, T126, insert1_out_gaa(s(T124), T125, T126)) → p43_out_agaa(0, s(T124), T125, T126)
U18_gaa(T112, T117, T114, T118, T119, p43_out_agaa(T117, T112, T118, T119)) → insert1_out_gaa(T112, tree(T117, T114, T118), tree(T117, T114, T119))
U17_gaa(T77, T82, T79, T87, T88, insert1_out_gaa(T77, T87, T88)) → insert1_out_gaa(T77, tree(T82, T79, T87), tree(T82, T79, T88))
U5_gaaa(T40, T42, T47, T48, insert1_out_gaa(s(T40), T47, T48)) → p18_out_gaaa(T40, T42, T47, T48)
U14_gaa(T40, T42, T43, T20, T44, p18_out_gaaa(T40, T42, T43, T44)) → insert1_out_gaa(s(T40), tree(s(T42), T43, T20), tree(s(T42), T44, T20))
U13_gaa(T29, T30, T20, T31, insert1_out_gaa(0, T30, T31)) → insert1_out_gaa(0, tree(s(T29), T30, T20), tree(s(T29), T31, T20))
INSERT1_IN_GAA(0, tree(s(T29), T30, T20), tree(s(T29), T31, T20)) → U13_GAA(T29, T30, T20, T31, insert1_in_gaa(0, T30, T31))
INSERT1_IN_GAA(0, tree(s(T29), T30, T20), tree(s(T29), T31, T20)) → INSERT1_IN_GAA(0, T30, T31)
INSERT1_IN_GAA(s(T40), tree(s(T42), T43, T20), tree(s(T42), T44, T20)) → U14_GAA(T40, T42, T43, T20, T44, p18_in_gaaa(T40, T42, T43, T44))
INSERT1_IN_GAA(s(T40), tree(s(T42), T43, T20), tree(s(T42), T44, T20)) → P18_IN_GAAA(T40, T42, T43, T44)
P18_IN_GAAA(T40, T42, T43, T44) → U3_GAAA(T40, T42, T43, T44, less20_in_ga(T40, T42))
P18_IN_GAAA(T40, T42, T43, T44) → LESS20_IN_GA(T40, T42)
LESS20_IN_GA(s(T60), s(T62)) → U1_GA(T60, T62, less20_in_ga(T60, T62))
LESS20_IN_GA(s(T60), s(T62)) → LESS20_IN_GA(T60, T62)
P18_IN_GAAA(T40, T42, T47, T48) → U4_GAAA(T40, T42, T47, T48, less20_in_ga(T40, T42))
U4_GAAA(T40, T42, T47, T48, less20_out_ga(T40, T42)) → U5_GAAA(T40, T42, T47, T48, insert1_in_gaa(s(T40), T47, T48))
U4_GAAA(T40, T42, T47, T48, less20_out_ga(T40, T42)) → INSERT1_IN_GAA(s(T40), T47, T48)
INSERT1_IN_GAA(T77, tree(T82, T79, T83), tree(T82, T79, T84)) → U15_GAA(T77, T82, T79, T83, T84, less33_in_ag(T82, T77))
INSERT1_IN_GAA(T77, tree(T82, T79, T83), tree(T82, T79, T84)) → LESS33_IN_AG(T82, T77)
LESS33_IN_AG(s(T102), s(T101)) → U2_AG(T102, T101, less33_in_ag(T102, T101))
LESS33_IN_AG(s(T102), s(T101)) → LESS33_IN_AG(T102, T101)
INSERT1_IN_GAA(T77, tree(T82, T79, T87), tree(T82, T79, T88)) → U16_GAA(T77, T82, T79, T87, T88, less33_in_ag(T82, T77))
U16_GAA(T77, T82, T79, T87, T88, less33_out_ag(T82, T77)) → U17_GAA(T77, T82, T79, T87, T88, insert1_in_gaa(T77, T87, T88))
U16_GAA(T77, T82, T79, T87, T88, less33_out_ag(T82, T77)) → INSERT1_IN_GAA(T77, T87, T88)
INSERT1_IN_GAA(T112, tree(T117, T114, T118), tree(T117, T114, T119)) → U18_GAA(T112, T117, T114, T118, T119, p43_in_agaa(T117, T112, T118, T119))
INSERT1_IN_GAA(T112, tree(T117, T114, T118), tree(T117, T114, T119)) → P43_IN_AGAA(T117, T112, T118, T119)
P43_IN_AGAA(0, s(T124), T125, T126) → U6_AGAA(T124, T125, T126, insert1_in_gaa(s(T124), T125, T126))
P43_IN_AGAA(0, s(T124), T125, T126) → INSERT1_IN_GAA(s(T124), T125, T126)
INSERT1_IN_GAA(0, tree(s(T163), T164, T154), tree(s(T163), T165, T154)) → U19_GAA(T163, T164, T154, T165, insert1_in_gaa(0, T164, T165))
INSERT1_IN_GAA(s(T174), tree(s(T176), T177, T154), tree(s(T176), T178, T154)) → U20_GAA(T174, T176, T177, T154, T178, p18_in_gaaa(T174, T176, T177, T178))
INSERT1_IN_GAA(T191, tree(T196, T193, T197), tree(T196, T193, T198)) → U21_GAA(T191, T196, T193, T197, T198, p43_in_agaa(T196, T191, T197, T198))
P43_IN_AGAA(s(T135), s(T134), T136, T137) → U7_AGAA(T135, T134, T136, T137, p50_in_agaa(T135, T134, T136, T137))
P43_IN_AGAA(s(T135), s(T134), T136, T137) → P50_IN_AGAA(T135, T134, T136, T137)
P50_IN_AGAA(T135, T134, T136, T137) → U8_AGAA(T135, T134, T136, T137, less33_in_ag(T135, T134))
P50_IN_AGAA(T135, T134, T136, T137) → LESS33_IN_AG(T135, T134)
P50_IN_AGAA(T135, T134, T140, T141) → U9_AGAA(T135, T134, T140, T141, less33_in_ag(T135, T134))
U9_AGAA(T135, T134, T140, T141, less33_out_ag(T135, T134)) → U10_AGAA(T135, T134, T140, T141, insert1_in_gaa(s(T134), T140, T141))
U9_AGAA(T135, T134, T140, T141, less33_out_ag(T135, T134)) → INSERT1_IN_GAA(s(T134), T140, T141)
INSERT1_IN_GAA(T206, tree(T211, T208, T212), tree(T211, T208, T213)) → U22_GAA(T206, T211, T208, T212, T213, p68_in_agaa(T211, T206, T212, T213))
INSERT1_IN_GAA(T206, tree(T211, T208, T212), tree(T211, T208, T213)) → P68_IN_AGAA(T211, T206, T212, T213)
P68_IN_AGAA(0, s(T218), T219, T220) → U11_AGAA(T218, T219, T220, insert1_in_gaa(s(T218), T219, T220))
P68_IN_AGAA(0, s(T218), T219, T220) → INSERT1_IN_GAA(s(T218), T219, T220)
INSERT1_IN_GAA(0, tree(s(T257), T258, T248), tree(s(T257), T259, T248)) → U23_GAA(T257, T258, T248, T259, insert1_in_gaa(0, T258, T259))
INSERT1_IN_GAA(s(T268), tree(s(T270), T271, T248), tree(s(T270), T272, T248)) → U24_GAA(T268, T270, T271, T248, T272, p18_in_gaaa(T268, T270, T271, T272))
INSERT1_IN_GAA(T285, tree(T290, T287, T291), tree(T290, T287, T292)) → U25_GAA(T285, T290, T287, T291, T292, p68_in_agaa(T290, T285, T291, T292))
P68_IN_AGAA(s(T229), s(T228), T230, T231) → U12_AGAA(T229, T228, T230, T231, p50_in_agaa(T229, T228, T230, T231))
P68_IN_AGAA(s(T229), s(T228), T230, T231) → P50_IN_AGAA(T229, T228, T230, T231)
INSERT1_IN_GAA(s(T312), tree(0, T302, T313), tree(0, T302, T314)) → U26_GAA(T312, T302, T313, T314, insert1_in_gaa(s(T312), T313, T314))
INSERT1_IN_GAA(s(T312), tree(0, T302, T313), tree(0, T302, T314)) → INSERT1_IN_GAA(s(T312), T313, T314)
INSERT1_IN_GAA(s(T322), tree(s(T323), T302, T324), tree(s(T323), T302, T325)) → U27_GAA(T322, T323, T302, T324, T325, p50_in_agaa(T323, T322, T324, T325))
INSERT1_IN_GAA(s(T322), tree(s(T323), T302, T324), tree(s(T323), T302, T325)) → P50_IN_AGAA(T323, T322, T324, T325)
INSERT1_IN_GAA(0, tree(s(T345), T346, T336), tree(s(T345), T347, T336)) → U28_GAA(T345, T346, T336, T347, insert1_in_gaa(0, T346, T347))
INSERT1_IN_GAA(s(T356), tree(s(T358), T359, T336), tree(s(T358), T360, T336)) → U29_GAA(T356, T358, T359, T336, T360, p18_in_gaaa(T356, T358, T359, T360))
INSERT1_IN_GAA(T373, tree(T378, T375, T379), tree(T378, T375, T380)) → U30_GAA(T373, T378, T375, T379, T380, p68_in_agaa(T378, T373, T379, T380))
INSERT1_IN_GAA(s(T400), tree(0, T390, T401), tree(0, T390, T402)) → U31_GAA(T400, T390, T401, T402, insert1_in_gaa(s(T400), T401, T402))
INSERT1_IN_GAA(s(T410), tree(s(T411), T390, T412), tree(s(T411), T390, T413)) → U32_GAA(T410, T411, T390, T412, T413, p50_in_agaa(T411, T410, T412, T413))
insert1_in_gaa(T5, void, tree(T5, void, void)) → insert1_out_gaa(T5, void, tree(T5, void, void))
insert1_in_gaa(T9, tree(T9, T10, T11), tree(T9, T10, T11)) → insert1_out_gaa(T9, tree(T9, T10, T11), tree(T9, T10, T11))
insert1_in_gaa(0, tree(s(T29), T30, T20), tree(s(T29), T31, T20)) → U13_gaa(T29, T30, T20, T31, insert1_in_gaa(0, T30, T31))
insert1_in_gaa(s(T40), tree(s(T42), T43, T20), tree(s(T42), T44, T20)) → U14_gaa(T40, T42, T43, T20, T44, p18_in_gaaa(T40, T42, T43, T44))
p18_in_gaaa(T40, T42, T43, T44) → U3_gaaa(T40, T42, T43, T44, less20_in_ga(T40, T42))
less20_in_ga(0, s(T55)) → less20_out_ga(0, s(T55))
less20_in_ga(s(T60), s(T62)) → U1_ga(T60, T62, less20_in_ga(T60, T62))
U1_ga(T60, T62, less20_out_ga(T60, T62)) → less20_out_ga(s(T60), s(T62))
U3_gaaa(T40, T42, T43, T44, less20_out_ga(T40, T42)) → p18_out_gaaa(T40, T42, T43, T44)
p18_in_gaaa(T40, T42, T47, T48) → U4_gaaa(T40, T42, T47, T48, less20_in_ga(T40, T42))
U4_gaaa(T40, T42, T47, T48, less20_out_ga(T40, T42)) → U5_gaaa(T40, T42, T47, T48, insert1_in_gaa(s(T40), T47, T48))
insert1_in_gaa(T77, tree(T82, T79, T83), tree(T82, T79, T84)) → U15_gaa(T77, T82, T79, T83, T84, less33_in_ag(T82, T77))
less33_in_ag(0, s(T95)) → less33_out_ag(0, s(T95))
less33_in_ag(s(T102), s(T101)) → U2_ag(T102, T101, less33_in_ag(T102, T101))
U2_ag(T102, T101, less33_out_ag(T102, T101)) → less33_out_ag(s(T102), s(T101))
U15_gaa(T77, T82, T79, T83, T84, less33_out_ag(T82, T77)) → insert1_out_gaa(T77, tree(T82, T79, T83), tree(T82, T79, T84))
insert1_in_gaa(T77, tree(T82, T79, T87), tree(T82, T79, T88)) → U16_gaa(T77, T82, T79, T87, T88, less33_in_ag(T82, T77))
U16_gaa(T77, T82, T79, T87, T88, less33_out_ag(T82, T77)) → U17_gaa(T77, T82, T79, T87, T88, insert1_in_gaa(T77, T87, T88))
insert1_in_gaa(T112, tree(T117, T114, T118), tree(T117, T114, T119)) → U18_gaa(T112, T117, T114, T118, T119, p43_in_agaa(T117, T112, T118, T119))
p43_in_agaa(0, s(T124), T125, T126) → U6_agaa(T124, T125, T126, insert1_in_gaa(s(T124), T125, T126))
insert1_in_gaa(0, tree(s(T163), T164, T154), tree(s(T163), T165, T154)) → U19_gaa(T163, T164, T154, T165, insert1_in_gaa(0, T164, T165))
insert1_in_gaa(s(T174), tree(s(T176), T177, T154), tree(s(T176), T178, T154)) → U20_gaa(T174, T176, T177, T154, T178, p18_in_gaaa(T174, T176, T177, T178))
U20_gaa(T174, T176, T177, T154, T178, p18_out_gaaa(T174, T176, T177, T178)) → insert1_out_gaa(s(T174), tree(s(T176), T177, T154), tree(s(T176), T178, T154))
insert1_in_gaa(T191, tree(T196, T193, T197), tree(T196, T193, T198)) → U21_gaa(T191, T196, T193, T197, T198, p43_in_agaa(T196, T191, T197, T198))
p43_in_agaa(s(T135), s(T134), T136, T137) → U7_agaa(T135, T134, T136, T137, p50_in_agaa(T135, T134, T136, T137))
p50_in_agaa(T135, T134, T136, T137) → U8_agaa(T135, T134, T136, T137, less33_in_ag(T135, T134))
U8_agaa(T135, T134, T136, T137, less33_out_ag(T135, T134)) → p50_out_agaa(T135, T134, T136, T137)
p50_in_agaa(T135, T134, T140, T141) → U9_agaa(T135, T134, T140, T141, less33_in_ag(T135, T134))
U9_agaa(T135, T134, T140, T141, less33_out_ag(T135, T134)) → U10_agaa(T135, T134, T140, T141, insert1_in_gaa(s(T134), T140, T141))
insert1_in_gaa(T206, tree(T211, T208, T212), tree(T211, T208, T213)) → U22_gaa(T206, T211, T208, T212, T213, p68_in_agaa(T211, T206, T212, T213))
p68_in_agaa(0, s(T218), T219, T220) → U11_agaa(T218, T219, T220, insert1_in_gaa(s(T218), T219, T220))
insert1_in_gaa(0, tree(s(T257), T258, T248), tree(s(T257), T259, T248)) → U23_gaa(T257, T258, T248, T259, insert1_in_gaa(0, T258, T259))
insert1_in_gaa(s(T268), tree(s(T270), T271, T248), tree(s(T270), T272, T248)) → U24_gaa(T268, T270, T271, T248, T272, p18_in_gaaa(T268, T270, T271, T272))
U24_gaa(T268, T270, T271, T248, T272, p18_out_gaaa(T268, T270, T271, T272)) → insert1_out_gaa(s(T268), tree(s(T270), T271, T248), tree(s(T270), T272, T248))
insert1_in_gaa(T285, tree(T290, T287, T291), tree(T290, T287, T292)) → U25_gaa(T285, T290, T287, T291, T292, p68_in_agaa(T290, T285, T291, T292))
p68_in_agaa(s(T229), s(T228), T230, T231) → U12_agaa(T229, T228, T230, T231, p50_in_agaa(T229, T228, T230, T231))
U12_agaa(T229, T228, T230, T231, p50_out_agaa(T229, T228, T230, T231)) → p68_out_agaa(s(T229), s(T228), T230, T231)
U25_gaa(T285, T290, T287, T291, T292, p68_out_agaa(T290, T285, T291, T292)) → insert1_out_gaa(T285, tree(T290, T287, T291), tree(T290, T287, T292))
insert1_in_gaa(s(T312), tree(0, T302, T313), tree(0, T302, T314)) → U26_gaa(T312, T302, T313, T314, insert1_in_gaa(s(T312), T313, T314))
insert1_in_gaa(s(T322), tree(s(T323), T302, T324), tree(s(T323), T302, T325)) → U27_gaa(T322, T323, T302, T324, T325, p50_in_agaa(T323, T322, T324, T325))
U27_gaa(T322, T323, T302, T324, T325, p50_out_agaa(T323, T322, T324, T325)) → insert1_out_gaa(s(T322), tree(s(T323), T302, T324), tree(s(T323), T302, T325))
insert1_in_gaa(0, tree(s(T345), T346, T336), tree(s(T345), T347, T336)) → U28_gaa(T345, T346, T336, T347, insert1_in_gaa(0, T346, T347))
insert1_in_gaa(s(T356), tree(s(T358), T359, T336), tree(s(T358), T360, T336)) → U29_gaa(T356, T358, T359, T336, T360, p18_in_gaaa(T356, T358, T359, T360))
U29_gaa(T356, T358, T359, T336, T360, p18_out_gaaa(T356, T358, T359, T360)) → insert1_out_gaa(s(T356), tree(s(T358), T359, T336), tree(s(T358), T360, T336))
insert1_in_gaa(T373, tree(T378, T375, T379), tree(T378, T375, T380)) → U30_gaa(T373, T378, T375, T379, T380, p68_in_agaa(T378, T373, T379, T380))
U30_gaa(T373, T378, T375, T379, T380, p68_out_agaa(T378, T373, T379, T380)) → insert1_out_gaa(T373, tree(T378, T375, T379), tree(T378, T375, T380))
insert1_in_gaa(s(T400), tree(0, T390, T401), tree(0, T390, T402)) → U31_gaa(T400, T390, T401, T402, insert1_in_gaa(s(T400), T401, T402))
insert1_in_gaa(s(T410), tree(s(T411), T390, T412), tree(s(T411), T390, T413)) → U32_gaa(T410, T411, T390, T412, T413, p50_in_agaa(T411, T410, T412, T413))
U32_gaa(T410, T411, T390, T412, T413, p50_out_agaa(T411, T410, T412, T413)) → insert1_out_gaa(s(T410), tree(s(T411), T390, T412), tree(s(T411), T390, T413))
U31_gaa(T400, T390, T401, T402, insert1_out_gaa(s(T400), T401, T402)) → insert1_out_gaa(s(T400), tree(0, T390, T401), tree(0, T390, T402))
U28_gaa(T345, T346, T336, T347, insert1_out_gaa(0, T346, T347)) → insert1_out_gaa(0, tree(s(T345), T346, T336), tree(s(T345), T347, T336))
U26_gaa(T312, T302, T313, T314, insert1_out_gaa(s(T312), T313, T314)) → insert1_out_gaa(s(T312), tree(0, T302, T313), tree(0, T302, T314))
U23_gaa(T257, T258, T248, T259, insert1_out_gaa(0, T258, T259)) → insert1_out_gaa(0, tree(s(T257), T258, T248), tree(s(T257), T259, T248))
U11_agaa(T218, T219, T220, insert1_out_gaa(s(T218), T219, T220)) → p68_out_agaa(0, s(T218), T219, T220)
U22_gaa(T206, T211, T208, T212, T213, p68_out_agaa(T211, T206, T212, T213)) → insert1_out_gaa(T206, tree(T211, T208, T212), tree(T211, T208, T213))
U10_agaa(T135, T134, T140, T141, insert1_out_gaa(s(T134), T140, T141)) → p50_out_agaa(T135, T134, T140, T141)
U7_agaa(T135, T134, T136, T137, p50_out_agaa(T135, T134, T136, T137)) → p43_out_agaa(s(T135), s(T134), T136, T137)
U21_gaa(T191, T196, T193, T197, T198, p43_out_agaa(T196, T191, T197, T198)) → insert1_out_gaa(T191, tree(T196, T193, T197), tree(T196, T193, T198))
U19_gaa(T163, T164, T154, T165, insert1_out_gaa(0, T164, T165)) → insert1_out_gaa(0, tree(s(T163), T164, T154), tree(s(T163), T165, T154))
U6_agaa(T124, T125, T126, insert1_out_gaa(s(T124), T125, T126)) → p43_out_agaa(0, s(T124), T125, T126)
U18_gaa(T112, T117, T114, T118, T119, p43_out_agaa(T117, T112, T118, T119)) → insert1_out_gaa(T112, tree(T117, T114, T118), tree(T117, T114, T119))
U17_gaa(T77, T82, T79, T87, T88, insert1_out_gaa(T77, T87, T88)) → insert1_out_gaa(T77, tree(T82, T79, T87), tree(T82, T79, T88))
U5_gaaa(T40, T42, T47, T48, insert1_out_gaa(s(T40), T47, T48)) → p18_out_gaaa(T40, T42, T47, T48)
U14_gaa(T40, T42, T43, T20, T44, p18_out_gaaa(T40, T42, T43, T44)) → insert1_out_gaa(s(T40), tree(s(T42), T43, T20), tree(s(T42), T44, T20))
U13_gaa(T29, T30, T20, T31, insert1_out_gaa(0, T30, T31)) → insert1_out_gaa(0, tree(s(T29), T30, T20), tree(s(T29), T31, T20))
LESS33_IN_AG(s(T102), s(T101)) → LESS33_IN_AG(T102, T101)
insert1_in_gaa(T5, void, tree(T5, void, void)) → insert1_out_gaa(T5, void, tree(T5, void, void))
insert1_in_gaa(T9, tree(T9, T10, T11), tree(T9, T10, T11)) → insert1_out_gaa(T9, tree(T9, T10, T11), tree(T9, T10, T11))
insert1_in_gaa(0, tree(s(T29), T30, T20), tree(s(T29), T31, T20)) → U13_gaa(T29, T30, T20, T31, insert1_in_gaa(0, T30, T31))
insert1_in_gaa(s(T40), tree(s(T42), T43, T20), tree(s(T42), T44, T20)) → U14_gaa(T40, T42, T43, T20, T44, p18_in_gaaa(T40, T42, T43, T44))
p18_in_gaaa(T40, T42, T43, T44) → U3_gaaa(T40, T42, T43, T44, less20_in_ga(T40, T42))
less20_in_ga(0, s(T55)) → less20_out_ga(0, s(T55))
less20_in_ga(s(T60), s(T62)) → U1_ga(T60, T62, less20_in_ga(T60, T62))
U1_ga(T60, T62, less20_out_ga(T60, T62)) → less20_out_ga(s(T60), s(T62))
U3_gaaa(T40, T42, T43, T44, less20_out_ga(T40, T42)) → p18_out_gaaa(T40, T42, T43, T44)
p18_in_gaaa(T40, T42, T47, T48) → U4_gaaa(T40, T42, T47, T48, less20_in_ga(T40, T42))
U4_gaaa(T40, T42, T47, T48, less20_out_ga(T40, T42)) → U5_gaaa(T40, T42, T47, T48, insert1_in_gaa(s(T40), T47, T48))
insert1_in_gaa(T77, tree(T82, T79, T83), tree(T82, T79, T84)) → U15_gaa(T77, T82, T79, T83, T84, less33_in_ag(T82, T77))
less33_in_ag(0, s(T95)) → less33_out_ag(0, s(T95))
less33_in_ag(s(T102), s(T101)) → U2_ag(T102, T101, less33_in_ag(T102, T101))
U2_ag(T102, T101, less33_out_ag(T102, T101)) → less33_out_ag(s(T102), s(T101))
U15_gaa(T77, T82, T79, T83, T84, less33_out_ag(T82, T77)) → insert1_out_gaa(T77, tree(T82, T79, T83), tree(T82, T79, T84))
insert1_in_gaa(T77, tree(T82, T79, T87), tree(T82, T79, T88)) → U16_gaa(T77, T82, T79, T87, T88, less33_in_ag(T82, T77))
U16_gaa(T77, T82, T79, T87, T88, less33_out_ag(T82, T77)) → U17_gaa(T77, T82, T79, T87, T88, insert1_in_gaa(T77, T87, T88))
insert1_in_gaa(T112, tree(T117, T114, T118), tree(T117, T114, T119)) → U18_gaa(T112, T117, T114, T118, T119, p43_in_agaa(T117, T112, T118, T119))
p43_in_agaa(0, s(T124), T125, T126) → U6_agaa(T124, T125, T126, insert1_in_gaa(s(T124), T125, T126))
insert1_in_gaa(0, tree(s(T163), T164, T154), tree(s(T163), T165, T154)) → U19_gaa(T163, T164, T154, T165, insert1_in_gaa(0, T164, T165))
insert1_in_gaa(s(T174), tree(s(T176), T177, T154), tree(s(T176), T178, T154)) → U20_gaa(T174, T176, T177, T154, T178, p18_in_gaaa(T174, T176, T177, T178))
U20_gaa(T174, T176, T177, T154, T178, p18_out_gaaa(T174, T176, T177, T178)) → insert1_out_gaa(s(T174), tree(s(T176), T177, T154), tree(s(T176), T178, T154))
insert1_in_gaa(T191, tree(T196, T193, T197), tree(T196, T193, T198)) → U21_gaa(T191, T196, T193, T197, T198, p43_in_agaa(T196, T191, T197, T198))
p43_in_agaa(s(T135), s(T134), T136, T137) → U7_agaa(T135, T134, T136, T137, p50_in_agaa(T135, T134, T136, T137))
p50_in_agaa(T135, T134, T136, T137) → U8_agaa(T135, T134, T136, T137, less33_in_ag(T135, T134))
U8_agaa(T135, T134, T136, T137, less33_out_ag(T135, T134)) → p50_out_agaa(T135, T134, T136, T137)
p50_in_agaa(T135, T134, T140, T141) → U9_agaa(T135, T134, T140, T141, less33_in_ag(T135, T134))
U9_agaa(T135, T134, T140, T141, less33_out_ag(T135, T134)) → U10_agaa(T135, T134, T140, T141, insert1_in_gaa(s(T134), T140, T141))
insert1_in_gaa(T206, tree(T211, T208, T212), tree(T211, T208, T213)) → U22_gaa(T206, T211, T208, T212, T213, p68_in_agaa(T211, T206, T212, T213))
p68_in_agaa(0, s(T218), T219, T220) → U11_agaa(T218, T219, T220, insert1_in_gaa(s(T218), T219, T220))
insert1_in_gaa(0, tree(s(T257), T258, T248), tree(s(T257), T259, T248)) → U23_gaa(T257, T258, T248, T259, insert1_in_gaa(0, T258, T259))
insert1_in_gaa(s(T268), tree(s(T270), T271, T248), tree(s(T270), T272, T248)) → U24_gaa(T268, T270, T271, T248, T272, p18_in_gaaa(T268, T270, T271, T272))
U24_gaa(T268, T270, T271, T248, T272, p18_out_gaaa(T268, T270, T271, T272)) → insert1_out_gaa(s(T268), tree(s(T270), T271, T248), tree(s(T270), T272, T248))
insert1_in_gaa(T285, tree(T290, T287, T291), tree(T290, T287, T292)) → U25_gaa(T285, T290, T287, T291, T292, p68_in_agaa(T290, T285, T291, T292))
p68_in_agaa(s(T229), s(T228), T230, T231) → U12_agaa(T229, T228, T230, T231, p50_in_agaa(T229, T228, T230, T231))
U12_agaa(T229, T228, T230, T231, p50_out_agaa(T229, T228, T230, T231)) → p68_out_agaa(s(T229), s(T228), T230, T231)
U25_gaa(T285, T290, T287, T291, T292, p68_out_agaa(T290, T285, T291, T292)) → insert1_out_gaa(T285, tree(T290, T287, T291), tree(T290, T287, T292))
insert1_in_gaa(s(T312), tree(0, T302, T313), tree(0, T302, T314)) → U26_gaa(T312, T302, T313, T314, insert1_in_gaa(s(T312), T313, T314))
insert1_in_gaa(s(T322), tree(s(T323), T302, T324), tree(s(T323), T302, T325)) → U27_gaa(T322, T323, T302, T324, T325, p50_in_agaa(T323, T322, T324, T325))
U27_gaa(T322, T323, T302, T324, T325, p50_out_agaa(T323, T322, T324, T325)) → insert1_out_gaa(s(T322), tree(s(T323), T302, T324), tree(s(T323), T302, T325))
insert1_in_gaa(0, tree(s(T345), T346, T336), tree(s(T345), T347, T336)) → U28_gaa(T345, T346, T336, T347, insert1_in_gaa(0, T346, T347))
insert1_in_gaa(s(T356), tree(s(T358), T359, T336), tree(s(T358), T360, T336)) → U29_gaa(T356, T358, T359, T336, T360, p18_in_gaaa(T356, T358, T359, T360))
U29_gaa(T356, T358, T359, T336, T360, p18_out_gaaa(T356, T358, T359, T360)) → insert1_out_gaa(s(T356), tree(s(T358), T359, T336), tree(s(T358), T360, T336))
insert1_in_gaa(T373, tree(T378, T375, T379), tree(T378, T375, T380)) → U30_gaa(T373, T378, T375, T379, T380, p68_in_agaa(T378, T373, T379, T380))
U30_gaa(T373, T378, T375, T379, T380, p68_out_agaa(T378, T373, T379, T380)) → insert1_out_gaa(T373, tree(T378, T375, T379), tree(T378, T375, T380))
insert1_in_gaa(s(T400), tree(0, T390, T401), tree(0, T390, T402)) → U31_gaa(T400, T390, T401, T402, insert1_in_gaa(s(T400), T401, T402))
insert1_in_gaa(s(T410), tree(s(T411), T390, T412), tree(s(T411), T390, T413)) → U32_gaa(T410, T411, T390, T412, T413, p50_in_agaa(T411, T410, T412, T413))
U32_gaa(T410, T411, T390, T412, T413, p50_out_agaa(T411, T410, T412, T413)) → insert1_out_gaa(s(T410), tree(s(T411), T390, T412), tree(s(T411), T390, T413))
U31_gaa(T400, T390, T401, T402, insert1_out_gaa(s(T400), T401, T402)) → insert1_out_gaa(s(T400), tree(0, T390, T401), tree(0, T390, T402))
U28_gaa(T345, T346, T336, T347, insert1_out_gaa(0, T346, T347)) → insert1_out_gaa(0, tree(s(T345), T346, T336), tree(s(T345), T347, T336))
U26_gaa(T312, T302, T313, T314, insert1_out_gaa(s(T312), T313, T314)) → insert1_out_gaa(s(T312), tree(0, T302, T313), tree(0, T302, T314))
U23_gaa(T257, T258, T248, T259, insert1_out_gaa(0, T258, T259)) → insert1_out_gaa(0, tree(s(T257), T258, T248), tree(s(T257), T259, T248))
U11_agaa(T218, T219, T220, insert1_out_gaa(s(T218), T219, T220)) → p68_out_agaa(0, s(T218), T219, T220)
U22_gaa(T206, T211, T208, T212, T213, p68_out_agaa(T211, T206, T212, T213)) → insert1_out_gaa(T206, tree(T211, T208, T212), tree(T211, T208, T213))
U10_agaa(T135, T134, T140, T141, insert1_out_gaa(s(T134), T140, T141)) → p50_out_agaa(T135, T134, T140, T141)
U7_agaa(T135, T134, T136, T137, p50_out_agaa(T135, T134, T136, T137)) → p43_out_agaa(s(T135), s(T134), T136, T137)
U21_gaa(T191, T196, T193, T197, T198, p43_out_agaa(T196, T191, T197, T198)) → insert1_out_gaa(T191, tree(T196, T193, T197), tree(T196, T193, T198))
U19_gaa(T163, T164, T154, T165, insert1_out_gaa(0, T164, T165)) → insert1_out_gaa(0, tree(s(T163), T164, T154), tree(s(T163), T165, T154))
U6_agaa(T124, T125, T126, insert1_out_gaa(s(T124), T125, T126)) → p43_out_agaa(0, s(T124), T125, T126)
U18_gaa(T112, T117, T114, T118, T119, p43_out_agaa(T117, T112, T118, T119)) → insert1_out_gaa(T112, tree(T117, T114, T118), tree(T117, T114, T119))
U17_gaa(T77, T82, T79, T87, T88, insert1_out_gaa(T77, T87, T88)) → insert1_out_gaa(T77, tree(T82, T79, T87), tree(T82, T79, T88))
U5_gaaa(T40, T42, T47, T48, insert1_out_gaa(s(T40), T47, T48)) → p18_out_gaaa(T40, T42, T47, T48)
U14_gaa(T40, T42, T43, T20, T44, p18_out_gaaa(T40, T42, T43, T44)) → insert1_out_gaa(s(T40), tree(s(T42), T43, T20), tree(s(T42), T44, T20))
U13_gaa(T29, T30, T20, T31, insert1_out_gaa(0, T30, T31)) → insert1_out_gaa(0, tree(s(T29), T30, T20), tree(s(T29), T31, T20))
LESS33_IN_AG(s(T102), s(T101)) → LESS33_IN_AG(T102, T101)
LESS33_IN_AG(s(T101)) → LESS33_IN_AG(T101)
From the DPs we obtained the following set of size-change graphs:
LESS20_IN_GA(s(T60), s(T62)) → LESS20_IN_GA(T60, T62)
insert1_in_gaa(T5, void, tree(T5, void, void)) → insert1_out_gaa(T5, void, tree(T5, void, void))
insert1_in_gaa(T9, tree(T9, T10, T11), tree(T9, T10, T11)) → insert1_out_gaa(T9, tree(T9, T10, T11), tree(T9, T10, T11))
insert1_in_gaa(0, tree(s(T29), T30, T20), tree(s(T29), T31, T20)) → U13_gaa(T29, T30, T20, T31, insert1_in_gaa(0, T30, T31))
insert1_in_gaa(s(T40), tree(s(T42), T43, T20), tree(s(T42), T44, T20)) → U14_gaa(T40, T42, T43, T20, T44, p18_in_gaaa(T40, T42, T43, T44))
p18_in_gaaa(T40, T42, T43, T44) → U3_gaaa(T40, T42, T43, T44, less20_in_ga(T40, T42))
less20_in_ga(0, s(T55)) → less20_out_ga(0, s(T55))
less20_in_ga(s(T60), s(T62)) → U1_ga(T60, T62, less20_in_ga(T60, T62))
U1_ga(T60, T62, less20_out_ga(T60, T62)) → less20_out_ga(s(T60), s(T62))
U3_gaaa(T40, T42, T43, T44, less20_out_ga(T40, T42)) → p18_out_gaaa(T40, T42, T43, T44)
p18_in_gaaa(T40, T42, T47, T48) → U4_gaaa(T40, T42, T47, T48, less20_in_ga(T40, T42))
U4_gaaa(T40, T42, T47, T48, less20_out_ga(T40, T42)) → U5_gaaa(T40, T42, T47, T48, insert1_in_gaa(s(T40), T47, T48))
insert1_in_gaa(T77, tree(T82, T79, T83), tree(T82, T79, T84)) → U15_gaa(T77, T82, T79, T83, T84, less33_in_ag(T82, T77))
less33_in_ag(0, s(T95)) → less33_out_ag(0, s(T95))
less33_in_ag(s(T102), s(T101)) → U2_ag(T102, T101, less33_in_ag(T102, T101))
U2_ag(T102, T101, less33_out_ag(T102, T101)) → less33_out_ag(s(T102), s(T101))
U15_gaa(T77, T82, T79, T83, T84, less33_out_ag(T82, T77)) → insert1_out_gaa(T77, tree(T82, T79, T83), tree(T82, T79, T84))
insert1_in_gaa(T77, tree(T82, T79, T87), tree(T82, T79, T88)) → U16_gaa(T77, T82, T79, T87, T88, less33_in_ag(T82, T77))
U16_gaa(T77, T82, T79, T87, T88, less33_out_ag(T82, T77)) → U17_gaa(T77, T82, T79, T87, T88, insert1_in_gaa(T77, T87, T88))
insert1_in_gaa(T112, tree(T117, T114, T118), tree(T117, T114, T119)) → U18_gaa(T112, T117, T114, T118, T119, p43_in_agaa(T117, T112, T118, T119))
p43_in_agaa(0, s(T124), T125, T126) → U6_agaa(T124, T125, T126, insert1_in_gaa(s(T124), T125, T126))
insert1_in_gaa(0, tree(s(T163), T164, T154), tree(s(T163), T165, T154)) → U19_gaa(T163, T164, T154, T165, insert1_in_gaa(0, T164, T165))
insert1_in_gaa(s(T174), tree(s(T176), T177, T154), tree(s(T176), T178, T154)) → U20_gaa(T174, T176, T177, T154, T178, p18_in_gaaa(T174, T176, T177, T178))
U20_gaa(T174, T176, T177, T154, T178, p18_out_gaaa(T174, T176, T177, T178)) → insert1_out_gaa(s(T174), tree(s(T176), T177, T154), tree(s(T176), T178, T154))
insert1_in_gaa(T191, tree(T196, T193, T197), tree(T196, T193, T198)) → U21_gaa(T191, T196, T193, T197, T198, p43_in_agaa(T196, T191, T197, T198))
p43_in_agaa(s(T135), s(T134), T136, T137) → U7_agaa(T135, T134, T136, T137, p50_in_agaa(T135, T134, T136, T137))
p50_in_agaa(T135, T134, T136, T137) → U8_agaa(T135, T134, T136, T137, less33_in_ag(T135, T134))
U8_agaa(T135, T134, T136, T137, less33_out_ag(T135, T134)) → p50_out_agaa(T135, T134, T136, T137)
p50_in_agaa(T135, T134, T140, T141) → U9_agaa(T135, T134, T140, T141, less33_in_ag(T135, T134))
U9_agaa(T135, T134, T140, T141, less33_out_ag(T135, T134)) → U10_agaa(T135, T134, T140, T141, insert1_in_gaa(s(T134), T140, T141))
insert1_in_gaa(T206, tree(T211, T208, T212), tree(T211, T208, T213)) → U22_gaa(T206, T211, T208, T212, T213, p68_in_agaa(T211, T206, T212, T213))
p68_in_agaa(0, s(T218), T219, T220) → U11_agaa(T218, T219, T220, insert1_in_gaa(s(T218), T219, T220))
insert1_in_gaa(0, tree(s(T257), T258, T248), tree(s(T257), T259, T248)) → U23_gaa(T257, T258, T248, T259, insert1_in_gaa(0, T258, T259))
insert1_in_gaa(s(T268), tree(s(T270), T271, T248), tree(s(T270), T272, T248)) → U24_gaa(T268, T270, T271, T248, T272, p18_in_gaaa(T268, T270, T271, T272))
U24_gaa(T268, T270, T271, T248, T272, p18_out_gaaa(T268, T270, T271, T272)) → insert1_out_gaa(s(T268), tree(s(T270), T271, T248), tree(s(T270), T272, T248))
insert1_in_gaa(T285, tree(T290, T287, T291), tree(T290, T287, T292)) → U25_gaa(T285, T290, T287, T291, T292, p68_in_agaa(T290, T285, T291, T292))
p68_in_agaa(s(T229), s(T228), T230, T231) → U12_agaa(T229, T228, T230, T231, p50_in_agaa(T229, T228, T230, T231))
U12_agaa(T229, T228, T230, T231, p50_out_agaa(T229, T228, T230, T231)) → p68_out_agaa(s(T229), s(T228), T230, T231)
U25_gaa(T285, T290, T287, T291, T292, p68_out_agaa(T290, T285, T291, T292)) → insert1_out_gaa(T285, tree(T290, T287, T291), tree(T290, T287, T292))
insert1_in_gaa(s(T312), tree(0, T302, T313), tree(0, T302, T314)) → U26_gaa(T312, T302, T313, T314, insert1_in_gaa(s(T312), T313, T314))
insert1_in_gaa(s(T322), tree(s(T323), T302, T324), tree(s(T323), T302, T325)) → U27_gaa(T322, T323, T302, T324, T325, p50_in_agaa(T323, T322, T324, T325))
U27_gaa(T322, T323, T302, T324, T325, p50_out_agaa(T323, T322, T324, T325)) → insert1_out_gaa(s(T322), tree(s(T323), T302, T324), tree(s(T323), T302, T325))
insert1_in_gaa(0, tree(s(T345), T346, T336), tree(s(T345), T347, T336)) → U28_gaa(T345, T346, T336, T347, insert1_in_gaa(0, T346, T347))
insert1_in_gaa(s(T356), tree(s(T358), T359, T336), tree(s(T358), T360, T336)) → U29_gaa(T356, T358, T359, T336, T360, p18_in_gaaa(T356, T358, T359, T360))
U29_gaa(T356, T358, T359, T336, T360, p18_out_gaaa(T356, T358, T359, T360)) → insert1_out_gaa(s(T356), tree(s(T358), T359, T336), tree(s(T358), T360, T336))
insert1_in_gaa(T373, tree(T378, T375, T379), tree(T378, T375, T380)) → U30_gaa(T373, T378, T375, T379, T380, p68_in_agaa(T378, T373, T379, T380))
U30_gaa(T373, T378, T375, T379, T380, p68_out_agaa(T378, T373, T379, T380)) → insert1_out_gaa(T373, tree(T378, T375, T379), tree(T378, T375, T380))
insert1_in_gaa(s(T400), tree(0, T390, T401), tree(0, T390, T402)) → U31_gaa(T400, T390, T401, T402, insert1_in_gaa(s(T400), T401, T402))
insert1_in_gaa(s(T410), tree(s(T411), T390, T412), tree(s(T411), T390, T413)) → U32_gaa(T410, T411, T390, T412, T413, p50_in_agaa(T411, T410, T412, T413))
U32_gaa(T410, T411, T390, T412, T413, p50_out_agaa(T411, T410, T412, T413)) → insert1_out_gaa(s(T410), tree(s(T411), T390, T412), tree(s(T411), T390, T413))
U31_gaa(T400, T390, T401, T402, insert1_out_gaa(s(T400), T401, T402)) → insert1_out_gaa(s(T400), tree(0, T390, T401), tree(0, T390, T402))
U28_gaa(T345, T346, T336, T347, insert1_out_gaa(0, T346, T347)) → insert1_out_gaa(0, tree(s(T345), T346, T336), tree(s(T345), T347, T336))
U26_gaa(T312, T302, T313, T314, insert1_out_gaa(s(T312), T313, T314)) → insert1_out_gaa(s(T312), tree(0, T302, T313), tree(0, T302, T314))
U23_gaa(T257, T258, T248, T259, insert1_out_gaa(0, T258, T259)) → insert1_out_gaa(0, tree(s(T257), T258, T248), tree(s(T257), T259, T248))
U11_agaa(T218, T219, T220, insert1_out_gaa(s(T218), T219, T220)) → p68_out_agaa(0, s(T218), T219, T220)
U22_gaa(T206, T211, T208, T212, T213, p68_out_agaa(T211, T206, T212, T213)) → insert1_out_gaa(T206, tree(T211, T208, T212), tree(T211, T208, T213))
U10_agaa(T135, T134, T140, T141, insert1_out_gaa(s(T134), T140, T141)) → p50_out_agaa(T135, T134, T140, T141)
U7_agaa(T135, T134, T136, T137, p50_out_agaa(T135, T134, T136, T137)) → p43_out_agaa(s(T135), s(T134), T136, T137)
U21_gaa(T191, T196, T193, T197, T198, p43_out_agaa(T196, T191, T197, T198)) → insert1_out_gaa(T191, tree(T196, T193, T197), tree(T196, T193, T198))
U19_gaa(T163, T164, T154, T165, insert1_out_gaa(0, T164, T165)) → insert1_out_gaa(0, tree(s(T163), T164, T154), tree(s(T163), T165, T154))
U6_agaa(T124, T125, T126, insert1_out_gaa(s(T124), T125, T126)) → p43_out_agaa(0, s(T124), T125, T126)
U18_gaa(T112, T117, T114, T118, T119, p43_out_agaa(T117, T112, T118, T119)) → insert1_out_gaa(T112, tree(T117, T114, T118), tree(T117, T114, T119))
U17_gaa(T77, T82, T79, T87, T88, insert1_out_gaa(T77, T87, T88)) → insert1_out_gaa(T77, tree(T82, T79, T87), tree(T82, T79, T88))
U5_gaaa(T40, T42, T47, T48, insert1_out_gaa(s(T40), T47, T48)) → p18_out_gaaa(T40, T42, T47, T48)
U14_gaa(T40, T42, T43, T20, T44, p18_out_gaaa(T40, T42, T43, T44)) → insert1_out_gaa(s(T40), tree(s(T42), T43, T20), tree(s(T42), T44, T20))
U13_gaa(T29, T30, T20, T31, insert1_out_gaa(0, T30, T31)) → insert1_out_gaa(0, tree(s(T29), T30, T20), tree(s(T29), T31, T20))
LESS20_IN_GA(s(T60), s(T62)) → LESS20_IN_GA(T60, T62)
LESS20_IN_GA(s(T60)) → LESS20_IN_GA(T60)
From the DPs we obtained the following set of size-change graphs:
INSERT1_IN_GAA(T77, tree(T82, T79, T87), tree(T82, T79, T88)) → U16_GAA(T77, T82, T79, T87, T88, less33_in_ag(T82, T77))
U16_GAA(T77, T82, T79, T87, T88, less33_out_ag(T82, T77)) → INSERT1_IN_GAA(T77, T87, T88)
INSERT1_IN_GAA(0, tree(s(T29), T30, T20), tree(s(T29), T31, T20)) → INSERT1_IN_GAA(0, T30, T31)
INSERT1_IN_GAA(T112, tree(T117, T114, T118), tree(T117, T114, T119)) → P43_IN_AGAA(T117, T112, T118, T119)
P43_IN_AGAA(0, s(T124), T125, T126) → INSERT1_IN_GAA(s(T124), T125, T126)
INSERT1_IN_GAA(s(T40), tree(s(T42), T43, T20), tree(s(T42), T44, T20)) → P18_IN_GAAA(T40, T42, T43, T44)
P18_IN_GAAA(T40, T42, T47, T48) → U4_GAAA(T40, T42, T47, T48, less20_in_ga(T40, T42))
U4_GAAA(T40, T42, T47, T48, less20_out_ga(T40, T42)) → INSERT1_IN_GAA(s(T40), T47, T48)
INSERT1_IN_GAA(T206, tree(T211, T208, T212), tree(T211, T208, T213)) → P68_IN_AGAA(T211, T206, T212, T213)
P68_IN_AGAA(0, s(T218), T219, T220) → INSERT1_IN_GAA(s(T218), T219, T220)
INSERT1_IN_GAA(s(T312), tree(0, T302, T313), tree(0, T302, T314)) → INSERT1_IN_GAA(s(T312), T313, T314)
INSERT1_IN_GAA(s(T322), tree(s(T323), T302, T324), tree(s(T323), T302, T325)) → P50_IN_AGAA(T323, T322, T324, T325)
P50_IN_AGAA(T135, T134, T140, T141) → U9_AGAA(T135, T134, T140, T141, less33_in_ag(T135, T134))
U9_AGAA(T135, T134, T140, T141, less33_out_ag(T135, T134)) → INSERT1_IN_GAA(s(T134), T140, T141)
P68_IN_AGAA(s(T229), s(T228), T230, T231) → P50_IN_AGAA(T229, T228, T230, T231)
P43_IN_AGAA(s(T135), s(T134), T136, T137) → P50_IN_AGAA(T135, T134, T136, T137)
insert1_in_gaa(T5, void, tree(T5, void, void)) → insert1_out_gaa(T5, void, tree(T5, void, void))
insert1_in_gaa(T9, tree(T9, T10, T11), tree(T9, T10, T11)) → insert1_out_gaa(T9, tree(T9, T10, T11), tree(T9, T10, T11))
insert1_in_gaa(0, tree(s(T29), T30, T20), tree(s(T29), T31, T20)) → U13_gaa(T29, T30, T20, T31, insert1_in_gaa(0, T30, T31))
insert1_in_gaa(s(T40), tree(s(T42), T43, T20), tree(s(T42), T44, T20)) → U14_gaa(T40, T42, T43, T20, T44, p18_in_gaaa(T40, T42, T43, T44))
p18_in_gaaa(T40, T42, T43, T44) → U3_gaaa(T40, T42, T43, T44, less20_in_ga(T40, T42))
less20_in_ga(0, s(T55)) → less20_out_ga(0, s(T55))
less20_in_ga(s(T60), s(T62)) → U1_ga(T60, T62, less20_in_ga(T60, T62))
U1_ga(T60, T62, less20_out_ga(T60, T62)) → less20_out_ga(s(T60), s(T62))
U3_gaaa(T40, T42, T43, T44, less20_out_ga(T40, T42)) → p18_out_gaaa(T40, T42, T43, T44)
p18_in_gaaa(T40, T42, T47, T48) → U4_gaaa(T40, T42, T47, T48, less20_in_ga(T40, T42))
U4_gaaa(T40, T42, T47, T48, less20_out_ga(T40, T42)) → U5_gaaa(T40, T42, T47, T48, insert1_in_gaa(s(T40), T47, T48))
insert1_in_gaa(T77, tree(T82, T79, T83), tree(T82, T79, T84)) → U15_gaa(T77, T82, T79, T83, T84, less33_in_ag(T82, T77))
less33_in_ag(0, s(T95)) → less33_out_ag(0, s(T95))
less33_in_ag(s(T102), s(T101)) → U2_ag(T102, T101, less33_in_ag(T102, T101))
U2_ag(T102, T101, less33_out_ag(T102, T101)) → less33_out_ag(s(T102), s(T101))
U15_gaa(T77, T82, T79, T83, T84, less33_out_ag(T82, T77)) → insert1_out_gaa(T77, tree(T82, T79, T83), tree(T82, T79, T84))
insert1_in_gaa(T77, tree(T82, T79, T87), tree(T82, T79, T88)) → U16_gaa(T77, T82, T79, T87, T88, less33_in_ag(T82, T77))
U16_gaa(T77, T82, T79, T87, T88, less33_out_ag(T82, T77)) → U17_gaa(T77, T82, T79, T87, T88, insert1_in_gaa(T77, T87, T88))
insert1_in_gaa(T112, tree(T117, T114, T118), tree(T117, T114, T119)) → U18_gaa(T112, T117, T114, T118, T119, p43_in_agaa(T117, T112, T118, T119))
p43_in_agaa(0, s(T124), T125, T126) → U6_agaa(T124, T125, T126, insert1_in_gaa(s(T124), T125, T126))
insert1_in_gaa(0, tree(s(T163), T164, T154), tree(s(T163), T165, T154)) → U19_gaa(T163, T164, T154, T165, insert1_in_gaa(0, T164, T165))
insert1_in_gaa(s(T174), tree(s(T176), T177, T154), tree(s(T176), T178, T154)) → U20_gaa(T174, T176, T177, T154, T178, p18_in_gaaa(T174, T176, T177, T178))
U20_gaa(T174, T176, T177, T154, T178, p18_out_gaaa(T174, T176, T177, T178)) → insert1_out_gaa(s(T174), tree(s(T176), T177, T154), tree(s(T176), T178, T154))
insert1_in_gaa(T191, tree(T196, T193, T197), tree(T196, T193, T198)) → U21_gaa(T191, T196, T193, T197, T198, p43_in_agaa(T196, T191, T197, T198))
p43_in_agaa(s(T135), s(T134), T136, T137) → U7_agaa(T135, T134, T136, T137, p50_in_agaa(T135, T134, T136, T137))
p50_in_agaa(T135, T134, T136, T137) → U8_agaa(T135, T134, T136, T137, less33_in_ag(T135, T134))
U8_agaa(T135, T134, T136, T137, less33_out_ag(T135, T134)) → p50_out_agaa(T135, T134, T136, T137)
p50_in_agaa(T135, T134, T140, T141) → U9_agaa(T135, T134, T140, T141, less33_in_ag(T135, T134))
U9_agaa(T135, T134, T140, T141, less33_out_ag(T135, T134)) → U10_agaa(T135, T134, T140, T141, insert1_in_gaa(s(T134), T140, T141))
insert1_in_gaa(T206, tree(T211, T208, T212), tree(T211, T208, T213)) → U22_gaa(T206, T211, T208, T212, T213, p68_in_agaa(T211, T206, T212, T213))
p68_in_agaa(0, s(T218), T219, T220) → U11_agaa(T218, T219, T220, insert1_in_gaa(s(T218), T219, T220))
insert1_in_gaa(0, tree(s(T257), T258, T248), tree(s(T257), T259, T248)) → U23_gaa(T257, T258, T248, T259, insert1_in_gaa(0, T258, T259))
insert1_in_gaa(s(T268), tree(s(T270), T271, T248), tree(s(T270), T272, T248)) → U24_gaa(T268, T270, T271, T248, T272, p18_in_gaaa(T268, T270, T271, T272))
U24_gaa(T268, T270, T271, T248, T272, p18_out_gaaa(T268, T270, T271, T272)) → insert1_out_gaa(s(T268), tree(s(T270), T271, T248), tree(s(T270), T272, T248))
insert1_in_gaa(T285, tree(T290, T287, T291), tree(T290, T287, T292)) → U25_gaa(T285, T290, T287, T291, T292, p68_in_agaa(T290, T285, T291, T292))
p68_in_agaa(s(T229), s(T228), T230, T231) → U12_agaa(T229, T228, T230, T231, p50_in_agaa(T229, T228, T230, T231))
U12_agaa(T229, T228, T230, T231, p50_out_agaa(T229, T228, T230, T231)) → p68_out_agaa(s(T229), s(T228), T230, T231)
U25_gaa(T285, T290, T287, T291, T292, p68_out_agaa(T290, T285, T291, T292)) → insert1_out_gaa(T285, tree(T290, T287, T291), tree(T290, T287, T292))
insert1_in_gaa(s(T312), tree(0, T302, T313), tree(0, T302, T314)) → U26_gaa(T312, T302, T313, T314, insert1_in_gaa(s(T312), T313, T314))
insert1_in_gaa(s(T322), tree(s(T323), T302, T324), tree(s(T323), T302, T325)) → U27_gaa(T322, T323, T302, T324, T325, p50_in_agaa(T323, T322, T324, T325))
U27_gaa(T322, T323, T302, T324, T325, p50_out_agaa(T323, T322, T324, T325)) → insert1_out_gaa(s(T322), tree(s(T323), T302, T324), tree(s(T323), T302, T325))
insert1_in_gaa(0, tree(s(T345), T346, T336), tree(s(T345), T347, T336)) → U28_gaa(T345, T346, T336, T347, insert1_in_gaa(0, T346, T347))
insert1_in_gaa(s(T356), tree(s(T358), T359, T336), tree(s(T358), T360, T336)) → U29_gaa(T356, T358, T359, T336, T360, p18_in_gaaa(T356, T358, T359, T360))
U29_gaa(T356, T358, T359, T336, T360, p18_out_gaaa(T356, T358, T359, T360)) → insert1_out_gaa(s(T356), tree(s(T358), T359, T336), tree(s(T358), T360, T336))
insert1_in_gaa(T373, tree(T378, T375, T379), tree(T378, T375, T380)) → U30_gaa(T373, T378, T375, T379, T380, p68_in_agaa(T378, T373, T379, T380))
U30_gaa(T373, T378, T375, T379, T380, p68_out_agaa(T378, T373, T379, T380)) → insert1_out_gaa(T373, tree(T378, T375, T379), tree(T378, T375, T380))
insert1_in_gaa(s(T400), tree(0, T390, T401), tree(0, T390, T402)) → U31_gaa(T400, T390, T401, T402, insert1_in_gaa(s(T400), T401, T402))
insert1_in_gaa(s(T410), tree(s(T411), T390, T412), tree(s(T411), T390, T413)) → U32_gaa(T410, T411, T390, T412, T413, p50_in_agaa(T411, T410, T412, T413))
U32_gaa(T410, T411, T390, T412, T413, p50_out_agaa(T411, T410, T412, T413)) → insert1_out_gaa(s(T410), tree(s(T411), T390, T412), tree(s(T411), T390, T413))
U31_gaa(T400, T390, T401, T402, insert1_out_gaa(s(T400), T401, T402)) → insert1_out_gaa(s(T400), tree(0, T390, T401), tree(0, T390, T402))
U28_gaa(T345, T346, T336, T347, insert1_out_gaa(0, T346, T347)) → insert1_out_gaa(0, tree(s(T345), T346, T336), tree(s(T345), T347, T336))
U26_gaa(T312, T302, T313, T314, insert1_out_gaa(s(T312), T313, T314)) → insert1_out_gaa(s(T312), tree(0, T302, T313), tree(0, T302, T314))
U23_gaa(T257, T258, T248, T259, insert1_out_gaa(0, T258, T259)) → insert1_out_gaa(0, tree(s(T257), T258, T248), tree(s(T257), T259, T248))
U11_agaa(T218, T219, T220, insert1_out_gaa(s(T218), T219, T220)) → p68_out_agaa(0, s(T218), T219, T220)
U22_gaa(T206, T211, T208, T212, T213, p68_out_agaa(T211, T206, T212, T213)) → insert1_out_gaa(T206, tree(T211, T208, T212), tree(T211, T208, T213))
U10_agaa(T135, T134, T140, T141, insert1_out_gaa(s(T134), T140, T141)) → p50_out_agaa(T135, T134, T140, T141)
U7_agaa(T135, T134, T136, T137, p50_out_agaa(T135, T134, T136, T137)) → p43_out_agaa(s(T135), s(T134), T136, T137)
U21_gaa(T191, T196, T193, T197, T198, p43_out_agaa(T196, T191, T197, T198)) → insert1_out_gaa(T191, tree(T196, T193, T197), tree(T196, T193, T198))
U19_gaa(T163, T164, T154, T165, insert1_out_gaa(0, T164, T165)) → insert1_out_gaa(0, tree(s(T163), T164, T154), tree(s(T163), T165, T154))
U6_agaa(T124, T125, T126, insert1_out_gaa(s(T124), T125, T126)) → p43_out_agaa(0, s(T124), T125, T126)
U18_gaa(T112, T117, T114, T118, T119, p43_out_agaa(T117, T112, T118, T119)) → insert1_out_gaa(T112, tree(T117, T114, T118), tree(T117, T114, T119))
U17_gaa(T77, T82, T79, T87, T88, insert1_out_gaa(T77, T87, T88)) → insert1_out_gaa(T77, tree(T82, T79, T87), tree(T82, T79, T88))
U5_gaaa(T40, T42, T47, T48, insert1_out_gaa(s(T40), T47, T48)) → p18_out_gaaa(T40, T42, T47, T48)
U14_gaa(T40, T42, T43, T20, T44, p18_out_gaaa(T40, T42, T43, T44)) → insert1_out_gaa(s(T40), tree(s(T42), T43, T20), tree(s(T42), T44, T20))
U13_gaa(T29, T30, T20, T31, insert1_out_gaa(0, T30, T31)) → insert1_out_gaa(0, tree(s(T29), T30, T20), tree(s(T29), T31, T20))
INSERT1_IN_GAA(T77, tree(T82, T79, T87), tree(T82, T79, T88)) → U16_GAA(T77, T82, T79, T87, T88, less33_in_ag(T82, T77))
U16_GAA(T77, T82, T79, T87, T88, less33_out_ag(T82, T77)) → INSERT1_IN_GAA(T77, T87, T88)
INSERT1_IN_GAA(0, tree(s(T29), T30, T20), tree(s(T29), T31, T20)) → INSERT1_IN_GAA(0, T30, T31)
INSERT1_IN_GAA(T112, tree(T117, T114, T118), tree(T117, T114, T119)) → P43_IN_AGAA(T117, T112, T118, T119)
P43_IN_AGAA(0, s(T124), T125, T126) → INSERT1_IN_GAA(s(T124), T125, T126)
INSERT1_IN_GAA(s(T40), tree(s(T42), T43, T20), tree(s(T42), T44, T20)) → P18_IN_GAAA(T40, T42, T43, T44)
P18_IN_GAAA(T40, T42, T47, T48) → U4_GAAA(T40, T42, T47, T48, less20_in_ga(T40, T42))
U4_GAAA(T40, T42, T47, T48, less20_out_ga(T40, T42)) → INSERT1_IN_GAA(s(T40), T47, T48)
INSERT1_IN_GAA(T206, tree(T211, T208, T212), tree(T211, T208, T213)) → P68_IN_AGAA(T211, T206, T212, T213)
P68_IN_AGAA(0, s(T218), T219, T220) → INSERT1_IN_GAA(s(T218), T219, T220)
INSERT1_IN_GAA(s(T312), tree(0, T302, T313), tree(0, T302, T314)) → INSERT1_IN_GAA(s(T312), T313, T314)
INSERT1_IN_GAA(s(T322), tree(s(T323), T302, T324), tree(s(T323), T302, T325)) → P50_IN_AGAA(T323, T322, T324, T325)
P50_IN_AGAA(T135, T134, T140, T141) → U9_AGAA(T135, T134, T140, T141, less33_in_ag(T135, T134))
U9_AGAA(T135, T134, T140, T141, less33_out_ag(T135, T134)) → INSERT1_IN_GAA(s(T134), T140, T141)
P68_IN_AGAA(s(T229), s(T228), T230, T231) → P50_IN_AGAA(T229, T228, T230, T231)
P43_IN_AGAA(s(T135), s(T134), T136, T137) → P50_IN_AGAA(T135, T134, T136, T137)
less33_in_ag(0, s(T95)) → less33_out_ag(0, s(T95))
less33_in_ag(s(T102), s(T101)) → U2_ag(T102, T101, less33_in_ag(T102, T101))
less20_in_ga(0, s(T55)) → less20_out_ga(0, s(T55))
less20_in_ga(s(T60), s(T62)) → U1_ga(T60, T62, less20_in_ga(T60, T62))
U2_ag(T102, T101, less33_out_ag(T102, T101)) → less33_out_ag(s(T102), s(T101))
U1_ga(T60, T62, less20_out_ga(T60, T62)) → less20_out_ga(s(T60), s(T62))
INSERT1_IN_GAA(T77) → U16_GAA(T77, less33_in_ag(T77))
U16_GAA(T77, less33_out_ag(T82, T77)) → INSERT1_IN_GAA(T77)
INSERT1_IN_GAA(0) → INSERT1_IN_GAA(0)
INSERT1_IN_GAA(T112) → P43_IN_AGAA(T112)
P43_IN_AGAA(s(T124)) → INSERT1_IN_GAA(s(T124))
INSERT1_IN_GAA(s(T40)) → P18_IN_GAAA(T40)
P18_IN_GAAA(T40) → U4_GAAA(T40, less20_in_ga(T40))
U4_GAAA(T40, less20_out_ga(T40)) → INSERT1_IN_GAA(s(T40))
INSERT1_IN_GAA(T206) → P68_IN_AGAA(T206)
P68_IN_AGAA(s(T218)) → INSERT1_IN_GAA(s(T218))
INSERT1_IN_GAA(s(T312)) → INSERT1_IN_GAA(s(T312))
INSERT1_IN_GAA(s(T322)) → P50_IN_AGAA(T322)
P50_IN_AGAA(T134) → U9_AGAA(T134, less33_in_ag(T134))
U9_AGAA(T134, less33_out_ag(T135, T134)) → INSERT1_IN_GAA(s(T134))
P68_IN_AGAA(s(T228)) → P50_IN_AGAA(T228)
P43_IN_AGAA(s(T134)) → P50_IN_AGAA(T134)
less33_in_ag(s(T95)) → less33_out_ag(0, s(T95))
less33_in_ag(s(T101)) → U2_ag(T101, less33_in_ag(T101))
less20_in_ga(0) → less20_out_ga(0)
less20_in_ga(s(T60)) → U1_ga(T60, less20_in_ga(T60))
U2_ag(T101, less33_out_ag(T102, T101)) → less33_out_ag(s(T102), s(T101))
U1_ga(T60, less20_out_ga(T60)) → less20_out_ga(s(T60))
less33_in_ag(x0)
less20_in_ga(x0)
U2_ag(x0, x1)
U1_ga(x0, x1)
INSERT1_IN_GAA(s(x0)) → U16_GAA(s(x0), less33_out_ag(0, s(x0)))
INSERT1_IN_GAA(s(x0)) → U16_GAA(s(x0), U2_ag(x0, less33_in_ag(x0)))
U16_GAA(T77, less33_out_ag(T82, T77)) → INSERT1_IN_GAA(T77)
INSERT1_IN_GAA(0) → INSERT1_IN_GAA(0)
INSERT1_IN_GAA(T112) → P43_IN_AGAA(T112)
P43_IN_AGAA(s(T124)) → INSERT1_IN_GAA(s(T124))
INSERT1_IN_GAA(s(T40)) → P18_IN_GAAA(T40)
P18_IN_GAAA(T40) → U4_GAAA(T40, less20_in_ga(T40))
U4_GAAA(T40, less20_out_ga(T40)) → INSERT1_IN_GAA(s(T40))
INSERT1_IN_GAA(T206) → P68_IN_AGAA(T206)
P68_IN_AGAA(s(T218)) → INSERT1_IN_GAA(s(T218))
INSERT1_IN_GAA(s(T312)) → INSERT1_IN_GAA(s(T312))
INSERT1_IN_GAA(s(T322)) → P50_IN_AGAA(T322)
P50_IN_AGAA(T134) → U9_AGAA(T134, less33_in_ag(T134))
U9_AGAA(T134, less33_out_ag(T135, T134)) → INSERT1_IN_GAA(s(T134))
P68_IN_AGAA(s(T228)) → P50_IN_AGAA(T228)
P43_IN_AGAA(s(T134)) → P50_IN_AGAA(T134)
INSERT1_IN_GAA(s(x0)) → U16_GAA(s(x0), less33_out_ag(0, s(x0)))
INSERT1_IN_GAA(s(x0)) → U16_GAA(s(x0), U2_ag(x0, less33_in_ag(x0)))
less33_in_ag(s(T95)) → less33_out_ag(0, s(T95))
less33_in_ag(s(T101)) → U2_ag(T101, less33_in_ag(T101))
less20_in_ga(0) → less20_out_ga(0)
less20_in_ga(s(T60)) → U1_ga(T60, less20_in_ga(T60))
U2_ag(T101, less33_out_ag(T102, T101)) → less33_out_ag(s(T102), s(T101))
U1_ga(T60, less20_out_ga(T60)) → less20_out_ga(s(T60))
less33_in_ag(x0)
less20_in_ga(x0)
U2_ag(x0, x1)
U1_ga(x0, x1)
P18_IN_GAAA(0) → U4_GAAA(0, less20_out_ga(0))
P18_IN_GAAA(s(x0)) → U4_GAAA(s(x0), U1_ga(x0, less20_in_ga(x0)))
U16_GAA(T77, less33_out_ag(T82, T77)) → INSERT1_IN_GAA(T77)
INSERT1_IN_GAA(0) → INSERT1_IN_GAA(0)
INSERT1_IN_GAA(T112) → P43_IN_AGAA(T112)
P43_IN_AGAA(s(T124)) → INSERT1_IN_GAA(s(T124))
INSERT1_IN_GAA(s(T40)) → P18_IN_GAAA(T40)
U4_GAAA(T40, less20_out_ga(T40)) → INSERT1_IN_GAA(s(T40))
INSERT1_IN_GAA(T206) → P68_IN_AGAA(T206)
P68_IN_AGAA(s(T218)) → INSERT1_IN_GAA(s(T218))
INSERT1_IN_GAA(s(T312)) → INSERT1_IN_GAA(s(T312))
INSERT1_IN_GAA(s(T322)) → P50_IN_AGAA(T322)
P50_IN_AGAA(T134) → U9_AGAA(T134, less33_in_ag(T134))
U9_AGAA(T134, less33_out_ag(T135, T134)) → INSERT1_IN_GAA(s(T134))
P68_IN_AGAA(s(T228)) → P50_IN_AGAA(T228)
P43_IN_AGAA(s(T134)) → P50_IN_AGAA(T134)
INSERT1_IN_GAA(s(x0)) → U16_GAA(s(x0), less33_out_ag(0, s(x0)))
INSERT1_IN_GAA(s(x0)) → U16_GAA(s(x0), U2_ag(x0, less33_in_ag(x0)))
P18_IN_GAAA(0) → U4_GAAA(0, less20_out_ga(0))
P18_IN_GAAA(s(x0)) → U4_GAAA(s(x0), U1_ga(x0, less20_in_ga(x0)))
less33_in_ag(s(T95)) → less33_out_ag(0, s(T95))
less33_in_ag(s(T101)) → U2_ag(T101, less33_in_ag(T101))
less20_in_ga(0) → less20_out_ga(0)
less20_in_ga(s(T60)) → U1_ga(T60, less20_in_ga(T60))
U2_ag(T101, less33_out_ag(T102, T101)) → less33_out_ag(s(T102), s(T101))
U1_ga(T60, less20_out_ga(T60)) → less20_out_ga(s(T60))
less33_in_ag(x0)
less20_in_ga(x0)
U2_ag(x0, x1)
U1_ga(x0, x1)
P50_IN_AGAA(s(x0)) → U9_AGAA(s(x0), less33_out_ag(0, s(x0)))
P50_IN_AGAA(s(x0)) → U9_AGAA(s(x0), U2_ag(x0, less33_in_ag(x0)))
U16_GAA(T77, less33_out_ag(T82, T77)) → INSERT1_IN_GAA(T77)
INSERT1_IN_GAA(0) → INSERT1_IN_GAA(0)
INSERT1_IN_GAA(T112) → P43_IN_AGAA(T112)
P43_IN_AGAA(s(T124)) → INSERT1_IN_GAA(s(T124))
INSERT1_IN_GAA(s(T40)) → P18_IN_GAAA(T40)
U4_GAAA(T40, less20_out_ga(T40)) → INSERT1_IN_GAA(s(T40))
INSERT1_IN_GAA(T206) → P68_IN_AGAA(T206)
P68_IN_AGAA(s(T218)) → INSERT1_IN_GAA(s(T218))
INSERT1_IN_GAA(s(T312)) → INSERT1_IN_GAA(s(T312))
INSERT1_IN_GAA(s(T322)) → P50_IN_AGAA(T322)
U9_AGAA(T134, less33_out_ag(T135, T134)) → INSERT1_IN_GAA(s(T134))
P68_IN_AGAA(s(T228)) → P50_IN_AGAA(T228)
P43_IN_AGAA(s(T134)) → P50_IN_AGAA(T134)
INSERT1_IN_GAA(s(x0)) → U16_GAA(s(x0), less33_out_ag(0, s(x0)))
INSERT1_IN_GAA(s(x0)) → U16_GAA(s(x0), U2_ag(x0, less33_in_ag(x0)))
P18_IN_GAAA(0) → U4_GAAA(0, less20_out_ga(0))
P18_IN_GAAA(s(x0)) → U4_GAAA(s(x0), U1_ga(x0, less20_in_ga(x0)))
P50_IN_AGAA(s(x0)) → U9_AGAA(s(x0), less33_out_ag(0, s(x0)))
P50_IN_AGAA(s(x0)) → U9_AGAA(s(x0), U2_ag(x0, less33_in_ag(x0)))
less33_in_ag(s(T95)) → less33_out_ag(0, s(T95))
less33_in_ag(s(T101)) → U2_ag(T101, less33_in_ag(T101))
less20_in_ga(0) → less20_out_ga(0)
less20_in_ga(s(T60)) → U1_ga(T60, less20_in_ga(T60))
U2_ag(T101, less33_out_ag(T102, T101)) → less33_out_ag(s(T102), s(T101))
U1_ga(T60, less20_out_ga(T60)) → less20_out_ga(s(T60))
less33_in_ag(x0)
less20_in_ga(x0)
U2_ag(x0, x1)
U1_ga(x0, x1)
U16_GAA(s(z0), less33_out_ag(0, s(z0))) → INSERT1_IN_GAA(s(z0))
U16_GAA(s(z0), less33_out_ag(x1, s(z0))) → INSERT1_IN_GAA(s(z0))
INSERT1_IN_GAA(0) → INSERT1_IN_GAA(0)
INSERT1_IN_GAA(T112) → P43_IN_AGAA(T112)
P43_IN_AGAA(s(T124)) → INSERT1_IN_GAA(s(T124))
INSERT1_IN_GAA(s(T40)) → P18_IN_GAAA(T40)
U4_GAAA(T40, less20_out_ga(T40)) → INSERT1_IN_GAA(s(T40))
INSERT1_IN_GAA(T206) → P68_IN_AGAA(T206)
P68_IN_AGAA(s(T218)) → INSERT1_IN_GAA(s(T218))
INSERT1_IN_GAA(s(T312)) → INSERT1_IN_GAA(s(T312))
INSERT1_IN_GAA(s(T322)) → P50_IN_AGAA(T322)
U9_AGAA(T134, less33_out_ag(T135, T134)) → INSERT1_IN_GAA(s(T134))
P68_IN_AGAA(s(T228)) → P50_IN_AGAA(T228)
P43_IN_AGAA(s(T134)) → P50_IN_AGAA(T134)
INSERT1_IN_GAA(s(x0)) → U16_GAA(s(x0), less33_out_ag(0, s(x0)))
INSERT1_IN_GAA(s(x0)) → U16_GAA(s(x0), U2_ag(x0, less33_in_ag(x0)))
P18_IN_GAAA(0) → U4_GAAA(0, less20_out_ga(0))
P18_IN_GAAA(s(x0)) → U4_GAAA(s(x0), U1_ga(x0, less20_in_ga(x0)))
P50_IN_AGAA(s(x0)) → U9_AGAA(s(x0), less33_out_ag(0, s(x0)))
P50_IN_AGAA(s(x0)) → U9_AGAA(s(x0), U2_ag(x0, less33_in_ag(x0)))
U16_GAA(s(z0), less33_out_ag(0, s(z0))) → INSERT1_IN_GAA(s(z0))
U16_GAA(s(z0), less33_out_ag(x1, s(z0))) → INSERT1_IN_GAA(s(z0))
less33_in_ag(s(T95)) → less33_out_ag(0, s(T95))
less33_in_ag(s(T101)) → U2_ag(T101, less33_in_ag(T101))
less20_in_ga(0) → less20_out_ga(0)
less20_in_ga(s(T60)) → U1_ga(T60, less20_in_ga(T60))
U2_ag(T101, less33_out_ag(T102, T101)) → less33_out_ag(s(T102), s(T101))
U1_ga(T60, less20_out_ga(T60)) → less20_out_ga(s(T60))
less33_in_ag(x0)
less20_in_ga(x0)
U2_ag(x0, x1)
U1_ga(x0, x1)
P43_IN_AGAA(s(T124)) → INSERT1_IN_GAA(s(T124))
INSERT1_IN_GAA(T112) → P43_IN_AGAA(T112)
P43_IN_AGAA(s(T134)) → P50_IN_AGAA(T134)
P50_IN_AGAA(s(x0)) → U9_AGAA(s(x0), less33_out_ag(0, s(x0)))
U9_AGAA(T134, less33_out_ag(T135, T134)) → INSERT1_IN_GAA(s(T134))
INSERT1_IN_GAA(s(T40)) → P18_IN_GAAA(T40)
P18_IN_GAAA(0) → U4_GAAA(0, less20_out_ga(0))
U4_GAAA(T40, less20_out_ga(T40)) → INSERT1_IN_GAA(s(T40))
INSERT1_IN_GAA(T206) → P68_IN_AGAA(T206)
P68_IN_AGAA(s(T218)) → INSERT1_IN_GAA(s(T218))
INSERT1_IN_GAA(s(T312)) → INSERT1_IN_GAA(s(T312))
INSERT1_IN_GAA(s(T322)) → P50_IN_AGAA(T322)
P50_IN_AGAA(s(x0)) → U9_AGAA(s(x0), U2_ag(x0, less33_in_ag(x0)))
INSERT1_IN_GAA(s(x0)) → U16_GAA(s(x0), less33_out_ag(0, s(x0)))
U16_GAA(s(z0), less33_out_ag(0, s(z0))) → INSERT1_IN_GAA(s(z0))
INSERT1_IN_GAA(s(x0)) → U16_GAA(s(x0), U2_ag(x0, less33_in_ag(x0)))
U16_GAA(s(z0), less33_out_ag(x1, s(z0))) → INSERT1_IN_GAA(s(z0))
P68_IN_AGAA(s(T228)) → P50_IN_AGAA(T228)
P18_IN_GAAA(s(x0)) → U4_GAAA(s(x0), U1_ga(x0, less20_in_ga(x0)))
less33_in_ag(s(T95)) → less33_out_ag(0, s(T95))
less33_in_ag(s(T101)) → U2_ag(T101, less33_in_ag(T101))
less20_in_ga(0) → less20_out_ga(0)
less20_in_ga(s(T60)) → U1_ga(T60, less20_in_ga(T60))
U2_ag(T101, less33_out_ag(T102, T101)) → less33_out_ag(s(T102), s(T101))
U1_ga(T60, less20_out_ga(T60)) → less20_out_ga(s(T60))
less33_in_ag(x0)
less20_in_ga(x0)
U2_ag(x0, x1)
U1_ga(x0, x1)
INSERT1_IN_GAA(s(z0)) → P43_IN_AGAA(s(z0))
P43_IN_AGAA(s(T124)) → INSERT1_IN_GAA(s(T124))
P43_IN_AGAA(s(T134)) → P50_IN_AGAA(T134)
P50_IN_AGAA(s(x0)) → U9_AGAA(s(x0), less33_out_ag(0, s(x0)))
U9_AGAA(T134, less33_out_ag(T135, T134)) → INSERT1_IN_GAA(s(T134))
INSERT1_IN_GAA(s(T40)) → P18_IN_GAAA(T40)
P18_IN_GAAA(0) → U4_GAAA(0, less20_out_ga(0))
U4_GAAA(T40, less20_out_ga(T40)) → INSERT1_IN_GAA(s(T40))
INSERT1_IN_GAA(T206) → P68_IN_AGAA(T206)
P68_IN_AGAA(s(T218)) → INSERT1_IN_GAA(s(T218))
INSERT1_IN_GAA(s(T312)) → INSERT1_IN_GAA(s(T312))
INSERT1_IN_GAA(s(T322)) → P50_IN_AGAA(T322)
P50_IN_AGAA(s(x0)) → U9_AGAA(s(x0), U2_ag(x0, less33_in_ag(x0)))
INSERT1_IN_GAA(s(x0)) → U16_GAA(s(x0), less33_out_ag(0, s(x0)))
U16_GAA(s(z0), less33_out_ag(0, s(z0))) → INSERT1_IN_GAA(s(z0))
INSERT1_IN_GAA(s(x0)) → U16_GAA(s(x0), U2_ag(x0, less33_in_ag(x0)))
U16_GAA(s(z0), less33_out_ag(x1, s(z0))) → INSERT1_IN_GAA(s(z0))
P68_IN_AGAA(s(T228)) → P50_IN_AGAA(T228)
P18_IN_GAAA(s(x0)) → U4_GAAA(s(x0), U1_ga(x0, less20_in_ga(x0)))
INSERT1_IN_GAA(s(z0)) → P43_IN_AGAA(s(z0))
less33_in_ag(s(T95)) → less33_out_ag(0, s(T95))
less33_in_ag(s(T101)) → U2_ag(T101, less33_in_ag(T101))
less20_in_ga(0) → less20_out_ga(0)
less20_in_ga(s(T60)) → U1_ga(T60, less20_in_ga(T60))
U2_ag(T101, less33_out_ag(T102, T101)) → less33_out_ag(s(T102), s(T101))
U1_ga(T60, less20_out_ga(T60)) → less20_out_ga(s(T60))
less33_in_ag(x0)
less20_in_ga(x0)
U2_ag(x0, x1)
U1_ga(x0, x1)
U9_AGAA(s(z0), less33_out_ag(0, s(z0))) → INSERT1_IN_GAA(s(s(z0)))
U9_AGAA(s(z0), less33_out_ag(x1, s(z0))) → INSERT1_IN_GAA(s(s(z0)))
P43_IN_AGAA(s(T124)) → INSERT1_IN_GAA(s(T124))
P43_IN_AGAA(s(T134)) → P50_IN_AGAA(T134)
P50_IN_AGAA(s(x0)) → U9_AGAA(s(x0), less33_out_ag(0, s(x0)))
INSERT1_IN_GAA(s(T40)) → P18_IN_GAAA(T40)
P18_IN_GAAA(0) → U4_GAAA(0, less20_out_ga(0))
U4_GAAA(T40, less20_out_ga(T40)) → INSERT1_IN_GAA(s(T40))
INSERT1_IN_GAA(T206) → P68_IN_AGAA(T206)
P68_IN_AGAA(s(T218)) → INSERT1_IN_GAA(s(T218))
INSERT1_IN_GAA(s(T312)) → INSERT1_IN_GAA(s(T312))
INSERT1_IN_GAA(s(T322)) → P50_IN_AGAA(T322)
P50_IN_AGAA(s(x0)) → U9_AGAA(s(x0), U2_ag(x0, less33_in_ag(x0)))
INSERT1_IN_GAA(s(x0)) → U16_GAA(s(x0), less33_out_ag(0, s(x0)))
U16_GAA(s(z0), less33_out_ag(0, s(z0))) → INSERT1_IN_GAA(s(z0))
INSERT1_IN_GAA(s(x0)) → U16_GAA(s(x0), U2_ag(x0, less33_in_ag(x0)))
U16_GAA(s(z0), less33_out_ag(x1, s(z0))) → INSERT1_IN_GAA(s(z0))
P68_IN_AGAA(s(T228)) → P50_IN_AGAA(T228)
P18_IN_GAAA(s(x0)) → U4_GAAA(s(x0), U1_ga(x0, less20_in_ga(x0)))
INSERT1_IN_GAA(s(z0)) → P43_IN_AGAA(s(z0))
U9_AGAA(s(z0), less33_out_ag(0, s(z0))) → INSERT1_IN_GAA(s(s(z0)))
U9_AGAA(s(z0), less33_out_ag(x1, s(z0))) → INSERT1_IN_GAA(s(s(z0)))
less33_in_ag(s(T95)) → less33_out_ag(0, s(T95))
less33_in_ag(s(T101)) → U2_ag(T101, less33_in_ag(T101))
less20_in_ga(0) → less20_out_ga(0)
less20_in_ga(s(T60)) → U1_ga(T60, less20_in_ga(T60))
U2_ag(T101, less33_out_ag(T102, T101)) → less33_out_ag(s(T102), s(T101))
U1_ga(T60, less20_out_ga(T60)) → less20_out_ga(s(T60))
less33_in_ag(x0)
less20_in_ga(x0)
U2_ag(x0, x1)
U1_ga(x0, x1)
U4_GAAA(0, less20_out_ga(0)) → INSERT1_IN_GAA(s(0))
U4_GAAA(s(z0), less20_out_ga(s(z0))) → INSERT1_IN_GAA(s(s(z0)))
P43_IN_AGAA(s(T124)) → INSERT1_IN_GAA(s(T124))
P43_IN_AGAA(s(T134)) → P50_IN_AGAA(T134)
P50_IN_AGAA(s(x0)) → U9_AGAA(s(x0), less33_out_ag(0, s(x0)))
INSERT1_IN_GAA(s(T40)) → P18_IN_GAAA(T40)
P18_IN_GAAA(0) → U4_GAAA(0, less20_out_ga(0))
INSERT1_IN_GAA(T206) → P68_IN_AGAA(T206)
P68_IN_AGAA(s(T218)) → INSERT1_IN_GAA(s(T218))
INSERT1_IN_GAA(s(T312)) → INSERT1_IN_GAA(s(T312))
INSERT1_IN_GAA(s(T322)) → P50_IN_AGAA(T322)
P50_IN_AGAA(s(x0)) → U9_AGAA(s(x0), U2_ag(x0, less33_in_ag(x0)))
INSERT1_IN_GAA(s(x0)) → U16_GAA(s(x0), less33_out_ag(0, s(x0)))
U16_GAA(s(z0), less33_out_ag(0, s(z0))) → INSERT1_IN_GAA(s(z0))
INSERT1_IN_GAA(s(x0)) → U16_GAA(s(x0), U2_ag(x0, less33_in_ag(x0)))
U16_GAA(s(z0), less33_out_ag(x1, s(z0))) → INSERT1_IN_GAA(s(z0))
P68_IN_AGAA(s(T228)) → P50_IN_AGAA(T228)
P18_IN_GAAA(s(x0)) → U4_GAAA(s(x0), U1_ga(x0, less20_in_ga(x0)))
INSERT1_IN_GAA(s(z0)) → P43_IN_AGAA(s(z0))
U9_AGAA(s(z0), less33_out_ag(0, s(z0))) → INSERT1_IN_GAA(s(s(z0)))
U9_AGAA(s(z0), less33_out_ag(x1, s(z0))) → INSERT1_IN_GAA(s(s(z0)))
U4_GAAA(0, less20_out_ga(0)) → INSERT1_IN_GAA(s(0))
U4_GAAA(s(z0), less20_out_ga(s(z0))) → INSERT1_IN_GAA(s(s(z0)))
less33_in_ag(s(T95)) → less33_out_ag(0, s(T95))
less33_in_ag(s(T101)) → U2_ag(T101, less33_in_ag(T101))
less20_in_ga(0) → less20_out_ga(0)
less20_in_ga(s(T60)) → U1_ga(T60, less20_in_ga(T60))
U2_ag(T101, less33_out_ag(T102, T101)) → less33_out_ag(s(T102), s(T101))
U1_ga(T60, less20_out_ga(T60)) → less20_out_ga(s(T60))
less33_in_ag(x0)
less20_in_ga(x0)
U2_ag(x0, x1)
U1_ga(x0, x1)
INSERT1_IN_GAA(s(z0)) → P68_IN_AGAA(s(z0))
INSERT1_IN_GAA(s(s(z0))) → P68_IN_AGAA(s(s(z0)))
INSERT1_IN_GAA(s(0)) → P68_IN_AGAA(s(0))
P43_IN_AGAA(s(T124)) → INSERT1_IN_GAA(s(T124))
P43_IN_AGAA(s(T134)) → P50_IN_AGAA(T134)
P50_IN_AGAA(s(x0)) → U9_AGAA(s(x0), less33_out_ag(0, s(x0)))
INSERT1_IN_GAA(s(T40)) → P18_IN_GAAA(T40)
P18_IN_GAAA(0) → U4_GAAA(0, less20_out_ga(0))
P68_IN_AGAA(s(T218)) → INSERT1_IN_GAA(s(T218))
INSERT1_IN_GAA(s(T312)) → INSERT1_IN_GAA(s(T312))
INSERT1_IN_GAA(s(T322)) → P50_IN_AGAA(T322)
P50_IN_AGAA(s(x0)) → U9_AGAA(s(x0), U2_ag(x0, less33_in_ag(x0)))
INSERT1_IN_GAA(s(x0)) → U16_GAA(s(x0), less33_out_ag(0, s(x0)))
U16_GAA(s(z0), less33_out_ag(0, s(z0))) → INSERT1_IN_GAA(s(z0))
INSERT1_IN_GAA(s(x0)) → U16_GAA(s(x0), U2_ag(x0, less33_in_ag(x0)))
U16_GAA(s(z0), less33_out_ag(x1, s(z0))) → INSERT1_IN_GAA(s(z0))
P68_IN_AGAA(s(T228)) → P50_IN_AGAA(T228)
P18_IN_GAAA(s(x0)) → U4_GAAA(s(x0), U1_ga(x0, less20_in_ga(x0)))
INSERT1_IN_GAA(s(z0)) → P43_IN_AGAA(s(z0))
U9_AGAA(s(z0), less33_out_ag(0, s(z0))) → INSERT1_IN_GAA(s(s(z0)))
U9_AGAA(s(z0), less33_out_ag(x1, s(z0))) → INSERT1_IN_GAA(s(s(z0)))
U4_GAAA(0, less20_out_ga(0)) → INSERT1_IN_GAA(s(0))
U4_GAAA(s(z0), less20_out_ga(s(z0))) → INSERT1_IN_GAA(s(s(z0)))
INSERT1_IN_GAA(s(z0)) → P68_IN_AGAA(s(z0))
INSERT1_IN_GAA(s(s(z0))) → P68_IN_AGAA(s(s(z0)))
INSERT1_IN_GAA(s(0)) → P68_IN_AGAA(s(0))
less33_in_ag(s(T95)) → less33_out_ag(0, s(T95))
less33_in_ag(s(T101)) → U2_ag(T101, less33_in_ag(T101))
less20_in_ga(0) → less20_out_ga(0)
less20_in_ga(s(T60)) → U1_ga(T60, less20_in_ga(T60))
U2_ag(T101, less33_out_ag(T102, T101)) → less33_out_ag(s(T102), s(T101))
U1_ga(T60, less20_out_ga(T60)) → less20_out_ga(s(T60))
less33_in_ag(x0)
less20_in_ga(x0)
U2_ag(x0, x1)
U1_ga(x0, x1)
P43_IN_AGAA(s(s(y_0))) → P50_IN_AGAA(s(y_0))
P43_IN_AGAA(s(T124)) → INSERT1_IN_GAA(s(T124))
P50_IN_AGAA(s(x0)) → U9_AGAA(s(x0), less33_out_ag(0, s(x0)))
INSERT1_IN_GAA(s(T40)) → P18_IN_GAAA(T40)
P18_IN_GAAA(0) → U4_GAAA(0, less20_out_ga(0))
P68_IN_AGAA(s(T218)) → INSERT1_IN_GAA(s(T218))
INSERT1_IN_GAA(s(T312)) → INSERT1_IN_GAA(s(T312))
INSERT1_IN_GAA(s(T322)) → P50_IN_AGAA(T322)
P50_IN_AGAA(s(x0)) → U9_AGAA(s(x0), U2_ag(x0, less33_in_ag(x0)))
INSERT1_IN_GAA(s(x0)) → U16_GAA(s(x0), less33_out_ag(0, s(x0)))
U16_GAA(s(z0), less33_out_ag(0, s(z0))) → INSERT1_IN_GAA(s(z0))
INSERT1_IN_GAA(s(x0)) → U16_GAA(s(x0), U2_ag(x0, less33_in_ag(x0)))
U16_GAA(s(z0), less33_out_ag(x1, s(z0))) → INSERT1_IN_GAA(s(z0))
P68_IN_AGAA(s(T228)) → P50_IN_AGAA(T228)
P18_IN_GAAA(s(x0)) → U4_GAAA(s(x0), U1_ga(x0, less20_in_ga(x0)))
INSERT1_IN_GAA(s(z0)) → P43_IN_AGAA(s(z0))
U9_AGAA(s(z0), less33_out_ag(0, s(z0))) → INSERT1_IN_GAA(s(s(z0)))
U9_AGAA(s(z0), less33_out_ag(x1, s(z0))) → INSERT1_IN_GAA(s(s(z0)))
U4_GAAA(0, less20_out_ga(0)) → INSERT1_IN_GAA(s(0))
U4_GAAA(s(z0), less20_out_ga(s(z0))) → INSERT1_IN_GAA(s(s(z0)))
INSERT1_IN_GAA(s(z0)) → P68_IN_AGAA(s(z0))
INSERT1_IN_GAA(s(s(z0))) → P68_IN_AGAA(s(s(z0)))
INSERT1_IN_GAA(s(0)) → P68_IN_AGAA(s(0))
P43_IN_AGAA(s(s(y_0))) → P50_IN_AGAA(s(y_0))
less33_in_ag(s(T95)) → less33_out_ag(0, s(T95))
less33_in_ag(s(T101)) → U2_ag(T101, less33_in_ag(T101))
less20_in_ga(0) → less20_out_ga(0)
less20_in_ga(s(T60)) → U1_ga(T60, less20_in_ga(T60))
U2_ag(T101, less33_out_ag(T102, T101)) → less33_out_ag(s(T102), s(T101))
U1_ga(T60, less20_out_ga(T60)) → less20_out_ga(s(T60))
less33_in_ag(x0)
less20_in_ga(x0)
U2_ag(x0, x1)
U1_ga(x0, x1)
INSERT1_IN_GAA(s(0)) → P18_IN_GAAA(0)
INSERT1_IN_GAA(s(s(y_0))) → P18_IN_GAAA(s(y_0))
P43_IN_AGAA(s(T124)) → INSERT1_IN_GAA(s(T124))
P50_IN_AGAA(s(x0)) → U9_AGAA(s(x0), less33_out_ag(0, s(x0)))
P18_IN_GAAA(0) → U4_GAAA(0, less20_out_ga(0))
P68_IN_AGAA(s(T218)) → INSERT1_IN_GAA(s(T218))
INSERT1_IN_GAA(s(T312)) → INSERT1_IN_GAA(s(T312))
INSERT1_IN_GAA(s(T322)) → P50_IN_AGAA(T322)
P50_IN_AGAA(s(x0)) → U9_AGAA(s(x0), U2_ag(x0, less33_in_ag(x0)))
INSERT1_IN_GAA(s(x0)) → U16_GAA(s(x0), less33_out_ag(0, s(x0)))
U16_GAA(s(z0), less33_out_ag(0, s(z0))) → INSERT1_IN_GAA(s(z0))
INSERT1_IN_GAA(s(x0)) → U16_GAA(s(x0), U2_ag(x0, less33_in_ag(x0)))
U16_GAA(s(z0), less33_out_ag(x1, s(z0))) → INSERT1_IN_GAA(s(z0))
P68_IN_AGAA(s(T228)) → P50_IN_AGAA(T228)
P18_IN_GAAA(s(x0)) → U4_GAAA(s(x0), U1_ga(x0, less20_in_ga(x0)))
INSERT1_IN_GAA(s(z0)) → P43_IN_AGAA(s(z0))
U9_AGAA(s(z0), less33_out_ag(0, s(z0))) → INSERT1_IN_GAA(s(s(z0)))
U9_AGAA(s(z0), less33_out_ag(x1, s(z0))) → INSERT1_IN_GAA(s(s(z0)))
U4_GAAA(0, less20_out_ga(0)) → INSERT1_IN_GAA(s(0))
U4_GAAA(s(z0), less20_out_ga(s(z0))) → INSERT1_IN_GAA(s(s(z0)))
INSERT1_IN_GAA(s(z0)) → P68_IN_AGAA(s(z0))
INSERT1_IN_GAA(s(s(z0))) → P68_IN_AGAA(s(s(z0)))
INSERT1_IN_GAA(s(0)) → P68_IN_AGAA(s(0))
P43_IN_AGAA(s(s(y_0))) → P50_IN_AGAA(s(y_0))
INSERT1_IN_GAA(s(0)) → P18_IN_GAAA(0)
INSERT1_IN_GAA(s(s(y_0))) → P18_IN_GAAA(s(y_0))
less33_in_ag(s(T95)) → less33_out_ag(0, s(T95))
less33_in_ag(s(T101)) → U2_ag(T101, less33_in_ag(T101))
less20_in_ga(0) → less20_out_ga(0)
less20_in_ga(s(T60)) → U1_ga(T60, less20_in_ga(T60))
U2_ag(T101, less33_out_ag(T102, T101)) → less33_out_ag(s(T102), s(T101))
U1_ga(T60, less20_out_ga(T60)) → less20_out_ga(s(T60))
less33_in_ag(x0)
less20_in_ga(x0)
U2_ag(x0, x1)
U1_ga(x0, x1)
INSERT1_IN_GAA(s(s(y_0))) → P50_IN_AGAA(s(y_0))
P43_IN_AGAA(s(T124)) → INSERT1_IN_GAA(s(T124))
P50_IN_AGAA(s(x0)) → U9_AGAA(s(x0), less33_out_ag(0, s(x0)))
P18_IN_GAAA(0) → U4_GAAA(0, less20_out_ga(0))
P68_IN_AGAA(s(T218)) → INSERT1_IN_GAA(s(T218))
INSERT1_IN_GAA(s(T312)) → INSERT1_IN_GAA(s(T312))
P50_IN_AGAA(s(x0)) → U9_AGAA(s(x0), U2_ag(x0, less33_in_ag(x0)))
INSERT1_IN_GAA(s(x0)) → U16_GAA(s(x0), less33_out_ag(0, s(x0)))
U16_GAA(s(z0), less33_out_ag(0, s(z0))) → INSERT1_IN_GAA(s(z0))
INSERT1_IN_GAA(s(x0)) → U16_GAA(s(x0), U2_ag(x0, less33_in_ag(x0)))
U16_GAA(s(z0), less33_out_ag(x1, s(z0))) → INSERT1_IN_GAA(s(z0))
P68_IN_AGAA(s(T228)) → P50_IN_AGAA(T228)
P18_IN_GAAA(s(x0)) → U4_GAAA(s(x0), U1_ga(x0, less20_in_ga(x0)))
INSERT1_IN_GAA(s(z0)) → P43_IN_AGAA(s(z0))
U9_AGAA(s(z0), less33_out_ag(0, s(z0))) → INSERT1_IN_GAA(s(s(z0)))
U9_AGAA(s(z0), less33_out_ag(x1, s(z0))) → INSERT1_IN_GAA(s(s(z0)))
U4_GAAA(0, less20_out_ga(0)) → INSERT1_IN_GAA(s(0))
U4_GAAA(s(z0), less20_out_ga(s(z0))) → INSERT1_IN_GAA(s(s(z0)))
INSERT1_IN_GAA(s(z0)) → P68_IN_AGAA(s(z0))
INSERT1_IN_GAA(s(s(z0))) → P68_IN_AGAA(s(s(z0)))
INSERT1_IN_GAA(s(0)) → P68_IN_AGAA(s(0))
P43_IN_AGAA(s(s(y_0))) → P50_IN_AGAA(s(y_0))
INSERT1_IN_GAA(s(0)) → P18_IN_GAAA(0)
INSERT1_IN_GAA(s(s(y_0))) → P18_IN_GAAA(s(y_0))
INSERT1_IN_GAA(s(s(y_0))) → P50_IN_AGAA(s(y_0))
less33_in_ag(s(T95)) → less33_out_ag(0, s(T95))
less33_in_ag(s(T101)) → U2_ag(T101, less33_in_ag(T101))
less20_in_ga(0) → less20_out_ga(0)
less20_in_ga(s(T60)) → U1_ga(T60, less20_in_ga(T60))
U2_ag(T101, less33_out_ag(T102, T101)) → less33_out_ag(s(T102), s(T101))
U1_ga(T60, less20_out_ga(T60)) → less20_out_ga(s(T60))
less33_in_ag(x0)
less20_in_ga(x0)
U2_ag(x0, x1)
U1_ga(x0, x1)
P68_IN_AGAA(s(s(y_0))) → P50_IN_AGAA(s(y_0))
P43_IN_AGAA(s(T124)) → INSERT1_IN_GAA(s(T124))
P50_IN_AGAA(s(x0)) → U9_AGAA(s(x0), less33_out_ag(0, s(x0)))
P18_IN_GAAA(0) → U4_GAAA(0, less20_out_ga(0))
P68_IN_AGAA(s(T218)) → INSERT1_IN_GAA(s(T218))
INSERT1_IN_GAA(s(T312)) → INSERT1_IN_GAA(s(T312))
P50_IN_AGAA(s(x0)) → U9_AGAA(s(x0), U2_ag(x0, less33_in_ag(x0)))
INSERT1_IN_GAA(s(x0)) → U16_GAA(s(x0), less33_out_ag(0, s(x0)))
U16_GAA(s(z0), less33_out_ag(0, s(z0))) → INSERT1_IN_GAA(s(z0))
INSERT1_IN_GAA(s(x0)) → U16_GAA(s(x0), U2_ag(x0, less33_in_ag(x0)))
U16_GAA(s(z0), less33_out_ag(x1, s(z0))) → INSERT1_IN_GAA(s(z0))
P18_IN_GAAA(s(x0)) → U4_GAAA(s(x0), U1_ga(x0, less20_in_ga(x0)))
INSERT1_IN_GAA(s(z0)) → P43_IN_AGAA(s(z0))
U9_AGAA(s(z0), less33_out_ag(0, s(z0))) → INSERT1_IN_GAA(s(s(z0)))
U9_AGAA(s(z0), less33_out_ag(x1, s(z0))) → INSERT1_IN_GAA(s(s(z0)))
U4_GAAA(0, less20_out_ga(0)) → INSERT1_IN_GAA(s(0))
U4_GAAA(s(z0), less20_out_ga(s(z0))) → INSERT1_IN_GAA(s(s(z0)))
INSERT1_IN_GAA(s(z0)) → P68_IN_AGAA(s(z0))
INSERT1_IN_GAA(s(s(z0))) → P68_IN_AGAA(s(s(z0)))
INSERT1_IN_GAA(s(0)) → P68_IN_AGAA(s(0))
P43_IN_AGAA(s(s(y_0))) → P50_IN_AGAA(s(y_0))
INSERT1_IN_GAA(s(0)) → P18_IN_GAAA(0)
INSERT1_IN_GAA(s(s(y_0))) → P18_IN_GAAA(s(y_0))
INSERT1_IN_GAA(s(s(y_0))) → P50_IN_AGAA(s(y_0))
P68_IN_AGAA(s(s(y_0))) → P50_IN_AGAA(s(y_0))
less33_in_ag(s(T95)) → less33_out_ag(0, s(T95))
less33_in_ag(s(T101)) → U2_ag(T101, less33_in_ag(T101))
less20_in_ga(0) → less20_out_ga(0)
less20_in_ga(s(T60)) → U1_ga(T60, less20_in_ga(T60))
U2_ag(T101, less33_out_ag(T102, T101)) → less33_out_ag(s(T102), s(T101))
U1_ga(T60, less20_out_ga(T60)) → less20_out_ga(s(T60))
less33_in_ag(x0)
less20_in_ga(x0)
U2_ag(x0, x1)
U1_ga(x0, x1)
INSERT1_IN_GAA(0) → INSERT1_IN_GAA(0)
less33_in_ag(s(T95)) → less33_out_ag(0, s(T95))
less33_in_ag(s(T101)) → U2_ag(T101, less33_in_ag(T101))
less20_in_ga(0) → less20_out_ga(0)
less20_in_ga(s(T60)) → U1_ga(T60, less20_in_ga(T60))
U2_ag(T101, less33_out_ag(T102, T101)) → less33_out_ag(s(T102), s(T101))
U1_ga(T60, less20_out_ga(T60)) → less20_out_ga(s(T60))
less33_in_ag(x0)
less20_in_ga(x0)
U2_ag(x0, x1)
U1_ga(x0, x1)
INSERT1_IN_GAA(0) → INSERT1_IN_GAA(0)
less33_in_ag(x0)
less20_in_ga(x0)
U2_ag(x0, x1)
U1_ga(x0, x1)
less33_in_ag(x0)
less20_in_ga(x0)
U2_ag(x0, x1)
U1_ga(x0, x1)
INSERT1_IN_GAA(0) → INSERT1_IN_GAA(0)