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 QDPSizeChangeProof (⇔)
↳22 TRUE
↳23 PiDP
↳24 UsableRulesProof (⇔)
↳25 PiDP
↳26 PiDPToQDPProof (⇐)
↳27 QDP
↳28 QDPSizeChangeProof (⇔)
↳29 TRUE
↳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 QDPSizeChangeProof (⇔)
↳43 TRUE
↳44 PrologToPiTRSProof (⇐)
↳45 PiTRS
↳46 DependencyPairsProof (⇔)
↳47 PiDP
↳48 DependencyGraphProof (⇔)
↳49 AND
↳50 PiDP
↳51 UsableRulesProof (⇔)
↳52 PiDP
↳53 PiDPToQDPProof (⇐)
↳54 QDP
↳55 NonTerminationProof (⇔)
↳56 FALSE
↳57 PiDP
↳58 UsableRulesProof (⇔)
↳59 PiDP
↳60 PiDPToQDPProof (⇐)
↳61 QDP
↳62 QDPSizeChangeProof (⇔)
↳63 TRUE
↳64 PiDP
↳65 UsableRulesProof (⇔)
↳66 PiDP
↳67 PiDPToQDPProof (⇐)
↳68 QDP
↳69 QDPSizeChangeProof (⇔)
↳70 TRUE
↳71 PiDP
↳72 UsableRulesProof (⇔)
↳73 PiDP
↳74 PiDPToQDPProof (⇐)
↳75 QDP
↳76 QDPSizeChangeProof (⇔)
↳77 TRUE
↳78 PiDP
↳79 UsableRulesProof (⇔)
↳80 PiDP
↳81 PiDPToQDPProof (⇐)
↳82 QDP
↳83 QDPSizeChangeProof (⇔)
↳84 TRUE
goal1_in_gaa(T4, T7, T8) → U8_gaa(T4, T7, T8, s2l4_in_ga(T4, X11))
s2l4_in_ga(0, []) → s2l4_out_ga(0, [])
s2l4_in_ga(s(T11), .(X25, X26)) → U1_ga(T11, X25, X26, s2l4_in_ga(T11, X26))
U1_ga(T11, X25, X26, s2l4_out_ga(T11, X26)) → s2l4_out_ga(s(T11), .(X25, X26))
U8_gaa(T4, T7, T8, s2l4_out_ga(T4, X11)) → goal1_out_gaa(T4, T7, T8)
goal1_in_gaa(T4, T16, T17) → U9_gaa(T4, T16, T17, s2l4_in_ga(T4, T15))
U9_gaa(T4, T16, T17, s2l4_out_ga(T4, T15)) → U10_gaa(T4, T16, T17, app20_in_gaa(T15, T16, X35))
app20_in_gaa([], T22, .(T22, [])) → app20_out_gaa([], T22, .(T22, []))
app20_in_gaa([], T30, .(X56, .(T30, []))) → app20_out_gaa([], T30, .(X56, .(T30, [])))
app20_in_gaa(.(T36, T38), T39, .(T36, X53)) → U2_gaa(T36, T38, T39, X53, app20_in_gaa(T38, T39, X53))
app20_in_gaa(.(T45, T47), T48, .(T45, X53)) → U3_gaa(T45, T47, T48, X53, app20_in_gaa(T47, T48, X53))
U3_gaa(T45, T47, T48, X53, app20_out_gaa(T47, T48, X53)) → app20_out_gaa(.(T45, T47), T48, .(T45, X53))
U2_gaa(T36, T38, T39, X53, app20_out_gaa(T38, T39, X53)) → app20_out_gaa(.(T36, T38), T39, .(T36, X53))
U10_gaa(T4, T16, T17, app20_out_gaa(T15, T16, X35)) → goal1_out_gaa(T4, T16, T17)
goal1_in_gaa(T4, T16, T49) → U11_gaa(T4, T16, T49, s2l4_in_ga(T4, T15))
U11_gaa(T4, T16, T49, s2l4_out_ga(T4, T15)) → U12_gaa(T4, T16, T49, app20_in_gag(T15, T16, .(T49, [])))
app20_in_gag([], T22, .(T22, [])) → app20_out_gag([], T22, .(T22, []))
app20_in_gag([], T30, .(X56, .(T30, []))) → app20_out_gag([], T30, .(X56, .(T30, [])))
app20_in_gag(.(T36, T38), T39, .(T36, X53)) → U2_gag(T36, T38, T39, X53, app20_in_gag(T38, T39, X53))
app20_in_gag(.(T45, T47), T48, .(T45, X53)) → U3_gag(T45, T47, T48, X53, app20_in_gag(T47, T48, X53))
U3_gag(T45, T47, T48, X53, app20_out_gag(T47, T48, X53)) → app20_out_gag(.(T45, T47), T48, .(T45, X53))
U2_gag(T36, T38, T39, X53, app20_out_gag(T38, T39, X53)) → app20_out_gag(.(T36, T38), T39, .(T36, X53))
U12_gaa(T4, T16, T49, app20_out_gag(T15, T16, .(T49, []))) → goal1_out_gaa(T4, T16, T49)
goal1_in_gaa(T4, T16, T56) → U13_gaa(T4, T16, T56, s2l4_in_ga(T4, T15))
U13_gaa(T4, T16, T56, s2l4_out_ga(T4, T15)) → U14_gaa(T4, T16, T56, app20_in_gag(T15, T16, []))
U14_gaa(T4, T16, T56, app20_out_gag(T15, T16, [])) → U15_gaa(T4, T16, T56, last63_in_a(T56))
last63_in_a(T56) → U4_a(T56, last63_in_a(T56))
U4_a(T56, last63_out_a(T56)) → last63_out_a(T56)
U15_gaa(T4, T16, T56, last63_out_a(T56)) → goal1_out_gaa(T4, T16, T56)
goal1_in_gaa(T4, T16, T59) → U16_gaa(T4, T16, T59, s2l4_in_ga(T4, T15))
U16_gaa(T4, T16, T59, s2l4_out_ga(T4, T15)) → U17_gaa(T4, T16, T59, app20_in_gaa(T15, T16, .(T57, T60)))
U17_gaa(T4, T16, T59, app20_out_gaa(T15, T16, .(T57, T60))) → U18_gaa(T4, T16, T59, last21_in_ag(T59, T60))
last21_in_ag(T49, .(T49, [])) → last21_out_ag(T49, .(T49, []))
last21_in_ag(T56, []) → U5_ag(T56, last63_in_a(T56))
U5_ag(T56, last63_out_a(T56)) → last21_out_ag(T56, [])
last21_in_ag(T59, .(T57, T60)) → U6_ag(T59, T57, T60, last21_in_ag(T59, T60))
last21_in_ag(T63, .(T61, T64)) → U7_ag(T63, T61, T64, last21_in_ag(T63, T64))
U7_ag(T63, T61, T64, last21_out_ag(T63, T64)) → last21_out_ag(T63, .(T61, T64))
U6_ag(T59, T57, T60, last21_out_ag(T59, T60)) → last21_out_ag(T59, .(T57, T60))
U18_gaa(T4, T16, T59, last21_out_ag(T59, T60)) → goal1_out_gaa(T4, T16, T59)
goal1_in_gaa(T4, T16, T63) → U19_gaa(T4, T16, T63, s2l4_in_ga(T4, T15))
U19_gaa(T4, T16, T63, s2l4_out_ga(T4, T15)) → U20_gaa(T4, T16, T63, app20_in_gaa(T15, T16, .(T61, T64)))
U20_gaa(T4, T16, T63, app20_out_gaa(T15, T16, .(T61, T64))) → U21_gaa(T4, T16, T63, last21_in_ag(T63, T64))
U21_gaa(T4, T16, T63, last21_out_ag(T63, T64)) → goal1_out_gaa(T4, T16, T63)
Infinitary Constructor Rewriting Termination of PiTRS implies Termination of Prolog
goal1_in_gaa(T4, T7, T8) → U8_gaa(T4, T7, T8, s2l4_in_ga(T4, X11))
s2l4_in_ga(0, []) → s2l4_out_ga(0, [])
s2l4_in_ga(s(T11), .(X25, X26)) → U1_ga(T11, X25, X26, s2l4_in_ga(T11, X26))
U1_ga(T11, X25, X26, s2l4_out_ga(T11, X26)) → s2l4_out_ga(s(T11), .(X25, X26))
U8_gaa(T4, T7, T8, s2l4_out_ga(T4, X11)) → goal1_out_gaa(T4, T7, T8)
goal1_in_gaa(T4, T16, T17) → U9_gaa(T4, T16, T17, s2l4_in_ga(T4, T15))
U9_gaa(T4, T16, T17, s2l4_out_ga(T4, T15)) → U10_gaa(T4, T16, T17, app20_in_gaa(T15, T16, X35))
app20_in_gaa([], T22, .(T22, [])) → app20_out_gaa([], T22, .(T22, []))
app20_in_gaa([], T30, .(X56, .(T30, []))) → app20_out_gaa([], T30, .(X56, .(T30, [])))
app20_in_gaa(.(T36, T38), T39, .(T36, X53)) → U2_gaa(T36, T38, T39, X53, app20_in_gaa(T38, T39, X53))
app20_in_gaa(.(T45, T47), T48, .(T45, X53)) → U3_gaa(T45, T47, T48, X53, app20_in_gaa(T47, T48, X53))
U3_gaa(T45, T47, T48, X53, app20_out_gaa(T47, T48, X53)) → app20_out_gaa(.(T45, T47), T48, .(T45, X53))
U2_gaa(T36, T38, T39, X53, app20_out_gaa(T38, T39, X53)) → app20_out_gaa(.(T36, T38), T39, .(T36, X53))
U10_gaa(T4, T16, T17, app20_out_gaa(T15, T16, X35)) → goal1_out_gaa(T4, T16, T17)
goal1_in_gaa(T4, T16, T49) → U11_gaa(T4, T16, T49, s2l4_in_ga(T4, T15))
U11_gaa(T4, T16, T49, s2l4_out_ga(T4, T15)) → U12_gaa(T4, T16, T49, app20_in_gag(T15, T16, .(T49, [])))
app20_in_gag([], T22, .(T22, [])) → app20_out_gag([], T22, .(T22, []))
app20_in_gag([], T30, .(X56, .(T30, []))) → app20_out_gag([], T30, .(X56, .(T30, [])))
app20_in_gag(.(T36, T38), T39, .(T36, X53)) → U2_gag(T36, T38, T39, X53, app20_in_gag(T38, T39, X53))
app20_in_gag(.(T45, T47), T48, .(T45, X53)) → U3_gag(T45, T47, T48, X53, app20_in_gag(T47, T48, X53))
U3_gag(T45, T47, T48, X53, app20_out_gag(T47, T48, X53)) → app20_out_gag(.(T45, T47), T48, .(T45, X53))
U2_gag(T36, T38, T39, X53, app20_out_gag(T38, T39, X53)) → app20_out_gag(.(T36, T38), T39, .(T36, X53))
U12_gaa(T4, T16, T49, app20_out_gag(T15, T16, .(T49, []))) → goal1_out_gaa(T4, T16, T49)
goal1_in_gaa(T4, T16, T56) → U13_gaa(T4, T16, T56, s2l4_in_ga(T4, T15))
U13_gaa(T4, T16, T56, s2l4_out_ga(T4, T15)) → U14_gaa(T4, T16, T56, app20_in_gag(T15, T16, []))
U14_gaa(T4, T16, T56, app20_out_gag(T15, T16, [])) → U15_gaa(T4, T16, T56, last63_in_a(T56))
last63_in_a(T56) → U4_a(T56, last63_in_a(T56))
U4_a(T56, last63_out_a(T56)) → last63_out_a(T56)
U15_gaa(T4, T16, T56, last63_out_a(T56)) → goal1_out_gaa(T4, T16, T56)
goal1_in_gaa(T4, T16, T59) → U16_gaa(T4, T16, T59, s2l4_in_ga(T4, T15))
U16_gaa(T4, T16, T59, s2l4_out_ga(T4, T15)) → U17_gaa(T4, T16, T59, app20_in_gaa(T15, T16, .(T57, T60)))
U17_gaa(T4, T16, T59, app20_out_gaa(T15, T16, .(T57, T60))) → U18_gaa(T4, T16, T59, last21_in_ag(T59, T60))
last21_in_ag(T49, .(T49, [])) → last21_out_ag(T49, .(T49, []))
last21_in_ag(T56, []) → U5_ag(T56, last63_in_a(T56))
U5_ag(T56, last63_out_a(T56)) → last21_out_ag(T56, [])
last21_in_ag(T59, .(T57, T60)) → U6_ag(T59, T57, T60, last21_in_ag(T59, T60))
last21_in_ag(T63, .(T61, T64)) → U7_ag(T63, T61, T64, last21_in_ag(T63, T64))
U7_ag(T63, T61, T64, last21_out_ag(T63, T64)) → last21_out_ag(T63, .(T61, T64))
U6_ag(T59, T57, T60, last21_out_ag(T59, T60)) → last21_out_ag(T59, .(T57, T60))
U18_gaa(T4, T16, T59, last21_out_ag(T59, T60)) → goal1_out_gaa(T4, T16, T59)
goal1_in_gaa(T4, T16, T63) → U19_gaa(T4, T16, T63, s2l4_in_ga(T4, T15))
U19_gaa(T4, T16, T63, s2l4_out_ga(T4, T15)) → U20_gaa(T4, T16, T63, app20_in_gaa(T15, T16, .(T61, T64)))
U20_gaa(T4, T16, T63, app20_out_gaa(T15, T16, .(T61, T64))) → U21_gaa(T4, T16, T63, last21_in_ag(T63, T64))
U21_gaa(T4, T16, T63, last21_out_ag(T63, T64)) → goal1_out_gaa(T4, T16, T63)
GOAL1_IN_GAA(T4, T7, T8) → U8_GAA(T4, T7, T8, s2l4_in_ga(T4, X11))
GOAL1_IN_GAA(T4, T7, T8) → S2L4_IN_GA(T4, X11)
S2L4_IN_GA(s(T11), .(X25, X26)) → U1_GA(T11, X25, X26, s2l4_in_ga(T11, X26))
S2L4_IN_GA(s(T11), .(X25, X26)) → S2L4_IN_GA(T11, X26)
GOAL1_IN_GAA(T4, T16, T17) → U9_GAA(T4, T16, T17, s2l4_in_ga(T4, T15))
U9_GAA(T4, T16, T17, s2l4_out_ga(T4, T15)) → U10_GAA(T4, T16, T17, app20_in_gaa(T15, T16, X35))
U9_GAA(T4, T16, T17, s2l4_out_ga(T4, T15)) → APP20_IN_GAA(T15, T16, X35)
APP20_IN_GAA(.(T36, T38), T39, .(T36, X53)) → U2_GAA(T36, T38, T39, X53, app20_in_gaa(T38, T39, X53))
APP20_IN_GAA(.(T36, T38), T39, .(T36, X53)) → APP20_IN_GAA(T38, T39, X53)
APP20_IN_GAA(.(T45, T47), T48, .(T45, X53)) → U3_GAA(T45, T47, T48, X53, app20_in_gaa(T47, T48, X53))
GOAL1_IN_GAA(T4, T16, T49) → U11_GAA(T4, T16, T49, s2l4_in_ga(T4, T15))
U11_GAA(T4, T16, T49, s2l4_out_ga(T4, T15)) → U12_GAA(T4, T16, T49, app20_in_gag(T15, T16, .(T49, [])))
U11_GAA(T4, T16, T49, s2l4_out_ga(T4, T15)) → APP20_IN_GAG(T15, T16, .(T49, []))
APP20_IN_GAG(.(T36, T38), T39, .(T36, X53)) → U2_GAG(T36, T38, T39, X53, app20_in_gag(T38, T39, X53))
APP20_IN_GAG(.(T36, T38), T39, .(T36, X53)) → APP20_IN_GAG(T38, T39, X53)
APP20_IN_GAG(.(T45, T47), T48, .(T45, X53)) → U3_GAG(T45, T47, T48, X53, app20_in_gag(T47, T48, X53))
GOAL1_IN_GAA(T4, T16, T56) → U13_GAA(T4, T16, T56, s2l4_in_ga(T4, T15))
U13_GAA(T4, T16, T56, s2l4_out_ga(T4, T15)) → U14_GAA(T4, T16, T56, app20_in_gag(T15, T16, []))
U13_GAA(T4, T16, T56, s2l4_out_ga(T4, T15)) → APP20_IN_GAG(T15, T16, [])
U14_GAA(T4, T16, T56, app20_out_gag(T15, T16, [])) → U15_GAA(T4, T16, T56, last63_in_a(T56))
U14_GAA(T4, T16, T56, app20_out_gag(T15, T16, [])) → LAST63_IN_A(T56)
LAST63_IN_A(T56) → U4_A(T56, last63_in_a(T56))
LAST63_IN_A(T56) → LAST63_IN_A(T56)
GOAL1_IN_GAA(T4, T16, T59) → U16_GAA(T4, T16, T59, s2l4_in_ga(T4, T15))
U16_GAA(T4, T16, T59, s2l4_out_ga(T4, T15)) → U17_GAA(T4, T16, T59, app20_in_gaa(T15, T16, .(T57, T60)))
U16_GAA(T4, T16, T59, s2l4_out_ga(T4, T15)) → APP20_IN_GAA(T15, T16, .(T57, T60))
U17_GAA(T4, T16, T59, app20_out_gaa(T15, T16, .(T57, T60))) → U18_GAA(T4, T16, T59, last21_in_ag(T59, T60))
U17_GAA(T4, T16, T59, app20_out_gaa(T15, T16, .(T57, T60))) → LAST21_IN_AG(T59, T60)
LAST21_IN_AG(T56, []) → U5_AG(T56, last63_in_a(T56))
LAST21_IN_AG(T56, []) → LAST63_IN_A(T56)
LAST21_IN_AG(T59, .(T57, T60)) → U6_AG(T59, T57, T60, last21_in_ag(T59, T60))
LAST21_IN_AG(T59, .(T57, T60)) → LAST21_IN_AG(T59, T60)
LAST21_IN_AG(T63, .(T61, T64)) → U7_AG(T63, T61, T64, last21_in_ag(T63, T64))
GOAL1_IN_GAA(T4, T16, T63) → U19_GAA(T4, T16, T63, s2l4_in_ga(T4, T15))
U19_GAA(T4, T16, T63, s2l4_out_ga(T4, T15)) → U20_GAA(T4, T16, T63, app20_in_gaa(T15, T16, .(T61, T64)))
U19_GAA(T4, T16, T63, s2l4_out_ga(T4, T15)) → APP20_IN_GAA(T15, T16, .(T61, T64))
U20_GAA(T4, T16, T63, app20_out_gaa(T15, T16, .(T61, T64))) → U21_GAA(T4, T16, T63, last21_in_ag(T63, T64))
U20_GAA(T4, T16, T63, app20_out_gaa(T15, T16, .(T61, T64))) → LAST21_IN_AG(T63, T64)
goal1_in_gaa(T4, T7, T8) → U8_gaa(T4, T7, T8, s2l4_in_ga(T4, X11))
s2l4_in_ga(0, []) → s2l4_out_ga(0, [])
s2l4_in_ga(s(T11), .(X25, X26)) → U1_ga(T11, X25, X26, s2l4_in_ga(T11, X26))
U1_ga(T11, X25, X26, s2l4_out_ga(T11, X26)) → s2l4_out_ga(s(T11), .(X25, X26))
U8_gaa(T4, T7, T8, s2l4_out_ga(T4, X11)) → goal1_out_gaa(T4, T7, T8)
goal1_in_gaa(T4, T16, T17) → U9_gaa(T4, T16, T17, s2l4_in_ga(T4, T15))
U9_gaa(T4, T16, T17, s2l4_out_ga(T4, T15)) → U10_gaa(T4, T16, T17, app20_in_gaa(T15, T16, X35))
app20_in_gaa([], T22, .(T22, [])) → app20_out_gaa([], T22, .(T22, []))
app20_in_gaa([], T30, .(X56, .(T30, []))) → app20_out_gaa([], T30, .(X56, .(T30, [])))
app20_in_gaa(.(T36, T38), T39, .(T36, X53)) → U2_gaa(T36, T38, T39, X53, app20_in_gaa(T38, T39, X53))
app20_in_gaa(.(T45, T47), T48, .(T45, X53)) → U3_gaa(T45, T47, T48, X53, app20_in_gaa(T47, T48, X53))
U3_gaa(T45, T47, T48, X53, app20_out_gaa(T47, T48, X53)) → app20_out_gaa(.(T45, T47), T48, .(T45, X53))
U2_gaa(T36, T38, T39, X53, app20_out_gaa(T38, T39, X53)) → app20_out_gaa(.(T36, T38), T39, .(T36, X53))
U10_gaa(T4, T16, T17, app20_out_gaa(T15, T16, X35)) → goal1_out_gaa(T4, T16, T17)
goal1_in_gaa(T4, T16, T49) → U11_gaa(T4, T16, T49, s2l4_in_ga(T4, T15))
U11_gaa(T4, T16, T49, s2l4_out_ga(T4, T15)) → U12_gaa(T4, T16, T49, app20_in_gag(T15, T16, .(T49, [])))
app20_in_gag([], T22, .(T22, [])) → app20_out_gag([], T22, .(T22, []))
app20_in_gag([], T30, .(X56, .(T30, []))) → app20_out_gag([], T30, .(X56, .(T30, [])))
app20_in_gag(.(T36, T38), T39, .(T36, X53)) → U2_gag(T36, T38, T39, X53, app20_in_gag(T38, T39, X53))
app20_in_gag(.(T45, T47), T48, .(T45, X53)) → U3_gag(T45, T47, T48, X53, app20_in_gag(T47, T48, X53))
U3_gag(T45, T47, T48, X53, app20_out_gag(T47, T48, X53)) → app20_out_gag(.(T45, T47), T48, .(T45, X53))
U2_gag(T36, T38, T39, X53, app20_out_gag(T38, T39, X53)) → app20_out_gag(.(T36, T38), T39, .(T36, X53))
U12_gaa(T4, T16, T49, app20_out_gag(T15, T16, .(T49, []))) → goal1_out_gaa(T4, T16, T49)
goal1_in_gaa(T4, T16, T56) → U13_gaa(T4, T16, T56, s2l4_in_ga(T4, T15))
U13_gaa(T4, T16, T56, s2l4_out_ga(T4, T15)) → U14_gaa(T4, T16, T56, app20_in_gag(T15, T16, []))
U14_gaa(T4, T16, T56, app20_out_gag(T15, T16, [])) → U15_gaa(T4, T16, T56, last63_in_a(T56))
last63_in_a(T56) → U4_a(T56, last63_in_a(T56))
U4_a(T56, last63_out_a(T56)) → last63_out_a(T56)
U15_gaa(T4, T16, T56, last63_out_a(T56)) → goal1_out_gaa(T4, T16, T56)
goal1_in_gaa(T4, T16, T59) → U16_gaa(T4, T16, T59, s2l4_in_ga(T4, T15))
U16_gaa(T4, T16, T59, s2l4_out_ga(T4, T15)) → U17_gaa(T4, T16, T59, app20_in_gaa(T15, T16, .(T57, T60)))
U17_gaa(T4, T16, T59, app20_out_gaa(T15, T16, .(T57, T60))) → U18_gaa(T4, T16, T59, last21_in_ag(T59, T60))
last21_in_ag(T49, .(T49, [])) → last21_out_ag(T49, .(T49, []))
last21_in_ag(T56, []) → U5_ag(T56, last63_in_a(T56))
U5_ag(T56, last63_out_a(T56)) → last21_out_ag(T56, [])
last21_in_ag(T59, .(T57, T60)) → U6_ag(T59, T57, T60, last21_in_ag(T59, T60))
last21_in_ag(T63, .(T61, T64)) → U7_ag(T63, T61, T64, last21_in_ag(T63, T64))
U7_ag(T63, T61, T64, last21_out_ag(T63, T64)) → last21_out_ag(T63, .(T61, T64))
U6_ag(T59, T57, T60, last21_out_ag(T59, T60)) → last21_out_ag(T59, .(T57, T60))
U18_gaa(T4, T16, T59, last21_out_ag(T59, T60)) → goal1_out_gaa(T4, T16, T59)
goal1_in_gaa(T4, T16, T63) → U19_gaa(T4, T16, T63, s2l4_in_ga(T4, T15))
U19_gaa(T4, T16, T63, s2l4_out_ga(T4, T15)) → U20_gaa(T4, T16, T63, app20_in_gaa(T15, T16, .(T61, T64)))
U20_gaa(T4, T16, T63, app20_out_gaa(T15, T16, .(T61, T64))) → U21_gaa(T4, T16, T63, last21_in_ag(T63, T64))
U21_gaa(T4, T16, T63, last21_out_ag(T63, T64)) → goal1_out_gaa(T4, T16, T63)
GOAL1_IN_GAA(T4, T7, T8) → U8_GAA(T4, T7, T8, s2l4_in_ga(T4, X11))
GOAL1_IN_GAA(T4, T7, T8) → S2L4_IN_GA(T4, X11)
S2L4_IN_GA(s(T11), .(X25, X26)) → U1_GA(T11, X25, X26, s2l4_in_ga(T11, X26))
S2L4_IN_GA(s(T11), .(X25, X26)) → S2L4_IN_GA(T11, X26)
GOAL1_IN_GAA(T4, T16, T17) → U9_GAA(T4, T16, T17, s2l4_in_ga(T4, T15))
U9_GAA(T4, T16, T17, s2l4_out_ga(T4, T15)) → U10_GAA(T4, T16, T17, app20_in_gaa(T15, T16, X35))
U9_GAA(T4, T16, T17, s2l4_out_ga(T4, T15)) → APP20_IN_GAA(T15, T16, X35)
APP20_IN_GAA(.(T36, T38), T39, .(T36, X53)) → U2_GAA(T36, T38, T39, X53, app20_in_gaa(T38, T39, X53))
APP20_IN_GAA(.(T36, T38), T39, .(T36, X53)) → APP20_IN_GAA(T38, T39, X53)
APP20_IN_GAA(.(T45, T47), T48, .(T45, X53)) → U3_GAA(T45, T47, T48, X53, app20_in_gaa(T47, T48, X53))
GOAL1_IN_GAA(T4, T16, T49) → U11_GAA(T4, T16, T49, s2l4_in_ga(T4, T15))
U11_GAA(T4, T16, T49, s2l4_out_ga(T4, T15)) → U12_GAA(T4, T16, T49, app20_in_gag(T15, T16, .(T49, [])))
U11_GAA(T4, T16, T49, s2l4_out_ga(T4, T15)) → APP20_IN_GAG(T15, T16, .(T49, []))
APP20_IN_GAG(.(T36, T38), T39, .(T36, X53)) → U2_GAG(T36, T38, T39, X53, app20_in_gag(T38, T39, X53))
APP20_IN_GAG(.(T36, T38), T39, .(T36, X53)) → APP20_IN_GAG(T38, T39, X53)
APP20_IN_GAG(.(T45, T47), T48, .(T45, X53)) → U3_GAG(T45, T47, T48, X53, app20_in_gag(T47, T48, X53))
GOAL1_IN_GAA(T4, T16, T56) → U13_GAA(T4, T16, T56, s2l4_in_ga(T4, T15))
U13_GAA(T4, T16, T56, s2l4_out_ga(T4, T15)) → U14_GAA(T4, T16, T56, app20_in_gag(T15, T16, []))
U13_GAA(T4, T16, T56, s2l4_out_ga(T4, T15)) → APP20_IN_GAG(T15, T16, [])
U14_GAA(T4, T16, T56, app20_out_gag(T15, T16, [])) → U15_GAA(T4, T16, T56, last63_in_a(T56))
U14_GAA(T4, T16, T56, app20_out_gag(T15, T16, [])) → LAST63_IN_A(T56)
LAST63_IN_A(T56) → U4_A(T56, last63_in_a(T56))
LAST63_IN_A(T56) → LAST63_IN_A(T56)
GOAL1_IN_GAA(T4, T16, T59) → U16_GAA(T4, T16, T59, s2l4_in_ga(T4, T15))
U16_GAA(T4, T16, T59, s2l4_out_ga(T4, T15)) → U17_GAA(T4, T16, T59, app20_in_gaa(T15, T16, .(T57, T60)))
U16_GAA(T4, T16, T59, s2l4_out_ga(T4, T15)) → APP20_IN_GAA(T15, T16, .(T57, T60))
U17_GAA(T4, T16, T59, app20_out_gaa(T15, T16, .(T57, T60))) → U18_GAA(T4, T16, T59, last21_in_ag(T59, T60))
U17_GAA(T4, T16, T59, app20_out_gaa(T15, T16, .(T57, T60))) → LAST21_IN_AG(T59, T60)
LAST21_IN_AG(T56, []) → U5_AG(T56, last63_in_a(T56))
LAST21_IN_AG(T56, []) → LAST63_IN_A(T56)
LAST21_IN_AG(T59, .(T57, T60)) → U6_AG(T59, T57, T60, last21_in_ag(T59, T60))
LAST21_IN_AG(T59, .(T57, T60)) → LAST21_IN_AG(T59, T60)
LAST21_IN_AG(T63, .(T61, T64)) → U7_AG(T63, T61, T64, last21_in_ag(T63, T64))
GOAL1_IN_GAA(T4, T16, T63) → U19_GAA(T4, T16, T63, s2l4_in_ga(T4, T15))
U19_GAA(T4, T16, T63, s2l4_out_ga(T4, T15)) → U20_GAA(T4, T16, T63, app20_in_gaa(T15, T16, .(T61, T64)))
U19_GAA(T4, T16, T63, s2l4_out_ga(T4, T15)) → APP20_IN_GAA(T15, T16, .(T61, T64))
U20_GAA(T4, T16, T63, app20_out_gaa(T15, T16, .(T61, T64))) → U21_GAA(T4, T16, T63, last21_in_ag(T63, T64))
U20_GAA(T4, T16, T63, app20_out_gaa(T15, T16, .(T61, T64))) → LAST21_IN_AG(T63, T64)
goal1_in_gaa(T4, T7, T8) → U8_gaa(T4, T7, T8, s2l4_in_ga(T4, X11))
s2l4_in_ga(0, []) → s2l4_out_ga(0, [])
s2l4_in_ga(s(T11), .(X25, X26)) → U1_ga(T11, X25, X26, s2l4_in_ga(T11, X26))
U1_ga(T11, X25, X26, s2l4_out_ga(T11, X26)) → s2l4_out_ga(s(T11), .(X25, X26))
U8_gaa(T4, T7, T8, s2l4_out_ga(T4, X11)) → goal1_out_gaa(T4, T7, T8)
goal1_in_gaa(T4, T16, T17) → U9_gaa(T4, T16, T17, s2l4_in_ga(T4, T15))
U9_gaa(T4, T16, T17, s2l4_out_ga(T4, T15)) → U10_gaa(T4, T16, T17, app20_in_gaa(T15, T16, X35))
app20_in_gaa([], T22, .(T22, [])) → app20_out_gaa([], T22, .(T22, []))
app20_in_gaa([], T30, .(X56, .(T30, []))) → app20_out_gaa([], T30, .(X56, .(T30, [])))
app20_in_gaa(.(T36, T38), T39, .(T36, X53)) → U2_gaa(T36, T38, T39, X53, app20_in_gaa(T38, T39, X53))
app20_in_gaa(.(T45, T47), T48, .(T45, X53)) → U3_gaa(T45, T47, T48, X53, app20_in_gaa(T47, T48, X53))
U3_gaa(T45, T47, T48, X53, app20_out_gaa(T47, T48, X53)) → app20_out_gaa(.(T45, T47), T48, .(T45, X53))
U2_gaa(T36, T38, T39, X53, app20_out_gaa(T38, T39, X53)) → app20_out_gaa(.(T36, T38), T39, .(T36, X53))
U10_gaa(T4, T16, T17, app20_out_gaa(T15, T16, X35)) → goal1_out_gaa(T4, T16, T17)
goal1_in_gaa(T4, T16, T49) → U11_gaa(T4, T16, T49, s2l4_in_ga(T4, T15))
U11_gaa(T4, T16, T49, s2l4_out_ga(T4, T15)) → U12_gaa(T4, T16, T49, app20_in_gag(T15, T16, .(T49, [])))
app20_in_gag([], T22, .(T22, [])) → app20_out_gag([], T22, .(T22, []))
app20_in_gag([], T30, .(X56, .(T30, []))) → app20_out_gag([], T30, .(X56, .(T30, [])))
app20_in_gag(.(T36, T38), T39, .(T36, X53)) → U2_gag(T36, T38, T39, X53, app20_in_gag(T38, T39, X53))
app20_in_gag(.(T45, T47), T48, .(T45, X53)) → U3_gag(T45, T47, T48, X53, app20_in_gag(T47, T48, X53))
U3_gag(T45, T47, T48, X53, app20_out_gag(T47, T48, X53)) → app20_out_gag(.(T45, T47), T48, .(T45, X53))
U2_gag(T36, T38, T39, X53, app20_out_gag(T38, T39, X53)) → app20_out_gag(.(T36, T38), T39, .(T36, X53))
U12_gaa(T4, T16, T49, app20_out_gag(T15, T16, .(T49, []))) → goal1_out_gaa(T4, T16, T49)
goal1_in_gaa(T4, T16, T56) → U13_gaa(T4, T16, T56, s2l4_in_ga(T4, T15))
U13_gaa(T4, T16, T56, s2l4_out_ga(T4, T15)) → U14_gaa(T4, T16, T56, app20_in_gag(T15, T16, []))
U14_gaa(T4, T16, T56, app20_out_gag(T15, T16, [])) → U15_gaa(T4, T16, T56, last63_in_a(T56))
last63_in_a(T56) → U4_a(T56, last63_in_a(T56))
U4_a(T56, last63_out_a(T56)) → last63_out_a(T56)
U15_gaa(T4, T16, T56, last63_out_a(T56)) → goal1_out_gaa(T4, T16, T56)
goal1_in_gaa(T4, T16, T59) → U16_gaa(T4, T16, T59, s2l4_in_ga(T4, T15))
U16_gaa(T4, T16, T59, s2l4_out_ga(T4, T15)) → U17_gaa(T4, T16, T59, app20_in_gaa(T15, T16, .(T57, T60)))
U17_gaa(T4, T16, T59, app20_out_gaa(T15, T16, .(T57, T60))) → U18_gaa(T4, T16, T59, last21_in_ag(T59, T60))
last21_in_ag(T49, .(T49, [])) → last21_out_ag(T49, .(T49, []))
last21_in_ag(T56, []) → U5_ag(T56, last63_in_a(T56))
U5_ag(T56, last63_out_a(T56)) → last21_out_ag(T56, [])
last21_in_ag(T59, .(T57, T60)) → U6_ag(T59, T57, T60, last21_in_ag(T59, T60))
last21_in_ag(T63, .(T61, T64)) → U7_ag(T63, T61, T64, last21_in_ag(T63, T64))
U7_ag(T63, T61, T64, last21_out_ag(T63, T64)) → last21_out_ag(T63, .(T61, T64))
U6_ag(T59, T57, T60, last21_out_ag(T59, T60)) → last21_out_ag(T59, .(T57, T60))
U18_gaa(T4, T16, T59, last21_out_ag(T59, T60)) → goal1_out_gaa(T4, T16, T59)
goal1_in_gaa(T4, T16, T63) → U19_gaa(T4, T16, T63, s2l4_in_ga(T4, T15))
U19_gaa(T4, T16, T63, s2l4_out_ga(T4, T15)) → U20_gaa(T4, T16, T63, app20_in_gaa(T15, T16, .(T61, T64)))
U20_gaa(T4, T16, T63, app20_out_gaa(T15, T16, .(T61, T64))) → U21_gaa(T4, T16, T63, last21_in_ag(T63, T64))
U21_gaa(T4, T16, T63, last21_out_ag(T63, T64)) → goal1_out_gaa(T4, T16, T63)
LAST63_IN_A(T56) → LAST63_IN_A(T56)
goal1_in_gaa(T4, T7, T8) → U8_gaa(T4, T7, T8, s2l4_in_ga(T4, X11))
s2l4_in_ga(0, []) → s2l4_out_ga(0, [])
s2l4_in_ga(s(T11), .(X25, X26)) → U1_ga(T11, X25, X26, s2l4_in_ga(T11, X26))
U1_ga(T11, X25, X26, s2l4_out_ga(T11, X26)) → s2l4_out_ga(s(T11), .(X25, X26))
U8_gaa(T4, T7, T8, s2l4_out_ga(T4, X11)) → goal1_out_gaa(T4, T7, T8)
goal1_in_gaa(T4, T16, T17) → U9_gaa(T4, T16, T17, s2l4_in_ga(T4, T15))
U9_gaa(T4, T16, T17, s2l4_out_ga(T4, T15)) → U10_gaa(T4, T16, T17, app20_in_gaa(T15, T16, X35))
app20_in_gaa([], T22, .(T22, [])) → app20_out_gaa([], T22, .(T22, []))
app20_in_gaa([], T30, .(X56, .(T30, []))) → app20_out_gaa([], T30, .(X56, .(T30, [])))
app20_in_gaa(.(T36, T38), T39, .(T36, X53)) → U2_gaa(T36, T38, T39, X53, app20_in_gaa(T38, T39, X53))
app20_in_gaa(.(T45, T47), T48, .(T45, X53)) → U3_gaa(T45, T47, T48, X53, app20_in_gaa(T47, T48, X53))
U3_gaa(T45, T47, T48, X53, app20_out_gaa(T47, T48, X53)) → app20_out_gaa(.(T45, T47), T48, .(T45, X53))
U2_gaa(T36, T38, T39, X53, app20_out_gaa(T38, T39, X53)) → app20_out_gaa(.(T36, T38), T39, .(T36, X53))
U10_gaa(T4, T16, T17, app20_out_gaa(T15, T16, X35)) → goal1_out_gaa(T4, T16, T17)
goal1_in_gaa(T4, T16, T49) → U11_gaa(T4, T16, T49, s2l4_in_ga(T4, T15))
U11_gaa(T4, T16, T49, s2l4_out_ga(T4, T15)) → U12_gaa(T4, T16, T49, app20_in_gag(T15, T16, .(T49, [])))
app20_in_gag([], T22, .(T22, [])) → app20_out_gag([], T22, .(T22, []))
app20_in_gag([], T30, .(X56, .(T30, []))) → app20_out_gag([], T30, .(X56, .(T30, [])))
app20_in_gag(.(T36, T38), T39, .(T36, X53)) → U2_gag(T36, T38, T39, X53, app20_in_gag(T38, T39, X53))
app20_in_gag(.(T45, T47), T48, .(T45, X53)) → U3_gag(T45, T47, T48, X53, app20_in_gag(T47, T48, X53))
U3_gag(T45, T47, T48, X53, app20_out_gag(T47, T48, X53)) → app20_out_gag(.(T45, T47), T48, .(T45, X53))
U2_gag(T36, T38, T39, X53, app20_out_gag(T38, T39, X53)) → app20_out_gag(.(T36, T38), T39, .(T36, X53))
U12_gaa(T4, T16, T49, app20_out_gag(T15, T16, .(T49, []))) → goal1_out_gaa(T4, T16, T49)
goal1_in_gaa(T4, T16, T56) → U13_gaa(T4, T16, T56, s2l4_in_ga(T4, T15))
U13_gaa(T4, T16, T56, s2l4_out_ga(T4, T15)) → U14_gaa(T4, T16, T56, app20_in_gag(T15, T16, []))
U14_gaa(T4, T16, T56, app20_out_gag(T15, T16, [])) → U15_gaa(T4, T16, T56, last63_in_a(T56))
last63_in_a(T56) → U4_a(T56, last63_in_a(T56))
U4_a(T56, last63_out_a(T56)) → last63_out_a(T56)
U15_gaa(T4, T16, T56, last63_out_a(T56)) → goal1_out_gaa(T4, T16, T56)
goal1_in_gaa(T4, T16, T59) → U16_gaa(T4, T16, T59, s2l4_in_ga(T4, T15))
U16_gaa(T4, T16, T59, s2l4_out_ga(T4, T15)) → U17_gaa(T4, T16, T59, app20_in_gaa(T15, T16, .(T57, T60)))
U17_gaa(T4, T16, T59, app20_out_gaa(T15, T16, .(T57, T60))) → U18_gaa(T4, T16, T59, last21_in_ag(T59, T60))
last21_in_ag(T49, .(T49, [])) → last21_out_ag(T49, .(T49, []))
last21_in_ag(T56, []) → U5_ag(T56, last63_in_a(T56))
U5_ag(T56, last63_out_a(T56)) → last21_out_ag(T56, [])
last21_in_ag(T59, .(T57, T60)) → U6_ag(T59, T57, T60, last21_in_ag(T59, T60))
last21_in_ag(T63, .(T61, T64)) → U7_ag(T63, T61, T64, last21_in_ag(T63, T64))
U7_ag(T63, T61, T64, last21_out_ag(T63, T64)) → last21_out_ag(T63, .(T61, T64))
U6_ag(T59, T57, T60, last21_out_ag(T59, T60)) → last21_out_ag(T59, .(T57, T60))
U18_gaa(T4, T16, T59, last21_out_ag(T59, T60)) → goal1_out_gaa(T4, T16, T59)
goal1_in_gaa(T4, T16, T63) → U19_gaa(T4, T16, T63, s2l4_in_ga(T4, T15))
U19_gaa(T4, T16, T63, s2l4_out_ga(T4, T15)) → U20_gaa(T4, T16, T63, app20_in_gaa(T15, T16, .(T61, T64)))
U20_gaa(T4, T16, T63, app20_out_gaa(T15, T16, .(T61, T64))) → U21_gaa(T4, T16, T63, last21_in_ag(T63, T64))
U21_gaa(T4, T16, T63, last21_out_ag(T63, T64)) → goal1_out_gaa(T4, T16, T63)
LAST63_IN_A(T56) → LAST63_IN_A(T56)
LAST63_IN_A → LAST63_IN_A
LAST21_IN_AG(T59, .(T57, T60)) → LAST21_IN_AG(T59, T60)
goal1_in_gaa(T4, T7, T8) → U8_gaa(T4, T7, T8, s2l4_in_ga(T4, X11))
s2l4_in_ga(0, []) → s2l4_out_ga(0, [])
s2l4_in_ga(s(T11), .(X25, X26)) → U1_ga(T11, X25, X26, s2l4_in_ga(T11, X26))
U1_ga(T11, X25, X26, s2l4_out_ga(T11, X26)) → s2l4_out_ga(s(T11), .(X25, X26))
U8_gaa(T4, T7, T8, s2l4_out_ga(T4, X11)) → goal1_out_gaa(T4, T7, T8)
goal1_in_gaa(T4, T16, T17) → U9_gaa(T4, T16, T17, s2l4_in_ga(T4, T15))
U9_gaa(T4, T16, T17, s2l4_out_ga(T4, T15)) → U10_gaa(T4, T16, T17, app20_in_gaa(T15, T16, X35))
app20_in_gaa([], T22, .(T22, [])) → app20_out_gaa([], T22, .(T22, []))
app20_in_gaa([], T30, .(X56, .(T30, []))) → app20_out_gaa([], T30, .(X56, .(T30, [])))
app20_in_gaa(.(T36, T38), T39, .(T36, X53)) → U2_gaa(T36, T38, T39, X53, app20_in_gaa(T38, T39, X53))
app20_in_gaa(.(T45, T47), T48, .(T45, X53)) → U3_gaa(T45, T47, T48, X53, app20_in_gaa(T47, T48, X53))
U3_gaa(T45, T47, T48, X53, app20_out_gaa(T47, T48, X53)) → app20_out_gaa(.(T45, T47), T48, .(T45, X53))
U2_gaa(T36, T38, T39, X53, app20_out_gaa(T38, T39, X53)) → app20_out_gaa(.(T36, T38), T39, .(T36, X53))
U10_gaa(T4, T16, T17, app20_out_gaa(T15, T16, X35)) → goal1_out_gaa(T4, T16, T17)
goal1_in_gaa(T4, T16, T49) → U11_gaa(T4, T16, T49, s2l4_in_ga(T4, T15))
U11_gaa(T4, T16, T49, s2l4_out_ga(T4, T15)) → U12_gaa(T4, T16, T49, app20_in_gag(T15, T16, .(T49, [])))
app20_in_gag([], T22, .(T22, [])) → app20_out_gag([], T22, .(T22, []))
app20_in_gag([], T30, .(X56, .(T30, []))) → app20_out_gag([], T30, .(X56, .(T30, [])))
app20_in_gag(.(T36, T38), T39, .(T36, X53)) → U2_gag(T36, T38, T39, X53, app20_in_gag(T38, T39, X53))
app20_in_gag(.(T45, T47), T48, .(T45, X53)) → U3_gag(T45, T47, T48, X53, app20_in_gag(T47, T48, X53))
U3_gag(T45, T47, T48, X53, app20_out_gag(T47, T48, X53)) → app20_out_gag(.(T45, T47), T48, .(T45, X53))
U2_gag(T36, T38, T39, X53, app20_out_gag(T38, T39, X53)) → app20_out_gag(.(T36, T38), T39, .(T36, X53))
U12_gaa(T4, T16, T49, app20_out_gag(T15, T16, .(T49, []))) → goal1_out_gaa(T4, T16, T49)
goal1_in_gaa(T4, T16, T56) → U13_gaa(T4, T16, T56, s2l4_in_ga(T4, T15))
U13_gaa(T4, T16, T56, s2l4_out_ga(T4, T15)) → U14_gaa(T4, T16, T56, app20_in_gag(T15, T16, []))
U14_gaa(T4, T16, T56, app20_out_gag(T15, T16, [])) → U15_gaa(T4, T16, T56, last63_in_a(T56))
last63_in_a(T56) → U4_a(T56, last63_in_a(T56))
U4_a(T56, last63_out_a(T56)) → last63_out_a(T56)
U15_gaa(T4, T16, T56, last63_out_a(T56)) → goal1_out_gaa(T4, T16, T56)
goal1_in_gaa(T4, T16, T59) → U16_gaa(T4, T16, T59, s2l4_in_ga(T4, T15))
U16_gaa(T4, T16, T59, s2l4_out_ga(T4, T15)) → U17_gaa(T4, T16, T59, app20_in_gaa(T15, T16, .(T57, T60)))
U17_gaa(T4, T16, T59, app20_out_gaa(T15, T16, .(T57, T60))) → U18_gaa(T4, T16, T59, last21_in_ag(T59, T60))
last21_in_ag(T49, .(T49, [])) → last21_out_ag(T49, .(T49, []))
last21_in_ag(T56, []) → U5_ag(T56, last63_in_a(T56))
U5_ag(T56, last63_out_a(T56)) → last21_out_ag(T56, [])
last21_in_ag(T59, .(T57, T60)) → U6_ag(T59, T57, T60, last21_in_ag(T59, T60))
last21_in_ag(T63, .(T61, T64)) → U7_ag(T63, T61, T64, last21_in_ag(T63, T64))
U7_ag(T63, T61, T64, last21_out_ag(T63, T64)) → last21_out_ag(T63, .(T61, T64))
U6_ag(T59, T57, T60, last21_out_ag(T59, T60)) → last21_out_ag(T59, .(T57, T60))
U18_gaa(T4, T16, T59, last21_out_ag(T59, T60)) → goal1_out_gaa(T4, T16, T59)
goal1_in_gaa(T4, T16, T63) → U19_gaa(T4, T16, T63, s2l4_in_ga(T4, T15))
U19_gaa(T4, T16, T63, s2l4_out_ga(T4, T15)) → U20_gaa(T4, T16, T63, app20_in_gaa(T15, T16, .(T61, T64)))
U20_gaa(T4, T16, T63, app20_out_gaa(T15, T16, .(T61, T64))) → U21_gaa(T4, T16, T63, last21_in_ag(T63, T64))
U21_gaa(T4, T16, T63, last21_out_ag(T63, T64)) → goal1_out_gaa(T4, T16, T63)
LAST21_IN_AG(T59, .(T57, T60)) → LAST21_IN_AG(T59, T60)
LAST21_IN_AG(.(T60)) → LAST21_IN_AG(T60)
From the DPs we obtained the following set of size-change graphs:
APP20_IN_GAG(.(T36, T38), T39, .(T36, X53)) → APP20_IN_GAG(T38, T39, X53)
goal1_in_gaa(T4, T7, T8) → U8_gaa(T4, T7, T8, s2l4_in_ga(T4, X11))
s2l4_in_ga(0, []) → s2l4_out_ga(0, [])
s2l4_in_ga(s(T11), .(X25, X26)) → U1_ga(T11, X25, X26, s2l4_in_ga(T11, X26))
U1_ga(T11, X25, X26, s2l4_out_ga(T11, X26)) → s2l4_out_ga(s(T11), .(X25, X26))
U8_gaa(T4, T7, T8, s2l4_out_ga(T4, X11)) → goal1_out_gaa(T4, T7, T8)
goal1_in_gaa(T4, T16, T17) → U9_gaa(T4, T16, T17, s2l4_in_ga(T4, T15))
U9_gaa(T4, T16, T17, s2l4_out_ga(T4, T15)) → U10_gaa(T4, T16, T17, app20_in_gaa(T15, T16, X35))
app20_in_gaa([], T22, .(T22, [])) → app20_out_gaa([], T22, .(T22, []))
app20_in_gaa([], T30, .(X56, .(T30, []))) → app20_out_gaa([], T30, .(X56, .(T30, [])))
app20_in_gaa(.(T36, T38), T39, .(T36, X53)) → U2_gaa(T36, T38, T39, X53, app20_in_gaa(T38, T39, X53))
app20_in_gaa(.(T45, T47), T48, .(T45, X53)) → U3_gaa(T45, T47, T48, X53, app20_in_gaa(T47, T48, X53))
U3_gaa(T45, T47, T48, X53, app20_out_gaa(T47, T48, X53)) → app20_out_gaa(.(T45, T47), T48, .(T45, X53))
U2_gaa(T36, T38, T39, X53, app20_out_gaa(T38, T39, X53)) → app20_out_gaa(.(T36, T38), T39, .(T36, X53))
U10_gaa(T4, T16, T17, app20_out_gaa(T15, T16, X35)) → goal1_out_gaa(T4, T16, T17)
goal1_in_gaa(T4, T16, T49) → U11_gaa(T4, T16, T49, s2l4_in_ga(T4, T15))
U11_gaa(T4, T16, T49, s2l4_out_ga(T4, T15)) → U12_gaa(T4, T16, T49, app20_in_gag(T15, T16, .(T49, [])))
app20_in_gag([], T22, .(T22, [])) → app20_out_gag([], T22, .(T22, []))
app20_in_gag([], T30, .(X56, .(T30, []))) → app20_out_gag([], T30, .(X56, .(T30, [])))
app20_in_gag(.(T36, T38), T39, .(T36, X53)) → U2_gag(T36, T38, T39, X53, app20_in_gag(T38, T39, X53))
app20_in_gag(.(T45, T47), T48, .(T45, X53)) → U3_gag(T45, T47, T48, X53, app20_in_gag(T47, T48, X53))
U3_gag(T45, T47, T48, X53, app20_out_gag(T47, T48, X53)) → app20_out_gag(.(T45, T47), T48, .(T45, X53))
U2_gag(T36, T38, T39, X53, app20_out_gag(T38, T39, X53)) → app20_out_gag(.(T36, T38), T39, .(T36, X53))
U12_gaa(T4, T16, T49, app20_out_gag(T15, T16, .(T49, []))) → goal1_out_gaa(T4, T16, T49)
goal1_in_gaa(T4, T16, T56) → U13_gaa(T4, T16, T56, s2l4_in_ga(T4, T15))
U13_gaa(T4, T16, T56, s2l4_out_ga(T4, T15)) → U14_gaa(T4, T16, T56, app20_in_gag(T15, T16, []))
U14_gaa(T4, T16, T56, app20_out_gag(T15, T16, [])) → U15_gaa(T4, T16, T56, last63_in_a(T56))
last63_in_a(T56) → U4_a(T56, last63_in_a(T56))
U4_a(T56, last63_out_a(T56)) → last63_out_a(T56)
U15_gaa(T4, T16, T56, last63_out_a(T56)) → goal1_out_gaa(T4, T16, T56)
goal1_in_gaa(T4, T16, T59) → U16_gaa(T4, T16, T59, s2l4_in_ga(T4, T15))
U16_gaa(T4, T16, T59, s2l4_out_ga(T4, T15)) → U17_gaa(T4, T16, T59, app20_in_gaa(T15, T16, .(T57, T60)))
U17_gaa(T4, T16, T59, app20_out_gaa(T15, T16, .(T57, T60))) → U18_gaa(T4, T16, T59, last21_in_ag(T59, T60))
last21_in_ag(T49, .(T49, [])) → last21_out_ag(T49, .(T49, []))
last21_in_ag(T56, []) → U5_ag(T56, last63_in_a(T56))
U5_ag(T56, last63_out_a(T56)) → last21_out_ag(T56, [])
last21_in_ag(T59, .(T57, T60)) → U6_ag(T59, T57, T60, last21_in_ag(T59, T60))
last21_in_ag(T63, .(T61, T64)) → U7_ag(T63, T61, T64, last21_in_ag(T63, T64))
U7_ag(T63, T61, T64, last21_out_ag(T63, T64)) → last21_out_ag(T63, .(T61, T64))
U6_ag(T59, T57, T60, last21_out_ag(T59, T60)) → last21_out_ag(T59, .(T57, T60))
U18_gaa(T4, T16, T59, last21_out_ag(T59, T60)) → goal1_out_gaa(T4, T16, T59)
goal1_in_gaa(T4, T16, T63) → U19_gaa(T4, T16, T63, s2l4_in_ga(T4, T15))
U19_gaa(T4, T16, T63, s2l4_out_ga(T4, T15)) → U20_gaa(T4, T16, T63, app20_in_gaa(T15, T16, .(T61, T64)))
U20_gaa(T4, T16, T63, app20_out_gaa(T15, T16, .(T61, T64))) → U21_gaa(T4, T16, T63, last21_in_ag(T63, T64))
U21_gaa(T4, T16, T63, last21_out_ag(T63, T64)) → goal1_out_gaa(T4, T16, T63)
APP20_IN_GAG(.(T36, T38), T39, .(T36, X53)) → APP20_IN_GAG(T38, T39, X53)
APP20_IN_GAG(.(T38), .(X53)) → APP20_IN_GAG(T38, X53)
From the DPs we obtained the following set of size-change graphs:
APP20_IN_GAA(.(T36, T38), T39, .(T36, X53)) → APP20_IN_GAA(T38, T39, X53)
goal1_in_gaa(T4, T7, T8) → U8_gaa(T4, T7, T8, s2l4_in_ga(T4, X11))
s2l4_in_ga(0, []) → s2l4_out_ga(0, [])
s2l4_in_ga(s(T11), .(X25, X26)) → U1_ga(T11, X25, X26, s2l4_in_ga(T11, X26))
U1_ga(T11, X25, X26, s2l4_out_ga(T11, X26)) → s2l4_out_ga(s(T11), .(X25, X26))
U8_gaa(T4, T7, T8, s2l4_out_ga(T4, X11)) → goal1_out_gaa(T4, T7, T8)
goal1_in_gaa(T4, T16, T17) → U9_gaa(T4, T16, T17, s2l4_in_ga(T4, T15))
U9_gaa(T4, T16, T17, s2l4_out_ga(T4, T15)) → U10_gaa(T4, T16, T17, app20_in_gaa(T15, T16, X35))
app20_in_gaa([], T22, .(T22, [])) → app20_out_gaa([], T22, .(T22, []))
app20_in_gaa([], T30, .(X56, .(T30, []))) → app20_out_gaa([], T30, .(X56, .(T30, [])))
app20_in_gaa(.(T36, T38), T39, .(T36, X53)) → U2_gaa(T36, T38, T39, X53, app20_in_gaa(T38, T39, X53))
app20_in_gaa(.(T45, T47), T48, .(T45, X53)) → U3_gaa(T45, T47, T48, X53, app20_in_gaa(T47, T48, X53))
U3_gaa(T45, T47, T48, X53, app20_out_gaa(T47, T48, X53)) → app20_out_gaa(.(T45, T47), T48, .(T45, X53))
U2_gaa(T36, T38, T39, X53, app20_out_gaa(T38, T39, X53)) → app20_out_gaa(.(T36, T38), T39, .(T36, X53))
U10_gaa(T4, T16, T17, app20_out_gaa(T15, T16, X35)) → goal1_out_gaa(T4, T16, T17)
goal1_in_gaa(T4, T16, T49) → U11_gaa(T4, T16, T49, s2l4_in_ga(T4, T15))
U11_gaa(T4, T16, T49, s2l4_out_ga(T4, T15)) → U12_gaa(T4, T16, T49, app20_in_gag(T15, T16, .(T49, [])))
app20_in_gag([], T22, .(T22, [])) → app20_out_gag([], T22, .(T22, []))
app20_in_gag([], T30, .(X56, .(T30, []))) → app20_out_gag([], T30, .(X56, .(T30, [])))
app20_in_gag(.(T36, T38), T39, .(T36, X53)) → U2_gag(T36, T38, T39, X53, app20_in_gag(T38, T39, X53))
app20_in_gag(.(T45, T47), T48, .(T45, X53)) → U3_gag(T45, T47, T48, X53, app20_in_gag(T47, T48, X53))
U3_gag(T45, T47, T48, X53, app20_out_gag(T47, T48, X53)) → app20_out_gag(.(T45, T47), T48, .(T45, X53))
U2_gag(T36, T38, T39, X53, app20_out_gag(T38, T39, X53)) → app20_out_gag(.(T36, T38), T39, .(T36, X53))
U12_gaa(T4, T16, T49, app20_out_gag(T15, T16, .(T49, []))) → goal1_out_gaa(T4, T16, T49)
goal1_in_gaa(T4, T16, T56) → U13_gaa(T4, T16, T56, s2l4_in_ga(T4, T15))
U13_gaa(T4, T16, T56, s2l4_out_ga(T4, T15)) → U14_gaa(T4, T16, T56, app20_in_gag(T15, T16, []))
U14_gaa(T4, T16, T56, app20_out_gag(T15, T16, [])) → U15_gaa(T4, T16, T56, last63_in_a(T56))
last63_in_a(T56) → U4_a(T56, last63_in_a(T56))
U4_a(T56, last63_out_a(T56)) → last63_out_a(T56)
U15_gaa(T4, T16, T56, last63_out_a(T56)) → goal1_out_gaa(T4, T16, T56)
goal1_in_gaa(T4, T16, T59) → U16_gaa(T4, T16, T59, s2l4_in_ga(T4, T15))
U16_gaa(T4, T16, T59, s2l4_out_ga(T4, T15)) → U17_gaa(T4, T16, T59, app20_in_gaa(T15, T16, .(T57, T60)))
U17_gaa(T4, T16, T59, app20_out_gaa(T15, T16, .(T57, T60))) → U18_gaa(T4, T16, T59, last21_in_ag(T59, T60))
last21_in_ag(T49, .(T49, [])) → last21_out_ag(T49, .(T49, []))
last21_in_ag(T56, []) → U5_ag(T56, last63_in_a(T56))
U5_ag(T56, last63_out_a(T56)) → last21_out_ag(T56, [])
last21_in_ag(T59, .(T57, T60)) → U6_ag(T59, T57, T60, last21_in_ag(T59, T60))
last21_in_ag(T63, .(T61, T64)) → U7_ag(T63, T61, T64, last21_in_ag(T63, T64))
U7_ag(T63, T61, T64, last21_out_ag(T63, T64)) → last21_out_ag(T63, .(T61, T64))
U6_ag(T59, T57, T60, last21_out_ag(T59, T60)) → last21_out_ag(T59, .(T57, T60))
U18_gaa(T4, T16, T59, last21_out_ag(T59, T60)) → goal1_out_gaa(T4, T16, T59)
goal1_in_gaa(T4, T16, T63) → U19_gaa(T4, T16, T63, s2l4_in_ga(T4, T15))
U19_gaa(T4, T16, T63, s2l4_out_ga(T4, T15)) → U20_gaa(T4, T16, T63, app20_in_gaa(T15, T16, .(T61, T64)))
U20_gaa(T4, T16, T63, app20_out_gaa(T15, T16, .(T61, T64))) → U21_gaa(T4, T16, T63, last21_in_ag(T63, T64))
U21_gaa(T4, T16, T63, last21_out_ag(T63, T64)) → goal1_out_gaa(T4, T16, T63)
APP20_IN_GAA(.(T36, T38), T39, .(T36, X53)) → APP20_IN_GAA(T38, T39, X53)
APP20_IN_GAA(.(T38)) → APP20_IN_GAA(T38)
From the DPs we obtained the following set of size-change graphs:
S2L4_IN_GA(s(T11), .(X25, X26)) → S2L4_IN_GA(T11, X26)
goal1_in_gaa(T4, T7, T8) → U8_gaa(T4, T7, T8, s2l4_in_ga(T4, X11))
s2l4_in_ga(0, []) → s2l4_out_ga(0, [])
s2l4_in_ga(s(T11), .(X25, X26)) → U1_ga(T11, X25, X26, s2l4_in_ga(T11, X26))
U1_ga(T11, X25, X26, s2l4_out_ga(T11, X26)) → s2l4_out_ga(s(T11), .(X25, X26))
U8_gaa(T4, T7, T8, s2l4_out_ga(T4, X11)) → goal1_out_gaa(T4, T7, T8)
goal1_in_gaa(T4, T16, T17) → U9_gaa(T4, T16, T17, s2l4_in_ga(T4, T15))
U9_gaa(T4, T16, T17, s2l4_out_ga(T4, T15)) → U10_gaa(T4, T16, T17, app20_in_gaa(T15, T16, X35))
app20_in_gaa([], T22, .(T22, [])) → app20_out_gaa([], T22, .(T22, []))
app20_in_gaa([], T30, .(X56, .(T30, []))) → app20_out_gaa([], T30, .(X56, .(T30, [])))
app20_in_gaa(.(T36, T38), T39, .(T36, X53)) → U2_gaa(T36, T38, T39, X53, app20_in_gaa(T38, T39, X53))
app20_in_gaa(.(T45, T47), T48, .(T45, X53)) → U3_gaa(T45, T47, T48, X53, app20_in_gaa(T47, T48, X53))
U3_gaa(T45, T47, T48, X53, app20_out_gaa(T47, T48, X53)) → app20_out_gaa(.(T45, T47), T48, .(T45, X53))
U2_gaa(T36, T38, T39, X53, app20_out_gaa(T38, T39, X53)) → app20_out_gaa(.(T36, T38), T39, .(T36, X53))
U10_gaa(T4, T16, T17, app20_out_gaa(T15, T16, X35)) → goal1_out_gaa(T4, T16, T17)
goal1_in_gaa(T4, T16, T49) → U11_gaa(T4, T16, T49, s2l4_in_ga(T4, T15))
U11_gaa(T4, T16, T49, s2l4_out_ga(T4, T15)) → U12_gaa(T4, T16, T49, app20_in_gag(T15, T16, .(T49, [])))
app20_in_gag([], T22, .(T22, [])) → app20_out_gag([], T22, .(T22, []))
app20_in_gag([], T30, .(X56, .(T30, []))) → app20_out_gag([], T30, .(X56, .(T30, [])))
app20_in_gag(.(T36, T38), T39, .(T36, X53)) → U2_gag(T36, T38, T39, X53, app20_in_gag(T38, T39, X53))
app20_in_gag(.(T45, T47), T48, .(T45, X53)) → U3_gag(T45, T47, T48, X53, app20_in_gag(T47, T48, X53))
U3_gag(T45, T47, T48, X53, app20_out_gag(T47, T48, X53)) → app20_out_gag(.(T45, T47), T48, .(T45, X53))
U2_gag(T36, T38, T39, X53, app20_out_gag(T38, T39, X53)) → app20_out_gag(.(T36, T38), T39, .(T36, X53))
U12_gaa(T4, T16, T49, app20_out_gag(T15, T16, .(T49, []))) → goal1_out_gaa(T4, T16, T49)
goal1_in_gaa(T4, T16, T56) → U13_gaa(T4, T16, T56, s2l4_in_ga(T4, T15))
U13_gaa(T4, T16, T56, s2l4_out_ga(T4, T15)) → U14_gaa(T4, T16, T56, app20_in_gag(T15, T16, []))
U14_gaa(T4, T16, T56, app20_out_gag(T15, T16, [])) → U15_gaa(T4, T16, T56, last63_in_a(T56))
last63_in_a(T56) → U4_a(T56, last63_in_a(T56))
U4_a(T56, last63_out_a(T56)) → last63_out_a(T56)
U15_gaa(T4, T16, T56, last63_out_a(T56)) → goal1_out_gaa(T4, T16, T56)
goal1_in_gaa(T4, T16, T59) → U16_gaa(T4, T16, T59, s2l4_in_ga(T4, T15))
U16_gaa(T4, T16, T59, s2l4_out_ga(T4, T15)) → U17_gaa(T4, T16, T59, app20_in_gaa(T15, T16, .(T57, T60)))
U17_gaa(T4, T16, T59, app20_out_gaa(T15, T16, .(T57, T60))) → U18_gaa(T4, T16, T59, last21_in_ag(T59, T60))
last21_in_ag(T49, .(T49, [])) → last21_out_ag(T49, .(T49, []))
last21_in_ag(T56, []) → U5_ag(T56, last63_in_a(T56))
U5_ag(T56, last63_out_a(T56)) → last21_out_ag(T56, [])
last21_in_ag(T59, .(T57, T60)) → U6_ag(T59, T57, T60, last21_in_ag(T59, T60))
last21_in_ag(T63, .(T61, T64)) → U7_ag(T63, T61, T64, last21_in_ag(T63, T64))
U7_ag(T63, T61, T64, last21_out_ag(T63, T64)) → last21_out_ag(T63, .(T61, T64))
U6_ag(T59, T57, T60, last21_out_ag(T59, T60)) → last21_out_ag(T59, .(T57, T60))
U18_gaa(T4, T16, T59, last21_out_ag(T59, T60)) → goal1_out_gaa(T4, T16, T59)
goal1_in_gaa(T4, T16, T63) → U19_gaa(T4, T16, T63, s2l4_in_ga(T4, T15))
U19_gaa(T4, T16, T63, s2l4_out_ga(T4, T15)) → U20_gaa(T4, T16, T63, app20_in_gaa(T15, T16, .(T61, T64)))
U20_gaa(T4, T16, T63, app20_out_gaa(T15, T16, .(T61, T64))) → U21_gaa(T4, T16, T63, last21_in_ag(T63, T64))
U21_gaa(T4, T16, T63, last21_out_ag(T63, T64)) → goal1_out_gaa(T4, T16, T63)
S2L4_IN_GA(s(T11), .(X25, X26)) → S2L4_IN_GA(T11, X26)
S2L4_IN_GA(s(T11)) → S2L4_IN_GA(T11)
From the DPs we obtained the following set of size-change graphs:
goal1_in_gaa(T4, T7, T8) → U8_gaa(T4, T7, T8, s2l4_in_ga(T4, X11))
s2l4_in_ga(0, []) → s2l4_out_ga(0, [])
s2l4_in_ga(s(T11), .(X25, X26)) → U1_ga(T11, X25, X26, s2l4_in_ga(T11, X26))
U1_ga(T11, X25, X26, s2l4_out_ga(T11, X26)) → s2l4_out_ga(s(T11), .(X25, X26))
U8_gaa(T4, T7, T8, s2l4_out_ga(T4, X11)) → goal1_out_gaa(T4, T7, T8)
goal1_in_gaa(T4, T16, T17) → U9_gaa(T4, T16, T17, s2l4_in_ga(T4, T15))
U9_gaa(T4, T16, T17, s2l4_out_ga(T4, T15)) → U10_gaa(T4, T16, T17, app20_in_gaa(T15, T16, X35))
app20_in_gaa([], T22, .(T22, [])) → app20_out_gaa([], T22, .(T22, []))
app20_in_gaa([], T30, .(X56, .(T30, []))) → app20_out_gaa([], T30, .(X56, .(T30, [])))
app20_in_gaa(.(T36, T38), T39, .(T36, X53)) → U2_gaa(T36, T38, T39, X53, app20_in_gaa(T38, T39, X53))
app20_in_gaa(.(T45, T47), T48, .(T45, X53)) → U3_gaa(T45, T47, T48, X53, app20_in_gaa(T47, T48, X53))
U3_gaa(T45, T47, T48, X53, app20_out_gaa(T47, T48, X53)) → app20_out_gaa(.(T45, T47), T48, .(T45, X53))
U2_gaa(T36, T38, T39, X53, app20_out_gaa(T38, T39, X53)) → app20_out_gaa(.(T36, T38), T39, .(T36, X53))
U10_gaa(T4, T16, T17, app20_out_gaa(T15, T16, X35)) → goal1_out_gaa(T4, T16, T17)
goal1_in_gaa(T4, T16, T49) → U11_gaa(T4, T16, T49, s2l4_in_ga(T4, T15))
U11_gaa(T4, T16, T49, s2l4_out_ga(T4, T15)) → U12_gaa(T4, T16, T49, app20_in_gag(T15, T16, .(T49, [])))
app20_in_gag([], T22, .(T22, [])) → app20_out_gag([], T22, .(T22, []))
app20_in_gag([], T30, .(X56, .(T30, []))) → app20_out_gag([], T30, .(X56, .(T30, [])))
app20_in_gag(.(T36, T38), T39, .(T36, X53)) → U2_gag(T36, T38, T39, X53, app20_in_gag(T38, T39, X53))
app20_in_gag(.(T45, T47), T48, .(T45, X53)) → U3_gag(T45, T47, T48, X53, app20_in_gag(T47, T48, X53))
U3_gag(T45, T47, T48, X53, app20_out_gag(T47, T48, X53)) → app20_out_gag(.(T45, T47), T48, .(T45, X53))
U2_gag(T36, T38, T39, X53, app20_out_gag(T38, T39, X53)) → app20_out_gag(.(T36, T38), T39, .(T36, X53))
U12_gaa(T4, T16, T49, app20_out_gag(T15, T16, .(T49, []))) → goal1_out_gaa(T4, T16, T49)
goal1_in_gaa(T4, T16, T56) → U13_gaa(T4, T16, T56, s2l4_in_ga(T4, T15))
U13_gaa(T4, T16, T56, s2l4_out_ga(T4, T15)) → U14_gaa(T4, T16, T56, app20_in_gag(T15, T16, []))
U14_gaa(T4, T16, T56, app20_out_gag(T15, T16, [])) → U15_gaa(T4, T16, T56, last63_in_a(T56))
last63_in_a(T56) → U4_a(T56, last63_in_a(T56))
U4_a(T56, last63_out_a(T56)) → last63_out_a(T56)
U15_gaa(T4, T16, T56, last63_out_a(T56)) → goal1_out_gaa(T4, T16, T56)
goal1_in_gaa(T4, T16, T59) → U16_gaa(T4, T16, T59, s2l4_in_ga(T4, T15))
U16_gaa(T4, T16, T59, s2l4_out_ga(T4, T15)) → U17_gaa(T4, T16, T59, app20_in_gaa(T15, T16, .(T57, T60)))
U17_gaa(T4, T16, T59, app20_out_gaa(T15, T16, .(T57, T60))) → U18_gaa(T4, T16, T59, last21_in_ag(T59, T60))
last21_in_ag(T49, .(T49, [])) → last21_out_ag(T49, .(T49, []))
last21_in_ag(T56, []) → U5_ag(T56, last63_in_a(T56))
U5_ag(T56, last63_out_a(T56)) → last21_out_ag(T56, [])
last21_in_ag(T59, .(T57, T60)) → U6_ag(T59, T57, T60, last21_in_ag(T59, T60))
last21_in_ag(T63, .(T61, T64)) → U7_ag(T63, T61, T64, last21_in_ag(T63, T64))
U7_ag(T63, T61, T64, last21_out_ag(T63, T64)) → last21_out_ag(T63, .(T61, T64))
U6_ag(T59, T57, T60, last21_out_ag(T59, T60)) → last21_out_ag(T59, .(T57, T60))
U18_gaa(T4, T16, T59, last21_out_ag(T59, T60)) → goal1_out_gaa(T4, T16, T59)
goal1_in_gaa(T4, T16, T63) → U19_gaa(T4, T16, T63, s2l4_in_ga(T4, T15))
U19_gaa(T4, T16, T63, s2l4_out_ga(T4, T15)) → U20_gaa(T4, T16, T63, app20_in_gaa(T15, T16, .(T61, T64)))
U20_gaa(T4, T16, T63, app20_out_gaa(T15, T16, .(T61, T64))) → U21_gaa(T4, T16, T63, last21_in_ag(T63, T64))
U21_gaa(T4, T16, T63, last21_out_ag(T63, T64)) → goal1_out_gaa(T4, T16, T63)
Infinitary Constructor Rewriting Termination of PiTRS implies Termination of Prolog
goal1_in_gaa(T4, T7, T8) → U8_gaa(T4, T7, T8, s2l4_in_ga(T4, X11))
s2l4_in_ga(0, []) → s2l4_out_ga(0, [])
s2l4_in_ga(s(T11), .(X25, X26)) → U1_ga(T11, X25, X26, s2l4_in_ga(T11, X26))
U1_ga(T11, X25, X26, s2l4_out_ga(T11, X26)) → s2l4_out_ga(s(T11), .(X25, X26))
U8_gaa(T4, T7, T8, s2l4_out_ga(T4, X11)) → goal1_out_gaa(T4, T7, T8)
goal1_in_gaa(T4, T16, T17) → U9_gaa(T4, T16, T17, s2l4_in_ga(T4, T15))
U9_gaa(T4, T16, T17, s2l4_out_ga(T4, T15)) → U10_gaa(T4, T16, T17, app20_in_gaa(T15, T16, X35))
app20_in_gaa([], T22, .(T22, [])) → app20_out_gaa([], T22, .(T22, []))
app20_in_gaa([], T30, .(X56, .(T30, []))) → app20_out_gaa([], T30, .(X56, .(T30, [])))
app20_in_gaa(.(T36, T38), T39, .(T36, X53)) → U2_gaa(T36, T38, T39, X53, app20_in_gaa(T38, T39, X53))
app20_in_gaa(.(T45, T47), T48, .(T45, X53)) → U3_gaa(T45, T47, T48, X53, app20_in_gaa(T47, T48, X53))
U3_gaa(T45, T47, T48, X53, app20_out_gaa(T47, T48, X53)) → app20_out_gaa(.(T45, T47), T48, .(T45, X53))
U2_gaa(T36, T38, T39, X53, app20_out_gaa(T38, T39, X53)) → app20_out_gaa(.(T36, T38), T39, .(T36, X53))
U10_gaa(T4, T16, T17, app20_out_gaa(T15, T16, X35)) → goal1_out_gaa(T4, T16, T17)
goal1_in_gaa(T4, T16, T49) → U11_gaa(T4, T16, T49, s2l4_in_ga(T4, T15))
U11_gaa(T4, T16, T49, s2l4_out_ga(T4, T15)) → U12_gaa(T4, T16, T49, app20_in_gag(T15, T16, .(T49, [])))
app20_in_gag([], T22, .(T22, [])) → app20_out_gag([], T22, .(T22, []))
app20_in_gag([], T30, .(X56, .(T30, []))) → app20_out_gag([], T30, .(X56, .(T30, [])))
app20_in_gag(.(T36, T38), T39, .(T36, X53)) → U2_gag(T36, T38, T39, X53, app20_in_gag(T38, T39, X53))
app20_in_gag(.(T45, T47), T48, .(T45, X53)) → U3_gag(T45, T47, T48, X53, app20_in_gag(T47, T48, X53))
U3_gag(T45, T47, T48, X53, app20_out_gag(T47, T48, X53)) → app20_out_gag(.(T45, T47), T48, .(T45, X53))
U2_gag(T36, T38, T39, X53, app20_out_gag(T38, T39, X53)) → app20_out_gag(.(T36, T38), T39, .(T36, X53))
U12_gaa(T4, T16, T49, app20_out_gag(T15, T16, .(T49, []))) → goal1_out_gaa(T4, T16, T49)
goal1_in_gaa(T4, T16, T56) → U13_gaa(T4, T16, T56, s2l4_in_ga(T4, T15))
U13_gaa(T4, T16, T56, s2l4_out_ga(T4, T15)) → U14_gaa(T4, T16, T56, app20_in_gag(T15, T16, []))
U14_gaa(T4, T16, T56, app20_out_gag(T15, T16, [])) → U15_gaa(T4, T16, T56, last63_in_a(T56))
last63_in_a(T56) → U4_a(T56, last63_in_a(T56))
U4_a(T56, last63_out_a(T56)) → last63_out_a(T56)
U15_gaa(T4, T16, T56, last63_out_a(T56)) → goal1_out_gaa(T4, T16, T56)
goal1_in_gaa(T4, T16, T59) → U16_gaa(T4, T16, T59, s2l4_in_ga(T4, T15))
U16_gaa(T4, T16, T59, s2l4_out_ga(T4, T15)) → U17_gaa(T4, T16, T59, app20_in_gaa(T15, T16, .(T57, T60)))
U17_gaa(T4, T16, T59, app20_out_gaa(T15, T16, .(T57, T60))) → U18_gaa(T4, T16, T59, last21_in_ag(T59, T60))
last21_in_ag(T49, .(T49, [])) → last21_out_ag(T49, .(T49, []))
last21_in_ag(T56, []) → U5_ag(T56, last63_in_a(T56))
U5_ag(T56, last63_out_a(T56)) → last21_out_ag(T56, [])
last21_in_ag(T59, .(T57, T60)) → U6_ag(T59, T57, T60, last21_in_ag(T59, T60))
last21_in_ag(T63, .(T61, T64)) → U7_ag(T63, T61, T64, last21_in_ag(T63, T64))
U7_ag(T63, T61, T64, last21_out_ag(T63, T64)) → last21_out_ag(T63, .(T61, T64))
U6_ag(T59, T57, T60, last21_out_ag(T59, T60)) → last21_out_ag(T59, .(T57, T60))
U18_gaa(T4, T16, T59, last21_out_ag(T59, T60)) → goal1_out_gaa(T4, T16, T59)
goal1_in_gaa(T4, T16, T63) → U19_gaa(T4, T16, T63, s2l4_in_ga(T4, T15))
U19_gaa(T4, T16, T63, s2l4_out_ga(T4, T15)) → U20_gaa(T4, T16, T63, app20_in_gaa(T15, T16, .(T61, T64)))
U20_gaa(T4, T16, T63, app20_out_gaa(T15, T16, .(T61, T64))) → U21_gaa(T4, T16, T63, last21_in_ag(T63, T64))
U21_gaa(T4, T16, T63, last21_out_ag(T63, T64)) → goal1_out_gaa(T4, T16, T63)
GOAL1_IN_GAA(T4, T7, T8) → U8_GAA(T4, T7, T8, s2l4_in_ga(T4, X11))
GOAL1_IN_GAA(T4, T7, T8) → S2L4_IN_GA(T4, X11)
S2L4_IN_GA(s(T11), .(X25, X26)) → U1_GA(T11, X25, X26, s2l4_in_ga(T11, X26))
S2L4_IN_GA(s(T11), .(X25, X26)) → S2L4_IN_GA(T11, X26)
GOAL1_IN_GAA(T4, T16, T17) → U9_GAA(T4, T16, T17, s2l4_in_ga(T4, T15))
U9_GAA(T4, T16, T17, s2l4_out_ga(T4, T15)) → U10_GAA(T4, T16, T17, app20_in_gaa(T15, T16, X35))
U9_GAA(T4, T16, T17, s2l4_out_ga(T4, T15)) → APP20_IN_GAA(T15, T16, X35)
APP20_IN_GAA(.(T36, T38), T39, .(T36, X53)) → U2_GAA(T36, T38, T39, X53, app20_in_gaa(T38, T39, X53))
APP20_IN_GAA(.(T36, T38), T39, .(T36, X53)) → APP20_IN_GAA(T38, T39, X53)
APP20_IN_GAA(.(T45, T47), T48, .(T45, X53)) → U3_GAA(T45, T47, T48, X53, app20_in_gaa(T47, T48, X53))
GOAL1_IN_GAA(T4, T16, T49) → U11_GAA(T4, T16, T49, s2l4_in_ga(T4, T15))
U11_GAA(T4, T16, T49, s2l4_out_ga(T4, T15)) → U12_GAA(T4, T16, T49, app20_in_gag(T15, T16, .(T49, [])))
U11_GAA(T4, T16, T49, s2l4_out_ga(T4, T15)) → APP20_IN_GAG(T15, T16, .(T49, []))
APP20_IN_GAG(.(T36, T38), T39, .(T36, X53)) → U2_GAG(T36, T38, T39, X53, app20_in_gag(T38, T39, X53))
APP20_IN_GAG(.(T36, T38), T39, .(T36, X53)) → APP20_IN_GAG(T38, T39, X53)
APP20_IN_GAG(.(T45, T47), T48, .(T45, X53)) → U3_GAG(T45, T47, T48, X53, app20_in_gag(T47, T48, X53))
GOAL1_IN_GAA(T4, T16, T56) → U13_GAA(T4, T16, T56, s2l4_in_ga(T4, T15))
U13_GAA(T4, T16, T56, s2l4_out_ga(T4, T15)) → U14_GAA(T4, T16, T56, app20_in_gag(T15, T16, []))
U13_GAA(T4, T16, T56, s2l4_out_ga(T4, T15)) → APP20_IN_GAG(T15, T16, [])
U14_GAA(T4, T16, T56, app20_out_gag(T15, T16, [])) → U15_GAA(T4, T16, T56, last63_in_a(T56))
U14_GAA(T4, T16, T56, app20_out_gag(T15, T16, [])) → LAST63_IN_A(T56)
LAST63_IN_A(T56) → U4_A(T56, last63_in_a(T56))
LAST63_IN_A(T56) → LAST63_IN_A(T56)
GOAL1_IN_GAA(T4, T16, T59) → U16_GAA(T4, T16, T59, s2l4_in_ga(T4, T15))
U16_GAA(T4, T16, T59, s2l4_out_ga(T4, T15)) → U17_GAA(T4, T16, T59, app20_in_gaa(T15, T16, .(T57, T60)))
U16_GAA(T4, T16, T59, s2l4_out_ga(T4, T15)) → APP20_IN_GAA(T15, T16, .(T57, T60))
U17_GAA(T4, T16, T59, app20_out_gaa(T15, T16, .(T57, T60))) → U18_GAA(T4, T16, T59, last21_in_ag(T59, T60))
U17_GAA(T4, T16, T59, app20_out_gaa(T15, T16, .(T57, T60))) → LAST21_IN_AG(T59, T60)
LAST21_IN_AG(T56, []) → U5_AG(T56, last63_in_a(T56))
LAST21_IN_AG(T56, []) → LAST63_IN_A(T56)
LAST21_IN_AG(T59, .(T57, T60)) → U6_AG(T59, T57, T60, last21_in_ag(T59, T60))
LAST21_IN_AG(T59, .(T57, T60)) → LAST21_IN_AG(T59, T60)
LAST21_IN_AG(T63, .(T61, T64)) → U7_AG(T63, T61, T64, last21_in_ag(T63, T64))
GOAL1_IN_GAA(T4, T16, T63) → U19_GAA(T4, T16, T63, s2l4_in_ga(T4, T15))
U19_GAA(T4, T16, T63, s2l4_out_ga(T4, T15)) → U20_GAA(T4, T16, T63, app20_in_gaa(T15, T16, .(T61, T64)))
U19_GAA(T4, T16, T63, s2l4_out_ga(T4, T15)) → APP20_IN_GAA(T15, T16, .(T61, T64))
U20_GAA(T4, T16, T63, app20_out_gaa(T15, T16, .(T61, T64))) → U21_GAA(T4, T16, T63, last21_in_ag(T63, T64))
U20_GAA(T4, T16, T63, app20_out_gaa(T15, T16, .(T61, T64))) → LAST21_IN_AG(T63, T64)
goal1_in_gaa(T4, T7, T8) → U8_gaa(T4, T7, T8, s2l4_in_ga(T4, X11))
s2l4_in_ga(0, []) → s2l4_out_ga(0, [])
s2l4_in_ga(s(T11), .(X25, X26)) → U1_ga(T11, X25, X26, s2l4_in_ga(T11, X26))
U1_ga(T11, X25, X26, s2l4_out_ga(T11, X26)) → s2l4_out_ga(s(T11), .(X25, X26))
U8_gaa(T4, T7, T8, s2l4_out_ga(T4, X11)) → goal1_out_gaa(T4, T7, T8)
goal1_in_gaa(T4, T16, T17) → U9_gaa(T4, T16, T17, s2l4_in_ga(T4, T15))
U9_gaa(T4, T16, T17, s2l4_out_ga(T4, T15)) → U10_gaa(T4, T16, T17, app20_in_gaa(T15, T16, X35))
app20_in_gaa([], T22, .(T22, [])) → app20_out_gaa([], T22, .(T22, []))
app20_in_gaa([], T30, .(X56, .(T30, []))) → app20_out_gaa([], T30, .(X56, .(T30, [])))
app20_in_gaa(.(T36, T38), T39, .(T36, X53)) → U2_gaa(T36, T38, T39, X53, app20_in_gaa(T38, T39, X53))
app20_in_gaa(.(T45, T47), T48, .(T45, X53)) → U3_gaa(T45, T47, T48, X53, app20_in_gaa(T47, T48, X53))
U3_gaa(T45, T47, T48, X53, app20_out_gaa(T47, T48, X53)) → app20_out_gaa(.(T45, T47), T48, .(T45, X53))
U2_gaa(T36, T38, T39, X53, app20_out_gaa(T38, T39, X53)) → app20_out_gaa(.(T36, T38), T39, .(T36, X53))
U10_gaa(T4, T16, T17, app20_out_gaa(T15, T16, X35)) → goal1_out_gaa(T4, T16, T17)
goal1_in_gaa(T4, T16, T49) → U11_gaa(T4, T16, T49, s2l4_in_ga(T4, T15))
U11_gaa(T4, T16, T49, s2l4_out_ga(T4, T15)) → U12_gaa(T4, T16, T49, app20_in_gag(T15, T16, .(T49, [])))
app20_in_gag([], T22, .(T22, [])) → app20_out_gag([], T22, .(T22, []))
app20_in_gag([], T30, .(X56, .(T30, []))) → app20_out_gag([], T30, .(X56, .(T30, [])))
app20_in_gag(.(T36, T38), T39, .(T36, X53)) → U2_gag(T36, T38, T39, X53, app20_in_gag(T38, T39, X53))
app20_in_gag(.(T45, T47), T48, .(T45, X53)) → U3_gag(T45, T47, T48, X53, app20_in_gag(T47, T48, X53))
U3_gag(T45, T47, T48, X53, app20_out_gag(T47, T48, X53)) → app20_out_gag(.(T45, T47), T48, .(T45, X53))
U2_gag(T36, T38, T39, X53, app20_out_gag(T38, T39, X53)) → app20_out_gag(.(T36, T38), T39, .(T36, X53))
U12_gaa(T4, T16, T49, app20_out_gag(T15, T16, .(T49, []))) → goal1_out_gaa(T4, T16, T49)
goal1_in_gaa(T4, T16, T56) → U13_gaa(T4, T16, T56, s2l4_in_ga(T4, T15))
U13_gaa(T4, T16, T56, s2l4_out_ga(T4, T15)) → U14_gaa(T4, T16, T56, app20_in_gag(T15, T16, []))
U14_gaa(T4, T16, T56, app20_out_gag(T15, T16, [])) → U15_gaa(T4, T16, T56, last63_in_a(T56))
last63_in_a(T56) → U4_a(T56, last63_in_a(T56))
U4_a(T56, last63_out_a(T56)) → last63_out_a(T56)
U15_gaa(T4, T16, T56, last63_out_a(T56)) → goal1_out_gaa(T4, T16, T56)
goal1_in_gaa(T4, T16, T59) → U16_gaa(T4, T16, T59, s2l4_in_ga(T4, T15))
U16_gaa(T4, T16, T59, s2l4_out_ga(T4, T15)) → U17_gaa(T4, T16, T59, app20_in_gaa(T15, T16, .(T57, T60)))
U17_gaa(T4, T16, T59, app20_out_gaa(T15, T16, .(T57, T60))) → U18_gaa(T4, T16, T59, last21_in_ag(T59, T60))
last21_in_ag(T49, .(T49, [])) → last21_out_ag(T49, .(T49, []))
last21_in_ag(T56, []) → U5_ag(T56, last63_in_a(T56))
U5_ag(T56, last63_out_a(T56)) → last21_out_ag(T56, [])
last21_in_ag(T59, .(T57, T60)) → U6_ag(T59, T57, T60, last21_in_ag(T59, T60))
last21_in_ag(T63, .(T61, T64)) → U7_ag(T63, T61, T64, last21_in_ag(T63, T64))
U7_ag(T63, T61, T64, last21_out_ag(T63, T64)) → last21_out_ag(T63, .(T61, T64))
U6_ag(T59, T57, T60, last21_out_ag(T59, T60)) → last21_out_ag(T59, .(T57, T60))
U18_gaa(T4, T16, T59, last21_out_ag(T59, T60)) → goal1_out_gaa(T4, T16, T59)
goal1_in_gaa(T4, T16, T63) → U19_gaa(T4, T16, T63, s2l4_in_ga(T4, T15))
U19_gaa(T4, T16, T63, s2l4_out_ga(T4, T15)) → U20_gaa(T4, T16, T63, app20_in_gaa(T15, T16, .(T61, T64)))
U20_gaa(T4, T16, T63, app20_out_gaa(T15, T16, .(T61, T64))) → U21_gaa(T4, T16, T63, last21_in_ag(T63, T64))
U21_gaa(T4, T16, T63, last21_out_ag(T63, T64)) → goal1_out_gaa(T4, T16, T63)
GOAL1_IN_GAA(T4, T7, T8) → U8_GAA(T4, T7, T8, s2l4_in_ga(T4, X11))
GOAL1_IN_GAA(T4, T7, T8) → S2L4_IN_GA(T4, X11)
S2L4_IN_GA(s(T11), .(X25, X26)) → U1_GA(T11, X25, X26, s2l4_in_ga(T11, X26))
S2L4_IN_GA(s(T11), .(X25, X26)) → S2L4_IN_GA(T11, X26)
GOAL1_IN_GAA(T4, T16, T17) → U9_GAA(T4, T16, T17, s2l4_in_ga(T4, T15))
U9_GAA(T4, T16, T17, s2l4_out_ga(T4, T15)) → U10_GAA(T4, T16, T17, app20_in_gaa(T15, T16, X35))
U9_GAA(T4, T16, T17, s2l4_out_ga(T4, T15)) → APP20_IN_GAA(T15, T16, X35)
APP20_IN_GAA(.(T36, T38), T39, .(T36, X53)) → U2_GAA(T36, T38, T39, X53, app20_in_gaa(T38, T39, X53))
APP20_IN_GAA(.(T36, T38), T39, .(T36, X53)) → APP20_IN_GAA(T38, T39, X53)
APP20_IN_GAA(.(T45, T47), T48, .(T45, X53)) → U3_GAA(T45, T47, T48, X53, app20_in_gaa(T47, T48, X53))
GOAL1_IN_GAA(T4, T16, T49) → U11_GAA(T4, T16, T49, s2l4_in_ga(T4, T15))
U11_GAA(T4, T16, T49, s2l4_out_ga(T4, T15)) → U12_GAA(T4, T16, T49, app20_in_gag(T15, T16, .(T49, [])))
U11_GAA(T4, T16, T49, s2l4_out_ga(T4, T15)) → APP20_IN_GAG(T15, T16, .(T49, []))
APP20_IN_GAG(.(T36, T38), T39, .(T36, X53)) → U2_GAG(T36, T38, T39, X53, app20_in_gag(T38, T39, X53))
APP20_IN_GAG(.(T36, T38), T39, .(T36, X53)) → APP20_IN_GAG(T38, T39, X53)
APP20_IN_GAG(.(T45, T47), T48, .(T45, X53)) → U3_GAG(T45, T47, T48, X53, app20_in_gag(T47, T48, X53))
GOAL1_IN_GAA(T4, T16, T56) → U13_GAA(T4, T16, T56, s2l4_in_ga(T4, T15))
U13_GAA(T4, T16, T56, s2l4_out_ga(T4, T15)) → U14_GAA(T4, T16, T56, app20_in_gag(T15, T16, []))
U13_GAA(T4, T16, T56, s2l4_out_ga(T4, T15)) → APP20_IN_GAG(T15, T16, [])
U14_GAA(T4, T16, T56, app20_out_gag(T15, T16, [])) → U15_GAA(T4, T16, T56, last63_in_a(T56))
U14_GAA(T4, T16, T56, app20_out_gag(T15, T16, [])) → LAST63_IN_A(T56)
LAST63_IN_A(T56) → U4_A(T56, last63_in_a(T56))
LAST63_IN_A(T56) → LAST63_IN_A(T56)
GOAL1_IN_GAA(T4, T16, T59) → U16_GAA(T4, T16, T59, s2l4_in_ga(T4, T15))
U16_GAA(T4, T16, T59, s2l4_out_ga(T4, T15)) → U17_GAA(T4, T16, T59, app20_in_gaa(T15, T16, .(T57, T60)))
U16_GAA(T4, T16, T59, s2l4_out_ga(T4, T15)) → APP20_IN_GAA(T15, T16, .(T57, T60))
U17_GAA(T4, T16, T59, app20_out_gaa(T15, T16, .(T57, T60))) → U18_GAA(T4, T16, T59, last21_in_ag(T59, T60))
U17_GAA(T4, T16, T59, app20_out_gaa(T15, T16, .(T57, T60))) → LAST21_IN_AG(T59, T60)
LAST21_IN_AG(T56, []) → U5_AG(T56, last63_in_a(T56))
LAST21_IN_AG(T56, []) → LAST63_IN_A(T56)
LAST21_IN_AG(T59, .(T57, T60)) → U6_AG(T59, T57, T60, last21_in_ag(T59, T60))
LAST21_IN_AG(T59, .(T57, T60)) → LAST21_IN_AG(T59, T60)
LAST21_IN_AG(T63, .(T61, T64)) → U7_AG(T63, T61, T64, last21_in_ag(T63, T64))
GOAL1_IN_GAA(T4, T16, T63) → U19_GAA(T4, T16, T63, s2l4_in_ga(T4, T15))
U19_GAA(T4, T16, T63, s2l4_out_ga(T4, T15)) → U20_GAA(T4, T16, T63, app20_in_gaa(T15, T16, .(T61, T64)))
U19_GAA(T4, T16, T63, s2l4_out_ga(T4, T15)) → APP20_IN_GAA(T15, T16, .(T61, T64))
U20_GAA(T4, T16, T63, app20_out_gaa(T15, T16, .(T61, T64))) → U21_GAA(T4, T16, T63, last21_in_ag(T63, T64))
U20_GAA(T4, T16, T63, app20_out_gaa(T15, T16, .(T61, T64))) → LAST21_IN_AG(T63, T64)
goal1_in_gaa(T4, T7, T8) → U8_gaa(T4, T7, T8, s2l4_in_ga(T4, X11))
s2l4_in_ga(0, []) → s2l4_out_ga(0, [])
s2l4_in_ga(s(T11), .(X25, X26)) → U1_ga(T11, X25, X26, s2l4_in_ga(T11, X26))
U1_ga(T11, X25, X26, s2l4_out_ga(T11, X26)) → s2l4_out_ga(s(T11), .(X25, X26))
U8_gaa(T4, T7, T8, s2l4_out_ga(T4, X11)) → goal1_out_gaa(T4, T7, T8)
goal1_in_gaa(T4, T16, T17) → U9_gaa(T4, T16, T17, s2l4_in_ga(T4, T15))
U9_gaa(T4, T16, T17, s2l4_out_ga(T4, T15)) → U10_gaa(T4, T16, T17, app20_in_gaa(T15, T16, X35))
app20_in_gaa([], T22, .(T22, [])) → app20_out_gaa([], T22, .(T22, []))
app20_in_gaa([], T30, .(X56, .(T30, []))) → app20_out_gaa([], T30, .(X56, .(T30, [])))
app20_in_gaa(.(T36, T38), T39, .(T36, X53)) → U2_gaa(T36, T38, T39, X53, app20_in_gaa(T38, T39, X53))
app20_in_gaa(.(T45, T47), T48, .(T45, X53)) → U3_gaa(T45, T47, T48, X53, app20_in_gaa(T47, T48, X53))
U3_gaa(T45, T47, T48, X53, app20_out_gaa(T47, T48, X53)) → app20_out_gaa(.(T45, T47), T48, .(T45, X53))
U2_gaa(T36, T38, T39, X53, app20_out_gaa(T38, T39, X53)) → app20_out_gaa(.(T36, T38), T39, .(T36, X53))
U10_gaa(T4, T16, T17, app20_out_gaa(T15, T16, X35)) → goal1_out_gaa(T4, T16, T17)
goal1_in_gaa(T4, T16, T49) → U11_gaa(T4, T16, T49, s2l4_in_ga(T4, T15))
U11_gaa(T4, T16, T49, s2l4_out_ga(T4, T15)) → U12_gaa(T4, T16, T49, app20_in_gag(T15, T16, .(T49, [])))
app20_in_gag([], T22, .(T22, [])) → app20_out_gag([], T22, .(T22, []))
app20_in_gag([], T30, .(X56, .(T30, []))) → app20_out_gag([], T30, .(X56, .(T30, [])))
app20_in_gag(.(T36, T38), T39, .(T36, X53)) → U2_gag(T36, T38, T39, X53, app20_in_gag(T38, T39, X53))
app20_in_gag(.(T45, T47), T48, .(T45, X53)) → U3_gag(T45, T47, T48, X53, app20_in_gag(T47, T48, X53))
U3_gag(T45, T47, T48, X53, app20_out_gag(T47, T48, X53)) → app20_out_gag(.(T45, T47), T48, .(T45, X53))
U2_gag(T36, T38, T39, X53, app20_out_gag(T38, T39, X53)) → app20_out_gag(.(T36, T38), T39, .(T36, X53))
U12_gaa(T4, T16, T49, app20_out_gag(T15, T16, .(T49, []))) → goal1_out_gaa(T4, T16, T49)
goal1_in_gaa(T4, T16, T56) → U13_gaa(T4, T16, T56, s2l4_in_ga(T4, T15))
U13_gaa(T4, T16, T56, s2l4_out_ga(T4, T15)) → U14_gaa(T4, T16, T56, app20_in_gag(T15, T16, []))
U14_gaa(T4, T16, T56, app20_out_gag(T15, T16, [])) → U15_gaa(T4, T16, T56, last63_in_a(T56))
last63_in_a(T56) → U4_a(T56, last63_in_a(T56))
U4_a(T56, last63_out_a(T56)) → last63_out_a(T56)
U15_gaa(T4, T16, T56, last63_out_a(T56)) → goal1_out_gaa(T4, T16, T56)
goal1_in_gaa(T4, T16, T59) → U16_gaa(T4, T16, T59, s2l4_in_ga(T4, T15))
U16_gaa(T4, T16, T59, s2l4_out_ga(T4, T15)) → U17_gaa(T4, T16, T59, app20_in_gaa(T15, T16, .(T57, T60)))
U17_gaa(T4, T16, T59, app20_out_gaa(T15, T16, .(T57, T60))) → U18_gaa(T4, T16, T59, last21_in_ag(T59, T60))
last21_in_ag(T49, .(T49, [])) → last21_out_ag(T49, .(T49, []))
last21_in_ag(T56, []) → U5_ag(T56, last63_in_a(T56))
U5_ag(T56, last63_out_a(T56)) → last21_out_ag(T56, [])
last21_in_ag(T59, .(T57, T60)) → U6_ag(T59, T57, T60, last21_in_ag(T59, T60))
last21_in_ag(T63, .(T61, T64)) → U7_ag(T63, T61, T64, last21_in_ag(T63, T64))
U7_ag(T63, T61, T64, last21_out_ag(T63, T64)) → last21_out_ag(T63, .(T61, T64))
U6_ag(T59, T57, T60, last21_out_ag(T59, T60)) → last21_out_ag(T59, .(T57, T60))
U18_gaa(T4, T16, T59, last21_out_ag(T59, T60)) → goal1_out_gaa(T4, T16, T59)
goal1_in_gaa(T4, T16, T63) → U19_gaa(T4, T16, T63, s2l4_in_ga(T4, T15))
U19_gaa(T4, T16, T63, s2l4_out_ga(T4, T15)) → U20_gaa(T4, T16, T63, app20_in_gaa(T15, T16, .(T61, T64)))
U20_gaa(T4, T16, T63, app20_out_gaa(T15, T16, .(T61, T64))) → U21_gaa(T4, T16, T63, last21_in_ag(T63, T64))
U21_gaa(T4, T16, T63, last21_out_ag(T63, T64)) → goal1_out_gaa(T4, T16, T63)
LAST63_IN_A(T56) → LAST63_IN_A(T56)
goal1_in_gaa(T4, T7, T8) → U8_gaa(T4, T7, T8, s2l4_in_ga(T4, X11))
s2l4_in_ga(0, []) → s2l4_out_ga(0, [])
s2l4_in_ga(s(T11), .(X25, X26)) → U1_ga(T11, X25, X26, s2l4_in_ga(T11, X26))
U1_ga(T11, X25, X26, s2l4_out_ga(T11, X26)) → s2l4_out_ga(s(T11), .(X25, X26))
U8_gaa(T4, T7, T8, s2l4_out_ga(T4, X11)) → goal1_out_gaa(T4, T7, T8)
goal1_in_gaa(T4, T16, T17) → U9_gaa(T4, T16, T17, s2l4_in_ga(T4, T15))
U9_gaa(T4, T16, T17, s2l4_out_ga(T4, T15)) → U10_gaa(T4, T16, T17, app20_in_gaa(T15, T16, X35))
app20_in_gaa([], T22, .(T22, [])) → app20_out_gaa([], T22, .(T22, []))
app20_in_gaa([], T30, .(X56, .(T30, []))) → app20_out_gaa([], T30, .(X56, .(T30, [])))
app20_in_gaa(.(T36, T38), T39, .(T36, X53)) → U2_gaa(T36, T38, T39, X53, app20_in_gaa(T38, T39, X53))
app20_in_gaa(.(T45, T47), T48, .(T45, X53)) → U3_gaa(T45, T47, T48, X53, app20_in_gaa(T47, T48, X53))
U3_gaa(T45, T47, T48, X53, app20_out_gaa(T47, T48, X53)) → app20_out_gaa(.(T45, T47), T48, .(T45, X53))
U2_gaa(T36, T38, T39, X53, app20_out_gaa(T38, T39, X53)) → app20_out_gaa(.(T36, T38), T39, .(T36, X53))
U10_gaa(T4, T16, T17, app20_out_gaa(T15, T16, X35)) → goal1_out_gaa(T4, T16, T17)
goal1_in_gaa(T4, T16, T49) → U11_gaa(T4, T16, T49, s2l4_in_ga(T4, T15))
U11_gaa(T4, T16, T49, s2l4_out_ga(T4, T15)) → U12_gaa(T4, T16, T49, app20_in_gag(T15, T16, .(T49, [])))
app20_in_gag([], T22, .(T22, [])) → app20_out_gag([], T22, .(T22, []))
app20_in_gag([], T30, .(X56, .(T30, []))) → app20_out_gag([], T30, .(X56, .(T30, [])))
app20_in_gag(.(T36, T38), T39, .(T36, X53)) → U2_gag(T36, T38, T39, X53, app20_in_gag(T38, T39, X53))
app20_in_gag(.(T45, T47), T48, .(T45, X53)) → U3_gag(T45, T47, T48, X53, app20_in_gag(T47, T48, X53))
U3_gag(T45, T47, T48, X53, app20_out_gag(T47, T48, X53)) → app20_out_gag(.(T45, T47), T48, .(T45, X53))
U2_gag(T36, T38, T39, X53, app20_out_gag(T38, T39, X53)) → app20_out_gag(.(T36, T38), T39, .(T36, X53))
U12_gaa(T4, T16, T49, app20_out_gag(T15, T16, .(T49, []))) → goal1_out_gaa(T4, T16, T49)
goal1_in_gaa(T4, T16, T56) → U13_gaa(T4, T16, T56, s2l4_in_ga(T4, T15))
U13_gaa(T4, T16, T56, s2l4_out_ga(T4, T15)) → U14_gaa(T4, T16, T56, app20_in_gag(T15, T16, []))
U14_gaa(T4, T16, T56, app20_out_gag(T15, T16, [])) → U15_gaa(T4, T16, T56, last63_in_a(T56))
last63_in_a(T56) → U4_a(T56, last63_in_a(T56))
U4_a(T56, last63_out_a(T56)) → last63_out_a(T56)
U15_gaa(T4, T16, T56, last63_out_a(T56)) → goal1_out_gaa(T4, T16, T56)
goal1_in_gaa(T4, T16, T59) → U16_gaa(T4, T16, T59, s2l4_in_ga(T4, T15))
U16_gaa(T4, T16, T59, s2l4_out_ga(T4, T15)) → U17_gaa(T4, T16, T59, app20_in_gaa(T15, T16, .(T57, T60)))
U17_gaa(T4, T16, T59, app20_out_gaa(T15, T16, .(T57, T60))) → U18_gaa(T4, T16, T59, last21_in_ag(T59, T60))
last21_in_ag(T49, .(T49, [])) → last21_out_ag(T49, .(T49, []))
last21_in_ag(T56, []) → U5_ag(T56, last63_in_a(T56))
U5_ag(T56, last63_out_a(T56)) → last21_out_ag(T56, [])
last21_in_ag(T59, .(T57, T60)) → U6_ag(T59, T57, T60, last21_in_ag(T59, T60))
last21_in_ag(T63, .(T61, T64)) → U7_ag(T63, T61, T64, last21_in_ag(T63, T64))
U7_ag(T63, T61, T64, last21_out_ag(T63, T64)) → last21_out_ag(T63, .(T61, T64))
U6_ag(T59, T57, T60, last21_out_ag(T59, T60)) → last21_out_ag(T59, .(T57, T60))
U18_gaa(T4, T16, T59, last21_out_ag(T59, T60)) → goal1_out_gaa(T4, T16, T59)
goal1_in_gaa(T4, T16, T63) → U19_gaa(T4, T16, T63, s2l4_in_ga(T4, T15))
U19_gaa(T4, T16, T63, s2l4_out_ga(T4, T15)) → U20_gaa(T4, T16, T63, app20_in_gaa(T15, T16, .(T61, T64)))
U20_gaa(T4, T16, T63, app20_out_gaa(T15, T16, .(T61, T64))) → U21_gaa(T4, T16, T63, last21_in_ag(T63, T64))
U21_gaa(T4, T16, T63, last21_out_ag(T63, T64)) → goal1_out_gaa(T4, T16, T63)
LAST63_IN_A(T56) → LAST63_IN_A(T56)
LAST63_IN_A → LAST63_IN_A
LAST21_IN_AG(T59, .(T57, T60)) → LAST21_IN_AG(T59, T60)
goal1_in_gaa(T4, T7, T8) → U8_gaa(T4, T7, T8, s2l4_in_ga(T4, X11))
s2l4_in_ga(0, []) → s2l4_out_ga(0, [])
s2l4_in_ga(s(T11), .(X25, X26)) → U1_ga(T11, X25, X26, s2l4_in_ga(T11, X26))
U1_ga(T11, X25, X26, s2l4_out_ga(T11, X26)) → s2l4_out_ga(s(T11), .(X25, X26))
U8_gaa(T4, T7, T8, s2l4_out_ga(T4, X11)) → goal1_out_gaa(T4, T7, T8)
goal1_in_gaa(T4, T16, T17) → U9_gaa(T4, T16, T17, s2l4_in_ga(T4, T15))
U9_gaa(T4, T16, T17, s2l4_out_ga(T4, T15)) → U10_gaa(T4, T16, T17, app20_in_gaa(T15, T16, X35))
app20_in_gaa([], T22, .(T22, [])) → app20_out_gaa([], T22, .(T22, []))
app20_in_gaa([], T30, .(X56, .(T30, []))) → app20_out_gaa([], T30, .(X56, .(T30, [])))
app20_in_gaa(.(T36, T38), T39, .(T36, X53)) → U2_gaa(T36, T38, T39, X53, app20_in_gaa(T38, T39, X53))
app20_in_gaa(.(T45, T47), T48, .(T45, X53)) → U3_gaa(T45, T47, T48, X53, app20_in_gaa(T47, T48, X53))
U3_gaa(T45, T47, T48, X53, app20_out_gaa(T47, T48, X53)) → app20_out_gaa(.(T45, T47), T48, .(T45, X53))
U2_gaa(T36, T38, T39, X53, app20_out_gaa(T38, T39, X53)) → app20_out_gaa(.(T36, T38), T39, .(T36, X53))
U10_gaa(T4, T16, T17, app20_out_gaa(T15, T16, X35)) → goal1_out_gaa(T4, T16, T17)
goal1_in_gaa(T4, T16, T49) → U11_gaa(T4, T16, T49, s2l4_in_ga(T4, T15))
U11_gaa(T4, T16, T49, s2l4_out_ga(T4, T15)) → U12_gaa(T4, T16, T49, app20_in_gag(T15, T16, .(T49, [])))
app20_in_gag([], T22, .(T22, [])) → app20_out_gag([], T22, .(T22, []))
app20_in_gag([], T30, .(X56, .(T30, []))) → app20_out_gag([], T30, .(X56, .(T30, [])))
app20_in_gag(.(T36, T38), T39, .(T36, X53)) → U2_gag(T36, T38, T39, X53, app20_in_gag(T38, T39, X53))
app20_in_gag(.(T45, T47), T48, .(T45, X53)) → U3_gag(T45, T47, T48, X53, app20_in_gag(T47, T48, X53))
U3_gag(T45, T47, T48, X53, app20_out_gag(T47, T48, X53)) → app20_out_gag(.(T45, T47), T48, .(T45, X53))
U2_gag(T36, T38, T39, X53, app20_out_gag(T38, T39, X53)) → app20_out_gag(.(T36, T38), T39, .(T36, X53))
U12_gaa(T4, T16, T49, app20_out_gag(T15, T16, .(T49, []))) → goal1_out_gaa(T4, T16, T49)
goal1_in_gaa(T4, T16, T56) → U13_gaa(T4, T16, T56, s2l4_in_ga(T4, T15))
U13_gaa(T4, T16, T56, s2l4_out_ga(T4, T15)) → U14_gaa(T4, T16, T56, app20_in_gag(T15, T16, []))
U14_gaa(T4, T16, T56, app20_out_gag(T15, T16, [])) → U15_gaa(T4, T16, T56, last63_in_a(T56))
last63_in_a(T56) → U4_a(T56, last63_in_a(T56))
U4_a(T56, last63_out_a(T56)) → last63_out_a(T56)
U15_gaa(T4, T16, T56, last63_out_a(T56)) → goal1_out_gaa(T4, T16, T56)
goal1_in_gaa(T4, T16, T59) → U16_gaa(T4, T16, T59, s2l4_in_ga(T4, T15))
U16_gaa(T4, T16, T59, s2l4_out_ga(T4, T15)) → U17_gaa(T4, T16, T59, app20_in_gaa(T15, T16, .(T57, T60)))
U17_gaa(T4, T16, T59, app20_out_gaa(T15, T16, .(T57, T60))) → U18_gaa(T4, T16, T59, last21_in_ag(T59, T60))
last21_in_ag(T49, .(T49, [])) → last21_out_ag(T49, .(T49, []))
last21_in_ag(T56, []) → U5_ag(T56, last63_in_a(T56))
U5_ag(T56, last63_out_a(T56)) → last21_out_ag(T56, [])
last21_in_ag(T59, .(T57, T60)) → U6_ag(T59, T57, T60, last21_in_ag(T59, T60))
last21_in_ag(T63, .(T61, T64)) → U7_ag(T63, T61, T64, last21_in_ag(T63, T64))
U7_ag(T63, T61, T64, last21_out_ag(T63, T64)) → last21_out_ag(T63, .(T61, T64))
U6_ag(T59, T57, T60, last21_out_ag(T59, T60)) → last21_out_ag(T59, .(T57, T60))
U18_gaa(T4, T16, T59, last21_out_ag(T59, T60)) → goal1_out_gaa(T4, T16, T59)
goal1_in_gaa(T4, T16, T63) → U19_gaa(T4, T16, T63, s2l4_in_ga(T4, T15))
U19_gaa(T4, T16, T63, s2l4_out_ga(T4, T15)) → U20_gaa(T4, T16, T63, app20_in_gaa(T15, T16, .(T61, T64)))
U20_gaa(T4, T16, T63, app20_out_gaa(T15, T16, .(T61, T64))) → U21_gaa(T4, T16, T63, last21_in_ag(T63, T64))
U21_gaa(T4, T16, T63, last21_out_ag(T63, T64)) → goal1_out_gaa(T4, T16, T63)
LAST21_IN_AG(T59, .(T57, T60)) → LAST21_IN_AG(T59, T60)
LAST21_IN_AG(.(T60)) → LAST21_IN_AG(T60)
From the DPs we obtained the following set of size-change graphs:
APP20_IN_GAG(.(T36, T38), T39, .(T36, X53)) → APP20_IN_GAG(T38, T39, X53)
goal1_in_gaa(T4, T7, T8) → U8_gaa(T4, T7, T8, s2l4_in_ga(T4, X11))
s2l4_in_ga(0, []) → s2l4_out_ga(0, [])
s2l4_in_ga(s(T11), .(X25, X26)) → U1_ga(T11, X25, X26, s2l4_in_ga(T11, X26))
U1_ga(T11, X25, X26, s2l4_out_ga(T11, X26)) → s2l4_out_ga(s(T11), .(X25, X26))
U8_gaa(T4, T7, T8, s2l4_out_ga(T4, X11)) → goal1_out_gaa(T4, T7, T8)
goal1_in_gaa(T4, T16, T17) → U9_gaa(T4, T16, T17, s2l4_in_ga(T4, T15))
U9_gaa(T4, T16, T17, s2l4_out_ga(T4, T15)) → U10_gaa(T4, T16, T17, app20_in_gaa(T15, T16, X35))
app20_in_gaa([], T22, .(T22, [])) → app20_out_gaa([], T22, .(T22, []))
app20_in_gaa([], T30, .(X56, .(T30, []))) → app20_out_gaa([], T30, .(X56, .(T30, [])))
app20_in_gaa(.(T36, T38), T39, .(T36, X53)) → U2_gaa(T36, T38, T39, X53, app20_in_gaa(T38, T39, X53))
app20_in_gaa(.(T45, T47), T48, .(T45, X53)) → U3_gaa(T45, T47, T48, X53, app20_in_gaa(T47, T48, X53))
U3_gaa(T45, T47, T48, X53, app20_out_gaa(T47, T48, X53)) → app20_out_gaa(.(T45, T47), T48, .(T45, X53))
U2_gaa(T36, T38, T39, X53, app20_out_gaa(T38, T39, X53)) → app20_out_gaa(.(T36, T38), T39, .(T36, X53))
U10_gaa(T4, T16, T17, app20_out_gaa(T15, T16, X35)) → goal1_out_gaa(T4, T16, T17)
goal1_in_gaa(T4, T16, T49) → U11_gaa(T4, T16, T49, s2l4_in_ga(T4, T15))
U11_gaa(T4, T16, T49, s2l4_out_ga(T4, T15)) → U12_gaa(T4, T16, T49, app20_in_gag(T15, T16, .(T49, [])))
app20_in_gag([], T22, .(T22, [])) → app20_out_gag([], T22, .(T22, []))
app20_in_gag([], T30, .(X56, .(T30, []))) → app20_out_gag([], T30, .(X56, .(T30, [])))
app20_in_gag(.(T36, T38), T39, .(T36, X53)) → U2_gag(T36, T38, T39, X53, app20_in_gag(T38, T39, X53))
app20_in_gag(.(T45, T47), T48, .(T45, X53)) → U3_gag(T45, T47, T48, X53, app20_in_gag(T47, T48, X53))
U3_gag(T45, T47, T48, X53, app20_out_gag(T47, T48, X53)) → app20_out_gag(.(T45, T47), T48, .(T45, X53))
U2_gag(T36, T38, T39, X53, app20_out_gag(T38, T39, X53)) → app20_out_gag(.(T36, T38), T39, .(T36, X53))
U12_gaa(T4, T16, T49, app20_out_gag(T15, T16, .(T49, []))) → goal1_out_gaa(T4, T16, T49)
goal1_in_gaa(T4, T16, T56) → U13_gaa(T4, T16, T56, s2l4_in_ga(T4, T15))
U13_gaa(T4, T16, T56, s2l4_out_ga(T4, T15)) → U14_gaa(T4, T16, T56, app20_in_gag(T15, T16, []))
U14_gaa(T4, T16, T56, app20_out_gag(T15, T16, [])) → U15_gaa(T4, T16, T56, last63_in_a(T56))
last63_in_a(T56) → U4_a(T56, last63_in_a(T56))
U4_a(T56, last63_out_a(T56)) → last63_out_a(T56)
U15_gaa(T4, T16, T56, last63_out_a(T56)) → goal1_out_gaa(T4, T16, T56)
goal1_in_gaa(T4, T16, T59) → U16_gaa(T4, T16, T59, s2l4_in_ga(T4, T15))
U16_gaa(T4, T16, T59, s2l4_out_ga(T4, T15)) → U17_gaa(T4, T16, T59, app20_in_gaa(T15, T16, .(T57, T60)))
U17_gaa(T4, T16, T59, app20_out_gaa(T15, T16, .(T57, T60))) → U18_gaa(T4, T16, T59, last21_in_ag(T59, T60))
last21_in_ag(T49, .(T49, [])) → last21_out_ag(T49, .(T49, []))
last21_in_ag(T56, []) → U5_ag(T56, last63_in_a(T56))
U5_ag(T56, last63_out_a(T56)) → last21_out_ag(T56, [])
last21_in_ag(T59, .(T57, T60)) → U6_ag(T59, T57, T60, last21_in_ag(T59, T60))
last21_in_ag(T63, .(T61, T64)) → U7_ag(T63, T61, T64, last21_in_ag(T63, T64))
U7_ag(T63, T61, T64, last21_out_ag(T63, T64)) → last21_out_ag(T63, .(T61, T64))
U6_ag(T59, T57, T60, last21_out_ag(T59, T60)) → last21_out_ag(T59, .(T57, T60))
U18_gaa(T4, T16, T59, last21_out_ag(T59, T60)) → goal1_out_gaa(T4, T16, T59)
goal1_in_gaa(T4, T16, T63) → U19_gaa(T4, T16, T63, s2l4_in_ga(T4, T15))
U19_gaa(T4, T16, T63, s2l4_out_ga(T4, T15)) → U20_gaa(T4, T16, T63, app20_in_gaa(T15, T16, .(T61, T64)))
U20_gaa(T4, T16, T63, app20_out_gaa(T15, T16, .(T61, T64))) → U21_gaa(T4, T16, T63, last21_in_ag(T63, T64))
U21_gaa(T4, T16, T63, last21_out_ag(T63, T64)) → goal1_out_gaa(T4, T16, T63)
APP20_IN_GAG(.(T36, T38), T39, .(T36, X53)) → APP20_IN_GAG(T38, T39, X53)
APP20_IN_GAG(.(T38), .(X53)) → APP20_IN_GAG(T38, X53)
From the DPs we obtained the following set of size-change graphs:
APP20_IN_GAA(.(T36, T38), T39, .(T36, X53)) → APP20_IN_GAA(T38, T39, X53)
goal1_in_gaa(T4, T7, T8) → U8_gaa(T4, T7, T8, s2l4_in_ga(T4, X11))
s2l4_in_ga(0, []) → s2l4_out_ga(0, [])
s2l4_in_ga(s(T11), .(X25, X26)) → U1_ga(T11, X25, X26, s2l4_in_ga(T11, X26))
U1_ga(T11, X25, X26, s2l4_out_ga(T11, X26)) → s2l4_out_ga(s(T11), .(X25, X26))
U8_gaa(T4, T7, T8, s2l4_out_ga(T4, X11)) → goal1_out_gaa(T4, T7, T8)
goal1_in_gaa(T4, T16, T17) → U9_gaa(T4, T16, T17, s2l4_in_ga(T4, T15))
U9_gaa(T4, T16, T17, s2l4_out_ga(T4, T15)) → U10_gaa(T4, T16, T17, app20_in_gaa(T15, T16, X35))
app20_in_gaa([], T22, .(T22, [])) → app20_out_gaa([], T22, .(T22, []))
app20_in_gaa([], T30, .(X56, .(T30, []))) → app20_out_gaa([], T30, .(X56, .(T30, [])))
app20_in_gaa(.(T36, T38), T39, .(T36, X53)) → U2_gaa(T36, T38, T39, X53, app20_in_gaa(T38, T39, X53))
app20_in_gaa(.(T45, T47), T48, .(T45, X53)) → U3_gaa(T45, T47, T48, X53, app20_in_gaa(T47, T48, X53))
U3_gaa(T45, T47, T48, X53, app20_out_gaa(T47, T48, X53)) → app20_out_gaa(.(T45, T47), T48, .(T45, X53))
U2_gaa(T36, T38, T39, X53, app20_out_gaa(T38, T39, X53)) → app20_out_gaa(.(T36, T38), T39, .(T36, X53))
U10_gaa(T4, T16, T17, app20_out_gaa(T15, T16, X35)) → goal1_out_gaa(T4, T16, T17)
goal1_in_gaa(T4, T16, T49) → U11_gaa(T4, T16, T49, s2l4_in_ga(T4, T15))
U11_gaa(T4, T16, T49, s2l4_out_ga(T4, T15)) → U12_gaa(T4, T16, T49, app20_in_gag(T15, T16, .(T49, [])))
app20_in_gag([], T22, .(T22, [])) → app20_out_gag([], T22, .(T22, []))
app20_in_gag([], T30, .(X56, .(T30, []))) → app20_out_gag([], T30, .(X56, .(T30, [])))
app20_in_gag(.(T36, T38), T39, .(T36, X53)) → U2_gag(T36, T38, T39, X53, app20_in_gag(T38, T39, X53))
app20_in_gag(.(T45, T47), T48, .(T45, X53)) → U3_gag(T45, T47, T48, X53, app20_in_gag(T47, T48, X53))
U3_gag(T45, T47, T48, X53, app20_out_gag(T47, T48, X53)) → app20_out_gag(.(T45, T47), T48, .(T45, X53))
U2_gag(T36, T38, T39, X53, app20_out_gag(T38, T39, X53)) → app20_out_gag(.(T36, T38), T39, .(T36, X53))
U12_gaa(T4, T16, T49, app20_out_gag(T15, T16, .(T49, []))) → goal1_out_gaa(T4, T16, T49)
goal1_in_gaa(T4, T16, T56) → U13_gaa(T4, T16, T56, s2l4_in_ga(T4, T15))
U13_gaa(T4, T16, T56, s2l4_out_ga(T4, T15)) → U14_gaa(T4, T16, T56, app20_in_gag(T15, T16, []))
U14_gaa(T4, T16, T56, app20_out_gag(T15, T16, [])) → U15_gaa(T4, T16, T56, last63_in_a(T56))
last63_in_a(T56) → U4_a(T56, last63_in_a(T56))
U4_a(T56, last63_out_a(T56)) → last63_out_a(T56)
U15_gaa(T4, T16, T56, last63_out_a(T56)) → goal1_out_gaa(T4, T16, T56)
goal1_in_gaa(T4, T16, T59) → U16_gaa(T4, T16, T59, s2l4_in_ga(T4, T15))
U16_gaa(T4, T16, T59, s2l4_out_ga(T4, T15)) → U17_gaa(T4, T16, T59, app20_in_gaa(T15, T16, .(T57, T60)))
U17_gaa(T4, T16, T59, app20_out_gaa(T15, T16, .(T57, T60))) → U18_gaa(T4, T16, T59, last21_in_ag(T59, T60))
last21_in_ag(T49, .(T49, [])) → last21_out_ag(T49, .(T49, []))
last21_in_ag(T56, []) → U5_ag(T56, last63_in_a(T56))
U5_ag(T56, last63_out_a(T56)) → last21_out_ag(T56, [])
last21_in_ag(T59, .(T57, T60)) → U6_ag(T59, T57, T60, last21_in_ag(T59, T60))
last21_in_ag(T63, .(T61, T64)) → U7_ag(T63, T61, T64, last21_in_ag(T63, T64))
U7_ag(T63, T61, T64, last21_out_ag(T63, T64)) → last21_out_ag(T63, .(T61, T64))
U6_ag(T59, T57, T60, last21_out_ag(T59, T60)) → last21_out_ag(T59, .(T57, T60))
U18_gaa(T4, T16, T59, last21_out_ag(T59, T60)) → goal1_out_gaa(T4, T16, T59)
goal1_in_gaa(T4, T16, T63) → U19_gaa(T4, T16, T63, s2l4_in_ga(T4, T15))
U19_gaa(T4, T16, T63, s2l4_out_ga(T4, T15)) → U20_gaa(T4, T16, T63, app20_in_gaa(T15, T16, .(T61, T64)))
U20_gaa(T4, T16, T63, app20_out_gaa(T15, T16, .(T61, T64))) → U21_gaa(T4, T16, T63, last21_in_ag(T63, T64))
U21_gaa(T4, T16, T63, last21_out_ag(T63, T64)) → goal1_out_gaa(T4, T16, T63)
APP20_IN_GAA(.(T36, T38), T39, .(T36, X53)) → APP20_IN_GAA(T38, T39, X53)
APP20_IN_GAA(.(T38)) → APP20_IN_GAA(T38)
From the DPs we obtained the following set of size-change graphs:
S2L4_IN_GA(s(T11), .(X25, X26)) → S2L4_IN_GA(T11, X26)
goal1_in_gaa(T4, T7, T8) → U8_gaa(T4, T7, T8, s2l4_in_ga(T4, X11))
s2l4_in_ga(0, []) → s2l4_out_ga(0, [])
s2l4_in_ga(s(T11), .(X25, X26)) → U1_ga(T11, X25, X26, s2l4_in_ga(T11, X26))
U1_ga(T11, X25, X26, s2l4_out_ga(T11, X26)) → s2l4_out_ga(s(T11), .(X25, X26))
U8_gaa(T4, T7, T8, s2l4_out_ga(T4, X11)) → goal1_out_gaa(T4, T7, T8)
goal1_in_gaa(T4, T16, T17) → U9_gaa(T4, T16, T17, s2l4_in_ga(T4, T15))
U9_gaa(T4, T16, T17, s2l4_out_ga(T4, T15)) → U10_gaa(T4, T16, T17, app20_in_gaa(T15, T16, X35))
app20_in_gaa([], T22, .(T22, [])) → app20_out_gaa([], T22, .(T22, []))
app20_in_gaa([], T30, .(X56, .(T30, []))) → app20_out_gaa([], T30, .(X56, .(T30, [])))
app20_in_gaa(.(T36, T38), T39, .(T36, X53)) → U2_gaa(T36, T38, T39, X53, app20_in_gaa(T38, T39, X53))
app20_in_gaa(.(T45, T47), T48, .(T45, X53)) → U3_gaa(T45, T47, T48, X53, app20_in_gaa(T47, T48, X53))
U3_gaa(T45, T47, T48, X53, app20_out_gaa(T47, T48, X53)) → app20_out_gaa(.(T45, T47), T48, .(T45, X53))
U2_gaa(T36, T38, T39, X53, app20_out_gaa(T38, T39, X53)) → app20_out_gaa(.(T36, T38), T39, .(T36, X53))
U10_gaa(T4, T16, T17, app20_out_gaa(T15, T16, X35)) → goal1_out_gaa(T4, T16, T17)
goal1_in_gaa(T4, T16, T49) → U11_gaa(T4, T16, T49, s2l4_in_ga(T4, T15))
U11_gaa(T4, T16, T49, s2l4_out_ga(T4, T15)) → U12_gaa(T4, T16, T49, app20_in_gag(T15, T16, .(T49, [])))
app20_in_gag([], T22, .(T22, [])) → app20_out_gag([], T22, .(T22, []))
app20_in_gag([], T30, .(X56, .(T30, []))) → app20_out_gag([], T30, .(X56, .(T30, [])))
app20_in_gag(.(T36, T38), T39, .(T36, X53)) → U2_gag(T36, T38, T39, X53, app20_in_gag(T38, T39, X53))
app20_in_gag(.(T45, T47), T48, .(T45, X53)) → U3_gag(T45, T47, T48, X53, app20_in_gag(T47, T48, X53))
U3_gag(T45, T47, T48, X53, app20_out_gag(T47, T48, X53)) → app20_out_gag(.(T45, T47), T48, .(T45, X53))
U2_gag(T36, T38, T39, X53, app20_out_gag(T38, T39, X53)) → app20_out_gag(.(T36, T38), T39, .(T36, X53))
U12_gaa(T4, T16, T49, app20_out_gag(T15, T16, .(T49, []))) → goal1_out_gaa(T4, T16, T49)
goal1_in_gaa(T4, T16, T56) → U13_gaa(T4, T16, T56, s2l4_in_ga(T4, T15))
U13_gaa(T4, T16, T56, s2l4_out_ga(T4, T15)) → U14_gaa(T4, T16, T56, app20_in_gag(T15, T16, []))
U14_gaa(T4, T16, T56, app20_out_gag(T15, T16, [])) → U15_gaa(T4, T16, T56, last63_in_a(T56))
last63_in_a(T56) → U4_a(T56, last63_in_a(T56))
U4_a(T56, last63_out_a(T56)) → last63_out_a(T56)
U15_gaa(T4, T16, T56, last63_out_a(T56)) → goal1_out_gaa(T4, T16, T56)
goal1_in_gaa(T4, T16, T59) → U16_gaa(T4, T16, T59, s2l4_in_ga(T4, T15))
U16_gaa(T4, T16, T59, s2l4_out_ga(T4, T15)) → U17_gaa(T4, T16, T59, app20_in_gaa(T15, T16, .(T57, T60)))
U17_gaa(T4, T16, T59, app20_out_gaa(T15, T16, .(T57, T60))) → U18_gaa(T4, T16, T59, last21_in_ag(T59, T60))
last21_in_ag(T49, .(T49, [])) → last21_out_ag(T49, .(T49, []))
last21_in_ag(T56, []) → U5_ag(T56, last63_in_a(T56))
U5_ag(T56, last63_out_a(T56)) → last21_out_ag(T56, [])
last21_in_ag(T59, .(T57, T60)) → U6_ag(T59, T57, T60, last21_in_ag(T59, T60))
last21_in_ag(T63, .(T61, T64)) → U7_ag(T63, T61, T64, last21_in_ag(T63, T64))
U7_ag(T63, T61, T64, last21_out_ag(T63, T64)) → last21_out_ag(T63, .(T61, T64))
U6_ag(T59, T57, T60, last21_out_ag(T59, T60)) → last21_out_ag(T59, .(T57, T60))
U18_gaa(T4, T16, T59, last21_out_ag(T59, T60)) → goal1_out_gaa(T4, T16, T59)
goal1_in_gaa(T4, T16, T63) → U19_gaa(T4, T16, T63, s2l4_in_ga(T4, T15))
U19_gaa(T4, T16, T63, s2l4_out_ga(T4, T15)) → U20_gaa(T4, T16, T63, app20_in_gaa(T15, T16, .(T61, T64)))
U20_gaa(T4, T16, T63, app20_out_gaa(T15, T16, .(T61, T64))) → U21_gaa(T4, T16, T63, last21_in_ag(T63, T64))
U21_gaa(T4, T16, T63, last21_out_ag(T63, T64)) → goal1_out_gaa(T4, T16, T63)
S2L4_IN_GA(s(T11), .(X25, X26)) → S2L4_IN_GA(T11, X26)
S2L4_IN_GA(s(T11)) → S2L4_IN_GA(T11)
From the DPs we obtained the following set of size-change graphs: