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(.(region(T26, T27), T28), T25) → U6_AG(T26, T27, T28, T25, select10_in_aga(T26, T25, X29))
COLOR_MAP1_IN_AG(.(region(T26, T27), T28), T25) → SELECT10_IN_AGA(T26, T25, X29)
SELECT10_IN_AGA(T59, .(T57, T58), .(T57, X67)) → U1_AGA(T59, T57, T58, X67, select10_in_aga(T59, T58, X67))
SELECT10_IN_AGA(T59, .(T57, T58), .(T57, X67)) → SELECT10_IN_AGA(T59, T58, X67)
COLOR_MAP1_IN_AG(.(region(T26, T34), T35), T25) → U7_AG(T26, T34, T35, T25, selectc10_in_aga(T26, T25, T33))
U7_AG(T26, T34, T35, T25, selectc10_out_aga(T26, T25, T33)) → U8_AG(T26, T34, T35, T25, members20_in_ag(T34, T33))
U7_AG(T26, T34, T35, T25, selectc10_out_aga(T26, T25, T33)) → MEMBERS20_IN_AG(T34, T33)
MEMBERS20_IN_AG(.(T86, T87), T85) → U2_AG(T86, T87, T85, member27_in_ag(T86, T85))
MEMBERS20_IN_AG(.(T86, T87), T85) → MEMBER27_IN_AG(T86, T85)
MEMBER27_IN_AG(T116, .(T114, T115)) → U5_AG(T116, T114, T115, member27_in_ag(T116, T115))
MEMBER27_IN_AG(T116, .(T114, T115)) → MEMBER27_IN_AG(T116, T115)
MEMBERS20_IN_AG(.(T86, T92), T85) → U3_AG(T86, T92, T85, memberc27_in_ag(T86, T85))
U3_AG(T86, T92, T85, memberc27_out_ag(T86, T85)) → U4_AG(T86, T92, T85, members20_in_ag(T92, T85))
U3_AG(T86, T92, T85, memberc27_out_ag(T86, T85)) → MEMBERS20_IN_AG(T92, T85)
COLOR_MAP1_IN_AG(.(region(T26, T34), T67), T25) → U9_AG(T26, T34, T67, T25, selectc10_in_aga(T26, T25, T33))
U9_AG(T26, T34, T67, T25, selectc10_out_aga(T26, T25, T33)) → U10_AG(T26, T34, T67, T25, membersc20_in_ag(T34, T33))
U10_AG(T26, T34, T67, T25, membersc20_out_ag(T34, T33)) → U11_AG(T26, T34, T67, T25, color_map1_in_ag(T67, T25))
U10_AG(T26, T34, T67, T25, membersc20_out_ag(T34, T33)) → COLOR_MAP1_IN_AG(T67, T25)
selectc10_in_aga(T48, .(T48, T49), T49) → selectc10_out_aga(T48, .(T48, T49), T49)
selectc10_in_aga(T59, .(T57, T58), .(T57, X67)) → U13_aga(T59, T57, T58, X67, selectc10_in_aga(T59, T58, X67))
U13_aga(T59, T57, T58, X67, selectc10_out_aga(T59, T58, X67)) → selectc10_out_aga(T59, .(T57, T58), .(T57, X67))
memberc27_in_ag(T105, .(T105, T106)) → memberc27_out_ag(T105, .(T105, T106))
memberc27_in_ag(T116, .(T114, T115)) → U19_ag(T116, T114, T115, memberc27_in_ag(T116, T115))
U19_ag(T116, T114, T115, memberc27_out_ag(T116, T115)) → memberc27_out_ag(T116, .(T114, T115))
membersc20_in_ag(.(T86, T92), T85) → U17_ag(T86, T92, T85, memberc27_in_ag(T86, T85))
U17_ag(T86, T92, T85, memberc27_out_ag(T86, T85)) → U18_ag(T86, T92, T85, membersc20_in_ag(T92, T85))
membersc20_in_ag([], T126) → membersc20_out_ag([], T126)
U18_ag(T86, T92, T85, membersc20_out_ag(T92, T85)) → membersc20_out_ag(.(T86, T92), T85)
Infinitary Constructor Rewriting Termination of PiDP implies Termination of TRIPLES
COLOR_MAP1_IN_AG(.(region(T26, T27), T28), T25) → U6_AG(T26, T27, T28, T25, select10_in_aga(T26, T25, X29))
COLOR_MAP1_IN_AG(.(region(T26, T27), T28), T25) → SELECT10_IN_AGA(T26, T25, X29)
SELECT10_IN_AGA(T59, .(T57, T58), .(T57, X67)) → U1_AGA(T59, T57, T58, X67, select10_in_aga(T59, T58, X67))
SELECT10_IN_AGA(T59, .(T57, T58), .(T57, X67)) → SELECT10_IN_AGA(T59, T58, X67)
COLOR_MAP1_IN_AG(.(region(T26, T34), T35), T25) → U7_AG(T26, T34, T35, T25, selectc10_in_aga(T26, T25, T33))
U7_AG(T26, T34, T35, T25, selectc10_out_aga(T26, T25, T33)) → U8_AG(T26, T34, T35, T25, members20_in_ag(T34, T33))
U7_AG(T26, T34, T35, T25, selectc10_out_aga(T26, T25, T33)) → MEMBERS20_IN_AG(T34, T33)
MEMBERS20_IN_AG(.(T86, T87), T85) → U2_AG(T86, T87, T85, member27_in_ag(T86, T85))
MEMBERS20_IN_AG(.(T86, T87), T85) → MEMBER27_IN_AG(T86, T85)
MEMBER27_IN_AG(T116, .(T114, T115)) → U5_AG(T116, T114, T115, member27_in_ag(T116, T115))
MEMBER27_IN_AG(T116, .(T114, T115)) → MEMBER27_IN_AG(T116, T115)
MEMBERS20_IN_AG(.(T86, T92), T85) → U3_AG(T86, T92, T85, memberc27_in_ag(T86, T85))
U3_AG(T86, T92, T85, memberc27_out_ag(T86, T85)) → U4_AG(T86, T92, T85, members20_in_ag(T92, T85))
U3_AG(T86, T92, T85, memberc27_out_ag(T86, T85)) → MEMBERS20_IN_AG(T92, T85)
COLOR_MAP1_IN_AG(.(region(T26, T34), T67), T25) → U9_AG(T26, T34, T67, T25, selectc10_in_aga(T26, T25, T33))
U9_AG(T26, T34, T67, T25, selectc10_out_aga(T26, T25, T33)) → U10_AG(T26, T34, T67, T25, membersc20_in_ag(T34, T33))
U10_AG(T26, T34, T67, T25, membersc20_out_ag(T34, T33)) → U11_AG(T26, T34, T67, T25, color_map1_in_ag(T67, T25))
U10_AG(T26, T34, T67, T25, membersc20_out_ag(T34, T33)) → COLOR_MAP1_IN_AG(T67, T25)
selectc10_in_aga(T48, .(T48, T49), T49) → selectc10_out_aga(T48, .(T48, T49), T49)
selectc10_in_aga(T59, .(T57, T58), .(T57, X67)) → U13_aga(T59, T57, T58, X67, selectc10_in_aga(T59, T58, X67))
U13_aga(T59, T57, T58, X67, selectc10_out_aga(T59, T58, X67)) → selectc10_out_aga(T59, .(T57, T58), .(T57, X67))
memberc27_in_ag(T105, .(T105, T106)) → memberc27_out_ag(T105, .(T105, T106))
memberc27_in_ag(T116, .(T114, T115)) → U19_ag(T116, T114, T115, memberc27_in_ag(T116, T115))
U19_ag(T116, T114, T115, memberc27_out_ag(T116, T115)) → memberc27_out_ag(T116, .(T114, T115))
membersc20_in_ag(.(T86, T92), T85) → U17_ag(T86, T92, T85, memberc27_in_ag(T86, T85))
U17_ag(T86, T92, T85, memberc27_out_ag(T86, T85)) → U18_ag(T86, T92, T85, membersc20_in_ag(T92, T85))
membersc20_in_ag([], T126) → membersc20_out_ag([], T126)
U18_ag(T86, T92, T85, membersc20_out_ag(T92, T85)) → membersc20_out_ag(.(T86, T92), T85)
MEMBER27_IN_AG(T116, .(T114, T115)) → MEMBER27_IN_AG(T116, T115)
selectc10_in_aga(T48, .(T48, T49), T49) → selectc10_out_aga(T48, .(T48, T49), T49)
selectc10_in_aga(T59, .(T57, T58), .(T57, X67)) → U13_aga(T59, T57, T58, X67, selectc10_in_aga(T59, T58, X67))
U13_aga(T59, T57, T58, X67, selectc10_out_aga(T59, T58, X67)) → selectc10_out_aga(T59, .(T57, T58), .(T57, X67))
memberc27_in_ag(T105, .(T105, T106)) → memberc27_out_ag(T105, .(T105, T106))
memberc27_in_ag(T116, .(T114, T115)) → U19_ag(T116, T114, T115, memberc27_in_ag(T116, T115))
U19_ag(T116, T114, T115, memberc27_out_ag(T116, T115)) → memberc27_out_ag(T116, .(T114, T115))
membersc20_in_ag(.(T86, T92), T85) → U17_ag(T86, T92, T85, memberc27_in_ag(T86, T85))
U17_ag(T86, T92, T85, memberc27_out_ag(T86, T85)) → U18_ag(T86, T92, T85, membersc20_in_ag(T92, T85))
membersc20_in_ag([], T126) → membersc20_out_ag([], T126)
U18_ag(T86, T92, T85, membersc20_out_ag(T92, T85)) → membersc20_out_ag(.(T86, T92), T85)
MEMBER27_IN_AG(T116, .(T114, T115)) → MEMBER27_IN_AG(T116, T115)
MEMBER27_IN_AG(.(T114, T115)) → MEMBER27_IN_AG(T115)
From the DPs we obtained the following set of size-change graphs:
MEMBERS20_IN_AG(.(T86, T92), T85) → U3_AG(T86, T92, T85, memberc27_in_ag(T86, T85))
U3_AG(T86, T92, T85, memberc27_out_ag(T86, T85)) → MEMBERS20_IN_AG(T92, T85)
selectc10_in_aga(T48, .(T48, T49), T49) → selectc10_out_aga(T48, .(T48, T49), T49)
selectc10_in_aga(T59, .(T57, T58), .(T57, X67)) → U13_aga(T59, T57, T58, X67, selectc10_in_aga(T59, T58, X67))
U13_aga(T59, T57, T58, X67, selectc10_out_aga(T59, T58, X67)) → selectc10_out_aga(T59, .(T57, T58), .(T57, X67))
memberc27_in_ag(T105, .(T105, T106)) → memberc27_out_ag(T105, .(T105, T106))
memberc27_in_ag(T116, .(T114, T115)) → U19_ag(T116, T114, T115, memberc27_in_ag(T116, T115))
U19_ag(T116, T114, T115, memberc27_out_ag(T116, T115)) → memberc27_out_ag(T116, .(T114, T115))
membersc20_in_ag(.(T86, T92), T85) → U17_ag(T86, T92, T85, memberc27_in_ag(T86, T85))
U17_ag(T86, T92, T85, memberc27_out_ag(T86, T85)) → U18_ag(T86, T92, T85, membersc20_in_ag(T92, T85))
membersc20_in_ag([], T126) → membersc20_out_ag([], T126)
U18_ag(T86, T92, T85, membersc20_out_ag(T92, T85)) → membersc20_out_ag(.(T86, T92), T85)
MEMBERS20_IN_AG(.(T86, T92), T85) → U3_AG(T86, T92, T85, memberc27_in_ag(T86, T85))
U3_AG(T86, T92, T85, memberc27_out_ag(T86, T85)) → MEMBERS20_IN_AG(T92, T85)
memberc27_in_ag(T105, .(T105, T106)) → memberc27_out_ag(T105, .(T105, T106))
memberc27_in_ag(T116, .(T114, T115)) → U19_ag(T116, T114, T115, memberc27_in_ag(T116, T115))
U19_ag(T116, T114, T115, memberc27_out_ag(T116, T115)) → memberc27_out_ag(T116, .(T114, T115))
MEMBERS20_IN_AG(T85) → U3_AG(T85, memberc27_in_ag(T85))
U3_AG(T85, memberc27_out_ag(T86, T85)) → MEMBERS20_IN_AG(T85)
memberc27_in_ag(.(T105, T106)) → memberc27_out_ag(T105, .(T105, T106))
memberc27_in_ag(.(T114, T115)) → U19_ag(T114, T115, memberc27_in_ag(T115))
U19_ag(T114, T115, memberc27_out_ag(T116, T115)) → memberc27_out_ag(T116, .(T114, T115))
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(T85, memberc27_out_ag(T86, T85)) → MEMBERS20_IN_AG(T85)
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(.(T105, T106)) → memberc27_out_ag(T105, .(T105, T106))
memberc27_in_ag(.(T114, T115)) → U19_ag(T114, T115, memberc27_in_ag(T115))
U19_ag(T114, T115, memberc27_out_ag(T116, T115)) → memberc27_out_ag(T116, .(T114, T115))
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(.(T105, T106)) → memberc27_out_ag(T105, .(T105, T106))
memberc27_in_ag(.(T114, T115)) → U19_ag(T114, T115, memberc27_in_ag(T115))
U19_ag(T114, T115, memberc27_out_ag(T116, T115)) → memberc27_out_ag(T116, .(T114, T115))
memberc27_in_ag(x0)
U19_ag(x0, x1, x2)
SELECT10_IN_AGA(T59, .(T57, T58), .(T57, X67)) → SELECT10_IN_AGA(T59, T58, X67)
selectc10_in_aga(T48, .(T48, T49), T49) → selectc10_out_aga(T48, .(T48, T49), T49)
selectc10_in_aga(T59, .(T57, T58), .(T57, X67)) → U13_aga(T59, T57, T58, X67, selectc10_in_aga(T59, T58, X67))
U13_aga(T59, T57, T58, X67, selectc10_out_aga(T59, T58, X67)) → selectc10_out_aga(T59, .(T57, T58), .(T57, X67))
memberc27_in_ag(T105, .(T105, T106)) → memberc27_out_ag(T105, .(T105, T106))
memberc27_in_ag(T116, .(T114, T115)) → U19_ag(T116, T114, T115, memberc27_in_ag(T116, T115))
U19_ag(T116, T114, T115, memberc27_out_ag(T116, T115)) → memberc27_out_ag(T116, .(T114, T115))
membersc20_in_ag(.(T86, T92), T85) → U17_ag(T86, T92, T85, memberc27_in_ag(T86, T85))
U17_ag(T86, T92, T85, memberc27_out_ag(T86, T85)) → U18_ag(T86, T92, T85, membersc20_in_ag(T92, T85))
membersc20_in_ag([], T126) → membersc20_out_ag([], T126)
U18_ag(T86, T92, T85, membersc20_out_ag(T92, T85)) → membersc20_out_ag(.(T86, T92), T85)
SELECT10_IN_AGA(T59, .(T57, T58), .(T57, X67)) → SELECT10_IN_AGA(T59, T58, X67)
SELECT10_IN_AGA(.(T57, T58)) → SELECT10_IN_AGA(T58)
From the DPs we obtained the following set of size-change graphs:
COLOR_MAP1_IN_AG(.(region(T26, T34), T67), T25) → U9_AG(T26, T34, T67, T25, selectc10_in_aga(T26, T25, T33))
U9_AG(T26, T34, T67, T25, selectc10_out_aga(T26, T25, T33)) → U10_AG(T26, T34, T67, T25, membersc20_in_ag(T34, T33))
U10_AG(T26, T34, T67, T25, membersc20_out_ag(T34, T33)) → COLOR_MAP1_IN_AG(T67, T25)
selectc10_in_aga(T48, .(T48, T49), T49) → selectc10_out_aga(T48, .(T48, T49), T49)
selectc10_in_aga(T59, .(T57, T58), .(T57, X67)) → U13_aga(T59, T57, T58, X67, selectc10_in_aga(T59, T58, X67))
U13_aga(T59, T57, T58, X67, selectc10_out_aga(T59, T58, X67)) → selectc10_out_aga(T59, .(T57, T58), .(T57, X67))
memberc27_in_ag(T105, .(T105, T106)) → memberc27_out_ag(T105, .(T105, T106))
memberc27_in_ag(T116, .(T114, T115)) → U19_ag(T116, T114, T115, memberc27_in_ag(T116, T115))
U19_ag(T116, T114, T115, memberc27_out_ag(T116, T115)) → memberc27_out_ag(T116, .(T114, T115))
membersc20_in_ag(.(T86, T92), T85) → U17_ag(T86, T92, T85, memberc27_in_ag(T86, T85))
U17_ag(T86, T92, T85, memberc27_out_ag(T86, T85)) → U18_ag(T86, T92, T85, membersc20_in_ag(T92, T85))
membersc20_in_ag([], T126) → membersc20_out_ag([], T126)
U18_ag(T86, T92, T85, membersc20_out_ag(T92, T85)) → membersc20_out_ag(.(T86, T92), T85)
COLOR_MAP1_IN_AG(T25) → U9_AG(T25, selectc10_in_aga(T25))
U9_AG(T25, selectc10_out_aga(T26, T25, T33)) → U10_AG(T25, membersc20_in_ag(T33))
U10_AG(T25, membersc20_out_ag(T34, T33)) → COLOR_MAP1_IN_AG(T25)
selectc10_in_aga(.(T48, T49)) → selectc10_out_aga(T48, .(T48, T49), T49)
selectc10_in_aga(.(T57, T58)) → U13_aga(T57, T58, selectc10_in_aga(T58))
U13_aga(T57, T58, selectc10_out_aga(T59, T58, X67)) → selectc10_out_aga(T59, .(T57, T58), .(T57, X67))
memberc27_in_ag(.(T105, T106)) → memberc27_out_ag(T105, .(T105, T106))
memberc27_in_ag(.(T114, T115)) → U19_ag(T114, T115, memberc27_in_ag(T115))
U19_ag(T114, T115, memberc27_out_ag(T116, T115)) → memberc27_out_ag(T116, .(T114, T115))
membersc20_in_ag(T85) → U17_ag(T85, memberc27_in_ag(T85))
U17_ag(T85, memberc27_out_ag(T86, T85)) → U18_ag(T86, T85, membersc20_in_ag(T85))
membersc20_in_ag(T126) → membersc20_out_ag([], T126)
U18_ag(T86, T85, membersc20_out_ag(T92, T85)) → membersc20_out_ag(.(T86, T92), T85)
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(T25, selectc10_out_aga(T26, T25, T33)) → U10_AG(T25, membersc20_in_ag(T33))
U10_AG(T25, membersc20_out_ag(T34, T33)) → COLOR_MAP1_IN_AG(T25)
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(.(T48, T49)) → selectc10_out_aga(T48, .(T48, T49), T49)
selectc10_in_aga(.(T57, T58)) → U13_aga(T57, T58, selectc10_in_aga(T58))
U13_aga(T57, T58, selectc10_out_aga(T59, T58, X67)) → selectc10_out_aga(T59, .(T57, T58), .(T57, X67))
memberc27_in_ag(.(T105, T106)) → memberc27_out_ag(T105, .(T105, T106))
memberc27_in_ag(.(T114, T115)) → U19_ag(T114, T115, memberc27_in_ag(T115))
U19_ag(T114, T115, memberc27_out_ag(T116, T115)) → memberc27_out_ag(T116, .(T114, T115))
membersc20_in_ag(T85) → U17_ag(T85, memberc27_in_ag(T85))
U17_ag(T85, memberc27_out_ag(T86, T85)) → U18_ag(T86, T85, membersc20_in_ag(T85))
membersc20_in_ag(T126) → membersc20_out_ag([], T126)
U18_ag(T86, T85, membersc20_out_ag(T92, T85)) → membersc20_out_ag(.(T86, T92), T85)
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(T25, membersc20_out_ag(T34, T33)) → COLOR_MAP1_IN_AG(T25)
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(.(T48, T49)) → selectc10_out_aga(T48, .(T48, T49), T49)
selectc10_in_aga(.(T57, T58)) → U13_aga(T57, T58, selectc10_in_aga(T58))
U13_aga(T57, T58, selectc10_out_aga(T59, T58, X67)) → selectc10_out_aga(T59, .(T57, T58), .(T57, X67))
memberc27_in_ag(.(T105, T106)) → memberc27_out_ag(T105, .(T105, T106))
memberc27_in_ag(.(T114, T115)) → U19_ag(T114, T115, memberc27_in_ag(T115))
U19_ag(T114, T115, memberc27_out_ag(T116, T115)) → memberc27_out_ag(T116, .(T114, T115))
membersc20_in_ag(T85) → U17_ag(T85, memberc27_in_ag(T85))
U17_ag(T85, memberc27_out_ag(T86, T85)) → U18_ag(T86, T85, membersc20_in_ag(T85))
membersc20_in_ag(T126) → membersc20_out_ag([], T126)
U18_ag(T86, T85, membersc20_out_ag(T92, T85)) → membersc20_out_ag(.(T86, T92), T85)
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(T25, membersc20_out_ag(T34, T33)) → COLOR_MAP1_IN_AG(T25)
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(.(T48, T49)) → selectc10_out_aga(T48, .(T48, T49), T49)
selectc10_in_aga(.(T57, T58)) → U13_aga(T57, T58, selectc10_in_aga(T58))
U13_aga(T57, T58, selectc10_out_aga(T59, T58, X67)) → selectc10_out_aga(T59, .(T57, T58), .(T57, X67))
memberc27_in_ag(.(T105, T106)) → memberc27_out_ag(T105, .(T105, T106))
memberc27_in_ag(.(T114, T115)) → U19_ag(T114, T115, memberc27_in_ag(T115))
U19_ag(T114, T115, memberc27_out_ag(T116, T115)) → memberc27_out_ag(T116, .(T114, T115))
membersc20_in_ag(T85) → U17_ag(T85, memberc27_in_ag(T85))
U17_ag(T85, memberc27_out_ag(T86, T85)) → U18_ag(T86, T85, membersc20_in_ag(T85))
membersc20_in_ag(T126) → membersc20_out_ag([], T126)
U18_ag(T86, T85, membersc20_out_ag(T92, T85)) → membersc20_out_ag(.(T86, T92), T85)
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(.(T48, T49)) → selectc10_out_aga(T48, .(T48, T49), T49)
selectc10_in_aga(.(T57, T58)) → U13_aga(T57, T58, selectc10_in_aga(T58))
U13_aga(T57, T58, selectc10_out_aga(T59, T58, X67)) → selectc10_out_aga(T59, .(T57, T58), .(T57, X67))
memberc27_in_ag(.(T105, T106)) → memberc27_out_ag(T105, .(T105, T106))
memberc27_in_ag(.(T114, T115)) → U19_ag(T114, T115, memberc27_in_ag(T115))
U19_ag(T114, T115, memberc27_out_ag(T116, T115)) → memberc27_out_ag(T116, .(T114, T115))
membersc20_in_ag(T85) → U17_ag(T85, memberc27_in_ag(T85))
U17_ag(T85, memberc27_out_ag(T86, T85)) → U18_ag(T86, T85, membersc20_in_ag(T85))
membersc20_in_ag(T126) → membersc20_out_ag([], T126)
U18_ag(T86, T85, membersc20_out_ag(T92, T85)) → membersc20_out_ag(.(T86, T92), T85)
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(.(T48, T49)) → selectc10_out_aga(T48, .(T48, T49), T49)
selectc10_in_aga(.(T57, T58)) → U13_aga(T57, T58, selectc10_in_aga(T58))
U13_aga(T57, T58, selectc10_out_aga(T59, T58, X67)) → selectc10_out_aga(T59, .(T57, T58), .(T57, X67))
memberc27_in_ag(.(T105, T106)) → memberc27_out_ag(T105, .(T105, T106))
memberc27_in_ag(.(T114, T115)) → U19_ag(T114, T115, memberc27_in_ag(T115))
U19_ag(T114, T115, memberc27_out_ag(T116, T115)) → memberc27_out_ag(T116, .(T114, T115))
membersc20_in_ag(T85) → U17_ag(T85, memberc27_in_ag(T85))
U17_ag(T85, memberc27_out_ag(T86, T85)) → U18_ag(T86, T85, membersc20_in_ag(T85))
membersc20_in_ag(T126) → membersc20_out_ag([], T126)
U18_ag(T86, T85, membersc20_out_ag(T92, T85)) → membersc20_out_ag(.(T86, T92), T85)
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(.(T48, T49)) → selectc10_out_aga(T48, .(T48, T49), T49)
selectc10_in_aga(.(T57, T58)) → U13_aga(T57, T58, selectc10_in_aga(T58))
U13_aga(T57, T58, selectc10_out_aga(T59, T58, X67)) → selectc10_out_aga(T59, .(T57, T58), .(T57, X67))
memberc27_in_ag(.(T105, T106)) → memberc27_out_ag(T105, .(T105, T106))
memberc27_in_ag(.(T114, T115)) → U19_ag(T114, T115, memberc27_in_ag(T115))
U19_ag(T114, T115, memberc27_out_ag(T116, T115)) → memberc27_out_ag(T116, .(T114, T115))
membersc20_in_ag(T85) → U17_ag(T85, memberc27_in_ag(T85))
U17_ag(T85, memberc27_out_ag(T86, T85)) → U18_ag(T86, T85, membersc20_in_ag(T85))
membersc20_in_ag(T126) → membersc20_out_ag([], T126)
U18_ag(T86, T85, membersc20_out_ag(T92, T85)) → membersc20_out_ag(.(T86, T92), T85)
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)