(0) Obligation:

Clauses:

front(void, []).
front(tree(X, void, void), .(X, [])).
front(tree(X1, L, R), Xs) :- ','(front(L, Ls), ','(front(R, Rs), app(Ls, Rs, Xs))).
app([], X, X).
app(.(X, Xs), Ys, .(X, Zs)) :- app(Xs, Ys, Zs).

Queries:

front(a,g).

(1) PrologToPrologProblemTransformerProof (SOUND transformation)

Built Prolog problem from termination graph.

(2) Obligation:

Clauses:

front14(void, []).
front14(tree(T18, void, void), .(T18, [])).
front14(tree(T25, T28, T29), X41) :- front14(T28, X39).
front14(tree(T25, T28, T31), X41) :- ','(front14(T28, T30), front14(T31, X40)).
front14(tree(T25, T28, T31), X41) :- ','(front14(T28, T33), ','(front14(T31, T32), app32(T33, T32, X41))).
app32([], T40, T40).
app32(.(T47, T50), T51, .(T47, X68)) :- app32(T50, T51, X68).
app15([]).
app66([], []).
app178([], T345, T345).
app178(.(T354, T358), T359, .(T354, T357)) :- app178(T358, T359, T357).
front1(void, []).
front1(tree(T7, void, T12), []) :- front14(T12, X12).
front1(tree(T7, void, T12), []) :- ','(front14(T12, T13), app15(T13)).
front1(tree(T7, tree(T67, void, void), T66), []) :- front14(T66, X12).
front1(tree(T7, tree(T80, T83, T84), T85), []) :- front14(T83, X120).
front1(tree(T7, tree(T80, T83, T87), T88), []) :- ','(front14(T83, T86), front14(T87, X121)).
front1(tree(T7, tree(T80, T83, T87), T91), []) :- ','(front14(T83, T90), ','(front14(T87, T89), app32(T90, T89, X122))).
front1(tree(T7, tree(T80, T83, T87), T95), []) :- ','(front14(T83, T90), ','(front14(T87, T89), ','(app32(T90, T89, T94), front14(T95, X12)))).
front1(tree(T7, tree(T80, T83, T87), T95), []) :- ','(front14(T83, T90), ','(front14(T87, T89), ','(app32(T90, T89, T99), ','(front14(T95, T98), app66(T99, T98))))).
front1(tree(T111, void, void), .(T111, [])).
front1(tree(T116, void, T122), .(T119, [])) :- front14(T122, X155).
front1(tree(T116, void, T122), .(T137, [])) :- front14(T122, .(T137, [])).
front1(tree(T116, tree(T144, void, void), T143), .(T119, [])) :- front14(T143, X155).
front1(tree(T116, tree(T153, void, void), T143), .(T153, [])) :- ','(front14(T143, T155), app15(T155)).
front1(tree(T116, tree(T164, T167, T168), T169), .(T119, [])) :- front14(T167, X219).
front1(tree(T116, tree(T164, T167, T171), T172), .(T119, [])) :- ','(front14(T167, T170), front14(T171, X220)).
front1(tree(T116, tree(T164, T167, T171), T175), .(T119, [])) :- ','(front14(T167, T174), ','(front14(T171, T173), app32(T174, T173, X221))).
front1(tree(T116, tree(T164, T167, T171), T179), .(T119, [])) :- ','(front14(T167, T174), ','(front14(T171, T173), ','(app32(T174, T173, T178), front14(T179, X155)))).
front1(tree(T116, tree(T164, T167, T171), T179), .(T197, [])) :- ','(front14(T167, T174), ','(front14(T171, T173), ','(app32(T174, T173, []), front14(T179, .(T197, []))))).
front1(tree(T116, tree(T164, T167, T171), T179), .(T204, [])) :- ','(front14(T167, T174), ','(front14(T171, T173), ','(app32(T174, T173, .(T204, T207)), ','(front14(T179, T208), app66(T207, T208))))).
front1(tree(T215, void, T221), T218) :- front14(T221, X265).
front1(tree(T215, void, T221), T231) :- front14(T221, T231).
front1(tree(T215, tree(T238, void, void), T237), T218) :- front14(T237, X265).
front1(tree(T215, tree(T252, void, void), T237), .(T252, T262)) :- front14(T237, T262).
front1(tree(T215, tree(T269, T272, T273), T274), T218) :- front14(T272, X339).
front1(tree(T215, tree(T269, T272, T276), T277), T218) :- ','(front14(T272, T275), front14(T276, X340)).
front1(tree(T215, tree(T269, T272, T276), T282), T218) :- ','(front14(T272, T281), ','(front14(T276, T280), app32(T281, T280, X341))).
front1(tree(T215, tree(T269, T272, T276), T288), T218) :- ','(front14(T272, T281), ','(front14(T276, T280), ','(app32(T281, T280, T287), front14(T288, X265)))).
front1(tree(T215, tree(T269, T272, T276), T288), T303) :- ','(front14(T272, T281), ','(front14(T276, T280), ','(app32(T281, T280, []), front14(T288, T303)))).
front1(tree(T215, tree(T269, T272, T276), T288), .(T312, T324)) :- ','(front14(T272, T281), ','(front14(T276, T280), ','(app32(T281, T280, .(T312, [])), front14(T288, T324)))).
front1(tree(T215, tree(T269, T272, T276), T288), .(T312, .(T333, T336))) :- ','(front14(T272, T281), ','(front14(T276, T280), ','(app32(T281, T280, .(T312, .(T333, T337))), ','(front14(T288, T338), app178(T337, T338, T336))))).

Queries:

front1(a,g).

(3) PrologToPiTRSProof (SOUND transformation)

We use the technique of [LOPSTR]. With regard to the inferred argument filtering the predicates were used in the following modes:
front1_in: (f,b)
front14_in: (f,f) (f,b)
app32_in: (f,f,f) (f,f,b)
app178_in: (f,f,b)
Transforming Prolog into the following Term Rewriting System:
Pi-finite rewrite system:
The TRS R consists of the following rules:

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)))

