0 Prolog
↳1 PrologToPrologProblemTransformerProof (⇐)
↳2 Prolog
↳3 PrologToPiTRSProof (⇐)
↳4 PiTRS
↳5 DependencyPairsProof (⇔)
↳6 PiDP
↳7 DependencyGraphProof (⇔)
↳8 AND
↳9 PiDP
↳10 UsableRulesProof (⇔)
↳11 PiDP
↳12 PiDPToQDPProof (⇐)
↳13 QDP
↳14 NonTerminationProof (⇔)
↳15 NO
↳16 PiDP
↳17 UsableRulesProof (⇔)
↳18 PiDP
↳19 PiDPToQDPProof (⇐)
↳20 QDP
↳21 Narrowing (⇐)
↳22 QDP
↳23 UsableRulesProof (⇔)
↳24 QDP
↳25 QReductionProof (⇔)
↳26 QDP
↳27 NonTerminationProof (⇔)
↳28 NO
↳29 PiDP
↳30 UsableRulesProof (⇔)
↳31 PiDP
↳32 PiDPToQDPProof (⇐)
↳33 QDP
↳34 QDPSizeChangeProof (⇔)
↳35 YES
↳36 PiDP
↳37 UsableRulesProof (⇔)
↳38 PiDP
↳39 PiDPToQDPProof (⇐)
↳40 QDP
↳41 QDPSizeChangeProof (⇔)
↳42 YES
↳43 PiDP
↳44 UsableRulesProof (⇔)
↳45 PiDP
↳46 PiDPToQDPProof (⇐)
↳47 QDP
↳48 QDPSizeChangeProof (⇔)
↳49 YES
↳50 PiDP
↳51 UsableRulesProof (⇔)
↳52 PiDP
↳53 PiDPToQDPProof (⇐)
↳54 QDP
↳55 MRRProof (⇔)
↳56 QDP
↳57 PisEmptyProof (⇔)
↳58 YES
↳59 PrologToPiTRSProof (⇐)
↳60 PiTRS
↳61 DependencyPairsProof (⇔)
↳62 PiDP
↳63 DependencyGraphProof (⇔)
↳64 AND
↳65 PiDP
↳66 UsableRulesProof (⇔)
↳67 PiDP
↳68 PiDPToQDPProof (⇐)
↳69 QDP
↳70 NonTerminationProof (⇔)
↳71 NO
↳72 PiDP
↳73 UsableRulesProof (⇔)
↳74 PiDP
↳75 PiDPToQDPProof (⇐)
↳76 QDP
↳77 Narrowing (⇐)
↳78 QDP
↳79 UsableRulesProof (⇔)
↳80 QDP
↳81 QReductionProof (⇔)
↳82 QDP
↳83 NonTerminationProof (⇔)
↳84 NO
↳85 PiDP
↳86 UsableRulesProof (⇔)
↳87 PiDP
↳88 PiDPToQDPProof (⇐)
↳89 QDP
↳90 QDPSizeChangeProof (⇔)
↳91 YES
↳92 PiDP
↳93 UsableRulesProof (⇔)
↳94 PiDP
↳95 PiDPToQDPProof (⇐)
↳96 QDP
↳97 QDPSizeChangeProof (⇔)
↳98 YES
↳99 PiDP
↳100 UsableRulesProof (⇔)
↳101 PiDP
↳102 PiDPToQDPProof (⇐)
↳103 QDP
↳104 QDPSizeChangeProof (⇔)
↳105 YES
↳106 PiDP
↳107 UsableRulesProof (⇔)
↳108 PiDP
↳109 PiDPToQDPProof (⇐)
↳110 QDP
↳111 QDPOrderProof (⇔)
↳112 QDP
↳113 DependencyGraphProof (⇔)
↳114 TRUE
ss1_in_ga([], []) → ss1_out_ga([], [])
ss1_in_ga(T14, .(T17, T18)) → U12_ga(T14, T17, T18, app18_in_aaag(X23, T17, X24, T14))
app18_in_aaag([], T31, X46, .(T31, X46)) → app18_out_aaag([], T31, X46, .(T31, X46))
app18_in_aaag(.(X66, X67), T38, X68, .(X66, T37)) → U1_aaag(X66, X67, T38, X68, T37, app18_in_aaag(X67, T38, X68, T37))
U1_aaag(X66, X67, T38, X68, T37, app18_out_aaag(X67, T38, X68, T37)) → app18_out_aaag(.(X66, X67), T38, X68, .(X66, T37))
U12_ga(T14, T17, T18, app18_out_aaag(X23, T17, X24, T14)) → ss1_out_ga(T14, .(T17, T18))
ss1_in_ga(T14, .(T24, T23)) → U13_ga(T14, T24, T23, app18_in_aaag(T21, T24, T22, T14))
U13_ga(T14, T24, T23, app18_out_aaag(T21, T24, T22, T14)) → U14_ga(T14, T24, T23, app28_in_gga(T21, T22, X25))
app28_in_gga([], T50, T50) → app28_out_gga([], T50, T50)
app28_in_gga(.(T57, T58), T59, .(T57, X101)) → U2_gga(T57, T58, T59, X101, app28_in_gga(T58, T59, X101))
U2_gga(T57, T58, T59, X101, app28_out_gga(T58, T59, X101)) → app28_out_gga(.(T57, T58), T59, .(T57, X101))
U14_ga(T14, T24, T23, app28_out_gga(T21, T22, X25)) → ss1_out_ga(T14, .(T24, T23))
U13_ga(T14, T24, T23, app18_out_aaag(T21, T24, T22, T14)) → U15_ga(T14, T24, T23, app28_in_gga(T21, T22, T43))
U15_ga(T14, T24, T23, app28_out_gga(T21, T22, T43)) → U16_ga(T14, T24, T23, perm38_in_ga(T43, T23))
perm38_in_ga([], []) → perm38_out_ga([], [])
perm38_in_ga(T69, .(T72, T73)) → U3_ga(T69, T72, T73, app18_in_aaag(X120, T72, X121, T69))
U3_ga(T69, T72, T73, app18_out_aaag(X120, T72, X121, T69)) → perm38_out_ga(T69, .(T72, T73))
perm38_in_ga(T69, .(T72, T78)) → U4_ga(T69, T72, T78, app18_in_aaag(T76, T72, T77, T69))
U4_ga(T69, T72, T78, app18_out_aaag(T76, T72, T77, T69)) → U5_ga(T69, T72, T78, app28_in_gga(T76, T77, X122))
U5_ga(T69, T72, T78, app28_out_gga(T76, T77, X122)) → perm38_out_ga(T69, .(T72, T78))
U4_ga(T69, T72, T78, app18_out_aaag(T76, T72, T77, T69)) → U6_ga(T69, T72, T78, app28_in_gga(T76, T77, T83))
U6_ga(T69, T72, T78, app28_out_gga(T76, T77, T83)) → U7_ga(T69, T72, T78, perm38_in_ga(T83, T78))
U7_ga(T69, T72, T78, perm38_out_ga(T83, T78)) → perm38_out_ga(T69, .(T72, T78))
U16_ga(T14, T24, T23, perm38_out_ga(T43, T23)) → ss1_out_ga(T14, .(T24, T23))
ss1_in_ga(T14, .(T24, T62)) → U17_ga(T14, T24, T62, app18_in_aaag(T21, T24, T22, T14))
U17_ga(T14, T24, T62, app18_out_aaag(T21, T24, T22, T14)) → U18_ga(T14, T24, T62, app28_in_gga(T21, T22, T43))
U18_ga(T14, T24, T62, app28_out_gga(T21, T22, T43)) → U19_ga(T14, T24, T62, perm38_in_ga(T43, T62))
U19_ga(T14, T24, T62, perm38_out_ga(T43, T62)) → U20_ga(T14, T24, T62, ordered39_in_ga(T24, T62))
ordered39_in_ga(T92, []) → ordered39_out_ga(T92, [])
ordered39_in_ga(T99, .(T100, T101)) → U8_ga(T99, T100, T101, less61_in_ga(T99, T100))
less61_in_ga(0, T110) → less61_out_ga(0, T110)
less61_in_ga(s(T115), T116) → U11_ga(T115, T116, less69_in_ga(T115, T116))
less69_in_ga(0, s(T123)) → less69_out_ga(0, s(T123))
less69_in_ga(s(T128), s(T129)) → U10_ga(T128, T129, less69_in_ga(T128, T129))
U10_ga(T128, T129, less69_out_ga(T128, T129)) → less69_out_ga(s(T128), s(T129))
U11_ga(T115, T116, less69_out_ga(T115, T116)) → less61_out_ga(s(T115), T116)
U8_ga(T99, T100, T101, less61_out_ga(T99, T100)) → ordered39_out_ga(T99, .(T100, T101))
U8_ga(T99, T100, T101, less61_out_ga(T99, T100)) → U9_ga(T99, T100, T101, ordered39_in_aa(T100, T101))
ordered39_in_aa(T92, []) → ordered39_out_aa(T92, [])
ordered39_in_aa(T99, .(T100, T101)) → U8_aa(T99, T100, T101, less61_in_aa(T99, T100))
less61_in_aa(0, T110) → less61_out_aa(0, T110)
less61_in_aa(s(T115), T116) → U11_aa(T115, T116, less69_in_aa(T115, T116))
less69_in_aa(0, s(T123)) → less69_out_aa(0, s(T123))
less69_in_aa(s(T128), s(T129)) → U10_aa(T128, T129, less69_in_aa(T128, T129))
U10_aa(T128, T129, less69_out_aa(T128, T129)) → less69_out_aa(s(T128), s(T129))
U11_aa(T115, T116, less69_out_aa(T115, T116)) → less61_out_aa(s(T115), T116)
U8_aa(T99, T100, T101, less61_out_aa(T99, T100)) → ordered39_out_aa(T99, .(T100, T101))
U8_aa(T99, T100, T101, less61_out_aa(T99, T100)) → U9_aa(T99, T100, T101, ordered39_in_aa(T100, T101))
U9_aa(T99, T100, T101, ordered39_out_aa(T100, T101)) → ordered39_out_aa(T99, .(T100, T101))
U9_ga(T99, T100, T101, ordered39_out_aa(T100, T101)) → ordered39_out_ga(T99, .(T100, T101))
U20_ga(T14, T24, T62, ordered39_out_ga(T24, T62)) → ss1_out_ga(T14, .(T24, T62))
Infinitary Constructor Rewriting Termination of PiTRS implies Termination of Prolog
ss1_in_ga([], []) → ss1_out_ga([], [])
ss1_in_ga(T14, .(T17, T18)) → U12_ga(T14, T17, T18, app18_in_aaag(X23, T17, X24, T14))
app18_in_aaag([], T31, X46, .(T31, X46)) → app18_out_aaag([], T31, X46, .(T31, X46))
app18_in_aaag(.(X66, X67), T38, X68, .(X66, T37)) → U1_aaag(X66, X67, T38, X68, T37, app18_in_aaag(X67, T38, X68, T37))
U1_aaag(X66, X67, T38, X68, T37, app18_out_aaag(X67, T38, X68, T37)) → app18_out_aaag(.(X66, X67), T38, X68, .(X66, T37))
U12_ga(T14, T17, T18, app18_out_aaag(X23, T17, X24, T14)) → ss1_out_ga(T14, .(T17, T18))
ss1_in_ga(T14, .(T24, T23)) → U13_ga(T14, T24, T23, app18_in_aaag(T21, T24, T22, T14))
U13_ga(T14, T24, T23, app18_out_aaag(T21, T24, T22, T14)) → U14_ga(T14, T24, T23, app28_in_gga(T21, T22, X25))
app28_in_gga([], T50, T50) → app28_out_gga([], T50, T50)
app28_in_gga(.(T57, T58), T59, .(T57, X101)) → U2_gga(T57, T58, T59, X101, app28_in_gga(T58, T59, X101))
U2_gga(T57, T58, T59, X101, app28_out_gga(T58, T59, X101)) → app28_out_gga(.(T57, T58), T59, .(T57, X101))
U14_ga(T14, T24, T23, app28_out_gga(T21, T22, X25)) → ss1_out_ga(T14, .(T24, T23))
U13_ga(T14, T24, T23, app18_out_aaag(T21, T24, T22, T14)) → U15_ga(T14, T24, T23, app28_in_gga(T21, T22, T43))
U15_ga(T14, T24, T23, app28_out_gga(T21, T22, T43)) → U16_ga(T14, T24, T23, perm38_in_ga(T43, T23))
perm38_in_ga([], []) → perm38_out_ga([], [])
perm38_in_ga(T69, .(T72, T73)) → U3_ga(T69, T72, T73, app18_in_aaag(X120, T72, X121, T69))
U3_ga(T69, T72, T73, app18_out_aaag(X120, T72, X121, T69)) → perm38_out_ga(T69, .(T72, T73))
perm38_in_ga(T69, .(T72, T78)) → U4_ga(T69, T72, T78, app18_in_aaag(T76, T72, T77, T69))
U4_ga(T69, T72, T78, app18_out_aaag(T76, T72, T77, T69)) → U5_ga(T69, T72, T78, app28_in_gga(T76, T77, X122))
U5_ga(T69, T72, T78, app28_out_gga(T76, T77, X122)) → perm38_out_ga(T69, .(T72, T78))
U4_ga(T69, T72, T78, app18_out_aaag(T76, T72, T77, T69)) → U6_ga(T69, T72, T78, app28_in_gga(T76, T77, T83))
U6_ga(T69, T72, T78, app28_out_gga(T76, T77, T83)) → U7_ga(T69, T72, T78, perm38_in_ga(T83, T78))
U7_ga(T69, T72, T78, perm38_out_ga(T83, T78)) → perm38_out_ga(T69, .(T72, T78))
U16_ga(T14, T24, T23, perm38_out_ga(T43, T23)) → ss1_out_ga(T14, .(T24, T23))
ss1_in_ga(T14, .(T24, T62)) → U17_ga(T14, T24, T62, app18_in_aaag(T21, T24, T22, T14))
U17_ga(T14, T24, T62, app18_out_aaag(T21, T24, T22, T14)) → U18_ga(T14, T24, T62, app28_in_gga(T21, T22, T43))
U18_ga(T14, T24, T62, app28_out_gga(T21, T22, T43)) → U19_ga(T14, T24, T62, perm38_in_ga(T43, T62))
U19_ga(T14, T24, T62, perm38_out_ga(T43, T62)) → U20_ga(T14, T24, T62, ordered39_in_ga(T24, T62))
ordered39_in_ga(T92, []) → ordered39_out_ga(T92, [])
ordered39_in_ga(T99, .(T100, T101)) → U8_ga(T99, T100, T101, less61_in_ga(T99, T100))
less61_in_ga(0, T110) → less61_out_ga(0, T110)
less61_in_ga(s(T115), T116) → U11_ga(T115, T116, less69_in_ga(T115, T116))
less69_in_ga(0, s(T123)) → less69_out_ga(0, s(T123))
less69_in_ga(s(T128), s(T129)) → U10_ga(T128, T129, less69_in_ga(T128, T129))
U10_ga(T128, T129, less69_out_ga(T128, T129)) → less69_out_ga(s(T128), s(T129))
U11_ga(T115, T116, less69_out_ga(T115, T116)) → less61_out_ga(s(T115), T116)
U8_ga(T99, T100, T101, less61_out_ga(T99, T100)) → ordered39_out_ga(T99, .(T100, T101))
U8_ga(T99, T100, T101, less61_out_ga(T99, T100)) → U9_ga(T99, T100, T101, ordered39_in_aa(T100, T101))
ordered39_in_aa(T92, []) → ordered39_out_aa(T92, [])
ordered39_in_aa(T99, .(T100, T101)) → U8_aa(T99, T100, T101, less61_in_aa(T99, T100))
less61_in_aa(0, T110) → less61_out_aa(0, T110)
less61_in_aa(s(T115), T116) → U11_aa(T115, T116, less69_in_aa(T115, T116))
less69_in_aa(0, s(T123)) → less69_out_aa(0, s(T123))
less69_in_aa(s(T128), s(T129)) → U10_aa(T128, T129, less69_in_aa(T128, T129))
U10_aa(T128, T129, less69_out_aa(T128, T129)) → less69_out_aa(s(T128), s(T129))
U11_aa(T115, T116, less69_out_aa(T115, T116)) → less61_out_aa(s(T115), T116)
U8_aa(T99, T100, T101, less61_out_aa(T99, T100)) → ordered39_out_aa(T99, .(T100, T101))
U8_aa(T99, T100, T101, less61_out_aa(T99, T100)) → U9_aa(T99, T100, T101, ordered39_in_aa(T100, T101))
U9_aa(T99, T100, T101, ordered39_out_aa(T100, T101)) → ordered39_out_aa(T99, .(T100, T101))
U9_ga(T99, T100, T101, ordered39_out_aa(T100, T101)) → ordered39_out_ga(T99, .(T100, T101))
U20_ga(T14, T24, T62, ordered39_out_ga(T24, T62)) → ss1_out_ga(T14, .(T24, T62))
SS1_IN_GA(T14, .(T17, T18)) → U12_GA(T14, T17, T18, app18_in_aaag(X23, T17, X24, T14))
SS1_IN_GA(T14, .(T17, T18)) → APP18_IN_AAAG(X23, T17, X24, T14)
APP18_IN_AAAG(.(X66, X67), T38, X68, .(X66, T37)) → U1_AAAG(X66, X67, T38, X68, T37, app18_in_aaag(X67, T38, X68, T37))
APP18_IN_AAAG(.(X66, X67), T38, X68, .(X66, T37)) → APP18_IN_AAAG(X67, T38, X68, T37)
SS1_IN_GA(T14, .(T24, T23)) → U13_GA(T14, T24, T23, app18_in_aaag(T21, T24, T22, T14))
U13_GA(T14, T24, T23, app18_out_aaag(T21, T24, T22, T14)) → U14_GA(T14, T24, T23, app28_in_gga(T21, T22, X25))
U13_GA(T14, T24, T23, app18_out_aaag(T21, T24, T22, T14)) → APP28_IN_GGA(T21, T22, X25)
APP28_IN_GGA(.(T57, T58), T59, .(T57, X101)) → U2_GGA(T57, T58, T59, X101, app28_in_gga(T58, T59, X101))
APP28_IN_GGA(.(T57, T58), T59, .(T57, X101)) → APP28_IN_GGA(T58, T59, X101)
U13_GA(T14, T24, T23, app18_out_aaag(T21, T24, T22, T14)) → U15_GA(T14, T24, T23, app28_in_gga(T21, T22, T43))
U15_GA(T14, T24, T23, app28_out_gga(T21, T22, T43)) → U16_GA(T14, T24, T23, perm38_in_ga(T43, T23))
U15_GA(T14, T24, T23, app28_out_gga(T21, T22, T43)) → PERM38_IN_GA(T43, T23)
PERM38_IN_GA(T69, .(T72, T73)) → U3_GA(T69, T72, T73, app18_in_aaag(X120, T72, X121, T69))
PERM38_IN_GA(T69, .(T72, T73)) → APP18_IN_AAAG(X120, T72, X121, T69)
PERM38_IN_GA(T69, .(T72, T78)) → U4_GA(T69, T72, T78, app18_in_aaag(T76, T72, T77, T69))
U4_GA(T69, T72, T78, app18_out_aaag(T76, T72, T77, T69)) → U5_GA(T69, T72, T78, app28_in_gga(T76, T77, X122))
U4_GA(T69, T72, T78, app18_out_aaag(T76, T72, T77, T69)) → APP28_IN_GGA(T76, T77, X122)
U4_GA(T69, T72, T78, app18_out_aaag(T76, T72, T77, T69)) → U6_GA(T69, T72, T78, app28_in_gga(T76, T77, T83))
U6_GA(T69, T72, T78, app28_out_gga(T76, T77, T83)) → U7_GA(T69, T72, T78, perm38_in_ga(T83, T78))
U6_GA(T69, T72, T78, app28_out_gga(T76, T77, T83)) → PERM38_IN_GA(T83, T78)
SS1_IN_GA(T14, .(T24, T62)) → U17_GA(T14, T24, T62, app18_in_aaag(T21, T24, T22, T14))
U17_GA(T14, T24, T62, app18_out_aaag(T21, T24, T22, T14)) → U18_GA(T14, T24, T62, app28_in_gga(T21, T22, T43))
U17_GA(T14, T24, T62, app18_out_aaag(T21, T24, T22, T14)) → APP28_IN_GGA(T21, T22, T43)
U18_GA(T14, T24, T62, app28_out_gga(T21, T22, T43)) → U19_GA(T14, T24, T62, perm38_in_ga(T43, T62))
U18_GA(T14, T24, T62, app28_out_gga(T21, T22, T43)) → PERM38_IN_GA(T43, T62)
U19_GA(T14, T24, T62, perm38_out_ga(T43, T62)) → U20_GA(T14, T24, T62, ordered39_in_ga(T24, T62))
U19_GA(T14, T24, T62, perm38_out_ga(T43, T62)) → ORDERED39_IN_GA(T24, T62)
ORDERED39_IN_GA(T99, .(T100, T101)) → U8_GA(T99, T100, T101, less61_in_ga(T99, T100))
ORDERED39_IN_GA(T99, .(T100, T101)) → LESS61_IN_GA(T99, T100)
LESS61_IN_GA(s(T115), T116) → U11_GA(T115, T116, less69_in_ga(T115, T116))
LESS61_IN_GA(s(T115), T116) → LESS69_IN_GA(T115, T116)
LESS69_IN_GA(s(T128), s(T129)) → U10_GA(T128, T129, less69_in_ga(T128, T129))
LESS69_IN_GA(s(T128), s(T129)) → LESS69_IN_GA(T128, T129)
U8_GA(T99, T100, T101, less61_out_ga(T99, T100)) → U9_GA(T99, T100, T101, ordered39_in_aa(T100, T101))
U8_GA(T99, T100, T101, less61_out_ga(T99, T100)) → ORDERED39_IN_AA(T100, T101)
ORDERED39_IN_AA(T99, .(T100, T101)) → U8_AA(T99, T100, T101, less61_in_aa(T99, T100))
ORDERED39_IN_AA(T99, .(T100, T101)) → LESS61_IN_AA(T99, T100)
LESS61_IN_AA(s(T115), T116) → U11_AA(T115, T116, less69_in_aa(T115, T116))
LESS61_IN_AA(s(T115), T116) → LESS69_IN_AA(T115, T116)
LESS69_IN_AA(s(T128), s(T129)) → U10_AA(T128, T129, less69_in_aa(T128, T129))
LESS69_IN_AA(s(T128), s(T129)) → LESS69_IN_AA(T128, T129)
U8_AA(T99, T100, T101, less61_out_aa(T99, T100)) → U9_AA(T99, T100, T101, ordered39_in_aa(T100, T101))
U8_AA(T99, T100, T101, less61_out_aa(T99, T100)) → ORDERED39_IN_AA(T100, T101)
ss1_in_ga([], []) → ss1_out_ga([], [])
ss1_in_ga(T14, .(T17, T18)) → U12_ga(T14, T17, T18, app18_in_aaag(X23, T17, X24, T14))
app18_in_aaag([], T31, X46, .(T31, X46)) → app18_out_aaag([], T31, X46, .(T31, X46))
app18_in_aaag(.(X66, X67), T38, X68, .(X66, T37)) → U1_aaag(X66, X67, T38, X68, T37, app18_in_aaag(X67, T38, X68, T37))
U1_aaag(X66, X67, T38, X68, T37, app18_out_aaag(X67, T38, X68, T37)) → app18_out_aaag(.(X66, X67), T38, X68, .(X66, T37))
U12_ga(T14, T17, T18, app18_out_aaag(X23, T17, X24, T14)) → ss1_out_ga(T14, .(T17, T18))
ss1_in_ga(T14, .(T24, T23)) → U13_ga(T14, T24, T23, app18_in_aaag(T21, T24, T22, T14))
U13_ga(T14, T24, T23, app18_out_aaag(T21, T24, T22, T14)) → U14_ga(T14, T24, T23, app28_in_gga(T21, T22, X25))
app28_in_gga([], T50, T50) → app28_out_gga([], T50, T50)
app28_in_gga(.(T57, T58), T59, .(T57, X101)) → U2_gga(T57, T58, T59, X101, app28_in_gga(T58, T59, X101))
U2_gga(T57, T58, T59, X101, app28_out_gga(T58, T59, X101)) → app28_out_gga(.(T57, T58), T59, .(T57, X101))
U14_ga(T14, T24, T23, app28_out_gga(T21, T22, X25)) → ss1_out_ga(T14, .(T24, T23))
U13_ga(T14, T24, T23, app18_out_aaag(T21, T24, T22, T14)) → U15_ga(T14, T24, T23, app28_in_gga(T21, T22, T43))
U15_ga(T14, T24, T23, app28_out_gga(T21, T22, T43)) → U16_ga(T14, T24, T23, perm38_in_ga(T43, T23))
perm38_in_ga([], []) → perm38_out_ga([], [])
perm38_in_ga(T69, .(T72, T73)) → U3_ga(T69, T72, T73, app18_in_aaag(X120, T72, X121, T69))
U3_ga(T69, T72, T73, app18_out_aaag(X120, T72, X121, T69)) → perm38_out_ga(T69, .(T72, T73))
perm38_in_ga(T69, .(T72, T78)) → U4_ga(T69, T72, T78, app18_in_aaag(T76, T72, T77, T69))
U4_ga(T69, T72, T78, app18_out_aaag(T76, T72, T77, T69)) → U5_ga(T69, T72, T78, app28_in_gga(T76, T77, X122))
U5_ga(T69, T72, T78, app28_out_gga(T76, T77, X122)) → perm38_out_ga(T69, .(T72, T78))
U4_ga(T69, T72, T78, app18_out_aaag(T76, T72, T77, T69)) → U6_ga(T69, T72, T78, app28_in_gga(T76, T77, T83))
U6_ga(T69, T72, T78, app28_out_gga(T76, T77, T83)) → U7_ga(T69, T72, T78, perm38_in_ga(T83, T78))
U7_ga(T69, T72, T78, perm38_out_ga(T83, T78)) → perm38_out_ga(T69, .(T72, T78))
U16_ga(T14, T24, T23, perm38_out_ga(T43, T23)) → ss1_out_ga(T14, .(T24, T23))
ss1_in_ga(T14, .(T24, T62)) → U17_ga(T14, T24, T62, app18_in_aaag(T21, T24, T22, T14))
U17_ga(T14, T24, T62, app18_out_aaag(T21, T24, T22, T14)) → U18_ga(T14, T24, T62, app28_in_gga(T21, T22, T43))
U18_ga(T14, T24, T62, app28_out_gga(T21, T22, T43)) → U19_ga(T14, T24, T62, perm38_in_ga(T43, T62))
U19_ga(T14, T24, T62, perm38_out_ga(T43, T62)) → U20_ga(T14, T24, T62, ordered39_in_ga(T24, T62))
ordered39_in_ga(T92, []) → ordered39_out_ga(T92, [])
ordered39_in_ga(T99, .(T100, T101)) → U8_ga(T99, T100, T101, less61_in_ga(T99, T100))
less61_in_ga(0, T110) → less61_out_ga(0, T110)
less61_in_ga(s(T115), T116) → U11_ga(T115, T116, less69_in_ga(T115, T116))
less69_in_ga(0, s(T123)) → less69_out_ga(0, s(T123))
less69_in_ga(s(T128), s(T129)) → U10_ga(T128, T129, less69_in_ga(T128, T129))
U10_ga(T128, T129, less69_out_ga(T128, T129)) → less69_out_ga(s(T128), s(T129))
U11_ga(T115, T116, less69_out_ga(T115, T116)) → less61_out_ga(s(T115), T116)
U8_ga(T99, T100, T101, less61_out_ga(T99, T100)) → ordered39_out_ga(T99, .(T100, T101))
U8_ga(T99, T100, T101, less61_out_ga(T99, T100)) → U9_ga(T99, T100, T101, ordered39_in_aa(T100, T101))
ordered39_in_aa(T92, []) → ordered39_out_aa(T92, [])
ordered39_in_aa(T99, .(T100, T101)) → U8_aa(T99, T100, T101, less61_in_aa(T99, T100))
less61_in_aa(0, T110) → less61_out_aa(0, T110)
less61_in_aa(s(T115), T116) → U11_aa(T115, T116, less69_in_aa(T115, T116))
less69_in_aa(0, s(T123)) → less69_out_aa(0, s(T123))
less69_in_aa(s(T128), s(T129)) → U10_aa(T128, T129, less69_in_aa(T128, T129))
U10_aa(T128, T129, less69_out_aa(T128, T129)) → less69_out_aa(s(T128), s(T129))
U11_aa(T115, T116, less69_out_aa(T115, T116)) → less61_out_aa(s(T115), T116)
U8_aa(T99, T100, T101, less61_out_aa(T99, T100)) → ordered39_out_aa(T99, .(T100, T101))
U8_aa(T99, T100, T101, less61_out_aa(T99, T100)) → U9_aa(T99, T100, T101, ordered39_in_aa(T100, T101))
U9_aa(T99, T100, T101, ordered39_out_aa(T100, T101)) → ordered39_out_aa(T99, .(T100, T101))
U9_ga(T99, T100, T101, ordered39_out_aa(T100, T101)) → ordered39_out_ga(T99, .(T100, T101))
U20_ga(T14, T24, T62, ordered39_out_ga(T24, T62)) → ss1_out_ga(T14, .(T24, T62))
SS1_IN_GA(T14, .(T17, T18)) → U12_GA(T14, T17, T18, app18_in_aaag(X23, T17, X24, T14))
SS1_IN_GA(T14, .(T17, T18)) → APP18_IN_AAAG(X23, T17, X24, T14)
APP18_IN_AAAG(.(X66, X67), T38, X68, .(X66, T37)) → U1_AAAG(X66, X67, T38, X68, T37, app18_in_aaag(X67, T38, X68, T37))
APP18_IN_AAAG(.(X66, X67), T38, X68, .(X66, T37)) → APP18_IN_AAAG(X67, T38, X68, T37)
SS1_IN_GA(T14, .(T24, T23)) → U13_GA(T14, T24, T23, app18_in_aaag(T21, T24, T22, T14))
U13_GA(T14, T24, T23, app18_out_aaag(T21, T24, T22, T14)) → U14_GA(T14, T24, T23, app28_in_gga(T21, T22, X25))
U13_GA(T14, T24, T23, app18_out_aaag(T21, T24, T22, T14)) → APP28_IN_GGA(T21, T22, X25)
APP28_IN_GGA(.(T57, T58), T59, .(T57, X101)) → U2_GGA(T57, T58, T59, X101, app28_in_gga(T58, T59, X101))
APP28_IN_GGA(.(T57, T58), T59, .(T57, X101)) → APP28_IN_GGA(T58, T59, X101)
U13_GA(T14, T24, T23, app18_out_aaag(T21, T24, T22, T14)) → U15_GA(T14, T24, T23, app28_in_gga(T21, T22, T43))
U15_GA(T14, T24, T23, app28_out_gga(T21, T22, T43)) → U16_GA(T14, T24, T23, perm38_in_ga(T43, T23))
U15_GA(T14, T24, T23, app28_out_gga(T21, T22, T43)) → PERM38_IN_GA(T43, T23)
PERM38_IN_GA(T69, .(T72, T73)) → U3_GA(T69, T72, T73, app18_in_aaag(X120, T72, X121, T69))
PERM38_IN_GA(T69, .(T72, T73)) → APP18_IN_AAAG(X120, T72, X121, T69)
PERM38_IN_GA(T69, .(T72, T78)) → U4_GA(T69, T72, T78, app18_in_aaag(T76, T72, T77, T69))
U4_GA(T69, T72, T78, app18_out_aaag(T76, T72, T77, T69)) → U5_GA(T69, T72, T78, app28_in_gga(T76, T77, X122))
U4_GA(T69, T72, T78, app18_out_aaag(T76, T72, T77, T69)) → APP28_IN_GGA(T76, T77, X122)
U4_GA(T69, T72, T78, app18_out_aaag(T76, T72, T77, T69)) → U6_GA(T69, T72, T78, app28_in_gga(T76, T77, T83))
U6_GA(T69, T72, T78, app28_out_gga(T76, T77, T83)) → U7_GA(T69, T72, T78, perm38_in_ga(T83, T78))
U6_GA(T69, T72, T78, app28_out_gga(T76, T77, T83)) → PERM38_IN_GA(T83, T78)
SS1_IN_GA(T14, .(T24, T62)) → U17_GA(T14, T24, T62, app18_in_aaag(T21, T24, T22, T14))
U17_GA(T14, T24, T62, app18_out_aaag(T21, T24, T22, T14)) → U18_GA(T14, T24, T62, app28_in_gga(T21, T22, T43))
U17_GA(T14, T24, T62, app18_out_aaag(T21, T24, T22, T14)) → APP28_IN_GGA(T21, T22, T43)
U18_GA(T14, T24, T62, app28_out_gga(T21, T22, T43)) → U19_GA(T14, T24, T62, perm38_in_ga(T43, T62))
U18_GA(T14, T24, T62, app28_out_gga(T21, T22, T43)) → PERM38_IN_GA(T43, T62)
U19_GA(T14, T24, T62, perm38_out_ga(T43, T62)) → U20_GA(T14, T24, T62, ordered39_in_ga(T24, T62))
U19_GA(T14, T24, T62, perm38_out_ga(T43, T62)) → ORDERED39_IN_GA(T24, T62)
ORDERED39_IN_GA(T99, .(T100, T101)) → U8_GA(T99, T100, T101, less61_in_ga(T99, T100))
ORDERED39_IN_GA(T99, .(T100, T101)) → LESS61_IN_GA(T99, T100)
LESS61_IN_GA(s(T115), T116) → U11_GA(T115, T116, less69_in_ga(T115, T116))
LESS61_IN_GA(s(T115), T116) → LESS69_IN_GA(T115, T116)
LESS69_IN_GA(s(T128), s(T129)) → U10_GA(T128, T129, less69_in_ga(T128, T129))
LESS69_IN_GA(s(T128), s(T129)) → LESS69_IN_GA(T128, T129)
U8_GA(T99, T100, T101, less61_out_ga(T99, T100)) → U9_GA(T99, T100, T101, ordered39_in_aa(T100, T101))
U8_GA(T99, T100, T101, less61_out_ga(T99, T100)) → ORDERED39_IN_AA(T100, T101)
ORDERED39_IN_AA(T99, .(T100, T101)) → U8_AA(T99, T100, T101, less61_in_aa(T99, T100))
ORDERED39_IN_AA(T99, .(T100, T101)) → LESS61_IN_AA(T99, T100)
LESS61_IN_AA(s(T115), T116) → U11_AA(T115, T116, less69_in_aa(T115, T116))
LESS61_IN_AA(s(T115), T116) → LESS69_IN_AA(T115, T116)
LESS69_IN_AA(s(T128), s(T129)) → U10_AA(T128, T129, less69_in_aa(T128, T129))
LESS69_IN_AA(s(T128), s(T129)) → LESS69_IN_AA(T128, T129)
U8_AA(T99, T100, T101, less61_out_aa(T99, T100)) → U9_AA(T99, T100, T101, ordered39_in_aa(T100, T101))
U8_AA(T99, T100, T101, less61_out_aa(T99, T100)) → ORDERED39_IN_AA(T100, T101)
ss1_in_ga([], []) → ss1_out_ga([], [])
ss1_in_ga(T14, .(T17, T18)) → U12_ga(T14, T17, T18, app18_in_aaag(X23, T17, X24, T14))
app18_in_aaag([], T31, X46, .(T31, X46)) → app18_out_aaag([], T31, X46, .(T31, X46))
app18_in_aaag(.(X66, X67), T38, X68, .(X66, T37)) → U1_aaag(X66, X67, T38, X68, T37, app18_in_aaag(X67, T38, X68, T37))
U1_aaag(X66, X67, T38, X68, T37, app18_out_aaag(X67, T38, X68, T37)) → app18_out_aaag(.(X66, X67), T38, X68, .(X66, T37))
U12_ga(T14, T17, T18, app18_out_aaag(X23, T17, X24, T14)) → ss1_out_ga(T14, .(T17, T18))
ss1_in_ga(T14, .(T24, T23)) → U13_ga(T14, T24, T23, app18_in_aaag(T21, T24, T22, T14))
U13_ga(T14, T24, T23, app18_out_aaag(T21, T24, T22, T14)) → U14_ga(T14, T24, T23, app28_in_gga(T21, T22, X25))
app28_in_gga([], T50, T50) → app28_out_gga([], T50, T50)
app28_in_gga(.(T57, T58), T59, .(T57, X101)) → U2_gga(T57, T58, T59, X101, app28_in_gga(T58, T59, X101))
U2_gga(T57, T58, T59, X101, app28_out_gga(T58, T59, X101)) → app28_out_gga(.(T57, T58), T59, .(T57, X101))
U14_ga(T14, T24, T23, app28_out_gga(T21, T22, X25)) → ss1_out_ga(T14, .(T24, T23))
U13_ga(T14, T24, T23, app18_out_aaag(T21, T24, T22, T14)) → U15_ga(T14, T24, T23, app28_in_gga(T21, T22, T43))
U15_ga(T14, T24, T23, app28_out_gga(T21, T22, T43)) → U16_ga(T14, T24, T23, perm38_in_ga(T43, T23))
perm38_in_ga([], []) → perm38_out_ga([], [])
perm38_in_ga(T69, .(T72, T73)) → U3_ga(T69, T72, T73, app18_in_aaag(X120, T72, X121, T69))
U3_ga(T69, T72, T73, app18_out_aaag(X120, T72, X121, T69)) → perm38_out_ga(T69, .(T72, T73))
perm38_in_ga(T69, .(T72, T78)) → U4_ga(T69, T72, T78, app18_in_aaag(T76, T72, T77, T69))
U4_ga(T69, T72, T78, app18_out_aaag(T76, T72, T77, T69)) → U5_ga(T69, T72, T78, app28_in_gga(T76, T77, X122))
U5_ga(T69, T72, T78, app28_out_gga(T76, T77, X122)) → perm38_out_ga(T69, .(T72, T78))
U4_ga(T69, T72, T78, app18_out_aaag(T76, T72, T77, T69)) → U6_ga(T69, T72, T78, app28_in_gga(T76, T77, T83))
U6_ga(T69, T72, T78, app28_out_gga(T76, T77, T83)) → U7_ga(T69, T72, T78, perm38_in_ga(T83, T78))
U7_ga(T69, T72, T78, perm38_out_ga(T83, T78)) → perm38_out_ga(T69, .(T72, T78))
U16_ga(T14, T24, T23, perm38_out_ga(T43, T23)) → ss1_out_ga(T14, .(T24, T23))
ss1_in_ga(T14, .(T24, T62)) → U17_ga(T14, T24, T62, app18_in_aaag(T21, T24, T22, T14))
U17_ga(T14, T24, T62, app18_out_aaag(T21, T24, T22, T14)) → U18_ga(T14, T24, T62, app28_in_gga(T21, T22, T43))
U18_ga(T14, T24, T62, app28_out_gga(T21, T22, T43)) → U19_ga(T14, T24, T62, perm38_in_ga(T43, T62))
U19_ga(T14, T24, T62, perm38_out_ga(T43, T62)) → U20_ga(T14, T24, T62, ordered39_in_ga(T24, T62))
ordered39_in_ga(T92, []) → ordered39_out_ga(T92, [])
ordered39_in_ga(T99, .(T100, T101)) → U8_ga(T99, T100, T101, less61_in_ga(T99, T100))
less61_in_ga(0, T110) → less61_out_ga(0, T110)
less61_in_ga(s(T115), T116) → U11_ga(T115, T116, less69_in_ga(T115, T116))
less69_in_ga(0, s(T123)) → less69_out_ga(0, s(T123))
less69_in_ga(s(T128), s(T129)) → U10_ga(T128, T129, less69_in_ga(T128, T129))
U10_ga(T128, T129, less69_out_ga(T128, T129)) → less69_out_ga(s(T128), s(T129))
U11_ga(T115, T116, less69_out_ga(T115, T116)) → less61_out_ga(s(T115), T116)
U8_ga(T99, T100, T101, less61_out_ga(T99, T100)) → ordered39_out_ga(T99, .(T100, T101))
U8_ga(T99, T100, T101, less61_out_ga(T99, T100)) → U9_ga(T99, T100, T101, ordered39_in_aa(T100, T101))
ordered39_in_aa(T92, []) → ordered39_out_aa(T92, [])
ordered39_in_aa(T99, .(T100, T101)) → U8_aa(T99, T100, T101, less61_in_aa(T99, T100))
less61_in_aa(0, T110) → less61_out_aa(0, T110)
less61_in_aa(s(T115), T116) → U11_aa(T115, T116, less69_in_aa(T115, T116))
less69_in_aa(0, s(T123)) → less69_out_aa(0, s(T123))
less69_in_aa(s(T128), s(T129)) → U10_aa(T128, T129, less69_in_aa(T128, T129))
U10_aa(T128, T129, less69_out_aa(T128, T129)) → less69_out_aa(s(T128), s(T129))
U11_aa(T115, T116, less69_out_aa(T115, T116)) → less61_out_aa(s(T115), T116)
U8_aa(T99, T100, T101, less61_out_aa(T99, T100)) → ordered39_out_aa(T99, .(T100, T101))
U8_aa(T99, T100, T101, less61_out_aa(T99, T100)) → U9_aa(T99, T100, T101, ordered39_in_aa(T100, T101))
U9_aa(T99, T100, T101, ordered39_out_aa(T100, T101)) → ordered39_out_aa(T99, .(T100, T101))
U9_ga(T99, T100, T101, ordered39_out_aa(T100, T101)) → ordered39_out_ga(T99, .(T100, T101))
U20_ga(T14, T24, T62, ordered39_out_ga(T24, T62)) → ss1_out_ga(T14, .(T24, T62))
LESS69_IN_AA(s(T128), s(T129)) → LESS69_IN_AA(T128, T129)
ss1_in_ga([], []) → ss1_out_ga([], [])
ss1_in_ga(T14, .(T17, T18)) → U12_ga(T14, T17, T18, app18_in_aaag(X23, T17, X24, T14))
app18_in_aaag([], T31, X46, .(T31, X46)) → app18_out_aaag([], T31, X46, .(T31, X46))
app18_in_aaag(.(X66, X67), T38, X68, .(X66, T37)) → U1_aaag(X66, X67, T38, X68, T37, app18_in_aaag(X67, T38, X68, T37))
U1_aaag(X66, X67, T38, X68, T37, app18_out_aaag(X67, T38, X68, T37)) → app18_out_aaag(.(X66, X67), T38, X68, .(X66, T37))
U12_ga(T14, T17, T18, app18_out_aaag(X23, T17, X24, T14)) → ss1_out_ga(T14, .(T17, T18))
ss1_in_ga(T14, .(T24, T23)) → U13_ga(T14, T24, T23, app18_in_aaag(T21, T24, T22, T14))
U13_ga(T14, T24, T23, app18_out_aaag(T21, T24, T22, T14)) → U14_ga(T14, T24, T23, app28_in_gga(T21, T22, X25))
app28_in_gga([], T50, T50) → app28_out_gga([], T50, T50)
app28_in_gga(.(T57, T58), T59, .(T57, X101)) → U2_gga(T57, T58, T59, X101, app28_in_gga(T58, T59, X101))
U2_gga(T57, T58, T59, X101, app28_out_gga(T58, T59, X101)) → app28_out_gga(.(T57, T58), T59, .(T57, X101))
U14_ga(T14, T24, T23, app28_out_gga(T21, T22, X25)) → ss1_out_ga(T14, .(T24, T23))
U13_ga(T14, T24, T23, app18_out_aaag(T21, T24, T22, T14)) → U15_ga(T14, T24, T23, app28_in_gga(T21, T22, T43))
U15_ga(T14, T24, T23, app28_out_gga(T21, T22, T43)) → U16_ga(T14, T24, T23, perm38_in_ga(T43, T23))
perm38_in_ga([], []) → perm38_out_ga([], [])
perm38_in_ga(T69, .(T72, T73)) → U3_ga(T69, T72, T73, app18_in_aaag(X120, T72, X121, T69))
U3_ga(T69, T72, T73, app18_out_aaag(X120, T72, X121, T69)) → perm38_out_ga(T69, .(T72, T73))
perm38_in_ga(T69, .(T72, T78)) → U4_ga(T69, T72, T78, app18_in_aaag(T76, T72, T77, T69))
U4_ga(T69, T72, T78, app18_out_aaag(T76, T72, T77, T69)) → U5_ga(T69, T72, T78, app28_in_gga(T76, T77, X122))
U5_ga(T69, T72, T78, app28_out_gga(T76, T77, X122)) → perm38_out_ga(T69, .(T72, T78))
U4_ga(T69, T72, T78, app18_out_aaag(T76, T72, T77, T69)) → U6_ga(T69, T72, T78, app28_in_gga(T76, T77, T83))
U6_ga(T69, T72, T78, app28_out_gga(T76, T77, T83)) → U7_ga(T69, T72, T78, perm38_in_ga(T83, T78))
U7_ga(T69, T72, T78, perm38_out_ga(T83, T78)) → perm38_out_ga(T69, .(T72, T78))
U16_ga(T14, T24, T23, perm38_out_ga(T43, T23)) → ss1_out_ga(T14, .(T24, T23))
ss1_in_ga(T14, .(T24, T62)) → U17_ga(T14, T24, T62, app18_in_aaag(T21, T24, T22, T14))
U17_ga(T14, T24, T62, app18_out_aaag(T21, T24, T22, T14)) → U18_ga(T14, T24, T62, app28_in_gga(T21, T22, T43))
U18_ga(T14, T24, T62, app28_out_gga(T21, T22, T43)) → U19_ga(T14, T24, T62, perm38_in_ga(T43, T62))
U19_ga(T14, T24, T62, perm38_out_ga(T43, T62)) → U20_ga(T14, T24, T62, ordered39_in_ga(T24, T62))
ordered39_in_ga(T92, []) → ordered39_out_ga(T92, [])
ordered39_in_ga(T99, .(T100, T101)) → U8_ga(T99, T100, T101, less61_in_ga(T99, T100))
less61_in_ga(0, T110) → less61_out_ga(0, T110)
less61_in_ga(s(T115), T116) → U11_ga(T115, T116, less69_in_ga(T115, T116))
less69_in_ga(0, s(T123)) → less69_out_ga(0, s(T123))
less69_in_ga(s(T128), s(T129)) → U10_ga(T128, T129, less69_in_ga(T128, T129))
U10_ga(T128, T129, less69_out_ga(T128, T129)) → less69_out_ga(s(T128), s(T129))
U11_ga(T115, T116, less69_out_ga(T115, T116)) → less61_out_ga(s(T115), T116)
U8_ga(T99, T100, T101, less61_out_ga(T99, T100)) → ordered39_out_ga(T99, .(T100, T101))
U8_ga(T99, T100, T101, less61_out_ga(T99, T100)) → U9_ga(T99, T100, T101, ordered39_in_aa(T100, T101))
ordered39_in_aa(T92, []) → ordered39_out_aa(T92, [])
ordered39_in_aa(T99, .(T100, T101)) → U8_aa(T99, T100, T101, less61_in_aa(T99, T100))
less61_in_aa(0, T110) → less61_out_aa(0, T110)
less61_in_aa(s(T115), T116) → U11_aa(T115, T116, less69_in_aa(T115, T116))
less69_in_aa(0, s(T123)) → less69_out_aa(0, s(T123))
less69_in_aa(s(T128), s(T129)) → U10_aa(T128, T129, less69_in_aa(T128, T129))
U10_aa(T128, T129, less69_out_aa(T128, T129)) → less69_out_aa(s(T128), s(T129))
U11_aa(T115, T116, less69_out_aa(T115, T116)) → less61_out_aa(s(T115), T116)
U8_aa(T99, T100, T101, less61_out_aa(T99, T100)) → ordered39_out_aa(T99, .(T100, T101))
U8_aa(T99, T100, T101, less61_out_aa(T99, T100)) → U9_aa(T99, T100, T101, ordered39_in_aa(T100, T101))
U9_aa(T99, T100, T101, ordered39_out_aa(T100, T101)) → ordered39_out_aa(T99, .(T100, T101))
U9_ga(T99, T100, T101, ordered39_out_aa(T100, T101)) → ordered39_out_ga(T99, .(T100, T101))
U20_ga(T14, T24, T62, ordered39_out_ga(T24, T62)) → ss1_out_ga(T14, .(T24, T62))
LESS69_IN_AA(s(T128), s(T129)) → LESS69_IN_AA(T128, T129)
LESS69_IN_AA → LESS69_IN_AA
U8_AA(T99, T100, T101, less61_out_aa(T99, T100)) → ORDERED39_IN_AA(T100, T101)
ORDERED39_IN_AA(T99, .(T100, T101)) → U8_AA(T99, T100, T101, less61_in_aa(T99, T100))
ss1_in_ga([], []) → ss1_out_ga([], [])
ss1_in_ga(T14, .(T17, T18)) → U12_ga(T14, T17, T18, app18_in_aaag(X23, T17, X24, T14))
app18_in_aaag([], T31, X46, .(T31, X46)) → app18_out_aaag([], T31, X46, .(T31, X46))
app18_in_aaag(.(X66, X67), T38, X68, .(X66, T37)) → U1_aaag(X66, X67, T38, X68, T37, app18_in_aaag(X67, T38, X68, T37))
U1_aaag(X66, X67, T38, X68, T37, app18_out_aaag(X67, T38, X68, T37)) → app18_out_aaag(.(X66, X67), T38, X68, .(X66, T37))
U12_ga(T14, T17, T18, app18_out_aaag(X23, T17, X24, T14)) → ss1_out_ga(T14, .(T17, T18))
ss1_in_ga(T14, .(T24, T23)) → U13_ga(T14, T24, T23, app18_in_aaag(T21, T24, T22, T14))
U13_ga(T14, T24, T23, app18_out_aaag(T21, T24, T22, T14)) → U14_ga(T14, T24, T23, app28_in_gga(T21, T22, X25))
app28_in_gga([], T50, T50) → app28_out_gga([], T50, T50)
app28_in_gga(.(T57, T58), T59, .(T57, X101)) → U2_gga(T57, T58, T59, X101, app28_in_gga(T58, T59, X101))
U2_gga(T57, T58, T59, X101, app28_out_gga(T58, T59, X101)) → app28_out_gga(.(T57, T58), T59, .(T57, X101))
U14_ga(T14, T24, T23, app28_out_gga(T21, T22, X25)) → ss1_out_ga(T14, .(T24, T23))
U13_ga(T14, T24, T23, app18_out_aaag(T21, T24, T22, T14)) → U15_ga(T14, T24, T23, app28_in_gga(T21, T22, T43))
U15_ga(T14, T24, T23, app28_out_gga(T21, T22, T43)) → U16_ga(T14, T24, T23, perm38_in_ga(T43, T23))
perm38_in_ga([], []) → perm38_out_ga([], [])
perm38_in_ga(T69, .(T72, T73)) → U3_ga(T69, T72, T73, app18_in_aaag(X120, T72, X121, T69))
U3_ga(T69, T72, T73, app18_out_aaag(X120, T72, X121, T69)) → perm38_out_ga(T69, .(T72, T73))
perm38_in_ga(T69, .(T72, T78)) → U4_ga(T69, T72, T78, app18_in_aaag(T76, T72, T77, T69))
U4_ga(T69, T72, T78, app18_out_aaag(T76, T72, T77, T69)) → U5_ga(T69, T72, T78, app28_in_gga(T76, T77, X122))
U5_ga(T69, T72, T78, app28_out_gga(T76, T77, X122)) → perm38_out_ga(T69, .(T72, T78))
U4_ga(T69, T72, T78, app18_out_aaag(T76, T72, T77, T69)) → U6_ga(T69, T72, T78, app28_in_gga(T76, T77, T83))
U6_ga(T69, T72, T78, app28_out_gga(T76, T77, T83)) → U7_ga(T69, T72, T78, perm38_in_ga(T83, T78))
U7_ga(T69, T72, T78, perm38_out_ga(T83, T78)) → perm38_out_ga(T69, .(T72, T78))
U16_ga(T14, T24, T23, perm38_out_ga(T43, T23)) → ss1_out_ga(T14, .(T24, T23))
ss1_in_ga(T14, .(T24, T62)) → U17_ga(T14, T24, T62, app18_in_aaag(T21, T24, T22, T14))
U17_ga(T14, T24, T62, app18_out_aaag(T21, T24, T22, T14)) → U18_ga(T14, T24, T62, app28_in_gga(T21, T22, T43))
U18_ga(T14, T24, T62, app28_out_gga(T21, T22, T43)) → U19_ga(T14, T24, T62, perm38_in_ga(T43, T62))
U19_ga(T14, T24, T62, perm38_out_ga(T43, T62)) → U20_ga(T14, T24, T62, ordered39_in_ga(T24, T62))
ordered39_in_ga(T92, []) → ordered39_out_ga(T92, [])
ordered39_in_ga(T99, .(T100, T101)) → U8_ga(T99, T100, T101, less61_in_ga(T99, T100))
less61_in_ga(0, T110) → less61_out_ga(0, T110)
less61_in_ga(s(T115), T116) → U11_ga(T115, T116, less69_in_ga(T115, T116))
less69_in_ga(0, s(T123)) → less69_out_ga(0, s(T123))
less69_in_ga(s(T128), s(T129)) → U10_ga(T128, T129, less69_in_ga(T128, T129))
U10_ga(T128, T129, less69_out_ga(T128, T129)) → less69_out_ga(s(T128), s(T129))
U11_ga(T115, T116, less69_out_ga(T115, T116)) → less61_out_ga(s(T115), T116)
U8_ga(T99, T100, T101, less61_out_ga(T99, T100)) → ordered39_out_ga(T99, .(T100, T101))
U8_ga(T99, T100, T101, less61_out_ga(T99, T100)) → U9_ga(T99, T100, T101, ordered39_in_aa(T100, T101))
ordered39_in_aa(T92, []) → ordered39_out_aa(T92, [])
ordered39_in_aa(T99, .(T100, T101)) → U8_aa(T99, T100, T101, less61_in_aa(T99, T100))
less61_in_aa(0, T110) → less61_out_aa(0, T110)
less61_in_aa(s(T115), T116) → U11_aa(T115, T116, less69_in_aa(T115, T116))
less69_in_aa(0, s(T123)) → less69_out_aa(0, s(T123))
less69_in_aa(s(T128), s(T129)) → U10_aa(T128, T129, less69_in_aa(T128, T129))
U10_aa(T128, T129, less69_out_aa(T128, T129)) → less69_out_aa(s(T128), s(T129))
U11_aa(T115, T116, less69_out_aa(T115, T116)) → less61_out_aa(s(T115), T116)
U8_aa(T99, T100, T101, less61_out_aa(T99, T100)) → ordered39_out_aa(T99, .(T100, T101))
U8_aa(T99, T100, T101, less61_out_aa(T99, T100)) → U9_aa(T99, T100, T101, ordered39_in_aa(T100, T101))
U9_aa(T99, T100, T101, ordered39_out_aa(T100, T101)) → ordered39_out_aa(T99, .(T100, T101))
U9_ga(T99, T100, T101, ordered39_out_aa(T100, T101)) → ordered39_out_ga(T99, .(T100, T101))
U20_ga(T14, T24, T62, ordered39_out_ga(T24, T62)) → ss1_out_ga(T14, .(T24, T62))
U8_AA(T99, T100, T101, less61_out_aa(T99, T100)) → ORDERED39_IN_AA(T100, T101)
ORDERED39_IN_AA(T99, .(T100, T101)) → U8_AA(T99, T100, T101, less61_in_aa(T99, T100))
less61_in_aa(0, T110) → less61_out_aa(0, T110)
less61_in_aa(s(T115), T116) → U11_aa(T115, T116, less69_in_aa(T115, T116))
U11_aa(T115, T116, less69_out_aa(T115, T116)) → less61_out_aa(s(T115), T116)
less69_in_aa(0, s(T123)) → less69_out_aa(0, s(T123))
less69_in_aa(s(T128), s(T129)) → U10_aa(T128, T129, less69_in_aa(T128, T129))
U10_aa(T128, T129, less69_out_aa(T128, T129)) → less69_out_aa(s(T128), s(T129))
U8_AA(less61_out_aa(T99)) → ORDERED39_IN_AA
ORDERED39_IN_AA → U8_AA(less61_in_aa)
less61_in_aa → less61_out_aa(0)
less61_in_aa → U11_aa(less69_in_aa)
U11_aa(less69_out_aa(T115)) → less61_out_aa(s(T115))
less69_in_aa → less69_out_aa(0)
less69_in_aa → U10_aa(less69_in_aa)
U10_aa(less69_out_aa(T128)) → less69_out_aa(s(T128))
less61_in_aa
U11_aa(x0)
less69_in_aa
U10_aa(x0)
ORDERED39_IN_AA → U8_AA(less61_out_aa(0))
ORDERED39_IN_AA → U8_AA(U11_aa(less69_in_aa))
U8_AA(less61_out_aa(T99)) → ORDERED39_IN_AA
ORDERED39_IN_AA → U8_AA(less61_out_aa(0))
ORDERED39_IN_AA → U8_AA(U11_aa(less69_in_aa))
less61_in_aa → less61_out_aa(0)
less61_in_aa → U11_aa(less69_in_aa)
U11_aa(less69_out_aa(T115)) → less61_out_aa(s(T115))
less69_in_aa → less69_out_aa(0)
less69_in_aa → U10_aa(less69_in_aa)
U10_aa(less69_out_aa(T128)) → less69_out_aa(s(T128))
less61_in_aa
U11_aa(x0)
less69_in_aa
U10_aa(x0)
U8_AA(less61_out_aa(T99)) → ORDERED39_IN_AA
ORDERED39_IN_AA → U8_AA(less61_out_aa(0))
ORDERED39_IN_AA → U8_AA(U11_aa(less69_in_aa))
less69_in_aa → less69_out_aa(0)
less69_in_aa → U10_aa(less69_in_aa)
U11_aa(less69_out_aa(T115)) → less61_out_aa(s(T115))
U10_aa(less69_out_aa(T128)) → less69_out_aa(s(T128))
less61_in_aa
U11_aa(x0)
less69_in_aa
U10_aa(x0)
less61_in_aa
U8_AA(less61_out_aa(T99)) → ORDERED39_IN_AA
ORDERED39_IN_AA → U8_AA(less61_out_aa(0))
ORDERED39_IN_AA → U8_AA(U11_aa(less69_in_aa))
less69_in_aa → less69_out_aa(0)
less69_in_aa → U10_aa(less69_in_aa)
U11_aa(less69_out_aa(T115)) → less61_out_aa(s(T115))
U10_aa(less69_out_aa(T128)) → less69_out_aa(s(T128))
U11_aa(x0)
less69_in_aa
U10_aa(x0)
LESS69_IN_GA(s(T128), s(T129)) → LESS69_IN_GA(T128, T129)
ss1_in_ga([], []) → ss1_out_ga([], [])
ss1_in_ga(T14, .(T17, T18)) → U12_ga(T14, T17, T18, app18_in_aaag(X23, T17, X24, T14))
app18_in_aaag([], T31, X46, .(T31, X46)) → app18_out_aaag([], T31, X46, .(T31, X46))
app18_in_aaag(.(X66, X67), T38, X68, .(X66, T37)) → U1_aaag(X66, X67, T38, X68, T37, app18_in_aaag(X67, T38, X68, T37))
U1_aaag(X66, X67, T38, X68, T37, app18_out_aaag(X67, T38, X68, T37)) → app18_out_aaag(.(X66, X67), T38, X68, .(X66, T37))
U12_ga(T14, T17, T18, app18_out_aaag(X23, T17, X24, T14)) → ss1_out_ga(T14, .(T17, T18))
ss1_in_ga(T14, .(T24, T23)) → U13_ga(T14, T24, T23, app18_in_aaag(T21, T24, T22, T14))
U13_ga(T14, T24, T23, app18_out_aaag(T21, T24, T22, T14)) → U14_ga(T14, T24, T23, app28_in_gga(T21, T22, X25))
app28_in_gga([], T50, T50) → app28_out_gga([], T50, T50)
app28_in_gga(.(T57, T58), T59, .(T57, X101)) → U2_gga(T57, T58, T59, X101, app28_in_gga(T58, T59, X101))
U2_gga(T57, T58, T59, X101, app28_out_gga(T58, T59, X101)) → app28_out_gga(.(T57, T58), T59, .(T57, X101))
U14_ga(T14, T24, T23, app28_out_gga(T21, T22, X25)) → ss1_out_ga(T14, .(T24, T23))
U13_ga(T14, T24, T23, app18_out_aaag(T21, T24, T22, T14)) → U15_ga(T14, T24, T23, app28_in_gga(T21, T22, T43))
U15_ga(T14, T24, T23, app28_out_gga(T21, T22, T43)) → U16_ga(T14, T24, T23, perm38_in_ga(T43, T23))
perm38_in_ga([], []) → perm38_out_ga([], [])
perm38_in_ga(T69, .(T72, T73)) → U3_ga(T69, T72, T73, app18_in_aaag(X120, T72, X121, T69))
U3_ga(T69, T72, T73, app18_out_aaag(X120, T72, X121, T69)) → perm38_out_ga(T69, .(T72, T73))
perm38_in_ga(T69, .(T72, T78)) → U4_ga(T69, T72, T78, app18_in_aaag(T76, T72, T77, T69))
U4_ga(T69, T72, T78, app18_out_aaag(T76, T72, T77, T69)) → U5_ga(T69, T72, T78, app28_in_gga(T76, T77, X122))
U5_ga(T69, T72, T78, app28_out_gga(T76, T77, X122)) → perm38_out_ga(T69, .(T72, T78))
U4_ga(T69, T72, T78, app18_out_aaag(T76, T72, T77, T69)) → U6_ga(T69, T72, T78, app28_in_gga(T76, T77, T83))
U6_ga(T69, T72, T78, app28_out_gga(T76, T77, T83)) → U7_ga(T69, T72, T78, perm38_in_ga(T83, T78))
U7_ga(T69, T72, T78, perm38_out_ga(T83, T78)) → perm38_out_ga(T69, .(T72, T78))
U16_ga(T14, T24, T23, perm38_out_ga(T43, T23)) → ss1_out_ga(T14, .(T24, T23))
ss1_in_ga(T14, .(T24, T62)) → U17_ga(T14, T24, T62, app18_in_aaag(T21, T24, T22, T14))
U17_ga(T14, T24, T62, app18_out_aaag(T21, T24, T22, T14)) → U18_ga(T14, T24, T62, app28_in_gga(T21, T22, T43))
U18_ga(T14, T24, T62, app28_out_gga(T21, T22, T43)) → U19_ga(T14, T24, T62, perm38_in_ga(T43, T62))
U19_ga(T14, T24, T62, perm38_out_ga(T43, T62)) → U20_ga(T14, T24, T62, ordered39_in_ga(T24, T62))
ordered39_in_ga(T92, []) → ordered39_out_ga(T92, [])
ordered39_in_ga(T99, .(T100, T101)) → U8_ga(T99, T100, T101, less61_in_ga(T99, T100))
less61_in_ga(0, T110) → less61_out_ga(0, T110)
less61_in_ga(s(T115), T116) → U11_ga(T115, T116, less69_in_ga(T115, T116))
less69_in_ga(0, s(T123)) → less69_out_ga(0, s(T123))
less69_in_ga(s(T128), s(T129)) → U10_ga(T128, T129, less69_in_ga(T128, T129))
U10_ga(T128, T129, less69_out_ga(T128, T129)) → less69_out_ga(s(T128), s(T129))
U11_ga(T115, T116, less69_out_ga(T115, T116)) → less61_out_ga(s(T115), T116)
U8_ga(T99, T100, T101, less61_out_ga(T99, T100)) → ordered39_out_ga(T99, .(T100, T101))
U8_ga(T99, T100, T101, less61_out_ga(T99, T100)) → U9_ga(T99, T100, T101, ordered39_in_aa(T100, T101))
ordered39_in_aa(T92, []) → ordered39_out_aa(T92, [])
ordered39_in_aa(T99, .(T100, T101)) → U8_aa(T99, T100, T101, less61_in_aa(T99, T100))
less61_in_aa(0, T110) → less61_out_aa(0, T110)
less61_in_aa(s(T115), T116) → U11_aa(T115, T116, less69_in_aa(T115, T116))
less69_in_aa(0, s(T123)) → less69_out_aa(0, s(T123))
less69_in_aa(s(T128), s(T129)) → U10_aa(T128, T129, less69_in_aa(T128, T129))
U10_aa(T128, T129, less69_out_aa(T128, T129)) → less69_out_aa(s(T128), s(T129))
U11_aa(T115, T116, less69_out_aa(T115, T116)) → less61_out_aa(s(T115), T116)
U8_aa(T99, T100, T101, less61_out_aa(T99, T100)) → ordered39_out_aa(T99, .(T100, T101))
U8_aa(T99, T100, T101, less61_out_aa(T99, T100)) → U9_aa(T99, T100, T101, ordered39_in_aa(T100, T101))
U9_aa(T99, T100, T101, ordered39_out_aa(T100, T101)) → ordered39_out_aa(T99, .(T100, T101))
U9_ga(T99, T100, T101, ordered39_out_aa(T100, T101)) → ordered39_out_ga(T99, .(T100, T101))
U20_ga(T14, T24, T62, ordered39_out_ga(T24, T62)) → ss1_out_ga(T14, .(T24, T62))
LESS69_IN_GA(s(T128), s(T129)) → LESS69_IN_GA(T128, T129)
LESS69_IN_GA(s(T128)) → LESS69_IN_GA(T128)
From the DPs we obtained the following set of size-change graphs:
APP28_IN_GGA(.(T57, T58), T59, .(T57, X101)) → APP28_IN_GGA(T58, T59, X101)
ss1_in_ga([], []) → ss1_out_ga([], [])
ss1_in_ga(T14, .(T17, T18)) → U12_ga(T14, T17, T18, app18_in_aaag(X23, T17, X24, T14))
app18_in_aaag([], T31, X46, .(T31, X46)) → app18_out_aaag([], T31, X46, .(T31, X46))
app18_in_aaag(.(X66, X67), T38, X68, .(X66, T37)) → U1_aaag(X66, X67, T38, X68, T37, app18_in_aaag(X67, T38, X68, T37))
U1_aaag(X66, X67, T38, X68, T37, app18_out_aaag(X67, T38, X68, T37)) → app18_out_aaag(.(X66, X67), T38, X68, .(X66, T37))
U12_ga(T14, T17, T18, app18_out_aaag(X23, T17, X24, T14)) → ss1_out_ga(T14, .(T17, T18))
ss1_in_ga(T14, .(T24, T23)) → U13_ga(T14, T24, T23, app18_in_aaag(T21, T24, T22, T14))
U13_ga(T14, T24, T23, app18_out_aaag(T21, T24, T22, T14)) → U14_ga(T14, T24, T23, app28_in_gga(T21, T22, X25))
app28_in_gga([], T50, T50) → app28_out_gga([], T50, T50)
app28_in_gga(.(T57, T58), T59, .(T57, X101)) → U2_gga(T57, T58, T59, X101, app28_in_gga(T58, T59, X101))
U2_gga(T57, T58, T59, X101, app28_out_gga(T58, T59, X101)) → app28_out_gga(.(T57, T58), T59, .(T57, X101))
U14_ga(T14, T24, T23, app28_out_gga(T21, T22, X25)) → ss1_out_ga(T14, .(T24, T23))
U13_ga(T14, T24, T23, app18_out_aaag(T21, T24, T22, T14)) → U15_ga(T14, T24, T23, app28_in_gga(T21, T22, T43))
U15_ga(T14, T24, T23, app28_out_gga(T21, T22, T43)) → U16_ga(T14, T24, T23, perm38_in_ga(T43, T23))
perm38_in_ga([], []) → perm38_out_ga([], [])
perm38_in_ga(T69, .(T72, T73)) → U3_ga(T69, T72, T73, app18_in_aaag(X120, T72, X121, T69))
U3_ga(T69, T72, T73, app18_out_aaag(X120, T72, X121, T69)) → perm38_out_ga(T69, .(T72, T73))
perm38_in_ga(T69, .(T72, T78)) → U4_ga(T69, T72, T78, app18_in_aaag(T76, T72, T77, T69))
U4_ga(T69, T72, T78, app18_out_aaag(T76, T72, T77, T69)) → U5_ga(T69, T72, T78, app28_in_gga(T76, T77, X122))
U5_ga(T69, T72, T78, app28_out_gga(T76, T77, X122)) → perm38_out_ga(T69, .(T72, T78))
U4_ga(T69, T72, T78, app18_out_aaag(T76, T72, T77, T69)) → U6_ga(T69, T72, T78, app28_in_gga(T76, T77, T83))
U6_ga(T69, T72, T78, app28_out_gga(T76, T77, T83)) → U7_ga(T69, T72, T78, perm38_in_ga(T83, T78))
U7_ga(T69, T72, T78, perm38_out_ga(T83, T78)) → perm38_out_ga(T69, .(T72, T78))
U16_ga(T14, T24, T23, perm38_out_ga(T43, T23)) → ss1_out_ga(T14, .(T24, T23))
ss1_in_ga(T14, .(T24, T62)) → U17_ga(T14, T24, T62, app18_in_aaag(T21, T24, T22, T14))
U17_ga(T14, T24, T62, app18_out_aaag(T21, T24, T22, T14)) → U18_ga(T14, T24, T62, app28_in_gga(T21, T22, T43))
U18_ga(T14, T24, T62, app28_out_gga(T21, T22, T43)) → U19_ga(T14, T24, T62, perm38_in_ga(T43, T62))
U19_ga(T14, T24, T62, perm38_out_ga(T43, T62)) → U20_ga(T14, T24, T62, ordered39_in_ga(T24, T62))
ordered39_in_ga(T92, []) → ordered39_out_ga(T92, [])
ordered39_in_ga(T99, .(T100, T101)) → U8_ga(T99, T100, T101, less61_in_ga(T99, T100))
less61_in_ga(0, T110) → less61_out_ga(0, T110)
less61_in_ga(s(T115), T116) → U11_ga(T115, T116, less69_in_ga(T115, T116))
less69_in_ga(0, s(T123)) → less69_out_ga(0, s(T123))
less69_in_ga(s(T128), s(T129)) → U10_ga(T128, T129, less69_in_ga(T128, T129))
U10_ga(T128, T129, less69_out_ga(T128, T129)) → less69_out_ga(s(T128), s(T129))
U11_ga(T115, T116, less69_out_ga(T115, T116)) → less61_out_ga(s(T115), T116)
U8_ga(T99, T100, T101, less61_out_ga(T99, T100)) → ordered39_out_ga(T99, .(T100, T101))
U8_ga(T99, T100, T101, less61_out_ga(T99, T100)) → U9_ga(T99, T100, T101, ordered39_in_aa(T100, T101))
ordered39_in_aa(T92, []) → ordered39_out_aa(T92, [])
ordered39_in_aa(T99, .(T100, T101)) → U8_aa(T99, T100, T101, less61_in_aa(T99, T100))
less61_in_aa(0, T110) → less61_out_aa(0, T110)
less61_in_aa(s(T115), T116) → U11_aa(T115, T116, less69_in_aa(T115, T116))
less69_in_aa(0, s(T123)) → less69_out_aa(0, s(T123))
less69_in_aa(s(T128), s(T129)) → U10_aa(T128, T129, less69_in_aa(T128, T129))
U10_aa(T128, T129, less69_out_aa(T128, T129)) → less69_out_aa(s(T128), s(T129))
U11_aa(T115, T116, less69_out_aa(T115, T116)) → less61_out_aa(s(T115), T116)
U8_aa(T99, T100, T101, less61_out_aa(T99, T100)) → ordered39_out_aa(T99, .(T100, T101))
U8_aa(T99, T100, T101, less61_out_aa(T99, T100)) → U9_aa(T99, T100, T101, ordered39_in_aa(T100, T101))
U9_aa(T99, T100, T101, ordered39_out_aa(T100, T101)) → ordered39_out_aa(T99, .(T100, T101))
U9_ga(T99, T100, T101, ordered39_out_aa(T100, T101)) → ordered39_out_ga(T99, .(T100, T101))
U20_ga(T14, T24, T62, ordered39_out_ga(T24, T62)) → ss1_out_ga(T14, .(T24, T62))
APP28_IN_GGA(.(T57, T58), T59, .(T57, X101)) → APP28_IN_GGA(T58, T59, X101)
APP28_IN_GGA(.(T57, T58), T59) → APP28_IN_GGA(T58, T59)
From the DPs we obtained the following set of size-change graphs:
APP18_IN_AAAG(.(X66, X67), T38, X68, .(X66, T37)) → APP18_IN_AAAG(X67, T38, X68, T37)
ss1_in_ga([], []) → ss1_out_ga([], [])
ss1_in_ga(T14, .(T17, T18)) → U12_ga(T14, T17, T18, app18_in_aaag(X23, T17, X24, T14))
app18_in_aaag([], T31, X46, .(T31, X46)) → app18_out_aaag([], T31, X46, .(T31, X46))
app18_in_aaag(.(X66, X67), T38, X68, .(X66, T37)) → U1_aaag(X66, X67, T38, X68, T37, app18_in_aaag(X67, T38, X68, T37))
U1_aaag(X66, X67, T38, X68, T37, app18_out_aaag(X67, T38, X68, T37)) → app18_out_aaag(.(X66, X67), T38, X68, .(X66, T37))
U12_ga(T14, T17, T18, app18_out_aaag(X23, T17, X24, T14)) → ss1_out_ga(T14, .(T17, T18))
ss1_in_ga(T14, .(T24, T23)) → U13_ga(T14, T24, T23, app18_in_aaag(T21, T24, T22, T14))
U13_ga(T14, T24, T23, app18_out_aaag(T21, T24, T22, T14)) → U14_ga(T14, T24, T23, app28_in_gga(T21, T22, X25))
app28_in_gga([], T50, T50) → app28_out_gga([], T50, T50)
app28_in_gga(.(T57, T58), T59, .(T57, X101)) → U2_gga(T57, T58, T59, X101, app28_in_gga(T58, T59, X101))
U2_gga(T57, T58, T59, X101, app28_out_gga(T58, T59, X101)) → app28_out_gga(.(T57, T58), T59, .(T57, X101))
U14_ga(T14, T24, T23, app28_out_gga(T21, T22, X25)) → ss1_out_ga(T14, .(T24, T23))
U13_ga(T14, T24, T23, app18_out_aaag(T21, T24, T22, T14)) → U15_ga(T14, T24, T23, app28_in_gga(T21, T22, T43))
U15_ga(T14, T24, T23, app28_out_gga(T21, T22, T43)) → U16_ga(T14, T24, T23, perm38_in_ga(T43, T23))
perm38_in_ga([], []) → perm38_out_ga([], [])
perm38_in_ga(T69, .(T72, T73)) → U3_ga(T69, T72, T73, app18_in_aaag(X120, T72, X121, T69))
U3_ga(T69, T72, T73, app18_out_aaag(X120, T72, X121, T69)) → perm38_out_ga(T69, .(T72, T73))
perm38_in_ga(T69, .(T72, T78)) → U4_ga(T69, T72, T78, app18_in_aaag(T76, T72, T77, T69))
U4_ga(T69, T72, T78, app18_out_aaag(T76, T72, T77, T69)) → U5_ga(T69, T72, T78, app28_in_gga(T76, T77, X122))
U5_ga(T69, T72, T78, app28_out_gga(T76, T77, X122)) → perm38_out_ga(T69, .(T72, T78))
U4_ga(T69, T72, T78, app18_out_aaag(T76, T72, T77, T69)) → U6_ga(T69, T72, T78, app28_in_gga(T76, T77, T83))
U6_ga(T69, T72, T78, app28_out_gga(T76, T77, T83)) → U7_ga(T69, T72, T78, perm38_in_ga(T83, T78))
U7_ga(T69, T72, T78, perm38_out_ga(T83, T78)) → perm38_out_ga(T69, .(T72, T78))
U16_ga(T14, T24, T23, perm38_out_ga(T43, T23)) → ss1_out_ga(T14, .(T24, T23))
ss1_in_ga(T14, .(T24, T62)) → U17_ga(T14, T24, T62, app18_in_aaag(T21, T24, T22, T14))
U17_ga(T14, T24, T62, app18_out_aaag(T21, T24, T22, T14)) → U18_ga(T14, T24, T62, app28_in_gga(T21, T22, T43))
U18_ga(T14, T24, T62, app28_out_gga(T21, T22, T43)) → U19_ga(T14, T24, T62, perm38_in_ga(T43, T62))
U19_ga(T14, T24, T62, perm38_out_ga(T43, T62)) → U20_ga(T14, T24, T62, ordered39_in_ga(T24, T62))
ordered39_in_ga(T92, []) → ordered39_out_ga(T92, [])
ordered39_in_ga(T99, .(T100, T101)) → U8_ga(T99, T100, T101, less61_in_ga(T99, T100))
less61_in_ga(0, T110) → less61_out_ga(0, T110)
less61_in_ga(s(T115), T116) → U11_ga(T115, T116, less69_in_ga(T115, T116))
less69_in_ga(0, s(T123)) → less69_out_ga(0, s(T123))
less69_in_ga(s(T128), s(T129)) → U10_ga(T128, T129, less69_in_ga(T128, T129))
U10_ga(T128, T129, less69_out_ga(T128, T129)) → less69_out_ga(s(T128), s(T129))
U11_ga(T115, T116, less69_out_ga(T115, T116)) → less61_out_ga(s(T115), T116)
U8_ga(T99, T100, T101, less61_out_ga(T99, T100)) → ordered39_out_ga(T99, .(T100, T101))
U8_ga(T99, T100, T101, less61_out_ga(T99, T100)) → U9_ga(T99, T100, T101, ordered39_in_aa(T100, T101))
ordered39_in_aa(T92, []) → ordered39_out_aa(T92, [])
ordered39_in_aa(T99, .(T100, T101)) → U8_aa(T99, T100, T101, less61_in_aa(T99, T100))
less61_in_aa(0, T110) → less61_out_aa(0, T110)
less61_in_aa(s(T115), T116) → U11_aa(T115, T116, less69_in_aa(T115, T116))
less69_in_aa(0, s(T123)) → less69_out_aa(0, s(T123))
less69_in_aa(s(T128), s(T129)) → U10_aa(T128, T129, less69_in_aa(T128, T129))
U10_aa(T128, T129, less69_out_aa(T128, T129)) → less69_out_aa(s(T128), s(T129))
U11_aa(T115, T116, less69_out_aa(T115, T116)) → less61_out_aa(s(T115), T116)
U8_aa(T99, T100, T101, less61_out_aa(T99, T100)) → ordered39_out_aa(T99, .(T100, T101))
U8_aa(T99, T100, T101, less61_out_aa(T99, T100)) → U9_aa(T99, T100, T101, ordered39_in_aa(T100, T101))
U9_aa(T99, T100, T101, ordered39_out_aa(T100, T101)) → ordered39_out_aa(T99, .(T100, T101))
U9_ga(T99, T100, T101, ordered39_out_aa(T100, T101)) → ordered39_out_ga(T99, .(T100, T101))
U20_ga(T14, T24, T62, ordered39_out_ga(T24, T62)) → ss1_out_ga(T14, .(T24, T62))
APP18_IN_AAAG(.(X66, X67), T38, X68, .(X66, T37)) → APP18_IN_AAAG(X67, T38, X68, T37)
APP18_IN_AAAG(.(X66, T37)) → APP18_IN_AAAG(T37)
From the DPs we obtained the following set of size-change graphs:
PERM38_IN_GA(T69, .(T72, T78)) → U4_GA(T69, T72, T78, app18_in_aaag(T76, T72, T77, T69))
U4_GA(T69, T72, T78, app18_out_aaag(T76, T72, T77, T69)) → U6_GA(T69, T72, T78, app28_in_gga(T76, T77, T83))
U6_GA(T69, T72, T78, app28_out_gga(T76, T77, T83)) → PERM38_IN_GA(T83, T78)
ss1_in_ga([], []) → ss1_out_ga([], [])
ss1_in_ga(T14, .(T17, T18)) → U12_ga(T14, T17, T18, app18_in_aaag(X23, T17, X24, T14))
app18_in_aaag([], T31, X46, .(T31, X46)) → app18_out_aaag([], T31, X46, .(T31, X46))
app18_in_aaag(.(X66, X67), T38, X68, .(X66, T37)) → U1_aaag(X66, X67, T38, X68, T37, app18_in_aaag(X67, T38, X68, T37))
U1_aaag(X66, X67, T38, X68, T37, app18_out_aaag(X67, T38, X68, T37)) → app18_out_aaag(.(X66, X67), T38, X68, .(X66, T37))
U12_ga(T14, T17, T18, app18_out_aaag(X23, T17, X24, T14)) → ss1_out_ga(T14, .(T17, T18))
ss1_in_ga(T14, .(T24, T23)) → U13_ga(T14, T24, T23, app18_in_aaag(T21, T24, T22, T14))
U13_ga(T14, T24, T23, app18_out_aaag(T21, T24, T22, T14)) → U14_ga(T14, T24, T23, app28_in_gga(T21, T22, X25))
app28_in_gga([], T50, T50) → app28_out_gga([], T50, T50)
app28_in_gga(.(T57, T58), T59, .(T57, X101)) → U2_gga(T57, T58, T59, X101, app28_in_gga(T58, T59, X101))
U2_gga(T57, T58, T59, X101, app28_out_gga(T58, T59, X101)) → app28_out_gga(.(T57, T58), T59, .(T57, X101))
U14_ga(T14, T24, T23, app28_out_gga(T21, T22, X25)) → ss1_out_ga(T14, .(T24, T23))
U13_ga(T14, T24, T23, app18_out_aaag(T21, T24, T22, T14)) → U15_ga(T14, T24, T23, app28_in_gga(T21, T22, T43))
U15_ga(T14, T24, T23, app28_out_gga(T21, T22, T43)) → U16_ga(T14, T24, T23, perm38_in_ga(T43, T23))
perm38_in_ga([], []) → perm38_out_ga([], [])
perm38_in_ga(T69, .(T72, T73)) → U3_ga(T69, T72, T73, app18_in_aaag(X120, T72, X121, T69))
U3_ga(T69, T72, T73, app18_out_aaag(X120, T72, X121, T69)) → perm38_out_ga(T69, .(T72, T73))
perm38_in_ga(T69, .(T72, T78)) → U4_ga(T69, T72, T78, app18_in_aaag(T76, T72, T77, T69))
U4_ga(T69, T72, T78, app18_out_aaag(T76, T72, T77, T69)) → U5_ga(T69, T72, T78, app28_in_gga(T76, T77, X122))
U5_ga(T69, T72, T78, app28_out_gga(T76, T77, X122)) → perm38_out_ga(T69, .(T72, T78))
U4_ga(T69, T72, T78, app18_out_aaag(T76, T72, T77, T69)) → U6_ga(T69, T72, T78, app28_in_gga(T76, T77, T83))
U6_ga(T69, T72, T78, app28_out_gga(T76, T77, T83)) → U7_ga(T69, T72, T78, perm38_in_ga(T83, T78))
U7_ga(T69, T72, T78, perm38_out_ga(T83, T78)) → perm38_out_ga(T69, .(T72, T78))
U16_ga(T14, T24, T23, perm38_out_ga(T43, T23)) → ss1_out_ga(T14, .(T24, T23))
ss1_in_ga(T14, .(T24, T62)) → U17_ga(T14, T24, T62, app18_in_aaag(T21, T24, T22, T14))
U17_ga(T14, T24, T62, app18_out_aaag(T21, T24, T22, T14)) → U18_ga(T14, T24, T62, app28_in_gga(T21, T22, T43))
U18_ga(T14, T24, T62, app28_out_gga(T21, T22, T43)) → U19_ga(T14, T24, T62, perm38_in_ga(T43, T62))
U19_ga(T14, T24, T62, perm38_out_ga(T43, T62)) → U20_ga(T14, T24, T62, ordered39_in_ga(T24, T62))
ordered39_in_ga(T92, []) → ordered39_out_ga(T92, [])
ordered39_in_ga(T99, .(T100, T101)) → U8_ga(T99, T100, T101, less61_in_ga(T99, T100))
less61_in_ga(0, T110) → less61_out_ga(0, T110)
less61_in_ga(s(T115), T116) → U11_ga(T115, T116, less69_in_ga(T115, T116))
less69_in_ga(0, s(T123)) → less69_out_ga(0, s(T123))
less69_in_ga(s(T128), s(T129)) → U10_ga(T128, T129, less69_in_ga(T128, T129))
U10_ga(T128, T129, less69_out_ga(T128, T129)) → less69_out_ga(s(T128), s(T129))
U11_ga(T115, T116, less69_out_ga(T115, T116)) → less61_out_ga(s(T115), T116)
U8_ga(T99, T100, T101, less61_out_ga(T99, T100)) → ordered39_out_ga(T99, .(T100, T101))
U8_ga(T99, T100, T101, less61_out_ga(T99, T100)) → U9_ga(T99, T100, T101, ordered39_in_aa(T100, T101))
ordered39_in_aa(T92, []) → ordered39_out_aa(T92, [])
ordered39_in_aa(T99, .(T100, T101)) → U8_aa(T99, T100, T101, less61_in_aa(T99, T100))
less61_in_aa(0, T110) → less61_out_aa(0, T110)
less61_in_aa(s(T115), T116) → U11_aa(T115, T116, less69_in_aa(T115, T116))
less69_in_aa(0, s(T123)) → less69_out_aa(0, s(T123))
less69_in_aa(s(T128), s(T129)) → U10_aa(T128, T129, less69_in_aa(T128, T129))
U10_aa(T128, T129, less69_out_aa(T128, T129)) → less69_out_aa(s(T128), s(T129))
U11_aa(T115, T116, less69_out_aa(T115, T116)) → less61_out_aa(s(T115), T116)
U8_aa(T99, T100, T101, less61_out_aa(T99, T100)) → ordered39_out_aa(T99, .(T100, T101))
U8_aa(T99, T100, T101, less61_out_aa(T99, T100)) → U9_aa(T99, T100, T101, ordered39_in_aa(T100, T101))
U9_aa(T99, T100, T101, ordered39_out_aa(T100, T101)) → ordered39_out_aa(T99, .(T100, T101))
U9_ga(T99, T100, T101, ordered39_out_aa(T100, T101)) → ordered39_out_ga(T99, .(T100, T101))
U20_ga(T14, T24, T62, ordered39_out_ga(T24, T62)) → ss1_out_ga(T14, .(T24, T62))
PERM38_IN_GA(T69, .(T72, T78)) → U4_GA(T69, T72, T78, app18_in_aaag(T76, T72, T77, T69))
U4_GA(T69, T72, T78, app18_out_aaag(T76, T72, T77, T69)) → U6_GA(T69, T72, T78, app28_in_gga(T76, T77, T83))
U6_GA(T69, T72, T78, app28_out_gga(T76, T77, T83)) → PERM38_IN_GA(T83, T78)
app18_in_aaag([], T31, X46, .(T31, X46)) → app18_out_aaag([], T31, X46, .(T31, X46))
app18_in_aaag(.(X66, X67), T38, X68, .(X66, T37)) → U1_aaag(X66, X67, T38, X68, T37, app18_in_aaag(X67, T38, X68, T37))
app28_in_gga([], T50, T50) → app28_out_gga([], T50, T50)
app28_in_gga(.(T57, T58), T59, .(T57, X101)) → U2_gga(T57, T58, T59, X101, app28_in_gga(T58, T59, X101))
U1_aaag(X66, X67, T38, X68, T37, app18_out_aaag(X67, T38, X68, T37)) → app18_out_aaag(.(X66, X67), T38, X68, .(X66, T37))
U2_gga(T57, T58, T59, X101, app28_out_gga(T58, T59, X101)) → app28_out_gga(.(T57, T58), T59, .(T57, X101))
PERM38_IN_GA(T69) → U4_GA(app18_in_aaag(T69))
U4_GA(app18_out_aaag(T76, T72, T77)) → U6_GA(app28_in_gga(T76, T77))
U6_GA(app28_out_gga(T83)) → PERM38_IN_GA(T83)
app18_in_aaag(.(T31, X46)) → app18_out_aaag([], T31, X46)
app18_in_aaag(.(X66, T37)) → U1_aaag(X66, app18_in_aaag(T37))
app28_in_gga([], T50) → app28_out_gga(T50)
app28_in_gga(.(T57, T58), T59) → U2_gga(T57, app28_in_gga(T58, T59))
U1_aaag(X66, app18_out_aaag(X67, T38, X68)) → app18_out_aaag(.(X66, X67), T38, X68)
U2_gga(T57, app28_out_gga(X101)) → app28_out_gga(.(T57, X101))
app18_in_aaag(x0)
app28_in_gga(x0, x1)
U1_aaag(x0, x1)
U2_gga(x0, x1)
PERM38_IN_GA(T69) → U4_GA(app18_in_aaag(T69))
U4_GA(app18_out_aaag(T76, T72, T77)) → U6_GA(app28_in_gga(T76, T77))
U6_GA(app28_out_gga(T83)) → PERM38_IN_GA(T83)
app18_in_aaag(.(T31, X46)) → app18_out_aaag([], T31, X46)
app28_in_gga([], T50) → app28_out_gga(T50)
POL(.(x1, x2)) = 5 + x1 + x2
POL(PERM38_IN_GA(x1)) = 1 + x1
POL(U1_aaag(x1, x2)) = 5 + x1 + x2
POL(U2_gga(x1, x2)) = 5 + x1 + x2
POL(U4_GA(x1)) = x1
POL(U6_GA(x1)) = x1
POL([]) = 0
POL(app18_in_aaag(x1)) = x1
POL(app18_out_aaag(x1, x2, x3)) = 4 + x1 + x2 + x3
POL(app28_in_gga(x1, x2)) = 3 + x1 + x2
POL(app28_out_gga(x1)) = 2 + x1
app18_in_aaag(.(X66, T37)) → U1_aaag(X66, app18_in_aaag(T37))
app28_in_gga(.(T57, T58), T59) → U2_gga(T57, app28_in_gga(T58, T59))
U1_aaag(X66, app18_out_aaag(X67, T38, X68)) → app18_out_aaag(.(X66, X67), T38, X68)
U2_gga(T57, app28_out_gga(X101)) → app28_out_gga(.(T57, X101))
app18_in_aaag(x0)
app28_in_gga(x0, x1)
U1_aaag(x0, x1)
U2_gga(x0, x1)
ss1_in_ga([], []) → ss1_out_ga([], [])
ss1_in_ga(T14, .(T17, T18)) → U12_ga(T14, T17, T18, app18_in_aaag(X23, T17, X24, T14))
app18_in_aaag([], T31, X46, .(T31, X46)) → app18_out_aaag([], T31, X46, .(T31, X46))
app18_in_aaag(.(X66, X67), T38, X68, .(X66, T37)) → U1_aaag(X66, X67, T38, X68, T37, app18_in_aaag(X67, T38, X68, T37))
U1_aaag(X66, X67, T38, X68, T37, app18_out_aaag(X67, T38, X68, T37)) → app18_out_aaag(.(X66, X67), T38, X68, .(X66, T37))
U12_ga(T14, T17, T18, app18_out_aaag(X23, T17, X24, T14)) → ss1_out_ga(T14, .(T17, T18))
ss1_in_ga(T14, .(T24, T23)) → U13_ga(T14, T24, T23, app18_in_aaag(T21, T24, T22, T14))
U13_ga(T14, T24, T23, app18_out_aaag(T21, T24, T22, T14)) → U14_ga(T14, T24, T23, app28_in_gga(T21, T22, X25))
app28_in_gga([], T50, T50) → app28_out_gga([], T50, T50)
app28_in_gga(.(T57, T58), T59, .(T57, X101)) → U2_gga(T57, T58, T59, X101, app28_in_gga(T58, T59, X101))
U2_gga(T57, T58, T59, X101, app28_out_gga(T58, T59, X101)) → app28_out_gga(.(T57, T58), T59, .(T57, X101))
U14_ga(T14, T24, T23, app28_out_gga(T21, T22, X25)) → ss1_out_ga(T14, .(T24, T23))
U13_ga(T14, T24, T23, app18_out_aaag(T21, T24, T22, T14)) → U15_ga(T14, T24, T23, app28_in_gga(T21, T22, T43))
U15_ga(T14, T24, T23, app28_out_gga(T21, T22, T43)) → U16_ga(T14, T24, T23, perm38_in_ga(T43, T23))
perm38_in_ga([], []) → perm38_out_ga([], [])
perm38_in_ga(T69, .(T72, T73)) → U3_ga(T69, T72, T73, app18_in_aaag(X120, T72, X121, T69))
U3_ga(T69, T72, T73, app18_out_aaag(X120, T72, X121, T69)) → perm38_out_ga(T69, .(T72, T73))
perm38_in_ga(T69, .(T72, T78)) → U4_ga(T69, T72, T78, app18_in_aaag(T76, T72, T77, T69))
U4_ga(T69, T72, T78, app18_out_aaag(T76, T72, T77, T69)) → U5_ga(T69, T72, T78, app28_in_gga(T76, T77, X122))
U5_ga(T69, T72, T78, app28_out_gga(T76, T77, X122)) → perm38_out_ga(T69, .(T72, T78))
U4_ga(T69, T72, T78, app18_out_aaag(T76, T72, T77, T69)) → U6_ga(T69, T72, T78, app28_in_gga(T76, T77, T83))
U6_ga(T69, T72, T78, app28_out_gga(T76, T77, T83)) → U7_ga(T69, T72, T78, perm38_in_ga(T83, T78))
U7_ga(T69, T72, T78, perm38_out_ga(T83, T78)) → perm38_out_ga(T69, .(T72, T78))
U16_ga(T14, T24, T23, perm38_out_ga(T43, T23)) → ss1_out_ga(T14, .(T24, T23))
ss1_in_ga(T14, .(T24, T62)) → U17_ga(T14, T24, T62, app18_in_aaag(T21, T24, T22, T14))
U17_ga(T14, T24, T62, app18_out_aaag(T21, T24, T22, T14)) → U18_ga(T14, T24, T62, app28_in_gga(T21, T22, T43))
U18_ga(T14, T24, T62, app28_out_gga(T21, T22, T43)) → U19_ga(T14, T24, T62, perm38_in_ga(T43, T62))
U19_ga(T14, T24, T62, perm38_out_ga(T43, T62)) → U20_ga(T14, T24, T62, ordered39_in_ga(T24, T62))
ordered39_in_ga(T92, []) → ordered39_out_ga(T92, [])
ordered39_in_ga(T99, .(T100, T101)) → U8_ga(T99, T100, T101, less61_in_ga(T99, T100))
less61_in_ga(0, T110) → less61_out_ga(0, T110)
less61_in_ga(s(T115), T116) → U11_ga(T115, T116, less69_in_ga(T115, T116))
less69_in_ga(0, s(T123)) → less69_out_ga(0, s(T123))
less69_in_ga(s(T128), s(T129)) → U10_ga(T128, T129, less69_in_ga(T128, T129))
U10_ga(T128, T129, less69_out_ga(T128, T129)) → less69_out_ga(s(T128), s(T129))
U11_ga(T115, T116, less69_out_ga(T115, T116)) → less61_out_ga(s(T115), T116)
U8_ga(T99, T100, T101, less61_out_ga(T99, T100)) → ordered39_out_ga(T99, .(T100, T101))
U8_ga(T99, T100, T101, less61_out_ga(T99, T100)) → U9_ga(T99, T100, T101, ordered39_in_aa(T100, T101))
ordered39_in_aa(T92, []) → ordered39_out_aa(T92, [])
ordered39_in_aa(T99, .(T100, T101)) → U8_aa(T99, T100, T101, less61_in_aa(T99, T100))
less61_in_aa(0, T110) → less61_out_aa(0, T110)
less61_in_aa(s(T115), T116) → U11_aa(T115, T116, less69_in_aa(T115, T116))
less69_in_aa(0, s(T123)) → less69_out_aa(0, s(T123))
less69_in_aa(s(T128), s(T129)) → U10_aa(T128, T129, less69_in_aa(T128, T129))
U10_aa(T128, T129, less69_out_aa(T128, T129)) → less69_out_aa(s(T128), s(T129))
U11_aa(T115, T116, less69_out_aa(T115, T116)) → less61_out_aa(s(T115), T116)
U8_aa(T99, T100, T101, less61_out_aa(T99, T100)) → ordered39_out_aa(T99, .(T100, T101))
U8_aa(T99, T100, T101, less61_out_aa(T99, T100)) → U9_aa(T99, T100, T101, ordered39_in_aa(T100, T101))
U9_aa(T99, T100, T101, ordered39_out_aa(T100, T101)) → ordered39_out_aa(T99, .(T100, T101))
U9_ga(T99, T100, T101, ordered39_out_aa(T100, T101)) → ordered39_out_ga(T99, .(T100, T101))
U20_ga(T14, T24, T62, ordered39_out_ga(T24, T62)) → ss1_out_ga(T14, .(T24, T62))
Infinitary Constructor Rewriting Termination of PiTRS implies Termination of Prolog
ss1_in_ga([], []) → ss1_out_ga([], [])
ss1_in_ga(T14, .(T17, T18)) → U12_ga(T14, T17, T18, app18_in_aaag(X23, T17, X24, T14))
app18_in_aaag([], T31, X46, .(T31, X46)) → app18_out_aaag([], T31, X46, .(T31, X46))
app18_in_aaag(.(X66, X67), T38, X68, .(X66, T37)) → U1_aaag(X66, X67, T38, X68, T37, app18_in_aaag(X67, T38, X68, T37))
U1_aaag(X66, X67, T38, X68, T37, app18_out_aaag(X67, T38, X68, T37)) → app18_out_aaag(.(X66, X67), T38, X68, .(X66, T37))
U12_ga(T14, T17, T18, app18_out_aaag(X23, T17, X24, T14)) → ss1_out_ga(T14, .(T17, T18))
ss1_in_ga(T14, .(T24, T23)) → U13_ga(T14, T24, T23, app18_in_aaag(T21, T24, T22, T14))
U13_ga(T14, T24, T23, app18_out_aaag(T21, T24, T22, T14)) → U14_ga(T14, T24, T23, app28_in_gga(T21, T22, X25))
app28_in_gga([], T50, T50) → app28_out_gga([], T50, T50)
app28_in_gga(.(T57, T58), T59, .(T57, X101)) → U2_gga(T57, T58, T59, X101, app28_in_gga(T58, T59, X101))
U2_gga(T57, T58, T59, X101, app28_out_gga(T58, T59, X101)) → app28_out_gga(.(T57, T58), T59, .(T57, X101))
U14_ga(T14, T24, T23, app28_out_gga(T21, T22, X25)) → ss1_out_ga(T14, .(T24, T23))
U13_ga(T14, T24, T23, app18_out_aaag(T21, T24, T22, T14)) → U15_ga(T14, T24, T23, app28_in_gga(T21, T22, T43))
U15_ga(T14, T24, T23, app28_out_gga(T21, T22, T43)) → U16_ga(T14, T24, T23, perm38_in_ga(T43, T23))
perm38_in_ga([], []) → perm38_out_ga([], [])
perm38_in_ga(T69, .(T72, T73)) → U3_ga(T69, T72, T73, app18_in_aaag(X120, T72, X121, T69))
U3_ga(T69, T72, T73, app18_out_aaag(X120, T72, X121, T69)) → perm38_out_ga(T69, .(T72, T73))
perm38_in_ga(T69, .(T72, T78)) → U4_ga(T69, T72, T78, app18_in_aaag(T76, T72, T77, T69))
U4_ga(T69, T72, T78, app18_out_aaag(T76, T72, T77, T69)) → U5_ga(T69, T72, T78, app28_in_gga(T76, T77, X122))
U5_ga(T69, T72, T78, app28_out_gga(T76, T77, X122)) → perm38_out_ga(T69, .(T72, T78))
U4_ga(T69, T72, T78, app18_out_aaag(T76, T72, T77, T69)) → U6_ga(T69, T72, T78, app28_in_gga(T76, T77, T83))
U6_ga(T69, T72, T78, app28_out_gga(T76, T77, T83)) → U7_ga(T69, T72, T78, perm38_in_ga(T83, T78))
U7_ga(T69, T72, T78, perm38_out_ga(T83, T78)) → perm38_out_ga(T69, .(T72, T78))
U16_ga(T14, T24, T23, perm38_out_ga(T43, T23)) → ss1_out_ga(T14, .(T24, T23))
ss1_in_ga(T14, .(T24, T62)) → U17_ga(T14, T24, T62, app18_in_aaag(T21, T24, T22, T14))
U17_ga(T14, T24, T62, app18_out_aaag(T21, T24, T22, T14)) → U18_ga(T14, T24, T62, app28_in_gga(T21, T22, T43))
U18_ga(T14, T24, T62, app28_out_gga(T21, T22, T43)) → U19_ga(T14, T24, T62, perm38_in_ga(T43, T62))
U19_ga(T14, T24, T62, perm38_out_ga(T43, T62)) → U20_ga(T14, T24, T62, ordered39_in_ga(T24, T62))
ordered39_in_ga(T92, []) → ordered39_out_ga(T92, [])
ordered39_in_ga(T99, .(T100, T101)) → U8_ga(T99, T100, T101, less61_in_ga(T99, T100))
less61_in_ga(0, T110) → less61_out_ga(0, T110)
less61_in_ga(s(T115), T116) → U11_ga(T115, T116, less69_in_ga(T115, T116))
less69_in_ga(0, s(T123)) → less69_out_ga(0, s(T123))
less69_in_ga(s(T128), s(T129)) → U10_ga(T128, T129, less69_in_ga(T128, T129))
U10_ga(T128, T129, less69_out_ga(T128, T129)) → less69_out_ga(s(T128), s(T129))
U11_ga(T115, T116, less69_out_ga(T115, T116)) → less61_out_ga(s(T115), T116)
U8_ga(T99, T100, T101, less61_out_ga(T99, T100)) → ordered39_out_ga(T99, .(T100, T101))
U8_ga(T99, T100, T101, less61_out_ga(T99, T100)) → U9_ga(T99, T100, T101, ordered39_in_aa(T100, T101))
ordered39_in_aa(T92, []) → ordered39_out_aa(T92, [])
ordered39_in_aa(T99, .(T100, T101)) → U8_aa(T99, T100, T101, less61_in_aa(T99, T100))
less61_in_aa(0, T110) → less61_out_aa(0, T110)
less61_in_aa(s(T115), T116) → U11_aa(T115, T116, less69_in_aa(T115, T116))
less69_in_aa(0, s(T123)) → less69_out_aa(0, s(T123))
less69_in_aa(s(T128), s(T129)) → U10_aa(T128, T129, less69_in_aa(T128, T129))
U10_aa(T128, T129, less69_out_aa(T128, T129)) → less69_out_aa(s(T128), s(T129))
U11_aa(T115, T116, less69_out_aa(T115, T116)) → less61_out_aa(s(T115), T116)
U8_aa(T99, T100, T101, less61_out_aa(T99, T100)) → ordered39_out_aa(T99, .(T100, T101))
U8_aa(T99, T100, T101, less61_out_aa(T99, T100)) → U9_aa(T99, T100, T101, ordered39_in_aa(T100, T101))
U9_aa(T99, T100, T101, ordered39_out_aa(T100, T101)) → ordered39_out_aa(T99, .(T100, T101))
U9_ga(T99, T100, T101, ordered39_out_aa(T100, T101)) → ordered39_out_ga(T99, .(T100, T101))
U20_ga(T14, T24, T62, ordered39_out_ga(T24, T62)) → ss1_out_ga(T14, .(T24, T62))
SS1_IN_GA(T14, .(T17, T18)) → U12_GA(T14, T17, T18, app18_in_aaag(X23, T17, X24, T14))
SS1_IN_GA(T14, .(T17, T18)) → APP18_IN_AAAG(X23, T17, X24, T14)
APP18_IN_AAAG(.(X66, X67), T38, X68, .(X66, T37)) → U1_AAAG(X66, X67, T38, X68, T37, app18_in_aaag(X67, T38, X68, T37))
APP18_IN_AAAG(.(X66, X67), T38, X68, .(X66, T37)) → APP18_IN_AAAG(X67, T38, X68, T37)
SS1_IN_GA(T14, .(T24, T23)) → U13_GA(T14, T24, T23, app18_in_aaag(T21, T24, T22, T14))
U13_GA(T14, T24, T23, app18_out_aaag(T21, T24, T22, T14)) → U14_GA(T14, T24, T23, app28_in_gga(T21, T22, X25))
U13_GA(T14, T24, T23, app18_out_aaag(T21, T24, T22, T14)) → APP28_IN_GGA(T21, T22, X25)
APP28_IN_GGA(.(T57, T58), T59, .(T57, X101)) → U2_GGA(T57, T58, T59, X101, app28_in_gga(T58, T59, X101))
APP28_IN_GGA(.(T57, T58), T59, .(T57, X101)) → APP28_IN_GGA(T58, T59, X101)
U13_GA(T14, T24, T23, app18_out_aaag(T21, T24, T22, T14)) → U15_GA(T14, T24, T23, app28_in_gga(T21, T22, T43))
U15_GA(T14, T24, T23, app28_out_gga(T21, T22, T43)) → U16_GA(T14, T24, T23, perm38_in_ga(T43, T23))
U15_GA(T14, T24, T23, app28_out_gga(T21, T22, T43)) → PERM38_IN_GA(T43, T23)
PERM38_IN_GA(T69, .(T72, T73)) → U3_GA(T69, T72, T73, app18_in_aaag(X120, T72, X121, T69))
PERM38_IN_GA(T69, .(T72, T73)) → APP18_IN_AAAG(X120, T72, X121, T69)
PERM38_IN_GA(T69, .(T72, T78)) → U4_GA(T69, T72, T78, app18_in_aaag(T76, T72, T77, T69))
U4_GA(T69, T72, T78, app18_out_aaag(T76, T72, T77, T69)) → U5_GA(T69, T72, T78, app28_in_gga(T76, T77, X122))
U4_GA(T69, T72, T78, app18_out_aaag(T76, T72, T77, T69)) → APP28_IN_GGA(T76, T77, X122)
U4_GA(T69, T72, T78, app18_out_aaag(T76, T72, T77, T69)) → U6_GA(T69, T72, T78, app28_in_gga(T76, T77, T83))
U6_GA(T69, T72, T78, app28_out_gga(T76, T77, T83)) → U7_GA(T69, T72, T78, perm38_in_ga(T83, T78))
U6_GA(T69, T72, T78, app28_out_gga(T76, T77, T83)) → PERM38_IN_GA(T83, T78)
SS1_IN_GA(T14, .(T24, T62)) → U17_GA(T14, T24, T62, app18_in_aaag(T21, T24, T22, T14))
U17_GA(T14, T24, T62, app18_out_aaag(T21, T24, T22, T14)) → U18_GA(T14, T24, T62, app28_in_gga(T21, T22, T43))
U17_GA(T14, T24, T62, app18_out_aaag(T21, T24, T22, T14)) → APP28_IN_GGA(T21, T22, T43)
U18_GA(T14, T24, T62, app28_out_gga(T21, T22, T43)) → U19_GA(T14, T24, T62, perm38_in_ga(T43, T62))
U18_GA(T14, T24, T62, app28_out_gga(T21, T22, T43)) → PERM38_IN_GA(T43, T62)
U19_GA(T14, T24, T62, perm38_out_ga(T43, T62)) → U20_GA(T14, T24, T62, ordered39_in_ga(T24, T62))
U19_GA(T14, T24, T62, perm38_out_ga(T43, T62)) → ORDERED39_IN_GA(T24, T62)
ORDERED39_IN_GA(T99, .(T100, T101)) → U8_GA(T99, T100, T101, less61_in_ga(T99, T100))
ORDERED39_IN_GA(T99, .(T100, T101)) → LESS61_IN_GA(T99, T100)
LESS61_IN_GA(s(T115), T116) → U11_GA(T115, T116, less69_in_ga(T115, T116))
LESS61_IN_GA(s(T115), T116) → LESS69_IN_GA(T115, T116)
LESS69_IN_GA(s(T128), s(T129)) → U10_GA(T128, T129, less69_in_ga(T128, T129))
LESS69_IN_GA(s(T128), s(T129)) → LESS69_IN_GA(T128, T129)
U8_GA(T99, T100, T101, less61_out_ga(T99, T100)) → U9_GA(T99, T100, T101, ordered39_in_aa(T100, T101))
U8_GA(T99, T100, T101, less61_out_ga(T99, T100)) → ORDERED39_IN_AA(T100, T101)
ORDERED39_IN_AA(T99, .(T100, T101)) → U8_AA(T99, T100, T101, less61_in_aa(T99, T100))
ORDERED39_IN_AA(T99, .(T100, T101)) → LESS61_IN_AA(T99, T100)
LESS61_IN_AA(s(T115), T116) → U11_AA(T115, T116, less69_in_aa(T115, T116))
LESS61_IN_AA(s(T115), T116) → LESS69_IN_AA(T115, T116)
LESS69_IN_AA(s(T128), s(T129)) → U10_AA(T128, T129, less69_in_aa(T128, T129))
LESS69_IN_AA(s(T128), s(T129)) → LESS69_IN_AA(T128, T129)
U8_AA(T99, T100, T101, less61_out_aa(T99, T100)) → U9_AA(T99, T100, T101, ordered39_in_aa(T100, T101))
U8_AA(T99, T100, T101, less61_out_aa(T99, T100)) → ORDERED39_IN_AA(T100, T101)
ss1_in_ga([], []) → ss1_out_ga([], [])
ss1_in_ga(T14, .(T17, T18)) → U12_ga(T14, T17, T18, app18_in_aaag(X23, T17, X24, T14))
app18_in_aaag([], T31, X46, .(T31, X46)) → app18_out_aaag([], T31, X46, .(T31, X46))
app18_in_aaag(.(X66, X67), T38, X68, .(X66, T37)) → U1_aaag(X66, X67, T38, X68, T37, app18_in_aaag(X67, T38, X68, T37))
U1_aaag(X66, X67, T38, X68, T37, app18_out_aaag(X67, T38, X68, T37)) → app18_out_aaag(.(X66, X67), T38, X68, .(X66, T37))
U12_ga(T14, T17, T18, app18_out_aaag(X23, T17, X24, T14)) → ss1_out_ga(T14, .(T17, T18))
ss1_in_ga(T14, .(T24, T23)) → U13_ga(T14, T24, T23, app18_in_aaag(T21, T24, T22, T14))
U13_ga(T14, T24, T23, app18_out_aaag(T21, T24, T22, T14)) → U14_ga(T14, T24, T23, app28_in_gga(T21, T22, X25))
app28_in_gga([], T50, T50) → app28_out_gga([], T50, T50)
app28_in_gga(.(T57, T58), T59, .(T57, X101)) → U2_gga(T57, T58, T59, X101, app28_in_gga(T58, T59, X101))
U2_gga(T57, T58, T59, X101, app28_out_gga(T58, T59, X101)) → app28_out_gga(.(T57, T58), T59, .(T57, X101))
U14_ga(T14, T24, T23, app28_out_gga(T21, T22, X25)) → ss1_out_ga(T14, .(T24, T23))
U13_ga(T14, T24, T23, app18_out_aaag(T21, T24, T22, T14)) → U15_ga(T14, T24, T23, app28_in_gga(T21, T22, T43))
U15_ga(T14, T24, T23, app28_out_gga(T21, T22, T43)) → U16_ga(T14, T24, T23, perm38_in_ga(T43, T23))
perm38_in_ga([], []) → perm38_out_ga([], [])
perm38_in_ga(T69, .(T72, T73)) → U3_ga(T69, T72, T73, app18_in_aaag(X120, T72, X121, T69))
U3_ga(T69, T72, T73, app18_out_aaag(X120, T72, X121, T69)) → perm38_out_ga(T69, .(T72, T73))
perm38_in_ga(T69, .(T72, T78)) → U4_ga(T69, T72, T78, app18_in_aaag(T76, T72, T77, T69))
U4_ga(T69, T72, T78, app18_out_aaag(T76, T72, T77, T69)) → U5_ga(T69, T72, T78, app28_in_gga(T76, T77, X122))
U5_ga(T69, T72, T78, app28_out_gga(T76, T77, X122)) → perm38_out_ga(T69, .(T72, T78))
U4_ga(T69, T72, T78, app18_out_aaag(T76, T72, T77, T69)) → U6_ga(T69, T72, T78, app28_in_gga(T76, T77, T83))
U6_ga(T69, T72, T78, app28_out_gga(T76, T77, T83)) → U7_ga(T69, T72, T78, perm38_in_ga(T83, T78))
U7_ga(T69, T72, T78, perm38_out_ga(T83, T78)) → perm38_out_ga(T69, .(T72, T78))
U16_ga(T14, T24, T23, perm38_out_ga(T43, T23)) → ss1_out_ga(T14, .(T24, T23))
ss1_in_ga(T14, .(T24, T62)) → U17_ga(T14, T24, T62, app18_in_aaag(T21, T24, T22, T14))
U17_ga(T14, T24, T62, app18_out_aaag(T21, T24, T22, T14)) → U18_ga(T14, T24, T62, app28_in_gga(T21, T22, T43))
U18_ga(T14, T24, T62, app28_out_gga(T21, T22, T43)) → U19_ga(T14, T24, T62, perm38_in_ga(T43, T62))
U19_ga(T14, T24, T62, perm38_out_ga(T43, T62)) → U20_ga(T14, T24, T62, ordered39_in_ga(T24, T62))
ordered39_in_ga(T92, []) → ordered39_out_ga(T92, [])
ordered39_in_ga(T99, .(T100, T101)) → U8_ga(T99, T100, T101, less61_in_ga(T99, T100))
less61_in_ga(0, T110) → less61_out_ga(0, T110)
less61_in_ga(s(T115), T116) → U11_ga(T115, T116, less69_in_ga(T115, T116))
less69_in_ga(0, s(T123)) → less69_out_ga(0, s(T123))
less69_in_ga(s(T128), s(T129)) → U10_ga(T128, T129, less69_in_ga(T128, T129))
U10_ga(T128, T129, less69_out_ga(T128, T129)) → less69_out_ga(s(T128), s(T129))
U11_ga(T115, T116, less69_out_ga(T115, T116)) → less61_out_ga(s(T115), T116)
U8_ga(T99, T100, T101, less61_out_ga(T99, T100)) → ordered39_out_ga(T99, .(T100, T101))
U8_ga(T99, T100, T101, less61_out_ga(T99, T100)) → U9_ga(T99, T100, T101, ordered39_in_aa(T100, T101))
ordered39_in_aa(T92, []) → ordered39_out_aa(T92, [])
ordered39_in_aa(T99, .(T100, T101)) → U8_aa(T99, T100, T101, less61_in_aa(T99, T100))
less61_in_aa(0, T110) → less61_out_aa(0, T110)
less61_in_aa(s(T115), T116) → U11_aa(T115, T116, less69_in_aa(T115, T116))
less69_in_aa(0, s(T123)) → less69_out_aa(0, s(T123))
less69_in_aa(s(T128), s(T129)) → U10_aa(T128, T129, less69_in_aa(T128, T129))
U10_aa(T128, T129, less69_out_aa(T128, T129)) → less69_out_aa(s(T128), s(T129))
U11_aa(T115, T116, less69_out_aa(T115, T116)) → less61_out_aa(s(T115), T116)
U8_aa(T99, T100, T101, less61_out_aa(T99, T100)) → ordered39_out_aa(T99, .(T100, T101))
U8_aa(T99, T100, T101, less61_out_aa(T99, T100)) → U9_aa(T99, T100, T101, ordered39_in_aa(T100, T101))
U9_aa(T99, T100, T101, ordered39_out_aa(T100, T101)) → ordered39_out_aa(T99, .(T100, T101))
U9_ga(T99, T100, T101, ordered39_out_aa(T100, T101)) → ordered39_out_ga(T99, .(T100, T101))
U20_ga(T14, T24, T62, ordered39_out_ga(T24, T62)) → ss1_out_ga(T14, .(T24, T62))
SS1_IN_GA(T14, .(T17, T18)) → U12_GA(T14, T17, T18, app18_in_aaag(X23, T17, X24, T14))
SS1_IN_GA(T14, .(T17, T18)) → APP18_IN_AAAG(X23, T17, X24, T14)
APP18_IN_AAAG(.(X66, X67), T38, X68, .(X66, T37)) → U1_AAAG(X66, X67, T38, X68, T37, app18_in_aaag(X67, T38, X68, T37))
APP18_IN_AAAG(.(X66, X67), T38, X68, .(X66, T37)) → APP18_IN_AAAG(X67, T38, X68, T37)
SS1_IN_GA(T14, .(T24, T23)) → U13_GA(T14, T24, T23, app18_in_aaag(T21, T24, T22, T14))
U13_GA(T14, T24, T23, app18_out_aaag(T21, T24, T22, T14)) → U14_GA(T14, T24, T23, app28_in_gga(T21, T22, X25))
U13_GA(T14, T24, T23, app18_out_aaag(T21, T24, T22, T14)) → APP28_IN_GGA(T21, T22, X25)
APP28_IN_GGA(.(T57, T58), T59, .(T57, X101)) → U2_GGA(T57, T58, T59, X101, app28_in_gga(T58, T59, X101))
APP28_IN_GGA(.(T57, T58), T59, .(T57, X101)) → APP28_IN_GGA(T58, T59, X101)
U13_GA(T14, T24, T23, app18_out_aaag(T21, T24, T22, T14)) → U15_GA(T14, T24, T23, app28_in_gga(T21, T22, T43))
U15_GA(T14, T24, T23, app28_out_gga(T21, T22, T43)) → U16_GA(T14, T24, T23, perm38_in_ga(T43, T23))
U15_GA(T14, T24, T23, app28_out_gga(T21, T22, T43)) → PERM38_IN_GA(T43, T23)
PERM38_IN_GA(T69, .(T72, T73)) → U3_GA(T69, T72, T73, app18_in_aaag(X120, T72, X121, T69))
PERM38_IN_GA(T69, .(T72, T73)) → APP18_IN_AAAG(X120, T72, X121, T69)
PERM38_IN_GA(T69, .(T72, T78)) → U4_GA(T69, T72, T78, app18_in_aaag(T76, T72, T77, T69))
U4_GA(T69, T72, T78, app18_out_aaag(T76, T72, T77, T69)) → U5_GA(T69, T72, T78, app28_in_gga(T76, T77, X122))
U4_GA(T69, T72, T78, app18_out_aaag(T76, T72, T77, T69)) → APP28_IN_GGA(T76, T77, X122)
U4_GA(T69, T72, T78, app18_out_aaag(T76, T72, T77, T69)) → U6_GA(T69, T72, T78, app28_in_gga(T76, T77, T83))
U6_GA(T69, T72, T78, app28_out_gga(T76, T77, T83)) → U7_GA(T69, T72, T78, perm38_in_ga(T83, T78))
U6_GA(T69, T72, T78, app28_out_gga(T76, T77, T83)) → PERM38_IN_GA(T83, T78)
SS1_IN_GA(T14, .(T24, T62)) → U17_GA(T14, T24, T62, app18_in_aaag(T21, T24, T22, T14))
U17_GA(T14, T24, T62, app18_out_aaag(T21, T24, T22, T14)) → U18_GA(T14, T24, T62, app28_in_gga(T21, T22, T43))
U17_GA(T14, T24, T62, app18_out_aaag(T21, T24, T22, T14)) → APP28_IN_GGA(T21, T22, T43)
U18_GA(T14, T24, T62, app28_out_gga(T21, T22, T43)) → U19_GA(T14, T24, T62, perm38_in_ga(T43, T62))
U18_GA(T14, T24, T62, app28_out_gga(T21, T22, T43)) → PERM38_IN_GA(T43, T62)
U19_GA(T14, T24, T62, perm38_out_ga(T43, T62)) → U20_GA(T14, T24, T62, ordered39_in_ga(T24, T62))
U19_GA(T14, T24, T62, perm38_out_ga(T43, T62)) → ORDERED39_IN_GA(T24, T62)
ORDERED39_IN_GA(T99, .(T100, T101)) → U8_GA(T99, T100, T101, less61_in_ga(T99, T100))
ORDERED39_IN_GA(T99, .(T100, T101)) → LESS61_IN_GA(T99, T100)
LESS61_IN_GA(s(T115), T116) → U11_GA(T115, T116, less69_in_ga(T115, T116))
LESS61_IN_GA(s(T115), T116) → LESS69_IN_GA(T115, T116)
LESS69_IN_GA(s(T128), s(T129)) → U10_GA(T128, T129, less69_in_ga(T128, T129))
LESS69_IN_GA(s(T128), s(T129)) → LESS69_IN_GA(T128, T129)
U8_GA(T99, T100, T101, less61_out_ga(T99, T100)) → U9_GA(T99, T100, T101, ordered39_in_aa(T100, T101))
U8_GA(T99, T100, T101, less61_out_ga(T99, T100)) → ORDERED39_IN_AA(T100, T101)
ORDERED39_IN_AA(T99, .(T100, T101)) → U8_AA(T99, T100, T101, less61_in_aa(T99, T100))
ORDERED39_IN_AA(T99, .(T100, T101)) → LESS61_IN_AA(T99, T100)
LESS61_IN_AA(s(T115), T116) → U11_AA(T115, T116, less69_in_aa(T115, T116))
LESS61_IN_AA(s(T115), T116) → LESS69_IN_AA(T115, T116)
LESS69_IN_AA(s(T128), s(T129)) → U10_AA(T128, T129, less69_in_aa(T128, T129))
LESS69_IN_AA(s(T128), s(T129)) → LESS69_IN_AA(T128, T129)
U8_AA(T99, T100, T101, less61_out_aa(T99, T100)) → U9_AA(T99, T100, T101, ordered39_in_aa(T100, T101))
U8_AA(T99, T100, T101, less61_out_aa(T99, T100)) → ORDERED39_IN_AA(T100, T101)
ss1_in_ga([], []) → ss1_out_ga([], [])
ss1_in_ga(T14, .(T17, T18)) → U12_ga(T14, T17, T18, app18_in_aaag(X23, T17, X24, T14))
app18_in_aaag([], T31, X46, .(T31, X46)) → app18_out_aaag([], T31, X46, .(T31, X46))
app18_in_aaag(.(X66, X67), T38, X68, .(X66, T37)) → U1_aaag(X66, X67, T38, X68, T37, app18_in_aaag(X67, T38, X68, T37))
U1_aaag(X66, X67, T38, X68, T37, app18_out_aaag(X67, T38, X68, T37)) → app18_out_aaag(.(X66, X67), T38, X68, .(X66, T37))
U12_ga(T14, T17, T18, app18_out_aaag(X23, T17, X24, T14)) → ss1_out_ga(T14, .(T17, T18))
ss1_in_ga(T14, .(T24, T23)) → U13_ga(T14, T24, T23, app18_in_aaag(T21, T24, T22, T14))
U13_ga(T14, T24, T23, app18_out_aaag(T21, T24, T22, T14)) → U14_ga(T14, T24, T23, app28_in_gga(T21, T22, X25))
app28_in_gga([], T50, T50) → app28_out_gga([], T50, T50)
app28_in_gga(.(T57, T58), T59, .(T57, X101)) → U2_gga(T57, T58, T59, X101, app28_in_gga(T58, T59, X101))
U2_gga(T57, T58, T59, X101, app28_out_gga(T58, T59, X101)) → app28_out_gga(.(T57, T58), T59, .(T57, X101))
U14_ga(T14, T24, T23, app28_out_gga(T21, T22, X25)) → ss1_out_ga(T14, .(T24, T23))
U13_ga(T14, T24, T23, app18_out_aaag(T21, T24, T22, T14)) → U15_ga(T14, T24, T23, app28_in_gga(T21, T22, T43))
U15_ga(T14, T24, T23, app28_out_gga(T21, T22, T43)) → U16_ga(T14, T24, T23, perm38_in_ga(T43, T23))
perm38_in_ga([], []) → perm38_out_ga([], [])
perm38_in_ga(T69, .(T72, T73)) → U3_ga(T69, T72, T73, app18_in_aaag(X120, T72, X121, T69))
U3_ga(T69, T72, T73, app18_out_aaag(X120, T72, X121, T69)) → perm38_out_ga(T69, .(T72, T73))
perm38_in_ga(T69, .(T72, T78)) → U4_ga(T69, T72, T78, app18_in_aaag(T76, T72, T77, T69))
U4_ga(T69, T72, T78, app18_out_aaag(T76, T72, T77, T69)) → U5_ga(T69, T72, T78, app28_in_gga(T76, T77, X122))
U5_ga(T69, T72, T78, app28_out_gga(T76, T77, X122)) → perm38_out_ga(T69, .(T72, T78))
U4_ga(T69, T72, T78, app18_out_aaag(T76, T72, T77, T69)) → U6_ga(T69, T72, T78, app28_in_gga(T76, T77, T83))
U6_ga(T69, T72, T78, app28_out_gga(T76, T77, T83)) → U7_ga(T69, T72, T78, perm38_in_ga(T83, T78))
U7_ga(T69, T72, T78, perm38_out_ga(T83, T78)) → perm38_out_ga(T69, .(T72, T78))
U16_ga(T14, T24, T23, perm38_out_ga(T43, T23)) → ss1_out_ga(T14, .(T24, T23))
ss1_in_ga(T14, .(T24, T62)) → U17_ga(T14, T24, T62, app18_in_aaag(T21, T24, T22, T14))
U17_ga(T14, T24, T62, app18_out_aaag(T21, T24, T22, T14)) → U18_ga(T14, T24, T62, app28_in_gga(T21, T22, T43))
U18_ga(T14, T24, T62, app28_out_gga(T21, T22, T43)) → U19_ga(T14, T24, T62, perm38_in_ga(T43, T62))
U19_ga(T14, T24, T62, perm38_out_ga(T43, T62)) → U20_ga(T14, T24, T62, ordered39_in_ga(T24, T62))
ordered39_in_ga(T92, []) → ordered39_out_ga(T92, [])
ordered39_in_ga(T99, .(T100, T101)) → U8_ga(T99, T100, T101, less61_in_ga(T99, T100))
less61_in_ga(0, T110) → less61_out_ga(0, T110)
less61_in_ga(s(T115), T116) → U11_ga(T115, T116, less69_in_ga(T115, T116))
less69_in_ga(0, s(T123)) → less69_out_ga(0, s(T123))
less69_in_ga(s(T128), s(T129)) → U10_ga(T128, T129, less69_in_ga(T128, T129))
U10_ga(T128, T129, less69_out_ga(T128, T129)) → less69_out_ga(s(T128), s(T129))
U11_ga(T115, T116, less69_out_ga(T115, T116)) → less61_out_ga(s(T115), T116)
U8_ga(T99, T100, T101, less61_out_ga(T99, T100)) → ordered39_out_ga(T99, .(T100, T101))
U8_ga(T99, T100, T101, less61_out_ga(T99, T100)) → U9_ga(T99, T100, T101, ordered39_in_aa(T100, T101))
ordered39_in_aa(T92, []) → ordered39_out_aa(T92, [])
ordered39_in_aa(T99, .(T100, T101)) → U8_aa(T99, T100, T101, less61_in_aa(T99, T100))
less61_in_aa(0, T110) → less61_out_aa(0, T110)
less61_in_aa(s(T115), T116) → U11_aa(T115, T116, less69_in_aa(T115, T116))
less69_in_aa(0, s(T123)) → less69_out_aa(0, s(T123))
less69_in_aa(s(T128), s(T129)) → U10_aa(T128, T129, less69_in_aa(T128, T129))
U10_aa(T128, T129, less69_out_aa(T128, T129)) → less69_out_aa(s(T128), s(T129))
U11_aa(T115, T116, less69_out_aa(T115, T116)) → less61_out_aa(s(T115), T116)
U8_aa(T99, T100, T101, less61_out_aa(T99, T100)) → ordered39_out_aa(T99, .(T100, T101))
U8_aa(T99, T100, T101, less61_out_aa(T99, T100)) → U9_aa(T99, T100, T101, ordered39_in_aa(T100, T101))
U9_aa(T99, T100, T101, ordered39_out_aa(T100, T101)) → ordered39_out_aa(T99, .(T100, T101))
U9_ga(T99, T100, T101, ordered39_out_aa(T100, T101)) → ordered39_out_ga(T99, .(T100, T101))
U20_ga(T14, T24, T62, ordered39_out_ga(T24, T62)) → ss1_out_ga(T14, .(T24, T62))
LESS69_IN_AA(s(T128), s(T129)) → LESS69_IN_AA(T128, T129)
ss1_in_ga([], []) → ss1_out_ga([], [])
ss1_in_ga(T14, .(T17, T18)) → U12_ga(T14, T17, T18, app18_in_aaag(X23, T17, X24, T14))
app18_in_aaag([], T31, X46, .(T31, X46)) → app18_out_aaag([], T31, X46, .(T31, X46))
app18_in_aaag(.(X66, X67), T38, X68, .(X66, T37)) → U1_aaag(X66, X67, T38, X68, T37, app18_in_aaag(X67, T38, X68, T37))
U1_aaag(X66, X67, T38, X68, T37, app18_out_aaag(X67, T38, X68, T37)) → app18_out_aaag(.(X66, X67), T38, X68, .(X66, T37))
U12_ga(T14, T17, T18, app18_out_aaag(X23, T17, X24, T14)) → ss1_out_ga(T14, .(T17, T18))
ss1_in_ga(T14, .(T24, T23)) → U13_ga(T14, T24, T23, app18_in_aaag(T21, T24, T22, T14))
U13_ga(T14, T24, T23, app18_out_aaag(T21, T24, T22, T14)) → U14_ga(T14, T24, T23, app28_in_gga(T21, T22, X25))
app28_in_gga([], T50, T50) → app28_out_gga([], T50, T50)
app28_in_gga(.(T57, T58), T59, .(T57, X101)) → U2_gga(T57, T58, T59, X101, app28_in_gga(T58, T59, X101))
U2_gga(T57, T58, T59, X101, app28_out_gga(T58, T59, X101)) → app28_out_gga(.(T57, T58), T59, .(T57, X101))
U14_ga(T14, T24, T23, app28_out_gga(T21, T22, X25)) → ss1_out_ga(T14, .(T24, T23))
U13_ga(T14, T24, T23, app18_out_aaag(T21, T24, T22, T14)) → U15_ga(T14, T24, T23, app28_in_gga(T21, T22, T43))
U15_ga(T14, T24, T23, app28_out_gga(T21, T22, T43)) → U16_ga(T14, T24, T23, perm38_in_ga(T43, T23))
perm38_in_ga([], []) → perm38_out_ga([], [])
perm38_in_ga(T69, .(T72, T73)) → U3_ga(T69, T72, T73, app18_in_aaag(X120, T72, X121, T69))
U3_ga(T69, T72, T73, app18_out_aaag(X120, T72, X121, T69)) → perm38_out_ga(T69, .(T72, T73))
perm38_in_ga(T69, .(T72, T78)) → U4_ga(T69, T72, T78, app18_in_aaag(T76, T72, T77, T69))
U4_ga(T69, T72, T78, app18_out_aaag(T76, T72, T77, T69)) → U5_ga(T69, T72, T78, app28_in_gga(T76, T77, X122))
U5_ga(T69, T72, T78, app28_out_gga(T76, T77, X122)) → perm38_out_ga(T69, .(T72, T78))
U4_ga(T69, T72, T78, app18_out_aaag(T76, T72, T77, T69)) → U6_ga(T69, T72, T78, app28_in_gga(T76, T77, T83))
U6_ga(T69, T72, T78, app28_out_gga(T76, T77, T83)) → U7_ga(T69, T72, T78, perm38_in_ga(T83, T78))
U7_ga(T69, T72, T78, perm38_out_ga(T83, T78)) → perm38_out_ga(T69, .(T72, T78))
U16_ga(T14, T24, T23, perm38_out_ga(T43, T23)) → ss1_out_ga(T14, .(T24, T23))
ss1_in_ga(T14, .(T24, T62)) → U17_ga(T14, T24, T62, app18_in_aaag(T21, T24, T22, T14))
U17_ga(T14, T24, T62, app18_out_aaag(T21, T24, T22, T14)) → U18_ga(T14, T24, T62, app28_in_gga(T21, T22, T43))
U18_ga(T14, T24, T62, app28_out_gga(T21, T22, T43)) → U19_ga(T14, T24, T62, perm38_in_ga(T43, T62))
U19_ga(T14, T24, T62, perm38_out_ga(T43, T62)) → U20_ga(T14, T24, T62, ordered39_in_ga(T24, T62))
ordered39_in_ga(T92, []) → ordered39_out_ga(T92, [])
ordered39_in_ga(T99, .(T100, T101)) → U8_ga(T99, T100, T101, less61_in_ga(T99, T100))
less61_in_ga(0, T110) → less61_out_ga(0, T110)
less61_in_ga(s(T115), T116) → U11_ga(T115, T116, less69_in_ga(T115, T116))
less69_in_ga(0, s(T123)) → less69_out_ga(0, s(T123))
less69_in_ga(s(T128), s(T129)) → U10_ga(T128, T129, less69_in_ga(T128, T129))
U10_ga(T128, T129, less69_out_ga(T128, T129)) → less69_out_ga(s(T128), s(T129))
U11_ga(T115, T116, less69_out_ga(T115, T116)) → less61_out_ga(s(T115), T116)
U8_ga(T99, T100, T101, less61_out_ga(T99, T100)) → ordered39_out_ga(T99, .(T100, T101))
U8_ga(T99, T100, T101, less61_out_ga(T99, T100)) → U9_ga(T99, T100, T101, ordered39_in_aa(T100, T101))
ordered39_in_aa(T92, []) → ordered39_out_aa(T92, [])
ordered39_in_aa(T99, .(T100, T101)) → U8_aa(T99, T100, T101, less61_in_aa(T99, T100))
less61_in_aa(0, T110) → less61_out_aa(0, T110)
less61_in_aa(s(T115), T116) → U11_aa(T115, T116, less69_in_aa(T115, T116))
less69_in_aa(0, s(T123)) → less69_out_aa(0, s(T123))
less69_in_aa(s(T128), s(T129)) → U10_aa(T128, T129, less69_in_aa(T128, T129))
U10_aa(T128, T129, less69_out_aa(T128, T129)) → less69_out_aa(s(T128), s(T129))
U11_aa(T115, T116, less69_out_aa(T115, T116)) → less61_out_aa(s(T115), T116)
U8_aa(T99, T100, T101, less61_out_aa(T99, T100)) → ordered39_out_aa(T99, .(T100, T101))
U8_aa(T99, T100, T101, less61_out_aa(T99, T100)) → U9_aa(T99, T100, T101, ordered39_in_aa(T100, T101))
U9_aa(T99, T100, T101, ordered39_out_aa(T100, T101)) → ordered39_out_aa(T99, .(T100, T101))
U9_ga(T99, T100, T101, ordered39_out_aa(T100, T101)) → ordered39_out_ga(T99, .(T100, T101))
U20_ga(T14, T24, T62, ordered39_out_ga(T24, T62)) → ss1_out_ga(T14, .(T24, T62))
LESS69_IN_AA(s(T128), s(T129)) → LESS69_IN_AA(T128, T129)
LESS69_IN_AA → LESS69_IN_AA
U8_AA(T99, T100, T101, less61_out_aa(T99, T100)) → ORDERED39_IN_AA(T100, T101)
ORDERED39_IN_AA(T99, .(T100, T101)) → U8_AA(T99, T100, T101, less61_in_aa(T99, T100))
ss1_in_ga([], []) → ss1_out_ga([], [])
ss1_in_ga(T14, .(T17, T18)) → U12_ga(T14, T17, T18, app18_in_aaag(X23, T17, X24, T14))
app18_in_aaag([], T31, X46, .(T31, X46)) → app18_out_aaag([], T31, X46, .(T31, X46))
app18_in_aaag(.(X66, X67), T38, X68, .(X66, T37)) → U1_aaag(X66, X67, T38, X68, T37, app18_in_aaag(X67, T38, X68, T37))
U1_aaag(X66, X67, T38, X68, T37, app18_out_aaag(X67, T38, X68, T37)) → app18_out_aaag(.(X66, X67), T38, X68, .(X66, T37))
U12_ga(T14, T17, T18, app18_out_aaag(X23, T17, X24, T14)) → ss1_out_ga(T14, .(T17, T18))
ss1_in_ga(T14, .(T24, T23)) → U13_ga(T14, T24, T23, app18_in_aaag(T21, T24, T22, T14))
U13_ga(T14, T24, T23, app18_out_aaag(T21, T24, T22, T14)) → U14_ga(T14, T24, T23, app28_in_gga(T21, T22, X25))
app28_in_gga([], T50, T50) → app28_out_gga([], T50, T50)
app28_in_gga(.(T57, T58), T59, .(T57, X101)) → U2_gga(T57, T58, T59, X101, app28_in_gga(T58, T59, X101))
U2_gga(T57, T58, T59, X101, app28_out_gga(T58, T59, X101)) → app28_out_gga(.(T57, T58), T59, .(T57, X101))
U14_ga(T14, T24, T23, app28_out_gga(T21, T22, X25)) → ss1_out_ga(T14, .(T24, T23))
U13_ga(T14, T24, T23, app18_out_aaag(T21, T24, T22, T14)) → U15_ga(T14, T24, T23, app28_in_gga(T21, T22, T43))
U15_ga(T14, T24, T23, app28_out_gga(T21, T22, T43)) → U16_ga(T14, T24, T23, perm38_in_ga(T43, T23))
perm38_in_ga([], []) → perm38_out_ga([], [])
perm38_in_ga(T69, .(T72, T73)) → U3_ga(T69, T72, T73, app18_in_aaag(X120, T72, X121, T69))
U3_ga(T69, T72, T73, app18_out_aaag(X120, T72, X121, T69)) → perm38_out_ga(T69, .(T72, T73))
perm38_in_ga(T69, .(T72, T78)) → U4_ga(T69, T72, T78, app18_in_aaag(T76, T72, T77, T69))
U4_ga(T69, T72, T78, app18_out_aaag(T76, T72, T77, T69)) → U5_ga(T69, T72, T78, app28_in_gga(T76, T77, X122))
U5_ga(T69, T72, T78, app28_out_gga(T76, T77, X122)) → perm38_out_ga(T69, .(T72, T78))
U4_ga(T69, T72, T78, app18_out_aaag(T76, T72, T77, T69)) → U6_ga(T69, T72, T78, app28_in_gga(T76, T77, T83))
U6_ga(T69, T72, T78, app28_out_gga(T76, T77, T83)) → U7_ga(T69, T72, T78, perm38_in_ga(T83, T78))
U7_ga(T69, T72, T78, perm38_out_ga(T83, T78)) → perm38_out_ga(T69, .(T72, T78))
U16_ga(T14, T24, T23, perm38_out_ga(T43, T23)) → ss1_out_ga(T14, .(T24, T23))
ss1_in_ga(T14, .(T24, T62)) → U17_ga(T14, T24, T62, app18_in_aaag(T21, T24, T22, T14))
U17_ga(T14, T24, T62, app18_out_aaag(T21, T24, T22, T14)) → U18_ga(T14, T24, T62, app28_in_gga(T21, T22, T43))
U18_ga(T14, T24, T62, app28_out_gga(T21, T22, T43)) → U19_ga(T14, T24, T62, perm38_in_ga(T43, T62))
U19_ga(T14, T24, T62, perm38_out_ga(T43, T62)) → U20_ga(T14, T24, T62, ordered39_in_ga(T24, T62))
ordered39_in_ga(T92, []) → ordered39_out_ga(T92, [])
ordered39_in_ga(T99, .(T100, T101)) → U8_ga(T99, T100, T101, less61_in_ga(T99, T100))
less61_in_ga(0, T110) → less61_out_ga(0, T110)
less61_in_ga(s(T115), T116) → U11_ga(T115, T116, less69_in_ga(T115, T116))
less69_in_ga(0, s(T123)) → less69_out_ga(0, s(T123))
less69_in_ga(s(T128), s(T129)) → U10_ga(T128, T129, less69_in_ga(T128, T129))
U10_ga(T128, T129, less69_out_ga(T128, T129)) → less69_out_ga(s(T128), s(T129))
U11_ga(T115, T116, less69_out_ga(T115, T116)) → less61_out_ga(s(T115), T116)
U8_ga(T99, T100, T101, less61_out_ga(T99, T100)) → ordered39_out_ga(T99, .(T100, T101))
U8_ga(T99, T100, T101, less61_out_ga(T99, T100)) → U9_ga(T99, T100, T101, ordered39_in_aa(T100, T101))
ordered39_in_aa(T92, []) → ordered39_out_aa(T92, [])
ordered39_in_aa(T99, .(T100, T101)) → U8_aa(T99, T100, T101, less61_in_aa(T99, T100))
less61_in_aa(0, T110) → less61_out_aa(0, T110)
less61_in_aa(s(T115), T116) → U11_aa(T115, T116, less69_in_aa(T115, T116))
less69_in_aa(0, s(T123)) → less69_out_aa(0, s(T123))
less69_in_aa(s(T128), s(T129)) → U10_aa(T128, T129, less69_in_aa(T128, T129))
U10_aa(T128, T129, less69_out_aa(T128, T129)) → less69_out_aa(s(T128), s(T129))
U11_aa(T115, T116, less69_out_aa(T115, T116)) → less61_out_aa(s(T115), T116)
U8_aa(T99, T100, T101, less61_out_aa(T99, T100)) → ordered39_out_aa(T99, .(T100, T101))
U8_aa(T99, T100, T101, less61_out_aa(T99, T100)) → U9_aa(T99, T100, T101, ordered39_in_aa(T100, T101))
U9_aa(T99, T100, T101, ordered39_out_aa(T100, T101)) → ordered39_out_aa(T99, .(T100, T101))
U9_ga(T99, T100, T101, ordered39_out_aa(T100, T101)) → ordered39_out_ga(T99, .(T100, T101))
U20_ga(T14, T24, T62, ordered39_out_ga(T24, T62)) → ss1_out_ga(T14, .(T24, T62))
U8_AA(T99, T100, T101, less61_out_aa(T99, T100)) → ORDERED39_IN_AA(T100, T101)
ORDERED39_IN_AA(T99, .(T100, T101)) → U8_AA(T99, T100, T101, less61_in_aa(T99, T100))
less61_in_aa(0, T110) → less61_out_aa(0, T110)
less61_in_aa(s(T115), T116) → U11_aa(T115, T116, less69_in_aa(T115, T116))
U11_aa(T115, T116, less69_out_aa(T115, T116)) → less61_out_aa(s(T115), T116)
less69_in_aa(0, s(T123)) → less69_out_aa(0, s(T123))
less69_in_aa(s(T128), s(T129)) → U10_aa(T128, T129, less69_in_aa(T128, T129))
U10_aa(T128, T129, less69_out_aa(T128, T129)) → less69_out_aa(s(T128), s(T129))
U8_AA(less61_out_aa(T99)) → ORDERED39_IN_AA
ORDERED39_IN_AA → U8_AA(less61_in_aa)
less61_in_aa → less61_out_aa(0)
less61_in_aa → U11_aa(less69_in_aa)
U11_aa(less69_out_aa(T115)) → less61_out_aa(s(T115))
less69_in_aa → less69_out_aa(0)
less69_in_aa → U10_aa(less69_in_aa)
U10_aa(less69_out_aa(T128)) → less69_out_aa(s(T128))
less61_in_aa
U11_aa(x0)
less69_in_aa
U10_aa(x0)
ORDERED39_IN_AA → U8_AA(less61_out_aa(0))
ORDERED39_IN_AA → U8_AA(U11_aa(less69_in_aa))
U8_AA(less61_out_aa(T99)) → ORDERED39_IN_AA
ORDERED39_IN_AA → U8_AA(less61_out_aa(0))
ORDERED39_IN_AA → U8_AA(U11_aa(less69_in_aa))
less61_in_aa → less61_out_aa(0)
less61_in_aa → U11_aa(less69_in_aa)
U11_aa(less69_out_aa(T115)) → less61_out_aa(s(T115))
less69_in_aa → less69_out_aa(0)
less69_in_aa → U10_aa(less69_in_aa)
U10_aa(less69_out_aa(T128)) → less69_out_aa(s(T128))
less61_in_aa
U11_aa(x0)
less69_in_aa
U10_aa(x0)
U8_AA(less61_out_aa(T99)) → ORDERED39_IN_AA
ORDERED39_IN_AA → U8_AA(less61_out_aa(0))
ORDERED39_IN_AA → U8_AA(U11_aa(less69_in_aa))
less69_in_aa → less69_out_aa(0)
less69_in_aa → U10_aa(less69_in_aa)
U11_aa(less69_out_aa(T115)) → less61_out_aa(s(T115))
U10_aa(less69_out_aa(T128)) → less69_out_aa(s(T128))
less61_in_aa
U11_aa(x0)
less69_in_aa
U10_aa(x0)
less61_in_aa
U8_AA(less61_out_aa(T99)) → ORDERED39_IN_AA
ORDERED39_IN_AA → U8_AA(less61_out_aa(0))
ORDERED39_IN_AA → U8_AA(U11_aa(less69_in_aa))
less69_in_aa → less69_out_aa(0)
less69_in_aa → U10_aa(less69_in_aa)
U11_aa(less69_out_aa(T115)) → less61_out_aa(s(T115))
U10_aa(less69_out_aa(T128)) → less69_out_aa(s(T128))
U11_aa(x0)
less69_in_aa
U10_aa(x0)
LESS69_IN_GA(s(T128), s(T129)) → LESS69_IN_GA(T128, T129)
ss1_in_ga([], []) → ss1_out_ga([], [])
ss1_in_ga(T14, .(T17, T18)) → U12_ga(T14, T17, T18, app18_in_aaag(X23, T17, X24, T14))
app18_in_aaag([], T31, X46, .(T31, X46)) → app18_out_aaag([], T31, X46, .(T31, X46))
app18_in_aaag(.(X66, X67), T38, X68, .(X66, T37)) → U1_aaag(X66, X67, T38, X68, T37, app18_in_aaag(X67, T38, X68, T37))
U1_aaag(X66, X67, T38, X68, T37, app18_out_aaag(X67, T38, X68, T37)) → app18_out_aaag(.(X66, X67), T38, X68, .(X66, T37))
U12_ga(T14, T17, T18, app18_out_aaag(X23, T17, X24, T14)) → ss1_out_ga(T14, .(T17, T18))
ss1_in_ga(T14, .(T24, T23)) → U13_ga(T14, T24, T23, app18_in_aaag(T21, T24, T22, T14))
U13_ga(T14, T24, T23, app18_out_aaag(T21, T24, T22, T14)) → U14_ga(T14, T24, T23, app28_in_gga(T21, T22, X25))
app28_in_gga([], T50, T50) → app28_out_gga([], T50, T50)
app28_in_gga(.(T57, T58), T59, .(T57, X101)) → U2_gga(T57, T58, T59, X101, app28_in_gga(T58, T59, X101))
U2_gga(T57, T58, T59, X101, app28_out_gga(T58, T59, X101)) → app28_out_gga(.(T57, T58), T59, .(T57, X101))
U14_ga(T14, T24, T23, app28_out_gga(T21, T22, X25)) → ss1_out_ga(T14, .(T24, T23))
U13_ga(T14, T24, T23, app18_out_aaag(T21, T24, T22, T14)) → U15_ga(T14, T24, T23, app28_in_gga(T21, T22, T43))
U15_ga(T14, T24, T23, app28_out_gga(T21, T22, T43)) → U16_ga(T14, T24, T23, perm38_in_ga(T43, T23))
perm38_in_ga([], []) → perm38_out_ga([], [])
perm38_in_ga(T69, .(T72, T73)) → U3_ga(T69, T72, T73, app18_in_aaag(X120, T72, X121, T69))
U3_ga(T69, T72, T73, app18_out_aaag(X120, T72, X121, T69)) → perm38_out_ga(T69, .(T72, T73))
perm38_in_ga(T69, .(T72, T78)) → U4_ga(T69, T72, T78, app18_in_aaag(T76, T72, T77, T69))
U4_ga(T69, T72, T78, app18_out_aaag(T76, T72, T77, T69)) → U5_ga(T69, T72, T78, app28_in_gga(T76, T77, X122))
U5_ga(T69, T72, T78, app28_out_gga(T76, T77, X122)) → perm38_out_ga(T69, .(T72, T78))
U4_ga(T69, T72, T78, app18_out_aaag(T76, T72, T77, T69)) → U6_ga(T69, T72, T78, app28_in_gga(T76, T77, T83))
U6_ga(T69, T72, T78, app28_out_gga(T76, T77, T83)) → U7_ga(T69, T72, T78, perm38_in_ga(T83, T78))
U7_ga(T69, T72, T78, perm38_out_ga(T83, T78)) → perm38_out_ga(T69, .(T72, T78))
U16_ga(T14, T24, T23, perm38_out_ga(T43, T23)) → ss1_out_ga(T14, .(T24, T23))
ss1_in_ga(T14, .(T24, T62)) → U17_ga(T14, T24, T62, app18_in_aaag(T21, T24, T22, T14))
U17_ga(T14, T24, T62, app18_out_aaag(T21, T24, T22, T14)) → U18_ga(T14, T24, T62, app28_in_gga(T21, T22, T43))
U18_ga(T14, T24, T62, app28_out_gga(T21, T22, T43)) → U19_ga(T14, T24, T62, perm38_in_ga(T43, T62))
U19_ga(T14, T24, T62, perm38_out_ga(T43, T62)) → U20_ga(T14, T24, T62, ordered39_in_ga(T24, T62))
ordered39_in_ga(T92, []) → ordered39_out_ga(T92, [])
ordered39_in_ga(T99, .(T100, T101)) → U8_ga(T99, T100, T101, less61_in_ga(T99, T100))
less61_in_ga(0, T110) → less61_out_ga(0, T110)
less61_in_ga(s(T115), T116) → U11_ga(T115, T116, less69_in_ga(T115, T116))
less69_in_ga(0, s(T123)) → less69_out_ga(0, s(T123))
less69_in_ga(s(T128), s(T129)) → U10_ga(T128, T129, less69_in_ga(T128, T129))
U10_ga(T128, T129, less69_out_ga(T128, T129)) → less69_out_ga(s(T128), s(T129))
U11_ga(T115, T116, less69_out_ga(T115, T116)) → less61_out_ga(s(T115), T116)
U8_ga(T99, T100, T101, less61_out_ga(T99, T100)) → ordered39_out_ga(T99, .(T100, T101))
U8_ga(T99, T100, T101, less61_out_ga(T99, T100)) → U9_ga(T99, T100, T101, ordered39_in_aa(T100, T101))
ordered39_in_aa(T92, []) → ordered39_out_aa(T92, [])
ordered39_in_aa(T99, .(T100, T101)) → U8_aa(T99, T100, T101, less61_in_aa(T99, T100))
less61_in_aa(0, T110) → less61_out_aa(0, T110)
less61_in_aa(s(T115), T116) → U11_aa(T115, T116, less69_in_aa(T115, T116))
less69_in_aa(0, s(T123)) → less69_out_aa(0, s(T123))
less69_in_aa(s(T128), s(T129)) → U10_aa(T128, T129, less69_in_aa(T128, T129))
U10_aa(T128, T129, less69_out_aa(T128, T129)) → less69_out_aa(s(T128), s(T129))
U11_aa(T115, T116, less69_out_aa(T115, T116)) → less61_out_aa(s(T115), T116)
U8_aa(T99, T100, T101, less61_out_aa(T99, T100)) → ordered39_out_aa(T99, .(T100, T101))
U8_aa(T99, T100, T101, less61_out_aa(T99, T100)) → U9_aa(T99, T100, T101, ordered39_in_aa(T100, T101))
U9_aa(T99, T100, T101, ordered39_out_aa(T100, T101)) → ordered39_out_aa(T99, .(T100, T101))
U9_ga(T99, T100, T101, ordered39_out_aa(T100, T101)) → ordered39_out_ga(T99, .(T100, T101))
U20_ga(T14, T24, T62, ordered39_out_ga(T24, T62)) → ss1_out_ga(T14, .(T24, T62))
LESS69_IN_GA(s(T128), s(T129)) → LESS69_IN_GA(T128, T129)
LESS69_IN_GA(s(T128)) → LESS69_IN_GA(T128)
From the DPs we obtained the following set of size-change graphs:
APP28_IN_GGA(.(T57, T58), T59, .(T57, X101)) → APP28_IN_GGA(T58, T59, X101)
ss1_in_ga([], []) → ss1_out_ga([], [])
ss1_in_ga(T14, .(T17, T18)) → U12_ga(T14, T17, T18, app18_in_aaag(X23, T17, X24, T14))
app18_in_aaag([], T31, X46, .(T31, X46)) → app18_out_aaag([], T31, X46, .(T31, X46))
app18_in_aaag(.(X66, X67), T38, X68, .(X66, T37)) → U1_aaag(X66, X67, T38, X68, T37, app18_in_aaag(X67, T38, X68, T37))
U1_aaag(X66, X67, T38, X68, T37, app18_out_aaag(X67, T38, X68, T37)) → app18_out_aaag(.(X66, X67), T38, X68, .(X66, T37))
U12_ga(T14, T17, T18, app18_out_aaag(X23, T17, X24, T14)) → ss1_out_ga(T14, .(T17, T18))
ss1_in_ga(T14, .(T24, T23)) → U13_ga(T14, T24, T23, app18_in_aaag(T21, T24, T22, T14))
U13_ga(T14, T24, T23, app18_out_aaag(T21, T24, T22, T14)) → U14_ga(T14, T24, T23, app28_in_gga(T21, T22, X25))
app28_in_gga([], T50, T50) → app28_out_gga([], T50, T50)
app28_in_gga(.(T57, T58), T59, .(T57, X101)) → U2_gga(T57, T58, T59, X101, app28_in_gga(T58, T59, X101))
U2_gga(T57, T58, T59, X101, app28_out_gga(T58, T59, X101)) → app28_out_gga(.(T57, T58), T59, .(T57, X101))
U14_ga(T14, T24, T23, app28_out_gga(T21, T22, X25)) → ss1_out_ga(T14, .(T24, T23))
U13_ga(T14, T24, T23, app18_out_aaag(T21, T24, T22, T14)) → U15_ga(T14, T24, T23, app28_in_gga(T21, T22, T43))
U15_ga(T14, T24, T23, app28_out_gga(T21, T22, T43)) → U16_ga(T14, T24, T23, perm38_in_ga(T43, T23))
perm38_in_ga([], []) → perm38_out_ga([], [])
perm38_in_ga(T69, .(T72, T73)) → U3_ga(T69, T72, T73, app18_in_aaag(X120, T72, X121, T69))
U3_ga(T69, T72, T73, app18_out_aaag(X120, T72, X121, T69)) → perm38_out_ga(T69, .(T72, T73))
perm38_in_ga(T69, .(T72, T78)) → U4_ga(T69, T72, T78, app18_in_aaag(T76, T72, T77, T69))
U4_ga(T69, T72, T78, app18_out_aaag(T76, T72, T77, T69)) → U5_ga(T69, T72, T78, app28_in_gga(T76, T77, X122))
U5_ga(T69, T72, T78, app28_out_gga(T76, T77, X122)) → perm38_out_ga(T69, .(T72, T78))
U4_ga(T69, T72, T78, app18_out_aaag(T76, T72, T77, T69)) → U6_ga(T69, T72, T78, app28_in_gga(T76, T77, T83))
U6_ga(T69, T72, T78, app28_out_gga(T76, T77, T83)) → U7_ga(T69, T72, T78, perm38_in_ga(T83, T78))
U7_ga(T69, T72, T78, perm38_out_ga(T83, T78)) → perm38_out_ga(T69, .(T72, T78))
U16_ga(T14, T24, T23, perm38_out_ga(T43, T23)) → ss1_out_ga(T14, .(T24, T23))
ss1_in_ga(T14, .(T24, T62)) → U17_ga(T14, T24, T62, app18_in_aaag(T21, T24, T22, T14))
U17_ga(T14, T24, T62, app18_out_aaag(T21, T24, T22, T14)) → U18_ga(T14, T24, T62, app28_in_gga(T21, T22, T43))
U18_ga(T14, T24, T62, app28_out_gga(T21, T22, T43)) → U19_ga(T14, T24, T62, perm38_in_ga(T43, T62))
U19_ga(T14, T24, T62, perm38_out_ga(T43, T62)) → U20_ga(T14, T24, T62, ordered39_in_ga(T24, T62))
ordered39_in_ga(T92, []) → ordered39_out_ga(T92, [])
ordered39_in_ga(T99, .(T100, T101)) → U8_ga(T99, T100, T101, less61_in_ga(T99, T100))
less61_in_ga(0, T110) → less61_out_ga(0, T110)
less61_in_ga(s(T115), T116) → U11_ga(T115, T116, less69_in_ga(T115, T116))
less69_in_ga(0, s(T123)) → less69_out_ga(0, s(T123))
less69_in_ga(s(T128), s(T129)) → U10_ga(T128, T129, less69_in_ga(T128, T129))
U10_ga(T128, T129, less69_out_ga(T128, T129)) → less69_out_ga(s(T128), s(T129))
U11_ga(T115, T116, less69_out_ga(T115, T116)) → less61_out_ga(s(T115), T116)
U8_ga(T99, T100, T101, less61_out_ga(T99, T100)) → ordered39_out_ga(T99, .(T100, T101))
U8_ga(T99, T100, T101, less61_out_ga(T99, T100)) → U9_ga(T99, T100, T101, ordered39_in_aa(T100, T101))
ordered39_in_aa(T92, []) → ordered39_out_aa(T92, [])
ordered39_in_aa(T99, .(T100, T101)) → U8_aa(T99, T100, T101, less61_in_aa(T99, T100))
less61_in_aa(0, T110) → less61_out_aa(0, T110)
less61_in_aa(s(T115), T116) → U11_aa(T115, T116, less69_in_aa(T115, T116))
less69_in_aa(0, s(T123)) → less69_out_aa(0, s(T123))
less69_in_aa(s(T128), s(T129)) → U10_aa(T128, T129, less69_in_aa(T128, T129))
U10_aa(T128, T129, less69_out_aa(T128, T129)) → less69_out_aa(s(T128), s(T129))
U11_aa(T115, T116, less69_out_aa(T115, T116)) → less61_out_aa(s(T115), T116)
U8_aa(T99, T100, T101, less61_out_aa(T99, T100)) → ordered39_out_aa(T99, .(T100, T101))
U8_aa(T99, T100, T101, less61_out_aa(T99, T100)) → U9_aa(T99, T100, T101, ordered39_in_aa(T100, T101))
U9_aa(T99, T100, T101, ordered39_out_aa(T100, T101)) → ordered39_out_aa(T99, .(T100, T101))
U9_ga(T99, T100, T101, ordered39_out_aa(T100, T101)) → ordered39_out_ga(T99, .(T100, T101))
U20_ga(T14, T24, T62, ordered39_out_ga(T24, T62)) → ss1_out_ga(T14, .(T24, T62))
APP28_IN_GGA(.(T57, T58), T59, .(T57, X101)) → APP28_IN_GGA(T58, T59, X101)
APP28_IN_GGA(.(T57, T58), T59) → APP28_IN_GGA(T58, T59)
From the DPs we obtained the following set of size-change graphs:
APP18_IN_AAAG(.(X66, X67), T38, X68, .(X66, T37)) → APP18_IN_AAAG(X67, T38, X68, T37)
ss1_in_ga([], []) → ss1_out_ga([], [])
ss1_in_ga(T14, .(T17, T18)) → U12_ga(T14, T17, T18, app18_in_aaag(X23, T17, X24, T14))
app18_in_aaag([], T31, X46, .(T31, X46)) → app18_out_aaag([], T31, X46, .(T31, X46))
app18_in_aaag(.(X66, X67), T38, X68, .(X66, T37)) → U1_aaag(X66, X67, T38, X68, T37, app18_in_aaag(X67, T38, X68, T37))
U1_aaag(X66, X67, T38, X68, T37, app18_out_aaag(X67, T38, X68, T37)) → app18_out_aaag(.(X66, X67), T38, X68, .(X66, T37))
U12_ga(T14, T17, T18, app18_out_aaag(X23, T17, X24, T14)) → ss1_out_ga(T14, .(T17, T18))
ss1_in_ga(T14, .(T24, T23)) → U13_ga(T14, T24, T23, app18_in_aaag(T21, T24, T22, T14))
U13_ga(T14, T24, T23, app18_out_aaag(T21, T24, T22, T14)) → U14_ga(T14, T24, T23, app28_in_gga(T21, T22, X25))
app28_in_gga([], T50, T50) → app28_out_gga([], T50, T50)
app28_in_gga(.(T57, T58), T59, .(T57, X101)) → U2_gga(T57, T58, T59, X101, app28_in_gga(T58, T59, X101))
U2_gga(T57, T58, T59, X101, app28_out_gga(T58, T59, X101)) → app28_out_gga(.(T57, T58), T59, .(T57, X101))
U14_ga(T14, T24, T23, app28_out_gga(T21, T22, X25)) → ss1_out_ga(T14, .(T24, T23))
U13_ga(T14, T24, T23, app18_out_aaag(T21, T24, T22, T14)) → U15_ga(T14, T24, T23, app28_in_gga(T21, T22, T43))
U15_ga(T14, T24, T23, app28_out_gga(T21, T22, T43)) → U16_ga(T14, T24, T23, perm38_in_ga(T43, T23))
perm38_in_ga([], []) → perm38_out_ga([], [])
perm38_in_ga(T69, .(T72, T73)) → U3_ga(T69, T72, T73, app18_in_aaag(X120, T72, X121, T69))
U3_ga(T69, T72, T73, app18_out_aaag(X120, T72, X121, T69)) → perm38_out_ga(T69, .(T72, T73))
perm38_in_ga(T69, .(T72, T78)) → U4_ga(T69, T72, T78, app18_in_aaag(T76, T72, T77, T69))
U4_ga(T69, T72, T78, app18_out_aaag(T76, T72, T77, T69)) → U5_ga(T69, T72, T78, app28_in_gga(T76, T77, X122))
U5_ga(T69, T72, T78, app28_out_gga(T76, T77, X122)) → perm38_out_ga(T69, .(T72, T78))
U4_ga(T69, T72, T78, app18_out_aaag(T76, T72, T77, T69)) → U6_ga(T69, T72, T78, app28_in_gga(T76, T77, T83))
U6_ga(T69, T72, T78, app28_out_gga(T76, T77, T83)) → U7_ga(T69, T72, T78, perm38_in_ga(T83, T78))
U7_ga(T69, T72, T78, perm38_out_ga(T83, T78)) → perm38_out_ga(T69, .(T72, T78))
U16_ga(T14, T24, T23, perm38_out_ga(T43, T23)) → ss1_out_ga(T14, .(T24, T23))
ss1_in_ga(T14, .(T24, T62)) → U17_ga(T14, T24, T62, app18_in_aaag(T21, T24, T22, T14))
U17_ga(T14, T24, T62, app18_out_aaag(T21, T24, T22, T14)) → U18_ga(T14, T24, T62, app28_in_gga(T21, T22, T43))
U18_ga(T14, T24, T62, app28_out_gga(T21, T22, T43)) → U19_ga(T14, T24, T62, perm38_in_ga(T43, T62))
U19_ga(T14, T24, T62, perm38_out_ga(T43, T62)) → U20_ga(T14, T24, T62, ordered39_in_ga(T24, T62))
ordered39_in_ga(T92, []) → ordered39_out_ga(T92, [])
ordered39_in_ga(T99, .(T100, T101)) → U8_ga(T99, T100, T101, less61_in_ga(T99, T100))
less61_in_ga(0, T110) → less61_out_ga(0, T110)
less61_in_ga(s(T115), T116) → U11_ga(T115, T116, less69_in_ga(T115, T116))
less69_in_ga(0, s(T123)) → less69_out_ga(0, s(T123))
less69_in_ga(s(T128), s(T129)) → U10_ga(T128, T129, less69_in_ga(T128, T129))
U10_ga(T128, T129, less69_out_ga(T128, T129)) → less69_out_ga(s(T128), s(T129))
U11_ga(T115, T116, less69_out_ga(T115, T116)) → less61_out_ga(s(T115), T116)
U8_ga(T99, T100, T101, less61_out_ga(T99, T100)) → ordered39_out_ga(T99, .(T100, T101))
U8_ga(T99, T100, T101, less61_out_ga(T99, T100)) → U9_ga(T99, T100, T101, ordered39_in_aa(T100, T101))
ordered39_in_aa(T92, []) → ordered39_out_aa(T92, [])
ordered39_in_aa(T99, .(T100, T101)) → U8_aa(T99, T100, T101, less61_in_aa(T99, T100))
less61_in_aa(0, T110) → less61_out_aa(0, T110)
less61_in_aa(s(T115), T116) → U11_aa(T115, T116, less69_in_aa(T115, T116))
less69_in_aa(0, s(T123)) → less69_out_aa(0, s(T123))
less69_in_aa(s(T128), s(T129)) → U10_aa(T128, T129, less69_in_aa(T128, T129))
U10_aa(T128, T129, less69_out_aa(T128, T129)) → less69_out_aa(s(T128), s(T129))
U11_aa(T115, T116, less69_out_aa(T115, T116)) → less61_out_aa(s(T115), T116)
U8_aa(T99, T100, T101, less61_out_aa(T99, T100)) → ordered39_out_aa(T99, .(T100, T101))
U8_aa(T99, T100, T101, less61_out_aa(T99, T100)) → U9_aa(T99, T100, T101, ordered39_in_aa(T100, T101))
U9_aa(T99, T100, T101, ordered39_out_aa(T100, T101)) → ordered39_out_aa(T99, .(T100, T101))
U9_ga(T99, T100, T101, ordered39_out_aa(T100, T101)) → ordered39_out_ga(T99, .(T100, T101))
U20_ga(T14, T24, T62, ordered39_out_ga(T24, T62)) → ss1_out_ga(T14, .(T24, T62))
APP18_IN_AAAG(.(X66, X67), T38, X68, .(X66, T37)) → APP18_IN_AAAG(X67, T38, X68, T37)
APP18_IN_AAAG(.(X66, T37)) → APP18_IN_AAAG(T37)
From the DPs we obtained the following set of size-change graphs:
PERM38_IN_GA(T69, .(T72, T78)) → U4_GA(T69, T72, T78, app18_in_aaag(T76, T72, T77, T69))
U4_GA(T69, T72, T78, app18_out_aaag(T76, T72, T77, T69)) → U6_GA(T69, T72, T78, app28_in_gga(T76, T77, T83))
U6_GA(T69, T72, T78, app28_out_gga(T76, T77, T83)) → PERM38_IN_GA(T83, T78)
ss1_in_ga([], []) → ss1_out_ga([], [])
ss1_in_ga(T14, .(T17, T18)) → U12_ga(T14, T17, T18, app18_in_aaag(X23, T17, X24, T14))
app18_in_aaag([], T31, X46, .(T31, X46)) → app18_out_aaag([], T31, X46, .(T31, X46))
app18_in_aaag(.(X66, X67), T38, X68, .(X66, T37)) → U1_aaag(X66, X67, T38, X68, T37, app18_in_aaag(X67, T38, X68, T37))
U1_aaag(X66, X67, T38, X68, T37, app18_out_aaag(X67, T38, X68, T37)) → app18_out_aaag(.(X66, X67), T38, X68, .(X66, T37))
U12_ga(T14, T17, T18, app18_out_aaag(X23, T17, X24, T14)) → ss1_out_ga(T14, .(T17, T18))
ss1_in_ga(T14, .(T24, T23)) → U13_ga(T14, T24, T23, app18_in_aaag(T21, T24, T22, T14))
U13_ga(T14, T24, T23, app18_out_aaag(T21, T24, T22, T14)) → U14_ga(T14, T24, T23, app28_in_gga(T21, T22, X25))
app28_in_gga([], T50, T50) → app28_out_gga([], T50, T50)
app28_in_gga(.(T57, T58), T59, .(T57, X101)) → U2_gga(T57, T58, T59, X101, app28_in_gga(T58, T59, X101))
U2_gga(T57, T58, T59, X101, app28_out_gga(T58, T59, X101)) → app28_out_gga(.(T57, T58), T59, .(T57, X101))
U14_ga(T14, T24, T23, app28_out_gga(T21, T22, X25)) → ss1_out_ga(T14, .(T24, T23))
U13_ga(T14, T24, T23, app18_out_aaag(T21, T24, T22, T14)) → U15_ga(T14, T24, T23, app28_in_gga(T21, T22, T43))
U15_ga(T14, T24, T23, app28_out_gga(T21, T22, T43)) → U16_ga(T14, T24, T23, perm38_in_ga(T43, T23))
perm38_in_ga([], []) → perm38_out_ga([], [])
perm38_in_ga(T69, .(T72, T73)) → U3_ga(T69, T72, T73, app18_in_aaag(X120, T72, X121, T69))
U3_ga(T69, T72, T73, app18_out_aaag(X120, T72, X121, T69)) → perm38_out_ga(T69, .(T72, T73))
perm38_in_ga(T69, .(T72, T78)) → U4_ga(T69, T72, T78, app18_in_aaag(T76, T72, T77, T69))
U4_ga(T69, T72, T78, app18_out_aaag(T76, T72, T77, T69)) → U5_ga(T69, T72, T78, app28_in_gga(T76, T77, X122))
U5_ga(T69, T72, T78, app28_out_gga(T76, T77, X122)) → perm38_out_ga(T69, .(T72, T78))
U4_ga(T69, T72, T78, app18_out_aaag(T76, T72, T77, T69)) → U6_ga(T69, T72, T78, app28_in_gga(T76, T77, T83))
U6_ga(T69, T72, T78, app28_out_gga(T76, T77, T83)) → U7_ga(T69, T72, T78, perm38_in_ga(T83, T78))
U7_ga(T69, T72, T78, perm38_out_ga(T83, T78)) → perm38_out_ga(T69, .(T72, T78))
U16_ga(T14, T24, T23, perm38_out_ga(T43, T23)) → ss1_out_ga(T14, .(T24, T23))
ss1_in_ga(T14, .(T24, T62)) → U17_ga(T14, T24, T62, app18_in_aaag(T21, T24, T22, T14))
U17_ga(T14, T24, T62, app18_out_aaag(T21, T24, T22, T14)) → U18_ga(T14, T24, T62, app28_in_gga(T21, T22, T43))
U18_ga(T14, T24, T62, app28_out_gga(T21, T22, T43)) → U19_ga(T14, T24, T62, perm38_in_ga(T43, T62))
U19_ga(T14, T24, T62, perm38_out_ga(T43, T62)) → U20_ga(T14, T24, T62, ordered39_in_ga(T24, T62))
ordered39_in_ga(T92, []) → ordered39_out_ga(T92, [])
ordered39_in_ga(T99, .(T100, T101)) → U8_ga(T99, T100, T101, less61_in_ga(T99, T100))
less61_in_ga(0, T110) → less61_out_ga(0, T110)
less61_in_ga(s(T115), T116) → U11_ga(T115, T116, less69_in_ga(T115, T116))
less69_in_ga(0, s(T123)) → less69_out_ga(0, s(T123))
less69_in_ga(s(T128), s(T129)) → U10_ga(T128, T129, less69_in_ga(T128, T129))
U10_ga(T128, T129, less69_out_ga(T128, T129)) → less69_out_ga(s(T128), s(T129))
U11_ga(T115, T116, less69_out_ga(T115, T116)) → less61_out_ga(s(T115), T116)
U8_ga(T99, T100, T101, less61_out_ga(T99, T100)) → ordered39_out_ga(T99, .(T100, T101))
U8_ga(T99, T100, T101, less61_out_ga(T99, T100)) → U9_ga(T99, T100, T101, ordered39_in_aa(T100, T101))
ordered39_in_aa(T92, []) → ordered39_out_aa(T92, [])
ordered39_in_aa(T99, .(T100, T101)) → U8_aa(T99, T100, T101, less61_in_aa(T99, T100))
less61_in_aa(0, T110) → less61_out_aa(0, T110)
less61_in_aa(s(T115), T116) → U11_aa(T115, T116, less69_in_aa(T115, T116))
less69_in_aa(0, s(T123)) → less69_out_aa(0, s(T123))
less69_in_aa(s(T128), s(T129)) → U10_aa(T128, T129, less69_in_aa(T128, T129))
U10_aa(T128, T129, less69_out_aa(T128, T129)) → less69_out_aa(s(T128), s(T129))
U11_aa(T115, T116, less69_out_aa(T115, T116)) → less61_out_aa(s(T115), T116)
U8_aa(T99, T100, T101, less61_out_aa(T99, T100)) → ordered39_out_aa(T99, .(T100, T101))
U8_aa(T99, T100, T101, less61_out_aa(T99, T100)) → U9_aa(T99, T100, T101, ordered39_in_aa(T100, T101))
U9_aa(T99, T100, T101, ordered39_out_aa(T100, T101)) → ordered39_out_aa(T99, .(T100, T101))
U9_ga(T99, T100, T101, ordered39_out_aa(T100, T101)) → ordered39_out_ga(T99, .(T100, T101))
U20_ga(T14, T24, T62, ordered39_out_ga(T24, T62)) → ss1_out_ga(T14, .(T24, T62))
PERM38_IN_GA(T69, .(T72, T78)) → U4_GA(T69, T72, T78, app18_in_aaag(T76, T72, T77, T69))
U4_GA(T69, T72, T78, app18_out_aaag(T76, T72, T77, T69)) → U6_GA(T69, T72, T78, app28_in_gga(T76, T77, T83))
U6_GA(T69, T72, T78, app28_out_gga(T76, T77, T83)) → PERM38_IN_GA(T83, T78)
app18_in_aaag([], T31, X46, .(T31, X46)) → app18_out_aaag([], T31, X46, .(T31, X46))
app18_in_aaag(.(X66, X67), T38, X68, .(X66, T37)) → U1_aaag(X66, X67, T38, X68, T37, app18_in_aaag(X67, T38, X68, T37))
app28_in_gga([], T50, T50) → app28_out_gga([], T50, T50)
app28_in_gga(.(T57, T58), T59, .(T57, X101)) → U2_gga(T57, T58, T59, X101, app28_in_gga(T58, T59, X101))
U1_aaag(X66, X67, T38, X68, T37, app18_out_aaag(X67, T38, X68, T37)) → app18_out_aaag(.(X66, X67), T38, X68, .(X66, T37))
U2_gga(T57, T58, T59, X101, app28_out_gga(T58, T59, X101)) → app28_out_gga(.(T57, T58), T59, .(T57, X101))
PERM38_IN_GA(T69) → U4_GA(T69, app18_in_aaag(T69))
U4_GA(T69, app18_out_aaag(T76, T72, T77, T69)) → U6_GA(T69, app28_in_gga(T76, T77))
U6_GA(T69, app28_out_gga(T76, T77, T83)) → PERM38_IN_GA(T83)
app18_in_aaag(.(T31, X46)) → app18_out_aaag([], T31, X46, .(T31, X46))
app18_in_aaag(.(X66, T37)) → U1_aaag(X66, T37, app18_in_aaag(T37))
app28_in_gga([], T50) → app28_out_gga([], T50, T50)
app28_in_gga(.(T57, T58), T59) → U2_gga(T57, T58, T59, app28_in_gga(T58, T59))
U1_aaag(X66, T37, app18_out_aaag(X67, T38, X68, T37)) → app18_out_aaag(.(X66, X67), T38, X68, .(X66, T37))
U2_gga(T57, T58, T59, app28_out_gga(T58, T59, X101)) → app28_out_gga(.(T57, T58), T59, .(T57, X101))
app18_in_aaag(x0)
app28_in_gga(x0, x1)
U1_aaag(x0, x1, x2)
U2_gga(x0, x1, x2, x3)
The following pairs can be oriented strictly and are deleted.
The remaining pairs can at least be oriented weakly.
PERM38_IN_GA(T69) → U4_GA(T69, app18_in_aaag(T69))
POL(.(x1, x2)) = 1 + x2
POL(PERM38_IN_GA(x1)) = 1 + x1
POL(U1_aaag(x1, x2, x3)) = 1 + x3
POL(U2_gga(x1, x2, x3, x4)) = 1 + x4
POL(U4_GA(x1, x2)) = x2
POL(U6_GA(x1, x2)) = x2
POL([]) = 1
POL(app18_in_aaag(x1)) = x1
POL(app18_out_aaag(x1, x2, x3, x4)) = x1 + x3
POL(app28_in_gga(x1, x2)) = x1 + x2
POL(app28_out_gga(x1, x2, x3)) = 1 + x3
app18_in_aaag(.(T31, X46)) → app18_out_aaag([], T31, X46, .(T31, X46))
app18_in_aaag(.(X66, T37)) → U1_aaag(X66, T37, app18_in_aaag(T37))
app28_in_gga([], T50) → app28_out_gga([], T50, T50)
app28_in_gga(.(T57, T58), T59) → U2_gga(T57, T58, T59, app28_in_gga(T58, T59))
U1_aaag(X66, T37, app18_out_aaag(X67, T38, X68, T37)) → app18_out_aaag(.(X66, X67), T38, X68, .(X66, T37))
U2_gga(T57, T58, T59, app28_out_gga(T58, T59, X101)) → app28_out_gga(.(T57, T58), T59, .(T57, X101))
U4_GA(T69, app18_out_aaag(T76, T72, T77, T69)) → U6_GA(T69, app28_in_gga(T76, T77))
U6_GA(T69, app28_out_gga(T76, T77, T83)) → PERM38_IN_GA(T83)
app18_in_aaag(.(T31, X46)) → app18_out_aaag([], T31, X46, .(T31, X46))
app18_in_aaag(.(X66, T37)) → U1_aaag(X66, T37, app18_in_aaag(T37))
app28_in_gga([], T50) → app28_out_gga([], T50, T50)
app28_in_gga(.(T57, T58), T59) → U2_gga(T57, T58, T59, app28_in_gga(T58, T59))
U1_aaag(X66, T37, app18_out_aaag(X67, T38, X68, T37)) → app18_out_aaag(.(X66, X67), T38, X68, .(X66, T37))
U2_gga(T57, T58, T59, app28_out_gga(T58, T59, X101)) → app28_out_gga(.(T57, T58), T59, .(T57, X101))
app18_in_aaag(x0)
app28_in_gga(x0, x1)
U1_aaag(x0, x1, x2)
U2_gga(x0, x1, x2, x3)