0 Prolog
↳1 PrologToPrologProblemTransformerProof (⇐)
↳2 Prolog
↳3 PrologToPiTRSProof (⇐)
↳4 PiTRS
↳5 DependencyPairsProof (⇔)
↳6 PiDP
↳7 DependencyGraphProof (⇔)
↳8 AND
↳9 PiDP
↳10 UsableRulesProof (⇔)
↳11 PiDP
↳12 PiDPToQDPProof (⇐)
↳13 QDP
↳14 QDPSizeChangeProof (⇔)
↳15 YES
↳16 PiDP
↳17 UsableRulesProof (⇔)
↳18 PiDP
↳19 PiDPToQDPProof (⇐)
↳20 QDP
↳21 NonTerminationProof (⇔)
↳22 NO
↳23 PiDP
↳24 UsableRulesProof (⇔)
↳25 PiDP
↳26 PiDPToQDPProof (⇐)
↳27 QDP
↳28 NonTerminationProof (⇔)
↳29 NO
↳30 PiDP
↳31 UsableRulesProof (⇔)
↳32 PiDP
↳33 PiDPToQDPProof (⇐)
↳34 QDP
↳35 Narrowing (⇐)
↳36 QDP
↳37 NonTerminationProof (⇔)
↳38 NO
↳39 PiDP
↳40 UsableRulesProof (⇔)
↳41 PiDP
↳42 PiDPToQDPProof (⇐)
↳43 QDP
↳44 QDPSizeChangeProof (⇔)
↳45 YES
↳46 PrologToPiTRSProof (⇐)
↳47 PiTRS
↳48 DependencyPairsProof (⇔)
↳49 PiDP
↳50 DependencyGraphProof (⇔)
↳51 AND
↳52 PiDP
↳53 UsableRulesProof (⇔)
↳54 PiDP
↳55 PiDPToQDPProof (⇐)
↳56 QDP
↳57 QDPSizeChangeProof (⇔)
↳58 YES
↳59 PiDP
↳60 UsableRulesProof (⇔)
↳61 PiDP
↳62 PiDPToQDPProof (⇐)
↳63 QDP
↳64 NonTerminationProof (⇔)
↳65 NO
↳66 PiDP
↳67 UsableRulesProof (⇔)
↳68 PiDP
↳69 PiDPToQDPProof (⇐)
↳70 QDP
↳71 NonTerminationProof (⇔)
↳72 NO
↳73 PiDP
↳74 UsableRulesProof (⇔)
↳75 PiDP
↳76 PiDPToQDPProof (⇐)
↳77 QDP
↳78 Narrowing (⇐)
↳79 QDP
↳80 NonTerminationProof (⇔)
↳81 NO
↳82 PiDP
↳83 UsableRulesProof (⇔)
↳84 PiDP
↳85 PiDPToQDPProof (⇐)
↳86 QDP
↳87 QDPSizeChangeProof (⇔)
↳88 YES
query1_in_g(T6) → U9_g(T6, p6_in_gaa(T6, X19, X21))
p6_in_gaa(T6, X19, X21) → U5_gaa(T6, X19, X21, reverse7_in_ga(T6, X19))
reverse7_in_ga(nil, nil) → reverse7_out_ga(nil, nil)
reverse7_in_ga(cons(T12, nil), cons(T12, nil)) → reverse7_out_ga(cons(T12, nil), cons(T12, nil))
reverse7_in_ga(cons(T17, T18), X41) → U1_ga(T17, T18, X41, reverse7_in_ga(T18, X40))
reverse7_in_ga(cons(T17, T18), X41) → U2_ga(T17, T18, X41, reverse7_in_ga(T18, T19))
U2_ga(T17, T18, X41, reverse7_out_ga(T18, T19)) → U3_ga(T17, T18, X41, append23_in_aaa(T19, T17, X41))
append23_in_aaa(nil, T26, cons(T26, nil)) → append23_out_aaa(nil, T26, cons(T26, nil))
append23_in_aaa(cons(T33, T34), T35, cons(T33, X67)) → U4_aaa(T33, T34, T35, X67, append23_in_aaa(T34, T35, X67))
U4_aaa(T33, T34, T35, X67, append23_out_aaa(T34, T35, X67)) → append23_out_aaa(cons(T33, T34), T35, cons(T33, X67))
U3_ga(T17, T18, X41, append23_out_aaa(T19, T17, X41)) → reverse7_out_ga(cons(T17, T18), X41)
U1_ga(T17, T18, X41, reverse7_out_ga(T18, X40)) → reverse7_out_ga(cons(T17, T18), X41)
U5_gaa(T6, X19, X21, reverse7_out_ga(T6, X19)) → p6_out_gaa(T6, X19, X21)
p6_in_gaa(T6, nil, nil) → U6_gaa(T6, reverse7_in_gg(T6, nil))
reverse7_in_gg(nil, nil) → reverse7_out_gg(nil, nil)
reverse7_in_gg(cons(T12, nil), cons(T12, nil)) → reverse7_out_gg(cons(T12, nil), cons(T12, nil))
reverse7_in_gg(cons(T17, T18), X41) → U1_gg(T17, T18, X41, reverse7_in_ga(T18, X40))
U1_gg(T17, T18, X41, reverse7_out_ga(T18, X40)) → reverse7_out_gg(cons(T17, T18), X41)
reverse7_in_gg(cons(T17, T18), X41) → U2_gg(T17, T18, X41, reverse7_in_ga(T18, T19))
U2_gg(T17, T18, X41, reverse7_out_ga(T18, T19)) → U3_gg(T17, T18, X41, append23_in_aag(T19, T17, X41))
append23_in_aag(nil, T26, cons(T26, nil)) → append23_out_aag(nil, T26, cons(T26, nil))
append23_in_aag(cons(T33, T34), T35, cons(T33, X67)) → U4_aag(T33, T34, T35, X67, append23_in_aag(T34, T35, X67))
U4_aag(T33, T34, T35, X67, append23_out_aag(T34, T35, X67)) → append23_out_aag(cons(T33, T34), T35, cons(T33, X67))
U3_gg(T17, T18, X41, append23_out_aag(T19, T17, X41)) → reverse7_out_gg(cons(T17, T18), X41)
U6_gaa(T6, reverse7_out_gg(T6, nil)) → p6_out_gaa(T6, nil, nil)
p6_in_gaa(T6, cons(T42, T43), cons(T42, X87)) → U7_gaa(T6, T42, T43, X87, reverse7_in_ga(T6, cons(T42, T43)))
U7_gaa(T6, T42, T43, X87, reverse7_out_ga(T6, cons(T42, T43))) → U8_gaa(T6, T42, T43, X87, p6_in_aaa(T43, X86, X87))
p6_in_aaa(T6, X19, X21) → U5_aaa(T6, X19, X21, reverse7_in_aa(T6, X19))
reverse7_in_aa(nil, nil) → reverse7_out_aa(nil, nil)
reverse7_in_aa(cons(T12, nil), cons(T12, nil)) → reverse7_out_aa(cons(T12, nil), cons(T12, nil))
reverse7_in_aa(cons(T17, T18), X41) → U1_aa(T17, T18, X41, reverse7_in_aa(T18, X40))
reverse7_in_aa(cons(T17, T18), X41) → U2_aa(T17, T18, X41, reverse7_in_aa(T18, T19))
U2_aa(T17, T18, X41, reverse7_out_aa(T18, T19)) → U3_aa(T17, T18, X41, append23_in_aaa(T19, T17, X41))
U3_aa(T17, T18, X41, append23_out_aaa(T19, T17, X41)) → reverse7_out_aa(cons(T17, T18), X41)
U1_aa(T17, T18, X41, reverse7_out_aa(T18, X40)) → reverse7_out_aa(cons(T17, T18), X41)
U5_aaa(T6, X19, X21, reverse7_out_aa(T6, X19)) → p6_out_aaa(T6, X19, X21)
p6_in_aaa(T6, nil, nil) → U6_aaa(T6, reverse7_in_ag(T6, nil))
reverse7_in_ag(nil, nil) → reverse7_out_ag(nil, nil)
reverse7_in_ag(cons(T12, nil), cons(T12, nil)) → reverse7_out_ag(cons(T12, nil), cons(T12, nil))
reverse7_in_ag(cons(T17, T18), X41) → U1_ag(T17, T18, X41, reverse7_in_aa(T18, X40))
U1_ag(T17, T18, X41, reverse7_out_aa(T18, X40)) → reverse7_out_ag(cons(T17, T18), X41)
reverse7_in_ag(cons(T17, T18), X41) → U2_ag(T17, T18, X41, reverse7_in_aa(T18, T19))
U2_ag(T17, T18, X41, reverse7_out_aa(T18, T19)) → U3_ag(T17, T18, X41, append23_in_aag(T19, T17, X41))
U3_ag(T17, T18, X41, append23_out_aag(T19, T17, X41)) → reverse7_out_ag(cons(T17, T18), X41)
U6_aaa(T6, reverse7_out_ag(T6, nil)) → p6_out_aaa(T6, nil, nil)
p6_in_aaa(T6, cons(T42, T43), cons(T42, X87)) → U7_aaa(T6, T42, T43, X87, reverse7_in_aa(T6, cons(T42, T43)))
U7_aaa(T6, T42, T43, X87, reverse7_out_aa(T6, cons(T42, T43))) → U8_aaa(T6, T42, T43, X87, p6_in_aaa(T43, X86, X87))
U8_aaa(T6, T42, T43, X87, p6_out_aaa(T43, X86, X87)) → p6_out_aaa(T6, cons(T42, T43), cons(T42, X87))
U8_gaa(T6, T42, T43, X87, p6_out_aaa(T43, X86, X87)) → p6_out_gaa(T6, cons(T42, T43), cons(T42, X87))
U9_g(T6, p6_out_gaa(T6, X19, X21)) → query1_out_g(T6)
Infinitary Constructor Rewriting Termination of PiTRS implies Termination of Prolog
query1_in_g(T6) → U9_g(T6, p6_in_gaa(T6, X19, X21))
p6_in_gaa(T6, X19, X21) → U5_gaa(T6, X19, X21, reverse7_in_ga(T6, X19))
reverse7_in_ga(nil, nil) → reverse7_out_ga(nil, nil)
reverse7_in_ga(cons(T12, nil), cons(T12, nil)) → reverse7_out_ga(cons(T12, nil), cons(T12, nil))
reverse7_in_ga(cons(T17, T18), X41) → U1_ga(T17, T18, X41, reverse7_in_ga(T18, X40))
reverse7_in_ga(cons(T17, T18), X41) → U2_ga(T17, T18, X41, reverse7_in_ga(T18, T19))
U2_ga(T17, T18, X41, reverse7_out_ga(T18, T19)) → U3_ga(T17, T18, X41, append23_in_aaa(T19, T17, X41))
append23_in_aaa(nil, T26, cons(T26, nil)) → append23_out_aaa(nil, T26, cons(T26, nil))
append23_in_aaa(cons(T33, T34), T35, cons(T33, X67)) → U4_aaa(T33, T34, T35, X67, append23_in_aaa(T34, T35, X67))
U4_aaa(T33, T34, T35, X67, append23_out_aaa(T34, T35, X67)) → append23_out_aaa(cons(T33, T34), T35, cons(T33, X67))
U3_ga(T17, T18, X41, append23_out_aaa(T19, T17, X41)) → reverse7_out_ga(cons(T17, T18), X41)
U1_ga(T17, T18, X41, reverse7_out_ga(T18, X40)) → reverse7_out_ga(cons(T17, T18), X41)
U5_gaa(T6, X19, X21, reverse7_out_ga(T6, X19)) → p6_out_gaa(T6, X19, X21)
p6_in_gaa(T6, nil, nil) → U6_gaa(T6, reverse7_in_gg(T6, nil))
reverse7_in_gg(nil, nil) → reverse7_out_gg(nil, nil)
reverse7_in_gg(cons(T12, nil), cons(T12, nil)) → reverse7_out_gg(cons(T12, nil), cons(T12, nil))
reverse7_in_gg(cons(T17, T18), X41) → U1_gg(T17, T18, X41, reverse7_in_ga(T18, X40))
U1_gg(T17, T18, X41, reverse7_out_ga(T18, X40)) → reverse7_out_gg(cons(T17, T18), X41)
reverse7_in_gg(cons(T17, T18), X41) → U2_gg(T17, T18, X41, reverse7_in_ga(T18, T19))
U2_gg(T17, T18, X41, reverse7_out_ga(T18, T19)) → U3_gg(T17, T18, X41, append23_in_aag(T19, T17, X41))
append23_in_aag(nil, T26, cons(T26, nil)) → append23_out_aag(nil, T26, cons(T26, nil))
append23_in_aag(cons(T33, T34), T35, cons(T33, X67)) → U4_aag(T33, T34, T35, X67, append23_in_aag(T34, T35, X67))
U4_aag(T33, T34, T35, X67, append23_out_aag(T34, T35, X67)) → append23_out_aag(cons(T33, T34), T35, cons(T33, X67))
U3_gg(T17, T18, X41, append23_out_aag(T19, T17, X41)) → reverse7_out_gg(cons(T17, T18), X41)
U6_gaa(T6, reverse7_out_gg(T6, nil)) → p6_out_gaa(T6, nil, nil)
p6_in_gaa(T6, cons(T42, T43), cons(T42, X87)) → U7_gaa(T6, T42, T43, X87, reverse7_in_ga(T6, cons(T42, T43)))
U7_gaa(T6, T42, T43, X87, reverse7_out_ga(T6, cons(T42, T43))) → U8_gaa(T6, T42, T43, X87, p6_in_aaa(T43, X86, X87))
p6_in_aaa(T6, X19, X21) → U5_aaa(T6, X19, X21, reverse7_in_aa(T6, X19))
reverse7_in_aa(nil, nil) → reverse7_out_aa(nil, nil)
reverse7_in_aa(cons(T12, nil), cons(T12, nil)) → reverse7_out_aa(cons(T12, nil), cons(T12, nil))
reverse7_in_aa(cons(T17, T18), X41) → U1_aa(T17, T18, X41, reverse7_in_aa(T18, X40))
reverse7_in_aa(cons(T17, T18), X41) → U2_aa(T17, T18, X41, reverse7_in_aa(T18, T19))
U2_aa(T17, T18, X41, reverse7_out_aa(T18, T19)) → U3_aa(T17, T18, X41, append23_in_aaa(T19, T17, X41))
U3_aa(T17, T18, X41, append23_out_aaa(T19, T17, X41)) → reverse7_out_aa(cons(T17, T18), X41)
U1_aa(T17, T18, X41, reverse7_out_aa(T18, X40)) → reverse7_out_aa(cons(T17, T18), X41)
U5_aaa(T6, X19, X21, reverse7_out_aa(T6, X19)) → p6_out_aaa(T6, X19, X21)
p6_in_aaa(T6, nil, nil) → U6_aaa(T6, reverse7_in_ag(T6, nil))
reverse7_in_ag(nil, nil) → reverse7_out_ag(nil, nil)
reverse7_in_ag(cons(T12, nil), cons(T12, nil)) → reverse7_out_ag(cons(T12, nil), cons(T12, nil))
reverse7_in_ag(cons(T17, T18), X41) → U1_ag(T17, T18, X41, reverse7_in_aa(T18, X40))
U1_ag(T17, T18, X41, reverse7_out_aa(T18, X40)) → reverse7_out_ag(cons(T17, T18), X41)
reverse7_in_ag(cons(T17, T18), X41) → U2_ag(T17, T18, X41, reverse7_in_aa(T18, T19))
U2_ag(T17, T18, X41, reverse7_out_aa(T18, T19)) → U3_ag(T17, T18, X41, append23_in_aag(T19, T17, X41))
U3_ag(T17, T18, X41, append23_out_aag(T19, T17, X41)) → reverse7_out_ag(cons(T17, T18), X41)
U6_aaa(T6, reverse7_out_ag(T6, nil)) → p6_out_aaa(T6, nil, nil)
p6_in_aaa(T6, cons(T42, T43), cons(T42, X87)) → U7_aaa(T6, T42, T43, X87, reverse7_in_aa(T6, cons(T42, T43)))
U7_aaa(T6, T42, T43, X87, reverse7_out_aa(T6, cons(T42, T43))) → U8_aaa(T6, T42, T43, X87, p6_in_aaa(T43, X86, X87))
U8_aaa(T6, T42, T43, X87, p6_out_aaa(T43, X86, X87)) → p6_out_aaa(T6, cons(T42, T43), cons(T42, X87))
U8_gaa(T6, T42, T43, X87, p6_out_aaa(T43, X86, X87)) → p6_out_gaa(T6, cons(T42, T43), cons(T42, X87))
U9_g(T6, p6_out_gaa(T6, X19, X21)) → query1_out_g(T6)
QUERY1_IN_G(T6) → U9_G(T6, p6_in_gaa(T6, X19, X21))
QUERY1_IN_G(T6) → P6_IN_GAA(T6, X19, X21)
P6_IN_GAA(T6, X19, X21) → U5_GAA(T6, X19, X21, reverse7_in_ga(T6, X19))
P6_IN_GAA(T6, X19, X21) → REVERSE7_IN_GA(T6, X19)
REVERSE7_IN_GA(cons(T17, T18), X41) → U1_GA(T17, T18, X41, reverse7_in_ga(T18, X40))
REVERSE7_IN_GA(cons(T17, T18), X41) → REVERSE7_IN_GA(T18, X40)
REVERSE7_IN_GA(cons(T17, T18), X41) → U2_GA(T17, T18, X41, reverse7_in_ga(T18, T19))
U2_GA(T17, T18, X41, reverse7_out_ga(T18, T19)) → U3_GA(T17, T18, X41, append23_in_aaa(T19, T17, X41))
U2_GA(T17, T18, X41, reverse7_out_ga(T18, T19)) → APPEND23_IN_AAA(T19, T17, X41)
APPEND23_IN_AAA(cons(T33, T34), T35, cons(T33, X67)) → U4_AAA(T33, T34, T35, X67, append23_in_aaa(T34, T35, X67))
APPEND23_IN_AAA(cons(T33, T34), T35, cons(T33, X67)) → APPEND23_IN_AAA(T34, T35, X67)
P6_IN_GAA(T6, nil, nil) → U6_GAA(T6, reverse7_in_gg(T6, nil))
P6_IN_GAA(T6, nil, nil) → REVERSE7_IN_GG(T6, nil)
REVERSE7_IN_GG(cons(T17, T18), X41) → U1_GG(T17, T18, X41, reverse7_in_ga(T18, X40))
REVERSE7_IN_GG(cons(T17, T18), X41) → REVERSE7_IN_GA(T18, X40)
REVERSE7_IN_GG(cons(T17, T18), X41) → U2_GG(T17, T18, X41, reverse7_in_ga(T18, T19))
U2_GG(T17, T18, X41, reverse7_out_ga(T18, T19)) → U3_GG(T17, T18, X41, append23_in_aag(T19, T17, X41))
U2_GG(T17, T18, X41, reverse7_out_ga(T18, T19)) → APPEND23_IN_AAG(T19, T17, X41)
APPEND23_IN_AAG(cons(T33, T34), T35, cons(T33, X67)) → U4_AAG(T33, T34, T35, X67, append23_in_aag(T34, T35, X67))
APPEND23_IN_AAG(cons(T33, T34), T35, cons(T33, X67)) → APPEND23_IN_AAG(T34, T35, X67)
P6_IN_GAA(T6, cons(T42, T43), cons(T42, X87)) → U7_GAA(T6, T42, T43, X87, reverse7_in_ga(T6, cons(T42, T43)))
P6_IN_GAA(T6, cons(T42, T43), cons(T42, X87)) → REVERSE7_IN_GA(T6, cons(T42, T43))
U7_GAA(T6, T42, T43, X87, reverse7_out_ga(T6, cons(T42, T43))) → U8_GAA(T6, T42, T43, X87, p6_in_aaa(T43, X86, X87))
U7_GAA(T6, T42, T43, X87, reverse7_out_ga(T6, cons(T42, T43))) → P6_IN_AAA(T43, X86, X87)
P6_IN_AAA(T6, X19, X21) → U5_AAA(T6, X19, X21, reverse7_in_aa(T6, X19))
P6_IN_AAA(T6, X19, X21) → REVERSE7_IN_AA(T6, X19)
REVERSE7_IN_AA(cons(T17, T18), X41) → U1_AA(T17, T18, X41, reverse7_in_aa(T18, X40))
REVERSE7_IN_AA(cons(T17, T18), X41) → REVERSE7_IN_AA(T18, X40)
REVERSE7_IN_AA(cons(T17, T18), X41) → U2_AA(T17, T18, X41, reverse7_in_aa(T18, T19))
U2_AA(T17, T18, X41, reverse7_out_aa(T18, T19)) → U3_AA(T17, T18, X41, append23_in_aaa(T19, T17, X41))
U2_AA(T17, T18, X41, reverse7_out_aa(T18, T19)) → APPEND23_IN_AAA(T19, T17, X41)
P6_IN_AAA(T6, nil, nil) → U6_AAA(T6, reverse7_in_ag(T6, nil))
P6_IN_AAA(T6, nil, nil) → REVERSE7_IN_AG(T6, nil)
REVERSE7_IN_AG(cons(T17, T18), X41) → U1_AG(T17, T18, X41, reverse7_in_aa(T18, X40))
REVERSE7_IN_AG(cons(T17, T18), X41) → REVERSE7_IN_AA(T18, X40)
REVERSE7_IN_AG(cons(T17, T18), X41) → U2_AG(T17, T18, X41, reverse7_in_aa(T18, T19))
U2_AG(T17, T18, X41, reverse7_out_aa(T18, T19)) → U3_AG(T17, T18, X41, append23_in_aag(T19, T17, X41))
U2_AG(T17, T18, X41, reverse7_out_aa(T18, T19)) → APPEND23_IN_AAG(T19, T17, X41)
P6_IN_AAA(T6, cons(T42, T43), cons(T42, X87)) → U7_AAA(T6, T42, T43, X87, reverse7_in_aa(T6, cons(T42, T43)))
P6_IN_AAA(T6, cons(T42, T43), cons(T42, X87)) → REVERSE7_IN_AA(T6, cons(T42, T43))
U7_AAA(T6, T42, T43, X87, reverse7_out_aa(T6, cons(T42, T43))) → U8_AAA(T6, T42, T43, X87, p6_in_aaa(T43, X86, X87))
U7_AAA(T6, T42, T43, X87, reverse7_out_aa(T6, cons(T42, T43))) → P6_IN_AAA(T43, X86, X87)
query1_in_g(T6) → U9_g(T6, p6_in_gaa(T6, X19, X21))
p6_in_gaa(T6, X19, X21) → U5_gaa(T6, X19, X21, reverse7_in_ga(T6, X19))
reverse7_in_ga(nil, nil) → reverse7_out_ga(nil, nil)
reverse7_in_ga(cons(T12, nil), cons(T12, nil)) → reverse7_out_ga(cons(T12, nil), cons(T12, nil))
reverse7_in_ga(cons(T17, T18), X41) → U1_ga(T17, T18, X41, reverse7_in_ga(T18, X40))
reverse7_in_ga(cons(T17, T18), X41) → U2_ga(T17, T18, X41, reverse7_in_ga(T18, T19))
U2_ga(T17, T18, X41, reverse7_out_ga(T18, T19)) → U3_ga(T17, T18, X41, append23_in_aaa(T19, T17, X41))
append23_in_aaa(nil, T26, cons(T26, nil)) → append23_out_aaa(nil, T26, cons(T26, nil))
append23_in_aaa(cons(T33, T34), T35, cons(T33, X67)) → U4_aaa(T33, T34, T35, X67, append23_in_aaa(T34, T35, X67))
U4_aaa(T33, T34, T35, X67, append23_out_aaa(T34, T35, X67)) → append23_out_aaa(cons(T33, T34), T35, cons(T33, X67))
U3_ga(T17, T18, X41, append23_out_aaa(T19, T17, X41)) → reverse7_out_ga(cons(T17, T18), X41)
U1_ga(T17, T18, X41, reverse7_out_ga(T18, X40)) → reverse7_out_ga(cons(T17, T18), X41)
U5_gaa(T6, X19, X21, reverse7_out_ga(T6, X19)) → p6_out_gaa(T6, X19, X21)
p6_in_gaa(T6, nil, nil) → U6_gaa(T6, reverse7_in_gg(T6, nil))
reverse7_in_gg(nil, nil) → reverse7_out_gg(nil, nil)
reverse7_in_gg(cons(T12, nil), cons(T12, nil)) → reverse7_out_gg(cons(T12, nil), cons(T12, nil))
reverse7_in_gg(cons(T17, T18), X41) → U1_gg(T17, T18, X41, reverse7_in_ga(T18, X40))
U1_gg(T17, T18, X41, reverse7_out_ga(T18, X40)) → reverse7_out_gg(cons(T17, T18), X41)
reverse7_in_gg(cons(T17, T18), X41) → U2_gg(T17, T18, X41, reverse7_in_ga(T18, T19))
U2_gg(T17, T18, X41, reverse7_out_ga(T18, T19)) → U3_gg(T17, T18, X41, append23_in_aag(T19, T17, X41))
append23_in_aag(nil, T26, cons(T26, nil)) → append23_out_aag(nil, T26, cons(T26, nil))
append23_in_aag(cons(T33, T34), T35, cons(T33, X67)) → U4_aag(T33, T34, T35, X67, append23_in_aag(T34, T35, X67))
U4_aag(T33, T34, T35, X67, append23_out_aag(T34, T35, X67)) → append23_out_aag(cons(T33, T34), T35, cons(T33, X67))
U3_gg(T17, T18, X41, append23_out_aag(T19, T17, X41)) → reverse7_out_gg(cons(T17, T18), X41)
U6_gaa(T6, reverse7_out_gg(T6, nil)) → p6_out_gaa(T6, nil, nil)
p6_in_gaa(T6, cons(T42, T43), cons(T42, X87)) → U7_gaa(T6, T42, T43, X87, reverse7_in_ga(T6, cons(T42, T43)))
U7_gaa(T6, T42, T43, X87, reverse7_out_ga(T6, cons(T42, T43))) → U8_gaa(T6, T42, T43, X87, p6_in_aaa(T43, X86, X87))
p6_in_aaa(T6, X19, X21) → U5_aaa(T6, X19, X21, reverse7_in_aa(T6, X19))
reverse7_in_aa(nil, nil) → reverse7_out_aa(nil, nil)
reverse7_in_aa(cons(T12, nil), cons(T12, nil)) → reverse7_out_aa(cons(T12, nil), cons(T12, nil))
reverse7_in_aa(cons(T17, T18), X41) → U1_aa(T17, T18, X41, reverse7_in_aa(T18, X40))
reverse7_in_aa(cons(T17, T18), X41) → U2_aa(T17, T18, X41, reverse7_in_aa(T18, T19))
U2_aa(T17, T18, X41, reverse7_out_aa(T18, T19)) → U3_aa(T17, T18, X41, append23_in_aaa(T19, T17, X41))
U3_aa(T17, T18, X41, append23_out_aaa(T19, T17, X41)) → reverse7_out_aa(cons(T17, T18), X41)
U1_aa(T17, T18, X41, reverse7_out_aa(T18, X40)) → reverse7_out_aa(cons(T17, T18), X41)
U5_aaa(T6, X19, X21, reverse7_out_aa(T6, X19)) → p6_out_aaa(T6, X19, X21)
p6_in_aaa(T6, nil, nil) → U6_aaa(T6, reverse7_in_ag(T6, nil))
reverse7_in_ag(nil, nil) → reverse7_out_ag(nil, nil)
reverse7_in_ag(cons(T12, nil), cons(T12, nil)) → reverse7_out_ag(cons(T12, nil), cons(T12, nil))
reverse7_in_ag(cons(T17, T18), X41) → U1_ag(T17, T18, X41, reverse7_in_aa(T18, X40))
U1_ag(T17, T18, X41, reverse7_out_aa(T18, X40)) → reverse7_out_ag(cons(T17, T18), X41)
reverse7_in_ag(cons(T17, T18), X41) → U2_ag(T17, T18, X41, reverse7_in_aa(T18, T19))
U2_ag(T17, T18, X41, reverse7_out_aa(T18, T19)) → U3_ag(T17, T18, X41, append23_in_aag(T19, T17, X41))
U3_ag(T17, T18, X41, append23_out_aag(T19, T17, X41)) → reverse7_out_ag(cons(T17, T18), X41)
U6_aaa(T6, reverse7_out_ag(T6, nil)) → p6_out_aaa(T6, nil, nil)
p6_in_aaa(T6, cons(T42, T43), cons(T42, X87)) → U7_aaa(T6, T42, T43, X87, reverse7_in_aa(T6, cons(T42, T43)))
U7_aaa(T6, T42, T43, X87, reverse7_out_aa(T6, cons(T42, T43))) → U8_aaa(T6, T42, T43, X87, p6_in_aaa(T43, X86, X87))
U8_aaa(T6, T42, T43, X87, p6_out_aaa(T43, X86, X87)) → p6_out_aaa(T6, cons(T42, T43), cons(T42, X87))
U8_gaa(T6, T42, T43, X87, p6_out_aaa(T43, X86, X87)) → p6_out_gaa(T6, cons(T42, T43), cons(T42, X87))
U9_g(T6, p6_out_gaa(T6, X19, X21)) → query1_out_g(T6)
QUERY1_IN_G(T6) → U9_G(T6, p6_in_gaa(T6, X19, X21))
QUERY1_IN_G(T6) → P6_IN_GAA(T6, X19, X21)
P6_IN_GAA(T6, X19, X21) → U5_GAA(T6, X19, X21, reverse7_in_ga(T6, X19))
P6_IN_GAA(T6, X19, X21) → REVERSE7_IN_GA(T6, X19)
REVERSE7_IN_GA(cons(T17, T18), X41) → U1_GA(T17, T18, X41, reverse7_in_ga(T18, X40))
REVERSE7_IN_GA(cons(T17, T18), X41) → REVERSE7_IN_GA(T18, X40)
REVERSE7_IN_GA(cons(T17, T18), X41) → U2_GA(T17, T18, X41, reverse7_in_ga(T18, T19))
U2_GA(T17, T18, X41, reverse7_out_ga(T18, T19)) → U3_GA(T17, T18, X41, append23_in_aaa(T19, T17, X41))
U2_GA(T17, T18, X41, reverse7_out_ga(T18, T19)) → APPEND23_IN_AAA(T19, T17, X41)
APPEND23_IN_AAA(cons(T33, T34), T35, cons(T33, X67)) → U4_AAA(T33, T34, T35, X67, append23_in_aaa(T34, T35, X67))
APPEND23_IN_AAA(cons(T33, T34), T35, cons(T33, X67)) → APPEND23_IN_AAA(T34, T35, X67)
P6_IN_GAA(T6, nil, nil) → U6_GAA(T6, reverse7_in_gg(T6, nil))
P6_IN_GAA(T6, nil, nil) → REVERSE7_IN_GG(T6, nil)
REVERSE7_IN_GG(cons(T17, T18), X41) → U1_GG(T17, T18, X41, reverse7_in_ga(T18, X40))
REVERSE7_IN_GG(cons(T17, T18), X41) → REVERSE7_IN_GA(T18, X40)
REVERSE7_IN_GG(cons(T17, T18), X41) → U2_GG(T17, T18, X41, reverse7_in_ga(T18, T19))
U2_GG(T17, T18, X41, reverse7_out_ga(T18, T19)) → U3_GG(T17, T18, X41, append23_in_aag(T19, T17, X41))
U2_GG(T17, T18, X41, reverse7_out_ga(T18, T19)) → APPEND23_IN_AAG(T19, T17, X41)
APPEND23_IN_AAG(cons(T33, T34), T35, cons(T33, X67)) → U4_AAG(T33, T34, T35, X67, append23_in_aag(T34, T35, X67))
APPEND23_IN_AAG(cons(T33, T34), T35, cons(T33, X67)) → APPEND23_IN_AAG(T34, T35, X67)
P6_IN_GAA(T6, cons(T42, T43), cons(T42, X87)) → U7_GAA(T6, T42, T43, X87, reverse7_in_ga(T6, cons(T42, T43)))
P6_IN_GAA(T6, cons(T42, T43), cons(T42, X87)) → REVERSE7_IN_GA(T6, cons(T42, T43))
U7_GAA(T6, T42, T43, X87, reverse7_out_ga(T6, cons(T42, T43))) → U8_GAA(T6, T42, T43, X87, p6_in_aaa(T43, X86, X87))
U7_GAA(T6, T42, T43, X87, reverse7_out_ga(T6, cons(T42, T43))) → P6_IN_AAA(T43, X86, X87)
P6_IN_AAA(T6, X19, X21) → U5_AAA(T6, X19, X21, reverse7_in_aa(T6, X19))
P6_IN_AAA(T6, X19, X21) → REVERSE7_IN_AA(T6, X19)
REVERSE7_IN_AA(cons(T17, T18), X41) → U1_AA(T17, T18, X41, reverse7_in_aa(T18, X40))
REVERSE7_IN_AA(cons(T17, T18), X41) → REVERSE7_IN_AA(T18, X40)
REVERSE7_IN_AA(cons(T17, T18), X41) → U2_AA(T17, T18, X41, reverse7_in_aa(T18, T19))
U2_AA(T17, T18, X41, reverse7_out_aa(T18, T19)) → U3_AA(T17, T18, X41, append23_in_aaa(T19, T17, X41))
U2_AA(T17, T18, X41, reverse7_out_aa(T18, T19)) → APPEND23_IN_AAA(T19, T17, X41)
P6_IN_AAA(T6, nil, nil) → U6_AAA(T6, reverse7_in_ag(T6, nil))
P6_IN_AAA(T6, nil, nil) → REVERSE7_IN_AG(T6, nil)
REVERSE7_IN_AG(cons(T17, T18), X41) → U1_AG(T17, T18, X41, reverse7_in_aa(T18, X40))
REVERSE7_IN_AG(cons(T17, T18), X41) → REVERSE7_IN_AA(T18, X40)
REVERSE7_IN_AG(cons(T17, T18), X41) → U2_AG(T17, T18, X41, reverse7_in_aa(T18, T19))
U2_AG(T17, T18, X41, reverse7_out_aa(T18, T19)) → U3_AG(T17, T18, X41, append23_in_aag(T19, T17, X41))
U2_AG(T17, T18, X41, reverse7_out_aa(T18, T19)) → APPEND23_IN_AAG(T19, T17, X41)
P6_IN_AAA(T6, cons(T42, T43), cons(T42, X87)) → U7_AAA(T6, T42, T43, X87, reverse7_in_aa(T6, cons(T42, T43)))
P6_IN_AAA(T6, cons(T42, T43), cons(T42, X87)) → REVERSE7_IN_AA(T6, cons(T42, T43))
U7_AAA(T6, T42, T43, X87, reverse7_out_aa(T6, cons(T42, T43))) → U8_AAA(T6, T42, T43, X87, p6_in_aaa(T43, X86, X87))
U7_AAA(T6, T42, T43, X87, reverse7_out_aa(T6, cons(T42, T43))) → P6_IN_AAA(T43, X86, X87)
query1_in_g(T6) → U9_g(T6, p6_in_gaa(T6, X19, X21))
p6_in_gaa(T6, X19, X21) → U5_gaa(T6, X19, X21, reverse7_in_ga(T6, X19))
reverse7_in_ga(nil, nil) → reverse7_out_ga(nil, nil)
reverse7_in_ga(cons(T12, nil), cons(T12, nil)) → reverse7_out_ga(cons(T12, nil), cons(T12, nil))
reverse7_in_ga(cons(T17, T18), X41) → U1_ga(T17, T18, X41, reverse7_in_ga(T18, X40))
reverse7_in_ga(cons(T17, T18), X41) → U2_ga(T17, T18, X41, reverse7_in_ga(T18, T19))
U2_ga(T17, T18, X41, reverse7_out_ga(T18, T19)) → U3_ga(T17, T18, X41, append23_in_aaa(T19, T17, X41))
append23_in_aaa(nil, T26, cons(T26, nil)) → append23_out_aaa(nil, T26, cons(T26, nil))
append23_in_aaa(cons(T33, T34), T35, cons(T33, X67)) → U4_aaa(T33, T34, T35, X67, append23_in_aaa(T34, T35, X67))
U4_aaa(T33, T34, T35, X67, append23_out_aaa(T34, T35, X67)) → append23_out_aaa(cons(T33, T34), T35, cons(T33, X67))
U3_ga(T17, T18, X41, append23_out_aaa(T19, T17, X41)) → reverse7_out_ga(cons(T17, T18), X41)
U1_ga(T17, T18, X41, reverse7_out_ga(T18, X40)) → reverse7_out_ga(cons(T17, T18), X41)
U5_gaa(T6, X19, X21, reverse7_out_ga(T6, X19)) → p6_out_gaa(T6, X19, X21)
p6_in_gaa(T6, nil, nil) → U6_gaa(T6, reverse7_in_gg(T6, nil))
reverse7_in_gg(nil, nil) → reverse7_out_gg(nil, nil)
reverse7_in_gg(cons(T12, nil), cons(T12, nil)) → reverse7_out_gg(cons(T12, nil), cons(T12, nil))
reverse7_in_gg(cons(T17, T18), X41) → U1_gg(T17, T18, X41, reverse7_in_ga(T18, X40))
U1_gg(T17, T18, X41, reverse7_out_ga(T18, X40)) → reverse7_out_gg(cons(T17, T18), X41)
reverse7_in_gg(cons(T17, T18), X41) → U2_gg(T17, T18, X41, reverse7_in_ga(T18, T19))
U2_gg(T17, T18, X41, reverse7_out_ga(T18, T19)) → U3_gg(T17, T18, X41, append23_in_aag(T19, T17, X41))
append23_in_aag(nil, T26, cons(T26, nil)) → append23_out_aag(nil, T26, cons(T26, nil))
append23_in_aag(cons(T33, T34), T35, cons(T33, X67)) → U4_aag(T33, T34, T35, X67, append23_in_aag(T34, T35, X67))
U4_aag(T33, T34, T35, X67, append23_out_aag(T34, T35, X67)) → append23_out_aag(cons(T33, T34), T35, cons(T33, X67))
U3_gg(T17, T18, X41, append23_out_aag(T19, T17, X41)) → reverse7_out_gg(cons(T17, T18), X41)
U6_gaa(T6, reverse7_out_gg(T6, nil)) → p6_out_gaa(T6, nil, nil)
p6_in_gaa(T6, cons(T42, T43), cons(T42, X87)) → U7_gaa(T6, T42, T43, X87, reverse7_in_ga(T6, cons(T42, T43)))
U7_gaa(T6, T42, T43, X87, reverse7_out_ga(T6, cons(T42, T43))) → U8_gaa(T6, T42, T43, X87, p6_in_aaa(T43, X86, X87))
p6_in_aaa(T6, X19, X21) → U5_aaa(T6, X19, X21, reverse7_in_aa(T6, X19))
reverse7_in_aa(nil, nil) → reverse7_out_aa(nil, nil)
reverse7_in_aa(cons(T12, nil), cons(T12, nil)) → reverse7_out_aa(cons(T12, nil), cons(T12, nil))
reverse7_in_aa(cons(T17, T18), X41) → U1_aa(T17, T18, X41, reverse7_in_aa(T18, X40))
reverse7_in_aa(cons(T17, T18), X41) → U2_aa(T17, T18, X41, reverse7_in_aa(T18, T19))
U2_aa(T17, T18, X41, reverse7_out_aa(T18, T19)) → U3_aa(T17, T18, X41, append23_in_aaa(T19, T17, X41))
U3_aa(T17, T18, X41, append23_out_aaa(T19, T17, X41)) → reverse7_out_aa(cons(T17, T18), X41)
U1_aa(T17, T18, X41, reverse7_out_aa(T18, X40)) → reverse7_out_aa(cons(T17, T18), X41)
U5_aaa(T6, X19, X21, reverse7_out_aa(T6, X19)) → p6_out_aaa(T6, X19, X21)
p6_in_aaa(T6, nil, nil) → U6_aaa(T6, reverse7_in_ag(T6, nil))
reverse7_in_ag(nil, nil) → reverse7_out_ag(nil, nil)
reverse7_in_ag(cons(T12, nil), cons(T12, nil)) → reverse7_out_ag(cons(T12, nil), cons(T12, nil))
reverse7_in_ag(cons(T17, T18), X41) → U1_ag(T17, T18, X41, reverse7_in_aa(T18, X40))
U1_ag(T17, T18, X41, reverse7_out_aa(T18, X40)) → reverse7_out_ag(cons(T17, T18), X41)
reverse7_in_ag(cons(T17, T18), X41) → U2_ag(T17, T18, X41, reverse7_in_aa(T18, T19))
U2_ag(T17, T18, X41, reverse7_out_aa(T18, T19)) → U3_ag(T17, T18, X41, append23_in_aag(T19, T17, X41))
U3_ag(T17, T18, X41, append23_out_aag(T19, T17, X41)) → reverse7_out_ag(cons(T17, T18), X41)
U6_aaa(T6, reverse7_out_ag(T6, nil)) → p6_out_aaa(T6, nil, nil)
p6_in_aaa(T6, cons(T42, T43), cons(T42, X87)) → U7_aaa(T6, T42, T43, X87, reverse7_in_aa(T6, cons(T42, T43)))
U7_aaa(T6, T42, T43, X87, reverse7_out_aa(T6, cons(T42, T43))) → U8_aaa(T6, T42, T43, X87, p6_in_aaa(T43, X86, X87))
U8_aaa(T6, T42, T43, X87, p6_out_aaa(T43, X86, X87)) → p6_out_aaa(T6, cons(T42, T43), cons(T42, X87))
U8_gaa(T6, T42, T43, X87, p6_out_aaa(T43, X86, X87)) → p6_out_gaa(T6, cons(T42, T43), cons(T42, X87))
U9_g(T6, p6_out_gaa(T6, X19, X21)) → query1_out_g(T6)
APPEND23_IN_AAG(cons(T33, T34), T35, cons(T33, X67)) → APPEND23_IN_AAG(T34, T35, X67)
query1_in_g(T6) → U9_g(T6, p6_in_gaa(T6, X19, X21))
p6_in_gaa(T6, X19, X21) → U5_gaa(T6, X19, X21, reverse7_in_ga(T6, X19))
reverse7_in_ga(nil, nil) → reverse7_out_ga(nil, nil)
reverse7_in_ga(cons(T12, nil), cons(T12, nil)) → reverse7_out_ga(cons(T12, nil), cons(T12, nil))
reverse7_in_ga(cons(T17, T18), X41) → U1_ga(T17, T18, X41, reverse7_in_ga(T18, X40))
reverse7_in_ga(cons(T17, T18), X41) → U2_ga(T17, T18, X41, reverse7_in_ga(T18, T19))
U2_ga(T17, T18, X41, reverse7_out_ga(T18, T19)) → U3_ga(T17, T18, X41, append23_in_aaa(T19, T17, X41))
append23_in_aaa(nil, T26, cons(T26, nil)) → append23_out_aaa(nil, T26, cons(T26, nil))
append23_in_aaa(cons(T33, T34), T35, cons(T33, X67)) → U4_aaa(T33, T34, T35, X67, append23_in_aaa(T34, T35, X67))
U4_aaa(T33, T34, T35, X67, append23_out_aaa(T34, T35, X67)) → append23_out_aaa(cons(T33, T34), T35, cons(T33, X67))
U3_ga(T17, T18, X41, append23_out_aaa(T19, T17, X41)) → reverse7_out_ga(cons(T17, T18), X41)
U1_ga(T17, T18, X41, reverse7_out_ga(T18, X40)) → reverse7_out_ga(cons(T17, T18), X41)
U5_gaa(T6, X19, X21, reverse7_out_ga(T6, X19)) → p6_out_gaa(T6, X19, X21)
p6_in_gaa(T6, nil, nil) → U6_gaa(T6, reverse7_in_gg(T6, nil))
reverse7_in_gg(nil, nil) → reverse7_out_gg(nil, nil)
reverse7_in_gg(cons(T12, nil), cons(T12, nil)) → reverse7_out_gg(cons(T12, nil), cons(T12, nil))
reverse7_in_gg(cons(T17, T18), X41) → U1_gg(T17, T18, X41, reverse7_in_ga(T18, X40))
U1_gg(T17, T18, X41, reverse7_out_ga(T18, X40)) → reverse7_out_gg(cons(T17, T18), X41)
reverse7_in_gg(cons(T17, T18), X41) → U2_gg(T17, T18, X41, reverse7_in_ga(T18, T19))
U2_gg(T17, T18, X41, reverse7_out_ga(T18, T19)) → U3_gg(T17, T18, X41, append23_in_aag(T19, T17, X41))
append23_in_aag(nil, T26, cons(T26, nil)) → append23_out_aag(nil, T26, cons(T26, nil))
append23_in_aag(cons(T33, T34), T35, cons(T33, X67)) → U4_aag(T33, T34, T35, X67, append23_in_aag(T34, T35, X67))
U4_aag(T33, T34, T35, X67, append23_out_aag(T34, T35, X67)) → append23_out_aag(cons(T33, T34), T35, cons(T33, X67))
U3_gg(T17, T18, X41, append23_out_aag(T19, T17, X41)) → reverse7_out_gg(cons(T17, T18), X41)
U6_gaa(T6, reverse7_out_gg(T6, nil)) → p6_out_gaa(T6, nil, nil)
p6_in_gaa(T6, cons(T42, T43), cons(T42, X87)) → U7_gaa(T6, T42, T43, X87, reverse7_in_ga(T6, cons(T42, T43)))
U7_gaa(T6, T42, T43, X87, reverse7_out_ga(T6, cons(T42, T43))) → U8_gaa(T6, T42, T43, X87, p6_in_aaa(T43, X86, X87))
p6_in_aaa(T6, X19, X21) → U5_aaa(T6, X19, X21, reverse7_in_aa(T6, X19))
reverse7_in_aa(nil, nil) → reverse7_out_aa(nil, nil)
reverse7_in_aa(cons(T12, nil), cons(T12, nil)) → reverse7_out_aa(cons(T12, nil), cons(T12, nil))
reverse7_in_aa(cons(T17, T18), X41) → U1_aa(T17, T18, X41, reverse7_in_aa(T18, X40))
reverse7_in_aa(cons(T17, T18), X41) → U2_aa(T17, T18, X41, reverse7_in_aa(T18, T19))
U2_aa(T17, T18, X41, reverse7_out_aa(T18, T19)) → U3_aa(T17, T18, X41, append23_in_aaa(T19, T17, X41))
U3_aa(T17, T18, X41, append23_out_aaa(T19, T17, X41)) → reverse7_out_aa(cons(T17, T18), X41)
U1_aa(T17, T18, X41, reverse7_out_aa(T18, X40)) → reverse7_out_aa(cons(T17, T18), X41)
U5_aaa(T6, X19, X21, reverse7_out_aa(T6, X19)) → p6_out_aaa(T6, X19, X21)
p6_in_aaa(T6, nil, nil) → U6_aaa(T6, reverse7_in_ag(T6, nil))
reverse7_in_ag(nil, nil) → reverse7_out_ag(nil, nil)
reverse7_in_ag(cons(T12, nil), cons(T12, nil)) → reverse7_out_ag(cons(T12, nil), cons(T12, nil))
reverse7_in_ag(cons(T17, T18), X41) → U1_ag(T17, T18, X41, reverse7_in_aa(T18, X40))
U1_ag(T17, T18, X41, reverse7_out_aa(T18, X40)) → reverse7_out_ag(cons(T17, T18), X41)
reverse7_in_ag(cons(T17, T18), X41) → U2_ag(T17, T18, X41, reverse7_in_aa(T18, T19))
U2_ag(T17, T18, X41, reverse7_out_aa(T18, T19)) → U3_ag(T17, T18, X41, append23_in_aag(T19, T17, X41))
U3_ag(T17, T18, X41, append23_out_aag(T19, T17, X41)) → reverse7_out_ag(cons(T17, T18), X41)
U6_aaa(T6, reverse7_out_ag(T6, nil)) → p6_out_aaa(T6, nil, nil)
p6_in_aaa(T6, cons(T42, T43), cons(T42, X87)) → U7_aaa(T6, T42, T43, X87, reverse7_in_aa(T6, cons(T42, T43)))
U7_aaa(T6, T42, T43, X87, reverse7_out_aa(T6, cons(T42, T43))) → U8_aaa(T6, T42, T43, X87, p6_in_aaa(T43, X86, X87))
U8_aaa(T6, T42, T43, X87, p6_out_aaa(T43, X86, X87)) → p6_out_aaa(T6, cons(T42, T43), cons(T42, X87))
U8_gaa(T6, T42, T43, X87, p6_out_aaa(T43, X86, X87)) → p6_out_gaa(T6, cons(T42, T43), cons(T42, X87))
U9_g(T6, p6_out_gaa(T6, X19, X21)) → query1_out_g(T6)
APPEND23_IN_AAG(cons(T33, T34), T35, cons(T33, X67)) → APPEND23_IN_AAG(T34, T35, X67)
APPEND23_IN_AAG(cons(X67)) → APPEND23_IN_AAG(X67)
From the DPs we obtained the following set of size-change graphs:
APPEND23_IN_AAA(cons(T33, T34), T35, cons(T33, X67)) → APPEND23_IN_AAA(T34, T35, X67)
query1_in_g(T6) → U9_g(T6, p6_in_gaa(T6, X19, X21))
p6_in_gaa(T6, X19, X21) → U5_gaa(T6, X19, X21, reverse7_in_ga(T6, X19))
reverse7_in_ga(nil, nil) → reverse7_out_ga(nil, nil)
reverse7_in_ga(cons(T12, nil), cons(T12, nil)) → reverse7_out_ga(cons(T12, nil), cons(T12, nil))
reverse7_in_ga(cons(T17, T18), X41) → U1_ga(T17, T18, X41, reverse7_in_ga(T18, X40))
reverse7_in_ga(cons(T17, T18), X41) → U2_ga(T17, T18, X41, reverse7_in_ga(T18, T19))
U2_ga(T17, T18, X41, reverse7_out_ga(T18, T19)) → U3_ga(T17, T18, X41, append23_in_aaa(T19, T17, X41))
append23_in_aaa(nil, T26, cons(T26, nil)) → append23_out_aaa(nil, T26, cons(T26, nil))
append23_in_aaa(cons(T33, T34), T35, cons(T33, X67)) → U4_aaa(T33, T34, T35, X67, append23_in_aaa(T34, T35, X67))
U4_aaa(T33, T34, T35, X67, append23_out_aaa(T34, T35, X67)) → append23_out_aaa(cons(T33, T34), T35, cons(T33, X67))
U3_ga(T17, T18, X41, append23_out_aaa(T19, T17, X41)) → reverse7_out_ga(cons(T17, T18), X41)
U1_ga(T17, T18, X41, reverse7_out_ga(T18, X40)) → reverse7_out_ga(cons(T17, T18), X41)
U5_gaa(T6, X19, X21, reverse7_out_ga(T6, X19)) → p6_out_gaa(T6, X19, X21)
p6_in_gaa(T6, nil, nil) → U6_gaa(T6, reverse7_in_gg(T6, nil))
reverse7_in_gg(nil, nil) → reverse7_out_gg(nil, nil)
reverse7_in_gg(cons(T12, nil), cons(T12, nil)) → reverse7_out_gg(cons(T12, nil), cons(T12, nil))
reverse7_in_gg(cons(T17, T18), X41) → U1_gg(T17, T18, X41, reverse7_in_ga(T18, X40))
U1_gg(T17, T18, X41, reverse7_out_ga(T18, X40)) → reverse7_out_gg(cons(T17, T18), X41)
reverse7_in_gg(cons(T17, T18), X41) → U2_gg(T17, T18, X41, reverse7_in_ga(T18, T19))
U2_gg(T17, T18, X41, reverse7_out_ga(T18, T19)) → U3_gg(T17, T18, X41, append23_in_aag(T19, T17, X41))
append23_in_aag(nil, T26, cons(T26, nil)) → append23_out_aag(nil, T26, cons(T26, nil))
append23_in_aag(cons(T33, T34), T35, cons(T33, X67)) → U4_aag(T33, T34, T35, X67, append23_in_aag(T34, T35, X67))
U4_aag(T33, T34, T35, X67, append23_out_aag(T34, T35, X67)) → append23_out_aag(cons(T33, T34), T35, cons(T33, X67))
U3_gg(T17, T18, X41, append23_out_aag(T19, T17, X41)) → reverse7_out_gg(cons(T17, T18), X41)
U6_gaa(T6, reverse7_out_gg(T6, nil)) → p6_out_gaa(T6, nil, nil)
p6_in_gaa(T6, cons(T42, T43), cons(T42, X87)) → U7_gaa(T6, T42, T43, X87, reverse7_in_ga(T6, cons(T42, T43)))
U7_gaa(T6, T42, T43, X87, reverse7_out_ga(T6, cons(T42, T43))) → U8_gaa(T6, T42, T43, X87, p6_in_aaa(T43, X86, X87))
p6_in_aaa(T6, X19, X21) → U5_aaa(T6, X19, X21, reverse7_in_aa(T6, X19))
reverse7_in_aa(nil, nil) → reverse7_out_aa(nil, nil)
reverse7_in_aa(cons(T12, nil), cons(T12, nil)) → reverse7_out_aa(cons(T12, nil), cons(T12, nil))
reverse7_in_aa(cons(T17, T18), X41) → U1_aa(T17, T18, X41, reverse7_in_aa(T18, X40))
reverse7_in_aa(cons(T17, T18), X41) → U2_aa(T17, T18, X41, reverse7_in_aa(T18, T19))
U2_aa(T17, T18, X41, reverse7_out_aa(T18, T19)) → U3_aa(T17, T18, X41, append23_in_aaa(T19, T17, X41))
U3_aa(T17, T18, X41, append23_out_aaa(T19, T17, X41)) → reverse7_out_aa(cons(T17, T18), X41)
U1_aa(T17, T18, X41, reverse7_out_aa(T18, X40)) → reverse7_out_aa(cons(T17, T18), X41)
U5_aaa(T6, X19, X21, reverse7_out_aa(T6, X19)) → p6_out_aaa(T6, X19, X21)
p6_in_aaa(T6, nil, nil) → U6_aaa(T6, reverse7_in_ag(T6, nil))
reverse7_in_ag(nil, nil) → reverse7_out_ag(nil, nil)
reverse7_in_ag(cons(T12, nil), cons(T12, nil)) → reverse7_out_ag(cons(T12, nil), cons(T12, nil))
reverse7_in_ag(cons(T17, T18), X41) → U1_ag(T17, T18, X41, reverse7_in_aa(T18, X40))
U1_ag(T17, T18, X41, reverse7_out_aa(T18, X40)) → reverse7_out_ag(cons(T17, T18), X41)
reverse7_in_ag(cons(T17, T18), X41) → U2_ag(T17, T18, X41, reverse7_in_aa(T18, T19))
U2_ag(T17, T18, X41, reverse7_out_aa(T18, T19)) → U3_ag(T17, T18, X41, append23_in_aag(T19, T17, X41))
U3_ag(T17, T18, X41, append23_out_aag(T19, T17, X41)) → reverse7_out_ag(cons(T17, T18), X41)
U6_aaa(T6, reverse7_out_ag(T6, nil)) → p6_out_aaa(T6, nil, nil)
p6_in_aaa(T6, cons(T42, T43), cons(T42, X87)) → U7_aaa(T6, T42, T43, X87, reverse7_in_aa(T6, cons(T42, T43)))
U7_aaa(T6, T42, T43, X87, reverse7_out_aa(T6, cons(T42, T43))) → U8_aaa(T6, T42, T43, X87, p6_in_aaa(T43, X86, X87))
U8_aaa(T6, T42, T43, X87, p6_out_aaa(T43, X86, X87)) → p6_out_aaa(T6, cons(T42, T43), cons(T42, X87))
U8_gaa(T6, T42, T43, X87, p6_out_aaa(T43, X86, X87)) → p6_out_gaa(T6, cons(T42, T43), cons(T42, X87))
U9_g(T6, p6_out_gaa(T6, X19, X21)) → query1_out_g(T6)
APPEND23_IN_AAA(cons(T33, T34), T35, cons(T33, X67)) → APPEND23_IN_AAA(T34, T35, X67)
APPEND23_IN_AAA → APPEND23_IN_AAA
REVERSE7_IN_AA(cons(T17, T18), X41) → REVERSE7_IN_AA(T18, X40)
query1_in_g(T6) → U9_g(T6, p6_in_gaa(T6, X19, X21))
p6_in_gaa(T6, X19, X21) → U5_gaa(T6, X19, X21, reverse7_in_ga(T6, X19))
reverse7_in_ga(nil, nil) → reverse7_out_ga(nil, nil)
reverse7_in_ga(cons(T12, nil), cons(T12, nil)) → reverse7_out_ga(cons(T12, nil), cons(T12, nil))
reverse7_in_ga(cons(T17, T18), X41) → U1_ga(T17, T18, X41, reverse7_in_ga(T18, X40))
reverse7_in_ga(cons(T17, T18), X41) → U2_ga(T17, T18, X41, reverse7_in_ga(T18, T19))
U2_ga(T17, T18, X41, reverse7_out_ga(T18, T19)) → U3_ga(T17, T18, X41, append23_in_aaa(T19, T17, X41))
append23_in_aaa(nil, T26, cons(T26, nil)) → append23_out_aaa(nil, T26, cons(T26, nil))
append23_in_aaa(cons(T33, T34), T35, cons(T33, X67)) → U4_aaa(T33, T34, T35, X67, append23_in_aaa(T34, T35, X67))
U4_aaa(T33, T34, T35, X67, append23_out_aaa(T34, T35, X67)) → append23_out_aaa(cons(T33, T34), T35, cons(T33, X67))
U3_ga(T17, T18, X41, append23_out_aaa(T19, T17, X41)) → reverse7_out_ga(cons(T17, T18), X41)
U1_ga(T17, T18, X41, reverse7_out_ga(T18, X40)) → reverse7_out_ga(cons(T17, T18), X41)
U5_gaa(T6, X19, X21, reverse7_out_ga(T6, X19)) → p6_out_gaa(T6, X19, X21)
p6_in_gaa(T6, nil, nil) → U6_gaa(T6, reverse7_in_gg(T6, nil))
reverse7_in_gg(nil, nil) → reverse7_out_gg(nil, nil)
reverse7_in_gg(cons(T12, nil), cons(T12, nil)) → reverse7_out_gg(cons(T12, nil), cons(T12, nil))
reverse7_in_gg(cons(T17, T18), X41) → U1_gg(T17, T18, X41, reverse7_in_ga(T18, X40))
U1_gg(T17, T18, X41, reverse7_out_ga(T18, X40)) → reverse7_out_gg(cons(T17, T18), X41)
reverse7_in_gg(cons(T17, T18), X41) → U2_gg(T17, T18, X41, reverse7_in_ga(T18, T19))
U2_gg(T17, T18, X41, reverse7_out_ga(T18, T19)) → U3_gg(T17, T18, X41, append23_in_aag(T19, T17, X41))
append23_in_aag(nil, T26, cons(T26, nil)) → append23_out_aag(nil, T26, cons(T26, nil))
append23_in_aag(cons(T33, T34), T35, cons(T33, X67)) → U4_aag(T33, T34, T35, X67, append23_in_aag(T34, T35, X67))
U4_aag(T33, T34, T35, X67, append23_out_aag(T34, T35, X67)) → append23_out_aag(cons(T33, T34), T35, cons(T33, X67))
U3_gg(T17, T18, X41, append23_out_aag(T19, T17, X41)) → reverse7_out_gg(cons(T17, T18), X41)
U6_gaa(T6, reverse7_out_gg(T6, nil)) → p6_out_gaa(T6, nil, nil)
p6_in_gaa(T6, cons(T42, T43), cons(T42, X87)) → U7_gaa(T6, T42, T43, X87, reverse7_in_ga(T6, cons(T42, T43)))
U7_gaa(T6, T42, T43, X87, reverse7_out_ga(T6, cons(T42, T43))) → U8_gaa(T6, T42, T43, X87, p6_in_aaa(T43, X86, X87))
p6_in_aaa(T6, X19, X21) → U5_aaa(T6, X19, X21, reverse7_in_aa(T6, X19))
reverse7_in_aa(nil, nil) → reverse7_out_aa(nil, nil)
reverse7_in_aa(cons(T12, nil), cons(T12, nil)) → reverse7_out_aa(cons(T12, nil), cons(T12, nil))
reverse7_in_aa(cons(T17, T18), X41) → U1_aa(T17, T18, X41, reverse7_in_aa(T18, X40))
reverse7_in_aa(cons(T17, T18), X41) → U2_aa(T17, T18, X41, reverse7_in_aa(T18, T19))
U2_aa(T17, T18, X41, reverse7_out_aa(T18, T19)) → U3_aa(T17, T18, X41, append23_in_aaa(T19, T17, X41))
U3_aa(T17, T18, X41, append23_out_aaa(T19, T17, X41)) → reverse7_out_aa(cons(T17, T18), X41)
U1_aa(T17, T18, X41, reverse7_out_aa(T18, X40)) → reverse7_out_aa(cons(T17, T18), X41)
U5_aaa(T6, X19, X21, reverse7_out_aa(T6, X19)) → p6_out_aaa(T6, X19, X21)
p6_in_aaa(T6, nil, nil) → U6_aaa(T6, reverse7_in_ag(T6, nil))
reverse7_in_ag(nil, nil) → reverse7_out_ag(nil, nil)
reverse7_in_ag(cons(T12, nil), cons(T12, nil)) → reverse7_out_ag(cons(T12, nil), cons(T12, nil))
reverse7_in_ag(cons(T17, T18), X41) → U1_ag(T17, T18, X41, reverse7_in_aa(T18, X40))
U1_ag(T17, T18, X41, reverse7_out_aa(T18, X40)) → reverse7_out_ag(cons(T17, T18), X41)
reverse7_in_ag(cons(T17, T18), X41) → U2_ag(T17, T18, X41, reverse7_in_aa(T18, T19))
U2_ag(T17, T18, X41, reverse7_out_aa(T18, T19)) → U3_ag(T17, T18, X41, append23_in_aag(T19, T17, X41))
U3_ag(T17, T18, X41, append23_out_aag(T19, T17, X41)) → reverse7_out_ag(cons(T17, T18), X41)
U6_aaa(T6, reverse7_out_ag(T6, nil)) → p6_out_aaa(T6, nil, nil)
p6_in_aaa(T6, cons(T42, T43), cons(T42, X87)) → U7_aaa(T6, T42, T43, X87, reverse7_in_aa(T6, cons(T42, T43)))
U7_aaa(T6, T42, T43, X87, reverse7_out_aa(T6, cons(T42, T43))) → U8_aaa(T6, T42, T43, X87, p6_in_aaa(T43, X86, X87))
U8_aaa(T6, T42, T43, X87, p6_out_aaa(T43, X86, X87)) → p6_out_aaa(T6, cons(T42, T43), cons(T42, X87))
U8_gaa(T6, T42, T43, X87, p6_out_aaa(T43, X86, X87)) → p6_out_gaa(T6, cons(T42, T43), cons(T42, X87))
U9_g(T6, p6_out_gaa(T6, X19, X21)) → query1_out_g(T6)
REVERSE7_IN_AA(cons(T17, T18), X41) → REVERSE7_IN_AA(T18, X40)
REVERSE7_IN_AA → REVERSE7_IN_AA
P6_IN_AAA(T6, cons(T42, T43), cons(T42, X87)) → U7_AAA(T6, T42, T43, X87, reverse7_in_aa(T6, cons(T42, T43)))
U7_AAA(T6, T42, T43, X87, reverse7_out_aa(T6, cons(T42, T43))) → P6_IN_AAA(T43, X86, X87)
query1_in_g(T6) → U9_g(T6, p6_in_gaa(T6, X19, X21))
p6_in_gaa(T6, X19, X21) → U5_gaa(T6, X19, X21, reverse7_in_ga(T6, X19))
reverse7_in_ga(nil, nil) → reverse7_out_ga(nil, nil)
reverse7_in_ga(cons(T12, nil), cons(T12, nil)) → reverse7_out_ga(cons(T12, nil), cons(T12, nil))
reverse7_in_ga(cons(T17, T18), X41) → U1_ga(T17, T18, X41, reverse7_in_ga(T18, X40))
reverse7_in_ga(cons(T17, T18), X41) → U2_ga(T17, T18, X41, reverse7_in_ga(T18, T19))
U2_ga(T17, T18, X41, reverse7_out_ga(T18, T19)) → U3_ga(T17, T18, X41, append23_in_aaa(T19, T17, X41))
append23_in_aaa(nil, T26, cons(T26, nil)) → append23_out_aaa(nil, T26, cons(T26, nil))
append23_in_aaa(cons(T33, T34), T35, cons(T33, X67)) → U4_aaa(T33, T34, T35, X67, append23_in_aaa(T34, T35, X67))
U4_aaa(T33, T34, T35, X67, append23_out_aaa(T34, T35, X67)) → append23_out_aaa(cons(T33, T34), T35, cons(T33, X67))
U3_ga(T17, T18, X41, append23_out_aaa(T19, T17, X41)) → reverse7_out_ga(cons(T17, T18), X41)
U1_ga(T17, T18, X41, reverse7_out_ga(T18, X40)) → reverse7_out_ga(cons(T17, T18), X41)
U5_gaa(T6, X19, X21, reverse7_out_ga(T6, X19)) → p6_out_gaa(T6, X19, X21)
p6_in_gaa(T6, nil, nil) → U6_gaa(T6, reverse7_in_gg(T6, nil))
reverse7_in_gg(nil, nil) → reverse7_out_gg(nil, nil)
reverse7_in_gg(cons(T12, nil), cons(T12, nil)) → reverse7_out_gg(cons(T12, nil), cons(T12, nil))
reverse7_in_gg(cons(T17, T18), X41) → U1_gg(T17, T18, X41, reverse7_in_ga(T18, X40))
U1_gg(T17, T18, X41, reverse7_out_ga(T18, X40)) → reverse7_out_gg(cons(T17, T18), X41)
reverse7_in_gg(cons(T17, T18), X41) → U2_gg(T17, T18, X41, reverse7_in_ga(T18, T19))
U2_gg(T17, T18, X41, reverse7_out_ga(T18, T19)) → U3_gg(T17, T18, X41, append23_in_aag(T19, T17, X41))
append23_in_aag(nil, T26, cons(T26, nil)) → append23_out_aag(nil, T26, cons(T26, nil))
append23_in_aag(cons(T33, T34), T35, cons(T33, X67)) → U4_aag(T33, T34, T35, X67, append23_in_aag(T34, T35, X67))
U4_aag(T33, T34, T35, X67, append23_out_aag(T34, T35, X67)) → append23_out_aag(cons(T33, T34), T35, cons(T33, X67))
U3_gg(T17, T18, X41, append23_out_aag(T19, T17, X41)) → reverse7_out_gg(cons(T17, T18), X41)
U6_gaa(T6, reverse7_out_gg(T6, nil)) → p6_out_gaa(T6, nil, nil)
p6_in_gaa(T6, cons(T42, T43), cons(T42, X87)) → U7_gaa(T6, T42, T43, X87, reverse7_in_ga(T6, cons(T42, T43)))
U7_gaa(T6, T42, T43, X87, reverse7_out_ga(T6, cons(T42, T43))) → U8_gaa(T6, T42, T43, X87, p6_in_aaa(T43, X86, X87))
p6_in_aaa(T6, X19, X21) → U5_aaa(T6, X19, X21, reverse7_in_aa(T6, X19))
reverse7_in_aa(nil, nil) → reverse7_out_aa(nil, nil)
reverse7_in_aa(cons(T12, nil), cons(T12, nil)) → reverse7_out_aa(cons(T12, nil), cons(T12, nil))
reverse7_in_aa(cons(T17, T18), X41) → U1_aa(T17, T18, X41, reverse7_in_aa(T18, X40))
reverse7_in_aa(cons(T17, T18), X41) → U2_aa(T17, T18, X41, reverse7_in_aa(T18, T19))
U2_aa(T17, T18, X41, reverse7_out_aa(T18, T19)) → U3_aa(T17, T18, X41, append23_in_aaa(T19, T17, X41))
U3_aa(T17, T18, X41, append23_out_aaa(T19, T17, X41)) → reverse7_out_aa(cons(T17, T18), X41)
U1_aa(T17, T18, X41, reverse7_out_aa(T18, X40)) → reverse7_out_aa(cons(T17, T18), X41)
U5_aaa(T6, X19, X21, reverse7_out_aa(T6, X19)) → p6_out_aaa(T6, X19, X21)
p6_in_aaa(T6, nil, nil) → U6_aaa(T6, reverse7_in_ag(T6, nil))
reverse7_in_ag(nil, nil) → reverse7_out_ag(nil, nil)
reverse7_in_ag(cons(T12, nil), cons(T12, nil)) → reverse7_out_ag(cons(T12, nil), cons(T12, nil))
reverse7_in_ag(cons(T17, T18), X41) → U1_ag(T17, T18, X41, reverse7_in_aa(T18, X40))
U1_ag(T17, T18, X41, reverse7_out_aa(T18, X40)) → reverse7_out_ag(cons(T17, T18), X41)
reverse7_in_ag(cons(T17, T18), X41) → U2_ag(T17, T18, X41, reverse7_in_aa(T18, T19))
U2_ag(T17, T18, X41, reverse7_out_aa(T18, T19)) → U3_ag(T17, T18, X41, append23_in_aag(T19, T17, X41))
U3_ag(T17, T18, X41, append23_out_aag(T19, T17, X41)) → reverse7_out_ag(cons(T17, T18), X41)
U6_aaa(T6, reverse7_out_ag(T6, nil)) → p6_out_aaa(T6, nil, nil)
p6_in_aaa(T6, cons(T42, T43), cons(T42, X87)) → U7_aaa(T6, T42, T43, X87, reverse7_in_aa(T6, cons(T42, T43)))
U7_aaa(T6, T42, T43, X87, reverse7_out_aa(T6, cons(T42, T43))) → U8_aaa(T6, T42, T43, X87, p6_in_aaa(T43, X86, X87))
U8_aaa(T6, T42, T43, X87, p6_out_aaa(T43, X86, X87)) → p6_out_aaa(T6, cons(T42, T43), cons(T42, X87))
U8_gaa(T6, T42, T43, X87, p6_out_aaa(T43, X86, X87)) → p6_out_gaa(T6, cons(T42, T43), cons(T42, X87))
U9_g(T6, p6_out_gaa(T6, X19, X21)) → query1_out_g(T6)
P6_IN_AAA(T6, cons(T42, T43), cons(T42, X87)) → U7_AAA(T6, T42, T43, X87, reverse7_in_aa(T6, cons(T42, T43)))
U7_AAA(T6, T42, T43, X87, reverse7_out_aa(T6, cons(T42, T43))) → P6_IN_AAA(T43, X86, X87)
reverse7_in_aa(cons(T12, nil), cons(T12, nil)) → reverse7_out_aa(cons(T12, nil), cons(T12, nil))
reverse7_in_aa(cons(T17, T18), X41) → U1_aa(T17, T18, X41, reverse7_in_aa(T18, X40))
reverse7_in_aa(cons(T17, T18), X41) → U2_aa(T17, T18, X41, reverse7_in_aa(T18, T19))
U1_aa(T17, T18, X41, reverse7_out_aa(T18, X40)) → reverse7_out_aa(cons(T17, T18), X41)
U2_aa(T17, T18, X41, reverse7_out_aa(T18, T19)) → U3_aa(T17, T18, X41, append23_in_aaa(T19, T17, X41))
reverse7_in_aa(nil, nil) → reverse7_out_aa(nil, nil)
U3_aa(T17, T18, X41, append23_out_aaa(T19, T17, X41)) → reverse7_out_aa(cons(T17, T18), X41)
append23_in_aaa(nil, T26, cons(T26, nil)) → append23_out_aaa(nil, T26, cons(T26, nil))
append23_in_aaa(cons(T33, T34), T35, cons(T33, X67)) → U4_aaa(T33, T34, T35, X67, append23_in_aaa(T34, T35, X67))
U4_aaa(T33, T34, T35, X67, append23_out_aaa(T34, T35, X67)) → append23_out_aaa(cons(T33, T34), T35, cons(T33, X67))
P6_IN_AAA → U7_AAA(reverse7_in_aa)
U7_AAA(reverse7_out_aa(T6)) → P6_IN_AAA
reverse7_in_aa → reverse7_out_aa(cons(nil))
reverse7_in_aa → U1_aa(reverse7_in_aa)
reverse7_in_aa → U2_aa(reverse7_in_aa)
U1_aa(reverse7_out_aa(T18)) → reverse7_out_aa(cons(T18))
U2_aa(reverse7_out_aa(T18)) → U3_aa(T18, append23_in_aaa)
reverse7_in_aa → reverse7_out_aa(nil)
U3_aa(T18, append23_out_aaa(T19, X41)) → reverse7_out_aa(cons(T18))
append23_in_aaa → append23_out_aaa(nil, cons(nil))
append23_in_aaa → U4_aaa(append23_in_aaa)
U4_aaa(append23_out_aaa(T34, X67)) → append23_out_aaa(cons(T34), cons(X67))
reverse7_in_aa
U1_aa(x0)
U2_aa(x0)
U3_aa(x0, x1)
append23_in_aaa
U4_aaa(x0)
P6_IN_AAA → U7_AAA(reverse7_out_aa(cons(nil)))
P6_IN_AAA → U7_AAA(U1_aa(reverse7_in_aa))
P6_IN_AAA → U7_AAA(U2_aa(reverse7_in_aa))
P6_IN_AAA → U7_AAA(reverse7_out_aa(nil))
U7_AAA(reverse7_out_aa(T6)) → P6_IN_AAA
P6_IN_AAA → U7_AAA(reverse7_out_aa(cons(nil)))
P6_IN_AAA → U7_AAA(U1_aa(reverse7_in_aa))
P6_IN_AAA → U7_AAA(U2_aa(reverse7_in_aa))
P6_IN_AAA → U7_AAA(reverse7_out_aa(nil))
reverse7_in_aa → reverse7_out_aa(cons(nil))
reverse7_in_aa → U1_aa(reverse7_in_aa)
reverse7_in_aa → U2_aa(reverse7_in_aa)
U1_aa(reverse7_out_aa(T18)) → reverse7_out_aa(cons(T18))
U2_aa(reverse7_out_aa(T18)) → U3_aa(T18, append23_in_aaa)
reverse7_in_aa → reverse7_out_aa(nil)
U3_aa(T18, append23_out_aaa(T19, X41)) → reverse7_out_aa(cons(T18))
append23_in_aaa → append23_out_aaa(nil, cons(nil))
append23_in_aaa → U4_aaa(append23_in_aaa)
U4_aaa(append23_out_aaa(T34, X67)) → append23_out_aaa(cons(T34), cons(X67))
reverse7_in_aa
U1_aa(x0)
U2_aa(x0)
U3_aa(x0, x1)
append23_in_aaa
U4_aaa(x0)
REVERSE7_IN_GA(cons(T17, T18), X41) → REVERSE7_IN_GA(T18, X40)
query1_in_g(T6) → U9_g(T6, p6_in_gaa(T6, X19, X21))
p6_in_gaa(T6, X19, X21) → U5_gaa(T6, X19, X21, reverse7_in_ga(T6, X19))
reverse7_in_ga(nil, nil) → reverse7_out_ga(nil, nil)
reverse7_in_ga(cons(T12, nil), cons(T12, nil)) → reverse7_out_ga(cons(T12, nil), cons(T12, nil))
reverse7_in_ga(cons(T17, T18), X41) → U1_ga(T17, T18, X41, reverse7_in_ga(T18, X40))
reverse7_in_ga(cons(T17, T18), X41) → U2_ga(T17, T18, X41, reverse7_in_ga(T18, T19))
U2_ga(T17, T18, X41, reverse7_out_ga(T18, T19)) → U3_ga(T17, T18, X41, append23_in_aaa(T19, T17, X41))
append23_in_aaa(nil, T26, cons(T26, nil)) → append23_out_aaa(nil, T26, cons(T26, nil))
append23_in_aaa(cons(T33, T34), T35, cons(T33, X67)) → U4_aaa(T33, T34, T35, X67, append23_in_aaa(T34, T35, X67))
U4_aaa(T33, T34, T35, X67, append23_out_aaa(T34, T35, X67)) → append23_out_aaa(cons(T33, T34), T35, cons(T33, X67))
U3_ga(T17, T18, X41, append23_out_aaa(T19, T17, X41)) → reverse7_out_ga(cons(T17, T18), X41)
U1_ga(T17, T18, X41, reverse7_out_ga(T18, X40)) → reverse7_out_ga(cons(T17, T18), X41)
U5_gaa(T6, X19, X21, reverse7_out_ga(T6, X19)) → p6_out_gaa(T6, X19, X21)
p6_in_gaa(T6, nil, nil) → U6_gaa(T6, reverse7_in_gg(T6, nil))
reverse7_in_gg(nil, nil) → reverse7_out_gg(nil, nil)
reverse7_in_gg(cons(T12, nil), cons(T12, nil)) → reverse7_out_gg(cons(T12, nil), cons(T12, nil))
reverse7_in_gg(cons(T17, T18), X41) → U1_gg(T17, T18, X41, reverse7_in_ga(T18, X40))
U1_gg(T17, T18, X41, reverse7_out_ga(T18, X40)) → reverse7_out_gg(cons(T17, T18), X41)
reverse7_in_gg(cons(T17, T18), X41) → U2_gg(T17, T18, X41, reverse7_in_ga(T18, T19))
U2_gg(T17, T18, X41, reverse7_out_ga(T18, T19)) → U3_gg(T17, T18, X41, append23_in_aag(T19, T17, X41))
append23_in_aag(nil, T26, cons(T26, nil)) → append23_out_aag(nil, T26, cons(T26, nil))
append23_in_aag(cons(T33, T34), T35, cons(T33, X67)) → U4_aag(T33, T34, T35, X67, append23_in_aag(T34, T35, X67))
U4_aag(T33, T34, T35, X67, append23_out_aag(T34, T35, X67)) → append23_out_aag(cons(T33, T34), T35, cons(T33, X67))
U3_gg(T17, T18, X41, append23_out_aag(T19, T17, X41)) → reverse7_out_gg(cons(T17, T18), X41)
U6_gaa(T6, reverse7_out_gg(T6, nil)) → p6_out_gaa(T6, nil, nil)
p6_in_gaa(T6, cons(T42, T43), cons(T42, X87)) → U7_gaa(T6, T42, T43, X87, reverse7_in_ga(T6, cons(T42, T43)))
U7_gaa(T6, T42, T43, X87, reverse7_out_ga(T6, cons(T42, T43))) → U8_gaa(T6, T42, T43, X87, p6_in_aaa(T43, X86, X87))
p6_in_aaa(T6, X19, X21) → U5_aaa(T6, X19, X21, reverse7_in_aa(T6, X19))
reverse7_in_aa(nil, nil) → reverse7_out_aa(nil, nil)
reverse7_in_aa(cons(T12, nil), cons(T12, nil)) → reverse7_out_aa(cons(T12, nil), cons(T12, nil))
reverse7_in_aa(cons(T17, T18), X41) → U1_aa(T17, T18, X41, reverse7_in_aa(T18, X40))
reverse7_in_aa(cons(T17, T18), X41) → U2_aa(T17, T18, X41, reverse7_in_aa(T18, T19))
U2_aa(T17, T18, X41, reverse7_out_aa(T18, T19)) → U3_aa(T17, T18, X41, append23_in_aaa(T19, T17, X41))
U3_aa(T17, T18, X41, append23_out_aaa(T19, T17, X41)) → reverse7_out_aa(cons(T17, T18), X41)
U1_aa(T17, T18, X41, reverse7_out_aa(T18, X40)) → reverse7_out_aa(cons(T17, T18), X41)
U5_aaa(T6, X19, X21, reverse7_out_aa(T6, X19)) → p6_out_aaa(T6, X19, X21)
p6_in_aaa(T6, nil, nil) → U6_aaa(T6, reverse7_in_ag(T6, nil))
reverse7_in_ag(nil, nil) → reverse7_out_ag(nil, nil)
reverse7_in_ag(cons(T12, nil), cons(T12, nil)) → reverse7_out_ag(cons(T12, nil), cons(T12, nil))
reverse7_in_ag(cons(T17, T18), X41) → U1_ag(T17, T18, X41, reverse7_in_aa(T18, X40))
U1_ag(T17, T18, X41, reverse7_out_aa(T18, X40)) → reverse7_out_ag(cons(T17, T18), X41)
reverse7_in_ag(cons(T17, T18), X41) → U2_ag(T17, T18, X41, reverse7_in_aa(T18, T19))
U2_ag(T17, T18, X41, reverse7_out_aa(T18, T19)) → U3_ag(T17, T18, X41, append23_in_aag(T19, T17, X41))
U3_ag(T17, T18, X41, append23_out_aag(T19, T17, X41)) → reverse7_out_ag(cons(T17, T18), X41)
U6_aaa(T6, reverse7_out_ag(T6, nil)) → p6_out_aaa(T6, nil, nil)
p6_in_aaa(T6, cons(T42, T43), cons(T42, X87)) → U7_aaa(T6, T42, T43, X87, reverse7_in_aa(T6, cons(T42, T43)))
U7_aaa(T6, T42, T43, X87, reverse7_out_aa(T6, cons(T42, T43))) → U8_aaa(T6, T42, T43, X87, p6_in_aaa(T43, X86, X87))
U8_aaa(T6, T42, T43, X87, p6_out_aaa(T43, X86, X87)) → p6_out_aaa(T6, cons(T42, T43), cons(T42, X87))
U8_gaa(T6, T42, T43, X87, p6_out_aaa(T43, X86, X87)) → p6_out_gaa(T6, cons(T42, T43), cons(T42, X87))
U9_g(T6, p6_out_gaa(T6, X19, X21)) → query1_out_g(T6)
REVERSE7_IN_GA(cons(T17, T18), X41) → REVERSE7_IN_GA(T18, X40)
REVERSE7_IN_GA(cons(T18)) → REVERSE7_IN_GA(T18)
From the DPs we obtained the following set of size-change graphs:
query1_in_g(T6) → U9_g(T6, p6_in_gaa(T6, X19, X21))
p6_in_gaa(T6, X19, X21) → U5_gaa(T6, X19, X21, reverse7_in_ga(T6, X19))
reverse7_in_ga(nil, nil) → reverse7_out_ga(nil, nil)
reverse7_in_ga(cons(T12, nil), cons(T12, nil)) → reverse7_out_ga(cons(T12, nil), cons(T12, nil))
reverse7_in_ga(cons(T17, T18), X41) → U1_ga(T17, T18, X41, reverse7_in_ga(T18, X40))
reverse7_in_ga(cons(T17, T18), X41) → U2_ga(T17, T18, X41, reverse7_in_ga(T18, T19))
U2_ga(T17, T18, X41, reverse7_out_ga(T18, T19)) → U3_ga(T17, T18, X41, append23_in_aaa(T19, T17, X41))
append23_in_aaa(nil, T26, cons(T26, nil)) → append23_out_aaa(nil, T26, cons(T26, nil))
append23_in_aaa(cons(T33, T34), T35, cons(T33, X67)) → U4_aaa(T33, T34, T35, X67, append23_in_aaa(T34, T35, X67))
U4_aaa(T33, T34, T35, X67, append23_out_aaa(T34, T35, X67)) → append23_out_aaa(cons(T33, T34), T35, cons(T33, X67))
U3_ga(T17, T18, X41, append23_out_aaa(T19, T17, X41)) → reverse7_out_ga(cons(T17, T18), X41)
U1_ga(T17, T18, X41, reverse7_out_ga(T18, X40)) → reverse7_out_ga(cons(T17, T18), X41)
U5_gaa(T6, X19, X21, reverse7_out_ga(T6, X19)) → p6_out_gaa(T6, X19, X21)
p6_in_gaa(T6, nil, nil) → U6_gaa(T6, reverse7_in_gg(T6, nil))
reverse7_in_gg(nil, nil) → reverse7_out_gg(nil, nil)
reverse7_in_gg(cons(T12, nil), cons(T12, nil)) → reverse7_out_gg(cons(T12, nil), cons(T12, nil))
reverse7_in_gg(cons(T17, T18), X41) → U1_gg(T17, T18, X41, reverse7_in_ga(T18, X40))
U1_gg(T17, T18, X41, reverse7_out_ga(T18, X40)) → reverse7_out_gg(cons(T17, T18), X41)
reverse7_in_gg(cons(T17, T18), X41) → U2_gg(T17, T18, X41, reverse7_in_ga(T18, T19))
U2_gg(T17, T18, X41, reverse7_out_ga(T18, T19)) → U3_gg(T17, T18, X41, append23_in_aag(T19, T17, X41))
append23_in_aag(nil, T26, cons(T26, nil)) → append23_out_aag(nil, T26, cons(T26, nil))
append23_in_aag(cons(T33, T34), T35, cons(T33, X67)) → U4_aag(T33, T34, T35, X67, append23_in_aag(T34, T35, X67))
U4_aag(T33, T34, T35, X67, append23_out_aag(T34, T35, X67)) → append23_out_aag(cons(T33, T34), T35, cons(T33, X67))
U3_gg(T17, T18, X41, append23_out_aag(T19, T17, X41)) → reverse7_out_gg(cons(T17, T18), X41)
U6_gaa(T6, reverse7_out_gg(T6, nil)) → p6_out_gaa(T6, nil, nil)
p6_in_gaa(T6, cons(T42, T43), cons(T42, X87)) → U7_gaa(T6, T42, T43, X87, reverse7_in_ga(T6, cons(T42, T43)))
U7_gaa(T6, T42, T43, X87, reverse7_out_ga(T6, cons(T42, T43))) → U8_gaa(T6, T42, T43, X87, p6_in_aaa(T43, X86, X87))
p6_in_aaa(T6, X19, X21) → U5_aaa(T6, X19, X21, reverse7_in_aa(T6, X19))
reverse7_in_aa(nil, nil) → reverse7_out_aa(nil, nil)
reverse7_in_aa(cons(T12, nil), cons(T12, nil)) → reverse7_out_aa(cons(T12, nil), cons(T12, nil))
reverse7_in_aa(cons(T17, T18), X41) → U1_aa(T17, T18, X41, reverse7_in_aa(T18, X40))
reverse7_in_aa(cons(T17, T18), X41) → U2_aa(T17, T18, X41, reverse7_in_aa(T18, T19))
U2_aa(T17, T18, X41, reverse7_out_aa(T18, T19)) → U3_aa(T17, T18, X41, append23_in_aaa(T19, T17, X41))
U3_aa(T17, T18, X41, append23_out_aaa(T19, T17, X41)) → reverse7_out_aa(cons(T17, T18), X41)
U1_aa(T17, T18, X41, reverse7_out_aa(T18, X40)) → reverse7_out_aa(cons(T17, T18), X41)
U5_aaa(T6, X19, X21, reverse7_out_aa(T6, X19)) → p6_out_aaa(T6, X19, X21)
p6_in_aaa(T6, nil, nil) → U6_aaa(T6, reverse7_in_ag(T6, nil))
reverse7_in_ag(nil, nil) → reverse7_out_ag(nil, nil)
reverse7_in_ag(cons(T12, nil), cons(T12, nil)) → reverse7_out_ag(cons(T12, nil), cons(T12, nil))
reverse7_in_ag(cons(T17, T18), X41) → U1_ag(T17, T18, X41, reverse7_in_aa(T18, X40))
U1_ag(T17, T18, X41, reverse7_out_aa(T18, X40)) → reverse7_out_ag(cons(T17, T18), X41)
reverse7_in_ag(cons(T17, T18), X41) → U2_ag(T17, T18, X41, reverse7_in_aa(T18, T19))
U2_ag(T17, T18, X41, reverse7_out_aa(T18, T19)) → U3_ag(T17, T18, X41, append23_in_aag(T19, T17, X41))
U3_ag(T17, T18, X41, append23_out_aag(T19, T17, X41)) → reverse7_out_ag(cons(T17, T18), X41)
U6_aaa(T6, reverse7_out_ag(T6, nil)) → p6_out_aaa(T6, nil, nil)
p6_in_aaa(T6, cons(T42, T43), cons(T42, X87)) → U7_aaa(T6, T42, T43, X87, reverse7_in_aa(T6, cons(T42, T43)))
U7_aaa(T6, T42, T43, X87, reverse7_out_aa(T6, cons(T42, T43))) → U8_aaa(T6, T42, T43, X87, p6_in_aaa(T43, X86, X87))
U8_aaa(T6, T42, T43, X87, p6_out_aaa(T43, X86, X87)) → p6_out_aaa(T6, cons(T42, T43), cons(T42, X87))
U8_gaa(T6, T42, T43, X87, p6_out_aaa(T43, X86, X87)) → p6_out_gaa(T6, cons(T42, T43), cons(T42, X87))
U9_g(T6, p6_out_gaa(T6, X19, X21)) → query1_out_g(T6)
Infinitary Constructor Rewriting Termination of PiTRS implies Termination of Prolog
query1_in_g(T6) → U9_g(T6, p6_in_gaa(T6, X19, X21))
p6_in_gaa(T6, X19, X21) → U5_gaa(T6, X19, X21, reverse7_in_ga(T6, X19))
reverse7_in_ga(nil, nil) → reverse7_out_ga(nil, nil)
reverse7_in_ga(cons(T12, nil), cons(T12, nil)) → reverse7_out_ga(cons(T12, nil), cons(T12, nil))
reverse7_in_ga(cons(T17, T18), X41) → U1_ga(T17, T18, X41, reverse7_in_ga(T18, X40))
reverse7_in_ga(cons(T17, T18), X41) → U2_ga(T17, T18, X41, reverse7_in_ga(T18, T19))
U2_ga(T17, T18, X41, reverse7_out_ga(T18, T19)) → U3_ga(T17, T18, X41, append23_in_aaa(T19, T17, X41))
append23_in_aaa(nil, T26, cons(T26, nil)) → append23_out_aaa(nil, T26, cons(T26, nil))
append23_in_aaa(cons(T33, T34), T35, cons(T33, X67)) → U4_aaa(T33, T34, T35, X67, append23_in_aaa(T34, T35, X67))
U4_aaa(T33, T34, T35, X67, append23_out_aaa(T34, T35, X67)) → append23_out_aaa(cons(T33, T34), T35, cons(T33, X67))
U3_ga(T17, T18, X41, append23_out_aaa(T19, T17, X41)) → reverse7_out_ga(cons(T17, T18), X41)
U1_ga(T17, T18, X41, reverse7_out_ga(T18, X40)) → reverse7_out_ga(cons(T17, T18), X41)
U5_gaa(T6, X19, X21, reverse7_out_ga(T6, X19)) → p6_out_gaa(T6, X19, X21)
p6_in_gaa(T6, nil, nil) → U6_gaa(T6, reverse7_in_gg(T6, nil))
reverse7_in_gg(nil, nil) → reverse7_out_gg(nil, nil)
reverse7_in_gg(cons(T12, nil), cons(T12, nil)) → reverse7_out_gg(cons(T12, nil), cons(T12, nil))
reverse7_in_gg(cons(T17, T18), X41) → U1_gg(T17, T18, X41, reverse7_in_ga(T18, X40))
U1_gg(T17, T18, X41, reverse7_out_ga(T18, X40)) → reverse7_out_gg(cons(T17, T18), X41)
reverse7_in_gg(cons(T17, T18), X41) → U2_gg(T17, T18, X41, reverse7_in_ga(T18, T19))
U2_gg(T17, T18, X41, reverse7_out_ga(T18, T19)) → U3_gg(T17, T18, X41, append23_in_aag(T19, T17, X41))
append23_in_aag(nil, T26, cons(T26, nil)) → append23_out_aag(nil, T26, cons(T26, nil))
append23_in_aag(cons(T33, T34), T35, cons(T33, X67)) → U4_aag(T33, T34, T35, X67, append23_in_aag(T34, T35, X67))
U4_aag(T33, T34, T35, X67, append23_out_aag(T34, T35, X67)) → append23_out_aag(cons(T33, T34), T35, cons(T33, X67))
U3_gg(T17, T18, X41, append23_out_aag(T19, T17, X41)) → reverse7_out_gg(cons(T17, T18), X41)
U6_gaa(T6, reverse7_out_gg(T6, nil)) → p6_out_gaa(T6, nil, nil)
p6_in_gaa(T6, cons(T42, T43), cons(T42, X87)) → U7_gaa(T6, T42, T43, X87, reverse7_in_ga(T6, cons(T42, T43)))
U7_gaa(T6, T42, T43, X87, reverse7_out_ga(T6, cons(T42, T43))) → U8_gaa(T6, T42, T43, X87, p6_in_aaa(T43, X86, X87))
p6_in_aaa(T6, X19, X21) → U5_aaa(T6, X19, X21, reverse7_in_aa(T6, X19))
reverse7_in_aa(nil, nil) → reverse7_out_aa(nil, nil)
reverse7_in_aa(cons(T12, nil), cons(T12, nil)) → reverse7_out_aa(cons(T12, nil), cons(T12, nil))
reverse7_in_aa(cons(T17, T18), X41) → U1_aa(T17, T18, X41, reverse7_in_aa(T18, X40))
reverse7_in_aa(cons(T17, T18), X41) → U2_aa(T17, T18, X41, reverse7_in_aa(T18, T19))
U2_aa(T17, T18, X41, reverse7_out_aa(T18, T19)) → U3_aa(T17, T18, X41, append23_in_aaa(T19, T17, X41))
U3_aa(T17, T18, X41, append23_out_aaa(T19, T17, X41)) → reverse7_out_aa(cons(T17, T18), X41)
U1_aa(T17, T18, X41, reverse7_out_aa(T18, X40)) → reverse7_out_aa(cons(T17, T18), X41)
U5_aaa(T6, X19, X21, reverse7_out_aa(T6, X19)) → p6_out_aaa(T6, X19, X21)
p6_in_aaa(T6, nil, nil) → U6_aaa(T6, reverse7_in_ag(T6, nil))
reverse7_in_ag(nil, nil) → reverse7_out_ag(nil, nil)
reverse7_in_ag(cons(T12, nil), cons(T12, nil)) → reverse7_out_ag(cons(T12, nil), cons(T12, nil))
reverse7_in_ag(cons(T17, T18), X41) → U1_ag(T17, T18, X41, reverse7_in_aa(T18, X40))
U1_ag(T17, T18, X41, reverse7_out_aa(T18, X40)) → reverse7_out_ag(cons(T17, T18), X41)
reverse7_in_ag(cons(T17, T18), X41) → U2_ag(T17, T18, X41, reverse7_in_aa(T18, T19))
U2_ag(T17, T18, X41, reverse7_out_aa(T18, T19)) → U3_ag(T17, T18, X41, append23_in_aag(T19, T17, X41))
U3_ag(T17, T18, X41, append23_out_aag(T19, T17, X41)) → reverse7_out_ag(cons(T17, T18), X41)
U6_aaa(T6, reverse7_out_ag(T6, nil)) → p6_out_aaa(T6, nil, nil)
p6_in_aaa(T6, cons(T42, T43), cons(T42, X87)) → U7_aaa(T6, T42, T43, X87, reverse7_in_aa(T6, cons(T42, T43)))
U7_aaa(T6, T42, T43, X87, reverse7_out_aa(T6, cons(T42, T43))) → U8_aaa(T6, T42, T43, X87, p6_in_aaa(T43, X86, X87))
U8_aaa(T6, T42, T43, X87, p6_out_aaa(T43, X86, X87)) → p6_out_aaa(T6, cons(T42, T43), cons(T42, X87))
U8_gaa(T6, T42, T43, X87, p6_out_aaa(T43, X86, X87)) → p6_out_gaa(T6, cons(T42, T43), cons(T42, X87))
U9_g(T6, p6_out_gaa(T6, X19, X21)) → query1_out_g(T6)
QUERY1_IN_G(T6) → U9_G(T6, p6_in_gaa(T6, X19, X21))
QUERY1_IN_G(T6) → P6_IN_GAA(T6, X19, X21)
P6_IN_GAA(T6, X19, X21) → U5_GAA(T6, X19, X21, reverse7_in_ga(T6, X19))
P6_IN_GAA(T6, X19, X21) → REVERSE7_IN_GA(T6, X19)
REVERSE7_IN_GA(cons(T17, T18), X41) → U1_GA(T17, T18, X41, reverse7_in_ga(T18, X40))
REVERSE7_IN_GA(cons(T17, T18), X41) → REVERSE7_IN_GA(T18, X40)
REVERSE7_IN_GA(cons(T17, T18), X41) → U2_GA(T17, T18, X41, reverse7_in_ga(T18, T19))
U2_GA(T17, T18, X41, reverse7_out_ga(T18, T19)) → U3_GA(T17, T18, X41, append23_in_aaa(T19, T17, X41))
U2_GA(T17, T18, X41, reverse7_out_ga(T18, T19)) → APPEND23_IN_AAA(T19, T17, X41)
APPEND23_IN_AAA(cons(T33, T34), T35, cons(T33, X67)) → U4_AAA(T33, T34, T35, X67, append23_in_aaa(T34, T35, X67))
APPEND23_IN_AAA(cons(T33, T34), T35, cons(T33, X67)) → APPEND23_IN_AAA(T34, T35, X67)
P6_IN_GAA(T6, nil, nil) → U6_GAA(T6, reverse7_in_gg(T6, nil))
P6_IN_GAA(T6, nil, nil) → REVERSE7_IN_GG(T6, nil)
REVERSE7_IN_GG(cons(T17, T18), X41) → U1_GG(T17, T18, X41, reverse7_in_ga(T18, X40))
REVERSE7_IN_GG(cons(T17, T18), X41) → REVERSE7_IN_GA(T18, X40)
REVERSE7_IN_GG(cons(T17, T18), X41) → U2_GG(T17, T18, X41, reverse7_in_ga(T18, T19))
U2_GG(T17, T18, X41, reverse7_out_ga(T18, T19)) → U3_GG(T17, T18, X41, append23_in_aag(T19, T17, X41))
U2_GG(T17, T18, X41, reverse7_out_ga(T18, T19)) → APPEND23_IN_AAG(T19, T17, X41)
APPEND23_IN_AAG(cons(T33, T34), T35, cons(T33, X67)) → U4_AAG(T33, T34, T35, X67, append23_in_aag(T34, T35, X67))
APPEND23_IN_AAG(cons(T33, T34), T35, cons(T33, X67)) → APPEND23_IN_AAG(T34, T35, X67)
P6_IN_GAA(T6, cons(T42, T43), cons(T42, X87)) → U7_GAA(T6, T42, T43, X87, reverse7_in_ga(T6, cons(T42, T43)))
P6_IN_GAA(T6, cons(T42, T43), cons(T42, X87)) → REVERSE7_IN_GA(T6, cons(T42, T43))
U7_GAA(T6, T42, T43, X87, reverse7_out_ga(T6, cons(T42, T43))) → U8_GAA(T6, T42, T43, X87, p6_in_aaa(T43, X86, X87))
U7_GAA(T6, T42, T43, X87, reverse7_out_ga(T6, cons(T42, T43))) → P6_IN_AAA(T43, X86, X87)
P6_IN_AAA(T6, X19, X21) → U5_AAA(T6, X19, X21, reverse7_in_aa(T6, X19))
P6_IN_AAA(T6, X19, X21) → REVERSE7_IN_AA(T6, X19)
REVERSE7_IN_AA(cons(T17, T18), X41) → U1_AA(T17, T18, X41, reverse7_in_aa(T18, X40))
REVERSE7_IN_AA(cons(T17, T18), X41) → REVERSE7_IN_AA(T18, X40)
REVERSE7_IN_AA(cons(T17, T18), X41) → U2_AA(T17, T18, X41, reverse7_in_aa(T18, T19))
U2_AA(T17, T18, X41, reverse7_out_aa(T18, T19)) → U3_AA(T17, T18, X41, append23_in_aaa(T19, T17, X41))
U2_AA(T17, T18, X41, reverse7_out_aa(T18, T19)) → APPEND23_IN_AAA(T19, T17, X41)
P6_IN_AAA(T6, nil, nil) → U6_AAA(T6, reverse7_in_ag(T6, nil))
P6_IN_AAA(T6, nil, nil) → REVERSE7_IN_AG(T6, nil)
REVERSE7_IN_AG(cons(T17, T18), X41) → U1_AG(T17, T18, X41, reverse7_in_aa(T18, X40))
REVERSE7_IN_AG(cons(T17, T18), X41) → REVERSE7_IN_AA(T18, X40)
REVERSE7_IN_AG(cons(T17, T18), X41) → U2_AG(T17, T18, X41, reverse7_in_aa(T18, T19))
U2_AG(T17, T18, X41, reverse7_out_aa(T18, T19)) → U3_AG(T17, T18, X41, append23_in_aag(T19, T17, X41))
U2_AG(T17, T18, X41, reverse7_out_aa(T18, T19)) → APPEND23_IN_AAG(T19, T17, X41)
P6_IN_AAA(T6, cons(T42, T43), cons(T42, X87)) → U7_AAA(T6, T42, T43, X87, reverse7_in_aa(T6, cons(T42, T43)))
P6_IN_AAA(T6, cons(T42, T43), cons(T42, X87)) → REVERSE7_IN_AA(T6, cons(T42, T43))
U7_AAA(T6, T42, T43, X87, reverse7_out_aa(T6, cons(T42, T43))) → U8_AAA(T6, T42, T43, X87, p6_in_aaa(T43, X86, X87))
U7_AAA(T6, T42, T43, X87, reverse7_out_aa(T6, cons(T42, T43))) → P6_IN_AAA(T43, X86, X87)
query1_in_g(T6) → U9_g(T6, p6_in_gaa(T6, X19, X21))
p6_in_gaa(T6, X19, X21) → U5_gaa(T6, X19, X21, reverse7_in_ga(T6, X19))
reverse7_in_ga(nil, nil) → reverse7_out_ga(nil, nil)
reverse7_in_ga(cons(T12, nil), cons(T12, nil)) → reverse7_out_ga(cons(T12, nil), cons(T12, nil))
reverse7_in_ga(cons(T17, T18), X41) → U1_ga(T17, T18, X41, reverse7_in_ga(T18, X40))
reverse7_in_ga(cons(T17, T18), X41) → U2_ga(T17, T18, X41, reverse7_in_ga(T18, T19))
U2_ga(T17, T18, X41, reverse7_out_ga(T18, T19)) → U3_ga(T17, T18, X41, append23_in_aaa(T19, T17, X41))
append23_in_aaa(nil, T26, cons(T26, nil)) → append23_out_aaa(nil, T26, cons(T26, nil))
append23_in_aaa(cons(T33, T34), T35, cons(T33, X67)) → U4_aaa(T33, T34, T35, X67, append23_in_aaa(T34, T35, X67))
U4_aaa(T33, T34, T35, X67, append23_out_aaa(T34, T35, X67)) → append23_out_aaa(cons(T33, T34), T35, cons(T33, X67))
U3_ga(T17, T18, X41, append23_out_aaa(T19, T17, X41)) → reverse7_out_ga(cons(T17, T18), X41)
U1_ga(T17, T18, X41, reverse7_out_ga(T18, X40)) → reverse7_out_ga(cons(T17, T18), X41)
U5_gaa(T6, X19, X21, reverse7_out_ga(T6, X19)) → p6_out_gaa(T6, X19, X21)
p6_in_gaa(T6, nil, nil) → U6_gaa(T6, reverse7_in_gg(T6, nil))
reverse7_in_gg(nil, nil) → reverse7_out_gg(nil, nil)
reverse7_in_gg(cons(T12, nil), cons(T12, nil)) → reverse7_out_gg(cons(T12, nil), cons(T12, nil))
reverse7_in_gg(cons(T17, T18), X41) → U1_gg(T17, T18, X41, reverse7_in_ga(T18, X40))
U1_gg(T17, T18, X41, reverse7_out_ga(T18, X40)) → reverse7_out_gg(cons(T17, T18), X41)
reverse7_in_gg(cons(T17, T18), X41) → U2_gg(T17, T18, X41, reverse7_in_ga(T18, T19))
U2_gg(T17, T18, X41, reverse7_out_ga(T18, T19)) → U3_gg(T17, T18, X41, append23_in_aag(T19, T17, X41))
append23_in_aag(nil, T26, cons(T26, nil)) → append23_out_aag(nil, T26, cons(T26, nil))
append23_in_aag(cons(T33, T34), T35, cons(T33, X67)) → U4_aag(T33, T34, T35, X67, append23_in_aag(T34, T35, X67))
U4_aag(T33, T34, T35, X67, append23_out_aag(T34, T35, X67)) → append23_out_aag(cons(T33, T34), T35, cons(T33, X67))
U3_gg(T17, T18, X41, append23_out_aag(T19, T17, X41)) → reverse7_out_gg(cons(T17, T18), X41)
U6_gaa(T6, reverse7_out_gg(T6, nil)) → p6_out_gaa(T6, nil, nil)
p6_in_gaa(T6, cons(T42, T43), cons(T42, X87)) → U7_gaa(T6, T42, T43, X87, reverse7_in_ga(T6, cons(T42, T43)))
U7_gaa(T6, T42, T43, X87, reverse7_out_ga(T6, cons(T42, T43))) → U8_gaa(T6, T42, T43, X87, p6_in_aaa(T43, X86, X87))
p6_in_aaa(T6, X19, X21) → U5_aaa(T6, X19, X21, reverse7_in_aa(T6, X19))
reverse7_in_aa(nil, nil) → reverse7_out_aa(nil, nil)
reverse7_in_aa(cons(T12, nil), cons(T12, nil)) → reverse7_out_aa(cons(T12, nil), cons(T12, nil))
reverse7_in_aa(cons(T17, T18), X41) → U1_aa(T17, T18, X41, reverse7_in_aa(T18, X40))
reverse7_in_aa(cons(T17, T18), X41) → U2_aa(T17, T18, X41, reverse7_in_aa(T18, T19))
U2_aa(T17, T18, X41, reverse7_out_aa(T18, T19)) → U3_aa(T17, T18, X41, append23_in_aaa(T19, T17, X41))
U3_aa(T17, T18, X41, append23_out_aaa(T19, T17, X41)) → reverse7_out_aa(cons(T17, T18), X41)
U1_aa(T17, T18, X41, reverse7_out_aa(T18, X40)) → reverse7_out_aa(cons(T17, T18), X41)
U5_aaa(T6, X19, X21, reverse7_out_aa(T6, X19)) → p6_out_aaa(T6, X19, X21)
p6_in_aaa(T6, nil, nil) → U6_aaa(T6, reverse7_in_ag(T6, nil))
reverse7_in_ag(nil, nil) → reverse7_out_ag(nil, nil)
reverse7_in_ag(cons(T12, nil), cons(T12, nil)) → reverse7_out_ag(cons(T12, nil), cons(T12, nil))
reverse7_in_ag(cons(T17, T18), X41) → U1_ag(T17, T18, X41, reverse7_in_aa(T18, X40))
U1_ag(T17, T18, X41, reverse7_out_aa(T18, X40)) → reverse7_out_ag(cons(T17, T18), X41)
reverse7_in_ag(cons(T17, T18), X41) → U2_ag(T17, T18, X41, reverse7_in_aa(T18, T19))
U2_ag(T17, T18, X41, reverse7_out_aa(T18, T19)) → U3_ag(T17, T18, X41, append23_in_aag(T19, T17, X41))
U3_ag(T17, T18, X41, append23_out_aag(T19, T17, X41)) → reverse7_out_ag(cons(T17, T18), X41)
U6_aaa(T6, reverse7_out_ag(T6, nil)) → p6_out_aaa(T6, nil, nil)
p6_in_aaa(T6, cons(T42, T43), cons(T42, X87)) → U7_aaa(T6, T42, T43, X87, reverse7_in_aa(T6, cons(T42, T43)))
U7_aaa(T6, T42, T43, X87, reverse7_out_aa(T6, cons(T42, T43))) → U8_aaa(T6, T42, T43, X87, p6_in_aaa(T43, X86, X87))
U8_aaa(T6, T42, T43, X87, p6_out_aaa(T43, X86, X87)) → p6_out_aaa(T6, cons(T42, T43), cons(T42, X87))
U8_gaa(T6, T42, T43, X87, p6_out_aaa(T43, X86, X87)) → p6_out_gaa(T6, cons(T42, T43), cons(T42, X87))
U9_g(T6, p6_out_gaa(T6, X19, X21)) → query1_out_g(T6)
QUERY1_IN_G(T6) → U9_G(T6, p6_in_gaa(T6, X19, X21))
QUERY1_IN_G(T6) → P6_IN_GAA(T6, X19, X21)
P6_IN_GAA(T6, X19, X21) → U5_GAA(T6, X19, X21, reverse7_in_ga(T6, X19))
P6_IN_GAA(T6, X19, X21) → REVERSE7_IN_GA(T6, X19)
REVERSE7_IN_GA(cons(T17, T18), X41) → U1_GA(T17, T18, X41, reverse7_in_ga(T18, X40))
REVERSE7_IN_GA(cons(T17, T18), X41) → REVERSE7_IN_GA(T18, X40)
REVERSE7_IN_GA(cons(T17, T18), X41) → U2_GA(T17, T18, X41, reverse7_in_ga(T18, T19))
U2_GA(T17, T18, X41, reverse7_out_ga(T18, T19)) → U3_GA(T17, T18, X41, append23_in_aaa(T19, T17, X41))
U2_GA(T17, T18, X41, reverse7_out_ga(T18, T19)) → APPEND23_IN_AAA(T19, T17, X41)
APPEND23_IN_AAA(cons(T33, T34), T35, cons(T33, X67)) → U4_AAA(T33, T34, T35, X67, append23_in_aaa(T34, T35, X67))
APPEND23_IN_AAA(cons(T33, T34), T35, cons(T33, X67)) → APPEND23_IN_AAA(T34, T35, X67)
P6_IN_GAA(T6, nil, nil) → U6_GAA(T6, reverse7_in_gg(T6, nil))
P6_IN_GAA(T6, nil, nil) → REVERSE7_IN_GG(T6, nil)
REVERSE7_IN_GG(cons(T17, T18), X41) → U1_GG(T17, T18, X41, reverse7_in_ga(T18, X40))
REVERSE7_IN_GG(cons(T17, T18), X41) → REVERSE7_IN_GA(T18, X40)
REVERSE7_IN_GG(cons(T17, T18), X41) → U2_GG(T17, T18, X41, reverse7_in_ga(T18, T19))
U2_GG(T17, T18, X41, reverse7_out_ga(T18, T19)) → U3_GG(T17, T18, X41, append23_in_aag(T19, T17, X41))
U2_GG(T17, T18, X41, reverse7_out_ga(T18, T19)) → APPEND23_IN_AAG(T19, T17, X41)
APPEND23_IN_AAG(cons(T33, T34), T35, cons(T33, X67)) → U4_AAG(T33, T34, T35, X67, append23_in_aag(T34, T35, X67))
APPEND23_IN_AAG(cons(T33, T34), T35, cons(T33, X67)) → APPEND23_IN_AAG(T34, T35, X67)
P6_IN_GAA(T6, cons(T42, T43), cons(T42, X87)) → U7_GAA(T6, T42, T43, X87, reverse7_in_ga(T6, cons(T42, T43)))
P6_IN_GAA(T6, cons(T42, T43), cons(T42, X87)) → REVERSE7_IN_GA(T6, cons(T42, T43))
U7_GAA(T6, T42, T43, X87, reverse7_out_ga(T6, cons(T42, T43))) → U8_GAA(T6, T42, T43, X87, p6_in_aaa(T43, X86, X87))
U7_GAA(T6, T42, T43, X87, reverse7_out_ga(T6, cons(T42, T43))) → P6_IN_AAA(T43, X86, X87)
P6_IN_AAA(T6, X19, X21) → U5_AAA(T6, X19, X21, reverse7_in_aa(T6, X19))
P6_IN_AAA(T6, X19, X21) → REVERSE7_IN_AA(T6, X19)
REVERSE7_IN_AA(cons(T17, T18), X41) → U1_AA(T17, T18, X41, reverse7_in_aa(T18, X40))
REVERSE7_IN_AA(cons(T17, T18), X41) → REVERSE7_IN_AA(T18, X40)
REVERSE7_IN_AA(cons(T17, T18), X41) → U2_AA(T17, T18, X41, reverse7_in_aa(T18, T19))
U2_AA(T17, T18, X41, reverse7_out_aa(T18, T19)) → U3_AA(T17, T18, X41, append23_in_aaa(T19, T17, X41))
U2_AA(T17, T18, X41, reverse7_out_aa(T18, T19)) → APPEND23_IN_AAA(T19, T17, X41)
P6_IN_AAA(T6, nil, nil) → U6_AAA(T6, reverse7_in_ag(T6, nil))
P6_IN_AAA(T6, nil, nil) → REVERSE7_IN_AG(T6, nil)
REVERSE7_IN_AG(cons(T17, T18), X41) → U1_AG(T17, T18, X41, reverse7_in_aa(T18, X40))
REVERSE7_IN_AG(cons(T17, T18), X41) → REVERSE7_IN_AA(T18, X40)
REVERSE7_IN_AG(cons(T17, T18), X41) → U2_AG(T17, T18, X41, reverse7_in_aa(T18, T19))
U2_AG(T17, T18, X41, reverse7_out_aa(T18, T19)) → U3_AG(T17, T18, X41, append23_in_aag(T19, T17, X41))
U2_AG(T17, T18, X41, reverse7_out_aa(T18, T19)) → APPEND23_IN_AAG(T19, T17, X41)
P6_IN_AAA(T6, cons(T42, T43), cons(T42, X87)) → U7_AAA(T6, T42, T43, X87, reverse7_in_aa(T6, cons(T42, T43)))
P6_IN_AAA(T6, cons(T42, T43), cons(T42, X87)) → REVERSE7_IN_AA(T6, cons(T42, T43))
U7_AAA(T6, T42, T43, X87, reverse7_out_aa(T6, cons(T42, T43))) → U8_AAA(T6, T42, T43, X87, p6_in_aaa(T43, X86, X87))
U7_AAA(T6, T42, T43, X87, reverse7_out_aa(T6, cons(T42, T43))) → P6_IN_AAA(T43, X86, X87)
query1_in_g(T6) → U9_g(T6, p6_in_gaa(T6, X19, X21))
p6_in_gaa(T6, X19, X21) → U5_gaa(T6, X19, X21, reverse7_in_ga(T6, X19))
reverse7_in_ga(nil, nil) → reverse7_out_ga(nil, nil)
reverse7_in_ga(cons(T12, nil), cons(T12, nil)) → reverse7_out_ga(cons(T12, nil), cons(T12, nil))
reverse7_in_ga(cons(T17, T18), X41) → U1_ga(T17, T18, X41, reverse7_in_ga(T18, X40))
reverse7_in_ga(cons(T17, T18), X41) → U2_ga(T17, T18, X41, reverse7_in_ga(T18, T19))
U2_ga(T17, T18, X41, reverse7_out_ga(T18, T19)) → U3_ga(T17, T18, X41, append23_in_aaa(T19, T17, X41))
append23_in_aaa(nil, T26, cons(T26, nil)) → append23_out_aaa(nil, T26, cons(T26, nil))
append23_in_aaa(cons(T33, T34), T35, cons(T33, X67)) → U4_aaa(T33, T34, T35, X67, append23_in_aaa(T34, T35, X67))
U4_aaa(T33, T34, T35, X67, append23_out_aaa(T34, T35, X67)) → append23_out_aaa(cons(T33, T34), T35, cons(T33, X67))
U3_ga(T17, T18, X41, append23_out_aaa(T19, T17, X41)) → reverse7_out_ga(cons(T17, T18), X41)
U1_ga(T17, T18, X41, reverse7_out_ga(T18, X40)) → reverse7_out_ga(cons(T17, T18), X41)
U5_gaa(T6, X19, X21, reverse7_out_ga(T6, X19)) → p6_out_gaa(T6, X19, X21)
p6_in_gaa(T6, nil, nil) → U6_gaa(T6, reverse7_in_gg(T6, nil))
reverse7_in_gg(nil, nil) → reverse7_out_gg(nil, nil)
reverse7_in_gg(cons(T12, nil), cons(T12, nil)) → reverse7_out_gg(cons(T12, nil), cons(T12, nil))
reverse7_in_gg(cons(T17, T18), X41) → U1_gg(T17, T18, X41, reverse7_in_ga(T18, X40))
U1_gg(T17, T18, X41, reverse7_out_ga(T18, X40)) → reverse7_out_gg(cons(T17, T18), X41)
reverse7_in_gg(cons(T17, T18), X41) → U2_gg(T17, T18, X41, reverse7_in_ga(T18, T19))
U2_gg(T17, T18, X41, reverse7_out_ga(T18, T19)) → U3_gg(T17, T18, X41, append23_in_aag(T19, T17, X41))
append23_in_aag(nil, T26, cons(T26, nil)) → append23_out_aag(nil, T26, cons(T26, nil))
append23_in_aag(cons(T33, T34), T35, cons(T33, X67)) → U4_aag(T33, T34, T35, X67, append23_in_aag(T34, T35, X67))
U4_aag(T33, T34, T35, X67, append23_out_aag(T34, T35, X67)) → append23_out_aag(cons(T33, T34), T35, cons(T33, X67))
U3_gg(T17, T18, X41, append23_out_aag(T19, T17, X41)) → reverse7_out_gg(cons(T17, T18), X41)
U6_gaa(T6, reverse7_out_gg(T6, nil)) → p6_out_gaa(T6, nil, nil)
p6_in_gaa(T6, cons(T42, T43), cons(T42, X87)) → U7_gaa(T6, T42, T43, X87, reverse7_in_ga(T6, cons(T42, T43)))
U7_gaa(T6, T42, T43, X87, reverse7_out_ga(T6, cons(T42, T43))) → U8_gaa(T6, T42, T43, X87, p6_in_aaa(T43, X86, X87))
p6_in_aaa(T6, X19, X21) → U5_aaa(T6, X19, X21, reverse7_in_aa(T6, X19))
reverse7_in_aa(nil, nil) → reverse7_out_aa(nil, nil)
reverse7_in_aa(cons(T12, nil), cons(T12, nil)) → reverse7_out_aa(cons(T12, nil), cons(T12, nil))
reverse7_in_aa(cons(T17, T18), X41) → U1_aa(T17, T18, X41, reverse7_in_aa(T18, X40))
reverse7_in_aa(cons(T17, T18), X41) → U2_aa(T17, T18, X41, reverse7_in_aa(T18, T19))
U2_aa(T17, T18, X41, reverse7_out_aa(T18, T19)) → U3_aa(T17, T18, X41, append23_in_aaa(T19, T17, X41))
U3_aa(T17, T18, X41, append23_out_aaa(T19, T17, X41)) → reverse7_out_aa(cons(T17, T18), X41)
U1_aa(T17, T18, X41, reverse7_out_aa(T18, X40)) → reverse7_out_aa(cons(T17, T18), X41)
U5_aaa(T6, X19, X21, reverse7_out_aa(T6, X19)) → p6_out_aaa(T6, X19, X21)
p6_in_aaa(T6, nil, nil) → U6_aaa(T6, reverse7_in_ag(T6, nil))
reverse7_in_ag(nil, nil) → reverse7_out_ag(nil, nil)
reverse7_in_ag(cons(T12, nil), cons(T12, nil)) → reverse7_out_ag(cons(T12, nil), cons(T12, nil))
reverse7_in_ag(cons(T17, T18), X41) → U1_ag(T17, T18, X41, reverse7_in_aa(T18, X40))
U1_ag(T17, T18, X41, reverse7_out_aa(T18, X40)) → reverse7_out_ag(cons(T17, T18), X41)
reverse7_in_ag(cons(T17, T18), X41) → U2_ag(T17, T18, X41, reverse7_in_aa(T18, T19))
U2_ag(T17, T18, X41, reverse7_out_aa(T18, T19)) → U3_ag(T17, T18, X41, append23_in_aag(T19, T17, X41))
U3_ag(T17, T18, X41, append23_out_aag(T19, T17, X41)) → reverse7_out_ag(cons(T17, T18), X41)
U6_aaa(T6, reverse7_out_ag(T6, nil)) → p6_out_aaa(T6, nil, nil)
p6_in_aaa(T6, cons(T42, T43), cons(T42, X87)) → U7_aaa(T6, T42, T43, X87, reverse7_in_aa(T6, cons(T42, T43)))
U7_aaa(T6, T42, T43, X87, reverse7_out_aa(T6, cons(T42, T43))) → U8_aaa(T6, T42, T43, X87, p6_in_aaa(T43, X86, X87))
U8_aaa(T6, T42, T43, X87, p6_out_aaa(T43, X86, X87)) → p6_out_aaa(T6, cons(T42, T43), cons(T42, X87))
U8_gaa(T6, T42, T43, X87, p6_out_aaa(T43, X86, X87)) → p6_out_gaa(T6, cons(T42, T43), cons(T42, X87))
U9_g(T6, p6_out_gaa(T6, X19, X21)) → query1_out_g(T6)
APPEND23_IN_AAG(cons(T33, T34), T35, cons(T33, X67)) → APPEND23_IN_AAG(T34, T35, X67)
query1_in_g(T6) → U9_g(T6, p6_in_gaa(T6, X19, X21))
p6_in_gaa(T6, X19, X21) → U5_gaa(T6, X19, X21, reverse7_in_ga(T6, X19))
reverse7_in_ga(nil, nil) → reverse7_out_ga(nil, nil)
reverse7_in_ga(cons(T12, nil), cons(T12, nil)) → reverse7_out_ga(cons(T12, nil), cons(T12, nil))
reverse7_in_ga(cons(T17, T18), X41) → U1_ga(T17, T18, X41, reverse7_in_ga(T18, X40))
reverse7_in_ga(cons(T17, T18), X41) → U2_ga(T17, T18, X41, reverse7_in_ga(T18, T19))
U2_ga(T17, T18, X41, reverse7_out_ga(T18, T19)) → U3_ga(T17, T18, X41, append23_in_aaa(T19, T17, X41))
append23_in_aaa(nil, T26, cons(T26, nil)) → append23_out_aaa(nil, T26, cons(T26, nil))
append23_in_aaa(cons(T33, T34), T35, cons(T33, X67)) → U4_aaa(T33, T34, T35, X67, append23_in_aaa(T34, T35, X67))
U4_aaa(T33, T34, T35, X67, append23_out_aaa(T34, T35, X67)) → append23_out_aaa(cons(T33, T34), T35, cons(T33, X67))
U3_ga(T17, T18, X41, append23_out_aaa(T19, T17, X41)) → reverse7_out_ga(cons(T17, T18), X41)
U1_ga(T17, T18, X41, reverse7_out_ga(T18, X40)) → reverse7_out_ga(cons(T17, T18), X41)
U5_gaa(T6, X19, X21, reverse7_out_ga(T6, X19)) → p6_out_gaa(T6, X19, X21)
p6_in_gaa(T6, nil, nil) → U6_gaa(T6, reverse7_in_gg(T6, nil))
reverse7_in_gg(nil, nil) → reverse7_out_gg(nil, nil)
reverse7_in_gg(cons(T12, nil), cons(T12, nil)) → reverse7_out_gg(cons(T12, nil), cons(T12, nil))
reverse7_in_gg(cons(T17, T18), X41) → U1_gg(T17, T18, X41, reverse7_in_ga(T18, X40))
U1_gg(T17, T18, X41, reverse7_out_ga(T18, X40)) → reverse7_out_gg(cons(T17, T18), X41)
reverse7_in_gg(cons(T17, T18), X41) → U2_gg(T17, T18, X41, reverse7_in_ga(T18, T19))
U2_gg(T17, T18, X41, reverse7_out_ga(T18, T19)) → U3_gg(T17, T18, X41, append23_in_aag(T19, T17, X41))
append23_in_aag(nil, T26, cons(T26, nil)) → append23_out_aag(nil, T26, cons(T26, nil))
append23_in_aag(cons(T33, T34), T35, cons(T33, X67)) → U4_aag(T33, T34, T35, X67, append23_in_aag(T34, T35, X67))
U4_aag(T33, T34, T35, X67, append23_out_aag(T34, T35, X67)) → append23_out_aag(cons(T33, T34), T35, cons(T33, X67))
U3_gg(T17, T18, X41, append23_out_aag(T19, T17, X41)) → reverse7_out_gg(cons(T17, T18), X41)
U6_gaa(T6, reverse7_out_gg(T6, nil)) → p6_out_gaa(T6, nil, nil)
p6_in_gaa(T6, cons(T42, T43), cons(T42, X87)) → U7_gaa(T6, T42, T43, X87, reverse7_in_ga(T6, cons(T42, T43)))
U7_gaa(T6, T42, T43, X87, reverse7_out_ga(T6, cons(T42, T43))) → U8_gaa(T6, T42, T43, X87, p6_in_aaa(T43, X86, X87))
p6_in_aaa(T6, X19, X21) → U5_aaa(T6, X19, X21, reverse7_in_aa(T6, X19))
reverse7_in_aa(nil, nil) → reverse7_out_aa(nil, nil)
reverse7_in_aa(cons(T12, nil), cons(T12, nil)) → reverse7_out_aa(cons(T12, nil), cons(T12, nil))
reverse7_in_aa(cons(T17, T18), X41) → U1_aa(T17, T18, X41, reverse7_in_aa(T18, X40))
reverse7_in_aa(cons(T17, T18), X41) → U2_aa(T17, T18, X41, reverse7_in_aa(T18, T19))
U2_aa(T17, T18, X41, reverse7_out_aa(T18, T19)) → U3_aa(T17, T18, X41, append23_in_aaa(T19, T17, X41))
U3_aa(T17, T18, X41, append23_out_aaa(T19, T17, X41)) → reverse7_out_aa(cons(T17, T18), X41)
U1_aa(T17, T18, X41, reverse7_out_aa(T18, X40)) → reverse7_out_aa(cons(T17, T18), X41)
U5_aaa(T6, X19, X21, reverse7_out_aa(T6, X19)) → p6_out_aaa(T6, X19, X21)
p6_in_aaa(T6, nil, nil) → U6_aaa(T6, reverse7_in_ag(T6, nil))
reverse7_in_ag(nil, nil) → reverse7_out_ag(nil, nil)
reverse7_in_ag(cons(T12, nil), cons(T12, nil)) → reverse7_out_ag(cons(T12, nil), cons(T12, nil))
reverse7_in_ag(cons(T17, T18), X41) → U1_ag(T17, T18, X41, reverse7_in_aa(T18, X40))
U1_ag(T17, T18, X41, reverse7_out_aa(T18, X40)) → reverse7_out_ag(cons(T17, T18), X41)
reverse7_in_ag(cons(T17, T18), X41) → U2_ag(T17, T18, X41, reverse7_in_aa(T18, T19))
U2_ag(T17, T18, X41, reverse7_out_aa(T18, T19)) → U3_ag(T17, T18, X41, append23_in_aag(T19, T17, X41))
U3_ag(T17, T18, X41, append23_out_aag(T19, T17, X41)) → reverse7_out_ag(cons(T17, T18), X41)
U6_aaa(T6, reverse7_out_ag(T6, nil)) → p6_out_aaa(T6, nil, nil)
p6_in_aaa(T6, cons(T42, T43), cons(T42, X87)) → U7_aaa(T6, T42, T43, X87, reverse7_in_aa(T6, cons(T42, T43)))
U7_aaa(T6, T42, T43, X87, reverse7_out_aa(T6, cons(T42, T43))) → U8_aaa(T6, T42, T43, X87, p6_in_aaa(T43, X86, X87))
U8_aaa(T6, T42, T43, X87, p6_out_aaa(T43, X86, X87)) → p6_out_aaa(T6, cons(T42, T43), cons(T42, X87))
U8_gaa(T6, T42, T43, X87, p6_out_aaa(T43, X86, X87)) → p6_out_gaa(T6, cons(T42, T43), cons(T42, X87))
U9_g(T6, p6_out_gaa(T6, X19, X21)) → query1_out_g(T6)
APPEND23_IN_AAG(cons(T33, T34), T35, cons(T33, X67)) → APPEND23_IN_AAG(T34, T35, X67)
APPEND23_IN_AAG(cons(X67)) → APPEND23_IN_AAG(X67)
From the DPs we obtained the following set of size-change graphs:
APPEND23_IN_AAA(cons(T33, T34), T35, cons(T33, X67)) → APPEND23_IN_AAA(T34, T35, X67)
query1_in_g(T6) → U9_g(T6, p6_in_gaa(T6, X19, X21))
p6_in_gaa(T6, X19, X21) → U5_gaa(T6, X19, X21, reverse7_in_ga(T6, X19))
reverse7_in_ga(nil, nil) → reverse7_out_ga(nil, nil)
reverse7_in_ga(cons(T12, nil), cons(T12, nil)) → reverse7_out_ga(cons(T12, nil), cons(T12, nil))
reverse7_in_ga(cons(T17, T18), X41) → U1_ga(T17, T18, X41, reverse7_in_ga(T18, X40))
reverse7_in_ga(cons(T17, T18), X41) → U2_ga(T17, T18, X41, reverse7_in_ga(T18, T19))
U2_ga(T17, T18, X41, reverse7_out_ga(T18, T19)) → U3_ga(T17, T18, X41, append23_in_aaa(T19, T17, X41))
append23_in_aaa(nil, T26, cons(T26, nil)) → append23_out_aaa(nil, T26, cons(T26, nil))
append23_in_aaa(cons(T33, T34), T35, cons(T33, X67)) → U4_aaa(T33, T34, T35, X67, append23_in_aaa(T34, T35, X67))
U4_aaa(T33, T34, T35, X67, append23_out_aaa(T34, T35, X67)) → append23_out_aaa(cons(T33, T34), T35, cons(T33, X67))
U3_ga(T17, T18, X41, append23_out_aaa(T19, T17, X41)) → reverse7_out_ga(cons(T17, T18), X41)
U1_ga(T17, T18, X41, reverse7_out_ga(T18, X40)) → reverse7_out_ga(cons(T17, T18), X41)
U5_gaa(T6, X19, X21, reverse7_out_ga(T6, X19)) → p6_out_gaa(T6, X19, X21)
p6_in_gaa(T6, nil, nil) → U6_gaa(T6, reverse7_in_gg(T6, nil))
reverse7_in_gg(nil, nil) → reverse7_out_gg(nil, nil)
reverse7_in_gg(cons(T12, nil), cons(T12, nil)) → reverse7_out_gg(cons(T12, nil), cons(T12, nil))
reverse7_in_gg(cons(T17, T18), X41) → U1_gg(T17, T18, X41, reverse7_in_ga(T18, X40))
U1_gg(T17, T18, X41, reverse7_out_ga(T18, X40)) → reverse7_out_gg(cons(T17, T18), X41)
reverse7_in_gg(cons(T17, T18), X41) → U2_gg(T17, T18, X41, reverse7_in_ga(T18, T19))
U2_gg(T17, T18, X41, reverse7_out_ga(T18, T19)) → U3_gg(T17, T18, X41, append23_in_aag(T19, T17, X41))
append23_in_aag(nil, T26, cons(T26, nil)) → append23_out_aag(nil, T26, cons(T26, nil))
append23_in_aag(cons(T33, T34), T35, cons(T33, X67)) → U4_aag(T33, T34, T35, X67, append23_in_aag(T34, T35, X67))
U4_aag(T33, T34, T35, X67, append23_out_aag(T34, T35, X67)) → append23_out_aag(cons(T33, T34), T35, cons(T33, X67))
U3_gg(T17, T18, X41, append23_out_aag(T19, T17, X41)) → reverse7_out_gg(cons(T17, T18), X41)
U6_gaa(T6, reverse7_out_gg(T6, nil)) → p6_out_gaa(T6, nil, nil)
p6_in_gaa(T6, cons(T42, T43), cons(T42, X87)) → U7_gaa(T6, T42, T43, X87, reverse7_in_ga(T6, cons(T42, T43)))
U7_gaa(T6, T42, T43, X87, reverse7_out_ga(T6, cons(T42, T43))) → U8_gaa(T6, T42, T43, X87, p6_in_aaa(T43, X86, X87))
p6_in_aaa(T6, X19, X21) → U5_aaa(T6, X19, X21, reverse7_in_aa(T6, X19))
reverse7_in_aa(nil, nil) → reverse7_out_aa(nil, nil)
reverse7_in_aa(cons(T12, nil), cons(T12, nil)) → reverse7_out_aa(cons(T12, nil), cons(T12, nil))
reverse7_in_aa(cons(T17, T18), X41) → U1_aa(T17, T18, X41, reverse7_in_aa(T18, X40))
reverse7_in_aa(cons(T17, T18), X41) → U2_aa(T17, T18, X41, reverse7_in_aa(T18, T19))
U2_aa(T17, T18, X41, reverse7_out_aa(T18, T19)) → U3_aa(T17, T18, X41, append23_in_aaa(T19, T17, X41))
U3_aa(T17, T18, X41, append23_out_aaa(T19, T17, X41)) → reverse7_out_aa(cons(T17, T18), X41)
U1_aa(T17, T18, X41, reverse7_out_aa(T18, X40)) → reverse7_out_aa(cons(T17, T18), X41)
U5_aaa(T6, X19, X21, reverse7_out_aa(T6, X19)) → p6_out_aaa(T6, X19, X21)
p6_in_aaa(T6, nil, nil) → U6_aaa(T6, reverse7_in_ag(T6, nil))
reverse7_in_ag(nil, nil) → reverse7_out_ag(nil, nil)
reverse7_in_ag(cons(T12, nil), cons(T12, nil)) → reverse7_out_ag(cons(T12, nil), cons(T12, nil))
reverse7_in_ag(cons(T17, T18), X41) → U1_ag(T17, T18, X41, reverse7_in_aa(T18, X40))
U1_ag(T17, T18, X41, reverse7_out_aa(T18, X40)) → reverse7_out_ag(cons(T17, T18), X41)
reverse7_in_ag(cons(T17, T18), X41) → U2_ag(T17, T18, X41, reverse7_in_aa(T18, T19))
U2_ag(T17, T18, X41, reverse7_out_aa(T18, T19)) → U3_ag(T17, T18, X41, append23_in_aag(T19, T17, X41))
U3_ag(T17, T18, X41, append23_out_aag(T19, T17, X41)) → reverse7_out_ag(cons(T17, T18), X41)
U6_aaa(T6, reverse7_out_ag(T6, nil)) → p6_out_aaa(T6, nil, nil)
p6_in_aaa(T6, cons(T42, T43), cons(T42, X87)) → U7_aaa(T6, T42, T43, X87, reverse7_in_aa(T6, cons(T42, T43)))
U7_aaa(T6, T42, T43, X87, reverse7_out_aa(T6, cons(T42, T43))) → U8_aaa(T6, T42, T43, X87, p6_in_aaa(T43, X86, X87))
U8_aaa(T6, T42, T43, X87, p6_out_aaa(T43, X86, X87)) → p6_out_aaa(T6, cons(T42, T43), cons(T42, X87))
U8_gaa(T6, T42, T43, X87, p6_out_aaa(T43, X86, X87)) → p6_out_gaa(T6, cons(T42, T43), cons(T42, X87))
U9_g(T6, p6_out_gaa(T6, X19, X21)) → query1_out_g(T6)
APPEND23_IN_AAA(cons(T33, T34), T35, cons(T33, X67)) → APPEND23_IN_AAA(T34, T35, X67)
APPEND23_IN_AAA → APPEND23_IN_AAA
REVERSE7_IN_AA(cons(T17, T18), X41) → REVERSE7_IN_AA(T18, X40)
query1_in_g(T6) → U9_g(T6, p6_in_gaa(T6, X19, X21))
p6_in_gaa(T6, X19, X21) → U5_gaa(T6, X19, X21, reverse7_in_ga(T6, X19))
reverse7_in_ga(nil, nil) → reverse7_out_ga(nil, nil)
reverse7_in_ga(cons(T12, nil), cons(T12, nil)) → reverse7_out_ga(cons(T12, nil), cons(T12, nil))
reverse7_in_ga(cons(T17, T18), X41) → U1_ga(T17, T18, X41, reverse7_in_ga(T18, X40))
reverse7_in_ga(cons(T17, T18), X41) → U2_ga(T17, T18, X41, reverse7_in_ga(T18, T19))
U2_ga(T17, T18, X41, reverse7_out_ga(T18, T19)) → U3_ga(T17, T18, X41, append23_in_aaa(T19, T17, X41))
append23_in_aaa(nil, T26, cons(T26, nil)) → append23_out_aaa(nil, T26, cons(T26, nil))
append23_in_aaa(cons(T33, T34), T35, cons(T33, X67)) → U4_aaa(T33, T34, T35, X67, append23_in_aaa(T34, T35, X67))
U4_aaa(T33, T34, T35, X67, append23_out_aaa(T34, T35, X67)) → append23_out_aaa(cons(T33, T34), T35, cons(T33, X67))
U3_ga(T17, T18, X41, append23_out_aaa(T19, T17, X41)) → reverse7_out_ga(cons(T17, T18), X41)
U1_ga(T17, T18, X41, reverse7_out_ga(T18, X40)) → reverse7_out_ga(cons(T17, T18), X41)
U5_gaa(T6, X19, X21, reverse7_out_ga(T6, X19)) → p6_out_gaa(T6, X19, X21)
p6_in_gaa(T6, nil, nil) → U6_gaa(T6, reverse7_in_gg(T6, nil))
reverse7_in_gg(nil, nil) → reverse7_out_gg(nil, nil)
reverse7_in_gg(cons(T12, nil), cons(T12, nil)) → reverse7_out_gg(cons(T12, nil), cons(T12, nil))
reverse7_in_gg(cons(T17, T18), X41) → U1_gg(T17, T18, X41, reverse7_in_ga(T18, X40))
U1_gg(T17, T18, X41, reverse7_out_ga(T18, X40)) → reverse7_out_gg(cons(T17, T18), X41)
reverse7_in_gg(cons(T17, T18), X41) → U2_gg(T17, T18, X41, reverse7_in_ga(T18, T19))
U2_gg(T17, T18, X41, reverse7_out_ga(T18, T19)) → U3_gg(T17, T18, X41, append23_in_aag(T19, T17, X41))
append23_in_aag(nil, T26, cons(T26, nil)) → append23_out_aag(nil, T26, cons(T26, nil))
append23_in_aag(cons(T33, T34), T35, cons(T33, X67)) → U4_aag(T33, T34, T35, X67, append23_in_aag(T34, T35, X67))
U4_aag(T33, T34, T35, X67, append23_out_aag(T34, T35, X67)) → append23_out_aag(cons(T33, T34), T35, cons(T33, X67))
U3_gg(T17, T18, X41, append23_out_aag(T19, T17, X41)) → reverse7_out_gg(cons(T17, T18), X41)
U6_gaa(T6, reverse7_out_gg(T6, nil)) → p6_out_gaa(T6, nil, nil)
p6_in_gaa(T6, cons(T42, T43), cons(T42, X87)) → U7_gaa(T6, T42, T43, X87, reverse7_in_ga(T6, cons(T42, T43)))
U7_gaa(T6, T42, T43, X87, reverse7_out_ga(T6, cons(T42, T43))) → U8_gaa(T6, T42, T43, X87, p6_in_aaa(T43, X86, X87))
p6_in_aaa(T6, X19, X21) → U5_aaa(T6, X19, X21, reverse7_in_aa(T6, X19))
reverse7_in_aa(nil, nil) → reverse7_out_aa(nil, nil)
reverse7_in_aa(cons(T12, nil), cons(T12, nil)) → reverse7_out_aa(cons(T12, nil), cons(T12, nil))
reverse7_in_aa(cons(T17, T18), X41) → U1_aa(T17, T18, X41, reverse7_in_aa(T18, X40))
reverse7_in_aa(cons(T17, T18), X41) → U2_aa(T17, T18, X41, reverse7_in_aa(T18, T19))
U2_aa(T17, T18, X41, reverse7_out_aa(T18, T19)) → U3_aa(T17, T18, X41, append23_in_aaa(T19, T17, X41))
U3_aa(T17, T18, X41, append23_out_aaa(T19, T17, X41)) → reverse7_out_aa(cons(T17, T18), X41)
U1_aa(T17, T18, X41, reverse7_out_aa(T18, X40)) → reverse7_out_aa(cons(T17, T18), X41)
U5_aaa(T6, X19, X21, reverse7_out_aa(T6, X19)) → p6_out_aaa(T6, X19, X21)
p6_in_aaa(T6, nil, nil) → U6_aaa(T6, reverse7_in_ag(T6, nil))
reverse7_in_ag(nil, nil) → reverse7_out_ag(nil, nil)
reverse7_in_ag(cons(T12, nil), cons(T12, nil)) → reverse7_out_ag(cons(T12, nil), cons(T12, nil))
reverse7_in_ag(cons(T17, T18), X41) → U1_ag(T17, T18, X41, reverse7_in_aa(T18, X40))
U1_ag(T17, T18, X41, reverse7_out_aa(T18, X40)) → reverse7_out_ag(cons(T17, T18), X41)
reverse7_in_ag(cons(T17, T18), X41) → U2_ag(T17, T18, X41, reverse7_in_aa(T18, T19))
U2_ag(T17, T18, X41, reverse7_out_aa(T18, T19)) → U3_ag(T17, T18, X41, append23_in_aag(T19, T17, X41))
U3_ag(T17, T18, X41, append23_out_aag(T19, T17, X41)) → reverse7_out_ag(cons(T17, T18), X41)
U6_aaa(T6, reverse7_out_ag(T6, nil)) → p6_out_aaa(T6, nil, nil)
p6_in_aaa(T6, cons(T42, T43), cons(T42, X87)) → U7_aaa(T6, T42, T43, X87, reverse7_in_aa(T6, cons(T42, T43)))
U7_aaa(T6, T42, T43, X87, reverse7_out_aa(T6, cons(T42, T43))) → U8_aaa(T6, T42, T43, X87, p6_in_aaa(T43, X86, X87))
U8_aaa(T6, T42, T43, X87, p6_out_aaa(T43, X86, X87)) → p6_out_aaa(T6, cons(T42, T43), cons(T42, X87))
U8_gaa(T6, T42, T43, X87, p6_out_aaa(T43, X86, X87)) → p6_out_gaa(T6, cons(T42, T43), cons(T42, X87))
U9_g(T6, p6_out_gaa(T6, X19, X21)) → query1_out_g(T6)
REVERSE7_IN_AA(cons(T17, T18), X41) → REVERSE7_IN_AA(T18, X40)
REVERSE7_IN_AA → REVERSE7_IN_AA
P6_IN_AAA(T6, cons(T42, T43), cons(T42, X87)) → U7_AAA(T6, T42, T43, X87, reverse7_in_aa(T6, cons(T42, T43)))
U7_AAA(T6, T42, T43, X87, reverse7_out_aa(T6, cons(T42, T43))) → P6_IN_AAA(T43, X86, X87)
query1_in_g(T6) → U9_g(T6, p6_in_gaa(T6, X19, X21))
p6_in_gaa(T6, X19, X21) → U5_gaa(T6, X19, X21, reverse7_in_ga(T6, X19))
reverse7_in_ga(nil, nil) → reverse7_out_ga(nil, nil)
reverse7_in_ga(cons(T12, nil), cons(T12, nil)) → reverse7_out_ga(cons(T12, nil), cons(T12, nil))
reverse7_in_ga(cons(T17, T18), X41) → U1_ga(T17, T18, X41, reverse7_in_ga(T18, X40))
reverse7_in_ga(cons(T17, T18), X41) → U2_ga(T17, T18, X41, reverse7_in_ga(T18, T19))
U2_ga(T17, T18, X41, reverse7_out_ga(T18, T19)) → U3_ga(T17, T18, X41, append23_in_aaa(T19, T17, X41))
append23_in_aaa(nil, T26, cons(T26, nil)) → append23_out_aaa(nil, T26, cons(T26, nil))
append23_in_aaa(cons(T33, T34), T35, cons(T33, X67)) → U4_aaa(T33, T34, T35, X67, append23_in_aaa(T34, T35, X67))
U4_aaa(T33, T34, T35, X67, append23_out_aaa(T34, T35, X67)) → append23_out_aaa(cons(T33, T34), T35, cons(T33, X67))
U3_ga(T17, T18, X41, append23_out_aaa(T19, T17, X41)) → reverse7_out_ga(cons(T17, T18), X41)
U1_ga(T17, T18, X41, reverse7_out_ga(T18, X40)) → reverse7_out_ga(cons(T17, T18), X41)
U5_gaa(T6, X19, X21, reverse7_out_ga(T6, X19)) → p6_out_gaa(T6, X19, X21)
p6_in_gaa(T6, nil, nil) → U6_gaa(T6, reverse7_in_gg(T6, nil))
reverse7_in_gg(nil, nil) → reverse7_out_gg(nil, nil)
reverse7_in_gg(cons(T12, nil), cons(T12, nil)) → reverse7_out_gg(cons(T12, nil), cons(T12, nil))
reverse7_in_gg(cons(T17, T18), X41) → U1_gg(T17, T18, X41, reverse7_in_ga(T18, X40))
U1_gg(T17, T18, X41, reverse7_out_ga(T18, X40)) → reverse7_out_gg(cons(T17, T18), X41)
reverse7_in_gg(cons(T17, T18), X41) → U2_gg(T17, T18, X41, reverse7_in_ga(T18, T19))
U2_gg(T17, T18, X41, reverse7_out_ga(T18, T19)) → U3_gg(T17, T18, X41, append23_in_aag(T19, T17, X41))
append23_in_aag(nil, T26, cons(T26, nil)) → append23_out_aag(nil, T26, cons(T26, nil))
append23_in_aag(cons(T33, T34), T35, cons(T33, X67)) → U4_aag(T33, T34, T35, X67, append23_in_aag(T34, T35, X67))
U4_aag(T33, T34, T35, X67, append23_out_aag(T34, T35, X67)) → append23_out_aag(cons(T33, T34), T35, cons(T33, X67))
U3_gg(T17, T18, X41, append23_out_aag(T19, T17, X41)) → reverse7_out_gg(cons(T17, T18), X41)
U6_gaa(T6, reverse7_out_gg(T6, nil)) → p6_out_gaa(T6, nil, nil)
p6_in_gaa(T6, cons(T42, T43), cons(T42, X87)) → U7_gaa(T6, T42, T43, X87, reverse7_in_ga(T6, cons(T42, T43)))
U7_gaa(T6, T42, T43, X87, reverse7_out_ga(T6, cons(T42, T43))) → U8_gaa(T6, T42, T43, X87, p6_in_aaa(T43, X86, X87))
p6_in_aaa(T6, X19, X21) → U5_aaa(T6, X19, X21, reverse7_in_aa(T6, X19))
reverse7_in_aa(nil, nil) → reverse7_out_aa(nil, nil)
reverse7_in_aa(cons(T12, nil), cons(T12, nil)) → reverse7_out_aa(cons(T12, nil), cons(T12, nil))
reverse7_in_aa(cons(T17, T18), X41) → U1_aa(T17, T18, X41, reverse7_in_aa(T18, X40))
reverse7_in_aa(cons(T17, T18), X41) → U2_aa(T17, T18, X41, reverse7_in_aa(T18, T19))
U2_aa(T17, T18, X41, reverse7_out_aa(T18, T19)) → U3_aa(T17, T18, X41, append23_in_aaa(T19, T17, X41))
U3_aa(T17, T18, X41, append23_out_aaa(T19, T17, X41)) → reverse7_out_aa(cons(T17, T18), X41)
U1_aa(T17, T18, X41, reverse7_out_aa(T18, X40)) → reverse7_out_aa(cons(T17, T18), X41)
U5_aaa(T6, X19, X21, reverse7_out_aa(T6, X19)) → p6_out_aaa(T6, X19, X21)
p6_in_aaa(T6, nil, nil) → U6_aaa(T6, reverse7_in_ag(T6, nil))
reverse7_in_ag(nil, nil) → reverse7_out_ag(nil, nil)
reverse7_in_ag(cons(T12, nil), cons(T12, nil)) → reverse7_out_ag(cons(T12, nil), cons(T12, nil))
reverse7_in_ag(cons(T17, T18), X41) → U1_ag(T17, T18, X41, reverse7_in_aa(T18, X40))
U1_ag(T17, T18, X41, reverse7_out_aa(T18, X40)) → reverse7_out_ag(cons(T17, T18), X41)
reverse7_in_ag(cons(T17, T18), X41) → U2_ag(T17, T18, X41, reverse7_in_aa(T18, T19))
U2_ag(T17, T18, X41, reverse7_out_aa(T18, T19)) → U3_ag(T17, T18, X41, append23_in_aag(T19, T17, X41))
U3_ag(T17, T18, X41, append23_out_aag(T19, T17, X41)) → reverse7_out_ag(cons(T17, T18), X41)
U6_aaa(T6, reverse7_out_ag(T6, nil)) → p6_out_aaa(T6, nil, nil)
p6_in_aaa(T6, cons(T42, T43), cons(T42, X87)) → U7_aaa(T6, T42, T43, X87, reverse7_in_aa(T6, cons(T42, T43)))
U7_aaa(T6, T42, T43, X87, reverse7_out_aa(T6, cons(T42, T43))) → U8_aaa(T6, T42, T43, X87, p6_in_aaa(T43, X86, X87))
U8_aaa(T6, T42, T43, X87, p6_out_aaa(T43, X86, X87)) → p6_out_aaa(T6, cons(T42, T43), cons(T42, X87))
U8_gaa(T6, T42, T43, X87, p6_out_aaa(T43, X86, X87)) → p6_out_gaa(T6, cons(T42, T43), cons(T42, X87))
U9_g(T6, p6_out_gaa(T6, X19, X21)) → query1_out_g(T6)
P6_IN_AAA(T6, cons(T42, T43), cons(T42, X87)) → U7_AAA(T6, T42, T43, X87, reverse7_in_aa(T6, cons(T42, T43)))
U7_AAA(T6, T42, T43, X87, reverse7_out_aa(T6, cons(T42, T43))) → P6_IN_AAA(T43, X86, X87)
reverse7_in_aa(cons(T12, nil), cons(T12, nil)) → reverse7_out_aa(cons(T12, nil), cons(T12, nil))
reverse7_in_aa(cons(T17, T18), X41) → U1_aa(T17, T18, X41, reverse7_in_aa(T18, X40))
reverse7_in_aa(cons(T17, T18), X41) → U2_aa(T17, T18, X41, reverse7_in_aa(T18, T19))
U1_aa(T17, T18, X41, reverse7_out_aa(T18, X40)) → reverse7_out_aa(cons(T17, T18), X41)
U2_aa(T17, T18, X41, reverse7_out_aa(T18, T19)) → U3_aa(T17, T18, X41, append23_in_aaa(T19, T17, X41))
reverse7_in_aa(nil, nil) → reverse7_out_aa(nil, nil)
U3_aa(T17, T18, X41, append23_out_aaa(T19, T17, X41)) → reverse7_out_aa(cons(T17, T18), X41)
append23_in_aaa(nil, T26, cons(T26, nil)) → append23_out_aaa(nil, T26, cons(T26, nil))
append23_in_aaa(cons(T33, T34), T35, cons(T33, X67)) → U4_aaa(T33, T34, T35, X67, append23_in_aaa(T34, T35, X67))
U4_aaa(T33, T34, T35, X67, append23_out_aaa(T34, T35, X67)) → append23_out_aaa(cons(T33, T34), T35, cons(T33, X67))
P6_IN_AAA → U7_AAA(reverse7_in_aa)
U7_AAA(reverse7_out_aa(T6)) → P6_IN_AAA
reverse7_in_aa → reverse7_out_aa(cons(nil))
reverse7_in_aa → U1_aa(reverse7_in_aa)
reverse7_in_aa → U2_aa(reverse7_in_aa)
U1_aa(reverse7_out_aa(T18)) → reverse7_out_aa(cons(T18))
U2_aa(reverse7_out_aa(T18)) → U3_aa(T18, append23_in_aaa)
reverse7_in_aa → reverse7_out_aa(nil)
U3_aa(T18, append23_out_aaa(T19, X41)) → reverse7_out_aa(cons(T18))
append23_in_aaa → append23_out_aaa(nil, cons(nil))
append23_in_aaa → U4_aaa(append23_in_aaa)
U4_aaa(append23_out_aaa(T34, X67)) → append23_out_aaa(cons(T34), cons(X67))
reverse7_in_aa
U1_aa(x0)
U2_aa(x0)
U3_aa(x0, x1)
append23_in_aaa
U4_aaa(x0)
P6_IN_AAA → U7_AAA(reverse7_out_aa(cons(nil)))
P6_IN_AAA → U7_AAA(U1_aa(reverse7_in_aa))
P6_IN_AAA → U7_AAA(U2_aa(reverse7_in_aa))
P6_IN_AAA → U7_AAA(reverse7_out_aa(nil))
U7_AAA(reverse7_out_aa(T6)) → P6_IN_AAA
P6_IN_AAA → U7_AAA(reverse7_out_aa(cons(nil)))
P6_IN_AAA → U7_AAA(U1_aa(reverse7_in_aa))
P6_IN_AAA → U7_AAA(U2_aa(reverse7_in_aa))
P6_IN_AAA → U7_AAA(reverse7_out_aa(nil))
reverse7_in_aa → reverse7_out_aa(cons(nil))
reverse7_in_aa → U1_aa(reverse7_in_aa)
reverse7_in_aa → U2_aa(reverse7_in_aa)
U1_aa(reverse7_out_aa(T18)) → reverse7_out_aa(cons(T18))
U2_aa(reverse7_out_aa(T18)) → U3_aa(T18, append23_in_aaa)
reverse7_in_aa → reverse7_out_aa(nil)
U3_aa(T18, append23_out_aaa(T19, X41)) → reverse7_out_aa(cons(T18))
append23_in_aaa → append23_out_aaa(nil, cons(nil))
append23_in_aaa → U4_aaa(append23_in_aaa)
U4_aaa(append23_out_aaa(T34, X67)) → append23_out_aaa(cons(T34), cons(X67))
reverse7_in_aa
U1_aa(x0)
U2_aa(x0)
U3_aa(x0, x1)
append23_in_aaa
U4_aaa(x0)
REVERSE7_IN_GA(cons(T17, T18), X41) → REVERSE7_IN_GA(T18, X40)
query1_in_g(T6) → U9_g(T6, p6_in_gaa(T6, X19, X21))
p6_in_gaa(T6, X19, X21) → U5_gaa(T6, X19, X21, reverse7_in_ga(T6, X19))
reverse7_in_ga(nil, nil) → reverse7_out_ga(nil, nil)
reverse7_in_ga(cons(T12, nil), cons(T12, nil)) → reverse7_out_ga(cons(T12, nil), cons(T12, nil))
reverse7_in_ga(cons(T17, T18), X41) → U1_ga(T17, T18, X41, reverse7_in_ga(T18, X40))
reverse7_in_ga(cons(T17, T18), X41) → U2_ga(T17, T18, X41, reverse7_in_ga(T18, T19))
U2_ga(T17, T18, X41, reverse7_out_ga(T18, T19)) → U3_ga(T17, T18, X41, append23_in_aaa(T19, T17, X41))
append23_in_aaa(nil, T26, cons(T26, nil)) → append23_out_aaa(nil, T26, cons(T26, nil))
append23_in_aaa(cons(T33, T34), T35, cons(T33, X67)) → U4_aaa(T33, T34, T35, X67, append23_in_aaa(T34, T35, X67))
U4_aaa(T33, T34, T35, X67, append23_out_aaa(T34, T35, X67)) → append23_out_aaa(cons(T33, T34), T35, cons(T33, X67))
U3_ga(T17, T18, X41, append23_out_aaa(T19, T17, X41)) → reverse7_out_ga(cons(T17, T18), X41)
U1_ga(T17, T18, X41, reverse7_out_ga(T18, X40)) → reverse7_out_ga(cons(T17, T18), X41)
U5_gaa(T6, X19, X21, reverse7_out_ga(T6, X19)) → p6_out_gaa(T6, X19, X21)
p6_in_gaa(T6, nil, nil) → U6_gaa(T6, reverse7_in_gg(T6, nil))
reverse7_in_gg(nil, nil) → reverse7_out_gg(nil, nil)
reverse7_in_gg(cons(T12, nil), cons(T12, nil)) → reverse7_out_gg(cons(T12, nil), cons(T12, nil))
reverse7_in_gg(cons(T17, T18), X41) → U1_gg(T17, T18, X41, reverse7_in_ga(T18, X40))
U1_gg(T17, T18, X41, reverse7_out_ga(T18, X40)) → reverse7_out_gg(cons(T17, T18), X41)
reverse7_in_gg(cons(T17, T18), X41) → U2_gg(T17, T18, X41, reverse7_in_ga(T18, T19))
U2_gg(T17, T18, X41, reverse7_out_ga(T18, T19)) → U3_gg(T17, T18, X41, append23_in_aag(T19, T17, X41))
append23_in_aag(nil, T26, cons(T26, nil)) → append23_out_aag(nil, T26, cons(T26, nil))
append23_in_aag(cons(T33, T34), T35, cons(T33, X67)) → U4_aag(T33, T34, T35, X67, append23_in_aag(T34, T35, X67))
U4_aag(T33, T34, T35, X67, append23_out_aag(T34, T35, X67)) → append23_out_aag(cons(T33, T34), T35, cons(T33, X67))
U3_gg(T17, T18, X41, append23_out_aag(T19, T17, X41)) → reverse7_out_gg(cons(T17, T18), X41)
U6_gaa(T6, reverse7_out_gg(T6, nil)) → p6_out_gaa(T6, nil, nil)
p6_in_gaa(T6, cons(T42, T43), cons(T42, X87)) → U7_gaa(T6, T42, T43, X87, reverse7_in_ga(T6, cons(T42, T43)))
U7_gaa(T6, T42, T43, X87, reverse7_out_ga(T6, cons(T42, T43))) → U8_gaa(T6, T42, T43, X87, p6_in_aaa(T43, X86, X87))
p6_in_aaa(T6, X19, X21) → U5_aaa(T6, X19, X21, reverse7_in_aa(T6, X19))
reverse7_in_aa(nil, nil) → reverse7_out_aa(nil, nil)
reverse7_in_aa(cons(T12, nil), cons(T12, nil)) → reverse7_out_aa(cons(T12, nil), cons(T12, nil))
reverse7_in_aa(cons(T17, T18), X41) → U1_aa(T17, T18, X41, reverse7_in_aa(T18, X40))
reverse7_in_aa(cons(T17, T18), X41) → U2_aa(T17, T18, X41, reverse7_in_aa(T18, T19))
U2_aa(T17, T18, X41, reverse7_out_aa(T18, T19)) → U3_aa(T17, T18, X41, append23_in_aaa(T19, T17, X41))
U3_aa(T17, T18, X41, append23_out_aaa(T19, T17, X41)) → reverse7_out_aa(cons(T17, T18), X41)
U1_aa(T17, T18, X41, reverse7_out_aa(T18, X40)) → reverse7_out_aa(cons(T17, T18), X41)
U5_aaa(T6, X19, X21, reverse7_out_aa(T6, X19)) → p6_out_aaa(T6, X19, X21)
p6_in_aaa(T6, nil, nil) → U6_aaa(T6, reverse7_in_ag(T6, nil))
reverse7_in_ag(nil, nil) → reverse7_out_ag(nil, nil)
reverse7_in_ag(cons(T12, nil), cons(T12, nil)) → reverse7_out_ag(cons(T12, nil), cons(T12, nil))
reverse7_in_ag(cons(T17, T18), X41) → U1_ag(T17, T18, X41, reverse7_in_aa(T18, X40))
U1_ag(T17, T18, X41, reverse7_out_aa(T18, X40)) → reverse7_out_ag(cons(T17, T18), X41)
reverse7_in_ag(cons(T17, T18), X41) → U2_ag(T17, T18, X41, reverse7_in_aa(T18, T19))
U2_ag(T17, T18, X41, reverse7_out_aa(T18, T19)) → U3_ag(T17, T18, X41, append23_in_aag(T19, T17, X41))
U3_ag(T17, T18, X41, append23_out_aag(T19, T17, X41)) → reverse7_out_ag(cons(T17, T18), X41)
U6_aaa(T6, reverse7_out_ag(T6, nil)) → p6_out_aaa(T6, nil, nil)
p6_in_aaa(T6, cons(T42, T43), cons(T42, X87)) → U7_aaa(T6, T42, T43, X87, reverse7_in_aa(T6, cons(T42, T43)))
U7_aaa(T6, T42, T43, X87, reverse7_out_aa(T6, cons(T42, T43))) → U8_aaa(T6, T42, T43, X87, p6_in_aaa(T43, X86, X87))
U8_aaa(T6, T42, T43, X87, p6_out_aaa(T43, X86, X87)) → p6_out_aaa(T6, cons(T42, T43), cons(T42, X87))
U8_gaa(T6, T42, T43, X87, p6_out_aaa(T43, X86, X87)) → p6_out_gaa(T6, cons(T42, T43), cons(T42, X87))
U9_g(T6, p6_out_gaa(T6, X19, X21)) → query1_out_g(T6)
REVERSE7_IN_GA(cons(T17, T18), X41) → REVERSE7_IN_GA(T18, X40)
REVERSE7_IN_GA(cons(T18)) → REVERSE7_IN_GA(T18)
From the DPs we obtained the following set of size-change graphs: