0 Prolog
↳1 PrologToPrologProblemTransformerProof (⇐)
↳2 Prolog
↳3 PrologToPiTRSProof (⇐)
↳4 PiTRS
↳5 DependencyPairsProof (⇔)
↳6 PiDP
↳7 DependencyGraphProof (⇔)
↳8 AND
↳9 PiDP
↳10 UsableRulesProof (⇔)
↳11 PiDP
↳12 PiDPToQDPProof (⇐)
↳13 QDP
↳14 NonTerminationProof (⇔)
↳15 NO
↳16 PiDP
↳17 UsableRulesProof (⇔)
↳18 PiDP
↳19 PiDPToQDPProof (⇐)
↳20 QDP
↳21 QDPOrderProof (⇔)
↳22 QDP
↳23 DependencyGraphProof (⇔)
↳24 TRUE
↳25 PiDP
↳26 UsableRulesProof (⇔)
↳27 PiDP
↳28 PiDPToQDPProof (⇐)
↳29 QDP
↳30 Narrowing (⇐)
↳31 QDP
↳32 UsableRulesProof (⇔)
↳33 QDP
↳34 QReductionProof (⇔)
↳35 QDP
↳36 NonTerminationProof (⇔)
↳37 NO
↳38 PiDP
↳39 UsableRulesProof (⇔)
↳40 PiDP
↳41 PiDPToQDPProof (⇐)
↳42 QDP
↳43 Narrowing (⇐)
↳44 QDP
↳45 NonTerminationProof (⇔)
↳46 NO
↳47 PiDP
↳48 UsableRulesProof (⇔)
↳49 PiDP
↳50 PiDPToQDPProof (⇐)
↳51 QDP
↳52 QDPSizeChangeProof (⇔)
↳53 YES
↳54 PrologToPiTRSProof (⇐)
↳55 PiTRS
↳56 DependencyPairsProof (⇔)
↳57 PiDP
↳58 DependencyGraphProof (⇔)
↳59 AND
↳60 PiDP
↳61 UsableRulesProof (⇔)
↳62 PiDP
↳63 PiDPToQDPProof (⇐)
↳64 QDP
↳65 NonTerminationProof (⇔)
↳66 NO
↳67 PiDP
↳68 UsableRulesProof (⇔)
↳69 PiDP
↳70 PiDPToQDPProof (⇐)
↳71 QDP
↳72 QDPOrderProof (⇔)
↳73 QDP
↳74 DependencyGraphProof (⇔)
↳75 TRUE
↳76 PiDP
↳77 UsableRulesProof (⇔)
↳78 PiDP
↳79 PiDPToQDPProof (⇐)
↳80 QDP
↳81 Narrowing (⇐)
↳82 QDP
↳83 UsableRulesProof (⇔)
↳84 QDP
↳85 QReductionProof (⇔)
↳86 QDP
↳87 NonTerminationProof (⇔)
↳88 NO
↳89 PiDP
↳90 UsableRulesProof (⇔)
↳91 PiDP
↳92 PiDPToQDPProof (⇐)
↳93 QDP
↳94 Narrowing (⇐)
↳95 QDP
↳96 NonTerminationProof (⇔)
↳97 NO
↳98 PiDP
↳99 UsableRulesProof (⇔)
↳100 PiDP
↳101 PiDPToQDPProof (⇐)
↳102 QDP
↳103 QDPSizeChangeProof (⇔)
↳104 YES
shapes1_in_ga(.(T15, T16), T6) → U24_ga(T15, T16, T6, varmat16_in_ga(T15, X49))
varmat16_in_ga([], []) → varmat16_out_ga([], [])
varmat16_in_ga(.(T26, T27), .(X83, X84)) → U1_ga(T26, T27, X83, X84, varmat16_in_ga(T26, X83))
varmat16_in_ga(.(T26, T27), .(T28, X84)) → U2_ga(T26, T27, T28, X84, varmat16_in_ga(T26, T28))
varmat16_in_ga(.(black, T33), .(black, X103)) → U4_ga(T33, X103, varmat16_in_ga(T33, X103))
varmat16_in_ga(.(white, T36), .(w(X119), X120)) → U5_ga(T36, X119, X120, varmat16_in_ga(T36, X120))
U5_ga(T36, X119, X120, varmat16_out_ga(T36, X120)) → varmat16_out_ga(.(white, T36), .(w(X119), X120))
U4_ga(T33, X103, varmat16_out_ga(T33, X103)) → varmat16_out_ga(.(black, T33), .(black, X103))
U2_ga(T26, T27, T28, X84, varmat16_out_ga(T26, T28)) → U3_ga(T26, T27, T28, X84, varmat16_in_ga(T27, X84))
U3_ga(T26, T27, T28, X84, varmat16_out_ga(T27, X84)) → varmat16_out_ga(.(T26, T27), .(T28, X84))
U1_ga(T26, T27, X83, X84, varmat16_out_ga(T26, X83)) → varmat16_out_ga(.(T26, T27), .(X83, X84))
U24_ga(T15, T16, T6, varmat16_out_ga(T15, X49)) → shapes1_out_ga(.(T15, T16), T6)
shapes1_in_ga(.(T15, T16), T6) → U25_ga(T15, T16, T6, varmat16_in_ga(T15, T17))
U25_ga(T15, T16, T6, varmat16_out_ga(T15, T17)) → U26_ga(T15, T16, T6, p17_in_gaa(T16, X50, T17))
p17_in_gaa(T16, X50, T17) → U14_gaa(T16, X50, T17, varmat16_in_ga(T16, X50))
U14_gaa(T16, X50, T17, varmat16_out_ga(T16, X50)) → p17_out_gaa(T16, X50, T17)
p17_in_gaa(T16, T37, T17) → U15_gaa(T16, T37, T17, varmat16_in_ga(T16, T37))
U15_gaa(T16, T37, T17, varmat16_out_ga(T16, T37)) → U16_gaa(T16, T37, T17, unif_matrx37_in_aa(T17, T37))
unif_matrx37_in_aa(T56, .(T57, T58)) → U6_aa(T56, T57, T58, unif_lines43_in_aa(T56, T57))
unif_lines43_in_aa(.(T103, .(T104, T107)), .(T105, .(T106, T108))) → U9_aa(T103, T104, T107, T105, T106, T108, p50_in_aaaaaa(T103, .(T104, .(T105, .(T106, .(T103, .(T105, .(T104, .(T106, .(T103, .(T106, .(T104, .(T105, []))))))))))), T104, T107, T106, T108))
p50_in_aaaaaa(T103, T113, T104, T107, T106, T108) → U17_aaaaaa(T103, T113, T104, T107, T106, T108, unif_pairs51_in_aa(T103, T113))
unif_pairs51_in_aa(w(T140), .(w(T140), T141)) → U20_aa(T140, T141, unif_pairs60_in_a(T141))
unif_pairs60_in_a([]) → unif_pairs60_out_a([])
unif_pairs60_in_a(.(w(T158), .(w(T158), T159))) → U10_a(T158, T159, unif_pairs60_in_a(T159))
unif_pairs60_in_a(.(black, .(black, T160))) → U11_a(T160, unif_pairs60_in_a(T160))
unif_pairs60_in_a(.(black, .(w(T165), T166))) → U12_a(T165, T166, unif_pairs60_in_a(T166))
unif_pairs60_in_a(.(w(T169), .(black, T170))) → U13_a(T169, T170, unif_pairs60_in_a(T170))
U13_a(T169, T170, unif_pairs60_out_a(T170)) → unif_pairs60_out_a(.(w(T169), .(black, T170)))
U12_a(T165, T166, unif_pairs60_out_a(T166)) → unif_pairs60_out_a(.(black, .(w(T165), T166)))
U11_a(T160, unif_pairs60_out_a(T160)) → unif_pairs60_out_a(.(black, .(black, T160)))
U10_a(T158, T159, unif_pairs60_out_a(T159)) → unif_pairs60_out_a(.(w(T158), .(w(T158), T159)))
U20_aa(T140, T141, unif_pairs60_out_a(T141)) → unif_pairs51_out_aa(w(T140), .(w(T140), T141))
unif_pairs51_in_aa(black, .(black, T171)) → U21_aa(T171, unif_pairs60_in_a(T171))
U21_aa(T171, unif_pairs60_out_a(T171)) → unif_pairs51_out_aa(black, .(black, T171))
unif_pairs51_in_aa(black, .(w(T176), T177)) → U22_aa(T176, T177, unif_pairs60_in_a(T177))
U22_aa(T176, T177, unif_pairs60_out_a(T177)) → unif_pairs51_out_aa(black, .(w(T176), T177))
unif_pairs51_in_aa(w(T180), .(black, T181)) → U23_aa(T180, T181, unif_pairs60_in_a(T181))
U23_aa(T180, T181, unif_pairs60_out_a(T181)) → unif_pairs51_out_aa(w(T180), .(black, T181))
U17_aaaaaa(T103, T113, T104, T107, T106, T108, unif_pairs51_out_aa(T103, T113)) → p50_out_aaaaaa(T103, T113, T104, T107, T106, T108)
p50_in_aaaaaa(T103, T113, T117, T118, T119, T120) → U18_aaaaaa(T103, T113, T117, T118, T119, T120, unif_pairs51_in_aa(T103, T113))
U18_aaaaaa(T103, T113, T117, T118, T119, T120, unif_pairs51_out_aa(T103, T113)) → U19_aaaaaa(T103, T113, T117, T118, T119, T120, unif_lines43_in_aa(.(T117, T118), .(T119, T120)))
unif_lines43_in_aa(.(T192, []), .(T193, [])) → unif_lines43_out_aa(.(T192, []), .(T193, []))
U19_aaaaaa(T103, T113, T117, T118, T119, T120, unif_lines43_out_aa(.(T117, T118), .(T119, T120))) → p50_out_aaaaaa(T103, T113, T117, T118, T119, T120)
U9_aa(T103, T104, T107, T105, T106, T108, p50_out_aaaaaa(T103, .(T104, .(T105, .(T106, .(T103, .(T105, .(T104, .(T106, .(T103, .(T106, .(T104, .(T105, []))))))))))), T104, T107, T106, T108)) → unif_lines43_out_aa(.(T103, .(T104, T107)), .(T105, .(T106, T108)))
U6_aa(T56, T57, T58, unif_lines43_out_aa(T56, T57)) → unif_matrx37_out_aa(T56, .(T57, T58))
unif_matrx37_in_aa(T56, .(T65, T66)) → U7_aa(T56, T65, T66, unif_lines43_in_aa(T56, T65))
U7_aa(T56, T65, T66, unif_lines43_out_aa(T56, T65)) → U8_aa(T56, T65, T66, unif_matrx37_in_aa(T65, T66))
unif_matrx37_in_aa(T199, []) → unif_matrx37_out_aa(T199, [])
U8_aa(T56, T65, T66, unif_matrx37_out_aa(T65, T66)) → unif_matrx37_out_aa(T56, .(T65, T66))
U16_gaa(T16, T37, T17, unif_matrx37_out_aa(T17, T37)) → p17_out_gaa(T16, T37, T17)
U26_ga(T15, T16, T6, p17_out_gaa(T16, X50, T17)) → shapes1_out_ga(.(T15, T16), T6)
shapes1_in_ga(.(black, T204), T6) → U27_ga(T204, T6, p17_in_gag(T204, X293, black))
p17_in_gag(T16, X50, T17) → U14_gag(T16, X50, T17, varmat16_in_ga(T16, X50))
U14_gag(T16, X50, T17, varmat16_out_ga(T16, X50)) → p17_out_gag(T16, X50, T17)
p17_in_gag(T16, T37, T17) → U15_gag(T16, T37, T17, varmat16_in_ga(T16, T37))
U15_gag(T16, T37, T17, varmat16_out_ga(T16, T37)) → U16_gag(T16, T37, T17, unif_matrx37_in_ga(T17, T37))
unif_matrx37_in_ga(T56, .(T57, T58)) → U6_ga(T56, T57, T58, unif_lines43_in_ga(T56, T57))
unif_lines43_in_ga(.(T103, .(T104, T107)), .(T105, .(T106, T108))) → U9_ga(T103, T104, T107, T105, T106, T108, p50_in_gaggaa(T103, .(T104, .(T105, .(T106, .(T103, .(T105, .(T104, .(T106, .(T103, .(T106, .(T104, .(T105, []))))))))))), T104, T107, T106, T108))
p50_in_gaggaa(T103, T113, T104, T107, T106, T108) → U17_gaggaa(T103, T113, T104, T107, T106, T108, unif_pairs51_in_ga(T103, T113))
unif_pairs51_in_ga(w(T140), .(w(T140), T141)) → U20_ga(T140, T141, unif_pairs60_in_a(T141))
U20_ga(T140, T141, unif_pairs60_out_a(T141)) → unif_pairs51_out_ga(w(T140), .(w(T140), T141))
unif_pairs51_in_ga(black, .(black, T171)) → U21_ga(T171, unif_pairs60_in_a(T171))
U21_ga(T171, unif_pairs60_out_a(T171)) → unif_pairs51_out_ga(black, .(black, T171))
unif_pairs51_in_ga(black, .(w(T176), T177)) → U22_ga(T176, T177, unif_pairs60_in_a(T177))
U22_ga(T176, T177, unif_pairs60_out_a(T177)) → unif_pairs51_out_ga(black, .(w(T176), T177))
unif_pairs51_in_ga(w(T180), .(black, T181)) → U23_ga(T180, T181, unif_pairs60_in_a(T181))
U23_ga(T180, T181, unif_pairs60_out_a(T181)) → unif_pairs51_out_ga(w(T180), .(black, T181))
U17_gaggaa(T103, T113, T104, T107, T106, T108, unif_pairs51_out_ga(T103, T113)) → p50_out_gaggaa(T103, T113, T104, T107, T106, T108)
p50_in_gaggaa(T103, T113, T117, T118, T119, T120) → U18_gaggaa(T103, T113, T117, T118, T119, T120, unif_pairs51_in_ga(T103, T113))
U18_gaggaa(T103, T113, T117, T118, T119, T120, unif_pairs51_out_ga(T103, T113)) → U19_gaggaa(T103, T113, T117, T118, T119, T120, unif_lines43_in_ga(.(T117, T118), .(T119, T120)))
unif_lines43_in_ga(.(T192, []), .(T193, [])) → unif_lines43_out_ga(.(T192, []), .(T193, []))
U19_gaggaa(T103, T113, T117, T118, T119, T120, unif_lines43_out_ga(.(T117, T118), .(T119, T120))) → p50_out_gaggaa(T103, T113, T117, T118, T119, T120)
U9_ga(T103, T104, T107, T105, T106, T108, p50_out_gaggaa(T103, .(T104, .(T105, .(T106, .(T103, .(T105, .(T104, .(T106, .(T103, .(T106, .(T104, .(T105, []))))))))))), T104, T107, T106, T108)) → unif_lines43_out_ga(.(T103, .(T104, T107)), .(T105, .(T106, T108)))
U6_ga(T56, T57, T58, unif_lines43_out_ga(T56, T57)) → unif_matrx37_out_ga(T56, .(T57, T58))
unif_matrx37_in_ga(T56, .(T65, T66)) → U7_ga(T56, T65, T66, unif_lines43_in_ga(T56, T65))
U7_ga(T56, T65, T66, unif_lines43_out_ga(T56, T65)) → U8_ga(T56, T65, T66, unif_matrx37_in_aa(T65, T66))
U8_ga(T56, T65, T66, unif_matrx37_out_aa(T65, T66)) → unif_matrx37_out_ga(T56, .(T65, T66))
unif_matrx37_in_ga(T199, []) → unif_matrx37_out_ga(T199, [])
U16_gag(T16, T37, T17, unif_matrx37_out_ga(T17, T37)) → p17_out_gag(T16, T37, T17)
U27_ga(T204, T6, p17_out_gag(T204, X293, black)) → shapes1_out_ga(.(black, T204), T6)
shapes1_in_ga(.(white, T207), T6) → U28_ga(T207, T6, p17_in_gag(T207, X310, w(X309)))
U28_ga(T207, T6, p17_out_gag(T207, X310, w(X309))) → shapes1_out_ga(.(white, T207), T6)
Infinitary Constructor Rewriting Termination of PiTRS implies Termination of Prolog
shapes1_in_ga(.(T15, T16), T6) → U24_ga(T15, T16, T6, varmat16_in_ga(T15, X49))
varmat16_in_ga([], []) → varmat16_out_ga([], [])
varmat16_in_ga(.(T26, T27), .(X83, X84)) → U1_ga(T26, T27, X83, X84, varmat16_in_ga(T26, X83))
varmat16_in_ga(.(T26, T27), .(T28, X84)) → U2_ga(T26, T27, T28, X84, varmat16_in_ga(T26, T28))
varmat16_in_ga(.(black, T33), .(black, X103)) → U4_ga(T33, X103, varmat16_in_ga(T33, X103))
varmat16_in_ga(.(white, T36), .(w(X119), X120)) → U5_ga(T36, X119, X120, varmat16_in_ga(T36, X120))
U5_ga(T36, X119, X120, varmat16_out_ga(T36, X120)) → varmat16_out_ga(.(white, T36), .(w(X119), X120))
U4_ga(T33, X103, varmat16_out_ga(T33, X103)) → varmat16_out_ga(.(black, T33), .(black, X103))
U2_ga(T26, T27, T28, X84, varmat16_out_ga(T26, T28)) → U3_ga(T26, T27, T28, X84, varmat16_in_ga(T27, X84))
U3_ga(T26, T27, T28, X84, varmat16_out_ga(T27, X84)) → varmat16_out_ga(.(T26, T27), .(T28, X84))
U1_ga(T26, T27, X83, X84, varmat16_out_ga(T26, X83)) → varmat16_out_ga(.(T26, T27), .(X83, X84))
U24_ga(T15, T16, T6, varmat16_out_ga(T15, X49)) → shapes1_out_ga(.(T15, T16), T6)
shapes1_in_ga(.(T15, T16), T6) → U25_ga(T15, T16, T6, varmat16_in_ga(T15, T17))
U25_ga(T15, T16, T6, varmat16_out_ga(T15, T17)) → U26_ga(T15, T16, T6, p17_in_gaa(T16, X50, T17))
p17_in_gaa(T16, X50, T17) → U14_gaa(T16, X50, T17, varmat16_in_ga(T16, X50))
U14_gaa(T16, X50, T17, varmat16_out_ga(T16, X50)) → p17_out_gaa(T16, X50, T17)
p17_in_gaa(T16, T37, T17) → U15_gaa(T16, T37, T17, varmat16_in_ga(T16, T37))
U15_gaa(T16, T37, T17, varmat16_out_ga(T16, T37)) → U16_gaa(T16, T37, T17, unif_matrx37_in_aa(T17, T37))
unif_matrx37_in_aa(T56, .(T57, T58)) → U6_aa(T56, T57, T58, unif_lines43_in_aa(T56, T57))
unif_lines43_in_aa(.(T103, .(T104, T107)), .(T105, .(T106, T108))) → U9_aa(T103, T104, T107, T105, T106, T108, p50_in_aaaaaa(T103, .(T104, .(T105, .(T106, .(T103, .(T105, .(T104, .(T106, .(T103, .(T106, .(T104, .(T105, []))))))))))), T104, T107, T106, T108))
p50_in_aaaaaa(T103, T113, T104, T107, T106, T108) → U17_aaaaaa(T103, T113, T104, T107, T106, T108, unif_pairs51_in_aa(T103, T113))
unif_pairs51_in_aa(w(T140), .(w(T140), T141)) → U20_aa(T140, T141, unif_pairs60_in_a(T141))
unif_pairs60_in_a([]) → unif_pairs60_out_a([])
unif_pairs60_in_a(.(w(T158), .(w(T158), T159))) → U10_a(T158, T159, unif_pairs60_in_a(T159))
unif_pairs60_in_a(.(black, .(black, T160))) → U11_a(T160, unif_pairs60_in_a(T160))
unif_pairs60_in_a(.(black, .(w(T165), T166))) → U12_a(T165, T166, unif_pairs60_in_a(T166))
unif_pairs60_in_a(.(w(T169), .(black, T170))) → U13_a(T169, T170, unif_pairs60_in_a(T170))
U13_a(T169, T170, unif_pairs60_out_a(T170)) → unif_pairs60_out_a(.(w(T169), .(black, T170)))
U12_a(T165, T166, unif_pairs60_out_a(T166)) → unif_pairs60_out_a(.(black, .(w(T165), T166)))
U11_a(T160, unif_pairs60_out_a(T160)) → unif_pairs60_out_a(.(black, .(black, T160)))
U10_a(T158, T159, unif_pairs60_out_a(T159)) → unif_pairs60_out_a(.(w(T158), .(w(T158), T159)))
U20_aa(T140, T141, unif_pairs60_out_a(T141)) → unif_pairs51_out_aa(w(T140), .(w(T140), T141))
unif_pairs51_in_aa(black, .(black, T171)) → U21_aa(T171, unif_pairs60_in_a(T171))
U21_aa(T171, unif_pairs60_out_a(T171)) → unif_pairs51_out_aa(black, .(black, T171))
unif_pairs51_in_aa(black, .(w(T176), T177)) → U22_aa(T176, T177, unif_pairs60_in_a(T177))
U22_aa(T176, T177, unif_pairs60_out_a(T177)) → unif_pairs51_out_aa(black, .(w(T176), T177))
unif_pairs51_in_aa(w(T180), .(black, T181)) → U23_aa(T180, T181, unif_pairs60_in_a(T181))
U23_aa(T180, T181, unif_pairs60_out_a(T181)) → unif_pairs51_out_aa(w(T180), .(black, T181))
U17_aaaaaa(T103, T113, T104, T107, T106, T108, unif_pairs51_out_aa(T103, T113)) → p50_out_aaaaaa(T103, T113, T104, T107, T106, T108)
p50_in_aaaaaa(T103, T113, T117, T118, T119, T120) → U18_aaaaaa(T103, T113, T117, T118, T119, T120, unif_pairs51_in_aa(T103, T113))
U18_aaaaaa(T103, T113, T117, T118, T119, T120, unif_pairs51_out_aa(T103, T113)) → U19_aaaaaa(T103, T113, T117, T118, T119, T120, unif_lines43_in_aa(.(T117, T118), .(T119, T120)))
unif_lines43_in_aa(.(T192, []), .(T193, [])) → unif_lines43_out_aa(.(T192, []), .(T193, []))
U19_aaaaaa(T103, T113, T117, T118, T119, T120, unif_lines43_out_aa(.(T117, T118), .(T119, T120))) → p50_out_aaaaaa(T103, T113, T117, T118, T119, T120)
U9_aa(T103, T104, T107, T105, T106, T108, p50_out_aaaaaa(T103, .(T104, .(T105, .(T106, .(T103, .(T105, .(T104, .(T106, .(T103, .(T106, .(T104, .(T105, []))))))))))), T104, T107, T106, T108)) → unif_lines43_out_aa(.(T103, .(T104, T107)), .(T105, .(T106, T108)))
U6_aa(T56, T57, T58, unif_lines43_out_aa(T56, T57)) → unif_matrx37_out_aa(T56, .(T57, T58))
unif_matrx37_in_aa(T56, .(T65, T66)) → U7_aa(T56, T65, T66, unif_lines43_in_aa(T56, T65))
U7_aa(T56, T65, T66, unif_lines43_out_aa(T56, T65)) → U8_aa(T56, T65, T66, unif_matrx37_in_aa(T65, T66))
unif_matrx37_in_aa(T199, []) → unif_matrx37_out_aa(T199, [])
U8_aa(T56, T65, T66, unif_matrx37_out_aa(T65, T66)) → unif_matrx37_out_aa(T56, .(T65, T66))
U16_gaa(T16, T37, T17, unif_matrx37_out_aa(T17, T37)) → p17_out_gaa(T16, T37, T17)
U26_ga(T15, T16, T6, p17_out_gaa(T16, X50, T17)) → shapes1_out_ga(.(T15, T16), T6)
shapes1_in_ga(.(black, T204), T6) → U27_ga(T204, T6, p17_in_gag(T204, X293, black))
p17_in_gag(T16, X50, T17) → U14_gag(T16, X50, T17, varmat16_in_ga(T16, X50))
U14_gag(T16, X50, T17, varmat16_out_ga(T16, X50)) → p17_out_gag(T16, X50, T17)
p17_in_gag(T16, T37, T17) → U15_gag(T16, T37, T17, varmat16_in_ga(T16, T37))
U15_gag(T16, T37, T17, varmat16_out_ga(T16, T37)) → U16_gag(T16, T37, T17, unif_matrx37_in_ga(T17, T37))
unif_matrx37_in_ga(T56, .(T57, T58)) → U6_ga(T56, T57, T58, unif_lines43_in_ga(T56, T57))
unif_lines43_in_ga(.(T103, .(T104, T107)), .(T105, .(T106, T108))) → U9_ga(T103, T104, T107, T105, T106, T108, p50_in_gaggaa(T103, .(T104, .(T105, .(T106, .(T103, .(T105, .(T104, .(T106, .(T103, .(T106, .(T104, .(T105, []))))))))))), T104, T107, T106, T108))
p50_in_gaggaa(T103, T113, T104, T107, T106, T108) → U17_gaggaa(T103, T113, T104, T107, T106, T108, unif_pairs51_in_ga(T103, T113))
unif_pairs51_in_ga(w(T140), .(w(T140), T141)) → U20_ga(T140, T141, unif_pairs60_in_a(T141))
U20_ga(T140, T141, unif_pairs60_out_a(T141)) → unif_pairs51_out_ga(w(T140), .(w(T140), T141))
unif_pairs51_in_ga(black, .(black, T171)) → U21_ga(T171, unif_pairs60_in_a(T171))
U21_ga(T171, unif_pairs60_out_a(T171)) → unif_pairs51_out_ga(black, .(black, T171))
unif_pairs51_in_ga(black, .(w(T176), T177)) → U22_ga(T176, T177, unif_pairs60_in_a(T177))
U22_ga(T176, T177, unif_pairs60_out_a(T177)) → unif_pairs51_out_ga(black, .(w(T176), T177))
unif_pairs51_in_ga(w(T180), .(black, T181)) → U23_ga(T180, T181, unif_pairs60_in_a(T181))
U23_ga(T180, T181, unif_pairs60_out_a(T181)) → unif_pairs51_out_ga(w(T180), .(black, T181))
U17_gaggaa(T103, T113, T104, T107, T106, T108, unif_pairs51_out_ga(T103, T113)) → p50_out_gaggaa(T103, T113, T104, T107, T106, T108)
p50_in_gaggaa(T103, T113, T117, T118, T119, T120) → U18_gaggaa(T103, T113, T117, T118, T119, T120, unif_pairs51_in_ga(T103, T113))
U18_gaggaa(T103, T113, T117, T118, T119, T120, unif_pairs51_out_ga(T103, T113)) → U19_gaggaa(T103, T113, T117, T118, T119, T120, unif_lines43_in_ga(.(T117, T118), .(T119, T120)))
unif_lines43_in_ga(.(T192, []), .(T193, [])) → unif_lines43_out_ga(.(T192, []), .(T193, []))
U19_gaggaa(T103, T113, T117, T118, T119, T120, unif_lines43_out_ga(.(T117, T118), .(T119, T120))) → p50_out_gaggaa(T103, T113, T117, T118, T119, T120)
U9_ga(T103, T104, T107, T105, T106, T108, p50_out_gaggaa(T103, .(T104, .(T105, .(T106, .(T103, .(T105, .(T104, .(T106, .(T103, .(T106, .(T104, .(T105, []))))))))))), T104, T107, T106, T108)) → unif_lines43_out_ga(.(T103, .(T104, T107)), .(T105, .(T106, T108)))
U6_ga(T56, T57, T58, unif_lines43_out_ga(T56, T57)) → unif_matrx37_out_ga(T56, .(T57, T58))
unif_matrx37_in_ga(T56, .(T65, T66)) → U7_ga(T56, T65, T66, unif_lines43_in_ga(T56, T65))
U7_ga(T56, T65, T66, unif_lines43_out_ga(T56, T65)) → U8_ga(T56, T65, T66, unif_matrx37_in_aa(T65, T66))
U8_ga(T56, T65, T66, unif_matrx37_out_aa(T65, T66)) → unif_matrx37_out_ga(T56, .(T65, T66))
unif_matrx37_in_ga(T199, []) → unif_matrx37_out_ga(T199, [])
U16_gag(T16, T37, T17, unif_matrx37_out_ga(T17, T37)) → p17_out_gag(T16, T37, T17)
U27_ga(T204, T6, p17_out_gag(T204, X293, black)) → shapes1_out_ga(.(black, T204), T6)
shapes1_in_ga(.(white, T207), T6) → U28_ga(T207, T6, p17_in_gag(T207, X310, w(X309)))
U28_ga(T207, T6, p17_out_gag(T207, X310, w(X309))) → shapes1_out_ga(.(white, T207), T6)
SHAPES1_IN_GA(.(T15, T16), T6) → U24_GA(T15, T16, T6, varmat16_in_ga(T15, X49))
SHAPES1_IN_GA(.(T15, T16), T6) → VARMAT16_IN_GA(T15, X49)
VARMAT16_IN_GA(.(T26, T27), .(X83, X84)) → U1_GA(T26, T27, X83, X84, varmat16_in_ga(T26, X83))
VARMAT16_IN_GA(.(T26, T27), .(X83, X84)) → VARMAT16_IN_GA(T26, X83)
VARMAT16_IN_GA(.(T26, T27), .(T28, X84)) → U2_GA(T26, T27, T28, X84, varmat16_in_ga(T26, T28))
VARMAT16_IN_GA(.(black, T33), .(black, X103)) → U4_GA(T33, X103, varmat16_in_ga(T33, X103))
VARMAT16_IN_GA(.(black, T33), .(black, X103)) → VARMAT16_IN_GA(T33, X103)
VARMAT16_IN_GA(.(white, T36), .(w(X119), X120)) → U5_GA(T36, X119, X120, varmat16_in_ga(T36, X120))
VARMAT16_IN_GA(.(white, T36), .(w(X119), X120)) → VARMAT16_IN_GA(T36, X120)
U2_GA(T26, T27, T28, X84, varmat16_out_ga(T26, T28)) → U3_GA(T26, T27, T28, X84, varmat16_in_ga(T27, X84))
U2_GA(T26, T27, T28, X84, varmat16_out_ga(T26, T28)) → VARMAT16_IN_GA(T27, X84)
SHAPES1_IN_GA(.(T15, T16), T6) → U25_GA(T15, T16, T6, varmat16_in_ga(T15, T17))
U25_GA(T15, T16, T6, varmat16_out_ga(T15, T17)) → U26_GA(T15, T16, T6, p17_in_gaa(T16, X50, T17))
U25_GA(T15, T16, T6, varmat16_out_ga(T15, T17)) → P17_IN_GAA(T16, X50, T17)
P17_IN_GAA(T16, X50, T17) → U14_GAA(T16, X50, T17, varmat16_in_ga(T16, X50))
P17_IN_GAA(T16, X50, T17) → VARMAT16_IN_GA(T16, X50)
P17_IN_GAA(T16, T37, T17) → U15_GAA(T16, T37, T17, varmat16_in_ga(T16, T37))
U15_GAA(T16, T37, T17, varmat16_out_ga(T16, T37)) → U16_GAA(T16, T37, T17, unif_matrx37_in_aa(T17, T37))
U15_GAA(T16, T37, T17, varmat16_out_ga(T16, T37)) → UNIF_MATRX37_IN_AA(T17, T37)
UNIF_MATRX37_IN_AA(T56, .(T57, T58)) → U6_AA(T56, T57, T58, unif_lines43_in_aa(T56, T57))
UNIF_MATRX37_IN_AA(T56, .(T57, T58)) → UNIF_LINES43_IN_AA(T56, T57)
UNIF_LINES43_IN_AA(.(T103, .(T104, T107)), .(T105, .(T106, T108))) → U9_AA(T103, T104, T107, T105, T106, T108, p50_in_aaaaaa(T103, .(T104, .(T105, .(T106, .(T103, .(T105, .(T104, .(T106, .(T103, .(T106, .(T104, .(T105, []))))))))))), T104, T107, T106, T108))
UNIF_LINES43_IN_AA(.(T103, .(T104, T107)), .(T105, .(T106, T108))) → P50_IN_AAAAAA(T103, .(T104, .(T105, .(T106, .(T103, .(T105, .(T104, .(T106, .(T103, .(T106, .(T104, .(T105, []))))))))))), T104, T107, T106, T108)
P50_IN_AAAAAA(T103, T113, T104, T107, T106, T108) → U17_AAAAAA(T103, T113, T104, T107, T106, T108, unif_pairs51_in_aa(T103, T113))
P50_IN_AAAAAA(T103, T113, T104, T107, T106, T108) → UNIF_PAIRS51_IN_AA(T103, T113)
UNIF_PAIRS51_IN_AA(w(T140), .(w(T140), T141)) → U20_AA(T140, T141, unif_pairs60_in_a(T141))
UNIF_PAIRS51_IN_AA(w(T140), .(w(T140), T141)) → UNIF_PAIRS60_IN_A(T141)
UNIF_PAIRS60_IN_A(.(w(T158), .(w(T158), T159))) → U10_A(T158, T159, unif_pairs60_in_a(T159))
UNIF_PAIRS60_IN_A(.(w(T158), .(w(T158), T159))) → UNIF_PAIRS60_IN_A(T159)
UNIF_PAIRS60_IN_A(.(black, .(black, T160))) → U11_A(T160, unif_pairs60_in_a(T160))
UNIF_PAIRS60_IN_A(.(black, .(black, T160))) → UNIF_PAIRS60_IN_A(T160)
UNIF_PAIRS60_IN_A(.(black, .(w(T165), T166))) → U12_A(T165, T166, unif_pairs60_in_a(T166))
UNIF_PAIRS60_IN_A(.(black, .(w(T165), T166))) → UNIF_PAIRS60_IN_A(T166)
UNIF_PAIRS60_IN_A(.(w(T169), .(black, T170))) → U13_A(T169, T170, unif_pairs60_in_a(T170))
UNIF_PAIRS60_IN_A(.(w(T169), .(black, T170))) → UNIF_PAIRS60_IN_A(T170)
UNIF_PAIRS51_IN_AA(black, .(black, T171)) → U21_AA(T171, unif_pairs60_in_a(T171))
UNIF_PAIRS51_IN_AA(black, .(black, T171)) → UNIF_PAIRS60_IN_A(T171)
UNIF_PAIRS51_IN_AA(black, .(w(T176), T177)) → U22_AA(T176, T177, unif_pairs60_in_a(T177))
UNIF_PAIRS51_IN_AA(black, .(w(T176), T177)) → UNIF_PAIRS60_IN_A(T177)
UNIF_PAIRS51_IN_AA(w(T180), .(black, T181)) → U23_AA(T180, T181, unif_pairs60_in_a(T181))
UNIF_PAIRS51_IN_AA(w(T180), .(black, T181)) → UNIF_PAIRS60_IN_A(T181)
P50_IN_AAAAAA(T103, T113, T117, T118, T119, T120) → U18_AAAAAA(T103, T113, T117, T118, T119, T120, unif_pairs51_in_aa(T103, T113))
U18_AAAAAA(T103, T113, T117, T118, T119, T120, unif_pairs51_out_aa(T103, T113)) → U19_AAAAAA(T103, T113, T117, T118, T119, T120, unif_lines43_in_aa(.(T117, T118), .(T119, T120)))
U18_AAAAAA(T103, T113, T117, T118, T119, T120, unif_pairs51_out_aa(T103, T113)) → UNIF_LINES43_IN_AA(.(T117, T118), .(T119, T120))
UNIF_MATRX37_IN_AA(T56, .(T65, T66)) → U7_AA(T56, T65, T66, unif_lines43_in_aa(T56, T65))
U7_AA(T56, T65, T66, unif_lines43_out_aa(T56, T65)) → U8_AA(T56, T65, T66, unif_matrx37_in_aa(T65, T66))
U7_AA(T56, T65, T66, unif_lines43_out_aa(T56, T65)) → UNIF_MATRX37_IN_AA(T65, T66)
SHAPES1_IN_GA(.(black, T204), T6) → U27_GA(T204, T6, p17_in_gag(T204, X293, black))
SHAPES1_IN_GA(.(black, T204), T6) → P17_IN_GAG(T204, X293, black)
P17_IN_GAG(T16, X50, T17) → U14_GAG(T16, X50, T17, varmat16_in_ga(T16, X50))
P17_IN_GAG(T16, X50, T17) → VARMAT16_IN_GA(T16, X50)
P17_IN_GAG(T16, T37, T17) → U15_GAG(T16, T37, T17, varmat16_in_ga(T16, T37))
U15_GAG(T16, T37, T17, varmat16_out_ga(T16, T37)) → U16_GAG(T16, T37, T17, unif_matrx37_in_ga(T17, T37))
U15_GAG(T16, T37, T17, varmat16_out_ga(T16, T37)) → UNIF_MATRX37_IN_GA(T17, T37)
UNIF_MATRX37_IN_GA(T56, .(T57, T58)) → U6_GA(T56, T57, T58, unif_lines43_in_ga(T56, T57))
UNIF_MATRX37_IN_GA(T56, .(T57, T58)) → UNIF_LINES43_IN_GA(T56, T57)
UNIF_LINES43_IN_GA(.(T103, .(T104, T107)), .(T105, .(T106, T108))) → U9_GA(T103, T104, T107, T105, T106, T108, p50_in_gaggaa(T103, .(T104, .(T105, .(T106, .(T103, .(T105, .(T104, .(T106, .(T103, .(T106, .(T104, .(T105, []))))))))))), T104, T107, T106, T108))
UNIF_LINES43_IN_GA(.(T103, .(T104, T107)), .(T105, .(T106, T108))) → P50_IN_GAGGAA(T103, .(T104, .(T105, .(T106, .(T103, .(T105, .(T104, .(T106, .(T103, .(T106, .(T104, .(T105, []))))))))))), T104, T107, T106, T108)
P50_IN_GAGGAA(T103, T113, T104, T107, T106, T108) → U17_GAGGAA(T103, T113, T104, T107, T106, T108, unif_pairs51_in_ga(T103, T113))
P50_IN_GAGGAA(T103, T113, T104, T107, T106, T108) → UNIF_PAIRS51_IN_GA(T103, T113)
UNIF_PAIRS51_IN_GA(w(T140), .(w(T140), T141)) → U20_GA(T140, T141, unif_pairs60_in_a(T141))
UNIF_PAIRS51_IN_GA(w(T140), .(w(T140), T141)) → UNIF_PAIRS60_IN_A(T141)
UNIF_PAIRS51_IN_GA(black, .(black, T171)) → U21_GA(T171, unif_pairs60_in_a(T171))
UNIF_PAIRS51_IN_GA(black, .(black, T171)) → UNIF_PAIRS60_IN_A(T171)
UNIF_PAIRS51_IN_GA(black, .(w(T176), T177)) → U22_GA(T176, T177, unif_pairs60_in_a(T177))
UNIF_PAIRS51_IN_GA(black, .(w(T176), T177)) → UNIF_PAIRS60_IN_A(T177)
UNIF_PAIRS51_IN_GA(w(T180), .(black, T181)) → U23_GA(T180, T181, unif_pairs60_in_a(T181))
UNIF_PAIRS51_IN_GA(w(T180), .(black, T181)) → UNIF_PAIRS60_IN_A(T181)
P50_IN_GAGGAA(T103, T113, T117, T118, T119, T120) → U18_GAGGAA(T103, T113, T117, T118, T119, T120, unif_pairs51_in_ga(T103, T113))
U18_GAGGAA(T103, T113, T117, T118, T119, T120, unif_pairs51_out_ga(T103, T113)) → U19_GAGGAA(T103, T113, T117, T118, T119, T120, unif_lines43_in_ga(.(T117, T118), .(T119, T120)))
U18_GAGGAA(T103, T113, T117, T118, T119, T120, unif_pairs51_out_ga(T103, T113)) → UNIF_LINES43_IN_GA(.(T117, T118), .(T119, T120))
UNIF_MATRX37_IN_GA(T56, .(T65, T66)) → U7_GA(T56, T65, T66, unif_lines43_in_ga(T56, T65))
U7_GA(T56, T65, T66, unif_lines43_out_ga(T56, T65)) → U8_GA(T56, T65, T66, unif_matrx37_in_aa(T65, T66))
U7_GA(T56, T65, T66, unif_lines43_out_ga(T56, T65)) → UNIF_MATRX37_IN_AA(T65, T66)
SHAPES1_IN_GA(.(white, T207), T6) → U28_GA(T207, T6, p17_in_gag(T207, X310, w(X309)))
SHAPES1_IN_GA(.(white, T207), T6) → P17_IN_GAG(T207, X310, w(X309))
shapes1_in_ga(.(T15, T16), T6) → U24_ga(T15, T16, T6, varmat16_in_ga(T15, X49))
varmat16_in_ga([], []) → varmat16_out_ga([], [])
varmat16_in_ga(.(T26, T27), .(X83, X84)) → U1_ga(T26, T27, X83, X84, varmat16_in_ga(T26, X83))
varmat16_in_ga(.(T26, T27), .(T28, X84)) → U2_ga(T26, T27, T28, X84, varmat16_in_ga(T26, T28))
varmat16_in_ga(.(black, T33), .(black, X103)) → U4_ga(T33, X103, varmat16_in_ga(T33, X103))
varmat16_in_ga(.(white, T36), .(w(X119), X120)) → U5_ga(T36, X119, X120, varmat16_in_ga(T36, X120))
U5_ga(T36, X119, X120, varmat16_out_ga(T36, X120)) → varmat16_out_ga(.(white, T36), .(w(X119), X120))
U4_ga(T33, X103, varmat16_out_ga(T33, X103)) → varmat16_out_ga(.(black, T33), .(black, X103))
U2_ga(T26, T27, T28, X84, varmat16_out_ga(T26, T28)) → U3_ga(T26, T27, T28, X84, varmat16_in_ga(T27, X84))
U3_ga(T26, T27, T28, X84, varmat16_out_ga(T27, X84)) → varmat16_out_ga(.(T26, T27), .(T28, X84))
U1_ga(T26, T27, X83, X84, varmat16_out_ga(T26, X83)) → varmat16_out_ga(.(T26, T27), .(X83, X84))
U24_ga(T15, T16, T6, varmat16_out_ga(T15, X49)) → shapes1_out_ga(.(T15, T16), T6)
shapes1_in_ga(.(T15, T16), T6) → U25_ga(T15, T16, T6, varmat16_in_ga(T15, T17))
U25_ga(T15, T16, T6, varmat16_out_ga(T15, T17)) → U26_ga(T15, T16, T6, p17_in_gaa(T16, X50, T17))
p17_in_gaa(T16, X50, T17) → U14_gaa(T16, X50, T17, varmat16_in_ga(T16, X50))
U14_gaa(T16, X50, T17, varmat16_out_ga(T16, X50)) → p17_out_gaa(T16, X50, T17)
p17_in_gaa(T16, T37, T17) → U15_gaa(T16, T37, T17, varmat16_in_ga(T16, T37))
U15_gaa(T16, T37, T17, varmat16_out_ga(T16, T37)) → U16_gaa(T16, T37, T17, unif_matrx37_in_aa(T17, T37))
unif_matrx37_in_aa(T56, .(T57, T58)) → U6_aa(T56, T57, T58, unif_lines43_in_aa(T56, T57))
unif_lines43_in_aa(.(T103, .(T104, T107)), .(T105, .(T106, T108))) → U9_aa(T103, T104, T107, T105, T106, T108, p50_in_aaaaaa(T103, .(T104, .(T105, .(T106, .(T103, .(T105, .(T104, .(T106, .(T103, .(T106, .(T104, .(T105, []))))))))))), T104, T107, T106, T108))
p50_in_aaaaaa(T103, T113, T104, T107, T106, T108) → U17_aaaaaa(T103, T113, T104, T107, T106, T108, unif_pairs51_in_aa(T103, T113))
unif_pairs51_in_aa(w(T140), .(w(T140), T141)) → U20_aa(T140, T141, unif_pairs60_in_a(T141))
unif_pairs60_in_a([]) → unif_pairs60_out_a([])
unif_pairs60_in_a(.(w(T158), .(w(T158), T159))) → U10_a(T158, T159, unif_pairs60_in_a(T159))
unif_pairs60_in_a(.(black, .(black, T160))) → U11_a(T160, unif_pairs60_in_a(T160))
unif_pairs60_in_a(.(black, .(w(T165), T166))) → U12_a(T165, T166, unif_pairs60_in_a(T166))
unif_pairs60_in_a(.(w(T169), .(black, T170))) → U13_a(T169, T170, unif_pairs60_in_a(T170))
U13_a(T169, T170, unif_pairs60_out_a(T170)) → unif_pairs60_out_a(.(w(T169), .(black, T170)))
U12_a(T165, T166, unif_pairs60_out_a(T166)) → unif_pairs60_out_a(.(black, .(w(T165), T166)))
U11_a(T160, unif_pairs60_out_a(T160)) → unif_pairs60_out_a(.(black, .(black, T160)))
U10_a(T158, T159, unif_pairs60_out_a(T159)) → unif_pairs60_out_a(.(w(T158), .(w(T158), T159)))
U20_aa(T140, T141, unif_pairs60_out_a(T141)) → unif_pairs51_out_aa(w(T140), .(w(T140), T141))
unif_pairs51_in_aa(black, .(black, T171)) → U21_aa(T171, unif_pairs60_in_a(T171))
U21_aa(T171, unif_pairs60_out_a(T171)) → unif_pairs51_out_aa(black, .(black, T171))
unif_pairs51_in_aa(black, .(w(T176), T177)) → U22_aa(T176, T177, unif_pairs60_in_a(T177))
U22_aa(T176, T177, unif_pairs60_out_a(T177)) → unif_pairs51_out_aa(black, .(w(T176), T177))
unif_pairs51_in_aa(w(T180), .(black, T181)) → U23_aa(T180, T181, unif_pairs60_in_a(T181))
U23_aa(T180, T181, unif_pairs60_out_a(T181)) → unif_pairs51_out_aa(w(T180), .(black, T181))
U17_aaaaaa(T103, T113, T104, T107, T106, T108, unif_pairs51_out_aa(T103, T113)) → p50_out_aaaaaa(T103, T113, T104, T107, T106, T108)
p50_in_aaaaaa(T103, T113, T117, T118, T119, T120) → U18_aaaaaa(T103, T113, T117, T118, T119, T120, unif_pairs51_in_aa(T103, T113))
U18_aaaaaa(T103, T113, T117, T118, T119, T120, unif_pairs51_out_aa(T103, T113)) → U19_aaaaaa(T103, T113, T117, T118, T119, T120, unif_lines43_in_aa(.(T117, T118), .(T119, T120)))
unif_lines43_in_aa(.(T192, []), .(T193, [])) → unif_lines43_out_aa(.(T192, []), .(T193, []))
U19_aaaaaa(T103, T113, T117, T118, T119, T120, unif_lines43_out_aa(.(T117, T118), .(T119, T120))) → p50_out_aaaaaa(T103, T113, T117, T118, T119, T120)
U9_aa(T103, T104, T107, T105, T106, T108, p50_out_aaaaaa(T103, .(T104, .(T105, .(T106, .(T103, .(T105, .(T104, .(T106, .(T103, .(T106, .(T104, .(T105, []))))))))))), T104, T107, T106, T108)) → unif_lines43_out_aa(.(T103, .(T104, T107)), .(T105, .(T106, T108)))
U6_aa(T56, T57, T58, unif_lines43_out_aa(T56, T57)) → unif_matrx37_out_aa(T56, .(T57, T58))
unif_matrx37_in_aa(T56, .(T65, T66)) → U7_aa(T56, T65, T66, unif_lines43_in_aa(T56, T65))
U7_aa(T56, T65, T66, unif_lines43_out_aa(T56, T65)) → U8_aa(T56, T65, T66, unif_matrx37_in_aa(T65, T66))
unif_matrx37_in_aa(T199, []) → unif_matrx37_out_aa(T199, [])
U8_aa(T56, T65, T66, unif_matrx37_out_aa(T65, T66)) → unif_matrx37_out_aa(T56, .(T65, T66))
U16_gaa(T16, T37, T17, unif_matrx37_out_aa(T17, T37)) → p17_out_gaa(T16, T37, T17)
U26_ga(T15, T16, T6, p17_out_gaa(T16, X50, T17)) → shapes1_out_ga(.(T15, T16), T6)
shapes1_in_ga(.(black, T204), T6) → U27_ga(T204, T6, p17_in_gag(T204, X293, black))
p17_in_gag(T16, X50, T17) → U14_gag(T16, X50, T17, varmat16_in_ga(T16, X50))
U14_gag(T16, X50, T17, varmat16_out_ga(T16, X50)) → p17_out_gag(T16, X50, T17)
p17_in_gag(T16, T37, T17) → U15_gag(T16, T37, T17, varmat16_in_ga(T16, T37))
U15_gag(T16, T37, T17, varmat16_out_ga(T16, T37)) → U16_gag(T16, T37, T17, unif_matrx37_in_ga(T17, T37))
unif_matrx37_in_ga(T56, .(T57, T58)) → U6_ga(T56, T57, T58, unif_lines43_in_ga(T56, T57))
unif_lines43_in_ga(.(T103, .(T104, T107)), .(T105, .(T106, T108))) → U9_ga(T103, T104, T107, T105, T106, T108, p50_in_gaggaa(T103, .(T104, .(T105, .(T106, .(T103, .(T105, .(T104, .(T106, .(T103, .(T106, .(T104, .(T105, []))))))))))), T104, T107, T106, T108))
p50_in_gaggaa(T103, T113, T104, T107, T106, T108) → U17_gaggaa(T103, T113, T104, T107, T106, T108, unif_pairs51_in_ga(T103, T113))
unif_pairs51_in_ga(w(T140), .(w(T140), T141)) → U20_ga(T140, T141, unif_pairs60_in_a(T141))
U20_ga(T140, T141, unif_pairs60_out_a(T141)) → unif_pairs51_out_ga(w(T140), .(w(T140), T141))
unif_pairs51_in_ga(black, .(black, T171)) → U21_ga(T171, unif_pairs60_in_a(T171))
U21_ga(T171, unif_pairs60_out_a(T171)) → unif_pairs51_out_ga(black, .(black, T171))
unif_pairs51_in_ga(black, .(w(T176), T177)) → U22_ga(T176, T177, unif_pairs60_in_a(T177))
U22_ga(T176, T177, unif_pairs60_out_a(T177)) → unif_pairs51_out_ga(black, .(w(T176), T177))
unif_pairs51_in_ga(w(T180), .(black, T181)) → U23_ga(T180, T181, unif_pairs60_in_a(T181))
U23_ga(T180, T181, unif_pairs60_out_a(T181)) → unif_pairs51_out_ga(w(T180), .(black, T181))
U17_gaggaa(T103, T113, T104, T107, T106, T108, unif_pairs51_out_ga(T103, T113)) → p50_out_gaggaa(T103, T113, T104, T107, T106, T108)
p50_in_gaggaa(T103, T113, T117, T118, T119, T120) → U18_gaggaa(T103, T113, T117, T118, T119, T120, unif_pairs51_in_ga(T103, T113))
U18_gaggaa(T103, T113, T117, T118, T119, T120, unif_pairs51_out_ga(T103, T113)) → U19_gaggaa(T103, T113, T117, T118, T119, T120, unif_lines43_in_ga(.(T117, T118), .(T119, T120)))
unif_lines43_in_ga(.(T192, []), .(T193, [])) → unif_lines43_out_ga(.(T192, []), .(T193, []))
U19_gaggaa(T103, T113, T117, T118, T119, T120, unif_lines43_out_ga(.(T117, T118), .(T119, T120))) → p50_out_gaggaa(T103, T113, T117, T118, T119, T120)
U9_ga(T103, T104, T107, T105, T106, T108, p50_out_gaggaa(T103, .(T104, .(T105, .(T106, .(T103, .(T105, .(T104, .(T106, .(T103, .(T106, .(T104, .(T105, []))))))))))), T104, T107, T106, T108)) → unif_lines43_out_ga(.(T103, .(T104, T107)), .(T105, .(T106, T108)))
U6_ga(T56, T57, T58, unif_lines43_out_ga(T56, T57)) → unif_matrx37_out_ga(T56, .(T57, T58))
unif_matrx37_in_ga(T56, .(T65, T66)) → U7_ga(T56, T65, T66, unif_lines43_in_ga(T56, T65))
U7_ga(T56, T65, T66, unif_lines43_out_ga(T56, T65)) → U8_ga(T56, T65, T66, unif_matrx37_in_aa(T65, T66))
U8_ga(T56, T65, T66, unif_matrx37_out_aa(T65, T66)) → unif_matrx37_out_ga(T56, .(T65, T66))
unif_matrx37_in_ga(T199, []) → unif_matrx37_out_ga(T199, [])
U16_gag(T16, T37, T17, unif_matrx37_out_ga(T17, T37)) → p17_out_gag(T16, T37, T17)
U27_ga(T204, T6, p17_out_gag(T204, X293, black)) → shapes1_out_ga(.(black, T204), T6)
shapes1_in_ga(.(white, T207), T6) → U28_ga(T207, T6, p17_in_gag(T207, X310, w(X309)))
U28_ga(T207, T6, p17_out_gag(T207, X310, w(X309))) → shapes1_out_ga(.(white, T207), T6)
SHAPES1_IN_GA(.(T15, T16), T6) → U24_GA(T15, T16, T6, varmat16_in_ga(T15, X49))
SHAPES1_IN_GA(.(T15, T16), T6) → VARMAT16_IN_GA(T15, X49)
VARMAT16_IN_GA(.(T26, T27), .(X83, X84)) → U1_GA(T26, T27, X83, X84, varmat16_in_ga(T26, X83))
VARMAT16_IN_GA(.(T26, T27), .(X83, X84)) → VARMAT16_IN_GA(T26, X83)
VARMAT16_IN_GA(.(T26, T27), .(T28, X84)) → U2_GA(T26, T27, T28, X84, varmat16_in_ga(T26, T28))
VARMAT16_IN_GA(.(black, T33), .(black, X103)) → U4_GA(T33, X103, varmat16_in_ga(T33, X103))
VARMAT16_IN_GA(.(black, T33), .(black, X103)) → VARMAT16_IN_GA(T33, X103)
VARMAT16_IN_GA(.(white, T36), .(w(X119), X120)) → U5_GA(T36, X119, X120, varmat16_in_ga(T36, X120))
VARMAT16_IN_GA(.(white, T36), .(w(X119), X120)) → VARMAT16_IN_GA(T36, X120)
U2_GA(T26, T27, T28, X84, varmat16_out_ga(T26, T28)) → U3_GA(T26, T27, T28, X84, varmat16_in_ga(T27, X84))
U2_GA(T26, T27, T28, X84, varmat16_out_ga(T26, T28)) → VARMAT16_IN_GA(T27, X84)
SHAPES1_IN_GA(.(T15, T16), T6) → U25_GA(T15, T16, T6, varmat16_in_ga(T15, T17))
U25_GA(T15, T16, T6, varmat16_out_ga(T15, T17)) → U26_GA(T15, T16, T6, p17_in_gaa(T16, X50, T17))
U25_GA(T15, T16, T6, varmat16_out_ga(T15, T17)) → P17_IN_GAA(T16, X50, T17)
P17_IN_GAA(T16, X50, T17) → U14_GAA(T16, X50, T17, varmat16_in_ga(T16, X50))
P17_IN_GAA(T16, X50, T17) → VARMAT16_IN_GA(T16, X50)
P17_IN_GAA(T16, T37, T17) → U15_GAA(T16, T37, T17, varmat16_in_ga(T16, T37))
U15_GAA(T16, T37, T17, varmat16_out_ga(T16, T37)) → U16_GAA(T16, T37, T17, unif_matrx37_in_aa(T17, T37))
U15_GAA(T16, T37, T17, varmat16_out_ga(T16, T37)) → UNIF_MATRX37_IN_AA(T17, T37)
UNIF_MATRX37_IN_AA(T56, .(T57, T58)) → U6_AA(T56, T57, T58, unif_lines43_in_aa(T56, T57))
UNIF_MATRX37_IN_AA(T56, .(T57, T58)) → UNIF_LINES43_IN_AA(T56, T57)
UNIF_LINES43_IN_AA(.(T103, .(T104, T107)), .(T105, .(T106, T108))) → U9_AA(T103, T104, T107, T105, T106, T108, p50_in_aaaaaa(T103, .(T104, .(T105, .(T106, .(T103, .(T105, .(T104, .(T106, .(T103, .(T106, .(T104, .(T105, []))))))))))), T104, T107, T106, T108))
UNIF_LINES43_IN_AA(.(T103, .(T104, T107)), .(T105, .(T106, T108))) → P50_IN_AAAAAA(T103, .(T104, .(T105, .(T106, .(T103, .(T105, .(T104, .(T106, .(T103, .(T106, .(T104, .(T105, []))))))))))), T104, T107, T106, T108)
P50_IN_AAAAAA(T103, T113, T104, T107, T106, T108) → U17_AAAAAA(T103, T113, T104, T107, T106, T108, unif_pairs51_in_aa(T103, T113))
P50_IN_AAAAAA(T103, T113, T104, T107, T106, T108) → UNIF_PAIRS51_IN_AA(T103, T113)
UNIF_PAIRS51_IN_AA(w(T140), .(w(T140), T141)) → U20_AA(T140, T141, unif_pairs60_in_a(T141))
UNIF_PAIRS51_IN_AA(w(T140), .(w(T140), T141)) → UNIF_PAIRS60_IN_A(T141)
UNIF_PAIRS60_IN_A(.(w(T158), .(w(T158), T159))) → U10_A(T158, T159, unif_pairs60_in_a(T159))
UNIF_PAIRS60_IN_A(.(w(T158), .(w(T158), T159))) → UNIF_PAIRS60_IN_A(T159)
UNIF_PAIRS60_IN_A(.(black, .(black, T160))) → U11_A(T160, unif_pairs60_in_a(T160))
UNIF_PAIRS60_IN_A(.(black, .(black, T160))) → UNIF_PAIRS60_IN_A(T160)
UNIF_PAIRS60_IN_A(.(black, .(w(T165), T166))) → U12_A(T165, T166, unif_pairs60_in_a(T166))
UNIF_PAIRS60_IN_A(.(black, .(w(T165), T166))) → UNIF_PAIRS60_IN_A(T166)
UNIF_PAIRS60_IN_A(.(w(T169), .(black, T170))) → U13_A(T169, T170, unif_pairs60_in_a(T170))
UNIF_PAIRS60_IN_A(.(w(T169), .(black, T170))) → UNIF_PAIRS60_IN_A(T170)
UNIF_PAIRS51_IN_AA(black, .(black, T171)) → U21_AA(T171, unif_pairs60_in_a(T171))
UNIF_PAIRS51_IN_AA(black, .(black, T171)) → UNIF_PAIRS60_IN_A(T171)
UNIF_PAIRS51_IN_AA(black, .(w(T176), T177)) → U22_AA(T176, T177, unif_pairs60_in_a(T177))
UNIF_PAIRS51_IN_AA(black, .(w(T176), T177)) → UNIF_PAIRS60_IN_A(T177)
UNIF_PAIRS51_IN_AA(w(T180), .(black, T181)) → U23_AA(T180, T181, unif_pairs60_in_a(T181))
UNIF_PAIRS51_IN_AA(w(T180), .(black, T181)) → UNIF_PAIRS60_IN_A(T181)
P50_IN_AAAAAA(T103, T113, T117, T118, T119, T120) → U18_AAAAAA(T103, T113, T117, T118, T119, T120, unif_pairs51_in_aa(T103, T113))
U18_AAAAAA(T103, T113, T117, T118, T119, T120, unif_pairs51_out_aa(T103, T113)) → U19_AAAAAA(T103, T113, T117, T118, T119, T120, unif_lines43_in_aa(.(T117, T118), .(T119, T120)))
U18_AAAAAA(T103, T113, T117, T118, T119, T120, unif_pairs51_out_aa(T103, T113)) → UNIF_LINES43_IN_AA(.(T117, T118), .(T119, T120))
UNIF_MATRX37_IN_AA(T56, .(T65, T66)) → U7_AA(T56, T65, T66, unif_lines43_in_aa(T56, T65))
U7_AA(T56, T65, T66, unif_lines43_out_aa(T56, T65)) → U8_AA(T56, T65, T66, unif_matrx37_in_aa(T65, T66))
U7_AA(T56, T65, T66, unif_lines43_out_aa(T56, T65)) → UNIF_MATRX37_IN_AA(T65, T66)
SHAPES1_IN_GA(.(black, T204), T6) → U27_GA(T204, T6, p17_in_gag(T204, X293, black))
SHAPES1_IN_GA(.(black, T204), T6) → P17_IN_GAG(T204, X293, black)
P17_IN_GAG(T16, X50, T17) → U14_GAG(T16, X50, T17, varmat16_in_ga(T16, X50))
P17_IN_GAG(T16, X50, T17) → VARMAT16_IN_GA(T16, X50)
P17_IN_GAG(T16, T37, T17) → U15_GAG(T16, T37, T17, varmat16_in_ga(T16, T37))
U15_GAG(T16, T37, T17, varmat16_out_ga(T16, T37)) → U16_GAG(T16, T37, T17, unif_matrx37_in_ga(T17, T37))
U15_GAG(T16, T37, T17, varmat16_out_ga(T16, T37)) → UNIF_MATRX37_IN_GA(T17, T37)
UNIF_MATRX37_IN_GA(T56, .(T57, T58)) → U6_GA(T56, T57, T58, unif_lines43_in_ga(T56, T57))
UNIF_MATRX37_IN_GA(T56, .(T57, T58)) → UNIF_LINES43_IN_GA(T56, T57)
UNIF_LINES43_IN_GA(.(T103, .(T104, T107)), .(T105, .(T106, T108))) → U9_GA(T103, T104, T107, T105, T106, T108, p50_in_gaggaa(T103, .(T104, .(T105, .(T106, .(T103, .(T105, .(T104, .(T106, .(T103, .(T106, .(T104, .(T105, []))))))))))), T104, T107, T106, T108))
UNIF_LINES43_IN_GA(.(T103, .(T104, T107)), .(T105, .(T106, T108))) → P50_IN_GAGGAA(T103, .(T104, .(T105, .(T106, .(T103, .(T105, .(T104, .(T106, .(T103, .(T106, .(T104, .(T105, []))))))))))), T104, T107, T106, T108)
P50_IN_GAGGAA(T103, T113, T104, T107, T106, T108) → U17_GAGGAA(T103, T113, T104, T107, T106, T108, unif_pairs51_in_ga(T103, T113))
P50_IN_GAGGAA(T103, T113, T104, T107, T106, T108) → UNIF_PAIRS51_IN_GA(T103, T113)
UNIF_PAIRS51_IN_GA(w(T140), .(w(T140), T141)) → U20_GA(T140, T141, unif_pairs60_in_a(T141))
UNIF_PAIRS51_IN_GA(w(T140), .(w(T140), T141)) → UNIF_PAIRS60_IN_A(T141)
UNIF_PAIRS51_IN_GA(black, .(black, T171)) → U21_GA(T171, unif_pairs60_in_a(T171))
UNIF_PAIRS51_IN_GA(black, .(black, T171)) → UNIF_PAIRS60_IN_A(T171)
UNIF_PAIRS51_IN_GA(black, .(w(T176), T177)) → U22_GA(T176, T177, unif_pairs60_in_a(T177))
UNIF_PAIRS51_IN_GA(black, .(w(T176), T177)) → UNIF_PAIRS60_IN_A(T177)
UNIF_PAIRS51_IN_GA(w(T180), .(black, T181)) → U23_GA(T180, T181, unif_pairs60_in_a(T181))
UNIF_PAIRS51_IN_GA(w(T180), .(black, T181)) → UNIF_PAIRS60_IN_A(T181)
P50_IN_GAGGAA(T103, T113, T117, T118, T119, T120) → U18_GAGGAA(T103, T113, T117, T118, T119, T120, unif_pairs51_in_ga(T103, T113))
U18_GAGGAA(T103, T113, T117, T118, T119, T120, unif_pairs51_out_ga(T103, T113)) → U19_GAGGAA(T103, T113, T117, T118, T119, T120, unif_lines43_in_ga(.(T117, T118), .(T119, T120)))
U18_GAGGAA(T103, T113, T117, T118, T119, T120, unif_pairs51_out_ga(T103, T113)) → UNIF_LINES43_IN_GA(.(T117, T118), .(T119, T120))
UNIF_MATRX37_IN_GA(T56, .(T65, T66)) → U7_GA(T56, T65, T66, unif_lines43_in_ga(T56, T65))
U7_GA(T56, T65, T66, unif_lines43_out_ga(T56, T65)) → U8_GA(T56, T65, T66, unif_matrx37_in_aa(T65, T66))
U7_GA(T56, T65, T66, unif_lines43_out_ga(T56, T65)) → UNIF_MATRX37_IN_AA(T65, T66)
SHAPES1_IN_GA(.(white, T207), T6) → U28_GA(T207, T6, p17_in_gag(T207, X310, w(X309)))
SHAPES1_IN_GA(.(white, T207), T6) → P17_IN_GAG(T207, X310, w(X309))
shapes1_in_ga(.(T15, T16), T6) → U24_ga(T15, T16, T6, varmat16_in_ga(T15, X49))
varmat16_in_ga([], []) → varmat16_out_ga([], [])
varmat16_in_ga(.(T26, T27), .(X83, X84)) → U1_ga(T26, T27, X83, X84, varmat16_in_ga(T26, X83))
varmat16_in_ga(.(T26, T27), .(T28, X84)) → U2_ga(T26, T27, T28, X84, varmat16_in_ga(T26, T28))
varmat16_in_ga(.(black, T33), .(black, X103)) → U4_ga(T33, X103, varmat16_in_ga(T33, X103))
varmat16_in_ga(.(white, T36), .(w(X119), X120)) → U5_ga(T36, X119, X120, varmat16_in_ga(T36, X120))
U5_ga(T36, X119, X120, varmat16_out_ga(T36, X120)) → varmat16_out_ga(.(white, T36), .(w(X119), X120))
U4_ga(T33, X103, varmat16_out_ga(T33, X103)) → varmat16_out_ga(.(black, T33), .(black, X103))
U2_ga(T26, T27, T28, X84, varmat16_out_ga(T26, T28)) → U3_ga(T26, T27, T28, X84, varmat16_in_ga(T27, X84))
U3_ga(T26, T27, T28, X84, varmat16_out_ga(T27, X84)) → varmat16_out_ga(.(T26, T27), .(T28, X84))
U1_ga(T26, T27, X83, X84, varmat16_out_ga(T26, X83)) → varmat16_out_ga(.(T26, T27), .(X83, X84))
U24_ga(T15, T16, T6, varmat16_out_ga(T15, X49)) → shapes1_out_ga(.(T15, T16), T6)
shapes1_in_ga(.(T15, T16), T6) → U25_ga(T15, T16, T6, varmat16_in_ga(T15, T17))
U25_ga(T15, T16, T6, varmat16_out_ga(T15, T17)) → U26_ga(T15, T16, T6, p17_in_gaa(T16, X50, T17))
p17_in_gaa(T16, X50, T17) → U14_gaa(T16, X50, T17, varmat16_in_ga(T16, X50))
U14_gaa(T16, X50, T17, varmat16_out_ga(T16, X50)) → p17_out_gaa(T16, X50, T17)
p17_in_gaa(T16, T37, T17) → U15_gaa(T16, T37, T17, varmat16_in_ga(T16, T37))
U15_gaa(T16, T37, T17, varmat16_out_ga(T16, T37)) → U16_gaa(T16, T37, T17, unif_matrx37_in_aa(T17, T37))
unif_matrx37_in_aa(T56, .(T57, T58)) → U6_aa(T56, T57, T58, unif_lines43_in_aa(T56, T57))
unif_lines43_in_aa(.(T103, .(T104, T107)), .(T105, .(T106, T108))) → U9_aa(T103, T104, T107, T105, T106, T108, p50_in_aaaaaa(T103, .(T104, .(T105, .(T106, .(T103, .(T105, .(T104, .(T106, .(T103, .(T106, .(T104, .(T105, []))))))))))), T104, T107, T106, T108))
p50_in_aaaaaa(T103, T113, T104, T107, T106, T108) → U17_aaaaaa(T103, T113, T104, T107, T106, T108, unif_pairs51_in_aa(T103, T113))
unif_pairs51_in_aa(w(T140), .(w(T140), T141)) → U20_aa(T140, T141, unif_pairs60_in_a(T141))
unif_pairs60_in_a([]) → unif_pairs60_out_a([])
unif_pairs60_in_a(.(w(T158), .(w(T158), T159))) → U10_a(T158, T159, unif_pairs60_in_a(T159))
unif_pairs60_in_a(.(black, .(black, T160))) → U11_a(T160, unif_pairs60_in_a(T160))
unif_pairs60_in_a(.(black, .(w(T165), T166))) → U12_a(T165, T166, unif_pairs60_in_a(T166))
unif_pairs60_in_a(.(w(T169), .(black, T170))) → U13_a(T169, T170, unif_pairs60_in_a(T170))
U13_a(T169, T170, unif_pairs60_out_a(T170)) → unif_pairs60_out_a(.(w(T169), .(black, T170)))
U12_a(T165, T166, unif_pairs60_out_a(T166)) → unif_pairs60_out_a(.(black, .(w(T165), T166)))
U11_a(T160, unif_pairs60_out_a(T160)) → unif_pairs60_out_a(.(black, .(black, T160)))
U10_a(T158, T159, unif_pairs60_out_a(T159)) → unif_pairs60_out_a(.(w(T158), .(w(T158), T159)))
U20_aa(T140, T141, unif_pairs60_out_a(T141)) → unif_pairs51_out_aa(w(T140), .(w(T140), T141))
unif_pairs51_in_aa(black, .(black, T171)) → U21_aa(T171, unif_pairs60_in_a(T171))
U21_aa(T171, unif_pairs60_out_a(T171)) → unif_pairs51_out_aa(black, .(black, T171))
unif_pairs51_in_aa(black, .(w(T176), T177)) → U22_aa(T176, T177, unif_pairs60_in_a(T177))
U22_aa(T176, T177, unif_pairs60_out_a(T177)) → unif_pairs51_out_aa(black, .(w(T176), T177))
unif_pairs51_in_aa(w(T180), .(black, T181)) → U23_aa(T180, T181, unif_pairs60_in_a(T181))
U23_aa(T180, T181, unif_pairs60_out_a(T181)) → unif_pairs51_out_aa(w(T180), .(black, T181))
U17_aaaaaa(T103, T113, T104, T107, T106, T108, unif_pairs51_out_aa(T103, T113)) → p50_out_aaaaaa(T103, T113, T104, T107, T106, T108)
p50_in_aaaaaa(T103, T113, T117, T118, T119, T120) → U18_aaaaaa(T103, T113, T117, T118, T119, T120, unif_pairs51_in_aa(T103, T113))
U18_aaaaaa(T103, T113, T117, T118, T119, T120, unif_pairs51_out_aa(T103, T113)) → U19_aaaaaa(T103, T113, T117, T118, T119, T120, unif_lines43_in_aa(.(T117, T118), .(T119, T120)))
unif_lines43_in_aa(.(T192, []), .(T193, [])) → unif_lines43_out_aa(.(T192, []), .(T193, []))
U19_aaaaaa(T103, T113, T117, T118, T119, T120, unif_lines43_out_aa(.(T117, T118), .(T119, T120))) → p50_out_aaaaaa(T103, T113, T117, T118, T119, T120)
U9_aa(T103, T104, T107, T105, T106, T108, p50_out_aaaaaa(T103, .(T104, .(T105, .(T106, .(T103, .(T105, .(T104, .(T106, .(T103, .(T106, .(T104, .(T105, []))))))))))), T104, T107, T106, T108)) → unif_lines43_out_aa(.(T103, .(T104, T107)), .(T105, .(T106, T108)))
U6_aa(T56, T57, T58, unif_lines43_out_aa(T56, T57)) → unif_matrx37_out_aa(T56, .(T57, T58))
unif_matrx37_in_aa(T56, .(T65, T66)) → U7_aa(T56, T65, T66, unif_lines43_in_aa(T56, T65))
U7_aa(T56, T65, T66, unif_lines43_out_aa(T56, T65)) → U8_aa(T56, T65, T66, unif_matrx37_in_aa(T65, T66))
unif_matrx37_in_aa(T199, []) → unif_matrx37_out_aa(T199, [])
U8_aa(T56, T65, T66, unif_matrx37_out_aa(T65, T66)) → unif_matrx37_out_aa(T56, .(T65, T66))
U16_gaa(T16, T37, T17, unif_matrx37_out_aa(T17, T37)) → p17_out_gaa(T16, T37, T17)
U26_ga(T15, T16, T6, p17_out_gaa(T16, X50, T17)) → shapes1_out_ga(.(T15, T16), T6)
shapes1_in_ga(.(black, T204), T6) → U27_ga(T204, T6, p17_in_gag(T204, X293, black))
p17_in_gag(T16, X50, T17) → U14_gag(T16, X50, T17, varmat16_in_ga(T16, X50))
U14_gag(T16, X50, T17, varmat16_out_ga(T16, X50)) → p17_out_gag(T16, X50, T17)
p17_in_gag(T16, T37, T17) → U15_gag(T16, T37, T17, varmat16_in_ga(T16, T37))
U15_gag(T16, T37, T17, varmat16_out_ga(T16, T37)) → U16_gag(T16, T37, T17, unif_matrx37_in_ga(T17, T37))
unif_matrx37_in_ga(T56, .(T57, T58)) → U6_ga(T56, T57, T58, unif_lines43_in_ga(T56, T57))
unif_lines43_in_ga(.(T103, .(T104, T107)), .(T105, .(T106, T108))) → U9_ga(T103, T104, T107, T105, T106, T108, p50_in_gaggaa(T103, .(T104, .(T105, .(T106, .(T103, .(T105, .(T104, .(T106, .(T103, .(T106, .(T104, .(T105, []))))))))))), T104, T107, T106, T108))
p50_in_gaggaa(T103, T113, T104, T107, T106, T108) → U17_gaggaa(T103, T113, T104, T107, T106, T108, unif_pairs51_in_ga(T103, T113))
unif_pairs51_in_ga(w(T140), .(w(T140), T141)) → U20_ga(T140, T141, unif_pairs60_in_a(T141))
U20_ga(T140, T141, unif_pairs60_out_a(T141)) → unif_pairs51_out_ga(w(T140), .(w(T140), T141))
unif_pairs51_in_ga(black, .(black, T171)) → U21_ga(T171, unif_pairs60_in_a(T171))
U21_ga(T171, unif_pairs60_out_a(T171)) → unif_pairs51_out_ga(black, .(black, T171))
unif_pairs51_in_ga(black, .(w(T176), T177)) → U22_ga(T176, T177, unif_pairs60_in_a(T177))
U22_ga(T176, T177, unif_pairs60_out_a(T177)) → unif_pairs51_out_ga(black, .(w(T176), T177))
unif_pairs51_in_ga(w(T180), .(black, T181)) → U23_ga(T180, T181, unif_pairs60_in_a(T181))
U23_ga(T180, T181, unif_pairs60_out_a(T181)) → unif_pairs51_out_ga(w(T180), .(black, T181))
U17_gaggaa(T103, T113, T104, T107, T106, T108, unif_pairs51_out_ga(T103, T113)) → p50_out_gaggaa(T103, T113, T104, T107, T106, T108)
p50_in_gaggaa(T103, T113, T117, T118, T119, T120) → U18_gaggaa(T103, T113, T117, T118, T119, T120, unif_pairs51_in_ga(T103, T113))
U18_gaggaa(T103, T113, T117, T118, T119, T120, unif_pairs51_out_ga(T103, T113)) → U19_gaggaa(T103, T113, T117, T118, T119, T120, unif_lines43_in_ga(.(T117, T118), .(T119, T120)))
unif_lines43_in_ga(.(T192, []), .(T193, [])) → unif_lines43_out_ga(.(T192, []), .(T193, []))
U19_gaggaa(T103, T113, T117, T118, T119, T120, unif_lines43_out_ga(.(T117, T118), .(T119, T120))) → p50_out_gaggaa(T103, T113, T117, T118, T119, T120)
U9_ga(T103, T104, T107, T105, T106, T108, p50_out_gaggaa(T103, .(T104, .(T105, .(T106, .(T103, .(T105, .(T104, .(T106, .(T103, .(T106, .(T104, .(T105, []))))))))))), T104, T107, T106, T108)) → unif_lines43_out_ga(.(T103, .(T104, T107)), .(T105, .(T106, T108)))
U6_ga(T56, T57, T58, unif_lines43_out_ga(T56, T57)) → unif_matrx37_out_ga(T56, .(T57, T58))
unif_matrx37_in_ga(T56, .(T65, T66)) → U7_ga(T56, T65, T66, unif_lines43_in_ga(T56, T65))
U7_ga(T56, T65, T66, unif_lines43_out_ga(T56, T65)) → U8_ga(T56, T65, T66, unif_matrx37_in_aa(T65, T66))
U8_ga(T56, T65, T66, unif_matrx37_out_aa(T65, T66)) → unif_matrx37_out_ga(T56, .(T65, T66))
unif_matrx37_in_ga(T199, []) → unif_matrx37_out_ga(T199, [])
U16_gag(T16, T37, T17, unif_matrx37_out_ga(T17, T37)) → p17_out_gag(T16, T37, T17)
U27_ga(T204, T6, p17_out_gag(T204, X293, black)) → shapes1_out_ga(.(black, T204), T6)
shapes1_in_ga(.(white, T207), T6) → U28_ga(T207, T6, p17_in_gag(T207, X310, w(X309)))
U28_ga(T207, T6, p17_out_gag(T207, X310, w(X309))) → shapes1_out_ga(.(white, T207), T6)
UNIF_PAIRS60_IN_A(.(black, .(black, T160))) → UNIF_PAIRS60_IN_A(T160)
UNIF_PAIRS60_IN_A(.(w(T158), .(w(T158), T159))) → UNIF_PAIRS60_IN_A(T159)
UNIF_PAIRS60_IN_A(.(black, .(w(T165), T166))) → UNIF_PAIRS60_IN_A(T166)
UNIF_PAIRS60_IN_A(.(w(T169), .(black, T170))) → UNIF_PAIRS60_IN_A(T170)
shapes1_in_ga(.(T15, T16), T6) → U24_ga(T15, T16, T6, varmat16_in_ga(T15, X49))
varmat16_in_ga([], []) → varmat16_out_ga([], [])
varmat16_in_ga(.(T26, T27), .(X83, X84)) → U1_ga(T26, T27, X83, X84, varmat16_in_ga(T26, X83))
varmat16_in_ga(.(T26, T27), .(T28, X84)) → U2_ga(T26, T27, T28, X84, varmat16_in_ga(T26, T28))
varmat16_in_ga(.(black, T33), .(black, X103)) → U4_ga(T33, X103, varmat16_in_ga(T33, X103))
varmat16_in_ga(.(white, T36), .(w(X119), X120)) → U5_ga(T36, X119, X120, varmat16_in_ga(T36, X120))
U5_ga(T36, X119, X120, varmat16_out_ga(T36, X120)) → varmat16_out_ga(.(white, T36), .(w(X119), X120))
U4_ga(T33, X103, varmat16_out_ga(T33, X103)) → varmat16_out_ga(.(black, T33), .(black, X103))
U2_ga(T26, T27, T28, X84, varmat16_out_ga(T26, T28)) → U3_ga(T26, T27, T28, X84, varmat16_in_ga(T27, X84))
U3_ga(T26, T27, T28, X84, varmat16_out_ga(T27, X84)) → varmat16_out_ga(.(T26, T27), .(T28, X84))
U1_ga(T26, T27, X83, X84, varmat16_out_ga(T26, X83)) → varmat16_out_ga(.(T26, T27), .(X83, X84))
U24_ga(T15, T16, T6, varmat16_out_ga(T15, X49)) → shapes1_out_ga(.(T15, T16), T6)
shapes1_in_ga(.(T15, T16), T6) → U25_ga(T15, T16, T6, varmat16_in_ga(T15, T17))
U25_ga(T15, T16, T6, varmat16_out_ga(T15, T17)) → U26_ga(T15, T16, T6, p17_in_gaa(T16, X50, T17))
p17_in_gaa(T16, X50, T17) → U14_gaa(T16, X50, T17, varmat16_in_ga(T16, X50))
U14_gaa(T16, X50, T17, varmat16_out_ga(T16, X50)) → p17_out_gaa(T16, X50, T17)
p17_in_gaa(T16, T37, T17) → U15_gaa(T16, T37, T17, varmat16_in_ga(T16, T37))
U15_gaa(T16, T37, T17, varmat16_out_ga(T16, T37)) → U16_gaa(T16, T37, T17, unif_matrx37_in_aa(T17, T37))
unif_matrx37_in_aa(T56, .(T57, T58)) → U6_aa(T56, T57, T58, unif_lines43_in_aa(T56, T57))
unif_lines43_in_aa(.(T103, .(T104, T107)), .(T105, .(T106, T108))) → U9_aa(T103, T104, T107, T105, T106, T108, p50_in_aaaaaa(T103, .(T104, .(T105, .(T106, .(T103, .(T105, .(T104, .(T106, .(T103, .(T106, .(T104, .(T105, []))))))))))), T104, T107, T106, T108))
p50_in_aaaaaa(T103, T113, T104, T107, T106, T108) → U17_aaaaaa(T103, T113, T104, T107, T106, T108, unif_pairs51_in_aa(T103, T113))
unif_pairs51_in_aa(w(T140), .(w(T140), T141)) → U20_aa(T140, T141, unif_pairs60_in_a(T141))
unif_pairs60_in_a([]) → unif_pairs60_out_a([])
unif_pairs60_in_a(.(w(T158), .(w(T158), T159))) → U10_a(T158, T159, unif_pairs60_in_a(T159))
unif_pairs60_in_a(.(black, .(black, T160))) → U11_a(T160, unif_pairs60_in_a(T160))
unif_pairs60_in_a(.(black, .(w(T165), T166))) → U12_a(T165, T166, unif_pairs60_in_a(T166))
unif_pairs60_in_a(.(w(T169), .(black, T170))) → U13_a(T169, T170, unif_pairs60_in_a(T170))
U13_a(T169, T170, unif_pairs60_out_a(T170)) → unif_pairs60_out_a(.(w(T169), .(black, T170)))
U12_a(T165, T166, unif_pairs60_out_a(T166)) → unif_pairs60_out_a(.(black, .(w(T165), T166)))
U11_a(T160, unif_pairs60_out_a(T160)) → unif_pairs60_out_a(.(black, .(black, T160)))
U10_a(T158, T159, unif_pairs60_out_a(T159)) → unif_pairs60_out_a(.(w(T158), .(w(T158), T159)))
U20_aa(T140, T141, unif_pairs60_out_a(T141)) → unif_pairs51_out_aa(w(T140), .(w(T140), T141))
unif_pairs51_in_aa(black, .(black, T171)) → U21_aa(T171, unif_pairs60_in_a(T171))
U21_aa(T171, unif_pairs60_out_a(T171)) → unif_pairs51_out_aa(black, .(black, T171))
unif_pairs51_in_aa(black, .(w(T176), T177)) → U22_aa(T176, T177, unif_pairs60_in_a(T177))
U22_aa(T176, T177, unif_pairs60_out_a(T177)) → unif_pairs51_out_aa(black, .(w(T176), T177))
unif_pairs51_in_aa(w(T180), .(black, T181)) → U23_aa(T180, T181, unif_pairs60_in_a(T181))
U23_aa(T180, T181, unif_pairs60_out_a(T181)) → unif_pairs51_out_aa(w(T180), .(black, T181))
U17_aaaaaa(T103, T113, T104, T107, T106, T108, unif_pairs51_out_aa(T103, T113)) → p50_out_aaaaaa(T103, T113, T104, T107, T106, T108)
p50_in_aaaaaa(T103, T113, T117, T118, T119, T120) → U18_aaaaaa(T103, T113, T117, T118, T119, T120, unif_pairs51_in_aa(T103, T113))
U18_aaaaaa(T103, T113, T117, T118, T119, T120, unif_pairs51_out_aa(T103, T113)) → U19_aaaaaa(T103, T113, T117, T118, T119, T120, unif_lines43_in_aa(.(T117, T118), .(T119, T120)))
unif_lines43_in_aa(.(T192, []), .(T193, [])) → unif_lines43_out_aa(.(T192, []), .(T193, []))
U19_aaaaaa(T103, T113, T117, T118, T119, T120, unif_lines43_out_aa(.(T117, T118), .(T119, T120))) → p50_out_aaaaaa(T103, T113, T117, T118, T119, T120)
U9_aa(T103, T104, T107, T105, T106, T108, p50_out_aaaaaa(T103, .(T104, .(T105, .(T106, .(T103, .(T105, .(T104, .(T106, .(T103, .(T106, .(T104, .(T105, []))))))))))), T104, T107, T106, T108)) → unif_lines43_out_aa(.(T103, .(T104, T107)), .(T105, .(T106, T108)))
U6_aa(T56, T57, T58, unif_lines43_out_aa(T56, T57)) → unif_matrx37_out_aa(T56, .(T57, T58))
unif_matrx37_in_aa(T56, .(T65, T66)) → U7_aa(T56, T65, T66, unif_lines43_in_aa(T56, T65))
U7_aa(T56, T65, T66, unif_lines43_out_aa(T56, T65)) → U8_aa(T56, T65, T66, unif_matrx37_in_aa(T65, T66))
unif_matrx37_in_aa(T199, []) → unif_matrx37_out_aa(T199, [])
U8_aa(T56, T65, T66, unif_matrx37_out_aa(T65, T66)) → unif_matrx37_out_aa(T56, .(T65, T66))
U16_gaa(T16, T37, T17, unif_matrx37_out_aa(T17, T37)) → p17_out_gaa(T16, T37, T17)
U26_ga(T15, T16, T6, p17_out_gaa(T16, X50, T17)) → shapes1_out_ga(.(T15, T16), T6)
shapes1_in_ga(.(black, T204), T6) → U27_ga(T204, T6, p17_in_gag(T204, X293, black))
p17_in_gag(T16, X50, T17) → U14_gag(T16, X50, T17, varmat16_in_ga(T16, X50))
U14_gag(T16, X50, T17, varmat16_out_ga(T16, X50)) → p17_out_gag(T16, X50, T17)
p17_in_gag(T16, T37, T17) → U15_gag(T16, T37, T17, varmat16_in_ga(T16, T37))
U15_gag(T16, T37, T17, varmat16_out_ga(T16, T37)) → U16_gag(T16, T37, T17, unif_matrx37_in_ga(T17, T37))
unif_matrx37_in_ga(T56, .(T57, T58)) → U6_ga(T56, T57, T58, unif_lines43_in_ga(T56, T57))
unif_lines43_in_ga(.(T103, .(T104, T107)), .(T105, .(T106, T108))) → U9_ga(T103, T104, T107, T105, T106, T108, p50_in_gaggaa(T103, .(T104, .(T105, .(T106, .(T103, .(T105, .(T104, .(T106, .(T103, .(T106, .(T104, .(T105, []))))))))))), T104, T107, T106, T108))
p50_in_gaggaa(T103, T113, T104, T107, T106, T108) → U17_gaggaa(T103, T113, T104, T107, T106, T108, unif_pairs51_in_ga(T103, T113))
unif_pairs51_in_ga(w(T140), .(w(T140), T141)) → U20_ga(T140, T141, unif_pairs60_in_a(T141))
U20_ga(T140, T141, unif_pairs60_out_a(T141)) → unif_pairs51_out_ga(w(T140), .(w(T140), T141))
unif_pairs51_in_ga(black, .(black, T171)) → U21_ga(T171, unif_pairs60_in_a(T171))
U21_ga(T171, unif_pairs60_out_a(T171)) → unif_pairs51_out_ga(black, .(black, T171))
unif_pairs51_in_ga(black, .(w(T176), T177)) → U22_ga(T176, T177, unif_pairs60_in_a(T177))
U22_ga(T176, T177, unif_pairs60_out_a(T177)) → unif_pairs51_out_ga(black, .(w(T176), T177))
unif_pairs51_in_ga(w(T180), .(black, T181)) → U23_ga(T180, T181, unif_pairs60_in_a(T181))
U23_ga(T180, T181, unif_pairs60_out_a(T181)) → unif_pairs51_out_ga(w(T180), .(black, T181))
U17_gaggaa(T103, T113, T104, T107, T106, T108, unif_pairs51_out_ga(T103, T113)) → p50_out_gaggaa(T103, T113, T104, T107, T106, T108)
p50_in_gaggaa(T103, T113, T117, T118, T119, T120) → U18_gaggaa(T103, T113, T117, T118, T119, T120, unif_pairs51_in_ga(T103, T113))
U18_gaggaa(T103, T113, T117, T118, T119, T120, unif_pairs51_out_ga(T103, T113)) → U19_gaggaa(T103, T113, T117, T118, T119, T120, unif_lines43_in_ga(.(T117, T118), .(T119, T120)))
unif_lines43_in_ga(.(T192, []), .(T193, [])) → unif_lines43_out_ga(.(T192, []), .(T193, []))
U19_gaggaa(T103, T113, T117, T118, T119, T120, unif_lines43_out_ga(.(T117, T118), .(T119, T120))) → p50_out_gaggaa(T103, T113, T117, T118, T119, T120)
U9_ga(T103, T104, T107, T105, T106, T108, p50_out_gaggaa(T103, .(T104, .(T105, .(T106, .(T103, .(T105, .(T104, .(T106, .(T103, .(T106, .(T104, .(T105, []))))))))))), T104, T107, T106, T108)) → unif_lines43_out_ga(.(T103, .(T104, T107)), .(T105, .(T106, T108)))
U6_ga(T56, T57, T58, unif_lines43_out_ga(T56, T57)) → unif_matrx37_out_ga(T56, .(T57, T58))
unif_matrx37_in_ga(T56, .(T65, T66)) → U7_ga(T56, T65, T66, unif_lines43_in_ga(T56, T65))
U7_ga(T56, T65, T66, unif_lines43_out_ga(T56, T65)) → U8_ga(T56, T65, T66, unif_matrx37_in_aa(T65, T66))
U8_ga(T56, T65, T66, unif_matrx37_out_aa(T65, T66)) → unif_matrx37_out_ga(T56, .(T65, T66))
unif_matrx37_in_ga(T199, []) → unif_matrx37_out_ga(T199, [])
U16_gag(T16, T37, T17, unif_matrx37_out_ga(T17, T37)) → p17_out_gag(T16, T37, T17)
U27_ga(T204, T6, p17_out_gag(T204, X293, black)) → shapes1_out_ga(.(black, T204), T6)
shapes1_in_ga(.(white, T207), T6) → U28_ga(T207, T6, p17_in_gag(T207, X310, w(X309)))
U28_ga(T207, T6, p17_out_gag(T207, X310, w(X309))) → shapes1_out_ga(.(white, T207), T6)
UNIF_PAIRS60_IN_A(.(black, .(black, T160))) → UNIF_PAIRS60_IN_A(T160)
UNIF_PAIRS60_IN_A(.(w(T158), .(w(T158), T159))) → UNIF_PAIRS60_IN_A(T159)
UNIF_PAIRS60_IN_A(.(black, .(w(T165), T166))) → UNIF_PAIRS60_IN_A(T166)
UNIF_PAIRS60_IN_A(.(w(T169), .(black, T170))) → UNIF_PAIRS60_IN_A(T170)
UNIF_PAIRS60_IN_A → UNIF_PAIRS60_IN_A
P50_IN_GAGGAA(T103, T113, T117, T118, T119, T120) → U18_GAGGAA(T103, T113, T117, T118, T119, T120, unif_pairs51_in_ga(T103, T113))
U18_GAGGAA(T103, T113, T117, T118, T119, T120, unif_pairs51_out_ga(T103, T113)) → UNIF_LINES43_IN_GA(.(T117, T118), .(T119, T120))
UNIF_LINES43_IN_GA(.(T103, .(T104, T107)), .(T105, .(T106, T108))) → P50_IN_GAGGAA(T103, .(T104, .(T105, .(T106, .(T103, .(T105, .(T104, .(T106, .(T103, .(T106, .(T104, .(T105, []))))))))))), T104, T107, T106, T108)
shapes1_in_ga(.(T15, T16), T6) → U24_ga(T15, T16, T6, varmat16_in_ga(T15, X49))
varmat16_in_ga([], []) → varmat16_out_ga([], [])
varmat16_in_ga(.(T26, T27), .(X83, X84)) → U1_ga(T26, T27, X83, X84, varmat16_in_ga(T26, X83))
varmat16_in_ga(.(T26, T27), .(T28, X84)) → U2_ga(T26, T27, T28, X84, varmat16_in_ga(T26, T28))
varmat16_in_ga(.(black, T33), .(black, X103)) → U4_ga(T33, X103, varmat16_in_ga(T33, X103))
varmat16_in_ga(.(white, T36), .(w(X119), X120)) → U5_ga(T36, X119, X120, varmat16_in_ga(T36, X120))
U5_ga(T36, X119, X120, varmat16_out_ga(T36, X120)) → varmat16_out_ga(.(white, T36), .(w(X119), X120))
U4_ga(T33, X103, varmat16_out_ga(T33, X103)) → varmat16_out_ga(.(black, T33), .(black, X103))
U2_ga(T26, T27, T28, X84, varmat16_out_ga(T26, T28)) → U3_ga(T26, T27, T28, X84, varmat16_in_ga(T27, X84))
U3_ga(T26, T27, T28, X84, varmat16_out_ga(T27, X84)) → varmat16_out_ga(.(T26, T27), .(T28, X84))
U1_ga(T26, T27, X83, X84, varmat16_out_ga(T26, X83)) → varmat16_out_ga(.(T26, T27), .(X83, X84))
U24_ga(T15, T16, T6, varmat16_out_ga(T15, X49)) → shapes1_out_ga(.(T15, T16), T6)
shapes1_in_ga(.(T15, T16), T6) → U25_ga(T15, T16, T6, varmat16_in_ga(T15, T17))
U25_ga(T15, T16, T6, varmat16_out_ga(T15, T17)) → U26_ga(T15, T16, T6, p17_in_gaa(T16, X50, T17))
p17_in_gaa(T16, X50, T17) → U14_gaa(T16, X50, T17, varmat16_in_ga(T16, X50))
U14_gaa(T16, X50, T17, varmat16_out_ga(T16, X50)) → p17_out_gaa(T16, X50, T17)
p17_in_gaa(T16, T37, T17) → U15_gaa(T16, T37, T17, varmat16_in_ga(T16, T37))
U15_gaa(T16, T37, T17, varmat16_out_ga(T16, T37)) → U16_gaa(T16, T37, T17, unif_matrx37_in_aa(T17, T37))
unif_matrx37_in_aa(T56, .(T57, T58)) → U6_aa(T56, T57, T58, unif_lines43_in_aa(T56, T57))
unif_lines43_in_aa(.(T103, .(T104, T107)), .(T105, .(T106, T108))) → U9_aa(T103, T104, T107, T105, T106, T108, p50_in_aaaaaa(T103, .(T104, .(T105, .(T106, .(T103, .(T105, .(T104, .(T106, .(T103, .(T106, .(T104, .(T105, []))))))))))), T104, T107, T106, T108))
p50_in_aaaaaa(T103, T113, T104, T107, T106, T108) → U17_aaaaaa(T103, T113, T104, T107, T106, T108, unif_pairs51_in_aa(T103, T113))
unif_pairs51_in_aa(w(T140), .(w(T140), T141)) → U20_aa(T140, T141, unif_pairs60_in_a(T141))
unif_pairs60_in_a([]) → unif_pairs60_out_a([])
unif_pairs60_in_a(.(w(T158), .(w(T158), T159))) → U10_a(T158, T159, unif_pairs60_in_a(T159))
unif_pairs60_in_a(.(black, .(black, T160))) → U11_a(T160, unif_pairs60_in_a(T160))
unif_pairs60_in_a(.(black, .(w(T165), T166))) → U12_a(T165, T166, unif_pairs60_in_a(T166))
unif_pairs60_in_a(.(w(T169), .(black, T170))) → U13_a(T169, T170, unif_pairs60_in_a(T170))
U13_a(T169, T170, unif_pairs60_out_a(T170)) → unif_pairs60_out_a(.(w(T169), .(black, T170)))
U12_a(T165, T166, unif_pairs60_out_a(T166)) → unif_pairs60_out_a(.(black, .(w(T165), T166)))
U11_a(T160, unif_pairs60_out_a(T160)) → unif_pairs60_out_a(.(black, .(black, T160)))
U10_a(T158, T159, unif_pairs60_out_a(T159)) → unif_pairs60_out_a(.(w(T158), .(w(T158), T159)))
U20_aa(T140, T141, unif_pairs60_out_a(T141)) → unif_pairs51_out_aa(w(T140), .(w(T140), T141))
unif_pairs51_in_aa(black, .(black, T171)) → U21_aa(T171, unif_pairs60_in_a(T171))
U21_aa(T171, unif_pairs60_out_a(T171)) → unif_pairs51_out_aa(black, .(black, T171))
unif_pairs51_in_aa(black, .(w(T176), T177)) → U22_aa(T176, T177, unif_pairs60_in_a(T177))
U22_aa(T176, T177, unif_pairs60_out_a(T177)) → unif_pairs51_out_aa(black, .(w(T176), T177))
unif_pairs51_in_aa(w(T180), .(black, T181)) → U23_aa(T180, T181, unif_pairs60_in_a(T181))
U23_aa(T180, T181, unif_pairs60_out_a(T181)) → unif_pairs51_out_aa(w(T180), .(black, T181))
U17_aaaaaa(T103, T113, T104, T107, T106, T108, unif_pairs51_out_aa(T103, T113)) → p50_out_aaaaaa(T103, T113, T104, T107, T106, T108)
p50_in_aaaaaa(T103, T113, T117, T118, T119, T120) → U18_aaaaaa(T103, T113, T117, T118, T119, T120, unif_pairs51_in_aa(T103, T113))
U18_aaaaaa(T103, T113, T117, T118, T119, T120, unif_pairs51_out_aa(T103, T113)) → U19_aaaaaa(T103, T113, T117, T118, T119, T120, unif_lines43_in_aa(.(T117, T118), .(T119, T120)))
unif_lines43_in_aa(.(T192, []), .(T193, [])) → unif_lines43_out_aa(.(T192, []), .(T193, []))
U19_aaaaaa(T103, T113, T117, T118, T119, T120, unif_lines43_out_aa(.(T117, T118), .(T119, T120))) → p50_out_aaaaaa(T103, T113, T117, T118, T119, T120)
U9_aa(T103, T104, T107, T105, T106, T108, p50_out_aaaaaa(T103, .(T104, .(T105, .(T106, .(T103, .(T105, .(T104, .(T106, .(T103, .(T106, .(T104, .(T105, []))))))))))), T104, T107, T106, T108)) → unif_lines43_out_aa(.(T103, .(T104, T107)), .(T105, .(T106, T108)))
U6_aa(T56, T57, T58, unif_lines43_out_aa(T56, T57)) → unif_matrx37_out_aa(T56, .(T57, T58))
unif_matrx37_in_aa(T56, .(T65, T66)) → U7_aa(T56, T65, T66, unif_lines43_in_aa(T56, T65))
U7_aa(T56, T65, T66, unif_lines43_out_aa(T56, T65)) → U8_aa(T56, T65, T66, unif_matrx37_in_aa(T65, T66))
unif_matrx37_in_aa(T199, []) → unif_matrx37_out_aa(T199, [])
U8_aa(T56, T65, T66, unif_matrx37_out_aa(T65, T66)) → unif_matrx37_out_aa(T56, .(T65, T66))
U16_gaa(T16, T37, T17, unif_matrx37_out_aa(T17, T37)) → p17_out_gaa(T16, T37, T17)
U26_ga(T15, T16, T6, p17_out_gaa(T16, X50, T17)) → shapes1_out_ga(.(T15, T16), T6)
shapes1_in_ga(.(black, T204), T6) → U27_ga(T204, T6, p17_in_gag(T204, X293, black))
p17_in_gag(T16, X50, T17) → U14_gag(T16, X50, T17, varmat16_in_ga(T16, X50))
U14_gag(T16, X50, T17, varmat16_out_ga(T16, X50)) → p17_out_gag(T16, X50, T17)
p17_in_gag(T16, T37, T17) → U15_gag(T16, T37, T17, varmat16_in_ga(T16, T37))
U15_gag(T16, T37, T17, varmat16_out_ga(T16, T37)) → U16_gag(T16, T37, T17, unif_matrx37_in_ga(T17, T37))
unif_matrx37_in_ga(T56, .(T57, T58)) → U6_ga(T56, T57, T58, unif_lines43_in_ga(T56, T57))
unif_lines43_in_ga(.(T103, .(T104, T107)), .(T105, .(T106, T108))) → U9_ga(T103, T104, T107, T105, T106, T108, p50_in_gaggaa(T103, .(T104, .(T105, .(T106, .(T103, .(T105, .(T104, .(T106, .(T103, .(T106, .(T104, .(T105, []))))))))))), T104, T107, T106, T108))
p50_in_gaggaa(T103, T113, T104, T107, T106, T108) → U17_gaggaa(T103, T113, T104, T107, T106, T108, unif_pairs51_in_ga(T103, T113))
unif_pairs51_in_ga(w(T140), .(w(T140), T141)) → U20_ga(T140, T141, unif_pairs60_in_a(T141))
U20_ga(T140, T141, unif_pairs60_out_a(T141)) → unif_pairs51_out_ga(w(T140), .(w(T140), T141))
unif_pairs51_in_ga(black, .(black, T171)) → U21_ga(T171, unif_pairs60_in_a(T171))
U21_ga(T171, unif_pairs60_out_a(T171)) → unif_pairs51_out_ga(black, .(black, T171))
unif_pairs51_in_ga(black, .(w(T176), T177)) → U22_ga(T176, T177, unif_pairs60_in_a(T177))
U22_ga(T176, T177, unif_pairs60_out_a(T177)) → unif_pairs51_out_ga(black, .(w(T176), T177))
unif_pairs51_in_ga(w(T180), .(black, T181)) → U23_ga(T180, T181, unif_pairs60_in_a(T181))
U23_ga(T180, T181, unif_pairs60_out_a(T181)) → unif_pairs51_out_ga(w(T180), .(black, T181))
U17_gaggaa(T103, T113, T104, T107, T106, T108, unif_pairs51_out_ga(T103, T113)) → p50_out_gaggaa(T103, T113, T104, T107, T106, T108)
p50_in_gaggaa(T103, T113, T117, T118, T119, T120) → U18_gaggaa(T103, T113, T117, T118, T119, T120, unif_pairs51_in_ga(T103, T113))
U18_gaggaa(T103, T113, T117, T118, T119, T120, unif_pairs51_out_ga(T103, T113)) → U19_gaggaa(T103, T113, T117, T118, T119, T120, unif_lines43_in_ga(.(T117, T118), .(T119, T120)))
unif_lines43_in_ga(.(T192, []), .(T193, [])) → unif_lines43_out_ga(.(T192, []), .(T193, []))
U19_gaggaa(T103, T113, T117, T118, T119, T120, unif_lines43_out_ga(.(T117, T118), .(T119, T120))) → p50_out_gaggaa(T103, T113, T117, T118, T119, T120)
U9_ga(T103, T104, T107, T105, T106, T108, p50_out_gaggaa(T103, .(T104, .(T105, .(T106, .(T103, .(T105, .(T104, .(T106, .(T103, .(T106, .(T104, .(T105, []))))))))))), T104, T107, T106, T108)) → unif_lines43_out_ga(.(T103, .(T104, T107)), .(T105, .(T106, T108)))
U6_ga(T56, T57, T58, unif_lines43_out_ga(T56, T57)) → unif_matrx37_out_ga(T56, .(T57, T58))
unif_matrx37_in_ga(T56, .(T65, T66)) → U7_ga(T56, T65, T66, unif_lines43_in_ga(T56, T65))
U7_ga(T56, T65, T66, unif_lines43_out_ga(T56, T65)) → U8_ga(T56, T65, T66, unif_matrx37_in_aa(T65, T66))
U8_ga(T56, T65, T66, unif_matrx37_out_aa(T65, T66)) → unif_matrx37_out_ga(T56, .(T65, T66))
unif_matrx37_in_ga(T199, []) → unif_matrx37_out_ga(T199, [])
U16_gag(T16, T37, T17, unif_matrx37_out_ga(T17, T37)) → p17_out_gag(T16, T37, T17)
U27_ga(T204, T6, p17_out_gag(T204, X293, black)) → shapes1_out_ga(.(black, T204), T6)
shapes1_in_ga(.(white, T207), T6) → U28_ga(T207, T6, p17_in_gag(T207, X310, w(X309)))
U28_ga(T207, T6, p17_out_gag(T207, X310, w(X309))) → shapes1_out_ga(.(white, T207), T6)
P50_IN_GAGGAA(T103, T113, T117, T118, T119, T120) → U18_GAGGAA(T103, T113, T117, T118, T119, T120, unif_pairs51_in_ga(T103, T113))
U18_GAGGAA(T103, T113, T117, T118, T119, T120, unif_pairs51_out_ga(T103, T113)) → UNIF_LINES43_IN_GA(.(T117, T118), .(T119, T120))
UNIF_LINES43_IN_GA(.(T103, .(T104, T107)), .(T105, .(T106, T108))) → P50_IN_GAGGAA(T103, .(T104, .(T105, .(T106, .(T103, .(T105, .(T104, .(T106, .(T103, .(T106, .(T104, .(T105, []))))))))))), T104, T107, T106, T108)
unif_pairs51_in_ga(w(T140), .(w(T140), T141)) → U20_ga(T140, T141, unif_pairs60_in_a(T141))
unif_pairs51_in_ga(black, .(black, T171)) → U21_ga(T171, unif_pairs60_in_a(T171))
unif_pairs51_in_ga(black, .(w(T176), T177)) → U22_ga(T176, T177, unif_pairs60_in_a(T177))
unif_pairs51_in_ga(w(T180), .(black, T181)) → U23_ga(T180, T181, unif_pairs60_in_a(T181))
U20_ga(T140, T141, unif_pairs60_out_a(T141)) → unif_pairs51_out_ga(w(T140), .(w(T140), T141))
U21_ga(T171, unif_pairs60_out_a(T171)) → unif_pairs51_out_ga(black, .(black, T171))
U22_ga(T176, T177, unif_pairs60_out_a(T177)) → unif_pairs51_out_ga(black, .(w(T176), T177))
U23_ga(T180, T181, unif_pairs60_out_a(T181)) → unif_pairs51_out_ga(w(T180), .(black, T181))
unif_pairs60_in_a([]) → unif_pairs60_out_a([])
unif_pairs60_in_a(.(w(T158), .(w(T158), T159))) → U10_a(T158, T159, unif_pairs60_in_a(T159))
unif_pairs60_in_a(.(black, .(black, T160))) → U11_a(T160, unif_pairs60_in_a(T160))
unif_pairs60_in_a(.(black, .(w(T165), T166))) → U12_a(T165, T166, unif_pairs60_in_a(T166))
unif_pairs60_in_a(.(w(T169), .(black, T170))) → U13_a(T169, T170, unif_pairs60_in_a(T170))
U10_a(T158, T159, unif_pairs60_out_a(T159)) → unif_pairs60_out_a(.(w(T158), .(w(T158), T159)))
U11_a(T160, unif_pairs60_out_a(T160)) → unif_pairs60_out_a(.(black, .(black, T160)))
U12_a(T165, T166, unif_pairs60_out_a(T166)) → unif_pairs60_out_a(.(black, .(w(T165), T166)))
U13_a(T169, T170, unif_pairs60_out_a(T170)) → unif_pairs60_out_a(.(w(T169), .(black, T170)))
P50_IN_GAGGAA(T103, T117, T118) → U18_GAGGAA(T103, T117, T118, unif_pairs51_in_ga(T103))
U18_GAGGAA(T103, T117, T118, unif_pairs51_out_ga(T103, T113)) → UNIF_LINES43_IN_GA(.(T117, T118))
UNIF_LINES43_IN_GA(.(T103, .(T104, T107))) → P50_IN_GAGGAA(T103, T104, T107)
unif_pairs51_in_ga(w) → U20_ga(unif_pairs60_in_a)
unif_pairs51_in_ga(black) → U21_ga(unif_pairs60_in_a)
unif_pairs51_in_ga(black) → U22_ga(unif_pairs60_in_a)
unif_pairs51_in_ga(w) → U23_ga(unif_pairs60_in_a)
U20_ga(unif_pairs60_out_a(T141)) → unif_pairs51_out_ga(w, .(w, T141))
U21_ga(unif_pairs60_out_a(T171)) → unif_pairs51_out_ga(black, .(black, T171))
U22_ga(unif_pairs60_out_a(T177)) → unif_pairs51_out_ga(black, .(w, T177))
U23_ga(unif_pairs60_out_a(T181)) → unif_pairs51_out_ga(w, .(black, T181))
unif_pairs60_in_a → unif_pairs60_out_a([])
unif_pairs60_in_a → U10_a(unif_pairs60_in_a)
unif_pairs60_in_a → U11_a(unif_pairs60_in_a)
unif_pairs60_in_a → U12_a(unif_pairs60_in_a)
unif_pairs60_in_a → U13_a(unif_pairs60_in_a)
U10_a(unif_pairs60_out_a(T159)) → unif_pairs60_out_a(.(w, .(w, T159)))
U11_a(unif_pairs60_out_a(T160)) → unif_pairs60_out_a(.(black, .(black, T160)))
U12_a(unif_pairs60_out_a(T166)) → unif_pairs60_out_a(.(black, .(w, T166)))
U13_a(unif_pairs60_out_a(T170)) → unif_pairs60_out_a(.(w, .(black, T170)))
unif_pairs51_in_ga(x0)
U20_ga(x0)
U21_ga(x0)
U22_ga(x0)
U23_ga(x0)
unif_pairs60_in_a
U10_a(x0)
U11_a(x0)
U12_a(x0)
U13_a(x0)
The following pairs can be oriented strictly and are deleted.
The remaining pairs can at least be oriented weakly.
UNIF_LINES43_IN_GA(.(T103, .(T104, T107))) → P50_IN_GAGGAA(T103, T104, T107)
POL(.(x1, x2)) = 1 + x1 + x2
POL(P50_IN_GAGGAA(x1, x2, x3)) = 1 + x2 + x3
POL(U10_a(x1)) = 0
POL(U11_a(x1)) = 0
POL(U12_a(x1)) = 0
POL(U13_a(x1)) = 0
POL(U18_GAGGAA(x1, x2, x3, x4)) = 1 + x2 + x3
POL(U20_ga(x1)) = 0
POL(U21_ga(x1)) = 0
POL(U22_ga(x1)) = 0
POL(U23_ga(x1)) = 0
POL(UNIF_LINES43_IN_GA(x1)) = x1
POL([]) = 0
POL(black) = 0
POL(unif_pairs51_in_ga(x1)) = 0
POL(unif_pairs51_out_ga(x1, x2)) = 0
POL(unif_pairs60_in_a) = 0
POL(unif_pairs60_out_a(x1)) = 0
POL(w) = 0
P50_IN_GAGGAA(T103, T117, T118) → U18_GAGGAA(T103, T117, T118, unif_pairs51_in_ga(T103))
U18_GAGGAA(T103, T117, T118, unif_pairs51_out_ga(T103, T113)) → UNIF_LINES43_IN_GA(.(T117, T118))
unif_pairs51_in_ga(w) → U20_ga(unif_pairs60_in_a)
unif_pairs51_in_ga(black) → U21_ga(unif_pairs60_in_a)
unif_pairs51_in_ga(black) → U22_ga(unif_pairs60_in_a)
unif_pairs51_in_ga(w) → U23_ga(unif_pairs60_in_a)
U20_ga(unif_pairs60_out_a(T141)) → unif_pairs51_out_ga(w, .(w, T141))
U21_ga(unif_pairs60_out_a(T171)) → unif_pairs51_out_ga(black, .(black, T171))
U22_ga(unif_pairs60_out_a(T177)) → unif_pairs51_out_ga(black, .(w, T177))
U23_ga(unif_pairs60_out_a(T181)) → unif_pairs51_out_ga(w, .(black, T181))
unif_pairs60_in_a → unif_pairs60_out_a([])
unif_pairs60_in_a → U10_a(unif_pairs60_in_a)
unif_pairs60_in_a → U11_a(unif_pairs60_in_a)
unif_pairs60_in_a → U12_a(unif_pairs60_in_a)
unif_pairs60_in_a → U13_a(unif_pairs60_in_a)
U10_a(unif_pairs60_out_a(T159)) → unif_pairs60_out_a(.(w, .(w, T159)))
U11_a(unif_pairs60_out_a(T160)) → unif_pairs60_out_a(.(black, .(black, T160)))
U12_a(unif_pairs60_out_a(T166)) → unif_pairs60_out_a(.(black, .(w, T166)))
U13_a(unif_pairs60_out_a(T170)) → unif_pairs60_out_a(.(w, .(black, T170)))
unif_pairs51_in_ga(x0)
U20_ga(x0)
U21_ga(x0)
U22_ga(x0)
U23_ga(x0)
unif_pairs60_in_a
U10_a(x0)
U11_a(x0)
U12_a(x0)
U13_a(x0)
UNIF_LINES43_IN_AA(.(T103, .(T104, T107)), .(T105, .(T106, T108))) → P50_IN_AAAAAA(T103, .(T104, .(T105, .(T106, .(T103, .(T105, .(T104, .(T106, .(T103, .(T106, .(T104, .(T105, []))))))))))), T104, T107, T106, T108)
P50_IN_AAAAAA(T103, T113, T117, T118, T119, T120) → U18_AAAAAA(T103, T113, T117, T118, T119, T120, unif_pairs51_in_aa(T103, T113))
U18_AAAAAA(T103, T113, T117, T118, T119, T120, unif_pairs51_out_aa(T103, T113)) → UNIF_LINES43_IN_AA(.(T117, T118), .(T119, T120))
shapes1_in_ga(.(T15, T16), T6) → U24_ga(T15, T16, T6, varmat16_in_ga(T15, X49))
varmat16_in_ga([], []) → varmat16_out_ga([], [])
varmat16_in_ga(.(T26, T27), .(X83, X84)) → U1_ga(T26, T27, X83, X84, varmat16_in_ga(T26, X83))
varmat16_in_ga(.(T26, T27), .(T28, X84)) → U2_ga(T26, T27, T28, X84, varmat16_in_ga(T26, T28))
varmat16_in_ga(.(black, T33), .(black, X103)) → U4_ga(T33, X103, varmat16_in_ga(T33, X103))
varmat16_in_ga(.(white, T36), .(w(X119), X120)) → U5_ga(T36, X119, X120, varmat16_in_ga(T36, X120))
U5_ga(T36, X119, X120, varmat16_out_ga(T36, X120)) → varmat16_out_ga(.(white, T36), .(w(X119), X120))
U4_ga(T33, X103, varmat16_out_ga(T33, X103)) → varmat16_out_ga(.(black, T33), .(black, X103))
U2_ga(T26, T27, T28, X84, varmat16_out_ga(T26, T28)) → U3_ga(T26, T27, T28, X84, varmat16_in_ga(T27, X84))
U3_ga(T26, T27, T28, X84, varmat16_out_ga(T27, X84)) → varmat16_out_ga(.(T26, T27), .(T28, X84))
U1_ga(T26, T27, X83, X84, varmat16_out_ga(T26, X83)) → varmat16_out_ga(.(T26, T27), .(X83, X84))
U24_ga(T15, T16, T6, varmat16_out_ga(T15, X49)) → shapes1_out_ga(.(T15, T16), T6)
shapes1_in_ga(.(T15, T16), T6) → U25_ga(T15, T16, T6, varmat16_in_ga(T15, T17))
U25_ga(T15, T16, T6, varmat16_out_ga(T15, T17)) → U26_ga(T15, T16, T6, p17_in_gaa(T16, X50, T17))
p17_in_gaa(T16, X50, T17) → U14_gaa(T16, X50, T17, varmat16_in_ga(T16, X50))
U14_gaa(T16, X50, T17, varmat16_out_ga(T16, X50)) → p17_out_gaa(T16, X50, T17)
p17_in_gaa(T16, T37, T17) → U15_gaa(T16, T37, T17, varmat16_in_ga(T16, T37))
U15_gaa(T16, T37, T17, varmat16_out_ga(T16, T37)) → U16_gaa(T16, T37, T17, unif_matrx37_in_aa(T17, T37))
unif_matrx37_in_aa(T56, .(T57, T58)) → U6_aa(T56, T57, T58, unif_lines43_in_aa(T56, T57))
unif_lines43_in_aa(.(T103, .(T104, T107)), .(T105, .(T106, T108))) → U9_aa(T103, T104, T107, T105, T106, T108, p50_in_aaaaaa(T103, .(T104, .(T105, .(T106, .(T103, .(T105, .(T104, .(T106, .(T103, .(T106, .(T104, .(T105, []))))))))))), T104, T107, T106, T108))
p50_in_aaaaaa(T103, T113, T104, T107, T106, T108) → U17_aaaaaa(T103, T113, T104, T107, T106, T108, unif_pairs51_in_aa(T103, T113))
unif_pairs51_in_aa(w(T140), .(w(T140), T141)) → U20_aa(T140, T141, unif_pairs60_in_a(T141))
unif_pairs60_in_a([]) → unif_pairs60_out_a([])
unif_pairs60_in_a(.(w(T158), .(w(T158), T159))) → U10_a(T158, T159, unif_pairs60_in_a(T159))
unif_pairs60_in_a(.(black, .(black, T160))) → U11_a(T160, unif_pairs60_in_a(T160))
unif_pairs60_in_a(.(black, .(w(T165), T166))) → U12_a(T165, T166, unif_pairs60_in_a(T166))
unif_pairs60_in_a(.(w(T169), .(black, T170))) → U13_a(T169, T170, unif_pairs60_in_a(T170))
U13_a(T169, T170, unif_pairs60_out_a(T170)) → unif_pairs60_out_a(.(w(T169), .(black, T170)))
U12_a(T165, T166, unif_pairs60_out_a(T166)) → unif_pairs60_out_a(.(black, .(w(T165), T166)))
U11_a(T160, unif_pairs60_out_a(T160)) → unif_pairs60_out_a(.(black, .(black, T160)))
U10_a(T158, T159, unif_pairs60_out_a(T159)) → unif_pairs60_out_a(.(w(T158), .(w(T158), T159)))
U20_aa(T140, T141, unif_pairs60_out_a(T141)) → unif_pairs51_out_aa(w(T140), .(w(T140), T141))
unif_pairs51_in_aa(black, .(black, T171)) → U21_aa(T171, unif_pairs60_in_a(T171))
U21_aa(T171, unif_pairs60_out_a(T171)) → unif_pairs51_out_aa(black, .(black, T171))
unif_pairs51_in_aa(black, .(w(T176), T177)) → U22_aa(T176, T177, unif_pairs60_in_a(T177))
U22_aa(T176, T177, unif_pairs60_out_a(T177)) → unif_pairs51_out_aa(black, .(w(T176), T177))
unif_pairs51_in_aa(w(T180), .(black, T181)) → U23_aa(T180, T181, unif_pairs60_in_a(T181))
U23_aa(T180, T181, unif_pairs60_out_a(T181)) → unif_pairs51_out_aa(w(T180), .(black, T181))
U17_aaaaaa(T103, T113, T104, T107, T106, T108, unif_pairs51_out_aa(T103, T113)) → p50_out_aaaaaa(T103, T113, T104, T107, T106, T108)
p50_in_aaaaaa(T103, T113, T117, T118, T119, T120) → U18_aaaaaa(T103, T113, T117, T118, T119, T120, unif_pairs51_in_aa(T103, T113))
U18_aaaaaa(T103, T113, T117, T118, T119, T120, unif_pairs51_out_aa(T103, T113)) → U19_aaaaaa(T103, T113, T117, T118, T119, T120, unif_lines43_in_aa(.(T117, T118), .(T119, T120)))
unif_lines43_in_aa(.(T192, []), .(T193, [])) → unif_lines43_out_aa(.(T192, []), .(T193, []))
U19_aaaaaa(T103, T113, T117, T118, T119, T120, unif_lines43_out_aa(.(T117, T118), .(T119, T120))) → p50_out_aaaaaa(T103, T113, T117, T118, T119, T120)
U9_aa(T103, T104, T107, T105, T106, T108, p50_out_aaaaaa(T103, .(T104, .(T105, .(T106, .(T103, .(T105, .(T104, .(T106, .(T103, .(T106, .(T104, .(T105, []))))))))))), T104, T107, T106, T108)) → unif_lines43_out_aa(.(T103, .(T104, T107)), .(T105, .(T106, T108)))
U6_aa(T56, T57, T58, unif_lines43_out_aa(T56, T57)) → unif_matrx37_out_aa(T56, .(T57, T58))
unif_matrx37_in_aa(T56, .(T65, T66)) → U7_aa(T56, T65, T66, unif_lines43_in_aa(T56, T65))
U7_aa(T56, T65, T66, unif_lines43_out_aa(T56, T65)) → U8_aa(T56, T65, T66, unif_matrx37_in_aa(T65, T66))
unif_matrx37_in_aa(T199, []) → unif_matrx37_out_aa(T199, [])
U8_aa(T56, T65, T66, unif_matrx37_out_aa(T65, T66)) → unif_matrx37_out_aa(T56, .(T65, T66))
U16_gaa(T16, T37, T17, unif_matrx37_out_aa(T17, T37)) → p17_out_gaa(T16, T37, T17)
U26_ga(T15, T16, T6, p17_out_gaa(T16, X50, T17)) → shapes1_out_ga(.(T15, T16), T6)
shapes1_in_ga(.(black, T204), T6) → U27_ga(T204, T6, p17_in_gag(T204, X293, black))
p17_in_gag(T16, X50, T17) → U14_gag(T16, X50, T17, varmat16_in_ga(T16, X50))
U14_gag(T16, X50, T17, varmat16_out_ga(T16, X50)) → p17_out_gag(T16, X50, T17)
p17_in_gag(T16, T37, T17) → U15_gag(T16, T37, T17, varmat16_in_ga(T16, T37))
U15_gag(T16, T37, T17, varmat16_out_ga(T16, T37)) → U16_gag(T16, T37, T17, unif_matrx37_in_ga(T17, T37))
unif_matrx37_in_ga(T56, .(T57, T58)) → U6_ga(T56, T57, T58, unif_lines43_in_ga(T56, T57))
unif_lines43_in_ga(.(T103, .(T104, T107)), .(T105, .(T106, T108))) → U9_ga(T103, T104, T107, T105, T106, T108, p50_in_gaggaa(T103, .(T104, .(T105, .(T106, .(T103, .(T105, .(T104, .(T106, .(T103, .(T106, .(T104, .(T105, []))))))))))), T104, T107, T106, T108))
p50_in_gaggaa(T103, T113, T104, T107, T106, T108) → U17_gaggaa(T103, T113, T104, T107, T106, T108, unif_pairs51_in_ga(T103, T113))
unif_pairs51_in_ga(w(T140), .(w(T140), T141)) → U20_ga(T140, T141, unif_pairs60_in_a(T141))
U20_ga(T140, T141, unif_pairs60_out_a(T141)) → unif_pairs51_out_ga(w(T140), .(w(T140), T141))
unif_pairs51_in_ga(black, .(black, T171)) → U21_ga(T171, unif_pairs60_in_a(T171))
U21_ga(T171, unif_pairs60_out_a(T171)) → unif_pairs51_out_ga(black, .(black, T171))
unif_pairs51_in_ga(black, .(w(T176), T177)) → U22_ga(T176, T177, unif_pairs60_in_a(T177))
U22_ga(T176, T177, unif_pairs60_out_a(T177)) → unif_pairs51_out_ga(black, .(w(T176), T177))
unif_pairs51_in_ga(w(T180), .(black, T181)) → U23_ga(T180, T181, unif_pairs60_in_a(T181))
U23_ga(T180, T181, unif_pairs60_out_a(T181)) → unif_pairs51_out_ga(w(T180), .(black, T181))
U17_gaggaa(T103, T113, T104, T107, T106, T108, unif_pairs51_out_ga(T103, T113)) → p50_out_gaggaa(T103, T113, T104, T107, T106, T108)
p50_in_gaggaa(T103, T113, T117, T118, T119, T120) → U18_gaggaa(T103, T113, T117, T118, T119, T120, unif_pairs51_in_ga(T103, T113))
U18_gaggaa(T103, T113, T117, T118, T119, T120, unif_pairs51_out_ga(T103, T113)) → U19_gaggaa(T103, T113, T117, T118, T119, T120, unif_lines43_in_ga(.(T117, T118), .(T119, T120)))
unif_lines43_in_ga(.(T192, []), .(T193, [])) → unif_lines43_out_ga(.(T192, []), .(T193, []))
U19_gaggaa(T103, T113, T117, T118, T119, T120, unif_lines43_out_ga(.(T117, T118), .(T119, T120))) → p50_out_gaggaa(T103, T113, T117, T118, T119, T120)
U9_ga(T103, T104, T107, T105, T106, T108, p50_out_gaggaa(T103, .(T104, .(T105, .(T106, .(T103, .(T105, .(T104, .(T106, .(T103, .(T106, .(T104, .(T105, []))))))))))), T104, T107, T106, T108)) → unif_lines43_out_ga(.(T103, .(T104, T107)), .(T105, .(T106, T108)))
U6_ga(T56, T57, T58, unif_lines43_out_ga(T56, T57)) → unif_matrx37_out_ga(T56, .(T57, T58))
unif_matrx37_in_ga(T56, .(T65, T66)) → U7_ga(T56, T65, T66, unif_lines43_in_ga(T56, T65))
U7_ga(T56, T65, T66, unif_lines43_out_ga(T56, T65)) → U8_ga(T56, T65, T66, unif_matrx37_in_aa(T65, T66))
U8_ga(T56, T65, T66, unif_matrx37_out_aa(T65, T66)) → unif_matrx37_out_ga(T56, .(T65, T66))
unif_matrx37_in_ga(T199, []) → unif_matrx37_out_ga(T199, [])
U16_gag(T16, T37, T17, unif_matrx37_out_ga(T17, T37)) → p17_out_gag(T16, T37, T17)
U27_ga(T204, T6, p17_out_gag(T204, X293, black)) → shapes1_out_ga(.(black, T204), T6)
shapes1_in_ga(.(white, T207), T6) → U28_ga(T207, T6, p17_in_gag(T207, X310, w(X309)))
U28_ga(T207, T6, p17_out_gag(T207, X310, w(X309))) → shapes1_out_ga(.(white, T207), T6)
UNIF_LINES43_IN_AA(.(T103, .(T104, T107)), .(T105, .(T106, T108))) → P50_IN_AAAAAA(T103, .(T104, .(T105, .(T106, .(T103, .(T105, .(T104, .(T106, .(T103, .(T106, .(T104, .(T105, []))))))))))), T104, T107, T106, T108)
P50_IN_AAAAAA(T103, T113, T117, T118, T119, T120) → U18_AAAAAA(T103, T113, T117, T118, T119, T120, unif_pairs51_in_aa(T103, T113))
U18_AAAAAA(T103, T113, T117, T118, T119, T120, unif_pairs51_out_aa(T103, T113)) → UNIF_LINES43_IN_AA(.(T117, T118), .(T119, T120))
unif_pairs51_in_aa(w(T140), .(w(T140), T141)) → U20_aa(T140, T141, unif_pairs60_in_a(T141))
unif_pairs51_in_aa(black, .(black, T171)) → U21_aa(T171, unif_pairs60_in_a(T171))
unif_pairs51_in_aa(black, .(w(T176), T177)) → U22_aa(T176, T177, unif_pairs60_in_a(T177))
unif_pairs51_in_aa(w(T180), .(black, T181)) → U23_aa(T180, T181, unif_pairs60_in_a(T181))
U20_aa(T140, T141, unif_pairs60_out_a(T141)) → unif_pairs51_out_aa(w(T140), .(w(T140), T141))
U21_aa(T171, unif_pairs60_out_a(T171)) → unif_pairs51_out_aa(black, .(black, T171))
U22_aa(T176, T177, unif_pairs60_out_a(T177)) → unif_pairs51_out_aa(black, .(w(T176), T177))
U23_aa(T180, T181, unif_pairs60_out_a(T181)) → unif_pairs51_out_aa(w(T180), .(black, T181))
unif_pairs60_in_a([]) → unif_pairs60_out_a([])
unif_pairs60_in_a(.(w(T158), .(w(T158), T159))) → U10_a(T158, T159, unif_pairs60_in_a(T159))
unif_pairs60_in_a(.(black, .(black, T160))) → U11_a(T160, unif_pairs60_in_a(T160))
unif_pairs60_in_a(.(black, .(w(T165), T166))) → U12_a(T165, T166, unif_pairs60_in_a(T166))
unif_pairs60_in_a(.(w(T169), .(black, T170))) → U13_a(T169, T170, unif_pairs60_in_a(T170))
U10_a(T158, T159, unif_pairs60_out_a(T159)) → unif_pairs60_out_a(.(w(T158), .(w(T158), T159)))
U11_a(T160, unif_pairs60_out_a(T160)) → unif_pairs60_out_a(.(black, .(black, T160)))
U12_a(T165, T166, unif_pairs60_out_a(T166)) → unif_pairs60_out_a(.(black, .(w(T165), T166)))
U13_a(T169, T170, unif_pairs60_out_a(T170)) → unif_pairs60_out_a(.(w(T169), .(black, T170)))
UNIF_LINES43_IN_AA → P50_IN_AAAAAA
P50_IN_AAAAAA → U18_AAAAAA(unif_pairs51_in_aa)
U18_AAAAAA(unif_pairs51_out_aa(T103, T113)) → UNIF_LINES43_IN_AA
unif_pairs51_in_aa → U20_aa(unif_pairs60_in_a)
unif_pairs51_in_aa → U21_aa(unif_pairs60_in_a)
unif_pairs51_in_aa → U22_aa(unif_pairs60_in_a)
unif_pairs51_in_aa → U23_aa(unif_pairs60_in_a)
U20_aa(unif_pairs60_out_a(T141)) → unif_pairs51_out_aa(w, .(w, T141))
U21_aa(unif_pairs60_out_a(T171)) → unif_pairs51_out_aa(black, .(black, T171))
U22_aa(unif_pairs60_out_a(T177)) → unif_pairs51_out_aa(black, .(w, T177))
U23_aa(unif_pairs60_out_a(T181)) → unif_pairs51_out_aa(w, .(black, T181))
unif_pairs60_in_a → unif_pairs60_out_a([])
unif_pairs60_in_a → U10_a(unif_pairs60_in_a)
unif_pairs60_in_a → U11_a(unif_pairs60_in_a)
unif_pairs60_in_a → U12_a(unif_pairs60_in_a)
unif_pairs60_in_a → U13_a(unif_pairs60_in_a)
U10_a(unif_pairs60_out_a(T159)) → unif_pairs60_out_a(.(w, .(w, T159)))
U11_a(unif_pairs60_out_a(T160)) → unif_pairs60_out_a(.(black, .(black, T160)))
U12_a(unif_pairs60_out_a(T166)) → unif_pairs60_out_a(.(black, .(w, T166)))
U13_a(unif_pairs60_out_a(T170)) → unif_pairs60_out_a(.(w, .(black, T170)))
unif_pairs51_in_aa
U20_aa(x0)
U21_aa(x0)
U22_aa(x0)
U23_aa(x0)
unif_pairs60_in_a
U10_a(x0)
U11_a(x0)
U12_a(x0)
U13_a(x0)
P50_IN_AAAAAA → U18_AAAAAA(U20_aa(unif_pairs60_in_a))
P50_IN_AAAAAA → U18_AAAAAA(U21_aa(unif_pairs60_in_a))
P50_IN_AAAAAA → U18_AAAAAA(U22_aa(unif_pairs60_in_a))
P50_IN_AAAAAA → U18_AAAAAA(U23_aa(unif_pairs60_in_a))
UNIF_LINES43_IN_AA → P50_IN_AAAAAA
U18_AAAAAA(unif_pairs51_out_aa(T103, T113)) → UNIF_LINES43_IN_AA
P50_IN_AAAAAA → U18_AAAAAA(U20_aa(unif_pairs60_in_a))
P50_IN_AAAAAA → U18_AAAAAA(U21_aa(unif_pairs60_in_a))
P50_IN_AAAAAA → U18_AAAAAA(U22_aa(unif_pairs60_in_a))
P50_IN_AAAAAA → U18_AAAAAA(U23_aa(unif_pairs60_in_a))
unif_pairs51_in_aa → U20_aa(unif_pairs60_in_a)
unif_pairs51_in_aa → U21_aa(unif_pairs60_in_a)
unif_pairs51_in_aa → U22_aa(unif_pairs60_in_a)
unif_pairs51_in_aa → U23_aa(unif_pairs60_in_a)
U20_aa(unif_pairs60_out_a(T141)) → unif_pairs51_out_aa(w, .(w, T141))
U21_aa(unif_pairs60_out_a(T171)) → unif_pairs51_out_aa(black, .(black, T171))
U22_aa(unif_pairs60_out_a(T177)) → unif_pairs51_out_aa(black, .(w, T177))
U23_aa(unif_pairs60_out_a(T181)) → unif_pairs51_out_aa(w, .(black, T181))
unif_pairs60_in_a → unif_pairs60_out_a([])
unif_pairs60_in_a → U10_a(unif_pairs60_in_a)
unif_pairs60_in_a → U11_a(unif_pairs60_in_a)
unif_pairs60_in_a → U12_a(unif_pairs60_in_a)
unif_pairs60_in_a → U13_a(unif_pairs60_in_a)
U10_a(unif_pairs60_out_a(T159)) → unif_pairs60_out_a(.(w, .(w, T159)))
U11_a(unif_pairs60_out_a(T160)) → unif_pairs60_out_a(.(black, .(black, T160)))
U12_a(unif_pairs60_out_a(T166)) → unif_pairs60_out_a(.(black, .(w, T166)))
U13_a(unif_pairs60_out_a(T170)) → unif_pairs60_out_a(.(w, .(black, T170)))
unif_pairs51_in_aa
U20_aa(x0)
U21_aa(x0)
U22_aa(x0)
U23_aa(x0)
unif_pairs60_in_a
U10_a(x0)
U11_a(x0)
U12_a(x0)
U13_a(x0)
UNIF_LINES43_IN_AA → P50_IN_AAAAAA
U18_AAAAAA(unif_pairs51_out_aa(T103, T113)) → UNIF_LINES43_IN_AA
P50_IN_AAAAAA → U18_AAAAAA(U20_aa(unif_pairs60_in_a))
P50_IN_AAAAAA → U18_AAAAAA(U21_aa(unif_pairs60_in_a))
P50_IN_AAAAAA → U18_AAAAAA(U22_aa(unif_pairs60_in_a))
P50_IN_AAAAAA → U18_AAAAAA(U23_aa(unif_pairs60_in_a))
unif_pairs60_in_a → unif_pairs60_out_a([])
unif_pairs60_in_a → U10_a(unif_pairs60_in_a)
unif_pairs60_in_a → U11_a(unif_pairs60_in_a)
unif_pairs60_in_a → U12_a(unif_pairs60_in_a)
unif_pairs60_in_a → U13_a(unif_pairs60_in_a)
U23_aa(unif_pairs60_out_a(T181)) → unif_pairs51_out_aa(w, .(black, T181))
U13_a(unif_pairs60_out_a(T170)) → unif_pairs60_out_a(.(w, .(black, T170)))
U12_a(unif_pairs60_out_a(T166)) → unif_pairs60_out_a(.(black, .(w, T166)))
U11_a(unif_pairs60_out_a(T160)) → unif_pairs60_out_a(.(black, .(black, T160)))
U10_a(unif_pairs60_out_a(T159)) → unif_pairs60_out_a(.(w, .(w, T159)))
U22_aa(unif_pairs60_out_a(T177)) → unif_pairs51_out_aa(black, .(w, T177))
U21_aa(unif_pairs60_out_a(T171)) → unif_pairs51_out_aa(black, .(black, T171))
U20_aa(unif_pairs60_out_a(T141)) → unif_pairs51_out_aa(w, .(w, T141))
unif_pairs51_in_aa
U20_aa(x0)
U21_aa(x0)
U22_aa(x0)
U23_aa(x0)
unif_pairs60_in_a
U10_a(x0)
U11_a(x0)
U12_a(x0)
U13_a(x0)
unif_pairs51_in_aa
UNIF_LINES43_IN_AA → P50_IN_AAAAAA
U18_AAAAAA(unif_pairs51_out_aa(T103, T113)) → UNIF_LINES43_IN_AA
P50_IN_AAAAAA → U18_AAAAAA(U20_aa(unif_pairs60_in_a))
P50_IN_AAAAAA → U18_AAAAAA(U21_aa(unif_pairs60_in_a))
P50_IN_AAAAAA → U18_AAAAAA(U22_aa(unif_pairs60_in_a))
P50_IN_AAAAAA → U18_AAAAAA(U23_aa(unif_pairs60_in_a))
unif_pairs60_in_a → unif_pairs60_out_a([])
unif_pairs60_in_a → U10_a(unif_pairs60_in_a)
unif_pairs60_in_a → U11_a(unif_pairs60_in_a)
unif_pairs60_in_a → U12_a(unif_pairs60_in_a)
unif_pairs60_in_a → U13_a(unif_pairs60_in_a)
U23_aa(unif_pairs60_out_a(T181)) → unif_pairs51_out_aa(w, .(black, T181))
U13_a(unif_pairs60_out_a(T170)) → unif_pairs60_out_a(.(w, .(black, T170)))
U12_a(unif_pairs60_out_a(T166)) → unif_pairs60_out_a(.(black, .(w, T166)))
U11_a(unif_pairs60_out_a(T160)) → unif_pairs60_out_a(.(black, .(black, T160)))
U10_a(unif_pairs60_out_a(T159)) → unif_pairs60_out_a(.(w, .(w, T159)))
U22_aa(unif_pairs60_out_a(T177)) → unif_pairs51_out_aa(black, .(w, T177))
U21_aa(unif_pairs60_out_a(T171)) → unif_pairs51_out_aa(black, .(black, T171))
U20_aa(unif_pairs60_out_a(T141)) → unif_pairs51_out_aa(w, .(w, T141))
U20_aa(x0)
U21_aa(x0)
U22_aa(x0)
U23_aa(x0)
unif_pairs60_in_a
U10_a(x0)
U11_a(x0)
U12_a(x0)
U13_a(x0)
UNIF_MATRX37_IN_AA(T56, .(T65, T66)) → U7_AA(T56, T65, T66, unif_lines43_in_aa(T56, T65))
U7_AA(T56, T65, T66, unif_lines43_out_aa(T56, T65)) → UNIF_MATRX37_IN_AA(T65, T66)
shapes1_in_ga(.(T15, T16), T6) → U24_ga(T15, T16, T6, varmat16_in_ga(T15, X49))
varmat16_in_ga([], []) → varmat16_out_ga([], [])
varmat16_in_ga(.(T26, T27), .(X83, X84)) → U1_ga(T26, T27, X83, X84, varmat16_in_ga(T26, X83))
varmat16_in_ga(.(T26, T27), .(T28, X84)) → U2_ga(T26, T27, T28, X84, varmat16_in_ga(T26, T28))
varmat16_in_ga(.(black, T33), .(black, X103)) → U4_ga(T33, X103, varmat16_in_ga(T33, X103))
varmat16_in_ga(.(white, T36), .(w(X119), X120)) → U5_ga(T36, X119, X120, varmat16_in_ga(T36, X120))
U5_ga(T36, X119, X120, varmat16_out_ga(T36, X120)) → varmat16_out_ga(.(white, T36), .(w(X119), X120))
U4_ga(T33, X103, varmat16_out_ga(T33, X103)) → varmat16_out_ga(.(black, T33), .(black, X103))
U2_ga(T26, T27, T28, X84, varmat16_out_ga(T26, T28)) → U3_ga(T26, T27, T28, X84, varmat16_in_ga(T27, X84))
U3_ga(T26, T27, T28, X84, varmat16_out_ga(T27, X84)) → varmat16_out_ga(.(T26, T27), .(T28, X84))
U1_ga(T26, T27, X83, X84, varmat16_out_ga(T26, X83)) → varmat16_out_ga(.(T26, T27), .(X83, X84))
U24_ga(T15, T16, T6, varmat16_out_ga(T15, X49)) → shapes1_out_ga(.(T15, T16), T6)
shapes1_in_ga(.(T15, T16), T6) → U25_ga(T15, T16, T6, varmat16_in_ga(T15, T17))
U25_ga(T15, T16, T6, varmat16_out_ga(T15, T17)) → U26_ga(T15, T16, T6, p17_in_gaa(T16, X50, T17))
p17_in_gaa(T16, X50, T17) → U14_gaa(T16, X50, T17, varmat16_in_ga(T16, X50))
U14_gaa(T16, X50, T17, varmat16_out_ga(T16, X50)) → p17_out_gaa(T16, X50, T17)
p17_in_gaa(T16, T37, T17) → U15_gaa(T16, T37, T17, varmat16_in_ga(T16, T37))
U15_gaa(T16, T37, T17, varmat16_out_ga(T16, T37)) → U16_gaa(T16, T37, T17, unif_matrx37_in_aa(T17, T37))
unif_matrx37_in_aa(T56, .(T57, T58)) → U6_aa(T56, T57, T58, unif_lines43_in_aa(T56, T57))
unif_lines43_in_aa(.(T103, .(T104, T107)), .(T105, .(T106, T108))) → U9_aa(T103, T104, T107, T105, T106, T108, p50_in_aaaaaa(T103, .(T104, .(T105, .(T106, .(T103, .(T105, .(T104, .(T106, .(T103, .(T106, .(T104, .(T105, []))))))))))), T104, T107, T106, T108))
p50_in_aaaaaa(T103, T113, T104, T107, T106, T108) → U17_aaaaaa(T103, T113, T104, T107, T106, T108, unif_pairs51_in_aa(T103, T113))
unif_pairs51_in_aa(w(T140), .(w(T140), T141)) → U20_aa(T140, T141, unif_pairs60_in_a(T141))
unif_pairs60_in_a([]) → unif_pairs60_out_a([])
unif_pairs60_in_a(.(w(T158), .(w(T158), T159))) → U10_a(T158, T159, unif_pairs60_in_a(T159))
unif_pairs60_in_a(.(black, .(black, T160))) → U11_a(T160, unif_pairs60_in_a(T160))
unif_pairs60_in_a(.(black, .(w(T165), T166))) → U12_a(T165, T166, unif_pairs60_in_a(T166))
unif_pairs60_in_a(.(w(T169), .(black, T170))) → U13_a(T169, T170, unif_pairs60_in_a(T170))
U13_a(T169, T170, unif_pairs60_out_a(T170)) → unif_pairs60_out_a(.(w(T169), .(black, T170)))
U12_a(T165, T166, unif_pairs60_out_a(T166)) → unif_pairs60_out_a(.(black, .(w(T165), T166)))
U11_a(T160, unif_pairs60_out_a(T160)) → unif_pairs60_out_a(.(black, .(black, T160)))
U10_a(T158, T159, unif_pairs60_out_a(T159)) → unif_pairs60_out_a(.(w(T158), .(w(T158), T159)))
U20_aa(T140, T141, unif_pairs60_out_a(T141)) → unif_pairs51_out_aa(w(T140), .(w(T140), T141))
unif_pairs51_in_aa(black, .(black, T171)) → U21_aa(T171, unif_pairs60_in_a(T171))
U21_aa(T171, unif_pairs60_out_a(T171)) → unif_pairs51_out_aa(black, .(black, T171))
unif_pairs51_in_aa(black, .(w(T176), T177)) → U22_aa(T176, T177, unif_pairs60_in_a(T177))
U22_aa(T176, T177, unif_pairs60_out_a(T177)) → unif_pairs51_out_aa(black, .(w(T176), T177))
unif_pairs51_in_aa(w(T180), .(black, T181)) → U23_aa(T180, T181, unif_pairs60_in_a(T181))
U23_aa(T180, T181, unif_pairs60_out_a(T181)) → unif_pairs51_out_aa(w(T180), .(black, T181))
U17_aaaaaa(T103, T113, T104, T107, T106, T108, unif_pairs51_out_aa(T103, T113)) → p50_out_aaaaaa(T103, T113, T104, T107, T106, T108)
p50_in_aaaaaa(T103, T113, T117, T118, T119, T120) → U18_aaaaaa(T103, T113, T117, T118, T119, T120, unif_pairs51_in_aa(T103, T113))
U18_aaaaaa(T103, T113, T117, T118, T119, T120, unif_pairs51_out_aa(T103, T113)) → U19_aaaaaa(T103, T113, T117, T118, T119, T120, unif_lines43_in_aa(.(T117, T118), .(T119, T120)))
unif_lines43_in_aa(.(T192, []), .(T193, [])) → unif_lines43_out_aa(.(T192, []), .(T193, []))
U19_aaaaaa(T103, T113, T117, T118, T119, T120, unif_lines43_out_aa(.(T117, T118), .(T119, T120))) → p50_out_aaaaaa(T103, T113, T117, T118, T119, T120)
U9_aa(T103, T104, T107, T105, T106, T108, p50_out_aaaaaa(T103, .(T104, .(T105, .(T106, .(T103, .(T105, .(T104, .(T106, .(T103, .(T106, .(T104, .(T105, []))))))))))), T104, T107, T106, T108)) → unif_lines43_out_aa(.(T103, .(T104, T107)), .(T105, .(T106, T108)))
U6_aa(T56, T57, T58, unif_lines43_out_aa(T56, T57)) → unif_matrx37_out_aa(T56, .(T57, T58))
unif_matrx37_in_aa(T56, .(T65, T66)) → U7_aa(T56, T65, T66, unif_lines43_in_aa(T56, T65))
U7_aa(T56, T65, T66, unif_lines43_out_aa(T56, T65)) → U8_aa(T56, T65, T66, unif_matrx37_in_aa(T65, T66))
unif_matrx37_in_aa(T199, []) → unif_matrx37_out_aa(T199, [])
U8_aa(T56, T65, T66, unif_matrx37_out_aa(T65, T66)) → unif_matrx37_out_aa(T56, .(T65, T66))
U16_gaa(T16, T37, T17, unif_matrx37_out_aa(T17, T37)) → p17_out_gaa(T16, T37, T17)
U26_ga(T15, T16, T6, p17_out_gaa(T16, X50, T17)) → shapes1_out_ga(.(T15, T16), T6)
shapes1_in_ga(.(black, T204), T6) → U27_ga(T204, T6, p17_in_gag(T204, X293, black))
p17_in_gag(T16, X50, T17) → U14_gag(T16, X50, T17, varmat16_in_ga(T16, X50))
U14_gag(T16, X50, T17, varmat16_out_ga(T16, X50)) → p17_out_gag(T16, X50, T17)
p17_in_gag(T16, T37, T17) → U15_gag(T16, T37, T17, varmat16_in_ga(T16, T37))
U15_gag(T16, T37, T17, varmat16_out_ga(T16, T37)) → U16_gag(T16, T37, T17, unif_matrx37_in_ga(T17, T37))
unif_matrx37_in_ga(T56, .(T57, T58)) → U6_ga(T56, T57, T58, unif_lines43_in_ga(T56, T57))
unif_lines43_in_ga(.(T103, .(T104, T107)), .(T105, .(T106, T108))) → U9_ga(T103, T104, T107, T105, T106, T108, p50_in_gaggaa(T103, .(T104, .(T105, .(T106, .(T103, .(T105, .(T104, .(T106, .(T103, .(T106, .(T104, .(T105, []))))))))))), T104, T107, T106, T108))
p50_in_gaggaa(T103, T113, T104, T107, T106, T108) → U17_gaggaa(T103, T113, T104, T107, T106, T108, unif_pairs51_in_ga(T103, T113))
unif_pairs51_in_ga(w(T140), .(w(T140), T141)) → U20_ga(T140, T141, unif_pairs60_in_a(T141))
U20_ga(T140, T141, unif_pairs60_out_a(T141)) → unif_pairs51_out_ga(w(T140), .(w(T140), T141))
unif_pairs51_in_ga(black, .(black, T171)) → U21_ga(T171, unif_pairs60_in_a(T171))
U21_ga(T171, unif_pairs60_out_a(T171)) → unif_pairs51_out_ga(black, .(black, T171))
unif_pairs51_in_ga(black, .(w(T176), T177)) → U22_ga(T176, T177, unif_pairs60_in_a(T177))
U22_ga(T176, T177, unif_pairs60_out_a(T177)) → unif_pairs51_out_ga(black, .(w(T176), T177))
unif_pairs51_in_ga(w(T180), .(black, T181)) → U23_ga(T180, T181, unif_pairs60_in_a(T181))
U23_ga(T180, T181, unif_pairs60_out_a(T181)) → unif_pairs51_out_ga(w(T180), .(black, T181))
U17_gaggaa(T103, T113, T104, T107, T106, T108, unif_pairs51_out_ga(T103, T113)) → p50_out_gaggaa(T103, T113, T104, T107, T106, T108)
p50_in_gaggaa(T103, T113, T117, T118, T119, T120) → U18_gaggaa(T103, T113, T117, T118, T119, T120, unif_pairs51_in_ga(T103, T113))
U18_gaggaa(T103, T113, T117, T118, T119, T120, unif_pairs51_out_ga(T103, T113)) → U19_gaggaa(T103, T113, T117, T118, T119, T120, unif_lines43_in_ga(.(T117, T118), .(T119, T120)))
unif_lines43_in_ga(.(T192, []), .(T193, [])) → unif_lines43_out_ga(.(T192, []), .(T193, []))
U19_gaggaa(T103, T113, T117, T118, T119, T120, unif_lines43_out_ga(.(T117, T118), .(T119, T120))) → p50_out_gaggaa(T103, T113, T117, T118, T119, T120)
U9_ga(T103, T104, T107, T105, T106, T108, p50_out_gaggaa(T103, .(T104, .(T105, .(T106, .(T103, .(T105, .(T104, .(T106, .(T103, .(T106, .(T104, .(T105, []))))))))))), T104, T107, T106, T108)) → unif_lines43_out_ga(.(T103, .(T104, T107)), .(T105, .(T106, T108)))
U6_ga(T56, T57, T58, unif_lines43_out_ga(T56, T57)) → unif_matrx37_out_ga(T56, .(T57, T58))
unif_matrx37_in_ga(T56, .(T65, T66)) → U7_ga(T56, T65, T66, unif_lines43_in_ga(T56, T65))
U7_ga(T56, T65, T66, unif_lines43_out_ga(T56, T65)) → U8_ga(T56, T65, T66, unif_matrx37_in_aa(T65, T66))
U8_ga(T56, T65, T66, unif_matrx37_out_aa(T65, T66)) → unif_matrx37_out_ga(T56, .(T65, T66))
unif_matrx37_in_ga(T199, []) → unif_matrx37_out_ga(T199, [])
U16_gag(T16, T37, T17, unif_matrx37_out_ga(T17, T37)) → p17_out_gag(T16, T37, T17)
U27_ga(T204, T6, p17_out_gag(T204, X293, black)) → shapes1_out_ga(.(black, T204), T6)
shapes1_in_ga(.(white, T207), T6) → U28_ga(T207, T6, p17_in_gag(T207, X310, w(X309)))
U28_ga(T207, T6, p17_out_gag(T207, X310, w(X309))) → shapes1_out_ga(.(white, T207), T6)
UNIF_MATRX37_IN_AA(T56, .(T65, T66)) → U7_AA(T56, T65, T66, unif_lines43_in_aa(T56, T65))
U7_AA(T56, T65, T66, unif_lines43_out_aa(T56, T65)) → UNIF_MATRX37_IN_AA(T65, T66)
unif_lines43_in_aa(.(T103, .(T104, T107)), .(T105, .(T106, T108))) → U9_aa(T103, T104, T107, T105, T106, T108, p50_in_aaaaaa(T103, .(T104, .(T105, .(T106, .(T103, .(T105, .(T104, .(T106, .(T103, .(T106, .(T104, .(T105, []))))))))))), T104, T107, T106, T108))
unif_lines43_in_aa(.(T192, []), .(T193, [])) → unif_lines43_out_aa(.(T192, []), .(T193, []))
U9_aa(T103, T104, T107, T105, T106, T108, p50_out_aaaaaa(T103, .(T104, .(T105, .(T106, .(T103, .(T105, .(T104, .(T106, .(T103, .(T106, .(T104, .(T105, []))))))))))), T104, T107, T106, T108)) → unif_lines43_out_aa(.(T103, .(T104, T107)), .(T105, .(T106, T108)))
p50_in_aaaaaa(T103, T113, T104, T107, T106, T108) → U17_aaaaaa(T103, T113, T104, T107, T106, T108, unif_pairs51_in_aa(T103, T113))
p50_in_aaaaaa(T103, T113, T117, T118, T119, T120) → U18_aaaaaa(T103, T113, T117, T118, T119, T120, unif_pairs51_in_aa(T103, T113))
U17_aaaaaa(T103, T113, T104, T107, T106, T108, unif_pairs51_out_aa(T103, T113)) → p50_out_aaaaaa(T103, T113, T104, T107, T106, T108)
U18_aaaaaa(T103, T113, T117, T118, T119, T120, unif_pairs51_out_aa(T103, T113)) → U19_aaaaaa(T103, T113, T117, T118, T119, T120, unif_lines43_in_aa(.(T117, T118), .(T119, T120)))
unif_pairs51_in_aa(w(T140), .(w(T140), T141)) → U20_aa(T140, T141, unif_pairs60_in_a(T141))
unif_pairs51_in_aa(black, .(black, T171)) → U21_aa(T171, unif_pairs60_in_a(T171))
unif_pairs51_in_aa(black, .(w(T176), T177)) → U22_aa(T176, T177, unif_pairs60_in_a(T177))
unif_pairs51_in_aa(w(T180), .(black, T181)) → U23_aa(T180, T181, unif_pairs60_in_a(T181))
U19_aaaaaa(T103, T113, T117, T118, T119, T120, unif_lines43_out_aa(.(T117, T118), .(T119, T120))) → p50_out_aaaaaa(T103, T113, T117, T118, T119, T120)
U20_aa(T140, T141, unif_pairs60_out_a(T141)) → unif_pairs51_out_aa(w(T140), .(w(T140), T141))
U21_aa(T171, unif_pairs60_out_a(T171)) → unif_pairs51_out_aa(black, .(black, T171))
U22_aa(T176, T177, unif_pairs60_out_a(T177)) → unif_pairs51_out_aa(black, .(w(T176), T177))
U23_aa(T180, T181, unif_pairs60_out_a(T181)) → unif_pairs51_out_aa(w(T180), .(black, T181))
unif_pairs60_in_a([]) → unif_pairs60_out_a([])
unif_pairs60_in_a(.(w(T158), .(w(T158), T159))) → U10_a(T158, T159, unif_pairs60_in_a(T159))
unif_pairs60_in_a(.(black, .(black, T160))) → U11_a(T160, unif_pairs60_in_a(T160))
unif_pairs60_in_a(.(black, .(w(T165), T166))) → U12_a(T165, T166, unif_pairs60_in_a(T166))
unif_pairs60_in_a(.(w(T169), .(black, T170))) → U13_a(T169, T170, unif_pairs60_in_a(T170))
U10_a(T158, T159, unif_pairs60_out_a(T159)) → unif_pairs60_out_a(.(w(T158), .(w(T158), T159)))
U11_a(T160, unif_pairs60_out_a(T160)) → unif_pairs60_out_a(.(black, .(black, T160)))
U12_a(T165, T166, unif_pairs60_out_a(T166)) → unif_pairs60_out_a(.(black, .(w(T165), T166)))
U13_a(T169, T170, unif_pairs60_out_a(T170)) → unif_pairs60_out_a(.(w(T169), .(black, T170)))
UNIF_MATRX37_IN_AA → U7_AA(unif_lines43_in_aa)
U7_AA(unif_lines43_out_aa) → UNIF_MATRX37_IN_AA
unif_lines43_in_aa → U9_aa(p50_in_aaaaaa)
unif_lines43_in_aa → unif_lines43_out_aa
U9_aa(p50_out_aaaaaa(T103, .(T104, .(T105, .(T106, .(T103, .(T105, .(T104, .(T106, .(T103, .(T106, .(T104, .(T105, []))))))))))))) → unif_lines43_out_aa
p50_in_aaaaaa → U17_aaaaaa(unif_pairs51_in_aa)
p50_in_aaaaaa → U18_aaaaaa(unif_pairs51_in_aa)
U17_aaaaaa(unif_pairs51_out_aa(T103, T113)) → p50_out_aaaaaa(T103, T113)
U18_aaaaaa(unif_pairs51_out_aa(T103, T113)) → U19_aaaaaa(T103, T113, unif_lines43_in_aa)
unif_pairs51_in_aa → U20_aa(unif_pairs60_in_a)
unif_pairs51_in_aa → U21_aa(unif_pairs60_in_a)
unif_pairs51_in_aa → U22_aa(unif_pairs60_in_a)
unif_pairs51_in_aa → U23_aa(unif_pairs60_in_a)
U19_aaaaaa(T103, T113, unif_lines43_out_aa) → p50_out_aaaaaa(T103, T113)
U20_aa(unif_pairs60_out_a(T141)) → unif_pairs51_out_aa(w, .(w, T141))
U21_aa(unif_pairs60_out_a(T171)) → unif_pairs51_out_aa(black, .(black, T171))
U22_aa(unif_pairs60_out_a(T177)) → unif_pairs51_out_aa(black, .(w, T177))
U23_aa(unif_pairs60_out_a(T181)) → unif_pairs51_out_aa(w, .(black, T181))
unif_pairs60_in_a → unif_pairs60_out_a([])
unif_pairs60_in_a → U10_a(unif_pairs60_in_a)
unif_pairs60_in_a → U11_a(unif_pairs60_in_a)
unif_pairs60_in_a → U12_a(unif_pairs60_in_a)
unif_pairs60_in_a → U13_a(unif_pairs60_in_a)
U10_a(unif_pairs60_out_a(T159)) → unif_pairs60_out_a(.(w, .(w, T159)))
U11_a(unif_pairs60_out_a(T160)) → unif_pairs60_out_a(.(black, .(black, T160)))
U12_a(unif_pairs60_out_a(T166)) → unif_pairs60_out_a(.(black, .(w, T166)))
U13_a(unif_pairs60_out_a(T170)) → unif_pairs60_out_a(.(w, .(black, T170)))
unif_lines43_in_aa
U9_aa(x0)
p50_in_aaaaaa
U17_aaaaaa(x0)
U18_aaaaaa(x0)
unif_pairs51_in_aa
U19_aaaaaa(x0, x1, x2)
U20_aa(x0)
U21_aa(x0)
U22_aa(x0)
U23_aa(x0)
unif_pairs60_in_a
U10_a(x0)
U11_a(x0)
U12_a(x0)
U13_a(x0)
UNIF_MATRX37_IN_AA → U7_AA(U9_aa(p50_in_aaaaaa))
UNIF_MATRX37_IN_AA → U7_AA(unif_lines43_out_aa)
U7_AA(unif_lines43_out_aa) → UNIF_MATRX37_IN_AA
UNIF_MATRX37_IN_AA → U7_AA(U9_aa(p50_in_aaaaaa))
UNIF_MATRX37_IN_AA → U7_AA(unif_lines43_out_aa)
unif_lines43_in_aa → U9_aa(p50_in_aaaaaa)
unif_lines43_in_aa → unif_lines43_out_aa
U9_aa(p50_out_aaaaaa(T103, .(T104, .(T105, .(T106, .(T103, .(T105, .(T104, .(T106, .(T103, .(T106, .(T104, .(T105, []))))))))))))) → unif_lines43_out_aa
p50_in_aaaaaa → U17_aaaaaa(unif_pairs51_in_aa)
p50_in_aaaaaa → U18_aaaaaa(unif_pairs51_in_aa)
U17_aaaaaa(unif_pairs51_out_aa(T103, T113)) → p50_out_aaaaaa(T103, T113)
U18_aaaaaa(unif_pairs51_out_aa(T103, T113)) → U19_aaaaaa(T103, T113, unif_lines43_in_aa)
unif_pairs51_in_aa → U20_aa(unif_pairs60_in_a)
unif_pairs51_in_aa → U21_aa(unif_pairs60_in_a)
unif_pairs51_in_aa → U22_aa(unif_pairs60_in_a)
unif_pairs51_in_aa → U23_aa(unif_pairs60_in_a)
U19_aaaaaa(T103, T113, unif_lines43_out_aa) → p50_out_aaaaaa(T103, T113)
U20_aa(unif_pairs60_out_a(T141)) → unif_pairs51_out_aa(w, .(w, T141))
U21_aa(unif_pairs60_out_a(T171)) → unif_pairs51_out_aa(black, .(black, T171))
U22_aa(unif_pairs60_out_a(T177)) → unif_pairs51_out_aa(black, .(w, T177))
U23_aa(unif_pairs60_out_a(T181)) → unif_pairs51_out_aa(w, .(black, T181))
unif_pairs60_in_a → unif_pairs60_out_a([])
unif_pairs60_in_a → U10_a(unif_pairs60_in_a)
unif_pairs60_in_a → U11_a(unif_pairs60_in_a)
unif_pairs60_in_a → U12_a(unif_pairs60_in_a)
unif_pairs60_in_a → U13_a(unif_pairs60_in_a)
U10_a(unif_pairs60_out_a(T159)) → unif_pairs60_out_a(.(w, .(w, T159)))
U11_a(unif_pairs60_out_a(T160)) → unif_pairs60_out_a(.(black, .(black, T160)))
U12_a(unif_pairs60_out_a(T166)) → unif_pairs60_out_a(.(black, .(w, T166)))
U13_a(unif_pairs60_out_a(T170)) → unif_pairs60_out_a(.(w, .(black, T170)))
unif_lines43_in_aa
U9_aa(x0)
p50_in_aaaaaa
U17_aaaaaa(x0)
U18_aaaaaa(x0)
unif_pairs51_in_aa
U19_aaaaaa(x0, x1, x2)
U20_aa(x0)
U21_aa(x0)
U22_aa(x0)
U23_aa(x0)
unif_pairs60_in_a
U10_a(x0)
U11_a(x0)
U12_a(x0)
U13_a(x0)
VARMAT16_IN_GA(.(T26, T27), .(T28, X84)) → U2_GA(T26, T27, T28, X84, varmat16_in_ga(T26, T28))
U2_GA(T26, T27, T28, X84, varmat16_out_ga(T26, T28)) → VARMAT16_IN_GA(T27, X84)
VARMAT16_IN_GA(.(T26, T27), .(X83, X84)) → VARMAT16_IN_GA(T26, X83)
VARMAT16_IN_GA(.(black, T33), .(black, X103)) → VARMAT16_IN_GA(T33, X103)
VARMAT16_IN_GA(.(white, T36), .(w(X119), X120)) → VARMAT16_IN_GA(T36, X120)
shapes1_in_ga(.(T15, T16), T6) → U24_ga(T15, T16, T6, varmat16_in_ga(T15, X49))
varmat16_in_ga([], []) → varmat16_out_ga([], [])
varmat16_in_ga(.(T26, T27), .(X83, X84)) → U1_ga(T26, T27, X83, X84, varmat16_in_ga(T26, X83))
varmat16_in_ga(.(T26, T27), .(T28, X84)) → U2_ga(T26, T27, T28, X84, varmat16_in_ga(T26, T28))
varmat16_in_ga(.(black, T33), .(black, X103)) → U4_ga(T33, X103, varmat16_in_ga(T33, X103))
varmat16_in_ga(.(white, T36), .(w(X119), X120)) → U5_ga(T36, X119, X120, varmat16_in_ga(T36, X120))
U5_ga(T36, X119, X120, varmat16_out_ga(T36, X120)) → varmat16_out_ga(.(white, T36), .(w(X119), X120))
U4_ga(T33, X103, varmat16_out_ga(T33, X103)) → varmat16_out_ga(.(black, T33), .(black, X103))
U2_ga(T26, T27, T28, X84, varmat16_out_ga(T26, T28)) → U3_ga(T26, T27, T28, X84, varmat16_in_ga(T27, X84))
U3_ga(T26, T27, T28, X84, varmat16_out_ga(T27, X84)) → varmat16_out_ga(.(T26, T27), .(T28, X84))
U1_ga(T26, T27, X83, X84, varmat16_out_ga(T26, X83)) → varmat16_out_ga(.(T26, T27), .(X83, X84))
U24_ga(T15, T16, T6, varmat16_out_ga(T15, X49)) → shapes1_out_ga(.(T15, T16), T6)
shapes1_in_ga(.(T15, T16), T6) → U25_ga(T15, T16, T6, varmat16_in_ga(T15, T17))
U25_ga(T15, T16, T6, varmat16_out_ga(T15, T17)) → U26_ga(T15, T16, T6, p17_in_gaa(T16, X50, T17))
p17_in_gaa(T16, X50, T17) → U14_gaa(T16, X50, T17, varmat16_in_ga(T16, X50))
U14_gaa(T16, X50, T17, varmat16_out_ga(T16, X50)) → p17_out_gaa(T16, X50, T17)
p17_in_gaa(T16, T37, T17) → U15_gaa(T16, T37, T17, varmat16_in_ga(T16, T37))
U15_gaa(T16, T37, T17, varmat16_out_ga(T16, T37)) → U16_gaa(T16, T37, T17, unif_matrx37_in_aa(T17, T37))
unif_matrx37_in_aa(T56, .(T57, T58)) → U6_aa(T56, T57, T58, unif_lines43_in_aa(T56, T57))
unif_lines43_in_aa(.(T103, .(T104, T107)), .(T105, .(T106, T108))) → U9_aa(T103, T104, T107, T105, T106, T108, p50_in_aaaaaa(T103, .(T104, .(T105, .(T106, .(T103, .(T105, .(T104, .(T106, .(T103, .(T106, .(T104, .(T105, []))))))))))), T104, T107, T106, T108))
p50_in_aaaaaa(T103, T113, T104, T107, T106, T108) → U17_aaaaaa(T103, T113, T104, T107, T106, T108, unif_pairs51_in_aa(T103, T113))
unif_pairs51_in_aa(w(T140), .(w(T140), T141)) → U20_aa(T140, T141, unif_pairs60_in_a(T141))
unif_pairs60_in_a([]) → unif_pairs60_out_a([])
unif_pairs60_in_a(.(w(T158), .(w(T158), T159))) → U10_a(T158, T159, unif_pairs60_in_a(T159))
unif_pairs60_in_a(.(black, .(black, T160))) → U11_a(T160, unif_pairs60_in_a(T160))
unif_pairs60_in_a(.(black, .(w(T165), T166))) → U12_a(T165, T166, unif_pairs60_in_a(T166))
unif_pairs60_in_a(.(w(T169), .(black, T170))) → U13_a(T169, T170, unif_pairs60_in_a(T170))
U13_a(T169, T170, unif_pairs60_out_a(T170)) → unif_pairs60_out_a(.(w(T169), .(black, T170)))
U12_a(T165, T166, unif_pairs60_out_a(T166)) → unif_pairs60_out_a(.(black, .(w(T165), T166)))
U11_a(T160, unif_pairs60_out_a(T160)) → unif_pairs60_out_a(.(black, .(black, T160)))
U10_a(T158, T159, unif_pairs60_out_a(T159)) → unif_pairs60_out_a(.(w(T158), .(w(T158), T159)))
U20_aa(T140, T141, unif_pairs60_out_a(T141)) → unif_pairs51_out_aa(w(T140), .(w(T140), T141))
unif_pairs51_in_aa(black, .(black, T171)) → U21_aa(T171, unif_pairs60_in_a(T171))
U21_aa(T171, unif_pairs60_out_a(T171)) → unif_pairs51_out_aa(black, .(black, T171))
unif_pairs51_in_aa(black, .(w(T176), T177)) → U22_aa(T176, T177, unif_pairs60_in_a(T177))
U22_aa(T176, T177, unif_pairs60_out_a(T177)) → unif_pairs51_out_aa(black, .(w(T176), T177))
unif_pairs51_in_aa(w(T180), .(black, T181)) → U23_aa(T180, T181, unif_pairs60_in_a(T181))
U23_aa(T180, T181, unif_pairs60_out_a(T181)) → unif_pairs51_out_aa(w(T180), .(black, T181))
U17_aaaaaa(T103, T113, T104, T107, T106, T108, unif_pairs51_out_aa(T103, T113)) → p50_out_aaaaaa(T103, T113, T104, T107, T106, T108)
p50_in_aaaaaa(T103, T113, T117, T118, T119, T120) → U18_aaaaaa(T103, T113, T117, T118, T119, T120, unif_pairs51_in_aa(T103, T113))
U18_aaaaaa(T103, T113, T117, T118, T119, T120, unif_pairs51_out_aa(T103, T113)) → U19_aaaaaa(T103, T113, T117, T118, T119, T120, unif_lines43_in_aa(.(T117, T118), .(T119, T120)))
unif_lines43_in_aa(.(T192, []), .(T193, [])) → unif_lines43_out_aa(.(T192, []), .(T193, []))
U19_aaaaaa(T103, T113, T117, T118, T119, T120, unif_lines43_out_aa(.(T117, T118), .(T119, T120))) → p50_out_aaaaaa(T103, T113, T117, T118, T119, T120)
U9_aa(T103, T104, T107, T105, T106, T108, p50_out_aaaaaa(T103, .(T104, .(T105, .(T106, .(T103, .(T105, .(T104, .(T106, .(T103, .(T106, .(T104, .(T105, []))))))))))), T104, T107, T106, T108)) → unif_lines43_out_aa(.(T103, .(T104, T107)), .(T105, .(T106, T108)))
U6_aa(T56, T57, T58, unif_lines43_out_aa(T56, T57)) → unif_matrx37_out_aa(T56, .(T57, T58))
unif_matrx37_in_aa(T56, .(T65, T66)) → U7_aa(T56, T65, T66, unif_lines43_in_aa(T56, T65))
U7_aa(T56, T65, T66, unif_lines43_out_aa(T56, T65)) → U8_aa(T56, T65, T66, unif_matrx37_in_aa(T65, T66))
unif_matrx37_in_aa(T199, []) → unif_matrx37_out_aa(T199, [])
U8_aa(T56, T65, T66, unif_matrx37_out_aa(T65, T66)) → unif_matrx37_out_aa(T56, .(T65, T66))
U16_gaa(T16, T37, T17, unif_matrx37_out_aa(T17, T37)) → p17_out_gaa(T16, T37, T17)
U26_ga(T15, T16, T6, p17_out_gaa(T16, X50, T17)) → shapes1_out_ga(.(T15, T16), T6)
shapes1_in_ga(.(black, T204), T6) → U27_ga(T204, T6, p17_in_gag(T204, X293, black))
p17_in_gag(T16, X50, T17) → U14_gag(T16, X50, T17, varmat16_in_ga(T16, X50))
U14_gag(T16, X50, T17, varmat16_out_ga(T16, X50)) → p17_out_gag(T16, X50, T17)
p17_in_gag(T16, T37, T17) → U15_gag(T16, T37, T17, varmat16_in_ga(T16, T37))
U15_gag(T16, T37, T17, varmat16_out_ga(T16, T37)) → U16_gag(T16, T37, T17, unif_matrx37_in_ga(T17, T37))
unif_matrx37_in_ga(T56, .(T57, T58)) → U6_ga(T56, T57, T58, unif_lines43_in_ga(T56, T57))
unif_lines43_in_ga(.(T103, .(T104, T107)), .(T105, .(T106, T108))) → U9_ga(T103, T104, T107, T105, T106, T108, p50_in_gaggaa(T103, .(T104, .(T105, .(T106, .(T103, .(T105, .(T104, .(T106, .(T103, .(T106, .(T104, .(T105, []))))))))))), T104, T107, T106, T108))
p50_in_gaggaa(T103, T113, T104, T107, T106, T108) → U17_gaggaa(T103, T113, T104, T107, T106, T108, unif_pairs51_in_ga(T103, T113))
unif_pairs51_in_ga(w(T140), .(w(T140), T141)) → U20_ga(T140, T141, unif_pairs60_in_a(T141))
U20_ga(T140, T141, unif_pairs60_out_a(T141)) → unif_pairs51_out_ga(w(T140), .(w(T140), T141))
unif_pairs51_in_ga(black, .(black, T171)) → U21_ga(T171, unif_pairs60_in_a(T171))
U21_ga(T171, unif_pairs60_out_a(T171)) → unif_pairs51_out_ga(black, .(black, T171))
unif_pairs51_in_ga(black, .(w(T176), T177)) → U22_ga(T176, T177, unif_pairs60_in_a(T177))
U22_ga(T176, T177, unif_pairs60_out_a(T177)) → unif_pairs51_out_ga(black, .(w(T176), T177))
unif_pairs51_in_ga(w(T180), .(black, T181)) → U23_ga(T180, T181, unif_pairs60_in_a(T181))
U23_ga(T180, T181, unif_pairs60_out_a(T181)) → unif_pairs51_out_ga(w(T180), .(black, T181))
U17_gaggaa(T103, T113, T104, T107, T106, T108, unif_pairs51_out_ga(T103, T113)) → p50_out_gaggaa(T103, T113, T104, T107, T106, T108)
p50_in_gaggaa(T103, T113, T117, T118, T119, T120) → U18_gaggaa(T103, T113, T117, T118, T119, T120, unif_pairs51_in_ga(T103, T113))
U18_gaggaa(T103, T113, T117, T118, T119, T120, unif_pairs51_out_ga(T103, T113)) → U19_gaggaa(T103, T113, T117, T118, T119, T120, unif_lines43_in_ga(.(T117, T118), .(T119, T120)))
unif_lines43_in_ga(.(T192, []), .(T193, [])) → unif_lines43_out_ga(.(T192, []), .(T193, []))
U19_gaggaa(T103, T113, T117, T118, T119, T120, unif_lines43_out_ga(.(T117, T118), .(T119, T120))) → p50_out_gaggaa(T103, T113, T117, T118, T119, T120)
U9_ga(T103, T104, T107, T105, T106, T108, p50_out_gaggaa(T103, .(T104, .(T105, .(T106, .(T103, .(T105, .(T104, .(T106, .(T103, .(T106, .(T104, .(T105, []))))))))))), T104, T107, T106, T108)) → unif_lines43_out_ga(.(T103, .(T104, T107)), .(T105, .(T106, T108)))
U6_ga(T56, T57, T58, unif_lines43_out_ga(T56, T57)) → unif_matrx37_out_ga(T56, .(T57, T58))
unif_matrx37_in_ga(T56, .(T65, T66)) → U7_ga(T56, T65, T66, unif_lines43_in_ga(T56, T65))
U7_ga(T56, T65, T66, unif_lines43_out_ga(T56, T65)) → U8_ga(T56, T65, T66, unif_matrx37_in_aa(T65, T66))
U8_ga(T56, T65, T66, unif_matrx37_out_aa(T65, T66)) → unif_matrx37_out_ga(T56, .(T65, T66))
unif_matrx37_in_ga(T199, []) → unif_matrx37_out_ga(T199, [])
U16_gag(T16, T37, T17, unif_matrx37_out_ga(T17, T37)) → p17_out_gag(T16, T37, T17)
U27_ga(T204, T6, p17_out_gag(T204, X293, black)) → shapes1_out_ga(.(black, T204), T6)
shapes1_in_ga(.(white, T207), T6) → U28_ga(T207, T6, p17_in_gag(T207, X310, w(X309)))
U28_ga(T207, T6, p17_out_gag(T207, X310, w(X309))) → shapes1_out_ga(.(white, T207), T6)
VARMAT16_IN_GA(.(T26, T27), .(T28, X84)) → U2_GA(T26, T27, T28, X84, varmat16_in_ga(T26, T28))
U2_GA(T26, T27, T28, X84, varmat16_out_ga(T26, T28)) → VARMAT16_IN_GA(T27, X84)
VARMAT16_IN_GA(.(T26, T27), .(X83, X84)) → VARMAT16_IN_GA(T26, X83)
VARMAT16_IN_GA(.(black, T33), .(black, X103)) → VARMAT16_IN_GA(T33, X103)
VARMAT16_IN_GA(.(white, T36), .(w(X119), X120)) → VARMAT16_IN_GA(T36, X120)
varmat16_in_ga([], []) → varmat16_out_ga([], [])
varmat16_in_ga(.(T26, T27), .(X83, X84)) → U1_ga(T26, T27, X83, X84, varmat16_in_ga(T26, X83))
varmat16_in_ga(.(T26, T27), .(T28, X84)) → U2_ga(T26, T27, T28, X84, varmat16_in_ga(T26, T28))
varmat16_in_ga(.(black, T33), .(black, X103)) → U4_ga(T33, X103, varmat16_in_ga(T33, X103))
varmat16_in_ga(.(white, T36), .(w(X119), X120)) → U5_ga(T36, X119, X120, varmat16_in_ga(T36, X120))
U1_ga(T26, T27, X83, X84, varmat16_out_ga(T26, X83)) → varmat16_out_ga(.(T26, T27), .(X83, X84))
U2_ga(T26, T27, T28, X84, varmat16_out_ga(T26, T28)) → U3_ga(T26, T27, T28, X84, varmat16_in_ga(T27, X84))
U4_ga(T33, X103, varmat16_out_ga(T33, X103)) → varmat16_out_ga(.(black, T33), .(black, X103))
U5_ga(T36, X119, X120, varmat16_out_ga(T36, X120)) → varmat16_out_ga(.(white, T36), .(w(X119), X120))
U3_ga(T26, T27, T28, X84, varmat16_out_ga(T27, X84)) → varmat16_out_ga(.(T26, T27), .(T28, X84))
VARMAT16_IN_GA(.(T26, T27)) → U2_GA(T26, T27, varmat16_in_ga(T26))
U2_GA(T26, T27, varmat16_out_ga(T26)) → VARMAT16_IN_GA(T27)
VARMAT16_IN_GA(.(T26, T27)) → VARMAT16_IN_GA(T26)
VARMAT16_IN_GA(.(black, T33)) → VARMAT16_IN_GA(T33)
VARMAT16_IN_GA(.(white, T36)) → VARMAT16_IN_GA(T36)
varmat16_in_ga([]) → varmat16_out_ga([])
varmat16_in_ga(.(T26, T27)) → U1_ga(T26, T27, varmat16_in_ga(T26))
varmat16_in_ga(.(T26, T27)) → U2_ga(T26, T27, varmat16_in_ga(T26))
varmat16_in_ga(.(black, T33)) → U4_ga(T33, varmat16_in_ga(T33))
varmat16_in_ga(.(white, T36)) → U5_ga(T36, varmat16_in_ga(T36))
U1_ga(T26, T27, varmat16_out_ga(T26)) → varmat16_out_ga(.(T26, T27))
U2_ga(T26, T27, varmat16_out_ga(T26)) → U3_ga(T26, T27, varmat16_in_ga(T27))
U4_ga(T33, varmat16_out_ga(T33)) → varmat16_out_ga(.(black, T33))
U5_ga(T36, varmat16_out_ga(T36)) → varmat16_out_ga(.(white, T36))
U3_ga(T26, T27, varmat16_out_ga(T27)) → varmat16_out_ga(.(T26, T27))
varmat16_in_ga(x0)
U1_ga(x0, x1, x2)
U2_ga(x0, x1, x2)
U4_ga(x0, x1)
U5_ga(x0, x1)
U3_ga(x0, x1, x2)
From the DPs we obtained the following set of size-change graphs:
shapes1_in_ga(.(T15, T16), T6) → U24_ga(T15, T16, T6, varmat16_in_ga(T15, X49))
varmat16_in_ga([], []) → varmat16_out_ga([], [])
varmat16_in_ga(.(T26, T27), .(X83, X84)) → U1_ga(T26, T27, X83, X84, varmat16_in_ga(T26, X83))
varmat16_in_ga(.(T26, T27), .(T28, X84)) → U2_ga(T26, T27, T28, X84, varmat16_in_ga(T26, T28))
varmat16_in_ga(.(black, T33), .(black, X103)) → U4_ga(T33, X103, varmat16_in_ga(T33, X103))
varmat16_in_ga(.(white, T36), .(w(X119), X120)) → U5_ga(T36, X119, X120, varmat16_in_ga(T36, X120))
U5_ga(T36, X119, X120, varmat16_out_ga(T36, X120)) → varmat16_out_ga(.(white, T36), .(w(X119), X120))
U4_ga(T33, X103, varmat16_out_ga(T33, X103)) → varmat16_out_ga(.(black, T33), .(black, X103))
U2_ga(T26, T27, T28, X84, varmat16_out_ga(T26, T28)) → U3_ga(T26, T27, T28, X84, varmat16_in_ga(T27, X84))
U3_ga(T26, T27, T28, X84, varmat16_out_ga(T27, X84)) → varmat16_out_ga(.(T26, T27), .(T28, X84))
U1_ga(T26, T27, X83, X84, varmat16_out_ga(T26, X83)) → varmat16_out_ga(.(T26, T27), .(X83, X84))
U24_ga(T15, T16, T6, varmat16_out_ga(T15, X49)) → shapes1_out_ga(.(T15, T16), T6)
shapes1_in_ga(.(T15, T16), T6) → U25_ga(T15, T16, T6, varmat16_in_ga(T15, T17))
U25_ga(T15, T16, T6, varmat16_out_ga(T15, T17)) → U26_ga(T15, T16, T6, p17_in_gaa(T16, X50, T17))
p17_in_gaa(T16, X50, T17) → U14_gaa(T16, X50, T17, varmat16_in_ga(T16, X50))
U14_gaa(T16, X50, T17, varmat16_out_ga(T16, X50)) → p17_out_gaa(T16, X50, T17)
p17_in_gaa(T16, T37, T17) → U15_gaa(T16, T37, T17, varmat16_in_ga(T16, T37))
U15_gaa(T16, T37, T17, varmat16_out_ga(T16, T37)) → U16_gaa(T16, T37, T17, unif_matrx37_in_aa(T17, T37))
unif_matrx37_in_aa(T56, .(T57, T58)) → U6_aa(T56, T57, T58, unif_lines43_in_aa(T56, T57))
unif_lines43_in_aa(.(T103, .(T104, T107)), .(T105, .(T106, T108))) → U9_aa(T103, T104, T107, T105, T106, T108, p50_in_aaaaaa(T103, .(T104, .(T105, .(T106, .(T103, .(T105, .(T104, .(T106, .(T103, .(T106, .(T104, .(T105, []))))))))))), T104, T107, T106, T108))
p50_in_aaaaaa(T103, T113, T104, T107, T106, T108) → U17_aaaaaa(T103, T113, T104, T107, T106, T108, unif_pairs51_in_aa(T103, T113))
unif_pairs51_in_aa(w(T140), .(w(T140), T141)) → U20_aa(T140, T141, unif_pairs60_in_a(T141))
unif_pairs60_in_a([]) → unif_pairs60_out_a([])
unif_pairs60_in_a(.(w(T158), .(w(T158), T159))) → U10_a(T158, T159, unif_pairs60_in_a(T159))
unif_pairs60_in_a(.(black, .(black, T160))) → U11_a(T160, unif_pairs60_in_a(T160))
unif_pairs60_in_a(.(black, .(w(T165), T166))) → U12_a(T165, T166, unif_pairs60_in_a(T166))
unif_pairs60_in_a(.(w(T169), .(black, T170))) → U13_a(T169, T170, unif_pairs60_in_a(T170))
U13_a(T169, T170, unif_pairs60_out_a(T170)) → unif_pairs60_out_a(.(w(T169), .(black, T170)))
U12_a(T165, T166, unif_pairs60_out_a(T166)) → unif_pairs60_out_a(.(black, .(w(T165), T166)))
U11_a(T160, unif_pairs60_out_a(T160)) → unif_pairs60_out_a(.(black, .(black, T160)))
U10_a(T158, T159, unif_pairs60_out_a(T159)) → unif_pairs60_out_a(.(w(T158), .(w(T158), T159)))
U20_aa(T140, T141, unif_pairs60_out_a(T141)) → unif_pairs51_out_aa(w(T140), .(w(T140), T141))
unif_pairs51_in_aa(black, .(black, T171)) → U21_aa(T171, unif_pairs60_in_a(T171))
U21_aa(T171, unif_pairs60_out_a(T171)) → unif_pairs51_out_aa(black, .(black, T171))
unif_pairs51_in_aa(black, .(w(T176), T177)) → U22_aa(T176, T177, unif_pairs60_in_a(T177))
U22_aa(T176, T177, unif_pairs60_out_a(T177)) → unif_pairs51_out_aa(black, .(w(T176), T177))
unif_pairs51_in_aa(w(T180), .(black, T181)) → U23_aa(T180, T181, unif_pairs60_in_a(T181))
U23_aa(T180, T181, unif_pairs60_out_a(T181)) → unif_pairs51_out_aa(w(T180), .(black, T181))
U17_aaaaaa(T103, T113, T104, T107, T106, T108, unif_pairs51_out_aa(T103, T113)) → p50_out_aaaaaa(T103, T113, T104, T107, T106, T108)
p50_in_aaaaaa(T103, T113, T117, T118, T119, T120) → U18_aaaaaa(T103, T113, T117, T118, T119, T120, unif_pairs51_in_aa(T103, T113))
U18_aaaaaa(T103, T113, T117, T118, T119, T120, unif_pairs51_out_aa(T103, T113)) → U19_aaaaaa(T103, T113, T117, T118, T119, T120, unif_lines43_in_aa(.(T117, T118), .(T119, T120)))
unif_lines43_in_aa(.(T192, []), .(T193, [])) → unif_lines43_out_aa(.(T192, []), .(T193, []))
U19_aaaaaa(T103, T113, T117, T118, T119, T120, unif_lines43_out_aa(.(T117, T118), .(T119, T120))) → p50_out_aaaaaa(T103, T113, T117, T118, T119, T120)
U9_aa(T103, T104, T107, T105, T106, T108, p50_out_aaaaaa(T103, .(T104, .(T105, .(T106, .(T103, .(T105, .(T104, .(T106, .(T103, .(T106, .(T104, .(T105, []))))))))))), T104, T107, T106, T108)) → unif_lines43_out_aa(.(T103, .(T104, T107)), .(T105, .(T106, T108)))
U6_aa(T56, T57, T58, unif_lines43_out_aa(T56, T57)) → unif_matrx37_out_aa(T56, .(T57, T58))
unif_matrx37_in_aa(T56, .(T65, T66)) → U7_aa(T56, T65, T66, unif_lines43_in_aa(T56, T65))
U7_aa(T56, T65, T66, unif_lines43_out_aa(T56, T65)) → U8_aa(T56, T65, T66, unif_matrx37_in_aa(T65, T66))
unif_matrx37_in_aa(T199, []) → unif_matrx37_out_aa(T199, [])
U8_aa(T56, T65, T66, unif_matrx37_out_aa(T65, T66)) → unif_matrx37_out_aa(T56, .(T65, T66))
U16_gaa(T16, T37, T17, unif_matrx37_out_aa(T17, T37)) → p17_out_gaa(T16, T37, T17)
U26_ga(T15, T16, T6, p17_out_gaa(T16, X50, T17)) → shapes1_out_ga(.(T15, T16), T6)
shapes1_in_ga(.(black, T204), T6) → U27_ga(T204, T6, p17_in_gag(T204, X293, black))
p17_in_gag(T16, X50, T17) → U14_gag(T16, X50, T17, varmat16_in_ga(T16, X50))
U14_gag(T16, X50, T17, varmat16_out_ga(T16, X50)) → p17_out_gag(T16, X50, T17)
p17_in_gag(T16, T37, T17) → U15_gag(T16, T37, T17, varmat16_in_ga(T16, T37))
U15_gag(T16, T37, T17, varmat16_out_ga(T16, T37)) → U16_gag(T16, T37, T17, unif_matrx37_in_ga(T17, T37))
unif_matrx37_in_ga(T56, .(T57, T58)) → U6_ga(T56, T57, T58, unif_lines43_in_ga(T56, T57))
unif_lines43_in_ga(.(T103, .(T104, T107)), .(T105, .(T106, T108))) → U9_ga(T103, T104, T107, T105, T106, T108, p50_in_gaggaa(T103, .(T104, .(T105, .(T106, .(T103, .(T105, .(T104, .(T106, .(T103, .(T106, .(T104, .(T105, []))))))))))), T104, T107, T106, T108))
p50_in_gaggaa(T103, T113, T104, T107, T106, T108) → U17_gaggaa(T103, T113, T104, T107, T106, T108, unif_pairs51_in_ga(T103, T113))
unif_pairs51_in_ga(w(T140), .(w(T140), T141)) → U20_ga(T140, T141, unif_pairs60_in_a(T141))
U20_ga(T140, T141, unif_pairs60_out_a(T141)) → unif_pairs51_out_ga(w(T140), .(w(T140), T141))
unif_pairs51_in_ga(black, .(black, T171)) → U21_ga(T171, unif_pairs60_in_a(T171))
U21_ga(T171, unif_pairs60_out_a(T171)) → unif_pairs51_out_ga(black, .(black, T171))
unif_pairs51_in_ga(black, .(w(T176), T177)) → U22_ga(T176, T177, unif_pairs60_in_a(T177))
U22_ga(T176, T177, unif_pairs60_out_a(T177)) → unif_pairs51_out_ga(black, .(w(T176), T177))
unif_pairs51_in_ga(w(T180), .(black, T181)) → U23_ga(T180, T181, unif_pairs60_in_a(T181))
U23_ga(T180, T181, unif_pairs60_out_a(T181)) → unif_pairs51_out_ga(w(T180), .(black, T181))
U17_gaggaa(T103, T113, T104, T107, T106, T108, unif_pairs51_out_ga(T103, T113)) → p50_out_gaggaa(T103, T113, T104, T107, T106, T108)
p50_in_gaggaa(T103, T113, T117, T118, T119, T120) → U18_gaggaa(T103, T113, T117, T118, T119, T120, unif_pairs51_in_ga(T103, T113))
U18_gaggaa(T103, T113, T117, T118, T119, T120, unif_pairs51_out_ga(T103, T113)) → U19_gaggaa(T103, T113, T117, T118, T119, T120, unif_lines43_in_ga(.(T117, T118), .(T119, T120)))
unif_lines43_in_ga(.(T192, []), .(T193, [])) → unif_lines43_out_ga(.(T192, []), .(T193, []))
U19_gaggaa(T103, T113, T117, T118, T119, T120, unif_lines43_out_ga(.(T117, T118), .(T119, T120))) → p50_out_gaggaa(T103, T113, T117, T118, T119, T120)
U9_ga(T103, T104, T107, T105, T106, T108, p50_out_gaggaa(T103, .(T104, .(T105, .(T106, .(T103, .(T105, .(T104, .(T106, .(T103, .(T106, .(T104, .(T105, []))))))))))), T104, T107, T106, T108)) → unif_lines43_out_ga(.(T103, .(T104, T107)), .(T105, .(T106, T108)))
U6_ga(T56, T57, T58, unif_lines43_out_ga(T56, T57)) → unif_matrx37_out_ga(T56, .(T57, T58))
unif_matrx37_in_ga(T56, .(T65, T66)) → U7_ga(T56, T65, T66, unif_lines43_in_ga(T56, T65))
U7_ga(T56, T65, T66, unif_lines43_out_ga(T56, T65)) → U8_ga(T56, T65, T66, unif_matrx37_in_aa(T65, T66))
U8_ga(T56, T65, T66, unif_matrx37_out_aa(T65, T66)) → unif_matrx37_out_ga(T56, .(T65, T66))
unif_matrx37_in_ga(T199, []) → unif_matrx37_out_ga(T199, [])
U16_gag(T16, T37, T17, unif_matrx37_out_ga(T17, T37)) → p17_out_gag(T16, T37, T17)
U27_ga(T204, T6, p17_out_gag(T204, X293, black)) → shapes1_out_ga(.(black, T204), T6)
shapes1_in_ga(.(white, T207), T6) → U28_ga(T207, T6, p17_in_gag(T207, X310, w(X309)))
U28_ga(T207, T6, p17_out_gag(T207, X310, w(X309))) → shapes1_out_ga(.(white, T207), T6)
Infinitary Constructor Rewriting Termination of PiTRS implies Termination of Prolog
shapes1_in_ga(.(T15, T16), T6) → U24_ga(T15, T16, T6, varmat16_in_ga(T15, X49))
varmat16_in_ga([], []) → varmat16_out_ga([], [])
varmat16_in_ga(.(T26, T27), .(X83, X84)) → U1_ga(T26, T27, X83, X84, varmat16_in_ga(T26, X83))
varmat16_in_ga(.(T26, T27), .(T28, X84)) → U2_ga(T26, T27, T28, X84, varmat16_in_ga(T26, T28))
varmat16_in_ga(.(black, T33), .(black, X103)) → U4_ga(T33, X103, varmat16_in_ga(T33, X103))
varmat16_in_ga(.(white, T36), .(w(X119), X120)) → U5_ga(T36, X119, X120, varmat16_in_ga(T36, X120))
U5_ga(T36, X119, X120, varmat16_out_ga(T36, X120)) → varmat16_out_ga(.(white, T36), .(w(X119), X120))
U4_ga(T33, X103, varmat16_out_ga(T33, X103)) → varmat16_out_ga(.(black, T33), .(black, X103))
U2_ga(T26, T27, T28, X84, varmat16_out_ga(T26, T28)) → U3_ga(T26, T27, T28, X84, varmat16_in_ga(T27, X84))
U3_ga(T26, T27, T28, X84, varmat16_out_ga(T27, X84)) → varmat16_out_ga(.(T26, T27), .(T28, X84))
U1_ga(T26, T27, X83, X84, varmat16_out_ga(T26, X83)) → varmat16_out_ga(.(T26, T27), .(X83, X84))
U24_ga(T15, T16, T6, varmat16_out_ga(T15, X49)) → shapes1_out_ga(.(T15, T16), T6)
shapes1_in_ga(.(T15, T16), T6) → U25_ga(T15, T16, T6, varmat16_in_ga(T15, T17))
U25_ga(T15, T16, T6, varmat16_out_ga(T15, T17)) → U26_ga(T15, T16, T6, p17_in_gaa(T16, X50, T17))
p17_in_gaa(T16, X50, T17) → U14_gaa(T16, X50, T17, varmat16_in_ga(T16, X50))
U14_gaa(T16, X50, T17, varmat16_out_ga(T16, X50)) → p17_out_gaa(T16, X50, T17)
p17_in_gaa(T16, T37, T17) → U15_gaa(T16, T37, T17, varmat16_in_ga(T16, T37))
U15_gaa(T16, T37, T17, varmat16_out_ga(T16, T37)) → U16_gaa(T16, T37, T17, unif_matrx37_in_aa(T17, T37))
unif_matrx37_in_aa(T56, .(T57, T58)) → U6_aa(T56, T57, T58, unif_lines43_in_aa(T56, T57))
unif_lines43_in_aa(.(T103, .(T104, T107)), .(T105, .(T106, T108))) → U9_aa(T103, T104, T107, T105, T106, T108, p50_in_aaaaaa(T103, .(T104, .(T105, .(T106, .(T103, .(T105, .(T104, .(T106, .(T103, .(T106, .(T104, .(T105, []))))))))))), T104, T107, T106, T108))
p50_in_aaaaaa(T103, T113, T104, T107, T106, T108) → U17_aaaaaa(T103, T113, T104, T107, T106, T108, unif_pairs51_in_aa(T103, T113))
unif_pairs51_in_aa(w(T140), .(w(T140), T141)) → U20_aa(T140, T141, unif_pairs60_in_a(T141))
unif_pairs60_in_a([]) → unif_pairs60_out_a([])
unif_pairs60_in_a(.(w(T158), .(w(T158), T159))) → U10_a(T158, T159, unif_pairs60_in_a(T159))
unif_pairs60_in_a(.(black, .(black, T160))) → U11_a(T160, unif_pairs60_in_a(T160))
unif_pairs60_in_a(.(black, .(w(T165), T166))) → U12_a(T165, T166, unif_pairs60_in_a(T166))
unif_pairs60_in_a(.(w(T169), .(black, T170))) → U13_a(T169, T170, unif_pairs60_in_a(T170))
U13_a(T169, T170, unif_pairs60_out_a(T170)) → unif_pairs60_out_a(.(w(T169), .(black, T170)))
U12_a(T165, T166, unif_pairs60_out_a(T166)) → unif_pairs60_out_a(.(black, .(w(T165), T166)))
U11_a(T160, unif_pairs60_out_a(T160)) → unif_pairs60_out_a(.(black, .(black, T160)))
U10_a(T158, T159, unif_pairs60_out_a(T159)) → unif_pairs60_out_a(.(w(T158), .(w(T158), T159)))
U20_aa(T140, T141, unif_pairs60_out_a(T141)) → unif_pairs51_out_aa(w(T140), .(w(T140), T141))
unif_pairs51_in_aa(black, .(black, T171)) → U21_aa(T171, unif_pairs60_in_a(T171))
U21_aa(T171, unif_pairs60_out_a(T171)) → unif_pairs51_out_aa(black, .(black, T171))
unif_pairs51_in_aa(black, .(w(T176), T177)) → U22_aa(T176, T177, unif_pairs60_in_a(T177))
U22_aa(T176, T177, unif_pairs60_out_a(T177)) → unif_pairs51_out_aa(black, .(w(T176), T177))
unif_pairs51_in_aa(w(T180), .(black, T181)) → U23_aa(T180, T181, unif_pairs60_in_a(T181))
U23_aa(T180, T181, unif_pairs60_out_a(T181)) → unif_pairs51_out_aa(w(T180), .(black, T181))
U17_aaaaaa(T103, T113, T104, T107, T106, T108, unif_pairs51_out_aa(T103, T113)) → p50_out_aaaaaa(T103, T113, T104, T107, T106, T108)
p50_in_aaaaaa(T103, T113, T117, T118, T119, T120) → U18_aaaaaa(T103, T113, T117, T118, T119, T120, unif_pairs51_in_aa(T103, T113))
U18_aaaaaa(T103, T113, T117, T118, T119, T120, unif_pairs51_out_aa(T103, T113)) → U19_aaaaaa(T103, T113, T117, T118, T119, T120, unif_lines43_in_aa(.(T117, T118), .(T119, T120)))
unif_lines43_in_aa(.(T192, []), .(T193, [])) → unif_lines43_out_aa(.(T192, []), .(T193, []))
U19_aaaaaa(T103, T113, T117, T118, T119, T120, unif_lines43_out_aa(.(T117, T118), .(T119, T120))) → p50_out_aaaaaa(T103, T113, T117, T118, T119, T120)
U9_aa(T103, T104, T107, T105, T106, T108, p50_out_aaaaaa(T103, .(T104, .(T105, .(T106, .(T103, .(T105, .(T104, .(T106, .(T103, .(T106, .(T104, .(T105, []))))))))))), T104, T107, T106, T108)) → unif_lines43_out_aa(.(T103, .(T104, T107)), .(T105, .(T106, T108)))
U6_aa(T56, T57, T58, unif_lines43_out_aa(T56, T57)) → unif_matrx37_out_aa(T56, .(T57, T58))
unif_matrx37_in_aa(T56, .(T65, T66)) → U7_aa(T56, T65, T66, unif_lines43_in_aa(T56, T65))
U7_aa(T56, T65, T66, unif_lines43_out_aa(T56, T65)) → U8_aa(T56, T65, T66, unif_matrx37_in_aa(T65, T66))
unif_matrx37_in_aa(T199, []) → unif_matrx37_out_aa(T199, [])
U8_aa(T56, T65, T66, unif_matrx37_out_aa(T65, T66)) → unif_matrx37_out_aa(T56, .(T65, T66))
U16_gaa(T16, T37, T17, unif_matrx37_out_aa(T17, T37)) → p17_out_gaa(T16, T37, T17)
U26_ga(T15, T16, T6, p17_out_gaa(T16, X50, T17)) → shapes1_out_ga(.(T15, T16), T6)
shapes1_in_ga(.(black, T204), T6) → U27_ga(T204, T6, p17_in_gag(T204, X293, black))
p17_in_gag(T16, X50, T17) → U14_gag(T16, X50, T17, varmat16_in_ga(T16, X50))
U14_gag(T16, X50, T17, varmat16_out_ga(T16, X50)) → p17_out_gag(T16, X50, T17)
p17_in_gag(T16, T37, T17) → U15_gag(T16, T37, T17, varmat16_in_ga(T16, T37))
U15_gag(T16, T37, T17, varmat16_out_ga(T16, T37)) → U16_gag(T16, T37, T17, unif_matrx37_in_ga(T17, T37))
unif_matrx37_in_ga(T56, .(T57, T58)) → U6_ga(T56, T57, T58, unif_lines43_in_ga(T56, T57))
unif_lines43_in_ga(.(T103, .(T104, T107)), .(T105, .(T106, T108))) → U9_ga(T103, T104, T107, T105, T106, T108, p50_in_gaggaa(T103, .(T104, .(T105, .(T106, .(T103, .(T105, .(T104, .(T106, .(T103, .(T106, .(T104, .(T105, []))))))))))), T104, T107, T106, T108))
p50_in_gaggaa(T103, T113, T104, T107, T106, T108) → U17_gaggaa(T103, T113, T104, T107, T106, T108, unif_pairs51_in_ga(T103, T113))
unif_pairs51_in_ga(w(T140), .(w(T140), T141)) → U20_ga(T140, T141, unif_pairs60_in_a(T141))
U20_ga(T140, T141, unif_pairs60_out_a(T141)) → unif_pairs51_out_ga(w(T140), .(w(T140), T141))
unif_pairs51_in_ga(black, .(black, T171)) → U21_ga(T171, unif_pairs60_in_a(T171))
U21_ga(T171, unif_pairs60_out_a(T171)) → unif_pairs51_out_ga(black, .(black, T171))
unif_pairs51_in_ga(black, .(w(T176), T177)) → U22_ga(T176, T177, unif_pairs60_in_a(T177))
U22_ga(T176, T177, unif_pairs60_out_a(T177)) → unif_pairs51_out_ga(black, .(w(T176), T177))
unif_pairs51_in_ga(w(T180), .(black, T181)) → U23_ga(T180, T181, unif_pairs60_in_a(T181))
U23_ga(T180, T181, unif_pairs60_out_a(T181)) → unif_pairs51_out_ga(w(T180), .(black, T181))
U17_gaggaa(T103, T113, T104, T107, T106, T108, unif_pairs51_out_ga(T103, T113)) → p50_out_gaggaa(T103, T113, T104, T107, T106, T108)
p50_in_gaggaa(T103, T113, T117, T118, T119, T120) → U18_gaggaa(T103, T113, T117, T118, T119, T120, unif_pairs51_in_ga(T103, T113))
U18_gaggaa(T103, T113, T117, T118, T119, T120, unif_pairs51_out_ga(T103, T113)) → U19_gaggaa(T103, T113, T117, T118, T119, T120, unif_lines43_in_ga(.(T117, T118), .(T119, T120)))
unif_lines43_in_ga(.(T192, []), .(T193, [])) → unif_lines43_out_ga(.(T192, []), .(T193, []))
U19_gaggaa(T103, T113, T117, T118, T119, T120, unif_lines43_out_ga(.(T117, T118), .(T119, T120))) → p50_out_gaggaa(T103, T113, T117, T118, T119, T120)
U9_ga(T103, T104, T107, T105, T106, T108, p50_out_gaggaa(T103, .(T104, .(T105, .(T106, .(T103, .(T105, .(T104, .(T106, .(T103, .(T106, .(T104, .(T105, []))))))))))), T104, T107, T106, T108)) → unif_lines43_out_ga(.(T103, .(T104, T107)), .(T105, .(T106, T108)))
U6_ga(T56, T57, T58, unif_lines43_out_ga(T56, T57)) → unif_matrx37_out_ga(T56, .(T57, T58))
unif_matrx37_in_ga(T56, .(T65, T66)) → U7_ga(T56, T65, T66, unif_lines43_in_ga(T56, T65))
U7_ga(T56, T65, T66, unif_lines43_out_ga(T56, T65)) → U8_ga(T56, T65, T66, unif_matrx37_in_aa(T65, T66))
U8_ga(T56, T65, T66, unif_matrx37_out_aa(T65, T66)) → unif_matrx37_out_ga(T56, .(T65, T66))
unif_matrx37_in_ga(T199, []) → unif_matrx37_out_ga(T199, [])
U16_gag(T16, T37, T17, unif_matrx37_out_ga(T17, T37)) → p17_out_gag(T16, T37, T17)
U27_ga(T204, T6, p17_out_gag(T204, X293, black)) → shapes1_out_ga(.(black, T204), T6)
shapes1_in_ga(.(white, T207), T6) → U28_ga(T207, T6, p17_in_gag(T207, X310, w(X309)))
U28_ga(T207, T6, p17_out_gag(T207, X310, w(X309))) → shapes1_out_ga(.(white, T207), T6)
SHAPES1_IN_GA(.(T15, T16), T6) → U24_GA(T15, T16, T6, varmat16_in_ga(T15, X49))
SHAPES1_IN_GA(.(T15, T16), T6) → VARMAT16_IN_GA(T15, X49)
VARMAT16_IN_GA(.(T26, T27), .(X83, X84)) → U1_GA(T26, T27, X83, X84, varmat16_in_ga(T26, X83))
VARMAT16_IN_GA(.(T26, T27), .(X83, X84)) → VARMAT16_IN_GA(T26, X83)
VARMAT16_IN_GA(.(T26, T27), .(T28, X84)) → U2_GA(T26, T27, T28, X84, varmat16_in_ga(T26, T28))
VARMAT16_IN_GA(.(black, T33), .(black, X103)) → U4_GA(T33, X103, varmat16_in_ga(T33, X103))
VARMAT16_IN_GA(.(black, T33), .(black, X103)) → VARMAT16_IN_GA(T33, X103)
VARMAT16_IN_GA(.(white, T36), .(w(X119), X120)) → U5_GA(T36, X119, X120, varmat16_in_ga(T36, X120))
VARMAT16_IN_GA(.(white, T36), .(w(X119), X120)) → VARMAT16_IN_GA(T36, X120)
U2_GA(T26, T27, T28, X84, varmat16_out_ga(T26, T28)) → U3_GA(T26, T27, T28, X84, varmat16_in_ga(T27, X84))
U2_GA(T26, T27, T28, X84, varmat16_out_ga(T26, T28)) → VARMAT16_IN_GA(T27, X84)
SHAPES1_IN_GA(.(T15, T16), T6) → U25_GA(T15, T16, T6, varmat16_in_ga(T15, T17))
U25_GA(T15, T16, T6, varmat16_out_ga(T15, T17)) → U26_GA(T15, T16, T6, p17_in_gaa(T16, X50, T17))
U25_GA(T15, T16, T6, varmat16_out_ga(T15, T17)) → P17_IN_GAA(T16, X50, T17)
P17_IN_GAA(T16, X50, T17) → U14_GAA(T16, X50, T17, varmat16_in_ga(T16, X50))
P17_IN_GAA(T16, X50, T17) → VARMAT16_IN_GA(T16, X50)
P17_IN_GAA(T16, T37, T17) → U15_GAA(T16, T37, T17, varmat16_in_ga(T16, T37))
U15_GAA(T16, T37, T17, varmat16_out_ga(T16, T37)) → U16_GAA(T16, T37, T17, unif_matrx37_in_aa(T17, T37))
U15_GAA(T16, T37, T17, varmat16_out_ga(T16, T37)) → UNIF_MATRX37_IN_AA(T17, T37)
UNIF_MATRX37_IN_AA(T56, .(T57, T58)) → U6_AA(T56, T57, T58, unif_lines43_in_aa(T56, T57))
UNIF_MATRX37_IN_AA(T56, .(T57, T58)) → UNIF_LINES43_IN_AA(T56, T57)
UNIF_LINES43_IN_AA(.(T103, .(T104, T107)), .(T105, .(T106, T108))) → U9_AA(T103, T104, T107, T105, T106, T108, p50_in_aaaaaa(T103, .(T104, .(T105, .(T106, .(T103, .(T105, .(T104, .(T106, .(T103, .(T106, .(T104, .(T105, []))))))))))), T104, T107, T106, T108))
UNIF_LINES43_IN_AA(.(T103, .(T104, T107)), .(T105, .(T106, T108))) → P50_IN_AAAAAA(T103, .(T104, .(T105, .(T106, .(T103, .(T105, .(T104, .(T106, .(T103, .(T106, .(T104, .(T105, []))))))))))), T104, T107, T106, T108)
P50_IN_AAAAAA(T103, T113, T104, T107, T106, T108) → U17_AAAAAA(T103, T113, T104, T107, T106, T108, unif_pairs51_in_aa(T103, T113))
P50_IN_AAAAAA(T103, T113, T104, T107, T106, T108) → UNIF_PAIRS51_IN_AA(T103, T113)
UNIF_PAIRS51_IN_AA(w(T140), .(w(T140), T141)) → U20_AA(T140, T141, unif_pairs60_in_a(T141))
UNIF_PAIRS51_IN_AA(w(T140), .(w(T140), T141)) → UNIF_PAIRS60_IN_A(T141)
UNIF_PAIRS60_IN_A(.(w(T158), .(w(T158), T159))) → U10_A(T158, T159, unif_pairs60_in_a(T159))
UNIF_PAIRS60_IN_A(.(w(T158), .(w(T158), T159))) → UNIF_PAIRS60_IN_A(T159)
UNIF_PAIRS60_IN_A(.(black, .(black, T160))) → U11_A(T160, unif_pairs60_in_a(T160))
UNIF_PAIRS60_IN_A(.(black, .(black, T160))) → UNIF_PAIRS60_IN_A(T160)
UNIF_PAIRS60_IN_A(.(black, .(w(T165), T166))) → U12_A(T165, T166, unif_pairs60_in_a(T166))
UNIF_PAIRS60_IN_A(.(black, .(w(T165), T166))) → UNIF_PAIRS60_IN_A(T166)
UNIF_PAIRS60_IN_A(.(w(T169), .(black, T170))) → U13_A(T169, T170, unif_pairs60_in_a(T170))
UNIF_PAIRS60_IN_A(.(w(T169), .(black, T170))) → UNIF_PAIRS60_IN_A(T170)
UNIF_PAIRS51_IN_AA(black, .(black, T171)) → U21_AA(T171, unif_pairs60_in_a(T171))
UNIF_PAIRS51_IN_AA(black, .(black, T171)) → UNIF_PAIRS60_IN_A(T171)
UNIF_PAIRS51_IN_AA(black, .(w(T176), T177)) → U22_AA(T176, T177, unif_pairs60_in_a(T177))
UNIF_PAIRS51_IN_AA(black, .(w(T176), T177)) → UNIF_PAIRS60_IN_A(T177)
UNIF_PAIRS51_IN_AA(w(T180), .(black, T181)) → U23_AA(T180, T181, unif_pairs60_in_a(T181))
UNIF_PAIRS51_IN_AA(w(T180), .(black, T181)) → UNIF_PAIRS60_IN_A(T181)
P50_IN_AAAAAA(T103, T113, T117, T118, T119, T120) → U18_AAAAAA(T103, T113, T117, T118, T119, T120, unif_pairs51_in_aa(T103, T113))
U18_AAAAAA(T103, T113, T117, T118, T119, T120, unif_pairs51_out_aa(T103, T113)) → U19_AAAAAA(T103, T113, T117, T118, T119, T120, unif_lines43_in_aa(.(T117, T118), .(T119, T120)))
U18_AAAAAA(T103, T113, T117, T118, T119, T120, unif_pairs51_out_aa(T103, T113)) → UNIF_LINES43_IN_AA(.(T117, T118), .(T119, T120))
UNIF_MATRX37_IN_AA(T56, .(T65, T66)) → U7_AA(T56, T65, T66, unif_lines43_in_aa(T56, T65))
U7_AA(T56, T65, T66, unif_lines43_out_aa(T56, T65)) → U8_AA(T56, T65, T66, unif_matrx37_in_aa(T65, T66))
U7_AA(T56, T65, T66, unif_lines43_out_aa(T56, T65)) → UNIF_MATRX37_IN_AA(T65, T66)
SHAPES1_IN_GA(.(black, T204), T6) → U27_GA(T204, T6, p17_in_gag(T204, X293, black))
SHAPES1_IN_GA(.(black, T204), T6) → P17_IN_GAG(T204, X293, black)
P17_IN_GAG(T16, X50, T17) → U14_GAG(T16, X50, T17, varmat16_in_ga(T16, X50))
P17_IN_GAG(T16, X50, T17) → VARMAT16_IN_GA(T16, X50)
P17_IN_GAG(T16, T37, T17) → U15_GAG(T16, T37, T17, varmat16_in_ga(T16, T37))
U15_GAG(T16, T37, T17, varmat16_out_ga(T16, T37)) → U16_GAG(T16, T37, T17, unif_matrx37_in_ga(T17, T37))
U15_GAG(T16, T37, T17, varmat16_out_ga(T16, T37)) → UNIF_MATRX37_IN_GA(T17, T37)
UNIF_MATRX37_IN_GA(T56, .(T57, T58)) → U6_GA(T56, T57, T58, unif_lines43_in_ga(T56, T57))
UNIF_MATRX37_IN_GA(T56, .(T57, T58)) → UNIF_LINES43_IN_GA(T56, T57)
UNIF_LINES43_IN_GA(.(T103, .(T104, T107)), .(T105, .(T106, T108))) → U9_GA(T103, T104, T107, T105, T106, T108, p50_in_gaggaa(T103, .(T104, .(T105, .(T106, .(T103, .(T105, .(T104, .(T106, .(T103, .(T106, .(T104, .(T105, []))))))))))), T104, T107, T106, T108))
UNIF_LINES43_IN_GA(.(T103, .(T104, T107)), .(T105, .(T106, T108))) → P50_IN_GAGGAA(T103, .(T104, .(T105, .(T106, .(T103, .(T105, .(T104, .(T106, .(T103, .(T106, .(T104, .(T105, []))))))))))), T104, T107, T106, T108)
P50_IN_GAGGAA(T103, T113, T104, T107, T106, T108) → U17_GAGGAA(T103, T113, T104, T107, T106, T108, unif_pairs51_in_ga(T103, T113))
P50_IN_GAGGAA(T103, T113, T104, T107, T106, T108) → UNIF_PAIRS51_IN_GA(T103, T113)
UNIF_PAIRS51_IN_GA(w(T140), .(w(T140), T141)) → U20_GA(T140, T141, unif_pairs60_in_a(T141))
UNIF_PAIRS51_IN_GA(w(T140), .(w(T140), T141)) → UNIF_PAIRS60_IN_A(T141)
UNIF_PAIRS51_IN_GA(black, .(black, T171)) → U21_GA(T171, unif_pairs60_in_a(T171))
UNIF_PAIRS51_IN_GA(black, .(black, T171)) → UNIF_PAIRS60_IN_A(T171)
UNIF_PAIRS51_IN_GA(black, .(w(T176), T177)) → U22_GA(T176, T177, unif_pairs60_in_a(T177))
UNIF_PAIRS51_IN_GA(black, .(w(T176), T177)) → UNIF_PAIRS60_IN_A(T177)
UNIF_PAIRS51_IN_GA(w(T180), .(black, T181)) → U23_GA(T180, T181, unif_pairs60_in_a(T181))
UNIF_PAIRS51_IN_GA(w(T180), .(black, T181)) → UNIF_PAIRS60_IN_A(T181)
P50_IN_GAGGAA(T103, T113, T117, T118, T119, T120) → U18_GAGGAA(T103, T113, T117, T118, T119, T120, unif_pairs51_in_ga(T103, T113))
U18_GAGGAA(T103, T113, T117, T118, T119, T120, unif_pairs51_out_ga(T103, T113)) → U19_GAGGAA(T103, T113, T117, T118, T119, T120, unif_lines43_in_ga(.(T117, T118), .(T119, T120)))
U18_GAGGAA(T103, T113, T117, T118, T119, T120, unif_pairs51_out_ga(T103, T113)) → UNIF_LINES43_IN_GA(.(T117, T118), .(T119, T120))
UNIF_MATRX37_IN_GA(T56, .(T65, T66)) → U7_GA(T56, T65, T66, unif_lines43_in_ga(T56, T65))
U7_GA(T56, T65, T66, unif_lines43_out_ga(T56, T65)) → U8_GA(T56, T65, T66, unif_matrx37_in_aa(T65, T66))
U7_GA(T56, T65, T66, unif_lines43_out_ga(T56, T65)) → UNIF_MATRX37_IN_AA(T65, T66)
SHAPES1_IN_GA(.(white, T207), T6) → U28_GA(T207, T6, p17_in_gag(T207, X310, w(X309)))
SHAPES1_IN_GA(.(white, T207), T6) → P17_IN_GAG(T207, X310, w(X309))
shapes1_in_ga(.(T15, T16), T6) → U24_ga(T15, T16, T6, varmat16_in_ga(T15, X49))
varmat16_in_ga([], []) → varmat16_out_ga([], [])
varmat16_in_ga(.(T26, T27), .(X83, X84)) → U1_ga(T26, T27, X83, X84, varmat16_in_ga(T26, X83))
varmat16_in_ga(.(T26, T27), .(T28, X84)) → U2_ga(T26, T27, T28, X84, varmat16_in_ga(T26, T28))
varmat16_in_ga(.(black, T33), .(black, X103)) → U4_ga(T33, X103, varmat16_in_ga(T33, X103))
varmat16_in_ga(.(white, T36), .(w(X119), X120)) → U5_ga(T36, X119, X120, varmat16_in_ga(T36, X120))
U5_ga(T36, X119, X120, varmat16_out_ga(T36, X120)) → varmat16_out_ga(.(white, T36), .(w(X119), X120))
U4_ga(T33, X103, varmat16_out_ga(T33, X103)) → varmat16_out_ga(.(black, T33), .(black, X103))
U2_ga(T26, T27, T28, X84, varmat16_out_ga(T26, T28)) → U3_ga(T26, T27, T28, X84, varmat16_in_ga(T27, X84))
U3_ga(T26, T27, T28, X84, varmat16_out_ga(T27, X84)) → varmat16_out_ga(.(T26, T27), .(T28, X84))
U1_ga(T26, T27, X83, X84, varmat16_out_ga(T26, X83)) → varmat16_out_ga(.(T26, T27), .(X83, X84))
U24_ga(T15, T16, T6, varmat16_out_ga(T15, X49)) → shapes1_out_ga(.(T15, T16), T6)
shapes1_in_ga(.(T15, T16), T6) → U25_ga(T15, T16, T6, varmat16_in_ga(T15, T17))
U25_ga(T15, T16, T6, varmat16_out_ga(T15, T17)) → U26_ga(T15, T16, T6, p17_in_gaa(T16, X50, T17))
p17_in_gaa(T16, X50, T17) → U14_gaa(T16, X50, T17, varmat16_in_ga(T16, X50))
U14_gaa(T16, X50, T17, varmat16_out_ga(T16, X50)) → p17_out_gaa(T16, X50, T17)
p17_in_gaa(T16, T37, T17) → U15_gaa(T16, T37, T17, varmat16_in_ga(T16, T37))
U15_gaa(T16, T37, T17, varmat16_out_ga(T16, T37)) → U16_gaa(T16, T37, T17, unif_matrx37_in_aa(T17, T37))
unif_matrx37_in_aa(T56, .(T57, T58)) → U6_aa(T56, T57, T58, unif_lines43_in_aa(T56, T57))
unif_lines43_in_aa(.(T103, .(T104, T107)), .(T105, .(T106, T108))) → U9_aa(T103, T104, T107, T105, T106, T108, p50_in_aaaaaa(T103, .(T104, .(T105, .(T106, .(T103, .(T105, .(T104, .(T106, .(T103, .(T106, .(T104, .(T105, []))))))))))), T104, T107, T106, T108))
p50_in_aaaaaa(T103, T113, T104, T107, T106, T108) → U17_aaaaaa(T103, T113, T104, T107, T106, T108, unif_pairs51_in_aa(T103, T113))
unif_pairs51_in_aa(w(T140), .(w(T140), T141)) → U20_aa(T140, T141, unif_pairs60_in_a(T141))
unif_pairs60_in_a([]) → unif_pairs60_out_a([])
unif_pairs60_in_a(.(w(T158), .(w(T158), T159))) → U10_a(T158, T159, unif_pairs60_in_a(T159))
unif_pairs60_in_a(.(black, .(black, T160))) → U11_a(T160, unif_pairs60_in_a(T160))
unif_pairs60_in_a(.(black, .(w(T165), T166))) → U12_a(T165, T166, unif_pairs60_in_a(T166))
unif_pairs60_in_a(.(w(T169), .(black, T170))) → U13_a(T169, T170, unif_pairs60_in_a(T170))
U13_a(T169, T170, unif_pairs60_out_a(T170)) → unif_pairs60_out_a(.(w(T169), .(black, T170)))
U12_a(T165, T166, unif_pairs60_out_a(T166)) → unif_pairs60_out_a(.(black, .(w(T165), T166)))
U11_a(T160, unif_pairs60_out_a(T160)) → unif_pairs60_out_a(.(black, .(black, T160)))
U10_a(T158, T159, unif_pairs60_out_a(T159)) → unif_pairs60_out_a(.(w(T158), .(w(T158), T159)))
U20_aa(T140, T141, unif_pairs60_out_a(T141)) → unif_pairs51_out_aa(w(T140), .(w(T140), T141))
unif_pairs51_in_aa(black, .(black, T171)) → U21_aa(T171, unif_pairs60_in_a(T171))
U21_aa(T171, unif_pairs60_out_a(T171)) → unif_pairs51_out_aa(black, .(black, T171))
unif_pairs51_in_aa(black, .(w(T176), T177)) → U22_aa(T176, T177, unif_pairs60_in_a(T177))
U22_aa(T176, T177, unif_pairs60_out_a(T177)) → unif_pairs51_out_aa(black, .(w(T176), T177))
unif_pairs51_in_aa(w(T180), .(black, T181)) → U23_aa(T180, T181, unif_pairs60_in_a(T181))
U23_aa(T180, T181, unif_pairs60_out_a(T181)) → unif_pairs51_out_aa(w(T180), .(black, T181))
U17_aaaaaa(T103, T113, T104, T107, T106, T108, unif_pairs51_out_aa(T103, T113)) → p50_out_aaaaaa(T103, T113, T104, T107, T106, T108)
p50_in_aaaaaa(T103, T113, T117, T118, T119, T120) → U18_aaaaaa(T103, T113, T117, T118, T119, T120, unif_pairs51_in_aa(T103, T113))
U18_aaaaaa(T103, T113, T117, T118, T119, T120, unif_pairs51_out_aa(T103, T113)) → U19_aaaaaa(T103, T113, T117, T118, T119, T120, unif_lines43_in_aa(.(T117, T118), .(T119, T120)))
unif_lines43_in_aa(.(T192, []), .(T193, [])) → unif_lines43_out_aa(.(T192, []), .(T193, []))
U19_aaaaaa(T103, T113, T117, T118, T119, T120, unif_lines43_out_aa(.(T117, T118), .(T119, T120))) → p50_out_aaaaaa(T103, T113, T117, T118, T119, T120)
U9_aa(T103, T104, T107, T105, T106, T108, p50_out_aaaaaa(T103, .(T104, .(T105, .(T106, .(T103, .(T105, .(T104, .(T106, .(T103, .(T106, .(T104, .(T105, []))))))))))), T104, T107, T106, T108)) → unif_lines43_out_aa(.(T103, .(T104, T107)), .(T105, .(T106, T108)))
U6_aa(T56, T57, T58, unif_lines43_out_aa(T56, T57)) → unif_matrx37_out_aa(T56, .(T57, T58))
unif_matrx37_in_aa(T56, .(T65, T66)) → U7_aa(T56, T65, T66, unif_lines43_in_aa(T56, T65))
U7_aa(T56, T65, T66, unif_lines43_out_aa(T56, T65)) → U8_aa(T56, T65, T66, unif_matrx37_in_aa(T65, T66))
unif_matrx37_in_aa(T199, []) → unif_matrx37_out_aa(T199, [])
U8_aa(T56, T65, T66, unif_matrx37_out_aa(T65, T66)) → unif_matrx37_out_aa(T56, .(T65, T66))
U16_gaa(T16, T37, T17, unif_matrx37_out_aa(T17, T37)) → p17_out_gaa(T16, T37, T17)
U26_ga(T15, T16, T6, p17_out_gaa(T16, X50, T17)) → shapes1_out_ga(.(T15, T16), T6)
shapes1_in_ga(.(black, T204), T6) → U27_ga(T204, T6, p17_in_gag(T204, X293, black))
p17_in_gag(T16, X50, T17) → U14_gag(T16, X50, T17, varmat16_in_ga(T16, X50))
U14_gag(T16, X50, T17, varmat16_out_ga(T16, X50)) → p17_out_gag(T16, X50, T17)
p17_in_gag(T16, T37, T17) → U15_gag(T16, T37, T17, varmat16_in_ga(T16, T37))
U15_gag(T16, T37, T17, varmat16_out_ga(T16, T37)) → U16_gag(T16, T37, T17, unif_matrx37_in_ga(T17, T37))
unif_matrx37_in_ga(T56, .(T57, T58)) → U6_ga(T56, T57, T58, unif_lines43_in_ga(T56, T57))
unif_lines43_in_ga(.(T103, .(T104, T107)), .(T105, .(T106, T108))) → U9_ga(T103, T104, T107, T105, T106, T108, p50_in_gaggaa(T103, .(T104, .(T105, .(T106, .(T103, .(T105, .(T104, .(T106, .(T103, .(T106, .(T104, .(T105, []))))))))))), T104, T107, T106, T108))
p50_in_gaggaa(T103, T113, T104, T107, T106, T108) → U17_gaggaa(T103, T113, T104, T107, T106, T108, unif_pairs51_in_ga(T103, T113))
unif_pairs51_in_ga(w(T140), .(w(T140), T141)) → U20_ga(T140, T141, unif_pairs60_in_a(T141))
U20_ga(T140, T141, unif_pairs60_out_a(T141)) → unif_pairs51_out_ga(w(T140), .(w(T140), T141))
unif_pairs51_in_ga(black, .(black, T171)) → U21_ga(T171, unif_pairs60_in_a(T171))
U21_ga(T171, unif_pairs60_out_a(T171)) → unif_pairs51_out_ga(black, .(black, T171))
unif_pairs51_in_ga(black, .(w(T176), T177)) → U22_ga(T176, T177, unif_pairs60_in_a(T177))
U22_ga(T176, T177, unif_pairs60_out_a(T177)) → unif_pairs51_out_ga(black, .(w(T176), T177))
unif_pairs51_in_ga(w(T180), .(black, T181)) → U23_ga(T180, T181, unif_pairs60_in_a(T181))
U23_ga(T180, T181, unif_pairs60_out_a(T181)) → unif_pairs51_out_ga(w(T180), .(black, T181))
U17_gaggaa(T103, T113, T104, T107, T106, T108, unif_pairs51_out_ga(T103, T113)) → p50_out_gaggaa(T103, T113, T104, T107, T106, T108)
p50_in_gaggaa(T103, T113, T117, T118, T119, T120) → U18_gaggaa(T103, T113, T117, T118, T119, T120, unif_pairs51_in_ga(T103, T113))
U18_gaggaa(T103, T113, T117, T118, T119, T120, unif_pairs51_out_ga(T103, T113)) → U19_gaggaa(T103, T113, T117, T118, T119, T120, unif_lines43_in_ga(.(T117, T118), .(T119, T120)))
unif_lines43_in_ga(.(T192, []), .(T193, [])) → unif_lines43_out_ga(.(T192, []), .(T193, []))
U19_gaggaa(T103, T113, T117, T118, T119, T120, unif_lines43_out_ga(.(T117, T118), .(T119, T120))) → p50_out_gaggaa(T103, T113, T117, T118, T119, T120)
U9_ga(T103, T104, T107, T105, T106, T108, p50_out_gaggaa(T103, .(T104, .(T105, .(T106, .(T103, .(T105, .(T104, .(T106, .(T103, .(T106, .(T104, .(T105, []))))))))))), T104, T107, T106, T108)) → unif_lines43_out_ga(.(T103, .(T104, T107)), .(T105, .(T106, T108)))
U6_ga(T56, T57, T58, unif_lines43_out_ga(T56, T57)) → unif_matrx37_out_ga(T56, .(T57, T58))
unif_matrx37_in_ga(T56, .(T65, T66)) → U7_ga(T56, T65, T66, unif_lines43_in_ga(T56, T65))
U7_ga(T56, T65, T66, unif_lines43_out_ga(T56, T65)) → U8_ga(T56, T65, T66, unif_matrx37_in_aa(T65, T66))
U8_ga(T56, T65, T66, unif_matrx37_out_aa(T65, T66)) → unif_matrx37_out_ga(T56, .(T65, T66))
unif_matrx37_in_ga(T199, []) → unif_matrx37_out_ga(T199, [])
U16_gag(T16, T37, T17, unif_matrx37_out_ga(T17, T37)) → p17_out_gag(T16, T37, T17)
U27_ga(T204, T6, p17_out_gag(T204, X293, black)) → shapes1_out_ga(.(black, T204), T6)
shapes1_in_ga(.(white, T207), T6) → U28_ga(T207, T6, p17_in_gag(T207, X310, w(X309)))
U28_ga(T207, T6, p17_out_gag(T207, X310, w(X309))) → shapes1_out_ga(.(white, T207), T6)
SHAPES1_IN_GA(.(T15, T16), T6) → U24_GA(T15, T16, T6, varmat16_in_ga(T15, X49))
SHAPES1_IN_GA(.(T15, T16), T6) → VARMAT16_IN_GA(T15, X49)
VARMAT16_IN_GA(.(T26, T27), .(X83, X84)) → U1_GA(T26, T27, X83, X84, varmat16_in_ga(T26, X83))
VARMAT16_IN_GA(.(T26, T27), .(X83, X84)) → VARMAT16_IN_GA(T26, X83)
VARMAT16_IN_GA(.(T26, T27), .(T28, X84)) → U2_GA(T26, T27, T28, X84, varmat16_in_ga(T26, T28))
VARMAT16_IN_GA(.(black, T33), .(black, X103)) → U4_GA(T33, X103, varmat16_in_ga(T33, X103))
VARMAT16_IN_GA(.(black, T33), .(black, X103)) → VARMAT16_IN_GA(T33, X103)
VARMAT16_IN_GA(.(white, T36), .(w(X119), X120)) → U5_GA(T36, X119, X120, varmat16_in_ga(T36, X120))
VARMAT16_IN_GA(.(white, T36), .(w(X119), X120)) → VARMAT16_IN_GA(T36, X120)
U2_GA(T26, T27, T28, X84, varmat16_out_ga(T26, T28)) → U3_GA(T26, T27, T28, X84, varmat16_in_ga(T27, X84))
U2_GA(T26, T27, T28, X84, varmat16_out_ga(T26, T28)) → VARMAT16_IN_GA(T27, X84)
SHAPES1_IN_GA(.(T15, T16), T6) → U25_GA(T15, T16, T6, varmat16_in_ga(T15, T17))
U25_GA(T15, T16, T6, varmat16_out_ga(T15, T17)) → U26_GA(T15, T16, T6, p17_in_gaa(T16, X50, T17))
U25_GA(T15, T16, T6, varmat16_out_ga(T15, T17)) → P17_IN_GAA(T16, X50, T17)
P17_IN_GAA(T16, X50, T17) → U14_GAA(T16, X50, T17, varmat16_in_ga(T16, X50))
P17_IN_GAA(T16, X50, T17) → VARMAT16_IN_GA(T16, X50)
P17_IN_GAA(T16, T37, T17) → U15_GAA(T16, T37, T17, varmat16_in_ga(T16, T37))
U15_GAA(T16, T37, T17, varmat16_out_ga(T16, T37)) → U16_GAA(T16, T37, T17, unif_matrx37_in_aa(T17, T37))
U15_GAA(T16, T37, T17, varmat16_out_ga(T16, T37)) → UNIF_MATRX37_IN_AA(T17, T37)
UNIF_MATRX37_IN_AA(T56, .(T57, T58)) → U6_AA(T56, T57, T58, unif_lines43_in_aa(T56, T57))
UNIF_MATRX37_IN_AA(T56, .(T57, T58)) → UNIF_LINES43_IN_AA(T56, T57)
UNIF_LINES43_IN_AA(.(T103, .(T104, T107)), .(T105, .(T106, T108))) → U9_AA(T103, T104, T107, T105, T106, T108, p50_in_aaaaaa(T103, .(T104, .(T105, .(T106, .(T103, .(T105, .(T104, .(T106, .(T103, .(T106, .(T104, .(T105, []))))))))))), T104, T107, T106, T108))
UNIF_LINES43_IN_AA(.(T103, .(T104, T107)), .(T105, .(T106, T108))) → P50_IN_AAAAAA(T103, .(T104, .(T105, .(T106, .(T103, .(T105, .(T104, .(T106, .(T103, .(T106, .(T104, .(T105, []))))))))))), T104, T107, T106, T108)
P50_IN_AAAAAA(T103, T113, T104, T107, T106, T108) → U17_AAAAAA(T103, T113, T104, T107, T106, T108, unif_pairs51_in_aa(T103, T113))
P50_IN_AAAAAA(T103, T113, T104, T107, T106, T108) → UNIF_PAIRS51_IN_AA(T103, T113)
UNIF_PAIRS51_IN_AA(w(T140), .(w(T140), T141)) → U20_AA(T140, T141, unif_pairs60_in_a(T141))
UNIF_PAIRS51_IN_AA(w(T140), .(w(T140), T141)) → UNIF_PAIRS60_IN_A(T141)
UNIF_PAIRS60_IN_A(.(w(T158), .(w(T158), T159))) → U10_A(T158, T159, unif_pairs60_in_a(T159))
UNIF_PAIRS60_IN_A(.(w(T158), .(w(T158), T159))) → UNIF_PAIRS60_IN_A(T159)
UNIF_PAIRS60_IN_A(.(black, .(black, T160))) → U11_A(T160, unif_pairs60_in_a(T160))
UNIF_PAIRS60_IN_A(.(black, .(black, T160))) → UNIF_PAIRS60_IN_A(T160)
UNIF_PAIRS60_IN_A(.(black, .(w(T165), T166))) → U12_A(T165, T166, unif_pairs60_in_a(T166))
UNIF_PAIRS60_IN_A(.(black, .(w(T165), T166))) → UNIF_PAIRS60_IN_A(T166)
UNIF_PAIRS60_IN_A(.(w(T169), .(black, T170))) → U13_A(T169, T170, unif_pairs60_in_a(T170))
UNIF_PAIRS60_IN_A(.(w(T169), .(black, T170))) → UNIF_PAIRS60_IN_A(T170)
UNIF_PAIRS51_IN_AA(black, .(black, T171)) → U21_AA(T171, unif_pairs60_in_a(T171))
UNIF_PAIRS51_IN_AA(black, .(black, T171)) → UNIF_PAIRS60_IN_A(T171)
UNIF_PAIRS51_IN_AA(black, .(w(T176), T177)) → U22_AA(T176, T177, unif_pairs60_in_a(T177))
UNIF_PAIRS51_IN_AA(black, .(w(T176), T177)) → UNIF_PAIRS60_IN_A(T177)
UNIF_PAIRS51_IN_AA(w(T180), .(black, T181)) → U23_AA(T180, T181, unif_pairs60_in_a(T181))
UNIF_PAIRS51_IN_AA(w(T180), .(black, T181)) → UNIF_PAIRS60_IN_A(T181)
P50_IN_AAAAAA(T103, T113, T117, T118, T119, T120) → U18_AAAAAA(T103, T113, T117, T118, T119, T120, unif_pairs51_in_aa(T103, T113))
U18_AAAAAA(T103, T113, T117, T118, T119, T120, unif_pairs51_out_aa(T103, T113)) → U19_AAAAAA(T103, T113, T117, T118, T119, T120, unif_lines43_in_aa(.(T117, T118), .(T119, T120)))
U18_AAAAAA(T103, T113, T117, T118, T119, T120, unif_pairs51_out_aa(T103, T113)) → UNIF_LINES43_IN_AA(.(T117, T118), .(T119, T120))
UNIF_MATRX37_IN_AA(T56, .(T65, T66)) → U7_AA(T56, T65, T66, unif_lines43_in_aa(T56, T65))
U7_AA(T56, T65, T66, unif_lines43_out_aa(T56, T65)) → U8_AA(T56, T65, T66, unif_matrx37_in_aa(T65, T66))
U7_AA(T56, T65, T66, unif_lines43_out_aa(T56, T65)) → UNIF_MATRX37_IN_AA(T65, T66)
SHAPES1_IN_GA(.(black, T204), T6) → U27_GA(T204, T6, p17_in_gag(T204, X293, black))
SHAPES1_IN_GA(.(black, T204), T6) → P17_IN_GAG(T204, X293, black)
P17_IN_GAG(T16, X50, T17) → U14_GAG(T16, X50, T17, varmat16_in_ga(T16, X50))
P17_IN_GAG(T16, X50, T17) → VARMAT16_IN_GA(T16, X50)
P17_IN_GAG(T16, T37, T17) → U15_GAG(T16, T37, T17, varmat16_in_ga(T16, T37))
U15_GAG(T16, T37, T17, varmat16_out_ga(T16, T37)) → U16_GAG(T16, T37, T17, unif_matrx37_in_ga(T17, T37))
U15_GAG(T16, T37, T17, varmat16_out_ga(T16, T37)) → UNIF_MATRX37_IN_GA(T17, T37)
UNIF_MATRX37_IN_GA(T56, .(T57, T58)) → U6_GA(T56, T57, T58, unif_lines43_in_ga(T56, T57))
UNIF_MATRX37_IN_GA(T56, .(T57, T58)) → UNIF_LINES43_IN_GA(T56, T57)
UNIF_LINES43_IN_GA(.(T103, .(T104, T107)), .(T105, .(T106, T108))) → U9_GA(T103, T104, T107, T105, T106, T108, p50_in_gaggaa(T103, .(T104, .(T105, .(T106, .(T103, .(T105, .(T104, .(T106, .(T103, .(T106, .(T104, .(T105, []))))))))))), T104, T107, T106, T108))
UNIF_LINES43_IN_GA(.(T103, .(T104, T107)), .(T105, .(T106, T108))) → P50_IN_GAGGAA(T103, .(T104, .(T105, .(T106, .(T103, .(T105, .(T104, .(T106, .(T103, .(T106, .(T104, .(T105, []))))))))))), T104, T107, T106, T108)
P50_IN_GAGGAA(T103, T113, T104, T107, T106, T108) → U17_GAGGAA(T103, T113, T104, T107, T106, T108, unif_pairs51_in_ga(T103, T113))
P50_IN_GAGGAA(T103, T113, T104, T107, T106, T108) → UNIF_PAIRS51_IN_GA(T103, T113)
UNIF_PAIRS51_IN_GA(w(T140), .(w(T140), T141)) → U20_GA(T140, T141, unif_pairs60_in_a(T141))
UNIF_PAIRS51_IN_GA(w(T140), .(w(T140), T141)) → UNIF_PAIRS60_IN_A(T141)
UNIF_PAIRS51_IN_GA(black, .(black, T171)) → U21_GA(T171, unif_pairs60_in_a(T171))
UNIF_PAIRS51_IN_GA(black, .(black, T171)) → UNIF_PAIRS60_IN_A(T171)
UNIF_PAIRS51_IN_GA(black, .(w(T176), T177)) → U22_GA(T176, T177, unif_pairs60_in_a(T177))
UNIF_PAIRS51_IN_GA(black, .(w(T176), T177)) → UNIF_PAIRS60_IN_A(T177)
UNIF_PAIRS51_IN_GA(w(T180), .(black, T181)) → U23_GA(T180, T181, unif_pairs60_in_a(T181))
UNIF_PAIRS51_IN_GA(w(T180), .(black, T181)) → UNIF_PAIRS60_IN_A(T181)
P50_IN_GAGGAA(T103, T113, T117, T118, T119, T120) → U18_GAGGAA(T103, T113, T117, T118, T119, T120, unif_pairs51_in_ga(T103, T113))
U18_GAGGAA(T103, T113, T117, T118, T119, T120, unif_pairs51_out_ga(T103, T113)) → U19_GAGGAA(T103, T113, T117, T118, T119, T120, unif_lines43_in_ga(.(T117, T118), .(T119, T120)))
U18_GAGGAA(T103, T113, T117, T118, T119, T120, unif_pairs51_out_ga(T103, T113)) → UNIF_LINES43_IN_GA(.(T117, T118), .(T119, T120))
UNIF_MATRX37_IN_GA(T56, .(T65, T66)) → U7_GA(T56, T65, T66, unif_lines43_in_ga(T56, T65))
U7_GA(T56, T65, T66, unif_lines43_out_ga(T56, T65)) → U8_GA(T56, T65, T66, unif_matrx37_in_aa(T65, T66))
U7_GA(T56, T65, T66, unif_lines43_out_ga(T56, T65)) → UNIF_MATRX37_IN_AA(T65, T66)
SHAPES1_IN_GA(.(white, T207), T6) → U28_GA(T207, T6, p17_in_gag(T207, X310, w(X309)))
SHAPES1_IN_GA(.(white, T207), T6) → P17_IN_GAG(T207, X310, w(X309))
shapes1_in_ga(.(T15, T16), T6) → U24_ga(T15, T16, T6, varmat16_in_ga(T15, X49))
varmat16_in_ga([], []) → varmat16_out_ga([], [])
varmat16_in_ga(.(T26, T27), .(X83, X84)) → U1_ga(T26, T27, X83, X84, varmat16_in_ga(T26, X83))
varmat16_in_ga(.(T26, T27), .(T28, X84)) → U2_ga(T26, T27, T28, X84, varmat16_in_ga(T26, T28))
varmat16_in_ga(.(black, T33), .(black, X103)) → U4_ga(T33, X103, varmat16_in_ga(T33, X103))
varmat16_in_ga(.(white, T36), .(w(X119), X120)) → U5_ga(T36, X119, X120, varmat16_in_ga(T36, X120))
U5_ga(T36, X119, X120, varmat16_out_ga(T36, X120)) → varmat16_out_ga(.(white, T36), .(w(X119), X120))
U4_ga(T33, X103, varmat16_out_ga(T33, X103)) → varmat16_out_ga(.(black, T33), .(black, X103))
U2_ga(T26, T27, T28, X84, varmat16_out_ga(T26, T28)) → U3_ga(T26, T27, T28, X84, varmat16_in_ga(T27, X84))
U3_ga(T26, T27, T28, X84, varmat16_out_ga(T27, X84)) → varmat16_out_ga(.(T26, T27), .(T28, X84))
U1_ga(T26, T27, X83, X84, varmat16_out_ga(T26, X83)) → varmat16_out_ga(.(T26, T27), .(X83, X84))
U24_ga(T15, T16, T6, varmat16_out_ga(T15, X49)) → shapes1_out_ga(.(T15, T16), T6)
shapes1_in_ga(.(T15, T16), T6) → U25_ga(T15, T16, T6, varmat16_in_ga(T15, T17))
U25_ga(T15, T16, T6, varmat16_out_ga(T15, T17)) → U26_ga(T15, T16, T6, p17_in_gaa(T16, X50, T17))
p17_in_gaa(T16, X50, T17) → U14_gaa(T16, X50, T17, varmat16_in_ga(T16, X50))
U14_gaa(T16, X50, T17, varmat16_out_ga(T16, X50)) → p17_out_gaa(T16, X50, T17)
p17_in_gaa(T16, T37, T17) → U15_gaa(T16, T37, T17, varmat16_in_ga(T16, T37))
U15_gaa(T16, T37, T17, varmat16_out_ga(T16, T37)) → U16_gaa(T16, T37, T17, unif_matrx37_in_aa(T17, T37))
unif_matrx37_in_aa(T56, .(T57, T58)) → U6_aa(T56, T57, T58, unif_lines43_in_aa(T56, T57))
unif_lines43_in_aa(.(T103, .(T104, T107)), .(T105, .(T106, T108))) → U9_aa(T103, T104, T107, T105, T106, T108, p50_in_aaaaaa(T103, .(T104, .(T105, .(T106, .(T103, .(T105, .(T104, .(T106, .(T103, .(T106, .(T104, .(T105, []))))))))))), T104, T107, T106, T108))
p50_in_aaaaaa(T103, T113, T104, T107, T106, T108) → U17_aaaaaa(T103, T113, T104, T107, T106, T108, unif_pairs51_in_aa(T103, T113))
unif_pairs51_in_aa(w(T140), .(w(T140), T141)) → U20_aa(T140, T141, unif_pairs60_in_a(T141))
unif_pairs60_in_a([]) → unif_pairs60_out_a([])
unif_pairs60_in_a(.(w(T158), .(w(T158), T159))) → U10_a(T158, T159, unif_pairs60_in_a(T159))
unif_pairs60_in_a(.(black, .(black, T160))) → U11_a(T160, unif_pairs60_in_a(T160))
unif_pairs60_in_a(.(black, .(w(T165), T166))) → U12_a(T165, T166, unif_pairs60_in_a(T166))
unif_pairs60_in_a(.(w(T169), .(black, T170))) → U13_a(T169, T170, unif_pairs60_in_a(T170))
U13_a(T169, T170, unif_pairs60_out_a(T170)) → unif_pairs60_out_a(.(w(T169), .(black, T170)))
U12_a(T165, T166, unif_pairs60_out_a(T166)) → unif_pairs60_out_a(.(black, .(w(T165), T166)))
U11_a(T160, unif_pairs60_out_a(T160)) → unif_pairs60_out_a(.(black, .(black, T160)))
U10_a(T158, T159, unif_pairs60_out_a(T159)) → unif_pairs60_out_a(.(w(T158), .(w(T158), T159)))
U20_aa(T140, T141, unif_pairs60_out_a(T141)) → unif_pairs51_out_aa(w(T140), .(w(T140), T141))
unif_pairs51_in_aa(black, .(black, T171)) → U21_aa(T171, unif_pairs60_in_a(T171))
U21_aa(T171, unif_pairs60_out_a(T171)) → unif_pairs51_out_aa(black, .(black, T171))
unif_pairs51_in_aa(black, .(w(T176), T177)) → U22_aa(T176, T177, unif_pairs60_in_a(T177))
U22_aa(T176, T177, unif_pairs60_out_a(T177)) → unif_pairs51_out_aa(black, .(w(T176), T177))
unif_pairs51_in_aa(w(T180), .(black, T181)) → U23_aa(T180, T181, unif_pairs60_in_a(T181))
U23_aa(T180, T181, unif_pairs60_out_a(T181)) → unif_pairs51_out_aa(w(T180), .(black, T181))
U17_aaaaaa(T103, T113, T104, T107, T106, T108, unif_pairs51_out_aa(T103, T113)) → p50_out_aaaaaa(T103, T113, T104, T107, T106, T108)
p50_in_aaaaaa(T103, T113, T117, T118, T119, T120) → U18_aaaaaa(T103, T113, T117, T118, T119, T120, unif_pairs51_in_aa(T103, T113))
U18_aaaaaa(T103, T113, T117, T118, T119, T120, unif_pairs51_out_aa(T103, T113)) → U19_aaaaaa(T103, T113, T117, T118, T119, T120, unif_lines43_in_aa(.(T117, T118), .(T119, T120)))
unif_lines43_in_aa(.(T192, []), .(T193, [])) → unif_lines43_out_aa(.(T192, []), .(T193, []))
U19_aaaaaa(T103, T113, T117, T118, T119, T120, unif_lines43_out_aa(.(T117, T118), .(T119, T120))) → p50_out_aaaaaa(T103, T113, T117, T118, T119, T120)
U9_aa(T103, T104, T107, T105, T106, T108, p50_out_aaaaaa(T103, .(T104, .(T105, .(T106, .(T103, .(T105, .(T104, .(T106, .(T103, .(T106, .(T104, .(T105, []))))))))))), T104, T107, T106, T108)) → unif_lines43_out_aa(.(T103, .(T104, T107)), .(T105, .(T106, T108)))
U6_aa(T56, T57, T58, unif_lines43_out_aa(T56, T57)) → unif_matrx37_out_aa(T56, .(T57, T58))
unif_matrx37_in_aa(T56, .(T65, T66)) → U7_aa(T56, T65, T66, unif_lines43_in_aa(T56, T65))
U7_aa(T56, T65, T66, unif_lines43_out_aa(T56, T65)) → U8_aa(T56, T65, T66, unif_matrx37_in_aa(T65, T66))
unif_matrx37_in_aa(T199, []) → unif_matrx37_out_aa(T199, [])
U8_aa(T56, T65, T66, unif_matrx37_out_aa(T65, T66)) → unif_matrx37_out_aa(T56, .(T65, T66))
U16_gaa(T16, T37, T17, unif_matrx37_out_aa(T17, T37)) → p17_out_gaa(T16, T37, T17)
U26_ga(T15, T16, T6, p17_out_gaa(T16, X50, T17)) → shapes1_out_ga(.(T15, T16), T6)
shapes1_in_ga(.(black, T204), T6) → U27_ga(T204, T6, p17_in_gag(T204, X293, black))
p17_in_gag(T16, X50, T17) → U14_gag(T16, X50, T17, varmat16_in_ga(T16, X50))
U14_gag(T16, X50, T17, varmat16_out_ga(T16, X50)) → p17_out_gag(T16, X50, T17)
p17_in_gag(T16, T37, T17) → U15_gag(T16, T37, T17, varmat16_in_ga(T16, T37))
U15_gag(T16, T37, T17, varmat16_out_ga(T16, T37)) → U16_gag(T16, T37, T17, unif_matrx37_in_ga(T17, T37))
unif_matrx37_in_ga(T56, .(T57, T58)) → U6_ga(T56, T57, T58, unif_lines43_in_ga(T56, T57))
unif_lines43_in_ga(.(T103, .(T104, T107)), .(T105, .(T106, T108))) → U9_ga(T103, T104, T107, T105, T106, T108, p50_in_gaggaa(T103, .(T104, .(T105, .(T106, .(T103, .(T105, .(T104, .(T106, .(T103, .(T106, .(T104, .(T105, []))))))))))), T104, T107, T106, T108))
p50_in_gaggaa(T103, T113, T104, T107, T106, T108) → U17_gaggaa(T103, T113, T104, T107, T106, T108, unif_pairs51_in_ga(T103, T113))
unif_pairs51_in_ga(w(T140), .(w(T140), T141)) → U20_ga(T140, T141, unif_pairs60_in_a(T141))
U20_ga(T140, T141, unif_pairs60_out_a(T141)) → unif_pairs51_out_ga(w(T140), .(w(T140), T141))
unif_pairs51_in_ga(black, .(black, T171)) → U21_ga(T171, unif_pairs60_in_a(T171))
U21_ga(T171, unif_pairs60_out_a(T171)) → unif_pairs51_out_ga(black, .(black, T171))
unif_pairs51_in_ga(black, .(w(T176), T177)) → U22_ga(T176, T177, unif_pairs60_in_a(T177))
U22_ga(T176, T177, unif_pairs60_out_a(T177)) → unif_pairs51_out_ga(black, .(w(T176), T177))
unif_pairs51_in_ga(w(T180), .(black, T181)) → U23_ga(T180, T181, unif_pairs60_in_a(T181))
U23_ga(T180, T181, unif_pairs60_out_a(T181)) → unif_pairs51_out_ga(w(T180), .(black, T181))
U17_gaggaa(T103, T113, T104, T107, T106, T108, unif_pairs51_out_ga(T103, T113)) → p50_out_gaggaa(T103, T113, T104, T107, T106, T108)
p50_in_gaggaa(T103, T113, T117, T118, T119, T120) → U18_gaggaa(T103, T113, T117, T118, T119, T120, unif_pairs51_in_ga(T103, T113))
U18_gaggaa(T103, T113, T117, T118, T119, T120, unif_pairs51_out_ga(T103, T113)) → U19_gaggaa(T103, T113, T117, T118, T119, T120, unif_lines43_in_ga(.(T117, T118), .(T119, T120)))
unif_lines43_in_ga(.(T192, []), .(T193, [])) → unif_lines43_out_ga(.(T192, []), .(T193, []))
U19_gaggaa(T103, T113, T117, T118, T119, T120, unif_lines43_out_ga(.(T117, T118), .(T119, T120))) → p50_out_gaggaa(T103, T113, T117, T118, T119, T120)
U9_ga(T103, T104, T107, T105, T106, T108, p50_out_gaggaa(T103, .(T104, .(T105, .(T106, .(T103, .(T105, .(T104, .(T106, .(T103, .(T106, .(T104, .(T105, []))))))))))), T104, T107, T106, T108)) → unif_lines43_out_ga(.(T103, .(T104, T107)), .(T105, .(T106, T108)))
U6_ga(T56, T57, T58, unif_lines43_out_ga(T56, T57)) → unif_matrx37_out_ga(T56, .(T57, T58))
unif_matrx37_in_ga(T56, .(T65, T66)) → U7_ga(T56, T65, T66, unif_lines43_in_ga(T56, T65))
U7_ga(T56, T65, T66, unif_lines43_out_ga(T56, T65)) → U8_ga(T56, T65, T66, unif_matrx37_in_aa(T65, T66))
U8_ga(T56, T65, T66, unif_matrx37_out_aa(T65, T66)) → unif_matrx37_out_ga(T56, .(T65, T66))
unif_matrx37_in_ga(T199, []) → unif_matrx37_out_ga(T199, [])
U16_gag(T16, T37, T17, unif_matrx37_out_ga(T17, T37)) → p17_out_gag(T16, T37, T17)
U27_ga(T204, T6, p17_out_gag(T204, X293, black)) → shapes1_out_ga(.(black, T204), T6)
shapes1_in_ga(.(white, T207), T6) → U28_ga(T207, T6, p17_in_gag(T207, X310, w(X309)))
U28_ga(T207, T6, p17_out_gag(T207, X310, w(X309))) → shapes1_out_ga(.(white, T207), T6)
UNIF_PAIRS60_IN_A(.(black, .(black, T160))) → UNIF_PAIRS60_IN_A(T160)
UNIF_PAIRS60_IN_A(.(w(T158), .(w(T158), T159))) → UNIF_PAIRS60_IN_A(T159)
UNIF_PAIRS60_IN_A(.(black, .(w(T165), T166))) → UNIF_PAIRS60_IN_A(T166)
UNIF_PAIRS60_IN_A(.(w(T169), .(black, T170))) → UNIF_PAIRS60_IN_A(T170)
shapes1_in_ga(.(T15, T16), T6) → U24_ga(T15, T16, T6, varmat16_in_ga(T15, X49))
varmat16_in_ga([], []) → varmat16_out_ga([], [])
varmat16_in_ga(.(T26, T27), .(X83, X84)) → U1_ga(T26, T27, X83, X84, varmat16_in_ga(T26, X83))
varmat16_in_ga(.(T26, T27), .(T28, X84)) → U2_ga(T26, T27, T28, X84, varmat16_in_ga(T26, T28))
varmat16_in_ga(.(black, T33), .(black, X103)) → U4_ga(T33, X103, varmat16_in_ga(T33, X103))
varmat16_in_ga(.(white, T36), .(w(X119), X120)) → U5_ga(T36, X119, X120, varmat16_in_ga(T36, X120))
U5_ga(T36, X119, X120, varmat16_out_ga(T36, X120)) → varmat16_out_ga(.(white, T36), .(w(X119), X120))
U4_ga(T33, X103, varmat16_out_ga(T33, X103)) → varmat16_out_ga(.(black, T33), .(black, X103))
U2_ga(T26, T27, T28, X84, varmat16_out_ga(T26, T28)) → U3_ga(T26, T27, T28, X84, varmat16_in_ga(T27, X84))
U3_ga(T26, T27, T28, X84, varmat16_out_ga(T27, X84)) → varmat16_out_ga(.(T26, T27), .(T28, X84))
U1_ga(T26, T27, X83, X84, varmat16_out_ga(T26, X83)) → varmat16_out_ga(.(T26, T27), .(X83, X84))
U24_ga(T15, T16, T6, varmat16_out_ga(T15, X49)) → shapes1_out_ga(.(T15, T16), T6)
shapes1_in_ga(.(T15, T16), T6) → U25_ga(T15, T16, T6, varmat16_in_ga(T15, T17))
U25_ga(T15, T16, T6, varmat16_out_ga(T15, T17)) → U26_ga(T15, T16, T6, p17_in_gaa(T16, X50, T17))
p17_in_gaa(T16, X50, T17) → U14_gaa(T16, X50, T17, varmat16_in_ga(T16, X50))
U14_gaa(T16, X50, T17, varmat16_out_ga(T16, X50)) → p17_out_gaa(T16, X50, T17)
p17_in_gaa(T16, T37, T17) → U15_gaa(T16, T37, T17, varmat16_in_ga(T16, T37))
U15_gaa(T16, T37, T17, varmat16_out_ga(T16, T37)) → U16_gaa(T16, T37, T17, unif_matrx37_in_aa(T17, T37))
unif_matrx37_in_aa(T56, .(T57, T58)) → U6_aa(T56, T57, T58, unif_lines43_in_aa(T56, T57))
unif_lines43_in_aa(.(T103, .(T104, T107)), .(T105, .(T106, T108))) → U9_aa(T103, T104, T107, T105, T106, T108, p50_in_aaaaaa(T103, .(T104, .(T105, .(T106, .(T103, .(T105, .(T104, .(T106, .(T103, .(T106, .(T104, .(T105, []))))))))))), T104, T107, T106, T108))
p50_in_aaaaaa(T103, T113, T104, T107, T106, T108) → U17_aaaaaa(T103, T113, T104, T107, T106, T108, unif_pairs51_in_aa(T103, T113))
unif_pairs51_in_aa(w(T140), .(w(T140), T141)) → U20_aa(T140, T141, unif_pairs60_in_a(T141))
unif_pairs60_in_a([]) → unif_pairs60_out_a([])
unif_pairs60_in_a(.(w(T158), .(w(T158), T159))) → U10_a(T158, T159, unif_pairs60_in_a(T159))
unif_pairs60_in_a(.(black, .(black, T160))) → U11_a(T160, unif_pairs60_in_a(T160))
unif_pairs60_in_a(.(black, .(w(T165), T166))) → U12_a(T165, T166, unif_pairs60_in_a(T166))
unif_pairs60_in_a(.(w(T169), .(black, T170))) → U13_a(T169, T170, unif_pairs60_in_a(T170))
U13_a(T169, T170, unif_pairs60_out_a(T170)) → unif_pairs60_out_a(.(w(T169), .(black, T170)))
U12_a(T165, T166, unif_pairs60_out_a(T166)) → unif_pairs60_out_a(.(black, .(w(T165), T166)))
U11_a(T160, unif_pairs60_out_a(T160)) → unif_pairs60_out_a(.(black, .(black, T160)))
U10_a(T158, T159, unif_pairs60_out_a(T159)) → unif_pairs60_out_a(.(w(T158), .(w(T158), T159)))
U20_aa(T140, T141, unif_pairs60_out_a(T141)) → unif_pairs51_out_aa(w(T140), .(w(T140), T141))
unif_pairs51_in_aa(black, .(black, T171)) → U21_aa(T171, unif_pairs60_in_a(T171))
U21_aa(T171, unif_pairs60_out_a(T171)) → unif_pairs51_out_aa(black, .(black, T171))
unif_pairs51_in_aa(black, .(w(T176), T177)) → U22_aa(T176, T177, unif_pairs60_in_a(T177))
U22_aa(T176, T177, unif_pairs60_out_a(T177)) → unif_pairs51_out_aa(black, .(w(T176), T177))
unif_pairs51_in_aa(w(T180), .(black, T181)) → U23_aa(T180, T181, unif_pairs60_in_a(T181))
U23_aa(T180, T181, unif_pairs60_out_a(T181)) → unif_pairs51_out_aa(w(T180), .(black, T181))
U17_aaaaaa(T103, T113, T104, T107, T106, T108, unif_pairs51_out_aa(T103, T113)) → p50_out_aaaaaa(T103, T113, T104, T107, T106, T108)
p50_in_aaaaaa(T103, T113, T117, T118, T119, T120) → U18_aaaaaa(T103, T113, T117, T118, T119, T120, unif_pairs51_in_aa(T103, T113))
U18_aaaaaa(T103, T113, T117, T118, T119, T120, unif_pairs51_out_aa(T103, T113)) → U19_aaaaaa(T103, T113, T117, T118, T119, T120, unif_lines43_in_aa(.(T117, T118), .(T119, T120)))
unif_lines43_in_aa(.(T192, []), .(T193, [])) → unif_lines43_out_aa(.(T192, []), .(T193, []))
U19_aaaaaa(T103, T113, T117, T118, T119, T120, unif_lines43_out_aa(.(T117, T118), .(T119, T120))) → p50_out_aaaaaa(T103, T113, T117, T118, T119, T120)
U9_aa(T103, T104, T107, T105, T106, T108, p50_out_aaaaaa(T103, .(T104, .(T105, .(T106, .(T103, .(T105, .(T104, .(T106, .(T103, .(T106, .(T104, .(T105, []))))))))))), T104, T107, T106, T108)) → unif_lines43_out_aa(.(T103, .(T104, T107)), .(T105, .(T106, T108)))
U6_aa(T56, T57, T58, unif_lines43_out_aa(T56, T57)) → unif_matrx37_out_aa(T56, .(T57, T58))
unif_matrx37_in_aa(T56, .(T65, T66)) → U7_aa(T56, T65, T66, unif_lines43_in_aa(T56, T65))
U7_aa(T56, T65, T66, unif_lines43_out_aa(T56, T65)) → U8_aa(T56, T65, T66, unif_matrx37_in_aa(T65, T66))
unif_matrx37_in_aa(T199, []) → unif_matrx37_out_aa(T199, [])
U8_aa(T56, T65, T66, unif_matrx37_out_aa(T65, T66)) → unif_matrx37_out_aa(T56, .(T65, T66))
U16_gaa(T16, T37, T17, unif_matrx37_out_aa(T17, T37)) → p17_out_gaa(T16, T37, T17)
U26_ga(T15, T16, T6, p17_out_gaa(T16, X50, T17)) → shapes1_out_ga(.(T15, T16), T6)
shapes1_in_ga(.(black, T204), T6) → U27_ga(T204, T6, p17_in_gag(T204, X293, black))
p17_in_gag(T16, X50, T17) → U14_gag(T16, X50, T17, varmat16_in_ga(T16, X50))
U14_gag(T16, X50, T17, varmat16_out_ga(T16, X50)) → p17_out_gag(T16, X50, T17)
p17_in_gag(T16, T37, T17) → U15_gag(T16, T37, T17, varmat16_in_ga(T16, T37))
U15_gag(T16, T37, T17, varmat16_out_ga(T16, T37)) → U16_gag(T16, T37, T17, unif_matrx37_in_ga(T17, T37))
unif_matrx37_in_ga(T56, .(T57, T58)) → U6_ga(T56, T57, T58, unif_lines43_in_ga(T56, T57))
unif_lines43_in_ga(.(T103, .(T104, T107)), .(T105, .(T106, T108))) → U9_ga(T103, T104, T107, T105, T106, T108, p50_in_gaggaa(T103, .(T104, .(T105, .(T106, .(T103, .(T105, .(T104, .(T106, .(T103, .(T106, .(T104, .(T105, []))))))))))), T104, T107, T106, T108))
p50_in_gaggaa(T103, T113, T104, T107, T106, T108) → U17_gaggaa(T103, T113, T104, T107, T106, T108, unif_pairs51_in_ga(T103, T113))
unif_pairs51_in_ga(w(T140), .(w(T140), T141)) → U20_ga(T140, T141, unif_pairs60_in_a(T141))
U20_ga(T140, T141, unif_pairs60_out_a(T141)) → unif_pairs51_out_ga(w(T140), .(w(T140), T141))
unif_pairs51_in_ga(black, .(black, T171)) → U21_ga(T171, unif_pairs60_in_a(T171))
U21_ga(T171, unif_pairs60_out_a(T171)) → unif_pairs51_out_ga(black, .(black, T171))
unif_pairs51_in_ga(black, .(w(T176), T177)) → U22_ga(T176, T177, unif_pairs60_in_a(T177))
U22_ga(T176, T177, unif_pairs60_out_a(T177)) → unif_pairs51_out_ga(black, .(w(T176), T177))
unif_pairs51_in_ga(w(T180), .(black, T181)) → U23_ga(T180, T181, unif_pairs60_in_a(T181))
U23_ga(T180, T181, unif_pairs60_out_a(T181)) → unif_pairs51_out_ga(w(T180), .(black, T181))
U17_gaggaa(T103, T113, T104, T107, T106, T108, unif_pairs51_out_ga(T103, T113)) → p50_out_gaggaa(T103, T113, T104, T107, T106, T108)
p50_in_gaggaa(T103, T113, T117, T118, T119, T120) → U18_gaggaa(T103, T113, T117, T118, T119, T120, unif_pairs51_in_ga(T103, T113))
U18_gaggaa(T103, T113, T117, T118, T119, T120, unif_pairs51_out_ga(T103, T113)) → U19_gaggaa(T103, T113, T117, T118, T119, T120, unif_lines43_in_ga(.(T117, T118), .(T119, T120)))
unif_lines43_in_ga(.(T192, []), .(T193, [])) → unif_lines43_out_ga(.(T192, []), .(T193, []))
U19_gaggaa(T103, T113, T117, T118, T119, T120, unif_lines43_out_ga(.(T117, T118), .(T119, T120))) → p50_out_gaggaa(T103, T113, T117, T118, T119, T120)
U9_ga(T103, T104, T107, T105, T106, T108, p50_out_gaggaa(T103, .(T104, .(T105, .(T106, .(T103, .(T105, .(T104, .(T106, .(T103, .(T106, .(T104, .(T105, []))))))))))), T104, T107, T106, T108)) → unif_lines43_out_ga(.(T103, .(T104, T107)), .(T105, .(T106, T108)))
U6_ga(T56, T57, T58, unif_lines43_out_ga(T56, T57)) → unif_matrx37_out_ga(T56, .(T57, T58))
unif_matrx37_in_ga(T56, .(T65, T66)) → U7_ga(T56, T65, T66, unif_lines43_in_ga(T56, T65))
U7_ga(T56, T65, T66, unif_lines43_out_ga(T56, T65)) → U8_ga(T56, T65, T66, unif_matrx37_in_aa(T65, T66))
U8_ga(T56, T65, T66, unif_matrx37_out_aa(T65, T66)) → unif_matrx37_out_ga(T56, .(T65, T66))
unif_matrx37_in_ga(T199, []) → unif_matrx37_out_ga(T199, [])
U16_gag(T16, T37, T17, unif_matrx37_out_ga(T17, T37)) → p17_out_gag(T16, T37, T17)
U27_ga(T204, T6, p17_out_gag(T204, X293, black)) → shapes1_out_ga(.(black, T204), T6)
shapes1_in_ga(.(white, T207), T6) → U28_ga(T207, T6, p17_in_gag(T207, X310, w(X309)))
U28_ga(T207, T6, p17_out_gag(T207, X310, w(X309))) → shapes1_out_ga(.(white, T207), T6)
UNIF_PAIRS60_IN_A(.(black, .(black, T160))) → UNIF_PAIRS60_IN_A(T160)
UNIF_PAIRS60_IN_A(.(w(T158), .(w(T158), T159))) → UNIF_PAIRS60_IN_A(T159)
UNIF_PAIRS60_IN_A(.(black, .(w(T165), T166))) → UNIF_PAIRS60_IN_A(T166)
UNIF_PAIRS60_IN_A(.(w(T169), .(black, T170))) → UNIF_PAIRS60_IN_A(T170)
UNIF_PAIRS60_IN_A → UNIF_PAIRS60_IN_A
P50_IN_GAGGAA(T103, T113, T117, T118, T119, T120) → U18_GAGGAA(T103, T113, T117, T118, T119, T120, unif_pairs51_in_ga(T103, T113))
U18_GAGGAA(T103, T113, T117, T118, T119, T120, unif_pairs51_out_ga(T103, T113)) → UNIF_LINES43_IN_GA(.(T117, T118), .(T119, T120))
UNIF_LINES43_IN_GA(.(T103, .(T104, T107)), .(T105, .(T106, T108))) → P50_IN_GAGGAA(T103, .(T104, .(T105, .(T106, .(T103, .(T105, .(T104, .(T106, .(T103, .(T106, .(T104, .(T105, []))))))))))), T104, T107, T106, T108)
shapes1_in_ga(.(T15, T16), T6) → U24_ga(T15, T16, T6, varmat16_in_ga(T15, X49))
varmat16_in_ga([], []) → varmat16_out_ga([], [])
varmat16_in_ga(.(T26, T27), .(X83, X84)) → U1_ga(T26, T27, X83, X84, varmat16_in_ga(T26, X83))
varmat16_in_ga(.(T26, T27), .(T28, X84)) → U2_ga(T26, T27, T28, X84, varmat16_in_ga(T26, T28))
varmat16_in_ga(.(black, T33), .(black, X103)) → U4_ga(T33, X103, varmat16_in_ga(T33, X103))
varmat16_in_ga(.(white, T36), .(w(X119), X120)) → U5_ga(T36, X119, X120, varmat16_in_ga(T36, X120))
U5_ga(T36, X119, X120, varmat16_out_ga(T36, X120)) → varmat16_out_ga(.(white, T36), .(w(X119), X120))
U4_ga(T33, X103, varmat16_out_ga(T33, X103)) → varmat16_out_ga(.(black, T33), .(black, X103))
U2_ga(T26, T27, T28, X84, varmat16_out_ga(T26, T28)) → U3_ga(T26, T27, T28, X84, varmat16_in_ga(T27, X84))
U3_ga(T26, T27, T28, X84, varmat16_out_ga(T27, X84)) → varmat16_out_ga(.(T26, T27), .(T28, X84))
U1_ga(T26, T27, X83, X84, varmat16_out_ga(T26, X83)) → varmat16_out_ga(.(T26, T27), .(X83, X84))
U24_ga(T15, T16, T6, varmat16_out_ga(T15, X49)) → shapes1_out_ga(.(T15, T16), T6)
shapes1_in_ga(.(T15, T16), T6) → U25_ga(T15, T16, T6, varmat16_in_ga(T15, T17))
U25_ga(T15, T16, T6, varmat16_out_ga(T15, T17)) → U26_ga(T15, T16, T6, p17_in_gaa(T16, X50, T17))
p17_in_gaa(T16, X50, T17) → U14_gaa(T16, X50, T17, varmat16_in_ga(T16, X50))
U14_gaa(T16, X50, T17, varmat16_out_ga(T16, X50)) → p17_out_gaa(T16, X50, T17)
p17_in_gaa(T16, T37, T17) → U15_gaa(T16, T37, T17, varmat16_in_ga(T16, T37))
U15_gaa(T16, T37, T17, varmat16_out_ga(T16, T37)) → U16_gaa(T16, T37, T17, unif_matrx37_in_aa(T17, T37))
unif_matrx37_in_aa(T56, .(T57, T58)) → U6_aa(T56, T57, T58, unif_lines43_in_aa(T56, T57))
unif_lines43_in_aa(.(T103, .(T104, T107)), .(T105, .(T106, T108))) → U9_aa(T103, T104, T107, T105, T106, T108, p50_in_aaaaaa(T103, .(T104, .(T105, .(T106, .(T103, .(T105, .(T104, .(T106, .(T103, .(T106, .(T104, .(T105, []))))))))))), T104, T107, T106, T108))
p50_in_aaaaaa(T103, T113, T104, T107, T106, T108) → U17_aaaaaa(T103, T113, T104, T107, T106, T108, unif_pairs51_in_aa(T103, T113))
unif_pairs51_in_aa(w(T140), .(w(T140), T141)) → U20_aa(T140, T141, unif_pairs60_in_a(T141))
unif_pairs60_in_a([]) → unif_pairs60_out_a([])
unif_pairs60_in_a(.(w(T158), .(w(T158), T159))) → U10_a(T158, T159, unif_pairs60_in_a(T159))
unif_pairs60_in_a(.(black, .(black, T160))) → U11_a(T160, unif_pairs60_in_a(T160))
unif_pairs60_in_a(.(black, .(w(T165), T166))) → U12_a(T165, T166, unif_pairs60_in_a(T166))
unif_pairs60_in_a(.(w(T169), .(black, T170))) → U13_a(T169, T170, unif_pairs60_in_a(T170))
U13_a(T169, T170, unif_pairs60_out_a(T170)) → unif_pairs60_out_a(.(w(T169), .(black, T170)))
U12_a(T165, T166, unif_pairs60_out_a(T166)) → unif_pairs60_out_a(.(black, .(w(T165), T166)))
U11_a(T160, unif_pairs60_out_a(T160)) → unif_pairs60_out_a(.(black, .(black, T160)))
U10_a(T158, T159, unif_pairs60_out_a(T159)) → unif_pairs60_out_a(.(w(T158), .(w(T158), T159)))
U20_aa(T140, T141, unif_pairs60_out_a(T141)) → unif_pairs51_out_aa(w(T140), .(w(T140), T141))
unif_pairs51_in_aa(black, .(black, T171)) → U21_aa(T171, unif_pairs60_in_a(T171))
U21_aa(T171, unif_pairs60_out_a(T171)) → unif_pairs51_out_aa(black, .(black, T171))
unif_pairs51_in_aa(black, .(w(T176), T177)) → U22_aa(T176, T177, unif_pairs60_in_a(T177))
U22_aa(T176, T177, unif_pairs60_out_a(T177)) → unif_pairs51_out_aa(black, .(w(T176), T177))
unif_pairs51_in_aa(w(T180), .(black, T181)) → U23_aa(T180, T181, unif_pairs60_in_a(T181))
U23_aa(T180, T181, unif_pairs60_out_a(T181)) → unif_pairs51_out_aa(w(T180), .(black, T181))
U17_aaaaaa(T103, T113, T104, T107, T106, T108, unif_pairs51_out_aa(T103, T113)) → p50_out_aaaaaa(T103, T113, T104, T107, T106, T108)
p50_in_aaaaaa(T103, T113, T117, T118, T119, T120) → U18_aaaaaa(T103, T113, T117, T118, T119, T120, unif_pairs51_in_aa(T103, T113))
U18_aaaaaa(T103, T113, T117, T118, T119, T120, unif_pairs51_out_aa(T103, T113)) → U19_aaaaaa(T103, T113, T117, T118, T119, T120, unif_lines43_in_aa(.(T117, T118), .(T119, T120)))
unif_lines43_in_aa(.(T192, []), .(T193, [])) → unif_lines43_out_aa(.(T192, []), .(T193, []))
U19_aaaaaa(T103, T113, T117, T118, T119, T120, unif_lines43_out_aa(.(T117, T118), .(T119, T120))) → p50_out_aaaaaa(T103, T113, T117, T118, T119, T120)
U9_aa(T103, T104, T107, T105, T106, T108, p50_out_aaaaaa(T103, .(T104, .(T105, .(T106, .(T103, .(T105, .(T104, .(T106, .(T103, .(T106, .(T104, .(T105, []))))))))))), T104, T107, T106, T108)) → unif_lines43_out_aa(.(T103, .(T104, T107)), .(T105, .(T106, T108)))
U6_aa(T56, T57, T58, unif_lines43_out_aa(T56, T57)) → unif_matrx37_out_aa(T56, .(T57, T58))
unif_matrx37_in_aa(T56, .(T65, T66)) → U7_aa(T56, T65, T66, unif_lines43_in_aa(T56, T65))
U7_aa(T56, T65, T66, unif_lines43_out_aa(T56, T65)) → U8_aa(T56, T65, T66, unif_matrx37_in_aa(T65, T66))
unif_matrx37_in_aa(T199, []) → unif_matrx37_out_aa(T199, [])
U8_aa(T56, T65, T66, unif_matrx37_out_aa(T65, T66)) → unif_matrx37_out_aa(T56, .(T65, T66))
U16_gaa(T16, T37, T17, unif_matrx37_out_aa(T17, T37)) → p17_out_gaa(T16, T37, T17)
U26_ga(T15, T16, T6, p17_out_gaa(T16, X50, T17)) → shapes1_out_ga(.(T15, T16), T6)
shapes1_in_ga(.(black, T204), T6) → U27_ga(T204, T6, p17_in_gag(T204, X293, black))
p17_in_gag(T16, X50, T17) → U14_gag(T16, X50, T17, varmat16_in_ga(T16, X50))
U14_gag(T16, X50, T17, varmat16_out_ga(T16, X50)) → p17_out_gag(T16, X50, T17)
p17_in_gag(T16, T37, T17) → U15_gag(T16, T37, T17, varmat16_in_ga(T16, T37))
U15_gag(T16, T37, T17, varmat16_out_ga(T16, T37)) → U16_gag(T16, T37, T17, unif_matrx37_in_ga(T17, T37))
unif_matrx37_in_ga(T56, .(T57, T58)) → U6_ga(T56, T57, T58, unif_lines43_in_ga(T56, T57))
unif_lines43_in_ga(.(T103, .(T104, T107)), .(T105, .(T106, T108))) → U9_ga(T103, T104, T107, T105, T106, T108, p50_in_gaggaa(T103, .(T104, .(T105, .(T106, .(T103, .(T105, .(T104, .(T106, .(T103, .(T106, .(T104, .(T105, []))))))))))), T104, T107, T106, T108))
p50_in_gaggaa(T103, T113, T104, T107, T106, T108) → U17_gaggaa(T103, T113, T104, T107, T106, T108, unif_pairs51_in_ga(T103, T113))
unif_pairs51_in_ga(w(T140), .(w(T140), T141)) → U20_ga(T140, T141, unif_pairs60_in_a(T141))
U20_ga(T140, T141, unif_pairs60_out_a(T141)) → unif_pairs51_out_ga(w(T140), .(w(T140), T141))
unif_pairs51_in_ga(black, .(black, T171)) → U21_ga(T171, unif_pairs60_in_a(T171))
U21_ga(T171, unif_pairs60_out_a(T171)) → unif_pairs51_out_ga(black, .(black, T171))
unif_pairs51_in_ga(black, .(w(T176), T177)) → U22_ga(T176, T177, unif_pairs60_in_a(T177))
U22_ga(T176, T177, unif_pairs60_out_a(T177)) → unif_pairs51_out_ga(black, .(w(T176), T177))
unif_pairs51_in_ga(w(T180), .(black, T181)) → U23_ga(T180, T181, unif_pairs60_in_a(T181))
U23_ga(T180, T181, unif_pairs60_out_a(T181)) → unif_pairs51_out_ga(w(T180), .(black, T181))
U17_gaggaa(T103, T113, T104, T107, T106, T108, unif_pairs51_out_ga(T103, T113)) → p50_out_gaggaa(T103, T113, T104, T107, T106, T108)
p50_in_gaggaa(T103, T113, T117, T118, T119, T120) → U18_gaggaa(T103, T113, T117, T118, T119, T120, unif_pairs51_in_ga(T103, T113))
U18_gaggaa(T103, T113, T117, T118, T119, T120, unif_pairs51_out_ga(T103, T113)) → U19_gaggaa(T103, T113, T117, T118, T119, T120, unif_lines43_in_ga(.(T117, T118), .(T119, T120)))
unif_lines43_in_ga(.(T192, []), .(T193, [])) → unif_lines43_out_ga(.(T192, []), .(T193, []))
U19_gaggaa(T103, T113, T117, T118, T119, T120, unif_lines43_out_ga(.(T117, T118), .(T119, T120))) → p50_out_gaggaa(T103, T113, T117, T118, T119, T120)
U9_ga(T103, T104, T107, T105, T106, T108, p50_out_gaggaa(T103, .(T104, .(T105, .(T106, .(T103, .(T105, .(T104, .(T106, .(T103, .(T106, .(T104, .(T105, []))))))))))), T104, T107, T106, T108)) → unif_lines43_out_ga(.(T103, .(T104, T107)), .(T105, .(T106, T108)))
U6_ga(T56, T57, T58, unif_lines43_out_ga(T56, T57)) → unif_matrx37_out_ga(T56, .(T57, T58))
unif_matrx37_in_ga(T56, .(T65, T66)) → U7_ga(T56, T65, T66, unif_lines43_in_ga(T56, T65))
U7_ga(T56, T65, T66, unif_lines43_out_ga(T56, T65)) → U8_ga(T56, T65, T66, unif_matrx37_in_aa(T65, T66))
U8_ga(T56, T65, T66, unif_matrx37_out_aa(T65, T66)) → unif_matrx37_out_ga(T56, .(T65, T66))
unif_matrx37_in_ga(T199, []) → unif_matrx37_out_ga(T199, [])
U16_gag(T16, T37, T17, unif_matrx37_out_ga(T17, T37)) → p17_out_gag(T16, T37, T17)
U27_ga(T204, T6, p17_out_gag(T204, X293, black)) → shapes1_out_ga(.(black, T204), T6)
shapes1_in_ga(.(white, T207), T6) → U28_ga(T207, T6, p17_in_gag(T207, X310, w(X309)))
U28_ga(T207, T6, p17_out_gag(T207, X310, w(X309))) → shapes1_out_ga(.(white, T207), T6)
P50_IN_GAGGAA(T103, T113, T117, T118, T119, T120) → U18_GAGGAA(T103, T113, T117, T118, T119, T120, unif_pairs51_in_ga(T103, T113))
U18_GAGGAA(T103, T113, T117, T118, T119, T120, unif_pairs51_out_ga(T103, T113)) → UNIF_LINES43_IN_GA(.(T117, T118), .(T119, T120))
UNIF_LINES43_IN_GA(.(T103, .(T104, T107)), .(T105, .(T106, T108))) → P50_IN_GAGGAA(T103, .(T104, .(T105, .(T106, .(T103, .(T105, .(T104, .(T106, .(T103, .(T106, .(T104, .(T105, []))))))))))), T104, T107, T106, T108)
unif_pairs51_in_ga(w(T140), .(w(T140), T141)) → U20_ga(T140, T141, unif_pairs60_in_a(T141))
unif_pairs51_in_ga(black, .(black, T171)) → U21_ga(T171, unif_pairs60_in_a(T171))
unif_pairs51_in_ga(black, .(w(T176), T177)) → U22_ga(T176, T177, unif_pairs60_in_a(T177))
unif_pairs51_in_ga(w(T180), .(black, T181)) → U23_ga(T180, T181, unif_pairs60_in_a(T181))
U20_ga(T140, T141, unif_pairs60_out_a(T141)) → unif_pairs51_out_ga(w(T140), .(w(T140), T141))
U21_ga(T171, unif_pairs60_out_a(T171)) → unif_pairs51_out_ga(black, .(black, T171))
U22_ga(T176, T177, unif_pairs60_out_a(T177)) → unif_pairs51_out_ga(black, .(w(T176), T177))
U23_ga(T180, T181, unif_pairs60_out_a(T181)) → unif_pairs51_out_ga(w(T180), .(black, T181))
unif_pairs60_in_a([]) → unif_pairs60_out_a([])
unif_pairs60_in_a(.(w(T158), .(w(T158), T159))) → U10_a(T158, T159, unif_pairs60_in_a(T159))
unif_pairs60_in_a(.(black, .(black, T160))) → U11_a(T160, unif_pairs60_in_a(T160))
unif_pairs60_in_a(.(black, .(w(T165), T166))) → U12_a(T165, T166, unif_pairs60_in_a(T166))
unif_pairs60_in_a(.(w(T169), .(black, T170))) → U13_a(T169, T170, unif_pairs60_in_a(T170))
U10_a(T158, T159, unif_pairs60_out_a(T159)) → unif_pairs60_out_a(.(w(T158), .(w(T158), T159)))
U11_a(T160, unif_pairs60_out_a(T160)) → unif_pairs60_out_a(.(black, .(black, T160)))
U12_a(T165, T166, unif_pairs60_out_a(T166)) → unif_pairs60_out_a(.(black, .(w(T165), T166)))
U13_a(T169, T170, unif_pairs60_out_a(T170)) → unif_pairs60_out_a(.(w(T169), .(black, T170)))
P50_IN_GAGGAA(T103, T117, T118) → U18_GAGGAA(T117, T118, unif_pairs51_in_ga(T103))
U18_GAGGAA(T117, T118, unif_pairs51_out_ga(T113)) → UNIF_LINES43_IN_GA(.(T117, T118))
UNIF_LINES43_IN_GA(.(T103, .(T104, T107))) → P50_IN_GAGGAA(T103, T104, T107)
unif_pairs51_in_ga(w) → U20_ga(unif_pairs60_in_a)
unif_pairs51_in_ga(black) → U21_ga(unif_pairs60_in_a)
unif_pairs51_in_ga(black) → U22_ga(unif_pairs60_in_a)
unif_pairs51_in_ga(w) → U23_ga(unif_pairs60_in_a)
U20_ga(unif_pairs60_out_a(T141)) → unif_pairs51_out_ga(.(w, T141))
U21_ga(unif_pairs60_out_a(T171)) → unif_pairs51_out_ga(.(black, T171))
U22_ga(unif_pairs60_out_a(T177)) → unif_pairs51_out_ga(.(w, T177))
U23_ga(unif_pairs60_out_a(T181)) → unif_pairs51_out_ga(.(black, T181))
unif_pairs60_in_a → unif_pairs60_out_a([])
unif_pairs60_in_a → U10_a(unif_pairs60_in_a)
unif_pairs60_in_a → U11_a(unif_pairs60_in_a)
unif_pairs60_in_a → U12_a(unif_pairs60_in_a)
unif_pairs60_in_a → U13_a(unif_pairs60_in_a)
U10_a(unif_pairs60_out_a(T159)) → unif_pairs60_out_a(.(w, .(w, T159)))
U11_a(unif_pairs60_out_a(T160)) → unif_pairs60_out_a(.(black, .(black, T160)))
U12_a(unif_pairs60_out_a(T166)) → unif_pairs60_out_a(.(black, .(w, T166)))
U13_a(unif_pairs60_out_a(T170)) → unif_pairs60_out_a(.(w, .(black, T170)))
unif_pairs51_in_ga(x0)
U20_ga(x0)
U21_ga(x0)
U22_ga(x0)
U23_ga(x0)
unif_pairs60_in_a
U10_a(x0)
U11_a(x0)
U12_a(x0)
U13_a(x0)
The following pairs can be oriented strictly and are deleted.
The remaining pairs can at least be oriented weakly.
UNIF_LINES43_IN_GA(.(T103, .(T104, T107))) → P50_IN_GAGGAA(T103, T104, T107)
POL(.(x1, x2)) = 1 + x2
POL(P50_IN_GAGGAA(x1, x2, x3)) = 1 + x3
POL(U10_a(x1)) = 0
POL(U11_a(x1)) = 0
POL(U12_a(x1)) = 0
POL(U13_a(x1)) = 0
POL(U18_GAGGAA(x1, x2, x3)) = 1 + x2
POL(U20_ga(x1)) = 0
POL(U21_ga(x1)) = 0
POL(U22_ga(x1)) = 0
POL(U23_ga(x1)) = 0
POL(UNIF_LINES43_IN_GA(x1)) = x1
POL([]) = 0
POL(black) = 0
POL(unif_pairs51_in_ga(x1)) = 0
POL(unif_pairs51_out_ga(x1)) = 0
POL(unif_pairs60_in_a) = 0
POL(unif_pairs60_out_a(x1)) = 0
POL(w) = 0
P50_IN_GAGGAA(T103, T117, T118) → U18_GAGGAA(T117, T118, unif_pairs51_in_ga(T103))
U18_GAGGAA(T117, T118, unif_pairs51_out_ga(T113)) → UNIF_LINES43_IN_GA(.(T117, T118))
unif_pairs51_in_ga(w) → U20_ga(unif_pairs60_in_a)
unif_pairs51_in_ga(black) → U21_ga(unif_pairs60_in_a)
unif_pairs51_in_ga(black) → U22_ga(unif_pairs60_in_a)
unif_pairs51_in_ga(w) → U23_ga(unif_pairs60_in_a)
U20_ga(unif_pairs60_out_a(T141)) → unif_pairs51_out_ga(.(w, T141))
U21_ga(unif_pairs60_out_a(T171)) → unif_pairs51_out_ga(.(black, T171))
U22_ga(unif_pairs60_out_a(T177)) → unif_pairs51_out_ga(.(w, T177))
U23_ga(unif_pairs60_out_a(T181)) → unif_pairs51_out_ga(.(black, T181))
unif_pairs60_in_a → unif_pairs60_out_a([])
unif_pairs60_in_a → U10_a(unif_pairs60_in_a)
unif_pairs60_in_a → U11_a(unif_pairs60_in_a)
unif_pairs60_in_a → U12_a(unif_pairs60_in_a)
unif_pairs60_in_a → U13_a(unif_pairs60_in_a)
U10_a(unif_pairs60_out_a(T159)) → unif_pairs60_out_a(.(w, .(w, T159)))
U11_a(unif_pairs60_out_a(T160)) → unif_pairs60_out_a(.(black, .(black, T160)))
U12_a(unif_pairs60_out_a(T166)) → unif_pairs60_out_a(.(black, .(w, T166)))
U13_a(unif_pairs60_out_a(T170)) → unif_pairs60_out_a(.(w, .(black, T170)))
unif_pairs51_in_ga(x0)
U20_ga(x0)
U21_ga(x0)
U22_ga(x0)
U23_ga(x0)
unif_pairs60_in_a
U10_a(x0)
U11_a(x0)
U12_a(x0)
U13_a(x0)
UNIF_LINES43_IN_AA(.(T103, .(T104, T107)), .(T105, .(T106, T108))) → P50_IN_AAAAAA(T103, .(T104, .(T105, .(T106, .(T103, .(T105, .(T104, .(T106, .(T103, .(T106, .(T104, .(T105, []))))))))))), T104, T107, T106, T108)
P50_IN_AAAAAA(T103, T113, T117, T118, T119, T120) → U18_AAAAAA(T103, T113, T117, T118, T119, T120, unif_pairs51_in_aa(T103, T113))
U18_AAAAAA(T103, T113, T117, T118, T119, T120, unif_pairs51_out_aa(T103, T113)) → UNIF_LINES43_IN_AA(.(T117, T118), .(T119, T120))
shapes1_in_ga(.(T15, T16), T6) → U24_ga(T15, T16, T6, varmat16_in_ga(T15, X49))
varmat16_in_ga([], []) → varmat16_out_ga([], [])
varmat16_in_ga(.(T26, T27), .(X83, X84)) → U1_ga(T26, T27, X83, X84, varmat16_in_ga(T26, X83))
varmat16_in_ga(.(T26, T27), .(T28, X84)) → U2_ga(T26, T27, T28, X84, varmat16_in_ga(T26, T28))
varmat16_in_ga(.(black, T33), .(black, X103)) → U4_ga(T33, X103, varmat16_in_ga(T33, X103))
varmat16_in_ga(.(white, T36), .(w(X119), X120)) → U5_ga(T36, X119, X120, varmat16_in_ga(T36, X120))
U5_ga(T36, X119, X120, varmat16_out_ga(T36, X120)) → varmat16_out_ga(.(white, T36), .(w(X119), X120))
U4_ga(T33, X103, varmat16_out_ga(T33, X103)) → varmat16_out_ga(.(black, T33), .(black, X103))
U2_ga(T26, T27, T28, X84, varmat16_out_ga(T26, T28)) → U3_ga(T26, T27, T28, X84, varmat16_in_ga(T27, X84))
U3_ga(T26, T27, T28, X84, varmat16_out_ga(T27, X84)) → varmat16_out_ga(.(T26, T27), .(T28, X84))
U1_ga(T26, T27, X83, X84, varmat16_out_ga(T26, X83)) → varmat16_out_ga(.(T26, T27), .(X83, X84))
U24_ga(T15, T16, T6, varmat16_out_ga(T15, X49)) → shapes1_out_ga(.(T15, T16), T6)
shapes1_in_ga(.(T15, T16), T6) → U25_ga(T15, T16, T6, varmat16_in_ga(T15, T17))
U25_ga(T15, T16, T6, varmat16_out_ga(T15, T17)) → U26_ga(T15, T16, T6, p17_in_gaa(T16, X50, T17))
p17_in_gaa(T16, X50, T17) → U14_gaa(T16, X50, T17, varmat16_in_ga(T16, X50))
U14_gaa(T16, X50, T17, varmat16_out_ga(T16, X50)) → p17_out_gaa(T16, X50, T17)
p17_in_gaa(T16, T37, T17) → U15_gaa(T16, T37, T17, varmat16_in_ga(T16, T37))
U15_gaa(T16, T37, T17, varmat16_out_ga(T16, T37)) → U16_gaa(T16, T37, T17, unif_matrx37_in_aa(T17, T37))
unif_matrx37_in_aa(T56, .(T57, T58)) → U6_aa(T56, T57, T58, unif_lines43_in_aa(T56, T57))
unif_lines43_in_aa(.(T103, .(T104, T107)), .(T105, .(T106, T108))) → U9_aa(T103, T104, T107, T105, T106, T108, p50_in_aaaaaa(T103, .(T104, .(T105, .(T106, .(T103, .(T105, .(T104, .(T106, .(T103, .(T106, .(T104, .(T105, []))))))))))), T104, T107, T106, T108))
p50_in_aaaaaa(T103, T113, T104, T107, T106, T108) → U17_aaaaaa(T103, T113, T104, T107, T106, T108, unif_pairs51_in_aa(T103, T113))
unif_pairs51_in_aa(w(T140), .(w(T140), T141)) → U20_aa(T140, T141, unif_pairs60_in_a(T141))
unif_pairs60_in_a([]) → unif_pairs60_out_a([])
unif_pairs60_in_a(.(w(T158), .(w(T158), T159))) → U10_a(T158, T159, unif_pairs60_in_a(T159))
unif_pairs60_in_a(.(black, .(black, T160))) → U11_a(T160, unif_pairs60_in_a(T160))
unif_pairs60_in_a(.(black, .(w(T165), T166))) → U12_a(T165, T166, unif_pairs60_in_a(T166))
unif_pairs60_in_a(.(w(T169), .(black, T170))) → U13_a(T169, T170, unif_pairs60_in_a(T170))
U13_a(T169, T170, unif_pairs60_out_a(T170)) → unif_pairs60_out_a(.(w(T169), .(black, T170)))
U12_a(T165, T166, unif_pairs60_out_a(T166)) → unif_pairs60_out_a(.(black, .(w(T165), T166)))
U11_a(T160, unif_pairs60_out_a(T160)) → unif_pairs60_out_a(.(black, .(black, T160)))
U10_a(T158, T159, unif_pairs60_out_a(T159)) → unif_pairs60_out_a(.(w(T158), .(w(T158), T159)))
U20_aa(T140, T141, unif_pairs60_out_a(T141)) → unif_pairs51_out_aa(w(T140), .(w(T140), T141))
unif_pairs51_in_aa(black, .(black, T171)) → U21_aa(T171, unif_pairs60_in_a(T171))
U21_aa(T171, unif_pairs60_out_a(T171)) → unif_pairs51_out_aa(black, .(black, T171))
unif_pairs51_in_aa(black, .(w(T176), T177)) → U22_aa(T176, T177, unif_pairs60_in_a(T177))
U22_aa(T176, T177, unif_pairs60_out_a(T177)) → unif_pairs51_out_aa(black, .(w(T176), T177))
unif_pairs51_in_aa(w(T180), .(black, T181)) → U23_aa(T180, T181, unif_pairs60_in_a(T181))
U23_aa(T180, T181, unif_pairs60_out_a(T181)) → unif_pairs51_out_aa(w(T180), .(black, T181))
U17_aaaaaa(T103, T113, T104, T107, T106, T108, unif_pairs51_out_aa(T103, T113)) → p50_out_aaaaaa(T103, T113, T104, T107, T106, T108)
p50_in_aaaaaa(T103, T113, T117, T118, T119, T120) → U18_aaaaaa(T103, T113, T117, T118, T119, T120, unif_pairs51_in_aa(T103, T113))
U18_aaaaaa(T103, T113, T117, T118, T119, T120, unif_pairs51_out_aa(T103, T113)) → U19_aaaaaa(T103, T113, T117, T118, T119, T120, unif_lines43_in_aa(.(T117, T118), .(T119, T120)))
unif_lines43_in_aa(.(T192, []), .(T193, [])) → unif_lines43_out_aa(.(T192, []), .(T193, []))
U19_aaaaaa(T103, T113, T117, T118, T119, T120, unif_lines43_out_aa(.(T117, T118), .(T119, T120))) → p50_out_aaaaaa(T103, T113, T117, T118, T119, T120)
U9_aa(T103, T104, T107, T105, T106, T108, p50_out_aaaaaa(T103, .(T104, .(T105, .(T106, .(T103, .(T105, .(T104, .(T106, .(T103, .(T106, .(T104, .(T105, []))))))))))), T104, T107, T106, T108)) → unif_lines43_out_aa(.(T103, .(T104, T107)), .(T105, .(T106, T108)))
U6_aa(T56, T57, T58, unif_lines43_out_aa(T56, T57)) → unif_matrx37_out_aa(T56, .(T57, T58))
unif_matrx37_in_aa(T56, .(T65, T66)) → U7_aa(T56, T65, T66, unif_lines43_in_aa(T56, T65))
U7_aa(T56, T65, T66, unif_lines43_out_aa(T56, T65)) → U8_aa(T56, T65, T66, unif_matrx37_in_aa(T65, T66))
unif_matrx37_in_aa(T199, []) → unif_matrx37_out_aa(T199, [])
U8_aa(T56, T65, T66, unif_matrx37_out_aa(T65, T66)) → unif_matrx37_out_aa(T56, .(T65, T66))
U16_gaa(T16, T37, T17, unif_matrx37_out_aa(T17, T37)) → p17_out_gaa(T16, T37, T17)
U26_ga(T15, T16, T6, p17_out_gaa(T16, X50, T17)) → shapes1_out_ga(.(T15, T16), T6)
shapes1_in_ga(.(black, T204), T6) → U27_ga(T204, T6, p17_in_gag(T204, X293, black))
p17_in_gag(T16, X50, T17) → U14_gag(T16, X50, T17, varmat16_in_ga(T16, X50))
U14_gag(T16, X50, T17, varmat16_out_ga(T16, X50)) → p17_out_gag(T16, X50, T17)
p17_in_gag(T16, T37, T17) → U15_gag(T16, T37, T17, varmat16_in_ga(T16, T37))
U15_gag(T16, T37, T17, varmat16_out_ga(T16, T37)) → U16_gag(T16, T37, T17, unif_matrx37_in_ga(T17, T37))
unif_matrx37_in_ga(T56, .(T57, T58)) → U6_ga(T56, T57, T58, unif_lines43_in_ga(T56, T57))
unif_lines43_in_ga(.(T103, .(T104, T107)), .(T105, .(T106, T108))) → U9_ga(T103, T104, T107, T105, T106, T108, p50_in_gaggaa(T103, .(T104, .(T105, .(T106, .(T103, .(T105, .(T104, .(T106, .(T103, .(T106, .(T104, .(T105, []))))))))))), T104, T107, T106, T108))
p50_in_gaggaa(T103, T113, T104, T107, T106, T108) → U17_gaggaa(T103, T113, T104, T107, T106, T108, unif_pairs51_in_ga(T103, T113))
unif_pairs51_in_ga(w(T140), .(w(T140), T141)) → U20_ga(T140, T141, unif_pairs60_in_a(T141))
U20_ga(T140, T141, unif_pairs60_out_a(T141)) → unif_pairs51_out_ga(w(T140), .(w(T140), T141))
unif_pairs51_in_ga(black, .(black, T171)) → U21_ga(T171, unif_pairs60_in_a(T171))
U21_ga(T171, unif_pairs60_out_a(T171)) → unif_pairs51_out_ga(black, .(black, T171))
unif_pairs51_in_ga(black, .(w(T176), T177)) → U22_ga(T176, T177, unif_pairs60_in_a(T177))
U22_ga(T176, T177, unif_pairs60_out_a(T177)) → unif_pairs51_out_ga(black, .(w(T176), T177))
unif_pairs51_in_ga(w(T180), .(black, T181)) → U23_ga(T180, T181, unif_pairs60_in_a(T181))
U23_ga(T180, T181, unif_pairs60_out_a(T181)) → unif_pairs51_out_ga(w(T180), .(black, T181))
U17_gaggaa(T103, T113, T104, T107, T106, T108, unif_pairs51_out_ga(T103, T113)) → p50_out_gaggaa(T103, T113, T104, T107, T106, T108)
p50_in_gaggaa(T103, T113, T117, T118, T119, T120) → U18_gaggaa(T103, T113, T117, T118, T119, T120, unif_pairs51_in_ga(T103, T113))
U18_gaggaa(T103, T113, T117, T118, T119, T120, unif_pairs51_out_ga(T103, T113)) → U19_gaggaa(T103, T113, T117, T118, T119, T120, unif_lines43_in_ga(.(T117, T118), .(T119, T120)))
unif_lines43_in_ga(.(T192, []), .(T193, [])) → unif_lines43_out_ga(.(T192, []), .(T193, []))
U19_gaggaa(T103, T113, T117, T118, T119, T120, unif_lines43_out_ga(.(T117, T118), .(T119, T120))) → p50_out_gaggaa(T103, T113, T117, T118, T119, T120)
U9_ga(T103, T104, T107, T105, T106, T108, p50_out_gaggaa(T103, .(T104, .(T105, .(T106, .(T103, .(T105, .(T104, .(T106, .(T103, .(T106, .(T104, .(T105, []))))))))))), T104, T107, T106, T108)) → unif_lines43_out_ga(.(T103, .(T104, T107)), .(T105, .(T106, T108)))
U6_ga(T56, T57, T58, unif_lines43_out_ga(T56, T57)) → unif_matrx37_out_ga(T56, .(T57, T58))
unif_matrx37_in_ga(T56, .(T65, T66)) → U7_ga(T56, T65, T66, unif_lines43_in_ga(T56, T65))
U7_ga(T56, T65, T66, unif_lines43_out_ga(T56, T65)) → U8_ga(T56, T65, T66, unif_matrx37_in_aa(T65, T66))
U8_ga(T56, T65, T66, unif_matrx37_out_aa(T65, T66)) → unif_matrx37_out_ga(T56, .(T65, T66))
unif_matrx37_in_ga(T199, []) → unif_matrx37_out_ga(T199, [])
U16_gag(T16, T37, T17, unif_matrx37_out_ga(T17, T37)) → p17_out_gag(T16, T37, T17)
U27_ga(T204, T6, p17_out_gag(T204, X293, black)) → shapes1_out_ga(.(black, T204), T6)
shapes1_in_ga(.(white, T207), T6) → U28_ga(T207, T6, p17_in_gag(T207, X310, w(X309)))
U28_ga(T207, T6, p17_out_gag(T207, X310, w(X309))) → shapes1_out_ga(.(white, T207), T6)
UNIF_LINES43_IN_AA(.(T103, .(T104, T107)), .(T105, .(T106, T108))) → P50_IN_AAAAAA(T103, .(T104, .(T105, .(T106, .(T103, .(T105, .(T104, .(T106, .(T103, .(T106, .(T104, .(T105, []))))))))))), T104, T107, T106, T108)
P50_IN_AAAAAA(T103, T113, T117, T118, T119, T120) → U18_AAAAAA(T103, T113, T117, T118, T119, T120, unif_pairs51_in_aa(T103, T113))
U18_AAAAAA(T103, T113, T117, T118, T119, T120, unif_pairs51_out_aa(T103, T113)) → UNIF_LINES43_IN_AA(.(T117, T118), .(T119, T120))
unif_pairs51_in_aa(w(T140), .(w(T140), T141)) → U20_aa(T140, T141, unif_pairs60_in_a(T141))
unif_pairs51_in_aa(black, .(black, T171)) → U21_aa(T171, unif_pairs60_in_a(T171))
unif_pairs51_in_aa(black, .(w(T176), T177)) → U22_aa(T176, T177, unif_pairs60_in_a(T177))
unif_pairs51_in_aa(w(T180), .(black, T181)) → U23_aa(T180, T181, unif_pairs60_in_a(T181))
U20_aa(T140, T141, unif_pairs60_out_a(T141)) → unif_pairs51_out_aa(w(T140), .(w(T140), T141))
U21_aa(T171, unif_pairs60_out_a(T171)) → unif_pairs51_out_aa(black, .(black, T171))
U22_aa(T176, T177, unif_pairs60_out_a(T177)) → unif_pairs51_out_aa(black, .(w(T176), T177))
U23_aa(T180, T181, unif_pairs60_out_a(T181)) → unif_pairs51_out_aa(w(T180), .(black, T181))
unif_pairs60_in_a([]) → unif_pairs60_out_a([])
unif_pairs60_in_a(.(w(T158), .(w(T158), T159))) → U10_a(T158, T159, unif_pairs60_in_a(T159))
unif_pairs60_in_a(.(black, .(black, T160))) → U11_a(T160, unif_pairs60_in_a(T160))
unif_pairs60_in_a(.(black, .(w(T165), T166))) → U12_a(T165, T166, unif_pairs60_in_a(T166))
unif_pairs60_in_a(.(w(T169), .(black, T170))) → U13_a(T169, T170, unif_pairs60_in_a(T170))
U10_a(T158, T159, unif_pairs60_out_a(T159)) → unif_pairs60_out_a(.(w(T158), .(w(T158), T159)))
U11_a(T160, unif_pairs60_out_a(T160)) → unif_pairs60_out_a(.(black, .(black, T160)))
U12_a(T165, T166, unif_pairs60_out_a(T166)) → unif_pairs60_out_a(.(black, .(w(T165), T166)))
U13_a(T169, T170, unif_pairs60_out_a(T170)) → unif_pairs60_out_a(.(w(T169), .(black, T170)))
UNIF_LINES43_IN_AA → P50_IN_AAAAAA
P50_IN_AAAAAA → U18_AAAAAA(unif_pairs51_in_aa)
U18_AAAAAA(unif_pairs51_out_aa(T103, T113)) → UNIF_LINES43_IN_AA
unif_pairs51_in_aa → U20_aa(unif_pairs60_in_a)
unif_pairs51_in_aa → U21_aa(unif_pairs60_in_a)
unif_pairs51_in_aa → U22_aa(unif_pairs60_in_a)
unif_pairs51_in_aa → U23_aa(unif_pairs60_in_a)
U20_aa(unif_pairs60_out_a(T141)) → unif_pairs51_out_aa(w, .(w, T141))
U21_aa(unif_pairs60_out_a(T171)) → unif_pairs51_out_aa(black, .(black, T171))
U22_aa(unif_pairs60_out_a(T177)) → unif_pairs51_out_aa(black, .(w, T177))
U23_aa(unif_pairs60_out_a(T181)) → unif_pairs51_out_aa(w, .(black, T181))
unif_pairs60_in_a → unif_pairs60_out_a([])
unif_pairs60_in_a → U10_a(unif_pairs60_in_a)
unif_pairs60_in_a → U11_a(unif_pairs60_in_a)
unif_pairs60_in_a → U12_a(unif_pairs60_in_a)
unif_pairs60_in_a → U13_a(unif_pairs60_in_a)
U10_a(unif_pairs60_out_a(T159)) → unif_pairs60_out_a(.(w, .(w, T159)))
U11_a(unif_pairs60_out_a(T160)) → unif_pairs60_out_a(.(black, .(black, T160)))
U12_a(unif_pairs60_out_a(T166)) → unif_pairs60_out_a(.(black, .(w, T166)))
U13_a(unif_pairs60_out_a(T170)) → unif_pairs60_out_a(.(w, .(black, T170)))
unif_pairs51_in_aa
U20_aa(x0)
U21_aa(x0)
U22_aa(x0)
U23_aa(x0)
unif_pairs60_in_a
U10_a(x0)
U11_a(x0)
U12_a(x0)
U13_a(x0)
P50_IN_AAAAAA → U18_AAAAAA(U20_aa(unif_pairs60_in_a))
P50_IN_AAAAAA → U18_AAAAAA(U21_aa(unif_pairs60_in_a))
P50_IN_AAAAAA → U18_AAAAAA(U22_aa(unif_pairs60_in_a))
P50_IN_AAAAAA → U18_AAAAAA(U23_aa(unif_pairs60_in_a))
UNIF_LINES43_IN_AA → P50_IN_AAAAAA
U18_AAAAAA(unif_pairs51_out_aa(T103, T113)) → UNIF_LINES43_IN_AA
P50_IN_AAAAAA → U18_AAAAAA(U20_aa(unif_pairs60_in_a))
P50_IN_AAAAAA → U18_AAAAAA(U21_aa(unif_pairs60_in_a))
P50_IN_AAAAAA → U18_AAAAAA(U22_aa(unif_pairs60_in_a))
P50_IN_AAAAAA → U18_AAAAAA(U23_aa(unif_pairs60_in_a))
unif_pairs51_in_aa → U20_aa(unif_pairs60_in_a)
unif_pairs51_in_aa → U21_aa(unif_pairs60_in_a)
unif_pairs51_in_aa → U22_aa(unif_pairs60_in_a)
unif_pairs51_in_aa → U23_aa(unif_pairs60_in_a)
U20_aa(unif_pairs60_out_a(T141)) → unif_pairs51_out_aa(w, .(w, T141))
U21_aa(unif_pairs60_out_a(T171)) → unif_pairs51_out_aa(black, .(black, T171))
U22_aa(unif_pairs60_out_a(T177)) → unif_pairs51_out_aa(black, .(w, T177))
U23_aa(unif_pairs60_out_a(T181)) → unif_pairs51_out_aa(w, .(black, T181))
unif_pairs60_in_a → unif_pairs60_out_a([])
unif_pairs60_in_a → U10_a(unif_pairs60_in_a)
unif_pairs60_in_a → U11_a(unif_pairs60_in_a)
unif_pairs60_in_a → U12_a(unif_pairs60_in_a)
unif_pairs60_in_a → U13_a(unif_pairs60_in_a)
U10_a(unif_pairs60_out_a(T159)) → unif_pairs60_out_a(.(w, .(w, T159)))
U11_a(unif_pairs60_out_a(T160)) → unif_pairs60_out_a(.(black, .(black, T160)))
U12_a(unif_pairs60_out_a(T166)) → unif_pairs60_out_a(.(black, .(w, T166)))
U13_a(unif_pairs60_out_a(T170)) → unif_pairs60_out_a(.(w, .(black, T170)))
unif_pairs51_in_aa
U20_aa(x0)
U21_aa(x0)
U22_aa(x0)
U23_aa(x0)
unif_pairs60_in_a
U10_a(x0)
U11_a(x0)
U12_a(x0)
U13_a(x0)
UNIF_LINES43_IN_AA → P50_IN_AAAAAA
U18_AAAAAA(unif_pairs51_out_aa(T103, T113)) → UNIF_LINES43_IN_AA
P50_IN_AAAAAA → U18_AAAAAA(U20_aa(unif_pairs60_in_a))
P50_IN_AAAAAA → U18_AAAAAA(U21_aa(unif_pairs60_in_a))
P50_IN_AAAAAA → U18_AAAAAA(U22_aa(unif_pairs60_in_a))
P50_IN_AAAAAA → U18_AAAAAA(U23_aa(unif_pairs60_in_a))
unif_pairs60_in_a → unif_pairs60_out_a([])
unif_pairs60_in_a → U10_a(unif_pairs60_in_a)
unif_pairs60_in_a → U11_a(unif_pairs60_in_a)
unif_pairs60_in_a → U12_a(unif_pairs60_in_a)
unif_pairs60_in_a → U13_a(unif_pairs60_in_a)
U23_aa(unif_pairs60_out_a(T181)) → unif_pairs51_out_aa(w, .(black, T181))
U13_a(unif_pairs60_out_a(T170)) → unif_pairs60_out_a(.(w, .(black, T170)))
U12_a(unif_pairs60_out_a(T166)) → unif_pairs60_out_a(.(black, .(w, T166)))
U11_a(unif_pairs60_out_a(T160)) → unif_pairs60_out_a(.(black, .(black, T160)))
U10_a(unif_pairs60_out_a(T159)) → unif_pairs60_out_a(.(w, .(w, T159)))
U22_aa(unif_pairs60_out_a(T177)) → unif_pairs51_out_aa(black, .(w, T177))
U21_aa(unif_pairs60_out_a(T171)) → unif_pairs51_out_aa(black, .(black, T171))
U20_aa(unif_pairs60_out_a(T141)) → unif_pairs51_out_aa(w, .(w, T141))
unif_pairs51_in_aa
U20_aa(x0)
U21_aa(x0)
U22_aa(x0)
U23_aa(x0)
unif_pairs60_in_a
U10_a(x0)
U11_a(x0)
U12_a(x0)
U13_a(x0)
unif_pairs51_in_aa
UNIF_LINES43_IN_AA → P50_IN_AAAAAA
U18_AAAAAA(unif_pairs51_out_aa(T103, T113)) → UNIF_LINES43_IN_AA
P50_IN_AAAAAA → U18_AAAAAA(U20_aa(unif_pairs60_in_a))
P50_IN_AAAAAA → U18_AAAAAA(U21_aa(unif_pairs60_in_a))
P50_IN_AAAAAA → U18_AAAAAA(U22_aa(unif_pairs60_in_a))
P50_IN_AAAAAA → U18_AAAAAA(U23_aa(unif_pairs60_in_a))
unif_pairs60_in_a → unif_pairs60_out_a([])
unif_pairs60_in_a → U10_a(unif_pairs60_in_a)
unif_pairs60_in_a → U11_a(unif_pairs60_in_a)
unif_pairs60_in_a → U12_a(unif_pairs60_in_a)
unif_pairs60_in_a → U13_a(unif_pairs60_in_a)
U23_aa(unif_pairs60_out_a(T181)) → unif_pairs51_out_aa(w, .(black, T181))
U13_a(unif_pairs60_out_a(T170)) → unif_pairs60_out_a(.(w, .(black, T170)))
U12_a(unif_pairs60_out_a(T166)) → unif_pairs60_out_a(.(black, .(w, T166)))
U11_a(unif_pairs60_out_a(T160)) → unif_pairs60_out_a(.(black, .(black, T160)))
U10_a(unif_pairs60_out_a(T159)) → unif_pairs60_out_a(.(w, .(w, T159)))
U22_aa(unif_pairs60_out_a(T177)) → unif_pairs51_out_aa(black, .(w, T177))
U21_aa(unif_pairs60_out_a(T171)) → unif_pairs51_out_aa(black, .(black, T171))
U20_aa(unif_pairs60_out_a(T141)) → unif_pairs51_out_aa(w, .(w, T141))
U20_aa(x0)
U21_aa(x0)
U22_aa(x0)
U23_aa(x0)
unif_pairs60_in_a
U10_a(x0)
U11_a(x0)
U12_a(x0)
U13_a(x0)
UNIF_MATRX37_IN_AA(T56, .(T65, T66)) → U7_AA(T56, T65, T66, unif_lines43_in_aa(T56, T65))
U7_AA(T56, T65, T66, unif_lines43_out_aa(T56, T65)) → UNIF_MATRX37_IN_AA(T65, T66)
shapes1_in_ga(.(T15, T16), T6) → U24_ga(T15, T16, T6, varmat16_in_ga(T15, X49))
varmat16_in_ga([], []) → varmat16_out_ga([], [])
varmat16_in_ga(.(T26, T27), .(X83, X84)) → U1_ga(T26, T27, X83, X84, varmat16_in_ga(T26, X83))
varmat16_in_ga(.(T26, T27), .(T28, X84)) → U2_ga(T26, T27, T28, X84, varmat16_in_ga(T26, T28))
varmat16_in_ga(.(black, T33), .(black, X103)) → U4_ga(T33, X103, varmat16_in_ga(T33, X103))
varmat16_in_ga(.(white, T36), .(w(X119), X120)) → U5_ga(T36, X119, X120, varmat16_in_ga(T36, X120))
U5_ga(T36, X119, X120, varmat16_out_ga(T36, X120)) → varmat16_out_ga(.(white, T36), .(w(X119), X120))
U4_ga(T33, X103, varmat16_out_ga(T33, X103)) → varmat16_out_ga(.(black, T33), .(black, X103))
U2_ga(T26, T27, T28, X84, varmat16_out_ga(T26, T28)) → U3_ga(T26, T27, T28, X84, varmat16_in_ga(T27, X84))
U3_ga(T26, T27, T28, X84, varmat16_out_ga(T27, X84)) → varmat16_out_ga(.(T26, T27), .(T28, X84))
U1_ga(T26, T27, X83, X84, varmat16_out_ga(T26, X83)) → varmat16_out_ga(.(T26, T27), .(X83, X84))
U24_ga(T15, T16, T6, varmat16_out_ga(T15, X49)) → shapes1_out_ga(.(T15, T16), T6)
shapes1_in_ga(.(T15, T16), T6) → U25_ga(T15, T16, T6, varmat16_in_ga(T15, T17))
U25_ga(T15, T16, T6, varmat16_out_ga(T15, T17)) → U26_ga(T15, T16, T6, p17_in_gaa(T16, X50, T17))
p17_in_gaa(T16, X50, T17) → U14_gaa(T16, X50, T17, varmat16_in_ga(T16, X50))
U14_gaa(T16, X50, T17, varmat16_out_ga(T16, X50)) → p17_out_gaa(T16, X50, T17)
p17_in_gaa(T16, T37, T17) → U15_gaa(T16, T37, T17, varmat16_in_ga(T16, T37))
U15_gaa(T16, T37, T17, varmat16_out_ga(T16, T37)) → U16_gaa(T16, T37, T17, unif_matrx37_in_aa(T17, T37))
unif_matrx37_in_aa(T56, .(T57, T58)) → U6_aa(T56, T57, T58, unif_lines43_in_aa(T56, T57))
unif_lines43_in_aa(.(T103, .(T104, T107)), .(T105, .(T106, T108))) → U9_aa(T103, T104, T107, T105, T106, T108, p50_in_aaaaaa(T103, .(T104, .(T105, .(T106, .(T103, .(T105, .(T104, .(T106, .(T103, .(T106, .(T104, .(T105, []))))))))))), T104, T107, T106, T108))
p50_in_aaaaaa(T103, T113, T104, T107, T106, T108) → U17_aaaaaa(T103, T113, T104, T107, T106, T108, unif_pairs51_in_aa(T103, T113))
unif_pairs51_in_aa(w(T140), .(w(T140), T141)) → U20_aa(T140, T141, unif_pairs60_in_a(T141))
unif_pairs60_in_a([]) → unif_pairs60_out_a([])
unif_pairs60_in_a(.(w(T158), .(w(T158), T159))) → U10_a(T158, T159, unif_pairs60_in_a(T159))
unif_pairs60_in_a(.(black, .(black, T160))) → U11_a(T160, unif_pairs60_in_a(T160))
unif_pairs60_in_a(.(black, .(w(T165), T166))) → U12_a(T165, T166, unif_pairs60_in_a(T166))
unif_pairs60_in_a(.(w(T169), .(black, T170))) → U13_a(T169, T170, unif_pairs60_in_a(T170))
U13_a(T169, T170, unif_pairs60_out_a(T170)) → unif_pairs60_out_a(.(w(T169), .(black, T170)))
U12_a(T165, T166, unif_pairs60_out_a(T166)) → unif_pairs60_out_a(.(black, .(w(T165), T166)))
U11_a(T160, unif_pairs60_out_a(T160)) → unif_pairs60_out_a(.(black, .(black, T160)))
U10_a(T158, T159, unif_pairs60_out_a(T159)) → unif_pairs60_out_a(.(w(T158), .(w(T158), T159)))
U20_aa(T140, T141, unif_pairs60_out_a(T141)) → unif_pairs51_out_aa(w(T140), .(w(T140), T141))
unif_pairs51_in_aa(black, .(black, T171)) → U21_aa(T171, unif_pairs60_in_a(T171))
U21_aa(T171, unif_pairs60_out_a(T171)) → unif_pairs51_out_aa(black, .(black, T171))
unif_pairs51_in_aa(black, .(w(T176), T177)) → U22_aa(T176, T177, unif_pairs60_in_a(T177))
U22_aa(T176, T177, unif_pairs60_out_a(T177)) → unif_pairs51_out_aa(black, .(w(T176), T177))
unif_pairs51_in_aa(w(T180), .(black, T181)) → U23_aa(T180, T181, unif_pairs60_in_a(T181))
U23_aa(T180, T181, unif_pairs60_out_a(T181)) → unif_pairs51_out_aa(w(T180), .(black, T181))
U17_aaaaaa(T103, T113, T104, T107, T106, T108, unif_pairs51_out_aa(T103, T113)) → p50_out_aaaaaa(T103, T113, T104, T107, T106, T108)
p50_in_aaaaaa(T103, T113, T117, T118, T119, T120) → U18_aaaaaa(T103, T113, T117, T118, T119, T120, unif_pairs51_in_aa(T103, T113))
U18_aaaaaa(T103, T113, T117, T118, T119, T120, unif_pairs51_out_aa(T103, T113)) → U19_aaaaaa(T103, T113, T117, T118, T119, T120, unif_lines43_in_aa(.(T117, T118), .(T119, T120)))
unif_lines43_in_aa(.(T192, []), .(T193, [])) → unif_lines43_out_aa(.(T192, []), .(T193, []))
U19_aaaaaa(T103, T113, T117, T118, T119, T120, unif_lines43_out_aa(.(T117, T118), .(T119, T120))) → p50_out_aaaaaa(T103, T113, T117, T118, T119, T120)
U9_aa(T103, T104, T107, T105, T106, T108, p50_out_aaaaaa(T103, .(T104, .(T105, .(T106, .(T103, .(T105, .(T104, .(T106, .(T103, .(T106, .(T104, .(T105, []))))))))))), T104, T107, T106, T108)) → unif_lines43_out_aa(.(T103, .(T104, T107)), .(T105, .(T106, T108)))
U6_aa(T56, T57, T58, unif_lines43_out_aa(T56, T57)) → unif_matrx37_out_aa(T56, .(T57, T58))
unif_matrx37_in_aa(T56, .(T65, T66)) → U7_aa(T56, T65, T66, unif_lines43_in_aa(T56, T65))
U7_aa(T56, T65, T66, unif_lines43_out_aa(T56, T65)) → U8_aa(T56, T65, T66, unif_matrx37_in_aa(T65, T66))
unif_matrx37_in_aa(T199, []) → unif_matrx37_out_aa(T199, [])
U8_aa(T56, T65, T66, unif_matrx37_out_aa(T65, T66)) → unif_matrx37_out_aa(T56, .(T65, T66))
U16_gaa(T16, T37, T17, unif_matrx37_out_aa(T17, T37)) → p17_out_gaa(T16, T37, T17)
U26_ga(T15, T16, T6, p17_out_gaa(T16, X50, T17)) → shapes1_out_ga(.(T15, T16), T6)
shapes1_in_ga(.(black, T204), T6) → U27_ga(T204, T6, p17_in_gag(T204, X293, black))
p17_in_gag(T16, X50, T17) → U14_gag(T16, X50, T17, varmat16_in_ga(T16, X50))
U14_gag(T16, X50, T17, varmat16_out_ga(T16, X50)) → p17_out_gag(T16, X50, T17)
p17_in_gag(T16, T37, T17) → U15_gag(T16, T37, T17, varmat16_in_ga(T16, T37))
U15_gag(T16, T37, T17, varmat16_out_ga(T16, T37)) → U16_gag(T16, T37, T17, unif_matrx37_in_ga(T17, T37))
unif_matrx37_in_ga(T56, .(T57, T58)) → U6_ga(T56, T57, T58, unif_lines43_in_ga(T56, T57))
unif_lines43_in_ga(.(T103, .(T104, T107)), .(T105, .(T106, T108))) → U9_ga(T103, T104, T107, T105, T106, T108, p50_in_gaggaa(T103, .(T104, .(T105, .(T106, .(T103, .(T105, .(T104, .(T106, .(T103, .(T106, .(T104, .(T105, []))))))))))), T104, T107, T106, T108))
p50_in_gaggaa(T103, T113, T104, T107, T106, T108) → U17_gaggaa(T103, T113, T104, T107, T106, T108, unif_pairs51_in_ga(T103, T113))
unif_pairs51_in_ga(w(T140), .(w(T140), T141)) → U20_ga(T140, T141, unif_pairs60_in_a(T141))
U20_ga(T140, T141, unif_pairs60_out_a(T141)) → unif_pairs51_out_ga(w(T140), .(w(T140), T141))
unif_pairs51_in_ga(black, .(black, T171)) → U21_ga(T171, unif_pairs60_in_a(T171))
U21_ga(T171, unif_pairs60_out_a(T171)) → unif_pairs51_out_ga(black, .(black, T171))
unif_pairs51_in_ga(black, .(w(T176), T177)) → U22_ga(T176, T177, unif_pairs60_in_a(T177))
U22_ga(T176, T177, unif_pairs60_out_a(T177)) → unif_pairs51_out_ga(black, .(w(T176), T177))
unif_pairs51_in_ga(w(T180), .(black, T181)) → U23_ga(T180, T181, unif_pairs60_in_a(T181))
U23_ga(T180, T181, unif_pairs60_out_a(T181)) → unif_pairs51_out_ga(w(T180), .(black, T181))
U17_gaggaa(T103, T113, T104, T107, T106, T108, unif_pairs51_out_ga(T103, T113)) → p50_out_gaggaa(T103, T113, T104, T107, T106, T108)
p50_in_gaggaa(T103, T113, T117, T118, T119, T120) → U18_gaggaa(T103, T113, T117, T118, T119, T120, unif_pairs51_in_ga(T103, T113))
U18_gaggaa(T103, T113, T117, T118, T119, T120, unif_pairs51_out_ga(T103, T113)) → U19_gaggaa(T103, T113, T117, T118, T119, T120, unif_lines43_in_ga(.(T117, T118), .(T119, T120)))
unif_lines43_in_ga(.(T192, []), .(T193, [])) → unif_lines43_out_ga(.(T192, []), .(T193, []))
U19_gaggaa(T103, T113, T117, T118, T119, T120, unif_lines43_out_ga(.(T117, T118), .(T119, T120))) → p50_out_gaggaa(T103, T113, T117, T118, T119, T120)
U9_ga(T103, T104, T107, T105, T106, T108, p50_out_gaggaa(T103, .(T104, .(T105, .(T106, .(T103, .(T105, .(T104, .(T106, .(T103, .(T106, .(T104, .(T105, []))))))))))), T104, T107, T106, T108)) → unif_lines43_out_ga(.(T103, .(T104, T107)), .(T105, .(T106, T108)))
U6_ga(T56, T57, T58, unif_lines43_out_ga(T56, T57)) → unif_matrx37_out_ga(T56, .(T57, T58))
unif_matrx37_in_ga(T56, .(T65, T66)) → U7_ga(T56, T65, T66, unif_lines43_in_ga(T56, T65))
U7_ga(T56, T65, T66, unif_lines43_out_ga(T56, T65)) → U8_ga(T56, T65, T66, unif_matrx37_in_aa(T65, T66))
U8_ga(T56, T65, T66, unif_matrx37_out_aa(T65, T66)) → unif_matrx37_out_ga(T56, .(T65, T66))
unif_matrx37_in_ga(T199, []) → unif_matrx37_out_ga(T199, [])
U16_gag(T16, T37, T17, unif_matrx37_out_ga(T17, T37)) → p17_out_gag(T16, T37, T17)
U27_ga(T204, T6, p17_out_gag(T204, X293, black)) → shapes1_out_ga(.(black, T204), T6)
shapes1_in_ga(.(white, T207), T6) → U28_ga(T207, T6, p17_in_gag(T207, X310, w(X309)))
U28_ga(T207, T6, p17_out_gag(T207, X310, w(X309))) → shapes1_out_ga(.(white, T207), T6)
UNIF_MATRX37_IN_AA(T56, .(T65, T66)) → U7_AA(T56, T65, T66, unif_lines43_in_aa(T56, T65))
U7_AA(T56, T65, T66, unif_lines43_out_aa(T56, T65)) → UNIF_MATRX37_IN_AA(T65, T66)
unif_lines43_in_aa(.(T103, .(T104, T107)), .(T105, .(T106, T108))) → U9_aa(T103, T104, T107, T105, T106, T108, p50_in_aaaaaa(T103, .(T104, .(T105, .(T106, .(T103, .(T105, .(T104, .(T106, .(T103, .(T106, .(T104, .(T105, []))))))))))), T104, T107, T106, T108))
unif_lines43_in_aa(.(T192, []), .(T193, [])) → unif_lines43_out_aa(.(T192, []), .(T193, []))
U9_aa(T103, T104, T107, T105, T106, T108, p50_out_aaaaaa(T103, .(T104, .(T105, .(T106, .(T103, .(T105, .(T104, .(T106, .(T103, .(T106, .(T104, .(T105, []))))))))))), T104, T107, T106, T108)) → unif_lines43_out_aa(.(T103, .(T104, T107)), .(T105, .(T106, T108)))
p50_in_aaaaaa(T103, T113, T104, T107, T106, T108) → U17_aaaaaa(T103, T113, T104, T107, T106, T108, unif_pairs51_in_aa(T103, T113))
p50_in_aaaaaa(T103, T113, T117, T118, T119, T120) → U18_aaaaaa(T103, T113, T117, T118, T119, T120, unif_pairs51_in_aa(T103, T113))
U17_aaaaaa(T103, T113, T104, T107, T106, T108, unif_pairs51_out_aa(T103, T113)) → p50_out_aaaaaa(T103, T113, T104, T107, T106, T108)
U18_aaaaaa(T103, T113, T117, T118, T119, T120, unif_pairs51_out_aa(T103, T113)) → U19_aaaaaa(T103, T113, T117, T118, T119, T120, unif_lines43_in_aa(.(T117, T118), .(T119, T120)))
unif_pairs51_in_aa(w(T140), .(w(T140), T141)) → U20_aa(T140, T141, unif_pairs60_in_a(T141))
unif_pairs51_in_aa(black, .(black, T171)) → U21_aa(T171, unif_pairs60_in_a(T171))
unif_pairs51_in_aa(black, .(w(T176), T177)) → U22_aa(T176, T177, unif_pairs60_in_a(T177))
unif_pairs51_in_aa(w(T180), .(black, T181)) → U23_aa(T180, T181, unif_pairs60_in_a(T181))
U19_aaaaaa(T103, T113, T117, T118, T119, T120, unif_lines43_out_aa(.(T117, T118), .(T119, T120))) → p50_out_aaaaaa(T103, T113, T117, T118, T119, T120)
U20_aa(T140, T141, unif_pairs60_out_a(T141)) → unif_pairs51_out_aa(w(T140), .(w(T140), T141))
U21_aa(T171, unif_pairs60_out_a(T171)) → unif_pairs51_out_aa(black, .(black, T171))
U22_aa(T176, T177, unif_pairs60_out_a(T177)) → unif_pairs51_out_aa(black, .(w(T176), T177))
U23_aa(T180, T181, unif_pairs60_out_a(T181)) → unif_pairs51_out_aa(w(T180), .(black, T181))
unif_pairs60_in_a([]) → unif_pairs60_out_a([])
unif_pairs60_in_a(.(w(T158), .(w(T158), T159))) → U10_a(T158, T159, unif_pairs60_in_a(T159))
unif_pairs60_in_a(.(black, .(black, T160))) → U11_a(T160, unif_pairs60_in_a(T160))
unif_pairs60_in_a(.(black, .(w(T165), T166))) → U12_a(T165, T166, unif_pairs60_in_a(T166))
unif_pairs60_in_a(.(w(T169), .(black, T170))) → U13_a(T169, T170, unif_pairs60_in_a(T170))
U10_a(T158, T159, unif_pairs60_out_a(T159)) → unif_pairs60_out_a(.(w(T158), .(w(T158), T159)))
U11_a(T160, unif_pairs60_out_a(T160)) → unif_pairs60_out_a(.(black, .(black, T160)))
U12_a(T165, T166, unif_pairs60_out_a(T166)) → unif_pairs60_out_a(.(black, .(w(T165), T166)))
U13_a(T169, T170, unif_pairs60_out_a(T170)) → unif_pairs60_out_a(.(w(T169), .(black, T170)))
UNIF_MATRX37_IN_AA → U7_AA(unif_lines43_in_aa)
U7_AA(unif_lines43_out_aa) → UNIF_MATRX37_IN_AA
unif_lines43_in_aa → U9_aa(p50_in_aaaaaa)
unif_lines43_in_aa → unif_lines43_out_aa
U9_aa(p50_out_aaaaaa(T103, .(T104, .(T105, .(T106, .(T103, .(T105, .(T104, .(T106, .(T103, .(T106, .(T104, .(T105, []))))))))))))) → unif_lines43_out_aa
p50_in_aaaaaa → U17_aaaaaa(unif_pairs51_in_aa)
p50_in_aaaaaa → U18_aaaaaa(unif_pairs51_in_aa)
U17_aaaaaa(unif_pairs51_out_aa(T103, T113)) → p50_out_aaaaaa(T103, T113)
U18_aaaaaa(unif_pairs51_out_aa(T103, T113)) → U19_aaaaaa(T103, T113, unif_lines43_in_aa)
unif_pairs51_in_aa → U20_aa(unif_pairs60_in_a)
unif_pairs51_in_aa → U21_aa(unif_pairs60_in_a)
unif_pairs51_in_aa → U22_aa(unif_pairs60_in_a)
unif_pairs51_in_aa → U23_aa(unif_pairs60_in_a)
U19_aaaaaa(T103, T113, unif_lines43_out_aa) → p50_out_aaaaaa(T103, T113)
U20_aa(unif_pairs60_out_a(T141)) → unif_pairs51_out_aa(w, .(w, T141))
U21_aa(unif_pairs60_out_a(T171)) → unif_pairs51_out_aa(black, .(black, T171))
U22_aa(unif_pairs60_out_a(T177)) → unif_pairs51_out_aa(black, .(w, T177))
U23_aa(unif_pairs60_out_a(T181)) → unif_pairs51_out_aa(w, .(black, T181))
unif_pairs60_in_a → unif_pairs60_out_a([])
unif_pairs60_in_a → U10_a(unif_pairs60_in_a)
unif_pairs60_in_a → U11_a(unif_pairs60_in_a)
unif_pairs60_in_a → U12_a(unif_pairs60_in_a)
unif_pairs60_in_a → U13_a(unif_pairs60_in_a)
U10_a(unif_pairs60_out_a(T159)) → unif_pairs60_out_a(.(w, .(w, T159)))
U11_a(unif_pairs60_out_a(T160)) → unif_pairs60_out_a(.(black, .(black, T160)))
U12_a(unif_pairs60_out_a(T166)) → unif_pairs60_out_a(.(black, .(w, T166)))
U13_a(unif_pairs60_out_a(T170)) → unif_pairs60_out_a(.(w, .(black, T170)))
unif_lines43_in_aa
U9_aa(x0)
p50_in_aaaaaa
U17_aaaaaa(x0)
U18_aaaaaa(x0)
unif_pairs51_in_aa
U19_aaaaaa(x0, x1, x2)
U20_aa(x0)
U21_aa(x0)
U22_aa(x0)
U23_aa(x0)
unif_pairs60_in_a
U10_a(x0)
U11_a(x0)
U12_a(x0)
U13_a(x0)
UNIF_MATRX37_IN_AA → U7_AA(U9_aa(p50_in_aaaaaa))
UNIF_MATRX37_IN_AA → U7_AA(unif_lines43_out_aa)
U7_AA(unif_lines43_out_aa) → UNIF_MATRX37_IN_AA
UNIF_MATRX37_IN_AA → U7_AA(U9_aa(p50_in_aaaaaa))
UNIF_MATRX37_IN_AA → U7_AA(unif_lines43_out_aa)
unif_lines43_in_aa → U9_aa(p50_in_aaaaaa)
unif_lines43_in_aa → unif_lines43_out_aa
U9_aa(p50_out_aaaaaa(T103, .(T104, .(T105, .(T106, .(T103, .(T105, .(T104, .(T106, .(T103, .(T106, .(T104, .(T105, []))))))))))))) → unif_lines43_out_aa
p50_in_aaaaaa → U17_aaaaaa(unif_pairs51_in_aa)
p50_in_aaaaaa → U18_aaaaaa(unif_pairs51_in_aa)
U17_aaaaaa(unif_pairs51_out_aa(T103, T113)) → p50_out_aaaaaa(T103, T113)
U18_aaaaaa(unif_pairs51_out_aa(T103, T113)) → U19_aaaaaa(T103, T113, unif_lines43_in_aa)
unif_pairs51_in_aa → U20_aa(unif_pairs60_in_a)
unif_pairs51_in_aa → U21_aa(unif_pairs60_in_a)
unif_pairs51_in_aa → U22_aa(unif_pairs60_in_a)
unif_pairs51_in_aa → U23_aa(unif_pairs60_in_a)
U19_aaaaaa(T103, T113, unif_lines43_out_aa) → p50_out_aaaaaa(T103, T113)
U20_aa(unif_pairs60_out_a(T141)) → unif_pairs51_out_aa(w, .(w, T141))
U21_aa(unif_pairs60_out_a(T171)) → unif_pairs51_out_aa(black, .(black, T171))
U22_aa(unif_pairs60_out_a(T177)) → unif_pairs51_out_aa(black, .(w, T177))
U23_aa(unif_pairs60_out_a(T181)) → unif_pairs51_out_aa(w, .(black, T181))
unif_pairs60_in_a → unif_pairs60_out_a([])
unif_pairs60_in_a → U10_a(unif_pairs60_in_a)
unif_pairs60_in_a → U11_a(unif_pairs60_in_a)
unif_pairs60_in_a → U12_a(unif_pairs60_in_a)
unif_pairs60_in_a → U13_a(unif_pairs60_in_a)
U10_a(unif_pairs60_out_a(T159)) → unif_pairs60_out_a(.(w, .(w, T159)))
U11_a(unif_pairs60_out_a(T160)) → unif_pairs60_out_a(.(black, .(black, T160)))
U12_a(unif_pairs60_out_a(T166)) → unif_pairs60_out_a(.(black, .(w, T166)))
U13_a(unif_pairs60_out_a(T170)) → unif_pairs60_out_a(.(w, .(black, T170)))
unif_lines43_in_aa
U9_aa(x0)
p50_in_aaaaaa
U17_aaaaaa(x0)
U18_aaaaaa(x0)
unif_pairs51_in_aa
U19_aaaaaa(x0, x1, x2)
U20_aa(x0)
U21_aa(x0)
U22_aa(x0)
U23_aa(x0)
unif_pairs60_in_a
U10_a(x0)
U11_a(x0)
U12_a(x0)
U13_a(x0)
VARMAT16_IN_GA(.(T26, T27), .(T28, X84)) → U2_GA(T26, T27, T28, X84, varmat16_in_ga(T26, T28))
U2_GA(T26, T27, T28, X84, varmat16_out_ga(T26, T28)) → VARMAT16_IN_GA(T27, X84)
VARMAT16_IN_GA(.(T26, T27), .(X83, X84)) → VARMAT16_IN_GA(T26, X83)
VARMAT16_IN_GA(.(black, T33), .(black, X103)) → VARMAT16_IN_GA(T33, X103)
VARMAT16_IN_GA(.(white, T36), .(w(X119), X120)) → VARMAT16_IN_GA(T36, X120)
shapes1_in_ga(.(T15, T16), T6) → U24_ga(T15, T16, T6, varmat16_in_ga(T15, X49))
varmat16_in_ga([], []) → varmat16_out_ga([], [])
varmat16_in_ga(.(T26, T27), .(X83, X84)) → U1_ga(T26, T27, X83, X84, varmat16_in_ga(T26, X83))
varmat16_in_ga(.(T26, T27), .(T28, X84)) → U2_ga(T26, T27, T28, X84, varmat16_in_ga(T26, T28))
varmat16_in_ga(.(black, T33), .(black, X103)) → U4_ga(T33, X103, varmat16_in_ga(T33, X103))
varmat16_in_ga(.(white, T36), .(w(X119), X120)) → U5_ga(T36, X119, X120, varmat16_in_ga(T36, X120))
U5_ga(T36, X119, X120, varmat16_out_ga(T36, X120)) → varmat16_out_ga(.(white, T36), .(w(X119), X120))
U4_ga(T33, X103, varmat16_out_ga(T33, X103)) → varmat16_out_ga(.(black, T33), .(black, X103))
U2_ga(T26, T27, T28, X84, varmat16_out_ga(T26, T28)) → U3_ga(T26, T27, T28, X84, varmat16_in_ga(T27, X84))
U3_ga(T26, T27, T28, X84, varmat16_out_ga(T27, X84)) → varmat16_out_ga(.(T26, T27), .(T28, X84))
U1_ga(T26, T27, X83, X84, varmat16_out_ga(T26, X83)) → varmat16_out_ga(.(T26, T27), .(X83, X84))
U24_ga(T15, T16, T6, varmat16_out_ga(T15, X49)) → shapes1_out_ga(.(T15, T16), T6)
shapes1_in_ga(.(T15, T16), T6) → U25_ga(T15, T16, T6, varmat16_in_ga(T15, T17))
U25_ga(T15, T16, T6, varmat16_out_ga(T15, T17)) → U26_ga(T15, T16, T6, p17_in_gaa(T16, X50, T17))
p17_in_gaa(T16, X50, T17) → U14_gaa(T16, X50, T17, varmat16_in_ga(T16, X50))
U14_gaa(T16, X50, T17, varmat16_out_ga(T16, X50)) → p17_out_gaa(T16, X50, T17)
p17_in_gaa(T16, T37, T17) → U15_gaa(T16, T37, T17, varmat16_in_ga(T16, T37))
U15_gaa(T16, T37, T17, varmat16_out_ga(T16, T37)) → U16_gaa(T16, T37, T17, unif_matrx37_in_aa(T17, T37))
unif_matrx37_in_aa(T56, .(T57, T58)) → U6_aa(T56, T57, T58, unif_lines43_in_aa(T56, T57))
unif_lines43_in_aa(.(T103, .(T104, T107)), .(T105, .(T106, T108))) → U9_aa(T103, T104, T107, T105, T106, T108, p50_in_aaaaaa(T103, .(T104, .(T105, .(T106, .(T103, .(T105, .(T104, .(T106, .(T103, .(T106, .(T104, .(T105, []))))))))))), T104, T107, T106, T108))
p50_in_aaaaaa(T103, T113, T104, T107, T106, T108) → U17_aaaaaa(T103, T113, T104, T107, T106, T108, unif_pairs51_in_aa(T103, T113))
unif_pairs51_in_aa(w(T140), .(w(T140), T141)) → U20_aa(T140, T141, unif_pairs60_in_a(T141))
unif_pairs60_in_a([]) → unif_pairs60_out_a([])
unif_pairs60_in_a(.(w(T158), .(w(T158), T159))) → U10_a(T158, T159, unif_pairs60_in_a(T159))
unif_pairs60_in_a(.(black, .(black, T160))) → U11_a(T160, unif_pairs60_in_a(T160))
unif_pairs60_in_a(.(black, .(w(T165), T166))) → U12_a(T165, T166, unif_pairs60_in_a(T166))
unif_pairs60_in_a(.(w(T169), .(black, T170))) → U13_a(T169, T170, unif_pairs60_in_a(T170))
U13_a(T169, T170, unif_pairs60_out_a(T170)) → unif_pairs60_out_a(.(w(T169), .(black, T170)))
U12_a(T165, T166, unif_pairs60_out_a(T166)) → unif_pairs60_out_a(.(black, .(w(T165), T166)))
U11_a(T160, unif_pairs60_out_a(T160)) → unif_pairs60_out_a(.(black, .(black, T160)))
U10_a(T158, T159, unif_pairs60_out_a(T159)) → unif_pairs60_out_a(.(w(T158), .(w(T158), T159)))
U20_aa(T140, T141, unif_pairs60_out_a(T141)) → unif_pairs51_out_aa(w(T140), .(w(T140), T141))
unif_pairs51_in_aa(black, .(black, T171)) → U21_aa(T171, unif_pairs60_in_a(T171))
U21_aa(T171, unif_pairs60_out_a(T171)) → unif_pairs51_out_aa(black, .(black, T171))
unif_pairs51_in_aa(black, .(w(T176), T177)) → U22_aa(T176, T177, unif_pairs60_in_a(T177))
U22_aa(T176, T177, unif_pairs60_out_a(T177)) → unif_pairs51_out_aa(black, .(w(T176), T177))
unif_pairs51_in_aa(w(T180), .(black, T181)) → U23_aa(T180, T181, unif_pairs60_in_a(T181))
U23_aa(T180, T181, unif_pairs60_out_a(T181)) → unif_pairs51_out_aa(w(T180), .(black, T181))
U17_aaaaaa(T103, T113, T104, T107, T106, T108, unif_pairs51_out_aa(T103, T113)) → p50_out_aaaaaa(T103, T113, T104, T107, T106, T108)
p50_in_aaaaaa(T103, T113, T117, T118, T119, T120) → U18_aaaaaa(T103, T113, T117, T118, T119, T120, unif_pairs51_in_aa(T103, T113))
U18_aaaaaa(T103, T113, T117, T118, T119, T120, unif_pairs51_out_aa(T103, T113)) → U19_aaaaaa(T103, T113, T117, T118, T119, T120, unif_lines43_in_aa(.(T117, T118), .(T119, T120)))
unif_lines43_in_aa(.(T192, []), .(T193, [])) → unif_lines43_out_aa(.(T192, []), .(T193, []))
U19_aaaaaa(T103, T113, T117, T118, T119, T120, unif_lines43_out_aa(.(T117, T118), .(T119, T120))) → p50_out_aaaaaa(T103, T113, T117, T118, T119, T120)
U9_aa(T103, T104, T107, T105, T106, T108, p50_out_aaaaaa(T103, .(T104, .(T105, .(T106, .(T103, .(T105, .(T104, .(T106, .(T103, .(T106, .(T104, .(T105, []))))))))))), T104, T107, T106, T108)) → unif_lines43_out_aa(.(T103, .(T104, T107)), .(T105, .(T106, T108)))
U6_aa(T56, T57, T58, unif_lines43_out_aa(T56, T57)) → unif_matrx37_out_aa(T56, .(T57, T58))
unif_matrx37_in_aa(T56, .(T65, T66)) → U7_aa(T56, T65, T66, unif_lines43_in_aa(T56, T65))
U7_aa(T56, T65, T66, unif_lines43_out_aa(T56, T65)) → U8_aa(T56, T65, T66, unif_matrx37_in_aa(T65, T66))
unif_matrx37_in_aa(T199, []) → unif_matrx37_out_aa(T199, [])
U8_aa(T56, T65, T66, unif_matrx37_out_aa(T65, T66)) → unif_matrx37_out_aa(T56, .(T65, T66))
U16_gaa(T16, T37, T17, unif_matrx37_out_aa(T17, T37)) → p17_out_gaa(T16, T37, T17)
U26_ga(T15, T16, T6, p17_out_gaa(T16, X50, T17)) → shapes1_out_ga(.(T15, T16), T6)
shapes1_in_ga(.(black, T204), T6) → U27_ga(T204, T6, p17_in_gag(T204, X293, black))
p17_in_gag(T16, X50, T17) → U14_gag(T16, X50, T17, varmat16_in_ga(T16, X50))
U14_gag(T16, X50, T17, varmat16_out_ga(T16, X50)) → p17_out_gag(T16, X50, T17)
p17_in_gag(T16, T37, T17) → U15_gag(T16, T37, T17, varmat16_in_ga(T16, T37))
U15_gag(T16, T37, T17, varmat16_out_ga(T16, T37)) → U16_gag(T16, T37, T17, unif_matrx37_in_ga(T17, T37))
unif_matrx37_in_ga(T56, .(T57, T58)) → U6_ga(T56, T57, T58, unif_lines43_in_ga(T56, T57))
unif_lines43_in_ga(.(T103, .(T104, T107)), .(T105, .(T106, T108))) → U9_ga(T103, T104, T107, T105, T106, T108, p50_in_gaggaa(T103, .(T104, .(T105, .(T106, .(T103, .(T105, .(T104, .(T106, .(T103, .(T106, .(T104, .(T105, []))))))))))), T104, T107, T106, T108))
p50_in_gaggaa(T103, T113, T104, T107, T106, T108) → U17_gaggaa(T103, T113, T104, T107, T106, T108, unif_pairs51_in_ga(T103, T113))
unif_pairs51_in_ga(w(T140), .(w(T140), T141)) → U20_ga(T140, T141, unif_pairs60_in_a(T141))
U20_ga(T140, T141, unif_pairs60_out_a(T141)) → unif_pairs51_out_ga(w(T140), .(w(T140), T141))
unif_pairs51_in_ga(black, .(black, T171)) → U21_ga(T171, unif_pairs60_in_a(T171))
U21_ga(T171, unif_pairs60_out_a(T171)) → unif_pairs51_out_ga(black, .(black, T171))
unif_pairs51_in_ga(black, .(w(T176), T177)) → U22_ga(T176, T177, unif_pairs60_in_a(T177))
U22_ga(T176, T177, unif_pairs60_out_a(T177)) → unif_pairs51_out_ga(black, .(w(T176), T177))
unif_pairs51_in_ga(w(T180), .(black, T181)) → U23_ga(T180, T181, unif_pairs60_in_a(T181))
U23_ga(T180, T181, unif_pairs60_out_a(T181)) → unif_pairs51_out_ga(w(T180), .(black, T181))
U17_gaggaa(T103, T113, T104, T107, T106, T108, unif_pairs51_out_ga(T103, T113)) → p50_out_gaggaa(T103, T113, T104, T107, T106, T108)
p50_in_gaggaa(T103, T113, T117, T118, T119, T120) → U18_gaggaa(T103, T113, T117, T118, T119, T120, unif_pairs51_in_ga(T103, T113))
U18_gaggaa(T103, T113, T117, T118, T119, T120, unif_pairs51_out_ga(T103, T113)) → U19_gaggaa(T103, T113, T117, T118, T119, T120, unif_lines43_in_ga(.(T117, T118), .(T119, T120)))
unif_lines43_in_ga(.(T192, []), .(T193, [])) → unif_lines43_out_ga(.(T192, []), .(T193, []))
U19_gaggaa(T103, T113, T117, T118, T119, T120, unif_lines43_out_ga(.(T117, T118), .(T119, T120))) → p50_out_gaggaa(T103, T113, T117, T118, T119, T120)
U9_ga(T103, T104, T107, T105, T106, T108, p50_out_gaggaa(T103, .(T104, .(T105, .(T106, .(T103, .(T105, .(T104, .(T106, .(T103, .(T106, .(T104, .(T105, []))))))))))), T104, T107, T106, T108)) → unif_lines43_out_ga(.(T103, .(T104, T107)), .(T105, .(T106, T108)))
U6_ga(T56, T57, T58, unif_lines43_out_ga(T56, T57)) → unif_matrx37_out_ga(T56, .(T57, T58))
unif_matrx37_in_ga(T56, .(T65, T66)) → U7_ga(T56, T65, T66, unif_lines43_in_ga(T56, T65))
U7_ga(T56, T65, T66, unif_lines43_out_ga(T56, T65)) → U8_ga(T56, T65, T66, unif_matrx37_in_aa(T65, T66))
U8_ga(T56, T65, T66, unif_matrx37_out_aa(T65, T66)) → unif_matrx37_out_ga(T56, .(T65, T66))
unif_matrx37_in_ga(T199, []) → unif_matrx37_out_ga(T199, [])
U16_gag(T16, T37, T17, unif_matrx37_out_ga(T17, T37)) → p17_out_gag(T16, T37, T17)
U27_ga(T204, T6, p17_out_gag(T204, X293, black)) → shapes1_out_ga(.(black, T204), T6)
shapes1_in_ga(.(white, T207), T6) → U28_ga(T207, T6, p17_in_gag(T207, X310, w(X309)))
U28_ga(T207, T6, p17_out_gag(T207, X310, w(X309))) → shapes1_out_ga(.(white, T207), T6)
VARMAT16_IN_GA(.(T26, T27), .(T28, X84)) → U2_GA(T26, T27, T28, X84, varmat16_in_ga(T26, T28))
U2_GA(T26, T27, T28, X84, varmat16_out_ga(T26, T28)) → VARMAT16_IN_GA(T27, X84)
VARMAT16_IN_GA(.(T26, T27), .(X83, X84)) → VARMAT16_IN_GA(T26, X83)
VARMAT16_IN_GA(.(black, T33), .(black, X103)) → VARMAT16_IN_GA(T33, X103)
VARMAT16_IN_GA(.(white, T36), .(w(X119), X120)) → VARMAT16_IN_GA(T36, X120)
varmat16_in_ga([], []) → varmat16_out_ga([], [])
varmat16_in_ga(.(T26, T27), .(X83, X84)) → U1_ga(T26, T27, X83, X84, varmat16_in_ga(T26, X83))
varmat16_in_ga(.(T26, T27), .(T28, X84)) → U2_ga(T26, T27, T28, X84, varmat16_in_ga(T26, T28))
varmat16_in_ga(.(black, T33), .(black, X103)) → U4_ga(T33, X103, varmat16_in_ga(T33, X103))
varmat16_in_ga(.(white, T36), .(w(X119), X120)) → U5_ga(T36, X119, X120, varmat16_in_ga(T36, X120))
U1_ga(T26, T27, X83, X84, varmat16_out_ga(T26, X83)) → varmat16_out_ga(.(T26, T27), .(X83, X84))
U2_ga(T26, T27, T28, X84, varmat16_out_ga(T26, T28)) → U3_ga(T26, T27, T28, X84, varmat16_in_ga(T27, X84))
U4_ga(T33, X103, varmat16_out_ga(T33, X103)) → varmat16_out_ga(.(black, T33), .(black, X103))
U5_ga(T36, X119, X120, varmat16_out_ga(T36, X120)) → varmat16_out_ga(.(white, T36), .(w(X119), X120))
U3_ga(T26, T27, T28, X84, varmat16_out_ga(T27, X84)) → varmat16_out_ga(.(T26, T27), .(T28, X84))
VARMAT16_IN_GA(.(T26, T27)) → U2_GA(T27, varmat16_in_ga(T26))
U2_GA(T27, varmat16_out_ga) → VARMAT16_IN_GA(T27)
VARMAT16_IN_GA(.(T26, T27)) → VARMAT16_IN_GA(T26)
VARMAT16_IN_GA(.(black, T33)) → VARMAT16_IN_GA(T33)
VARMAT16_IN_GA(.(white, T36)) → VARMAT16_IN_GA(T36)
varmat16_in_ga([]) → varmat16_out_ga
varmat16_in_ga(.(T26, T27)) → U1_ga(varmat16_in_ga(T26))
varmat16_in_ga(.(T26, T27)) → U2_ga(T27, varmat16_in_ga(T26))
varmat16_in_ga(.(black, T33)) → U4_ga(varmat16_in_ga(T33))
varmat16_in_ga(.(white, T36)) → U5_ga(varmat16_in_ga(T36))
U1_ga(varmat16_out_ga) → varmat16_out_ga
U2_ga(T27, varmat16_out_ga) → U3_ga(varmat16_in_ga(T27))
U4_ga(varmat16_out_ga) → varmat16_out_ga
U5_ga(varmat16_out_ga) → varmat16_out_ga
U3_ga(varmat16_out_ga) → varmat16_out_ga
varmat16_in_ga(x0)
U1_ga(x0)
U2_ga(x0, x1)
U4_ga(x0)
U5_ga(x0)
U3_ga(x0)
From the DPs we obtained the following set of size-change graphs: