0 Prolog
↳1 PrologToDTProblemTransformerProof (⇐)
↳2 TRIPLES
↳3 TriplesToPiDPProof (⇐)
↳4 PiDP
↳5 DependencyGraphProof (⇔)
↳6 AND
↳7 PiDP
↳8 UsableRulesProof (⇔)
↳9 PiDP
↳10 PiDPToQDPProof (⇐)
↳11 QDP
↳12 QDPSizeChangeProof (⇔)
↳13 YES
↳14 PiDP
↳15 UsableRulesProof (⇔)
↳16 PiDP
↳17 PiDPToQDPProof (⇐)
↳18 QDP
↳19 Narrowing (⇐)
↳20 QDP
↳21 Instantiation (⇔)
↳22 QDP
↳23 NonTerminationProof (⇔)
↳24 NO
↳25 PiDP
↳26 UsableRulesProof (⇔)
↳27 PiDP
↳28 PiDPToQDPProof (⇐)
↳29 QDP
↳30 QDPSizeChangeProof (⇔)
↳31 YES
↳32 PiDP
↳33 PiDPToQDPProof (⇐)
↳34 QDP
↳35 Narrowing (⇐)
↳36 QDP
↳37 Narrowing (⇐)
↳38 QDP
↳39 Instantiation (⇔)
↳40 QDP
↳41 Instantiation (⇔)
↳42 QDP
↳43 Instantiation (⇔)
↳44 QDP
↳45 Instantiation (⇔)
↳46 QDP
↳47 NonTerminationProof (⇔)
↳48 NO
COLOR_MAP1_IN_AG(l(region(T27, T31, T32), T33), T30) → U6_AG(T27, T31, T32, T33, T30, select10_in_aga(T31, T30, X34))
COLOR_MAP1_IN_AG(l(region(T27, T31, T32), T33), T30) → SELECT10_IN_AGA(T31, T30, X34)
SELECT10_IN_AGA(T64, .(T62, T63), .(T62, X73)) → U1_AGA(T64, T62, T63, X73, select10_in_aga(T64, T63, X73))
SELECT10_IN_AGA(T64, .(T62, T63), .(T62, X73)) → SELECT10_IN_AGA(T64, T63, X73)
COLOR_MAP1_IN_AG(l(region(T27, T31, T39), T40), T30) → U7_AG(T27, T31, T39, T40, T30, selectc10_in_aga(T31, T30, T38))
U7_AG(T27, T31, T39, T40, T30, selectc10_out_aga(T31, T30, T38)) → U8_AG(T27, T31, T39, T40, T30, members20_in_ag(T39, T38))
U7_AG(T27, T31, T39, T40, T30, selectc10_out_aga(T31, T30, T38)) → MEMBERS20_IN_AG(T39, T38)
MEMBERS20_IN_AG(.(T91, T92), T90) → U2_AG(T91, T92, T90, member27_in_ag(T91, T90))
MEMBERS20_IN_AG(.(T91, T92), T90) → MEMBER27_IN_AG(T91, T90)
MEMBER27_IN_AG(T121, .(T119, T120)) → U5_AG(T121, T119, T120, member27_in_ag(T121, T120))
MEMBER27_IN_AG(T121, .(T119, T120)) → MEMBER27_IN_AG(T121, T120)
MEMBERS20_IN_AG(.(T91, T97), T90) → U3_AG(T91, T97, T90, memberc27_in_ag(T91, T90))
U3_AG(T91, T97, T90, memberc27_out_ag(T91, T90)) → U4_AG(T91, T97, T90, members20_in_ag(T97, T90))
U3_AG(T91, T97, T90, memberc27_out_ag(T91, T90)) → MEMBERS20_IN_AG(T97, T90)
COLOR_MAP1_IN_AG(l(region(T27, T31, T39), T72), T30) → U9_AG(T27, T31, T39, T72, T30, selectc10_in_aga(T31, T30, T38))
U9_AG(T27, T31, T39, T72, T30, selectc10_out_aga(T31, T30, T38)) → U10_AG(T27, T31, T39, T72, T30, membersc20_in_ag(T39, T38))
U10_AG(T27, T31, T39, T72, T30, membersc20_out_ag(T39, T38)) → U11_AG(T27, T31, T39, T72, T30, color_map1_in_ag(T72, T30))
U10_AG(T27, T31, T39, T72, T30, membersc20_out_ag(T39, T38)) → COLOR_MAP1_IN_AG(T72, T30)
selectc10_in_aga(T53, .(T53, T54), T54) → selectc10_out_aga(T53, .(T53, T54), T54)
selectc10_in_aga(T64, .(T62, T63), .(T62, X73)) → U13_aga(T64, T62, T63, X73, selectc10_in_aga(T64, T63, X73))
U13_aga(T64, T62, T63, X73, selectc10_out_aga(T64, T63, X73)) → selectc10_out_aga(T64, .(T62, T63), .(T62, X73))
memberc27_in_ag(T110, .(T110, T111)) → memberc27_out_ag(T110, .(T110, T111))
memberc27_in_ag(T121, .(T119, T120)) → U19_ag(T121, T119, T120, memberc27_in_ag(T121, T120))
U19_ag(T121, T119, T120, memberc27_out_ag(T121, T120)) → memberc27_out_ag(T121, .(T119, T120))
membersc20_in_ag(.(T91, T97), T90) → U17_ag(T91, T97, T90, memberc27_in_ag(T91, T90))
U17_ag(T91, T97, T90, memberc27_out_ag(T91, T90)) → U18_ag(T91, T97, T90, membersc20_in_ag(T97, T90))
membersc20_in_ag([], T131) → membersc20_out_ag([], T131)
U18_ag(T91, T97, T90, membersc20_out_ag(T97, T90)) → membersc20_out_ag(.(T91, T97), T90)
Infinitary Constructor Rewriting Termination of PiDP implies Termination of TRIPLES
COLOR_MAP1_IN_AG(l(region(T27, T31, T32), T33), T30) → U6_AG(T27, T31, T32, T33, T30, select10_in_aga(T31, T30, X34))
COLOR_MAP1_IN_AG(l(region(T27, T31, T32), T33), T30) → SELECT10_IN_AGA(T31, T30, X34)
SELECT10_IN_AGA(T64, .(T62, T63), .(T62, X73)) → U1_AGA(T64, T62, T63, X73, select10_in_aga(T64, T63, X73))
SELECT10_IN_AGA(T64, .(T62, T63), .(T62, X73)) → SELECT10_IN_AGA(T64, T63, X73)
COLOR_MAP1_IN_AG(l(region(T27, T31, T39), T40), T30) → U7_AG(T27, T31, T39, T40, T30, selectc10_in_aga(T31, T30, T38))
U7_AG(T27, T31, T39, T40, T30, selectc10_out_aga(T31, T30, T38)) → U8_AG(T27, T31, T39, T40, T30, members20_in_ag(T39, T38))
U7_AG(T27, T31, T39, T40, T30, selectc10_out_aga(T31, T30, T38)) → MEMBERS20_IN_AG(T39, T38)
MEMBERS20_IN_AG(.(T91, T92), T90) → U2_AG(T91, T92, T90, member27_in_ag(T91, T90))
MEMBERS20_IN_AG(.(T91, T92), T90) → MEMBER27_IN_AG(T91, T90)
MEMBER27_IN_AG(T121, .(T119, T120)) → U5_AG(T121, T119, T120, member27_in_ag(T121, T120))
MEMBER27_IN_AG(T121, .(T119, T120)) → MEMBER27_IN_AG(T121, T120)
MEMBERS20_IN_AG(.(T91, T97), T90) → U3_AG(T91, T97, T90, memberc27_in_ag(T91, T90))
U3_AG(T91, T97, T90, memberc27_out_ag(T91, T90)) → U4_AG(T91, T97, T90, members20_in_ag(T97, T90))
U3_AG(T91, T97, T90, memberc27_out_ag(T91, T90)) → MEMBERS20_IN_AG(T97, T90)
COLOR_MAP1_IN_AG(l(region(T27, T31, T39), T72), T30) → U9_AG(T27, T31, T39, T72, T30, selectc10_in_aga(T31, T30, T38))
U9_AG(T27, T31, T39, T72, T30, selectc10_out_aga(T31, T30, T38)) → U10_AG(T27, T31, T39, T72, T30, membersc20_in_ag(T39, T38))
U10_AG(T27, T31, T39, T72, T30, membersc20_out_ag(T39, T38)) → U11_AG(T27, T31, T39, T72, T30, color_map1_in_ag(T72, T30))
U10_AG(T27, T31, T39, T72, T30, membersc20_out_ag(T39, T38)) → COLOR_MAP1_IN_AG(T72, T30)
selectc10_in_aga(T53, .(T53, T54), T54) → selectc10_out_aga(T53, .(T53, T54), T54)
selectc10_in_aga(T64, .(T62, T63), .(T62, X73)) → U13_aga(T64, T62, T63, X73, selectc10_in_aga(T64, T63, X73))
U13_aga(T64, T62, T63, X73, selectc10_out_aga(T64, T63, X73)) → selectc10_out_aga(T64, .(T62, T63), .(T62, X73))
memberc27_in_ag(T110, .(T110, T111)) → memberc27_out_ag(T110, .(T110, T111))
memberc27_in_ag(T121, .(T119, T120)) → U19_ag(T121, T119, T120, memberc27_in_ag(T121, T120))
U19_ag(T121, T119, T120, memberc27_out_ag(T121, T120)) → memberc27_out_ag(T121, .(T119, T120))
membersc20_in_ag(.(T91, T97), T90) → U17_ag(T91, T97, T90, memberc27_in_ag(T91, T90))
U17_ag(T91, T97, T90, memberc27_out_ag(T91, T90)) → U18_ag(T91, T97, T90, membersc20_in_ag(T97, T90))
membersc20_in_ag([], T131) → membersc20_out_ag([], T131)
U18_ag(T91, T97, T90, membersc20_out_ag(T97, T90)) → membersc20_out_ag(.(T91, T97), T90)
MEMBER27_IN_AG(T121, .(T119, T120)) → MEMBER27_IN_AG(T121, T120)
selectc10_in_aga(T53, .(T53, T54), T54) → selectc10_out_aga(T53, .(T53, T54), T54)
selectc10_in_aga(T64, .(T62, T63), .(T62, X73)) → U13_aga(T64, T62, T63, X73, selectc10_in_aga(T64, T63, X73))
U13_aga(T64, T62, T63, X73, selectc10_out_aga(T64, T63, X73)) → selectc10_out_aga(T64, .(T62, T63), .(T62, X73))
memberc27_in_ag(T110, .(T110, T111)) → memberc27_out_ag(T110, .(T110, T111))
memberc27_in_ag(T121, .(T119, T120)) → U19_ag(T121, T119, T120, memberc27_in_ag(T121, T120))
U19_ag(T121, T119, T120, memberc27_out_ag(T121, T120)) → memberc27_out_ag(T121, .(T119, T120))
membersc20_in_ag(.(T91, T97), T90) → U17_ag(T91, T97, T90, memberc27_in_ag(T91, T90))
U17_ag(T91, T97, T90, memberc27_out_ag(T91, T90)) → U18_ag(T91, T97, T90, membersc20_in_ag(T97, T90))
membersc20_in_ag([], T131) → membersc20_out_ag([], T131)
U18_ag(T91, T97, T90, membersc20_out_ag(T97, T90)) → membersc20_out_ag(.(T91, T97), T90)
MEMBER27_IN_AG(T121, .(T119, T120)) → MEMBER27_IN_AG(T121, T120)
MEMBER27_IN_AG(.(T119, T120)) → MEMBER27_IN_AG(T120)
From the DPs we obtained the following set of size-change graphs:
MEMBERS20_IN_AG(.(T91, T97), T90) → U3_AG(T91, T97, T90, memberc27_in_ag(T91, T90))
U3_AG(T91, T97, T90, memberc27_out_ag(T91, T90)) → MEMBERS20_IN_AG(T97, T90)
selectc10_in_aga(T53, .(T53, T54), T54) → selectc10_out_aga(T53, .(T53, T54), T54)
selectc10_in_aga(T64, .(T62, T63), .(T62, X73)) → U13_aga(T64, T62, T63, X73, selectc10_in_aga(T64, T63, X73))
U13_aga(T64, T62, T63, X73, selectc10_out_aga(T64, T63, X73)) → selectc10_out_aga(T64, .(T62, T63), .(T62, X73))
memberc27_in_ag(T110, .(T110, T111)) → memberc27_out_ag(T110, .(T110, T111))
memberc27_in_ag(T121, .(T119, T120)) → U19_ag(T121, T119, T120, memberc27_in_ag(T121, T120))
U19_ag(T121, T119, T120, memberc27_out_ag(T121, T120)) → memberc27_out_ag(T121, .(T119, T120))
membersc20_in_ag(.(T91, T97), T90) → U17_ag(T91, T97, T90, memberc27_in_ag(T91, T90))
U17_ag(T91, T97, T90, memberc27_out_ag(T91, T90)) → U18_ag(T91, T97, T90, membersc20_in_ag(T97, T90))
membersc20_in_ag([], T131) → membersc20_out_ag([], T131)
U18_ag(T91, T97, T90, membersc20_out_ag(T97, T90)) → membersc20_out_ag(.(T91, T97), T90)
MEMBERS20_IN_AG(.(T91, T97), T90) → U3_AG(T91, T97, T90, memberc27_in_ag(T91, T90))
U3_AG(T91, T97, T90, memberc27_out_ag(T91, T90)) → MEMBERS20_IN_AG(T97, T90)
memberc27_in_ag(T110, .(T110, T111)) → memberc27_out_ag(T110, .(T110, T111))
memberc27_in_ag(T121, .(T119, T120)) → U19_ag(T121, T119, T120, memberc27_in_ag(T121, T120))
U19_ag(T121, T119, T120, memberc27_out_ag(T121, T120)) → memberc27_out_ag(T121, .(T119, T120))
MEMBERS20_IN_AG(T90) → U3_AG(T90, memberc27_in_ag(T90))
U3_AG(T90, memberc27_out_ag(T91, T90)) → MEMBERS20_IN_AG(T90)
memberc27_in_ag(.(T110, T111)) → memberc27_out_ag(T110, .(T110, T111))
memberc27_in_ag(.(T119, T120)) → U19_ag(T119, T120, memberc27_in_ag(T120))
U19_ag(T119, T120, memberc27_out_ag(T121, T120)) → memberc27_out_ag(T121, .(T119, T120))
memberc27_in_ag(x0)
U19_ag(x0, x1, x2)
MEMBERS20_IN_AG(.(x0, x1)) → U3_AG(.(x0, x1), memberc27_out_ag(x0, .(x0, x1)))
MEMBERS20_IN_AG(.(x0, x1)) → U3_AG(.(x0, x1), U19_ag(x0, x1, memberc27_in_ag(x1)))
U3_AG(T90, memberc27_out_ag(T91, T90)) → MEMBERS20_IN_AG(T90)
MEMBERS20_IN_AG(.(x0, x1)) → U3_AG(.(x0, x1), memberc27_out_ag(x0, .(x0, x1)))
MEMBERS20_IN_AG(.(x0, x1)) → U3_AG(.(x0, x1), U19_ag(x0, x1, memberc27_in_ag(x1)))
memberc27_in_ag(.(T110, T111)) → memberc27_out_ag(T110, .(T110, T111))
memberc27_in_ag(.(T119, T120)) → U19_ag(T119, T120, memberc27_in_ag(T120))
U19_ag(T119, T120, memberc27_out_ag(T121, T120)) → memberc27_out_ag(T121, .(T119, T120))
memberc27_in_ag(x0)
U19_ag(x0, x1, x2)
U3_AG(.(z0, z1), memberc27_out_ag(z0, .(z0, z1))) → MEMBERS20_IN_AG(.(z0, z1))
U3_AG(.(z0, z1), memberc27_out_ag(x1, .(z0, z1))) → MEMBERS20_IN_AG(.(z0, z1))
MEMBERS20_IN_AG(.(x0, x1)) → U3_AG(.(x0, x1), memberc27_out_ag(x0, .(x0, x1)))
MEMBERS20_IN_AG(.(x0, x1)) → U3_AG(.(x0, x1), U19_ag(x0, x1, memberc27_in_ag(x1)))
U3_AG(.(z0, z1), memberc27_out_ag(z0, .(z0, z1))) → MEMBERS20_IN_AG(.(z0, z1))
U3_AG(.(z0, z1), memberc27_out_ag(x1, .(z0, z1))) → MEMBERS20_IN_AG(.(z0, z1))
memberc27_in_ag(.(T110, T111)) → memberc27_out_ag(T110, .(T110, T111))
memberc27_in_ag(.(T119, T120)) → U19_ag(T119, T120, memberc27_in_ag(T120))
U19_ag(T119, T120, memberc27_out_ag(T121, T120)) → memberc27_out_ag(T121, .(T119, T120))
memberc27_in_ag(x0)
U19_ag(x0, x1, x2)
SELECT10_IN_AGA(T64, .(T62, T63), .(T62, X73)) → SELECT10_IN_AGA(T64, T63, X73)
selectc10_in_aga(T53, .(T53, T54), T54) → selectc10_out_aga(T53, .(T53, T54), T54)
selectc10_in_aga(T64, .(T62, T63), .(T62, X73)) → U13_aga(T64, T62, T63, X73, selectc10_in_aga(T64, T63, X73))
U13_aga(T64, T62, T63, X73, selectc10_out_aga(T64, T63, X73)) → selectc10_out_aga(T64, .(T62, T63), .(T62, X73))
memberc27_in_ag(T110, .(T110, T111)) → memberc27_out_ag(T110, .(T110, T111))
memberc27_in_ag(T121, .(T119, T120)) → U19_ag(T121, T119, T120, memberc27_in_ag(T121, T120))
U19_ag(T121, T119, T120, memberc27_out_ag(T121, T120)) → memberc27_out_ag(T121, .(T119, T120))
membersc20_in_ag(.(T91, T97), T90) → U17_ag(T91, T97, T90, memberc27_in_ag(T91, T90))
U17_ag(T91, T97, T90, memberc27_out_ag(T91, T90)) → U18_ag(T91, T97, T90, membersc20_in_ag(T97, T90))
membersc20_in_ag([], T131) → membersc20_out_ag([], T131)
U18_ag(T91, T97, T90, membersc20_out_ag(T97, T90)) → membersc20_out_ag(.(T91, T97), T90)
SELECT10_IN_AGA(T64, .(T62, T63), .(T62, X73)) → SELECT10_IN_AGA(T64, T63, X73)
SELECT10_IN_AGA(.(T62, T63)) → SELECT10_IN_AGA(T63)
From the DPs we obtained the following set of size-change graphs:
COLOR_MAP1_IN_AG(l(region(T27, T31, T39), T72), T30) → U9_AG(T27, T31, T39, T72, T30, selectc10_in_aga(T31, T30, T38))
U9_AG(T27, T31, T39, T72, T30, selectc10_out_aga(T31, T30, T38)) → U10_AG(T27, T31, T39, T72, T30, membersc20_in_ag(T39, T38))
U10_AG(T27, T31, T39, T72, T30, membersc20_out_ag(T39, T38)) → COLOR_MAP1_IN_AG(T72, T30)
selectc10_in_aga(T53, .(T53, T54), T54) → selectc10_out_aga(T53, .(T53, T54), T54)
selectc10_in_aga(T64, .(T62, T63), .(T62, X73)) → U13_aga(T64, T62, T63, X73, selectc10_in_aga(T64, T63, X73))
U13_aga(T64, T62, T63, X73, selectc10_out_aga(T64, T63, X73)) → selectc10_out_aga(T64, .(T62, T63), .(T62, X73))
memberc27_in_ag(T110, .(T110, T111)) → memberc27_out_ag(T110, .(T110, T111))
memberc27_in_ag(T121, .(T119, T120)) → U19_ag(T121, T119, T120, memberc27_in_ag(T121, T120))
U19_ag(T121, T119, T120, memberc27_out_ag(T121, T120)) → memberc27_out_ag(T121, .(T119, T120))
membersc20_in_ag(.(T91, T97), T90) → U17_ag(T91, T97, T90, memberc27_in_ag(T91, T90))
U17_ag(T91, T97, T90, memberc27_out_ag(T91, T90)) → U18_ag(T91, T97, T90, membersc20_in_ag(T97, T90))
membersc20_in_ag([], T131) → membersc20_out_ag([], T131)
U18_ag(T91, T97, T90, membersc20_out_ag(T97, T90)) → membersc20_out_ag(.(T91, T97), T90)
COLOR_MAP1_IN_AG(T30) → U9_AG(T30, selectc10_in_aga(T30))
U9_AG(T30, selectc10_out_aga(T31, T30, T38)) → U10_AG(T30, membersc20_in_ag(T38))
U10_AG(T30, membersc20_out_ag(T39, T38)) → COLOR_MAP1_IN_AG(T30)
selectc10_in_aga(.(T53, T54)) → selectc10_out_aga(T53, .(T53, T54), T54)
selectc10_in_aga(.(T62, T63)) → U13_aga(T62, T63, selectc10_in_aga(T63))
U13_aga(T62, T63, selectc10_out_aga(T64, T63, X73)) → selectc10_out_aga(T64, .(T62, T63), .(T62, X73))
memberc27_in_ag(.(T110, T111)) → memberc27_out_ag(T110, .(T110, T111))
memberc27_in_ag(.(T119, T120)) → U19_ag(T119, T120, memberc27_in_ag(T120))
U19_ag(T119, T120, memberc27_out_ag(T121, T120)) → memberc27_out_ag(T121, .(T119, T120))
membersc20_in_ag(T90) → U17_ag(T90, memberc27_in_ag(T90))
U17_ag(T90, memberc27_out_ag(T91, T90)) → U18_ag(T91, T90, membersc20_in_ag(T90))
membersc20_in_ag(T131) → membersc20_out_ag([], T131)
U18_ag(T91, T90, membersc20_out_ag(T97, T90)) → membersc20_out_ag(.(T91, T97), T90)
selectc10_in_aga(x0)
U13_aga(x0, x1, x2)
memberc27_in_ag(x0)
U19_ag(x0, x1, x2)
membersc20_in_ag(x0)
U17_ag(x0, x1)
U18_ag(x0, x1, x2)
COLOR_MAP1_IN_AG(.(x0, x1)) → U9_AG(.(x0, x1), selectc10_out_aga(x0, .(x0, x1), x1))
COLOR_MAP1_IN_AG(.(x0, x1)) → U9_AG(.(x0, x1), U13_aga(x0, x1, selectc10_in_aga(x1)))
U9_AG(T30, selectc10_out_aga(T31, T30, T38)) → U10_AG(T30, membersc20_in_ag(T38))
U10_AG(T30, membersc20_out_ag(T39, T38)) → COLOR_MAP1_IN_AG(T30)
COLOR_MAP1_IN_AG(.(x0, x1)) → U9_AG(.(x0, x1), selectc10_out_aga(x0, .(x0, x1), x1))
COLOR_MAP1_IN_AG(.(x0, x1)) → U9_AG(.(x0, x1), U13_aga(x0, x1, selectc10_in_aga(x1)))
selectc10_in_aga(.(T53, T54)) → selectc10_out_aga(T53, .(T53, T54), T54)
selectc10_in_aga(.(T62, T63)) → U13_aga(T62, T63, selectc10_in_aga(T63))
U13_aga(T62, T63, selectc10_out_aga(T64, T63, X73)) → selectc10_out_aga(T64, .(T62, T63), .(T62, X73))
memberc27_in_ag(.(T110, T111)) → memberc27_out_ag(T110, .(T110, T111))
memberc27_in_ag(.(T119, T120)) → U19_ag(T119, T120, memberc27_in_ag(T120))
U19_ag(T119, T120, memberc27_out_ag(T121, T120)) → memberc27_out_ag(T121, .(T119, T120))
membersc20_in_ag(T90) → U17_ag(T90, memberc27_in_ag(T90))
U17_ag(T90, memberc27_out_ag(T91, T90)) → U18_ag(T91, T90, membersc20_in_ag(T90))
membersc20_in_ag(T131) → membersc20_out_ag([], T131)
U18_ag(T91, T90, membersc20_out_ag(T97, T90)) → membersc20_out_ag(.(T91, T97), T90)
selectc10_in_aga(x0)
U13_aga(x0, x1, x2)
memberc27_in_ag(x0)
U19_ag(x0, x1, x2)
membersc20_in_ag(x0)
U17_ag(x0, x1)
U18_ag(x0, x1, x2)
U9_AG(y0, selectc10_out_aga(y1, y0, x0)) → U10_AG(y0, U17_ag(x0, memberc27_in_ag(x0)))
U9_AG(y0, selectc10_out_aga(y1, y0, x0)) → U10_AG(y0, membersc20_out_ag([], x0))
U10_AG(T30, membersc20_out_ag(T39, T38)) → COLOR_MAP1_IN_AG(T30)
COLOR_MAP1_IN_AG(.(x0, x1)) → U9_AG(.(x0, x1), selectc10_out_aga(x0, .(x0, x1), x1))
COLOR_MAP1_IN_AG(.(x0, x1)) → U9_AG(.(x0, x1), U13_aga(x0, x1, selectc10_in_aga(x1)))
U9_AG(y0, selectc10_out_aga(y1, y0, x0)) → U10_AG(y0, U17_ag(x0, memberc27_in_ag(x0)))
U9_AG(y0, selectc10_out_aga(y1, y0, x0)) → U10_AG(y0, membersc20_out_ag([], x0))
selectc10_in_aga(.(T53, T54)) → selectc10_out_aga(T53, .(T53, T54), T54)
selectc10_in_aga(.(T62, T63)) → U13_aga(T62, T63, selectc10_in_aga(T63))
U13_aga(T62, T63, selectc10_out_aga(T64, T63, X73)) → selectc10_out_aga(T64, .(T62, T63), .(T62, X73))
memberc27_in_ag(.(T110, T111)) → memberc27_out_ag(T110, .(T110, T111))
memberc27_in_ag(.(T119, T120)) → U19_ag(T119, T120, memberc27_in_ag(T120))
U19_ag(T119, T120, memberc27_out_ag(T121, T120)) → memberc27_out_ag(T121, .(T119, T120))
membersc20_in_ag(T90) → U17_ag(T90, memberc27_in_ag(T90))
U17_ag(T90, memberc27_out_ag(T91, T90)) → U18_ag(T91, T90, membersc20_in_ag(T90))
membersc20_in_ag(T131) → membersc20_out_ag([], T131)
U18_ag(T91, T90, membersc20_out_ag(T97, T90)) → membersc20_out_ag(.(T91, T97), T90)
selectc10_in_aga(x0)
U13_aga(x0, x1, x2)
memberc27_in_ag(x0)
U19_ag(x0, x1, x2)
membersc20_in_ag(x0)
U17_ag(x0, x1)
U18_ag(x0, x1, x2)
U9_AG(.(z0, z1), selectc10_out_aga(z0, .(z0, z1), z1)) → U10_AG(.(z0, z1), U17_ag(z1, memberc27_in_ag(z1)))
U9_AG(.(z0, z1), selectc10_out_aga(x1, .(z0, z1), x2)) → U10_AG(.(z0, z1), U17_ag(x2, memberc27_in_ag(x2)))
U10_AG(T30, membersc20_out_ag(T39, T38)) → COLOR_MAP1_IN_AG(T30)
COLOR_MAP1_IN_AG(.(x0, x1)) → U9_AG(.(x0, x1), selectc10_out_aga(x0, .(x0, x1), x1))
COLOR_MAP1_IN_AG(.(x0, x1)) → U9_AG(.(x0, x1), U13_aga(x0, x1, selectc10_in_aga(x1)))
U9_AG(y0, selectc10_out_aga(y1, y0, x0)) → U10_AG(y0, membersc20_out_ag([], x0))
U9_AG(.(z0, z1), selectc10_out_aga(z0, .(z0, z1), z1)) → U10_AG(.(z0, z1), U17_ag(z1, memberc27_in_ag(z1)))
U9_AG(.(z0, z1), selectc10_out_aga(x1, .(z0, z1), x2)) → U10_AG(.(z0, z1), U17_ag(x2, memberc27_in_ag(x2)))
selectc10_in_aga(.(T53, T54)) → selectc10_out_aga(T53, .(T53, T54), T54)
selectc10_in_aga(.(T62, T63)) → U13_aga(T62, T63, selectc10_in_aga(T63))
U13_aga(T62, T63, selectc10_out_aga(T64, T63, X73)) → selectc10_out_aga(T64, .(T62, T63), .(T62, X73))
memberc27_in_ag(.(T110, T111)) → memberc27_out_ag(T110, .(T110, T111))
memberc27_in_ag(.(T119, T120)) → U19_ag(T119, T120, memberc27_in_ag(T120))
U19_ag(T119, T120, memberc27_out_ag(T121, T120)) → memberc27_out_ag(T121, .(T119, T120))
membersc20_in_ag(T90) → U17_ag(T90, memberc27_in_ag(T90))
U17_ag(T90, memberc27_out_ag(T91, T90)) → U18_ag(T91, T90, membersc20_in_ag(T90))
membersc20_in_ag(T131) → membersc20_out_ag([], T131)
U18_ag(T91, T90, membersc20_out_ag(T97, T90)) → membersc20_out_ag(.(T91, T97), T90)
selectc10_in_aga(x0)
U13_aga(x0, x1, x2)
memberc27_in_ag(x0)
U19_ag(x0, x1, x2)
membersc20_in_ag(x0)
U17_ag(x0, x1)
U18_ag(x0, x1, x2)
U10_AG(z0, membersc20_out_ag([], z2)) → COLOR_MAP1_IN_AG(z0)
U10_AG(.(z0, z1), membersc20_out_ag(x1, x2)) → COLOR_MAP1_IN_AG(.(z0, z1))
COLOR_MAP1_IN_AG(.(x0, x1)) → U9_AG(.(x0, x1), selectc10_out_aga(x0, .(x0, x1), x1))
COLOR_MAP1_IN_AG(.(x0, x1)) → U9_AG(.(x0, x1), U13_aga(x0, x1, selectc10_in_aga(x1)))
U9_AG(y0, selectc10_out_aga(y1, y0, x0)) → U10_AG(y0, membersc20_out_ag([], x0))
U9_AG(.(z0, z1), selectc10_out_aga(z0, .(z0, z1), z1)) → U10_AG(.(z0, z1), U17_ag(z1, memberc27_in_ag(z1)))
U9_AG(.(z0, z1), selectc10_out_aga(x1, .(z0, z1), x2)) → U10_AG(.(z0, z1), U17_ag(x2, memberc27_in_ag(x2)))
U10_AG(z0, membersc20_out_ag([], z2)) → COLOR_MAP1_IN_AG(z0)
U10_AG(.(z0, z1), membersc20_out_ag(x1, x2)) → COLOR_MAP1_IN_AG(.(z0, z1))
selectc10_in_aga(.(T53, T54)) → selectc10_out_aga(T53, .(T53, T54), T54)
selectc10_in_aga(.(T62, T63)) → U13_aga(T62, T63, selectc10_in_aga(T63))
U13_aga(T62, T63, selectc10_out_aga(T64, T63, X73)) → selectc10_out_aga(T64, .(T62, T63), .(T62, X73))
memberc27_in_ag(.(T110, T111)) → memberc27_out_ag(T110, .(T110, T111))
memberc27_in_ag(.(T119, T120)) → U19_ag(T119, T120, memberc27_in_ag(T120))
U19_ag(T119, T120, memberc27_out_ag(T121, T120)) → memberc27_out_ag(T121, .(T119, T120))
membersc20_in_ag(T90) → U17_ag(T90, memberc27_in_ag(T90))
U17_ag(T90, memberc27_out_ag(T91, T90)) → U18_ag(T91, T90, membersc20_in_ag(T90))
membersc20_in_ag(T131) → membersc20_out_ag([], T131)
U18_ag(T91, T90, membersc20_out_ag(T97, T90)) → membersc20_out_ag(.(T91, T97), T90)
selectc10_in_aga(x0)
U13_aga(x0, x1, x2)
memberc27_in_ag(x0)
U19_ag(x0, x1, x2)
membersc20_in_ag(x0)
U17_ag(x0, x1)
U18_ag(x0, x1, x2)
U9_AG(.(z0, z1), selectc10_out_aga(z0, .(z0, z1), z1)) → U10_AG(.(z0, z1), membersc20_out_ag([], z1))
U9_AG(.(z0, z1), selectc10_out_aga(x1, .(z0, z1), x2)) → U10_AG(.(z0, z1), membersc20_out_ag([], x2))
COLOR_MAP1_IN_AG(.(x0, x1)) → U9_AG(.(x0, x1), selectc10_out_aga(x0, .(x0, x1), x1))
COLOR_MAP1_IN_AG(.(x0, x1)) → U9_AG(.(x0, x1), U13_aga(x0, x1, selectc10_in_aga(x1)))
U9_AG(.(z0, z1), selectc10_out_aga(z0, .(z0, z1), z1)) → U10_AG(.(z0, z1), U17_ag(z1, memberc27_in_ag(z1)))
U9_AG(.(z0, z1), selectc10_out_aga(x1, .(z0, z1), x2)) → U10_AG(.(z0, z1), U17_ag(x2, memberc27_in_ag(x2)))
U10_AG(z0, membersc20_out_ag([], z2)) → COLOR_MAP1_IN_AG(z0)
U10_AG(.(z0, z1), membersc20_out_ag(x1, x2)) → COLOR_MAP1_IN_AG(.(z0, z1))
U9_AG(.(z0, z1), selectc10_out_aga(z0, .(z0, z1), z1)) → U10_AG(.(z0, z1), membersc20_out_ag([], z1))
U9_AG(.(z0, z1), selectc10_out_aga(x1, .(z0, z1), x2)) → U10_AG(.(z0, z1), membersc20_out_ag([], x2))
selectc10_in_aga(.(T53, T54)) → selectc10_out_aga(T53, .(T53, T54), T54)
selectc10_in_aga(.(T62, T63)) → U13_aga(T62, T63, selectc10_in_aga(T63))
U13_aga(T62, T63, selectc10_out_aga(T64, T63, X73)) → selectc10_out_aga(T64, .(T62, T63), .(T62, X73))
memberc27_in_ag(.(T110, T111)) → memberc27_out_ag(T110, .(T110, T111))
memberc27_in_ag(.(T119, T120)) → U19_ag(T119, T120, memberc27_in_ag(T120))
U19_ag(T119, T120, memberc27_out_ag(T121, T120)) → memberc27_out_ag(T121, .(T119, T120))
membersc20_in_ag(T90) → U17_ag(T90, memberc27_in_ag(T90))
U17_ag(T90, memberc27_out_ag(T91, T90)) → U18_ag(T91, T90, membersc20_in_ag(T90))
membersc20_in_ag(T131) → membersc20_out_ag([], T131)
U18_ag(T91, T90, membersc20_out_ag(T97, T90)) → membersc20_out_ag(.(T91, T97), T90)
selectc10_in_aga(x0)
U13_aga(x0, x1, x2)
memberc27_in_ag(x0)
U19_ag(x0, x1, x2)
membersc20_in_ag(x0)
U17_ag(x0, x1)
U18_ag(x0, x1, x2)
U10_AG(.(z0, z1), membersc20_out_ag([], x1)) → COLOR_MAP1_IN_AG(.(z0, z1))
U10_AG(.(z0, z1), membersc20_out_ag([], z1)) → COLOR_MAP1_IN_AG(.(z0, z1))
COLOR_MAP1_IN_AG(.(x0, x1)) → U9_AG(.(x0, x1), selectc10_out_aga(x0, .(x0, x1), x1))
COLOR_MAP1_IN_AG(.(x0, x1)) → U9_AG(.(x0, x1), U13_aga(x0, x1, selectc10_in_aga(x1)))
U9_AG(.(z0, z1), selectc10_out_aga(z0, .(z0, z1), z1)) → U10_AG(.(z0, z1), U17_ag(z1, memberc27_in_ag(z1)))
U9_AG(.(z0, z1), selectc10_out_aga(x1, .(z0, z1), x2)) → U10_AG(.(z0, z1), U17_ag(x2, memberc27_in_ag(x2)))
U10_AG(.(z0, z1), membersc20_out_ag(x1, x2)) → COLOR_MAP1_IN_AG(.(z0, z1))
U9_AG(.(z0, z1), selectc10_out_aga(z0, .(z0, z1), z1)) → U10_AG(.(z0, z1), membersc20_out_ag([], z1))
U9_AG(.(z0, z1), selectc10_out_aga(x1, .(z0, z1), x2)) → U10_AG(.(z0, z1), membersc20_out_ag([], x2))
U10_AG(.(z0, z1), membersc20_out_ag([], x1)) → COLOR_MAP1_IN_AG(.(z0, z1))
U10_AG(.(z0, z1), membersc20_out_ag([], z1)) → COLOR_MAP1_IN_AG(.(z0, z1))
selectc10_in_aga(.(T53, T54)) → selectc10_out_aga(T53, .(T53, T54), T54)
selectc10_in_aga(.(T62, T63)) → U13_aga(T62, T63, selectc10_in_aga(T63))
U13_aga(T62, T63, selectc10_out_aga(T64, T63, X73)) → selectc10_out_aga(T64, .(T62, T63), .(T62, X73))
memberc27_in_ag(.(T110, T111)) → memberc27_out_ag(T110, .(T110, T111))
memberc27_in_ag(.(T119, T120)) → U19_ag(T119, T120, memberc27_in_ag(T120))
U19_ag(T119, T120, memberc27_out_ag(T121, T120)) → memberc27_out_ag(T121, .(T119, T120))
membersc20_in_ag(T90) → U17_ag(T90, memberc27_in_ag(T90))
U17_ag(T90, memberc27_out_ag(T91, T90)) → U18_ag(T91, T90, membersc20_in_ag(T90))
membersc20_in_ag(T131) → membersc20_out_ag([], T131)
U18_ag(T91, T90, membersc20_out_ag(T97, T90)) → membersc20_out_ag(.(T91, T97), T90)
selectc10_in_aga(x0)
U13_aga(x0, x1, x2)
memberc27_in_ag(x0)
U19_ag(x0, x1, x2)
membersc20_in_ag(x0)
U17_ag(x0, x1)
U18_ag(x0, x1, x2)