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
front1_in_ag(void, []) → front1_out_ag(void, [])
front1_in_ag(tree(T7, void, T12), []) → U9_ag(T7, T12, front14_in_aa(T12, X12))
front14_in_aa(void, []) → front14_out_aa(void, [])
front14_in_aa(tree(T18, void, void), .(T18, [])) → front14_out_aa(tree(T18, void, void), .(T18, []))
front14_in_aa(tree(T25, T28, T29), X41) → U1_aa(T25, T28, T29, X41, front14_in_aa(T28, X39))
front14_in_aa(tree(T25, T28, T31), X41) → U2_aa(T25, T28, T31, X41, front14_in_aa(T28, T30))
front14_in_aa(tree(T25, T28, T31), X41) → U4_aa(T25, T28, T31, X41, front14_in_aa(T28, T33))
U4_aa(T25, T28, T31, X41, front14_out_aa(T28, T33)) → U5_aa(T25, T28, T31, X41, T33, front14_in_aa(T31, T32))
U5_aa(T25, T28, T31, X41, T33, front14_out_aa(T31, T32)) → U6_aa(T25, T28, T31, X41, app32_in_aaa(T33, T32, X41))
app32_in_aaa([], T40, T40) → app32_out_aaa([], T40, T40)
app32_in_aaa(.(T47, T50), T51, .(T47, X68)) → U7_aaa(T47, T50, T51, X68, app32_in_aaa(T50, T51, X68))
U7_aaa(T47, T50, T51, X68, app32_out_aaa(T50, T51, X68)) → app32_out_aaa(.(T47, T50), T51, .(T47, X68))
U6_aa(T25, T28, T31, X41, app32_out_aaa(T33, T32, X41)) → front14_out_aa(tree(T25, T28, T31), X41)
U2_aa(T25, T28, T31, X41, front14_out_aa(T28, T30)) → U3_aa(T25, T28, T31, X41, front14_in_aa(T31, X40))
U3_aa(T25, T28, T31, X41, front14_out_aa(T31, X40)) → front14_out_aa(tree(T25, T28, T31), X41)
U1_aa(T25, T28, T29, X41, front14_out_aa(T28, X39)) → front14_out_aa(tree(T25, T28, T29), X41)
U9_ag(T7, T12, front14_out_aa(T12, X12)) → front1_out_ag(tree(T7, void, T12), [])
front1_in_ag(tree(T7, void, T12), []) → U10_ag(T7, T12, front14_in_aa(T12, T13))
U10_ag(T7, T12, front14_out_aa(T12, T13)) → U11_ag(T7, T12, app15_in_a(T13))
app15_in_a([]) → app15_out_a([])
U11_ag(T7, T12, app15_out_a(T13)) → front1_out_ag(tree(T7, void, T12), [])
front1_in_ag(tree(T7, tree(T67, void, void), T66), []) → U12_ag(T7, T67, T66, front14_in_aa(T66, X12))
U12_ag(T7, T67, T66, front14_out_aa(T66, X12)) → front1_out_ag(tree(T7, tree(T67, void, void), T66), [])
front1_in_ag(tree(T7, tree(T80, T83, T84), T85), []) → U13_ag(T7, T80, T83, T84, T85, front14_in_aa(T83, X120))
U13_ag(T7, T80, T83, T84, T85, front14_out_aa(T83, X120)) → front1_out_ag(tree(T7, tree(T80, T83, T84), T85), [])
front1_in_ag(tree(T7, tree(T80, T83, T87), T88), []) → U14_ag(T7, T80, T83, T87, T88, front14_in_aa(T83, T86))
U14_ag(T7, T80, T83, T87, T88, front14_out_aa(T83, T86)) → U15_ag(T7, T80, T83, T87, T88, front14_in_aa(T87, X121))
U15_ag(T7, T80, T83, T87, T88, front14_out_aa(T87, X121)) → front1_out_ag(tree(T7, tree(T80, T83, T87), T88), [])
front1_in_ag(tree(T7, tree(T80, T83, T87), T91), []) → U16_ag(T7, T80, T83, T87, T91, front14_in_aa(T83, T90))
U16_ag(T7, T80, T83, T87, T91, front14_out_aa(T83, T90)) → U17_ag(T7, T80, T83, T87, T91, T90, front14_in_aa(T87, T89))
U17_ag(T7, T80, T83, T87, T91, T90, front14_out_aa(T87, T89)) → U18_ag(T7, T80, T83, T87, T91, app32_in_aaa(T90, T89, X122))
U18_ag(T7, T80, T83, T87, T91, app32_out_aaa(T90, T89, X122)) → front1_out_ag(tree(T7, tree(T80, T83, T87), T91), [])
front1_in_ag(tree(T7, tree(T80, T83, T87), T95), []) → U19_ag(T7, T80, T83, T87, T95, front14_in_aa(T83, T90))
U19_ag(T7, T80, T83, T87, T95, front14_out_aa(T83, T90)) → U20_ag(T7, T80, T83, T87, T95, T90, front14_in_aa(T87, T89))
U20_ag(T7, T80, T83, T87, T95, T90, front14_out_aa(T87, T89)) → U21_ag(T7, T80, T83, T87, T95, app32_in_aaa(T90, T89, T94))
U21_ag(T7, T80, T83, T87, T95, app32_out_aaa(T90, T89, T94)) → U22_ag(T7, T80, T83, T87, T95, front14_in_aa(T95, X12))
U22_ag(T7, T80, T83, T87, T95, front14_out_aa(T95, X12)) → front1_out_ag(tree(T7, tree(T80, T83, T87), T95), [])
U20_ag(T7, T80, T83, T87, T95, T90, front14_out_aa(T87, T89)) → U23_ag(T7, T80, T83, T87, T95, app32_in_aaa(T90, T89, T99))
U23_ag(T7, T80, T83, T87, T95, app32_out_aaa(T90, T89, T99)) → U24_ag(T7, T80, T83, T87, T95, T99, front14_in_aa(T95, T98))
U24_ag(T7, T80, T83, T87, T95, T99, front14_out_aa(T95, T98)) → U25_ag(T7, T80, T83, T87, T95, app66_in_aa(T99, T98))
app66_in_aa([], []) → app66_out_aa([], [])
U25_ag(T7, T80, T83, T87, T95, app66_out_aa(T99, T98)) → front1_out_ag(tree(T7, tree(T80, T83, T87), T95), [])
front1_in_ag(tree(T111, void, void), .(T111, [])) → front1_out_ag(tree(T111, void, void), .(T111, []))
front1_in_ag(tree(T116, void, T122), .(T119, [])) → U26_ag(T116, T122, T119, front14_in_aa(T122, X155))
U26_ag(T116, T122, T119, front14_out_aa(T122, X155)) → front1_out_ag(tree(T116, void, T122), .(T119, []))
front1_in_ag(tree(T116, void, T122), .(T137, [])) → U27_ag(T116, T122, T137, front14_in_ag(T122, .(T137, [])))
front14_in_ag(void, []) → front14_out_ag(void, [])
front14_in_ag(tree(T18, void, void), .(T18, [])) → front14_out_ag(tree(T18, void, void), .(T18, []))
front14_in_ag(tree(T25, T28, T29), X41) → U1_ag(T25, T28, T29, X41, front14_in_aa(T28, X39))
U1_ag(T25, T28, T29, X41, front14_out_aa(T28, X39)) → front14_out_ag(tree(T25, T28, T29), X41)
front14_in_ag(tree(T25, T28, T31), X41) → U2_ag(T25, T28, T31, X41, front14_in_aa(T28, T30))
U2_ag(T25, T28, T31, X41, front14_out_aa(T28, T30)) → U3_ag(T25, T28, T31, X41, front14_in_aa(T31, X40))
U3_ag(T25, T28, T31, X41, front14_out_aa(T31, X40)) → front14_out_ag(tree(T25, T28, T31), X41)
front14_in_ag(tree(T25, T28, T31), X41) → U4_ag(T25, T28, T31, X41, front14_in_aa(T28, T33))
U4_ag(T25, T28, T31, X41, front14_out_aa(T28, T33)) → U5_ag(T25, T28, T31, X41, T33, front14_in_aa(T31, T32))
U5_ag(T25, T28, T31, X41, T33, front14_out_aa(T31, T32)) → U6_ag(T25, T28, T31, X41, app32_in_aag(T33, T32, X41))
app32_in_aag([], T40, T40) → app32_out_aag([], T40, T40)
app32_in_aag(.(T47, T50), T51, .(T47, X68)) → U7_aag(T47, T50, T51, X68, app32_in_aag(T50, T51, X68))
U7_aag(T47, T50, T51, X68, app32_out_aag(T50, T51, X68)) → app32_out_aag(.(T47, T50), T51, .(T47, X68))
U6_ag(T25, T28, T31, X41, app32_out_aag(T33, T32, X41)) → front14_out_ag(tree(T25, T28, T31), X41)
U27_ag(T116, T122, T137, front14_out_ag(T122, .(T137, []))) → front1_out_ag(tree(T116, void, T122), .(T137, []))
front1_in_ag(tree(T116, tree(T144, void, void), T143), .(T119, [])) → U28_ag(T116, T144, T143, T119, front14_in_aa(T143, X155))
U28_ag(T116, T144, T143, T119, front14_out_aa(T143, X155)) → front1_out_ag(tree(T116, tree(T144, void, void), T143), .(T119, []))
front1_in_ag(tree(T116, tree(T153, void, void), T143), .(T153, [])) → U29_ag(T116, T153, T143, front14_in_aa(T143, T155))
U29_ag(T116, T153, T143, front14_out_aa(T143, T155)) → U30_ag(T116, T153, T143, app15_in_a(T155))
U30_ag(T116, T153, T143, app15_out_a(T155)) → front1_out_ag(tree(T116, tree(T153, void, void), T143), .(T153, []))
front1_in_ag(tree(T116, tree(T164, T167, T168), T169), .(T119, [])) → U31_ag(T116, T164, T167, T168, T169, T119, front14_in_aa(T167, X219))
U31_ag(T116, T164, T167, T168, T169, T119, front14_out_aa(T167, X219)) → front1_out_ag(tree(T116, tree(T164, T167, T168), T169), .(T119, []))
front1_in_ag(tree(T116, tree(T164, T167, T171), T172), .(T119, [])) → U32_ag(T116, T164, T167, T171, T172, T119, front14_in_aa(T167, T170))
U32_ag(T116, T164, T167, T171, T172, T119, front14_out_aa(T167, T170)) → U33_ag(T116, T164, T167, T171, T172, T119, front14_in_aa(T171, X220))
U33_ag(T116, T164, T167, T171, T172, T119, front14_out_aa(T171, X220)) → front1_out_ag(tree(T116, tree(T164, T167, T171), T172), .(T119, []))
front1_in_ag(tree(T116, tree(T164, T167, T171), T175), .(T119, [])) → U34_ag(T116, T164, T167, T171, T175, T119, front14_in_aa(T167, T174))
U34_ag(T116, T164, T167, T171, T175, T119, front14_out_aa(T167, T174)) → U35_ag(T116, T164, T167, T171, T175, T119, T174, front14_in_aa(T171, T173))
U35_ag(T116, T164, T167, T171, T175, T119, T174, front14_out_aa(T171, T173)) → U36_ag(T116, T164, T167, T171, T175, T119, app32_in_aaa(T174, T173, X221))
U36_ag(T116, T164, T167, T171, T175, T119, app32_out_aaa(T174, T173, X221)) → front1_out_ag(tree(T116, tree(T164, T167, T171), T175), .(T119, []))
front1_in_ag(tree(T116, tree(T164, T167, T171), T179), .(T119, [])) → U37_ag(T116, T164, T167, T171, T179, T119, front14_in_aa(T167, T174))
U37_ag(T116, T164, T167, T171, T179, T119, front14_out_aa(T167, T174)) → U38_ag(T116, T164, T167, T171, T179, T119, T174, front14_in_aa(T171, T173))
U38_ag(T116, T164, T167, T171, T179, T119, T174, front14_out_aa(T171, T173)) → U39_ag(T116, T164, T167, T171, T179, T119, app32_in_aaa(T174, T173, T178))
U39_ag(T116, T164, T167, T171, T179, T119, app32_out_aaa(T174, T173, T178)) → U40_ag(T116, T164, T167, T171, T179, T119, front14_in_aa(T179, X155))
U40_ag(T116, T164, T167, T171, T179, T119, front14_out_aa(T179, X155)) → front1_out_ag(tree(T116, tree(T164, T167, T171), T179), .(T119, []))
front1_in_ag(tree(T116, tree(T164, T167, T171), T179), .(T197, [])) → U41_ag(T116, T164, T167, T171, T179, T197, front14_in_aa(T167, T174))
U41_ag(T116, T164, T167, T171, T179, T197, front14_out_aa(T167, T174)) → U42_ag(T116, T164, T167, T171, T179, T197, T174, front14_in_aa(T171, T173))
U42_ag(T116, T164, T167, T171, T179, T197, T174, front14_out_aa(T171, T173)) → U43_ag(T116, T164, T167, T171, T179, T197, app32_in_aag(T174, T173, []))
U43_ag(T116, T164, T167, T171, T179, T197, app32_out_aag(T174, T173, [])) → U44_ag(T116, T164, T167, T171, T179, T197, front14_in_ag(T179, .(T197, [])))
U44_ag(T116, T164, T167, T171, T179, T197, front14_out_ag(T179, .(T197, []))) → front1_out_ag(tree(T116, tree(T164, T167, T171), T179), .(T197, []))
front1_in_ag(tree(T116, tree(T164, T167, T171), T179), .(T204, [])) → U45_ag(T116, T164, T167, T171, T179, T204, front14_in_aa(T167, T174))
U45_ag(T116, T164, T167, T171, T179, T204, front14_out_aa(T167, T174)) → U46_ag(T116, T164, T167, T171, T179, T204, T174, front14_in_aa(T171, T173))
U46_ag(T116, T164, T167, T171, T179, T204, T174, front14_out_aa(T171, T173)) → U47_ag(T116, T164, T167, T171, T179, T204, app32_in_aaa(T174, T173, .(T204, T207)))
U47_ag(T116, T164, T167, T171, T179, T204, app32_out_aaa(T174, T173, .(T204, T207))) → U48_ag(T116, T164, T167, T171, T179, T204, T207, front14_in_aa(T179, T208))
U48_ag(T116, T164, T167, T171, T179, T204, T207, front14_out_aa(T179, T208)) → U49_ag(T116, T164, T167, T171, T179, T204, app66_in_aa(T207, T208))
U49_ag(T116, T164, T167, T171, T179, T204, app66_out_aa(T207, T208)) → front1_out_ag(tree(T116, tree(T164, T167, T171), T179), .(T204, []))
front1_in_ag(tree(T215, void, T221), T218) → U50_ag(T215, T221, T218, front14_in_aa(T221, X265))
U50_ag(T215, T221, T218, front14_out_aa(T221, X265)) → front1_out_ag(tree(T215, void, T221), T218)
front1_in_ag(tree(T215, void, T221), T231) → U51_ag(T215, T221, T231, front14_in_ag(T221, T231))
U51_ag(T215, T221, T231, front14_out_ag(T221, T231)) → front1_out_ag(tree(T215, void, T221), T231)
front1_in_ag(tree(T215, tree(T238, void, void), T237), T218) → U52_ag(T215, T238, T237, T218, front14_in_aa(T237, X265))
U52_ag(T215, T238, T237, T218, front14_out_aa(T237, X265)) → front1_out_ag(tree(T215, tree(T238, void, void), T237), T218)
front1_in_ag(tree(T215, tree(T252, void, void), T237), .(T252, T262)) → U53_ag(T215, T252, T237, T262, front14_in_ag(T237, T262))
U53_ag(T215, T252, T237, T262, front14_out_ag(T237, T262)) → front1_out_ag(tree(T215, tree(T252, void, void), T237), .(T252, T262))
front1_in_ag(tree(T215, tree(T269, T272, T273), T274), T218) → U54_ag(T215, T269, T272, T273, T274, T218, front14_in_aa(T272, X339))
U54_ag(T215, T269, T272, T273, T274, T218, front14_out_aa(T272, X339)) → front1_out_ag(tree(T215, tree(T269, T272, T273), T274), T218)
front1_in_ag(tree(T215, tree(T269, T272, T276), T277), T218) → U55_ag(T215, T269, T272, T276, T277, T218, front14_in_aa(T272, T275))
U55_ag(T215, T269, T272, T276, T277, T218, front14_out_aa(T272, T275)) → U56_ag(T215, T269, T272, T276, T277, T218, front14_in_aa(T276, X340))
U56_ag(T215, T269, T272, T276, T277, T218, front14_out_aa(T276, X340)) → front1_out_ag(tree(T215, tree(T269, T272, T276), T277), T218)
front1_in_ag(tree(T215, tree(T269, T272, T276), T282), T218) → U57_ag(T215, T269, T272, T276, T282, T218, front14_in_aa(T272, T281))
U57_ag(T215, T269, T272, T276, T282, T218, front14_out_aa(T272, T281)) → U58_ag(T215, T269, T272, T276, T282, T218, T281, front14_in_aa(T276, T280))
U58_ag(T215, T269, T272, T276, T282, T218, T281, front14_out_aa(T276, T280)) → U59_ag(T215, T269, T272, T276, T282, T218, app32_in_aaa(T281, T280, X341))
U59_ag(T215, T269, T272, T276, T282, T218, app32_out_aaa(T281, T280, X341)) → front1_out_ag(tree(T215, tree(T269, T272, T276), T282), T218)
front1_in_ag(tree(T215, tree(T269, T272, T276), T288), T218) → U60_ag(T215, T269, T272, T276, T288, T218, front14_in_aa(T272, T281))
U60_ag(T215, T269, T272, T276, T288, T218, front14_out_aa(T272, T281)) → U61_ag(T215, T269, T272, T276, T288, T218, T281, front14_in_aa(T276, T280))
U61_ag(T215, T269, T272, T276, T288, T218, T281, front14_out_aa(T276, T280)) → U62_ag(T215, T269, T272, T276, T288, T218, app32_in_aaa(T281, T280, T287))
U62_ag(T215, T269, T272, T276, T288, T218, app32_out_aaa(T281, T280, T287)) → U63_ag(T215, T269, T272, T276, T288, T218, front14_in_aa(T288, X265))
U63_ag(T215, T269, T272, T276, T288, T218, front14_out_aa(T288, X265)) → front1_out_ag(tree(T215, tree(T269, T272, T276), T288), T218)
front1_in_ag(tree(T215, tree(T269, T272, T276), T288), T303) → U64_ag(T215, T269, T272, T276, T288, T303, front14_in_aa(T272, T281))
U64_ag(T215, T269, T272, T276, T288, T303, front14_out_aa(T272, T281)) → U65_ag(T215, T269, T272, T276, T288, T303, T281, front14_in_aa(T276, T280))
U65_ag(T215, T269, T272, T276, T288, T303, T281, front14_out_aa(T276, T280)) → U66_ag(T215, T269, T272, T276, T288, T303, app32_in_aag(T281, T280, []))
U66_ag(T215, T269, T272, T276, T288, T303, app32_out_aag(T281, T280, [])) → U67_ag(T215, T269, T272, T276, T288, T303, front14_in_ag(T288, T303))
U67_ag(T215, T269, T272, T276, T288, T303, front14_out_ag(T288, T303)) → front1_out_ag(tree(T215, tree(T269, T272, T276), T288), T303)
front1_in_ag(tree(T215, tree(T269, T272, T276), T288), .(T312, T324)) → U68_ag(T215, T269, T272, T276, T288, T312, T324, front14_in_aa(T272, T281))
U68_ag(T215, T269, T272, T276, T288, T312, T324, front14_out_aa(T272, T281)) → U69_ag(T215, T269, T272, T276, T288, T312, T324, T281, front14_in_aa(T276, T280))
U69_ag(T215, T269, T272, T276, T288, T312, T324, T281, front14_out_aa(T276, T280)) → U70_ag(T215, T269, T272, T276, T288, T312, T324, app32_in_aag(T281, T280, .(T312, [])))
U70_ag(T215, T269, T272, T276, T288, T312, T324, app32_out_aag(T281, T280, .(T312, []))) → U71_ag(T215, T269, T272, T276, T288, T312, T324, front14_in_ag(T288, T324))
U71_ag(T215, T269, T272, T276, T288, T312, T324, front14_out_ag(T288, T324)) → front1_out_ag(tree(T215, tree(T269, T272, T276), T288), .(T312, T324))
front1_in_ag(tree(T215, tree(T269, T272, T276), T288), .(T312, .(T333, T336))) → U72_ag(T215, T269, T272, T276, T288, T312, T333, T336, front14_in_aa(T272, T281))
U72_ag(T215, T269, T272, T276, T288, T312, T333, T336, front14_out_aa(T272, T281)) → U73_ag(T215, T269, T272, T276, T288, T312, T333, T336, T281, front14_in_aa(T276, T280))
U73_ag(T215, T269, T272, T276, T288, T312, T333, T336, T281, front14_out_aa(T276, T280)) → U74_ag(T215, T269, T272, T276, T288, T312, T333, T336, app32_in_aaa(T281, T280, .(T312, .(T333, T337))))
U74_ag(T215, T269, T272, T276, T288, T312, T333, T336, app32_out_aaa(T281, T280, .(T312, .(T333, T337)))) → U75_ag(T215, T269, T272, T276, T288, T312, T333, T336, T337, front14_in_aa(T288, T338))
U75_ag(T215, T269, T272, T276, T288, T312, T333, T336, T337, front14_out_aa(T288, T338)) → U76_ag(T215, T269, T272, T276, T288, T312, T333, T336, app178_in_aag(T337, T338, T336))
app178_in_aag([], T345, T345) → app178_out_aag([], T345, T345)
app178_in_aag(.(T354, T358), T359, .(T354, T357)) → U8_aag(T354, T358, T359, T357, app178_in_aag(T358, T359, T357))
U8_aag(T354, T358, T359, T357, app178_out_aag(T358, T359, T357)) → app178_out_aag(.(T354, T358), T359, .(T354, T357))
U76_ag(T215, T269, T272, T276, T288, T312, T333, T336, app178_out_aag(T337, T338, T336)) → front1_out_ag(tree(T215, tree(T269, T272, T276), T288), .(T312, .(T333, T336)))
Infinitary Constructor Rewriting Termination of PiTRS implies Termination of Prolog
front1_in_ag(void, []) → front1_out_ag(void, [])
front1_in_ag(tree(T7, void, T12), []) → U9_ag(T7, T12, front14_in_aa(T12, X12))
front14_in_aa(void, []) → front14_out_aa(void, [])
front14_in_aa(tree(T18, void, void), .(T18, [])) → front14_out_aa(tree(T18, void, void), .(T18, []))
front14_in_aa(tree(T25, T28, T29), X41) → U1_aa(T25, T28, T29, X41, front14_in_aa(T28, X39))
front14_in_aa(tree(T25, T28, T31), X41) → U2_aa(T25, T28, T31, X41, front14_in_aa(T28, T30))
front14_in_aa(tree(T25, T28, T31), X41) → U4_aa(T25, T28, T31, X41, front14_in_aa(T28, T33))
U4_aa(T25, T28, T31, X41, front14_out_aa(T28, T33)) → U5_aa(T25, T28, T31, X41, T33, front14_in_aa(T31, T32))
U5_aa(T25, T28, T31, X41, T33, front14_out_aa(T31, T32)) → U6_aa(T25, T28, T31, X41, app32_in_aaa(T33, T32, X41))
app32_in_aaa([], T40, T40) → app32_out_aaa([], T40, T40)
app32_in_aaa(.(T47, T50), T51, .(T47, X68)) → U7_aaa(T47, T50, T51, X68, app32_in_aaa(T50, T51, X68))
U7_aaa(T47, T50, T51, X68, app32_out_aaa(T50, T51, X68)) → app32_out_aaa(.(T47, T50), T51, .(T47, X68))
U6_aa(T25, T28, T31, X41, app32_out_aaa(T33, T32, X41)) → front14_out_aa(tree(T25, T28, T31), X41)
U2_aa(T25, T28, T31, X41, front14_out_aa(T28, T30)) → U3_aa(T25, T28, T31, X41, front14_in_aa(T31, X40))
U3_aa(T25, T28, T31, X41, front14_out_aa(T31, X40)) → front14_out_aa(tree(T25, T28, T31), X41)
U1_aa(T25, T28, T29, X41, front14_out_aa(T28, X39)) → front14_out_aa(tree(T25, T28, T29), X41)
U9_ag(T7, T12, front14_out_aa(T12, X12)) → front1_out_ag(tree(T7, void, T12), [])
front1_in_ag(tree(T7, void, T12), []) → U10_ag(T7, T12, front14_in_aa(T12, T13))
U10_ag(T7, T12, front14_out_aa(T12, T13)) → U11_ag(T7, T12, app15_in_a(T13))
app15_in_a([]) → app15_out_a([])
U11_ag(T7, T12, app15_out_a(T13)) → front1_out_ag(tree(T7, void, T12), [])
front1_in_ag(tree(T7, tree(T67, void, void), T66), []) → U12_ag(T7, T67, T66, front14_in_aa(T66, X12))
U12_ag(T7, T67, T66, front14_out_aa(T66, X12)) → front1_out_ag(tree(T7, tree(T67, void, void), T66), [])
front1_in_ag(tree(T7, tree(T80, T83, T84), T85), []) → U13_ag(T7, T80, T83, T84, T85, front14_in_aa(T83, X120))
U13_ag(T7, T80, T83, T84, T85, front14_out_aa(T83, X120)) → front1_out_ag(tree(T7, tree(T80, T83, T84), T85), [])
front1_in_ag(tree(T7, tree(T80, T83, T87), T88), []) → U14_ag(T7, T80, T83, T87, T88, front14_in_aa(T83, T86))
U14_ag(T7, T80, T83, T87, T88, front14_out_aa(T83, T86)) → U15_ag(T7, T80, T83, T87, T88, front14_in_aa(T87, X121))
U15_ag(T7, T80, T83, T87, T88, front14_out_aa(T87, X121)) → front1_out_ag(tree(T7, tree(T80, T83, T87), T88), [])
front1_in_ag(tree(T7, tree(T80, T83, T87), T91), []) → U16_ag(T7, T80, T83, T87, T91, front14_in_aa(T83, T90))
U16_ag(T7, T80, T83, T87, T91, front14_out_aa(T83, T90)) → U17_ag(T7, T80, T83, T87, T91, T90, front14_in_aa(T87, T89))
U17_ag(T7, T80, T83, T87, T91, T90, front14_out_aa(T87, T89)) → U18_ag(T7, T80, T83, T87, T91, app32_in_aaa(T90, T89, X122))
U18_ag(T7, T80, T83, T87, T91, app32_out_aaa(T90, T89, X122)) → front1_out_ag(tree(T7, tree(T80, T83, T87), T91), [])
front1_in_ag(tree(T7, tree(T80, T83, T87), T95), []) → U19_ag(T7, T80, T83, T87, T95, front14_in_aa(T83, T90))
U19_ag(T7, T80, T83, T87, T95, front14_out_aa(T83, T90)) → U20_ag(T7, T80, T83, T87, T95, T90, front14_in_aa(T87, T89))
U20_ag(T7, T80, T83, T87, T95, T90, front14_out_aa(T87, T89)) → U21_ag(T7, T80, T83, T87, T95, app32_in_aaa(T90, T89, T94))
U21_ag(T7, T80, T83, T87, T95, app32_out_aaa(T90, T89, T94)) → U22_ag(T7, T80, T83, T87, T95, front14_in_aa(T95, X12))
U22_ag(T7, T80, T83, T87, T95, front14_out_aa(T95, X12)) → front1_out_ag(tree(T7, tree(T80, T83, T87), T95), [])
U20_ag(T7, T80, T83, T87, T95, T90, front14_out_aa(T87, T89)) → U23_ag(T7, T80, T83, T87, T95, app32_in_aaa(T90, T89, T99))
U23_ag(T7, T80, T83, T87, T95, app32_out_aaa(T90, T89, T99)) → U24_ag(T7, T80, T83, T87, T95, T99, front14_in_aa(T95, T98))
U24_ag(T7, T80, T83, T87, T95, T99, front14_out_aa(T95, T98)) → U25_ag(T7, T80, T83, T87, T95, app66_in_aa(T99, T98))
app66_in_aa([], []) → app66_out_aa([], [])
U25_ag(T7, T80, T83, T87, T95, app66_out_aa(T99, T98)) → front1_out_ag(tree(T7, tree(T80, T83, T87), T95), [])
front1_in_ag(tree(T111, void, void), .(T111, [])) → front1_out_ag(tree(T111, void, void), .(T111, []))
front1_in_ag(tree(T116, void, T122), .(T119, [])) → U26_ag(T116, T122, T119, front14_in_aa(T122, X155))
U26_ag(T116, T122, T119, front14_out_aa(T122, X155)) → front1_out_ag(tree(T116, void, T122), .(T119, []))
front1_in_ag(tree(T116, void, T122), .(T137, [])) → U27_ag(T116, T122, T137, front14_in_ag(T122, .(T137, [])))
front14_in_ag(void, []) → front14_out_ag(void, [])
front14_in_ag(tree(T18, void, void), .(T18, [])) → front14_out_ag(tree(T18, void, void), .(T18, []))
front14_in_ag(tree(T25, T28, T29), X41) → U1_ag(T25, T28, T29, X41, front14_in_aa(T28, X39))
U1_ag(T25, T28, T29, X41, front14_out_aa(T28, X39)) → front14_out_ag(tree(T25, T28, T29), X41)
front14_in_ag(tree(T25, T28, T31), X41) → U2_ag(T25, T28, T31, X41, front14_in_aa(T28, T30))
U2_ag(T25, T28, T31, X41, front14_out_aa(T28, T30)) → U3_ag(T25, T28, T31, X41, front14_in_aa(T31, X40))
U3_ag(T25, T28, T31, X41, front14_out_aa(T31, X40)) → front14_out_ag(tree(T25, T28, T31), X41)
front14_in_ag(tree(T25, T28, T31), X41) → U4_ag(T25, T28, T31, X41, front14_in_aa(T28, T33))
U4_ag(T25, T28, T31, X41, front14_out_aa(T28, T33)) → U5_ag(T25, T28, T31, X41, T33, front14_in_aa(T31, T32))
U5_ag(T25, T28, T31, X41, T33, front14_out_aa(T31, T32)) → U6_ag(T25, T28, T31, X41, app32_in_aag(T33, T32, X41))
app32_in_aag([], T40, T40) → app32_out_aag([], T40, T40)
app32_in_aag(.(T47, T50), T51, .(T47, X68)) → U7_aag(T47, T50, T51, X68, app32_in_aag(T50, T51, X68))
U7_aag(T47, T50, T51, X68, app32_out_aag(T50, T51, X68)) → app32_out_aag(.(T47, T50), T51, .(T47, X68))
U6_ag(T25, T28, T31, X41, app32_out_aag(T33, T32, X41)) → front14_out_ag(tree(T25, T28, T31), X41)
U27_ag(T116, T122, T137, front14_out_ag(T122, .(T137, []))) → front1_out_ag(tree(T116, void, T122), .(T137, []))
front1_in_ag(tree(T116, tree(T144, void, void), T143), .(T119, [])) → U28_ag(T116, T144, T143, T119, front14_in_aa(T143, X155))
U28_ag(T116, T144, T143, T119, front14_out_aa(T143, X155)) → front1_out_ag(tree(T116, tree(T144, void, void), T143), .(T119, []))
front1_in_ag(tree(T116, tree(T153, void, void), T143), .(T153, [])) → U29_ag(T116, T153, T143, front14_in_aa(T143, T155))
U29_ag(T116, T153, T143, front14_out_aa(T143, T155)) → U30_ag(T116, T153, T143, app15_in_a(T155))
U30_ag(T116, T153, T143, app15_out_a(T155)) → front1_out_ag(tree(T116, tree(T153, void, void), T143), .(T153, []))
front1_in_ag(tree(T116, tree(T164, T167, T168), T169), .(T119, [])) → U31_ag(T116, T164, T167, T168, T169, T119, front14_in_aa(T167, X219))
U31_ag(T116, T164, T167, T168, T169, T119, front14_out_aa(T167, X219)) → front1_out_ag(tree(T116, tree(T164, T167, T168), T169), .(T119, []))
front1_in_ag(tree(T116, tree(T164, T167, T171), T172), .(T119, [])) → U32_ag(T116, T164, T167, T171, T172, T119, front14_in_aa(T167, T170))
U32_ag(T116, T164, T167, T171, T172, T119, front14_out_aa(T167, T170)) → U33_ag(T116, T164, T167, T171, T172, T119, front14_in_aa(T171, X220))
U33_ag(T116, T164, T167, T171, T172, T119, front14_out_aa(T171, X220)) → front1_out_ag(tree(T116, tree(T164, T167, T171), T172), .(T119, []))
front1_in_ag(tree(T116, tree(T164, T167, T171), T175), .(T119, [])) → U34_ag(T116, T164, T167, T171, T175, T119, front14_in_aa(T167, T174))
U34_ag(T116, T164, T167, T171, T175, T119, front14_out_aa(T167, T174)) → U35_ag(T116, T164, T167, T171, T175, T119, T174, front14_in_aa(T171, T173))
U35_ag(T116, T164, T167, T171, T175, T119, T174, front14_out_aa(T171, T173)) → U36_ag(T116, T164, T167, T171, T175, T119, app32_in_aaa(T174, T173, X221))
U36_ag(T116, T164, T167, T171, T175, T119, app32_out_aaa(T174, T173, X221)) → front1_out_ag(tree(T116, tree(T164, T167, T171), T175), .(T119, []))
front1_in_ag(tree(T116, tree(T164, T167, T171), T179), .(T119, [])) → U37_ag(T116, T164, T167, T171, T179, T119, front14_in_aa(T167, T174))
U37_ag(T116, T164, T167, T171, T179, T119, front14_out_aa(T167, T174)) → U38_ag(T116, T164, T167, T171, T179, T119, T174, front14_in_aa(T171, T173))
U38_ag(T116, T164, T167, T171, T179, T119, T174, front14_out_aa(T171, T173)) → U39_ag(T116, T164, T167, T171, T179, T119, app32_in_aaa(T174, T173, T178))
U39_ag(T116, T164, T167, T171, T179, T119, app32_out_aaa(T174, T173, T178)) → U40_ag(T116, T164, T167, T171, T179, T119, front14_in_aa(T179, X155))
U40_ag(T116, T164, T167, T171, T179, T119, front14_out_aa(T179, X155)) → front1_out_ag(tree(T116, tree(T164, T167, T171), T179), .(T119, []))
front1_in_ag(tree(T116, tree(T164, T167, T171), T179), .(T197, [])) → U41_ag(T116, T164, T167, T171, T179, T197, front14_in_aa(T167, T174))
U41_ag(T116, T164, T167, T171, T179, T197, front14_out_aa(T167, T174)) → U42_ag(T116, T164, T167, T171, T179, T197, T174, front14_in_aa(T171, T173))
U42_ag(T116, T164, T167, T171, T179, T197, T174, front14_out_aa(T171, T173)) → U43_ag(T116, T164, T167, T171, T179, T197, app32_in_aag(T174, T173, []))
U43_ag(T116, T164, T167, T171, T179, T197, app32_out_aag(T174, T173, [])) → U44_ag(T116, T164, T167, T171, T179, T197, front14_in_ag(T179, .(T197, [])))
U44_ag(T116, T164, T167, T171, T179, T197, front14_out_ag(T179, .(T197, []))) → front1_out_ag(tree(T116, tree(T164, T167, T171), T179), .(T197, []))
front1_in_ag(tree(T116, tree(T164, T167, T171), T179), .(T204, [])) → U45_ag(T116, T164, T167, T171, T179, T204, front14_in_aa(T167, T174))
U45_ag(T116, T164, T167, T171, T179, T204, front14_out_aa(T167, T174)) → U46_ag(T116, T164, T167, T171, T179, T204, T174, front14_in_aa(T171, T173))
U46_ag(T116, T164, T167, T171, T179, T204, T174, front14_out_aa(T171, T173)) → U47_ag(T116, T164, T167, T171, T179, T204, app32_in_aaa(T174, T173, .(T204, T207)))
U47_ag(T116, T164, T167, T171, T179, T204, app32_out_aaa(T174, T173, .(T204, T207))) → U48_ag(T116, T164, T167, T171, T179, T204, T207, front14_in_aa(T179, T208))
U48_ag(T116, T164, T167, T171, T179, T204, T207, front14_out_aa(T179, T208)) → U49_ag(T116, T164, T167, T171, T179, T204, app66_in_aa(T207, T208))
U49_ag(T116, T164, T167, T171, T179, T204, app66_out_aa(T207, T208)) → front1_out_ag(tree(T116, tree(T164, T167, T171), T179), .(T204, []))
front1_in_ag(tree(T215, void, T221), T218) → U50_ag(T215, T221, T218, front14_in_aa(T221, X265))
U50_ag(T215, T221, T218, front14_out_aa(T221, X265)) → front1_out_ag(tree(T215, void, T221), T218)
front1_in_ag(tree(T215, void, T221), T231) → U51_ag(T215, T221, T231, front14_in_ag(T221, T231))
U51_ag(T215, T221, T231, front14_out_ag(T221, T231)) → front1_out_ag(tree(T215, void, T221), T231)
front1_in_ag(tree(T215, tree(T238, void, void), T237), T218) → U52_ag(T215, T238, T237, T218, front14_in_aa(T237, X265))
U52_ag(T215, T238, T237, T218, front14_out_aa(T237, X265)) → front1_out_ag(tree(T215, tree(T238, void, void), T237), T218)
front1_in_ag(tree(T215, tree(T252, void, void), T237), .(T252, T262)) → U53_ag(T215, T252, T237, T262, front14_in_ag(T237, T262))
U53_ag(T215, T252, T237, T262, front14_out_ag(T237, T262)) → front1_out_ag(tree(T215, tree(T252, void, void), T237), .(T252, T262))
front1_in_ag(tree(T215, tree(T269, T272, T273), T274), T218) → U54_ag(T215, T269, T272, T273, T274, T218, front14_in_aa(T272, X339))
U54_ag(T215, T269, T272, T273, T274, T218, front14_out_aa(T272, X339)) → front1_out_ag(tree(T215, tree(T269, T272, T273), T274), T218)
front1_in_ag(tree(T215, tree(T269, T272, T276), T277), T218) → U55_ag(T215, T269, T272, T276, T277, T218, front14_in_aa(T272, T275))
U55_ag(T215, T269, T272, T276, T277, T218, front14_out_aa(T272, T275)) → U56_ag(T215, T269, T272, T276, T277, T218, front14_in_aa(T276, X340))
U56_ag(T215, T269, T272, T276, T277, T218, front14_out_aa(T276, X340)) → front1_out_ag(tree(T215, tree(T269, T272, T276), T277), T218)
front1_in_ag(tree(T215, tree(T269, T272, T276), T282), T218) → U57_ag(T215, T269, T272, T276, T282, T218, front14_in_aa(T272, T281))
U57_ag(T215, T269, T272, T276, T282, T218, front14_out_aa(T272, T281)) → U58_ag(T215, T269, T272, T276, T282, T218, T281, front14_in_aa(T276, T280))
U58_ag(T215, T269, T272, T276, T282, T218, T281, front14_out_aa(T276, T280)) → U59_ag(T215, T269, T272, T276, T282, T218, app32_in_aaa(T281, T280, X341))
U59_ag(T215, T269, T272, T276, T282, T218, app32_out_aaa(T281, T280, X341)) → front1_out_ag(tree(T215, tree(T269, T272, T276), T282), T218)
front1_in_ag(tree(T215, tree(T269, T272, T276), T288), T218) → U60_ag(T215, T269, T272, T276, T288, T218, front14_in_aa(T272, T281))
U60_ag(T215, T269, T272, T276, T288, T218, front14_out_aa(T272, T281)) → U61_ag(T215, T269, T272, T276, T288, T218, T281, front14_in_aa(T276, T280))
U61_ag(T215, T269, T272, T276, T288, T218, T281, front14_out_aa(T276, T280)) → U62_ag(T215, T269, T272, T276, T288, T218, app32_in_aaa(T281, T280, T287))
U62_ag(T215, T269, T272, T276, T288, T218, app32_out_aaa(T281, T280, T287)) → U63_ag(T215, T269, T272, T276, T288, T218, front14_in_aa(T288, X265))
U63_ag(T215, T269, T272, T276, T288, T218, front14_out_aa(T288, X265)) → front1_out_ag(tree(T215, tree(T269, T272, T276), T288), T218)
front1_in_ag(tree(T215, tree(T269, T272, T276), T288), T303) → U64_ag(T215, T269, T272, T276, T288, T303, front14_in_aa(T272, T281))
U64_ag(T215, T269, T272, T276, T288, T303, front14_out_aa(T272, T281)) → U65_ag(T215, T269, T272, T276, T288, T303, T281, front14_in_aa(T276, T280))
U65_ag(T215, T269, T272, T276, T288, T303, T281, front14_out_aa(T276, T280)) → U66_ag(T215, T269, T272, T276, T288, T303, app32_in_aag(T281, T280, []))
U66_ag(T215, T269, T272, T276, T288, T303, app32_out_aag(T281, T280, [])) → U67_ag(T215, T269, T272, T276, T288, T303, front14_in_ag(T288, T303))
U67_ag(T215, T269, T272, T276, T288, T303, front14_out_ag(T288, T303)) → front1_out_ag(tree(T215, tree(T269, T272, T276), T288), T303)
front1_in_ag(tree(T215, tree(T269, T272, T276), T288), .(T312, T324)) → U68_ag(T215, T269, T272, T276, T288, T312, T324, front14_in_aa(T272, T281))
U68_ag(T215, T269, T272, T276, T288, T312, T324, front14_out_aa(T272, T281)) → U69_ag(T215, T269, T272, T276, T288, T312, T324, T281, front14_in_aa(T276, T280))
U69_ag(T215, T269, T272, T276, T288, T312, T324, T281, front14_out_aa(T276, T280)) → U70_ag(T215, T269, T272, T276, T288, T312, T324, app32_in_aag(T281, T280, .(T312, [])))
U70_ag(T215, T269, T272, T276, T288, T312, T324, app32_out_aag(T281, T280, .(T312, []))) → U71_ag(T215, T269, T272, T276, T288, T312, T324, front14_in_ag(T288, T324))
U71_ag(T215, T269, T272, T276, T288, T312, T324, front14_out_ag(T288, T324)) → front1_out_ag(tree(T215, tree(T269, T272, T276), T288), .(T312, T324))
front1_in_ag(tree(T215, tree(T269, T272, T276), T288), .(T312, .(T333, T336))) → U72_ag(T215, T269, T272, T276, T288, T312, T333, T336, front14_in_aa(T272, T281))
U72_ag(T215, T269, T272, T276, T288, T312, T333, T336, front14_out_aa(T272, T281)) → U73_ag(T215, T269, T272, T276, T288, T312, T333, T336, T281, front14_in_aa(T276, T280))
U73_ag(T215, T269, T272, T276, T288, T312, T333, T336, T281, front14_out_aa(T276, T280)) → U74_ag(T215, T269, T272, T276, T288, T312, T333, T336, app32_in_aaa(T281, T280, .(T312, .(T333, T337))))
U74_ag(T215, T269, T272, T276, T288, T312, T333, T336, app32_out_aaa(T281, T280, .(T312, .(T333, T337)))) → U75_ag(T215, T269, T272, T276, T288, T312, T333, T336, T337, front14_in_aa(T288, T338))
U75_ag(T215, T269, T272, T276, T288, T312, T333, T336, T337, front14_out_aa(T288, T338)) → U76_ag(T215, T269, T272, T276, T288, T312, T333, T336, app178_in_aag(T337, T338, T336))
app178_in_aag([], T345, T345) → app178_out_aag([], T345, T345)
app178_in_aag(.(T354, T358), T359, .(T354, T357)) → U8_aag(T354, T358, T359, T357, app178_in_aag(T358, T359, T357))
U8_aag(T354, T358, T359, T357, app178_out_aag(T358, T359, T357)) → app178_out_aag(.(T354, T358), T359, .(T354, T357))
U76_ag(T215, T269, T272, T276, T288, T312, T333, T336, app178_out_aag(T337, T338, T336)) → front1_out_ag(tree(T215, tree(T269, T272, T276), T288), .(T312, .(T333, T336)))
FRONT1_IN_AG(tree(T7, void, T12), []) → U9_AG(T7, T12, front14_in_aa(T12, X12))
FRONT1_IN_AG(tree(T7, void, T12), []) → FRONT14_IN_AA(T12, X12)
FRONT14_IN_AA(tree(T25, T28, T29), X41) → U1_AA(T25, T28, T29, X41, front14_in_aa(T28, X39))
FRONT14_IN_AA(tree(T25, T28, T29), X41) → FRONT14_IN_AA(T28, X39)
FRONT14_IN_AA(tree(T25, T28, T31), X41) → U2_AA(T25, T28, T31, X41, front14_in_aa(T28, T30))
FRONT14_IN_AA(tree(T25, T28, T31), X41) → U4_AA(T25, T28, T31, X41, front14_in_aa(T28, T33))
U4_AA(T25, T28, T31, X41, front14_out_aa(T28, T33)) → U5_AA(T25, T28, T31, X41, T33, front14_in_aa(T31, T32))
U4_AA(T25, T28, T31, X41, front14_out_aa(T28, T33)) → FRONT14_IN_AA(T31, T32)
U5_AA(T25, T28, T31, X41, T33, front14_out_aa(T31, T32)) → U6_AA(T25, T28, T31, X41, app32_in_aaa(T33, T32, X41))
U5_AA(T25, T28, T31, X41, T33, front14_out_aa(T31, T32)) → APP32_IN_AAA(T33, T32, X41)
APP32_IN_AAA(.(T47, T50), T51, .(T47, X68)) → U7_AAA(T47, T50, T51, X68, app32_in_aaa(T50, T51, X68))
APP32_IN_AAA(.(T47, T50), T51, .(T47, X68)) → APP32_IN_AAA(T50, T51, X68)
U2_AA(T25, T28, T31, X41, front14_out_aa(T28, T30)) → U3_AA(T25, T28, T31, X41, front14_in_aa(T31, X40))
U2_AA(T25, T28, T31, X41, front14_out_aa(T28, T30)) → FRONT14_IN_AA(T31, X40)
FRONT1_IN_AG(tree(T7, void, T12), []) → U10_AG(T7, T12, front14_in_aa(T12, T13))
U10_AG(T7, T12, front14_out_aa(T12, T13)) → U11_AG(T7, T12, app15_in_a(T13))
U10_AG(T7, T12, front14_out_aa(T12, T13)) → APP15_IN_A(T13)
FRONT1_IN_AG(tree(T7, tree(T67, void, void), T66), []) → U12_AG(T7, T67, T66, front14_in_aa(T66, X12))
FRONT1_IN_AG(tree(T7, tree(T67, void, void), T66), []) → FRONT14_IN_AA(T66, X12)
FRONT1_IN_AG(tree(T7, tree(T80, T83, T84), T85), []) → U13_AG(T7, T80, T83, T84, T85, front14_in_aa(T83, X120))
FRONT1_IN_AG(tree(T7, tree(T80, T83, T84), T85), []) → FRONT14_IN_AA(T83, X120)
FRONT1_IN_AG(tree(T7, tree(T80, T83, T87), T88), []) → U14_AG(T7, T80, T83, T87, T88, front14_in_aa(T83, T86))
U14_AG(T7, T80, T83, T87, T88, front14_out_aa(T83, T86)) → U15_AG(T7, T80, T83, T87, T88, front14_in_aa(T87, X121))
U14_AG(T7, T80, T83, T87, T88, front14_out_aa(T83, T86)) → FRONT14_IN_AA(T87, X121)
FRONT1_IN_AG(tree(T7, tree(T80, T83, T87), T91), []) → U16_AG(T7, T80, T83, T87, T91, front14_in_aa(T83, T90))
U16_AG(T7, T80, T83, T87, T91, front14_out_aa(T83, T90)) → U17_AG(T7, T80, T83, T87, T91, T90, front14_in_aa(T87, T89))
U16_AG(T7, T80, T83, T87, T91, front14_out_aa(T83, T90)) → FRONT14_IN_AA(T87, T89)
U17_AG(T7, T80, T83, T87, T91, T90, front14_out_aa(T87, T89)) → U18_AG(T7, T80, T83, T87, T91, app32_in_aaa(T90, T89, X122))
U17_AG(T7, T80, T83, T87, T91, T90, front14_out_aa(T87, T89)) → APP32_IN_AAA(T90, T89, X122)
FRONT1_IN_AG(tree(T7, tree(T80, T83, T87), T95), []) → U19_AG(T7, T80, T83, T87, T95, front14_in_aa(T83, T90))
U19_AG(T7, T80, T83, T87, T95, front14_out_aa(T83, T90)) → U20_AG(T7, T80, T83, T87, T95, T90, front14_in_aa(T87, T89))
U19_AG(T7, T80, T83, T87, T95, front14_out_aa(T83, T90)) → FRONT14_IN_AA(T87, T89)
U20_AG(T7, T80, T83, T87, T95, T90, front14_out_aa(T87, T89)) → U21_AG(T7, T80, T83, T87, T95, app32_in_aaa(T90, T89, T94))
U20_AG(T7, T80, T83, T87, T95, T90, front14_out_aa(T87, T89)) → APP32_IN_AAA(T90, T89, T94)
U21_AG(T7, T80, T83, T87, T95, app32_out_aaa(T90, T89, T94)) → U22_AG(T7, T80, T83, T87, T95, front14_in_aa(T95, X12))
U21_AG(T7, T80, T83, T87, T95, app32_out_aaa(T90, T89, T94)) → FRONT14_IN_AA(T95, X12)
U20_AG(T7, T80, T83, T87, T95, T90, front14_out_aa(T87, T89)) → U23_AG(T7, T80, T83, T87, T95, app32_in_aaa(T90, T89, T99))
U23_AG(T7, T80, T83, T87, T95, app32_out_aaa(T90, T89, T99)) → U24_AG(T7, T80, T83, T87, T95, T99, front14_in_aa(T95, T98))
U23_AG(T7, T80, T83, T87, T95, app32_out_aaa(T90, T89, T99)) → FRONT14_IN_AA(T95, T98)
U24_AG(T7, T80, T83, T87, T95, T99, front14_out_aa(T95, T98)) → U25_AG(T7, T80, T83, T87, T95, app66_in_aa(T99, T98))
U24_AG(T7, T80, T83, T87, T95, T99, front14_out_aa(T95, T98)) → APP66_IN_AA(T99, T98)
FRONT1_IN_AG(tree(T116, void, T122), .(T119, [])) → U26_AG(T116, T122, T119, front14_in_aa(T122, X155))
FRONT1_IN_AG(tree(T116, void, T122), .(T119, [])) → FRONT14_IN_AA(T122, X155)
FRONT1_IN_AG(tree(T116, void, T122), .(T137, [])) → U27_AG(T116, T122, T137, front14_in_ag(T122, .(T137, [])))
FRONT1_IN_AG(tree(T116, void, T122), .(T137, [])) → FRONT14_IN_AG(T122, .(T137, []))
FRONT14_IN_AG(tree(T25, T28, T29), X41) → U1_AG(T25, T28, T29, X41, front14_in_aa(T28, X39))
FRONT14_IN_AG(tree(T25, T28, T29), X41) → FRONT14_IN_AA(T28, X39)
FRONT14_IN_AG(tree(T25, T28, T31), X41) → U2_AG(T25, T28, T31, X41, front14_in_aa(T28, T30))
U2_AG(T25, T28, T31, X41, front14_out_aa(T28, T30)) → U3_AG(T25, T28, T31, X41, front14_in_aa(T31, X40))
U2_AG(T25, T28, T31, X41, front14_out_aa(T28, T30)) → FRONT14_IN_AA(T31, X40)
FRONT14_IN_AG(tree(T25, T28, T31), X41) → U4_AG(T25, T28, T31, X41, front14_in_aa(T28, T33))
U4_AG(T25, T28, T31, X41, front14_out_aa(T28, T33)) → U5_AG(T25, T28, T31, X41, T33, front14_in_aa(T31, T32))
U4_AG(T25, T28, T31, X41, front14_out_aa(T28, T33)) → FRONT14_IN_AA(T31, T32)
U5_AG(T25, T28, T31, X41, T33, front14_out_aa(T31, T32)) → U6_AG(T25, T28, T31, X41, app32_in_aag(T33, T32, X41))
U5_AG(T25, T28, T31, X41, T33, front14_out_aa(T31, T32)) → APP32_IN_AAG(T33, T32, X41)
APP32_IN_AAG(.(T47, T50), T51, .(T47, X68)) → U7_AAG(T47, T50, T51, X68, app32_in_aag(T50, T51, X68))
APP32_IN_AAG(.(T47, T50), T51, .(T47, X68)) → APP32_IN_AAG(T50, T51, X68)
FRONT1_IN_AG(tree(T116, tree(T144, void, void), T143), .(T119, [])) → U28_AG(T116, T144, T143, T119, front14_in_aa(T143, X155))
FRONT1_IN_AG(tree(T116, tree(T144, void, void), T143), .(T119, [])) → FRONT14_IN_AA(T143, X155)
FRONT1_IN_AG(tree(T116, tree(T153, void, void), T143), .(T153, [])) → U29_AG(T116, T153, T143, front14_in_aa(T143, T155))
FRONT1_IN_AG(tree(T116, tree(T153, void, void), T143), .(T153, [])) → FRONT14_IN_AA(T143, T155)
U29_AG(T116, T153, T143, front14_out_aa(T143, T155)) → U30_AG(T116, T153, T143, app15_in_a(T155))
U29_AG(T116, T153, T143, front14_out_aa(T143, T155)) → APP15_IN_A(T155)
FRONT1_IN_AG(tree(T116, tree(T164, T167, T168), T169), .(T119, [])) → U31_AG(T116, T164, T167, T168, T169, T119, front14_in_aa(T167, X219))
FRONT1_IN_AG(tree(T116, tree(T164, T167, T168), T169), .(T119, [])) → FRONT14_IN_AA(T167, X219)
FRONT1_IN_AG(tree(T116, tree(T164, T167, T171), T172), .(T119, [])) → U32_AG(T116, T164, T167, T171, T172, T119, front14_in_aa(T167, T170))
U32_AG(T116, T164, T167, T171, T172, T119, front14_out_aa(T167, T170)) → U33_AG(T116, T164, T167, T171, T172, T119, front14_in_aa(T171, X220))
U32_AG(T116, T164, T167, T171, T172, T119, front14_out_aa(T167, T170)) → FRONT14_IN_AA(T171, X220)
FRONT1_IN_AG(tree(T116, tree(T164, T167, T171), T175), .(T119, [])) → U34_AG(T116, T164, T167, T171, T175, T119, front14_in_aa(T167, T174))
U34_AG(T116, T164, T167, T171, T175, T119, front14_out_aa(T167, T174)) → U35_AG(T116, T164, T167, T171, T175, T119, T174, front14_in_aa(T171, T173))
U34_AG(T116, T164, T167, T171, T175, T119, front14_out_aa(T167, T174)) → FRONT14_IN_AA(T171, T173)
U35_AG(T116, T164, T167, T171, T175, T119, T174, front14_out_aa(T171, T173)) → U36_AG(T116, T164, T167, T171, T175, T119, app32_in_aaa(T174, T173, X221))
U35_AG(T116, T164, T167, T171, T175, T119, T174, front14_out_aa(T171, T173)) → APP32_IN_AAA(T174, T173, X221)
FRONT1_IN_AG(tree(T116, tree(T164, T167, T171), T179), .(T119, [])) → U37_AG(T116, T164, T167, T171, T179, T119, front14_in_aa(T167, T174))
U37_AG(T116, T164, T167, T171, T179, T119, front14_out_aa(T167, T174)) → U38_AG(T116, T164, T167, T171, T179, T119, T174, front14_in_aa(T171, T173))
U37_AG(T116, T164, T167, T171, T179, T119, front14_out_aa(T167, T174)) → FRONT14_IN_AA(T171, T173)
U38_AG(T116, T164, T167, T171, T179, T119, T174, front14_out_aa(T171, T173)) → U39_AG(T116, T164, T167, T171, T179, T119, app32_in_aaa(T174, T173, T178))
U38_AG(T116, T164, T167, T171, T179, T119, T174, front14_out_aa(T171, T173)) → APP32_IN_AAA(T174, T173, T178)
U39_AG(T116, T164, T167, T171, T179, T119, app32_out_aaa(T174, T173, T178)) → U40_AG(T116, T164, T167, T171, T179, T119, front14_in_aa(T179, X155))
U39_AG(T116, T164, T167, T171, T179, T119, app32_out_aaa(T174, T173, T178)) → FRONT14_IN_AA(T179, X155)
FRONT1_IN_AG(tree(T116, tree(T164, T167, T171), T179), .(T197, [])) → U41_AG(T116, T164, T167, T171, T179, T197, front14_in_aa(T167, T174))
U41_AG(T116, T164, T167, T171, T179, T197, front14_out_aa(T167, T174)) → U42_AG(T116, T164, T167, T171, T179, T197, T174, front14_in_aa(T171, T173))
U41_AG(T116, T164, T167, T171, T179, T197, front14_out_aa(T167, T174)) → FRONT14_IN_AA(T171, T173)
U42_AG(T116, T164, T167, T171, T179, T197, T174, front14_out_aa(T171, T173)) → U43_AG(T116, T164, T167, T171, T179, T197, app32_in_aag(T174, T173, []))
U42_AG(T116, T164, T167, T171, T179, T197, T174, front14_out_aa(T171, T173)) → APP32_IN_AAG(T174, T173, [])
U43_AG(T116, T164, T167, T171, T179, T197, app32_out_aag(T174, T173, [])) → U44_AG(T116, T164, T167, T171, T179, T197, front14_in_ag(T179, .(T197, [])))
U43_AG(T116, T164, T167, T171, T179, T197, app32_out_aag(T174, T173, [])) → FRONT14_IN_AG(T179, .(T197, []))
FRONT1_IN_AG(tree(T116, tree(T164, T167, T171), T179), .(T204, [])) → U45_AG(T116, T164, T167, T171, T179, T204, front14_in_aa(T167, T174))
U45_AG(T116, T164, T167, T171, T179, T204, front14_out_aa(T167, T174)) → U46_AG(T116, T164, T167, T171, T179, T204, T174, front14_in_aa(T171, T173))
U45_AG(T116, T164, T167, T171, T179, T204, front14_out_aa(T167, T174)) → FRONT14_IN_AA(T171, T173)
U46_AG(T116, T164, T167, T171, T179, T204, T174, front14_out_aa(T171, T173)) → U47_AG(T116, T164, T167, T171, T179, T204, app32_in_aaa(T174, T173, .(T204, T207)))
U46_AG(T116, T164, T167, T171, T179, T204, T174, front14_out_aa(T171, T173)) → APP32_IN_AAA(T174, T173, .(T204, T207))
U47_AG(T116, T164, T167, T171, T179, T204, app32_out_aaa(T174, T173, .(T204, T207))) → U48_AG(T116, T164, T167, T171, T179, T204, T207, front14_in_aa(T179, T208))
U47_AG(T116, T164, T167, T171, T179, T204, app32_out_aaa(T174, T173, .(T204, T207))) → FRONT14_IN_AA(T179, T208)
U48_AG(T116, T164, T167, T171, T179, T204, T207, front14_out_aa(T179, T208)) → U49_AG(T116, T164, T167, T171, T179, T204, app66_in_aa(T207, T208))
U48_AG(T116, T164, T167, T171, T179, T204, T207, front14_out_aa(T179, T208)) → APP66_IN_AA(T207, T208)
FRONT1_IN_AG(tree(T215, void, T221), T218) → U50_AG(T215, T221, T218, front14_in_aa(T221, X265))
FRONT1_IN_AG(tree(T215, void, T221), T218) → FRONT14_IN_AA(T221, X265)
FRONT1_IN_AG(tree(T215, void, T221), T231) → U51_AG(T215, T221, T231, front14_in_ag(T221, T231))
FRONT1_IN_AG(tree(T215, void, T221), T231) → FRONT14_IN_AG(T221, T231)
FRONT1_IN_AG(tree(T215, tree(T238, void, void), T237), T218) → U52_AG(T215, T238, T237, T218, front14_in_aa(T237, X265))
FRONT1_IN_AG(tree(T215, tree(T238, void, void), T237), T218) → FRONT14_IN_AA(T237, X265)
FRONT1_IN_AG(tree(T215, tree(T252, void, void), T237), .(T252, T262)) → U53_AG(T215, T252, T237, T262, front14_in_ag(T237, T262))
FRONT1_IN_AG(tree(T215, tree(T252, void, void), T237), .(T252, T262)) → FRONT14_IN_AG(T237, T262)
FRONT1_IN_AG(tree(T215, tree(T269, T272, T273), T274), T218) → U54_AG(T215, T269, T272, T273, T274, T218, front14_in_aa(T272, X339))
FRONT1_IN_AG(tree(T215, tree(T269, T272, T273), T274), T218) → FRONT14_IN_AA(T272, X339)
FRONT1_IN_AG(tree(T215, tree(T269, T272, T276), T277), T218) → U55_AG(T215, T269, T272, T276, T277, T218, front14_in_aa(T272, T275))
U55_AG(T215, T269, T272, T276, T277, T218, front14_out_aa(T272, T275)) → U56_AG(T215, T269, T272, T276, T277, T218, front14_in_aa(T276, X340))
U55_AG(T215, T269, T272, T276, T277, T218, front14_out_aa(T272, T275)) → FRONT14_IN_AA(T276, X340)
FRONT1_IN_AG(tree(T215, tree(T269, T272, T276), T282), T218) → U57_AG(T215, T269, T272, T276, T282, T218, front14_in_aa(T272, T281))
U57_AG(T215, T269, T272, T276, T282, T218, front14_out_aa(T272, T281)) → U58_AG(T215, T269, T272, T276, T282, T218, T281, front14_in_aa(T276, T280))
U57_AG(T215, T269, T272, T276, T282, T218, front14_out_aa(T272, T281)) → FRONT14_IN_AA(T276, T280)
U58_AG(T215, T269, T272, T276, T282, T218, T281, front14_out_aa(T276, T280)) → U59_AG(T215, T269, T272, T276, T282, T218, app32_in_aaa(T281, T280, X341))
U58_AG(T215, T269, T272, T276, T282, T218, T281, front14_out_aa(T276, T280)) → APP32_IN_AAA(T281, T280, X341)
FRONT1_IN_AG(tree(T215, tree(T269, T272, T276), T288), T218) → U60_AG(T215, T269, T272, T276, T288, T218, front14_in_aa(T272, T281))
U60_AG(T215, T269, T272, T276, T288, T218, front14_out_aa(T272, T281)) → U61_AG(T215, T269, T272, T276, T288, T218, T281, front14_in_aa(T276, T280))
U60_AG(T215, T269, T272, T276, T288, T218, front14_out_aa(T272, T281)) → FRONT14_IN_AA(T276, T280)
U61_AG(T215, T269, T272, T276, T288, T218, T281, front14_out_aa(T276, T280)) → U62_AG(T215, T269, T272, T276, T288, T218, app32_in_aaa(T281, T280, T287))
U61_AG(T215, T269, T272, T276, T288, T218, T281, front14_out_aa(T276, T280)) → APP32_IN_AAA(T281, T280, T287)
U62_AG(T215, T269, T272, T276, T288, T218, app32_out_aaa(T281, T280, T287)) → U63_AG(T215, T269, T272, T276, T288, T218, front14_in_aa(T288, X265))
U62_AG(T215, T269, T272, T276, T288, T218, app32_out_aaa(T281, T280, T287)) → FRONT14_IN_AA(T288, X265)
FRONT1_IN_AG(tree(T215, tree(T269, T272, T276), T288), T303) → U64_AG(T215, T269, T272, T276, T288, T303, front14_in_aa(T272, T281))
U64_AG(T215, T269, T272, T276, T288, T303, front14_out_aa(T272, T281)) → U65_AG(T215, T269, T272, T276, T288, T303, T281, front14_in_aa(T276, T280))
U64_AG(T215, T269, T272, T276, T288, T303, front14_out_aa(T272, T281)) → FRONT14_IN_AA(T276, T280)
U65_AG(T215, T269, T272, T276, T288, T303, T281, front14_out_aa(T276, T280)) → U66_AG(T215, T269, T272, T276, T288, T303, app32_in_aag(T281, T280, []))
U65_AG(T215, T269, T272, T276, T288, T303, T281, front14_out_aa(T276, T280)) → APP32_IN_AAG(T281, T280, [])
U66_AG(T215, T269, T272, T276, T288, T303, app32_out_aag(T281, T280, [])) → U67_AG(T215, T269, T272, T276, T288, T303, front14_in_ag(T288, T303))
U66_AG(T215, T269, T272, T276, T288, T303, app32_out_aag(T281, T280, [])) → FRONT14_IN_AG(T288, T303)
FRONT1_IN_AG(tree(T215, tree(T269, T272, T276), T288), .(T312, T324)) → U68_AG(T215, T269, T272, T276, T288, T312, T324, front14_in_aa(T272, T281))
FRONT1_IN_AG(tree(T215, tree(T269, T272, T276), T288), .(T312, T324)) → FRONT14_IN_AA(T272, T281)
U68_AG(T215, T269, T272, T276, T288, T312, T324, front14_out_aa(T272, T281)) → U69_AG(T215, T269, T272, T276, T288, T312, T324, T281, front14_in_aa(T276, T280))
U68_AG(T215, T269, T272, T276, T288, T312, T324, front14_out_aa(T272, T281)) → FRONT14_IN_AA(T276, T280)
U69_AG(T215, T269, T272, T276, T288, T312, T324, T281, front14_out_aa(T276, T280)) → U70_AG(T215, T269, T272, T276, T288, T312, T324, app32_in_aag(T281, T280, .(T312, [])))
U69_AG(T215, T269, T272, T276, T288, T312, T324, T281, front14_out_aa(T276, T280)) → APP32_IN_AAG(T281, T280, .(T312, []))
U70_AG(T215, T269, T272, T276, T288, T312, T324, app32_out_aag(T281, T280, .(T312, []))) → U71_AG(T215, T269, T272, T276, T288, T312, T324, front14_in_ag(T288, T324))
U70_AG(T215, T269, T272, T276, T288, T312, T324, app32_out_aag(T281, T280, .(T312, []))) → FRONT14_IN_AG(T288, T324)
FRONT1_IN_AG(tree(T215, tree(T269, T272, T276), T288), .(T312, .(T333, T336))) → U72_AG(T215, T269, T272, T276, T288, T312, T333, T336, front14_in_aa(T272, T281))
FRONT1_IN_AG(tree(T215, tree(T269, T272, T276), T288), .(T312, .(T333, T336))) → FRONT14_IN_AA(T272, T281)
U72_AG(T215, T269, T272, T276, T288, T312, T333, T336, front14_out_aa(T272, T281)) → U73_AG(T215, T269, T272, T276, T288, T312, T333, T336, T281, front14_in_aa(T276, T280))
U72_AG(T215, T269, T272, T276, T288, T312, T333, T336, front14_out_aa(T272, T281)) → FRONT14_IN_AA(T276, T280)
U73_AG(T215, T269, T272, T276, T288, T312, T333, T336, T281, front14_out_aa(T276, T280)) → U74_AG(T215, T269, T272, T276, T288, T312, T333, T336, app32_in_aaa(T281, T280, .(T312, .(T333, T337))))
U73_AG(T215, T269, T272, T276, T288, T312, T333, T336, T281, front14_out_aa(T276, T280)) → APP32_IN_AAA(T281, T280, .(T312, .(T333, T337)))
U74_AG(T215, T269, T272, T276, T288, T312, T333, T336, app32_out_aaa(T281, T280, .(T312, .(T333, T337)))) → U75_AG(T215, T269, T272, T276, T288, T312, T333, T336, T337, front14_in_aa(T288, T338))
U74_AG(T215, T269, T272, T276, T288, T312, T333, T336, app32_out_aaa(T281, T280, .(T312, .(T333, T337)))) → FRONT14_IN_AA(T288, T338)
U75_AG(T215, T269, T272, T276, T288, T312, T333, T336, T337, front14_out_aa(T288, T338)) → U76_AG(T215, T269, T272, T276, T288, T312, T333, T336, app178_in_aag(T337, T338, T336))
U75_AG(T215, T269, T272, T276, T288, T312, T333, T336, T337, front14_out_aa(T288, T338)) → APP178_IN_AAG(T337, T338, T336)
APP178_IN_AAG(.(T354, T358), T359, .(T354, T357)) → U8_AAG(T354, T358, T359, T357, app178_in_aag(T358, T359, T357))
APP178_IN_AAG(.(T354, T358), T359, .(T354, T357)) → APP178_IN_AAG(T358, T359, T357)
front1_in_ag(void, []) → front1_out_ag(void, [])
front1_in_ag(tree(T7, void, T12), []) → U9_ag(T7, T12, front14_in_aa(T12, X12))
front14_in_aa(void, []) → front14_out_aa(void, [])
front14_in_aa(tree(T18, void, void), .(T18, [])) → front14_out_aa(tree(T18, void, void), .(T18, []))
front14_in_aa(tree(T25, T28, T29), X41) → U1_aa(T25, T28, T29, X41, front14_in_aa(T28, X39))
front14_in_aa(tree(T25, T28, T31), X41) → U2_aa(T25, T28, T31, X41, front14_in_aa(T28, T30))
front14_in_aa(tree(T25, T28, T31), X41) → U4_aa(T25, T28, T31, X41, front14_in_aa(T28, T33))
U4_aa(T25, T28, T31, X41, front14_out_aa(T28, T33)) → U5_aa(T25, T28, T31, X41, T33, front14_in_aa(T31, T32))
U5_aa(T25, T28, T31, X41, T33, front14_out_aa(T31, T32)) → U6_aa(T25, T28, T31, X41, app32_in_aaa(T33, T32, X41))
app32_in_aaa([], T40, T40) → app32_out_aaa([], T40, T40)
app32_in_aaa(.(T47, T50), T51, .(T47, X68)) → U7_aaa(T47, T50, T51, X68, app32_in_aaa(T50, T51, X68))
U7_aaa(T47, T50, T51, X68, app32_out_aaa(T50, T51, X68)) → app32_out_aaa(.(T47, T50), T51, .(T47, X68))
U6_aa(T25, T28, T31, X41, app32_out_aaa(T33, T32, X41)) → front14_out_aa(tree(T25, T28, T31), X41)
U2_aa(T25, T28, T31, X41, front14_out_aa(T28, T30)) → U3_aa(T25, T28, T31, X41, front14_in_aa(T31, X40))
U3_aa(T25, T28, T31, X41, front14_out_aa(T31, X40)) → front14_out_aa(tree(T25, T28, T31), X41)
U1_aa(T25, T28, T29, X41, front14_out_aa(T28, X39)) → front14_out_aa(tree(T25, T28, T29), X41)
U9_ag(T7, T12, front14_out_aa(T12, X12)) → front1_out_ag(tree(T7, void, T12), [])
front1_in_ag(tree(T7, void, T12), []) → U10_ag(T7, T12, front14_in_aa(T12, T13))
U10_ag(T7, T12, front14_out_aa(T12, T13)) → U11_ag(T7, T12, app15_in_a(T13))
app15_in_a([]) → app15_out_a([])
U11_ag(T7, T12, app15_out_a(T13)) → front1_out_ag(tree(T7, void, T12), [])
front1_in_ag(tree(T7, tree(T67, void, void), T66), []) → U12_ag(T7, T67, T66, front14_in_aa(T66, X12))
U12_ag(T7, T67, T66, front14_out_aa(T66, X12)) → front1_out_ag(tree(T7, tree(T67, void, void), T66), [])
front1_in_ag(tree(T7, tree(T80, T83, T84), T85), []) → U13_ag(T7, T80, T83, T84, T85, front14_in_aa(T83, X120))
U13_ag(T7, T80, T83, T84, T85, front14_out_aa(T83, X120)) → front1_out_ag(tree(T7, tree(T80, T83, T84), T85), [])
front1_in_ag(tree(T7, tree(T80, T83, T87), T88), []) → U14_ag(T7, T80, T83, T87, T88, front14_in_aa(T83, T86))
U14_ag(T7, T80, T83, T87, T88, front14_out_aa(T83, T86)) → U15_ag(T7, T80, T83, T87, T88, front14_in_aa(T87, X121))
U15_ag(T7, T80, T83, T87, T88, front14_out_aa(T87, X121)) → front1_out_ag(tree(T7, tree(T80, T83, T87), T88), [])
front1_in_ag(tree(T7, tree(T80, T83, T87), T91), []) → U16_ag(T7, T80, T83, T87, T91, front14_in_aa(T83, T90))
U16_ag(T7, T80, T83, T87, T91, front14_out_aa(T83, T90)) → U17_ag(T7, T80, T83, T87, T91, T90, front14_in_aa(T87, T89))
U17_ag(T7, T80, T83, T87, T91, T90, front14_out_aa(T87, T89)) → U18_ag(T7, T80, T83, T87, T91, app32_in_aaa(T90, T89, X122))
U18_ag(T7, T80, T83, T87, T91, app32_out_aaa(T90, T89, X122)) → front1_out_ag(tree(T7, tree(T80, T83, T87), T91), [])
front1_in_ag(tree(T7, tree(T80, T83, T87), T95), []) → U19_ag(T7, T80, T83, T87, T95, front14_in_aa(T83, T90))
U19_ag(T7, T80, T83, T87, T95, front14_out_aa(T83, T90)) → U20_ag(T7, T80, T83, T87, T95, T90, front14_in_aa(T87, T89))
U20_ag(T7, T80, T83, T87, T95, T90, front14_out_aa(T87, T89)) → U21_ag(T7, T80, T83, T87, T95, app32_in_aaa(T90, T89, T94))
U21_ag(T7, T80, T83, T87, T95, app32_out_aaa(T90, T89, T94)) → U22_ag(T7, T80, T83, T87, T95, front14_in_aa(T95, X12))
U22_ag(T7, T80, T83, T87, T95, front14_out_aa(T95, X12)) → front1_out_ag(tree(T7, tree(T80, T83, T87), T95), [])
U20_ag(T7, T80, T83, T87, T95, T90, front14_out_aa(T87, T89)) → U23_ag(T7, T80, T83, T87, T95, app32_in_aaa(T90, T89, T99))
U23_ag(T7, T80, T83, T87, T95, app32_out_aaa(T90, T89, T99)) → U24_ag(T7, T80, T83, T87, T95, T99, front14_in_aa(T95, T98))
U24_ag(T7, T80, T83, T87, T95, T99, front14_out_aa(T95, T98)) → U25_ag(T7, T80, T83, T87, T95, app66_in_aa(T99, T98))
app66_in_aa([], []) → app66_out_aa([], [])
U25_ag(T7, T80, T83, T87, T95, app66_out_aa(T99, T98)) → front1_out_ag(tree(T7, tree(T80, T83, T87), T95), [])
front1_in_ag(tree(T111, void, void), .(T111, [])) → front1_out_ag(tree(T111, void, void), .(T111, []))
front1_in_ag(tree(T116, void, T122), .(T119, [])) → U26_ag(T116, T122, T119, front14_in_aa(T122, X155))
U26_ag(T116, T122, T119, front14_out_aa(T122, X155)) → front1_out_ag(tree(T116, void, T122), .(T119, []))
front1_in_ag(tree(T116, void, T122), .(T137, [])) → U27_ag(T116, T122, T137, front14_in_ag(T122, .(T137, [])))
front14_in_ag(void, []) → front14_out_ag(void, [])
front14_in_ag(tree(T18, void, void), .(T18, [])) → front14_out_ag(tree(T18, void, void), .(T18, []))
front14_in_ag(tree(T25, T28, T29), X41) → U1_ag(T25, T28, T29, X41, front14_in_aa(T28, X39))
U1_ag(T25, T28, T29, X41, front14_out_aa(T28, X39)) → front14_out_ag(tree(T25, T28, T29), X41)
front14_in_ag(tree(T25, T28, T31), X41) → U2_ag(T25, T28, T31, X41, front14_in_aa(T28, T30))
U2_ag(T25, T28, T31, X41, front14_out_aa(T28, T30)) → U3_ag(T25, T28, T31, X41, front14_in_aa(T31, X40))
U3_ag(T25, T28, T31, X41, front14_out_aa(T31, X40)) → front14_out_ag(tree(T25, T28, T31), X41)
front14_in_ag(tree(T25, T28, T31), X41) → U4_ag(T25, T28, T31, X41, front14_in_aa(T28, T33))
U4_ag(T25, T28, T31, X41, front14_out_aa(T28, T33)) → U5_ag(T25, T28, T31, X41, T33, front14_in_aa(T31, T32))
U5_ag(T25, T28, T31, X41, T33, front14_out_aa(T31, T32)) → U6_ag(T25, T28, T31, X41, app32_in_aag(T33, T32, X41))
app32_in_aag([], T40, T40) → app32_out_aag([], T40, T40)
app32_in_aag(.(T47, T50), T51, .(T47, X68)) → U7_aag(T47, T50, T51, X68, app32_in_aag(T50, T51, X68))
U7_aag(T47, T50, T51, X68, app32_out_aag(T50, T51, X68)) → app32_out_aag(.(T47, T50), T51, .(T47, X68))
U6_ag(T25, T28, T31, X41, app32_out_aag(T33, T32, X41)) → front14_out_ag(tree(T25, T28, T31), X41)
U27_ag(T116, T122, T137, front14_out_ag(T122, .(T137, []))) → front1_out_ag(tree(T116, void, T122), .(T137, []))
front1_in_ag(tree(T116, tree(T144, void, void), T143), .(T119, [])) → U28_ag(T116, T144, T143, T119, front14_in_aa(T143, X155))
U28_ag(T116, T144, T143, T119, front14_out_aa(T143, X155)) → front1_out_ag(tree(T116, tree(T144, void, void), T143), .(T119, []))
front1_in_ag(tree(T116, tree(T153, void, void), T143), .(T153, [])) → U29_ag(T116, T153, T143, front14_in_aa(T143, T155))
U29_ag(T116, T153, T143, front14_out_aa(T143, T155)) → U30_ag(T116, T153, T143, app15_in_a(T155))
U30_ag(T116, T153, T143, app15_out_a(T155)) → front1_out_ag(tree(T116, tree(T153, void, void), T143), .(T153, []))
front1_in_ag(tree(T116, tree(T164, T167, T168), T169), .(T119, [])) → U31_ag(T116, T164, T167, T168, T169, T119, front14_in_aa(T167, X219))
U31_ag(T116, T164, T167, T168, T169, T119, front14_out_aa(T167, X219)) → front1_out_ag(tree(T116, tree(T164, T167, T168), T169), .(T119, []))
front1_in_ag(tree(T116, tree(T164, T167, T171), T172), .(T119, [])) → U32_ag(T116, T164, T167, T171, T172, T119, front14_in_aa(T167, T170))
U32_ag(T116, T164, T167, T171, T172, T119, front14_out_aa(T167, T170)) → U33_ag(T116, T164, T167, T171, T172, T119, front14_in_aa(T171, X220))
U33_ag(T116, T164, T167, T171, T172, T119, front14_out_aa(T171, X220)) → front1_out_ag(tree(T116, tree(T164, T167, T171), T172), .(T119, []))
front1_in_ag(tree(T116, tree(T164, T167, T171), T175), .(T119, [])) → U34_ag(T116, T164, T167, T171, T175, T119, front14_in_aa(T167, T174))
U34_ag(T116, T164, T167, T171, T175, T119, front14_out_aa(T167, T174)) → U35_ag(T116, T164, T167, T171, T175, T119, T174, front14_in_aa(T171, T173))
U35_ag(T116, T164, T167, T171, T175, T119, T174, front14_out_aa(T171, T173)) → U36_ag(T116, T164, T167, T171, T175, T119, app32_in_aaa(T174, T173, X221))
U36_ag(T116, T164, T167, T171, T175, T119, app32_out_aaa(T174, T173, X221)) → front1_out_ag(tree(T116, tree(T164, T167, T171), T175), .(T119, []))
front1_in_ag(tree(T116, tree(T164, T167, T171), T179), .(T119, [])) → U37_ag(T116, T164, T167, T171, T179, T119, front14_in_aa(T167, T174))
U37_ag(T116, T164, T167, T171, T179, T119, front14_out_aa(T167, T174)) → U38_ag(T116, T164, T167, T171, T179, T119, T174, front14_in_aa(T171, T173))
U38_ag(T116, T164, T167, T171, T179, T119, T174, front14_out_aa(T171, T173)) → U39_ag(T116, T164, T167, T171, T179, T119, app32_in_aaa(T174, T173, T178))
U39_ag(T116, T164, T167, T171, T179, T119, app32_out_aaa(T174, T173, T178)) → U40_ag(T116, T164, T167, T171, T179, T119, front14_in_aa(T179, X155))
U40_ag(T116, T164, T167, T171, T179, T119, front14_out_aa(T179, X155)) → front1_out_ag(tree(T116, tree(T164, T167, T171), T179), .(T119, []))
front1_in_ag(tree(T116, tree(T164, T167, T171), T179), .(T197, [])) → U41_ag(T116, T164, T167, T171, T179, T197, front14_in_aa(T167, T174))
U41_ag(T116, T164, T167, T171, T179, T197, front14_out_aa(T167, T174)) → U42_ag(T116, T164, T167, T171, T179, T197, T174, front14_in_aa(T171, T173))
U42_ag(T116, T164, T167, T171, T179, T197, T174, front14_out_aa(T171, T173)) → U43_ag(T116, T164, T167, T171, T179, T197, app32_in_aag(T174, T173, []))
U43_ag(T116, T164, T167, T171, T179, T197, app32_out_aag(T174, T173, [])) → U44_ag(T116, T164, T167, T171, T179, T197, front14_in_ag(T179, .(T197, [])))
U44_ag(T116, T164, T167, T171, T179, T197, front14_out_ag(T179, .(T197, []))) → front1_out_ag(tree(T116, tree(T164, T167, T171), T179), .(T197, []))
front1_in_ag(tree(T116, tree(T164, T167, T171), T179), .(T204, [])) → U45_ag(T116, T164, T167, T171, T179, T204, front14_in_aa(T167, T174))
U45_ag(T116, T164, T167, T171, T179, T204, front14_out_aa(T167, T174)) → U46_ag(T116, T164, T167, T171, T179, T204, T174, front14_in_aa(T171, T173))
U46_ag(T116, T164, T167, T171, T179, T204, T174, front14_out_aa(T171, T173)) → U47_ag(T116, T164, T167, T171, T179, T204, app32_in_aaa(T174, T173, .(T204, T207)))
U47_ag(T116, T164, T167, T171, T179, T204, app32_out_aaa(T174, T173, .(T204, T207))) → U48_ag(T116, T164, T167, T171, T179, T204, T207, front14_in_aa(T179, T208))
U48_ag(T116, T164, T167, T171, T179, T204, T207, front14_out_aa(T179, T208)) → U49_ag(T116, T164, T167, T171, T179, T204, app66_in_aa(T207, T208))
U49_ag(T116, T164, T167, T171, T179, T204, app66_out_aa(T207, T208)) → front1_out_ag(tree(T116, tree(T164, T167, T171), T179), .(T204, []))
front1_in_ag(tree(T215, void, T221), T218) → U50_ag(T215, T221, T218, front14_in_aa(T221, X265))
U50_ag(T215, T221, T218, front14_out_aa(T221, X265)) → front1_out_ag(tree(T215, void, T221), T218)
front1_in_ag(tree(T215, void, T221), T231) → U51_ag(T215, T221, T231, front14_in_ag(T221, T231))
U51_ag(T215, T221, T231, front14_out_ag(T221, T231)) → front1_out_ag(tree(T215, void, T221), T231)
front1_in_ag(tree(T215, tree(T238, void, void), T237), T218) → U52_ag(T215, T238, T237, T218, front14_in_aa(T237, X265))
U52_ag(T215, T238, T237, T218, front14_out_aa(T237, X265)) → front1_out_ag(tree(T215, tree(T238, void, void), T237), T218)
front1_in_ag(tree(T215, tree(T252, void, void), T237), .(T252, T262)) → U53_ag(T215, T252, T237, T262, front14_in_ag(T237, T262))
U53_ag(T215, T252, T237, T262, front14_out_ag(T237, T262)) → front1_out_ag(tree(T215, tree(T252, void, void), T237), .(T252, T262))
front1_in_ag(tree(T215, tree(T269, T272, T273), T274), T218) → U54_ag(T215, T269, T272, T273, T274, T218, front14_in_aa(T272, X339))
U54_ag(T215, T269, T272, T273, T274, T218, front14_out_aa(T272, X339)) → front1_out_ag(tree(T215, tree(T269, T272, T273), T274), T218)
front1_in_ag(tree(T215, tree(T269, T272, T276), T277), T218) → U55_ag(T215, T269, T272, T276, T277, T218, front14_in_aa(T272, T275))
U55_ag(T215, T269, T272, T276, T277, T218, front14_out_aa(T272, T275)) → U56_ag(T215, T269, T272, T276, T277, T218, front14_in_aa(T276, X340))
U56_ag(T215, T269, T272, T276, T277, T218, front14_out_aa(T276, X340)) → front1_out_ag(tree(T215, tree(T269, T272, T276), T277), T218)
front1_in_ag(tree(T215, tree(T269, T272, T276), T282), T218) → U57_ag(T215, T269, T272, T276, T282, T218, front14_in_aa(T272, T281))
U57_ag(T215, T269, T272, T276, T282, T218, front14_out_aa(T272, T281)) → U58_ag(T215, T269, T272, T276, T282, T218, T281, front14_in_aa(T276, T280))
U58_ag(T215, T269, T272, T276, T282, T218, T281, front14_out_aa(T276, T280)) → U59_ag(T215, T269, T272, T276, T282, T218, app32_in_aaa(T281, T280, X341))
U59_ag(T215, T269, T272, T276, T282, T218, app32_out_aaa(T281, T280, X341)) → front1_out_ag(tree(T215, tree(T269, T272, T276), T282), T218)
front1_in_ag(tree(T215, tree(T269, T272, T276), T288), T218) → U60_ag(T215, T269, T272, T276, T288, T218, front14_in_aa(T272, T281))
U60_ag(T215, T269, T272, T276, T288, T218, front14_out_aa(T272, T281)) → U61_ag(T215, T269, T272, T276, T288, T218, T281, front14_in_aa(T276, T280))
U61_ag(T215, T269, T272, T276, T288, T218, T281, front14_out_aa(T276, T280)) → U62_ag(T215, T269, T272, T276, T288, T218, app32_in_aaa(T281, T280, T287))
U62_ag(T215, T269, T272, T276, T288, T218, app32_out_aaa(T281, T280, T287)) → U63_ag(T215, T269, T272, T276, T288, T218, front14_in_aa(T288, X265))
U63_ag(T215, T269, T272, T276, T288, T218, front14_out_aa(T288, X265)) → front1_out_ag(tree(T215, tree(T269, T272, T276), T288), T218)
front1_in_ag(tree(T215, tree(T269, T272, T276), T288), T303) → U64_ag(T215, T269, T272, T276, T288, T303, front14_in_aa(T272, T281))
U64_ag(T215, T269, T272, T276, T288, T303, front14_out_aa(T272, T281)) → U65_ag(T215, T269, T272, T276, T288, T303, T281, front14_in_aa(T276, T280))
U65_ag(T215, T269, T272, T276, T288, T303, T281, front14_out_aa(T276, T280)) → U66_ag(T215, T269, T272, T276, T288, T303, app32_in_aag(T281, T280, []))
U66_ag(T215, T269, T272, T276, T288, T303, app32_out_aag(T281, T280, [])) → U67_ag(T215, T269, T272, T276, T288, T303, front14_in_ag(T288, T303))
U67_ag(T215, T269, T272, T276, T288, T303, front14_out_ag(T288, T303)) → front1_out_ag(tree(T215, tree(T269, T272, T276), T288), T303)
front1_in_ag(tree(T215, tree(T269, T272, T276), T288), .(T312, T324)) → U68_ag(T215, T269, T272, T276, T288, T312, T324, front14_in_aa(T272, T281))
U68_ag(T215, T269, T272, T276, T288, T312, T324, front14_out_aa(T272, T281)) → U69_ag(T215, T269, T272, T276, T288, T312, T324, T281, front14_in_aa(T276, T280))
U69_ag(T215, T269, T272, T276, T288, T312, T324, T281, front14_out_aa(T276, T280)) → U70_ag(T215, T269, T272, T276, T288, T312, T324, app32_in_aag(T281, T280, .(T312, [])))
U70_ag(T215, T269, T272, T276, T288, T312, T324, app32_out_aag(T281, T280, .(T312, []))) → U71_ag(T215, T269, T272, T276, T288, T312, T324, front14_in_ag(T288, T324))
U71_ag(T215, T269, T272, T276, T288, T312, T324, front14_out_ag(T288, T324)) → front1_out_ag(tree(T215, tree(T269, T272, T276), T288), .(T312, T324))
front1_in_ag(tree(T215, tree(T269, T272, T276), T288), .(T312, .(T333, T336))) → U72_ag(T215, T269, T272, T276, T288, T312, T333, T336, front14_in_aa(T272, T281))
U72_ag(T215, T269, T272, T276, T288, T312, T333, T336, front14_out_aa(T272, T281)) → U73_ag(T215, T269, T272, T276, T288, T312, T333, T336, T281, front14_in_aa(T276, T280))
U73_ag(T215, T269, T272, T276, T288, T312, T333, T336, T281, front14_out_aa(T276, T280)) → U74_ag(T215, T269, T272, T276, T288, T312, T333, T336, app32_in_aaa(T281, T280, .(T312, .(T333, T337))))
U74_ag(T215, T269, T272, T276, T288, T312, T333, T336, app32_out_aaa(T281, T280, .(T312, .(T333, T337)))) → U75_ag(T215, T269, T272, T276, T288, T312, T333, T336, T337, front14_in_aa(T288, T338))
U75_ag(T215, T269, T272, T276, T288, T312, T333, T336, T337, front14_out_aa(T288, T338)) → U76_ag(T215, T269, T272, T276, T288, T312, T333, T336, app178_in_aag(T337, T338, T336))
app178_in_aag([], T345, T345) → app178_out_aag([], T345, T345)
app178_in_aag(.(T354, T358), T359, .(T354, T357)) → U8_aag(T354, T358, T359, T357, app178_in_aag(T358, T359, T357))
U8_aag(T354, T358, T359, T357, app178_out_aag(T358, T359, T357)) → app178_out_aag(.(T354, T358), T359, .(T354, T357))
U76_ag(T215, T269, T272, T276, T288, T312, T333, T336, app178_out_aag(T337, T338, T336)) → front1_out_ag(tree(T215, tree(T269, T272, T276), T288), .(T312, .(T333, T336)))
FRONT1_IN_AG(tree(T7, void, T12), []) → U9_AG(T7, T12, front14_in_aa(T12, X12))
FRONT1_IN_AG(tree(T7, void, T12), []) → FRONT14_IN_AA(T12, X12)
FRONT14_IN_AA(tree(T25, T28, T29), X41) → U1_AA(T25, T28, T29, X41, front14_in_aa(T28, X39))
FRONT14_IN_AA(tree(T25, T28, T29), X41) → FRONT14_IN_AA(T28, X39)
FRONT14_IN_AA(tree(T25, T28, T31), X41) → U2_AA(T25, T28, T31, X41, front14_in_aa(T28, T30))
FRONT14_IN_AA(tree(T25, T28, T31), X41) → U4_AA(T25, T28, T31, X41, front14_in_aa(T28, T33))
U4_AA(T25, T28, T31, X41, front14_out_aa(T28, T33)) → U5_AA(T25, T28, T31, X41, T33, front14_in_aa(T31, T32))
U4_AA(T25, T28, T31, X41, front14_out_aa(T28, T33)) → FRONT14_IN_AA(T31, T32)
U5_AA(T25, T28, T31, X41, T33, front14_out_aa(T31, T32)) → U6_AA(T25, T28, T31, X41, app32_in_aaa(T33, T32, X41))
U5_AA(T25, T28, T31, X41, T33, front14_out_aa(T31, T32)) → APP32_IN_AAA(T33, T32, X41)
APP32_IN_AAA(.(T47, T50), T51, .(T47, X68)) → U7_AAA(T47, T50, T51, X68, app32_in_aaa(T50, T51, X68))
APP32_IN_AAA(.(T47, T50), T51, .(T47, X68)) → APP32_IN_AAA(T50, T51, X68)
U2_AA(T25, T28, T31, X41, front14_out_aa(T28, T30)) → U3_AA(T25, T28, T31, X41, front14_in_aa(T31, X40))
U2_AA(T25, T28, T31, X41, front14_out_aa(T28, T30)) → FRONT14_IN_AA(T31, X40)
FRONT1_IN_AG(tree(T7, void, T12), []) → U10_AG(T7, T12, front14_in_aa(T12, T13))
U10_AG(T7, T12, front14_out_aa(T12, T13)) → U11_AG(T7, T12, app15_in_a(T13))
U10_AG(T7, T12, front14_out_aa(T12, T13)) → APP15_IN_A(T13)
FRONT1_IN_AG(tree(T7, tree(T67, void, void), T66), []) → U12_AG(T7, T67, T66, front14_in_aa(T66, X12))
FRONT1_IN_AG(tree(T7, tree(T67, void, void), T66), []) → FRONT14_IN_AA(T66, X12)
FRONT1_IN_AG(tree(T7, tree(T80, T83, T84), T85), []) → U13_AG(T7, T80, T83, T84, T85, front14_in_aa(T83, X120))
FRONT1_IN_AG(tree(T7, tree(T80, T83, T84), T85), []) → FRONT14_IN_AA(T83, X120)
FRONT1_IN_AG(tree(T7, tree(T80, T83, T87), T88), []) → U14_AG(T7, T80, T83, T87, T88, front14_in_aa(T83, T86))
U14_AG(T7, T80, T83, T87, T88, front14_out_aa(T83, T86)) → U15_AG(T7, T80, T83, T87, T88, front14_in_aa(T87, X121))
U14_AG(T7, T80, T83, T87, T88, front14_out_aa(T83, T86)) → FRONT14_IN_AA(T87, X121)
FRONT1_IN_AG(tree(T7, tree(T80, T83, T87), T91), []) → U16_AG(T7, T80, T83, T87, T91, front14_in_aa(T83, T90))
U16_AG(T7, T80, T83, T87, T91, front14_out_aa(T83, T90)) → U17_AG(T7, T80, T83, T87, T91, T90, front14_in_aa(T87, T89))
U16_AG(T7, T80, T83, T87, T91, front14_out_aa(T83, T90)) → FRONT14_IN_AA(T87, T89)
U17_AG(T7, T80, T83, T87, T91, T90, front14_out_aa(T87, T89)) → U18_AG(T7, T80, T83, T87, T91, app32_in_aaa(T90, T89, X122))
U17_AG(T7, T80, T83, T87, T91, T90, front14_out_aa(T87, T89)) → APP32_IN_AAA(T90, T89, X122)
FRONT1_IN_AG(tree(T7, tree(T80, T83, T87), T95), []) → U19_AG(T7, T80, T83, T87, T95, front14_in_aa(T83, T90))
U19_AG(T7, T80, T83, T87, T95, front14_out_aa(T83, T90)) → U20_AG(T7, T80, T83, T87, T95, T90, front14_in_aa(T87, T89))
U19_AG(T7, T80, T83, T87, T95, front14_out_aa(T83, T90)) → FRONT14_IN_AA(T87, T89)
U20_AG(T7, T80, T83, T87, T95, T90, front14_out_aa(T87, T89)) → U21_AG(T7, T80, T83, T87, T95, app32_in_aaa(T90, T89, T94))
U20_AG(T7, T80, T83, T87, T95, T90, front14_out_aa(T87, T89)) → APP32_IN_AAA(T90, T89, T94)
U21_AG(T7, T80, T83, T87, T95, app32_out_aaa(T90, T89, T94)) → U22_AG(T7, T80, T83, T87, T95, front14_in_aa(T95, X12))
U21_AG(T7, T80, T83, T87, T95, app32_out_aaa(T90, T89, T94)) → FRONT14_IN_AA(T95, X12)
U20_AG(T7, T80, T83, T87, T95, T90, front14_out_aa(T87, T89)) → U23_AG(T7, T80, T83, T87, T95, app32_in_aaa(T90, T89, T99))
U23_AG(T7, T80, T83, T87, T95, app32_out_aaa(T90, T89, T99)) → U24_AG(T7, T80, T83, T87, T95, T99, front14_in_aa(T95, T98))
U23_AG(T7, T80, T83, T87, T95, app32_out_aaa(T90, T89, T99)) → FRONT14_IN_AA(T95, T98)
U24_AG(T7, T80, T83, T87, T95, T99, front14_out_aa(T95, T98)) → U25_AG(T7, T80, T83, T87, T95, app66_in_aa(T99, T98))
U24_AG(T7, T80, T83, T87, T95, T99, front14_out_aa(T95, T98)) → APP66_IN_AA(T99, T98)
FRONT1_IN_AG(tree(T116, void, T122), .(T119, [])) → U26_AG(T116, T122, T119, front14_in_aa(T122, X155))
FRONT1_IN_AG(tree(T116, void, T122), .(T119, [])) → FRONT14_IN_AA(T122, X155)
FRONT1_IN_AG(tree(T116, void, T122), .(T137, [])) → U27_AG(T116, T122, T137, front14_in_ag(T122, .(T137, [])))
FRONT1_IN_AG(tree(T116, void, T122), .(T137, [])) → FRONT14_IN_AG(T122, .(T137, []))
FRONT14_IN_AG(tree(T25, T28, T29), X41) → U1_AG(T25, T28, T29, X41, front14_in_aa(T28, X39))
FRONT14_IN_AG(tree(T25, T28, T29), X41) → FRONT14_IN_AA(T28, X39)
FRONT14_IN_AG(tree(T25, T28, T31), X41) → U2_AG(T25, T28, T31, X41, front14_in_aa(T28, T30))
U2_AG(T25, T28, T31, X41, front14_out_aa(T28, T30)) → U3_AG(T25, T28, T31, X41, front14_in_aa(T31, X40))
U2_AG(T25, T28, T31, X41, front14_out_aa(T28, T30)) → FRONT14_IN_AA(T31, X40)
FRONT14_IN_AG(tree(T25, T28, T31), X41) → U4_AG(T25, T28, T31, X41, front14_in_aa(T28, T33))
U4_AG(T25, T28, T31, X41, front14_out_aa(T28, T33)) → U5_AG(T25, T28, T31, X41, T33, front14_in_aa(T31, T32))
U4_AG(T25, T28, T31, X41, front14_out_aa(T28, T33)) → FRONT14_IN_AA(T31, T32)
U5_AG(T25, T28, T31, X41, T33, front14_out_aa(T31, T32)) → U6_AG(T25, T28, T31, X41, app32_in_aag(T33, T32, X41))
U5_AG(T25, T28, T31, X41, T33, front14_out_aa(T31, T32)) → APP32_IN_AAG(T33, T32, X41)
APP32_IN_AAG(.(T47, T50), T51, .(T47, X68)) → U7_AAG(T47, T50, T51, X68, app32_in_aag(T50, T51, X68))
APP32_IN_AAG(.(T47, T50), T51, .(T47, X68)) → APP32_IN_AAG(T50, T51, X68)
FRONT1_IN_AG(tree(T116, tree(T144, void, void), T143), .(T119, [])) → U28_AG(T116, T144, T143, T119, front14_in_aa(T143, X155))
FRONT1_IN_AG(tree(T116, tree(T144, void, void), T143), .(T119, [])) → FRONT14_IN_AA(T143, X155)
FRONT1_IN_AG(tree(T116, tree(T153, void, void), T143), .(T153, [])) → U29_AG(T116, T153, T143, front14_in_aa(T143, T155))
FRONT1_IN_AG(tree(T116, tree(T153, void, void), T143), .(T153, [])) → FRONT14_IN_AA(T143, T155)
U29_AG(T116, T153, T143, front14_out_aa(T143, T155)) → U30_AG(T116, T153, T143, app15_in_a(T155))
U29_AG(T116, T153, T143, front14_out_aa(T143, T155)) → APP15_IN_A(T155)
FRONT1_IN_AG(tree(T116, tree(T164, T167, T168), T169), .(T119, [])) → U31_AG(T116, T164, T167, T168, T169, T119, front14_in_aa(T167, X219))
FRONT1_IN_AG(tree(T116, tree(T164, T167, T168), T169), .(T119, [])) → FRONT14_IN_AA(T167, X219)
FRONT1_IN_AG(tree(T116, tree(T164, T167, T171), T172), .(T119, [])) → U32_AG(T116, T164, T167, T171, T172, T119, front14_in_aa(T167, T170))
U32_AG(T116, T164, T167, T171, T172, T119, front14_out_aa(T167, T170)) → U33_AG(T116, T164, T167, T171, T172, T119, front14_in_aa(T171, X220))
U32_AG(T116, T164, T167, T171, T172, T119, front14_out_aa(T167, T170)) → FRONT14_IN_AA(T171, X220)
FRONT1_IN_AG(tree(T116, tree(T164, T167, T171), T175), .(T119, [])) → U34_AG(T116, T164, T167, T171, T175, T119, front14_in_aa(T167, T174))
U34_AG(T116, T164, T167, T171, T175, T119, front14_out_aa(T167, T174)) → U35_AG(T116, T164, T167, T171, T175, T119, T174, front14_in_aa(T171, T173))
U34_AG(T116, T164, T167, T171, T175, T119, front14_out_aa(T167, T174)) → FRONT14_IN_AA(T171, T173)
U35_AG(T116, T164, T167, T171, T175, T119, T174, front14_out_aa(T171, T173)) → U36_AG(T116, T164, T167, T171, T175, T119, app32_in_aaa(T174, T173, X221))
U35_AG(T116, T164, T167, T171, T175, T119, T174, front14_out_aa(T171, T173)) → APP32_IN_AAA(T174, T173, X221)
FRONT1_IN_AG(tree(T116, tree(T164, T167, T171), T179), .(T119, [])) → U37_AG(T116, T164, T167, T171, T179, T119, front14_in_aa(T167, T174))
U37_AG(T116, T164, T167, T171, T179, T119, front14_out_aa(T167, T174)) → U38_AG(T116, T164, T167, T171, T179, T119, T174, front14_in_aa(T171, T173))
U37_AG(T116, T164, T167, T171, T179, T119, front14_out_aa(T167, T174)) → FRONT14_IN_AA(T171, T173)
U38_AG(T116, T164, T167, T171, T179, T119, T174, front14_out_aa(T171, T173)) → U39_AG(T116, T164, T167, T171, T179, T119, app32_in_aaa(T174, T173, T178))
U38_AG(T116, T164, T167, T171, T179, T119, T174, front14_out_aa(T171, T173)) → APP32_IN_AAA(T174, T173, T178)
U39_AG(T116, T164, T167, T171, T179, T119, app32_out_aaa(T174, T173, T178)) → U40_AG(T116, T164, T167, T171, T179, T119, front14_in_aa(T179, X155))
U39_AG(T116, T164, T167, T171, T179, T119, app32_out_aaa(T174, T173, T178)) → FRONT14_IN_AA(T179, X155)
FRONT1_IN_AG(tree(T116, tree(T164, T167, T171), T179), .(T197, [])) → U41_AG(T116, T164, T167, T171, T179, T197, front14_in_aa(T167, T174))
U41_AG(T116, T164, T167, T171, T179, T197, front14_out_aa(T167, T174)) → U42_AG(T116, T164, T167, T171, T179, T197, T174, front14_in_aa(T171, T173))
U41_AG(T116, T164, T167, T171, T179, T197, front14_out_aa(T167, T174)) → FRONT14_IN_AA(T171, T173)
U42_AG(T116, T164, T167, T171, T179, T197, T174, front14_out_aa(T171, T173)) → U43_AG(T116, T164, T167, T171, T179, T197, app32_in_aag(T174, T173, []))
U42_AG(T116, T164, T167, T171, T179, T197, T174, front14_out_aa(T171, T173)) → APP32_IN_AAG(T174, T173, [])
U43_AG(T116, T164, T167, T171, T179, T197, app32_out_aag(T174, T173, [])) → U44_AG(T116, T164, T167, T171, T179, T197, front14_in_ag(T179, .(T197, [])))
U43_AG(T116, T164, T167, T171, T179, T197, app32_out_aag(T174, T173, [])) → FRONT14_IN_AG(T179, .(T197, []))
FRONT1_IN_AG(tree(T116, tree(T164, T167, T171), T179), .(T204, [])) → U45_AG(T116, T164, T167, T171, T179, T204, front14_in_aa(T167, T174))
U45_AG(T116, T164, T167, T171, T179, T204, front14_out_aa(T167, T174)) → U46_AG(T116, T164, T167, T171, T179, T204, T174, front14_in_aa(T171, T173))
U45_AG(T116, T164, T167, T171, T179, T204, front14_out_aa(T167, T174)) → FRONT14_IN_AA(T171, T173)
U46_AG(T116, T164, T167, T171, T179, T204, T174, front14_out_aa(T171, T173)) → U47_AG(T116, T164, T167, T171, T179, T204, app32_in_aaa(T174, T173, .(T204, T207)))
U46_AG(T116, T164, T167, T171, T179, T204, T174, front14_out_aa(T171, T173)) → APP32_IN_AAA(T174, T173, .(T204, T207))
U47_AG(T116, T164, T167, T171, T179, T204, app32_out_aaa(T174, T173, .(T204, T207))) → U48_AG(T116, T164, T167, T171, T179, T204, T207, front14_in_aa(T179, T208))
U47_AG(T116, T164, T167, T171, T179, T204, app32_out_aaa(T174, T173, .(T204, T207))) → FRONT14_IN_AA(T179, T208)
U48_AG(T116, T164, T167, T171, T179, T204, T207, front14_out_aa(T179, T208)) → U49_AG(T116, T164, T167, T171, T179, T204, app66_in_aa(T207, T208))
U48_AG(T116, T164, T167, T171, T179, T204, T207, front14_out_aa(T179, T208)) → APP66_IN_AA(T207, T208)
FRONT1_IN_AG(tree(T215, void, T221), T218) → U50_AG(T215, T221, T218, front14_in_aa(T221, X265))
FRONT1_IN_AG(tree(T215, void, T221), T218) → FRONT14_IN_AA(T221, X265)
FRONT1_IN_AG(tree(T215, void, T221), T231) → U51_AG(T215, T221, T231, front14_in_ag(T221, T231))
FRONT1_IN_AG(tree(T215, void, T221), T231) → FRONT14_IN_AG(T221, T231)
FRONT1_IN_AG(tree(T215, tree(T238, void, void), T237), T218) → U52_AG(T215, T238, T237, T218, front14_in_aa(T237, X265))
FRONT1_IN_AG(tree(T215, tree(T238, void, void), T237), T218) → FRONT14_IN_AA(T237, X265)
FRONT1_IN_AG(tree(T215, tree(T252, void, void), T237), .(T252, T262)) → U53_AG(T215, T252, T237, T262, front14_in_ag(T237, T262))
FRONT1_IN_AG(tree(T215, tree(T252, void, void), T237), .(T252, T262)) → FRONT14_IN_AG(T237, T262)
FRONT1_IN_AG(tree(T215, tree(T269, T272, T273), T274), T218) → U54_AG(T215, T269, T272, T273, T274, T218, front14_in_aa(T272, X339))
FRONT1_IN_AG(tree(T215, tree(T269, T272, T273), T274), T218) → FRONT14_IN_AA(T272, X339)
FRONT1_IN_AG(tree(T215, tree(T269, T272, T276), T277), T218) → U55_AG(T215, T269, T272, T276, T277, T218, front14_in_aa(T272, T275))
U55_AG(T215, T269, T272, T276, T277, T218, front14_out_aa(T272, T275)) → U56_AG(T215, T269, T272, T276, T277, T218, front14_in_aa(T276, X340))
U55_AG(T215, T269, T272, T276, T277, T218, front14_out_aa(T272, T275)) → FRONT14_IN_AA(T276, X340)
FRONT1_IN_AG(tree(T215, tree(T269, T272, T276), T282), T218) → U57_AG(T215, T269, T272, T276, T282, T218, front14_in_aa(T272, T281))
U57_AG(T215, T269, T272, T276, T282, T218, front14_out_aa(T272, T281)) → U58_AG(T215, T269, T272, T276, T282, T218, T281, front14_in_aa(T276, T280))
U57_AG(T215, T269, T272, T276, T282, T218, front14_out_aa(T272, T281)) → FRONT14_IN_AA(T276, T280)
U58_AG(T215, T269, T272, T276, T282, T218, T281, front14_out_aa(T276, T280)) → U59_AG(T215, T269, T272, T276, T282, T218, app32_in_aaa(T281, T280, X341))
U58_AG(T215, T269, T272, T276, T282, T218, T281, front14_out_aa(T276, T280)) → APP32_IN_AAA(T281, T280, X341)
FRONT1_IN_AG(tree(T215, tree(T269, T272, T276), T288), T218) → U60_AG(T215, T269, T272, T276, T288, T218, front14_in_aa(T272, T281))
U60_AG(T215, T269, T272, T276, T288, T218, front14_out_aa(T272, T281)) → U61_AG(T215, T269, T272, T276, T288, T218, T281, front14_in_aa(T276, T280))
U60_AG(T215, T269, T272, T276, T288, T218, front14_out_aa(T272, T281)) → FRONT14_IN_AA(T276, T280)
U61_AG(T215, T269, T272, T276, T288, T218, T281, front14_out_aa(T276, T280)) → U62_AG(T215, T269, T272, T276, T288, T218, app32_in_aaa(T281, T280, T287))
U61_AG(T215, T269, T272, T276, T288, T218, T281, front14_out_aa(T276, T280)) → APP32_IN_AAA(T281, T280, T287)
U62_AG(T215, T269, T272, T276, T288, T218, app32_out_aaa(T281, T280, T287)) → U63_AG(T215, T269, T272, T276, T288, T218, front14_in_aa(T288, X265))
U62_AG(T215, T269, T272, T276, T288, T218, app32_out_aaa(T281, T280, T287)) → FRONT14_IN_AA(T288, X265)
FRONT1_IN_AG(tree(T215, tree(T269, T272, T276), T288), T303) → U64_AG(T215, T269, T272, T276, T288, T303, front14_in_aa(T272, T281))
U64_AG(T215, T269, T272, T276, T288, T303, front14_out_aa(T272, T281)) → U65_AG(T215, T269, T272, T276, T288, T303, T281, front14_in_aa(T276, T280))
U64_AG(T215, T269, T272, T276, T288, T303, front14_out_aa(T272, T281)) → FRONT14_IN_AA(T276, T280)
U65_AG(T215, T269, T272, T276, T288, T303, T281, front14_out_aa(T276, T280)) → U66_AG(T215, T269, T272, T276, T288, T303, app32_in_aag(T281, T280, []))
U65_AG(T215, T269, T272, T276, T288, T303, T281, front14_out_aa(T276, T280)) → APP32_IN_AAG(T281, T280, [])
U66_AG(T215, T269, T272, T276, T288, T303, app32_out_aag(T281, T280, [])) → U67_AG(T215, T269, T272, T276, T288, T303, front14_in_ag(T288, T303))
U66_AG(T215, T269, T272, T276, T288, T303, app32_out_aag(T281, T280, [])) → FRONT14_IN_AG(T288, T303)
FRONT1_IN_AG(tree(T215, tree(T269, T272, T276), T288), .(T312, T324)) → U68_AG(T215, T269, T272, T276, T288, T312, T324, front14_in_aa(T272, T281))
FRONT1_IN_AG(tree(T215, tree(T269, T272, T276), T288), .(T312, T324)) → FRONT14_IN_AA(T272, T281)
U68_AG(T215, T269, T272, T276, T288, T312, T324, front14_out_aa(T272, T281)) → U69_AG(T215, T269, T272, T276, T288, T312, T324, T281, front14_in_aa(T276, T280))
U68_AG(T215, T269, T272, T276, T288, T312, T324, front14_out_aa(T272, T281)) → FRONT14_IN_AA(T276, T280)
U69_AG(T215, T269, T272, T276, T288, T312, T324, T281, front14_out_aa(T276, T280)) → U70_AG(T215, T269, T272, T276, T288, T312, T324, app32_in_aag(T281, T280, .(T312, [])))
U69_AG(T215, T269, T272, T276, T288, T312, T324, T281, front14_out_aa(T276, T280)) → APP32_IN_AAG(T281, T280, .(T312, []))
U70_AG(T215, T269, T272, T276, T288, T312, T324, app32_out_aag(T281, T280, .(T312, []))) → U71_AG(T215, T269, T272, T276, T288, T312, T324, front14_in_ag(T288, T324))
U70_AG(T215, T269, T272, T276, T288, T312, T324, app32_out_aag(T281, T280, .(T312, []))) → FRONT14_IN_AG(T288, T324)
FRONT1_IN_AG(tree(T215, tree(T269, T272, T276), T288), .(T312, .(T333, T336))) → U72_AG(T215, T269, T272, T276, T288, T312, T333, T336, front14_in_aa(T272, T281))
FRONT1_IN_AG(tree(T215, tree(T269, T272, T276), T288), .(T312, .(T333, T336))) → FRONT14_IN_AA(T272, T281)
U72_AG(T215, T269, T272, T276, T288, T312, T333, T336, front14_out_aa(T272, T281)) → U73_AG(T215, T269, T272, T276, T288, T312, T333, T336, T281, front14_in_aa(T276, T280))
U72_AG(T215, T269, T272, T276, T288, T312, T333, T336, front14_out_aa(T272, T281)) → FRONT14_IN_AA(T276, T280)
U73_AG(T215, T269, T272, T276, T288, T312, T333, T336, T281, front14_out_aa(T276, T280)) → U74_AG(T215, T269, T272, T276, T288, T312, T333, T336, app32_in_aaa(T281, T280, .(T312, .(T333, T337))))
U73_AG(T215, T269, T272, T276, T288, T312, T333, T336, T281, front14_out_aa(T276, T280)) → APP32_IN_AAA(T281, T280, .(T312, .(T333, T337)))
U74_AG(T215, T269, T272, T276, T288, T312, T333, T336, app32_out_aaa(T281, T280, .(T312, .(T333, T337)))) → U75_AG(T215, T269, T272, T276, T288, T312, T333, T336, T337, front14_in_aa(T288, T338))
U74_AG(T215, T269, T272, T276, T288, T312, T333, T336, app32_out_aaa(T281, T280, .(T312, .(T333, T337)))) → FRONT14_IN_AA(T288, T338)
U75_AG(T215, T269, T272, T276, T288, T312, T333, T336, T337, front14_out_aa(T288, T338)) → U76_AG(T215, T269, T272, T276, T288, T312, T333, T336, app178_in_aag(T337, T338, T336))
U75_AG(T215, T269, T272, T276, T288, T312, T333, T336, T337, front14_out_aa(T288, T338)) → APP178_IN_AAG(T337, T338, T336)
APP178_IN_AAG(.(T354, T358), T359, .(T354, T357)) → U8_AAG(T354, T358, T359, T357, app178_in_aag(T358, T359, T357))
APP178_IN_AAG(.(T354, T358), T359, .(T354, T357)) → APP178_IN_AAG(T358, T359, T357)
front1_in_ag(void, []) → front1_out_ag(void, [])
front1_in_ag(tree(T7, void, T12), []) → U9_ag(T7, T12, front14_in_aa(T12, X12))
front14_in_aa(void, []) → front14_out_aa(void, [])
front14_in_aa(tree(T18, void, void), .(T18, [])) → front14_out_aa(tree(T18, void, void), .(T18, []))
front14_in_aa(tree(T25, T28, T29), X41) → U1_aa(T25, T28, T29, X41, front14_in_aa(T28, X39))
front14_in_aa(tree(T25, T28, T31), X41) → U2_aa(T25, T28, T31, X41, front14_in_aa(T28, T30))
front14_in_aa(tree(T25, T28, T31), X41) → U4_aa(T25, T28, T31, X41, front14_in_aa(T28, T33))
U4_aa(T25, T28, T31, X41, front14_out_aa(T28, T33)) → U5_aa(T25, T28, T31, X41, T33, front14_in_aa(T31, T32))
U5_aa(T25, T28, T31, X41, T33, front14_out_aa(T31, T32)) → U6_aa(T25, T28, T31, X41, app32_in_aaa(T33, T32, X41))
app32_in_aaa([], T40, T40) → app32_out_aaa([], T40, T40)
app32_in_aaa(.(T47, T50), T51, .(T47, X68)) → U7_aaa(T47, T50, T51, X68, app32_in_aaa(T50, T51, X68))
U7_aaa(T47, T50, T51, X68, app32_out_aaa(T50, T51, X68)) → app32_out_aaa(.(T47, T50), T51, .(T47, X68))
U6_aa(T25, T28, T31, X41, app32_out_aaa(T33, T32, X41)) → front14_out_aa(tree(T25, T28, T31), X41)
U2_aa(T25, T28, T31, X41, front14_out_aa(T28, T30)) → U3_aa(T25, T28, T31, X41, front14_in_aa(T31, X40))
U3_aa(T25, T28, T31, X41, front14_out_aa(T31, X40)) → front14_out_aa(tree(T25, T28, T31), X41)
U1_aa(T25, T28, T29, X41, front14_out_aa(T28, X39)) → front14_out_aa(tree(T25, T28, T29), X41)
U9_ag(T7, T12, front14_out_aa(T12, X12)) → front1_out_ag(tree(T7, void, T12), [])
front1_in_ag(tree(T7, void, T12), []) → U10_ag(T7, T12, front14_in_aa(T12, T13))
U10_ag(T7, T12, front14_out_aa(T12, T13)) → U11_ag(T7, T12, app15_in_a(T13))
app15_in_a([]) → app15_out_a([])
U11_ag(T7, T12, app15_out_a(T13)) → front1_out_ag(tree(T7, void, T12), [])
front1_in_ag(tree(T7, tree(T67, void, void), T66), []) → U12_ag(T7, T67, T66, front14_in_aa(T66, X12))
U12_ag(T7, T67, T66, front14_out_aa(T66, X12)) → front1_out_ag(tree(T7, tree(T67, void, void), T66), [])
front1_in_ag(tree(T7, tree(T80, T83, T84), T85), []) → U13_ag(T7, T80, T83, T84, T85, front14_in_aa(T83, X120))
U13_ag(T7, T80, T83, T84, T85, front14_out_aa(T83, X120)) → front1_out_ag(tree(T7, tree(T80, T83, T84), T85), [])
front1_in_ag(tree(T7, tree(T80, T83, T87), T88), []) → U14_ag(T7, T80, T83, T87, T88, front14_in_aa(T83, T86))
U14_ag(T7, T80, T83, T87, T88, front14_out_aa(T83, T86)) → U15_ag(T7, T80, T83, T87, T88, front14_in_aa(T87, X121))
U15_ag(T7, T80, T83, T87, T88, front14_out_aa(T87, X121)) → front1_out_ag(tree(T7, tree(T80, T83, T87), T88), [])
front1_in_ag(tree(T7, tree(T80, T83, T87), T91), []) → U16_ag(T7, T80, T83, T87, T91, front14_in_aa(T83, T90))
U16_ag(T7, T80, T83, T87, T91, front14_out_aa(T83, T90)) → U17_ag(T7, T80, T83, T87, T91, T90, front14_in_aa(T87, T89))
U17_ag(T7, T80, T83, T87, T91, T90, front14_out_aa(T87, T89)) → U18_ag(T7, T80, T83, T87, T91, app32_in_aaa(T90, T89, X122))
U18_ag(T7, T80, T83, T87, T91, app32_out_aaa(T90, T89, X122)) → front1_out_ag(tree(T7, tree(T80, T83, T87), T91), [])
front1_in_ag(tree(T7, tree(T80, T83, T87), T95), []) → U19_ag(T7, T80, T83, T87, T95, front14_in_aa(T83, T90))
U19_ag(T7, T80, T83, T87, T95, front14_out_aa(T83, T90)) → U20_ag(T7, T80, T83, T87, T95, T90, front14_in_aa(T87, T89))
U20_ag(T7, T80, T83, T87, T95, T90, front14_out_aa(T87, T89)) → U21_ag(T7, T80, T83, T87, T95, app32_in_aaa(T90, T89, T94))
U21_ag(T7, T80, T83, T87, T95, app32_out_aaa(T90, T89, T94)) → U22_ag(T7, T80, T83, T87, T95, front14_in_aa(T95, X12))
U22_ag(T7, T80, T83, T87, T95, front14_out_aa(T95, X12)) → front1_out_ag(tree(T7, tree(T80, T83, T87), T95), [])
U20_ag(T7, T80, T83, T87, T95, T90, front14_out_aa(T87, T89)) → U23_ag(T7, T80, T83, T87, T95, app32_in_aaa(T90, T89, T99))
U23_ag(T7, T80, T83, T87, T95, app32_out_aaa(T90, T89, T99)) → U24_ag(T7, T80, T83, T87, T95, T99, front14_in_aa(T95, T98))
U24_ag(T7, T80, T83, T87, T95, T99, front14_out_aa(T95, T98)) → U25_ag(T7, T80, T83, T87, T95, app66_in_aa(T99, T98))
app66_in_aa([], []) → app66_out_aa([], [])
U25_ag(T7, T80, T83, T87, T95, app66_out_aa(T99, T98)) → front1_out_ag(tree(T7, tree(T80, T83, T87), T95), [])
front1_in_ag(tree(T111, void, void), .(T111, [])) → front1_out_ag(tree(T111, void, void), .(T111, []))
front1_in_ag(tree(T116, void, T122), .(T119, [])) → U26_ag(T116, T122, T119, front14_in_aa(T122, X155))
U26_ag(T116, T122, T119, front14_out_aa(T122, X155)) → front1_out_ag(tree(T116, void, T122), .(T119, []))
front1_in_ag(tree(T116, void, T122), .(T137, [])) → U27_ag(T116, T122, T137, front14_in_ag(T122, .(T137, [])))
front14_in_ag(void, []) → front14_out_ag(void, [])
front14_in_ag(tree(T18, void, void), .(T18, [])) → front14_out_ag(tree(T18, void, void), .(T18, []))
front14_in_ag(tree(T25, T28, T29), X41) → U1_ag(T25, T28, T29, X41, front14_in_aa(T28, X39))
U1_ag(T25, T28, T29, X41, front14_out_aa(T28, X39)) → front14_out_ag(tree(T25, T28, T29), X41)
front14_in_ag(tree(T25, T28, T31), X41) → U2_ag(T25, T28, T31, X41, front14_in_aa(T28, T30))
U2_ag(T25, T28, T31, X41, front14_out_aa(T28, T30)) → U3_ag(T25, T28, T31, X41, front14_in_aa(T31, X40))
U3_ag(T25, T28, T31, X41, front14_out_aa(T31, X40)) → front14_out_ag(tree(T25, T28, T31), X41)
front14_in_ag(tree(T25, T28, T31), X41) → U4_ag(T25, T28, T31, X41, front14_in_aa(T28, T33))
U4_ag(T25, T28, T31, X41, front14_out_aa(T28, T33)) → U5_ag(T25, T28, T31, X41, T33, front14_in_aa(T31, T32))
U5_ag(T25, T28, T31, X41, T33, front14_out_aa(T31, T32)) → U6_ag(T25, T28, T31, X41, app32_in_aag(T33, T32, X41))
app32_in_aag([], T40, T40) → app32_out_aag([], T40, T40)
app32_in_aag(.(T47, T50), T51, .(T47, X68)) → U7_aag(T47, T50, T51, X68, app32_in_aag(T50, T51, X68))
U7_aag(T47, T50, T51, X68, app32_out_aag(T50, T51, X68)) → app32_out_aag(.(T47, T50), T51, .(T47, X68))
U6_ag(T25, T28, T31, X41, app32_out_aag(T33, T32, X41)) → front14_out_ag(tree(T25, T28, T31), X41)
U27_ag(T116, T122, T137, front14_out_ag(T122, .(T137, []))) → front1_out_ag(tree(T116, void, T122), .(T137, []))
front1_in_ag(tree(T116, tree(T144, void, void), T143), .(T119, [])) → U28_ag(T116, T144, T143, T119, front14_in_aa(T143, X155))
U28_ag(T116, T144, T143, T119, front14_out_aa(T143, X155)) → front1_out_ag(tree(T116, tree(T144, void, void), T143), .(T119, []))
front1_in_ag(tree(T116, tree(T153, void, void), T143), .(T153, [])) → U29_ag(T116, T153, T143, front14_in_aa(T143, T155))
U29_ag(T116, T153, T143, front14_out_aa(T143, T155)) → U30_ag(T116, T153, T143, app15_in_a(T155))
U30_ag(T116, T153, T143, app15_out_a(T155)) → front1_out_ag(tree(T116, tree(T153, void, void), T143), .(T153, []))
front1_in_ag(tree(T116, tree(T164, T167, T168), T169), .(T119, [])) → U31_ag(T116, T164, T167, T168, T169, T119, front14_in_aa(T167, X219))
U31_ag(T116, T164, T167, T168, T169, T119, front14_out_aa(T167, X219)) → front1_out_ag(tree(T116, tree(T164, T167, T168), T169), .(T119, []))
front1_in_ag(tree(T116, tree(T164, T167, T171), T172), .(T119, [])) → U32_ag(T116, T164, T167, T171, T172, T119, front14_in_aa(T167, T170))
U32_ag(T116, T164, T167, T171, T172, T119, front14_out_aa(T167, T170)) → U33_ag(T116, T164, T167, T171, T172, T119, front14_in_aa(T171, X220))
U33_ag(T116, T164, T167, T171, T172, T119, front14_out_aa(T171, X220)) → front1_out_ag(tree(T116, tree(T164, T167, T171), T172), .(T119, []))
front1_in_ag(tree(T116, tree(T164, T167, T171), T175), .(T119, [])) → U34_ag(T116, T164, T167, T171, T175, T119, front14_in_aa(T167, T174))
U34_ag(T116, T164, T167, T171, T175, T119, front14_out_aa(T167, T174)) → U35_ag(T116, T164, T167, T171, T175, T119, T174, front14_in_aa(T171, T173))
U35_ag(T116, T164, T167, T171, T175, T119, T174, front14_out_aa(T171, T173)) → U36_ag(T116, T164, T167, T171, T175, T119, app32_in_aaa(T174, T173, X221))
U36_ag(T116, T164, T167, T171, T175, T119, app32_out_aaa(T174, T173, X221)) → front1_out_ag(tree(T116, tree(T164, T167, T171), T175), .(T119, []))
front1_in_ag(tree(T116, tree(T164, T167, T171), T179), .(T119, [])) → U37_ag(T116, T164, T167, T171, T179, T119, front14_in_aa(T167, T174))
U37_ag(T116, T164, T167, T171, T179, T119, front14_out_aa(T167, T174)) → U38_ag(T116, T164, T167, T171, T179, T119, T174, front14_in_aa(T171, T173))
U38_ag(T116, T164, T167, T171, T179, T119, T174, front14_out_aa(T171, T173)) → U39_ag(T116, T164, T167, T171, T179, T119, app32_in_aaa(T174, T173, T178))
U39_ag(T116, T164, T167, T171, T179, T119, app32_out_aaa(T174, T173, T178)) → U40_ag(T116, T164, T167, T171, T179, T119, front14_in_aa(T179, X155))
U40_ag(T116, T164, T167, T171, T179, T119, front14_out_aa(T179, X155)) → front1_out_ag(tree(T116, tree(T164, T167, T171), T179), .(T119, []))
front1_in_ag(tree(T116, tree(T164, T167, T171), T179), .(T197, [])) → U41_ag(T116, T164, T167, T171, T179, T197, front14_in_aa(T167, T174))
U41_ag(T116, T164, T167, T171, T179, T197, front14_out_aa(T167, T174)) → U42_ag(T116, T164, T167, T171, T179, T197, T174, front14_in_aa(T171, T173))
U42_ag(T116, T164, T167, T171, T179, T197, T174, front14_out_aa(T171, T173)) → U43_ag(T116, T164, T167, T171, T179, T197, app32_in_aag(T174, T173, []))
U43_ag(T116, T164, T167, T171, T179, T197, app32_out_aag(T174, T173, [])) → U44_ag(T116, T164, T167, T171, T179, T197, front14_in_ag(T179, .(T197, [])))
U44_ag(T116, T164, T167, T171, T179, T197, front14_out_ag(T179, .(T197, []))) → front1_out_ag(tree(T116, tree(T164, T167, T171), T179), .(T197, []))
front1_in_ag(tree(T116, tree(T164, T167, T171), T179), .(T204, [])) → U45_ag(T116, T164, T167, T171, T179, T204, front14_in_aa(T167, T174))
U45_ag(T116, T164, T167, T171, T179, T204, front14_out_aa(T167, T174)) → U46_ag(T116, T164, T167, T171, T179, T204, T174, front14_in_aa(T171, T173))
U46_ag(T116, T164, T167, T171, T179, T204, T174, front14_out_aa(T171, T173)) → U47_ag(T116, T164, T167, T171, T179, T204, app32_in_aaa(T174, T173, .(T204, T207)))
U47_ag(T116, T164, T167, T171, T179, T204, app32_out_aaa(T174, T173, .(T204, T207))) → U48_ag(T116, T164, T167, T171, T179, T204, T207, front14_in_aa(T179, T208))
U48_ag(T116, T164, T167, T171, T179, T204, T207, front14_out_aa(T179, T208)) → U49_ag(T116, T164, T167, T171, T179, T204, app66_in_aa(T207, T208))
U49_ag(T116, T164, T167, T171, T179, T204, app66_out_aa(T207, T208)) → front1_out_ag(tree(T116, tree(T164, T167, T171), T179), .(T204, []))
front1_in_ag(tree(T215, void, T221), T218) → U50_ag(T215, T221, T218, front14_in_aa(T221, X265))
U50_ag(T215, T221, T218, front14_out_aa(T221, X265)) → front1_out_ag(tree(T215, void, T221), T218)
front1_in_ag(tree(T215, void, T221), T231) → U51_ag(T215, T221, T231, front14_in_ag(T221, T231))
U51_ag(T215, T221, T231, front14_out_ag(T221, T231)) → front1_out_ag(tree(T215, void, T221), T231)
front1_in_ag(tree(T215, tree(T238, void, void), T237), T218) → U52_ag(T215, T238, T237, T218, front14_in_aa(T237, X265))
U52_ag(T215, T238, T237, T218, front14_out_aa(T237, X265)) → front1_out_ag(tree(T215, tree(T238, void, void), T237), T218)
front1_in_ag(tree(T215, tree(T252, void, void), T237), .(T252, T262)) → U53_ag(T215, T252, T237, T262, front14_in_ag(T237, T262))
U53_ag(T215, T252, T237, T262, front14_out_ag(T237, T262)) → front1_out_ag(tree(T215, tree(T252, void, void), T237), .(T252, T262))
front1_in_ag(tree(T215, tree(T269, T272, T273), T274), T218) → U54_ag(T215, T269, T272, T273, T274, T218, front14_in_aa(T272, X339))
U54_ag(T215, T269, T272, T273, T274, T218, front14_out_aa(T272, X339)) → front1_out_ag(tree(T215, tree(T269, T272, T273), T274), T218)
front1_in_ag(tree(T215, tree(T269, T272, T276), T277), T218) → U55_ag(T215, T269, T272, T276, T277, T218, front14_in_aa(T272, T275))
U55_ag(T215, T269, T272, T276, T277, T218, front14_out_aa(T272, T275)) → U56_ag(T215, T269, T272, T276, T277, T218, front14_in_aa(T276, X340))
U56_ag(T215, T269, T272, T276, T277, T218, front14_out_aa(T276, X340)) → front1_out_ag(tree(T215, tree(T269, T272, T276), T277), T218)
front1_in_ag(tree(T215, tree(T269, T272, T276), T282), T218) → U57_ag(T215, T269, T272, T276, T282, T218, front14_in_aa(T272, T281))
U57_ag(T215, T269, T272, T276, T282, T218, front14_out_aa(T272, T281)) → U58_ag(T215, T269, T272, T276, T282, T218, T281, front14_in_aa(T276, T280))
U58_ag(T215, T269, T272, T276, T282, T218, T281, front14_out_aa(T276, T280)) → U59_ag(T215, T269, T272, T276, T282, T218, app32_in_aaa(T281, T280, X341))
U59_ag(T215, T269, T272, T276, T282, T218, app32_out_aaa(T281, T280, X341)) → front1_out_ag(tree(T215, tree(T269, T272, T276), T282), T218)
front1_in_ag(tree(T215, tree(T269, T272, T276), T288), T218) → U60_ag(T215, T269, T272, T276, T288, T218, front14_in_aa(T272, T281))
U60_ag(T215, T269, T272, T276, T288, T218, front14_out_aa(T272, T281)) → U61_ag(T215, T269, T272, T276, T288, T218, T281, front14_in_aa(T276, T280))
U61_ag(T215, T269, T272, T276, T288, T218, T281, front14_out_aa(T276, T280)) → U62_ag(T215, T269, T272, T276, T288, T218, app32_in_aaa(T281, T280, T287))
U62_ag(T215, T269, T272, T276, T288, T218, app32_out_aaa(T281, T280, T287)) → U63_ag(T215, T269, T272, T276, T288, T218, front14_in_aa(T288, X265))
U63_ag(T215, T269, T272, T276, T288, T218, front14_out_aa(T288, X265)) → front1_out_ag(tree(T215, tree(T269, T272, T276), T288), T218)
front1_in_ag(tree(T215, tree(T269, T272, T276), T288), T303) → U64_ag(T215, T269, T272, T276, T288, T303, front14_in_aa(T272, T281))
U64_ag(T215, T269, T272, T276, T288, T303, front14_out_aa(T272, T281)) → U65_ag(T215, T269, T272, T276, T288, T303, T281, front14_in_aa(T276, T280))
U65_ag(T215, T269, T272, T276, T288, T303, T281, front14_out_aa(T276, T280)) → U66_ag(T215, T269, T272, T276, T288, T303, app32_in_aag(T281, T280, []))
U66_ag(T215, T269, T272, T276, T288, T303, app32_out_aag(T281, T280, [])) → U67_ag(T215, T269, T272, T276, T288, T303, front14_in_ag(T288, T303))
U67_ag(T215, T269, T272, T276, T288, T303, front14_out_ag(T288, T303)) → front1_out_ag(tree(T215, tree(T269, T272, T276), T288), T303)
front1_in_ag(tree(T215, tree(T269, T272, T276), T288), .(T312, T324)) → U68_ag(T215, T269, T272, T276, T288, T312, T324, front14_in_aa(T272, T281))
U68_ag(T215, T269, T272, T276, T288, T312, T324, front14_out_aa(T272, T281)) → U69_ag(T215, T269, T272, T276, T288, T312, T324, T281, front14_in_aa(T276, T280))
U69_ag(T215, T269, T272, T276, T288, T312, T324, T281, front14_out_aa(T276, T280)) → U70_ag(T215, T269, T272, T276, T288, T312, T324, app32_in_aag(T281, T280, .(T312, [])))
U70_ag(T215, T269, T272, T276, T288, T312, T324, app32_out_aag(T281, T280, .(T312, []))) → U71_ag(T215, T269, T272, T276, T288, T312, T324, front14_in_ag(T288, T324))
U71_ag(T215, T269, T272, T276, T288, T312, T324, front14_out_ag(T288, T324)) → front1_out_ag(tree(T215, tree(T269, T272, T276), T288), .(T312, T324))
front1_in_ag(tree(T215, tree(T269, T272, T276), T288), .(T312, .(T333, T336))) → U72_ag(T215, T269, T272, T276, T288, T312, T333, T336, front14_in_aa(T272, T281))
U72_ag(T215, T269, T272, T276, T288, T312, T333, T336, front14_out_aa(T272, T281)) → U73_ag(T215, T269, T272, T276, T288, T312, T333, T336, T281, front14_in_aa(T276, T280))
U73_ag(T215, T269, T272, T276, T288, T312, T333, T336, T281, front14_out_aa(T276, T280)) → U74_ag(T215, T269, T272, T276, T288, T312, T333, T336, app32_in_aaa(T281, T280, .(T312, .(T333, T337))))
U74_ag(T215, T269, T272, T276, T288, T312, T333, T336, app32_out_aaa(T281, T280, .(T312, .(T333, T337)))) → U75_ag(T215, T269, T272, T276, T288, T312, T333, T336, T337, front14_in_aa(T288, T338))
U75_ag(T215, T269, T272, T276, T288, T312, T333, T336, T337, front14_out_aa(T288, T338)) → U76_ag(T215, T269, T272, T276, T288, T312, T333, T336, app178_in_aag(T337, T338, T336))
app178_in_aag([], T345, T345) → app178_out_aag([], T345, T345)
app178_in_aag(.(T354, T358), T359, .(T354, T357)) → U8_aag(T354, T358, T359, T357, app178_in_aag(T358, T359, T357))
U8_aag(T354, T358, T359, T357, app178_out_aag(T358, T359, T357)) → app178_out_aag(.(T354, T358), T359, .(T354, T357))
U76_ag(T215, T269, T272, T276, T288, T312, T333, T336, app178_out_aag(T337, T338, T336)) → front1_out_ag(tree(T215, tree(T269, T272, T276), T288), .(T312, .(T333, T336)))
APP178_IN_AAG(.(T354, T358), T359, .(T354, T357)) → APP178_IN_AAG(T358, T359, T357)
front1_in_ag(void, []) → front1_out_ag(void, [])
front1_in_ag(tree(T7, void, T12), []) → U9_ag(T7, T12, front14_in_aa(T12, X12))
front14_in_aa(void, []) → front14_out_aa(void, [])
front14_in_aa(tree(T18, void, void), .(T18, [])) → front14_out_aa(tree(T18, void, void), .(T18, []))
front14_in_aa(tree(T25, T28, T29), X41) → U1_aa(T25, T28, T29, X41, front14_in_aa(T28, X39))
front14_in_aa(tree(T25, T28, T31), X41) → U2_aa(T25, T28, T31, X41, front14_in_aa(T28, T30))
front14_in_aa(tree(T25, T28, T31), X41) → U4_aa(T25, T28, T31, X41, front14_in_aa(T28, T33))
U4_aa(T25, T28, T31, X41, front14_out_aa(T28, T33)) → U5_aa(T25, T28, T31, X41, T33, front14_in_aa(T31, T32))
U5_aa(T25, T28, T31, X41, T33, front14_out_aa(T31, T32)) → U6_aa(T25, T28, T31, X41, app32_in_aaa(T33, T32, X41))
app32_in_aaa([], T40, T40) → app32_out_aaa([], T40, T40)
app32_in_aaa(.(T47, T50), T51, .(T47, X68)) → U7_aaa(T47, T50, T51, X68, app32_in_aaa(T50, T51, X68))
U7_aaa(T47, T50, T51, X68, app32_out_aaa(T50, T51, X68)) → app32_out_aaa(.(T47, T50), T51, .(T47, X68))
U6_aa(T25, T28, T31, X41, app32_out_aaa(T33, T32, X41)) → front14_out_aa(tree(T25, T28, T31), X41)
U2_aa(T25, T28, T31, X41, front14_out_aa(T28, T30)) → U3_aa(T25, T28, T31, X41, front14_in_aa(T31, X40))
U3_aa(T25, T28, T31, X41, front14_out_aa(T31, X40)) → front14_out_aa(tree(T25, T28, T31), X41)
U1_aa(T25, T28, T29, X41, front14_out_aa(T28, X39)) → front14_out_aa(tree(T25, T28, T29), X41)
U9_ag(T7, T12, front14_out_aa(T12, X12)) → front1_out_ag(tree(T7, void, T12), [])
front1_in_ag(tree(T7, void, T12), []) → U10_ag(T7, T12, front14_in_aa(T12, T13))
U10_ag(T7, T12, front14_out_aa(T12, T13)) → U11_ag(T7, T12, app15_in_a(T13))
app15_in_a([]) → app15_out_a([])
U11_ag(T7, T12, app15_out_a(T13)) → front1_out_ag(tree(T7, void, T12), [])
front1_in_ag(tree(T7, tree(T67, void, void), T66), []) → U12_ag(T7, T67, T66, front14_in_aa(T66, X12))
U12_ag(T7, T67, T66, front14_out_aa(T66, X12)) → front1_out_ag(tree(T7, tree(T67, void, void), T66), [])
front1_in_ag(tree(T7, tree(T80, T83, T84), T85), []) → U13_ag(T7, T80, T83, T84, T85, front14_in_aa(T83, X120))
U13_ag(T7, T80, T83, T84, T85, front14_out_aa(T83, X120)) → front1_out_ag(tree(T7, tree(T80, T83, T84), T85), [])
front1_in_ag(tree(T7, tree(T80, T83, T87), T88), []) → U14_ag(T7, T80, T83, T87, T88, front14_in_aa(T83, T86))
U14_ag(T7, T80, T83, T87, T88, front14_out_aa(T83, T86)) → U15_ag(T7, T80, T83, T87, T88, front14_in_aa(T87, X121))
U15_ag(T7, T80, T83, T87, T88, front14_out_aa(T87, X121)) → front1_out_ag(tree(T7, tree(T80, T83, T87), T88), [])
front1_in_ag(tree(T7, tree(T80, T83, T87), T91), []) → U16_ag(T7, T80, T83, T87, T91, front14_in_aa(T83, T90))
U16_ag(T7, T80, T83, T87, T91, front14_out_aa(T83, T90)) → U17_ag(T7, T80, T83, T87, T91, T90, front14_in_aa(T87, T89))
U17_ag(T7, T80, T83, T87, T91, T90, front14_out_aa(T87, T89)) → U18_ag(T7, T80, T83, T87, T91, app32_in_aaa(T90, T89, X122))
U18_ag(T7, T80, T83, T87, T91, app32_out_aaa(T90, T89, X122)) → front1_out_ag(tree(T7, tree(T80, T83, T87), T91), [])
front1_in_ag(tree(T7, tree(T80, T83, T87), T95), []) → U19_ag(T7, T80, T83, T87, T95, front14_in_aa(T83, T90))
U19_ag(T7, T80, T83, T87, T95, front14_out_aa(T83, T90)) → U20_ag(T7, T80, T83, T87, T95, T90, front14_in_aa(T87, T89))
U20_ag(T7, T80, T83, T87, T95, T90, front14_out_aa(T87, T89)) → U21_ag(T7, T80, T83, T87, T95, app32_in_aaa(T90, T89, T94))
U21_ag(T7, T80, T83, T87, T95, app32_out_aaa(T90, T89, T94)) → U22_ag(T7, T80, T83, T87, T95, front14_in_aa(T95, X12))
U22_ag(T7, T80, T83, T87, T95, front14_out_aa(T95, X12)) → front1_out_ag(tree(T7, tree(T80, T83, T87), T95), [])
U20_ag(T7, T80, T83, T87, T95, T90, front14_out_aa(T87, T89)) → U23_ag(T7, T80, T83, T87, T95, app32_in_aaa(T90, T89, T99))
U23_ag(T7, T80, T83, T87, T95, app32_out_aaa(T90, T89, T99)) → U24_ag(T7, T80, T83, T87, T95, T99, front14_in_aa(T95, T98))
U24_ag(T7, T80, T83, T87, T95, T99, front14_out_aa(T95, T98)) → U25_ag(T7, T80, T83, T87, T95, app66_in_aa(T99, T98))
app66_in_aa([], []) → app66_out_aa([], [])
U25_ag(T7, T80, T83, T87, T95, app66_out_aa(T99, T98)) → front1_out_ag(tree(T7, tree(T80, T83, T87), T95), [])
front1_in_ag(tree(T111, void, void), .(T111, [])) → front1_out_ag(tree(T111, void, void), .(T111, []))
front1_in_ag(tree(T116, void, T122), .(T119, [])) → U26_ag(T116, T122, T119, front14_in_aa(T122, X155))
U26_ag(T116, T122, T119, front14_out_aa(T122, X155)) → front1_out_ag(tree(T116, void, T122), .(T119, []))
front1_in_ag(tree(T116, void, T122), .(T137, [])) → U27_ag(T116, T122, T137, front14_in_ag(T122, .(T137, [])))
front14_in_ag(void, []) → front14_out_ag(void, [])
front14_in_ag(tree(T18, void, void), .(T18, [])) → front14_out_ag(tree(T18, void, void), .(T18, []))
front14_in_ag(tree(T25, T28, T29), X41) → U1_ag(T25, T28, T29, X41, front14_in_aa(T28, X39))
U1_ag(T25, T28, T29, X41, front14_out_aa(T28, X39)) → front14_out_ag(tree(T25, T28, T29), X41)
front14_in_ag(tree(T25, T28, T31), X41) → U2_ag(T25, T28, T31, X41, front14_in_aa(T28, T30))
U2_ag(T25, T28, T31, X41, front14_out_aa(T28, T30)) → U3_ag(T25, T28, T31, X41, front14_in_aa(T31, X40))
U3_ag(T25, T28, T31, X41, front14_out_aa(T31, X40)) → front14_out_ag(tree(T25, T28, T31), X41)
front14_in_ag(tree(T25, T28, T31), X41) → U4_ag(T25, T28, T31, X41, front14_in_aa(T28, T33))
U4_ag(T25, T28, T31, X41, front14_out_aa(T28, T33)) → U5_ag(T25, T28, T31, X41, T33, front14_in_aa(T31, T32))
U5_ag(T25, T28, T31, X41, T33, front14_out_aa(T31, T32)) → U6_ag(T25, T28, T31, X41, app32_in_aag(T33, T32, X41))
app32_in_aag([], T40, T40) → app32_out_aag([], T40, T40)
app32_in_aag(.(T47, T50), T51, .(T47, X68)) → U7_aag(T47, T50, T51, X68, app32_in_aag(T50, T51, X68))
U7_aag(T47, T50, T51, X68, app32_out_aag(T50, T51, X68)) → app32_out_aag(.(T47, T50), T51, .(T47, X68))
U6_ag(T25, T28, T31, X41, app32_out_aag(T33, T32, X41)) → front14_out_ag(tree(T25, T28, T31), X41)
U27_ag(T116, T122, T137, front14_out_ag(T122, .(T137, []))) → front1_out_ag(tree(T116, void, T122), .(T137, []))
front1_in_ag(tree(T116, tree(T144, void, void), T143), .(T119, [])) → U28_ag(T116, T144, T143, T119, front14_in_aa(T143, X155))
U28_ag(T116, T144, T143, T119, front14_out_aa(T143, X155)) → front1_out_ag(tree(T116, tree(T144, void, void), T143), .(T119, []))
front1_in_ag(tree(T116, tree(T153, void, void), T143), .(T153, [])) → U29_ag(T116, T153, T143, front14_in_aa(T143, T155))
U29_ag(T116, T153, T143, front14_out_aa(T143, T155)) → U30_ag(T116, T153, T143, app15_in_a(T155))
U30_ag(T116, T153, T143, app15_out_a(T155)) → front1_out_ag(tree(T116, tree(T153, void, void), T143), .(T153, []))
front1_in_ag(tree(T116, tree(T164, T167, T168), T169), .(T119, [])) → U31_ag(T116, T164, T167, T168, T169, T119, front14_in_aa(T167, X219))
U31_ag(T116, T164, T167, T168, T169, T119, front14_out_aa(T167, X219)) → front1_out_ag(tree(T116, tree(T164, T167, T168), T169), .(T119, []))
front1_in_ag(tree(T116, tree(T164, T167, T171), T172), .(T119, [])) → U32_ag(T116, T164, T167, T171, T172, T119, front14_in_aa(T167, T170))
U32_ag(T116, T164, T167, T171, T172, T119, front14_out_aa(T167, T170)) → U33_ag(T116, T164, T167, T171, T172, T119, front14_in_aa(T171, X220))
U33_ag(T116, T164, T167, T171, T172, T119, front14_out_aa(T171, X220)) → front1_out_ag(tree(T116, tree(T164, T167, T171), T172), .(T119, []))
front1_in_ag(tree(T116, tree(T164, T167, T171), T175), .(T119, [])) → U34_ag(T116, T164, T167, T171, T175, T119, front14_in_aa(T167, T174))
U34_ag(T116, T164, T167, T171, T175, T119, front14_out_aa(T167, T174)) → U35_ag(T116, T164, T167, T171, T175, T119, T174, front14_in_aa(T171, T173))
U35_ag(T116, T164, T167, T171, T175, T119, T174, front14_out_aa(T171, T173)) → U36_ag(T116, T164, T167, T171, T175, T119, app32_in_aaa(T174, T173, X221))
U36_ag(T116, T164, T167, T171, T175, T119, app32_out_aaa(T174, T173, X221)) → front1_out_ag(tree(T116, tree(T164, T167, T171), T175), .(T119, []))
front1_in_ag(tree(T116, tree(T164, T167, T171), T179), .(T119, [])) → U37_ag(T116, T164, T167, T171, T179, T119, front14_in_aa(T167, T174))
U37_ag(T116, T164, T167, T171, T179, T119, front14_out_aa(T167, T174)) → U38_ag(T116, T164, T167, T171, T179, T119, T174, front14_in_aa(T171, T173))
U38_ag(T116, T164, T167, T171, T179, T119, T174, front14_out_aa(T171, T173)) → U39_ag(T116, T164, T167, T171, T179, T119, app32_in_aaa(T174, T173, T178))
U39_ag(T116, T164, T167, T171, T179, T119, app32_out_aaa(T174, T173, T178)) → U40_ag(T116, T164, T167, T171, T179, T119, front14_in_aa(T179, X155))
U40_ag(T116, T164, T167, T171, T179, T119, front14_out_aa(T179, X155)) → front1_out_ag(tree(T116, tree(T164, T167, T171), T179), .(T119, []))
front1_in_ag(tree(T116, tree(T164, T167, T171), T179), .(T197, [])) → U41_ag(T116, T164, T167, T171, T179, T197, front14_in_aa(T167, T174))
U41_ag(T116, T164, T167, T171, T179, T197, front14_out_aa(T167, T174)) → U42_ag(T116, T164, T167, T171, T179, T197, T174, front14_in_aa(T171, T173))
U42_ag(T116, T164, T167, T171, T179, T197, T174, front14_out_aa(T171, T173)) → U43_ag(T116, T164, T167, T171, T179, T197, app32_in_aag(T174, T173, []))
U43_ag(T116, T164, T167, T171, T179, T197, app32_out_aag(T174, T173, [])) → U44_ag(T116, T164, T167, T171, T179, T197, front14_in_ag(T179, .(T197, [])))
U44_ag(T116, T164, T167, T171, T179, T197, front14_out_ag(T179, .(T197, []))) → front1_out_ag(tree(T116, tree(T164, T167, T171), T179), .(T197, []))
front1_in_ag(tree(T116, tree(T164, T167, T171), T179), .(T204, [])) → U45_ag(T116, T164, T167, T171, T179, T204, front14_in_aa(T167, T174))
U45_ag(T116, T164, T167, T171, T179, T204, front14_out_aa(T167, T174)) → U46_ag(T116, T164, T167, T171, T179, T204, T174, front14_in_aa(T171, T173))
U46_ag(T116, T164, T167, T171, T179, T204, T174, front14_out_aa(T171, T173)) → U47_ag(T116, T164, T167, T171, T179, T204, app32_in_aaa(T174, T173, .(T204, T207)))
U47_ag(T116, T164, T167, T171, T179, T204, app32_out_aaa(T174, T173, .(T204, T207))) → U48_ag(T116, T164, T167, T171, T179, T204, T207, front14_in_aa(T179, T208))
U48_ag(T116, T164, T167, T171, T179, T204, T207, front14_out_aa(T179, T208)) → U49_ag(T116, T164, T167, T171, T179, T204, app66_in_aa(T207, T208))
U49_ag(T116, T164, T167, T171, T179, T204, app66_out_aa(T207, T208)) → front1_out_ag(tree(T116, tree(T164, T167, T171), T179), .(T204, []))
front1_in_ag(tree(T215, void, T221), T218) → U50_ag(T215, T221, T218, front14_in_aa(T221, X265))
U50_ag(T215, T221, T218, front14_out_aa(T221, X265)) → front1_out_ag(tree(T215, void, T221), T218)
front1_in_ag(tree(T215, void, T221), T231) → U51_ag(T215, T221, T231, front14_in_ag(T221, T231))
U51_ag(T215, T221, T231, front14_out_ag(T221, T231)) → front1_out_ag(tree(T215, void, T221), T231)
front1_in_ag(tree(T215, tree(T238, void, void), T237), T218) → U52_ag(T215, T238, T237, T218, front14_in_aa(T237, X265))
U52_ag(T215, T238, T237, T218, front14_out_aa(T237, X265)) → front1_out_ag(tree(T215, tree(T238, void, void), T237), T218)
front1_in_ag(tree(T215, tree(T252, void, void), T237), .(T252, T262)) → U53_ag(T215, T252, T237, T262, front14_in_ag(T237, T262))
U53_ag(T215, T252, T237, T262, front14_out_ag(T237, T262)) → front1_out_ag(tree(T215, tree(T252, void, void), T237), .(T252, T262))
front1_in_ag(tree(T215, tree(T269, T272, T273), T274), T218) → U54_ag(T215, T269, T272, T273, T274, T218, front14_in_aa(T272, X339))
U54_ag(T215, T269, T272, T273, T274, T218, front14_out_aa(T272, X339)) → front1_out_ag(tree(T215, tree(T269, T272, T273), T274), T218)
front1_in_ag(tree(T215, tree(T269, T272, T276), T277), T218) → U55_ag(T215, T269, T272, T276, T277, T218, front14_in_aa(T272, T275))
U55_ag(T215, T269, T272, T276, T277, T218, front14_out_aa(T272, T275)) → U56_ag(T215, T269, T272, T276, T277, T218, front14_in_aa(T276, X340))
U56_ag(T215, T269, T272, T276, T277, T218, front14_out_aa(T276, X340)) → front1_out_ag(tree(T215, tree(T269, T272, T276), T277), T218)
front1_in_ag(tree(T215, tree(T269, T272, T276), T282), T218) → U57_ag(T215, T269, T272, T276, T282, T218, front14_in_aa(T272, T281))
U57_ag(T215, T269, T272, T276, T282, T218, front14_out_aa(T272, T281)) → U58_ag(T215, T269, T272, T276, T282, T218, T281, front14_in_aa(T276, T280))
U58_ag(T215, T269, T272, T276, T282, T218, T281, front14_out_aa(T276, T280)) → U59_ag(T215, T269, T272, T276, T282, T218, app32_in_aaa(T281, T280, X341))
U59_ag(T215, T269, T272, T276, T282, T218, app32_out_aaa(T281, T280, X341)) → front1_out_ag(tree(T215, tree(T269, T272, T276), T282), T218)
front1_in_ag(tree(T215, tree(T269, T272, T276), T288), T218) → U60_ag(T215, T269, T272, T276, T288, T218, front14_in_aa(T272, T281))
U60_ag(T215, T269, T272, T276, T288, T218, front14_out_aa(T272, T281)) → U61_ag(T215, T269, T272, T276, T288, T218, T281, front14_in_aa(T276, T280))
U61_ag(T215, T269, T272, T276, T288, T218, T281, front14_out_aa(T276, T280)) → U62_ag(T215, T269, T272, T276, T288, T218, app32_in_aaa(T281, T280, T287))
U62_ag(T215, T269, T272, T276, T288, T218, app32_out_aaa(T281, T280, T287)) → U63_ag(T215, T269, T272, T276, T288, T218, front14_in_aa(T288, X265))
U63_ag(T215, T269, T272, T276, T288, T218, front14_out_aa(T288, X265)) → front1_out_ag(tree(T215, tree(T269, T272, T276), T288), T218)
front1_in_ag(tree(T215, tree(T269, T272, T276), T288), T303) → U64_ag(T215, T269, T272, T276, T288, T303, front14_in_aa(T272, T281))
U64_ag(T215, T269, T272, T276, T288, T303, front14_out_aa(T272, T281)) → U65_ag(T215, T269, T272, T276, T288, T303, T281, front14_in_aa(T276, T280))
U65_ag(T215, T269, T272, T276, T288, T303, T281, front14_out_aa(T276, T280)) → U66_ag(T215, T269, T272, T276, T288, T303, app32_in_aag(T281, T280, []))
U66_ag(T215, T269, T272, T276, T288, T303, app32_out_aag(T281, T280, [])) → U67_ag(T215, T269, T272, T276, T288, T303, front14_in_ag(T288, T303))
U67_ag(T215, T269, T272, T276, T288, T303, front14_out_ag(T288, T303)) → front1_out_ag(tree(T215, tree(T269, T272, T276), T288), T303)
front1_in_ag(tree(T215, tree(T269, T272, T276), T288), .(T312, T324)) → U68_ag(T215, T269, T272, T276, T288, T312, T324, front14_in_aa(T272, T281))
U68_ag(T215, T269, T272, T276, T288, T312, T324, front14_out_aa(T272, T281)) → U69_ag(T215, T269, T272, T276, T288, T312, T324, T281, front14_in_aa(T276, T280))
U69_ag(T215, T269, T272, T276, T288, T312, T324, T281, front14_out_aa(T276, T280)) → U70_ag(T215, T269, T272, T276, T288, T312, T324, app32_in_aag(T281, T280, .(T312, [])))
U70_ag(T215, T269, T272, T276, T288, T312, T324, app32_out_aag(T281, T280, .(T312, []))) → U71_ag(T215, T269, T272, T276, T288, T312, T324, front14_in_ag(T288, T324))
U71_ag(T215, T269, T272, T276, T288, T312, T324, front14_out_ag(T288, T324)) → front1_out_ag(tree(T215, tree(T269, T272, T276), T288), .(T312, T324))
front1_in_ag(tree(T215, tree(T269, T272, T276), T288), .(T312, .(T333, T336))) → U72_ag(T215, T269, T272, T276, T288, T312, T333, T336, front14_in_aa(T272, T281))
U72_ag(T215, T269, T272, T276, T288, T312, T333, T336, front14_out_aa(T272, T281)) → U73_ag(T215, T269, T272, T276, T288, T312, T333, T336, T281, front14_in_aa(T276, T280))
U73_ag(T215, T269, T272, T276, T288, T312, T333, T336, T281, front14_out_aa(T276, T280)) → U74_ag(T215, T269, T272, T276, T288, T312, T333, T336, app32_in_aaa(T281, T280, .(T312, .(T333, T337))))
U74_ag(T215, T269, T272, T276, T288, T312, T333, T336, app32_out_aaa(T281, T280, .(T312, .(T333, T337)))) → U75_ag(T215, T269, T272, T276, T288, T312, T333, T336, T337, front14_in_aa(T288, T338))
U75_ag(T215, T269, T272, T276, T288, T312, T333, T336, T337, front14_out_aa(T288, T338)) → U76_ag(T215, T269, T272, T276, T288, T312, T333, T336, app178_in_aag(T337, T338, T336))
app178_in_aag([], T345, T345) → app178_out_aag([], T345, T345)
app178_in_aag(.(T354, T358), T359, .(T354, T357)) → U8_aag(T354, T358, T359, T357, app178_in_aag(T358, T359, T357))
U8_aag(T354, T358, T359, T357, app178_out_aag(T358, T359, T357)) → app178_out_aag(.(T354, T358), T359, .(T354, T357))
U76_ag(T215, T269, T272, T276, T288, T312, T333, T336, app178_out_aag(T337, T338, T336)) → front1_out_ag(tree(T215, tree(T269, T272, T276), T288), .(T312, .(T333, T336)))
APP178_IN_AAG(.(T354, T358), T359, .(T354, T357)) → APP178_IN_AAG(T358, T359, T357)
APP178_IN_AAG(.(T357)) → APP178_IN_AAG(T357)
From the DPs we obtained the following set of size-change graphs:
APP32_IN_AAG(.(T47, T50), T51, .(T47, X68)) → APP32_IN_AAG(T50, T51, X68)
front1_in_ag(void, []) → front1_out_ag(void, [])
front1_in_ag(tree(T7, void, T12), []) → U9_ag(T7, T12, front14_in_aa(T12, X12))
front14_in_aa(void, []) → front14_out_aa(void, [])
front14_in_aa(tree(T18, void, void), .(T18, [])) → front14_out_aa(tree(T18, void, void), .(T18, []))
front14_in_aa(tree(T25, T28, T29), X41) → U1_aa(T25, T28, T29, X41, front14_in_aa(T28, X39))
front14_in_aa(tree(T25, T28, T31), X41) → U2_aa(T25, T28, T31, X41, front14_in_aa(T28, T30))
front14_in_aa(tree(T25, T28, T31), X41) → U4_aa(T25, T28, T31, X41, front14_in_aa(T28, T33))
U4_aa(T25, T28, T31, X41, front14_out_aa(T28, T33)) → U5_aa(T25, T28, T31, X41, T33, front14_in_aa(T31, T32))
U5_aa(T25, T28, T31, X41, T33, front14_out_aa(T31, T32)) → U6_aa(T25, T28, T31, X41, app32_in_aaa(T33, T32, X41))
app32_in_aaa([], T40, T40) → app32_out_aaa([], T40, T40)
app32_in_aaa(.(T47, T50), T51, .(T47, X68)) → U7_aaa(T47, T50, T51, X68, app32_in_aaa(T50, T51, X68))
U7_aaa(T47, T50, T51, X68, app32_out_aaa(T50, T51, X68)) → app32_out_aaa(.(T47, T50), T51, .(T47, X68))
U6_aa(T25, T28, T31, X41, app32_out_aaa(T33, T32, X41)) → front14_out_aa(tree(T25, T28, T31), X41)
U2_aa(T25, T28, T31, X41, front14_out_aa(T28, T30)) → U3_aa(T25, T28, T31, X41, front14_in_aa(T31, X40))
U3_aa(T25, T28, T31, X41, front14_out_aa(T31, X40)) → front14_out_aa(tree(T25, T28, T31), X41)
U1_aa(T25, T28, T29, X41, front14_out_aa(T28, X39)) → front14_out_aa(tree(T25, T28, T29), X41)
U9_ag(T7, T12, front14_out_aa(T12, X12)) → front1_out_ag(tree(T7, void, T12), [])
front1_in_ag(tree(T7, void, T12), []) → U10_ag(T7, T12, front14_in_aa(T12, T13))
U10_ag(T7, T12, front14_out_aa(T12, T13)) → U11_ag(T7, T12, app15_in_a(T13))
app15_in_a([]) → app15_out_a([])
U11_ag(T7, T12, app15_out_a(T13)) → front1_out_ag(tree(T7, void, T12), [])
front1_in_ag(tree(T7, tree(T67, void, void), T66), []) → U12_ag(T7, T67, T66, front14_in_aa(T66, X12))
U12_ag(T7, T67, T66, front14_out_aa(T66, X12)) → front1_out_ag(tree(T7, tree(T67, void, void), T66), [])
front1_in_ag(tree(T7, tree(T80, T83, T84), T85), []) → U13_ag(T7, T80, T83, T84, T85, front14_in_aa(T83, X120))
U13_ag(T7, T80, T83, T84, T85, front14_out_aa(T83, X120)) → front1_out_ag(tree(T7, tree(T80, T83, T84), T85), [])
front1_in_ag(tree(T7, tree(T80, T83, T87), T88), []) → U14_ag(T7, T80, T83, T87, T88, front14_in_aa(T83, T86))
U14_ag(T7, T80, T83, T87, T88, front14_out_aa(T83, T86)) → U15_ag(T7, T80, T83, T87, T88, front14_in_aa(T87, X121))
U15_ag(T7, T80, T83, T87, T88, front14_out_aa(T87, X121)) → front1_out_ag(tree(T7, tree(T80, T83, T87), T88), [])
front1_in_ag(tree(T7, tree(T80, T83, T87), T91), []) → U16_ag(T7, T80, T83, T87, T91, front14_in_aa(T83, T90))
U16_ag(T7, T80, T83, T87, T91, front14_out_aa(T83, T90)) → U17_ag(T7, T80, T83, T87, T91, T90, front14_in_aa(T87, T89))
U17_ag(T7, T80, T83, T87, T91, T90, front14_out_aa(T87, T89)) → U18_ag(T7, T80, T83, T87, T91, app32_in_aaa(T90, T89, X122))
U18_ag(T7, T80, T83, T87, T91, app32_out_aaa(T90, T89, X122)) → front1_out_ag(tree(T7, tree(T80, T83, T87), T91), [])
front1_in_ag(tree(T7, tree(T80, T83, T87), T95), []) → U19_ag(T7, T80, T83, T87, T95, front14_in_aa(T83, T90))
U19_ag(T7, T80, T83, T87, T95, front14_out_aa(T83, T90)) → U20_ag(T7, T80, T83, T87, T95, T90, front14_in_aa(T87, T89))
U20_ag(T7, T80, T83, T87, T95, T90, front14_out_aa(T87, T89)) → U21_ag(T7, T80, T83, T87, T95, app32_in_aaa(T90, T89, T94))
U21_ag(T7, T80, T83, T87, T95, app32_out_aaa(T90, T89, T94)) → U22_ag(T7, T80, T83, T87, T95, front14_in_aa(T95, X12))
U22_ag(T7, T80, T83, T87, T95, front14_out_aa(T95, X12)) → front1_out_ag(tree(T7, tree(T80, T83, T87), T95), [])
U20_ag(T7, T80, T83, T87, T95, T90, front14_out_aa(T87, T89)) → U23_ag(T7, T80, T83, T87, T95, app32_in_aaa(T90, T89, T99))
U23_ag(T7, T80, T83, T87, T95, app32_out_aaa(T90, T89, T99)) → U24_ag(T7, T80, T83, T87, T95, T99, front14_in_aa(T95, T98))
U24_ag(T7, T80, T83, T87, T95, T99, front14_out_aa(T95, T98)) → U25_ag(T7, T80, T83, T87, T95, app66_in_aa(T99, T98))
app66_in_aa([], []) → app66_out_aa([], [])
U25_ag(T7, T80, T83, T87, T95, app66_out_aa(T99, T98)) → front1_out_ag(tree(T7, tree(T80, T83, T87), T95), [])
front1_in_ag(tree(T111, void, void), .(T111, [])) → front1_out_ag(tree(T111, void, void), .(T111, []))
front1_in_ag(tree(T116, void, T122), .(T119, [])) → U26_ag(T116, T122, T119, front14_in_aa(T122, X155))
U26_ag(T116, T122, T119, front14_out_aa(T122, X155)) → front1_out_ag(tree(T116, void, T122), .(T119, []))
front1_in_ag(tree(T116, void, T122), .(T137, [])) → U27_ag(T116, T122, T137, front14_in_ag(T122, .(T137, [])))
front14_in_ag(void, []) → front14_out_ag(void, [])
front14_in_ag(tree(T18, void, void), .(T18, [])) → front14_out_ag(tree(T18, void, void), .(T18, []))
front14_in_ag(tree(T25, T28, T29), X41) → U1_ag(T25, T28, T29, X41, front14_in_aa(T28, X39))
U1_ag(T25, T28, T29, X41, front14_out_aa(T28, X39)) → front14_out_ag(tree(T25, T28, T29), X41)
front14_in_ag(tree(T25, T28, T31), X41) → U2_ag(T25, T28, T31, X41, front14_in_aa(T28, T30))
U2_ag(T25, T28, T31, X41, front14_out_aa(T28, T30)) → U3_ag(T25, T28, T31, X41, front14_in_aa(T31, X40))
U3_ag(T25, T28, T31, X41, front14_out_aa(T31, X40)) → front14_out_ag(tree(T25, T28, T31), X41)
front14_in_ag(tree(T25, T28, T31), X41) → U4_ag(T25, T28, T31, X41, front14_in_aa(T28, T33))
U4_ag(T25, T28, T31, X41, front14_out_aa(T28, T33)) → U5_ag(T25, T28, T31, X41, T33, front14_in_aa(T31, T32))
U5_ag(T25, T28, T31, X41, T33, front14_out_aa(T31, T32)) → U6_ag(T25, T28, T31, X41, app32_in_aag(T33, T32, X41))
app32_in_aag([], T40, T40) → app32_out_aag([], T40, T40)
app32_in_aag(.(T47, T50), T51, .(T47, X68)) → U7_aag(T47, T50, T51, X68, app32_in_aag(T50, T51, X68))
U7_aag(T47, T50, T51, X68, app32_out_aag(T50, T51, X68)) → app32_out_aag(.(T47, T50), T51, .(T47, X68))
U6_ag(T25, T28, T31, X41, app32_out_aag(T33, T32, X41)) → front14_out_ag(tree(T25, T28, T31), X41)
U27_ag(T116, T122, T137, front14_out_ag(T122, .(T137, []))) → front1_out_ag(tree(T116, void, T122), .(T137, []))
front1_in_ag(tree(T116, tree(T144, void, void), T143), .(T119, [])) → U28_ag(T116, T144, T143, T119, front14_in_aa(T143, X155))
U28_ag(T116, T144, T143, T119, front14_out_aa(T143, X155)) → front1_out_ag(tree(T116, tree(T144, void, void), T143), .(T119, []))
front1_in_ag(tree(T116, tree(T153, void, void), T143), .(T153, [])) → U29_ag(T116, T153, T143, front14_in_aa(T143, T155))
U29_ag(T116, T153, T143, front14_out_aa(T143, T155)) → U30_ag(T116, T153, T143, app15_in_a(T155))
U30_ag(T116, T153, T143, app15_out_a(T155)) → front1_out_ag(tree(T116, tree(T153, void, void), T143), .(T153, []))
front1_in_ag(tree(T116, tree(T164, T167, T168), T169), .(T119, [])) → U31_ag(T116, T164, T167, T168, T169, T119, front14_in_aa(T167, X219))
U31_ag(T116, T164, T167, T168, T169, T119, front14_out_aa(T167, X219)) → front1_out_ag(tree(T116, tree(T164, T167, T168), T169), .(T119, []))
front1_in_ag(tree(T116, tree(T164, T167, T171), T172), .(T119, [])) → U32_ag(T116, T164, T167, T171, T172, T119, front14_in_aa(T167, T170))
U32_ag(T116, T164, T167, T171, T172, T119, front14_out_aa(T167, T170)) → U33_ag(T116, T164, T167, T171, T172, T119, front14_in_aa(T171, X220))
U33_ag(T116, T164, T167, T171, T172, T119, front14_out_aa(T171, X220)) → front1_out_ag(tree(T116, tree(T164, T167, T171), T172), .(T119, []))
front1_in_ag(tree(T116, tree(T164, T167, T171), T175), .(T119, [])) → U34_ag(T116, T164, T167, T171, T175, T119, front14_in_aa(T167, T174))
U34_ag(T116, T164, T167, T171, T175, T119, front14_out_aa(T167, T174)) → U35_ag(T116, T164, T167, T171, T175, T119, T174, front14_in_aa(T171, T173))
U35_ag(T116, T164, T167, T171, T175, T119, T174, front14_out_aa(T171, T173)) → U36_ag(T116, T164, T167, T171, T175, T119, app32_in_aaa(T174, T173, X221))
U36_ag(T116, T164, T167, T171, T175, T119, app32_out_aaa(T174, T173, X221)) → front1_out_ag(tree(T116, tree(T164, T167, T171), T175), .(T119, []))
front1_in_ag(tree(T116, tree(T164, T167, T171), T179), .(T119, [])) → U37_ag(T116, T164, T167, T171, T179, T119, front14_in_aa(T167, T174))
U37_ag(T116, T164, T167, T171, T179, T119, front14_out_aa(T167, T174)) → U38_ag(T116, T164, T167, T171, T179, T119, T174, front14_in_aa(T171, T173))
U38_ag(T116, T164, T167, T171, T179, T119, T174, front14_out_aa(T171, T173)) → U39_ag(T116, T164, T167, T171, T179, T119, app32_in_aaa(T174, T173, T178))
U39_ag(T116, T164, T167, T171, T179, T119, app32_out_aaa(T174, T173, T178)) → U40_ag(T116, T164, T167, T171, T179, T119, front14_in_aa(T179, X155))
U40_ag(T116, T164, T167, T171, T179, T119, front14_out_aa(T179, X155)) → front1_out_ag(tree(T116, tree(T164, T167, T171), T179), .(T119, []))
front1_in_ag(tree(T116, tree(T164, T167, T171), T179), .(T197, [])) → U41_ag(T116, T164, T167, T171, T179, T197, front14_in_aa(T167, T174))
U41_ag(T116, T164, T167, T171, T179, T197, front14_out_aa(T167, T174)) → U42_ag(T116, T164, T167, T171, T179, T197, T174, front14_in_aa(T171, T173))
U42_ag(T116, T164, T167, T171, T179, T197, T174, front14_out_aa(T171, T173)) → U43_ag(T116, T164, T167, T171, T179, T197, app32_in_aag(T174, T173, []))
U43_ag(T116, T164, T167, T171, T179, T197, app32_out_aag(T174, T173, [])) → U44_ag(T116, T164, T167, T171, T179, T197, front14_in_ag(T179, .(T197, [])))
U44_ag(T116, T164, T167, T171, T179, T197, front14_out_ag(T179, .(T197, []))) → front1_out_ag(tree(T116, tree(T164, T167, T171), T179), .(T197, []))
front1_in_ag(tree(T116, tree(T164, T167, T171), T179), .(T204, [])) → U45_ag(T116, T164, T167, T171, T179, T204, front14_in_aa(T167, T174))
U45_ag(T116, T164, T167, T171, T179, T204, front14_out_aa(T167, T174)) → U46_ag(T116, T164, T167, T171, T179, T204, T174, front14_in_aa(T171, T173))
U46_ag(T116, T164, T167, T171, T179, T204, T174, front14_out_aa(T171, T173)) → U47_ag(T116, T164, T167, T171, T179, T204, app32_in_aaa(T174, T173, .(T204, T207)))
U47_ag(T116, T164, T167, T171, T179, T204, app32_out_aaa(T174, T173, .(T204, T207))) → U48_ag(T116, T164, T167, T171, T179, T204, T207, front14_in_aa(T179, T208))
U48_ag(T116, T164, T167, T171, T179, T204, T207, front14_out_aa(T179, T208)) → U49_ag(T116, T164, T167, T171, T179, T204, app66_in_aa(T207, T208))
U49_ag(T116, T164, T167, T171, T179, T204, app66_out_aa(T207, T208)) → front1_out_ag(tree(T116, tree(T164, T167, T171), T179), .(T204, []))
front1_in_ag(tree(T215, void, T221), T218) → U50_ag(T215, T221, T218, front14_in_aa(T221, X265))
U50_ag(T215, T221, T218, front14_out_aa(T221, X265)) → front1_out_ag(tree(T215, void, T221), T218)
front1_in_ag(tree(T215, void, T221), T231) → U51_ag(T215, T221, T231, front14_in_ag(T221, T231))
U51_ag(T215, T221, T231, front14_out_ag(T221, T231)) → front1_out_ag(tree(T215, void, T221), T231)
front1_in_ag(tree(T215, tree(T238, void, void), T237), T218) → U52_ag(T215, T238, T237, T218, front14_in_aa(T237, X265))
U52_ag(T215, T238, T237, T218, front14_out_aa(T237, X265)) → front1_out_ag(tree(T215, tree(T238, void, void), T237), T218)
front1_in_ag(tree(T215, tree(T252, void, void), T237), .(T252, T262)) → U53_ag(T215, T252, T237, T262, front14_in_ag(T237, T262))
U53_ag(T215, T252, T237, T262, front14_out_ag(T237, T262)) → front1_out_ag(tree(T215, tree(T252, void, void), T237), .(T252, T262))
front1_in_ag(tree(T215, tree(T269, T272, T273), T274), T218) → U54_ag(T215, T269, T272, T273, T274, T218, front14_in_aa(T272, X339))
U54_ag(T215, T269, T272, T273, T274, T218, front14_out_aa(T272, X339)) → front1_out_ag(tree(T215, tree(T269, T272, T273), T274), T218)
front1_in_ag(tree(T215, tree(T269, T272, T276), T277), T218) → U55_ag(T215, T269, T272, T276, T277, T218, front14_in_aa(T272, T275))
U55_ag(T215, T269, T272, T276, T277, T218, front14_out_aa(T272, T275)) → U56_ag(T215, T269, T272, T276, T277, T218, front14_in_aa(T276, X340))
U56_ag(T215, T269, T272, T276, T277, T218, front14_out_aa(T276, X340)) → front1_out_ag(tree(T215, tree(T269, T272, T276), T277), T218)
front1_in_ag(tree(T215, tree(T269, T272, T276), T282), T218) → U57_ag(T215, T269, T272, T276, T282, T218, front14_in_aa(T272, T281))
U57_ag(T215, T269, T272, T276, T282, T218, front14_out_aa(T272, T281)) → U58_ag(T215, T269, T272, T276, T282, T218, T281, front14_in_aa(T276, T280))
U58_ag(T215, T269, T272, T276, T282, T218, T281, front14_out_aa(T276, T280)) → U59_ag(T215, T269, T272, T276, T282, T218, app32_in_aaa(T281, T280, X341))
U59_ag(T215, T269, T272, T276, T282, T218, app32_out_aaa(T281, T280, X341)) → front1_out_ag(tree(T215, tree(T269, T272, T276), T282), T218)
front1_in_ag(tree(T215, tree(T269, T272, T276), T288), T218) → U60_ag(T215, T269, T272, T276, T288, T218, front14_in_aa(T272, T281))
U60_ag(T215, T269, T272, T276, T288, T218, front14_out_aa(T272, T281)) → U61_ag(T215, T269, T272, T276, T288, T218, T281, front14_in_aa(T276, T280))
U61_ag(T215, T269, T272, T276, T288, T218, T281, front14_out_aa(T276, T280)) → U62_ag(T215, T269, T272, T276, T288, T218, app32_in_aaa(T281, T280, T287))
U62_ag(T215, T269, T272, T276, T288, T218, app32_out_aaa(T281, T280, T287)) → U63_ag(T215, T269, T272, T276, T288, T218, front14_in_aa(T288, X265))
U63_ag(T215, T269, T272, T276, T288, T218, front14_out_aa(T288, X265)) → front1_out_ag(tree(T215, tree(T269, T272, T276), T288), T218)
front1_in_ag(tree(T215, tree(T269, T272, T276), T288), T303) → U64_ag(T215, T269, T272, T276, T288, T303, front14_in_aa(T272, T281))
U64_ag(T215, T269, T272, T276, T288, T303, front14_out_aa(T272, T281)) → U65_ag(T215, T269, T272, T276, T288, T303, T281, front14_in_aa(T276, T280))
U65_ag(T215, T269, T272, T276, T288, T303, T281, front14_out_aa(T276, T280)) → U66_ag(T215, T269, T272, T276, T288, T303, app32_in_aag(T281, T280, []))
U66_ag(T215, T269, T272, T276, T288, T303, app32_out_aag(T281, T280, [])) → U67_ag(T215, T269, T272, T276, T288, T303, front14_in_ag(T288, T303))
U67_ag(T215, T269, T272, T276, T288, T303, front14_out_ag(T288, T303)) → front1_out_ag(tree(T215, tree(T269, T272, T276), T288), T303)
front1_in_ag(tree(T215, tree(T269, T272, T276), T288), .(T312, T324)) → U68_ag(T215, T269, T272, T276, T288, T312, T324, front14_in_aa(T272, T281))
U68_ag(T215, T269, T272, T276, T288, T312, T324, front14_out_aa(T272, T281)) → U69_ag(T215, T269, T272, T276, T288, T312, T324, T281, front14_in_aa(T276, T280))
U69_ag(T215, T269, T272, T276, T288, T312, T324, T281, front14_out_aa(T276, T280)) → U70_ag(T215, T269, T272, T276, T288, T312, T324, app32_in_aag(T281, T280, .(T312, [])))
U70_ag(T215, T269, T272, T276, T288, T312, T324, app32_out_aag(T281, T280, .(T312, []))) → U71_ag(T215, T269, T272, T276, T288, T312, T324, front14_in_ag(T288, T324))
U71_ag(T215, T269, T272, T276, T288, T312, T324, front14_out_ag(T288, T324)) → front1_out_ag(tree(T215, tree(T269, T272, T276), T288), .(T312, T324))
front1_in_ag(tree(T215, tree(T269, T272, T276), T288), .(T312, .(T333, T336))) → U72_ag(T215, T269, T272, T276, T288, T312, T333, T336, front14_in_aa(T272, T281))
U72_ag(T215, T269, T272, T276, T288, T312, T333, T336, front14_out_aa(T272, T281)) → U73_ag(T215, T269, T272, T276, T288, T312, T333, T336, T281, front14_in_aa(T276, T280))
U73_ag(T215, T269, T272, T276, T288, T312, T333, T336, T281, front14_out_aa(T276, T280)) → U74_ag(T215, T269, T272, T276, T288, T312, T333, T336, app32_in_aaa(T281, T280, .(T312, .(T333, T337))))
U74_ag(T215, T269, T272, T276, T288, T312, T333, T336, app32_out_aaa(T281, T280, .(T312, .(T333, T337)))) → U75_ag(T215, T269, T272, T276, T288, T312, T333, T336, T337, front14_in_aa(T288, T338))
U75_ag(T215, T269, T272, T276, T288, T312, T333, T336, T337, front14_out_aa(T288, T338)) → U76_ag(T215, T269, T272, T276, T288, T312, T333, T336, app178_in_aag(T337, T338, T336))
app178_in_aag([], T345, T345) → app178_out_aag([], T345, T345)
app178_in_aag(.(T354, T358), T359, .(T354, T357)) → U8_aag(T354, T358, T359, T357, app178_in_aag(T358, T359, T357))
U8_aag(T354, T358, T359, T357, app178_out_aag(T358, T359, T357)) → app178_out_aag(.(T354, T358), T359, .(T354, T357))
U76_ag(T215, T269, T272, T276, T288, T312, T333, T336, app178_out_aag(T337, T338, T336)) → front1_out_ag(tree(T215, tree(T269, T272, T276), T288), .(T312, .(T333, T336)))
APP32_IN_AAG(.(T47, T50), T51, .(T47, X68)) → APP32_IN_AAG(T50, T51, X68)
APP32_IN_AAG(.(X68)) → APP32_IN_AAG(X68)
From the DPs we obtained the following set of size-change graphs:
APP32_IN_AAA(.(T47, T50), T51, .(T47, X68)) → APP32_IN_AAA(T50, T51, X68)
front1_in_ag(void, []) → front1_out_ag(void, [])
front1_in_ag(tree(T7, void, T12), []) → U9_ag(T7, T12, front14_in_aa(T12, X12))
front14_in_aa(void, []) → front14_out_aa(void, [])
front14_in_aa(tree(T18, void, void), .(T18, [])) → front14_out_aa(tree(T18, void, void), .(T18, []))
front14_in_aa(tree(T25, T28, T29), X41) → U1_aa(T25, T28, T29, X41, front14_in_aa(T28, X39))
front14_in_aa(tree(T25, T28, T31), X41) → U2_aa(T25, T28, T31, X41, front14_in_aa(T28, T30))
front14_in_aa(tree(T25, T28, T31), X41) → U4_aa(T25, T28, T31, X41, front14_in_aa(T28, T33))
U4_aa(T25, T28, T31, X41, front14_out_aa(T28, T33)) → U5_aa(T25, T28, T31, X41, T33, front14_in_aa(T31, T32))
U5_aa(T25, T28, T31, X41, T33, front14_out_aa(T31, T32)) → U6_aa(T25, T28, T31, X41, app32_in_aaa(T33, T32, X41))
app32_in_aaa([], T40, T40) → app32_out_aaa([], T40, T40)
app32_in_aaa(.(T47, T50), T51, .(T47, X68)) → U7_aaa(T47, T50, T51, X68, app32_in_aaa(T50, T51, X68))
U7_aaa(T47, T50, T51, X68, app32_out_aaa(T50, T51, X68)) → app32_out_aaa(.(T47, T50), T51, .(T47, X68))
U6_aa(T25, T28, T31, X41, app32_out_aaa(T33, T32, X41)) → front14_out_aa(tree(T25, T28, T31), X41)
U2_aa(T25, T28, T31, X41, front14_out_aa(T28, T30)) → U3_aa(T25, T28, T31, X41, front14_in_aa(T31, X40))
U3_aa(T25, T28, T31, X41, front14_out_aa(T31, X40)) → front14_out_aa(tree(T25, T28, T31), X41)
U1_aa(T25, T28, T29, X41, front14_out_aa(T28, X39)) → front14_out_aa(tree(T25, T28, T29), X41)
U9_ag(T7, T12, front14_out_aa(T12, X12)) → front1_out_ag(tree(T7, void, T12), [])
front1_in_ag(tree(T7, void, T12), []) → U10_ag(T7, T12, front14_in_aa(T12, T13))
U10_ag(T7, T12, front14_out_aa(T12, T13)) → U11_ag(T7, T12, app15_in_a(T13))
app15_in_a([]) → app15_out_a([])
U11_ag(T7, T12, app15_out_a(T13)) → front1_out_ag(tree(T7, void, T12), [])
front1_in_ag(tree(T7, tree(T67, void, void), T66), []) → U12_ag(T7, T67, T66, front14_in_aa(T66, X12))
U12_ag(T7, T67, T66, front14_out_aa(T66, X12)) → front1_out_ag(tree(T7, tree(T67, void, void), T66), [])
front1_in_ag(tree(T7, tree(T80, T83, T84), T85), []) → U13_ag(T7, T80, T83, T84, T85, front14_in_aa(T83, X120))
U13_ag(T7, T80, T83, T84, T85, front14_out_aa(T83, X120)) → front1_out_ag(tree(T7, tree(T80, T83, T84), T85), [])
front1_in_ag(tree(T7, tree(T80, T83, T87), T88), []) → U14_ag(T7, T80, T83, T87, T88, front14_in_aa(T83, T86))
U14_ag(T7, T80, T83, T87, T88, front14_out_aa(T83, T86)) → U15_ag(T7, T80, T83, T87, T88, front14_in_aa(T87, X121))
U15_ag(T7, T80, T83, T87, T88, front14_out_aa(T87, X121)) → front1_out_ag(tree(T7, tree(T80, T83, T87), T88), [])
front1_in_ag(tree(T7, tree(T80, T83, T87), T91), []) → U16_ag(T7, T80, T83, T87, T91, front14_in_aa(T83, T90))
U16_ag(T7, T80, T83, T87, T91, front14_out_aa(T83, T90)) → U17_ag(T7, T80, T83, T87, T91, T90, front14_in_aa(T87, T89))
U17_ag(T7, T80, T83, T87, T91, T90, front14_out_aa(T87, T89)) → U18_ag(T7, T80, T83, T87, T91, app32_in_aaa(T90, T89, X122))
U18_ag(T7, T80, T83, T87, T91, app32_out_aaa(T90, T89, X122)) → front1_out_ag(tree(T7, tree(T80, T83, T87), T91), [])
front1_in_ag(tree(T7, tree(T80, T83, T87), T95), []) → U19_ag(T7, T80, T83, T87, T95, front14_in_aa(T83, T90))
U19_ag(T7, T80, T83, T87, T95, front14_out_aa(T83, T90)) → U20_ag(T7, T80, T83, T87, T95, T90, front14_in_aa(T87, T89))
U20_ag(T7, T80, T83, T87, T95, T90, front14_out_aa(T87, T89)) → U21_ag(T7, T80, T83, T87, T95, app32_in_aaa(T90, T89, T94))
U21_ag(T7, T80, T83, T87, T95, app32_out_aaa(T90, T89, T94)) → U22_ag(T7, T80, T83, T87, T95, front14_in_aa(T95, X12))
U22_ag(T7, T80, T83, T87, T95, front14_out_aa(T95, X12)) → front1_out_ag(tree(T7, tree(T80, T83, T87), T95), [])
U20_ag(T7, T80, T83, T87, T95, T90, front14_out_aa(T87, T89)) → U23_ag(T7, T80, T83, T87, T95, app32_in_aaa(T90, T89, T99))
U23_ag(T7, T80, T83, T87, T95, app32_out_aaa(T90, T89, T99)) → U24_ag(T7, T80, T83, T87, T95, T99, front14_in_aa(T95, T98))
U24_ag(T7, T80, T83, T87, T95, T99, front14_out_aa(T95, T98)) → U25_ag(T7, T80, T83, T87, T95, app66_in_aa(T99, T98))
app66_in_aa([], []) → app66_out_aa([], [])
U25_ag(T7, T80, T83, T87, T95, app66_out_aa(T99, T98)) → front1_out_ag(tree(T7, tree(T80, T83, T87), T95), [])
front1_in_ag(tree(T111, void, void), .(T111, [])) → front1_out_ag(tree(T111, void, void), .(T111, []))
front1_in_ag(tree(T116, void, T122), .(T119, [])) → U26_ag(T116, T122, T119, front14_in_aa(T122, X155))
U26_ag(T116, T122, T119, front14_out_aa(T122, X155)) → front1_out_ag(tree(T116, void, T122), .(T119, []))
front1_in_ag(tree(T116, void, T122), .(T137, [])) → U27_ag(T116, T122, T137, front14_in_ag(T122, .(T137, [])))
front14_in_ag(void, []) → front14_out_ag(void, [])
front14_in_ag(tree(T18, void, void), .(T18, [])) → front14_out_ag(tree(T18, void, void), .(T18, []))
front14_in_ag(tree(T25, T28, T29), X41) → U1_ag(T25, T28, T29, X41, front14_in_aa(T28, X39))
U1_ag(T25, T28, T29, X41, front14_out_aa(T28, X39)) → front14_out_ag(tree(T25, T28, T29), X41)
front14_in_ag(tree(T25, T28, T31), X41) → U2_ag(T25, T28, T31, X41, front14_in_aa(T28, T30))
U2_ag(T25, T28, T31, X41, front14_out_aa(T28, T30)) → U3_ag(T25, T28, T31, X41, front14_in_aa(T31, X40))
U3_ag(T25, T28, T31, X41, front14_out_aa(T31, X40)) → front14_out_ag(tree(T25, T28, T31), X41)
front14_in_ag(tree(T25, T28, T31), X41) → U4_ag(T25, T28, T31, X41, front14_in_aa(T28, T33))
U4_ag(T25, T28, T31, X41, front14_out_aa(T28, T33)) → U5_ag(T25, T28, T31, X41, T33, front14_in_aa(T31, T32))
U5_ag(T25, T28, T31, X41, T33, front14_out_aa(T31, T32)) → U6_ag(T25, T28, T31, X41, app32_in_aag(T33, T32, X41))
app32_in_aag([], T40, T40) → app32_out_aag([], T40, T40)
app32_in_aag(.(T47, T50), T51, .(T47, X68)) → U7_aag(T47, T50, T51, X68, app32_in_aag(T50, T51, X68))
U7_aag(T47, T50, T51, X68, app32_out_aag(T50, T51, X68)) → app32_out_aag(.(T47, T50), T51, .(T47, X68))
U6_ag(T25, T28, T31, X41, app32_out_aag(T33, T32, X41)) → front14_out_ag(tree(T25, T28, T31), X41)
U27_ag(T116, T122, T137, front14_out_ag(T122, .(T137, []))) → front1_out_ag(tree(T116, void, T122), .(T137, []))
front1_in_ag(tree(T116, tree(T144, void, void), T143), .(T119, [])) → U28_ag(T116, T144, T143, T119, front14_in_aa(T143, X155))
U28_ag(T116, T144, T143, T119, front14_out_aa(T143, X155)) → front1_out_ag(tree(T116, tree(T144, void, void), T143), .(T119, []))
front1_in_ag(tree(T116, tree(T153, void, void), T143), .(T153, [])) → U29_ag(T116, T153, T143, front14_in_aa(T143, T155))
U29_ag(T116, T153, T143, front14_out_aa(T143, T155)) → U30_ag(T116, T153, T143, app15_in_a(T155))
U30_ag(T116, T153, T143, app15_out_a(T155)) → front1_out_ag(tree(T116, tree(T153, void, void), T143), .(T153, []))
front1_in_ag(tree(T116, tree(T164, T167, T168), T169), .(T119, [])) → U31_ag(T116, T164, T167, T168, T169, T119, front14_in_aa(T167, X219))
U31_ag(T116, T164, T167, T168, T169, T119, front14_out_aa(T167, X219)) → front1_out_ag(tree(T116, tree(T164, T167, T168), T169), .(T119, []))
front1_in_ag(tree(T116, tree(T164, T167, T171), T172), .(T119, [])) → U32_ag(T116, T164, T167, T171, T172, T119, front14_in_aa(T167, T170))
U32_ag(T116, T164, T167, T171, T172, T119, front14_out_aa(T167, T170)) → U33_ag(T116, T164, T167, T171, T172, T119, front14_in_aa(T171, X220))
U33_ag(T116, T164, T167, T171, T172, T119, front14_out_aa(T171, X220)) → front1_out_ag(tree(T116, tree(T164, T167, T171), T172), .(T119, []))
front1_in_ag(tree(T116, tree(T164, T167, T171), T175), .(T119, [])) → U34_ag(T116, T164, T167, T171, T175, T119, front14_in_aa(T167, T174))
U34_ag(T116, T164, T167, T171, T175, T119, front14_out_aa(T167, T174)) → U35_ag(T116, T164, T167, T171, T175, T119, T174, front14_in_aa(T171, T173))
U35_ag(T116, T164, T167, T171, T175, T119, T174, front14_out_aa(T171, T173)) → U36_ag(T116, T164, T167, T171, T175, T119, app32_in_aaa(T174, T173, X221))
U36_ag(T116, T164, T167, T171, T175, T119, app32_out_aaa(T174, T173, X221)) → front1_out_ag(tree(T116, tree(T164, T167, T171), T175), .(T119, []))
front1_in_ag(tree(T116, tree(T164, T167, T171), T179), .(T119, [])) → U37_ag(T116, T164, T167, T171, T179, T119, front14_in_aa(T167, T174))
U37_ag(T116, T164, T167, T171, T179, T119, front14_out_aa(T167, T174)) → U38_ag(T116, T164, T167, T171, T179, T119, T174, front14_in_aa(T171, T173))
U38_ag(T116, T164, T167, T171, T179, T119, T174, front14_out_aa(T171, T173)) → U39_ag(T116, T164, T167, T171, T179, T119, app32_in_aaa(T174, T173, T178))
U39_ag(T116, T164, T167, T171, T179, T119, app32_out_aaa(T174, T173, T178)) → U40_ag(T116, T164, T167, T171, T179, T119, front14_in_aa(T179, X155))
U40_ag(T116, T164, T167, T171, T179, T119, front14_out_aa(T179, X155)) → front1_out_ag(tree(T116, tree(T164, T167, T171), T179), .(T119, []))
front1_in_ag(tree(T116, tree(T164, T167, T171), T179), .(T197, [])) → U41_ag(T116, T164, T167, T171, T179, T197, front14_in_aa(T167, T174))
U41_ag(T116, T164, T167, T171, T179, T197, front14_out_aa(T167, T174)) → U42_ag(T116, T164, T167, T171, T179, T197, T174, front14_in_aa(T171, T173))
U42_ag(T116, T164, T167, T171, T179, T197, T174, front14_out_aa(T171, T173)) → U43_ag(T116, T164, T167, T171, T179, T197, app32_in_aag(T174, T173, []))
U43_ag(T116, T164, T167, T171, T179, T197, app32_out_aag(T174, T173, [])) → U44_ag(T116, T164, T167, T171, T179, T197, front14_in_ag(T179, .(T197, [])))
U44_ag(T116, T164, T167, T171, T179, T197, front14_out_ag(T179, .(T197, []))) → front1_out_ag(tree(T116, tree(T164, T167, T171), T179), .(T197, []))
front1_in_ag(tree(T116, tree(T164, T167, T171), T179), .(T204, [])) → U45_ag(T116, T164, T167, T171, T179, T204, front14_in_aa(T167, T174))
U45_ag(T116, T164, T167, T171, T179, T204, front14_out_aa(T167, T174)) → U46_ag(T116, T164, T167, T171, T179, T204, T174, front14_in_aa(T171, T173))
U46_ag(T116, T164, T167, T171, T179, T204, T174, front14_out_aa(T171, T173)) → U47_ag(T116, T164, T167, T171, T179, T204, app32_in_aaa(T174, T173, .(T204, T207)))
U47_ag(T116, T164, T167, T171, T179, T204, app32_out_aaa(T174, T173, .(T204, T207))) → U48_ag(T116, T164, T167, T171, T179, T204, T207, front14_in_aa(T179, T208))
U48_ag(T116, T164, T167, T171, T179, T204, T207, front14_out_aa(T179, T208)) → U49_ag(T116, T164, T167, T171, T179, T204, app66_in_aa(T207, T208))
U49_ag(T116, T164, T167, T171, T179, T204, app66_out_aa(T207, T208)) → front1_out_ag(tree(T116, tree(T164, T167, T171), T179), .(T204, []))
front1_in_ag(tree(T215, void, T221), T218) → U50_ag(T215, T221, T218, front14_in_aa(T221, X265))
U50_ag(T215, T221, T218, front14_out_aa(T221, X265)) → front1_out_ag(tree(T215, void, T221), T218)
front1_in_ag(tree(T215, void, T221), T231) → U51_ag(T215, T221, T231, front14_in_ag(T221, T231))
U51_ag(T215, T221, T231, front14_out_ag(T221, T231)) → front1_out_ag(tree(T215, void, T221), T231)
front1_in_ag(tree(T215, tree(T238, void, void), T237), T218) → U52_ag(T215, T238, T237, T218, front14_in_aa(T237, X265))
U52_ag(T215, T238, T237, T218, front14_out_aa(T237, X265)) → front1_out_ag(tree(T215, tree(T238, void, void), T237), T218)
front1_in_ag(tree(T215, tree(T252, void, void), T237), .(T252, T262)) → U53_ag(T215, T252, T237, T262, front14_in_ag(T237, T262))
U53_ag(T215, T252, T237, T262, front14_out_ag(T237, T262)) → front1_out_ag(tree(T215, tree(T252, void, void), T237), .(T252, T262))
front1_in_ag(tree(T215, tree(T269, T272, T273), T274), T218) → U54_ag(T215, T269, T272, T273, T274, T218, front14_in_aa(T272, X339))
U54_ag(T215, T269, T272, T273, T274, T218, front14_out_aa(T272, X339)) → front1_out_ag(tree(T215, tree(T269, T272, T273), T274), T218)
front1_in_ag(tree(T215, tree(T269, T272, T276), T277), T218) → U55_ag(T215, T269, T272, T276, T277, T218, front14_in_aa(T272, T275))
U55_ag(T215, T269, T272, T276, T277, T218, front14_out_aa(T272, T275)) → U56_ag(T215, T269, T272, T276, T277, T218, front14_in_aa(T276, X340))
U56_ag(T215, T269, T272, T276, T277, T218, front14_out_aa(T276, X340)) → front1_out_ag(tree(T215, tree(T269, T272, T276), T277), T218)
front1_in_ag(tree(T215, tree(T269, T272, T276), T282), T218) → U57_ag(T215, T269, T272, T276, T282, T218, front14_in_aa(T272, T281))
U57_ag(T215, T269, T272, T276, T282, T218, front14_out_aa(T272, T281)) → U58_ag(T215, T269, T272, T276, T282, T218, T281, front14_in_aa(T276, T280))
U58_ag(T215, T269, T272, T276, T282, T218, T281, front14_out_aa(T276, T280)) → U59_ag(T215, T269, T272, T276, T282, T218, app32_in_aaa(T281, T280, X341))
U59_ag(T215, T269, T272, T276, T282, T218, app32_out_aaa(T281, T280, X341)) → front1_out_ag(tree(T215, tree(T269, T272, T276), T282), T218)
front1_in_ag(tree(T215, tree(T269, T272, T276), T288), T218) → U60_ag(T215, T269, T272, T276, T288, T218, front14_in_aa(T272, T281))
U60_ag(T215, T269, T272, T276, T288, T218, front14_out_aa(T272, T281)) → U61_ag(T215, T269, T272, T276, T288, T218, T281, front14_in_aa(T276, T280))
U61_ag(T215, T269, T272, T276, T288, T218, T281, front14_out_aa(T276, T280)) → U62_ag(T215, T269, T272, T276, T288, T218, app32_in_aaa(T281, T280, T287))
U62_ag(T215, T269, T272, T276, T288, T218, app32_out_aaa(T281, T280, T287)) → U63_ag(T215, T269, T272, T276, T288, T218, front14_in_aa(T288, X265))
U63_ag(T215, T269, T272, T276, T288, T218, front14_out_aa(T288, X265)) → front1_out_ag(tree(T215, tree(T269, T272, T276), T288), T218)
front1_in_ag(tree(T215, tree(T269, T272, T276), T288), T303) → U64_ag(T215, T269, T272, T276, T288, T303, front14_in_aa(T272, T281))
U64_ag(T215, T269, T272, T276, T288, T303, front14_out_aa(T272, T281)) → U65_ag(T215, T269, T272, T276, T288, T303, T281, front14_in_aa(T276, T280))
U65_ag(T215, T269, T272, T276, T288, T303, T281, front14_out_aa(T276, T280)) → U66_ag(T215, T269, T272, T276, T288, T303, app32_in_aag(T281, T280, []))
U66_ag(T215, T269, T272, T276, T288, T303, app32_out_aag(T281, T280, [])) → U67_ag(T215, T269, T272, T276, T288, T303, front14_in_ag(T288, T303))
U67_ag(T215, T269, T272, T276, T288, T303, front14_out_ag(T288, T303)) → front1_out_ag(tree(T215, tree(T269, T272, T276), T288), T303)
front1_in_ag(tree(T215, tree(T269, T272, T276), T288), .(T312, T324)) → U68_ag(T215, T269, T272, T276, T288, T312, T324, front14_in_aa(T272, T281))
U68_ag(T215, T269, T272, T276, T288, T312, T324, front14_out_aa(T272, T281)) → U69_ag(T215, T269, T272, T276, T288, T312, T324, T281, front14_in_aa(T276, T280))
U69_ag(T215, T269, T272, T276, T288, T312, T324, T281, front14_out_aa(T276, T280)) → U70_ag(T215, T269, T272, T276, T288, T312, T324, app32_in_aag(T281, T280, .(T312, [])))
U70_ag(T215, T269, T272, T276, T288, T312, T324, app32_out_aag(T281, T280, .(T312, []))) → U71_ag(T215, T269, T272, T276, T288, T312, T324, front14_in_ag(T288, T324))
U71_ag(T215, T269, T272, T276, T288, T312, T324, front14_out_ag(T288, T324)) → front1_out_ag(tree(T215, tree(T269, T272, T276), T288), .(T312, T324))
front1_in_ag(tree(T215, tree(T269, T272, T276), T288), .(T312, .(T333, T336))) → U72_ag(T215, T269, T272, T276, T288, T312, T333, T336, front14_in_aa(T272, T281))
U72_ag(T215, T269, T272, T276, T288, T312, T333, T336, front14_out_aa(T272, T281)) → U73_ag(T215, T269, T272, T276, T288, T312, T333, T336, T281, front14_in_aa(T276, T280))
U73_ag(T215, T269, T272, T276, T288, T312, T333, T336, T281, front14_out_aa(T276, T280)) → U74_ag(T215, T269, T272, T276, T288, T312, T333, T336, app32_in_aaa(T281, T280, .(T312, .(T333, T337))))
U74_ag(T215, T269, T272, T276, T288, T312, T333, T336, app32_out_aaa(T281, T280, .(T312, .(T333, T337)))) → U75_ag(T215, T269, T272, T276, T288, T312, T333, T336, T337, front14_in_aa(T288, T338))
U75_ag(T215, T269, T272, T276, T288, T312, T333, T336, T337, front14_out_aa(T288, T338)) → U76_ag(T215, T269, T272, T276, T288, T312, T333, T336, app178_in_aag(T337, T338, T336))
app178_in_aag([], T345, T345) → app178_out_aag([], T345, T345)
app178_in_aag(.(T354, T358), T359, .(T354, T357)) → U8_aag(T354, T358, T359, T357, app178_in_aag(T358, T359, T357))
U8_aag(T354, T358, T359, T357, app178_out_aag(T358, T359, T357)) → app178_out_aag(.(T354, T358), T359, .(T354, T357))
U76_ag(T215, T269, T272, T276, T288, T312, T333, T336, app178_out_aag(T337, T338, T336)) → front1_out_ag(tree(T215, tree(T269, T272, T276), T288), .(T312, .(T333, T336)))
APP32_IN_AAA(.(T47, T50), T51, .(T47, X68)) → APP32_IN_AAA(T50, T51, X68)
APP32_IN_AAA → APP32_IN_AAA
FRONT14_IN_AA(tree(T25, T28, T31), X41) → U2_AA(T25, T28, T31, X41, front14_in_aa(T28, T30))
U2_AA(T25, T28, T31, X41, front14_out_aa(T28, T30)) → FRONT14_IN_AA(T31, X40)
FRONT14_IN_AA(tree(T25, T28, T29), X41) → FRONT14_IN_AA(T28, X39)
FRONT14_IN_AA(tree(T25, T28, T31), X41) → U4_AA(T25, T28, T31, X41, front14_in_aa(T28, T33))
U4_AA(T25, T28, T31, X41, front14_out_aa(T28, T33)) → FRONT14_IN_AA(T31, T32)
front1_in_ag(void, []) → front1_out_ag(void, [])
front1_in_ag(tree(T7, void, T12), []) → U9_ag(T7, T12, front14_in_aa(T12, X12))
front14_in_aa(void, []) → front14_out_aa(void, [])
front14_in_aa(tree(T18, void, void), .(T18, [])) → front14_out_aa(tree(T18, void, void), .(T18, []))
front14_in_aa(tree(T25, T28, T29), X41) → U1_aa(T25, T28, T29, X41, front14_in_aa(T28, X39))
front14_in_aa(tree(T25, T28, T31), X41) → U2_aa(T25, T28, T31, X41, front14_in_aa(T28, T30))
front14_in_aa(tree(T25, T28, T31), X41) → U4_aa(T25, T28, T31, X41, front14_in_aa(T28, T33))
U4_aa(T25, T28, T31, X41, front14_out_aa(T28, T33)) → U5_aa(T25, T28, T31, X41, T33, front14_in_aa(T31, T32))
U5_aa(T25, T28, T31, X41, T33, front14_out_aa(T31, T32)) → U6_aa(T25, T28, T31, X41, app32_in_aaa(T33, T32, X41))
app32_in_aaa([], T40, T40) → app32_out_aaa([], T40, T40)
app32_in_aaa(.(T47, T50), T51, .(T47, X68)) → U7_aaa(T47, T50, T51, X68, app32_in_aaa(T50, T51, X68))
U7_aaa(T47, T50, T51, X68, app32_out_aaa(T50, T51, X68)) → app32_out_aaa(.(T47, T50), T51, .(T47, X68))
U6_aa(T25, T28, T31, X41, app32_out_aaa(T33, T32, X41)) → front14_out_aa(tree(T25, T28, T31), X41)
U2_aa(T25, T28, T31, X41, front14_out_aa(T28, T30)) → U3_aa(T25, T28, T31, X41, front14_in_aa(T31, X40))
U3_aa(T25, T28, T31, X41, front14_out_aa(T31, X40)) → front14_out_aa(tree(T25, T28, T31), X41)
U1_aa(T25, T28, T29, X41, front14_out_aa(T28, X39)) → front14_out_aa(tree(T25, T28, T29), X41)
U9_ag(T7, T12, front14_out_aa(T12, X12)) → front1_out_ag(tree(T7, void, T12), [])
front1_in_ag(tree(T7, void, T12), []) → U10_ag(T7, T12, front14_in_aa(T12, T13))
U10_ag(T7, T12, front14_out_aa(T12, T13)) → U11_ag(T7, T12, app15_in_a(T13))
app15_in_a([]) → app15_out_a([])
U11_ag(T7, T12, app15_out_a(T13)) → front1_out_ag(tree(T7, void, T12), [])
front1_in_ag(tree(T7, tree(T67, void, void), T66), []) → U12_ag(T7, T67, T66, front14_in_aa(T66, X12))
U12_ag(T7, T67, T66, front14_out_aa(T66, X12)) → front1_out_ag(tree(T7, tree(T67, void, void), T66), [])
front1_in_ag(tree(T7, tree(T80, T83, T84), T85), []) → U13_ag(T7, T80, T83, T84, T85, front14_in_aa(T83, X120))
U13_ag(T7, T80, T83, T84, T85, front14_out_aa(T83, X120)) → front1_out_ag(tree(T7, tree(T80, T83, T84), T85), [])
front1_in_ag(tree(T7, tree(T80, T83, T87), T88), []) → U14_ag(T7, T80, T83, T87, T88, front14_in_aa(T83, T86))
U14_ag(T7, T80, T83, T87, T88, front14_out_aa(T83, T86)) → U15_ag(T7, T80, T83, T87, T88, front14_in_aa(T87, X121))
U15_ag(T7, T80, T83, T87, T88, front14_out_aa(T87, X121)) → front1_out_ag(tree(T7, tree(T80, T83, T87), T88), [])
front1_in_ag(tree(T7, tree(T80, T83, T87), T91), []) → U16_ag(T7, T80, T83, T87, T91, front14_in_aa(T83, T90))
U16_ag(T7, T80, T83, T87, T91, front14_out_aa(T83, T90)) → U17_ag(T7, T80, T83, T87, T91, T90, front14_in_aa(T87, T89))
U17_ag(T7, T80, T83, T87, T91, T90, front14_out_aa(T87, T89)) → U18_ag(T7, T80, T83, T87, T91, app32_in_aaa(T90, T89, X122))
U18_ag(T7, T80, T83, T87, T91, app32_out_aaa(T90, T89, X122)) → front1_out_ag(tree(T7, tree(T80, T83, T87), T91), [])
front1_in_ag(tree(T7, tree(T80, T83, T87), T95), []) → U19_ag(T7, T80, T83, T87, T95, front14_in_aa(T83, T90))
U19_ag(T7, T80, T83, T87, T95, front14_out_aa(T83, T90)) → U20_ag(T7, T80, T83, T87, T95, T90, front14_in_aa(T87, T89))
U20_ag(T7, T80, T83, T87, T95, T90, front14_out_aa(T87, T89)) → U21_ag(T7, T80, T83, T87, T95, app32_in_aaa(T90, T89, T94))
U21_ag(T7, T80, T83, T87, T95, app32_out_aaa(T90, T89, T94)) → U22_ag(T7, T80, T83, T87, T95, front14_in_aa(T95, X12))
U22_ag(T7, T80, T83, T87, T95, front14_out_aa(T95, X12)) → front1_out_ag(tree(T7, tree(T80, T83, T87), T95), [])
U20_ag(T7, T80, T83, T87, T95, T90, front14_out_aa(T87, T89)) → U23_ag(T7, T80, T83, T87, T95, app32_in_aaa(T90, T89, T99))
U23_ag(T7, T80, T83, T87, T95, app32_out_aaa(T90, T89, T99)) → U24_ag(T7, T80, T83, T87, T95, T99, front14_in_aa(T95, T98))
U24_ag(T7, T80, T83, T87, T95, T99, front14_out_aa(T95, T98)) → U25_ag(T7, T80, T83, T87, T95, app66_in_aa(T99, T98))
app66_in_aa([], []) → app66_out_aa([], [])
U25_ag(T7, T80, T83, T87, T95, app66_out_aa(T99, T98)) → front1_out_ag(tree(T7, tree(T80, T83, T87), T95), [])
front1_in_ag(tree(T111, void, void), .(T111, [])) → front1_out_ag(tree(T111, void, void), .(T111, []))
front1_in_ag(tree(T116, void, T122), .(T119, [])) → U26_ag(T116, T122, T119, front14_in_aa(T122, X155))
U26_ag(T116, T122, T119, front14_out_aa(T122, X155)) → front1_out_ag(tree(T116, void, T122), .(T119, []))
front1_in_ag(tree(T116, void, T122), .(T137, [])) → U27_ag(T116, T122, T137, front14_in_ag(T122, .(T137, [])))
front14_in_ag(void, []) → front14_out_ag(void, [])
front14_in_ag(tree(T18, void, void), .(T18, [])) → front14_out_ag(tree(T18, void, void), .(T18, []))
front14_in_ag(tree(T25, T28, T29), X41) → U1_ag(T25, T28, T29, X41, front14_in_aa(T28, X39))
U1_ag(T25, T28, T29, X41, front14_out_aa(T28, X39)) → front14_out_ag(tree(T25, T28, T29), X41)
front14_in_ag(tree(T25, T28, T31), X41) → U2_ag(T25, T28, T31, X41, front14_in_aa(T28, T30))
U2_ag(T25, T28, T31, X41, front14_out_aa(T28, T30)) → U3_ag(T25, T28, T31, X41, front14_in_aa(T31, X40))
U3_ag(T25, T28, T31, X41, front14_out_aa(T31, X40)) → front14_out_ag(tree(T25, T28, T31), X41)
front14_in_ag(tree(T25, T28, T31), X41) → U4_ag(T25, T28, T31, X41, front14_in_aa(T28, T33))
U4_ag(T25, T28, T31, X41, front14_out_aa(T28, T33)) → U5_ag(T25, T28, T31, X41, T33, front14_in_aa(T31, T32))
U5_ag(T25, T28, T31, X41, T33, front14_out_aa(T31, T32)) → U6_ag(T25, T28, T31, X41, app32_in_aag(T33, T32, X41))
app32_in_aag([], T40, T40) → app32_out_aag([], T40, T40)
app32_in_aag(.(T47, T50), T51, .(T47, X68)) → U7_aag(T47, T50, T51, X68, app32_in_aag(T50, T51, X68))
U7_aag(T47, T50, T51, X68, app32_out_aag(T50, T51, X68)) → app32_out_aag(.(T47, T50), T51, .(T47, X68))
U6_ag(T25, T28, T31, X41, app32_out_aag(T33, T32, X41)) → front14_out_ag(tree(T25, T28, T31), X41)
U27_ag(T116, T122, T137, front14_out_ag(T122, .(T137, []))) → front1_out_ag(tree(T116, void, T122), .(T137, []))
front1_in_ag(tree(T116, tree(T144, void, void), T143), .(T119, [])) → U28_ag(T116, T144, T143, T119, front14_in_aa(T143, X155))
U28_ag(T116, T144, T143, T119, front14_out_aa(T143, X155)) → front1_out_ag(tree(T116, tree(T144, void, void), T143), .(T119, []))
front1_in_ag(tree(T116, tree(T153, void, void), T143), .(T153, [])) → U29_ag(T116, T153, T143, front14_in_aa(T143, T155))
U29_ag(T116, T153, T143, front14_out_aa(T143, T155)) → U30_ag(T116, T153, T143, app15_in_a(T155))
U30_ag(T116, T153, T143, app15_out_a(T155)) → front1_out_ag(tree(T116, tree(T153, void, void), T143), .(T153, []))
front1_in_ag(tree(T116, tree(T164, T167, T168), T169), .(T119, [])) → U31_ag(T116, T164, T167, T168, T169, T119, front14_in_aa(T167, X219))
U31_ag(T116, T164, T167, T168, T169, T119, front14_out_aa(T167, X219)) → front1_out_ag(tree(T116, tree(T164, T167, T168), T169), .(T119, []))
front1_in_ag(tree(T116, tree(T164, T167, T171), T172), .(T119, [])) → U32_ag(T116, T164, T167, T171, T172, T119, front14_in_aa(T167, T170))
U32_ag(T116, T164, T167, T171, T172, T119, front14_out_aa(T167, T170)) → U33_ag(T116, T164, T167, T171, T172, T119, front14_in_aa(T171, X220))
U33_ag(T116, T164, T167, T171, T172, T119, front14_out_aa(T171, X220)) → front1_out_ag(tree(T116, tree(T164, T167, T171), T172), .(T119, []))
front1_in_ag(tree(T116, tree(T164, T167, T171), T175), .(T119, [])) → U34_ag(T116, T164, T167, T171, T175, T119, front14_in_aa(T167, T174))
U34_ag(T116, T164, T167, T171, T175, T119, front14_out_aa(T167, T174)) → U35_ag(T116, T164, T167, T171, T175, T119, T174, front14_in_aa(T171, T173))
U35_ag(T116, T164, T167, T171, T175, T119, T174, front14_out_aa(T171, T173)) → U36_ag(T116, T164, T167, T171, T175, T119, app32_in_aaa(T174, T173, X221))
U36_ag(T116, T164, T167, T171, T175, T119, app32_out_aaa(T174, T173, X221)) → front1_out_ag(tree(T116, tree(T164, T167, T171), T175), .(T119, []))
front1_in_ag(tree(T116, tree(T164, T167, T171), T179), .(T119, [])) → U37_ag(T116, T164, T167, T171, T179, T119, front14_in_aa(T167, T174))
U37_ag(T116, T164, T167, T171, T179, T119, front14_out_aa(T167, T174)) → U38_ag(T116, T164, T167, T171, T179, T119, T174, front14_in_aa(T171, T173))
U38_ag(T116, T164, T167, T171, T179, T119, T174, front14_out_aa(T171, T173)) → U39_ag(T116, T164, T167, T171, T179, T119, app32_in_aaa(T174, T173, T178))
U39_ag(T116, T164, T167, T171, T179, T119, app32_out_aaa(T174, T173, T178)) → U40_ag(T116, T164, T167, T171, T179, T119, front14_in_aa(T179, X155))
U40_ag(T116, T164, T167, T171, T179, T119, front14_out_aa(T179, X155)) → front1_out_ag(tree(T116, tree(T164, T167, T171), T179), .(T119, []))
front1_in_ag(tree(T116, tree(T164, T167, T171), T179), .(T197, [])) → U41_ag(T116, T164, T167, T171, T179, T197, front14_in_aa(T167, T174))
U41_ag(T116, T164, T167, T171, T179, T197, front14_out_aa(T167, T174)) → U42_ag(T116, T164, T167, T171, T179, T197, T174, front14_in_aa(T171, T173))
U42_ag(T116, T164, T167, T171, T179, T197, T174, front14_out_aa(T171, T173)) → U43_ag(T116, T164, T167, T171, T179, T197, app32_in_aag(T174, T173, []))
U43_ag(T116, T164, T167, T171, T179, T197, app32_out_aag(T174, T173, [])) → U44_ag(T116, T164, T167, T171, T179, T197, front14_in_ag(T179, .(T197, [])))
U44_ag(T116, T164, T167, T171, T179, T197, front14_out_ag(T179, .(T197, []))) → front1_out_ag(tree(T116, tree(T164, T167, T171), T179), .(T197, []))
front1_in_ag(tree(T116, tree(T164, T167, T171), T179), .(T204, [])) → U45_ag(T116, T164, T167, T171, T179, T204, front14_in_aa(T167, T174))
U45_ag(T116, T164, T167, T171, T179, T204, front14_out_aa(T167, T174)) → U46_ag(T116, T164, T167, T171, T179, T204, T174, front14_in_aa(T171, T173))
U46_ag(T116, T164, T167, T171, T179, T204, T174, front14_out_aa(T171, T173)) → U47_ag(T116, T164, T167, T171, T179, T204, app32_in_aaa(T174, T173, .(T204, T207)))
U47_ag(T116, T164, T167, T171, T179, T204, app32_out_aaa(T174, T173, .(T204, T207))) → U48_ag(T116, T164, T167, T171, T179, T204, T207, front14_in_aa(T179, T208))
U48_ag(T116, T164, T167, T171, T179, T204, T207, front14_out_aa(T179, T208)) → U49_ag(T116, T164, T167, T171, T179, T204, app66_in_aa(T207, T208))
U49_ag(T116, T164, T167, T171, T179, T204, app66_out_aa(T207, T208)) → front1_out_ag(tree(T116, tree(T164, T167, T171), T179), .(T204, []))
front1_in_ag(tree(T215, void, T221), T218) → U50_ag(T215, T221, T218, front14_in_aa(T221, X265))
U50_ag(T215, T221, T218, front14_out_aa(T221, X265)) → front1_out_ag(tree(T215, void, T221), T218)
front1_in_ag(tree(T215, void, T221), T231) → U51_ag(T215, T221, T231, front14_in_ag(T221, T231))
U51_ag(T215, T221, T231, front14_out_ag(T221, T231)) → front1_out_ag(tree(T215, void, T221), T231)
front1_in_ag(tree(T215, tree(T238, void, void), T237), T218) → U52_ag(T215, T238, T237, T218, front14_in_aa(T237, X265))
U52_ag(T215, T238, T237, T218, front14_out_aa(T237, X265)) → front1_out_ag(tree(T215, tree(T238, void, void), T237), T218)
front1_in_ag(tree(T215, tree(T252, void, void), T237), .(T252, T262)) → U53_ag(T215, T252, T237, T262, front14_in_ag(T237, T262))
U53_ag(T215, T252, T237, T262, front14_out_ag(T237, T262)) → front1_out_ag(tree(T215, tree(T252, void, void), T237), .(T252, T262))
front1_in_ag(tree(T215, tree(T269, T272, T273), T274), T218) → U54_ag(T215, T269, T272, T273, T274, T218, front14_in_aa(T272, X339))
U54_ag(T215, T269, T272, T273, T274, T218, front14_out_aa(T272, X339)) → front1_out_ag(tree(T215, tree(T269, T272, T273), T274), T218)
front1_in_ag(tree(T215, tree(T269, T272, T276), T277), T218) → U55_ag(T215, T269, T272, T276, T277, T218, front14_in_aa(T272, T275))
U55_ag(T215, T269, T272, T276, T277, T218, front14_out_aa(T272, T275)) → U56_ag(T215, T269, T272, T276, T277, T218, front14_in_aa(T276, X340))
U56_ag(T215, T269, T272, T276, T277, T218, front14_out_aa(T276, X340)) → front1_out_ag(tree(T215, tree(T269, T272, T276), T277), T218)
front1_in_ag(tree(T215, tree(T269, T272, T276), T282), T218) → U57_ag(T215, T269, T272, T276, T282, T218, front14_in_aa(T272, T281))
U57_ag(T215, T269, T272, T276, T282, T218, front14_out_aa(T272, T281)) → U58_ag(T215, T269, T272, T276, T282, T218, T281, front14_in_aa(T276, T280))
U58_ag(T215, T269, T272, T276, T282, T218, T281, front14_out_aa(T276, T280)) → U59_ag(T215, T269, T272, T276, T282, T218, app32_in_aaa(T281, T280, X341))
U59_ag(T215, T269, T272, T276, T282, T218, app32_out_aaa(T281, T280, X341)) → front1_out_ag(tree(T215, tree(T269, T272, T276), T282), T218)
front1_in_ag(tree(T215, tree(T269, T272, T276), T288), T218) → U60_ag(T215, T269, T272, T276, T288, T218, front14_in_aa(T272, T281))
U60_ag(T215, T269, T272, T276, T288, T218, front14_out_aa(T272, T281)) → U61_ag(T215, T269, T272, T276, T288, T218, T281, front14_in_aa(T276, T280))
U61_ag(T215, T269, T272, T276, T288, T218, T281, front14_out_aa(T276, T280)) → U62_ag(T215, T269, T272, T276, T288, T218, app32_in_aaa(T281, T280, T287))
U62_ag(T215, T269, T272, T276, T288, T218, app32_out_aaa(T281, T280, T287)) → U63_ag(T215, T269, T272, T276, T288, T218, front14_in_aa(T288, X265))
U63_ag(T215, T269, T272, T276, T288, T218, front14_out_aa(T288, X265)) → front1_out_ag(tree(T215, tree(T269, T272, T276), T288), T218)
front1_in_ag(tree(T215, tree(T269, T272, T276), T288), T303) → U64_ag(T215, T269, T272, T276, T288, T303, front14_in_aa(T272, T281))
U64_ag(T215, T269, T272, T276, T288, T303, front14_out_aa(T272, T281)) → U65_ag(T215, T269, T272, T276, T288, T303, T281, front14_in_aa(T276, T280))
U65_ag(T215, T269, T272, T276, T288, T303, T281, front14_out_aa(T276, T280)) → U66_ag(T215, T269, T272, T276, T288, T303, app32_in_aag(T281, T280, []))
U66_ag(T215, T269, T272, T276, T288, T303, app32_out_aag(T281, T280, [])) → U67_ag(T215, T269, T272, T276, T288, T303, front14_in_ag(T288, T303))
U67_ag(T215, T269, T272, T276, T288, T303, front14_out_ag(T288, T303)) → front1_out_ag(tree(T215, tree(T269, T272, T276), T288), T303)
front1_in_ag(tree(T215, tree(T269, T272, T276), T288), .(T312, T324)) → U68_ag(T215, T269, T272, T276, T288, T312, T324, front14_in_aa(T272, T281))
U68_ag(T215, T269, T272, T276, T288, T312, T324, front14_out_aa(T272, T281)) → U69_ag(T215, T269, T272, T276, T288, T312, T324, T281, front14_in_aa(T276, T280))
U69_ag(T215, T269, T272, T276, T288, T312, T324, T281, front14_out_aa(T276, T280)) → U70_ag(T215, T269, T272, T276, T288, T312, T324, app32_in_aag(T281, T280, .(T312, [])))
U70_ag(T215, T269, T272, T276, T288, T312, T324, app32_out_aag(T281, T280, .(T312, []))) → U71_ag(T215, T269, T272, T276, T288, T312, T324, front14_in_ag(T288, T324))
U71_ag(T215, T269, T272, T276, T288, T312, T324, front14_out_ag(T288, T324)) → front1_out_ag(tree(T215, tree(T269, T272, T276), T288), .(T312, T324))
front1_in_ag(tree(T215, tree(T269, T272, T276), T288), .(T312, .(T333, T336))) → U72_ag(T215, T269, T272, T276, T288, T312, T333, T336, front14_in_aa(T272, T281))
U72_ag(T215, T269, T272, T276, T288, T312, T333, T336, front14_out_aa(T272, T281)) → U73_ag(T215, T269, T272, T276, T288, T312, T333, T336, T281, front14_in_aa(T276, T280))
U73_ag(T215, T269, T272, T276, T288, T312, T333, T336, T281, front14_out_aa(T276, T280)) → U74_ag(T215, T269, T272, T276, T288, T312, T333, T336, app32_in_aaa(T281, T280, .(T312, .(T333, T337))))
U74_ag(T215, T269, T272, T276, T288, T312, T333, T336, app32_out_aaa(T281, T280, .(T312, .(T333, T337)))) → U75_ag(T215, T269, T272, T276, T288, T312, T333, T336, T337, front14_in_aa(T288, T338))
U75_ag(T215, T269, T272, T276, T288, T312, T333, T336, T337, front14_out_aa(T288, T338)) → U76_ag(T215, T269, T272, T276, T288, T312, T333, T336, app178_in_aag(T337, T338, T336))
app178_in_aag([], T345, T345) → app178_out_aag([], T345, T345)
app178_in_aag(.(T354, T358), T359, .(T354, T357)) → U8_aag(T354, T358, T359, T357, app178_in_aag(T358, T359, T357))
U8_aag(T354, T358, T359, T357, app178_out_aag(T358, T359, T357)) → app178_out_aag(.(T354, T358), T359, .(T354, T357))
U76_ag(T215, T269, T272, T276, T288, T312, T333, T336, app178_out_aag(T337, T338, T336)) → front1_out_ag(tree(T215, tree(T269, T272, T276), T288), .(T312, .(T333, T336)))
FRONT14_IN_AA(tree(T25, T28, T31), X41) → U2_AA(T25, T28, T31, X41, front14_in_aa(T28, T30))
U2_AA(T25, T28, T31, X41, front14_out_aa(T28, T30)) → FRONT14_IN_AA(T31, X40)
FRONT14_IN_AA(tree(T25, T28, T29), X41) → FRONT14_IN_AA(T28, X39)
FRONT14_IN_AA(tree(T25, T28, T31), X41) → U4_AA(T25, T28, T31, X41, front14_in_aa(T28, T33))
U4_AA(T25, T28, T31, X41, front14_out_aa(T28, T33)) → FRONT14_IN_AA(T31, T32)
front14_in_aa(void, []) → front14_out_aa(void, [])
front14_in_aa(tree(T18, void, void), .(T18, [])) → front14_out_aa(tree(T18, void, void), .(T18, []))
front14_in_aa(tree(T25, T28, T29), X41) → U1_aa(T25, T28, T29, X41, front14_in_aa(T28, X39))
front14_in_aa(tree(T25, T28, T31), X41) → U2_aa(T25, T28, T31, X41, front14_in_aa(T28, T30))
front14_in_aa(tree(T25, T28, T31), X41) → U4_aa(T25, T28, T31, X41, front14_in_aa(T28, T33))
U1_aa(T25, T28, T29, X41, front14_out_aa(T28, X39)) → front14_out_aa(tree(T25, T28, T29), X41)
U2_aa(T25, T28, T31, X41, front14_out_aa(T28, T30)) → U3_aa(T25, T28, T31, X41, front14_in_aa(T31, X40))
U4_aa(T25, T28, T31, X41, front14_out_aa(T28, T33)) → U5_aa(T25, T28, T31, X41, T33, front14_in_aa(T31, T32))
U3_aa(T25, T28, T31, X41, front14_out_aa(T31, X40)) → front14_out_aa(tree(T25, T28, T31), X41)
U5_aa(T25, T28, T31, X41, T33, front14_out_aa(T31, T32)) → U6_aa(T25, T28, T31, X41, app32_in_aaa(T33, T32, X41))
U6_aa(T25, T28, T31, X41, app32_out_aaa(T33, T32, X41)) → front14_out_aa(tree(T25, T28, T31), X41)
app32_in_aaa([], T40, T40) → app32_out_aaa([], T40, T40)
app32_in_aaa(.(T47, T50), T51, .(T47, X68)) → U7_aaa(T47, T50, T51, X68, app32_in_aaa(T50, T51, X68))
U7_aaa(T47, T50, T51, X68, app32_out_aaa(T50, T51, X68)) → app32_out_aaa(.(T47, T50), T51, .(T47, X68))
FRONT14_IN_AA → U2_AA(front14_in_aa)
U2_AA(front14_out_aa) → FRONT14_IN_AA
FRONT14_IN_AA → FRONT14_IN_AA
FRONT14_IN_AA → U4_AA(front14_in_aa)
U4_AA(front14_out_aa) → FRONT14_IN_AA
front14_in_aa → front14_out_aa
front14_in_aa → U1_aa(front14_in_aa)
front14_in_aa → U2_aa(front14_in_aa)
front14_in_aa → U4_aa(front14_in_aa)
U1_aa(front14_out_aa) → front14_out_aa
U2_aa(front14_out_aa) → U3_aa(front14_in_aa)
U4_aa(front14_out_aa) → U5_aa(front14_in_aa)
U3_aa(front14_out_aa) → front14_out_aa
U5_aa(front14_out_aa) → U6_aa(app32_in_aaa)
U6_aa(app32_out_aaa(T33)) → front14_out_aa
app32_in_aaa → app32_out_aaa([])
app32_in_aaa → U7_aaa(app32_in_aaa)
U7_aaa(app32_out_aaa(T50)) → app32_out_aaa(.(T50))
front14_in_aa
U1_aa(x0)
U2_aa(x0)
U4_aa(x0)
U3_aa(x0)
U5_aa(x0)
U6_aa(x0)
app32_in_aaa
U7_aaa(x0)
FRONT14_IN_AA → U2_AA(front14_out_aa)
FRONT14_IN_AA → U2_AA(U1_aa(front14_in_aa))
FRONT14_IN_AA → U2_AA(U2_aa(front14_in_aa))
FRONT14_IN_AA → U2_AA(U4_aa(front14_in_aa))
U2_AA(front14_out_aa) → FRONT14_IN_AA
FRONT14_IN_AA → FRONT14_IN_AA
FRONT14_IN_AA → U4_AA(front14_in_aa)
U4_AA(front14_out_aa) → FRONT14_IN_AA
FRONT14_IN_AA → U2_AA(front14_out_aa)
FRONT14_IN_AA → U2_AA(U1_aa(front14_in_aa))
FRONT14_IN_AA → U2_AA(U2_aa(front14_in_aa))
FRONT14_IN_AA → U2_AA(U4_aa(front14_in_aa))
front14_in_aa → front14_out_aa
front14_in_aa → U1_aa(front14_in_aa)
front14_in_aa → U2_aa(front14_in_aa)
front14_in_aa → U4_aa(front14_in_aa)
U1_aa(front14_out_aa) → front14_out_aa
U2_aa(front14_out_aa) → U3_aa(front14_in_aa)
U4_aa(front14_out_aa) → U5_aa(front14_in_aa)
U3_aa(front14_out_aa) → front14_out_aa
U5_aa(front14_out_aa) → U6_aa(app32_in_aaa)
U6_aa(app32_out_aaa(T33)) → front14_out_aa
app32_in_aaa → app32_out_aaa([])
app32_in_aaa → U7_aaa(app32_in_aaa)
U7_aaa(app32_out_aaa(T50)) → app32_out_aaa(.(T50))
front14_in_aa
U1_aa(x0)
U2_aa(x0)
U4_aa(x0)
U3_aa(x0)
U5_aa(x0)
U6_aa(x0)
app32_in_aaa
U7_aaa(x0)
FRONT14_IN_AA → U4_AA(front14_out_aa)
FRONT14_IN_AA → U4_AA(U1_aa(front14_in_aa))
FRONT14_IN_AA → U4_AA(U2_aa(front14_in_aa))
FRONT14_IN_AA → U4_AA(U4_aa(front14_in_aa))
U2_AA(front14_out_aa) → FRONT14_IN_AA
FRONT14_IN_AA → FRONT14_IN_AA
U4_AA(front14_out_aa) → FRONT14_IN_AA
FRONT14_IN_AA → U2_AA(front14_out_aa)
FRONT14_IN_AA → U2_AA(U1_aa(front14_in_aa))
FRONT14_IN_AA → U2_AA(U2_aa(front14_in_aa))
FRONT14_IN_AA → U2_AA(U4_aa(front14_in_aa))
FRONT14_IN_AA → U4_AA(front14_out_aa)
FRONT14_IN_AA → U4_AA(U1_aa(front14_in_aa))
FRONT14_IN_AA → U4_AA(U2_aa(front14_in_aa))
FRONT14_IN_AA → U4_AA(U4_aa(front14_in_aa))
front14_in_aa → front14_out_aa
front14_in_aa → U1_aa(front14_in_aa)
front14_in_aa → U2_aa(front14_in_aa)
front14_in_aa → U4_aa(front14_in_aa)
U1_aa(front14_out_aa) → front14_out_aa
U2_aa(front14_out_aa) → U3_aa(front14_in_aa)
U4_aa(front14_out_aa) → U5_aa(front14_in_aa)
U3_aa(front14_out_aa) → front14_out_aa
U5_aa(front14_out_aa) → U6_aa(app32_in_aaa)
U6_aa(app32_out_aaa(T33)) → front14_out_aa
app32_in_aaa → app32_out_aaa([])
app32_in_aaa → U7_aaa(app32_in_aaa)
U7_aaa(app32_out_aaa(T50)) → app32_out_aaa(.(T50))
front14_in_aa
U1_aa(x0)
U2_aa(x0)
U4_aa(x0)
U3_aa(x0)
U5_aa(x0)
U6_aa(x0)
app32_in_aaa
U7_aaa(x0)
front1_in_ag(void, []) → front1_out_ag(void, [])
front1_in_ag(tree(T7, void, T12), []) → U9_ag(T7, T12, front14_in_aa(T12, X12))
front14_in_aa(void, []) → front14_out_aa(void, [])
front14_in_aa(tree(T18, void, void), .(T18, [])) → front14_out_aa(tree(T18, void, void), .(T18, []))
front14_in_aa(tree(T25, T28, T29), X41) → U1_aa(T25, T28, T29, X41, front14_in_aa(T28, X39))
front14_in_aa(tree(T25, T28, T31), X41) → U2_aa(T25, T28, T31, X41, front14_in_aa(T28, T30))
front14_in_aa(tree(T25, T28, T31), X41) → U4_aa(T25, T28, T31, X41, front14_in_aa(T28, T33))
U4_aa(T25, T28, T31, X41, front14_out_aa(T28, T33)) → U5_aa(T25, T28, T31, X41, T33, front14_in_aa(T31, T32))
U5_aa(T25, T28, T31, X41, T33, front14_out_aa(T31, T32)) → U6_aa(T25, T28, T31, X41, app32_in_aaa(T33, T32, X41))
app32_in_aaa([], T40, T40) → app32_out_aaa([], T40, T40)
app32_in_aaa(.(T47, T50), T51, .(T47, X68)) → U7_aaa(T47, T50, T51, X68, app32_in_aaa(T50, T51, X68))
U7_aaa(T47, T50, T51, X68, app32_out_aaa(T50, T51, X68)) → app32_out_aaa(.(T47, T50), T51, .(T47, X68))
U6_aa(T25, T28, T31, X41, app32_out_aaa(T33, T32, X41)) → front14_out_aa(tree(T25, T28, T31), X41)
U2_aa(T25, T28, T31, X41, front14_out_aa(T28, T30)) → U3_aa(T25, T28, T31, X41, front14_in_aa(T31, X40))
U3_aa(T25, T28, T31, X41, front14_out_aa(T31, X40)) → front14_out_aa(tree(T25, T28, T31), X41)
U1_aa(T25, T28, T29, X41, front14_out_aa(T28, X39)) → front14_out_aa(tree(T25, T28, T29), X41)
U9_ag(T7, T12, front14_out_aa(T12, X12)) → front1_out_ag(tree(T7, void, T12), [])
front1_in_ag(tree(T7, void, T12), []) → U10_ag(T7, T12, front14_in_aa(T12, T13))
U10_ag(T7, T12, front14_out_aa(T12, T13)) → U11_ag(T7, T12, app15_in_a(T13))
app15_in_a([]) → app15_out_a([])
U11_ag(T7, T12, app15_out_a(T13)) → front1_out_ag(tree(T7, void, T12), [])
front1_in_ag(tree(T7, tree(T67, void, void), T66), []) → U12_ag(T7, T67, T66, front14_in_aa(T66, X12))
U12_ag(T7, T67, T66, front14_out_aa(T66, X12)) → front1_out_ag(tree(T7, tree(T67, void, void), T66), [])
front1_in_ag(tree(T7, tree(T80, T83, T84), T85), []) → U13_ag(T7, T80, T83, T84, T85, front14_in_aa(T83, X120))
U13_ag(T7, T80, T83, T84, T85, front14_out_aa(T83, X120)) → front1_out_ag(tree(T7, tree(T80, T83, T84), T85), [])
front1_in_ag(tree(T7, tree(T80, T83, T87), T88), []) → U14_ag(T7, T80, T83, T87, T88, front14_in_aa(T83, T86))
U14_ag(T7, T80, T83, T87, T88, front14_out_aa(T83, T86)) → U15_ag(T7, T80, T83, T87, T88, front14_in_aa(T87, X121))
U15_ag(T7, T80, T83, T87, T88, front14_out_aa(T87, X121)) → front1_out_ag(tree(T7, tree(T80, T83, T87), T88), [])
front1_in_ag(tree(T7, tree(T80, T83, T87), T91), []) → U16_ag(T7, T80, T83, T87, T91, front14_in_aa(T83, T90))
U16_ag(T7, T80, T83, T87, T91, front14_out_aa(T83, T90)) → U17_ag(T7, T80, T83, T87, T91, T90, front14_in_aa(T87, T89))
U17_ag(T7, T80, T83, T87, T91, T90, front14_out_aa(T87, T89)) → U18_ag(T7, T80, T83, T87, T91, app32_in_aaa(T90, T89, X122))
U18_ag(T7, T80, T83, T87, T91, app32_out_aaa(T90, T89, X122)) → front1_out_ag(tree(T7, tree(T80, T83, T87), T91), [])
front1_in_ag(tree(T7, tree(T80, T83, T87), T95), []) → U19_ag(T7, T80, T83, T87, T95, front14_in_aa(T83, T90))
U19_ag(T7, T80, T83, T87, T95, front14_out_aa(T83, T90)) → U20_ag(T7, T80, T83, T87, T95, T90, front14_in_aa(T87, T89))
U20_ag(T7, T80, T83, T87, T95, T90, front14_out_aa(T87, T89)) → U21_ag(T7, T80, T83, T87, T95, app32_in_aaa(T90, T89, T94))
U21_ag(T7, T80, T83, T87, T95, app32_out_aaa(T90, T89, T94)) → U22_ag(T7, T80, T83, T87, T95, front14_in_aa(T95, X12))
U22_ag(T7, T80, T83, T87, T95, front14_out_aa(T95, X12)) → front1_out_ag(tree(T7, tree(T80, T83, T87), T95), [])
U20_ag(T7, T80, T83, T87, T95, T90, front14_out_aa(T87, T89)) → U23_ag(T7, T80, T83, T87, T95, app32_in_aaa(T90, T89, T99))
U23_ag(T7, T80, T83, T87, T95, app32_out_aaa(T90, T89, T99)) → U24_ag(T7, T80, T83, T87, T95, T99, front14_in_aa(T95, T98))
U24_ag(T7, T80, T83, T87, T95, T99, front14_out_aa(T95, T98)) → U25_ag(T7, T80, T83, T87, T95, app66_in_aa(T99, T98))
app66_in_aa([], []) → app66_out_aa([], [])
U25_ag(T7, T80, T83, T87, T95, app66_out_aa(T99, T98)) → front1_out_ag(tree(T7, tree(T80, T83, T87), T95), [])
front1_in_ag(tree(T111, void, void), .(T111, [])) → front1_out_ag(tree(T111, void, void), .(T111, []))
front1_in_ag(tree(T116, void, T122), .(T119, [])) → U26_ag(T116, T122, T119, front14_in_aa(T122, X155))
U26_ag(T116, T122, T119, front14_out_aa(T122, X155)) → front1_out_ag(tree(T116, void, T122), .(T119, []))
front1_in_ag(tree(T116, void, T122), .(T137, [])) → U27_ag(T116, T122, T137, front14_in_ag(T122, .(T137, [])))
front14_in_ag(void, []) → front14_out_ag(void, [])
front14_in_ag(tree(T18, void, void), .(T18, [])) → front14_out_ag(tree(T18, void, void), .(T18, []))
front14_in_ag(tree(T25, T28, T29), X41) → U1_ag(T25, T28, T29, X41, front14_in_aa(T28, X39))
U1_ag(T25, T28, T29, X41, front14_out_aa(T28, X39)) → front14_out_ag(tree(T25, T28, T29), X41)
front14_in_ag(tree(T25, T28, T31), X41) → U2_ag(T25, T28, T31, X41, front14_in_aa(T28, T30))
U2_ag(T25, T28, T31, X41, front14_out_aa(T28, T30)) → U3_ag(T25, T28, T31, X41, front14_in_aa(T31, X40))
U3_ag(T25, T28, T31, X41, front14_out_aa(T31, X40)) → front14_out_ag(tree(T25, T28, T31), X41)
front14_in_ag(tree(T25, T28, T31), X41) → U4_ag(T25, T28, T31, X41, front14_in_aa(T28, T33))
U4_ag(T25, T28, T31, X41, front14_out_aa(T28, T33)) → U5_ag(T25, T28, T31, X41, T33, front14_in_aa(T31, T32))
U5_ag(T25, T28, T31, X41, T33, front14_out_aa(T31, T32)) → U6_ag(T25, T28, T31, X41, app32_in_aag(T33, T32, X41))
app32_in_aag([], T40, T40) → app32_out_aag([], T40, T40)
app32_in_aag(.(T47, T50), T51, .(T47, X68)) → U7_aag(T47, T50, T51, X68, app32_in_aag(T50, T51, X68))
U7_aag(T47, T50, T51, X68, app32_out_aag(T50, T51, X68)) → app32_out_aag(.(T47, T50), T51, .(T47, X68))
U6_ag(T25, T28, T31, X41, app32_out_aag(T33, T32, X41)) → front14_out_ag(tree(T25, T28, T31), X41)
U27_ag(T116, T122, T137, front14_out_ag(T122, .(T137, []))) → front1_out_ag(tree(T116, void, T122), .(T137, []))
front1_in_ag(tree(T116, tree(T144, void, void), T143), .(T119, [])) → U28_ag(T116, T144, T143, T119, front14_in_aa(T143, X155))
U28_ag(T116, T144, T143, T119, front14_out_aa(T143, X155)) → front1_out_ag(tree(T116, tree(T144, void, void), T143), .(T119, []))
front1_in_ag(tree(T116, tree(T153, void, void), T143), .(T153, [])) → U29_ag(T116, T153, T143, front14_in_aa(T143, T155))
U29_ag(T116, T153, T143, front14_out_aa(T143, T155)) → U30_ag(T116, T153, T143, app15_in_a(T155))
U30_ag(T116, T153, T143, app15_out_a(T155)) → front1_out_ag(tree(T116, tree(T153, void, void), T143), .(T153, []))
front1_in_ag(tree(T116, tree(T164, T167, T168), T169), .(T119, [])) → U31_ag(T116, T164, T167, T168, T169, T119, front14_in_aa(T167, X219))
U31_ag(T116, T164, T167, T168, T169, T119, front14_out_aa(T167, X219)) → front1_out_ag(tree(T116, tree(T164, T167, T168), T169), .(T119, []))
front1_in_ag(tree(T116, tree(T164, T167, T171), T172), .(T119, [])) → U32_ag(T116, T164, T167, T171, T172, T119, front14_in_aa(T167, T170))
U32_ag(T116, T164, T167, T171, T172, T119, front14_out_aa(T167, T170)) → U33_ag(T116, T164, T167, T171, T172, T119, front14_in_aa(T171, X220))
U33_ag(T116, T164, T167, T171, T172, T119, front14_out_aa(T171, X220)) → front1_out_ag(tree(T116, tree(T164, T167, T171), T172), .(T119, []))
front1_in_ag(tree(T116, tree(T164, T167, T171), T175), .(T119, [])) → U34_ag(T116, T164, T167, T171, T175, T119, front14_in_aa(T167, T174))
U34_ag(T116, T164, T167, T171, T175, T119, front14_out_aa(T167, T174)) → U35_ag(T116, T164, T167, T171, T175, T119, T174, front14_in_aa(T171, T173))
U35_ag(T116, T164, T167, T171, T175, T119, T174, front14_out_aa(T171, T173)) → U36_ag(T116, T164, T167, T171, T175, T119, app32_in_aaa(T174, T173, X221))
U36_ag(T116, T164, T167, T171, T175, T119, app32_out_aaa(T174, T173, X221)) → front1_out_ag(tree(T116, tree(T164, T167, T171), T175), .(T119, []))
front1_in_ag(tree(T116, tree(T164, T167, T171), T179), .(T119, [])) → U37_ag(T116, T164, T167, T171, T179, T119, front14_in_aa(T167, T174))
U37_ag(T116, T164, T167, T171, T179, T119, front14_out_aa(T167, T174)) → U38_ag(T116, T164, T167, T171, T179, T119, T174, front14_in_aa(T171, T173))
U38_ag(T116, T164, T167, T171, T179, T119, T174, front14_out_aa(T171, T173)) → U39_ag(T116, T164, T167, T171, T179, T119, app32_in_aaa(T174, T173, T178))
U39_ag(T116, T164, T167, T171, T179, T119, app32_out_aaa(T174, T173, T178)) → U40_ag(T116, T164, T167, T171, T179, T119, front14_in_aa(T179, X155))
U40_ag(T116, T164, T167, T171, T179, T119, front14_out_aa(T179, X155)) → front1_out_ag(tree(T116, tree(T164, T167, T171), T179), .(T119, []))
front1_in_ag(tree(T116, tree(T164, T167, T171), T179), .(T197, [])) → U41_ag(T116, T164, T167, T171, T179, T197, front14_in_aa(T167, T174))
U41_ag(T116, T164, T167, T171, T179, T197, front14_out_aa(T167, T174)) → U42_ag(T116, T164, T167, T171, T179, T197, T174, front14_in_aa(T171, T173))
U42_ag(T116, T164, T167, T171, T179, T197, T174, front14_out_aa(T171, T173)) → U43_ag(T116, T164, T167, T171, T179, T197, app32_in_aag(T174, T173, []))
U43_ag(T116, T164, T167, T171, T179, T197, app32_out_aag(T174, T173, [])) → U44_ag(T116, T164, T167, T171, T179, T197, front14_in_ag(T179, .(T197, [])))
U44_ag(T116, T164, T167, T171, T179, T197, front14_out_ag(T179, .(T197, []))) → front1_out_ag(tree(T116, tree(T164, T167, T171), T179), .(T197, []))
front1_in_ag(tree(T116, tree(T164, T167, T171), T179), .(T204, [])) → U45_ag(T116, T164, T167, T171, T179, T204, front14_in_aa(T167, T174))
U45_ag(T116, T164, T167, T171, T179, T204, front14_out_aa(T167, T174)) → U46_ag(T116, T164, T167, T171, T179, T204, T174, front14_in_aa(T171, T173))
U46_ag(T116, T164, T167, T171, T179, T204, T174, front14_out_aa(T171, T173)) → U47_ag(T116, T164, T167, T171, T179, T204, app32_in_aaa(T174, T173, .(T204, T207)))
U47_ag(T116, T164, T167, T171, T179, T204, app32_out_aaa(T174, T173, .(T204, T207))) → U48_ag(T116, T164, T167, T171, T179, T204, T207, front14_in_aa(T179, T208))
U48_ag(T116, T164, T167, T171, T179, T204, T207, front14_out_aa(T179, T208)) → U49_ag(T116, T164, T167, T171, T179, T204, app66_in_aa(T207, T208))
U49_ag(T116, T164, T167, T171, T179, T204, app66_out_aa(T207, T208)) → front1_out_ag(tree(T116, tree(T164, T167, T171), T179), .(T204, []))
front1_in_ag(tree(T215, void, T221), T218) → U50_ag(T215, T221, T218, front14_in_aa(T221, X265))
U50_ag(T215, T221, T218, front14_out_aa(T221, X265)) → front1_out_ag(tree(T215, void, T221), T218)
front1_in_ag(tree(T215, void, T221), T231) → U51_ag(T215, T221, T231, front14_in_ag(T221, T231))
U51_ag(T215, T221, T231, front14_out_ag(T221, T231)) → front1_out_ag(tree(T215, void, T221), T231)
front1_in_ag(tree(T215, tree(T238, void, void), T237), T218) → U52_ag(T215, T238, T237, T218, front14_in_aa(T237, X265))
U52_ag(T215, T238, T237, T218, front14_out_aa(T237, X265)) → front1_out_ag(tree(T215, tree(T238, void, void), T237), T218)
front1_in_ag(tree(T215, tree(T252, void, void), T237), .(T252, T262)) → U53_ag(T215, T252, T237, T262, front14_in_ag(T237, T262))
U53_ag(T215, T252, T237, T262, front14_out_ag(T237, T262)) → front1_out_ag(tree(T215, tree(T252, void, void), T237), .(T252, T262))
front1_in_ag(tree(T215, tree(T269, T272, T273), T274), T218) → U54_ag(T215, T269, T272, T273, T274, T218, front14_in_aa(T272, X339))
U54_ag(T215, T269, T272, T273, T274, T218, front14_out_aa(T272, X339)) → front1_out_ag(tree(T215, tree(T269, T272, T273), T274), T218)
front1_in_ag(tree(T215, tree(T269, T272, T276), T277), T218) → U55_ag(T215, T269, T272, T276, T277, T218, front14_in_aa(T272, T275))
U55_ag(T215, T269, T272, T276, T277, T218, front14_out_aa(T272, T275)) → U56_ag(T215, T269, T272, T276, T277, T218, front14_in_aa(T276, X340))
U56_ag(T215, T269, T272, T276, T277, T218, front14_out_aa(T276, X340)) → front1_out_ag(tree(T215, tree(T269, T272, T276), T277), T218)
front1_in_ag(tree(T215, tree(T269, T272, T276), T282), T218) → U57_ag(T215, T269, T272, T276, T282, T218, front14_in_aa(T272, T281))
U57_ag(T215, T269, T272, T276, T282, T218, front14_out_aa(T272, T281)) → U58_ag(T215, T269, T272, T276, T282, T218, T281, front14_in_aa(T276, T280))
U58_ag(T215, T269, T272, T276, T282, T218, T281, front14_out_aa(T276, T280)) → U59_ag(T215, T269, T272, T276, T282, T218, app32_in_aaa(T281, T280, X341))
U59_ag(T215, T269, T272, T276, T282, T218, app32_out_aaa(T281, T280, X341)) → front1_out_ag(tree(T215, tree(T269, T272, T276), T282), T218)
front1_in_ag(tree(T215, tree(T269, T272, T276), T288), T218) → U60_ag(T215, T269, T272, T276, T288, T218, front14_in_aa(T272, T281))
U60_ag(T215, T269, T272, T276, T288, T218, front14_out_aa(T272, T281)) → U61_ag(T215, T269, T272, T276, T288, T218, T281, front14_in_aa(T276, T280))
U61_ag(T215, T269, T272, T276, T288, T218, T281, front14_out_aa(T276, T280)) → U62_ag(T215, T269, T272, T276, T288, T218, app32_in_aaa(T281, T280, T287))
U62_ag(T215, T269, T272, T276, T288, T218, app32_out_aaa(T281, T280, T287)) → U63_ag(T215, T269, T272, T276, T288, T218, front14_in_aa(T288, X265))
U63_ag(T215, T269, T272, T276, T288, T218, front14_out_aa(T288, X265)) → front1_out_ag(tree(T215, tree(T269, T272, T276), T288), T218)
front1_in_ag(tree(T215, tree(T269, T272, T276), T288), T303) → U64_ag(T215, T269, T272, T276, T288, T303, front14_in_aa(T272, T281))
U64_ag(T215, T269, T272, T276, T288, T303, front14_out_aa(T272, T281)) → U65_ag(T215, T269, T272, T276, T288, T303, T281, front14_in_aa(T276, T280))
U65_ag(T215, T269, T272, T276, T288, T303, T281, front14_out_aa(T276, T280)) → U66_ag(T215, T269, T272, T276, T288, T303, app32_in_aag(T281, T280, []))
U66_ag(T215, T269, T272, T276, T288, T303, app32_out_aag(T281, T280, [])) → U67_ag(T215, T269, T272, T276, T288, T303, front14_in_ag(T288, T303))
U67_ag(T215, T269, T272, T276, T288, T303, front14_out_ag(T288, T303)) → front1_out_ag(tree(T215, tree(T269, T272, T276), T288), T303)
front1_in_ag(tree(T215, tree(T269, T272, T276), T288), .(T312, T324)) → U68_ag(T215, T269, T272, T276, T288, T312, T324, front14_in_aa(T272, T281))
U68_ag(T215, T269, T272, T276, T288, T312, T324, front14_out_aa(T272, T281)) → U69_ag(T215, T269, T272, T276, T288, T312, T324, T281, front14_in_aa(T276, T280))
U69_ag(T215, T269, T272, T276, T288, T312, T324, T281, front14_out_aa(T276, T280)) → U70_ag(T215, T269, T272, T276, T288, T312, T324, app32_in_aag(T281, T280, .(T312, [])))
U70_ag(T215, T269, T272, T276, T288, T312, T324, app32_out_aag(T281, T280, .(T312, []))) → U71_ag(T215, T269, T272, T276, T288, T312, T324, front14_in_ag(T288, T324))
U71_ag(T215, T269, T272, T276, T288, T312, T324, front14_out_ag(T288, T324)) → front1_out_ag(tree(T215, tree(T269, T272, T276), T288), .(T312, T324))
front1_in_ag(tree(T215, tree(T269, T272, T276), T288), .(T312, .(T333, T336))) → U72_ag(T215, T269, T272, T276, T288, T312, T333, T336, front14_in_aa(T272, T281))
U72_ag(T215, T269, T272, T276, T288, T312, T333, T336, front14_out_aa(T272, T281)) → U73_ag(T215, T269, T272, T276, T288, T312, T333, T336, T281, front14_in_aa(T276, T280))
U73_ag(T215, T269, T272, T276, T288, T312, T333, T336, T281, front14_out_aa(T276, T280)) → U74_ag(T215, T269, T272, T276, T288, T312, T333, T336, app32_in_aaa(T281, T280, .(T312, .(T333, T337))))
U74_ag(T215, T269, T272, T276, T288, T312, T333, T336, app32_out_aaa(T281, T280, .(T312, .(T333, T337)))) → U75_ag(T215, T269, T272, T276, T288, T312, T333, T336, T337, front14_in_aa(T288, T338))
U75_ag(T215, T269, T272, T276, T288, T312, T333, T336, T337, front14_out_aa(T288, T338)) → U76_ag(T215, T269, T272, T276, T288, T312, T333, T336, app178_in_aag(T337, T338, T336))
app178_in_aag([], T345, T345) → app178_out_aag([], T345, T345)
app178_in_aag(.(T354, T358), T359, .(T354, T357)) → U8_aag(T354, T358, T359, T357, app178_in_aag(T358, T359, T357))
U8_aag(T354, T358, T359, T357, app178_out_aag(T358, T359, T357)) → app178_out_aag(.(T354, T358), T359, .(T354, T357))
U76_ag(T215, T269, T272, T276, T288, T312, T333, T336, app178_out_aag(T337, T338, T336)) → front1_out_ag(tree(T215, tree(T269, T272, T276), T288), .(T312, .(T333, T336)))
Infinitary Constructor Rewriting Termination of PiTRS implies Termination of Prolog
front1_in_ag(void, []) → front1_out_ag(void, [])
front1_in_ag(tree(T7, void, T12), []) → U9_ag(T7, T12, front14_in_aa(T12, X12))
front14_in_aa(void, []) → front14_out_aa(void, [])
front14_in_aa(tree(T18, void, void), .(T18, [])) → front14_out_aa(tree(T18, void, void), .(T18, []))
front14_in_aa(tree(T25, T28, T29), X41) → U1_aa(T25, T28, T29, X41, front14_in_aa(T28, X39))
front14_in_aa(tree(T25, T28, T31), X41) → U2_aa(T25, T28, T31, X41, front14_in_aa(T28, T30))
front14_in_aa(tree(T25, T28, T31), X41) → U4_aa(T25, T28, T31, X41, front14_in_aa(T28, T33))
U4_aa(T25, T28, T31, X41, front14_out_aa(T28, T33)) → U5_aa(T25, T28, T31, X41, T33, front14_in_aa(T31, T32))
U5_aa(T25, T28, T31, X41, T33, front14_out_aa(T31, T32)) → U6_aa(T25, T28, T31, X41, app32_in_aaa(T33, T32, X41))
app32_in_aaa([], T40, T40) → app32_out_aaa([], T40, T40)
app32_in_aaa(.(T47, T50), T51, .(T47, X68)) → U7_aaa(T47, T50, T51, X68, app32_in_aaa(T50, T51, X68))
U7_aaa(T47, T50, T51, X68, app32_out_aaa(T50, T51, X68)) → app32_out_aaa(.(T47, T50), T51, .(T47, X68))
U6_aa(T25, T28, T31, X41, app32_out_aaa(T33, T32, X41)) → front14_out_aa(tree(T25, T28, T31), X41)
U2_aa(T25, T28, T31, X41, front14_out_aa(T28, T30)) → U3_aa(T25, T28, T31, X41, front14_in_aa(T31, X40))
U3_aa(T25, T28, T31, X41, front14_out_aa(T31, X40)) → front14_out_aa(tree(T25, T28, T31), X41)
U1_aa(T25, T28, T29, X41, front14_out_aa(T28, X39)) → front14_out_aa(tree(T25, T28, T29), X41)
U9_ag(T7, T12, front14_out_aa(T12, X12)) → front1_out_ag(tree(T7, void, T12), [])
front1_in_ag(tree(T7, void, T12), []) → U10_ag(T7, T12, front14_in_aa(T12, T13))
U10_ag(T7, T12, front14_out_aa(T12, T13)) → U11_ag(T7, T12, app15_in_a(T13))
app15_in_a([]) → app15_out_a([])
U11_ag(T7, T12, app15_out_a(T13)) → front1_out_ag(tree(T7, void, T12), [])
front1_in_ag(tree(T7, tree(T67, void, void), T66), []) → U12_ag(T7, T67, T66, front14_in_aa(T66, X12))
U12_ag(T7, T67, T66, front14_out_aa(T66, X12)) → front1_out_ag(tree(T7, tree(T67, void, void), T66), [])
front1_in_ag(tree(T7, tree(T80, T83, T84), T85), []) → U13_ag(T7, T80, T83, T84, T85, front14_in_aa(T83, X120))
U13_ag(T7, T80, T83, T84, T85, front14_out_aa(T83, X120)) → front1_out_ag(tree(T7, tree(T80, T83, T84), T85), [])
front1_in_ag(tree(T7, tree(T80, T83, T87), T88), []) → U14_ag(T7, T80, T83, T87, T88, front14_in_aa(T83, T86))
U14_ag(T7, T80, T83, T87, T88, front14_out_aa(T83, T86)) → U15_ag(T7, T80, T83, T87, T88, front14_in_aa(T87, X121))
U15_ag(T7, T80, T83, T87, T88, front14_out_aa(T87, X121)) → front1_out_ag(tree(T7, tree(T80, T83, T87), T88), [])
front1_in_ag(tree(T7, tree(T80, T83, T87), T91), []) → U16_ag(T7, T80, T83, T87, T91, front14_in_aa(T83, T90))
U16_ag(T7, T80, T83, T87, T91, front14_out_aa(T83, T90)) → U17_ag(T7, T80, T83, T87, T91, T90, front14_in_aa(T87, T89))
U17_ag(T7, T80, T83, T87, T91, T90, front14_out_aa(T87, T89)) → U18_ag(T7, T80, T83, T87, T91, app32_in_aaa(T90, T89, X122))
U18_ag(T7, T80, T83, T87, T91, app32_out_aaa(T90, T89, X122)) → front1_out_ag(tree(T7, tree(T80, T83, T87), T91), [])
front1_in_ag(tree(T7, tree(T80, T83, T87), T95), []) → U19_ag(T7, T80, T83, T87, T95, front14_in_aa(T83, T90))
U19_ag(T7, T80, T83, T87, T95, front14_out_aa(T83, T90)) → U20_ag(T7, T80, T83, T87, T95, T90, front14_in_aa(T87, T89))
U20_ag(T7, T80, T83, T87, T95, T90, front14_out_aa(T87, T89)) → U21_ag(T7, T80, T83, T87, T95, app32_in_aaa(T90, T89, T94))
U21_ag(T7, T80, T83, T87, T95, app32_out_aaa(T90, T89, T94)) → U22_ag(T7, T80, T83, T87, T95, front14_in_aa(T95, X12))
U22_ag(T7, T80, T83, T87, T95, front14_out_aa(T95, X12)) → front1_out_ag(tree(T7, tree(T80, T83, T87), T95), [])
U20_ag(T7, T80, T83, T87, T95, T90, front14_out_aa(T87, T89)) → U23_ag(T7, T80, T83, T87, T95, app32_in_aaa(T90, T89, T99))
U23_ag(T7, T80, T83, T87, T95, app32_out_aaa(T90, T89, T99)) → U24_ag(T7, T80, T83, T87, T95, T99, front14_in_aa(T95, T98))
U24_ag(T7, T80, T83, T87, T95, T99, front14_out_aa(T95, T98)) → U25_ag(T7, T80, T83, T87, T95, app66_in_aa(T99, T98))
app66_in_aa([], []) → app66_out_aa([], [])
U25_ag(T7, T80, T83, T87, T95, app66_out_aa(T99, T98)) → front1_out_ag(tree(T7, tree(T80, T83, T87), T95), [])
front1_in_ag(tree(T111, void, void), .(T111, [])) → front1_out_ag(tree(T111, void, void), .(T111, []))
front1_in_ag(tree(T116, void, T122), .(T119, [])) → U26_ag(T116, T122, T119, front14_in_aa(T122, X155))
U26_ag(T116, T122, T119, front14_out_aa(T122, X155)) → front1_out_ag(tree(T116, void, T122), .(T119, []))
front1_in_ag(tree(T116, void, T122), .(T137, [])) → U27_ag(T116, T122, T137, front14_in_ag(T122, .(T137, [])))
front14_in_ag(void, []) → front14_out_ag(void, [])
front14_in_ag(tree(T18, void, void), .(T18, [])) → front14_out_ag(tree(T18, void, void), .(T18, []))
front14_in_ag(tree(T25, T28, T29), X41) → U1_ag(T25, T28, T29, X41, front14_in_aa(T28, X39))
U1_ag(T25, T28, T29, X41, front14_out_aa(T28, X39)) → front14_out_ag(tree(T25, T28, T29), X41)
front14_in_ag(tree(T25, T28, T31), X41) → U2_ag(T25, T28, T31, X41, front14_in_aa(T28, T30))
U2_ag(T25, T28, T31, X41, front14_out_aa(T28, T30)) → U3_ag(T25, T28, T31, X41, front14_in_aa(T31, X40))
U3_ag(T25, T28, T31, X41, front14_out_aa(T31, X40)) → front14_out_ag(tree(T25, T28, T31), X41)
front14_in_ag(tree(T25, T28, T31), X41) → U4_ag(T25, T28, T31, X41, front14_in_aa(T28, T33))
U4_ag(T25, T28, T31, X41, front14_out_aa(T28, T33)) → U5_ag(T25, T28, T31, X41, T33, front14_in_aa(T31, T32))
U5_ag(T25, T28, T31, X41, T33, front14_out_aa(T31, T32)) → U6_ag(T25, T28, T31, X41, app32_in_aag(T33, T32, X41))
app32_in_aag([], T40, T40) → app32_out_aag([], T40, T40)
app32_in_aag(.(T47, T50), T51, .(T47, X68)) → U7_aag(T47, T50, T51, X68, app32_in_aag(T50, T51, X68))
U7_aag(T47, T50, T51, X68, app32_out_aag(T50, T51, X68)) → app32_out_aag(.(T47, T50), T51, .(T47, X68))
U6_ag(T25, T28, T31, X41, app32_out_aag(T33, T32, X41)) → front14_out_ag(tree(T25, T28, T31), X41)
U27_ag(T116, T122, T137, front14_out_ag(T122, .(T137, []))) → front1_out_ag(tree(T116, void, T122), .(T137, []))
front1_in_ag(tree(T116, tree(T144, void, void), T143), .(T119, [])) → U28_ag(T116, T144, T143, T119, front14_in_aa(T143, X155))
U28_ag(T116, T144, T143, T119, front14_out_aa(T143, X155)) → front1_out_ag(tree(T116, tree(T144, void, void), T143), .(T119, []))
front1_in_ag(tree(T116, tree(T153, void, void), T143), .(T153, [])) → U29_ag(T116, T153, T143, front14_in_aa(T143, T155))
U29_ag(T116, T153, T143, front14_out_aa(T143, T155)) → U30_ag(T116, T153, T143, app15_in_a(T155))
U30_ag(T116, T153, T143, app15_out_a(T155)) → front1_out_ag(tree(T116, tree(T153, void, void), T143), .(T153, []))
front1_in_ag(tree(T116, tree(T164, T167, T168), T169), .(T119, [])) → U31_ag(T116, T164, T167, T168, T169, T119, front14_in_aa(T167, X219))
U31_ag(T116, T164, T167, T168, T169, T119, front14_out_aa(T167, X219)) → front1_out_ag(tree(T116, tree(T164, T167, T168), T169), .(T119, []))
front1_in_ag(tree(T116, tree(T164, T167, T171), T172), .(T119, [])) → U32_ag(T116, T164, T167, T171, T172, T119, front14_in_aa(T167, T170))
U32_ag(T116, T164, T167, T171, T172, T119, front14_out_aa(T167, T170)) → U33_ag(T116, T164, T167, T171, T172, T119, front14_in_aa(T171, X220))
U33_ag(T116, T164, T167, T171, T172, T119, front14_out_aa(T171, X220)) → front1_out_ag(tree(T116, tree(T164, T167, T171), T172), .(T119, []))
front1_in_ag(tree(T116, tree(T164, T167, T171), T175), .(T119, [])) → U34_ag(T116, T164, T167, T171, T175, T119, front14_in_aa(T167, T174))
U34_ag(T116, T164, T167, T171, T175, T119, front14_out_aa(T167, T174)) → U35_ag(T116, T164, T167, T171, T175, T119, T174, front14_in_aa(T171, T173))
U35_ag(T116, T164, T167, T171, T175, T119, T174, front14_out_aa(T171, T173)) → U36_ag(T116, T164, T167, T171, T175, T119, app32_in_aaa(T174, T173, X221))
U36_ag(T116, T164, T167, T171, T175, T119, app32_out_aaa(T174, T173, X221)) → front1_out_ag(tree(T116, tree(T164, T167, T171), T175), .(T119, []))
front1_in_ag(tree(T116, tree(T164, T167, T171), T179), .(T119, [])) → U37_ag(T116, T164, T167, T171, T179, T119, front14_in_aa(T167, T174))
U37_ag(T116, T164, T167, T171, T179, T119, front14_out_aa(T167, T174)) → U38_ag(T116, T164, T167, T171, T179, T119, T174, front14_in_aa(T171, T173))
U38_ag(T116, T164, T167, T171, T179, T119, T174, front14_out_aa(T171, T173)) → U39_ag(T116, T164, T167, T171, T179, T119, app32_in_aaa(T174, T173, T178))
U39_ag(T116, T164, T167, T171, T179, T119, app32_out_aaa(T174, T173, T178)) → U40_ag(T116, T164, T167, T171, T179, T119, front14_in_aa(T179, X155))
U40_ag(T116, T164, T167, T171, T179, T119, front14_out_aa(T179, X155)) → front1_out_ag(tree(T116, tree(T164, T167, T171), T179), .(T119, []))
front1_in_ag(tree(T116, tree(T164, T167, T171), T179), .(T197, [])) → U41_ag(T116, T164, T167, T171, T179, T197, front14_in_aa(T167, T174))
U41_ag(T116, T164, T167, T171, T179, T197, front14_out_aa(T167, T174)) → U42_ag(T116, T164, T167, T171, T179, T197, T174, front14_in_aa(T171, T173))
U42_ag(T116, T164, T167, T171, T179, T197, T174, front14_out_aa(T171, T173)) → U43_ag(T116, T164, T167, T171, T179, T197, app32_in_aag(T174, T173, []))
U43_ag(T116, T164, T167, T171, T179, T197, app32_out_aag(T174, T173, [])) → U44_ag(T116, T164, T167, T171, T179, T197, front14_in_ag(T179, .(T197, [])))
U44_ag(T116, T164, T167, T171, T179, T197, front14_out_ag(T179, .(T197, []))) → front1_out_ag(tree(T116, tree(T164, T167, T171), T179), .(T197, []))
front1_in_ag(tree(T116, tree(T164, T167, T171), T179), .(T204, [])) → U45_ag(T116, T164, T167, T171, T179, T204, front14_in_aa(T167, T174))
U45_ag(T116, T164, T167, T171, T179, T204, front14_out_aa(T167, T174)) → U46_ag(T116, T164, T167, T171, T179, T204, T174, front14_in_aa(T171, T173))
U46_ag(T116, T164, T167, T171, T179, T204, T174, front14_out_aa(T171, T173)) → U47_ag(T116, T164, T167, T171, T179, T204, app32_in_aaa(T174, T173, .(T204, T207)))
U47_ag(T116, T164, T167, T171, T179, T204, app32_out_aaa(T174, T173, .(T204, T207))) → U48_ag(T116, T164, T167, T171, T179, T204, T207, front14_in_aa(T179, T208))
U48_ag(T116, T164, T167, T171, T179, T204, T207, front14_out_aa(T179, T208)) → U49_ag(T116, T164, T167, T171, T179, T204, app66_in_aa(T207, T208))
U49_ag(T116, T164, T167, T171, T179, T204, app66_out_aa(T207, T208)) → front1_out_ag(tree(T116, tree(T164, T167, T171), T179), .(T204, []))
front1_in_ag(tree(T215, void, T221), T218) → U50_ag(T215, T221, T218, front14_in_aa(T221, X265))
U50_ag(T215, T221, T218, front14_out_aa(T221, X265)) → front1_out_ag(tree(T215, void, T221), T218)
front1_in_ag(tree(T215, void, T221), T231) → U51_ag(T215, T221, T231, front14_in_ag(T221, T231))
U51_ag(T215, T221, T231, front14_out_ag(T221, T231)) → front1_out_ag(tree(T215, void, T221), T231)
front1_in_ag(tree(T215, tree(T238, void, void), T237), T218) → U52_ag(T215, T238, T237, T218, front14_in_aa(T237, X265))
U52_ag(T215, T238, T237, T218, front14_out_aa(T237, X265)) → front1_out_ag(tree(T215, tree(T238, void, void), T237), T218)
front1_in_ag(tree(T215, tree(T252, void, void), T237), .(T252, T262)) → U53_ag(T215, T252, T237, T262, front14_in_ag(T237, T262))
U53_ag(T215, T252, T237, T262, front14_out_ag(T237, T262)) → front1_out_ag(tree(T215, tree(T252, void, void), T237), .(T252, T262))
front1_in_ag(tree(T215, tree(T269, T272, T273), T274), T218) → U54_ag(T215, T269, T272, T273, T274, T218, front14_in_aa(T272, X339))
U54_ag(T215, T269, T272, T273, T274, T218, front14_out_aa(T272, X339)) → front1_out_ag(tree(T215, tree(T269, T272, T273), T274), T218)
front1_in_ag(tree(T215, tree(T269, T272, T276), T277), T218) → U55_ag(T215, T269, T272, T276, T277, T218, front14_in_aa(T272, T275))
U55_ag(T215, T269, T272, T276, T277, T218, front14_out_aa(T272, T275)) → U56_ag(T215, T269, T272, T276, T277, T218, front14_in_aa(T276, X340))
U56_ag(T215, T269, T272, T276, T277, T218, front14_out_aa(T276, X340)) → front1_out_ag(tree(T215, tree(T269, T272, T276), T277), T218)
front1_in_ag(tree(T215, tree(T269, T272, T276), T282), T218) → U57_ag(T215, T269, T272, T276, T282, T218, front14_in_aa(T272, T281))
U57_ag(T215, T269, T272, T276, T282, T218, front14_out_aa(T272, T281)) → U58_ag(T215, T269, T272, T276, T282, T218, T281, front14_in_aa(T276, T280))
U58_ag(T215, T269, T272, T276, T282, T218, T281, front14_out_aa(T276, T280)) → U59_ag(T215, T269, T272, T276, T282, T218, app32_in_aaa(T281, T280, X341))
U59_ag(T215, T269, T272, T276, T282, T218, app32_out_aaa(T281, T280, X341)) → front1_out_ag(tree(T215, tree(T269, T272, T276), T282), T218)
front1_in_ag(tree(T215, tree(T269, T272, T276), T288), T218) → U60_ag(T215, T269, T272, T276, T288, T218, front14_in_aa(T272, T281))
U60_ag(T215, T269, T272, T276, T288, T218, front14_out_aa(T272, T281)) → U61_ag(T215, T269, T272, T276, T288, T218, T281, front14_in_aa(T276, T280))
U61_ag(T215, T269, T272, T276, T288, T218, T281, front14_out_aa(T276, T280)) → U62_ag(T215, T269, T272, T276, T288, T218, app32_in_aaa(T281, T280, T287))
U62_ag(T215, T269, T272, T276, T288, T218, app32_out_aaa(T281, T280, T287)) → U63_ag(T215, T269, T272, T276, T288, T218, front14_in_aa(T288, X265))
U63_ag(T215, T269, T272, T276, T288, T218, front14_out_aa(T288, X265)) → front1_out_ag(tree(T215, tree(T269, T272, T276), T288), T218)
front1_in_ag(tree(T215, tree(T269, T272, T276), T288), T303) → U64_ag(T215, T269, T272, T276, T288, T303, front14_in_aa(T272, T281))
U64_ag(T215, T269, T272, T276, T288, T303, front14_out_aa(T272, T281)) → U65_ag(T215, T269, T272, T276, T288, T303, T281, front14_in_aa(T276, T280))
U65_ag(T215, T269, T272, T276, T288, T303, T281, front14_out_aa(T276, T280)) → U66_ag(T215, T269, T272, T276, T288, T303, app32_in_aag(T281, T280, []))
U66_ag(T215, T269, T272, T276, T288, T303, app32_out_aag(T281, T280, [])) → U67_ag(T215, T269, T272, T276, T288, T303, front14_in_ag(T288, T303))
U67_ag(T215, T269, T272, T276, T288, T303, front14_out_ag(T288, T303)) → front1_out_ag(tree(T215, tree(T269, T272, T276), T288), T303)
front1_in_ag(tree(T215, tree(T269, T272, T276), T288), .(T312, T324)) → U68_ag(T215, T269, T272, T276, T288, T312, T324, front14_in_aa(T272, T281))
U68_ag(T215, T269, T272, T276, T288, T312, T324, front14_out_aa(T272, T281)) → U69_ag(T215, T269, T272, T276, T288, T312, T324, T281, front14_in_aa(T276, T280))
U69_ag(T215, T269, T272, T276, T288, T312, T324, T281, front14_out_aa(T276, T280)) → U70_ag(T215, T269, T272, T276, T288, T312, T324, app32_in_aag(T281, T280, .(T312, [])))
U70_ag(T215, T269, T272, T276, T288, T312, T324, app32_out_aag(T281, T280, .(T312, []))) → U71_ag(T215, T269, T272, T276, T288, T312, T324, front14_in_ag(T288, T324))
U71_ag(T215, T269, T272, T276, T288, T312, T324, front14_out_ag(T288, T324)) → front1_out_ag(tree(T215, tree(T269, T272, T276), T288), .(T312, T324))
front1_in_ag(tree(T215, tree(T269, T272, T276), T288), .(T312, .(T333, T336))) → U72_ag(T215, T269, T272, T276, T288, T312, T333, T336, front14_in_aa(T272, T281))
U72_ag(T215, T269, T272, T276, T288, T312, T333, T336, front14_out_aa(T272, T281)) → U73_ag(T215, T269, T272, T276, T288, T312, T333, T336, T281, front14_in_aa(T276, T280))
U73_ag(T215, T269, T272, T276, T288, T312, T333, T336, T281, front14_out_aa(T276, T280)) → U74_ag(T215, T269, T272, T276, T288, T312, T333, T336, app32_in_aaa(T281, T280, .(T312, .(T333, T337))))
U74_ag(T215, T269, T272, T276, T288, T312, T333, T336, app32_out_aaa(T281, T280, .(T312, .(T333, T337)))) → U75_ag(T215, T269, T272, T276, T288, T312, T333, T336, T337, front14_in_aa(T288, T338))
U75_ag(T215, T269, T272, T276, T288, T312, T333, T336, T337, front14_out_aa(T288, T338)) → U76_ag(T215, T269, T272, T276, T288, T312, T333, T336, app178_in_aag(T337, T338, T336))
app178_in_aag([], T345, T345) → app178_out_aag([], T345, T345)
app178_in_aag(.(T354, T358), T359, .(T354, T357)) → U8_aag(T354, T358, T359, T357, app178_in_aag(T358, T359, T357))
U8_aag(T354, T358, T359, T357, app178_out_aag(T358, T359, T357)) → app178_out_aag(.(T354, T358), T359, .(T354, T357))
U76_ag(T215, T269, T272, T276, T288, T312, T333, T336, app178_out_aag(T337, T338, T336)) → front1_out_ag(tree(T215, tree(T269, T272, T276), T288), .(T312, .(T333, T336)))
FRONT1_IN_AG(tree(T7, void, T12), []) → U9_AG(T7, T12, front14_in_aa(T12, X12))
FRONT1_IN_AG(tree(T7, void, T12), []) → FRONT14_IN_AA(T12, X12)
FRONT14_IN_AA(tree(T25, T28, T29), X41) → U1_AA(T25, T28, T29, X41, front14_in_aa(T28, X39))
FRONT14_IN_AA(tree(T25, T28, T29), X41) → FRONT14_IN_AA(T28, X39)
FRONT14_IN_AA(tree(T25, T28, T31), X41) → U2_AA(T25, T28, T31, X41, front14_in_aa(T28, T30))
FRONT14_IN_AA(tree(T25, T28, T31), X41) → U4_AA(T25, T28, T31, X41, front14_in_aa(T28, T33))
U4_AA(T25, T28, T31, X41, front14_out_aa(T28, T33)) → U5_AA(T25, T28, T31, X41, T33, front14_in_aa(T31, T32))
U4_AA(T25, T28, T31, X41, front14_out_aa(T28, T33)) → FRONT14_IN_AA(T31, T32)
U5_AA(T25, T28, T31, X41, T33, front14_out_aa(T31, T32)) → U6_AA(T25, T28, T31, X41, app32_in_aaa(T33, T32, X41))
U5_AA(T25, T28, T31, X41, T33, front14_out_aa(T31, T32)) → APP32_IN_AAA(T33, T32, X41)
APP32_IN_AAA(.(T47, T50), T51, .(T47, X68)) → U7_AAA(T47, T50, T51, X68, app32_in_aaa(T50, T51, X68))
APP32_IN_AAA(.(T47, T50), T51, .(T47, X68)) → APP32_IN_AAA(T50, T51, X68)
U2_AA(T25, T28, T31, X41, front14_out_aa(T28, T30)) → U3_AA(T25, T28, T31, X41, front14_in_aa(T31, X40))
U2_AA(T25, T28, T31, X41, front14_out_aa(T28, T30)) → FRONT14_IN_AA(T31, X40)
FRONT1_IN_AG(tree(T7, void, T12), []) → U10_AG(T7, T12, front14_in_aa(T12, T13))
U10_AG(T7, T12, front14_out_aa(T12, T13)) → U11_AG(T7, T12, app15_in_a(T13))
U10_AG(T7, T12, front14_out_aa(T12, T13)) → APP15_IN_A(T13)
FRONT1_IN_AG(tree(T7, tree(T67, void, void), T66), []) → U12_AG(T7, T67, T66, front14_in_aa(T66, X12))
FRONT1_IN_AG(tree(T7, tree(T67, void, void), T66), []) → FRONT14_IN_AA(T66, X12)
FRONT1_IN_AG(tree(T7, tree(T80, T83, T84), T85), []) → U13_AG(T7, T80, T83, T84, T85, front14_in_aa(T83, X120))
FRONT1_IN_AG(tree(T7, tree(T80, T83, T84), T85), []) → FRONT14_IN_AA(T83, X120)
FRONT1_IN_AG(tree(T7, tree(T80, T83, T87), T88), []) → U14_AG(T7, T80, T83, T87, T88, front14_in_aa(T83, T86))
U14_AG(T7, T80, T83, T87, T88, front14_out_aa(T83, T86)) → U15_AG(T7, T80, T83, T87, T88, front14_in_aa(T87, X121))
U14_AG(T7, T80, T83, T87, T88, front14_out_aa(T83, T86)) → FRONT14_IN_AA(T87, X121)
FRONT1_IN_AG(tree(T7, tree(T80, T83, T87), T91), []) → U16_AG(T7, T80, T83, T87, T91, front14_in_aa(T83, T90))
U16_AG(T7, T80, T83, T87, T91, front14_out_aa(T83, T90)) → U17_AG(T7, T80, T83, T87, T91, T90, front14_in_aa(T87, T89))
U16_AG(T7, T80, T83, T87, T91, front14_out_aa(T83, T90)) → FRONT14_IN_AA(T87, T89)
U17_AG(T7, T80, T83, T87, T91, T90, front14_out_aa(T87, T89)) → U18_AG(T7, T80, T83, T87, T91, app32_in_aaa(T90, T89, X122))
U17_AG(T7, T80, T83, T87, T91, T90, front14_out_aa(T87, T89)) → APP32_IN_AAA(T90, T89, X122)
FRONT1_IN_AG(tree(T7, tree(T80, T83, T87), T95), []) → U19_AG(T7, T80, T83, T87, T95, front14_in_aa(T83, T90))
U19_AG(T7, T80, T83, T87, T95, front14_out_aa(T83, T90)) → U20_AG(T7, T80, T83, T87, T95, T90, front14_in_aa(T87, T89))
U19_AG(T7, T80, T83, T87, T95, front14_out_aa(T83, T90)) → FRONT14_IN_AA(T87, T89)
U20_AG(T7, T80, T83, T87, T95, T90, front14_out_aa(T87, T89)) → U21_AG(T7, T80, T83, T87, T95, app32_in_aaa(T90, T89, T94))
U20_AG(T7, T80, T83, T87, T95, T90, front14_out_aa(T87, T89)) → APP32_IN_AAA(T90, T89, T94)
U21_AG(T7, T80, T83, T87, T95, app32_out_aaa(T90, T89, T94)) → U22_AG(T7, T80, T83, T87, T95, front14_in_aa(T95, X12))
U21_AG(T7, T80, T83, T87, T95, app32_out_aaa(T90, T89, T94)) → FRONT14_IN_AA(T95, X12)
U20_AG(T7, T80, T83, T87, T95, T90, front14_out_aa(T87, T89)) → U23_AG(T7, T80, T83, T87, T95, app32_in_aaa(T90, T89, T99))
U23_AG(T7, T80, T83, T87, T95, app32_out_aaa(T90, T89, T99)) → U24_AG(T7, T80, T83, T87, T95, T99, front14_in_aa(T95, T98))
U23_AG(T7, T80, T83, T87, T95, app32_out_aaa(T90, T89, T99)) → FRONT14_IN_AA(T95, T98)
U24_AG(T7, T80, T83, T87, T95, T99, front14_out_aa(T95, T98)) → U25_AG(T7, T80, T83, T87, T95, app66_in_aa(T99, T98))
U24_AG(T7, T80, T83, T87, T95, T99, front14_out_aa(T95, T98)) → APP66_IN_AA(T99, T98)
FRONT1_IN_AG(tree(T116, void, T122), .(T119, [])) → U26_AG(T116, T122, T119, front14_in_aa(T122, X155))
FRONT1_IN_AG(tree(T116, void, T122), .(T119, [])) → FRONT14_IN_AA(T122, X155)
FRONT1_IN_AG(tree(T116, void, T122), .(T137, [])) → U27_AG(T116, T122, T137, front14_in_ag(T122, .(T137, [])))
FRONT1_IN_AG(tree(T116, void, T122), .(T137, [])) → FRONT14_IN_AG(T122, .(T137, []))
FRONT14_IN_AG(tree(T25, T28, T29), X41) → U1_AG(T25, T28, T29, X41, front14_in_aa(T28, X39))
FRONT14_IN_AG(tree(T25, T28, T29), X41) → FRONT14_IN_AA(T28, X39)
FRONT14_IN_AG(tree(T25, T28, T31), X41) → U2_AG(T25, T28, T31, X41, front14_in_aa(T28, T30))
U2_AG(T25, T28, T31, X41, front14_out_aa(T28, T30)) → U3_AG(T25, T28, T31, X41, front14_in_aa(T31, X40))
U2_AG(T25, T28, T31, X41, front14_out_aa(T28, T30)) → FRONT14_IN_AA(T31, X40)
FRONT14_IN_AG(tree(T25, T28, T31), X41) → U4_AG(T25, T28, T31, X41, front14_in_aa(T28, T33))
U4_AG(T25, T28, T31, X41, front14_out_aa(T28, T33)) → U5_AG(T25, T28, T31, X41, T33, front14_in_aa(T31, T32))
U4_AG(T25, T28, T31, X41, front14_out_aa(T28, T33)) → FRONT14_IN_AA(T31, T32)
U5_AG(T25, T28, T31, X41, T33, front14_out_aa(T31, T32)) → U6_AG(T25, T28, T31, X41, app32_in_aag(T33, T32, X41))
U5_AG(T25, T28, T31, X41, T33, front14_out_aa(T31, T32)) → APP32_IN_AAG(T33, T32, X41)
APP32_IN_AAG(.(T47, T50), T51, .(T47, X68)) → U7_AAG(T47, T50, T51, X68, app32_in_aag(T50, T51, X68))
APP32_IN_AAG(.(T47, T50), T51, .(T47, X68)) → APP32_IN_AAG(T50, T51, X68)
FRONT1_IN_AG(tree(T116, tree(T144, void, void), T143), .(T119, [])) → U28_AG(T116, T144, T143, T119, front14_in_aa(T143, X155))
FRONT1_IN_AG(tree(T116, tree(T144, void, void), T143), .(T119, [])) → FRONT14_IN_AA(T143, X155)
FRONT1_IN_AG(tree(T116, tree(T153, void, void), T143), .(T153, [])) → U29_AG(T116, T153, T143, front14_in_aa(T143, T155))
FRONT1_IN_AG(tree(T116, tree(T153, void, void), T143), .(T153, [])) → FRONT14_IN_AA(T143, T155)
U29_AG(T116, T153, T143, front14_out_aa(T143, T155)) → U30_AG(T116, T153, T143, app15_in_a(T155))
U29_AG(T116, T153, T143, front14_out_aa(T143, T155)) → APP15_IN_A(T155)
FRONT1_IN_AG(tree(T116, tree(T164, T167, T168), T169), .(T119, [])) → U31_AG(T116, T164, T167, T168, T169, T119, front14_in_aa(T167, X219))
FRONT1_IN_AG(tree(T116, tree(T164, T167, T168), T169), .(T119, [])) → FRONT14_IN_AA(T167, X219)
FRONT1_IN_AG(tree(T116, tree(T164, T167, T171), T172), .(T119, [])) → U32_AG(T116, T164, T167, T171, T172, T119, front14_in_aa(T167, T170))
U32_AG(T116, T164, T167, T171, T172, T119, front14_out_aa(T167, T170)) → U33_AG(T116, T164, T167, T171, T172, T119, front14_in_aa(T171, X220))
U32_AG(T116, T164, T167, T171, T172, T119, front14_out_aa(T167, T170)) → FRONT14_IN_AA(T171, X220)
FRONT1_IN_AG(tree(T116, tree(T164, T167, T171), T175), .(T119, [])) → U34_AG(T116, T164, T167, T171, T175, T119, front14_in_aa(T167, T174))
U34_AG(T116, T164, T167, T171, T175, T119, front14_out_aa(T167, T174)) → U35_AG(T116, T164, T167, T171, T175, T119, T174, front14_in_aa(T171, T173))
U34_AG(T116, T164, T167, T171, T175, T119, front14_out_aa(T167, T174)) → FRONT14_IN_AA(T171, T173)
U35_AG(T116, T164, T167, T171, T175, T119, T174, front14_out_aa(T171, T173)) → U36_AG(T116, T164, T167, T171, T175, T119, app32_in_aaa(T174, T173, X221))
U35_AG(T116, T164, T167, T171, T175, T119, T174, front14_out_aa(T171, T173)) → APP32_IN_AAA(T174, T173, X221)
FRONT1_IN_AG(tree(T116, tree(T164, T167, T171), T179), .(T119, [])) → U37_AG(T116, T164, T167, T171, T179, T119, front14_in_aa(T167, T174))
U37_AG(T116, T164, T167, T171, T179, T119, front14_out_aa(T167, T174)) → U38_AG(T116, T164, T167, T171, T179, T119, T174, front14_in_aa(T171, T173))
U37_AG(T116, T164, T167, T171, T179, T119, front14_out_aa(T167, T174)) → FRONT14_IN_AA(T171, T173)
U38_AG(T116, T164, T167, T171, T179, T119, T174, front14_out_aa(T171, T173)) → U39_AG(T116, T164, T167, T171, T179, T119, app32_in_aaa(T174, T173, T178))
U38_AG(T116, T164, T167, T171, T179, T119, T174, front14_out_aa(T171, T173)) → APP32_IN_AAA(T174, T173, T178)
U39_AG(T116, T164, T167, T171, T179, T119, app32_out_aaa(T174, T173, T178)) → U40_AG(T116, T164, T167, T171, T179, T119, front14_in_aa(T179, X155))
U39_AG(T116, T164, T167, T171, T179, T119, app32_out_aaa(T174, T173, T178)) → FRONT14_IN_AA(T179, X155)
FRONT1_IN_AG(tree(T116, tree(T164, T167, T171), T179), .(T197, [])) → U41_AG(T116, T164, T167, T171, T179, T197, front14_in_aa(T167, T174))
U41_AG(T116, T164, T167, T171, T179, T197, front14_out_aa(T167, T174)) → U42_AG(T116, T164, T167, T171, T179, T197, T174, front14_in_aa(T171, T173))
U41_AG(T116, T164, T167, T171, T179, T197, front14_out_aa(T167, T174)) → FRONT14_IN_AA(T171, T173)
U42_AG(T116, T164, T167, T171, T179, T197, T174, front14_out_aa(T171, T173)) → U43_AG(T116, T164, T167, T171, T179, T197, app32_in_aag(T174, T173, []))
U42_AG(T116, T164, T167, T171, T179, T197, T174, front14_out_aa(T171, T173)) → APP32_IN_AAG(T174, T173, [])
U43_AG(T116, T164, T167, T171, T179, T197, app32_out_aag(T174, T173, [])) → U44_AG(T116, T164, T167, T171, T179, T197, front14_in_ag(T179, .(T197, [])))
U43_AG(T116, T164, T167, T171, T179, T197, app32_out_aag(T174, T173, [])) → FRONT14_IN_AG(T179, .(T197, []))
FRONT1_IN_AG(tree(T116, tree(T164, T167, T171), T179), .(T204, [])) → U45_AG(T116, T164, T167, T171, T179, T204, front14_in_aa(T167, T174))
U45_AG(T116, T164, T167, T171, T179, T204, front14_out_aa(T167, T174)) → U46_AG(T116, T164, T167, T171, T179, T204, T174, front14_in_aa(T171, T173))
U45_AG(T116, T164, T167, T171, T179, T204, front14_out_aa(T167, T174)) → FRONT14_IN_AA(T171, T173)
U46_AG(T116, T164, T167, T171, T179, T204, T174, front14_out_aa(T171, T173)) → U47_AG(T116, T164, T167, T171, T179, T204, app32_in_aaa(T174, T173, .(T204, T207)))
U46_AG(T116, T164, T167, T171, T179, T204, T174, front14_out_aa(T171, T173)) → APP32_IN_AAA(T174, T173, .(T204, T207))
U47_AG(T116, T164, T167, T171, T179, T204, app32_out_aaa(T174, T173, .(T204, T207))) → U48_AG(T116, T164, T167, T171, T179, T204, T207, front14_in_aa(T179, T208))
U47_AG(T116, T164, T167, T171, T179, T204, app32_out_aaa(T174, T173, .(T204, T207))) → FRONT14_IN_AA(T179, T208)
U48_AG(T116, T164, T167, T171, T179, T204, T207, front14_out_aa(T179, T208)) → U49_AG(T116, T164, T167, T171, T179, T204, app66_in_aa(T207, T208))
U48_AG(T116, T164, T167, T171, T179, T204, T207, front14_out_aa(T179, T208)) → APP66_IN_AA(T207, T208)
FRONT1_IN_AG(tree(T215, void, T221), T218) → U50_AG(T215, T221, T218, front14_in_aa(T221, X265))
FRONT1_IN_AG(tree(T215, void, T221), T218) → FRONT14_IN_AA(T221, X265)
FRONT1_IN_AG(tree(T215, void, T221), T231) → U51_AG(T215, T221, T231, front14_in_ag(T221, T231))
FRONT1_IN_AG(tree(T215, void, T221), T231) → FRONT14_IN_AG(T221, T231)
FRONT1_IN_AG(tree(T215, tree(T238, void, void), T237), T218) → U52_AG(T215, T238, T237, T218, front14_in_aa(T237, X265))
FRONT1_IN_AG(tree(T215, tree(T238, void, void), T237), T218) → FRONT14_IN_AA(T237, X265)
FRONT1_IN_AG(tree(T215, tree(T252, void, void), T237), .(T252, T262)) → U53_AG(T215, T252, T237, T262, front14_in_ag(T237, T262))
FRONT1_IN_AG(tree(T215, tree(T252, void, void), T237), .(T252, T262)) → FRONT14_IN_AG(T237, T262)
FRONT1_IN_AG(tree(T215, tree(T269, T272, T273), T274), T218) → U54_AG(T215, T269, T272, T273, T274, T218, front14_in_aa(T272, X339))
FRONT1_IN_AG(tree(T215, tree(T269, T272, T273), T274), T218) → FRONT14_IN_AA(T272, X339)
FRONT1_IN_AG(tree(T215, tree(T269, T272, T276), T277), T218) → U55_AG(T215, T269, T272, T276, T277, T218, front14_in_aa(T272, T275))
U55_AG(T215, T269, T272, T276, T277, T218, front14_out_aa(T272, T275)) → U56_AG(T215, T269, T272, T276, T277, T218, front14_in_aa(T276, X340))
U55_AG(T215, T269, T272, T276, T277, T218, front14_out_aa(T272, T275)) → FRONT14_IN_AA(T276, X340)
FRONT1_IN_AG(tree(T215, tree(T269, T272, T276), T282), T218) → U57_AG(T215, T269, T272, T276, T282, T218, front14_in_aa(T272, T281))
U57_AG(T215, T269, T272, T276, T282, T218, front14_out_aa(T272, T281)) → U58_AG(T215, T269, T272, T276, T282, T218, T281, front14_in_aa(T276, T280))
U57_AG(T215, T269, T272, T276, T282, T218, front14_out_aa(T272, T281)) → FRONT14_IN_AA(T276, T280)
U58_AG(T215, T269, T272, T276, T282, T218, T281, front14_out_aa(T276, T280)) → U59_AG(T215, T269, T272, T276, T282, T218, app32_in_aaa(T281, T280, X341))
U58_AG(T215, T269, T272, T276, T282, T218, T281, front14_out_aa(T276, T280)) → APP32_IN_AAA(T281, T280, X341)
FRONT1_IN_AG(tree(T215, tree(T269, T272, T276), T288), T218) → U60_AG(T215, T269, T272, T276, T288, T218, front14_in_aa(T272, T281))
U60_AG(T215, T269, T272, T276, T288, T218, front14_out_aa(T272, T281)) → U61_AG(T215, T269, T272, T276, T288, T218, T281, front14_in_aa(T276, T280))
U60_AG(T215, T269, T272, T276, T288, T218, front14_out_aa(T272, T281)) → FRONT14_IN_AA(T276, T280)
U61_AG(T215, T269, T272, T276, T288, T218, T281, front14_out_aa(T276, T280)) → U62_AG(T215, T269, T272, T276, T288, T218, app32_in_aaa(T281, T280, T287))
U61_AG(T215, T269, T272, T276, T288, T218, T281, front14_out_aa(T276, T280)) → APP32_IN_AAA(T281, T280, T287)
U62_AG(T215, T269, T272, T276, T288, T218, app32_out_aaa(T281, T280, T287)) → U63_AG(T215, T269, T272, T276, T288, T218, front14_in_aa(T288, X265))
U62_AG(T215, T269, T272, T276, T288, T218, app32_out_aaa(T281, T280, T287)) → FRONT14_IN_AA(T288, X265)
FRONT1_IN_AG(tree(T215, tree(T269, T272, T276), T288), T303) → U64_AG(T215, T269, T272, T276, T288, T303, front14_in_aa(T272, T281))
U64_AG(T215, T269, T272, T276, T288, T303, front14_out_aa(T272, T281)) → U65_AG(T215, T269, T272, T276, T288, T303, T281, front14_in_aa(T276, T280))
U64_AG(T215, T269, T272, T276, T288, T303, front14_out_aa(T272, T281)) → FRONT14_IN_AA(T276, T280)
U65_AG(T215, T269, T272, T276, T288, T303, T281, front14_out_aa(T276, T280)) → U66_AG(T215, T269, T272, T276, T288, T303, app32_in_aag(T281, T280, []))
U65_AG(T215, T269, T272, T276, T288, T303, T281, front14_out_aa(T276, T280)) → APP32_IN_AAG(T281, T280, [])
U66_AG(T215, T269, T272, T276, T288, T303, app32_out_aag(T281, T280, [])) → U67_AG(T215, T269, T272, T276, T288, T303, front14_in_ag(T288, T303))
U66_AG(T215, T269, T272, T276, T288, T303, app32_out_aag(T281, T280, [])) → FRONT14_IN_AG(T288, T303)
FRONT1_IN_AG(tree(T215, tree(T269, T272, T276), T288), .(T312, T324)) → U68_AG(T215, T269, T272, T276, T288, T312, T324, front14_in_aa(T272, T281))
FRONT1_IN_AG(tree(T215, tree(T269, T272, T276), T288), .(T312, T324)) → FRONT14_IN_AA(T272, T281)
U68_AG(T215, T269, T272, T276, T288, T312, T324, front14_out_aa(T272, T281)) → U69_AG(T215, T269, T272, T276, T288, T312, T324, T281, front14_in_aa(T276, T280))
U68_AG(T215, T269, T272, T276, T288, T312, T324, front14_out_aa(T272, T281)) → FRONT14_IN_AA(T276, T280)
U69_AG(T215, T269, T272, T276, T288, T312, T324, T281, front14_out_aa(T276, T280)) → U70_AG(T215, T269, T272, T276, T288, T312, T324, app32_in_aag(T281, T280, .(T312, [])))
U69_AG(T215, T269, T272, T276, T288, T312, T324, T281, front14_out_aa(T276, T280)) → APP32_IN_AAG(T281, T280, .(T312, []))
U70_AG(T215, T269, T272, T276, T288, T312, T324, app32_out_aag(T281, T280, .(T312, []))) → U71_AG(T215, T269, T272, T276, T288, T312, T324, front14_in_ag(T288, T324))
U70_AG(T215, T269, T272, T276, T288, T312, T324, app32_out_aag(T281, T280, .(T312, []))) → FRONT14_IN_AG(T288, T324)
FRONT1_IN_AG(tree(T215, tree(T269, T272, T276), T288), .(T312, .(T333, T336))) → U72_AG(T215, T269, T272, T276, T288, T312, T333, T336, front14_in_aa(T272, T281))
FRONT1_IN_AG(tree(T215, tree(T269, T272, T276), T288), .(T312, .(T333, T336))) → FRONT14_IN_AA(T272, T281)
U72_AG(T215, T269, T272, T276, T288, T312, T333, T336, front14_out_aa(T272, T281)) → U73_AG(T215, T269, T272, T276, T288, T312, T333, T336, T281, front14_in_aa(T276, T280))
U72_AG(T215, T269, T272, T276, T288, T312, T333, T336, front14_out_aa(T272, T281)) → FRONT14_IN_AA(T276, T280)
U73_AG(T215, T269, T272, T276, T288, T312, T333, T336, T281, front14_out_aa(T276, T280)) → U74_AG(T215, T269, T272, T276, T288, T312, T333, T336, app32_in_aaa(T281, T280, .(T312, .(T333, T337))))
U73_AG(T215, T269, T272, T276, T288, T312, T333, T336, T281, front14_out_aa(T276, T280)) → APP32_IN_AAA(T281, T280, .(T312, .(T333, T337)))
U74_AG(T215, T269, T272, T276, T288, T312, T333, T336, app32_out_aaa(T281, T280, .(T312, .(T333, T337)))) → U75_AG(T215, T269, T272, T276, T288, T312, T333, T336, T337, front14_in_aa(T288, T338))
U74_AG(T215, T269, T272, T276, T288, T312, T333, T336, app32_out_aaa(T281, T280, .(T312, .(T333, T337)))) → FRONT14_IN_AA(T288, T338)
U75_AG(T215, T269, T272, T276, T288, T312, T333, T336, T337, front14_out_aa(T288, T338)) → U76_AG(T215, T269, T272, T276, T288, T312, T333, T336, app178_in_aag(T337, T338, T336))
U75_AG(T215, T269, T272, T276, T288, T312, T333, T336, T337, front14_out_aa(T288, T338)) → APP178_IN_AAG(T337, T338, T336)
APP178_IN_AAG(.(T354, T358), T359, .(T354, T357)) → U8_AAG(T354, T358, T359, T357, app178_in_aag(T358, T359, T357))
APP178_IN_AAG(.(T354, T358), T359, .(T354, T357)) → APP178_IN_AAG(T358, T359, T357)
front1_in_ag(void, []) → front1_out_ag(void, [])
front1_in_ag(tree(T7, void, T12), []) → U9_ag(T7, T12, front14_in_aa(T12, X12))
front14_in_aa(void, []) → front14_out_aa(void, [])
front14_in_aa(tree(T18, void, void), .(T18, [])) → front14_out_aa(tree(T18, void, void), .(T18, []))
front14_in_aa(tree(T25, T28, T29), X41) → U1_aa(T25, T28, T29, X41, front14_in_aa(T28, X39))
front14_in_aa(tree(T25, T28, T31), X41) → U2_aa(T25, T28, T31, X41, front14_in_aa(T28, T30))
front14_in_aa(tree(T25, T28, T31), X41) → U4_aa(T25, T28, T31, X41, front14_in_aa(T28, T33))
U4_aa(T25, T28, T31, X41, front14_out_aa(T28, T33)) → U5_aa(T25, T28, T31, X41, T33, front14_in_aa(T31, T32))
U5_aa(T25, T28, T31, X41, T33, front14_out_aa(T31, T32)) → U6_aa(T25, T28, T31, X41, app32_in_aaa(T33, T32, X41))
app32_in_aaa([], T40, T40) → app32_out_aaa([], T40, T40)
app32_in_aaa(.(T47, T50), T51, .(T47, X68)) → U7_aaa(T47, T50, T51, X68, app32_in_aaa(T50, T51, X68))
U7_aaa(T47, T50, T51, X68, app32_out_aaa(T50, T51, X68)) → app32_out_aaa(.(T47, T50), T51, .(T47, X68))
U6_aa(T25, T28, T31, X41, app32_out_aaa(T33, T32, X41)) → front14_out_aa(tree(T25, T28, T31), X41)
U2_aa(T25, T28, T31, X41, front14_out_aa(T28, T30)) → U3_aa(T25, T28, T31, X41, front14_in_aa(T31, X40))
U3_aa(T25, T28, T31, X41, front14_out_aa(T31, X40)) → front14_out_aa(tree(T25, T28, T31), X41)
U1_aa(T25, T28, T29, X41, front14_out_aa(T28, X39)) → front14_out_aa(tree(T25, T28, T29), X41)
U9_ag(T7, T12, front14_out_aa(T12, X12)) → front1_out_ag(tree(T7, void, T12), [])
front1_in_ag(tree(T7, void, T12), []) → U10_ag(T7, T12, front14_in_aa(T12, T13))
U10_ag(T7, T12, front14_out_aa(T12, T13)) → U11_ag(T7, T12, app15_in_a(T13))
app15_in_a([]) → app15_out_a([])
U11_ag(T7, T12, app15_out_a(T13)) → front1_out_ag(tree(T7, void, T12), [])
front1_in_ag(tree(T7, tree(T67, void, void), T66), []) → U12_ag(T7, T67, T66, front14_in_aa(T66, X12))
U12_ag(T7, T67, T66, front14_out_aa(T66, X12)) → front1_out_ag(tree(T7, tree(T67, void, void), T66), [])
front1_in_ag(tree(T7, tree(T80, T83, T84), T85), []) → U13_ag(T7, T80, T83, T84, T85, front14_in_aa(T83, X120))
U13_ag(T7, T80, T83, T84, T85, front14_out_aa(T83, X120)) → front1_out_ag(tree(T7, tree(T80, T83, T84), T85), [])
front1_in_ag(tree(T7, tree(T80, T83, T87), T88), []) → U14_ag(T7, T80, T83, T87, T88, front14_in_aa(T83, T86))
U14_ag(T7, T80, T83, T87, T88, front14_out_aa(T83, T86)) → U15_ag(T7, T80, T83, T87, T88, front14_in_aa(T87, X121))
U15_ag(T7, T80, T83, T87, T88, front14_out_aa(T87, X121)) → front1_out_ag(tree(T7, tree(T80, T83, T87), T88), [])
front1_in_ag(tree(T7, tree(T80, T83, T87), T91), []) → U16_ag(T7, T80, T83, T87, T91, front14_in_aa(T83, T90))
U16_ag(T7, T80, T83, T87, T91, front14_out_aa(T83, T90)) → U17_ag(T7, T80, T83, T87, T91, T90, front14_in_aa(T87, T89))
U17_ag(T7, T80, T83, T87, T91, T90, front14_out_aa(T87, T89)) → U18_ag(T7, T80, T83, T87, T91, app32_in_aaa(T90, T89, X122))
U18_ag(T7, T80, T83, T87, T91, app32_out_aaa(T90, T89, X122)) → front1_out_ag(tree(T7, tree(T80, T83, T87), T91), [])
front1_in_ag(tree(T7, tree(T80, T83, T87), T95), []) → U19_ag(T7, T80, T83, T87, T95, front14_in_aa(T83, T90))
U19_ag(T7, T80, T83, T87, T95, front14_out_aa(T83, T90)) → U20_ag(T7, T80, T83, T87, T95, T90, front14_in_aa(T87, T89))
U20_ag(T7, T80, T83, T87, T95, T90, front14_out_aa(T87, T89)) → U21_ag(T7, T80, T83, T87, T95, app32_in_aaa(T90, T89, T94))
U21_ag(T7, T80, T83, T87, T95, app32_out_aaa(T90, T89, T94)) → U22_ag(T7, T80, T83, T87, T95, front14_in_aa(T95, X12))
U22_ag(T7, T80, T83, T87, T95, front14_out_aa(T95, X12)) → front1_out_ag(tree(T7, tree(T80, T83, T87), T95), [])
U20_ag(T7, T80, T83, T87, T95, T90, front14_out_aa(T87, T89)) → U23_ag(T7, T80, T83, T87, T95, app32_in_aaa(T90, T89, T99))
U23_ag(T7, T80, T83, T87, T95, app32_out_aaa(T90, T89, T99)) → U24_ag(T7, T80, T83, T87, T95, T99, front14_in_aa(T95, T98))
U24_ag(T7, T80, T83, T87, T95, T99, front14_out_aa(T95, T98)) → U25_ag(T7, T80, T83, T87, T95, app66_in_aa(T99, T98))
app66_in_aa([], []) → app66_out_aa([], [])
U25_ag(T7, T80, T83, T87, T95, app66_out_aa(T99, T98)) → front1_out_ag(tree(T7, tree(T80, T83, T87), T95), [])
front1_in_ag(tree(T111, void, void), .(T111, [])) → front1_out_ag(tree(T111, void, void), .(T111, []))
front1_in_ag(tree(T116, void, T122), .(T119, [])) → U26_ag(T116, T122, T119, front14_in_aa(T122, X155))
U26_ag(T116, T122, T119, front14_out_aa(T122, X155)) → front1_out_ag(tree(T116, void, T122), .(T119, []))
front1_in_ag(tree(T116, void, T122), .(T137, [])) → U27_ag(T116, T122, T137, front14_in_ag(T122, .(T137, [])))
front14_in_ag(void, []) → front14_out_ag(void, [])
front14_in_ag(tree(T18, void, void), .(T18, [])) → front14_out_ag(tree(T18, void, void), .(T18, []))
front14_in_ag(tree(T25, T28, T29), X41) → U1_ag(T25, T28, T29, X41, front14_in_aa(T28, X39))
U1_ag(T25, T28, T29, X41, front14_out_aa(T28, X39)) → front14_out_ag(tree(T25, T28, T29), X41)
front14_in_ag(tree(T25, T28, T31), X41) → U2_ag(T25, T28, T31, X41, front14_in_aa(T28, T30))
U2_ag(T25, T28, T31, X41, front14_out_aa(T28, T30)) → U3_ag(T25, T28, T31, X41, front14_in_aa(T31, X40))
U3_ag(T25, T28, T31, X41, front14_out_aa(T31, X40)) → front14_out_ag(tree(T25, T28, T31), X41)
front14_in_ag(tree(T25, T28, T31), X41) → U4_ag(T25, T28, T31, X41, front14_in_aa(T28, T33))
U4_ag(T25, T28, T31, X41, front14_out_aa(T28, T33)) → U5_ag(T25, T28, T31, X41, T33, front14_in_aa(T31, T32))
U5_ag(T25, T28, T31, X41, T33, front14_out_aa(T31, T32)) → U6_ag(T25, T28, T31, X41, app32_in_aag(T33, T32, X41))
app32_in_aag([], T40, T40) → app32_out_aag([], T40, T40)
app32_in_aag(.(T47, T50), T51, .(T47, X68)) → U7_aag(T47, T50, T51, X68, app32_in_aag(T50, T51, X68))
U7_aag(T47, T50, T51, X68, app32_out_aag(T50, T51, X68)) → app32_out_aag(.(T47, T50), T51, .(T47, X68))
U6_ag(T25, T28, T31, X41, app32_out_aag(T33, T32, X41)) → front14_out_ag(tree(T25, T28, T31), X41)
U27_ag(T116, T122, T137, front14_out_ag(T122, .(T137, []))) → front1_out_ag(tree(T116, void, T122), .(T137, []))
front1_in_ag(tree(T116, tree(T144, void, void), T143), .(T119, [])) → U28_ag(T116, T144, T143, T119, front14_in_aa(T143, X155))
U28_ag(T116, T144, T143, T119, front14_out_aa(T143, X155)) → front1_out_ag(tree(T116, tree(T144, void, void), T143), .(T119, []))
front1_in_ag(tree(T116, tree(T153, void, void), T143), .(T153, [])) → U29_ag(T116, T153, T143, front14_in_aa(T143, T155))
U29_ag(T116, T153, T143, front14_out_aa(T143, T155)) → U30_ag(T116, T153, T143, app15_in_a(T155))
U30_ag(T116, T153, T143, app15_out_a(T155)) → front1_out_ag(tree(T116, tree(T153, void, void), T143), .(T153, []))
front1_in_ag(tree(T116, tree(T164, T167, T168), T169), .(T119, [])) → U31_ag(T116, T164, T167, T168, T169, T119, front14_in_aa(T167, X219))
U31_ag(T116, T164, T167, T168, T169, T119, front14_out_aa(T167, X219)) → front1_out_ag(tree(T116, tree(T164, T167, T168), T169), .(T119, []))
front1_in_ag(tree(T116, tree(T164, T167, T171), T172), .(T119, [])) → U32_ag(T116, T164, T167, T171, T172, T119, front14_in_aa(T167, T170))
U32_ag(T116, T164, T167, T171, T172, T119, front14_out_aa(T167, T170)) → U33_ag(T116, T164, T167, T171, T172, T119, front14_in_aa(T171, X220))
U33_ag(T116, T164, T167, T171, T172, T119, front14_out_aa(T171, X220)) → front1_out_ag(tree(T116, tree(T164, T167, T171), T172), .(T119, []))
front1_in_ag(tree(T116, tree(T164, T167, T171), T175), .(T119, [])) → U34_ag(T116, T164, T167, T171, T175, T119, front14_in_aa(T167, T174))
U34_ag(T116, T164, T167, T171, T175, T119, front14_out_aa(T167, T174)) → U35_ag(T116, T164, T167, T171, T175, T119, T174, front14_in_aa(T171, T173))
U35_ag(T116, T164, T167, T171, T175, T119, T174, front14_out_aa(T171, T173)) → U36_ag(T116, T164, T167, T171, T175, T119, app32_in_aaa(T174, T173, X221))
U36_ag(T116, T164, T167, T171, T175, T119, app32_out_aaa(T174, T173, X221)) → front1_out_ag(tree(T116, tree(T164, T167, T171), T175), .(T119, []))
front1_in_ag(tree(T116, tree(T164, T167, T171), T179), .(T119, [])) → U37_ag(T116, T164, T167, T171, T179, T119, front14_in_aa(T167, T174))
U37_ag(T116, T164, T167, T171, T179, T119, front14_out_aa(T167, T174)) → U38_ag(T116, T164, T167, T171, T179, T119, T174, front14_in_aa(T171, T173))
U38_ag(T116, T164, T167, T171, T179, T119, T174, front14_out_aa(T171, T173)) → U39_ag(T116, T164, T167, T171, T179, T119, app32_in_aaa(T174, T173, T178))
U39_ag(T116, T164, T167, T171, T179, T119, app32_out_aaa(T174, T173, T178)) → U40_ag(T116, T164, T167, T171, T179, T119, front14_in_aa(T179, X155))
U40_ag(T116, T164, T167, T171, T179, T119, front14_out_aa(T179, X155)) → front1_out_ag(tree(T116, tree(T164, T167, T171), T179), .(T119, []))
front1_in_ag(tree(T116, tree(T164, T167, T171), T179), .(T197, [])) → U41_ag(T116, T164, T167, T171, T179, T197, front14_in_aa(T167, T174))
U41_ag(T116, T164, T167, T171, T179, T197, front14_out_aa(T167, T174)) → U42_ag(T116, T164, T167, T171, T179, T197, T174, front14_in_aa(T171, T173))
U42_ag(T116, T164, T167, T171, T179, T197, T174, front14_out_aa(T171, T173)) → U43_ag(T116, T164, T167, T171, T179, T197, app32_in_aag(T174, T173, []))
U43_ag(T116, T164, T167, T171, T179, T197, app32_out_aag(T174, T173, [])) → U44_ag(T116, T164, T167, T171, T179, T197, front14_in_ag(T179, .(T197, [])))
U44_ag(T116, T164, T167, T171, T179, T197, front14_out_ag(T179, .(T197, []))) → front1_out_ag(tree(T116, tree(T164, T167, T171), T179), .(T197, []))
front1_in_ag(tree(T116, tree(T164, T167, T171), T179), .(T204, [])) → U45_ag(T116, T164, T167, T171, T179, T204, front14_in_aa(T167, T174))
U45_ag(T116, T164, T167, T171, T179, T204, front14_out_aa(T167, T174)) → U46_ag(T116, T164, T167, T171, T179, T204, T174, front14_in_aa(T171, T173))
U46_ag(T116, T164, T167, T171, T179, T204, T174, front14_out_aa(T171, T173)) → U47_ag(T116, T164, T167, T171, T179, T204, app32_in_aaa(T174, T173, .(T204, T207)))
U47_ag(T116, T164, T167, T171, T179, T204, app32_out_aaa(T174, T173, .(T204, T207))) → U48_ag(T116, T164, T167, T171, T179, T204, T207, front14_in_aa(T179, T208))
U48_ag(T116, T164, T167, T171, T179, T204, T207, front14_out_aa(T179, T208)) → U49_ag(T116, T164, T167, T171, T179, T204, app66_in_aa(T207, T208))
U49_ag(T116, T164, T167, T171, T179, T204, app66_out_aa(T207, T208)) → front1_out_ag(tree(T116, tree(T164, T167, T171), T179), .(T204, []))
front1_in_ag(tree(T215, void, T221), T218) → U50_ag(T215, T221, T218, front14_in_aa(T221, X265))
U50_ag(T215, T221, T218, front14_out_aa(T221, X265)) → front1_out_ag(tree(T215, void, T221), T218)
front1_in_ag(tree(T215, void, T221), T231) → U51_ag(T215, T221, T231, front14_in_ag(T221, T231))
U51_ag(T215, T221, T231, front14_out_ag(T221, T231)) → front1_out_ag(tree(T215, void, T221), T231)
front1_in_ag(tree(T215, tree(T238, void, void), T237), T218) → U52_ag(T215, T238, T237, T218, front14_in_aa(T237, X265))
U52_ag(T215, T238, T237, T218, front14_out_aa(T237, X265)) → front1_out_ag(tree(T215, tree(T238, void, void), T237), T218)
front1_in_ag(tree(T215, tree(T252, void, void), T237), .(T252, T262)) → U53_ag(T215, T252, T237, T262, front14_in_ag(T237, T262))
U53_ag(T215, T252, T237, T262, front14_out_ag(T237, T262)) → front1_out_ag(tree(T215, tree(T252, void, void), T237), .(T252, T262))
front1_in_ag(tree(T215, tree(T269, T272, T273), T274), T218) → U54_ag(T215, T269, T272, T273, T274, T218, front14_in_aa(T272, X339))
U54_ag(T215, T269, T272, T273, T274, T218, front14_out_aa(T272, X339)) → front1_out_ag(tree(T215, tree(T269, T272, T273), T274), T218)
front1_in_ag(tree(T215, tree(T269, T272, T276), T277), T218) → U55_ag(T215, T269, T272, T276, T277, T218, front14_in_aa(T272, T275))
U55_ag(T215, T269, T272, T276, T277, T218, front14_out_aa(T272, T275)) → U56_ag(T215, T269, T272, T276, T277, T218, front14_in_aa(T276, X340))
U56_ag(T215, T269, T272, T276, T277, T218, front14_out_aa(T276, X340)) → front1_out_ag(tree(T215, tree(T269, T272, T276), T277), T218)
front1_in_ag(tree(T215, tree(T269, T272, T276), T282), T218) → U57_ag(T215, T269, T272, T276, T282, T218, front14_in_aa(T272, T281))
U57_ag(T215, T269, T272, T276, T282, T218, front14_out_aa(T272, T281)) → U58_ag(T215, T269, T272, T276, T282, T218, T281, front14_in_aa(T276, T280))
U58_ag(T215, T269, T272, T276, T282, T218, T281, front14_out_aa(T276, T280)) → U59_ag(T215, T269, T272, T276, T282, T218, app32_in_aaa(T281, T280, X341))
U59_ag(T215, T269, T272, T276, T282, T218, app32_out_aaa(T281, T280, X341)) → front1_out_ag(tree(T215, tree(T269, T272, T276), T282), T218)
front1_in_ag(tree(T215, tree(T269, T272, T276), T288), T218) → U60_ag(T215, T269, T272, T276, T288, T218, front14_in_aa(T272, T281))
U60_ag(T215, T269, T272, T276, T288, T218, front14_out_aa(T272, T281)) → U61_ag(T215, T269, T272, T276, T288, T218, T281, front14_in_aa(T276, T280))
U61_ag(T215, T269, T272, T276, T288, T218, T281, front14_out_aa(T276, T280)) → U62_ag(T215, T269, T272, T276, T288, T218, app32_in_aaa(T281, T280, T287))
U62_ag(T215, T269, T272, T276, T288, T218, app32_out_aaa(T281, T280, T287)) → U63_ag(T215, T269, T272, T276, T288, T218, front14_in_aa(T288, X265))
U63_ag(T215, T269, T272, T276, T288, T218, front14_out_aa(T288, X265)) → front1_out_ag(tree(T215, tree(T269, T272, T276), T288), T218)
front1_in_ag(tree(T215, tree(T269, T272, T276), T288), T303) → U64_ag(T215, T269, T272, T276, T288, T303, front14_in_aa(T272, T281))
U64_ag(T215, T269, T272, T276, T288, T303, front14_out_aa(T272, T281)) → U65_ag(T215, T269, T272, T276, T288, T303, T281, front14_in_aa(T276, T280))
U65_ag(T215, T269, T272, T276, T288, T303, T281, front14_out_aa(T276, T280)) → U66_ag(T215, T269, T272, T276, T288, T303, app32_in_aag(T281, T280, []))
U66_ag(T215, T269, T272, T276, T288, T303, app32_out_aag(T281, T280, [])) → U67_ag(T215, T269, T272, T276, T288, T303, front14_in_ag(T288, T303))
U67_ag(T215, T269, T272, T276, T288, T303, front14_out_ag(T288, T303)) → front1_out_ag(tree(T215, tree(T269, T272, T276), T288), T303)
front1_in_ag(tree(T215, tree(T269, T272, T276), T288), .(T312, T324)) → U68_ag(T215, T269, T272, T276, T288, T312, T324, front14_in_aa(T272, T281))
U68_ag(T215, T269, T272, T276, T288, T312, T324, front14_out_aa(T272, T281)) → U69_ag(T215, T269, T272, T276, T288, T312, T324, T281, front14_in_aa(T276, T280))
U69_ag(T215, T269, T272, T276, T288, T312, T324, T281, front14_out_aa(T276, T280)) → U70_ag(T215, T269, T272, T276, T288, T312, T324, app32_in_aag(T281, T280, .(T312, [])))
U70_ag(T215, T269, T272, T276, T288, T312, T324, app32_out_aag(T281, T280, .(T312, []))) → U71_ag(T215, T269, T272, T276, T288, T312, T324, front14_in_ag(T288, T324))
U71_ag(T215, T269, T272, T276, T288, T312, T324, front14_out_ag(T288, T324)) → front1_out_ag(tree(T215, tree(T269, T272, T276), T288), .(T312, T324))
front1_in_ag(tree(T215, tree(T269, T272, T276), T288), .(T312, .(T333, T336))) → U72_ag(T215, T269, T272, T276, T288, T312, T333, T336, front14_in_aa(T272, T281))
U72_ag(T215, T269, T272, T276, T288, T312, T333, T336, front14_out_aa(T272, T281)) → U73_ag(T215, T269, T272, T276, T288, T312, T333, T336, T281, front14_in_aa(T276, T280))
U73_ag(T215, T269, T272, T276, T288, T312, T333, T336, T281, front14_out_aa(T276, T280)) → U74_ag(T215, T269, T272, T276, T288, T312, T333, T336, app32_in_aaa(T281, T280, .(T312, .(T333, T337))))
U74_ag(T215, T269, T272, T276, T288, T312, T333, T336, app32_out_aaa(T281, T280, .(T312, .(T333, T337)))) → U75_ag(T215, T269, T272, T276, T288, T312, T333, T336, T337, front14_in_aa(T288, T338))
U75_ag(T215, T269, T272, T276, T288, T312, T333, T336, T337, front14_out_aa(T288, T338)) → U76_ag(T215, T269, T272, T276, T288, T312, T333, T336, app178_in_aag(T337, T338, T336))
app178_in_aag([], T345, T345) → app178_out_aag([], T345, T345)
app178_in_aag(.(T354, T358), T359, .(T354, T357)) → U8_aag(T354, T358, T359, T357, app178_in_aag(T358, T359, T357))
U8_aag(T354, T358, T359, T357, app178_out_aag(T358, T359, T357)) → app178_out_aag(.(T354, T358), T359, .(T354, T357))
U76_ag(T215, T269, T272, T276, T288, T312, T333, T336, app178_out_aag(T337, T338, T336)) → front1_out_ag(tree(T215, tree(T269, T272, T276), T288), .(T312, .(T333, T336)))
FRONT1_IN_AG(tree(T7, void, T12), []) → U9_AG(T7, T12, front14_in_aa(T12, X12))
FRONT1_IN_AG(tree(T7, void, T12), []) → FRONT14_IN_AA(T12, X12)
FRONT14_IN_AA(tree(T25, T28, T29), X41) → U1_AA(T25, T28, T29, X41, front14_in_aa(T28, X39))
FRONT14_IN_AA(tree(T25, T28, T29), X41) → FRONT14_IN_AA(T28, X39)
FRONT14_IN_AA(tree(T25, T28, T31), X41) → U2_AA(T25, T28, T31, X41, front14_in_aa(T28, T30))
FRONT14_IN_AA(tree(T25, T28, T31), X41) → U4_AA(T25, T28, T31, X41, front14_in_aa(T28, T33))
U4_AA(T25, T28, T31, X41, front14_out_aa(T28, T33)) → U5_AA(T25, T28, T31, X41, T33, front14_in_aa(T31, T32))
U4_AA(T25, T28, T31, X41, front14_out_aa(T28, T33)) → FRONT14_IN_AA(T31, T32)
U5_AA(T25, T28, T31, X41, T33, front14_out_aa(T31, T32)) → U6_AA(T25, T28, T31, X41, app32_in_aaa(T33, T32, X41))
U5_AA(T25, T28, T31, X41, T33, front14_out_aa(T31, T32)) → APP32_IN_AAA(T33, T32, X41)
APP32_IN_AAA(.(T47, T50), T51, .(T47, X68)) → U7_AAA(T47, T50, T51, X68, app32_in_aaa(T50, T51, X68))
APP32_IN_AAA(.(T47, T50), T51, .(T47, X68)) → APP32_IN_AAA(T50, T51, X68)
U2_AA(T25, T28, T31, X41, front14_out_aa(T28, T30)) → U3_AA(T25, T28, T31, X41, front14_in_aa(T31, X40))
U2_AA(T25, T28, T31, X41, front14_out_aa(T28, T30)) → FRONT14_IN_AA(T31, X40)
FRONT1_IN_AG(tree(T7, void, T12), []) → U10_AG(T7, T12, front14_in_aa(T12, T13))
U10_AG(T7, T12, front14_out_aa(T12, T13)) → U11_AG(T7, T12, app15_in_a(T13))
U10_AG(T7, T12, front14_out_aa(T12, T13)) → APP15_IN_A(T13)
FRONT1_IN_AG(tree(T7, tree(T67, void, void), T66), []) → U12_AG(T7, T67, T66, front14_in_aa(T66, X12))
FRONT1_IN_AG(tree(T7, tree(T67, void, void), T66), []) → FRONT14_IN_AA(T66, X12)
FRONT1_IN_AG(tree(T7, tree(T80, T83, T84), T85), []) → U13_AG(T7, T80, T83, T84, T85, front14_in_aa(T83, X120))
FRONT1_IN_AG(tree(T7, tree(T80, T83, T84), T85), []) → FRONT14_IN_AA(T83, X120)
FRONT1_IN_AG(tree(T7, tree(T80, T83, T87), T88), []) → U14_AG(T7, T80, T83, T87, T88, front14_in_aa(T83, T86))
U14_AG(T7, T80, T83, T87, T88, front14_out_aa(T83, T86)) → U15_AG(T7, T80, T83, T87, T88, front14_in_aa(T87, X121))
U14_AG(T7, T80, T83, T87, T88, front14_out_aa(T83, T86)) → FRONT14_IN_AA(T87, X121)
FRONT1_IN_AG(tree(T7, tree(T80, T83, T87), T91), []) → U16_AG(T7, T80, T83, T87, T91, front14_in_aa(T83, T90))
U16_AG(T7, T80, T83, T87, T91, front14_out_aa(T83, T90)) → U17_AG(T7, T80, T83, T87, T91, T90, front14_in_aa(T87, T89))
U16_AG(T7, T80, T83, T87, T91, front14_out_aa(T83, T90)) → FRONT14_IN_AA(T87, T89)
U17_AG(T7, T80, T83, T87, T91, T90, front14_out_aa(T87, T89)) → U18_AG(T7, T80, T83, T87, T91, app32_in_aaa(T90, T89, X122))
U17_AG(T7, T80, T83, T87, T91, T90, front14_out_aa(T87, T89)) → APP32_IN_AAA(T90, T89, X122)
FRONT1_IN_AG(tree(T7, tree(T80, T83, T87), T95), []) → U19_AG(T7, T80, T83, T87, T95, front14_in_aa(T83, T90))
U19_AG(T7, T80, T83, T87, T95, front14_out_aa(T83, T90)) → U20_AG(T7, T80, T83, T87, T95, T90, front14_in_aa(T87, T89))
U19_AG(T7, T80, T83, T87, T95, front14_out_aa(T83, T90)) → FRONT14_IN_AA(T87, T89)
U20_AG(T7, T80, T83, T87, T95, T90, front14_out_aa(T87, T89)) → U21_AG(T7, T80, T83, T87, T95, app32_in_aaa(T90, T89, T94))
U20_AG(T7, T80, T83, T87, T95, T90, front14_out_aa(T87, T89)) → APP32_IN_AAA(T90, T89, T94)
U21_AG(T7, T80, T83, T87, T95, app32_out_aaa(T90, T89, T94)) → U22_AG(T7, T80, T83, T87, T95, front14_in_aa(T95, X12))
U21_AG(T7, T80, T83, T87, T95, app32_out_aaa(T90, T89, T94)) → FRONT14_IN_AA(T95, X12)
U20_AG(T7, T80, T83, T87, T95, T90, front14_out_aa(T87, T89)) → U23_AG(T7, T80, T83, T87, T95, app32_in_aaa(T90, T89, T99))
U23_AG(T7, T80, T83, T87, T95, app32_out_aaa(T90, T89, T99)) → U24_AG(T7, T80, T83, T87, T95, T99, front14_in_aa(T95, T98))
U23_AG(T7, T80, T83, T87, T95, app32_out_aaa(T90, T89, T99)) → FRONT14_IN_AA(T95, T98)
U24_AG(T7, T80, T83, T87, T95, T99, front14_out_aa(T95, T98)) → U25_AG(T7, T80, T83, T87, T95, app66_in_aa(T99, T98))
U24_AG(T7, T80, T83, T87, T95, T99, front14_out_aa(T95, T98)) → APP66_IN_AA(T99, T98)
FRONT1_IN_AG(tree(T116, void, T122), .(T119, [])) → U26_AG(T116, T122, T119, front14_in_aa(T122, X155))
FRONT1_IN_AG(tree(T116, void, T122), .(T119, [])) → FRONT14_IN_AA(T122, X155)
FRONT1_IN_AG(tree(T116, void, T122), .(T137, [])) → U27_AG(T116, T122, T137, front14_in_ag(T122, .(T137, [])))
FRONT1_IN_AG(tree(T116, void, T122), .(T137, [])) → FRONT14_IN_AG(T122, .(T137, []))
FRONT14_IN_AG(tree(T25, T28, T29), X41) → U1_AG(T25, T28, T29, X41, front14_in_aa(T28, X39))
FRONT14_IN_AG(tree(T25, T28, T29), X41) → FRONT14_IN_AA(T28, X39)
FRONT14_IN_AG(tree(T25, T28, T31), X41) → U2_AG(T25, T28, T31, X41, front14_in_aa(T28, T30))
U2_AG(T25, T28, T31, X41, front14_out_aa(T28, T30)) → U3_AG(T25, T28, T31, X41, front14_in_aa(T31, X40))
U2_AG(T25, T28, T31, X41, front14_out_aa(T28, T30)) → FRONT14_IN_AA(T31, X40)
FRONT14_IN_AG(tree(T25, T28, T31), X41) → U4_AG(T25, T28, T31, X41, front14_in_aa(T28, T33))
U4_AG(T25, T28, T31, X41, front14_out_aa(T28, T33)) → U5_AG(T25, T28, T31, X41, T33, front14_in_aa(T31, T32))
U4_AG(T25, T28, T31, X41, front14_out_aa(T28, T33)) → FRONT14_IN_AA(T31, T32)
U5_AG(T25, T28, T31, X41, T33, front14_out_aa(T31, T32)) → U6_AG(T25, T28, T31, X41, app32_in_aag(T33, T32, X41))
U5_AG(T25, T28, T31, X41, T33, front14_out_aa(T31, T32)) → APP32_IN_AAG(T33, T32, X41)
APP32_IN_AAG(.(T47, T50), T51, .(T47, X68)) → U7_AAG(T47, T50, T51, X68, app32_in_aag(T50, T51, X68))
APP32_IN_AAG(.(T47, T50), T51, .(T47, X68)) → APP32_IN_AAG(T50, T51, X68)
FRONT1_IN_AG(tree(T116, tree(T144, void, void), T143), .(T119, [])) → U28_AG(T116, T144, T143, T119, front14_in_aa(T143, X155))
FRONT1_IN_AG(tree(T116, tree(T144, void, void), T143), .(T119, [])) → FRONT14_IN_AA(T143, X155)
FRONT1_IN_AG(tree(T116, tree(T153, void, void), T143), .(T153, [])) → U29_AG(T116, T153, T143, front14_in_aa(T143, T155))
FRONT1_IN_AG(tree(T116, tree(T153, void, void), T143), .(T153, [])) → FRONT14_IN_AA(T143, T155)
U29_AG(T116, T153, T143, front14_out_aa(T143, T155)) → U30_AG(T116, T153, T143, app15_in_a(T155))
U29_AG(T116, T153, T143, front14_out_aa(T143, T155)) → APP15_IN_A(T155)
FRONT1_IN_AG(tree(T116, tree(T164, T167, T168), T169), .(T119, [])) → U31_AG(T116, T164, T167, T168, T169, T119, front14_in_aa(T167, X219))
FRONT1_IN_AG(tree(T116, tree(T164, T167, T168), T169), .(T119, [])) → FRONT14_IN_AA(T167, X219)
FRONT1_IN_AG(tree(T116, tree(T164, T167, T171), T172), .(T119, [])) → U32_AG(T116, T164, T167, T171, T172, T119, front14_in_aa(T167, T170))
U32_AG(T116, T164, T167, T171, T172, T119, front14_out_aa(T167, T170)) → U33_AG(T116, T164, T167, T171, T172, T119, front14_in_aa(T171, X220))
U32_AG(T116, T164, T167, T171, T172, T119, front14_out_aa(T167, T170)) → FRONT14_IN_AA(T171, X220)
FRONT1_IN_AG(tree(T116, tree(T164, T167, T171), T175), .(T119, [])) → U34_AG(T116, T164, T167, T171, T175, T119, front14_in_aa(T167, T174))
U34_AG(T116, T164, T167, T171, T175, T119, front14_out_aa(T167, T174)) → U35_AG(T116, T164, T167, T171, T175, T119, T174, front14_in_aa(T171, T173))
U34_AG(T116, T164, T167, T171, T175, T119, front14_out_aa(T167, T174)) → FRONT14_IN_AA(T171, T173)
U35_AG(T116, T164, T167, T171, T175, T119, T174, front14_out_aa(T171, T173)) → U36_AG(T116, T164, T167, T171, T175, T119, app32_in_aaa(T174, T173, X221))
U35_AG(T116, T164, T167, T171, T175, T119, T174, front14_out_aa(T171, T173)) → APP32_IN_AAA(T174, T173, X221)
FRONT1_IN_AG(tree(T116, tree(T164, T167, T171), T179), .(T119, [])) → U37_AG(T116, T164, T167, T171, T179, T119, front14_in_aa(T167, T174))
U37_AG(T116, T164, T167, T171, T179, T119, front14_out_aa(T167, T174)) → U38_AG(T116, T164, T167, T171, T179, T119, T174, front14_in_aa(T171, T173))
U37_AG(T116, T164, T167, T171, T179, T119, front14_out_aa(T167, T174)) → FRONT14_IN_AA(T171, T173)
U38_AG(T116, T164, T167, T171, T179, T119, T174, front14_out_aa(T171, T173)) → U39_AG(T116, T164, T167, T171, T179, T119, app32_in_aaa(T174, T173, T178))
U38_AG(T116, T164, T167, T171, T179, T119, T174, front14_out_aa(T171, T173)) → APP32_IN_AAA(T174, T173, T178)
U39_AG(T116, T164, T167, T171, T179, T119, app32_out_aaa(T174, T173, T178)) → U40_AG(T116, T164, T167, T171, T179, T119, front14_in_aa(T179, X155))
U39_AG(T116, T164, T167, T171, T179, T119, app32_out_aaa(T174, T173, T178)) → FRONT14_IN_AA(T179, X155)
FRONT1_IN_AG(tree(T116, tree(T164, T167, T171), T179), .(T197, [])) → U41_AG(T116, T164, T167, T171, T179, T197, front14_in_aa(T167, T174))
U41_AG(T116, T164, T167, T171, T179, T197, front14_out_aa(T167, T174)) → U42_AG(T116, T164, T167, T171, T179, T197, T174, front14_in_aa(T171, T173))
U41_AG(T116, T164, T167, T171, T179, T197, front14_out_aa(T167, T174)) → FRONT14_IN_AA(T171, T173)
U42_AG(T116, T164, T167, T171, T179, T197, T174, front14_out_aa(T171, T173)) → U43_AG(T116, T164, T167, T171, T179, T197, app32_in_aag(T174, T173, []))
U42_AG(T116, T164, T167, T171, T179, T197, T174, front14_out_aa(T171, T173)) → APP32_IN_AAG(T174, T173, [])
U43_AG(T116, T164, T167, T171, T179, T197, app32_out_aag(T174, T173, [])) → U44_AG(T116, T164, T167, T171, T179, T197, front14_in_ag(T179, .(T197, [])))
U43_AG(T116, T164, T167, T171, T179, T197, app32_out_aag(T174, T173, [])) → FRONT14_IN_AG(T179, .(T197, []))
FRONT1_IN_AG(tree(T116, tree(T164, T167, T171), T179), .(T204, [])) → U45_AG(T116, T164, T167, T171, T179, T204, front14_in_aa(T167, T174))
U45_AG(T116, T164, T167, T171, T179, T204, front14_out_aa(T167, T174)) → U46_AG(T116, T164, T167, T171, T179, T204, T174, front14_in_aa(T171, T173))
U45_AG(T116, T164, T167, T171, T179, T204, front14_out_aa(T167, T174)) → FRONT14_IN_AA(T171, T173)
U46_AG(T116, T164, T167, T171, T179, T204, T174, front14_out_aa(T171, T173)) → U47_AG(T116, T164, T167, T171, T179, T204, app32_in_aaa(T174, T173, .(T204, T207)))
U46_AG(T116, T164, T167, T171, T179, T204, T174, front14_out_aa(T171, T173)) → APP32_IN_AAA(T174, T173, .(T204, T207))
U47_AG(T116, T164, T167, T171, T179, T204, app32_out_aaa(T174, T173, .(T204, T207))) → U48_AG(T116, T164, T167, T171, T179, T204, T207, front14_in_aa(T179, T208))
U47_AG(T116, T164, T167, T171, T179, T204, app32_out_aaa(T174, T173, .(T204, T207))) → FRONT14_IN_AA(T179, T208)
U48_AG(T116, T164, T167, T171, T179, T204, T207, front14_out_aa(T179, T208)) → U49_AG(T116, T164, T167, T171, T179, T204, app66_in_aa(T207, T208))
U48_AG(T116, T164, T167, T171, T179, T204, T207, front14_out_aa(T179, T208)) → APP66_IN_AA(T207, T208)
FRONT1_IN_AG(tree(T215, void, T221), T218) → U50_AG(T215, T221, T218, front14_in_aa(T221, X265))
FRONT1_IN_AG(tree(T215, void, T221), T218) → FRONT14_IN_AA(T221, X265)
FRONT1_IN_AG(tree(T215, void, T221), T231) → U51_AG(T215, T221, T231, front14_in_ag(T221, T231))
FRONT1_IN_AG(tree(T215, void, T221), T231) → FRONT14_IN_AG(T221, T231)
FRONT1_IN_AG(tree(T215, tree(T238, void, void), T237), T218) → U52_AG(T215, T238, T237, T218, front14_in_aa(T237, X265))
FRONT1_IN_AG(tree(T215, tree(T238, void, void), T237), T218) → FRONT14_IN_AA(T237, X265)
FRONT1_IN_AG(tree(T215, tree(T252, void, void), T237), .(T252, T262)) → U53_AG(T215, T252, T237, T262, front14_in_ag(T237, T262))
FRONT1_IN_AG(tree(T215, tree(T252, void, void), T237), .(T252, T262)) → FRONT14_IN_AG(T237, T262)
FRONT1_IN_AG(tree(T215, tree(T269, T272, T273), T274), T218) → U54_AG(T215, T269, T272, T273, T274, T218, front14_in_aa(T272, X339))
FRONT1_IN_AG(tree(T215, tree(T269, T272, T273), T274), T218) → FRONT14_IN_AA(T272, X339)
FRONT1_IN_AG(tree(T215, tree(T269, T272, T276), T277), T218) → U55_AG(T215, T269, T272, T276, T277, T218, front14_in_aa(T272, T275))
U55_AG(T215, T269, T272, T276, T277, T218, front14_out_aa(T272, T275)) → U56_AG(T215, T269, T272, T276, T277, T218, front14_in_aa(T276, X340))
U55_AG(T215, T269, T272, T276, T277, T218, front14_out_aa(T272, T275)) → FRONT14_IN_AA(T276, X340)
FRONT1_IN_AG(tree(T215, tree(T269, T272, T276), T282), T218) → U57_AG(T215, T269, T272, T276, T282, T218, front14_in_aa(T272, T281))
U57_AG(T215, T269, T272, T276, T282, T218, front14_out_aa(T272, T281)) → U58_AG(T215, T269, T272, T276, T282, T218, T281, front14_in_aa(T276, T280))
U57_AG(T215, T269, T272, T276, T282, T218, front14_out_aa(T272, T281)) → FRONT14_IN_AA(T276, T280)
U58_AG(T215, T269, T272, T276, T282, T218, T281, front14_out_aa(T276, T280)) → U59_AG(T215, T269, T272, T276, T282, T218, app32_in_aaa(T281, T280, X341))
U58_AG(T215, T269, T272, T276, T282, T218, T281, front14_out_aa(T276, T280)) → APP32_IN_AAA(T281, T280, X341)
FRONT1_IN_AG(tree(T215, tree(T269, T272, T276), T288), T218) → U60_AG(T215, T269, T272, T276, T288, T218, front14_in_aa(T272, T281))
U60_AG(T215, T269, T272, T276, T288, T218, front14_out_aa(T272, T281)) → U61_AG(T215, T269, T272, T276, T288, T218, T281, front14_in_aa(T276, T280))
U60_AG(T215, T269, T272, T276, T288, T218, front14_out_aa(T272, T281)) → FRONT14_IN_AA(T276, T280)
U61_AG(T215, T269, T272, T276, T288, T218, T281, front14_out_aa(T276, T280)) → U62_AG(T215, T269, T272, T276, T288, T218, app32_in_aaa(T281, T280, T287))
U61_AG(T215, T269, T272, T276, T288, T218, T281, front14_out_aa(T276, T280)) → APP32_IN_AAA(T281, T280, T287)
U62_AG(T215, T269, T272, T276, T288, T218, app32_out_aaa(T281, T280, T287)) → U63_AG(T215, T269, T272, T276, T288, T218, front14_in_aa(T288, X265))
U62_AG(T215, T269, T272, T276, T288, T218, app32_out_aaa(T281, T280, T287)) → FRONT14_IN_AA(T288, X265)
FRONT1_IN_AG(tree(T215, tree(T269, T272, T276), T288), T303) → U64_AG(T215, T269, T272, T276, T288, T303, front14_in_aa(T272, T281))
U64_AG(T215, T269, T272, T276, T288, T303, front14_out_aa(T272, T281)) → U65_AG(T215, T269, T272, T276, T288, T303, T281, front14_in_aa(T276, T280))
U64_AG(T215, T269, T272, T276, T288, T303, front14_out_aa(T272, T281)) → FRONT14_IN_AA(T276, T280)
U65_AG(T215, T269, T272, T276, T288, T303, T281, front14_out_aa(T276, T280)) → U66_AG(T215, T269, T272, T276, T288, T303, app32_in_aag(T281, T280, []))
U65_AG(T215, T269, T272, T276, T288, T303, T281, front14_out_aa(T276, T280)) → APP32_IN_AAG(T281, T280, [])
U66_AG(T215, T269, T272, T276, T288, T303, app32_out_aag(T281, T280, [])) → U67_AG(T215, T269, T272, T276, T288, T303, front14_in_ag(T288, T303))
U66_AG(T215, T269, T272, T276, T288, T303, app32_out_aag(T281, T280, [])) → FRONT14_IN_AG(T288, T303)
FRONT1_IN_AG(tree(T215, tree(T269, T272, T276), T288), .(T312, T324)) → U68_AG(T215, T269, T272, T276, T288, T312, T324, front14_in_aa(T272, T281))
FRONT1_IN_AG(tree(T215, tree(T269, T272, T276), T288), .(T312, T324)) → FRONT14_IN_AA(T272, T281)
U68_AG(T215, T269, T272, T276, T288, T312, T324, front14_out_aa(T272, T281)) → U69_AG(T215, T269, T272, T276, T288, T312, T324, T281, front14_in_aa(T276, T280))
U68_AG(T215, T269, T272, T276, T288, T312, T324, front14_out_aa(T272, T281)) → FRONT14_IN_AA(T276, T280)
U69_AG(T215, T269, T272, T276, T288, T312, T324, T281, front14_out_aa(T276, T280)) → U70_AG(T215, T269, T272, T276, T288, T312, T324, app32_in_aag(T281, T280, .(T312, [])))
U69_AG(T215, T269, T272, T276, T288, T312, T324, T281, front14_out_aa(T276, T280)) → APP32_IN_AAG(T281, T280, .(T312, []))
U70_AG(T215, T269, T272, T276, T288, T312, T324, app32_out_aag(T281, T280, .(T312, []))) → U71_AG(T215, T269, T272, T276, T288, T312, T324, front14_in_ag(T288, T324))
U70_AG(T215, T269, T272, T276, T288, T312, T324, app32_out_aag(T281, T280, .(T312, []))) → FRONT14_IN_AG(T288, T324)
FRONT1_IN_AG(tree(T215, tree(T269, T272, T276), T288), .(T312, .(T333, T336))) → U72_AG(T215, T269, T272, T276, T288, T312, T333, T336, front14_in_aa(T272, T281))
FRONT1_IN_AG(tree(T215, tree(T269, T272, T276), T288), .(T312, .(T333, T336))) → FRONT14_IN_AA(T272, T281)
U72_AG(T215, T269, T272, T276, T288, T312, T333, T336, front14_out_aa(T272, T281)) → U73_AG(T215, T269, T272, T276, T288, T312, T333, T336, T281, front14_in_aa(T276, T280))
U72_AG(T215, T269, T272, T276, T288, T312, T333, T336, front14_out_aa(T272, T281)) → FRONT14_IN_AA(T276, T280)
U73_AG(T215, T269, T272, T276, T288, T312, T333, T336, T281, front14_out_aa(T276, T280)) → U74_AG(T215, T269, T272, T276, T288, T312, T333, T336, app32_in_aaa(T281, T280, .(T312, .(T333, T337))))
U73_AG(T215, T269, T272, T276, T288, T312, T333, T336, T281, front14_out_aa(T276, T280)) → APP32_IN_AAA(T281, T280, .(T312, .(T333, T337)))
U74_AG(T215, T269, T272, T276, T288, T312, T333, T336, app32_out_aaa(T281, T280, .(T312, .(T333, T337)))) → U75_AG(T215, T269, T272, T276, T288, T312, T333, T336, T337, front14_in_aa(T288, T338))
U74_AG(T215, T269, T272, T276, T288, T312, T333, T336, app32_out_aaa(T281, T280, .(T312, .(T333, T337)))) → FRONT14_IN_AA(T288, T338)
U75_AG(T215, T269, T272, T276, T288, T312, T333, T336, T337, front14_out_aa(T288, T338)) → U76_AG(T215, T269, T272, T276, T288, T312, T333, T336, app178_in_aag(T337, T338, T336))
U75_AG(T215, T269, T272, T276, T288, T312, T333, T336, T337, front14_out_aa(T288, T338)) → APP178_IN_AAG(T337, T338, T336)
APP178_IN_AAG(.(T354, T358), T359, .(T354, T357)) → U8_AAG(T354, T358, T359, T357, app178_in_aag(T358, T359, T357))
APP178_IN_AAG(.(T354, T358), T359, .(T354, T357)) → APP178_IN_AAG(T358, T359, T357)
front1_in_ag(void, []) → front1_out_ag(void, [])
front1_in_ag(tree(T7, void, T12), []) → U9_ag(T7, T12, front14_in_aa(T12, X12))
front14_in_aa(void, []) → front14_out_aa(void, [])
front14_in_aa(tree(T18, void, void), .(T18, [])) → front14_out_aa(tree(T18, void, void), .(T18, []))
front14_in_aa(tree(T25, T28, T29), X41) → U1_aa(T25, T28, T29, X41, front14_in_aa(T28, X39))
front14_in_aa(tree(T25, T28, T31), X41) → U2_aa(T25, T28, T31, X41, front14_in_aa(T28, T30))
front14_in_aa(tree(T25, T28, T31), X41) → U4_aa(T25, T28, T31, X41, front14_in_aa(T28, T33))
U4_aa(T25, T28, T31, X41, front14_out_aa(T28, T33)) → U5_aa(T25, T28, T31, X41, T33, front14_in_aa(T31, T32))
U5_aa(T25, T28, T31, X41, T33, front14_out_aa(T31, T32)) → U6_aa(T25, T28, T31, X41, app32_in_aaa(T33, T32, X41))
app32_in_aaa([], T40, T40) → app32_out_aaa([], T40, T40)
app32_in_aaa(.(T47, T50), T51, .(T47, X68)) → U7_aaa(T47, T50, T51, X68, app32_in_aaa(T50, T51, X68))
U7_aaa(T47, T50, T51, X68, app32_out_aaa(T50, T51, X68)) → app32_out_aaa(.(T47, T50), T51, .(T47, X68))
U6_aa(T25, T28, T31, X41, app32_out_aaa(T33, T32, X41)) → front14_out_aa(tree(T25, T28, T31), X41)
U2_aa(T25, T28, T31, X41, front14_out_aa(T28, T30)) → U3_aa(T25, T28, T31, X41, front14_in_aa(T31, X40))
U3_aa(T25, T28, T31, X41, front14_out_aa(T31, X40)) → front14_out_aa(tree(T25, T28, T31), X41)
U1_aa(T25, T28, T29, X41, front14_out_aa(T28, X39)) → front14_out_aa(tree(T25, T28, T29), X41)
U9_ag(T7, T12, front14_out_aa(T12, X12)) → front1_out_ag(tree(T7, void, T12), [])
front1_in_ag(tree(T7, void, T12), []) → U10_ag(T7, T12, front14_in_aa(T12, T13))
U10_ag(T7, T12, front14_out_aa(T12, T13)) → U11_ag(T7, T12, app15_in_a(T13))
app15_in_a([]) → app15_out_a([])
U11_ag(T7, T12, app15_out_a(T13)) → front1_out_ag(tree(T7, void, T12), [])
front1_in_ag(tree(T7, tree(T67, void, void), T66), []) → U12_ag(T7, T67, T66, front14_in_aa(T66, X12))
U12_ag(T7, T67, T66, front14_out_aa(T66, X12)) → front1_out_ag(tree(T7, tree(T67, void, void), T66), [])
front1_in_ag(tree(T7, tree(T80, T83, T84), T85), []) → U13_ag(T7, T80, T83, T84, T85, front14_in_aa(T83, X120))
U13_ag(T7, T80, T83, T84, T85, front14_out_aa(T83, X120)) → front1_out_ag(tree(T7, tree(T80, T83, T84), T85), [])
front1_in_ag(tree(T7, tree(T80, T83, T87), T88), []) → U14_ag(T7, T80, T83, T87, T88, front14_in_aa(T83, T86))
U14_ag(T7, T80, T83, T87, T88, front14_out_aa(T83, T86)) → U15_ag(T7, T80, T83, T87, T88, front14_in_aa(T87, X121))
U15_ag(T7, T80, T83, T87, T88, front14_out_aa(T87, X121)) → front1_out_ag(tree(T7, tree(T80, T83, T87), T88), [])
front1_in_ag(tree(T7, tree(T80, T83, T87), T91), []) → U16_ag(T7, T80, T83, T87, T91, front14_in_aa(T83, T90))
U16_ag(T7, T80, T83, T87, T91, front14_out_aa(T83, T90)) → U17_ag(T7, T80, T83, T87, T91, T90, front14_in_aa(T87, T89))
U17_ag(T7, T80, T83, T87, T91, T90, front14_out_aa(T87, T89)) → U18_ag(T7, T80, T83, T87, T91, app32_in_aaa(T90, T89, X122))
U18_ag(T7, T80, T83, T87, T91, app32_out_aaa(T90, T89, X122)) → front1_out_ag(tree(T7, tree(T80, T83, T87), T91), [])
front1_in_ag(tree(T7, tree(T80, T83, T87), T95), []) → U19_ag(T7, T80, T83, T87, T95, front14_in_aa(T83, T90))
U19_ag(T7, T80, T83, T87, T95, front14_out_aa(T83, T90)) → U20_ag(T7, T80, T83, T87, T95, T90, front14_in_aa(T87, T89))
U20_ag(T7, T80, T83, T87, T95, T90, front14_out_aa(T87, T89)) → U21_ag(T7, T80, T83, T87, T95, app32_in_aaa(T90, T89, T94))
U21_ag(T7, T80, T83, T87, T95, app32_out_aaa(T90, T89, T94)) → U22_ag(T7, T80, T83, T87, T95, front14_in_aa(T95, X12))
U22_ag(T7, T80, T83, T87, T95, front14_out_aa(T95, X12)) → front1_out_ag(tree(T7, tree(T80, T83, T87), T95), [])
U20_ag(T7, T80, T83, T87, T95, T90, front14_out_aa(T87, T89)) → U23_ag(T7, T80, T83, T87, T95, app32_in_aaa(T90, T89, T99))
U23_ag(T7, T80, T83, T87, T95, app32_out_aaa(T90, T89, T99)) → U24_ag(T7, T80, T83, T87, T95, T99, front14_in_aa(T95, T98))
U24_ag(T7, T80, T83, T87, T95, T99, front14_out_aa(T95, T98)) → U25_ag(T7, T80, T83, T87, T95, app66_in_aa(T99, T98))
app66_in_aa([], []) → app66_out_aa([], [])
U25_ag(T7, T80, T83, T87, T95, app66_out_aa(T99, T98)) → front1_out_ag(tree(T7, tree(T80, T83, T87), T95), [])
front1_in_ag(tree(T111, void, void), .(T111, [])) → front1_out_ag(tree(T111, void, void), .(T111, []))
front1_in_ag(tree(T116, void, T122), .(T119, [])) → U26_ag(T116, T122, T119, front14_in_aa(T122, X155))
U26_ag(T116, T122, T119, front14_out_aa(T122, X155)) → front1_out_ag(tree(T116, void, T122), .(T119, []))
front1_in_ag(tree(T116, void, T122), .(T137, [])) → U27_ag(T116, T122, T137, front14_in_ag(T122, .(T137, [])))
front14_in_ag(void, []) → front14_out_ag(void, [])
front14_in_ag(tree(T18, void, void), .(T18, [])) → front14_out_ag(tree(T18, void, void), .(T18, []))
front14_in_ag(tree(T25, T28, T29), X41) → U1_ag(T25, T28, T29, X41, front14_in_aa(T28, X39))
U1_ag(T25, T28, T29, X41, front14_out_aa(T28, X39)) → front14_out_ag(tree(T25, T28, T29), X41)
front14_in_ag(tree(T25, T28, T31), X41) → U2_ag(T25, T28, T31, X41, front14_in_aa(T28, T30))
U2_ag(T25, T28, T31, X41, front14_out_aa(T28, T30)) → U3_ag(T25, T28, T31, X41, front14_in_aa(T31, X40))
U3_ag(T25, T28, T31, X41, front14_out_aa(T31, X40)) → front14_out_ag(tree(T25, T28, T31), X41)
front14_in_ag(tree(T25, T28, T31), X41) → U4_ag(T25, T28, T31, X41, front14_in_aa(T28, T33))
U4_ag(T25, T28, T31, X41, front14_out_aa(T28, T33)) → U5_ag(T25, T28, T31, X41, T33, front14_in_aa(T31, T32))
U5_ag(T25, T28, T31, X41, T33, front14_out_aa(T31, T32)) → U6_ag(T25, T28, T31, X41, app32_in_aag(T33, T32, X41))
app32_in_aag([], T40, T40) → app32_out_aag([], T40, T40)
app32_in_aag(.(T47, T50), T51, .(T47, X68)) → U7_aag(T47, T50, T51, X68, app32_in_aag(T50, T51, X68))
U7_aag(T47, T50, T51, X68, app32_out_aag(T50, T51, X68)) → app32_out_aag(.(T47, T50), T51, .(T47, X68))
U6_ag(T25, T28, T31, X41, app32_out_aag(T33, T32, X41)) → front14_out_ag(tree(T25, T28, T31), X41)
U27_ag(T116, T122, T137, front14_out_ag(T122, .(T137, []))) → front1_out_ag(tree(T116, void, T122), .(T137, []))
front1_in_ag(tree(T116, tree(T144, void, void), T143), .(T119, [])) → U28_ag(T116, T144, T143, T119, front14_in_aa(T143, X155))
U28_ag(T116, T144, T143, T119, front14_out_aa(T143, X155)) → front1_out_ag(tree(T116, tree(T144, void, void), T143), .(T119, []))
front1_in_ag(tree(T116, tree(T153, void, void), T143), .(T153, [])) → U29_ag(T116, T153, T143, front14_in_aa(T143, T155))
U29_ag(T116, T153, T143, front14_out_aa(T143, T155)) → U30_ag(T116, T153, T143, app15_in_a(T155))
U30_ag(T116, T153, T143, app15_out_a(T155)) → front1_out_ag(tree(T116, tree(T153, void, void), T143), .(T153, []))
front1_in_ag(tree(T116, tree(T164, T167, T168), T169), .(T119, [])) → U31_ag(T116, T164, T167, T168, T169, T119, front14_in_aa(T167, X219))
U31_ag(T116, T164, T167, T168, T169, T119, front14_out_aa(T167, X219)) → front1_out_ag(tree(T116, tree(T164, T167, T168), T169), .(T119, []))
front1_in_ag(tree(T116, tree(T164, T167, T171), T172), .(T119, [])) → U32_ag(T116, T164, T167, T171, T172, T119, front14_in_aa(T167, T170))
U32_ag(T116, T164, T167, T171, T172, T119, front14_out_aa(T167, T170)) → U33_ag(T116, T164, T167, T171, T172, T119, front14_in_aa(T171, X220))
U33_ag(T116, T164, T167, T171, T172, T119, front14_out_aa(T171, X220)) → front1_out_ag(tree(T116, tree(T164, T167, T171), T172), .(T119, []))
front1_in_ag(tree(T116, tree(T164, T167, T171), T175), .(T119, [])) → U34_ag(T116, T164, T167, T171, T175, T119, front14_in_aa(T167, T174))
U34_ag(T116, T164, T167, T171, T175, T119, front14_out_aa(T167, T174)) → U35_ag(T116, T164, T167, T171, T175, T119, T174, front14_in_aa(T171, T173))
U35_ag(T116, T164, T167, T171, T175, T119, T174, front14_out_aa(T171, T173)) → U36_ag(T116, T164, T167, T171, T175, T119, app32_in_aaa(T174, T173, X221))
U36_ag(T116, T164, T167, T171, T175, T119, app32_out_aaa(T174, T173, X221)) → front1_out_ag(tree(T116, tree(T164, T167, T171), T175), .(T119, []))
front1_in_ag(tree(T116, tree(T164, T167, T171), T179), .(T119, [])) → U37_ag(T116, T164, T167, T171, T179, T119, front14_in_aa(T167, T174))
U37_ag(T116, T164, T167, T171, T179, T119, front14_out_aa(T167, T174)) → U38_ag(T116, T164, T167, T171, T179, T119, T174, front14_in_aa(T171, T173))
U38_ag(T116, T164, T167, T171, T179, T119, T174, front14_out_aa(T171, T173)) → U39_ag(T116, T164, T167, T171, T179, T119, app32_in_aaa(T174, T173, T178))
U39_ag(T116, T164, T167, T171, T179, T119, app32_out_aaa(T174, T173, T178)) → U40_ag(T116, T164, T167, T171, T179, T119, front14_in_aa(T179, X155))
U40_ag(T116, T164, T167, T171, T179, T119, front14_out_aa(T179, X155)) → front1_out_ag(tree(T116, tree(T164, T167, T171), T179), .(T119, []))
front1_in_ag(tree(T116, tree(T164, T167, T171), T179), .(T197, [])) → U41_ag(T116, T164, T167, T171, T179, T197, front14_in_aa(T167, T174))
U41_ag(T116, T164, T167, T171, T179, T197, front14_out_aa(T167, T174)) → U42_ag(T116, T164, T167, T171, T179, T197, T174, front14_in_aa(T171, T173))
U42_ag(T116, T164, T167, T171, T179, T197, T174, front14_out_aa(T171, T173)) → U43_ag(T116, T164, T167, T171, T179, T197, app32_in_aag(T174, T173, []))
U43_ag(T116, T164, T167, T171, T179, T197, app32_out_aag(T174, T173, [])) → U44_ag(T116, T164, T167, T171, T179, T197, front14_in_ag(T179, .(T197, [])))
U44_ag(T116, T164, T167, T171, T179, T197, front14_out_ag(T179, .(T197, []))) → front1_out_ag(tree(T116, tree(T164, T167, T171), T179), .(T197, []))
front1_in_ag(tree(T116, tree(T164, T167, T171), T179), .(T204, [])) → U45_ag(T116, T164, T167, T171, T179, T204, front14_in_aa(T167, T174))
U45_ag(T116, T164, T167, T171, T179, T204, front14_out_aa(T167, T174)) → U46_ag(T116, T164, T167, T171, T179, T204, T174, front14_in_aa(T171, T173))
U46_ag(T116, T164, T167, T171, T179, T204, T174, front14_out_aa(T171, T173)) → U47_ag(T116, T164, T167, T171, T179, T204, app32_in_aaa(T174, T173, .(T204, T207)))
U47_ag(T116, T164, T167, T171, T179, T204, app32_out_aaa(T174, T173, .(T204, T207))) → U48_ag(T116, T164, T167, T171, T179, T204, T207, front14_in_aa(T179, T208))
U48_ag(T116, T164, T167, T171, T179, T204, T207, front14_out_aa(T179, T208)) → U49_ag(T116, T164, T167, T171, T179, T204, app66_in_aa(T207, T208))
U49_ag(T116, T164, T167, T171, T179, T204, app66_out_aa(T207, T208)) → front1_out_ag(tree(T116, tree(T164, T167, T171), T179), .(T204, []))
front1_in_ag(tree(T215, void, T221), T218) → U50_ag(T215, T221, T218, front14_in_aa(T221, X265))
U50_ag(T215, T221, T218, front14_out_aa(T221, X265)) → front1_out_ag(tree(T215, void, T221), T218)
front1_in_ag(tree(T215, void, T221), T231) → U51_ag(T215, T221, T231, front14_in_ag(T221, T231))
U51_ag(T215, T221, T231, front14_out_ag(T221, T231)) → front1_out_ag(tree(T215, void, T221), T231)
front1_in_ag(tree(T215, tree(T238, void, void), T237), T218) → U52_ag(T215, T238, T237, T218, front14_in_aa(T237, X265))
U52_ag(T215, T238, T237, T218, front14_out_aa(T237, X265)) → front1_out_ag(tree(T215, tree(T238, void, void), T237), T218)
front1_in_ag(tree(T215, tree(T252, void, void), T237), .(T252, T262)) → U53_ag(T215, T252, T237, T262, front14_in_ag(T237, T262))
U53_ag(T215, T252, T237, T262, front14_out_ag(T237, T262)) → front1_out_ag(tree(T215, tree(T252, void, void), T237), .(T252, T262))
front1_in_ag(tree(T215, tree(T269, T272, T273), T274), T218) → U54_ag(T215, T269, T272, T273, T274, T218, front14_in_aa(T272, X339))
U54_ag(T215, T269, T272, T273, T274, T218, front14_out_aa(T272, X339)) → front1_out_ag(tree(T215, tree(T269, T272, T273), T274), T218)
front1_in_ag(tree(T215, tree(T269, T272, T276), T277), T218) → U55_ag(T215, T269, T272, T276, T277, T218, front14_in_aa(T272, T275))
U55_ag(T215, T269, T272, T276, T277, T218, front14_out_aa(T272, T275)) → U56_ag(T215, T269, T272, T276, T277, T218, front14_in_aa(T276, X340))
U56_ag(T215, T269, T272, T276, T277, T218, front14_out_aa(T276, X340)) → front1_out_ag(tree(T215, tree(T269, T272, T276), T277), T218)
front1_in_ag(tree(T215, tree(T269, T272, T276), T282), T218) → U57_ag(T215, T269, T272, T276, T282, T218, front14_in_aa(T272, T281))
U57_ag(T215, T269, T272, T276, T282, T218, front14_out_aa(T272, T281)) → U58_ag(T215, T269, T272, T276, T282, T218, T281, front14_in_aa(T276, T280))
U58_ag(T215, T269, T272, T276, T282, T218, T281, front14_out_aa(T276, T280)) → U59_ag(T215, T269, T272, T276, T282, T218, app32_in_aaa(T281, T280, X341))
U59_ag(T215, T269, T272, T276, T282, T218, app32_out_aaa(T281, T280, X341)) → front1_out_ag(tree(T215, tree(T269, T272, T276), T282), T218)
front1_in_ag(tree(T215, tree(T269, T272, T276), T288), T218) → U60_ag(T215, T269, T272, T276, T288, T218, front14_in_aa(T272, T281))
U60_ag(T215, T269, T272, T276, T288, T218, front14_out_aa(T272, T281)) → U61_ag(T215, T269, T272, T276, T288, T218, T281, front14_in_aa(T276, T280))
U61_ag(T215, T269, T272, T276, T288, T218, T281, front14_out_aa(T276, T280)) → U62_ag(T215, T269, T272, T276, T288, T218, app32_in_aaa(T281, T280, T287))
U62_ag(T215, T269, T272, T276, T288, T218, app32_out_aaa(T281, T280, T287)) → U63_ag(T215, T269, T272, T276, T288, T218, front14_in_aa(T288, X265))
U63_ag(T215, T269, T272, T276, T288, T218, front14_out_aa(T288, X265)) → front1_out_ag(tree(T215, tree(T269, T272, T276), T288), T218)
front1_in_ag(tree(T215, tree(T269, T272, T276), T288), T303) → U64_ag(T215, T269, T272, T276, T288, T303, front14_in_aa(T272, T281))
U64_ag(T215, T269, T272, T276, T288, T303, front14_out_aa(T272, T281)) → U65_ag(T215, T269, T272, T276, T288, T303, T281, front14_in_aa(T276, T280))
U65_ag(T215, T269, T272, T276, T288, T303, T281, front14_out_aa(T276, T280)) → U66_ag(T215, T269, T272, T276, T288, T303, app32_in_aag(T281, T280, []))
U66_ag(T215, T269, T272, T276, T288, T303, app32_out_aag(T281, T280, [])) → U67_ag(T215, T269, T272, T276, T288, T303, front14_in_ag(T288, T303))
U67_ag(T215, T269, T272, T276, T288, T303, front14_out_ag(T288, T303)) → front1_out_ag(tree(T215, tree(T269, T272, T276), T288), T303)
front1_in_ag(tree(T215, tree(T269, T272, T276), T288), .(T312, T324)) → U68_ag(T215, T269, T272, T276, T288, T312, T324, front14_in_aa(T272, T281))
U68_ag(T215, T269, T272, T276, T288, T312, T324, front14_out_aa(T272, T281)) → U69_ag(T215, T269, T272, T276, T288, T312, T324, T281, front14_in_aa(T276, T280))
U69_ag(T215, T269, T272, T276, T288, T312, T324, T281, front14_out_aa(T276, T280)) → U70_ag(T215, T269, T272, T276, T288, T312, T324, app32_in_aag(T281, T280, .(T312, [])))
U70_ag(T215, T269, T272, T276, T288, T312, T324, app32_out_aag(T281, T280, .(T312, []))) → U71_ag(T215, T269, T272, T276, T288, T312, T324, front14_in_ag(T288, T324))
U71_ag(T215, T269, T272, T276, T288, T312, T324, front14_out_ag(T288, T324)) → front1_out_ag(tree(T215, tree(T269, T272, T276), T288), .(T312, T324))
front1_in_ag(tree(T215, tree(T269, T272, T276), T288), .(T312, .(T333, T336))) → U72_ag(T215, T269, T272, T276, T288, T312, T333, T336, front14_in_aa(T272, T281))
U72_ag(T215, T269, T272, T276, T288, T312, T333, T336, front14_out_aa(T272, T281)) → U73_ag(T215, T269, T272, T276, T288, T312, T333, T336, T281, front14_in_aa(T276, T280))
U73_ag(T215, T269, T272, T276, T288, T312, T333, T336, T281, front14_out_aa(T276, T280)) → U74_ag(T215, T269, T272, T276, T288, T312, T333, T336, app32_in_aaa(T281, T280, .(T312, .(T333, T337))))
U74_ag(T215, T269, T272, T276, T288, T312, T333, T336, app32_out_aaa(T281, T280, .(T312, .(T333, T337)))) → U75_ag(T215, T269, T272, T276, T288, T312, T333, T336, T337, front14_in_aa(T288, T338))
U75_ag(T215, T269, T272, T276, T288, T312, T333, T336, T337, front14_out_aa(T288, T338)) → U76_ag(T215, T269, T272, T276, T288, T312, T333, T336, app178_in_aag(T337, T338, T336))
app178_in_aag([], T345, T345) → app178_out_aag([], T345, T345)
app178_in_aag(.(T354, T358), T359, .(T354, T357)) → U8_aag(T354, T358, T359, T357, app178_in_aag(T358, T359, T357))
U8_aag(T354, T358, T359, T357, app178_out_aag(T358, T359, T357)) → app178_out_aag(.(T354, T358), T359, .(T354, T357))
U76_ag(T215, T269, T272, T276, T288, T312, T333, T336, app178_out_aag(T337, T338, T336)) → front1_out_ag(tree(T215, tree(T269, T272, T276), T288), .(T312, .(T333, T336)))
APP178_IN_AAG(.(T354, T358), T359, .(T354, T357)) → APP178_IN_AAG(T358, T359, T357)
front1_in_ag(void, []) → front1_out_ag(void, [])
front1_in_ag(tree(T7, void, T12), []) → U9_ag(T7, T12, front14_in_aa(T12, X12))
front14_in_aa(void, []) → front14_out_aa(void, [])
front14_in_aa(tree(T18, void, void), .(T18, [])) → front14_out_aa(tree(T18, void, void), .(T18, []))
front14_in_aa(tree(T25, T28, T29), X41) → U1_aa(T25, T28, T29, X41, front14_in_aa(T28, X39))
front14_in_aa(tree(T25, T28, T31), X41) → U2_aa(T25, T28, T31, X41, front14_in_aa(T28, T30))
front14_in_aa(tree(T25, T28, T31), X41) → U4_aa(T25, T28, T31, X41, front14_in_aa(T28, T33))
U4_aa(T25, T28, T31, X41, front14_out_aa(T28, T33)) → U5_aa(T25, T28, T31, X41, T33, front14_in_aa(T31, T32))
U5_aa(T25, T28, T31, X41, T33, front14_out_aa(T31, T32)) → U6_aa(T25, T28, T31, X41, app32_in_aaa(T33, T32, X41))
app32_in_aaa([], T40, T40) → app32_out_aaa([], T40, T40)
app32_in_aaa(.(T47, T50), T51, .(T47, X68)) → U7_aaa(T47, T50, T51, X68, app32_in_aaa(T50, T51, X68))
U7_aaa(T47, T50, T51, X68, app32_out_aaa(T50, T51, X68)) → app32_out_aaa(.(T47, T50), T51, .(T47, X68))
U6_aa(T25, T28, T31, X41, app32_out_aaa(T33, T32, X41)) → front14_out_aa(tree(T25, T28, T31), X41)
U2_aa(T25, T28, T31, X41, front14_out_aa(T28, T30)) → U3_aa(T25, T28, T31, X41, front14_in_aa(T31, X40))
U3_aa(T25, T28, T31, X41, front14_out_aa(T31, X40)) → front14_out_aa(tree(T25, T28, T31), X41)
U1_aa(T25, T28, T29, X41, front14_out_aa(T28, X39)) → front14_out_aa(tree(T25, T28, T29), X41)
U9_ag(T7, T12, front14_out_aa(T12, X12)) → front1_out_ag(tree(T7, void, T12), [])
front1_in_ag(tree(T7, void, T12), []) → U10_ag(T7, T12, front14_in_aa(T12, T13))
U10_ag(T7, T12, front14_out_aa(T12, T13)) → U11_ag(T7, T12, app15_in_a(T13))
app15_in_a([]) → app15_out_a([])
U11_ag(T7, T12, app15_out_a(T13)) → front1_out_ag(tree(T7, void, T12), [])
front1_in_ag(tree(T7, tree(T67, void, void), T66), []) → U12_ag(T7, T67, T66, front14_in_aa(T66, X12))
U12_ag(T7, T67, T66, front14_out_aa(T66, X12)) → front1_out_ag(tree(T7, tree(T67, void, void), T66), [])
front1_in_ag(tree(T7, tree(T80, T83, T84), T85), []) → U13_ag(T7, T80, T83, T84, T85, front14_in_aa(T83, X120))
U13_ag(T7, T80, T83, T84, T85, front14_out_aa(T83, X120)) → front1_out_ag(tree(T7, tree(T80, T83, T84), T85), [])
front1_in_ag(tree(T7, tree(T80, T83, T87), T88), []) → U14_ag(T7, T80, T83, T87, T88, front14_in_aa(T83, T86))
U14_ag(T7, T80, T83, T87, T88, front14_out_aa(T83, T86)) → U15_ag(T7, T80, T83, T87, T88, front14_in_aa(T87, X121))
U15_ag(T7, T80, T83, T87, T88, front14_out_aa(T87, X121)) → front1_out_ag(tree(T7, tree(T80, T83, T87), T88), [])
front1_in_ag(tree(T7, tree(T80, T83, T87), T91), []) → U16_ag(T7, T80, T83, T87, T91, front14_in_aa(T83, T90))
U16_ag(T7, T80, T83, T87, T91, front14_out_aa(T83, T90)) → U17_ag(T7, T80, T83, T87, T91, T90, front14_in_aa(T87, T89))
U17_ag(T7, T80, T83, T87, T91, T90, front14_out_aa(T87, T89)) → U18_ag(T7, T80, T83, T87, T91, app32_in_aaa(T90, T89, X122))
U18_ag(T7, T80, T83, T87, T91, app32_out_aaa(T90, T89, X122)) → front1_out_ag(tree(T7, tree(T80, T83, T87), T91), [])
front1_in_ag(tree(T7, tree(T80, T83, T87), T95), []) → U19_ag(T7, T80, T83, T87, T95, front14_in_aa(T83, T90))
U19_ag(T7, T80, T83, T87, T95, front14_out_aa(T83, T90)) → U20_ag(T7, T80, T83, T87, T95, T90, front14_in_aa(T87, T89))
U20_ag(T7, T80, T83, T87, T95, T90, front14_out_aa(T87, T89)) → U21_ag(T7, T80, T83, T87, T95, app32_in_aaa(T90, T89, T94))
U21_ag(T7, T80, T83, T87, T95, app32_out_aaa(T90, T89, T94)) → U22_ag(T7, T80, T83, T87, T95, front14_in_aa(T95, X12))
U22_ag(T7, T80, T83, T87, T95, front14_out_aa(T95, X12)) → front1_out_ag(tree(T7, tree(T80, T83, T87), T95), [])
U20_ag(T7, T80, T83, T87, T95, T90, front14_out_aa(T87, T89)) → U23_ag(T7, T80, T83, T87, T95, app32_in_aaa(T90, T89, T99))
U23_ag(T7, T80, T83, T87, T95, app32_out_aaa(T90, T89, T99)) → U24_ag(T7, T80, T83, T87, T95, T99, front14_in_aa(T95, T98))
U24_ag(T7, T80, T83, T87, T95, T99, front14_out_aa(T95, T98)) → U25_ag(T7, T80, T83, T87, T95, app66_in_aa(T99, T98))
app66_in_aa([], []) → app66_out_aa([], [])
U25_ag(T7, T80, T83, T87, T95, app66_out_aa(T99, T98)) → front1_out_ag(tree(T7, tree(T80, T83, T87), T95), [])
front1_in_ag(tree(T111, void, void), .(T111, [])) → front1_out_ag(tree(T111, void, void), .(T111, []))
front1_in_ag(tree(T116, void, T122), .(T119, [])) → U26_ag(T116, T122, T119, front14_in_aa(T122, X155))
U26_ag(T116, T122, T119, front14_out_aa(T122, X155)) → front1_out_ag(tree(T116, void, T122), .(T119, []))
front1_in_ag(tree(T116, void, T122), .(T137, [])) → U27_ag(T116, T122, T137, front14_in_ag(T122, .(T137, [])))
front14_in_ag(void, []) → front14_out_ag(void, [])
front14_in_ag(tree(T18, void, void), .(T18, [])) → front14_out_ag(tree(T18, void, void), .(T18, []))
front14_in_ag(tree(T25, T28, T29), X41) → U1_ag(T25, T28, T29, X41, front14_in_aa(T28, X39))
U1_ag(T25, T28, T29, X41, front14_out_aa(T28, X39)) → front14_out_ag(tree(T25, T28, T29), X41)
front14_in_ag(tree(T25, T28, T31), X41) → U2_ag(T25, T28, T31, X41, front14_in_aa(T28, T30))
U2_ag(T25, T28, T31, X41, front14_out_aa(T28, T30)) → U3_ag(T25, T28, T31, X41, front14_in_aa(T31, X40))
U3_ag(T25, T28, T31, X41, front14_out_aa(T31, X40)) → front14_out_ag(tree(T25, T28, T31), X41)
front14_in_ag(tree(T25, T28, T31), X41) → U4_ag(T25, T28, T31, X41, front14_in_aa(T28, T33))
U4_ag(T25, T28, T31, X41, front14_out_aa(T28, T33)) → U5_ag(T25, T28, T31, X41, T33, front14_in_aa(T31, T32))
U5_ag(T25, T28, T31, X41, T33, front14_out_aa(T31, T32)) → U6_ag(T25, T28, T31, X41, app32_in_aag(T33, T32, X41))
app32_in_aag([], T40, T40) → app32_out_aag([], T40, T40)
app32_in_aag(.(T47, T50), T51, .(T47, X68)) → U7_aag(T47, T50, T51, X68, app32_in_aag(T50, T51, X68))
U7_aag(T47, T50, T51, X68, app32_out_aag(T50, T51, X68)) → app32_out_aag(.(T47, T50), T51, .(T47, X68))
U6_ag(T25, T28, T31, X41, app32_out_aag(T33, T32, X41)) → front14_out_ag(tree(T25, T28, T31), X41)
U27_ag(T116, T122, T137, front14_out_ag(T122, .(T137, []))) → front1_out_ag(tree(T116, void, T122), .(T137, []))
front1_in_ag(tree(T116, tree(T144, void, void), T143), .(T119, [])) → U28_ag(T116, T144, T143, T119, front14_in_aa(T143, X155))
U28_ag(T116, T144, T143, T119, front14_out_aa(T143, X155)) → front1_out_ag(tree(T116, tree(T144, void, void), T143), .(T119, []))
front1_in_ag(tree(T116, tree(T153, void, void), T143), .(T153, [])) → U29_ag(T116, T153, T143, front14_in_aa(T143, T155))
U29_ag(T116, T153, T143, front14_out_aa(T143, T155)) → U30_ag(T116, T153, T143, app15_in_a(T155))
U30_ag(T116, T153, T143, app15_out_a(T155)) → front1_out_ag(tree(T116, tree(T153, void, void), T143), .(T153, []))
front1_in_ag(tree(T116, tree(T164, T167, T168), T169), .(T119, [])) → U31_ag(T116, T164, T167, T168, T169, T119, front14_in_aa(T167, X219))
U31_ag(T116, T164, T167, T168, T169, T119, front14_out_aa(T167, X219)) → front1_out_ag(tree(T116, tree(T164, T167, T168), T169), .(T119, []))
front1_in_ag(tree(T116, tree(T164, T167, T171), T172), .(T119, [])) → U32_ag(T116, T164, T167, T171, T172, T119, front14_in_aa(T167, T170))
U32_ag(T116, T164, T167, T171, T172, T119, front14_out_aa(T167, T170)) → U33_ag(T116, T164, T167, T171, T172, T119, front14_in_aa(T171, X220))
U33_ag(T116, T164, T167, T171, T172, T119, front14_out_aa(T171, X220)) → front1_out_ag(tree(T116, tree(T164, T167, T171), T172), .(T119, []))
front1_in_ag(tree(T116, tree(T164, T167, T171), T175), .(T119, [])) → U34_ag(T116, T164, T167, T171, T175, T119, front14_in_aa(T167, T174))
U34_ag(T116, T164, T167, T171, T175, T119, front14_out_aa(T167, T174)) → U35_ag(T116, T164, T167, T171, T175, T119, T174, front14_in_aa(T171, T173))
U35_ag(T116, T164, T167, T171, T175, T119, T174, front14_out_aa(T171, T173)) → U36_ag(T116, T164, T167, T171, T175, T119, app32_in_aaa(T174, T173, X221))
U36_ag(T116, T164, T167, T171, T175, T119, app32_out_aaa(T174, T173, X221)) → front1_out_ag(tree(T116, tree(T164, T167, T171), T175), .(T119, []))
front1_in_ag(tree(T116, tree(T164, T167, T171), T179), .(T119, [])) → U37_ag(T116, T164, T167, T171, T179, T119, front14_in_aa(T167, T174))
U37_ag(T116, T164, T167, T171, T179, T119, front14_out_aa(T167, T174)) → U38_ag(T116, T164, T167, T171, T179, T119, T174, front14_in_aa(T171, T173))
U38_ag(T116, T164, T167, T171, T179, T119, T174, front14_out_aa(T171, T173)) → U39_ag(T116, T164, T167, T171, T179, T119, app32_in_aaa(T174, T173, T178))
U39_ag(T116, T164, T167, T171, T179, T119, app32_out_aaa(T174, T173, T178)) → U40_ag(T116, T164, T167, T171, T179, T119, front14_in_aa(T179, X155))
U40_ag(T116, T164, T167, T171, T179, T119, front14_out_aa(T179, X155)) → front1_out_ag(tree(T116, tree(T164, T167, T171), T179), .(T119, []))
front1_in_ag(tree(T116, tree(T164, T167, T171), T179), .(T197, [])) → U41_ag(T116, T164, T167, T171, T179, T197, front14_in_aa(T167, T174))
U41_ag(T116, T164, T167, T171, T179, T197, front14_out_aa(T167, T174)) → U42_ag(T116, T164, T167, T171, T179, T197, T174, front14_in_aa(T171, T173))
U42_ag(T116, T164, T167, T171, T179, T197, T174, front14_out_aa(T171, T173)) → U43_ag(T116, T164, T167, T171, T179, T197, app32_in_aag(T174, T173, []))
U43_ag(T116, T164, T167, T171, T179, T197, app32_out_aag(T174, T173, [])) → U44_ag(T116, T164, T167, T171, T179, T197, front14_in_ag(T179, .(T197, [])))
U44_ag(T116, T164, T167, T171, T179, T197, front14_out_ag(T179, .(T197, []))) → front1_out_ag(tree(T116, tree(T164, T167, T171), T179), .(T197, []))
front1_in_ag(tree(T116, tree(T164, T167, T171), T179), .(T204, [])) → U45_ag(T116, T164, T167, T171, T179, T204, front14_in_aa(T167, T174))
U45_ag(T116, T164, T167, T171, T179, T204, front14_out_aa(T167, T174)) → U46_ag(T116, T164, T167, T171, T179, T204, T174, front14_in_aa(T171, T173))
U46_ag(T116, T164, T167, T171, T179, T204, T174, front14_out_aa(T171, T173)) → U47_ag(T116, T164, T167, T171, T179, T204, app32_in_aaa(T174, T173, .(T204, T207)))
U47_ag(T116, T164, T167, T171, T179, T204, app32_out_aaa(T174, T173, .(T204, T207))) → U48_ag(T116, T164, T167, T171, T179, T204, T207, front14_in_aa(T179, T208))
U48_ag(T116, T164, T167, T171, T179, T204, T207, front14_out_aa(T179, T208)) → U49_ag(T116, T164, T167, T171, T179, T204, app66_in_aa(T207, T208))
U49_ag(T116, T164, T167, T171, T179, T204, app66_out_aa(T207, T208)) → front1_out_ag(tree(T116, tree(T164, T167, T171), T179), .(T204, []))
front1_in_ag(tree(T215, void, T221), T218) → U50_ag(T215, T221, T218, front14_in_aa(T221, X265))
U50_ag(T215, T221, T218, front14_out_aa(T221, X265)) → front1_out_ag(tree(T215, void, T221), T218)
front1_in_ag(tree(T215, void, T221), T231) → U51_ag(T215, T221, T231, front14_in_ag(T221, T231))
U51_ag(T215, T221, T231, front14_out_ag(T221, T231)) → front1_out_ag(tree(T215, void, T221), T231)
front1_in_ag(tree(T215, tree(T238, void, void), T237), T218) → U52_ag(T215, T238, T237, T218, front14_in_aa(T237, X265))
U52_ag(T215, T238, T237, T218, front14_out_aa(T237, X265)) → front1_out_ag(tree(T215, tree(T238, void, void), T237), T218)
front1_in_ag(tree(T215, tree(T252, void, void), T237), .(T252, T262)) → U53_ag(T215, T252, T237, T262, front14_in_ag(T237, T262))
U53_ag(T215, T252, T237, T262, front14_out_ag(T237, T262)) → front1_out_ag(tree(T215, tree(T252, void, void), T237), .(T252, T262))
front1_in_ag(tree(T215, tree(T269, T272, T273), T274), T218) → U54_ag(T215, T269, T272, T273, T274, T218, front14_in_aa(T272, X339))
U54_ag(T215, T269, T272, T273, T274, T218, front14_out_aa(T272, X339)) → front1_out_ag(tree(T215, tree(T269, T272, T273), T274), T218)
front1_in_ag(tree(T215, tree(T269, T272, T276), T277), T218) → U55_ag(T215, T269, T272, T276, T277, T218, front14_in_aa(T272, T275))
U55_ag(T215, T269, T272, T276, T277, T218, front14_out_aa(T272, T275)) → U56_ag(T215, T269, T272, T276, T277, T218, front14_in_aa(T276, X340))
U56_ag(T215, T269, T272, T276, T277, T218, front14_out_aa(T276, X340)) → front1_out_ag(tree(T215, tree(T269, T272, T276), T277), T218)
front1_in_ag(tree(T215, tree(T269, T272, T276), T282), T218) → U57_ag(T215, T269, T272, T276, T282, T218, front14_in_aa(T272, T281))
U57_ag(T215, T269, T272, T276, T282, T218, front14_out_aa(T272, T281)) → U58_ag(T215, T269, T272, T276, T282, T218, T281, front14_in_aa(T276, T280))
U58_ag(T215, T269, T272, T276, T282, T218, T281, front14_out_aa(T276, T280)) → U59_ag(T215, T269, T272, T276, T282, T218, app32_in_aaa(T281, T280, X341))
U59_ag(T215, T269, T272, T276, T282, T218, app32_out_aaa(T281, T280, X341)) → front1_out_ag(tree(T215, tree(T269, T272, T276), T282), T218)
front1_in_ag(tree(T215, tree(T269, T272, T276), T288), T218) → U60_ag(T215, T269, T272, T276, T288, T218, front14_in_aa(T272, T281))
U60_ag(T215, T269, T272, T276, T288, T218, front14_out_aa(T272, T281)) → U61_ag(T215, T269, T272, T276, T288, T218, T281, front14_in_aa(T276, T280))
U61_ag(T215, T269, T272, T276, T288, T218, T281, front14_out_aa(T276, T280)) → U62_ag(T215, T269, T272, T276, T288, T218, app32_in_aaa(T281, T280, T287))
U62_ag(T215, T269, T272, T276, T288, T218, app32_out_aaa(T281, T280, T287)) → U63_ag(T215, T269, T272, T276, T288, T218, front14_in_aa(T288, X265))
U63_ag(T215, T269, T272, T276, T288, T218, front14_out_aa(T288, X265)) → front1_out_ag(tree(T215, tree(T269, T272, T276), T288), T218)
front1_in_ag(tree(T215, tree(T269, T272, T276), T288), T303) → U64_ag(T215, T269, T272, T276, T288, T303, front14_in_aa(T272, T281))
U64_ag(T215, T269, T272, T276, T288, T303, front14_out_aa(T272, T281)) → U65_ag(T215, T269, T272, T276, T288, T303, T281, front14_in_aa(T276, T280))
U65_ag(T215, T269, T272, T276, T288, T303, T281, front14_out_aa(T276, T280)) → U66_ag(T215, T269, T272, T276, T288, T303, app32_in_aag(T281, T280, []))
U66_ag(T215, T269, T272, T276, T288, T303, app32_out_aag(T281, T280, [])) → U67_ag(T215, T269, T272, T276, T288, T303, front14_in_ag(T288, T303))
U67_ag(T215, T269, T272, T276, T288, T303, front14_out_ag(T288, T303)) → front1_out_ag(tree(T215, tree(T269, T272, T276), T288), T303)
front1_in_ag(tree(T215, tree(T269, T272, T276), T288), .(T312, T324)) → U68_ag(T215, T269, T272, T276, T288, T312, T324, front14_in_aa(T272, T281))
U68_ag(T215, T269, T272, T276, T288, T312, T324, front14_out_aa(T272, T281)) → U69_ag(T215, T269, T272, T276, T288, T312, T324, T281, front14_in_aa(T276, T280))
U69_ag(T215, T269, T272, T276, T288, T312, T324, T281, front14_out_aa(T276, T280)) → U70_ag(T215, T269, T272, T276, T288, T312, T324, app32_in_aag(T281, T280, .(T312, [])))
U70_ag(T215, T269, T272, T276, T288, T312, T324, app32_out_aag(T281, T280, .(T312, []))) → U71_ag(T215, T269, T272, T276, T288, T312, T324, front14_in_ag(T288, T324))
U71_ag(T215, T269, T272, T276, T288, T312, T324, front14_out_ag(T288, T324)) → front1_out_ag(tree(T215, tree(T269, T272, T276), T288), .(T312, T324))
front1_in_ag(tree(T215, tree(T269, T272, T276), T288), .(T312, .(T333, T336))) → U72_ag(T215, T269, T272, T276, T288, T312, T333, T336, front14_in_aa(T272, T281))
U72_ag(T215, T269, T272, T276, T288, T312, T333, T336, front14_out_aa(T272, T281)) → U73_ag(T215, T269, T272, T276, T288, T312, T333, T336, T281, front14_in_aa(T276, T280))
U73_ag(T215, T269, T272, T276, T288, T312, T333, T336, T281, front14_out_aa(T276, T280)) → U74_ag(T215, T269, T272, T276, T288, T312, T333, T336, app32_in_aaa(T281, T280, .(T312, .(T333, T337))))
U74_ag(T215, T269, T272, T276, T288, T312, T333, T336, app32_out_aaa(T281, T280, .(T312, .(T333, T337)))) → U75_ag(T215, T269, T272, T276, T288, T312, T333, T336, T337, front14_in_aa(T288, T338))
U75_ag(T215, T269, T272, T276, T288, T312, T333, T336, T337, front14_out_aa(T288, T338)) → U76_ag(T215, T269, T272, T276, T288, T312, T333, T336, app178_in_aag(T337, T338, T336))
app178_in_aag([], T345, T345) → app178_out_aag([], T345, T345)
app178_in_aag(.(T354, T358), T359, .(T354, T357)) → U8_aag(T354, T358, T359, T357, app178_in_aag(T358, T359, T357))
U8_aag(T354, T358, T359, T357, app178_out_aag(T358, T359, T357)) → app178_out_aag(.(T354, T358), T359, .(T354, T357))
U76_ag(T215, T269, T272, T276, T288, T312, T333, T336, app178_out_aag(T337, T338, T336)) → front1_out_ag(tree(T215, tree(T269, T272, T276), T288), .(T312, .(T333, T336)))
APP178_IN_AAG(.(T354, T358), T359, .(T354, T357)) → APP178_IN_AAG(T358, T359, T357)
APP178_IN_AAG(.(T357)) → APP178_IN_AAG(T357)
From the DPs we obtained the following set of size-change graphs:
APP32_IN_AAG(.(T47, T50), T51, .(T47, X68)) → APP32_IN_AAG(T50, T51, X68)
front1_in_ag(void, []) → front1_out_ag(void, [])
front1_in_ag(tree(T7, void, T12), []) → U9_ag(T7, T12, front14_in_aa(T12, X12))
front14_in_aa(void, []) → front14_out_aa(void, [])
front14_in_aa(tree(T18, void, void), .(T18, [])) → front14_out_aa(tree(T18, void, void), .(T18, []))
front14_in_aa(tree(T25, T28, T29), X41) → U1_aa(T25, T28, T29, X41, front14_in_aa(T28, X39))
front14_in_aa(tree(T25, T28, T31), X41) → U2_aa(T25, T28, T31, X41, front14_in_aa(T28, T30))
front14_in_aa(tree(T25, T28, T31), X41) → U4_aa(T25, T28, T31, X41, front14_in_aa(T28, T33))
U4_aa(T25, T28, T31, X41, front14_out_aa(T28, T33)) → U5_aa(T25, T28, T31, X41, T33, front14_in_aa(T31, T32))
U5_aa(T25, T28, T31, X41, T33, front14_out_aa(T31, T32)) → U6_aa(T25, T28, T31, X41, app32_in_aaa(T33, T32, X41))
app32_in_aaa([], T40, T40) → app32_out_aaa([], T40, T40)
app32_in_aaa(.(T47, T50), T51, .(T47, X68)) → U7_aaa(T47, T50, T51, X68, app32_in_aaa(T50, T51, X68))
U7_aaa(T47, T50, T51, X68, app32_out_aaa(T50, T51, X68)) → app32_out_aaa(.(T47, T50), T51, .(T47, X68))
U6_aa(T25, T28, T31, X41, app32_out_aaa(T33, T32, X41)) → front14_out_aa(tree(T25, T28, T31), X41)
U2_aa(T25, T28, T31, X41, front14_out_aa(T28, T30)) → U3_aa(T25, T28, T31, X41, front14_in_aa(T31, X40))
U3_aa(T25, T28, T31, X41, front14_out_aa(T31, X40)) → front14_out_aa(tree(T25, T28, T31), X41)
U1_aa(T25, T28, T29, X41, front14_out_aa(T28, X39)) → front14_out_aa(tree(T25, T28, T29), X41)
U9_ag(T7, T12, front14_out_aa(T12, X12)) → front1_out_ag(tree(T7, void, T12), [])
front1_in_ag(tree(T7, void, T12), []) → U10_ag(T7, T12, front14_in_aa(T12, T13))
U10_ag(T7, T12, front14_out_aa(T12, T13)) → U11_ag(T7, T12, app15_in_a(T13))
app15_in_a([]) → app15_out_a([])
U11_ag(T7, T12, app15_out_a(T13)) → front1_out_ag(tree(T7, void, T12), [])
front1_in_ag(tree(T7, tree(T67, void, void), T66), []) → U12_ag(T7, T67, T66, front14_in_aa(T66, X12))
U12_ag(T7, T67, T66, front14_out_aa(T66, X12)) → front1_out_ag(tree(T7, tree(T67, void, void), T66), [])
front1_in_ag(tree(T7, tree(T80, T83, T84), T85), []) → U13_ag(T7, T80, T83, T84, T85, front14_in_aa(T83, X120))
U13_ag(T7, T80, T83, T84, T85, front14_out_aa(T83, X120)) → front1_out_ag(tree(T7, tree(T80, T83, T84), T85), [])
front1_in_ag(tree(T7, tree(T80, T83, T87), T88), []) → U14_ag(T7, T80, T83, T87, T88, front14_in_aa(T83, T86))
U14_ag(T7, T80, T83, T87, T88, front14_out_aa(T83, T86)) → U15_ag(T7, T80, T83, T87, T88, front14_in_aa(T87, X121))
U15_ag(T7, T80, T83, T87, T88, front14_out_aa(T87, X121)) → front1_out_ag(tree(T7, tree(T80, T83, T87), T88), [])
front1_in_ag(tree(T7, tree(T80, T83, T87), T91), []) → U16_ag(T7, T80, T83, T87, T91, front14_in_aa(T83, T90))
U16_ag(T7, T80, T83, T87, T91, front14_out_aa(T83, T90)) → U17_ag(T7, T80, T83, T87, T91, T90, front14_in_aa(T87, T89))
U17_ag(T7, T80, T83, T87, T91, T90, front14_out_aa(T87, T89)) → U18_ag(T7, T80, T83, T87, T91, app32_in_aaa(T90, T89, X122))
U18_ag(T7, T80, T83, T87, T91, app32_out_aaa(T90, T89, X122)) → front1_out_ag(tree(T7, tree(T80, T83, T87), T91), [])
front1_in_ag(tree(T7, tree(T80, T83, T87), T95), []) → U19_ag(T7, T80, T83, T87, T95, front14_in_aa(T83, T90))
U19_ag(T7, T80, T83, T87, T95, front14_out_aa(T83, T90)) → U20_ag(T7, T80, T83, T87, T95, T90, front14_in_aa(T87, T89))
U20_ag(T7, T80, T83, T87, T95, T90, front14_out_aa(T87, T89)) → U21_ag(T7, T80, T83, T87, T95, app32_in_aaa(T90, T89, T94))
U21_ag(T7, T80, T83, T87, T95, app32_out_aaa(T90, T89, T94)) → U22_ag(T7, T80, T83, T87, T95, front14_in_aa(T95, X12))
U22_ag(T7, T80, T83, T87, T95, front14_out_aa(T95, X12)) → front1_out_ag(tree(T7, tree(T80, T83, T87), T95), [])
U20_ag(T7, T80, T83, T87, T95, T90, front14_out_aa(T87, T89)) → U23_ag(T7, T80, T83, T87, T95, app32_in_aaa(T90, T89, T99))
U23_ag(T7, T80, T83, T87, T95, app32_out_aaa(T90, T89, T99)) → U24_ag(T7, T80, T83, T87, T95, T99, front14_in_aa(T95, T98))
U24_ag(T7, T80, T83, T87, T95, T99, front14_out_aa(T95, T98)) → U25_ag(T7, T80, T83, T87, T95, app66_in_aa(T99, T98))
app66_in_aa([], []) → app66_out_aa([], [])
U25_ag(T7, T80, T83, T87, T95, app66_out_aa(T99, T98)) → front1_out_ag(tree(T7, tree(T80, T83, T87), T95), [])
front1_in_ag(tree(T111, void, void), .(T111, [])) → front1_out_ag(tree(T111, void, void), .(T111, []))
front1_in_ag(tree(T116, void, T122), .(T119, [])) → U26_ag(T116, T122, T119, front14_in_aa(T122, X155))
U26_ag(T116, T122, T119, front14_out_aa(T122, X155)) → front1_out_ag(tree(T116, void, T122), .(T119, []))
front1_in_ag(tree(T116, void, T122), .(T137, [])) → U27_ag(T116, T122, T137, front14_in_ag(T122, .(T137, [])))
front14_in_ag(void, []) → front14_out_ag(void, [])
front14_in_ag(tree(T18, void, void), .(T18, [])) → front14_out_ag(tree(T18, void, void), .(T18, []))
front14_in_ag(tree(T25, T28, T29), X41) → U1_ag(T25, T28, T29, X41, front14_in_aa(T28, X39))
U1_ag(T25, T28, T29, X41, front14_out_aa(T28, X39)) → front14_out_ag(tree(T25, T28, T29), X41)
front14_in_ag(tree(T25, T28, T31), X41) → U2_ag(T25, T28, T31, X41, front14_in_aa(T28, T30))
U2_ag(T25, T28, T31, X41, front14_out_aa(T28, T30)) → U3_ag(T25, T28, T31, X41, front14_in_aa(T31, X40))
U3_ag(T25, T28, T31, X41, front14_out_aa(T31, X40)) → front14_out_ag(tree(T25, T28, T31), X41)
front14_in_ag(tree(T25, T28, T31), X41) → U4_ag(T25, T28, T31, X41, front14_in_aa(T28, T33))
U4_ag(T25, T28, T31, X41, front14_out_aa(T28, T33)) → U5_ag(T25, T28, T31, X41, T33, front14_in_aa(T31, T32))
U5_ag(T25, T28, T31, X41, T33, front14_out_aa(T31, T32)) → U6_ag(T25, T28, T31, X41, app32_in_aag(T33, T32, X41))
app32_in_aag([], T40, T40) → app32_out_aag([], T40, T40)
app32_in_aag(.(T47, T50), T51, .(T47, X68)) → U7_aag(T47, T50, T51, X68, app32_in_aag(T50, T51, X68))
U7_aag(T47, T50, T51, X68, app32_out_aag(T50, T51, X68)) → app32_out_aag(.(T47, T50), T51, .(T47, X68))
U6_ag(T25, T28, T31, X41, app32_out_aag(T33, T32, X41)) → front14_out_ag(tree(T25, T28, T31), X41)
U27_ag(T116, T122, T137, front14_out_ag(T122, .(T137, []))) → front1_out_ag(tree(T116, void, T122), .(T137, []))
front1_in_ag(tree(T116, tree(T144, void, void), T143), .(T119, [])) → U28_ag(T116, T144, T143, T119, front14_in_aa(T143, X155))
U28_ag(T116, T144, T143, T119, front14_out_aa(T143, X155)) → front1_out_ag(tree(T116, tree(T144, void, void), T143), .(T119, []))
front1_in_ag(tree(T116, tree(T153, void, void), T143), .(T153, [])) → U29_ag(T116, T153, T143, front14_in_aa(T143, T155))
U29_ag(T116, T153, T143, front14_out_aa(T143, T155)) → U30_ag(T116, T153, T143, app15_in_a(T155))
U30_ag(T116, T153, T143, app15_out_a(T155)) → front1_out_ag(tree(T116, tree(T153, void, void), T143), .(T153, []))
front1_in_ag(tree(T116, tree(T164, T167, T168), T169), .(T119, [])) → U31_ag(T116, T164, T167, T168, T169, T119, front14_in_aa(T167, X219))
U31_ag(T116, T164, T167, T168, T169, T119, front14_out_aa(T167, X219)) → front1_out_ag(tree(T116, tree(T164, T167, T168), T169), .(T119, []))
front1_in_ag(tree(T116, tree(T164, T167, T171), T172), .(T119, [])) → U32_ag(T116, T164, T167, T171, T172, T119, front14_in_aa(T167, T170))
U32_ag(T116, T164, T167, T171, T172, T119, front14_out_aa(T167, T170)) → U33_ag(T116, T164, T167, T171, T172, T119, front14_in_aa(T171, X220))
U33_ag(T116, T164, T167, T171, T172, T119, front14_out_aa(T171, X220)) → front1_out_ag(tree(T116, tree(T164, T167, T171), T172), .(T119, []))
front1_in_ag(tree(T116, tree(T164, T167, T171), T175), .(T119, [])) → U34_ag(T116, T164, T167, T171, T175, T119, front14_in_aa(T167, T174))
U34_ag(T116, T164, T167, T171, T175, T119, front14_out_aa(T167, T174)) → U35_ag(T116, T164, T167, T171, T175, T119, T174, front14_in_aa(T171, T173))
U35_ag(T116, T164, T167, T171, T175, T119, T174, front14_out_aa(T171, T173)) → U36_ag(T116, T164, T167, T171, T175, T119, app32_in_aaa(T174, T173, X221))
U36_ag(T116, T164, T167, T171, T175, T119, app32_out_aaa(T174, T173, X221)) → front1_out_ag(tree(T116, tree(T164, T167, T171), T175), .(T119, []))
front1_in_ag(tree(T116, tree(T164, T167, T171), T179), .(T119, [])) → U37_ag(T116, T164, T167, T171, T179, T119, front14_in_aa(T167, T174))
U37_ag(T116, T164, T167, T171, T179, T119, front14_out_aa(T167, T174)) → U38_ag(T116, T164, T167, T171, T179, T119, T174, front14_in_aa(T171, T173))
U38_ag(T116, T164, T167, T171, T179, T119, T174, front14_out_aa(T171, T173)) → U39_ag(T116, T164, T167, T171, T179, T119, app32_in_aaa(T174, T173, T178))
U39_ag(T116, T164, T167, T171, T179, T119, app32_out_aaa(T174, T173, T178)) → U40_ag(T116, T164, T167, T171, T179, T119, front14_in_aa(T179, X155))
U40_ag(T116, T164, T167, T171, T179, T119, front14_out_aa(T179, X155)) → front1_out_ag(tree(T116, tree(T164, T167, T171), T179), .(T119, []))
front1_in_ag(tree(T116, tree(T164, T167, T171), T179), .(T197, [])) → U41_ag(T116, T164, T167, T171, T179, T197, front14_in_aa(T167, T174))
U41_ag(T116, T164, T167, T171, T179, T197, front14_out_aa(T167, T174)) → U42_ag(T116, T164, T167, T171, T179, T197, T174, front14_in_aa(T171, T173))
U42_ag(T116, T164, T167, T171, T179, T197, T174, front14_out_aa(T171, T173)) → U43_ag(T116, T164, T167, T171, T179, T197, app32_in_aag(T174, T173, []))
U43_ag(T116, T164, T167, T171, T179, T197, app32_out_aag(T174, T173, [])) → U44_ag(T116, T164, T167, T171, T179, T197, front14_in_ag(T179, .(T197, [])))
U44_ag(T116, T164, T167, T171, T179, T197, front14_out_ag(T179, .(T197, []))) → front1_out_ag(tree(T116, tree(T164, T167, T171), T179), .(T197, []))
front1_in_ag(tree(T116, tree(T164, T167, T171), T179), .(T204, [])) → U45_ag(T116, T164, T167, T171, T179, T204, front14_in_aa(T167, T174))
U45_ag(T116, T164, T167, T171, T179, T204, front14_out_aa(T167, T174)) → U46_ag(T116, T164, T167, T171, T179, T204, T174, front14_in_aa(T171, T173))
U46_ag(T116, T164, T167, T171, T179, T204, T174, front14_out_aa(T171, T173)) → U47_ag(T116, T164, T167, T171, T179, T204, app32_in_aaa(T174, T173, .(T204, T207)))
U47_ag(T116, T164, T167, T171, T179, T204, app32_out_aaa(T174, T173, .(T204, T207))) → U48_ag(T116, T164, T167, T171, T179, T204, T207, front14_in_aa(T179, T208))
U48_ag(T116, T164, T167, T171, T179, T204, T207, front14_out_aa(T179, T208)) → U49_ag(T116, T164, T167, T171, T179, T204, app66_in_aa(T207, T208))
U49_ag(T116, T164, T167, T171, T179, T204, app66_out_aa(T207, T208)) → front1_out_ag(tree(T116, tree(T164, T167, T171), T179), .(T204, []))
front1_in_ag(tree(T215, void, T221), T218) → U50_ag(T215, T221, T218, front14_in_aa(T221, X265))
U50_ag(T215, T221, T218, front14_out_aa(T221, X265)) → front1_out_ag(tree(T215, void, T221), T218)
front1_in_ag(tree(T215, void, T221), T231) → U51_ag(T215, T221, T231, front14_in_ag(T221, T231))
U51_ag(T215, T221, T231, front14_out_ag(T221, T231)) → front1_out_ag(tree(T215, void, T221), T231)
front1_in_ag(tree(T215, tree(T238, void, void), T237), T218) → U52_ag(T215, T238, T237, T218, front14_in_aa(T237, X265))
U52_ag(T215, T238, T237, T218, front14_out_aa(T237, X265)) → front1_out_ag(tree(T215, tree(T238, void, void), T237), T218)
front1_in_ag(tree(T215, tree(T252, void, void), T237), .(T252, T262)) → U53_ag(T215, T252, T237, T262, front14_in_ag(T237, T262))
U53_ag(T215, T252, T237, T262, front14_out_ag(T237, T262)) → front1_out_ag(tree(T215, tree(T252, void, void), T237), .(T252, T262))
front1_in_ag(tree(T215, tree(T269, T272, T273), T274), T218) → U54_ag(T215, T269, T272, T273, T274, T218, front14_in_aa(T272, X339))
U54_ag(T215, T269, T272, T273, T274, T218, front14_out_aa(T272, X339)) → front1_out_ag(tree(T215, tree(T269, T272, T273), T274), T218)
front1_in_ag(tree(T215, tree(T269, T272, T276), T277), T218) → U55_ag(T215, T269, T272, T276, T277, T218, front14_in_aa(T272, T275))
U55_ag(T215, T269, T272, T276, T277, T218, front14_out_aa(T272, T275)) → U56_ag(T215, T269, T272, T276, T277, T218, front14_in_aa(T276, X340))
U56_ag(T215, T269, T272, T276, T277, T218, front14_out_aa(T276, X340)) → front1_out_ag(tree(T215, tree(T269, T272, T276), T277), T218)
front1_in_ag(tree(T215, tree(T269, T272, T276), T282), T218) → U57_ag(T215, T269, T272, T276, T282, T218, front14_in_aa(T272, T281))
U57_ag(T215, T269, T272, T276, T282, T218, front14_out_aa(T272, T281)) → U58_ag(T215, T269, T272, T276, T282, T218, T281, front14_in_aa(T276, T280))
U58_ag(T215, T269, T272, T276, T282, T218, T281, front14_out_aa(T276, T280)) → U59_ag(T215, T269, T272, T276, T282, T218, app32_in_aaa(T281, T280, X341))
U59_ag(T215, T269, T272, T276, T282, T218, app32_out_aaa(T281, T280, X341)) → front1_out_ag(tree(T215, tree(T269, T272, T276), T282), T218)
front1_in_ag(tree(T215, tree(T269, T272, T276), T288), T218) → U60_ag(T215, T269, T272, T276, T288, T218, front14_in_aa(T272, T281))
U60_ag(T215, T269, T272, T276, T288, T218, front14_out_aa(T272, T281)) → U61_ag(T215, T269, T272, T276, T288, T218, T281, front14_in_aa(T276, T280))
U61_ag(T215, T269, T272, T276, T288, T218, T281, front14_out_aa(T276, T280)) → U62_ag(T215, T269, T272, T276, T288, T218, app32_in_aaa(T281, T280, T287))
U62_ag(T215, T269, T272, T276, T288, T218, app32_out_aaa(T281, T280, T287)) → U63_ag(T215, T269, T272, T276, T288, T218, front14_in_aa(T288, X265))
U63_ag(T215, T269, T272, T276, T288, T218, front14_out_aa(T288, X265)) → front1_out_ag(tree(T215, tree(T269, T272, T276), T288), T218)
front1_in_ag(tree(T215, tree(T269, T272, T276), T288), T303) → U64_ag(T215, T269, T272, T276, T288, T303, front14_in_aa(T272, T281))
U64_ag(T215, T269, T272, T276, T288, T303, front14_out_aa(T272, T281)) → U65_ag(T215, T269, T272, T276, T288, T303, T281, front14_in_aa(T276, T280))
U65_ag(T215, T269, T272, T276, T288, T303, T281, front14_out_aa(T276, T280)) → U66_ag(T215, T269, T272, T276, T288, T303, app32_in_aag(T281, T280, []))
U66_ag(T215, T269, T272, T276, T288, T303, app32_out_aag(T281, T280, [])) → U67_ag(T215, T269, T272, T276, T288, T303, front14_in_ag(T288, T303))
U67_ag(T215, T269, T272, T276, T288, T303, front14_out_ag(T288, T303)) → front1_out_ag(tree(T215, tree(T269, T272, T276), T288), T303)
front1_in_ag(tree(T215, tree(T269, T272, T276), T288), .(T312, T324)) → U68_ag(T215, T269, T272, T276, T288, T312, T324, front14_in_aa(T272, T281))
U68_ag(T215, T269, T272, T276, T288, T312, T324, front14_out_aa(T272, T281)) → U69_ag(T215, T269, T272, T276, T288, T312, T324, T281, front14_in_aa(T276, T280))
U69_ag(T215, T269, T272, T276, T288, T312, T324, T281, front14_out_aa(T276, T280)) → U70_ag(T215, T269, T272, T276, T288, T312, T324, app32_in_aag(T281, T280, .(T312, [])))
U70_ag(T215, T269, T272, T276, T288, T312, T324, app32_out_aag(T281, T280, .(T312, []))) → U71_ag(T215, T269, T272, T276, T288, T312, T324, front14_in_ag(T288, T324))
U71_ag(T215, T269, T272, T276, T288, T312, T324, front14_out_ag(T288, T324)) → front1_out_ag(tree(T215, tree(T269, T272, T276), T288), .(T312, T324))
front1_in_ag(tree(T215, tree(T269, T272, T276), T288), .(T312, .(T333, T336))) → U72_ag(T215, T269, T272, T276, T288, T312, T333, T336, front14_in_aa(T272, T281))
U72_ag(T215, T269, T272, T276, T288, T312, T333, T336, front14_out_aa(T272, T281)) → U73_ag(T215, T269, T272, T276, T288, T312, T333, T336, T281, front14_in_aa(T276, T280))
U73_ag(T215, T269, T272, T276, T288, T312, T333, T336, T281, front14_out_aa(T276, T280)) → U74_ag(T215, T269, T272, T276, T288, T312, T333, T336, app32_in_aaa(T281, T280, .(T312, .(T333, T337))))
U74_ag(T215, T269, T272, T276, T288, T312, T333, T336, app32_out_aaa(T281, T280, .(T312, .(T333, T337)))) → U75_ag(T215, T269, T272, T276, T288, T312, T333, T336, T337, front14_in_aa(T288, T338))
U75_ag(T215, T269, T272, T276, T288, T312, T333, T336, T337, front14_out_aa(T288, T338)) → U76_ag(T215, T269, T272, T276, T288, T312, T333, T336, app178_in_aag(T337, T338, T336))
app178_in_aag([], T345, T345) → app178_out_aag([], T345, T345)
app178_in_aag(.(T354, T358), T359, .(T354, T357)) → U8_aag(T354, T358, T359, T357, app178_in_aag(T358, T359, T357))
U8_aag(T354, T358, T359, T357, app178_out_aag(T358, T359, T357)) → app178_out_aag(.(T354, T358), T359, .(T354, T357))
U76_ag(T215, T269, T272, T276, T288, T312, T333, T336, app178_out_aag(T337, T338, T336)) → front1_out_ag(tree(T215, tree(T269, T272, T276), T288), .(T312, .(T333, T336)))
APP32_IN_AAG(.(T47, T50), T51, .(T47, X68)) → APP32_IN_AAG(T50, T51, X68)
APP32_IN_AAG(.(X68)) → APP32_IN_AAG(X68)
From the DPs we obtained the following set of size-change graphs:
APP32_IN_AAA(.(T47, T50), T51, .(T47, X68)) → APP32_IN_AAA(T50, T51, X68)
front1_in_ag(void, []) → front1_out_ag(void, [])
front1_in_ag(tree(T7, void, T12), []) → U9_ag(T7, T12, front14_in_aa(T12, X12))
front14_in_aa(void, []) → front14_out_aa(void, [])
front14_in_aa(tree(T18, void, void), .(T18, [])) → front14_out_aa(tree(T18, void, void), .(T18, []))
front14_in_aa(tree(T25, T28, T29), X41) → U1_aa(T25, T28, T29, X41, front14_in_aa(T28, X39))
front14_in_aa(tree(T25, T28, T31), X41) → U2_aa(T25, T28, T31, X41, front14_in_aa(T28, T30))
front14_in_aa(tree(T25, T28, T31), X41) → U4_aa(T25, T28, T31, X41, front14_in_aa(T28, T33))
U4_aa(T25, T28, T31, X41, front14_out_aa(T28, T33)) → U5_aa(T25, T28, T31, X41, T33, front14_in_aa(T31, T32))
U5_aa(T25, T28, T31, X41, T33, front14_out_aa(T31, T32)) → U6_aa(T25, T28, T31, X41, app32_in_aaa(T33, T32, X41))
app32_in_aaa([], T40, T40) → app32_out_aaa([], T40, T40)
app32_in_aaa(.(T47, T50), T51, .(T47, X68)) → U7_aaa(T47, T50, T51, X68, app32_in_aaa(T50, T51, X68))
U7_aaa(T47, T50, T51, X68, app32_out_aaa(T50, T51, X68)) → app32_out_aaa(.(T47, T50), T51, .(T47, X68))
U6_aa(T25, T28, T31, X41, app32_out_aaa(T33, T32, X41)) → front14_out_aa(tree(T25, T28, T31), X41)
U2_aa(T25, T28, T31, X41, front14_out_aa(T28, T30)) → U3_aa(T25, T28, T31, X41, front14_in_aa(T31, X40))
U3_aa(T25, T28, T31, X41, front14_out_aa(T31, X40)) → front14_out_aa(tree(T25, T28, T31), X41)
U1_aa(T25, T28, T29, X41, front14_out_aa(T28, X39)) → front14_out_aa(tree(T25, T28, T29), X41)
U9_ag(T7, T12, front14_out_aa(T12, X12)) → front1_out_ag(tree(T7, void, T12), [])
front1_in_ag(tree(T7, void, T12), []) → U10_ag(T7, T12, front14_in_aa(T12, T13))
U10_ag(T7, T12, front14_out_aa(T12, T13)) → U11_ag(T7, T12, app15_in_a(T13))
app15_in_a([]) → app15_out_a([])
U11_ag(T7, T12, app15_out_a(T13)) → front1_out_ag(tree(T7, void, T12), [])
front1_in_ag(tree(T7, tree(T67, void, void), T66), []) → U12_ag(T7, T67, T66, front14_in_aa(T66, X12))
U12_ag(T7, T67, T66, front14_out_aa(T66, X12)) → front1_out_ag(tree(T7, tree(T67, void, void), T66), [])
front1_in_ag(tree(T7, tree(T80, T83, T84), T85), []) → U13_ag(T7, T80, T83, T84, T85, front14_in_aa(T83, X120))
U13_ag(T7, T80, T83, T84, T85, front14_out_aa(T83, X120)) → front1_out_ag(tree(T7, tree(T80, T83, T84), T85), [])
front1_in_ag(tree(T7, tree(T80, T83, T87), T88), []) → U14_ag(T7, T80, T83, T87, T88, front14_in_aa(T83, T86))
U14_ag(T7, T80, T83, T87, T88, front14_out_aa(T83, T86)) → U15_ag(T7, T80, T83, T87, T88, front14_in_aa(T87, X121))
U15_ag(T7, T80, T83, T87, T88, front14_out_aa(T87, X121)) → front1_out_ag(tree(T7, tree(T80, T83, T87), T88), [])
front1_in_ag(tree(T7, tree(T80, T83, T87), T91), []) → U16_ag(T7, T80, T83, T87, T91, front14_in_aa(T83, T90))
U16_ag(T7, T80, T83, T87, T91, front14_out_aa(T83, T90)) → U17_ag(T7, T80, T83, T87, T91, T90, front14_in_aa(T87, T89))
U17_ag(T7, T80, T83, T87, T91, T90, front14_out_aa(T87, T89)) → U18_ag(T7, T80, T83, T87, T91, app32_in_aaa(T90, T89, X122))
U18_ag(T7, T80, T83, T87, T91, app32_out_aaa(T90, T89, X122)) → front1_out_ag(tree(T7, tree(T80, T83, T87), T91), [])
front1_in_ag(tree(T7, tree(T80, T83, T87), T95), []) → U19_ag(T7, T80, T83, T87, T95, front14_in_aa(T83, T90))
U19_ag(T7, T80, T83, T87, T95, front14_out_aa(T83, T90)) → U20_ag(T7, T80, T83, T87, T95, T90, front14_in_aa(T87, T89))
U20_ag(T7, T80, T83, T87, T95, T90, front14_out_aa(T87, T89)) → U21_ag(T7, T80, T83, T87, T95, app32_in_aaa(T90, T89, T94))
U21_ag(T7, T80, T83, T87, T95, app32_out_aaa(T90, T89, T94)) → U22_ag(T7, T80, T83, T87, T95, front14_in_aa(T95, X12))
U22_ag(T7, T80, T83, T87, T95, front14_out_aa(T95, X12)) → front1_out_ag(tree(T7, tree(T80, T83, T87), T95), [])
U20_ag(T7, T80, T83, T87, T95, T90, front14_out_aa(T87, T89)) → U23_ag(T7, T80, T83, T87, T95, app32_in_aaa(T90, T89, T99))
U23_ag(T7, T80, T83, T87, T95, app32_out_aaa(T90, T89, T99)) → U24_ag(T7, T80, T83, T87, T95, T99, front14_in_aa(T95, T98))
U24_ag(T7, T80, T83, T87, T95, T99, front14_out_aa(T95, T98)) → U25_ag(T7, T80, T83, T87, T95, app66_in_aa(T99, T98))
app66_in_aa([], []) → app66_out_aa([], [])
U25_ag(T7, T80, T83, T87, T95, app66_out_aa(T99, T98)) → front1_out_ag(tree(T7, tree(T80, T83, T87), T95), [])
front1_in_ag(tree(T111, void, void), .(T111, [])) → front1_out_ag(tree(T111, void, void), .(T111, []))
front1_in_ag(tree(T116, void, T122), .(T119, [])) → U26_ag(T116, T122, T119, front14_in_aa(T122, X155))
U26_ag(T116, T122, T119, front14_out_aa(T122, X155)) → front1_out_ag(tree(T116, void, T122), .(T119, []))
front1_in_ag(tree(T116, void, T122), .(T137, [])) → U27_ag(T116, T122, T137, front14_in_ag(T122, .(T137, [])))
front14_in_ag(void, []) → front14_out_ag(void, [])
front14_in_ag(tree(T18, void, void), .(T18, [])) → front14_out_ag(tree(T18, void, void), .(T18, []))
front14_in_ag(tree(T25, T28, T29), X41) → U1_ag(T25, T28, T29, X41, front14_in_aa(T28, X39))
U1_ag(T25, T28, T29, X41, front14_out_aa(T28, X39)) → front14_out_ag(tree(T25, T28, T29), X41)
front14_in_ag(tree(T25, T28, T31), X41) → U2_ag(T25, T28, T31, X41, front14_in_aa(T28, T30))
U2_ag(T25, T28, T31, X41, front14_out_aa(T28, T30)) → U3_ag(T25, T28, T31, X41, front14_in_aa(T31, X40))
U3_ag(T25, T28, T31, X41, front14_out_aa(T31, X40)) → front14_out_ag(tree(T25, T28, T31), X41)
front14_in_ag(tree(T25, T28, T31), X41) → U4_ag(T25, T28, T31, X41, front14_in_aa(T28, T33))
U4_ag(T25, T28, T31, X41, front14_out_aa(T28, T33)) → U5_ag(T25, T28, T31, X41, T33, front14_in_aa(T31, T32))
U5_ag(T25, T28, T31, X41, T33, front14_out_aa(T31, T32)) → U6_ag(T25, T28, T31, X41, app32_in_aag(T33, T32, X41))
app32_in_aag([], T40, T40) → app32_out_aag([], T40, T40)
app32_in_aag(.(T47, T50), T51, .(T47, X68)) → U7_aag(T47, T50, T51, X68, app32_in_aag(T50, T51, X68))
U7_aag(T47, T50, T51, X68, app32_out_aag(T50, T51, X68)) → app32_out_aag(.(T47, T50), T51, .(T47, X68))
U6_ag(T25, T28, T31, X41, app32_out_aag(T33, T32, X41)) → front14_out_ag(tree(T25, T28, T31), X41)
U27_ag(T116, T122, T137, front14_out_ag(T122, .(T137, []))) → front1_out_ag(tree(T116, void, T122), .(T137, []))
front1_in_ag(tree(T116, tree(T144, void, void), T143), .(T119, [])) → U28_ag(T116, T144, T143, T119, front14_in_aa(T143, X155))
U28_ag(T116, T144, T143, T119, front14_out_aa(T143, X155)) → front1_out_ag(tree(T116, tree(T144, void, void), T143), .(T119, []))
front1_in_ag(tree(T116, tree(T153, void, void), T143), .(T153, [])) → U29_ag(T116, T153, T143, front14_in_aa(T143, T155))
U29_ag(T116, T153, T143, front14_out_aa(T143, T155)) → U30_ag(T116, T153, T143, app15_in_a(T155))
U30_ag(T116, T153, T143, app15_out_a(T155)) → front1_out_ag(tree(T116, tree(T153, void, void), T143), .(T153, []))
front1_in_ag(tree(T116, tree(T164, T167, T168), T169), .(T119, [])) → U31_ag(T116, T164, T167, T168, T169, T119, front14_in_aa(T167, X219))
U31_ag(T116, T164, T167, T168, T169, T119, front14_out_aa(T167, X219)) → front1_out_ag(tree(T116, tree(T164, T167, T168), T169), .(T119, []))
front1_in_ag(tree(T116, tree(T164, T167, T171), T172), .(T119, [])) → U32_ag(T116, T164, T167, T171, T172, T119, front14_in_aa(T167, T170))
U32_ag(T116, T164, T167, T171, T172, T119, front14_out_aa(T167, T170)) → U33_ag(T116, T164, T167, T171, T172, T119, front14_in_aa(T171, X220))
U33_ag(T116, T164, T167, T171, T172, T119, front14_out_aa(T171, X220)) → front1_out_ag(tree(T116, tree(T164, T167, T171), T172), .(T119, []))
front1_in_ag(tree(T116, tree(T164, T167, T171), T175), .(T119, [])) → U34_ag(T116, T164, T167, T171, T175, T119, front14_in_aa(T167, T174))
U34_ag(T116, T164, T167, T171, T175, T119, front14_out_aa(T167, T174)) → U35_ag(T116, T164, T167, T171, T175, T119, T174, front14_in_aa(T171, T173))
U35_ag(T116, T164, T167, T171, T175, T119, T174, front14_out_aa(T171, T173)) → U36_ag(T116, T164, T167, T171, T175, T119, app32_in_aaa(T174, T173, X221))
U36_ag(T116, T164, T167, T171, T175, T119, app32_out_aaa(T174, T173, X221)) → front1_out_ag(tree(T116, tree(T164, T167, T171), T175), .(T119, []))
front1_in_ag(tree(T116, tree(T164, T167, T171), T179), .(T119, [])) → U37_ag(T116, T164, T167, T171, T179, T119, front14_in_aa(T167, T174))
U37_ag(T116, T164, T167, T171, T179, T119, front14_out_aa(T167, T174)) → U38_ag(T116, T164, T167, T171, T179, T119, T174, front14_in_aa(T171, T173))
U38_ag(T116, T164, T167, T171, T179, T119, T174, front14_out_aa(T171, T173)) → U39_ag(T116, T164, T167, T171, T179, T119, app32_in_aaa(T174, T173, T178))
U39_ag(T116, T164, T167, T171, T179, T119, app32_out_aaa(T174, T173, T178)) → U40_ag(T116, T164, T167, T171, T179, T119, front14_in_aa(T179, X155))
U40_ag(T116, T164, T167, T171, T179, T119, front14_out_aa(T179, X155)) → front1_out_ag(tree(T116, tree(T164, T167, T171), T179), .(T119, []))
front1_in_ag(tree(T116, tree(T164, T167, T171), T179), .(T197, [])) → U41_ag(T116, T164, T167, T171, T179, T197, front14_in_aa(T167, T174))
U41_ag(T116, T164, T167, T171, T179, T197, front14_out_aa(T167, T174)) → U42_ag(T116, T164, T167, T171, T179, T197, T174, front14_in_aa(T171, T173))
U42_ag(T116, T164, T167, T171, T179, T197, T174, front14_out_aa(T171, T173)) → U43_ag(T116, T164, T167, T171, T179, T197, app32_in_aag(T174, T173, []))
U43_ag(T116, T164, T167, T171, T179, T197, app32_out_aag(T174, T173, [])) → U44_ag(T116, T164, T167, T171, T179, T197, front14_in_ag(T179, .(T197, [])))
U44_ag(T116, T164, T167, T171, T179, T197, front14_out_ag(T179, .(T197, []))) → front1_out_ag(tree(T116, tree(T164, T167, T171), T179), .(T197, []))
front1_in_ag(tree(T116, tree(T164, T167, T171), T179), .(T204, [])) → U45_ag(T116, T164, T167, T171, T179, T204, front14_in_aa(T167, T174))
U45_ag(T116, T164, T167, T171, T179, T204, front14_out_aa(T167, T174)) → U46_ag(T116, T164, T167, T171, T179, T204, T174, front14_in_aa(T171, T173))
U46_ag(T116, T164, T167, T171, T179, T204, T174, front14_out_aa(T171, T173)) → U47_ag(T116, T164, T167, T171, T179, T204, app32_in_aaa(T174, T173, .(T204, T207)))
U47_ag(T116, T164, T167, T171, T179, T204, app32_out_aaa(T174, T173, .(T204, T207))) → U48_ag(T116, T164, T167, T171, T179, T204, T207, front14_in_aa(T179, T208))
U48_ag(T116, T164, T167, T171, T179, T204, T207, front14_out_aa(T179, T208)) → U49_ag(T116, T164, T167, T171, T179, T204, app66_in_aa(T207, T208))
U49_ag(T116, T164, T167, T171, T179, T204, app66_out_aa(T207, T208)) → front1_out_ag(tree(T116, tree(T164, T167, T171), T179), .(T204, []))
front1_in_ag(tree(T215, void, T221), T218) → U50_ag(T215, T221, T218, front14_in_aa(T221, X265))
U50_ag(T215, T221, T218, front14_out_aa(T221, X265)) → front1_out_ag(tree(T215, void, T221), T218)
front1_in_ag(tree(T215, void, T221), T231) → U51_ag(T215, T221, T231, front14_in_ag(T221, T231))
U51_ag(T215, T221, T231, front14_out_ag(T221, T231)) → front1_out_ag(tree(T215, void, T221), T231)
front1_in_ag(tree(T215, tree(T238, void, void), T237), T218) → U52_ag(T215, T238, T237, T218, front14_in_aa(T237, X265))
U52_ag(T215, T238, T237, T218, front14_out_aa(T237, X265)) → front1_out_ag(tree(T215, tree(T238, void, void), T237), T218)
front1_in_ag(tree(T215, tree(T252, void, void), T237), .(T252, T262)) → U53_ag(T215, T252, T237, T262, front14_in_ag(T237, T262))
U53_ag(T215, T252, T237, T262, front14_out_ag(T237, T262)) → front1_out_ag(tree(T215, tree(T252, void, void), T237), .(T252, T262))
front1_in_ag(tree(T215, tree(T269, T272, T273), T274), T218) → U54_ag(T215, T269, T272, T273, T274, T218, front14_in_aa(T272, X339))
U54_ag(T215, T269, T272, T273, T274, T218, front14_out_aa(T272, X339)) → front1_out_ag(tree(T215, tree(T269, T272, T273), T274), T218)
front1_in_ag(tree(T215, tree(T269, T272, T276), T277), T218) → U55_ag(T215, T269, T272, T276, T277, T218, front14_in_aa(T272, T275))
U55_ag(T215, T269, T272, T276, T277, T218, front14_out_aa(T272, T275)) → U56_ag(T215, T269, T272, T276, T277, T218, front14_in_aa(T276, X340))
U56_ag(T215, T269, T272, T276, T277, T218, front14_out_aa(T276, X340)) → front1_out_ag(tree(T215, tree(T269, T272, T276), T277), T218)
front1_in_ag(tree(T215, tree(T269, T272, T276), T282), T218) → U57_ag(T215, T269, T272, T276, T282, T218, front14_in_aa(T272, T281))
U57_ag(T215, T269, T272, T276, T282, T218, front14_out_aa(T272, T281)) → U58_ag(T215, T269, T272, T276, T282, T218, T281, front14_in_aa(T276, T280))
U58_ag(T215, T269, T272, T276, T282, T218, T281, front14_out_aa(T276, T280)) → U59_ag(T215, T269, T272, T276, T282, T218, app32_in_aaa(T281, T280, X341))
U59_ag(T215, T269, T272, T276, T282, T218, app32_out_aaa(T281, T280, X341)) → front1_out_ag(tree(T215, tree(T269, T272, T276), T282), T218)
front1_in_ag(tree(T215, tree(T269, T272, T276), T288), T218) → U60_ag(T215, T269, T272, T276, T288, T218, front14_in_aa(T272, T281))
U60_ag(T215, T269, T272, T276, T288, T218, front14_out_aa(T272, T281)) → U61_ag(T215, T269, T272, T276, T288, T218, T281, front14_in_aa(T276, T280))
U61_ag(T215, T269, T272, T276, T288, T218, T281, front14_out_aa(T276, T280)) → U62_ag(T215, T269, T272, T276, T288, T218, app32_in_aaa(T281, T280, T287))
U62_ag(T215, T269, T272, T276, T288, T218, app32_out_aaa(T281, T280, T287)) → U63_ag(T215, T269, T272, T276, T288, T218, front14_in_aa(T288, X265))
U63_ag(T215, T269, T272, T276, T288, T218, front14_out_aa(T288, X265)) → front1_out_ag(tree(T215, tree(T269, T272, T276), T288), T218)
front1_in_ag(tree(T215, tree(T269, T272, T276), T288), T303) → U64_ag(T215, T269, T272, T276, T288, T303, front14_in_aa(T272, T281))
U64_ag(T215, T269, T272, T276, T288, T303, front14_out_aa(T272, T281)) → U65_ag(T215, T269, T272, T276, T288, T303, T281, front14_in_aa(T276, T280))
U65_ag(T215, T269, T272, T276, T288, T303, T281, front14_out_aa(T276, T280)) → U66_ag(T215, T269, T272, T276, T288, T303, app32_in_aag(T281, T280, []))
U66_ag(T215, T269, T272, T276, T288, T303, app32_out_aag(T281, T280, [])) → U67_ag(T215, T269, T272, T276, T288, T303, front14_in_ag(T288, T303))
U67_ag(T215, T269, T272, T276, T288, T303, front14_out_ag(T288, T303)) → front1_out_ag(tree(T215, tree(T269, T272, T276), T288), T303)
front1_in_ag(tree(T215, tree(T269, T272, T276), T288), .(T312, T324)) → U68_ag(T215, T269, T272, T276, T288, T312, T324, front14_in_aa(T272, T281))
U68_ag(T215, T269, T272, T276, T288, T312, T324, front14_out_aa(T272, T281)) → U69_ag(T215, T269, T272, T276, T288, T312, T324, T281, front14_in_aa(T276, T280))
U69_ag(T215, T269, T272, T276, T288, T312, T324, T281, front14_out_aa(T276, T280)) → U70_ag(T215, T269, T272, T276, T288, T312, T324, app32_in_aag(T281, T280, .(T312, [])))
U70_ag(T215, T269, T272, T276, T288, T312, T324, app32_out_aag(T281, T280, .(T312, []))) → U71_ag(T215, T269, T272, T276, T288, T312, T324, front14_in_ag(T288, T324))
U71_ag(T215, T269, T272, T276, T288, T312, T324, front14_out_ag(T288, T324)) → front1_out_ag(tree(T215, tree(T269, T272, T276), T288), .(T312, T324))
front1_in_ag(tree(T215, tree(T269, T272, T276), T288), .(T312, .(T333, T336))) → U72_ag(T215, T269, T272, T276, T288, T312, T333, T336, front14_in_aa(T272, T281))
U72_ag(T215, T269, T272, T276, T288, T312, T333, T336, front14_out_aa(T272, T281)) → U73_ag(T215, T269, T272, T276, T288, T312, T333, T336, T281, front14_in_aa(T276, T280))
U73_ag(T215, T269, T272, T276, T288, T312, T333, T336, T281, front14_out_aa(T276, T280)) → U74_ag(T215, T269, T272, T276, T288, T312, T333, T336, app32_in_aaa(T281, T280, .(T312, .(T333, T337))))
U74_ag(T215, T269, T272, T276, T288, T312, T333, T336, app32_out_aaa(T281, T280, .(T312, .(T333, T337)))) → U75_ag(T215, T269, T272, T276, T288, T312, T333, T336, T337, front14_in_aa(T288, T338))
U75_ag(T215, T269, T272, T276, T288, T312, T333, T336, T337, front14_out_aa(T288, T338)) → U76_ag(T215, T269, T272, T276, T288, T312, T333, T336, app178_in_aag(T337, T338, T336))
app178_in_aag([], T345, T345) → app178_out_aag([], T345, T345)
app178_in_aag(.(T354, T358), T359, .(T354, T357)) → U8_aag(T354, T358, T359, T357, app178_in_aag(T358, T359, T357))
U8_aag(T354, T358, T359, T357, app178_out_aag(T358, T359, T357)) → app178_out_aag(.(T354, T358), T359, .(T354, T357))
U76_ag(T215, T269, T272, T276, T288, T312, T333, T336, app178_out_aag(T337, T338, T336)) → front1_out_ag(tree(T215, tree(T269, T272, T276), T288), .(T312, .(T333, T336)))
APP32_IN_AAA(.(T47, T50), T51, .(T47, X68)) → APP32_IN_AAA(T50, T51, X68)
APP32_IN_AAA → APP32_IN_AAA
FRONT14_IN_AA(tree(T25, T28, T31), X41) → U2_AA(T25, T28, T31, X41, front14_in_aa(T28, T30))
U2_AA(T25, T28, T31, X41, front14_out_aa(T28, T30)) → FRONT14_IN_AA(T31, X40)
FRONT14_IN_AA(tree(T25, T28, T29), X41) → FRONT14_IN_AA(T28, X39)
FRONT14_IN_AA(tree(T25, T28, T31), X41) → U4_AA(T25, T28, T31, X41, front14_in_aa(T28, T33))
U4_AA(T25, T28, T31, X41, front14_out_aa(T28, T33)) → FRONT14_IN_AA(T31, T32)
front1_in_ag(void, []) → front1_out_ag(void, [])
front1_in_ag(tree(T7, void, T12), []) → U9_ag(T7, T12, front14_in_aa(T12, X12))
front14_in_aa(void, []) → front14_out_aa(void, [])
front14_in_aa(tree(T18, void, void), .(T18, [])) → front14_out_aa(tree(T18, void, void), .(T18, []))
front14_in_aa(tree(T25, T28, T29), X41) → U1_aa(T25, T28, T29, X41, front14_in_aa(T28, X39))
front14_in_aa(tree(T25, T28, T31), X41) → U2_aa(T25, T28, T31, X41, front14_in_aa(T28, T30))
front14_in_aa(tree(T25, T28, T31), X41) → U4_aa(T25, T28, T31, X41, front14_in_aa(T28, T33))
U4_aa(T25, T28, T31, X41, front14_out_aa(T28, T33)) → U5_aa(T25, T28, T31, X41, T33, front14_in_aa(T31, T32))
U5_aa(T25, T28, T31, X41, T33, front14_out_aa(T31, T32)) → U6_aa(T25, T28, T31, X41, app32_in_aaa(T33, T32, X41))
app32_in_aaa([], T40, T40) → app32_out_aaa([], T40, T40)
app32_in_aaa(.(T47, T50), T51, .(T47, X68)) → U7_aaa(T47, T50, T51, X68, app32_in_aaa(T50, T51, X68))
U7_aaa(T47, T50, T51, X68, app32_out_aaa(T50, T51, X68)) → app32_out_aaa(.(T47, T50), T51, .(T47, X68))
U6_aa(T25, T28, T31, X41, app32_out_aaa(T33, T32, X41)) → front14_out_aa(tree(T25, T28, T31), X41)
U2_aa(T25, T28, T31, X41, front14_out_aa(T28, T30)) → U3_aa(T25, T28, T31, X41, front14_in_aa(T31, X40))
U3_aa(T25, T28, T31, X41, front14_out_aa(T31, X40)) → front14_out_aa(tree(T25, T28, T31), X41)
U1_aa(T25, T28, T29, X41, front14_out_aa(T28, X39)) → front14_out_aa(tree(T25, T28, T29), X41)
U9_ag(T7, T12, front14_out_aa(T12, X12)) → front1_out_ag(tree(T7, void, T12), [])
front1_in_ag(tree(T7, void, T12), []) → U10_ag(T7, T12, front14_in_aa(T12, T13))
U10_ag(T7, T12, front14_out_aa(T12, T13)) → U11_ag(T7, T12, app15_in_a(T13))
app15_in_a([]) → app15_out_a([])
U11_ag(T7, T12, app15_out_a(T13)) → front1_out_ag(tree(T7, void, T12), [])
front1_in_ag(tree(T7, tree(T67, void, void), T66), []) → U12_ag(T7, T67, T66, front14_in_aa(T66, X12))
U12_ag(T7, T67, T66, front14_out_aa(T66, X12)) → front1_out_ag(tree(T7, tree(T67, void, void), T66), [])
front1_in_ag(tree(T7, tree(T80, T83, T84), T85), []) → U13_ag(T7, T80, T83, T84, T85, front14_in_aa(T83, X120))
U13_ag(T7, T80, T83, T84, T85, front14_out_aa(T83, X120)) → front1_out_ag(tree(T7, tree(T80, T83, T84), T85), [])
front1_in_ag(tree(T7, tree(T80, T83, T87), T88), []) → U14_ag(T7, T80, T83, T87, T88, front14_in_aa(T83, T86))
U14_ag(T7, T80, T83, T87, T88, front14_out_aa(T83, T86)) → U15_ag(T7, T80, T83, T87, T88, front14_in_aa(T87, X121))
U15_ag(T7, T80, T83, T87, T88, front14_out_aa(T87, X121)) → front1_out_ag(tree(T7, tree(T80, T83, T87), T88), [])
front1_in_ag(tree(T7, tree(T80, T83, T87), T91), []) → U16_ag(T7, T80, T83, T87, T91, front14_in_aa(T83, T90))
U16_ag(T7, T80, T83, T87, T91, front14_out_aa(T83, T90)) → U17_ag(T7, T80, T83, T87, T91, T90, front14_in_aa(T87, T89))
U17_ag(T7, T80, T83, T87, T91, T90, front14_out_aa(T87, T89)) → U18_ag(T7, T80, T83, T87, T91, app32_in_aaa(T90, T89, X122))
U18_ag(T7, T80, T83, T87, T91, app32_out_aaa(T90, T89, X122)) → front1_out_ag(tree(T7, tree(T80, T83, T87), T91), [])
front1_in_ag(tree(T7, tree(T80, T83, T87), T95), []) → U19_ag(T7, T80, T83, T87, T95, front14_in_aa(T83, T90))
U19_ag(T7, T80, T83, T87, T95, front14_out_aa(T83, T90)) → U20_ag(T7, T80, T83, T87, T95, T90, front14_in_aa(T87, T89))
U20_ag(T7, T80, T83, T87, T95, T90, front14_out_aa(T87, T89)) → U21_ag(T7, T80, T83, T87, T95, app32_in_aaa(T90, T89, T94))
U21_ag(T7, T80, T83, T87, T95, app32_out_aaa(T90, T89, T94)) → U22_ag(T7, T80, T83, T87, T95, front14_in_aa(T95, X12))
U22_ag(T7, T80, T83, T87, T95, front14_out_aa(T95, X12)) → front1_out_ag(tree(T7, tree(T80, T83, T87), T95), [])
U20_ag(T7, T80, T83, T87, T95, T90, front14_out_aa(T87, T89)) → U23_ag(T7, T80, T83, T87, T95, app32_in_aaa(T90, T89, T99))
U23_ag(T7, T80, T83, T87, T95, app32_out_aaa(T90, T89, T99)) → U24_ag(T7, T80, T83, T87, T95, T99, front14_in_aa(T95, T98))
U24_ag(T7, T80, T83, T87, T95, T99, front14_out_aa(T95, T98)) → U25_ag(T7, T80, T83, T87, T95, app66_in_aa(T99, T98))
app66_in_aa([], []) → app66_out_aa([], [])
U25_ag(T7, T80, T83, T87, T95, app66_out_aa(T99, T98)) → front1_out_ag(tree(T7, tree(T80, T83, T87), T95), [])
front1_in_ag(tree(T111, void, void), .(T111, [])) → front1_out_ag(tree(T111, void, void), .(T111, []))
front1_in_ag(tree(T116, void, T122), .(T119, [])) → U26_ag(T116, T122, T119, front14_in_aa(T122, X155))
U26_ag(T116, T122, T119, front14_out_aa(T122, X155)) → front1_out_ag(tree(T116, void, T122), .(T119, []))
front1_in_ag(tree(T116, void, T122), .(T137, [])) → U27_ag(T116, T122, T137, front14_in_ag(T122, .(T137, [])))
front14_in_ag(void, []) → front14_out_ag(void, [])
front14_in_ag(tree(T18, void, void), .(T18, [])) → front14_out_ag(tree(T18, void, void), .(T18, []))
front14_in_ag(tree(T25, T28, T29), X41) → U1_ag(T25, T28, T29, X41, front14_in_aa(T28, X39))
U1_ag(T25, T28, T29, X41, front14_out_aa(T28, X39)) → front14_out_ag(tree(T25, T28, T29), X41)
front14_in_ag(tree(T25, T28, T31), X41) → U2_ag(T25, T28, T31, X41, front14_in_aa(T28, T30))
U2_ag(T25, T28, T31, X41, front14_out_aa(T28, T30)) → U3_ag(T25, T28, T31, X41, front14_in_aa(T31, X40))
U3_ag(T25, T28, T31, X41, front14_out_aa(T31, X40)) → front14_out_ag(tree(T25, T28, T31), X41)
front14_in_ag(tree(T25, T28, T31), X41) → U4_ag(T25, T28, T31, X41, front14_in_aa(T28, T33))
U4_ag(T25, T28, T31, X41, front14_out_aa(T28, T33)) → U5_ag(T25, T28, T31, X41, T33, front14_in_aa(T31, T32))
U5_ag(T25, T28, T31, X41, T33, front14_out_aa(T31, T32)) → U6_ag(T25, T28, T31, X41, app32_in_aag(T33, T32, X41))
app32_in_aag([], T40, T40) → app32_out_aag([], T40, T40)
app32_in_aag(.(T47, T50), T51, .(T47, X68)) → U7_aag(T47, T50, T51, X68, app32_in_aag(T50, T51, X68))
U7_aag(T47, T50, T51, X68, app32_out_aag(T50, T51, X68)) → app32_out_aag(.(T47, T50), T51, .(T47, X68))
U6_ag(T25, T28, T31, X41, app32_out_aag(T33, T32, X41)) → front14_out_ag(tree(T25, T28, T31), X41)
U27_ag(T116, T122, T137, front14_out_ag(T122, .(T137, []))) → front1_out_ag(tree(T116, void, T122), .(T137, []))
front1_in_ag(tree(T116, tree(T144, void, void), T143), .(T119, [])) → U28_ag(T116, T144, T143, T119, front14_in_aa(T143, X155))
U28_ag(T116, T144, T143, T119, front14_out_aa(T143, X155)) → front1_out_ag(tree(T116, tree(T144, void, void), T143), .(T119, []))
front1_in_ag(tree(T116, tree(T153, void, void), T143), .(T153, [])) → U29_ag(T116, T153, T143, front14_in_aa(T143, T155))
U29_ag(T116, T153, T143, front14_out_aa(T143, T155)) → U30_ag(T116, T153, T143, app15_in_a(T155))
U30_ag(T116, T153, T143, app15_out_a(T155)) → front1_out_ag(tree(T116, tree(T153, void, void), T143), .(T153, []))
front1_in_ag(tree(T116, tree(T164, T167, T168), T169), .(T119, [])) → U31_ag(T116, T164, T167, T168, T169, T119, front14_in_aa(T167, X219))
U31_ag(T116, T164, T167, T168, T169, T119, front14_out_aa(T167, X219)) → front1_out_ag(tree(T116, tree(T164, T167, T168), T169), .(T119, []))
front1_in_ag(tree(T116, tree(T164, T167, T171), T172), .(T119, [])) → U32_ag(T116, T164, T167, T171, T172, T119, front14_in_aa(T167, T170))
U32_ag(T116, T164, T167, T171, T172, T119, front14_out_aa(T167, T170)) → U33_ag(T116, T164, T167, T171, T172, T119, front14_in_aa(T171, X220))
U33_ag(T116, T164, T167, T171, T172, T119, front14_out_aa(T171, X220)) → front1_out_ag(tree(T116, tree(T164, T167, T171), T172), .(T119, []))
front1_in_ag(tree(T116, tree(T164, T167, T171), T175), .(T119, [])) → U34_ag(T116, T164, T167, T171, T175, T119, front14_in_aa(T167, T174))
U34_ag(T116, T164, T167, T171, T175, T119, front14_out_aa(T167, T174)) → U35_ag(T116, T164, T167, T171, T175, T119, T174, front14_in_aa(T171, T173))
U35_ag(T116, T164, T167, T171, T175, T119, T174, front14_out_aa(T171, T173)) → U36_ag(T116, T164, T167, T171, T175, T119, app32_in_aaa(T174, T173, X221))
U36_ag(T116, T164, T167, T171, T175, T119, app32_out_aaa(T174, T173, X221)) → front1_out_ag(tree(T116, tree(T164, T167, T171), T175), .(T119, []))
front1_in_ag(tree(T116, tree(T164, T167, T171), T179), .(T119, [])) → U37_ag(T116, T164, T167, T171, T179, T119, front14_in_aa(T167, T174))
U37_ag(T116, T164, T167, T171, T179, T119, front14_out_aa(T167, T174)) → U38_ag(T116, T164, T167, T171, T179, T119, T174, front14_in_aa(T171, T173))
U38_ag(T116, T164, T167, T171, T179, T119, T174, front14_out_aa(T171, T173)) → U39_ag(T116, T164, T167, T171, T179, T119, app32_in_aaa(T174, T173, T178))
U39_ag(T116, T164, T167, T171, T179, T119, app32_out_aaa(T174, T173, T178)) → U40_ag(T116, T164, T167, T171, T179, T119, front14_in_aa(T179, X155))
U40_ag(T116, T164, T167, T171, T179, T119, front14_out_aa(T179, X155)) → front1_out_ag(tree(T116, tree(T164, T167, T171), T179), .(T119, []))
front1_in_ag(tree(T116, tree(T164, T167, T171), T179), .(T197, [])) → U41_ag(T116, T164, T167, T171, T179, T197, front14_in_aa(T167, T174))
U41_ag(T116, T164, T167, T171, T179, T197, front14_out_aa(T167, T174)) → U42_ag(T116, T164, T167, T171, T179, T197, T174, front14_in_aa(T171, T173))
U42_ag(T116, T164, T167, T171, T179, T197, T174, front14_out_aa(T171, T173)) → U43_ag(T116, T164, T167, T171, T179, T197, app32_in_aag(T174, T173, []))
U43_ag(T116, T164, T167, T171, T179, T197, app32_out_aag(T174, T173, [])) → U44_ag(T116, T164, T167, T171, T179, T197, front14_in_ag(T179, .(T197, [])))
U44_ag(T116, T164, T167, T171, T179, T197, front14_out_ag(T179, .(T197, []))) → front1_out_ag(tree(T116, tree(T164, T167, T171), T179), .(T197, []))
front1_in_ag(tree(T116, tree(T164, T167, T171), T179), .(T204, [])) → U45_ag(T116, T164, T167, T171, T179, T204, front14_in_aa(T167, T174))
U45_ag(T116, T164, T167, T171, T179, T204, front14_out_aa(T167, T174)) → U46_ag(T116, T164, T167, T171, T179, T204, T174, front14_in_aa(T171, T173))
U46_ag(T116, T164, T167, T171, T179, T204, T174, front14_out_aa(T171, T173)) → U47_ag(T116, T164, T167, T171, T179, T204, app32_in_aaa(T174, T173, .(T204, T207)))
U47_ag(T116, T164, T167, T171, T179, T204, app32_out_aaa(T174, T173, .(T204, T207))) → U48_ag(T116, T164, T167, T171, T179, T204, T207, front14_in_aa(T179, T208))
U48_ag(T116, T164, T167, T171, T179, T204, T207, front14_out_aa(T179, T208)) → U49_ag(T116, T164, T167, T171, T179, T204, app66_in_aa(T207, T208))
U49_ag(T116, T164, T167, T171, T179, T204, app66_out_aa(T207, T208)) → front1_out_ag(tree(T116, tree(T164, T167, T171), T179), .(T204, []))
front1_in_ag(tree(T215, void, T221), T218) → U50_ag(T215, T221, T218, front14_in_aa(T221, X265))
U50_ag(T215, T221, T218, front14_out_aa(T221, X265)) → front1_out_ag(tree(T215, void, T221), T218)
front1_in_ag(tree(T215, void, T221), T231) → U51_ag(T215, T221, T231, front14_in_ag(T221, T231))
U51_ag(T215, T221, T231, front14_out_ag(T221, T231)) → front1_out_ag(tree(T215, void, T221), T231)
front1_in_ag(tree(T215, tree(T238, void, void), T237), T218) → U52_ag(T215, T238, T237, T218, front14_in_aa(T237, X265))
U52_ag(T215, T238, T237, T218, front14_out_aa(T237, X265)) → front1_out_ag(tree(T215, tree(T238, void, void), T237), T218)
front1_in_ag(tree(T215, tree(T252, void, void), T237), .(T252, T262)) → U53_ag(T215, T252, T237, T262, front14_in_ag(T237, T262))
U53_ag(T215, T252, T237, T262, front14_out_ag(T237, T262)) → front1_out_ag(tree(T215, tree(T252, void, void), T237), .(T252, T262))
front1_in_ag(tree(T215, tree(T269, T272, T273), T274), T218) → U54_ag(T215, T269, T272, T273, T274, T218, front14_in_aa(T272, X339))
U54_ag(T215, T269, T272, T273, T274, T218, front14_out_aa(T272, X339)) → front1_out_ag(tree(T215, tree(T269, T272, T273), T274), T218)
front1_in_ag(tree(T215, tree(T269, T272, T276), T277), T218) → U55_ag(T215, T269, T272, T276, T277, T218, front14_in_aa(T272, T275))
U55_ag(T215, T269, T272, T276, T277, T218, front14_out_aa(T272, T275)) → U56_ag(T215, T269, T272, T276, T277, T218, front14_in_aa(T276, X340))
U56_ag(T215, T269, T272, T276, T277, T218, front14_out_aa(T276, X340)) → front1_out_ag(tree(T215, tree(T269, T272, T276), T277), T218)
front1_in_ag(tree(T215, tree(T269, T272, T276), T282), T218) → U57_ag(T215, T269, T272, T276, T282, T218, front14_in_aa(T272, T281))
U57_ag(T215, T269, T272, T276, T282, T218, front14_out_aa(T272, T281)) → U58_ag(T215, T269, T272, T276, T282, T218, T281, front14_in_aa(T276, T280))
U58_ag(T215, T269, T272, T276, T282, T218, T281, front14_out_aa(T276, T280)) → U59_ag(T215, T269, T272, T276, T282, T218, app32_in_aaa(T281, T280, X341))
U59_ag(T215, T269, T272, T276, T282, T218, app32_out_aaa(T281, T280, X341)) → front1_out_ag(tree(T215, tree(T269, T272, T276), T282), T218)
front1_in_ag(tree(T215, tree(T269, T272, T276), T288), T218) → U60_ag(T215, T269, T272, T276, T288, T218, front14_in_aa(T272, T281))
U60_ag(T215, T269, T272, T276, T288, T218, front14_out_aa(T272, T281)) → U61_ag(T215, T269, T272, T276, T288, T218, T281, front14_in_aa(T276, T280))
U61_ag(T215, T269, T272, T276, T288, T218, T281, front14_out_aa(T276, T280)) → U62_ag(T215, T269, T272, T276, T288, T218, app32_in_aaa(T281, T280, T287))
U62_ag(T215, T269, T272, T276, T288, T218, app32_out_aaa(T281, T280, T287)) → U63_ag(T215, T269, T272, T276, T288, T218, front14_in_aa(T288, X265))
U63_ag(T215, T269, T272, T276, T288, T218, front14_out_aa(T288, X265)) → front1_out_ag(tree(T215, tree(T269, T272, T276), T288), T218)
front1_in_ag(tree(T215, tree(T269, T272, T276), T288), T303) → U64_ag(T215, T269, T272, T276, T288, T303, front14_in_aa(T272, T281))
U64_ag(T215, T269, T272, T276, T288, T303, front14_out_aa(T272, T281)) → U65_ag(T215, T269, T272, T276, T288, T303, T281, front14_in_aa(T276, T280))
U65_ag(T215, T269, T272, T276, T288, T303, T281, front14_out_aa(T276, T280)) → U66_ag(T215, T269, T272, T276, T288, T303, app32_in_aag(T281, T280, []))
U66_ag(T215, T269, T272, T276, T288, T303, app32_out_aag(T281, T280, [])) → U67_ag(T215, T269, T272, T276, T288, T303, front14_in_ag(T288, T303))
U67_ag(T215, T269, T272, T276, T288, T303, front14_out_ag(T288, T303)) → front1_out_ag(tree(T215, tree(T269, T272, T276), T288), T303)
front1_in_ag(tree(T215, tree(T269, T272, T276), T288), .(T312, T324)) → U68_ag(T215, T269, T272, T276, T288, T312, T324, front14_in_aa(T272, T281))
U68_ag(T215, T269, T272, T276, T288, T312, T324, front14_out_aa(T272, T281)) → U69_ag(T215, T269, T272, T276, T288, T312, T324, T281, front14_in_aa(T276, T280))
U69_ag(T215, T269, T272, T276, T288, T312, T324, T281, front14_out_aa(T276, T280)) → U70_ag(T215, T269, T272, T276, T288, T312, T324, app32_in_aag(T281, T280, .(T312, [])))
U70_ag(T215, T269, T272, T276, T288, T312, T324, app32_out_aag(T281, T280, .(T312, []))) → U71_ag(T215, T269, T272, T276, T288, T312, T324, front14_in_ag(T288, T324))
U71_ag(T215, T269, T272, T276, T288, T312, T324, front14_out_ag(T288, T324)) → front1_out_ag(tree(T215, tree(T269, T272, T276), T288), .(T312, T324))
front1_in_ag(tree(T215, tree(T269, T272, T276), T288), .(T312, .(T333, T336))) → U72_ag(T215, T269, T272, T276, T288, T312, T333, T336, front14_in_aa(T272, T281))
U72_ag(T215, T269, T272, T276, T288, T312, T333, T336, front14_out_aa(T272, T281)) → U73_ag(T215, T269, T272, T276, T288, T312, T333, T336, T281, front14_in_aa(T276, T280))
U73_ag(T215, T269, T272, T276, T288, T312, T333, T336, T281, front14_out_aa(T276, T280)) → U74_ag(T215, T269, T272, T276, T288, T312, T333, T336, app32_in_aaa(T281, T280, .(T312, .(T333, T337))))
U74_ag(T215, T269, T272, T276, T288, T312, T333, T336, app32_out_aaa(T281, T280, .(T312, .(T333, T337)))) → U75_ag(T215, T269, T272, T276, T288, T312, T333, T336, T337, front14_in_aa(T288, T338))
U75_ag(T215, T269, T272, T276, T288, T312, T333, T336, T337, front14_out_aa(T288, T338)) → U76_ag(T215, T269, T272, T276, T288, T312, T333, T336, app178_in_aag(T337, T338, T336))
app178_in_aag([], T345, T345) → app178_out_aag([], T345, T345)
app178_in_aag(.(T354, T358), T359, .(T354, T357)) → U8_aag(T354, T358, T359, T357, app178_in_aag(T358, T359, T357))
U8_aag(T354, T358, T359, T357, app178_out_aag(T358, T359, T357)) → app178_out_aag(.(T354, T358), T359, .(T354, T357))
U76_ag(T215, T269, T272, T276, T288, T312, T333, T336, app178_out_aag(T337, T338, T336)) → front1_out_ag(tree(T215, tree(T269, T272, T276), T288), .(T312, .(T333, T336)))
FRONT14_IN_AA(tree(T25, T28, T31), X41) → U2_AA(T25, T28, T31, X41, front14_in_aa(T28, T30))
U2_AA(T25, T28, T31, X41, front14_out_aa(T28, T30)) → FRONT14_IN_AA(T31, X40)
FRONT14_IN_AA(tree(T25, T28, T29), X41) → FRONT14_IN_AA(T28, X39)
FRONT14_IN_AA(tree(T25, T28, T31), X41) → U4_AA(T25, T28, T31, X41, front14_in_aa(T28, T33))
U4_AA(T25, T28, T31, X41, front14_out_aa(T28, T33)) → FRONT14_IN_AA(T31, T32)
front14_in_aa(void, []) → front14_out_aa(void, [])
front14_in_aa(tree(T18, void, void), .(T18, [])) → front14_out_aa(tree(T18, void, void), .(T18, []))
front14_in_aa(tree(T25, T28, T29), X41) → U1_aa(T25, T28, T29, X41, front14_in_aa(T28, X39))
front14_in_aa(tree(T25, T28, T31), X41) → U2_aa(T25, T28, T31, X41, front14_in_aa(T28, T30))
front14_in_aa(tree(T25, T28, T31), X41) → U4_aa(T25, T28, T31, X41, front14_in_aa(T28, T33))
U1_aa(T25, T28, T29, X41, front14_out_aa(T28, X39)) → front14_out_aa(tree(T25, T28, T29), X41)
U2_aa(T25, T28, T31, X41, front14_out_aa(T28, T30)) → U3_aa(T25, T28, T31, X41, front14_in_aa(T31, X40))
U4_aa(T25, T28, T31, X41, front14_out_aa(T28, T33)) → U5_aa(T25, T28, T31, X41, T33, front14_in_aa(T31, T32))
U3_aa(T25, T28, T31, X41, front14_out_aa(T31, X40)) → front14_out_aa(tree(T25, T28, T31), X41)
U5_aa(T25, T28, T31, X41, T33, front14_out_aa(T31, T32)) → U6_aa(T25, T28, T31, X41, app32_in_aaa(T33, T32, X41))
U6_aa(T25, T28, T31, X41, app32_out_aaa(T33, T32, X41)) → front14_out_aa(tree(T25, T28, T31), X41)
app32_in_aaa([], T40, T40) → app32_out_aaa([], T40, T40)
app32_in_aaa(.(T47, T50), T51, .(T47, X68)) → U7_aaa(T47, T50, T51, X68, app32_in_aaa(T50, T51, X68))
U7_aaa(T47, T50, T51, X68, app32_out_aaa(T50, T51, X68)) → app32_out_aaa(.(T47, T50), T51, .(T47, X68))
FRONT14_IN_AA → U2_AA(front14_in_aa)
U2_AA(front14_out_aa) → FRONT14_IN_AA
FRONT14_IN_AA → FRONT14_IN_AA
FRONT14_IN_AA → U4_AA(front14_in_aa)
U4_AA(front14_out_aa) → FRONT14_IN_AA
front14_in_aa → front14_out_aa
front14_in_aa → U1_aa(front14_in_aa)
front14_in_aa → U2_aa(front14_in_aa)
front14_in_aa → U4_aa(front14_in_aa)
U1_aa(front14_out_aa) → front14_out_aa
U2_aa(front14_out_aa) → U3_aa(front14_in_aa)
U4_aa(front14_out_aa) → U5_aa(front14_in_aa)
U3_aa(front14_out_aa) → front14_out_aa
U5_aa(front14_out_aa) → U6_aa(app32_in_aaa)
U6_aa(app32_out_aaa(T33)) → front14_out_aa
app32_in_aaa → app32_out_aaa([])
app32_in_aaa → U7_aaa(app32_in_aaa)
U7_aaa(app32_out_aaa(T50)) → app32_out_aaa(.(T50))
front14_in_aa
U1_aa(x0)
U2_aa(x0)
U4_aa(x0)
U3_aa(x0)
U5_aa(x0)
U6_aa(x0)
app32_in_aaa
U7_aaa(x0)
FRONT14_IN_AA → U2_AA(front14_out_aa)
FRONT14_IN_AA → U2_AA(U1_aa(front14_in_aa))
FRONT14_IN_AA → U2_AA(U2_aa(front14_in_aa))
FRONT14_IN_AA → U2_AA(U4_aa(front14_in_aa))
U2_AA(front14_out_aa) → FRONT14_IN_AA
FRONT14_IN_AA → FRONT14_IN_AA
FRONT14_IN_AA → U4_AA(front14_in_aa)
U4_AA(front14_out_aa) → FRONT14_IN_AA
FRONT14_IN_AA → U2_AA(front14_out_aa)
FRONT14_IN_AA → U2_AA(U1_aa(front14_in_aa))
FRONT14_IN_AA → U2_AA(U2_aa(front14_in_aa))
FRONT14_IN_AA → U2_AA(U4_aa(front14_in_aa))
front14_in_aa → front14_out_aa
front14_in_aa → U1_aa(front14_in_aa)
front14_in_aa → U2_aa(front14_in_aa)
front14_in_aa → U4_aa(front14_in_aa)
U1_aa(front14_out_aa) → front14_out_aa
U2_aa(front14_out_aa) → U3_aa(front14_in_aa)
U4_aa(front14_out_aa) → U5_aa(front14_in_aa)
U3_aa(front14_out_aa) → front14_out_aa
U5_aa(front14_out_aa) → U6_aa(app32_in_aaa)
U6_aa(app32_out_aaa(T33)) → front14_out_aa
app32_in_aaa → app32_out_aaa([])
app32_in_aaa → U7_aaa(app32_in_aaa)
U7_aaa(app32_out_aaa(T50)) → app32_out_aaa(.(T50))
front14_in_aa
U1_aa(x0)
U2_aa(x0)
U4_aa(x0)
U3_aa(x0)
U5_aa(x0)
U6_aa(x0)
app32_in_aaa
U7_aaa(x0)
FRONT14_IN_AA → U4_AA(front14_out_aa)
FRONT14_IN_AA → U4_AA(U1_aa(front14_in_aa))
FRONT14_IN_AA → U4_AA(U2_aa(front14_in_aa))
FRONT14_IN_AA → U4_AA(U4_aa(front14_in_aa))
U2_AA(front14_out_aa) → FRONT14_IN_AA
FRONT14_IN_AA → FRONT14_IN_AA
U4_AA(front14_out_aa) → FRONT14_IN_AA
FRONT14_IN_AA → U2_AA(front14_out_aa)
FRONT14_IN_AA → U2_AA(U1_aa(front14_in_aa))
FRONT14_IN_AA → U2_AA(U2_aa(front14_in_aa))
FRONT14_IN_AA → U2_AA(U4_aa(front14_in_aa))
FRONT14_IN_AA → U4_AA(front14_out_aa)
FRONT14_IN_AA → U4_AA(U1_aa(front14_in_aa))
FRONT14_IN_AA → U4_AA(U2_aa(front14_in_aa))
FRONT14_IN_AA → U4_AA(U4_aa(front14_in_aa))
front14_in_aa → front14_out_aa
front14_in_aa → U1_aa(front14_in_aa)
front14_in_aa → U2_aa(front14_in_aa)
front14_in_aa → U4_aa(front14_in_aa)
U1_aa(front14_out_aa) → front14_out_aa
U2_aa(front14_out_aa) → U3_aa(front14_in_aa)
U4_aa(front14_out_aa) → U5_aa(front14_in_aa)
U3_aa(front14_out_aa) → front14_out_aa
U5_aa(front14_out_aa) → U6_aa(app32_in_aaa)
U6_aa(app32_out_aaa(T33)) → front14_out_aa
app32_in_aaa → app32_out_aaa([])
app32_in_aaa → U7_aaa(app32_in_aaa)
U7_aaa(app32_out_aaa(T50)) → app32_out_aaa(.(T50))
front14_in_aa
U1_aa(x0)
U2_aa(x0)
U4_aa(x0)
U3_aa(x0)
U5_aa(x0)
U6_aa(x0)
app32_in_aaa
U7_aaa(x0)