0 Prolog
↳1 PrologToPrologProblemTransformerProof (⇐)
↳2 Prolog
↳3 PrologToPiTRSProof (⇐)
↳4 PiTRS
↳5 DependencyPairsProof (⇔)
↳6 PiDP
↳7 DependencyGraphProof (⇔)
↳8 AND
↳9 PiDP
↳10 UsableRulesProof (⇔)
↳11 PiDP
↳12 PiDPToQDPProof (⇐)
↳13 QDP
↳14 QDPSizeChangeProof (⇔)
↳15 YES
↳16 PiDP
↳17 UsableRulesProof (⇔)
↳18 PiDP
↳19 PiDPToQDPProof (⇐)
↳20 QDP
↳21 QDPSizeChangeProof (⇔)
↳22 YES
↳23 PiDP
↳24 UsableRulesProof (⇔)
↳25 PiDP
↳26 PiDPToQDPProof (⇐)
↳27 QDP
↳28 NonTerminationProof (⇔)
↳29 NO
↳30 PiDP
↳31 UsableRulesProof (⇔)
↳32 PiDP
↳33 PiDPToQDPProof (⇐)
↳34 QDP
↳35 Narrowing (⇐)
↳36 QDP
↳37 Narrowing (⇐)
↳38 QDP
↳39 NonTerminationProof (⇔)
↳40 NO
↳41 PrologToPiTRSProof (⇐)
↳42 PiTRS
↳43 DependencyPairsProof (⇔)
↳44 PiDP
↳45 DependencyGraphProof (⇔)
↳46 AND
↳47 PiDP
↳48 UsableRulesProof (⇔)
↳49 PiDP
↳50 PiDPToQDPProof (⇐)
↳51 QDP
↳52 QDPSizeChangeProof (⇔)
↳53 YES
↳54 PiDP
↳55 UsableRulesProof (⇔)
↳56 PiDP
↳57 PiDPToQDPProof (⇐)
↳58 QDP
↳59 QDPSizeChangeProof (⇔)
↳60 YES
↳61 PiDP
↳62 UsableRulesProof (⇔)
↳63 PiDP
↳64 PiDPToQDPProof (⇐)
↳65 QDP
↳66 NonTerminationProof (⇔)
↳67 NO
↳68 PiDP
↳69 UsableRulesProof (⇔)
↳70 PiDP
↳71 PiDPToQDPProof (⇐)
↳72 QDP
↳73 Narrowing (⇐)
↳74 QDP
↳75 Narrowing (⇐)
↳76 QDP
↳77 NonTerminationProof (⇔)
↳78 NO
in_order1_in_ag(void, []) → in_order1_out_ag(void, [])
in_order1_in_ag(tree(T13, void, T12), []) → U9_ag(T13, T12, in_order13_in_aa(T12, X10))
in_order13_in_aa(void, []) → in_order13_out_aa(void, [])
in_order13_in_aa(tree(T27, T25, T26), X33) → U1_aa(T27, T25, T26, X33, in_order13_in_aa(T25, X31))
in_order13_in_aa(tree(T30, T25, T29), X33) → U2_aa(T30, T25, T29, X33, in_order13_in_aa(T25, T28))
in_order13_in_aa(tree(T33, T25, T29), X33) → U4_aa(T33, T25, T29, X33, in_order13_in_aa(T25, T32))
U4_aa(T33, T25, T29, X33, in_order13_out_aa(T25, T32)) → U5_aa(T33, T25, T29, X33, T32, in_order13_in_aa(T29, T31))
U5_aa(T33, T25, T29, X33, T32, in_order13_out_aa(T29, T31)) → U6_aa(T33, T25, T29, X33, app26_in_aaaa(T32, T33, T31, X33))
app26_in_aaaa([], T46, T47, .(T46, T47)) → app26_out_aaaa([], T46, T47, .(T46, T47))
app26_in_aaaa(.(T56, T60), T61, T62, .(T56, X60)) → U7_aaaa(T56, T60, T61, T62, X60, app26_in_aaaa(T60, T61, T62, X60))
U7_aaaa(T56, T60, T61, T62, X60, app26_out_aaaa(T60, T61, T62, X60)) → app26_out_aaaa(.(T56, T60), T61, T62, .(T56, X60))
U6_aa(T33, T25, T29, X33, app26_out_aaaa(T32, T33, T31, X33)) → in_order13_out_aa(tree(T33, T25, T29), X33)
U2_aa(T30, T25, T29, X33, in_order13_out_aa(T25, T28)) → U3_aa(T30, T25, T29, X33, in_order13_in_aa(T29, X32))
U3_aa(T30, T25, T29, X33, in_order13_out_aa(T29, X32)) → in_order13_out_aa(tree(T30, T25, T29), X33)
U1_aa(T27, T25, T26, X33, in_order13_out_aa(T25, X31)) → in_order13_out_aa(tree(T27, T25, T26), X33)
U9_ag(T13, T12, in_order13_out_aa(T12, X10)) → in_order1_out_ag(tree(T13, void, T12), [])
in_order1_in_ag(tree(T86, tree(T84, T82, T83), T85), []) → U10_ag(T86, T84, T82, T83, T85, in_order13_in_aa(T82, X94))
U10_ag(T86, T84, T82, T83, T85, in_order13_out_aa(T82, X94)) → in_order1_out_ag(tree(T86, tree(T84, T82, T83), T85), [])
in_order1_in_ag(tree(T91, tree(T89, T82, T88), T90), []) → U11_ag(T91, T89, T82, T88, T90, in_order13_in_aa(T82, T87))
U11_ag(T91, T89, T82, T88, T90, in_order13_out_aa(T82, T87)) → U12_ag(T91, T89, T82, T88, T90, in_order13_in_aa(T88, X95))
U12_ag(T91, T89, T82, T88, T90, in_order13_out_aa(T88, X95)) → in_order1_out_ag(tree(T91, tree(T89, T82, T88), T90), [])
in_order1_in_ag(tree(T96, tree(T94, T82, T88), T95), []) → U13_ag(T96, T94, T82, T88, T95, in_order13_in_aa(T82, T93))
U13_ag(T96, T94, T82, T88, T95, in_order13_out_aa(T82, T93)) → U14_ag(T96, T94, T82, T88, T95, T93, in_order13_in_aa(T88, T92))
U14_ag(T96, T94, T82, T88, T95, T93, in_order13_out_aa(T88, T92)) → U15_ag(T96, T94, T82, T88, T95, app26_in_aaaa(T93, T94, T92, X96))
U15_ag(T96, T94, T82, T88, T95, app26_out_aaaa(T93, T94, T92, X96)) → in_order1_out_ag(tree(T96, tree(T94, T82, T88), T95), [])
in_order1_in_ag(tree(T103, tree(T94, T82, T88), T102), []) → U16_ag(T103, T94, T82, T88, T102, in_order13_in_aa(T82, T93))
U16_ag(T103, T94, T82, T88, T102, in_order13_out_aa(T82, T93)) → U17_ag(T103, T94, T82, T88, T102, T93, in_order13_in_aa(T88, T92))
U17_ag(T103, T94, T82, T88, T102, T93, in_order13_out_aa(T88, T92)) → U18_ag(T103, T94, T82, T88, T102, app26_in_aaaa(T93, T94, T92, T101))
U18_ag(T103, T94, T82, T88, T102, app26_out_aaaa(T93, T94, T92, T101)) → U19_ag(T103, T94, T82, T88, T102, in_order13_in_aa(T102, X10))
U19_ag(T103, T94, T82, T88, T102, in_order13_out_aa(T102, X10)) → in_order1_out_ag(tree(T103, tree(T94, T82, T88), T102), [])
in_order1_in_ag(tree(T137, void, T136), T132) → U20_ag(T137, T136, T132, in_order13_in_aa(T136, X125))
U20_ag(T137, T136, T132, in_order13_out_aa(T136, X125)) → in_order1_out_ag(tree(T137, void, T136), T132)
in_order1_in_ag(tree(T153, void, T136), .(T153, T154)) → U21_ag(T153, T136, T154, in_order13_in_ag(T136, T154))
in_order13_in_ag(void, []) → in_order13_out_ag(void, [])
in_order13_in_ag(tree(T27, T25, T26), X33) → U1_ag(T27, T25, T26, X33, in_order13_in_aa(T25, X31))
U1_ag(T27, T25, T26, X33, in_order13_out_aa(T25, X31)) → in_order13_out_ag(tree(T27, T25, T26), X33)
in_order13_in_ag(tree(T30, T25, T29), X33) → U2_ag(T30, T25, T29, X33, in_order13_in_aa(T25, T28))
U2_ag(T30, T25, T29, X33, in_order13_out_aa(T25, T28)) → U3_ag(T30, T25, T29, X33, in_order13_in_aa(T29, X32))
U3_ag(T30, T25, T29, X33, in_order13_out_aa(T29, X32)) → in_order13_out_ag(tree(T30, T25, T29), X33)
in_order13_in_ag(tree(T33, T25, T29), X33) → U4_ag(T33, T25, T29, X33, in_order13_in_aa(T25, T32))
U4_ag(T33, T25, T29, X33, in_order13_out_aa(T25, T32)) → U5_ag(T33, T25, T29, X33, T32, in_order13_in_aa(T29, T31))
U5_ag(T33, T25, T29, X33, T32, in_order13_out_aa(T29, T31)) → U6_ag(T33, T25, T29, X33, app26_in_aaag(T32, T33, T31, X33))
app26_in_aaag([], T46, T47, .(T46, T47)) → app26_out_aaag([], T46, T47, .(T46, T47))
app26_in_aaag(.(T56, T60), T61, T62, .(T56, X60)) → U7_aaag(T56, T60, T61, T62, X60, app26_in_aaag(T60, T61, T62, X60))
U7_aaag(T56, T60, T61, T62, X60, app26_out_aaag(T60, T61, T62, X60)) → app26_out_aaag(.(T56, T60), T61, T62, .(T56, X60))
U6_ag(T33, T25, T29, X33, app26_out_aaag(T32, T33, T31, X33)) → in_order13_out_ag(tree(T33, T25, T29), X33)
U21_ag(T153, T136, T154, in_order13_out_ag(T136, T154)) → in_order1_out_ag(tree(T153, void, T136), .(T153, T154))
in_order1_in_ag(tree(T168, tree(T166, T164, T165), T167), T132) → U22_ag(T168, T166, T164, T165, T167, T132, in_order13_in_aa(T164, X158))
U22_ag(T168, T166, T164, T165, T167, T132, in_order13_out_aa(T164, X158)) → in_order1_out_ag(tree(T168, tree(T166, T164, T165), T167), T132)
in_order1_in_ag(tree(T173, tree(T171, T164, T170), T172), T132) → U23_ag(T173, T171, T164, T170, T172, T132, in_order13_in_aa(T164, T169))
U23_ag(T173, T171, T164, T170, T172, T132, in_order13_out_aa(T164, T169)) → U24_ag(T173, T171, T164, T170, T172, T132, in_order13_in_aa(T170, X159))
U24_ag(T173, T171, T164, T170, T172, T132, in_order13_out_aa(T170, X159)) → in_order1_out_ag(tree(T173, tree(T171, T164, T170), T172), T132)
in_order1_in_ag(tree(T179, tree(T177, T164, T170), T178), T132) → U25_ag(T179, T177, T164, T170, T178, T132, in_order13_in_aa(T164, T176))
U25_ag(T179, T177, T164, T170, T178, T132, in_order13_out_aa(T164, T176)) → U26_ag(T179, T177, T164, T170, T178, T132, T176, in_order13_in_aa(T170, T175))
U26_ag(T179, T177, T164, T170, T178, T132, T176, in_order13_out_aa(T170, T175)) → U27_ag(T179, T177, T164, T170, T178, T132, app26_in_aaaa(T176, T177, T175, X160))
U27_ag(T179, T177, T164, T170, T178, T132, app26_out_aaaa(T176, T177, T175, X160)) → in_order1_out_ag(tree(T179, tree(T177, T164, T170), T178), T132)
in_order1_in_ag(tree(T187, tree(T177, T164, T170), T186), T132) → U28_ag(T187, T177, T164, T170, T186, T132, in_order13_in_aa(T164, T176))
U28_ag(T187, T177, T164, T170, T186, T132, in_order13_out_aa(T164, T176)) → U29_ag(T187, T177, T164, T170, T186, T132, T176, in_order13_in_aa(T170, T175))
U29_ag(T187, T177, T164, T170, T186, T132, T176, in_order13_out_aa(T170, T175)) → U30_ag(T187, T177, T164, T170, T186, T132, app26_in_aaaa(T176, T177, T175, T185))
U30_ag(T187, T177, T164, T170, T186, T132, app26_out_aaaa(T176, T177, T175, T185)) → U31_ag(T187, T177, T164, T170, T186, T132, in_order13_in_aa(T186, X125))
U31_ag(T187, T177, T164, T170, T186, T132, in_order13_out_aa(T186, X125)) → in_order1_out_ag(tree(T187, tree(T177, T164, T170), T186), T132)
in_order1_in_ag(tree(T209, tree(T177, T164, T170), T186), .(T209, T210)) → U32_ag(T209, T177, T164, T170, T186, T210, in_order13_in_aa(T164, T176))
U32_ag(T209, T177, T164, T170, T186, T210, in_order13_out_aa(T164, T176)) → U33_ag(T209, T177, T164, T170, T186, T210, T176, in_order13_in_aa(T170, T175))
U33_ag(T209, T177, T164, T170, T186, T210, T176, in_order13_out_aa(T170, T175)) → U34_ag(T209, T177, T164, T170, T186, T210, app26_in_aaag(T176, T177, T175, []))
U34_ag(T209, T177, T164, T170, T186, T210, app26_out_aaag(T176, T177, T175, [])) → U35_ag(T209, T177, T164, T170, T186, T210, in_order13_in_ag(T186, T210))
U35_ag(T209, T177, T164, T170, T186, T210, in_order13_out_ag(T186, T210)) → in_order1_out_ag(tree(T209, tree(T177, T164, T170), T186), .(T209, T210))
in_order1_in_ag(tree(T227, tree(T177, T164, T170), T186), .(T221, T225)) → U36_ag(T227, T177, T164, T170, T186, T221, T225, in_order13_in_aa(T164, T176))
U36_ag(T227, T177, T164, T170, T186, T221, T225, in_order13_out_aa(T164, T176)) → U37_ag(T227, T177, T164, T170, T186, T221, T225, T176, in_order13_in_aa(T170, T175))
U37_ag(T227, T177, T164, T170, T186, T221, T225, T176, in_order13_out_aa(T170, T175)) → U38_ag(T227, T177, T164, T170, T186, T221, T225, app26_in_aaaa(T176, T177, T175, .(T221, T226)))
U38_ag(T227, T177, T164, T170, T186, T221, T225, app26_out_aaaa(T176, T177, T175, .(T221, T226))) → U39_ag(T227, T177, T164, T170, T186, T221, T225, T226, in_order13_in_aa(T186, T228))
U39_ag(T227, T177, T164, T170, T186, T221, T225, T226, in_order13_out_aa(T186, T228)) → U40_ag(T227, T177, T164, T170, T186, T221, T225, app83_in_aaag(T226, T227, T228, T225))
app83_in_aaag([], T241, T242, .(T241, T242)) → app83_out_aaag([], T241, T242, .(T241, T242))
app83_in_aaag(.(T253, T258), T259, T260, .(T253, T257)) → U8_aaag(T253, T258, T259, T260, T257, app83_in_aaag(T258, T259, T260, T257))
U8_aaag(T253, T258, T259, T260, T257, app83_out_aaag(T258, T259, T260, T257)) → app83_out_aaag(.(T253, T258), T259, T260, .(T253, T257))
U40_ag(T227, T177, T164, T170, T186, T221, T225, app83_out_aaag(T226, T227, T228, T225)) → in_order1_out_ag(tree(T227, tree(T177, T164, T170), T186), .(T221, T225))
Infinitary Constructor Rewriting Termination of PiTRS implies Termination of Prolog
in_order1_in_ag(void, []) → in_order1_out_ag(void, [])
in_order1_in_ag(tree(T13, void, T12), []) → U9_ag(T13, T12, in_order13_in_aa(T12, X10))
in_order13_in_aa(void, []) → in_order13_out_aa(void, [])
in_order13_in_aa(tree(T27, T25, T26), X33) → U1_aa(T27, T25, T26, X33, in_order13_in_aa(T25, X31))
in_order13_in_aa(tree(T30, T25, T29), X33) → U2_aa(T30, T25, T29, X33, in_order13_in_aa(T25, T28))
in_order13_in_aa(tree(T33, T25, T29), X33) → U4_aa(T33, T25, T29, X33, in_order13_in_aa(T25, T32))
U4_aa(T33, T25, T29, X33, in_order13_out_aa(T25, T32)) → U5_aa(T33, T25, T29, X33, T32, in_order13_in_aa(T29, T31))
U5_aa(T33, T25, T29, X33, T32, in_order13_out_aa(T29, T31)) → U6_aa(T33, T25, T29, X33, app26_in_aaaa(T32, T33, T31, X33))
app26_in_aaaa([], T46, T47, .(T46, T47)) → app26_out_aaaa([], T46, T47, .(T46, T47))
app26_in_aaaa(.(T56, T60), T61, T62, .(T56, X60)) → U7_aaaa(T56, T60, T61, T62, X60, app26_in_aaaa(T60, T61, T62, X60))
U7_aaaa(T56, T60, T61, T62, X60, app26_out_aaaa(T60, T61, T62, X60)) → app26_out_aaaa(.(T56, T60), T61, T62, .(T56, X60))
U6_aa(T33, T25, T29, X33, app26_out_aaaa(T32, T33, T31, X33)) → in_order13_out_aa(tree(T33, T25, T29), X33)
U2_aa(T30, T25, T29, X33, in_order13_out_aa(T25, T28)) → U3_aa(T30, T25, T29, X33, in_order13_in_aa(T29, X32))
U3_aa(T30, T25, T29, X33, in_order13_out_aa(T29, X32)) → in_order13_out_aa(tree(T30, T25, T29), X33)
U1_aa(T27, T25, T26, X33, in_order13_out_aa(T25, X31)) → in_order13_out_aa(tree(T27, T25, T26), X33)
U9_ag(T13, T12, in_order13_out_aa(T12, X10)) → in_order1_out_ag(tree(T13, void, T12), [])
in_order1_in_ag(tree(T86, tree(T84, T82, T83), T85), []) → U10_ag(T86, T84, T82, T83, T85, in_order13_in_aa(T82, X94))
U10_ag(T86, T84, T82, T83, T85, in_order13_out_aa(T82, X94)) → in_order1_out_ag(tree(T86, tree(T84, T82, T83), T85), [])
in_order1_in_ag(tree(T91, tree(T89, T82, T88), T90), []) → U11_ag(T91, T89, T82, T88, T90, in_order13_in_aa(T82, T87))
U11_ag(T91, T89, T82, T88, T90, in_order13_out_aa(T82, T87)) → U12_ag(T91, T89, T82, T88, T90, in_order13_in_aa(T88, X95))
U12_ag(T91, T89, T82, T88, T90, in_order13_out_aa(T88, X95)) → in_order1_out_ag(tree(T91, tree(T89, T82, T88), T90), [])
in_order1_in_ag(tree(T96, tree(T94, T82, T88), T95), []) → U13_ag(T96, T94, T82, T88, T95, in_order13_in_aa(T82, T93))
U13_ag(T96, T94, T82, T88, T95, in_order13_out_aa(T82, T93)) → U14_ag(T96, T94, T82, T88, T95, T93, in_order13_in_aa(T88, T92))
U14_ag(T96, T94, T82, T88, T95, T93, in_order13_out_aa(T88, T92)) → U15_ag(T96, T94, T82, T88, T95, app26_in_aaaa(T93, T94, T92, X96))
U15_ag(T96, T94, T82, T88, T95, app26_out_aaaa(T93, T94, T92, X96)) → in_order1_out_ag(tree(T96, tree(T94, T82, T88), T95), [])
in_order1_in_ag(tree(T103, tree(T94, T82, T88), T102), []) → U16_ag(T103, T94, T82, T88, T102, in_order13_in_aa(T82, T93))
U16_ag(T103, T94, T82, T88, T102, in_order13_out_aa(T82, T93)) → U17_ag(T103, T94, T82, T88, T102, T93, in_order13_in_aa(T88, T92))
U17_ag(T103, T94, T82, T88, T102, T93, in_order13_out_aa(T88, T92)) → U18_ag(T103, T94, T82, T88, T102, app26_in_aaaa(T93, T94, T92, T101))
U18_ag(T103, T94, T82, T88, T102, app26_out_aaaa(T93, T94, T92, T101)) → U19_ag(T103, T94, T82, T88, T102, in_order13_in_aa(T102, X10))
U19_ag(T103, T94, T82, T88, T102, in_order13_out_aa(T102, X10)) → in_order1_out_ag(tree(T103, tree(T94, T82, T88), T102), [])
in_order1_in_ag(tree(T137, void, T136), T132) → U20_ag(T137, T136, T132, in_order13_in_aa(T136, X125))
U20_ag(T137, T136, T132, in_order13_out_aa(T136, X125)) → in_order1_out_ag(tree(T137, void, T136), T132)
in_order1_in_ag(tree(T153, void, T136), .(T153, T154)) → U21_ag(T153, T136, T154, in_order13_in_ag(T136, T154))
in_order13_in_ag(void, []) → in_order13_out_ag(void, [])
in_order13_in_ag(tree(T27, T25, T26), X33) → U1_ag(T27, T25, T26, X33, in_order13_in_aa(T25, X31))
U1_ag(T27, T25, T26, X33, in_order13_out_aa(T25, X31)) → in_order13_out_ag(tree(T27, T25, T26), X33)
in_order13_in_ag(tree(T30, T25, T29), X33) → U2_ag(T30, T25, T29, X33, in_order13_in_aa(T25, T28))
U2_ag(T30, T25, T29, X33, in_order13_out_aa(T25, T28)) → U3_ag(T30, T25, T29, X33, in_order13_in_aa(T29, X32))
U3_ag(T30, T25, T29, X33, in_order13_out_aa(T29, X32)) → in_order13_out_ag(tree(T30, T25, T29), X33)
in_order13_in_ag(tree(T33, T25, T29), X33) → U4_ag(T33, T25, T29, X33, in_order13_in_aa(T25, T32))
U4_ag(T33, T25, T29, X33, in_order13_out_aa(T25, T32)) → U5_ag(T33, T25, T29, X33, T32, in_order13_in_aa(T29, T31))
U5_ag(T33, T25, T29, X33, T32, in_order13_out_aa(T29, T31)) → U6_ag(T33, T25, T29, X33, app26_in_aaag(T32, T33, T31, X33))
app26_in_aaag([], T46, T47, .(T46, T47)) → app26_out_aaag([], T46, T47, .(T46, T47))
app26_in_aaag(.(T56, T60), T61, T62, .(T56, X60)) → U7_aaag(T56, T60, T61, T62, X60, app26_in_aaag(T60, T61, T62, X60))
U7_aaag(T56, T60, T61, T62, X60, app26_out_aaag(T60, T61, T62, X60)) → app26_out_aaag(.(T56, T60), T61, T62, .(T56, X60))
U6_ag(T33, T25, T29, X33, app26_out_aaag(T32, T33, T31, X33)) → in_order13_out_ag(tree(T33, T25, T29), X33)
U21_ag(T153, T136, T154, in_order13_out_ag(T136, T154)) → in_order1_out_ag(tree(T153, void, T136), .(T153, T154))
in_order1_in_ag(tree(T168, tree(T166, T164, T165), T167), T132) → U22_ag(T168, T166, T164, T165, T167, T132, in_order13_in_aa(T164, X158))
U22_ag(T168, T166, T164, T165, T167, T132, in_order13_out_aa(T164, X158)) → in_order1_out_ag(tree(T168, tree(T166, T164, T165), T167), T132)
in_order1_in_ag(tree(T173, tree(T171, T164, T170), T172), T132) → U23_ag(T173, T171, T164, T170, T172, T132, in_order13_in_aa(T164, T169))
U23_ag(T173, T171, T164, T170, T172, T132, in_order13_out_aa(T164, T169)) → U24_ag(T173, T171, T164, T170, T172, T132, in_order13_in_aa(T170, X159))
U24_ag(T173, T171, T164, T170, T172, T132, in_order13_out_aa(T170, X159)) → in_order1_out_ag(tree(T173, tree(T171, T164, T170), T172), T132)
in_order1_in_ag(tree(T179, tree(T177, T164, T170), T178), T132) → U25_ag(T179, T177, T164, T170, T178, T132, in_order13_in_aa(T164, T176))
U25_ag(T179, T177, T164, T170, T178, T132, in_order13_out_aa(T164, T176)) → U26_ag(T179, T177, T164, T170, T178, T132, T176, in_order13_in_aa(T170, T175))
U26_ag(T179, T177, T164, T170, T178, T132, T176, in_order13_out_aa(T170, T175)) → U27_ag(T179, T177, T164, T170, T178, T132, app26_in_aaaa(T176, T177, T175, X160))
U27_ag(T179, T177, T164, T170, T178, T132, app26_out_aaaa(T176, T177, T175, X160)) → in_order1_out_ag(tree(T179, tree(T177, T164, T170), T178), T132)
in_order1_in_ag(tree(T187, tree(T177, T164, T170), T186), T132) → U28_ag(T187, T177, T164, T170, T186, T132, in_order13_in_aa(T164, T176))
U28_ag(T187, T177, T164, T170, T186, T132, in_order13_out_aa(T164, T176)) → U29_ag(T187, T177, T164, T170, T186, T132, T176, in_order13_in_aa(T170, T175))
U29_ag(T187, T177, T164, T170, T186, T132, T176, in_order13_out_aa(T170, T175)) → U30_ag(T187, T177, T164, T170, T186, T132, app26_in_aaaa(T176, T177, T175, T185))
U30_ag(T187, T177, T164, T170, T186, T132, app26_out_aaaa(T176, T177, T175, T185)) → U31_ag(T187, T177, T164, T170, T186, T132, in_order13_in_aa(T186, X125))
U31_ag(T187, T177, T164, T170, T186, T132, in_order13_out_aa(T186, X125)) → in_order1_out_ag(tree(T187, tree(T177, T164, T170), T186), T132)
in_order1_in_ag(tree(T209, tree(T177, T164, T170), T186), .(T209, T210)) → U32_ag(T209, T177, T164, T170, T186, T210, in_order13_in_aa(T164, T176))
U32_ag(T209, T177, T164, T170, T186, T210, in_order13_out_aa(T164, T176)) → U33_ag(T209, T177, T164, T170, T186, T210, T176, in_order13_in_aa(T170, T175))
U33_ag(T209, T177, T164, T170, T186, T210, T176, in_order13_out_aa(T170, T175)) → U34_ag(T209, T177, T164, T170, T186, T210, app26_in_aaag(T176, T177, T175, []))
U34_ag(T209, T177, T164, T170, T186, T210, app26_out_aaag(T176, T177, T175, [])) → U35_ag(T209, T177, T164, T170, T186, T210, in_order13_in_ag(T186, T210))
U35_ag(T209, T177, T164, T170, T186, T210, in_order13_out_ag(T186, T210)) → in_order1_out_ag(tree(T209, tree(T177, T164, T170), T186), .(T209, T210))
in_order1_in_ag(tree(T227, tree(T177, T164, T170), T186), .(T221, T225)) → U36_ag(T227, T177, T164, T170, T186, T221, T225, in_order13_in_aa(T164, T176))
U36_ag(T227, T177, T164, T170, T186, T221, T225, in_order13_out_aa(T164, T176)) → U37_ag(T227, T177, T164, T170, T186, T221, T225, T176, in_order13_in_aa(T170, T175))
U37_ag(T227, T177, T164, T170, T186, T221, T225, T176, in_order13_out_aa(T170, T175)) → U38_ag(T227, T177, T164, T170, T186, T221, T225, app26_in_aaaa(T176, T177, T175, .(T221, T226)))
U38_ag(T227, T177, T164, T170, T186, T221, T225, app26_out_aaaa(T176, T177, T175, .(T221, T226))) → U39_ag(T227, T177, T164, T170, T186, T221, T225, T226, in_order13_in_aa(T186, T228))
U39_ag(T227, T177, T164, T170, T186, T221, T225, T226, in_order13_out_aa(T186, T228)) → U40_ag(T227, T177, T164, T170, T186, T221, T225, app83_in_aaag(T226, T227, T228, T225))
app83_in_aaag([], T241, T242, .(T241, T242)) → app83_out_aaag([], T241, T242, .(T241, T242))
app83_in_aaag(.(T253, T258), T259, T260, .(T253, T257)) → U8_aaag(T253, T258, T259, T260, T257, app83_in_aaag(T258, T259, T260, T257))
U8_aaag(T253, T258, T259, T260, T257, app83_out_aaag(T258, T259, T260, T257)) → app83_out_aaag(.(T253, T258), T259, T260, .(T253, T257))
U40_ag(T227, T177, T164, T170, T186, T221, T225, app83_out_aaag(T226, T227, T228, T225)) → in_order1_out_ag(tree(T227, tree(T177, T164, T170), T186), .(T221, T225))
IN_ORDER1_IN_AG(tree(T13, void, T12), []) → U9_AG(T13, T12, in_order13_in_aa(T12, X10))
IN_ORDER1_IN_AG(tree(T13, void, T12), []) → IN_ORDER13_IN_AA(T12, X10)
IN_ORDER13_IN_AA(tree(T27, T25, T26), X33) → U1_AA(T27, T25, T26, X33, in_order13_in_aa(T25, X31))
IN_ORDER13_IN_AA(tree(T27, T25, T26), X33) → IN_ORDER13_IN_AA(T25, X31)
IN_ORDER13_IN_AA(tree(T30, T25, T29), X33) → U2_AA(T30, T25, T29, X33, in_order13_in_aa(T25, T28))
IN_ORDER13_IN_AA(tree(T33, T25, T29), X33) → U4_AA(T33, T25, T29, X33, in_order13_in_aa(T25, T32))
U4_AA(T33, T25, T29, X33, in_order13_out_aa(T25, T32)) → U5_AA(T33, T25, T29, X33, T32, in_order13_in_aa(T29, T31))
U4_AA(T33, T25, T29, X33, in_order13_out_aa(T25, T32)) → IN_ORDER13_IN_AA(T29, T31)
U5_AA(T33, T25, T29, X33, T32, in_order13_out_aa(T29, T31)) → U6_AA(T33, T25, T29, X33, app26_in_aaaa(T32, T33, T31, X33))
U5_AA(T33, T25, T29, X33, T32, in_order13_out_aa(T29, T31)) → APP26_IN_AAAA(T32, T33, T31, X33)
APP26_IN_AAAA(.(T56, T60), T61, T62, .(T56, X60)) → U7_AAAA(T56, T60, T61, T62, X60, app26_in_aaaa(T60, T61, T62, X60))
APP26_IN_AAAA(.(T56, T60), T61, T62, .(T56, X60)) → APP26_IN_AAAA(T60, T61, T62, X60)
U2_AA(T30, T25, T29, X33, in_order13_out_aa(T25, T28)) → U3_AA(T30, T25, T29, X33, in_order13_in_aa(T29, X32))
U2_AA(T30, T25, T29, X33, in_order13_out_aa(T25, T28)) → IN_ORDER13_IN_AA(T29, X32)
IN_ORDER1_IN_AG(tree(T86, tree(T84, T82, T83), T85), []) → U10_AG(T86, T84, T82, T83, T85, in_order13_in_aa(T82, X94))
IN_ORDER1_IN_AG(tree(T86, tree(T84, T82, T83), T85), []) → IN_ORDER13_IN_AA(T82, X94)
IN_ORDER1_IN_AG(tree(T91, tree(T89, T82, T88), T90), []) → U11_AG(T91, T89, T82, T88, T90, in_order13_in_aa(T82, T87))
U11_AG(T91, T89, T82, T88, T90, in_order13_out_aa(T82, T87)) → U12_AG(T91, T89, T82, T88, T90, in_order13_in_aa(T88, X95))
U11_AG(T91, T89, T82, T88, T90, in_order13_out_aa(T82, T87)) → IN_ORDER13_IN_AA(T88, X95)
IN_ORDER1_IN_AG(tree(T96, tree(T94, T82, T88), T95), []) → U13_AG(T96, T94, T82, T88, T95, in_order13_in_aa(T82, T93))
U13_AG(T96, T94, T82, T88, T95, in_order13_out_aa(T82, T93)) → U14_AG(T96, T94, T82, T88, T95, T93, in_order13_in_aa(T88, T92))
U13_AG(T96, T94, T82, T88, T95, in_order13_out_aa(T82, T93)) → IN_ORDER13_IN_AA(T88, T92)
U14_AG(T96, T94, T82, T88, T95, T93, in_order13_out_aa(T88, T92)) → U15_AG(T96, T94, T82, T88, T95, app26_in_aaaa(T93, T94, T92, X96))
U14_AG(T96, T94, T82, T88, T95, T93, in_order13_out_aa(T88, T92)) → APP26_IN_AAAA(T93, T94, T92, X96)
IN_ORDER1_IN_AG(tree(T103, tree(T94, T82, T88), T102), []) → U16_AG(T103, T94, T82, T88, T102, in_order13_in_aa(T82, T93))
U16_AG(T103, T94, T82, T88, T102, in_order13_out_aa(T82, T93)) → U17_AG(T103, T94, T82, T88, T102, T93, in_order13_in_aa(T88, T92))
U16_AG(T103, T94, T82, T88, T102, in_order13_out_aa(T82, T93)) → IN_ORDER13_IN_AA(T88, T92)
U17_AG(T103, T94, T82, T88, T102, T93, in_order13_out_aa(T88, T92)) → U18_AG(T103, T94, T82, T88, T102, app26_in_aaaa(T93, T94, T92, T101))
U17_AG(T103, T94, T82, T88, T102, T93, in_order13_out_aa(T88, T92)) → APP26_IN_AAAA(T93, T94, T92, T101)
U18_AG(T103, T94, T82, T88, T102, app26_out_aaaa(T93, T94, T92, T101)) → U19_AG(T103, T94, T82, T88, T102, in_order13_in_aa(T102, X10))
U18_AG(T103, T94, T82, T88, T102, app26_out_aaaa(T93, T94, T92, T101)) → IN_ORDER13_IN_AA(T102, X10)
IN_ORDER1_IN_AG(tree(T137, void, T136), T132) → U20_AG(T137, T136, T132, in_order13_in_aa(T136, X125))
IN_ORDER1_IN_AG(tree(T137, void, T136), T132) → IN_ORDER13_IN_AA(T136, X125)
IN_ORDER1_IN_AG(tree(T153, void, T136), .(T153, T154)) → U21_AG(T153, T136, T154, in_order13_in_ag(T136, T154))
IN_ORDER1_IN_AG(tree(T153, void, T136), .(T153, T154)) → IN_ORDER13_IN_AG(T136, T154)
IN_ORDER13_IN_AG(tree(T27, T25, T26), X33) → U1_AG(T27, T25, T26, X33, in_order13_in_aa(T25, X31))
IN_ORDER13_IN_AG(tree(T27, T25, T26), X33) → IN_ORDER13_IN_AA(T25, X31)
IN_ORDER13_IN_AG(tree(T30, T25, T29), X33) → U2_AG(T30, T25, T29, X33, in_order13_in_aa(T25, T28))
U2_AG(T30, T25, T29, X33, in_order13_out_aa(T25, T28)) → U3_AG(T30, T25, T29, X33, in_order13_in_aa(T29, X32))
U2_AG(T30, T25, T29, X33, in_order13_out_aa(T25, T28)) → IN_ORDER13_IN_AA(T29, X32)
IN_ORDER13_IN_AG(tree(T33, T25, T29), X33) → U4_AG(T33, T25, T29, X33, in_order13_in_aa(T25, T32))
U4_AG(T33, T25, T29, X33, in_order13_out_aa(T25, T32)) → U5_AG(T33, T25, T29, X33, T32, in_order13_in_aa(T29, T31))
U4_AG(T33, T25, T29, X33, in_order13_out_aa(T25, T32)) → IN_ORDER13_IN_AA(T29, T31)
U5_AG(T33, T25, T29, X33, T32, in_order13_out_aa(T29, T31)) → U6_AG(T33, T25, T29, X33, app26_in_aaag(T32, T33, T31, X33))
U5_AG(T33, T25, T29, X33, T32, in_order13_out_aa(T29, T31)) → APP26_IN_AAAG(T32, T33, T31, X33)
APP26_IN_AAAG(.(T56, T60), T61, T62, .(T56, X60)) → U7_AAAG(T56, T60, T61, T62, X60, app26_in_aaag(T60, T61, T62, X60))
APP26_IN_AAAG(.(T56, T60), T61, T62, .(T56, X60)) → APP26_IN_AAAG(T60, T61, T62, X60)
IN_ORDER1_IN_AG(tree(T168, tree(T166, T164, T165), T167), T132) → U22_AG(T168, T166, T164, T165, T167, T132, in_order13_in_aa(T164, X158))
IN_ORDER1_IN_AG(tree(T168, tree(T166, T164, T165), T167), T132) → IN_ORDER13_IN_AA(T164, X158)
IN_ORDER1_IN_AG(tree(T173, tree(T171, T164, T170), T172), T132) → U23_AG(T173, T171, T164, T170, T172, T132, in_order13_in_aa(T164, T169))
U23_AG(T173, T171, T164, T170, T172, T132, in_order13_out_aa(T164, T169)) → U24_AG(T173, T171, T164, T170, T172, T132, in_order13_in_aa(T170, X159))
U23_AG(T173, T171, T164, T170, T172, T132, in_order13_out_aa(T164, T169)) → IN_ORDER13_IN_AA(T170, X159)
IN_ORDER1_IN_AG(tree(T179, tree(T177, T164, T170), T178), T132) → U25_AG(T179, T177, T164, T170, T178, T132, in_order13_in_aa(T164, T176))
U25_AG(T179, T177, T164, T170, T178, T132, in_order13_out_aa(T164, T176)) → U26_AG(T179, T177, T164, T170, T178, T132, T176, in_order13_in_aa(T170, T175))
U25_AG(T179, T177, T164, T170, T178, T132, in_order13_out_aa(T164, T176)) → IN_ORDER13_IN_AA(T170, T175)
U26_AG(T179, T177, T164, T170, T178, T132, T176, in_order13_out_aa(T170, T175)) → U27_AG(T179, T177, T164, T170, T178, T132, app26_in_aaaa(T176, T177, T175, X160))
U26_AG(T179, T177, T164, T170, T178, T132, T176, in_order13_out_aa(T170, T175)) → APP26_IN_AAAA(T176, T177, T175, X160)
IN_ORDER1_IN_AG(tree(T187, tree(T177, T164, T170), T186), T132) → U28_AG(T187, T177, T164, T170, T186, T132, in_order13_in_aa(T164, T176))
U28_AG(T187, T177, T164, T170, T186, T132, in_order13_out_aa(T164, T176)) → U29_AG(T187, T177, T164, T170, T186, T132, T176, in_order13_in_aa(T170, T175))
U28_AG(T187, T177, T164, T170, T186, T132, in_order13_out_aa(T164, T176)) → IN_ORDER13_IN_AA(T170, T175)
U29_AG(T187, T177, T164, T170, T186, T132, T176, in_order13_out_aa(T170, T175)) → U30_AG(T187, T177, T164, T170, T186, T132, app26_in_aaaa(T176, T177, T175, T185))
U29_AG(T187, T177, T164, T170, T186, T132, T176, in_order13_out_aa(T170, T175)) → APP26_IN_AAAA(T176, T177, T175, T185)
U30_AG(T187, T177, T164, T170, T186, T132, app26_out_aaaa(T176, T177, T175, T185)) → U31_AG(T187, T177, T164, T170, T186, T132, in_order13_in_aa(T186, X125))
U30_AG(T187, T177, T164, T170, T186, T132, app26_out_aaaa(T176, T177, T175, T185)) → IN_ORDER13_IN_AA(T186, X125)
IN_ORDER1_IN_AG(tree(T209, tree(T177, T164, T170), T186), .(T209, T210)) → U32_AG(T209, T177, T164, T170, T186, T210, in_order13_in_aa(T164, T176))
IN_ORDER1_IN_AG(tree(T209, tree(T177, T164, T170), T186), .(T209, T210)) → IN_ORDER13_IN_AA(T164, T176)
U32_AG(T209, T177, T164, T170, T186, T210, in_order13_out_aa(T164, T176)) → U33_AG(T209, T177, T164, T170, T186, T210, T176, in_order13_in_aa(T170, T175))
U32_AG(T209, T177, T164, T170, T186, T210, in_order13_out_aa(T164, T176)) → IN_ORDER13_IN_AA(T170, T175)
U33_AG(T209, T177, T164, T170, T186, T210, T176, in_order13_out_aa(T170, T175)) → U34_AG(T209, T177, T164, T170, T186, T210, app26_in_aaag(T176, T177, T175, []))
U33_AG(T209, T177, T164, T170, T186, T210, T176, in_order13_out_aa(T170, T175)) → APP26_IN_AAAG(T176, T177, T175, [])
U34_AG(T209, T177, T164, T170, T186, T210, app26_out_aaag(T176, T177, T175, [])) → U35_AG(T209, T177, T164, T170, T186, T210, in_order13_in_ag(T186, T210))
U34_AG(T209, T177, T164, T170, T186, T210, app26_out_aaag(T176, T177, T175, [])) → IN_ORDER13_IN_AG(T186, T210)
IN_ORDER1_IN_AG(tree(T227, tree(T177, T164, T170), T186), .(T221, T225)) → U36_AG(T227, T177, T164, T170, T186, T221, T225, in_order13_in_aa(T164, T176))
IN_ORDER1_IN_AG(tree(T227, tree(T177, T164, T170), T186), .(T221, T225)) → IN_ORDER13_IN_AA(T164, T176)
U36_AG(T227, T177, T164, T170, T186, T221, T225, in_order13_out_aa(T164, T176)) → U37_AG(T227, T177, T164, T170, T186, T221, T225, T176, in_order13_in_aa(T170, T175))
U36_AG(T227, T177, T164, T170, T186, T221, T225, in_order13_out_aa(T164, T176)) → IN_ORDER13_IN_AA(T170, T175)
U37_AG(T227, T177, T164, T170, T186, T221, T225, T176, in_order13_out_aa(T170, T175)) → U38_AG(T227, T177, T164, T170, T186, T221, T225, app26_in_aaaa(T176, T177, T175, .(T221, T226)))
U37_AG(T227, T177, T164, T170, T186, T221, T225, T176, in_order13_out_aa(T170, T175)) → APP26_IN_AAAA(T176, T177, T175, .(T221, T226))
U38_AG(T227, T177, T164, T170, T186, T221, T225, app26_out_aaaa(T176, T177, T175, .(T221, T226))) → U39_AG(T227, T177, T164, T170, T186, T221, T225, T226, in_order13_in_aa(T186, T228))
U38_AG(T227, T177, T164, T170, T186, T221, T225, app26_out_aaaa(T176, T177, T175, .(T221, T226))) → IN_ORDER13_IN_AA(T186, T228)
U39_AG(T227, T177, T164, T170, T186, T221, T225, T226, in_order13_out_aa(T186, T228)) → U40_AG(T227, T177, T164, T170, T186, T221, T225, app83_in_aaag(T226, T227, T228, T225))
U39_AG(T227, T177, T164, T170, T186, T221, T225, T226, in_order13_out_aa(T186, T228)) → APP83_IN_AAAG(T226, T227, T228, T225)
APP83_IN_AAAG(.(T253, T258), T259, T260, .(T253, T257)) → U8_AAAG(T253, T258, T259, T260, T257, app83_in_aaag(T258, T259, T260, T257))
APP83_IN_AAAG(.(T253, T258), T259, T260, .(T253, T257)) → APP83_IN_AAAG(T258, T259, T260, T257)
in_order1_in_ag(void, []) → in_order1_out_ag(void, [])
in_order1_in_ag(tree(T13, void, T12), []) → U9_ag(T13, T12, in_order13_in_aa(T12, X10))
in_order13_in_aa(void, []) → in_order13_out_aa(void, [])
in_order13_in_aa(tree(T27, T25, T26), X33) → U1_aa(T27, T25, T26, X33, in_order13_in_aa(T25, X31))
in_order13_in_aa(tree(T30, T25, T29), X33) → U2_aa(T30, T25, T29, X33, in_order13_in_aa(T25, T28))
in_order13_in_aa(tree(T33, T25, T29), X33) → U4_aa(T33, T25, T29, X33, in_order13_in_aa(T25, T32))
U4_aa(T33, T25, T29, X33, in_order13_out_aa(T25, T32)) → U5_aa(T33, T25, T29, X33, T32, in_order13_in_aa(T29, T31))
U5_aa(T33, T25, T29, X33, T32, in_order13_out_aa(T29, T31)) → U6_aa(T33, T25, T29, X33, app26_in_aaaa(T32, T33, T31, X33))
app26_in_aaaa([], T46, T47, .(T46, T47)) → app26_out_aaaa([], T46, T47, .(T46, T47))
app26_in_aaaa(.(T56, T60), T61, T62, .(T56, X60)) → U7_aaaa(T56, T60, T61, T62, X60, app26_in_aaaa(T60, T61, T62, X60))
U7_aaaa(T56, T60, T61, T62, X60, app26_out_aaaa(T60, T61, T62, X60)) → app26_out_aaaa(.(T56, T60), T61, T62, .(T56, X60))
U6_aa(T33, T25, T29, X33, app26_out_aaaa(T32, T33, T31, X33)) → in_order13_out_aa(tree(T33, T25, T29), X33)
U2_aa(T30, T25, T29, X33, in_order13_out_aa(T25, T28)) → U3_aa(T30, T25, T29, X33, in_order13_in_aa(T29, X32))
U3_aa(T30, T25, T29, X33, in_order13_out_aa(T29, X32)) → in_order13_out_aa(tree(T30, T25, T29), X33)
U1_aa(T27, T25, T26, X33, in_order13_out_aa(T25, X31)) → in_order13_out_aa(tree(T27, T25, T26), X33)
U9_ag(T13, T12, in_order13_out_aa(T12, X10)) → in_order1_out_ag(tree(T13, void, T12), [])
in_order1_in_ag(tree(T86, tree(T84, T82, T83), T85), []) → U10_ag(T86, T84, T82, T83, T85, in_order13_in_aa(T82, X94))
U10_ag(T86, T84, T82, T83, T85, in_order13_out_aa(T82, X94)) → in_order1_out_ag(tree(T86, tree(T84, T82, T83), T85), [])
in_order1_in_ag(tree(T91, tree(T89, T82, T88), T90), []) → U11_ag(T91, T89, T82, T88, T90, in_order13_in_aa(T82, T87))
U11_ag(T91, T89, T82, T88, T90, in_order13_out_aa(T82, T87)) → U12_ag(T91, T89, T82, T88, T90, in_order13_in_aa(T88, X95))
U12_ag(T91, T89, T82, T88, T90, in_order13_out_aa(T88, X95)) → in_order1_out_ag(tree(T91, tree(T89, T82, T88), T90), [])
in_order1_in_ag(tree(T96, tree(T94, T82, T88), T95), []) → U13_ag(T96, T94, T82, T88, T95, in_order13_in_aa(T82, T93))
U13_ag(T96, T94, T82, T88, T95, in_order13_out_aa(T82, T93)) → U14_ag(T96, T94, T82, T88, T95, T93, in_order13_in_aa(T88, T92))
U14_ag(T96, T94, T82, T88, T95, T93, in_order13_out_aa(T88, T92)) → U15_ag(T96, T94, T82, T88, T95, app26_in_aaaa(T93, T94, T92, X96))
U15_ag(T96, T94, T82, T88, T95, app26_out_aaaa(T93, T94, T92, X96)) → in_order1_out_ag(tree(T96, tree(T94, T82, T88), T95), [])
in_order1_in_ag(tree(T103, tree(T94, T82, T88), T102), []) → U16_ag(T103, T94, T82, T88, T102, in_order13_in_aa(T82, T93))
U16_ag(T103, T94, T82, T88, T102, in_order13_out_aa(T82, T93)) → U17_ag(T103, T94, T82, T88, T102, T93, in_order13_in_aa(T88, T92))
U17_ag(T103, T94, T82, T88, T102, T93, in_order13_out_aa(T88, T92)) → U18_ag(T103, T94, T82, T88, T102, app26_in_aaaa(T93, T94, T92, T101))
U18_ag(T103, T94, T82, T88, T102, app26_out_aaaa(T93, T94, T92, T101)) → U19_ag(T103, T94, T82, T88, T102, in_order13_in_aa(T102, X10))
U19_ag(T103, T94, T82, T88, T102, in_order13_out_aa(T102, X10)) → in_order1_out_ag(tree(T103, tree(T94, T82, T88), T102), [])
in_order1_in_ag(tree(T137, void, T136), T132) → U20_ag(T137, T136, T132, in_order13_in_aa(T136, X125))
U20_ag(T137, T136, T132, in_order13_out_aa(T136, X125)) → in_order1_out_ag(tree(T137, void, T136), T132)
in_order1_in_ag(tree(T153, void, T136), .(T153, T154)) → U21_ag(T153, T136, T154, in_order13_in_ag(T136, T154))
in_order13_in_ag(void, []) → in_order13_out_ag(void, [])
in_order13_in_ag(tree(T27, T25, T26), X33) → U1_ag(T27, T25, T26, X33, in_order13_in_aa(T25, X31))
U1_ag(T27, T25, T26, X33, in_order13_out_aa(T25, X31)) → in_order13_out_ag(tree(T27, T25, T26), X33)
in_order13_in_ag(tree(T30, T25, T29), X33) → U2_ag(T30, T25, T29, X33, in_order13_in_aa(T25, T28))
U2_ag(T30, T25, T29, X33, in_order13_out_aa(T25, T28)) → U3_ag(T30, T25, T29, X33, in_order13_in_aa(T29, X32))
U3_ag(T30, T25, T29, X33, in_order13_out_aa(T29, X32)) → in_order13_out_ag(tree(T30, T25, T29), X33)
in_order13_in_ag(tree(T33, T25, T29), X33) → U4_ag(T33, T25, T29, X33, in_order13_in_aa(T25, T32))
U4_ag(T33, T25, T29, X33, in_order13_out_aa(T25, T32)) → U5_ag(T33, T25, T29, X33, T32, in_order13_in_aa(T29, T31))
U5_ag(T33, T25, T29, X33, T32, in_order13_out_aa(T29, T31)) → U6_ag(T33, T25, T29, X33, app26_in_aaag(T32, T33, T31, X33))
app26_in_aaag([], T46, T47, .(T46, T47)) → app26_out_aaag([], T46, T47, .(T46, T47))
app26_in_aaag(.(T56, T60), T61, T62, .(T56, X60)) → U7_aaag(T56, T60, T61, T62, X60, app26_in_aaag(T60, T61, T62, X60))
U7_aaag(T56, T60, T61, T62, X60, app26_out_aaag(T60, T61, T62, X60)) → app26_out_aaag(.(T56, T60), T61, T62, .(T56, X60))
U6_ag(T33, T25, T29, X33, app26_out_aaag(T32, T33, T31, X33)) → in_order13_out_ag(tree(T33, T25, T29), X33)
U21_ag(T153, T136, T154, in_order13_out_ag(T136, T154)) → in_order1_out_ag(tree(T153, void, T136), .(T153, T154))
in_order1_in_ag(tree(T168, tree(T166, T164, T165), T167), T132) → U22_ag(T168, T166, T164, T165, T167, T132, in_order13_in_aa(T164, X158))
U22_ag(T168, T166, T164, T165, T167, T132, in_order13_out_aa(T164, X158)) → in_order1_out_ag(tree(T168, tree(T166, T164, T165), T167), T132)
in_order1_in_ag(tree(T173, tree(T171, T164, T170), T172), T132) → U23_ag(T173, T171, T164, T170, T172, T132, in_order13_in_aa(T164, T169))
U23_ag(T173, T171, T164, T170, T172, T132, in_order13_out_aa(T164, T169)) → U24_ag(T173, T171, T164, T170, T172, T132, in_order13_in_aa(T170, X159))
U24_ag(T173, T171, T164, T170, T172, T132, in_order13_out_aa(T170, X159)) → in_order1_out_ag(tree(T173, tree(T171, T164, T170), T172), T132)
in_order1_in_ag(tree(T179, tree(T177, T164, T170), T178), T132) → U25_ag(T179, T177, T164, T170, T178, T132, in_order13_in_aa(T164, T176))
U25_ag(T179, T177, T164, T170, T178, T132, in_order13_out_aa(T164, T176)) → U26_ag(T179, T177, T164, T170, T178, T132, T176, in_order13_in_aa(T170, T175))
U26_ag(T179, T177, T164, T170, T178, T132, T176, in_order13_out_aa(T170, T175)) → U27_ag(T179, T177, T164, T170, T178, T132, app26_in_aaaa(T176, T177, T175, X160))
U27_ag(T179, T177, T164, T170, T178, T132, app26_out_aaaa(T176, T177, T175, X160)) → in_order1_out_ag(tree(T179, tree(T177, T164, T170), T178), T132)
in_order1_in_ag(tree(T187, tree(T177, T164, T170), T186), T132) → U28_ag(T187, T177, T164, T170, T186, T132, in_order13_in_aa(T164, T176))
U28_ag(T187, T177, T164, T170, T186, T132, in_order13_out_aa(T164, T176)) → U29_ag(T187, T177, T164, T170, T186, T132, T176, in_order13_in_aa(T170, T175))
U29_ag(T187, T177, T164, T170, T186, T132, T176, in_order13_out_aa(T170, T175)) → U30_ag(T187, T177, T164, T170, T186, T132, app26_in_aaaa(T176, T177, T175, T185))
U30_ag(T187, T177, T164, T170, T186, T132, app26_out_aaaa(T176, T177, T175, T185)) → U31_ag(T187, T177, T164, T170, T186, T132, in_order13_in_aa(T186, X125))
U31_ag(T187, T177, T164, T170, T186, T132, in_order13_out_aa(T186, X125)) → in_order1_out_ag(tree(T187, tree(T177, T164, T170), T186), T132)
in_order1_in_ag(tree(T209, tree(T177, T164, T170), T186), .(T209, T210)) → U32_ag(T209, T177, T164, T170, T186, T210, in_order13_in_aa(T164, T176))
U32_ag(T209, T177, T164, T170, T186, T210, in_order13_out_aa(T164, T176)) → U33_ag(T209, T177, T164, T170, T186, T210, T176, in_order13_in_aa(T170, T175))
U33_ag(T209, T177, T164, T170, T186, T210, T176, in_order13_out_aa(T170, T175)) → U34_ag(T209, T177, T164, T170, T186, T210, app26_in_aaag(T176, T177, T175, []))
U34_ag(T209, T177, T164, T170, T186, T210, app26_out_aaag(T176, T177, T175, [])) → U35_ag(T209, T177, T164, T170, T186, T210, in_order13_in_ag(T186, T210))
U35_ag(T209, T177, T164, T170, T186, T210, in_order13_out_ag(T186, T210)) → in_order1_out_ag(tree(T209, tree(T177, T164, T170), T186), .(T209, T210))
in_order1_in_ag(tree(T227, tree(T177, T164, T170), T186), .(T221, T225)) → U36_ag(T227, T177, T164, T170, T186, T221, T225, in_order13_in_aa(T164, T176))
U36_ag(T227, T177, T164, T170, T186, T221, T225, in_order13_out_aa(T164, T176)) → U37_ag(T227, T177, T164, T170, T186, T221, T225, T176, in_order13_in_aa(T170, T175))
U37_ag(T227, T177, T164, T170, T186, T221, T225, T176, in_order13_out_aa(T170, T175)) → U38_ag(T227, T177, T164, T170, T186, T221, T225, app26_in_aaaa(T176, T177, T175, .(T221, T226)))
U38_ag(T227, T177, T164, T170, T186, T221, T225, app26_out_aaaa(T176, T177, T175, .(T221, T226))) → U39_ag(T227, T177, T164, T170, T186, T221, T225, T226, in_order13_in_aa(T186, T228))
U39_ag(T227, T177, T164, T170, T186, T221, T225, T226, in_order13_out_aa(T186, T228)) → U40_ag(T227, T177, T164, T170, T186, T221, T225, app83_in_aaag(T226, T227, T228, T225))
app83_in_aaag([], T241, T242, .(T241, T242)) → app83_out_aaag([], T241, T242, .(T241, T242))
app83_in_aaag(.(T253, T258), T259, T260, .(T253, T257)) → U8_aaag(T253, T258, T259, T260, T257, app83_in_aaag(T258, T259, T260, T257))
U8_aaag(T253, T258, T259, T260, T257, app83_out_aaag(T258, T259, T260, T257)) → app83_out_aaag(.(T253, T258), T259, T260, .(T253, T257))
U40_ag(T227, T177, T164, T170, T186, T221, T225, app83_out_aaag(T226, T227, T228, T225)) → in_order1_out_ag(tree(T227, tree(T177, T164, T170), T186), .(T221, T225))
IN_ORDER1_IN_AG(tree(T13, void, T12), []) → U9_AG(T13, T12, in_order13_in_aa(T12, X10))
IN_ORDER1_IN_AG(tree(T13, void, T12), []) → IN_ORDER13_IN_AA(T12, X10)
IN_ORDER13_IN_AA(tree(T27, T25, T26), X33) → U1_AA(T27, T25, T26, X33, in_order13_in_aa(T25, X31))
IN_ORDER13_IN_AA(tree(T27, T25, T26), X33) → IN_ORDER13_IN_AA(T25, X31)
IN_ORDER13_IN_AA(tree(T30, T25, T29), X33) → U2_AA(T30, T25, T29, X33, in_order13_in_aa(T25, T28))
IN_ORDER13_IN_AA(tree(T33, T25, T29), X33) → U4_AA(T33, T25, T29, X33, in_order13_in_aa(T25, T32))
U4_AA(T33, T25, T29, X33, in_order13_out_aa(T25, T32)) → U5_AA(T33, T25, T29, X33, T32, in_order13_in_aa(T29, T31))
U4_AA(T33, T25, T29, X33, in_order13_out_aa(T25, T32)) → IN_ORDER13_IN_AA(T29, T31)
U5_AA(T33, T25, T29, X33, T32, in_order13_out_aa(T29, T31)) → U6_AA(T33, T25, T29, X33, app26_in_aaaa(T32, T33, T31, X33))
U5_AA(T33, T25, T29, X33, T32, in_order13_out_aa(T29, T31)) → APP26_IN_AAAA(T32, T33, T31, X33)
APP26_IN_AAAA(.(T56, T60), T61, T62, .(T56, X60)) → U7_AAAA(T56, T60, T61, T62, X60, app26_in_aaaa(T60, T61, T62, X60))
APP26_IN_AAAA(.(T56, T60), T61, T62, .(T56, X60)) → APP26_IN_AAAA(T60, T61, T62, X60)
U2_AA(T30, T25, T29, X33, in_order13_out_aa(T25, T28)) → U3_AA(T30, T25, T29, X33, in_order13_in_aa(T29, X32))
U2_AA(T30, T25, T29, X33, in_order13_out_aa(T25, T28)) → IN_ORDER13_IN_AA(T29, X32)
IN_ORDER1_IN_AG(tree(T86, tree(T84, T82, T83), T85), []) → U10_AG(T86, T84, T82, T83, T85, in_order13_in_aa(T82, X94))
IN_ORDER1_IN_AG(tree(T86, tree(T84, T82, T83), T85), []) → IN_ORDER13_IN_AA(T82, X94)
IN_ORDER1_IN_AG(tree(T91, tree(T89, T82, T88), T90), []) → U11_AG(T91, T89, T82, T88, T90, in_order13_in_aa(T82, T87))
U11_AG(T91, T89, T82, T88, T90, in_order13_out_aa(T82, T87)) → U12_AG(T91, T89, T82, T88, T90, in_order13_in_aa(T88, X95))
U11_AG(T91, T89, T82, T88, T90, in_order13_out_aa(T82, T87)) → IN_ORDER13_IN_AA(T88, X95)
IN_ORDER1_IN_AG(tree(T96, tree(T94, T82, T88), T95), []) → U13_AG(T96, T94, T82, T88, T95, in_order13_in_aa(T82, T93))
U13_AG(T96, T94, T82, T88, T95, in_order13_out_aa(T82, T93)) → U14_AG(T96, T94, T82, T88, T95, T93, in_order13_in_aa(T88, T92))
U13_AG(T96, T94, T82, T88, T95, in_order13_out_aa(T82, T93)) → IN_ORDER13_IN_AA(T88, T92)
U14_AG(T96, T94, T82, T88, T95, T93, in_order13_out_aa(T88, T92)) → U15_AG(T96, T94, T82, T88, T95, app26_in_aaaa(T93, T94, T92, X96))
U14_AG(T96, T94, T82, T88, T95, T93, in_order13_out_aa(T88, T92)) → APP26_IN_AAAA(T93, T94, T92, X96)
IN_ORDER1_IN_AG(tree(T103, tree(T94, T82, T88), T102), []) → U16_AG(T103, T94, T82, T88, T102, in_order13_in_aa(T82, T93))
U16_AG(T103, T94, T82, T88, T102, in_order13_out_aa(T82, T93)) → U17_AG(T103, T94, T82, T88, T102, T93, in_order13_in_aa(T88, T92))
U16_AG(T103, T94, T82, T88, T102, in_order13_out_aa(T82, T93)) → IN_ORDER13_IN_AA(T88, T92)
U17_AG(T103, T94, T82, T88, T102, T93, in_order13_out_aa(T88, T92)) → U18_AG(T103, T94, T82, T88, T102, app26_in_aaaa(T93, T94, T92, T101))
U17_AG(T103, T94, T82, T88, T102, T93, in_order13_out_aa(T88, T92)) → APP26_IN_AAAA(T93, T94, T92, T101)
U18_AG(T103, T94, T82, T88, T102, app26_out_aaaa(T93, T94, T92, T101)) → U19_AG(T103, T94, T82, T88, T102, in_order13_in_aa(T102, X10))
U18_AG(T103, T94, T82, T88, T102, app26_out_aaaa(T93, T94, T92, T101)) → IN_ORDER13_IN_AA(T102, X10)
IN_ORDER1_IN_AG(tree(T137, void, T136), T132) → U20_AG(T137, T136, T132, in_order13_in_aa(T136, X125))
IN_ORDER1_IN_AG(tree(T137, void, T136), T132) → IN_ORDER13_IN_AA(T136, X125)
IN_ORDER1_IN_AG(tree(T153, void, T136), .(T153, T154)) → U21_AG(T153, T136, T154, in_order13_in_ag(T136, T154))
IN_ORDER1_IN_AG(tree(T153, void, T136), .(T153, T154)) → IN_ORDER13_IN_AG(T136, T154)
IN_ORDER13_IN_AG(tree(T27, T25, T26), X33) → U1_AG(T27, T25, T26, X33, in_order13_in_aa(T25, X31))
IN_ORDER13_IN_AG(tree(T27, T25, T26), X33) → IN_ORDER13_IN_AA(T25, X31)
IN_ORDER13_IN_AG(tree(T30, T25, T29), X33) → U2_AG(T30, T25, T29, X33, in_order13_in_aa(T25, T28))
U2_AG(T30, T25, T29, X33, in_order13_out_aa(T25, T28)) → U3_AG(T30, T25, T29, X33, in_order13_in_aa(T29, X32))
U2_AG(T30, T25, T29, X33, in_order13_out_aa(T25, T28)) → IN_ORDER13_IN_AA(T29, X32)
IN_ORDER13_IN_AG(tree(T33, T25, T29), X33) → U4_AG(T33, T25, T29, X33, in_order13_in_aa(T25, T32))
U4_AG(T33, T25, T29, X33, in_order13_out_aa(T25, T32)) → U5_AG(T33, T25, T29, X33, T32, in_order13_in_aa(T29, T31))
U4_AG(T33, T25, T29, X33, in_order13_out_aa(T25, T32)) → IN_ORDER13_IN_AA(T29, T31)
U5_AG(T33, T25, T29, X33, T32, in_order13_out_aa(T29, T31)) → U6_AG(T33, T25, T29, X33, app26_in_aaag(T32, T33, T31, X33))
U5_AG(T33, T25, T29, X33, T32, in_order13_out_aa(T29, T31)) → APP26_IN_AAAG(T32, T33, T31, X33)
APP26_IN_AAAG(.(T56, T60), T61, T62, .(T56, X60)) → U7_AAAG(T56, T60, T61, T62, X60, app26_in_aaag(T60, T61, T62, X60))
APP26_IN_AAAG(.(T56, T60), T61, T62, .(T56, X60)) → APP26_IN_AAAG(T60, T61, T62, X60)
IN_ORDER1_IN_AG(tree(T168, tree(T166, T164, T165), T167), T132) → U22_AG(T168, T166, T164, T165, T167, T132, in_order13_in_aa(T164, X158))
IN_ORDER1_IN_AG(tree(T168, tree(T166, T164, T165), T167), T132) → IN_ORDER13_IN_AA(T164, X158)
IN_ORDER1_IN_AG(tree(T173, tree(T171, T164, T170), T172), T132) → U23_AG(T173, T171, T164, T170, T172, T132, in_order13_in_aa(T164, T169))
U23_AG(T173, T171, T164, T170, T172, T132, in_order13_out_aa(T164, T169)) → U24_AG(T173, T171, T164, T170, T172, T132, in_order13_in_aa(T170, X159))
U23_AG(T173, T171, T164, T170, T172, T132, in_order13_out_aa(T164, T169)) → IN_ORDER13_IN_AA(T170, X159)
IN_ORDER1_IN_AG(tree(T179, tree(T177, T164, T170), T178), T132) → U25_AG(T179, T177, T164, T170, T178, T132, in_order13_in_aa(T164, T176))
U25_AG(T179, T177, T164, T170, T178, T132, in_order13_out_aa(T164, T176)) → U26_AG(T179, T177, T164, T170, T178, T132, T176, in_order13_in_aa(T170, T175))
U25_AG(T179, T177, T164, T170, T178, T132, in_order13_out_aa(T164, T176)) → IN_ORDER13_IN_AA(T170, T175)
U26_AG(T179, T177, T164, T170, T178, T132, T176, in_order13_out_aa(T170, T175)) → U27_AG(T179, T177, T164, T170, T178, T132, app26_in_aaaa(T176, T177, T175, X160))
U26_AG(T179, T177, T164, T170, T178, T132, T176, in_order13_out_aa(T170, T175)) → APP26_IN_AAAA(T176, T177, T175, X160)
IN_ORDER1_IN_AG(tree(T187, tree(T177, T164, T170), T186), T132) → U28_AG(T187, T177, T164, T170, T186, T132, in_order13_in_aa(T164, T176))
U28_AG(T187, T177, T164, T170, T186, T132, in_order13_out_aa(T164, T176)) → U29_AG(T187, T177, T164, T170, T186, T132, T176, in_order13_in_aa(T170, T175))
U28_AG(T187, T177, T164, T170, T186, T132, in_order13_out_aa(T164, T176)) → IN_ORDER13_IN_AA(T170, T175)
U29_AG(T187, T177, T164, T170, T186, T132, T176, in_order13_out_aa(T170, T175)) → U30_AG(T187, T177, T164, T170, T186, T132, app26_in_aaaa(T176, T177, T175, T185))
U29_AG(T187, T177, T164, T170, T186, T132, T176, in_order13_out_aa(T170, T175)) → APP26_IN_AAAA(T176, T177, T175, T185)
U30_AG(T187, T177, T164, T170, T186, T132, app26_out_aaaa(T176, T177, T175, T185)) → U31_AG(T187, T177, T164, T170, T186, T132, in_order13_in_aa(T186, X125))
U30_AG(T187, T177, T164, T170, T186, T132, app26_out_aaaa(T176, T177, T175, T185)) → IN_ORDER13_IN_AA(T186, X125)
IN_ORDER1_IN_AG(tree(T209, tree(T177, T164, T170), T186), .(T209, T210)) → U32_AG(T209, T177, T164, T170, T186, T210, in_order13_in_aa(T164, T176))
IN_ORDER1_IN_AG(tree(T209, tree(T177, T164, T170), T186), .(T209, T210)) → IN_ORDER13_IN_AA(T164, T176)
U32_AG(T209, T177, T164, T170, T186, T210, in_order13_out_aa(T164, T176)) → U33_AG(T209, T177, T164, T170, T186, T210, T176, in_order13_in_aa(T170, T175))
U32_AG(T209, T177, T164, T170, T186, T210, in_order13_out_aa(T164, T176)) → IN_ORDER13_IN_AA(T170, T175)
U33_AG(T209, T177, T164, T170, T186, T210, T176, in_order13_out_aa(T170, T175)) → U34_AG(T209, T177, T164, T170, T186, T210, app26_in_aaag(T176, T177, T175, []))
U33_AG(T209, T177, T164, T170, T186, T210, T176, in_order13_out_aa(T170, T175)) → APP26_IN_AAAG(T176, T177, T175, [])
U34_AG(T209, T177, T164, T170, T186, T210, app26_out_aaag(T176, T177, T175, [])) → U35_AG(T209, T177, T164, T170, T186, T210, in_order13_in_ag(T186, T210))
U34_AG(T209, T177, T164, T170, T186, T210, app26_out_aaag(T176, T177, T175, [])) → IN_ORDER13_IN_AG(T186, T210)
IN_ORDER1_IN_AG(tree(T227, tree(T177, T164, T170), T186), .(T221, T225)) → U36_AG(T227, T177, T164, T170, T186, T221, T225, in_order13_in_aa(T164, T176))
IN_ORDER1_IN_AG(tree(T227, tree(T177, T164, T170), T186), .(T221, T225)) → IN_ORDER13_IN_AA(T164, T176)
U36_AG(T227, T177, T164, T170, T186, T221, T225, in_order13_out_aa(T164, T176)) → U37_AG(T227, T177, T164, T170, T186, T221, T225, T176, in_order13_in_aa(T170, T175))
U36_AG(T227, T177, T164, T170, T186, T221, T225, in_order13_out_aa(T164, T176)) → IN_ORDER13_IN_AA(T170, T175)
U37_AG(T227, T177, T164, T170, T186, T221, T225, T176, in_order13_out_aa(T170, T175)) → U38_AG(T227, T177, T164, T170, T186, T221, T225, app26_in_aaaa(T176, T177, T175, .(T221, T226)))
U37_AG(T227, T177, T164, T170, T186, T221, T225, T176, in_order13_out_aa(T170, T175)) → APP26_IN_AAAA(T176, T177, T175, .(T221, T226))
U38_AG(T227, T177, T164, T170, T186, T221, T225, app26_out_aaaa(T176, T177, T175, .(T221, T226))) → U39_AG(T227, T177, T164, T170, T186, T221, T225, T226, in_order13_in_aa(T186, T228))
U38_AG(T227, T177, T164, T170, T186, T221, T225, app26_out_aaaa(T176, T177, T175, .(T221, T226))) → IN_ORDER13_IN_AA(T186, T228)
U39_AG(T227, T177, T164, T170, T186, T221, T225, T226, in_order13_out_aa(T186, T228)) → U40_AG(T227, T177, T164, T170, T186, T221, T225, app83_in_aaag(T226, T227, T228, T225))
U39_AG(T227, T177, T164, T170, T186, T221, T225, T226, in_order13_out_aa(T186, T228)) → APP83_IN_AAAG(T226, T227, T228, T225)
APP83_IN_AAAG(.(T253, T258), T259, T260, .(T253, T257)) → U8_AAAG(T253, T258, T259, T260, T257, app83_in_aaag(T258, T259, T260, T257))
APP83_IN_AAAG(.(T253, T258), T259, T260, .(T253, T257)) → APP83_IN_AAAG(T258, T259, T260, T257)
in_order1_in_ag(void, []) → in_order1_out_ag(void, [])
in_order1_in_ag(tree(T13, void, T12), []) → U9_ag(T13, T12, in_order13_in_aa(T12, X10))
in_order13_in_aa(void, []) → in_order13_out_aa(void, [])
in_order13_in_aa(tree(T27, T25, T26), X33) → U1_aa(T27, T25, T26, X33, in_order13_in_aa(T25, X31))
in_order13_in_aa(tree(T30, T25, T29), X33) → U2_aa(T30, T25, T29, X33, in_order13_in_aa(T25, T28))
in_order13_in_aa(tree(T33, T25, T29), X33) → U4_aa(T33, T25, T29, X33, in_order13_in_aa(T25, T32))
U4_aa(T33, T25, T29, X33, in_order13_out_aa(T25, T32)) → U5_aa(T33, T25, T29, X33, T32, in_order13_in_aa(T29, T31))
U5_aa(T33, T25, T29, X33, T32, in_order13_out_aa(T29, T31)) → U6_aa(T33, T25, T29, X33, app26_in_aaaa(T32, T33, T31, X33))
app26_in_aaaa([], T46, T47, .(T46, T47)) → app26_out_aaaa([], T46, T47, .(T46, T47))
app26_in_aaaa(.(T56, T60), T61, T62, .(T56, X60)) → U7_aaaa(T56, T60, T61, T62, X60, app26_in_aaaa(T60, T61, T62, X60))
U7_aaaa(T56, T60, T61, T62, X60, app26_out_aaaa(T60, T61, T62, X60)) → app26_out_aaaa(.(T56, T60), T61, T62, .(T56, X60))
U6_aa(T33, T25, T29, X33, app26_out_aaaa(T32, T33, T31, X33)) → in_order13_out_aa(tree(T33, T25, T29), X33)
U2_aa(T30, T25, T29, X33, in_order13_out_aa(T25, T28)) → U3_aa(T30, T25, T29, X33, in_order13_in_aa(T29, X32))
U3_aa(T30, T25, T29, X33, in_order13_out_aa(T29, X32)) → in_order13_out_aa(tree(T30, T25, T29), X33)
U1_aa(T27, T25, T26, X33, in_order13_out_aa(T25, X31)) → in_order13_out_aa(tree(T27, T25, T26), X33)
U9_ag(T13, T12, in_order13_out_aa(T12, X10)) → in_order1_out_ag(tree(T13, void, T12), [])
in_order1_in_ag(tree(T86, tree(T84, T82, T83), T85), []) → U10_ag(T86, T84, T82, T83, T85, in_order13_in_aa(T82, X94))
U10_ag(T86, T84, T82, T83, T85, in_order13_out_aa(T82, X94)) → in_order1_out_ag(tree(T86, tree(T84, T82, T83), T85), [])
in_order1_in_ag(tree(T91, tree(T89, T82, T88), T90), []) → U11_ag(T91, T89, T82, T88, T90, in_order13_in_aa(T82, T87))
U11_ag(T91, T89, T82, T88, T90, in_order13_out_aa(T82, T87)) → U12_ag(T91, T89, T82, T88, T90, in_order13_in_aa(T88, X95))
U12_ag(T91, T89, T82, T88, T90, in_order13_out_aa(T88, X95)) → in_order1_out_ag(tree(T91, tree(T89, T82, T88), T90), [])
in_order1_in_ag(tree(T96, tree(T94, T82, T88), T95), []) → U13_ag(T96, T94, T82, T88, T95, in_order13_in_aa(T82, T93))
U13_ag(T96, T94, T82, T88, T95, in_order13_out_aa(T82, T93)) → U14_ag(T96, T94, T82, T88, T95, T93, in_order13_in_aa(T88, T92))
U14_ag(T96, T94, T82, T88, T95, T93, in_order13_out_aa(T88, T92)) → U15_ag(T96, T94, T82, T88, T95, app26_in_aaaa(T93, T94, T92, X96))
U15_ag(T96, T94, T82, T88, T95, app26_out_aaaa(T93, T94, T92, X96)) → in_order1_out_ag(tree(T96, tree(T94, T82, T88), T95), [])
in_order1_in_ag(tree(T103, tree(T94, T82, T88), T102), []) → U16_ag(T103, T94, T82, T88, T102, in_order13_in_aa(T82, T93))
U16_ag(T103, T94, T82, T88, T102, in_order13_out_aa(T82, T93)) → U17_ag(T103, T94, T82, T88, T102, T93, in_order13_in_aa(T88, T92))
U17_ag(T103, T94, T82, T88, T102, T93, in_order13_out_aa(T88, T92)) → U18_ag(T103, T94, T82, T88, T102, app26_in_aaaa(T93, T94, T92, T101))
U18_ag(T103, T94, T82, T88, T102, app26_out_aaaa(T93, T94, T92, T101)) → U19_ag(T103, T94, T82, T88, T102, in_order13_in_aa(T102, X10))
U19_ag(T103, T94, T82, T88, T102, in_order13_out_aa(T102, X10)) → in_order1_out_ag(tree(T103, tree(T94, T82, T88), T102), [])
in_order1_in_ag(tree(T137, void, T136), T132) → U20_ag(T137, T136, T132, in_order13_in_aa(T136, X125))
U20_ag(T137, T136, T132, in_order13_out_aa(T136, X125)) → in_order1_out_ag(tree(T137, void, T136), T132)
in_order1_in_ag(tree(T153, void, T136), .(T153, T154)) → U21_ag(T153, T136, T154, in_order13_in_ag(T136, T154))
in_order13_in_ag(void, []) → in_order13_out_ag(void, [])
in_order13_in_ag(tree(T27, T25, T26), X33) → U1_ag(T27, T25, T26, X33, in_order13_in_aa(T25, X31))
U1_ag(T27, T25, T26, X33, in_order13_out_aa(T25, X31)) → in_order13_out_ag(tree(T27, T25, T26), X33)
in_order13_in_ag(tree(T30, T25, T29), X33) → U2_ag(T30, T25, T29, X33, in_order13_in_aa(T25, T28))
U2_ag(T30, T25, T29, X33, in_order13_out_aa(T25, T28)) → U3_ag(T30, T25, T29, X33, in_order13_in_aa(T29, X32))
U3_ag(T30, T25, T29, X33, in_order13_out_aa(T29, X32)) → in_order13_out_ag(tree(T30, T25, T29), X33)
in_order13_in_ag(tree(T33, T25, T29), X33) → U4_ag(T33, T25, T29, X33, in_order13_in_aa(T25, T32))
U4_ag(T33, T25, T29, X33, in_order13_out_aa(T25, T32)) → U5_ag(T33, T25, T29, X33, T32, in_order13_in_aa(T29, T31))
U5_ag(T33, T25, T29, X33, T32, in_order13_out_aa(T29, T31)) → U6_ag(T33, T25, T29, X33, app26_in_aaag(T32, T33, T31, X33))
app26_in_aaag([], T46, T47, .(T46, T47)) → app26_out_aaag([], T46, T47, .(T46, T47))
app26_in_aaag(.(T56, T60), T61, T62, .(T56, X60)) → U7_aaag(T56, T60, T61, T62, X60, app26_in_aaag(T60, T61, T62, X60))
U7_aaag(T56, T60, T61, T62, X60, app26_out_aaag(T60, T61, T62, X60)) → app26_out_aaag(.(T56, T60), T61, T62, .(T56, X60))
U6_ag(T33, T25, T29, X33, app26_out_aaag(T32, T33, T31, X33)) → in_order13_out_ag(tree(T33, T25, T29), X33)
U21_ag(T153, T136, T154, in_order13_out_ag(T136, T154)) → in_order1_out_ag(tree(T153, void, T136), .(T153, T154))
in_order1_in_ag(tree(T168, tree(T166, T164, T165), T167), T132) → U22_ag(T168, T166, T164, T165, T167, T132, in_order13_in_aa(T164, X158))
U22_ag(T168, T166, T164, T165, T167, T132, in_order13_out_aa(T164, X158)) → in_order1_out_ag(tree(T168, tree(T166, T164, T165), T167), T132)
in_order1_in_ag(tree(T173, tree(T171, T164, T170), T172), T132) → U23_ag(T173, T171, T164, T170, T172, T132, in_order13_in_aa(T164, T169))
U23_ag(T173, T171, T164, T170, T172, T132, in_order13_out_aa(T164, T169)) → U24_ag(T173, T171, T164, T170, T172, T132, in_order13_in_aa(T170, X159))
U24_ag(T173, T171, T164, T170, T172, T132, in_order13_out_aa(T170, X159)) → in_order1_out_ag(tree(T173, tree(T171, T164, T170), T172), T132)
in_order1_in_ag(tree(T179, tree(T177, T164, T170), T178), T132) → U25_ag(T179, T177, T164, T170, T178, T132, in_order13_in_aa(T164, T176))
U25_ag(T179, T177, T164, T170, T178, T132, in_order13_out_aa(T164, T176)) → U26_ag(T179, T177, T164, T170, T178, T132, T176, in_order13_in_aa(T170, T175))
U26_ag(T179, T177, T164, T170, T178, T132, T176, in_order13_out_aa(T170, T175)) → U27_ag(T179, T177, T164, T170, T178, T132, app26_in_aaaa(T176, T177, T175, X160))
U27_ag(T179, T177, T164, T170, T178, T132, app26_out_aaaa(T176, T177, T175, X160)) → in_order1_out_ag(tree(T179, tree(T177, T164, T170), T178), T132)
in_order1_in_ag(tree(T187, tree(T177, T164, T170), T186), T132) → U28_ag(T187, T177, T164, T170, T186, T132, in_order13_in_aa(T164, T176))
U28_ag(T187, T177, T164, T170, T186, T132, in_order13_out_aa(T164, T176)) → U29_ag(T187, T177, T164, T170, T186, T132, T176, in_order13_in_aa(T170, T175))
U29_ag(T187, T177, T164, T170, T186, T132, T176, in_order13_out_aa(T170, T175)) → U30_ag(T187, T177, T164, T170, T186, T132, app26_in_aaaa(T176, T177, T175, T185))
U30_ag(T187, T177, T164, T170, T186, T132, app26_out_aaaa(T176, T177, T175, T185)) → U31_ag(T187, T177, T164, T170, T186, T132, in_order13_in_aa(T186, X125))
U31_ag(T187, T177, T164, T170, T186, T132, in_order13_out_aa(T186, X125)) → in_order1_out_ag(tree(T187, tree(T177, T164, T170), T186), T132)
in_order1_in_ag(tree(T209, tree(T177, T164, T170), T186), .(T209, T210)) → U32_ag(T209, T177, T164, T170, T186, T210, in_order13_in_aa(T164, T176))
U32_ag(T209, T177, T164, T170, T186, T210, in_order13_out_aa(T164, T176)) → U33_ag(T209, T177, T164, T170, T186, T210, T176, in_order13_in_aa(T170, T175))
U33_ag(T209, T177, T164, T170, T186, T210, T176, in_order13_out_aa(T170, T175)) → U34_ag(T209, T177, T164, T170, T186, T210, app26_in_aaag(T176, T177, T175, []))
U34_ag(T209, T177, T164, T170, T186, T210, app26_out_aaag(T176, T177, T175, [])) → U35_ag(T209, T177, T164, T170, T186, T210, in_order13_in_ag(T186, T210))
U35_ag(T209, T177, T164, T170, T186, T210, in_order13_out_ag(T186, T210)) → in_order1_out_ag(tree(T209, tree(T177, T164, T170), T186), .(T209, T210))
in_order1_in_ag(tree(T227, tree(T177, T164, T170), T186), .(T221, T225)) → U36_ag(T227, T177, T164, T170, T186, T221, T225, in_order13_in_aa(T164, T176))
U36_ag(T227, T177, T164, T170, T186, T221, T225, in_order13_out_aa(T164, T176)) → U37_ag(T227, T177, T164, T170, T186, T221, T225, T176, in_order13_in_aa(T170, T175))
U37_ag(T227, T177, T164, T170, T186, T221, T225, T176, in_order13_out_aa(T170, T175)) → U38_ag(T227, T177, T164, T170, T186, T221, T225, app26_in_aaaa(T176, T177, T175, .(T221, T226)))
U38_ag(T227, T177, T164, T170, T186, T221, T225, app26_out_aaaa(T176, T177, T175, .(T221, T226))) → U39_ag(T227, T177, T164, T170, T186, T221, T225, T226, in_order13_in_aa(T186, T228))
U39_ag(T227, T177, T164, T170, T186, T221, T225, T226, in_order13_out_aa(T186, T228)) → U40_ag(T227, T177, T164, T170, T186, T221, T225, app83_in_aaag(T226, T227, T228, T225))
app83_in_aaag([], T241, T242, .(T241, T242)) → app83_out_aaag([], T241, T242, .(T241, T242))
app83_in_aaag(.(T253, T258), T259, T260, .(T253, T257)) → U8_aaag(T253, T258, T259, T260, T257, app83_in_aaag(T258, T259, T260, T257))
U8_aaag(T253, T258, T259, T260, T257, app83_out_aaag(T258, T259, T260, T257)) → app83_out_aaag(.(T253, T258), T259, T260, .(T253, T257))
U40_ag(T227, T177, T164, T170, T186, T221, T225, app83_out_aaag(T226, T227, T228, T225)) → in_order1_out_ag(tree(T227, tree(T177, T164, T170), T186), .(T221, T225))
APP83_IN_AAAG(.(T253, T258), T259, T260, .(T253, T257)) → APP83_IN_AAAG(T258, T259, T260, T257)
in_order1_in_ag(void, []) → in_order1_out_ag(void, [])
in_order1_in_ag(tree(T13, void, T12), []) → U9_ag(T13, T12, in_order13_in_aa(T12, X10))
in_order13_in_aa(void, []) → in_order13_out_aa(void, [])
in_order13_in_aa(tree(T27, T25, T26), X33) → U1_aa(T27, T25, T26, X33, in_order13_in_aa(T25, X31))
in_order13_in_aa(tree(T30, T25, T29), X33) → U2_aa(T30, T25, T29, X33, in_order13_in_aa(T25, T28))
in_order13_in_aa(tree(T33, T25, T29), X33) → U4_aa(T33, T25, T29, X33, in_order13_in_aa(T25, T32))
U4_aa(T33, T25, T29, X33, in_order13_out_aa(T25, T32)) → U5_aa(T33, T25, T29, X33, T32, in_order13_in_aa(T29, T31))
U5_aa(T33, T25, T29, X33, T32, in_order13_out_aa(T29, T31)) → U6_aa(T33, T25, T29, X33, app26_in_aaaa(T32, T33, T31, X33))
app26_in_aaaa([], T46, T47, .(T46, T47)) → app26_out_aaaa([], T46, T47, .(T46, T47))
app26_in_aaaa(.(T56, T60), T61, T62, .(T56, X60)) → U7_aaaa(T56, T60, T61, T62, X60, app26_in_aaaa(T60, T61, T62, X60))
U7_aaaa(T56, T60, T61, T62, X60, app26_out_aaaa(T60, T61, T62, X60)) → app26_out_aaaa(.(T56, T60), T61, T62, .(T56, X60))
U6_aa(T33, T25, T29, X33, app26_out_aaaa(T32, T33, T31, X33)) → in_order13_out_aa(tree(T33, T25, T29), X33)
U2_aa(T30, T25, T29, X33, in_order13_out_aa(T25, T28)) → U3_aa(T30, T25, T29, X33, in_order13_in_aa(T29, X32))
U3_aa(T30, T25, T29, X33, in_order13_out_aa(T29, X32)) → in_order13_out_aa(tree(T30, T25, T29), X33)
U1_aa(T27, T25, T26, X33, in_order13_out_aa(T25, X31)) → in_order13_out_aa(tree(T27, T25, T26), X33)
U9_ag(T13, T12, in_order13_out_aa(T12, X10)) → in_order1_out_ag(tree(T13, void, T12), [])
in_order1_in_ag(tree(T86, tree(T84, T82, T83), T85), []) → U10_ag(T86, T84, T82, T83, T85, in_order13_in_aa(T82, X94))
U10_ag(T86, T84, T82, T83, T85, in_order13_out_aa(T82, X94)) → in_order1_out_ag(tree(T86, tree(T84, T82, T83), T85), [])
in_order1_in_ag(tree(T91, tree(T89, T82, T88), T90), []) → U11_ag(T91, T89, T82, T88, T90, in_order13_in_aa(T82, T87))
U11_ag(T91, T89, T82, T88, T90, in_order13_out_aa(T82, T87)) → U12_ag(T91, T89, T82, T88, T90, in_order13_in_aa(T88, X95))
U12_ag(T91, T89, T82, T88, T90, in_order13_out_aa(T88, X95)) → in_order1_out_ag(tree(T91, tree(T89, T82, T88), T90), [])
in_order1_in_ag(tree(T96, tree(T94, T82, T88), T95), []) → U13_ag(T96, T94, T82, T88, T95, in_order13_in_aa(T82, T93))
U13_ag(T96, T94, T82, T88, T95, in_order13_out_aa(T82, T93)) → U14_ag(T96, T94, T82, T88, T95, T93, in_order13_in_aa(T88, T92))
U14_ag(T96, T94, T82, T88, T95, T93, in_order13_out_aa(T88, T92)) → U15_ag(T96, T94, T82, T88, T95, app26_in_aaaa(T93, T94, T92, X96))
U15_ag(T96, T94, T82, T88, T95, app26_out_aaaa(T93, T94, T92, X96)) → in_order1_out_ag(tree(T96, tree(T94, T82, T88), T95), [])
in_order1_in_ag(tree(T103, tree(T94, T82, T88), T102), []) → U16_ag(T103, T94, T82, T88, T102, in_order13_in_aa(T82, T93))
U16_ag(T103, T94, T82, T88, T102, in_order13_out_aa(T82, T93)) → U17_ag(T103, T94, T82, T88, T102, T93, in_order13_in_aa(T88, T92))
U17_ag(T103, T94, T82, T88, T102, T93, in_order13_out_aa(T88, T92)) → U18_ag(T103, T94, T82, T88, T102, app26_in_aaaa(T93, T94, T92, T101))
U18_ag(T103, T94, T82, T88, T102, app26_out_aaaa(T93, T94, T92, T101)) → U19_ag(T103, T94, T82, T88, T102, in_order13_in_aa(T102, X10))
U19_ag(T103, T94, T82, T88, T102, in_order13_out_aa(T102, X10)) → in_order1_out_ag(tree(T103, tree(T94, T82, T88), T102), [])
in_order1_in_ag(tree(T137, void, T136), T132) → U20_ag(T137, T136, T132, in_order13_in_aa(T136, X125))
U20_ag(T137, T136, T132, in_order13_out_aa(T136, X125)) → in_order1_out_ag(tree(T137, void, T136), T132)
in_order1_in_ag(tree(T153, void, T136), .(T153, T154)) → U21_ag(T153, T136, T154, in_order13_in_ag(T136, T154))
in_order13_in_ag(void, []) → in_order13_out_ag(void, [])
in_order13_in_ag(tree(T27, T25, T26), X33) → U1_ag(T27, T25, T26, X33, in_order13_in_aa(T25, X31))
U1_ag(T27, T25, T26, X33, in_order13_out_aa(T25, X31)) → in_order13_out_ag(tree(T27, T25, T26), X33)
in_order13_in_ag(tree(T30, T25, T29), X33) → U2_ag(T30, T25, T29, X33, in_order13_in_aa(T25, T28))
U2_ag(T30, T25, T29, X33, in_order13_out_aa(T25, T28)) → U3_ag(T30, T25, T29, X33, in_order13_in_aa(T29, X32))
U3_ag(T30, T25, T29, X33, in_order13_out_aa(T29, X32)) → in_order13_out_ag(tree(T30, T25, T29), X33)
in_order13_in_ag(tree(T33, T25, T29), X33) → U4_ag(T33, T25, T29, X33, in_order13_in_aa(T25, T32))
U4_ag(T33, T25, T29, X33, in_order13_out_aa(T25, T32)) → U5_ag(T33, T25, T29, X33, T32, in_order13_in_aa(T29, T31))
U5_ag(T33, T25, T29, X33, T32, in_order13_out_aa(T29, T31)) → U6_ag(T33, T25, T29, X33, app26_in_aaag(T32, T33, T31, X33))
app26_in_aaag([], T46, T47, .(T46, T47)) → app26_out_aaag([], T46, T47, .(T46, T47))
app26_in_aaag(.(T56, T60), T61, T62, .(T56, X60)) → U7_aaag(T56, T60, T61, T62, X60, app26_in_aaag(T60, T61, T62, X60))
U7_aaag(T56, T60, T61, T62, X60, app26_out_aaag(T60, T61, T62, X60)) → app26_out_aaag(.(T56, T60), T61, T62, .(T56, X60))
U6_ag(T33, T25, T29, X33, app26_out_aaag(T32, T33, T31, X33)) → in_order13_out_ag(tree(T33, T25, T29), X33)
U21_ag(T153, T136, T154, in_order13_out_ag(T136, T154)) → in_order1_out_ag(tree(T153, void, T136), .(T153, T154))
in_order1_in_ag(tree(T168, tree(T166, T164, T165), T167), T132) → U22_ag(T168, T166, T164, T165, T167, T132, in_order13_in_aa(T164, X158))
U22_ag(T168, T166, T164, T165, T167, T132, in_order13_out_aa(T164, X158)) → in_order1_out_ag(tree(T168, tree(T166, T164, T165), T167), T132)
in_order1_in_ag(tree(T173, tree(T171, T164, T170), T172), T132) → U23_ag(T173, T171, T164, T170, T172, T132, in_order13_in_aa(T164, T169))
U23_ag(T173, T171, T164, T170, T172, T132, in_order13_out_aa(T164, T169)) → U24_ag(T173, T171, T164, T170, T172, T132, in_order13_in_aa(T170, X159))
U24_ag(T173, T171, T164, T170, T172, T132, in_order13_out_aa(T170, X159)) → in_order1_out_ag(tree(T173, tree(T171, T164, T170), T172), T132)
in_order1_in_ag(tree(T179, tree(T177, T164, T170), T178), T132) → U25_ag(T179, T177, T164, T170, T178, T132, in_order13_in_aa(T164, T176))
U25_ag(T179, T177, T164, T170, T178, T132, in_order13_out_aa(T164, T176)) → U26_ag(T179, T177, T164, T170, T178, T132, T176, in_order13_in_aa(T170, T175))
U26_ag(T179, T177, T164, T170, T178, T132, T176, in_order13_out_aa(T170, T175)) → U27_ag(T179, T177, T164, T170, T178, T132, app26_in_aaaa(T176, T177, T175, X160))
U27_ag(T179, T177, T164, T170, T178, T132, app26_out_aaaa(T176, T177, T175, X160)) → in_order1_out_ag(tree(T179, tree(T177, T164, T170), T178), T132)
in_order1_in_ag(tree(T187, tree(T177, T164, T170), T186), T132) → U28_ag(T187, T177, T164, T170, T186, T132, in_order13_in_aa(T164, T176))
U28_ag(T187, T177, T164, T170, T186, T132, in_order13_out_aa(T164, T176)) → U29_ag(T187, T177, T164, T170, T186, T132, T176, in_order13_in_aa(T170, T175))
U29_ag(T187, T177, T164, T170, T186, T132, T176, in_order13_out_aa(T170, T175)) → U30_ag(T187, T177, T164, T170, T186, T132, app26_in_aaaa(T176, T177, T175, T185))
U30_ag(T187, T177, T164, T170, T186, T132, app26_out_aaaa(T176, T177, T175, T185)) → U31_ag(T187, T177, T164, T170, T186, T132, in_order13_in_aa(T186, X125))
U31_ag(T187, T177, T164, T170, T186, T132, in_order13_out_aa(T186, X125)) → in_order1_out_ag(tree(T187, tree(T177, T164, T170), T186), T132)
in_order1_in_ag(tree(T209, tree(T177, T164, T170), T186), .(T209, T210)) → U32_ag(T209, T177, T164, T170, T186, T210, in_order13_in_aa(T164, T176))
U32_ag(T209, T177, T164, T170, T186, T210, in_order13_out_aa(T164, T176)) → U33_ag(T209, T177, T164, T170, T186, T210, T176, in_order13_in_aa(T170, T175))
U33_ag(T209, T177, T164, T170, T186, T210, T176, in_order13_out_aa(T170, T175)) → U34_ag(T209, T177, T164, T170, T186, T210, app26_in_aaag(T176, T177, T175, []))
U34_ag(T209, T177, T164, T170, T186, T210, app26_out_aaag(T176, T177, T175, [])) → U35_ag(T209, T177, T164, T170, T186, T210, in_order13_in_ag(T186, T210))
U35_ag(T209, T177, T164, T170, T186, T210, in_order13_out_ag(T186, T210)) → in_order1_out_ag(tree(T209, tree(T177, T164, T170), T186), .(T209, T210))
in_order1_in_ag(tree(T227, tree(T177, T164, T170), T186), .(T221, T225)) → U36_ag(T227, T177, T164, T170, T186, T221, T225, in_order13_in_aa(T164, T176))
U36_ag(T227, T177, T164, T170, T186, T221, T225, in_order13_out_aa(T164, T176)) → U37_ag(T227, T177, T164, T170, T186, T221, T225, T176, in_order13_in_aa(T170, T175))
U37_ag(T227, T177, T164, T170, T186, T221, T225, T176, in_order13_out_aa(T170, T175)) → U38_ag(T227, T177, T164, T170, T186, T221, T225, app26_in_aaaa(T176, T177, T175, .(T221, T226)))
U38_ag(T227, T177, T164, T170, T186, T221, T225, app26_out_aaaa(T176, T177, T175, .(T221, T226))) → U39_ag(T227, T177, T164, T170, T186, T221, T225, T226, in_order13_in_aa(T186, T228))
U39_ag(T227, T177, T164, T170, T186, T221, T225, T226, in_order13_out_aa(T186, T228)) → U40_ag(T227, T177, T164, T170, T186, T221, T225, app83_in_aaag(T226, T227, T228, T225))
app83_in_aaag([], T241, T242, .(T241, T242)) → app83_out_aaag([], T241, T242, .(T241, T242))
app83_in_aaag(.(T253, T258), T259, T260, .(T253, T257)) → U8_aaag(T253, T258, T259, T260, T257, app83_in_aaag(T258, T259, T260, T257))
U8_aaag(T253, T258, T259, T260, T257, app83_out_aaag(T258, T259, T260, T257)) → app83_out_aaag(.(T253, T258), T259, T260, .(T253, T257))
U40_ag(T227, T177, T164, T170, T186, T221, T225, app83_out_aaag(T226, T227, T228, T225)) → in_order1_out_ag(tree(T227, tree(T177, T164, T170), T186), .(T221, T225))
APP83_IN_AAAG(.(T253, T258), T259, T260, .(T253, T257)) → APP83_IN_AAAG(T258, T259, T260, T257)
APP83_IN_AAAG(.(T257)) → APP83_IN_AAAG(T257)
From the DPs we obtained the following set of size-change graphs:
APP26_IN_AAAG(.(T56, T60), T61, T62, .(T56, X60)) → APP26_IN_AAAG(T60, T61, T62, X60)
in_order1_in_ag(void, []) → in_order1_out_ag(void, [])
in_order1_in_ag(tree(T13, void, T12), []) → U9_ag(T13, T12, in_order13_in_aa(T12, X10))
in_order13_in_aa(void, []) → in_order13_out_aa(void, [])
in_order13_in_aa(tree(T27, T25, T26), X33) → U1_aa(T27, T25, T26, X33, in_order13_in_aa(T25, X31))
in_order13_in_aa(tree(T30, T25, T29), X33) → U2_aa(T30, T25, T29, X33, in_order13_in_aa(T25, T28))
in_order13_in_aa(tree(T33, T25, T29), X33) → U4_aa(T33, T25, T29, X33, in_order13_in_aa(T25, T32))
U4_aa(T33, T25, T29, X33, in_order13_out_aa(T25, T32)) → U5_aa(T33, T25, T29, X33, T32, in_order13_in_aa(T29, T31))
U5_aa(T33, T25, T29, X33, T32, in_order13_out_aa(T29, T31)) → U6_aa(T33, T25, T29, X33, app26_in_aaaa(T32, T33, T31, X33))
app26_in_aaaa([], T46, T47, .(T46, T47)) → app26_out_aaaa([], T46, T47, .(T46, T47))
app26_in_aaaa(.(T56, T60), T61, T62, .(T56, X60)) → U7_aaaa(T56, T60, T61, T62, X60, app26_in_aaaa(T60, T61, T62, X60))
U7_aaaa(T56, T60, T61, T62, X60, app26_out_aaaa(T60, T61, T62, X60)) → app26_out_aaaa(.(T56, T60), T61, T62, .(T56, X60))
U6_aa(T33, T25, T29, X33, app26_out_aaaa(T32, T33, T31, X33)) → in_order13_out_aa(tree(T33, T25, T29), X33)
U2_aa(T30, T25, T29, X33, in_order13_out_aa(T25, T28)) → U3_aa(T30, T25, T29, X33, in_order13_in_aa(T29, X32))
U3_aa(T30, T25, T29, X33, in_order13_out_aa(T29, X32)) → in_order13_out_aa(tree(T30, T25, T29), X33)
U1_aa(T27, T25, T26, X33, in_order13_out_aa(T25, X31)) → in_order13_out_aa(tree(T27, T25, T26), X33)
U9_ag(T13, T12, in_order13_out_aa(T12, X10)) → in_order1_out_ag(tree(T13, void, T12), [])
in_order1_in_ag(tree(T86, tree(T84, T82, T83), T85), []) → U10_ag(T86, T84, T82, T83, T85, in_order13_in_aa(T82, X94))
U10_ag(T86, T84, T82, T83, T85, in_order13_out_aa(T82, X94)) → in_order1_out_ag(tree(T86, tree(T84, T82, T83), T85), [])
in_order1_in_ag(tree(T91, tree(T89, T82, T88), T90), []) → U11_ag(T91, T89, T82, T88, T90, in_order13_in_aa(T82, T87))
U11_ag(T91, T89, T82, T88, T90, in_order13_out_aa(T82, T87)) → U12_ag(T91, T89, T82, T88, T90, in_order13_in_aa(T88, X95))
U12_ag(T91, T89, T82, T88, T90, in_order13_out_aa(T88, X95)) → in_order1_out_ag(tree(T91, tree(T89, T82, T88), T90), [])
in_order1_in_ag(tree(T96, tree(T94, T82, T88), T95), []) → U13_ag(T96, T94, T82, T88, T95, in_order13_in_aa(T82, T93))
U13_ag(T96, T94, T82, T88, T95, in_order13_out_aa(T82, T93)) → U14_ag(T96, T94, T82, T88, T95, T93, in_order13_in_aa(T88, T92))
U14_ag(T96, T94, T82, T88, T95, T93, in_order13_out_aa(T88, T92)) → U15_ag(T96, T94, T82, T88, T95, app26_in_aaaa(T93, T94, T92, X96))
U15_ag(T96, T94, T82, T88, T95, app26_out_aaaa(T93, T94, T92, X96)) → in_order1_out_ag(tree(T96, tree(T94, T82, T88), T95), [])
in_order1_in_ag(tree(T103, tree(T94, T82, T88), T102), []) → U16_ag(T103, T94, T82, T88, T102, in_order13_in_aa(T82, T93))
U16_ag(T103, T94, T82, T88, T102, in_order13_out_aa(T82, T93)) → U17_ag(T103, T94, T82, T88, T102, T93, in_order13_in_aa(T88, T92))
U17_ag(T103, T94, T82, T88, T102, T93, in_order13_out_aa(T88, T92)) → U18_ag(T103, T94, T82, T88, T102, app26_in_aaaa(T93, T94, T92, T101))
U18_ag(T103, T94, T82, T88, T102, app26_out_aaaa(T93, T94, T92, T101)) → U19_ag(T103, T94, T82, T88, T102, in_order13_in_aa(T102, X10))
U19_ag(T103, T94, T82, T88, T102, in_order13_out_aa(T102, X10)) → in_order1_out_ag(tree(T103, tree(T94, T82, T88), T102), [])
in_order1_in_ag(tree(T137, void, T136), T132) → U20_ag(T137, T136, T132, in_order13_in_aa(T136, X125))
U20_ag(T137, T136, T132, in_order13_out_aa(T136, X125)) → in_order1_out_ag(tree(T137, void, T136), T132)
in_order1_in_ag(tree(T153, void, T136), .(T153, T154)) → U21_ag(T153, T136, T154, in_order13_in_ag(T136, T154))
in_order13_in_ag(void, []) → in_order13_out_ag(void, [])
in_order13_in_ag(tree(T27, T25, T26), X33) → U1_ag(T27, T25, T26, X33, in_order13_in_aa(T25, X31))
U1_ag(T27, T25, T26, X33, in_order13_out_aa(T25, X31)) → in_order13_out_ag(tree(T27, T25, T26), X33)
in_order13_in_ag(tree(T30, T25, T29), X33) → U2_ag(T30, T25, T29, X33, in_order13_in_aa(T25, T28))
U2_ag(T30, T25, T29, X33, in_order13_out_aa(T25, T28)) → U3_ag(T30, T25, T29, X33, in_order13_in_aa(T29, X32))
U3_ag(T30, T25, T29, X33, in_order13_out_aa(T29, X32)) → in_order13_out_ag(tree(T30, T25, T29), X33)
in_order13_in_ag(tree(T33, T25, T29), X33) → U4_ag(T33, T25, T29, X33, in_order13_in_aa(T25, T32))
U4_ag(T33, T25, T29, X33, in_order13_out_aa(T25, T32)) → U5_ag(T33, T25, T29, X33, T32, in_order13_in_aa(T29, T31))
U5_ag(T33, T25, T29, X33, T32, in_order13_out_aa(T29, T31)) → U6_ag(T33, T25, T29, X33, app26_in_aaag(T32, T33, T31, X33))
app26_in_aaag([], T46, T47, .(T46, T47)) → app26_out_aaag([], T46, T47, .(T46, T47))
app26_in_aaag(.(T56, T60), T61, T62, .(T56, X60)) → U7_aaag(T56, T60, T61, T62, X60, app26_in_aaag(T60, T61, T62, X60))
U7_aaag(T56, T60, T61, T62, X60, app26_out_aaag(T60, T61, T62, X60)) → app26_out_aaag(.(T56, T60), T61, T62, .(T56, X60))
U6_ag(T33, T25, T29, X33, app26_out_aaag(T32, T33, T31, X33)) → in_order13_out_ag(tree(T33, T25, T29), X33)
U21_ag(T153, T136, T154, in_order13_out_ag(T136, T154)) → in_order1_out_ag(tree(T153, void, T136), .(T153, T154))
in_order1_in_ag(tree(T168, tree(T166, T164, T165), T167), T132) → U22_ag(T168, T166, T164, T165, T167, T132, in_order13_in_aa(T164, X158))
U22_ag(T168, T166, T164, T165, T167, T132, in_order13_out_aa(T164, X158)) → in_order1_out_ag(tree(T168, tree(T166, T164, T165), T167), T132)
in_order1_in_ag(tree(T173, tree(T171, T164, T170), T172), T132) → U23_ag(T173, T171, T164, T170, T172, T132, in_order13_in_aa(T164, T169))
U23_ag(T173, T171, T164, T170, T172, T132, in_order13_out_aa(T164, T169)) → U24_ag(T173, T171, T164, T170, T172, T132, in_order13_in_aa(T170, X159))
U24_ag(T173, T171, T164, T170, T172, T132, in_order13_out_aa(T170, X159)) → in_order1_out_ag(tree(T173, tree(T171, T164, T170), T172), T132)
in_order1_in_ag(tree(T179, tree(T177, T164, T170), T178), T132) → U25_ag(T179, T177, T164, T170, T178, T132, in_order13_in_aa(T164, T176))
U25_ag(T179, T177, T164, T170, T178, T132, in_order13_out_aa(T164, T176)) → U26_ag(T179, T177, T164, T170, T178, T132, T176, in_order13_in_aa(T170, T175))
U26_ag(T179, T177, T164, T170, T178, T132, T176, in_order13_out_aa(T170, T175)) → U27_ag(T179, T177, T164, T170, T178, T132, app26_in_aaaa(T176, T177, T175, X160))
U27_ag(T179, T177, T164, T170, T178, T132, app26_out_aaaa(T176, T177, T175, X160)) → in_order1_out_ag(tree(T179, tree(T177, T164, T170), T178), T132)
in_order1_in_ag(tree(T187, tree(T177, T164, T170), T186), T132) → U28_ag(T187, T177, T164, T170, T186, T132, in_order13_in_aa(T164, T176))
U28_ag(T187, T177, T164, T170, T186, T132, in_order13_out_aa(T164, T176)) → U29_ag(T187, T177, T164, T170, T186, T132, T176, in_order13_in_aa(T170, T175))
U29_ag(T187, T177, T164, T170, T186, T132, T176, in_order13_out_aa(T170, T175)) → U30_ag(T187, T177, T164, T170, T186, T132, app26_in_aaaa(T176, T177, T175, T185))
U30_ag(T187, T177, T164, T170, T186, T132, app26_out_aaaa(T176, T177, T175, T185)) → U31_ag(T187, T177, T164, T170, T186, T132, in_order13_in_aa(T186, X125))
U31_ag(T187, T177, T164, T170, T186, T132, in_order13_out_aa(T186, X125)) → in_order1_out_ag(tree(T187, tree(T177, T164, T170), T186), T132)
in_order1_in_ag(tree(T209, tree(T177, T164, T170), T186), .(T209, T210)) → U32_ag(T209, T177, T164, T170, T186, T210, in_order13_in_aa(T164, T176))
U32_ag(T209, T177, T164, T170, T186, T210, in_order13_out_aa(T164, T176)) → U33_ag(T209, T177, T164, T170, T186, T210, T176, in_order13_in_aa(T170, T175))
U33_ag(T209, T177, T164, T170, T186, T210, T176, in_order13_out_aa(T170, T175)) → U34_ag(T209, T177, T164, T170, T186, T210, app26_in_aaag(T176, T177, T175, []))
U34_ag(T209, T177, T164, T170, T186, T210, app26_out_aaag(T176, T177, T175, [])) → U35_ag(T209, T177, T164, T170, T186, T210, in_order13_in_ag(T186, T210))
U35_ag(T209, T177, T164, T170, T186, T210, in_order13_out_ag(T186, T210)) → in_order1_out_ag(tree(T209, tree(T177, T164, T170), T186), .(T209, T210))
in_order1_in_ag(tree(T227, tree(T177, T164, T170), T186), .(T221, T225)) → U36_ag(T227, T177, T164, T170, T186, T221, T225, in_order13_in_aa(T164, T176))
U36_ag(T227, T177, T164, T170, T186, T221, T225, in_order13_out_aa(T164, T176)) → U37_ag(T227, T177, T164, T170, T186, T221, T225, T176, in_order13_in_aa(T170, T175))
U37_ag(T227, T177, T164, T170, T186, T221, T225, T176, in_order13_out_aa(T170, T175)) → U38_ag(T227, T177, T164, T170, T186, T221, T225, app26_in_aaaa(T176, T177, T175, .(T221, T226)))
U38_ag(T227, T177, T164, T170, T186, T221, T225, app26_out_aaaa(T176, T177, T175, .(T221, T226))) → U39_ag(T227, T177, T164, T170, T186, T221, T225, T226, in_order13_in_aa(T186, T228))
U39_ag(T227, T177, T164, T170, T186, T221, T225, T226, in_order13_out_aa(T186, T228)) → U40_ag(T227, T177, T164, T170, T186, T221, T225, app83_in_aaag(T226, T227, T228, T225))
app83_in_aaag([], T241, T242, .(T241, T242)) → app83_out_aaag([], T241, T242, .(T241, T242))
app83_in_aaag(.(T253, T258), T259, T260, .(T253, T257)) → U8_aaag(T253, T258, T259, T260, T257, app83_in_aaag(T258, T259, T260, T257))
U8_aaag(T253, T258, T259, T260, T257, app83_out_aaag(T258, T259, T260, T257)) → app83_out_aaag(.(T253, T258), T259, T260, .(T253, T257))
U40_ag(T227, T177, T164, T170, T186, T221, T225, app83_out_aaag(T226, T227, T228, T225)) → in_order1_out_ag(tree(T227, tree(T177, T164, T170), T186), .(T221, T225))
APP26_IN_AAAG(.(T56, T60), T61, T62, .(T56, X60)) → APP26_IN_AAAG(T60, T61, T62, X60)
APP26_IN_AAAG(.(X60)) → APP26_IN_AAAG(X60)
From the DPs we obtained the following set of size-change graphs:
APP26_IN_AAAA(.(T56, T60), T61, T62, .(T56, X60)) → APP26_IN_AAAA(T60, T61, T62, X60)
in_order1_in_ag(void, []) → in_order1_out_ag(void, [])
in_order1_in_ag(tree(T13, void, T12), []) → U9_ag(T13, T12, in_order13_in_aa(T12, X10))
in_order13_in_aa(void, []) → in_order13_out_aa(void, [])
in_order13_in_aa(tree(T27, T25, T26), X33) → U1_aa(T27, T25, T26, X33, in_order13_in_aa(T25, X31))
in_order13_in_aa(tree(T30, T25, T29), X33) → U2_aa(T30, T25, T29, X33, in_order13_in_aa(T25, T28))
in_order13_in_aa(tree(T33, T25, T29), X33) → U4_aa(T33, T25, T29, X33, in_order13_in_aa(T25, T32))
U4_aa(T33, T25, T29, X33, in_order13_out_aa(T25, T32)) → U5_aa(T33, T25, T29, X33, T32, in_order13_in_aa(T29, T31))
U5_aa(T33, T25, T29, X33, T32, in_order13_out_aa(T29, T31)) → U6_aa(T33, T25, T29, X33, app26_in_aaaa(T32, T33, T31, X33))
app26_in_aaaa([], T46, T47, .(T46, T47)) → app26_out_aaaa([], T46, T47, .(T46, T47))
app26_in_aaaa(.(T56, T60), T61, T62, .(T56, X60)) → U7_aaaa(T56, T60, T61, T62, X60, app26_in_aaaa(T60, T61, T62, X60))
U7_aaaa(T56, T60, T61, T62, X60, app26_out_aaaa(T60, T61, T62, X60)) → app26_out_aaaa(.(T56, T60), T61, T62, .(T56, X60))
U6_aa(T33, T25, T29, X33, app26_out_aaaa(T32, T33, T31, X33)) → in_order13_out_aa(tree(T33, T25, T29), X33)
U2_aa(T30, T25, T29, X33, in_order13_out_aa(T25, T28)) → U3_aa(T30, T25, T29, X33, in_order13_in_aa(T29, X32))
U3_aa(T30, T25, T29, X33, in_order13_out_aa(T29, X32)) → in_order13_out_aa(tree(T30, T25, T29), X33)
U1_aa(T27, T25, T26, X33, in_order13_out_aa(T25, X31)) → in_order13_out_aa(tree(T27, T25, T26), X33)
U9_ag(T13, T12, in_order13_out_aa(T12, X10)) → in_order1_out_ag(tree(T13, void, T12), [])
in_order1_in_ag(tree(T86, tree(T84, T82, T83), T85), []) → U10_ag(T86, T84, T82, T83, T85, in_order13_in_aa(T82, X94))
U10_ag(T86, T84, T82, T83, T85, in_order13_out_aa(T82, X94)) → in_order1_out_ag(tree(T86, tree(T84, T82, T83), T85), [])
in_order1_in_ag(tree(T91, tree(T89, T82, T88), T90), []) → U11_ag(T91, T89, T82, T88, T90, in_order13_in_aa(T82, T87))
U11_ag(T91, T89, T82, T88, T90, in_order13_out_aa(T82, T87)) → U12_ag(T91, T89, T82, T88, T90, in_order13_in_aa(T88, X95))
U12_ag(T91, T89, T82, T88, T90, in_order13_out_aa(T88, X95)) → in_order1_out_ag(tree(T91, tree(T89, T82, T88), T90), [])
in_order1_in_ag(tree(T96, tree(T94, T82, T88), T95), []) → U13_ag(T96, T94, T82, T88, T95, in_order13_in_aa(T82, T93))
U13_ag(T96, T94, T82, T88, T95, in_order13_out_aa(T82, T93)) → U14_ag(T96, T94, T82, T88, T95, T93, in_order13_in_aa(T88, T92))
U14_ag(T96, T94, T82, T88, T95, T93, in_order13_out_aa(T88, T92)) → U15_ag(T96, T94, T82, T88, T95, app26_in_aaaa(T93, T94, T92, X96))
U15_ag(T96, T94, T82, T88, T95, app26_out_aaaa(T93, T94, T92, X96)) → in_order1_out_ag(tree(T96, tree(T94, T82, T88), T95), [])
in_order1_in_ag(tree(T103, tree(T94, T82, T88), T102), []) → U16_ag(T103, T94, T82, T88, T102, in_order13_in_aa(T82, T93))
U16_ag(T103, T94, T82, T88, T102, in_order13_out_aa(T82, T93)) → U17_ag(T103, T94, T82, T88, T102, T93, in_order13_in_aa(T88, T92))
U17_ag(T103, T94, T82, T88, T102, T93, in_order13_out_aa(T88, T92)) → U18_ag(T103, T94, T82, T88, T102, app26_in_aaaa(T93, T94, T92, T101))
U18_ag(T103, T94, T82, T88, T102, app26_out_aaaa(T93, T94, T92, T101)) → U19_ag(T103, T94, T82, T88, T102, in_order13_in_aa(T102, X10))
U19_ag(T103, T94, T82, T88, T102, in_order13_out_aa(T102, X10)) → in_order1_out_ag(tree(T103, tree(T94, T82, T88), T102), [])
in_order1_in_ag(tree(T137, void, T136), T132) → U20_ag(T137, T136, T132, in_order13_in_aa(T136, X125))
U20_ag(T137, T136, T132, in_order13_out_aa(T136, X125)) → in_order1_out_ag(tree(T137, void, T136), T132)
in_order1_in_ag(tree(T153, void, T136), .(T153, T154)) → U21_ag(T153, T136, T154, in_order13_in_ag(T136, T154))
in_order13_in_ag(void, []) → in_order13_out_ag(void, [])
in_order13_in_ag(tree(T27, T25, T26), X33) → U1_ag(T27, T25, T26, X33, in_order13_in_aa(T25, X31))
U1_ag(T27, T25, T26, X33, in_order13_out_aa(T25, X31)) → in_order13_out_ag(tree(T27, T25, T26), X33)
in_order13_in_ag(tree(T30, T25, T29), X33) → U2_ag(T30, T25, T29, X33, in_order13_in_aa(T25, T28))
U2_ag(T30, T25, T29, X33, in_order13_out_aa(T25, T28)) → U3_ag(T30, T25, T29, X33, in_order13_in_aa(T29, X32))
U3_ag(T30, T25, T29, X33, in_order13_out_aa(T29, X32)) → in_order13_out_ag(tree(T30, T25, T29), X33)
in_order13_in_ag(tree(T33, T25, T29), X33) → U4_ag(T33, T25, T29, X33, in_order13_in_aa(T25, T32))
U4_ag(T33, T25, T29, X33, in_order13_out_aa(T25, T32)) → U5_ag(T33, T25, T29, X33, T32, in_order13_in_aa(T29, T31))
U5_ag(T33, T25, T29, X33, T32, in_order13_out_aa(T29, T31)) → U6_ag(T33, T25, T29, X33, app26_in_aaag(T32, T33, T31, X33))
app26_in_aaag([], T46, T47, .(T46, T47)) → app26_out_aaag([], T46, T47, .(T46, T47))
app26_in_aaag(.(T56, T60), T61, T62, .(T56, X60)) → U7_aaag(T56, T60, T61, T62, X60, app26_in_aaag(T60, T61, T62, X60))
U7_aaag(T56, T60, T61, T62, X60, app26_out_aaag(T60, T61, T62, X60)) → app26_out_aaag(.(T56, T60), T61, T62, .(T56, X60))
U6_ag(T33, T25, T29, X33, app26_out_aaag(T32, T33, T31, X33)) → in_order13_out_ag(tree(T33, T25, T29), X33)
U21_ag(T153, T136, T154, in_order13_out_ag(T136, T154)) → in_order1_out_ag(tree(T153, void, T136), .(T153, T154))
in_order1_in_ag(tree(T168, tree(T166, T164, T165), T167), T132) → U22_ag(T168, T166, T164, T165, T167, T132, in_order13_in_aa(T164, X158))
U22_ag(T168, T166, T164, T165, T167, T132, in_order13_out_aa(T164, X158)) → in_order1_out_ag(tree(T168, tree(T166, T164, T165), T167), T132)
in_order1_in_ag(tree(T173, tree(T171, T164, T170), T172), T132) → U23_ag(T173, T171, T164, T170, T172, T132, in_order13_in_aa(T164, T169))
U23_ag(T173, T171, T164, T170, T172, T132, in_order13_out_aa(T164, T169)) → U24_ag(T173, T171, T164, T170, T172, T132, in_order13_in_aa(T170, X159))
U24_ag(T173, T171, T164, T170, T172, T132, in_order13_out_aa(T170, X159)) → in_order1_out_ag(tree(T173, tree(T171, T164, T170), T172), T132)
in_order1_in_ag(tree(T179, tree(T177, T164, T170), T178), T132) → U25_ag(T179, T177, T164, T170, T178, T132, in_order13_in_aa(T164, T176))
U25_ag(T179, T177, T164, T170, T178, T132, in_order13_out_aa(T164, T176)) → U26_ag(T179, T177, T164, T170, T178, T132, T176, in_order13_in_aa(T170, T175))
U26_ag(T179, T177, T164, T170, T178, T132, T176, in_order13_out_aa(T170, T175)) → U27_ag(T179, T177, T164, T170, T178, T132, app26_in_aaaa(T176, T177, T175, X160))
U27_ag(T179, T177, T164, T170, T178, T132, app26_out_aaaa(T176, T177, T175, X160)) → in_order1_out_ag(tree(T179, tree(T177, T164, T170), T178), T132)
in_order1_in_ag(tree(T187, tree(T177, T164, T170), T186), T132) → U28_ag(T187, T177, T164, T170, T186, T132, in_order13_in_aa(T164, T176))
U28_ag(T187, T177, T164, T170, T186, T132, in_order13_out_aa(T164, T176)) → U29_ag(T187, T177, T164, T170, T186, T132, T176, in_order13_in_aa(T170, T175))
U29_ag(T187, T177, T164, T170, T186, T132, T176, in_order13_out_aa(T170, T175)) → U30_ag(T187, T177, T164, T170, T186, T132, app26_in_aaaa(T176, T177, T175, T185))
U30_ag(T187, T177, T164, T170, T186, T132, app26_out_aaaa(T176, T177, T175, T185)) → U31_ag(T187, T177, T164, T170, T186, T132, in_order13_in_aa(T186, X125))
U31_ag(T187, T177, T164, T170, T186, T132, in_order13_out_aa(T186, X125)) → in_order1_out_ag(tree(T187, tree(T177, T164, T170), T186), T132)
in_order1_in_ag(tree(T209, tree(T177, T164, T170), T186), .(T209, T210)) → U32_ag(T209, T177, T164, T170, T186, T210, in_order13_in_aa(T164, T176))
U32_ag(T209, T177, T164, T170, T186, T210, in_order13_out_aa(T164, T176)) → U33_ag(T209, T177, T164, T170, T186, T210, T176, in_order13_in_aa(T170, T175))
U33_ag(T209, T177, T164, T170, T186, T210, T176, in_order13_out_aa(T170, T175)) → U34_ag(T209, T177, T164, T170, T186, T210, app26_in_aaag(T176, T177, T175, []))
U34_ag(T209, T177, T164, T170, T186, T210, app26_out_aaag(T176, T177, T175, [])) → U35_ag(T209, T177, T164, T170, T186, T210, in_order13_in_ag(T186, T210))
U35_ag(T209, T177, T164, T170, T186, T210, in_order13_out_ag(T186, T210)) → in_order1_out_ag(tree(T209, tree(T177, T164, T170), T186), .(T209, T210))
in_order1_in_ag(tree(T227, tree(T177, T164, T170), T186), .(T221, T225)) → U36_ag(T227, T177, T164, T170, T186, T221, T225, in_order13_in_aa(T164, T176))
U36_ag(T227, T177, T164, T170, T186, T221, T225, in_order13_out_aa(T164, T176)) → U37_ag(T227, T177, T164, T170, T186, T221, T225, T176, in_order13_in_aa(T170, T175))
U37_ag(T227, T177, T164, T170, T186, T221, T225, T176, in_order13_out_aa(T170, T175)) → U38_ag(T227, T177, T164, T170, T186, T221, T225, app26_in_aaaa(T176, T177, T175, .(T221, T226)))
U38_ag(T227, T177, T164, T170, T186, T221, T225, app26_out_aaaa(T176, T177, T175, .(T221, T226))) → U39_ag(T227, T177, T164, T170, T186, T221, T225, T226, in_order13_in_aa(T186, T228))
U39_ag(T227, T177, T164, T170, T186, T221, T225, T226, in_order13_out_aa(T186, T228)) → U40_ag(T227, T177, T164, T170, T186, T221, T225, app83_in_aaag(T226, T227, T228, T225))
app83_in_aaag([], T241, T242, .(T241, T242)) → app83_out_aaag([], T241, T242, .(T241, T242))
app83_in_aaag(.(T253, T258), T259, T260, .(T253, T257)) → U8_aaag(T253, T258, T259, T260, T257, app83_in_aaag(T258, T259, T260, T257))
U8_aaag(T253, T258, T259, T260, T257, app83_out_aaag(T258, T259, T260, T257)) → app83_out_aaag(.(T253, T258), T259, T260, .(T253, T257))
U40_ag(T227, T177, T164, T170, T186, T221, T225, app83_out_aaag(T226, T227, T228, T225)) → in_order1_out_ag(tree(T227, tree(T177, T164, T170), T186), .(T221, T225))
APP26_IN_AAAA(.(T56, T60), T61, T62, .(T56, X60)) → APP26_IN_AAAA(T60, T61, T62, X60)
APP26_IN_AAAA → APP26_IN_AAAA
IN_ORDER13_IN_AA(tree(T30, T25, T29), X33) → U2_AA(T30, T25, T29, X33, in_order13_in_aa(T25, T28))
U2_AA(T30, T25, T29, X33, in_order13_out_aa(T25, T28)) → IN_ORDER13_IN_AA(T29, X32)
IN_ORDER13_IN_AA(tree(T27, T25, T26), X33) → IN_ORDER13_IN_AA(T25, X31)
IN_ORDER13_IN_AA(tree(T33, T25, T29), X33) → U4_AA(T33, T25, T29, X33, in_order13_in_aa(T25, T32))
U4_AA(T33, T25, T29, X33, in_order13_out_aa(T25, T32)) → IN_ORDER13_IN_AA(T29, T31)
in_order1_in_ag(void, []) → in_order1_out_ag(void, [])
in_order1_in_ag(tree(T13, void, T12), []) → U9_ag(T13, T12, in_order13_in_aa(T12, X10))
in_order13_in_aa(void, []) → in_order13_out_aa(void, [])
in_order13_in_aa(tree(T27, T25, T26), X33) → U1_aa(T27, T25, T26, X33, in_order13_in_aa(T25, X31))
in_order13_in_aa(tree(T30, T25, T29), X33) → U2_aa(T30, T25, T29, X33, in_order13_in_aa(T25, T28))
in_order13_in_aa(tree(T33, T25, T29), X33) → U4_aa(T33, T25, T29, X33, in_order13_in_aa(T25, T32))
U4_aa(T33, T25, T29, X33, in_order13_out_aa(T25, T32)) → U5_aa(T33, T25, T29, X33, T32, in_order13_in_aa(T29, T31))
U5_aa(T33, T25, T29, X33, T32, in_order13_out_aa(T29, T31)) → U6_aa(T33, T25, T29, X33, app26_in_aaaa(T32, T33, T31, X33))
app26_in_aaaa([], T46, T47, .(T46, T47)) → app26_out_aaaa([], T46, T47, .(T46, T47))
app26_in_aaaa(.(T56, T60), T61, T62, .(T56, X60)) → U7_aaaa(T56, T60, T61, T62, X60, app26_in_aaaa(T60, T61, T62, X60))
U7_aaaa(T56, T60, T61, T62, X60, app26_out_aaaa(T60, T61, T62, X60)) → app26_out_aaaa(.(T56, T60), T61, T62, .(T56, X60))
U6_aa(T33, T25, T29, X33, app26_out_aaaa(T32, T33, T31, X33)) → in_order13_out_aa(tree(T33, T25, T29), X33)
U2_aa(T30, T25, T29, X33, in_order13_out_aa(T25, T28)) → U3_aa(T30, T25, T29, X33, in_order13_in_aa(T29, X32))
U3_aa(T30, T25, T29, X33, in_order13_out_aa(T29, X32)) → in_order13_out_aa(tree(T30, T25, T29), X33)
U1_aa(T27, T25, T26, X33, in_order13_out_aa(T25, X31)) → in_order13_out_aa(tree(T27, T25, T26), X33)
U9_ag(T13, T12, in_order13_out_aa(T12, X10)) → in_order1_out_ag(tree(T13, void, T12), [])
in_order1_in_ag(tree(T86, tree(T84, T82, T83), T85), []) → U10_ag(T86, T84, T82, T83, T85, in_order13_in_aa(T82, X94))
U10_ag(T86, T84, T82, T83, T85, in_order13_out_aa(T82, X94)) → in_order1_out_ag(tree(T86, tree(T84, T82, T83), T85), [])
in_order1_in_ag(tree(T91, tree(T89, T82, T88), T90), []) → U11_ag(T91, T89, T82, T88, T90, in_order13_in_aa(T82, T87))
U11_ag(T91, T89, T82, T88, T90, in_order13_out_aa(T82, T87)) → U12_ag(T91, T89, T82, T88, T90, in_order13_in_aa(T88, X95))
U12_ag(T91, T89, T82, T88, T90, in_order13_out_aa(T88, X95)) → in_order1_out_ag(tree(T91, tree(T89, T82, T88), T90), [])
in_order1_in_ag(tree(T96, tree(T94, T82, T88), T95), []) → U13_ag(T96, T94, T82, T88, T95, in_order13_in_aa(T82, T93))
U13_ag(T96, T94, T82, T88, T95, in_order13_out_aa(T82, T93)) → U14_ag(T96, T94, T82, T88, T95, T93, in_order13_in_aa(T88, T92))
U14_ag(T96, T94, T82, T88, T95, T93, in_order13_out_aa(T88, T92)) → U15_ag(T96, T94, T82, T88, T95, app26_in_aaaa(T93, T94, T92, X96))
U15_ag(T96, T94, T82, T88, T95, app26_out_aaaa(T93, T94, T92, X96)) → in_order1_out_ag(tree(T96, tree(T94, T82, T88), T95), [])
in_order1_in_ag(tree(T103, tree(T94, T82, T88), T102), []) → U16_ag(T103, T94, T82, T88, T102, in_order13_in_aa(T82, T93))
U16_ag(T103, T94, T82, T88, T102, in_order13_out_aa(T82, T93)) → U17_ag(T103, T94, T82, T88, T102, T93, in_order13_in_aa(T88, T92))
U17_ag(T103, T94, T82, T88, T102, T93, in_order13_out_aa(T88, T92)) → U18_ag(T103, T94, T82, T88, T102, app26_in_aaaa(T93, T94, T92, T101))
U18_ag(T103, T94, T82, T88, T102, app26_out_aaaa(T93, T94, T92, T101)) → U19_ag(T103, T94, T82, T88, T102, in_order13_in_aa(T102, X10))
U19_ag(T103, T94, T82, T88, T102, in_order13_out_aa(T102, X10)) → in_order1_out_ag(tree(T103, tree(T94, T82, T88), T102), [])
in_order1_in_ag(tree(T137, void, T136), T132) → U20_ag(T137, T136, T132, in_order13_in_aa(T136, X125))
U20_ag(T137, T136, T132, in_order13_out_aa(T136, X125)) → in_order1_out_ag(tree(T137, void, T136), T132)
in_order1_in_ag(tree(T153, void, T136), .(T153, T154)) → U21_ag(T153, T136, T154, in_order13_in_ag(T136, T154))
in_order13_in_ag(void, []) → in_order13_out_ag(void, [])
in_order13_in_ag(tree(T27, T25, T26), X33) → U1_ag(T27, T25, T26, X33, in_order13_in_aa(T25, X31))
U1_ag(T27, T25, T26, X33, in_order13_out_aa(T25, X31)) → in_order13_out_ag(tree(T27, T25, T26), X33)
in_order13_in_ag(tree(T30, T25, T29), X33) → U2_ag(T30, T25, T29, X33, in_order13_in_aa(T25, T28))
U2_ag(T30, T25, T29, X33, in_order13_out_aa(T25, T28)) → U3_ag(T30, T25, T29, X33, in_order13_in_aa(T29, X32))
U3_ag(T30, T25, T29, X33, in_order13_out_aa(T29, X32)) → in_order13_out_ag(tree(T30, T25, T29), X33)
in_order13_in_ag(tree(T33, T25, T29), X33) → U4_ag(T33, T25, T29, X33, in_order13_in_aa(T25, T32))
U4_ag(T33, T25, T29, X33, in_order13_out_aa(T25, T32)) → U5_ag(T33, T25, T29, X33, T32, in_order13_in_aa(T29, T31))
U5_ag(T33, T25, T29, X33, T32, in_order13_out_aa(T29, T31)) → U6_ag(T33, T25, T29, X33, app26_in_aaag(T32, T33, T31, X33))
app26_in_aaag([], T46, T47, .(T46, T47)) → app26_out_aaag([], T46, T47, .(T46, T47))
app26_in_aaag(.(T56, T60), T61, T62, .(T56, X60)) → U7_aaag(T56, T60, T61, T62, X60, app26_in_aaag(T60, T61, T62, X60))
U7_aaag(T56, T60, T61, T62, X60, app26_out_aaag(T60, T61, T62, X60)) → app26_out_aaag(.(T56, T60), T61, T62, .(T56, X60))
U6_ag(T33, T25, T29, X33, app26_out_aaag(T32, T33, T31, X33)) → in_order13_out_ag(tree(T33, T25, T29), X33)
U21_ag(T153, T136, T154, in_order13_out_ag(T136, T154)) → in_order1_out_ag(tree(T153, void, T136), .(T153, T154))
in_order1_in_ag(tree(T168, tree(T166, T164, T165), T167), T132) → U22_ag(T168, T166, T164, T165, T167, T132, in_order13_in_aa(T164, X158))
U22_ag(T168, T166, T164, T165, T167, T132, in_order13_out_aa(T164, X158)) → in_order1_out_ag(tree(T168, tree(T166, T164, T165), T167), T132)
in_order1_in_ag(tree(T173, tree(T171, T164, T170), T172), T132) → U23_ag(T173, T171, T164, T170, T172, T132, in_order13_in_aa(T164, T169))
U23_ag(T173, T171, T164, T170, T172, T132, in_order13_out_aa(T164, T169)) → U24_ag(T173, T171, T164, T170, T172, T132, in_order13_in_aa(T170, X159))
U24_ag(T173, T171, T164, T170, T172, T132, in_order13_out_aa(T170, X159)) → in_order1_out_ag(tree(T173, tree(T171, T164, T170), T172), T132)
in_order1_in_ag(tree(T179, tree(T177, T164, T170), T178), T132) → U25_ag(T179, T177, T164, T170, T178, T132, in_order13_in_aa(T164, T176))
U25_ag(T179, T177, T164, T170, T178, T132, in_order13_out_aa(T164, T176)) → U26_ag(T179, T177, T164, T170, T178, T132, T176, in_order13_in_aa(T170, T175))
U26_ag(T179, T177, T164, T170, T178, T132, T176, in_order13_out_aa(T170, T175)) → U27_ag(T179, T177, T164, T170, T178, T132, app26_in_aaaa(T176, T177, T175, X160))
U27_ag(T179, T177, T164, T170, T178, T132, app26_out_aaaa(T176, T177, T175, X160)) → in_order1_out_ag(tree(T179, tree(T177, T164, T170), T178), T132)
in_order1_in_ag(tree(T187, tree(T177, T164, T170), T186), T132) → U28_ag(T187, T177, T164, T170, T186, T132, in_order13_in_aa(T164, T176))
U28_ag(T187, T177, T164, T170, T186, T132, in_order13_out_aa(T164, T176)) → U29_ag(T187, T177, T164, T170, T186, T132, T176, in_order13_in_aa(T170, T175))
U29_ag(T187, T177, T164, T170, T186, T132, T176, in_order13_out_aa(T170, T175)) → U30_ag(T187, T177, T164, T170, T186, T132, app26_in_aaaa(T176, T177, T175, T185))
U30_ag(T187, T177, T164, T170, T186, T132, app26_out_aaaa(T176, T177, T175, T185)) → U31_ag(T187, T177, T164, T170, T186, T132, in_order13_in_aa(T186, X125))
U31_ag(T187, T177, T164, T170, T186, T132, in_order13_out_aa(T186, X125)) → in_order1_out_ag(tree(T187, tree(T177, T164, T170), T186), T132)
in_order1_in_ag(tree(T209, tree(T177, T164, T170), T186), .(T209, T210)) → U32_ag(T209, T177, T164, T170, T186, T210, in_order13_in_aa(T164, T176))
U32_ag(T209, T177, T164, T170, T186, T210, in_order13_out_aa(T164, T176)) → U33_ag(T209, T177, T164, T170, T186, T210, T176, in_order13_in_aa(T170, T175))
U33_ag(T209, T177, T164, T170, T186, T210, T176, in_order13_out_aa(T170, T175)) → U34_ag(T209, T177, T164, T170, T186, T210, app26_in_aaag(T176, T177, T175, []))
U34_ag(T209, T177, T164, T170, T186, T210, app26_out_aaag(T176, T177, T175, [])) → U35_ag(T209, T177, T164, T170, T186, T210, in_order13_in_ag(T186, T210))
U35_ag(T209, T177, T164, T170, T186, T210, in_order13_out_ag(T186, T210)) → in_order1_out_ag(tree(T209, tree(T177, T164, T170), T186), .(T209, T210))
in_order1_in_ag(tree(T227, tree(T177, T164, T170), T186), .(T221, T225)) → U36_ag(T227, T177, T164, T170, T186, T221, T225, in_order13_in_aa(T164, T176))
U36_ag(T227, T177, T164, T170, T186, T221, T225, in_order13_out_aa(T164, T176)) → U37_ag(T227, T177, T164, T170, T186, T221, T225, T176, in_order13_in_aa(T170, T175))
U37_ag(T227, T177, T164, T170, T186, T221, T225, T176, in_order13_out_aa(T170, T175)) → U38_ag(T227, T177, T164, T170, T186, T221, T225, app26_in_aaaa(T176, T177, T175, .(T221, T226)))
U38_ag(T227, T177, T164, T170, T186, T221, T225, app26_out_aaaa(T176, T177, T175, .(T221, T226))) → U39_ag(T227, T177, T164, T170, T186, T221, T225, T226, in_order13_in_aa(T186, T228))
U39_ag(T227, T177, T164, T170, T186, T221, T225, T226, in_order13_out_aa(T186, T228)) → U40_ag(T227, T177, T164, T170, T186, T221, T225, app83_in_aaag(T226, T227, T228, T225))
app83_in_aaag([], T241, T242, .(T241, T242)) → app83_out_aaag([], T241, T242, .(T241, T242))
app83_in_aaag(.(T253, T258), T259, T260, .(T253, T257)) → U8_aaag(T253, T258, T259, T260, T257, app83_in_aaag(T258, T259, T260, T257))
U8_aaag(T253, T258, T259, T260, T257, app83_out_aaag(T258, T259, T260, T257)) → app83_out_aaag(.(T253, T258), T259, T260, .(T253, T257))
U40_ag(T227, T177, T164, T170, T186, T221, T225, app83_out_aaag(T226, T227, T228, T225)) → in_order1_out_ag(tree(T227, tree(T177, T164, T170), T186), .(T221, T225))
IN_ORDER13_IN_AA(tree(T30, T25, T29), X33) → U2_AA(T30, T25, T29, X33, in_order13_in_aa(T25, T28))
U2_AA(T30, T25, T29, X33, in_order13_out_aa(T25, T28)) → IN_ORDER13_IN_AA(T29, X32)
IN_ORDER13_IN_AA(tree(T27, T25, T26), X33) → IN_ORDER13_IN_AA(T25, X31)
IN_ORDER13_IN_AA(tree(T33, T25, T29), X33) → U4_AA(T33, T25, T29, X33, in_order13_in_aa(T25, T32))
U4_AA(T33, T25, T29, X33, in_order13_out_aa(T25, T32)) → IN_ORDER13_IN_AA(T29, T31)
in_order13_in_aa(void, []) → in_order13_out_aa(void, [])
in_order13_in_aa(tree(T27, T25, T26), X33) → U1_aa(T27, T25, T26, X33, in_order13_in_aa(T25, X31))
in_order13_in_aa(tree(T30, T25, T29), X33) → U2_aa(T30, T25, T29, X33, in_order13_in_aa(T25, T28))
in_order13_in_aa(tree(T33, T25, T29), X33) → U4_aa(T33, T25, T29, X33, in_order13_in_aa(T25, T32))
U1_aa(T27, T25, T26, X33, in_order13_out_aa(T25, X31)) → in_order13_out_aa(tree(T27, T25, T26), X33)
U2_aa(T30, T25, T29, X33, in_order13_out_aa(T25, T28)) → U3_aa(T30, T25, T29, X33, in_order13_in_aa(T29, X32))
U4_aa(T33, T25, T29, X33, in_order13_out_aa(T25, T32)) → U5_aa(T33, T25, T29, X33, T32, in_order13_in_aa(T29, T31))
U3_aa(T30, T25, T29, X33, in_order13_out_aa(T29, X32)) → in_order13_out_aa(tree(T30, T25, T29), X33)
U5_aa(T33, T25, T29, X33, T32, in_order13_out_aa(T29, T31)) → U6_aa(T33, T25, T29, X33, app26_in_aaaa(T32, T33, T31, X33))
U6_aa(T33, T25, T29, X33, app26_out_aaaa(T32, T33, T31, X33)) → in_order13_out_aa(tree(T33, T25, T29), X33)
app26_in_aaaa([], T46, T47, .(T46, T47)) → app26_out_aaaa([], T46, T47, .(T46, T47))
app26_in_aaaa(.(T56, T60), T61, T62, .(T56, X60)) → U7_aaaa(T56, T60, T61, T62, X60, app26_in_aaaa(T60, T61, T62, X60))
U7_aaaa(T56, T60, T61, T62, X60, app26_out_aaaa(T60, T61, T62, X60)) → app26_out_aaaa(.(T56, T60), T61, T62, .(T56, X60))
IN_ORDER13_IN_AA → U2_AA(in_order13_in_aa)
U2_AA(in_order13_out_aa) → IN_ORDER13_IN_AA
IN_ORDER13_IN_AA → IN_ORDER13_IN_AA
IN_ORDER13_IN_AA → U4_AA(in_order13_in_aa)
U4_AA(in_order13_out_aa) → IN_ORDER13_IN_AA
in_order13_in_aa → in_order13_out_aa
in_order13_in_aa → U1_aa(in_order13_in_aa)
in_order13_in_aa → U2_aa(in_order13_in_aa)
in_order13_in_aa → U4_aa(in_order13_in_aa)
U1_aa(in_order13_out_aa) → in_order13_out_aa
U2_aa(in_order13_out_aa) → U3_aa(in_order13_in_aa)
U4_aa(in_order13_out_aa) → U5_aa(in_order13_in_aa)
U3_aa(in_order13_out_aa) → in_order13_out_aa
U5_aa(in_order13_out_aa) → U6_aa(app26_in_aaaa)
U6_aa(app26_out_aaaa(T32)) → in_order13_out_aa
app26_in_aaaa → app26_out_aaaa([])
app26_in_aaaa → U7_aaaa(app26_in_aaaa)
U7_aaaa(app26_out_aaaa(T60)) → app26_out_aaaa(.(T60))
in_order13_in_aa
U1_aa(x0)
U2_aa(x0)
U4_aa(x0)
U3_aa(x0)
U5_aa(x0)
U6_aa(x0)
app26_in_aaaa
U7_aaaa(x0)
IN_ORDER13_IN_AA → U2_AA(in_order13_out_aa)
IN_ORDER13_IN_AA → U2_AA(U1_aa(in_order13_in_aa))
IN_ORDER13_IN_AA → U2_AA(U2_aa(in_order13_in_aa))
IN_ORDER13_IN_AA → U2_AA(U4_aa(in_order13_in_aa))
U2_AA(in_order13_out_aa) → IN_ORDER13_IN_AA
IN_ORDER13_IN_AA → IN_ORDER13_IN_AA
IN_ORDER13_IN_AA → U4_AA(in_order13_in_aa)
U4_AA(in_order13_out_aa) → IN_ORDER13_IN_AA
IN_ORDER13_IN_AA → U2_AA(in_order13_out_aa)
IN_ORDER13_IN_AA → U2_AA(U1_aa(in_order13_in_aa))
IN_ORDER13_IN_AA → U2_AA(U2_aa(in_order13_in_aa))
IN_ORDER13_IN_AA → U2_AA(U4_aa(in_order13_in_aa))
in_order13_in_aa → in_order13_out_aa
in_order13_in_aa → U1_aa(in_order13_in_aa)
in_order13_in_aa → U2_aa(in_order13_in_aa)
in_order13_in_aa → U4_aa(in_order13_in_aa)
U1_aa(in_order13_out_aa) → in_order13_out_aa
U2_aa(in_order13_out_aa) → U3_aa(in_order13_in_aa)
U4_aa(in_order13_out_aa) → U5_aa(in_order13_in_aa)
U3_aa(in_order13_out_aa) → in_order13_out_aa
U5_aa(in_order13_out_aa) → U6_aa(app26_in_aaaa)
U6_aa(app26_out_aaaa(T32)) → in_order13_out_aa
app26_in_aaaa → app26_out_aaaa([])
app26_in_aaaa → U7_aaaa(app26_in_aaaa)
U7_aaaa(app26_out_aaaa(T60)) → app26_out_aaaa(.(T60))
in_order13_in_aa
U1_aa(x0)
U2_aa(x0)
U4_aa(x0)
U3_aa(x0)
U5_aa(x0)
U6_aa(x0)
app26_in_aaaa
U7_aaaa(x0)
IN_ORDER13_IN_AA → U4_AA(in_order13_out_aa)
IN_ORDER13_IN_AA → U4_AA(U1_aa(in_order13_in_aa))
IN_ORDER13_IN_AA → U4_AA(U2_aa(in_order13_in_aa))
IN_ORDER13_IN_AA → U4_AA(U4_aa(in_order13_in_aa))
U2_AA(in_order13_out_aa) → IN_ORDER13_IN_AA
IN_ORDER13_IN_AA → IN_ORDER13_IN_AA
U4_AA(in_order13_out_aa) → IN_ORDER13_IN_AA
IN_ORDER13_IN_AA → U2_AA(in_order13_out_aa)
IN_ORDER13_IN_AA → U2_AA(U1_aa(in_order13_in_aa))
IN_ORDER13_IN_AA → U2_AA(U2_aa(in_order13_in_aa))
IN_ORDER13_IN_AA → U2_AA(U4_aa(in_order13_in_aa))
IN_ORDER13_IN_AA → U4_AA(in_order13_out_aa)
IN_ORDER13_IN_AA → U4_AA(U1_aa(in_order13_in_aa))
IN_ORDER13_IN_AA → U4_AA(U2_aa(in_order13_in_aa))
IN_ORDER13_IN_AA → U4_AA(U4_aa(in_order13_in_aa))
in_order13_in_aa → in_order13_out_aa
in_order13_in_aa → U1_aa(in_order13_in_aa)
in_order13_in_aa → U2_aa(in_order13_in_aa)
in_order13_in_aa → U4_aa(in_order13_in_aa)
U1_aa(in_order13_out_aa) → in_order13_out_aa
U2_aa(in_order13_out_aa) → U3_aa(in_order13_in_aa)
U4_aa(in_order13_out_aa) → U5_aa(in_order13_in_aa)
U3_aa(in_order13_out_aa) → in_order13_out_aa
U5_aa(in_order13_out_aa) → U6_aa(app26_in_aaaa)
U6_aa(app26_out_aaaa(T32)) → in_order13_out_aa
app26_in_aaaa → app26_out_aaaa([])
app26_in_aaaa → U7_aaaa(app26_in_aaaa)
U7_aaaa(app26_out_aaaa(T60)) → app26_out_aaaa(.(T60))
in_order13_in_aa
U1_aa(x0)
U2_aa(x0)
U4_aa(x0)
U3_aa(x0)
U5_aa(x0)
U6_aa(x0)
app26_in_aaaa
U7_aaaa(x0)
in_order1_in_ag(void, []) → in_order1_out_ag(void, [])
in_order1_in_ag(tree(T13, void, T12), []) → U9_ag(T13, T12, in_order13_in_aa(T12, X10))
in_order13_in_aa(void, []) → in_order13_out_aa(void, [])
in_order13_in_aa(tree(T27, T25, T26), X33) → U1_aa(T27, T25, T26, X33, in_order13_in_aa(T25, X31))
in_order13_in_aa(tree(T30, T25, T29), X33) → U2_aa(T30, T25, T29, X33, in_order13_in_aa(T25, T28))
in_order13_in_aa(tree(T33, T25, T29), X33) → U4_aa(T33, T25, T29, X33, in_order13_in_aa(T25, T32))
U4_aa(T33, T25, T29, X33, in_order13_out_aa(T25, T32)) → U5_aa(T33, T25, T29, X33, T32, in_order13_in_aa(T29, T31))
U5_aa(T33, T25, T29, X33, T32, in_order13_out_aa(T29, T31)) → U6_aa(T33, T25, T29, X33, app26_in_aaaa(T32, T33, T31, X33))
app26_in_aaaa([], T46, T47, .(T46, T47)) → app26_out_aaaa([], T46, T47, .(T46, T47))
app26_in_aaaa(.(T56, T60), T61, T62, .(T56, X60)) → U7_aaaa(T56, T60, T61, T62, X60, app26_in_aaaa(T60, T61, T62, X60))
U7_aaaa(T56, T60, T61, T62, X60, app26_out_aaaa(T60, T61, T62, X60)) → app26_out_aaaa(.(T56, T60), T61, T62, .(T56, X60))
U6_aa(T33, T25, T29, X33, app26_out_aaaa(T32, T33, T31, X33)) → in_order13_out_aa(tree(T33, T25, T29), X33)
U2_aa(T30, T25, T29, X33, in_order13_out_aa(T25, T28)) → U3_aa(T30, T25, T29, X33, in_order13_in_aa(T29, X32))
U3_aa(T30, T25, T29, X33, in_order13_out_aa(T29, X32)) → in_order13_out_aa(tree(T30, T25, T29), X33)
U1_aa(T27, T25, T26, X33, in_order13_out_aa(T25, X31)) → in_order13_out_aa(tree(T27, T25, T26), X33)
U9_ag(T13, T12, in_order13_out_aa(T12, X10)) → in_order1_out_ag(tree(T13, void, T12), [])
in_order1_in_ag(tree(T86, tree(T84, T82, T83), T85), []) → U10_ag(T86, T84, T82, T83, T85, in_order13_in_aa(T82, X94))
U10_ag(T86, T84, T82, T83, T85, in_order13_out_aa(T82, X94)) → in_order1_out_ag(tree(T86, tree(T84, T82, T83), T85), [])
in_order1_in_ag(tree(T91, tree(T89, T82, T88), T90), []) → U11_ag(T91, T89, T82, T88, T90, in_order13_in_aa(T82, T87))
U11_ag(T91, T89, T82, T88, T90, in_order13_out_aa(T82, T87)) → U12_ag(T91, T89, T82, T88, T90, in_order13_in_aa(T88, X95))
U12_ag(T91, T89, T82, T88, T90, in_order13_out_aa(T88, X95)) → in_order1_out_ag(tree(T91, tree(T89, T82, T88), T90), [])
in_order1_in_ag(tree(T96, tree(T94, T82, T88), T95), []) → U13_ag(T96, T94, T82, T88, T95, in_order13_in_aa(T82, T93))
U13_ag(T96, T94, T82, T88, T95, in_order13_out_aa(T82, T93)) → U14_ag(T96, T94, T82, T88, T95, T93, in_order13_in_aa(T88, T92))
U14_ag(T96, T94, T82, T88, T95, T93, in_order13_out_aa(T88, T92)) → U15_ag(T96, T94, T82, T88, T95, app26_in_aaaa(T93, T94, T92, X96))
U15_ag(T96, T94, T82, T88, T95, app26_out_aaaa(T93, T94, T92, X96)) → in_order1_out_ag(tree(T96, tree(T94, T82, T88), T95), [])
in_order1_in_ag(tree(T103, tree(T94, T82, T88), T102), []) → U16_ag(T103, T94, T82, T88, T102, in_order13_in_aa(T82, T93))
U16_ag(T103, T94, T82, T88, T102, in_order13_out_aa(T82, T93)) → U17_ag(T103, T94, T82, T88, T102, T93, in_order13_in_aa(T88, T92))
U17_ag(T103, T94, T82, T88, T102, T93, in_order13_out_aa(T88, T92)) → U18_ag(T103, T94, T82, T88, T102, app26_in_aaaa(T93, T94, T92, T101))
U18_ag(T103, T94, T82, T88, T102, app26_out_aaaa(T93, T94, T92, T101)) → U19_ag(T103, T94, T82, T88, T102, in_order13_in_aa(T102, X10))
U19_ag(T103, T94, T82, T88, T102, in_order13_out_aa(T102, X10)) → in_order1_out_ag(tree(T103, tree(T94, T82, T88), T102), [])
in_order1_in_ag(tree(T137, void, T136), T132) → U20_ag(T137, T136, T132, in_order13_in_aa(T136, X125))
U20_ag(T137, T136, T132, in_order13_out_aa(T136, X125)) → in_order1_out_ag(tree(T137, void, T136), T132)
in_order1_in_ag(tree(T153, void, T136), .(T153, T154)) → U21_ag(T153, T136, T154, in_order13_in_ag(T136, T154))
in_order13_in_ag(void, []) → in_order13_out_ag(void, [])
in_order13_in_ag(tree(T27, T25, T26), X33) → U1_ag(T27, T25, T26, X33, in_order13_in_aa(T25, X31))
U1_ag(T27, T25, T26, X33, in_order13_out_aa(T25, X31)) → in_order13_out_ag(tree(T27, T25, T26), X33)
in_order13_in_ag(tree(T30, T25, T29), X33) → U2_ag(T30, T25, T29, X33, in_order13_in_aa(T25, T28))
U2_ag(T30, T25, T29, X33, in_order13_out_aa(T25, T28)) → U3_ag(T30, T25, T29, X33, in_order13_in_aa(T29, X32))
U3_ag(T30, T25, T29, X33, in_order13_out_aa(T29, X32)) → in_order13_out_ag(tree(T30, T25, T29), X33)
in_order13_in_ag(tree(T33, T25, T29), X33) → U4_ag(T33, T25, T29, X33, in_order13_in_aa(T25, T32))
U4_ag(T33, T25, T29, X33, in_order13_out_aa(T25, T32)) → U5_ag(T33, T25, T29, X33, T32, in_order13_in_aa(T29, T31))
U5_ag(T33, T25, T29, X33, T32, in_order13_out_aa(T29, T31)) → U6_ag(T33, T25, T29, X33, app26_in_aaag(T32, T33, T31, X33))
app26_in_aaag([], T46, T47, .(T46, T47)) → app26_out_aaag([], T46, T47, .(T46, T47))
app26_in_aaag(.(T56, T60), T61, T62, .(T56, X60)) → U7_aaag(T56, T60, T61, T62, X60, app26_in_aaag(T60, T61, T62, X60))
U7_aaag(T56, T60, T61, T62, X60, app26_out_aaag(T60, T61, T62, X60)) → app26_out_aaag(.(T56, T60), T61, T62, .(T56, X60))
U6_ag(T33, T25, T29, X33, app26_out_aaag(T32, T33, T31, X33)) → in_order13_out_ag(tree(T33, T25, T29), X33)
U21_ag(T153, T136, T154, in_order13_out_ag(T136, T154)) → in_order1_out_ag(tree(T153, void, T136), .(T153, T154))
in_order1_in_ag(tree(T168, tree(T166, T164, T165), T167), T132) → U22_ag(T168, T166, T164, T165, T167, T132, in_order13_in_aa(T164, X158))
U22_ag(T168, T166, T164, T165, T167, T132, in_order13_out_aa(T164, X158)) → in_order1_out_ag(tree(T168, tree(T166, T164, T165), T167), T132)
in_order1_in_ag(tree(T173, tree(T171, T164, T170), T172), T132) → U23_ag(T173, T171, T164, T170, T172, T132, in_order13_in_aa(T164, T169))
U23_ag(T173, T171, T164, T170, T172, T132, in_order13_out_aa(T164, T169)) → U24_ag(T173, T171, T164, T170, T172, T132, in_order13_in_aa(T170, X159))
U24_ag(T173, T171, T164, T170, T172, T132, in_order13_out_aa(T170, X159)) → in_order1_out_ag(tree(T173, tree(T171, T164, T170), T172), T132)
in_order1_in_ag(tree(T179, tree(T177, T164, T170), T178), T132) → U25_ag(T179, T177, T164, T170, T178, T132, in_order13_in_aa(T164, T176))
U25_ag(T179, T177, T164, T170, T178, T132, in_order13_out_aa(T164, T176)) → U26_ag(T179, T177, T164, T170, T178, T132, T176, in_order13_in_aa(T170, T175))
U26_ag(T179, T177, T164, T170, T178, T132, T176, in_order13_out_aa(T170, T175)) → U27_ag(T179, T177, T164, T170, T178, T132, app26_in_aaaa(T176, T177, T175, X160))
U27_ag(T179, T177, T164, T170, T178, T132, app26_out_aaaa(T176, T177, T175, X160)) → in_order1_out_ag(tree(T179, tree(T177, T164, T170), T178), T132)
in_order1_in_ag(tree(T187, tree(T177, T164, T170), T186), T132) → U28_ag(T187, T177, T164, T170, T186, T132, in_order13_in_aa(T164, T176))
U28_ag(T187, T177, T164, T170, T186, T132, in_order13_out_aa(T164, T176)) → U29_ag(T187, T177, T164, T170, T186, T132, T176, in_order13_in_aa(T170, T175))
U29_ag(T187, T177, T164, T170, T186, T132, T176, in_order13_out_aa(T170, T175)) → U30_ag(T187, T177, T164, T170, T186, T132, app26_in_aaaa(T176, T177, T175, T185))
U30_ag(T187, T177, T164, T170, T186, T132, app26_out_aaaa(T176, T177, T175, T185)) → U31_ag(T187, T177, T164, T170, T186, T132, in_order13_in_aa(T186, X125))
U31_ag(T187, T177, T164, T170, T186, T132, in_order13_out_aa(T186, X125)) → in_order1_out_ag(tree(T187, tree(T177, T164, T170), T186), T132)
in_order1_in_ag(tree(T209, tree(T177, T164, T170), T186), .(T209, T210)) → U32_ag(T209, T177, T164, T170, T186, T210, in_order13_in_aa(T164, T176))
U32_ag(T209, T177, T164, T170, T186, T210, in_order13_out_aa(T164, T176)) → U33_ag(T209, T177, T164, T170, T186, T210, T176, in_order13_in_aa(T170, T175))
U33_ag(T209, T177, T164, T170, T186, T210, T176, in_order13_out_aa(T170, T175)) → U34_ag(T209, T177, T164, T170, T186, T210, app26_in_aaag(T176, T177, T175, []))
U34_ag(T209, T177, T164, T170, T186, T210, app26_out_aaag(T176, T177, T175, [])) → U35_ag(T209, T177, T164, T170, T186, T210, in_order13_in_ag(T186, T210))
U35_ag(T209, T177, T164, T170, T186, T210, in_order13_out_ag(T186, T210)) → in_order1_out_ag(tree(T209, tree(T177, T164, T170), T186), .(T209, T210))
in_order1_in_ag(tree(T227, tree(T177, T164, T170), T186), .(T221, T225)) → U36_ag(T227, T177, T164, T170, T186, T221, T225, in_order13_in_aa(T164, T176))
U36_ag(T227, T177, T164, T170, T186, T221, T225, in_order13_out_aa(T164, T176)) → U37_ag(T227, T177, T164, T170, T186, T221, T225, T176, in_order13_in_aa(T170, T175))
U37_ag(T227, T177, T164, T170, T186, T221, T225, T176, in_order13_out_aa(T170, T175)) → U38_ag(T227, T177, T164, T170, T186, T221, T225, app26_in_aaaa(T176, T177, T175, .(T221, T226)))
U38_ag(T227, T177, T164, T170, T186, T221, T225, app26_out_aaaa(T176, T177, T175, .(T221, T226))) → U39_ag(T227, T177, T164, T170, T186, T221, T225, T226, in_order13_in_aa(T186, T228))
U39_ag(T227, T177, T164, T170, T186, T221, T225, T226, in_order13_out_aa(T186, T228)) → U40_ag(T227, T177, T164, T170, T186, T221, T225, app83_in_aaag(T226, T227, T228, T225))
app83_in_aaag([], T241, T242, .(T241, T242)) → app83_out_aaag([], T241, T242, .(T241, T242))
app83_in_aaag(.(T253, T258), T259, T260, .(T253, T257)) → U8_aaag(T253, T258, T259, T260, T257, app83_in_aaag(T258, T259, T260, T257))
U8_aaag(T253, T258, T259, T260, T257, app83_out_aaag(T258, T259, T260, T257)) → app83_out_aaag(.(T253, T258), T259, T260, .(T253, T257))
U40_ag(T227, T177, T164, T170, T186, T221, T225, app83_out_aaag(T226, T227, T228, T225)) → in_order1_out_ag(tree(T227, tree(T177, T164, T170), T186), .(T221, T225))
Infinitary Constructor Rewriting Termination of PiTRS implies Termination of Prolog
in_order1_in_ag(void, []) → in_order1_out_ag(void, [])
in_order1_in_ag(tree(T13, void, T12), []) → U9_ag(T13, T12, in_order13_in_aa(T12, X10))
in_order13_in_aa(void, []) → in_order13_out_aa(void, [])
in_order13_in_aa(tree(T27, T25, T26), X33) → U1_aa(T27, T25, T26, X33, in_order13_in_aa(T25, X31))
in_order13_in_aa(tree(T30, T25, T29), X33) → U2_aa(T30, T25, T29, X33, in_order13_in_aa(T25, T28))
in_order13_in_aa(tree(T33, T25, T29), X33) → U4_aa(T33, T25, T29, X33, in_order13_in_aa(T25, T32))
U4_aa(T33, T25, T29, X33, in_order13_out_aa(T25, T32)) → U5_aa(T33, T25, T29, X33, T32, in_order13_in_aa(T29, T31))
U5_aa(T33, T25, T29, X33, T32, in_order13_out_aa(T29, T31)) → U6_aa(T33, T25, T29, X33, app26_in_aaaa(T32, T33, T31, X33))
app26_in_aaaa([], T46, T47, .(T46, T47)) → app26_out_aaaa([], T46, T47, .(T46, T47))
app26_in_aaaa(.(T56, T60), T61, T62, .(T56, X60)) → U7_aaaa(T56, T60, T61, T62, X60, app26_in_aaaa(T60, T61, T62, X60))
U7_aaaa(T56, T60, T61, T62, X60, app26_out_aaaa(T60, T61, T62, X60)) → app26_out_aaaa(.(T56, T60), T61, T62, .(T56, X60))
U6_aa(T33, T25, T29, X33, app26_out_aaaa(T32, T33, T31, X33)) → in_order13_out_aa(tree(T33, T25, T29), X33)
U2_aa(T30, T25, T29, X33, in_order13_out_aa(T25, T28)) → U3_aa(T30, T25, T29, X33, in_order13_in_aa(T29, X32))
U3_aa(T30, T25, T29, X33, in_order13_out_aa(T29, X32)) → in_order13_out_aa(tree(T30, T25, T29), X33)
U1_aa(T27, T25, T26, X33, in_order13_out_aa(T25, X31)) → in_order13_out_aa(tree(T27, T25, T26), X33)
U9_ag(T13, T12, in_order13_out_aa(T12, X10)) → in_order1_out_ag(tree(T13, void, T12), [])
in_order1_in_ag(tree(T86, tree(T84, T82, T83), T85), []) → U10_ag(T86, T84, T82, T83, T85, in_order13_in_aa(T82, X94))
U10_ag(T86, T84, T82, T83, T85, in_order13_out_aa(T82, X94)) → in_order1_out_ag(tree(T86, tree(T84, T82, T83), T85), [])
in_order1_in_ag(tree(T91, tree(T89, T82, T88), T90), []) → U11_ag(T91, T89, T82, T88, T90, in_order13_in_aa(T82, T87))
U11_ag(T91, T89, T82, T88, T90, in_order13_out_aa(T82, T87)) → U12_ag(T91, T89, T82, T88, T90, in_order13_in_aa(T88, X95))
U12_ag(T91, T89, T82, T88, T90, in_order13_out_aa(T88, X95)) → in_order1_out_ag(tree(T91, tree(T89, T82, T88), T90), [])
in_order1_in_ag(tree(T96, tree(T94, T82, T88), T95), []) → U13_ag(T96, T94, T82, T88, T95, in_order13_in_aa(T82, T93))
U13_ag(T96, T94, T82, T88, T95, in_order13_out_aa(T82, T93)) → U14_ag(T96, T94, T82, T88, T95, T93, in_order13_in_aa(T88, T92))
U14_ag(T96, T94, T82, T88, T95, T93, in_order13_out_aa(T88, T92)) → U15_ag(T96, T94, T82, T88, T95, app26_in_aaaa(T93, T94, T92, X96))
U15_ag(T96, T94, T82, T88, T95, app26_out_aaaa(T93, T94, T92, X96)) → in_order1_out_ag(tree(T96, tree(T94, T82, T88), T95), [])
in_order1_in_ag(tree(T103, tree(T94, T82, T88), T102), []) → U16_ag(T103, T94, T82, T88, T102, in_order13_in_aa(T82, T93))
U16_ag(T103, T94, T82, T88, T102, in_order13_out_aa(T82, T93)) → U17_ag(T103, T94, T82, T88, T102, T93, in_order13_in_aa(T88, T92))
U17_ag(T103, T94, T82, T88, T102, T93, in_order13_out_aa(T88, T92)) → U18_ag(T103, T94, T82, T88, T102, app26_in_aaaa(T93, T94, T92, T101))
U18_ag(T103, T94, T82, T88, T102, app26_out_aaaa(T93, T94, T92, T101)) → U19_ag(T103, T94, T82, T88, T102, in_order13_in_aa(T102, X10))
U19_ag(T103, T94, T82, T88, T102, in_order13_out_aa(T102, X10)) → in_order1_out_ag(tree(T103, tree(T94, T82, T88), T102), [])
in_order1_in_ag(tree(T137, void, T136), T132) → U20_ag(T137, T136, T132, in_order13_in_aa(T136, X125))
U20_ag(T137, T136, T132, in_order13_out_aa(T136, X125)) → in_order1_out_ag(tree(T137, void, T136), T132)
in_order1_in_ag(tree(T153, void, T136), .(T153, T154)) → U21_ag(T153, T136, T154, in_order13_in_ag(T136, T154))
in_order13_in_ag(void, []) → in_order13_out_ag(void, [])
in_order13_in_ag(tree(T27, T25, T26), X33) → U1_ag(T27, T25, T26, X33, in_order13_in_aa(T25, X31))
U1_ag(T27, T25, T26, X33, in_order13_out_aa(T25, X31)) → in_order13_out_ag(tree(T27, T25, T26), X33)
in_order13_in_ag(tree(T30, T25, T29), X33) → U2_ag(T30, T25, T29, X33, in_order13_in_aa(T25, T28))
U2_ag(T30, T25, T29, X33, in_order13_out_aa(T25, T28)) → U3_ag(T30, T25, T29, X33, in_order13_in_aa(T29, X32))
U3_ag(T30, T25, T29, X33, in_order13_out_aa(T29, X32)) → in_order13_out_ag(tree(T30, T25, T29), X33)
in_order13_in_ag(tree(T33, T25, T29), X33) → U4_ag(T33, T25, T29, X33, in_order13_in_aa(T25, T32))
U4_ag(T33, T25, T29, X33, in_order13_out_aa(T25, T32)) → U5_ag(T33, T25, T29, X33, T32, in_order13_in_aa(T29, T31))
U5_ag(T33, T25, T29, X33, T32, in_order13_out_aa(T29, T31)) → U6_ag(T33, T25, T29, X33, app26_in_aaag(T32, T33, T31, X33))
app26_in_aaag([], T46, T47, .(T46, T47)) → app26_out_aaag([], T46, T47, .(T46, T47))
app26_in_aaag(.(T56, T60), T61, T62, .(T56, X60)) → U7_aaag(T56, T60, T61, T62, X60, app26_in_aaag(T60, T61, T62, X60))
U7_aaag(T56, T60, T61, T62, X60, app26_out_aaag(T60, T61, T62, X60)) → app26_out_aaag(.(T56, T60), T61, T62, .(T56, X60))
U6_ag(T33, T25, T29, X33, app26_out_aaag(T32, T33, T31, X33)) → in_order13_out_ag(tree(T33, T25, T29), X33)
U21_ag(T153, T136, T154, in_order13_out_ag(T136, T154)) → in_order1_out_ag(tree(T153, void, T136), .(T153, T154))
in_order1_in_ag(tree(T168, tree(T166, T164, T165), T167), T132) → U22_ag(T168, T166, T164, T165, T167, T132, in_order13_in_aa(T164, X158))
U22_ag(T168, T166, T164, T165, T167, T132, in_order13_out_aa(T164, X158)) → in_order1_out_ag(tree(T168, tree(T166, T164, T165), T167), T132)
in_order1_in_ag(tree(T173, tree(T171, T164, T170), T172), T132) → U23_ag(T173, T171, T164, T170, T172, T132, in_order13_in_aa(T164, T169))
U23_ag(T173, T171, T164, T170, T172, T132, in_order13_out_aa(T164, T169)) → U24_ag(T173, T171, T164, T170, T172, T132, in_order13_in_aa(T170, X159))
U24_ag(T173, T171, T164, T170, T172, T132, in_order13_out_aa(T170, X159)) → in_order1_out_ag(tree(T173, tree(T171, T164, T170), T172), T132)
in_order1_in_ag(tree(T179, tree(T177, T164, T170), T178), T132) → U25_ag(T179, T177, T164, T170, T178, T132, in_order13_in_aa(T164, T176))
U25_ag(T179, T177, T164, T170, T178, T132, in_order13_out_aa(T164, T176)) → U26_ag(T179, T177, T164, T170, T178, T132, T176, in_order13_in_aa(T170, T175))
U26_ag(T179, T177, T164, T170, T178, T132, T176, in_order13_out_aa(T170, T175)) → U27_ag(T179, T177, T164, T170, T178, T132, app26_in_aaaa(T176, T177, T175, X160))
U27_ag(T179, T177, T164, T170, T178, T132, app26_out_aaaa(T176, T177, T175, X160)) → in_order1_out_ag(tree(T179, tree(T177, T164, T170), T178), T132)
in_order1_in_ag(tree(T187, tree(T177, T164, T170), T186), T132) → U28_ag(T187, T177, T164, T170, T186, T132, in_order13_in_aa(T164, T176))
U28_ag(T187, T177, T164, T170, T186, T132, in_order13_out_aa(T164, T176)) → U29_ag(T187, T177, T164, T170, T186, T132, T176, in_order13_in_aa(T170, T175))
U29_ag(T187, T177, T164, T170, T186, T132, T176, in_order13_out_aa(T170, T175)) → U30_ag(T187, T177, T164, T170, T186, T132, app26_in_aaaa(T176, T177, T175, T185))
U30_ag(T187, T177, T164, T170, T186, T132, app26_out_aaaa(T176, T177, T175, T185)) → U31_ag(T187, T177, T164, T170, T186, T132, in_order13_in_aa(T186, X125))
U31_ag(T187, T177, T164, T170, T186, T132, in_order13_out_aa(T186, X125)) → in_order1_out_ag(tree(T187, tree(T177, T164, T170), T186), T132)
in_order1_in_ag(tree(T209, tree(T177, T164, T170), T186), .(T209, T210)) → U32_ag(T209, T177, T164, T170, T186, T210, in_order13_in_aa(T164, T176))
U32_ag(T209, T177, T164, T170, T186, T210, in_order13_out_aa(T164, T176)) → U33_ag(T209, T177, T164, T170, T186, T210, T176, in_order13_in_aa(T170, T175))
U33_ag(T209, T177, T164, T170, T186, T210, T176, in_order13_out_aa(T170, T175)) → U34_ag(T209, T177, T164, T170, T186, T210, app26_in_aaag(T176, T177, T175, []))
U34_ag(T209, T177, T164, T170, T186, T210, app26_out_aaag(T176, T177, T175, [])) → U35_ag(T209, T177, T164, T170, T186, T210, in_order13_in_ag(T186, T210))
U35_ag(T209, T177, T164, T170, T186, T210, in_order13_out_ag(T186, T210)) → in_order1_out_ag(tree(T209, tree(T177, T164, T170), T186), .(T209, T210))
in_order1_in_ag(tree(T227, tree(T177, T164, T170), T186), .(T221, T225)) → U36_ag(T227, T177, T164, T170, T186, T221, T225, in_order13_in_aa(T164, T176))
U36_ag(T227, T177, T164, T170, T186, T221, T225, in_order13_out_aa(T164, T176)) → U37_ag(T227, T177, T164, T170, T186, T221, T225, T176, in_order13_in_aa(T170, T175))
U37_ag(T227, T177, T164, T170, T186, T221, T225, T176, in_order13_out_aa(T170, T175)) → U38_ag(T227, T177, T164, T170, T186, T221, T225, app26_in_aaaa(T176, T177, T175, .(T221, T226)))
U38_ag(T227, T177, T164, T170, T186, T221, T225, app26_out_aaaa(T176, T177, T175, .(T221, T226))) → U39_ag(T227, T177, T164, T170, T186, T221, T225, T226, in_order13_in_aa(T186, T228))
U39_ag(T227, T177, T164, T170, T186, T221, T225, T226, in_order13_out_aa(T186, T228)) → U40_ag(T227, T177, T164, T170, T186, T221, T225, app83_in_aaag(T226, T227, T228, T225))
app83_in_aaag([], T241, T242, .(T241, T242)) → app83_out_aaag([], T241, T242, .(T241, T242))
app83_in_aaag(.(T253, T258), T259, T260, .(T253, T257)) → U8_aaag(T253, T258, T259, T260, T257, app83_in_aaag(T258, T259, T260, T257))
U8_aaag(T253, T258, T259, T260, T257, app83_out_aaag(T258, T259, T260, T257)) → app83_out_aaag(.(T253, T258), T259, T260, .(T253, T257))
U40_ag(T227, T177, T164, T170, T186, T221, T225, app83_out_aaag(T226, T227, T228, T225)) → in_order1_out_ag(tree(T227, tree(T177, T164, T170), T186), .(T221, T225))
IN_ORDER1_IN_AG(tree(T13, void, T12), []) → U9_AG(T13, T12, in_order13_in_aa(T12, X10))
IN_ORDER1_IN_AG(tree(T13, void, T12), []) → IN_ORDER13_IN_AA(T12, X10)
IN_ORDER13_IN_AA(tree(T27, T25, T26), X33) → U1_AA(T27, T25, T26, X33, in_order13_in_aa(T25, X31))
IN_ORDER13_IN_AA(tree(T27, T25, T26), X33) → IN_ORDER13_IN_AA(T25, X31)
IN_ORDER13_IN_AA(tree(T30, T25, T29), X33) → U2_AA(T30, T25, T29, X33, in_order13_in_aa(T25, T28))
IN_ORDER13_IN_AA(tree(T33, T25, T29), X33) → U4_AA(T33, T25, T29, X33, in_order13_in_aa(T25, T32))
U4_AA(T33, T25, T29, X33, in_order13_out_aa(T25, T32)) → U5_AA(T33, T25, T29, X33, T32, in_order13_in_aa(T29, T31))
U4_AA(T33, T25, T29, X33, in_order13_out_aa(T25, T32)) → IN_ORDER13_IN_AA(T29, T31)
U5_AA(T33, T25, T29, X33, T32, in_order13_out_aa(T29, T31)) → U6_AA(T33, T25, T29, X33, app26_in_aaaa(T32, T33, T31, X33))
U5_AA(T33, T25, T29, X33, T32, in_order13_out_aa(T29, T31)) → APP26_IN_AAAA(T32, T33, T31, X33)
APP26_IN_AAAA(.(T56, T60), T61, T62, .(T56, X60)) → U7_AAAA(T56, T60, T61, T62, X60, app26_in_aaaa(T60, T61, T62, X60))
APP26_IN_AAAA(.(T56, T60), T61, T62, .(T56, X60)) → APP26_IN_AAAA(T60, T61, T62, X60)
U2_AA(T30, T25, T29, X33, in_order13_out_aa(T25, T28)) → U3_AA(T30, T25, T29, X33, in_order13_in_aa(T29, X32))
U2_AA(T30, T25, T29, X33, in_order13_out_aa(T25, T28)) → IN_ORDER13_IN_AA(T29, X32)
IN_ORDER1_IN_AG(tree(T86, tree(T84, T82, T83), T85), []) → U10_AG(T86, T84, T82, T83, T85, in_order13_in_aa(T82, X94))
IN_ORDER1_IN_AG(tree(T86, tree(T84, T82, T83), T85), []) → IN_ORDER13_IN_AA(T82, X94)
IN_ORDER1_IN_AG(tree(T91, tree(T89, T82, T88), T90), []) → U11_AG(T91, T89, T82, T88, T90, in_order13_in_aa(T82, T87))
U11_AG(T91, T89, T82, T88, T90, in_order13_out_aa(T82, T87)) → U12_AG(T91, T89, T82, T88, T90, in_order13_in_aa(T88, X95))
U11_AG(T91, T89, T82, T88, T90, in_order13_out_aa(T82, T87)) → IN_ORDER13_IN_AA(T88, X95)
IN_ORDER1_IN_AG(tree(T96, tree(T94, T82, T88), T95), []) → U13_AG(T96, T94, T82, T88, T95, in_order13_in_aa(T82, T93))
U13_AG(T96, T94, T82, T88, T95, in_order13_out_aa(T82, T93)) → U14_AG(T96, T94, T82, T88, T95, T93, in_order13_in_aa(T88, T92))
U13_AG(T96, T94, T82, T88, T95, in_order13_out_aa(T82, T93)) → IN_ORDER13_IN_AA(T88, T92)
U14_AG(T96, T94, T82, T88, T95, T93, in_order13_out_aa(T88, T92)) → U15_AG(T96, T94, T82, T88, T95, app26_in_aaaa(T93, T94, T92, X96))
U14_AG(T96, T94, T82, T88, T95, T93, in_order13_out_aa(T88, T92)) → APP26_IN_AAAA(T93, T94, T92, X96)
IN_ORDER1_IN_AG(tree(T103, tree(T94, T82, T88), T102), []) → U16_AG(T103, T94, T82, T88, T102, in_order13_in_aa(T82, T93))
U16_AG(T103, T94, T82, T88, T102, in_order13_out_aa(T82, T93)) → U17_AG(T103, T94, T82, T88, T102, T93, in_order13_in_aa(T88, T92))
U16_AG(T103, T94, T82, T88, T102, in_order13_out_aa(T82, T93)) → IN_ORDER13_IN_AA(T88, T92)
U17_AG(T103, T94, T82, T88, T102, T93, in_order13_out_aa(T88, T92)) → U18_AG(T103, T94, T82, T88, T102, app26_in_aaaa(T93, T94, T92, T101))
U17_AG(T103, T94, T82, T88, T102, T93, in_order13_out_aa(T88, T92)) → APP26_IN_AAAA(T93, T94, T92, T101)
U18_AG(T103, T94, T82, T88, T102, app26_out_aaaa(T93, T94, T92, T101)) → U19_AG(T103, T94, T82, T88, T102, in_order13_in_aa(T102, X10))
U18_AG(T103, T94, T82, T88, T102, app26_out_aaaa(T93, T94, T92, T101)) → IN_ORDER13_IN_AA(T102, X10)
IN_ORDER1_IN_AG(tree(T137, void, T136), T132) → U20_AG(T137, T136, T132, in_order13_in_aa(T136, X125))
IN_ORDER1_IN_AG(tree(T137, void, T136), T132) → IN_ORDER13_IN_AA(T136, X125)
IN_ORDER1_IN_AG(tree(T153, void, T136), .(T153, T154)) → U21_AG(T153, T136, T154, in_order13_in_ag(T136, T154))
IN_ORDER1_IN_AG(tree(T153, void, T136), .(T153, T154)) → IN_ORDER13_IN_AG(T136, T154)
IN_ORDER13_IN_AG(tree(T27, T25, T26), X33) → U1_AG(T27, T25, T26, X33, in_order13_in_aa(T25, X31))
IN_ORDER13_IN_AG(tree(T27, T25, T26), X33) → IN_ORDER13_IN_AA(T25, X31)
IN_ORDER13_IN_AG(tree(T30, T25, T29), X33) → U2_AG(T30, T25, T29, X33, in_order13_in_aa(T25, T28))
U2_AG(T30, T25, T29, X33, in_order13_out_aa(T25, T28)) → U3_AG(T30, T25, T29, X33, in_order13_in_aa(T29, X32))
U2_AG(T30, T25, T29, X33, in_order13_out_aa(T25, T28)) → IN_ORDER13_IN_AA(T29, X32)
IN_ORDER13_IN_AG(tree(T33, T25, T29), X33) → U4_AG(T33, T25, T29, X33, in_order13_in_aa(T25, T32))
U4_AG(T33, T25, T29, X33, in_order13_out_aa(T25, T32)) → U5_AG(T33, T25, T29, X33, T32, in_order13_in_aa(T29, T31))
U4_AG(T33, T25, T29, X33, in_order13_out_aa(T25, T32)) → IN_ORDER13_IN_AA(T29, T31)
U5_AG(T33, T25, T29, X33, T32, in_order13_out_aa(T29, T31)) → U6_AG(T33, T25, T29, X33, app26_in_aaag(T32, T33, T31, X33))
U5_AG(T33, T25, T29, X33, T32, in_order13_out_aa(T29, T31)) → APP26_IN_AAAG(T32, T33, T31, X33)
APP26_IN_AAAG(.(T56, T60), T61, T62, .(T56, X60)) → U7_AAAG(T56, T60, T61, T62, X60, app26_in_aaag(T60, T61, T62, X60))
APP26_IN_AAAG(.(T56, T60), T61, T62, .(T56, X60)) → APP26_IN_AAAG(T60, T61, T62, X60)
IN_ORDER1_IN_AG(tree(T168, tree(T166, T164, T165), T167), T132) → U22_AG(T168, T166, T164, T165, T167, T132, in_order13_in_aa(T164, X158))
IN_ORDER1_IN_AG(tree(T168, tree(T166, T164, T165), T167), T132) → IN_ORDER13_IN_AA(T164, X158)
IN_ORDER1_IN_AG(tree(T173, tree(T171, T164, T170), T172), T132) → U23_AG(T173, T171, T164, T170, T172, T132, in_order13_in_aa(T164, T169))
U23_AG(T173, T171, T164, T170, T172, T132, in_order13_out_aa(T164, T169)) → U24_AG(T173, T171, T164, T170, T172, T132, in_order13_in_aa(T170, X159))
U23_AG(T173, T171, T164, T170, T172, T132, in_order13_out_aa(T164, T169)) → IN_ORDER13_IN_AA(T170, X159)
IN_ORDER1_IN_AG(tree(T179, tree(T177, T164, T170), T178), T132) → U25_AG(T179, T177, T164, T170, T178, T132, in_order13_in_aa(T164, T176))
U25_AG(T179, T177, T164, T170, T178, T132, in_order13_out_aa(T164, T176)) → U26_AG(T179, T177, T164, T170, T178, T132, T176, in_order13_in_aa(T170, T175))
U25_AG(T179, T177, T164, T170, T178, T132, in_order13_out_aa(T164, T176)) → IN_ORDER13_IN_AA(T170, T175)
U26_AG(T179, T177, T164, T170, T178, T132, T176, in_order13_out_aa(T170, T175)) → U27_AG(T179, T177, T164, T170, T178, T132, app26_in_aaaa(T176, T177, T175, X160))
U26_AG(T179, T177, T164, T170, T178, T132, T176, in_order13_out_aa(T170, T175)) → APP26_IN_AAAA(T176, T177, T175, X160)
IN_ORDER1_IN_AG(tree(T187, tree(T177, T164, T170), T186), T132) → U28_AG(T187, T177, T164, T170, T186, T132, in_order13_in_aa(T164, T176))
U28_AG(T187, T177, T164, T170, T186, T132, in_order13_out_aa(T164, T176)) → U29_AG(T187, T177, T164, T170, T186, T132, T176, in_order13_in_aa(T170, T175))
U28_AG(T187, T177, T164, T170, T186, T132, in_order13_out_aa(T164, T176)) → IN_ORDER13_IN_AA(T170, T175)
U29_AG(T187, T177, T164, T170, T186, T132, T176, in_order13_out_aa(T170, T175)) → U30_AG(T187, T177, T164, T170, T186, T132, app26_in_aaaa(T176, T177, T175, T185))
U29_AG(T187, T177, T164, T170, T186, T132, T176, in_order13_out_aa(T170, T175)) → APP26_IN_AAAA(T176, T177, T175, T185)
U30_AG(T187, T177, T164, T170, T186, T132, app26_out_aaaa(T176, T177, T175, T185)) → U31_AG(T187, T177, T164, T170, T186, T132, in_order13_in_aa(T186, X125))
U30_AG(T187, T177, T164, T170, T186, T132, app26_out_aaaa(T176, T177, T175, T185)) → IN_ORDER13_IN_AA(T186, X125)
IN_ORDER1_IN_AG(tree(T209, tree(T177, T164, T170), T186), .(T209, T210)) → U32_AG(T209, T177, T164, T170, T186, T210, in_order13_in_aa(T164, T176))
IN_ORDER1_IN_AG(tree(T209, tree(T177, T164, T170), T186), .(T209, T210)) → IN_ORDER13_IN_AA(T164, T176)
U32_AG(T209, T177, T164, T170, T186, T210, in_order13_out_aa(T164, T176)) → U33_AG(T209, T177, T164, T170, T186, T210, T176, in_order13_in_aa(T170, T175))
U32_AG(T209, T177, T164, T170, T186, T210, in_order13_out_aa(T164, T176)) → IN_ORDER13_IN_AA(T170, T175)
U33_AG(T209, T177, T164, T170, T186, T210, T176, in_order13_out_aa(T170, T175)) → U34_AG(T209, T177, T164, T170, T186, T210, app26_in_aaag(T176, T177, T175, []))
U33_AG(T209, T177, T164, T170, T186, T210, T176, in_order13_out_aa(T170, T175)) → APP26_IN_AAAG(T176, T177, T175, [])
U34_AG(T209, T177, T164, T170, T186, T210, app26_out_aaag(T176, T177, T175, [])) → U35_AG(T209, T177, T164, T170, T186, T210, in_order13_in_ag(T186, T210))
U34_AG(T209, T177, T164, T170, T186, T210, app26_out_aaag(T176, T177, T175, [])) → IN_ORDER13_IN_AG(T186, T210)
IN_ORDER1_IN_AG(tree(T227, tree(T177, T164, T170), T186), .(T221, T225)) → U36_AG(T227, T177, T164, T170, T186, T221, T225, in_order13_in_aa(T164, T176))
IN_ORDER1_IN_AG(tree(T227, tree(T177, T164, T170), T186), .(T221, T225)) → IN_ORDER13_IN_AA(T164, T176)
U36_AG(T227, T177, T164, T170, T186, T221, T225, in_order13_out_aa(T164, T176)) → U37_AG(T227, T177, T164, T170, T186, T221, T225, T176, in_order13_in_aa(T170, T175))
U36_AG(T227, T177, T164, T170, T186, T221, T225, in_order13_out_aa(T164, T176)) → IN_ORDER13_IN_AA(T170, T175)
U37_AG(T227, T177, T164, T170, T186, T221, T225, T176, in_order13_out_aa(T170, T175)) → U38_AG(T227, T177, T164, T170, T186, T221, T225, app26_in_aaaa(T176, T177, T175, .(T221, T226)))
U37_AG(T227, T177, T164, T170, T186, T221, T225, T176, in_order13_out_aa(T170, T175)) → APP26_IN_AAAA(T176, T177, T175, .(T221, T226))
U38_AG(T227, T177, T164, T170, T186, T221, T225, app26_out_aaaa(T176, T177, T175, .(T221, T226))) → U39_AG(T227, T177, T164, T170, T186, T221, T225, T226, in_order13_in_aa(T186, T228))
U38_AG(T227, T177, T164, T170, T186, T221, T225, app26_out_aaaa(T176, T177, T175, .(T221, T226))) → IN_ORDER13_IN_AA(T186, T228)
U39_AG(T227, T177, T164, T170, T186, T221, T225, T226, in_order13_out_aa(T186, T228)) → U40_AG(T227, T177, T164, T170, T186, T221, T225, app83_in_aaag(T226, T227, T228, T225))
U39_AG(T227, T177, T164, T170, T186, T221, T225, T226, in_order13_out_aa(T186, T228)) → APP83_IN_AAAG(T226, T227, T228, T225)
APP83_IN_AAAG(.(T253, T258), T259, T260, .(T253, T257)) → U8_AAAG(T253, T258, T259, T260, T257, app83_in_aaag(T258, T259, T260, T257))
APP83_IN_AAAG(.(T253, T258), T259, T260, .(T253, T257)) → APP83_IN_AAAG(T258, T259, T260, T257)
in_order1_in_ag(void, []) → in_order1_out_ag(void, [])
in_order1_in_ag(tree(T13, void, T12), []) → U9_ag(T13, T12, in_order13_in_aa(T12, X10))
in_order13_in_aa(void, []) → in_order13_out_aa(void, [])
in_order13_in_aa(tree(T27, T25, T26), X33) → U1_aa(T27, T25, T26, X33, in_order13_in_aa(T25, X31))
in_order13_in_aa(tree(T30, T25, T29), X33) → U2_aa(T30, T25, T29, X33, in_order13_in_aa(T25, T28))
in_order13_in_aa(tree(T33, T25, T29), X33) → U4_aa(T33, T25, T29, X33, in_order13_in_aa(T25, T32))
U4_aa(T33, T25, T29, X33, in_order13_out_aa(T25, T32)) → U5_aa(T33, T25, T29, X33, T32, in_order13_in_aa(T29, T31))
U5_aa(T33, T25, T29, X33, T32, in_order13_out_aa(T29, T31)) → U6_aa(T33, T25, T29, X33, app26_in_aaaa(T32, T33, T31, X33))
app26_in_aaaa([], T46, T47, .(T46, T47)) → app26_out_aaaa([], T46, T47, .(T46, T47))
app26_in_aaaa(.(T56, T60), T61, T62, .(T56, X60)) → U7_aaaa(T56, T60, T61, T62, X60, app26_in_aaaa(T60, T61, T62, X60))
U7_aaaa(T56, T60, T61, T62, X60, app26_out_aaaa(T60, T61, T62, X60)) → app26_out_aaaa(.(T56, T60), T61, T62, .(T56, X60))
U6_aa(T33, T25, T29, X33, app26_out_aaaa(T32, T33, T31, X33)) → in_order13_out_aa(tree(T33, T25, T29), X33)
U2_aa(T30, T25, T29, X33, in_order13_out_aa(T25, T28)) → U3_aa(T30, T25, T29, X33, in_order13_in_aa(T29, X32))
U3_aa(T30, T25, T29, X33, in_order13_out_aa(T29, X32)) → in_order13_out_aa(tree(T30, T25, T29), X33)
U1_aa(T27, T25, T26, X33, in_order13_out_aa(T25, X31)) → in_order13_out_aa(tree(T27, T25, T26), X33)
U9_ag(T13, T12, in_order13_out_aa(T12, X10)) → in_order1_out_ag(tree(T13, void, T12), [])
in_order1_in_ag(tree(T86, tree(T84, T82, T83), T85), []) → U10_ag(T86, T84, T82, T83, T85, in_order13_in_aa(T82, X94))
U10_ag(T86, T84, T82, T83, T85, in_order13_out_aa(T82, X94)) → in_order1_out_ag(tree(T86, tree(T84, T82, T83), T85), [])
in_order1_in_ag(tree(T91, tree(T89, T82, T88), T90), []) → U11_ag(T91, T89, T82, T88, T90, in_order13_in_aa(T82, T87))
U11_ag(T91, T89, T82, T88, T90, in_order13_out_aa(T82, T87)) → U12_ag(T91, T89, T82, T88, T90, in_order13_in_aa(T88, X95))
U12_ag(T91, T89, T82, T88, T90, in_order13_out_aa(T88, X95)) → in_order1_out_ag(tree(T91, tree(T89, T82, T88), T90), [])
in_order1_in_ag(tree(T96, tree(T94, T82, T88), T95), []) → U13_ag(T96, T94, T82, T88, T95, in_order13_in_aa(T82, T93))
U13_ag(T96, T94, T82, T88, T95, in_order13_out_aa(T82, T93)) → U14_ag(T96, T94, T82, T88, T95, T93, in_order13_in_aa(T88, T92))
U14_ag(T96, T94, T82, T88, T95, T93, in_order13_out_aa(T88, T92)) → U15_ag(T96, T94, T82, T88, T95, app26_in_aaaa(T93, T94, T92, X96))
U15_ag(T96, T94, T82, T88, T95, app26_out_aaaa(T93, T94, T92, X96)) → in_order1_out_ag(tree(T96, tree(T94, T82, T88), T95), [])
in_order1_in_ag(tree(T103, tree(T94, T82, T88), T102), []) → U16_ag(T103, T94, T82, T88, T102, in_order13_in_aa(T82, T93))
U16_ag(T103, T94, T82, T88, T102, in_order13_out_aa(T82, T93)) → U17_ag(T103, T94, T82, T88, T102, T93, in_order13_in_aa(T88, T92))
U17_ag(T103, T94, T82, T88, T102, T93, in_order13_out_aa(T88, T92)) → U18_ag(T103, T94, T82, T88, T102, app26_in_aaaa(T93, T94, T92, T101))
U18_ag(T103, T94, T82, T88, T102, app26_out_aaaa(T93, T94, T92, T101)) → U19_ag(T103, T94, T82, T88, T102, in_order13_in_aa(T102, X10))
U19_ag(T103, T94, T82, T88, T102, in_order13_out_aa(T102, X10)) → in_order1_out_ag(tree(T103, tree(T94, T82, T88), T102), [])
in_order1_in_ag(tree(T137, void, T136), T132) → U20_ag(T137, T136, T132, in_order13_in_aa(T136, X125))
U20_ag(T137, T136, T132, in_order13_out_aa(T136, X125)) → in_order1_out_ag(tree(T137, void, T136), T132)
in_order1_in_ag(tree(T153, void, T136), .(T153, T154)) → U21_ag(T153, T136, T154, in_order13_in_ag(T136, T154))
in_order13_in_ag(void, []) → in_order13_out_ag(void, [])
in_order13_in_ag(tree(T27, T25, T26), X33) → U1_ag(T27, T25, T26, X33, in_order13_in_aa(T25, X31))
U1_ag(T27, T25, T26, X33, in_order13_out_aa(T25, X31)) → in_order13_out_ag(tree(T27, T25, T26), X33)
in_order13_in_ag(tree(T30, T25, T29), X33) → U2_ag(T30, T25, T29, X33, in_order13_in_aa(T25, T28))
U2_ag(T30, T25, T29, X33, in_order13_out_aa(T25, T28)) → U3_ag(T30, T25, T29, X33, in_order13_in_aa(T29, X32))
U3_ag(T30, T25, T29, X33, in_order13_out_aa(T29, X32)) → in_order13_out_ag(tree(T30, T25, T29), X33)
in_order13_in_ag(tree(T33, T25, T29), X33) → U4_ag(T33, T25, T29, X33, in_order13_in_aa(T25, T32))
U4_ag(T33, T25, T29, X33, in_order13_out_aa(T25, T32)) → U5_ag(T33, T25, T29, X33, T32, in_order13_in_aa(T29, T31))
U5_ag(T33, T25, T29, X33, T32, in_order13_out_aa(T29, T31)) → U6_ag(T33, T25, T29, X33, app26_in_aaag(T32, T33, T31, X33))
app26_in_aaag([], T46, T47, .(T46, T47)) → app26_out_aaag([], T46, T47, .(T46, T47))
app26_in_aaag(.(T56, T60), T61, T62, .(T56, X60)) → U7_aaag(T56, T60, T61, T62, X60, app26_in_aaag(T60, T61, T62, X60))
U7_aaag(T56, T60, T61, T62, X60, app26_out_aaag(T60, T61, T62, X60)) → app26_out_aaag(.(T56, T60), T61, T62, .(T56, X60))
U6_ag(T33, T25, T29, X33, app26_out_aaag(T32, T33, T31, X33)) → in_order13_out_ag(tree(T33, T25, T29), X33)
U21_ag(T153, T136, T154, in_order13_out_ag(T136, T154)) → in_order1_out_ag(tree(T153, void, T136), .(T153, T154))
in_order1_in_ag(tree(T168, tree(T166, T164, T165), T167), T132) → U22_ag(T168, T166, T164, T165, T167, T132, in_order13_in_aa(T164, X158))
U22_ag(T168, T166, T164, T165, T167, T132, in_order13_out_aa(T164, X158)) → in_order1_out_ag(tree(T168, tree(T166, T164, T165), T167), T132)
in_order1_in_ag(tree(T173, tree(T171, T164, T170), T172), T132) → U23_ag(T173, T171, T164, T170, T172, T132, in_order13_in_aa(T164, T169))
U23_ag(T173, T171, T164, T170, T172, T132, in_order13_out_aa(T164, T169)) → U24_ag(T173, T171, T164, T170, T172, T132, in_order13_in_aa(T170, X159))
U24_ag(T173, T171, T164, T170, T172, T132, in_order13_out_aa(T170, X159)) → in_order1_out_ag(tree(T173, tree(T171, T164, T170), T172), T132)
in_order1_in_ag(tree(T179, tree(T177, T164, T170), T178), T132) → U25_ag(T179, T177, T164, T170, T178, T132, in_order13_in_aa(T164, T176))
U25_ag(T179, T177, T164, T170, T178, T132, in_order13_out_aa(T164, T176)) → U26_ag(T179, T177, T164, T170, T178, T132, T176, in_order13_in_aa(T170, T175))
U26_ag(T179, T177, T164, T170, T178, T132, T176, in_order13_out_aa(T170, T175)) → U27_ag(T179, T177, T164, T170, T178, T132, app26_in_aaaa(T176, T177, T175, X160))
U27_ag(T179, T177, T164, T170, T178, T132, app26_out_aaaa(T176, T177, T175, X160)) → in_order1_out_ag(tree(T179, tree(T177, T164, T170), T178), T132)
in_order1_in_ag(tree(T187, tree(T177, T164, T170), T186), T132) → U28_ag(T187, T177, T164, T170, T186, T132, in_order13_in_aa(T164, T176))
U28_ag(T187, T177, T164, T170, T186, T132, in_order13_out_aa(T164, T176)) → U29_ag(T187, T177, T164, T170, T186, T132, T176, in_order13_in_aa(T170, T175))
U29_ag(T187, T177, T164, T170, T186, T132, T176, in_order13_out_aa(T170, T175)) → U30_ag(T187, T177, T164, T170, T186, T132, app26_in_aaaa(T176, T177, T175, T185))
U30_ag(T187, T177, T164, T170, T186, T132, app26_out_aaaa(T176, T177, T175, T185)) → U31_ag(T187, T177, T164, T170, T186, T132, in_order13_in_aa(T186, X125))
U31_ag(T187, T177, T164, T170, T186, T132, in_order13_out_aa(T186, X125)) → in_order1_out_ag(tree(T187, tree(T177, T164, T170), T186), T132)
in_order1_in_ag(tree(T209, tree(T177, T164, T170), T186), .(T209, T210)) → U32_ag(T209, T177, T164, T170, T186, T210, in_order13_in_aa(T164, T176))
U32_ag(T209, T177, T164, T170, T186, T210, in_order13_out_aa(T164, T176)) → U33_ag(T209, T177, T164, T170, T186, T210, T176, in_order13_in_aa(T170, T175))
U33_ag(T209, T177, T164, T170, T186, T210, T176, in_order13_out_aa(T170, T175)) → U34_ag(T209, T177, T164, T170, T186, T210, app26_in_aaag(T176, T177, T175, []))
U34_ag(T209, T177, T164, T170, T186, T210, app26_out_aaag(T176, T177, T175, [])) → U35_ag(T209, T177, T164, T170, T186, T210, in_order13_in_ag(T186, T210))
U35_ag(T209, T177, T164, T170, T186, T210, in_order13_out_ag(T186, T210)) → in_order1_out_ag(tree(T209, tree(T177, T164, T170), T186), .(T209, T210))
in_order1_in_ag(tree(T227, tree(T177, T164, T170), T186), .(T221, T225)) → U36_ag(T227, T177, T164, T170, T186, T221, T225, in_order13_in_aa(T164, T176))
U36_ag(T227, T177, T164, T170, T186, T221, T225, in_order13_out_aa(T164, T176)) → U37_ag(T227, T177, T164, T170, T186, T221, T225, T176, in_order13_in_aa(T170, T175))
U37_ag(T227, T177, T164, T170, T186, T221, T225, T176, in_order13_out_aa(T170, T175)) → U38_ag(T227, T177, T164, T170, T186, T221, T225, app26_in_aaaa(T176, T177, T175, .(T221, T226)))
U38_ag(T227, T177, T164, T170, T186, T221, T225, app26_out_aaaa(T176, T177, T175, .(T221, T226))) → U39_ag(T227, T177, T164, T170, T186, T221, T225, T226, in_order13_in_aa(T186, T228))
U39_ag(T227, T177, T164, T170, T186, T221, T225, T226, in_order13_out_aa(T186, T228)) → U40_ag(T227, T177, T164, T170, T186, T221, T225, app83_in_aaag(T226, T227, T228, T225))
app83_in_aaag([], T241, T242, .(T241, T242)) → app83_out_aaag([], T241, T242, .(T241, T242))
app83_in_aaag(.(T253, T258), T259, T260, .(T253, T257)) → U8_aaag(T253, T258, T259, T260, T257, app83_in_aaag(T258, T259, T260, T257))
U8_aaag(T253, T258, T259, T260, T257, app83_out_aaag(T258, T259, T260, T257)) → app83_out_aaag(.(T253, T258), T259, T260, .(T253, T257))
U40_ag(T227, T177, T164, T170, T186, T221, T225, app83_out_aaag(T226, T227, T228, T225)) → in_order1_out_ag(tree(T227, tree(T177, T164, T170), T186), .(T221, T225))
IN_ORDER1_IN_AG(tree(T13, void, T12), []) → U9_AG(T13, T12, in_order13_in_aa(T12, X10))
IN_ORDER1_IN_AG(tree(T13, void, T12), []) → IN_ORDER13_IN_AA(T12, X10)
IN_ORDER13_IN_AA(tree(T27, T25, T26), X33) → U1_AA(T27, T25, T26, X33, in_order13_in_aa(T25, X31))
IN_ORDER13_IN_AA(tree(T27, T25, T26), X33) → IN_ORDER13_IN_AA(T25, X31)
IN_ORDER13_IN_AA(tree(T30, T25, T29), X33) → U2_AA(T30, T25, T29, X33, in_order13_in_aa(T25, T28))
IN_ORDER13_IN_AA(tree(T33, T25, T29), X33) → U4_AA(T33, T25, T29, X33, in_order13_in_aa(T25, T32))
U4_AA(T33, T25, T29, X33, in_order13_out_aa(T25, T32)) → U5_AA(T33, T25, T29, X33, T32, in_order13_in_aa(T29, T31))
U4_AA(T33, T25, T29, X33, in_order13_out_aa(T25, T32)) → IN_ORDER13_IN_AA(T29, T31)
U5_AA(T33, T25, T29, X33, T32, in_order13_out_aa(T29, T31)) → U6_AA(T33, T25, T29, X33, app26_in_aaaa(T32, T33, T31, X33))
U5_AA(T33, T25, T29, X33, T32, in_order13_out_aa(T29, T31)) → APP26_IN_AAAA(T32, T33, T31, X33)
APP26_IN_AAAA(.(T56, T60), T61, T62, .(T56, X60)) → U7_AAAA(T56, T60, T61, T62, X60, app26_in_aaaa(T60, T61, T62, X60))
APP26_IN_AAAA(.(T56, T60), T61, T62, .(T56, X60)) → APP26_IN_AAAA(T60, T61, T62, X60)
U2_AA(T30, T25, T29, X33, in_order13_out_aa(T25, T28)) → U3_AA(T30, T25, T29, X33, in_order13_in_aa(T29, X32))
U2_AA(T30, T25, T29, X33, in_order13_out_aa(T25, T28)) → IN_ORDER13_IN_AA(T29, X32)
IN_ORDER1_IN_AG(tree(T86, tree(T84, T82, T83), T85), []) → U10_AG(T86, T84, T82, T83, T85, in_order13_in_aa(T82, X94))
IN_ORDER1_IN_AG(tree(T86, tree(T84, T82, T83), T85), []) → IN_ORDER13_IN_AA(T82, X94)
IN_ORDER1_IN_AG(tree(T91, tree(T89, T82, T88), T90), []) → U11_AG(T91, T89, T82, T88, T90, in_order13_in_aa(T82, T87))
U11_AG(T91, T89, T82, T88, T90, in_order13_out_aa(T82, T87)) → U12_AG(T91, T89, T82, T88, T90, in_order13_in_aa(T88, X95))
U11_AG(T91, T89, T82, T88, T90, in_order13_out_aa(T82, T87)) → IN_ORDER13_IN_AA(T88, X95)
IN_ORDER1_IN_AG(tree(T96, tree(T94, T82, T88), T95), []) → U13_AG(T96, T94, T82, T88, T95, in_order13_in_aa(T82, T93))
U13_AG(T96, T94, T82, T88, T95, in_order13_out_aa(T82, T93)) → U14_AG(T96, T94, T82, T88, T95, T93, in_order13_in_aa(T88, T92))
U13_AG(T96, T94, T82, T88, T95, in_order13_out_aa(T82, T93)) → IN_ORDER13_IN_AA(T88, T92)
U14_AG(T96, T94, T82, T88, T95, T93, in_order13_out_aa(T88, T92)) → U15_AG(T96, T94, T82, T88, T95, app26_in_aaaa(T93, T94, T92, X96))
U14_AG(T96, T94, T82, T88, T95, T93, in_order13_out_aa(T88, T92)) → APP26_IN_AAAA(T93, T94, T92, X96)
IN_ORDER1_IN_AG(tree(T103, tree(T94, T82, T88), T102), []) → U16_AG(T103, T94, T82, T88, T102, in_order13_in_aa(T82, T93))
U16_AG(T103, T94, T82, T88, T102, in_order13_out_aa(T82, T93)) → U17_AG(T103, T94, T82, T88, T102, T93, in_order13_in_aa(T88, T92))
U16_AG(T103, T94, T82, T88, T102, in_order13_out_aa(T82, T93)) → IN_ORDER13_IN_AA(T88, T92)
U17_AG(T103, T94, T82, T88, T102, T93, in_order13_out_aa(T88, T92)) → U18_AG(T103, T94, T82, T88, T102, app26_in_aaaa(T93, T94, T92, T101))
U17_AG(T103, T94, T82, T88, T102, T93, in_order13_out_aa(T88, T92)) → APP26_IN_AAAA(T93, T94, T92, T101)
U18_AG(T103, T94, T82, T88, T102, app26_out_aaaa(T93, T94, T92, T101)) → U19_AG(T103, T94, T82, T88, T102, in_order13_in_aa(T102, X10))
U18_AG(T103, T94, T82, T88, T102, app26_out_aaaa(T93, T94, T92, T101)) → IN_ORDER13_IN_AA(T102, X10)
IN_ORDER1_IN_AG(tree(T137, void, T136), T132) → U20_AG(T137, T136, T132, in_order13_in_aa(T136, X125))
IN_ORDER1_IN_AG(tree(T137, void, T136), T132) → IN_ORDER13_IN_AA(T136, X125)
IN_ORDER1_IN_AG(tree(T153, void, T136), .(T153, T154)) → U21_AG(T153, T136, T154, in_order13_in_ag(T136, T154))
IN_ORDER1_IN_AG(tree(T153, void, T136), .(T153, T154)) → IN_ORDER13_IN_AG(T136, T154)
IN_ORDER13_IN_AG(tree(T27, T25, T26), X33) → U1_AG(T27, T25, T26, X33, in_order13_in_aa(T25, X31))
IN_ORDER13_IN_AG(tree(T27, T25, T26), X33) → IN_ORDER13_IN_AA(T25, X31)
IN_ORDER13_IN_AG(tree(T30, T25, T29), X33) → U2_AG(T30, T25, T29, X33, in_order13_in_aa(T25, T28))
U2_AG(T30, T25, T29, X33, in_order13_out_aa(T25, T28)) → U3_AG(T30, T25, T29, X33, in_order13_in_aa(T29, X32))
U2_AG(T30, T25, T29, X33, in_order13_out_aa(T25, T28)) → IN_ORDER13_IN_AA(T29, X32)
IN_ORDER13_IN_AG(tree(T33, T25, T29), X33) → U4_AG(T33, T25, T29, X33, in_order13_in_aa(T25, T32))
U4_AG(T33, T25, T29, X33, in_order13_out_aa(T25, T32)) → U5_AG(T33, T25, T29, X33, T32, in_order13_in_aa(T29, T31))
U4_AG(T33, T25, T29, X33, in_order13_out_aa(T25, T32)) → IN_ORDER13_IN_AA(T29, T31)
U5_AG(T33, T25, T29, X33, T32, in_order13_out_aa(T29, T31)) → U6_AG(T33, T25, T29, X33, app26_in_aaag(T32, T33, T31, X33))
U5_AG(T33, T25, T29, X33, T32, in_order13_out_aa(T29, T31)) → APP26_IN_AAAG(T32, T33, T31, X33)
APP26_IN_AAAG(.(T56, T60), T61, T62, .(T56, X60)) → U7_AAAG(T56, T60, T61, T62, X60, app26_in_aaag(T60, T61, T62, X60))
APP26_IN_AAAG(.(T56, T60), T61, T62, .(T56, X60)) → APP26_IN_AAAG(T60, T61, T62, X60)
IN_ORDER1_IN_AG(tree(T168, tree(T166, T164, T165), T167), T132) → U22_AG(T168, T166, T164, T165, T167, T132, in_order13_in_aa(T164, X158))
IN_ORDER1_IN_AG(tree(T168, tree(T166, T164, T165), T167), T132) → IN_ORDER13_IN_AA(T164, X158)
IN_ORDER1_IN_AG(tree(T173, tree(T171, T164, T170), T172), T132) → U23_AG(T173, T171, T164, T170, T172, T132, in_order13_in_aa(T164, T169))
U23_AG(T173, T171, T164, T170, T172, T132, in_order13_out_aa(T164, T169)) → U24_AG(T173, T171, T164, T170, T172, T132, in_order13_in_aa(T170, X159))
U23_AG(T173, T171, T164, T170, T172, T132, in_order13_out_aa(T164, T169)) → IN_ORDER13_IN_AA(T170, X159)
IN_ORDER1_IN_AG(tree(T179, tree(T177, T164, T170), T178), T132) → U25_AG(T179, T177, T164, T170, T178, T132, in_order13_in_aa(T164, T176))
U25_AG(T179, T177, T164, T170, T178, T132, in_order13_out_aa(T164, T176)) → U26_AG(T179, T177, T164, T170, T178, T132, T176, in_order13_in_aa(T170, T175))
U25_AG(T179, T177, T164, T170, T178, T132, in_order13_out_aa(T164, T176)) → IN_ORDER13_IN_AA(T170, T175)
U26_AG(T179, T177, T164, T170, T178, T132, T176, in_order13_out_aa(T170, T175)) → U27_AG(T179, T177, T164, T170, T178, T132, app26_in_aaaa(T176, T177, T175, X160))
U26_AG(T179, T177, T164, T170, T178, T132, T176, in_order13_out_aa(T170, T175)) → APP26_IN_AAAA(T176, T177, T175, X160)
IN_ORDER1_IN_AG(tree(T187, tree(T177, T164, T170), T186), T132) → U28_AG(T187, T177, T164, T170, T186, T132, in_order13_in_aa(T164, T176))
U28_AG(T187, T177, T164, T170, T186, T132, in_order13_out_aa(T164, T176)) → U29_AG(T187, T177, T164, T170, T186, T132, T176, in_order13_in_aa(T170, T175))
U28_AG(T187, T177, T164, T170, T186, T132, in_order13_out_aa(T164, T176)) → IN_ORDER13_IN_AA(T170, T175)
U29_AG(T187, T177, T164, T170, T186, T132, T176, in_order13_out_aa(T170, T175)) → U30_AG(T187, T177, T164, T170, T186, T132, app26_in_aaaa(T176, T177, T175, T185))
U29_AG(T187, T177, T164, T170, T186, T132, T176, in_order13_out_aa(T170, T175)) → APP26_IN_AAAA(T176, T177, T175, T185)
U30_AG(T187, T177, T164, T170, T186, T132, app26_out_aaaa(T176, T177, T175, T185)) → U31_AG(T187, T177, T164, T170, T186, T132, in_order13_in_aa(T186, X125))
U30_AG(T187, T177, T164, T170, T186, T132, app26_out_aaaa(T176, T177, T175, T185)) → IN_ORDER13_IN_AA(T186, X125)
IN_ORDER1_IN_AG(tree(T209, tree(T177, T164, T170), T186), .(T209, T210)) → U32_AG(T209, T177, T164, T170, T186, T210, in_order13_in_aa(T164, T176))
IN_ORDER1_IN_AG(tree(T209, tree(T177, T164, T170), T186), .(T209, T210)) → IN_ORDER13_IN_AA(T164, T176)
U32_AG(T209, T177, T164, T170, T186, T210, in_order13_out_aa(T164, T176)) → U33_AG(T209, T177, T164, T170, T186, T210, T176, in_order13_in_aa(T170, T175))
U32_AG(T209, T177, T164, T170, T186, T210, in_order13_out_aa(T164, T176)) → IN_ORDER13_IN_AA(T170, T175)
U33_AG(T209, T177, T164, T170, T186, T210, T176, in_order13_out_aa(T170, T175)) → U34_AG(T209, T177, T164, T170, T186, T210, app26_in_aaag(T176, T177, T175, []))
U33_AG(T209, T177, T164, T170, T186, T210, T176, in_order13_out_aa(T170, T175)) → APP26_IN_AAAG(T176, T177, T175, [])
U34_AG(T209, T177, T164, T170, T186, T210, app26_out_aaag(T176, T177, T175, [])) → U35_AG(T209, T177, T164, T170, T186, T210, in_order13_in_ag(T186, T210))
U34_AG(T209, T177, T164, T170, T186, T210, app26_out_aaag(T176, T177, T175, [])) → IN_ORDER13_IN_AG(T186, T210)
IN_ORDER1_IN_AG(tree(T227, tree(T177, T164, T170), T186), .(T221, T225)) → U36_AG(T227, T177, T164, T170, T186, T221, T225, in_order13_in_aa(T164, T176))
IN_ORDER1_IN_AG(tree(T227, tree(T177, T164, T170), T186), .(T221, T225)) → IN_ORDER13_IN_AA(T164, T176)
U36_AG(T227, T177, T164, T170, T186, T221, T225, in_order13_out_aa(T164, T176)) → U37_AG(T227, T177, T164, T170, T186, T221, T225, T176, in_order13_in_aa(T170, T175))
U36_AG(T227, T177, T164, T170, T186, T221, T225, in_order13_out_aa(T164, T176)) → IN_ORDER13_IN_AA(T170, T175)
U37_AG(T227, T177, T164, T170, T186, T221, T225, T176, in_order13_out_aa(T170, T175)) → U38_AG(T227, T177, T164, T170, T186, T221, T225, app26_in_aaaa(T176, T177, T175, .(T221, T226)))
U37_AG(T227, T177, T164, T170, T186, T221, T225, T176, in_order13_out_aa(T170, T175)) → APP26_IN_AAAA(T176, T177, T175, .(T221, T226))
U38_AG(T227, T177, T164, T170, T186, T221, T225, app26_out_aaaa(T176, T177, T175, .(T221, T226))) → U39_AG(T227, T177, T164, T170, T186, T221, T225, T226, in_order13_in_aa(T186, T228))
U38_AG(T227, T177, T164, T170, T186, T221, T225, app26_out_aaaa(T176, T177, T175, .(T221, T226))) → IN_ORDER13_IN_AA(T186, T228)
U39_AG(T227, T177, T164, T170, T186, T221, T225, T226, in_order13_out_aa(T186, T228)) → U40_AG(T227, T177, T164, T170, T186, T221, T225, app83_in_aaag(T226, T227, T228, T225))
U39_AG(T227, T177, T164, T170, T186, T221, T225, T226, in_order13_out_aa(T186, T228)) → APP83_IN_AAAG(T226, T227, T228, T225)
APP83_IN_AAAG(.(T253, T258), T259, T260, .(T253, T257)) → U8_AAAG(T253, T258, T259, T260, T257, app83_in_aaag(T258, T259, T260, T257))
APP83_IN_AAAG(.(T253, T258), T259, T260, .(T253, T257)) → APP83_IN_AAAG(T258, T259, T260, T257)
in_order1_in_ag(void, []) → in_order1_out_ag(void, [])
in_order1_in_ag(tree(T13, void, T12), []) → U9_ag(T13, T12, in_order13_in_aa(T12, X10))
in_order13_in_aa(void, []) → in_order13_out_aa(void, [])
in_order13_in_aa(tree(T27, T25, T26), X33) → U1_aa(T27, T25, T26, X33, in_order13_in_aa(T25, X31))
in_order13_in_aa(tree(T30, T25, T29), X33) → U2_aa(T30, T25, T29, X33, in_order13_in_aa(T25, T28))
in_order13_in_aa(tree(T33, T25, T29), X33) → U4_aa(T33, T25, T29, X33, in_order13_in_aa(T25, T32))
U4_aa(T33, T25, T29, X33, in_order13_out_aa(T25, T32)) → U5_aa(T33, T25, T29, X33, T32, in_order13_in_aa(T29, T31))
U5_aa(T33, T25, T29, X33, T32, in_order13_out_aa(T29, T31)) → U6_aa(T33, T25, T29, X33, app26_in_aaaa(T32, T33, T31, X33))
app26_in_aaaa([], T46, T47, .(T46, T47)) → app26_out_aaaa([], T46, T47, .(T46, T47))
app26_in_aaaa(.(T56, T60), T61, T62, .(T56, X60)) → U7_aaaa(T56, T60, T61, T62, X60, app26_in_aaaa(T60, T61, T62, X60))
U7_aaaa(T56, T60, T61, T62, X60, app26_out_aaaa(T60, T61, T62, X60)) → app26_out_aaaa(.(T56, T60), T61, T62, .(T56, X60))
U6_aa(T33, T25, T29, X33, app26_out_aaaa(T32, T33, T31, X33)) → in_order13_out_aa(tree(T33, T25, T29), X33)
U2_aa(T30, T25, T29, X33, in_order13_out_aa(T25, T28)) → U3_aa(T30, T25, T29, X33, in_order13_in_aa(T29, X32))
U3_aa(T30, T25, T29, X33, in_order13_out_aa(T29, X32)) → in_order13_out_aa(tree(T30, T25, T29), X33)
U1_aa(T27, T25, T26, X33, in_order13_out_aa(T25, X31)) → in_order13_out_aa(tree(T27, T25, T26), X33)
U9_ag(T13, T12, in_order13_out_aa(T12, X10)) → in_order1_out_ag(tree(T13, void, T12), [])
in_order1_in_ag(tree(T86, tree(T84, T82, T83), T85), []) → U10_ag(T86, T84, T82, T83, T85, in_order13_in_aa(T82, X94))
U10_ag(T86, T84, T82, T83, T85, in_order13_out_aa(T82, X94)) → in_order1_out_ag(tree(T86, tree(T84, T82, T83), T85), [])
in_order1_in_ag(tree(T91, tree(T89, T82, T88), T90), []) → U11_ag(T91, T89, T82, T88, T90, in_order13_in_aa(T82, T87))
U11_ag(T91, T89, T82, T88, T90, in_order13_out_aa(T82, T87)) → U12_ag(T91, T89, T82, T88, T90, in_order13_in_aa(T88, X95))
U12_ag(T91, T89, T82, T88, T90, in_order13_out_aa(T88, X95)) → in_order1_out_ag(tree(T91, tree(T89, T82, T88), T90), [])
in_order1_in_ag(tree(T96, tree(T94, T82, T88), T95), []) → U13_ag(T96, T94, T82, T88, T95, in_order13_in_aa(T82, T93))
U13_ag(T96, T94, T82, T88, T95, in_order13_out_aa(T82, T93)) → U14_ag(T96, T94, T82, T88, T95, T93, in_order13_in_aa(T88, T92))
U14_ag(T96, T94, T82, T88, T95, T93, in_order13_out_aa(T88, T92)) → U15_ag(T96, T94, T82, T88, T95, app26_in_aaaa(T93, T94, T92, X96))
U15_ag(T96, T94, T82, T88, T95, app26_out_aaaa(T93, T94, T92, X96)) → in_order1_out_ag(tree(T96, tree(T94, T82, T88), T95), [])
in_order1_in_ag(tree(T103, tree(T94, T82, T88), T102), []) → U16_ag(T103, T94, T82, T88, T102, in_order13_in_aa(T82, T93))
U16_ag(T103, T94, T82, T88, T102, in_order13_out_aa(T82, T93)) → U17_ag(T103, T94, T82, T88, T102, T93, in_order13_in_aa(T88, T92))
U17_ag(T103, T94, T82, T88, T102, T93, in_order13_out_aa(T88, T92)) → U18_ag(T103, T94, T82, T88, T102, app26_in_aaaa(T93, T94, T92, T101))
U18_ag(T103, T94, T82, T88, T102, app26_out_aaaa(T93, T94, T92, T101)) → U19_ag(T103, T94, T82, T88, T102, in_order13_in_aa(T102, X10))
U19_ag(T103, T94, T82, T88, T102, in_order13_out_aa(T102, X10)) → in_order1_out_ag(tree(T103, tree(T94, T82, T88), T102), [])
in_order1_in_ag(tree(T137, void, T136), T132) → U20_ag(T137, T136, T132, in_order13_in_aa(T136, X125))
U20_ag(T137, T136, T132, in_order13_out_aa(T136, X125)) → in_order1_out_ag(tree(T137, void, T136), T132)
in_order1_in_ag(tree(T153, void, T136), .(T153, T154)) → U21_ag(T153, T136, T154, in_order13_in_ag(T136, T154))
in_order13_in_ag(void, []) → in_order13_out_ag(void, [])
in_order13_in_ag(tree(T27, T25, T26), X33) → U1_ag(T27, T25, T26, X33, in_order13_in_aa(T25, X31))
U1_ag(T27, T25, T26, X33, in_order13_out_aa(T25, X31)) → in_order13_out_ag(tree(T27, T25, T26), X33)
in_order13_in_ag(tree(T30, T25, T29), X33) → U2_ag(T30, T25, T29, X33, in_order13_in_aa(T25, T28))
U2_ag(T30, T25, T29, X33, in_order13_out_aa(T25, T28)) → U3_ag(T30, T25, T29, X33, in_order13_in_aa(T29, X32))
U3_ag(T30, T25, T29, X33, in_order13_out_aa(T29, X32)) → in_order13_out_ag(tree(T30, T25, T29), X33)
in_order13_in_ag(tree(T33, T25, T29), X33) → U4_ag(T33, T25, T29, X33, in_order13_in_aa(T25, T32))
U4_ag(T33, T25, T29, X33, in_order13_out_aa(T25, T32)) → U5_ag(T33, T25, T29, X33, T32, in_order13_in_aa(T29, T31))
U5_ag(T33, T25, T29, X33, T32, in_order13_out_aa(T29, T31)) → U6_ag(T33, T25, T29, X33, app26_in_aaag(T32, T33, T31, X33))
app26_in_aaag([], T46, T47, .(T46, T47)) → app26_out_aaag([], T46, T47, .(T46, T47))
app26_in_aaag(.(T56, T60), T61, T62, .(T56, X60)) → U7_aaag(T56, T60, T61, T62, X60, app26_in_aaag(T60, T61, T62, X60))
U7_aaag(T56, T60, T61, T62, X60, app26_out_aaag(T60, T61, T62, X60)) → app26_out_aaag(.(T56, T60), T61, T62, .(T56, X60))
U6_ag(T33, T25, T29, X33, app26_out_aaag(T32, T33, T31, X33)) → in_order13_out_ag(tree(T33, T25, T29), X33)
U21_ag(T153, T136, T154, in_order13_out_ag(T136, T154)) → in_order1_out_ag(tree(T153, void, T136), .(T153, T154))
in_order1_in_ag(tree(T168, tree(T166, T164, T165), T167), T132) → U22_ag(T168, T166, T164, T165, T167, T132, in_order13_in_aa(T164, X158))
U22_ag(T168, T166, T164, T165, T167, T132, in_order13_out_aa(T164, X158)) → in_order1_out_ag(tree(T168, tree(T166, T164, T165), T167), T132)
in_order1_in_ag(tree(T173, tree(T171, T164, T170), T172), T132) → U23_ag(T173, T171, T164, T170, T172, T132, in_order13_in_aa(T164, T169))
U23_ag(T173, T171, T164, T170, T172, T132, in_order13_out_aa(T164, T169)) → U24_ag(T173, T171, T164, T170, T172, T132, in_order13_in_aa(T170, X159))
U24_ag(T173, T171, T164, T170, T172, T132, in_order13_out_aa(T170, X159)) → in_order1_out_ag(tree(T173, tree(T171, T164, T170), T172), T132)
in_order1_in_ag(tree(T179, tree(T177, T164, T170), T178), T132) → U25_ag(T179, T177, T164, T170, T178, T132, in_order13_in_aa(T164, T176))
U25_ag(T179, T177, T164, T170, T178, T132, in_order13_out_aa(T164, T176)) → U26_ag(T179, T177, T164, T170, T178, T132, T176, in_order13_in_aa(T170, T175))
U26_ag(T179, T177, T164, T170, T178, T132, T176, in_order13_out_aa(T170, T175)) → U27_ag(T179, T177, T164, T170, T178, T132, app26_in_aaaa(T176, T177, T175, X160))
U27_ag(T179, T177, T164, T170, T178, T132, app26_out_aaaa(T176, T177, T175, X160)) → in_order1_out_ag(tree(T179, tree(T177, T164, T170), T178), T132)
in_order1_in_ag(tree(T187, tree(T177, T164, T170), T186), T132) → U28_ag(T187, T177, T164, T170, T186, T132, in_order13_in_aa(T164, T176))
U28_ag(T187, T177, T164, T170, T186, T132, in_order13_out_aa(T164, T176)) → U29_ag(T187, T177, T164, T170, T186, T132, T176, in_order13_in_aa(T170, T175))
U29_ag(T187, T177, T164, T170, T186, T132, T176, in_order13_out_aa(T170, T175)) → U30_ag(T187, T177, T164, T170, T186, T132, app26_in_aaaa(T176, T177, T175, T185))
U30_ag(T187, T177, T164, T170, T186, T132, app26_out_aaaa(T176, T177, T175, T185)) → U31_ag(T187, T177, T164, T170, T186, T132, in_order13_in_aa(T186, X125))
U31_ag(T187, T177, T164, T170, T186, T132, in_order13_out_aa(T186, X125)) → in_order1_out_ag(tree(T187, tree(T177, T164, T170), T186), T132)
in_order1_in_ag(tree(T209, tree(T177, T164, T170), T186), .(T209, T210)) → U32_ag(T209, T177, T164, T170, T186, T210, in_order13_in_aa(T164, T176))
U32_ag(T209, T177, T164, T170, T186, T210, in_order13_out_aa(T164, T176)) → U33_ag(T209, T177, T164, T170, T186, T210, T176, in_order13_in_aa(T170, T175))
U33_ag(T209, T177, T164, T170, T186, T210, T176, in_order13_out_aa(T170, T175)) → U34_ag(T209, T177, T164, T170, T186, T210, app26_in_aaag(T176, T177, T175, []))
U34_ag(T209, T177, T164, T170, T186, T210, app26_out_aaag(T176, T177, T175, [])) → U35_ag(T209, T177, T164, T170, T186, T210, in_order13_in_ag(T186, T210))
U35_ag(T209, T177, T164, T170, T186, T210, in_order13_out_ag(T186, T210)) → in_order1_out_ag(tree(T209, tree(T177, T164, T170), T186), .(T209, T210))
in_order1_in_ag(tree(T227, tree(T177, T164, T170), T186), .(T221, T225)) → U36_ag(T227, T177, T164, T170, T186, T221, T225, in_order13_in_aa(T164, T176))
U36_ag(T227, T177, T164, T170, T186, T221, T225, in_order13_out_aa(T164, T176)) → U37_ag(T227, T177, T164, T170, T186, T221, T225, T176, in_order13_in_aa(T170, T175))
U37_ag(T227, T177, T164, T170, T186, T221, T225, T176, in_order13_out_aa(T170, T175)) → U38_ag(T227, T177, T164, T170, T186, T221, T225, app26_in_aaaa(T176, T177, T175, .(T221, T226)))
U38_ag(T227, T177, T164, T170, T186, T221, T225, app26_out_aaaa(T176, T177, T175, .(T221, T226))) → U39_ag(T227, T177, T164, T170, T186, T221, T225, T226, in_order13_in_aa(T186, T228))
U39_ag(T227, T177, T164, T170, T186, T221, T225, T226, in_order13_out_aa(T186, T228)) → U40_ag(T227, T177, T164, T170, T186, T221, T225, app83_in_aaag(T226, T227, T228, T225))
app83_in_aaag([], T241, T242, .(T241, T242)) → app83_out_aaag([], T241, T242, .(T241, T242))
app83_in_aaag(.(T253, T258), T259, T260, .(T253, T257)) → U8_aaag(T253, T258, T259, T260, T257, app83_in_aaag(T258, T259, T260, T257))
U8_aaag(T253, T258, T259, T260, T257, app83_out_aaag(T258, T259, T260, T257)) → app83_out_aaag(.(T253, T258), T259, T260, .(T253, T257))
U40_ag(T227, T177, T164, T170, T186, T221, T225, app83_out_aaag(T226, T227, T228, T225)) → in_order1_out_ag(tree(T227, tree(T177, T164, T170), T186), .(T221, T225))
APP83_IN_AAAG(.(T253, T258), T259, T260, .(T253, T257)) → APP83_IN_AAAG(T258, T259, T260, T257)
in_order1_in_ag(void, []) → in_order1_out_ag(void, [])
in_order1_in_ag(tree(T13, void, T12), []) → U9_ag(T13, T12, in_order13_in_aa(T12, X10))
in_order13_in_aa(void, []) → in_order13_out_aa(void, [])
in_order13_in_aa(tree(T27, T25, T26), X33) → U1_aa(T27, T25, T26, X33, in_order13_in_aa(T25, X31))
in_order13_in_aa(tree(T30, T25, T29), X33) → U2_aa(T30, T25, T29, X33, in_order13_in_aa(T25, T28))
in_order13_in_aa(tree(T33, T25, T29), X33) → U4_aa(T33, T25, T29, X33, in_order13_in_aa(T25, T32))
U4_aa(T33, T25, T29, X33, in_order13_out_aa(T25, T32)) → U5_aa(T33, T25, T29, X33, T32, in_order13_in_aa(T29, T31))
U5_aa(T33, T25, T29, X33, T32, in_order13_out_aa(T29, T31)) → U6_aa(T33, T25, T29, X33, app26_in_aaaa(T32, T33, T31, X33))
app26_in_aaaa([], T46, T47, .(T46, T47)) → app26_out_aaaa([], T46, T47, .(T46, T47))
app26_in_aaaa(.(T56, T60), T61, T62, .(T56, X60)) → U7_aaaa(T56, T60, T61, T62, X60, app26_in_aaaa(T60, T61, T62, X60))
U7_aaaa(T56, T60, T61, T62, X60, app26_out_aaaa(T60, T61, T62, X60)) → app26_out_aaaa(.(T56, T60), T61, T62, .(T56, X60))
U6_aa(T33, T25, T29, X33, app26_out_aaaa(T32, T33, T31, X33)) → in_order13_out_aa(tree(T33, T25, T29), X33)
U2_aa(T30, T25, T29, X33, in_order13_out_aa(T25, T28)) → U3_aa(T30, T25, T29, X33, in_order13_in_aa(T29, X32))
U3_aa(T30, T25, T29, X33, in_order13_out_aa(T29, X32)) → in_order13_out_aa(tree(T30, T25, T29), X33)
U1_aa(T27, T25, T26, X33, in_order13_out_aa(T25, X31)) → in_order13_out_aa(tree(T27, T25, T26), X33)
U9_ag(T13, T12, in_order13_out_aa(T12, X10)) → in_order1_out_ag(tree(T13, void, T12), [])
in_order1_in_ag(tree(T86, tree(T84, T82, T83), T85), []) → U10_ag(T86, T84, T82, T83, T85, in_order13_in_aa(T82, X94))
U10_ag(T86, T84, T82, T83, T85, in_order13_out_aa(T82, X94)) → in_order1_out_ag(tree(T86, tree(T84, T82, T83), T85), [])
in_order1_in_ag(tree(T91, tree(T89, T82, T88), T90), []) → U11_ag(T91, T89, T82, T88, T90, in_order13_in_aa(T82, T87))
U11_ag(T91, T89, T82, T88, T90, in_order13_out_aa(T82, T87)) → U12_ag(T91, T89, T82, T88, T90, in_order13_in_aa(T88, X95))
U12_ag(T91, T89, T82, T88, T90, in_order13_out_aa(T88, X95)) → in_order1_out_ag(tree(T91, tree(T89, T82, T88), T90), [])
in_order1_in_ag(tree(T96, tree(T94, T82, T88), T95), []) → U13_ag(T96, T94, T82, T88, T95, in_order13_in_aa(T82, T93))
U13_ag(T96, T94, T82, T88, T95, in_order13_out_aa(T82, T93)) → U14_ag(T96, T94, T82, T88, T95, T93, in_order13_in_aa(T88, T92))
U14_ag(T96, T94, T82, T88, T95, T93, in_order13_out_aa(T88, T92)) → U15_ag(T96, T94, T82, T88, T95, app26_in_aaaa(T93, T94, T92, X96))
U15_ag(T96, T94, T82, T88, T95, app26_out_aaaa(T93, T94, T92, X96)) → in_order1_out_ag(tree(T96, tree(T94, T82, T88), T95), [])
in_order1_in_ag(tree(T103, tree(T94, T82, T88), T102), []) → U16_ag(T103, T94, T82, T88, T102, in_order13_in_aa(T82, T93))
U16_ag(T103, T94, T82, T88, T102, in_order13_out_aa(T82, T93)) → U17_ag(T103, T94, T82, T88, T102, T93, in_order13_in_aa(T88, T92))
U17_ag(T103, T94, T82, T88, T102, T93, in_order13_out_aa(T88, T92)) → U18_ag(T103, T94, T82, T88, T102, app26_in_aaaa(T93, T94, T92, T101))
U18_ag(T103, T94, T82, T88, T102, app26_out_aaaa(T93, T94, T92, T101)) → U19_ag(T103, T94, T82, T88, T102, in_order13_in_aa(T102, X10))
U19_ag(T103, T94, T82, T88, T102, in_order13_out_aa(T102, X10)) → in_order1_out_ag(tree(T103, tree(T94, T82, T88), T102), [])
in_order1_in_ag(tree(T137, void, T136), T132) → U20_ag(T137, T136, T132, in_order13_in_aa(T136, X125))
U20_ag(T137, T136, T132, in_order13_out_aa(T136, X125)) → in_order1_out_ag(tree(T137, void, T136), T132)
in_order1_in_ag(tree(T153, void, T136), .(T153, T154)) → U21_ag(T153, T136, T154, in_order13_in_ag(T136, T154))
in_order13_in_ag(void, []) → in_order13_out_ag(void, [])
in_order13_in_ag(tree(T27, T25, T26), X33) → U1_ag(T27, T25, T26, X33, in_order13_in_aa(T25, X31))
U1_ag(T27, T25, T26, X33, in_order13_out_aa(T25, X31)) → in_order13_out_ag(tree(T27, T25, T26), X33)
in_order13_in_ag(tree(T30, T25, T29), X33) → U2_ag(T30, T25, T29, X33, in_order13_in_aa(T25, T28))
U2_ag(T30, T25, T29, X33, in_order13_out_aa(T25, T28)) → U3_ag(T30, T25, T29, X33, in_order13_in_aa(T29, X32))
U3_ag(T30, T25, T29, X33, in_order13_out_aa(T29, X32)) → in_order13_out_ag(tree(T30, T25, T29), X33)
in_order13_in_ag(tree(T33, T25, T29), X33) → U4_ag(T33, T25, T29, X33, in_order13_in_aa(T25, T32))
U4_ag(T33, T25, T29, X33, in_order13_out_aa(T25, T32)) → U5_ag(T33, T25, T29, X33, T32, in_order13_in_aa(T29, T31))
U5_ag(T33, T25, T29, X33, T32, in_order13_out_aa(T29, T31)) → U6_ag(T33, T25, T29, X33, app26_in_aaag(T32, T33, T31, X33))
app26_in_aaag([], T46, T47, .(T46, T47)) → app26_out_aaag([], T46, T47, .(T46, T47))
app26_in_aaag(.(T56, T60), T61, T62, .(T56, X60)) → U7_aaag(T56, T60, T61, T62, X60, app26_in_aaag(T60, T61, T62, X60))
U7_aaag(T56, T60, T61, T62, X60, app26_out_aaag(T60, T61, T62, X60)) → app26_out_aaag(.(T56, T60), T61, T62, .(T56, X60))
U6_ag(T33, T25, T29, X33, app26_out_aaag(T32, T33, T31, X33)) → in_order13_out_ag(tree(T33, T25, T29), X33)
U21_ag(T153, T136, T154, in_order13_out_ag(T136, T154)) → in_order1_out_ag(tree(T153, void, T136), .(T153, T154))
in_order1_in_ag(tree(T168, tree(T166, T164, T165), T167), T132) → U22_ag(T168, T166, T164, T165, T167, T132, in_order13_in_aa(T164, X158))
U22_ag(T168, T166, T164, T165, T167, T132, in_order13_out_aa(T164, X158)) → in_order1_out_ag(tree(T168, tree(T166, T164, T165), T167), T132)
in_order1_in_ag(tree(T173, tree(T171, T164, T170), T172), T132) → U23_ag(T173, T171, T164, T170, T172, T132, in_order13_in_aa(T164, T169))
U23_ag(T173, T171, T164, T170, T172, T132, in_order13_out_aa(T164, T169)) → U24_ag(T173, T171, T164, T170, T172, T132, in_order13_in_aa(T170, X159))
U24_ag(T173, T171, T164, T170, T172, T132, in_order13_out_aa(T170, X159)) → in_order1_out_ag(tree(T173, tree(T171, T164, T170), T172), T132)
in_order1_in_ag(tree(T179, tree(T177, T164, T170), T178), T132) → U25_ag(T179, T177, T164, T170, T178, T132, in_order13_in_aa(T164, T176))
U25_ag(T179, T177, T164, T170, T178, T132, in_order13_out_aa(T164, T176)) → U26_ag(T179, T177, T164, T170, T178, T132, T176, in_order13_in_aa(T170, T175))
U26_ag(T179, T177, T164, T170, T178, T132, T176, in_order13_out_aa(T170, T175)) → U27_ag(T179, T177, T164, T170, T178, T132, app26_in_aaaa(T176, T177, T175, X160))
U27_ag(T179, T177, T164, T170, T178, T132, app26_out_aaaa(T176, T177, T175, X160)) → in_order1_out_ag(tree(T179, tree(T177, T164, T170), T178), T132)
in_order1_in_ag(tree(T187, tree(T177, T164, T170), T186), T132) → U28_ag(T187, T177, T164, T170, T186, T132, in_order13_in_aa(T164, T176))
U28_ag(T187, T177, T164, T170, T186, T132, in_order13_out_aa(T164, T176)) → U29_ag(T187, T177, T164, T170, T186, T132, T176, in_order13_in_aa(T170, T175))
U29_ag(T187, T177, T164, T170, T186, T132, T176, in_order13_out_aa(T170, T175)) → U30_ag(T187, T177, T164, T170, T186, T132, app26_in_aaaa(T176, T177, T175, T185))
U30_ag(T187, T177, T164, T170, T186, T132, app26_out_aaaa(T176, T177, T175, T185)) → U31_ag(T187, T177, T164, T170, T186, T132, in_order13_in_aa(T186, X125))
U31_ag(T187, T177, T164, T170, T186, T132, in_order13_out_aa(T186, X125)) → in_order1_out_ag(tree(T187, tree(T177, T164, T170), T186), T132)
in_order1_in_ag(tree(T209, tree(T177, T164, T170), T186), .(T209, T210)) → U32_ag(T209, T177, T164, T170, T186, T210, in_order13_in_aa(T164, T176))
U32_ag(T209, T177, T164, T170, T186, T210, in_order13_out_aa(T164, T176)) → U33_ag(T209, T177, T164, T170, T186, T210, T176, in_order13_in_aa(T170, T175))
U33_ag(T209, T177, T164, T170, T186, T210, T176, in_order13_out_aa(T170, T175)) → U34_ag(T209, T177, T164, T170, T186, T210, app26_in_aaag(T176, T177, T175, []))
U34_ag(T209, T177, T164, T170, T186, T210, app26_out_aaag(T176, T177, T175, [])) → U35_ag(T209, T177, T164, T170, T186, T210, in_order13_in_ag(T186, T210))
U35_ag(T209, T177, T164, T170, T186, T210, in_order13_out_ag(T186, T210)) → in_order1_out_ag(tree(T209, tree(T177, T164, T170), T186), .(T209, T210))
in_order1_in_ag(tree(T227, tree(T177, T164, T170), T186), .(T221, T225)) → U36_ag(T227, T177, T164, T170, T186, T221, T225, in_order13_in_aa(T164, T176))
U36_ag(T227, T177, T164, T170, T186, T221, T225, in_order13_out_aa(T164, T176)) → U37_ag(T227, T177, T164, T170, T186, T221, T225, T176, in_order13_in_aa(T170, T175))
U37_ag(T227, T177, T164, T170, T186, T221, T225, T176, in_order13_out_aa(T170, T175)) → U38_ag(T227, T177, T164, T170, T186, T221, T225, app26_in_aaaa(T176, T177, T175, .(T221, T226)))
U38_ag(T227, T177, T164, T170, T186, T221, T225, app26_out_aaaa(T176, T177, T175, .(T221, T226))) → U39_ag(T227, T177, T164, T170, T186, T221, T225, T226, in_order13_in_aa(T186, T228))
U39_ag(T227, T177, T164, T170, T186, T221, T225, T226, in_order13_out_aa(T186, T228)) → U40_ag(T227, T177, T164, T170, T186, T221, T225, app83_in_aaag(T226, T227, T228, T225))
app83_in_aaag([], T241, T242, .(T241, T242)) → app83_out_aaag([], T241, T242, .(T241, T242))
app83_in_aaag(.(T253, T258), T259, T260, .(T253, T257)) → U8_aaag(T253, T258, T259, T260, T257, app83_in_aaag(T258, T259, T260, T257))
U8_aaag(T253, T258, T259, T260, T257, app83_out_aaag(T258, T259, T260, T257)) → app83_out_aaag(.(T253, T258), T259, T260, .(T253, T257))
U40_ag(T227, T177, T164, T170, T186, T221, T225, app83_out_aaag(T226, T227, T228, T225)) → in_order1_out_ag(tree(T227, tree(T177, T164, T170), T186), .(T221, T225))
APP83_IN_AAAG(.(T253, T258), T259, T260, .(T253, T257)) → APP83_IN_AAAG(T258, T259, T260, T257)
APP83_IN_AAAG(.(T257)) → APP83_IN_AAAG(T257)
From the DPs we obtained the following set of size-change graphs:
APP26_IN_AAAG(.(T56, T60), T61, T62, .(T56, X60)) → APP26_IN_AAAG(T60, T61, T62, X60)
in_order1_in_ag(void, []) → in_order1_out_ag(void, [])
in_order1_in_ag(tree(T13, void, T12), []) → U9_ag(T13, T12, in_order13_in_aa(T12, X10))
in_order13_in_aa(void, []) → in_order13_out_aa(void, [])
in_order13_in_aa(tree(T27, T25, T26), X33) → U1_aa(T27, T25, T26, X33, in_order13_in_aa(T25, X31))
in_order13_in_aa(tree(T30, T25, T29), X33) → U2_aa(T30, T25, T29, X33, in_order13_in_aa(T25, T28))
in_order13_in_aa(tree(T33, T25, T29), X33) → U4_aa(T33, T25, T29, X33, in_order13_in_aa(T25, T32))
U4_aa(T33, T25, T29, X33, in_order13_out_aa(T25, T32)) → U5_aa(T33, T25, T29, X33, T32, in_order13_in_aa(T29, T31))
U5_aa(T33, T25, T29, X33, T32, in_order13_out_aa(T29, T31)) → U6_aa(T33, T25, T29, X33, app26_in_aaaa(T32, T33, T31, X33))
app26_in_aaaa([], T46, T47, .(T46, T47)) → app26_out_aaaa([], T46, T47, .(T46, T47))
app26_in_aaaa(.(T56, T60), T61, T62, .(T56, X60)) → U7_aaaa(T56, T60, T61, T62, X60, app26_in_aaaa(T60, T61, T62, X60))
U7_aaaa(T56, T60, T61, T62, X60, app26_out_aaaa(T60, T61, T62, X60)) → app26_out_aaaa(.(T56, T60), T61, T62, .(T56, X60))
U6_aa(T33, T25, T29, X33, app26_out_aaaa(T32, T33, T31, X33)) → in_order13_out_aa(tree(T33, T25, T29), X33)
U2_aa(T30, T25, T29, X33, in_order13_out_aa(T25, T28)) → U3_aa(T30, T25, T29, X33, in_order13_in_aa(T29, X32))
U3_aa(T30, T25, T29, X33, in_order13_out_aa(T29, X32)) → in_order13_out_aa(tree(T30, T25, T29), X33)
U1_aa(T27, T25, T26, X33, in_order13_out_aa(T25, X31)) → in_order13_out_aa(tree(T27, T25, T26), X33)
U9_ag(T13, T12, in_order13_out_aa(T12, X10)) → in_order1_out_ag(tree(T13, void, T12), [])
in_order1_in_ag(tree(T86, tree(T84, T82, T83), T85), []) → U10_ag(T86, T84, T82, T83, T85, in_order13_in_aa(T82, X94))
U10_ag(T86, T84, T82, T83, T85, in_order13_out_aa(T82, X94)) → in_order1_out_ag(tree(T86, tree(T84, T82, T83), T85), [])
in_order1_in_ag(tree(T91, tree(T89, T82, T88), T90), []) → U11_ag(T91, T89, T82, T88, T90, in_order13_in_aa(T82, T87))
U11_ag(T91, T89, T82, T88, T90, in_order13_out_aa(T82, T87)) → U12_ag(T91, T89, T82, T88, T90, in_order13_in_aa(T88, X95))
U12_ag(T91, T89, T82, T88, T90, in_order13_out_aa(T88, X95)) → in_order1_out_ag(tree(T91, tree(T89, T82, T88), T90), [])
in_order1_in_ag(tree(T96, tree(T94, T82, T88), T95), []) → U13_ag(T96, T94, T82, T88, T95, in_order13_in_aa(T82, T93))
U13_ag(T96, T94, T82, T88, T95, in_order13_out_aa(T82, T93)) → U14_ag(T96, T94, T82, T88, T95, T93, in_order13_in_aa(T88, T92))
U14_ag(T96, T94, T82, T88, T95, T93, in_order13_out_aa(T88, T92)) → U15_ag(T96, T94, T82, T88, T95, app26_in_aaaa(T93, T94, T92, X96))
U15_ag(T96, T94, T82, T88, T95, app26_out_aaaa(T93, T94, T92, X96)) → in_order1_out_ag(tree(T96, tree(T94, T82, T88), T95), [])
in_order1_in_ag(tree(T103, tree(T94, T82, T88), T102), []) → U16_ag(T103, T94, T82, T88, T102, in_order13_in_aa(T82, T93))
U16_ag(T103, T94, T82, T88, T102, in_order13_out_aa(T82, T93)) → U17_ag(T103, T94, T82, T88, T102, T93, in_order13_in_aa(T88, T92))
U17_ag(T103, T94, T82, T88, T102, T93, in_order13_out_aa(T88, T92)) → U18_ag(T103, T94, T82, T88, T102, app26_in_aaaa(T93, T94, T92, T101))
U18_ag(T103, T94, T82, T88, T102, app26_out_aaaa(T93, T94, T92, T101)) → U19_ag(T103, T94, T82, T88, T102, in_order13_in_aa(T102, X10))
U19_ag(T103, T94, T82, T88, T102, in_order13_out_aa(T102, X10)) → in_order1_out_ag(tree(T103, tree(T94, T82, T88), T102), [])
in_order1_in_ag(tree(T137, void, T136), T132) → U20_ag(T137, T136, T132, in_order13_in_aa(T136, X125))
U20_ag(T137, T136, T132, in_order13_out_aa(T136, X125)) → in_order1_out_ag(tree(T137, void, T136), T132)
in_order1_in_ag(tree(T153, void, T136), .(T153, T154)) → U21_ag(T153, T136, T154, in_order13_in_ag(T136, T154))
in_order13_in_ag(void, []) → in_order13_out_ag(void, [])
in_order13_in_ag(tree(T27, T25, T26), X33) → U1_ag(T27, T25, T26, X33, in_order13_in_aa(T25, X31))
U1_ag(T27, T25, T26, X33, in_order13_out_aa(T25, X31)) → in_order13_out_ag(tree(T27, T25, T26), X33)
in_order13_in_ag(tree(T30, T25, T29), X33) → U2_ag(T30, T25, T29, X33, in_order13_in_aa(T25, T28))
U2_ag(T30, T25, T29, X33, in_order13_out_aa(T25, T28)) → U3_ag(T30, T25, T29, X33, in_order13_in_aa(T29, X32))
U3_ag(T30, T25, T29, X33, in_order13_out_aa(T29, X32)) → in_order13_out_ag(tree(T30, T25, T29), X33)
in_order13_in_ag(tree(T33, T25, T29), X33) → U4_ag(T33, T25, T29, X33, in_order13_in_aa(T25, T32))
U4_ag(T33, T25, T29, X33, in_order13_out_aa(T25, T32)) → U5_ag(T33, T25, T29, X33, T32, in_order13_in_aa(T29, T31))
U5_ag(T33, T25, T29, X33, T32, in_order13_out_aa(T29, T31)) → U6_ag(T33, T25, T29, X33, app26_in_aaag(T32, T33, T31, X33))
app26_in_aaag([], T46, T47, .(T46, T47)) → app26_out_aaag([], T46, T47, .(T46, T47))
app26_in_aaag(.(T56, T60), T61, T62, .(T56, X60)) → U7_aaag(T56, T60, T61, T62, X60, app26_in_aaag(T60, T61, T62, X60))
U7_aaag(T56, T60, T61, T62, X60, app26_out_aaag(T60, T61, T62, X60)) → app26_out_aaag(.(T56, T60), T61, T62, .(T56, X60))
U6_ag(T33, T25, T29, X33, app26_out_aaag(T32, T33, T31, X33)) → in_order13_out_ag(tree(T33, T25, T29), X33)
U21_ag(T153, T136, T154, in_order13_out_ag(T136, T154)) → in_order1_out_ag(tree(T153, void, T136), .(T153, T154))
in_order1_in_ag(tree(T168, tree(T166, T164, T165), T167), T132) → U22_ag(T168, T166, T164, T165, T167, T132, in_order13_in_aa(T164, X158))
U22_ag(T168, T166, T164, T165, T167, T132, in_order13_out_aa(T164, X158)) → in_order1_out_ag(tree(T168, tree(T166, T164, T165), T167), T132)
in_order1_in_ag(tree(T173, tree(T171, T164, T170), T172), T132) → U23_ag(T173, T171, T164, T170, T172, T132, in_order13_in_aa(T164, T169))
U23_ag(T173, T171, T164, T170, T172, T132, in_order13_out_aa(T164, T169)) → U24_ag(T173, T171, T164, T170, T172, T132, in_order13_in_aa(T170, X159))
U24_ag(T173, T171, T164, T170, T172, T132, in_order13_out_aa(T170, X159)) → in_order1_out_ag(tree(T173, tree(T171, T164, T170), T172), T132)
in_order1_in_ag(tree(T179, tree(T177, T164, T170), T178), T132) → U25_ag(T179, T177, T164, T170, T178, T132, in_order13_in_aa(T164, T176))
U25_ag(T179, T177, T164, T170, T178, T132, in_order13_out_aa(T164, T176)) → U26_ag(T179, T177, T164, T170, T178, T132, T176, in_order13_in_aa(T170, T175))
U26_ag(T179, T177, T164, T170, T178, T132, T176, in_order13_out_aa(T170, T175)) → U27_ag(T179, T177, T164, T170, T178, T132, app26_in_aaaa(T176, T177, T175, X160))
U27_ag(T179, T177, T164, T170, T178, T132, app26_out_aaaa(T176, T177, T175, X160)) → in_order1_out_ag(tree(T179, tree(T177, T164, T170), T178), T132)
in_order1_in_ag(tree(T187, tree(T177, T164, T170), T186), T132) → U28_ag(T187, T177, T164, T170, T186, T132, in_order13_in_aa(T164, T176))
U28_ag(T187, T177, T164, T170, T186, T132, in_order13_out_aa(T164, T176)) → U29_ag(T187, T177, T164, T170, T186, T132, T176, in_order13_in_aa(T170, T175))
U29_ag(T187, T177, T164, T170, T186, T132, T176, in_order13_out_aa(T170, T175)) → U30_ag(T187, T177, T164, T170, T186, T132, app26_in_aaaa(T176, T177, T175, T185))
U30_ag(T187, T177, T164, T170, T186, T132, app26_out_aaaa(T176, T177, T175, T185)) → U31_ag(T187, T177, T164, T170, T186, T132, in_order13_in_aa(T186, X125))
U31_ag(T187, T177, T164, T170, T186, T132, in_order13_out_aa(T186, X125)) → in_order1_out_ag(tree(T187, tree(T177, T164, T170), T186), T132)
in_order1_in_ag(tree(T209, tree(T177, T164, T170), T186), .(T209, T210)) → U32_ag(T209, T177, T164, T170, T186, T210, in_order13_in_aa(T164, T176))
U32_ag(T209, T177, T164, T170, T186, T210, in_order13_out_aa(T164, T176)) → U33_ag(T209, T177, T164, T170, T186, T210, T176, in_order13_in_aa(T170, T175))
U33_ag(T209, T177, T164, T170, T186, T210, T176, in_order13_out_aa(T170, T175)) → U34_ag(T209, T177, T164, T170, T186, T210, app26_in_aaag(T176, T177, T175, []))
U34_ag(T209, T177, T164, T170, T186, T210, app26_out_aaag(T176, T177, T175, [])) → U35_ag(T209, T177, T164, T170, T186, T210, in_order13_in_ag(T186, T210))
U35_ag(T209, T177, T164, T170, T186, T210, in_order13_out_ag(T186, T210)) → in_order1_out_ag(tree(T209, tree(T177, T164, T170), T186), .(T209, T210))
in_order1_in_ag(tree(T227, tree(T177, T164, T170), T186), .(T221, T225)) → U36_ag(T227, T177, T164, T170, T186, T221, T225, in_order13_in_aa(T164, T176))
U36_ag(T227, T177, T164, T170, T186, T221, T225, in_order13_out_aa(T164, T176)) → U37_ag(T227, T177, T164, T170, T186, T221, T225, T176, in_order13_in_aa(T170, T175))
U37_ag(T227, T177, T164, T170, T186, T221, T225, T176, in_order13_out_aa(T170, T175)) → U38_ag(T227, T177, T164, T170, T186, T221, T225, app26_in_aaaa(T176, T177, T175, .(T221, T226)))
U38_ag(T227, T177, T164, T170, T186, T221, T225, app26_out_aaaa(T176, T177, T175, .(T221, T226))) → U39_ag(T227, T177, T164, T170, T186, T221, T225, T226, in_order13_in_aa(T186, T228))
U39_ag(T227, T177, T164, T170, T186, T221, T225, T226, in_order13_out_aa(T186, T228)) → U40_ag(T227, T177, T164, T170, T186, T221, T225, app83_in_aaag(T226, T227, T228, T225))
app83_in_aaag([], T241, T242, .(T241, T242)) → app83_out_aaag([], T241, T242, .(T241, T242))
app83_in_aaag(.(T253, T258), T259, T260, .(T253, T257)) → U8_aaag(T253, T258, T259, T260, T257, app83_in_aaag(T258, T259, T260, T257))
U8_aaag(T253, T258, T259, T260, T257, app83_out_aaag(T258, T259, T260, T257)) → app83_out_aaag(.(T253, T258), T259, T260, .(T253, T257))
U40_ag(T227, T177, T164, T170, T186, T221, T225, app83_out_aaag(T226, T227, T228, T225)) → in_order1_out_ag(tree(T227, tree(T177, T164, T170), T186), .(T221, T225))
APP26_IN_AAAG(.(T56, T60), T61, T62, .(T56, X60)) → APP26_IN_AAAG(T60, T61, T62, X60)
APP26_IN_AAAG(.(X60)) → APP26_IN_AAAG(X60)
From the DPs we obtained the following set of size-change graphs:
APP26_IN_AAAA(.(T56, T60), T61, T62, .(T56, X60)) → APP26_IN_AAAA(T60, T61, T62, X60)
in_order1_in_ag(void, []) → in_order1_out_ag(void, [])
in_order1_in_ag(tree(T13, void, T12), []) → U9_ag(T13, T12, in_order13_in_aa(T12, X10))
in_order13_in_aa(void, []) → in_order13_out_aa(void, [])
in_order13_in_aa(tree(T27, T25, T26), X33) → U1_aa(T27, T25, T26, X33, in_order13_in_aa(T25, X31))
in_order13_in_aa(tree(T30, T25, T29), X33) → U2_aa(T30, T25, T29, X33, in_order13_in_aa(T25, T28))
in_order13_in_aa(tree(T33, T25, T29), X33) → U4_aa(T33, T25, T29, X33, in_order13_in_aa(T25, T32))
U4_aa(T33, T25, T29, X33, in_order13_out_aa(T25, T32)) → U5_aa(T33, T25, T29, X33, T32, in_order13_in_aa(T29, T31))
U5_aa(T33, T25, T29, X33, T32, in_order13_out_aa(T29, T31)) → U6_aa(T33, T25, T29, X33, app26_in_aaaa(T32, T33, T31, X33))
app26_in_aaaa([], T46, T47, .(T46, T47)) → app26_out_aaaa([], T46, T47, .(T46, T47))
app26_in_aaaa(.(T56, T60), T61, T62, .(T56, X60)) → U7_aaaa(T56, T60, T61, T62, X60, app26_in_aaaa(T60, T61, T62, X60))
U7_aaaa(T56, T60, T61, T62, X60, app26_out_aaaa(T60, T61, T62, X60)) → app26_out_aaaa(.(T56, T60), T61, T62, .(T56, X60))
U6_aa(T33, T25, T29, X33, app26_out_aaaa(T32, T33, T31, X33)) → in_order13_out_aa(tree(T33, T25, T29), X33)
U2_aa(T30, T25, T29, X33, in_order13_out_aa(T25, T28)) → U3_aa(T30, T25, T29, X33, in_order13_in_aa(T29, X32))
U3_aa(T30, T25, T29, X33, in_order13_out_aa(T29, X32)) → in_order13_out_aa(tree(T30, T25, T29), X33)
U1_aa(T27, T25, T26, X33, in_order13_out_aa(T25, X31)) → in_order13_out_aa(tree(T27, T25, T26), X33)
U9_ag(T13, T12, in_order13_out_aa(T12, X10)) → in_order1_out_ag(tree(T13, void, T12), [])
in_order1_in_ag(tree(T86, tree(T84, T82, T83), T85), []) → U10_ag(T86, T84, T82, T83, T85, in_order13_in_aa(T82, X94))
U10_ag(T86, T84, T82, T83, T85, in_order13_out_aa(T82, X94)) → in_order1_out_ag(tree(T86, tree(T84, T82, T83), T85), [])
in_order1_in_ag(tree(T91, tree(T89, T82, T88), T90), []) → U11_ag(T91, T89, T82, T88, T90, in_order13_in_aa(T82, T87))
U11_ag(T91, T89, T82, T88, T90, in_order13_out_aa(T82, T87)) → U12_ag(T91, T89, T82, T88, T90, in_order13_in_aa(T88, X95))
U12_ag(T91, T89, T82, T88, T90, in_order13_out_aa(T88, X95)) → in_order1_out_ag(tree(T91, tree(T89, T82, T88), T90), [])
in_order1_in_ag(tree(T96, tree(T94, T82, T88), T95), []) → U13_ag(T96, T94, T82, T88, T95, in_order13_in_aa(T82, T93))
U13_ag(T96, T94, T82, T88, T95, in_order13_out_aa(T82, T93)) → U14_ag(T96, T94, T82, T88, T95, T93, in_order13_in_aa(T88, T92))
U14_ag(T96, T94, T82, T88, T95, T93, in_order13_out_aa(T88, T92)) → U15_ag(T96, T94, T82, T88, T95, app26_in_aaaa(T93, T94, T92, X96))
U15_ag(T96, T94, T82, T88, T95, app26_out_aaaa(T93, T94, T92, X96)) → in_order1_out_ag(tree(T96, tree(T94, T82, T88), T95), [])
in_order1_in_ag(tree(T103, tree(T94, T82, T88), T102), []) → U16_ag(T103, T94, T82, T88, T102, in_order13_in_aa(T82, T93))
U16_ag(T103, T94, T82, T88, T102, in_order13_out_aa(T82, T93)) → U17_ag(T103, T94, T82, T88, T102, T93, in_order13_in_aa(T88, T92))
U17_ag(T103, T94, T82, T88, T102, T93, in_order13_out_aa(T88, T92)) → U18_ag(T103, T94, T82, T88, T102, app26_in_aaaa(T93, T94, T92, T101))
U18_ag(T103, T94, T82, T88, T102, app26_out_aaaa(T93, T94, T92, T101)) → U19_ag(T103, T94, T82, T88, T102, in_order13_in_aa(T102, X10))
U19_ag(T103, T94, T82, T88, T102, in_order13_out_aa(T102, X10)) → in_order1_out_ag(tree(T103, tree(T94, T82, T88), T102), [])
in_order1_in_ag(tree(T137, void, T136), T132) → U20_ag(T137, T136, T132, in_order13_in_aa(T136, X125))
U20_ag(T137, T136, T132, in_order13_out_aa(T136, X125)) → in_order1_out_ag(tree(T137, void, T136), T132)
in_order1_in_ag(tree(T153, void, T136), .(T153, T154)) → U21_ag(T153, T136, T154, in_order13_in_ag(T136, T154))
in_order13_in_ag(void, []) → in_order13_out_ag(void, [])
in_order13_in_ag(tree(T27, T25, T26), X33) → U1_ag(T27, T25, T26, X33, in_order13_in_aa(T25, X31))
U1_ag(T27, T25, T26, X33, in_order13_out_aa(T25, X31)) → in_order13_out_ag(tree(T27, T25, T26), X33)
in_order13_in_ag(tree(T30, T25, T29), X33) → U2_ag(T30, T25, T29, X33, in_order13_in_aa(T25, T28))
U2_ag(T30, T25, T29, X33, in_order13_out_aa(T25, T28)) → U3_ag(T30, T25, T29, X33, in_order13_in_aa(T29, X32))
U3_ag(T30, T25, T29, X33, in_order13_out_aa(T29, X32)) → in_order13_out_ag(tree(T30, T25, T29), X33)
in_order13_in_ag(tree(T33, T25, T29), X33) → U4_ag(T33, T25, T29, X33, in_order13_in_aa(T25, T32))
U4_ag(T33, T25, T29, X33, in_order13_out_aa(T25, T32)) → U5_ag(T33, T25, T29, X33, T32, in_order13_in_aa(T29, T31))
U5_ag(T33, T25, T29, X33, T32, in_order13_out_aa(T29, T31)) → U6_ag(T33, T25, T29, X33, app26_in_aaag(T32, T33, T31, X33))
app26_in_aaag([], T46, T47, .(T46, T47)) → app26_out_aaag([], T46, T47, .(T46, T47))
app26_in_aaag(.(T56, T60), T61, T62, .(T56, X60)) → U7_aaag(T56, T60, T61, T62, X60, app26_in_aaag(T60, T61, T62, X60))
U7_aaag(T56, T60, T61, T62, X60, app26_out_aaag(T60, T61, T62, X60)) → app26_out_aaag(.(T56, T60), T61, T62, .(T56, X60))
U6_ag(T33, T25, T29, X33, app26_out_aaag(T32, T33, T31, X33)) → in_order13_out_ag(tree(T33, T25, T29), X33)
U21_ag(T153, T136, T154, in_order13_out_ag(T136, T154)) → in_order1_out_ag(tree(T153, void, T136), .(T153, T154))
in_order1_in_ag(tree(T168, tree(T166, T164, T165), T167), T132) → U22_ag(T168, T166, T164, T165, T167, T132, in_order13_in_aa(T164, X158))
U22_ag(T168, T166, T164, T165, T167, T132, in_order13_out_aa(T164, X158)) → in_order1_out_ag(tree(T168, tree(T166, T164, T165), T167), T132)
in_order1_in_ag(tree(T173, tree(T171, T164, T170), T172), T132) → U23_ag(T173, T171, T164, T170, T172, T132, in_order13_in_aa(T164, T169))
U23_ag(T173, T171, T164, T170, T172, T132, in_order13_out_aa(T164, T169)) → U24_ag(T173, T171, T164, T170, T172, T132, in_order13_in_aa(T170, X159))
U24_ag(T173, T171, T164, T170, T172, T132, in_order13_out_aa(T170, X159)) → in_order1_out_ag(tree(T173, tree(T171, T164, T170), T172), T132)
in_order1_in_ag(tree(T179, tree(T177, T164, T170), T178), T132) → U25_ag(T179, T177, T164, T170, T178, T132, in_order13_in_aa(T164, T176))
U25_ag(T179, T177, T164, T170, T178, T132, in_order13_out_aa(T164, T176)) → U26_ag(T179, T177, T164, T170, T178, T132, T176, in_order13_in_aa(T170, T175))
U26_ag(T179, T177, T164, T170, T178, T132, T176, in_order13_out_aa(T170, T175)) → U27_ag(T179, T177, T164, T170, T178, T132, app26_in_aaaa(T176, T177, T175, X160))
U27_ag(T179, T177, T164, T170, T178, T132, app26_out_aaaa(T176, T177, T175, X160)) → in_order1_out_ag(tree(T179, tree(T177, T164, T170), T178), T132)
in_order1_in_ag(tree(T187, tree(T177, T164, T170), T186), T132) → U28_ag(T187, T177, T164, T170, T186, T132, in_order13_in_aa(T164, T176))
U28_ag(T187, T177, T164, T170, T186, T132, in_order13_out_aa(T164, T176)) → U29_ag(T187, T177, T164, T170, T186, T132, T176, in_order13_in_aa(T170, T175))
U29_ag(T187, T177, T164, T170, T186, T132, T176, in_order13_out_aa(T170, T175)) → U30_ag(T187, T177, T164, T170, T186, T132, app26_in_aaaa(T176, T177, T175, T185))
U30_ag(T187, T177, T164, T170, T186, T132, app26_out_aaaa(T176, T177, T175, T185)) → U31_ag(T187, T177, T164, T170, T186, T132, in_order13_in_aa(T186, X125))
U31_ag(T187, T177, T164, T170, T186, T132, in_order13_out_aa(T186, X125)) → in_order1_out_ag(tree(T187, tree(T177, T164, T170), T186), T132)
in_order1_in_ag(tree(T209, tree(T177, T164, T170), T186), .(T209, T210)) → U32_ag(T209, T177, T164, T170, T186, T210, in_order13_in_aa(T164, T176))
U32_ag(T209, T177, T164, T170, T186, T210, in_order13_out_aa(T164, T176)) → U33_ag(T209, T177, T164, T170, T186, T210, T176, in_order13_in_aa(T170, T175))
U33_ag(T209, T177, T164, T170, T186, T210, T176, in_order13_out_aa(T170, T175)) → U34_ag(T209, T177, T164, T170, T186, T210, app26_in_aaag(T176, T177, T175, []))
U34_ag(T209, T177, T164, T170, T186, T210, app26_out_aaag(T176, T177, T175, [])) → U35_ag(T209, T177, T164, T170, T186, T210, in_order13_in_ag(T186, T210))
U35_ag(T209, T177, T164, T170, T186, T210, in_order13_out_ag(T186, T210)) → in_order1_out_ag(tree(T209, tree(T177, T164, T170), T186), .(T209, T210))
in_order1_in_ag(tree(T227, tree(T177, T164, T170), T186), .(T221, T225)) → U36_ag(T227, T177, T164, T170, T186, T221, T225, in_order13_in_aa(T164, T176))
U36_ag(T227, T177, T164, T170, T186, T221, T225, in_order13_out_aa(T164, T176)) → U37_ag(T227, T177, T164, T170, T186, T221, T225, T176, in_order13_in_aa(T170, T175))
U37_ag(T227, T177, T164, T170, T186, T221, T225, T176, in_order13_out_aa(T170, T175)) → U38_ag(T227, T177, T164, T170, T186, T221, T225, app26_in_aaaa(T176, T177, T175, .(T221, T226)))
U38_ag(T227, T177, T164, T170, T186, T221, T225, app26_out_aaaa(T176, T177, T175, .(T221, T226))) → U39_ag(T227, T177, T164, T170, T186, T221, T225, T226, in_order13_in_aa(T186, T228))
U39_ag(T227, T177, T164, T170, T186, T221, T225, T226, in_order13_out_aa(T186, T228)) → U40_ag(T227, T177, T164, T170, T186, T221, T225, app83_in_aaag(T226, T227, T228, T225))
app83_in_aaag([], T241, T242, .(T241, T242)) → app83_out_aaag([], T241, T242, .(T241, T242))
app83_in_aaag(.(T253, T258), T259, T260, .(T253, T257)) → U8_aaag(T253, T258, T259, T260, T257, app83_in_aaag(T258, T259, T260, T257))
U8_aaag(T253, T258, T259, T260, T257, app83_out_aaag(T258, T259, T260, T257)) → app83_out_aaag(.(T253, T258), T259, T260, .(T253, T257))
U40_ag(T227, T177, T164, T170, T186, T221, T225, app83_out_aaag(T226, T227, T228, T225)) → in_order1_out_ag(tree(T227, tree(T177, T164, T170), T186), .(T221, T225))
APP26_IN_AAAA(.(T56, T60), T61, T62, .(T56, X60)) → APP26_IN_AAAA(T60, T61, T62, X60)
APP26_IN_AAAA → APP26_IN_AAAA
IN_ORDER13_IN_AA(tree(T30, T25, T29), X33) → U2_AA(T30, T25, T29, X33, in_order13_in_aa(T25, T28))
U2_AA(T30, T25, T29, X33, in_order13_out_aa(T25, T28)) → IN_ORDER13_IN_AA(T29, X32)
IN_ORDER13_IN_AA(tree(T27, T25, T26), X33) → IN_ORDER13_IN_AA(T25, X31)
IN_ORDER13_IN_AA(tree(T33, T25, T29), X33) → U4_AA(T33, T25, T29, X33, in_order13_in_aa(T25, T32))
U4_AA(T33, T25, T29, X33, in_order13_out_aa(T25, T32)) → IN_ORDER13_IN_AA(T29, T31)
in_order1_in_ag(void, []) → in_order1_out_ag(void, [])
in_order1_in_ag(tree(T13, void, T12), []) → U9_ag(T13, T12, in_order13_in_aa(T12, X10))
in_order13_in_aa(void, []) → in_order13_out_aa(void, [])
in_order13_in_aa(tree(T27, T25, T26), X33) → U1_aa(T27, T25, T26, X33, in_order13_in_aa(T25, X31))
in_order13_in_aa(tree(T30, T25, T29), X33) → U2_aa(T30, T25, T29, X33, in_order13_in_aa(T25, T28))
in_order13_in_aa(tree(T33, T25, T29), X33) → U4_aa(T33, T25, T29, X33, in_order13_in_aa(T25, T32))
U4_aa(T33, T25, T29, X33, in_order13_out_aa(T25, T32)) → U5_aa(T33, T25, T29, X33, T32, in_order13_in_aa(T29, T31))
U5_aa(T33, T25, T29, X33, T32, in_order13_out_aa(T29, T31)) → U6_aa(T33, T25, T29, X33, app26_in_aaaa(T32, T33, T31, X33))
app26_in_aaaa([], T46, T47, .(T46, T47)) → app26_out_aaaa([], T46, T47, .(T46, T47))
app26_in_aaaa(.(T56, T60), T61, T62, .(T56, X60)) → U7_aaaa(T56, T60, T61, T62, X60, app26_in_aaaa(T60, T61, T62, X60))
U7_aaaa(T56, T60, T61, T62, X60, app26_out_aaaa(T60, T61, T62, X60)) → app26_out_aaaa(.(T56, T60), T61, T62, .(T56, X60))
U6_aa(T33, T25, T29, X33, app26_out_aaaa(T32, T33, T31, X33)) → in_order13_out_aa(tree(T33, T25, T29), X33)
U2_aa(T30, T25, T29, X33, in_order13_out_aa(T25, T28)) → U3_aa(T30, T25, T29, X33, in_order13_in_aa(T29, X32))
U3_aa(T30, T25, T29, X33, in_order13_out_aa(T29, X32)) → in_order13_out_aa(tree(T30, T25, T29), X33)
U1_aa(T27, T25, T26, X33, in_order13_out_aa(T25, X31)) → in_order13_out_aa(tree(T27, T25, T26), X33)
U9_ag(T13, T12, in_order13_out_aa(T12, X10)) → in_order1_out_ag(tree(T13, void, T12), [])
in_order1_in_ag(tree(T86, tree(T84, T82, T83), T85), []) → U10_ag(T86, T84, T82, T83, T85, in_order13_in_aa(T82, X94))
U10_ag(T86, T84, T82, T83, T85, in_order13_out_aa(T82, X94)) → in_order1_out_ag(tree(T86, tree(T84, T82, T83), T85), [])
in_order1_in_ag(tree(T91, tree(T89, T82, T88), T90), []) → U11_ag(T91, T89, T82, T88, T90, in_order13_in_aa(T82, T87))
U11_ag(T91, T89, T82, T88, T90, in_order13_out_aa(T82, T87)) → U12_ag(T91, T89, T82, T88, T90, in_order13_in_aa(T88, X95))
U12_ag(T91, T89, T82, T88, T90, in_order13_out_aa(T88, X95)) → in_order1_out_ag(tree(T91, tree(T89, T82, T88), T90), [])
in_order1_in_ag(tree(T96, tree(T94, T82, T88), T95), []) → U13_ag(T96, T94, T82, T88, T95, in_order13_in_aa(T82, T93))
U13_ag(T96, T94, T82, T88, T95, in_order13_out_aa(T82, T93)) → U14_ag(T96, T94, T82, T88, T95, T93, in_order13_in_aa(T88, T92))
U14_ag(T96, T94, T82, T88, T95, T93, in_order13_out_aa(T88, T92)) → U15_ag(T96, T94, T82, T88, T95, app26_in_aaaa(T93, T94, T92, X96))
U15_ag(T96, T94, T82, T88, T95, app26_out_aaaa(T93, T94, T92, X96)) → in_order1_out_ag(tree(T96, tree(T94, T82, T88), T95), [])
in_order1_in_ag(tree(T103, tree(T94, T82, T88), T102), []) → U16_ag(T103, T94, T82, T88, T102, in_order13_in_aa(T82, T93))
U16_ag(T103, T94, T82, T88, T102, in_order13_out_aa(T82, T93)) → U17_ag(T103, T94, T82, T88, T102, T93, in_order13_in_aa(T88, T92))
U17_ag(T103, T94, T82, T88, T102, T93, in_order13_out_aa(T88, T92)) → U18_ag(T103, T94, T82, T88, T102, app26_in_aaaa(T93, T94, T92, T101))
U18_ag(T103, T94, T82, T88, T102, app26_out_aaaa(T93, T94, T92, T101)) → U19_ag(T103, T94, T82, T88, T102, in_order13_in_aa(T102, X10))
U19_ag(T103, T94, T82, T88, T102, in_order13_out_aa(T102, X10)) → in_order1_out_ag(tree(T103, tree(T94, T82, T88), T102), [])
in_order1_in_ag(tree(T137, void, T136), T132) → U20_ag(T137, T136, T132, in_order13_in_aa(T136, X125))
U20_ag(T137, T136, T132, in_order13_out_aa(T136, X125)) → in_order1_out_ag(tree(T137, void, T136), T132)
in_order1_in_ag(tree(T153, void, T136), .(T153, T154)) → U21_ag(T153, T136, T154, in_order13_in_ag(T136, T154))
in_order13_in_ag(void, []) → in_order13_out_ag(void, [])
in_order13_in_ag(tree(T27, T25, T26), X33) → U1_ag(T27, T25, T26, X33, in_order13_in_aa(T25, X31))
U1_ag(T27, T25, T26, X33, in_order13_out_aa(T25, X31)) → in_order13_out_ag(tree(T27, T25, T26), X33)
in_order13_in_ag(tree(T30, T25, T29), X33) → U2_ag(T30, T25, T29, X33, in_order13_in_aa(T25, T28))
U2_ag(T30, T25, T29, X33, in_order13_out_aa(T25, T28)) → U3_ag(T30, T25, T29, X33, in_order13_in_aa(T29, X32))
U3_ag(T30, T25, T29, X33, in_order13_out_aa(T29, X32)) → in_order13_out_ag(tree(T30, T25, T29), X33)
in_order13_in_ag(tree(T33, T25, T29), X33) → U4_ag(T33, T25, T29, X33, in_order13_in_aa(T25, T32))
U4_ag(T33, T25, T29, X33, in_order13_out_aa(T25, T32)) → U5_ag(T33, T25, T29, X33, T32, in_order13_in_aa(T29, T31))
U5_ag(T33, T25, T29, X33, T32, in_order13_out_aa(T29, T31)) → U6_ag(T33, T25, T29, X33, app26_in_aaag(T32, T33, T31, X33))
app26_in_aaag([], T46, T47, .(T46, T47)) → app26_out_aaag([], T46, T47, .(T46, T47))
app26_in_aaag(.(T56, T60), T61, T62, .(T56, X60)) → U7_aaag(T56, T60, T61, T62, X60, app26_in_aaag(T60, T61, T62, X60))
U7_aaag(T56, T60, T61, T62, X60, app26_out_aaag(T60, T61, T62, X60)) → app26_out_aaag(.(T56, T60), T61, T62, .(T56, X60))
U6_ag(T33, T25, T29, X33, app26_out_aaag(T32, T33, T31, X33)) → in_order13_out_ag(tree(T33, T25, T29), X33)
U21_ag(T153, T136, T154, in_order13_out_ag(T136, T154)) → in_order1_out_ag(tree(T153, void, T136), .(T153, T154))
in_order1_in_ag(tree(T168, tree(T166, T164, T165), T167), T132) → U22_ag(T168, T166, T164, T165, T167, T132, in_order13_in_aa(T164, X158))
U22_ag(T168, T166, T164, T165, T167, T132, in_order13_out_aa(T164, X158)) → in_order1_out_ag(tree(T168, tree(T166, T164, T165), T167), T132)
in_order1_in_ag(tree(T173, tree(T171, T164, T170), T172), T132) → U23_ag(T173, T171, T164, T170, T172, T132, in_order13_in_aa(T164, T169))
U23_ag(T173, T171, T164, T170, T172, T132, in_order13_out_aa(T164, T169)) → U24_ag(T173, T171, T164, T170, T172, T132, in_order13_in_aa(T170, X159))
U24_ag(T173, T171, T164, T170, T172, T132, in_order13_out_aa(T170, X159)) → in_order1_out_ag(tree(T173, tree(T171, T164, T170), T172), T132)
in_order1_in_ag(tree(T179, tree(T177, T164, T170), T178), T132) → U25_ag(T179, T177, T164, T170, T178, T132, in_order13_in_aa(T164, T176))
U25_ag(T179, T177, T164, T170, T178, T132, in_order13_out_aa(T164, T176)) → U26_ag(T179, T177, T164, T170, T178, T132, T176, in_order13_in_aa(T170, T175))
U26_ag(T179, T177, T164, T170, T178, T132, T176, in_order13_out_aa(T170, T175)) → U27_ag(T179, T177, T164, T170, T178, T132, app26_in_aaaa(T176, T177, T175, X160))
U27_ag(T179, T177, T164, T170, T178, T132, app26_out_aaaa(T176, T177, T175, X160)) → in_order1_out_ag(tree(T179, tree(T177, T164, T170), T178), T132)
in_order1_in_ag(tree(T187, tree(T177, T164, T170), T186), T132) → U28_ag(T187, T177, T164, T170, T186, T132, in_order13_in_aa(T164, T176))
U28_ag(T187, T177, T164, T170, T186, T132, in_order13_out_aa(T164, T176)) → U29_ag(T187, T177, T164, T170, T186, T132, T176, in_order13_in_aa(T170, T175))
U29_ag(T187, T177, T164, T170, T186, T132, T176, in_order13_out_aa(T170, T175)) → U30_ag(T187, T177, T164, T170, T186, T132, app26_in_aaaa(T176, T177, T175, T185))
U30_ag(T187, T177, T164, T170, T186, T132, app26_out_aaaa(T176, T177, T175, T185)) → U31_ag(T187, T177, T164, T170, T186, T132, in_order13_in_aa(T186, X125))
U31_ag(T187, T177, T164, T170, T186, T132, in_order13_out_aa(T186, X125)) → in_order1_out_ag(tree(T187, tree(T177, T164, T170), T186), T132)
in_order1_in_ag(tree(T209, tree(T177, T164, T170), T186), .(T209, T210)) → U32_ag(T209, T177, T164, T170, T186, T210, in_order13_in_aa(T164, T176))
U32_ag(T209, T177, T164, T170, T186, T210, in_order13_out_aa(T164, T176)) → U33_ag(T209, T177, T164, T170, T186, T210, T176, in_order13_in_aa(T170, T175))
U33_ag(T209, T177, T164, T170, T186, T210, T176, in_order13_out_aa(T170, T175)) → U34_ag(T209, T177, T164, T170, T186, T210, app26_in_aaag(T176, T177, T175, []))
U34_ag(T209, T177, T164, T170, T186, T210, app26_out_aaag(T176, T177, T175, [])) → U35_ag(T209, T177, T164, T170, T186, T210, in_order13_in_ag(T186, T210))
U35_ag(T209, T177, T164, T170, T186, T210, in_order13_out_ag(T186, T210)) → in_order1_out_ag(tree(T209, tree(T177, T164, T170), T186), .(T209, T210))
in_order1_in_ag(tree(T227, tree(T177, T164, T170), T186), .(T221, T225)) → U36_ag(T227, T177, T164, T170, T186, T221, T225, in_order13_in_aa(T164, T176))
U36_ag(T227, T177, T164, T170, T186, T221, T225, in_order13_out_aa(T164, T176)) → U37_ag(T227, T177, T164, T170, T186, T221, T225, T176, in_order13_in_aa(T170, T175))
U37_ag(T227, T177, T164, T170, T186, T221, T225, T176, in_order13_out_aa(T170, T175)) → U38_ag(T227, T177, T164, T170, T186, T221, T225, app26_in_aaaa(T176, T177, T175, .(T221, T226)))
U38_ag(T227, T177, T164, T170, T186, T221, T225, app26_out_aaaa(T176, T177, T175, .(T221, T226))) → U39_ag(T227, T177, T164, T170, T186, T221, T225, T226, in_order13_in_aa(T186, T228))
U39_ag(T227, T177, T164, T170, T186, T221, T225, T226, in_order13_out_aa(T186, T228)) → U40_ag(T227, T177, T164, T170, T186, T221, T225, app83_in_aaag(T226, T227, T228, T225))
app83_in_aaag([], T241, T242, .(T241, T242)) → app83_out_aaag([], T241, T242, .(T241, T242))
app83_in_aaag(.(T253, T258), T259, T260, .(T253, T257)) → U8_aaag(T253, T258, T259, T260, T257, app83_in_aaag(T258, T259, T260, T257))
U8_aaag(T253, T258, T259, T260, T257, app83_out_aaag(T258, T259, T260, T257)) → app83_out_aaag(.(T253, T258), T259, T260, .(T253, T257))
U40_ag(T227, T177, T164, T170, T186, T221, T225, app83_out_aaag(T226, T227, T228, T225)) → in_order1_out_ag(tree(T227, tree(T177, T164, T170), T186), .(T221, T225))
IN_ORDER13_IN_AA(tree(T30, T25, T29), X33) → U2_AA(T30, T25, T29, X33, in_order13_in_aa(T25, T28))
U2_AA(T30, T25, T29, X33, in_order13_out_aa(T25, T28)) → IN_ORDER13_IN_AA(T29, X32)
IN_ORDER13_IN_AA(tree(T27, T25, T26), X33) → IN_ORDER13_IN_AA(T25, X31)
IN_ORDER13_IN_AA(tree(T33, T25, T29), X33) → U4_AA(T33, T25, T29, X33, in_order13_in_aa(T25, T32))
U4_AA(T33, T25, T29, X33, in_order13_out_aa(T25, T32)) → IN_ORDER13_IN_AA(T29, T31)
in_order13_in_aa(void, []) → in_order13_out_aa(void, [])
in_order13_in_aa(tree(T27, T25, T26), X33) → U1_aa(T27, T25, T26, X33, in_order13_in_aa(T25, X31))
in_order13_in_aa(tree(T30, T25, T29), X33) → U2_aa(T30, T25, T29, X33, in_order13_in_aa(T25, T28))
in_order13_in_aa(tree(T33, T25, T29), X33) → U4_aa(T33, T25, T29, X33, in_order13_in_aa(T25, T32))
U1_aa(T27, T25, T26, X33, in_order13_out_aa(T25, X31)) → in_order13_out_aa(tree(T27, T25, T26), X33)
U2_aa(T30, T25, T29, X33, in_order13_out_aa(T25, T28)) → U3_aa(T30, T25, T29, X33, in_order13_in_aa(T29, X32))
U4_aa(T33, T25, T29, X33, in_order13_out_aa(T25, T32)) → U5_aa(T33, T25, T29, X33, T32, in_order13_in_aa(T29, T31))
U3_aa(T30, T25, T29, X33, in_order13_out_aa(T29, X32)) → in_order13_out_aa(tree(T30, T25, T29), X33)
U5_aa(T33, T25, T29, X33, T32, in_order13_out_aa(T29, T31)) → U6_aa(T33, T25, T29, X33, app26_in_aaaa(T32, T33, T31, X33))
U6_aa(T33, T25, T29, X33, app26_out_aaaa(T32, T33, T31, X33)) → in_order13_out_aa(tree(T33, T25, T29), X33)
app26_in_aaaa([], T46, T47, .(T46, T47)) → app26_out_aaaa([], T46, T47, .(T46, T47))
app26_in_aaaa(.(T56, T60), T61, T62, .(T56, X60)) → U7_aaaa(T56, T60, T61, T62, X60, app26_in_aaaa(T60, T61, T62, X60))
U7_aaaa(T56, T60, T61, T62, X60, app26_out_aaaa(T60, T61, T62, X60)) → app26_out_aaaa(.(T56, T60), T61, T62, .(T56, X60))
IN_ORDER13_IN_AA → U2_AA(in_order13_in_aa)
U2_AA(in_order13_out_aa) → IN_ORDER13_IN_AA
IN_ORDER13_IN_AA → IN_ORDER13_IN_AA
IN_ORDER13_IN_AA → U4_AA(in_order13_in_aa)
U4_AA(in_order13_out_aa) → IN_ORDER13_IN_AA
in_order13_in_aa → in_order13_out_aa
in_order13_in_aa → U1_aa(in_order13_in_aa)
in_order13_in_aa → U2_aa(in_order13_in_aa)
in_order13_in_aa → U4_aa(in_order13_in_aa)
U1_aa(in_order13_out_aa) → in_order13_out_aa
U2_aa(in_order13_out_aa) → U3_aa(in_order13_in_aa)
U4_aa(in_order13_out_aa) → U5_aa(in_order13_in_aa)
U3_aa(in_order13_out_aa) → in_order13_out_aa
U5_aa(in_order13_out_aa) → U6_aa(app26_in_aaaa)
U6_aa(app26_out_aaaa(T32)) → in_order13_out_aa
app26_in_aaaa → app26_out_aaaa([])
app26_in_aaaa → U7_aaaa(app26_in_aaaa)
U7_aaaa(app26_out_aaaa(T60)) → app26_out_aaaa(.(T60))
in_order13_in_aa
U1_aa(x0)
U2_aa(x0)
U4_aa(x0)
U3_aa(x0)
U5_aa(x0)
U6_aa(x0)
app26_in_aaaa
U7_aaaa(x0)
IN_ORDER13_IN_AA → U2_AA(in_order13_out_aa)
IN_ORDER13_IN_AA → U2_AA(U1_aa(in_order13_in_aa))
IN_ORDER13_IN_AA → U2_AA(U2_aa(in_order13_in_aa))
IN_ORDER13_IN_AA → U2_AA(U4_aa(in_order13_in_aa))
U2_AA(in_order13_out_aa) → IN_ORDER13_IN_AA
IN_ORDER13_IN_AA → IN_ORDER13_IN_AA
IN_ORDER13_IN_AA → U4_AA(in_order13_in_aa)
U4_AA(in_order13_out_aa) → IN_ORDER13_IN_AA
IN_ORDER13_IN_AA → U2_AA(in_order13_out_aa)
IN_ORDER13_IN_AA → U2_AA(U1_aa(in_order13_in_aa))
IN_ORDER13_IN_AA → U2_AA(U2_aa(in_order13_in_aa))
IN_ORDER13_IN_AA → U2_AA(U4_aa(in_order13_in_aa))
in_order13_in_aa → in_order13_out_aa
in_order13_in_aa → U1_aa(in_order13_in_aa)
in_order13_in_aa → U2_aa(in_order13_in_aa)
in_order13_in_aa → U4_aa(in_order13_in_aa)
U1_aa(in_order13_out_aa) → in_order13_out_aa
U2_aa(in_order13_out_aa) → U3_aa(in_order13_in_aa)
U4_aa(in_order13_out_aa) → U5_aa(in_order13_in_aa)
U3_aa(in_order13_out_aa) → in_order13_out_aa
U5_aa(in_order13_out_aa) → U6_aa(app26_in_aaaa)
U6_aa(app26_out_aaaa(T32)) → in_order13_out_aa
app26_in_aaaa → app26_out_aaaa([])
app26_in_aaaa → U7_aaaa(app26_in_aaaa)
U7_aaaa(app26_out_aaaa(T60)) → app26_out_aaaa(.(T60))
in_order13_in_aa
U1_aa(x0)
U2_aa(x0)
U4_aa(x0)
U3_aa(x0)
U5_aa(x0)
U6_aa(x0)
app26_in_aaaa
U7_aaaa(x0)
IN_ORDER13_IN_AA → U4_AA(in_order13_out_aa)
IN_ORDER13_IN_AA → U4_AA(U1_aa(in_order13_in_aa))
IN_ORDER13_IN_AA → U4_AA(U2_aa(in_order13_in_aa))
IN_ORDER13_IN_AA → U4_AA(U4_aa(in_order13_in_aa))
U2_AA(in_order13_out_aa) → IN_ORDER13_IN_AA
IN_ORDER13_IN_AA → IN_ORDER13_IN_AA
U4_AA(in_order13_out_aa) → IN_ORDER13_IN_AA
IN_ORDER13_IN_AA → U2_AA(in_order13_out_aa)
IN_ORDER13_IN_AA → U2_AA(U1_aa(in_order13_in_aa))
IN_ORDER13_IN_AA → U2_AA(U2_aa(in_order13_in_aa))
IN_ORDER13_IN_AA → U2_AA(U4_aa(in_order13_in_aa))
IN_ORDER13_IN_AA → U4_AA(in_order13_out_aa)
IN_ORDER13_IN_AA → U4_AA(U1_aa(in_order13_in_aa))
IN_ORDER13_IN_AA → U4_AA(U2_aa(in_order13_in_aa))
IN_ORDER13_IN_AA → U4_AA(U4_aa(in_order13_in_aa))
in_order13_in_aa → in_order13_out_aa
in_order13_in_aa → U1_aa(in_order13_in_aa)
in_order13_in_aa → U2_aa(in_order13_in_aa)
in_order13_in_aa → U4_aa(in_order13_in_aa)
U1_aa(in_order13_out_aa) → in_order13_out_aa
U2_aa(in_order13_out_aa) → U3_aa(in_order13_in_aa)
U4_aa(in_order13_out_aa) → U5_aa(in_order13_in_aa)
U3_aa(in_order13_out_aa) → in_order13_out_aa
U5_aa(in_order13_out_aa) → U6_aa(app26_in_aaaa)
U6_aa(app26_out_aaaa(T32)) → in_order13_out_aa
app26_in_aaaa → app26_out_aaaa([])
app26_in_aaaa → U7_aaaa(app26_in_aaaa)
U7_aaaa(app26_out_aaaa(T60)) → app26_out_aaaa(.(T60))
in_order13_in_aa
U1_aa(x0)
U2_aa(x0)
U4_aa(x0)
U3_aa(x0)
U5_aa(x0)
U6_aa(x0)
app26_in_aaaa
U7_aaaa(x0)