The argument filtering Pi contains the following mapping:
front1_in_ag(x1, x2)  =  front1_in_ag(x2)
[]  =  []
front1_out_ag(x1, x2)  =  front1_out_ag
U9_ag(x1, x2, x3)  =  U9_ag(x3)
front14_in_aa(x1, x2)  =  front14_in_aa
front14_out_aa(x1, x2)  =  front14_out_aa
tree(x1, x2, x3)  =  tree(x2, x3)
.(x1, x2)  =  .(x2)
U1_aa(x1, x2, x3, x4, x5)  =  U1_aa(x5)
U2_aa(x1, x2, x3, x4, x5)  =  U2_aa(x5)
U4_aa(x1, x2, x3, x4, x5)  =  U4_aa(x5)
U5_aa(x1, x2, x3, x4, x5, x6)  =  U5_aa(x6)
U6_aa(x1, x2, x3, x4, x5)  =  U6_aa(x5)
U3_aa(x1, x2, x3, x4, x5)  =  U3_aa(x5)
app32_in_aaa(x1, x2, x3)  =  app32_in_aaa
app32_out_aaa(x1, x2, x3)  =  app32_out_aaa(x1)
U7_aaa(x1, x2, x3, x4, x5)  =  U7_aaa(x5)
U10_ag(x1, x2, x3)  =  U10_ag(x3)
U11_ag(x1, x2, x3)  =  U11_ag(x3)
app15_in_a(x1)  =  app15_in_a
app15_out_a(x1)  =  app15_out_a(x1)
U12_ag(x1, x2, x3, x4)  =  U12_ag(x4)
U13_ag(x1, x2, x3, x4, x5, x6)  =  U13_ag(x6)
U14_ag(x1, x2, x3, x4, x5, x6)  =  U14_ag(x6)
U15_ag(x1, x2, x3, x4, x5, x6)  =  U15_ag(x6)
U16_ag(x1, x2, x3, x4, x5, x6)  =  U16_ag(x6)
U17_ag(x1, x2, x3, x4, x5, x6, x7)  =  U17_ag(x7)
U18_ag(x1, x2, x3, x4, x5, x6)  =  U18_ag(x6)
U19_ag(x1, x2, x3, x4, x5, x6)  =  U19_ag(x6)
U20_ag(x1, x2, x3, x4, x5, x6, x7)  =  U20_ag(x7)
U21_ag(x1, x2, x3, x4, x5, x6)  =  U21_ag(x6)
U22_ag(x1, x2, x3, x4, x5, x6)  =  U22_ag(x6)
U23_ag(x1, x2, x3, x4, x5, x6)  =  U23_ag(x6)
U24_ag(x1, x2, x3, x4, x5, x6, x7)  =  U24_ag(x7)
U25_ag(x1, x2, x3, x4, x5, x6)  =  U25_ag(x6)
app66_in_aa(x1, x2)  =  app66_in_aa
app66_out_aa(x1, x2)  =  app66_out_aa(x1, x2)
U26_ag(x1, x2, x3, x4)  =  U26_ag(x4)
U27_ag(x1, x2, x3, x4)  =  U27_ag(x4)
front14_in_ag(x1, x2)  =  front14_in_ag(x2)
front14_out_ag(x1, x2)  =  front14_out_ag
U1_ag(x1, x2, x3, x4, x5)  =  U1_ag(x5)
U2_ag(x1, x2, x3, x4, x5)  =  U2_ag(x5)
U3_ag(x1, x2, x3, x4, x5)  =  U3_ag(x5)
U4_ag(x1, x2, x3, x4, x5)  =  U4_ag(x4, x5)
U5_ag(x1, x2, x3, x4, x5, x6)  =  U5_ag(x4, x6)
U6_ag(x1, x2, x3, x4, x5)  =  U6_ag(x5)
app32_in_aag(x1, x2, x3)  =  app32_in_aag(x3)
app32_out_aag(x1, x2, x3)  =  app32_out_aag(x1, x2)
U7_aag(x1, x2, x3, x4, x5)  =  U7_aag(x5)
U28_ag(x1, x2, x3, x4, x5)  =  U28_ag(x5)
U29_ag(x1, x2, x3, x4)  =  U29_ag(x4)
U30_ag(x1, x2, x3, x4)  =  U30_ag(x4)
U31_ag(x1, x2, x3, x4, x5, x6, x7)  =  U31_ag(x7)
U32_ag(x1, x2, x3, x4, x5, x6, x7)  =  U32_ag(x7)
U33_ag(x1, x2, x3, x4, x5, x6, x7)  =  U33_ag(x7)
U34_ag(x1, x2, x3, x4, x5, x6, x7)  =  U34_ag(x7)
U35_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U35_ag(x8)
U36_ag(x1, x2, x3, x4, x5, x6, x7)  =  U36_ag(x7)
U37_ag(x1, x2, x3, x4, x5, x6, x7)  =  U37_ag(x7)
U38_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U38_ag(x8)
U39_ag(x1, x2, x3, x4, x5, x6, x7)  =  U39_ag(x7)
U40_ag(x1, x2, x3, x4, x5, x6, x7)  =  U40_ag(x7)
U41_ag(x1, x2, x3, x4, x5, x6, x7)  =  U41_ag(x7)
U42_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U42_ag(x8)
U43_ag(x1, x2, x3, x4, x5, x6, x7)  =  U43_ag(x7)
U44_ag(x1, x2, x3, x4, x5, x6, x7)  =  U44_ag(x7)
U45_ag(x1, x2, x3, x4, x5, x6, x7)  =  U45_ag(x7)
U46_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U46_ag(x8)
U47_ag(x1, x2, x3, x4, x5, x6, x7)  =  U47_ag(x7)
U48_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U48_ag(x8)
U49_ag(x1, x2, x3, x4, x5, x6, x7)  =  U49_ag(x7)
U50_ag(x1, x2, x3, x4)  =  U50_ag(x4)
U51_ag(x1, x2, x3, x4)  =  U51_ag(x4)
U52_ag(x1, x2, x3, x4, x5)  =  U52_ag(x5)
U53_ag(x1, x2, x3, x4, x5)  =  U53_ag(x5)
U54_ag(x1, x2, x3, x4, x5, x6, x7)  =  U54_ag(x7)
U55_ag(x1, x2, x3, x4, x5, x6, x7)  =  U55_ag(x7)
U56_ag(x1, x2, x3, x4, x5, x6, x7)  =  U56_ag(x7)
U57_ag(x1, x2, x3, x4, x5, x6, x7)  =  U57_ag(x7)
U58_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U58_ag(x8)
U59_ag(x1, x2, x3, x4, x5, x6, x7)  =  U59_ag(x7)
U60_ag(x1, x2, x3, x4, x5, x6, x7)  =  U60_ag(x7)
U61_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U61_ag(x8)
U62_ag(x1, x2, x3, x4, x5, x6, x7)  =  U62_ag(x7)
U63_ag(x1, x2, x3, x4, x5, x6, x7)  =  U63_ag(x7)
U64_ag(x1, x2, x3, x4, x5, x6, x7)  =  U64_ag(x6, x7)
U65_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U65_ag(x6, x8)
U66_ag(x1, x2, x3, x4, x5, x6, x7)  =  U66_ag(x6, x7)
U67_ag(x1, x2, x3, x4, x5, x6, x7)  =  U67_ag(x7)
U68_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U68_ag(x7, x8)
U69_ag(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U69_ag(x7, x9)
U70_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U70_ag(x7, x8)
U71_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U71_ag(x8)
U72_ag(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U72_ag(x8, x9)
U73_ag(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10)  =  U73_ag(x8, x10)
U74_ag(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U74_ag(x8, x9)
U75_ag(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10)  =  U75_ag(x8, x10)
U76_ag(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U76_ag(x9)
app178_in_aag(x1, x2, x3)  =  app178_in_aag(x3)
app178_out_aag(x1, x2, x3)  =  app178_out_aag(x1, x2)
U8_aag(x1, x2, x3, x4, x5)  =  U8_aag(x5)

Infinitary Constructor Rewriting Termination of PiTRS implies Termination of Prolog

(4) Obligation:

Pi-finite rewrite system:
The TRS R consists of the following rules:

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)))

The argument filtering Pi contains the following mapping:
front1_in_ag(x1, x2)  =  front1_in_ag(x2)
[]  =  []
front1_out_ag(x1, x2)  =  front1_out_ag
U9_ag(x1, x2, x3)  =  U9_ag(x3)
front14_in_aa(x1, x2)  =  front14_in_aa
front14_out_aa(x1, x2)  =  front14_out_aa
tree(x1, x2, x3)  =  tree(x2, x3)
.(x1, x2)  =  .(x2)
U1_aa(x1, x2, x3, x4, x5)  =  U1_aa(x5)
U2_aa(x1, x2, x3, x4, x5)  =  U2_aa(x5)
U4_aa(x1, x2, x3, x4, x5)  =  U4_aa(x5)
U5_aa(x1, x2, x3, x4, x5, x6)  =  U5_aa(x6)
U6_aa(x1, x2, x3, x4, x5)  =  U6_aa(x5)
U3_aa(x1, x2, x3, x4, x5)  =  U3_aa(x5)
app32_in_aaa(x1, x2, x3)  =  app32_in_aaa
app32_out_aaa(x1, x2, x3)  =  app32_out_aaa(x1)
U7_aaa(x1, x2, x3, x4, x5)  =  U7_aaa(x5)
U10_ag(x1, x2, x3)  =  U10_ag(x3)
U11_ag(x1, x2, x3)  =  U11_ag(x3)
app15_in_a(x1)  =  app15_in_a
app15_out_a(x1)  =  app15_out_a(x1)
U12_ag(x1, x2, x3, x4)  =  U12_ag(x4)
U13_ag(x1, x2, x3, x4, x5, x6)  =  U13_ag(x6)
U14_ag(x1, x2, x3, x4, x5, x6)  =  U14_ag(x6)
U15_ag(x1, x2, x3, x4, x5, x6)  =  U15_ag(x6)
U16_ag(x1, x2, x3, x4, x5, x6)  =  U16_ag(x6)
U17_ag(x1, x2, x3, x4, x5, x6, x7)  =  U17_ag(x7)
U18_ag(x1, x2, x3, x4, x5, x6)  =  U18_ag(x6)
U19_ag(x1, x2, x3, x4, x5, x6)  =  U19_ag(x6)
U20_ag(x1, x2, x3, x4, x5, x6, x7)  =  U20_ag(x7)
U21_ag(x1, x2, x3, x4, x5, x6)  =  U21_ag(x6)
U22_ag(x1, x2, x3, x4, x5, x6)  =  U22_ag(x6)
U23_ag(x1, x2, x3, x4, x5, x6)  =  U23_ag(x6)
U24_ag(x1, x2, x3, x4, x5, x6, x7)  =  U24_ag(x7)
U25_ag(x1, x2, x3, x4, x5, x6)  =  U25_ag(x6)
app66_in_aa(x1, x2)  =  app66_in_aa
app66_out_aa(x1, x2)  =  app66_out_aa(x1, x2)
U26_ag(x1, x2, x3, x4)  =  U26_ag(x4)
U27_ag(x1, x2, x3, x4)  =  U27_ag(x4)
front14_in_ag(x1, x2)  =  front14_in_ag(x2)
front14_out_ag(x1, x2)  =  front14_out_ag
U1_ag(x1, x2, x3, x4, x5)  =  U1_ag(x5)
U2_ag(x1, x2, x3, x4, x5)  =  U2_ag(x5)
U3_ag(x1, x2, x3, x4, x5)  =  U3_ag(x5)
U4_ag(x1, x2, x3, x4, x5)  =  U4_ag(x4, x5)
U5_ag(x1, x2, x3, x4, x5, x6)  =  U5_ag(x4, x6)
U6_ag(x1, x2, x3, x4, x5)  =  U6_ag(x5)
app32_in_aag(x1, x2, x3)  =  app32_in_aag(x3)
app32_out_aag(x1, x2, x3)  =  app32_out_aag(x1, x2)
U7_aag(x1, x2, x3, x4, x5)  =  U7_aag(x5)
U28_ag(x1, x2, x3, x4, x5)  =  U28_ag(x5)
U29_ag(x1, x2, x3, x4)  =  U29_ag(x4)
U30_ag(x1, x2, x3, x4)  =  U30_ag(x4)
U31_ag(x1, x2, x3, x4, x5, x6, x7)  =  U31_ag(x7)
U32_ag(x1, x2, x3, x4, x5, x6, x7)  =  U32_ag(x7)
U33_ag(x1, x2, x3, x4, x5, x6, x7)  =  U33_ag(x7)
U34_ag(x1, x2, x3, x4, x5, x6, x7)  =  U34_ag(x7)
U35_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U35_ag(x8)
U36_ag(x1, x2, x3, x4, x5, x6, x7)  =  U36_ag(x7)
U37_ag(x1, x2, x3, x4, x5, x6, x7)  =  U37_ag(x7)
U38_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U38_ag(x8)
U39_ag(x1, x2, x3, x4, x5, x6, x7)  =  U39_ag(x7)
U40_ag(x1, x2, x3, x4, x5, x6, x7)  =  U40_ag(x7)
U41_ag(x1, x2, x3, x4, x5, x6, x7)  =  U41_ag(x7)
U42_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U42_ag(x8)
U43_ag(x1, x2, x3, x4, x5, x6, x7)  =  U43_ag(x7)
U44_ag(x1, x2, x3, x4, x5, x6, x7)  =  U44_ag(x7)
U45_ag(x1, x2, x3, x4, x5, x6, x7)  =  U45_ag(x7)
U46_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U46_ag(x8)
U47_ag(x1, x2, x3, x4, x5, x6, x7)  =  U47_ag(x7)
U48_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U48_ag(x8)
U49_ag(x1, x2, x3, x4, x5, x6, x7)  =  U49_ag(x7)
U50_ag(x1, x2, x3, x4)  =  U50_ag(x4)
U51_ag(x1, x2, x3, x4)  =  U51_ag(x4)
U52_ag(x1, x2, x3, x4, x5)  =  U52_ag(x5)
U53_ag(x1, x2, x3, x4, x5)  =  U53_ag(x5)
U54_ag(x1, x2, x3, x4, x5, x6, x7)  =  U54_ag(x7)
U55_ag(x1, x2, x3, x4, x5, x6, x7)  =  U55_ag(x7)
U56_ag(x1, x2, x3, x4, x5, x6, x7)  =  U56_ag(x7)
U57_ag(x1, x2, x3, x4, x5, x6, x7)  =  U57_ag(x7)
U58_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U58_ag(x8)
U59_ag(x1, x2, x3, x4, x5, x6, x7)  =  U59_ag(x7)
U60_ag(x1, x2, x3, x4, x5, x6, x7)  =  U60_ag(x7)
U61_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U61_ag(x8)
U62_ag(x1, x2, x3, x4, x5, x6, x7)  =  U62_ag(x7)
U63_ag(x1, x2, x3, x4, x5, x6, x7)  =  U63_ag(x7)
U64_ag(x1, x2, x3, x4, x5, x6, x7)  =  U64_ag(x6, x7)
U65_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U65_ag(x6, x8)
U66_ag(x1, x2, x3, x4, x5, x6, x7)  =  U66_ag(x6, x7)
U67_ag(x1, x2, x3, x4, x5, x6, x7)  =  U67_ag(x7)
U68_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U68_ag(x7, x8)
U69_ag(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U69_ag(x7, x9)
U70_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U70_ag(x7, x8)
U71_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U71_ag(x8)
U72_ag(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U72_ag(x8, x9)
U73_ag(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10)  =  U73_ag(x8, x10)
U74_ag(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U74_ag(x8, x9)
U75_ag(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10)  =  U75_ag(x8, x10)
U76_ag(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U76_ag(x9)
app178_in_aag(x1, x2, x3)  =  app178_in_aag(x3)
app178_out_aag(x1, x2, x3)  =  app178_out_aag(x1, x2)
U8_aag(x1, x2, x3, x4, x5)  =  U8_aag(x5)

(5) DependencyPairsProof (EQUIVALENT transformation)

Using Dependency Pairs [AG00,LOPSTR] we result in the following initial DP problem:
Pi DP problem:
The TRS P consists of the following rules:

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)

The TRS R consists of the following rules:

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)))

The argument filtering Pi contains the following mapping:
front1_in_ag(x1, x2)  =  front1_in_ag(x2)
[]  =  []
front1_out_ag(x1, x2)  =  front1_out_ag
U9_ag(x1, x2, x3)  =  U9_ag(x3)
front14_in_aa(x1, x2)  =  front14_in_aa
front14_out_aa(x1, x2)  =  front14_out_aa
tree(x1, x2, x3)  =  tree(x2, x3)
.(x1, x2)  =  .(x2)
U1_aa(x1, x2, x3, x4, x5)  =  U1_aa(x5)
U2_aa(x1, x2, x3, x4, x5)  =  U2_aa(x5)
U4_aa(x1, x2, x3, x4, x5)  =  U4_aa(x5)
U5_aa(x1, x2, x3, x4, x5, x6)  =  U5_aa(x6)
U6_aa(x1, x2, x3, x4, x5)  =  U6_aa(x5)
U3_aa(x1, x2, x3, x4, x5)  =  U3_aa(x5)
app32_in_aaa(x1, x2, x3)  =  app32_in_aaa
app32_out_aaa(x1, x2, x3)  =  app32_out_aaa(x1)
U7_aaa(x1, x2, x3, x4, x5)  =  U7_aaa(x5)
U10_ag(x1, x2, x3)  =  U10_ag(x3)
U11_ag(x1, x2, x3)  =  U11_ag(x3)
app15_in_a(x1)  =  app15_in_a
app15_out_a(x1)  =  app15_out_a(x1)
U12_ag(x1, x2, x3, x4)  =  U12_ag(x4)
U13_ag(x1, x2, x3, x4, x5, x6)  =  U13_ag(x6)
U14_ag(x1, x2, x3, x4, x5, x6)  =  U14_ag(x6)
U15_ag(x1, x2, x3, x4, x5, x6)  =  U15_ag(x6)
U16_ag(x1, x2, x3, x4, x5, x6)  =  U16_ag(x6)
U17_ag(x1, x2, x3, x4, x5, x6, x7)  =  U17_ag(x7)
U18_ag(x1, x2, x3, x4, x5, x6)  =  U18_ag(x6)
U19_ag(x1, x2, x3, x4, x5, x6)  =  U19_ag(x6)
U20_ag(x1, x2, x3, x4, x5, x6, x7)  =  U20_ag(x7)
U21_ag(x1, x2, x3, x4, x5, x6)  =  U21_ag(x6)
U22_ag(x1, x2, x3, x4, x5, x6)  =  U22_ag(x6)
U23_ag(x1, x2, x3, x4, x5, x6)  =  U23_ag(x6)
U24_ag(x1, x2, x3, x4, x5, x6, x7)  =  U24_ag(x7)
U25_ag(x1, x2, x3, x4, x5, x6)  =  U25_ag(x6)
app66_in_aa(x1, x2)  =  app66_in_aa
app66_out_aa(x1, x2)  =  app66_out_aa(x1, x2)
U26_ag(x1, x2, x3, x4)  =  U26_ag(x4)
U27_ag(x1, x2, x3, x4)  =  U27_ag(x4)
front14_in_ag(x1, x2)  =  front14_in_ag(x2)
front14_out_ag(x1, x2)  =  front14_out_ag
U1_ag(x1, x2, x3, x4, x5)  =  U1_ag(x5)
U2_ag(x1, x2, x3, x4, x5)  =  U2_ag(x5)
U3_ag(x1, x2, x3, x4, x5)  =  U3_ag(x5)
U4_ag(x1, x2, x3, x4, x5)  =  U4_ag(x4, x5)
U5_ag(x1, x2, x3, x4, x5, x6)  =  U5_ag(x4, x6)
U6_ag(x1, x2, x3, x4, x5)  =  U6_ag(x5)
app32_in_aag(x1, x2, x3)  =  app32_in_aag(x3)
app32_out_aag(x1, x2, x3)  =  app32_out_aag(x1, x2)
U7_aag(x1, x2, x3, x4, x5)  =  U7_aag(x5)
U28_ag(x1, x2, x3, x4, x5)  =  U28_ag(x5)
U29_ag(x1, x2, x3, x4)  =  U29_ag(x4)
U30_ag(x1, x2, x3, x4)  =  U30_ag(x4)
U31_ag(x1, x2, x3, x4, x5, x6, x7)  =  U31_ag(x7)
U32_ag(x1, x2, x3, x4, x5, x6, x7)  =  U32_ag(x7)
U33_ag(x1, x2, x3, x4, x5, x6, x7)  =  U33_ag(x7)
U34_ag(x1, x2, x3, x4, x5, x6, x7)  =  U34_ag(x7)
U35_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U35_ag(x8)
U36_ag(x1, x2, x3, x4, x5, x6, x7)  =  U36_ag(x7)
U37_ag(x1, x2, x3, x4, x5, x6, x7)  =  U37_ag(x7)
U38_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U38_ag(x8)
U39_ag(x1, x2, x3, x4, x5, x6, x7)  =  U39_ag(x7)
U40_ag(x1, x2, x3, x4, x5, x6, x7)  =  U40_ag(x7)
U41_ag(x1, x2, x3, x4, x5, x6, x7)  =  U41_ag(x7)
U42_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U42_ag(x8)
U43_ag(x1, x2, x3, x4, x5, x6, x7)  =  U43_ag(x7)
U44_ag(x1, x2, x3, x4, x5, x6, x7)  =  U44_ag(x7)
U45_ag(x1, x2, x3, x4, x5, x6, x7)  =  U45_ag(x7)
U46_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U46_ag(x8)
U47_ag(x1, x2, x3, x4, x5, x6, x7)  =  U47_ag(x7)
U48_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U48_ag(x8)
U49_ag(x1, x2, x3, x4, x5, x6, x7)  =  U49_ag(x7)
U50_ag(x1, x2, x3, x4)  =  U50_ag(x4)
U51_ag(x1, x2, x3, x4)  =  U51_ag(x4)
U52_ag(x1, x2, x3, x4, x5)  =  U52_ag(x5)
U53_ag(x1, x2, x3, x4, x5)  =  U53_ag(x5)
U54_ag(x1, x2, x3, x4, x5, x6, x7)  =  U54_ag(x7)
U55_ag(x1, x2, x3, x4, x5, x6, x7)  =  U55_ag(x7)
U56_ag(x1, x2, x3, x4, x5, x6, x7)  =  U56_ag(x7)
U57_ag(x1, x2, x3, x4, x5, x6, x7)  =  U57_ag(x7)
U58_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U58_ag(x8)
U59_ag(x1, x2, x3, x4, x5, x6, x7)  =  U59_ag(x7)
U60_ag(x1, x2, x3, x4, x5, x6, x7)  =  U60_ag(x7)
U61_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U61_ag(x8)
U62_ag(x1, x2, x3, x4, x5, x6, x7)  =  U62_ag(x7)
U63_ag(x1, x2, x3, x4, x5, x6, x7)  =  U63_ag(x7)
U64_ag(x1, x2, x3, x4, x5, x6, x7)  =  U64_ag(x6, x7)
U65_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U65_ag(x6, x8)
U66_ag(x1, x2, x3, x4, x5, x6, x7)  =  U66_ag(x6, x7)
U67_ag(x1, x2, x3, x4, x5, x6, x7)  =  U67_ag(x7)
U68_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U68_ag(x7, x8)
U69_ag(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U69_ag(x7, x9)
U70_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U70_ag(x7, x8)
U71_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U71_ag(x8)
U72_ag(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U72_ag(x8, x9)
U73_ag(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10)  =  U73_ag(x8, x10)
U74_ag(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U74_ag(x8, x9)
U75_ag(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10)  =  U75_ag(x8, x10)
U76_ag(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U76_ag(x9)
app178_in_aag(x1, x2, x3)  =  app178_in_aag(x3)
app178_out_aag(x1, x2, x3)  =  app178_out_aag(x1, x2)
U8_aag(x1, x2, x3, x4, x5)  =  U8_aag(x5)
FRONT1_IN_AG(x1, x2)  =  FRONT1_IN_AG(x2)
U9_AG(x1, x2, x3)  =  U9_AG(x3)
FRONT14_IN_AA(x1, x2)  =  FRONT14_IN_AA
U1_AA(x1, x2, x3, x4, x5)  =  U1_AA(x5)
U2_AA(x1, x2, x3, x4, x5)  =  U2_AA(x5)
U4_AA(x1, x2, x3, x4, x5)  =  U4_AA(x5)
U5_AA(x1, x2, x3, x4, x5, x6)  =  U5_AA(x6)
U6_AA(x1, x2, x3, x4, x5)  =  U6_AA(x5)
APP32_IN_AAA(x1, x2, x3)  =  APP32_IN_AAA
U7_AAA(x1, x2, x3, x4, x5)  =  U7_AAA(x5)
U3_AA(x1, x2, x3, x4, x5)  =  U3_AA(x5)
U10_AG(x1, x2, x3)  =  U10_AG(x3)
U11_AG(x1, x2, x3)  =  U11_AG(x3)
APP15_IN_A(x1)  =  APP15_IN_A
U12_AG(x1, x2, x3, x4)  =  U12_AG(x4)
U13_AG(x1, x2, x3, x4, x5, x6)  =  U13_AG(x6)
U14_AG(x1, x2, x3, x4, x5, x6)  =  U14_AG(x6)
U15_AG(x1, x2, x3, x4, x5, x6)  =  U15_AG(x6)
U16_AG(x1, x2, x3, x4, x5, x6)  =  U16_AG(x6)
U17_AG(x1, x2, x3, x4, x5, x6, x7)  =  U17_AG(x7)
U18_AG(x1, x2, x3, x4, x5, x6)  =  U18_AG(x6)
U19_AG(x1, x2, x3, x4, x5, x6)  =  U19_AG(x6)
U20_AG(x1, x2, x3, x4, x5, x6, x7)  =  U20_AG(x7)
U21_AG(x1, x2, x3, x4, x5, x6)  =  U21_AG(x6)
U22_AG(x1, x2, x3, x4, x5, x6)  =  U22_AG(x6)
U23_AG(x1, x2, x3, x4, x5, x6)  =  U23_AG(x6)
U24_AG(x1, x2, x3, x4, x5, x6, x7)  =  U24_AG(x7)
U25_AG(x1, x2, x3, x4, x5, x6)  =  U25_AG(x6)
APP66_IN_AA(x1, x2)  =  APP66_IN_AA
U26_AG(x1, x2, x3, x4)  =  U26_AG(x4)
U27_AG(x1, x2, x3, x4)  =  U27_AG(x4)
FRONT14_IN_AG(x1, x2)  =  FRONT14_IN_AG(x2)
U1_AG(x1, x2, x3, x4, x5)  =  U1_AG(x5)
U2_AG(x1, x2, x3, x4, x5)  =  U2_AG(x5)
U3_AG(x1, x2, x3, x4, x5)  =  U3_AG(x5)
U4_AG(x1, x2, x3, x4, x5)  =  U4_AG(x4, x5)
U5_AG(x1, x2, x3, x4, x5, x6)  =  U5_AG(x4, x6)
U6_AG(x1, x2, x3, x4, x5)  =  U6_AG(x5)
APP32_IN_AAG(x1, x2, x3)  =  APP32_IN_AAG(x3)
U7_AAG(x1, x2, x3, x4, x5)  =  U7_AAG(x5)
U28_AG(x1, x2, x3, x4, x5)  =  U28_AG(x5)
U29_AG(x1, x2, x3, x4)  =  U29_AG(x4)
U30_AG(x1, x2, x3, x4)  =  U30_AG(x4)
U31_AG(x1, x2, x3, x4, x5, x6, x7)  =  U31_AG(x7)
U32_AG(x1, x2, x3, x4, x5, x6, x7)  =  U32_AG(x7)
U33_AG(x1, x2, x3, x4, x5, x6, x7)  =  U33_AG(x7)
U34_AG(x1, x2, x3, x4, x5, x6, x7)  =  U34_AG(x7)
U35_AG(x1, x2, x3, x4, x5, x6, x7, x8)  =  U35_AG(x8)
U36_AG(x1, x2, x3, x4, x5, x6, x7)  =  U36_AG(x7)
U37_AG(x1, x2, x3, x4, x5, x6, x7)  =  U37_AG(x7)
U38_AG(x1, x2, x3, x4, x5, x6, x7, x8)  =  U38_AG(x8)
U39_AG(x1, x2, x3, x4, x5, x6, x7)  =  U39_AG(x7)
U40_AG(x1, x2, x3, x4, x5, x6, x7)  =  U40_AG(x7)
U41_AG(x1, x2, x3, x4, x5, x6, x7)  =  U41_AG(x7)
U42_AG(x1, x2, x3, x4, x5, x6, x7, x8)  =  U42_AG(x8)
U43_AG(x1, x2, x3, x4, x5, x6, x7)  =  U43_AG(x7)
U44_AG(x1, x2, x3, x4, x5, x6, x7)  =  U44_AG(x7)
U45_AG(x1, x2, x3, x4, x5, x6, x7)  =  U45_AG(x7)
U46_AG(x1, x2, x3, x4, x5, x6, x7, x8)  =  U46_AG(x8)
U47_AG(x1, x2, x3, x4, x5, x6, x7)  =  U47_AG(x7)
U48_AG(x1, x2, x3, x4, x5, x6, x7, x8)  =  U48_AG(x8)
U49_AG(x1, x2, x3, x4, x5, x6, x7)  =  U49_AG(x7)
U50_AG(x1, x2, x3, x4)  =  U50_AG(x4)
U51_AG(x1, x2, x3, x4)  =  U51_AG(x4)
U52_AG(x1, x2, x3, x4, x5)  =  U52_AG(x5)
U53_AG(x1, x2, x3, x4, x5)  =  U53_AG(x5)
U54_AG(x1, x2, x3, x4, x5, x6, x7)  =  U54_AG(x7)
U55_AG(x1, x2, x3, x4, x5, x6, x7)  =  U55_AG(x7)
U56_AG(x1, x2, x3, x4, x5, x6, x7)  =  U56_AG(x7)
U57_AG(x1, x2, x3, x4, x5, x6, x7)  =  U57_AG(x7)
U58_AG(x1, x2, x3, x4, x5, x6, x7, x8)  =  U58_AG(x8)
U59_AG(x1, x2, x3, x4, x5, x6, x7)  =  U59_AG(x7)
U60_AG(x1, x2, x3, x4, x5, x6, x7)  =  U60_AG(x7)
U61_AG(x1, x2, x3, x4, x5, x6, x7, x8)  =  U61_AG(x8)
U62_AG(x1, x2, x3, x4, x5, x6, x7)  =  U62_AG(x7)
U63_AG(x1, x2, x3, x4, x5, x6, x7)  =  U63_AG(x7)
U64_AG(x1, x2, x3, x4, x5, x6, x7)  =  U64_AG(x6, x7)
U65_AG(x1, x2, x3, x4, x5, x6, x7, x8)  =  U65_AG(x6, x8)
U66_AG(x1, x2, x3, x4, x5, x6, x7)  =  U66_AG(x6, x7)
U67_AG(x1, x2, x3, x4, x5, x6, x7)  =  U67_AG(x7)
U68_AG(x1, x2, x3, x4, x5, x6, x7, x8)  =  U68_AG(x7, x8)
U69_AG(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U69_AG(x7, x9)
U70_AG(x1, x2, x3, x4, x5, x6, x7, x8)  =  U70_AG(x7, x8)
U71_AG(x1, x2, x3, x4, x5, x6, x7, x8)  =  U71_AG(x8)
U72_AG(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U72_AG(x8, x9)
U73_AG(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10)  =  U73_AG(x8, x10)
U74_AG(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U74_AG(x8, x9)
U75_AG(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10)  =  U75_AG(x8, x10)
U76_AG(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U76_AG(x9)
APP178_IN_AAG(x1, x2, x3)  =  APP178_IN_AAG(x3)
U8_AAG(x1, x2, x3, x4, x5)  =  U8_AAG(x5)

We have to consider all (P,R,Pi)-chains

(6) Obligation:

Pi DP problem:
The TRS P consists of the following rules:

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)

The TRS R consists of the following rules:

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)))

The argument filtering Pi contains the following mapping:
front1_in_ag(x1, x2)  =  front1_in_ag(x2)
[]  =  []
front1_out_ag(x1, x2)  =  front1_out_ag
U9_ag(x1, x2, x3)  =  U9_ag(x3)
front14_in_aa(x1, x2)  =  front14_in_aa
front14_out_aa(x1, x2)  =  front14_out_aa
tree(x1, x2, x3)  =  tree(x2, x3)
.(x1, x2)  =  .(x2)
U1_aa(x1, x2, x3, x4, x5)  =  U1_aa(x5)
U2_aa(x1, x2, x3, x4, x5)  =  U2_aa(x5)
U4_aa(x1, x2, x3, x4, x5)  =  U4_aa(x5)
U5_aa(x1, x2, x3, x4, x5, x6)  =  U5_aa(x6)
U6_aa(x1, x2, x3, x4, x5)  =  U6_aa(x5)
U3_aa(x1, x2, x3, x4, x5)  =  U3_aa(x5)
app32_in_aaa(x1, x2, x3)  =  app32_in_aaa
app32_out_aaa(x1, x2, x3)  =  app32_out_aaa(x1)
U7_aaa(x1, x2, x3, x4, x5)  =  U7_aaa(x5)
U10_ag(x1, x2, x3)  =  U10_ag(x3)
U11_ag(x1, x2, x3)  =  U11_ag(x3)
app15_in_a(x1)  =  app15_in_a
app15_out_a(x1)  =  app15_out_a(x1)
U12_ag(x1, x2, x3, x4)  =  U12_ag(x4)
U13_ag(x1, x2, x3, x4, x5, x6)  =  U13_ag(x6)
U14_ag(x1, x2, x3, x4, x5, x6)  =  U14_ag(x6)
U15_ag(x1, x2, x3, x4, x5, x6)  =  U15_ag(x6)
U16_ag(x1, x2, x3, x4, x5, x6)  =  U16_ag(x6)
U17_ag(x1, x2, x3, x4, x5, x6, x7)  =  U17_ag(x7)
U18_ag(x1, x2, x3, x4, x5, x6)  =  U18_ag(x6)
U19_ag(x1, x2, x3, x4, x5, x6)  =  U19_ag(x6)
U20_ag(x1, x2, x3, x4, x5, x6, x7)  =  U20_ag(x7)
U21_ag(x1, x2, x3, x4, x5, x6)  =  U21_ag(x6)
U22_ag(x1, x2, x3, x4, x5, x6)  =  U22_ag(x6)
U23_ag(x1, x2, x3, x4, x5, x6)  =  U23_ag(x6)
U24_ag(x1, x2, x3, x4, x5, x6, x7)  =  U24_ag(x7)
U25_ag(x1, x2, x3, x4, x5, x6)  =  U25_ag(x6)
app66_in_aa(x1, x2)  =  app66_in_aa
app66_out_aa(x1, x2)  =  app66_out_aa(x1, x2)
U26_ag(x1, x2, x3, x4)  =  U26_ag(x4)
U27_ag(x1, x2, x3, x4)  =  U27_ag(x4)
front14_in_ag(x1, x2)  =  front14_in_ag(x2)
front14_out_ag(x1, x2)  =  front14_out_ag
U1_ag(x1, x2, x3, x4, x5)  =  U1_ag(x5)
U2_ag(x1, x2, x3, x4, x5)  =  U2_ag(x5)
U3_ag(x1, x2, x3, x4, x5)  =  U3_ag(x5)
U4_ag(x1, x2, x3, x4, x5)  =  U4_ag(x4, x5)
U5_ag(x1, x2, x3, x4, x5, x6)  =  U5_ag(x4, x6)
U6_ag(x1, x2, x3, x4, x5)  =  U6_ag(x5)
app32_in_aag(x1, x2, x3)  =  app32_in_aag(x3)
app32_out_aag(x1, x2, x3)  =  app32_out_aag(x1, x2)
U7_aag(x1, x2, x3, x4, x5)  =  U7_aag(x5)
U28_ag(x1, x2, x3, x4, x5)  =  U28_ag(x5)
U29_ag(x1, x2, x3, x4)  =  U29_ag(x4)
U30_ag(x1, x2, x3, x4)  =  U30_ag(x4)
U31_ag(x1, x2, x3, x4, x5, x6, x7)  =  U31_ag(x7)
U32_ag(x1, x2, x3, x4, x5, x6, x7)  =  U32_ag(x7)
U33_ag(x1, x2, x3, x4, x5, x6, x7)  =  U33_ag(x7)
U34_ag(x1, x2, x3, x4, x5, x6, x7)  =  U34_ag(x7)
U35_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U35_ag(x8)
U36_ag(x1, x2, x3, x4, x5, x6, x7)  =  U36_ag(x7)
U37_ag(x1, x2, x3, x4, x5, x6, x7)  =  U37_ag(x7)
U38_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U38_ag(x8)
U39_ag(x1, x2, x3, x4, x5, x6, x7)  =  U39_ag(x7)
U40_ag(x1, x2, x3, x4, x5, x6, x7)  =  U40_ag(x7)
U41_ag(x1, x2, x3, x4, x5, x6, x7)  =  U41_ag(x7)
U42_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U42_ag(x8)
U43_ag(x1, x2, x3, x4, x5, x6, x7)  =  U43_ag(x7)
U44_ag(x1, x2, x3, x4, x5, x6, x7)  =  U44_ag(x7)
U45_ag(x1, x2, x3, x4, x5, x6, x7)  =  U45_ag(x7)
U46_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U46_ag(x8)
U47_ag(x1, x2, x3, x4, x5, x6, x7)  =  U47_ag(x7)
U48_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U48_ag(x8)
U49_ag(x1, x2, x3, x4, x5, x6, x7)  =  U49_ag(x7)
U50_ag(x1, x2, x3, x4)  =  U50_ag(x4)
U51_ag(x1, x2, x3, x4)  =  U51_ag(x4)
U52_ag(x1, x2, x3, x4, x5)  =  U52_ag(x5)
U53_ag(x1, x2, x3, x4, x5)  =  U53_ag(x5)
U54_ag(x1, x2, x3, x4, x5, x6, x7)  =  U54_ag(x7)
U55_ag(x1, x2, x3, x4, x5, x6, x7)  =  U55_ag(x7)
U56_ag(x1, x2, x3, x4, x5, x6, x7)  =  U56_ag(x7)
U57_ag(x1, x2, x3, x4, x5, x6, x7)  =  U57_ag(x7)
U58_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U58_ag(x8)
U59_ag(x1, x2, x3, x4, x5, x6, x7)  =  U59_ag(x7)
U60_ag(x1, x2, x3, x4, x5, x6, x7)  =  U60_ag(x7)
U61_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U61_ag(x8)
U62_ag(x1, x2, x3, x4, x5, x6, x7)  =  U62_ag(x7)
U63_ag(x1, x2, x3, x4, x5, x6, x7)  =  U63_ag(x7)
U64_ag(x1, x2, x3, x4, x5, x6, x7)  =  U64_ag(x6, x7)
U65_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U65_ag(x6, x8)
U66_ag(x1, x2, x3, x4, x5, x6, x7)  =  U66_ag(x6, x7)
U67_ag(x1, x2, x3, x4, x5, x6, x7)  =  U67_ag(x7)
U68_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U68_ag(x7, x8)
U69_ag(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U69_ag(x7, x9)
U70_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U70_ag(x7, x8)
U71_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U71_ag(x8)
U72_ag(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U72_ag(x8, x9)
U73_ag(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10)  =  U73_ag(x8, x10)
U74_ag(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U74_ag(x8, x9)
U75_ag(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10)  =  U75_ag(x8, x10)
U76_ag(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U76_ag(x9)
app178_in_aag(x1, x2, x3)  =  app178_in_aag(x3)
app178_out_aag(x1, x2, x3)  =  app178_out_aag(x1, x2)
U8_aag(x1, x2, x3, x4, x5)  =  U8_aag(x5)
FRONT1_IN_AG(x1, x2)  =  FRONT1_IN_AG(x2)
U9_AG(x1, x2, x3)  =  U9_AG(x3)
FRONT14_IN_AA(x1, x2)  =  FRONT14_IN_AA
U1_AA(x1, x2, x3, x4, x5)  =  U1_AA(x5)
U2_AA(x1, x2, x3, x4, x5)  =  U2_AA(x5)
U4_AA(x1, x2, x3, x4, x5)  =  U4_AA(x5)
U5_AA(x1, x2, x3, x4, x5, x6)  =  U5_AA(x6)
U6_AA(x1, x2, x3, x4, x5)  =  U6_AA(x5)
APP32_IN_AAA(x1, x2, x3)  =  APP32_IN_AAA
U7_AAA(x1, x2, x3, x4, x5)  =  U7_AAA(x5)
U3_AA(x1, x2, x3, x4, x5)  =  U3_AA(x5)
U10_AG(x1, x2, x3)  =  U10_AG(x3)
U11_AG(x1, x2, x3)  =  U11_AG(x3)
APP15_IN_A(x1)  =  APP15_IN_A
U12_AG(x1, x2, x3, x4)  =  U12_AG(x4)
U13_AG(x1, x2, x3, x4, x5, x6)  =  U13_AG(x6)
U14_AG(x1, x2, x3, x4, x5, x6)  =  U14_AG(x6)
U15_AG(x1, x2, x3, x4, x5, x6)  =  U15_AG(x6)
U16_AG(x1, x2, x3, x4, x5, x6)  =  U16_AG(x6)
U17_AG(x1, x2, x3, x4, x5, x6, x7)  =  U17_AG(x7)
U18_AG(x1, x2, x3, x4, x5, x6)  =  U18_AG(x6)
U19_AG(x1, x2, x3, x4, x5, x6)  =  U19_AG(x6)
U20_AG(x1, x2, x3, x4, x5, x6, x7)  =  U20_AG(x7)
U21_AG(x1, x2, x3, x4, x5, x6)  =  U21_AG(x6)
U22_AG(x1, x2, x3, x4, x5, x6)  =  U22_AG(x6)
U23_AG(x1, x2, x3, x4, x5, x6)  =  U23_AG(x6)
U24_AG(x1, x2, x3, x4, x5, x6, x7)  =  U24_AG(x7)
U25_AG(x1, x2, x3, x4, x5, x6)  =  U25_AG(x6)
APP66_IN_AA(x1, x2)  =  APP66_IN_AA
U26_AG(x1, x2, x3, x4)  =  U26_AG(x4)
U27_AG(x1, x2, x3, x4)  =  U27_AG(x4)
FRONT14_IN_AG(x1, x2)  =  FRONT14_IN_AG(x2)
U1_AG(x1, x2, x3, x4, x5)  =  U1_AG(x5)
U2_AG(x1, x2, x3, x4, x5)  =  U2_AG(x5)
U3_AG(x1, x2, x3, x4, x5)  =  U3_AG(x5)
U4_AG(x1, x2, x3, x4, x5)  =  U4_AG(x4, x5)
U5_AG(x1, x2, x3, x4, x5, x6)  =  U5_AG(x4, x6)
U6_AG(x1, x2, x3, x4, x5)  =  U6_AG(x5)
APP32_IN_AAG(x1, x2, x3)  =  APP32_IN_AAG(x3)
U7_AAG(x1, x2, x3, x4, x5)  =  U7_AAG(x5)
U28_AG(x1, x2, x3, x4, x5)  =  U28_AG(x5)
U29_AG(x1, x2, x3, x4)  =  U29_AG(x4)
U30_AG(x1, x2, x3, x4)  =  U30_AG(x4)
U31_AG(x1, x2, x3, x4, x5, x6, x7)  =  U31_AG(x7)
U32_AG(x1, x2, x3, x4, x5, x6, x7)  =  U32_AG(x7)
U33_AG(x1, x2, x3, x4, x5, x6, x7)  =  U33_AG(x7)
U34_AG(x1, x2, x3, x4, x5, x6, x7)  =  U34_AG(x7)
U35_AG(x1, x2, x3, x4, x5, x6, x7, x8)  =  U35_AG(x8)
U36_AG(x1, x2, x3, x4, x5, x6, x7)  =  U36_AG(x7)
U37_AG(x1, x2, x3, x4, x5, x6, x7)  =  U37_AG(x7)
U38_AG(x1, x2, x3, x4, x5, x6, x7, x8)  =  U38_AG(x8)
U39_AG(x1, x2, x3, x4, x5, x6, x7)  =  U39_AG(x7)
U40_AG(x1, x2, x3, x4, x5, x6, x7)  =  U40_AG(x7)
U41_AG(x1, x2, x3, x4, x5, x6, x7)  =  U41_AG(x7)
U42_AG(x1, x2, x3, x4, x5, x6, x7, x8)  =  U42_AG(x8)
U43_AG(x1, x2, x3, x4, x5, x6, x7)  =  U43_AG(x7)
U44_AG(x1, x2, x3, x4, x5, x6, x7)  =  U44_AG(x7)
U45_AG(x1, x2, x3, x4, x5, x6, x7)  =  U45_AG(x7)
U46_AG(x1, x2, x3, x4, x5, x6, x7, x8)  =  U46_AG(x8)
U47_AG(x1, x2, x3, x4, x5, x6, x7)  =  U47_AG(x7)
U48_AG(x1, x2, x3, x4, x5, x6, x7, x8)  =  U48_AG(x8)
U49_AG(x1, x2, x3, x4, x5, x6, x7)  =  U49_AG(x7)
U50_AG(x1, x2, x3, x4)  =  U50_AG(x4)
U51_AG(x1, x2, x3, x4)  =  U51_AG(x4)
U52_AG(x1, x2, x3, x4, x5)  =  U52_AG(x5)
U53_AG(x1, x2, x3, x4, x5)  =  U53_AG(x5)
U54_AG(x1, x2, x3, x4, x5, x6, x7)  =  U54_AG(x7)
U55_AG(x1, x2, x3, x4, x5, x6, x7)  =  U55_AG(x7)
U56_AG(x1, x2, x3, x4, x5, x6, x7)  =  U56_AG(x7)
U57_AG(x1, x2, x3, x4, x5, x6, x7)  =  U57_AG(x7)
U58_AG(x1, x2, x3, x4, x5, x6, x7, x8)  =  U58_AG(x8)
U59_AG(x1, x2, x3, x4, x5, x6, x7)  =  U59_AG(x7)
U60_AG(x1, x2, x3, x4, x5, x6, x7)  =  U60_AG(x7)
U61_AG(x1, x2, x3, x4, x5, x6, x7, x8)  =  U61_AG(x8)
U62_AG(x1, x2, x3, x4, x5, x6, x7)  =  U62_AG(x7)
U63_AG(x1, x2, x3, x4, x5, x6, x7)  =  U63_AG(x7)
U64_AG(x1, x2, x3, x4, x5, x6, x7)  =  U64_AG(x6, x7)
U65_AG(x1, x2, x3, x4, x5, x6, x7, x8)  =  U65_AG(x6, x8)
U66_AG(x1, x2, x3, x4, x5, x6, x7)  =  U66_AG(x6, x7)
U67_AG(x1, x2, x3, x4, x5, x6, x7)  =  U67_AG(x7)
U68_AG(x1, x2, x3, x4, x5, x6, x7, x8)  =  U68_AG(x7, x8)
U69_AG(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U69_AG(x7, x9)
U70_AG(x1, x2, x3, x4, x5, x6, x7, x8)  =  U70_AG(x7, x8)
U71_AG(x1, x2, x3, x4, x5, x6, x7, x8)  =  U71_AG(x8)
U72_AG(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U72_AG(x8, x9)
U73_AG(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10)  =  U73_AG(x8, x10)
U74_AG(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U74_AG(x8, x9)
U75_AG(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10)  =  U75_AG(x8, x10)
U76_AG(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U76_AG(x9)
APP178_IN_AAG(x1, x2, x3)  =  APP178_IN_AAG(x3)
U8_AAG(x1, x2, x3, x4, x5)  =  U8_AAG(x5)

We have to consider all (P,R,Pi)-chains

(7) DependencyGraphProof (EQUIVALENT transformation)

The approximation of the Dependency Graph [LOPSTR] contains 4 SCCs with 140 less nodes.

(8) Complex Obligation (AND)

(9) Obligation:

Pi DP problem:
The TRS P consists of the following rules:

APP178_IN_AAG(.(T354, T358), T359, .(T354, T357)) → APP178_IN_AAG(T358, T359, T357)

The TRS R consists of the following rules:

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)))

The argument filtering Pi contains the following mapping:
front1_in_ag(x1, x2)  =  front1_in_ag(x2)
[]  =  []
front1_out_ag(x1, x2)  =  front1_out_ag
U9_ag(x1, x2, x3)  =  U9_ag(x3)
front14_in_aa(x1, x2)  =  front14_in_aa
front14_out_aa(x1, x2)  =  front14_out_aa
tree(x1, x2, x3)  =  tree(x2, x3)
.(x1, x2)  =  .(x2)
U1_aa(x1, x2, x3, x4, x5)  =  U1_aa(x5)
U2_aa(x1, x2, x3, x4, x5)  =  U2_aa(x5)
U4_aa(x1, x2, x3, x4, x5)  =  U4_aa(x5)
U5_aa(x1, x2, x3, x4, x5, x6)  =  U5_aa(x6)
U6_aa(x1, x2, x3, x4, x5)  =  U6_aa(x5)
U3_aa(x1, x2, x3, x4, x5)  =  U3_aa(x5)
app32_in_aaa(x1, x2, x3)  =  app32_in_aaa
app32_out_aaa(x1, x2, x3)  =  app32_out_aaa(x1)
U7_aaa(x1, x2, x3, x4, x5)  =  U7_aaa(x5)
U10_ag(x1, x2, x3)  =  U10_ag(x3)
U11_ag(x1, x2, x3)  =  U11_ag(x3)
app15_in_a(x1)  =  app15_in_a
app15_out_a(x1)  =  app15_out_a(x1)
U12_ag(x1, x2, x3, x4)  =  U12_ag(x4)
U13_ag(x1, x2, x3, x4, x5, x6)  =  U13_ag(x6)
U14_ag(x1, x2, x3, x4, x5, x6)  =  U14_ag(x6)
U15_ag(x1, x2, x3, x4, x5, x6)  =  U15_ag(x6)
U16_ag(x1, x2, x3, x4, x5, x6)  =  U16_ag(x6)
U17_ag(x1, x2, x3, x4, x5, x6, x7)  =  U17_ag(x7)
U18_ag(x1, x2, x3, x4, x5, x6)  =  U18_ag(x6)
U19_ag(x1, x2, x3, x4, x5, x6)  =  U19_ag(x6)
U20_ag(x1, x2, x3, x4, x5, x6, x7)  =  U20_ag(x7)
U21_ag(x1, x2, x3, x4, x5, x6)  =  U21_ag(x6)
U22_ag(x1, x2, x3, x4, x5, x6)  =  U22_ag(x6)
U23_ag(x1, x2, x3, x4, x5, x6)  =  U23_ag(x6)
U24_ag(x1, x2, x3, x4, x5, x6, x7)  =  U24_ag(x7)
U25_ag(x1, x2, x3, x4, x5, x6)  =  U25_ag(x6)
app66_in_aa(x1, x2)  =  app66_in_aa
app66_out_aa(x1, x2)  =  app66_out_aa(x1, x2)
U26_ag(x1, x2, x3, x4)  =  U26_ag(x4)
U27_ag(x1, x2, x3, x4)  =  U27_ag(x4)
front14_in_ag(x1, x2)  =  front14_in_ag(x2)
front14_out_ag(x1, x2)  =  front14_out_ag
U1_ag(x1, x2, x3, x4, x5)  =  U1_ag(x5)
U2_ag(x1, x2, x3, x4, x5)  =  U2_ag(x5)
U3_ag(x1, x2, x3, x4, x5)  =  U3_ag(x5)
U4_ag(x1, x2, x3, x4, x5)  =  U4_ag(x4, x5)
U5_ag(x1, x2, x3, x4, x5, x6)  =  U5_ag(x4, x6)
U6_ag(x1, x2, x3, x4, x5)  =  U6_ag(x5)
app32_in_aag(x1, x2, x3)  =  app32_in_aag(x3)
app32_out_aag(x1, x2, x3)  =  app32_out_aag(x1, x2)
U7_aag(x1, x2, x3, x4, x5)  =  U7_aag(x5)
U28_ag(x1, x2, x3, x4, x5)  =  U28_ag(x5)
U29_ag(x1, x2, x3, x4)  =  U29_ag(x4)
U30_ag(x1, x2, x3, x4)  =  U30_ag(x4)
U31_ag(x1, x2, x3, x4, x5, x6, x7)  =  U31_ag(x7)
U32_ag(x1, x2, x3, x4, x5, x6, x7)  =  U32_ag(x7)
U33_ag(x1, x2, x3, x4, x5, x6, x7)  =  U33_ag(x7)
U34_ag(x1, x2, x3, x4, x5, x6, x7)  =  U34_ag(x7)
U35_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U35_ag(x8)
U36_ag(x1, x2, x3, x4, x5, x6, x7)  =  U36_ag(x7)
U37_ag(x1, x2, x3, x4, x5, x6, x7)  =  U37_ag(x7)
U38_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U38_ag(x8)
U39_ag(x1, x2, x3, x4, x5, x6, x7)  =  U39_ag(x7)
U40_ag(x1, x2, x3, x4, x5, x6, x7)  =  U40_ag(x7)
U41_ag(x1, x2, x3, x4, x5, x6, x7)  =  U41_ag(x7)
U42_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U42_ag(x8)
U43_ag(x1, x2, x3, x4, x5, x6, x7)  =  U43_ag(x7)
U44_ag(x1, x2, x3, x4, x5, x6, x7)  =  U44_ag(x7)
U45_ag(x1, x2, x3, x4, x5, x6, x7)  =  U45_ag(x7)
U46_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U46_ag(x8)
U47_ag(x1, x2, x3, x4, x5, x6, x7)  =  U47_ag(x7)
U48_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U48_ag(x8)
U49_ag(x1, x2, x3, x4, x5, x6, x7)  =  U49_ag(x7)
U50_ag(x1, x2, x3, x4)  =  U50_ag(x4)
U51_ag(x1, x2, x3, x4)  =  U51_ag(x4)
U52_ag(x1, x2, x3, x4, x5)  =  U52_ag(x5)
U53_ag(x1, x2, x3, x4, x5)  =  U53_ag(x5)
U54_ag(x1, x2, x3, x4, x5, x6, x7)  =  U54_ag(x7)
U55_ag(x1, x2, x3, x4, x5, x6, x7)  =  U55_ag(x7)
U56_ag(x1, x2, x3, x4, x5, x6, x7)  =  U56_ag(x7)
U57_ag(x1, x2, x3, x4, x5, x6, x7)  =  U57_ag(x7)
U58_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U58_ag(x8)
U59_ag(x1, x2, x3, x4, x5, x6, x7)  =  U59_ag(x7)
U60_ag(x1, x2, x3, x4, x5, x6, x7)  =  U60_ag(x7)
U61_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U61_ag(x8)
U62_ag(x1, x2, x3, x4, x5, x6, x7)  =  U62_ag(x7)
U63_ag(x1, x2, x3, x4, x5, x6, x7)  =  U63_ag(x7)
U64_ag(x1, x2, x3, x4, x5, x6, x7)  =  U64_ag(x6, x7)
U65_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U65_ag(x6, x8)
U66_ag(x1, x2, x3, x4, x5, x6, x7)  =  U66_ag(x6, x7)
U67_ag(x1, x2, x3, x4, x5, x6, x7)  =  U67_ag(x7)
U68_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U68_ag(x7, x8)
U69_ag(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U69_ag(x7, x9)
U70_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U70_ag(x7, x8)
U71_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U71_ag(x8)
U72_ag(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U72_ag(x8, x9)
U73_ag(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10)  =  U73_ag(x8, x10)
U74_ag(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U74_ag(x8, x9)
U75_ag(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10)  =  U75_ag(x8, x10)
U76_ag(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U76_ag(x9)
app178_in_aag(x1, x2, x3)  =  app178_in_aag(x3)
app178_out_aag(x1, x2, x3)  =  app178_out_aag(x1, x2)
U8_aag(x1, x2, x3, x4, x5)  =  U8_aag(x5)
APP178_IN_AAG(x1, x2, x3)  =  APP178_IN_AAG(x3)

We have to consider all (P,R,Pi)-chains

(10) UsableRulesProof (EQUIVALENT transformation)

For (infinitary) constructor rewriting [LOPSTR] we can delete all non-usable rules from R.

(11) Obligation:

Pi DP problem:
The TRS P consists of the following rules:

APP178_IN_AAG(.(T354, T358), T359, .(T354, T357)) → APP178_IN_AAG(T358, T359, T357)

R is empty.
The argument filtering Pi contains the following mapping:
.(x1, x2)  =  .(x2)
APP178_IN_AAG(x1, x2, x3)  =  APP178_IN_AAG(x3)

We have to consider all (P,R,Pi)-chains

(12) PiDPToQDPProof (SOUND transformation)

Transforming (infinitary) constructor rewriting Pi-DP problem [LOPSTR] into ordinary QDP problem [LPAR04] by application of Pi.

(13) Obligation:

Q DP problem:
The TRS P consists of the following rules:

APP178_IN_AAG(.(T357)) → APP178_IN_AAG(T357)

R is empty.
Q is empty.
We have to consider all (P,Q,R)-chains.

(14) QDPSizeChangeProof (EQUIVALENT transformation)

By using the subterm criterion [SUBTERM_CRITERION] together with the size-change analysis [AAECC05] we have proven that there are no infinite chains for this DP problem.

From the DPs we obtained the following set of size-change graphs:

  • APP178_IN_AAG(.(T357)) → APP178_IN_AAG(T357)
    The graph contains the following edges 1 > 1

(15) YES

(16) Obligation:

Pi DP problem:
The TRS P consists of the following rules:

APP32_IN_AAG(.(T47, T50), T51, .(T47, X68)) → APP32_IN_AAG(T50, T51, X68)

The TRS R consists of the following rules:

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)))

The argument filtering Pi contains the following mapping:
front1_in_ag(x1, x2)  =  front1_in_ag(x2)
[]  =  []
front1_out_ag(x1, x2)  =  front1_out_ag
U9_ag(x1, x2, x3)  =  U9_ag(x3)
front14_in_aa(x1, x2)  =  front14_in_aa
front14_out_aa(x1, x2)  =  front14_out_aa
tree(x1, x2, x3)  =  tree(x2, x3)
.(x1, x2)  =  .(x2)
U1_aa(x1, x2, x3, x4, x5)  =  U1_aa(x5)
U2_aa(x1, x2, x3, x4, x5)  =  U2_aa(x5)
U4_aa(x1, x2, x3, x4, x5)  =  U4_aa(x5)
U5_aa(x1, x2, x3, x4, x5, x6)  =  U5_aa(x6)
U6_aa(x1, x2, x3, x4, x5)  =  U6_aa(x5)
U3_aa(x1, x2, x3, x4, x5)  =  U3_aa(x5)
app32_in_aaa(x1, x2, x3)  =  app32_in_aaa
app32_out_aaa(x1, x2, x3)  =  app32_out_aaa(x1)
U7_aaa(x1, x2, x3, x4, x5)  =  U7_aaa(x5)
U10_ag(x1, x2, x3)  =  U10_ag(x3)
U11_ag(x1, x2, x3)  =  U11_ag(x3)
app15_in_a(x1)  =  app15_in_a
app15_out_a(x1)  =  app15_out_a(x1)
U12_ag(x1, x2, x3, x4)  =  U12_ag(x4)
U13_ag(x1, x2, x3, x4, x5, x6)  =  U13_ag(x6)
U14_ag(x1, x2, x3, x4, x5, x6)  =  U14_ag(x6)
U15_ag(x1, x2, x3, x4, x5, x6)  =  U15_ag(x6)
U16_ag(x1, x2, x3, x4, x5, x6)  =  U16_ag(x6)
U17_ag(x1, x2, x3, x4, x5, x6, x7)  =  U17_ag(x7)
U18_ag(x1, x2, x3, x4, x5, x6)  =  U18_ag(x6)
U19_ag(x1, x2, x3, x4, x5, x6)  =  U19_ag(x6)
U20_ag(x1, x2, x3, x4, x5, x6, x7)  =  U20_ag(x7)
U21_ag(x1, x2, x3, x4, x5, x6)  =  U21_ag(x6)
U22_ag(x1, x2, x3, x4, x5, x6)  =  U22_ag(x6)
U23_ag(x1, x2, x3, x4, x5, x6)  =  U23_ag(x6)
U24_ag(x1, x2, x3, x4, x5, x6, x7)  =  U24_ag(x7)
U25_ag(x1, x2, x3, x4, x5, x6)  =  U25_ag(x6)
app66_in_aa(x1, x2)  =  app66_in_aa
app66_out_aa(x1, x2)  =  app66_out_aa(x1, x2)
U26_ag(x1, x2, x3, x4)  =  U26_ag(x4)
U27_ag(x1, x2, x3, x4)  =  U27_ag(x4)
front14_in_ag(x1, x2)  =  front14_in_ag(x2)
front14_out_ag(x1, x2)  =  front14_out_ag
U1_ag(x1, x2, x3, x4, x5)  =  U1_ag(x5)
U2_ag(x1, x2, x3, x4, x5)  =  U2_ag(x5)
U3_ag(x1, x2, x3, x4, x5)  =  U3_ag(x5)
U4_ag(x1, x2, x3, x4, x5)  =  U4_ag(x4, x5)
U5_ag(x1, x2, x3, x4, x5, x6)  =  U5_ag(x4, x6)
U6_ag(x1, x2, x3, x4, x5)  =  U6_ag(x5)
app32_in_aag(x1, x2, x3)  =  app32_in_aag(x3)
app32_out_aag(x1, x2, x3)  =  app32_out_aag(x1, x2)
U7_aag(x1, x2, x3, x4, x5)  =  U7_aag(x5)
U28_ag(x1, x2, x3, x4, x5)  =  U28_ag(x5)
U29_ag(x1, x2, x3, x4)  =  U29_ag(x4)
U30_ag(x1, x2, x3, x4)  =  U30_ag(x4)
U31_ag(x1, x2, x3, x4, x5, x6, x7)  =  U31_ag(x7)
U32_ag(x1, x2, x3, x4, x5, x6, x7)  =  U32_ag(x7)
U33_ag(x1, x2, x3, x4, x5, x6, x7)  =  U33_ag(x7)
U34_ag(x1, x2, x3, x4, x5, x6, x7)  =  U34_ag(x7)
U35_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U35_ag(x8)
U36_ag(x1, x2, x3, x4, x5, x6, x7)  =  U36_ag(x7)
U37_ag(x1, x2, x3, x4, x5, x6, x7)  =  U37_ag(x7)
U38_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U38_ag(x8)
U39_ag(x1, x2, x3, x4, x5, x6, x7)  =  U39_ag(x7)
U40_ag(x1, x2, x3, x4, x5, x6, x7)  =  U40_ag(x7)
U41_ag(x1, x2, x3, x4, x5, x6, x7)  =  U41_ag(x7)
U42_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U42_ag(x8)
U43_ag(x1, x2, x3, x4, x5, x6, x7)  =  U43_ag(x7)
U44_ag(x1, x2, x3, x4, x5, x6, x7)  =  U44_ag(x7)
U45_ag(x1, x2, x3, x4, x5, x6, x7)  =  U45_ag(x7)
U46_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U46_ag(x8)
U47_ag(x1, x2, x3, x4, x5, x6, x7)  =  U47_ag(x7)
U48_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U48_ag(x8)
U49_ag(x1, x2, x3, x4, x5, x6, x7)  =  U49_ag(x7)
U50_ag(x1, x2, x3, x4)  =  U50_ag(x4)
U51_ag(x1, x2, x3, x4)  =  U51_ag(x4)
U52_ag(x1, x2, x3, x4, x5)  =  U52_ag(x5)
U53_ag(x1, x2, x3, x4, x5)  =  U53_ag(x5)
U54_ag(x1, x2, x3, x4, x5, x6, x7)  =  U54_ag(x7)
U55_ag(x1, x2, x3, x4, x5, x6, x7)  =  U55_ag(x7)
U56_ag(x1, x2, x3, x4, x5, x6, x7)  =  U56_ag(x7)
U57_ag(x1, x2, x3, x4, x5, x6, x7)  =  U57_ag(x7)
U58_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U58_ag(x8)
U59_ag(x1, x2, x3, x4, x5, x6, x7)  =  U59_ag(x7)
U60_ag(x1, x2, x3, x4, x5, x6, x7)  =  U60_ag(x7)
U61_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U61_ag(x8)
U62_ag(x1, x2, x3, x4, x5, x6, x7)  =  U62_ag(x7)
U63_ag(x1, x2, x3, x4, x5, x6, x7)  =  U63_ag(x7)
U64_ag(x1, x2, x3, x4, x5, x6, x7)  =  U64_ag(x6, x7)
U65_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U65_ag(x6, x8)
U66_ag(x1, x2, x3, x4, x5, x6, x7)  =  U66_ag(x6, x7)
U67_ag(x1, x2, x3, x4, x5, x6, x7)  =  U67_ag(x7)
U68_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U68_ag(x7, x8)
U69_ag(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U69_ag(x7, x9)
U70_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U70_ag(x7, x8)
U71_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U71_ag(x8)
U72_ag(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U72_ag(x8, x9)
U73_ag(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10)  =  U73_ag(x8, x10)
U74_ag(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U74_ag(x8, x9)
U75_ag(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10)  =  U75_ag(x8, x10)
U76_ag(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U76_ag(x9)
app178_in_aag(x1, x2, x3)  =  app178_in_aag(x3)
app178_out_aag(x1, x2, x3)  =  app178_out_aag(x1, x2)
U8_aag(x1, x2, x3, x4, x5)  =  U8_aag(x5)
APP32_IN_AAG(x1, x2, x3)  =  APP32_IN_AAG(x3)

We have to consider all (P,R,Pi)-chains

(17) UsableRulesProof (EQUIVALENT transformation)

For (infinitary) constructor rewriting [LOPSTR] we can delete all non-usable rules from R.

(18) Obligation:

Pi DP problem:
The TRS P consists of the following rules:

APP32_IN_AAG(.(T47, T50), T51, .(T47, X68)) → APP32_IN_AAG(T50, T51, X68)

R is empty.
The argument filtering Pi contains the following mapping:
.(x1, x2)  =  .(x2)
APP32_IN_AAG(x1, x2, x3)  =  APP32_IN_AAG(x3)

We have to consider all (P,R,Pi)-chains

(19) PiDPToQDPProof (SOUND transformation)

Transforming (infinitary) constructor rewriting Pi-DP problem [LOPSTR] into ordinary QDP problem [LPAR04] by application of Pi.

(20) Obligation:

Q DP problem:
The TRS P consists of the following rules:

APP32_IN_AAG(.(X68)) → APP32_IN_AAG(X68)

R is empty.
Q is empty.
We have to consider all (P,Q,R)-chains.

(21) QDPSizeChangeProof (EQUIVALENT transformation)

By using the subterm criterion [SUBTERM_CRITERION] together with the size-change analysis [AAECC05] we have proven that there are no infinite chains for this DP problem.

From the DPs we obtained the following set of size-change graphs:

  • APP32_IN_AAG(.(X68)) → APP32_IN_AAG(X68)
    The graph contains the following edges 1 > 1

(22) YES

(23) Obligation:

Pi DP problem:
The TRS P consists of the following rules:

APP32_IN_AAA(.(T47, T50), T51, .(T47, X68)) → APP32_IN_AAA(T50, T51, X68)

The TRS R consists of the following rules:

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)))

The argument filtering Pi contains the following mapping:
front1_in_ag(x1, x2)  =  front1_in_ag(x2)
[]  =  []
front1_out_ag(x1, x2)  =  front1_out_ag
U9_ag(x1, x2, x3)  =  U9_ag(x3)
front14_in_aa(x1, x2)  =  front14_in_aa
front14_out_aa(x1, x2)  =  front14_out_aa
tree(x1, x2, x3)  =  tree(x2, x3)
.(x1, x2)  =  .(x2)
U1_aa(x1, x2, x3, x4, x5)  =  U1_aa(x5)
U2_aa(x1, x2, x3, x4, x5)  =  U2_aa(x5)
U4_aa(x1, x2, x3, x4, x5)  =  U4_aa(x5)
U5_aa(x1, x2, x3, x4, x5, x6)  =  U5_aa(x6)
U6_aa(x1, x2, x3, x4, x5)  =  U6_aa(x5)
U3_aa(x1, x2, x3, x4, x5)  =  U3_aa(x5)
app32_in_aaa(x1, x2, x3)  =  app32_in_aaa
app32_out_aaa(x1, x2, x3)  =  app32_out_aaa(x1)
U7_aaa(x1, x2, x3, x4, x5)  =  U7_aaa(x5)
U10_ag(x1, x2, x3)  =  U10_ag(x3)
U11_ag(x1, x2, x3)  =  U11_ag(x3)
app15_in_a(x1)  =  app15_in_a
app15_out_a(x1)  =  app15_out_a(x1)
U12_ag(x1, x2, x3, x4)  =  U12_ag(x4)
U13_ag(x1, x2, x3, x4, x5, x6)  =  U13_ag(x6)
U14_ag(x1, x2, x3, x4, x5, x6)  =  U14_ag(x6)
U15_ag(x1, x2, x3, x4, x5, x6)  =  U15_ag(x6)
U16_ag(x1, x2, x3, x4, x5, x6)  =  U16_ag(x6)
U17_ag(x1, x2, x3, x4, x5, x6, x7)  =  U17_ag(x7)
U18_ag(x1, x2, x3, x4, x5, x6)  =  U18_ag(x6)
U19_ag(x1, x2, x3, x4, x5, x6)  =  U19_ag(x6)
U20_ag(x1, x2, x3, x4, x5, x6, x7)  =  U20_ag(x7)
U21_ag(x1, x2, x3, x4, x5, x6)  =  U21_ag(x6)
U22_ag(x1, x2, x3, x4, x5, x6)  =  U22_ag(x6)
U23_ag(x1, x2, x3, x4, x5, x6)  =  U23_ag(x6)
U24_ag(x1, x2, x3, x4, x5, x6, x7)  =  U24_ag(x7)
U25_ag(x1, x2, x3, x4, x5, x6)  =  U25_ag(x6)
app66_in_aa(x1, x2)  =  app66_in_aa
app66_out_aa(x1, x2)  =  app66_out_aa(x1, x2)
U26_ag(x1, x2, x3, x4)  =  U26_ag(x4)
U27_ag(x1, x2, x3, x4)  =  U27_ag(x4)
front14_in_ag(x1, x2)  =  front14_in_ag(x2)
front14_out_ag(x1, x2)  =  front14_out_ag
U1_ag(x1, x2, x3, x4, x5)  =  U1_ag(x5)
U2_ag(x1, x2, x3, x4, x5)  =  U2_ag(x5)
U3_ag(x1, x2, x3, x4, x5)  =  U3_ag(x5)
U4_ag(x1, x2, x3, x4, x5)  =  U4_ag(x4, x5)
U5_ag(x1, x2, x3, x4, x5, x6)  =  U5_ag(x4, x6)
U6_ag(x1, x2, x3, x4, x5)  =  U6_ag(x5)
app32_in_aag(x1, x2, x3)  =  app32_in_aag(x3)
app32_out_aag(x1, x2, x3)  =  app32_out_aag(x1, x2)
U7_aag(x1, x2, x3, x4, x5)  =  U7_aag(x5)
U28_ag(x1, x2, x3, x4, x5)  =  U28_ag(x5)
U29_ag(x1, x2, x3, x4)  =  U29_ag(x4)
U30_ag(x1, x2, x3, x4)  =  U30_ag(x4)
U31_ag(x1, x2, x3, x4, x5, x6, x7)  =  U31_ag(x7)
U32_ag(x1, x2, x3, x4, x5, x6, x7)  =  U32_ag(x7)
U33_ag(x1, x2, x3, x4, x5, x6, x7)  =  U33_ag(x7)
U34_ag(x1, x2, x3, x4, x5, x6, x7)  =  U34_ag(x7)
U35_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U35_ag(x8)
U36_ag(x1, x2, x3, x4, x5, x6, x7)  =  U36_ag(x7)
U37_ag(x1, x2, x3, x4, x5, x6, x7)  =  U37_ag(x7)
U38_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U38_ag(x8)
U39_ag(x1, x2, x3, x4, x5, x6, x7)  =  U39_ag(x7)
U40_ag(x1, x2, x3, x4, x5, x6, x7)  =  U40_ag(x7)
U41_ag(x1, x2, x3, x4, x5, x6, x7)  =  U41_ag(x7)
U42_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U42_ag(x8)
U43_ag(x1, x2, x3, x4, x5, x6, x7)  =  U43_ag(x7)
U44_ag(x1, x2, x3, x4, x5, x6, x7)  =  U44_ag(x7)
U45_ag(x1, x2, x3, x4, x5, x6, x7)  =  U45_ag(x7)
U46_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U46_ag(x8)
U47_ag(x1, x2, x3, x4, x5, x6, x7)  =  U47_ag(x7)
U48_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U48_ag(x8)
U49_ag(x1, x2, x3, x4, x5, x6, x7)  =  U49_ag(x7)
U50_ag(x1, x2, x3, x4)  =  U50_ag(x4)
U51_ag(x1, x2, x3, x4)  =  U51_ag(x4)
U52_ag(x1, x2, x3, x4, x5)  =  U52_ag(x5)
U53_ag(x1, x2, x3, x4, x5)  =  U53_ag(x5)
U54_ag(x1, x2, x3, x4, x5, x6, x7)  =  U54_ag(x7)
U55_ag(x1, x2, x3, x4, x5, x6, x7)  =  U55_ag(x7)
U56_ag(x1, x2, x3, x4, x5, x6, x7)  =  U56_ag(x7)
U57_ag(x1, x2, x3, x4, x5, x6, x7)  =  U57_ag(x7)
U58_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U58_ag(x8)
U59_ag(x1, x2, x3, x4, x5, x6, x7)  =  U59_ag(x7)
U60_ag(x1, x2, x3, x4, x5, x6, x7)  =  U60_ag(x7)
U61_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U61_ag(x8)
U62_ag(x1, x2, x3, x4, x5, x6, x7)  =  U62_ag(x7)
U63_ag(x1, x2, x3, x4, x5, x6, x7)  =  U63_ag(x7)
U64_ag(x1, x2, x3, x4, x5, x6, x7)  =  U64_ag(x6, x7)
U65_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U65_ag(x6, x8)
U66_ag(x1, x2, x3, x4, x5, x6, x7)  =  U66_ag(x6, x7)
U67_ag(x1, x2, x3, x4, x5, x6, x7)  =  U67_ag(x7)
U68_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U68_ag(x7, x8)
U69_ag(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U69_ag(x7, x9)
U70_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U70_ag(x7, x8)
U71_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U71_ag(x8)
U72_ag(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U72_ag(x8, x9)
U73_ag(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10)  =  U73_ag(x8, x10)
U74_ag(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U74_ag(x8, x9)
U75_ag(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10)  =  U75_ag(x8, x10)
U76_ag(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U76_ag(x9)
app178_in_aag(x1, x2, x3)  =  app178_in_aag(x3)
app178_out_aag(x1, x2, x3)  =  app178_out_aag(x1, x2)
U8_aag(x1, x2, x3, x4, x5)  =  U8_aag(x5)
APP32_IN_AAA(x1, x2, x3)  =  APP32_IN_AAA

We have to consider all (P,R,Pi)-chains

(24) UsableRulesProof (EQUIVALENT transformation)

For (infinitary) constructor rewriting [LOPSTR] we can delete all non-usable rules from R.

(25) Obligation:

Pi DP problem:
The TRS P consists of the following rules:

APP32_IN_AAA(.(T47, T50), T51, .(T47, X68)) → APP32_IN_AAA(T50, T51, X68)

R is empty.
The argument filtering Pi contains the following mapping:
.(x1, x2)  =  .(x2)
APP32_IN_AAA(x1, x2, x3)  =  APP32_IN_AAA

We have to consider all (P,R,Pi)-chains

(26) PiDPToQDPProof (SOUND transformation)

Transforming (infinitary) constructor rewriting Pi-DP problem [LOPSTR] into ordinary QDP problem [LPAR04] by application of Pi.

(27) Obligation:

Q DP problem:
The TRS P consists of the following rules:

APP32_IN_AAAAPP32_IN_AAA

R is empty.
Q is empty.
We have to consider all (P,Q,R)-chains.

(28) NonTerminationProof (EQUIVALENT transformation)

We used the non-termination processor [FROCOS05] to show that the DP problem is infinite.
Found a loop by semiunifying a rule from P directly.

s = APP32_IN_AAA evaluates to t =APP32_IN_AAA

Thus s starts an infinite chain as s semiunifies with t with the following substitutions:
  • Matcher: [ ]
  • Semiunifier: [ ]




Rewriting sequence

The DP semiunifies directly so there is only one rewrite step from APP32_IN_AAA to APP32_IN_AAA.



(29) NO

(30) Obligation:

Pi DP problem:
The TRS P consists of the following rules:

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)

The TRS R consists of the following rules:

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)))

The argument filtering Pi contains the following mapping:
front1_in_ag(x1, x2)  =  front1_in_ag(x2)
[]  =  []
front1_out_ag(x1, x2)  =  front1_out_ag
U9_ag(x1, x2, x3)  =  U9_ag(x3)
front14_in_aa(x1, x2)  =  front14_in_aa
front14_out_aa(x1, x2)  =  front14_out_aa
tree(x1, x2, x3)  =  tree(x2, x3)
.(x1, x2)  =  .(x2)
U1_aa(x1, x2, x3, x4, x5)  =  U1_aa(x5)
U2_aa(x1, x2, x3, x4, x5)  =  U2_aa(x5)
U4_aa(x1, x2, x3, x4, x5)  =  U4_aa(x5)
U5_aa(x1, x2, x3, x4, x5, x6)  =  U5_aa(x6)
U6_aa(x1, x2, x3, x4, x5)  =  U6_aa(x5)
U3_aa(x1, x2, x3, x4, x5)  =  U3_aa(x5)
app32_in_aaa(x1, x2, x3)  =  app32_in_aaa
app32_out_aaa(x1, x2, x3)  =  app32_out_aaa(x1)
U7_aaa(x1, x2, x3, x4, x5)  =  U7_aaa(x5)
U10_ag(x1, x2, x3)  =  U10_ag(x3)
U11_ag(x1, x2, x3)  =  U11_ag(x3)
app15_in_a(x1)  =  app15_in_a
app15_out_a(x1)  =  app15_out_a(x1)
U12_ag(x1, x2, x3, x4)  =  U12_ag(x4)
U13_ag(x1, x2, x3, x4, x5, x6)  =  U13_ag(x6)
U14_ag(x1, x2, x3, x4, x5, x6)  =  U14_ag(x6)
U15_ag(x1, x2, x3, x4, x5, x6)  =  U15_ag(x6)
U16_ag(x1, x2, x3, x4, x5, x6)  =  U16_ag(x6)
U17_ag(x1, x2, x3, x4, x5, x6, x7)  =  U17_ag(x7)
U18_ag(x1, x2, x3, x4, x5, x6)  =  U18_ag(x6)
U19_ag(x1, x2, x3, x4, x5, x6)  =  U19_ag(x6)
U20_ag(x1, x2, x3, x4, x5, x6, x7)  =  U20_ag(x7)
U21_ag(x1, x2, x3, x4, x5, x6)  =  U21_ag(x6)
U22_ag(x1, x2, x3, x4, x5, x6)  =  U22_ag(x6)
U23_ag(x1, x2, x3, x4, x5, x6)  =  U23_ag(x6)
U24_ag(x1, x2, x3, x4, x5, x6, x7)  =  U24_ag(x7)
U25_ag(x1, x2, x3, x4, x5, x6)  =  U25_ag(x6)
app66_in_aa(x1, x2)  =  app66_in_aa
app66_out_aa(x1, x2)  =  app66_out_aa(x1, x2)
U26_ag(x1, x2, x3, x4)  =  U26_ag(x4)
U27_ag(x1, x2, x3, x4)  =  U27_ag(x4)
front14_in_ag(x1, x2)  =  front14_in_ag(x2)
front14_out_ag(x1, x2)  =  front14_out_ag
U1_ag(x1, x2, x3, x4, x5)  =  U1_ag(x5)
U2_ag(x1, x2, x3, x4, x5)  =  U2_ag(x5)
U3_ag(x1, x2, x3, x4, x5)  =  U3_ag(x5)
U4_ag(x1, x2, x3, x4, x5)  =  U4_ag(x4, x5)
U5_ag(x1, x2, x3, x4, x5, x6)  =  U5_ag(x4, x6)
U6_ag(x1, x2, x3, x4, x5)  =  U6_ag(x5)
app32_in_aag(x1, x2, x3)  =  app32_in_aag(x3)
app32_out_aag(x1, x2, x3)  =  app32_out_aag(x1, x2)
U7_aag(x1, x2, x3, x4, x5)  =  U7_aag(x5)
U28_ag(x1, x2, x3, x4, x5)  =  U28_ag(x5)
U29_ag(x1, x2, x3, x4)  =  U29_ag(x4)
U30_ag(x1, x2, x3, x4)  =  U30_ag(x4)
U31_ag(x1, x2, x3, x4, x5, x6, x7)  =  U31_ag(x7)
U32_ag(x1, x2, x3, x4, x5, x6, x7)  =  U32_ag(x7)
U33_ag(x1, x2, x3, x4, x5, x6, x7)  =  U33_ag(x7)
U34_ag(x1, x2, x3, x4, x5, x6, x7)  =  U34_ag(x7)
U35_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U35_ag(x8)
U36_ag(x1, x2, x3, x4, x5, x6, x7)  =  U36_ag(x7)
U37_ag(x1, x2, x3, x4, x5, x6, x7)  =  U37_ag(x7)
U38_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U38_ag(x8)
U39_ag(x1, x2, x3, x4, x5, x6, x7)  =  U39_ag(x7)
U40_ag(x1, x2, x3, x4, x5, x6, x7)  =  U40_ag(x7)
U41_ag(x1, x2, x3, x4, x5, x6, x7)  =  U41_ag(x7)
U42_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U42_ag(x8)
U43_ag(x1, x2, x3, x4, x5, x6, x7)  =  U43_ag(x7)
U44_ag(x1, x2, x3, x4, x5, x6, x7)  =  U44_ag(x7)
U45_ag(x1, x2, x3, x4, x5, x6, x7)  =  U45_ag(x7)
U46_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U46_ag(x8)
U47_ag(x1, x2, x3, x4, x5, x6, x7)  =  U47_ag(x7)
U48_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U48_ag(x8)
U49_ag(x1, x2, x3, x4, x5, x6, x7)  =  U49_ag(x7)
U50_ag(x1, x2, x3, x4)  =  U50_ag(x4)
U51_ag(x1, x2, x3, x4)  =  U51_ag(x4)
U52_ag(x1, x2, x3, x4, x5)  =  U52_ag(x5)
U53_ag(x1, x2, x3, x4, x5)  =  U53_ag(x5)
U54_ag(x1, x2, x3, x4, x5, x6, x7)  =  U54_ag(x7)
U55_ag(x1, x2, x3, x4, x5, x6, x7)  =  U55_ag(x7)
U56_ag(x1, x2, x3, x4, x5, x6, x7)  =  U56_ag(x7)
U57_ag(x1, x2, x3, x4, x5, x6, x7)  =  U57_ag(x7)
U58_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U58_ag(x8)
U59_ag(x1, x2, x3, x4, x5, x6, x7)  =  U59_ag(x7)
U60_ag(x1, x2, x3, x4, x5, x6, x7)  =  U60_ag(x7)
U61_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U61_ag(x8)
U62_ag(x1, x2, x3, x4, x5, x6, x7)  =  U62_ag(x7)
U63_ag(x1, x2, x3, x4, x5, x6, x7)  =  U63_ag(x7)
U64_ag(x1, x2, x3, x4, x5, x6, x7)  =  U64_ag(x6, x7)
U65_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U65_ag(x6, x8)
U66_ag(x1, x2, x3, x4, x5, x6, x7)  =  U66_ag(x6, x7)
U67_ag(x1, x2, x3, x4, x5, x6, x7)  =  U67_ag(x7)
U68_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U68_ag(x7, x8)
U69_ag(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U69_ag(x7, x9)
U70_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U70_ag(x7, x8)
U71_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U71_ag(x8)
U72_ag(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U72_ag(x8, x9)
U73_ag(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10)  =  U73_ag(x8, x10)
U74_ag(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U74_ag(x8, x9)
U75_ag(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10)  =  U75_ag(x8, x10)
U76_ag(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U76_ag(x9)
app178_in_aag(x1, x2, x3)  =  app178_in_aag(x3)
app178_out_aag(x1, x2, x3)  =  app178_out_aag(x1, x2)
U8_aag(x1, x2, x3, x4, x5)  =  U8_aag(x5)
FRONT14_IN_AA(x1, x2)  =  FRONT14_IN_AA
U2_AA(x1, x2, x3, x4, x5)  =  U2_AA(x5)
U4_AA(x1, x2, x3, x4, x5)  =  U4_AA(x5)

We have to consider all (P,R,Pi)-chains

(31) UsableRulesProof (EQUIVALENT transformation)

For (infinitary) constructor rewriting [LOPSTR] we can delete all non-usable rules from R.

(32) Obligation:

Pi DP problem:
The TRS P consists of the following rules:

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)

The TRS R consists of the following rules:

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))

The argument filtering Pi contains the following mapping:
[]  =  []
front14_in_aa(x1, x2)  =  front14_in_aa
front14_out_aa(x1, x2)  =  front14_out_aa
tree(x1, x2, x3)  =  tree(x2, x3)
.(x1, x2)  =  .(x2)
U1_aa(x1, x2, x3, x4, x5)  =  U1_aa(x5)
U2_aa(x1, x2, x3, x4, x5)  =  U2_aa(x5)
U4_aa(x1, x2, x3, x4, x5)  =  U4_aa(x5)
U5_aa(x1, x2, x3, x4, x5, x6)  =  U5_aa(x6)
U6_aa(x1, x2, x3, x4, x5)  =  U6_aa(x5)
U3_aa(x1, x2, x3, x4, x5)  =  U3_aa(x5)
app32_in_aaa(x1, x2, x3)  =  app32_in_aaa
app32_out_aaa(x1, x2, x3)  =  app32_out_aaa(x1)
U7_aaa(x1, x2, x3, x4, x5)  =  U7_aaa(x5)
FRONT14_IN_AA(x1, x2)  =  FRONT14_IN_AA
U2_AA(x1, x2, x3, x4, x5)  =  U2_AA(x5)
U4_AA(x1, x2, x3, x4, x5)  =  U4_AA(x5)

We have to consider all (P,R,Pi)-chains

(33) PiDPToQDPProof (SOUND transformation)

Transforming (infinitary) constructor rewriting Pi-DP problem [LOPSTR] into ordinary QDP problem [LPAR04] by application of Pi.

(34) Obligation:

Q DP problem:
The TRS P consists of the following rules:

FRONT14_IN_AAU2_AA(front14_in_aa)
U2_AA(front14_out_aa) → FRONT14_IN_AA
FRONT14_IN_AAFRONT14_IN_AA
FRONT14_IN_AAU4_AA(front14_in_aa)
U4_AA(front14_out_aa) → FRONT14_IN_AA

The TRS R consists of the following rules:

front14_in_aafront14_out_aa
front14_in_aaU1_aa(front14_in_aa)
front14_in_aaU2_aa(front14_in_aa)
front14_in_aaU4_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_aaaapp32_out_aaa([])
app32_in_aaaU7_aaa(app32_in_aaa)
U7_aaa(app32_out_aaa(T50)) → app32_out_aaa(.(T50))

The set Q consists of the following terms:

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)

We have to consider all (P,Q,R)-chains.

(35) Narrowing (SOUND transformation)

By narrowing [LPAR04] the rule FRONT14_IN_AAU2_AA(front14_in_aa) at position [0] we obtained the following new rules [LPAR04]:

FRONT14_IN_AAU2_AA(front14_out_aa)
FRONT14_IN_AAU2_AA(U1_aa(front14_in_aa))
FRONT14_IN_AAU2_AA(U2_aa(front14_in_aa))
FRONT14_IN_AAU2_AA(U4_aa(front14_in_aa))

(36) Obligation:

Q DP problem:
The TRS P consists of the following rules:

U2_AA(front14_out_aa) → FRONT14_IN_AA
FRONT14_IN_AAFRONT14_IN_AA
FRONT14_IN_AAU4_AA(front14_in_aa)
U4_AA(front14_out_aa) → FRONT14_IN_AA
FRONT14_IN_AAU2_AA(front14_out_aa)
FRONT14_IN_AAU2_AA(U1_aa(front14_in_aa))
FRONT14_IN_AAU2_AA(U2_aa(front14_in_aa))
FRONT14_IN_AAU2_AA(U4_aa(front14_in_aa))

The TRS R consists of the following rules:

front14_in_aafront14_out_aa
front14_in_aaU1_aa(front14_in_aa)
front14_in_aaU2_aa(front14_in_aa)
front14_in_aaU4_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_aaaapp32_out_aaa([])
app32_in_aaaU7_aaa(app32_in_aaa)
U7_aaa(app32_out_aaa(T50)) → app32_out_aaa(.(T50))

The set Q consists of the following terms:

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)

We have to consider all (P,Q,R)-chains.

(37) Narrowing (SOUND transformation)

By narrowing [LPAR04] the rule FRONT14_IN_AAU4_AA(front14_in_aa) at position [0] we obtained the following new rules [LPAR04]:

FRONT14_IN_AAU4_AA(front14_out_aa)
FRONT14_IN_AAU4_AA(U1_aa(front14_in_aa))
FRONT14_IN_AAU4_AA(U2_aa(front14_in_aa))
FRONT14_IN_AAU4_AA(U4_aa(front14_in_aa))

(38) Obligation:

Q DP problem:
The TRS P consists of the following rules:

U2_AA(front14_out_aa) → FRONT14_IN_AA
FRONT14_IN_AAFRONT14_IN_AA
U4_AA(front14_out_aa) → FRONT14_IN_AA
FRONT14_IN_AAU2_AA(front14_out_aa)
FRONT14_IN_AAU2_AA(U1_aa(front14_in_aa))
FRONT14_IN_AAU2_AA(U2_aa(front14_in_aa))
FRONT14_IN_AAU2_AA(U4_aa(front14_in_aa))
FRONT14_IN_AAU4_AA(front14_out_aa)
FRONT14_IN_AAU4_AA(U1_aa(front14_in_aa))
FRONT14_IN_AAU4_AA(U2_aa(front14_in_aa))
FRONT14_IN_AAU4_AA(U4_aa(front14_in_aa))

The TRS R consists of the following rules:

front14_in_aafront14_out_aa
front14_in_aaU1_aa(front14_in_aa)
front14_in_aaU2_aa(front14_in_aa)
front14_in_aaU4_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_aaaapp32_out_aaa([])
app32_in_aaaU7_aaa(app32_in_aaa)
U7_aaa(app32_out_aaa(T50)) → app32_out_aaa(.(T50))

The set Q consists of the following terms:

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)

We have to consider all (P,Q,R)-chains.

(39) NonTerminationProof (EQUIVALENT transformation)

We used the non-termination processor [FROCOS05] to show that the DP problem is infinite.
Found a loop by semiunifying a rule from P directly.

s = FRONT14_IN_AA evaluates to t =FRONT14_IN_AA

Thus s starts an infinite chain as s semiunifies with t with the following substitutions:
  • Matcher: [ ]
  • Semiunifier: [ ]




Rewriting sequence

The DP semiunifies directly so there is only one rewrite step from FRONT14_IN_AA to FRONT14_IN_AA.



(40) NO

(41) PrologToPiTRSProof (SOUND transformation)

We use the technique of [LOPSTR]. With regard to the inferred argument filtering the predicates were used in the following modes:
front1_in: (f,b)
front14_in: (f,f) (f,b)
app32_in: (f,f,f) (f,f,b)
app178_in: (f,f,b)
Transforming Prolog into the following Term Rewriting System:
Pi-finite rewrite system:
The TRS R consists of the following rules:

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)))

The argument filtering Pi contains the following mapping:
front1_in_ag(x1, x2)  =  front1_in_ag(x2)
[]  =  []
front1_out_ag(x1, x2)  =  front1_out_ag(x2)
U9_ag(x1, x2, x3)  =  U9_ag(x3)
front14_in_aa(x1, x2)  =  front14_in_aa
front14_out_aa(x1, x2)  =  front14_out_aa
tree(x1, x2, x3)  =  tree(x2, x3)
.(x1, x2)  =  .(x2)
U1_aa(x1, x2, x3, x4, x5)  =  U1_aa(x5)
U2_aa(x1, x2, x3, x4, x5)  =  U2_aa(x5)
U4_aa(x1, x2, x3, x4, x5)  =  U4_aa(x5)
U5_aa(x1, x2, x3, x4, x5, x6)  =  U5_aa(x6)
U6_aa(x1, x2, x3, x4, x5)  =  U6_aa(x5)
U3_aa(x1, x2, x3, x4, x5)  =  U3_aa(x5)
app32_in_aaa(x1, x2, x3)  =  app32_in_aaa
app32_out_aaa(x1, x2, x3)  =  app32_out_aaa(x1)
U7_aaa(x1, x2, x3, x4, x5)  =  U7_aaa(x5)
U10_ag(x1, x2, x3)  =  U10_ag(x3)
U11_ag(x1, x2, x3)  =  U11_ag(x3)
app15_in_a(x1)  =  app15_in_a
app15_out_a(x1)  =  app15_out_a(x1)
U12_ag(x1, x2, x3, x4)  =  U12_ag(x4)
U13_ag(x1, x2, x3, x4, x5, x6)  =  U13_ag(x6)
U14_ag(x1, x2, x3, x4, x5, x6)  =  U14_ag(x6)
U15_ag(x1, x2, x3, x4, x5, x6)  =  U15_ag(x6)
U16_ag(x1, x2, x3, x4, x5, x6)  =  U16_ag(x6)
U17_ag(x1, x2, x3, x4, x5, x6, x7)  =  U17_ag(x7)
U18_ag(x1, x2, x3, x4, x5, x6)  =  U18_ag(x6)
U19_ag(x1, x2, x3, x4, x5, x6)  =  U19_ag(x6)
U20_ag(x1, x2, x3, x4, x5, x6, x7)  =  U20_ag(x7)
U21_ag(x1, x2, x3, x4, x5, x6)  =  U21_ag(x6)
U22_ag(x1, x2, x3, x4, x5, x6)  =  U22_ag(x6)
U23_ag(x1, x2, x3, x4, x5, x6)  =  U23_ag(x6)
U24_ag(x1, x2, x3, x4, x5, x6, x7)  =  U24_ag(x7)
U25_ag(x1, x2, x3, x4, x5, x6)  =  U25_ag(x6)
app66_in_aa(x1, x2)  =  app66_in_aa
app66_out_aa(x1, x2)  =  app66_out_aa(x1, x2)
U26_ag(x1, x2, x3, x4)  =  U26_ag(x4)
U27_ag(x1, x2, x3, x4)  =  U27_ag(x4)
front14_in_ag(x1, x2)  =  front14_in_ag(x2)
front14_out_ag(x1, x2)  =  front14_out_ag(x2)
U1_ag(x1, x2, x3, x4, x5)  =  U1_ag(x4, x5)
U2_ag(x1, x2, x3, x4, x5)  =  U2_ag(x4, x5)
U3_ag(x1, x2, x3, x4, x5)  =  U3_ag(x4, x5)
U4_ag(x1, x2, x3, x4, x5)  =  U4_ag(x4, x5)
U5_ag(x1, x2, x3, x4, x5, x6)  =  U5_ag(x4, x6)
U6_ag(x1, x2, x3, x4, x5)  =  U6_ag(x4, x5)
app32_in_aag(x1, x2, x3)  =  app32_in_aag(x3)
app32_out_aag(x1, x2, x3)  =  app32_out_aag(x1, x2, x3)
U7_aag(x1, x2, x3, x4, x5)  =  U7_aag(x4, x5)
U28_ag(x1, x2, x3, x4, x5)  =  U28_ag(x5)
U29_ag(x1, x2, x3, x4)  =  U29_ag(x4)
U30_ag(x1, x2, x3, x4)  =  U30_ag(x4)
U31_ag(x1, x2, x3, x4, x5, x6, x7)  =  U31_ag(x7)
U32_ag(x1, x2, x3, x4, x5, x6, x7)  =  U32_ag(x7)
U33_ag(x1, x2, x3, x4, x5, x6, x7)  =  U33_ag(x7)
U34_ag(x1, x2, x3, x4, x5, x6, x7)  =  U34_ag(x7)
U35_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U35_ag(x8)
U36_ag(x1, x2, x3, x4, x5, x6, x7)  =  U36_ag(x7)
U37_ag(x1, x2, x3, x4, x5, x6, x7)  =  U37_ag(x7)
U38_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U38_ag(x8)
U39_ag(x1, x2, x3, x4, x5, x6, x7)  =  U39_ag(x7)
U40_ag(x1, x2, x3, x4, x5, x6, x7)  =  U40_ag(x7)
U41_ag(x1, x2, x3, x4, x5, x6, x7)  =  U41_ag(x7)
U42_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U42_ag(x8)
U43_ag(x1, x2, x3, x4, x5, x6, x7)  =  U43_ag(x7)
U44_ag(x1, x2, x3, x4, x5, x6, x7)  =  U44_ag(x7)
U45_ag(x1, x2, x3, x4, x5, x6, x7)  =  U45_ag(x7)
U46_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U46_ag(x8)
U47_ag(x1, x2, x3, x4, x5, x6, x7)  =  U47_ag(x7)
U48_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U48_ag(x8)
U49_ag(x1, x2, x3, x4, x5, x6, x7)  =  U49_ag(x7)
U50_ag(x1, x2, x3, x4)  =  U50_ag(x3, x4)
U51_ag(x1, x2, x3, x4)  =  U51_ag(x3, x4)
U52_ag(x1, x2, x3, x4, x5)  =  U52_ag(x4, x5)
U53_ag(x1, x2, x3, x4, x5)  =  U53_ag(x4, x5)
U54_ag(x1, x2, x3, x4, x5, x6, x7)  =  U54_ag(x6, x7)
U55_ag(x1, x2, x3, x4, x5, x6, x7)  =  U55_ag(x6, x7)
U56_ag(x1, x2, x3, x4, x5, x6, x7)  =  U56_ag(x6, x7)
U57_ag(x1, x2, x3, x4, x5, x6, x7)  =  U57_ag(x6, x7)
U58_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U58_ag(x6, x8)
U59_ag(x1, x2, x3, x4, x5, x6, x7)  =  U59_ag(x6, x7)
U60_ag(x1, x2, x3, x4, x5, x6, x7)  =  U60_ag(x6, x7)
U61_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U61_ag(x6, x8)
U62_ag(x1, x2, x3, x4, x5, x6, x7)  =  U62_ag(x6, x7)
U63_ag(x1, x2, x3, x4, x5, x6, x7)  =  U63_ag(x6, x7)
U64_ag(x1, x2, x3, x4, x5, x6, x7)  =  U64_ag(x6, x7)
U65_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U65_ag(x6, x8)
U66_ag(x1, x2, x3, x4, x5, x6, x7)  =  U66_ag(x6, x7)
U67_ag(x1, x2, x3, x4, x5, x6, x7)  =  U67_ag(x6, x7)
U68_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U68_ag(x7, x8)
U69_ag(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U69_ag(x7, x9)
U70_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U70_ag(x7, x8)
U71_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U71_ag(x7, x8)
U72_ag(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U72_ag(x8, x9)
U73_ag(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10)  =  U73_ag(x8, x10)
U74_ag(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U74_ag(x8, x9)
U75_ag(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10)  =  U75_ag(x8, x10)
U76_ag(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U76_ag(x8, x9)
app178_in_aag(x1, x2, x3)  =  app178_in_aag(x3)
app178_out_aag(x1, x2, x3)  =  app178_out_aag(x1, x2, x3)
U8_aag(x1, x2, x3, x4, x5)  =  U8_aag(x4, x5)

Infinitary Constructor Rewriting Termination of PiTRS implies Termination of Prolog

(42) Obligation:

Pi-finite rewrite system:
The TRS R consists of the following rules:

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)))

The argument filtering Pi contains the following mapping:
front1_in_ag(x1, x2)  =  front1_in_ag(x2)
[]  =  []
front1_out_ag(x1, x2)  =  front1_out_ag(x2)
U9_ag(x1, x2, x3)  =  U9_ag(x3)
front14_in_aa(x1, x2)  =  front14_in_aa
front14_out_aa(x1, x2)  =  front14_out_aa
tree(x1, x2, x3)  =  tree(x2, x3)
.(x1, x2)  =  .(x2)
U1_aa(x1, x2, x3, x4, x5)  =  U1_aa(x5)
U2_aa(x1, x2, x3, x4, x5)  =  U2_aa(x5)
U4_aa(x1, x2, x3, x4, x5)  =  U4_aa(x5)
U5_aa(x1, x2, x3, x4, x5, x6)  =  U5_aa(x6)
U6_aa(x1, x2, x3, x4, x5)  =  U6_aa(x5)
U3_aa(x1, x2, x3, x4, x5)  =  U3_aa(x5)
app32_in_aaa(x1, x2, x3)  =  app32_in_aaa
app32_out_aaa(x1, x2, x3)  =  app32_out_aaa(x1)
U7_aaa(x1, x2, x3, x4, x5)  =  U7_aaa(x5)
U10_ag(x1, x2, x3)  =  U10_ag(x3)
U11_ag(x1, x2, x3)  =  U11_ag(x3)
app15_in_a(x1)  =  app15_in_a
app15_out_a(x1)  =  app15_out_a(x1)
U12_ag(x1, x2, x3, x4)  =  U12_ag(x4)
U13_ag(x1, x2, x3, x4, x5, x6)  =  U13_ag(x6)
U14_ag(x1, x2, x3, x4, x5, x6)  =  U14_ag(x6)
U15_ag(x1, x2, x3, x4, x5, x6)  =  U15_ag(x6)
U16_ag(x1, x2, x3, x4, x5, x6)  =  U16_ag(x6)
U17_ag(x1, x2, x3, x4, x5, x6, x7)  =  U17_ag(x7)
U18_ag(x1, x2, x3, x4, x5, x6)  =  U18_ag(x6)
U19_ag(x1, x2, x3, x4, x5, x6)  =  U19_ag(x6)
U20_ag(x1, x2, x3, x4, x5, x6, x7)  =  U20_ag(x7)
U21_ag(x1, x2, x3, x4, x5, x6)  =  U21_ag(x6)
U22_ag(x1, x2, x3, x4, x5, x6)  =  U22_ag(x6)
U23_ag(x1, x2, x3, x4, x5, x6)  =  U23_ag(x6)
U24_ag(x1, x2, x3, x4, x5, x6, x7)  =  U24_ag(x7)
U25_ag(x1, x2, x3, x4, x5, x6)  =  U25_ag(x6)
app66_in_aa(x1, x2)  =  app66_in_aa
app66_out_aa(x1, x2)  =  app66_out_aa(x1, x2)
U26_ag(x1, x2, x3, x4)  =  U26_ag(x4)
U27_ag(x1, x2, x3, x4)  =  U27_ag(x4)
front14_in_ag(x1, x2)  =  front14_in_ag(x2)
front14_out_ag(x1, x2)  =  front14_out_ag(x2)
U1_ag(x1, x2, x3, x4, x5)  =  U1_ag(x4, x5)
U2_ag(x1, x2, x3, x4, x5)  =  U2_ag(x4, x5)
U3_ag(x1, x2, x3, x4, x5)  =  U3_ag(x4, x5)
U4_ag(x1, x2, x3, x4, x5)  =  U4_ag(x4, x5)
U5_ag(x1, x2, x3, x4, x5, x6)  =  U5_ag(x4, x6)
U6_ag(x1, x2, x3, x4, x5)  =  U6_ag(x4, x5)
app32_in_aag(x1, x2, x3)  =  app32_in_aag(x3)
app32_out_aag(x1, x2, x3)  =  app32_out_aag(x1, x2, x3)
U7_aag(x1, x2, x3, x4, x5)  =  U7_aag(x4, x5)
U28_ag(x1, x2, x3, x4, x5)  =  U28_ag(x5)
U29_ag(x1, x2, x3, x4)  =  U29_ag(x4)
U30_ag(x1, x2, x3, x4)  =  U30_ag(x4)
U31_ag(x1, x2, x3, x4, x5, x6, x7)  =  U31_ag(x7)
U32_ag(x1, x2, x3, x4, x5, x6, x7)  =  U32_ag(x7)
U33_ag(x1, x2, x3, x4, x5, x6, x7)  =  U33_ag(x7)
U34_ag(x1, x2, x3, x4, x5, x6, x7)  =  U34_ag(x7)
U35_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U35_ag(x8)
U36_ag(x1, x2, x3, x4, x5, x6, x7)  =  U36_ag(x7)
U37_ag(x1, x2, x3, x4, x5, x6, x7)  =  U37_ag(x7)
U38_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U38_ag(x8)
U39_ag(x1, x2, x3, x4, x5, x6, x7)  =  U39_ag(x7)
U40_ag(x1, x2, x3, x4, x5, x6, x7)  =  U40_ag(x7)
U41_ag(x1, x2, x3, x4, x5, x6, x7)  =  U41_ag(x7)
U42_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U42_ag(x8)
U43_ag(x1, x2, x3, x4, x5, x6, x7)  =  U43_ag(x7)
U44_ag(x1, x2, x3, x4, x5, x6, x7)  =  U44_ag(x7)
U45_ag(x1, x2, x3, x4, x5, x6, x7)  =  U45_ag(x7)
U46_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U46_ag(x8)
U47_ag(x1, x2, x3, x4, x5, x6, x7)  =  U47_ag(x7)
U48_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U48_ag(x8)
U49_ag(x1, x2, x3, x4, x5, x6, x7)  =  U49_ag(x7)
U50_ag(x1, x2, x3, x4)  =  U50_ag(x3, x4)
U51_ag(x1, x2, x3, x4)  =  U51_ag(x3, x4)
U52_ag(x1, x2, x3, x4, x5)  =  U52_ag(x4, x5)
U53_ag(x1, x2, x3, x4, x5)  =  U53_ag(x4, x5)
U54_ag(x1, x2, x3, x4, x5, x6, x7)  =  U54_ag(x6, x7)
U55_ag(x1, x2, x3, x4, x5, x6, x7)  =  U55_ag(x6, x7)
U56_ag(x1, x2, x3, x4, x5, x6, x7)  =  U56_ag(x6, x7)
U57_ag(x1, x2, x3, x4, x5, x6, x7)  =  U57_ag(x6, x7)
U58_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U58_ag(x6, x8)
U59_ag(x1, x2, x3, x4, x5, x6, x7)  =  U59_ag(x6, x7)
U60_ag(x1, x2, x3, x4, x5, x6, x7)  =  U60_ag(x6, x7)
U61_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U61_ag(x6, x8)
U62_ag(x1, x2, x3, x4, x5, x6, x7)  =  U62_ag(x6, x7)
U63_ag(x1, x2, x3, x4, x5, x6, x7)  =  U63_ag(x6, x7)
U64_ag(x1, x2, x3, x4, x5, x6, x7)  =  U64_ag(x6, x7)
U65_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U65_ag(x6, x8)
U66_ag(x1, x2, x3, x4, x5, x6, x7)  =  U66_ag(x6, x7)
U67_ag(x1, x2, x3, x4, x5, x6, x7)  =  U67_ag(x6, x7)
U68_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U68_ag(x7, x8)
U69_ag(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U69_ag(x7, x9)
U70_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U70_ag(x7, x8)
U71_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U71_ag(x7, x8)
U72_ag(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U72_ag(x8, x9)
U73_ag(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10)  =  U73_ag(x8, x10)
U74_ag(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U74_ag(x8, x9)
U75_ag(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10)  =  U75_ag(x8, x10)
U76_ag(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U76_ag(x8, x9)
app178_in_aag(x1, x2, x3)  =  app178_in_aag(x3)
app178_out_aag(x1, x2, x3)  =  app178_out_aag(x1, x2, x3)
U8_aag(x1, x2, x3, x4, x5)  =  U8_aag(x4, x5)

(43) DependencyPairsProof (EQUIVALENT transformation)

Using Dependency Pairs [AG00,LOPSTR] we result in the following initial DP problem:
Pi DP problem:
The TRS P consists of the following rules:

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)

The TRS R consists of the following rules:

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)))

The argument filtering Pi contains the following mapping:
front1_in_ag(x1, x2)  =  front1_in_ag(x2)
[]  =  []
front1_out_ag(x1, x2)  =  front1_out_ag(x2)
U9_ag(x1, x2, x3)  =  U9_ag(x3)
front14_in_aa(x1, x2)  =  front14_in_aa
front14_out_aa(x1, x2)  =  front14_out_aa
tree(x1, x2, x3)  =  tree(x2, x3)
.(x1, x2)  =  .(x2)
U1_aa(x1, x2, x3, x4, x5)  =  U1_aa(x5)
U2_aa(x1, x2, x3, x4, x5)  =  U2_aa(x5)
U4_aa(x1, x2, x3, x4, x5)  =  U4_aa(x5)
U5_aa(x1, x2, x3, x4, x5, x6)  =  U5_aa(x6)
U6_aa(x1, x2, x3, x4, x5)  =  U6_aa(x5)
U3_aa(x1, x2, x3, x4, x5)  =  U3_aa(x5)
app32_in_aaa(x1, x2, x3)  =  app32_in_aaa
app32_out_aaa(x1, x2, x3)  =  app32_out_aaa(x1)
U7_aaa(x1, x2, x3, x4, x5)  =  U7_aaa(x5)
U10_ag(x1, x2, x3)  =  U10_ag(x3)
U11_ag(x1, x2, x3)  =  U11_ag(x3)
app15_in_a(x1)  =  app15_in_a
app15_out_a(x1)  =  app15_out_a(x1)
U12_ag(x1, x2, x3, x4)  =  U12_ag(x4)
U13_ag(x1, x2, x3, x4, x5, x6)  =  U13_ag(x6)
U14_ag(x1, x2, x3, x4, x5, x6)  =  U14_ag(x6)
U15_ag(x1, x2, x3, x4, x5, x6)  =  U15_ag(x6)
U16_ag(x1, x2, x3, x4, x5, x6)  =  U16_ag(x6)
U17_ag(x1, x2, x3, x4, x5, x6, x7)  =  U17_ag(x7)
U18_ag(x1, x2, x3, x4, x5, x6)  =  U18_ag(x6)
U19_ag(x1, x2, x3, x4, x5, x6)  =  U19_ag(x6)
U20_ag(x1, x2, x3, x4, x5, x6, x7)  =  U20_ag(x7)
U21_ag(x1, x2, x3, x4, x5, x6)  =  U21_ag(x6)
U22_ag(x1, x2, x3, x4, x5, x6)  =  U22_ag(x6)
U23_ag(x1, x2, x3, x4, x5, x6)  =  U23_ag(x6)
U24_ag(x1, x2, x3, x4, x5, x6, x7)  =  U24_ag(x7)
U25_ag(x1, x2, x3, x4, x5, x6)  =  U25_ag(x6)
app66_in_aa(x1, x2)  =  app66_in_aa
app66_out_aa(x1, x2)  =  app66_out_aa(x1, x2)
U26_ag(x1, x2, x3, x4)  =  U26_ag(x4)
U27_ag(x1, x2, x3, x4)  =  U27_ag(x4)
front14_in_ag(x1, x2)  =  front14_in_ag(x2)
front14_out_ag(x1, x2)  =  front14_out_ag(x2)
U1_ag(x1, x2, x3, x4, x5)  =  U1_ag(x4, x5)
U2_ag(x1, x2, x3, x4, x5)  =  U2_ag(x4, x5)
U3_ag(x1, x2, x3, x4, x5)  =  U3_ag(x4, x5)
U4_ag(x1, x2, x3, x4, x5)  =  U4_ag(x4, x5)
U5_ag(x1, x2, x3, x4, x5, x6)  =  U5_ag(x4, x6)
U6_ag(x1, x2, x3, x4, x5)  =  U6_ag(x4, x5)
app32_in_aag(x1, x2, x3)  =  app32_in_aag(x3)
app32_out_aag(x1, x2, x3)  =  app32_out_aag(x1, x2, x3)
U7_aag(x1, x2, x3, x4, x5)  =  U7_aag(x4, x5)
U28_ag(x1, x2, x3, x4, x5)  =  U28_ag(x5)
U29_ag(x1, x2, x3, x4)  =  U29_ag(x4)
U30_ag(x1, x2, x3, x4)  =  U30_ag(x4)
U31_ag(x1, x2, x3, x4, x5, x6, x7)  =  U31_ag(x7)
U32_ag(x1, x2, x3, x4, x5, x6, x7)  =  U32_ag(x7)
U33_ag(x1, x2, x3, x4, x5, x6, x7)  =  U33_ag(x7)
U34_ag(x1, x2, x3, x4, x5, x6, x7)  =  U34_ag(x7)
U35_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U35_ag(x8)
U36_ag(x1, x2, x3, x4, x5, x6, x7)  =  U36_ag(x7)
U37_ag(x1, x2, x3, x4, x5, x6, x7)  =  U37_ag(x7)
U38_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U38_ag(x8)
U39_ag(x1, x2, x3, x4, x5, x6, x7)  =  U39_ag(x7)
U40_ag(x1, x2, x3, x4, x5, x6, x7)  =  U40_ag(x7)
U41_ag(x1, x2, x3, x4, x5, x6, x7)  =  U41_ag(x7)
U42_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U42_ag(x8)
U43_ag(x1, x2, x3, x4, x5, x6, x7)  =  U43_ag(x7)
U44_ag(x1, x2, x3, x4, x5, x6, x7)  =  U44_ag(x7)
U45_ag(x1, x2, x3, x4, x5, x6, x7)  =  U45_ag(x7)
U46_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U46_ag(x8)
U47_ag(x1, x2, x3, x4, x5, x6, x7)  =  U47_ag(x7)
U48_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U48_ag(x8)
U49_ag(x1, x2, x3, x4, x5, x6, x7)  =  U49_ag(x7)
U50_ag(x1, x2, x3, x4)  =  U50_ag(x3, x4)
U51_ag(x1, x2, x3, x4)  =  U51_ag(x3, x4)
U52_ag(x1, x2, x3, x4, x5)  =  U52_ag(x4, x5)
U53_ag(x1, x2, x3, x4, x5)  =  U53_ag(x4, x5)
U54_ag(x1, x2, x3, x4, x5, x6, x7)  =  U54_ag(x6, x7)
U55_ag(x1, x2, x3, x4, x5, x6, x7)  =  U55_ag(x6, x7)
U56_ag(x1, x2, x3, x4, x5, x6, x7)  =  U56_ag(x6, x7)
U57_ag(x1, x2, x3, x4, x5, x6, x7)  =  U57_ag(x6, x7)
U58_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U58_ag(x6, x8)
U59_ag(x1, x2, x3, x4, x5, x6, x7)  =  U59_ag(x6, x7)
U60_ag(x1, x2, x3, x4, x5, x6, x7)  =  U60_ag(x6, x7)
U61_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U61_ag(x6, x8)
U62_ag(x1, x2, x3, x4, x5, x6, x7)  =  U62_ag(x6, x7)
U63_ag(x1, x2, x3, x4, x5, x6, x7)  =  U63_ag(x6, x7)
U64_ag(x1, x2, x3, x4, x5, x6, x7)  =  U64_ag(x6, x7)
U65_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U65_ag(x6, x8)
U66_ag(x1, x2, x3, x4, x5, x6, x7)  =  U66_ag(x6, x7)
U67_ag(x1, x2, x3, x4, x5, x6, x7)  =  U67_ag(x6, x7)
U68_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U68_ag(x7, x8)
U69_ag(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U69_ag(x7, x9)
U70_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U70_ag(x7, x8)
U71_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U71_ag(x7, x8)
U72_ag(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U72_ag(x8, x9)
U73_ag(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10)  =  U73_ag(x8, x10)
U74_ag(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U74_ag(x8, x9)
U75_ag(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10)  =  U75_ag(x8, x10)
U76_ag(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U76_ag(x8, x9)
app178_in_aag(x1, x2, x3)  =  app178_in_aag(x3)
app178_out_aag(x1, x2, x3)  =  app178_out_aag(x1, x2, x3)
U8_aag(x1, x2, x3, x4, x5)  =  U8_aag(x4, x5)
FRONT1_IN_AG(x1, x2)  =  FRONT1_IN_AG(x2)
U9_AG(x1, x2, x3)  =  U9_AG(x3)
FRONT14_IN_AA(x1, x2)  =  FRONT14_IN_AA
U1_AA(x1, x2, x3, x4, x5)  =  U1_AA(x5)
U2_AA(x1, x2, x3, x4, x5)  =  U2_AA(x5)
U4_AA(x1, x2, x3, x4, x5)  =  U4_AA(x5)
U5_AA(x1, x2, x3, x4, x5, x6)  =  U5_AA(x6)
U6_AA(x1, x2, x3, x4, x5)  =  U6_AA(x5)
APP32_IN_AAA(x1, x2, x3)  =  APP32_IN_AAA
U7_AAA(x1, x2, x3, x4, x5)  =  U7_AAA(x5)
U3_AA(x1, x2, x3, x4, x5)  =  U3_AA(x5)
U10_AG(x1, x2, x3)  =  U10_AG(x3)
U11_AG(x1, x2, x3)  =  U11_AG(x3)
APP15_IN_A(x1)  =  APP15_IN_A
U12_AG(x1, x2, x3, x4)  =  U12_AG(x4)
U13_AG(x1, x2, x3, x4, x5, x6)  =  U13_AG(x6)
U14_AG(x1, x2, x3, x4, x5, x6)  =  U14_AG(x6)
U15_AG(x1, x2, x3, x4, x5, x6)  =  U15_AG(x6)
U16_AG(x1, x2, x3, x4, x5, x6)  =  U16_AG(x6)
U17_AG(x1, x2, x3, x4, x5, x6, x7)  =  U17_AG(x7)
U18_AG(x1, x2, x3, x4, x5, x6)  =  U18_AG(x6)
U19_AG(x1, x2, x3, x4, x5, x6)  =  U19_AG(x6)
U20_AG(x1, x2, x3, x4, x5, x6, x7)  =  U20_AG(x7)
U21_AG(x1, x2, x3, x4, x5, x6)  =  U21_AG(x6)
U22_AG(x1, x2, x3, x4, x5, x6)  =  U22_AG(x6)
U23_AG(x1, x2, x3, x4, x5, x6)  =  U23_AG(x6)
U24_AG(x1, x2, x3, x4, x5, x6, x7)  =  U24_AG(x7)
U25_AG(x1, x2, x3, x4, x5, x6)  =  U25_AG(x6)
APP66_IN_AA(x1, x2)  =  APP66_IN_AA
U26_AG(x1, x2, x3, x4)  =  U26_AG(x4)
U27_AG(x1, x2, x3, x4)  =  U27_AG(x4)
FRONT14_IN_AG(x1, x2)  =  FRONT14_IN_AG(x2)
U1_AG(x1, x2, x3, x4, x5)  =  U1_AG(x4, x5)
U2_AG(x1, x2, x3, x4, x5)  =  U2_AG(x4, x5)
U3_AG(x1, x2, x3, x4, x5)  =  U3_AG(x4, x5)
U4_AG(x1, x2, x3, x4, x5)  =  U4_AG(x4, x5)
U5_AG(x1, x2, x3, x4, x5, x6)  =  U5_AG(x4, x6)
U6_AG(x1, x2, x3, x4, x5)  =  U6_AG(x4, x5)
APP32_IN_AAG(x1, x2, x3)  =  APP32_IN_AAG(x3)
U7_AAG(x1, x2, x3, x4, x5)  =  U7_AAG(x4, x5)
U28_AG(x1, x2, x3, x4, x5)  =  U28_AG(x5)
U29_AG(x1, x2, x3, x4)  =  U29_AG(x4)
U30_AG(x1, x2, x3, x4)  =  U30_AG(x4)
U31_AG(x1, x2, x3, x4, x5, x6, x7)  =  U31_AG(x7)
U32_AG(x1, x2, x3, x4, x5, x6, x7)  =  U32_AG(x7)
U33_AG(x1, x2, x3, x4, x5, x6, x7)  =  U33_AG(x7)
U34_AG(x1, x2, x3, x4, x5, x6, x7)  =  U34_AG(x7)
U35_AG(x1, x2, x3, x4, x5, x6, x7, x8)  =  U35_AG(x8)
U36_AG(x1, x2, x3, x4, x5, x6, x7)  =  U36_AG(x7)
U37_AG(x1, x2, x3, x4, x5, x6, x7)  =  U37_AG(x7)
U38_AG(x1, x2, x3, x4, x5, x6, x7, x8)  =  U38_AG(x8)
U39_AG(x1, x2, x3, x4, x5, x6, x7)  =  U39_AG(x7)
U40_AG(x1, x2, x3, x4, x5, x6, x7)  =  U40_AG(x7)
U41_AG(x1, x2, x3, x4, x5, x6, x7)  =  U41_AG(x7)
U42_AG(x1, x2, x3, x4, x5, x6, x7, x8)  =  U42_AG(x8)
U43_AG(x1, x2, x3, x4, x5, x6, x7)  =  U43_AG(x7)
U44_AG(x1, x2, x3, x4, x5, x6, x7)  =  U44_AG(x7)
U45_AG(x1, x2, x3, x4, x5, x6, x7)  =  U45_AG(x7)
U46_AG(x1, x2, x3, x4, x5, x6, x7, x8)  =  U46_AG(x8)
U47_AG(x1, x2, x3, x4, x5, x6, x7)  =  U47_AG(x7)
U48_AG(x1, x2, x3, x4, x5, x6, x7, x8)  =  U48_AG(x8)
U49_AG(x1, x2, x3, x4, x5, x6, x7)  =  U49_AG(x7)
U50_AG(x1, x2, x3, x4)  =  U50_AG(x3, x4)
U51_AG(x1, x2, x3, x4)  =  U51_AG(x3, x4)
U52_AG(x1, x2, x3, x4, x5)  =  U52_AG(x4, x5)
U53_AG(x1, x2, x3, x4, x5)  =  U53_AG(x4, x5)
U54_AG(x1, x2, x3, x4, x5, x6, x7)  =  U54_AG(x6, x7)
U55_AG(x1, x2, x3, x4, x5, x6, x7)  =  U55_AG(x6, x7)
U56_AG(x1, x2, x3, x4, x5, x6, x7)  =  U56_AG(x6, x7)
U57_AG(x1, x2, x3, x4, x5, x6, x7)  =  U57_AG(x6, x7)
U58_AG(x1, x2, x3, x4, x5, x6, x7, x8)  =  U58_AG(x6, x8)
U59_AG(x1, x2, x3, x4, x5, x6, x7)  =  U59_AG(x6, x7)
U60_AG(x1, x2, x3, x4, x5, x6, x7)  =  U60_AG(x6, x7)
U61_AG(x1, x2, x3, x4, x5, x6, x7, x8)  =  U61_AG(x6, x8)
U62_AG(x1, x2, x3, x4, x5, x6, x7)  =  U62_AG(x6, x7)
U63_AG(x1, x2, x3, x4, x5, x6, x7)  =  U63_AG(x6, x7)
U64_AG(x1, x2, x3, x4, x5, x6, x7)  =  U64_AG(x6, x7)
U65_AG(x1, x2, x3, x4, x5, x6, x7, x8)  =  U65_AG(x6, x8)
U66_AG(x1, x2, x3, x4, x5, x6, x7)  =  U66_AG(x6, x7)
U67_AG(x1, x2, x3, x4, x5, x6, x7)  =  U67_AG(x6, x7)
U68_AG(x1, x2, x3, x4, x5, x6, x7, x8)  =  U68_AG(x7, x8)
U69_AG(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U69_AG(x7, x9)
U70_AG(x1, x2, x3, x4, x5, x6, x7, x8)  =  U70_AG(x7, x8)
U71_AG(x1, x2, x3, x4, x5, x6, x7, x8)  =  U71_AG(x7, x8)
U72_AG(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U72_AG(x8, x9)
U73_AG(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10)  =  U73_AG(x8, x10)
U74_AG(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U74_AG(x8, x9)
U75_AG(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10)  =  U75_AG(x8, x10)
U76_AG(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U76_AG(x8, x9)
APP178_IN_AAG(x1, x2, x3)  =  APP178_IN_AAG(x3)
U8_AAG(x1, x2, x3, x4, x5)  =  U8_AAG(x4, x5)

We have to consider all (P,R,Pi)-chains

(44) Obligation:

Pi DP problem:
The TRS P consists of the following rules:

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)

The TRS R consists of the following rules:

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)))

The argument filtering Pi contains the following mapping:
front1_in_ag(x1, x2)  =  front1_in_ag(x2)
[]  =  []
front1_out_ag(x1, x2)  =  front1_out_ag(x2)
U9_ag(x1, x2, x3)  =  U9_ag(x3)
front14_in_aa(x1, x2)  =  front14_in_aa
front14_out_aa(x1, x2)  =  front14_out_aa
tree(x1, x2, x3)  =  tree(x2, x3)
.(x1, x2)  =  .(x2)
U1_aa(x1, x2, x3, x4, x5)  =  U1_aa(x5)
U2_aa(x1, x2, x3, x4, x5)  =  U2_aa(x5)
U4_aa(x1, x2, x3, x4, x5)  =  U4_aa(x5)
U5_aa(x1, x2, x3, x4, x5, x6)  =  U5_aa(x6)
U6_aa(x1, x2, x3, x4, x5)  =  U6_aa(x5)
U3_aa(x1, x2, x3, x4, x5)  =  U3_aa(x5)
app32_in_aaa(x1, x2, x3)  =  app32_in_aaa
app32_out_aaa(x1, x2, x3)  =  app32_out_aaa(x1)
U7_aaa(x1, x2, x3, x4, x5)  =  U7_aaa(x5)
U10_ag(x1, x2, x3)  =  U10_ag(x3)
U11_ag(x1, x2, x3)  =  U11_ag(x3)
app15_in_a(x1)  =  app15_in_a
app15_out_a(x1)  =  app15_out_a(x1)
U12_ag(x1, x2, x3, x4)  =  U12_ag(x4)
U13_ag(x1, x2, x3, x4, x5, x6)  =  U13_ag(x6)
U14_ag(x1, x2, x3, x4, x5, x6)  =  U14_ag(x6)
U15_ag(x1, x2, x3, x4, x5, x6)  =  U15_ag(x6)
U16_ag(x1, x2, x3, x4, x5, x6)  =  U16_ag(x6)
U17_ag(x1, x2, x3, x4, x5, x6, x7)  =  U17_ag(x7)
U18_ag(x1, x2, x3, x4, x5, x6)  =  U18_ag(x6)
U19_ag(x1, x2, x3, x4, x5, x6)  =  U19_ag(x6)
U20_ag(x1, x2, x3, x4, x5, x6, x7)  =  U20_ag(x7)
U21_ag(x1, x2, x3, x4, x5, x6)  =  U21_ag(x6)
U22_ag(x1, x2, x3, x4, x5, x6)  =  U22_ag(x6)
U23_ag(x1, x2, x3, x4, x5, x6)  =  U23_ag(x6)
U24_ag(x1, x2, x3, x4, x5, x6, x7)  =  U24_ag(x7)
U25_ag(x1, x2, x3, x4, x5, x6)  =  U25_ag(x6)
app66_in_aa(x1, x2)  =  app66_in_aa
app66_out_aa(x1, x2)  =  app66_out_aa(x1, x2)
U26_ag(x1, x2, x3, x4)  =  U26_ag(x4)
U27_ag(x1, x2, x3, x4)  =  U27_ag(x4)
front14_in_ag(x1, x2)  =  front14_in_ag(x2)
front14_out_ag(x1, x2)  =  front14_out_ag(x2)
U1_ag(x1, x2, x3, x4, x5)  =  U1_ag(x4, x5)
U2_ag(x1, x2, x3, x4, x5)  =  U2_ag(x4, x5)
U3_ag(x1, x2, x3, x4, x5)  =  U3_ag(x4, x5)
U4_ag(x1, x2, x3, x4, x5)  =  U4_ag(x4, x5)
U5_ag(x1, x2, x3, x4, x5, x6)  =  U5_ag(x4, x6)
U6_ag(x1, x2, x3, x4, x5)  =  U6_ag(x4, x5)
app32_in_aag(x1, x2, x3)  =  app32_in_aag(x3)
app32_out_aag(x1, x2, x3)  =  app32_out_aag(x1, x2, x3)
U7_aag(x1, x2, x3, x4, x5)  =  U7_aag(x4, x5)
U28_ag(x1, x2, x3, x4, x5)  =  U28_ag(x5)
U29_ag(x1, x2, x3, x4)  =  U29_ag(x4)
U30_ag(x1, x2, x3, x4)  =  U30_ag(x4)
U31_ag(x1, x2, x3, x4, x5, x6, x7)  =  U31_ag(x7)
U32_ag(x1, x2, x3, x4, x5, x6, x7)  =  U32_ag(x7)
U33_ag(x1, x2, x3, x4, x5, x6, x7)  =  U33_ag(x7)
U34_ag(x1, x2, x3, x4, x5, x6, x7)  =  U34_ag(x7)
U35_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U35_ag(x8)
U36_ag(x1, x2, x3, x4, x5, x6, x7)  =  U36_ag(x7)
U37_ag(x1, x2, x3, x4, x5, x6, x7)  =  U37_ag(x7)
U38_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U38_ag(x8)
U39_ag(x1, x2, x3, x4, x5, x6, x7)  =  U39_ag(x7)
U40_ag(x1, x2, x3, x4, x5, x6, x7)  =  U40_ag(x7)
U41_ag(x1, x2, x3, x4, x5, x6, x7)  =  U41_ag(x7)
U42_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U42_ag(x8)
U43_ag(x1, x2, x3, x4, x5, x6, x7)  =  U43_ag(x7)
U44_ag(x1, x2, x3, x4, x5, x6, x7)  =  U44_ag(x7)
U45_ag(x1, x2, x3, x4, x5, x6, x7)  =  U45_ag(x7)
U46_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U46_ag(x8)
U47_ag(x1, x2, x3, x4, x5, x6, x7)  =  U47_ag(x7)
U48_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U48_ag(x8)
U49_ag(x1, x2, x3, x4, x5, x6, x7)  =  U49_ag(x7)
U50_ag(x1, x2, x3, x4)  =  U50_ag(x3, x4)
U51_ag(x1, x2, x3, x4)  =  U51_ag(x3, x4)
U52_ag(x1, x2, x3, x4, x5)  =  U52_ag(x4, x5)
U53_ag(x1, x2, x3, x4, x5)  =  U53_ag(x4, x5)
U54_ag(x1, x2, x3, x4, x5, x6, x7)  =  U54_ag(x6, x7)
U55_ag(x1, x2, x3, x4, x5, x6, x7)  =  U55_ag(x6, x7)
U56_ag(x1, x2, x3, x4, x5, x6, x7)  =  U56_ag(x6, x7)
U57_ag(x1, x2, x3, x4, x5, x6, x7)  =  U57_ag(x6, x7)
U58_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U58_ag(x6, x8)
U59_ag(x1, x2, x3, x4, x5, x6, x7)  =  U59_ag(x6, x7)
U60_ag(x1, x2, x3, x4, x5, x6, x7)  =  U60_ag(x6, x7)
U61_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U61_ag(x6, x8)
U62_ag(x1, x2, x3, x4, x5, x6, x7)  =  U62_ag(x6, x7)
U63_ag(x1, x2, x3, x4, x5, x6, x7)  =  U63_ag(x6, x7)
U64_ag(x1, x2, x3, x4, x5, x6, x7)  =  U64_ag(x6, x7)
U65_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U65_ag(x6, x8)
U66_ag(x1, x2, x3, x4, x5, x6, x7)  =  U66_ag(x6, x7)
U67_ag(x1, x2, x3, x4, x5, x6, x7)  =  U67_ag(x6, x7)
U68_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U68_ag(x7, x8)
U69_ag(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U69_ag(x7, x9)
U70_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U70_ag(x7, x8)
U71_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U71_ag(x7, x8)
U72_ag(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U72_ag(x8, x9)
U73_ag(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10)  =  U73_ag(x8, x10)
U74_ag(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U74_ag(x8, x9)
U75_ag(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10)  =  U75_ag(x8, x10)
U76_ag(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U76_ag(x8, x9)
app178_in_aag(x1, x2, x3)  =  app178_in_aag(x3)
app178_out_aag(x1, x2, x3)  =  app178_out_aag(x1, x2, x3)
U8_aag(x1, x2, x3, x4, x5)  =  U8_aag(x4, x5)
FRONT1_IN_AG(x1, x2)  =  FRONT1_IN_AG(x2)
U9_AG(x1, x2, x3)  =  U9_AG(x3)
FRONT14_IN_AA(x1, x2)  =  FRONT14_IN_AA
U1_AA(x1, x2, x3, x4, x5)  =  U1_AA(x5)
U2_AA(x1, x2, x3, x4, x5)  =  U2_AA(x5)
U4_AA(x1, x2, x3, x4, x5)  =  U4_AA(x5)
U5_AA(x1, x2, x3, x4, x5, x6)  =  U5_AA(x6)
U6_AA(x1, x2, x3, x4, x5)  =  U6_AA(x5)
APP32_IN_AAA(x1, x2, x3)  =  APP32_IN_AAA
U7_AAA(x1, x2, x3, x4, x5)  =  U7_AAA(x5)
U3_AA(x1, x2, x3, x4, x5)  =  U3_AA(x5)
U10_AG(x1, x2, x3)  =  U10_AG(x3)
U11_AG(x1, x2, x3)  =  U11_AG(x3)
APP15_IN_A(x1)  =  APP15_IN_A
U12_AG(x1, x2, x3, x4)  =  U12_AG(x4)
U13_AG(x1, x2, x3, x4, x5, x6)  =  U13_AG(x6)
U14_AG(x1, x2, x3, x4, x5, x6)  =  U14_AG(x6)
U15_AG(x1, x2, x3, x4, x5, x6)  =  U15_AG(x6)
U16_AG(x1, x2, x3, x4, x5, x6)  =  U16_AG(x6)
U17_AG(x1, x2, x3, x4, x5, x6, x7)  =  U17_AG(x7)
U18_AG(x1, x2, x3, x4, x5, x6)  =  U18_AG(x6)
U19_AG(x1, x2, x3, x4, x5, x6)  =  U19_AG(x6)
U20_AG(x1, x2, x3, x4, x5, x6, x7)  =  U20_AG(x7)
U21_AG(x1, x2, x3, x4, x5, x6)  =  U21_AG(x6)
U22_AG(x1, x2, x3, x4, x5, x6)  =  U22_AG(x6)
U23_AG(x1, x2, x3, x4, x5, x6)  =  U23_AG(x6)
U24_AG(x1, x2, x3, x4, x5, x6, x7)  =  U24_AG(x7)
U25_AG(x1, x2, x3, x4, x5, x6)  =  U25_AG(x6)
APP66_IN_AA(x1, x2)  =  APP66_IN_AA
U26_AG(x1, x2, x3, x4)  =  U26_AG(x4)
U27_AG(x1, x2, x3, x4)  =  U27_AG(x4)
FRONT14_IN_AG(x1, x2)  =  FRONT14_IN_AG(x2)
U1_AG(x1, x2, x3, x4, x5)  =  U1_AG(x4, x5)
U2_AG(x1, x2, x3, x4, x5)  =  U2_AG(x4, x5)
U3_AG(x1, x2, x3, x4, x5)  =  U3_AG(x4, x5)
U4_AG(x1, x2, x3, x4, x5)  =  U4_AG(x4, x5)
U5_AG(x1, x2, x3, x4, x5, x6)  =  U5_AG(x4, x6)
U6_AG(x1, x2, x3, x4, x5)  =  U6_AG(x4, x5)
APP32_IN_AAG(x1, x2, x3)  =  APP32_IN_AAG(x3)
U7_AAG(x1, x2, x3, x4, x5)  =  U7_AAG(x4, x5)
U28_AG(x1, x2, x3, x4, x5)  =  U28_AG(x5)
U29_AG(x1, x2, x3, x4)  =  U29_AG(x4)
U30_AG(x1, x2, x3, x4)  =  U30_AG(x4)
U31_AG(x1, x2, x3, x4, x5, x6, x7)  =  U31_AG(x7)
U32_AG(x1, x2, x3, x4, x5, x6, x7)  =  U32_AG(x7)
U33_AG(x1, x2, x3, x4, x5, x6, x7)  =  U33_AG(x7)
U34_AG(x1, x2, x3, x4, x5, x6, x7)  =  U34_AG(x7)
U35_AG(x1, x2, x3, x4, x5, x6, x7, x8)  =  U35_AG(x8)
U36_AG(x1, x2, x3, x4, x5, x6, x7)  =  U36_AG(x7)
U37_AG(x1, x2, x3, x4, x5, x6, x7)  =  U37_AG(x7)
U38_AG(x1, x2, x3, x4, x5, x6, x7, x8)  =  U38_AG(x8)
U39_AG(x1, x2, x3, x4, x5, x6, x7)  =  U39_AG(x7)
U40_AG(x1, x2, x3, x4, x5, x6, x7)  =  U40_AG(x7)
U41_AG(x1, x2, x3, x4, x5, x6, x7)  =  U41_AG(x7)
U42_AG(x1, x2, x3, x4, x5, x6, x7, x8)  =  U42_AG(x8)
U43_AG(x1, x2, x3, x4, x5, x6, x7)  =  U43_AG(x7)
U44_AG(x1, x2, x3, x4, x5, x6, x7)  =  U44_AG(x7)
U45_AG(x1, x2, x3, x4, x5, x6, x7)  =  U45_AG(x7)
U46_AG(x1, x2, x3, x4, x5, x6, x7, x8)  =  U46_AG(x8)
U47_AG(x1, x2, x3, x4, x5, x6, x7)  =  U47_AG(x7)
U48_AG(x1, x2, x3, x4, x5, x6, x7, x8)  =  U48_AG(x8)
U49_AG(x1, x2, x3, x4, x5, x6, x7)  =  U49_AG(x7)
U50_AG(x1, x2, x3, x4)  =  U50_AG(x3, x4)
U51_AG(x1, x2, x3, x4)  =  U51_AG(x3, x4)
U52_AG(x1, x2, x3, x4, x5)  =  U52_AG(x4, x5)
U53_AG(x1, x2, x3, x4, x5)  =  U53_AG(x4, x5)
U54_AG(x1, x2, x3, x4, x5, x6, x7)  =  U54_AG(x6, x7)
U55_AG(x1, x2, x3, x4, x5, x6, x7)  =  U55_AG(x6, x7)
U56_AG(x1, x2, x3, x4, x5, x6, x7)  =  U56_AG(x6, x7)
U57_AG(x1, x2, x3, x4, x5, x6, x7)  =  U57_AG(x6, x7)
U58_AG(x1, x2, x3, x4, x5, x6, x7, x8)  =  U58_AG(x6, x8)
U59_AG(x1, x2, x3, x4, x5, x6, x7)  =  U59_AG(x6, x7)
U60_AG(x1, x2, x3, x4, x5, x6, x7)  =  U60_AG(x6, x7)
U61_AG(x1, x2, x3, x4, x5, x6, x7, x8)  =  U61_AG(x6, x8)
U62_AG(x1, x2, x3, x4, x5, x6, x7)  =  U62_AG(x6, x7)
U63_AG(x1, x2, x3, x4, x5, x6, x7)  =  U63_AG(x6, x7)
U64_AG(x1, x2, x3, x4, x5, x6, x7)  =  U64_AG(x6, x7)
U65_AG(x1, x2, x3, x4, x5, x6, x7, x8)  =  U65_AG(x6, x8)
U66_AG(x1, x2, x3, x4, x5, x6, x7)  =  U66_AG(x6, x7)
U67_AG(x1, x2, x3, x4, x5, x6, x7)  =  U67_AG(x6, x7)
U68_AG(x1, x2, x3, x4, x5, x6, x7, x8)  =  U68_AG(x7, x8)
U69_AG(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U69_AG(x7, x9)
U70_AG(x1, x2, x3, x4, x5, x6, x7, x8)  =  U70_AG(x7, x8)
U71_AG(x1, x2, x3, x4, x5, x6, x7, x8)  =  U71_AG(x7, x8)
U72_AG(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U72_AG(x8, x9)
U73_AG(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10)  =  U73_AG(x8, x10)
U74_AG(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U74_AG(x8, x9)
U75_AG(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10)  =  U75_AG(x8, x10)
U76_AG(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U76_AG(x8, x9)
APP178_IN_AAG(x1, x2, x3)  =  APP178_IN_AAG(x3)
U8_AAG(x1, x2, x3, x4, x5)  =  U8_AAG(x4, x5)

We have to consider all (P,R,Pi)-chains

(45) DependencyGraphProof (EQUIVALENT transformation)

The approximation of the Dependency Graph [LOPSTR] contains 4 SCCs with 140 less nodes.

(46) Complex Obligation (AND)

(47) Obligation:

Pi DP problem:
The TRS P consists of the following rules:

APP178_IN_AAG(.(T354, T358), T359, .(T354, T357)) → APP178_IN_AAG(T358, T359, T357)

The TRS R consists of the following rules:

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)))

The argument filtering Pi contains the following mapping:
front1_in_ag(x1, x2)  =  front1_in_ag(x2)
[]  =  []
front1_out_ag(x1, x2)  =  front1_out_ag(x2)
U9_ag(x1, x2, x3)  =  U9_ag(x3)
front14_in_aa(x1, x2)  =  front14_in_aa
front14_out_aa(x1, x2)  =  front14_out_aa
tree(x1, x2, x3)  =  tree(x2, x3)
.(x1, x2)  =  .(x2)
U1_aa(x1, x2, x3, x4, x5)  =  U1_aa(x5)
U2_aa(x1, x2, x3, x4, x5)  =  U2_aa(x5)
U4_aa(x1, x2, x3, x4, x5)  =  U4_aa(x5)
U5_aa(x1, x2, x3, x4, x5, x6)  =  U5_aa(x6)
U6_aa(x1, x2, x3, x4, x5)  =  U6_aa(x5)
U3_aa(x1, x2, x3, x4, x5)  =  U3_aa(x5)
app32_in_aaa(x1, x2, x3)  =  app32_in_aaa
app32_out_aaa(x1, x2, x3)  =  app32_out_aaa(x1)
U7_aaa(x1, x2, x3, x4, x5)  =  U7_aaa(x5)
U10_ag(x1, x2, x3)  =  U10_ag(x3)
U11_ag(x1, x2, x3)  =  U11_ag(x3)
app15_in_a(x1)  =  app15_in_a
app15_out_a(x1)  =  app15_out_a(x1)
U12_ag(x1, x2, x3, x4)  =  U12_ag(x4)
U13_ag(x1, x2, x3, x4, x5, x6)  =  U13_ag(x6)
U14_ag(x1, x2, x3, x4, x5, x6)  =  U14_ag(x6)
U15_ag(x1, x2, x3, x4, x5, x6)  =  U15_ag(x6)
U16_ag(x1, x2, x3, x4, x5, x6)  =  U16_ag(x6)
U17_ag(x1, x2, x3, x4, x5, x6, x7)  =  U17_ag(x7)
U18_ag(x1, x2, x3, x4, x5, x6)  =  U18_ag(x6)
U19_ag(x1, x2, x3, x4, x5, x6)  =  U19_ag(x6)
U20_ag(x1, x2, x3, x4, x5, x6, x7)  =  U20_ag(x7)
U21_ag(x1, x2, x3, x4, x5, x6)  =  U21_ag(x6)
U22_ag(x1, x2, x3, x4, x5, x6)  =  U22_ag(x6)
U23_ag(x1, x2, x3, x4, x5, x6)  =  U23_ag(x6)
U24_ag(x1, x2, x3, x4, x5, x6, x7)  =  U24_ag(x7)
U25_ag(x1, x2, x3, x4, x5, x6)  =  U25_ag(x6)
app66_in_aa(x1, x2)  =  app66_in_aa
app66_out_aa(x1, x2)  =  app66_out_aa(x1, x2)
U26_ag(x1, x2, x3, x4)  =  U26_ag(x4)
U27_ag(x1, x2, x3, x4)  =  U27_ag(x4)
front14_in_ag(x1, x2)  =  front14_in_ag(x2)
front14_out_ag(x1, x2)  =  front14_out_ag(x2)
U1_ag(x1, x2, x3, x4, x5)  =  U1_ag(x4, x5)
U2_ag(x1, x2, x3, x4, x5)  =  U2_ag(x4, x5)
U3_ag(x1, x2, x3, x4, x5)  =  U3_ag(x4, x5)
U4_ag(x1, x2, x3, x4, x5)  =  U4_ag(x4, x5)
U5_ag(x1, x2, x3, x4, x5, x6)  =  U5_ag(x4, x6)
U6_ag(x1, x2, x3, x4, x5)  =  U6_ag(x4, x5)
app32_in_aag(x1, x2, x3)  =  app32_in_aag(x3)
app32_out_aag(x1, x2, x3)  =  app32_out_aag(x1, x2, x3)
U7_aag(x1, x2, x3, x4, x5)  =  U7_aag(x4, x5)
U28_ag(x1, x2, x3, x4, x5)  =  U28_ag(x5)
U29_ag(x1, x2, x3, x4)  =  U29_ag(x4)
U30_ag(x1, x2, x3, x4)  =  U30_ag(x4)
U31_ag(x1, x2, x3, x4, x5, x6, x7)  =  U31_ag(x7)
U32_ag(x1, x2, x3, x4, x5, x6, x7)  =  U32_ag(x7)
U33_ag(x1, x2, x3, x4, x5, x6, x7)  =  U33_ag(x7)
U34_ag(x1, x2, x3, x4, x5, x6, x7)  =  U34_ag(x7)
U35_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U35_ag(x8)
U36_ag(x1, x2, x3, x4, x5, x6, x7)  =  U36_ag(x7)
U37_ag(x1, x2, x3, x4, x5, x6, x7)  =  U37_ag(x7)
U38_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U38_ag(x8)
U39_ag(x1, x2, x3, x4, x5, x6, x7)  =  U39_ag(x7)
U40_ag(x1, x2, x3, x4, x5, x6, x7)  =  U40_ag(x7)
U41_ag(x1, x2, x3, x4, x5, x6, x7)  =  U41_ag(x7)
U42_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U42_ag(x8)
U43_ag(x1, x2, x3, x4, x5, x6, x7)  =  U43_ag(x7)
U44_ag(x1, x2, x3, x4, x5, x6, x7)  =  U44_ag(x7)
U45_ag(x1, x2, x3, x4, x5, x6, x7)  =  U45_ag(x7)
U46_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U46_ag(x8)
U47_ag(x1, x2, x3, x4, x5, x6, x7)  =  U47_ag(x7)
U48_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U48_ag(x8)
U49_ag(x1, x2, x3, x4, x5, x6, x7)  =  U49_ag(x7)
U50_ag(x1, x2, x3, x4)  =  U50_ag(x3, x4)
U51_ag(x1, x2, x3, x4)  =  U51_ag(x3, x4)
U52_ag(x1, x2, x3, x4, x5)  =  U52_ag(x4, x5)
U53_ag(x1, x2, x3, x4, x5)  =  U53_ag(x4, x5)
U54_ag(x1, x2, x3, x4, x5, x6, x7)  =  U54_ag(x6, x7)
U55_ag(x1, x2, x3, x4, x5, x6, x7)  =  U55_ag(x6, x7)
U56_ag(x1, x2, x3, x4, x5, x6, x7)  =  U56_ag(x6, x7)
U57_ag(x1, x2, x3, x4, x5, x6, x7)  =  U57_ag(x6, x7)
U58_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U58_ag(x6, x8)
U59_ag(x1, x2, x3, x4, x5, x6, x7)  =  U59_ag(x6, x7)
U60_ag(x1, x2, x3, x4, x5, x6, x7)  =  U60_ag(x6, x7)
U61_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U61_ag(x6, x8)
U62_ag(x1, x2, x3, x4, x5, x6, x7)  =  U62_ag(x6, x7)
U63_ag(x1, x2, x3, x4, x5, x6, x7)  =  U63_ag(x6, x7)
U64_ag(x1, x2, x3, x4, x5, x6, x7)  =  U64_ag(x6, x7)
U65_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U65_ag(x6, x8)
U66_ag(x1, x2, x3, x4, x5, x6, x7)  =  U66_ag(x6, x7)
U67_ag(x1, x2, x3, x4, x5, x6, x7)  =  U67_ag(x6, x7)
U68_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U68_ag(x7, x8)
U69_ag(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U69_ag(x7, x9)
U70_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U70_ag(x7, x8)
U71_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U71_ag(x7, x8)
U72_ag(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U72_ag(x8, x9)
U73_ag(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10)  =  U73_ag(x8, x10)
U74_ag(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U74_ag(x8, x9)
U75_ag(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10)  =  U75_ag(x8, x10)
U76_ag(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U76_ag(x8, x9)
app178_in_aag(x1, x2, x3)  =  app178_in_aag(x3)
app178_out_aag(x1, x2, x3)  =  app178_out_aag(x1, x2, x3)
U8_aag(x1, x2, x3, x4, x5)  =  U8_aag(x4, x5)
APP178_IN_AAG(x1, x2, x3)  =  APP178_IN_AAG(x3)

We have to consider all (P,R,Pi)-chains

(48) UsableRulesProof (EQUIVALENT transformation)

For (infinitary) constructor rewriting [LOPSTR] we can delete all non-usable rules from R.

(49) Obligation:

Pi DP problem:
The TRS P consists of the following rules:

APP178_IN_AAG(.(T354, T358), T359, .(T354, T357)) → APP178_IN_AAG(T358, T359, T357)

R is empty.
The argument filtering Pi contains the following mapping:
.(x1, x2)  =  .(x2)
APP178_IN_AAG(x1, x2, x3)  =  APP178_IN_AAG(x3)

We have to consider all (P,R,Pi)-chains

(50) PiDPToQDPProof (SOUND transformation)

Transforming (infinitary) constructor rewriting Pi-DP problem [LOPSTR] into ordinary QDP problem [LPAR04] by application of Pi.

(51) Obligation:

Q DP problem:
The TRS P consists of the following rules:

APP178_IN_AAG(.(T357)) → APP178_IN_AAG(T357)

R is empty.
Q is empty.
We have to consider all (P,Q,R)-chains.

(52) QDPSizeChangeProof (EQUIVALENT transformation)

By using the subterm criterion [SUBTERM_CRITERION] together with the size-change analysis [AAECC05] we have proven that there are no infinite chains for this DP problem.

From the DPs we obtained the following set of size-change graphs:

  • APP178_IN_AAG(.(T357)) → APP178_IN_AAG(T357)
    The graph contains the following edges 1 > 1

(53) YES

(54) Obligation:

Pi DP problem:
The TRS P consists of the following rules:

APP32_IN_AAG(.(T47, T50), T51, .(T47, X68)) → APP32_IN_AAG(T50, T51, X68)

The TRS R consists of the following rules:

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)))

The argument filtering Pi contains the following mapping:
front1_in_ag(x1, x2)  =  front1_in_ag(x2)
[]  =  []
front1_out_ag(x1, x2)  =  front1_out_ag(x2)
U9_ag(x1, x2, x3)  =  U9_ag(x3)
front14_in_aa(x1, x2)  =  front14_in_aa
front14_out_aa(x1, x2)  =  front14_out_aa
tree(x1, x2, x3)  =  tree(x2, x3)
.(x1, x2)  =  .(x2)
U1_aa(x1, x2, x3, x4, x5)  =  U1_aa(x5)
U2_aa(x1, x2, x3, x4, x5)  =  U2_aa(x5)
U4_aa(x1, x2, x3, x4, x5)  =  U4_aa(x5)
U5_aa(x1, x2, x3, x4, x5, x6)  =  U5_aa(x6)
U6_aa(x1, x2, x3, x4, x5)  =  U6_aa(x5)
U3_aa(x1, x2, x3, x4, x5)  =  U3_aa(x5)
app32_in_aaa(x1, x2, x3)  =  app32_in_aaa
app32_out_aaa(x1, x2, x3)  =  app32_out_aaa(x1)
U7_aaa(x1, x2, x3, x4, x5)  =  U7_aaa(x5)
U10_ag(x1, x2, x3)  =  U10_ag(x3)
U11_ag(x1, x2, x3)  =  U11_ag(x3)
app15_in_a(x1)  =  app15_in_a
app15_out_a(x1)  =  app15_out_a(x1)
U12_ag(x1, x2, x3, x4)  =  U12_ag(x4)
U13_ag(x1, x2, x3, x4, x5, x6)  =  U13_ag(x6)
U14_ag(x1, x2, x3, x4, x5, x6)  =  U14_ag(x6)
U15_ag(x1, x2, x3, x4, x5, x6)  =  U15_ag(x6)
U16_ag(x1, x2, x3, x4, x5, x6)  =  U16_ag(x6)
U17_ag(x1, x2, x3, x4, x5, x6, x7)  =  U17_ag(x7)
U18_ag(x1, x2, x3, x4, x5, x6)  =  U18_ag(x6)
U19_ag(x1, x2, x3, x4, x5, x6)  =  U19_ag(x6)
U20_ag(x1, x2, x3, x4, x5, x6, x7)  =  U20_ag(x7)
U21_ag(x1, x2, x3, x4, x5, x6)  =  U21_ag(x6)
U22_ag(x1, x2, x3, x4, x5, x6)  =  U22_ag(x6)
U23_ag(x1, x2, x3, x4, x5, x6)  =  U23_ag(x6)
U24_ag(x1, x2, x3, x4, x5, x6, x7)  =  U24_ag(x7)
U25_ag(x1, x2, x3, x4, x5, x6)  =  U25_ag(x6)
app66_in_aa(x1, x2)  =  app66_in_aa
app66_out_aa(x1, x2)  =  app66_out_aa(x1, x2)
U26_ag(x1, x2, x3, x4)  =  U26_ag(x4)
U27_ag(x1, x2, x3, x4)  =  U27_ag(x4)
front14_in_ag(x1, x2)  =  front14_in_ag(x2)
front14_out_ag(x1, x2)  =  front14_out_ag(x2)
U1_ag(x1, x2, x3, x4, x5)  =  U1_ag(x4, x5)
U2_ag(x1, x2, x3, x4, x5)  =  U2_ag(x4, x5)
U3_ag(x1, x2, x3, x4, x5)  =  U3_ag(x4, x5)
U4_ag(x1, x2, x3, x4, x5)  =  U4_ag(x4, x5)
U5_ag(x1, x2, x3, x4, x5, x6)  =  U5_ag(x4, x6)
U6_ag(x1, x2, x3, x4, x5)  =  U6_ag(x4, x5)
app32_in_aag(x1, x2, x3)  =  app32_in_aag(x3)
app32_out_aag(x1, x2, x3)  =  app32_out_aag(x1, x2, x3)
U7_aag(x1, x2, x3, x4, x5)  =  U7_aag(x4, x5)
U28_ag(x1, x2, x3, x4, x5)  =  U28_ag(x5)
U29_ag(x1, x2, x3, x4)  =  U29_ag(x4)
U30_ag(x1, x2, x3, x4)  =  U30_ag(x4)
U31_ag(x1, x2, x3, x4, x5, x6, x7)  =  U31_ag(x7)
U32_ag(x1, x2, x3, x4, x5, x6, x7)  =  U32_ag(x7)
U33_ag(x1, x2, x3, x4, x5, x6, x7)  =  U33_ag(x7)
U34_ag(x1, x2, x3, x4, x5, x6, x7)  =  U34_ag(x7)
U35_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U35_ag(x8)
U36_ag(x1, x2, x3, x4, x5, x6, x7)  =  U36_ag(x7)
U37_ag(x1, x2, x3, x4, x5, x6, x7)  =  U37_ag(x7)
U38_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U38_ag(x8)
U39_ag(x1, x2, x3, x4, x5, x6, x7)  =  U39_ag(x7)
U40_ag(x1, x2, x3, x4, x5, x6, x7)  =  U40_ag(x7)
U41_ag(x1, x2, x3, x4, x5, x6, x7)  =  U41_ag(x7)
U42_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U42_ag(x8)
U43_ag(x1, x2, x3, x4, x5, x6, x7)  =  U43_ag(x7)
U44_ag(x1, x2, x3, x4, x5, x6, x7)  =  U44_ag(x7)
U45_ag(x1, x2, x3, x4, x5, x6, x7)  =  U45_ag(x7)
U46_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U46_ag(x8)
U47_ag(x1, x2, x3, x4, x5, x6, x7)  =  U47_ag(x7)
U48_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U48_ag(x8)
U49_ag(x1, x2, x3, x4, x5, x6, x7)  =  U49_ag(x7)
U50_ag(x1, x2, x3, x4)  =  U50_ag(x3, x4)
U51_ag(x1, x2, x3, x4)  =  U51_ag(x3, x4)
U52_ag(x1, x2, x3, x4, x5)  =  U52_ag(x4, x5)
U53_ag(x1, x2, x3, x4, x5)  =  U53_ag(x4, x5)
U54_ag(x1, x2, x3, x4, x5, x6, x7)  =  U54_ag(x6, x7)
U55_ag(x1, x2, x3, x4, x5, x6, x7)  =  U55_ag(x6, x7)
U56_ag(x1, x2, x3, x4, x5, x6, x7)  =  U56_ag(x6, x7)
U57_ag(x1, x2, x3, x4, x5, x6, x7)  =  U57_ag(x6, x7)
U58_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U58_ag(x6, x8)
U59_ag(x1, x2, x3, x4, x5, x6, x7)  =  U59_ag(x6, x7)
U60_ag(x1, x2, x3, x4, x5, x6, x7)  =  U60_ag(x6, x7)
U61_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U61_ag(x6, x8)
U62_ag(x1, x2, x3, x4, x5, x6, x7)  =  U62_ag(x6, x7)
U63_ag(x1, x2, x3, x4, x5, x6, x7)  =  U63_ag(x6, x7)
U64_ag(x1, x2, x3, x4, x5, x6, x7)  =  U64_ag(x6, x7)
U65_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U65_ag(x6, x8)
U66_ag(x1, x2, x3, x4, x5, x6, x7)  =  U66_ag(x6, x7)
U67_ag(x1, x2, x3, x4, x5, x6, x7)  =  U67_ag(x6, x7)
U68_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U68_ag(x7, x8)
U69_ag(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U69_ag(x7, x9)
U70_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U70_ag(x7, x8)
U71_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U71_ag(x7, x8)
U72_ag(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U72_ag(x8, x9)
U73_ag(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10)  =  U73_ag(x8, x10)
U74_ag(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U74_ag(x8, x9)
U75_ag(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10)  =  U75_ag(x8, x10)
U76_ag(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U76_ag(x8, x9)
app178_in_aag(x1, x2, x3)  =  app178_in_aag(x3)
app178_out_aag(x1, x2, x3)  =  app178_out_aag(x1, x2, x3)
U8_aag(x1, x2, x3, x4, x5)  =  U8_aag(x4, x5)
APP32_IN_AAG(x1, x2, x3)  =  APP32_IN_AAG(x3)

We have to consider all (P,R,Pi)-chains

(55) UsableRulesProof (EQUIVALENT transformation)

For (infinitary) constructor rewriting [LOPSTR] we can delete all non-usable rules from R.

(56) Obligation:

Pi DP problem:
The TRS P consists of the following rules:

APP32_IN_AAG(.(T47, T50), T51, .(T47, X68)) → APP32_IN_AAG(T50, T51, X68)

R is empty.
The argument filtering Pi contains the following mapping:
.(x1, x2)  =  .(x2)
APP32_IN_AAG(x1, x2, x3)  =  APP32_IN_AAG(x3)

We have to consider all (P,R,Pi)-chains

(57) PiDPToQDPProof (SOUND transformation)

Transforming (infinitary) constructor rewriting Pi-DP problem [LOPSTR] into ordinary QDP problem [LPAR04] by application of Pi.

(58) Obligation:

Q DP problem:
The TRS P consists of the following rules:

APP32_IN_AAG(.(X68)) → APP32_IN_AAG(X68)

R is empty.
Q is empty.
We have to consider all (P,Q,R)-chains.

(59) QDPSizeChangeProof (EQUIVALENT transformation)

By using the subterm criterion [SUBTERM_CRITERION] together with the size-change analysis [AAECC05] we have proven that there are no infinite chains for this DP problem.

From the DPs we obtained the following set of size-change graphs:

  • APP32_IN_AAG(.(X68)) → APP32_IN_AAG(X68)
    The graph contains the following edges 1 > 1

(60) YES

(61) Obligation:

Pi DP problem:
The TRS P consists of the following rules:

APP32_IN_AAA(.(T47, T50), T51, .(T47, X68)) → APP32_IN_AAA(T50, T51, X68)

The TRS R consists of the following rules:

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)))

The argument filtering Pi contains the following mapping:
front1_in_ag(x1, x2)  =  front1_in_ag(x2)
[]  =  []
front1_out_ag(x1, x2)  =  front1_out_ag(x2)
U9_ag(x1, x2, x3)  =  U9_ag(x3)
front14_in_aa(x1, x2)  =  front14_in_aa
front14_out_aa(x1, x2)  =  front14_out_aa
tree(x1, x2, x3)  =  tree(x2, x3)
.(x1, x2)  =  .(x2)
U1_aa(x1, x2, x3, x4, x5)  =  U1_aa(x5)
U2_aa(x1, x2, x3, x4, x5)  =  U2_aa(x5)
U4_aa(x1, x2, x3, x4, x5)  =  U4_aa(x5)
U5_aa(x1, x2, x3, x4, x5, x6)  =  U5_aa(x6)
U6_aa(x1, x2, x3, x4, x5)  =  U6_aa(x5)
U3_aa(x1, x2, x3, x4, x5)  =  U3_aa(x5)
app32_in_aaa(x1, x2, x3)  =  app32_in_aaa
app32_out_aaa(x1, x2, x3)  =  app32_out_aaa(x1)
U7_aaa(x1, x2, x3, x4, x5)  =  U7_aaa(x5)
U10_ag(x1, x2, x3)  =  U10_ag(x3)
U11_ag(x1, x2, x3)  =  U11_ag(x3)
app15_in_a(x1)  =  app15_in_a
app15_out_a(x1)  =  app15_out_a(x1)
U12_ag(x1, x2, x3, x4)  =  U12_ag(x4)
U13_ag(x1, x2, x3, x4, x5, x6)  =  U13_ag(x6)
U14_ag(x1, x2, x3, x4, x5, x6)  =  U14_ag(x6)
U15_ag(x1, x2, x3, x4, x5, x6)  =  U15_ag(x6)
U16_ag(x1, x2, x3, x4, x5, x6)  =  U16_ag(x6)
U17_ag(x1, x2, x3, x4, x5, x6, x7)  =  U17_ag(x7)
U18_ag(x1, x2, x3, x4, x5, x6)  =  U18_ag(x6)
U19_ag(x1, x2, x3, x4, x5, x6)  =  U19_ag(x6)
U20_ag(x1, x2, x3, x4, x5, x6, x7)  =  U20_ag(x7)
U21_ag(x1, x2, x3, x4, x5, x6)  =  U21_ag(x6)
U22_ag(x1, x2, x3, x4, x5, x6)  =  U22_ag(x6)
U23_ag(x1, x2, x3, x4, x5, x6)  =  U23_ag(x6)
U24_ag(x1, x2, x3, x4, x5, x6, x7)  =  U24_ag(x7)
U25_ag(x1, x2, x3, x4, x5, x6)  =  U25_ag(x6)
app66_in_aa(x1, x2)  =  app66_in_aa
app66_out_aa(x1, x2)  =  app66_out_aa(x1, x2)
U26_ag(x1, x2, x3, x4)  =  U26_ag(x4)
U27_ag(x1, x2, x3, x4)  =  U27_ag(x4)
front14_in_ag(x1, x2)  =  front14_in_ag(x2)
front14_out_ag(x1, x2)  =  front14_out_ag(x2)
U1_ag(x1, x2, x3, x4, x5)  =  U1_ag(x4, x5)
U2_ag(x1, x2, x3, x4, x5)  =  U2_ag(x4, x5)
U3_ag(x1, x2, x3, x4, x5)  =  U3_ag(x4, x5)
U4_ag(x1, x2, x3, x4, x5)  =  U4_ag(x4, x5)
U5_ag(x1, x2, x3, x4, x5, x6)  =  U5_ag(x4, x6)
U6_ag(x1, x2, x3, x4, x5)  =  U6_ag(x4, x5)
app32_in_aag(x1, x2, x3)  =  app32_in_aag(x3)
app32_out_aag(x1, x2, x3)  =  app32_out_aag(x1, x2, x3)
U7_aag(x1, x2, x3, x4, x5)  =  U7_aag(x4, x5)
U28_ag(x1, x2, x3, x4, x5)  =  U28_ag(x5)
U29_ag(x1, x2, x3, x4)  =  U29_ag(x4)
U30_ag(x1, x2, x3, x4)  =  U30_ag(x4)
U31_ag(x1, x2, x3, x4, x5, x6, x7)  =  U31_ag(x7)
U32_ag(x1, x2, x3, x4, x5, x6, x7)  =  U32_ag(x7)
U33_ag(x1, x2, x3, x4, x5, x6, x7)  =  U33_ag(x7)
U34_ag(x1, x2, x3, x4, x5, x6, x7)  =  U34_ag(x7)
U35_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U35_ag(x8)
U36_ag(x1, x2, x3, x4, x5, x6, x7)  =  U36_ag(x7)
U37_ag(x1, x2, x3, x4, x5, x6, x7)  =  U37_ag(x7)
U38_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U38_ag(x8)
U39_ag(x1, x2, x3, x4, x5, x6, x7)  =  U39_ag(x7)
U40_ag(x1, x2, x3, x4, x5, x6, x7)  =  U40_ag(x7)
U41_ag(x1, x2, x3, x4, x5, x6, x7)  =  U41_ag(x7)
U42_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U42_ag(x8)
U43_ag(x1, x2, x3, x4, x5, x6, x7)  =  U43_ag(x7)
U44_ag(x1, x2, x3, x4, x5, x6, x7)  =  U44_ag(x7)
U45_ag(x1, x2, x3, x4, x5, x6, x7)  =  U45_ag(x7)
U46_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U46_ag(x8)
U47_ag(x1, x2, x3, x4, x5, x6, x7)  =  U47_ag(x7)
U48_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U48_ag(x8)
U49_ag(x1, x2, x3, x4, x5, x6, x7)  =  U49_ag(x7)
U50_ag(x1, x2, x3, x4)  =  U50_ag(x3, x4)
U51_ag(x1, x2, x3, x4)  =  U51_ag(x3, x4)
U52_ag(x1, x2, x3, x4, x5)  =  U52_ag(x4, x5)
U53_ag(x1, x2, x3, x4, x5)  =  U53_ag(x4, x5)
U54_ag(x1, x2, x3, x4, x5, x6, x7)  =  U54_ag(x6, x7)
U55_ag(x1, x2, x3, x4, x5, x6, x7)  =  U55_ag(x6, x7)
U56_ag(x1, x2, x3, x4, x5, x6, x7)  =  U56_ag(x6, x7)
U57_ag(x1, x2, x3, x4, x5, x6, x7)  =  U57_ag(x6, x7)
U58_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U58_ag(x6, x8)
U59_ag(x1, x2, x3, x4, x5, x6, x7)  =  U59_ag(x6, x7)
U60_ag(x1, x2, x3, x4, x5, x6, x7)  =  U60_ag(x6, x7)
U61_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U61_ag(x6, x8)
U62_ag(x1, x2, x3, x4, x5, x6, x7)  =  U62_ag(x6, x7)
U63_ag(x1, x2, x3, x4, x5, x6, x7)  =  U63_ag(x6, x7)
U64_ag(x1, x2, x3, x4, x5, x6, x7)  =  U64_ag(x6, x7)
U65_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U65_ag(x6, x8)
U66_ag(x1, x2, x3, x4, x5, x6, x7)  =  U66_ag(x6, x7)
U67_ag(x1, x2, x3, x4, x5, x6, x7)  =  U67_ag(x6, x7)
U68_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U68_ag(x7, x8)
U69_ag(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U69_ag(x7, x9)
U70_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U70_ag(x7, x8)
U71_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U71_ag(x7, x8)
U72_ag(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U72_ag(x8, x9)
U73_ag(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10)  =  U73_ag(x8, x10)
U74_ag(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U74_ag(x8, x9)
U75_ag(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10)  =  U75_ag(x8, x10)
U76_ag(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U76_ag(x8, x9)
app178_in_aag(x1, x2, x3)  =  app178_in_aag(x3)
app178_out_aag(x1, x2, x3)  =  app178_out_aag(x1, x2, x3)
U8_aag(x1, x2, x3, x4, x5)  =  U8_aag(x4, x5)
APP32_IN_AAA(x1, x2, x3)  =  APP32_IN_AAA

We have to consider all (P,R,Pi)-chains

(62) UsableRulesProof (EQUIVALENT transformation)

For (infinitary) constructor rewriting [LOPSTR] we can delete all non-usable rules from R.

(63) Obligation:

Pi DP problem:
The TRS P consists of the following rules:

APP32_IN_AAA(.(T47, T50), T51, .(T47, X68)) → APP32_IN_AAA(T50, T51, X68)

R is empty.
The argument filtering Pi contains the following mapping:
.(x1, x2)  =  .(x2)
APP32_IN_AAA(x1, x2, x3)  =  APP32_IN_AAA

We have to consider all (P,R,Pi)-chains

(64) PiDPToQDPProof (SOUND transformation)

Transforming (infinitary) constructor rewriting Pi-DP problem [LOPSTR] into ordinary QDP problem [LPAR04] by application of Pi.

(65) Obligation:

Q DP problem:
The TRS P consists of the following rules:

APP32_IN_AAAAPP32_IN_AAA

R is empty.
Q is empty.
We have to consider all (P,Q,R)-chains.

(66) NonTerminationProof (EQUIVALENT transformation)

We used the non-termination processor [FROCOS05] to show that the DP problem is infinite.
Found a loop by semiunifying a rule from P directly.

s = APP32_IN_AAA evaluates to t =APP32_IN_AAA

Thus s starts an infinite chain as s semiunifies with t with the following substitutions:
  • Matcher: [ ]
  • Semiunifier: [ ]




Rewriting sequence

The DP semiunifies directly so there is only one rewrite step from APP32_IN_AAA to APP32_IN_AAA.



(67) NO

(68) Obligation:

Pi DP problem:
The TRS P consists of the following rules:

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)

The TRS R consists of the following rules:

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)))

The argument filtering Pi contains the following mapping:
front1_in_ag(x1, x2)  =  front1_in_ag(x2)
[]  =  []
front1_out_ag(x1, x2)  =  front1_out_ag(x2)
U9_ag(x1, x2, x3)  =  U9_ag(x3)
front14_in_aa(x1, x2)  =  front14_in_aa
front14_out_aa(x1, x2)  =  front14_out_aa
tree(x1, x2, x3)  =  tree(x2, x3)
.(x1, x2)  =  .(x2)
U1_aa(x1, x2, x3, x4, x5)  =  U1_aa(x5)
U2_aa(x1, x2, x3, x4, x5)  =  U2_aa(x5)
U4_aa(x1, x2, x3, x4, x5)  =  U4_aa(x5)
U5_aa(x1, x2, x3, x4, x5, x6)  =  U5_aa(x6)
U6_aa(x1, x2, x3, x4, x5)  =  U6_aa(x5)
U3_aa(x1, x2, x3, x4, x5)  =  U3_aa(x5)
app32_in_aaa(x1, x2, x3)  =  app32_in_aaa
app32_out_aaa(x1, x2, x3)  =  app32_out_aaa(x1)
U7_aaa(x1, x2, x3, x4, x5)  =  U7_aaa(x5)
U10_ag(x1, x2, x3)  =  U10_ag(x3)
U11_ag(x1, x2, x3)  =  U11_ag(x3)
app15_in_a(x1)  =  app15_in_a
app15_out_a(x1)  =  app15_out_a(x1)
U12_ag(x1, x2, x3, x4)  =  U12_ag(x4)
U13_ag(x1, x2, x3, x4, x5, x6)  =  U13_ag(x6)
U14_ag(x1, x2, x3, x4, x5, x6)  =  U14_ag(x6)
U15_ag(x1, x2, x3, x4, x5, x6)  =  U15_ag(x6)
U16_ag(x1, x2, x3, x4, x5, x6)  =  U16_ag(x6)
U17_ag(x1, x2, x3, x4, x5, x6, x7)  =  U17_ag(x7)
U18_ag(x1, x2, x3, x4, x5, x6)  =  U18_ag(x6)
U19_ag(x1, x2, x3, x4, x5, x6)  =  U19_ag(x6)
U20_ag(x1, x2, x3, x4, x5, x6, x7)  =  U20_ag(x7)
U21_ag(x1, x2, x3, x4, x5, x6)  =  U21_ag(x6)
U22_ag(x1, x2, x3, x4, x5, x6)  =  U22_ag(x6)
U23_ag(x1, x2, x3, x4, x5, x6)  =  U23_ag(x6)
U24_ag(x1, x2, x3, x4, x5, x6, x7)  =  U24_ag(x7)
U25_ag(x1, x2, x3, x4, x5, x6)  =  U25_ag(x6)
app66_in_aa(x1, x2)  =  app66_in_aa
app66_out_aa(x1, x2)  =  app66_out_aa(x1, x2)
U26_ag(x1, x2, x3, x4)  =  U26_ag(x4)
U27_ag(x1, x2, x3, x4)  =  U27_ag(x4)
front14_in_ag(x1, x2)  =  front14_in_ag(x2)
front14_out_ag(x1, x2)  =  front14_out_ag(x2)
U1_ag(x1, x2, x3, x4, x5)  =  U1_ag(x4, x5)
U2_ag(x1, x2, x3, x4, x5)  =  U2_ag(x4, x5)
U3_ag(x1, x2, x3, x4, x5)  =  U3_ag(x4, x5)
U4_ag(x1, x2, x3, x4, x5)  =  U4_ag(x4, x5)
U5_ag(x1, x2, x3, x4, x5, x6)  =  U5_ag(x4, x6)
U6_ag(x1, x2, x3, x4, x5)  =  U6_ag(x4, x5)
app32_in_aag(x1, x2, x3)  =  app32_in_aag(x3)
app32_out_aag(x1, x2, x3)  =  app32_out_aag(x1, x2, x3)
U7_aag(x1, x2, x3, x4, x5)  =  U7_aag(x4, x5)
U28_ag(x1, x2, x3, x4, x5)  =  U28_ag(x5)
U29_ag(x1, x2, x3, x4)  =  U29_ag(x4)
U30_ag(x1, x2, x3, x4)  =  U30_ag(x4)
U31_ag(x1, x2, x3, x4, x5, x6, x7)  =  U31_ag(x7)
U32_ag(x1, x2, x3, x4, x5, x6, x7)  =  U32_ag(x7)
U33_ag(x1, x2, x3, x4, x5, x6, x7)  =  U33_ag(x7)
U34_ag(x1, x2, x3, x4, x5, x6, x7)  =  U34_ag(x7)
U35_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U35_ag(x8)
U36_ag(x1, x2, x3, x4, x5, x6, x7)  =  U36_ag(x7)
U37_ag(x1, x2, x3, x4, x5, x6, x7)  =  U37_ag(x7)
U38_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U38_ag(x8)
U39_ag(x1, x2, x3, x4, x5, x6, x7)  =  U39_ag(x7)
U40_ag(x1, x2, x3, x4, x5, x6, x7)  =  U40_ag(x7)
U41_ag(x1, x2, x3, x4, x5, x6, x7)  =  U41_ag(x7)
U42_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U42_ag(x8)
U43_ag(x1, x2, x3, x4, x5, x6, x7)  =  U43_ag(x7)
U44_ag(x1, x2, x3, x4, x5, x6, x7)  =  U44_ag(x7)
U45_ag(x1, x2, x3, x4, x5, x6, x7)  =  U45_ag(x7)
U46_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U46_ag(x8)
U47_ag(x1, x2, x3, x4, x5, x6, x7)  =  U47_ag(x7)
U48_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U48_ag(x8)
U49_ag(x1, x2, x3, x4, x5, x6, x7)  =  U49_ag(x7)
U50_ag(x1, x2, x3, x4)  =  U50_ag(x3, x4)
U51_ag(x1, x2, x3, x4)  =  U51_ag(x3, x4)
U52_ag(x1, x2, x3, x4, x5)  =  U52_ag(x4, x5)
U53_ag(x1, x2, x3, x4, x5)  =  U53_ag(x4, x5)
U54_ag(x1, x2, x3, x4, x5, x6, x7)  =  U54_ag(x6, x7)
U55_ag(x1, x2, x3, x4, x5, x6, x7)  =  U55_ag(x6, x7)
U56_ag(x1, x2, x3, x4, x5, x6, x7)  =  U56_ag(x6, x7)
U57_ag(x1, x2, x3, x4, x5, x6, x7)  =  U57_ag(x6, x7)
U58_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U58_ag(x6, x8)
U59_ag(x1, x2, x3, x4, x5, x6, x7)  =  U59_ag(x6, x7)
U60_ag(x1, x2, x3, x4, x5, x6, x7)  =  U60_ag(x6, x7)
U61_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U61_ag(x6, x8)
U62_ag(x1, x2, x3, x4, x5, x6, x7)  =  U62_ag(x6, x7)
U63_ag(x1, x2, x3, x4, x5, x6, x7)  =  U63_ag(x6, x7)
U64_ag(x1, x2, x3, x4, x5, x6, x7)  =  U64_ag(x6, x7)
U65_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U65_ag(x6, x8)
U66_ag(x1, x2, x3, x4, x5, x6, x7)  =  U66_ag(x6, x7)
U67_ag(x1, x2, x3, x4, x5, x6, x7)  =  U67_ag(x6, x7)
U68_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U68_ag(x7, x8)
U69_ag(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U69_ag(x7, x9)
U70_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U70_ag(x7, x8)
U71_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U71_ag(x7, x8)
U72_ag(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U72_ag(x8, x9)
U73_ag(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10)  =  U73_ag(x8, x10)
U74_ag(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U74_ag(x8, x9)
U75_ag(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10)  =  U75_ag(x8, x10)
U76_ag(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U76_ag(x8, x9)
app178_in_aag(x1, x2, x3)  =  app178_in_aag(x3)
app178_out_aag(x1, x2, x3)  =  app178_out_aag(x1, x2, x3)
U8_aag(x1, x2, x3, x4, x5)  =  U8_aag(x4, x5)
FRONT14_IN_AA(x1, x2)  =  FRONT14_IN_AA
U2_AA(x1, x2, x3, x4, x5)  =  U2_AA(x5)
U4_AA(x1, x2, x3, x4, x5)  =  U4_AA(x5)

We have to consider all (P,R,Pi)-chains

(69) UsableRulesProof (EQUIVALENT transformation)

For (infinitary) constructor rewriting [LOPSTR] we can delete all non-usable rules from R.

(70) Obligation:

Pi DP problem:
The TRS P consists of the following rules:

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)

The TRS R consists of the following rules:

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))

The argument filtering Pi contains the following mapping:
[]  =  []
front14_in_aa(x1, x2)  =  front14_in_aa
front14_out_aa(x1, x2)  =  front14_out_aa
tree(x1, x2, x3)  =  tree(x2, x3)
.(x1, x2)  =  .(x2)
U1_aa(x1, x2, x3, x4, x5)  =  U1_aa(x5)
U2_aa(x1, x2, x3, x4, x5)  =  U2_aa(x5)
U4_aa(x1, x2, x3, x4, x5)  =  U4_aa(x5)
U5_aa(x1, x2, x3, x4, x5, x6)  =  U5_aa(x6)
U6_aa(x1, x2, x3, x4, x5)  =  U6_aa(x5)
U3_aa(x1, x2, x3, x4, x5)  =  U3_aa(x5)
app32_in_aaa(x1, x2, x3)  =  app32_in_aaa
app32_out_aaa(x1, x2, x3)  =  app32_out_aaa(x1)
U7_aaa(x1, x2, x3, x4, x5)  =  U7_aaa(x5)
FRONT14_IN_AA(x1, x2)  =  FRONT14_IN_AA
U2_AA(x1, x2, x3, x4, x5)  =  U2_AA(x5)
U4_AA(x1, x2, x3, x4, x5)  =  U4_AA(x5)

We have to consider all (P,R,Pi)-chains

(71) PiDPToQDPProof (SOUND transformation)

Transforming (infinitary) constructor rewriting Pi-DP problem [LOPSTR] into ordinary QDP problem [LPAR04] by application of Pi.

(72) Obligation:

Q DP problem:
The TRS P consists of the following rules:

FRONT14_IN_AAU2_AA(front14_in_aa)
U2_AA(front14_out_aa) → FRONT14_IN_AA
FRONT14_IN_AAFRONT14_IN_AA
FRONT14_IN_AAU4_AA(front14_in_aa)
U4_AA(front14_out_aa) → FRONT14_IN_AA

The TRS R consists of the following rules:

front14_in_aafront14_out_aa
front14_in_aaU1_aa(front14_in_aa)
front14_in_aaU2_aa(front14_in_aa)
front14_in_aaU4_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_aaaapp32_out_aaa([])
app32_in_aaaU7_aaa(app32_in_aaa)
U7_aaa(app32_out_aaa(T50)) → app32_out_aaa(.(T50))

The set Q consists of the following terms:

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)

We have to consider all (P,Q,R)-chains.

(73) Narrowing (SOUND transformation)

By narrowing [LPAR04] the rule FRONT14_IN_AAU2_AA(front14_in_aa) at position [0] we obtained the following new rules [LPAR04]:

FRONT14_IN_AAU2_AA(front14_out_aa)
FRONT14_IN_AAU2_AA(U1_aa(front14_in_aa))
FRONT14_IN_AAU2_AA(U2_aa(front14_in_aa))
FRONT14_IN_AAU2_AA(U4_aa(front14_in_aa))

(74) Obligation:

Q DP problem:
The TRS P consists of the following rules:

U2_AA(front14_out_aa) → FRONT14_IN_AA
FRONT14_IN_AAFRONT14_IN_AA
FRONT14_IN_AAU4_AA(front14_in_aa)
U4_AA(front14_out_aa) → FRONT14_IN_AA
FRONT14_IN_AAU2_AA(front14_out_aa)
FRONT14_IN_AAU2_AA(U1_aa(front14_in_aa))
FRONT14_IN_AAU2_AA(U2_aa(front14_in_aa))
FRONT14_IN_AAU2_AA(U4_aa(front14_in_aa))

The TRS R consists of the following rules:

front14_in_aafront14_out_aa
front14_in_aaU1_aa(front14_in_aa)
front14_in_aaU2_aa(front14_in_aa)
front14_in_aaU4_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_aaaapp32_out_aaa([])
app32_in_aaaU7_aaa(app32_in_aaa)
U7_aaa(app32_out_aaa(T50)) → app32_out_aaa(.(T50))

The set Q consists of the following terms:

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)

We have to consider all (P,Q,R)-chains.

(75) Narrowing (SOUND transformation)

By narrowing [LPAR04] the rule FRONT14_IN_AAU4_AA(front14_in_aa) at position [0] we obtained the following new rules [LPAR04]:

FRONT14_IN_AAU4_AA(front14_out_aa)
FRONT14_IN_AAU4_AA(U1_aa(front14_in_aa))
FRONT14_IN_AAU4_AA(U2_aa(front14_in_aa))
FRONT14_IN_AAU4_AA(U4_aa(front14_in_aa))

(76) Obligation:

Q DP problem:
The TRS P consists of the following rules:

U2_AA(front14_out_aa) → FRONT14_IN_AA
FRONT14_IN_AAFRONT14_IN_AA
U4_AA(front14_out_aa) → FRONT14_IN_AA
FRONT14_IN_AAU2_AA(front14_out_aa)
FRONT14_IN_AAU2_AA(U1_aa(front14_in_aa))
FRONT14_IN_AAU2_AA(U2_aa(front14_in_aa))
FRONT14_IN_AAU2_AA(U4_aa(front14_in_aa))
FRONT14_IN_AAU4_AA(front14_out_aa)
FRONT14_IN_AAU4_AA(U1_aa(front14_in_aa))
FRONT14_IN_AAU4_AA(U2_aa(front14_in_aa))
FRONT14_IN_AAU4_AA(U4_aa(front14_in_aa))

The TRS R consists of the following rules:

front14_in_aafront14_out_aa
front14_in_aaU1_aa(front14_in_aa)
front14_in_aaU2_aa(front14_in_aa)
front14_in_aaU4_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_aaaapp32_out_aaa([])
app32_in_aaaU7_aaa(app32_in_aaa)
U7_aaa(app32_out_aaa(T50)) → app32_out_aaa(.(T50))

The set Q consists of the following terms:

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)

We have to consider all (P,Q,R)-chains.

(77) NonTerminationProof (EQUIVALENT transformation)

We used the non-termination processor [FROCOS05] to show that the DP problem is infinite.
Found a loop by semiunifying a rule from P directly.

s = FRONT14_IN_AA evaluates to t =FRONT14_IN_AA

Thus s starts an infinite chain as s semiunifies with t with the following substitutions:
  • Semiunifier: [ ]
  • Matcher: [ ]




Rewriting sequence

The DP semiunifies directly so there is only one rewrite step from FRONT14_IN_AA to FRONT14_IN_AA.



(78) NO