0 Prolog
↳1 PrologToPiTRSViaGraphTransformerProof (⇒, 206 ms)
↳2 PiTRS
↳3 DependencyPairsProof (⇔, 596 ms)
↳4 PiDP
↳5 DependencyGraphProof (⇔, 45 ms)
↳6 AND
↳7 PiDP
↳8 UsableRulesProof (⇔, 0 ms)
↳9 PiDP
↳10 PiDPToQDPProof (⇔, 0 ms)
↳11 QDP
↳12 QDPSizeChangeProof (⇔, 0 ms)
↳13 YES
↳14 PiDP
↳15 UsableRulesProof (⇔, 0 ms)
↳16 PiDP
↳17 PiDPToQDPProof (⇔, 0 ms)
↳18 QDP
↳19 QDPSizeChangeProof (⇔, 0 ms)
↳20 YES
↳21 PiDP
↳22 UsableRulesProof (⇔, 2 ms)
↳23 PiDP
↳24 PiDPToQDPProof (⇒, 0 ms)
↳25 QDP
↳26 MRRProof (⇔, 248 ms)
↳27 QDP
↳28 DependencyGraphProof (⇔, 0 ms)
↳29 TRUE
↳30 PiDP
↳31 UsableRulesProof (⇔, 0 ms)
↳32 PiDP
↳33 PiDPToQDPProof (⇒, 0 ms)
↳34 QDP
↳35 QDPSizeChangeProof (⇔, 0 ms)
↳36 YES
↳37 PiDP
↳38 UsableRulesProof (⇔, 0 ms)
↳39 PiDP
↳40 PiDPToQDPProof (⇒, 0 ms)
↳41 QDP
↳42 Rewriting (⇔, 210 ms)
↳43 QDP
↳44 Rewriting (⇔, 0 ms)
↳45 QDP
↳46 QDPOrderProof (⇔, 1883 ms)
↳47 QDP
↳48 DependencyGraphProof (⇔, 0 ms)
↳49 TRUE
↳50 PiDP
↳51 UsableRulesProof (⇔, 0 ms)
↳52 PiDP
↳53 PiDPToQDPProof (⇒, 11 ms)
↳54 QDP
↳55 Rewriting (⇔, 0 ms)
↳56 QDP
↳57 UsableRulesProof (⇔, 0 ms)
↳58 QDP
↳59 QReductionProof (⇔, 0 ms)
↳60 QDP
↳61 QDPOrderProof (⇔, 55 ms)
↳62 QDP
↳63 DependencyGraphProof (⇔, 0 ms)
↳64 TRUE
mergesortA_in_ga([], []) → mergesortA_out_ga([], [])
mergesortA_in_ga(.(T4, []), .(T4, [])) → mergesortA_out_ga(.(T4, []), .(T4, []))
mergesortA_in_ga(.(T21, .(T22, T23)), T14) → U1_ga(T21, T22, T23, T14, pB_in_ggaagaaa(T22, T23, X41, X40, T21, X22, X23, T14))
pB_in_ggaagaaa(T22, T23, T24, T25, T21, X22, X23, T14) → U9_ggaagaaa(T22, T23, T24, T25, T21, X22, X23, T14, splitD_in_ggaa(T22, T23, T24, T25))
splitD_in_ggaa(T30, T31, .(T30, X58), X59) → U3_ggaa(T30, T31, X58, X59, splitC_in_gaa(T31, X59, X58))
splitC_in_gaa([], [], []) → splitC_out_gaa([], [], [])
splitC_in_gaa(.(T36, T37), .(T36, X76), X77) → U2_gaa(T36, T37, X76, X77, splitC_in_gaa(T37, X77, X76))
U2_gaa(T36, T37, X76, X77, splitC_out_gaa(T37, X77, X76)) → splitC_out_gaa(.(T36, T37), .(T36, X76), X77)
U3_ggaa(T30, T31, X58, X59, splitC_out_gaa(T31, X59, X58)) → splitD_out_ggaa(T30, T31, .(T30, X58), X59)
U9_ggaagaaa(T22, T23, T24, T25, T21, X22, X23, T14, splitD_out_ggaa(T22, T23, T24, T25)) → U10_ggaagaaa(T22, T23, T24, T25, T21, X22, X23, T14, pL_in_ggagaa(T21, T25, X22, T24, X23, T14))
pL_in_ggagaa(T21, T25, T38, T24, X23, T14) → U11_ggagaa(T21, T25, T38, T24, X23, T14, mergesortA_in_ga(.(T21, T25), T38))
U11_ggagaa(T21, T25, T38, T24, X23, T14, mergesortA_out_ga(.(T21, T25), T38)) → U12_ggagaa(T21, T25, T38, T24, X23, T14, pM_in_gaga(T24, X23, T38, T14))
pM_in_gaga(T24, T39, T38, T14) → U13_gaga(T24, T39, T38, T14, mergesortE_in_ga(T24, T39))
mergesortE_in_ga([], []) → mergesortE_out_ga([], [])
mergesortE_in_ga(.(T44, []), .(T44, [])) → mergesortE_out_ga(.(T44, []), .(T44, []))
mergesortE_in_ga(.(T51, .(T52, T53)), X105) → U4_ga(T51, T52, T53, X105, pF_in_gggaaaaa(T51, T52, T53, X101, X102, X103, X104, X105))
pF_in_gggaaaaa(T51, T52, T53, T54, T55, X103, X104, X105) → U15_gggaaaaa(T51, T52, T53, T54, T55, X103, X104, X105, splitD_in_ggaa(T51, .(T52, T53), T54, T55))
U15_gggaaaaa(T51, T52, T53, T54, T55, X103, X104, X105, splitD_out_ggaa(T51, .(T52, T53), T54, T55)) → U16_gggaaaaa(T51, T52, T53, T54, T55, X103, X104, X105, pN_in_gagaa(T54, X103, T55, X104, X105))
pN_in_gagaa(T54, T56, T55, X104, X105) → U17_gagaa(T54, T56, T55, X104, X105, mergesortE_in_ga(T54, T56))
U17_gagaa(T54, T56, T55, X104, X105, mergesortE_out_ga(T54, T56)) → U18_gagaa(T54, T56, T55, X104, X105, pO_in_gaga(T55, X104, T56, X105))
pO_in_gaga(T55, T57, T56, X105) → U19_gaga(T55, T57, T56, X105, mergesortE_in_ga(T55, T57))
U19_gaga(T55, T57, T56, X105, mergesortE_out_ga(T55, T57)) → U20_gaga(T55, T57, T56, X105, mergeG_in_gga(T56, T57, X105))
mergeG_in_gga([], T66, T66) → mergeG_out_gga([], T66, T66)
mergeG_in_gga(T71, [], T71) → mergeG_out_gga(T71, [], T71)
mergeG_in_gga(.(T92, T93), .(T94, T95), .(T92, T97)) → U5_gga(T92, T93, T94, T95, T97, pH_in_gggga(T92, T94, T93, T95, T97))
pH_in_gggga(T92, T94, T93, T95, T97) → U21_gggga(T92, T94, T93, T95, T97, leJ_in_gg(T92, T94))
leJ_in_gg(s(T110), s(T111)) → U7_gg(T110, T111, leJ_in_gg(T110, T111))
leJ_in_gg(0, s(T118)) → leJ_out_gg(0, s(T118))
leJ_in_gg(0, 0) → leJ_out_gg(0, 0)
U7_gg(T110, T111, leJ_out_gg(T110, T111)) → leJ_out_gg(s(T110), s(T111))
U21_gggga(T92, T94, T93, T95, T97, leJ_out_gg(T92, T94)) → U22_gggga(T92, T94, T93, T95, T97, mergeG_in_gga(T93, .(T94, T95), T97))
mergeG_in_gga(.(T133, T134), .(T135, T136), .(T135, T138)) → U6_gga(T133, T134, T135, T136, T138, pI_in_gggga(T133, T135, T134, T136, T138))
pI_in_gggga(T133, T135, T134, T136, T138) → U23_gggga(T133, T135, T134, T136, T138, gtK_in_gg(T133, T135))
gtK_in_gg(s(T151), s(T152)) → U8_gg(T151, T152, gtK_in_gg(T151, T152))
gtK_in_gg(s(T157), 0) → gtK_out_gg(s(T157), 0)
U8_gg(T151, T152, gtK_out_gg(T151, T152)) → gtK_out_gg(s(T151), s(T152))
U23_gggga(T133, T135, T134, T136, T138, gtK_out_gg(T133, T135)) → U24_gggga(T133, T135, T134, T136, T138, mergeG_in_gga(.(T133, T134), T136, T138))
U24_gggga(T133, T135, T134, T136, T138, mergeG_out_gga(.(T133, T134), T136, T138)) → pI_out_gggga(T133, T135, T134, T136, T138)
U6_gga(T133, T134, T135, T136, T138, pI_out_gggga(T133, T135, T134, T136, T138)) → mergeG_out_gga(.(T133, T134), .(T135, T136), .(T135, T138))
U22_gggga(T92, T94, T93, T95, T97, mergeG_out_gga(T93, .(T94, T95), T97)) → pH_out_gggga(T92, T94, T93, T95, T97)
U5_gga(T92, T93, T94, T95, T97, pH_out_gggga(T92, T94, T93, T95, T97)) → mergeG_out_gga(.(T92, T93), .(T94, T95), .(T92, T97))
U20_gaga(T55, T57, T56, X105, mergeG_out_gga(T56, T57, X105)) → pO_out_gaga(T55, T57, T56, X105)
U18_gagaa(T54, T56, T55, X104, X105, pO_out_gaga(T55, X104, T56, X105)) → pN_out_gagaa(T54, T56, T55, X104, X105)
U16_gggaaaaa(T51, T52, T53, T54, T55, X103, X104, X105, pN_out_gagaa(T54, X103, T55, X104, X105)) → pF_out_gggaaaaa(T51, T52, T53, T54, T55, X103, X104, X105)
U4_ga(T51, T52, T53, X105, pF_out_gggaaaaa(T51, T52, T53, X101, X102, X103, X104, X105)) → mergesortE_out_ga(.(T51, .(T52, T53)), X105)
U13_gaga(T24, T39, T38, T14, mergesortE_out_ga(T24, T39)) → U14_gaga(T24, T39, T38, T14, mergeG_in_gga(T38, T39, T14))
U14_gaga(T24, T39, T38, T14, mergeG_out_gga(T38, T39, T14)) → pM_out_gaga(T24, T39, T38, T14)
U12_ggagaa(T21, T25, T38, T24, X23, T14, pM_out_gaga(T24, X23, T38, T14)) → pL_out_ggagaa(T21, T25, T38, T24, X23, T14)
U10_ggaagaaa(T22, T23, T24, T25, T21, X22, X23, T14, pL_out_ggagaa(T21, T25, X22, T24, X23, T14)) → pB_out_ggaagaaa(T22, T23, T24, T25, T21, X22, X23, T14)
U1_ga(T21, T22, T23, T14, pB_out_ggaagaaa(T22, T23, X41, X40, T21, X22, X23, T14)) → mergesortA_out_ga(.(T21, .(T22, T23)), T14)
MERGESORTA_IN_GA(.(T21, .(T22, T23)), T14) → U1_GA(T21, T22, T23, T14, pB_in_ggaagaaa(T22, T23, X41, X40, T21, X22, X23, T14))
MERGESORTA_IN_GA(.(T21, .(T22, T23)), T14) → PB_IN_GGAAGAAA(T22, T23, X41, X40, T21, X22, X23, T14)
PB_IN_GGAAGAAA(T22, T23, T24, T25, T21, X22, X23, T14) → U9_GGAAGAAA(T22, T23, T24, T25, T21, X22, X23, T14, splitD_in_ggaa(T22, T23, T24, T25))
PB_IN_GGAAGAAA(T22, T23, T24, T25, T21, X22, X23, T14) → SPLITD_IN_GGAA(T22, T23, T24, T25)
SPLITD_IN_GGAA(T30, T31, .(T30, X58), X59) → U3_GGAA(T30, T31, X58, X59, splitC_in_gaa(T31, X59, X58))
SPLITD_IN_GGAA(T30, T31, .(T30, X58), X59) → SPLITC_IN_GAA(T31, X59, X58)
SPLITC_IN_GAA(.(T36, T37), .(T36, X76), X77) → U2_GAA(T36, T37, X76, X77, splitC_in_gaa(T37, X77, X76))
SPLITC_IN_GAA(.(T36, T37), .(T36, X76), X77) → SPLITC_IN_GAA(T37, X77, X76)
U9_GGAAGAAA(T22, T23, T24, T25, T21, X22, X23, T14, splitD_out_ggaa(T22, T23, T24, T25)) → U10_GGAAGAAA(T22, T23, T24, T25, T21, X22, X23, T14, pL_in_ggagaa(T21, T25, X22, T24, X23, T14))
U9_GGAAGAAA(T22, T23, T24, T25, T21, X22, X23, T14, splitD_out_ggaa(T22, T23, T24, T25)) → PL_IN_GGAGAA(T21, T25, X22, T24, X23, T14)
PL_IN_GGAGAA(T21, T25, T38, T24, X23, T14) → U11_GGAGAA(T21, T25, T38, T24, X23, T14, mergesortA_in_ga(.(T21, T25), T38))
PL_IN_GGAGAA(T21, T25, T38, T24, X23, T14) → MERGESORTA_IN_GA(.(T21, T25), T38)
U11_GGAGAA(T21, T25, T38, T24, X23, T14, mergesortA_out_ga(.(T21, T25), T38)) → U12_GGAGAA(T21, T25, T38, T24, X23, T14, pM_in_gaga(T24, X23, T38, T14))
U11_GGAGAA(T21, T25, T38, T24, X23, T14, mergesortA_out_ga(.(T21, T25), T38)) → PM_IN_GAGA(T24, X23, T38, T14)
PM_IN_GAGA(T24, T39, T38, T14) → U13_GAGA(T24, T39, T38, T14, mergesortE_in_ga(T24, T39))
PM_IN_GAGA(T24, T39, T38, T14) → MERGESORTE_IN_GA(T24, T39)
MERGESORTE_IN_GA(.(T51, .(T52, T53)), X105) → U4_GA(T51, T52, T53, X105, pF_in_gggaaaaa(T51, T52, T53, X101, X102, X103, X104, X105))
MERGESORTE_IN_GA(.(T51, .(T52, T53)), X105) → PF_IN_GGGAAAAA(T51, T52, T53, X101, X102, X103, X104, X105)
PF_IN_GGGAAAAA(T51, T52, T53, T54, T55, X103, X104, X105) → U15_GGGAAAAA(T51, T52, T53, T54, T55, X103, X104, X105, splitD_in_ggaa(T51, .(T52, T53), T54, T55))
PF_IN_GGGAAAAA(T51, T52, T53, T54, T55, X103, X104, X105) → SPLITD_IN_GGAA(T51, .(T52, T53), T54, T55)
U15_GGGAAAAA(T51, T52, T53, T54, T55, X103, X104, X105, splitD_out_ggaa(T51, .(T52, T53), T54, T55)) → U16_GGGAAAAA(T51, T52, T53, T54, T55, X103, X104, X105, pN_in_gagaa(T54, X103, T55, X104, X105))
U15_GGGAAAAA(T51, T52, T53, T54, T55, X103, X104, X105, splitD_out_ggaa(T51, .(T52, T53), T54, T55)) → PN_IN_GAGAA(T54, X103, T55, X104, X105)
PN_IN_GAGAA(T54, T56, T55, X104, X105) → U17_GAGAA(T54, T56, T55, X104, X105, mergesortE_in_ga(T54, T56))
PN_IN_GAGAA(T54, T56, T55, X104, X105) → MERGESORTE_IN_GA(T54, T56)
U17_GAGAA(T54, T56, T55, X104, X105, mergesortE_out_ga(T54, T56)) → U18_GAGAA(T54, T56, T55, X104, X105, pO_in_gaga(T55, X104, T56, X105))
U17_GAGAA(T54, T56, T55, X104, X105, mergesortE_out_ga(T54, T56)) → PO_IN_GAGA(T55, X104, T56, X105)
PO_IN_GAGA(T55, T57, T56, X105) → U19_GAGA(T55, T57, T56, X105, mergesortE_in_ga(T55, T57))
PO_IN_GAGA(T55, T57, T56, X105) → MERGESORTE_IN_GA(T55, T57)
U19_GAGA(T55, T57, T56, X105, mergesortE_out_ga(T55, T57)) → U20_GAGA(T55, T57, T56, X105, mergeG_in_gga(T56, T57, X105))
U19_GAGA(T55, T57, T56, X105, mergesortE_out_ga(T55, T57)) → MERGEG_IN_GGA(T56, T57, X105)
MERGEG_IN_GGA(.(T92, T93), .(T94, T95), .(T92, T97)) → U5_GGA(T92, T93, T94, T95, T97, pH_in_gggga(T92, T94, T93, T95, T97))
MERGEG_IN_GGA(.(T92, T93), .(T94, T95), .(T92, T97)) → PH_IN_GGGGA(T92, T94, T93, T95, T97)
PH_IN_GGGGA(T92, T94, T93, T95, T97) → U21_GGGGA(T92, T94, T93, T95, T97, leJ_in_gg(T92, T94))
PH_IN_GGGGA(T92, T94, T93, T95, T97) → LEJ_IN_GG(T92, T94)
LEJ_IN_GG(s(T110), s(T111)) → U7_GG(T110, T111, leJ_in_gg(T110, T111))
LEJ_IN_GG(s(T110), s(T111)) → LEJ_IN_GG(T110, T111)
U21_GGGGA(T92, T94, T93, T95, T97, leJ_out_gg(T92, T94)) → U22_GGGGA(T92, T94, T93, T95, T97, mergeG_in_gga(T93, .(T94, T95), T97))
U21_GGGGA(T92, T94, T93, T95, T97, leJ_out_gg(T92, T94)) → MERGEG_IN_GGA(T93, .(T94, T95), T97)
MERGEG_IN_GGA(.(T133, T134), .(T135, T136), .(T135, T138)) → U6_GGA(T133, T134, T135, T136, T138, pI_in_gggga(T133, T135, T134, T136, T138))
MERGEG_IN_GGA(.(T133, T134), .(T135, T136), .(T135, T138)) → PI_IN_GGGGA(T133, T135, T134, T136, T138)
PI_IN_GGGGA(T133, T135, T134, T136, T138) → U23_GGGGA(T133, T135, T134, T136, T138, gtK_in_gg(T133, T135))
PI_IN_GGGGA(T133, T135, T134, T136, T138) → GTK_IN_GG(T133, T135)
GTK_IN_GG(s(T151), s(T152)) → U8_GG(T151, T152, gtK_in_gg(T151, T152))
GTK_IN_GG(s(T151), s(T152)) → GTK_IN_GG(T151, T152)
U23_GGGGA(T133, T135, T134, T136, T138, gtK_out_gg(T133, T135)) → U24_GGGGA(T133, T135, T134, T136, T138, mergeG_in_gga(.(T133, T134), T136, T138))
U23_GGGGA(T133, T135, T134, T136, T138, gtK_out_gg(T133, T135)) → MERGEG_IN_GGA(.(T133, T134), T136, T138)
U13_GAGA(T24, T39, T38, T14, mergesortE_out_ga(T24, T39)) → U14_GAGA(T24, T39, T38, T14, mergeG_in_gga(T38, T39, T14))
U13_GAGA(T24, T39, T38, T14, mergesortE_out_ga(T24, T39)) → MERGEG_IN_GGA(T38, T39, T14)
mergesortA_in_ga([], []) → mergesortA_out_ga([], [])
mergesortA_in_ga(.(T4, []), .(T4, [])) → mergesortA_out_ga(.(T4, []), .(T4, []))
mergesortA_in_ga(.(T21, .(T22, T23)), T14) → U1_ga(T21, T22, T23, T14, pB_in_ggaagaaa(T22, T23, X41, X40, T21, X22, X23, T14))
pB_in_ggaagaaa(T22, T23, T24, T25, T21, X22, X23, T14) → U9_ggaagaaa(T22, T23, T24, T25, T21, X22, X23, T14, splitD_in_ggaa(T22, T23, T24, T25))
splitD_in_ggaa(T30, T31, .(T30, X58), X59) → U3_ggaa(T30, T31, X58, X59, splitC_in_gaa(T31, X59, X58))
splitC_in_gaa([], [], []) → splitC_out_gaa([], [], [])
splitC_in_gaa(.(T36, T37), .(T36, X76), X77) → U2_gaa(T36, T37, X76, X77, splitC_in_gaa(T37, X77, X76))
U2_gaa(T36, T37, X76, X77, splitC_out_gaa(T37, X77, X76)) → splitC_out_gaa(.(T36, T37), .(T36, X76), X77)
U3_ggaa(T30, T31, X58, X59, splitC_out_gaa(T31, X59, X58)) → splitD_out_ggaa(T30, T31, .(T30, X58), X59)
U9_ggaagaaa(T22, T23, T24, T25, T21, X22, X23, T14, splitD_out_ggaa(T22, T23, T24, T25)) → U10_ggaagaaa(T22, T23, T24, T25, T21, X22, X23, T14, pL_in_ggagaa(T21, T25, X22, T24, X23, T14))
pL_in_ggagaa(T21, T25, T38, T24, X23, T14) → U11_ggagaa(T21, T25, T38, T24, X23, T14, mergesortA_in_ga(.(T21, T25), T38))
U11_ggagaa(T21, T25, T38, T24, X23, T14, mergesortA_out_ga(.(T21, T25), T38)) → U12_ggagaa(T21, T25, T38, T24, X23, T14, pM_in_gaga(T24, X23, T38, T14))
pM_in_gaga(T24, T39, T38, T14) → U13_gaga(T24, T39, T38, T14, mergesortE_in_ga(T24, T39))
mergesortE_in_ga([], []) → mergesortE_out_ga([], [])
mergesortE_in_ga(.(T44, []), .(T44, [])) → mergesortE_out_ga(.(T44, []), .(T44, []))
mergesortE_in_ga(.(T51, .(T52, T53)), X105) → U4_ga(T51, T52, T53, X105, pF_in_gggaaaaa(T51, T52, T53, X101, X102, X103, X104, X105))
pF_in_gggaaaaa(T51, T52, T53, T54, T55, X103, X104, X105) → U15_gggaaaaa(T51, T52, T53, T54, T55, X103, X104, X105, splitD_in_ggaa(T51, .(T52, T53), T54, T55))
U15_gggaaaaa(T51, T52, T53, T54, T55, X103, X104, X105, splitD_out_ggaa(T51, .(T52, T53), T54, T55)) → U16_gggaaaaa(T51, T52, T53, T54, T55, X103, X104, X105, pN_in_gagaa(T54, X103, T55, X104, X105))
pN_in_gagaa(T54, T56, T55, X104, X105) → U17_gagaa(T54, T56, T55, X104, X105, mergesortE_in_ga(T54, T56))
U17_gagaa(T54, T56, T55, X104, X105, mergesortE_out_ga(T54, T56)) → U18_gagaa(T54, T56, T55, X104, X105, pO_in_gaga(T55, X104, T56, X105))
pO_in_gaga(T55, T57, T56, X105) → U19_gaga(T55, T57, T56, X105, mergesortE_in_ga(T55, T57))
U19_gaga(T55, T57, T56, X105, mergesortE_out_ga(T55, T57)) → U20_gaga(T55, T57, T56, X105, mergeG_in_gga(T56, T57, X105))
mergeG_in_gga([], T66, T66) → mergeG_out_gga([], T66, T66)
mergeG_in_gga(T71, [], T71) → mergeG_out_gga(T71, [], T71)
mergeG_in_gga(.(T92, T93), .(T94, T95), .(T92, T97)) → U5_gga(T92, T93, T94, T95, T97, pH_in_gggga(T92, T94, T93, T95, T97))
pH_in_gggga(T92, T94, T93, T95, T97) → U21_gggga(T92, T94, T93, T95, T97, leJ_in_gg(T92, T94))
leJ_in_gg(s(T110), s(T111)) → U7_gg(T110, T111, leJ_in_gg(T110, T111))
leJ_in_gg(0, s(T118)) → leJ_out_gg(0, s(T118))
leJ_in_gg(0, 0) → leJ_out_gg(0, 0)
U7_gg(T110, T111, leJ_out_gg(T110, T111)) → leJ_out_gg(s(T110), s(T111))
U21_gggga(T92, T94, T93, T95, T97, leJ_out_gg(T92, T94)) → U22_gggga(T92, T94, T93, T95, T97, mergeG_in_gga(T93, .(T94, T95), T97))
mergeG_in_gga(.(T133, T134), .(T135, T136), .(T135, T138)) → U6_gga(T133, T134, T135, T136, T138, pI_in_gggga(T133, T135, T134, T136, T138))
pI_in_gggga(T133, T135, T134, T136, T138) → U23_gggga(T133, T135, T134, T136, T138, gtK_in_gg(T133, T135))
gtK_in_gg(s(T151), s(T152)) → U8_gg(T151, T152, gtK_in_gg(T151, T152))
gtK_in_gg(s(T157), 0) → gtK_out_gg(s(T157), 0)
U8_gg(T151, T152, gtK_out_gg(T151, T152)) → gtK_out_gg(s(T151), s(T152))
U23_gggga(T133, T135, T134, T136, T138, gtK_out_gg(T133, T135)) → U24_gggga(T133, T135, T134, T136, T138, mergeG_in_gga(.(T133, T134), T136, T138))
U24_gggga(T133, T135, T134, T136, T138, mergeG_out_gga(.(T133, T134), T136, T138)) → pI_out_gggga(T133, T135, T134, T136, T138)
U6_gga(T133, T134, T135, T136, T138, pI_out_gggga(T133, T135, T134, T136, T138)) → mergeG_out_gga(.(T133, T134), .(T135, T136), .(T135, T138))
U22_gggga(T92, T94, T93, T95, T97, mergeG_out_gga(T93, .(T94, T95), T97)) → pH_out_gggga(T92, T94, T93, T95, T97)
U5_gga(T92, T93, T94, T95, T97, pH_out_gggga(T92, T94, T93, T95, T97)) → mergeG_out_gga(.(T92, T93), .(T94, T95), .(T92, T97))
U20_gaga(T55, T57, T56, X105, mergeG_out_gga(T56, T57, X105)) → pO_out_gaga(T55, T57, T56, X105)
U18_gagaa(T54, T56, T55, X104, X105, pO_out_gaga(T55, X104, T56, X105)) → pN_out_gagaa(T54, T56, T55, X104, X105)
U16_gggaaaaa(T51, T52, T53, T54, T55, X103, X104, X105, pN_out_gagaa(T54, X103, T55, X104, X105)) → pF_out_gggaaaaa(T51, T52, T53, T54, T55, X103, X104, X105)
U4_ga(T51, T52, T53, X105, pF_out_gggaaaaa(T51, T52, T53, X101, X102, X103, X104, X105)) → mergesortE_out_ga(.(T51, .(T52, T53)), X105)
U13_gaga(T24, T39, T38, T14, mergesortE_out_ga(T24, T39)) → U14_gaga(T24, T39, T38, T14, mergeG_in_gga(T38, T39, T14))
U14_gaga(T24, T39, T38, T14, mergeG_out_gga(T38, T39, T14)) → pM_out_gaga(T24, T39, T38, T14)
U12_ggagaa(T21, T25, T38, T24, X23, T14, pM_out_gaga(T24, X23, T38, T14)) → pL_out_ggagaa(T21, T25, T38, T24, X23, T14)
U10_ggaagaaa(T22, T23, T24, T25, T21, X22, X23, T14, pL_out_ggagaa(T21, T25, X22, T24, X23, T14)) → pB_out_ggaagaaa(T22, T23, T24, T25, T21, X22, X23, T14)
U1_ga(T21, T22, T23, T14, pB_out_ggaagaaa(T22, T23, X41, X40, T21, X22, X23, T14)) → mergesortA_out_ga(.(T21, .(T22, T23)), T14)
MERGESORTA_IN_GA(.(T21, .(T22, T23)), T14) → U1_GA(T21, T22, T23, T14, pB_in_ggaagaaa(T22, T23, X41, X40, T21, X22, X23, T14))
MERGESORTA_IN_GA(.(T21, .(T22, T23)), T14) → PB_IN_GGAAGAAA(T22, T23, X41, X40, T21, X22, X23, T14)
PB_IN_GGAAGAAA(T22, T23, T24, T25, T21, X22, X23, T14) → U9_GGAAGAAA(T22, T23, T24, T25, T21, X22, X23, T14, splitD_in_ggaa(T22, T23, T24, T25))
PB_IN_GGAAGAAA(T22, T23, T24, T25, T21, X22, X23, T14) → SPLITD_IN_GGAA(T22, T23, T24, T25)
SPLITD_IN_GGAA(T30, T31, .(T30, X58), X59) → U3_GGAA(T30, T31, X58, X59, splitC_in_gaa(T31, X59, X58))
SPLITD_IN_GGAA(T30, T31, .(T30, X58), X59) → SPLITC_IN_GAA(T31, X59, X58)
SPLITC_IN_GAA(.(T36, T37), .(T36, X76), X77) → U2_GAA(T36, T37, X76, X77, splitC_in_gaa(T37, X77, X76))
SPLITC_IN_GAA(.(T36, T37), .(T36, X76), X77) → SPLITC_IN_GAA(T37, X77, X76)
U9_GGAAGAAA(T22, T23, T24, T25, T21, X22, X23, T14, splitD_out_ggaa(T22, T23, T24, T25)) → U10_GGAAGAAA(T22, T23, T24, T25, T21, X22, X23, T14, pL_in_ggagaa(T21, T25, X22, T24, X23, T14))
U9_GGAAGAAA(T22, T23, T24, T25, T21, X22, X23, T14, splitD_out_ggaa(T22, T23, T24, T25)) → PL_IN_GGAGAA(T21, T25, X22, T24, X23, T14)
PL_IN_GGAGAA(T21, T25, T38, T24, X23, T14) → U11_GGAGAA(T21, T25, T38, T24, X23, T14, mergesortA_in_ga(.(T21, T25), T38))
PL_IN_GGAGAA(T21, T25, T38, T24, X23, T14) → MERGESORTA_IN_GA(.(T21, T25), T38)
U11_GGAGAA(T21, T25, T38, T24, X23, T14, mergesortA_out_ga(.(T21, T25), T38)) → U12_GGAGAA(T21, T25, T38, T24, X23, T14, pM_in_gaga(T24, X23, T38, T14))
U11_GGAGAA(T21, T25, T38, T24, X23, T14, mergesortA_out_ga(.(T21, T25), T38)) → PM_IN_GAGA(T24, X23, T38, T14)
PM_IN_GAGA(T24, T39, T38, T14) → U13_GAGA(T24, T39, T38, T14, mergesortE_in_ga(T24, T39))
PM_IN_GAGA(T24, T39, T38, T14) → MERGESORTE_IN_GA(T24, T39)
MERGESORTE_IN_GA(.(T51, .(T52, T53)), X105) → U4_GA(T51, T52, T53, X105, pF_in_gggaaaaa(T51, T52, T53, X101, X102, X103, X104, X105))
MERGESORTE_IN_GA(.(T51, .(T52, T53)), X105) → PF_IN_GGGAAAAA(T51, T52, T53, X101, X102, X103, X104, X105)
PF_IN_GGGAAAAA(T51, T52, T53, T54, T55, X103, X104, X105) → U15_GGGAAAAA(T51, T52, T53, T54, T55, X103, X104, X105, splitD_in_ggaa(T51, .(T52, T53), T54, T55))
PF_IN_GGGAAAAA(T51, T52, T53, T54, T55, X103, X104, X105) → SPLITD_IN_GGAA(T51, .(T52, T53), T54, T55)
U15_GGGAAAAA(T51, T52, T53, T54, T55, X103, X104, X105, splitD_out_ggaa(T51, .(T52, T53), T54, T55)) → U16_GGGAAAAA(T51, T52, T53, T54, T55, X103, X104, X105, pN_in_gagaa(T54, X103, T55, X104, X105))
U15_GGGAAAAA(T51, T52, T53, T54, T55, X103, X104, X105, splitD_out_ggaa(T51, .(T52, T53), T54, T55)) → PN_IN_GAGAA(T54, X103, T55, X104, X105)
PN_IN_GAGAA(T54, T56, T55, X104, X105) → U17_GAGAA(T54, T56, T55, X104, X105, mergesortE_in_ga(T54, T56))
PN_IN_GAGAA(T54, T56, T55, X104, X105) → MERGESORTE_IN_GA(T54, T56)
U17_GAGAA(T54, T56, T55, X104, X105, mergesortE_out_ga(T54, T56)) → U18_GAGAA(T54, T56, T55, X104, X105, pO_in_gaga(T55, X104, T56, X105))
U17_GAGAA(T54, T56, T55, X104, X105, mergesortE_out_ga(T54, T56)) → PO_IN_GAGA(T55, X104, T56, X105)
PO_IN_GAGA(T55, T57, T56, X105) → U19_GAGA(T55, T57, T56, X105, mergesortE_in_ga(T55, T57))
PO_IN_GAGA(T55, T57, T56, X105) → MERGESORTE_IN_GA(T55, T57)
U19_GAGA(T55, T57, T56, X105, mergesortE_out_ga(T55, T57)) → U20_GAGA(T55, T57, T56, X105, mergeG_in_gga(T56, T57, X105))
U19_GAGA(T55, T57, T56, X105, mergesortE_out_ga(T55, T57)) → MERGEG_IN_GGA(T56, T57, X105)
MERGEG_IN_GGA(.(T92, T93), .(T94, T95), .(T92, T97)) → U5_GGA(T92, T93, T94, T95, T97, pH_in_gggga(T92, T94, T93, T95, T97))
MERGEG_IN_GGA(.(T92, T93), .(T94, T95), .(T92, T97)) → PH_IN_GGGGA(T92, T94, T93, T95, T97)
PH_IN_GGGGA(T92, T94, T93, T95, T97) → U21_GGGGA(T92, T94, T93, T95, T97, leJ_in_gg(T92, T94))
PH_IN_GGGGA(T92, T94, T93, T95, T97) → LEJ_IN_GG(T92, T94)
LEJ_IN_GG(s(T110), s(T111)) → U7_GG(T110, T111, leJ_in_gg(T110, T111))
LEJ_IN_GG(s(T110), s(T111)) → LEJ_IN_GG(T110, T111)
U21_GGGGA(T92, T94, T93, T95, T97, leJ_out_gg(T92, T94)) → U22_GGGGA(T92, T94, T93, T95, T97, mergeG_in_gga(T93, .(T94, T95), T97))
U21_GGGGA(T92, T94, T93, T95, T97, leJ_out_gg(T92, T94)) → MERGEG_IN_GGA(T93, .(T94, T95), T97)
MERGEG_IN_GGA(.(T133, T134), .(T135, T136), .(T135, T138)) → U6_GGA(T133, T134, T135, T136, T138, pI_in_gggga(T133, T135, T134, T136, T138))
MERGEG_IN_GGA(.(T133, T134), .(T135, T136), .(T135, T138)) → PI_IN_GGGGA(T133, T135, T134, T136, T138)
PI_IN_GGGGA(T133, T135, T134, T136, T138) → U23_GGGGA(T133, T135, T134, T136, T138, gtK_in_gg(T133, T135))
PI_IN_GGGGA(T133, T135, T134, T136, T138) → GTK_IN_GG(T133, T135)
GTK_IN_GG(s(T151), s(T152)) → U8_GG(T151, T152, gtK_in_gg(T151, T152))
GTK_IN_GG(s(T151), s(T152)) → GTK_IN_GG(T151, T152)
U23_GGGGA(T133, T135, T134, T136, T138, gtK_out_gg(T133, T135)) → U24_GGGGA(T133, T135, T134, T136, T138, mergeG_in_gga(.(T133, T134), T136, T138))
U23_GGGGA(T133, T135, T134, T136, T138, gtK_out_gg(T133, T135)) → MERGEG_IN_GGA(.(T133, T134), T136, T138)
U13_GAGA(T24, T39, T38, T14, mergesortE_out_ga(T24, T39)) → U14_GAGA(T24, T39, T38, T14, mergeG_in_gga(T38, T39, T14))
U13_GAGA(T24, T39, T38, T14, mergesortE_out_ga(T24, T39)) → MERGEG_IN_GGA(T38, T39, T14)
mergesortA_in_ga([], []) → mergesortA_out_ga([], [])
mergesortA_in_ga(.(T4, []), .(T4, [])) → mergesortA_out_ga(.(T4, []), .(T4, []))
mergesortA_in_ga(.(T21, .(T22, T23)), T14) → U1_ga(T21, T22, T23, T14, pB_in_ggaagaaa(T22, T23, X41, X40, T21, X22, X23, T14))
pB_in_ggaagaaa(T22, T23, T24, T25, T21, X22, X23, T14) → U9_ggaagaaa(T22, T23, T24, T25, T21, X22, X23, T14, splitD_in_ggaa(T22, T23, T24, T25))
splitD_in_ggaa(T30, T31, .(T30, X58), X59) → U3_ggaa(T30, T31, X58, X59, splitC_in_gaa(T31, X59, X58))
splitC_in_gaa([], [], []) → splitC_out_gaa([], [], [])
splitC_in_gaa(.(T36, T37), .(T36, X76), X77) → U2_gaa(T36, T37, X76, X77, splitC_in_gaa(T37, X77, X76))
U2_gaa(T36, T37, X76, X77, splitC_out_gaa(T37, X77, X76)) → splitC_out_gaa(.(T36, T37), .(T36, X76), X77)
U3_ggaa(T30, T31, X58, X59, splitC_out_gaa(T31, X59, X58)) → splitD_out_ggaa(T30, T31, .(T30, X58), X59)
U9_ggaagaaa(T22, T23, T24, T25, T21, X22, X23, T14, splitD_out_ggaa(T22, T23, T24, T25)) → U10_ggaagaaa(T22, T23, T24, T25, T21, X22, X23, T14, pL_in_ggagaa(T21, T25, X22, T24, X23, T14))
pL_in_ggagaa(T21, T25, T38, T24, X23, T14) → U11_ggagaa(T21, T25, T38, T24, X23, T14, mergesortA_in_ga(.(T21, T25), T38))
U11_ggagaa(T21, T25, T38, T24, X23, T14, mergesortA_out_ga(.(T21, T25), T38)) → U12_ggagaa(T21, T25, T38, T24, X23, T14, pM_in_gaga(T24, X23, T38, T14))
pM_in_gaga(T24, T39, T38, T14) → U13_gaga(T24, T39, T38, T14, mergesortE_in_ga(T24, T39))
mergesortE_in_ga([], []) → mergesortE_out_ga([], [])
mergesortE_in_ga(.(T44, []), .(T44, [])) → mergesortE_out_ga(.(T44, []), .(T44, []))
mergesortE_in_ga(.(T51, .(T52, T53)), X105) → U4_ga(T51, T52, T53, X105, pF_in_gggaaaaa(T51, T52, T53, X101, X102, X103, X104, X105))
pF_in_gggaaaaa(T51, T52, T53, T54, T55, X103, X104, X105) → U15_gggaaaaa(T51, T52, T53, T54, T55, X103, X104, X105, splitD_in_ggaa(T51, .(T52, T53), T54, T55))
U15_gggaaaaa(T51, T52, T53, T54, T55, X103, X104, X105, splitD_out_ggaa(T51, .(T52, T53), T54, T55)) → U16_gggaaaaa(T51, T52, T53, T54, T55, X103, X104, X105, pN_in_gagaa(T54, X103, T55, X104, X105))
pN_in_gagaa(T54, T56, T55, X104, X105) → U17_gagaa(T54, T56, T55, X104, X105, mergesortE_in_ga(T54, T56))
U17_gagaa(T54, T56, T55, X104, X105, mergesortE_out_ga(T54, T56)) → U18_gagaa(T54, T56, T55, X104, X105, pO_in_gaga(T55, X104, T56, X105))
pO_in_gaga(T55, T57, T56, X105) → U19_gaga(T55, T57, T56, X105, mergesortE_in_ga(T55, T57))
U19_gaga(T55, T57, T56, X105, mergesortE_out_ga(T55, T57)) → U20_gaga(T55, T57, T56, X105, mergeG_in_gga(T56, T57, X105))
mergeG_in_gga([], T66, T66) → mergeG_out_gga([], T66, T66)
mergeG_in_gga(T71, [], T71) → mergeG_out_gga(T71, [], T71)
mergeG_in_gga(.(T92, T93), .(T94, T95), .(T92, T97)) → U5_gga(T92, T93, T94, T95, T97, pH_in_gggga(T92, T94, T93, T95, T97))
pH_in_gggga(T92, T94, T93, T95, T97) → U21_gggga(T92, T94, T93, T95, T97, leJ_in_gg(T92, T94))
leJ_in_gg(s(T110), s(T111)) → U7_gg(T110, T111, leJ_in_gg(T110, T111))
leJ_in_gg(0, s(T118)) → leJ_out_gg(0, s(T118))
leJ_in_gg(0, 0) → leJ_out_gg(0, 0)
U7_gg(T110, T111, leJ_out_gg(T110, T111)) → leJ_out_gg(s(T110), s(T111))
U21_gggga(T92, T94, T93, T95, T97, leJ_out_gg(T92, T94)) → U22_gggga(T92, T94, T93, T95, T97, mergeG_in_gga(T93, .(T94, T95), T97))
mergeG_in_gga(.(T133, T134), .(T135, T136), .(T135, T138)) → U6_gga(T133, T134, T135, T136, T138, pI_in_gggga(T133, T135, T134, T136, T138))
pI_in_gggga(T133, T135, T134, T136, T138) → U23_gggga(T133, T135, T134, T136, T138, gtK_in_gg(T133, T135))
gtK_in_gg(s(T151), s(T152)) → U8_gg(T151, T152, gtK_in_gg(T151, T152))
gtK_in_gg(s(T157), 0) → gtK_out_gg(s(T157), 0)
U8_gg(T151, T152, gtK_out_gg(T151, T152)) → gtK_out_gg(s(T151), s(T152))
U23_gggga(T133, T135, T134, T136, T138, gtK_out_gg(T133, T135)) → U24_gggga(T133, T135, T134, T136, T138, mergeG_in_gga(.(T133, T134), T136, T138))
U24_gggga(T133, T135, T134, T136, T138, mergeG_out_gga(.(T133, T134), T136, T138)) → pI_out_gggga(T133, T135, T134, T136, T138)
U6_gga(T133, T134, T135, T136, T138, pI_out_gggga(T133, T135, T134, T136, T138)) → mergeG_out_gga(.(T133, T134), .(T135, T136), .(T135, T138))
U22_gggga(T92, T94, T93, T95, T97, mergeG_out_gga(T93, .(T94, T95), T97)) → pH_out_gggga(T92, T94, T93, T95, T97)
U5_gga(T92, T93, T94, T95, T97, pH_out_gggga(T92, T94, T93, T95, T97)) → mergeG_out_gga(.(T92, T93), .(T94, T95), .(T92, T97))
U20_gaga(T55, T57, T56, X105, mergeG_out_gga(T56, T57, X105)) → pO_out_gaga(T55, T57, T56, X105)
U18_gagaa(T54, T56, T55, X104, X105, pO_out_gaga(T55, X104, T56, X105)) → pN_out_gagaa(T54, T56, T55, X104, X105)
U16_gggaaaaa(T51, T52, T53, T54, T55, X103, X104, X105, pN_out_gagaa(T54, X103, T55, X104, X105)) → pF_out_gggaaaaa(T51, T52, T53, T54, T55, X103, X104, X105)
U4_ga(T51, T52, T53, X105, pF_out_gggaaaaa(T51, T52, T53, X101, X102, X103, X104, X105)) → mergesortE_out_ga(.(T51, .(T52, T53)), X105)
U13_gaga(T24, T39, T38, T14, mergesortE_out_ga(T24, T39)) → U14_gaga(T24, T39, T38, T14, mergeG_in_gga(T38, T39, T14))
U14_gaga(T24, T39, T38, T14, mergeG_out_gga(T38, T39, T14)) → pM_out_gaga(T24, T39, T38, T14)
U12_ggagaa(T21, T25, T38, T24, X23, T14, pM_out_gaga(T24, X23, T38, T14)) → pL_out_ggagaa(T21, T25, T38, T24, X23, T14)
U10_ggaagaaa(T22, T23, T24, T25, T21, X22, X23, T14, pL_out_ggagaa(T21, T25, X22, T24, X23, T14)) → pB_out_ggaagaaa(T22, T23, T24, T25, T21, X22, X23, T14)
U1_ga(T21, T22, T23, T14, pB_out_ggaagaaa(T22, T23, X41, X40, T21, X22, X23, T14)) → mergesortA_out_ga(.(T21, .(T22, T23)), T14)
GTK_IN_GG(s(T151), s(T152)) → GTK_IN_GG(T151, T152)
mergesortA_in_ga([], []) → mergesortA_out_ga([], [])
mergesortA_in_ga(.(T4, []), .(T4, [])) → mergesortA_out_ga(.(T4, []), .(T4, []))
mergesortA_in_ga(.(T21, .(T22, T23)), T14) → U1_ga(T21, T22, T23, T14, pB_in_ggaagaaa(T22, T23, X41, X40, T21, X22, X23, T14))
pB_in_ggaagaaa(T22, T23, T24, T25, T21, X22, X23, T14) → U9_ggaagaaa(T22, T23, T24, T25, T21, X22, X23, T14, splitD_in_ggaa(T22, T23, T24, T25))
splitD_in_ggaa(T30, T31, .(T30, X58), X59) → U3_ggaa(T30, T31, X58, X59, splitC_in_gaa(T31, X59, X58))
splitC_in_gaa([], [], []) → splitC_out_gaa([], [], [])
splitC_in_gaa(.(T36, T37), .(T36, X76), X77) → U2_gaa(T36, T37, X76, X77, splitC_in_gaa(T37, X77, X76))
U2_gaa(T36, T37, X76, X77, splitC_out_gaa(T37, X77, X76)) → splitC_out_gaa(.(T36, T37), .(T36, X76), X77)
U3_ggaa(T30, T31, X58, X59, splitC_out_gaa(T31, X59, X58)) → splitD_out_ggaa(T30, T31, .(T30, X58), X59)
U9_ggaagaaa(T22, T23, T24, T25, T21, X22, X23, T14, splitD_out_ggaa(T22, T23, T24, T25)) → U10_ggaagaaa(T22, T23, T24, T25, T21, X22, X23, T14, pL_in_ggagaa(T21, T25, X22, T24, X23, T14))
pL_in_ggagaa(T21, T25, T38, T24, X23, T14) → U11_ggagaa(T21, T25, T38, T24, X23, T14, mergesortA_in_ga(.(T21, T25), T38))
U11_ggagaa(T21, T25, T38, T24, X23, T14, mergesortA_out_ga(.(T21, T25), T38)) → U12_ggagaa(T21, T25, T38, T24, X23, T14, pM_in_gaga(T24, X23, T38, T14))
pM_in_gaga(T24, T39, T38, T14) → U13_gaga(T24, T39, T38, T14, mergesortE_in_ga(T24, T39))
mergesortE_in_ga([], []) → mergesortE_out_ga([], [])
mergesortE_in_ga(.(T44, []), .(T44, [])) → mergesortE_out_ga(.(T44, []), .(T44, []))
mergesortE_in_ga(.(T51, .(T52, T53)), X105) → U4_ga(T51, T52, T53, X105, pF_in_gggaaaaa(T51, T52, T53, X101, X102, X103, X104, X105))
pF_in_gggaaaaa(T51, T52, T53, T54, T55, X103, X104, X105) → U15_gggaaaaa(T51, T52, T53, T54, T55, X103, X104, X105, splitD_in_ggaa(T51, .(T52, T53), T54, T55))
U15_gggaaaaa(T51, T52, T53, T54, T55, X103, X104, X105, splitD_out_ggaa(T51, .(T52, T53), T54, T55)) → U16_gggaaaaa(T51, T52, T53, T54, T55, X103, X104, X105, pN_in_gagaa(T54, X103, T55, X104, X105))
pN_in_gagaa(T54, T56, T55, X104, X105) → U17_gagaa(T54, T56, T55, X104, X105, mergesortE_in_ga(T54, T56))
U17_gagaa(T54, T56, T55, X104, X105, mergesortE_out_ga(T54, T56)) → U18_gagaa(T54, T56, T55, X104, X105, pO_in_gaga(T55, X104, T56, X105))
pO_in_gaga(T55, T57, T56, X105) → U19_gaga(T55, T57, T56, X105, mergesortE_in_ga(T55, T57))
U19_gaga(T55, T57, T56, X105, mergesortE_out_ga(T55, T57)) → U20_gaga(T55, T57, T56, X105, mergeG_in_gga(T56, T57, X105))
mergeG_in_gga([], T66, T66) → mergeG_out_gga([], T66, T66)
mergeG_in_gga(T71, [], T71) → mergeG_out_gga(T71, [], T71)
mergeG_in_gga(.(T92, T93), .(T94, T95), .(T92, T97)) → U5_gga(T92, T93, T94, T95, T97, pH_in_gggga(T92, T94, T93, T95, T97))
pH_in_gggga(T92, T94, T93, T95, T97) → U21_gggga(T92, T94, T93, T95, T97, leJ_in_gg(T92, T94))
leJ_in_gg(s(T110), s(T111)) → U7_gg(T110, T111, leJ_in_gg(T110, T111))
leJ_in_gg(0, s(T118)) → leJ_out_gg(0, s(T118))
leJ_in_gg(0, 0) → leJ_out_gg(0, 0)
U7_gg(T110, T111, leJ_out_gg(T110, T111)) → leJ_out_gg(s(T110), s(T111))
U21_gggga(T92, T94, T93, T95, T97, leJ_out_gg(T92, T94)) → U22_gggga(T92, T94, T93, T95, T97, mergeG_in_gga(T93, .(T94, T95), T97))
mergeG_in_gga(.(T133, T134), .(T135, T136), .(T135, T138)) → U6_gga(T133, T134, T135, T136, T138, pI_in_gggga(T133, T135, T134, T136, T138))
pI_in_gggga(T133, T135, T134, T136, T138) → U23_gggga(T133, T135, T134, T136, T138, gtK_in_gg(T133, T135))
gtK_in_gg(s(T151), s(T152)) → U8_gg(T151, T152, gtK_in_gg(T151, T152))
gtK_in_gg(s(T157), 0) → gtK_out_gg(s(T157), 0)
U8_gg(T151, T152, gtK_out_gg(T151, T152)) → gtK_out_gg(s(T151), s(T152))
U23_gggga(T133, T135, T134, T136, T138, gtK_out_gg(T133, T135)) → U24_gggga(T133, T135, T134, T136, T138, mergeG_in_gga(.(T133, T134), T136, T138))
U24_gggga(T133, T135, T134, T136, T138, mergeG_out_gga(.(T133, T134), T136, T138)) → pI_out_gggga(T133, T135, T134, T136, T138)
U6_gga(T133, T134, T135, T136, T138, pI_out_gggga(T133, T135, T134, T136, T138)) → mergeG_out_gga(.(T133, T134), .(T135, T136), .(T135, T138))
U22_gggga(T92, T94, T93, T95, T97, mergeG_out_gga(T93, .(T94, T95), T97)) → pH_out_gggga(T92, T94, T93, T95, T97)
U5_gga(T92, T93, T94, T95, T97, pH_out_gggga(T92, T94, T93, T95, T97)) → mergeG_out_gga(.(T92, T93), .(T94, T95), .(T92, T97))
U20_gaga(T55, T57, T56, X105, mergeG_out_gga(T56, T57, X105)) → pO_out_gaga(T55, T57, T56, X105)
U18_gagaa(T54, T56, T55, X104, X105, pO_out_gaga(T55, X104, T56, X105)) → pN_out_gagaa(T54, T56, T55, X104, X105)
U16_gggaaaaa(T51, T52, T53, T54, T55, X103, X104, X105, pN_out_gagaa(T54, X103, T55, X104, X105)) → pF_out_gggaaaaa(T51, T52, T53, T54, T55, X103, X104, X105)
U4_ga(T51, T52, T53, X105, pF_out_gggaaaaa(T51, T52, T53, X101, X102, X103, X104, X105)) → mergesortE_out_ga(.(T51, .(T52, T53)), X105)
U13_gaga(T24, T39, T38, T14, mergesortE_out_ga(T24, T39)) → U14_gaga(T24, T39, T38, T14, mergeG_in_gga(T38, T39, T14))
U14_gaga(T24, T39, T38, T14, mergeG_out_gga(T38, T39, T14)) → pM_out_gaga(T24, T39, T38, T14)
U12_ggagaa(T21, T25, T38, T24, X23, T14, pM_out_gaga(T24, X23, T38, T14)) → pL_out_ggagaa(T21, T25, T38, T24, X23, T14)
U10_ggaagaaa(T22, T23, T24, T25, T21, X22, X23, T14, pL_out_ggagaa(T21, T25, X22, T24, X23, T14)) → pB_out_ggaagaaa(T22, T23, T24, T25, T21, X22, X23, T14)
U1_ga(T21, T22, T23, T14, pB_out_ggaagaaa(T22, T23, X41, X40, T21, X22, X23, T14)) → mergesortA_out_ga(.(T21, .(T22, T23)), T14)
GTK_IN_GG(s(T151), s(T152)) → GTK_IN_GG(T151, T152)
GTK_IN_GG(s(T151), s(T152)) → GTK_IN_GG(T151, T152)
From the DPs we obtained the following set of size-change graphs:
LEJ_IN_GG(s(T110), s(T111)) → LEJ_IN_GG(T110, T111)
mergesortA_in_ga([], []) → mergesortA_out_ga([], [])
mergesortA_in_ga(.(T4, []), .(T4, [])) → mergesortA_out_ga(.(T4, []), .(T4, []))
mergesortA_in_ga(.(T21, .(T22, T23)), T14) → U1_ga(T21, T22, T23, T14, pB_in_ggaagaaa(T22, T23, X41, X40, T21, X22, X23, T14))
pB_in_ggaagaaa(T22, T23, T24, T25, T21, X22, X23, T14) → U9_ggaagaaa(T22, T23, T24, T25, T21, X22, X23, T14, splitD_in_ggaa(T22, T23, T24, T25))
splitD_in_ggaa(T30, T31, .(T30, X58), X59) → U3_ggaa(T30, T31, X58, X59, splitC_in_gaa(T31, X59, X58))
splitC_in_gaa([], [], []) → splitC_out_gaa([], [], [])
splitC_in_gaa(.(T36, T37), .(T36, X76), X77) → U2_gaa(T36, T37, X76, X77, splitC_in_gaa(T37, X77, X76))
U2_gaa(T36, T37, X76, X77, splitC_out_gaa(T37, X77, X76)) → splitC_out_gaa(.(T36, T37), .(T36, X76), X77)
U3_ggaa(T30, T31, X58, X59, splitC_out_gaa(T31, X59, X58)) → splitD_out_ggaa(T30, T31, .(T30, X58), X59)
U9_ggaagaaa(T22, T23, T24, T25, T21, X22, X23, T14, splitD_out_ggaa(T22, T23, T24, T25)) → U10_ggaagaaa(T22, T23, T24, T25, T21, X22, X23, T14, pL_in_ggagaa(T21, T25, X22, T24, X23, T14))
pL_in_ggagaa(T21, T25, T38, T24, X23, T14) → U11_ggagaa(T21, T25, T38, T24, X23, T14, mergesortA_in_ga(.(T21, T25), T38))
U11_ggagaa(T21, T25, T38, T24, X23, T14, mergesortA_out_ga(.(T21, T25), T38)) → U12_ggagaa(T21, T25, T38, T24, X23, T14, pM_in_gaga(T24, X23, T38, T14))
pM_in_gaga(T24, T39, T38, T14) → U13_gaga(T24, T39, T38, T14, mergesortE_in_ga(T24, T39))
mergesortE_in_ga([], []) → mergesortE_out_ga([], [])
mergesortE_in_ga(.(T44, []), .(T44, [])) → mergesortE_out_ga(.(T44, []), .(T44, []))
mergesortE_in_ga(.(T51, .(T52, T53)), X105) → U4_ga(T51, T52, T53, X105, pF_in_gggaaaaa(T51, T52, T53, X101, X102, X103, X104, X105))
pF_in_gggaaaaa(T51, T52, T53, T54, T55, X103, X104, X105) → U15_gggaaaaa(T51, T52, T53, T54, T55, X103, X104, X105, splitD_in_ggaa(T51, .(T52, T53), T54, T55))
U15_gggaaaaa(T51, T52, T53, T54, T55, X103, X104, X105, splitD_out_ggaa(T51, .(T52, T53), T54, T55)) → U16_gggaaaaa(T51, T52, T53, T54, T55, X103, X104, X105, pN_in_gagaa(T54, X103, T55, X104, X105))
pN_in_gagaa(T54, T56, T55, X104, X105) → U17_gagaa(T54, T56, T55, X104, X105, mergesortE_in_ga(T54, T56))
U17_gagaa(T54, T56, T55, X104, X105, mergesortE_out_ga(T54, T56)) → U18_gagaa(T54, T56, T55, X104, X105, pO_in_gaga(T55, X104, T56, X105))
pO_in_gaga(T55, T57, T56, X105) → U19_gaga(T55, T57, T56, X105, mergesortE_in_ga(T55, T57))
U19_gaga(T55, T57, T56, X105, mergesortE_out_ga(T55, T57)) → U20_gaga(T55, T57, T56, X105, mergeG_in_gga(T56, T57, X105))
mergeG_in_gga([], T66, T66) → mergeG_out_gga([], T66, T66)
mergeG_in_gga(T71, [], T71) → mergeG_out_gga(T71, [], T71)
mergeG_in_gga(.(T92, T93), .(T94, T95), .(T92, T97)) → U5_gga(T92, T93, T94, T95, T97, pH_in_gggga(T92, T94, T93, T95, T97))
pH_in_gggga(T92, T94, T93, T95, T97) → U21_gggga(T92, T94, T93, T95, T97, leJ_in_gg(T92, T94))
leJ_in_gg(s(T110), s(T111)) → U7_gg(T110, T111, leJ_in_gg(T110, T111))
leJ_in_gg(0, s(T118)) → leJ_out_gg(0, s(T118))
leJ_in_gg(0, 0) → leJ_out_gg(0, 0)
U7_gg(T110, T111, leJ_out_gg(T110, T111)) → leJ_out_gg(s(T110), s(T111))
U21_gggga(T92, T94, T93, T95, T97, leJ_out_gg(T92, T94)) → U22_gggga(T92, T94, T93, T95, T97, mergeG_in_gga(T93, .(T94, T95), T97))
mergeG_in_gga(.(T133, T134), .(T135, T136), .(T135, T138)) → U6_gga(T133, T134, T135, T136, T138, pI_in_gggga(T133, T135, T134, T136, T138))
pI_in_gggga(T133, T135, T134, T136, T138) → U23_gggga(T133, T135, T134, T136, T138, gtK_in_gg(T133, T135))
gtK_in_gg(s(T151), s(T152)) → U8_gg(T151, T152, gtK_in_gg(T151, T152))
gtK_in_gg(s(T157), 0) → gtK_out_gg(s(T157), 0)
U8_gg(T151, T152, gtK_out_gg(T151, T152)) → gtK_out_gg(s(T151), s(T152))
U23_gggga(T133, T135, T134, T136, T138, gtK_out_gg(T133, T135)) → U24_gggga(T133, T135, T134, T136, T138, mergeG_in_gga(.(T133, T134), T136, T138))
U24_gggga(T133, T135, T134, T136, T138, mergeG_out_gga(.(T133, T134), T136, T138)) → pI_out_gggga(T133, T135, T134, T136, T138)
U6_gga(T133, T134, T135, T136, T138, pI_out_gggga(T133, T135, T134, T136, T138)) → mergeG_out_gga(.(T133, T134), .(T135, T136), .(T135, T138))
U22_gggga(T92, T94, T93, T95, T97, mergeG_out_gga(T93, .(T94, T95), T97)) → pH_out_gggga(T92, T94, T93, T95, T97)
U5_gga(T92, T93, T94, T95, T97, pH_out_gggga(T92, T94, T93, T95, T97)) → mergeG_out_gga(.(T92, T93), .(T94, T95), .(T92, T97))
U20_gaga(T55, T57, T56, X105, mergeG_out_gga(T56, T57, X105)) → pO_out_gaga(T55, T57, T56, X105)
U18_gagaa(T54, T56, T55, X104, X105, pO_out_gaga(T55, X104, T56, X105)) → pN_out_gagaa(T54, T56, T55, X104, X105)
U16_gggaaaaa(T51, T52, T53, T54, T55, X103, X104, X105, pN_out_gagaa(T54, X103, T55, X104, X105)) → pF_out_gggaaaaa(T51, T52, T53, T54, T55, X103, X104, X105)
U4_ga(T51, T52, T53, X105, pF_out_gggaaaaa(T51, T52, T53, X101, X102, X103, X104, X105)) → mergesortE_out_ga(.(T51, .(T52, T53)), X105)
U13_gaga(T24, T39, T38, T14, mergesortE_out_ga(T24, T39)) → U14_gaga(T24, T39, T38, T14, mergeG_in_gga(T38, T39, T14))
U14_gaga(T24, T39, T38, T14, mergeG_out_gga(T38, T39, T14)) → pM_out_gaga(T24, T39, T38, T14)
U12_ggagaa(T21, T25, T38, T24, X23, T14, pM_out_gaga(T24, X23, T38, T14)) → pL_out_ggagaa(T21, T25, T38, T24, X23, T14)
U10_ggaagaaa(T22, T23, T24, T25, T21, X22, X23, T14, pL_out_ggagaa(T21, T25, X22, T24, X23, T14)) → pB_out_ggaagaaa(T22, T23, T24, T25, T21, X22, X23, T14)
U1_ga(T21, T22, T23, T14, pB_out_ggaagaaa(T22, T23, X41, X40, T21, X22, X23, T14)) → mergesortA_out_ga(.(T21, .(T22, T23)), T14)
LEJ_IN_GG(s(T110), s(T111)) → LEJ_IN_GG(T110, T111)
LEJ_IN_GG(s(T110), s(T111)) → LEJ_IN_GG(T110, T111)
From the DPs we obtained the following set of size-change graphs:
MERGEG_IN_GGA(.(T92, T93), .(T94, T95), .(T92, T97)) → PH_IN_GGGGA(T92, T94, T93, T95, T97)
PH_IN_GGGGA(T92, T94, T93, T95, T97) → U21_GGGGA(T92, T94, T93, T95, T97, leJ_in_gg(T92, T94))
U21_GGGGA(T92, T94, T93, T95, T97, leJ_out_gg(T92, T94)) → MERGEG_IN_GGA(T93, .(T94, T95), T97)
MERGEG_IN_GGA(.(T133, T134), .(T135, T136), .(T135, T138)) → PI_IN_GGGGA(T133, T135, T134, T136, T138)
PI_IN_GGGGA(T133, T135, T134, T136, T138) → U23_GGGGA(T133, T135, T134, T136, T138, gtK_in_gg(T133, T135))
U23_GGGGA(T133, T135, T134, T136, T138, gtK_out_gg(T133, T135)) → MERGEG_IN_GGA(.(T133, T134), T136, T138)
mergesortA_in_ga([], []) → mergesortA_out_ga([], [])
mergesortA_in_ga(.(T4, []), .(T4, [])) → mergesortA_out_ga(.(T4, []), .(T4, []))
mergesortA_in_ga(.(T21, .(T22, T23)), T14) → U1_ga(T21, T22, T23, T14, pB_in_ggaagaaa(T22, T23, X41, X40, T21, X22, X23, T14))
pB_in_ggaagaaa(T22, T23, T24, T25, T21, X22, X23, T14) → U9_ggaagaaa(T22, T23, T24, T25, T21, X22, X23, T14, splitD_in_ggaa(T22, T23, T24, T25))
splitD_in_ggaa(T30, T31, .(T30, X58), X59) → U3_ggaa(T30, T31, X58, X59, splitC_in_gaa(T31, X59, X58))
splitC_in_gaa([], [], []) → splitC_out_gaa([], [], [])
splitC_in_gaa(.(T36, T37), .(T36, X76), X77) → U2_gaa(T36, T37, X76, X77, splitC_in_gaa(T37, X77, X76))
U2_gaa(T36, T37, X76, X77, splitC_out_gaa(T37, X77, X76)) → splitC_out_gaa(.(T36, T37), .(T36, X76), X77)
U3_ggaa(T30, T31, X58, X59, splitC_out_gaa(T31, X59, X58)) → splitD_out_ggaa(T30, T31, .(T30, X58), X59)
U9_ggaagaaa(T22, T23, T24, T25, T21, X22, X23, T14, splitD_out_ggaa(T22, T23, T24, T25)) → U10_ggaagaaa(T22, T23, T24, T25, T21, X22, X23, T14, pL_in_ggagaa(T21, T25, X22, T24, X23, T14))
pL_in_ggagaa(T21, T25, T38, T24, X23, T14) → U11_ggagaa(T21, T25, T38, T24, X23, T14, mergesortA_in_ga(.(T21, T25), T38))
U11_ggagaa(T21, T25, T38, T24, X23, T14, mergesortA_out_ga(.(T21, T25), T38)) → U12_ggagaa(T21, T25, T38, T24, X23, T14, pM_in_gaga(T24, X23, T38, T14))
pM_in_gaga(T24, T39, T38, T14) → U13_gaga(T24, T39, T38, T14, mergesortE_in_ga(T24, T39))
mergesortE_in_ga([], []) → mergesortE_out_ga([], [])
mergesortE_in_ga(.(T44, []), .(T44, [])) → mergesortE_out_ga(.(T44, []), .(T44, []))
mergesortE_in_ga(.(T51, .(T52, T53)), X105) → U4_ga(T51, T52, T53, X105, pF_in_gggaaaaa(T51, T52, T53, X101, X102, X103, X104, X105))
pF_in_gggaaaaa(T51, T52, T53, T54, T55, X103, X104, X105) → U15_gggaaaaa(T51, T52, T53, T54, T55, X103, X104, X105, splitD_in_ggaa(T51, .(T52, T53), T54, T55))
U15_gggaaaaa(T51, T52, T53, T54, T55, X103, X104, X105, splitD_out_ggaa(T51, .(T52, T53), T54, T55)) → U16_gggaaaaa(T51, T52, T53, T54, T55, X103, X104, X105, pN_in_gagaa(T54, X103, T55, X104, X105))
pN_in_gagaa(T54, T56, T55, X104, X105) → U17_gagaa(T54, T56, T55, X104, X105, mergesortE_in_ga(T54, T56))
U17_gagaa(T54, T56, T55, X104, X105, mergesortE_out_ga(T54, T56)) → U18_gagaa(T54, T56, T55, X104, X105, pO_in_gaga(T55, X104, T56, X105))
pO_in_gaga(T55, T57, T56, X105) → U19_gaga(T55, T57, T56, X105, mergesortE_in_ga(T55, T57))
U19_gaga(T55, T57, T56, X105, mergesortE_out_ga(T55, T57)) → U20_gaga(T55, T57, T56, X105, mergeG_in_gga(T56, T57, X105))
mergeG_in_gga([], T66, T66) → mergeG_out_gga([], T66, T66)
mergeG_in_gga(T71, [], T71) → mergeG_out_gga(T71, [], T71)
mergeG_in_gga(.(T92, T93), .(T94, T95), .(T92, T97)) → U5_gga(T92, T93, T94, T95, T97, pH_in_gggga(T92, T94, T93, T95, T97))
pH_in_gggga(T92, T94, T93, T95, T97) → U21_gggga(T92, T94, T93, T95, T97, leJ_in_gg(T92, T94))
leJ_in_gg(s(T110), s(T111)) → U7_gg(T110, T111, leJ_in_gg(T110, T111))
leJ_in_gg(0, s(T118)) → leJ_out_gg(0, s(T118))
leJ_in_gg(0, 0) → leJ_out_gg(0, 0)
U7_gg(T110, T111, leJ_out_gg(T110, T111)) → leJ_out_gg(s(T110), s(T111))
U21_gggga(T92, T94, T93, T95, T97, leJ_out_gg(T92, T94)) → U22_gggga(T92, T94, T93, T95, T97, mergeG_in_gga(T93, .(T94, T95), T97))
mergeG_in_gga(.(T133, T134), .(T135, T136), .(T135, T138)) → U6_gga(T133, T134, T135, T136, T138, pI_in_gggga(T133, T135, T134, T136, T138))
pI_in_gggga(T133, T135, T134, T136, T138) → U23_gggga(T133, T135, T134, T136, T138, gtK_in_gg(T133, T135))
gtK_in_gg(s(T151), s(T152)) → U8_gg(T151, T152, gtK_in_gg(T151, T152))
gtK_in_gg(s(T157), 0) → gtK_out_gg(s(T157), 0)
U8_gg(T151, T152, gtK_out_gg(T151, T152)) → gtK_out_gg(s(T151), s(T152))
U23_gggga(T133, T135, T134, T136, T138, gtK_out_gg(T133, T135)) → U24_gggga(T133, T135, T134, T136, T138, mergeG_in_gga(.(T133, T134), T136, T138))
U24_gggga(T133, T135, T134, T136, T138, mergeG_out_gga(.(T133, T134), T136, T138)) → pI_out_gggga(T133, T135, T134, T136, T138)
U6_gga(T133, T134, T135, T136, T138, pI_out_gggga(T133, T135, T134, T136, T138)) → mergeG_out_gga(.(T133, T134), .(T135, T136), .(T135, T138))
U22_gggga(T92, T94, T93, T95, T97, mergeG_out_gga(T93, .(T94, T95), T97)) → pH_out_gggga(T92, T94, T93, T95, T97)
U5_gga(T92, T93, T94, T95, T97, pH_out_gggga(T92, T94, T93, T95, T97)) → mergeG_out_gga(.(T92, T93), .(T94, T95), .(T92, T97))
U20_gaga(T55, T57, T56, X105, mergeG_out_gga(T56, T57, X105)) → pO_out_gaga(T55, T57, T56, X105)
U18_gagaa(T54, T56, T55, X104, X105, pO_out_gaga(T55, X104, T56, X105)) → pN_out_gagaa(T54, T56, T55, X104, X105)
U16_gggaaaaa(T51, T52, T53, T54, T55, X103, X104, X105, pN_out_gagaa(T54, X103, T55, X104, X105)) → pF_out_gggaaaaa(T51, T52, T53, T54, T55, X103, X104, X105)
U4_ga(T51, T52, T53, X105, pF_out_gggaaaaa(T51, T52, T53, X101, X102, X103, X104, X105)) → mergesortE_out_ga(.(T51, .(T52, T53)), X105)
U13_gaga(T24, T39, T38, T14, mergesortE_out_ga(T24, T39)) → U14_gaga(T24, T39, T38, T14, mergeG_in_gga(T38, T39, T14))
U14_gaga(T24, T39, T38, T14, mergeG_out_gga(T38, T39, T14)) → pM_out_gaga(T24, T39, T38, T14)
U12_ggagaa(T21, T25, T38, T24, X23, T14, pM_out_gaga(T24, X23, T38, T14)) → pL_out_ggagaa(T21, T25, T38, T24, X23, T14)
U10_ggaagaaa(T22, T23, T24, T25, T21, X22, X23, T14, pL_out_ggagaa(T21, T25, X22, T24, X23, T14)) → pB_out_ggaagaaa(T22, T23, T24, T25, T21, X22, X23, T14)
U1_ga(T21, T22, T23, T14, pB_out_ggaagaaa(T22, T23, X41, X40, T21, X22, X23, T14)) → mergesortA_out_ga(.(T21, .(T22, T23)), T14)
MERGEG_IN_GGA(.(T92, T93), .(T94, T95), .(T92, T97)) → PH_IN_GGGGA(T92, T94, T93, T95, T97)
PH_IN_GGGGA(T92, T94, T93, T95, T97) → U21_GGGGA(T92, T94, T93, T95, T97, leJ_in_gg(T92, T94))
U21_GGGGA(T92, T94, T93, T95, T97, leJ_out_gg(T92, T94)) → MERGEG_IN_GGA(T93, .(T94, T95), T97)
MERGEG_IN_GGA(.(T133, T134), .(T135, T136), .(T135, T138)) → PI_IN_GGGGA(T133, T135, T134, T136, T138)
PI_IN_GGGGA(T133, T135, T134, T136, T138) → U23_GGGGA(T133, T135, T134, T136, T138, gtK_in_gg(T133, T135))
U23_GGGGA(T133, T135, T134, T136, T138, gtK_out_gg(T133, T135)) → MERGEG_IN_GGA(.(T133, T134), T136, T138)
leJ_in_gg(s(T110), s(T111)) → U7_gg(T110, T111, leJ_in_gg(T110, T111))
leJ_in_gg(0, s(T118)) → leJ_out_gg(0, s(T118))
leJ_in_gg(0, 0) → leJ_out_gg(0, 0)
gtK_in_gg(s(T151), s(T152)) → U8_gg(T151, T152, gtK_in_gg(T151, T152))
gtK_in_gg(s(T157), 0) → gtK_out_gg(s(T157), 0)
U7_gg(T110, T111, leJ_out_gg(T110, T111)) → leJ_out_gg(s(T110), s(T111))
U8_gg(T151, T152, gtK_out_gg(T151, T152)) → gtK_out_gg(s(T151), s(T152))
MERGEG_IN_GGA(.(T92, T93), .(T94, T95)) → PH_IN_GGGGA(T92, T94, T93, T95)
PH_IN_GGGGA(T92, T94, T93, T95) → U21_GGGGA(T92, T94, T93, T95, leJ_in_gg(T92, T94))
U21_GGGGA(T92, T94, T93, T95, leJ_out_gg(T92, T94)) → MERGEG_IN_GGA(T93, .(T94, T95))
MERGEG_IN_GGA(.(T133, T134), .(T135, T136)) → PI_IN_GGGGA(T133, T135, T134, T136)
PI_IN_GGGGA(T133, T135, T134, T136) → U23_GGGGA(T133, T135, T134, T136, gtK_in_gg(T133, T135))
U23_GGGGA(T133, T135, T134, T136, gtK_out_gg(T133, T135)) → MERGEG_IN_GGA(.(T133, T134), T136)
leJ_in_gg(s(T110), s(T111)) → U7_gg(T110, T111, leJ_in_gg(T110, T111))
leJ_in_gg(0, s(T118)) → leJ_out_gg(0, s(T118))
leJ_in_gg(0, 0) → leJ_out_gg(0, 0)
gtK_in_gg(s(T151), s(T152)) → U8_gg(T151, T152, gtK_in_gg(T151, T152))
gtK_in_gg(s(T157), 0) → gtK_out_gg(s(T157), 0)
U7_gg(T110, T111, leJ_out_gg(T110, T111)) → leJ_out_gg(s(T110), s(T111))
U8_gg(T151, T152, gtK_out_gg(T151, T152)) → gtK_out_gg(s(T151), s(T152))
leJ_in_gg(x0, x1)
gtK_in_gg(x0, x1)
U7_gg(x0, x1, x2)
U8_gg(x0, x1, x2)
MERGEG_IN_GGA(.(T92, T93), .(T94, T95)) → PH_IN_GGGGA(T92, T94, T93, T95)
MERGEG_IN_GGA(.(T133, T134), .(T135, T136)) → PI_IN_GGGGA(T133, T135, T134, T136)
POL(.(x1, x2)) = 1 + 2·x1 + 2·x2
POL(0) = 0
POL(MERGEG_IN_GGA(x1, x2)) = x1 + x2
POL(PH_IN_GGGGA(x1, x2, x3, x4)) = 1 + 2·x1 + 2·x2 + 2·x3 + 2·x4
POL(PI_IN_GGGGA(x1, x2, x3, x4)) = 1 + 2·x1 + 2·x2 + 2·x3 + 2·x4
POL(U21_GGGGA(x1, x2, x3, x4, x5)) = 1 + x1 + x2 + 2·x3 + 2·x4 + x5
POL(U23_GGGGA(x1, x2, x3, x4, x5)) = 1 + x1 + x2 + 2·x3 + x4 + x5
POL(U7_gg(x1, x2, x3)) = x1 + x2 + x3
POL(U8_gg(x1, x2, x3)) = x1 + x2 + x3
POL(gtK_in_gg(x1, x2)) = x1 + x2
POL(gtK_out_gg(x1, x2)) = x1 + x2
POL(leJ_in_gg(x1, x2)) = x1 + x2
POL(leJ_out_gg(x1, x2)) = x1 + x2
POL(s(x1)) = 2·x1
PH_IN_GGGGA(T92, T94, T93, T95) → U21_GGGGA(T92, T94, T93, T95, leJ_in_gg(T92, T94))
U21_GGGGA(T92, T94, T93, T95, leJ_out_gg(T92, T94)) → MERGEG_IN_GGA(T93, .(T94, T95))
PI_IN_GGGGA(T133, T135, T134, T136) → U23_GGGGA(T133, T135, T134, T136, gtK_in_gg(T133, T135))
U23_GGGGA(T133, T135, T134, T136, gtK_out_gg(T133, T135)) → MERGEG_IN_GGA(.(T133, T134), T136)
leJ_in_gg(s(T110), s(T111)) → U7_gg(T110, T111, leJ_in_gg(T110, T111))
leJ_in_gg(0, s(T118)) → leJ_out_gg(0, s(T118))
leJ_in_gg(0, 0) → leJ_out_gg(0, 0)
gtK_in_gg(s(T151), s(T152)) → U8_gg(T151, T152, gtK_in_gg(T151, T152))
gtK_in_gg(s(T157), 0) → gtK_out_gg(s(T157), 0)
U7_gg(T110, T111, leJ_out_gg(T110, T111)) → leJ_out_gg(s(T110), s(T111))
U8_gg(T151, T152, gtK_out_gg(T151, T152)) → gtK_out_gg(s(T151), s(T152))
leJ_in_gg(x0, x1)
gtK_in_gg(x0, x1)
U7_gg(x0, x1, x2)
U8_gg(x0, x1, x2)
SPLITC_IN_GAA(.(T36, T37), .(T36, X76), X77) → SPLITC_IN_GAA(T37, X77, X76)
mergesortA_in_ga([], []) → mergesortA_out_ga([], [])
mergesortA_in_ga(.(T4, []), .(T4, [])) → mergesortA_out_ga(.(T4, []), .(T4, []))
mergesortA_in_ga(.(T21, .(T22, T23)), T14) → U1_ga(T21, T22, T23, T14, pB_in_ggaagaaa(T22, T23, X41, X40, T21, X22, X23, T14))
pB_in_ggaagaaa(T22, T23, T24, T25, T21, X22, X23, T14) → U9_ggaagaaa(T22, T23, T24, T25, T21, X22, X23, T14, splitD_in_ggaa(T22, T23, T24, T25))
splitD_in_ggaa(T30, T31, .(T30, X58), X59) → U3_ggaa(T30, T31, X58, X59, splitC_in_gaa(T31, X59, X58))
splitC_in_gaa([], [], []) → splitC_out_gaa([], [], [])
splitC_in_gaa(.(T36, T37), .(T36, X76), X77) → U2_gaa(T36, T37, X76, X77, splitC_in_gaa(T37, X77, X76))
U2_gaa(T36, T37, X76, X77, splitC_out_gaa(T37, X77, X76)) → splitC_out_gaa(.(T36, T37), .(T36, X76), X77)
U3_ggaa(T30, T31, X58, X59, splitC_out_gaa(T31, X59, X58)) → splitD_out_ggaa(T30, T31, .(T30, X58), X59)
U9_ggaagaaa(T22, T23, T24, T25, T21, X22, X23, T14, splitD_out_ggaa(T22, T23, T24, T25)) → U10_ggaagaaa(T22, T23, T24, T25, T21, X22, X23, T14, pL_in_ggagaa(T21, T25, X22, T24, X23, T14))
pL_in_ggagaa(T21, T25, T38, T24, X23, T14) → U11_ggagaa(T21, T25, T38, T24, X23, T14, mergesortA_in_ga(.(T21, T25), T38))
U11_ggagaa(T21, T25, T38, T24, X23, T14, mergesortA_out_ga(.(T21, T25), T38)) → U12_ggagaa(T21, T25, T38, T24, X23, T14, pM_in_gaga(T24, X23, T38, T14))
pM_in_gaga(T24, T39, T38, T14) → U13_gaga(T24, T39, T38, T14, mergesortE_in_ga(T24, T39))
mergesortE_in_ga([], []) → mergesortE_out_ga([], [])
mergesortE_in_ga(.(T44, []), .(T44, [])) → mergesortE_out_ga(.(T44, []), .(T44, []))
mergesortE_in_ga(.(T51, .(T52, T53)), X105) → U4_ga(T51, T52, T53, X105, pF_in_gggaaaaa(T51, T52, T53, X101, X102, X103, X104, X105))
pF_in_gggaaaaa(T51, T52, T53, T54, T55, X103, X104, X105) → U15_gggaaaaa(T51, T52, T53, T54, T55, X103, X104, X105, splitD_in_ggaa(T51, .(T52, T53), T54, T55))
U15_gggaaaaa(T51, T52, T53, T54, T55, X103, X104, X105, splitD_out_ggaa(T51, .(T52, T53), T54, T55)) → U16_gggaaaaa(T51, T52, T53, T54, T55, X103, X104, X105, pN_in_gagaa(T54, X103, T55, X104, X105))
pN_in_gagaa(T54, T56, T55, X104, X105) → U17_gagaa(T54, T56, T55, X104, X105, mergesortE_in_ga(T54, T56))
U17_gagaa(T54, T56, T55, X104, X105, mergesortE_out_ga(T54, T56)) → U18_gagaa(T54, T56, T55, X104, X105, pO_in_gaga(T55, X104, T56, X105))
pO_in_gaga(T55, T57, T56, X105) → U19_gaga(T55, T57, T56, X105, mergesortE_in_ga(T55, T57))
U19_gaga(T55, T57, T56, X105, mergesortE_out_ga(T55, T57)) → U20_gaga(T55, T57, T56, X105, mergeG_in_gga(T56, T57, X105))
mergeG_in_gga([], T66, T66) → mergeG_out_gga([], T66, T66)
mergeG_in_gga(T71, [], T71) → mergeG_out_gga(T71, [], T71)
mergeG_in_gga(.(T92, T93), .(T94, T95), .(T92, T97)) → U5_gga(T92, T93, T94, T95, T97, pH_in_gggga(T92, T94, T93, T95, T97))
pH_in_gggga(T92, T94, T93, T95, T97) → U21_gggga(T92, T94, T93, T95, T97, leJ_in_gg(T92, T94))
leJ_in_gg(s(T110), s(T111)) → U7_gg(T110, T111, leJ_in_gg(T110, T111))
leJ_in_gg(0, s(T118)) → leJ_out_gg(0, s(T118))
leJ_in_gg(0, 0) → leJ_out_gg(0, 0)
U7_gg(T110, T111, leJ_out_gg(T110, T111)) → leJ_out_gg(s(T110), s(T111))
U21_gggga(T92, T94, T93, T95, T97, leJ_out_gg(T92, T94)) → U22_gggga(T92, T94, T93, T95, T97, mergeG_in_gga(T93, .(T94, T95), T97))
mergeG_in_gga(.(T133, T134), .(T135, T136), .(T135, T138)) → U6_gga(T133, T134, T135, T136, T138, pI_in_gggga(T133, T135, T134, T136, T138))
pI_in_gggga(T133, T135, T134, T136, T138) → U23_gggga(T133, T135, T134, T136, T138, gtK_in_gg(T133, T135))
gtK_in_gg(s(T151), s(T152)) → U8_gg(T151, T152, gtK_in_gg(T151, T152))
gtK_in_gg(s(T157), 0) → gtK_out_gg(s(T157), 0)
U8_gg(T151, T152, gtK_out_gg(T151, T152)) → gtK_out_gg(s(T151), s(T152))
U23_gggga(T133, T135, T134, T136, T138, gtK_out_gg(T133, T135)) → U24_gggga(T133, T135, T134, T136, T138, mergeG_in_gga(.(T133, T134), T136, T138))
U24_gggga(T133, T135, T134, T136, T138, mergeG_out_gga(.(T133, T134), T136, T138)) → pI_out_gggga(T133, T135, T134, T136, T138)
U6_gga(T133, T134, T135, T136, T138, pI_out_gggga(T133, T135, T134, T136, T138)) → mergeG_out_gga(.(T133, T134), .(T135, T136), .(T135, T138))
U22_gggga(T92, T94, T93, T95, T97, mergeG_out_gga(T93, .(T94, T95), T97)) → pH_out_gggga(T92, T94, T93, T95, T97)
U5_gga(T92, T93, T94, T95, T97, pH_out_gggga(T92, T94, T93, T95, T97)) → mergeG_out_gga(.(T92, T93), .(T94, T95), .(T92, T97))
U20_gaga(T55, T57, T56, X105, mergeG_out_gga(T56, T57, X105)) → pO_out_gaga(T55, T57, T56, X105)
U18_gagaa(T54, T56, T55, X104, X105, pO_out_gaga(T55, X104, T56, X105)) → pN_out_gagaa(T54, T56, T55, X104, X105)
U16_gggaaaaa(T51, T52, T53, T54, T55, X103, X104, X105, pN_out_gagaa(T54, X103, T55, X104, X105)) → pF_out_gggaaaaa(T51, T52, T53, T54, T55, X103, X104, X105)
U4_ga(T51, T52, T53, X105, pF_out_gggaaaaa(T51, T52, T53, X101, X102, X103, X104, X105)) → mergesortE_out_ga(.(T51, .(T52, T53)), X105)
U13_gaga(T24, T39, T38, T14, mergesortE_out_ga(T24, T39)) → U14_gaga(T24, T39, T38, T14, mergeG_in_gga(T38, T39, T14))
U14_gaga(T24, T39, T38, T14, mergeG_out_gga(T38, T39, T14)) → pM_out_gaga(T24, T39, T38, T14)
U12_ggagaa(T21, T25, T38, T24, X23, T14, pM_out_gaga(T24, X23, T38, T14)) → pL_out_ggagaa(T21, T25, T38, T24, X23, T14)
U10_ggaagaaa(T22, T23, T24, T25, T21, X22, X23, T14, pL_out_ggagaa(T21, T25, X22, T24, X23, T14)) → pB_out_ggaagaaa(T22, T23, T24, T25, T21, X22, X23, T14)
U1_ga(T21, T22, T23, T14, pB_out_ggaagaaa(T22, T23, X41, X40, T21, X22, X23, T14)) → mergesortA_out_ga(.(T21, .(T22, T23)), T14)
SPLITC_IN_GAA(.(T36, T37), .(T36, X76), X77) → SPLITC_IN_GAA(T37, X77, X76)
SPLITC_IN_GAA(.(T36, T37)) → SPLITC_IN_GAA(T37)
From the DPs we obtained the following set of size-change graphs:
PF_IN_GGGAAAAA(T51, T52, T53, T54, T55, X103, X104, X105) → U15_GGGAAAAA(T51, T52, T53, T54, T55, X103, X104, X105, splitD_in_ggaa(T51, .(T52, T53), T54, T55))
U15_GGGAAAAA(T51, T52, T53, T54, T55, X103, X104, X105, splitD_out_ggaa(T51, .(T52, T53), T54, T55)) → PN_IN_GAGAA(T54, X103, T55, X104, X105)
PN_IN_GAGAA(T54, T56, T55, X104, X105) → U17_GAGAA(T54, T56, T55, X104, X105, mergesortE_in_ga(T54, T56))
U17_GAGAA(T54, T56, T55, X104, X105, mergesortE_out_ga(T54, T56)) → PO_IN_GAGA(T55, X104, T56, X105)
PO_IN_GAGA(T55, T57, T56, X105) → MERGESORTE_IN_GA(T55, T57)
MERGESORTE_IN_GA(.(T51, .(T52, T53)), X105) → PF_IN_GGGAAAAA(T51, T52, T53, X101, X102, X103, X104, X105)
PN_IN_GAGAA(T54, T56, T55, X104, X105) → MERGESORTE_IN_GA(T54, T56)
mergesortA_in_ga([], []) → mergesortA_out_ga([], [])
mergesortA_in_ga(.(T4, []), .(T4, [])) → mergesortA_out_ga(.(T4, []), .(T4, []))
mergesortA_in_ga(.(T21, .(T22, T23)), T14) → U1_ga(T21, T22, T23, T14, pB_in_ggaagaaa(T22, T23, X41, X40, T21, X22, X23, T14))
pB_in_ggaagaaa(T22, T23, T24, T25, T21, X22, X23, T14) → U9_ggaagaaa(T22, T23, T24, T25, T21, X22, X23, T14, splitD_in_ggaa(T22, T23, T24, T25))
splitD_in_ggaa(T30, T31, .(T30, X58), X59) → U3_ggaa(T30, T31, X58, X59, splitC_in_gaa(T31, X59, X58))
splitC_in_gaa([], [], []) → splitC_out_gaa([], [], [])
splitC_in_gaa(.(T36, T37), .(T36, X76), X77) → U2_gaa(T36, T37, X76, X77, splitC_in_gaa(T37, X77, X76))
U2_gaa(T36, T37, X76, X77, splitC_out_gaa(T37, X77, X76)) → splitC_out_gaa(.(T36, T37), .(T36, X76), X77)
U3_ggaa(T30, T31, X58, X59, splitC_out_gaa(T31, X59, X58)) → splitD_out_ggaa(T30, T31, .(T30, X58), X59)
U9_ggaagaaa(T22, T23, T24, T25, T21, X22, X23, T14, splitD_out_ggaa(T22, T23, T24, T25)) → U10_ggaagaaa(T22, T23, T24, T25, T21, X22, X23, T14, pL_in_ggagaa(T21, T25, X22, T24, X23, T14))
pL_in_ggagaa(T21, T25, T38, T24, X23, T14) → U11_ggagaa(T21, T25, T38, T24, X23, T14, mergesortA_in_ga(.(T21, T25), T38))
U11_ggagaa(T21, T25, T38, T24, X23, T14, mergesortA_out_ga(.(T21, T25), T38)) → U12_ggagaa(T21, T25, T38, T24, X23, T14, pM_in_gaga(T24, X23, T38, T14))
pM_in_gaga(T24, T39, T38, T14) → U13_gaga(T24, T39, T38, T14, mergesortE_in_ga(T24, T39))
mergesortE_in_ga([], []) → mergesortE_out_ga([], [])
mergesortE_in_ga(.(T44, []), .(T44, [])) → mergesortE_out_ga(.(T44, []), .(T44, []))
mergesortE_in_ga(.(T51, .(T52, T53)), X105) → U4_ga(T51, T52, T53, X105, pF_in_gggaaaaa(T51, T52, T53, X101, X102, X103, X104, X105))
pF_in_gggaaaaa(T51, T52, T53, T54, T55, X103, X104, X105) → U15_gggaaaaa(T51, T52, T53, T54, T55, X103, X104, X105, splitD_in_ggaa(T51, .(T52, T53), T54, T55))
U15_gggaaaaa(T51, T52, T53, T54, T55, X103, X104, X105, splitD_out_ggaa(T51, .(T52, T53), T54, T55)) → U16_gggaaaaa(T51, T52, T53, T54, T55, X103, X104, X105, pN_in_gagaa(T54, X103, T55, X104, X105))
pN_in_gagaa(T54, T56, T55, X104, X105) → U17_gagaa(T54, T56, T55, X104, X105, mergesortE_in_ga(T54, T56))
U17_gagaa(T54, T56, T55, X104, X105, mergesortE_out_ga(T54, T56)) → U18_gagaa(T54, T56, T55, X104, X105, pO_in_gaga(T55, X104, T56, X105))
pO_in_gaga(T55, T57, T56, X105) → U19_gaga(T55, T57, T56, X105, mergesortE_in_ga(T55, T57))
U19_gaga(T55, T57, T56, X105, mergesortE_out_ga(T55, T57)) → U20_gaga(T55, T57, T56, X105, mergeG_in_gga(T56, T57, X105))
mergeG_in_gga([], T66, T66) → mergeG_out_gga([], T66, T66)
mergeG_in_gga(T71, [], T71) → mergeG_out_gga(T71, [], T71)
mergeG_in_gga(.(T92, T93), .(T94, T95), .(T92, T97)) → U5_gga(T92, T93, T94, T95, T97, pH_in_gggga(T92, T94, T93, T95, T97))
pH_in_gggga(T92, T94, T93, T95, T97) → U21_gggga(T92, T94, T93, T95, T97, leJ_in_gg(T92, T94))
leJ_in_gg(s(T110), s(T111)) → U7_gg(T110, T111, leJ_in_gg(T110, T111))
leJ_in_gg(0, s(T118)) → leJ_out_gg(0, s(T118))
leJ_in_gg(0, 0) → leJ_out_gg(0, 0)
U7_gg(T110, T111, leJ_out_gg(T110, T111)) → leJ_out_gg(s(T110), s(T111))
U21_gggga(T92, T94, T93, T95, T97, leJ_out_gg(T92, T94)) → U22_gggga(T92, T94, T93, T95, T97, mergeG_in_gga(T93, .(T94, T95), T97))
mergeG_in_gga(.(T133, T134), .(T135, T136), .(T135, T138)) → U6_gga(T133, T134, T135, T136, T138, pI_in_gggga(T133, T135, T134, T136, T138))
pI_in_gggga(T133, T135, T134, T136, T138) → U23_gggga(T133, T135, T134, T136, T138, gtK_in_gg(T133, T135))
gtK_in_gg(s(T151), s(T152)) → U8_gg(T151, T152, gtK_in_gg(T151, T152))
gtK_in_gg(s(T157), 0) → gtK_out_gg(s(T157), 0)
U8_gg(T151, T152, gtK_out_gg(T151, T152)) → gtK_out_gg(s(T151), s(T152))
U23_gggga(T133, T135, T134, T136, T138, gtK_out_gg(T133, T135)) → U24_gggga(T133, T135, T134, T136, T138, mergeG_in_gga(.(T133, T134), T136, T138))
U24_gggga(T133, T135, T134, T136, T138, mergeG_out_gga(.(T133, T134), T136, T138)) → pI_out_gggga(T133, T135, T134, T136, T138)
U6_gga(T133, T134, T135, T136, T138, pI_out_gggga(T133, T135, T134, T136, T138)) → mergeG_out_gga(.(T133, T134), .(T135, T136), .(T135, T138))
U22_gggga(T92, T94, T93, T95, T97, mergeG_out_gga(T93, .(T94, T95), T97)) → pH_out_gggga(T92, T94, T93, T95, T97)
U5_gga(T92, T93, T94, T95, T97, pH_out_gggga(T92, T94, T93, T95, T97)) → mergeG_out_gga(.(T92, T93), .(T94, T95), .(T92, T97))
U20_gaga(T55, T57, T56, X105, mergeG_out_gga(T56, T57, X105)) → pO_out_gaga(T55, T57, T56, X105)
U18_gagaa(T54, T56, T55, X104, X105, pO_out_gaga(T55, X104, T56, X105)) → pN_out_gagaa(T54, T56, T55, X104, X105)
U16_gggaaaaa(T51, T52, T53, T54, T55, X103, X104, X105, pN_out_gagaa(T54, X103, T55, X104, X105)) → pF_out_gggaaaaa(T51, T52, T53, T54, T55, X103, X104, X105)
U4_ga(T51, T52, T53, X105, pF_out_gggaaaaa(T51, T52, T53, X101, X102, X103, X104, X105)) → mergesortE_out_ga(.(T51, .(T52, T53)), X105)
U13_gaga(T24, T39, T38, T14, mergesortE_out_ga(T24, T39)) → U14_gaga(T24, T39, T38, T14, mergeG_in_gga(T38, T39, T14))
U14_gaga(T24, T39, T38, T14, mergeG_out_gga(T38, T39, T14)) → pM_out_gaga(T24, T39, T38, T14)
U12_ggagaa(T21, T25, T38, T24, X23, T14, pM_out_gaga(T24, X23, T38, T14)) → pL_out_ggagaa(T21, T25, T38, T24, X23, T14)
U10_ggaagaaa(T22, T23, T24, T25, T21, X22, X23, T14, pL_out_ggagaa(T21, T25, X22, T24, X23, T14)) → pB_out_ggaagaaa(T22, T23, T24, T25, T21, X22, X23, T14)
U1_ga(T21, T22, T23, T14, pB_out_ggaagaaa(T22, T23, X41, X40, T21, X22, X23, T14)) → mergesortA_out_ga(.(T21, .(T22, T23)), T14)
PF_IN_GGGAAAAA(T51, T52, T53, T54, T55, X103, X104, X105) → U15_GGGAAAAA(T51, T52, T53, T54, T55, X103, X104, X105, splitD_in_ggaa(T51, .(T52, T53), T54, T55))
U15_GGGAAAAA(T51, T52, T53, T54, T55, X103, X104, X105, splitD_out_ggaa(T51, .(T52, T53), T54, T55)) → PN_IN_GAGAA(T54, X103, T55, X104, X105)
PN_IN_GAGAA(T54, T56, T55, X104, X105) → U17_GAGAA(T54, T56, T55, X104, X105, mergesortE_in_ga(T54, T56))
U17_GAGAA(T54, T56, T55, X104, X105, mergesortE_out_ga(T54, T56)) → PO_IN_GAGA(T55, X104, T56, X105)
PO_IN_GAGA(T55, T57, T56, X105) → MERGESORTE_IN_GA(T55, T57)
MERGESORTE_IN_GA(.(T51, .(T52, T53)), X105) → PF_IN_GGGAAAAA(T51, T52, T53, X101, X102, X103, X104, X105)
PN_IN_GAGAA(T54, T56, T55, X104, X105) → MERGESORTE_IN_GA(T54, T56)
splitD_in_ggaa(T30, T31, .(T30, X58), X59) → U3_ggaa(T30, T31, X58, X59, splitC_in_gaa(T31, X59, X58))
mergesortE_in_ga([], []) → mergesortE_out_ga([], [])
mergesortE_in_ga(.(T44, []), .(T44, [])) → mergesortE_out_ga(.(T44, []), .(T44, []))
mergesortE_in_ga(.(T51, .(T52, T53)), X105) → U4_ga(T51, T52, T53, X105, pF_in_gggaaaaa(T51, T52, T53, X101, X102, X103, X104, X105))
U3_ggaa(T30, T31, X58, X59, splitC_out_gaa(T31, X59, X58)) → splitD_out_ggaa(T30, T31, .(T30, X58), X59)
U4_ga(T51, T52, T53, X105, pF_out_gggaaaaa(T51, T52, T53, X101, X102, X103, X104, X105)) → mergesortE_out_ga(.(T51, .(T52, T53)), X105)
splitC_in_gaa([], [], []) → splitC_out_gaa([], [], [])
splitC_in_gaa(.(T36, T37), .(T36, X76), X77) → U2_gaa(T36, T37, X76, X77, splitC_in_gaa(T37, X77, X76))
pF_in_gggaaaaa(T51, T52, T53, T54, T55, X103, X104, X105) → U15_gggaaaaa(T51, T52, T53, T54, T55, X103, X104, X105, splitD_in_ggaa(T51, .(T52, T53), T54, T55))
U2_gaa(T36, T37, X76, X77, splitC_out_gaa(T37, X77, X76)) → splitC_out_gaa(.(T36, T37), .(T36, X76), X77)
U15_gggaaaaa(T51, T52, T53, T54, T55, X103, X104, X105, splitD_out_ggaa(T51, .(T52, T53), T54, T55)) → U16_gggaaaaa(T51, T52, T53, T54, T55, X103, X104, X105, pN_in_gagaa(T54, X103, T55, X104, X105))
U16_gggaaaaa(T51, T52, T53, T54, T55, X103, X104, X105, pN_out_gagaa(T54, X103, T55, X104, X105)) → pF_out_gggaaaaa(T51, T52, T53, T54, T55, X103, X104, X105)
pN_in_gagaa(T54, T56, T55, X104, X105) → U17_gagaa(T54, T56, T55, X104, X105, mergesortE_in_ga(T54, T56))
U17_gagaa(T54, T56, T55, X104, X105, mergesortE_out_ga(T54, T56)) → U18_gagaa(T54, T56, T55, X104, X105, pO_in_gaga(T55, X104, T56, X105))
U18_gagaa(T54, T56, T55, X104, X105, pO_out_gaga(T55, X104, T56, X105)) → pN_out_gagaa(T54, T56, T55, X104, X105)
pO_in_gaga(T55, T57, T56, X105) → U19_gaga(T55, T57, T56, X105, mergesortE_in_ga(T55, T57))
U19_gaga(T55, T57, T56, X105, mergesortE_out_ga(T55, T57)) → U20_gaga(T55, T57, T56, X105, mergeG_in_gga(T56, T57, X105))
U20_gaga(T55, T57, T56, X105, mergeG_out_gga(T56, T57, X105)) → pO_out_gaga(T55, T57, T56, X105)
mergeG_in_gga([], T66, T66) → mergeG_out_gga([], T66, T66)
mergeG_in_gga(T71, [], T71) → mergeG_out_gga(T71, [], T71)
mergeG_in_gga(.(T92, T93), .(T94, T95), .(T92, T97)) → U5_gga(T92, T93, T94, T95, T97, pH_in_gggga(T92, T94, T93, T95, T97))
mergeG_in_gga(.(T133, T134), .(T135, T136), .(T135, T138)) → U6_gga(T133, T134, T135, T136, T138, pI_in_gggga(T133, T135, T134, T136, T138))
U5_gga(T92, T93, T94, T95, T97, pH_out_gggga(T92, T94, T93, T95, T97)) → mergeG_out_gga(.(T92, T93), .(T94, T95), .(T92, T97))
U6_gga(T133, T134, T135, T136, T138, pI_out_gggga(T133, T135, T134, T136, T138)) → mergeG_out_gga(.(T133, T134), .(T135, T136), .(T135, T138))
pH_in_gggga(T92, T94, T93, T95, T97) → U21_gggga(T92, T94, T93, T95, T97, leJ_in_gg(T92, T94))
pI_in_gggga(T133, T135, T134, T136, T138) → U23_gggga(T133, T135, T134, T136, T138, gtK_in_gg(T133, T135))
U21_gggga(T92, T94, T93, T95, T97, leJ_out_gg(T92, T94)) → U22_gggga(T92, T94, T93, T95, T97, mergeG_in_gga(T93, .(T94, T95), T97))
U23_gggga(T133, T135, T134, T136, T138, gtK_out_gg(T133, T135)) → U24_gggga(T133, T135, T134, T136, T138, mergeG_in_gga(.(T133, T134), T136, T138))
leJ_in_gg(s(T110), s(T111)) → U7_gg(T110, T111, leJ_in_gg(T110, T111))
leJ_in_gg(0, s(T118)) → leJ_out_gg(0, s(T118))
leJ_in_gg(0, 0) → leJ_out_gg(0, 0)
U22_gggga(T92, T94, T93, T95, T97, mergeG_out_gga(T93, .(T94, T95), T97)) → pH_out_gggga(T92, T94, T93, T95, T97)
gtK_in_gg(s(T151), s(T152)) → U8_gg(T151, T152, gtK_in_gg(T151, T152))
gtK_in_gg(s(T157), 0) → gtK_out_gg(s(T157), 0)
U24_gggga(T133, T135, T134, T136, T138, mergeG_out_gga(.(T133, T134), T136, T138)) → pI_out_gggga(T133, T135, T134, T136, T138)
U7_gg(T110, T111, leJ_out_gg(T110, T111)) → leJ_out_gg(s(T110), s(T111))
U8_gg(T151, T152, gtK_out_gg(T151, T152)) → gtK_out_gg(s(T151), s(T152))
PF_IN_GGGAAAAA(T51, T52, T53) → U15_GGGAAAAA(T51, T52, T53, splitD_in_ggaa(T51, .(T52, T53)))
U15_GGGAAAAA(T51, T52, T53, splitD_out_ggaa(T51, .(T52, T53), T54, T55)) → PN_IN_GAGAA(T54, T55)
PN_IN_GAGAA(T54, T55) → U17_GAGAA(T54, T55, mergesortE_in_ga(T54))
U17_GAGAA(T54, T55, mergesortE_out_ga(T54, T56)) → PO_IN_GAGA(T55, T56)
PO_IN_GAGA(T55, T56) → MERGESORTE_IN_GA(T55)
MERGESORTE_IN_GA(.(T51, .(T52, T53))) → PF_IN_GGGAAAAA(T51, T52, T53)
PN_IN_GAGAA(T54, T55) → MERGESORTE_IN_GA(T54)
splitD_in_ggaa(T30, T31) → U3_ggaa(T30, T31, splitC_in_gaa(T31))
mergesortE_in_ga([]) → mergesortE_out_ga([], [])
mergesortE_in_ga(.(T44, [])) → mergesortE_out_ga(.(T44, []), .(T44, []))
mergesortE_in_ga(.(T51, .(T52, T53))) → U4_ga(T51, T52, T53, pF_in_gggaaaaa(T51, T52, T53))
U3_ggaa(T30, T31, splitC_out_gaa(T31, X59, X58)) → splitD_out_ggaa(T30, T31, .(T30, X58), X59)
U4_ga(T51, T52, T53, pF_out_gggaaaaa(T51, T52, T53, X101, X102, X103, X104, X105)) → mergesortE_out_ga(.(T51, .(T52, T53)), X105)
splitC_in_gaa([]) → splitC_out_gaa([], [], [])
splitC_in_gaa(.(T36, T37)) → U2_gaa(T36, T37, splitC_in_gaa(T37))
pF_in_gggaaaaa(T51, T52, T53) → U15_gggaaaaa(T51, T52, T53, splitD_in_ggaa(T51, .(T52, T53)))
U2_gaa(T36, T37, splitC_out_gaa(T37, X77, X76)) → splitC_out_gaa(.(T36, T37), .(T36, X76), X77)
U15_gggaaaaa(T51, T52, T53, splitD_out_ggaa(T51, .(T52, T53), T54, T55)) → U16_gggaaaaa(T51, T52, T53, T54, T55, pN_in_gagaa(T54, T55))
U16_gggaaaaa(T51, T52, T53, T54, T55, pN_out_gagaa(T54, X103, T55, X104, X105)) → pF_out_gggaaaaa(T51, T52, T53, T54, T55, X103, X104, X105)
pN_in_gagaa(T54, T55) → U17_gagaa(T54, T55, mergesortE_in_ga(T54))
U17_gagaa(T54, T55, mergesortE_out_ga(T54, T56)) → U18_gagaa(T54, T56, T55, pO_in_gaga(T55, T56))
U18_gagaa(T54, T56, T55, pO_out_gaga(T55, X104, T56, X105)) → pN_out_gagaa(T54, T56, T55, X104, X105)
pO_in_gaga(T55, T56) → U19_gaga(T55, T56, mergesortE_in_ga(T55))
U19_gaga(T55, T56, mergesortE_out_ga(T55, T57)) → U20_gaga(T55, T57, T56, mergeG_in_gga(T56, T57))
U20_gaga(T55, T57, T56, mergeG_out_gga(T56, T57, X105)) → pO_out_gaga(T55, T57, T56, X105)
mergeG_in_gga([], T66) → mergeG_out_gga([], T66, T66)
mergeG_in_gga(T71, []) → mergeG_out_gga(T71, [], T71)
mergeG_in_gga(.(T92, T93), .(T94, T95)) → U5_gga(T92, T93, T94, T95, pH_in_gggga(T92, T94, T93, T95))
mergeG_in_gga(.(T133, T134), .(T135, T136)) → U6_gga(T133, T134, T135, T136, pI_in_gggga(T133, T135, T134, T136))
U5_gga(T92, T93, T94, T95, pH_out_gggga(T92, T94, T93, T95, T97)) → mergeG_out_gga(.(T92, T93), .(T94, T95), .(T92, T97))
U6_gga(T133, T134, T135, T136, pI_out_gggga(T133, T135, T134, T136, T138)) → mergeG_out_gga(.(T133, T134), .(T135, T136), .(T135, T138))
pH_in_gggga(T92, T94, T93, T95) → U21_gggga(T92, T94, T93, T95, leJ_in_gg(T92, T94))
pI_in_gggga(T133, T135, T134, T136) → U23_gggga(T133, T135, T134, T136, gtK_in_gg(T133, T135))
U21_gggga(T92, T94, T93, T95, leJ_out_gg(T92, T94)) → U22_gggga(T92, T94, T93, T95, mergeG_in_gga(T93, .(T94, T95)))
U23_gggga(T133, T135, T134, T136, gtK_out_gg(T133, T135)) → U24_gggga(T133, T135, T134, T136, mergeG_in_gga(.(T133, T134), T136))
leJ_in_gg(s(T110), s(T111)) → U7_gg(T110, T111, leJ_in_gg(T110, T111))
leJ_in_gg(0, s(T118)) → leJ_out_gg(0, s(T118))
leJ_in_gg(0, 0) → leJ_out_gg(0, 0)
U22_gggga(T92, T94, T93, T95, mergeG_out_gga(T93, .(T94, T95), T97)) → pH_out_gggga(T92, T94, T93, T95, T97)
gtK_in_gg(s(T151), s(T152)) → U8_gg(T151, T152, gtK_in_gg(T151, T152))
gtK_in_gg(s(T157), 0) → gtK_out_gg(s(T157), 0)
U24_gggga(T133, T135, T134, T136, mergeG_out_gga(.(T133, T134), T136, T138)) → pI_out_gggga(T133, T135, T134, T136, T138)
U7_gg(T110, T111, leJ_out_gg(T110, T111)) → leJ_out_gg(s(T110), s(T111))
U8_gg(T151, T152, gtK_out_gg(T151, T152)) → gtK_out_gg(s(T151), s(T152))
splitD_in_ggaa(x0, x1)
mergesortE_in_ga(x0)
U3_ggaa(x0, x1, x2)
U4_ga(x0, x1, x2, x3)
splitC_in_gaa(x0)
pF_in_gggaaaaa(x0, x1, x2)
U2_gaa(x0, x1, x2)
U15_gggaaaaa(x0, x1, x2, x3)
U16_gggaaaaa(x0, x1, x2, x3, x4, x5)
pN_in_gagaa(x0, x1)
U17_gagaa(x0, x1, x2)
U18_gagaa(x0, x1, x2, x3)
pO_in_gaga(x0, x1)
U19_gaga(x0, x1, x2)
U20_gaga(x0, x1, x2, x3)
mergeG_in_gga(x0, x1)
U5_gga(x0, x1, x2, x3, x4)
U6_gga(x0, x1, x2, x3, x4)
pH_in_gggga(x0, x1, x2, x3)
pI_in_gggga(x0, x1, x2, x3)
U21_gggga(x0, x1, x2, x3, x4)
U23_gggga(x0, x1, x2, x3, x4)
leJ_in_gg(x0, x1)
U22_gggga(x0, x1, x2, x3, x4)
gtK_in_gg(x0, x1)
U24_gggga(x0, x1, x2, x3, x4)
U7_gg(x0, x1, x2)
U8_gg(x0, x1, x2)
PF_IN_GGGAAAAA(T51, T52, T53) → U15_GGGAAAAA(T51, T52, T53, U3_ggaa(T51, .(T52, T53), splitC_in_gaa(.(T52, T53))))
U15_GGGAAAAA(T51, T52, T53, splitD_out_ggaa(T51, .(T52, T53), T54, T55)) → PN_IN_GAGAA(T54, T55)
PN_IN_GAGAA(T54, T55) → U17_GAGAA(T54, T55, mergesortE_in_ga(T54))
U17_GAGAA(T54, T55, mergesortE_out_ga(T54, T56)) → PO_IN_GAGA(T55, T56)
PO_IN_GAGA(T55, T56) → MERGESORTE_IN_GA(T55)
MERGESORTE_IN_GA(.(T51, .(T52, T53))) → PF_IN_GGGAAAAA(T51, T52, T53)
PN_IN_GAGAA(T54, T55) → MERGESORTE_IN_GA(T54)
PF_IN_GGGAAAAA(T51, T52, T53) → U15_GGGAAAAA(T51, T52, T53, U3_ggaa(T51, .(T52, T53), splitC_in_gaa(.(T52, T53))))
splitD_in_ggaa(T30, T31) → U3_ggaa(T30, T31, splitC_in_gaa(T31))
mergesortE_in_ga([]) → mergesortE_out_ga([], [])
mergesortE_in_ga(.(T44, [])) → mergesortE_out_ga(.(T44, []), .(T44, []))
mergesortE_in_ga(.(T51, .(T52, T53))) → U4_ga(T51, T52, T53, pF_in_gggaaaaa(T51, T52, T53))
U3_ggaa(T30, T31, splitC_out_gaa(T31, X59, X58)) → splitD_out_ggaa(T30, T31, .(T30, X58), X59)
U4_ga(T51, T52, T53, pF_out_gggaaaaa(T51, T52, T53, X101, X102, X103, X104, X105)) → mergesortE_out_ga(.(T51, .(T52, T53)), X105)
splitC_in_gaa([]) → splitC_out_gaa([], [], [])
splitC_in_gaa(.(T36, T37)) → U2_gaa(T36, T37, splitC_in_gaa(T37))
pF_in_gggaaaaa(T51, T52, T53) → U15_gggaaaaa(T51, T52, T53, splitD_in_ggaa(T51, .(T52, T53)))
U2_gaa(T36, T37, splitC_out_gaa(T37, X77, X76)) → splitC_out_gaa(.(T36, T37), .(T36, X76), X77)
U15_gggaaaaa(T51, T52, T53, splitD_out_ggaa(T51, .(T52, T53), T54, T55)) → U16_gggaaaaa(T51, T52, T53, T54, T55, pN_in_gagaa(T54, T55))
U16_gggaaaaa(T51, T52, T53, T54, T55, pN_out_gagaa(T54, X103, T55, X104, X105)) → pF_out_gggaaaaa(T51, T52, T53, T54, T55, X103, X104, X105)
pN_in_gagaa(T54, T55) → U17_gagaa(T54, T55, mergesortE_in_ga(T54))
U17_gagaa(T54, T55, mergesortE_out_ga(T54, T56)) → U18_gagaa(T54, T56, T55, pO_in_gaga(T55, T56))
U18_gagaa(T54, T56, T55, pO_out_gaga(T55, X104, T56, X105)) → pN_out_gagaa(T54, T56, T55, X104, X105)
pO_in_gaga(T55, T56) → U19_gaga(T55, T56, mergesortE_in_ga(T55))
U19_gaga(T55, T56, mergesortE_out_ga(T55, T57)) → U20_gaga(T55, T57, T56, mergeG_in_gga(T56, T57))
U20_gaga(T55, T57, T56, mergeG_out_gga(T56, T57, X105)) → pO_out_gaga(T55, T57, T56, X105)
mergeG_in_gga([], T66) → mergeG_out_gga([], T66, T66)
mergeG_in_gga(T71, []) → mergeG_out_gga(T71, [], T71)
mergeG_in_gga(.(T92, T93), .(T94, T95)) → U5_gga(T92, T93, T94, T95, pH_in_gggga(T92, T94, T93, T95))
mergeG_in_gga(.(T133, T134), .(T135, T136)) → U6_gga(T133, T134, T135, T136, pI_in_gggga(T133, T135, T134, T136))
U5_gga(T92, T93, T94, T95, pH_out_gggga(T92, T94, T93, T95, T97)) → mergeG_out_gga(.(T92, T93), .(T94, T95), .(T92, T97))
U6_gga(T133, T134, T135, T136, pI_out_gggga(T133, T135, T134, T136, T138)) → mergeG_out_gga(.(T133, T134), .(T135, T136), .(T135, T138))
pH_in_gggga(T92, T94, T93, T95) → U21_gggga(T92, T94, T93, T95, leJ_in_gg(T92, T94))
pI_in_gggga(T133, T135, T134, T136) → U23_gggga(T133, T135, T134, T136, gtK_in_gg(T133, T135))
U21_gggga(T92, T94, T93, T95, leJ_out_gg(T92, T94)) → U22_gggga(T92, T94, T93, T95, mergeG_in_gga(T93, .(T94, T95)))
U23_gggga(T133, T135, T134, T136, gtK_out_gg(T133, T135)) → U24_gggga(T133, T135, T134, T136, mergeG_in_gga(.(T133, T134), T136))
leJ_in_gg(s(T110), s(T111)) → U7_gg(T110, T111, leJ_in_gg(T110, T111))
leJ_in_gg(0, s(T118)) → leJ_out_gg(0, s(T118))
leJ_in_gg(0, 0) → leJ_out_gg(0, 0)
U22_gggga(T92, T94, T93, T95, mergeG_out_gga(T93, .(T94, T95), T97)) → pH_out_gggga(T92, T94, T93, T95, T97)
gtK_in_gg(s(T151), s(T152)) → U8_gg(T151, T152, gtK_in_gg(T151, T152))
gtK_in_gg(s(T157), 0) → gtK_out_gg(s(T157), 0)
U24_gggga(T133, T135, T134, T136, mergeG_out_gga(.(T133, T134), T136, T138)) → pI_out_gggga(T133, T135, T134, T136, T138)
U7_gg(T110, T111, leJ_out_gg(T110, T111)) → leJ_out_gg(s(T110), s(T111))
U8_gg(T151, T152, gtK_out_gg(T151, T152)) → gtK_out_gg(s(T151), s(T152))
splitD_in_ggaa(x0, x1)
mergesortE_in_ga(x0)
U3_ggaa(x0, x1, x2)
U4_ga(x0, x1, x2, x3)
splitC_in_gaa(x0)
pF_in_gggaaaaa(x0, x1, x2)
U2_gaa(x0, x1, x2)
U15_gggaaaaa(x0, x1, x2, x3)
U16_gggaaaaa(x0, x1, x2, x3, x4, x5)
pN_in_gagaa(x0, x1)
U17_gagaa(x0, x1, x2)
U18_gagaa(x0, x1, x2, x3)
pO_in_gaga(x0, x1)
U19_gaga(x0, x1, x2)
U20_gaga(x0, x1, x2, x3)
mergeG_in_gga(x0, x1)
U5_gga(x0, x1, x2, x3, x4)
U6_gga(x0, x1, x2, x3, x4)
pH_in_gggga(x0, x1, x2, x3)
pI_in_gggga(x0, x1, x2, x3)
U21_gggga(x0, x1, x2, x3, x4)
U23_gggga(x0, x1, x2, x3, x4)
leJ_in_gg(x0, x1)
U22_gggga(x0, x1, x2, x3, x4)
gtK_in_gg(x0, x1)
U24_gggga(x0, x1, x2, x3, x4)
U7_gg(x0, x1, x2)
U8_gg(x0, x1, x2)
PF_IN_GGGAAAAA(T51, T52, T53) → U15_GGGAAAAA(T51, T52, T53, U3_ggaa(T51, .(T52, T53), U2_gaa(T52, T53, splitC_in_gaa(T53))))
U15_GGGAAAAA(T51, T52, T53, splitD_out_ggaa(T51, .(T52, T53), T54, T55)) → PN_IN_GAGAA(T54, T55)
PN_IN_GAGAA(T54, T55) → U17_GAGAA(T54, T55, mergesortE_in_ga(T54))
U17_GAGAA(T54, T55, mergesortE_out_ga(T54, T56)) → PO_IN_GAGA(T55, T56)
PO_IN_GAGA(T55, T56) → MERGESORTE_IN_GA(T55)
MERGESORTE_IN_GA(.(T51, .(T52, T53))) → PF_IN_GGGAAAAA(T51, T52, T53)
PN_IN_GAGAA(T54, T55) → MERGESORTE_IN_GA(T54)
PF_IN_GGGAAAAA(T51, T52, T53) → U15_GGGAAAAA(T51, T52, T53, U3_ggaa(T51, .(T52, T53), U2_gaa(T52, T53, splitC_in_gaa(T53))))
splitD_in_ggaa(T30, T31) → U3_ggaa(T30, T31, splitC_in_gaa(T31))
mergesortE_in_ga([]) → mergesortE_out_ga([], [])
mergesortE_in_ga(.(T44, [])) → mergesortE_out_ga(.(T44, []), .(T44, []))
mergesortE_in_ga(.(T51, .(T52, T53))) → U4_ga(T51, T52, T53, pF_in_gggaaaaa(T51, T52, T53))
U3_ggaa(T30, T31, splitC_out_gaa(T31, X59, X58)) → splitD_out_ggaa(T30, T31, .(T30, X58), X59)
U4_ga(T51, T52, T53, pF_out_gggaaaaa(T51, T52, T53, X101, X102, X103, X104, X105)) → mergesortE_out_ga(.(T51, .(T52, T53)), X105)
splitC_in_gaa([]) → splitC_out_gaa([], [], [])
splitC_in_gaa(.(T36, T37)) → U2_gaa(T36, T37, splitC_in_gaa(T37))
pF_in_gggaaaaa(T51, T52, T53) → U15_gggaaaaa(T51, T52, T53, splitD_in_ggaa(T51, .(T52, T53)))
U2_gaa(T36, T37, splitC_out_gaa(T37, X77, X76)) → splitC_out_gaa(.(T36, T37), .(T36, X76), X77)
U15_gggaaaaa(T51, T52, T53, splitD_out_ggaa(T51, .(T52, T53), T54, T55)) → U16_gggaaaaa(T51, T52, T53, T54, T55, pN_in_gagaa(T54, T55))
U16_gggaaaaa(T51, T52, T53, T54, T55, pN_out_gagaa(T54, X103, T55, X104, X105)) → pF_out_gggaaaaa(T51, T52, T53, T54, T55, X103, X104, X105)
pN_in_gagaa(T54, T55) → U17_gagaa(T54, T55, mergesortE_in_ga(T54))
U17_gagaa(T54, T55, mergesortE_out_ga(T54, T56)) → U18_gagaa(T54, T56, T55, pO_in_gaga(T55, T56))
U18_gagaa(T54, T56, T55, pO_out_gaga(T55, X104, T56, X105)) → pN_out_gagaa(T54, T56, T55, X104, X105)
pO_in_gaga(T55, T56) → U19_gaga(T55, T56, mergesortE_in_ga(T55))
U19_gaga(T55, T56, mergesortE_out_ga(T55, T57)) → U20_gaga(T55, T57, T56, mergeG_in_gga(T56, T57))
U20_gaga(T55, T57, T56, mergeG_out_gga(T56, T57, X105)) → pO_out_gaga(T55, T57, T56, X105)
mergeG_in_gga([], T66) → mergeG_out_gga([], T66, T66)
mergeG_in_gga(T71, []) → mergeG_out_gga(T71, [], T71)
mergeG_in_gga(.(T92, T93), .(T94, T95)) → U5_gga(T92, T93, T94, T95, pH_in_gggga(T92, T94, T93, T95))
mergeG_in_gga(.(T133, T134), .(T135, T136)) → U6_gga(T133, T134, T135, T136, pI_in_gggga(T133, T135, T134, T136))
U5_gga(T92, T93, T94, T95, pH_out_gggga(T92, T94, T93, T95, T97)) → mergeG_out_gga(.(T92, T93), .(T94, T95), .(T92, T97))
U6_gga(T133, T134, T135, T136, pI_out_gggga(T133, T135, T134, T136, T138)) → mergeG_out_gga(.(T133, T134), .(T135, T136), .(T135, T138))
pH_in_gggga(T92, T94, T93, T95) → U21_gggga(T92, T94, T93, T95, leJ_in_gg(T92, T94))
pI_in_gggga(T133, T135, T134, T136) → U23_gggga(T133, T135, T134, T136, gtK_in_gg(T133, T135))
U21_gggga(T92, T94, T93, T95, leJ_out_gg(T92, T94)) → U22_gggga(T92, T94, T93, T95, mergeG_in_gga(T93, .(T94, T95)))
U23_gggga(T133, T135, T134, T136, gtK_out_gg(T133, T135)) → U24_gggga(T133, T135, T134, T136, mergeG_in_gga(.(T133, T134), T136))
leJ_in_gg(s(T110), s(T111)) → U7_gg(T110, T111, leJ_in_gg(T110, T111))
leJ_in_gg(0, s(T118)) → leJ_out_gg(0, s(T118))
leJ_in_gg(0, 0) → leJ_out_gg(0, 0)
U22_gggga(T92, T94, T93, T95, mergeG_out_gga(T93, .(T94, T95), T97)) → pH_out_gggga(T92, T94, T93, T95, T97)
gtK_in_gg(s(T151), s(T152)) → U8_gg(T151, T152, gtK_in_gg(T151, T152))
gtK_in_gg(s(T157), 0) → gtK_out_gg(s(T157), 0)
U24_gggga(T133, T135, T134, T136, mergeG_out_gga(.(T133, T134), T136, T138)) → pI_out_gggga(T133, T135, T134, T136, T138)
U7_gg(T110, T111, leJ_out_gg(T110, T111)) → leJ_out_gg(s(T110), s(T111))
U8_gg(T151, T152, gtK_out_gg(T151, T152)) → gtK_out_gg(s(T151), s(T152))
splitD_in_ggaa(x0, x1)
mergesortE_in_ga(x0)
U3_ggaa(x0, x1, x2)
U4_ga(x0, x1, x2, x3)
splitC_in_gaa(x0)
pF_in_gggaaaaa(x0, x1, x2)
U2_gaa(x0, x1, x2)
U15_gggaaaaa(x0, x1, x2, x3)
U16_gggaaaaa(x0, x1, x2, x3, x4, x5)
pN_in_gagaa(x0, x1)
U17_gagaa(x0, x1, x2)
U18_gagaa(x0, x1, x2, x3)
pO_in_gaga(x0, x1)
U19_gaga(x0, x1, x2)
U20_gaga(x0, x1, x2, x3)
mergeG_in_gga(x0, x1)
U5_gga(x0, x1, x2, x3, x4)
U6_gga(x0, x1, x2, x3, x4)
pH_in_gggga(x0, x1, x2, x3)
pI_in_gggga(x0, x1, x2, x3)
U21_gggga(x0, x1, x2, x3, x4)
U23_gggga(x0, x1, x2, x3, x4)
leJ_in_gg(x0, x1)
U22_gggga(x0, x1, x2, x3, x4)
gtK_in_gg(x0, x1)
U24_gggga(x0, x1, x2, x3, x4)
U7_gg(x0, x1, x2)
U8_gg(x0, x1, x2)
The following pairs can be oriented strictly and are deleted.
The remaining pairs can at least be oriented weakly.
MERGESORTE_IN_GA(.(T51, .(T52, T53))) → PF_IN_GGGAAAAA(T51, T52, T53)
POL( U17_GAGAA(x1, ..., x3) ) = x2
POL( mergesortE_in_ga(x1) ) = 0
POL( [] ) = 0
POL( mergesortE_out_ga(x1, x2) ) = max{0, x2 - 2}
POL( .(x1, x2) ) = 2x2 + 1
POL( U4_ga(x1, ..., x4) ) = 2x2 + 2x4 + 1
POL( pF_in_gggaaaaa(x1, ..., x3) ) = x1
POL( U15_GGGAAAAA(x1, ..., x4) ) = max{0, x4 - 1}
POL( U2_gaa(x1, ..., x3) ) = max{0, 2x3 - 1}
POL( U3_ggaa(x1, ..., x3) ) = x3
POL( U15_gggaaaaa(x1, ..., x4) ) = x2 + x3 + 1
POL( splitC_in_gaa(x1) ) = x1 + 2
POL( splitC_out_gaa(x1, ..., x3) ) = x2 + 2x3 + 2
POL( splitD_out_ggaa(x1, ..., x4) ) = x3 + x4 + 1
POL( U16_gggaaaaa(x1, ..., x6) ) = 2x1 + 2x3 + x4 + 1
POL( pN_in_gagaa(x1, x2) ) = x1 + 2x2 + 1
POL( pN_out_gagaa(x1, ..., x5) ) = 2x1 + 2x2 + x3 + 2x5 + 1
POL( pF_out_gggaaaaa(x1, ..., x8) ) = x1 + x2 + 2x3 + 2x4 + 2x5 + x6 + x7 + x8 + 1
POL( U17_gagaa(x1, ..., x3) ) = 2x1 + x3 + 2
POL( splitD_in_ggaa(x1, x2) ) = max{0, 2x1 - 2}
POL( U18_gagaa(x1, ..., x4) ) = max{0, x1 + x2 + 2x3 - 1}
POL( pO_in_gaga(x1, x2) ) = x2 + 2
POL( pO_out_gaga(x1, ..., x4) ) = x2 + 2x3 + 2x4
POL( U19_gaga(x1, ..., x3) ) = max{0, -2}
POL( U20_gaga(x1, ..., x4) ) = max{0, 2x1 + x2 + x3 - 1}
POL( mergeG_in_gga(x1, x2) ) = max{0, -2}
POL( mergeG_out_gga(x1, ..., x3) ) = max{0, -2}
POL( U5_gga(x1, ..., x5) ) = max{0, x4 + 2x5 - 1}
POL( pH_in_gggga(x1, ..., x4) ) = x1 + x3 + 1
POL( U6_gga(x1, ..., x5) ) = max{0, x1 + x2 + x3 + x4 + 2x5 - 1}
POL( pI_in_gggga(x1, ..., x4) ) = 2x1 + x2 + x3 + x4 + 1
POL( pH_out_gggga(x1, ..., x5) ) = 2x1 + 2x2 + x4 + x5 + 2
POL( U21_gggga(x1, ..., x5) ) = 2x1 + 2x3
POL( leJ_in_gg(x1, x2) ) = x1
POL( s(x1) ) = 0
POL( U7_gg(x1, ..., x3) ) = x2 + 2
POL( 0 ) = 0
POL( leJ_out_gg(x1, x2) ) = 2x1 + x2 + 2
POL( U22_gggga(x1, ..., x5) ) = max{0, -2}
POL( pI_out_gggga(x1, ..., x5) ) = 2x1 + 2x2 + x5
POL( U23_gggga(x1, ..., x5) ) = 2x2 + 2x4 + 2
POL( gtK_in_gg(x1, x2) ) = 2x2
POL( U8_gg(x1, ..., x3) ) = 2x1 + 2
POL( gtK_out_gg(x1, x2) ) = max{0, -2}
POL( U24_gggga(x1, ..., x5) ) = max{0, 2x1 + x2 + 2x3 + x4 - 2}
POL( PN_IN_GAGAA(x1, x2) ) = x1 + x2
POL( PO_IN_GAGA(x1, x2) ) = x1
POL( MERGESORTE_IN_GA(x1) ) = x1
POL( PF_IN_GGGAAAAA(x1, ..., x3) ) = 2x3 + 2
splitC_in_gaa([]) → splitC_out_gaa([], [], [])
splitC_in_gaa(.(T36, T37)) → U2_gaa(T36, T37, splitC_in_gaa(T37))
U2_gaa(T36, T37, splitC_out_gaa(T37, X77, X76)) → splitC_out_gaa(.(T36, T37), .(T36, X76), X77)
U3_ggaa(T30, T31, splitC_out_gaa(T31, X59, X58)) → splitD_out_ggaa(T30, T31, .(T30, X58), X59)
U15_GGGAAAAA(T51, T52, T53, splitD_out_ggaa(T51, .(T52, T53), T54, T55)) → PN_IN_GAGAA(T54, T55)
PN_IN_GAGAA(T54, T55) → U17_GAGAA(T54, T55, mergesortE_in_ga(T54))
U17_GAGAA(T54, T55, mergesortE_out_ga(T54, T56)) → PO_IN_GAGA(T55, T56)
PO_IN_GAGA(T55, T56) → MERGESORTE_IN_GA(T55)
PN_IN_GAGAA(T54, T55) → MERGESORTE_IN_GA(T54)
PF_IN_GGGAAAAA(T51, T52, T53) → U15_GGGAAAAA(T51, T52, T53, U3_ggaa(T51, .(T52, T53), U2_gaa(T52, T53, splitC_in_gaa(T53))))
splitD_in_ggaa(T30, T31) → U3_ggaa(T30, T31, splitC_in_gaa(T31))
mergesortE_in_ga([]) → mergesortE_out_ga([], [])
mergesortE_in_ga(.(T44, [])) → mergesortE_out_ga(.(T44, []), .(T44, []))
mergesortE_in_ga(.(T51, .(T52, T53))) → U4_ga(T51, T52, T53, pF_in_gggaaaaa(T51, T52, T53))
U3_ggaa(T30, T31, splitC_out_gaa(T31, X59, X58)) → splitD_out_ggaa(T30, T31, .(T30, X58), X59)
U4_ga(T51, T52, T53, pF_out_gggaaaaa(T51, T52, T53, X101, X102, X103, X104, X105)) → mergesortE_out_ga(.(T51, .(T52, T53)), X105)
splitC_in_gaa([]) → splitC_out_gaa([], [], [])
splitC_in_gaa(.(T36, T37)) → U2_gaa(T36, T37, splitC_in_gaa(T37))
pF_in_gggaaaaa(T51, T52, T53) → U15_gggaaaaa(T51, T52, T53, splitD_in_ggaa(T51, .(T52, T53)))
U2_gaa(T36, T37, splitC_out_gaa(T37, X77, X76)) → splitC_out_gaa(.(T36, T37), .(T36, X76), X77)
U15_gggaaaaa(T51, T52, T53, splitD_out_ggaa(T51, .(T52, T53), T54, T55)) → U16_gggaaaaa(T51, T52, T53, T54, T55, pN_in_gagaa(T54, T55))
U16_gggaaaaa(T51, T52, T53, T54, T55, pN_out_gagaa(T54, X103, T55, X104, X105)) → pF_out_gggaaaaa(T51, T52, T53, T54, T55, X103, X104, X105)
pN_in_gagaa(T54, T55) → U17_gagaa(T54, T55, mergesortE_in_ga(T54))
U17_gagaa(T54, T55, mergesortE_out_ga(T54, T56)) → U18_gagaa(T54, T56, T55, pO_in_gaga(T55, T56))
U18_gagaa(T54, T56, T55, pO_out_gaga(T55, X104, T56, X105)) → pN_out_gagaa(T54, T56, T55, X104, X105)
pO_in_gaga(T55, T56) → U19_gaga(T55, T56, mergesortE_in_ga(T55))
U19_gaga(T55, T56, mergesortE_out_ga(T55, T57)) → U20_gaga(T55, T57, T56, mergeG_in_gga(T56, T57))
U20_gaga(T55, T57, T56, mergeG_out_gga(T56, T57, X105)) → pO_out_gaga(T55, T57, T56, X105)
mergeG_in_gga([], T66) → mergeG_out_gga([], T66, T66)
mergeG_in_gga(T71, []) → mergeG_out_gga(T71, [], T71)
mergeG_in_gga(.(T92, T93), .(T94, T95)) → U5_gga(T92, T93, T94, T95, pH_in_gggga(T92, T94, T93, T95))
mergeG_in_gga(.(T133, T134), .(T135, T136)) → U6_gga(T133, T134, T135, T136, pI_in_gggga(T133, T135, T134, T136))
U5_gga(T92, T93, T94, T95, pH_out_gggga(T92, T94, T93, T95, T97)) → mergeG_out_gga(.(T92, T93), .(T94, T95), .(T92, T97))
U6_gga(T133, T134, T135, T136, pI_out_gggga(T133, T135, T134, T136, T138)) → mergeG_out_gga(.(T133, T134), .(T135, T136), .(T135, T138))
pH_in_gggga(T92, T94, T93, T95) → U21_gggga(T92, T94, T93, T95, leJ_in_gg(T92, T94))
pI_in_gggga(T133, T135, T134, T136) → U23_gggga(T133, T135, T134, T136, gtK_in_gg(T133, T135))
U21_gggga(T92, T94, T93, T95, leJ_out_gg(T92, T94)) → U22_gggga(T92, T94, T93, T95, mergeG_in_gga(T93, .(T94, T95)))
U23_gggga(T133, T135, T134, T136, gtK_out_gg(T133, T135)) → U24_gggga(T133, T135, T134, T136, mergeG_in_gga(.(T133, T134), T136))
leJ_in_gg(s(T110), s(T111)) → U7_gg(T110, T111, leJ_in_gg(T110, T111))
leJ_in_gg(0, s(T118)) → leJ_out_gg(0, s(T118))
leJ_in_gg(0, 0) → leJ_out_gg(0, 0)
U22_gggga(T92, T94, T93, T95, mergeG_out_gga(T93, .(T94, T95), T97)) → pH_out_gggga(T92, T94, T93, T95, T97)
gtK_in_gg(s(T151), s(T152)) → U8_gg(T151, T152, gtK_in_gg(T151, T152))
gtK_in_gg(s(T157), 0) → gtK_out_gg(s(T157), 0)
U24_gggga(T133, T135, T134, T136, mergeG_out_gga(.(T133, T134), T136, T138)) → pI_out_gggga(T133, T135, T134, T136, T138)
U7_gg(T110, T111, leJ_out_gg(T110, T111)) → leJ_out_gg(s(T110), s(T111))
U8_gg(T151, T152, gtK_out_gg(T151, T152)) → gtK_out_gg(s(T151), s(T152))
splitD_in_ggaa(x0, x1)
mergesortE_in_ga(x0)
U3_ggaa(x0, x1, x2)
U4_ga(x0, x1, x2, x3)
splitC_in_gaa(x0)
pF_in_gggaaaaa(x0, x1, x2)
U2_gaa(x0, x1, x2)
U15_gggaaaaa(x0, x1, x2, x3)
U16_gggaaaaa(x0, x1, x2, x3, x4, x5)
pN_in_gagaa(x0, x1)
U17_gagaa(x0, x1, x2)
U18_gagaa(x0, x1, x2, x3)
pO_in_gaga(x0, x1)
U19_gaga(x0, x1, x2)
U20_gaga(x0, x1, x2, x3)
mergeG_in_gga(x0, x1)
U5_gga(x0, x1, x2, x3, x4)
U6_gga(x0, x1, x2, x3, x4)
pH_in_gggga(x0, x1, x2, x3)
pI_in_gggga(x0, x1, x2, x3)
U21_gggga(x0, x1, x2, x3, x4)
U23_gggga(x0, x1, x2, x3, x4)
leJ_in_gg(x0, x1)
U22_gggga(x0, x1, x2, x3, x4)
gtK_in_gg(x0, x1)
U24_gggga(x0, x1, x2, x3, x4)
U7_gg(x0, x1, x2)
U8_gg(x0, x1, x2)
MERGESORTA_IN_GA(.(T21, .(T22, T23)), T14) → PB_IN_GGAAGAAA(T22, T23, X41, X40, T21, X22, X23, T14)
PB_IN_GGAAGAAA(T22, T23, T24, T25, T21, X22, X23, T14) → U9_GGAAGAAA(T22, T23, T24, T25, T21, X22, X23, T14, splitD_in_ggaa(T22, T23, T24, T25))
U9_GGAAGAAA(T22, T23, T24, T25, T21, X22, X23, T14, splitD_out_ggaa(T22, T23, T24, T25)) → PL_IN_GGAGAA(T21, T25, X22, T24, X23, T14)
PL_IN_GGAGAA(T21, T25, T38, T24, X23, T14) → MERGESORTA_IN_GA(.(T21, T25), T38)
mergesortA_in_ga([], []) → mergesortA_out_ga([], [])
mergesortA_in_ga(.(T4, []), .(T4, [])) → mergesortA_out_ga(.(T4, []), .(T4, []))
mergesortA_in_ga(.(T21, .(T22, T23)), T14) → U1_ga(T21, T22, T23, T14, pB_in_ggaagaaa(T22, T23, X41, X40, T21, X22, X23, T14))
pB_in_ggaagaaa(T22, T23, T24, T25, T21, X22, X23, T14) → U9_ggaagaaa(T22, T23, T24, T25, T21, X22, X23, T14, splitD_in_ggaa(T22, T23, T24, T25))
splitD_in_ggaa(T30, T31, .(T30, X58), X59) → U3_ggaa(T30, T31, X58, X59, splitC_in_gaa(T31, X59, X58))
splitC_in_gaa([], [], []) → splitC_out_gaa([], [], [])
splitC_in_gaa(.(T36, T37), .(T36, X76), X77) → U2_gaa(T36, T37, X76, X77, splitC_in_gaa(T37, X77, X76))
U2_gaa(T36, T37, X76, X77, splitC_out_gaa(T37, X77, X76)) → splitC_out_gaa(.(T36, T37), .(T36, X76), X77)
U3_ggaa(T30, T31, X58, X59, splitC_out_gaa(T31, X59, X58)) → splitD_out_ggaa(T30, T31, .(T30, X58), X59)
U9_ggaagaaa(T22, T23, T24, T25, T21, X22, X23, T14, splitD_out_ggaa(T22, T23, T24, T25)) → U10_ggaagaaa(T22, T23, T24, T25, T21, X22, X23, T14, pL_in_ggagaa(T21, T25, X22, T24, X23, T14))
pL_in_ggagaa(T21, T25, T38, T24, X23, T14) → U11_ggagaa(T21, T25, T38, T24, X23, T14, mergesortA_in_ga(.(T21, T25), T38))
U11_ggagaa(T21, T25, T38, T24, X23, T14, mergesortA_out_ga(.(T21, T25), T38)) → U12_ggagaa(T21, T25, T38, T24, X23, T14, pM_in_gaga(T24, X23, T38, T14))
pM_in_gaga(T24, T39, T38, T14) → U13_gaga(T24, T39, T38, T14, mergesortE_in_ga(T24, T39))
mergesortE_in_ga([], []) → mergesortE_out_ga([], [])
mergesortE_in_ga(.(T44, []), .(T44, [])) → mergesortE_out_ga(.(T44, []), .(T44, []))
mergesortE_in_ga(.(T51, .(T52, T53)), X105) → U4_ga(T51, T52, T53, X105, pF_in_gggaaaaa(T51, T52, T53, X101, X102, X103, X104, X105))
pF_in_gggaaaaa(T51, T52, T53, T54, T55, X103, X104, X105) → U15_gggaaaaa(T51, T52, T53, T54, T55, X103, X104, X105, splitD_in_ggaa(T51, .(T52, T53), T54, T55))
U15_gggaaaaa(T51, T52, T53, T54, T55, X103, X104, X105, splitD_out_ggaa(T51, .(T52, T53), T54, T55)) → U16_gggaaaaa(T51, T52, T53, T54, T55, X103, X104, X105, pN_in_gagaa(T54, X103, T55, X104, X105))
pN_in_gagaa(T54, T56, T55, X104, X105) → U17_gagaa(T54, T56, T55, X104, X105, mergesortE_in_ga(T54, T56))
U17_gagaa(T54, T56, T55, X104, X105, mergesortE_out_ga(T54, T56)) → U18_gagaa(T54, T56, T55, X104, X105, pO_in_gaga(T55, X104, T56, X105))
pO_in_gaga(T55, T57, T56, X105) → U19_gaga(T55, T57, T56, X105, mergesortE_in_ga(T55, T57))
U19_gaga(T55, T57, T56, X105, mergesortE_out_ga(T55, T57)) → U20_gaga(T55, T57, T56, X105, mergeG_in_gga(T56, T57, X105))
mergeG_in_gga([], T66, T66) → mergeG_out_gga([], T66, T66)
mergeG_in_gga(T71, [], T71) → mergeG_out_gga(T71, [], T71)
mergeG_in_gga(.(T92, T93), .(T94, T95), .(T92, T97)) → U5_gga(T92, T93, T94, T95, T97, pH_in_gggga(T92, T94, T93, T95, T97))
pH_in_gggga(T92, T94, T93, T95, T97) → U21_gggga(T92, T94, T93, T95, T97, leJ_in_gg(T92, T94))
leJ_in_gg(s(T110), s(T111)) → U7_gg(T110, T111, leJ_in_gg(T110, T111))
leJ_in_gg(0, s(T118)) → leJ_out_gg(0, s(T118))
leJ_in_gg(0, 0) → leJ_out_gg(0, 0)
U7_gg(T110, T111, leJ_out_gg(T110, T111)) → leJ_out_gg(s(T110), s(T111))
U21_gggga(T92, T94, T93, T95, T97, leJ_out_gg(T92, T94)) → U22_gggga(T92, T94, T93, T95, T97, mergeG_in_gga(T93, .(T94, T95), T97))
mergeG_in_gga(.(T133, T134), .(T135, T136), .(T135, T138)) → U6_gga(T133, T134, T135, T136, T138, pI_in_gggga(T133, T135, T134, T136, T138))
pI_in_gggga(T133, T135, T134, T136, T138) → U23_gggga(T133, T135, T134, T136, T138, gtK_in_gg(T133, T135))
gtK_in_gg(s(T151), s(T152)) → U8_gg(T151, T152, gtK_in_gg(T151, T152))
gtK_in_gg(s(T157), 0) → gtK_out_gg(s(T157), 0)
U8_gg(T151, T152, gtK_out_gg(T151, T152)) → gtK_out_gg(s(T151), s(T152))
U23_gggga(T133, T135, T134, T136, T138, gtK_out_gg(T133, T135)) → U24_gggga(T133, T135, T134, T136, T138, mergeG_in_gga(.(T133, T134), T136, T138))
U24_gggga(T133, T135, T134, T136, T138, mergeG_out_gga(.(T133, T134), T136, T138)) → pI_out_gggga(T133, T135, T134, T136, T138)
U6_gga(T133, T134, T135, T136, T138, pI_out_gggga(T133, T135, T134, T136, T138)) → mergeG_out_gga(.(T133, T134), .(T135, T136), .(T135, T138))
U22_gggga(T92, T94, T93, T95, T97, mergeG_out_gga(T93, .(T94, T95), T97)) → pH_out_gggga(T92, T94, T93, T95, T97)
U5_gga(T92, T93, T94, T95, T97, pH_out_gggga(T92, T94, T93, T95, T97)) → mergeG_out_gga(.(T92, T93), .(T94, T95), .(T92, T97))
U20_gaga(T55, T57, T56, X105, mergeG_out_gga(T56, T57, X105)) → pO_out_gaga(T55, T57, T56, X105)
U18_gagaa(T54, T56, T55, X104, X105, pO_out_gaga(T55, X104, T56, X105)) → pN_out_gagaa(T54, T56, T55, X104, X105)
U16_gggaaaaa(T51, T52, T53, T54, T55, X103, X104, X105, pN_out_gagaa(T54, X103, T55, X104, X105)) → pF_out_gggaaaaa(T51, T52, T53, T54, T55, X103, X104, X105)
U4_ga(T51, T52, T53, X105, pF_out_gggaaaaa(T51, T52, T53, X101, X102, X103, X104, X105)) → mergesortE_out_ga(.(T51, .(T52, T53)), X105)
U13_gaga(T24, T39, T38, T14, mergesortE_out_ga(T24, T39)) → U14_gaga(T24, T39, T38, T14, mergeG_in_gga(T38, T39, T14))
U14_gaga(T24, T39, T38, T14, mergeG_out_gga(T38, T39, T14)) → pM_out_gaga(T24, T39, T38, T14)
U12_ggagaa(T21, T25, T38, T24, X23, T14, pM_out_gaga(T24, X23, T38, T14)) → pL_out_ggagaa(T21, T25, T38, T24, X23, T14)
U10_ggaagaaa(T22, T23, T24, T25, T21, X22, X23, T14, pL_out_ggagaa(T21, T25, X22, T24, X23, T14)) → pB_out_ggaagaaa(T22, T23, T24, T25, T21, X22, X23, T14)
U1_ga(T21, T22, T23, T14, pB_out_ggaagaaa(T22, T23, X41, X40, T21, X22, X23, T14)) → mergesortA_out_ga(.(T21, .(T22, T23)), T14)
MERGESORTA_IN_GA(.(T21, .(T22, T23)), T14) → PB_IN_GGAAGAAA(T22, T23, X41, X40, T21, X22, X23, T14)
PB_IN_GGAAGAAA(T22, T23, T24, T25, T21, X22, X23, T14) → U9_GGAAGAAA(T22, T23, T24, T25, T21, X22, X23, T14, splitD_in_ggaa(T22, T23, T24, T25))
U9_GGAAGAAA(T22, T23, T24, T25, T21, X22, X23, T14, splitD_out_ggaa(T22, T23, T24, T25)) → PL_IN_GGAGAA(T21, T25, X22, T24, X23, T14)
PL_IN_GGAGAA(T21, T25, T38, T24, X23, T14) → MERGESORTA_IN_GA(.(T21, T25), T38)
splitD_in_ggaa(T30, T31, .(T30, X58), X59) → U3_ggaa(T30, T31, X58, X59, splitC_in_gaa(T31, X59, X58))
U3_ggaa(T30, T31, X58, X59, splitC_out_gaa(T31, X59, X58)) → splitD_out_ggaa(T30, T31, .(T30, X58), X59)
splitC_in_gaa([], [], []) → splitC_out_gaa([], [], [])
splitC_in_gaa(.(T36, T37), .(T36, X76), X77) → U2_gaa(T36, T37, X76, X77, splitC_in_gaa(T37, X77, X76))
U2_gaa(T36, T37, X76, X77, splitC_out_gaa(T37, X77, X76)) → splitC_out_gaa(.(T36, T37), .(T36, X76), X77)
MERGESORTA_IN_GA(.(T21, .(T22, T23))) → PB_IN_GGAAGAAA(T22, T23, T21)
PB_IN_GGAAGAAA(T22, T23, T21) → U9_GGAAGAAA(T22, T23, T21, splitD_in_ggaa(T22, T23))
U9_GGAAGAAA(T22, T23, T21, splitD_out_ggaa(T22, T23, T24, T25)) → PL_IN_GGAGAA(T21, T25, T24)
PL_IN_GGAGAA(T21, T25, T24) → MERGESORTA_IN_GA(.(T21, T25))
splitD_in_ggaa(T30, T31) → U3_ggaa(T30, T31, splitC_in_gaa(T31))
U3_ggaa(T30, T31, splitC_out_gaa(T31, X59, X58)) → splitD_out_ggaa(T30, T31, .(T30, X58), X59)
splitC_in_gaa([]) → splitC_out_gaa([], [], [])
splitC_in_gaa(.(T36, T37)) → U2_gaa(T36, T37, splitC_in_gaa(T37))
U2_gaa(T36, T37, splitC_out_gaa(T37, X77, X76)) → splitC_out_gaa(.(T36, T37), .(T36, X76), X77)
splitD_in_ggaa(x0, x1)
U3_ggaa(x0, x1, x2)
splitC_in_gaa(x0)
U2_gaa(x0, x1, x2)
PB_IN_GGAAGAAA(T22, T23, T21) → U9_GGAAGAAA(T22, T23, T21, U3_ggaa(T22, T23, splitC_in_gaa(T23)))
MERGESORTA_IN_GA(.(T21, .(T22, T23))) → PB_IN_GGAAGAAA(T22, T23, T21)
U9_GGAAGAAA(T22, T23, T21, splitD_out_ggaa(T22, T23, T24, T25)) → PL_IN_GGAGAA(T21, T25, T24)
PL_IN_GGAGAA(T21, T25, T24) → MERGESORTA_IN_GA(.(T21, T25))
PB_IN_GGAAGAAA(T22, T23, T21) → U9_GGAAGAAA(T22, T23, T21, U3_ggaa(T22, T23, splitC_in_gaa(T23)))
splitD_in_ggaa(T30, T31) → U3_ggaa(T30, T31, splitC_in_gaa(T31))
U3_ggaa(T30, T31, splitC_out_gaa(T31, X59, X58)) → splitD_out_ggaa(T30, T31, .(T30, X58), X59)
splitC_in_gaa([]) → splitC_out_gaa([], [], [])
splitC_in_gaa(.(T36, T37)) → U2_gaa(T36, T37, splitC_in_gaa(T37))
U2_gaa(T36, T37, splitC_out_gaa(T37, X77, X76)) → splitC_out_gaa(.(T36, T37), .(T36, X76), X77)
splitD_in_ggaa(x0, x1)
U3_ggaa(x0, x1, x2)
splitC_in_gaa(x0)
U2_gaa(x0, x1, x2)
MERGESORTA_IN_GA(.(T21, .(T22, T23))) → PB_IN_GGAAGAAA(T22, T23, T21)
U9_GGAAGAAA(T22, T23, T21, splitD_out_ggaa(T22, T23, T24, T25)) → PL_IN_GGAGAA(T21, T25, T24)
PL_IN_GGAGAA(T21, T25, T24) → MERGESORTA_IN_GA(.(T21, T25))
PB_IN_GGAAGAAA(T22, T23, T21) → U9_GGAAGAAA(T22, T23, T21, U3_ggaa(T22, T23, splitC_in_gaa(T23)))
splitC_in_gaa([]) → splitC_out_gaa([], [], [])
splitC_in_gaa(.(T36, T37)) → U2_gaa(T36, T37, splitC_in_gaa(T37))
U3_ggaa(T30, T31, splitC_out_gaa(T31, X59, X58)) → splitD_out_ggaa(T30, T31, .(T30, X58), X59)
U2_gaa(T36, T37, splitC_out_gaa(T37, X77, X76)) → splitC_out_gaa(.(T36, T37), .(T36, X76), X77)
splitD_in_ggaa(x0, x1)
U3_ggaa(x0, x1, x2)
splitC_in_gaa(x0)
U2_gaa(x0, x1, x2)
splitD_in_ggaa(x0, x1)
MERGESORTA_IN_GA(.(T21, .(T22, T23))) → PB_IN_GGAAGAAA(T22, T23, T21)
U9_GGAAGAAA(T22, T23, T21, splitD_out_ggaa(T22, T23, T24, T25)) → PL_IN_GGAGAA(T21, T25, T24)
PL_IN_GGAGAA(T21, T25, T24) → MERGESORTA_IN_GA(.(T21, T25))
PB_IN_GGAAGAAA(T22, T23, T21) → U9_GGAAGAAA(T22, T23, T21, U3_ggaa(T22, T23, splitC_in_gaa(T23)))
splitC_in_gaa([]) → splitC_out_gaa([], [], [])
splitC_in_gaa(.(T36, T37)) → U2_gaa(T36, T37, splitC_in_gaa(T37))
U3_ggaa(T30, T31, splitC_out_gaa(T31, X59, X58)) → splitD_out_ggaa(T30, T31, .(T30, X58), X59)
U2_gaa(T36, T37, splitC_out_gaa(T37, X77, X76)) → splitC_out_gaa(.(T36, T37), .(T36, X76), X77)
U3_ggaa(x0, x1, x2)
splitC_in_gaa(x0)
U2_gaa(x0, x1, x2)
The following pairs can be oriented strictly and are deleted.
The remaining pairs can at least be oriented weakly.
MERGESORTA_IN_GA(.(T21, .(T22, T23))) → PB_IN_GGAAGAAA(T22, T23, T21)
POL(.(x1, x2)) = 1 + x2
POL(MERGESORTA_IN_GA(x1)) = x1
POL(PB_IN_GGAAGAAA(x1, x2, x3)) = 1 + x2
POL(PL_IN_GGAGAA(x1, x2, x3)) = 1 + x2
POL(U2_gaa(x1, x2, x3)) = 1 + x3
POL(U3_ggaa(x1, x2, x3)) = x3
POL(U9_GGAAGAAA(x1, x2, x3, x4)) = x4
POL([]) = 0
POL(splitC_in_gaa(x1)) = 1 + x1
POL(splitC_out_gaa(x1, x2, x3)) = 1 + x2 + x3
POL(splitD_out_ggaa(x1, x2, x3, x4)) = 1 + x4
splitC_in_gaa([]) → splitC_out_gaa([], [], [])
splitC_in_gaa(.(T36, T37)) → U2_gaa(T36, T37, splitC_in_gaa(T37))
U3_ggaa(T30, T31, splitC_out_gaa(T31, X59, X58)) → splitD_out_ggaa(T30, T31, .(T30, X58), X59)
U2_gaa(T36, T37, splitC_out_gaa(T37, X77, X76)) → splitC_out_gaa(.(T36, T37), .(T36, X76), X77)
U9_GGAAGAAA(T22, T23, T21, splitD_out_ggaa(T22, T23, T24, T25)) → PL_IN_GGAGAA(T21, T25, T24)
PL_IN_GGAGAA(T21, T25, T24) → MERGESORTA_IN_GA(.(T21, T25))
PB_IN_GGAAGAAA(T22, T23, T21) → U9_GGAAGAAA(T22, T23, T21, U3_ggaa(T22, T23, splitC_in_gaa(T23)))
splitC_in_gaa([]) → splitC_out_gaa([], [], [])
splitC_in_gaa(.(T36, T37)) → U2_gaa(T36, T37, splitC_in_gaa(T37))
U3_ggaa(T30, T31, splitC_out_gaa(T31, X59, X58)) → splitD_out_ggaa(T30, T31, .(T30, X58), X59)
U2_gaa(T36, T37, splitC_out_gaa(T37, X77, X76)) → splitC_out_gaa(.(T36, T37), .(T36, X76), X77)
U3_ggaa(x0, x1, x2)
splitC_in_gaa(x0)
U2_gaa(x0, x1, x2)