0 Prolog
↳1 PrologToPrologProblemTransformerProof (⇐)
↳2 Prolog
↳3 PrologToPiTRSProof (⇐)
↳4 PiTRS
↳5 DependencyPairsProof (⇔)
↳6 PiDP
↳7 DependencyGraphProof (⇔)
↳8 AND
↳9 PiDP
↳10 UsableRulesProof (⇔)
↳11 PiDP
↳12 PiDPToQDPProof (⇐)
↳13 QDP
↳14 NonTerminationProof (⇔)
↳15 NO
↳16 PiDP
↳17 UsableRulesProof (⇔)
↳18 PiDP
↳19 PiDPToQDPProof (⇐)
↳20 QDP
↳21 QDPSizeChangeProof (⇔)
↳22 YES
↳23 PiDP
↳24 UsableRulesProof (⇔)
↳25 PiDP
↳26 PiDPToQDPProof (⇐)
↳27 QDP
↳28 MRRProof (⇔)
↳29 QDP
↳30 PisEmptyProof (⇔)
↳31 YES
↳32 PiDP
↳33 UsableRulesProof (⇔)
↳34 PiDP
↳35 PiDPToQDPProof (⇐)
↳36 QDP
↳37 MRRProof (⇔)
↳38 QDP
↳39 PisEmptyProof (⇔)
↳40 YES
↳41 PrologToPiTRSProof (⇐)
↳42 PiTRS
↳43 DependencyPairsProof (⇔)
↳44 PiDP
↳45 DependencyGraphProof (⇔)
↳46 AND
↳47 PiDP
↳48 UsableRulesProof (⇔)
↳49 PiDP
↳50 PiDPToQDPProof (⇐)
↳51 QDP
↳52 NonTerminationProof (⇔)
↳53 NO
↳54 PiDP
↳55 UsableRulesProof (⇔)
↳56 PiDP
↳57 PiDPToQDPProof (⇐)
↳58 QDP
↳59 QDPSizeChangeProof (⇔)
↳60 YES
↳61 PiDP
↳62 UsableRulesProof (⇔)
↳63 PiDP
↳64 PiDPToQDPProof (⇐)
↳65 QDP
↳66 QDPOrderProof (⇔)
↳67 QDP
↳68 DependencyGraphProof (⇔)
↳69 TRUE
↳70 PiDP
↳71 UsableRulesProof (⇔)
↳72 PiDP
↳73 PiDPToQDPProof (⇐)
↳74 QDP
↳75 QDPOrderProof (⇔)
↳76 QDP
↳77 DependencyGraphProof (⇔)
↳78 TRUE
palindrome1_in_g([]) → palindrome1_out_g([])
palindrome1_in_g(.(T21, .(T22, T23))) → U7_g(T21, T22, T23, last24_in_agaa(T22, T23, X75, X73))
last24_in_agaa(T34, [], T34, []) → last24_out_agaa(T34, [], T34, [])
last24_in_agaa(T41, T42, X113, .(T41, X114)) → U2_agaa(T41, T42, X113, X114, last32_in_gaa(T42, X113, X114))
last32_in_gaa(.(T49, []), T49, []) → last32_out_gaa(.(T49, []), T49, [])
last32_in_gaa(.(T54, T55), X139, .(T54, X140)) → U1_gaa(T54, T55, X139, X140, last32_in_gaa(T55, X139, X140))
U1_gaa(T54, T55, X139, X140, last32_out_gaa(T55, X139, X140)) → last32_out_gaa(.(T54, T55), X139, .(T54, X140))
U2_agaa(T41, T42, X113, X114, last32_out_gaa(T42, X113, X114)) → last24_out_agaa(T41, T42, X113, .(T41, X114))
U7_g(T21, T22, T23, last24_out_agaa(T22, T23, X75, X73)) → palindrome1_out_g(.(T21, .(T22, T23)))
palindrome1_in_g(.(T21, .(T22, T23))) → U8_g(T21, T22, T23, last24_in_agaa(T22, T23, T26, T27))
U8_g(T21, T22, T23, last24_out_agaa(T22, T23, T26, T27)) → U9_g(T21, T22, T23, halves41_in_gaaa(T27, X74, X76, X77))
halves41_in_gaaa([], [], [], even) → halves41_out_gaaa([], [], [], even)
halves41_in_gaaa(.(T65, []), .(T65, []), [], odd) → halves41_out_gaaa(.(T65, []), .(T65, []), [], odd)
halves41_in_gaaa(.(T72, .(T73, T74)), .(T72, X184), .(X185, X186), X187) → U3_gaaa(T72, T73, T74, X184, X185, X186, X187, last24_in_agaa(T73, T74, X185, X183))
U3_gaaa(T72, T73, T74, X184, X185, X186, X187, last24_out_agaa(T73, T74, X185, X183)) → halves41_out_gaaa(.(T72, .(T73, T74)), .(T72, X184), .(X185, X186), X187)
halves41_in_gaaa(.(T72, .(T73, T74)), .(T72, X184), .(T77, X186), X187) → U4_gaaa(T72, T73, T74, X184, T77, X186, X187, last24_in_agaa(T73, T74, T77, T78))
U4_gaaa(T72, T73, T74, X184, T77, X186, X187, last24_out_agaa(T73, T74, T77, T78)) → U5_gaaa(T72, T73, T74, X184, T77, X186, X187, halves41_in_gaaa(T78, X184, X186, X187))
U5_gaaa(T72, T73, T74, X184, T77, X186, X187, halves41_out_gaaa(T78, X184, X186, X187)) → halves41_out_gaaa(.(T72, .(T73, T74)), .(T72, X184), .(T77, X186), X187)
U9_g(T21, T22, T23, halves41_out_gaaa(T27, X74, X76, X77)) → palindrome1_out_g(.(T21, .(T22, T23)))
palindrome1_in_g(.(T88, .(T22, T23))) → U10_g(T88, T22, T23, last24_in_agaa(T22, T23, T88, T27))
U10_g(T88, T22, T23, last24_out_agaa(T22, T23, T88, T27)) → U11_g(T88, T22, T23, halves41_in_gaag(T27, T89, T89, even))
halves41_in_gaag([], [], [], even) → halves41_out_gaag([], [], [], even)
halves41_in_gaag(.(T65, []), .(T65, []), [], odd) → halves41_out_gaag(.(T65, []), .(T65, []), [], odd)
halves41_in_gaag(.(T72, .(T73, T74)), .(T72, X184), .(X185, X186), X187) → U3_gaag(T72, T73, T74, X184, X185, X186, X187, last24_in_agaa(T73, T74, X185, X183))
U3_gaag(T72, T73, T74, X184, X185, X186, X187, last24_out_agaa(T73, T74, X185, X183)) → halves41_out_gaag(.(T72, .(T73, T74)), .(T72, X184), .(X185, X186), X187)
halves41_in_gaag(.(T72, .(T73, T74)), .(T72, X184), .(T77, X186), X187) → U4_gaag(T72, T73, T74, X184, T77, X186, X187, last24_in_agaa(T73, T74, T77, T78))
U4_gaag(T72, T73, T74, X184, T77, X186, X187, last24_out_agaa(T73, T74, T77, T78)) → U5_gaag(T72, T73, T74, X184, T77, X186, X187, halves41_in_gaag(T78, X184, X186, X187))
U5_gaag(T72, T73, T74, X184, T77, X186, X187, halves41_out_gaag(T78, X184, X186, X187)) → halves41_out_gaag(.(T72, .(T73, T74)), .(T72, X184), .(T77, X186), X187)
U11_g(T88, T22, T23, halves41_out_gaag(T27, T89, T89, even)) → palindrome1_out_g(.(T88, .(T22, T23)))
palindrome1_in_g(T92) → U12_g(T92, halves41_in_gaaa(T92, X214, X215, X216))
U12_g(T92, halves41_out_gaaa(T92, X214, X215, X216)) → palindrome1_out_g(T92)
palindrome1_in_g(T92) → U13_g(T92, halves41_in_gaag(T92, T93, T94, odd))
U13_g(T92, halves41_out_gaag(T92, T93, T94, odd)) → U14_g(T92, last70_in_aaa(T93, X217, T94))
last70_in_aaa(.(T107, []), T107, []) → last70_out_aaa(.(T107, []), T107, [])
last70_in_aaa(.(T114, T115), X246, .(T114, T116)) → U6_aaa(T114, T115, X246, T116, last70_in_aaa(T115, X246, T116))
U6_aaa(T114, T115, X246, T116, last70_out_aaa(T115, X246, T116)) → last70_out_aaa(.(T114, T115), X246, .(T114, T116))
U14_g(T92, last70_out_aaa(T93, X217, T94)) → palindrome1_out_g(T92)
Infinitary Constructor Rewriting Termination of PiTRS implies Termination of Prolog
palindrome1_in_g([]) → palindrome1_out_g([])
palindrome1_in_g(.(T21, .(T22, T23))) → U7_g(T21, T22, T23, last24_in_agaa(T22, T23, X75, X73))
last24_in_agaa(T34, [], T34, []) → last24_out_agaa(T34, [], T34, [])
last24_in_agaa(T41, T42, X113, .(T41, X114)) → U2_agaa(T41, T42, X113, X114, last32_in_gaa(T42, X113, X114))
last32_in_gaa(.(T49, []), T49, []) → last32_out_gaa(.(T49, []), T49, [])
last32_in_gaa(.(T54, T55), X139, .(T54, X140)) → U1_gaa(T54, T55, X139, X140, last32_in_gaa(T55, X139, X140))
U1_gaa(T54, T55, X139, X140, last32_out_gaa(T55, X139, X140)) → last32_out_gaa(.(T54, T55), X139, .(T54, X140))
U2_agaa(T41, T42, X113, X114, last32_out_gaa(T42, X113, X114)) → last24_out_agaa(T41, T42, X113, .(T41, X114))
U7_g(T21, T22, T23, last24_out_agaa(T22, T23, X75, X73)) → palindrome1_out_g(.(T21, .(T22, T23)))
palindrome1_in_g(.(T21, .(T22, T23))) → U8_g(T21, T22, T23, last24_in_agaa(T22, T23, T26, T27))
U8_g(T21, T22, T23, last24_out_agaa(T22, T23, T26, T27)) → U9_g(T21, T22, T23, halves41_in_gaaa(T27, X74, X76, X77))
halves41_in_gaaa([], [], [], even) → halves41_out_gaaa([], [], [], even)
halves41_in_gaaa(.(T65, []), .(T65, []), [], odd) → halves41_out_gaaa(.(T65, []), .(T65, []), [], odd)
halves41_in_gaaa(.(T72, .(T73, T74)), .(T72, X184), .(X185, X186), X187) → U3_gaaa(T72, T73, T74, X184, X185, X186, X187, last24_in_agaa(T73, T74, X185, X183))
U3_gaaa(T72, T73, T74, X184, X185, X186, X187, last24_out_agaa(T73, T74, X185, X183)) → halves41_out_gaaa(.(T72, .(T73, T74)), .(T72, X184), .(X185, X186), X187)
halves41_in_gaaa(.(T72, .(T73, T74)), .(T72, X184), .(T77, X186), X187) → U4_gaaa(T72, T73, T74, X184, T77, X186, X187, last24_in_agaa(T73, T74, T77, T78))
U4_gaaa(T72, T73, T74, X184, T77, X186, X187, last24_out_agaa(T73, T74, T77, T78)) → U5_gaaa(T72, T73, T74, X184, T77, X186, X187, halves41_in_gaaa(T78, X184, X186, X187))
U5_gaaa(T72, T73, T74, X184, T77, X186, X187, halves41_out_gaaa(T78, X184, X186, X187)) → halves41_out_gaaa(.(T72, .(T73, T74)), .(T72, X184), .(T77, X186), X187)
U9_g(T21, T22, T23, halves41_out_gaaa(T27, X74, X76, X77)) → palindrome1_out_g(.(T21, .(T22, T23)))
palindrome1_in_g(.(T88, .(T22, T23))) → U10_g(T88, T22, T23, last24_in_agaa(T22, T23, T88, T27))
U10_g(T88, T22, T23, last24_out_agaa(T22, T23, T88, T27)) → U11_g(T88, T22, T23, halves41_in_gaag(T27, T89, T89, even))
halves41_in_gaag([], [], [], even) → halves41_out_gaag([], [], [], even)
halves41_in_gaag(.(T65, []), .(T65, []), [], odd) → halves41_out_gaag(.(T65, []), .(T65, []), [], odd)
halves41_in_gaag(.(T72, .(T73, T74)), .(T72, X184), .(X185, X186), X187) → U3_gaag(T72, T73, T74, X184, X185, X186, X187, last24_in_agaa(T73, T74, X185, X183))
U3_gaag(T72, T73, T74, X184, X185, X186, X187, last24_out_agaa(T73, T74, X185, X183)) → halves41_out_gaag(.(T72, .(T73, T74)), .(T72, X184), .(X185, X186), X187)
halves41_in_gaag(.(T72, .(T73, T74)), .(T72, X184), .(T77, X186), X187) → U4_gaag(T72, T73, T74, X184, T77, X186, X187, last24_in_agaa(T73, T74, T77, T78))
U4_gaag(T72, T73, T74, X184, T77, X186, X187, last24_out_agaa(T73, T74, T77, T78)) → U5_gaag(T72, T73, T74, X184, T77, X186, X187, halves41_in_gaag(T78, X184, X186, X187))
U5_gaag(T72, T73, T74, X184, T77, X186, X187, halves41_out_gaag(T78, X184, X186, X187)) → halves41_out_gaag(.(T72, .(T73, T74)), .(T72, X184), .(T77, X186), X187)
U11_g(T88, T22, T23, halves41_out_gaag(T27, T89, T89, even)) → palindrome1_out_g(.(T88, .(T22, T23)))
palindrome1_in_g(T92) → U12_g(T92, halves41_in_gaaa(T92, X214, X215, X216))
U12_g(T92, halves41_out_gaaa(T92, X214, X215, X216)) → palindrome1_out_g(T92)
palindrome1_in_g(T92) → U13_g(T92, halves41_in_gaag(T92, T93, T94, odd))
U13_g(T92, halves41_out_gaag(T92, T93, T94, odd)) → U14_g(T92, last70_in_aaa(T93, X217, T94))
last70_in_aaa(.(T107, []), T107, []) → last70_out_aaa(.(T107, []), T107, [])
last70_in_aaa(.(T114, T115), X246, .(T114, T116)) → U6_aaa(T114, T115, X246, T116, last70_in_aaa(T115, X246, T116))
U6_aaa(T114, T115, X246, T116, last70_out_aaa(T115, X246, T116)) → last70_out_aaa(.(T114, T115), X246, .(T114, T116))
U14_g(T92, last70_out_aaa(T93, X217, T94)) → palindrome1_out_g(T92)
PALINDROME1_IN_G(.(T21, .(T22, T23))) → U7_G(T21, T22, T23, last24_in_agaa(T22, T23, X75, X73))
PALINDROME1_IN_G(.(T21, .(T22, T23))) → LAST24_IN_AGAA(T22, T23, X75, X73)
LAST24_IN_AGAA(T41, T42, X113, .(T41, X114)) → U2_AGAA(T41, T42, X113, X114, last32_in_gaa(T42, X113, X114))
LAST24_IN_AGAA(T41, T42, X113, .(T41, X114)) → LAST32_IN_GAA(T42, X113, X114)
LAST32_IN_GAA(.(T54, T55), X139, .(T54, X140)) → U1_GAA(T54, T55, X139, X140, last32_in_gaa(T55, X139, X140))
LAST32_IN_GAA(.(T54, T55), X139, .(T54, X140)) → LAST32_IN_GAA(T55, X139, X140)
PALINDROME1_IN_G(.(T21, .(T22, T23))) → U8_G(T21, T22, T23, last24_in_agaa(T22, T23, T26, T27))
U8_G(T21, T22, T23, last24_out_agaa(T22, T23, T26, T27)) → U9_G(T21, T22, T23, halves41_in_gaaa(T27, X74, X76, X77))
U8_G(T21, T22, T23, last24_out_agaa(T22, T23, T26, T27)) → HALVES41_IN_GAAA(T27, X74, X76, X77)
HALVES41_IN_GAAA(.(T72, .(T73, T74)), .(T72, X184), .(X185, X186), X187) → U3_GAAA(T72, T73, T74, X184, X185, X186, X187, last24_in_agaa(T73, T74, X185, X183))
HALVES41_IN_GAAA(.(T72, .(T73, T74)), .(T72, X184), .(X185, X186), X187) → LAST24_IN_AGAA(T73, T74, X185, X183)
HALVES41_IN_GAAA(.(T72, .(T73, T74)), .(T72, X184), .(T77, X186), X187) → U4_GAAA(T72, T73, T74, X184, T77, X186, X187, last24_in_agaa(T73, T74, T77, T78))
U4_GAAA(T72, T73, T74, X184, T77, X186, X187, last24_out_agaa(T73, T74, T77, T78)) → U5_GAAA(T72, T73, T74, X184, T77, X186, X187, halves41_in_gaaa(T78, X184, X186, X187))
U4_GAAA(T72, T73, T74, X184, T77, X186, X187, last24_out_agaa(T73, T74, T77, T78)) → HALVES41_IN_GAAA(T78, X184, X186, X187)
PALINDROME1_IN_G(.(T88, .(T22, T23))) → U10_G(T88, T22, T23, last24_in_agaa(T22, T23, T88, T27))
PALINDROME1_IN_G(.(T88, .(T22, T23))) → LAST24_IN_AGAA(T22, T23, T88, T27)
U10_G(T88, T22, T23, last24_out_agaa(T22, T23, T88, T27)) → U11_G(T88, T22, T23, halves41_in_gaag(T27, T89, T89, even))
U10_G(T88, T22, T23, last24_out_agaa(T22, T23, T88, T27)) → HALVES41_IN_GAAG(T27, T89, T89, even)
HALVES41_IN_GAAG(.(T72, .(T73, T74)), .(T72, X184), .(X185, X186), X187) → U3_GAAG(T72, T73, T74, X184, X185, X186, X187, last24_in_agaa(T73, T74, X185, X183))
HALVES41_IN_GAAG(.(T72, .(T73, T74)), .(T72, X184), .(X185, X186), X187) → LAST24_IN_AGAA(T73, T74, X185, X183)
HALVES41_IN_GAAG(.(T72, .(T73, T74)), .(T72, X184), .(T77, X186), X187) → U4_GAAG(T72, T73, T74, X184, T77, X186, X187, last24_in_agaa(T73, T74, T77, T78))
U4_GAAG(T72, T73, T74, X184, T77, X186, X187, last24_out_agaa(T73, T74, T77, T78)) → U5_GAAG(T72, T73, T74, X184, T77, X186, X187, halves41_in_gaag(T78, X184, X186, X187))
U4_GAAG(T72, T73, T74, X184, T77, X186, X187, last24_out_agaa(T73, T74, T77, T78)) → HALVES41_IN_GAAG(T78, X184, X186, X187)
PALINDROME1_IN_G(T92) → U12_G(T92, halves41_in_gaaa(T92, X214, X215, X216))
PALINDROME1_IN_G(T92) → HALVES41_IN_GAAA(T92, X214, X215, X216)
PALINDROME1_IN_G(T92) → U13_G(T92, halves41_in_gaag(T92, T93, T94, odd))
PALINDROME1_IN_G(T92) → HALVES41_IN_GAAG(T92, T93, T94, odd)
U13_G(T92, halves41_out_gaag(T92, T93, T94, odd)) → U14_G(T92, last70_in_aaa(T93, X217, T94))
U13_G(T92, halves41_out_gaag(T92, T93, T94, odd)) → LAST70_IN_AAA(T93, X217, T94)
LAST70_IN_AAA(.(T114, T115), X246, .(T114, T116)) → U6_AAA(T114, T115, X246, T116, last70_in_aaa(T115, X246, T116))
LAST70_IN_AAA(.(T114, T115), X246, .(T114, T116)) → LAST70_IN_AAA(T115, X246, T116)
palindrome1_in_g([]) → palindrome1_out_g([])
palindrome1_in_g(.(T21, .(T22, T23))) → U7_g(T21, T22, T23, last24_in_agaa(T22, T23, X75, X73))
last24_in_agaa(T34, [], T34, []) → last24_out_agaa(T34, [], T34, [])
last24_in_agaa(T41, T42, X113, .(T41, X114)) → U2_agaa(T41, T42, X113, X114, last32_in_gaa(T42, X113, X114))
last32_in_gaa(.(T49, []), T49, []) → last32_out_gaa(.(T49, []), T49, [])
last32_in_gaa(.(T54, T55), X139, .(T54, X140)) → U1_gaa(T54, T55, X139, X140, last32_in_gaa(T55, X139, X140))
U1_gaa(T54, T55, X139, X140, last32_out_gaa(T55, X139, X140)) → last32_out_gaa(.(T54, T55), X139, .(T54, X140))
U2_agaa(T41, T42, X113, X114, last32_out_gaa(T42, X113, X114)) → last24_out_agaa(T41, T42, X113, .(T41, X114))
U7_g(T21, T22, T23, last24_out_agaa(T22, T23, X75, X73)) → palindrome1_out_g(.(T21, .(T22, T23)))
palindrome1_in_g(.(T21, .(T22, T23))) → U8_g(T21, T22, T23, last24_in_agaa(T22, T23, T26, T27))
U8_g(T21, T22, T23, last24_out_agaa(T22, T23, T26, T27)) → U9_g(T21, T22, T23, halves41_in_gaaa(T27, X74, X76, X77))
halves41_in_gaaa([], [], [], even) → halves41_out_gaaa([], [], [], even)
halves41_in_gaaa(.(T65, []), .(T65, []), [], odd) → halves41_out_gaaa(.(T65, []), .(T65, []), [], odd)
halves41_in_gaaa(.(T72, .(T73, T74)), .(T72, X184), .(X185, X186), X187) → U3_gaaa(T72, T73, T74, X184, X185, X186, X187, last24_in_agaa(T73, T74, X185, X183))
U3_gaaa(T72, T73, T74, X184, X185, X186, X187, last24_out_agaa(T73, T74, X185, X183)) → halves41_out_gaaa(.(T72, .(T73, T74)), .(T72, X184), .(X185, X186), X187)
halves41_in_gaaa(.(T72, .(T73, T74)), .(T72, X184), .(T77, X186), X187) → U4_gaaa(T72, T73, T74, X184, T77, X186, X187, last24_in_agaa(T73, T74, T77, T78))
U4_gaaa(T72, T73, T74, X184, T77, X186, X187, last24_out_agaa(T73, T74, T77, T78)) → U5_gaaa(T72, T73, T74, X184, T77, X186, X187, halves41_in_gaaa(T78, X184, X186, X187))
U5_gaaa(T72, T73, T74, X184, T77, X186, X187, halves41_out_gaaa(T78, X184, X186, X187)) → halves41_out_gaaa(.(T72, .(T73, T74)), .(T72, X184), .(T77, X186), X187)
U9_g(T21, T22, T23, halves41_out_gaaa(T27, X74, X76, X77)) → palindrome1_out_g(.(T21, .(T22, T23)))
palindrome1_in_g(.(T88, .(T22, T23))) → U10_g(T88, T22, T23, last24_in_agaa(T22, T23, T88, T27))
U10_g(T88, T22, T23, last24_out_agaa(T22, T23, T88, T27)) → U11_g(T88, T22, T23, halves41_in_gaag(T27, T89, T89, even))
halves41_in_gaag([], [], [], even) → halves41_out_gaag([], [], [], even)
halves41_in_gaag(.(T65, []), .(T65, []), [], odd) → halves41_out_gaag(.(T65, []), .(T65, []), [], odd)
halves41_in_gaag(.(T72, .(T73, T74)), .(T72, X184), .(X185, X186), X187) → U3_gaag(T72, T73, T74, X184, X185, X186, X187, last24_in_agaa(T73, T74, X185, X183))
U3_gaag(T72, T73, T74, X184, X185, X186, X187, last24_out_agaa(T73, T74, X185, X183)) → halves41_out_gaag(.(T72, .(T73, T74)), .(T72, X184), .(X185, X186), X187)
halves41_in_gaag(.(T72, .(T73, T74)), .(T72, X184), .(T77, X186), X187) → U4_gaag(T72, T73, T74, X184, T77, X186, X187, last24_in_agaa(T73, T74, T77, T78))
U4_gaag(T72, T73, T74, X184, T77, X186, X187, last24_out_agaa(T73, T74, T77, T78)) → U5_gaag(T72, T73, T74, X184, T77, X186, X187, halves41_in_gaag(T78, X184, X186, X187))
U5_gaag(T72, T73, T74, X184, T77, X186, X187, halves41_out_gaag(T78, X184, X186, X187)) → halves41_out_gaag(.(T72, .(T73, T74)), .(T72, X184), .(T77, X186), X187)
U11_g(T88, T22, T23, halves41_out_gaag(T27, T89, T89, even)) → palindrome1_out_g(.(T88, .(T22, T23)))
palindrome1_in_g(T92) → U12_g(T92, halves41_in_gaaa(T92, X214, X215, X216))
U12_g(T92, halves41_out_gaaa(T92, X214, X215, X216)) → palindrome1_out_g(T92)
palindrome1_in_g(T92) → U13_g(T92, halves41_in_gaag(T92, T93, T94, odd))
U13_g(T92, halves41_out_gaag(T92, T93, T94, odd)) → U14_g(T92, last70_in_aaa(T93, X217, T94))
last70_in_aaa(.(T107, []), T107, []) → last70_out_aaa(.(T107, []), T107, [])
last70_in_aaa(.(T114, T115), X246, .(T114, T116)) → U6_aaa(T114, T115, X246, T116, last70_in_aaa(T115, X246, T116))
U6_aaa(T114, T115, X246, T116, last70_out_aaa(T115, X246, T116)) → last70_out_aaa(.(T114, T115), X246, .(T114, T116))
U14_g(T92, last70_out_aaa(T93, X217, T94)) → palindrome1_out_g(T92)
PALINDROME1_IN_G(.(T21, .(T22, T23))) → U7_G(T21, T22, T23, last24_in_agaa(T22, T23, X75, X73))
PALINDROME1_IN_G(.(T21, .(T22, T23))) → LAST24_IN_AGAA(T22, T23, X75, X73)
LAST24_IN_AGAA(T41, T42, X113, .(T41, X114)) → U2_AGAA(T41, T42, X113, X114, last32_in_gaa(T42, X113, X114))
LAST24_IN_AGAA(T41, T42, X113, .(T41, X114)) → LAST32_IN_GAA(T42, X113, X114)
LAST32_IN_GAA(.(T54, T55), X139, .(T54, X140)) → U1_GAA(T54, T55, X139, X140, last32_in_gaa(T55, X139, X140))
LAST32_IN_GAA(.(T54, T55), X139, .(T54, X140)) → LAST32_IN_GAA(T55, X139, X140)
PALINDROME1_IN_G(.(T21, .(T22, T23))) → U8_G(T21, T22, T23, last24_in_agaa(T22, T23, T26, T27))
U8_G(T21, T22, T23, last24_out_agaa(T22, T23, T26, T27)) → U9_G(T21, T22, T23, halves41_in_gaaa(T27, X74, X76, X77))
U8_G(T21, T22, T23, last24_out_agaa(T22, T23, T26, T27)) → HALVES41_IN_GAAA(T27, X74, X76, X77)
HALVES41_IN_GAAA(.(T72, .(T73, T74)), .(T72, X184), .(X185, X186), X187) → U3_GAAA(T72, T73, T74, X184, X185, X186, X187, last24_in_agaa(T73, T74, X185, X183))
HALVES41_IN_GAAA(.(T72, .(T73, T74)), .(T72, X184), .(X185, X186), X187) → LAST24_IN_AGAA(T73, T74, X185, X183)
HALVES41_IN_GAAA(.(T72, .(T73, T74)), .(T72, X184), .(T77, X186), X187) → U4_GAAA(T72, T73, T74, X184, T77, X186, X187, last24_in_agaa(T73, T74, T77, T78))
U4_GAAA(T72, T73, T74, X184, T77, X186, X187, last24_out_agaa(T73, T74, T77, T78)) → U5_GAAA(T72, T73, T74, X184, T77, X186, X187, halves41_in_gaaa(T78, X184, X186, X187))
U4_GAAA(T72, T73, T74, X184, T77, X186, X187, last24_out_agaa(T73, T74, T77, T78)) → HALVES41_IN_GAAA(T78, X184, X186, X187)
PALINDROME1_IN_G(.(T88, .(T22, T23))) → U10_G(T88, T22, T23, last24_in_agaa(T22, T23, T88, T27))
PALINDROME1_IN_G(.(T88, .(T22, T23))) → LAST24_IN_AGAA(T22, T23, T88, T27)
U10_G(T88, T22, T23, last24_out_agaa(T22, T23, T88, T27)) → U11_G(T88, T22, T23, halves41_in_gaag(T27, T89, T89, even))
U10_G(T88, T22, T23, last24_out_agaa(T22, T23, T88, T27)) → HALVES41_IN_GAAG(T27, T89, T89, even)
HALVES41_IN_GAAG(.(T72, .(T73, T74)), .(T72, X184), .(X185, X186), X187) → U3_GAAG(T72, T73, T74, X184, X185, X186, X187, last24_in_agaa(T73, T74, X185, X183))
HALVES41_IN_GAAG(.(T72, .(T73, T74)), .(T72, X184), .(X185, X186), X187) → LAST24_IN_AGAA(T73, T74, X185, X183)
HALVES41_IN_GAAG(.(T72, .(T73, T74)), .(T72, X184), .(T77, X186), X187) → U4_GAAG(T72, T73, T74, X184, T77, X186, X187, last24_in_agaa(T73, T74, T77, T78))
U4_GAAG(T72, T73, T74, X184, T77, X186, X187, last24_out_agaa(T73, T74, T77, T78)) → U5_GAAG(T72, T73, T74, X184, T77, X186, X187, halves41_in_gaag(T78, X184, X186, X187))
U4_GAAG(T72, T73, T74, X184, T77, X186, X187, last24_out_agaa(T73, T74, T77, T78)) → HALVES41_IN_GAAG(T78, X184, X186, X187)
PALINDROME1_IN_G(T92) → U12_G(T92, halves41_in_gaaa(T92, X214, X215, X216))
PALINDROME1_IN_G(T92) → HALVES41_IN_GAAA(T92, X214, X215, X216)
PALINDROME1_IN_G(T92) → U13_G(T92, halves41_in_gaag(T92, T93, T94, odd))
PALINDROME1_IN_G(T92) → HALVES41_IN_GAAG(T92, T93, T94, odd)
U13_G(T92, halves41_out_gaag(T92, T93, T94, odd)) → U14_G(T92, last70_in_aaa(T93, X217, T94))
U13_G(T92, halves41_out_gaag(T92, T93, T94, odd)) → LAST70_IN_AAA(T93, X217, T94)
LAST70_IN_AAA(.(T114, T115), X246, .(T114, T116)) → U6_AAA(T114, T115, X246, T116, last70_in_aaa(T115, X246, T116))
LAST70_IN_AAA(.(T114, T115), X246, .(T114, T116)) → LAST70_IN_AAA(T115, X246, T116)
palindrome1_in_g([]) → palindrome1_out_g([])
palindrome1_in_g(.(T21, .(T22, T23))) → U7_g(T21, T22, T23, last24_in_agaa(T22, T23, X75, X73))
last24_in_agaa(T34, [], T34, []) → last24_out_agaa(T34, [], T34, [])
last24_in_agaa(T41, T42, X113, .(T41, X114)) → U2_agaa(T41, T42, X113, X114, last32_in_gaa(T42, X113, X114))
last32_in_gaa(.(T49, []), T49, []) → last32_out_gaa(.(T49, []), T49, [])
last32_in_gaa(.(T54, T55), X139, .(T54, X140)) → U1_gaa(T54, T55, X139, X140, last32_in_gaa(T55, X139, X140))
U1_gaa(T54, T55, X139, X140, last32_out_gaa(T55, X139, X140)) → last32_out_gaa(.(T54, T55), X139, .(T54, X140))
U2_agaa(T41, T42, X113, X114, last32_out_gaa(T42, X113, X114)) → last24_out_agaa(T41, T42, X113, .(T41, X114))
U7_g(T21, T22, T23, last24_out_agaa(T22, T23, X75, X73)) → palindrome1_out_g(.(T21, .(T22, T23)))
palindrome1_in_g(.(T21, .(T22, T23))) → U8_g(T21, T22, T23, last24_in_agaa(T22, T23, T26, T27))
U8_g(T21, T22, T23, last24_out_agaa(T22, T23, T26, T27)) → U9_g(T21, T22, T23, halves41_in_gaaa(T27, X74, X76, X77))
halves41_in_gaaa([], [], [], even) → halves41_out_gaaa([], [], [], even)
halves41_in_gaaa(.(T65, []), .(T65, []), [], odd) → halves41_out_gaaa(.(T65, []), .(T65, []), [], odd)
halves41_in_gaaa(.(T72, .(T73, T74)), .(T72, X184), .(X185, X186), X187) → U3_gaaa(T72, T73, T74, X184, X185, X186, X187, last24_in_agaa(T73, T74, X185, X183))
U3_gaaa(T72, T73, T74, X184, X185, X186, X187, last24_out_agaa(T73, T74, X185, X183)) → halves41_out_gaaa(.(T72, .(T73, T74)), .(T72, X184), .(X185, X186), X187)
halves41_in_gaaa(.(T72, .(T73, T74)), .(T72, X184), .(T77, X186), X187) → U4_gaaa(T72, T73, T74, X184, T77, X186, X187, last24_in_agaa(T73, T74, T77, T78))
U4_gaaa(T72, T73, T74, X184, T77, X186, X187, last24_out_agaa(T73, T74, T77, T78)) → U5_gaaa(T72, T73, T74, X184, T77, X186, X187, halves41_in_gaaa(T78, X184, X186, X187))
U5_gaaa(T72, T73, T74, X184, T77, X186, X187, halves41_out_gaaa(T78, X184, X186, X187)) → halves41_out_gaaa(.(T72, .(T73, T74)), .(T72, X184), .(T77, X186), X187)
U9_g(T21, T22, T23, halves41_out_gaaa(T27, X74, X76, X77)) → palindrome1_out_g(.(T21, .(T22, T23)))
palindrome1_in_g(.(T88, .(T22, T23))) → U10_g(T88, T22, T23, last24_in_agaa(T22, T23, T88, T27))
U10_g(T88, T22, T23, last24_out_agaa(T22, T23, T88, T27)) → U11_g(T88, T22, T23, halves41_in_gaag(T27, T89, T89, even))
halves41_in_gaag([], [], [], even) → halves41_out_gaag([], [], [], even)
halves41_in_gaag(.(T65, []), .(T65, []), [], odd) → halves41_out_gaag(.(T65, []), .(T65, []), [], odd)
halves41_in_gaag(.(T72, .(T73, T74)), .(T72, X184), .(X185, X186), X187) → U3_gaag(T72, T73, T74, X184, X185, X186, X187, last24_in_agaa(T73, T74, X185, X183))
U3_gaag(T72, T73, T74, X184, X185, X186, X187, last24_out_agaa(T73, T74, X185, X183)) → halves41_out_gaag(.(T72, .(T73, T74)), .(T72, X184), .(X185, X186), X187)
halves41_in_gaag(.(T72, .(T73, T74)), .(T72, X184), .(T77, X186), X187) → U4_gaag(T72, T73, T74, X184, T77, X186, X187, last24_in_agaa(T73, T74, T77, T78))
U4_gaag(T72, T73, T74, X184, T77, X186, X187, last24_out_agaa(T73, T74, T77, T78)) → U5_gaag(T72, T73, T74, X184, T77, X186, X187, halves41_in_gaag(T78, X184, X186, X187))
U5_gaag(T72, T73, T74, X184, T77, X186, X187, halves41_out_gaag(T78, X184, X186, X187)) → halves41_out_gaag(.(T72, .(T73, T74)), .(T72, X184), .(T77, X186), X187)
U11_g(T88, T22, T23, halves41_out_gaag(T27, T89, T89, even)) → palindrome1_out_g(.(T88, .(T22, T23)))
palindrome1_in_g(T92) → U12_g(T92, halves41_in_gaaa(T92, X214, X215, X216))
U12_g(T92, halves41_out_gaaa(T92, X214, X215, X216)) → palindrome1_out_g(T92)
palindrome1_in_g(T92) → U13_g(T92, halves41_in_gaag(T92, T93, T94, odd))
U13_g(T92, halves41_out_gaag(T92, T93, T94, odd)) → U14_g(T92, last70_in_aaa(T93, X217, T94))
last70_in_aaa(.(T107, []), T107, []) → last70_out_aaa(.(T107, []), T107, [])
last70_in_aaa(.(T114, T115), X246, .(T114, T116)) → U6_aaa(T114, T115, X246, T116, last70_in_aaa(T115, X246, T116))
U6_aaa(T114, T115, X246, T116, last70_out_aaa(T115, X246, T116)) → last70_out_aaa(.(T114, T115), X246, .(T114, T116))
U14_g(T92, last70_out_aaa(T93, X217, T94)) → palindrome1_out_g(T92)
LAST70_IN_AAA(.(T114, T115), X246, .(T114, T116)) → LAST70_IN_AAA(T115, X246, T116)
palindrome1_in_g([]) → palindrome1_out_g([])
palindrome1_in_g(.(T21, .(T22, T23))) → U7_g(T21, T22, T23, last24_in_agaa(T22, T23, X75, X73))
last24_in_agaa(T34, [], T34, []) → last24_out_agaa(T34, [], T34, [])
last24_in_agaa(T41, T42, X113, .(T41, X114)) → U2_agaa(T41, T42, X113, X114, last32_in_gaa(T42, X113, X114))
last32_in_gaa(.(T49, []), T49, []) → last32_out_gaa(.(T49, []), T49, [])
last32_in_gaa(.(T54, T55), X139, .(T54, X140)) → U1_gaa(T54, T55, X139, X140, last32_in_gaa(T55, X139, X140))
U1_gaa(T54, T55, X139, X140, last32_out_gaa(T55, X139, X140)) → last32_out_gaa(.(T54, T55), X139, .(T54, X140))
U2_agaa(T41, T42, X113, X114, last32_out_gaa(T42, X113, X114)) → last24_out_agaa(T41, T42, X113, .(T41, X114))
U7_g(T21, T22, T23, last24_out_agaa(T22, T23, X75, X73)) → palindrome1_out_g(.(T21, .(T22, T23)))
palindrome1_in_g(.(T21, .(T22, T23))) → U8_g(T21, T22, T23, last24_in_agaa(T22, T23, T26, T27))
U8_g(T21, T22, T23, last24_out_agaa(T22, T23, T26, T27)) → U9_g(T21, T22, T23, halves41_in_gaaa(T27, X74, X76, X77))
halves41_in_gaaa([], [], [], even) → halves41_out_gaaa([], [], [], even)
halves41_in_gaaa(.(T65, []), .(T65, []), [], odd) → halves41_out_gaaa(.(T65, []), .(T65, []), [], odd)
halves41_in_gaaa(.(T72, .(T73, T74)), .(T72, X184), .(X185, X186), X187) → U3_gaaa(T72, T73, T74, X184, X185, X186, X187, last24_in_agaa(T73, T74, X185, X183))
U3_gaaa(T72, T73, T74, X184, X185, X186, X187, last24_out_agaa(T73, T74, X185, X183)) → halves41_out_gaaa(.(T72, .(T73, T74)), .(T72, X184), .(X185, X186), X187)
halves41_in_gaaa(.(T72, .(T73, T74)), .(T72, X184), .(T77, X186), X187) → U4_gaaa(T72, T73, T74, X184, T77, X186, X187, last24_in_agaa(T73, T74, T77, T78))
U4_gaaa(T72, T73, T74, X184, T77, X186, X187, last24_out_agaa(T73, T74, T77, T78)) → U5_gaaa(T72, T73, T74, X184, T77, X186, X187, halves41_in_gaaa(T78, X184, X186, X187))
U5_gaaa(T72, T73, T74, X184, T77, X186, X187, halves41_out_gaaa(T78, X184, X186, X187)) → halves41_out_gaaa(.(T72, .(T73, T74)), .(T72, X184), .(T77, X186), X187)
U9_g(T21, T22, T23, halves41_out_gaaa(T27, X74, X76, X77)) → palindrome1_out_g(.(T21, .(T22, T23)))
palindrome1_in_g(.(T88, .(T22, T23))) → U10_g(T88, T22, T23, last24_in_agaa(T22, T23, T88, T27))
U10_g(T88, T22, T23, last24_out_agaa(T22, T23, T88, T27)) → U11_g(T88, T22, T23, halves41_in_gaag(T27, T89, T89, even))
halves41_in_gaag([], [], [], even) → halves41_out_gaag([], [], [], even)
halves41_in_gaag(.(T65, []), .(T65, []), [], odd) → halves41_out_gaag(.(T65, []), .(T65, []), [], odd)
halves41_in_gaag(.(T72, .(T73, T74)), .(T72, X184), .(X185, X186), X187) → U3_gaag(T72, T73, T74, X184, X185, X186, X187, last24_in_agaa(T73, T74, X185, X183))
U3_gaag(T72, T73, T74, X184, X185, X186, X187, last24_out_agaa(T73, T74, X185, X183)) → halves41_out_gaag(.(T72, .(T73, T74)), .(T72, X184), .(X185, X186), X187)
halves41_in_gaag(.(T72, .(T73, T74)), .(T72, X184), .(T77, X186), X187) → U4_gaag(T72, T73, T74, X184, T77, X186, X187, last24_in_agaa(T73, T74, T77, T78))
U4_gaag(T72, T73, T74, X184, T77, X186, X187, last24_out_agaa(T73, T74, T77, T78)) → U5_gaag(T72, T73, T74, X184, T77, X186, X187, halves41_in_gaag(T78, X184, X186, X187))
U5_gaag(T72, T73, T74, X184, T77, X186, X187, halves41_out_gaag(T78, X184, X186, X187)) → halves41_out_gaag(.(T72, .(T73, T74)), .(T72, X184), .(T77, X186), X187)
U11_g(T88, T22, T23, halves41_out_gaag(T27, T89, T89, even)) → palindrome1_out_g(.(T88, .(T22, T23)))
palindrome1_in_g(T92) → U12_g(T92, halves41_in_gaaa(T92, X214, X215, X216))
U12_g(T92, halves41_out_gaaa(T92, X214, X215, X216)) → palindrome1_out_g(T92)
palindrome1_in_g(T92) → U13_g(T92, halves41_in_gaag(T92, T93, T94, odd))
U13_g(T92, halves41_out_gaag(T92, T93, T94, odd)) → U14_g(T92, last70_in_aaa(T93, X217, T94))
last70_in_aaa(.(T107, []), T107, []) → last70_out_aaa(.(T107, []), T107, [])
last70_in_aaa(.(T114, T115), X246, .(T114, T116)) → U6_aaa(T114, T115, X246, T116, last70_in_aaa(T115, X246, T116))
U6_aaa(T114, T115, X246, T116, last70_out_aaa(T115, X246, T116)) → last70_out_aaa(.(T114, T115), X246, .(T114, T116))
U14_g(T92, last70_out_aaa(T93, X217, T94)) → palindrome1_out_g(T92)
LAST70_IN_AAA(.(T114, T115), X246, .(T114, T116)) → LAST70_IN_AAA(T115, X246, T116)
LAST70_IN_AAA → LAST70_IN_AAA
LAST32_IN_GAA(.(T54, T55), X139, .(T54, X140)) → LAST32_IN_GAA(T55, X139, X140)
palindrome1_in_g([]) → palindrome1_out_g([])
palindrome1_in_g(.(T21, .(T22, T23))) → U7_g(T21, T22, T23, last24_in_agaa(T22, T23, X75, X73))
last24_in_agaa(T34, [], T34, []) → last24_out_agaa(T34, [], T34, [])
last24_in_agaa(T41, T42, X113, .(T41, X114)) → U2_agaa(T41, T42, X113, X114, last32_in_gaa(T42, X113, X114))
last32_in_gaa(.(T49, []), T49, []) → last32_out_gaa(.(T49, []), T49, [])
last32_in_gaa(.(T54, T55), X139, .(T54, X140)) → U1_gaa(T54, T55, X139, X140, last32_in_gaa(T55, X139, X140))
U1_gaa(T54, T55, X139, X140, last32_out_gaa(T55, X139, X140)) → last32_out_gaa(.(T54, T55), X139, .(T54, X140))
U2_agaa(T41, T42, X113, X114, last32_out_gaa(T42, X113, X114)) → last24_out_agaa(T41, T42, X113, .(T41, X114))
U7_g(T21, T22, T23, last24_out_agaa(T22, T23, X75, X73)) → palindrome1_out_g(.(T21, .(T22, T23)))
palindrome1_in_g(.(T21, .(T22, T23))) → U8_g(T21, T22, T23, last24_in_agaa(T22, T23, T26, T27))
U8_g(T21, T22, T23, last24_out_agaa(T22, T23, T26, T27)) → U9_g(T21, T22, T23, halves41_in_gaaa(T27, X74, X76, X77))
halves41_in_gaaa([], [], [], even) → halves41_out_gaaa([], [], [], even)
halves41_in_gaaa(.(T65, []), .(T65, []), [], odd) → halves41_out_gaaa(.(T65, []), .(T65, []), [], odd)
halves41_in_gaaa(.(T72, .(T73, T74)), .(T72, X184), .(X185, X186), X187) → U3_gaaa(T72, T73, T74, X184, X185, X186, X187, last24_in_agaa(T73, T74, X185, X183))
U3_gaaa(T72, T73, T74, X184, X185, X186, X187, last24_out_agaa(T73, T74, X185, X183)) → halves41_out_gaaa(.(T72, .(T73, T74)), .(T72, X184), .(X185, X186), X187)
halves41_in_gaaa(.(T72, .(T73, T74)), .(T72, X184), .(T77, X186), X187) → U4_gaaa(T72, T73, T74, X184, T77, X186, X187, last24_in_agaa(T73, T74, T77, T78))
U4_gaaa(T72, T73, T74, X184, T77, X186, X187, last24_out_agaa(T73, T74, T77, T78)) → U5_gaaa(T72, T73, T74, X184, T77, X186, X187, halves41_in_gaaa(T78, X184, X186, X187))
U5_gaaa(T72, T73, T74, X184, T77, X186, X187, halves41_out_gaaa(T78, X184, X186, X187)) → halves41_out_gaaa(.(T72, .(T73, T74)), .(T72, X184), .(T77, X186), X187)
U9_g(T21, T22, T23, halves41_out_gaaa(T27, X74, X76, X77)) → palindrome1_out_g(.(T21, .(T22, T23)))
palindrome1_in_g(.(T88, .(T22, T23))) → U10_g(T88, T22, T23, last24_in_agaa(T22, T23, T88, T27))
U10_g(T88, T22, T23, last24_out_agaa(T22, T23, T88, T27)) → U11_g(T88, T22, T23, halves41_in_gaag(T27, T89, T89, even))
halves41_in_gaag([], [], [], even) → halves41_out_gaag([], [], [], even)
halves41_in_gaag(.(T65, []), .(T65, []), [], odd) → halves41_out_gaag(.(T65, []), .(T65, []), [], odd)
halves41_in_gaag(.(T72, .(T73, T74)), .(T72, X184), .(X185, X186), X187) → U3_gaag(T72, T73, T74, X184, X185, X186, X187, last24_in_agaa(T73, T74, X185, X183))
U3_gaag(T72, T73, T74, X184, X185, X186, X187, last24_out_agaa(T73, T74, X185, X183)) → halves41_out_gaag(.(T72, .(T73, T74)), .(T72, X184), .(X185, X186), X187)
halves41_in_gaag(.(T72, .(T73, T74)), .(T72, X184), .(T77, X186), X187) → U4_gaag(T72, T73, T74, X184, T77, X186, X187, last24_in_agaa(T73, T74, T77, T78))
U4_gaag(T72, T73, T74, X184, T77, X186, X187, last24_out_agaa(T73, T74, T77, T78)) → U5_gaag(T72, T73, T74, X184, T77, X186, X187, halves41_in_gaag(T78, X184, X186, X187))
U5_gaag(T72, T73, T74, X184, T77, X186, X187, halves41_out_gaag(T78, X184, X186, X187)) → halves41_out_gaag(.(T72, .(T73, T74)), .(T72, X184), .(T77, X186), X187)
U11_g(T88, T22, T23, halves41_out_gaag(T27, T89, T89, even)) → palindrome1_out_g(.(T88, .(T22, T23)))
palindrome1_in_g(T92) → U12_g(T92, halves41_in_gaaa(T92, X214, X215, X216))
U12_g(T92, halves41_out_gaaa(T92, X214, X215, X216)) → palindrome1_out_g(T92)
palindrome1_in_g(T92) → U13_g(T92, halves41_in_gaag(T92, T93, T94, odd))
U13_g(T92, halves41_out_gaag(T92, T93, T94, odd)) → U14_g(T92, last70_in_aaa(T93, X217, T94))
last70_in_aaa(.(T107, []), T107, []) → last70_out_aaa(.(T107, []), T107, [])
last70_in_aaa(.(T114, T115), X246, .(T114, T116)) → U6_aaa(T114, T115, X246, T116, last70_in_aaa(T115, X246, T116))
U6_aaa(T114, T115, X246, T116, last70_out_aaa(T115, X246, T116)) → last70_out_aaa(.(T114, T115), X246, .(T114, T116))
U14_g(T92, last70_out_aaa(T93, X217, T94)) → palindrome1_out_g(T92)
LAST32_IN_GAA(.(T54, T55), X139, .(T54, X140)) → LAST32_IN_GAA(T55, X139, X140)
LAST32_IN_GAA(.(T55)) → LAST32_IN_GAA(T55)
From the DPs we obtained the following set of size-change graphs:
HALVES41_IN_GAAG(.(T72, .(T73, T74)), .(T72, X184), .(T77, X186), X187) → U4_GAAG(T72, T73, T74, X184, T77, X186, X187, last24_in_agaa(T73, T74, T77, T78))
U4_GAAG(T72, T73, T74, X184, T77, X186, X187, last24_out_agaa(T73, T74, T77, T78)) → HALVES41_IN_GAAG(T78, X184, X186, X187)
palindrome1_in_g([]) → palindrome1_out_g([])
palindrome1_in_g(.(T21, .(T22, T23))) → U7_g(T21, T22, T23, last24_in_agaa(T22, T23, X75, X73))
last24_in_agaa(T34, [], T34, []) → last24_out_agaa(T34, [], T34, [])
last24_in_agaa(T41, T42, X113, .(T41, X114)) → U2_agaa(T41, T42, X113, X114, last32_in_gaa(T42, X113, X114))
last32_in_gaa(.(T49, []), T49, []) → last32_out_gaa(.(T49, []), T49, [])
last32_in_gaa(.(T54, T55), X139, .(T54, X140)) → U1_gaa(T54, T55, X139, X140, last32_in_gaa(T55, X139, X140))
U1_gaa(T54, T55, X139, X140, last32_out_gaa(T55, X139, X140)) → last32_out_gaa(.(T54, T55), X139, .(T54, X140))
U2_agaa(T41, T42, X113, X114, last32_out_gaa(T42, X113, X114)) → last24_out_agaa(T41, T42, X113, .(T41, X114))
U7_g(T21, T22, T23, last24_out_agaa(T22, T23, X75, X73)) → palindrome1_out_g(.(T21, .(T22, T23)))
palindrome1_in_g(.(T21, .(T22, T23))) → U8_g(T21, T22, T23, last24_in_agaa(T22, T23, T26, T27))
U8_g(T21, T22, T23, last24_out_agaa(T22, T23, T26, T27)) → U9_g(T21, T22, T23, halves41_in_gaaa(T27, X74, X76, X77))
halves41_in_gaaa([], [], [], even) → halves41_out_gaaa([], [], [], even)
halves41_in_gaaa(.(T65, []), .(T65, []), [], odd) → halves41_out_gaaa(.(T65, []), .(T65, []), [], odd)
halves41_in_gaaa(.(T72, .(T73, T74)), .(T72, X184), .(X185, X186), X187) → U3_gaaa(T72, T73, T74, X184, X185, X186, X187, last24_in_agaa(T73, T74, X185, X183))
U3_gaaa(T72, T73, T74, X184, X185, X186, X187, last24_out_agaa(T73, T74, X185, X183)) → halves41_out_gaaa(.(T72, .(T73, T74)), .(T72, X184), .(X185, X186), X187)
halves41_in_gaaa(.(T72, .(T73, T74)), .(T72, X184), .(T77, X186), X187) → U4_gaaa(T72, T73, T74, X184, T77, X186, X187, last24_in_agaa(T73, T74, T77, T78))
U4_gaaa(T72, T73, T74, X184, T77, X186, X187, last24_out_agaa(T73, T74, T77, T78)) → U5_gaaa(T72, T73, T74, X184, T77, X186, X187, halves41_in_gaaa(T78, X184, X186, X187))
U5_gaaa(T72, T73, T74, X184, T77, X186, X187, halves41_out_gaaa(T78, X184, X186, X187)) → halves41_out_gaaa(.(T72, .(T73, T74)), .(T72, X184), .(T77, X186), X187)
U9_g(T21, T22, T23, halves41_out_gaaa(T27, X74, X76, X77)) → palindrome1_out_g(.(T21, .(T22, T23)))
palindrome1_in_g(.(T88, .(T22, T23))) → U10_g(T88, T22, T23, last24_in_agaa(T22, T23, T88, T27))
U10_g(T88, T22, T23, last24_out_agaa(T22, T23, T88, T27)) → U11_g(T88, T22, T23, halves41_in_gaag(T27, T89, T89, even))
halves41_in_gaag([], [], [], even) → halves41_out_gaag([], [], [], even)
halves41_in_gaag(.(T65, []), .(T65, []), [], odd) → halves41_out_gaag(.(T65, []), .(T65, []), [], odd)
halves41_in_gaag(.(T72, .(T73, T74)), .(T72, X184), .(X185, X186), X187) → U3_gaag(T72, T73, T74, X184, X185, X186, X187, last24_in_agaa(T73, T74, X185, X183))
U3_gaag(T72, T73, T74, X184, X185, X186, X187, last24_out_agaa(T73, T74, X185, X183)) → halves41_out_gaag(.(T72, .(T73, T74)), .(T72, X184), .(X185, X186), X187)
halves41_in_gaag(.(T72, .(T73, T74)), .(T72, X184), .(T77, X186), X187) → U4_gaag(T72, T73, T74, X184, T77, X186, X187, last24_in_agaa(T73, T74, T77, T78))
U4_gaag(T72, T73, T74, X184, T77, X186, X187, last24_out_agaa(T73, T74, T77, T78)) → U5_gaag(T72, T73, T74, X184, T77, X186, X187, halves41_in_gaag(T78, X184, X186, X187))
U5_gaag(T72, T73, T74, X184, T77, X186, X187, halves41_out_gaag(T78, X184, X186, X187)) → halves41_out_gaag(.(T72, .(T73, T74)), .(T72, X184), .(T77, X186), X187)
U11_g(T88, T22, T23, halves41_out_gaag(T27, T89, T89, even)) → palindrome1_out_g(.(T88, .(T22, T23)))
palindrome1_in_g(T92) → U12_g(T92, halves41_in_gaaa(T92, X214, X215, X216))
U12_g(T92, halves41_out_gaaa(T92, X214, X215, X216)) → palindrome1_out_g(T92)
palindrome1_in_g(T92) → U13_g(T92, halves41_in_gaag(T92, T93, T94, odd))
U13_g(T92, halves41_out_gaag(T92, T93, T94, odd)) → U14_g(T92, last70_in_aaa(T93, X217, T94))
last70_in_aaa(.(T107, []), T107, []) → last70_out_aaa(.(T107, []), T107, [])
last70_in_aaa(.(T114, T115), X246, .(T114, T116)) → U6_aaa(T114, T115, X246, T116, last70_in_aaa(T115, X246, T116))
U6_aaa(T114, T115, X246, T116, last70_out_aaa(T115, X246, T116)) → last70_out_aaa(.(T114, T115), X246, .(T114, T116))
U14_g(T92, last70_out_aaa(T93, X217, T94)) → palindrome1_out_g(T92)
HALVES41_IN_GAAG(.(T72, .(T73, T74)), .(T72, X184), .(T77, X186), X187) → U4_GAAG(T72, T73, T74, X184, T77, X186, X187, last24_in_agaa(T73, T74, T77, T78))
U4_GAAG(T72, T73, T74, X184, T77, X186, X187, last24_out_agaa(T73, T74, T77, T78)) → HALVES41_IN_GAAG(T78, X184, X186, X187)
last24_in_agaa(T34, [], T34, []) → last24_out_agaa(T34, [], T34, [])
last24_in_agaa(T41, T42, X113, .(T41, X114)) → U2_agaa(T41, T42, X113, X114, last32_in_gaa(T42, X113, X114))
U2_agaa(T41, T42, X113, X114, last32_out_gaa(T42, X113, X114)) → last24_out_agaa(T41, T42, X113, .(T41, X114))
last32_in_gaa(.(T49, []), T49, []) → last32_out_gaa(.(T49, []), T49, [])
last32_in_gaa(.(T54, T55), X139, .(T54, X140)) → U1_gaa(T54, T55, X139, X140, last32_in_gaa(T55, X139, X140))
U1_gaa(T54, T55, X139, X140, last32_out_gaa(T55, X139, X140)) → last32_out_gaa(.(T54, T55), X139, .(T54, X140))
HALVES41_IN_GAAG(.(.(T74)), X187) → U4_GAAG(X187, last24_in_agaa(T74))
U4_GAAG(X187, last24_out_agaa(T78)) → HALVES41_IN_GAAG(T78, X187)
last24_in_agaa([]) → last24_out_agaa([])
last24_in_agaa(T42) → U2_agaa(last32_in_gaa(T42))
U2_agaa(last32_out_gaa(X114)) → last24_out_agaa(.(X114))
last32_in_gaa(.([])) → last32_out_gaa([])
last32_in_gaa(.(T55)) → U1_gaa(last32_in_gaa(T55))
U1_gaa(last32_out_gaa(X140)) → last32_out_gaa(.(X140))
last24_in_agaa(x0)
U2_agaa(x0)
last32_in_gaa(x0)
U1_gaa(x0)
HALVES41_IN_GAAG(.(.(T74)), X187) → U4_GAAG(X187, last24_in_agaa(T74))
U4_GAAG(X187, last24_out_agaa(T78)) → HALVES41_IN_GAAG(T78, X187)
last24_in_agaa([]) → last24_out_agaa([])
last24_in_agaa(T42) → U2_agaa(last32_in_gaa(T42))
U2_agaa(last32_out_gaa(X114)) → last24_out_agaa(.(X114))
last32_in_gaa(.([])) → last32_out_gaa([])
POL(.(x1)) = 3 + x1
POL(HALVES41_IN_GAAG(x1, x2)) = x1 + x2
POL(U1_gaa(x1)) = 3 + x1
POL(U2_agaa(x1)) = x1
POL(U4_GAAG(x1, x2)) = 1 + x1 + x2
POL([]) = 0
POL(last24_in_agaa(x1)) = 3 + x1
POL(last24_out_agaa(x1)) = x1
POL(last32_in_gaa(x1)) = 2 + x1
POL(last32_out_gaa(x1)) = 4 + x1
last32_in_gaa(.(T55)) → U1_gaa(last32_in_gaa(T55))
U1_gaa(last32_out_gaa(X140)) → last32_out_gaa(.(X140))
last24_in_agaa(x0)
U2_agaa(x0)
last32_in_gaa(x0)
U1_gaa(x0)
HALVES41_IN_GAAA(.(T72, .(T73, T74)), .(T72, X184), .(T77, X186), X187) → U4_GAAA(T72, T73, T74, X184, T77, X186, X187, last24_in_agaa(T73, T74, T77, T78))
U4_GAAA(T72, T73, T74, X184, T77, X186, X187, last24_out_agaa(T73, T74, T77, T78)) → HALVES41_IN_GAAA(T78, X184, X186, X187)
palindrome1_in_g([]) → palindrome1_out_g([])
palindrome1_in_g(.(T21, .(T22, T23))) → U7_g(T21, T22, T23, last24_in_agaa(T22, T23, X75, X73))
last24_in_agaa(T34, [], T34, []) → last24_out_agaa(T34, [], T34, [])
last24_in_agaa(T41, T42, X113, .(T41, X114)) → U2_agaa(T41, T42, X113, X114, last32_in_gaa(T42, X113, X114))
last32_in_gaa(.(T49, []), T49, []) → last32_out_gaa(.(T49, []), T49, [])
last32_in_gaa(.(T54, T55), X139, .(T54, X140)) → U1_gaa(T54, T55, X139, X140, last32_in_gaa(T55, X139, X140))
U1_gaa(T54, T55, X139, X140, last32_out_gaa(T55, X139, X140)) → last32_out_gaa(.(T54, T55), X139, .(T54, X140))
U2_agaa(T41, T42, X113, X114, last32_out_gaa(T42, X113, X114)) → last24_out_agaa(T41, T42, X113, .(T41, X114))
U7_g(T21, T22, T23, last24_out_agaa(T22, T23, X75, X73)) → palindrome1_out_g(.(T21, .(T22, T23)))
palindrome1_in_g(.(T21, .(T22, T23))) → U8_g(T21, T22, T23, last24_in_agaa(T22, T23, T26, T27))
U8_g(T21, T22, T23, last24_out_agaa(T22, T23, T26, T27)) → U9_g(T21, T22, T23, halves41_in_gaaa(T27, X74, X76, X77))
halves41_in_gaaa([], [], [], even) → halves41_out_gaaa([], [], [], even)
halves41_in_gaaa(.(T65, []), .(T65, []), [], odd) → halves41_out_gaaa(.(T65, []), .(T65, []), [], odd)
halves41_in_gaaa(.(T72, .(T73, T74)), .(T72, X184), .(X185, X186), X187) → U3_gaaa(T72, T73, T74, X184, X185, X186, X187, last24_in_agaa(T73, T74, X185, X183))
U3_gaaa(T72, T73, T74, X184, X185, X186, X187, last24_out_agaa(T73, T74, X185, X183)) → halves41_out_gaaa(.(T72, .(T73, T74)), .(T72, X184), .(X185, X186), X187)
halves41_in_gaaa(.(T72, .(T73, T74)), .(T72, X184), .(T77, X186), X187) → U4_gaaa(T72, T73, T74, X184, T77, X186, X187, last24_in_agaa(T73, T74, T77, T78))
U4_gaaa(T72, T73, T74, X184, T77, X186, X187, last24_out_agaa(T73, T74, T77, T78)) → U5_gaaa(T72, T73, T74, X184, T77, X186, X187, halves41_in_gaaa(T78, X184, X186, X187))
U5_gaaa(T72, T73, T74, X184, T77, X186, X187, halves41_out_gaaa(T78, X184, X186, X187)) → halves41_out_gaaa(.(T72, .(T73, T74)), .(T72, X184), .(T77, X186), X187)
U9_g(T21, T22, T23, halves41_out_gaaa(T27, X74, X76, X77)) → palindrome1_out_g(.(T21, .(T22, T23)))
palindrome1_in_g(.(T88, .(T22, T23))) → U10_g(T88, T22, T23, last24_in_agaa(T22, T23, T88, T27))
U10_g(T88, T22, T23, last24_out_agaa(T22, T23, T88, T27)) → U11_g(T88, T22, T23, halves41_in_gaag(T27, T89, T89, even))
halves41_in_gaag([], [], [], even) → halves41_out_gaag([], [], [], even)
halves41_in_gaag(.(T65, []), .(T65, []), [], odd) → halves41_out_gaag(.(T65, []), .(T65, []), [], odd)
halves41_in_gaag(.(T72, .(T73, T74)), .(T72, X184), .(X185, X186), X187) → U3_gaag(T72, T73, T74, X184, X185, X186, X187, last24_in_agaa(T73, T74, X185, X183))
U3_gaag(T72, T73, T74, X184, X185, X186, X187, last24_out_agaa(T73, T74, X185, X183)) → halves41_out_gaag(.(T72, .(T73, T74)), .(T72, X184), .(X185, X186), X187)
halves41_in_gaag(.(T72, .(T73, T74)), .(T72, X184), .(T77, X186), X187) → U4_gaag(T72, T73, T74, X184, T77, X186, X187, last24_in_agaa(T73, T74, T77, T78))
U4_gaag(T72, T73, T74, X184, T77, X186, X187, last24_out_agaa(T73, T74, T77, T78)) → U5_gaag(T72, T73, T74, X184, T77, X186, X187, halves41_in_gaag(T78, X184, X186, X187))
U5_gaag(T72, T73, T74, X184, T77, X186, X187, halves41_out_gaag(T78, X184, X186, X187)) → halves41_out_gaag(.(T72, .(T73, T74)), .(T72, X184), .(T77, X186), X187)
U11_g(T88, T22, T23, halves41_out_gaag(T27, T89, T89, even)) → palindrome1_out_g(.(T88, .(T22, T23)))
palindrome1_in_g(T92) → U12_g(T92, halves41_in_gaaa(T92, X214, X215, X216))
U12_g(T92, halves41_out_gaaa(T92, X214, X215, X216)) → palindrome1_out_g(T92)
palindrome1_in_g(T92) → U13_g(T92, halves41_in_gaag(T92, T93, T94, odd))
U13_g(T92, halves41_out_gaag(T92, T93, T94, odd)) → U14_g(T92, last70_in_aaa(T93, X217, T94))
last70_in_aaa(.(T107, []), T107, []) → last70_out_aaa(.(T107, []), T107, [])
last70_in_aaa(.(T114, T115), X246, .(T114, T116)) → U6_aaa(T114, T115, X246, T116, last70_in_aaa(T115, X246, T116))
U6_aaa(T114, T115, X246, T116, last70_out_aaa(T115, X246, T116)) → last70_out_aaa(.(T114, T115), X246, .(T114, T116))
U14_g(T92, last70_out_aaa(T93, X217, T94)) → palindrome1_out_g(T92)
HALVES41_IN_GAAA(.(T72, .(T73, T74)), .(T72, X184), .(T77, X186), X187) → U4_GAAA(T72, T73, T74, X184, T77, X186, X187, last24_in_agaa(T73, T74, T77, T78))
U4_GAAA(T72, T73, T74, X184, T77, X186, X187, last24_out_agaa(T73, T74, T77, T78)) → HALVES41_IN_GAAA(T78, X184, X186, X187)
last24_in_agaa(T34, [], T34, []) → last24_out_agaa(T34, [], T34, [])
last24_in_agaa(T41, T42, X113, .(T41, X114)) → U2_agaa(T41, T42, X113, X114, last32_in_gaa(T42, X113, X114))
U2_agaa(T41, T42, X113, X114, last32_out_gaa(T42, X113, X114)) → last24_out_agaa(T41, T42, X113, .(T41, X114))
last32_in_gaa(.(T49, []), T49, []) → last32_out_gaa(.(T49, []), T49, [])
last32_in_gaa(.(T54, T55), X139, .(T54, X140)) → U1_gaa(T54, T55, X139, X140, last32_in_gaa(T55, X139, X140))
U1_gaa(T54, T55, X139, X140, last32_out_gaa(T55, X139, X140)) → last32_out_gaa(.(T54, T55), X139, .(T54, X140))
HALVES41_IN_GAAA(.(.(T74))) → U4_GAAA(last24_in_agaa(T74))
U4_GAAA(last24_out_agaa(T78)) → HALVES41_IN_GAAA(T78)
last24_in_agaa([]) → last24_out_agaa([])
last24_in_agaa(T42) → U2_agaa(last32_in_gaa(T42))
U2_agaa(last32_out_gaa(X114)) → last24_out_agaa(.(X114))
last32_in_gaa(.([])) → last32_out_gaa([])
last32_in_gaa(.(T55)) → U1_gaa(last32_in_gaa(T55))
U1_gaa(last32_out_gaa(X140)) → last32_out_gaa(.(X140))
last24_in_agaa(x0)
U2_agaa(x0)
last32_in_gaa(x0)
U1_gaa(x0)
HALVES41_IN_GAAA(.(.(T74))) → U4_GAAA(last24_in_agaa(T74))
U4_GAAA(last24_out_agaa(T78)) → HALVES41_IN_GAAA(T78)
last24_in_agaa([]) → last24_out_agaa([])
last24_in_agaa(T42) → U2_agaa(last32_in_gaa(T42))
U2_agaa(last32_out_gaa(X114)) → last24_out_agaa(.(X114))
last32_in_gaa(.([])) → last32_out_gaa([])
POL(.(x1)) = 3 + x1
POL(HALVES41_IN_GAAA(x1)) = x1
POL(U1_gaa(x1)) = 3 + x1
POL(U2_agaa(x1)) = x1
POL(U4_GAAA(x1)) = 1 + x1
POL([]) = 0
POL(last24_in_agaa(x1)) = 3 + x1
POL(last24_out_agaa(x1)) = x1
POL(last32_in_gaa(x1)) = 2 + x1
POL(last32_out_gaa(x1)) = 4 + x1
last32_in_gaa(.(T55)) → U1_gaa(last32_in_gaa(T55))
U1_gaa(last32_out_gaa(X140)) → last32_out_gaa(.(X140))
last24_in_agaa(x0)
U2_agaa(x0)
last32_in_gaa(x0)
U1_gaa(x0)
palindrome1_in_g([]) → palindrome1_out_g([])
palindrome1_in_g(.(T21, .(T22, T23))) → U7_g(T21, T22, T23, last24_in_agaa(T22, T23, X75, X73))
last24_in_agaa(T34, [], T34, []) → last24_out_agaa(T34, [], T34, [])
last24_in_agaa(T41, T42, X113, .(T41, X114)) → U2_agaa(T41, T42, X113, X114, last32_in_gaa(T42, X113, X114))
last32_in_gaa(.(T49, []), T49, []) → last32_out_gaa(.(T49, []), T49, [])
last32_in_gaa(.(T54, T55), X139, .(T54, X140)) → U1_gaa(T54, T55, X139, X140, last32_in_gaa(T55, X139, X140))
U1_gaa(T54, T55, X139, X140, last32_out_gaa(T55, X139, X140)) → last32_out_gaa(.(T54, T55), X139, .(T54, X140))
U2_agaa(T41, T42, X113, X114, last32_out_gaa(T42, X113, X114)) → last24_out_agaa(T41, T42, X113, .(T41, X114))
U7_g(T21, T22, T23, last24_out_agaa(T22, T23, X75, X73)) → palindrome1_out_g(.(T21, .(T22, T23)))
palindrome1_in_g(.(T21, .(T22, T23))) → U8_g(T21, T22, T23, last24_in_agaa(T22, T23, T26, T27))
U8_g(T21, T22, T23, last24_out_agaa(T22, T23, T26, T27)) → U9_g(T21, T22, T23, halves41_in_gaaa(T27, X74, X76, X77))
halves41_in_gaaa([], [], [], even) → halves41_out_gaaa([], [], [], even)
halves41_in_gaaa(.(T65, []), .(T65, []), [], odd) → halves41_out_gaaa(.(T65, []), .(T65, []), [], odd)
halves41_in_gaaa(.(T72, .(T73, T74)), .(T72, X184), .(X185, X186), X187) → U3_gaaa(T72, T73, T74, X184, X185, X186, X187, last24_in_agaa(T73, T74, X185, X183))
U3_gaaa(T72, T73, T74, X184, X185, X186, X187, last24_out_agaa(T73, T74, X185, X183)) → halves41_out_gaaa(.(T72, .(T73, T74)), .(T72, X184), .(X185, X186), X187)
halves41_in_gaaa(.(T72, .(T73, T74)), .(T72, X184), .(T77, X186), X187) → U4_gaaa(T72, T73, T74, X184, T77, X186, X187, last24_in_agaa(T73, T74, T77, T78))
U4_gaaa(T72, T73, T74, X184, T77, X186, X187, last24_out_agaa(T73, T74, T77, T78)) → U5_gaaa(T72, T73, T74, X184, T77, X186, X187, halves41_in_gaaa(T78, X184, X186, X187))
U5_gaaa(T72, T73, T74, X184, T77, X186, X187, halves41_out_gaaa(T78, X184, X186, X187)) → halves41_out_gaaa(.(T72, .(T73, T74)), .(T72, X184), .(T77, X186), X187)
U9_g(T21, T22, T23, halves41_out_gaaa(T27, X74, X76, X77)) → palindrome1_out_g(.(T21, .(T22, T23)))
palindrome1_in_g(.(T88, .(T22, T23))) → U10_g(T88, T22, T23, last24_in_agaa(T22, T23, T88, T27))
U10_g(T88, T22, T23, last24_out_agaa(T22, T23, T88, T27)) → U11_g(T88, T22, T23, halves41_in_gaag(T27, T89, T89, even))
halves41_in_gaag([], [], [], even) → halves41_out_gaag([], [], [], even)
halves41_in_gaag(.(T65, []), .(T65, []), [], odd) → halves41_out_gaag(.(T65, []), .(T65, []), [], odd)
halves41_in_gaag(.(T72, .(T73, T74)), .(T72, X184), .(X185, X186), X187) → U3_gaag(T72, T73, T74, X184, X185, X186, X187, last24_in_agaa(T73, T74, X185, X183))
U3_gaag(T72, T73, T74, X184, X185, X186, X187, last24_out_agaa(T73, T74, X185, X183)) → halves41_out_gaag(.(T72, .(T73, T74)), .(T72, X184), .(X185, X186), X187)
halves41_in_gaag(.(T72, .(T73, T74)), .(T72, X184), .(T77, X186), X187) → U4_gaag(T72, T73, T74, X184, T77, X186, X187, last24_in_agaa(T73, T74, T77, T78))
U4_gaag(T72, T73, T74, X184, T77, X186, X187, last24_out_agaa(T73, T74, T77, T78)) → U5_gaag(T72, T73, T74, X184, T77, X186, X187, halves41_in_gaag(T78, X184, X186, X187))
U5_gaag(T72, T73, T74, X184, T77, X186, X187, halves41_out_gaag(T78, X184, X186, X187)) → halves41_out_gaag(.(T72, .(T73, T74)), .(T72, X184), .(T77, X186), X187)
U11_g(T88, T22, T23, halves41_out_gaag(T27, T89, T89, even)) → palindrome1_out_g(.(T88, .(T22, T23)))
palindrome1_in_g(T92) → U12_g(T92, halves41_in_gaaa(T92, X214, X215, X216))
U12_g(T92, halves41_out_gaaa(T92, X214, X215, X216)) → palindrome1_out_g(T92)
palindrome1_in_g(T92) → U13_g(T92, halves41_in_gaag(T92, T93, T94, odd))
U13_g(T92, halves41_out_gaag(T92, T93, T94, odd)) → U14_g(T92, last70_in_aaa(T93, X217, T94))
last70_in_aaa(.(T107, []), T107, []) → last70_out_aaa(.(T107, []), T107, [])
last70_in_aaa(.(T114, T115), X246, .(T114, T116)) → U6_aaa(T114, T115, X246, T116, last70_in_aaa(T115, X246, T116))
U6_aaa(T114, T115, X246, T116, last70_out_aaa(T115, X246, T116)) → last70_out_aaa(.(T114, T115), X246, .(T114, T116))
U14_g(T92, last70_out_aaa(T93, X217, T94)) → palindrome1_out_g(T92)
Infinitary Constructor Rewriting Termination of PiTRS implies Termination of Prolog
palindrome1_in_g([]) → palindrome1_out_g([])
palindrome1_in_g(.(T21, .(T22, T23))) → U7_g(T21, T22, T23, last24_in_agaa(T22, T23, X75, X73))
last24_in_agaa(T34, [], T34, []) → last24_out_agaa(T34, [], T34, [])
last24_in_agaa(T41, T42, X113, .(T41, X114)) → U2_agaa(T41, T42, X113, X114, last32_in_gaa(T42, X113, X114))
last32_in_gaa(.(T49, []), T49, []) → last32_out_gaa(.(T49, []), T49, [])
last32_in_gaa(.(T54, T55), X139, .(T54, X140)) → U1_gaa(T54, T55, X139, X140, last32_in_gaa(T55, X139, X140))
U1_gaa(T54, T55, X139, X140, last32_out_gaa(T55, X139, X140)) → last32_out_gaa(.(T54, T55), X139, .(T54, X140))
U2_agaa(T41, T42, X113, X114, last32_out_gaa(T42, X113, X114)) → last24_out_agaa(T41, T42, X113, .(T41, X114))
U7_g(T21, T22, T23, last24_out_agaa(T22, T23, X75, X73)) → palindrome1_out_g(.(T21, .(T22, T23)))
palindrome1_in_g(.(T21, .(T22, T23))) → U8_g(T21, T22, T23, last24_in_agaa(T22, T23, T26, T27))
U8_g(T21, T22, T23, last24_out_agaa(T22, T23, T26, T27)) → U9_g(T21, T22, T23, halves41_in_gaaa(T27, X74, X76, X77))
halves41_in_gaaa([], [], [], even) → halves41_out_gaaa([], [], [], even)
halves41_in_gaaa(.(T65, []), .(T65, []), [], odd) → halves41_out_gaaa(.(T65, []), .(T65, []), [], odd)
halves41_in_gaaa(.(T72, .(T73, T74)), .(T72, X184), .(X185, X186), X187) → U3_gaaa(T72, T73, T74, X184, X185, X186, X187, last24_in_agaa(T73, T74, X185, X183))
U3_gaaa(T72, T73, T74, X184, X185, X186, X187, last24_out_agaa(T73, T74, X185, X183)) → halves41_out_gaaa(.(T72, .(T73, T74)), .(T72, X184), .(X185, X186), X187)
halves41_in_gaaa(.(T72, .(T73, T74)), .(T72, X184), .(T77, X186), X187) → U4_gaaa(T72, T73, T74, X184, T77, X186, X187, last24_in_agaa(T73, T74, T77, T78))
U4_gaaa(T72, T73, T74, X184, T77, X186, X187, last24_out_agaa(T73, T74, T77, T78)) → U5_gaaa(T72, T73, T74, X184, T77, X186, X187, halves41_in_gaaa(T78, X184, X186, X187))
U5_gaaa(T72, T73, T74, X184, T77, X186, X187, halves41_out_gaaa(T78, X184, X186, X187)) → halves41_out_gaaa(.(T72, .(T73, T74)), .(T72, X184), .(T77, X186), X187)
U9_g(T21, T22, T23, halves41_out_gaaa(T27, X74, X76, X77)) → palindrome1_out_g(.(T21, .(T22, T23)))
palindrome1_in_g(.(T88, .(T22, T23))) → U10_g(T88, T22, T23, last24_in_agaa(T22, T23, T88, T27))
U10_g(T88, T22, T23, last24_out_agaa(T22, T23, T88, T27)) → U11_g(T88, T22, T23, halves41_in_gaag(T27, T89, T89, even))
halves41_in_gaag([], [], [], even) → halves41_out_gaag([], [], [], even)
halves41_in_gaag(.(T65, []), .(T65, []), [], odd) → halves41_out_gaag(.(T65, []), .(T65, []), [], odd)
halves41_in_gaag(.(T72, .(T73, T74)), .(T72, X184), .(X185, X186), X187) → U3_gaag(T72, T73, T74, X184, X185, X186, X187, last24_in_agaa(T73, T74, X185, X183))
U3_gaag(T72, T73, T74, X184, X185, X186, X187, last24_out_agaa(T73, T74, X185, X183)) → halves41_out_gaag(.(T72, .(T73, T74)), .(T72, X184), .(X185, X186), X187)
halves41_in_gaag(.(T72, .(T73, T74)), .(T72, X184), .(T77, X186), X187) → U4_gaag(T72, T73, T74, X184, T77, X186, X187, last24_in_agaa(T73, T74, T77, T78))
U4_gaag(T72, T73, T74, X184, T77, X186, X187, last24_out_agaa(T73, T74, T77, T78)) → U5_gaag(T72, T73, T74, X184, T77, X186, X187, halves41_in_gaag(T78, X184, X186, X187))
U5_gaag(T72, T73, T74, X184, T77, X186, X187, halves41_out_gaag(T78, X184, X186, X187)) → halves41_out_gaag(.(T72, .(T73, T74)), .(T72, X184), .(T77, X186), X187)
U11_g(T88, T22, T23, halves41_out_gaag(T27, T89, T89, even)) → palindrome1_out_g(.(T88, .(T22, T23)))
palindrome1_in_g(T92) → U12_g(T92, halves41_in_gaaa(T92, X214, X215, X216))
U12_g(T92, halves41_out_gaaa(T92, X214, X215, X216)) → palindrome1_out_g(T92)
palindrome1_in_g(T92) → U13_g(T92, halves41_in_gaag(T92, T93, T94, odd))
U13_g(T92, halves41_out_gaag(T92, T93, T94, odd)) → U14_g(T92, last70_in_aaa(T93, X217, T94))
last70_in_aaa(.(T107, []), T107, []) → last70_out_aaa(.(T107, []), T107, [])
last70_in_aaa(.(T114, T115), X246, .(T114, T116)) → U6_aaa(T114, T115, X246, T116, last70_in_aaa(T115, X246, T116))
U6_aaa(T114, T115, X246, T116, last70_out_aaa(T115, X246, T116)) → last70_out_aaa(.(T114, T115), X246, .(T114, T116))
U14_g(T92, last70_out_aaa(T93, X217, T94)) → palindrome1_out_g(T92)
PALINDROME1_IN_G(.(T21, .(T22, T23))) → U7_G(T21, T22, T23, last24_in_agaa(T22, T23, X75, X73))
PALINDROME1_IN_G(.(T21, .(T22, T23))) → LAST24_IN_AGAA(T22, T23, X75, X73)
LAST24_IN_AGAA(T41, T42, X113, .(T41, X114)) → U2_AGAA(T41, T42, X113, X114, last32_in_gaa(T42, X113, X114))
LAST24_IN_AGAA(T41, T42, X113, .(T41, X114)) → LAST32_IN_GAA(T42, X113, X114)
LAST32_IN_GAA(.(T54, T55), X139, .(T54, X140)) → U1_GAA(T54, T55, X139, X140, last32_in_gaa(T55, X139, X140))
LAST32_IN_GAA(.(T54, T55), X139, .(T54, X140)) → LAST32_IN_GAA(T55, X139, X140)
PALINDROME1_IN_G(.(T21, .(T22, T23))) → U8_G(T21, T22, T23, last24_in_agaa(T22, T23, T26, T27))
U8_G(T21, T22, T23, last24_out_agaa(T22, T23, T26, T27)) → U9_G(T21, T22, T23, halves41_in_gaaa(T27, X74, X76, X77))
U8_G(T21, T22, T23, last24_out_agaa(T22, T23, T26, T27)) → HALVES41_IN_GAAA(T27, X74, X76, X77)
HALVES41_IN_GAAA(.(T72, .(T73, T74)), .(T72, X184), .(X185, X186), X187) → U3_GAAA(T72, T73, T74, X184, X185, X186, X187, last24_in_agaa(T73, T74, X185, X183))
HALVES41_IN_GAAA(.(T72, .(T73, T74)), .(T72, X184), .(X185, X186), X187) → LAST24_IN_AGAA(T73, T74, X185, X183)
HALVES41_IN_GAAA(.(T72, .(T73, T74)), .(T72, X184), .(T77, X186), X187) → U4_GAAA(T72, T73, T74, X184, T77, X186, X187, last24_in_agaa(T73, T74, T77, T78))
U4_GAAA(T72, T73, T74, X184, T77, X186, X187, last24_out_agaa(T73, T74, T77, T78)) → U5_GAAA(T72, T73, T74, X184, T77, X186, X187, halves41_in_gaaa(T78, X184, X186, X187))
U4_GAAA(T72, T73, T74, X184, T77, X186, X187, last24_out_agaa(T73, T74, T77, T78)) → HALVES41_IN_GAAA(T78, X184, X186, X187)
PALINDROME1_IN_G(.(T88, .(T22, T23))) → U10_G(T88, T22, T23, last24_in_agaa(T22, T23, T88, T27))
PALINDROME1_IN_G(.(T88, .(T22, T23))) → LAST24_IN_AGAA(T22, T23, T88, T27)
U10_G(T88, T22, T23, last24_out_agaa(T22, T23, T88, T27)) → U11_G(T88, T22, T23, halves41_in_gaag(T27, T89, T89, even))
U10_G(T88, T22, T23, last24_out_agaa(T22, T23, T88, T27)) → HALVES41_IN_GAAG(T27, T89, T89, even)
HALVES41_IN_GAAG(.(T72, .(T73, T74)), .(T72, X184), .(X185, X186), X187) → U3_GAAG(T72, T73, T74, X184, X185, X186, X187, last24_in_agaa(T73, T74, X185, X183))
HALVES41_IN_GAAG(.(T72, .(T73, T74)), .(T72, X184), .(X185, X186), X187) → LAST24_IN_AGAA(T73, T74, X185, X183)
HALVES41_IN_GAAG(.(T72, .(T73, T74)), .(T72, X184), .(T77, X186), X187) → U4_GAAG(T72, T73, T74, X184, T77, X186, X187, last24_in_agaa(T73, T74, T77, T78))
U4_GAAG(T72, T73, T74, X184, T77, X186, X187, last24_out_agaa(T73, T74, T77, T78)) → U5_GAAG(T72, T73, T74, X184, T77, X186, X187, halves41_in_gaag(T78, X184, X186, X187))
U4_GAAG(T72, T73, T74, X184, T77, X186, X187, last24_out_agaa(T73, T74, T77, T78)) → HALVES41_IN_GAAG(T78, X184, X186, X187)
PALINDROME1_IN_G(T92) → U12_G(T92, halves41_in_gaaa(T92, X214, X215, X216))
PALINDROME1_IN_G(T92) → HALVES41_IN_GAAA(T92, X214, X215, X216)
PALINDROME1_IN_G(T92) → U13_G(T92, halves41_in_gaag(T92, T93, T94, odd))
PALINDROME1_IN_G(T92) → HALVES41_IN_GAAG(T92, T93, T94, odd)
U13_G(T92, halves41_out_gaag(T92, T93, T94, odd)) → U14_G(T92, last70_in_aaa(T93, X217, T94))
U13_G(T92, halves41_out_gaag(T92, T93, T94, odd)) → LAST70_IN_AAA(T93, X217, T94)
LAST70_IN_AAA(.(T114, T115), X246, .(T114, T116)) → U6_AAA(T114, T115, X246, T116, last70_in_aaa(T115, X246, T116))
LAST70_IN_AAA(.(T114, T115), X246, .(T114, T116)) → LAST70_IN_AAA(T115, X246, T116)
palindrome1_in_g([]) → palindrome1_out_g([])
palindrome1_in_g(.(T21, .(T22, T23))) → U7_g(T21, T22, T23, last24_in_agaa(T22, T23, X75, X73))
last24_in_agaa(T34, [], T34, []) → last24_out_agaa(T34, [], T34, [])
last24_in_agaa(T41, T42, X113, .(T41, X114)) → U2_agaa(T41, T42, X113, X114, last32_in_gaa(T42, X113, X114))
last32_in_gaa(.(T49, []), T49, []) → last32_out_gaa(.(T49, []), T49, [])
last32_in_gaa(.(T54, T55), X139, .(T54, X140)) → U1_gaa(T54, T55, X139, X140, last32_in_gaa(T55, X139, X140))
U1_gaa(T54, T55, X139, X140, last32_out_gaa(T55, X139, X140)) → last32_out_gaa(.(T54, T55), X139, .(T54, X140))
U2_agaa(T41, T42, X113, X114, last32_out_gaa(T42, X113, X114)) → last24_out_agaa(T41, T42, X113, .(T41, X114))
U7_g(T21, T22, T23, last24_out_agaa(T22, T23, X75, X73)) → palindrome1_out_g(.(T21, .(T22, T23)))
palindrome1_in_g(.(T21, .(T22, T23))) → U8_g(T21, T22, T23, last24_in_agaa(T22, T23, T26, T27))
U8_g(T21, T22, T23, last24_out_agaa(T22, T23, T26, T27)) → U9_g(T21, T22, T23, halves41_in_gaaa(T27, X74, X76, X77))
halves41_in_gaaa([], [], [], even) → halves41_out_gaaa([], [], [], even)
halves41_in_gaaa(.(T65, []), .(T65, []), [], odd) → halves41_out_gaaa(.(T65, []), .(T65, []), [], odd)
halves41_in_gaaa(.(T72, .(T73, T74)), .(T72, X184), .(X185, X186), X187) → U3_gaaa(T72, T73, T74, X184, X185, X186, X187, last24_in_agaa(T73, T74, X185, X183))
U3_gaaa(T72, T73, T74, X184, X185, X186, X187, last24_out_agaa(T73, T74, X185, X183)) → halves41_out_gaaa(.(T72, .(T73, T74)), .(T72, X184), .(X185, X186), X187)
halves41_in_gaaa(.(T72, .(T73, T74)), .(T72, X184), .(T77, X186), X187) → U4_gaaa(T72, T73, T74, X184, T77, X186, X187, last24_in_agaa(T73, T74, T77, T78))
U4_gaaa(T72, T73, T74, X184, T77, X186, X187, last24_out_agaa(T73, T74, T77, T78)) → U5_gaaa(T72, T73, T74, X184, T77, X186, X187, halves41_in_gaaa(T78, X184, X186, X187))
U5_gaaa(T72, T73, T74, X184, T77, X186, X187, halves41_out_gaaa(T78, X184, X186, X187)) → halves41_out_gaaa(.(T72, .(T73, T74)), .(T72, X184), .(T77, X186), X187)
U9_g(T21, T22, T23, halves41_out_gaaa(T27, X74, X76, X77)) → palindrome1_out_g(.(T21, .(T22, T23)))
palindrome1_in_g(.(T88, .(T22, T23))) → U10_g(T88, T22, T23, last24_in_agaa(T22, T23, T88, T27))
U10_g(T88, T22, T23, last24_out_agaa(T22, T23, T88, T27)) → U11_g(T88, T22, T23, halves41_in_gaag(T27, T89, T89, even))
halves41_in_gaag([], [], [], even) → halves41_out_gaag([], [], [], even)
halves41_in_gaag(.(T65, []), .(T65, []), [], odd) → halves41_out_gaag(.(T65, []), .(T65, []), [], odd)
halves41_in_gaag(.(T72, .(T73, T74)), .(T72, X184), .(X185, X186), X187) → U3_gaag(T72, T73, T74, X184, X185, X186, X187, last24_in_agaa(T73, T74, X185, X183))
U3_gaag(T72, T73, T74, X184, X185, X186, X187, last24_out_agaa(T73, T74, X185, X183)) → halves41_out_gaag(.(T72, .(T73, T74)), .(T72, X184), .(X185, X186), X187)
halves41_in_gaag(.(T72, .(T73, T74)), .(T72, X184), .(T77, X186), X187) → U4_gaag(T72, T73, T74, X184, T77, X186, X187, last24_in_agaa(T73, T74, T77, T78))
U4_gaag(T72, T73, T74, X184, T77, X186, X187, last24_out_agaa(T73, T74, T77, T78)) → U5_gaag(T72, T73, T74, X184, T77, X186, X187, halves41_in_gaag(T78, X184, X186, X187))
U5_gaag(T72, T73, T74, X184, T77, X186, X187, halves41_out_gaag(T78, X184, X186, X187)) → halves41_out_gaag(.(T72, .(T73, T74)), .(T72, X184), .(T77, X186), X187)
U11_g(T88, T22, T23, halves41_out_gaag(T27, T89, T89, even)) → palindrome1_out_g(.(T88, .(T22, T23)))
palindrome1_in_g(T92) → U12_g(T92, halves41_in_gaaa(T92, X214, X215, X216))
U12_g(T92, halves41_out_gaaa(T92, X214, X215, X216)) → palindrome1_out_g(T92)
palindrome1_in_g(T92) → U13_g(T92, halves41_in_gaag(T92, T93, T94, odd))
U13_g(T92, halves41_out_gaag(T92, T93, T94, odd)) → U14_g(T92, last70_in_aaa(T93, X217, T94))
last70_in_aaa(.(T107, []), T107, []) → last70_out_aaa(.(T107, []), T107, [])
last70_in_aaa(.(T114, T115), X246, .(T114, T116)) → U6_aaa(T114, T115, X246, T116, last70_in_aaa(T115, X246, T116))
U6_aaa(T114, T115, X246, T116, last70_out_aaa(T115, X246, T116)) → last70_out_aaa(.(T114, T115), X246, .(T114, T116))
U14_g(T92, last70_out_aaa(T93, X217, T94)) → palindrome1_out_g(T92)
PALINDROME1_IN_G(.(T21, .(T22, T23))) → U7_G(T21, T22, T23, last24_in_agaa(T22, T23, X75, X73))
PALINDROME1_IN_G(.(T21, .(T22, T23))) → LAST24_IN_AGAA(T22, T23, X75, X73)
LAST24_IN_AGAA(T41, T42, X113, .(T41, X114)) → U2_AGAA(T41, T42, X113, X114, last32_in_gaa(T42, X113, X114))
LAST24_IN_AGAA(T41, T42, X113, .(T41, X114)) → LAST32_IN_GAA(T42, X113, X114)
LAST32_IN_GAA(.(T54, T55), X139, .(T54, X140)) → U1_GAA(T54, T55, X139, X140, last32_in_gaa(T55, X139, X140))
LAST32_IN_GAA(.(T54, T55), X139, .(T54, X140)) → LAST32_IN_GAA(T55, X139, X140)
PALINDROME1_IN_G(.(T21, .(T22, T23))) → U8_G(T21, T22, T23, last24_in_agaa(T22, T23, T26, T27))
U8_G(T21, T22, T23, last24_out_agaa(T22, T23, T26, T27)) → U9_G(T21, T22, T23, halves41_in_gaaa(T27, X74, X76, X77))
U8_G(T21, T22, T23, last24_out_agaa(T22, T23, T26, T27)) → HALVES41_IN_GAAA(T27, X74, X76, X77)
HALVES41_IN_GAAA(.(T72, .(T73, T74)), .(T72, X184), .(X185, X186), X187) → U3_GAAA(T72, T73, T74, X184, X185, X186, X187, last24_in_agaa(T73, T74, X185, X183))
HALVES41_IN_GAAA(.(T72, .(T73, T74)), .(T72, X184), .(X185, X186), X187) → LAST24_IN_AGAA(T73, T74, X185, X183)
HALVES41_IN_GAAA(.(T72, .(T73, T74)), .(T72, X184), .(T77, X186), X187) → U4_GAAA(T72, T73, T74, X184, T77, X186, X187, last24_in_agaa(T73, T74, T77, T78))
U4_GAAA(T72, T73, T74, X184, T77, X186, X187, last24_out_agaa(T73, T74, T77, T78)) → U5_GAAA(T72, T73, T74, X184, T77, X186, X187, halves41_in_gaaa(T78, X184, X186, X187))
U4_GAAA(T72, T73, T74, X184, T77, X186, X187, last24_out_agaa(T73, T74, T77, T78)) → HALVES41_IN_GAAA(T78, X184, X186, X187)
PALINDROME1_IN_G(.(T88, .(T22, T23))) → U10_G(T88, T22, T23, last24_in_agaa(T22, T23, T88, T27))
PALINDROME1_IN_G(.(T88, .(T22, T23))) → LAST24_IN_AGAA(T22, T23, T88, T27)
U10_G(T88, T22, T23, last24_out_agaa(T22, T23, T88, T27)) → U11_G(T88, T22, T23, halves41_in_gaag(T27, T89, T89, even))
U10_G(T88, T22, T23, last24_out_agaa(T22, T23, T88, T27)) → HALVES41_IN_GAAG(T27, T89, T89, even)
HALVES41_IN_GAAG(.(T72, .(T73, T74)), .(T72, X184), .(X185, X186), X187) → U3_GAAG(T72, T73, T74, X184, X185, X186, X187, last24_in_agaa(T73, T74, X185, X183))
HALVES41_IN_GAAG(.(T72, .(T73, T74)), .(T72, X184), .(X185, X186), X187) → LAST24_IN_AGAA(T73, T74, X185, X183)
HALVES41_IN_GAAG(.(T72, .(T73, T74)), .(T72, X184), .(T77, X186), X187) → U4_GAAG(T72, T73, T74, X184, T77, X186, X187, last24_in_agaa(T73, T74, T77, T78))
U4_GAAG(T72, T73, T74, X184, T77, X186, X187, last24_out_agaa(T73, T74, T77, T78)) → U5_GAAG(T72, T73, T74, X184, T77, X186, X187, halves41_in_gaag(T78, X184, X186, X187))
U4_GAAG(T72, T73, T74, X184, T77, X186, X187, last24_out_agaa(T73, T74, T77, T78)) → HALVES41_IN_GAAG(T78, X184, X186, X187)
PALINDROME1_IN_G(T92) → U12_G(T92, halves41_in_gaaa(T92, X214, X215, X216))
PALINDROME1_IN_G(T92) → HALVES41_IN_GAAA(T92, X214, X215, X216)
PALINDROME1_IN_G(T92) → U13_G(T92, halves41_in_gaag(T92, T93, T94, odd))
PALINDROME1_IN_G(T92) → HALVES41_IN_GAAG(T92, T93, T94, odd)
U13_G(T92, halves41_out_gaag(T92, T93, T94, odd)) → U14_G(T92, last70_in_aaa(T93, X217, T94))
U13_G(T92, halves41_out_gaag(T92, T93, T94, odd)) → LAST70_IN_AAA(T93, X217, T94)
LAST70_IN_AAA(.(T114, T115), X246, .(T114, T116)) → U6_AAA(T114, T115, X246, T116, last70_in_aaa(T115, X246, T116))
LAST70_IN_AAA(.(T114, T115), X246, .(T114, T116)) → LAST70_IN_AAA(T115, X246, T116)
palindrome1_in_g([]) → palindrome1_out_g([])
palindrome1_in_g(.(T21, .(T22, T23))) → U7_g(T21, T22, T23, last24_in_agaa(T22, T23, X75, X73))
last24_in_agaa(T34, [], T34, []) → last24_out_agaa(T34, [], T34, [])
last24_in_agaa(T41, T42, X113, .(T41, X114)) → U2_agaa(T41, T42, X113, X114, last32_in_gaa(T42, X113, X114))
last32_in_gaa(.(T49, []), T49, []) → last32_out_gaa(.(T49, []), T49, [])
last32_in_gaa(.(T54, T55), X139, .(T54, X140)) → U1_gaa(T54, T55, X139, X140, last32_in_gaa(T55, X139, X140))
U1_gaa(T54, T55, X139, X140, last32_out_gaa(T55, X139, X140)) → last32_out_gaa(.(T54, T55), X139, .(T54, X140))
U2_agaa(T41, T42, X113, X114, last32_out_gaa(T42, X113, X114)) → last24_out_agaa(T41, T42, X113, .(T41, X114))
U7_g(T21, T22, T23, last24_out_agaa(T22, T23, X75, X73)) → palindrome1_out_g(.(T21, .(T22, T23)))
palindrome1_in_g(.(T21, .(T22, T23))) → U8_g(T21, T22, T23, last24_in_agaa(T22, T23, T26, T27))
U8_g(T21, T22, T23, last24_out_agaa(T22, T23, T26, T27)) → U9_g(T21, T22, T23, halves41_in_gaaa(T27, X74, X76, X77))
halves41_in_gaaa([], [], [], even) → halves41_out_gaaa([], [], [], even)
halves41_in_gaaa(.(T65, []), .(T65, []), [], odd) → halves41_out_gaaa(.(T65, []), .(T65, []), [], odd)
halves41_in_gaaa(.(T72, .(T73, T74)), .(T72, X184), .(X185, X186), X187) → U3_gaaa(T72, T73, T74, X184, X185, X186, X187, last24_in_agaa(T73, T74, X185, X183))
U3_gaaa(T72, T73, T74, X184, X185, X186, X187, last24_out_agaa(T73, T74, X185, X183)) → halves41_out_gaaa(.(T72, .(T73, T74)), .(T72, X184), .(X185, X186), X187)
halves41_in_gaaa(.(T72, .(T73, T74)), .(T72, X184), .(T77, X186), X187) → U4_gaaa(T72, T73, T74, X184, T77, X186, X187, last24_in_agaa(T73, T74, T77, T78))
U4_gaaa(T72, T73, T74, X184, T77, X186, X187, last24_out_agaa(T73, T74, T77, T78)) → U5_gaaa(T72, T73, T74, X184, T77, X186, X187, halves41_in_gaaa(T78, X184, X186, X187))
U5_gaaa(T72, T73, T74, X184, T77, X186, X187, halves41_out_gaaa(T78, X184, X186, X187)) → halves41_out_gaaa(.(T72, .(T73, T74)), .(T72, X184), .(T77, X186), X187)
U9_g(T21, T22, T23, halves41_out_gaaa(T27, X74, X76, X77)) → palindrome1_out_g(.(T21, .(T22, T23)))
palindrome1_in_g(.(T88, .(T22, T23))) → U10_g(T88, T22, T23, last24_in_agaa(T22, T23, T88, T27))
U10_g(T88, T22, T23, last24_out_agaa(T22, T23, T88, T27)) → U11_g(T88, T22, T23, halves41_in_gaag(T27, T89, T89, even))
halves41_in_gaag([], [], [], even) → halves41_out_gaag([], [], [], even)
halves41_in_gaag(.(T65, []), .(T65, []), [], odd) → halves41_out_gaag(.(T65, []), .(T65, []), [], odd)
halves41_in_gaag(.(T72, .(T73, T74)), .(T72, X184), .(X185, X186), X187) → U3_gaag(T72, T73, T74, X184, X185, X186, X187, last24_in_agaa(T73, T74, X185, X183))
U3_gaag(T72, T73, T74, X184, X185, X186, X187, last24_out_agaa(T73, T74, X185, X183)) → halves41_out_gaag(.(T72, .(T73, T74)), .(T72, X184), .(X185, X186), X187)
halves41_in_gaag(.(T72, .(T73, T74)), .(T72, X184), .(T77, X186), X187) → U4_gaag(T72, T73, T74, X184, T77, X186, X187, last24_in_agaa(T73, T74, T77, T78))
U4_gaag(T72, T73, T74, X184, T77, X186, X187, last24_out_agaa(T73, T74, T77, T78)) → U5_gaag(T72, T73, T74, X184, T77, X186, X187, halves41_in_gaag(T78, X184, X186, X187))
U5_gaag(T72, T73, T74, X184, T77, X186, X187, halves41_out_gaag(T78, X184, X186, X187)) → halves41_out_gaag(.(T72, .(T73, T74)), .(T72, X184), .(T77, X186), X187)
U11_g(T88, T22, T23, halves41_out_gaag(T27, T89, T89, even)) → palindrome1_out_g(.(T88, .(T22, T23)))
palindrome1_in_g(T92) → U12_g(T92, halves41_in_gaaa(T92, X214, X215, X216))
U12_g(T92, halves41_out_gaaa(T92, X214, X215, X216)) → palindrome1_out_g(T92)
palindrome1_in_g(T92) → U13_g(T92, halves41_in_gaag(T92, T93, T94, odd))
U13_g(T92, halves41_out_gaag(T92, T93, T94, odd)) → U14_g(T92, last70_in_aaa(T93, X217, T94))
last70_in_aaa(.(T107, []), T107, []) → last70_out_aaa(.(T107, []), T107, [])
last70_in_aaa(.(T114, T115), X246, .(T114, T116)) → U6_aaa(T114, T115, X246, T116, last70_in_aaa(T115, X246, T116))
U6_aaa(T114, T115, X246, T116, last70_out_aaa(T115, X246, T116)) → last70_out_aaa(.(T114, T115), X246, .(T114, T116))
U14_g(T92, last70_out_aaa(T93, X217, T94)) → palindrome1_out_g(T92)
LAST70_IN_AAA(.(T114, T115), X246, .(T114, T116)) → LAST70_IN_AAA(T115, X246, T116)
palindrome1_in_g([]) → palindrome1_out_g([])
palindrome1_in_g(.(T21, .(T22, T23))) → U7_g(T21, T22, T23, last24_in_agaa(T22, T23, X75, X73))
last24_in_agaa(T34, [], T34, []) → last24_out_agaa(T34, [], T34, [])
last24_in_agaa(T41, T42, X113, .(T41, X114)) → U2_agaa(T41, T42, X113, X114, last32_in_gaa(T42, X113, X114))
last32_in_gaa(.(T49, []), T49, []) → last32_out_gaa(.(T49, []), T49, [])
last32_in_gaa(.(T54, T55), X139, .(T54, X140)) → U1_gaa(T54, T55, X139, X140, last32_in_gaa(T55, X139, X140))
U1_gaa(T54, T55, X139, X140, last32_out_gaa(T55, X139, X140)) → last32_out_gaa(.(T54, T55), X139, .(T54, X140))
U2_agaa(T41, T42, X113, X114, last32_out_gaa(T42, X113, X114)) → last24_out_agaa(T41, T42, X113, .(T41, X114))
U7_g(T21, T22, T23, last24_out_agaa(T22, T23, X75, X73)) → palindrome1_out_g(.(T21, .(T22, T23)))
palindrome1_in_g(.(T21, .(T22, T23))) → U8_g(T21, T22, T23, last24_in_agaa(T22, T23, T26, T27))
U8_g(T21, T22, T23, last24_out_agaa(T22, T23, T26, T27)) → U9_g(T21, T22, T23, halves41_in_gaaa(T27, X74, X76, X77))
halves41_in_gaaa([], [], [], even) → halves41_out_gaaa([], [], [], even)
halves41_in_gaaa(.(T65, []), .(T65, []), [], odd) → halves41_out_gaaa(.(T65, []), .(T65, []), [], odd)
halves41_in_gaaa(.(T72, .(T73, T74)), .(T72, X184), .(X185, X186), X187) → U3_gaaa(T72, T73, T74, X184, X185, X186, X187, last24_in_agaa(T73, T74, X185, X183))
U3_gaaa(T72, T73, T74, X184, X185, X186, X187, last24_out_agaa(T73, T74, X185, X183)) → halves41_out_gaaa(.(T72, .(T73, T74)), .(T72, X184), .(X185, X186), X187)
halves41_in_gaaa(.(T72, .(T73, T74)), .(T72, X184), .(T77, X186), X187) → U4_gaaa(T72, T73, T74, X184, T77, X186, X187, last24_in_agaa(T73, T74, T77, T78))
U4_gaaa(T72, T73, T74, X184, T77, X186, X187, last24_out_agaa(T73, T74, T77, T78)) → U5_gaaa(T72, T73, T74, X184, T77, X186, X187, halves41_in_gaaa(T78, X184, X186, X187))
U5_gaaa(T72, T73, T74, X184, T77, X186, X187, halves41_out_gaaa(T78, X184, X186, X187)) → halves41_out_gaaa(.(T72, .(T73, T74)), .(T72, X184), .(T77, X186), X187)
U9_g(T21, T22, T23, halves41_out_gaaa(T27, X74, X76, X77)) → palindrome1_out_g(.(T21, .(T22, T23)))
palindrome1_in_g(.(T88, .(T22, T23))) → U10_g(T88, T22, T23, last24_in_agaa(T22, T23, T88, T27))
U10_g(T88, T22, T23, last24_out_agaa(T22, T23, T88, T27)) → U11_g(T88, T22, T23, halves41_in_gaag(T27, T89, T89, even))
halves41_in_gaag([], [], [], even) → halves41_out_gaag([], [], [], even)
halves41_in_gaag(.(T65, []), .(T65, []), [], odd) → halves41_out_gaag(.(T65, []), .(T65, []), [], odd)
halves41_in_gaag(.(T72, .(T73, T74)), .(T72, X184), .(X185, X186), X187) → U3_gaag(T72, T73, T74, X184, X185, X186, X187, last24_in_agaa(T73, T74, X185, X183))
U3_gaag(T72, T73, T74, X184, X185, X186, X187, last24_out_agaa(T73, T74, X185, X183)) → halves41_out_gaag(.(T72, .(T73, T74)), .(T72, X184), .(X185, X186), X187)
halves41_in_gaag(.(T72, .(T73, T74)), .(T72, X184), .(T77, X186), X187) → U4_gaag(T72, T73, T74, X184, T77, X186, X187, last24_in_agaa(T73, T74, T77, T78))
U4_gaag(T72, T73, T74, X184, T77, X186, X187, last24_out_agaa(T73, T74, T77, T78)) → U5_gaag(T72, T73, T74, X184, T77, X186, X187, halves41_in_gaag(T78, X184, X186, X187))
U5_gaag(T72, T73, T74, X184, T77, X186, X187, halves41_out_gaag(T78, X184, X186, X187)) → halves41_out_gaag(.(T72, .(T73, T74)), .(T72, X184), .(T77, X186), X187)
U11_g(T88, T22, T23, halves41_out_gaag(T27, T89, T89, even)) → palindrome1_out_g(.(T88, .(T22, T23)))
palindrome1_in_g(T92) → U12_g(T92, halves41_in_gaaa(T92, X214, X215, X216))
U12_g(T92, halves41_out_gaaa(T92, X214, X215, X216)) → palindrome1_out_g(T92)
palindrome1_in_g(T92) → U13_g(T92, halves41_in_gaag(T92, T93, T94, odd))
U13_g(T92, halves41_out_gaag(T92, T93, T94, odd)) → U14_g(T92, last70_in_aaa(T93, X217, T94))
last70_in_aaa(.(T107, []), T107, []) → last70_out_aaa(.(T107, []), T107, [])
last70_in_aaa(.(T114, T115), X246, .(T114, T116)) → U6_aaa(T114, T115, X246, T116, last70_in_aaa(T115, X246, T116))
U6_aaa(T114, T115, X246, T116, last70_out_aaa(T115, X246, T116)) → last70_out_aaa(.(T114, T115), X246, .(T114, T116))
U14_g(T92, last70_out_aaa(T93, X217, T94)) → palindrome1_out_g(T92)
LAST70_IN_AAA(.(T114, T115), X246, .(T114, T116)) → LAST70_IN_AAA(T115, X246, T116)
LAST70_IN_AAA → LAST70_IN_AAA
LAST32_IN_GAA(.(T54, T55), X139, .(T54, X140)) → LAST32_IN_GAA(T55, X139, X140)
palindrome1_in_g([]) → palindrome1_out_g([])
palindrome1_in_g(.(T21, .(T22, T23))) → U7_g(T21, T22, T23, last24_in_agaa(T22, T23, X75, X73))
last24_in_agaa(T34, [], T34, []) → last24_out_agaa(T34, [], T34, [])
last24_in_agaa(T41, T42, X113, .(T41, X114)) → U2_agaa(T41, T42, X113, X114, last32_in_gaa(T42, X113, X114))
last32_in_gaa(.(T49, []), T49, []) → last32_out_gaa(.(T49, []), T49, [])
last32_in_gaa(.(T54, T55), X139, .(T54, X140)) → U1_gaa(T54, T55, X139, X140, last32_in_gaa(T55, X139, X140))
U1_gaa(T54, T55, X139, X140, last32_out_gaa(T55, X139, X140)) → last32_out_gaa(.(T54, T55), X139, .(T54, X140))
U2_agaa(T41, T42, X113, X114, last32_out_gaa(T42, X113, X114)) → last24_out_agaa(T41, T42, X113, .(T41, X114))
U7_g(T21, T22, T23, last24_out_agaa(T22, T23, X75, X73)) → palindrome1_out_g(.(T21, .(T22, T23)))
palindrome1_in_g(.(T21, .(T22, T23))) → U8_g(T21, T22, T23, last24_in_agaa(T22, T23, T26, T27))
U8_g(T21, T22, T23, last24_out_agaa(T22, T23, T26, T27)) → U9_g(T21, T22, T23, halves41_in_gaaa(T27, X74, X76, X77))
halves41_in_gaaa([], [], [], even) → halves41_out_gaaa([], [], [], even)
halves41_in_gaaa(.(T65, []), .(T65, []), [], odd) → halves41_out_gaaa(.(T65, []), .(T65, []), [], odd)
halves41_in_gaaa(.(T72, .(T73, T74)), .(T72, X184), .(X185, X186), X187) → U3_gaaa(T72, T73, T74, X184, X185, X186, X187, last24_in_agaa(T73, T74, X185, X183))
U3_gaaa(T72, T73, T74, X184, X185, X186, X187, last24_out_agaa(T73, T74, X185, X183)) → halves41_out_gaaa(.(T72, .(T73, T74)), .(T72, X184), .(X185, X186), X187)
halves41_in_gaaa(.(T72, .(T73, T74)), .(T72, X184), .(T77, X186), X187) → U4_gaaa(T72, T73, T74, X184, T77, X186, X187, last24_in_agaa(T73, T74, T77, T78))
U4_gaaa(T72, T73, T74, X184, T77, X186, X187, last24_out_agaa(T73, T74, T77, T78)) → U5_gaaa(T72, T73, T74, X184, T77, X186, X187, halves41_in_gaaa(T78, X184, X186, X187))
U5_gaaa(T72, T73, T74, X184, T77, X186, X187, halves41_out_gaaa(T78, X184, X186, X187)) → halves41_out_gaaa(.(T72, .(T73, T74)), .(T72, X184), .(T77, X186), X187)
U9_g(T21, T22, T23, halves41_out_gaaa(T27, X74, X76, X77)) → palindrome1_out_g(.(T21, .(T22, T23)))
palindrome1_in_g(.(T88, .(T22, T23))) → U10_g(T88, T22, T23, last24_in_agaa(T22, T23, T88, T27))
U10_g(T88, T22, T23, last24_out_agaa(T22, T23, T88, T27)) → U11_g(T88, T22, T23, halves41_in_gaag(T27, T89, T89, even))
halves41_in_gaag([], [], [], even) → halves41_out_gaag([], [], [], even)
halves41_in_gaag(.(T65, []), .(T65, []), [], odd) → halves41_out_gaag(.(T65, []), .(T65, []), [], odd)
halves41_in_gaag(.(T72, .(T73, T74)), .(T72, X184), .(X185, X186), X187) → U3_gaag(T72, T73, T74, X184, X185, X186, X187, last24_in_agaa(T73, T74, X185, X183))
U3_gaag(T72, T73, T74, X184, X185, X186, X187, last24_out_agaa(T73, T74, X185, X183)) → halves41_out_gaag(.(T72, .(T73, T74)), .(T72, X184), .(X185, X186), X187)
halves41_in_gaag(.(T72, .(T73, T74)), .(T72, X184), .(T77, X186), X187) → U4_gaag(T72, T73, T74, X184, T77, X186, X187, last24_in_agaa(T73, T74, T77, T78))
U4_gaag(T72, T73, T74, X184, T77, X186, X187, last24_out_agaa(T73, T74, T77, T78)) → U5_gaag(T72, T73, T74, X184, T77, X186, X187, halves41_in_gaag(T78, X184, X186, X187))
U5_gaag(T72, T73, T74, X184, T77, X186, X187, halves41_out_gaag(T78, X184, X186, X187)) → halves41_out_gaag(.(T72, .(T73, T74)), .(T72, X184), .(T77, X186), X187)
U11_g(T88, T22, T23, halves41_out_gaag(T27, T89, T89, even)) → palindrome1_out_g(.(T88, .(T22, T23)))
palindrome1_in_g(T92) → U12_g(T92, halves41_in_gaaa(T92, X214, X215, X216))
U12_g(T92, halves41_out_gaaa(T92, X214, X215, X216)) → palindrome1_out_g(T92)
palindrome1_in_g(T92) → U13_g(T92, halves41_in_gaag(T92, T93, T94, odd))
U13_g(T92, halves41_out_gaag(T92, T93, T94, odd)) → U14_g(T92, last70_in_aaa(T93, X217, T94))
last70_in_aaa(.(T107, []), T107, []) → last70_out_aaa(.(T107, []), T107, [])
last70_in_aaa(.(T114, T115), X246, .(T114, T116)) → U6_aaa(T114, T115, X246, T116, last70_in_aaa(T115, X246, T116))
U6_aaa(T114, T115, X246, T116, last70_out_aaa(T115, X246, T116)) → last70_out_aaa(.(T114, T115), X246, .(T114, T116))
U14_g(T92, last70_out_aaa(T93, X217, T94)) → palindrome1_out_g(T92)
LAST32_IN_GAA(.(T54, T55), X139, .(T54, X140)) → LAST32_IN_GAA(T55, X139, X140)
LAST32_IN_GAA(.(T55)) → LAST32_IN_GAA(T55)
From the DPs we obtained the following set of size-change graphs:
HALVES41_IN_GAAG(.(T72, .(T73, T74)), .(T72, X184), .(T77, X186), X187) → U4_GAAG(T72, T73, T74, X184, T77, X186, X187, last24_in_agaa(T73, T74, T77, T78))
U4_GAAG(T72, T73, T74, X184, T77, X186, X187, last24_out_agaa(T73, T74, T77, T78)) → HALVES41_IN_GAAG(T78, X184, X186, X187)
palindrome1_in_g([]) → palindrome1_out_g([])
palindrome1_in_g(.(T21, .(T22, T23))) → U7_g(T21, T22, T23, last24_in_agaa(T22, T23, X75, X73))
last24_in_agaa(T34, [], T34, []) → last24_out_agaa(T34, [], T34, [])
last24_in_agaa(T41, T42, X113, .(T41, X114)) → U2_agaa(T41, T42, X113, X114, last32_in_gaa(T42, X113, X114))
last32_in_gaa(.(T49, []), T49, []) → last32_out_gaa(.(T49, []), T49, [])
last32_in_gaa(.(T54, T55), X139, .(T54, X140)) → U1_gaa(T54, T55, X139, X140, last32_in_gaa(T55, X139, X140))
U1_gaa(T54, T55, X139, X140, last32_out_gaa(T55, X139, X140)) → last32_out_gaa(.(T54, T55), X139, .(T54, X140))
U2_agaa(T41, T42, X113, X114, last32_out_gaa(T42, X113, X114)) → last24_out_agaa(T41, T42, X113, .(T41, X114))
U7_g(T21, T22, T23, last24_out_agaa(T22, T23, X75, X73)) → palindrome1_out_g(.(T21, .(T22, T23)))
palindrome1_in_g(.(T21, .(T22, T23))) → U8_g(T21, T22, T23, last24_in_agaa(T22, T23, T26, T27))
U8_g(T21, T22, T23, last24_out_agaa(T22, T23, T26, T27)) → U9_g(T21, T22, T23, halves41_in_gaaa(T27, X74, X76, X77))
halves41_in_gaaa([], [], [], even) → halves41_out_gaaa([], [], [], even)
halves41_in_gaaa(.(T65, []), .(T65, []), [], odd) → halves41_out_gaaa(.(T65, []), .(T65, []), [], odd)
halves41_in_gaaa(.(T72, .(T73, T74)), .(T72, X184), .(X185, X186), X187) → U3_gaaa(T72, T73, T74, X184, X185, X186, X187, last24_in_agaa(T73, T74, X185, X183))
U3_gaaa(T72, T73, T74, X184, X185, X186, X187, last24_out_agaa(T73, T74, X185, X183)) → halves41_out_gaaa(.(T72, .(T73, T74)), .(T72, X184), .(X185, X186), X187)
halves41_in_gaaa(.(T72, .(T73, T74)), .(T72, X184), .(T77, X186), X187) → U4_gaaa(T72, T73, T74, X184, T77, X186, X187, last24_in_agaa(T73, T74, T77, T78))
U4_gaaa(T72, T73, T74, X184, T77, X186, X187, last24_out_agaa(T73, T74, T77, T78)) → U5_gaaa(T72, T73, T74, X184, T77, X186, X187, halves41_in_gaaa(T78, X184, X186, X187))
U5_gaaa(T72, T73, T74, X184, T77, X186, X187, halves41_out_gaaa(T78, X184, X186, X187)) → halves41_out_gaaa(.(T72, .(T73, T74)), .(T72, X184), .(T77, X186), X187)
U9_g(T21, T22, T23, halves41_out_gaaa(T27, X74, X76, X77)) → palindrome1_out_g(.(T21, .(T22, T23)))
palindrome1_in_g(.(T88, .(T22, T23))) → U10_g(T88, T22, T23, last24_in_agaa(T22, T23, T88, T27))
U10_g(T88, T22, T23, last24_out_agaa(T22, T23, T88, T27)) → U11_g(T88, T22, T23, halves41_in_gaag(T27, T89, T89, even))
halves41_in_gaag([], [], [], even) → halves41_out_gaag([], [], [], even)
halves41_in_gaag(.(T65, []), .(T65, []), [], odd) → halves41_out_gaag(.(T65, []), .(T65, []), [], odd)
halves41_in_gaag(.(T72, .(T73, T74)), .(T72, X184), .(X185, X186), X187) → U3_gaag(T72, T73, T74, X184, X185, X186, X187, last24_in_agaa(T73, T74, X185, X183))
U3_gaag(T72, T73, T74, X184, X185, X186, X187, last24_out_agaa(T73, T74, X185, X183)) → halves41_out_gaag(.(T72, .(T73, T74)), .(T72, X184), .(X185, X186), X187)
halves41_in_gaag(.(T72, .(T73, T74)), .(T72, X184), .(T77, X186), X187) → U4_gaag(T72, T73, T74, X184, T77, X186, X187, last24_in_agaa(T73, T74, T77, T78))
U4_gaag(T72, T73, T74, X184, T77, X186, X187, last24_out_agaa(T73, T74, T77, T78)) → U5_gaag(T72, T73, T74, X184, T77, X186, X187, halves41_in_gaag(T78, X184, X186, X187))
U5_gaag(T72, T73, T74, X184, T77, X186, X187, halves41_out_gaag(T78, X184, X186, X187)) → halves41_out_gaag(.(T72, .(T73, T74)), .(T72, X184), .(T77, X186), X187)
U11_g(T88, T22, T23, halves41_out_gaag(T27, T89, T89, even)) → palindrome1_out_g(.(T88, .(T22, T23)))
palindrome1_in_g(T92) → U12_g(T92, halves41_in_gaaa(T92, X214, X215, X216))
U12_g(T92, halves41_out_gaaa(T92, X214, X215, X216)) → palindrome1_out_g(T92)
palindrome1_in_g(T92) → U13_g(T92, halves41_in_gaag(T92, T93, T94, odd))
U13_g(T92, halves41_out_gaag(T92, T93, T94, odd)) → U14_g(T92, last70_in_aaa(T93, X217, T94))
last70_in_aaa(.(T107, []), T107, []) → last70_out_aaa(.(T107, []), T107, [])
last70_in_aaa(.(T114, T115), X246, .(T114, T116)) → U6_aaa(T114, T115, X246, T116, last70_in_aaa(T115, X246, T116))
U6_aaa(T114, T115, X246, T116, last70_out_aaa(T115, X246, T116)) → last70_out_aaa(.(T114, T115), X246, .(T114, T116))
U14_g(T92, last70_out_aaa(T93, X217, T94)) → palindrome1_out_g(T92)
HALVES41_IN_GAAG(.(T72, .(T73, T74)), .(T72, X184), .(T77, X186), X187) → U4_GAAG(T72, T73, T74, X184, T77, X186, X187, last24_in_agaa(T73, T74, T77, T78))
U4_GAAG(T72, T73, T74, X184, T77, X186, X187, last24_out_agaa(T73, T74, T77, T78)) → HALVES41_IN_GAAG(T78, X184, X186, X187)
last24_in_agaa(T34, [], T34, []) → last24_out_agaa(T34, [], T34, [])
last24_in_agaa(T41, T42, X113, .(T41, X114)) → U2_agaa(T41, T42, X113, X114, last32_in_gaa(T42, X113, X114))
U2_agaa(T41, T42, X113, X114, last32_out_gaa(T42, X113, X114)) → last24_out_agaa(T41, T42, X113, .(T41, X114))
last32_in_gaa(.(T49, []), T49, []) → last32_out_gaa(.(T49, []), T49, [])
last32_in_gaa(.(T54, T55), X139, .(T54, X140)) → U1_gaa(T54, T55, X139, X140, last32_in_gaa(T55, X139, X140))
U1_gaa(T54, T55, X139, X140, last32_out_gaa(T55, X139, X140)) → last32_out_gaa(.(T54, T55), X139, .(T54, X140))
HALVES41_IN_GAAG(.(.(T74)), X187) → U4_GAAG(T74, X187, last24_in_agaa(T74))
U4_GAAG(T74, X187, last24_out_agaa(T74, T78)) → HALVES41_IN_GAAG(T78, X187)
last24_in_agaa([]) → last24_out_agaa([], [])
last24_in_agaa(T42) → U2_agaa(T42, last32_in_gaa(T42))
U2_agaa(T42, last32_out_gaa(T42, X114)) → last24_out_agaa(T42, .(X114))
last32_in_gaa(.([])) → last32_out_gaa(.([]), [])
last32_in_gaa(.(T55)) → U1_gaa(T55, last32_in_gaa(T55))
U1_gaa(T55, last32_out_gaa(T55, X140)) → last32_out_gaa(.(T55), .(X140))
last24_in_agaa(x0)
U2_agaa(x0, x1)
last32_in_gaa(x0)
U1_gaa(x0, x1)
The following pairs can be oriented strictly and are deleted.
The remaining pairs can at least be oriented weakly.
HALVES41_IN_GAAG(.(.(T74)), X187) → U4_GAAG(T74, X187, last24_in_agaa(T74))
POL( U4_GAAG(x1, ..., x3) ) = 2x2 + 2x3 + 2
POL( last24_in_agaa(x1) ) = 2x1
POL( [] ) = 0
POL( last24_out_agaa(x1, x2) ) = max{0, x2 - 1}
POL( U2_agaa(x1, x2) ) = max{0, 2x2 - 2}
POL( last32_in_gaa(x1) ) = x1
POL( .(x1) ) = 2x1 + 2
POL( last32_out_gaa(x1, x2) ) = x2 + 2
POL( U1_gaa(x1, x2) ) = 2x2 + 2
POL( HALVES41_IN_GAAG(x1, x2) ) = x1 + 2x2
last24_in_agaa([]) → last24_out_agaa([], [])
last24_in_agaa(T42) → U2_agaa(T42, last32_in_gaa(T42))
last32_in_gaa(.([])) → last32_out_gaa(.([]), [])
last32_in_gaa(.(T55)) → U1_gaa(T55, last32_in_gaa(T55))
U2_agaa(T42, last32_out_gaa(T42, X114)) → last24_out_agaa(T42, .(X114))
U1_gaa(T55, last32_out_gaa(T55, X140)) → last32_out_gaa(.(T55), .(X140))
U4_GAAG(T74, X187, last24_out_agaa(T74, T78)) → HALVES41_IN_GAAG(T78, X187)
last24_in_agaa([]) → last24_out_agaa([], [])
last24_in_agaa(T42) → U2_agaa(T42, last32_in_gaa(T42))
U2_agaa(T42, last32_out_gaa(T42, X114)) → last24_out_agaa(T42, .(X114))
last32_in_gaa(.([])) → last32_out_gaa(.([]), [])
last32_in_gaa(.(T55)) → U1_gaa(T55, last32_in_gaa(T55))
U1_gaa(T55, last32_out_gaa(T55, X140)) → last32_out_gaa(.(T55), .(X140))
last24_in_agaa(x0)
U2_agaa(x0, x1)
last32_in_gaa(x0)
U1_gaa(x0, x1)
HALVES41_IN_GAAA(.(T72, .(T73, T74)), .(T72, X184), .(T77, X186), X187) → U4_GAAA(T72, T73, T74, X184, T77, X186, X187, last24_in_agaa(T73, T74, T77, T78))
U4_GAAA(T72, T73, T74, X184, T77, X186, X187, last24_out_agaa(T73, T74, T77, T78)) → HALVES41_IN_GAAA(T78, X184, X186, X187)
palindrome1_in_g([]) → palindrome1_out_g([])
palindrome1_in_g(.(T21, .(T22, T23))) → U7_g(T21, T22, T23, last24_in_agaa(T22, T23, X75, X73))
last24_in_agaa(T34, [], T34, []) → last24_out_agaa(T34, [], T34, [])
last24_in_agaa(T41, T42, X113, .(T41, X114)) → U2_agaa(T41, T42, X113, X114, last32_in_gaa(T42, X113, X114))
last32_in_gaa(.(T49, []), T49, []) → last32_out_gaa(.(T49, []), T49, [])
last32_in_gaa(.(T54, T55), X139, .(T54, X140)) → U1_gaa(T54, T55, X139, X140, last32_in_gaa(T55, X139, X140))
U1_gaa(T54, T55, X139, X140, last32_out_gaa(T55, X139, X140)) → last32_out_gaa(.(T54, T55), X139, .(T54, X140))
U2_agaa(T41, T42, X113, X114, last32_out_gaa(T42, X113, X114)) → last24_out_agaa(T41, T42, X113, .(T41, X114))
U7_g(T21, T22, T23, last24_out_agaa(T22, T23, X75, X73)) → palindrome1_out_g(.(T21, .(T22, T23)))
palindrome1_in_g(.(T21, .(T22, T23))) → U8_g(T21, T22, T23, last24_in_agaa(T22, T23, T26, T27))
U8_g(T21, T22, T23, last24_out_agaa(T22, T23, T26, T27)) → U9_g(T21, T22, T23, halves41_in_gaaa(T27, X74, X76, X77))
halves41_in_gaaa([], [], [], even) → halves41_out_gaaa([], [], [], even)
halves41_in_gaaa(.(T65, []), .(T65, []), [], odd) → halves41_out_gaaa(.(T65, []), .(T65, []), [], odd)
halves41_in_gaaa(.(T72, .(T73, T74)), .(T72, X184), .(X185, X186), X187) → U3_gaaa(T72, T73, T74, X184, X185, X186, X187, last24_in_agaa(T73, T74, X185, X183))
U3_gaaa(T72, T73, T74, X184, X185, X186, X187, last24_out_agaa(T73, T74, X185, X183)) → halves41_out_gaaa(.(T72, .(T73, T74)), .(T72, X184), .(X185, X186), X187)
halves41_in_gaaa(.(T72, .(T73, T74)), .(T72, X184), .(T77, X186), X187) → U4_gaaa(T72, T73, T74, X184, T77, X186, X187, last24_in_agaa(T73, T74, T77, T78))
U4_gaaa(T72, T73, T74, X184, T77, X186, X187, last24_out_agaa(T73, T74, T77, T78)) → U5_gaaa(T72, T73, T74, X184, T77, X186, X187, halves41_in_gaaa(T78, X184, X186, X187))
U5_gaaa(T72, T73, T74, X184, T77, X186, X187, halves41_out_gaaa(T78, X184, X186, X187)) → halves41_out_gaaa(.(T72, .(T73, T74)), .(T72, X184), .(T77, X186), X187)
U9_g(T21, T22, T23, halves41_out_gaaa(T27, X74, X76, X77)) → palindrome1_out_g(.(T21, .(T22, T23)))
palindrome1_in_g(.(T88, .(T22, T23))) → U10_g(T88, T22, T23, last24_in_agaa(T22, T23, T88, T27))
U10_g(T88, T22, T23, last24_out_agaa(T22, T23, T88, T27)) → U11_g(T88, T22, T23, halves41_in_gaag(T27, T89, T89, even))
halves41_in_gaag([], [], [], even) → halves41_out_gaag([], [], [], even)
halves41_in_gaag(.(T65, []), .(T65, []), [], odd) → halves41_out_gaag(.(T65, []), .(T65, []), [], odd)
halves41_in_gaag(.(T72, .(T73, T74)), .(T72, X184), .(X185, X186), X187) → U3_gaag(T72, T73, T74, X184, X185, X186, X187, last24_in_agaa(T73, T74, X185, X183))
U3_gaag(T72, T73, T74, X184, X185, X186, X187, last24_out_agaa(T73, T74, X185, X183)) → halves41_out_gaag(.(T72, .(T73, T74)), .(T72, X184), .(X185, X186), X187)
halves41_in_gaag(.(T72, .(T73, T74)), .(T72, X184), .(T77, X186), X187) → U4_gaag(T72, T73, T74, X184, T77, X186, X187, last24_in_agaa(T73, T74, T77, T78))
U4_gaag(T72, T73, T74, X184, T77, X186, X187, last24_out_agaa(T73, T74, T77, T78)) → U5_gaag(T72, T73, T74, X184, T77, X186, X187, halves41_in_gaag(T78, X184, X186, X187))
U5_gaag(T72, T73, T74, X184, T77, X186, X187, halves41_out_gaag(T78, X184, X186, X187)) → halves41_out_gaag(.(T72, .(T73, T74)), .(T72, X184), .(T77, X186), X187)
U11_g(T88, T22, T23, halves41_out_gaag(T27, T89, T89, even)) → palindrome1_out_g(.(T88, .(T22, T23)))
palindrome1_in_g(T92) → U12_g(T92, halves41_in_gaaa(T92, X214, X215, X216))
U12_g(T92, halves41_out_gaaa(T92, X214, X215, X216)) → palindrome1_out_g(T92)
palindrome1_in_g(T92) → U13_g(T92, halves41_in_gaag(T92, T93, T94, odd))
U13_g(T92, halves41_out_gaag(T92, T93, T94, odd)) → U14_g(T92, last70_in_aaa(T93, X217, T94))
last70_in_aaa(.(T107, []), T107, []) → last70_out_aaa(.(T107, []), T107, [])
last70_in_aaa(.(T114, T115), X246, .(T114, T116)) → U6_aaa(T114, T115, X246, T116, last70_in_aaa(T115, X246, T116))
U6_aaa(T114, T115, X246, T116, last70_out_aaa(T115, X246, T116)) → last70_out_aaa(.(T114, T115), X246, .(T114, T116))
U14_g(T92, last70_out_aaa(T93, X217, T94)) → palindrome1_out_g(T92)
HALVES41_IN_GAAA(.(T72, .(T73, T74)), .(T72, X184), .(T77, X186), X187) → U4_GAAA(T72, T73, T74, X184, T77, X186, X187, last24_in_agaa(T73, T74, T77, T78))
U4_GAAA(T72, T73, T74, X184, T77, X186, X187, last24_out_agaa(T73, T74, T77, T78)) → HALVES41_IN_GAAA(T78, X184, X186, X187)
last24_in_agaa(T34, [], T34, []) → last24_out_agaa(T34, [], T34, [])
last24_in_agaa(T41, T42, X113, .(T41, X114)) → U2_agaa(T41, T42, X113, X114, last32_in_gaa(T42, X113, X114))
U2_agaa(T41, T42, X113, X114, last32_out_gaa(T42, X113, X114)) → last24_out_agaa(T41, T42, X113, .(T41, X114))
last32_in_gaa(.(T49, []), T49, []) → last32_out_gaa(.(T49, []), T49, [])
last32_in_gaa(.(T54, T55), X139, .(T54, X140)) → U1_gaa(T54, T55, X139, X140, last32_in_gaa(T55, X139, X140))
U1_gaa(T54, T55, X139, X140, last32_out_gaa(T55, X139, X140)) → last32_out_gaa(.(T54, T55), X139, .(T54, X140))
HALVES41_IN_GAAA(.(.(T74))) → U4_GAAA(T74, last24_in_agaa(T74))
U4_GAAA(T74, last24_out_agaa(T74, T78)) → HALVES41_IN_GAAA(T78)
last24_in_agaa([]) → last24_out_agaa([], [])
last24_in_agaa(T42) → U2_agaa(T42, last32_in_gaa(T42))
U2_agaa(T42, last32_out_gaa(T42, X114)) → last24_out_agaa(T42, .(X114))
last32_in_gaa(.([])) → last32_out_gaa(.([]), [])
last32_in_gaa(.(T55)) → U1_gaa(T55, last32_in_gaa(T55))
U1_gaa(T55, last32_out_gaa(T55, X140)) → last32_out_gaa(.(T55), .(X140))
last24_in_agaa(x0)
U2_agaa(x0, x1)
last32_in_gaa(x0)
U1_gaa(x0, x1)
The following pairs can be oriented strictly and are deleted.
The remaining pairs can at least be oriented weakly.
HALVES41_IN_GAAA(.(.(T74))) → U4_GAAA(T74, last24_in_agaa(T74))
POL(.(x1)) = 1 + x1
POL(HALVES41_IN_GAAA(x1)) = x1
POL(U1_gaa(x1, x2)) = 1 + x2
POL(U2_agaa(x1, x2)) = 1 + x2
POL(U4_GAAA(x1, x2)) = x2
POL([]) = 0
POL(last24_in_agaa(x1)) = 1 + x1
POL(last24_out_agaa(x1, x2)) = x2
POL(last32_in_gaa(x1)) = x1
POL(last32_out_gaa(x1, x2)) = x2
last24_in_agaa([]) → last24_out_agaa([], [])
last24_in_agaa(T42) → U2_agaa(T42, last32_in_gaa(T42))
last32_in_gaa(.([])) → last32_out_gaa(.([]), [])
last32_in_gaa(.(T55)) → U1_gaa(T55, last32_in_gaa(T55))
U2_agaa(T42, last32_out_gaa(T42, X114)) → last24_out_agaa(T42, .(X114))
U1_gaa(T55, last32_out_gaa(T55, X140)) → last32_out_gaa(.(T55), .(X140))
U4_GAAA(T74, last24_out_agaa(T74, T78)) → HALVES41_IN_GAAA(T78)
last24_in_agaa([]) → last24_out_agaa([], [])
last24_in_agaa(T42) → U2_agaa(T42, last32_in_gaa(T42))
U2_agaa(T42, last32_out_gaa(T42, X114)) → last24_out_agaa(T42, .(X114))
last32_in_gaa(.([])) → last32_out_gaa(.([]), [])
last32_in_gaa(.(T55)) → U1_gaa(T55, last32_in_gaa(T55))
U1_gaa(T55, last32_out_gaa(T55, X140)) → last32_out_gaa(.(T55), .(X140))
last24_in_agaa(x0)
U2_agaa(x0, x1)
last32_in_gaa(x0)
U1_gaa(x0, x1)