0 Prolog
↳1 PrologToPrologProblemTransformerProof (⇐)
↳2 Prolog
↳3 PrologToPiTRSProof (⇐)
↳4 PiTRS
↳5 DependencyPairsProof (⇔)
↳6 PiDP
↳7 DependencyGraphProof (⇔)
↳8 AND
↳9 PiDP
↳10 UsableRulesProof (⇔)
↳11 PiDP
↳12 PiDPToQDPProof (⇐)
↳13 QDP
↳14 NonTerminationProof (⇔)
↳15 FALSE
↳16 PiDP
↳17 UsableRulesProof (⇔)
↳18 PiDP
↳19 PiDPToQDPProof (⇐)
↳20 QDP
↳21 NonTerminationProof (⇔)
↳22 FALSE
↳23 PiDP
↳24 UsableRulesProof (⇔)
↳25 PiDP
↳26 PiDPToQDPProof (⇐)
↳27 QDP
↳28 NonTerminationProof (⇔)
↳29 FALSE
↳30 PiDP
↳31 UsableRulesProof (⇔)
↳32 PiDP
↳33 PiDPToQDPProof (⇐)
↳34 QDP
↳35 QDPSizeChangeProof (⇔)
↳36 TRUE
↳37 PiDP
↳38 UsableRulesProof (⇔)
↳39 PiDP
↳40 PiDPToQDPProof (⇐)
↳41 QDP
↳42 NonTerminationProof (⇔)
↳43 FALSE
↳44 PiDP
↳45 UsableRulesProof (⇔)
↳46 PiDP
↳47 PiDPToQDPProof (⇐)
↳48 QDP
↳49 QDPSizeChangeProof (⇔)
↳50 TRUE
↳51 PiDP
↳52 UsableRulesProof (⇔)
↳53 PiDP
↳54 PiDPToQDPProof (⇐)
↳55 QDP
↳56 NonTerminationProof (⇔)
↳57 FALSE
↳58 PiDP
↳59 UsableRulesProof (⇔)
↳60 PiDP
↳61 PiDPToQDPProof (⇐)
↳62 QDP
↳63 QDPSizeChangeProof (⇔)
↳64 TRUE
↳65 PrologToPiTRSProof (⇐)
↳66 PiTRS
↳67 DependencyPairsProof (⇔)
↳68 PiDP
↳69 DependencyGraphProof (⇔)
↳70 AND
↳71 PiDP
↳72 UsableRulesProof (⇔)
↳73 PiDP
↳74 PiDPToQDPProof (⇐)
↳75 QDP
↳76 NonTerminationProof (⇔)
↳77 FALSE
↳78 PiDP
↳79 UsableRulesProof (⇔)
↳80 PiDP
↳81 PiDPToQDPProof (⇐)
↳82 QDP
↳83 NonTerminationProof (⇔)
↳84 FALSE
↳85 PiDP
↳86 UsableRulesProof (⇔)
↳87 PiDP
↳88 PiDPToQDPProof (⇐)
↳89 QDP
↳90 NonTerminationProof (⇔)
↳91 FALSE
↳92 PiDP
↳93 UsableRulesProof (⇔)
↳94 PiDP
↳95 PiDPToQDPProof (⇐)
↳96 QDP
↳97 QDPSizeChangeProof (⇔)
↳98 TRUE
↳99 PiDP
↳100 UsableRulesProof (⇔)
↳101 PiDP
↳102 PiDPToQDPProof (⇐)
↳103 QDP
↳104 NonTerminationProof (⇔)
↳105 FALSE
↳106 PiDP
↳107 UsableRulesProof (⇔)
↳108 PiDP
↳109 PiDPToQDPProof (⇐)
↳110 QDP
↳111 QDPSizeChangeProof (⇔)
↳112 TRUE
↳113 PiDP
↳114 UsableRulesProof (⇔)
↳115 PiDP
↳116 PiDPToQDPProof (⇐)
↳117 QDP
↳118 NonTerminationProof (⇔)
↳119 FALSE
↳120 PiDP
↳121 UsableRulesProof (⇔)
↳122 PiDP
↳123 PiDPToQDPProof (⇐)
↳124 QDP
↳125 QDPSizeChangeProof (⇔)
↳126 TRUE
goal1_in_gaa(T7, T10, T11) → U21_gaa(T7, T10, T11, s2t4_in_ga(T7, X21))
s2t4_in_ga(0, nil) → s2t4_out_ga(0, nil)
s2t4_in_ga(s(T14), node(X38, X39, X38)) → U1_ga(T14, X38, X39, s2t4_in_ga(T14, X38))
s2t4_in_ga(s(T16), node(nil, X52, X53)) → U2_ga(T16, X52, X53, s2t4_in_ga(T16, X53))
s2t4_in_ga(s(T18), node(X66, X67, nil)) → U3_ga(T18, X66, X67, s2t4_in_ga(T18, X66))
s2t4_in_ga(T19, node(nil, X74, nil)) → s2t4_out_ga(T19, node(nil, X74, nil))
U3_ga(T18, X66, X67, s2t4_out_ga(T18, X66)) → s2t4_out_ga(s(T18), node(X66, X67, nil))
U2_ga(T16, X52, X53, s2t4_out_ga(T16, X53)) → s2t4_out_ga(s(T16), node(nil, X52, X53))
U1_ga(T14, X38, X39, s2t4_out_ga(T14, X38)) → s2t4_out_ga(s(T14), node(X38, X39, X38))
U21_gaa(T7, T10, T11, s2t4_out_ga(T7, X21)) → goal1_out_gaa(T7, T10, T11)
goal1_in_gaa(T7, T24, T25) → U22_gaa(T7, T24, T25, s2t4_in_ga(T7, T23))
U22_gaa(T7, T24, T25, s2t4_out_ga(T7, T23)) → U23_gaa(T7, T24, T25, tappend38_in_aaa(T23, T24, X81))
tappend38_in_aaa(nil, T30, node(nil, T30, nil)) → tappend38_out_aaa(nil, T30, node(nil, T30, nil))
tappend38_in_aaa(nil, T32, node(node(nil, T32, nil), nil, nil)) → tappend38_out_aaa(nil, T32, node(node(nil, T32, nil), nil, nil))
tappend38_in_aaa(node(nil, T43, T44), T32, node(node(nil, T32, nil), T43, T44)) → tappend38_out_aaa(node(nil, T43, T44), T32, node(node(nil, T32, nil), T43, T44))
tappend38_in_aaa(nil, T57, node(nil, nil, node(nil, T57, nil))) → tappend38_out_aaa(nil, T57, node(nil, nil, node(nil, T57, nil)))
tappend38_in_aaa(node(T70, T71, nil), T57, node(T70, T71, node(nil, T57, nil))) → tappend38_out_aaa(node(T70, T71, nil), T57, node(T70, T71, node(nil, T57, nil)))
tappend38_in_aaa(nil, T89, node(X217, nil, nil)) → U4_aaa(T89, X217, tappend38_in_gaa(nil, T89, X217))
tappend38_in_gaa(nil, T30, node(nil, T30, nil)) → tappend38_out_gaa(nil, T30, node(nil, T30, nil))
tappend38_in_gaa(nil, T32, node(node(nil, T32, nil), nil, nil)) → tappend38_out_gaa(nil, T32, node(node(nil, T32, nil), nil, nil))
tappend38_in_gaa(node(nil, T43, T44), T32, node(node(nil, T32, nil), T43, T44)) → tappend38_out_gaa(node(nil, T43, T44), T32, node(node(nil, T32, nil), T43, T44))
tappend38_in_gaa(nil, T57, node(nil, nil, node(nil, T57, nil))) → tappend38_out_gaa(nil, T57, node(nil, nil, node(nil, T57, nil)))
tappend38_in_gaa(node(T70, T71, nil), T57, node(T70, T71, node(nil, T57, nil))) → tappend38_out_gaa(node(T70, T71, nil), T57, node(T70, T71, node(nil, T57, nil)))
tappend38_in_gaa(nil, T89, node(X217, nil, nil)) → U4_gaa(T89, X217, tappend38_in_gaa(nil, T89, X217))
tappend38_in_gaa(node(T107, T105, T106), T108, node(X217, T105, T106)) → U5_gaa(T107, T105, T106, T108, X217, tappend38_in_gaa(T107, T108, X217))
tappend38_in_gaa(node(T126, T124, T125), T127, node(X217, T124, T125)) → U6_gaa(T126, T124, T125, T127, X217, tappend38_in_gaa(T126, T127, X217))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, X300)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, X300))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X313, nil, nil))) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X313, nil, nil)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(nil, T160, T161)), T145, node(node(nil, T145, nil), T146, node(X313, T160, T161))) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(nil, T160, T161)), T145, node(node(nil, T145, nil), T146, node(X313, T160, T161)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X370))) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X370)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T186, T187, nil)), T145, node(node(nil, T145, nil), T146, node(T186, T187, X370))) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T186, T187, nil)), T145, node(node(nil, T145, nil), T146, node(T186, T187, X370)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X432, nil, nil))) → U7_gaa(T145, T146, X432, tappend151_in_gaa(nil, X431, X432))
tappend151_in_gaa(nil, X300, X300) → tappend151_out_gaa(nil, X300, X300)
tappend151_in_gaa(nil, X313, node(X313, nil, nil)) → tappend151_out_gaa(nil, X313, node(X313, nil, nil))
tappend151_in_gaa(node(nil, T160, T161), X313, node(X313, T160, T161)) → tappend151_out_gaa(node(nil, T160, T161), X313, node(X313, T160, T161))
tappend151_in_gaa(nil, X370, node(nil, nil, X370)) → tappend151_out_gaa(nil, X370, node(nil, nil, X370))
tappend151_in_gaa(node(T186, T187, nil), X370, node(T186, T187, X370)) → tappend151_out_gaa(node(T186, T187, nil), X370, node(T186, T187, X370))
tappend151_in_gaa(nil, X431, node(X432, nil, nil)) → U13_gaa(X431, X432, tappend151_in_gaa(nil, X431, X432))
tappend151_in_gaa(node(T218, T216, T217), X431, node(X432, T216, T217)) → U14_gaa(T218, T216, T217, X431, X432, tappend151_in_gaa(T218, X431, X432))
tappend151_in_gaa(node(T234, T232, T233), X431, node(X432, T232, T233)) → U15_gaa(T234, T232, T233, X431, X432, tappend151_in_gaa(T234, X431, X432))
tappend151_in_gaa(nil, nil, node(nil, nil, X489)) → U16_gaa(X489, tappend151_in_gaa(nil, X486, X489))
tappend151_in_gaa(node(T249, T250, T252), T249, node(T249, T250, X489)) → U17_gaa(T249, T250, T252, X489, tappend151_in_gaa(T252, X486, X489))
tappend151_in_gaa(node(T265, T266, T268), T265, node(T265, T266, X489)) → U18_gaa(T265, T266, T268, X489, tappend151_in_gaa(T268, X486, X489))
U18_gaa(T265, T266, T268, X489, tappend151_out_gaa(T268, X486, X489)) → tappend151_out_gaa(node(T265, T266, T268), T265, node(T265, T266, X489))
U17_gaa(T249, T250, T252, X489, tappend151_out_gaa(T252, X486, X489)) → tappend151_out_gaa(node(T249, T250, T252), T249, node(T249, T250, X489))
U16_gaa(X489, tappend151_out_gaa(nil, X486, X489)) → tappend151_out_gaa(nil, nil, node(nil, nil, X489))
U15_gaa(T234, T232, T233, X431, X432, tappend151_out_gaa(T234, X431, X432)) → tappend151_out_gaa(node(T234, T232, T233), X431, node(X432, T232, T233))
U14_gaa(T218, T216, T217, X431, X432, tappend151_out_gaa(T218, X431, X432)) → tappend151_out_gaa(node(T218, T216, T217), X431, node(X432, T216, T217))
U13_gaa(X431, X432, tappend151_out_gaa(nil, X431, X432)) → tappend151_out_gaa(nil, X431, node(X432, nil, nil))
U7_gaa(T145, T146, X432, tappend151_out_gaa(nil, X431, X432)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X432, nil, nil)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T218, T216, T217)), T145, node(node(nil, T145, nil), T146, node(X432, T216, T217))) → U8_gaa(T145, T146, T218, T216, T217, X432, tappend151_in_gaa(T218, X431, X432))
U8_gaa(T145, T146, T218, T216, T217, X432, tappend151_out_gaa(T218, X431, X432)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T218, T216, T217)), T145, node(node(nil, T145, nil), T146, node(X432, T216, T217)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T234, T232, T233)), T145, node(node(nil, T145, nil), T146, node(X432, T232, T233))) → U9_gaa(T145, T146, T234, T232, T233, X432, tappend151_in_gaa(T234, X431, X432))
U9_gaa(T145, T146, T234, T232, T233, X432, tappend151_out_gaa(T234, X431, X432)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T234, T232, T233)), T145, node(node(nil, T145, nil), T146, node(X432, T232, T233)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X489))) → U10_gaa(T145, T146, X489, tappend151_in_gaa(nil, X486, X489))
U10_gaa(T145, T146, X489, tappend151_out_gaa(nil, X486, X489)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X489)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T249, T250, T252)), T145, node(node(nil, T145, nil), T146, node(T249, T250, X489))) → U11_gaa(T145, T146, T249, T250, T252, X489, tappend151_in_gaa(T252, X486, X489))
U11_gaa(T145, T146, T249, T250, T252, X489, tappend151_out_gaa(T252, X486, X489)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T249, T250, T252)), T145, node(node(nil, T145, nil), T146, node(T249, T250, X489)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T265, T266, T268)), T145, node(node(nil, T145, nil), T146, node(T265, T266, X489))) → U12_gaa(T145, T146, T265, T266, T268, X489, tappend151_in_gaa(T268, X486, X489))
U12_gaa(T145, T146, T265, T266, T268, X489, tappend151_out_gaa(T268, X486, X489)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T265, T266, T268)), T145, node(node(nil, T145, nil), T146, node(T265, T266, X489)))
U6_gaa(T126, T124, T125, T127, X217, tappend38_out_gaa(T126, T127, X217)) → tappend38_out_gaa(node(T126, T124, T125), T127, node(X217, T124, T125))
U5_gaa(T107, T105, T106, T108, X217, tappend38_out_gaa(T107, T108, X217)) → tappend38_out_gaa(node(T107, T105, T106), T108, node(X217, T105, T106))
U4_gaa(T89, X217, tappend38_out_gaa(nil, T89, X217)) → tappend38_out_gaa(nil, T89, node(X217, nil, nil))
U4_aaa(T89, X217, tappend38_out_gaa(nil, T89, X217)) → tappend38_out_aaa(nil, T89, node(X217, nil, nil))
tappend38_in_aaa(node(T107, T105, T106), T108, node(X217, T105, T106)) → U5_aaa(T107, T105, T106, T108, X217, tappend38_in_aaa(T107, T108, X217))
tappend38_in_aaa(node(T126, T124, T125), T127, node(X217, T124, T125)) → U6_aaa(T126, T124, T125, T127, X217, tappend38_in_aaa(T126, T127, X217))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, X300)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, X300))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X313, nil, nil))) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X313, nil, nil)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(nil, T160, T161)), T145, node(node(nil, T145, nil), T146, node(X313, T160, T161))) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(nil, T160, T161)), T145, node(node(nil, T145, nil), T146, node(X313, T160, T161)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X370))) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X370)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T186, T187, nil)), T145, node(node(nil, T145, nil), T146, node(T186, T187, X370))) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T186, T187, nil)), T145, node(node(nil, T145, nil), T146, node(T186, T187, X370)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X432, nil, nil))) → U7_aaa(T145, T146, X432, tappend151_in_gaa(nil, X431, X432))
U7_aaa(T145, T146, X432, tappend151_out_gaa(nil, X431, X432)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X432, nil, nil)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T218, T216, T217)), T145, node(node(nil, T145, nil), T146, node(X432, T216, T217))) → U8_aaa(T145, T146, T218, T216, T217, X432, tappend151_in_aaa(T218, X431, X432))
tappend151_in_aaa(nil, X300, X300) → tappend151_out_aaa(nil, X300, X300)
tappend151_in_aaa(nil, X313, node(X313, nil, nil)) → tappend151_out_aaa(nil, X313, node(X313, nil, nil))
tappend151_in_aaa(node(nil, T160, T161), X313, node(X313, T160, T161)) → tappend151_out_aaa(node(nil, T160, T161), X313, node(X313, T160, T161))
tappend151_in_aaa(nil, X370, node(nil, nil, X370)) → tappend151_out_aaa(nil, X370, node(nil, nil, X370))
tappend151_in_aaa(node(T186, T187, nil), X370, node(T186, T187, X370)) → tappend151_out_aaa(node(T186, T187, nil), X370, node(T186, T187, X370))
tappend151_in_aaa(nil, X431, node(X432, nil, nil)) → U13_aaa(X431, X432, tappend151_in_gaa(nil, X431, X432))
U13_aaa(X431, X432, tappend151_out_gaa(nil, X431, X432)) → tappend151_out_aaa(nil, X431, node(X432, nil, nil))
tappend151_in_aaa(node(T218, T216, T217), X431, node(X432, T216, T217)) → U14_aaa(T218, T216, T217, X431, X432, tappend151_in_aaa(T218, X431, X432))
tappend151_in_aaa(node(T234, T232, T233), X431, node(X432, T232, T233)) → U15_aaa(T234, T232, T233, X431, X432, tappend151_in_aaa(T234, X431, X432))
tappend151_in_aaa(nil, nil, node(nil, nil, X489)) → U16_aaa(X489, tappend151_in_gaa(nil, X486, X489))
U16_aaa(X489, tappend151_out_gaa(nil, X486, X489)) → tappend151_out_aaa(nil, nil, node(nil, nil, X489))
tappend151_in_aaa(node(T249, T250, T252), T249, node(T249, T250, X489)) → U17_aaa(T249, T250, T252, X489, tappend151_in_aaa(T252, X486, X489))
tappend151_in_aaa(node(T265, T266, T268), T265, node(T265, T266, X489)) → U18_aaa(T265, T266, T268, X489, tappend151_in_aaa(T268, X486, X489))
U18_aaa(T265, T266, T268, X489, tappend151_out_aaa(T268, X486, X489)) → tappend151_out_aaa(node(T265, T266, T268), T265, node(T265, T266, X489))
U17_aaa(T249, T250, T252, X489, tappend151_out_aaa(T252, X486, X489)) → tappend151_out_aaa(node(T249, T250, T252), T249, node(T249, T250, X489))
U15_aaa(T234, T232, T233, X431, X432, tappend151_out_aaa(T234, X431, X432)) → tappend151_out_aaa(node(T234, T232, T233), X431, node(X432, T232, T233))
U14_aaa(T218, T216, T217, X431, X432, tappend151_out_aaa(T218, X431, X432)) → tappend151_out_aaa(node(T218, T216, T217), X431, node(X432, T216, T217))
U8_aaa(T145, T146, T218, T216, T217, X432, tappend151_out_aaa(T218, X431, X432)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T218, T216, T217)), T145, node(node(nil, T145, nil), T146, node(X432, T216, T217)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T234, T232, T233)), T145, node(node(nil, T145, nil), T146, node(X432, T232, T233))) → U9_aaa(T145, T146, T234, T232, T233, X432, tappend151_in_aaa(T234, X431, X432))
U9_aaa(T145, T146, T234, T232, T233, X432, tappend151_out_aaa(T234, X431, X432)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T234, T232, T233)), T145, node(node(nil, T145, nil), T146, node(X432, T232, T233)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X489))) → U10_aaa(T145, T146, X489, tappend151_in_gaa(nil, X486, X489))
U10_aaa(T145, T146, X489, tappend151_out_gaa(nil, X486, X489)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X489)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T249, T250, T252)), T145, node(node(nil, T145, nil), T146, node(T249, T250, X489))) → U11_aaa(T145, T146, T249, T250, T252, X489, tappend151_in_aaa(T252, X486, X489))
U11_aaa(T145, T146, T249, T250, T252, X489, tappend151_out_aaa(T252, X486, X489)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T249, T250, T252)), T145, node(node(nil, T145, nil), T146, node(T249, T250, X489)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T265, T266, T268)), T145, node(node(nil, T145, nil), T146, node(T265, T266, X489))) → U12_aaa(T145, T146, T265, T266, T268, X489, tappend151_in_aaa(T268, X486, X489))
U12_aaa(T145, T146, T265, T266, T268, X489, tappend151_out_aaa(T268, X486, X489)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T265, T266, T268)), T145, node(node(nil, T145, nil), T146, node(T265, T266, X489)))
U6_aaa(T126, T124, T125, T127, X217, tappend38_out_aaa(T126, T127, X217)) → tappend38_out_aaa(node(T126, T124, T125), T127, node(X217, T124, T125))
U5_aaa(T107, T105, T106, T108, X217, tappend38_out_aaa(T107, T108, X217)) → tappend38_out_aaa(node(T107, T105, T106), T108, node(X217, T105, T106))
U23_gaa(T7, T24, T25, tappend38_out_aaa(T23, T24, X81)) → goal1_out_gaa(T7, T24, T25)
goal1_in_gaa(T7, T24, T269) → U24_gaa(T7, T24, T269, s2t4_in_ga(T7, T23))
U24_gaa(T7, T24, T269, s2t4_out_ga(T7, T23)) → U25_gaa(T7, T24, T269, tappend38_in_aaa(T23, T24, node(nil, T269, nil)))
U25_gaa(T7, T24, T269, tappend38_out_aaa(T23, T24, node(nil, T269, nil))) → goal1_out_gaa(T7, T24, T269)
goal1_in_gaa(T7, T24, T274) → U26_gaa(T7, T24, T274, s2t4_in_ga(T7, T23))
U26_gaa(T7, T24, T274, s2t4_out_ga(T7, T23)) → U27_gaa(T7, T24, T274, tappend38_in_aaa(T23, T24, node(T275, T272, T273)))
U27_gaa(T7, T24, T274, tappend38_out_aaa(T23, T24, node(T275, T272, T273))) → U28_gaa(T7, T24, T274, tlast39_in_aa(T274, T275))
tlast39_in_aa(T269, node(nil, T269, nil)) → tlast39_out_aa(T269, node(nil, T269, nil))
tlast39_in_aa(T274, node(T275, T272, T273)) → U19_aa(T274, T275, T272, T273, tlast39_in_aa(T274, T275))
tlast39_in_aa(T280, node(T277, T278, T281)) → U20_aa(T280, T277, T278, T281, tlast39_in_aa(T280, T281))
U20_aa(T280, T277, T278, T281, tlast39_out_aa(T280, T281)) → tlast39_out_aa(T280, node(T277, T278, T281))
U19_aa(T274, T275, T272, T273, tlast39_out_aa(T274, T275)) → tlast39_out_aa(T274, node(T275, T272, T273))
U28_gaa(T7, T24, T274, tlast39_out_aa(T274, T275)) → goal1_out_gaa(T7, T24, T274)
goal1_in_gaa(T7, T24, T280) → U29_gaa(T7, T24, T280, s2t4_in_ga(T7, T23))
U29_gaa(T7, T24, T280, s2t4_out_ga(T7, T23)) → U30_gaa(T7, T24, T280, tappend38_in_aaa(T23, T24, node(T277, T278, T281)))
U30_gaa(T7, T24, T280, tappend38_out_aaa(T23, T24, node(T277, T278, T281))) → U31_gaa(T7, T24, T280, tlast39_in_aa(T280, T281))
U31_gaa(T7, T24, T280, tlast39_out_aa(T280, T281)) → goal1_out_gaa(T7, T24, T280)
Infinitary Constructor Rewriting Termination of PiTRS implies Termination of Prolog
goal1_in_gaa(T7, T10, T11) → U21_gaa(T7, T10, T11, s2t4_in_ga(T7, X21))
s2t4_in_ga(0, nil) → s2t4_out_ga(0, nil)
s2t4_in_ga(s(T14), node(X38, X39, X38)) → U1_ga(T14, X38, X39, s2t4_in_ga(T14, X38))
s2t4_in_ga(s(T16), node(nil, X52, X53)) → U2_ga(T16, X52, X53, s2t4_in_ga(T16, X53))
s2t4_in_ga(s(T18), node(X66, X67, nil)) → U3_ga(T18, X66, X67, s2t4_in_ga(T18, X66))
s2t4_in_ga(T19, node(nil, X74, nil)) → s2t4_out_ga(T19, node(nil, X74, nil))
U3_ga(T18, X66, X67, s2t4_out_ga(T18, X66)) → s2t4_out_ga(s(T18), node(X66, X67, nil))
U2_ga(T16, X52, X53, s2t4_out_ga(T16, X53)) → s2t4_out_ga(s(T16), node(nil, X52, X53))
U1_ga(T14, X38, X39, s2t4_out_ga(T14, X38)) → s2t4_out_ga(s(T14), node(X38, X39, X38))
U21_gaa(T7, T10, T11, s2t4_out_ga(T7, X21)) → goal1_out_gaa(T7, T10, T11)
goal1_in_gaa(T7, T24, T25) → U22_gaa(T7, T24, T25, s2t4_in_ga(T7, T23))
U22_gaa(T7, T24, T25, s2t4_out_ga(T7, T23)) → U23_gaa(T7, T24, T25, tappend38_in_aaa(T23, T24, X81))
tappend38_in_aaa(nil, T30, node(nil, T30, nil)) → tappend38_out_aaa(nil, T30, node(nil, T30, nil))
tappend38_in_aaa(nil, T32, node(node(nil, T32, nil), nil, nil)) → tappend38_out_aaa(nil, T32, node(node(nil, T32, nil), nil, nil))
tappend38_in_aaa(node(nil, T43, T44), T32, node(node(nil, T32, nil), T43, T44)) → tappend38_out_aaa(node(nil, T43, T44), T32, node(node(nil, T32, nil), T43, T44))
tappend38_in_aaa(nil, T57, node(nil, nil, node(nil, T57, nil))) → tappend38_out_aaa(nil, T57, node(nil, nil, node(nil, T57, nil)))
tappend38_in_aaa(node(T70, T71, nil), T57, node(T70, T71, node(nil, T57, nil))) → tappend38_out_aaa(node(T70, T71, nil), T57, node(T70, T71, node(nil, T57, nil)))
tappend38_in_aaa(nil, T89, node(X217, nil, nil)) → U4_aaa(T89, X217, tappend38_in_gaa(nil, T89, X217))
tappend38_in_gaa(nil, T30, node(nil, T30, nil)) → tappend38_out_gaa(nil, T30, node(nil, T30, nil))
tappend38_in_gaa(nil, T32, node(node(nil, T32, nil), nil, nil)) → tappend38_out_gaa(nil, T32, node(node(nil, T32, nil), nil, nil))
tappend38_in_gaa(node(nil, T43, T44), T32, node(node(nil, T32, nil), T43, T44)) → tappend38_out_gaa(node(nil, T43, T44), T32, node(node(nil, T32, nil), T43, T44))
tappend38_in_gaa(nil, T57, node(nil, nil, node(nil, T57, nil))) → tappend38_out_gaa(nil, T57, node(nil, nil, node(nil, T57, nil)))
tappend38_in_gaa(node(T70, T71, nil), T57, node(T70, T71, node(nil, T57, nil))) → tappend38_out_gaa(node(T70, T71, nil), T57, node(T70, T71, node(nil, T57, nil)))
tappend38_in_gaa(nil, T89, node(X217, nil, nil)) → U4_gaa(T89, X217, tappend38_in_gaa(nil, T89, X217))
tappend38_in_gaa(node(T107, T105, T106), T108, node(X217, T105, T106)) → U5_gaa(T107, T105, T106, T108, X217, tappend38_in_gaa(T107, T108, X217))
tappend38_in_gaa(node(T126, T124, T125), T127, node(X217, T124, T125)) → U6_gaa(T126, T124, T125, T127, X217, tappend38_in_gaa(T126, T127, X217))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, X300)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, X300))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X313, nil, nil))) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X313, nil, nil)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(nil, T160, T161)), T145, node(node(nil, T145, nil), T146, node(X313, T160, T161))) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(nil, T160, T161)), T145, node(node(nil, T145, nil), T146, node(X313, T160, T161)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X370))) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X370)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T186, T187, nil)), T145, node(node(nil, T145, nil), T146, node(T186, T187, X370))) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T186, T187, nil)), T145, node(node(nil, T145, nil), T146, node(T186, T187, X370)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X432, nil, nil))) → U7_gaa(T145, T146, X432, tappend151_in_gaa(nil, X431, X432))
tappend151_in_gaa(nil, X300, X300) → tappend151_out_gaa(nil, X300, X300)
tappend151_in_gaa(nil, X313, node(X313, nil, nil)) → tappend151_out_gaa(nil, X313, node(X313, nil, nil))
tappend151_in_gaa(node(nil, T160, T161), X313, node(X313, T160, T161)) → tappend151_out_gaa(node(nil, T160, T161), X313, node(X313, T160, T161))
tappend151_in_gaa(nil, X370, node(nil, nil, X370)) → tappend151_out_gaa(nil, X370, node(nil, nil, X370))
tappend151_in_gaa(node(T186, T187, nil), X370, node(T186, T187, X370)) → tappend151_out_gaa(node(T186, T187, nil), X370, node(T186, T187, X370))
tappend151_in_gaa(nil, X431, node(X432, nil, nil)) → U13_gaa(X431, X432, tappend151_in_gaa(nil, X431, X432))
tappend151_in_gaa(node(T218, T216, T217), X431, node(X432, T216, T217)) → U14_gaa(T218, T216, T217, X431, X432, tappend151_in_gaa(T218, X431, X432))
tappend151_in_gaa(node(T234, T232, T233), X431, node(X432, T232, T233)) → U15_gaa(T234, T232, T233, X431, X432, tappend151_in_gaa(T234, X431, X432))
tappend151_in_gaa(nil, nil, node(nil, nil, X489)) → U16_gaa(X489, tappend151_in_gaa(nil, X486, X489))
tappend151_in_gaa(node(T249, T250, T252), T249, node(T249, T250, X489)) → U17_gaa(T249, T250, T252, X489, tappend151_in_gaa(T252, X486, X489))
tappend151_in_gaa(node(T265, T266, T268), T265, node(T265, T266, X489)) → U18_gaa(T265, T266, T268, X489, tappend151_in_gaa(T268, X486, X489))
U18_gaa(T265, T266, T268, X489, tappend151_out_gaa(T268, X486, X489)) → tappend151_out_gaa(node(T265, T266, T268), T265, node(T265, T266, X489))
U17_gaa(T249, T250, T252, X489, tappend151_out_gaa(T252, X486, X489)) → tappend151_out_gaa(node(T249, T250, T252), T249, node(T249, T250, X489))
U16_gaa(X489, tappend151_out_gaa(nil, X486, X489)) → tappend151_out_gaa(nil, nil, node(nil, nil, X489))
U15_gaa(T234, T232, T233, X431, X432, tappend151_out_gaa(T234, X431, X432)) → tappend151_out_gaa(node(T234, T232, T233), X431, node(X432, T232, T233))
U14_gaa(T218, T216, T217, X431, X432, tappend151_out_gaa(T218, X431, X432)) → tappend151_out_gaa(node(T218, T216, T217), X431, node(X432, T216, T217))
U13_gaa(X431, X432, tappend151_out_gaa(nil, X431, X432)) → tappend151_out_gaa(nil, X431, node(X432, nil, nil))
U7_gaa(T145, T146, X432, tappend151_out_gaa(nil, X431, X432)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X432, nil, nil)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T218, T216, T217)), T145, node(node(nil, T145, nil), T146, node(X432, T216, T217))) → U8_gaa(T145, T146, T218, T216, T217, X432, tappend151_in_gaa(T218, X431, X432))
U8_gaa(T145, T146, T218, T216, T217, X432, tappend151_out_gaa(T218, X431, X432)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T218, T216, T217)), T145, node(node(nil, T145, nil), T146, node(X432, T216, T217)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T234, T232, T233)), T145, node(node(nil, T145, nil), T146, node(X432, T232, T233))) → U9_gaa(T145, T146, T234, T232, T233, X432, tappend151_in_gaa(T234, X431, X432))
U9_gaa(T145, T146, T234, T232, T233, X432, tappend151_out_gaa(T234, X431, X432)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T234, T232, T233)), T145, node(node(nil, T145, nil), T146, node(X432, T232, T233)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X489))) → U10_gaa(T145, T146, X489, tappend151_in_gaa(nil, X486, X489))
U10_gaa(T145, T146, X489, tappend151_out_gaa(nil, X486, X489)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X489)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T249, T250, T252)), T145, node(node(nil, T145, nil), T146, node(T249, T250, X489))) → U11_gaa(T145, T146, T249, T250, T252, X489, tappend151_in_gaa(T252, X486, X489))
U11_gaa(T145, T146, T249, T250, T252, X489, tappend151_out_gaa(T252, X486, X489)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T249, T250, T252)), T145, node(node(nil, T145, nil), T146, node(T249, T250, X489)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T265, T266, T268)), T145, node(node(nil, T145, nil), T146, node(T265, T266, X489))) → U12_gaa(T145, T146, T265, T266, T268, X489, tappend151_in_gaa(T268, X486, X489))
U12_gaa(T145, T146, T265, T266, T268, X489, tappend151_out_gaa(T268, X486, X489)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T265, T266, T268)), T145, node(node(nil, T145, nil), T146, node(T265, T266, X489)))
U6_gaa(T126, T124, T125, T127, X217, tappend38_out_gaa(T126, T127, X217)) → tappend38_out_gaa(node(T126, T124, T125), T127, node(X217, T124, T125))
U5_gaa(T107, T105, T106, T108, X217, tappend38_out_gaa(T107, T108, X217)) → tappend38_out_gaa(node(T107, T105, T106), T108, node(X217, T105, T106))
U4_gaa(T89, X217, tappend38_out_gaa(nil, T89, X217)) → tappend38_out_gaa(nil, T89, node(X217, nil, nil))
U4_aaa(T89, X217, tappend38_out_gaa(nil, T89, X217)) → tappend38_out_aaa(nil, T89, node(X217, nil, nil))
tappend38_in_aaa(node(T107, T105, T106), T108, node(X217, T105, T106)) → U5_aaa(T107, T105, T106, T108, X217, tappend38_in_aaa(T107, T108, X217))
tappend38_in_aaa(node(T126, T124, T125), T127, node(X217, T124, T125)) → U6_aaa(T126, T124, T125, T127, X217, tappend38_in_aaa(T126, T127, X217))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, X300)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, X300))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X313, nil, nil))) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X313, nil, nil)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(nil, T160, T161)), T145, node(node(nil, T145, nil), T146, node(X313, T160, T161))) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(nil, T160, T161)), T145, node(node(nil, T145, nil), T146, node(X313, T160, T161)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X370))) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X370)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T186, T187, nil)), T145, node(node(nil, T145, nil), T146, node(T186, T187, X370))) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T186, T187, nil)), T145, node(node(nil, T145, nil), T146, node(T186, T187, X370)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X432, nil, nil))) → U7_aaa(T145, T146, X432, tappend151_in_gaa(nil, X431, X432))
U7_aaa(T145, T146, X432, tappend151_out_gaa(nil, X431, X432)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X432, nil, nil)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T218, T216, T217)), T145, node(node(nil, T145, nil), T146, node(X432, T216, T217))) → U8_aaa(T145, T146, T218, T216, T217, X432, tappend151_in_aaa(T218, X431, X432))
tappend151_in_aaa(nil, X300, X300) → tappend151_out_aaa(nil, X300, X300)
tappend151_in_aaa(nil, X313, node(X313, nil, nil)) → tappend151_out_aaa(nil, X313, node(X313, nil, nil))
tappend151_in_aaa(node(nil, T160, T161), X313, node(X313, T160, T161)) → tappend151_out_aaa(node(nil, T160, T161), X313, node(X313, T160, T161))
tappend151_in_aaa(nil, X370, node(nil, nil, X370)) → tappend151_out_aaa(nil, X370, node(nil, nil, X370))
tappend151_in_aaa(node(T186, T187, nil), X370, node(T186, T187, X370)) → tappend151_out_aaa(node(T186, T187, nil), X370, node(T186, T187, X370))
tappend151_in_aaa(nil, X431, node(X432, nil, nil)) → U13_aaa(X431, X432, tappend151_in_gaa(nil, X431, X432))
U13_aaa(X431, X432, tappend151_out_gaa(nil, X431, X432)) → tappend151_out_aaa(nil, X431, node(X432, nil, nil))
tappend151_in_aaa(node(T218, T216, T217), X431, node(X432, T216, T217)) → U14_aaa(T218, T216, T217, X431, X432, tappend151_in_aaa(T218, X431, X432))
tappend151_in_aaa(node(T234, T232, T233), X431, node(X432, T232, T233)) → U15_aaa(T234, T232, T233, X431, X432, tappend151_in_aaa(T234, X431, X432))
tappend151_in_aaa(nil, nil, node(nil, nil, X489)) → U16_aaa(X489, tappend151_in_gaa(nil, X486, X489))
U16_aaa(X489, tappend151_out_gaa(nil, X486, X489)) → tappend151_out_aaa(nil, nil, node(nil, nil, X489))
tappend151_in_aaa(node(T249, T250, T252), T249, node(T249, T250, X489)) → U17_aaa(T249, T250, T252, X489, tappend151_in_aaa(T252, X486, X489))
tappend151_in_aaa(node(T265, T266, T268), T265, node(T265, T266, X489)) → U18_aaa(T265, T266, T268, X489, tappend151_in_aaa(T268, X486, X489))
U18_aaa(T265, T266, T268, X489, tappend151_out_aaa(T268, X486, X489)) → tappend151_out_aaa(node(T265, T266, T268), T265, node(T265, T266, X489))
U17_aaa(T249, T250, T252, X489, tappend151_out_aaa(T252, X486, X489)) → tappend151_out_aaa(node(T249, T250, T252), T249, node(T249, T250, X489))
U15_aaa(T234, T232, T233, X431, X432, tappend151_out_aaa(T234, X431, X432)) → tappend151_out_aaa(node(T234, T232, T233), X431, node(X432, T232, T233))
U14_aaa(T218, T216, T217, X431, X432, tappend151_out_aaa(T218, X431, X432)) → tappend151_out_aaa(node(T218, T216, T217), X431, node(X432, T216, T217))
U8_aaa(T145, T146, T218, T216, T217, X432, tappend151_out_aaa(T218, X431, X432)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T218, T216, T217)), T145, node(node(nil, T145, nil), T146, node(X432, T216, T217)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T234, T232, T233)), T145, node(node(nil, T145, nil), T146, node(X432, T232, T233))) → U9_aaa(T145, T146, T234, T232, T233, X432, tappend151_in_aaa(T234, X431, X432))
U9_aaa(T145, T146, T234, T232, T233, X432, tappend151_out_aaa(T234, X431, X432)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T234, T232, T233)), T145, node(node(nil, T145, nil), T146, node(X432, T232, T233)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X489))) → U10_aaa(T145, T146, X489, tappend151_in_gaa(nil, X486, X489))
U10_aaa(T145, T146, X489, tappend151_out_gaa(nil, X486, X489)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X489)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T249, T250, T252)), T145, node(node(nil, T145, nil), T146, node(T249, T250, X489))) → U11_aaa(T145, T146, T249, T250, T252, X489, tappend151_in_aaa(T252, X486, X489))
U11_aaa(T145, T146, T249, T250, T252, X489, tappend151_out_aaa(T252, X486, X489)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T249, T250, T252)), T145, node(node(nil, T145, nil), T146, node(T249, T250, X489)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T265, T266, T268)), T145, node(node(nil, T145, nil), T146, node(T265, T266, X489))) → U12_aaa(T145, T146, T265, T266, T268, X489, tappend151_in_aaa(T268, X486, X489))
U12_aaa(T145, T146, T265, T266, T268, X489, tappend151_out_aaa(T268, X486, X489)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T265, T266, T268)), T145, node(node(nil, T145, nil), T146, node(T265, T266, X489)))
U6_aaa(T126, T124, T125, T127, X217, tappend38_out_aaa(T126, T127, X217)) → tappend38_out_aaa(node(T126, T124, T125), T127, node(X217, T124, T125))
U5_aaa(T107, T105, T106, T108, X217, tappend38_out_aaa(T107, T108, X217)) → tappend38_out_aaa(node(T107, T105, T106), T108, node(X217, T105, T106))
U23_gaa(T7, T24, T25, tappend38_out_aaa(T23, T24, X81)) → goal1_out_gaa(T7, T24, T25)
goal1_in_gaa(T7, T24, T269) → U24_gaa(T7, T24, T269, s2t4_in_ga(T7, T23))
U24_gaa(T7, T24, T269, s2t4_out_ga(T7, T23)) → U25_gaa(T7, T24, T269, tappend38_in_aaa(T23, T24, node(nil, T269, nil)))
U25_gaa(T7, T24, T269, tappend38_out_aaa(T23, T24, node(nil, T269, nil))) → goal1_out_gaa(T7, T24, T269)
goal1_in_gaa(T7, T24, T274) → U26_gaa(T7, T24, T274, s2t4_in_ga(T7, T23))
U26_gaa(T7, T24, T274, s2t4_out_ga(T7, T23)) → U27_gaa(T7, T24, T274, tappend38_in_aaa(T23, T24, node(T275, T272, T273)))
U27_gaa(T7, T24, T274, tappend38_out_aaa(T23, T24, node(T275, T272, T273))) → U28_gaa(T7, T24, T274, tlast39_in_aa(T274, T275))
tlast39_in_aa(T269, node(nil, T269, nil)) → tlast39_out_aa(T269, node(nil, T269, nil))
tlast39_in_aa(T274, node(T275, T272, T273)) → U19_aa(T274, T275, T272, T273, tlast39_in_aa(T274, T275))
tlast39_in_aa(T280, node(T277, T278, T281)) → U20_aa(T280, T277, T278, T281, tlast39_in_aa(T280, T281))
U20_aa(T280, T277, T278, T281, tlast39_out_aa(T280, T281)) → tlast39_out_aa(T280, node(T277, T278, T281))
U19_aa(T274, T275, T272, T273, tlast39_out_aa(T274, T275)) → tlast39_out_aa(T274, node(T275, T272, T273))
U28_gaa(T7, T24, T274, tlast39_out_aa(T274, T275)) → goal1_out_gaa(T7, T24, T274)
goal1_in_gaa(T7, T24, T280) → U29_gaa(T7, T24, T280, s2t4_in_ga(T7, T23))
U29_gaa(T7, T24, T280, s2t4_out_ga(T7, T23)) → U30_gaa(T7, T24, T280, tappend38_in_aaa(T23, T24, node(T277, T278, T281)))
U30_gaa(T7, T24, T280, tappend38_out_aaa(T23, T24, node(T277, T278, T281))) → U31_gaa(T7, T24, T280, tlast39_in_aa(T280, T281))
U31_gaa(T7, T24, T280, tlast39_out_aa(T280, T281)) → goal1_out_gaa(T7, T24, T280)
GOAL1_IN_GAA(T7, T10, T11) → U21_GAA(T7, T10, T11, s2t4_in_ga(T7, X21))
GOAL1_IN_GAA(T7, T10, T11) → S2T4_IN_GA(T7, X21)
S2T4_IN_GA(s(T14), node(X38, X39, X38)) → U1_GA(T14, X38, X39, s2t4_in_ga(T14, X38))
S2T4_IN_GA(s(T14), node(X38, X39, X38)) → S2T4_IN_GA(T14, X38)
S2T4_IN_GA(s(T16), node(nil, X52, X53)) → U2_GA(T16, X52, X53, s2t4_in_ga(T16, X53))
S2T4_IN_GA(s(T16), node(nil, X52, X53)) → S2T4_IN_GA(T16, X53)
S2T4_IN_GA(s(T18), node(X66, X67, nil)) → U3_GA(T18, X66, X67, s2t4_in_ga(T18, X66))
S2T4_IN_GA(s(T18), node(X66, X67, nil)) → S2T4_IN_GA(T18, X66)
GOAL1_IN_GAA(T7, T24, T25) → U22_GAA(T7, T24, T25, s2t4_in_ga(T7, T23))
U22_GAA(T7, T24, T25, s2t4_out_ga(T7, T23)) → U23_GAA(T7, T24, T25, tappend38_in_aaa(T23, T24, X81))
U22_GAA(T7, T24, T25, s2t4_out_ga(T7, T23)) → TAPPEND38_IN_AAA(T23, T24, X81)
TAPPEND38_IN_AAA(nil, T89, node(X217, nil, nil)) → U4_AAA(T89, X217, tappend38_in_gaa(nil, T89, X217))
TAPPEND38_IN_AAA(nil, T89, node(X217, nil, nil)) → TAPPEND38_IN_GAA(nil, T89, X217)
TAPPEND38_IN_GAA(nil, T89, node(X217, nil, nil)) → U4_GAA(T89, X217, tappend38_in_gaa(nil, T89, X217))
TAPPEND38_IN_GAA(nil, T89, node(X217, nil, nil)) → TAPPEND38_IN_GAA(nil, T89, X217)
TAPPEND38_IN_GAA(node(T107, T105, T106), T108, node(X217, T105, T106)) → U5_GAA(T107, T105, T106, T108, X217, tappend38_in_gaa(T107, T108, X217))
TAPPEND38_IN_GAA(node(T107, T105, T106), T108, node(X217, T105, T106)) → TAPPEND38_IN_GAA(T107, T108, X217)
TAPPEND38_IN_GAA(node(T126, T124, T125), T127, node(X217, T124, T125)) → U6_GAA(T126, T124, T125, T127, X217, tappend38_in_gaa(T126, T127, X217))
TAPPEND38_IN_GAA(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X432, nil, nil))) → U7_GAA(T145, T146, X432, tappend151_in_gaa(nil, X431, X432))
TAPPEND38_IN_GAA(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X432, nil, nil))) → TAPPEND151_IN_GAA(nil, X431, X432)
TAPPEND151_IN_GAA(nil, X431, node(X432, nil, nil)) → U13_GAA(X431, X432, tappend151_in_gaa(nil, X431, X432))
TAPPEND151_IN_GAA(nil, X431, node(X432, nil, nil)) → TAPPEND151_IN_GAA(nil, X431, X432)
TAPPEND151_IN_GAA(node(T218, T216, T217), X431, node(X432, T216, T217)) → U14_GAA(T218, T216, T217, X431, X432, tappend151_in_gaa(T218, X431, X432))
TAPPEND151_IN_GAA(node(T218, T216, T217), X431, node(X432, T216, T217)) → TAPPEND151_IN_GAA(T218, X431, X432)
TAPPEND151_IN_GAA(node(T234, T232, T233), X431, node(X432, T232, T233)) → U15_GAA(T234, T232, T233, X431, X432, tappend151_in_gaa(T234, X431, X432))
TAPPEND151_IN_GAA(nil, nil, node(nil, nil, X489)) → U16_GAA(X489, tappend151_in_gaa(nil, X486, X489))
TAPPEND151_IN_GAA(nil, nil, node(nil, nil, X489)) → TAPPEND151_IN_GAA(nil, X486, X489)
TAPPEND151_IN_GAA(node(T249, T250, T252), T249, node(T249, T250, X489)) → U17_GAA(T249, T250, T252, X489, tappend151_in_gaa(T252, X486, X489))
TAPPEND151_IN_GAA(node(T249, T250, T252), T249, node(T249, T250, X489)) → TAPPEND151_IN_GAA(T252, X486, X489)
TAPPEND151_IN_GAA(node(T265, T266, T268), T265, node(T265, T266, X489)) → U18_GAA(T265, T266, T268, X489, tappend151_in_gaa(T268, X486, X489))
TAPPEND38_IN_GAA(node(node(nil, T145, nil), T146, node(T218, T216, T217)), T145, node(node(nil, T145, nil), T146, node(X432, T216, T217))) → U8_GAA(T145, T146, T218, T216, T217, X432, tappend151_in_gaa(T218, X431, X432))
TAPPEND38_IN_GAA(node(node(nil, T145, nil), T146, node(T218, T216, T217)), T145, node(node(nil, T145, nil), T146, node(X432, T216, T217))) → TAPPEND151_IN_GAA(T218, X431, X432)
TAPPEND38_IN_GAA(node(node(nil, T145, nil), T146, node(T234, T232, T233)), T145, node(node(nil, T145, nil), T146, node(X432, T232, T233))) → U9_GAA(T145, T146, T234, T232, T233, X432, tappend151_in_gaa(T234, X431, X432))
TAPPEND38_IN_GAA(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X489))) → U10_GAA(T145, T146, X489, tappend151_in_gaa(nil, X486, X489))
TAPPEND38_IN_GAA(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X489))) → TAPPEND151_IN_GAA(nil, X486, X489)
TAPPEND38_IN_GAA(node(node(nil, T145, nil), T146, node(T249, T250, T252)), T145, node(node(nil, T145, nil), T146, node(T249, T250, X489))) → U11_GAA(T145, T146, T249, T250, T252, X489, tappend151_in_gaa(T252, X486, X489))
TAPPEND38_IN_GAA(node(node(nil, T145, nil), T146, node(T249, T250, T252)), T145, node(node(nil, T145, nil), T146, node(T249, T250, X489))) → TAPPEND151_IN_GAA(T252, X486, X489)
TAPPEND38_IN_GAA(node(node(nil, T145, nil), T146, node(T265, T266, T268)), T145, node(node(nil, T145, nil), T146, node(T265, T266, X489))) → U12_GAA(T145, T146, T265, T266, T268, X489, tappend151_in_gaa(T268, X486, X489))
TAPPEND38_IN_AAA(node(T107, T105, T106), T108, node(X217, T105, T106)) → U5_AAA(T107, T105, T106, T108, X217, tappend38_in_aaa(T107, T108, X217))
TAPPEND38_IN_AAA(node(T107, T105, T106), T108, node(X217, T105, T106)) → TAPPEND38_IN_AAA(T107, T108, X217)
TAPPEND38_IN_AAA(node(T126, T124, T125), T127, node(X217, T124, T125)) → U6_AAA(T126, T124, T125, T127, X217, tappend38_in_aaa(T126, T127, X217))
TAPPEND38_IN_AAA(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X432, nil, nil))) → U7_AAA(T145, T146, X432, tappend151_in_gaa(nil, X431, X432))
TAPPEND38_IN_AAA(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X432, nil, nil))) → TAPPEND151_IN_GAA(nil, X431, X432)
TAPPEND38_IN_AAA(node(node(nil, T145, nil), T146, node(T218, T216, T217)), T145, node(node(nil, T145, nil), T146, node(X432, T216, T217))) → U8_AAA(T145, T146, T218, T216, T217, X432, tappend151_in_aaa(T218, X431, X432))
TAPPEND38_IN_AAA(node(node(nil, T145, nil), T146, node(T218, T216, T217)), T145, node(node(nil, T145, nil), T146, node(X432, T216, T217))) → TAPPEND151_IN_AAA(T218, X431, X432)
TAPPEND151_IN_AAA(nil, X431, node(X432, nil, nil)) → U13_AAA(X431, X432, tappend151_in_gaa(nil, X431, X432))
TAPPEND151_IN_AAA(nil, X431, node(X432, nil, nil)) → TAPPEND151_IN_GAA(nil, X431, X432)
TAPPEND151_IN_AAA(node(T218, T216, T217), X431, node(X432, T216, T217)) → U14_AAA(T218, T216, T217, X431, X432, tappend151_in_aaa(T218, X431, X432))
TAPPEND151_IN_AAA(node(T218, T216, T217), X431, node(X432, T216, T217)) → TAPPEND151_IN_AAA(T218, X431, X432)
TAPPEND151_IN_AAA(node(T234, T232, T233), X431, node(X432, T232, T233)) → U15_AAA(T234, T232, T233, X431, X432, tappend151_in_aaa(T234, X431, X432))
TAPPEND151_IN_AAA(nil, nil, node(nil, nil, X489)) → U16_AAA(X489, tappend151_in_gaa(nil, X486, X489))
TAPPEND151_IN_AAA(nil, nil, node(nil, nil, X489)) → TAPPEND151_IN_GAA(nil, X486, X489)
TAPPEND151_IN_AAA(node(T249, T250, T252), T249, node(T249, T250, X489)) → U17_AAA(T249, T250, T252, X489, tappend151_in_aaa(T252, X486, X489))
TAPPEND151_IN_AAA(node(T249, T250, T252), T249, node(T249, T250, X489)) → TAPPEND151_IN_AAA(T252, X486, X489)
TAPPEND151_IN_AAA(node(T265, T266, T268), T265, node(T265, T266, X489)) → U18_AAA(T265, T266, T268, X489, tappend151_in_aaa(T268, X486, X489))
TAPPEND38_IN_AAA(node(node(nil, T145, nil), T146, node(T234, T232, T233)), T145, node(node(nil, T145, nil), T146, node(X432, T232, T233))) → U9_AAA(T145, T146, T234, T232, T233, X432, tappend151_in_aaa(T234, X431, X432))
TAPPEND38_IN_AAA(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X489))) → U10_AAA(T145, T146, X489, tappend151_in_gaa(nil, X486, X489))
TAPPEND38_IN_AAA(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X489))) → TAPPEND151_IN_GAA(nil, X486, X489)
TAPPEND38_IN_AAA(node(node(nil, T145, nil), T146, node(T249, T250, T252)), T145, node(node(nil, T145, nil), T146, node(T249, T250, X489))) → U11_AAA(T145, T146, T249, T250, T252, X489, tappend151_in_aaa(T252, X486, X489))
TAPPEND38_IN_AAA(node(node(nil, T145, nil), T146, node(T249, T250, T252)), T145, node(node(nil, T145, nil), T146, node(T249, T250, X489))) → TAPPEND151_IN_AAA(T252, X486, X489)
TAPPEND38_IN_AAA(node(node(nil, T145, nil), T146, node(T265, T266, T268)), T145, node(node(nil, T145, nil), T146, node(T265, T266, X489))) → U12_AAA(T145, T146, T265, T266, T268, X489, tappend151_in_aaa(T268, X486, X489))
GOAL1_IN_GAA(T7, T24, T269) → U24_GAA(T7, T24, T269, s2t4_in_ga(T7, T23))
U24_GAA(T7, T24, T269, s2t4_out_ga(T7, T23)) → U25_GAA(T7, T24, T269, tappend38_in_aaa(T23, T24, node(nil, T269, nil)))
U24_GAA(T7, T24, T269, s2t4_out_ga(T7, T23)) → TAPPEND38_IN_AAA(T23, T24, node(nil, T269, nil))
GOAL1_IN_GAA(T7, T24, T274) → U26_GAA(T7, T24, T274, s2t4_in_ga(T7, T23))
U26_GAA(T7, T24, T274, s2t4_out_ga(T7, T23)) → U27_GAA(T7, T24, T274, tappend38_in_aaa(T23, T24, node(T275, T272, T273)))
U26_GAA(T7, T24, T274, s2t4_out_ga(T7, T23)) → TAPPEND38_IN_AAA(T23, T24, node(T275, T272, T273))
U27_GAA(T7, T24, T274, tappend38_out_aaa(T23, T24, node(T275, T272, T273))) → U28_GAA(T7, T24, T274, tlast39_in_aa(T274, T275))
U27_GAA(T7, T24, T274, tappend38_out_aaa(T23, T24, node(T275, T272, T273))) → TLAST39_IN_AA(T274, T275)
TLAST39_IN_AA(T274, node(T275, T272, T273)) → U19_AA(T274, T275, T272, T273, tlast39_in_aa(T274, T275))
TLAST39_IN_AA(T274, node(T275, T272, T273)) → TLAST39_IN_AA(T274, T275)
TLAST39_IN_AA(T280, node(T277, T278, T281)) → U20_AA(T280, T277, T278, T281, tlast39_in_aa(T280, T281))
TLAST39_IN_AA(T280, node(T277, T278, T281)) → TLAST39_IN_AA(T280, T281)
GOAL1_IN_GAA(T7, T24, T280) → U29_GAA(T7, T24, T280, s2t4_in_ga(T7, T23))
U29_GAA(T7, T24, T280, s2t4_out_ga(T7, T23)) → U30_GAA(T7, T24, T280, tappend38_in_aaa(T23, T24, node(T277, T278, T281)))
U29_GAA(T7, T24, T280, s2t4_out_ga(T7, T23)) → TAPPEND38_IN_AAA(T23, T24, node(T277, T278, T281))
U30_GAA(T7, T24, T280, tappend38_out_aaa(T23, T24, node(T277, T278, T281))) → U31_GAA(T7, T24, T280, tlast39_in_aa(T280, T281))
U30_GAA(T7, T24, T280, tappend38_out_aaa(T23, T24, node(T277, T278, T281))) → TLAST39_IN_AA(T280, T281)
goal1_in_gaa(T7, T10, T11) → U21_gaa(T7, T10, T11, s2t4_in_ga(T7, X21))
s2t4_in_ga(0, nil) → s2t4_out_ga(0, nil)
s2t4_in_ga(s(T14), node(X38, X39, X38)) → U1_ga(T14, X38, X39, s2t4_in_ga(T14, X38))
s2t4_in_ga(s(T16), node(nil, X52, X53)) → U2_ga(T16, X52, X53, s2t4_in_ga(T16, X53))
s2t4_in_ga(s(T18), node(X66, X67, nil)) → U3_ga(T18, X66, X67, s2t4_in_ga(T18, X66))
s2t4_in_ga(T19, node(nil, X74, nil)) → s2t4_out_ga(T19, node(nil, X74, nil))
U3_ga(T18, X66, X67, s2t4_out_ga(T18, X66)) → s2t4_out_ga(s(T18), node(X66, X67, nil))
U2_ga(T16, X52, X53, s2t4_out_ga(T16, X53)) → s2t4_out_ga(s(T16), node(nil, X52, X53))
U1_ga(T14, X38, X39, s2t4_out_ga(T14, X38)) → s2t4_out_ga(s(T14), node(X38, X39, X38))
U21_gaa(T7, T10, T11, s2t4_out_ga(T7, X21)) → goal1_out_gaa(T7, T10, T11)
goal1_in_gaa(T7, T24, T25) → U22_gaa(T7, T24, T25, s2t4_in_ga(T7, T23))
U22_gaa(T7, T24, T25, s2t4_out_ga(T7, T23)) → U23_gaa(T7, T24, T25, tappend38_in_aaa(T23, T24, X81))
tappend38_in_aaa(nil, T30, node(nil, T30, nil)) → tappend38_out_aaa(nil, T30, node(nil, T30, nil))
tappend38_in_aaa(nil, T32, node(node(nil, T32, nil), nil, nil)) → tappend38_out_aaa(nil, T32, node(node(nil, T32, nil), nil, nil))
tappend38_in_aaa(node(nil, T43, T44), T32, node(node(nil, T32, nil), T43, T44)) → tappend38_out_aaa(node(nil, T43, T44), T32, node(node(nil, T32, nil), T43, T44))
tappend38_in_aaa(nil, T57, node(nil, nil, node(nil, T57, nil))) → tappend38_out_aaa(nil, T57, node(nil, nil, node(nil, T57, nil)))
tappend38_in_aaa(node(T70, T71, nil), T57, node(T70, T71, node(nil, T57, nil))) → tappend38_out_aaa(node(T70, T71, nil), T57, node(T70, T71, node(nil, T57, nil)))
tappend38_in_aaa(nil, T89, node(X217, nil, nil)) → U4_aaa(T89, X217, tappend38_in_gaa(nil, T89, X217))
tappend38_in_gaa(nil, T30, node(nil, T30, nil)) → tappend38_out_gaa(nil, T30, node(nil, T30, nil))
tappend38_in_gaa(nil, T32, node(node(nil, T32, nil), nil, nil)) → tappend38_out_gaa(nil, T32, node(node(nil, T32, nil), nil, nil))
tappend38_in_gaa(node(nil, T43, T44), T32, node(node(nil, T32, nil), T43, T44)) → tappend38_out_gaa(node(nil, T43, T44), T32, node(node(nil, T32, nil), T43, T44))
tappend38_in_gaa(nil, T57, node(nil, nil, node(nil, T57, nil))) → tappend38_out_gaa(nil, T57, node(nil, nil, node(nil, T57, nil)))
tappend38_in_gaa(node(T70, T71, nil), T57, node(T70, T71, node(nil, T57, nil))) → tappend38_out_gaa(node(T70, T71, nil), T57, node(T70, T71, node(nil, T57, nil)))
tappend38_in_gaa(nil, T89, node(X217, nil, nil)) → U4_gaa(T89, X217, tappend38_in_gaa(nil, T89, X217))
tappend38_in_gaa(node(T107, T105, T106), T108, node(X217, T105, T106)) → U5_gaa(T107, T105, T106, T108, X217, tappend38_in_gaa(T107, T108, X217))
tappend38_in_gaa(node(T126, T124, T125), T127, node(X217, T124, T125)) → U6_gaa(T126, T124, T125, T127, X217, tappend38_in_gaa(T126, T127, X217))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, X300)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, X300))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X313, nil, nil))) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X313, nil, nil)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(nil, T160, T161)), T145, node(node(nil, T145, nil), T146, node(X313, T160, T161))) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(nil, T160, T161)), T145, node(node(nil, T145, nil), T146, node(X313, T160, T161)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X370))) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X370)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T186, T187, nil)), T145, node(node(nil, T145, nil), T146, node(T186, T187, X370))) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T186, T187, nil)), T145, node(node(nil, T145, nil), T146, node(T186, T187, X370)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X432, nil, nil))) → U7_gaa(T145, T146, X432, tappend151_in_gaa(nil, X431, X432))
tappend151_in_gaa(nil, X300, X300) → tappend151_out_gaa(nil, X300, X300)
tappend151_in_gaa(nil, X313, node(X313, nil, nil)) → tappend151_out_gaa(nil, X313, node(X313, nil, nil))
tappend151_in_gaa(node(nil, T160, T161), X313, node(X313, T160, T161)) → tappend151_out_gaa(node(nil, T160, T161), X313, node(X313, T160, T161))
tappend151_in_gaa(nil, X370, node(nil, nil, X370)) → tappend151_out_gaa(nil, X370, node(nil, nil, X370))
tappend151_in_gaa(node(T186, T187, nil), X370, node(T186, T187, X370)) → tappend151_out_gaa(node(T186, T187, nil), X370, node(T186, T187, X370))
tappend151_in_gaa(nil, X431, node(X432, nil, nil)) → U13_gaa(X431, X432, tappend151_in_gaa(nil, X431, X432))
tappend151_in_gaa(node(T218, T216, T217), X431, node(X432, T216, T217)) → U14_gaa(T218, T216, T217, X431, X432, tappend151_in_gaa(T218, X431, X432))
tappend151_in_gaa(node(T234, T232, T233), X431, node(X432, T232, T233)) → U15_gaa(T234, T232, T233, X431, X432, tappend151_in_gaa(T234, X431, X432))
tappend151_in_gaa(nil, nil, node(nil, nil, X489)) → U16_gaa(X489, tappend151_in_gaa(nil, X486, X489))
tappend151_in_gaa(node(T249, T250, T252), T249, node(T249, T250, X489)) → U17_gaa(T249, T250, T252, X489, tappend151_in_gaa(T252, X486, X489))
tappend151_in_gaa(node(T265, T266, T268), T265, node(T265, T266, X489)) → U18_gaa(T265, T266, T268, X489, tappend151_in_gaa(T268, X486, X489))
U18_gaa(T265, T266, T268, X489, tappend151_out_gaa(T268, X486, X489)) → tappend151_out_gaa(node(T265, T266, T268), T265, node(T265, T266, X489))
U17_gaa(T249, T250, T252, X489, tappend151_out_gaa(T252, X486, X489)) → tappend151_out_gaa(node(T249, T250, T252), T249, node(T249, T250, X489))
U16_gaa(X489, tappend151_out_gaa(nil, X486, X489)) → tappend151_out_gaa(nil, nil, node(nil, nil, X489))
U15_gaa(T234, T232, T233, X431, X432, tappend151_out_gaa(T234, X431, X432)) → tappend151_out_gaa(node(T234, T232, T233), X431, node(X432, T232, T233))
U14_gaa(T218, T216, T217, X431, X432, tappend151_out_gaa(T218, X431, X432)) → tappend151_out_gaa(node(T218, T216, T217), X431, node(X432, T216, T217))
U13_gaa(X431, X432, tappend151_out_gaa(nil, X431, X432)) → tappend151_out_gaa(nil, X431, node(X432, nil, nil))
U7_gaa(T145, T146, X432, tappend151_out_gaa(nil, X431, X432)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X432, nil, nil)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T218, T216, T217)), T145, node(node(nil, T145, nil), T146, node(X432, T216, T217))) → U8_gaa(T145, T146, T218, T216, T217, X432, tappend151_in_gaa(T218, X431, X432))
U8_gaa(T145, T146, T218, T216, T217, X432, tappend151_out_gaa(T218, X431, X432)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T218, T216, T217)), T145, node(node(nil, T145, nil), T146, node(X432, T216, T217)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T234, T232, T233)), T145, node(node(nil, T145, nil), T146, node(X432, T232, T233))) → U9_gaa(T145, T146, T234, T232, T233, X432, tappend151_in_gaa(T234, X431, X432))
U9_gaa(T145, T146, T234, T232, T233, X432, tappend151_out_gaa(T234, X431, X432)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T234, T232, T233)), T145, node(node(nil, T145, nil), T146, node(X432, T232, T233)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X489))) → U10_gaa(T145, T146, X489, tappend151_in_gaa(nil, X486, X489))
U10_gaa(T145, T146, X489, tappend151_out_gaa(nil, X486, X489)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X489)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T249, T250, T252)), T145, node(node(nil, T145, nil), T146, node(T249, T250, X489))) → U11_gaa(T145, T146, T249, T250, T252, X489, tappend151_in_gaa(T252, X486, X489))
U11_gaa(T145, T146, T249, T250, T252, X489, tappend151_out_gaa(T252, X486, X489)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T249, T250, T252)), T145, node(node(nil, T145, nil), T146, node(T249, T250, X489)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T265, T266, T268)), T145, node(node(nil, T145, nil), T146, node(T265, T266, X489))) → U12_gaa(T145, T146, T265, T266, T268, X489, tappend151_in_gaa(T268, X486, X489))
U12_gaa(T145, T146, T265, T266, T268, X489, tappend151_out_gaa(T268, X486, X489)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T265, T266, T268)), T145, node(node(nil, T145, nil), T146, node(T265, T266, X489)))
U6_gaa(T126, T124, T125, T127, X217, tappend38_out_gaa(T126, T127, X217)) → tappend38_out_gaa(node(T126, T124, T125), T127, node(X217, T124, T125))
U5_gaa(T107, T105, T106, T108, X217, tappend38_out_gaa(T107, T108, X217)) → tappend38_out_gaa(node(T107, T105, T106), T108, node(X217, T105, T106))
U4_gaa(T89, X217, tappend38_out_gaa(nil, T89, X217)) → tappend38_out_gaa(nil, T89, node(X217, nil, nil))
U4_aaa(T89, X217, tappend38_out_gaa(nil, T89, X217)) → tappend38_out_aaa(nil, T89, node(X217, nil, nil))
tappend38_in_aaa(node(T107, T105, T106), T108, node(X217, T105, T106)) → U5_aaa(T107, T105, T106, T108, X217, tappend38_in_aaa(T107, T108, X217))
tappend38_in_aaa(node(T126, T124, T125), T127, node(X217, T124, T125)) → U6_aaa(T126, T124, T125, T127, X217, tappend38_in_aaa(T126, T127, X217))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, X300)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, X300))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X313, nil, nil))) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X313, nil, nil)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(nil, T160, T161)), T145, node(node(nil, T145, nil), T146, node(X313, T160, T161))) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(nil, T160, T161)), T145, node(node(nil, T145, nil), T146, node(X313, T160, T161)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X370))) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X370)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T186, T187, nil)), T145, node(node(nil, T145, nil), T146, node(T186, T187, X370))) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T186, T187, nil)), T145, node(node(nil, T145, nil), T146, node(T186, T187, X370)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X432, nil, nil))) → U7_aaa(T145, T146, X432, tappend151_in_gaa(nil, X431, X432))
U7_aaa(T145, T146, X432, tappend151_out_gaa(nil, X431, X432)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X432, nil, nil)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T218, T216, T217)), T145, node(node(nil, T145, nil), T146, node(X432, T216, T217))) → U8_aaa(T145, T146, T218, T216, T217, X432, tappend151_in_aaa(T218, X431, X432))
tappend151_in_aaa(nil, X300, X300) → tappend151_out_aaa(nil, X300, X300)
tappend151_in_aaa(nil, X313, node(X313, nil, nil)) → tappend151_out_aaa(nil, X313, node(X313, nil, nil))
tappend151_in_aaa(node(nil, T160, T161), X313, node(X313, T160, T161)) → tappend151_out_aaa(node(nil, T160, T161), X313, node(X313, T160, T161))
tappend151_in_aaa(nil, X370, node(nil, nil, X370)) → tappend151_out_aaa(nil, X370, node(nil, nil, X370))
tappend151_in_aaa(node(T186, T187, nil), X370, node(T186, T187, X370)) → tappend151_out_aaa(node(T186, T187, nil), X370, node(T186, T187, X370))
tappend151_in_aaa(nil, X431, node(X432, nil, nil)) → U13_aaa(X431, X432, tappend151_in_gaa(nil, X431, X432))
U13_aaa(X431, X432, tappend151_out_gaa(nil, X431, X432)) → tappend151_out_aaa(nil, X431, node(X432, nil, nil))
tappend151_in_aaa(node(T218, T216, T217), X431, node(X432, T216, T217)) → U14_aaa(T218, T216, T217, X431, X432, tappend151_in_aaa(T218, X431, X432))
tappend151_in_aaa(node(T234, T232, T233), X431, node(X432, T232, T233)) → U15_aaa(T234, T232, T233, X431, X432, tappend151_in_aaa(T234, X431, X432))
tappend151_in_aaa(nil, nil, node(nil, nil, X489)) → U16_aaa(X489, tappend151_in_gaa(nil, X486, X489))
U16_aaa(X489, tappend151_out_gaa(nil, X486, X489)) → tappend151_out_aaa(nil, nil, node(nil, nil, X489))
tappend151_in_aaa(node(T249, T250, T252), T249, node(T249, T250, X489)) → U17_aaa(T249, T250, T252, X489, tappend151_in_aaa(T252, X486, X489))
tappend151_in_aaa(node(T265, T266, T268), T265, node(T265, T266, X489)) → U18_aaa(T265, T266, T268, X489, tappend151_in_aaa(T268, X486, X489))
U18_aaa(T265, T266, T268, X489, tappend151_out_aaa(T268, X486, X489)) → tappend151_out_aaa(node(T265, T266, T268), T265, node(T265, T266, X489))
U17_aaa(T249, T250, T252, X489, tappend151_out_aaa(T252, X486, X489)) → tappend151_out_aaa(node(T249, T250, T252), T249, node(T249, T250, X489))
U15_aaa(T234, T232, T233, X431, X432, tappend151_out_aaa(T234, X431, X432)) → tappend151_out_aaa(node(T234, T232, T233), X431, node(X432, T232, T233))
U14_aaa(T218, T216, T217, X431, X432, tappend151_out_aaa(T218, X431, X432)) → tappend151_out_aaa(node(T218, T216, T217), X431, node(X432, T216, T217))
U8_aaa(T145, T146, T218, T216, T217, X432, tappend151_out_aaa(T218, X431, X432)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T218, T216, T217)), T145, node(node(nil, T145, nil), T146, node(X432, T216, T217)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T234, T232, T233)), T145, node(node(nil, T145, nil), T146, node(X432, T232, T233))) → U9_aaa(T145, T146, T234, T232, T233, X432, tappend151_in_aaa(T234, X431, X432))
U9_aaa(T145, T146, T234, T232, T233, X432, tappend151_out_aaa(T234, X431, X432)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T234, T232, T233)), T145, node(node(nil, T145, nil), T146, node(X432, T232, T233)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X489))) → U10_aaa(T145, T146, X489, tappend151_in_gaa(nil, X486, X489))
U10_aaa(T145, T146, X489, tappend151_out_gaa(nil, X486, X489)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X489)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T249, T250, T252)), T145, node(node(nil, T145, nil), T146, node(T249, T250, X489))) → U11_aaa(T145, T146, T249, T250, T252, X489, tappend151_in_aaa(T252, X486, X489))
U11_aaa(T145, T146, T249, T250, T252, X489, tappend151_out_aaa(T252, X486, X489)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T249, T250, T252)), T145, node(node(nil, T145, nil), T146, node(T249, T250, X489)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T265, T266, T268)), T145, node(node(nil, T145, nil), T146, node(T265, T266, X489))) → U12_aaa(T145, T146, T265, T266, T268, X489, tappend151_in_aaa(T268, X486, X489))
U12_aaa(T145, T146, T265, T266, T268, X489, tappend151_out_aaa(T268, X486, X489)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T265, T266, T268)), T145, node(node(nil, T145, nil), T146, node(T265, T266, X489)))
U6_aaa(T126, T124, T125, T127, X217, tappend38_out_aaa(T126, T127, X217)) → tappend38_out_aaa(node(T126, T124, T125), T127, node(X217, T124, T125))
U5_aaa(T107, T105, T106, T108, X217, tappend38_out_aaa(T107, T108, X217)) → tappend38_out_aaa(node(T107, T105, T106), T108, node(X217, T105, T106))
U23_gaa(T7, T24, T25, tappend38_out_aaa(T23, T24, X81)) → goal1_out_gaa(T7, T24, T25)
goal1_in_gaa(T7, T24, T269) → U24_gaa(T7, T24, T269, s2t4_in_ga(T7, T23))
U24_gaa(T7, T24, T269, s2t4_out_ga(T7, T23)) → U25_gaa(T7, T24, T269, tappend38_in_aaa(T23, T24, node(nil, T269, nil)))
U25_gaa(T7, T24, T269, tappend38_out_aaa(T23, T24, node(nil, T269, nil))) → goal1_out_gaa(T7, T24, T269)
goal1_in_gaa(T7, T24, T274) → U26_gaa(T7, T24, T274, s2t4_in_ga(T7, T23))
U26_gaa(T7, T24, T274, s2t4_out_ga(T7, T23)) → U27_gaa(T7, T24, T274, tappend38_in_aaa(T23, T24, node(T275, T272, T273)))
U27_gaa(T7, T24, T274, tappend38_out_aaa(T23, T24, node(T275, T272, T273))) → U28_gaa(T7, T24, T274, tlast39_in_aa(T274, T275))
tlast39_in_aa(T269, node(nil, T269, nil)) → tlast39_out_aa(T269, node(nil, T269, nil))
tlast39_in_aa(T274, node(T275, T272, T273)) → U19_aa(T274, T275, T272, T273, tlast39_in_aa(T274, T275))
tlast39_in_aa(T280, node(T277, T278, T281)) → U20_aa(T280, T277, T278, T281, tlast39_in_aa(T280, T281))
U20_aa(T280, T277, T278, T281, tlast39_out_aa(T280, T281)) → tlast39_out_aa(T280, node(T277, T278, T281))
U19_aa(T274, T275, T272, T273, tlast39_out_aa(T274, T275)) → tlast39_out_aa(T274, node(T275, T272, T273))
U28_gaa(T7, T24, T274, tlast39_out_aa(T274, T275)) → goal1_out_gaa(T7, T24, T274)
goal1_in_gaa(T7, T24, T280) → U29_gaa(T7, T24, T280, s2t4_in_ga(T7, T23))
U29_gaa(T7, T24, T280, s2t4_out_ga(T7, T23)) → U30_gaa(T7, T24, T280, tappend38_in_aaa(T23, T24, node(T277, T278, T281)))
U30_gaa(T7, T24, T280, tappend38_out_aaa(T23, T24, node(T277, T278, T281))) → U31_gaa(T7, T24, T280, tlast39_in_aa(T280, T281))
U31_gaa(T7, T24, T280, tlast39_out_aa(T280, T281)) → goal1_out_gaa(T7, T24, T280)
GOAL1_IN_GAA(T7, T10, T11) → U21_GAA(T7, T10, T11, s2t4_in_ga(T7, X21))
GOAL1_IN_GAA(T7, T10, T11) → S2T4_IN_GA(T7, X21)
S2T4_IN_GA(s(T14), node(X38, X39, X38)) → U1_GA(T14, X38, X39, s2t4_in_ga(T14, X38))
S2T4_IN_GA(s(T14), node(X38, X39, X38)) → S2T4_IN_GA(T14, X38)
S2T4_IN_GA(s(T16), node(nil, X52, X53)) → U2_GA(T16, X52, X53, s2t4_in_ga(T16, X53))
S2T4_IN_GA(s(T16), node(nil, X52, X53)) → S2T4_IN_GA(T16, X53)
S2T4_IN_GA(s(T18), node(X66, X67, nil)) → U3_GA(T18, X66, X67, s2t4_in_ga(T18, X66))
S2T4_IN_GA(s(T18), node(X66, X67, nil)) → S2T4_IN_GA(T18, X66)
GOAL1_IN_GAA(T7, T24, T25) → U22_GAA(T7, T24, T25, s2t4_in_ga(T7, T23))
U22_GAA(T7, T24, T25, s2t4_out_ga(T7, T23)) → U23_GAA(T7, T24, T25, tappend38_in_aaa(T23, T24, X81))
U22_GAA(T7, T24, T25, s2t4_out_ga(T7, T23)) → TAPPEND38_IN_AAA(T23, T24, X81)
TAPPEND38_IN_AAA(nil, T89, node(X217, nil, nil)) → U4_AAA(T89, X217, tappend38_in_gaa(nil, T89, X217))
TAPPEND38_IN_AAA(nil, T89, node(X217, nil, nil)) → TAPPEND38_IN_GAA(nil, T89, X217)
TAPPEND38_IN_GAA(nil, T89, node(X217, nil, nil)) → U4_GAA(T89, X217, tappend38_in_gaa(nil, T89, X217))
TAPPEND38_IN_GAA(nil, T89, node(X217, nil, nil)) → TAPPEND38_IN_GAA(nil, T89, X217)
TAPPEND38_IN_GAA(node(T107, T105, T106), T108, node(X217, T105, T106)) → U5_GAA(T107, T105, T106, T108, X217, tappend38_in_gaa(T107, T108, X217))
TAPPEND38_IN_GAA(node(T107, T105, T106), T108, node(X217, T105, T106)) → TAPPEND38_IN_GAA(T107, T108, X217)
TAPPEND38_IN_GAA(node(T126, T124, T125), T127, node(X217, T124, T125)) → U6_GAA(T126, T124, T125, T127, X217, tappend38_in_gaa(T126, T127, X217))
TAPPEND38_IN_GAA(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X432, nil, nil))) → U7_GAA(T145, T146, X432, tappend151_in_gaa(nil, X431, X432))
TAPPEND38_IN_GAA(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X432, nil, nil))) → TAPPEND151_IN_GAA(nil, X431, X432)
TAPPEND151_IN_GAA(nil, X431, node(X432, nil, nil)) → U13_GAA(X431, X432, tappend151_in_gaa(nil, X431, X432))
TAPPEND151_IN_GAA(nil, X431, node(X432, nil, nil)) → TAPPEND151_IN_GAA(nil, X431, X432)
TAPPEND151_IN_GAA(node(T218, T216, T217), X431, node(X432, T216, T217)) → U14_GAA(T218, T216, T217, X431, X432, tappend151_in_gaa(T218, X431, X432))
TAPPEND151_IN_GAA(node(T218, T216, T217), X431, node(X432, T216, T217)) → TAPPEND151_IN_GAA(T218, X431, X432)
TAPPEND151_IN_GAA(node(T234, T232, T233), X431, node(X432, T232, T233)) → U15_GAA(T234, T232, T233, X431, X432, tappend151_in_gaa(T234, X431, X432))
TAPPEND151_IN_GAA(nil, nil, node(nil, nil, X489)) → U16_GAA(X489, tappend151_in_gaa(nil, X486, X489))
TAPPEND151_IN_GAA(nil, nil, node(nil, nil, X489)) → TAPPEND151_IN_GAA(nil, X486, X489)
TAPPEND151_IN_GAA(node(T249, T250, T252), T249, node(T249, T250, X489)) → U17_GAA(T249, T250, T252, X489, tappend151_in_gaa(T252, X486, X489))
TAPPEND151_IN_GAA(node(T249, T250, T252), T249, node(T249, T250, X489)) → TAPPEND151_IN_GAA(T252, X486, X489)
TAPPEND151_IN_GAA(node(T265, T266, T268), T265, node(T265, T266, X489)) → U18_GAA(T265, T266, T268, X489, tappend151_in_gaa(T268, X486, X489))
TAPPEND38_IN_GAA(node(node(nil, T145, nil), T146, node(T218, T216, T217)), T145, node(node(nil, T145, nil), T146, node(X432, T216, T217))) → U8_GAA(T145, T146, T218, T216, T217, X432, tappend151_in_gaa(T218, X431, X432))
TAPPEND38_IN_GAA(node(node(nil, T145, nil), T146, node(T218, T216, T217)), T145, node(node(nil, T145, nil), T146, node(X432, T216, T217))) → TAPPEND151_IN_GAA(T218, X431, X432)
TAPPEND38_IN_GAA(node(node(nil, T145, nil), T146, node(T234, T232, T233)), T145, node(node(nil, T145, nil), T146, node(X432, T232, T233))) → U9_GAA(T145, T146, T234, T232, T233, X432, tappend151_in_gaa(T234, X431, X432))
TAPPEND38_IN_GAA(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X489))) → U10_GAA(T145, T146, X489, tappend151_in_gaa(nil, X486, X489))
TAPPEND38_IN_GAA(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X489))) → TAPPEND151_IN_GAA(nil, X486, X489)
TAPPEND38_IN_GAA(node(node(nil, T145, nil), T146, node(T249, T250, T252)), T145, node(node(nil, T145, nil), T146, node(T249, T250, X489))) → U11_GAA(T145, T146, T249, T250, T252, X489, tappend151_in_gaa(T252, X486, X489))
TAPPEND38_IN_GAA(node(node(nil, T145, nil), T146, node(T249, T250, T252)), T145, node(node(nil, T145, nil), T146, node(T249, T250, X489))) → TAPPEND151_IN_GAA(T252, X486, X489)
TAPPEND38_IN_GAA(node(node(nil, T145, nil), T146, node(T265, T266, T268)), T145, node(node(nil, T145, nil), T146, node(T265, T266, X489))) → U12_GAA(T145, T146, T265, T266, T268, X489, tappend151_in_gaa(T268, X486, X489))
TAPPEND38_IN_AAA(node(T107, T105, T106), T108, node(X217, T105, T106)) → U5_AAA(T107, T105, T106, T108, X217, tappend38_in_aaa(T107, T108, X217))
TAPPEND38_IN_AAA(node(T107, T105, T106), T108, node(X217, T105, T106)) → TAPPEND38_IN_AAA(T107, T108, X217)
TAPPEND38_IN_AAA(node(T126, T124, T125), T127, node(X217, T124, T125)) → U6_AAA(T126, T124, T125, T127, X217, tappend38_in_aaa(T126, T127, X217))
TAPPEND38_IN_AAA(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X432, nil, nil))) → U7_AAA(T145, T146, X432, tappend151_in_gaa(nil, X431, X432))
TAPPEND38_IN_AAA(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X432, nil, nil))) → TAPPEND151_IN_GAA(nil, X431, X432)
TAPPEND38_IN_AAA(node(node(nil, T145, nil), T146, node(T218, T216, T217)), T145, node(node(nil, T145, nil), T146, node(X432, T216, T217))) → U8_AAA(T145, T146, T218, T216, T217, X432, tappend151_in_aaa(T218, X431, X432))
TAPPEND38_IN_AAA(node(node(nil, T145, nil), T146, node(T218, T216, T217)), T145, node(node(nil, T145, nil), T146, node(X432, T216, T217))) → TAPPEND151_IN_AAA(T218, X431, X432)
TAPPEND151_IN_AAA(nil, X431, node(X432, nil, nil)) → U13_AAA(X431, X432, tappend151_in_gaa(nil, X431, X432))
TAPPEND151_IN_AAA(nil, X431, node(X432, nil, nil)) → TAPPEND151_IN_GAA(nil, X431, X432)
TAPPEND151_IN_AAA(node(T218, T216, T217), X431, node(X432, T216, T217)) → U14_AAA(T218, T216, T217, X431, X432, tappend151_in_aaa(T218, X431, X432))
TAPPEND151_IN_AAA(node(T218, T216, T217), X431, node(X432, T216, T217)) → TAPPEND151_IN_AAA(T218, X431, X432)
TAPPEND151_IN_AAA(node(T234, T232, T233), X431, node(X432, T232, T233)) → U15_AAA(T234, T232, T233, X431, X432, tappend151_in_aaa(T234, X431, X432))
TAPPEND151_IN_AAA(nil, nil, node(nil, nil, X489)) → U16_AAA(X489, tappend151_in_gaa(nil, X486, X489))
TAPPEND151_IN_AAA(nil, nil, node(nil, nil, X489)) → TAPPEND151_IN_GAA(nil, X486, X489)
TAPPEND151_IN_AAA(node(T249, T250, T252), T249, node(T249, T250, X489)) → U17_AAA(T249, T250, T252, X489, tappend151_in_aaa(T252, X486, X489))
TAPPEND151_IN_AAA(node(T249, T250, T252), T249, node(T249, T250, X489)) → TAPPEND151_IN_AAA(T252, X486, X489)
TAPPEND151_IN_AAA(node(T265, T266, T268), T265, node(T265, T266, X489)) → U18_AAA(T265, T266, T268, X489, tappend151_in_aaa(T268, X486, X489))
TAPPEND38_IN_AAA(node(node(nil, T145, nil), T146, node(T234, T232, T233)), T145, node(node(nil, T145, nil), T146, node(X432, T232, T233))) → U9_AAA(T145, T146, T234, T232, T233, X432, tappend151_in_aaa(T234, X431, X432))
TAPPEND38_IN_AAA(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X489))) → U10_AAA(T145, T146, X489, tappend151_in_gaa(nil, X486, X489))
TAPPEND38_IN_AAA(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X489))) → TAPPEND151_IN_GAA(nil, X486, X489)
TAPPEND38_IN_AAA(node(node(nil, T145, nil), T146, node(T249, T250, T252)), T145, node(node(nil, T145, nil), T146, node(T249, T250, X489))) → U11_AAA(T145, T146, T249, T250, T252, X489, tappend151_in_aaa(T252, X486, X489))
TAPPEND38_IN_AAA(node(node(nil, T145, nil), T146, node(T249, T250, T252)), T145, node(node(nil, T145, nil), T146, node(T249, T250, X489))) → TAPPEND151_IN_AAA(T252, X486, X489)
TAPPEND38_IN_AAA(node(node(nil, T145, nil), T146, node(T265, T266, T268)), T145, node(node(nil, T145, nil), T146, node(T265, T266, X489))) → U12_AAA(T145, T146, T265, T266, T268, X489, tappend151_in_aaa(T268, X486, X489))
GOAL1_IN_GAA(T7, T24, T269) → U24_GAA(T7, T24, T269, s2t4_in_ga(T7, T23))
U24_GAA(T7, T24, T269, s2t4_out_ga(T7, T23)) → U25_GAA(T7, T24, T269, tappend38_in_aaa(T23, T24, node(nil, T269, nil)))
U24_GAA(T7, T24, T269, s2t4_out_ga(T7, T23)) → TAPPEND38_IN_AAA(T23, T24, node(nil, T269, nil))
GOAL1_IN_GAA(T7, T24, T274) → U26_GAA(T7, T24, T274, s2t4_in_ga(T7, T23))
U26_GAA(T7, T24, T274, s2t4_out_ga(T7, T23)) → U27_GAA(T7, T24, T274, tappend38_in_aaa(T23, T24, node(T275, T272, T273)))
U26_GAA(T7, T24, T274, s2t4_out_ga(T7, T23)) → TAPPEND38_IN_AAA(T23, T24, node(T275, T272, T273))
U27_GAA(T7, T24, T274, tappend38_out_aaa(T23, T24, node(T275, T272, T273))) → U28_GAA(T7, T24, T274, tlast39_in_aa(T274, T275))
U27_GAA(T7, T24, T274, tappend38_out_aaa(T23, T24, node(T275, T272, T273))) → TLAST39_IN_AA(T274, T275)
TLAST39_IN_AA(T274, node(T275, T272, T273)) → U19_AA(T274, T275, T272, T273, tlast39_in_aa(T274, T275))
TLAST39_IN_AA(T274, node(T275, T272, T273)) → TLAST39_IN_AA(T274, T275)
TLAST39_IN_AA(T280, node(T277, T278, T281)) → U20_AA(T280, T277, T278, T281, tlast39_in_aa(T280, T281))
TLAST39_IN_AA(T280, node(T277, T278, T281)) → TLAST39_IN_AA(T280, T281)
GOAL1_IN_GAA(T7, T24, T280) → U29_GAA(T7, T24, T280, s2t4_in_ga(T7, T23))
U29_GAA(T7, T24, T280, s2t4_out_ga(T7, T23)) → U30_GAA(T7, T24, T280, tappend38_in_aaa(T23, T24, node(T277, T278, T281)))
U29_GAA(T7, T24, T280, s2t4_out_ga(T7, T23)) → TAPPEND38_IN_AAA(T23, T24, node(T277, T278, T281))
U30_GAA(T7, T24, T280, tappend38_out_aaa(T23, T24, node(T277, T278, T281))) → U31_GAA(T7, T24, T280, tlast39_in_aa(T280, T281))
U30_GAA(T7, T24, T280, tappend38_out_aaa(T23, T24, node(T277, T278, T281))) → TLAST39_IN_AA(T280, T281)
goal1_in_gaa(T7, T10, T11) → U21_gaa(T7, T10, T11, s2t4_in_ga(T7, X21))
s2t4_in_ga(0, nil) → s2t4_out_ga(0, nil)
s2t4_in_ga(s(T14), node(X38, X39, X38)) → U1_ga(T14, X38, X39, s2t4_in_ga(T14, X38))
s2t4_in_ga(s(T16), node(nil, X52, X53)) → U2_ga(T16, X52, X53, s2t4_in_ga(T16, X53))
s2t4_in_ga(s(T18), node(X66, X67, nil)) → U3_ga(T18, X66, X67, s2t4_in_ga(T18, X66))
s2t4_in_ga(T19, node(nil, X74, nil)) → s2t4_out_ga(T19, node(nil, X74, nil))
U3_ga(T18, X66, X67, s2t4_out_ga(T18, X66)) → s2t4_out_ga(s(T18), node(X66, X67, nil))
U2_ga(T16, X52, X53, s2t4_out_ga(T16, X53)) → s2t4_out_ga(s(T16), node(nil, X52, X53))
U1_ga(T14, X38, X39, s2t4_out_ga(T14, X38)) → s2t4_out_ga(s(T14), node(X38, X39, X38))
U21_gaa(T7, T10, T11, s2t4_out_ga(T7, X21)) → goal1_out_gaa(T7, T10, T11)
goal1_in_gaa(T7, T24, T25) → U22_gaa(T7, T24, T25, s2t4_in_ga(T7, T23))
U22_gaa(T7, T24, T25, s2t4_out_ga(T7, T23)) → U23_gaa(T7, T24, T25, tappend38_in_aaa(T23, T24, X81))
tappend38_in_aaa(nil, T30, node(nil, T30, nil)) → tappend38_out_aaa(nil, T30, node(nil, T30, nil))
tappend38_in_aaa(nil, T32, node(node(nil, T32, nil), nil, nil)) → tappend38_out_aaa(nil, T32, node(node(nil, T32, nil), nil, nil))
tappend38_in_aaa(node(nil, T43, T44), T32, node(node(nil, T32, nil), T43, T44)) → tappend38_out_aaa(node(nil, T43, T44), T32, node(node(nil, T32, nil), T43, T44))
tappend38_in_aaa(nil, T57, node(nil, nil, node(nil, T57, nil))) → tappend38_out_aaa(nil, T57, node(nil, nil, node(nil, T57, nil)))
tappend38_in_aaa(node(T70, T71, nil), T57, node(T70, T71, node(nil, T57, nil))) → tappend38_out_aaa(node(T70, T71, nil), T57, node(T70, T71, node(nil, T57, nil)))
tappend38_in_aaa(nil, T89, node(X217, nil, nil)) → U4_aaa(T89, X217, tappend38_in_gaa(nil, T89, X217))
tappend38_in_gaa(nil, T30, node(nil, T30, nil)) → tappend38_out_gaa(nil, T30, node(nil, T30, nil))
tappend38_in_gaa(nil, T32, node(node(nil, T32, nil), nil, nil)) → tappend38_out_gaa(nil, T32, node(node(nil, T32, nil), nil, nil))
tappend38_in_gaa(node(nil, T43, T44), T32, node(node(nil, T32, nil), T43, T44)) → tappend38_out_gaa(node(nil, T43, T44), T32, node(node(nil, T32, nil), T43, T44))
tappend38_in_gaa(nil, T57, node(nil, nil, node(nil, T57, nil))) → tappend38_out_gaa(nil, T57, node(nil, nil, node(nil, T57, nil)))
tappend38_in_gaa(node(T70, T71, nil), T57, node(T70, T71, node(nil, T57, nil))) → tappend38_out_gaa(node(T70, T71, nil), T57, node(T70, T71, node(nil, T57, nil)))
tappend38_in_gaa(nil, T89, node(X217, nil, nil)) → U4_gaa(T89, X217, tappend38_in_gaa(nil, T89, X217))
tappend38_in_gaa(node(T107, T105, T106), T108, node(X217, T105, T106)) → U5_gaa(T107, T105, T106, T108, X217, tappend38_in_gaa(T107, T108, X217))
tappend38_in_gaa(node(T126, T124, T125), T127, node(X217, T124, T125)) → U6_gaa(T126, T124, T125, T127, X217, tappend38_in_gaa(T126, T127, X217))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, X300)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, X300))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X313, nil, nil))) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X313, nil, nil)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(nil, T160, T161)), T145, node(node(nil, T145, nil), T146, node(X313, T160, T161))) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(nil, T160, T161)), T145, node(node(nil, T145, nil), T146, node(X313, T160, T161)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X370))) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X370)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T186, T187, nil)), T145, node(node(nil, T145, nil), T146, node(T186, T187, X370))) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T186, T187, nil)), T145, node(node(nil, T145, nil), T146, node(T186, T187, X370)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X432, nil, nil))) → U7_gaa(T145, T146, X432, tappend151_in_gaa(nil, X431, X432))
tappend151_in_gaa(nil, X300, X300) → tappend151_out_gaa(nil, X300, X300)
tappend151_in_gaa(nil, X313, node(X313, nil, nil)) → tappend151_out_gaa(nil, X313, node(X313, nil, nil))
tappend151_in_gaa(node(nil, T160, T161), X313, node(X313, T160, T161)) → tappend151_out_gaa(node(nil, T160, T161), X313, node(X313, T160, T161))
tappend151_in_gaa(nil, X370, node(nil, nil, X370)) → tappend151_out_gaa(nil, X370, node(nil, nil, X370))
tappend151_in_gaa(node(T186, T187, nil), X370, node(T186, T187, X370)) → tappend151_out_gaa(node(T186, T187, nil), X370, node(T186, T187, X370))
tappend151_in_gaa(nil, X431, node(X432, nil, nil)) → U13_gaa(X431, X432, tappend151_in_gaa(nil, X431, X432))
tappend151_in_gaa(node(T218, T216, T217), X431, node(X432, T216, T217)) → U14_gaa(T218, T216, T217, X431, X432, tappend151_in_gaa(T218, X431, X432))
tappend151_in_gaa(node(T234, T232, T233), X431, node(X432, T232, T233)) → U15_gaa(T234, T232, T233, X431, X432, tappend151_in_gaa(T234, X431, X432))
tappend151_in_gaa(nil, nil, node(nil, nil, X489)) → U16_gaa(X489, tappend151_in_gaa(nil, X486, X489))
tappend151_in_gaa(node(T249, T250, T252), T249, node(T249, T250, X489)) → U17_gaa(T249, T250, T252, X489, tappend151_in_gaa(T252, X486, X489))
tappend151_in_gaa(node(T265, T266, T268), T265, node(T265, T266, X489)) → U18_gaa(T265, T266, T268, X489, tappend151_in_gaa(T268, X486, X489))
U18_gaa(T265, T266, T268, X489, tappend151_out_gaa(T268, X486, X489)) → tappend151_out_gaa(node(T265, T266, T268), T265, node(T265, T266, X489))
U17_gaa(T249, T250, T252, X489, tappend151_out_gaa(T252, X486, X489)) → tappend151_out_gaa(node(T249, T250, T252), T249, node(T249, T250, X489))
U16_gaa(X489, tappend151_out_gaa(nil, X486, X489)) → tappend151_out_gaa(nil, nil, node(nil, nil, X489))
U15_gaa(T234, T232, T233, X431, X432, tappend151_out_gaa(T234, X431, X432)) → tappend151_out_gaa(node(T234, T232, T233), X431, node(X432, T232, T233))
U14_gaa(T218, T216, T217, X431, X432, tappend151_out_gaa(T218, X431, X432)) → tappend151_out_gaa(node(T218, T216, T217), X431, node(X432, T216, T217))
U13_gaa(X431, X432, tappend151_out_gaa(nil, X431, X432)) → tappend151_out_gaa(nil, X431, node(X432, nil, nil))
U7_gaa(T145, T146, X432, tappend151_out_gaa(nil, X431, X432)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X432, nil, nil)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T218, T216, T217)), T145, node(node(nil, T145, nil), T146, node(X432, T216, T217))) → U8_gaa(T145, T146, T218, T216, T217, X432, tappend151_in_gaa(T218, X431, X432))
U8_gaa(T145, T146, T218, T216, T217, X432, tappend151_out_gaa(T218, X431, X432)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T218, T216, T217)), T145, node(node(nil, T145, nil), T146, node(X432, T216, T217)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T234, T232, T233)), T145, node(node(nil, T145, nil), T146, node(X432, T232, T233))) → U9_gaa(T145, T146, T234, T232, T233, X432, tappend151_in_gaa(T234, X431, X432))
U9_gaa(T145, T146, T234, T232, T233, X432, tappend151_out_gaa(T234, X431, X432)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T234, T232, T233)), T145, node(node(nil, T145, nil), T146, node(X432, T232, T233)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X489))) → U10_gaa(T145, T146, X489, tappend151_in_gaa(nil, X486, X489))
U10_gaa(T145, T146, X489, tappend151_out_gaa(nil, X486, X489)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X489)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T249, T250, T252)), T145, node(node(nil, T145, nil), T146, node(T249, T250, X489))) → U11_gaa(T145, T146, T249, T250, T252, X489, tappend151_in_gaa(T252, X486, X489))
U11_gaa(T145, T146, T249, T250, T252, X489, tappend151_out_gaa(T252, X486, X489)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T249, T250, T252)), T145, node(node(nil, T145, nil), T146, node(T249, T250, X489)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T265, T266, T268)), T145, node(node(nil, T145, nil), T146, node(T265, T266, X489))) → U12_gaa(T145, T146, T265, T266, T268, X489, tappend151_in_gaa(T268, X486, X489))
U12_gaa(T145, T146, T265, T266, T268, X489, tappend151_out_gaa(T268, X486, X489)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T265, T266, T268)), T145, node(node(nil, T145, nil), T146, node(T265, T266, X489)))
U6_gaa(T126, T124, T125, T127, X217, tappend38_out_gaa(T126, T127, X217)) → tappend38_out_gaa(node(T126, T124, T125), T127, node(X217, T124, T125))
U5_gaa(T107, T105, T106, T108, X217, tappend38_out_gaa(T107, T108, X217)) → tappend38_out_gaa(node(T107, T105, T106), T108, node(X217, T105, T106))
U4_gaa(T89, X217, tappend38_out_gaa(nil, T89, X217)) → tappend38_out_gaa(nil, T89, node(X217, nil, nil))
U4_aaa(T89, X217, tappend38_out_gaa(nil, T89, X217)) → tappend38_out_aaa(nil, T89, node(X217, nil, nil))
tappend38_in_aaa(node(T107, T105, T106), T108, node(X217, T105, T106)) → U5_aaa(T107, T105, T106, T108, X217, tappend38_in_aaa(T107, T108, X217))
tappend38_in_aaa(node(T126, T124, T125), T127, node(X217, T124, T125)) → U6_aaa(T126, T124, T125, T127, X217, tappend38_in_aaa(T126, T127, X217))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, X300)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, X300))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X313, nil, nil))) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X313, nil, nil)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(nil, T160, T161)), T145, node(node(nil, T145, nil), T146, node(X313, T160, T161))) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(nil, T160, T161)), T145, node(node(nil, T145, nil), T146, node(X313, T160, T161)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X370))) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X370)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T186, T187, nil)), T145, node(node(nil, T145, nil), T146, node(T186, T187, X370))) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T186, T187, nil)), T145, node(node(nil, T145, nil), T146, node(T186, T187, X370)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X432, nil, nil))) → U7_aaa(T145, T146, X432, tappend151_in_gaa(nil, X431, X432))
U7_aaa(T145, T146, X432, tappend151_out_gaa(nil, X431, X432)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X432, nil, nil)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T218, T216, T217)), T145, node(node(nil, T145, nil), T146, node(X432, T216, T217))) → U8_aaa(T145, T146, T218, T216, T217, X432, tappend151_in_aaa(T218, X431, X432))
tappend151_in_aaa(nil, X300, X300) → tappend151_out_aaa(nil, X300, X300)
tappend151_in_aaa(nil, X313, node(X313, nil, nil)) → tappend151_out_aaa(nil, X313, node(X313, nil, nil))
tappend151_in_aaa(node(nil, T160, T161), X313, node(X313, T160, T161)) → tappend151_out_aaa(node(nil, T160, T161), X313, node(X313, T160, T161))
tappend151_in_aaa(nil, X370, node(nil, nil, X370)) → tappend151_out_aaa(nil, X370, node(nil, nil, X370))
tappend151_in_aaa(node(T186, T187, nil), X370, node(T186, T187, X370)) → tappend151_out_aaa(node(T186, T187, nil), X370, node(T186, T187, X370))
tappend151_in_aaa(nil, X431, node(X432, nil, nil)) → U13_aaa(X431, X432, tappend151_in_gaa(nil, X431, X432))
U13_aaa(X431, X432, tappend151_out_gaa(nil, X431, X432)) → tappend151_out_aaa(nil, X431, node(X432, nil, nil))
tappend151_in_aaa(node(T218, T216, T217), X431, node(X432, T216, T217)) → U14_aaa(T218, T216, T217, X431, X432, tappend151_in_aaa(T218, X431, X432))
tappend151_in_aaa(node(T234, T232, T233), X431, node(X432, T232, T233)) → U15_aaa(T234, T232, T233, X431, X432, tappend151_in_aaa(T234, X431, X432))
tappend151_in_aaa(nil, nil, node(nil, nil, X489)) → U16_aaa(X489, tappend151_in_gaa(nil, X486, X489))
U16_aaa(X489, tappend151_out_gaa(nil, X486, X489)) → tappend151_out_aaa(nil, nil, node(nil, nil, X489))
tappend151_in_aaa(node(T249, T250, T252), T249, node(T249, T250, X489)) → U17_aaa(T249, T250, T252, X489, tappend151_in_aaa(T252, X486, X489))
tappend151_in_aaa(node(T265, T266, T268), T265, node(T265, T266, X489)) → U18_aaa(T265, T266, T268, X489, tappend151_in_aaa(T268, X486, X489))
U18_aaa(T265, T266, T268, X489, tappend151_out_aaa(T268, X486, X489)) → tappend151_out_aaa(node(T265, T266, T268), T265, node(T265, T266, X489))
U17_aaa(T249, T250, T252, X489, tappend151_out_aaa(T252, X486, X489)) → tappend151_out_aaa(node(T249, T250, T252), T249, node(T249, T250, X489))
U15_aaa(T234, T232, T233, X431, X432, tappend151_out_aaa(T234, X431, X432)) → tappend151_out_aaa(node(T234, T232, T233), X431, node(X432, T232, T233))
U14_aaa(T218, T216, T217, X431, X432, tappend151_out_aaa(T218, X431, X432)) → tappend151_out_aaa(node(T218, T216, T217), X431, node(X432, T216, T217))
U8_aaa(T145, T146, T218, T216, T217, X432, tappend151_out_aaa(T218, X431, X432)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T218, T216, T217)), T145, node(node(nil, T145, nil), T146, node(X432, T216, T217)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T234, T232, T233)), T145, node(node(nil, T145, nil), T146, node(X432, T232, T233))) → U9_aaa(T145, T146, T234, T232, T233, X432, tappend151_in_aaa(T234, X431, X432))
U9_aaa(T145, T146, T234, T232, T233, X432, tappend151_out_aaa(T234, X431, X432)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T234, T232, T233)), T145, node(node(nil, T145, nil), T146, node(X432, T232, T233)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X489))) → U10_aaa(T145, T146, X489, tappend151_in_gaa(nil, X486, X489))
U10_aaa(T145, T146, X489, tappend151_out_gaa(nil, X486, X489)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X489)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T249, T250, T252)), T145, node(node(nil, T145, nil), T146, node(T249, T250, X489))) → U11_aaa(T145, T146, T249, T250, T252, X489, tappend151_in_aaa(T252, X486, X489))
U11_aaa(T145, T146, T249, T250, T252, X489, tappend151_out_aaa(T252, X486, X489)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T249, T250, T252)), T145, node(node(nil, T145, nil), T146, node(T249, T250, X489)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T265, T266, T268)), T145, node(node(nil, T145, nil), T146, node(T265, T266, X489))) → U12_aaa(T145, T146, T265, T266, T268, X489, tappend151_in_aaa(T268, X486, X489))
U12_aaa(T145, T146, T265, T266, T268, X489, tappend151_out_aaa(T268, X486, X489)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T265, T266, T268)), T145, node(node(nil, T145, nil), T146, node(T265, T266, X489)))
U6_aaa(T126, T124, T125, T127, X217, tappend38_out_aaa(T126, T127, X217)) → tappend38_out_aaa(node(T126, T124, T125), T127, node(X217, T124, T125))
U5_aaa(T107, T105, T106, T108, X217, tappend38_out_aaa(T107, T108, X217)) → tappend38_out_aaa(node(T107, T105, T106), T108, node(X217, T105, T106))
U23_gaa(T7, T24, T25, tappend38_out_aaa(T23, T24, X81)) → goal1_out_gaa(T7, T24, T25)
goal1_in_gaa(T7, T24, T269) → U24_gaa(T7, T24, T269, s2t4_in_ga(T7, T23))
U24_gaa(T7, T24, T269, s2t4_out_ga(T7, T23)) → U25_gaa(T7, T24, T269, tappend38_in_aaa(T23, T24, node(nil, T269, nil)))
U25_gaa(T7, T24, T269, tappend38_out_aaa(T23, T24, node(nil, T269, nil))) → goal1_out_gaa(T7, T24, T269)
goal1_in_gaa(T7, T24, T274) → U26_gaa(T7, T24, T274, s2t4_in_ga(T7, T23))
U26_gaa(T7, T24, T274, s2t4_out_ga(T7, T23)) → U27_gaa(T7, T24, T274, tappend38_in_aaa(T23, T24, node(T275, T272, T273)))
U27_gaa(T7, T24, T274, tappend38_out_aaa(T23, T24, node(T275, T272, T273))) → U28_gaa(T7, T24, T274, tlast39_in_aa(T274, T275))
tlast39_in_aa(T269, node(nil, T269, nil)) → tlast39_out_aa(T269, node(nil, T269, nil))
tlast39_in_aa(T274, node(T275, T272, T273)) → U19_aa(T274, T275, T272, T273, tlast39_in_aa(T274, T275))
tlast39_in_aa(T280, node(T277, T278, T281)) → U20_aa(T280, T277, T278, T281, tlast39_in_aa(T280, T281))
U20_aa(T280, T277, T278, T281, tlast39_out_aa(T280, T281)) → tlast39_out_aa(T280, node(T277, T278, T281))
U19_aa(T274, T275, T272, T273, tlast39_out_aa(T274, T275)) → tlast39_out_aa(T274, node(T275, T272, T273))
U28_gaa(T7, T24, T274, tlast39_out_aa(T274, T275)) → goal1_out_gaa(T7, T24, T274)
goal1_in_gaa(T7, T24, T280) → U29_gaa(T7, T24, T280, s2t4_in_ga(T7, T23))
U29_gaa(T7, T24, T280, s2t4_out_ga(T7, T23)) → U30_gaa(T7, T24, T280, tappend38_in_aaa(T23, T24, node(T277, T278, T281)))
U30_gaa(T7, T24, T280, tappend38_out_aaa(T23, T24, node(T277, T278, T281))) → U31_gaa(T7, T24, T280, tlast39_in_aa(T280, T281))
U31_gaa(T7, T24, T280, tlast39_out_aa(T280, T281)) → goal1_out_gaa(T7, T24, T280)
TLAST39_IN_AA(T280, node(T277, T278, T281)) → TLAST39_IN_AA(T280, T281)
TLAST39_IN_AA(T274, node(T275, T272, T273)) → TLAST39_IN_AA(T274, T275)
goal1_in_gaa(T7, T10, T11) → U21_gaa(T7, T10, T11, s2t4_in_ga(T7, X21))
s2t4_in_ga(0, nil) → s2t4_out_ga(0, nil)
s2t4_in_ga(s(T14), node(X38, X39, X38)) → U1_ga(T14, X38, X39, s2t4_in_ga(T14, X38))
s2t4_in_ga(s(T16), node(nil, X52, X53)) → U2_ga(T16, X52, X53, s2t4_in_ga(T16, X53))
s2t4_in_ga(s(T18), node(X66, X67, nil)) → U3_ga(T18, X66, X67, s2t4_in_ga(T18, X66))
s2t4_in_ga(T19, node(nil, X74, nil)) → s2t4_out_ga(T19, node(nil, X74, nil))
U3_ga(T18, X66, X67, s2t4_out_ga(T18, X66)) → s2t4_out_ga(s(T18), node(X66, X67, nil))
U2_ga(T16, X52, X53, s2t4_out_ga(T16, X53)) → s2t4_out_ga(s(T16), node(nil, X52, X53))
U1_ga(T14, X38, X39, s2t4_out_ga(T14, X38)) → s2t4_out_ga(s(T14), node(X38, X39, X38))
U21_gaa(T7, T10, T11, s2t4_out_ga(T7, X21)) → goal1_out_gaa(T7, T10, T11)
goal1_in_gaa(T7, T24, T25) → U22_gaa(T7, T24, T25, s2t4_in_ga(T7, T23))
U22_gaa(T7, T24, T25, s2t4_out_ga(T7, T23)) → U23_gaa(T7, T24, T25, tappend38_in_aaa(T23, T24, X81))
tappend38_in_aaa(nil, T30, node(nil, T30, nil)) → tappend38_out_aaa(nil, T30, node(nil, T30, nil))
tappend38_in_aaa(nil, T32, node(node(nil, T32, nil), nil, nil)) → tappend38_out_aaa(nil, T32, node(node(nil, T32, nil), nil, nil))
tappend38_in_aaa(node(nil, T43, T44), T32, node(node(nil, T32, nil), T43, T44)) → tappend38_out_aaa(node(nil, T43, T44), T32, node(node(nil, T32, nil), T43, T44))
tappend38_in_aaa(nil, T57, node(nil, nil, node(nil, T57, nil))) → tappend38_out_aaa(nil, T57, node(nil, nil, node(nil, T57, nil)))
tappend38_in_aaa(node(T70, T71, nil), T57, node(T70, T71, node(nil, T57, nil))) → tappend38_out_aaa(node(T70, T71, nil), T57, node(T70, T71, node(nil, T57, nil)))
tappend38_in_aaa(nil, T89, node(X217, nil, nil)) → U4_aaa(T89, X217, tappend38_in_gaa(nil, T89, X217))
tappend38_in_gaa(nil, T30, node(nil, T30, nil)) → tappend38_out_gaa(nil, T30, node(nil, T30, nil))
tappend38_in_gaa(nil, T32, node(node(nil, T32, nil), nil, nil)) → tappend38_out_gaa(nil, T32, node(node(nil, T32, nil), nil, nil))
tappend38_in_gaa(node(nil, T43, T44), T32, node(node(nil, T32, nil), T43, T44)) → tappend38_out_gaa(node(nil, T43, T44), T32, node(node(nil, T32, nil), T43, T44))
tappend38_in_gaa(nil, T57, node(nil, nil, node(nil, T57, nil))) → tappend38_out_gaa(nil, T57, node(nil, nil, node(nil, T57, nil)))
tappend38_in_gaa(node(T70, T71, nil), T57, node(T70, T71, node(nil, T57, nil))) → tappend38_out_gaa(node(T70, T71, nil), T57, node(T70, T71, node(nil, T57, nil)))
tappend38_in_gaa(nil, T89, node(X217, nil, nil)) → U4_gaa(T89, X217, tappend38_in_gaa(nil, T89, X217))
tappend38_in_gaa(node(T107, T105, T106), T108, node(X217, T105, T106)) → U5_gaa(T107, T105, T106, T108, X217, tappend38_in_gaa(T107, T108, X217))
tappend38_in_gaa(node(T126, T124, T125), T127, node(X217, T124, T125)) → U6_gaa(T126, T124, T125, T127, X217, tappend38_in_gaa(T126, T127, X217))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, X300)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, X300))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X313, nil, nil))) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X313, nil, nil)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(nil, T160, T161)), T145, node(node(nil, T145, nil), T146, node(X313, T160, T161))) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(nil, T160, T161)), T145, node(node(nil, T145, nil), T146, node(X313, T160, T161)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X370))) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X370)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T186, T187, nil)), T145, node(node(nil, T145, nil), T146, node(T186, T187, X370))) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T186, T187, nil)), T145, node(node(nil, T145, nil), T146, node(T186, T187, X370)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X432, nil, nil))) → U7_gaa(T145, T146, X432, tappend151_in_gaa(nil, X431, X432))
tappend151_in_gaa(nil, X300, X300) → tappend151_out_gaa(nil, X300, X300)
tappend151_in_gaa(nil, X313, node(X313, nil, nil)) → tappend151_out_gaa(nil, X313, node(X313, nil, nil))
tappend151_in_gaa(node(nil, T160, T161), X313, node(X313, T160, T161)) → tappend151_out_gaa(node(nil, T160, T161), X313, node(X313, T160, T161))
tappend151_in_gaa(nil, X370, node(nil, nil, X370)) → tappend151_out_gaa(nil, X370, node(nil, nil, X370))
tappend151_in_gaa(node(T186, T187, nil), X370, node(T186, T187, X370)) → tappend151_out_gaa(node(T186, T187, nil), X370, node(T186, T187, X370))
tappend151_in_gaa(nil, X431, node(X432, nil, nil)) → U13_gaa(X431, X432, tappend151_in_gaa(nil, X431, X432))
tappend151_in_gaa(node(T218, T216, T217), X431, node(X432, T216, T217)) → U14_gaa(T218, T216, T217, X431, X432, tappend151_in_gaa(T218, X431, X432))
tappend151_in_gaa(node(T234, T232, T233), X431, node(X432, T232, T233)) → U15_gaa(T234, T232, T233, X431, X432, tappend151_in_gaa(T234, X431, X432))
tappend151_in_gaa(nil, nil, node(nil, nil, X489)) → U16_gaa(X489, tappend151_in_gaa(nil, X486, X489))
tappend151_in_gaa(node(T249, T250, T252), T249, node(T249, T250, X489)) → U17_gaa(T249, T250, T252, X489, tappend151_in_gaa(T252, X486, X489))
tappend151_in_gaa(node(T265, T266, T268), T265, node(T265, T266, X489)) → U18_gaa(T265, T266, T268, X489, tappend151_in_gaa(T268, X486, X489))
U18_gaa(T265, T266, T268, X489, tappend151_out_gaa(T268, X486, X489)) → tappend151_out_gaa(node(T265, T266, T268), T265, node(T265, T266, X489))
U17_gaa(T249, T250, T252, X489, tappend151_out_gaa(T252, X486, X489)) → tappend151_out_gaa(node(T249, T250, T252), T249, node(T249, T250, X489))
U16_gaa(X489, tappend151_out_gaa(nil, X486, X489)) → tappend151_out_gaa(nil, nil, node(nil, nil, X489))
U15_gaa(T234, T232, T233, X431, X432, tappend151_out_gaa(T234, X431, X432)) → tappend151_out_gaa(node(T234, T232, T233), X431, node(X432, T232, T233))
U14_gaa(T218, T216, T217, X431, X432, tappend151_out_gaa(T218, X431, X432)) → tappend151_out_gaa(node(T218, T216, T217), X431, node(X432, T216, T217))
U13_gaa(X431, X432, tappend151_out_gaa(nil, X431, X432)) → tappend151_out_gaa(nil, X431, node(X432, nil, nil))
U7_gaa(T145, T146, X432, tappend151_out_gaa(nil, X431, X432)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X432, nil, nil)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T218, T216, T217)), T145, node(node(nil, T145, nil), T146, node(X432, T216, T217))) → U8_gaa(T145, T146, T218, T216, T217, X432, tappend151_in_gaa(T218, X431, X432))
U8_gaa(T145, T146, T218, T216, T217, X432, tappend151_out_gaa(T218, X431, X432)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T218, T216, T217)), T145, node(node(nil, T145, nil), T146, node(X432, T216, T217)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T234, T232, T233)), T145, node(node(nil, T145, nil), T146, node(X432, T232, T233))) → U9_gaa(T145, T146, T234, T232, T233, X432, tappend151_in_gaa(T234, X431, X432))
U9_gaa(T145, T146, T234, T232, T233, X432, tappend151_out_gaa(T234, X431, X432)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T234, T232, T233)), T145, node(node(nil, T145, nil), T146, node(X432, T232, T233)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X489))) → U10_gaa(T145, T146, X489, tappend151_in_gaa(nil, X486, X489))
U10_gaa(T145, T146, X489, tappend151_out_gaa(nil, X486, X489)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X489)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T249, T250, T252)), T145, node(node(nil, T145, nil), T146, node(T249, T250, X489))) → U11_gaa(T145, T146, T249, T250, T252, X489, tappend151_in_gaa(T252, X486, X489))
U11_gaa(T145, T146, T249, T250, T252, X489, tappend151_out_gaa(T252, X486, X489)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T249, T250, T252)), T145, node(node(nil, T145, nil), T146, node(T249, T250, X489)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T265, T266, T268)), T145, node(node(nil, T145, nil), T146, node(T265, T266, X489))) → U12_gaa(T145, T146, T265, T266, T268, X489, tappend151_in_gaa(T268, X486, X489))
U12_gaa(T145, T146, T265, T266, T268, X489, tappend151_out_gaa(T268, X486, X489)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T265, T266, T268)), T145, node(node(nil, T145, nil), T146, node(T265, T266, X489)))
U6_gaa(T126, T124, T125, T127, X217, tappend38_out_gaa(T126, T127, X217)) → tappend38_out_gaa(node(T126, T124, T125), T127, node(X217, T124, T125))
U5_gaa(T107, T105, T106, T108, X217, tappend38_out_gaa(T107, T108, X217)) → tappend38_out_gaa(node(T107, T105, T106), T108, node(X217, T105, T106))
U4_gaa(T89, X217, tappend38_out_gaa(nil, T89, X217)) → tappend38_out_gaa(nil, T89, node(X217, nil, nil))
U4_aaa(T89, X217, tappend38_out_gaa(nil, T89, X217)) → tappend38_out_aaa(nil, T89, node(X217, nil, nil))
tappend38_in_aaa(node(T107, T105, T106), T108, node(X217, T105, T106)) → U5_aaa(T107, T105, T106, T108, X217, tappend38_in_aaa(T107, T108, X217))
tappend38_in_aaa(node(T126, T124, T125), T127, node(X217, T124, T125)) → U6_aaa(T126, T124, T125, T127, X217, tappend38_in_aaa(T126, T127, X217))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, X300)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, X300))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X313, nil, nil))) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X313, nil, nil)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(nil, T160, T161)), T145, node(node(nil, T145, nil), T146, node(X313, T160, T161))) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(nil, T160, T161)), T145, node(node(nil, T145, nil), T146, node(X313, T160, T161)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X370))) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X370)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T186, T187, nil)), T145, node(node(nil, T145, nil), T146, node(T186, T187, X370))) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T186, T187, nil)), T145, node(node(nil, T145, nil), T146, node(T186, T187, X370)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X432, nil, nil))) → U7_aaa(T145, T146, X432, tappend151_in_gaa(nil, X431, X432))
U7_aaa(T145, T146, X432, tappend151_out_gaa(nil, X431, X432)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X432, nil, nil)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T218, T216, T217)), T145, node(node(nil, T145, nil), T146, node(X432, T216, T217))) → U8_aaa(T145, T146, T218, T216, T217, X432, tappend151_in_aaa(T218, X431, X432))
tappend151_in_aaa(nil, X300, X300) → tappend151_out_aaa(nil, X300, X300)
tappend151_in_aaa(nil, X313, node(X313, nil, nil)) → tappend151_out_aaa(nil, X313, node(X313, nil, nil))
tappend151_in_aaa(node(nil, T160, T161), X313, node(X313, T160, T161)) → tappend151_out_aaa(node(nil, T160, T161), X313, node(X313, T160, T161))
tappend151_in_aaa(nil, X370, node(nil, nil, X370)) → tappend151_out_aaa(nil, X370, node(nil, nil, X370))
tappend151_in_aaa(node(T186, T187, nil), X370, node(T186, T187, X370)) → tappend151_out_aaa(node(T186, T187, nil), X370, node(T186, T187, X370))
tappend151_in_aaa(nil, X431, node(X432, nil, nil)) → U13_aaa(X431, X432, tappend151_in_gaa(nil, X431, X432))
U13_aaa(X431, X432, tappend151_out_gaa(nil, X431, X432)) → tappend151_out_aaa(nil, X431, node(X432, nil, nil))
tappend151_in_aaa(node(T218, T216, T217), X431, node(X432, T216, T217)) → U14_aaa(T218, T216, T217, X431, X432, tappend151_in_aaa(T218, X431, X432))
tappend151_in_aaa(node(T234, T232, T233), X431, node(X432, T232, T233)) → U15_aaa(T234, T232, T233, X431, X432, tappend151_in_aaa(T234, X431, X432))
tappend151_in_aaa(nil, nil, node(nil, nil, X489)) → U16_aaa(X489, tappend151_in_gaa(nil, X486, X489))
U16_aaa(X489, tappend151_out_gaa(nil, X486, X489)) → tappend151_out_aaa(nil, nil, node(nil, nil, X489))
tappend151_in_aaa(node(T249, T250, T252), T249, node(T249, T250, X489)) → U17_aaa(T249, T250, T252, X489, tappend151_in_aaa(T252, X486, X489))
tappend151_in_aaa(node(T265, T266, T268), T265, node(T265, T266, X489)) → U18_aaa(T265, T266, T268, X489, tappend151_in_aaa(T268, X486, X489))
U18_aaa(T265, T266, T268, X489, tappend151_out_aaa(T268, X486, X489)) → tappend151_out_aaa(node(T265, T266, T268), T265, node(T265, T266, X489))
U17_aaa(T249, T250, T252, X489, tappend151_out_aaa(T252, X486, X489)) → tappend151_out_aaa(node(T249, T250, T252), T249, node(T249, T250, X489))
U15_aaa(T234, T232, T233, X431, X432, tappend151_out_aaa(T234, X431, X432)) → tappend151_out_aaa(node(T234, T232, T233), X431, node(X432, T232, T233))
U14_aaa(T218, T216, T217, X431, X432, tappend151_out_aaa(T218, X431, X432)) → tappend151_out_aaa(node(T218, T216, T217), X431, node(X432, T216, T217))
U8_aaa(T145, T146, T218, T216, T217, X432, tappend151_out_aaa(T218, X431, X432)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T218, T216, T217)), T145, node(node(nil, T145, nil), T146, node(X432, T216, T217)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T234, T232, T233)), T145, node(node(nil, T145, nil), T146, node(X432, T232, T233))) → U9_aaa(T145, T146, T234, T232, T233, X432, tappend151_in_aaa(T234, X431, X432))
U9_aaa(T145, T146, T234, T232, T233, X432, tappend151_out_aaa(T234, X431, X432)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T234, T232, T233)), T145, node(node(nil, T145, nil), T146, node(X432, T232, T233)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X489))) → U10_aaa(T145, T146, X489, tappend151_in_gaa(nil, X486, X489))
U10_aaa(T145, T146, X489, tappend151_out_gaa(nil, X486, X489)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X489)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T249, T250, T252)), T145, node(node(nil, T145, nil), T146, node(T249, T250, X489))) → U11_aaa(T145, T146, T249, T250, T252, X489, tappend151_in_aaa(T252, X486, X489))
U11_aaa(T145, T146, T249, T250, T252, X489, tappend151_out_aaa(T252, X486, X489)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T249, T250, T252)), T145, node(node(nil, T145, nil), T146, node(T249, T250, X489)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T265, T266, T268)), T145, node(node(nil, T145, nil), T146, node(T265, T266, X489))) → U12_aaa(T145, T146, T265, T266, T268, X489, tappend151_in_aaa(T268, X486, X489))
U12_aaa(T145, T146, T265, T266, T268, X489, tappend151_out_aaa(T268, X486, X489)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T265, T266, T268)), T145, node(node(nil, T145, nil), T146, node(T265, T266, X489)))
U6_aaa(T126, T124, T125, T127, X217, tappend38_out_aaa(T126, T127, X217)) → tappend38_out_aaa(node(T126, T124, T125), T127, node(X217, T124, T125))
U5_aaa(T107, T105, T106, T108, X217, tappend38_out_aaa(T107, T108, X217)) → tappend38_out_aaa(node(T107, T105, T106), T108, node(X217, T105, T106))
U23_gaa(T7, T24, T25, tappend38_out_aaa(T23, T24, X81)) → goal1_out_gaa(T7, T24, T25)
goal1_in_gaa(T7, T24, T269) → U24_gaa(T7, T24, T269, s2t4_in_ga(T7, T23))
U24_gaa(T7, T24, T269, s2t4_out_ga(T7, T23)) → U25_gaa(T7, T24, T269, tappend38_in_aaa(T23, T24, node(nil, T269, nil)))
U25_gaa(T7, T24, T269, tappend38_out_aaa(T23, T24, node(nil, T269, nil))) → goal1_out_gaa(T7, T24, T269)
goal1_in_gaa(T7, T24, T274) → U26_gaa(T7, T24, T274, s2t4_in_ga(T7, T23))
U26_gaa(T7, T24, T274, s2t4_out_ga(T7, T23)) → U27_gaa(T7, T24, T274, tappend38_in_aaa(T23, T24, node(T275, T272, T273)))
U27_gaa(T7, T24, T274, tappend38_out_aaa(T23, T24, node(T275, T272, T273))) → U28_gaa(T7, T24, T274, tlast39_in_aa(T274, T275))
tlast39_in_aa(T269, node(nil, T269, nil)) → tlast39_out_aa(T269, node(nil, T269, nil))
tlast39_in_aa(T274, node(T275, T272, T273)) → U19_aa(T274, T275, T272, T273, tlast39_in_aa(T274, T275))
tlast39_in_aa(T280, node(T277, T278, T281)) → U20_aa(T280, T277, T278, T281, tlast39_in_aa(T280, T281))
U20_aa(T280, T277, T278, T281, tlast39_out_aa(T280, T281)) → tlast39_out_aa(T280, node(T277, T278, T281))
U19_aa(T274, T275, T272, T273, tlast39_out_aa(T274, T275)) → tlast39_out_aa(T274, node(T275, T272, T273))
U28_gaa(T7, T24, T274, tlast39_out_aa(T274, T275)) → goal1_out_gaa(T7, T24, T274)
goal1_in_gaa(T7, T24, T280) → U29_gaa(T7, T24, T280, s2t4_in_ga(T7, T23))
U29_gaa(T7, T24, T280, s2t4_out_ga(T7, T23)) → U30_gaa(T7, T24, T280, tappend38_in_aaa(T23, T24, node(T277, T278, T281)))
U30_gaa(T7, T24, T280, tappend38_out_aaa(T23, T24, node(T277, T278, T281))) → U31_gaa(T7, T24, T280, tlast39_in_aa(T280, T281))
U31_gaa(T7, T24, T280, tlast39_out_aa(T280, T281)) → goal1_out_gaa(T7, T24, T280)
TLAST39_IN_AA(T280, node(T277, T278, T281)) → TLAST39_IN_AA(T280, T281)
TLAST39_IN_AA(T274, node(T275, T272, T273)) → TLAST39_IN_AA(T274, T275)
TLAST39_IN_AA → TLAST39_IN_AA
TAPPEND151_IN_GAA(nil, nil, node(nil, nil, X489)) → TAPPEND151_IN_GAA(nil, X486, X489)
TAPPEND151_IN_GAA(nil, X431, node(X432, nil, nil)) → TAPPEND151_IN_GAA(nil, X431, X432)
goal1_in_gaa(T7, T10, T11) → U21_gaa(T7, T10, T11, s2t4_in_ga(T7, X21))
s2t4_in_ga(0, nil) → s2t4_out_ga(0, nil)
s2t4_in_ga(s(T14), node(X38, X39, X38)) → U1_ga(T14, X38, X39, s2t4_in_ga(T14, X38))
s2t4_in_ga(s(T16), node(nil, X52, X53)) → U2_ga(T16, X52, X53, s2t4_in_ga(T16, X53))
s2t4_in_ga(s(T18), node(X66, X67, nil)) → U3_ga(T18, X66, X67, s2t4_in_ga(T18, X66))
s2t4_in_ga(T19, node(nil, X74, nil)) → s2t4_out_ga(T19, node(nil, X74, nil))
U3_ga(T18, X66, X67, s2t4_out_ga(T18, X66)) → s2t4_out_ga(s(T18), node(X66, X67, nil))
U2_ga(T16, X52, X53, s2t4_out_ga(T16, X53)) → s2t4_out_ga(s(T16), node(nil, X52, X53))
U1_ga(T14, X38, X39, s2t4_out_ga(T14, X38)) → s2t4_out_ga(s(T14), node(X38, X39, X38))
U21_gaa(T7, T10, T11, s2t4_out_ga(T7, X21)) → goal1_out_gaa(T7, T10, T11)
goal1_in_gaa(T7, T24, T25) → U22_gaa(T7, T24, T25, s2t4_in_ga(T7, T23))
U22_gaa(T7, T24, T25, s2t4_out_ga(T7, T23)) → U23_gaa(T7, T24, T25, tappend38_in_aaa(T23, T24, X81))
tappend38_in_aaa(nil, T30, node(nil, T30, nil)) → tappend38_out_aaa(nil, T30, node(nil, T30, nil))
tappend38_in_aaa(nil, T32, node(node(nil, T32, nil), nil, nil)) → tappend38_out_aaa(nil, T32, node(node(nil, T32, nil), nil, nil))
tappend38_in_aaa(node(nil, T43, T44), T32, node(node(nil, T32, nil), T43, T44)) → tappend38_out_aaa(node(nil, T43, T44), T32, node(node(nil, T32, nil), T43, T44))
tappend38_in_aaa(nil, T57, node(nil, nil, node(nil, T57, nil))) → tappend38_out_aaa(nil, T57, node(nil, nil, node(nil, T57, nil)))
tappend38_in_aaa(node(T70, T71, nil), T57, node(T70, T71, node(nil, T57, nil))) → tappend38_out_aaa(node(T70, T71, nil), T57, node(T70, T71, node(nil, T57, nil)))
tappend38_in_aaa(nil, T89, node(X217, nil, nil)) → U4_aaa(T89, X217, tappend38_in_gaa(nil, T89, X217))
tappend38_in_gaa(nil, T30, node(nil, T30, nil)) → tappend38_out_gaa(nil, T30, node(nil, T30, nil))
tappend38_in_gaa(nil, T32, node(node(nil, T32, nil), nil, nil)) → tappend38_out_gaa(nil, T32, node(node(nil, T32, nil), nil, nil))
tappend38_in_gaa(node(nil, T43, T44), T32, node(node(nil, T32, nil), T43, T44)) → tappend38_out_gaa(node(nil, T43, T44), T32, node(node(nil, T32, nil), T43, T44))
tappend38_in_gaa(nil, T57, node(nil, nil, node(nil, T57, nil))) → tappend38_out_gaa(nil, T57, node(nil, nil, node(nil, T57, nil)))
tappend38_in_gaa(node(T70, T71, nil), T57, node(T70, T71, node(nil, T57, nil))) → tappend38_out_gaa(node(T70, T71, nil), T57, node(T70, T71, node(nil, T57, nil)))
tappend38_in_gaa(nil, T89, node(X217, nil, nil)) → U4_gaa(T89, X217, tappend38_in_gaa(nil, T89, X217))
tappend38_in_gaa(node(T107, T105, T106), T108, node(X217, T105, T106)) → U5_gaa(T107, T105, T106, T108, X217, tappend38_in_gaa(T107, T108, X217))
tappend38_in_gaa(node(T126, T124, T125), T127, node(X217, T124, T125)) → U6_gaa(T126, T124, T125, T127, X217, tappend38_in_gaa(T126, T127, X217))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, X300)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, X300))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X313, nil, nil))) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X313, nil, nil)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(nil, T160, T161)), T145, node(node(nil, T145, nil), T146, node(X313, T160, T161))) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(nil, T160, T161)), T145, node(node(nil, T145, nil), T146, node(X313, T160, T161)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X370))) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X370)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T186, T187, nil)), T145, node(node(nil, T145, nil), T146, node(T186, T187, X370))) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T186, T187, nil)), T145, node(node(nil, T145, nil), T146, node(T186, T187, X370)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X432, nil, nil))) → U7_gaa(T145, T146, X432, tappend151_in_gaa(nil, X431, X432))
tappend151_in_gaa(nil, X300, X300) → tappend151_out_gaa(nil, X300, X300)
tappend151_in_gaa(nil, X313, node(X313, nil, nil)) → tappend151_out_gaa(nil, X313, node(X313, nil, nil))
tappend151_in_gaa(node(nil, T160, T161), X313, node(X313, T160, T161)) → tappend151_out_gaa(node(nil, T160, T161), X313, node(X313, T160, T161))
tappend151_in_gaa(nil, X370, node(nil, nil, X370)) → tappend151_out_gaa(nil, X370, node(nil, nil, X370))
tappend151_in_gaa(node(T186, T187, nil), X370, node(T186, T187, X370)) → tappend151_out_gaa(node(T186, T187, nil), X370, node(T186, T187, X370))
tappend151_in_gaa(nil, X431, node(X432, nil, nil)) → U13_gaa(X431, X432, tappend151_in_gaa(nil, X431, X432))
tappend151_in_gaa(node(T218, T216, T217), X431, node(X432, T216, T217)) → U14_gaa(T218, T216, T217, X431, X432, tappend151_in_gaa(T218, X431, X432))
tappend151_in_gaa(node(T234, T232, T233), X431, node(X432, T232, T233)) → U15_gaa(T234, T232, T233, X431, X432, tappend151_in_gaa(T234, X431, X432))
tappend151_in_gaa(nil, nil, node(nil, nil, X489)) → U16_gaa(X489, tappend151_in_gaa(nil, X486, X489))
tappend151_in_gaa(node(T249, T250, T252), T249, node(T249, T250, X489)) → U17_gaa(T249, T250, T252, X489, tappend151_in_gaa(T252, X486, X489))
tappend151_in_gaa(node(T265, T266, T268), T265, node(T265, T266, X489)) → U18_gaa(T265, T266, T268, X489, tappend151_in_gaa(T268, X486, X489))
U18_gaa(T265, T266, T268, X489, tappend151_out_gaa(T268, X486, X489)) → tappend151_out_gaa(node(T265, T266, T268), T265, node(T265, T266, X489))
U17_gaa(T249, T250, T252, X489, tappend151_out_gaa(T252, X486, X489)) → tappend151_out_gaa(node(T249, T250, T252), T249, node(T249, T250, X489))
U16_gaa(X489, tappend151_out_gaa(nil, X486, X489)) → tappend151_out_gaa(nil, nil, node(nil, nil, X489))
U15_gaa(T234, T232, T233, X431, X432, tappend151_out_gaa(T234, X431, X432)) → tappend151_out_gaa(node(T234, T232, T233), X431, node(X432, T232, T233))
U14_gaa(T218, T216, T217, X431, X432, tappend151_out_gaa(T218, X431, X432)) → tappend151_out_gaa(node(T218, T216, T217), X431, node(X432, T216, T217))
U13_gaa(X431, X432, tappend151_out_gaa(nil, X431, X432)) → tappend151_out_gaa(nil, X431, node(X432, nil, nil))
U7_gaa(T145, T146, X432, tappend151_out_gaa(nil, X431, X432)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X432, nil, nil)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T218, T216, T217)), T145, node(node(nil, T145, nil), T146, node(X432, T216, T217))) → U8_gaa(T145, T146, T218, T216, T217, X432, tappend151_in_gaa(T218, X431, X432))
U8_gaa(T145, T146, T218, T216, T217, X432, tappend151_out_gaa(T218, X431, X432)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T218, T216, T217)), T145, node(node(nil, T145, nil), T146, node(X432, T216, T217)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T234, T232, T233)), T145, node(node(nil, T145, nil), T146, node(X432, T232, T233))) → U9_gaa(T145, T146, T234, T232, T233, X432, tappend151_in_gaa(T234, X431, X432))
U9_gaa(T145, T146, T234, T232, T233, X432, tappend151_out_gaa(T234, X431, X432)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T234, T232, T233)), T145, node(node(nil, T145, nil), T146, node(X432, T232, T233)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X489))) → U10_gaa(T145, T146, X489, tappend151_in_gaa(nil, X486, X489))
U10_gaa(T145, T146, X489, tappend151_out_gaa(nil, X486, X489)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X489)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T249, T250, T252)), T145, node(node(nil, T145, nil), T146, node(T249, T250, X489))) → U11_gaa(T145, T146, T249, T250, T252, X489, tappend151_in_gaa(T252, X486, X489))
U11_gaa(T145, T146, T249, T250, T252, X489, tappend151_out_gaa(T252, X486, X489)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T249, T250, T252)), T145, node(node(nil, T145, nil), T146, node(T249, T250, X489)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T265, T266, T268)), T145, node(node(nil, T145, nil), T146, node(T265, T266, X489))) → U12_gaa(T145, T146, T265, T266, T268, X489, tappend151_in_gaa(T268, X486, X489))
U12_gaa(T145, T146, T265, T266, T268, X489, tappend151_out_gaa(T268, X486, X489)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T265, T266, T268)), T145, node(node(nil, T145, nil), T146, node(T265, T266, X489)))
U6_gaa(T126, T124, T125, T127, X217, tappend38_out_gaa(T126, T127, X217)) → tappend38_out_gaa(node(T126, T124, T125), T127, node(X217, T124, T125))
U5_gaa(T107, T105, T106, T108, X217, tappend38_out_gaa(T107, T108, X217)) → tappend38_out_gaa(node(T107, T105, T106), T108, node(X217, T105, T106))
U4_gaa(T89, X217, tappend38_out_gaa(nil, T89, X217)) → tappend38_out_gaa(nil, T89, node(X217, nil, nil))
U4_aaa(T89, X217, tappend38_out_gaa(nil, T89, X217)) → tappend38_out_aaa(nil, T89, node(X217, nil, nil))
tappend38_in_aaa(node(T107, T105, T106), T108, node(X217, T105, T106)) → U5_aaa(T107, T105, T106, T108, X217, tappend38_in_aaa(T107, T108, X217))
tappend38_in_aaa(node(T126, T124, T125), T127, node(X217, T124, T125)) → U6_aaa(T126, T124, T125, T127, X217, tappend38_in_aaa(T126, T127, X217))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, X300)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, X300))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X313, nil, nil))) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X313, nil, nil)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(nil, T160, T161)), T145, node(node(nil, T145, nil), T146, node(X313, T160, T161))) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(nil, T160, T161)), T145, node(node(nil, T145, nil), T146, node(X313, T160, T161)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X370))) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X370)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T186, T187, nil)), T145, node(node(nil, T145, nil), T146, node(T186, T187, X370))) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T186, T187, nil)), T145, node(node(nil, T145, nil), T146, node(T186, T187, X370)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X432, nil, nil))) → U7_aaa(T145, T146, X432, tappend151_in_gaa(nil, X431, X432))
U7_aaa(T145, T146, X432, tappend151_out_gaa(nil, X431, X432)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X432, nil, nil)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T218, T216, T217)), T145, node(node(nil, T145, nil), T146, node(X432, T216, T217))) → U8_aaa(T145, T146, T218, T216, T217, X432, tappend151_in_aaa(T218, X431, X432))
tappend151_in_aaa(nil, X300, X300) → tappend151_out_aaa(nil, X300, X300)
tappend151_in_aaa(nil, X313, node(X313, nil, nil)) → tappend151_out_aaa(nil, X313, node(X313, nil, nil))
tappend151_in_aaa(node(nil, T160, T161), X313, node(X313, T160, T161)) → tappend151_out_aaa(node(nil, T160, T161), X313, node(X313, T160, T161))
tappend151_in_aaa(nil, X370, node(nil, nil, X370)) → tappend151_out_aaa(nil, X370, node(nil, nil, X370))
tappend151_in_aaa(node(T186, T187, nil), X370, node(T186, T187, X370)) → tappend151_out_aaa(node(T186, T187, nil), X370, node(T186, T187, X370))
tappend151_in_aaa(nil, X431, node(X432, nil, nil)) → U13_aaa(X431, X432, tappend151_in_gaa(nil, X431, X432))
U13_aaa(X431, X432, tappend151_out_gaa(nil, X431, X432)) → tappend151_out_aaa(nil, X431, node(X432, nil, nil))
tappend151_in_aaa(node(T218, T216, T217), X431, node(X432, T216, T217)) → U14_aaa(T218, T216, T217, X431, X432, tappend151_in_aaa(T218, X431, X432))
tappend151_in_aaa(node(T234, T232, T233), X431, node(X432, T232, T233)) → U15_aaa(T234, T232, T233, X431, X432, tappend151_in_aaa(T234, X431, X432))
tappend151_in_aaa(nil, nil, node(nil, nil, X489)) → U16_aaa(X489, tappend151_in_gaa(nil, X486, X489))
U16_aaa(X489, tappend151_out_gaa(nil, X486, X489)) → tappend151_out_aaa(nil, nil, node(nil, nil, X489))
tappend151_in_aaa(node(T249, T250, T252), T249, node(T249, T250, X489)) → U17_aaa(T249, T250, T252, X489, tappend151_in_aaa(T252, X486, X489))
tappend151_in_aaa(node(T265, T266, T268), T265, node(T265, T266, X489)) → U18_aaa(T265, T266, T268, X489, tappend151_in_aaa(T268, X486, X489))
U18_aaa(T265, T266, T268, X489, tappend151_out_aaa(T268, X486, X489)) → tappend151_out_aaa(node(T265, T266, T268), T265, node(T265, T266, X489))
U17_aaa(T249, T250, T252, X489, tappend151_out_aaa(T252, X486, X489)) → tappend151_out_aaa(node(T249, T250, T252), T249, node(T249, T250, X489))
U15_aaa(T234, T232, T233, X431, X432, tappend151_out_aaa(T234, X431, X432)) → tappend151_out_aaa(node(T234, T232, T233), X431, node(X432, T232, T233))
U14_aaa(T218, T216, T217, X431, X432, tappend151_out_aaa(T218, X431, X432)) → tappend151_out_aaa(node(T218, T216, T217), X431, node(X432, T216, T217))
U8_aaa(T145, T146, T218, T216, T217, X432, tappend151_out_aaa(T218, X431, X432)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T218, T216, T217)), T145, node(node(nil, T145, nil), T146, node(X432, T216, T217)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T234, T232, T233)), T145, node(node(nil, T145, nil), T146, node(X432, T232, T233))) → U9_aaa(T145, T146, T234, T232, T233, X432, tappend151_in_aaa(T234, X431, X432))
U9_aaa(T145, T146, T234, T232, T233, X432, tappend151_out_aaa(T234, X431, X432)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T234, T232, T233)), T145, node(node(nil, T145, nil), T146, node(X432, T232, T233)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X489))) → U10_aaa(T145, T146, X489, tappend151_in_gaa(nil, X486, X489))
U10_aaa(T145, T146, X489, tappend151_out_gaa(nil, X486, X489)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X489)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T249, T250, T252)), T145, node(node(nil, T145, nil), T146, node(T249, T250, X489))) → U11_aaa(T145, T146, T249, T250, T252, X489, tappend151_in_aaa(T252, X486, X489))
U11_aaa(T145, T146, T249, T250, T252, X489, tappend151_out_aaa(T252, X486, X489)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T249, T250, T252)), T145, node(node(nil, T145, nil), T146, node(T249, T250, X489)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T265, T266, T268)), T145, node(node(nil, T145, nil), T146, node(T265, T266, X489))) → U12_aaa(T145, T146, T265, T266, T268, X489, tappend151_in_aaa(T268, X486, X489))
U12_aaa(T145, T146, T265, T266, T268, X489, tappend151_out_aaa(T268, X486, X489)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T265, T266, T268)), T145, node(node(nil, T145, nil), T146, node(T265, T266, X489)))
U6_aaa(T126, T124, T125, T127, X217, tappend38_out_aaa(T126, T127, X217)) → tappend38_out_aaa(node(T126, T124, T125), T127, node(X217, T124, T125))
U5_aaa(T107, T105, T106, T108, X217, tappend38_out_aaa(T107, T108, X217)) → tappend38_out_aaa(node(T107, T105, T106), T108, node(X217, T105, T106))
U23_gaa(T7, T24, T25, tappend38_out_aaa(T23, T24, X81)) → goal1_out_gaa(T7, T24, T25)
goal1_in_gaa(T7, T24, T269) → U24_gaa(T7, T24, T269, s2t4_in_ga(T7, T23))
U24_gaa(T7, T24, T269, s2t4_out_ga(T7, T23)) → U25_gaa(T7, T24, T269, tappend38_in_aaa(T23, T24, node(nil, T269, nil)))
U25_gaa(T7, T24, T269, tappend38_out_aaa(T23, T24, node(nil, T269, nil))) → goal1_out_gaa(T7, T24, T269)
goal1_in_gaa(T7, T24, T274) → U26_gaa(T7, T24, T274, s2t4_in_ga(T7, T23))
U26_gaa(T7, T24, T274, s2t4_out_ga(T7, T23)) → U27_gaa(T7, T24, T274, tappend38_in_aaa(T23, T24, node(T275, T272, T273)))
U27_gaa(T7, T24, T274, tappend38_out_aaa(T23, T24, node(T275, T272, T273))) → U28_gaa(T7, T24, T274, tlast39_in_aa(T274, T275))
tlast39_in_aa(T269, node(nil, T269, nil)) → tlast39_out_aa(T269, node(nil, T269, nil))
tlast39_in_aa(T274, node(T275, T272, T273)) → U19_aa(T274, T275, T272, T273, tlast39_in_aa(T274, T275))
tlast39_in_aa(T280, node(T277, T278, T281)) → U20_aa(T280, T277, T278, T281, tlast39_in_aa(T280, T281))
U20_aa(T280, T277, T278, T281, tlast39_out_aa(T280, T281)) → tlast39_out_aa(T280, node(T277, T278, T281))
U19_aa(T274, T275, T272, T273, tlast39_out_aa(T274, T275)) → tlast39_out_aa(T274, node(T275, T272, T273))
U28_gaa(T7, T24, T274, tlast39_out_aa(T274, T275)) → goal1_out_gaa(T7, T24, T274)
goal1_in_gaa(T7, T24, T280) → U29_gaa(T7, T24, T280, s2t4_in_ga(T7, T23))
U29_gaa(T7, T24, T280, s2t4_out_ga(T7, T23)) → U30_gaa(T7, T24, T280, tappend38_in_aaa(T23, T24, node(T277, T278, T281)))
U30_gaa(T7, T24, T280, tappend38_out_aaa(T23, T24, node(T277, T278, T281))) → U31_gaa(T7, T24, T280, tlast39_in_aa(T280, T281))
U31_gaa(T7, T24, T280, tlast39_out_aa(T280, T281)) → goal1_out_gaa(T7, T24, T280)
TAPPEND151_IN_GAA(nil, nil, node(nil, nil, X489)) → TAPPEND151_IN_GAA(nil, X486, X489)
TAPPEND151_IN_GAA(nil, X431, node(X432, nil, nil)) → TAPPEND151_IN_GAA(nil, X431, X432)
TAPPEND151_IN_GAA(nil) → TAPPEND151_IN_GAA(nil)
TAPPEND151_IN_AAA(node(T249, T250, T252), T249, node(T249, T250, X489)) → TAPPEND151_IN_AAA(T252, X486, X489)
TAPPEND151_IN_AAA(node(T218, T216, T217), X431, node(X432, T216, T217)) → TAPPEND151_IN_AAA(T218, X431, X432)
goal1_in_gaa(T7, T10, T11) → U21_gaa(T7, T10, T11, s2t4_in_ga(T7, X21))
s2t4_in_ga(0, nil) → s2t4_out_ga(0, nil)
s2t4_in_ga(s(T14), node(X38, X39, X38)) → U1_ga(T14, X38, X39, s2t4_in_ga(T14, X38))
s2t4_in_ga(s(T16), node(nil, X52, X53)) → U2_ga(T16, X52, X53, s2t4_in_ga(T16, X53))
s2t4_in_ga(s(T18), node(X66, X67, nil)) → U3_ga(T18, X66, X67, s2t4_in_ga(T18, X66))
s2t4_in_ga(T19, node(nil, X74, nil)) → s2t4_out_ga(T19, node(nil, X74, nil))
U3_ga(T18, X66, X67, s2t4_out_ga(T18, X66)) → s2t4_out_ga(s(T18), node(X66, X67, nil))
U2_ga(T16, X52, X53, s2t4_out_ga(T16, X53)) → s2t4_out_ga(s(T16), node(nil, X52, X53))
U1_ga(T14, X38, X39, s2t4_out_ga(T14, X38)) → s2t4_out_ga(s(T14), node(X38, X39, X38))
U21_gaa(T7, T10, T11, s2t4_out_ga(T7, X21)) → goal1_out_gaa(T7, T10, T11)
goal1_in_gaa(T7, T24, T25) → U22_gaa(T7, T24, T25, s2t4_in_ga(T7, T23))
U22_gaa(T7, T24, T25, s2t4_out_ga(T7, T23)) → U23_gaa(T7, T24, T25, tappend38_in_aaa(T23, T24, X81))
tappend38_in_aaa(nil, T30, node(nil, T30, nil)) → tappend38_out_aaa(nil, T30, node(nil, T30, nil))
tappend38_in_aaa(nil, T32, node(node(nil, T32, nil), nil, nil)) → tappend38_out_aaa(nil, T32, node(node(nil, T32, nil), nil, nil))
tappend38_in_aaa(node(nil, T43, T44), T32, node(node(nil, T32, nil), T43, T44)) → tappend38_out_aaa(node(nil, T43, T44), T32, node(node(nil, T32, nil), T43, T44))
tappend38_in_aaa(nil, T57, node(nil, nil, node(nil, T57, nil))) → tappend38_out_aaa(nil, T57, node(nil, nil, node(nil, T57, nil)))
tappend38_in_aaa(node(T70, T71, nil), T57, node(T70, T71, node(nil, T57, nil))) → tappend38_out_aaa(node(T70, T71, nil), T57, node(T70, T71, node(nil, T57, nil)))
tappend38_in_aaa(nil, T89, node(X217, nil, nil)) → U4_aaa(T89, X217, tappend38_in_gaa(nil, T89, X217))
tappend38_in_gaa(nil, T30, node(nil, T30, nil)) → tappend38_out_gaa(nil, T30, node(nil, T30, nil))
tappend38_in_gaa(nil, T32, node(node(nil, T32, nil), nil, nil)) → tappend38_out_gaa(nil, T32, node(node(nil, T32, nil), nil, nil))
tappend38_in_gaa(node(nil, T43, T44), T32, node(node(nil, T32, nil), T43, T44)) → tappend38_out_gaa(node(nil, T43, T44), T32, node(node(nil, T32, nil), T43, T44))
tappend38_in_gaa(nil, T57, node(nil, nil, node(nil, T57, nil))) → tappend38_out_gaa(nil, T57, node(nil, nil, node(nil, T57, nil)))
tappend38_in_gaa(node(T70, T71, nil), T57, node(T70, T71, node(nil, T57, nil))) → tappend38_out_gaa(node(T70, T71, nil), T57, node(T70, T71, node(nil, T57, nil)))
tappend38_in_gaa(nil, T89, node(X217, nil, nil)) → U4_gaa(T89, X217, tappend38_in_gaa(nil, T89, X217))
tappend38_in_gaa(node(T107, T105, T106), T108, node(X217, T105, T106)) → U5_gaa(T107, T105, T106, T108, X217, tappend38_in_gaa(T107, T108, X217))
tappend38_in_gaa(node(T126, T124, T125), T127, node(X217, T124, T125)) → U6_gaa(T126, T124, T125, T127, X217, tappend38_in_gaa(T126, T127, X217))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, X300)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, X300))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X313, nil, nil))) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X313, nil, nil)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(nil, T160, T161)), T145, node(node(nil, T145, nil), T146, node(X313, T160, T161))) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(nil, T160, T161)), T145, node(node(nil, T145, nil), T146, node(X313, T160, T161)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X370))) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X370)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T186, T187, nil)), T145, node(node(nil, T145, nil), T146, node(T186, T187, X370))) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T186, T187, nil)), T145, node(node(nil, T145, nil), T146, node(T186, T187, X370)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X432, nil, nil))) → U7_gaa(T145, T146, X432, tappend151_in_gaa(nil, X431, X432))
tappend151_in_gaa(nil, X300, X300) → tappend151_out_gaa(nil, X300, X300)
tappend151_in_gaa(nil, X313, node(X313, nil, nil)) → tappend151_out_gaa(nil, X313, node(X313, nil, nil))
tappend151_in_gaa(node(nil, T160, T161), X313, node(X313, T160, T161)) → tappend151_out_gaa(node(nil, T160, T161), X313, node(X313, T160, T161))
tappend151_in_gaa(nil, X370, node(nil, nil, X370)) → tappend151_out_gaa(nil, X370, node(nil, nil, X370))
tappend151_in_gaa(node(T186, T187, nil), X370, node(T186, T187, X370)) → tappend151_out_gaa(node(T186, T187, nil), X370, node(T186, T187, X370))
tappend151_in_gaa(nil, X431, node(X432, nil, nil)) → U13_gaa(X431, X432, tappend151_in_gaa(nil, X431, X432))
tappend151_in_gaa(node(T218, T216, T217), X431, node(X432, T216, T217)) → U14_gaa(T218, T216, T217, X431, X432, tappend151_in_gaa(T218, X431, X432))
tappend151_in_gaa(node(T234, T232, T233), X431, node(X432, T232, T233)) → U15_gaa(T234, T232, T233, X431, X432, tappend151_in_gaa(T234, X431, X432))
tappend151_in_gaa(nil, nil, node(nil, nil, X489)) → U16_gaa(X489, tappend151_in_gaa(nil, X486, X489))
tappend151_in_gaa(node(T249, T250, T252), T249, node(T249, T250, X489)) → U17_gaa(T249, T250, T252, X489, tappend151_in_gaa(T252, X486, X489))
tappend151_in_gaa(node(T265, T266, T268), T265, node(T265, T266, X489)) → U18_gaa(T265, T266, T268, X489, tappend151_in_gaa(T268, X486, X489))
U18_gaa(T265, T266, T268, X489, tappend151_out_gaa(T268, X486, X489)) → tappend151_out_gaa(node(T265, T266, T268), T265, node(T265, T266, X489))
U17_gaa(T249, T250, T252, X489, tappend151_out_gaa(T252, X486, X489)) → tappend151_out_gaa(node(T249, T250, T252), T249, node(T249, T250, X489))
U16_gaa(X489, tappend151_out_gaa(nil, X486, X489)) → tappend151_out_gaa(nil, nil, node(nil, nil, X489))
U15_gaa(T234, T232, T233, X431, X432, tappend151_out_gaa(T234, X431, X432)) → tappend151_out_gaa(node(T234, T232, T233), X431, node(X432, T232, T233))
U14_gaa(T218, T216, T217, X431, X432, tappend151_out_gaa(T218, X431, X432)) → tappend151_out_gaa(node(T218, T216, T217), X431, node(X432, T216, T217))
U13_gaa(X431, X432, tappend151_out_gaa(nil, X431, X432)) → tappend151_out_gaa(nil, X431, node(X432, nil, nil))
U7_gaa(T145, T146, X432, tappend151_out_gaa(nil, X431, X432)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X432, nil, nil)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T218, T216, T217)), T145, node(node(nil, T145, nil), T146, node(X432, T216, T217))) → U8_gaa(T145, T146, T218, T216, T217, X432, tappend151_in_gaa(T218, X431, X432))
U8_gaa(T145, T146, T218, T216, T217, X432, tappend151_out_gaa(T218, X431, X432)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T218, T216, T217)), T145, node(node(nil, T145, nil), T146, node(X432, T216, T217)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T234, T232, T233)), T145, node(node(nil, T145, nil), T146, node(X432, T232, T233))) → U9_gaa(T145, T146, T234, T232, T233, X432, tappend151_in_gaa(T234, X431, X432))
U9_gaa(T145, T146, T234, T232, T233, X432, tappend151_out_gaa(T234, X431, X432)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T234, T232, T233)), T145, node(node(nil, T145, nil), T146, node(X432, T232, T233)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X489))) → U10_gaa(T145, T146, X489, tappend151_in_gaa(nil, X486, X489))
U10_gaa(T145, T146, X489, tappend151_out_gaa(nil, X486, X489)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X489)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T249, T250, T252)), T145, node(node(nil, T145, nil), T146, node(T249, T250, X489))) → U11_gaa(T145, T146, T249, T250, T252, X489, tappend151_in_gaa(T252, X486, X489))
U11_gaa(T145, T146, T249, T250, T252, X489, tappend151_out_gaa(T252, X486, X489)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T249, T250, T252)), T145, node(node(nil, T145, nil), T146, node(T249, T250, X489)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T265, T266, T268)), T145, node(node(nil, T145, nil), T146, node(T265, T266, X489))) → U12_gaa(T145, T146, T265, T266, T268, X489, tappend151_in_gaa(T268, X486, X489))
U12_gaa(T145, T146, T265, T266, T268, X489, tappend151_out_gaa(T268, X486, X489)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T265, T266, T268)), T145, node(node(nil, T145, nil), T146, node(T265, T266, X489)))
U6_gaa(T126, T124, T125, T127, X217, tappend38_out_gaa(T126, T127, X217)) → tappend38_out_gaa(node(T126, T124, T125), T127, node(X217, T124, T125))
U5_gaa(T107, T105, T106, T108, X217, tappend38_out_gaa(T107, T108, X217)) → tappend38_out_gaa(node(T107, T105, T106), T108, node(X217, T105, T106))
U4_gaa(T89, X217, tappend38_out_gaa(nil, T89, X217)) → tappend38_out_gaa(nil, T89, node(X217, nil, nil))
U4_aaa(T89, X217, tappend38_out_gaa(nil, T89, X217)) → tappend38_out_aaa(nil, T89, node(X217, nil, nil))
tappend38_in_aaa(node(T107, T105, T106), T108, node(X217, T105, T106)) → U5_aaa(T107, T105, T106, T108, X217, tappend38_in_aaa(T107, T108, X217))
tappend38_in_aaa(node(T126, T124, T125), T127, node(X217, T124, T125)) → U6_aaa(T126, T124, T125, T127, X217, tappend38_in_aaa(T126, T127, X217))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, X300)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, X300))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X313, nil, nil))) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X313, nil, nil)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(nil, T160, T161)), T145, node(node(nil, T145, nil), T146, node(X313, T160, T161))) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(nil, T160, T161)), T145, node(node(nil, T145, nil), T146, node(X313, T160, T161)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X370))) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X370)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T186, T187, nil)), T145, node(node(nil, T145, nil), T146, node(T186, T187, X370))) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T186, T187, nil)), T145, node(node(nil, T145, nil), T146, node(T186, T187, X370)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X432, nil, nil))) → U7_aaa(T145, T146, X432, tappend151_in_gaa(nil, X431, X432))
U7_aaa(T145, T146, X432, tappend151_out_gaa(nil, X431, X432)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X432, nil, nil)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T218, T216, T217)), T145, node(node(nil, T145, nil), T146, node(X432, T216, T217))) → U8_aaa(T145, T146, T218, T216, T217, X432, tappend151_in_aaa(T218, X431, X432))
tappend151_in_aaa(nil, X300, X300) → tappend151_out_aaa(nil, X300, X300)
tappend151_in_aaa(nil, X313, node(X313, nil, nil)) → tappend151_out_aaa(nil, X313, node(X313, nil, nil))
tappend151_in_aaa(node(nil, T160, T161), X313, node(X313, T160, T161)) → tappend151_out_aaa(node(nil, T160, T161), X313, node(X313, T160, T161))
tappend151_in_aaa(nil, X370, node(nil, nil, X370)) → tappend151_out_aaa(nil, X370, node(nil, nil, X370))
tappend151_in_aaa(node(T186, T187, nil), X370, node(T186, T187, X370)) → tappend151_out_aaa(node(T186, T187, nil), X370, node(T186, T187, X370))
tappend151_in_aaa(nil, X431, node(X432, nil, nil)) → U13_aaa(X431, X432, tappend151_in_gaa(nil, X431, X432))
U13_aaa(X431, X432, tappend151_out_gaa(nil, X431, X432)) → tappend151_out_aaa(nil, X431, node(X432, nil, nil))
tappend151_in_aaa(node(T218, T216, T217), X431, node(X432, T216, T217)) → U14_aaa(T218, T216, T217, X431, X432, tappend151_in_aaa(T218, X431, X432))
tappend151_in_aaa(node(T234, T232, T233), X431, node(X432, T232, T233)) → U15_aaa(T234, T232, T233, X431, X432, tappend151_in_aaa(T234, X431, X432))
tappend151_in_aaa(nil, nil, node(nil, nil, X489)) → U16_aaa(X489, tappend151_in_gaa(nil, X486, X489))
U16_aaa(X489, tappend151_out_gaa(nil, X486, X489)) → tappend151_out_aaa(nil, nil, node(nil, nil, X489))
tappend151_in_aaa(node(T249, T250, T252), T249, node(T249, T250, X489)) → U17_aaa(T249, T250, T252, X489, tappend151_in_aaa(T252, X486, X489))
tappend151_in_aaa(node(T265, T266, T268), T265, node(T265, T266, X489)) → U18_aaa(T265, T266, T268, X489, tappend151_in_aaa(T268, X486, X489))
U18_aaa(T265, T266, T268, X489, tappend151_out_aaa(T268, X486, X489)) → tappend151_out_aaa(node(T265, T266, T268), T265, node(T265, T266, X489))
U17_aaa(T249, T250, T252, X489, tappend151_out_aaa(T252, X486, X489)) → tappend151_out_aaa(node(T249, T250, T252), T249, node(T249, T250, X489))
U15_aaa(T234, T232, T233, X431, X432, tappend151_out_aaa(T234, X431, X432)) → tappend151_out_aaa(node(T234, T232, T233), X431, node(X432, T232, T233))
U14_aaa(T218, T216, T217, X431, X432, tappend151_out_aaa(T218, X431, X432)) → tappend151_out_aaa(node(T218, T216, T217), X431, node(X432, T216, T217))
U8_aaa(T145, T146, T218, T216, T217, X432, tappend151_out_aaa(T218, X431, X432)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T218, T216, T217)), T145, node(node(nil, T145, nil), T146, node(X432, T216, T217)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T234, T232, T233)), T145, node(node(nil, T145, nil), T146, node(X432, T232, T233))) → U9_aaa(T145, T146, T234, T232, T233, X432, tappend151_in_aaa(T234, X431, X432))
U9_aaa(T145, T146, T234, T232, T233, X432, tappend151_out_aaa(T234, X431, X432)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T234, T232, T233)), T145, node(node(nil, T145, nil), T146, node(X432, T232, T233)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X489))) → U10_aaa(T145, T146, X489, tappend151_in_gaa(nil, X486, X489))
U10_aaa(T145, T146, X489, tappend151_out_gaa(nil, X486, X489)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X489)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T249, T250, T252)), T145, node(node(nil, T145, nil), T146, node(T249, T250, X489))) → U11_aaa(T145, T146, T249, T250, T252, X489, tappend151_in_aaa(T252, X486, X489))
U11_aaa(T145, T146, T249, T250, T252, X489, tappend151_out_aaa(T252, X486, X489)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T249, T250, T252)), T145, node(node(nil, T145, nil), T146, node(T249, T250, X489)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T265, T266, T268)), T145, node(node(nil, T145, nil), T146, node(T265, T266, X489))) → U12_aaa(T145, T146, T265, T266, T268, X489, tappend151_in_aaa(T268, X486, X489))
U12_aaa(T145, T146, T265, T266, T268, X489, tappend151_out_aaa(T268, X486, X489)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T265, T266, T268)), T145, node(node(nil, T145, nil), T146, node(T265, T266, X489)))
U6_aaa(T126, T124, T125, T127, X217, tappend38_out_aaa(T126, T127, X217)) → tappend38_out_aaa(node(T126, T124, T125), T127, node(X217, T124, T125))
U5_aaa(T107, T105, T106, T108, X217, tappend38_out_aaa(T107, T108, X217)) → tappend38_out_aaa(node(T107, T105, T106), T108, node(X217, T105, T106))
U23_gaa(T7, T24, T25, tappend38_out_aaa(T23, T24, X81)) → goal1_out_gaa(T7, T24, T25)
goal1_in_gaa(T7, T24, T269) → U24_gaa(T7, T24, T269, s2t4_in_ga(T7, T23))
U24_gaa(T7, T24, T269, s2t4_out_ga(T7, T23)) → U25_gaa(T7, T24, T269, tappend38_in_aaa(T23, T24, node(nil, T269, nil)))
U25_gaa(T7, T24, T269, tappend38_out_aaa(T23, T24, node(nil, T269, nil))) → goal1_out_gaa(T7, T24, T269)
goal1_in_gaa(T7, T24, T274) → U26_gaa(T7, T24, T274, s2t4_in_ga(T7, T23))
U26_gaa(T7, T24, T274, s2t4_out_ga(T7, T23)) → U27_gaa(T7, T24, T274, tappend38_in_aaa(T23, T24, node(T275, T272, T273)))
U27_gaa(T7, T24, T274, tappend38_out_aaa(T23, T24, node(T275, T272, T273))) → U28_gaa(T7, T24, T274, tlast39_in_aa(T274, T275))
tlast39_in_aa(T269, node(nil, T269, nil)) → tlast39_out_aa(T269, node(nil, T269, nil))
tlast39_in_aa(T274, node(T275, T272, T273)) → U19_aa(T274, T275, T272, T273, tlast39_in_aa(T274, T275))
tlast39_in_aa(T280, node(T277, T278, T281)) → U20_aa(T280, T277, T278, T281, tlast39_in_aa(T280, T281))
U20_aa(T280, T277, T278, T281, tlast39_out_aa(T280, T281)) → tlast39_out_aa(T280, node(T277, T278, T281))
U19_aa(T274, T275, T272, T273, tlast39_out_aa(T274, T275)) → tlast39_out_aa(T274, node(T275, T272, T273))
U28_gaa(T7, T24, T274, tlast39_out_aa(T274, T275)) → goal1_out_gaa(T7, T24, T274)
goal1_in_gaa(T7, T24, T280) → U29_gaa(T7, T24, T280, s2t4_in_ga(T7, T23))
U29_gaa(T7, T24, T280, s2t4_out_ga(T7, T23)) → U30_gaa(T7, T24, T280, tappend38_in_aaa(T23, T24, node(T277, T278, T281)))
U30_gaa(T7, T24, T280, tappend38_out_aaa(T23, T24, node(T277, T278, T281))) → U31_gaa(T7, T24, T280, tlast39_in_aa(T280, T281))
U31_gaa(T7, T24, T280, tlast39_out_aa(T280, T281)) → goal1_out_gaa(T7, T24, T280)
TAPPEND151_IN_AAA(node(T249, T250, T252), T249, node(T249, T250, X489)) → TAPPEND151_IN_AAA(T252, X486, X489)
TAPPEND151_IN_AAA(node(T218, T216, T217), X431, node(X432, T216, T217)) → TAPPEND151_IN_AAA(T218, X431, X432)
TAPPEND151_IN_AAA → TAPPEND151_IN_AAA
TAPPEND151_IN_GAA(node(T249, T250, T252), T249, node(T249, T250, X489)) → TAPPEND151_IN_GAA(T252, X486, X489)
TAPPEND151_IN_GAA(node(T218, T216, T217), X431, node(X432, T216, T217)) → TAPPEND151_IN_GAA(T218, X431, X432)
goal1_in_gaa(T7, T10, T11) → U21_gaa(T7, T10, T11, s2t4_in_ga(T7, X21))
s2t4_in_ga(0, nil) → s2t4_out_ga(0, nil)
s2t4_in_ga(s(T14), node(X38, X39, X38)) → U1_ga(T14, X38, X39, s2t4_in_ga(T14, X38))
s2t4_in_ga(s(T16), node(nil, X52, X53)) → U2_ga(T16, X52, X53, s2t4_in_ga(T16, X53))
s2t4_in_ga(s(T18), node(X66, X67, nil)) → U3_ga(T18, X66, X67, s2t4_in_ga(T18, X66))
s2t4_in_ga(T19, node(nil, X74, nil)) → s2t4_out_ga(T19, node(nil, X74, nil))
U3_ga(T18, X66, X67, s2t4_out_ga(T18, X66)) → s2t4_out_ga(s(T18), node(X66, X67, nil))
U2_ga(T16, X52, X53, s2t4_out_ga(T16, X53)) → s2t4_out_ga(s(T16), node(nil, X52, X53))
U1_ga(T14, X38, X39, s2t4_out_ga(T14, X38)) → s2t4_out_ga(s(T14), node(X38, X39, X38))
U21_gaa(T7, T10, T11, s2t4_out_ga(T7, X21)) → goal1_out_gaa(T7, T10, T11)
goal1_in_gaa(T7, T24, T25) → U22_gaa(T7, T24, T25, s2t4_in_ga(T7, T23))
U22_gaa(T7, T24, T25, s2t4_out_ga(T7, T23)) → U23_gaa(T7, T24, T25, tappend38_in_aaa(T23, T24, X81))
tappend38_in_aaa(nil, T30, node(nil, T30, nil)) → tappend38_out_aaa(nil, T30, node(nil, T30, nil))
tappend38_in_aaa(nil, T32, node(node(nil, T32, nil), nil, nil)) → tappend38_out_aaa(nil, T32, node(node(nil, T32, nil), nil, nil))
tappend38_in_aaa(node(nil, T43, T44), T32, node(node(nil, T32, nil), T43, T44)) → tappend38_out_aaa(node(nil, T43, T44), T32, node(node(nil, T32, nil), T43, T44))
tappend38_in_aaa(nil, T57, node(nil, nil, node(nil, T57, nil))) → tappend38_out_aaa(nil, T57, node(nil, nil, node(nil, T57, nil)))
tappend38_in_aaa(node(T70, T71, nil), T57, node(T70, T71, node(nil, T57, nil))) → tappend38_out_aaa(node(T70, T71, nil), T57, node(T70, T71, node(nil, T57, nil)))
tappend38_in_aaa(nil, T89, node(X217, nil, nil)) → U4_aaa(T89, X217, tappend38_in_gaa(nil, T89, X217))
tappend38_in_gaa(nil, T30, node(nil, T30, nil)) → tappend38_out_gaa(nil, T30, node(nil, T30, nil))
tappend38_in_gaa(nil, T32, node(node(nil, T32, nil), nil, nil)) → tappend38_out_gaa(nil, T32, node(node(nil, T32, nil), nil, nil))
tappend38_in_gaa(node(nil, T43, T44), T32, node(node(nil, T32, nil), T43, T44)) → tappend38_out_gaa(node(nil, T43, T44), T32, node(node(nil, T32, nil), T43, T44))
tappend38_in_gaa(nil, T57, node(nil, nil, node(nil, T57, nil))) → tappend38_out_gaa(nil, T57, node(nil, nil, node(nil, T57, nil)))
tappend38_in_gaa(node(T70, T71, nil), T57, node(T70, T71, node(nil, T57, nil))) → tappend38_out_gaa(node(T70, T71, nil), T57, node(T70, T71, node(nil, T57, nil)))
tappend38_in_gaa(nil, T89, node(X217, nil, nil)) → U4_gaa(T89, X217, tappend38_in_gaa(nil, T89, X217))
tappend38_in_gaa(node(T107, T105, T106), T108, node(X217, T105, T106)) → U5_gaa(T107, T105, T106, T108, X217, tappend38_in_gaa(T107, T108, X217))
tappend38_in_gaa(node(T126, T124, T125), T127, node(X217, T124, T125)) → U6_gaa(T126, T124, T125, T127, X217, tappend38_in_gaa(T126, T127, X217))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, X300)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, X300))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X313, nil, nil))) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X313, nil, nil)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(nil, T160, T161)), T145, node(node(nil, T145, nil), T146, node(X313, T160, T161))) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(nil, T160, T161)), T145, node(node(nil, T145, nil), T146, node(X313, T160, T161)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X370))) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X370)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T186, T187, nil)), T145, node(node(nil, T145, nil), T146, node(T186, T187, X370))) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T186, T187, nil)), T145, node(node(nil, T145, nil), T146, node(T186, T187, X370)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X432, nil, nil))) → U7_gaa(T145, T146, X432, tappend151_in_gaa(nil, X431, X432))
tappend151_in_gaa(nil, X300, X300) → tappend151_out_gaa(nil, X300, X300)
tappend151_in_gaa(nil, X313, node(X313, nil, nil)) → tappend151_out_gaa(nil, X313, node(X313, nil, nil))
tappend151_in_gaa(node(nil, T160, T161), X313, node(X313, T160, T161)) → tappend151_out_gaa(node(nil, T160, T161), X313, node(X313, T160, T161))
tappend151_in_gaa(nil, X370, node(nil, nil, X370)) → tappend151_out_gaa(nil, X370, node(nil, nil, X370))
tappend151_in_gaa(node(T186, T187, nil), X370, node(T186, T187, X370)) → tappend151_out_gaa(node(T186, T187, nil), X370, node(T186, T187, X370))
tappend151_in_gaa(nil, X431, node(X432, nil, nil)) → U13_gaa(X431, X432, tappend151_in_gaa(nil, X431, X432))
tappend151_in_gaa(node(T218, T216, T217), X431, node(X432, T216, T217)) → U14_gaa(T218, T216, T217, X431, X432, tappend151_in_gaa(T218, X431, X432))
tappend151_in_gaa(node(T234, T232, T233), X431, node(X432, T232, T233)) → U15_gaa(T234, T232, T233, X431, X432, tappend151_in_gaa(T234, X431, X432))
tappend151_in_gaa(nil, nil, node(nil, nil, X489)) → U16_gaa(X489, tappend151_in_gaa(nil, X486, X489))
tappend151_in_gaa(node(T249, T250, T252), T249, node(T249, T250, X489)) → U17_gaa(T249, T250, T252, X489, tappend151_in_gaa(T252, X486, X489))
tappend151_in_gaa(node(T265, T266, T268), T265, node(T265, T266, X489)) → U18_gaa(T265, T266, T268, X489, tappend151_in_gaa(T268, X486, X489))
U18_gaa(T265, T266, T268, X489, tappend151_out_gaa(T268, X486, X489)) → tappend151_out_gaa(node(T265, T266, T268), T265, node(T265, T266, X489))
U17_gaa(T249, T250, T252, X489, tappend151_out_gaa(T252, X486, X489)) → tappend151_out_gaa(node(T249, T250, T252), T249, node(T249, T250, X489))
U16_gaa(X489, tappend151_out_gaa(nil, X486, X489)) → tappend151_out_gaa(nil, nil, node(nil, nil, X489))
U15_gaa(T234, T232, T233, X431, X432, tappend151_out_gaa(T234, X431, X432)) → tappend151_out_gaa(node(T234, T232, T233), X431, node(X432, T232, T233))
U14_gaa(T218, T216, T217, X431, X432, tappend151_out_gaa(T218, X431, X432)) → tappend151_out_gaa(node(T218, T216, T217), X431, node(X432, T216, T217))
U13_gaa(X431, X432, tappend151_out_gaa(nil, X431, X432)) → tappend151_out_gaa(nil, X431, node(X432, nil, nil))
U7_gaa(T145, T146, X432, tappend151_out_gaa(nil, X431, X432)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X432, nil, nil)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T218, T216, T217)), T145, node(node(nil, T145, nil), T146, node(X432, T216, T217))) → U8_gaa(T145, T146, T218, T216, T217, X432, tappend151_in_gaa(T218, X431, X432))
U8_gaa(T145, T146, T218, T216, T217, X432, tappend151_out_gaa(T218, X431, X432)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T218, T216, T217)), T145, node(node(nil, T145, nil), T146, node(X432, T216, T217)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T234, T232, T233)), T145, node(node(nil, T145, nil), T146, node(X432, T232, T233))) → U9_gaa(T145, T146, T234, T232, T233, X432, tappend151_in_gaa(T234, X431, X432))
U9_gaa(T145, T146, T234, T232, T233, X432, tappend151_out_gaa(T234, X431, X432)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T234, T232, T233)), T145, node(node(nil, T145, nil), T146, node(X432, T232, T233)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X489))) → U10_gaa(T145, T146, X489, tappend151_in_gaa(nil, X486, X489))
U10_gaa(T145, T146, X489, tappend151_out_gaa(nil, X486, X489)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X489)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T249, T250, T252)), T145, node(node(nil, T145, nil), T146, node(T249, T250, X489))) → U11_gaa(T145, T146, T249, T250, T252, X489, tappend151_in_gaa(T252, X486, X489))
U11_gaa(T145, T146, T249, T250, T252, X489, tappend151_out_gaa(T252, X486, X489)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T249, T250, T252)), T145, node(node(nil, T145, nil), T146, node(T249, T250, X489)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T265, T266, T268)), T145, node(node(nil, T145, nil), T146, node(T265, T266, X489))) → U12_gaa(T145, T146, T265, T266, T268, X489, tappend151_in_gaa(T268, X486, X489))
U12_gaa(T145, T146, T265, T266, T268, X489, tappend151_out_gaa(T268, X486, X489)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T265, T266, T268)), T145, node(node(nil, T145, nil), T146, node(T265, T266, X489)))
U6_gaa(T126, T124, T125, T127, X217, tappend38_out_gaa(T126, T127, X217)) → tappend38_out_gaa(node(T126, T124, T125), T127, node(X217, T124, T125))
U5_gaa(T107, T105, T106, T108, X217, tappend38_out_gaa(T107, T108, X217)) → tappend38_out_gaa(node(T107, T105, T106), T108, node(X217, T105, T106))
U4_gaa(T89, X217, tappend38_out_gaa(nil, T89, X217)) → tappend38_out_gaa(nil, T89, node(X217, nil, nil))
U4_aaa(T89, X217, tappend38_out_gaa(nil, T89, X217)) → tappend38_out_aaa(nil, T89, node(X217, nil, nil))
tappend38_in_aaa(node(T107, T105, T106), T108, node(X217, T105, T106)) → U5_aaa(T107, T105, T106, T108, X217, tappend38_in_aaa(T107, T108, X217))
tappend38_in_aaa(node(T126, T124, T125), T127, node(X217, T124, T125)) → U6_aaa(T126, T124, T125, T127, X217, tappend38_in_aaa(T126, T127, X217))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, X300)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, X300))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X313, nil, nil))) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X313, nil, nil)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(nil, T160, T161)), T145, node(node(nil, T145, nil), T146, node(X313, T160, T161))) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(nil, T160, T161)), T145, node(node(nil, T145, nil), T146, node(X313, T160, T161)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X370))) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X370)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T186, T187, nil)), T145, node(node(nil, T145, nil), T146, node(T186, T187, X370))) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T186, T187, nil)), T145, node(node(nil, T145, nil), T146, node(T186, T187, X370)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X432, nil, nil))) → U7_aaa(T145, T146, X432, tappend151_in_gaa(nil, X431, X432))
U7_aaa(T145, T146, X432, tappend151_out_gaa(nil, X431, X432)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X432, nil, nil)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T218, T216, T217)), T145, node(node(nil, T145, nil), T146, node(X432, T216, T217))) → U8_aaa(T145, T146, T218, T216, T217, X432, tappend151_in_aaa(T218, X431, X432))
tappend151_in_aaa(nil, X300, X300) → tappend151_out_aaa(nil, X300, X300)
tappend151_in_aaa(nil, X313, node(X313, nil, nil)) → tappend151_out_aaa(nil, X313, node(X313, nil, nil))
tappend151_in_aaa(node(nil, T160, T161), X313, node(X313, T160, T161)) → tappend151_out_aaa(node(nil, T160, T161), X313, node(X313, T160, T161))
tappend151_in_aaa(nil, X370, node(nil, nil, X370)) → tappend151_out_aaa(nil, X370, node(nil, nil, X370))
tappend151_in_aaa(node(T186, T187, nil), X370, node(T186, T187, X370)) → tappend151_out_aaa(node(T186, T187, nil), X370, node(T186, T187, X370))
tappend151_in_aaa(nil, X431, node(X432, nil, nil)) → U13_aaa(X431, X432, tappend151_in_gaa(nil, X431, X432))
U13_aaa(X431, X432, tappend151_out_gaa(nil, X431, X432)) → tappend151_out_aaa(nil, X431, node(X432, nil, nil))
tappend151_in_aaa(node(T218, T216, T217), X431, node(X432, T216, T217)) → U14_aaa(T218, T216, T217, X431, X432, tappend151_in_aaa(T218, X431, X432))
tappend151_in_aaa(node(T234, T232, T233), X431, node(X432, T232, T233)) → U15_aaa(T234, T232, T233, X431, X432, tappend151_in_aaa(T234, X431, X432))
tappend151_in_aaa(nil, nil, node(nil, nil, X489)) → U16_aaa(X489, tappend151_in_gaa(nil, X486, X489))
U16_aaa(X489, tappend151_out_gaa(nil, X486, X489)) → tappend151_out_aaa(nil, nil, node(nil, nil, X489))
tappend151_in_aaa(node(T249, T250, T252), T249, node(T249, T250, X489)) → U17_aaa(T249, T250, T252, X489, tappend151_in_aaa(T252, X486, X489))
tappend151_in_aaa(node(T265, T266, T268), T265, node(T265, T266, X489)) → U18_aaa(T265, T266, T268, X489, tappend151_in_aaa(T268, X486, X489))
U18_aaa(T265, T266, T268, X489, tappend151_out_aaa(T268, X486, X489)) → tappend151_out_aaa(node(T265, T266, T268), T265, node(T265, T266, X489))
U17_aaa(T249, T250, T252, X489, tappend151_out_aaa(T252, X486, X489)) → tappend151_out_aaa(node(T249, T250, T252), T249, node(T249, T250, X489))
U15_aaa(T234, T232, T233, X431, X432, tappend151_out_aaa(T234, X431, X432)) → tappend151_out_aaa(node(T234, T232, T233), X431, node(X432, T232, T233))
U14_aaa(T218, T216, T217, X431, X432, tappend151_out_aaa(T218, X431, X432)) → tappend151_out_aaa(node(T218, T216, T217), X431, node(X432, T216, T217))
U8_aaa(T145, T146, T218, T216, T217, X432, tappend151_out_aaa(T218, X431, X432)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T218, T216, T217)), T145, node(node(nil, T145, nil), T146, node(X432, T216, T217)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T234, T232, T233)), T145, node(node(nil, T145, nil), T146, node(X432, T232, T233))) → U9_aaa(T145, T146, T234, T232, T233, X432, tappend151_in_aaa(T234, X431, X432))
U9_aaa(T145, T146, T234, T232, T233, X432, tappend151_out_aaa(T234, X431, X432)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T234, T232, T233)), T145, node(node(nil, T145, nil), T146, node(X432, T232, T233)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X489))) → U10_aaa(T145, T146, X489, tappend151_in_gaa(nil, X486, X489))
U10_aaa(T145, T146, X489, tappend151_out_gaa(nil, X486, X489)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X489)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T249, T250, T252)), T145, node(node(nil, T145, nil), T146, node(T249, T250, X489))) → U11_aaa(T145, T146, T249, T250, T252, X489, tappend151_in_aaa(T252, X486, X489))
U11_aaa(T145, T146, T249, T250, T252, X489, tappend151_out_aaa(T252, X486, X489)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T249, T250, T252)), T145, node(node(nil, T145, nil), T146, node(T249, T250, X489)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T265, T266, T268)), T145, node(node(nil, T145, nil), T146, node(T265, T266, X489))) → U12_aaa(T145, T146, T265, T266, T268, X489, tappend151_in_aaa(T268, X486, X489))
U12_aaa(T145, T146, T265, T266, T268, X489, tappend151_out_aaa(T268, X486, X489)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T265, T266, T268)), T145, node(node(nil, T145, nil), T146, node(T265, T266, X489)))
U6_aaa(T126, T124, T125, T127, X217, tappend38_out_aaa(T126, T127, X217)) → tappend38_out_aaa(node(T126, T124, T125), T127, node(X217, T124, T125))
U5_aaa(T107, T105, T106, T108, X217, tappend38_out_aaa(T107, T108, X217)) → tappend38_out_aaa(node(T107, T105, T106), T108, node(X217, T105, T106))
U23_gaa(T7, T24, T25, tappend38_out_aaa(T23, T24, X81)) → goal1_out_gaa(T7, T24, T25)
goal1_in_gaa(T7, T24, T269) → U24_gaa(T7, T24, T269, s2t4_in_ga(T7, T23))
U24_gaa(T7, T24, T269, s2t4_out_ga(T7, T23)) → U25_gaa(T7, T24, T269, tappend38_in_aaa(T23, T24, node(nil, T269, nil)))
U25_gaa(T7, T24, T269, tappend38_out_aaa(T23, T24, node(nil, T269, nil))) → goal1_out_gaa(T7, T24, T269)
goal1_in_gaa(T7, T24, T274) → U26_gaa(T7, T24, T274, s2t4_in_ga(T7, T23))
U26_gaa(T7, T24, T274, s2t4_out_ga(T7, T23)) → U27_gaa(T7, T24, T274, tappend38_in_aaa(T23, T24, node(T275, T272, T273)))
U27_gaa(T7, T24, T274, tappend38_out_aaa(T23, T24, node(T275, T272, T273))) → U28_gaa(T7, T24, T274, tlast39_in_aa(T274, T275))
tlast39_in_aa(T269, node(nil, T269, nil)) → tlast39_out_aa(T269, node(nil, T269, nil))
tlast39_in_aa(T274, node(T275, T272, T273)) → U19_aa(T274, T275, T272, T273, tlast39_in_aa(T274, T275))
tlast39_in_aa(T280, node(T277, T278, T281)) → U20_aa(T280, T277, T278, T281, tlast39_in_aa(T280, T281))
U20_aa(T280, T277, T278, T281, tlast39_out_aa(T280, T281)) → tlast39_out_aa(T280, node(T277, T278, T281))
U19_aa(T274, T275, T272, T273, tlast39_out_aa(T274, T275)) → tlast39_out_aa(T274, node(T275, T272, T273))
U28_gaa(T7, T24, T274, tlast39_out_aa(T274, T275)) → goal1_out_gaa(T7, T24, T274)
goal1_in_gaa(T7, T24, T280) → U29_gaa(T7, T24, T280, s2t4_in_ga(T7, T23))
U29_gaa(T7, T24, T280, s2t4_out_ga(T7, T23)) → U30_gaa(T7, T24, T280, tappend38_in_aaa(T23, T24, node(T277, T278, T281)))
U30_gaa(T7, T24, T280, tappend38_out_aaa(T23, T24, node(T277, T278, T281))) → U31_gaa(T7, T24, T280, tlast39_in_aa(T280, T281))
U31_gaa(T7, T24, T280, tlast39_out_aa(T280, T281)) → goal1_out_gaa(T7, T24, T280)
TAPPEND151_IN_GAA(node(T249, T250, T252), T249, node(T249, T250, X489)) → TAPPEND151_IN_GAA(T252, X486, X489)
TAPPEND151_IN_GAA(node(T218, T216, T217), X431, node(X432, T216, T217)) → TAPPEND151_IN_GAA(T218, X431, X432)
TAPPEND151_IN_GAA(node(T249, T250, T252)) → TAPPEND151_IN_GAA(T252)
TAPPEND151_IN_GAA(node(T218, T216, T217)) → TAPPEND151_IN_GAA(T218)
From the DPs we obtained the following set of size-change graphs:
TAPPEND38_IN_GAA(nil, T89, node(X217, nil, nil)) → TAPPEND38_IN_GAA(nil, T89, X217)
goal1_in_gaa(T7, T10, T11) → U21_gaa(T7, T10, T11, s2t4_in_ga(T7, X21))
s2t4_in_ga(0, nil) → s2t4_out_ga(0, nil)
s2t4_in_ga(s(T14), node(X38, X39, X38)) → U1_ga(T14, X38, X39, s2t4_in_ga(T14, X38))
s2t4_in_ga(s(T16), node(nil, X52, X53)) → U2_ga(T16, X52, X53, s2t4_in_ga(T16, X53))
s2t4_in_ga(s(T18), node(X66, X67, nil)) → U3_ga(T18, X66, X67, s2t4_in_ga(T18, X66))
s2t4_in_ga(T19, node(nil, X74, nil)) → s2t4_out_ga(T19, node(nil, X74, nil))
U3_ga(T18, X66, X67, s2t4_out_ga(T18, X66)) → s2t4_out_ga(s(T18), node(X66, X67, nil))
U2_ga(T16, X52, X53, s2t4_out_ga(T16, X53)) → s2t4_out_ga(s(T16), node(nil, X52, X53))
U1_ga(T14, X38, X39, s2t4_out_ga(T14, X38)) → s2t4_out_ga(s(T14), node(X38, X39, X38))
U21_gaa(T7, T10, T11, s2t4_out_ga(T7, X21)) → goal1_out_gaa(T7, T10, T11)
goal1_in_gaa(T7, T24, T25) → U22_gaa(T7, T24, T25, s2t4_in_ga(T7, T23))
U22_gaa(T7, T24, T25, s2t4_out_ga(T7, T23)) → U23_gaa(T7, T24, T25, tappend38_in_aaa(T23, T24, X81))
tappend38_in_aaa(nil, T30, node(nil, T30, nil)) → tappend38_out_aaa(nil, T30, node(nil, T30, nil))
tappend38_in_aaa(nil, T32, node(node(nil, T32, nil), nil, nil)) → tappend38_out_aaa(nil, T32, node(node(nil, T32, nil), nil, nil))
tappend38_in_aaa(node(nil, T43, T44), T32, node(node(nil, T32, nil), T43, T44)) → tappend38_out_aaa(node(nil, T43, T44), T32, node(node(nil, T32, nil), T43, T44))
tappend38_in_aaa(nil, T57, node(nil, nil, node(nil, T57, nil))) → tappend38_out_aaa(nil, T57, node(nil, nil, node(nil, T57, nil)))
tappend38_in_aaa(node(T70, T71, nil), T57, node(T70, T71, node(nil, T57, nil))) → tappend38_out_aaa(node(T70, T71, nil), T57, node(T70, T71, node(nil, T57, nil)))
tappend38_in_aaa(nil, T89, node(X217, nil, nil)) → U4_aaa(T89, X217, tappend38_in_gaa(nil, T89, X217))
tappend38_in_gaa(nil, T30, node(nil, T30, nil)) → tappend38_out_gaa(nil, T30, node(nil, T30, nil))
tappend38_in_gaa(nil, T32, node(node(nil, T32, nil), nil, nil)) → tappend38_out_gaa(nil, T32, node(node(nil, T32, nil), nil, nil))
tappend38_in_gaa(node(nil, T43, T44), T32, node(node(nil, T32, nil), T43, T44)) → tappend38_out_gaa(node(nil, T43, T44), T32, node(node(nil, T32, nil), T43, T44))
tappend38_in_gaa(nil, T57, node(nil, nil, node(nil, T57, nil))) → tappend38_out_gaa(nil, T57, node(nil, nil, node(nil, T57, nil)))
tappend38_in_gaa(node(T70, T71, nil), T57, node(T70, T71, node(nil, T57, nil))) → tappend38_out_gaa(node(T70, T71, nil), T57, node(T70, T71, node(nil, T57, nil)))
tappend38_in_gaa(nil, T89, node(X217, nil, nil)) → U4_gaa(T89, X217, tappend38_in_gaa(nil, T89, X217))
tappend38_in_gaa(node(T107, T105, T106), T108, node(X217, T105, T106)) → U5_gaa(T107, T105, T106, T108, X217, tappend38_in_gaa(T107, T108, X217))
tappend38_in_gaa(node(T126, T124, T125), T127, node(X217, T124, T125)) → U6_gaa(T126, T124, T125, T127, X217, tappend38_in_gaa(T126, T127, X217))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, X300)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, X300))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X313, nil, nil))) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X313, nil, nil)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(nil, T160, T161)), T145, node(node(nil, T145, nil), T146, node(X313, T160, T161))) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(nil, T160, T161)), T145, node(node(nil, T145, nil), T146, node(X313, T160, T161)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X370))) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X370)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T186, T187, nil)), T145, node(node(nil, T145, nil), T146, node(T186, T187, X370))) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T186, T187, nil)), T145, node(node(nil, T145, nil), T146, node(T186, T187, X370)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X432, nil, nil))) → U7_gaa(T145, T146, X432, tappend151_in_gaa(nil, X431, X432))
tappend151_in_gaa(nil, X300, X300) → tappend151_out_gaa(nil, X300, X300)
tappend151_in_gaa(nil, X313, node(X313, nil, nil)) → tappend151_out_gaa(nil, X313, node(X313, nil, nil))
tappend151_in_gaa(node(nil, T160, T161), X313, node(X313, T160, T161)) → tappend151_out_gaa(node(nil, T160, T161), X313, node(X313, T160, T161))
tappend151_in_gaa(nil, X370, node(nil, nil, X370)) → tappend151_out_gaa(nil, X370, node(nil, nil, X370))
tappend151_in_gaa(node(T186, T187, nil), X370, node(T186, T187, X370)) → tappend151_out_gaa(node(T186, T187, nil), X370, node(T186, T187, X370))
tappend151_in_gaa(nil, X431, node(X432, nil, nil)) → U13_gaa(X431, X432, tappend151_in_gaa(nil, X431, X432))
tappend151_in_gaa(node(T218, T216, T217), X431, node(X432, T216, T217)) → U14_gaa(T218, T216, T217, X431, X432, tappend151_in_gaa(T218, X431, X432))
tappend151_in_gaa(node(T234, T232, T233), X431, node(X432, T232, T233)) → U15_gaa(T234, T232, T233, X431, X432, tappend151_in_gaa(T234, X431, X432))
tappend151_in_gaa(nil, nil, node(nil, nil, X489)) → U16_gaa(X489, tappend151_in_gaa(nil, X486, X489))
tappend151_in_gaa(node(T249, T250, T252), T249, node(T249, T250, X489)) → U17_gaa(T249, T250, T252, X489, tappend151_in_gaa(T252, X486, X489))
tappend151_in_gaa(node(T265, T266, T268), T265, node(T265, T266, X489)) → U18_gaa(T265, T266, T268, X489, tappend151_in_gaa(T268, X486, X489))
U18_gaa(T265, T266, T268, X489, tappend151_out_gaa(T268, X486, X489)) → tappend151_out_gaa(node(T265, T266, T268), T265, node(T265, T266, X489))
U17_gaa(T249, T250, T252, X489, tappend151_out_gaa(T252, X486, X489)) → tappend151_out_gaa(node(T249, T250, T252), T249, node(T249, T250, X489))
U16_gaa(X489, tappend151_out_gaa(nil, X486, X489)) → tappend151_out_gaa(nil, nil, node(nil, nil, X489))
U15_gaa(T234, T232, T233, X431, X432, tappend151_out_gaa(T234, X431, X432)) → tappend151_out_gaa(node(T234, T232, T233), X431, node(X432, T232, T233))
U14_gaa(T218, T216, T217, X431, X432, tappend151_out_gaa(T218, X431, X432)) → tappend151_out_gaa(node(T218, T216, T217), X431, node(X432, T216, T217))
U13_gaa(X431, X432, tappend151_out_gaa(nil, X431, X432)) → tappend151_out_gaa(nil, X431, node(X432, nil, nil))
U7_gaa(T145, T146, X432, tappend151_out_gaa(nil, X431, X432)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X432, nil, nil)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T218, T216, T217)), T145, node(node(nil, T145, nil), T146, node(X432, T216, T217))) → U8_gaa(T145, T146, T218, T216, T217, X432, tappend151_in_gaa(T218, X431, X432))
U8_gaa(T145, T146, T218, T216, T217, X432, tappend151_out_gaa(T218, X431, X432)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T218, T216, T217)), T145, node(node(nil, T145, nil), T146, node(X432, T216, T217)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T234, T232, T233)), T145, node(node(nil, T145, nil), T146, node(X432, T232, T233))) → U9_gaa(T145, T146, T234, T232, T233, X432, tappend151_in_gaa(T234, X431, X432))
U9_gaa(T145, T146, T234, T232, T233, X432, tappend151_out_gaa(T234, X431, X432)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T234, T232, T233)), T145, node(node(nil, T145, nil), T146, node(X432, T232, T233)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X489))) → U10_gaa(T145, T146, X489, tappend151_in_gaa(nil, X486, X489))
U10_gaa(T145, T146, X489, tappend151_out_gaa(nil, X486, X489)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X489)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T249, T250, T252)), T145, node(node(nil, T145, nil), T146, node(T249, T250, X489))) → U11_gaa(T145, T146, T249, T250, T252, X489, tappend151_in_gaa(T252, X486, X489))
U11_gaa(T145, T146, T249, T250, T252, X489, tappend151_out_gaa(T252, X486, X489)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T249, T250, T252)), T145, node(node(nil, T145, nil), T146, node(T249, T250, X489)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T265, T266, T268)), T145, node(node(nil, T145, nil), T146, node(T265, T266, X489))) → U12_gaa(T145, T146, T265, T266, T268, X489, tappend151_in_gaa(T268, X486, X489))
U12_gaa(T145, T146, T265, T266, T268, X489, tappend151_out_gaa(T268, X486, X489)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T265, T266, T268)), T145, node(node(nil, T145, nil), T146, node(T265, T266, X489)))
U6_gaa(T126, T124, T125, T127, X217, tappend38_out_gaa(T126, T127, X217)) → tappend38_out_gaa(node(T126, T124, T125), T127, node(X217, T124, T125))
U5_gaa(T107, T105, T106, T108, X217, tappend38_out_gaa(T107, T108, X217)) → tappend38_out_gaa(node(T107, T105, T106), T108, node(X217, T105, T106))
U4_gaa(T89, X217, tappend38_out_gaa(nil, T89, X217)) → tappend38_out_gaa(nil, T89, node(X217, nil, nil))
U4_aaa(T89, X217, tappend38_out_gaa(nil, T89, X217)) → tappend38_out_aaa(nil, T89, node(X217, nil, nil))
tappend38_in_aaa(node(T107, T105, T106), T108, node(X217, T105, T106)) → U5_aaa(T107, T105, T106, T108, X217, tappend38_in_aaa(T107, T108, X217))
tappend38_in_aaa(node(T126, T124, T125), T127, node(X217, T124, T125)) → U6_aaa(T126, T124, T125, T127, X217, tappend38_in_aaa(T126, T127, X217))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, X300)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, X300))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X313, nil, nil))) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X313, nil, nil)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(nil, T160, T161)), T145, node(node(nil, T145, nil), T146, node(X313, T160, T161))) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(nil, T160, T161)), T145, node(node(nil, T145, nil), T146, node(X313, T160, T161)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X370))) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X370)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T186, T187, nil)), T145, node(node(nil, T145, nil), T146, node(T186, T187, X370))) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T186, T187, nil)), T145, node(node(nil, T145, nil), T146, node(T186, T187, X370)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X432, nil, nil))) → U7_aaa(T145, T146, X432, tappend151_in_gaa(nil, X431, X432))
U7_aaa(T145, T146, X432, tappend151_out_gaa(nil, X431, X432)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X432, nil, nil)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T218, T216, T217)), T145, node(node(nil, T145, nil), T146, node(X432, T216, T217))) → U8_aaa(T145, T146, T218, T216, T217, X432, tappend151_in_aaa(T218, X431, X432))
tappend151_in_aaa(nil, X300, X300) → tappend151_out_aaa(nil, X300, X300)
tappend151_in_aaa(nil, X313, node(X313, nil, nil)) → tappend151_out_aaa(nil, X313, node(X313, nil, nil))
tappend151_in_aaa(node(nil, T160, T161), X313, node(X313, T160, T161)) → tappend151_out_aaa(node(nil, T160, T161), X313, node(X313, T160, T161))
tappend151_in_aaa(nil, X370, node(nil, nil, X370)) → tappend151_out_aaa(nil, X370, node(nil, nil, X370))
tappend151_in_aaa(node(T186, T187, nil), X370, node(T186, T187, X370)) → tappend151_out_aaa(node(T186, T187, nil), X370, node(T186, T187, X370))
tappend151_in_aaa(nil, X431, node(X432, nil, nil)) → U13_aaa(X431, X432, tappend151_in_gaa(nil, X431, X432))
U13_aaa(X431, X432, tappend151_out_gaa(nil, X431, X432)) → tappend151_out_aaa(nil, X431, node(X432, nil, nil))
tappend151_in_aaa(node(T218, T216, T217), X431, node(X432, T216, T217)) → U14_aaa(T218, T216, T217, X431, X432, tappend151_in_aaa(T218, X431, X432))
tappend151_in_aaa(node(T234, T232, T233), X431, node(X432, T232, T233)) → U15_aaa(T234, T232, T233, X431, X432, tappend151_in_aaa(T234, X431, X432))
tappend151_in_aaa(nil, nil, node(nil, nil, X489)) → U16_aaa(X489, tappend151_in_gaa(nil, X486, X489))
U16_aaa(X489, tappend151_out_gaa(nil, X486, X489)) → tappend151_out_aaa(nil, nil, node(nil, nil, X489))
tappend151_in_aaa(node(T249, T250, T252), T249, node(T249, T250, X489)) → U17_aaa(T249, T250, T252, X489, tappend151_in_aaa(T252, X486, X489))
tappend151_in_aaa(node(T265, T266, T268), T265, node(T265, T266, X489)) → U18_aaa(T265, T266, T268, X489, tappend151_in_aaa(T268, X486, X489))
U18_aaa(T265, T266, T268, X489, tappend151_out_aaa(T268, X486, X489)) → tappend151_out_aaa(node(T265, T266, T268), T265, node(T265, T266, X489))
U17_aaa(T249, T250, T252, X489, tappend151_out_aaa(T252, X486, X489)) → tappend151_out_aaa(node(T249, T250, T252), T249, node(T249, T250, X489))
U15_aaa(T234, T232, T233, X431, X432, tappend151_out_aaa(T234, X431, X432)) → tappend151_out_aaa(node(T234, T232, T233), X431, node(X432, T232, T233))
U14_aaa(T218, T216, T217, X431, X432, tappend151_out_aaa(T218, X431, X432)) → tappend151_out_aaa(node(T218, T216, T217), X431, node(X432, T216, T217))
U8_aaa(T145, T146, T218, T216, T217, X432, tappend151_out_aaa(T218, X431, X432)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T218, T216, T217)), T145, node(node(nil, T145, nil), T146, node(X432, T216, T217)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T234, T232, T233)), T145, node(node(nil, T145, nil), T146, node(X432, T232, T233))) → U9_aaa(T145, T146, T234, T232, T233, X432, tappend151_in_aaa(T234, X431, X432))
U9_aaa(T145, T146, T234, T232, T233, X432, tappend151_out_aaa(T234, X431, X432)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T234, T232, T233)), T145, node(node(nil, T145, nil), T146, node(X432, T232, T233)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X489))) → U10_aaa(T145, T146, X489, tappend151_in_gaa(nil, X486, X489))
U10_aaa(T145, T146, X489, tappend151_out_gaa(nil, X486, X489)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X489)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T249, T250, T252)), T145, node(node(nil, T145, nil), T146, node(T249, T250, X489))) → U11_aaa(T145, T146, T249, T250, T252, X489, tappend151_in_aaa(T252, X486, X489))
U11_aaa(T145, T146, T249, T250, T252, X489, tappend151_out_aaa(T252, X486, X489)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T249, T250, T252)), T145, node(node(nil, T145, nil), T146, node(T249, T250, X489)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T265, T266, T268)), T145, node(node(nil, T145, nil), T146, node(T265, T266, X489))) → U12_aaa(T145, T146, T265, T266, T268, X489, tappend151_in_aaa(T268, X486, X489))
U12_aaa(T145, T146, T265, T266, T268, X489, tappend151_out_aaa(T268, X486, X489)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T265, T266, T268)), T145, node(node(nil, T145, nil), T146, node(T265, T266, X489)))
U6_aaa(T126, T124, T125, T127, X217, tappend38_out_aaa(T126, T127, X217)) → tappend38_out_aaa(node(T126, T124, T125), T127, node(X217, T124, T125))
U5_aaa(T107, T105, T106, T108, X217, tappend38_out_aaa(T107, T108, X217)) → tappend38_out_aaa(node(T107, T105, T106), T108, node(X217, T105, T106))
U23_gaa(T7, T24, T25, tappend38_out_aaa(T23, T24, X81)) → goal1_out_gaa(T7, T24, T25)
goal1_in_gaa(T7, T24, T269) → U24_gaa(T7, T24, T269, s2t4_in_ga(T7, T23))
U24_gaa(T7, T24, T269, s2t4_out_ga(T7, T23)) → U25_gaa(T7, T24, T269, tappend38_in_aaa(T23, T24, node(nil, T269, nil)))
U25_gaa(T7, T24, T269, tappend38_out_aaa(T23, T24, node(nil, T269, nil))) → goal1_out_gaa(T7, T24, T269)
goal1_in_gaa(T7, T24, T274) → U26_gaa(T7, T24, T274, s2t4_in_ga(T7, T23))
U26_gaa(T7, T24, T274, s2t4_out_ga(T7, T23)) → U27_gaa(T7, T24, T274, tappend38_in_aaa(T23, T24, node(T275, T272, T273)))
U27_gaa(T7, T24, T274, tappend38_out_aaa(T23, T24, node(T275, T272, T273))) → U28_gaa(T7, T24, T274, tlast39_in_aa(T274, T275))
tlast39_in_aa(T269, node(nil, T269, nil)) → tlast39_out_aa(T269, node(nil, T269, nil))
tlast39_in_aa(T274, node(T275, T272, T273)) → U19_aa(T274, T275, T272, T273, tlast39_in_aa(T274, T275))
tlast39_in_aa(T280, node(T277, T278, T281)) → U20_aa(T280, T277, T278, T281, tlast39_in_aa(T280, T281))
U20_aa(T280, T277, T278, T281, tlast39_out_aa(T280, T281)) → tlast39_out_aa(T280, node(T277, T278, T281))
U19_aa(T274, T275, T272, T273, tlast39_out_aa(T274, T275)) → tlast39_out_aa(T274, node(T275, T272, T273))
U28_gaa(T7, T24, T274, tlast39_out_aa(T274, T275)) → goal1_out_gaa(T7, T24, T274)
goal1_in_gaa(T7, T24, T280) → U29_gaa(T7, T24, T280, s2t4_in_ga(T7, T23))
U29_gaa(T7, T24, T280, s2t4_out_ga(T7, T23)) → U30_gaa(T7, T24, T280, tappend38_in_aaa(T23, T24, node(T277, T278, T281)))
U30_gaa(T7, T24, T280, tappend38_out_aaa(T23, T24, node(T277, T278, T281))) → U31_gaa(T7, T24, T280, tlast39_in_aa(T280, T281))
U31_gaa(T7, T24, T280, tlast39_out_aa(T280, T281)) → goal1_out_gaa(T7, T24, T280)
TAPPEND38_IN_GAA(nil, T89, node(X217, nil, nil)) → TAPPEND38_IN_GAA(nil, T89, X217)
TAPPEND38_IN_GAA(nil) → TAPPEND38_IN_GAA(nil)
TAPPEND38_IN_GAA(node(T107, T105, T106), T108, node(X217, T105, T106)) → TAPPEND38_IN_GAA(T107, T108, X217)
goal1_in_gaa(T7, T10, T11) → U21_gaa(T7, T10, T11, s2t4_in_ga(T7, X21))
s2t4_in_ga(0, nil) → s2t4_out_ga(0, nil)
s2t4_in_ga(s(T14), node(X38, X39, X38)) → U1_ga(T14, X38, X39, s2t4_in_ga(T14, X38))
s2t4_in_ga(s(T16), node(nil, X52, X53)) → U2_ga(T16, X52, X53, s2t4_in_ga(T16, X53))
s2t4_in_ga(s(T18), node(X66, X67, nil)) → U3_ga(T18, X66, X67, s2t4_in_ga(T18, X66))
s2t4_in_ga(T19, node(nil, X74, nil)) → s2t4_out_ga(T19, node(nil, X74, nil))
U3_ga(T18, X66, X67, s2t4_out_ga(T18, X66)) → s2t4_out_ga(s(T18), node(X66, X67, nil))
U2_ga(T16, X52, X53, s2t4_out_ga(T16, X53)) → s2t4_out_ga(s(T16), node(nil, X52, X53))
U1_ga(T14, X38, X39, s2t4_out_ga(T14, X38)) → s2t4_out_ga(s(T14), node(X38, X39, X38))
U21_gaa(T7, T10, T11, s2t4_out_ga(T7, X21)) → goal1_out_gaa(T7, T10, T11)
goal1_in_gaa(T7, T24, T25) → U22_gaa(T7, T24, T25, s2t4_in_ga(T7, T23))
U22_gaa(T7, T24, T25, s2t4_out_ga(T7, T23)) → U23_gaa(T7, T24, T25, tappend38_in_aaa(T23, T24, X81))
tappend38_in_aaa(nil, T30, node(nil, T30, nil)) → tappend38_out_aaa(nil, T30, node(nil, T30, nil))
tappend38_in_aaa(nil, T32, node(node(nil, T32, nil), nil, nil)) → tappend38_out_aaa(nil, T32, node(node(nil, T32, nil), nil, nil))
tappend38_in_aaa(node(nil, T43, T44), T32, node(node(nil, T32, nil), T43, T44)) → tappend38_out_aaa(node(nil, T43, T44), T32, node(node(nil, T32, nil), T43, T44))
tappend38_in_aaa(nil, T57, node(nil, nil, node(nil, T57, nil))) → tappend38_out_aaa(nil, T57, node(nil, nil, node(nil, T57, nil)))
tappend38_in_aaa(node(T70, T71, nil), T57, node(T70, T71, node(nil, T57, nil))) → tappend38_out_aaa(node(T70, T71, nil), T57, node(T70, T71, node(nil, T57, nil)))
tappend38_in_aaa(nil, T89, node(X217, nil, nil)) → U4_aaa(T89, X217, tappend38_in_gaa(nil, T89, X217))
tappend38_in_gaa(nil, T30, node(nil, T30, nil)) → tappend38_out_gaa(nil, T30, node(nil, T30, nil))
tappend38_in_gaa(nil, T32, node(node(nil, T32, nil), nil, nil)) → tappend38_out_gaa(nil, T32, node(node(nil, T32, nil), nil, nil))
tappend38_in_gaa(node(nil, T43, T44), T32, node(node(nil, T32, nil), T43, T44)) → tappend38_out_gaa(node(nil, T43, T44), T32, node(node(nil, T32, nil), T43, T44))
tappend38_in_gaa(nil, T57, node(nil, nil, node(nil, T57, nil))) → tappend38_out_gaa(nil, T57, node(nil, nil, node(nil, T57, nil)))
tappend38_in_gaa(node(T70, T71, nil), T57, node(T70, T71, node(nil, T57, nil))) → tappend38_out_gaa(node(T70, T71, nil), T57, node(T70, T71, node(nil, T57, nil)))
tappend38_in_gaa(nil, T89, node(X217, nil, nil)) → U4_gaa(T89, X217, tappend38_in_gaa(nil, T89, X217))
tappend38_in_gaa(node(T107, T105, T106), T108, node(X217, T105, T106)) → U5_gaa(T107, T105, T106, T108, X217, tappend38_in_gaa(T107, T108, X217))
tappend38_in_gaa(node(T126, T124, T125), T127, node(X217, T124, T125)) → U6_gaa(T126, T124, T125, T127, X217, tappend38_in_gaa(T126, T127, X217))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, X300)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, X300))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X313, nil, nil))) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X313, nil, nil)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(nil, T160, T161)), T145, node(node(nil, T145, nil), T146, node(X313, T160, T161))) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(nil, T160, T161)), T145, node(node(nil, T145, nil), T146, node(X313, T160, T161)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X370))) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X370)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T186, T187, nil)), T145, node(node(nil, T145, nil), T146, node(T186, T187, X370))) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T186, T187, nil)), T145, node(node(nil, T145, nil), T146, node(T186, T187, X370)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X432, nil, nil))) → U7_gaa(T145, T146, X432, tappend151_in_gaa(nil, X431, X432))
tappend151_in_gaa(nil, X300, X300) → tappend151_out_gaa(nil, X300, X300)
tappend151_in_gaa(nil, X313, node(X313, nil, nil)) → tappend151_out_gaa(nil, X313, node(X313, nil, nil))
tappend151_in_gaa(node(nil, T160, T161), X313, node(X313, T160, T161)) → tappend151_out_gaa(node(nil, T160, T161), X313, node(X313, T160, T161))
tappend151_in_gaa(nil, X370, node(nil, nil, X370)) → tappend151_out_gaa(nil, X370, node(nil, nil, X370))
tappend151_in_gaa(node(T186, T187, nil), X370, node(T186, T187, X370)) → tappend151_out_gaa(node(T186, T187, nil), X370, node(T186, T187, X370))
tappend151_in_gaa(nil, X431, node(X432, nil, nil)) → U13_gaa(X431, X432, tappend151_in_gaa(nil, X431, X432))
tappend151_in_gaa(node(T218, T216, T217), X431, node(X432, T216, T217)) → U14_gaa(T218, T216, T217, X431, X432, tappend151_in_gaa(T218, X431, X432))
tappend151_in_gaa(node(T234, T232, T233), X431, node(X432, T232, T233)) → U15_gaa(T234, T232, T233, X431, X432, tappend151_in_gaa(T234, X431, X432))
tappend151_in_gaa(nil, nil, node(nil, nil, X489)) → U16_gaa(X489, tappend151_in_gaa(nil, X486, X489))
tappend151_in_gaa(node(T249, T250, T252), T249, node(T249, T250, X489)) → U17_gaa(T249, T250, T252, X489, tappend151_in_gaa(T252, X486, X489))
tappend151_in_gaa(node(T265, T266, T268), T265, node(T265, T266, X489)) → U18_gaa(T265, T266, T268, X489, tappend151_in_gaa(T268, X486, X489))
U18_gaa(T265, T266, T268, X489, tappend151_out_gaa(T268, X486, X489)) → tappend151_out_gaa(node(T265, T266, T268), T265, node(T265, T266, X489))
U17_gaa(T249, T250, T252, X489, tappend151_out_gaa(T252, X486, X489)) → tappend151_out_gaa(node(T249, T250, T252), T249, node(T249, T250, X489))
U16_gaa(X489, tappend151_out_gaa(nil, X486, X489)) → tappend151_out_gaa(nil, nil, node(nil, nil, X489))
U15_gaa(T234, T232, T233, X431, X432, tappend151_out_gaa(T234, X431, X432)) → tappend151_out_gaa(node(T234, T232, T233), X431, node(X432, T232, T233))
U14_gaa(T218, T216, T217, X431, X432, tappend151_out_gaa(T218, X431, X432)) → tappend151_out_gaa(node(T218, T216, T217), X431, node(X432, T216, T217))
U13_gaa(X431, X432, tappend151_out_gaa(nil, X431, X432)) → tappend151_out_gaa(nil, X431, node(X432, nil, nil))
U7_gaa(T145, T146, X432, tappend151_out_gaa(nil, X431, X432)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X432, nil, nil)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T218, T216, T217)), T145, node(node(nil, T145, nil), T146, node(X432, T216, T217))) → U8_gaa(T145, T146, T218, T216, T217, X432, tappend151_in_gaa(T218, X431, X432))
U8_gaa(T145, T146, T218, T216, T217, X432, tappend151_out_gaa(T218, X431, X432)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T218, T216, T217)), T145, node(node(nil, T145, nil), T146, node(X432, T216, T217)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T234, T232, T233)), T145, node(node(nil, T145, nil), T146, node(X432, T232, T233))) → U9_gaa(T145, T146, T234, T232, T233, X432, tappend151_in_gaa(T234, X431, X432))
U9_gaa(T145, T146, T234, T232, T233, X432, tappend151_out_gaa(T234, X431, X432)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T234, T232, T233)), T145, node(node(nil, T145, nil), T146, node(X432, T232, T233)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X489))) → U10_gaa(T145, T146, X489, tappend151_in_gaa(nil, X486, X489))
U10_gaa(T145, T146, X489, tappend151_out_gaa(nil, X486, X489)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X489)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T249, T250, T252)), T145, node(node(nil, T145, nil), T146, node(T249, T250, X489))) → U11_gaa(T145, T146, T249, T250, T252, X489, tappend151_in_gaa(T252, X486, X489))
U11_gaa(T145, T146, T249, T250, T252, X489, tappend151_out_gaa(T252, X486, X489)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T249, T250, T252)), T145, node(node(nil, T145, nil), T146, node(T249, T250, X489)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T265, T266, T268)), T145, node(node(nil, T145, nil), T146, node(T265, T266, X489))) → U12_gaa(T145, T146, T265, T266, T268, X489, tappend151_in_gaa(T268, X486, X489))
U12_gaa(T145, T146, T265, T266, T268, X489, tappend151_out_gaa(T268, X486, X489)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T265, T266, T268)), T145, node(node(nil, T145, nil), T146, node(T265, T266, X489)))
U6_gaa(T126, T124, T125, T127, X217, tappend38_out_gaa(T126, T127, X217)) → tappend38_out_gaa(node(T126, T124, T125), T127, node(X217, T124, T125))
U5_gaa(T107, T105, T106, T108, X217, tappend38_out_gaa(T107, T108, X217)) → tappend38_out_gaa(node(T107, T105, T106), T108, node(X217, T105, T106))
U4_gaa(T89, X217, tappend38_out_gaa(nil, T89, X217)) → tappend38_out_gaa(nil, T89, node(X217, nil, nil))
U4_aaa(T89, X217, tappend38_out_gaa(nil, T89, X217)) → tappend38_out_aaa(nil, T89, node(X217, nil, nil))
tappend38_in_aaa(node(T107, T105, T106), T108, node(X217, T105, T106)) → U5_aaa(T107, T105, T106, T108, X217, tappend38_in_aaa(T107, T108, X217))
tappend38_in_aaa(node(T126, T124, T125), T127, node(X217, T124, T125)) → U6_aaa(T126, T124, T125, T127, X217, tappend38_in_aaa(T126, T127, X217))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, X300)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, X300))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X313, nil, nil))) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X313, nil, nil)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(nil, T160, T161)), T145, node(node(nil, T145, nil), T146, node(X313, T160, T161))) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(nil, T160, T161)), T145, node(node(nil, T145, nil), T146, node(X313, T160, T161)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X370))) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X370)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T186, T187, nil)), T145, node(node(nil, T145, nil), T146, node(T186, T187, X370))) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T186, T187, nil)), T145, node(node(nil, T145, nil), T146, node(T186, T187, X370)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X432, nil, nil))) → U7_aaa(T145, T146, X432, tappend151_in_gaa(nil, X431, X432))
U7_aaa(T145, T146, X432, tappend151_out_gaa(nil, X431, X432)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X432, nil, nil)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T218, T216, T217)), T145, node(node(nil, T145, nil), T146, node(X432, T216, T217))) → U8_aaa(T145, T146, T218, T216, T217, X432, tappend151_in_aaa(T218, X431, X432))
tappend151_in_aaa(nil, X300, X300) → tappend151_out_aaa(nil, X300, X300)
tappend151_in_aaa(nil, X313, node(X313, nil, nil)) → tappend151_out_aaa(nil, X313, node(X313, nil, nil))
tappend151_in_aaa(node(nil, T160, T161), X313, node(X313, T160, T161)) → tappend151_out_aaa(node(nil, T160, T161), X313, node(X313, T160, T161))
tappend151_in_aaa(nil, X370, node(nil, nil, X370)) → tappend151_out_aaa(nil, X370, node(nil, nil, X370))
tappend151_in_aaa(node(T186, T187, nil), X370, node(T186, T187, X370)) → tappend151_out_aaa(node(T186, T187, nil), X370, node(T186, T187, X370))
tappend151_in_aaa(nil, X431, node(X432, nil, nil)) → U13_aaa(X431, X432, tappend151_in_gaa(nil, X431, X432))
U13_aaa(X431, X432, tappend151_out_gaa(nil, X431, X432)) → tappend151_out_aaa(nil, X431, node(X432, nil, nil))
tappend151_in_aaa(node(T218, T216, T217), X431, node(X432, T216, T217)) → U14_aaa(T218, T216, T217, X431, X432, tappend151_in_aaa(T218, X431, X432))
tappend151_in_aaa(node(T234, T232, T233), X431, node(X432, T232, T233)) → U15_aaa(T234, T232, T233, X431, X432, tappend151_in_aaa(T234, X431, X432))
tappend151_in_aaa(nil, nil, node(nil, nil, X489)) → U16_aaa(X489, tappend151_in_gaa(nil, X486, X489))
U16_aaa(X489, tappend151_out_gaa(nil, X486, X489)) → tappend151_out_aaa(nil, nil, node(nil, nil, X489))
tappend151_in_aaa(node(T249, T250, T252), T249, node(T249, T250, X489)) → U17_aaa(T249, T250, T252, X489, tappend151_in_aaa(T252, X486, X489))
tappend151_in_aaa(node(T265, T266, T268), T265, node(T265, T266, X489)) → U18_aaa(T265, T266, T268, X489, tappend151_in_aaa(T268, X486, X489))
U18_aaa(T265, T266, T268, X489, tappend151_out_aaa(T268, X486, X489)) → tappend151_out_aaa(node(T265, T266, T268), T265, node(T265, T266, X489))
U17_aaa(T249, T250, T252, X489, tappend151_out_aaa(T252, X486, X489)) → tappend151_out_aaa(node(T249, T250, T252), T249, node(T249, T250, X489))
U15_aaa(T234, T232, T233, X431, X432, tappend151_out_aaa(T234, X431, X432)) → tappend151_out_aaa(node(T234, T232, T233), X431, node(X432, T232, T233))
U14_aaa(T218, T216, T217, X431, X432, tappend151_out_aaa(T218, X431, X432)) → tappend151_out_aaa(node(T218, T216, T217), X431, node(X432, T216, T217))
U8_aaa(T145, T146, T218, T216, T217, X432, tappend151_out_aaa(T218, X431, X432)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T218, T216, T217)), T145, node(node(nil, T145, nil), T146, node(X432, T216, T217)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T234, T232, T233)), T145, node(node(nil, T145, nil), T146, node(X432, T232, T233))) → U9_aaa(T145, T146, T234, T232, T233, X432, tappend151_in_aaa(T234, X431, X432))
U9_aaa(T145, T146, T234, T232, T233, X432, tappend151_out_aaa(T234, X431, X432)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T234, T232, T233)), T145, node(node(nil, T145, nil), T146, node(X432, T232, T233)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X489))) → U10_aaa(T145, T146, X489, tappend151_in_gaa(nil, X486, X489))
U10_aaa(T145, T146, X489, tappend151_out_gaa(nil, X486, X489)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X489)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T249, T250, T252)), T145, node(node(nil, T145, nil), T146, node(T249, T250, X489))) → U11_aaa(T145, T146, T249, T250, T252, X489, tappend151_in_aaa(T252, X486, X489))
U11_aaa(T145, T146, T249, T250, T252, X489, tappend151_out_aaa(T252, X486, X489)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T249, T250, T252)), T145, node(node(nil, T145, nil), T146, node(T249, T250, X489)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T265, T266, T268)), T145, node(node(nil, T145, nil), T146, node(T265, T266, X489))) → U12_aaa(T145, T146, T265, T266, T268, X489, tappend151_in_aaa(T268, X486, X489))
U12_aaa(T145, T146, T265, T266, T268, X489, tappend151_out_aaa(T268, X486, X489)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T265, T266, T268)), T145, node(node(nil, T145, nil), T146, node(T265, T266, X489)))
U6_aaa(T126, T124, T125, T127, X217, tappend38_out_aaa(T126, T127, X217)) → tappend38_out_aaa(node(T126, T124, T125), T127, node(X217, T124, T125))
U5_aaa(T107, T105, T106, T108, X217, tappend38_out_aaa(T107, T108, X217)) → tappend38_out_aaa(node(T107, T105, T106), T108, node(X217, T105, T106))
U23_gaa(T7, T24, T25, tappend38_out_aaa(T23, T24, X81)) → goal1_out_gaa(T7, T24, T25)
goal1_in_gaa(T7, T24, T269) → U24_gaa(T7, T24, T269, s2t4_in_ga(T7, T23))
U24_gaa(T7, T24, T269, s2t4_out_ga(T7, T23)) → U25_gaa(T7, T24, T269, tappend38_in_aaa(T23, T24, node(nil, T269, nil)))
U25_gaa(T7, T24, T269, tappend38_out_aaa(T23, T24, node(nil, T269, nil))) → goal1_out_gaa(T7, T24, T269)
goal1_in_gaa(T7, T24, T274) → U26_gaa(T7, T24, T274, s2t4_in_ga(T7, T23))
U26_gaa(T7, T24, T274, s2t4_out_ga(T7, T23)) → U27_gaa(T7, T24, T274, tappend38_in_aaa(T23, T24, node(T275, T272, T273)))
U27_gaa(T7, T24, T274, tappend38_out_aaa(T23, T24, node(T275, T272, T273))) → U28_gaa(T7, T24, T274, tlast39_in_aa(T274, T275))
tlast39_in_aa(T269, node(nil, T269, nil)) → tlast39_out_aa(T269, node(nil, T269, nil))
tlast39_in_aa(T274, node(T275, T272, T273)) → U19_aa(T274, T275, T272, T273, tlast39_in_aa(T274, T275))
tlast39_in_aa(T280, node(T277, T278, T281)) → U20_aa(T280, T277, T278, T281, tlast39_in_aa(T280, T281))
U20_aa(T280, T277, T278, T281, tlast39_out_aa(T280, T281)) → tlast39_out_aa(T280, node(T277, T278, T281))
U19_aa(T274, T275, T272, T273, tlast39_out_aa(T274, T275)) → tlast39_out_aa(T274, node(T275, T272, T273))
U28_gaa(T7, T24, T274, tlast39_out_aa(T274, T275)) → goal1_out_gaa(T7, T24, T274)
goal1_in_gaa(T7, T24, T280) → U29_gaa(T7, T24, T280, s2t4_in_ga(T7, T23))
U29_gaa(T7, T24, T280, s2t4_out_ga(T7, T23)) → U30_gaa(T7, T24, T280, tappend38_in_aaa(T23, T24, node(T277, T278, T281)))
U30_gaa(T7, T24, T280, tappend38_out_aaa(T23, T24, node(T277, T278, T281))) → U31_gaa(T7, T24, T280, tlast39_in_aa(T280, T281))
U31_gaa(T7, T24, T280, tlast39_out_aa(T280, T281)) → goal1_out_gaa(T7, T24, T280)
TAPPEND38_IN_GAA(node(T107, T105, T106), T108, node(X217, T105, T106)) → TAPPEND38_IN_GAA(T107, T108, X217)
TAPPEND38_IN_GAA(node(T107, T105, T106)) → TAPPEND38_IN_GAA(T107)
From the DPs we obtained the following set of size-change graphs:
TAPPEND38_IN_AAA(node(T107, T105, T106), T108, node(X217, T105, T106)) → TAPPEND38_IN_AAA(T107, T108, X217)
goal1_in_gaa(T7, T10, T11) → U21_gaa(T7, T10, T11, s2t4_in_ga(T7, X21))
s2t4_in_ga(0, nil) → s2t4_out_ga(0, nil)
s2t4_in_ga(s(T14), node(X38, X39, X38)) → U1_ga(T14, X38, X39, s2t4_in_ga(T14, X38))
s2t4_in_ga(s(T16), node(nil, X52, X53)) → U2_ga(T16, X52, X53, s2t4_in_ga(T16, X53))
s2t4_in_ga(s(T18), node(X66, X67, nil)) → U3_ga(T18, X66, X67, s2t4_in_ga(T18, X66))
s2t4_in_ga(T19, node(nil, X74, nil)) → s2t4_out_ga(T19, node(nil, X74, nil))
U3_ga(T18, X66, X67, s2t4_out_ga(T18, X66)) → s2t4_out_ga(s(T18), node(X66, X67, nil))
U2_ga(T16, X52, X53, s2t4_out_ga(T16, X53)) → s2t4_out_ga(s(T16), node(nil, X52, X53))
U1_ga(T14, X38, X39, s2t4_out_ga(T14, X38)) → s2t4_out_ga(s(T14), node(X38, X39, X38))
U21_gaa(T7, T10, T11, s2t4_out_ga(T7, X21)) → goal1_out_gaa(T7, T10, T11)
goal1_in_gaa(T7, T24, T25) → U22_gaa(T7, T24, T25, s2t4_in_ga(T7, T23))
U22_gaa(T7, T24, T25, s2t4_out_ga(T7, T23)) → U23_gaa(T7, T24, T25, tappend38_in_aaa(T23, T24, X81))
tappend38_in_aaa(nil, T30, node(nil, T30, nil)) → tappend38_out_aaa(nil, T30, node(nil, T30, nil))
tappend38_in_aaa(nil, T32, node(node(nil, T32, nil), nil, nil)) → tappend38_out_aaa(nil, T32, node(node(nil, T32, nil), nil, nil))
tappend38_in_aaa(node(nil, T43, T44), T32, node(node(nil, T32, nil), T43, T44)) → tappend38_out_aaa(node(nil, T43, T44), T32, node(node(nil, T32, nil), T43, T44))
tappend38_in_aaa(nil, T57, node(nil, nil, node(nil, T57, nil))) → tappend38_out_aaa(nil, T57, node(nil, nil, node(nil, T57, nil)))
tappend38_in_aaa(node(T70, T71, nil), T57, node(T70, T71, node(nil, T57, nil))) → tappend38_out_aaa(node(T70, T71, nil), T57, node(T70, T71, node(nil, T57, nil)))
tappend38_in_aaa(nil, T89, node(X217, nil, nil)) → U4_aaa(T89, X217, tappend38_in_gaa(nil, T89, X217))
tappend38_in_gaa(nil, T30, node(nil, T30, nil)) → tappend38_out_gaa(nil, T30, node(nil, T30, nil))
tappend38_in_gaa(nil, T32, node(node(nil, T32, nil), nil, nil)) → tappend38_out_gaa(nil, T32, node(node(nil, T32, nil), nil, nil))
tappend38_in_gaa(node(nil, T43, T44), T32, node(node(nil, T32, nil), T43, T44)) → tappend38_out_gaa(node(nil, T43, T44), T32, node(node(nil, T32, nil), T43, T44))
tappend38_in_gaa(nil, T57, node(nil, nil, node(nil, T57, nil))) → tappend38_out_gaa(nil, T57, node(nil, nil, node(nil, T57, nil)))
tappend38_in_gaa(node(T70, T71, nil), T57, node(T70, T71, node(nil, T57, nil))) → tappend38_out_gaa(node(T70, T71, nil), T57, node(T70, T71, node(nil, T57, nil)))
tappend38_in_gaa(nil, T89, node(X217, nil, nil)) → U4_gaa(T89, X217, tappend38_in_gaa(nil, T89, X217))
tappend38_in_gaa(node(T107, T105, T106), T108, node(X217, T105, T106)) → U5_gaa(T107, T105, T106, T108, X217, tappend38_in_gaa(T107, T108, X217))
tappend38_in_gaa(node(T126, T124, T125), T127, node(X217, T124, T125)) → U6_gaa(T126, T124, T125, T127, X217, tappend38_in_gaa(T126, T127, X217))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, X300)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, X300))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X313, nil, nil))) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X313, nil, nil)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(nil, T160, T161)), T145, node(node(nil, T145, nil), T146, node(X313, T160, T161))) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(nil, T160, T161)), T145, node(node(nil, T145, nil), T146, node(X313, T160, T161)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X370))) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X370)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T186, T187, nil)), T145, node(node(nil, T145, nil), T146, node(T186, T187, X370))) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T186, T187, nil)), T145, node(node(nil, T145, nil), T146, node(T186, T187, X370)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X432, nil, nil))) → U7_gaa(T145, T146, X432, tappend151_in_gaa(nil, X431, X432))
tappend151_in_gaa(nil, X300, X300) → tappend151_out_gaa(nil, X300, X300)
tappend151_in_gaa(nil, X313, node(X313, nil, nil)) → tappend151_out_gaa(nil, X313, node(X313, nil, nil))
tappend151_in_gaa(node(nil, T160, T161), X313, node(X313, T160, T161)) → tappend151_out_gaa(node(nil, T160, T161), X313, node(X313, T160, T161))
tappend151_in_gaa(nil, X370, node(nil, nil, X370)) → tappend151_out_gaa(nil, X370, node(nil, nil, X370))
tappend151_in_gaa(node(T186, T187, nil), X370, node(T186, T187, X370)) → tappend151_out_gaa(node(T186, T187, nil), X370, node(T186, T187, X370))
tappend151_in_gaa(nil, X431, node(X432, nil, nil)) → U13_gaa(X431, X432, tappend151_in_gaa(nil, X431, X432))
tappend151_in_gaa(node(T218, T216, T217), X431, node(X432, T216, T217)) → U14_gaa(T218, T216, T217, X431, X432, tappend151_in_gaa(T218, X431, X432))
tappend151_in_gaa(node(T234, T232, T233), X431, node(X432, T232, T233)) → U15_gaa(T234, T232, T233, X431, X432, tappend151_in_gaa(T234, X431, X432))
tappend151_in_gaa(nil, nil, node(nil, nil, X489)) → U16_gaa(X489, tappend151_in_gaa(nil, X486, X489))
tappend151_in_gaa(node(T249, T250, T252), T249, node(T249, T250, X489)) → U17_gaa(T249, T250, T252, X489, tappend151_in_gaa(T252, X486, X489))
tappend151_in_gaa(node(T265, T266, T268), T265, node(T265, T266, X489)) → U18_gaa(T265, T266, T268, X489, tappend151_in_gaa(T268, X486, X489))
U18_gaa(T265, T266, T268, X489, tappend151_out_gaa(T268, X486, X489)) → tappend151_out_gaa(node(T265, T266, T268), T265, node(T265, T266, X489))
U17_gaa(T249, T250, T252, X489, tappend151_out_gaa(T252, X486, X489)) → tappend151_out_gaa(node(T249, T250, T252), T249, node(T249, T250, X489))
U16_gaa(X489, tappend151_out_gaa(nil, X486, X489)) → tappend151_out_gaa(nil, nil, node(nil, nil, X489))
U15_gaa(T234, T232, T233, X431, X432, tappend151_out_gaa(T234, X431, X432)) → tappend151_out_gaa(node(T234, T232, T233), X431, node(X432, T232, T233))
U14_gaa(T218, T216, T217, X431, X432, tappend151_out_gaa(T218, X431, X432)) → tappend151_out_gaa(node(T218, T216, T217), X431, node(X432, T216, T217))
U13_gaa(X431, X432, tappend151_out_gaa(nil, X431, X432)) → tappend151_out_gaa(nil, X431, node(X432, nil, nil))
U7_gaa(T145, T146, X432, tappend151_out_gaa(nil, X431, X432)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X432, nil, nil)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T218, T216, T217)), T145, node(node(nil, T145, nil), T146, node(X432, T216, T217))) → U8_gaa(T145, T146, T218, T216, T217, X432, tappend151_in_gaa(T218, X431, X432))
U8_gaa(T145, T146, T218, T216, T217, X432, tappend151_out_gaa(T218, X431, X432)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T218, T216, T217)), T145, node(node(nil, T145, nil), T146, node(X432, T216, T217)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T234, T232, T233)), T145, node(node(nil, T145, nil), T146, node(X432, T232, T233))) → U9_gaa(T145, T146, T234, T232, T233, X432, tappend151_in_gaa(T234, X431, X432))
U9_gaa(T145, T146, T234, T232, T233, X432, tappend151_out_gaa(T234, X431, X432)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T234, T232, T233)), T145, node(node(nil, T145, nil), T146, node(X432, T232, T233)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X489))) → U10_gaa(T145, T146, X489, tappend151_in_gaa(nil, X486, X489))
U10_gaa(T145, T146, X489, tappend151_out_gaa(nil, X486, X489)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X489)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T249, T250, T252)), T145, node(node(nil, T145, nil), T146, node(T249, T250, X489))) → U11_gaa(T145, T146, T249, T250, T252, X489, tappend151_in_gaa(T252, X486, X489))
U11_gaa(T145, T146, T249, T250, T252, X489, tappend151_out_gaa(T252, X486, X489)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T249, T250, T252)), T145, node(node(nil, T145, nil), T146, node(T249, T250, X489)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T265, T266, T268)), T145, node(node(nil, T145, nil), T146, node(T265, T266, X489))) → U12_gaa(T145, T146, T265, T266, T268, X489, tappend151_in_gaa(T268, X486, X489))
U12_gaa(T145, T146, T265, T266, T268, X489, tappend151_out_gaa(T268, X486, X489)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T265, T266, T268)), T145, node(node(nil, T145, nil), T146, node(T265, T266, X489)))
U6_gaa(T126, T124, T125, T127, X217, tappend38_out_gaa(T126, T127, X217)) → tappend38_out_gaa(node(T126, T124, T125), T127, node(X217, T124, T125))
U5_gaa(T107, T105, T106, T108, X217, tappend38_out_gaa(T107, T108, X217)) → tappend38_out_gaa(node(T107, T105, T106), T108, node(X217, T105, T106))
U4_gaa(T89, X217, tappend38_out_gaa(nil, T89, X217)) → tappend38_out_gaa(nil, T89, node(X217, nil, nil))
U4_aaa(T89, X217, tappend38_out_gaa(nil, T89, X217)) → tappend38_out_aaa(nil, T89, node(X217, nil, nil))
tappend38_in_aaa(node(T107, T105, T106), T108, node(X217, T105, T106)) → U5_aaa(T107, T105, T106, T108, X217, tappend38_in_aaa(T107, T108, X217))
tappend38_in_aaa(node(T126, T124, T125), T127, node(X217, T124, T125)) → U6_aaa(T126, T124, T125, T127, X217, tappend38_in_aaa(T126, T127, X217))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, X300)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, X300))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X313, nil, nil))) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X313, nil, nil)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(nil, T160, T161)), T145, node(node(nil, T145, nil), T146, node(X313, T160, T161))) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(nil, T160, T161)), T145, node(node(nil, T145, nil), T146, node(X313, T160, T161)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X370))) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X370)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T186, T187, nil)), T145, node(node(nil, T145, nil), T146, node(T186, T187, X370))) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T186, T187, nil)), T145, node(node(nil, T145, nil), T146, node(T186, T187, X370)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X432, nil, nil))) → U7_aaa(T145, T146, X432, tappend151_in_gaa(nil, X431, X432))
U7_aaa(T145, T146, X432, tappend151_out_gaa(nil, X431, X432)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X432, nil, nil)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T218, T216, T217)), T145, node(node(nil, T145, nil), T146, node(X432, T216, T217))) → U8_aaa(T145, T146, T218, T216, T217, X432, tappend151_in_aaa(T218, X431, X432))
tappend151_in_aaa(nil, X300, X300) → tappend151_out_aaa(nil, X300, X300)
tappend151_in_aaa(nil, X313, node(X313, nil, nil)) → tappend151_out_aaa(nil, X313, node(X313, nil, nil))
tappend151_in_aaa(node(nil, T160, T161), X313, node(X313, T160, T161)) → tappend151_out_aaa(node(nil, T160, T161), X313, node(X313, T160, T161))
tappend151_in_aaa(nil, X370, node(nil, nil, X370)) → tappend151_out_aaa(nil, X370, node(nil, nil, X370))
tappend151_in_aaa(node(T186, T187, nil), X370, node(T186, T187, X370)) → tappend151_out_aaa(node(T186, T187, nil), X370, node(T186, T187, X370))
tappend151_in_aaa(nil, X431, node(X432, nil, nil)) → U13_aaa(X431, X432, tappend151_in_gaa(nil, X431, X432))
U13_aaa(X431, X432, tappend151_out_gaa(nil, X431, X432)) → tappend151_out_aaa(nil, X431, node(X432, nil, nil))
tappend151_in_aaa(node(T218, T216, T217), X431, node(X432, T216, T217)) → U14_aaa(T218, T216, T217, X431, X432, tappend151_in_aaa(T218, X431, X432))
tappend151_in_aaa(node(T234, T232, T233), X431, node(X432, T232, T233)) → U15_aaa(T234, T232, T233, X431, X432, tappend151_in_aaa(T234, X431, X432))
tappend151_in_aaa(nil, nil, node(nil, nil, X489)) → U16_aaa(X489, tappend151_in_gaa(nil, X486, X489))
U16_aaa(X489, tappend151_out_gaa(nil, X486, X489)) → tappend151_out_aaa(nil, nil, node(nil, nil, X489))
tappend151_in_aaa(node(T249, T250, T252), T249, node(T249, T250, X489)) → U17_aaa(T249, T250, T252, X489, tappend151_in_aaa(T252, X486, X489))
tappend151_in_aaa(node(T265, T266, T268), T265, node(T265, T266, X489)) → U18_aaa(T265, T266, T268, X489, tappend151_in_aaa(T268, X486, X489))
U18_aaa(T265, T266, T268, X489, tappend151_out_aaa(T268, X486, X489)) → tappend151_out_aaa(node(T265, T266, T268), T265, node(T265, T266, X489))
U17_aaa(T249, T250, T252, X489, tappend151_out_aaa(T252, X486, X489)) → tappend151_out_aaa(node(T249, T250, T252), T249, node(T249, T250, X489))
U15_aaa(T234, T232, T233, X431, X432, tappend151_out_aaa(T234, X431, X432)) → tappend151_out_aaa(node(T234, T232, T233), X431, node(X432, T232, T233))
U14_aaa(T218, T216, T217, X431, X432, tappend151_out_aaa(T218, X431, X432)) → tappend151_out_aaa(node(T218, T216, T217), X431, node(X432, T216, T217))
U8_aaa(T145, T146, T218, T216, T217, X432, tappend151_out_aaa(T218, X431, X432)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T218, T216, T217)), T145, node(node(nil, T145, nil), T146, node(X432, T216, T217)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T234, T232, T233)), T145, node(node(nil, T145, nil), T146, node(X432, T232, T233))) → U9_aaa(T145, T146, T234, T232, T233, X432, tappend151_in_aaa(T234, X431, X432))
U9_aaa(T145, T146, T234, T232, T233, X432, tappend151_out_aaa(T234, X431, X432)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T234, T232, T233)), T145, node(node(nil, T145, nil), T146, node(X432, T232, T233)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X489))) → U10_aaa(T145, T146, X489, tappend151_in_gaa(nil, X486, X489))
U10_aaa(T145, T146, X489, tappend151_out_gaa(nil, X486, X489)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X489)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T249, T250, T252)), T145, node(node(nil, T145, nil), T146, node(T249, T250, X489))) → U11_aaa(T145, T146, T249, T250, T252, X489, tappend151_in_aaa(T252, X486, X489))
U11_aaa(T145, T146, T249, T250, T252, X489, tappend151_out_aaa(T252, X486, X489)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T249, T250, T252)), T145, node(node(nil, T145, nil), T146, node(T249, T250, X489)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T265, T266, T268)), T145, node(node(nil, T145, nil), T146, node(T265, T266, X489))) → U12_aaa(T145, T146, T265, T266, T268, X489, tappend151_in_aaa(T268, X486, X489))
U12_aaa(T145, T146, T265, T266, T268, X489, tappend151_out_aaa(T268, X486, X489)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T265, T266, T268)), T145, node(node(nil, T145, nil), T146, node(T265, T266, X489)))
U6_aaa(T126, T124, T125, T127, X217, tappend38_out_aaa(T126, T127, X217)) → tappend38_out_aaa(node(T126, T124, T125), T127, node(X217, T124, T125))
U5_aaa(T107, T105, T106, T108, X217, tappend38_out_aaa(T107, T108, X217)) → tappend38_out_aaa(node(T107, T105, T106), T108, node(X217, T105, T106))
U23_gaa(T7, T24, T25, tappend38_out_aaa(T23, T24, X81)) → goal1_out_gaa(T7, T24, T25)
goal1_in_gaa(T7, T24, T269) → U24_gaa(T7, T24, T269, s2t4_in_ga(T7, T23))
U24_gaa(T7, T24, T269, s2t4_out_ga(T7, T23)) → U25_gaa(T7, T24, T269, tappend38_in_aaa(T23, T24, node(nil, T269, nil)))
U25_gaa(T7, T24, T269, tappend38_out_aaa(T23, T24, node(nil, T269, nil))) → goal1_out_gaa(T7, T24, T269)
goal1_in_gaa(T7, T24, T274) → U26_gaa(T7, T24, T274, s2t4_in_ga(T7, T23))
U26_gaa(T7, T24, T274, s2t4_out_ga(T7, T23)) → U27_gaa(T7, T24, T274, tappend38_in_aaa(T23, T24, node(T275, T272, T273)))
U27_gaa(T7, T24, T274, tappend38_out_aaa(T23, T24, node(T275, T272, T273))) → U28_gaa(T7, T24, T274, tlast39_in_aa(T274, T275))
tlast39_in_aa(T269, node(nil, T269, nil)) → tlast39_out_aa(T269, node(nil, T269, nil))
tlast39_in_aa(T274, node(T275, T272, T273)) → U19_aa(T274, T275, T272, T273, tlast39_in_aa(T274, T275))
tlast39_in_aa(T280, node(T277, T278, T281)) → U20_aa(T280, T277, T278, T281, tlast39_in_aa(T280, T281))
U20_aa(T280, T277, T278, T281, tlast39_out_aa(T280, T281)) → tlast39_out_aa(T280, node(T277, T278, T281))
U19_aa(T274, T275, T272, T273, tlast39_out_aa(T274, T275)) → tlast39_out_aa(T274, node(T275, T272, T273))
U28_gaa(T7, T24, T274, tlast39_out_aa(T274, T275)) → goal1_out_gaa(T7, T24, T274)
goal1_in_gaa(T7, T24, T280) → U29_gaa(T7, T24, T280, s2t4_in_ga(T7, T23))
U29_gaa(T7, T24, T280, s2t4_out_ga(T7, T23)) → U30_gaa(T7, T24, T280, tappend38_in_aaa(T23, T24, node(T277, T278, T281)))
U30_gaa(T7, T24, T280, tappend38_out_aaa(T23, T24, node(T277, T278, T281))) → U31_gaa(T7, T24, T280, tlast39_in_aa(T280, T281))
U31_gaa(T7, T24, T280, tlast39_out_aa(T280, T281)) → goal1_out_gaa(T7, T24, T280)
TAPPEND38_IN_AAA(node(T107, T105, T106), T108, node(X217, T105, T106)) → TAPPEND38_IN_AAA(T107, T108, X217)
TAPPEND38_IN_AAA → TAPPEND38_IN_AAA
S2T4_IN_GA(s(T16), node(nil, X52, X53)) → S2T4_IN_GA(T16, X53)
S2T4_IN_GA(s(T14), node(X38, X39, X38)) → S2T4_IN_GA(T14, X38)
S2T4_IN_GA(s(T18), node(X66, X67, nil)) → S2T4_IN_GA(T18, X66)
goal1_in_gaa(T7, T10, T11) → U21_gaa(T7, T10, T11, s2t4_in_ga(T7, X21))
s2t4_in_ga(0, nil) → s2t4_out_ga(0, nil)
s2t4_in_ga(s(T14), node(X38, X39, X38)) → U1_ga(T14, X38, X39, s2t4_in_ga(T14, X38))
s2t4_in_ga(s(T16), node(nil, X52, X53)) → U2_ga(T16, X52, X53, s2t4_in_ga(T16, X53))
s2t4_in_ga(s(T18), node(X66, X67, nil)) → U3_ga(T18, X66, X67, s2t4_in_ga(T18, X66))
s2t4_in_ga(T19, node(nil, X74, nil)) → s2t4_out_ga(T19, node(nil, X74, nil))
U3_ga(T18, X66, X67, s2t4_out_ga(T18, X66)) → s2t4_out_ga(s(T18), node(X66, X67, nil))
U2_ga(T16, X52, X53, s2t4_out_ga(T16, X53)) → s2t4_out_ga(s(T16), node(nil, X52, X53))
U1_ga(T14, X38, X39, s2t4_out_ga(T14, X38)) → s2t4_out_ga(s(T14), node(X38, X39, X38))
U21_gaa(T7, T10, T11, s2t4_out_ga(T7, X21)) → goal1_out_gaa(T7, T10, T11)
goal1_in_gaa(T7, T24, T25) → U22_gaa(T7, T24, T25, s2t4_in_ga(T7, T23))
U22_gaa(T7, T24, T25, s2t4_out_ga(T7, T23)) → U23_gaa(T7, T24, T25, tappend38_in_aaa(T23, T24, X81))
tappend38_in_aaa(nil, T30, node(nil, T30, nil)) → tappend38_out_aaa(nil, T30, node(nil, T30, nil))
tappend38_in_aaa(nil, T32, node(node(nil, T32, nil), nil, nil)) → tappend38_out_aaa(nil, T32, node(node(nil, T32, nil), nil, nil))
tappend38_in_aaa(node(nil, T43, T44), T32, node(node(nil, T32, nil), T43, T44)) → tappend38_out_aaa(node(nil, T43, T44), T32, node(node(nil, T32, nil), T43, T44))
tappend38_in_aaa(nil, T57, node(nil, nil, node(nil, T57, nil))) → tappend38_out_aaa(nil, T57, node(nil, nil, node(nil, T57, nil)))
tappend38_in_aaa(node(T70, T71, nil), T57, node(T70, T71, node(nil, T57, nil))) → tappend38_out_aaa(node(T70, T71, nil), T57, node(T70, T71, node(nil, T57, nil)))
tappend38_in_aaa(nil, T89, node(X217, nil, nil)) → U4_aaa(T89, X217, tappend38_in_gaa(nil, T89, X217))
tappend38_in_gaa(nil, T30, node(nil, T30, nil)) → tappend38_out_gaa(nil, T30, node(nil, T30, nil))
tappend38_in_gaa(nil, T32, node(node(nil, T32, nil), nil, nil)) → tappend38_out_gaa(nil, T32, node(node(nil, T32, nil), nil, nil))
tappend38_in_gaa(node(nil, T43, T44), T32, node(node(nil, T32, nil), T43, T44)) → tappend38_out_gaa(node(nil, T43, T44), T32, node(node(nil, T32, nil), T43, T44))
tappend38_in_gaa(nil, T57, node(nil, nil, node(nil, T57, nil))) → tappend38_out_gaa(nil, T57, node(nil, nil, node(nil, T57, nil)))
tappend38_in_gaa(node(T70, T71, nil), T57, node(T70, T71, node(nil, T57, nil))) → tappend38_out_gaa(node(T70, T71, nil), T57, node(T70, T71, node(nil, T57, nil)))
tappend38_in_gaa(nil, T89, node(X217, nil, nil)) → U4_gaa(T89, X217, tappend38_in_gaa(nil, T89, X217))
tappend38_in_gaa(node(T107, T105, T106), T108, node(X217, T105, T106)) → U5_gaa(T107, T105, T106, T108, X217, tappend38_in_gaa(T107, T108, X217))
tappend38_in_gaa(node(T126, T124, T125), T127, node(X217, T124, T125)) → U6_gaa(T126, T124, T125, T127, X217, tappend38_in_gaa(T126, T127, X217))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, X300)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, X300))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X313, nil, nil))) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X313, nil, nil)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(nil, T160, T161)), T145, node(node(nil, T145, nil), T146, node(X313, T160, T161))) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(nil, T160, T161)), T145, node(node(nil, T145, nil), T146, node(X313, T160, T161)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X370))) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X370)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T186, T187, nil)), T145, node(node(nil, T145, nil), T146, node(T186, T187, X370))) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T186, T187, nil)), T145, node(node(nil, T145, nil), T146, node(T186, T187, X370)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X432, nil, nil))) → U7_gaa(T145, T146, X432, tappend151_in_gaa(nil, X431, X432))
tappend151_in_gaa(nil, X300, X300) → tappend151_out_gaa(nil, X300, X300)
tappend151_in_gaa(nil, X313, node(X313, nil, nil)) → tappend151_out_gaa(nil, X313, node(X313, nil, nil))
tappend151_in_gaa(node(nil, T160, T161), X313, node(X313, T160, T161)) → tappend151_out_gaa(node(nil, T160, T161), X313, node(X313, T160, T161))
tappend151_in_gaa(nil, X370, node(nil, nil, X370)) → tappend151_out_gaa(nil, X370, node(nil, nil, X370))
tappend151_in_gaa(node(T186, T187, nil), X370, node(T186, T187, X370)) → tappend151_out_gaa(node(T186, T187, nil), X370, node(T186, T187, X370))
tappend151_in_gaa(nil, X431, node(X432, nil, nil)) → U13_gaa(X431, X432, tappend151_in_gaa(nil, X431, X432))
tappend151_in_gaa(node(T218, T216, T217), X431, node(X432, T216, T217)) → U14_gaa(T218, T216, T217, X431, X432, tappend151_in_gaa(T218, X431, X432))
tappend151_in_gaa(node(T234, T232, T233), X431, node(X432, T232, T233)) → U15_gaa(T234, T232, T233, X431, X432, tappend151_in_gaa(T234, X431, X432))
tappend151_in_gaa(nil, nil, node(nil, nil, X489)) → U16_gaa(X489, tappend151_in_gaa(nil, X486, X489))
tappend151_in_gaa(node(T249, T250, T252), T249, node(T249, T250, X489)) → U17_gaa(T249, T250, T252, X489, tappend151_in_gaa(T252, X486, X489))
tappend151_in_gaa(node(T265, T266, T268), T265, node(T265, T266, X489)) → U18_gaa(T265, T266, T268, X489, tappend151_in_gaa(T268, X486, X489))
U18_gaa(T265, T266, T268, X489, tappend151_out_gaa(T268, X486, X489)) → tappend151_out_gaa(node(T265, T266, T268), T265, node(T265, T266, X489))
U17_gaa(T249, T250, T252, X489, tappend151_out_gaa(T252, X486, X489)) → tappend151_out_gaa(node(T249, T250, T252), T249, node(T249, T250, X489))
U16_gaa(X489, tappend151_out_gaa(nil, X486, X489)) → tappend151_out_gaa(nil, nil, node(nil, nil, X489))
U15_gaa(T234, T232, T233, X431, X432, tappend151_out_gaa(T234, X431, X432)) → tappend151_out_gaa(node(T234, T232, T233), X431, node(X432, T232, T233))
U14_gaa(T218, T216, T217, X431, X432, tappend151_out_gaa(T218, X431, X432)) → tappend151_out_gaa(node(T218, T216, T217), X431, node(X432, T216, T217))
U13_gaa(X431, X432, tappend151_out_gaa(nil, X431, X432)) → tappend151_out_gaa(nil, X431, node(X432, nil, nil))
U7_gaa(T145, T146, X432, tappend151_out_gaa(nil, X431, X432)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X432, nil, nil)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T218, T216, T217)), T145, node(node(nil, T145, nil), T146, node(X432, T216, T217))) → U8_gaa(T145, T146, T218, T216, T217, X432, tappend151_in_gaa(T218, X431, X432))
U8_gaa(T145, T146, T218, T216, T217, X432, tappend151_out_gaa(T218, X431, X432)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T218, T216, T217)), T145, node(node(nil, T145, nil), T146, node(X432, T216, T217)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T234, T232, T233)), T145, node(node(nil, T145, nil), T146, node(X432, T232, T233))) → U9_gaa(T145, T146, T234, T232, T233, X432, tappend151_in_gaa(T234, X431, X432))
U9_gaa(T145, T146, T234, T232, T233, X432, tappend151_out_gaa(T234, X431, X432)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T234, T232, T233)), T145, node(node(nil, T145, nil), T146, node(X432, T232, T233)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X489))) → U10_gaa(T145, T146, X489, tappend151_in_gaa(nil, X486, X489))
U10_gaa(T145, T146, X489, tappend151_out_gaa(nil, X486, X489)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X489)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T249, T250, T252)), T145, node(node(nil, T145, nil), T146, node(T249, T250, X489))) → U11_gaa(T145, T146, T249, T250, T252, X489, tappend151_in_gaa(T252, X486, X489))
U11_gaa(T145, T146, T249, T250, T252, X489, tappend151_out_gaa(T252, X486, X489)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T249, T250, T252)), T145, node(node(nil, T145, nil), T146, node(T249, T250, X489)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T265, T266, T268)), T145, node(node(nil, T145, nil), T146, node(T265, T266, X489))) → U12_gaa(T145, T146, T265, T266, T268, X489, tappend151_in_gaa(T268, X486, X489))
U12_gaa(T145, T146, T265, T266, T268, X489, tappend151_out_gaa(T268, X486, X489)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T265, T266, T268)), T145, node(node(nil, T145, nil), T146, node(T265, T266, X489)))
U6_gaa(T126, T124, T125, T127, X217, tappend38_out_gaa(T126, T127, X217)) → tappend38_out_gaa(node(T126, T124, T125), T127, node(X217, T124, T125))
U5_gaa(T107, T105, T106, T108, X217, tappend38_out_gaa(T107, T108, X217)) → tappend38_out_gaa(node(T107, T105, T106), T108, node(X217, T105, T106))
U4_gaa(T89, X217, tappend38_out_gaa(nil, T89, X217)) → tappend38_out_gaa(nil, T89, node(X217, nil, nil))
U4_aaa(T89, X217, tappend38_out_gaa(nil, T89, X217)) → tappend38_out_aaa(nil, T89, node(X217, nil, nil))
tappend38_in_aaa(node(T107, T105, T106), T108, node(X217, T105, T106)) → U5_aaa(T107, T105, T106, T108, X217, tappend38_in_aaa(T107, T108, X217))
tappend38_in_aaa(node(T126, T124, T125), T127, node(X217, T124, T125)) → U6_aaa(T126, T124, T125, T127, X217, tappend38_in_aaa(T126, T127, X217))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, X300)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, X300))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X313, nil, nil))) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X313, nil, nil)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(nil, T160, T161)), T145, node(node(nil, T145, nil), T146, node(X313, T160, T161))) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(nil, T160, T161)), T145, node(node(nil, T145, nil), T146, node(X313, T160, T161)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X370))) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X370)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T186, T187, nil)), T145, node(node(nil, T145, nil), T146, node(T186, T187, X370))) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T186, T187, nil)), T145, node(node(nil, T145, nil), T146, node(T186, T187, X370)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X432, nil, nil))) → U7_aaa(T145, T146, X432, tappend151_in_gaa(nil, X431, X432))
U7_aaa(T145, T146, X432, tappend151_out_gaa(nil, X431, X432)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X432, nil, nil)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T218, T216, T217)), T145, node(node(nil, T145, nil), T146, node(X432, T216, T217))) → U8_aaa(T145, T146, T218, T216, T217, X432, tappend151_in_aaa(T218, X431, X432))
tappend151_in_aaa(nil, X300, X300) → tappend151_out_aaa(nil, X300, X300)
tappend151_in_aaa(nil, X313, node(X313, nil, nil)) → tappend151_out_aaa(nil, X313, node(X313, nil, nil))
tappend151_in_aaa(node(nil, T160, T161), X313, node(X313, T160, T161)) → tappend151_out_aaa(node(nil, T160, T161), X313, node(X313, T160, T161))
tappend151_in_aaa(nil, X370, node(nil, nil, X370)) → tappend151_out_aaa(nil, X370, node(nil, nil, X370))
tappend151_in_aaa(node(T186, T187, nil), X370, node(T186, T187, X370)) → tappend151_out_aaa(node(T186, T187, nil), X370, node(T186, T187, X370))
tappend151_in_aaa(nil, X431, node(X432, nil, nil)) → U13_aaa(X431, X432, tappend151_in_gaa(nil, X431, X432))
U13_aaa(X431, X432, tappend151_out_gaa(nil, X431, X432)) → tappend151_out_aaa(nil, X431, node(X432, nil, nil))
tappend151_in_aaa(node(T218, T216, T217), X431, node(X432, T216, T217)) → U14_aaa(T218, T216, T217, X431, X432, tappend151_in_aaa(T218, X431, X432))
tappend151_in_aaa(node(T234, T232, T233), X431, node(X432, T232, T233)) → U15_aaa(T234, T232, T233, X431, X432, tappend151_in_aaa(T234, X431, X432))
tappend151_in_aaa(nil, nil, node(nil, nil, X489)) → U16_aaa(X489, tappend151_in_gaa(nil, X486, X489))
U16_aaa(X489, tappend151_out_gaa(nil, X486, X489)) → tappend151_out_aaa(nil, nil, node(nil, nil, X489))
tappend151_in_aaa(node(T249, T250, T252), T249, node(T249, T250, X489)) → U17_aaa(T249, T250, T252, X489, tappend151_in_aaa(T252, X486, X489))
tappend151_in_aaa(node(T265, T266, T268), T265, node(T265, T266, X489)) → U18_aaa(T265, T266, T268, X489, tappend151_in_aaa(T268, X486, X489))
U18_aaa(T265, T266, T268, X489, tappend151_out_aaa(T268, X486, X489)) → tappend151_out_aaa(node(T265, T266, T268), T265, node(T265, T266, X489))
U17_aaa(T249, T250, T252, X489, tappend151_out_aaa(T252, X486, X489)) → tappend151_out_aaa(node(T249, T250, T252), T249, node(T249, T250, X489))
U15_aaa(T234, T232, T233, X431, X432, tappend151_out_aaa(T234, X431, X432)) → tappend151_out_aaa(node(T234, T232, T233), X431, node(X432, T232, T233))
U14_aaa(T218, T216, T217, X431, X432, tappend151_out_aaa(T218, X431, X432)) → tappend151_out_aaa(node(T218, T216, T217), X431, node(X432, T216, T217))
U8_aaa(T145, T146, T218, T216, T217, X432, tappend151_out_aaa(T218, X431, X432)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T218, T216, T217)), T145, node(node(nil, T145, nil), T146, node(X432, T216, T217)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T234, T232, T233)), T145, node(node(nil, T145, nil), T146, node(X432, T232, T233))) → U9_aaa(T145, T146, T234, T232, T233, X432, tappend151_in_aaa(T234, X431, X432))
U9_aaa(T145, T146, T234, T232, T233, X432, tappend151_out_aaa(T234, X431, X432)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T234, T232, T233)), T145, node(node(nil, T145, nil), T146, node(X432, T232, T233)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X489))) → U10_aaa(T145, T146, X489, tappend151_in_gaa(nil, X486, X489))
U10_aaa(T145, T146, X489, tappend151_out_gaa(nil, X486, X489)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X489)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T249, T250, T252)), T145, node(node(nil, T145, nil), T146, node(T249, T250, X489))) → U11_aaa(T145, T146, T249, T250, T252, X489, tappend151_in_aaa(T252, X486, X489))
U11_aaa(T145, T146, T249, T250, T252, X489, tappend151_out_aaa(T252, X486, X489)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T249, T250, T252)), T145, node(node(nil, T145, nil), T146, node(T249, T250, X489)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T265, T266, T268)), T145, node(node(nil, T145, nil), T146, node(T265, T266, X489))) → U12_aaa(T145, T146, T265, T266, T268, X489, tappend151_in_aaa(T268, X486, X489))
U12_aaa(T145, T146, T265, T266, T268, X489, tappend151_out_aaa(T268, X486, X489)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T265, T266, T268)), T145, node(node(nil, T145, nil), T146, node(T265, T266, X489)))
U6_aaa(T126, T124, T125, T127, X217, tappend38_out_aaa(T126, T127, X217)) → tappend38_out_aaa(node(T126, T124, T125), T127, node(X217, T124, T125))
U5_aaa(T107, T105, T106, T108, X217, tappend38_out_aaa(T107, T108, X217)) → tappend38_out_aaa(node(T107, T105, T106), T108, node(X217, T105, T106))
U23_gaa(T7, T24, T25, tappend38_out_aaa(T23, T24, X81)) → goal1_out_gaa(T7, T24, T25)
goal1_in_gaa(T7, T24, T269) → U24_gaa(T7, T24, T269, s2t4_in_ga(T7, T23))
U24_gaa(T7, T24, T269, s2t4_out_ga(T7, T23)) → U25_gaa(T7, T24, T269, tappend38_in_aaa(T23, T24, node(nil, T269, nil)))
U25_gaa(T7, T24, T269, tappend38_out_aaa(T23, T24, node(nil, T269, nil))) → goal1_out_gaa(T7, T24, T269)
goal1_in_gaa(T7, T24, T274) → U26_gaa(T7, T24, T274, s2t4_in_ga(T7, T23))
U26_gaa(T7, T24, T274, s2t4_out_ga(T7, T23)) → U27_gaa(T7, T24, T274, tappend38_in_aaa(T23, T24, node(T275, T272, T273)))
U27_gaa(T7, T24, T274, tappend38_out_aaa(T23, T24, node(T275, T272, T273))) → U28_gaa(T7, T24, T274, tlast39_in_aa(T274, T275))
tlast39_in_aa(T269, node(nil, T269, nil)) → tlast39_out_aa(T269, node(nil, T269, nil))
tlast39_in_aa(T274, node(T275, T272, T273)) → U19_aa(T274, T275, T272, T273, tlast39_in_aa(T274, T275))
tlast39_in_aa(T280, node(T277, T278, T281)) → U20_aa(T280, T277, T278, T281, tlast39_in_aa(T280, T281))
U20_aa(T280, T277, T278, T281, tlast39_out_aa(T280, T281)) → tlast39_out_aa(T280, node(T277, T278, T281))
U19_aa(T274, T275, T272, T273, tlast39_out_aa(T274, T275)) → tlast39_out_aa(T274, node(T275, T272, T273))
U28_gaa(T7, T24, T274, tlast39_out_aa(T274, T275)) → goal1_out_gaa(T7, T24, T274)
goal1_in_gaa(T7, T24, T280) → U29_gaa(T7, T24, T280, s2t4_in_ga(T7, T23))
U29_gaa(T7, T24, T280, s2t4_out_ga(T7, T23)) → U30_gaa(T7, T24, T280, tappend38_in_aaa(T23, T24, node(T277, T278, T281)))
U30_gaa(T7, T24, T280, tappend38_out_aaa(T23, T24, node(T277, T278, T281))) → U31_gaa(T7, T24, T280, tlast39_in_aa(T280, T281))
U31_gaa(T7, T24, T280, tlast39_out_aa(T280, T281)) → goal1_out_gaa(T7, T24, T280)
S2T4_IN_GA(s(T16), node(nil, X52, X53)) → S2T4_IN_GA(T16, X53)
S2T4_IN_GA(s(T14), node(X38, X39, X38)) → S2T4_IN_GA(T14, X38)
S2T4_IN_GA(s(T18), node(X66, X67, nil)) → S2T4_IN_GA(T18, X66)
S2T4_IN_GA(s(T16)) → S2T4_IN_GA(T16)
From the DPs we obtained the following set of size-change graphs:
goal1_in_gaa(T7, T10, T11) → U21_gaa(T7, T10, T11, s2t4_in_ga(T7, X21))
s2t4_in_ga(0, nil) → s2t4_out_ga(0, nil)
s2t4_in_ga(s(T14), node(X38, X39, X38)) → U1_ga(T14, X38, X39, s2t4_in_ga(T14, X38))
s2t4_in_ga(s(T16), node(nil, X52, X53)) → U2_ga(T16, X52, X53, s2t4_in_ga(T16, X53))
s2t4_in_ga(s(T18), node(X66, X67, nil)) → U3_ga(T18, X66, X67, s2t4_in_ga(T18, X66))
s2t4_in_ga(T19, node(nil, X74, nil)) → s2t4_out_ga(T19, node(nil, X74, nil))
U3_ga(T18, X66, X67, s2t4_out_ga(T18, X66)) → s2t4_out_ga(s(T18), node(X66, X67, nil))
U2_ga(T16, X52, X53, s2t4_out_ga(T16, X53)) → s2t4_out_ga(s(T16), node(nil, X52, X53))
U1_ga(T14, X38, X39, s2t4_out_ga(T14, X38)) → s2t4_out_ga(s(T14), node(X38, X39, X38))
U21_gaa(T7, T10, T11, s2t4_out_ga(T7, X21)) → goal1_out_gaa(T7, T10, T11)
goal1_in_gaa(T7, T24, T25) → U22_gaa(T7, T24, T25, s2t4_in_ga(T7, T23))
U22_gaa(T7, T24, T25, s2t4_out_ga(T7, T23)) → U23_gaa(T7, T24, T25, tappend38_in_aaa(T23, T24, X81))
tappend38_in_aaa(nil, T30, node(nil, T30, nil)) → tappend38_out_aaa(nil, T30, node(nil, T30, nil))
tappend38_in_aaa(nil, T32, node(node(nil, T32, nil), nil, nil)) → tappend38_out_aaa(nil, T32, node(node(nil, T32, nil), nil, nil))
tappend38_in_aaa(node(nil, T43, T44), T32, node(node(nil, T32, nil), T43, T44)) → tappend38_out_aaa(node(nil, T43, T44), T32, node(node(nil, T32, nil), T43, T44))
tappend38_in_aaa(nil, T57, node(nil, nil, node(nil, T57, nil))) → tappend38_out_aaa(nil, T57, node(nil, nil, node(nil, T57, nil)))
tappend38_in_aaa(node(T70, T71, nil), T57, node(T70, T71, node(nil, T57, nil))) → tappend38_out_aaa(node(T70, T71, nil), T57, node(T70, T71, node(nil, T57, nil)))
tappend38_in_aaa(nil, T89, node(X217, nil, nil)) → U4_aaa(T89, X217, tappend38_in_gaa(nil, T89, X217))
tappend38_in_gaa(nil, T30, node(nil, T30, nil)) → tappend38_out_gaa(nil, T30, node(nil, T30, nil))
tappend38_in_gaa(nil, T32, node(node(nil, T32, nil), nil, nil)) → tappend38_out_gaa(nil, T32, node(node(nil, T32, nil), nil, nil))
tappend38_in_gaa(node(nil, T43, T44), T32, node(node(nil, T32, nil), T43, T44)) → tappend38_out_gaa(node(nil, T43, T44), T32, node(node(nil, T32, nil), T43, T44))
tappend38_in_gaa(nil, T57, node(nil, nil, node(nil, T57, nil))) → tappend38_out_gaa(nil, T57, node(nil, nil, node(nil, T57, nil)))
tappend38_in_gaa(node(T70, T71, nil), T57, node(T70, T71, node(nil, T57, nil))) → tappend38_out_gaa(node(T70, T71, nil), T57, node(T70, T71, node(nil, T57, nil)))
tappend38_in_gaa(nil, T89, node(X217, nil, nil)) → U4_gaa(T89, X217, tappend38_in_gaa(nil, T89, X217))
tappend38_in_gaa(node(T107, T105, T106), T108, node(X217, T105, T106)) → U5_gaa(T107, T105, T106, T108, X217, tappend38_in_gaa(T107, T108, X217))
tappend38_in_gaa(node(T126, T124, T125), T127, node(X217, T124, T125)) → U6_gaa(T126, T124, T125, T127, X217, tappend38_in_gaa(T126, T127, X217))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, X300)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, X300))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X313, nil, nil))) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X313, nil, nil)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(nil, T160, T161)), T145, node(node(nil, T145, nil), T146, node(X313, T160, T161))) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(nil, T160, T161)), T145, node(node(nil, T145, nil), T146, node(X313, T160, T161)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X370))) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X370)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T186, T187, nil)), T145, node(node(nil, T145, nil), T146, node(T186, T187, X370))) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T186, T187, nil)), T145, node(node(nil, T145, nil), T146, node(T186, T187, X370)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X432, nil, nil))) → U7_gaa(T145, T146, X432, tappend151_in_gaa(nil, X431, X432))
tappend151_in_gaa(nil, X300, X300) → tappend151_out_gaa(nil, X300, X300)
tappend151_in_gaa(nil, X313, node(X313, nil, nil)) → tappend151_out_gaa(nil, X313, node(X313, nil, nil))
tappend151_in_gaa(node(nil, T160, T161), X313, node(X313, T160, T161)) → tappend151_out_gaa(node(nil, T160, T161), X313, node(X313, T160, T161))
tappend151_in_gaa(nil, X370, node(nil, nil, X370)) → tappend151_out_gaa(nil, X370, node(nil, nil, X370))
tappend151_in_gaa(node(T186, T187, nil), X370, node(T186, T187, X370)) → tappend151_out_gaa(node(T186, T187, nil), X370, node(T186, T187, X370))
tappend151_in_gaa(nil, X431, node(X432, nil, nil)) → U13_gaa(X431, X432, tappend151_in_gaa(nil, X431, X432))
tappend151_in_gaa(node(T218, T216, T217), X431, node(X432, T216, T217)) → U14_gaa(T218, T216, T217, X431, X432, tappend151_in_gaa(T218, X431, X432))
tappend151_in_gaa(node(T234, T232, T233), X431, node(X432, T232, T233)) → U15_gaa(T234, T232, T233, X431, X432, tappend151_in_gaa(T234, X431, X432))
tappend151_in_gaa(nil, nil, node(nil, nil, X489)) → U16_gaa(X489, tappend151_in_gaa(nil, X486, X489))
tappend151_in_gaa(node(T249, T250, T252), T249, node(T249, T250, X489)) → U17_gaa(T249, T250, T252, X489, tappend151_in_gaa(T252, X486, X489))
tappend151_in_gaa(node(T265, T266, T268), T265, node(T265, T266, X489)) → U18_gaa(T265, T266, T268, X489, tappend151_in_gaa(T268, X486, X489))
U18_gaa(T265, T266, T268, X489, tappend151_out_gaa(T268, X486, X489)) → tappend151_out_gaa(node(T265, T266, T268), T265, node(T265, T266, X489))
U17_gaa(T249, T250, T252, X489, tappend151_out_gaa(T252, X486, X489)) → tappend151_out_gaa(node(T249, T250, T252), T249, node(T249, T250, X489))
U16_gaa(X489, tappend151_out_gaa(nil, X486, X489)) → tappend151_out_gaa(nil, nil, node(nil, nil, X489))
U15_gaa(T234, T232, T233, X431, X432, tappend151_out_gaa(T234, X431, X432)) → tappend151_out_gaa(node(T234, T232, T233), X431, node(X432, T232, T233))
U14_gaa(T218, T216, T217, X431, X432, tappend151_out_gaa(T218, X431, X432)) → tappend151_out_gaa(node(T218, T216, T217), X431, node(X432, T216, T217))
U13_gaa(X431, X432, tappend151_out_gaa(nil, X431, X432)) → tappend151_out_gaa(nil, X431, node(X432, nil, nil))
U7_gaa(T145, T146, X432, tappend151_out_gaa(nil, X431, X432)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X432, nil, nil)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T218, T216, T217)), T145, node(node(nil, T145, nil), T146, node(X432, T216, T217))) → U8_gaa(T145, T146, T218, T216, T217, X432, tappend151_in_gaa(T218, X431, X432))
U8_gaa(T145, T146, T218, T216, T217, X432, tappend151_out_gaa(T218, X431, X432)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T218, T216, T217)), T145, node(node(nil, T145, nil), T146, node(X432, T216, T217)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T234, T232, T233)), T145, node(node(nil, T145, nil), T146, node(X432, T232, T233))) → U9_gaa(T145, T146, T234, T232, T233, X432, tappend151_in_gaa(T234, X431, X432))
U9_gaa(T145, T146, T234, T232, T233, X432, tappend151_out_gaa(T234, X431, X432)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T234, T232, T233)), T145, node(node(nil, T145, nil), T146, node(X432, T232, T233)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X489))) → U10_gaa(T145, T146, X489, tappend151_in_gaa(nil, X486, X489))
U10_gaa(T145, T146, X489, tappend151_out_gaa(nil, X486, X489)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X489)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T249, T250, T252)), T145, node(node(nil, T145, nil), T146, node(T249, T250, X489))) → U11_gaa(T145, T146, T249, T250, T252, X489, tappend151_in_gaa(T252, X486, X489))
U11_gaa(T145, T146, T249, T250, T252, X489, tappend151_out_gaa(T252, X486, X489)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T249, T250, T252)), T145, node(node(nil, T145, nil), T146, node(T249, T250, X489)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T265, T266, T268)), T145, node(node(nil, T145, nil), T146, node(T265, T266, X489))) → U12_gaa(T145, T146, T265, T266, T268, X489, tappend151_in_gaa(T268, X486, X489))
U12_gaa(T145, T146, T265, T266, T268, X489, tappend151_out_gaa(T268, X486, X489)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T265, T266, T268)), T145, node(node(nil, T145, nil), T146, node(T265, T266, X489)))
U6_gaa(T126, T124, T125, T127, X217, tappend38_out_gaa(T126, T127, X217)) → tappend38_out_gaa(node(T126, T124, T125), T127, node(X217, T124, T125))
U5_gaa(T107, T105, T106, T108, X217, tappend38_out_gaa(T107, T108, X217)) → tappend38_out_gaa(node(T107, T105, T106), T108, node(X217, T105, T106))
U4_gaa(T89, X217, tappend38_out_gaa(nil, T89, X217)) → tappend38_out_gaa(nil, T89, node(X217, nil, nil))
U4_aaa(T89, X217, tappend38_out_gaa(nil, T89, X217)) → tappend38_out_aaa(nil, T89, node(X217, nil, nil))
tappend38_in_aaa(node(T107, T105, T106), T108, node(X217, T105, T106)) → U5_aaa(T107, T105, T106, T108, X217, tappend38_in_aaa(T107, T108, X217))
tappend38_in_aaa(node(T126, T124, T125), T127, node(X217, T124, T125)) → U6_aaa(T126, T124, T125, T127, X217, tappend38_in_aaa(T126, T127, X217))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, X300)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, X300))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X313, nil, nil))) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X313, nil, nil)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(nil, T160, T161)), T145, node(node(nil, T145, nil), T146, node(X313, T160, T161))) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(nil, T160, T161)), T145, node(node(nil, T145, nil), T146, node(X313, T160, T161)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X370))) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X370)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T186, T187, nil)), T145, node(node(nil, T145, nil), T146, node(T186, T187, X370))) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T186, T187, nil)), T145, node(node(nil, T145, nil), T146, node(T186, T187, X370)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X432, nil, nil))) → U7_aaa(T145, T146, X432, tappend151_in_gaa(nil, X431, X432))
U7_aaa(T145, T146, X432, tappend151_out_gaa(nil, X431, X432)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X432, nil, nil)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T218, T216, T217)), T145, node(node(nil, T145, nil), T146, node(X432, T216, T217))) → U8_aaa(T145, T146, T218, T216, T217, X432, tappend151_in_aaa(T218, X431, X432))
tappend151_in_aaa(nil, X300, X300) → tappend151_out_aaa(nil, X300, X300)
tappend151_in_aaa(nil, X313, node(X313, nil, nil)) → tappend151_out_aaa(nil, X313, node(X313, nil, nil))
tappend151_in_aaa(node(nil, T160, T161), X313, node(X313, T160, T161)) → tappend151_out_aaa(node(nil, T160, T161), X313, node(X313, T160, T161))
tappend151_in_aaa(nil, X370, node(nil, nil, X370)) → tappend151_out_aaa(nil, X370, node(nil, nil, X370))
tappend151_in_aaa(node(T186, T187, nil), X370, node(T186, T187, X370)) → tappend151_out_aaa(node(T186, T187, nil), X370, node(T186, T187, X370))
tappend151_in_aaa(nil, X431, node(X432, nil, nil)) → U13_aaa(X431, X432, tappend151_in_gaa(nil, X431, X432))
U13_aaa(X431, X432, tappend151_out_gaa(nil, X431, X432)) → tappend151_out_aaa(nil, X431, node(X432, nil, nil))
tappend151_in_aaa(node(T218, T216, T217), X431, node(X432, T216, T217)) → U14_aaa(T218, T216, T217, X431, X432, tappend151_in_aaa(T218, X431, X432))
tappend151_in_aaa(node(T234, T232, T233), X431, node(X432, T232, T233)) → U15_aaa(T234, T232, T233, X431, X432, tappend151_in_aaa(T234, X431, X432))
tappend151_in_aaa(nil, nil, node(nil, nil, X489)) → U16_aaa(X489, tappend151_in_gaa(nil, X486, X489))
U16_aaa(X489, tappend151_out_gaa(nil, X486, X489)) → tappend151_out_aaa(nil, nil, node(nil, nil, X489))
tappend151_in_aaa(node(T249, T250, T252), T249, node(T249, T250, X489)) → U17_aaa(T249, T250, T252, X489, tappend151_in_aaa(T252, X486, X489))
tappend151_in_aaa(node(T265, T266, T268), T265, node(T265, T266, X489)) → U18_aaa(T265, T266, T268, X489, tappend151_in_aaa(T268, X486, X489))
U18_aaa(T265, T266, T268, X489, tappend151_out_aaa(T268, X486, X489)) → tappend151_out_aaa(node(T265, T266, T268), T265, node(T265, T266, X489))
U17_aaa(T249, T250, T252, X489, tappend151_out_aaa(T252, X486, X489)) → tappend151_out_aaa(node(T249, T250, T252), T249, node(T249, T250, X489))
U15_aaa(T234, T232, T233, X431, X432, tappend151_out_aaa(T234, X431, X432)) → tappend151_out_aaa(node(T234, T232, T233), X431, node(X432, T232, T233))
U14_aaa(T218, T216, T217, X431, X432, tappend151_out_aaa(T218, X431, X432)) → tappend151_out_aaa(node(T218, T216, T217), X431, node(X432, T216, T217))
U8_aaa(T145, T146, T218, T216, T217, X432, tappend151_out_aaa(T218, X431, X432)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T218, T216, T217)), T145, node(node(nil, T145, nil), T146, node(X432, T216, T217)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T234, T232, T233)), T145, node(node(nil, T145, nil), T146, node(X432, T232, T233))) → U9_aaa(T145, T146, T234, T232, T233, X432, tappend151_in_aaa(T234, X431, X432))
U9_aaa(T145, T146, T234, T232, T233, X432, tappend151_out_aaa(T234, X431, X432)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T234, T232, T233)), T145, node(node(nil, T145, nil), T146, node(X432, T232, T233)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X489))) → U10_aaa(T145, T146, X489, tappend151_in_gaa(nil, X486, X489))
U10_aaa(T145, T146, X489, tappend151_out_gaa(nil, X486, X489)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X489)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T249, T250, T252)), T145, node(node(nil, T145, nil), T146, node(T249, T250, X489))) → U11_aaa(T145, T146, T249, T250, T252, X489, tappend151_in_aaa(T252, X486, X489))
U11_aaa(T145, T146, T249, T250, T252, X489, tappend151_out_aaa(T252, X486, X489)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T249, T250, T252)), T145, node(node(nil, T145, nil), T146, node(T249, T250, X489)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T265, T266, T268)), T145, node(node(nil, T145, nil), T146, node(T265, T266, X489))) → U12_aaa(T145, T146, T265, T266, T268, X489, tappend151_in_aaa(T268, X486, X489))
U12_aaa(T145, T146, T265, T266, T268, X489, tappend151_out_aaa(T268, X486, X489)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T265, T266, T268)), T145, node(node(nil, T145, nil), T146, node(T265, T266, X489)))
U6_aaa(T126, T124, T125, T127, X217, tappend38_out_aaa(T126, T127, X217)) → tappend38_out_aaa(node(T126, T124, T125), T127, node(X217, T124, T125))
U5_aaa(T107, T105, T106, T108, X217, tappend38_out_aaa(T107, T108, X217)) → tappend38_out_aaa(node(T107, T105, T106), T108, node(X217, T105, T106))
U23_gaa(T7, T24, T25, tappend38_out_aaa(T23, T24, X81)) → goal1_out_gaa(T7, T24, T25)
goal1_in_gaa(T7, T24, T269) → U24_gaa(T7, T24, T269, s2t4_in_ga(T7, T23))
U24_gaa(T7, T24, T269, s2t4_out_ga(T7, T23)) → U25_gaa(T7, T24, T269, tappend38_in_aaa(T23, T24, node(nil, T269, nil)))
U25_gaa(T7, T24, T269, tappend38_out_aaa(T23, T24, node(nil, T269, nil))) → goal1_out_gaa(T7, T24, T269)
goal1_in_gaa(T7, T24, T274) → U26_gaa(T7, T24, T274, s2t4_in_ga(T7, T23))
U26_gaa(T7, T24, T274, s2t4_out_ga(T7, T23)) → U27_gaa(T7, T24, T274, tappend38_in_aaa(T23, T24, node(T275, T272, T273)))
U27_gaa(T7, T24, T274, tappend38_out_aaa(T23, T24, node(T275, T272, T273))) → U28_gaa(T7, T24, T274, tlast39_in_aa(T274, T275))
tlast39_in_aa(T269, node(nil, T269, nil)) → tlast39_out_aa(T269, node(nil, T269, nil))
tlast39_in_aa(T274, node(T275, T272, T273)) → U19_aa(T274, T275, T272, T273, tlast39_in_aa(T274, T275))
tlast39_in_aa(T280, node(T277, T278, T281)) → U20_aa(T280, T277, T278, T281, tlast39_in_aa(T280, T281))
U20_aa(T280, T277, T278, T281, tlast39_out_aa(T280, T281)) → tlast39_out_aa(T280, node(T277, T278, T281))
U19_aa(T274, T275, T272, T273, tlast39_out_aa(T274, T275)) → tlast39_out_aa(T274, node(T275, T272, T273))
U28_gaa(T7, T24, T274, tlast39_out_aa(T274, T275)) → goal1_out_gaa(T7, T24, T274)
goal1_in_gaa(T7, T24, T280) → U29_gaa(T7, T24, T280, s2t4_in_ga(T7, T23))
U29_gaa(T7, T24, T280, s2t4_out_ga(T7, T23)) → U30_gaa(T7, T24, T280, tappend38_in_aaa(T23, T24, node(T277, T278, T281)))
U30_gaa(T7, T24, T280, tappend38_out_aaa(T23, T24, node(T277, T278, T281))) → U31_gaa(T7, T24, T280, tlast39_in_aa(T280, T281))
U31_gaa(T7, T24, T280, tlast39_out_aa(T280, T281)) → goal1_out_gaa(T7, T24, T280)
Infinitary Constructor Rewriting Termination of PiTRS implies Termination of Prolog
goal1_in_gaa(T7, T10, T11) → U21_gaa(T7, T10, T11, s2t4_in_ga(T7, X21))
s2t4_in_ga(0, nil) → s2t4_out_ga(0, nil)
s2t4_in_ga(s(T14), node(X38, X39, X38)) → U1_ga(T14, X38, X39, s2t4_in_ga(T14, X38))
s2t4_in_ga(s(T16), node(nil, X52, X53)) → U2_ga(T16, X52, X53, s2t4_in_ga(T16, X53))
s2t4_in_ga(s(T18), node(X66, X67, nil)) → U3_ga(T18, X66, X67, s2t4_in_ga(T18, X66))
s2t4_in_ga(T19, node(nil, X74, nil)) → s2t4_out_ga(T19, node(nil, X74, nil))
U3_ga(T18, X66, X67, s2t4_out_ga(T18, X66)) → s2t4_out_ga(s(T18), node(X66, X67, nil))
U2_ga(T16, X52, X53, s2t4_out_ga(T16, X53)) → s2t4_out_ga(s(T16), node(nil, X52, X53))
U1_ga(T14, X38, X39, s2t4_out_ga(T14, X38)) → s2t4_out_ga(s(T14), node(X38, X39, X38))
U21_gaa(T7, T10, T11, s2t4_out_ga(T7, X21)) → goal1_out_gaa(T7, T10, T11)
goal1_in_gaa(T7, T24, T25) → U22_gaa(T7, T24, T25, s2t4_in_ga(T7, T23))
U22_gaa(T7, T24, T25, s2t4_out_ga(T7, T23)) → U23_gaa(T7, T24, T25, tappend38_in_aaa(T23, T24, X81))
tappend38_in_aaa(nil, T30, node(nil, T30, nil)) → tappend38_out_aaa(nil, T30, node(nil, T30, nil))
tappend38_in_aaa(nil, T32, node(node(nil, T32, nil), nil, nil)) → tappend38_out_aaa(nil, T32, node(node(nil, T32, nil), nil, nil))
tappend38_in_aaa(node(nil, T43, T44), T32, node(node(nil, T32, nil), T43, T44)) → tappend38_out_aaa(node(nil, T43, T44), T32, node(node(nil, T32, nil), T43, T44))
tappend38_in_aaa(nil, T57, node(nil, nil, node(nil, T57, nil))) → tappend38_out_aaa(nil, T57, node(nil, nil, node(nil, T57, nil)))
tappend38_in_aaa(node(T70, T71, nil), T57, node(T70, T71, node(nil, T57, nil))) → tappend38_out_aaa(node(T70, T71, nil), T57, node(T70, T71, node(nil, T57, nil)))
tappend38_in_aaa(nil, T89, node(X217, nil, nil)) → U4_aaa(T89, X217, tappend38_in_gaa(nil, T89, X217))
tappend38_in_gaa(nil, T30, node(nil, T30, nil)) → tappend38_out_gaa(nil, T30, node(nil, T30, nil))
tappend38_in_gaa(nil, T32, node(node(nil, T32, nil), nil, nil)) → tappend38_out_gaa(nil, T32, node(node(nil, T32, nil), nil, nil))
tappend38_in_gaa(node(nil, T43, T44), T32, node(node(nil, T32, nil), T43, T44)) → tappend38_out_gaa(node(nil, T43, T44), T32, node(node(nil, T32, nil), T43, T44))
tappend38_in_gaa(nil, T57, node(nil, nil, node(nil, T57, nil))) → tappend38_out_gaa(nil, T57, node(nil, nil, node(nil, T57, nil)))
tappend38_in_gaa(node(T70, T71, nil), T57, node(T70, T71, node(nil, T57, nil))) → tappend38_out_gaa(node(T70, T71, nil), T57, node(T70, T71, node(nil, T57, nil)))
tappend38_in_gaa(nil, T89, node(X217, nil, nil)) → U4_gaa(T89, X217, tappend38_in_gaa(nil, T89, X217))
tappend38_in_gaa(node(T107, T105, T106), T108, node(X217, T105, T106)) → U5_gaa(T107, T105, T106, T108, X217, tappend38_in_gaa(T107, T108, X217))
tappend38_in_gaa(node(T126, T124, T125), T127, node(X217, T124, T125)) → U6_gaa(T126, T124, T125, T127, X217, tappend38_in_gaa(T126, T127, X217))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, X300)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, X300))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X313, nil, nil))) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X313, nil, nil)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(nil, T160, T161)), T145, node(node(nil, T145, nil), T146, node(X313, T160, T161))) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(nil, T160, T161)), T145, node(node(nil, T145, nil), T146, node(X313, T160, T161)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X370))) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X370)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T186, T187, nil)), T145, node(node(nil, T145, nil), T146, node(T186, T187, X370))) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T186, T187, nil)), T145, node(node(nil, T145, nil), T146, node(T186, T187, X370)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X432, nil, nil))) → U7_gaa(T145, T146, X432, tappend151_in_gaa(nil, X431, X432))
tappend151_in_gaa(nil, X300, X300) → tappend151_out_gaa(nil, X300, X300)
tappend151_in_gaa(nil, X313, node(X313, nil, nil)) → tappend151_out_gaa(nil, X313, node(X313, nil, nil))
tappend151_in_gaa(node(nil, T160, T161), X313, node(X313, T160, T161)) → tappend151_out_gaa(node(nil, T160, T161), X313, node(X313, T160, T161))
tappend151_in_gaa(nil, X370, node(nil, nil, X370)) → tappend151_out_gaa(nil, X370, node(nil, nil, X370))
tappend151_in_gaa(node(T186, T187, nil), X370, node(T186, T187, X370)) → tappend151_out_gaa(node(T186, T187, nil), X370, node(T186, T187, X370))
tappend151_in_gaa(nil, X431, node(X432, nil, nil)) → U13_gaa(X431, X432, tappend151_in_gaa(nil, X431, X432))
tappend151_in_gaa(node(T218, T216, T217), X431, node(X432, T216, T217)) → U14_gaa(T218, T216, T217, X431, X432, tappend151_in_gaa(T218, X431, X432))
tappend151_in_gaa(node(T234, T232, T233), X431, node(X432, T232, T233)) → U15_gaa(T234, T232, T233, X431, X432, tappend151_in_gaa(T234, X431, X432))
tappend151_in_gaa(nil, nil, node(nil, nil, X489)) → U16_gaa(X489, tappend151_in_gaa(nil, X486, X489))
tappend151_in_gaa(node(T249, T250, T252), T249, node(T249, T250, X489)) → U17_gaa(T249, T250, T252, X489, tappend151_in_gaa(T252, X486, X489))
tappend151_in_gaa(node(T265, T266, T268), T265, node(T265, T266, X489)) → U18_gaa(T265, T266, T268, X489, tappend151_in_gaa(T268, X486, X489))
U18_gaa(T265, T266, T268, X489, tappend151_out_gaa(T268, X486, X489)) → tappend151_out_gaa(node(T265, T266, T268), T265, node(T265, T266, X489))
U17_gaa(T249, T250, T252, X489, tappend151_out_gaa(T252, X486, X489)) → tappend151_out_gaa(node(T249, T250, T252), T249, node(T249, T250, X489))
U16_gaa(X489, tappend151_out_gaa(nil, X486, X489)) → tappend151_out_gaa(nil, nil, node(nil, nil, X489))
U15_gaa(T234, T232, T233, X431, X432, tappend151_out_gaa(T234, X431, X432)) → tappend151_out_gaa(node(T234, T232, T233), X431, node(X432, T232, T233))
U14_gaa(T218, T216, T217, X431, X432, tappend151_out_gaa(T218, X431, X432)) → tappend151_out_gaa(node(T218, T216, T217), X431, node(X432, T216, T217))
U13_gaa(X431, X432, tappend151_out_gaa(nil, X431, X432)) → tappend151_out_gaa(nil, X431, node(X432, nil, nil))
U7_gaa(T145, T146, X432, tappend151_out_gaa(nil, X431, X432)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X432, nil, nil)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T218, T216, T217)), T145, node(node(nil, T145, nil), T146, node(X432, T216, T217))) → U8_gaa(T145, T146, T218, T216, T217, X432, tappend151_in_gaa(T218, X431, X432))
U8_gaa(T145, T146, T218, T216, T217, X432, tappend151_out_gaa(T218, X431, X432)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T218, T216, T217)), T145, node(node(nil, T145, nil), T146, node(X432, T216, T217)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T234, T232, T233)), T145, node(node(nil, T145, nil), T146, node(X432, T232, T233))) → U9_gaa(T145, T146, T234, T232, T233, X432, tappend151_in_gaa(T234, X431, X432))
U9_gaa(T145, T146, T234, T232, T233, X432, tappend151_out_gaa(T234, X431, X432)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T234, T232, T233)), T145, node(node(nil, T145, nil), T146, node(X432, T232, T233)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X489))) → U10_gaa(T145, T146, X489, tappend151_in_gaa(nil, X486, X489))
U10_gaa(T145, T146, X489, tappend151_out_gaa(nil, X486, X489)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X489)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T249, T250, T252)), T145, node(node(nil, T145, nil), T146, node(T249, T250, X489))) → U11_gaa(T145, T146, T249, T250, T252, X489, tappend151_in_gaa(T252, X486, X489))
U11_gaa(T145, T146, T249, T250, T252, X489, tappend151_out_gaa(T252, X486, X489)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T249, T250, T252)), T145, node(node(nil, T145, nil), T146, node(T249, T250, X489)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T265, T266, T268)), T145, node(node(nil, T145, nil), T146, node(T265, T266, X489))) → U12_gaa(T145, T146, T265, T266, T268, X489, tappend151_in_gaa(T268, X486, X489))
U12_gaa(T145, T146, T265, T266, T268, X489, tappend151_out_gaa(T268, X486, X489)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T265, T266, T268)), T145, node(node(nil, T145, nil), T146, node(T265, T266, X489)))
U6_gaa(T126, T124, T125, T127, X217, tappend38_out_gaa(T126, T127, X217)) → tappend38_out_gaa(node(T126, T124, T125), T127, node(X217, T124, T125))
U5_gaa(T107, T105, T106, T108, X217, tappend38_out_gaa(T107, T108, X217)) → tappend38_out_gaa(node(T107, T105, T106), T108, node(X217, T105, T106))
U4_gaa(T89, X217, tappend38_out_gaa(nil, T89, X217)) → tappend38_out_gaa(nil, T89, node(X217, nil, nil))
U4_aaa(T89, X217, tappend38_out_gaa(nil, T89, X217)) → tappend38_out_aaa(nil, T89, node(X217, nil, nil))
tappend38_in_aaa(node(T107, T105, T106), T108, node(X217, T105, T106)) → U5_aaa(T107, T105, T106, T108, X217, tappend38_in_aaa(T107, T108, X217))
tappend38_in_aaa(node(T126, T124, T125), T127, node(X217, T124, T125)) → U6_aaa(T126, T124, T125, T127, X217, tappend38_in_aaa(T126, T127, X217))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, X300)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, X300))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X313, nil, nil))) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X313, nil, nil)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(nil, T160, T161)), T145, node(node(nil, T145, nil), T146, node(X313, T160, T161))) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(nil, T160, T161)), T145, node(node(nil, T145, nil), T146, node(X313, T160, T161)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X370))) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X370)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T186, T187, nil)), T145, node(node(nil, T145, nil), T146, node(T186, T187, X370))) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T186, T187, nil)), T145, node(node(nil, T145, nil), T146, node(T186, T187, X370)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X432, nil, nil))) → U7_aaa(T145, T146, X432, tappend151_in_gaa(nil, X431, X432))
U7_aaa(T145, T146, X432, tappend151_out_gaa(nil, X431, X432)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X432, nil, nil)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T218, T216, T217)), T145, node(node(nil, T145, nil), T146, node(X432, T216, T217))) → U8_aaa(T145, T146, T218, T216, T217, X432, tappend151_in_aaa(T218, X431, X432))
tappend151_in_aaa(nil, X300, X300) → tappend151_out_aaa(nil, X300, X300)
tappend151_in_aaa(nil, X313, node(X313, nil, nil)) → tappend151_out_aaa(nil, X313, node(X313, nil, nil))
tappend151_in_aaa(node(nil, T160, T161), X313, node(X313, T160, T161)) → tappend151_out_aaa(node(nil, T160, T161), X313, node(X313, T160, T161))
tappend151_in_aaa(nil, X370, node(nil, nil, X370)) → tappend151_out_aaa(nil, X370, node(nil, nil, X370))
tappend151_in_aaa(node(T186, T187, nil), X370, node(T186, T187, X370)) → tappend151_out_aaa(node(T186, T187, nil), X370, node(T186, T187, X370))
tappend151_in_aaa(nil, X431, node(X432, nil, nil)) → U13_aaa(X431, X432, tappend151_in_gaa(nil, X431, X432))
U13_aaa(X431, X432, tappend151_out_gaa(nil, X431, X432)) → tappend151_out_aaa(nil, X431, node(X432, nil, nil))
tappend151_in_aaa(node(T218, T216, T217), X431, node(X432, T216, T217)) → U14_aaa(T218, T216, T217, X431, X432, tappend151_in_aaa(T218, X431, X432))
tappend151_in_aaa(node(T234, T232, T233), X431, node(X432, T232, T233)) → U15_aaa(T234, T232, T233, X431, X432, tappend151_in_aaa(T234, X431, X432))
tappend151_in_aaa(nil, nil, node(nil, nil, X489)) → U16_aaa(X489, tappend151_in_gaa(nil, X486, X489))
U16_aaa(X489, tappend151_out_gaa(nil, X486, X489)) → tappend151_out_aaa(nil, nil, node(nil, nil, X489))
tappend151_in_aaa(node(T249, T250, T252), T249, node(T249, T250, X489)) → U17_aaa(T249, T250, T252, X489, tappend151_in_aaa(T252, X486, X489))
tappend151_in_aaa(node(T265, T266, T268), T265, node(T265, T266, X489)) → U18_aaa(T265, T266, T268, X489, tappend151_in_aaa(T268, X486, X489))
U18_aaa(T265, T266, T268, X489, tappend151_out_aaa(T268, X486, X489)) → tappend151_out_aaa(node(T265, T266, T268), T265, node(T265, T266, X489))
U17_aaa(T249, T250, T252, X489, tappend151_out_aaa(T252, X486, X489)) → tappend151_out_aaa(node(T249, T250, T252), T249, node(T249, T250, X489))
U15_aaa(T234, T232, T233, X431, X432, tappend151_out_aaa(T234, X431, X432)) → tappend151_out_aaa(node(T234, T232, T233), X431, node(X432, T232, T233))
U14_aaa(T218, T216, T217, X431, X432, tappend151_out_aaa(T218, X431, X432)) → tappend151_out_aaa(node(T218, T216, T217), X431, node(X432, T216, T217))
U8_aaa(T145, T146, T218, T216, T217, X432, tappend151_out_aaa(T218, X431, X432)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T218, T216, T217)), T145, node(node(nil, T145, nil), T146, node(X432, T216, T217)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T234, T232, T233)), T145, node(node(nil, T145, nil), T146, node(X432, T232, T233))) → U9_aaa(T145, T146, T234, T232, T233, X432, tappend151_in_aaa(T234, X431, X432))
U9_aaa(T145, T146, T234, T232, T233, X432, tappend151_out_aaa(T234, X431, X432)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T234, T232, T233)), T145, node(node(nil, T145, nil), T146, node(X432, T232, T233)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X489))) → U10_aaa(T145, T146, X489, tappend151_in_gaa(nil, X486, X489))
U10_aaa(T145, T146, X489, tappend151_out_gaa(nil, X486, X489)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X489)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T249, T250, T252)), T145, node(node(nil, T145, nil), T146, node(T249, T250, X489))) → U11_aaa(T145, T146, T249, T250, T252, X489, tappend151_in_aaa(T252, X486, X489))
U11_aaa(T145, T146, T249, T250, T252, X489, tappend151_out_aaa(T252, X486, X489)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T249, T250, T252)), T145, node(node(nil, T145, nil), T146, node(T249, T250, X489)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T265, T266, T268)), T145, node(node(nil, T145, nil), T146, node(T265, T266, X489))) → U12_aaa(T145, T146, T265, T266, T268, X489, tappend151_in_aaa(T268, X486, X489))
U12_aaa(T145, T146, T265, T266, T268, X489, tappend151_out_aaa(T268, X486, X489)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T265, T266, T268)), T145, node(node(nil, T145, nil), T146, node(T265, T266, X489)))
U6_aaa(T126, T124, T125, T127, X217, tappend38_out_aaa(T126, T127, X217)) → tappend38_out_aaa(node(T126, T124, T125), T127, node(X217, T124, T125))
U5_aaa(T107, T105, T106, T108, X217, tappend38_out_aaa(T107, T108, X217)) → tappend38_out_aaa(node(T107, T105, T106), T108, node(X217, T105, T106))
U23_gaa(T7, T24, T25, tappend38_out_aaa(T23, T24, X81)) → goal1_out_gaa(T7, T24, T25)
goal1_in_gaa(T7, T24, T269) → U24_gaa(T7, T24, T269, s2t4_in_ga(T7, T23))
U24_gaa(T7, T24, T269, s2t4_out_ga(T7, T23)) → U25_gaa(T7, T24, T269, tappend38_in_aaa(T23, T24, node(nil, T269, nil)))
U25_gaa(T7, T24, T269, tappend38_out_aaa(T23, T24, node(nil, T269, nil))) → goal1_out_gaa(T7, T24, T269)
goal1_in_gaa(T7, T24, T274) → U26_gaa(T7, T24, T274, s2t4_in_ga(T7, T23))
U26_gaa(T7, T24, T274, s2t4_out_ga(T7, T23)) → U27_gaa(T7, T24, T274, tappend38_in_aaa(T23, T24, node(T275, T272, T273)))
U27_gaa(T7, T24, T274, tappend38_out_aaa(T23, T24, node(T275, T272, T273))) → U28_gaa(T7, T24, T274, tlast39_in_aa(T274, T275))
tlast39_in_aa(T269, node(nil, T269, nil)) → tlast39_out_aa(T269, node(nil, T269, nil))
tlast39_in_aa(T274, node(T275, T272, T273)) → U19_aa(T274, T275, T272, T273, tlast39_in_aa(T274, T275))
tlast39_in_aa(T280, node(T277, T278, T281)) → U20_aa(T280, T277, T278, T281, tlast39_in_aa(T280, T281))
U20_aa(T280, T277, T278, T281, tlast39_out_aa(T280, T281)) → tlast39_out_aa(T280, node(T277, T278, T281))
U19_aa(T274, T275, T272, T273, tlast39_out_aa(T274, T275)) → tlast39_out_aa(T274, node(T275, T272, T273))
U28_gaa(T7, T24, T274, tlast39_out_aa(T274, T275)) → goal1_out_gaa(T7, T24, T274)
goal1_in_gaa(T7, T24, T280) → U29_gaa(T7, T24, T280, s2t4_in_ga(T7, T23))
U29_gaa(T7, T24, T280, s2t4_out_ga(T7, T23)) → U30_gaa(T7, T24, T280, tappend38_in_aaa(T23, T24, node(T277, T278, T281)))
U30_gaa(T7, T24, T280, tappend38_out_aaa(T23, T24, node(T277, T278, T281))) → U31_gaa(T7, T24, T280, tlast39_in_aa(T280, T281))
U31_gaa(T7, T24, T280, tlast39_out_aa(T280, T281)) → goal1_out_gaa(T7, T24, T280)
GOAL1_IN_GAA(T7, T10, T11) → U21_GAA(T7, T10, T11, s2t4_in_ga(T7, X21))
GOAL1_IN_GAA(T7, T10, T11) → S2T4_IN_GA(T7, X21)
S2T4_IN_GA(s(T14), node(X38, X39, X38)) → U1_GA(T14, X38, X39, s2t4_in_ga(T14, X38))
S2T4_IN_GA(s(T14), node(X38, X39, X38)) → S2T4_IN_GA(T14, X38)
S2T4_IN_GA(s(T16), node(nil, X52, X53)) → U2_GA(T16, X52, X53, s2t4_in_ga(T16, X53))
S2T4_IN_GA(s(T16), node(nil, X52, X53)) → S2T4_IN_GA(T16, X53)
S2T4_IN_GA(s(T18), node(X66, X67, nil)) → U3_GA(T18, X66, X67, s2t4_in_ga(T18, X66))
S2T4_IN_GA(s(T18), node(X66, X67, nil)) → S2T4_IN_GA(T18, X66)
GOAL1_IN_GAA(T7, T24, T25) → U22_GAA(T7, T24, T25, s2t4_in_ga(T7, T23))
U22_GAA(T7, T24, T25, s2t4_out_ga(T7, T23)) → U23_GAA(T7, T24, T25, tappend38_in_aaa(T23, T24, X81))
U22_GAA(T7, T24, T25, s2t4_out_ga(T7, T23)) → TAPPEND38_IN_AAA(T23, T24, X81)
TAPPEND38_IN_AAA(nil, T89, node(X217, nil, nil)) → U4_AAA(T89, X217, tappend38_in_gaa(nil, T89, X217))
TAPPEND38_IN_AAA(nil, T89, node(X217, nil, nil)) → TAPPEND38_IN_GAA(nil, T89, X217)
TAPPEND38_IN_GAA(nil, T89, node(X217, nil, nil)) → U4_GAA(T89, X217, tappend38_in_gaa(nil, T89, X217))
TAPPEND38_IN_GAA(nil, T89, node(X217, nil, nil)) → TAPPEND38_IN_GAA(nil, T89, X217)
TAPPEND38_IN_GAA(node(T107, T105, T106), T108, node(X217, T105, T106)) → U5_GAA(T107, T105, T106, T108, X217, tappend38_in_gaa(T107, T108, X217))
TAPPEND38_IN_GAA(node(T107, T105, T106), T108, node(X217, T105, T106)) → TAPPEND38_IN_GAA(T107, T108, X217)
TAPPEND38_IN_GAA(node(T126, T124, T125), T127, node(X217, T124, T125)) → U6_GAA(T126, T124, T125, T127, X217, tappend38_in_gaa(T126, T127, X217))
TAPPEND38_IN_GAA(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X432, nil, nil))) → U7_GAA(T145, T146, X432, tappend151_in_gaa(nil, X431, X432))
TAPPEND38_IN_GAA(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X432, nil, nil))) → TAPPEND151_IN_GAA(nil, X431, X432)
TAPPEND151_IN_GAA(nil, X431, node(X432, nil, nil)) → U13_GAA(X431, X432, tappend151_in_gaa(nil, X431, X432))
TAPPEND151_IN_GAA(nil, X431, node(X432, nil, nil)) → TAPPEND151_IN_GAA(nil, X431, X432)
TAPPEND151_IN_GAA(node(T218, T216, T217), X431, node(X432, T216, T217)) → U14_GAA(T218, T216, T217, X431, X432, tappend151_in_gaa(T218, X431, X432))
TAPPEND151_IN_GAA(node(T218, T216, T217), X431, node(X432, T216, T217)) → TAPPEND151_IN_GAA(T218, X431, X432)
TAPPEND151_IN_GAA(node(T234, T232, T233), X431, node(X432, T232, T233)) → U15_GAA(T234, T232, T233, X431, X432, tappend151_in_gaa(T234, X431, X432))
TAPPEND151_IN_GAA(nil, nil, node(nil, nil, X489)) → U16_GAA(X489, tappend151_in_gaa(nil, X486, X489))
TAPPEND151_IN_GAA(nil, nil, node(nil, nil, X489)) → TAPPEND151_IN_GAA(nil, X486, X489)
TAPPEND151_IN_GAA(node(T249, T250, T252), T249, node(T249, T250, X489)) → U17_GAA(T249, T250, T252, X489, tappend151_in_gaa(T252, X486, X489))
TAPPEND151_IN_GAA(node(T249, T250, T252), T249, node(T249, T250, X489)) → TAPPEND151_IN_GAA(T252, X486, X489)
TAPPEND151_IN_GAA(node(T265, T266, T268), T265, node(T265, T266, X489)) → U18_GAA(T265, T266, T268, X489, tappend151_in_gaa(T268, X486, X489))
TAPPEND38_IN_GAA(node(node(nil, T145, nil), T146, node(T218, T216, T217)), T145, node(node(nil, T145, nil), T146, node(X432, T216, T217))) → U8_GAA(T145, T146, T218, T216, T217, X432, tappend151_in_gaa(T218, X431, X432))
TAPPEND38_IN_GAA(node(node(nil, T145, nil), T146, node(T218, T216, T217)), T145, node(node(nil, T145, nil), T146, node(X432, T216, T217))) → TAPPEND151_IN_GAA(T218, X431, X432)
TAPPEND38_IN_GAA(node(node(nil, T145, nil), T146, node(T234, T232, T233)), T145, node(node(nil, T145, nil), T146, node(X432, T232, T233))) → U9_GAA(T145, T146, T234, T232, T233, X432, tappend151_in_gaa(T234, X431, X432))
TAPPEND38_IN_GAA(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X489))) → U10_GAA(T145, T146, X489, tappend151_in_gaa(nil, X486, X489))
TAPPEND38_IN_GAA(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X489))) → TAPPEND151_IN_GAA(nil, X486, X489)
TAPPEND38_IN_GAA(node(node(nil, T145, nil), T146, node(T249, T250, T252)), T145, node(node(nil, T145, nil), T146, node(T249, T250, X489))) → U11_GAA(T145, T146, T249, T250, T252, X489, tappend151_in_gaa(T252, X486, X489))
TAPPEND38_IN_GAA(node(node(nil, T145, nil), T146, node(T249, T250, T252)), T145, node(node(nil, T145, nil), T146, node(T249, T250, X489))) → TAPPEND151_IN_GAA(T252, X486, X489)
TAPPEND38_IN_GAA(node(node(nil, T145, nil), T146, node(T265, T266, T268)), T145, node(node(nil, T145, nil), T146, node(T265, T266, X489))) → U12_GAA(T145, T146, T265, T266, T268, X489, tappend151_in_gaa(T268, X486, X489))
TAPPEND38_IN_AAA(node(T107, T105, T106), T108, node(X217, T105, T106)) → U5_AAA(T107, T105, T106, T108, X217, tappend38_in_aaa(T107, T108, X217))
TAPPEND38_IN_AAA(node(T107, T105, T106), T108, node(X217, T105, T106)) → TAPPEND38_IN_AAA(T107, T108, X217)
TAPPEND38_IN_AAA(node(T126, T124, T125), T127, node(X217, T124, T125)) → U6_AAA(T126, T124, T125, T127, X217, tappend38_in_aaa(T126, T127, X217))
TAPPEND38_IN_AAA(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X432, nil, nil))) → U7_AAA(T145, T146, X432, tappend151_in_gaa(nil, X431, X432))
TAPPEND38_IN_AAA(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X432, nil, nil))) → TAPPEND151_IN_GAA(nil, X431, X432)
TAPPEND38_IN_AAA(node(node(nil, T145, nil), T146, node(T218, T216, T217)), T145, node(node(nil, T145, nil), T146, node(X432, T216, T217))) → U8_AAA(T145, T146, T218, T216, T217, X432, tappend151_in_aaa(T218, X431, X432))
TAPPEND38_IN_AAA(node(node(nil, T145, nil), T146, node(T218, T216, T217)), T145, node(node(nil, T145, nil), T146, node(X432, T216, T217))) → TAPPEND151_IN_AAA(T218, X431, X432)
TAPPEND151_IN_AAA(nil, X431, node(X432, nil, nil)) → U13_AAA(X431, X432, tappend151_in_gaa(nil, X431, X432))
TAPPEND151_IN_AAA(nil, X431, node(X432, nil, nil)) → TAPPEND151_IN_GAA(nil, X431, X432)
TAPPEND151_IN_AAA(node(T218, T216, T217), X431, node(X432, T216, T217)) → U14_AAA(T218, T216, T217, X431, X432, tappend151_in_aaa(T218, X431, X432))
TAPPEND151_IN_AAA(node(T218, T216, T217), X431, node(X432, T216, T217)) → TAPPEND151_IN_AAA(T218, X431, X432)
TAPPEND151_IN_AAA(node(T234, T232, T233), X431, node(X432, T232, T233)) → U15_AAA(T234, T232, T233, X431, X432, tappend151_in_aaa(T234, X431, X432))
TAPPEND151_IN_AAA(nil, nil, node(nil, nil, X489)) → U16_AAA(X489, tappend151_in_gaa(nil, X486, X489))
TAPPEND151_IN_AAA(nil, nil, node(nil, nil, X489)) → TAPPEND151_IN_GAA(nil, X486, X489)
TAPPEND151_IN_AAA(node(T249, T250, T252), T249, node(T249, T250, X489)) → U17_AAA(T249, T250, T252, X489, tappend151_in_aaa(T252, X486, X489))
TAPPEND151_IN_AAA(node(T249, T250, T252), T249, node(T249, T250, X489)) → TAPPEND151_IN_AAA(T252, X486, X489)
TAPPEND151_IN_AAA(node(T265, T266, T268), T265, node(T265, T266, X489)) → U18_AAA(T265, T266, T268, X489, tappend151_in_aaa(T268, X486, X489))
TAPPEND38_IN_AAA(node(node(nil, T145, nil), T146, node(T234, T232, T233)), T145, node(node(nil, T145, nil), T146, node(X432, T232, T233))) → U9_AAA(T145, T146, T234, T232, T233, X432, tappend151_in_aaa(T234, X431, X432))
TAPPEND38_IN_AAA(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X489))) → U10_AAA(T145, T146, X489, tappend151_in_gaa(nil, X486, X489))
TAPPEND38_IN_AAA(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X489))) → TAPPEND151_IN_GAA(nil, X486, X489)
TAPPEND38_IN_AAA(node(node(nil, T145, nil), T146, node(T249, T250, T252)), T145, node(node(nil, T145, nil), T146, node(T249, T250, X489))) → U11_AAA(T145, T146, T249, T250, T252, X489, tappend151_in_aaa(T252, X486, X489))
TAPPEND38_IN_AAA(node(node(nil, T145, nil), T146, node(T249, T250, T252)), T145, node(node(nil, T145, nil), T146, node(T249, T250, X489))) → TAPPEND151_IN_AAA(T252, X486, X489)
TAPPEND38_IN_AAA(node(node(nil, T145, nil), T146, node(T265, T266, T268)), T145, node(node(nil, T145, nil), T146, node(T265, T266, X489))) → U12_AAA(T145, T146, T265, T266, T268, X489, tappend151_in_aaa(T268, X486, X489))
GOAL1_IN_GAA(T7, T24, T269) → U24_GAA(T7, T24, T269, s2t4_in_ga(T7, T23))
U24_GAA(T7, T24, T269, s2t4_out_ga(T7, T23)) → U25_GAA(T7, T24, T269, tappend38_in_aaa(T23, T24, node(nil, T269, nil)))
U24_GAA(T7, T24, T269, s2t4_out_ga(T7, T23)) → TAPPEND38_IN_AAA(T23, T24, node(nil, T269, nil))
GOAL1_IN_GAA(T7, T24, T274) → U26_GAA(T7, T24, T274, s2t4_in_ga(T7, T23))
U26_GAA(T7, T24, T274, s2t4_out_ga(T7, T23)) → U27_GAA(T7, T24, T274, tappend38_in_aaa(T23, T24, node(T275, T272, T273)))
U26_GAA(T7, T24, T274, s2t4_out_ga(T7, T23)) → TAPPEND38_IN_AAA(T23, T24, node(T275, T272, T273))
U27_GAA(T7, T24, T274, tappend38_out_aaa(T23, T24, node(T275, T272, T273))) → U28_GAA(T7, T24, T274, tlast39_in_aa(T274, T275))
U27_GAA(T7, T24, T274, tappend38_out_aaa(T23, T24, node(T275, T272, T273))) → TLAST39_IN_AA(T274, T275)
TLAST39_IN_AA(T274, node(T275, T272, T273)) → U19_AA(T274, T275, T272, T273, tlast39_in_aa(T274, T275))
TLAST39_IN_AA(T274, node(T275, T272, T273)) → TLAST39_IN_AA(T274, T275)
TLAST39_IN_AA(T280, node(T277, T278, T281)) → U20_AA(T280, T277, T278, T281, tlast39_in_aa(T280, T281))
TLAST39_IN_AA(T280, node(T277, T278, T281)) → TLAST39_IN_AA(T280, T281)
GOAL1_IN_GAA(T7, T24, T280) → U29_GAA(T7, T24, T280, s2t4_in_ga(T7, T23))
U29_GAA(T7, T24, T280, s2t4_out_ga(T7, T23)) → U30_GAA(T7, T24, T280, tappend38_in_aaa(T23, T24, node(T277, T278, T281)))
U29_GAA(T7, T24, T280, s2t4_out_ga(T7, T23)) → TAPPEND38_IN_AAA(T23, T24, node(T277, T278, T281))
U30_GAA(T7, T24, T280, tappend38_out_aaa(T23, T24, node(T277, T278, T281))) → U31_GAA(T7, T24, T280, tlast39_in_aa(T280, T281))
U30_GAA(T7, T24, T280, tappend38_out_aaa(T23, T24, node(T277, T278, T281))) → TLAST39_IN_AA(T280, T281)
goal1_in_gaa(T7, T10, T11) → U21_gaa(T7, T10, T11, s2t4_in_ga(T7, X21))
s2t4_in_ga(0, nil) → s2t4_out_ga(0, nil)
s2t4_in_ga(s(T14), node(X38, X39, X38)) → U1_ga(T14, X38, X39, s2t4_in_ga(T14, X38))
s2t4_in_ga(s(T16), node(nil, X52, X53)) → U2_ga(T16, X52, X53, s2t4_in_ga(T16, X53))
s2t4_in_ga(s(T18), node(X66, X67, nil)) → U3_ga(T18, X66, X67, s2t4_in_ga(T18, X66))
s2t4_in_ga(T19, node(nil, X74, nil)) → s2t4_out_ga(T19, node(nil, X74, nil))
U3_ga(T18, X66, X67, s2t4_out_ga(T18, X66)) → s2t4_out_ga(s(T18), node(X66, X67, nil))
U2_ga(T16, X52, X53, s2t4_out_ga(T16, X53)) → s2t4_out_ga(s(T16), node(nil, X52, X53))
U1_ga(T14, X38, X39, s2t4_out_ga(T14, X38)) → s2t4_out_ga(s(T14), node(X38, X39, X38))
U21_gaa(T7, T10, T11, s2t4_out_ga(T7, X21)) → goal1_out_gaa(T7, T10, T11)
goal1_in_gaa(T7, T24, T25) → U22_gaa(T7, T24, T25, s2t4_in_ga(T7, T23))
U22_gaa(T7, T24, T25, s2t4_out_ga(T7, T23)) → U23_gaa(T7, T24, T25, tappend38_in_aaa(T23, T24, X81))
tappend38_in_aaa(nil, T30, node(nil, T30, nil)) → tappend38_out_aaa(nil, T30, node(nil, T30, nil))
tappend38_in_aaa(nil, T32, node(node(nil, T32, nil), nil, nil)) → tappend38_out_aaa(nil, T32, node(node(nil, T32, nil), nil, nil))
tappend38_in_aaa(node(nil, T43, T44), T32, node(node(nil, T32, nil), T43, T44)) → tappend38_out_aaa(node(nil, T43, T44), T32, node(node(nil, T32, nil), T43, T44))
tappend38_in_aaa(nil, T57, node(nil, nil, node(nil, T57, nil))) → tappend38_out_aaa(nil, T57, node(nil, nil, node(nil, T57, nil)))
tappend38_in_aaa(node(T70, T71, nil), T57, node(T70, T71, node(nil, T57, nil))) → tappend38_out_aaa(node(T70, T71, nil), T57, node(T70, T71, node(nil, T57, nil)))
tappend38_in_aaa(nil, T89, node(X217, nil, nil)) → U4_aaa(T89, X217, tappend38_in_gaa(nil, T89, X217))
tappend38_in_gaa(nil, T30, node(nil, T30, nil)) → tappend38_out_gaa(nil, T30, node(nil, T30, nil))
tappend38_in_gaa(nil, T32, node(node(nil, T32, nil), nil, nil)) → tappend38_out_gaa(nil, T32, node(node(nil, T32, nil), nil, nil))
tappend38_in_gaa(node(nil, T43, T44), T32, node(node(nil, T32, nil), T43, T44)) → tappend38_out_gaa(node(nil, T43, T44), T32, node(node(nil, T32, nil), T43, T44))
tappend38_in_gaa(nil, T57, node(nil, nil, node(nil, T57, nil))) → tappend38_out_gaa(nil, T57, node(nil, nil, node(nil, T57, nil)))
tappend38_in_gaa(node(T70, T71, nil), T57, node(T70, T71, node(nil, T57, nil))) → tappend38_out_gaa(node(T70, T71, nil), T57, node(T70, T71, node(nil, T57, nil)))
tappend38_in_gaa(nil, T89, node(X217, nil, nil)) → U4_gaa(T89, X217, tappend38_in_gaa(nil, T89, X217))
tappend38_in_gaa(node(T107, T105, T106), T108, node(X217, T105, T106)) → U5_gaa(T107, T105, T106, T108, X217, tappend38_in_gaa(T107, T108, X217))
tappend38_in_gaa(node(T126, T124, T125), T127, node(X217, T124, T125)) → U6_gaa(T126, T124, T125, T127, X217, tappend38_in_gaa(T126, T127, X217))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, X300)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, X300))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X313, nil, nil))) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X313, nil, nil)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(nil, T160, T161)), T145, node(node(nil, T145, nil), T146, node(X313, T160, T161))) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(nil, T160, T161)), T145, node(node(nil, T145, nil), T146, node(X313, T160, T161)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X370))) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X370)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T186, T187, nil)), T145, node(node(nil, T145, nil), T146, node(T186, T187, X370))) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T186, T187, nil)), T145, node(node(nil, T145, nil), T146, node(T186, T187, X370)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X432, nil, nil))) → U7_gaa(T145, T146, X432, tappend151_in_gaa(nil, X431, X432))
tappend151_in_gaa(nil, X300, X300) → tappend151_out_gaa(nil, X300, X300)
tappend151_in_gaa(nil, X313, node(X313, nil, nil)) → tappend151_out_gaa(nil, X313, node(X313, nil, nil))
tappend151_in_gaa(node(nil, T160, T161), X313, node(X313, T160, T161)) → tappend151_out_gaa(node(nil, T160, T161), X313, node(X313, T160, T161))
tappend151_in_gaa(nil, X370, node(nil, nil, X370)) → tappend151_out_gaa(nil, X370, node(nil, nil, X370))
tappend151_in_gaa(node(T186, T187, nil), X370, node(T186, T187, X370)) → tappend151_out_gaa(node(T186, T187, nil), X370, node(T186, T187, X370))
tappend151_in_gaa(nil, X431, node(X432, nil, nil)) → U13_gaa(X431, X432, tappend151_in_gaa(nil, X431, X432))
tappend151_in_gaa(node(T218, T216, T217), X431, node(X432, T216, T217)) → U14_gaa(T218, T216, T217, X431, X432, tappend151_in_gaa(T218, X431, X432))
tappend151_in_gaa(node(T234, T232, T233), X431, node(X432, T232, T233)) → U15_gaa(T234, T232, T233, X431, X432, tappend151_in_gaa(T234, X431, X432))
tappend151_in_gaa(nil, nil, node(nil, nil, X489)) → U16_gaa(X489, tappend151_in_gaa(nil, X486, X489))
tappend151_in_gaa(node(T249, T250, T252), T249, node(T249, T250, X489)) → U17_gaa(T249, T250, T252, X489, tappend151_in_gaa(T252, X486, X489))
tappend151_in_gaa(node(T265, T266, T268), T265, node(T265, T266, X489)) → U18_gaa(T265, T266, T268, X489, tappend151_in_gaa(T268, X486, X489))
U18_gaa(T265, T266, T268, X489, tappend151_out_gaa(T268, X486, X489)) → tappend151_out_gaa(node(T265, T266, T268), T265, node(T265, T266, X489))
U17_gaa(T249, T250, T252, X489, tappend151_out_gaa(T252, X486, X489)) → tappend151_out_gaa(node(T249, T250, T252), T249, node(T249, T250, X489))
U16_gaa(X489, tappend151_out_gaa(nil, X486, X489)) → tappend151_out_gaa(nil, nil, node(nil, nil, X489))
U15_gaa(T234, T232, T233, X431, X432, tappend151_out_gaa(T234, X431, X432)) → tappend151_out_gaa(node(T234, T232, T233), X431, node(X432, T232, T233))
U14_gaa(T218, T216, T217, X431, X432, tappend151_out_gaa(T218, X431, X432)) → tappend151_out_gaa(node(T218, T216, T217), X431, node(X432, T216, T217))
U13_gaa(X431, X432, tappend151_out_gaa(nil, X431, X432)) → tappend151_out_gaa(nil, X431, node(X432, nil, nil))
U7_gaa(T145, T146, X432, tappend151_out_gaa(nil, X431, X432)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X432, nil, nil)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T218, T216, T217)), T145, node(node(nil, T145, nil), T146, node(X432, T216, T217))) → U8_gaa(T145, T146, T218, T216, T217, X432, tappend151_in_gaa(T218, X431, X432))
U8_gaa(T145, T146, T218, T216, T217, X432, tappend151_out_gaa(T218, X431, X432)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T218, T216, T217)), T145, node(node(nil, T145, nil), T146, node(X432, T216, T217)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T234, T232, T233)), T145, node(node(nil, T145, nil), T146, node(X432, T232, T233))) → U9_gaa(T145, T146, T234, T232, T233, X432, tappend151_in_gaa(T234, X431, X432))
U9_gaa(T145, T146, T234, T232, T233, X432, tappend151_out_gaa(T234, X431, X432)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T234, T232, T233)), T145, node(node(nil, T145, nil), T146, node(X432, T232, T233)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X489))) → U10_gaa(T145, T146, X489, tappend151_in_gaa(nil, X486, X489))
U10_gaa(T145, T146, X489, tappend151_out_gaa(nil, X486, X489)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X489)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T249, T250, T252)), T145, node(node(nil, T145, nil), T146, node(T249, T250, X489))) → U11_gaa(T145, T146, T249, T250, T252, X489, tappend151_in_gaa(T252, X486, X489))
U11_gaa(T145, T146, T249, T250, T252, X489, tappend151_out_gaa(T252, X486, X489)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T249, T250, T252)), T145, node(node(nil, T145, nil), T146, node(T249, T250, X489)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T265, T266, T268)), T145, node(node(nil, T145, nil), T146, node(T265, T266, X489))) → U12_gaa(T145, T146, T265, T266, T268, X489, tappend151_in_gaa(T268, X486, X489))
U12_gaa(T145, T146, T265, T266, T268, X489, tappend151_out_gaa(T268, X486, X489)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T265, T266, T268)), T145, node(node(nil, T145, nil), T146, node(T265, T266, X489)))
U6_gaa(T126, T124, T125, T127, X217, tappend38_out_gaa(T126, T127, X217)) → tappend38_out_gaa(node(T126, T124, T125), T127, node(X217, T124, T125))
U5_gaa(T107, T105, T106, T108, X217, tappend38_out_gaa(T107, T108, X217)) → tappend38_out_gaa(node(T107, T105, T106), T108, node(X217, T105, T106))
U4_gaa(T89, X217, tappend38_out_gaa(nil, T89, X217)) → tappend38_out_gaa(nil, T89, node(X217, nil, nil))
U4_aaa(T89, X217, tappend38_out_gaa(nil, T89, X217)) → tappend38_out_aaa(nil, T89, node(X217, nil, nil))
tappend38_in_aaa(node(T107, T105, T106), T108, node(X217, T105, T106)) → U5_aaa(T107, T105, T106, T108, X217, tappend38_in_aaa(T107, T108, X217))
tappend38_in_aaa(node(T126, T124, T125), T127, node(X217, T124, T125)) → U6_aaa(T126, T124, T125, T127, X217, tappend38_in_aaa(T126, T127, X217))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, X300)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, X300))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X313, nil, nil))) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X313, nil, nil)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(nil, T160, T161)), T145, node(node(nil, T145, nil), T146, node(X313, T160, T161))) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(nil, T160, T161)), T145, node(node(nil, T145, nil), T146, node(X313, T160, T161)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X370))) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X370)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T186, T187, nil)), T145, node(node(nil, T145, nil), T146, node(T186, T187, X370))) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T186, T187, nil)), T145, node(node(nil, T145, nil), T146, node(T186, T187, X370)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X432, nil, nil))) → U7_aaa(T145, T146, X432, tappend151_in_gaa(nil, X431, X432))
U7_aaa(T145, T146, X432, tappend151_out_gaa(nil, X431, X432)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X432, nil, nil)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T218, T216, T217)), T145, node(node(nil, T145, nil), T146, node(X432, T216, T217))) → U8_aaa(T145, T146, T218, T216, T217, X432, tappend151_in_aaa(T218, X431, X432))
tappend151_in_aaa(nil, X300, X300) → tappend151_out_aaa(nil, X300, X300)
tappend151_in_aaa(nil, X313, node(X313, nil, nil)) → tappend151_out_aaa(nil, X313, node(X313, nil, nil))
tappend151_in_aaa(node(nil, T160, T161), X313, node(X313, T160, T161)) → tappend151_out_aaa(node(nil, T160, T161), X313, node(X313, T160, T161))
tappend151_in_aaa(nil, X370, node(nil, nil, X370)) → tappend151_out_aaa(nil, X370, node(nil, nil, X370))
tappend151_in_aaa(node(T186, T187, nil), X370, node(T186, T187, X370)) → tappend151_out_aaa(node(T186, T187, nil), X370, node(T186, T187, X370))
tappend151_in_aaa(nil, X431, node(X432, nil, nil)) → U13_aaa(X431, X432, tappend151_in_gaa(nil, X431, X432))
U13_aaa(X431, X432, tappend151_out_gaa(nil, X431, X432)) → tappend151_out_aaa(nil, X431, node(X432, nil, nil))
tappend151_in_aaa(node(T218, T216, T217), X431, node(X432, T216, T217)) → U14_aaa(T218, T216, T217, X431, X432, tappend151_in_aaa(T218, X431, X432))
tappend151_in_aaa(node(T234, T232, T233), X431, node(X432, T232, T233)) → U15_aaa(T234, T232, T233, X431, X432, tappend151_in_aaa(T234, X431, X432))
tappend151_in_aaa(nil, nil, node(nil, nil, X489)) → U16_aaa(X489, tappend151_in_gaa(nil, X486, X489))
U16_aaa(X489, tappend151_out_gaa(nil, X486, X489)) → tappend151_out_aaa(nil, nil, node(nil, nil, X489))
tappend151_in_aaa(node(T249, T250, T252), T249, node(T249, T250, X489)) → U17_aaa(T249, T250, T252, X489, tappend151_in_aaa(T252, X486, X489))
tappend151_in_aaa(node(T265, T266, T268), T265, node(T265, T266, X489)) → U18_aaa(T265, T266, T268, X489, tappend151_in_aaa(T268, X486, X489))
U18_aaa(T265, T266, T268, X489, tappend151_out_aaa(T268, X486, X489)) → tappend151_out_aaa(node(T265, T266, T268), T265, node(T265, T266, X489))
U17_aaa(T249, T250, T252, X489, tappend151_out_aaa(T252, X486, X489)) → tappend151_out_aaa(node(T249, T250, T252), T249, node(T249, T250, X489))
U15_aaa(T234, T232, T233, X431, X432, tappend151_out_aaa(T234, X431, X432)) → tappend151_out_aaa(node(T234, T232, T233), X431, node(X432, T232, T233))
U14_aaa(T218, T216, T217, X431, X432, tappend151_out_aaa(T218, X431, X432)) → tappend151_out_aaa(node(T218, T216, T217), X431, node(X432, T216, T217))
U8_aaa(T145, T146, T218, T216, T217, X432, tappend151_out_aaa(T218, X431, X432)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T218, T216, T217)), T145, node(node(nil, T145, nil), T146, node(X432, T216, T217)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T234, T232, T233)), T145, node(node(nil, T145, nil), T146, node(X432, T232, T233))) → U9_aaa(T145, T146, T234, T232, T233, X432, tappend151_in_aaa(T234, X431, X432))
U9_aaa(T145, T146, T234, T232, T233, X432, tappend151_out_aaa(T234, X431, X432)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T234, T232, T233)), T145, node(node(nil, T145, nil), T146, node(X432, T232, T233)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X489))) → U10_aaa(T145, T146, X489, tappend151_in_gaa(nil, X486, X489))
U10_aaa(T145, T146, X489, tappend151_out_gaa(nil, X486, X489)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X489)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T249, T250, T252)), T145, node(node(nil, T145, nil), T146, node(T249, T250, X489))) → U11_aaa(T145, T146, T249, T250, T252, X489, tappend151_in_aaa(T252, X486, X489))
U11_aaa(T145, T146, T249, T250, T252, X489, tappend151_out_aaa(T252, X486, X489)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T249, T250, T252)), T145, node(node(nil, T145, nil), T146, node(T249, T250, X489)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T265, T266, T268)), T145, node(node(nil, T145, nil), T146, node(T265, T266, X489))) → U12_aaa(T145, T146, T265, T266, T268, X489, tappend151_in_aaa(T268, X486, X489))
U12_aaa(T145, T146, T265, T266, T268, X489, tappend151_out_aaa(T268, X486, X489)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T265, T266, T268)), T145, node(node(nil, T145, nil), T146, node(T265, T266, X489)))
U6_aaa(T126, T124, T125, T127, X217, tappend38_out_aaa(T126, T127, X217)) → tappend38_out_aaa(node(T126, T124, T125), T127, node(X217, T124, T125))
U5_aaa(T107, T105, T106, T108, X217, tappend38_out_aaa(T107, T108, X217)) → tappend38_out_aaa(node(T107, T105, T106), T108, node(X217, T105, T106))
U23_gaa(T7, T24, T25, tappend38_out_aaa(T23, T24, X81)) → goal1_out_gaa(T7, T24, T25)
goal1_in_gaa(T7, T24, T269) → U24_gaa(T7, T24, T269, s2t4_in_ga(T7, T23))
U24_gaa(T7, T24, T269, s2t4_out_ga(T7, T23)) → U25_gaa(T7, T24, T269, tappend38_in_aaa(T23, T24, node(nil, T269, nil)))
U25_gaa(T7, T24, T269, tappend38_out_aaa(T23, T24, node(nil, T269, nil))) → goal1_out_gaa(T7, T24, T269)
goal1_in_gaa(T7, T24, T274) → U26_gaa(T7, T24, T274, s2t4_in_ga(T7, T23))
U26_gaa(T7, T24, T274, s2t4_out_ga(T7, T23)) → U27_gaa(T7, T24, T274, tappend38_in_aaa(T23, T24, node(T275, T272, T273)))
U27_gaa(T7, T24, T274, tappend38_out_aaa(T23, T24, node(T275, T272, T273))) → U28_gaa(T7, T24, T274, tlast39_in_aa(T274, T275))
tlast39_in_aa(T269, node(nil, T269, nil)) → tlast39_out_aa(T269, node(nil, T269, nil))
tlast39_in_aa(T274, node(T275, T272, T273)) → U19_aa(T274, T275, T272, T273, tlast39_in_aa(T274, T275))
tlast39_in_aa(T280, node(T277, T278, T281)) → U20_aa(T280, T277, T278, T281, tlast39_in_aa(T280, T281))
U20_aa(T280, T277, T278, T281, tlast39_out_aa(T280, T281)) → tlast39_out_aa(T280, node(T277, T278, T281))
U19_aa(T274, T275, T272, T273, tlast39_out_aa(T274, T275)) → tlast39_out_aa(T274, node(T275, T272, T273))
U28_gaa(T7, T24, T274, tlast39_out_aa(T274, T275)) → goal1_out_gaa(T7, T24, T274)
goal1_in_gaa(T7, T24, T280) → U29_gaa(T7, T24, T280, s2t4_in_ga(T7, T23))
U29_gaa(T7, T24, T280, s2t4_out_ga(T7, T23)) → U30_gaa(T7, T24, T280, tappend38_in_aaa(T23, T24, node(T277, T278, T281)))
U30_gaa(T7, T24, T280, tappend38_out_aaa(T23, T24, node(T277, T278, T281))) → U31_gaa(T7, T24, T280, tlast39_in_aa(T280, T281))
U31_gaa(T7, T24, T280, tlast39_out_aa(T280, T281)) → goal1_out_gaa(T7, T24, T280)
GOAL1_IN_GAA(T7, T10, T11) → U21_GAA(T7, T10, T11, s2t4_in_ga(T7, X21))
GOAL1_IN_GAA(T7, T10, T11) → S2T4_IN_GA(T7, X21)
S2T4_IN_GA(s(T14), node(X38, X39, X38)) → U1_GA(T14, X38, X39, s2t4_in_ga(T14, X38))
S2T4_IN_GA(s(T14), node(X38, X39, X38)) → S2T4_IN_GA(T14, X38)
S2T4_IN_GA(s(T16), node(nil, X52, X53)) → U2_GA(T16, X52, X53, s2t4_in_ga(T16, X53))
S2T4_IN_GA(s(T16), node(nil, X52, X53)) → S2T4_IN_GA(T16, X53)
S2T4_IN_GA(s(T18), node(X66, X67, nil)) → U3_GA(T18, X66, X67, s2t4_in_ga(T18, X66))
S2T4_IN_GA(s(T18), node(X66, X67, nil)) → S2T4_IN_GA(T18, X66)
GOAL1_IN_GAA(T7, T24, T25) → U22_GAA(T7, T24, T25, s2t4_in_ga(T7, T23))
U22_GAA(T7, T24, T25, s2t4_out_ga(T7, T23)) → U23_GAA(T7, T24, T25, tappend38_in_aaa(T23, T24, X81))
U22_GAA(T7, T24, T25, s2t4_out_ga(T7, T23)) → TAPPEND38_IN_AAA(T23, T24, X81)
TAPPEND38_IN_AAA(nil, T89, node(X217, nil, nil)) → U4_AAA(T89, X217, tappend38_in_gaa(nil, T89, X217))
TAPPEND38_IN_AAA(nil, T89, node(X217, nil, nil)) → TAPPEND38_IN_GAA(nil, T89, X217)
TAPPEND38_IN_GAA(nil, T89, node(X217, nil, nil)) → U4_GAA(T89, X217, tappend38_in_gaa(nil, T89, X217))
TAPPEND38_IN_GAA(nil, T89, node(X217, nil, nil)) → TAPPEND38_IN_GAA(nil, T89, X217)
TAPPEND38_IN_GAA(node(T107, T105, T106), T108, node(X217, T105, T106)) → U5_GAA(T107, T105, T106, T108, X217, tappend38_in_gaa(T107, T108, X217))
TAPPEND38_IN_GAA(node(T107, T105, T106), T108, node(X217, T105, T106)) → TAPPEND38_IN_GAA(T107, T108, X217)
TAPPEND38_IN_GAA(node(T126, T124, T125), T127, node(X217, T124, T125)) → U6_GAA(T126, T124, T125, T127, X217, tappend38_in_gaa(T126, T127, X217))
TAPPEND38_IN_GAA(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X432, nil, nil))) → U7_GAA(T145, T146, X432, tappend151_in_gaa(nil, X431, X432))
TAPPEND38_IN_GAA(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X432, nil, nil))) → TAPPEND151_IN_GAA(nil, X431, X432)
TAPPEND151_IN_GAA(nil, X431, node(X432, nil, nil)) → U13_GAA(X431, X432, tappend151_in_gaa(nil, X431, X432))
TAPPEND151_IN_GAA(nil, X431, node(X432, nil, nil)) → TAPPEND151_IN_GAA(nil, X431, X432)
TAPPEND151_IN_GAA(node(T218, T216, T217), X431, node(X432, T216, T217)) → U14_GAA(T218, T216, T217, X431, X432, tappend151_in_gaa(T218, X431, X432))
TAPPEND151_IN_GAA(node(T218, T216, T217), X431, node(X432, T216, T217)) → TAPPEND151_IN_GAA(T218, X431, X432)
TAPPEND151_IN_GAA(node(T234, T232, T233), X431, node(X432, T232, T233)) → U15_GAA(T234, T232, T233, X431, X432, tappend151_in_gaa(T234, X431, X432))
TAPPEND151_IN_GAA(nil, nil, node(nil, nil, X489)) → U16_GAA(X489, tappend151_in_gaa(nil, X486, X489))
TAPPEND151_IN_GAA(nil, nil, node(nil, nil, X489)) → TAPPEND151_IN_GAA(nil, X486, X489)
TAPPEND151_IN_GAA(node(T249, T250, T252), T249, node(T249, T250, X489)) → U17_GAA(T249, T250, T252, X489, tappend151_in_gaa(T252, X486, X489))
TAPPEND151_IN_GAA(node(T249, T250, T252), T249, node(T249, T250, X489)) → TAPPEND151_IN_GAA(T252, X486, X489)
TAPPEND151_IN_GAA(node(T265, T266, T268), T265, node(T265, T266, X489)) → U18_GAA(T265, T266, T268, X489, tappend151_in_gaa(T268, X486, X489))
TAPPEND38_IN_GAA(node(node(nil, T145, nil), T146, node(T218, T216, T217)), T145, node(node(nil, T145, nil), T146, node(X432, T216, T217))) → U8_GAA(T145, T146, T218, T216, T217, X432, tappend151_in_gaa(T218, X431, X432))
TAPPEND38_IN_GAA(node(node(nil, T145, nil), T146, node(T218, T216, T217)), T145, node(node(nil, T145, nil), T146, node(X432, T216, T217))) → TAPPEND151_IN_GAA(T218, X431, X432)
TAPPEND38_IN_GAA(node(node(nil, T145, nil), T146, node(T234, T232, T233)), T145, node(node(nil, T145, nil), T146, node(X432, T232, T233))) → U9_GAA(T145, T146, T234, T232, T233, X432, tappend151_in_gaa(T234, X431, X432))
TAPPEND38_IN_GAA(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X489))) → U10_GAA(T145, T146, X489, tappend151_in_gaa(nil, X486, X489))
TAPPEND38_IN_GAA(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X489))) → TAPPEND151_IN_GAA(nil, X486, X489)
TAPPEND38_IN_GAA(node(node(nil, T145, nil), T146, node(T249, T250, T252)), T145, node(node(nil, T145, nil), T146, node(T249, T250, X489))) → U11_GAA(T145, T146, T249, T250, T252, X489, tappend151_in_gaa(T252, X486, X489))
TAPPEND38_IN_GAA(node(node(nil, T145, nil), T146, node(T249, T250, T252)), T145, node(node(nil, T145, nil), T146, node(T249, T250, X489))) → TAPPEND151_IN_GAA(T252, X486, X489)
TAPPEND38_IN_GAA(node(node(nil, T145, nil), T146, node(T265, T266, T268)), T145, node(node(nil, T145, nil), T146, node(T265, T266, X489))) → U12_GAA(T145, T146, T265, T266, T268, X489, tappend151_in_gaa(T268, X486, X489))
TAPPEND38_IN_AAA(node(T107, T105, T106), T108, node(X217, T105, T106)) → U5_AAA(T107, T105, T106, T108, X217, tappend38_in_aaa(T107, T108, X217))
TAPPEND38_IN_AAA(node(T107, T105, T106), T108, node(X217, T105, T106)) → TAPPEND38_IN_AAA(T107, T108, X217)
TAPPEND38_IN_AAA(node(T126, T124, T125), T127, node(X217, T124, T125)) → U6_AAA(T126, T124, T125, T127, X217, tappend38_in_aaa(T126, T127, X217))
TAPPEND38_IN_AAA(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X432, nil, nil))) → U7_AAA(T145, T146, X432, tappend151_in_gaa(nil, X431, X432))
TAPPEND38_IN_AAA(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X432, nil, nil))) → TAPPEND151_IN_GAA(nil, X431, X432)
TAPPEND38_IN_AAA(node(node(nil, T145, nil), T146, node(T218, T216, T217)), T145, node(node(nil, T145, nil), T146, node(X432, T216, T217))) → U8_AAA(T145, T146, T218, T216, T217, X432, tappend151_in_aaa(T218, X431, X432))
TAPPEND38_IN_AAA(node(node(nil, T145, nil), T146, node(T218, T216, T217)), T145, node(node(nil, T145, nil), T146, node(X432, T216, T217))) → TAPPEND151_IN_AAA(T218, X431, X432)
TAPPEND151_IN_AAA(nil, X431, node(X432, nil, nil)) → U13_AAA(X431, X432, tappend151_in_gaa(nil, X431, X432))
TAPPEND151_IN_AAA(nil, X431, node(X432, nil, nil)) → TAPPEND151_IN_GAA(nil, X431, X432)
TAPPEND151_IN_AAA(node(T218, T216, T217), X431, node(X432, T216, T217)) → U14_AAA(T218, T216, T217, X431, X432, tappend151_in_aaa(T218, X431, X432))
TAPPEND151_IN_AAA(node(T218, T216, T217), X431, node(X432, T216, T217)) → TAPPEND151_IN_AAA(T218, X431, X432)
TAPPEND151_IN_AAA(node(T234, T232, T233), X431, node(X432, T232, T233)) → U15_AAA(T234, T232, T233, X431, X432, tappend151_in_aaa(T234, X431, X432))
TAPPEND151_IN_AAA(nil, nil, node(nil, nil, X489)) → U16_AAA(X489, tappend151_in_gaa(nil, X486, X489))
TAPPEND151_IN_AAA(nil, nil, node(nil, nil, X489)) → TAPPEND151_IN_GAA(nil, X486, X489)
TAPPEND151_IN_AAA(node(T249, T250, T252), T249, node(T249, T250, X489)) → U17_AAA(T249, T250, T252, X489, tappend151_in_aaa(T252, X486, X489))
TAPPEND151_IN_AAA(node(T249, T250, T252), T249, node(T249, T250, X489)) → TAPPEND151_IN_AAA(T252, X486, X489)
TAPPEND151_IN_AAA(node(T265, T266, T268), T265, node(T265, T266, X489)) → U18_AAA(T265, T266, T268, X489, tappend151_in_aaa(T268, X486, X489))
TAPPEND38_IN_AAA(node(node(nil, T145, nil), T146, node(T234, T232, T233)), T145, node(node(nil, T145, nil), T146, node(X432, T232, T233))) → U9_AAA(T145, T146, T234, T232, T233, X432, tappend151_in_aaa(T234, X431, X432))
TAPPEND38_IN_AAA(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X489))) → U10_AAA(T145, T146, X489, tappend151_in_gaa(nil, X486, X489))
TAPPEND38_IN_AAA(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X489))) → TAPPEND151_IN_GAA(nil, X486, X489)
TAPPEND38_IN_AAA(node(node(nil, T145, nil), T146, node(T249, T250, T252)), T145, node(node(nil, T145, nil), T146, node(T249, T250, X489))) → U11_AAA(T145, T146, T249, T250, T252, X489, tappend151_in_aaa(T252, X486, X489))
TAPPEND38_IN_AAA(node(node(nil, T145, nil), T146, node(T249, T250, T252)), T145, node(node(nil, T145, nil), T146, node(T249, T250, X489))) → TAPPEND151_IN_AAA(T252, X486, X489)
TAPPEND38_IN_AAA(node(node(nil, T145, nil), T146, node(T265, T266, T268)), T145, node(node(nil, T145, nil), T146, node(T265, T266, X489))) → U12_AAA(T145, T146, T265, T266, T268, X489, tappend151_in_aaa(T268, X486, X489))
GOAL1_IN_GAA(T7, T24, T269) → U24_GAA(T7, T24, T269, s2t4_in_ga(T7, T23))
U24_GAA(T7, T24, T269, s2t4_out_ga(T7, T23)) → U25_GAA(T7, T24, T269, tappend38_in_aaa(T23, T24, node(nil, T269, nil)))
U24_GAA(T7, T24, T269, s2t4_out_ga(T7, T23)) → TAPPEND38_IN_AAA(T23, T24, node(nil, T269, nil))
GOAL1_IN_GAA(T7, T24, T274) → U26_GAA(T7, T24, T274, s2t4_in_ga(T7, T23))
U26_GAA(T7, T24, T274, s2t4_out_ga(T7, T23)) → U27_GAA(T7, T24, T274, tappend38_in_aaa(T23, T24, node(T275, T272, T273)))
U26_GAA(T7, T24, T274, s2t4_out_ga(T7, T23)) → TAPPEND38_IN_AAA(T23, T24, node(T275, T272, T273))
U27_GAA(T7, T24, T274, tappend38_out_aaa(T23, T24, node(T275, T272, T273))) → U28_GAA(T7, T24, T274, tlast39_in_aa(T274, T275))
U27_GAA(T7, T24, T274, tappend38_out_aaa(T23, T24, node(T275, T272, T273))) → TLAST39_IN_AA(T274, T275)
TLAST39_IN_AA(T274, node(T275, T272, T273)) → U19_AA(T274, T275, T272, T273, tlast39_in_aa(T274, T275))
TLAST39_IN_AA(T274, node(T275, T272, T273)) → TLAST39_IN_AA(T274, T275)
TLAST39_IN_AA(T280, node(T277, T278, T281)) → U20_AA(T280, T277, T278, T281, tlast39_in_aa(T280, T281))
TLAST39_IN_AA(T280, node(T277, T278, T281)) → TLAST39_IN_AA(T280, T281)
GOAL1_IN_GAA(T7, T24, T280) → U29_GAA(T7, T24, T280, s2t4_in_ga(T7, T23))
U29_GAA(T7, T24, T280, s2t4_out_ga(T7, T23)) → U30_GAA(T7, T24, T280, tappend38_in_aaa(T23, T24, node(T277, T278, T281)))
U29_GAA(T7, T24, T280, s2t4_out_ga(T7, T23)) → TAPPEND38_IN_AAA(T23, T24, node(T277, T278, T281))
U30_GAA(T7, T24, T280, tappend38_out_aaa(T23, T24, node(T277, T278, T281))) → U31_GAA(T7, T24, T280, tlast39_in_aa(T280, T281))
U30_GAA(T7, T24, T280, tappend38_out_aaa(T23, T24, node(T277, T278, T281))) → TLAST39_IN_AA(T280, T281)
goal1_in_gaa(T7, T10, T11) → U21_gaa(T7, T10, T11, s2t4_in_ga(T7, X21))
s2t4_in_ga(0, nil) → s2t4_out_ga(0, nil)
s2t4_in_ga(s(T14), node(X38, X39, X38)) → U1_ga(T14, X38, X39, s2t4_in_ga(T14, X38))
s2t4_in_ga(s(T16), node(nil, X52, X53)) → U2_ga(T16, X52, X53, s2t4_in_ga(T16, X53))
s2t4_in_ga(s(T18), node(X66, X67, nil)) → U3_ga(T18, X66, X67, s2t4_in_ga(T18, X66))
s2t4_in_ga(T19, node(nil, X74, nil)) → s2t4_out_ga(T19, node(nil, X74, nil))
U3_ga(T18, X66, X67, s2t4_out_ga(T18, X66)) → s2t4_out_ga(s(T18), node(X66, X67, nil))
U2_ga(T16, X52, X53, s2t4_out_ga(T16, X53)) → s2t4_out_ga(s(T16), node(nil, X52, X53))
U1_ga(T14, X38, X39, s2t4_out_ga(T14, X38)) → s2t4_out_ga(s(T14), node(X38, X39, X38))
U21_gaa(T7, T10, T11, s2t4_out_ga(T7, X21)) → goal1_out_gaa(T7, T10, T11)
goal1_in_gaa(T7, T24, T25) → U22_gaa(T7, T24, T25, s2t4_in_ga(T7, T23))
U22_gaa(T7, T24, T25, s2t4_out_ga(T7, T23)) → U23_gaa(T7, T24, T25, tappend38_in_aaa(T23, T24, X81))
tappend38_in_aaa(nil, T30, node(nil, T30, nil)) → tappend38_out_aaa(nil, T30, node(nil, T30, nil))
tappend38_in_aaa(nil, T32, node(node(nil, T32, nil), nil, nil)) → tappend38_out_aaa(nil, T32, node(node(nil, T32, nil), nil, nil))
tappend38_in_aaa(node(nil, T43, T44), T32, node(node(nil, T32, nil), T43, T44)) → tappend38_out_aaa(node(nil, T43, T44), T32, node(node(nil, T32, nil), T43, T44))
tappend38_in_aaa(nil, T57, node(nil, nil, node(nil, T57, nil))) → tappend38_out_aaa(nil, T57, node(nil, nil, node(nil, T57, nil)))
tappend38_in_aaa(node(T70, T71, nil), T57, node(T70, T71, node(nil, T57, nil))) → tappend38_out_aaa(node(T70, T71, nil), T57, node(T70, T71, node(nil, T57, nil)))
tappend38_in_aaa(nil, T89, node(X217, nil, nil)) → U4_aaa(T89, X217, tappend38_in_gaa(nil, T89, X217))
tappend38_in_gaa(nil, T30, node(nil, T30, nil)) → tappend38_out_gaa(nil, T30, node(nil, T30, nil))
tappend38_in_gaa(nil, T32, node(node(nil, T32, nil), nil, nil)) → tappend38_out_gaa(nil, T32, node(node(nil, T32, nil), nil, nil))
tappend38_in_gaa(node(nil, T43, T44), T32, node(node(nil, T32, nil), T43, T44)) → tappend38_out_gaa(node(nil, T43, T44), T32, node(node(nil, T32, nil), T43, T44))
tappend38_in_gaa(nil, T57, node(nil, nil, node(nil, T57, nil))) → tappend38_out_gaa(nil, T57, node(nil, nil, node(nil, T57, nil)))
tappend38_in_gaa(node(T70, T71, nil), T57, node(T70, T71, node(nil, T57, nil))) → tappend38_out_gaa(node(T70, T71, nil), T57, node(T70, T71, node(nil, T57, nil)))
tappend38_in_gaa(nil, T89, node(X217, nil, nil)) → U4_gaa(T89, X217, tappend38_in_gaa(nil, T89, X217))
tappend38_in_gaa(node(T107, T105, T106), T108, node(X217, T105, T106)) → U5_gaa(T107, T105, T106, T108, X217, tappend38_in_gaa(T107, T108, X217))
tappend38_in_gaa(node(T126, T124, T125), T127, node(X217, T124, T125)) → U6_gaa(T126, T124, T125, T127, X217, tappend38_in_gaa(T126, T127, X217))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, X300)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, X300))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X313, nil, nil))) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X313, nil, nil)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(nil, T160, T161)), T145, node(node(nil, T145, nil), T146, node(X313, T160, T161))) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(nil, T160, T161)), T145, node(node(nil, T145, nil), T146, node(X313, T160, T161)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X370))) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X370)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T186, T187, nil)), T145, node(node(nil, T145, nil), T146, node(T186, T187, X370))) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T186, T187, nil)), T145, node(node(nil, T145, nil), T146, node(T186, T187, X370)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X432, nil, nil))) → U7_gaa(T145, T146, X432, tappend151_in_gaa(nil, X431, X432))
tappend151_in_gaa(nil, X300, X300) → tappend151_out_gaa(nil, X300, X300)
tappend151_in_gaa(nil, X313, node(X313, nil, nil)) → tappend151_out_gaa(nil, X313, node(X313, nil, nil))
tappend151_in_gaa(node(nil, T160, T161), X313, node(X313, T160, T161)) → tappend151_out_gaa(node(nil, T160, T161), X313, node(X313, T160, T161))
tappend151_in_gaa(nil, X370, node(nil, nil, X370)) → tappend151_out_gaa(nil, X370, node(nil, nil, X370))
tappend151_in_gaa(node(T186, T187, nil), X370, node(T186, T187, X370)) → tappend151_out_gaa(node(T186, T187, nil), X370, node(T186, T187, X370))
tappend151_in_gaa(nil, X431, node(X432, nil, nil)) → U13_gaa(X431, X432, tappend151_in_gaa(nil, X431, X432))
tappend151_in_gaa(node(T218, T216, T217), X431, node(X432, T216, T217)) → U14_gaa(T218, T216, T217, X431, X432, tappend151_in_gaa(T218, X431, X432))
tappend151_in_gaa(node(T234, T232, T233), X431, node(X432, T232, T233)) → U15_gaa(T234, T232, T233, X431, X432, tappend151_in_gaa(T234, X431, X432))
tappend151_in_gaa(nil, nil, node(nil, nil, X489)) → U16_gaa(X489, tappend151_in_gaa(nil, X486, X489))
tappend151_in_gaa(node(T249, T250, T252), T249, node(T249, T250, X489)) → U17_gaa(T249, T250, T252, X489, tappend151_in_gaa(T252, X486, X489))
tappend151_in_gaa(node(T265, T266, T268), T265, node(T265, T266, X489)) → U18_gaa(T265, T266, T268, X489, tappend151_in_gaa(T268, X486, X489))
U18_gaa(T265, T266, T268, X489, tappend151_out_gaa(T268, X486, X489)) → tappend151_out_gaa(node(T265, T266, T268), T265, node(T265, T266, X489))
U17_gaa(T249, T250, T252, X489, tappend151_out_gaa(T252, X486, X489)) → tappend151_out_gaa(node(T249, T250, T252), T249, node(T249, T250, X489))
U16_gaa(X489, tappend151_out_gaa(nil, X486, X489)) → tappend151_out_gaa(nil, nil, node(nil, nil, X489))
U15_gaa(T234, T232, T233, X431, X432, tappend151_out_gaa(T234, X431, X432)) → tappend151_out_gaa(node(T234, T232, T233), X431, node(X432, T232, T233))
U14_gaa(T218, T216, T217, X431, X432, tappend151_out_gaa(T218, X431, X432)) → tappend151_out_gaa(node(T218, T216, T217), X431, node(X432, T216, T217))
U13_gaa(X431, X432, tappend151_out_gaa(nil, X431, X432)) → tappend151_out_gaa(nil, X431, node(X432, nil, nil))
U7_gaa(T145, T146, X432, tappend151_out_gaa(nil, X431, X432)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X432, nil, nil)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T218, T216, T217)), T145, node(node(nil, T145, nil), T146, node(X432, T216, T217))) → U8_gaa(T145, T146, T218, T216, T217, X432, tappend151_in_gaa(T218, X431, X432))
U8_gaa(T145, T146, T218, T216, T217, X432, tappend151_out_gaa(T218, X431, X432)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T218, T216, T217)), T145, node(node(nil, T145, nil), T146, node(X432, T216, T217)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T234, T232, T233)), T145, node(node(nil, T145, nil), T146, node(X432, T232, T233))) → U9_gaa(T145, T146, T234, T232, T233, X432, tappend151_in_gaa(T234, X431, X432))
U9_gaa(T145, T146, T234, T232, T233, X432, tappend151_out_gaa(T234, X431, X432)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T234, T232, T233)), T145, node(node(nil, T145, nil), T146, node(X432, T232, T233)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X489))) → U10_gaa(T145, T146, X489, tappend151_in_gaa(nil, X486, X489))
U10_gaa(T145, T146, X489, tappend151_out_gaa(nil, X486, X489)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X489)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T249, T250, T252)), T145, node(node(nil, T145, nil), T146, node(T249, T250, X489))) → U11_gaa(T145, T146, T249, T250, T252, X489, tappend151_in_gaa(T252, X486, X489))
U11_gaa(T145, T146, T249, T250, T252, X489, tappend151_out_gaa(T252, X486, X489)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T249, T250, T252)), T145, node(node(nil, T145, nil), T146, node(T249, T250, X489)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T265, T266, T268)), T145, node(node(nil, T145, nil), T146, node(T265, T266, X489))) → U12_gaa(T145, T146, T265, T266, T268, X489, tappend151_in_gaa(T268, X486, X489))
U12_gaa(T145, T146, T265, T266, T268, X489, tappend151_out_gaa(T268, X486, X489)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T265, T266, T268)), T145, node(node(nil, T145, nil), T146, node(T265, T266, X489)))
U6_gaa(T126, T124, T125, T127, X217, tappend38_out_gaa(T126, T127, X217)) → tappend38_out_gaa(node(T126, T124, T125), T127, node(X217, T124, T125))
U5_gaa(T107, T105, T106, T108, X217, tappend38_out_gaa(T107, T108, X217)) → tappend38_out_gaa(node(T107, T105, T106), T108, node(X217, T105, T106))
U4_gaa(T89, X217, tappend38_out_gaa(nil, T89, X217)) → tappend38_out_gaa(nil, T89, node(X217, nil, nil))
U4_aaa(T89, X217, tappend38_out_gaa(nil, T89, X217)) → tappend38_out_aaa(nil, T89, node(X217, nil, nil))
tappend38_in_aaa(node(T107, T105, T106), T108, node(X217, T105, T106)) → U5_aaa(T107, T105, T106, T108, X217, tappend38_in_aaa(T107, T108, X217))
tappend38_in_aaa(node(T126, T124, T125), T127, node(X217, T124, T125)) → U6_aaa(T126, T124, T125, T127, X217, tappend38_in_aaa(T126, T127, X217))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, X300)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, X300))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X313, nil, nil))) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X313, nil, nil)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(nil, T160, T161)), T145, node(node(nil, T145, nil), T146, node(X313, T160, T161))) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(nil, T160, T161)), T145, node(node(nil, T145, nil), T146, node(X313, T160, T161)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X370))) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X370)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T186, T187, nil)), T145, node(node(nil, T145, nil), T146, node(T186, T187, X370))) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T186, T187, nil)), T145, node(node(nil, T145, nil), T146, node(T186, T187, X370)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X432, nil, nil))) → U7_aaa(T145, T146, X432, tappend151_in_gaa(nil, X431, X432))
U7_aaa(T145, T146, X432, tappend151_out_gaa(nil, X431, X432)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X432, nil, nil)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T218, T216, T217)), T145, node(node(nil, T145, nil), T146, node(X432, T216, T217))) → U8_aaa(T145, T146, T218, T216, T217, X432, tappend151_in_aaa(T218, X431, X432))
tappend151_in_aaa(nil, X300, X300) → tappend151_out_aaa(nil, X300, X300)
tappend151_in_aaa(nil, X313, node(X313, nil, nil)) → tappend151_out_aaa(nil, X313, node(X313, nil, nil))
tappend151_in_aaa(node(nil, T160, T161), X313, node(X313, T160, T161)) → tappend151_out_aaa(node(nil, T160, T161), X313, node(X313, T160, T161))
tappend151_in_aaa(nil, X370, node(nil, nil, X370)) → tappend151_out_aaa(nil, X370, node(nil, nil, X370))
tappend151_in_aaa(node(T186, T187, nil), X370, node(T186, T187, X370)) → tappend151_out_aaa(node(T186, T187, nil), X370, node(T186, T187, X370))
tappend151_in_aaa(nil, X431, node(X432, nil, nil)) → U13_aaa(X431, X432, tappend151_in_gaa(nil, X431, X432))
U13_aaa(X431, X432, tappend151_out_gaa(nil, X431, X432)) → tappend151_out_aaa(nil, X431, node(X432, nil, nil))
tappend151_in_aaa(node(T218, T216, T217), X431, node(X432, T216, T217)) → U14_aaa(T218, T216, T217, X431, X432, tappend151_in_aaa(T218, X431, X432))
tappend151_in_aaa(node(T234, T232, T233), X431, node(X432, T232, T233)) → U15_aaa(T234, T232, T233, X431, X432, tappend151_in_aaa(T234, X431, X432))
tappend151_in_aaa(nil, nil, node(nil, nil, X489)) → U16_aaa(X489, tappend151_in_gaa(nil, X486, X489))
U16_aaa(X489, tappend151_out_gaa(nil, X486, X489)) → tappend151_out_aaa(nil, nil, node(nil, nil, X489))
tappend151_in_aaa(node(T249, T250, T252), T249, node(T249, T250, X489)) → U17_aaa(T249, T250, T252, X489, tappend151_in_aaa(T252, X486, X489))
tappend151_in_aaa(node(T265, T266, T268), T265, node(T265, T266, X489)) → U18_aaa(T265, T266, T268, X489, tappend151_in_aaa(T268, X486, X489))
U18_aaa(T265, T266, T268, X489, tappend151_out_aaa(T268, X486, X489)) → tappend151_out_aaa(node(T265, T266, T268), T265, node(T265, T266, X489))
U17_aaa(T249, T250, T252, X489, tappend151_out_aaa(T252, X486, X489)) → tappend151_out_aaa(node(T249, T250, T252), T249, node(T249, T250, X489))
U15_aaa(T234, T232, T233, X431, X432, tappend151_out_aaa(T234, X431, X432)) → tappend151_out_aaa(node(T234, T232, T233), X431, node(X432, T232, T233))
U14_aaa(T218, T216, T217, X431, X432, tappend151_out_aaa(T218, X431, X432)) → tappend151_out_aaa(node(T218, T216, T217), X431, node(X432, T216, T217))
U8_aaa(T145, T146, T218, T216, T217, X432, tappend151_out_aaa(T218, X431, X432)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T218, T216, T217)), T145, node(node(nil, T145, nil), T146, node(X432, T216, T217)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T234, T232, T233)), T145, node(node(nil, T145, nil), T146, node(X432, T232, T233))) → U9_aaa(T145, T146, T234, T232, T233, X432, tappend151_in_aaa(T234, X431, X432))
U9_aaa(T145, T146, T234, T232, T233, X432, tappend151_out_aaa(T234, X431, X432)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T234, T232, T233)), T145, node(node(nil, T145, nil), T146, node(X432, T232, T233)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X489))) → U10_aaa(T145, T146, X489, tappend151_in_gaa(nil, X486, X489))
U10_aaa(T145, T146, X489, tappend151_out_gaa(nil, X486, X489)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X489)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T249, T250, T252)), T145, node(node(nil, T145, nil), T146, node(T249, T250, X489))) → U11_aaa(T145, T146, T249, T250, T252, X489, tappend151_in_aaa(T252, X486, X489))
U11_aaa(T145, T146, T249, T250, T252, X489, tappend151_out_aaa(T252, X486, X489)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T249, T250, T252)), T145, node(node(nil, T145, nil), T146, node(T249, T250, X489)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T265, T266, T268)), T145, node(node(nil, T145, nil), T146, node(T265, T266, X489))) → U12_aaa(T145, T146, T265, T266, T268, X489, tappend151_in_aaa(T268, X486, X489))
U12_aaa(T145, T146, T265, T266, T268, X489, tappend151_out_aaa(T268, X486, X489)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T265, T266, T268)), T145, node(node(nil, T145, nil), T146, node(T265, T266, X489)))
U6_aaa(T126, T124, T125, T127, X217, tappend38_out_aaa(T126, T127, X217)) → tappend38_out_aaa(node(T126, T124, T125), T127, node(X217, T124, T125))
U5_aaa(T107, T105, T106, T108, X217, tappend38_out_aaa(T107, T108, X217)) → tappend38_out_aaa(node(T107, T105, T106), T108, node(X217, T105, T106))
U23_gaa(T7, T24, T25, tappend38_out_aaa(T23, T24, X81)) → goal1_out_gaa(T7, T24, T25)
goal1_in_gaa(T7, T24, T269) → U24_gaa(T7, T24, T269, s2t4_in_ga(T7, T23))
U24_gaa(T7, T24, T269, s2t4_out_ga(T7, T23)) → U25_gaa(T7, T24, T269, tappend38_in_aaa(T23, T24, node(nil, T269, nil)))
U25_gaa(T7, T24, T269, tappend38_out_aaa(T23, T24, node(nil, T269, nil))) → goal1_out_gaa(T7, T24, T269)
goal1_in_gaa(T7, T24, T274) → U26_gaa(T7, T24, T274, s2t4_in_ga(T7, T23))
U26_gaa(T7, T24, T274, s2t4_out_ga(T7, T23)) → U27_gaa(T7, T24, T274, tappend38_in_aaa(T23, T24, node(T275, T272, T273)))
U27_gaa(T7, T24, T274, tappend38_out_aaa(T23, T24, node(T275, T272, T273))) → U28_gaa(T7, T24, T274, tlast39_in_aa(T274, T275))
tlast39_in_aa(T269, node(nil, T269, nil)) → tlast39_out_aa(T269, node(nil, T269, nil))
tlast39_in_aa(T274, node(T275, T272, T273)) → U19_aa(T274, T275, T272, T273, tlast39_in_aa(T274, T275))
tlast39_in_aa(T280, node(T277, T278, T281)) → U20_aa(T280, T277, T278, T281, tlast39_in_aa(T280, T281))
U20_aa(T280, T277, T278, T281, tlast39_out_aa(T280, T281)) → tlast39_out_aa(T280, node(T277, T278, T281))
U19_aa(T274, T275, T272, T273, tlast39_out_aa(T274, T275)) → tlast39_out_aa(T274, node(T275, T272, T273))
U28_gaa(T7, T24, T274, tlast39_out_aa(T274, T275)) → goal1_out_gaa(T7, T24, T274)
goal1_in_gaa(T7, T24, T280) → U29_gaa(T7, T24, T280, s2t4_in_ga(T7, T23))
U29_gaa(T7, T24, T280, s2t4_out_ga(T7, T23)) → U30_gaa(T7, T24, T280, tappend38_in_aaa(T23, T24, node(T277, T278, T281)))
U30_gaa(T7, T24, T280, tappend38_out_aaa(T23, T24, node(T277, T278, T281))) → U31_gaa(T7, T24, T280, tlast39_in_aa(T280, T281))
U31_gaa(T7, T24, T280, tlast39_out_aa(T280, T281)) → goal1_out_gaa(T7, T24, T280)
TLAST39_IN_AA(T280, node(T277, T278, T281)) → TLAST39_IN_AA(T280, T281)
TLAST39_IN_AA(T274, node(T275, T272, T273)) → TLAST39_IN_AA(T274, T275)
goal1_in_gaa(T7, T10, T11) → U21_gaa(T7, T10, T11, s2t4_in_ga(T7, X21))
s2t4_in_ga(0, nil) → s2t4_out_ga(0, nil)
s2t4_in_ga(s(T14), node(X38, X39, X38)) → U1_ga(T14, X38, X39, s2t4_in_ga(T14, X38))
s2t4_in_ga(s(T16), node(nil, X52, X53)) → U2_ga(T16, X52, X53, s2t4_in_ga(T16, X53))
s2t4_in_ga(s(T18), node(X66, X67, nil)) → U3_ga(T18, X66, X67, s2t4_in_ga(T18, X66))
s2t4_in_ga(T19, node(nil, X74, nil)) → s2t4_out_ga(T19, node(nil, X74, nil))
U3_ga(T18, X66, X67, s2t4_out_ga(T18, X66)) → s2t4_out_ga(s(T18), node(X66, X67, nil))
U2_ga(T16, X52, X53, s2t4_out_ga(T16, X53)) → s2t4_out_ga(s(T16), node(nil, X52, X53))
U1_ga(T14, X38, X39, s2t4_out_ga(T14, X38)) → s2t4_out_ga(s(T14), node(X38, X39, X38))
U21_gaa(T7, T10, T11, s2t4_out_ga(T7, X21)) → goal1_out_gaa(T7, T10, T11)
goal1_in_gaa(T7, T24, T25) → U22_gaa(T7, T24, T25, s2t4_in_ga(T7, T23))
U22_gaa(T7, T24, T25, s2t4_out_ga(T7, T23)) → U23_gaa(T7, T24, T25, tappend38_in_aaa(T23, T24, X81))
tappend38_in_aaa(nil, T30, node(nil, T30, nil)) → tappend38_out_aaa(nil, T30, node(nil, T30, nil))
tappend38_in_aaa(nil, T32, node(node(nil, T32, nil), nil, nil)) → tappend38_out_aaa(nil, T32, node(node(nil, T32, nil), nil, nil))
tappend38_in_aaa(node(nil, T43, T44), T32, node(node(nil, T32, nil), T43, T44)) → tappend38_out_aaa(node(nil, T43, T44), T32, node(node(nil, T32, nil), T43, T44))
tappend38_in_aaa(nil, T57, node(nil, nil, node(nil, T57, nil))) → tappend38_out_aaa(nil, T57, node(nil, nil, node(nil, T57, nil)))
tappend38_in_aaa(node(T70, T71, nil), T57, node(T70, T71, node(nil, T57, nil))) → tappend38_out_aaa(node(T70, T71, nil), T57, node(T70, T71, node(nil, T57, nil)))
tappend38_in_aaa(nil, T89, node(X217, nil, nil)) → U4_aaa(T89, X217, tappend38_in_gaa(nil, T89, X217))
tappend38_in_gaa(nil, T30, node(nil, T30, nil)) → tappend38_out_gaa(nil, T30, node(nil, T30, nil))
tappend38_in_gaa(nil, T32, node(node(nil, T32, nil), nil, nil)) → tappend38_out_gaa(nil, T32, node(node(nil, T32, nil), nil, nil))
tappend38_in_gaa(node(nil, T43, T44), T32, node(node(nil, T32, nil), T43, T44)) → tappend38_out_gaa(node(nil, T43, T44), T32, node(node(nil, T32, nil), T43, T44))
tappend38_in_gaa(nil, T57, node(nil, nil, node(nil, T57, nil))) → tappend38_out_gaa(nil, T57, node(nil, nil, node(nil, T57, nil)))
tappend38_in_gaa(node(T70, T71, nil), T57, node(T70, T71, node(nil, T57, nil))) → tappend38_out_gaa(node(T70, T71, nil), T57, node(T70, T71, node(nil, T57, nil)))
tappend38_in_gaa(nil, T89, node(X217, nil, nil)) → U4_gaa(T89, X217, tappend38_in_gaa(nil, T89, X217))
tappend38_in_gaa(node(T107, T105, T106), T108, node(X217, T105, T106)) → U5_gaa(T107, T105, T106, T108, X217, tappend38_in_gaa(T107, T108, X217))
tappend38_in_gaa(node(T126, T124, T125), T127, node(X217, T124, T125)) → U6_gaa(T126, T124, T125, T127, X217, tappend38_in_gaa(T126, T127, X217))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, X300)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, X300))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X313, nil, nil))) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X313, nil, nil)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(nil, T160, T161)), T145, node(node(nil, T145, nil), T146, node(X313, T160, T161))) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(nil, T160, T161)), T145, node(node(nil, T145, nil), T146, node(X313, T160, T161)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X370))) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X370)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T186, T187, nil)), T145, node(node(nil, T145, nil), T146, node(T186, T187, X370))) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T186, T187, nil)), T145, node(node(nil, T145, nil), T146, node(T186, T187, X370)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X432, nil, nil))) → U7_gaa(T145, T146, X432, tappend151_in_gaa(nil, X431, X432))
tappend151_in_gaa(nil, X300, X300) → tappend151_out_gaa(nil, X300, X300)
tappend151_in_gaa(nil, X313, node(X313, nil, nil)) → tappend151_out_gaa(nil, X313, node(X313, nil, nil))
tappend151_in_gaa(node(nil, T160, T161), X313, node(X313, T160, T161)) → tappend151_out_gaa(node(nil, T160, T161), X313, node(X313, T160, T161))
tappend151_in_gaa(nil, X370, node(nil, nil, X370)) → tappend151_out_gaa(nil, X370, node(nil, nil, X370))
tappend151_in_gaa(node(T186, T187, nil), X370, node(T186, T187, X370)) → tappend151_out_gaa(node(T186, T187, nil), X370, node(T186, T187, X370))
tappend151_in_gaa(nil, X431, node(X432, nil, nil)) → U13_gaa(X431, X432, tappend151_in_gaa(nil, X431, X432))
tappend151_in_gaa(node(T218, T216, T217), X431, node(X432, T216, T217)) → U14_gaa(T218, T216, T217, X431, X432, tappend151_in_gaa(T218, X431, X432))
tappend151_in_gaa(node(T234, T232, T233), X431, node(X432, T232, T233)) → U15_gaa(T234, T232, T233, X431, X432, tappend151_in_gaa(T234, X431, X432))
tappend151_in_gaa(nil, nil, node(nil, nil, X489)) → U16_gaa(X489, tappend151_in_gaa(nil, X486, X489))
tappend151_in_gaa(node(T249, T250, T252), T249, node(T249, T250, X489)) → U17_gaa(T249, T250, T252, X489, tappend151_in_gaa(T252, X486, X489))
tappend151_in_gaa(node(T265, T266, T268), T265, node(T265, T266, X489)) → U18_gaa(T265, T266, T268, X489, tappend151_in_gaa(T268, X486, X489))
U18_gaa(T265, T266, T268, X489, tappend151_out_gaa(T268, X486, X489)) → tappend151_out_gaa(node(T265, T266, T268), T265, node(T265, T266, X489))
U17_gaa(T249, T250, T252, X489, tappend151_out_gaa(T252, X486, X489)) → tappend151_out_gaa(node(T249, T250, T252), T249, node(T249, T250, X489))
U16_gaa(X489, tappend151_out_gaa(nil, X486, X489)) → tappend151_out_gaa(nil, nil, node(nil, nil, X489))
U15_gaa(T234, T232, T233, X431, X432, tappend151_out_gaa(T234, X431, X432)) → tappend151_out_gaa(node(T234, T232, T233), X431, node(X432, T232, T233))
U14_gaa(T218, T216, T217, X431, X432, tappend151_out_gaa(T218, X431, X432)) → tappend151_out_gaa(node(T218, T216, T217), X431, node(X432, T216, T217))
U13_gaa(X431, X432, tappend151_out_gaa(nil, X431, X432)) → tappend151_out_gaa(nil, X431, node(X432, nil, nil))
U7_gaa(T145, T146, X432, tappend151_out_gaa(nil, X431, X432)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X432, nil, nil)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T218, T216, T217)), T145, node(node(nil, T145, nil), T146, node(X432, T216, T217))) → U8_gaa(T145, T146, T218, T216, T217, X432, tappend151_in_gaa(T218, X431, X432))
U8_gaa(T145, T146, T218, T216, T217, X432, tappend151_out_gaa(T218, X431, X432)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T218, T216, T217)), T145, node(node(nil, T145, nil), T146, node(X432, T216, T217)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T234, T232, T233)), T145, node(node(nil, T145, nil), T146, node(X432, T232, T233))) → U9_gaa(T145, T146, T234, T232, T233, X432, tappend151_in_gaa(T234, X431, X432))
U9_gaa(T145, T146, T234, T232, T233, X432, tappend151_out_gaa(T234, X431, X432)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T234, T232, T233)), T145, node(node(nil, T145, nil), T146, node(X432, T232, T233)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X489))) → U10_gaa(T145, T146, X489, tappend151_in_gaa(nil, X486, X489))
U10_gaa(T145, T146, X489, tappend151_out_gaa(nil, X486, X489)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X489)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T249, T250, T252)), T145, node(node(nil, T145, nil), T146, node(T249, T250, X489))) → U11_gaa(T145, T146, T249, T250, T252, X489, tappend151_in_gaa(T252, X486, X489))
U11_gaa(T145, T146, T249, T250, T252, X489, tappend151_out_gaa(T252, X486, X489)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T249, T250, T252)), T145, node(node(nil, T145, nil), T146, node(T249, T250, X489)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T265, T266, T268)), T145, node(node(nil, T145, nil), T146, node(T265, T266, X489))) → U12_gaa(T145, T146, T265, T266, T268, X489, tappend151_in_gaa(T268, X486, X489))
U12_gaa(T145, T146, T265, T266, T268, X489, tappend151_out_gaa(T268, X486, X489)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T265, T266, T268)), T145, node(node(nil, T145, nil), T146, node(T265, T266, X489)))
U6_gaa(T126, T124, T125, T127, X217, tappend38_out_gaa(T126, T127, X217)) → tappend38_out_gaa(node(T126, T124, T125), T127, node(X217, T124, T125))
U5_gaa(T107, T105, T106, T108, X217, tappend38_out_gaa(T107, T108, X217)) → tappend38_out_gaa(node(T107, T105, T106), T108, node(X217, T105, T106))
U4_gaa(T89, X217, tappend38_out_gaa(nil, T89, X217)) → tappend38_out_gaa(nil, T89, node(X217, nil, nil))
U4_aaa(T89, X217, tappend38_out_gaa(nil, T89, X217)) → tappend38_out_aaa(nil, T89, node(X217, nil, nil))
tappend38_in_aaa(node(T107, T105, T106), T108, node(X217, T105, T106)) → U5_aaa(T107, T105, T106, T108, X217, tappend38_in_aaa(T107, T108, X217))
tappend38_in_aaa(node(T126, T124, T125), T127, node(X217, T124, T125)) → U6_aaa(T126, T124, T125, T127, X217, tappend38_in_aaa(T126, T127, X217))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, X300)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, X300))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X313, nil, nil))) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X313, nil, nil)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(nil, T160, T161)), T145, node(node(nil, T145, nil), T146, node(X313, T160, T161))) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(nil, T160, T161)), T145, node(node(nil, T145, nil), T146, node(X313, T160, T161)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X370))) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X370)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T186, T187, nil)), T145, node(node(nil, T145, nil), T146, node(T186, T187, X370))) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T186, T187, nil)), T145, node(node(nil, T145, nil), T146, node(T186, T187, X370)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X432, nil, nil))) → U7_aaa(T145, T146, X432, tappend151_in_gaa(nil, X431, X432))
U7_aaa(T145, T146, X432, tappend151_out_gaa(nil, X431, X432)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X432, nil, nil)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T218, T216, T217)), T145, node(node(nil, T145, nil), T146, node(X432, T216, T217))) → U8_aaa(T145, T146, T218, T216, T217, X432, tappend151_in_aaa(T218, X431, X432))
tappend151_in_aaa(nil, X300, X300) → tappend151_out_aaa(nil, X300, X300)
tappend151_in_aaa(nil, X313, node(X313, nil, nil)) → tappend151_out_aaa(nil, X313, node(X313, nil, nil))
tappend151_in_aaa(node(nil, T160, T161), X313, node(X313, T160, T161)) → tappend151_out_aaa(node(nil, T160, T161), X313, node(X313, T160, T161))
tappend151_in_aaa(nil, X370, node(nil, nil, X370)) → tappend151_out_aaa(nil, X370, node(nil, nil, X370))
tappend151_in_aaa(node(T186, T187, nil), X370, node(T186, T187, X370)) → tappend151_out_aaa(node(T186, T187, nil), X370, node(T186, T187, X370))
tappend151_in_aaa(nil, X431, node(X432, nil, nil)) → U13_aaa(X431, X432, tappend151_in_gaa(nil, X431, X432))
U13_aaa(X431, X432, tappend151_out_gaa(nil, X431, X432)) → tappend151_out_aaa(nil, X431, node(X432, nil, nil))
tappend151_in_aaa(node(T218, T216, T217), X431, node(X432, T216, T217)) → U14_aaa(T218, T216, T217, X431, X432, tappend151_in_aaa(T218, X431, X432))
tappend151_in_aaa(node(T234, T232, T233), X431, node(X432, T232, T233)) → U15_aaa(T234, T232, T233, X431, X432, tappend151_in_aaa(T234, X431, X432))
tappend151_in_aaa(nil, nil, node(nil, nil, X489)) → U16_aaa(X489, tappend151_in_gaa(nil, X486, X489))
U16_aaa(X489, tappend151_out_gaa(nil, X486, X489)) → tappend151_out_aaa(nil, nil, node(nil, nil, X489))
tappend151_in_aaa(node(T249, T250, T252), T249, node(T249, T250, X489)) → U17_aaa(T249, T250, T252, X489, tappend151_in_aaa(T252, X486, X489))
tappend151_in_aaa(node(T265, T266, T268), T265, node(T265, T266, X489)) → U18_aaa(T265, T266, T268, X489, tappend151_in_aaa(T268, X486, X489))
U18_aaa(T265, T266, T268, X489, tappend151_out_aaa(T268, X486, X489)) → tappend151_out_aaa(node(T265, T266, T268), T265, node(T265, T266, X489))
U17_aaa(T249, T250, T252, X489, tappend151_out_aaa(T252, X486, X489)) → tappend151_out_aaa(node(T249, T250, T252), T249, node(T249, T250, X489))
U15_aaa(T234, T232, T233, X431, X432, tappend151_out_aaa(T234, X431, X432)) → tappend151_out_aaa(node(T234, T232, T233), X431, node(X432, T232, T233))
U14_aaa(T218, T216, T217, X431, X432, tappend151_out_aaa(T218, X431, X432)) → tappend151_out_aaa(node(T218, T216, T217), X431, node(X432, T216, T217))
U8_aaa(T145, T146, T218, T216, T217, X432, tappend151_out_aaa(T218, X431, X432)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T218, T216, T217)), T145, node(node(nil, T145, nil), T146, node(X432, T216, T217)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T234, T232, T233)), T145, node(node(nil, T145, nil), T146, node(X432, T232, T233))) → U9_aaa(T145, T146, T234, T232, T233, X432, tappend151_in_aaa(T234, X431, X432))
U9_aaa(T145, T146, T234, T232, T233, X432, tappend151_out_aaa(T234, X431, X432)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T234, T232, T233)), T145, node(node(nil, T145, nil), T146, node(X432, T232, T233)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X489))) → U10_aaa(T145, T146, X489, tappend151_in_gaa(nil, X486, X489))
U10_aaa(T145, T146, X489, tappend151_out_gaa(nil, X486, X489)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X489)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T249, T250, T252)), T145, node(node(nil, T145, nil), T146, node(T249, T250, X489))) → U11_aaa(T145, T146, T249, T250, T252, X489, tappend151_in_aaa(T252, X486, X489))
U11_aaa(T145, T146, T249, T250, T252, X489, tappend151_out_aaa(T252, X486, X489)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T249, T250, T252)), T145, node(node(nil, T145, nil), T146, node(T249, T250, X489)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T265, T266, T268)), T145, node(node(nil, T145, nil), T146, node(T265, T266, X489))) → U12_aaa(T145, T146, T265, T266, T268, X489, tappend151_in_aaa(T268, X486, X489))
U12_aaa(T145, T146, T265, T266, T268, X489, tappend151_out_aaa(T268, X486, X489)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T265, T266, T268)), T145, node(node(nil, T145, nil), T146, node(T265, T266, X489)))
U6_aaa(T126, T124, T125, T127, X217, tappend38_out_aaa(T126, T127, X217)) → tappend38_out_aaa(node(T126, T124, T125), T127, node(X217, T124, T125))
U5_aaa(T107, T105, T106, T108, X217, tappend38_out_aaa(T107, T108, X217)) → tappend38_out_aaa(node(T107, T105, T106), T108, node(X217, T105, T106))
U23_gaa(T7, T24, T25, tappend38_out_aaa(T23, T24, X81)) → goal1_out_gaa(T7, T24, T25)
goal1_in_gaa(T7, T24, T269) → U24_gaa(T7, T24, T269, s2t4_in_ga(T7, T23))
U24_gaa(T7, T24, T269, s2t4_out_ga(T7, T23)) → U25_gaa(T7, T24, T269, tappend38_in_aaa(T23, T24, node(nil, T269, nil)))
U25_gaa(T7, T24, T269, tappend38_out_aaa(T23, T24, node(nil, T269, nil))) → goal1_out_gaa(T7, T24, T269)
goal1_in_gaa(T7, T24, T274) → U26_gaa(T7, T24, T274, s2t4_in_ga(T7, T23))
U26_gaa(T7, T24, T274, s2t4_out_ga(T7, T23)) → U27_gaa(T7, T24, T274, tappend38_in_aaa(T23, T24, node(T275, T272, T273)))
U27_gaa(T7, T24, T274, tappend38_out_aaa(T23, T24, node(T275, T272, T273))) → U28_gaa(T7, T24, T274, tlast39_in_aa(T274, T275))
tlast39_in_aa(T269, node(nil, T269, nil)) → tlast39_out_aa(T269, node(nil, T269, nil))
tlast39_in_aa(T274, node(T275, T272, T273)) → U19_aa(T274, T275, T272, T273, tlast39_in_aa(T274, T275))
tlast39_in_aa(T280, node(T277, T278, T281)) → U20_aa(T280, T277, T278, T281, tlast39_in_aa(T280, T281))
U20_aa(T280, T277, T278, T281, tlast39_out_aa(T280, T281)) → tlast39_out_aa(T280, node(T277, T278, T281))
U19_aa(T274, T275, T272, T273, tlast39_out_aa(T274, T275)) → tlast39_out_aa(T274, node(T275, T272, T273))
U28_gaa(T7, T24, T274, tlast39_out_aa(T274, T275)) → goal1_out_gaa(T7, T24, T274)
goal1_in_gaa(T7, T24, T280) → U29_gaa(T7, T24, T280, s2t4_in_ga(T7, T23))
U29_gaa(T7, T24, T280, s2t4_out_ga(T7, T23)) → U30_gaa(T7, T24, T280, tappend38_in_aaa(T23, T24, node(T277, T278, T281)))
U30_gaa(T7, T24, T280, tappend38_out_aaa(T23, T24, node(T277, T278, T281))) → U31_gaa(T7, T24, T280, tlast39_in_aa(T280, T281))
U31_gaa(T7, T24, T280, tlast39_out_aa(T280, T281)) → goal1_out_gaa(T7, T24, T280)
TLAST39_IN_AA(T280, node(T277, T278, T281)) → TLAST39_IN_AA(T280, T281)
TLAST39_IN_AA(T274, node(T275, T272, T273)) → TLAST39_IN_AA(T274, T275)
TLAST39_IN_AA → TLAST39_IN_AA
TAPPEND151_IN_GAA(nil, nil, node(nil, nil, X489)) → TAPPEND151_IN_GAA(nil, X486, X489)
TAPPEND151_IN_GAA(nil, X431, node(X432, nil, nil)) → TAPPEND151_IN_GAA(nil, X431, X432)
goal1_in_gaa(T7, T10, T11) → U21_gaa(T7, T10, T11, s2t4_in_ga(T7, X21))
s2t4_in_ga(0, nil) → s2t4_out_ga(0, nil)
s2t4_in_ga(s(T14), node(X38, X39, X38)) → U1_ga(T14, X38, X39, s2t4_in_ga(T14, X38))
s2t4_in_ga(s(T16), node(nil, X52, X53)) → U2_ga(T16, X52, X53, s2t4_in_ga(T16, X53))
s2t4_in_ga(s(T18), node(X66, X67, nil)) → U3_ga(T18, X66, X67, s2t4_in_ga(T18, X66))
s2t4_in_ga(T19, node(nil, X74, nil)) → s2t4_out_ga(T19, node(nil, X74, nil))
U3_ga(T18, X66, X67, s2t4_out_ga(T18, X66)) → s2t4_out_ga(s(T18), node(X66, X67, nil))
U2_ga(T16, X52, X53, s2t4_out_ga(T16, X53)) → s2t4_out_ga(s(T16), node(nil, X52, X53))
U1_ga(T14, X38, X39, s2t4_out_ga(T14, X38)) → s2t4_out_ga(s(T14), node(X38, X39, X38))
U21_gaa(T7, T10, T11, s2t4_out_ga(T7, X21)) → goal1_out_gaa(T7, T10, T11)
goal1_in_gaa(T7, T24, T25) → U22_gaa(T7, T24, T25, s2t4_in_ga(T7, T23))
U22_gaa(T7, T24, T25, s2t4_out_ga(T7, T23)) → U23_gaa(T7, T24, T25, tappend38_in_aaa(T23, T24, X81))
tappend38_in_aaa(nil, T30, node(nil, T30, nil)) → tappend38_out_aaa(nil, T30, node(nil, T30, nil))
tappend38_in_aaa(nil, T32, node(node(nil, T32, nil), nil, nil)) → tappend38_out_aaa(nil, T32, node(node(nil, T32, nil), nil, nil))
tappend38_in_aaa(node(nil, T43, T44), T32, node(node(nil, T32, nil), T43, T44)) → tappend38_out_aaa(node(nil, T43, T44), T32, node(node(nil, T32, nil), T43, T44))
tappend38_in_aaa(nil, T57, node(nil, nil, node(nil, T57, nil))) → tappend38_out_aaa(nil, T57, node(nil, nil, node(nil, T57, nil)))
tappend38_in_aaa(node(T70, T71, nil), T57, node(T70, T71, node(nil, T57, nil))) → tappend38_out_aaa(node(T70, T71, nil), T57, node(T70, T71, node(nil, T57, nil)))
tappend38_in_aaa(nil, T89, node(X217, nil, nil)) → U4_aaa(T89, X217, tappend38_in_gaa(nil, T89, X217))
tappend38_in_gaa(nil, T30, node(nil, T30, nil)) → tappend38_out_gaa(nil, T30, node(nil, T30, nil))
tappend38_in_gaa(nil, T32, node(node(nil, T32, nil), nil, nil)) → tappend38_out_gaa(nil, T32, node(node(nil, T32, nil), nil, nil))
tappend38_in_gaa(node(nil, T43, T44), T32, node(node(nil, T32, nil), T43, T44)) → tappend38_out_gaa(node(nil, T43, T44), T32, node(node(nil, T32, nil), T43, T44))
tappend38_in_gaa(nil, T57, node(nil, nil, node(nil, T57, nil))) → tappend38_out_gaa(nil, T57, node(nil, nil, node(nil, T57, nil)))
tappend38_in_gaa(node(T70, T71, nil), T57, node(T70, T71, node(nil, T57, nil))) → tappend38_out_gaa(node(T70, T71, nil), T57, node(T70, T71, node(nil, T57, nil)))
tappend38_in_gaa(nil, T89, node(X217, nil, nil)) → U4_gaa(T89, X217, tappend38_in_gaa(nil, T89, X217))
tappend38_in_gaa(node(T107, T105, T106), T108, node(X217, T105, T106)) → U5_gaa(T107, T105, T106, T108, X217, tappend38_in_gaa(T107, T108, X217))
tappend38_in_gaa(node(T126, T124, T125), T127, node(X217, T124, T125)) → U6_gaa(T126, T124, T125, T127, X217, tappend38_in_gaa(T126, T127, X217))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, X300)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, X300))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X313, nil, nil))) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X313, nil, nil)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(nil, T160, T161)), T145, node(node(nil, T145, nil), T146, node(X313, T160, T161))) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(nil, T160, T161)), T145, node(node(nil, T145, nil), T146, node(X313, T160, T161)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X370))) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X370)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T186, T187, nil)), T145, node(node(nil, T145, nil), T146, node(T186, T187, X370))) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T186, T187, nil)), T145, node(node(nil, T145, nil), T146, node(T186, T187, X370)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X432, nil, nil))) → U7_gaa(T145, T146, X432, tappend151_in_gaa(nil, X431, X432))
tappend151_in_gaa(nil, X300, X300) → tappend151_out_gaa(nil, X300, X300)
tappend151_in_gaa(nil, X313, node(X313, nil, nil)) → tappend151_out_gaa(nil, X313, node(X313, nil, nil))
tappend151_in_gaa(node(nil, T160, T161), X313, node(X313, T160, T161)) → tappend151_out_gaa(node(nil, T160, T161), X313, node(X313, T160, T161))
tappend151_in_gaa(nil, X370, node(nil, nil, X370)) → tappend151_out_gaa(nil, X370, node(nil, nil, X370))
tappend151_in_gaa(node(T186, T187, nil), X370, node(T186, T187, X370)) → tappend151_out_gaa(node(T186, T187, nil), X370, node(T186, T187, X370))
tappend151_in_gaa(nil, X431, node(X432, nil, nil)) → U13_gaa(X431, X432, tappend151_in_gaa(nil, X431, X432))
tappend151_in_gaa(node(T218, T216, T217), X431, node(X432, T216, T217)) → U14_gaa(T218, T216, T217, X431, X432, tappend151_in_gaa(T218, X431, X432))
tappend151_in_gaa(node(T234, T232, T233), X431, node(X432, T232, T233)) → U15_gaa(T234, T232, T233, X431, X432, tappend151_in_gaa(T234, X431, X432))
tappend151_in_gaa(nil, nil, node(nil, nil, X489)) → U16_gaa(X489, tappend151_in_gaa(nil, X486, X489))
tappend151_in_gaa(node(T249, T250, T252), T249, node(T249, T250, X489)) → U17_gaa(T249, T250, T252, X489, tappend151_in_gaa(T252, X486, X489))
tappend151_in_gaa(node(T265, T266, T268), T265, node(T265, T266, X489)) → U18_gaa(T265, T266, T268, X489, tappend151_in_gaa(T268, X486, X489))
U18_gaa(T265, T266, T268, X489, tappend151_out_gaa(T268, X486, X489)) → tappend151_out_gaa(node(T265, T266, T268), T265, node(T265, T266, X489))
U17_gaa(T249, T250, T252, X489, tappend151_out_gaa(T252, X486, X489)) → tappend151_out_gaa(node(T249, T250, T252), T249, node(T249, T250, X489))
U16_gaa(X489, tappend151_out_gaa(nil, X486, X489)) → tappend151_out_gaa(nil, nil, node(nil, nil, X489))
U15_gaa(T234, T232, T233, X431, X432, tappend151_out_gaa(T234, X431, X432)) → tappend151_out_gaa(node(T234, T232, T233), X431, node(X432, T232, T233))
U14_gaa(T218, T216, T217, X431, X432, tappend151_out_gaa(T218, X431, X432)) → tappend151_out_gaa(node(T218, T216, T217), X431, node(X432, T216, T217))
U13_gaa(X431, X432, tappend151_out_gaa(nil, X431, X432)) → tappend151_out_gaa(nil, X431, node(X432, nil, nil))
U7_gaa(T145, T146, X432, tappend151_out_gaa(nil, X431, X432)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X432, nil, nil)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T218, T216, T217)), T145, node(node(nil, T145, nil), T146, node(X432, T216, T217))) → U8_gaa(T145, T146, T218, T216, T217, X432, tappend151_in_gaa(T218, X431, X432))
U8_gaa(T145, T146, T218, T216, T217, X432, tappend151_out_gaa(T218, X431, X432)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T218, T216, T217)), T145, node(node(nil, T145, nil), T146, node(X432, T216, T217)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T234, T232, T233)), T145, node(node(nil, T145, nil), T146, node(X432, T232, T233))) → U9_gaa(T145, T146, T234, T232, T233, X432, tappend151_in_gaa(T234, X431, X432))
U9_gaa(T145, T146, T234, T232, T233, X432, tappend151_out_gaa(T234, X431, X432)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T234, T232, T233)), T145, node(node(nil, T145, nil), T146, node(X432, T232, T233)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X489))) → U10_gaa(T145, T146, X489, tappend151_in_gaa(nil, X486, X489))
U10_gaa(T145, T146, X489, tappend151_out_gaa(nil, X486, X489)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X489)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T249, T250, T252)), T145, node(node(nil, T145, nil), T146, node(T249, T250, X489))) → U11_gaa(T145, T146, T249, T250, T252, X489, tappend151_in_gaa(T252, X486, X489))
U11_gaa(T145, T146, T249, T250, T252, X489, tappend151_out_gaa(T252, X486, X489)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T249, T250, T252)), T145, node(node(nil, T145, nil), T146, node(T249, T250, X489)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T265, T266, T268)), T145, node(node(nil, T145, nil), T146, node(T265, T266, X489))) → U12_gaa(T145, T146, T265, T266, T268, X489, tappend151_in_gaa(T268, X486, X489))
U12_gaa(T145, T146, T265, T266, T268, X489, tappend151_out_gaa(T268, X486, X489)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T265, T266, T268)), T145, node(node(nil, T145, nil), T146, node(T265, T266, X489)))
U6_gaa(T126, T124, T125, T127, X217, tappend38_out_gaa(T126, T127, X217)) → tappend38_out_gaa(node(T126, T124, T125), T127, node(X217, T124, T125))
U5_gaa(T107, T105, T106, T108, X217, tappend38_out_gaa(T107, T108, X217)) → tappend38_out_gaa(node(T107, T105, T106), T108, node(X217, T105, T106))
U4_gaa(T89, X217, tappend38_out_gaa(nil, T89, X217)) → tappend38_out_gaa(nil, T89, node(X217, nil, nil))
U4_aaa(T89, X217, tappend38_out_gaa(nil, T89, X217)) → tappend38_out_aaa(nil, T89, node(X217, nil, nil))
tappend38_in_aaa(node(T107, T105, T106), T108, node(X217, T105, T106)) → U5_aaa(T107, T105, T106, T108, X217, tappend38_in_aaa(T107, T108, X217))
tappend38_in_aaa(node(T126, T124, T125), T127, node(X217, T124, T125)) → U6_aaa(T126, T124, T125, T127, X217, tappend38_in_aaa(T126, T127, X217))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, X300)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, X300))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X313, nil, nil))) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X313, nil, nil)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(nil, T160, T161)), T145, node(node(nil, T145, nil), T146, node(X313, T160, T161))) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(nil, T160, T161)), T145, node(node(nil, T145, nil), T146, node(X313, T160, T161)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X370))) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X370)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T186, T187, nil)), T145, node(node(nil, T145, nil), T146, node(T186, T187, X370))) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T186, T187, nil)), T145, node(node(nil, T145, nil), T146, node(T186, T187, X370)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X432, nil, nil))) → U7_aaa(T145, T146, X432, tappend151_in_gaa(nil, X431, X432))
U7_aaa(T145, T146, X432, tappend151_out_gaa(nil, X431, X432)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X432, nil, nil)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T218, T216, T217)), T145, node(node(nil, T145, nil), T146, node(X432, T216, T217))) → U8_aaa(T145, T146, T218, T216, T217, X432, tappend151_in_aaa(T218, X431, X432))
tappend151_in_aaa(nil, X300, X300) → tappend151_out_aaa(nil, X300, X300)
tappend151_in_aaa(nil, X313, node(X313, nil, nil)) → tappend151_out_aaa(nil, X313, node(X313, nil, nil))
tappend151_in_aaa(node(nil, T160, T161), X313, node(X313, T160, T161)) → tappend151_out_aaa(node(nil, T160, T161), X313, node(X313, T160, T161))
tappend151_in_aaa(nil, X370, node(nil, nil, X370)) → tappend151_out_aaa(nil, X370, node(nil, nil, X370))
tappend151_in_aaa(node(T186, T187, nil), X370, node(T186, T187, X370)) → tappend151_out_aaa(node(T186, T187, nil), X370, node(T186, T187, X370))
tappend151_in_aaa(nil, X431, node(X432, nil, nil)) → U13_aaa(X431, X432, tappend151_in_gaa(nil, X431, X432))
U13_aaa(X431, X432, tappend151_out_gaa(nil, X431, X432)) → tappend151_out_aaa(nil, X431, node(X432, nil, nil))
tappend151_in_aaa(node(T218, T216, T217), X431, node(X432, T216, T217)) → U14_aaa(T218, T216, T217, X431, X432, tappend151_in_aaa(T218, X431, X432))
tappend151_in_aaa(node(T234, T232, T233), X431, node(X432, T232, T233)) → U15_aaa(T234, T232, T233, X431, X432, tappend151_in_aaa(T234, X431, X432))
tappend151_in_aaa(nil, nil, node(nil, nil, X489)) → U16_aaa(X489, tappend151_in_gaa(nil, X486, X489))
U16_aaa(X489, tappend151_out_gaa(nil, X486, X489)) → tappend151_out_aaa(nil, nil, node(nil, nil, X489))
tappend151_in_aaa(node(T249, T250, T252), T249, node(T249, T250, X489)) → U17_aaa(T249, T250, T252, X489, tappend151_in_aaa(T252, X486, X489))
tappend151_in_aaa(node(T265, T266, T268), T265, node(T265, T266, X489)) → U18_aaa(T265, T266, T268, X489, tappend151_in_aaa(T268, X486, X489))
U18_aaa(T265, T266, T268, X489, tappend151_out_aaa(T268, X486, X489)) → tappend151_out_aaa(node(T265, T266, T268), T265, node(T265, T266, X489))
U17_aaa(T249, T250, T252, X489, tappend151_out_aaa(T252, X486, X489)) → tappend151_out_aaa(node(T249, T250, T252), T249, node(T249, T250, X489))
U15_aaa(T234, T232, T233, X431, X432, tappend151_out_aaa(T234, X431, X432)) → tappend151_out_aaa(node(T234, T232, T233), X431, node(X432, T232, T233))
U14_aaa(T218, T216, T217, X431, X432, tappend151_out_aaa(T218, X431, X432)) → tappend151_out_aaa(node(T218, T216, T217), X431, node(X432, T216, T217))
U8_aaa(T145, T146, T218, T216, T217, X432, tappend151_out_aaa(T218, X431, X432)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T218, T216, T217)), T145, node(node(nil, T145, nil), T146, node(X432, T216, T217)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T234, T232, T233)), T145, node(node(nil, T145, nil), T146, node(X432, T232, T233))) → U9_aaa(T145, T146, T234, T232, T233, X432, tappend151_in_aaa(T234, X431, X432))
U9_aaa(T145, T146, T234, T232, T233, X432, tappend151_out_aaa(T234, X431, X432)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T234, T232, T233)), T145, node(node(nil, T145, nil), T146, node(X432, T232, T233)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X489))) → U10_aaa(T145, T146, X489, tappend151_in_gaa(nil, X486, X489))
U10_aaa(T145, T146, X489, tappend151_out_gaa(nil, X486, X489)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X489)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T249, T250, T252)), T145, node(node(nil, T145, nil), T146, node(T249, T250, X489))) → U11_aaa(T145, T146, T249, T250, T252, X489, tappend151_in_aaa(T252, X486, X489))
U11_aaa(T145, T146, T249, T250, T252, X489, tappend151_out_aaa(T252, X486, X489)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T249, T250, T252)), T145, node(node(nil, T145, nil), T146, node(T249, T250, X489)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T265, T266, T268)), T145, node(node(nil, T145, nil), T146, node(T265, T266, X489))) → U12_aaa(T145, T146, T265, T266, T268, X489, tappend151_in_aaa(T268, X486, X489))
U12_aaa(T145, T146, T265, T266, T268, X489, tappend151_out_aaa(T268, X486, X489)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T265, T266, T268)), T145, node(node(nil, T145, nil), T146, node(T265, T266, X489)))
U6_aaa(T126, T124, T125, T127, X217, tappend38_out_aaa(T126, T127, X217)) → tappend38_out_aaa(node(T126, T124, T125), T127, node(X217, T124, T125))
U5_aaa(T107, T105, T106, T108, X217, tappend38_out_aaa(T107, T108, X217)) → tappend38_out_aaa(node(T107, T105, T106), T108, node(X217, T105, T106))
U23_gaa(T7, T24, T25, tappend38_out_aaa(T23, T24, X81)) → goal1_out_gaa(T7, T24, T25)
goal1_in_gaa(T7, T24, T269) → U24_gaa(T7, T24, T269, s2t4_in_ga(T7, T23))
U24_gaa(T7, T24, T269, s2t4_out_ga(T7, T23)) → U25_gaa(T7, T24, T269, tappend38_in_aaa(T23, T24, node(nil, T269, nil)))
U25_gaa(T7, T24, T269, tappend38_out_aaa(T23, T24, node(nil, T269, nil))) → goal1_out_gaa(T7, T24, T269)
goal1_in_gaa(T7, T24, T274) → U26_gaa(T7, T24, T274, s2t4_in_ga(T7, T23))
U26_gaa(T7, T24, T274, s2t4_out_ga(T7, T23)) → U27_gaa(T7, T24, T274, tappend38_in_aaa(T23, T24, node(T275, T272, T273)))
U27_gaa(T7, T24, T274, tappend38_out_aaa(T23, T24, node(T275, T272, T273))) → U28_gaa(T7, T24, T274, tlast39_in_aa(T274, T275))
tlast39_in_aa(T269, node(nil, T269, nil)) → tlast39_out_aa(T269, node(nil, T269, nil))
tlast39_in_aa(T274, node(T275, T272, T273)) → U19_aa(T274, T275, T272, T273, tlast39_in_aa(T274, T275))
tlast39_in_aa(T280, node(T277, T278, T281)) → U20_aa(T280, T277, T278, T281, tlast39_in_aa(T280, T281))
U20_aa(T280, T277, T278, T281, tlast39_out_aa(T280, T281)) → tlast39_out_aa(T280, node(T277, T278, T281))
U19_aa(T274, T275, T272, T273, tlast39_out_aa(T274, T275)) → tlast39_out_aa(T274, node(T275, T272, T273))
U28_gaa(T7, T24, T274, tlast39_out_aa(T274, T275)) → goal1_out_gaa(T7, T24, T274)
goal1_in_gaa(T7, T24, T280) → U29_gaa(T7, T24, T280, s2t4_in_ga(T7, T23))
U29_gaa(T7, T24, T280, s2t4_out_ga(T7, T23)) → U30_gaa(T7, T24, T280, tappend38_in_aaa(T23, T24, node(T277, T278, T281)))
U30_gaa(T7, T24, T280, tappend38_out_aaa(T23, T24, node(T277, T278, T281))) → U31_gaa(T7, T24, T280, tlast39_in_aa(T280, T281))
U31_gaa(T7, T24, T280, tlast39_out_aa(T280, T281)) → goal1_out_gaa(T7, T24, T280)
TAPPEND151_IN_GAA(nil, nil, node(nil, nil, X489)) → TAPPEND151_IN_GAA(nil, X486, X489)
TAPPEND151_IN_GAA(nil, X431, node(X432, nil, nil)) → TAPPEND151_IN_GAA(nil, X431, X432)
TAPPEND151_IN_GAA(nil) → TAPPEND151_IN_GAA(nil)
TAPPEND151_IN_AAA(node(T249, T250, T252), T249, node(T249, T250, X489)) → TAPPEND151_IN_AAA(T252, X486, X489)
TAPPEND151_IN_AAA(node(T218, T216, T217), X431, node(X432, T216, T217)) → TAPPEND151_IN_AAA(T218, X431, X432)
goal1_in_gaa(T7, T10, T11) → U21_gaa(T7, T10, T11, s2t4_in_ga(T7, X21))
s2t4_in_ga(0, nil) → s2t4_out_ga(0, nil)
s2t4_in_ga(s(T14), node(X38, X39, X38)) → U1_ga(T14, X38, X39, s2t4_in_ga(T14, X38))
s2t4_in_ga(s(T16), node(nil, X52, X53)) → U2_ga(T16, X52, X53, s2t4_in_ga(T16, X53))
s2t4_in_ga(s(T18), node(X66, X67, nil)) → U3_ga(T18, X66, X67, s2t4_in_ga(T18, X66))
s2t4_in_ga(T19, node(nil, X74, nil)) → s2t4_out_ga(T19, node(nil, X74, nil))
U3_ga(T18, X66, X67, s2t4_out_ga(T18, X66)) → s2t4_out_ga(s(T18), node(X66, X67, nil))
U2_ga(T16, X52, X53, s2t4_out_ga(T16, X53)) → s2t4_out_ga(s(T16), node(nil, X52, X53))
U1_ga(T14, X38, X39, s2t4_out_ga(T14, X38)) → s2t4_out_ga(s(T14), node(X38, X39, X38))
U21_gaa(T7, T10, T11, s2t4_out_ga(T7, X21)) → goal1_out_gaa(T7, T10, T11)
goal1_in_gaa(T7, T24, T25) → U22_gaa(T7, T24, T25, s2t4_in_ga(T7, T23))
U22_gaa(T7, T24, T25, s2t4_out_ga(T7, T23)) → U23_gaa(T7, T24, T25, tappend38_in_aaa(T23, T24, X81))
tappend38_in_aaa(nil, T30, node(nil, T30, nil)) → tappend38_out_aaa(nil, T30, node(nil, T30, nil))
tappend38_in_aaa(nil, T32, node(node(nil, T32, nil), nil, nil)) → tappend38_out_aaa(nil, T32, node(node(nil, T32, nil), nil, nil))
tappend38_in_aaa(node(nil, T43, T44), T32, node(node(nil, T32, nil), T43, T44)) → tappend38_out_aaa(node(nil, T43, T44), T32, node(node(nil, T32, nil), T43, T44))
tappend38_in_aaa(nil, T57, node(nil, nil, node(nil, T57, nil))) → tappend38_out_aaa(nil, T57, node(nil, nil, node(nil, T57, nil)))
tappend38_in_aaa(node(T70, T71, nil), T57, node(T70, T71, node(nil, T57, nil))) → tappend38_out_aaa(node(T70, T71, nil), T57, node(T70, T71, node(nil, T57, nil)))
tappend38_in_aaa(nil, T89, node(X217, nil, nil)) → U4_aaa(T89, X217, tappend38_in_gaa(nil, T89, X217))
tappend38_in_gaa(nil, T30, node(nil, T30, nil)) → tappend38_out_gaa(nil, T30, node(nil, T30, nil))
tappend38_in_gaa(nil, T32, node(node(nil, T32, nil), nil, nil)) → tappend38_out_gaa(nil, T32, node(node(nil, T32, nil), nil, nil))
tappend38_in_gaa(node(nil, T43, T44), T32, node(node(nil, T32, nil), T43, T44)) → tappend38_out_gaa(node(nil, T43, T44), T32, node(node(nil, T32, nil), T43, T44))
tappend38_in_gaa(nil, T57, node(nil, nil, node(nil, T57, nil))) → tappend38_out_gaa(nil, T57, node(nil, nil, node(nil, T57, nil)))
tappend38_in_gaa(node(T70, T71, nil), T57, node(T70, T71, node(nil, T57, nil))) → tappend38_out_gaa(node(T70, T71, nil), T57, node(T70, T71, node(nil, T57, nil)))
tappend38_in_gaa(nil, T89, node(X217, nil, nil)) → U4_gaa(T89, X217, tappend38_in_gaa(nil, T89, X217))
tappend38_in_gaa(node(T107, T105, T106), T108, node(X217, T105, T106)) → U5_gaa(T107, T105, T106, T108, X217, tappend38_in_gaa(T107, T108, X217))
tappend38_in_gaa(node(T126, T124, T125), T127, node(X217, T124, T125)) → U6_gaa(T126, T124, T125, T127, X217, tappend38_in_gaa(T126, T127, X217))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, X300)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, X300))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X313, nil, nil))) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X313, nil, nil)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(nil, T160, T161)), T145, node(node(nil, T145, nil), T146, node(X313, T160, T161))) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(nil, T160, T161)), T145, node(node(nil, T145, nil), T146, node(X313, T160, T161)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X370))) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X370)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T186, T187, nil)), T145, node(node(nil, T145, nil), T146, node(T186, T187, X370))) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T186, T187, nil)), T145, node(node(nil, T145, nil), T146, node(T186, T187, X370)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X432, nil, nil))) → U7_gaa(T145, T146, X432, tappend151_in_gaa(nil, X431, X432))
tappend151_in_gaa(nil, X300, X300) → tappend151_out_gaa(nil, X300, X300)
tappend151_in_gaa(nil, X313, node(X313, nil, nil)) → tappend151_out_gaa(nil, X313, node(X313, nil, nil))
tappend151_in_gaa(node(nil, T160, T161), X313, node(X313, T160, T161)) → tappend151_out_gaa(node(nil, T160, T161), X313, node(X313, T160, T161))
tappend151_in_gaa(nil, X370, node(nil, nil, X370)) → tappend151_out_gaa(nil, X370, node(nil, nil, X370))
tappend151_in_gaa(node(T186, T187, nil), X370, node(T186, T187, X370)) → tappend151_out_gaa(node(T186, T187, nil), X370, node(T186, T187, X370))
tappend151_in_gaa(nil, X431, node(X432, nil, nil)) → U13_gaa(X431, X432, tappend151_in_gaa(nil, X431, X432))
tappend151_in_gaa(node(T218, T216, T217), X431, node(X432, T216, T217)) → U14_gaa(T218, T216, T217, X431, X432, tappend151_in_gaa(T218, X431, X432))
tappend151_in_gaa(node(T234, T232, T233), X431, node(X432, T232, T233)) → U15_gaa(T234, T232, T233, X431, X432, tappend151_in_gaa(T234, X431, X432))
tappend151_in_gaa(nil, nil, node(nil, nil, X489)) → U16_gaa(X489, tappend151_in_gaa(nil, X486, X489))
tappend151_in_gaa(node(T249, T250, T252), T249, node(T249, T250, X489)) → U17_gaa(T249, T250, T252, X489, tappend151_in_gaa(T252, X486, X489))
tappend151_in_gaa(node(T265, T266, T268), T265, node(T265, T266, X489)) → U18_gaa(T265, T266, T268, X489, tappend151_in_gaa(T268, X486, X489))
U18_gaa(T265, T266, T268, X489, tappend151_out_gaa(T268, X486, X489)) → tappend151_out_gaa(node(T265, T266, T268), T265, node(T265, T266, X489))
U17_gaa(T249, T250, T252, X489, tappend151_out_gaa(T252, X486, X489)) → tappend151_out_gaa(node(T249, T250, T252), T249, node(T249, T250, X489))
U16_gaa(X489, tappend151_out_gaa(nil, X486, X489)) → tappend151_out_gaa(nil, nil, node(nil, nil, X489))
U15_gaa(T234, T232, T233, X431, X432, tappend151_out_gaa(T234, X431, X432)) → tappend151_out_gaa(node(T234, T232, T233), X431, node(X432, T232, T233))
U14_gaa(T218, T216, T217, X431, X432, tappend151_out_gaa(T218, X431, X432)) → tappend151_out_gaa(node(T218, T216, T217), X431, node(X432, T216, T217))
U13_gaa(X431, X432, tappend151_out_gaa(nil, X431, X432)) → tappend151_out_gaa(nil, X431, node(X432, nil, nil))
U7_gaa(T145, T146, X432, tappend151_out_gaa(nil, X431, X432)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X432, nil, nil)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T218, T216, T217)), T145, node(node(nil, T145, nil), T146, node(X432, T216, T217))) → U8_gaa(T145, T146, T218, T216, T217, X432, tappend151_in_gaa(T218, X431, X432))
U8_gaa(T145, T146, T218, T216, T217, X432, tappend151_out_gaa(T218, X431, X432)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T218, T216, T217)), T145, node(node(nil, T145, nil), T146, node(X432, T216, T217)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T234, T232, T233)), T145, node(node(nil, T145, nil), T146, node(X432, T232, T233))) → U9_gaa(T145, T146, T234, T232, T233, X432, tappend151_in_gaa(T234, X431, X432))
U9_gaa(T145, T146, T234, T232, T233, X432, tappend151_out_gaa(T234, X431, X432)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T234, T232, T233)), T145, node(node(nil, T145, nil), T146, node(X432, T232, T233)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X489))) → U10_gaa(T145, T146, X489, tappend151_in_gaa(nil, X486, X489))
U10_gaa(T145, T146, X489, tappend151_out_gaa(nil, X486, X489)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X489)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T249, T250, T252)), T145, node(node(nil, T145, nil), T146, node(T249, T250, X489))) → U11_gaa(T145, T146, T249, T250, T252, X489, tappend151_in_gaa(T252, X486, X489))
U11_gaa(T145, T146, T249, T250, T252, X489, tappend151_out_gaa(T252, X486, X489)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T249, T250, T252)), T145, node(node(nil, T145, nil), T146, node(T249, T250, X489)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T265, T266, T268)), T145, node(node(nil, T145, nil), T146, node(T265, T266, X489))) → U12_gaa(T145, T146, T265, T266, T268, X489, tappend151_in_gaa(T268, X486, X489))
U12_gaa(T145, T146, T265, T266, T268, X489, tappend151_out_gaa(T268, X486, X489)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T265, T266, T268)), T145, node(node(nil, T145, nil), T146, node(T265, T266, X489)))
U6_gaa(T126, T124, T125, T127, X217, tappend38_out_gaa(T126, T127, X217)) → tappend38_out_gaa(node(T126, T124, T125), T127, node(X217, T124, T125))
U5_gaa(T107, T105, T106, T108, X217, tappend38_out_gaa(T107, T108, X217)) → tappend38_out_gaa(node(T107, T105, T106), T108, node(X217, T105, T106))
U4_gaa(T89, X217, tappend38_out_gaa(nil, T89, X217)) → tappend38_out_gaa(nil, T89, node(X217, nil, nil))
U4_aaa(T89, X217, tappend38_out_gaa(nil, T89, X217)) → tappend38_out_aaa(nil, T89, node(X217, nil, nil))
tappend38_in_aaa(node(T107, T105, T106), T108, node(X217, T105, T106)) → U5_aaa(T107, T105, T106, T108, X217, tappend38_in_aaa(T107, T108, X217))
tappend38_in_aaa(node(T126, T124, T125), T127, node(X217, T124, T125)) → U6_aaa(T126, T124, T125, T127, X217, tappend38_in_aaa(T126, T127, X217))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, X300)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, X300))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X313, nil, nil))) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X313, nil, nil)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(nil, T160, T161)), T145, node(node(nil, T145, nil), T146, node(X313, T160, T161))) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(nil, T160, T161)), T145, node(node(nil, T145, nil), T146, node(X313, T160, T161)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X370))) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X370)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T186, T187, nil)), T145, node(node(nil, T145, nil), T146, node(T186, T187, X370))) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T186, T187, nil)), T145, node(node(nil, T145, nil), T146, node(T186, T187, X370)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X432, nil, nil))) → U7_aaa(T145, T146, X432, tappend151_in_gaa(nil, X431, X432))
U7_aaa(T145, T146, X432, tappend151_out_gaa(nil, X431, X432)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X432, nil, nil)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T218, T216, T217)), T145, node(node(nil, T145, nil), T146, node(X432, T216, T217))) → U8_aaa(T145, T146, T218, T216, T217, X432, tappend151_in_aaa(T218, X431, X432))
tappend151_in_aaa(nil, X300, X300) → tappend151_out_aaa(nil, X300, X300)
tappend151_in_aaa(nil, X313, node(X313, nil, nil)) → tappend151_out_aaa(nil, X313, node(X313, nil, nil))
tappend151_in_aaa(node(nil, T160, T161), X313, node(X313, T160, T161)) → tappend151_out_aaa(node(nil, T160, T161), X313, node(X313, T160, T161))
tappend151_in_aaa(nil, X370, node(nil, nil, X370)) → tappend151_out_aaa(nil, X370, node(nil, nil, X370))
tappend151_in_aaa(node(T186, T187, nil), X370, node(T186, T187, X370)) → tappend151_out_aaa(node(T186, T187, nil), X370, node(T186, T187, X370))
tappend151_in_aaa(nil, X431, node(X432, nil, nil)) → U13_aaa(X431, X432, tappend151_in_gaa(nil, X431, X432))
U13_aaa(X431, X432, tappend151_out_gaa(nil, X431, X432)) → tappend151_out_aaa(nil, X431, node(X432, nil, nil))
tappend151_in_aaa(node(T218, T216, T217), X431, node(X432, T216, T217)) → U14_aaa(T218, T216, T217, X431, X432, tappend151_in_aaa(T218, X431, X432))
tappend151_in_aaa(node(T234, T232, T233), X431, node(X432, T232, T233)) → U15_aaa(T234, T232, T233, X431, X432, tappend151_in_aaa(T234, X431, X432))
tappend151_in_aaa(nil, nil, node(nil, nil, X489)) → U16_aaa(X489, tappend151_in_gaa(nil, X486, X489))
U16_aaa(X489, tappend151_out_gaa(nil, X486, X489)) → tappend151_out_aaa(nil, nil, node(nil, nil, X489))
tappend151_in_aaa(node(T249, T250, T252), T249, node(T249, T250, X489)) → U17_aaa(T249, T250, T252, X489, tappend151_in_aaa(T252, X486, X489))
tappend151_in_aaa(node(T265, T266, T268), T265, node(T265, T266, X489)) → U18_aaa(T265, T266, T268, X489, tappend151_in_aaa(T268, X486, X489))
U18_aaa(T265, T266, T268, X489, tappend151_out_aaa(T268, X486, X489)) → tappend151_out_aaa(node(T265, T266, T268), T265, node(T265, T266, X489))
U17_aaa(T249, T250, T252, X489, tappend151_out_aaa(T252, X486, X489)) → tappend151_out_aaa(node(T249, T250, T252), T249, node(T249, T250, X489))
U15_aaa(T234, T232, T233, X431, X432, tappend151_out_aaa(T234, X431, X432)) → tappend151_out_aaa(node(T234, T232, T233), X431, node(X432, T232, T233))
U14_aaa(T218, T216, T217, X431, X432, tappend151_out_aaa(T218, X431, X432)) → tappend151_out_aaa(node(T218, T216, T217), X431, node(X432, T216, T217))
U8_aaa(T145, T146, T218, T216, T217, X432, tappend151_out_aaa(T218, X431, X432)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T218, T216, T217)), T145, node(node(nil, T145, nil), T146, node(X432, T216, T217)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T234, T232, T233)), T145, node(node(nil, T145, nil), T146, node(X432, T232, T233))) → U9_aaa(T145, T146, T234, T232, T233, X432, tappend151_in_aaa(T234, X431, X432))
U9_aaa(T145, T146, T234, T232, T233, X432, tappend151_out_aaa(T234, X431, X432)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T234, T232, T233)), T145, node(node(nil, T145, nil), T146, node(X432, T232, T233)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X489))) → U10_aaa(T145, T146, X489, tappend151_in_gaa(nil, X486, X489))
U10_aaa(T145, T146, X489, tappend151_out_gaa(nil, X486, X489)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X489)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T249, T250, T252)), T145, node(node(nil, T145, nil), T146, node(T249, T250, X489))) → U11_aaa(T145, T146, T249, T250, T252, X489, tappend151_in_aaa(T252, X486, X489))
U11_aaa(T145, T146, T249, T250, T252, X489, tappend151_out_aaa(T252, X486, X489)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T249, T250, T252)), T145, node(node(nil, T145, nil), T146, node(T249, T250, X489)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T265, T266, T268)), T145, node(node(nil, T145, nil), T146, node(T265, T266, X489))) → U12_aaa(T145, T146, T265, T266, T268, X489, tappend151_in_aaa(T268, X486, X489))
U12_aaa(T145, T146, T265, T266, T268, X489, tappend151_out_aaa(T268, X486, X489)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T265, T266, T268)), T145, node(node(nil, T145, nil), T146, node(T265, T266, X489)))
U6_aaa(T126, T124, T125, T127, X217, tappend38_out_aaa(T126, T127, X217)) → tappend38_out_aaa(node(T126, T124, T125), T127, node(X217, T124, T125))
U5_aaa(T107, T105, T106, T108, X217, tappend38_out_aaa(T107, T108, X217)) → tappend38_out_aaa(node(T107, T105, T106), T108, node(X217, T105, T106))
U23_gaa(T7, T24, T25, tappend38_out_aaa(T23, T24, X81)) → goal1_out_gaa(T7, T24, T25)
goal1_in_gaa(T7, T24, T269) → U24_gaa(T7, T24, T269, s2t4_in_ga(T7, T23))
U24_gaa(T7, T24, T269, s2t4_out_ga(T7, T23)) → U25_gaa(T7, T24, T269, tappend38_in_aaa(T23, T24, node(nil, T269, nil)))
U25_gaa(T7, T24, T269, tappend38_out_aaa(T23, T24, node(nil, T269, nil))) → goal1_out_gaa(T7, T24, T269)
goal1_in_gaa(T7, T24, T274) → U26_gaa(T7, T24, T274, s2t4_in_ga(T7, T23))
U26_gaa(T7, T24, T274, s2t4_out_ga(T7, T23)) → U27_gaa(T7, T24, T274, tappend38_in_aaa(T23, T24, node(T275, T272, T273)))
U27_gaa(T7, T24, T274, tappend38_out_aaa(T23, T24, node(T275, T272, T273))) → U28_gaa(T7, T24, T274, tlast39_in_aa(T274, T275))
tlast39_in_aa(T269, node(nil, T269, nil)) → tlast39_out_aa(T269, node(nil, T269, nil))
tlast39_in_aa(T274, node(T275, T272, T273)) → U19_aa(T274, T275, T272, T273, tlast39_in_aa(T274, T275))
tlast39_in_aa(T280, node(T277, T278, T281)) → U20_aa(T280, T277, T278, T281, tlast39_in_aa(T280, T281))
U20_aa(T280, T277, T278, T281, tlast39_out_aa(T280, T281)) → tlast39_out_aa(T280, node(T277, T278, T281))
U19_aa(T274, T275, T272, T273, tlast39_out_aa(T274, T275)) → tlast39_out_aa(T274, node(T275, T272, T273))
U28_gaa(T7, T24, T274, tlast39_out_aa(T274, T275)) → goal1_out_gaa(T7, T24, T274)
goal1_in_gaa(T7, T24, T280) → U29_gaa(T7, T24, T280, s2t4_in_ga(T7, T23))
U29_gaa(T7, T24, T280, s2t4_out_ga(T7, T23)) → U30_gaa(T7, T24, T280, tappend38_in_aaa(T23, T24, node(T277, T278, T281)))
U30_gaa(T7, T24, T280, tappend38_out_aaa(T23, T24, node(T277, T278, T281))) → U31_gaa(T7, T24, T280, tlast39_in_aa(T280, T281))
U31_gaa(T7, T24, T280, tlast39_out_aa(T280, T281)) → goal1_out_gaa(T7, T24, T280)
TAPPEND151_IN_AAA(node(T249, T250, T252), T249, node(T249, T250, X489)) → TAPPEND151_IN_AAA(T252, X486, X489)
TAPPEND151_IN_AAA(node(T218, T216, T217), X431, node(X432, T216, T217)) → TAPPEND151_IN_AAA(T218, X431, X432)
TAPPEND151_IN_AAA → TAPPEND151_IN_AAA
TAPPEND151_IN_GAA(node(T249, T250, T252), T249, node(T249, T250, X489)) → TAPPEND151_IN_GAA(T252, X486, X489)
TAPPEND151_IN_GAA(node(T218, T216, T217), X431, node(X432, T216, T217)) → TAPPEND151_IN_GAA(T218, X431, X432)
goal1_in_gaa(T7, T10, T11) → U21_gaa(T7, T10, T11, s2t4_in_ga(T7, X21))
s2t4_in_ga(0, nil) → s2t4_out_ga(0, nil)
s2t4_in_ga(s(T14), node(X38, X39, X38)) → U1_ga(T14, X38, X39, s2t4_in_ga(T14, X38))
s2t4_in_ga(s(T16), node(nil, X52, X53)) → U2_ga(T16, X52, X53, s2t4_in_ga(T16, X53))
s2t4_in_ga(s(T18), node(X66, X67, nil)) → U3_ga(T18, X66, X67, s2t4_in_ga(T18, X66))
s2t4_in_ga(T19, node(nil, X74, nil)) → s2t4_out_ga(T19, node(nil, X74, nil))
U3_ga(T18, X66, X67, s2t4_out_ga(T18, X66)) → s2t4_out_ga(s(T18), node(X66, X67, nil))
U2_ga(T16, X52, X53, s2t4_out_ga(T16, X53)) → s2t4_out_ga(s(T16), node(nil, X52, X53))
U1_ga(T14, X38, X39, s2t4_out_ga(T14, X38)) → s2t4_out_ga(s(T14), node(X38, X39, X38))
U21_gaa(T7, T10, T11, s2t4_out_ga(T7, X21)) → goal1_out_gaa(T7, T10, T11)
goal1_in_gaa(T7, T24, T25) → U22_gaa(T7, T24, T25, s2t4_in_ga(T7, T23))
U22_gaa(T7, T24, T25, s2t4_out_ga(T7, T23)) → U23_gaa(T7, T24, T25, tappend38_in_aaa(T23, T24, X81))
tappend38_in_aaa(nil, T30, node(nil, T30, nil)) → tappend38_out_aaa(nil, T30, node(nil, T30, nil))
tappend38_in_aaa(nil, T32, node(node(nil, T32, nil), nil, nil)) → tappend38_out_aaa(nil, T32, node(node(nil, T32, nil), nil, nil))
tappend38_in_aaa(node(nil, T43, T44), T32, node(node(nil, T32, nil), T43, T44)) → tappend38_out_aaa(node(nil, T43, T44), T32, node(node(nil, T32, nil), T43, T44))
tappend38_in_aaa(nil, T57, node(nil, nil, node(nil, T57, nil))) → tappend38_out_aaa(nil, T57, node(nil, nil, node(nil, T57, nil)))
tappend38_in_aaa(node(T70, T71, nil), T57, node(T70, T71, node(nil, T57, nil))) → tappend38_out_aaa(node(T70, T71, nil), T57, node(T70, T71, node(nil, T57, nil)))
tappend38_in_aaa(nil, T89, node(X217, nil, nil)) → U4_aaa(T89, X217, tappend38_in_gaa(nil, T89, X217))
tappend38_in_gaa(nil, T30, node(nil, T30, nil)) → tappend38_out_gaa(nil, T30, node(nil, T30, nil))
tappend38_in_gaa(nil, T32, node(node(nil, T32, nil), nil, nil)) → tappend38_out_gaa(nil, T32, node(node(nil, T32, nil), nil, nil))
tappend38_in_gaa(node(nil, T43, T44), T32, node(node(nil, T32, nil), T43, T44)) → tappend38_out_gaa(node(nil, T43, T44), T32, node(node(nil, T32, nil), T43, T44))
tappend38_in_gaa(nil, T57, node(nil, nil, node(nil, T57, nil))) → tappend38_out_gaa(nil, T57, node(nil, nil, node(nil, T57, nil)))
tappend38_in_gaa(node(T70, T71, nil), T57, node(T70, T71, node(nil, T57, nil))) → tappend38_out_gaa(node(T70, T71, nil), T57, node(T70, T71, node(nil, T57, nil)))
tappend38_in_gaa(nil, T89, node(X217, nil, nil)) → U4_gaa(T89, X217, tappend38_in_gaa(nil, T89, X217))
tappend38_in_gaa(node(T107, T105, T106), T108, node(X217, T105, T106)) → U5_gaa(T107, T105, T106, T108, X217, tappend38_in_gaa(T107, T108, X217))
tappend38_in_gaa(node(T126, T124, T125), T127, node(X217, T124, T125)) → U6_gaa(T126, T124, T125, T127, X217, tappend38_in_gaa(T126, T127, X217))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, X300)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, X300))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X313, nil, nil))) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X313, nil, nil)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(nil, T160, T161)), T145, node(node(nil, T145, nil), T146, node(X313, T160, T161))) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(nil, T160, T161)), T145, node(node(nil, T145, nil), T146, node(X313, T160, T161)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X370))) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X370)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T186, T187, nil)), T145, node(node(nil, T145, nil), T146, node(T186, T187, X370))) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T186, T187, nil)), T145, node(node(nil, T145, nil), T146, node(T186, T187, X370)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X432, nil, nil))) → U7_gaa(T145, T146, X432, tappend151_in_gaa(nil, X431, X432))
tappend151_in_gaa(nil, X300, X300) → tappend151_out_gaa(nil, X300, X300)
tappend151_in_gaa(nil, X313, node(X313, nil, nil)) → tappend151_out_gaa(nil, X313, node(X313, nil, nil))
tappend151_in_gaa(node(nil, T160, T161), X313, node(X313, T160, T161)) → tappend151_out_gaa(node(nil, T160, T161), X313, node(X313, T160, T161))
tappend151_in_gaa(nil, X370, node(nil, nil, X370)) → tappend151_out_gaa(nil, X370, node(nil, nil, X370))
tappend151_in_gaa(node(T186, T187, nil), X370, node(T186, T187, X370)) → tappend151_out_gaa(node(T186, T187, nil), X370, node(T186, T187, X370))
tappend151_in_gaa(nil, X431, node(X432, nil, nil)) → U13_gaa(X431, X432, tappend151_in_gaa(nil, X431, X432))
tappend151_in_gaa(node(T218, T216, T217), X431, node(X432, T216, T217)) → U14_gaa(T218, T216, T217, X431, X432, tappend151_in_gaa(T218, X431, X432))
tappend151_in_gaa(node(T234, T232, T233), X431, node(X432, T232, T233)) → U15_gaa(T234, T232, T233, X431, X432, tappend151_in_gaa(T234, X431, X432))
tappend151_in_gaa(nil, nil, node(nil, nil, X489)) → U16_gaa(X489, tappend151_in_gaa(nil, X486, X489))
tappend151_in_gaa(node(T249, T250, T252), T249, node(T249, T250, X489)) → U17_gaa(T249, T250, T252, X489, tappend151_in_gaa(T252, X486, X489))
tappend151_in_gaa(node(T265, T266, T268), T265, node(T265, T266, X489)) → U18_gaa(T265, T266, T268, X489, tappend151_in_gaa(T268, X486, X489))
U18_gaa(T265, T266, T268, X489, tappend151_out_gaa(T268, X486, X489)) → tappend151_out_gaa(node(T265, T266, T268), T265, node(T265, T266, X489))
U17_gaa(T249, T250, T252, X489, tappend151_out_gaa(T252, X486, X489)) → tappend151_out_gaa(node(T249, T250, T252), T249, node(T249, T250, X489))
U16_gaa(X489, tappend151_out_gaa(nil, X486, X489)) → tappend151_out_gaa(nil, nil, node(nil, nil, X489))
U15_gaa(T234, T232, T233, X431, X432, tappend151_out_gaa(T234, X431, X432)) → tappend151_out_gaa(node(T234, T232, T233), X431, node(X432, T232, T233))
U14_gaa(T218, T216, T217, X431, X432, tappend151_out_gaa(T218, X431, X432)) → tappend151_out_gaa(node(T218, T216, T217), X431, node(X432, T216, T217))
U13_gaa(X431, X432, tappend151_out_gaa(nil, X431, X432)) → tappend151_out_gaa(nil, X431, node(X432, nil, nil))
U7_gaa(T145, T146, X432, tappend151_out_gaa(nil, X431, X432)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X432, nil, nil)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T218, T216, T217)), T145, node(node(nil, T145, nil), T146, node(X432, T216, T217))) → U8_gaa(T145, T146, T218, T216, T217, X432, tappend151_in_gaa(T218, X431, X432))
U8_gaa(T145, T146, T218, T216, T217, X432, tappend151_out_gaa(T218, X431, X432)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T218, T216, T217)), T145, node(node(nil, T145, nil), T146, node(X432, T216, T217)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T234, T232, T233)), T145, node(node(nil, T145, nil), T146, node(X432, T232, T233))) → U9_gaa(T145, T146, T234, T232, T233, X432, tappend151_in_gaa(T234, X431, X432))
U9_gaa(T145, T146, T234, T232, T233, X432, tappend151_out_gaa(T234, X431, X432)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T234, T232, T233)), T145, node(node(nil, T145, nil), T146, node(X432, T232, T233)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X489))) → U10_gaa(T145, T146, X489, tappend151_in_gaa(nil, X486, X489))
U10_gaa(T145, T146, X489, tappend151_out_gaa(nil, X486, X489)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X489)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T249, T250, T252)), T145, node(node(nil, T145, nil), T146, node(T249, T250, X489))) → U11_gaa(T145, T146, T249, T250, T252, X489, tappend151_in_gaa(T252, X486, X489))
U11_gaa(T145, T146, T249, T250, T252, X489, tappend151_out_gaa(T252, X486, X489)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T249, T250, T252)), T145, node(node(nil, T145, nil), T146, node(T249, T250, X489)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T265, T266, T268)), T145, node(node(nil, T145, nil), T146, node(T265, T266, X489))) → U12_gaa(T145, T146, T265, T266, T268, X489, tappend151_in_gaa(T268, X486, X489))
U12_gaa(T145, T146, T265, T266, T268, X489, tappend151_out_gaa(T268, X486, X489)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T265, T266, T268)), T145, node(node(nil, T145, nil), T146, node(T265, T266, X489)))
U6_gaa(T126, T124, T125, T127, X217, tappend38_out_gaa(T126, T127, X217)) → tappend38_out_gaa(node(T126, T124, T125), T127, node(X217, T124, T125))
U5_gaa(T107, T105, T106, T108, X217, tappend38_out_gaa(T107, T108, X217)) → tappend38_out_gaa(node(T107, T105, T106), T108, node(X217, T105, T106))
U4_gaa(T89, X217, tappend38_out_gaa(nil, T89, X217)) → tappend38_out_gaa(nil, T89, node(X217, nil, nil))
U4_aaa(T89, X217, tappend38_out_gaa(nil, T89, X217)) → tappend38_out_aaa(nil, T89, node(X217, nil, nil))
tappend38_in_aaa(node(T107, T105, T106), T108, node(X217, T105, T106)) → U5_aaa(T107, T105, T106, T108, X217, tappend38_in_aaa(T107, T108, X217))
tappend38_in_aaa(node(T126, T124, T125), T127, node(X217, T124, T125)) → U6_aaa(T126, T124, T125, T127, X217, tappend38_in_aaa(T126, T127, X217))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, X300)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, X300))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X313, nil, nil))) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X313, nil, nil)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(nil, T160, T161)), T145, node(node(nil, T145, nil), T146, node(X313, T160, T161))) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(nil, T160, T161)), T145, node(node(nil, T145, nil), T146, node(X313, T160, T161)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X370))) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X370)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T186, T187, nil)), T145, node(node(nil, T145, nil), T146, node(T186, T187, X370))) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T186, T187, nil)), T145, node(node(nil, T145, nil), T146, node(T186, T187, X370)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X432, nil, nil))) → U7_aaa(T145, T146, X432, tappend151_in_gaa(nil, X431, X432))
U7_aaa(T145, T146, X432, tappend151_out_gaa(nil, X431, X432)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X432, nil, nil)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T218, T216, T217)), T145, node(node(nil, T145, nil), T146, node(X432, T216, T217))) → U8_aaa(T145, T146, T218, T216, T217, X432, tappend151_in_aaa(T218, X431, X432))
tappend151_in_aaa(nil, X300, X300) → tappend151_out_aaa(nil, X300, X300)
tappend151_in_aaa(nil, X313, node(X313, nil, nil)) → tappend151_out_aaa(nil, X313, node(X313, nil, nil))
tappend151_in_aaa(node(nil, T160, T161), X313, node(X313, T160, T161)) → tappend151_out_aaa(node(nil, T160, T161), X313, node(X313, T160, T161))
tappend151_in_aaa(nil, X370, node(nil, nil, X370)) → tappend151_out_aaa(nil, X370, node(nil, nil, X370))
tappend151_in_aaa(node(T186, T187, nil), X370, node(T186, T187, X370)) → tappend151_out_aaa(node(T186, T187, nil), X370, node(T186, T187, X370))
tappend151_in_aaa(nil, X431, node(X432, nil, nil)) → U13_aaa(X431, X432, tappend151_in_gaa(nil, X431, X432))
U13_aaa(X431, X432, tappend151_out_gaa(nil, X431, X432)) → tappend151_out_aaa(nil, X431, node(X432, nil, nil))
tappend151_in_aaa(node(T218, T216, T217), X431, node(X432, T216, T217)) → U14_aaa(T218, T216, T217, X431, X432, tappend151_in_aaa(T218, X431, X432))
tappend151_in_aaa(node(T234, T232, T233), X431, node(X432, T232, T233)) → U15_aaa(T234, T232, T233, X431, X432, tappend151_in_aaa(T234, X431, X432))
tappend151_in_aaa(nil, nil, node(nil, nil, X489)) → U16_aaa(X489, tappend151_in_gaa(nil, X486, X489))
U16_aaa(X489, tappend151_out_gaa(nil, X486, X489)) → tappend151_out_aaa(nil, nil, node(nil, nil, X489))
tappend151_in_aaa(node(T249, T250, T252), T249, node(T249, T250, X489)) → U17_aaa(T249, T250, T252, X489, tappend151_in_aaa(T252, X486, X489))
tappend151_in_aaa(node(T265, T266, T268), T265, node(T265, T266, X489)) → U18_aaa(T265, T266, T268, X489, tappend151_in_aaa(T268, X486, X489))
U18_aaa(T265, T266, T268, X489, tappend151_out_aaa(T268, X486, X489)) → tappend151_out_aaa(node(T265, T266, T268), T265, node(T265, T266, X489))
U17_aaa(T249, T250, T252, X489, tappend151_out_aaa(T252, X486, X489)) → tappend151_out_aaa(node(T249, T250, T252), T249, node(T249, T250, X489))
U15_aaa(T234, T232, T233, X431, X432, tappend151_out_aaa(T234, X431, X432)) → tappend151_out_aaa(node(T234, T232, T233), X431, node(X432, T232, T233))
U14_aaa(T218, T216, T217, X431, X432, tappend151_out_aaa(T218, X431, X432)) → tappend151_out_aaa(node(T218, T216, T217), X431, node(X432, T216, T217))
U8_aaa(T145, T146, T218, T216, T217, X432, tappend151_out_aaa(T218, X431, X432)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T218, T216, T217)), T145, node(node(nil, T145, nil), T146, node(X432, T216, T217)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T234, T232, T233)), T145, node(node(nil, T145, nil), T146, node(X432, T232, T233))) → U9_aaa(T145, T146, T234, T232, T233, X432, tappend151_in_aaa(T234, X431, X432))
U9_aaa(T145, T146, T234, T232, T233, X432, tappend151_out_aaa(T234, X431, X432)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T234, T232, T233)), T145, node(node(nil, T145, nil), T146, node(X432, T232, T233)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X489))) → U10_aaa(T145, T146, X489, tappend151_in_gaa(nil, X486, X489))
U10_aaa(T145, T146, X489, tappend151_out_gaa(nil, X486, X489)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X489)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T249, T250, T252)), T145, node(node(nil, T145, nil), T146, node(T249, T250, X489))) → U11_aaa(T145, T146, T249, T250, T252, X489, tappend151_in_aaa(T252, X486, X489))
U11_aaa(T145, T146, T249, T250, T252, X489, tappend151_out_aaa(T252, X486, X489)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T249, T250, T252)), T145, node(node(nil, T145, nil), T146, node(T249, T250, X489)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T265, T266, T268)), T145, node(node(nil, T145, nil), T146, node(T265, T266, X489))) → U12_aaa(T145, T146, T265, T266, T268, X489, tappend151_in_aaa(T268, X486, X489))
U12_aaa(T145, T146, T265, T266, T268, X489, tappend151_out_aaa(T268, X486, X489)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T265, T266, T268)), T145, node(node(nil, T145, nil), T146, node(T265, T266, X489)))
U6_aaa(T126, T124, T125, T127, X217, tappend38_out_aaa(T126, T127, X217)) → tappend38_out_aaa(node(T126, T124, T125), T127, node(X217, T124, T125))
U5_aaa(T107, T105, T106, T108, X217, tappend38_out_aaa(T107, T108, X217)) → tappend38_out_aaa(node(T107, T105, T106), T108, node(X217, T105, T106))
U23_gaa(T7, T24, T25, tappend38_out_aaa(T23, T24, X81)) → goal1_out_gaa(T7, T24, T25)
goal1_in_gaa(T7, T24, T269) → U24_gaa(T7, T24, T269, s2t4_in_ga(T7, T23))
U24_gaa(T7, T24, T269, s2t4_out_ga(T7, T23)) → U25_gaa(T7, T24, T269, tappend38_in_aaa(T23, T24, node(nil, T269, nil)))
U25_gaa(T7, T24, T269, tappend38_out_aaa(T23, T24, node(nil, T269, nil))) → goal1_out_gaa(T7, T24, T269)
goal1_in_gaa(T7, T24, T274) → U26_gaa(T7, T24, T274, s2t4_in_ga(T7, T23))
U26_gaa(T7, T24, T274, s2t4_out_ga(T7, T23)) → U27_gaa(T7, T24, T274, tappend38_in_aaa(T23, T24, node(T275, T272, T273)))
U27_gaa(T7, T24, T274, tappend38_out_aaa(T23, T24, node(T275, T272, T273))) → U28_gaa(T7, T24, T274, tlast39_in_aa(T274, T275))
tlast39_in_aa(T269, node(nil, T269, nil)) → tlast39_out_aa(T269, node(nil, T269, nil))
tlast39_in_aa(T274, node(T275, T272, T273)) → U19_aa(T274, T275, T272, T273, tlast39_in_aa(T274, T275))
tlast39_in_aa(T280, node(T277, T278, T281)) → U20_aa(T280, T277, T278, T281, tlast39_in_aa(T280, T281))
U20_aa(T280, T277, T278, T281, tlast39_out_aa(T280, T281)) → tlast39_out_aa(T280, node(T277, T278, T281))
U19_aa(T274, T275, T272, T273, tlast39_out_aa(T274, T275)) → tlast39_out_aa(T274, node(T275, T272, T273))
U28_gaa(T7, T24, T274, tlast39_out_aa(T274, T275)) → goal1_out_gaa(T7, T24, T274)
goal1_in_gaa(T7, T24, T280) → U29_gaa(T7, T24, T280, s2t4_in_ga(T7, T23))
U29_gaa(T7, T24, T280, s2t4_out_ga(T7, T23)) → U30_gaa(T7, T24, T280, tappend38_in_aaa(T23, T24, node(T277, T278, T281)))
U30_gaa(T7, T24, T280, tappend38_out_aaa(T23, T24, node(T277, T278, T281))) → U31_gaa(T7, T24, T280, tlast39_in_aa(T280, T281))
U31_gaa(T7, T24, T280, tlast39_out_aa(T280, T281)) → goal1_out_gaa(T7, T24, T280)
TAPPEND151_IN_GAA(node(T249, T250, T252), T249, node(T249, T250, X489)) → TAPPEND151_IN_GAA(T252, X486, X489)
TAPPEND151_IN_GAA(node(T218, T216, T217), X431, node(X432, T216, T217)) → TAPPEND151_IN_GAA(T218, X431, X432)
TAPPEND151_IN_GAA(node(T249, T250, T252)) → TAPPEND151_IN_GAA(T252)
TAPPEND151_IN_GAA(node(T218, T216, T217)) → TAPPEND151_IN_GAA(T218)
From the DPs we obtained the following set of size-change graphs:
TAPPEND38_IN_GAA(nil, T89, node(X217, nil, nil)) → TAPPEND38_IN_GAA(nil, T89, X217)
goal1_in_gaa(T7, T10, T11) → U21_gaa(T7, T10, T11, s2t4_in_ga(T7, X21))
s2t4_in_ga(0, nil) → s2t4_out_ga(0, nil)
s2t4_in_ga(s(T14), node(X38, X39, X38)) → U1_ga(T14, X38, X39, s2t4_in_ga(T14, X38))
s2t4_in_ga(s(T16), node(nil, X52, X53)) → U2_ga(T16, X52, X53, s2t4_in_ga(T16, X53))
s2t4_in_ga(s(T18), node(X66, X67, nil)) → U3_ga(T18, X66, X67, s2t4_in_ga(T18, X66))
s2t4_in_ga(T19, node(nil, X74, nil)) → s2t4_out_ga(T19, node(nil, X74, nil))
U3_ga(T18, X66, X67, s2t4_out_ga(T18, X66)) → s2t4_out_ga(s(T18), node(X66, X67, nil))
U2_ga(T16, X52, X53, s2t4_out_ga(T16, X53)) → s2t4_out_ga(s(T16), node(nil, X52, X53))
U1_ga(T14, X38, X39, s2t4_out_ga(T14, X38)) → s2t4_out_ga(s(T14), node(X38, X39, X38))
U21_gaa(T7, T10, T11, s2t4_out_ga(T7, X21)) → goal1_out_gaa(T7, T10, T11)
goal1_in_gaa(T7, T24, T25) → U22_gaa(T7, T24, T25, s2t4_in_ga(T7, T23))
U22_gaa(T7, T24, T25, s2t4_out_ga(T7, T23)) → U23_gaa(T7, T24, T25, tappend38_in_aaa(T23, T24, X81))
tappend38_in_aaa(nil, T30, node(nil, T30, nil)) → tappend38_out_aaa(nil, T30, node(nil, T30, nil))
tappend38_in_aaa(nil, T32, node(node(nil, T32, nil), nil, nil)) → tappend38_out_aaa(nil, T32, node(node(nil, T32, nil), nil, nil))
tappend38_in_aaa(node(nil, T43, T44), T32, node(node(nil, T32, nil), T43, T44)) → tappend38_out_aaa(node(nil, T43, T44), T32, node(node(nil, T32, nil), T43, T44))
tappend38_in_aaa(nil, T57, node(nil, nil, node(nil, T57, nil))) → tappend38_out_aaa(nil, T57, node(nil, nil, node(nil, T57, nil)))
tappend38_in_aaa(node(T70, T71, nil), T57, node(T70, T71, node(nil, T57, nil))) → tappend38_out_aaa(node(T70, T71, nil), T57, node(T70, T71, node(nil, T57, nil)))
tappend38_in_aaa(nil, T89, node(X217, nil, nil)) → U4_aaa(T89, X217, tappend38_in_gaa(nil, T89, X217))
tappend38_in_gaa(nil, T30, node(nil, T30, nil)) → tappend38_out_gaa(nil, T30, node(nil, T30, nil))
tappend38_in_gaa(nil, T32, node(node(nil, T32, nil), nil, nil)) → tappend38_out_gaa(nil, T32, node(node(nil, T32, nil), nil, nil))
tappend38_in_gaa(node(nil, T43, T44), T32, node(node(nil, T32, nil), T43, T44)) → tappend38_out_gaa(node(nil, T43, T44), T32, node(node(nil, T32, nil), T43, T44))
tappend38_in_gaa(nil, T57, node(nil, nil, node(nil, T57, nil))) → tappend38_out_gaa(nil, T57, node(nil, nil, node(nil, T57, nil)))
tappend38_in_gaa(node(T70, T71, nil), T57, node(T70, T71, node(nil, T57, nil))) → tappend38_out_gaa(node(T70, T71, nil), T57, node(T70, T71, node(nil, T57, nil)))
tappend38_in_gaa(nil, T89, node(X217, nil, nil)) → U4_gaa(T89, X217, tappend38_in_gaa(nil, T89, X217))
tappend38_in_gaa(node(T107, T105, T106), T108, node(X217, T105, T106)) → U5_gaa(T107, T105, T106, T108, X217, tappend38_in_gaa(T107, T108, X217))
tappend38_in_gaa(node(T126, T124, T125), T127, node(X217, T124, T125)) → U6_gaa(T126, T124, T125, T127, X217, tappend38_in_gaa(T126, T127, X217))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, X300)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, X300))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X313, nil, nil))) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X313, nil, nil)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(nil, T160, T161)), T145, node(node(nil, T145, nil), T146, node(X313, T160, T161))) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(nil, T160, T161)), T145, node(node(nil, T145, nil), T146, node(X313, T160, T161)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X370))) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X370)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T186, T187, nil)), T145, node(node(nil, T145, nil), T146, node(T186, T187, X370))) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T186, T187, nil)), T145, node(node(nil, T145, nil), T146, node(T186, T187, X370)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X432, nil, nil))) → U7_gaa(T145, T146, X432, tappend151_in_gaa(nil, X431, X432))
tappend151_in_gaa(nil, X300, X300) → tappend151_out_gaa(nil, X300, X300)
tappend151_in_gaa(nil, X313, node(X313, nil, nil)) → tappend151_out_gaa(nil, X313, node(X313, nil, nil))
tappend151_in_gaa(node(nil, T160, T161), X313, node(X313, T160, T161)) → tappend151_out_gaa(node(nil, T160, T161), X313, node(X313, T160, T161))
tappend151_in_gaa(nil, X370, node(nil, nil, X370)) → tappend151_out_gaa(nil, X370, node(nil, nil, X370))
tappend151_in_gaa(node(T186, T187, nil), X370, node(T186, T187, X370)) → tappend151_out_gaa(node(T186, T187, nil), X370, node(T186, T187, X370))
tappend151_in_gaa(nil, X431, node(X432, nil, nil)) → U13_gaa(X431, X432, tappend151_in_gaa(nil, X431, X432))
tappend151_in_gaa(node(T218, T216, T217), X431, node(X432, T216, T217)) → U14_gaa(T218, T216, T217, X431, X432, tappend151_in_gaa(T218, X431, X432))
tappend151_in_gaa(node(T234, T232, T233), X431, node(X432, T232, T233)) → U15_gaa(T234, T232, T233, X431, X432, tappend151_in_gaa(T234, X431, X432))
tappend151_in_gaa(nil, nil, node(nil, nil, X489)) → U16_gaa(X489, tappend151_in_gaa(nil, X486, X489))
tappend151_in_gaa(node(T249, T250, T252), T249, node(T249, T250, X489)) → U17_gaa(T249, T250, T252, X489, tappend151_in_gaa(T252, X486, X489))
tappend151_in_gaa(node(T265, T266, T268), T265, node(T265, T266, X489)) → U18_gaa(T265, T266, T268, X489, tappend151_in_gaa(T268, X486, X489))
U18_gaa(T265, T266, T268, X489, tappend151_out_gaa(T268, X486, X489)) → tappend151_out_gaa(node(T265, T266, T268), T265, node(T265, T266, X489))
U17_gaa(T249, T250, T252, X489, tappend151_out_gaa(T252, X486, X489)) → tappend151_out_gaa(node(T249, T250, T252), T249, node(T249, T250, X489))
U16_gaa(X489, tappend151_out_gaa(nil, X486, X489)) → tappend151_out_gaa(nil, nil, node(nil, nil, X489))
U15_gaa(T234, T232, T233, X431, X432, tappend151_out_gaa(T234, X431, X432)) → tappend151_out_gaa(node(T234, T232, T233), X431, node(X432, T232, T233))
U14_gaa(T218, T216, T217, X431, X432, tappend151_out_gaa(T218, X431, X432)) → tappend151_out_gaa(node(T218, T216, T217), X431, node(X432, T216, T217))
U13_gaa(X431, X432, tappend151_out_gaa(nil, X431, X432)) → tappend151_out_gaa(nil, X431, node(X432, nil, nil))
U7_gaa(T145, T146, X432, tappend151_out_gaa(nil, X431, X432)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X432, nil, nil)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T218, T216, T217)), T145, node(node(nil, T145, nil), T146, node(X432, T216, T217))) → U8_gaa(T145, T146, T218, T216, T217, X432, tappend151_in_gaa(T218, X431, X432))
U8_gaa(T145, T146, T218, T216, T217, X432, tappend151_out_gaa(T218, X431, X432)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T218, T216, T217)), T145, node(node(nil, T145, nil), T146, node(X432, T216, T217)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T234, T232, T233)), T145, node(node(nil, T145, nil), T146, node(X432, T232, T233))) → U9_gaa(T145, T146, T234, T232, T233, X432, tappend151_in_gaa(T234, X431, X432))
U9_gaa(T145, T146, T234, T232, T233, X432, tappend151_out_gaa(T234, X431, X432)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T234, T232, T233)), T145, node(node(nil, T145, nil), T146, node(X432, T232, T233)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X489))) → U10_gaa(T145, T146, X489, tappend151_in_gaa(nil, X486, X489))
U10_gaa(T145, T146, X489, tappend151_out_gaa(nil, X486, X489)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X489)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T249, T250, T252)), T145, node(node(nil, T145, nil), T146, node(T249, T250, X489))) → U11_gaa(T145, T146, T249, T250, T252, X489, tappend151_in_gaa(T252, X486, X489))
U11_gaa(T145, T146, T249, T250, T252, X489, tappend151_out_gaa(T252, X486, X489)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T249, T250, T252)), T145, node(node(nil, T145, nil), T146, node(T249, T250, X489)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T265, T266, T268)), T145, node(node(nil, T145, nil), T146, node(T265, T266, X489))) → U12_gaa(T145, T146, T265, T266, T268, X489, tappend151_in_gaa(T268, X486, X489))
U12_gaa(T145, T146, T265, T266, T268, X489, tappend151_out_gaa(T268, X486, X489)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T265, T266, T268)), T145, node(node(nil, T145, nil), T146, node(T265, T266, X489)))
U6_gaa(T126, T124, T125, T127, X217, tappend38_out_gaa(T126, T127, X217)) → tappend38_out_gaa(node(T126, T124, T125), T127, node(X217, T124, T125))
U5_gaa(T107, T105, T106, T108, X217, tappend38_out_gaa(T107, T108, X217)) → tappend38_out_gaa(node(T107, T105, T106), T108, node(X217, T105, T106))
U4_gaa(T89, X217, tappend38_out_gaa(nil, T89, X217)) → tappend38_out_gaa(nil, T89, node(X217, nil, nil))
U4_aaa(T89, X217, tappend38_out_gaa(nil, T89, X217)) → tappend38_out_aaa(nil, T89, node(X217, nil, nil))
tappend38_in_aaa(node(T107, T105, T106), T108, node(X217, T105, T106)) → U5_aaa(T107, T105, T106, T108, X217, tappend38_in_aaa(T107, T108, X217))
tappend38_in_aaa(node(T126, T124, T125), T127, node(X217, T124, T125)) → U6_aaa(T126, T124, T125, T127, X217, tappend38_in_aaa(T126, T127, X217))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, X300)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, X300))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X313, nil, nil))) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X313, nil, nil)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(nil, T160, T161)), T145, node(node(nil, T145, nil), T146, node(X313, T160, T161))) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(nil, T160, T161)), T145, node(node(nil, T145, nil), T146, node(X313, T160, T161)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X370))) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X370)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T186, T187, nil)), T145, node(node(nil, T145, nil), T146, node(T186, T187, X370))) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T186, T187, nil)), T145, node(node(nil, T145, nil), T146, node(T186, T187, X370)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X432, nil, nil))) → U7_aaa(T145, T146, X432, tappend151_in_gaa(nil, X431, X432))
U7_aaa(T145, T146, X432, tappend151_out_gaa(nil, X431, X432)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X432, nil, nil)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T218, T216, T217)), T145, node(node(nil, T145, nil), T146, node(X432, T216, T217))) → U8_aaa(T145, T146, T218, T216, T217, X432, tappend151_in_aaa(T218, X431, X432))
tappend151_in_aaa(nil, X300, X300) → tappend151_out_aaa(nil, X300, X300)
tappend151_in_aaa(nil, X313, node(X313, nil, nil)) → tappend151_out_aaa(nil, X313, node(X313, nil, nil))
tappend151_in_aaa(node(nil, T160, T161), X313, node(X313, T160, T161)) → tappend151_out_aaa(node(nil, T160, T161), X313, node(X313, T160, T161))
tappend151_in_aaa(nil, X370, node(nil, nil, X370)) → tappend151_out_aaa(nil, X370, node(nil, nil, X370))
tappend151_in_aaa(node(T186, T187, nil), X370, node(T186, T187, X370)) → tappend151_out_aaa(node(T186, T187, nil), X370, node(T186, T187, X370))
tappend151_in_aaa(nil, X431, node(X432, nil, nil)) → U13_aaa(X431, X432, tappend151_in_gaa(nil, X431, X432))
U13_aaa(X431, X432, tappend151_out_gaa(nil, X431, X432)) → tappend151_out_aaa(nil, X431, node(X432, nil, nil))
tappend151_in_aaa(node(T218, T216, T217), X431, node(X432, T216, T217)) → U14_aaa(T218, T216, T217, X431, X432, tappend151_in_aaa(T218, X431, X432))
tappend151_in_aaa(node(T234, T232, T233), X431, node(X432, T232, T233)) → U15_aaa(T234, T232, T233, X431, X432, tappend151_in_aaa(T234, X431, X432))
tappend151_in_aaa(nil, nil, node(nil, nil, X489)) → U16_aaa(X489, tappend151_in_gaa(nil, X486, X489))
U16_aaa(X489, tappend151_out_gaa(nil, X486, X489)) → tappend151_out_aaa(nil, nil, node(nil, nil, X489))
tappend151_in_aaa(node(T249, T250, T252), T249, node(T249, T250, X489)) → U17_aaa(T249, T250, T252, X489, tappend151_in_aaa(T252, X486, X489))
tappend151_in_aaa(node(T265, T266, T268), T265, node(T265, T266, X489)) → U18_aaa(T265, T266, T268, X489, tappend151_in_aaa(T268, X486, X489))
U18_aaa(T265, T266, T268, X489, tappend151_out_aaa(T268, X486, X489)) → tappend151_out_aaa(node(T265, T266, T268), T265, node(T265, T266, X489))
U17_aaa(T249, T250, T252, X489, tappend151_out_aaa(T252, X486, X489)) → tappend151_out_aaa(node(T249, T250, T252), T249, node(T249, T250, X489))
U15_aaa(T234, T232, T233, X431, X432, tappend151_out_aaa(T234, X431, X432)) → tappend151_out_aaa(node(T234, T232, T233), X431, node(X432, T232, T233))
U14_aaa(T218, T216, T217, X431, X432, tappend151_out_aaa(T218, X431, X432)) → tappend151_out_aaa(node(T218, T216, T217), X431, node(X432, T216, T217))
U8_aaa(T145, T146, T218, T216, T217, X432, tappend151_out_aaa(T218, X431, X432)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T218, T216, T217)), T145, node(node(nil, T145, nil), T146, node(X432, T216, T217)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T234, T232, T233)), T145, node(node(nil, T145, nil), T146, node(X432, T232, T233))) → U9_aaa(T145, T146, T234, T232, T233, X432, tappend151_in_aaa(T234, X431, X432))
U9_aaa(T145, T146, T234, T232, T233, X432, tappend151_out_aaa(T234, X431, X432)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T234, T232, T233)), T145, node(node(nil, T145, nil), T146, node(X432, T232, T233)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X489))) → U10_aaa(T145, T146, X489, tappend151_in_gaa(nil, X486, X489))
U10_aaa(T145, T146, X489, tappend151_out_gaa(nil, X486, X489)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X489)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T249, T250, T252)), T145, node(node(nil, T145, nil), T146, node(T249, T250, X489))) → U11_aaa(T145, T146, T249, T250, T252, X489, tappend151_in_aaa(T252, X486, X489))
U11_aaa(T145, T146, T249, T250, T252, X489, tappend151_out_aaa(T252, X486, X489)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T249, T250, T252)), T145, node(node(nil, T145, nil), T146, node(T249, T250, X489)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T265, T266, T268)), T145, node(node(nil, T145, nil), T146, node(T265, T266, X489))) → U12_aaa(T145, T146, T265, T266, T268, X489, tappend151_in_aaa(T268, X486, X489))
U12_aaa(T145, T146, T265, T266, T268, X489, tappend151_out_aaa(T268, X486, X489)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T265, T266, T268)), T145, node(node(nil, T145, nil), T146, node(T265, T266, X489)))
U6_aaa(T126, T124, T125, T127, X217, tappend38_out_aaa(T126, T127, X217)) → tappend38_out_aaa(node(T126, T124, T125), T127, node(X217, T124, T125))
U5_aaa(T107, T105, T106, T108, X217, tappend38_out_aaa(T107, T108, X217)) → tappend38_out_aaa(node(T107, T105, T106), T108, node(X217, T105, T106))
U23_gaa(T7, T24, T25, tappend38_out_aaa(T23, T24, X81)) → goal1_out_gaa(T7, T24, T25)
goal1_in_gaa(T7, T24, T269) → U24_gaa(T7, T24, T269, s2t4_in_ga(T7, T23))
U24_gaa(T7, T24, T269, s2t4_out_ga(T7, T23)) → U25_gaa(T7, T24, T269, tappend38_in_aaa(T23, T24, node(nil, T269, nil)))
U25_gaa(T7, T24, T269, tappend38_out_aaa(T23, T24, node(nil, T269, nil))) → goal1_out_gaa(T7, T24, T269)
goal1_in_gaa(T7, T24, T274) → U26_gaa(T7, T24, T274, s2t4_in_ga(T7, T23))
U26_gaa(T7, T24, T274, s2t4_out_ga(T7, T23)) → U27_gaa(T7, T24, T274, tappend38_in_aaa(T23, T24, node(T275, T272, T273)))
U27_gaa(T7, T24, T274, tappend38_out_aaa(T23, T24, node(T275, T272, T273))) → U28_gaa(T7, T24, T274, tlast39_in_aa(T274, T275))
tlast39_in_aa(T269, node(nil, T269, nil)) → tlast39_out_aa(T269, node(nil, T269, nil))
tlast39_in_aa(T274, node(T275, T272, T273)) → U19_aa(T274, T275, T272, T273, tlast39_in_aa(T274, T275))
tlast39_in_aa(T280, node(T277, T278, T281)) → U20_aa(T280, T277, T278, T281, tlast39_in_aa(T280, T281))
U20_aa(T280, T277, T278, T281, tlast39_out_aa(T280, T281)) → tlast39_out_aa(T280, node(T277, T278, T281))
U19_aa(T274, T275, T272, T273, tlast39_out_aa(T274, T275)) → tlast39_out_aa(T274, node(T275, T272, T273))
U28_gaa(T7, T24, T274, tlast39_out_aa(T274, T275)) → goal1_out_gaa(T7, T24, T274)
goal1_in_gaa(T7, T24, T280) → U29_gaa(T7, T24, T280, s2t4_in_ga(T7, T23))
U29_gaa(T7, T24, T280, s2t4_out_ga(T7, T23)) → U30_gaa(T7, T24, T280, tappend38_in_aaa(T23, T24, node(T277, T278, T281)))
U30_gaa(T7, T24, T280, tappend38_out_aaa(T23, T24, node(T277, T278, T281))) → U31_gaa(T7, T24, T280, tlast39_in_aa(T280, T281))
U31_gaa(T7, T24, T280, tlast39_out_aa(T280, T281)) → goal1_out_gaa(T7, T24, T280)
TAPPEND38_IN_GAA(nil, T89, node(X217, nil, nil)) → TAPPEND38_IN_GAA(nil, T89, X217)
TAPPEND38_IN_GAA(nil) → TAPPEND38_IN_GAA(nil)
TAPPEND38_IN_GAA(node(T107, T105, T106), T108, node(X217, T105, T106)) → TAPPEND38_IN_GAA(T107, T108, X217)
goal1_in_gaa(T7, T10, T11) → U21_gaa(T7, T10, T11, s2t4_in_ga(T7, X21))
s2t4_in_ga(0, nil) → s2t4_out_ga(0, nil)
s2t4_in_ga(s(T14), node(X38, X39, X38)) → U1_ga(T14, X38, X39, s2t4_in_ga(T14, X38))
s2t4_in_ga(s(T16), node(nil, X52, X53)) → U2_ga(T16, X52, X53, s2t4_in_ga(T16, X53))
s2t4_in_ga(s(T18), node(X66, X67, nil)) → U3_ga(T18, X66, X67, s2t4_in_ga(T18, X66))
s2t4_in_ga(T19, node(nil, X74, nil)) → s2t4_out_ga(T19, node(nil, X74, nil))
U3_ga(T18, X66, X67, s2t4_out_ga(T18, X66)) → s2t4_out_ga(s(T18), node(X66, X67, nil))
U2_ga(T16, X52, X53, s2t4_out_ga(T16, X53)) → s2t4_out_ga(s(T16), node(nil, X52, X53))
U1_ga(T14, X38, X39, s2t4_out_ga(T14, X38)) → s2t4_out_ga(s(T14), node(X38, X39, X38))
U21_gaa(T7, T10, T11, s2t4_out_ga(T7, X21)) → goal1_out_gaa(T7, T10, T11)
goal1_in_gaa(T7, T24, T25) → U22_gaa(T7, T24, T25, s2t4_in_ga(T7, T23))
U22_gaa(T7, T24, T25, s2t4_out_ga(T7, T23)) → U23_gaa(T7, T24, T25, tappend38_in_aaa(T23, T24, X81))
tappend38_in_aaa(nil, T30, node(nil, T30, nil)) → tappend38_out_aaa(nil, T30, node(nil, T30, nil))
tappend38_in_aaa(nil, T32, node(node(nil, T32, nil), nil, nil)) → tappend38_out_aaa(nil, T32, node(node(nil, T32, nil), nil, nil))
tappend38_in_aaa(node(nil, T43, T44), T32, node(node(nil, T32, nil), T43, T44)) → tappend38_out_aaa(node(nil, T43, T44), T32, node(node(nil, T32, nil), T43, T44))
tappend38_in_aaa(nil, T57, node(nil, nil, node(nil, T57, nil))) → tappend38_out_aaa(nil, T57, node(nil, nil, node(nil, T57, nil)))
tappend38_in_aaa(node(T70, T71, nil), T57, node(T70, T71, node(nil, T57, nil))) → tappend38_out_aaa(node(T70, T71, nil), T57, node(T70, T71, node(nil, T57, nil)))
tappend38_in_aaa(nil, T89, node(X217, nil, nil)) → U4_aaa(T89, X217, tappend38_in_gaa(nil, T89, X217))
tappend38_in_gaa(nil, T30, node(nil, T30, nil)) → tappend38_out_gaa(nil, T30, node(nil, T30, nil))
tappend38_in_gaa(nil, T32, node(node(nil, T32, nil), nil, nil)) → tappend38_out_gaa(nil, T32, node(node(nil, T32, nil), nil, nil))
tappend38_in_gaa(node(nil, T43, T44), T32, node(node(nil, T32, nil), T43, T44)) → tappend38_out_gaa(node(nil, T43, T44), T32, node(node(nil, T32, nil), T43, T44))
tappend38_in_gaa(nil, T57, node(nil, nil, node(nil, T57, nil))) → tappend38_out_gaa(nil, T57, node(nil, nil, node(nil, T57, nil)))
tappend38_in_gaa(node(T70, T71, nil), T57, node(T70, T71, node(nil, T57, nil))) → tappend38_out_gaa(node(T70, T71, nil), T57, node(T70, T71, node(nil, T57, nil)))
tappend38_in_gaa(nil, T89, node(X217, nil, nil)) → U4_gaa(T89, X217, tappend38_in_gaa(nil, T89, X217))
tappend38_in_gaa(node(T107, T105, T106), T108, node(X217, T105, T106)) → U5_gaa(T107, T105, T106, T108, X217, tappend38_in_gaa(T107, T108, X217))
tappend38_in_gaa(node(T126, T124, T125), T127, node(X217, T124, T125)) → U6_gaa(T126, T124, T125, T127, X217, tappend38_in_gaa(T126, T127, X217))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, X300)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, X300))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X313, nil, nil))) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X313, nil, nil)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(nil, T160, T161)), T145, node(node(nil, T145, nil), T146, node(X313, T160, T161))) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(nil, T160, T161)), T145, node(node(nil, T145, nil), T146, node(X313, T160, T161)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X370))) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X370)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T186, T187, nil)), T145, node(node(nil, T145, nil), T146, node(T186, T187, X370))) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T186, T187, nil)), T145, node(node(nil, T145, nil), T146, node(T186, T187, X370)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X432, nil, nil))) → U7_gaa(T145, T146, X432, tappend151_in_gaa(nil, X431, X432))
tappend151_in_gaa(nil, X300, X300) → tappend151_out_gaa(nil, X300, X300)
tappend151_in_gaa(nil, X313, node(X313, nil, nil)) → tappend151_out_gaa(nil, X313, node(X313, nil, nil))
tappend151_in_gaa(node(nil, T160, T161), X313, node(X313, T160, T161)) → tappend151_out_gaa(node(nil, T160, T161), X313, node(X313, T160, T161))
tappend151_in_gaa(nil, X370, node(nil, nil, X370)) → tappend151_out_gaa(nil, X370, node(nil, nil, X370))
tappend151_in_gaa(node(T186, T187, nil), X370, node(T186, T187, X370)) → tappend151_out_gaa(node(T186, T187, nil), X370, node(T186, T187, X370))
tappend151_in_gaa(nil, X431, node(X432, nil, nil)) → U13_gaa(X431, X432, tappend151_in_gaa(nil, X431, X432))
tappend151_in_gaa(node(T218, T216, T217), X431, node(X432, T216, T217)) → U14_gaa(T218, T216, T217, X431, X432, tappend151_in_gaa(T218, X431, X432))
tappend151_in_gaa(node(T234, T232, T233), X431, node(X432, T232, T233)) → U15_gaa(T234, T232, T233, X431, X432, tappend151_in_gaa(T234, X431, X432))
tappend151_in_gaa(nil, nil, node(nil, nil, X489)) → U16_gaa(X489, tappend151_in_gaa(nil, X486, X489))
tappend151_in_gaa(node(T249, T250, T252), T249, node(T249, T250, X489)) → U17_gaa(T249, T250, T252, X489, tappend151_in_gaa(T252, X486, X489))
tappend151_in_gaa(node(T265, T266, T268), T265, node(T265, T266, X489)) → U18_gaa(T265, T266, T268, X489, tappend151_in_gaa(T268, X486, X489))
U18_gaa(T265, T266, T268, X489, tappend151_out_gaa(T268, X486, X489)) → tappend151_out_gaa(node(T265, T266, T268), T265, node(T265, T266, X489))
U17_gaa(T249, T250, T252, X489, tappend151_out_gaa(T252, X486, X489)) → tappend151_out_gaa(node(T249, T250, T252), T249, node(T249, T250, X489))
U16_gaa(X489, tappend151_out_gaa(nil, X486, X489)) → tappend151_out_gaa(nil, nil, node(nil, nil, X489))
U15_gaa(T234, T232, T233, X431, X432, tappend151_out_gaa(T234, X431, X432)) → tappend151_out_gaa(node(T234, T232, T233), X431, node(X432, T232, T233))
U14_gaa(T218, T216, T217, X431, X432, tappend151_out_gaa(T218, X431, X432)) → tappend151_out_gaa(node(T218, T216, T217), X431, node(X432, T216, T217))
U13_gaa(X431, X432, tappend151_out_gaa(nil, X431, X432)) → tappend151_out_gaa(nil, X431, node(X432, nil, nil))
U7_gaa(T145, T146, X432, tappend151_out_gaa(nil, X431, X432)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X432, nil, nil)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T218, T216, T217)), T145, node(node(nil, T145, nil), T146, node(X432, T216, T217))) → U8_gaa(T145, T146, T218, T216, T217, X432, tappend151_in_gaa(T218, X431, X432))
U8_gaa(T145, T146, T218, T216, T217, X432, tappend151_out_gaa(T218, X431, X432)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T218, T216, T217)), T145, node(node(nil, T145, nil), T146, node(X432, T216, T217)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T234, T232, T233)), T145, node(node(nil, T145, nil), T146, node(X432, T232, T233))) → U9_gaa(T145, T146, T234, T232, T233, X432, tappend151_in_gaa(T234, X431, X432))
U9_gaa(T145, T146, T234, T232, T233, X432, tappend151_out_gaa(T234, X431, X432)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T234, T232, T233)), T145, node(node(nil, T145, nil), T146, node(X432, T232, T233)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X489))) → U10_gaa(T145, T146, X489, tappend151_in_gaa(nil, X486, X489))
U10_gaa(T145, T146, X489, tappend151_out_gaa(nil, X486, X489)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X489)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T249, T250, T252)), T145, node(node(nil, T145, nil), T146, node(T249, T250, X489))) → U11_gaa(T145, T146, T249, T250, T252, X489, tappend151_in_gaa(T252, X486, X489))
U11_gaa(T145, T146, T249, T250, T252, X489, tappend151_out_gaa(T252, X486, X489)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T249, T250, T252)), T145, node(node(nil, T145, nil), T146, node(T249, T250, X489)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T265, T266, T268)), T145, node(node(nil, T145, nil), T146, node(T265, T266, X489))) → U12_gaa(T145, T146, T265, T266, T268, X489, tappend151_in_gaa(T268, X486, X489))
U12_gaa(T145, T146, T265, T266, T268, X489, tappend151_out_gaa(T268, X486, X489)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T265, T266, T268)), T145, node(node(nil, T145, nil), T146, node(T265, T266, X489)))
U6_gaa(T126, T124, T125, T127, X217, tappend38_out_gaa(T126, T127, X217)) → tappend38_out_gaa(node(T126, T124, T125), T127, node(X217, T124, T125))
U5_gaa(T107, T105, T106, T108, X217, tappend38_out_gaa(T107, T108, X217)) → tappend38_out_gaa(node(T107, T105, T106), T108, node(X217, T105, T106))
U4_gaa(T89, X217, tappend38_out_gaa(nil, T89, X217)) → tappend38_out_gaa(nil, T89, node(X217, nil, nil))
U4_aaa(T89, X217, tappend38_out_gaa(nil, T89, X217)) → tappend38_out_aaa(nil, T89, node(X217, nil, nil))
tappend38_in_aaa(node(T107, T105, T106), T108, node(X217, T105, T106)) → U5_aaa(T107, T105, T106, T108, X217, tappend38_in_aaa(T107, T108, X217))
tappend38_in_aaa(node(T126, T124, T125), T127, node(X217, T124, T125)) → U6_aaa(T126, T124, T125, T127, X217, tappend38_in_aaa(T126, T127, X217))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, X300)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, X300))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X313, nil, nil))) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X313, nil, nil)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(nil, T160, T161)), T145, node(node(nil, T145, nil), T146, node(X313, T160, T161))) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(nil, T160, T161)), T145, node(node(nil, T145, nil), T146, node(X313, T160, T161)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X370))) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X370)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T186, T187, nil)), T145, node(node(nil, T145, nil), T146, node(T186, T187, X370))) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T186, T187, nil)), T145, node(node(nil, T145, nil), T146, node(T186, T187, X370)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X432, nil, nil))) → U7_aaa(T145, T146, X432, tappend151_in_gaa(nil, X431, X432))
U7_aaa(T145, T146, X432, tappend151_out_gaa(nil, X431, X432)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X432, nil, nil)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T218, T216, T217)), T145, node(node(nil, T145, nil), T146, node(X432, T216, T217))) → U8_aaa(T145, T146, T218, T216, T217, X432, tappend151_in_aaa(T218, X431, X432))
tappend151_in_aaa(nil, X300, X300) → tappend151_out_aaa(nil, X300, X300)
tappend151_in_aaa(nil, X313, node(X313, nil, nil)) → tappend151_out_aaa(nil, X313, node(X313, nil, nil))
tappend151_in_aaa(node(nil, T160, T161), X313, node(X313, T160, T161)) → tappend151_out_aaa(node(nil, T160, T161), X313, node(X313, T160, T161))
tappend151_in_aaa(nil, X370, node(nil, nil, X370)) → tappend151_out_aaa(nil, X370, node(nil, nil, X370))
tappend151_in_aaa(node(T186, T187, nil), X370, node(T186, T187, X370)) → tappend151_out_aaa(node(T186, T187, nil), X370, node(T186, T187, X370))
tappend151_in_aaa(nil, X431, node(X432, nil, nil)) → U13_aaa(X431, X432, tappend151_in_gaa(nil, X431, X432))
U13_aaa(X431, X432, tappend151_out_gaa(nil, X431, X432)) → tappend151_out_aaa(nil, X431, node(X432, nil, nil))
tappend151_in_aaa(node(T218, T216, T217), X431, node(X432, T216, T217)) → U14_aaa(T218, T216, T217, X431, X432, tappend151_in_aaa(T218, X431, X432))
tappend151_in_aaa(node(T234, T232, T233), X431, node(X432, T232, T233)) → U15_aaa(T234, T232, T233, X431, X432, tappend151_in_aaa(T234, X431, X432))
tappend151_in_aaa(nil, nil, node(nil, nil, X489)) → U16_aaa(X489, tappend151_in_gaa(nil, X486, X489))
U16_aaa(X489, tappend151_out_gaa(nil, X486, X489)) → tappend151_out_aaa(nil, nil, node(nil, nil, X489))
tappend151_in_aaa(node(T249, T250, T252), T249, node(T249, T250, X489)) → U17_aaa(T249, T250, T252, X489, tappend151_in_aaa(T252, X486, X489))
tappend151_in_aaa(node(T265, T266, T268), T265, node(T265, T266, X489)) → U18_aaa(T265, T266, T268, X489, tappend151_in_aaa(T268, X486, X489))
U18_aaa(T265, T266, T268, X489, tappend151_out_aaa(T268, X486, X489)) → tappend151_out_aaa(node(T265, T266, T268), T265, node(T265, T266, X489))
U17_aaa(T249, T250, T252, X489, tappend151_out_aaa(T252, X486, X489)) → tappend151_out_aaa(node(T249, T250, T252), T249, node(T249, T250, X489))
U15_aaa(T234, T232, T233, X431, X432, tappend151_out_aaa(T234, X431, X432)) → tappend151_out_aaa(node(T234, T232, T233), X431, node(X432, T232, T233))
U14_aaa(T218, T216, T217, X431, X432, tappend151_out_aaa(T218, X431, X432)) → tappend151_out_aaa(node(T218, T216, T217), X431, node(X432, T216, T217))
U8_aaa(T145, T146, T218, T216, T217, X432, tappend151_out_aaa(T218, X431, X432)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T218, T216, T217)), T145, node(node(nil, T145, nil), T146, node(X432, T216, T217)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T234, T232, T233)), T145, node(node(nil, T145, nil), T146, node(X432, T232, T233))) → U9_aaa(T145, T146, T234, T232, T233, X432, tappend151_in_aaa(T234, X431, X432))
U9_aaa(T145, T146, T234, T232, T233, X432, tappend151_out_aaa(T234, X431, X432)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T234, T232, T233)), T145, node(node(nil, T145, nil), T146, node(X432, T232, T233)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X489))) → U10_aaa(T145, T146, X489, tappend151_in_gaa(nil, X486, X489))
U10_aaa(T145, T146, X489, tappend151_out_gaa(nil, X486, X489)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X489)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T249, T250, T252)), T145, node(node(nil, T145, nil), T146, node(T249, T250, X489))) → U11_aaa(T145, T146, T249, T250, T252, X489, tappend151_in_aaa(T252, X486, X489))
U11_aaa(T145, T146, T249, T250, T252, X489, tappend151_out_aaa(T252, X486, X489)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T249, T250, T252)), T145, node(node(nil, T145, nil), T146, node(T249, T250, X489)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T265, T266, T268)), T145, node(node(nil, T145, nil), T146, node(T265, T266, X489))) → U12_aaa(T145, T146, T265, T266, T268, X489, tappend151_in_aaa(T268, X486, X489))
U12_aaa(T145, T146, T265, T266, T268, X489, tappend151_out_aaa(T268, X486, X489)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T265, T266, T268)), T145, node(node(nil, T145, nil), T146, node(T265, T266, X489)))
U6_aaa(T126, T124, T125, T127, X217, tappend38_out_aaa(T126, T127, X217)) → tappend38_out_aaa(node(T126, T124, T125), T127, node(X217, T124, T125))
U5_aaa(T107, T105, T106, T108, X217, tappend38_out_aaa(T107, T108, X217)) → tappend38_out_aaa(node(T107, T105, T106), T108, node(X217, T105, T106))
U23_gaa(T7, T24, T25, tappend38_out_aaa(T23, T24, X81)) → goal1_out_gaa(T7, T24, T25)
goal1_in_gaa(T7, T24, T269) → U24_gaa(T7, T24, T269, s2t4_in_ga(T7, T23))
U24_gaa(T7, T24, T269, s2t4_out_ga(T7, T23)) → U25_gaa(T7, T24, T269, tappend38_in_aaa(T23, T24, node(nil, T269, nil)))
U25_gaa(T7, T24, T269, tappend38_out_aaa(T23, T24, node(nil, T269, nil))) → goal1_out_gaa(T7, T24, T269)
goal1_in_gaa(T7, T24, T274) → U26_gaa(T7, T24, T274, s2t4_in_ga(T7, T23))
U26_gaa(T7, T24, T274, s2t4_out_ga(T7, T23)) → U27_gaa(T7, T24, T274, tappend38_in_aaa(T23, T24, node(T275, T272, T273)))
U27_gaa(T7, T24, T274, tappend38_out_aaa(T23, T24, node(T275, T272, T273))) → U28_gaa(T7, T24, T274, tlast39_in_aa(T274, T275))
tlast39_in_aa(T269, node(nil, T269, nil)) → tlast39_out_aa(T269, node(nil, T269, nil))
tlast39_in_aa(T274, node(T275, T272, T273)) → U19_aa(T274, T275, T272, T273, tlast39_in_aa(T274, T275))
tlast39_in_aa(T280, node(T277, T278, T281)) → U20_aa(T280, T277, T278, T281, tlast39_in_aa(T280, T281))
U20_aa(T280, T277, T278, T281, tlast39_out_aa(T280, T281)) → tlast39_out_aa(T280, node(T277, T278, T281))
U19_aa(T274, T275, T272, T273, tlast39_out_aa(T274, T275)) → tlast39_out_aa(T274, node(T275, T272, T273))
U28_gaa(T7, T24, T274, tlast39_out_aa(T274, T275)) → goal1_out_gaa(T7, T24, T274)
goal1_in_gaa(T7, T24, T280) → U29_gaa(T7, T24, T280, s2t4_in_ga(T7, T23))
U29_gaa(T7, T24, T280, s2t4_out_ga(T7, T23)) → U30_gaa(T7, T24, T280, tappend38_in_aaa(T23, T24, node(T277, T278, T281)))
U30_gaa(T7, T24, T280, tappend38_out_aaa(T23, T24, node(T277, T278, T281))) → U31_gaa(T7, T24, T280, tlast39_in_aa(T280, T281))
U31_gaa(T7, T24, T280, tlast39_out_aa(T280, T281)) → goal1_out_gaa(T7, T24, T280)
TAPPEND38_IN_GAA(node(T107, T105, T106), T108, node(X217, T105, T106)) → TAPPEND38_IN_GAA(T107, T108, X217)
TAPPEND38_IN_GAA(node(T107, T105, T106)) → TAPPEND38_IN_GAA(T107)
From the DPs we obtained the following set of size-change graphs:
TAPPEND38_IN_AAA(node(T107, T105, T106), T108, node(X217, T105, T106)) → TAPPEND38_IN_AAA(T107, T108, X217)
goal1_in_gaa(T7, T10, T11) → U21_gaa(T7, T10, T11, s2t4_in_ga(T7, X21))
s2t4_in_ga(0, nil) → s2t4_out_ga(0, nil)
s2t4_in_ga(s(T14), node(X38, X39, X38)) → U1_ga(T14, X38, X39, s2t4_in_ga(T14, X38))
s2t4_in_ga(s(T16), node(nil, X52, X53)) → U2_ga(T16, X52, X53, s2t4_in_ga(T16, X53))
s2t4_in_ga(s(T18), node(X66, X67, nil)) → U3_ga(T18, X66, X67, s2t4_in_ga(T18, X66))
s2t4_in_ga(T19, node(nil, X74, nil)) → s2t4_out_ga(T19, node(nil, X74, nil))
U3_ga(T18, X66, X67, s2t4_out_ga(T18, X66)) → s2t4_out_ga(s(T18), node(X66, X67, nil))
U2_ga(T16, X52, X53, s2t4_out_ga(T16, X53)) → s2t4_out_ga(s(T16), node(nil, X52, X53))
U1_ga(T14, X38, X39, s2t4_out_ga(T14, X38)) → s2t4_out_ga(s(T14), node(X38, X39, X38))
U21_gaa(T7, T10, T11, s2t4_out_ga(T7, X21)) → goal1_out_gaa(T7, T10, T11)
goal1_in_gaa(T7, T24, T25) → U22_gaa(T7, T24, T25, s2t4_in_ga(T7, T23))
U22_gaa(T7, T24, T25, s2t4_out_ga(T7, T23)) → U23_gaa(T7, T24, T25, tappend38_in_aaa(T23, T24, X81))
tappend38_in_aaa(nil, T30, node(nil, T30, nil)) → tappend38_out_aaa(nil, T30, node(nil, T30, nil))
tappend38_in_aaa(nil, T32, node(node(nil, T32, nil), nil, nil)) → tappend38_out_aaa(nil, T32, node(node(nil, T32, nil), nil, nil))
tappend38_in_aaa(node(nil, T43, T44), T32, node(node(nil, T32, nil), T43, T44)) → tappend38_out_aaa(node(nil, T43, T44), T32, node(node(nil, T32, nil), T43, T44))
tappend38_in_aaa(nil, T57, node(nil, nil, node(nil, T57, nil))) → tappend38_out_aaa(nil, T57, node(nil, nil, node(nil, T57, nil)))
tappend38_in_aaa(node(T70, T71, nil), T57, node(T70, T71, node(nil, T57, nil))) → tappend38_out_aaa(node(T70, T71, nil), T57, node(T70, T71, node(nil, T57, nil)))
tappend38_in_aaa(nil, T89, node(X217, nil, nil)) → U4_aaa(T89, X217, tappend38_in_gaa(nil, T89, X217))
tappend38_in_gaa(nil, T30, node(nil, T30, nil)) → tappend38_out_gaa(nil, T30, node(nil, T30, nil))
tappend38_in_gaa(nil, T32, node(node(nil, T32, nil), nil, nil)) → tappend38_out_gaa(nil, T32, node(node(nil, T32, nil), nil, nil))
tappend38_in_gaa(node(nil, T43, T44), T32, node(node(nil, T32, nil), T43, T44)) → tappend38_out_gaa(node(nil, T43, T44), T32, node(node(nil, T32, nil), T43, T44))
tappend38_in_gaa(nil, T57, node(nil, nil, node(nil, T57, nil))) → tappend38_out_gaa(nil, T57, node(nil, nil, node(nil, T57, nil)))
tappend38_in_gaa(node(T70, T71, nil), T57, node(T70, T71, node(nil, T57, nil))) → tappend38_out_gaa(node(T70, T71, nil), T57, node(T70, T71, node(nil, T57, nil)))
tappend38_in_gaa(nil, T89, node(X217, nil, nil)) → U4_gaa(T89, X217, tappend38_in_gaa(nil, T89, X217))
tappend38_in_gaa(node(T107, T105, T106), T108, node(X217, T105, T106)) → U5_gaa(T107, T105, T106, T108, X217, tappend38_in_gaa(T107, T108, X217))
tappend38_in_gaa(node(T126, T124, T125), T127, node(X217, T124, T125)) → U6_gaa(T126, T124, T125, T127, X217, tappend38_in_gaa(T126, T127, X217))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, X300)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, X300))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X313, nil, nil))) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X313, nil, nil)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(nil, T160, T161)), T145, node(node(nil, T145, nil), T146, node(X313, T160, T161))) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(nil, T160, T161)), T145, node(node(nil, T145, nil), T146, node(X313, T160, T161)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X370))) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X370)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T186, T187, nil)), T145, node(node(nil, T145, nil), T146, node(T186, T187, X370))) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T186, T187, nil)), T145, node(node(nil, T145, nil), T146, node(T186, T187, X370)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X432, nil, nil))) → U7_gaa(T145, T146, X432, tappend151_in_gaa(nil, X431, X432))
tappend151_in_gaa(nil, X300, X300) → tappend151_out_gaa(nil, X300, X300)
tappend151_in_gaa(nil, X313, node(X313, nil, nil)) → tappend151_out_gaa(nil, X313, node(X313, nil, nil))
tappend151_in_gaa(node(nil, T160, T161), X313, node(X313, T160, T161)) → tappend151_out_gaa(node(nil, T160, T161), X313, node(X313, T160, T161))
tappend151_in_gaa(nil, X370, node(nil, nil, X370)) → tappend151_out_gaa(nil, X370, node(nil, nil, X370))
tappend151_in_gaa(node(T186, T187, nil), X370, node(T186, T187, X370)) → tappend151_out_gaa(node(T186, T187, nil), X370, node(T186, T187, X370))
tappend151_in_gaa(nil, X431, node(X432, nil, nil)) → U13_gaa(X431, X432, tappend151_in_gaa(nil, X431, X432))
tappend151_in_gaa(node(T218, T216, T217), X431, node(X432, T216, T217)) → U14_gaa(T218, T216, T217, X431, X432, tappend151_in_gaa(T218, X431, X432))
tappend151_in_gaa(node(T234, T232, T233), X431, node(X432, T232, T233)) → U15_gaa(T234, T232, T233, X431, X432, tappend151_in_gaa(T234, X431, X432))
tappend151_in_gaa(nil, nil, node(nil, nil, X489)) → U16_gaa(X489, tappend151_in_gaa(nil, X486, X489))
tappend151_in_gaa(node(T249, T250, T252), T249, node(T249, T250, X489)) → U17_gaa(T249, T250, T252, X489, tappend151_in_gaa(T252, X486, X489))
tappend151_in_gaa(node(T265, T266, T268), T265, node(T265, T266, X489)) → U18_gaa(T265, T266, T268, X489, tappend151_in_gaa(T268, X486, X489))
U18_gaa(T265, T266, T268, X489, tappend151_out_gaa(T268, X486, X489)) → tappend151_out_gaa(node(T265, T266, T268), T265, node(T265, T266, X489))
U17_gaa(T249, T250, T252, X489, tappend151_out_gaa(T252, X486, X489)) → tappend151_out_gaa(node(T249, T250, T252), T249, node(T249, T250, X489))
U16_gaa(X489, tappend151_out_gaa(nil, X486, X489)) → tappend151_out_gaa(nil, nil, node(nil, nil, X489))
U15_gaa(T234, T232, T233, X431, X432, tappend151_out_gaa(T234, X431, X432)) → tappend151_out_gaa(node(T234, T232, T233), X431, node(X432, T232, T233))
U14_gaa(T218, T216, T217, X431, X432, tappend151_out_gaa(T218, X431, X432)) → tappend151_out_gaa(node(T218, T216, T217), X431, node(X432, T216, T217))
U13_gaa(X431, X432, tappend151_out_gaa(nil, X431, X432)) → tappend151_out_gaa(nil, X431, node(X432, nil, nil))
U7_gaa(T145, T146, X432, tappend151_out_gaa(nil, X431, X432)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X432, nil, nil)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T218, T216, T217)), T145, node(node(nil, T145, nil), T146, node(X432, T216, T217))) → U8_gaa(T145, T146, T218, T216, T217, X432, tappend151_in_gaa(T218, X431, X432))
U8_gaa(T145, T146, T218, T216, T217, X432, tappend151_out_gaa(T218, X431, X432)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T218, T216, T217)), T145, node(node(nil, T145, nil), T146, node(X432, T216, T217)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T234, T232, T233)), T145, node(node(nil, T145, nil), T146, node(X432, T232, T233))) → U9_gaa(T145, T146, T234, T232, T233, X432, tappend151_in_gaa(T234, X431, X432))
U9_gaa(T145, T146, T234, T232, T233, X432, tappend151_out_gaa(T234, X431, X432)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T234, T232, T233)), T145, node(node(nil, T145, nil), T146, node(X432, T232, T233)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X489))) → U10_gaa(T145, T146, X489, tappend151_in_gaa(nil, X486, X489))
U10_gaa(T145, T146, X489, tappend151_out_gaa(nil, X486, X489)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X489)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T249, T250, T252)), T145, node(node(nil, T145, nil), T146, node(T249, T250, X489))) → U11_gaa(T145, T146, T249, T250, T252, X489, tappend151_in_gaa(T252, X486, X489))
U11_gaa(T145, T146, T249, T250, T252, X489, tappend151_out_gaa(T252, X486, X489)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T249, T250, T252)), T145, node(node(nil, T145, nil), T146, node(T249, T250, X489)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T265, T266, T268)), T145, node(node(nil, T145, nil), T146, node(T265, T266, X489))) → U12_gaa(T145, T146, T265, T266, T268, X489, tappend151_in_gaa(T268, X486, X489))
U12_gaa(T145, T146, T265, T266, T268, X489, tappend151_out_gaa(T268, X486, X489)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T265, T266, T268)), T145, node(node(nil, T145, nil), T146, node(T265, T266, X489)))
U6_gaa(T126, T124, T125, T127, X217, tappend38_out_gaa(T126, T127, X217)) → tappend38_out_gaa(node(T126, T124, T125), T127, node(X217, T124, T125))
U5_gaa(T107, T105, T106, T108, X217, tappend38_out_gaa(T107, T108, X217)) → tappend38_out_gaa(node(T107, T105, T106), T108, node(X217, T105, T106))
U4_gaa(T89, X217, tappend38_out_gaa(nil, T89, X217)) → tappend38_out_gaa(nil, T89, node(X217, nil, nil))
U4_aaa(T89, X217, tappend38_out_gaa(nil, T89, X217)) → tappend38_out_aaa(nil, T89, node(X217, nil, nil))
tappend38_in_aaa(node(T107, T105, T106), T108, node(X217, T105, T106)) → U5_aaa(T107, T105, T106, T108, X217, tappend38_in_aaa(T107, T108, X217))
tappend38_in_aaa(node(T126, T124, T125), T127, node(X217, T124, T125)) → U6_aaa(T126, T124, T125, T127, X217, tappend38_in_aaa(T126, T127, X217))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, X300)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, X300))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X313, nil, nil))) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X313, nil, nil)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(nil, T160, T161)), T145, node(node(nil, T145, nil), T146, node(X313, T160, T161))) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(nil, T160, T161)), T145, node(node(nil, T145, nil), T146, node(X313, T160, T161)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X370))) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X370)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T186, T187, nil)), T145, node(node(nil, T145, nil), T146, node(T186, T187, X370))) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T186, T187, nil)), T145, node(node(nil, T145, nil), T146, node(T186, T187, X370)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X432, nil, nil))) → U7_aaa(T145, T146, X432, tappend151_in_gaa(nil, X431, X432))
U7_aaa(T145, T146, X432, tappend151_out_gaa(nil, X431, X432)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X432, nil, nil)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T218, T216, T217)), T145, node(node(nil, T145, nil), T146, node(X432, T216, T217))) → U8_aaa(T145, T146, T218, T216, T217, X432, tappend151_in_aaa(T218, X431, X432))
tappend151_in_aaa(nil, X300, X300) → tappend151_out_aaa(nil, X300, X300)
tappend151_in_aaa(nil, X313, node(X313, nil, nil)) → tappend151_out_aaa(nil, X313, node(X313, nil, nil))
tappend151_in_aaa(node(nil, T160, T161), X313, node(X313, T160, T161)) → tappend151_out_aaa(node(nil, T160, T161), X313, node(X313, T160, T161))
tappend151_in_aaa(nil, X370, node(nil, nil, X370)) → tappend151_out_aaa(nil, X370, node(nil, nil, X370))
tappend151_in_aaa(node(T186, T187, nil), X370, node(T186, T187, X370)) → tappend151_out_aaa(node(T186, T187, nil), X370, node(T186, T187, X370))
tappend151_in_aaa(nil, X431, node(X432, nil, nil)) → U13_aaa(X431, X432, tappend151_in_gaa(nil, X431, X432))
U13_aaa(X431, X432, tappend151_out_gaa(nil, X431, X432)) → tappend151_out_aaa(nil, X431, node(X432, nil, nil))
tappend151_in_aaa(node(T218, T216, T217), X431, node(X432, T216, T217)) → U14_aaa(T218, T216, T217, X431, X432, tappend151_in_aaa(T218, X431, X432))
tappend151_in_aaa(node(T234, T232, T233), X431, node(X432, T232, T233)) → U15_aaa(T234, T232, T233, X431, X432, tappend151_in_aaa(T234, X431, X432))
tappend151_in_aaa(nil, nil, node(nil, nil, X489)) → U16_aaa(X489, tappend151_in_gaa(nil, X486, X489))
U16_aaa(X489, tappend151_out_gaa(nil, X486, X489)) → tappend151_out_aaa(nil, nil, node(nil, nil, X489))
tappend151_in_aaa(node(T249, T250, T252), T249, node(T249, T250, X489)) → U17_aaa(T249, T250, T252, X489, tappend151_in_aaa(T252, X486, X489))
tappend151_in_aaa(node(T265, T266, T268), T265, node(T265, T266, X489)) → U18_aaa(T265, T266, T268, X489, tappend151_in_aaa(T268, X486, X489))
U18_aaa(T265, T266, T268, X489, tappend151_out_aaa(T268, X486, X489)) → tappend151_out_aaa(node(T265, T266, T268), T265, node(T265, T266, X489))
U17_aaa(T249, T250, T252, X489, tappend151_out_aaa(T252, X486, X489)) → tappend151_out_aaa(node(T249, T250, T252), T249, node(T249, T250, X489))
U15_aaa(T234, T232, T233, X431, X432, tappend151_out_aaa(T234, X431, X432)) → tappend151_out_aaa(node(T234, T232, T233), X431, node(X432, T232, T233))
U14_aaa(T218, T216, T217, X431, X432, tappend151_out_aaa(T218, X431, X432)) → tappend151_out_aaa(node(T218, T216, T217), X431, node(X432, T216, T217))
U8_aaa(T145, T146, T218, T216, T217, X432, tappend151_out_aaa(T218, X431, X432)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T218, T216, T217)), T145, node(node(nil, T145, nil), T146, node(X432, T216, T217)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T234, T232, T233)), T145, node(node(nil, T145, nil), T146, node(X432, T232, T233))) → U9_aaa(T145, T146, T234, T232, T233, X432, tappend151_in_aaa(T234, X431, X432))
U9_aaa(T145, T146, T234, T232, T233, X432, tappend151_out_aaa(T234, X431, X432)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T234, T232, T233)), T145, node(node(nil, T145, nil), T146, node(X432, T232, T233)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X489))) → U10_aaa(T145, T146, X489, tappend151_in_gaa(nil, X486, X489))
U10_aaa(T145, T146, X489, tappend151_out_gaa(nil, X486, X489)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X489)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T249, T250, T252)), T145, node(node(nil, T145, nil), T146, node(T249, T250, X489))) → U11_aaa(T145, T146, T249, T250, T252, X489, tappend151_in_aaa(T252, X486, X489))
U11_aaa(T145, T146, T249, T250, T252, X489, tappend151_out_aaa(T252, X486, X489)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T249, T250, T252)), T145, node(node(nil, T145, nil), T146, node(T249, T250, X489)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T265, T266, T268)), T145, node(node(nil, T145, nil), T146, node(T265, T266, X489))) → U12_aaa(T145, T146, T265, T266, T268, X489, tappend151_in_aaa(T268, X486, X489))
U12_aaa(T145, T146, T265, T266, T268, X489, tappend151_out_aaa(T268, X486, X489)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T265, T266, T268)), T145, node(node(nil, T145, nil), T146, node(T265, T266, X489)))
U6_aaa(T126, T124, T125, T127, X217, tappend38_out_aaa(T126, T127, X217)) → tappend38_out_aaa(node(T126, T124, T125), T127, node(X217, T124, T125))
U5_aaa(T107, T105, T106, T108, X217, tappend38_out_aaa(T107, T108, X217)) → tappend38_out_aaa(node(T107, T105, T106), T108, node(X217, T105, T106))
U23_gaa(T7, T24, T25, tappend38_out_aaa(T23, T24, X81)) → goal1_out_gaa(T7, T24, T25)
goal1_in_gaa(T7, T24, T269) → U24_gaa(T7, T24, T269, s2t4_in_ga(T7, T23))
U24_gaa(T7, T24, T269, s2t4_out_ga(T7, T23)) → U25_gaa(T7, T24, T269, tappend38_in_aaa(T23, T24, node(nil, T269, nil)))
U25_gaa(T7, T24, T269, tappend38_out_aaa(T23, T24, node(nil, T269, nil))) → goal1_out_gaa(T7, T24, T269)
goal1_in_gaa(T7, T24, T274) → U26_gaa(T7, T24, T274, s2t4_in_ga(T7, T23))
U26_gaa(T7, T24, T274, s2t4_out_ga(T7, T23)) → U27_gaa(T7, T24, T274, tappend38_in_aaa(T23, T24, node(T275, T272, T273)))
U27_gaa(T7, T24, T274, tappend38_out_aaa(T23, T24, node(T275, T272, T273))) → U28_gaa(T7, T24, T274, tlast39_in_aa(T274, T275))
tlast39_in_aa(T269, node(nil, T269, nil)) → tlast39_out_aa(T269, node(nil, T269, nil))
tlast39_in_aa(T274, node(T275, T272, T273)) → U19_aa(T274, T275, T272, T273, tlast39_in_aa(T274, T275))
tlast39_in_aa(T280, node(T277, T278, T281)) → U20_aa(T280, T277, T278, T281, tlast39_in_aa(T280, T281))
U20_aa(T280, T277, T278, T281, tlast39_out_aa(T280, T281)) → tlast39_out_aa(T280, node(T277, T278, T281))
U19_aa(T274, T275, T272, T273, tlast39_out_aa(T274, T275)) → tlast39_out_aa(T274, node(T275, T272, T273))
U28_gaa(T7, T24, T274, tlast39_out_aa(T274, T275)) → goal1_out_gaa(T7, T24, T274)
goal1_in_gaa(T7, T24, T280) → U29_gaa(T7, T24, T280, s2t4_in_ga(T7, T23))
U29_gaa(T7, T24, T280, s2t4_out_ga(T7, T23)) → U30_gaa(T7, T24, T280, tappend38_in_aaa(T23, T24, node(T277, T278, T281)))
U30_gaa(T7, T24, T280, tappend38_out_aaa(T23, T24, node(T277, T278, T281))) → U31_gaa(T7, T24, T280, tlast39_in_aa(T280, T281))
U31_gaa(T7, T24, T280, tlast39_out_aa(T280, T281)) → goal1_out_gaa(T7, T24, T280)
TAPPEND38_IN_AAA(node(T107, T105, T106), T108, node(X217, T105, T106)) → TAPPEND38_IN_AAA(T107, T108, X217)
TAPPEND38_IN_AAA → TAPPEND38_IN_AAA
S2T4_IN_GA(s(T16), node(nil, X52, X53)) → S2T4_IN_GA(T16, X53)
S2T4_IN_GA(s(T14), node(X38, X39, X38)) → S2T4_IN_GA(T14, X38)
S2T4_IN_GA(s(T18), node(X66, X67, nil)) → S2T4_IN_GA(T18, X66)
goal1_in_gaa(T7, T10, T11) → U21_gaa(T7, T10, T11, s2t4_in_ga(T7, X21))
s2t4_in_ga(0, nil) → s2t4_out_ga(0, nil)
s2t4_in_ga(s(T14), node(X38, X39, X38)) → U1_ga(T14, X38, X39, s2t4_in_ga(T14, X38))
s2t4_in_ga(s(T16), node(nil, X52, X53)) → U2_ga(T16, X52, X53, s2t4_in_ga(T16, X53))
s2t4_in_ga(s(T18), node(X66, X67, nil)) → U3_ga(T18, X66, X67, s2t4_in_ga(T18, X66))
s2t4_in_ga(T19, node(nil, X74, nil)) → s2t4_out_ga(T19, node(nil, X74, nil))
U3_ga(T18, X66, X67, s2t4_out_ga(T18, X66)) → s2t4_out_ga(s(T18), node(X66, X67, nil))
U2_ga(T16, X52, X53, s2t4_out_ga(T16, X53)) → s2t4_out_ga(s(T16), node(nil, X52, X53))
U1_ga(T14, X38, X39, s2t4_out_ga(T14, X38)) → s2t4_out_ga(s(T14), node(X38, X39, X38))
U21_gaa(T7, T10, T11, s2t4_out_ga(T7, X21)) → goal1_out_gaa(T7, T10, T11)
goal1_in_gaa(T7, T24, T25) → U22_gaa(T7, T24, T25, s2t4_in_ga(T7, T23))
U22_gaa(T7, T24, T25, s2t4_out_ga(T7, T23)) → U23_gaa(T7, T24, T25, tappend38_in_aaa(T23, T24, X81))
tappend38_in_aaa(nil, T30, node(nil, T30, nil)) → tappend38_out_aaa(nil, T30, node(nil, T30, nil))
tappend38_in_aaa(nil, T32, node(node(nil, T32, nil), nil, nil)) → tappend38_out_aaa(nil, T32, node(node(nil, T32, nil), nil, nil))
tappend38_in_aaa(node(nil, T43, T44), T32, node(node(nil, T32, nil), T43, T44)) → tappend38_out_aaa(node(nil, T43, T44), T32, node(node(nil, T32, nil), T43, T44))
tappend38_in_aaa(nil, T57, node(nil, nil, node(nil, T57, nil))) → tappend38_out_aaa(nil, T57, node(nil, nil, node(nil, T57, nil)))
tappend38_in_aaa(node(T70, T71, nil), T57, node(T70, T71, node(nil, T57, nil))) → tappend38_out_aaa(node(T70, T71, nil), T57, node(T70, T71, node(nil, T57, nil)))
tappend38_in_aaa(nil, T89, node(X217, nil, nil)) → U4_aaa(T89, X217, tappend38_in_gaa(nil, T89, X217))
tappend38_in_gaa(nil, T30, node(nil, T30, nil)) → tappend38_out_gaa(nil, T30, node(nil, T30, nil))
tappend38_in_gaa(nil, T32, node(node(nil, T32, nil), nil, nil)) → tappend38_out_gaa(nil, T32, node(node(nil, T32, nil), nil, nil))
tappend38_in_gaa(node(nil, T43, T44), T32, node(node(nil, T32, nil), T43, T44)) → tappend38_out_gaa(node(nil, T43, T44), T32, node(node(nil, T32, nil), T43, T44))
tappend38_in_gaa(nil, T57, node(nil, nil, node(nil, T57, nil))) → tappend38_out_gaa(nil, T57, node(nil, nil, node(nil, T57, nil)))
tappend38_in_gaa(node(T70, T71, nil), T57, node(T70, T71, node(nil, T57, nil))) → tappend38_out_gaa(node(T70, T71, nil), T57, node(T70, T71, node(nil, T57, nil)))
tappend38_in_gaa(nil, T89, node(X217, nil, nil)) → U4_gaa(T89, X217, tappend38_in_gaa(nil, T89, X217))
tappend38_in_gaa(node(T107, T105, T106), T108, node(X217, T105, T106)) → U5_gaa(T107, T105, T106, T108, X217, tappend38_in_gaa(T107, T108, X217))
tappend38_in_gaa(node(T126, T124, T125), T127, node(X217, T124, T125)) → U6_gaa(T126, T124, T125, T127, X217, tappend38_in_gaa(T126, T127, X217))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, X300)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, X300))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X313, nil, nil))) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X313, nil, nil)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(nil, T160, T161)), T145, node(node(nil, T145, nil), T146, node(X313, T160, T161))) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(nil, T160, T161)), T145, node(node(nil, T145, nil), T146, node(X313, T160, T161)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X370))) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X370)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T186, T187, nil)), T145, node(node(nil, T145, nil), T146, node(T186, T187, X370))) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T186, T187, nil)), T145, node(node(nil, T145, nil), T146, node(T186, T187, X370)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X432, nil, nil))) → U7_gaa(T145, T146, X432, tappend151_in_gaa(nil, X431, X432))
tappend151_in_gaa(nil, X300, X300) → tappend151_out_gaa(nil, X300, X300)
tappend151_in_gaa(nil, X313, node(X313, nil, nil)) → tappend151_out_gaa(nil, X313, node(X313, nil, nil))
tappend151_in_gaa(node(nil, T160, T161), X313, node(X313, T160, T161)) → tappend151_out_gaa(node(nil, T160, T161), X313, node(X313, T160, T161))
tappend151_in_gaa(nil, X370, node(nil, nil, X370)) → tappend151_out_gaa(nil, X370, node(nil, nil, X370))
tappend151_in_gaa(node(T186, T187, nil), X370, node(T186, T187, X370)) → tappend151_out_gaa(node(T186, T187, nil), X370, node(T186, T187, X370))
tappend151_in_gaa(nil, X431, node(X432, nil, nil)) → U13_gaa(X431, X432, tappend151_in_gaa(nil, X431, X432))
tappend151_in_gaa(node(T218, T216, T217), X431, node(X432, T216, T217)) → U14_gaa(T218, T216, T217, X431, X432, tappend151_in_gaa(T218, X431, X432))
tappend151_in_gaa(node(T234, T232, T233), X431, node(X432, T232, T233)) → U15_gaa(T234, T232, T233, X431, X432, tappend151_in_gaa(T234, X431, X432))
tappend151_in_gaa(nil, nil, node(nil, nil, X489)) → U16_gaa(X489, tappend151_in_gaa(nil, X486, X489))
tappend151_in_gaa(node(T249, T250, T252), T249, node(T249, T250, X489)) → U17_gaa(T249, T250, T252, X489, tappend151_in_gaa(T252, X486, X489))
tappend151_in_gaa(node(T265, T266, T268), T265, node(T265, T266, X489)) → U18_gaa(T265, T266, T268, X489, tappend151_in_gaa(T268, X486, X489))
U18_gaa(T265, T266, T268, X489, tappend151_out_gaa(T268, X486, X489)) → tappend151_out_gaa(node(T265, T266, T268), T265, node(T265, T266, X489))
U17_gaa(T249, T250, T252, X489, tappend151_out_gaa(T252, X486, X489)) → tappend151_out_gaa(node(T249, T250, T252), T249, node(T249, T250, X489))
U16_gaa(X489, tappend151_out_gaa(nil, X486, X489)) → tappend151_out_gaa(nil, nil, node(nil, nil, X489))
U15_gaa(T234, T232, T233, X431, X432, tappend151_out_gaa(T234, X431, X432)) → tappend151_out_gaa(node(T234, T232, T233), X431, node(X432, T232, T233))
U14_gaa(T218, T216, T217, X431, X432, tappend151_out_gaa(T218, X431, X432)) → tappend151_out_gaa(node(T218, T216, T217), X431, node(X432, T216, T217))
U13_gaa(X431, X432, tappend151_out_gaa(nil, X431, X432)) → tappend151_out_gaa(nil, X431, node(X432, nil, nil))
U7_gaa(T145, T146, X432, tappend151_out_gaa(nil, X431, X432)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X432, nil, nil)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T218, T216, T217)), T145, node(node(nil, T145, nil), T146, node(X432, T216, T217))) → U8_gaa(T145, T146, T218, T216, T217, X432, tappend151_in_gaa(T218, X431, X432))
U8_gaa(T145, T146, T218, T216, T217, X432, tappend151_out_gaa(T218, X431, X432)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T218, T216, T217)), T145, node(node(nil, T145, nil), T146, node(X432, T216, T217)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T234, T232, T233)), T145, node(node(nil, T145, nil), T146, node(X432, T232, T233))) → U9_gaa(T145, T146, T234, T232, T233, X432, tappend151_in_gaa(T234, X431, X432))
U9_gaa(T145, T146, T234, T232, T233, X432, tappend151_out_gaa(T234, X431, X432)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T234, T232, T233)), T145, node(node(nil, T145, nil), T146, node(X432, T232, T233)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X489))) → U10_gaa(T145, T146, X489, tappend151_in_gaa(nil, X486, X489))
U10_gaa(T145, T146, X489, tappend151_out_gaa(nil, X486, X489)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X489)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T249, T250, T252)), T145, node(node(nil, T145, nil), T146, node(T249, T250, X489))) → U11_gaa(T145, T146, T249, T250, T252, X489, tappend151_in_gaa(T252, X486, X489))
U11_gaa(T145, T146, T249, T250, T252, X489, tappend151_out_gaa(T252, X486, X489)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T249, T250, T252)), T145, node(node(nil, T145, nil), T146, node(T249, T250, X489)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T265, T266, T268)), T145, node(node(nil, T145, nil), T146, node(T265, T266, X489))) → U12_gaa(T145, T146, T265, T266, T268, X489, tappend151_in_gaa(T268, X486, X489))
U12_gaa(T145, T146, T265, T266, T268, X489, tappend151_out_gaa(T268, X486, X489)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T265, T266, T268)), T145, node(node(nil, T145, nil), T146, node(T265, T266, X489)))
U6_gaa(T126, T124, T125, T127, X217, tappend38_out_gaa(T126, T127, X217)) → tappend38_out_gaa(node(T126, T124, T125), T127, node(X217, T124, T125))
U5_gaa(T107, T105, T106, T108, X217, tappend38_out_gaa(T107, T108, X217)) → tappend38_out_gaa(node(T107, T105, T106), T108, node(X217, T105, T106))
U4_gaa(T89, X217, tappend38_out_gaa(nil, T89, X217)) → tappend38_out_gaa(nil, T89, node(X217, nil, nil))
U4_aaa(T89, X217, tappend38_out_gaa(nil, T89, X217)) → tappend38_out_aaa(nil, T89, node(X217, nil, nil))
tappend38_in_aaa(node(T107, T105, T106), T108, node(X217, T105, T106)) → U5_aaa(T107, T105, T106, T108, X217, tappend38_in_aaa(T107, T108, X217))
tappend38_in_aaa(node(T126, T124, T125), T127, node(X217, T124, T125)) → U6_aaa(T126, T124, T125, T127, X217, tappend38_in_aaa(T126, T127, X217))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, X300)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, X300))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X313, nil, nil))) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X313, nil, nil)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(nil, T160, T161)), T145, node(node(nil, T145, nil), T146, node(X313, T160, T161))) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(nil, T160, T161)), T145, node(node(nil, T145, nil), T146, node(X313, T160, T161)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X370))) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X370)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T186, T187, nil)), T145, node(node(nil, T145, nil), T146, node(T186, T187, X370))) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T186, T187, nil)), T145, node(node(nil, T145, nil), T146, node(T186, T187, X370)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X432, nil, nil))) → U7_aaa(T145, T146, X432, tappend151_in_gaa(nil, X431, X432))
U7_aaa(T145, T146, X432, tappend151_out_gaa(nil, X431, X432)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X432, nil, nil)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T218, T216, T217)), T145, node(node(nil, T145, nil), T146, node(X432, T216, T217))) → U8_aaa(T145, T146, T218, T216, T217, X432, tappend151_in_aaa(T218, X431, X432))
tappend151_in_aaa(nil, X300, X300) → tappend151_out_aaa(nil, X300, X300)
tappend151_in_aaa(nil, X313, node(X313, nil, nil)) → tappend151_out_aaa(nil, X313, node(X313, nil, nil))
tappend151_in_aaa(node(nil, T160, T161), X313, node(X313, T160, T161)) → tappend151_out_aaa(node(nil, T160, T161), X313, node(X313, T160, T161))
tappend151_in_aaa(nil, X370, node(nil, nil, X370)) → tappend151_out_aaa(nil, X370, node(nil, nil, X370))
tappend151_in_aaa(node(T186, T187, nil), X370, node(T186, T187, X370)) → tappend151_out_aaa(node(T186, T187, nil), X370, node(T186, T187, X370))
tappend151_in_aaa(nil, X431, node(X432, nil, nil)) → U13_aaa(X431, X432, tappend151_in_gaa(nil, X431, X432))
U13_aaa(X431, X432, tappend151_out_gaa(nil, X431, X432)) → tappend151_out_aaa(nil, X431, node(X432, nil, nil))
tappend151_in_aaa(node(T218, T216, T217), X431, node(X432, T216, T217)) → U14_aaa(T218, T216, T217, X431, X432, tappend151_in_aaa(T218, X431, X432))
tappend151_in_aaa(node(T234, T232, T233), X431, node(X432, T232, T233)) → U15_aaa(T234, T232, T233, X431, X432, tappend151_in_aaa(T234, X431, X432))
tappend151_in_aaa(nil, nil, node(nil, nil, X489)) → U16_aaa(X489, tappend151_in_gaa(nil, X486, X489))
U16_aaa(X489, tappend151_out_gaa(nil, X486, X489)) → tappend151_out_aaa(nil, nil, node(nil, nil, X489))
tappend151_in_aaa(node(T249, T250, T252), T249, node(T249, T250, X489)) → U17_aaa(T249, T250, T252, X489, tappend151_in_aaa(T252, X486, X489))
tappend151_in_aaa(node(T265, T266, T268), T265, node(T265, T266, X489)) → U18_aaa(T265, T266, T268, X489, tappend151_in_aaa(T268, X486, X489))
U18_aaa(T265, T266, T268, X489, tappend151_out_aaa(T268, X486, X489)) → tappend151_out_aaa(node(T265, T266, T268), T265, node(T265, T266, X489))
U17_aaa(T249, T250, T252, X489, tappend151_out_aaa(T252, X486, X489)) → tappend151_out_aaa(node(T249, T250, T252), T249, node(T249, T250, X489))
U15_aaa(T234, T232, T233, X431, X432, tappend151_out_aaa(T234, X431, X432)) → tappend151_out_aaa(node(T234, T232, T233), X431, node(X432, T232, T233))
U14_aaa(T218, T216, T217, X431, X432, tappend151_out_aaa(T218, X431, X432)) → tappend151_out_aaa(node(T218, T216, T217), X431, node(X432, T216, T217))
U8_aaa(T145, T146, T218, T216, T217, X432, tappend151_out_aaa(T218, X431, X432)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T218, T216, T217)), T145, node(node(nil, T145, nil), T146, node(X432, T216, T217)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T234, T232, T233)), T145, node(node(nil, T145, nil), T146, node(X432, T232, T233))) → U9_aaa(T145, T146, T234, T232, T233, X432, tappend151_in_aaa(T234, X431, X432))
U9_aaa(T145, T146, T234, T232, T233, X432, tappend151_out_aaa(T234, X431, X432)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T234, T232, T233)), T145, node(node(nil, T145, nil), T146, node(X432, T232, T233)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X489))) → U10_aaa(T145, T146, X489, tappend151_in_gaa(nil, X486, X489))
U10_aaa(T145, T146, X489, tappend151_out_gaa(nil, X486, X489)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X489)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T249, T250, T252)), T145, node(node(nil, T145, nil), T146, node(T249, T250, X489))) → U11_aaa(T145, T146, T249, T250, T252, X489, tappend151_in_aaa(T252, X486, X489))
U11_aaa(T145, T146, T249, T250, T252, X489, tappend151_out_aaa(T252, X486, X489)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T249, T250, T252)), T145, node(node(nil, T145, nil), T146, node(T249, T250, X489)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T265, T266, T268)), T145, node(node(nil, T145, nil), T146, node(T265, T266, X489))) → U12_aaa(T145, T146, T265, T266, T268, X489, tappend151_in_aaa(T268, X486, X489))
U12_aaa(T145, T146, T265, T266, T268, X489, tappend151_out_aaa(T268, X486, X489)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T265, T266, T268)), T145, node(node(nil, T145, nil), T146, node(T265, T266, X489)))
U6_aaa(T126, T124, T125, T127, X217, tappend38_out_aaa(T126, T127, X217)) → tappend38_out_aaa(node(T126, T124, T125), T127, node(X217, T124, T125))
U5_aaa(T107, T105, T106, T108, X217, tappend38_out_aaa(T107, T108, X217)) → tappend38_out_aaa(node(T107, T105, T106), T108, node(X217, T105, T106))
U23_gaa(T7, T24, T25, tappend38_out_aaa(T23, T24, X81)) → goal1_out_gaa(T7, T24, T25)
goal1_in_gaa(T7, T24, T269) → U24_gaa(T7, T24, T269, s2t4_in_ga(T7, T23))
U24_gaa(T7, T24, T269, s2t4_out_ga(T7, T23)) → U25_gaa(T7, T24, T269, tappend38_in_aaa(T23, T24, node(nil, T269, nil)))
U25_gaa(T7, T24, T269, tappend38_out_aaa(T23, T24, node(nil, T269, nil))) → goal1_out_gaa(T7, T24, T269)
goal1_in_gaa(T7, T24, T274) → U26_gaa(T7, T24, T274, s2t4_in_ga(T7, T23))
U26_gaa(T7, T24, T274, s2t4_out_ga(T7, T23)) → U27_gaa(T7, T24, T274, tappend38_in_aaa(T23, T24, node(T275, T272, T273)))
U27_gaa(T7, T24, T274, tappend38_out_aaa(T23, T24, node(T275, T272, T273))) → U28_gaa(T7, T24, T274, tlast39_in_aa(T274, T275))
tlast39_in_aa(T269, node(nil, T269, nil)) → tlast39_out_aa(T269, node(nil, T269, nil))
tlast39_in_aa(T274, node(T275, T272, T273)) → U19_aa(T274, T275, T272, T273, tlast39_in_aa(T274, T275))
tlast39_in_aa(T280, node(T277, T278, T281)) → U20_aa(T280, T277, T278, T281, tlast39_in_aa(T280, T281))
U20_aa(T280, T277, T278, T281, tlast39_out_aa(T280, T281)) → tlast39_out_aa(T280, node(T277, T278, T281))
U19_aa(T274, T275, T272, T273, tlast39_out_aa(T274, T275)) → tlast39_out_aa(T274, node(T275, T272, T273))
U28_gaa(T7, T24, T274, tlast39_out_aa(T274, T275)) → goal1_out_gaa(T7, T24, T274)
goal1_in_gaa(T7, T24, T280) → U29_gaa(T7, T24, T280, s2t4_in_ga(T7, T23))
U29_gaa(T7, T24, T280, s2t4_out_ga(T7, T23)) → U30_gaa(T7, T24, T280, tappend38_in_aaa(T23, T24, node(T277, T278, T281)))
U30_gaa(T7, T24, T280, tappend38_out_aaa(T23, T24, node(T277, T278, T281))) → U31_gaa(T7, T24, T280, tlast39_in_aa(T280, T281))
U31_gaa(T7, T24, T280, tlast39_out_aa(T280, T281)) → goal1_out_gaa(T7, T24, T280)
S2T4_IN_GA(s(T16), node(nil, X52, X53)) → S2T4_IN_GA(T16, X53)
S2T4_IN_GA(s(T14), node(X38, X39, X38)) → S2T4_IN_GA(T14, X38)
S2T4_IN_GA(s(T18), node(X66, X67, nil)) → S2T4_IN_GA(T18, X66)
S2T4_IN_GA(s(T16)) → S2T4_IN_GA(T16)
From the DPs we obtained the following set of size-change graphs: