0 Prolog
↳1 PrologToPrologProblemTransformerProof (⇐)
↳2 Prolog
↳3 PrologToPiTRSProof (⇐)
↳4 PiTRS
↳5 DependencyPairsProof (⇔)
↳6 PiDP
↳7 DependencyGraphProof (⇔)
↳8 AND
↳9 PiDP
↳10 UsableRulesProof (⇔)
↳11 PiDP
↳12 PiDPToQDPProof (⇐)
↳13 QDP
↳14 QDPSizeChangeProof (⇔)
↳15 YES
↳16 PiDP
↳17 UsableRulesProof (⇔)
↳18 PiDP
↳19 PiDPToQDPProof (⇐)
↳20 QDP
↳21 QDPSizeChangeProof (⇔)
↳22 YES
↳23 PiDP
↳24 UsableRulesProof (⇔)
↳25 PiDP
↳26 PiDPToQDPProof (⇐)
↳27 QDP
↳28 NonTerminationProof (⇔)
↳29 NO
↳30 PiDP
↳31 UsableRulesProof (⇔)
↳32 PiDP
↳33 PiDPToQDPProof (⇐)
↳34 QDP
↳35 NonTerminationProof (⇔)
↳36 NO
↳37 PrologToPiTRSProof (⇐)
↳38 PiTRS
↳39 DependencyPairsProof (⇔)
↳40 PiDP
↳41 DependencyGraphProof (⇔)
↳42 AND
↳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 QDPSizeChangeProof (⇔)
↳56 YES
↳57 PiDP
↳58 UsableRulesProof (⇔)
↳59 PiDP
↳60 PiDPToQDPProof (⇐)
↳61 QDP
↳62 NonTerminationProof (⇔)
↳63 NO
↳64 PiDP
↳65 UsableRulesProof (⇔)
↳66 PiDP
↳67 PiDPToQDPProof (⇐)
↳68 QDP
↳69 NonTerminationProof (⇔)
↳70 NO
rev1_in_ag([], []) → rev1_out_ag([], [])
rev1_in_ag(.(T21, .(T20, T19)), []) → U6_ag(T21, T20, T19, rev18_in_aa(T19, X34))
rev18_in_aa([], []) → rev18_out_aa([], [])
rev18_in_aa(.(T32, T31), X52) → U1_aa(T32, T31, X52, rev18_in_aa(T31, X51))
rev18_in_aa(.(T34, T31), X52) → U2_aa(T34, T31, X52, rev18_in_aa(T31, T33))
U2_aa(T34, T31, X52, rev18_out_aa(T31, T33)) → U3_aa(T34, T31, X52, app29_in_aaa(T33, T34, X52))
app29_in_aaa([], T41, .(T41, [])) → app29_out_aaa([], T41, .(T41, []))
app29_in_aaa(.(T48, T51), T52, .(T48, X78)) → U4_aaa(T48, T51, T52, X78, app29_in_aaa(T51, T52, X78))
U4_aaa(T48, T51, T52, X78, app29_out_aaa(T51, T52, X78)) → app29_out_aaa(.(T48, T51), T52, .(T48, X78))
U3_aa(T34, T31, X52, app29_out_aaa(T33, T34, X52)) → rev18_out_aa(.(T34, T31), X52)
U1_aa(T32, T31, X52, rev18_out_aa(T31, X51)) → rev18_out_aa(.(T32, T31), X52)
U6_ag(T21, T20, T19, rev18_out_aa(T19, X34)) → rev1_out_ag(.(T21, .(T20, T19)), [])
rev1_in_ag(.(T24, .(T23, T19)), []) → U7_ag(T24, T23, T19, rev18_in_aa(T19, T22))
U7_ag(T24, T23, T19, rev18_out_aa(T19, T22)) → U8_ag(T24, T23, T19, app29_in_aaa(T22, T23, X35))
U8_ag(T24, T23, T19, app29_out_aaa(T22, T23, X35)) → rev1_out_ag(.(T24, .(T23, T19)), [])
rev1_in_ag(.(T85, []), .(T85, [])) → rev1_out_ag(.(T85, []), .(T85, []))
rev1_in_ag(.(T94, .(T93, T92)), T75) → U9_ag(T94, T93, T92, T75, rev18_in_aa(T92, X134))
U9_ag(T94, T93, T92, T75, rev18_out_aa(T92, X134)) → rev1_out_ag(.(T94, .(T93, T92)), T75)
rev1_in_ag(.(T97, .(T96, T92)), T75) → U10_ag(T97, T96, T92, T75, rev18_in_aa(T92, T95))
U10_ag(T97, T96, T92, T75, rev18_out_aa(T92, T95)) → U11_ag(T97, T96, T92, T75, app29_in_aaa(T95, T96, X135))
U11_ag(T97, T96, T92, T75, app29_out_aaa(T95, T96, X135)) → rev1_out_ag(.(T97, .(T96, T92)), T75)
rev1_in_ag(.(T112, .(T96, T92)), .(T112, [])) → U12_ag(T112, T96, T92, rev18_in_aa(T92, T95))
U12_ag(T112, T96, T92, rev18_out_aa(T92, T95)) → U13_ag(T112, T96, T92, app29_in_aag(T95, T96, []))
app29_in_aag([], T41, .(T41, [])) → app29_out_aag([], T41, .(T41, []))
app29_in_aag(.(T48, T51), T52, .(T48, X78)) → U4_aag(T48, T51, T52, X78, app29_in_aag(T51, T52, X78))
U4_aag(T48, T51, T52, X78, app29_out_aag(T51, T52, X78)) → app29_out_aag(.(T48, T51), T52, .(T48, X78))
U13_ag(T112, T96, T92, app29_out_aag(T95, T96, [])) → rev1_out_ag(.(T112, .(T96, T92)), .(T112, []))
rev1_in_ag(.(T126, .(T96, T92)), .(T121, T124)) → U14_ag(T126, T96, T92, T121, T124, rev18_in_aa(T92, T95))
U14_ag(T126, T96, T92, T121, T124, rev18_out_aa(T92, T95)) → U15_ag(T126, T96, T92, T121, T124, app29_in_aaa(T95, T96, .(T121, T125)))
U15_ag(T126, T96, T92, T121, T124, app29_out_aaa(T95, T96, .(T121, T125))) → U16_ag(T126, T96, T92, T121, T124, app69_in_gag(T125, T126, T124))
app69_in_gag([], T133, .(T133, [])) → app69_out_gag([], T133, .(T133, []))
app69_in_gag(.(T142, T146), T147, .(T142, T145)) → U5_gag(T142, T146, T147, T145, app69_in_gag(T146, T147, T145))
U5_gag(T142, T146, T147, T145, app69_out_gag(T146, T147, T145)) → app69_out_gag(.(T142, T146), T147, .(T142, T145))
U16_ag(T126, T96, T92, T121, T124, app69_out_gag(T125, T126, T124)) → rev1_out_ag(.(T126, .(T96, T92)), .(T121, T124))
Infinitary Constructor Rewriting Termination of PiTRS implies Termination of Prolog
rev1_in_ag([], []) → rev1_out_ag([], [])
rev1_in_ag(.(T21, .(T20, T19)), []) → U6_ag(T21, T20, T19, rev18_in_aa(T19, X34))
rev18_in_aa([], []) → rev18_out_aa([], [])
rev18_in_aa(.(T32, T31), X52) → U1_aa(T32, T31, X52, rev18_in_aa(T31, X51))
rev18_in_aa(.(T34, T31), X52) → U2_aa(T34, T31, X52, rev18_in_aa(T31, T33))
U2_aa(T34, T31, X52, rev18_out_aa(T31, T33)) → U3_aa(T34, T31, X52, app29_in_aaa(T33, T34, X52))
app29_in_aaa([], T41, .(T41, [])) → app29_out_aaa([], T41, .(T41, []))
app29_in_aaa(.(T48, T51), T52, .(T48, X78)) → U4_aaa(T48, T51, T52, X78, app29_in_aaa(T51, T52, X78))
U4_aaa(T48, T51, T52, X78, app29_out_aaa(T51, T52, X78)) → app29_out_aaa(.(T48, T51), T52, .(T48, X78))
U3_aa(T34, T31, X52, app29_out_aaa(T33, T34, X52)) → rev18_out_aa(.(T34, T31), X52)
U1_aa(T32, T31, X52, rev18_out_aa(T31, X51)) → rev18_out_aa(.(T32, T31), X52)
U6_ag(T21, T20, T19, rev18_out_aa(T19, X34)) → rev1_out_ag(.(T21, .(T20, T19)), [])
rev1_in_ag(.(T24, .(T23, T19)), []) → U7_ag(T24, T23, T19, rev18_in_aa(T19, T22))
U7_ag(T24, T23, T19, rev18_out_aa(T19, T22)) → U8_ag(T24, T23, T19, app29_in_aaa(T22, T23, X35))
U8_ag(T24, T23, T19, app29_out_aaa(T22, T23, X35)) → rev1_out_ag(.(T24, .(T23, T19)), [])
rev1_in_ag(.(T85, []), .(T85, [])) → rev1_out_ag(.(T85, []), .(T85, []))
rev1_in_ag(.(T94, .(T93, T92)), T75) → U9_ag(T94, T93, T92, T75, rev18_in_aa(T92, X134))
U9_ag(T94, T93, T92, T75, rev18_out_aa(T92, X134)) → rev1_out_ag(.(T94, .(T93, T92)), T75)
rev1_in_ag(.(T97, .(T96, T92)), T75) → U10_ag(T97, T96, T92, T75, rev18_in_aa(T92, T95))
U10_ag(T97, T96, T92, T75, rev18_out_aa(T92, T95)) → U11_ag(T97, T96, T92, T75, app29_in_aaa(T95, T96, X135))
U11_ag(T97, T96, T92, T75, app29_out_aaa(T95, T96, X135)) → rev1_out_ag(.(T97, .(T96, T92)), T75)
rev1_in_ag(.(T112, .(T96, T92)), .(T112, [])) → U12_ag(T112, T96, T92, rev18_in_aa(T92, T95))
U12_ag(T112, T96, T92, rev18_out_aa(T92, T95)) → U13_ag(T112, T96, T92, app29_in_aag(T95, T96, []))
app29_in_aag([], T41, .(T41, [])) → app29_out_aag([], T41, .(T41, []))
app29_in_aag(.(T48, T51), T52, .(T48, X78)) → U4_aag(T48, T51, T52, X78, app29_in_aag(T51, T52, X78))
U4_aag(T48, T51, T52, X78, app29_out_aag(T51, T52, X78)) → app29_out_aag(.(T48, T51), T52, .(T48, X78))
U13_ag(T112, T96, T92, app29_out_aag(T95, T96, [])) → rev1_out_ag(.(T112, .(T96, T92)), .(T112, []))
rev1_in_ag(.(T126, .(T96, T92)), .(T121, T124)) → U14_ag(T126, T96, T92, T121, T124, rev18_in_aa(T92, T95))
U14_ag(T126, T96, T92, T121, T124, rev18_out_aa(T92, T95)) → U15_ag(T126, T96, T92, T121, T124, app29_in_aaa(T95, T96, .(T121, T125)))
U15_ag(T126, T96, T92, T121, T124, app29_out_aaa(T95, T96, .(T121, T125))) → U16_ag(T126, T96, T92, T121, T124, app69_in_gag(T125, T126, T124))
app69_in_gag([], T133, .(T133, [])) → app69_out_gag([], T133, .(T133, []))
app69_in_gag(.(T142, T146), T147, .(T142, T145)) → U5_gag(T142, T146, T147, T145, app69_in_gag(T146, T147, T145))
U5_gag(T142, T146, T147, T145, app69_out_gag(T146, T147, T145)) → app69_out_gag(.(T142, T146), T147, .(T142, T145))
U16_ag(T126, T96, T92, T121, T124, app69_out_gag(T125, T126, T124)) → rev1_out_ag(.(T126, .(T96, T92)), .(T121, T124))
REV1_IN_AG(.(T21, .(T20, T19)), []) → U6_AG(T21, T20, T19, rev18_in_aa(T19, X34))
REV1_IN_AG(.(T21, .(T20, T19)), []) → REV18_IN_AA(T19, X34)
REV18_IN_AA(.(T32, T31), X52) → U1_AA(T32, T31, X52, rev18_in_aa(T31, X51))
REV18_IN_AA(.(T32, T31), X52) → REV18_IN_AA(T31, X51)
REV18_IN_AA(.(T34, T31), X52) → U2_AA(T34, T31, X52, rev18_in_aa(T31, T33))
U2_AA(T34, T31, X52, rev18_out_aa(T31, T33)) → U3_AA(T34, T31, X52, app29_in_aaa(T33, T34, X52))
U2_AA(T34, T31, X52, rev18_out_aa(T31, T33)) → APP29_IN_AAA(T33, T34, X52)
APP29_IN_AAA(.(T48, T51), T52, .(T48, X78)) → U4_AAA(T48, T51, T52, X78, app29_in_aaa(T51, T52, X78))
APP29_IN_AAA(.(T48, T51), T52, .(T48, X78)) → APP29_IN_AAA(T51, T52, X78)
REV1_IN_AG(.(T24, .(T23, T19)), []) → U7_AG(T24, T23, T19, rev18_in_aa(T19, T22))
U7_AG(T24, T23, T19, rev18_out_aa(T19, T22)) → U8_AG(T24, T23, T19, app29_in_aaa(T22, T23, X35))
U7_AG(T24, T23, T19, rev18_out_aa(T19, T22)) → APP29_IN_AAA(T22, T23, X35)
REV1_IN_AG(.(T94, .(T93, T92)), T75) → U9_AG(T94, T93, T92, T75, rev18_in_aa(T92, X134))
REV1_IN_AG(.(T94, .(T93, T92)), T75) → REV18_IN_AA(T92, X134)
REV1_IN_AG(.(T97, .(T96, T92)), T75) → U10_AG(T97, T96, T92, T75, rev18_in_aa(T92, T95))
U10_AG(T97, T96, T92, T75, rev18_out_aa(T92, T95)) → U11_AG(T97, T96, T92, T75, app29_in_aaa(T95, T96, X135))
U10_AG(T97, T96, T92, T75, rev18_out_aa(T92, T95)) → APP29_IN_AAA(T95, T96, X135)
REV1_IN_AG(.(T112, .(T96, T92)), .(T112, [])) → U12_AG(T112, T96, T92, rev18_in_aa(T92, T95))
REV1_IN_AG(.(T112, .(T96, T92)), .(T112, [])) → REV18_IN_AA(T92, T95)
U12_AG(T112, T96, T92, rev18_out_aa(T92, T95)) → U13_AG(T112, T96, T92, app29_in_aag(T95, T96, []))
U12_AG(T112, T96, T92, rev18_out_aa(T92, T95)) → APP29_IN_AAG(T95, T96, [])
APP29_IN_AAG(.(T48, T51), T52, .(T48, X78)) → U4_AAG(T48, T51, T52, X78, app29_in_aag(T51, T52, X78))
APP29_IN_AAG(.(T48, T51), T52, .(T48, X78)) → APP29_IN_AAG(T51, T52, X78)
REV1_IN_AG(.(T126, .(T96, T92)), .(T121, T124)) → U14_AG(T126, T96, T92, T121, T124, rev18_in_aa(T92, T95))
REV1_IN_AG(.(T126, .(T96, T92)), .(T121, T124)) → REV18_IN_AA(T92, T95)
U14_AG(T126, T96, T92, T121, T124, rev18_out_aa(T92, T95)) → U15_AG(T126, T96, T92, T121, T124, app29_in_aaa(T95, T96, .(T121, T125)))
U14_AG(T126, T96, T92, T121, T124, rev18_out_aa(T92, T95)) → APP29_IN_AAA(T95, T96, .(T121, T125))
U15_AG(T126, T96, T92, T121, T124, app29_out_aaa(T95, T96, .(T121, T125))) → U16_AG(T126, T96, T92, T121, T124, app69_in_gag(T125, T126, T124))
U15_AG(T126, T96, T92, T121, T124, app29_out_aaa(T95, T96, .(T121, T125))) → APP69_IN_GAG(T125, T126, T124)
APP69_IN_GAG(.(T142, T146), T147, .(T142, T145)) → U5_GAG(T142, T146, T147, T145, app69_in_gag(T146, T147, T145))
APP69_IN_GAG(.(T142, T146), T147, .(T142, T145)) → APP69_IN_GAG(T146, T147, T145)
rev1_in_ag([], []) → rev1_out_ag([], [])
rev1_in_ag(.(T21, .(T20, T19)), []) → U6_ag(T21, T20, T19, rev18_in_aa(T19, X34))
rev18_in_aa([], []) → rev18_out_aa([], [])
rev18_in_aa(.(T32, T31), X52) → U1_aa(T32, T31, X52, rev18_in_aa(T31, X51))
rev18_in_aa(.(T34, T31), X52) → U2_aa(T34, T31, X52, rev18_in_aa(T31, T33))
U2_aa(T34, T31, X52, rev18_out_aa(T31, T33)) → U3_aa(T34, T31, X52, app29_in_aaa(T33, T34, X52))
app29_in_aaa([], T41, .(T41, [])) → app29_out_aaa([], T41, .(T41, []))
app29_in_aaa(.(T48, T51), T52, .(T48, X78)) → U4_aaa(T48, T51, T52, X78, app29_in_aaa(T51, T52, X78))
U4_aaa(T48, T51, T52, X78, app29_out_aaa(T51, T52, X78)) → app29_out_aaa(.(T48, T51), T52, .(T48, X78))
U3_aa(T34, T31, X52, app29_out_aaa(T33, T34, X52)) → rev18_out_aa(.(T34, T31), X52)
U1_aa(T32, T31, X52, rev18_out_aa(T31, X51)) → rev18_out_aa(.(T32, T31), X52)
U6_ag(T21, T20, T19, rev18_out_aa(T19, X34)) → rev1_out_ag(.(T21, .(T20, T19)), [])
rev1_in_ag(.(T24, .(T23, T19)), []) → U7_ag(T24, T23, T19, rev18_in_aa(T19, T22))
U7_ag(T24, T23, T19, rev18_out_aa(T19, T22)) → U8_ag(T24, T23, T19, app29_in_aaa(T22, T23, X35))
U8_ag(T24, T23, T19, app29_out_aaa(T22, T23, X35)) → rev1_out_ag(.(T24, .(T23, T19)), [])
rev1_in_ag(.(T85, []), .(T85, [])) → rev1_out_ag(.(T85, []), .(T85, []))
rev1_in_ag(.(T94, .(T93, T92)), T75) → U9_ag(T94, T93, T92, T75, rev18_in_aa(T92, X134))
U9_ag(T94, T93, T92, T75, rev18_out_aa(T92, X134)) → rev1_out_ag(.(T94, .(T93, T92)), T75)
rev1_in_ag(.(T97, .(T96, T92)), T75) → U10_ag(T97, T96, T92, T75, rev18_in_aa(T92, T95))
U10_ag(T97, T96, T92, T75, rev18_out_aa(T92, T95)) → U11_ag(T97, T96, T92, T75, app29_in_aaa(T95, T96, X135))
U11_ag(T97, T96, T92, T75, app29_out_aaa(T95, T96, X135)) → rev1_out_ag(.(T97, .(T96, T92)), T75)
rev1_in_ag(.(T112, .(T96, T92)), .(T112, [])) → U12_ag(T112, T96, T92, rev18_in_aa(T92, T95))
U12_ag(T112, T96, T92, rev18_out_aa(T92, T95)) → U13_ag(T112, T96, T92, app29_in_aag(T95, T96, []))
app29_in_aag([], T41, .(T41, [])) → app29_out_aag([], T41, .(T41, []))
app29_in_aag(.(T48, T51), T52, .(T48, X78)) → U4_aag(T48, T51, T52, X78, app29_in_aag(T51, T52, X78))
U4_aag(T48, T51, T52, X78, app29_out_aag(T51, T52, X78)) → app29_out_aag(.(T48, T51), T52, .(T48, X78))
U13_ag(T112, T96, T92, app29_out_aag(T95, T96, [])) → rev1_out_ag(.(T112, .(T96, T92)), .(T112, []))
rev1_in_ag(.(T126, .(T96, T92)), .(T121, T124)) → U14_ag(T126, T96, T92, T121, T124, rev18_in_aa(T92, T95))
U14_ag(T126, T96, T92, T121, T124, rev18_out_aa(T92, T95)) → U15_ag(T126, T96, T92, T121, T124, app29_in_aaa(T95, T96, .(T121, T125)))
U15_ag(T126, T96, T92, T121, T124, app29_out_aaa(T95, T96, .(T121, T125))) → U16_ag(T126, T96, T92, T121, T124, app69_in_gag(T125, T126, T124))
app69_in_gag([], T133, .(T133, [])) → app69_out_gag([], T133, .(T133, []))
app69_in_gag(.(T142, T146), T147, .(T142, T145)) → U5_gag(T142, T146, T147, T145, app69_in_gag(T146, T147, T145))
U5_gag(T142, T146, T147, T145, app69_out_gag(T146, T147, T145)) → app69_out_gag(.(T142, T146), T147, .(T142, T145))
U16_ag(T126, T96, T92, T121, T124, app69_out_gag(T125, T126, T124)) → rev1_out_ag(.(T126, .(T96, T92)), .(T121, T124))
REV1_IN_AG(.(T21, .(T20, T19)), []) → U6_AG(T21, T20, T19, rev18_in_aa(T19, X34))
REV1_IN_AG(.(T21, .(T20, T19)), []) → REV18_IN_AA(T19, X34)
REV18_IN_AA(.(T32, T31), X52) → U1_AA(T32, T31, X52, rev18_in_aa(T31, X51))
REV18_IN_AA(.(T32, T31), X52) → REV18_IN_AA(T31, X51)
REV18_IN_AA(.(T34, T31), X52) → U2_AA(T34, T31, X52, rev18_in_aa(T31, T33))
U2_AA(T34, T31, X52, rev18_out_aa(T31, T33)) → U3_AA(T34, T31, X52, app29_in_aaa(T33, T34, X52))
U2_AA(T34, T31, X52, rev18_out_aa(T31, T33)) → APP29_IN_AAA(T33, T34, X52)
APP29_IN_AAA(.(T48, T51), T52, .(T48, X78)) → U4_AAA(T48, T51, T52, X78, app29_in_aaa(T51, T52, X78))
APP29_IN_AAA(.(T48, T51), T52, .(T48, X78)) → APP29_IN_AAA(T51, T52, X78)
REV1_IN_AG(.(T24, .(T23, T19)), []) → U7_AG(T24, T23, T19, rev18_in_aa(T19, T22))
U7_AG(T24, T23, T19, rev18_out_aa(T19, T22)) → U8_AG(T24, T23, T19, app29_in_aaa(T22, T23, X35))
U7_AG(T24, T23, T19, rev18_out_aa(T19, T22)) → APP29_IN_AAA(T22, T23, X35)
REV1_IN_AG(.(T94, .(T93, T92)), T75) → U9_AG(T94, T93, T92, T75, rev18_in_aa(T92, X134))
REV1_IN_AG(.(T94, .(T93, T92)), T75) → REV18_IN_AA(T92, X134)
REV1_IN_AG(.(T97, .(T96, T92)), T75) → U10_AG(T97, T96, T92, T75, rev18_in_aa(T92, T95))
U10_AG(T97, T96, T92, T75, rev18_out_aa(T92, T95)) → U11_AG(T97, T96, T92, T75, app29_in_aaa(T95, T96, X135))
U10_AG(T97, T96, T92, T75, rev18_out_aa(T92, T95)) → APP29_IN_AAA(T95, T96, X135)
REV1_IN_AG(.(T112, .(T96, T92)), .(T112, [])) → U12_AG(T112, T96, T92, rev18_in_aa(T92, T95))
REV1_IN_AG(.(T112, .(T96, T92)), .(T112, [])) → REV18_IN_AA(T92, T95)
U12_AG(T112, T96, T92, rev18_out_aa(T92, T95)) → U13_AG(T112, T96, T92, app29_in_aag(T95, T96, []))
U12_AG(T112, T96, T92, rev18_out_aa(T92, T95)) → APP29_IN_AAG(T95, T96, [])
APP29_IN_AAG(.(T48, T51), T52, .(T48, X78)) → U4_AAG(T48, T51, T52, X78, app29_in_aag(T51, T52, X78))
APP29_IN_AAG(.(T48, T51), T52, .(T48, X78)) → APP29_IN_AAG(T51, T52, X78)
REV1_IN_AG(.(T126, .(T96, T92)), .(T121, T124)) → U14_AG(T126, T96, T92, T121, T124, rev18_in_aa(T92, T95))
REV1_IN_AG(.(T126, .(T96, T92)), .(T121, T124)) → REV18_IN_AA(T92, T95)
U14_AG(T126, T96, T92, T121, T124, rev18_out_aa(T92, T95)) → U15_AG(T126, T96, T92, T121, T124, app29_in_aaa(T95, T96, .(T121, T125)))
U14_AG(T126, T96, T92, T121, T124, rev18_out_aa(T92, T95)) → APP29_IN_AAA(T95, T96, .(T121, T125))
U15_AG(T126, T96, T92, T121, T124, app29_out_aaa(T95, T96, .(T121, T125))) → U16_AG(T126, T96, T92, T121, T124, app69_in_gag(T125, T126, T124))
U15_AG(T126, T96, T92, T121, T124, app29_out_aaa(T95, T96, .(T121, T125))) → APP69_IN_GAG(T125, T126, T124)
APP69_IN_GAG(.(T142, T146), T147, .(T142, T145)) → U5_GAG(T142, T146, T147, T145, app69_in_gag(T146, T147, T145))
APP69_IN_GAG(.(T142, T146), T147, .(T142, T145)) → APP69_IN_GAG(T146, T147, T145)
rev1_in_ag([], []) → rev1_out_ag([], [])
rev1_in_ag(.(T21, .(T20, T19)), []) → U6_ag(T21, T20, T19, rev18_in_aa(T19, X34))
rev18_in_aa([], []) → rev18_out_aa([], [])
rev18_in_aa(.(T32, T31), X52) → U1_aa(T32, T31, X52, rev18_in_aa(T31, X51))
rev18_in_aa(.(T34, T31), X52) → U2_aa(T34, T31, X52, rev18_in_aa(T31, T33))
U2_aa(T34, T31, X52, rev18_out_aa(T31, T33)) → U3_aa(T34, T31, X52, app29_in_aaa(T33, T34, X52))
app29_in_aaa([], T41, .(T41, [])) → app29_out_aaa([], T41, .(T41, []))
app29_in_aaa(.(T48, T51), T52, .(T48, X78)) → U4_aaa(T48, T51, T52, X78, app29_in_aaa(T51, T52, X78))
U4_aaa(T48, T51, T52, X78, app29_out_aaa(T51, T52, X78)) → app29_out_aaa(.(T48, T51), T52, .(T48, X78))
U3_aa(T34, T31, X52, app29_out_aaa(T33, T34, X52)) → rev18_out_aa(.(T34, T31), X52)
U1_aa(T32, T31, X52, rev18_out_aa(T31, X51)) → rev18_out_aa(.(T32, T31), X52)
U6_ag(T21, T20, T19, rev18_out_aa(T19, X34)) → rev1_out_ag(.(T21, .(T20, T19)), [])
rev1_in_ag(.(T24, .(T23, T19)), []) → U7_ag(T24, T23, T19, rev18_in_aa(T19, T22))
U7_ag(T24, T23, T19, rev18_out_aa(T19, T22)) → U8_ag(T24, T23, T19, app29_in_aaa(T22, T23, X35))
U8_ag(T24, T23, T19, app29_out_aaa(T22, T23, X35)) → rev1_out_ag(.(T24, .(T23, T19)), [])
rev1_in_ag(.(T85, []), .(T85, [])) → rev1_out_ag(.(T85, []), .(T85, []))
rev1_in_ag(.(T94, .(T93, T92)), T75) → U9_ag(T94, T93, T92, T75, rev18_in_aa(T92, X134))
U9_ag(T94, T93, T92, T75, rev18_out_aa(T92, X134)) → rev1_out_ag(.(T94, .(T93, T92)), T75)
rev1_in_ag(.(T97, .(T96, T92)), T75) → U10_ag(T97, T96, T92, T75, rev18_in_aa(T92, T95))
U10_ag(T97, T96, T92, T75, rev18_out_aa(T92, T95)) → U11_ag(T97, T96, T92, T75, app29_in_aaa(T95, T96, X135))
U11_ag(T97, T96, T92, T75, app29_out_aaa(T95, T96, X135)) → rev1_out_ag(.(T97, .(T96, T92)), T75)
rev1_in_ag(.(T112, .(T96, T92)), .(T112, [])) → U12_ag(T112, T96, T92, rev18_in_aa(T92, T95))
U12_ag(T112, T96, T92, rev18_out_aa(T92, T95)) → U13_ag(T112, T96, T92, app29_in_aag(T95, T96, []))
app29_in_aag([], T41, .(T41, [])) → app29_out_aag([], T41, .(T41, []))
app29_in_aag(.(T48, T51), T52, .(T48, X78)) → U4_aag(T48, T51, T52, X78, app29_in_aag(T51, T52, X78))
U4_aag(T48, T51, T52, X78, app29_out_aag(T51, T52, X78)) → app29_out_aag(.(T48, T51), T52, .(T48, X78))
U13_ag(T112, T96, T92, app29_out_aag(T95, T96, [])) → rev1_out_ag(.(T112, .(T96, T92)), .(T112, []))
rev1_in_ag(.(T126, .(T96, T92)), .(T121, T124)) → U14_ag(T126, T96, T92, T121, T124, rev18_in_aa(T92, T95))
U14_ag(T126, T96, T92, T121, T124, rev18_out_aa(T92, T95)) → U15_ag(T126, T96, T92, T121, T124, app29_in_aaa(T95, T96, .(T121, T125)))
U15_ag(T126, T96, T92, T121, T124, app29_out_aaa(T95, T96, .(T121, T125))) → U16_ag(T126, T96, T92, T121, T124, app69_in_gag(T125, T126, T124))
app69_in_gag([], T133, .(T133, [])) → app69_out_gag([], T133, .(T133, []))
app69_in_gag(.(T142, T146), T147, .(T142, T145)) → U5_gag(T142, T146, T147, T145, app69_in_gag(T146, T147, T145))
U5_gag(T142, T146, T147, T145, app69_out_gag(T146, T147, T145)) → app69_out_gag(.(T142, T146), T147, .(T142, T145))
U16_ag(T126, T96, T92, T121, T124, app69_out_gag(T125, T126, T124)) → rev1_out_ag(.(T126, .(T96, T92)), .(T121, T124))
APP69_IN_GAG(.(T142, T146), T147, .(T142, T145)) → APP69_IN_GAG(T146, T147, T145)
rev1_in_ag([], []) → rev1_out_ag([], [])
rev1_in_ag(.(T21, .(T20, T19)), []) → U6_ag(T21, T20, T19, rev18_in_aa(T19, X34))
rev18_in_aa([], []) → rev18_out_aa([], [])
rev18_in_aa(.(T32, T31), X52) → U1_aa(T32, T31, X52, rev18_in_aa(T31, X51))
rev18_in_aa(.(T34, T31), X52) → U2_aa(T34, T31, X52, rev18_in_aa(T31, T33))
U2_aa(T34, T31, X52, rev18_out_aa(T31, T33)) → U3_aa(T34, T31, X52, app29_in_aaa(T33, T34, X52))
app29_in_aaa([], T41, .(T41, [])) → app29_out_aaa([], T41, .(T41, []))
app29_in_aaa(.(T48, T51), T52, .(T48, X78)) → U4_aaa(T48, T51, T52, X78, app29_in_aaa(T51, T52, X78))
U4_aaa(T48, T51, T52, X78, app29_out_aaa(T51, T52, X78)) → app29_out_aaa(.(T48, T51), T52, .(T48, X78))
U3_aa(T34, T31, X52, app29_out_aaa(T33, T34, X52)) → rev18_out_aa(.(T34, T31), X52)
U1_aa(T32, T31, X52, rev18_out_aa(T31, X51)) → rev18_out_aa(.(T32, T31), X52)
U6_ag(T21, T20, T19, rev18_out_aa(T19, X34)) → rev1_out_ag(.(T21, .(T20, T19)), [])
rev1_in_ag(.(T24, .(T23, T19)), []) → U7_ag(T24, T23, T19, rev18_in_aa(T19, T22))
U7_ag(T24, T23, T19, rev18_out_aa(T19, T22)) → U8_ag(T24, T23, T19, app29_in_aaa(T22, T23, X35))
U8_ag(T24, T23, T19, app29_out_aaa(T22, T23, X35)) → rev1_out_ag(.(T24, .(T23, T19)), [])
rev1_in_ag(.(T85, []), .(T85, [])) → rev1_out_ag(.(T85, []), .(T85, []))
rev1_in_ag(.(T94, .(T93, T92)), T75) → U9_ag(T94, T93, T92, T75, rev18_in_aa(T92, X134))
U9_ag(T94, T93, T92, T75, rev18_out_aa(T92, X134)) → rev1_out_ag(.(T94, .(T93, T92)), T75)
rev1_in_ag(.(T97, .(T96, T92)), T75) → U10_ag(T97, T96, T92, T75, rev18_in_aa(T92, T95))
U10_ag(T97, T96, T92, T75, rev18_out_aa(T92, T95)) → U11_ag(T97, T96, T92, T75, app29_in_aaa(T95, T96, X135))
U11_ag(T97, T96, T92, T75, app29_out_aaa(T95, T96, X135)) → rev1_out_ag(.(T97, .(T96, T92)), T75)
rev1_in_ag(.(T112, .(T96, T92)), .(T112, [])) → U12_ag(T112, T96, T92, rev18_in_aa(T92, T95))
U12_ag(T112, T96, T92, rev18_out_aa(T92, T95)) → U13_ag(T112, T96, T92, app29_in_aag(T95, T96, []))
app29_in_aag([], T41, .(T41, [])) → app29_out_aag([], T41, .(T41, []))
app29_in_aag(.(T48, T51), T52, .(T48, X78)) → U4_aag(T48, T51, T52, X78, app29_in_aag(T51, T52, X78))
U4_aag(T48, T51, T52, X78, app29_out_aag(T51, T52, X78)) → app29_out_aag(.(T48, T51), T52, .(T48, X78))
U13_ag(T112, T96, T92, app29_out_aag(T95, T96, [])) → rev1_out_ag(.(T112, .(T96, T92)), .(T112, []))
rev1_in_ag(.(T126, .(T96, T92)), .(T121, T124)) → U14_ag(T126, T96, T92, T121, T124, rev18_in_aa(T92, T95))
U14_ag(T126, T96, T92, T121, T124, rev18_out_aa(T92, T95)) → U15_ag(T126, T96, T92, T121, T124, app29_in_aaa(T95, T96, .(T121, T125)))
U15_ag(T126, T96, T92, T121, T124, app29_out_aaa(T95, T96, .(T121, T125))) → U16_ag(T126, T96, T92, T121, T124, app69_in_gag(T125, T126, T124))
app69_in_gag([], T133, .(T133, [])) → app69_out_gag([], T133, .(T133, []))
app69_in_gag(.(T142, T146), T147, .(T142, T145)) → U5_gag(T142, T146, T147, T145, app69_in_gag(T146, T147, T145))
U5_gag(T142, T146, T147, T145, app69_out_gag(T146, T147, T145)) → app69_out_gag(.(T142, T146), T147, .(T142, T145))
U16_ag(T126, T96, T92, T121, T124, app69_out_gag(T125, T126, T124)) → rev1_out_ag(.(T126, .(T96, T92)), .(T121, T124))
APP69_IN_GAG(.(T142, T146), T147, .(T142, T145)) → APP69_IN_GAG(T146, T147, T145)
APP69_IN_GAG(.(T146), .(T145)) → APP69_IN_GAG(T146, T145)
From the DPs we obtained the following set of size-change graphs:
APP29_IN_AAG(.(T48, T51), T52, .(T48, X78)) → APP29_IN_AAG(T51, T52, X78)
rev1_in_ag([], []) → rev1_out_ag([], [])
rev1_in_ag(.(T21, .(T20, T19)), []) → U6_ag(T21, T20, T19, rev18_in_aa(T19, X34))
rev18_in_aa([], []) → rev18_out_aa([], [])
rev18_in_aa(.(T32, T31), X52) → U1_aa(T32, T31, X52, rev18_in_aa(T31, X51))
rev18_in_aa(.(T34, T31), X52) → U2_aa(T34, T31, X52, rev18_in_aa(T31, T33))
U2_aa(T34, T31, X52, rev18_out_aa(T31, T33)) → U3_aa(T34, T31, X52, app29_in_aaa(T33, T34, X52))
app29_in_aaa([], T41, .(T41, [])) → app29_out_aaa([], T41, .(T41, []))
app29_in_aaa(.(T48, T51), T52, .(T48, X78)) → U4_aaa(T48, T51, T52, X78, app29_in_aaa(T51, T52, X78))
U4_aaa(T48, T51, T52, X78, app29_out_aaa(T51, T52, X78)) → app29_out_aaa(.(T48, T51), T52, .(T48, X78))
U3_aa(T34, T31, X52, app29_out_aaa(T33, T34, X52)) → rev18_out_aa(.(T34, T31), X52)
U1_aa(T32, T31, X52, rev18_out_aa(T31, X51)) → rev18_out_aa(.(T32, T31), X52)
U6_ag(T21, T20, T19, rev18_out_aa(T19, X34)) → rev1_out_ag(.(T21, .(T20, T19)), [])
rev1_in_ag(.(T24, .(T23, T19)), []) → U7_ag(T24, T23, T19, rev18_in_aa(T19, T22))
U7_ag(T24, T23, T19, rev18_out_aa(T19, T22)) → U8_ag(T24, T23, T19, app29_in_aaa(T22, T23, X35))
U8_ag(T24, T23, T19, app29_out_aaa(T22, T23, X35)) → rev1_out_ag(.(T24, .(T23, T19)), [])
rev1_in_ag(.(T85, []), .(T85, [])) → rev1_out_ag(.(T85, []), .(T85, []))
rev1_in_ag(.(T94, .(T93, T92)), T75) → U9_ag(T94, T93, T92, T75, rev18_in_aa(T92, X134))
U9_ag(T94, T93, T92, T75, rev18_out_aa(T92, X134)) → rev1_out_ag(.(T94, .(T93, T92)), T75)
rev1_in_ag(.(T97, .(T96, T92)), T75) → U10_ag(T97, T96, T92, T75, rev18_in_aa(T92, T95))
U10_ag(T97, T96, T92, T75, rev18_out_aa(T92, T95)) → U11_ag(T97, T96, T92, T75, app29_in_aaa(T95, T96, X135))
U11_ag(T97, T96, T92, T75, app29_out_aaa(T95, T96, X135)) → rev1_out_ag(.(T97, .(T96, T92)), T75)
rev1_in_ag(.(T112, .(T96, T92)), .(T112, [])) → U12_ag(T112, T96, T92, rev18_in_aa(T92, T95))
U12_ag(T112, T96, T92, rev18_out_aa(T92, T95)) → U13_ag(T112, T96, T92, app29_in_aag(T95, T96, []))
app29_in_aag([], T41, .(T41, [])) → app29_out_aag([], T41, .(T41, []))
app29_in_aag(.(T48, T51), T52, .(T48, X78)) → U4_aag(T48, T51, T52, X78, app29_in_aag(T51, T52, X78))
U4_aag(T48, T51, T52, X78, app29_out_aag(T51, T52, X78)) → app29_out_aag(.(T48, T51), T52, .(T48, X78))
U13_ag(T112, T96, T92, app29_out_aag(T95, T96, [])) → rev1_out_ag(.(T112, .(T96, T92)), .(T112, []))
rev1_in_ag(.(T126, .(T96, T92)), .(T121, T124)) → U14_ag(T126, T96, T92, T121, T124, rev18_in_aa(T92, T95))
U14_ag(T126, T96, T92, T121, T124, rev18_out_aa(T92, T95)) → U15_ag(T126, T96, T92, T121, T124, app29_in_aaa(T95, T96, .(T121, T125)))
U15_ag(T126, T96, T92, T121, T124, app29_out_aaa(T95, T96, .(T121, T125))) → U16_ag(T126, T96, T92, T121, T124, app69_in_gag(T125, T126, T124))
app69_in_gag([], T133, .(T133, [])) → app69_out_gag([], T133, .(T133, []))
app69_in_gag(.(T142, T146), T147, .(T142, T145)) → U5_gag(T142, T146, T147, T145, app69_in_gag(T146, T147, T145))
U5_gag(T142, T146, T147, T145, app69_out_gag(T146, T147, T145)) → app69_out_gag(.(T142, T146), T147, .(T142, T145))
U16_ag(T126, T96, T92, T121, T124, app69_out_gag(T125, T126, T124)) → rev1_out_ag(.(T126, .(T96, T92)), .(T121, T124))
APP29_IN_AAG(.(T48, T51), T52, .(T48, X78)) → APP29_IN_AAG(T51, T52, X78)
APP29_IN_AAG(.(X78)) → APP29_IN_AAG(X78)
From the DPs we obtained the following set of size-change graphs:
APP29_IN_AAA(.(T48, T51), T52, .(T48, X78)) → APP29_IN_AAA(T51, T52, X78)
rev1_in_ag([], []) → rev1_out_ag([], [])
rev1_in_ag(.(T21, .(T20, T19)), []) → U6_ag(T21, T20, T19, rev18_in_aa(T19, X34))
rev18_in_aa([], []) → rev18_out_aa([], [])
rev18_in_aa(.(T32, T31), X52) → U1_aa(T32, T31, X52, rev18_in_aa(T31, X51))
rev18_in_aa(.(T34, T31), X52) → U2_aa(T34, T31, X52, rev18_in_aa(T31, T33))
U2_aa(T34, T31, X52, rev18_out_aa(T31, T33)) → U3_aa(T34, T31, X52, app29_in_aaa(T33, T34, X52))
app29_in_aaa([], T41, .(T41, [])) → app29_out_aaa([], T41, .(T41, []))
app29_in_aaa(.(T48, T51), T52, .(T48, X78)) → U4_aaa(T48, T51, T52, X78, app29_in_aaa(T51, T52, X78))
U4_aaa(T48, T51, T52, X78, app29_out_aaa(T51, T52, X78)) → app29_out_aaa(.(T48, T51), T52, .(T48, X78))
U3_aa(T34, T31, X52, app29_out_aaa(T33, T34, X52)) → rev18_out_aa(.(T34, T31), X52)
U1_aa(T32, T31, X52, rev18_out_aa(T31, X51)) → rev18_out_aa(.(T32, T31), X52)
U6_ag(T21, T20, T19, rev18_out_aa(T19, X34)) → rev1_out_ag(.(T21, .(T20, T19)), [])
rev1_in_ag(.(T24, .(T23, T19)), []) → U7_ag(T24, T23, T19, rev18_in_aa(T19, T22))
U7_ag(T24, T23, T19, rev18_out_aa(T19, T22)) → U8_ag(T24, T23, T19, app29_in_aaa(T22, T23, X35))
U8_ag(T24, T23, T19, app29_out_aaa(T22, T23, X35)) → rev1_out_ag(.(T24, .(T23, T19)), [])
rev1_in_ag(.(T85, []), .(T85, [])) → rev1_out_ag(.(T85, []), .(T85, []))
rev1_in_ag(.(T94, .(T93, T92)), T75) → U9_ag(T94, T93, T92, T75, rev18_in_aa(T92, X134))
U9_ag(T94, T93, T92, T75, rev18_out_aa(T92, X134)) → rev1_out_ag(.(T94, .(T93, T92)), T75)
rev1_in_ag(.(T97, .(T96, T92)), T75) → U10_ag(T97, T96, T92, T75, rev18_in_aa(T92, T95))
U10_ag(T97, T96, T92, T75, rev18_out_aa(T92, T95)) → U11_ag(T97, T96, T92, T75, app29_in_aaa(T95, T96, X135))
U11_ag(T97, T96, T92, T75, app29_out_aaa(T95, T96, X135)) → rev1_out_ag(.(T97, .(T96, T92)), T75)
rev1_in_ag(.(T112, .(T96, T92)), .(T112, [])) → U12_ag(T112, T96, T92, rev18_in_aa(T92, T95))
U12_ag(T112, T96, T92, rev18_out_aa(T92, T95)) → U13_ag(T112, T96, T92, app29_in_aag(T95, T96, []))
app29_in_aag([], T41, .(T41, [])) → app29_out_aag([], T41, .(T41, []))
app29_in_aag(.(T48, T51), T52, .(T48, X78)) → U4_aag(T48, T51, T52, X78, app29_in_aag(T51, T52, X78))
U4_aag(T48, T51, T52, X78, app29_out_aag(T51, T52, X78)) → app29_out_aag(.(T48, T51), T52, .(T48, X78))
U13_ag(T112, T96, T92, app29_out_aag(T95, T96, [])) → rev1_out_ag(.(T112, .(T96, T92)), .(T112, []))
rev1_in_ag(.(T126, .(T96, T92)), .(T121, T124)) → U14_ag(T126, T96, T92, T121, T124, rev18_in_aa(T92, T95))
U14_ag(T126, T96, T92, T121, T124, rev18_out_aa(T92, T95)) → U15_ag(T126, T96, T92, T121, T124, app29_in_aaa(T95, T96, .(T121, T125)))
U15_ag(T126, T96, T92, T121, T124, app29_out_aaa(T95, T96, .(T121, T125))) → U16_ag(T126, T96, T92, T121, T124, app69_in_gag(T125, T126, T124))
app69_in_gag([], T133, .(T133, [])) → app69_out_gag([], T133, .(T133, []))
app69_in_gag(.(T142, T146), T147, .(T142, T145)) → U5_gag(T142, T146, T147, T145, app69_in_gag(T146, T147, T145))
U5_gag(T142, T146, T147, T145, app69_out_gag(T146, T147, T145)) → app69_out_gag(.(T142, T146), T147, .(T142, T145))
U16_ag(T126, T96, T92, T121, T124, app69_out_gag(T125, T126, T124)) → rev1_out_ag(.(T126, .(T96, T92)), .(T121, T124))
APP29_IN_AAA(.(T48, T51), T52, .(T48, X78)) → APP29_IN_AAA(T51, T52, X78)
APP29_IN_AAA → APP29_IN_AAA
REV18_IN_AA(.(T32, T31), X52) → REV18_IN_AA(T31, X51)
rev1_in_ag([], []) → rev1_out_ag([], [])
rev1_in_ag(.(T21, .(T20, T19)), []) → U6_ag(T21, T20, T19, rev18_in_aa(T19, X34))
rev18_in_aa([], []) → rev18_out_aa([], [])
rev18_in_aa(.(T32, T31), X52) → U1_aa(T32, T31, X52, rev18_in_aa(T31, X51))
rev18_in_aa(.(T34, T31), X52) → U2_aa(T34, T31, X52, rev18_in_aa(T31, T33))
U2_aa(T34, T31, X52, rev18_out_aa(T31, T33)) → U3_aa(T34, T31, X52, app29_in_aaa(T33, T34, X52))
app29_in_aaa([], T41, .(T41, [])) → app29_out_aaa([], T41, .(T41, []))
app29_in_aaa(.(T48, T51), T52, .(T48, X78)) → U4_aaa(T48, T51, T52, X78, app29_in_aaa(T51, T52, X78))
U4_aaa(T48, T51, T52, X78, app29_out_aaa(T51, T52, X78)) → app29_out_aaa(.(T48, T51), T52, .(T48, X78))
U3_aa(T34, T31, X52, app29_out_aaa(T33, T34, X52)) → rev18_out_aa(.(T34, T31), X52)
U1_aa(T32, T31, X52, rev18_out_aa(T31, X51)) → rev18_out_aa(.(T32, T31), X52)
U6_ag(T21, T20, T19, rev18_out_aa(T19, X34)) → rev1_out_ag(.(T21, .(T20, T19)), [])
rev1_in_ag(.(T24, .(T23, T19)), []) → U7_ag(T24, T23, T19, rev18_in_aa(T19, T22))
U7_ag(T24, T23, T19, rev18_out_aa(T19, T22)) → U8_ag(T24, T23, T19, app29_in_aaa(T22, T23, X35))
U8_ag(T24, T23, T19, app29_out_aaa(T22, T23, X35)) → rev1_out_ag(.(T24, .(T23, T19)), [])
rev1_in_ag(.(T85, []), .(T85, [])) → rev1_out_ag(.(T85, []), .(T85, []))
rev1_in_ag(.(T94, .(T93, T92)), T75) → U9_ag(T94, T93, T92, T75, rev18_in_aa(T92, X134))
U9_ag(T94, T93, T92, T75, rev18_out_aa(T92, X134)) → rev1_out_ag(.(T94, .(T93, T92)), T75)
rev1_in_ag(.(T97, .(T96, T92)), T75) → U10_ag(T97, T96, T92, T75, rev18_in_aa(T92, T95))
U10_ag(T97, T96, T92, T75, rev18_out_aa(T92, T95)) → U11_ag(T97, T96, T92, T75, app29_in_aaa(T95, T96, X135))
U11_ag(T97, T96, T92, T75, app29_out_aaa(T95, T96, X135)) → rev1_out_ag(.(T97, .(T96, T92)), T75)
rev1_in_ag(.(T112, .(T96, T92)), .(T112, [])) → U12_ag(T112, T96, T92, rev18_in_aa(T92, T95))
U12_ag(T112, T96, T92, rev18_out_aa(T92, T95)) → U13_ag(T112, T96, T92, app29_in_aag(T95, T96, []))
app29_in_aag([], T41, .(T41, [])) → app29_out_aag([], T41, .(T41, []))
app29_in_aag(.(T48, T51), T52, .(T48, X78)) → U4_aag(T48, T51, T52, X78, app29_in_aag(T51, T52, X78))
U4_aag(T48, T51, T52, X78, app29_out_aag(T51, T52, X78)) → app29_out_aag(.(T48, T51), T52, .(T48, X78))
U13_ag(T112, T96, T92, app29_out_aag(T95, T96, [])) → rev1_out_ag(.(T112, .(T96, T92)), .(T112, []))
rev1_in_ag(.(T126, .(T96, T92)), .(T121, T124)) → U14_ag(T126, T96, T92, T121, T124, rev18_in_aa(T92, T95))
U14_ag(T126, T96, T92, T121, T124, rev18_out_aa(T92, T95)) → U15_ag(T126, T96, T92, T121, T124, app29_in_aaa(T95, T96, .(T121, T125)))
U15_ag(T126, T96, T92, T121, T124, app29_out_aaa(T95, T96, .(T121, T125))) → U16_ag(T126, T96, T92, T121, T124, app69_in_gag(T125, T126, T124))
app69_in_gag([], T133, .(T133, [])) → app69_out_gag([], T133, .(T133, []))
app69_in_gag(.(T142, T146), T147, .(T142, T145)) → U5_gag(T142, T146, T147, T145, app69_in_gag(T146, T147, T145))
U5_gag(T142, T146, T147, T145, app69_out_gag(T146, T147, T145)) → app69_out_gag(.(T142, T146), T147, .(T142, T145))
U16_ag(T126, T96, T92, T121, T124, app69_out_gag(T125, T126, T124)) → rev1_out_ag(.(T126, .(T96, T92)), .(T121, T124))
REV18_IN_AA(.(T32, T31), X52) → REV18_IN_AA(T31, X51)
REV18_IN_AA → REV18_IN_AA
rev1_in_ag([], []) → rev1_out_ag([], [])
rev1_in_ag(.(T21, .(T20, T19)), []) → U6_ag(T21, T20, T19, rev18_in_aa(T19, X34))
rev18_in_aa([], []) → rev18_out_aa([], [])
rev18_in_aa(.(T32, T31), X52) → U1_aa(T32, T31, X52, rev18_in_aa(T31, X51))
rev18_in_aa(.(T34, T31), X52) → U2_aa(T34, T31, X52, rev18_in_aa(T31, T33))
U2_aa(T34, T31, X52, rev18_out_aa(T31, T33)) → U3_aa(T34, T31, X52, app29_in_aaa(T33, T34, X52))
app29_in_aaa([], T41, .(T41, [])) → app29_out_aaa([], T41, .(T41, []))
app29_in_aaa(.(T48, T51), T52, .(T48, X78)) → U4_aaa(T48, T51, T52, X78, app29_in_aaa(T51, T52, X78))
U4_aaa(T48, T51, T52, X78, app29_out_aaa(T51, T52, X78)) → app29_out_aaa(.(T48, T51), T52, .(T48, X78))
U3_aa(T34, T31, X52, app29_out_aaa(T33, T34, X52)) → rev18_out_aa(.(T34, T31), X52)
U1_aa(T32, T31, X52, rev18_out_aa(T31, X51)) → rev18_out_aa(.(T32, T31), X52)
U6_ag(T21, T20, T19, rev18_out_aa(T19, X34)) → rev1_out_ag(.(T21, .(T20, T19)), [])
rev1_in_ag(.(T24, .(T23, T19)), []) → U7_ag(T24, T23, T19, rev18_in_aa(T19, T22))
U7_ag(T24, T23, T19, rev18_out_aa(T19, T22)) → U8_ag(T24, T23, T19, app29_in_aaa(T22, T23, X35))
U8_ag(T24, T23, T19, app29_out_aaa(T22, T23, X35)) → rev1_out_ag(.(T24, .(T23, T19)), [])
rev1_in_ag(.(T85, []), .(T85, [])) → rev1_out_ag(.(T85, []), .(T85, []))
rev1_in_ag(.(T94, .(T93, T92)), T75) → U9_ag(T94, T93, T92, T75, rev18_in_aa(T92, X134))
U9_ag(T94, T93, T92, T75, rev18_out_aa(T92, X134)) → rev1_out_ag(.(T94, .(T93, T92)), T75)
rev1_in_ag(.(T97, .(T96, T92)), T75) → U10_ag(T97, T96, T92, T75, rev18_in_aa(T92, T95))
U10_ag(T97, T96, T92, T75, rev18_out_aa(T92, T95)) → U11_ag(T97, T96, T92, T75, app29_in_aaa(T95, T96, X135))
U11_ag(T97, T96, T92, T75, app29_out_aaa(T95, T96, X135)) → rev1_out_ag(.(T97, .(T96, T92)), T75)
rev1_in_ag(.(T112, .(T96, T92)), .(T112, [])) → U12_ag(T112, T96, T92, rev18_in_aa(T92, T95))
U12_ag(T112, T96, T92, rev18_out_aa(T92, T95)) → U13_ag(T112, T96, T92, app29_in_aag(T95, T96, []))
app29_in_aag([], T41, .(T41, [])) → app29_out_aag([], T41, .(T41, []))
app29_in_aag(.(T48, T51), T52, .(T48, X78)) → U4_aag(T48, T51, T52, X78, app29_in_aag(T51, T52, X78))
U4_aag(T48, T51, T52, X78, app29_out_aag(T51, T52, X78)) → app29_out_aag(.(T48, T51), T52, .(T48, X78))
U13_ag(T112, T96, T92, app29_out_aag(T95, T96, [])) → rev1_out_ag(.(T112, .(T96, T92)), .(T112, []))
rev1_in_ag(.(T126, .(T96, T92)), .(T121, T124)) → U14_ag(T126, T96, T92, T121, T124, rev18_in_aa(T92, T95))
U14_ag(T126, T96, T92, T121, T124, rev18_out_aa(T92, T95)) → U15_ag(T126, T96, T92, T121, T124, app29_in_aaa(T95, T96, .(T121, T125)))
U15_ag(T126, T96, T92, T121, T124, app29_out_aaa(T95, T96, .(T121, T125))) → U16_ag(T126, T96, T92, T121, T124, app69_in_gag(T125, T126, T124))
app69_in_gag([], T133, .(T133, [])) → app69_out_gag([], T133, .(T133, []))
app69_in_gag(.(T142, T146), T147, .(T142, T145)) → U5_gag(T142, T146, T147, T145, app69_in_gag(T146, T147, T145))
U5_gag(T142, T146, T147, T145, app69_out_gag(T146, T147, T145)) → app69_out_gag(.(T142, T146), T147, .(T142, T145))
U16_ag(T126, T96, T92, T121, T124, app69_out_gag(T125, T126, T124)) → rev1_out_ag(.(T126, .(T96, T92)), .(T121, T124))
Infinitary Constructor Rewriting Termination of PiTRS implies Termination of Prolog
rev1_in_ag([], []) → rev1_out_ag([], [])
rev1_in_ag(.(T21, .(T20, T19)), []) → U6_ag(T21, T20, T19, rev18_in_aa(T19, X34))
rev18_in_aa([], []) → rev18_out_aa([], [])
rev18_in_aa(.(T32, T31), X52) → U1_aa(T32, T31, X52, rev18_in_aa(T31, X51))
rev18_in_aa(.(T34, T31), X52) → U2_aa(T34, T31, X52, rev18_in_aa(T31, T33))
U2_aa(T34, T31, X52, rev18_out_aa(T31, T33)) → U3_aa(T34, T31, X52, app29_in_aaa(T33, T34, X52))
app29_in_aaa([], T41, .(T41, [])) → app29_out_aaa([], T41, .(T41, []))
app29_in_aaa(.(T48, T51), T52, .(T48, X78)) → U4_aaa(T48, T51, T52, X78, app29_in_aaa(T51, T52, X78))
U4_aaa(T48, T51, T52, X78, app29_out_aaa(T51, T52, X78)) → app29_out_aaa(.(T48, T51), T52, .(T48, X78))
U3_aa(T34, T31, X52, app29_out_aaa(T33, T34, X52)) → rev18_out_aa(.(T34, T31), X52)
U1_aa(T32, T31, X52, rev18_out_aa(T31, X51)) → rev18_out_aa(.(T32, T31), X52)
U6_ag(T21, T20, T19, rev18_out_aa(T19, X34)) → rev1_out_ag(.(T21, .(T20, T19)), [])
rev1_in_ag(.(T24, .(T23, T19)), []) → U7_ag(T24, T23, T19, rev18_in_aa(T19, T22))
U7_ag(T24, T23, T19, rev18_out_aa(T19, T22)) → U8_ag(T24, T23, T19, app29_in_aaa(T22, T23, X35))
U8_ag(T24, T23, T19, app29_out_aaa(T22, T23, X35)) → rev1_out_ag(.(T24, .(T23, T19)), [])
rev1_in_ag(.(T85, []), .(T85, [])) → rev1_out_ag(.(T85, []), .(T85, []))
rev1_in_ag(.(T94, .(T93, T92)), T75) → U9_ag(T94, T93, T92, T75, rev18_in_aa(T92, X134))
U9_ag(T94, T93, T92, T75, rev18_out_aa(T92, X134)) → rev1_out_ag(.(T94, .(T93, T92)), T75)
rev1_in_ag(.(T97, .(T96, T92)), T75) → U10_ag(T97, T96, T92, T75, rev18_in_aa(T92, T95))
U10_ag(T97, T96, T92, T75, rev18_out_aa(T92, T95)) → U11_ag(T97, T96, T92, T75, app29_in_aaa(T95, T96, X135))
U11_ag(T97, T96, T92, T75, app29_out_aaa(T95, T96, X135)) → rev1_out_ag(.(T97, .(T96, T92)), T75)
rev1_in_ag(.(T112, .(T96, T92)), .(T112, [])) → U12_ag(T112, T96, T92, rev18_in_aa(T92, T95))
U12_ag(T112, T96, T92, rev18_out_aa(T92, T95)) → U13_ag(T112, T96, T92, app29_in_aag(T95, T96, []))
app29_in_aag([], T41, .(T41, [])) → app29_out_aag([], T41, .(T41, []))
app29_in_aag(.(T48, T51), T52, .(T48, X78)) → U4_aag(T48, T51, T52, X78, app29_in_aag(T51, T52, X78))
U4_aag(T48, T51, T52, X78, app29_out_aag(T51, T52, X78)) → app29_out_aag(.(T48, T51), T52, .(T48, X78))
U13_ag(T112, T96, T92, app29_out_aag(T95, T96, [])) → rev1_out_ag(.(T112, .(T96, T92)), .(T112, []))
rev1_in_ag(.(T126, .(T96, T92)), .(T121, T124)) → U14_ag(T126, T96, T92, T121, T124, rev18_in_aa(T92, T95))
U14_ag(T126, T96, T92, T121, T124, rev18_out_aa(T92, T95)) → U15_ag(T126, T96, T92, T121, T124, app29_in_aaa(T95, T96, .(T121, T125)))
U15_ag(T126, T96, T92, T121, T124, app29_out_aaa(T95, T96, .(T121, T125))) → U16_ag(T126, T96, T92, T121, T124, app69_in_gag(T125, T126, T124))
app69_in_gag([], T133, .(T133, [])) → app69_out_gag([], T133, .(T133, []))
app69_in_gag(.(T142, T146), T147, .(T142, T145)) → U5_gag(T142, T146, T147, T145, app69_in_gag(T146, T147, T145))
U5_gag(T142, T146, T147, T145, app69_out_gag(T146, T147, T145)) → app69_out_gag(.(T142, T146), T147, .(T142, T145))
U16_ag(T126, T96, T92, T121, T124, app69_out_gag(T125, T126, T124)) → rev1_out_ag(.(T126, .(T96, T92)), .(T121, T124))
REV1_IN_AG(.(T21, .(T20, T19)), []) → U6_AG(T21, T20, T19, rev18_in_aa(T19, X34))
REV1_IN_AG(.(T21, .(T20, T19)), []) → REV18_IN_AA(T19, X34)
REV18_IN_AA(.(T32, T31), X52) → U1_AA(T32, T31, X52, rev18_in_aa(T31, X51))
REV18_IN_AA(.(T32, T31), X52) → REV18_IN_AA(T31, X51)
REV18_IN_AA(.(T34, T31), X52) → U2_AA(T34, T31, X52, rev18_in_aa(T31, T33))
U2_AA(T34, T31, X52, rev18_out_aa(T31, T33)) → U3_AA(T34, T31, X52, app29_in_aaa(T33, T34, X52))
U2_AA(T34, T31, X52, rev18_out_aa(T31, T33)) → APP29_IN_AAA(T33, T34, X52)
APP29_IN_AAA(.(T48, T51), T52, .(T48, X78)) → U4_AAA(T48, T51, T52, X78, app29_in_aaa(T51, T52, X78))
APP29_IN_AAA(.(T48, T51), T52, .(T48, X78)) → APP29_IN_AAA(T51, T52, X78)
REV1_IN_AG(.(T24, .(T23, T19)), []) → U7_AG(T24, T23, T19, rev18_in_aa(T19, T22))
U7_AG(T24, T23, T19, rev18_out_aa(T19, T22)) → U8_AG(T24, T23, T19, app29_in_aaa(T22, T23, X35))
U7_AG(T24, T23, T19, rev18_out_aa(T19, T22)) → APP29_IN_AAA(T22, T23, X35)
REV1_IN_AG(.(T94, .(T93, T92)), T75) → U9_AG(T94, T93, T92, T75, rev18_in_aa(T92, X134))
REV1_IN_AG(.(T94, .(T93, T92)), T75) → REV18_IN_AA(T92, X134)
REV1_IN_AG(.(T97, .(T96, T92)), T75) → U10_AG(T97, T96, T92, T75, rev18_in_aa(T92, T95))
U10_AG(T97, T96, T92, T75, rev18_out_aa(T92, T95)) → U11_AG(T97, T96, T92, T75, app29_in_aaa(T95, T96, X135))
U10_AG(T97, T96, T92, T75, rev18_out_aa(T92, T95)) → APP29_IN_AAA(T95, T96, X135)
REV1_IN_AG(.(T112, .(T96, T92)), .(T112, [])) → U12_AG(T112, T96, T92, rev18_in_aa(T92, T95))
REV1_IN_AG(.(T112, .(T96, T92)), .(T112, [])) → REV18_IN_AA(T92, T95)
U12_AG(T112, T96, T92, rev18_out_aa(T92, T95)) → U13_AG(T112, T96, T92, app29_in_aag(T95, T96, []))
U12_AG(T112, T96, T92, rev18_out_aa(T92, T95)) → APP29_IN_AAG(T95, T96, [])
APP29_IN_AAG(.(T48, T51), T52, .(T48, X78)) → U4_AAG(T48, T51, T52, X78, app29_in_aag(T51, T52, X78))
APP29_IN_AAG(.(T48, T51), T52, .(T48, X78)) → APP29_IN_AAG(T51, T52, X78)
REV1_IN_AG(.(T126, .(T96, T92)), .(T121, T124)) → U14_AG(T126, T96, T92, T121, T124, rev18_in_aa(T92, T95))
REV1_IN_AG(.(T126, .(T96, T92)), .(T121, T124)) → REV18_IN_AA(T92, T95)
U14_AG(T126, T96, T92, T121, T124, rev18_out_aa(T92, T95)) → U15_AG(T126, T96, T92, T121, T124, app29_in_aaa(T95, T96, .(T121, T125)))
U14_AG(T126, T96, T92, T121, T124, rev18_out_aa(T92, T95)) → APP29_IN_AAA(T95, T96, .(T121, T125))
U15_AG(T126, T96, T92, T121, T124, app29_out_aaa(T95, T96, .(T121, T125))) → U16_AG(T126, T96, T92, T121, T124, app69_in_gag(T125, T126, T124))
U15_AG(T126, T96, T92, T121, T124, app29_out_aaa(T95, T96, .(T121, T125))) → APP69_IN_GAG(T125, T126, T124)
APP69_IN_GAG(.(T142, T146), T147, .(T142, T145)) → U5_GAG(T142, T146, T147, T145, app69_in_gag(T146, T147, T145))
APP69_IN_GAG(.(T142, T146), T147, .(T142, T145)) → APP69_IN_GAG(T146, T147, T145)
rev1_in_ag([], []) → rev1_out_ag([], [])
rev1_in_ag(.(T21, .(T20, T19)), []) → U6_ag(T21, T20, T19, rev18_in_aa(T19, X34))
rev18_in_aa([], []) → rev18_out_aa([], [])
rev18_in_aa(.(T32, T31), X52) → U1_aa(T32, T31, X52, rev18_in_aa(T31, X51))
rev18_in_aa(.(T34, T31), X52) → U2_aa(T34, T31, X52, rev18_in_aa(T31, T33))
U2_aa(T34, T31, X52, rev18_out_aa(T31, T33)) → U3_aa(T34, T31, X52, app29_in_aaa(T33, T34, X52))
app29_in_aaa([], T41, .(T41, [])) → app29_out_aaa([], T41, .(T41, []))
app29_in_aaa(.(T48, T51), T52, .(T48, X78)) → U4_aaa(T48, T51, T52, X78, app29_in_aaa(T51, T52, X78))
U4_aaa(T48, T51, T52, X78, app29_out_aaa(T51, T52, X78)) → app29_out_aaa(.(T48, T51), T52, .(T48, X78))
U3_aa(T34, T31, X52, app29_out_aaa(T33, T34, X52)) → rev18_out_aa(.(T34, T31), X52)
U1_aa(T32, T31, X52, rev18_out_aa(T31, X51)) → rev18_out_aa(.(T32, T31), X52)
U6_ag(T21, T20, T19, rev18_out_aa(T19, X34)) → rev1_out_ag(.(T21, .(T20, T19)), [])
rev1_in_ag(.(T24, .(T23, T19)), []) → U7_ag(T24, T23, T19, rev18_in_aa(T19, T22))
U7_ag(T24, T23, T19, rev18_out_aa(T19, T22)) → U8_ag(T24, T23, T19, app29_in_aaa(T22, T23, X35))
U8_ag(T24, T23, T19, app29_out_aaa(T22, T23, X35)) → rev1_out_ag(.(T24, .(T23, T19)), [])
rev1_in_ag(.(T85, []), .(T85, [])) → rev1_out_ag(.(T85, []), .(T85, []))
rev1_in_ag(.(T94, .(T93, T92)), T75) → U9_ag(T94, T93, T92, T75, rev18_in_aa(T92, X134))
U9_ag(T94, T93, T92, T75, rev18_out_aa(T92, X134)) → rev1_out_ag(.(T94, .(T93, T92)), T75)
rev1_in_ag(.(T97, .(T96, T92)), T75) → U10_ag(T97, T96, T92, T75, rev18_in_aa(T92, T95))
U10_ag(T97, T96, T92, T75, rev18_out_aa(T92, T95)) → U11_ag(T97, T96, T92, T75, app29_in_aaa(T95, T96, X135))
U11_ag(T97, T96, T92, T75, app29_out_aaa(T95, T96, X135)) → rev1_out_ag(.(T97, .(T96, T92)), T75)
rev1_in_ag(.(T112, .(T96, T92)), .(T112, [])) → U12_ag(T112, T96, T92, rev18_in_aa(T92, T95))
U12_ag(T112, T96, T92, rev18_out_aa(T92, T95)) → U13_ag(T112, T96, T92, app29_in_aag(T95, T96, []))
app29_in_aag([], T41, .(T41, [])) → app29_out_aag([], T41, .(T41, []))
app29_in_aag(.(T48, T51), T52, .(T48, X78)) → U4_aag(T48, T51, T52, X78, app29_in_aag(T51, T52, X78))
U4_aag(T48, T51, T52, X78, app29_out_aag(T51, T52, X78)) → app29_out_aag(.(T48, T51), T52, .(T48, X78))
U13_ag(T112, T96, T92, app29_out_aag(T95, T96, [])) → rev1_out_ag(.(T112, .(T96, T92)), .(T112, []))
rev1_in_ag(.(T126, .(T96, T92)), .(T121, T124)) → U14_ag(T126, T96, T92, T121, T124, rev18_in_aa(T92, T95))
U14_ag(T126, T96, T92, T121, T124, rev18_out_aa(T92, T95)) → U15_ag(T126, T96, T92, T121, T124, app29_in_aaa(T95, T96, .(T121, T125)))
U15_ag(T126, T96, T92, T121, T124, app29_out_aaa(T95, T96, .(T121, T125))) → U16_ag(T126, T96, T92, T121, T124, app69_in_gag(T125, T126, T124))
app69_in_gag([], T133, .(T133, [])) → app69_out_gag([], T133, .(T133, []))
app69_in_gag(.(T142, T146), T147, .(T142, T145)) → U5_gag(T142, T146, T147, T145, app69_in_gag(T146, T147, T145))
U5_gag(T142, T146, T147, T145, app69_out_gag(T146, T147, T145)) → app69_out_gag(.(T142, T146), T147, .(T142, T145))
U16_ag(T126, T96, T92, T121, T124, app69_out_gag(T125, T126, T124)) → rev1_out_ag(.(T126, .(T96, T92)), .(T121, T124))
REV1_IN_AG(.(T21, .(T20, T19)), []) → U6_AG(T21, T20, T19, rev18_in_aa(T19, X34))
REV1_IN_AG(.(T21, .(T20, T19)), []) → REV18_IN_AA(T19, X34)
REV18_IN_AA(.(T32, T31), X52) → U1_AA(T32, T31, X52, rev18_in_aa(T31, X51))
REV18_IN_AA(.(T32, T31), X52) → REV18_IN_AA(T31, X51)
REV18_IN_AA(.(T34, T31), X52) → U2_AA(T34, T31, X52, rev18_in_aa(T31, T33))
U2_AA(T34, T31, X52, rev18_out_aa(T31, T33)) → U3_AA(T34, T31, X52, app29_in_aaa(T33, T34, X52))
U2_AA(T34, T31, X52, rev18_out_aa(T31, T33)) → APP29_IN_AAA(T33, T34, X52)
APP29_IN_AAA(.(T48, T51), T52, .(T48, X78)) → U4_AAA(T48, T51, T52, X78, app29_in_aaa(T51, T52, X78))
APP29_IN_AAA(.(T48, T51), T52, .(T48, X78)) → APP29_IN_AAA(T51, T52, X78)
REV1_IN_AG(.(T24, .(T23, T19)), []) → U7_AG(T24, T23, T19, rev18_in_aa(T19, T22))
U7_AG(T24, T23, T19, rev18_out_aa(T19, T22)) → U8_AG(T24, T23, T19, app29_in_aaa(T22, T23, X35))
U7_AG(T24, T23, T19, rev18_out_aa(T19, T22)) → APP29_IN_AAA(T22, T23, X35)
REV1_IN_AG(.(T94, .(T93, T92)), T75) → U9_AG(T94, T93, T92, T75, rev18_in_aa(T92, X134))
REV1_IN_AG(.(T94, .(T93, T92)), T75) → REV18_IN_AA(T92, X134)
REV1_IN_AG(.(T97, .(T96, T92)), T75) → U10_AG(T97, T96, T92, T75, rev18_in_aa(T92, T95))
U10_AG(T97, T96, T92, T75, rev18_out_aa(T92, T95)) → U11_AG(T97, T96, T92, T75, app29_in_aaa(T95, T96, X135))
U10_AG(T97, T96, T92, T75, rev18_out_aa(T92, T95)) → APP29_IN_AAA(T95, T96, X135)
REV1_IN_AG(.(T112, .(T96, T92)), .(T112, [])) → U12_AG(T112, T96, T92, rev18_in_aa(T92, T95))
REV1_IN_AG(.(T112, .(T96, T92)), .(T112, [])) → REV18_IN_AA(T92, T95)
U12_AG(T112, T96, T92, rev18_out_aa(T92, T95)) → U13_AG(T112, T96, T92, app29_in_aag(T95, T96, []))
U12_AG(T112, T96, T92, rev18_out_aa(T92, T95)) → APP29_IN_AAG(T95, T96, [])
APP29_IN_AAG(.(T48, T51), T52, .(T48, X78)) → U4_AAG(T48, T51, T52, X78, app29_in_aag(T51, T52, X78))
APP29_IN_AAG(.(T48, T51), T52, .(T48, X78)) → APP29_IN_AAG(T51, T52, X78)
REV1_IN_AG(.(T126, .(T96, T92)), .(T121, T124)) → U14_AG(T126, T96, T92, T121, T124, rev18_in_aa(T92, T95))
REV1_IN_AG(.(T126, .(T96, T92)), .(T121, T124)) → REV18_IN_AA(T92, T95)
U14_AG(T126, T96, T92, T121, T124, rev18_out_aa(T92, T95)) → U15_AG(T126, T96, T92, T121, T124, app29_in_aaa(T95, T96, .(T121, T125)))
U14_AG(T126, T96, T92, T121, T124, rev18_out_aa(T92, T95)) → APP29_IN_AAA(T95, T96, .(T121, T125))
U15_AG(T126, T96, T92, T121, T124, app29_out_aaa(T95, T96, .(T121, T125))) → U16_AG(T126, T96, T92, T121, T124, app69_in_gag(T125, T126, T124))
U15_AG(T126, T96, T92, T121, T124, app29_out_aaa(T95, T96, .(T121, T125))) → APP69_IN_GAG(T125, T126, T124)
APP69_IN_GAG(.(T142, T146), T147, .(T142, T145)) → U5_GAG(T142, T146, T147, T145, app69_in_gag(T146, T147, T145))
APP69_IN_GAG(.(T142, T146), T147, .(T142, T145)) → APP69_IN_GAG(T146, T147, T145)
rev1_in_ag([], []) → rev1_out_ag([], [])
rev1_in_ag(.(T21, .(T20, T19)), []) → U6_ag(T21, T20, T19, rev18_in_aa(T19, X34))
rev18_in_aa([], []) → rev18_out_aa([], [])
rev18_in_aa(.(T32, T31), X52) → U1_aa(T32, T31, X52, rev18_in_aa(T31, X51))
rev18_in_aa(.(T34, T31), X52) → U2_aa(T34, T31, X52, rev18_in_aa(T31, T33))
U2_aa(T34, T31, X52, rev18_out_aa(T31, T33)) → U3_aa(T34, T31, X52, app29_in_aaa(T33, T34, X52))
app29_in_aaa([], T41, .(T41, [])) → app29_out_aaa([], T41, .(T41, []))
app29_in_aaa(.(T48, T51), T52, .(T48, X78)) → U4_aaa(T48, T51, T52, X78, app29_in_aaa(T51, T52, X78))
U4_aaa(T48, T51, T52, X78, app29_out_aaa(T51, T52, X78)) → app29_out_aaa(.(T48, T51), T52, .(T48, X78))
U3_aa(T34, T31, X52, app29_out_aaa(T33, T34, X52)) → rev18_out_aa(.(T34, T31), X52)
U1_aa(T32, T31, X52, rev18_out_aa(T31, X51)) → rev18_out_aa(.(T32, T31), X52)
U6_ag(T21, T20, T19, rev18_out_aa(T19, X34)) → rev1_out_ag(.(T21, .(T20, T19)), [])
rev1_in_ag(.(T24, .(T23, T19)), []) → U7_ag(T24, T23, T19, rev18_in_aa(T19, T22))
U7_ag(T24, T23, T19, rev18_out_aa(T19, T22)) → U8_ag(T24, T23, T19, app29_in_aaa(T22, T23, X35))
U8_ag(T24, T23, T19, app29_out_aaa(T22, T23, X35)) → rev1_out_ag(.(T24, .(T23, T19)), [])
rev1_in_ag(.(T85, []), .(T85, [])) → rev1_out_ag(.(T85, []), .(T85, []))
rev1_in_ag(.(T94, .(T93, T92)), T75) → U9_ag(T94, T93, T92, T75, rev18_in_aa(T92, X134))
U9_ag(T94, T93, T92, T75, rev18_out_aa(T92, X134)) → rev1_out_ag(.(T94, .(T93, T92)), T75)
rev1_in_ag(.(T97, .(T96, T92)), T75) → U10_ag(T97, T96, T92, T75, rev18_in_aa(T92, T95))
U10_ag(T97, T96, T92, T75, rev18_out_aa(T92, T95)) → U11_ag(T97, T96, T92, T75, app29_in_aaa(T95, T96, X135))
U11_ag(T97, T96, T92, T75, app29_out_aaa(T95, T96, X135)) → rev1_out_ag(.(T97, .(T96, T92)), T75)
rev1_in_ag(.(T112, .(T96, T92)), .(T112, [])) → U12_ag(T112, T96, T92, rev18_in_aa(T92, T95))
U12_ag(T112, T96, T92, rev18_out_aa(T92, T95)) → U13_ag(T112, T96, T92, app29_in_aag(T95, T96, []))
app29_in_aag([], T41, .(T41, [])) → app29_out_aag([], T41, .(T41, []))
app29_in_aag(.(T48, T51), T52, .(T48, X78)) → U4_aag(T48, T51, T52, X78, app29_in_aag(T51, T52, X78))
U4_aag(T48, T51, T52, X78, app29_out_aag(T51, T52, X78)) → app29_out_aag(.(T48, T51), T52, .(T48, X78))
U13_ag(T112, T96, T92, app29_out_aag(T95, T96, [])) → rev1_out_ag(.(T112, .(T96, T92)), .(T112, []))
rev1_in_ag(.(T126, .(T96, T92)), .(T121, T124)) → U14_ag(T126, T96, T92, T121, T124, rev18_in_aa(T92, T95))
U14_ag(T126, T96, T92, T121, T124, rev18_out_aa(T92, T95)) → U15_ag(T126, T96, T92, T121, T124, app29_in_aaa(T95, T96, .(T121, T125)))
U15_ag(T126, T96, T92, T121, T124, app29_out_aaa(T95, T96, .(T121, T125))) → U16_ag(T126, T96, T92, T121, T124, app69_in_gag(T125, T126, T124))
app69_in_gag([], T133, .(T133, [])) → app69_out_gag([], T133, .(T133, []))
app69_in_gag(.(T142, T146), T147, .(T142, T145)) → U5_gag(T142, T146, T147, T145, app69_in_gag(T146, T147, T145))
U5_gag(T142, T146, T147, T145, app69_out_gag(T146, T147, T145)) → app69_out_gag(.(T142, T146), T147, .(T142, T145))
U16_ag(T126, T96, T92, T121, T124, app69_out_gag(T125, T126, T124)) → rev1_out_ag(.(T126, .(T96, T92)), .(T121, T124))
APP69_IN_GAG(.(T142, T146), T147, .(T142, T145)) → APP69_IN_GAG(T146, T147, T145)
rev1_in_ag([], []) → rev1_out_ag([], [])
rev1_in_ag(.(T21, .(T20, T19)), []) → U6_ag(T21, T20, T19, rev18_in_aa(T19, X34))
rev18_in_aa([], []) → rev18_out_aa([], [])
rev18_in_aa(.(T32, T31), X52) → U1_aa(T32, T31, X52, rev18_in_aa(T31, X51))
rev18_in_aa(.(T34, T31), X52) → U2_aa(T34, T31, X52, rev18_in_aa(T31, T33))
U2_aa(T34, T31, X52, rev18_out_aa(T31, T33)) → U3_aa(T34, T31, X52, app29_in_aaa(T33, T34, X52))
app29_in_aaa([], T41, .(T41, [])) → app29_out_aaa([], T41, .(T41, []))
app29_in_aaa(.(T48, T51), T52, .(T48, X78)) → U4_aaa(T48, T51, T52, X78, app29_in_aaa(T51, T52, X78))
U4_aaa(T48, T51, T52, X78, app29_out_aaa(T51, T52, X78)) → app29_out_aaa(.(T48, T51), T52, .(T48, X78))
U3_aa(T34, T31, X52, app29_out_aaa(T33, T34, X52)) → rev18_out_aa(.(T34, T31), X52)
U1_aa(T32, T31, X52, rev18_out_aa(T31, X51)) → rev18_out_aa(.(T32, T31), X52)
U6_ag(T21, T20, T19, rev18_out_aa(T19, X34)) → rev1_out_ag(.(T21, .(T20, T19)), [])
rev1_in_ag(.(T24, .(T23, T19)), []) → U7_ag(T24, T23, T19, rev18_in_aa(T19, T22))
U7_ag(T24, T23, T19, rev18_out_aa(T19, T22)) → U8_ag(T24, T23, T19, app29_in_aaa(T22, T23, X35))
U8_ag(T24, T23, T19, app29_out_aaa(T22, T23, X35)) → rev1_out_ag(.(T24, .(T23, T19)), [])
rev1_in_ag(.(T85, []), .(T85, [])) → rev1_out_ag(.(T85, []), .(T85, []))
rev1_in_ag(.(T94, .(T93, T92)), T75) → U9_ag(T94, T93, T92, T75, rev18_in_aa(T92, X134))
U9_ag(T94, T93, T92, T75, rev18_out_aa(T92, X134)) → rev1_out_ag(.(T94, .(T93, T92)), T75)
rev1_in_ag(.(T97, .(T96, T92)), T75) → U10_ag(T97, T96, T92, T75, rev18_in_aa(T92, T95))
U10_ag(T97, T96, T92, T75, rev18_out_aa(T92, T95)) → U11_ag(T97, T96, T92, T75, app29_in_aaa(T95, T96, X135))
U11_ag(T97, T96, T92, T75, app29_out_aaa(T95, T96, X135)) → rev1_out_ag(.(T97, .(T96, T92)), T75)
rev1_in_ag(.(T112, .(T96, T92)), .(T112, [])) → U12_ag(T112, T96, T92, rev18_in_aa(T92, T95))
U12_ag(T112, T96, T92, rev18_out_aa(T92, T95)) → U13_ag(T112, T96, T92, app29_in_aag(T95, T96, []))
app29_in_aag([], T41, .(T41, [])) → app29_out_aag([], T41, .(T41, []))
app29_in_aag(.(T48, T51), T52, .(T48, X78)) → U4_aag(T48, T51, T52, X78, app29_in_aag(T51, T52, X78))
U4_aag(T48, T51, T52, X78, app29_out_aag(T51, T52, X78)) → app29_out_aag(.(T48, T51), T52, .(T48, X78))
U13_ag(T112, T96, T92, app29_out_aag(T95, T96, [])) → rev1_out_ag(.(T112, .(T96, T92)), .(T112, []))
rev1_in_ag(.(T126, .(T96, T92)), .(T121, T124)) → U14_ag(T126, T96, T92, T121, T124, rev18_in_aa(T92, T95))
U14_ag(T126, T96, T92, T121, T124, rev18_out_aa(T92, T95)) → U15_ag(T126, T96, T92, T121, T124, app29_in_aaa(T95, T96, .(T121, T125)))
U15_ag(T126, T96, T92, T121, T124, app29_out_aaa(T95, T96, .(T121, T125))) → U16_ag(T126, T96, T92, T121, T124, app69_in_gag(T125, T126, T124))
app69_in_gag([], T133, .(T133, [])) → app69_out_gag([], T133, .(T133, []))
app69_in_gag(.(T142, T146), T147, .(T142, T145)) → U5_gag(T142, T146, T147, T145, app69_in_gag(T146, T147, T145))
U5_gag(T142, T146, T147, T145, app69_out_gag(T146, T147, T145)) → app69_out_gag(.(T142, T146), T147, .(T142, T145))
U16_ag(T126, T96, T92, T121, T124, app69_out_gag(T125, T126, T124)) → rev1_out_ag(.(T126, .(T96, T92)), .(T121, T124))
APP69_IN_GAG(.(T142, T146), T147, .(T142, T145)) → APP69_IN_GAG(T146, T147, T145)
APP69_IN_GAG(.(T146), .(T145)) → APP69_IN_GAG(T146, T145)
From the DPs we obtained the following set of size-change graphs:
APP29_IN_AAG(.(T48, T51), T52, .(T48, X78)) → APP29_IN_AAG(T51, T52, X78)
rev1_in_ag([], []) → rev1_out_ag([], [])
rev1_in_ag(.(T21, .(T20, T19)), []) → U6_ag(T21, T20, T19, rev18_in_aa(T19, X34))
rev18_in_aa([], []) → rev18_out_aa([], [])
rev18_in_aa(.(T32, T31), X52) → U1_aa(T32, T31, X52, rev18_in_aa(T31, X51))
rev18_in_aa(.(T34, T31), X52) → U2_aa(T34, T31, X52, rev18_in_aa(T31, T33))
U2_aa(T34, T31, X52, rev18_out_aa(T31, T33)) → U3_aa(T34, T31, X52, app29_in_aaa(T33, T34, X52))
app29_in_aaa([], T41, .(T41, [])) → app29_out_aaa([], T41, .(T41, []))
app29_in_aaa(.(T48, T51), T52, .(T48, X78)) → U4_aaa(T48, T51, T52, X78, app29_in_aaa(T51, T52, X78))
U4_aaa(T48, T51, T52, X78, app29_out_aaa(T51, T52, X78)) → app29_out_aaa(.(T48, T51), T52, .(T48, X78))
U3_aa(T34, T31, X52, app29_out_aaa(T33, T34, X52)) → rev18_out_aa(.(T34, T31), X52)
U1_aa(T32, T31, X52, rev18_out_aa(T31, X51)) → rev18_out_aa(.(T32, T31), X52)
U6_ag(T21, T20, T19, rev18_out_aa(T19, X34)) → rev1_out_ag(.(T21, .(T20, T19)), [])
rev1_in_ag(.(T24, .(T23, T19)), []) → U7_ag(T24, T23, T19, rev18_in_aa(T19, T22))
U7_ag(T24, T23, T19, rev18_out_aa(T19, T22)) → U8_ag(T24, T23, T19, app29_in_aaa(T22, T23, X35))
U8_ag(T24, T23, T19, app29_out_aaa(T22, T23, X35)) → rev1_out_ag(.(T24, .(T23, T19)), [])
rev1_in_ag(.(T85, []), .(T85, [])) → rev1_out_ag(.(T85, []), .(T85, []))
rev1_in_ag(.(T94, .(T93, T92)), T75) → U9_ag(T94, T93, T92, T75, rev18_in_aa(T92, X134))
U9_ag(T94, T93, T92, T75, rev18_out_aa(T92, X134)) → rev1_out_ag(.(T94, .(T93, T92)), T75)
rev1_in_ag(.(T97, .(T96, T92)), T75) → U10_ag(T97, T96, T92, T75, rev18_in_aa(T92, T95))
U10_ag(T97, T96, T92, T75, rev18_out_aa(T92, T95)) → U11_ag(T97, T96, T92, T75, app29_in_aaa(T95, T96, X135))
U11_ag(T97, T96, T92, T75, app29_out_aaa(T95, T96, X135)) → rev1_out_ag(.(T97, .(T96, T92)), T75)
rev1_in_ag(.(T112, .(T96, T92)), .(T112, [])) → U12_ag(T112, T96, T92, rev18_in_aa(T92, T95))
U12_ag(T112, T96, T92, rev18_out_aa(T92, T95)) → U13_ag(T112, T96, T92, app29_in_aag(T95, T96, []))
app29_in_aag([], T41, .(T41, [])) → app29_out_aag([], T41, .(T41, []))
app29_in_aag(.(T48, T51), T52, .(T48, X78)) → U4_aag(T48, T51, T52, X78, app29_in_aag(T51, T52, X78))
U4_aag(T48, T51, T52, X78, app29_out_aag(T51, T52, X78)) → app29_out_aag(.(T48, T51), T52, .(T48, X78))
U13_ag(T112, T96, T92, app29_out_aag(T95, T96, [])) → rev1_out_ag(.(T112, .(T96, T92)), .(T112, []))
rev1_in_ag(.(T126, .(T96, T92)), .(T121, T124)) → U14_ag(T126, T96, T92, T121, T124, rev18_in_aa(T92, T95))
U14_ag(T126, T96, T92, T121, T124, rev18_out_aa(T92, T95)) → U15_ag(T126, T96, T92, T121, T124, app29_in_aaa(T95, T96, .(T121, T125)))
U15_ag(T126, T96, T92, T121, T124, app29_out_aaa(T95, T96, .(T121, T125))) → U16_ag(T126, T96, T92, T121, T124, app69_in_gag(T125, T126, T124))
app69_in_gag([], T133, .(T133, [])) → app69_out_gag([], T133, .(T133, []))
app69_in_gag(.(T142, T146), T147, .(T142, T145)) → U5_gag(T142, T146, T147, T145, app69_in_gag(T146, T147, T145))
U5_gag(T142, T146, T147, T145, app69_out_gag(T146, T147, T145)) → app69_out_gag(.(T142, T146), T147, .(T142, T145))
U16_ag(T126, T96, T92, T121, T124, app69_out_gag(T125, T126, T124)) → rev1_out_ag(.(T126, .(T96, T92)), .(T121, T124))
APP29_IN_AAG(.(T48, T51), T52, .(T48, X78)) → APP29_IN_AAG(T51, T52, X78)
APP29_IN_AAG(.(X78)) → APP29_IN_AAG(X78)
From the DPs we obtained the following set of size-change graphs:
APP29_IN_AAA(.(T48, T51), T52, .(T48, X78)) → APP29_IN_AAA(T51, T52, X78)
rev1_in_ag([], []) → rev1_out_ag([], [])
rev1_in_ag(.(T21, .(T20, T19)), []) → U6_ag(T21, T20, T19, rev18_in_aa(T19, X34))
rev18_in_aa([], []) → rev18_out_aa([], [])
rev18_in_aa(.(T32, T31), X52) → U1_aa(T32, T31, X52, rev18_in_aa(T31, X51))
rev18_in_aa(.(T34, T31), X52) → U2_aa(T34, T31, X52, rev18_in_aa(T31, T33))
U2_aa(T34, T31, X52, rev18_out_aa(T31, T33)) → U3_aa(T34, T31, X52, app29_in_aaa(T33, T34, X52))
app29_in_aaa([], T41, .(T41, [])) → app29_out_aaa([], T41, .(T41, []))
app29_in_aaa(.(T48, T51), T52, .(T48, X78)) → U4_aaa(T48, T51, T52, X78, app29_in_aaa(T51, T52, X78))
U4_aaa(T48, T51, T52, X78, app29_out_aaa(T51, T52, X78)) → app29_out_aaa(.(T48, T51), T52, .(T48, X78))
U3_aa(T34, T31, X52, app29_out_aaa(T33, T34, X52)) → rev18_out_aa(.(T34, T31), X52)
U1_aa(T32, T31, X52, rev18_out_aa(T31, X51)) → rev18_out_aa(.(T32, T31), X52)
U6_ag(T21, T20, T19, rev18_out_aa(T19, X34)) → rev1_out_ag(.(T21, .(T20, T19)), [])
rev1_in_ag(.(T24, .(T23, T19)), []) → U7_ag(T24, T23, T19, rev18_in_aa(T19, T22))
U7_ag(T24, T23, T19, rev18_out_aa(T19, T22)) → U8_ag(T24, T23, T19, app29_in_aaa(T22, T23, X35))
U8_ag(T24, T23, T19, app29_out_aaa(T22, T23, X35)) → rev1_out_ag(.(T24, .(T23, T19)), [])
rev1_in_ag(.(T85, []), .(T85, [])) → rev1_out_ag(.(T85, []), .(T85, []))
rev1_in_ag(.(T94, .(T93, T92)), T75) → U9_ag(T94, T93, T92, T75, rev18_in_aa(T92, X134))
U9_ag(T94, T93, T92, T75, rev18_out_aa(T92, X134)) → rev1_out_ag(.(T94, .(T93, T92)), T75)
rev1_in_ag(.(T97, .(T96, T92)), T75) → U10_ag(T97, T96, T92, T75, rev18_in_aa(T92, T95))
U10_ag(T97, T96, T92, T75, rev18_out_aa(T92, T95)) → U11_ag(T97, T96, T92, T75, app29_in_aaa(T95, T96, X135))
U11_ag(T97, T96, T92, T75, app29_out_aaa(T95, T96, X135)) → rev1_out_ag(.(T97, .(T96, T92)), T75)
rev1_in_ag(.(T112, .(T96, T92)), .(T112, [])) → U12_ag(T112, T96, T92, rev18_in_aa(T92, T95))
U12_ag(T112, T96, T92, rev18_out_aa(T92, T95)) → U13_ag(T112, T96, T92, app29_in_aag(T95, T96, []))
app29_in_aag([], T41, .(T41, [])) → app29_out_aag([], T41, .(T41, []))
app29_in_aag(.(T48, T51), T52, .(T48, X78)) → U4_aag(T48, T51, T52, X78, app29_in_aag(T51, T52, X78))
U4_aag(T48, T51, T52, X78, app29_out_aag(T51, T52, X78)) → app29_out_aag(.(T48, T51), T52, .(T48, X78))
U13_ag(T112, T96, T92, app29_out_aag(T95, T96, [])) → rev1_out_ag(.(T112, .(T96, T92)), .(T112, []))
rev1_in_ag(.(T126, .(T96, T92)), .(T121, T124)) → U14_ag(T126, T96, T92, T121, T124, rev18_in_aa(T92, T95))
U14_ag(T126, T96, T92, T121, T124, rev18_out_aa(T92, T95)) → U15_ag(T126, T96, T92, T121, T124, app29_in_aaa(T95, T96, .(T121, T125)))
U15_ag(T126, T96, T92, T121, T124, app29_out_aaa(T95, T96, .(T121, T125))) → U16_ag(T126, T96, T92, T121, T124, app69_in_gag(T125, T126, T124))
app69_in_gag([], T133, .(T133, [])) → app69_out_gag([], T133, .(T133, []))
app69_in_gag(.(T142, T146), T147, .(T142, T145)) → U5_gag(T142, T146, T147, T145, app69_in_gag(T146, T147, T145))
U5_gag(T142, T146, T147, T145, app69_out_gag(T146, T147, T145)) → app69_out_gag(.(T142, T146), T147, .(T142, T145))
U16_ag(T126, T96, T92, T121, T124, app69_out_gag(T125, T126, T124)) → rev1_out_ag(.(T126, .(T96, T92)), .(T121, T124))
APP29_IN_AAA(.(T48, T51), T52, .(T48, X78)) → APP29_IN_AAA(T51, T52, X78)
APP29_IN_AAA → APP29_IN_AAA
REV18_IN_AA(.(T32, T31), X52) → REV18_IN_AA(T31, X51)
rev1_in_ag([], []) → rev1_out_ag([], [])
rev1_in_ag(.(T21, .(T20, T19)), []) → U6_ag(T21, T20, T19, rev18_in_aa(T19, X34))
rev18_in_aa([], []) → rev18_out_aa([], [])
rev18_in_aa(.(T32, T31), X52) → U1_aa(T32, T31, X52, rev18_in_aa(T31, X51))
rev18_in_aa(.(T34, T31), X52) → U2_aa(T34, T31, X52, rev18_in_aa(T31, T33))
U2_aa(T34, T31, X52, rev18_out_aa(T31, T33)) → U3_aa(T34, T31, X52, app29_in_aaa(T33, T34, X52))
app29_in_aaa([], T41, .(T41, [])) → app29_out_aaa([], T41, .(T41, []))
app29_in_aaa(.(T48, T51), T52, .(T48, X78)) → U4_aaa(T48, T51, T52, X78, app29_in_aaa(T51, T52, X78))
U4_aaa(T48, T51, T52, X78, app29_out_aaa(T51, T52, X78)) → app29_out_aaa(.(T48, T51), T52, .(T48, X78))
U3_aa(T34, T31, X52, app29_out_aaa(T33, T34, X52)) → rev18_out_aa(.(T34, T31), X52)
U1_aa(T32, T31, X52, rev18_out_aa(T31, X51)) → rev18_out_aa(.(T32, T31), X52)
U6_ag(T21, T20, T19, rev18_out_aa(T19, X34)) → rev1_out_ag(.(T21, .(T20, T19)), [])
rev1_in_ag(.(T24, .(T23, T19)), []) → U7_ag(T24, T23, T19, rev18_in_aa(T19, T22))
U7_ag(T24, T23, T19, rev18_out_aa(T19, T22)) → U8_ag(T24, T23, T19, app29_in_aaa(T22, T23, X35))
U8_ag(T24, T23, T19, app29_out_aaa(T22, T23, X35)) → rev1_out_ag(.(T24, .(T23, T19)), [])
rev1_in_ag(.(T85, []), .(T85, [])) → rev1_out_ag(.(T85, []), .(T85, []))
rev1_in_ag(.(T94, .(T93, T92)), T75) → U9_ag(T94, T93, T92, T75, rev18_in_aa(T92, X134))
U9_ag(T94, T93, T92, T75, rev18_out_aa(T92, X134)) → rev1_out_ag(.(T94, .(T93, T92)), T75)
rev1_in_ag(.(T97, .(T96, T92)), T75) → U10_ag(T97, T96, T92, T75, rev18_in_aa(T92, T95))
U10_ag(T97, T96, T92, T75, rev18_out_aa(T92, T95)) → U11_ag(T97, T96, T92, T75, app29_in_aaa(T95, T96, X135))
U11_ag(T97, T96, T92, T75, app29_out_aaa(T95, T96, X135)) → rev1_out_ag(.(T97, .(T96, T92)), T75)
rev1_in_ag(.(T112, .(T96, T92)), .(T112, [])) → U12_ag(T112, T96, T92, rev18_in_aa(T92, T95))
U12_ag(T112, T96, T92, rev18_out_aa(T92, T95)) → U13_ag(T112, T96, T92, app29_in_aag(T95, T96, []))
app29_in_aag([], T41, .(T41, [])) → app29_out_aag([], T41, .(T41, []))
app29_in_aag(.(T48, T51), T52, .(T48, X78)) → U4_aag(T48, T51, T52, X78, app29_in_aag(T51, T52, X78))
U4_aag(T48, T51, T52, X78, app29_out_aag(T51, T52, X78)) → app29_out_aag(.(T48, T51), T52, .(T48, X78))
U13_ag(T112, T96, T92, app29_out_aag(T95, T96, [])) → rev1_out_ag(.(T112, .(T96, T92)), .(T112, []))
rev1_in_ag(.(T126, .(T96, T92)), .(T121, T124)) → U14_ag(T126, T96, T92, T121, T124, rev18_in_aa(T92, T95))
U14_ag(T126, T96, T92, T121, T124, rev18_out_aa(T92, T95)) → U15_ag(T126, T96, T92, T121, T124, app29_in_aaa(T95, T96, .(T121, T125)))
U15_ag(T126, T96, T92, T121, T124, app29_out_aaa(T95, T96, .(T121, T125))) → U16_ag(T126, T96, T92, T121, T124, app69_in_gag(T125, T126, T124))
app69_in_gag([], T133, .(T133, [])) → app69_out_gag([], T133, .(T133, []))
app69_in_gag(.(T142, T146), T147, .(T142, T145)) → U5_gag(T142, T146, T147, T145, app69_in_gag(T146, T147, T145))
U5_gag(T142, T146, T147, T145, app69_out_gag(T146, T147, T145)) → app69_out_gag(.(T142, T146), T147, .(T142, T145))
U16_ag(T126, T96, T92, T121, T124, app69_out_gag(T125, T126, T124)) → rev1_out_ag(.(T126, .(T96, T92)), .(T121, T124))
REV18_IN_AA(.(T32, T31), X52) → REV18_IN_AA(T31, X51)
REV18_IN_AA → REV18_IN_AA