0 Prolog
↳1 PrologToPiTRSViaGraphTransformerProof (⇒, 973 ms)
↳2 PiTRS
↳3 DependencyPairsProof (⇔, 3729 ms)
↳4 PiDP
↳5 DependencyGraphProof (⇔, 143 ms)
↳6 AND
↳7 PiDP
↳8 UsableRulesProof (⇔, 0 ms)
↳9 PiDP
↳10 PiDPToQDPProof (⇒, 2 ms)
↳11 QDP
↳12 QDPSizeChangeProof (⇔, 0 ms)
↳13 YES
↳14 PiDP
↳15 UsableRulesProof (⇔, 0 ms)
↳16 PiDP
↳17 PiDPToQDPProof (⇒, 0 ms)
↳18 QDP
↳19 QDPSizeChangeProof (⇔, 0 ms)
↳20 YES
↳21 PiDP
↳22 UsableRulesProof (⇔, 0 ms)
↳23 PiDP
↳24 PiDPToQDPProof (⇒, 0 ms)
↳25 QDP
↳26 QDPSizeChangeProof (⇔, 0 ms)
↳27 YES
↳28 PiDP
↳29 UsableRulesProof (⇔, 0 ms)
↳30 PiDP
↳31 PiDPToQDPProof (⇒, 0 ms)
↳32 QDP
↳33 QDPSizeChangeProof (⇔, 0 ms)
↳34 YES
↳35 PiDP
↳36 UsableRulesProof (⇔, 0 ms)
↳37 PiDP
↳38 PiDPToQDPProof (⇒, 0 ms)
↳39 QDP
↳40 QDPSizeChangeProof (⇔, 0 ms)
↳41 YES
↳42 PiDP
↳43 UsableRulesProof (⇔, 0 ms)
↳44 PiDP
↳45 PiDPToQDPProof (⇒, 0 ms)
↳46 QDP
↳47 QDPSizeChangeProof (⇔, 0 ms)
↳48 YES
↳49 PiDP
↳50 UsableRulesProof (⇔, 0 ms)
↳51 PiDP
↳52 PiDPToQDPProof (⇒, 0 ms)
↳53 QDP
↳54 QDPSizeChangeProof (⇔, 0 ms)
↳55 YES
↳56 PiDP
↳57 UsableRulesProof (⇔, 0 ms)
↳58 PiDP
↳59 PiDPToQDPProof (⇒, 0 ms)
↳60 QDP
↳61 QDPSizeChangeProof (⇔, 0 ms)
↳62 YES
↳63 PiDP
↳64 UsableRulesProof (⇔, 0 ms)
↳65 PiDP
↳66 PiDPToQDPProof (⇔, 0 ms)
↳67 QDP
↳68 QDPSizeChangeProof (⇔, 0 ms)
↳69 YES
↳70 PiDP
↳71 UsableRulesProof (⇔, 0 ms)
↳72 PiDP
↳73 PiDPToQDPProof (⇒, 13 ms)
↳74 QDP
↳75 QDPSizeChangeProof (⇔, 0 ms)
↳76 YES
↳77 PiDP
↳78 UsableRulesProof (⇔, 0 ms)
↳79 PiDP
↳80 PiDPToQDPProof (⇒, 359 ms)
↳81 QDP
↳82 QDPSizeChangeProof (⇔, 0 ms)
↳83 YES
↳84 PiDP
↳85 UsableRulesProof (⇔, 0 ms)
↳86 PiDP
↳87 PiDPToQDPProof (⇒, 0 ms)
↳88 QDP
↳89 QDPSizeChangeProof (⇔, 0 ms)
↳90 YES
↳91 PiDP
↳92 UsableRulesProof (⇔, 0 ms)
↳93 PiDP
↳94 PiDPToQDPProof (⇒, 0 ms)
↳95 QDP
↳96 QDPOrderProof (⇔, 31 ms)
↳97 QDP
↳98 DependencyGraphProof (⇔, 0 ms)
↳99 TRUE
queensA_in_a(.(T11, T12)) → U1_a(T11, T12, pB_in_agaa(T11, .(s(s(0)), .(s(s(s(0))), .(s(s(s(s(0)))), .(s(s(s(s(s(0))))), .(s(s(s(s(s(s(0)))))), .(s(s(s(s(s(s(s(0))))))), .(s(s(s(s(s(s(s(s(0)))))))), []))))))), X16, T12))
pB_in_agaa(T22, T15, T20, T21) → U24_agaa(T22, T15, T20, T21, deleteO_in_aga(T22, T15, T20))
deleteO_in_aga(s(0), T36, T36) → deleteO_out_aga(s(0), T36, T36)
deleteO_in_aga(T48, T47, .(s(0), X57)) → U13_aga(T48, T47, X57, deleteC_in_aga(T48, T47, X57))
deleteC_in_aga(T61, .(T61, T62), T62) → deleteC_out_aga(T61, .(T61, T62), T62)
deleteC_in_aga(T72, .(T70, T71), .(T70, X86)) → U2_aga(T72, T70, T71, X86, deleteC_in_aga(T72, T71, X86))
U2_aga(T72, T70, T71, X86, deleteC_out_aga(T72, T71, X86)) → deleteC_out_aga(T72, .(T70, T71), .(T70, X86))
U13_aga(T48, T47, X57, deleteC_out_aga(T48, T47, X57)) → deleteO_out_aga(T48, T47, .(s(0), X57))
U24_agaa(T22, T15, T20, T21, deleteO_out_aga(T22, T15, T20)) → U25_agaa(T22, T15, T20, T21, pN9_in_gag(T20, T21, T22))
pN9_in_gag(T20, T77, T22) → U26_gag(T20, T77, T22, permD_in_ga(T20, T77))
permD_in_ga([], []) → permD_out_ga([], [])
permD_in_ga(.(T86, T87), .(T90, T91)) → U3_ga(T86, T87, T90, T91, pE_in_aggaa(T90, T86, T87, X104, T91))
pE_in_aggaa(T90, T86, T87, T96, T97) → U28_aggaa(T90, T86, T87, T96, T97, deleteC_in_aga(T90, .(T86, T87), T96))
U28_aggaa(T90, T86, T87, T96, T97, deleteC_out_aga(T90, .(T86, T87), T96)) → U29_aggaa(T90, T86, T87, T96, T97, permD_in_ga(T96, T97))
U29_aggaa(T90, T86, T87, T96, T97, permD_out_ga(T96, T97)) → pE_out_aggaa(T90, T86, T87, T96, T97)
U3_ga(T86, T87, T90, T91, pE_out_aggaa(T90, T86, T87, X104, T91)) → permD_out_ga(.(T86, T87), .(T90, T91))
U26_gag(T20, T77, T22, permD_out_ga(T20, T77)) → U27_gag(T20, T77, T22, safeP_in_gg(T22, T77))
safeP_in_gg(T108, T109) → U14_gg(T108, T109, pQ_in_gg(T108, T109))
pQ_in_gg(T108, T109) → U30_gg(T108, T109, noattackR_in_gg(T108, T109))
noattackR_in_gg(T118, []) → noattackR_out_gg(T118, [])
noattackR_in_gg(T125, .(T126, T127)) → U15_gg(T125, T126, T127, pS_in_ggaag(T125, T126, X155, X156, T127))
pS_in_ggaag(T125, T126, X155, X156, T127) → U32_ggaag(T125, T126, X155, X156, T127, notEqF_in_gg(T125, T126))
notEqF_in_gg(0, s(T136)) → notEqF_out_gg(0, s(T136))
notEqF_in_gg(s(T141), 0) → notEqF_out_gg(s(T141), 0)
notEqF_in_gg(s(T146), s(T147)) → U4_gg(T146, T147, notEqF_in_gg(T146, T147))
U4_gg(T146, T147, notEqF_out_gg(T146, T147)) → notEqF_out_gg(s(T146), s(T147))
U32_ggaag(T125, T126, X155, X156, T127, notEqF_out_gg(T125, T126)) → U33_ggaag(T125, T126, X155, X156, T127, pN10_in_gagag(T126, X155, T125, X156, T127))
pN10_in_gagag(T126, T150, T125, X156, T127) → U34_gagag(T126, T150, T125, X156, T127, addG_in_ga(T126, T150))
addG_in_ga(0, s(0)) → addG_out_ga(0, s(0))
addG_in_ga(s(T153), s(X199)) → U5_ga(T153, X199, addG_in_ga(T153, X199))
U5_ga(T153, X199, addG_out_ga(T153, X199)) → addG_out_ga(s(T153), s(X199))
U34_gagag(T126, T150, T125, X156, T127, addG_out_ga(T126, T150)) → U35_gagag(T126, T150, T125, X156, T127, pN11_in_ggagg(T125, T150, X156, T126, T127))
pN11_in_ggagg(T125, T150, X156, T126, T127) → U36_ggagg(T125, T150, X156, T126, T127, notEqF_in_gg(T125, T150))
U36_ggagg(T125, T150, X156, T126, T127, notEqF_out_gg(T125, T150)) → U37_ggagg(T125, T150, X156, T126, T127, pN12_in_gagg(T125, X156, T126, T127))
pN12_in_gagg(T125, T158, T126, T127) → U38_gagg(T125, T158, T126, T127, addG_in_ga(T125, T158))
U38_gagg(T125, T158, T126, T127, addG_out_ga(T125, T158)) → U39_gagg(T125, T158, T126, T127, pN13_in_gggg(T126, T158, T125, T127))
pN13_in_gggg(T126, T158, T125, T127) → U40_gggg(T126, T158, T125, T127, notEqF_in_gg(T126, T158))
U40_gggg(T126, T158, T125, T127, notEqF_out_gg(T126, T158)) → U41_gggg(T126, T158, T125, T127, noattackU_in_gg(T125, T127))
noattackU_in_gg(T169, []) → noattackU_out_gg(T169, [])
noattackU_in_gg(T176, .(T177, T178)) → U17_gg(T176, T177, T178, pV_in_ggaag(T176, T177, X242, X243, T178))
pV_in_ggaag(T176, T177, X242, X243, T178) → U42_ggaag(T176, T177, X242, X243, T178, notEqF_in_gg(T176, T177))
U42_ggaag(T176, T177, X242, X243, T178, notEqF_out_gg(T176, T177)) → U43_ggaag(T176, T177, X242, X243, T178, pN14_in_gagag(T177, X242, T176, X243, T178))
pN14_in_gagag(T177, T183, T176, X243, T178) → U44_gagag(T177, T183, T176, X243, T178, addH_in_ga(T177, T183))
addH_in_ga(0, s(s(0))) → addH_out_ga(0, s(s(0)))
addH_in_ga(s(T186), s(X268)) → U6_ga(T186, X268, addH_in_ga(T186, X268))
U6_ga(T186, X268, addH_out_ga(T186, X268)) → addH_out_ga(s(T186), s(X268))
U44_gagag(T177, T183, T176, X243, T178, addH_out_ga(T177, T183)) → U45_gagag(T177, T183, T176, X243, T178, pN15_in_ggagg(T176, T183, X243, T177, T178))
pN15_in_ggagg(T176, T183, X243, T177, T178) → U46_ggagg(T176, T183, X243, T177, T178, notEqF_in_gg(T176, T183))
U46_ggagg(T176, T183, X243, T177, T178, notEqF_out_gg(T176, T183)) → U47_ggagg(T176, T183, X243, T177, T178, pN16_in_gagg(T176, X243, T177, T178))
pN16_in_gagg(T176, T191, T177, T178) → U48_gagg(T176, T191, T177, T178, addH_in_ga(T176, T191))
U48_gagg(T176, T191, T177, T178, addH_out_ga(T176, T191)) → U49_gagg(T176, T191, T177, T178, pN17_in_gggg(T177, T191, T176, T178))
pN17_in_gggg(T177, T191, T176, T178) → U50_gggg(T177, T191, T176, T178, notEqF_in_gg(T177, T191))
U50_gggg(T177, T191, T176, T178, notEqF_out_gg(T177, T191)) → U51_gggg(T177, T191, T176, T178, noattackW_in_gg(T176, T178))
noattackW_in_gg(T202, []) → noattackW_out_gg(T202, [])
noattackW_in_gg(T209, .(T210, T211)) → U18_gg(T209, T210, T211, pX_in_ggaag(T209, T210, X311, X312, T211))
pX_in_ggaag(T209, T210, X311, X312, T211) → U52_ggaag(T209, T210, X311, X312, T211, notEqF_in_gg(T209, T210))
U52_ggaag(T209, T210, X311, X312, T211, notEqF_out_gg(T209, T210)) → U53_ggaag(T209, T210, X311, X312, T211, pN18_in_gagag(T210, X311, T209, X312, T211))
pN18_in_gagag(T210, T216, T209, X312, T211) → U54_gagag(T210, T216, T209, X312, T211, addI_in_ga(T210, T216))
addI_in_ga(0, s(s(s(0)))) → addI_out_ga(0, s(s(s(0))))
addI_in_ga(s(T219), s(X337)) → U7_ga(T219, X337, addI_in_ga(T219, X337))
U7_ga(T219, X337, addI_out_ga(T219, X337)) → addI_out_ga(s(T219), s(X337))
U54_gagag(T210, T216, T209, X312, T211, addI_out_ga(T210, T216)) → U55_gagag(T210, T216, T209, X312, T211, pN19_in_ggagg(T209, T216, X312, T210, T211))
pN19_in_ggagg(T209, T216, X312, T210, T211) → U56_ggagg(T209, T216, X312, T210, T211, notEqF_in_gg(T209, T216))
U56_ggagg(T209, T216, X312, T210, T211, notEqF_out_gg(T209, T216)) → U57_ggagg(T209, T216, X312, T210, T211, pN20_in_gagg(T209, X312, T210, T211))
pN20_in_gagg(T209, T224, T210, T211) → U58_gagg(T209, T224, T210, T211, addI_in_ga(T209, T224))
U58_gagg(T209, T224, T210, T211, addI_out_ga(T209, T224)) → U59_gagg(T209, T224, T210, T211, pN21_in_gggg(T210, T224, T209, T211))
pN21_in_gggg(T210, T224, T209, T211) → U60_gggg(T210, T224, T209, T211, notEqF_in_gg(T210, T224))
U60_gggg(T210, T224, T209, T211, notEqF_out_gg(T210, T224)) → U61_gggg(T210, T224, T209, T211, noattackY_in_gg(T209, T211))
noattackY_in_gg(T235, []) → noattackY_out_gg(T235, [])
noattackY_in_gg(T242, .(T243, T244)) → U19_gg(T242, T243, T244, pZ_in_ggaag(T242, T243, X380, X381, T244))
pZ_in_ggaag(T242, T243, X380, X381, T244) → U62_ggaag(T242, T243, X380, X381, T244, notEqF_in_gg(T242, T243))
U62_ggaag(T242, T243, X380, X381, T244, notEqF_out_gg(T242, T243)) → U63_ggaag(T242, T243, X380, X381, T244, pN22_in_gagag(T243, X380, T242, X381, T244))
pN22_in_gagag(T243, T249, T242, X381, T244) → U64_gagag(T243, T249, T242, X381, T244, addJ_in_ga(T243, T249))
addJ_in_ga(0, s(s(s(s(0))))) → addJ_out_ga(0, s(s(s(s(0)))))
addJ_in_ga(s(T252), s(X406)) → U8_ga(T252, X406, addJ_in_ga(T252, X406))
U8_ga(T252, X406, addJ_out_ga(T252, X406)) → addJ_out_ga(s(T252), s(X406))
U64_gagag(T243, T249, T242, X381, T244, addJ_out_ga(T243, T249)) → U65_gagag(T243, T249, T242, X381, T244, pN23_in_ggagg(T242, T249, X381, T243, T244))
pN23_in_ggagg(T242, T249, X381, T243, T244) → U66_ggagg(T242, T249, X381, T243, T244, notEqF_in_gg(T242, T249))
U66_ggagg(T242, T249, X381, T243, T244, notEqF_out_gg(T242, T249)) → U67_ggagg(T242, T249, X381, T243, T244, pN24_in_gagg(T242, X381, T243, T244))
pN24_in_gagg(T242, T257, T243, T244) → U68_gagg(T242, T257, T243, T244, addJ_in_ga(T242, T257))
U68_gagg(T242, T257, T243, T244, addJ_out_ga(T242, T257)) → U69_gagg(T242, T257, T243, T244, pN25_in_gggg(T243, T257, T242, T244))
pN25_in_gggg(T243, T257, T242, T244) → U70_gggg(T243, T257, T242, T244, notEqF_in_gg(T243, T257))
U70_gggg(T243, T257, T242, T244, notEqF_out_gg(T243, T257)) → U71_gggg(T243, T257, T242, T244, noattackN1_in_gg(T242, T244))
noattackN1_in_gg(T268, []) → noattackN1_out_gg(T268, [])
noattackN1_in_gg(T275, .(T276, T277)) → U20_gg(T275, T276, T277, pN2_in_ggaag(T275, T276, X449, X450, T277))
pN2_in_ggaag(T275, T276, X449, X450, T277) → U72_ggaag(T275, T276, X449, X450, T277, notEqF_in_gg(T275, T276))
U72_ggaag(T275, T276, X449, X450, T277, notEqF_out_gg(T275, T276)) → U73_ggaag(T275, T276, X449, X450, T277, pN26_in_gagag(T276, X449, T275, X450, T277))
pN26_in_gagag(T276, T282, T275, X450, T277) → U74_gagag(T276, T282, T275, X450, T277, addK_in_ga(T276, T282))
addK_in_ga(0, s(s(s(s(s(0)))))) → addK_out_ga(0, s(s(s(s(s(0))))))
addK_in_ga(s(T285), s(X475)) → U9_ga(T285, X475, addK_in_ga(T285, X475))
U9_ga(T285, X475, addK_out_ga(T285, X475)) → addK_out_ga(s(T285), s(X475))
U74_gagag(T276, T282, T275, X450, T277, addK_out_ga(T276, T282)) → U75_gagag(T276, T282, T275, X450, T277, pN27_in_ggagg(T275, T282, X450, T276, T277))
pN27_in_ggagg(T275, T282, X450, T276, T277) → U76_ggagg(T275, T282, X450, T276, T277, notEqF_in_gg(T275, T282))
U76_ggagg(T275, T282, X450, T276, T277, notEqF_out_gg(T275, T282)) → U77_ggagg(T275, T282, X450, T276, T277, pN28_in_gagg(T275, X450, T276, T277))
pN28_in_gagg(T275, T290, T276, T277) → U78_gagg(T275, T290, T276, T277, addK_in_ga(T275, T290))
U78_gagg(T275, T290, T276, T277, addK_out_ga(T275, T290)) → U79_gagg(T275, T290, T276, T277, pN29_in_gggg(T276, T290, T275, T277))
pN29_in_gggg(T276, T290, T275, T277) → U80_gggg(T276, T290, T275, T277, notEqF_in_gg(T276, T290))
U80_gggg(T276, T290, T275, T277, notEqF_out_gg(T276, T290)) → U81_gggg(T276, T290, T275, T277, noattackN3_in_gg(T275, T277))
noattackN3_in_gg(T301, []) → noattackN3_out_gg(T301, [])
noattackN3_in_gg(T308, .(T309, T310)) → U21_gg(T308, T309, T310, pN4_in_ggaag(T308, T309, X518, X519, T310))
pN4_in_ggaag(T308, T309, X518, X519, T310) → U82_ggaag(T308, T309, X518, X519, T310, notEqF_in_gg(T308, T309))
U82_ggaag(T308, T309, X518, X519, T310, notEqF_out_gg(T308, T309)) → U83_ggaag(T308, T309, X518, X519, T310, pN30_in_gagag(T309, X518, T308, X519, T310))
pN30_in_gagag(T309, T315, T308, X519, T310) → U84_gagag(T309, T315, T308, X519, T310, addL_in_ga(T309, T315))
addL_in_ga(0, s(s(s(s(s(s(0))))))) → addL_out_ga(0, s(s(s(s(s(s(0)))))))
addL_in_ga(s(T318), s(X544)) → U10_ga(T318, X544, addL_in_ga(T318, X544))
U10_ga(T318, X544, addL_out_ga(T318, X544)) → addL_out_ga(s(T318), s(X544))
U84_gagag(T309, T315, T308, X519, T310, addL_out_ga(T309, T315)) → U85_gagag(T309, T315, T308, X519, T310, pN31_in_ggagg(T308, T315, X519, T309, T310))
pN31_in_ggagg(T308, T315, X519, T309, T310) → U86_ggagg(T308, T315, X519, T309, T310, notEqF_in_gg(T308, T315))
U86_ggagg(T308, T315, X519, T309, T310, notEqF_out_gg(T308, T315)) → U87_ggagg(T308, T315, X519, T309, T310, pN32_in_gagg(T308, X519, T309, T310))
pN32_in_gagg(T308, T323, T309, T310) → U88_gagg(T308, T323, T309, T310, addL_in_ga(T308, T323))
U88_gagg(T308, T323, T309, T310, addL_out_ga(T308, T323)) → U89_gagg(T308, T323, T309, T310, pN33_in_gggg(T309, T323, T308, T310))
pN33_in_gggg(T309, T323, T308, T310) → U90_gggg(T309, T323, T308, T310, notEqF_in_gg(T309, T323))
U90_gggg(T309, T323, T308, T310, notEqF_out_gg(T309, T323)) → U91_gggg(T309, T323, T308, T310, noattackN5_in_gg(T308, T310))
noattackN5_in_gg(T334, []) → noattackN5_out_gg(T334, [])
noattackN5_in_gg(T341, .(T342, T343)) → U22_gg(T341, T342, T343, pN6_in_ggaagg(T341, T342, X587, X588, T343, s(s(s(s(s(s(s(0)))))))))
pN6_in_ggaagg(T341, T342, X587, X588, T343, T346) → U92_ggaagg(T341, T342, X587, X588, T343, T346, notEqF_in_gg(T341, T342))
U92_ggaagg(T341, T342, X587, X588, T343, T346, notEqF_out_gg(T341, T342)) → U93_ggaagg(T341, T342, X587, X588, T343, T346, pN34_in_gagagg(T342, X587, T341, X588, T343, T346))
pN34_in_gagagg(T342, T351, T341, X588, T343, T346) → U94_gagagg(T342, T351, T341, X588, T343, T346, addM_in_ga(T342, T351))
addM_in_ga(0, s(s(s(s(s(s(s(0)))))))) → addM_out_ga(0, s(s(s(s(s(s(s(0))))))))
addM_in_ga(s(T354), s(X615)) → U11_ga(T354, X615, addM_in_ga(T354, X615))
U11_ga(T354, X615, addM_out_ga(T354, X615)) → addM_out_ga(s(T354), s(X615))
U94_gagagg(T342, T351, T341, X588, T343, T346, addM_out_ga(T342, T351)) → U95_gagagg(T342, T351, T341, X588, T343, T346, pN35_in_ggaggg(T341, T351, X588, T342, T343, T346))
pN35_in_ggaggg(T341, T351, X588, T342, T343, T346) → U96_ggaggg(T341, T351, X588, T342, T343, T346, notEqF_in_gg(T341, T351))
U96_ggaggg(T341, T351, X588, T342, T343, T346, notEqF_out_gg(T341, T351)) → U97_ggaggg(T341, T351, X588, T342, T343, T346, pN36_in_gaggg(T341, X588, T342, T343, T346))
pN36_in_gaggg(T341, T359, T342, T343, T346) → U98_gaggg(T341, T359, T342, T343, T346, addM_in_ga(T341, T359))
U98_gaggg(T341, T359, T342, T343, T346, addM_out_ga(T341, T359)) → U99_gaggg(T341, T359, T342, T343, T346, pN37_in_ggggg(T342, T359, T341, T343, T346))
pN37_in_ggggg(T342, T359, T341, T343, T346) → U100_ggggg(T342, T359, T341, T343, T346, notEqF_in_gg(T342, T359))
U100_ggggg(T342, T359, T341, T343, T346, notEqF_out_gg(T342, T359)) → U101_ggggg(T342, T359, T341, T343, T346, noattackN7_in_ggg(T341, T343, T346))
noattackN7_in_ggg(T376, [], T377) → noattackN7_out_ggg(T376, [], T377)
noattackN7_in_ggg(T386, .(T387, T388), T389) → U23_ggg(T386, T387, T388, T389, pN8_in_gggaag(T386, T387, T389, X658, X659, T388))
pN8_in_gggaag(T386, T387, T389, X658, X659, T388) → U102_gggaag(T386, T387, T389, X658, X659, T388, notEqF_in_gg(T386, T387))
U102_gggaag(T386, T387, T389, X658, X659, T388, notEqF_out_gg(T386, T387)) → U103_gggaag(T386, T387, T389, X658, X659, T388, pN38_in_ggagag(T387, T389, X658, T386, X659, T388))
pN38_in_ggagag(T387, T389, T396, T386, X659, T388) → U104_ggagag(T387, T389, T396, T386, X659, T388, addN_in_gga(T387, T389, T396))
addN_in_gga(0, T403, s(T403)) → addN_out_gga(0, T403, s(T403))
addN_in_gga(s(T408), T409, s(X684)) → U12_gga(T408, T409, X684, addN_in_gga(T408, T409, X684))
U12_gga(T408, T409, X684, addN_out_gga(T408, T409, X684)) → addN_out_gga(s(T408), T409, s(X684))
U104_ggagag(T387, T389, T396, T386, X659, T388, addN_out_gga(T387, T389, T396)) → U105_ggagag(T387, T389, T396, T386, X659, T388, pN39_in_gggagg(T386, T396, T389, X659, T387, T388))
pN39_in_gggagg(T386, T396, T389, X659, T387, T388) → U106_gggagg(T386, T396, T389, X659, T387, T388, notEqF_in_gg(T386, T396))
U106_gggagg(T386, T396, T389, X659, T387, T388, notEqF_out_gg(T386, T396)) → U107_gggagg(T386, T396, T389, X659, T387, T388, pN40_in_ggagg(T386, T389, X659, T387, T388))
pN40_in_ggagg(T386, T389, T418, T387, T388) → U108_ggagg(T386, T389, T418, T387, T388, addN_in_gga(T386, T389, T418))
U108_ggagg(T386, T389, T418, T387, T388, addN_out_gga(T386, T389, T418)) → U109_ggagg(T386, T389, T418, T387, T388, pN37_in_ggggg(T387, T418, T386, T388, s(T389)))
U109_ggagg(T386, T389, T418, T387, T388, pN37_out_ggggg(T387, T418, T386, T388, s(T389))) → pN40_out_ggagg(T386, T389, T418, T387, T388)
U107_gggagg(T386, T396, T389, X659, T387, T388, pN40_out_ggagg(T386, T389, X659, T387, T388)) → pN39_out_gggagg(T386, T396, T389, X659, T387, T388)
U105_ggagag(T387, T389, T396, T386, X659, T388, pN39_out_gggagg(T386, T396, T389, X659, T387, T388)) → pN38_out_ggagag(T387, T389, T396, T386, X659, T388)
U103_gggaag(T386, T387, T389, X658, X659, T388, pN38_out_ggagag(T387, T389, X658, T386, X659, T388)) → pN8_out_gggaag(T386, T387, T389, X658, X659, T388)
U23_ggg(T386, T387, T388, T389, pN8_out_gggaag(T386, T387, T389, X658, X659, T388)) → noattackN7_out_ggg(T386, .(T387, T388), T389)
U101_ggggg(T342, T359, T341, T343, T346, noattackN7_out_ggg(T341, T343, T346)) → pN37_out_ggggg(T342, T359, T341, T343, T346)
U99_gaggg(T341, T359, T342, T343, T346, pN37_out_ggggg(T342, T359, T341, T343, T346)) → pN36_out_gaggg(T341, T359, T342, T343, T346)
U97_ggaggg(T341, T351, X588, T342, T343, T346, pN36_out_gaggg(T341, X588, T342, T343, T346)) → pN35_out_ggaggg(T341, T351, X588, T342, T343, T346)
U95_gagagg(T342, T351, T341, X588, T343, T346, pN35_out_ggaggg(T341, T351, X588, T342, T343, T346)) → pN34_out_gagagg(T342, T351, T341, X588, T343, T346)
U93_ggaagg(T341, T342, X587, X588, T343, T346, pN34_out_gagagg(T342, X587, T341, X588, T343, T346)) → pN6_out_ggaagg(T341, T342, X587, X588, T343, T346)
U22_gg(T341, T342, T343, pN6_out_ggaagg(T341, T342, X587, X588, T343, s(s(s(s(s(s(s(0))))))))) → noattackN5_out_gg(T341, .(T342, T343))
U91_gggg(T309, T323, T308, T310, noattackN5_out_gg(T308, T310)) → pN33_out_gggg(T309, T323, T308, T310)
U89_gagg(T308, T323, T309, T310, pN33_out_gggg(T309, T323, T308, T310)) → pN32_out_gagg(T308, T323, T309, T310)
U87_ggagg(T308, T315, X519, T309, T310, pN32_out_gagg(T308, X519, T309, T310)) → pN31_out_ggagg(T308, T315, X519, T309, T310)
U85_gagag(T309, T315, T308, X519, T310, pN31_out_ggagg(T308, T315, X519, T309, T310)) → pN30_out_gagag(T309, T315, T308, X519, T310)
U83_ggaag(T308, T309, X518, X519, T310, pN30_out_gagag(T309, X518, T308, X519, T310)) → pN4_out_ggaag(T308, T309, X518, X519, T310)
U21_gg(T308, T309, T310, pN4_out_ggaag(T308, T309, X518, X519, T310)) → noattackN3_out_gg(T308, .(T309, T310))
U81_gggg(T276, T290, T275, T277, noattackN3_out_gg(T275, T277)) → pN29_out_gggg(T276, T290, T275, T277)
U79_gagg(T275, T290, T276, T277, pN29_out_gggg(T276, T290, T275, T277)) → pN28_out_gagg(T275, T290, T276, T277)
U77_ggagg(T275, T282, X450, T276, T277, pN28_out_gagg(T275, X450, T276, T277)) → pN27_out_ggagg(T275, T282, X450, T276, T277)
U75_gagag(T276, T282, T275, X450, T277, pN27_out_ggagg(T275, T282, X450, T276, T277)) → pN26_out_gagag(T276, T282, T275, X450, T277)
U73_ggaag(T275, T276, X449, X450, T277, pN26_out_gagag(T276, X449, T275, X450, T277)) → pN2_out_ggaag(T275, T276, X449, X450, T277)
U20_gg(T275, T276, T277, pN2_out_ggaag(T275, T276, X449, X450, T277)) → noattackN1_out_gg(T275, .(T276, T277))
U71_gggg(T243, T257, T242, T244, noattackN1_out_gg(T242, T244)) → pN25_out_gggg(T243, T257, T242, T244)
U69_gagg(T242, T257, T243, T244, pN25_out_gggg(T243, T257, T242, T244)) → pN24_out_gagg(T242, T257, T243, T244)
U67_ggagg(T242, T249, X381, T243, T244, pN24_out_gagg(T242, X381, T243, T244)) → pN23_out_ggagg(T242, T249, X381, T243, T244)
U65_gagag(T243, T249, T242, X381, T244, pN23_out_ggagg(T242, T249, X381, T243, T244)) → pN22_out_gagag(T243, T249, T242, X381, T244)
U63_ggaag(T242, T243, X380, X381, T244, pN22_out_gagag(T243, X380, T242, X381, T244)) → pZ_out_ggaag(T242, T243, X380, X381, T244)
U19_gg(T242, T243, T244, pZ_out_ggaag(T242, T243, X380, X381, T244)) → noattackY_out_gg(T242, .(T243, T244))
U61_gggg(T210, T224, T209, T211, noattackY_out_gg(T209, T211)) → pN21_out_gggg(T210, T224, T209, T211)
U59_gagg(T209, T224, T210, T211, pN21_out_gggg(T210, T224, T209, T211)) → pN20_out_gagg(T209, T224, T210, T211)
U57_ggagg(T209, T216, X312, T210, T211, pN20_out_gagg(T209, X312, T210, T211)) → pN19_out_ggagg(T209, T216, X312, T210, T211)
U55_gagag(T210, T216, T209, X312, T211, pN19_out_ggagg(T209, T216, X312, T210, T211)) → pN18_out_gagag(T210, T216, T209, X312, T211)
U53_ggaag(T209, T210, X311, X312, T211, pN18_out_gagag(T210, X311, T209, X312, T211)) → pX_out_ggaag(T209, T210, X311, X312, T211)
U18_gg(T209, T210, T211, pX_out_ggaag(T209, T210, X311, X312, T211)) → noattackW_out_gg(T209, .(T210, T211))
U51_gggg(T177, T191, T176, T178, noattackW_out_gg(T176, T178)) → pN17_out_gggg(T177, T191, T176, T178)
U49_gagg(T176, T191, T177, T178, pN17_out_gggg(T177, T191, T176, T178)) → pN16_out_gagg(T176, T191, T177, T178)
U47_ggagg(T176, T183, X243, T177, T178, pN16_out_gagg(T176, X243, T177, T178)) → pN15_out_ggagg(T176, T183, X243, T177, T178)
U45_gagag(T177, T183, T176, X243, T178, pN15_out_ggagg(T176, T183, X243, T177, T178)) → pN14_out_gagag(T177, T183, T176, X243, T178)
U43_ggaag(T176, T177, X242, X243, T178, pN14_out_gagag(T177, X242, T176, X243, T178)) → pV_out_ggaag(T176, T177, X242, X243, T178)
U17_gg(T176, T177, T178, pV_out_ggaag(T176, T177, X242, X243, T178)) → noattackU_out_gg(T176, .(T177, T178))
U41_gggg(T126, T158, T125, T127, noattackU_out_gg(T125, T127)) → pN13_out_gggg(T126, T158, T125, T127)
U39_gagg(T125, T158, T126, T127, pN13_out_gggg(T126, T158, T125, T127)) → pN12_out_gagg(T125, T158, T126, T127)
U37_ggagg(T125, T150, X156, T126, T127, pN12_out_gagg(T125, X156, T126, T127)) → pN11_out_ggagg(T125, T150, X156, T126, T127)
U35_gagag(T126, T150, T125, X156, T127, pN11_out_ggagg(T125, T150, X156, T126, T127)) → pN10_out_gagag(T126, T150, T125, X156, T127)
U33_ggaag(T125, T126, X155, X156, T127, pN10_out_gagag(T126, X155, T125, X156, T127)) → pS_out_ggaag(T125, T126, X155, X156, T127)
U15_gg(T125, T126, T127, pS_out_ggaag(T125, T126, X155, X156, T127)) → noattackR_out_gg(T125, .(T126, T127))
U30_gg(T108, T109, noattackR_out_gg(T108, T109)) → U31_gg(T108, T109, safeT_in_g(T109))
safeT_in_g([]) → safeT_out_g([])
safeT_in_g(.(T427, T428)) → U16_g(T427, T428, pQ_in_gg(T427, T428))
U16_g(T427, T428, pQ_out_gg(T427, T428)) → safeT_out_g(.(T427, T428))
U31_gg(T108, T109, safeT_out_g(T109)) → pQ_out_gg(T108, T109)
U14_gg(T108, T109, pQ_out_gg(T108, T109)) → safeP_out_gg(T108, T109)
U27_gag(T20, T77, T22, safeP_out_gg(T22, T77)) → pN9_out_gag(T20, T77, T22)
U25_agaa(T22, T15, T20, T21, pN9_out_gag(T20, T21, T22)) → pB_out_agaa(T22, T15, T20, T21)
U1_a(T11, T12, pB_out_agaa(T11, .(s(s(0)), .(s(s(s(0))), .(s(s(s(s(0)))), .(s(s(s(s(s(0))))), .(s(s(s(s(s(s(0)))))), .(s(s(s(s(s(s(s(0))))))), .(s(s(s(s(s(s(s(s(0)))))))), []))))))), X16, T12)) → queensA_out_a(.(T11, T12))
QUEENSA_IN_A(.(T11, T12)) → U1_A(T11, T12, pB_in_agaa(T11, .(s(s(0)), .(s(s(s(0))), .(s(s(s(s(0)))), .(s(s(s(s(s(0))))), .(s(s(s(s(s(s(0)))))), .(s(s(s(s(s(s(s(0))))))), .(s(s(s(s(s(s(s(s(0)))))))), []))))))), X16, T12))
QUEENSA_IN_A(.(T11, T12)) → PB_IN_AGAA(T11, .(s(s(0)), .(s(s(s(0))), .(s(s(s(s(0)))), .(s(s(s(s(s(0))))), .(s(s(s(s(s(s(0)))))), .(s(s(s(s(s(s(s(0))))))), .(s(s(s(s(s(s(s(s(0)))))))), []))))))), X16, T12)
PB_IN_AGAA(T22, T15, T20, T21) → U24_AGAA(T22, T15, T20, T21, deleteO_in_aga(T22, T15, T20))
PB_IN_AGAA(T22, T15, T20, T21) → DELETEO_IN_AGA(T22, T15, T20)
DELETEO_IN_AGA(T48, T47, .(s(0), X57)) → U13_AGA(T48, T47, X57, deleteC_in_aga(T48, T47, X57))
DELETEO_IN_AGA(T48, T47, .(s(0), X57)) → DELETEC_IN_AGA(T48, T47, X57)
DELETEC_IN_AGA(T72, .(T70, T71), .(T70, X86)) → U2_AGA(T72, T70, T71, X86, deleteC_in_aga(T72, T71, X86))
DELETEC_IN_AGA(T72, .(T70, T71), .(T70, X86)) → DELETEC_IN_AGA(T72, T71, X86)
U24_AGAA(T22, T15, T20, T21, deleteO_out_aga(T22, T15, T20)) → U25_AGAA(T22, T15, T20, T21, pN9_in_gag(T20, T21, T22))
U24_AGAA(T22, T15, T20, T21, deleteO_out_aga(T22, T15, T20)) → PN9_IN_GAG(T20, T21, T22)
PN9_IN_GAG(T20, T77, T22) → U26_GAG(T20, T77, T22, permD_in_ga(T20, T77))
PN9_IN_GAG(T20, T77, T22) → PERMD_IN_GA(T20, T77)
PERMD_IN_GA(.(T86, T87), .(T90, T91)) → U3_GA(T86, T87, T90, T91, pE_in_aggaa(T90, T86, T87, X104, T91))
PERMD_IN_GA(.(T86, T87), .(T90, T91)) → PE_IN_AGGAA(T90, T86, T87, X104, T91)
PE_IN_AGGAA(T90, T86, T87, T96, T97) → U28_AGGAA(T90, T86, T87, T96, T97, deleteC_in_aga(T90, .(T86, T87), T96))
PE_IN_AGGAA(T90, T86, T87, T96, T97) → DELETEC_IN_AGA(T90, .(T86, T87), T96)
U28_AGGAA(T90, T86, T87, T96, T97, deleteC_out_aga(T90, .(T86, T87), T96)) → U29_AGGAA(T90, T86, T87, T96, T97, permD_in_ga(T96, T97))
U28_AGGAA(T90, T86, T87, T96, T97, deleteC_out_aga(T90, .(T86, T87), T96)) → PERMD_IN_GA(T96, T97)
U26_GAG(T20, T77, T22, permD_out_ga(T20, T77)) → U27_GAG(T20, T77, T22, safeP_in_gg(T22, T77))
U26_GAG(T20, T77, T22, permD_out_ga(T20, T77)) → SAFEP_IN_GG(T22, T77)
SAFEP_IN_GG(T108, T109) → U14_GG(T108, T109, pQ_in_gg(T108, T109))
SAFEP_IN_GG(T108, T109) → PQ_IN_GG(T108, T109)
PQ_IN_GG(T108, T109) → U30_GG(T108, T109, noattackR_in_gg(T108, T109))
PQ_IN_GG(T108, T109) → NOATTACKR_IN_GG(T108, T109)
NOATTACKR_IN_GG(T125, .(T126, T127)) → U15_GG(T125, T126, T127, pS_in_ggaag(T125, T126, X155, X156, T127))
NOATTACKR_IN_GG(T125, .(T126, T127)) → PS_IN_GGAAG(T125, T126, X155, X156, T127)
PS_IN_GGAAG(T125, T126, X155, X156, T127) → U32_GGAAG(T125, T126, X155, X156, T127, notEqF_in_gg(T125, T126))
PS_IN_GGAAG(T125, T126, X155, X156, T127) → NOTEQF_IN_GG(T125, T126)
NOTEQF_IN_GG(s(T146), s(T147)) → U4_GG(T146, T147, notEqF_in_gg(T146, T147))
NOTEQF_IN_GG(s(T146), s(T147)) → NOTEQF_IN_GG(T146, T147)
U32_GGAAG(T125, T126, X155, X156, T127, notEqF_out_gg(T125, T126)) → U33_GGAAG(T125, T126, X155, X156, T127, pN10_in_gagag(T126, X155, T125, X156, T127))
U32_GGAAG(T125, T126, X155, X156, T127, notEqF_out_gg(T125, T126)) → PN10_IN_GAGAG(T126, X155, T125, X156, T127)
PN10_IN_GAGAG(T126, T150, T125, X156, T127) → U34_GAGAG(T126, T150, T125, X156, T127, addG_in_ga(T126, T150))
PN10_IN_GAGAG(T126, T150, T125, X156, T127) → ADDG_IN_GA(T126, T150)
ADDG_IN_GA(s(T153), s(X199)) → U5_GA(T153, X199, addG_in_ga(T153, X199))
ADDG_IN_GA(s(T153), s(X199)) → ADDG_IN_GA(T153, X199)
U34_GAGAG(T126, T150, T125, X156, T127, addG_out_ga(T126, T150)) → U35_GAGAG(T126, T150, T125, X156, T127, pN11_in_ggagg(T125, T150, X156, T126, T127))
U34_GAGAG(T126, T150, T125, X156, T127, addG_out_ga(T126, T150)) → PN11_IN_GGAGG(T125, T150, X156, T126, T127)
PN11_IN_GGAGG(T125, T150, X156, T126, T127) → U36_GGAGG(T125, T150, X156, T126, T127, notEqF_in_gg(T125, T150))
PN11_IN_GGAGG(T125, T150, X156, T126, T127) → NOTEQF_IN_GG(T125, T150)
U36_GGAGG(T125, T150, X156, T126, T127, notEqF_out_gg(T125, T150)) → U37_GGAGG(T125, T150, X156, T126, T127, pN12_in_gagg(T125, X156, T126, T127))
U36_GGAGG(T125, T150, X156, T126, T127, notEqF_out_gg(T125, T150)) → PN12_IN_GAGG(T125, X156, T126, T127)
PN12_IN_GAGG(T125, T158, T126, T127) → U38_GAGG(T125, T158, T126, T127, addG_in_ga(T125, T158))
PN12_IN_GAGG(T125, T158, T126, T127) → ADDG_IN_GA(T125, T158)
U38_GAGG(T125, T158, T126, T127, addG_out_ga(T125, T158)) → U39_GAGG(T125, T158, T126, T127, pN13_in_gggg(T126, T158, T125, T127))
U38_GAGG(T125, T158, T126, T127, addG_out_ga(T125, T158)) → PN13_IN_GGGG(T126, T158, T125, T127)
PN13_IN_GGGG(T126, T158, T125, T127) → U40_GGGG(T126, T158, T125, T127, notEqF_in_gg(T126, T158))
PN13_IN_GGGG(T126, T158, T125, T127) → NOTEQF_IN_GG(T126, T158)
U40_GGGG(T126, T158, T125, T127, notEqF_out_gg(T126, T158)) → U41_GGGG(T126, T158, T125, T127, noattackU_in_gg(T125, T127))
U40_GGGG(T126, T158, T125, T127, notEqF_out_gg(T126, T158)) → NOATTACKU_IN_GG(T125, T127)
NOATTACKU_IN_GG(T176, .(T177, T178)) → U17_GG(T176, T177, T178, pV_in_ggaag(T176, T177, X242, X243, T178))
NOATTACKU_IN_GG(T176, .(T177, T178)) → PV_IN_GGAAG(T176, T177, X242, X243, T178)
PV_IN_GGAAG(T176, T177, X242, X243, T178) → U42_GGAAG(T176, T177, X242, X243, T178, notEqF_in_gg(T176, T177))
PV_IN_GGAAG(T176, T177, X242, X243, T178) → NOTEQF_IN_GG(T176, T177)
U42_GGAAG(T176, T177, X242, X243, T178, notEqF_out_gg(T176, T177)) → U43_GGAAG(T176, T177, X242, X243, T178, pN14_in_gagag(T177, X242, T176, X243, T178))
U42_GGAAG(T176, T177, X242, X243, T178, notEqF_out_gg(T176, T177)) → PN14_IN_GAGAG(T177, X242, T176, X243, T178)
PN14_IN_GAGAG(T177, T183, T176, X243, T178) → U44_GAGAG(T177, T183, T176, X243, T178, addH_in_ga(T177, T183))
PN14_IN_GAGAG(T177, T183, T176, X243, T178) → ADDH_IN_GA(T177, T183)
ADDH_IN_GA(s(T186), s(X268)) → U6_GA(T186, X268, addH_in_ga(T186, X268))
ADDH_IN_GA(s(T186), s(X268)) → ADDH_IN_GA(T186, X268)
U44_GAGAG(T177, T183, T176, X243, T178, addH_out_ga(T177, T183)) → U45_GAGAG(T177, T183, T176, X243, T178, pN15_in_ggagg(T176, T183, X243, T177, T178))
U44_GAGAG(T177, T183, T176, X243, T178, addH_out_ga(T177, T183)) → PN15_IN_GGAGG(T176, T183, X243, T177, T178)
PN15_IN_GGAGG(T176, T183, X243, T177, T178) → U46_GGAGG(T176, T183, X243, T177, T178, notEqF_in_gg(T176, T183))
PN15_IN_GGAGG(T176, T183, X243, T177, T178) → NOTEQF_IN_GG(T176, T183)
U46_GGAGG(T176, T183, X243, T177, T178, notEqF_out_gg(T176, T183)) → U47_GGAGG(T176, T183, X243, T177, T178, pN16_in_gagg(T176, X243, T177, T178))
U46_GGAGG(T176, T183, X243, T177, T178, notEqF_out_gg(T176, T183)) → PN16_IN_GAGG(T176, X243, T177, T178)
PN16_IN_GAGG(T176, T191, T177, T178) → U48_GAGG(T176, T191, T177, T178, addH_in_ga(T176, T191))
PN16_IN_GAGG(T176, T191, T177, T178) → ADDH_IN_GA(T176, T191)
U48_GAGG(T176, T191, T177, T178, addH_out_ga(T176, T191)) → U49_GAGG(T176, T191, T177, T178, pN17_in_gggg(T177, T191, T176, T178))
U48_GAGG(T176, T191, T177, T178, addH_out_ga(T176, T191)) → PN17_IN_GGGG(T177, T191, T176, T178)
PN17_IN_GGGG(T177, T191, T176, T178) → U50_GGGG(T177, T191, T176, T178, notEqF_in_gg(T177, T191))
PN17_IN_GGGG(T177, T191, T176, T178) → NOTEQF_IN_GG(T177, T191)
U50_GGGG(T177, T191, T176, T178, notEqF_out_gg(T177, T191)) → U51_GGGG(T177, T191, T176, T178, noattackW_in_gg(T176, T178))
U50_GGGG(T177, T191, T176, T178, notEqF_out_gg(T177, T191)) → NOATTACKW_IN_GG(T176, T178)
NOATTACKW_IN_GG(T209, .(T210, T211)) → U18_GG(T209, T210, T211, pX_in_ggaag(T209, T210, X311, X312, T211))
NOATTACKW_IN_GG(T209, .(T210, T211)) → PX_IN_GGAAG(T209, T210, X311, X312, T211)
PX_IN_GGAAG(T209, T210, X311, X312, T211) → U52_GGAAG(T209, T210, X311, X312, T211, notEqF_in_gg(T209, T210))
PX_IN_GGAAG(T209, T210, X311, X312, T211) → NOTEQF_IN_GG(T209, T210)
U52_GGAAG(T209, T210, X311, X312, T211, notEqF_out_gg(T209, T210)) → U53_GGAAG(T209, T210, X311, X312, T211, pN18_in_gagag(T210, X311, T209, X312, T211))
U52_GGAAG(T209, T210, X311, X312, T211, notEqF_out_gg(T209, T210)) → PN18_IN_GAGAG(T210, X311, T209, X312, T211)
PN18_IN_GAGAG(T210, T216, T209, X312, T211) → U54_GAGAG(T210, T216, T209, X312, T211, addI_in_ga(T210, T216))
PN18_IN_GAGAG(T210, T216, T209, X312, T211) → ADDI_IN_GA(T210, T216)
ADDI_IN_GA(s(T219), s(X337)) → U7_GA(T219, X337, addI_in_ga(T219, X337))
ADDI_IN_GA(s(T219), s(X337)) → ADDI_IN_GA(T219, X337)
U54_GAGAG(T210, T216, T209, X312, T211, addI_out_ga(T210, T216)) → U55_GAGAG(T210, T216, T209, X312, T211, pN19_in_ggagg(T209, T216, X312, T210, T211))
U54_GAGAG(T210, T216, T209, X312, T211, addI_out_ga(T210, T216)) → PN19_IN_GGAGG(T209, T216, X312, T210, T211)
PN19_IN_GGAGG(T209, T216, X312, T210, T211) → U56_GGAGG(T209, T216, X312, T210, T211, notEqF_in_gg(T209, T216))
PN19_IN_GGAGG(T209, T216, X312, T210, T211) → NOTEQF_IN_GG(T209, T216)
U56_GGAGG(T209, T216, X312, T210, T211, notEqF_out_gg(T209, T216)) → U57_GGAGG(T209, T216, X312, T210, T211, pN20_in_gagg(T209, X312, T210, T211))
U56_GGAGG(T209, T216, X312, T210, T211, notEqF_out_gg(T209, T216)) → PN20_IN_GAGG(T209, X312, T210, T211)
PN20_IN_GAGG(T209, T224, T210, T211) → U58_GAGG(T209, T224, T210, T211, addI_in_ga(T209, T224))
PN20_IN_GAGG(T209, T224, T210, T211) → ADDI_IN_GA(T209, T224)
U58_GAGG(T209, T224, T210, T211, addI_out_ga(T209, T224)) → U59_GAGG(T209, T224, T210, T211, pN21_in_gggg(T210, T224, T209, T211))
U58_GAGG(T209, T224, T210, T211, addI_out_ga(T209, T224)) → PN21_IN_GGGG(T210, T224, T209, T211)
PN21_IN_GGGG(T210, T224, T209, T211) → U60_GGGG(T210, T224, T209, T211, notEqF_in_gg(T210, T224))
PN21_IN_GGGG(T210, T224, T209, T211) → NOTEQF_IN_GG(T210, T224)
U60_GGGG(T210, T224, T209, T211, notEqF_out_gg(T210, T224)) → U61_GGGG(T210, T224, T209, T211, noattackY_in_gg(T209, T211))
U60_GGGG(T210, T224, T209, T211, notEqF_out_gg(T210, T224)) → NOATTACKY_IN_GG(T209, T211)
NOATTACKY_IN_GG(T242, .(T243, T244)) → U19_GG(T242, T243, T244, pZ_in_ggaag(T242, T243, X380, X381, T244))
NOATTACKY_IN_GG(T242, .(T243, T244)) → PZ_IN_GGAAG(T242, T243, X380, X381, T244)
PZ_IN_GGAAG(T242, T243, X380, X381, T244) → U62_GGAAG(T242, T243, X380, X381, T244, notEqF_in_gg(T242, T243))
PZ_IN_GGAAG(T242, T243, X380, X381, T244) → NOTEQF_IN_GG(T242, T243)
U62_GGAAG(T242, T243, X380, X381, T244, notEqF_out_gg(T242, T243)) → U63_GGAAG(T242, T243, X380, X381, T244, pN22_in_gagag(T243, X380, T242, X381, T244))
U62_GGAAG(T242, T243, X380, X381, T244, notEqF_out_gg(T242, T243)) → PN22_IN_GAGAG(T243, X380, T242, X381, T244)
PN22_IN_GAGAG(T243, T249, T242, X381, T244) → U64_GAGAG(T243, T249, T242, X381, T244, addJ_in_ga(T243, T249))
PN22_IN_GAGAG(T243, T249, T242, X381, T244) → ADDJ_IN_GA(T243, T249)
ADDJ_IN_GA(s(T252), s(X406)) → U8_GA(T252, X406, addJ_in_ga(T252, X406))
ADDJ_IN_GA(s(T252), s(X406)) → ADDJ_IN_GA(T252, X406)
U64_GAGAG(T243, T249, T242, X381, T244, addJ_out_ga(T243, T249)) → U65_GAGAG(T243, T249, T242, X381, T244, pN23_in_ggagg(T242, T249, X381, T243, T244))
U64_GAGAG(T243, T249, T242, X381, T244, addJ_out_ga(T243, T249)) → PN23_IN_GGAGG(T242, T249, X381, T243, T244)
PN23_IN_GGAGG(T242, T249, X381, T243, T244) → U66_GGAGG(T242, T249, X381, T243, T244, notEqF_in_gg(T242, T249))
PN23_IN_GGAGG(T242, T249, X381, T243, T244) → NOTEQF_IN_GG(T242, T249)
U66_GGAGG(T242, T249, X381, T243, T244, notEqF_out_gg(T242, T249)) → U67_GGAGG(T242, T249, X381, T243, T244, pN24_in_gagg(T242, X381, T243, T244))
U66_GGAGG(T242, T249, X381, T243, T244, notEqF_out_gg(T242, T249)) → PN24_IN_GAGG(T242, X381, T243, T244)
PN24_IN_GAGG(T242, T257, T243, T244) → U68_GAGG(T242, T257, T243, T244, addJ_in_ga(T242, T257))
PN24_IN_GAGG(T242, T257, T243, T244) → ADDJ_IN_GA(T242, T257)
U68_GAGG(T242, T257, T243, T244, addJ_out_ga(T242, T257)) → U69_GAGG(T242, T257, T243, T244, pN25_in_gggg(T243, T257, T242, T244))
U68_GAGG(T242, T257, T243, T244, addJ_out_ga(T242, T257)) → PN25_IN_GGGG(T243, T257, T242, T244)
PN25_IN_GGGG(T243, T257, T242, T244) → U70_GGGG(T243, T257, T242, T244, notEqF_in_gg(T243, T257))
PN25_IN_GGGG(T243, T257, T242, T244) → NOTEQF_IN_GG(T243, T257)
U70_GGGG(T243, T257, T242, T244, notEqF_out_gg(T243, T257)) → U71_GGGG(T243, T257, T242, T244, noattackN1_in_gg(T242, T244))
U70_GGGG(T243, T257, T242, T244, notEqF_out_gg(T243, T257)) → NOATTACKN1_IN_GG(T242, T244)
NOATTACKN1_IN_GG(T275, .(T276, T277)) → U20_GG(T275, T276, T277, pN2_in_ggaag(T275, T276, X449, X450, T277))
NOATTACKN1_IN_GG(T275, .(T276, T277)) → PN2_IN_GGAAG(T275, T276, X449, X450, T277)
PN2_IN_GGAAG(T275, T276, X449, X450, T277) → U72_GGAAG(T275, T276, X449, X450, T277, notEqF_in_gg(T275, T276))
PN2_IN_GGAAG(T275, T276, X449, X450, T277) → NOTEQF_IN_GG(T275, T276)
U72_GGAAG(T275, T276, X449, X450, T277, notEqF_out_gg(T275, T276)) → U73_GGAAG(T275, T276, X449, X450, T277, pN26_in_gagag(T276, X449, T275, X450, T277))
U72_GGAAG(T275, T276, X449, X450, T277, notEqF_out_gg(T275, T276)) → PN26_IN_GAGAG(T276, X449, T275, X450, T277)
PN26_IN_GAGAG(T276, T282, T275, X450, T277) → U74_GAGAG(T276, T282, T275, X450, T277, addK_in_ga(T276, T282))
PN26_IN_GAGAG(T276, T282, T275, X450, T277) → ADDK_IN_GA(T276, T282)
ADDK_IN_GA(s(T285), s(X475)) → U9_GA(T285, X475, addK_in_ga(T285, X475))
ADDK_IN_GA(s(T285), s(X475)) → ADDK_IN_GA(T285, X475)
U74_GAGAG(T276, T282, T275, X450, T277, addK_out_ga(T276, T282)) → U75_GAGAG(T276, T282, T275, X450, T277, pN27_in_ggagg(T275, T282, X450, T276, T277))
U74_GAGAG(T276, T282, T275, X450, T277, addK_out_ga(T276, T282)) → PN27_IN_GGAGG(T275, T282, X450, T276, T277)
PN27_IN_GGAGG(T275, T282, X450, T276, T277) → U76_GGAGG(T275, T282, X450, T276, T277, notEqF_in_gg(T275, T282))
PN27_IN_GGAGG(T275, T282, X450, T276, T277) → NOTEQF_IN_GG(T275, T282)
U76_GGAGG(T275, T282, X450, T276, T277, notEqF_out_gg(T275, T282)) → U77_GGAGG(T275, T282, X450, T276, T277, pN28_in_gagg(T275, X450, T276, T277))
U76_GGAGG(T275, T282, X450, T276, T277, notEqF_out_gg(T275, T282)) → PN28_IN_GAGG(T275, X450, T276, T277)
PN28_IN_GAGG(T275, T290, T276, T277) → U78_GAGG(T275, T290, T276, T277, addK_in_ga(T275, T290))
PN28_IN_GAGG(T275, T290, T276, T277) → ADDK_IN_GA(T275, T290)
U78_GAGG(T275, T290, T276, T277, addK_out_ga(T275, T290)) → U79_GAGG(T275, T290, T276, T277, pN29_in_gggg(T276, T290, T275, T277))
U78_GAGG(T275, T290, T276, T277, addK_out_ga(T275, T290)) → PN29_IN_GGGG(T276, T290, T275, T277)
PN29_IN_GGGG(T276, T290, T275, T277) → U80_GGGG(T276, T290, T275, T277, notEqF_in_gg(T276, T290))
PN29_IN_GGGG(T276, T290, T275, T277) → NOTEQF_IN_GG(T276, T290)
U80_GGGG(T276, T290, T275, T277, notEqF_out_gg(T276, T290)) → U81_GGGG(T276, T290, T275, T277, noattackN3_in_gg(T275, T277))
U80_GGGG(T276, T290, T275, T277, notEqF_out_gg(T276, T290)) → NOATTACKN3_IN_GG(T275, T277)
NOATTACKN3_IN_GG(T308, .(T309, T310)) → U21_GG(T308, T309, T310, pN4_in_ggaag(T308, T309, X518, X519, T310))
NOATTACKN3_IN_GG(T308, .(T309, T310)) → PN4_IN_GGAAG(T308, T309, X518, X519, T310)
PN4_IN_GGAAG(T308, T309, X518, X519, T310) → U82_GGAAG(T308, T309, X518, X519, T310, notEqF_in_gg(T308, T309))
PN4_IN_GGAAG(T308, T309, X518, X519, T310) → NOTEQF_IN_GG(T308, T309)
U82_GGAAG(T308, T309, X518, X519, T310, notEqF_out_gg(T308, T309)) → U83_GGAAG(T308, T309, X518, X519, T310, pN30_in_gagag(T309, X518, T308, X519, T310))
U82_GGAAG(T308, T309, X518, X519, T310, notEqF_out_gg(T308, T309)) → PN30_IN_GAGAG(T309, X518, T308, X519, T310)
PN30_IN_GAGAG(T309, T315, T308, X519, T310) → U84_GAGAG(T309, T315, T308, X519, T310, addL_in_ga(T309, T315))
PN30_IN_GAGAG(T309, T315, T308, X519, T310) → ADDL_IN_GA(T309, T315)
ADDL_IN_GA(s(T318), s(X544)) → U10_GA(T318, X544, addL_in_ga(T318, X544))
ADDL_IN_GA(s(T318), s(X544)) → ADDL_IN_GA(T318, X544)
U84_GAGAG(T309, T315, T308, X519, T310, addL_out_ga(T309, T315)) → U85_GAGAG(T309, T315, T308, X519, T310, pN31_in_ggagg(T308, T315, X519, T309, T310))
U84_GAGAG(T309, T315, T308, X519, T310, addL_out_ga(T309, T315)) → PN31_IN_GGAGG(T308, T315, X519, T309, T310)
PN31_IN_GGAGG(T308, T315, X519, T309, T310) → U86_GGAGG(T308, T315, X519, T309, T310, notEqF_in_gg(T308, T315))
PN31_IN_GGAGG(T308, T315, X519, T309, T310) → NOTEQF_IN_GG(T308, T315)
U86_GGAGG(T308, T315, X519, T309, T310, notEqF_out_gg(T308, T315)) → U87_GGAGG(T308, T315, X519, T309, T310, pN32_in_gagg(T308, X519, T309, T310))
U86_GGAGG(T308, T315, X519, T309, T310, notEqF_out_gg(T308, T315)) → PN32_IN_GAGG(T308, X519, T309, T310)
PN32_IN_GAGG(T308, T323, T309, T310) → U88_GAGG(T308, T323, T309, T310, addL_in_ga(T308, T323))
PN32_IN_GAGG(T308, T323, T309, T310) → ADDL_IN_GA(T308, T323)
U88_GAGG(T308, T323, T309, T310, addL_out_ga(T308, T323)) → U89_GAGG(T308, T323, T309, T310, pN33_in_gggg(T309, T323, T308, T310))
U88_GAGG(T308, T323, T309, T310, addL_out_ga(T308, T323)) → PN33_IN_GGGG(T309, T323, T308, T310)
PN33_IN_GGGG(T309, T323, T308, T310) → U90_GGGG(T309, T323, T308, T310, notEqF_in_gg(T309, T323))
PN33_IN_GGGG(T309, T323, T308, T310) → NOTEQF_IN_GG(T309, T323)
U90_GGGG(T309, T323, T308, T310, notEqF_out_gg(T309, T323)) → U91_GGGG(T309, T323, T308, T310, noattackN5_in_gg(T308, T310))
U90_GGGG(T309, T323, T308, T310, notEqF_out_gg(T309, T323)) → NOATTACKN5_IN_GG(T308, T310)
NOATTACKN5_IN_GG(T341, .(T342, T343)) → U22_GG(T341, T342, T343, pN6_in_ggaagg(T341, T342, X587, X588, T343, s(s(s(s(s(s(s(0)))))))))
NOATTACKN5_IN_GG(T341, .(T342, T343)) → PN6_IN_GGAAGG(T341, T342, X587, X588, T343, s(s(s(s(s(s(s(0))))))))
PN6_IN_GGAAGG(T341, T342, X587, X588, T343, T346) → U92_GGAAGG(T341, T342, X587, X588, T343, T346, notEqF_in_gg(T341, T342))
PN6_IN_GGAAGG(T341, T342, X587, X588, T343, T346) → NOTEQF_IN_GG(T341, T342)
U92_GGAAGG(T341, T342, X587, X588, T343, T346, notEqF_out_gg(T341, T342)) → U93_GGAAGG(T341, T342, X587, X588, T343, T346, pN34_in_gagagg(T342, X587, T341, X588, T343, T346))
U92_GGAAGG(T341, T342, X587, X588, T343, T346, notEqF_out_gg(T341, T342)) → PN34_IN_GAGAGG(T342, X587, T341, X588, T343, T346)
PN34_IN_GAGAGG(T342, T351, T341, X588, T343, T346) → U94_GAGAGG(T342, T351, T341, X588, T343, T346, addM_in_ga(T342, T351))
PN34_IN_GAGAGG(T342, T351, T341, X588, T343, T346) → ADDM_IN_GA(T342, T351)
ADDM_IN_GA(s(T354), s(X615)) → U11_GA(T354, X615, addM_in_ga(T354, X615))
ADDM_IN_GA(s(T354), s(X615)) → ADDM_IN_GA(T354, X615)
U94_GAGAGG(T342, T351, T341, X588, T343, T346, addM_out_ga(T342, T351)) → U95_GAGAGG(T342, T351, T341, X588, T343, T346, pN35_in_ggaggg(T341, T351, X588, T342, T343, T346))
U94_GAGAGG(T342, T351, T341, X588, T343, T346, addM_out_ga(T342, T351)) → PN35_IN_GGAGGG(T341, T351, X588, T342, T343, T346)
PN35_IN_GGAGGG(T341, T351, X588, T342, T343, T346) → U96_GGAGGG(T341, T351, X588, T342, T343, T346, notEqF_in_gg(T341, T351))
PN35_IN_GGAGGG(T341, T351, X588, T342, T343, T346) → NOTEQF_IN_GG(T341, T351)
U96_GGAGGG(T341, T351, X588, T342, T343, T346, notEqF_out_gg(T341, T351)) → U97_GGAGGG(T341, T351, X588, T342, T343, T346, pN36_in_gaggg(T341, X588, T342, T343, T346))
U96_GGAGGG(T341, T351, X588, T342, T343, T346, notEqF_out_gg(T341, T351)) → PN36_IN_GAGGG(T341, X588, T342, T343, T346)
PN36_IN_GAGGG(T341, T359, T342, T343, T346) → U98_GAGGG(T341, T359, T342, T343, T346, addM_in_ga(T341, T359))
PN36_IN_GAGGG(T341, T359, T342, T343, T346) → ADDM_IN_GA(T341, T359)
U98_GAGGG(T341, T359, T342, T343, T346, addM_out_ga(T341, T359)) → U99_GAGGG(T341, T359, T342, T343, T346, pN37_in_ggggg(T342, T359, T341, T343, T346))
U98_GAGGG(T341, T359, T342, T343, T346, addM_out_ga(T341, T359)) → PN37_IN_GGGGG(T342, T359, T341, T343, T346)
PN37_IN_GGGGG(T342, T359, T341, T343, T346) → U100_GGGGG(T342, T359, T341, T343, T346, notEqF_in_gg(T342, T359))
PN37_IN_GGGGG(T342, T359, T341, T343, T346) → NOTEQF_IN_GG(T342, T359)
U100_GGGGG(T342, T359, T341, T343, T346, notEqF_out_gg(T342, T359)) → U101_GGGGG(T342, T359, T341, T343, T346, noattackN7_in_ggg(T341, T343, T346))
U100_GGGGG(T342, T359, T341, T343, T346, notEqF_out_gg(T342, T359)) → NOATTACKN7_IN_GGG(T341, T343, T346)
NOATTACKN7_IN_GGG(T386, .(T387, T388), T389) → U23_GGG(T386, T387, T388, T389, pN8_in_gggaag(T386, T387, T389, X658, X659, T388))
NOATTACKN7_IN_GGG(T386, .(T387, T388), T389) → PN8_IN_GGGAAG(T386, T387, T389, X658, X659, T388)
PN8_IN_GGGAAG(T386, T387, T389, X658, X659, T388) → U102_GGGAAG(T386, T387, T389, X658, X659, T388, notEqF_in_gg(T386, T387))
PN8_IN_GGGAAG(T386, T387, T389, X658, X659, T388) → NOTEQF_IN_GG(T386, T387)
U102_GGGAAG(T386, T387, T389, X658, X659, T388, notEqF_out_gg(T386, T387)) → U103_GGGAAG(T386, T387, T389, X658, X659, T388, pN38_in_ggagag(T387, T389, X658, T386, X659, T388))
U102_GGGAAG(T386, T387, T389, X658, X659, T388, notEqF_out_gg(T386, T387)) → PN38_IN_GGAGAG(T387, T389, X658, T386, X659, T388)
PN38_IN_GGAGAG(T387, T389, T396, T386, X659, T388) → U104_GGAGAG(T387, T389, T396, T386, X659, T388, addN_in_gga(T387, T389, T396))
PN38_IN_GGAGAG(T387, T389, T396, T386, X659, T388) → ADDN_IN_GGA(T387, T389, T396)
ADDN_IN_GGA(s(T408), T409, s(X684)) → U12_GGA(T408, T409, X684, addN_in_gga(T408, T409, X684))
ADDN_IN_GGA(s(T408), T409, s(X684)) → ADDN_IN_GGA(T408, T409, X684)
U104_GGAGAG(T387, T389, T396, T386, X659, T388, addN_out_gga(T387, T389, T396)) → U105_GGAGAG(T387, T389, T396, T386, X659, T388, pN39_in_gggagg(T386, T396, T389, X659, T387, T388))
U104_GGAGAG(T387, T389, T396, T386, X659, T388, addN_out_gga(T387, T389, T396)) → PN39_IN_GGGAGG(T386, T396, T389, X659, T387, T388)
PN39_IN_GGGAGG(T386, T396, T389, X659, T387, T388) → U106_GGGAGG(T386, T396, T389, X659, T387, T388, notEqF_in_gg(T386, T396))
PN39_IN_GGGAGG(T386, T396, T389, X659, T387, T388) → NOTEQF_IN_GG(T386, T396)
U106_GGGAGG(T386, T396, T389, X659, T387, T388, notEqF_out_gg(T386, T396)) → U107_GGGAGG(T386, T396, T389, X659, T387, T388, pN40_in_ggagg(T386, T389, X659, T387, T388))
U106_GGGAGG(T386, T396, T389, X659, T387, T388, notEqF_out_gg(T386, T396)) → PN40_IN_GGAGG(T386, T389, X659, T387, T388)
PN40_IN_GGAGG(T386, T389, T418, T387, T388) → U108_GGAGG(T386, T389, T418, T387, T388, addN_in_gga(T386, T389, T418))
PN40_IN_GGAGG(T386, T389, T418, T387, T388) → ADDN_IN_GGA(T386, T389, T418)
U108_GGAGG(T386, T389, T418, T387, T388, addN_out_gga(T386, T389, T418)) → U109_GGAGG(T386, T389, T418, T387, T388, pN37_in_ggggg(T387, T418, T386, T388, s(T389)))
U108_GGAGG(T386, T389, T418, T387, T388, addN_out_gga(T386, T389, T418)) → PN37_IN_GGGGG(T387, T418, T386, T388, s(T389))
U30_GG(T108, T109, noattackR_out_gg(T108, T109)) → U31_GG(T108, T109, safeT_in_g(T109))
U30_GG(T108, T109, noattackR_out_gg(T108, T109)) → SAFET_IN_G(T109)
SAFET_IN_G(.(T427, T428)) → U16_G(T427, T428, pQ_in_gg(T427, T428))
SAFET_IN_G(.(T427, T428)) → PQ_IN_GG(T427, T428)
queensA_in_a(.(T11, T12)) → U1_a(T11, T12, pB_in_agaa(T11, .(s(s(0)), .(s(s(s(0))), .(s(s(s(s(0)))), .(s(s(s(s(s(0))))), .(s(s(s(s(s(s(0)))))), .(s(s(s(s(s(s(s(0))))))), .(s(s(s(s(s(s(s(s(0)))))))), []))))))), X16, T12))
pB_in_agaa(T22, T15, T20, T21) → U24_agaa(T22, T15, T20, T21, deleteO_in_aga(T22, T15, T20))
deleteO_in_aga(s(0), T36, T36) → deleteO_out_aga(s(0), T36, T36)
deleteO_in_aga(T48, T47, .(s(0), X57)) → U13_aga(T48, T47, X57, deleteC_in_aga(T48, T47, X57))
deleteC_in_aga(T61, .(T61, T62), T62) → deleteC_out_aga(T61, .(T61, T62), T62)
deleteC_in_aga(T72, .(T70, T71), .(T70, X86)) → U2_aga(T72, T70, T71, X86, deleteC_in_aga(T72, T71, X86))
U2_aga(T72, T70, T71, X86, deleteC_out_aga(T72, T71, X86)) → deleteC_out_aga(T72, .(T70, T71), .(T70, X86))
U13_aga(T48, T47, X57, deleteC_out_aga(T48, T47, X57)) → deleteO_out_aga(T48, T47, .(s(0), X57))
U24_agaa(T22, T15, T20, T21, deleteO_out_aga(T22, T15, T20)) → U25_agaa(T22, T15, T20, T21, pN9_in_gag(T20, T21, T22))
pN9_in_gag(T20, T77, T22) → U26_gag(T20, T77, T22, permD_in_ga(T20, T77))
permD_in_ga([], []) → permD_out_ga([], [])
permD_in_ga(.(T86, T87), .(T90, T91)) → U3_ga(T86, T87, T90, T91, pE_in_aggaa(T90, T86, T87, X104, T91))
pE_in_aggaa(T90, T86, T87, T96, T97) → U28_aggaa(T90, T86, T87, T96, T97, deleteC_in_aga(T90, .(T86, T87), T96))
U28_aggaa(T90, T86, T87, T96, T97, deleteC_out_aga(T90, .(T86, T87), T96)) → U29_aggaa(T90, T86, T87, T96, T97, permD_in_ga(T96, T97))
U29_aggaa(T90, T86, T87, T96, T97, permD_out_ga(T96, T97)) → pE_out_aggaa(T90, T86, T87, T96, T97)
U3_ga(T86, T87, T90, T91, pE_out_aggaa(T90, T86, T87, X104, T91)) → permD_out_ga(.(T86, T87), .(T90, T91))
U26_gag(T20, T77, T22, permD_out_ga(T20, T77)) → U27_gag(T20, T77, T22, safeP_in_gg(T22, T77))
safeP_in_gg(T108, T109) → U14_gg(T108, T109, pQ_in_gg(T108, T109))
pQ_in_gg(T108, T109) → U30_gg(T108, T109, noattackR_in_gg(T108, T109))
noattackR_in_gg(T118, []) → noattackR_out_gg(T118, [])
noattackR_in_gg(T125, .(T126, T127)) → U15_gg(T125, T126, T127, pS_in_ggaag(T125, T126, X155, X156, T127))
pS_in_ggaag(T125, T126, X155, X156, T127) → U32_ggaag(T125, T126, X155, X156, T127, notEqF_in_gg(T125, T126))
notEqF_in_gg(0, s(T136)) → notEqF_out_gg(0, s(T136))
notEqF_in_gg(s(T141), 0) → notEqF_out_gg(s(T141), 0)
notEqF_in_gg(s(T146), s(T147)) → U4_gg(T146, T147, notEqF_in_gg(T146, T147))
U4_gg(T146, T147, notEqF_out_gg(T146, T147)) → notEqF_out_gg(s(T146), s(T147))
U32_ggaag(T125, T126, X155, X156, T127, notEqF_out_gg(T125, T126)) → U33_ggaag(T125, T126, X155, X156, T127, pN10_in_gagag(T126, X155, T125, X156, T127))
pN10_in_gagag(T126, T150, T125, X156, T127) → U34_gagag(T126, T150, T125, X156, T127, addG_in_ga(T126, T150))
addG_in_ga(0, s(0)) → addG_out_ga(0, s(0))
addG_in_ga(s(T153), s(X199)) → U5_ga(T153, X199, addG_in_ga(T153, X199))
U5_ga(T153, X199, addG_out_ga(T153, X199)) → addG_out_ga(s(T153), s(X199))
U34_gagag(T126, T150, T125, X156, T127, addG_out_ga(T126, T150)) → U35_gagag(T126, T150, T125, X156, T127, pN11_in_ggagg(T125, T150, X156, T126, T127))
pN11_in_ggagg(T125, T150, X156, T126, T127) → U36_ggagg(T125, T150, X156, T126, T127, notEqF_in_gg(T125, T150))
U36_ggagg(T125, T150, X156, T126, T127, notEqF_out_gg(T125, T150)) → U37_ggagg(T125, T150, X156, T126, T127, pN12_in_gagg(T125, X156, T126, T127))
pN12_in_gagg(T125, T158, T126, T127) → U38_gagg(T125, T158, T126, T127, addG_in_ga(T125, T158))
U38_gagg(T125, T158, T126, T127, addG_out_ga(T125, T158)) → U39_gagg(T125, T158, T126, T127, pN13_in_gggg(T126, T158, T125, T127))
pN13_in_gggg(T126, T158, T125, T127) → U40_gggg(T126, T158, T125, T127, notEqF_in_gg(T126, T158))
U40_gggg(T126, T158, T125, T127, notEqF_out_gg(T126, T158)) → U41_gggg(T126, T158, T125, T127, noattackU_in_gg(T125, T127))
noattackU_in_gg(T169, []) → noattackU_out_gg(T169, [])
noattackU_in_gg(T176, .(T177, T178)) → U17_gg(T176, T177, T178, pV_in_ggaag(T176, T177, X242, X243, T178))
pV_in_ggaag(T176, T177, X242, X243, T178) → U42_ggaag(T176, T177, X242, X243, T178, notEqF_in_gg(T176, T177))
U42_ggaag(T176, T177, X242, X243, T178, notEqF_out_gg(T176, T177)) → U43_ggaag(T176, T177, X242, X243, T178, pN14_in_gagag(T177, X242, T176, X243, T178))
pN14_in_gagag(T177, T183, T176, X243, T178) → U44_gagag(T177, T183, T176, X243, T178, addH_in_ga(T177, T183))
addH_in_ga(0, s(s(0))) → addH_out_ga(0, s(s(0)))
addH_in_ga(s(T186), s(X268)) → U6_ga(T186, X268, addH_in_ga(T186, X268))
U6_ga(T186, X268, addH_out_ga(T186, X268)) → addH_out_ga(s(T186), s(X268))
U44_gagag(T177, T183, T176, X243, T178, addH_out_ga(T177, T183)) → U45_gagag(T177, T183, T176, X243, T178, pN15_in_ggagg(T176, T183, X243, T177, T178))
pN15_in_ggagg(T176, T183, X243, T177, T178) → U46_ggagg(T176, T183, X243, T177, T178, notEqF_in_gg(T176, T183))
U46_ggagg(T176, T183, X243, T177, T178, notEqF_out_gg(T176, T183)) → U47_ggagg(T176, T183, X243, T177, T178, pN16_in_gagg(T176, X243, T177, T178))
pN16_in_gagg(T176, T191, T177, T178) → U48_gagg(T176, T191, T177, T178, addH_in_ga(T176, T191))
U48_gagg(T176, T191, T177, T178, addH_out_ga(T176, T191)) → U49_gagg(T176, T191, T177, T178, pN17_in_gggg(T177, T191, T176, T178))
pN17_in_gggg(T177, T191, T176, T178) → U50_gggg(T177, T191, T176, T178, notEqF_in_gg(T177, T191))
U50_gggg(T177, T191, T176, T178, notEqF_out_gg(T177, T191)) → U51_gggg(T177, T191, T176, T178, noattackW_in_gg(T176, T178))
noattackW_in_gg(T202, []) → noattackW_out_gg(T202, [])
noattackW_in_gg(T209, .(T210, T211)) → U18_gg(T209, T210, T211, pX_in_ggaag(T209, T210, X311, X312, T211))
pX_in_ggaag(T209, T210, X311, X312, T211) → U52_ggaag(T209, T210, X311, X312, T211, notEqF_in_gg(T209, T210))
U52_ggaag(T209, T210, X311, X312, T211, notEqF_out_gg(T209, T210)) → U53_ggaag(T209, T210, X311, X312, T211, pN18_in_gagag(T210, X311, T209, X312, T211))
pN18_in_gagag(T210, T216, T209, X312, T211) → U54_gagag(T210, T216, T209, X312, T211, addI_in_ga(T210, T216))
addI_in_ga(0, s(s(s(0)))) → addI_out_ga(0, s(s(s(0))))
addI_in_ga(s(T219), s(X337)) → U7_ga(T219, X337, addI_in_ga(T219, X337))
U7_ga(T219, X337, addI_out_ga(T219, X337)) → addI_out_ga(s(T219), s(X337))
U54_gagag(T210, T216, T209, X312, T211, addI_out_ga(T210, T216)) → U55_gagag(T210, T216, T209, X312, T211, pN19_in_ggagg(T209, T216, X312, T210, T211))
pN19_in_ggagg(T209, T216, X312, T210, T211) → U56_ggagg(T209, T216, X312, T210, T211, notEqF_in_gg(T209, T216))
U56_ggagg(T209, T216, X312, T210, T211, notEqF_out_gg(T209, T216)) → U57_ggagg(T209, T216, X312, T210, T211, pN20_in_gagg(T209, X312, T210, T211))
pN20_in_gagg(T209, T224, T210, T211) → U58_gagg(T209, T224, T210, T211, addI_in_ga(T209, T224))
U58_gagg(T209, T224, T210, T211, addI_out_ga(T209, T224)) → U59_gagg(T209, T224, T210, T211, pN21_in_gggg(T210, T224, T209, T211))
pN21_in_gggg(T210, T224, T209, T211) → U60_gggg(T210, T224, T209, T211, notEqF_in_gg(T210, T224))
U60_gggg(T210, T224, T209, T211, notEqF_out_gg(T210, T224)) → U61_gggg(T210, T224, T209, T211, noattackY_in_gg(T209, T211))
noattackY_in_gg(T235, []) → noattackY_out_gg(T235, [])
noattackY_in_gg(T242, .(T243, T244)) → U19_gg(T242, T243, T244, pZ_in_ggaag(T242, T243, X380, X381, T244))
pZ_in_ggaag(T242, T243, X380, X381, T244) → U62_ggaag(T242, T243, X380, X381, T244, notEqF_in_gg(T242, T243))
U62_ggaag(T242, T243, X380, X381, T244, notEqF_out_gg(T242, T243)) → U63_ggaag(T242, T243, X380, X381, T244, pN22_in_gagag(T243, X380, T242, X381, T244))
pN22_in_gagag(T243, T249, T242, X381, T244) → U64_gagag(T243, T249, T242, X381, T244, addJ_in_ga(T243, T249))
addJ_in_ga(0, s(s(s(s(0))))) → addJ_out_ga(0, s(s(s(s(0)))))
addJ_in_ga(s(T252), s(X406)) → U8_ga(T252, X406, addJ_in_ga(T252, X406))
U8_ga(T252, X406, addJ_out_ga(T252, X406)) → addJ_out_ga(s(T252), s(X406))
U64_gagag(T243, T249, T242, X381, T244, addJ_out_ga(T243, T249)) → U65_gagag(T243, T249, T242, X381, T244, pN23_in_ggagg(T242, T249, X381, T243, T244))
pN23_in_ggagg(T242, T249, X381, T243, T244) → U66_ggagg(T242, T249, X381, T243, T244, notEqF_in_gg(T242, T249))
U66_ggagg(T242, T249, X381, T243, T244, notEqF_out_gg(T242, T249)) → U67_ggagg(T242, T249, X381, T243, T244, pN24_in_gagg(T242, X381, T243, T244))
pN24_in_gagg(T242, T257, T243, T244) → U68_gagg(T242, T257, T243, T244, addJ_in_ga(T242, T257))
U68_gagg(T242, T257, T243, T244, addJ_out_ga(T242, T257)) → U69_gagg(T242, T257, T243, T244, pN25_in_gggg(T243, T257, T242, T244))
pN25_in_gggg(T243, T257, T242, T244) → U70_gggg(T243, T257, T242, T244, notEqF_in_gg(T243, T257))
U70_gggg(T243, T257, T242, T244, notEqF_out_gg(T243, T257)) → U71_gggg(T243, T257, T242, T244, noattackN1_in_gg(T242, T244))
noattackN1_in_gg(T268, []) → noattackN1_out_gg(T268, [])
noattackN1_in_gg(T275, .(T276, T277)) → U20_gg(T275, T276, T277, pN2_in_ggaag(T275, T276, X449, X450, T277))
pN2_in_ggaag(T275, T276, X449, X450, T277) → U72_ggaag(T275, T276, X449, X450, T277, notEqF_in_gg(T275, T276))
U72_ggaag(T275, T276, X449, X450, T277, notEqF_out_gg(T275, T276)) → U73_ggaag(T275, T276, X449, X450, T277, pN26_in_gagag(T276, X449, T275, X450, T277))
pN26_in_gagag(T276, T282, T275, X450, T277) → U74_gagag(T276, T282, T275, X450, T277, addK_in_ga(T276, T282))
addK_in_ga(0, s(s(s(s(s(0)))))) → addK_out_ga(0, s(s(s(s(s(0))))))
addK_in_ga(s(T285), s(X475)) → U9_ga(T285, X475, addK_in_ga(T285, X475))
U9_ga(T285, X475, addK_out_ga(T285, X475)) → addK_out_ga(s(T285), s(X475))
U74_gagag(T276, T282, T275, X450, T277, addK_out_ga(T276, T282)) → U75_gagag(T276, T282, T275, X450, T277, pN27_in_ggagg(T275, T282, X450, T276, T277))
pN27_in_ggagg(T275, T282, X450, T276, T277) → U76_ggagg(T275, T282, X450, T276, T277, notEqF_in_gg(T275, T282))
U76_ggagg(T275, T282, X450, T276, T277, notEqF_out_gg(T275, T282)) → U77_ggagg(T275, T282, X450, T276, T277, pN28_in_gagg(T275, X450, T276, T277))
pN28_in_gagg(T275, T290, T276, T277) → U78_gagg(T275, T290, T276, T277, addK_in_ga(T275, T290))
U78_gagg(T275, T290, T276, T277, addK_out_ga(T275, T290)) → U79_gagg(T275, T290, T276, T277, pN29_in_gggg(T276, T290, T275, T277))
pN29_in_gggg(T276, T290, T275, T277) → U80_gggg(T276, T290, T275, T277, notEqF_in_gg(T276, T290))
U80_gggg(T276, T290, T275, T277, notEqF_out_gg(T276, T290)) → U81_gggg(T276, T290, T275, T277, noattackN3_in_gg(T275, T277))
noattackN3_in_gg(T301, []) → noattackN3_out_gg(T301, [])
noattackN3_in_gg(T308, .(T309, T310)) → U21_gg(T308, T309, T310, pN4_in_ggaag(T308, T309, X518, X519, T310))
pN4_in_ggaag(T308, T309, X518, X519, T310) → U82_ggaag(T308, T309, X518, X519, T310, notEqF_in_gg(T308, T309))
U82_ggaag(T308, T309, X518, X519, T310, notEqF_out_gg(T308, T309)) → U83_ggaag(T308, T309, X518, X519, T310, pN30_in_gagag(T309, X518, T308, X519, T310))
pN30_in_gagag(T309, T315, T308, X519, T310) → U84_gagag(T309, T315, T308, X519, T310, addL_in_ga(T309, T315))
addL_in_ga(0, s(s(s(s(s(s(0))))))) → addL_out_ga(0, s(s(s(s(s(s(0)))))))
addL_in_ga(s(T318), s(X544)) → U10_ga(T318, X544, addL_in_ga(T318, X544))
U10_ga(T318, X544, addL_out_ga(T318, X544)) → addL_out_ga(s(T318), s(X544))
U84_gagag(T309, T315, T308, X519, T310, addL_out_ga(T309, T315)) → U85_gagag(T309, T315, T308, X519, T310, pN31_in_ggagg(T308, T315, X519, T309, T310))
pN31_in_ggagg(T308, T315, X519, T309, T310) → U86_ggagg(T308, T315, X519, T309, T310, notEqF_in_gg(T308, T315))
U86_ggagg(T308, T315, X519, T309, T310, notEqF_out_gg(T308, T315)) → U87_ggagg(T308, T315, X519, T309, T310, pN32_in_gagg(T308, X519, T309, T310))
pN32_in_gagg(T308, T323, T309, T310) → U88_gagg(T308, T323, T309, T310, addL_in_ga(T308, T323))
U88_gagg(T308, T323, T309, T310, addL_out_ga(T308, T323)) → U89_gagg(T308, T323, T309, T310, pN33_in_gggg(T309, T323, T308, T310))
pN33_in_gggg(T309, T323, T308, T310) → U90_gggg(T309, T323, T308, T310, notEqF_in_gg(T309, T323))
U90_gggg(T309, T323, T308, T310, notEqF_out_gg(T309, T323)) → U91_gggg(T309, T323, T308, T310, noattackN5_in_gg(T308, T310))
noattackN5_in_gg(T334, []) → noattackN5_out_gg(T334, [])
noattackN5_in_gg(T341, .(T342, T343)) → U22_gg(T341, T342, T343, pN6_in_ggaagg(T341, T342, X587, X588, T343, s(s(s(s(s(s(s(0)))))))))
pN6_in_ggaagg(T341, T342, X587, X588, T343, T346) → U92_ggaagg(T341, T342, X587, X588, T343, T346, notEqF_in_gg(T341, T342))
U92_ggaagg(T341, T342, X587, X588, T343, T346, notEqF_out_gg(T341, T342)) → U93_ggaagg(T341, T342, X587, X588, T343, T346, pN34_in_gagagg(T342, X587, T341, X588, T343, T346))
pN34_in_gagagg(T342, T351, T341, X588, T343, T346) → U94_gagagg(T342, T351, T341, X588, T343, T346, addM_in_ga(T342, T351))
addM_in_ga(0, s(s(s(s(s(s(s(0)))))))) → addM_out_ga(0, s(s(s(s(s(s(s(0))))))))
addM_in_ga(s(T354), s(X615)) → U11_ga(T354, X615, addM_in_ga(T354, X615))
U11_ga(T354, X615, addM_out_ga(T354, X615)) → addM_out_ga(s(T354), s(X615))
U94_gagagg(T342, T351, T341, X588, T343, T346, addM_out_ga(T342, T351)) → U95_gagagg(T342, T351, T341, X588, T343, T346, pN35_in_ggaggg(T341, T351, X588, T342, T343, T346))
pN35_in_ggaggg(T341, T351, X588, T342, T343, T346) → U96_ggaggg(T341, T351, X588, T342, T343, T346, notEqF_in_gg(T341, T351))
U96_ggaggg(T341, T351, X588, T342, T343, T346, notEqF_out_gg(T341, T351)) → U97_ggaggg(T341, T351, X588, T342, T343, T346, pN36_in_gaggg(T341, X588, T342, T343, T346))
pN36_in_gaggg(T341, T359, T342, T343, T346) → U98_gaggg(T341, T359, T342, T343, T346, addM_in_ga(T341, T359))
U98_gaggg(T341, T359, T342, T343, T346, addM_out_ga(T341, T359)) → U99_gaggg(T341, T359, T342, T343, T346, pN37_in_ggggg(T342, T359, T341, T343, T346))
pN37_in_ggggg(T342, T359, T341, T343, T346) → U100_ggggg(T342, T359, T341, T343, T346, notEqF_in_gg(T342, T359))
U100_ggggg(T342, T359, T341, T343, T346, notEqF_out_gg(T342, T359)) → U101_ggggg(T342, T359, T341, T343, T346, noattackN7_in_ggg(T341, T343, T346))
noattackN7_in_ggg(T376, [], T377) → noattackN7_out_ggg(T376, [], T377)
noattackN7_in_ggg(T386, .(T387, T388), T389) → U23_ggg(T386, T387, T388, T389, pN8_in_gggaag(T386, T387, T389, X658, X659, T388))
pN8_in_gggaag(T386, T387, T389, X658, X659, T388) → U102_gggaag(T386, T387, T389, X658, X659, T388, notEqF_in_gg(T386, T387))
U102_gggaag(T386, T387, T389, X658, X659, T388, notEqF_out_gg(T386, T387)) → U103_gggaag(T386, T387, T389, X658, X659, T388, pN38_in_ggagag(T387, T389, X658, T386, X659, T388))
pN38_in_ggagag(T387, T389, T396, T386, X659, T388) → U104_ggagag(T387, T389, T396, T386, X659, T388, addN_in_gga(T387, T389, T396))
addN_in_gga(0, T403, s(T403)) → addN_out_gga(0, T403, s(T403))
addN_in_gga(s(T408), T409, s(X684)) → U12_gga(T408, T409, X684, addN_in_gga(T408, T409, X684))
U12_gga(T408, T409, X684, addN_out_gga(T408, T409, X684)) → addN_out_gga(s(T408), T409, s(X684))
U104_ggagag(T387, T389, T396, T386, X659, T388, addN_out_gga(T387, T389, T396)) → U105_ggagag(T387, T389, T396, T386, X659, T388, pN39_in_gggagg(T386, T396, T389, X659, T387, T388))
pN39_in_gggagg(T386, T396, T389, X659, T387, T388) → U106_gggagg(T386, T396, T389, X659, T387, T388, notEqF_in_gg(T386, T396))
U106_gggagg(T386, T396, T389, X659, T387, T388, notEqF_out_gg(T386, T396)) → U107_gggagg(T386, T396, T389, X659, T387, T388, pN40_in_ggagg(T386, T389, X659, T387, T388))
pN40_in_ggagg(T386, T389, T418, T387, T388) → U108_ggagg(T386, T389, T418, T387, T388, addN_in_gga(T386, T389, T418))
U108_ggagg(T386, T389, T418, T387, T388, addN_out_gga(T386, T389, T418)) → U109_ggagg(T386, T389, T418, T387, T388, pN37_in_ggggg(T387, T418, T386, T388, s(T389)))
U109_ggagg(T386, T389, T418, T387, T388, pN37_out_ggggg(T387, T418, T386, T388, s(T389))) → pN40_out_ggagg(T386, T389, T418, T387, T388)
U107_gggagg(T386, T396, T389, X659, T387, T388, pN40_out_ggagg(T386, T389, X659, T387, T388)) → pN39_out_gggagg(T386, T396, T389, X659, T387, T388)
U105_ggagag(T387, T389, T396, T386, X659, T388, pN39_out_gggagg(T386, T396, T389, X659, T387, T388)) → pN38_out_ggagag(T387, T389, T396, T386, X659, T388)
U103_gggaag(T386, T387, T389, X658, X659, T388, pN38_out_ggagag(T387, T389, X658, T386, X659, T388)) → pN8_out_gggaag(T386, T387, T389, X658, X659, T388)
U23_ggg(T386, T387, T388, T389, pN8_out_gggaag(T386, T387, T389, X658, X659, T388)) → noattackN7_out_ggg(T386, .(T387, T388), T389)
U101_ggggg(T342, T359, T341, T343, T346, noattackN7_out_ggg(T341, T343, T346)) → pN37_out_ggggg(T342, T359, T341, T343, T346)
U99_gaggg(T341, T359, T342, T343, T346, pN37_out_ggggg(T342, T359, T341, T343, T346)) → pN36_out_gaggg(T341, T359, T342, T343, T346)
U97_ggaggg(T341, T351, X588, T342, T343, T346, pN36_out_gaggg(T341, X588, T342, T343, T346)) → pN35_out_ggaggg(T341, T351, X588, T342, T343, T346)
U95_gagagg(T342, T351, T341, X588, T343, T346, pN35_out_ggaggg(T341, T351, X588, T342, T343, T346)) → pN34_out_gagagg(T342, T351, T341, X588, T343, T346)
U93_ggaagg(T341, T342, X587, X588, T343, T346, pN34_out_gagagg(T342, X587, T341, X588, T343, T346)) → pN6_out_ggaagg(T341, T342, X587, X588, T343, T346)
U22_gg(T341, T342, T343, pN6_out_ggaagg(T341, T342, X587, X588, T343, s(s(s(s(s(s(s(0))))))))) → noattackN5_out_gg(T341, .(T342, T343))
U91_gggg(T309, T323, T308, T310, noattackN5_out_gg(T308, T310)) → pN33_out_gggg(T309, T323, T308, T310)
U89_gagg(T308, T323, T309, T310, pN33_out_gggg(T309, T323, T308, T310)) → pN32_out_gagg(T308, T323, T309, T310)
U87_ggagg(T308, T315, X519, T309, T310, pN32_out_gagg(T308, X519, T309, T310)) → pN31_out_ggagg(T308, T315, X519, T309, T310)
U85_gagag(T309, T315, T308, X519, T310, pN31_out_ggagg(T308, T315, X519, T309, T310)) → pN30_out_gagag(T309, T315, T308, X519, T310)
U83_ggaag(T308, T309, X518, X519, T310, pN30_out_gagag(T309, X518, T308, X519, T310)) → pN4_out_ggaag(T308, T309, X518, X519, T310)
U21_gg(T308, T309, T310, pN4_out_ggaag(T308, T309, X518, X519, T310)) → noattackN3_out_gg(T308, .(T309, T310))
U81_gggg(T276, T290, T275, T277, noattackN3_out_gg(T275, T277)) → pN29_out_gggg(T276, T290, T275, T277)
U79_gagg(T275, T290, T276, T277, pN29_out_gggg(T276, T290, T275, T277)) → pN28_out_gagg(T275, T290, T276, T277)
U77_ggagg(T275, T282, X450, T276, T277, pN28_out_gagg(T275, X450, T276, T277)) → pN27_out_ggagg(T275, T282, X450, T276, T277)
U75_gagag(T276, T282, T275, X450, T277, pN27_out_ggagg(T275, T282, X450, T276, T277)) → pN26_out_gagag(T276, T282, T275, X450, T277)
U73_ggaag(T275, T276, X449, X450, T277, pN26_out_gagag(T276, X449, T275, X450, T277)) → pN2_out_ggaag(T275, T276, X449, X450, T277)
U20_gg(T275, T276, T277, pN2_out_ggaag(T275, T276, X449, X450, T277)) → noattackN1_out_gg(T275, .(T276, T277))
U71_gggg(T243, T257, T242, T244, noattackN1_out_gg(T242, T244)) → pN25_out_gggg(T243, T257, T242, T244)
U69_gagg(T242, T257, T243, T244, pN25_out_gggg(T243, T257, T242, T244)) → pN24_out_gagg(T242, T257, T243, T244)
U67_ggagg(T242, T249, X381, T243, T244, pN24_out_gagg(T242, X381, T243, T244)) → pN23_out_ggagg(T242, T249, X381, T243, T244)
U65_gagag(T243, T249, T242, X381, T244, pN23_out_ggagg(T242, T249, X381, T243, T244)) → pN22_out_gagag(T243, T249, T242, X381, T244)
U63_ggaag(T242, T243, X380, X381, T244, pN22_out_gagag(T243, X380, T242, X381, T244)) → pZ_out_ggaag(T242, T243, X380, X381, T244)
U19_gg(T242, T243, T244, pZ_out_ggaag(T242, T243, X380, X381, T244)) → noattackY_out_gg(T242, .(T243, T244))
U61_gggg(T210, T224, T209, T211, noattackY_out_gg(T209, T211)) → pN21_out_gggg(T210, T224, T209, T211)
U59_gagg(T209, T224, T210, T211, pN21_out_gggg(T210, T224, T209, T211)) → pN20_out_gagg(T209, T224, T210, T211)
U57_ggagg(T209, T216, X312, T210, T211, pN20_out_gagg(T209, X312, T210, T211)) → pN19_out_ggagg(T209, T216, X312, T210, T211)
U55_gagag(T210, T216, T209, X312, T211, pN19_out_ggagg(T209, T216, X312, T210, T211)) → pN18_out_gagag(T210, T216, T209, X312, T211)
U53_ggaag(T209, T210, X311, X312, T211, pN18_out_gagag(T210, X311, T209, X312, T211)) → pX_out_ggaag(T209, T210, X311, X312, T211)
U18_gg(T209, T210, T211, pX_out_ggaag(T209, T210, X311, X312, T211)) → noattackW_out_gg(T209, .(T210, T211))
U51_gggg(T177, T191, T176, T178, noattackW_out_gg(T176, T178)) → pN17_out_gggg(T177, T191, T176, T178)
U49_gagg(T176, T191, T177, T178, pN17_out_gggg(T177, T191, T176, T178)) → pN16_out_gagg(T176, T191, T177, T178)
U47_ggagg(T176, T183, X243, T177, T178, pN16_out_gagg(T176, X243, T177, T178)) → pN15_out_ggagg(T176, T183, X243, T177, T178)
U45_gagag(T177, T183, T176, X243, T178, pN15_out_ggagg(T176, T183, X243, T177, T178)) → pN14_out_gagag(T177, T183, T176, X243, T178)
U43_ggaag(T176, T177, X242, X243, T178, pN14_out_gagag(T177, X242, T176, X243, T178)) → pV_out_ggaag(T176, T177, X242, X243, T178)
U17_gg(T176, T177, T178, pV_out_ggaag(T176, T177, X242, X243, T178)) → noattackU_out_gg(T176, .(T177, T178))
U41_gggg(T126, T158, T125, T127, noattackU_out_gg(T125, T127)) → pN13_out_gggg(T126, T158, T125, T127)
U39_gagg(T125, T158, T126, T127, pN13_out_gggg(T126, T158, T125, T127)) → pN12_out_gagg(T125, T158, T126, T127)
U37_ggagg(T125, T150, X156, T126, T127, pN12_out_gagg(T125, X156, T126, T127)) → pN11_out_ggagg(T125, T150, X156, T126, T127)
U35_gagag(T126, T150, T125, X156, T127, pN11_out_ggagg(T125, T150, X156, T126, T127)) → pN10_out_gagag(T126, T150, T125, X156, T127)
U33_ggaag(T125, T126, X155, X156, T127, pN10_out_gagag(T126, X155, T125, X156, T127)) → pS_out_ggaag(T125, T126, X155, X156, T127)
U15_gg(T125, T126, T127, pS_out_ggaag(T125, T126, X155, X156, T127)) → noattackR_out_gg(T125, .(T126, T127))
U30_gg(T108, T109, noattackR_out_gg(T108, T109)) → U31_gg(T108, T109, safeT_in_g(T109))
safeT_in_g([]) → safeT_out_g([])
safeT_in_g(.(T427, T428)) → U16_g(T427, T428, pQ_in_gg(T427, T428))
U16_g(T427, T428, pQ_out_gg(T427, T428)) → safeT_out_g(.(T427, T428))
U31_gg(T108, T109, safeT_out_g(T109)) → pQ_out_gg(T108, T109)
U14_gg(T108, T109, pQ_out_gg(T108, T109)) → safeP_out_gg(T108, T109)
U27_gag(T20, T77, T22, safeP_out_gg(T22, T77)) → pN9_out_gag(T20, T77, T22)
U25_agaa(T22, T15, T20, T21, pN9_out_gag(T20, T21, T22)) → pB_out_agaa(T22, T15, T20, T21)
U1_a(T11, T12, pB_out_agaa(T11, .(s(s(0)), .(s(s(s(0))), .(s(s(s(s(0)))), .(s(s(s(s(s(0))))), .(s(s(s(s(s(s(0)))))), .(s(s(s(s(s(s(s(0))))))), .(s(s(s(s(s(s(s(s(0)))))))), []))))))), X16, T12)) → queensA_out_a(.(T11, T12))
QUEENSA_IN_A(.(T11, T12)) → U1_A(T11, T12, pB_in_agaa(T11, .(s(s(0)), .(s(s(s(0))), .(s(s(s(s(0)))), .(s(s(s(s(s(0))))), .(s(s(s(s(s(s(0)))))), .(s(s(s(s(s(s(s(0))))))), .(s(s(s(s(s(s(s(s(0)))))))), []))))))), X16, T12))
QUEENSA_IN_A(.(T11, T12)) → PB_IN_AGAA(T11, .(s(s(0)), .(s(s(s(0))), .(s(s(s(s(0)))), .(s(s(s(s(s(0))))), .(s(s(s(s(s(s(0)))))), .(s(s(s(s(s(s(s(0))))))), .(s(s(s(s(s(s(s(s(0)))))))), []))))))), X16, T12)
PB_IN_AGAA(T22, T15, T20, T21) → U24_AGAA(T22, T15, T20, T21, deleteO_in_aga(T22, T15, T20))
PB_IN_AGAA(T22, T15, T20, T21) → DELETEO_IN_AGA(T22, T15, T20)
DELETEO_IN_AGA(T48, T47, .(s(0), X57)) → U13_AGA(T48, T47, X57, deleteC_in_aga(T48, T47, X57))
DELETEO_IN_AGA(T48, T47, .(s(0), X57)) → DELETEC_IN_AGA(T48, T47, X57)
DELETEC_IN_AGA(T72, .(T70, T71), .(T70, X86)) → U2_AGA(T72, T70, T71, X86, deleteC_in_aga(T72, T71, X86))
DELETEC_IN_AGA(T72, .(T70, T71), .(T70, X86)) → DELETEC_IN_AGA(T72, T71, X86)
U24_AGAA(T22, T15, T20, T21, deleteO_out_aga(T22, T15, T20)) → U25_AGAA(T22, T15, T20, T21, pN9_in_gag(T20, T21, T22))
U24_AGAA(T22, T15, T20, T21, deleteO_out_aga(T22, T15, T20)) → PN9_IN_GAG(T20, T21, T22)
PN9_IN_GAG(T20, T77, T22) → U26_GAG(T20, T77, T22, permD_in_ga(T20, T77))
PN9_IN_GAG(T20, T77, T22) → PERMD_IN_GA(T20, T77)
PERMD_IN_GA(.(T86, T87), .(T90, T91)) → U3_GA(T86, T87, T90, T91, pE_in_aggaa(T90, T86, T87, X104, T91))
PERMD_IN_GA(.(T86, T87), .(T90, T91)) → PE_IN_AGGAA(T90, T86, T87, X104, T91)
PE_IN_AGGAA(T90, T86, T87, T96, T97) → U28_AGGAA(T90, T86, T87, T96, T97, deleteC_in_aga(T90, .(T86, T87), T96))
PE_IN_AGGAA(T90, T86, T87, T96, T97) → DELETEC_IN_AGA(T90, .(T86, T87), T96)
U28_AGGAA(T90, T86, T87, T96, T97, deleteC_out_aga(T90, .(T86, T87), T96)) → U29_AGGAA(T90, T86, T87, T96, T97, permD_in_ga(T96, T97))
U28_AGGAA(T90, T86, T87, T96, T97, deleteC_out_aga(T90, .(T86, T87), T96)) → PERMD_IN_GA(T96, T97)
U26_GAG(T20, T77, T22, permD_out_ga(T20, T77)) → U27_GAG(T20, T77, T22, safeP_in_gg(T22, T77))
U26_GAG(T20, T77, T22, permD_out_ga(T20, T77)) → SAFEP_IN_GG(T22, T77)
SAFEP_IN_GG(T108, T109) → U14_GG(T108, T109, pQ_in_gg(T108, T109))
SAFEP_IN_GG(T108, T109) → PQ_IN_GG(T108, T109)
PQ_IN_GG(T108, T109) → U30_GG(T108, T109, noattackR_in_gg(T108, T109))
PQ_IN_GG(T108, T109) → NOATTACKR_IN_GG(T108, T109)
NOATTACKR_IN_GG(T125, .(T126, T127)) → U15_GG(T125, T126, T127, pS_in_ggaag(T125, T126, X155, X156, T127))
NOATTACKR_IN_GG(T125, .(T126, T127)) → PS_IN_GGAAG(T125, T126, X155, X156, T127)
PS_IN_GGAAG(T125, T126, X155, X156, T127) → U32_GGAAG(T125, T126, X155, X156, T127, notEqF_in_gg(T125, T126))
PS_IN_GGAAG(T125, T126, X155, X156, T127) → NOTEQF_IN_GG(T125, T126)
NOTEQF_IN_GG(s(T146), s(T147)) → U4_GG(T146, T147, notEqF_in_gg(T146, T147))
NOTEQF_IN_GG(s(T146), s(T147)) → NOTEQF_IN_GG(T146, T147)
U32_GGAAG(T125, T126, X155, X156, T127, notEqF_out_gg(T125, T126)) → U33_GGAAG(T125, T126, X155, X156, T127, pN10_in_gagag(T126, X155, T125, X156, T127))
U32_GGAAG(T125, T126, X155, X156, T127, notEqF_out_gg(T125, T126)) → PN10_IN_GAGAG(T126, X155, T125, X156, T127)
PN10_IN_GAGAG(T126, T150, T125, X156, T127) → U34_GAGAG(T126, T150, T125, X156, T127, addG_in_ga(T126, T150))
PN10_IN_GAGAG(T126, T150, T125, X156, T127) → ADDG_IN_GA(T126, T150)
ADDG_IN_GA(s(T153), s(X199)) → U5_GA(T153, X199, addG_in_ga(T153, X199))
ADDG_IN_GA(s(T153), s(X199)) → ADDG_IN_GA(T153, X199)
U34_GAGAG(T126, T150, T125, X156, T127, addG_out_ga(T126, T150)) → U35_GAGAG(T126, T150, T125, X156, T127, pN11_in_ggagg(T125, T150, X156, T126, T127))
U34_GAGAG(T126, T150, T125, X156, T127, addG_out_ga(T126, T150)) → PN11_IN_GGAGG(T125, T150, X156, T126, T127)
PN11_IN_GGAGG(T125, T150, X156, T126, T127) → U36_GGAGG(T125, T150, X156, T126, T127, notEqF_in_gg(T125, T150))
PN11_IN_GGAGG(T125, T150, X156, T126, T127) → NOTEQF_IN_GG(T125, T150)
U36_GGAGG(T125, T150, X156, T126, T127, notEqF_out_gg(T125, T150)) → U37_GGAGG(T125, T150, X156, T126, T127, pN12_in_gagg(T125, X156, T126, T127))
U36_GGAGG(T125, T150, X156, T126, T127, notEqF_out_gg(T125, T150)) → PN12_IN_GAGG(T125, X156, T126, T127)
PN12_IN_GAGG(T125, T158, T126, T127) → U38_GAGG(T125, T158, T126, T127, addG_in_ga(T125, T158))
PN12_IN_GAGG(T125, T158, T126, T127) → ADDG_IN_GA(T125, T158)
U38_GAGG(T125, T158, T126, T127, addG_out_ga(T125, T158)) → U39_GAGG(T125, T158, T126, T127, pN13_in_gggg(T126, T158, T125, T127))
U38_GAGG(T125, T158, T126, T127, addG_out_ga(T125, T158)) → PN13_IN_GGGG(T126, T158, T125, T127)
PN13_IN_GGGG(T126, T158, T125, T127) → U40_GGGG(T126, T158, T125, T127, notEqF_in_gg(T126, T158))
PN13_IN_GGGG(T126, T158, T125, T127) → NOTEQF_IN_GG(T126, T158)
U40_GGGG(T126, T158, T125, T127, notEqF_out_gg(T126, T158)) → U41_GGGG(T126, T158, T125, T127, noattackU_in_gg(T125, T127))
U40_GGGG(T126, T158, T125, T127, notEqF_out_gg(T126, T158)) → NOATTACKU_IN_GG(T125, T127)
NOATTACKU_IN_GG(T176, .(T177, T178)) → U17_GG(T176, T177, T178, pV_in_ggaag(T176, T177, X242, X243, T178))
NOATTACKU_IN_GG(T176, .(T177, T178)) → PV_IN_GGAAG(T176, T177, X242, X243, T178)
PV_IN_GGAAG(T176, T177, X242, X243, T178) → U42_GGAAG(T176, T177, X242, X243, T178, notEqF_in_gg(T176, T177))
PV_IN_GGAAG(T176, T177, X242, X243, T178) → NOTEQF_IN_GG(T176, T177)
U42_GGAAG(T176, T177, X242, X243, T178, notEqF_out_gg(T176, T177)) → U43_GGAAG(T176, T177, X242, X243, T178, pN14_in_gagag(T177, X242, T176, X243, T178))
U42_GGAAG(T176, T177, X242, X243, T178, notEqF_out_gg(T176, T177)) → PN14_IN_GAGAG(T177, X242, T176, X243, T178)
PN14_IN_GAGAG(T177, T183, T176, X243, T178) → U44_GAGAG(T177, T183, T176, X243, T178, addH_in_ga(T177, T183))
PN14_IN_GAGAG(T177, T183, T176, X243, T178) → ADDH_IN_GA(T177, T183)
ADDH_IN_GA(s(T186), s(X268)) → U6_GA(T186, X268, addH_in_ga(T186, X268))
ADDH_IN_GA(s(T186), s(X268)) → ADDH_IN_GA(T186, X268)
U44_GAGAG(T177, T183, T176, X243, T178, addH_out_ga(T177, T183)) → U45_GAGAG(T177, T183, T176, X243, T178, pN15_in_ggagg(T176, T183, X243, T177, T178))
U44_GAGAG(T177, T183, T176, X243, T178, addH_out_ga(T177, T183)) → PN15_IN_GGAGG(T176, T183, X243, T177, T178)
PN15_IN_GGAGG(T176, T183, X243, T177, T178) → U46_GGAGG(T176, T183, X243, T177, T178, notEqF_in_gg(T176, T183))
PN15_IN_GGAGG(T176, T183, X243, T177, T178) → NOTEQF_IN_GG(T176, T183)
U46_GGAGG(T176, T183, X243, T177, T178, notEqF_out_gg(T176, T183)) → U47_GGAGG(T176, T183, X243, T177, T178, pN16_in_gagg(T176, X243, T177, T178))
U46_GGAGG(T176, T183, X243, T177, T178, notEqF_out_gg(T176, T183)) → PN16_IN_GAGG(T176, X243, T177, T178)
PN16_IN_GAGG(T176, T191, T177, T178) → U48_GAGG(T176, T191, T177, T178, addH_in_ga(T176, T191))
PN16_IN_GAGG(T176, T191, T177, T178) → ADDH_IN_GA(T176, T191)
U48_GAGG(T176, T191, T177, T178, addH_out_ga(T176, T191)) → U49_GAGG(T176, T191, T177, T178, pN17_in_gggg(T177, T191, T176, T178))
U48_GAGG(T176, T191, T177, T178, addH_out_ga(T176, T191)) → PN17_IN_GGGG(T177, T191, T176, T178)
PN17_IN_GGGG(T177, T191, T176, T178) → U50_GGGG(T177, T191, T176, T178, notEqF_in_gg(T177, T191))
PN17_IN_GGGG(T177, T191, T176, T178) → NOTEQF_IN_GG(T177, T191)
U50_GGGG(T177, T191, T176, T178, notEqF_out_gg(T177, T191)) → U51_GGGG(T177, T191, T176, T178, noattackW_in_gg(T176, T178))
U50_GGGG(T177, T191, T176, T178, notEqF_out_gg(T177, T191)) → NOATTACKW_IN_GG(T176, T178)
NOATTACKW_IN_GG(T209, .(T210, T211)) → U18_GG(T209, T210, T211, pX_in_ggaag(T209, T210, X311, X312, T211))
NOATTACKW_IN_GG(T209, .(T210, T211)) → PX_IN_GGAAG(T209, T210, X311, X312, T211)
PX_IN_GGAAG(T209, T210, X311, X312, T211) → U52_GGAAG(T209, T210, X311, X312, T211, notEqF_in_gg(T209, T210))
PX_IN_GGAAG(T209, T210, X311, X312, T211) → NOTEQF_IN_GG(T209, T210)
U52_GGAAG(T209, T210, X311, X312, T211, notEqF_out_gg(T209, T210)) → U53_GGAAG(T209, T210, X311, X312, T211, pN18_in_gagag(T210, X311, T209, X312, T211))
U52_GGAAG(T209, T210, X311, X312, T211, notEqF_out_gg(T209, T210)) → PN18_IN_GAGAG(T210, X311, T209, X312, T211)
PN18_IN_GAGAG(T210, T216, T209, X312, T211) → U54_GAGAG(T210, T216, T209, X312, T211, addI_in_ga(T210, T216))
PN18_IN_GAGAG(T210, T216, T209, X312, T211) → ADDI_IN_GA(T210, T216)
ADDI_IN_GA(s(T219), s(X337)) → U7_GA(T219, X337, addI_in_ga(T219, X337))
ADDI_IN_GA(s(T219), s(X337)) → ADDI_IN_GA(T219, X337)
U54_GAGAG(T210, T216, T209, X312, T211, addI_out_ga(T210, T216)) → U55_GAGAG(T210, T216, T209, X312, T211, pN19_in_ggagg(T209, T216, X312, T210, T211))
U54_GAGAG(T210, T216, T209, X312, T211, addI_out_ga(T210, T216)) → PN19_IN_GGAGG(T209, T216, X312, T210, T211)
PN19_IN_GGAGG(T209, T216, X312, T210, T211) → U56_GGAGG(T209, T216, X312, T210, T211, notEqF_in_gg(T209, T216))
PN19_IN_GGAGG(T209, T216, X312, T210, T211) → NOTEQF_IN_GG(T209, T216)
U56_GGAGG(T209, T216, X312, T210, T211, notEqF_out_gg(T209, T216)) → U57_GGAGG(T209, T216, X312, T210, T211, pN20_in_gagg(T209, X312, T210, T211))
U56_GGAGG(T209, T216, X312, T210, T211, notEqF_out_gg(T209, T216)) → PN20_IN_GAGG(T209, X312, T210, T211)
PN20_IN_GAGG(T209, T224, T210, T211) → U58_GAGG(T209, T224, T210, T211, addI_in_ga(T209, T224))
PN20_IN_GAGG(T209, T224, T210, T211) → ADDI_IN_GA(T209, T224)
U58_GAGG(T209, T224, T210, T211, addI_out_ga(T209, T224)) → U59_GAGG(T209, T224, T210, T211, pN21_in_gggg(T210, T224, T209, T211))
U58_GAGG(T209, T224, T210, T211, addI_out_ga(T209, T224)) → PN21_IN_GGGG(T210, T224, T209, T211)
PN21_IN_GGGG(T210, T224, T209, T211) → U60_GGGG(T210, T224, T209, T211, notEqF_in_gg(T210, T224))
PN21_IN_GGGG(T210, T224, T209, T211) → NOTEQF_IN_GG(T210, T224)
U60_GGGG(T210, T224, T209, T211, notEqF_out_gg(T210, T224)) → U61_GGGG(T210, T224, T209, T211, noattackY_in_gg(T209, T211))
U60_GGGG(T210, T224, T209, T211, notEqF_out_gg(T210, T224)) → NOATTACKY_IN_GG(T209, T211)
NOATTACKY_IN_GG(T242, .(T243, T244)) → U19_GG(T242, T243, T244, pZ_in_ggaag(T242, T243, X380, X381, T244))
NOATTACKY_IN_GG(T242, .(T243, T244)) → PZ_IN_GGAAG(T242, T243, X380, X381, T244)
PZ_IN_GGAAG(T242, T243, X380, X381, T244) → U62_GGAAG(T242, T243, X380, X381, T244, notEqF_in_gg(T242, T243))
PZ_IN_GGAAG(T242, T243, X380, X381, T244) → NOTEQF_IN_GG(T242, T243)
U62_GGAAG(T242, T243, X380, X381, T244, notEqF_out_gg(T242, T243)) → U63_GGAAG(T242, T243, X380, X381, T244, pN22_in_gagag(T243, X380, T242, X381, T244))
U62_GGAAG(T242, T243, X380, X381, T244, notEqF_out_gg(T242, T243)) → PN22_IN_GAGAG(T243, X380, T242, X381, T244)
PN22_IN_GAGAG(T243, T249, T242, X381, T244) → U64_GAGAG(T243, T249, T242, X381, T244, addJ_in_ga(T243, T249))
PN22_IN_GAGAG(T243, T249, T242, X381, T244) → ADDJ_IN_GA(T243, T249)
ADDJ_IN_GA(s(T252), s(X406)) → U8_GA(T252, X406, addJ_in_ga(T252, X406))
ADDJ_IN_GA(s(T252), s(X406)) → ADDJ_IN_GA(T252, X406)
U64_GAGAG(T243, T249, T242, X381, T244, addJ_out_ga(T243, T249)) → U65_GAGAG(T243, T249, T242, X381, T244, pN23_in_ggagg(T242, T249, X381, T243, T244))
U64_GAGAG(T243, T249, T242, X381, T244, addJ_out_ga(T243, T249)) → PN23_IN_GGAGG(T242, T249, X381, T243, T244)
PN23_IN_GGAGG(T242, T249, X381, T243, T244) → U66_GGAGG(T242, T249, X381, T243, T244, notEqF_in_gg(T242, T249))
PN23_IN_GGAGG(T242, T249, X381, T243, T244) → NOTEQF_IN_GG(T242, T249)
U66_GGAGG(T242, T249, X381, T243, T244, notEqF_out_gg(T242, T249)) → U67_GGAGG(T242, T249, X381, T243, T244, pN24_in_gagg(T242, X381, T243, T244))
U66_GGAGG(T242, T249, X381, T243, T244, notEqF_out_gg(T242, T249)) → PN24_IN_GAGG(T242, X381, T243, T244)
PN24_IN_GAGG(T242, T257, T243, T244) → U68_GAGG(T242, T257, T243, T244, addJ_in_ga(T242, T257))
PN24_IN_GAGG(T242, T257, T243, T244) → ADDJ_IN_GA(T242, T257)
U68_GAGG(T242, T257, T243, T244, addJ_out_ga(T242, T257)) → U69_GAGG(T242, T257, T243, T244, pN25_in_gggg(T243, T257, T242, T244))
U68_GAGG(T242, T257, T243, T244, addJ_out_ga(T242, T257)) → PN25_IN_GGGG(T243, T257, T242, T244)
PN25_IN_GGGG(T243, T257, T242, T244) → U70_GGGG(T243, T257, T242, T244, notEqF_in_gg(T243, T257))
PN25_IN_GGGG(T243, T257, T242, T244) → NOTEQF_IN_GG(T243, T257)
U70_GGGG(T243, T257, T242, T244, notEqF_out_gg(T243, T257)) → U71_GGGG(T243, T257, T242, T244, noattackN1_in_gg(T242, T244))
U70_GGGG(T243, T257, T242, T244, notEqF_out_gg(T243, T257)) → NOATTACKN1_IN_GG(T242, T244)
NOATTACKN1_IN_GG(T275, .(T276, T277)) → U20_GG(T275, T276, T277, pN2_in_ggaag(T275, T276, X449, X450, T277))
NOATTACKN1_IN_GG(T275, .(T276, T277)) → PN2_IN_GGAAG(T275, T276, X449, X450, T277)
PN2_IN_GGAAG(T275, T276, X449, X450, T277) → U72_GGAAG(T275, T276, X449, X450, T277, notEqF_in_gg(T275, T276))
PN2_IN_GGAAG(T275, T276, X449, X450, T277) → NOTEQF_IN_GG(T275, T276)
U72_GGAAG(T275, T276, X449, X450, T277, notEqF_out_gg(T275, T276)) → U73_GGAAG(T275, T276, X449, X450, T277, pN26_in_gagag(T276, X449, T275, X450, T277))
U72_GGAAG(T275, T276, X449, X450, T277, notEqF_out_gg(T275, T276)) → PN26_IN_GAGAG(T276, X449, T275, X450, T277)
PN26_IN_GAGAG(T276, T282, T275, X450, T277) → U74_GAGAG(T276, T282, T275, X450, T277, addK_in_ga(T276, T282))
PN26_IN_GAGAG(T276, T282, T275, X450, T277) → ADDK_IN_GA(T276, T282)
ADDK_IN_GA(s(T285), s(X475)) → U9_GA(T285, X475, addK_in_ga(T285, X475))
ADDK_IN_GA(s(T285), s(X475)) → ADDK_IN_GA(T285, X475)
U74_GAGAG(T276, T282, T275, X450, T277, addK_out_ga(T276, T282)) → U75_GAGAG(T276, T282, T275, X450, T277, pN27_in_ggagg(T275, T282, X450, T276, T277))
U74_GAGAG(T276, T282, T275, X450, T277, addK_out_ga(T276, T282)) → PN27_IN_GGAGG(T275, T282, X450, T276, T277)
PN27_IN_GGAGG(T275, T282, X450, T276, T277) → U76_GGAGG(T275, T282, X450, T276, T277, notEqF_in_gg(T275, T282))
PN27_IN_GGAGG(T275, T282, X450, T276, T277) → NOTEQF_IN_GG(T275, T282)
U76_GGAGG(T275, T282, X450, T276, T277, notEqF_out_gg(T275, T282)) → U77_GGAGG(T275, T282, X450, T276, T277, pN28_in_gagg(T275, X450, T276, T277))
U76_GGAGG(T275, T282, X450, T276, T277, notEqF_out_gg(T275, T282)) → PN28_IN_GAGG(T275, X450, T276, T277)
PN28_IN_GAGG(T275, T290, T276, T277) → U78_GAGG(T275, T290, T276, T277, addK_in_ga(T275, T290))
PN28_IN_GAGG(T275, T290, T276, T277) → ADDK_IN_GA(T275, T290)
U78_GAGG(T275, T290, T276, T277, addK_out_ga(T275, T290)) → U79_GAGG(T275, T290, T276, T277, pN29_in_gggg(T276, T290, T275, T277))
U78_GAGG(T275, T290, T276, T277, addK_out_ga(T275, T290)) → PN29_IN_GGGG(T276, T290, T275, T277)
PN29_IN_GGGG(T276, T290, T275, T277) → U80_GGGG(T276, T290, T275, T277, notEqF_in_gg(T276, T290))
PN29_IN_GGGG(T276, T290, T275, T277) → NOTEQF_IN_GG(T276, T290)
U80_GGGG(T276, T290, T275, T277, notEqF_out_gg(T276, T290)) → U81_GGGG(T276, T290, T275, T277, noattackN3_in_gg(T275, T277))
U80_GGGG(T276, T290, T275, T277, notEqF_out_gg(T276, T290)) → NOATTACKN3_IN_GG(T275, T277)
NOATTACKN3_IN_GG(T308, .(T309, T310)) → U21_GG(T308, T309, T310, pN4_in_ggaag(T308, T309, X518, X519, T310))
NOATTACKN3_IN_GG(T308, .(T309, T310)) → PN4_IN_GGAAG(T308, T309, X518, X519, T310)
PN4_IN_GGAAG(T308, T309, X518, X519, T310) → U82_GGAAG(T308, T309, X518, X519, T310, notEqF_in_gg(T308, T309))
PN4_IN_GGAAG(T308, T309, X518, X519, T310) → NOTEQF_IN_GG(T308, T309)
U82_GGAAG(T308, T309, X518, X519, T310, notEqF_out_gg(T308, T309)) → U83_GGAAG(T308, T309, X518, X519, T310, pN30_in_gagag(T309, X518, T308, X519, T310))
U82_GGAAG(T308, T309, X518, X519, T310, notEqF_out_gg(T308, T309)) → PN30_IN_GAGAG(T309, X518, T308, X519, T310)
PN30_IN_GAGAG(T309, T315, T308, X519, T310) → U84_GAGAG(T309, T315, T308, X519, T310, addL_in_ga(T309, T315))
PN30_IN_GAGAG(T309, T315, T308, X519, T310) → ADDL_IN_GA(T309, T315)
ADDL_IN_GA(s(T318), s(X544)) → U10_GA(T318, X544, addL_in_ga(T318, X544))
ADDL_IN_GA(s(T318), s(X544)) → ADDL_IN_GA(T318, X544)
U84_GAGAG(T309, T315, T308, X519, T310, addL_out_ga(T309, T315)) → U85_GAGAG(T309, T315, T308, X519, T310, pN31_in_ggagg(T308, T315, X519, T309, T310))
U84_GAGAG(T309, T315, T308, X519, T310, addL_out_ga(T309, T315)) → PN31_IN_GGAGG(T308, T315, X519, T309, T310)
PN31_IN_GGAGG(T308, T315, X519, T309, T310) → U86_GGAGG(T308, T315, X519, T309, T310, notEqF_in_gg(T308, T315))
PN31_IN_GGAGG(T308, T315, X519, T309, T310) → NOTEQF_IN_GG(T308, T315)
U86_GGAGG(T308, T315, X519, T309, T310, notEqF_out_gg(T308, T315)) → U87_GGAGG(T308, T315, X519, T309, T310, pN32_in_gagg(T308, X519, T309, T310))
U86_GGAGG(T308, T315, X519, T309, T310, notEqF_out_gg(T308, T315)) → PN32_IN_GAGG(T308, X519, T309, T310)
PN32_IN_GAGG(T308, T323, T309, T310) → U88_GAGG(T308, T323, T309, T310, addL_in_ga(T308, T323))
PN32_IN_GAGG(T308, T323, T309, T310) → ADDL_IN_GA(T308, T323)
U88_GAGG(T308, T323, T309, T310, addL_out_ga(T308, T323)) → U89_GAGG(T308, T323, T309, T310, pN33_in_gggg(T309, T323, T308, T310))
U88_GAGG(T308, T323, T309, T310, addL_out_ga(T308, T323)) → PN33_IN_GGGG(T309, T323, T308, T310)
PN33_IN_GGGG(T309, T323, T308, T310) → U90_GGGG(T309, T323, T308, T310, notEqF_in_gg(T309, T323))
PN33_IN_GGGG(T309, T323, T308, T310) → NOTEQF_IN_GG(T309, T323)
U90_GGGG(T309, T323, T308, T310, notEqF_out_gg(T309, T323)) → U91_GGGG(T309, T323, T308, T310, noattackN5_in_gg(T308, T310))
U90_GGGG(T309, T323, T308, T310, notEqF_out_gg(T309, T323)) → NOATTACKN5_IN_GG(T308, T310)
NOATTACKN5_IN_GG(T341, .(T342, T343)) → U22_GG(T341, T342, T343, pN6_in_ggaagg(T341, T342, X587, X588, T343, s(s(s(s(s(s(s(0)))))))))
NOATTACKN5_IN_GG(T341, .(T342, T343)) → PN6_IN_GGAAGG(T341, T342, X587, X588, T343, s(s(s(s(s(s(s(0))))))))
PN6_IN_GGAAGG(T341, T342, X587, X588, T343, T346) → U92_GGAAGG(T341, T342, X587, X588, T343, T346, notEqF_in_gg(T341, T342))
PN6_IN_GGAAGG(T341, T342, X587, X588, T343, T346) → NOTEQF_IN_GG(T341, T342)
U92_GGAAGG(T341, T342, X587, X588, T343, T346, notEqF_out_gg(T341, T342)) → U93_GGAAGG(T341, T342, X587, X588, T343, T346, pN34_in_gagagg(T342, X587, T341, X588, T343, T346))
U92_GGAAGG(T341, T342, X587, X588, T343, T346, notEqF_out_gg(T341, T342)) → PN34_IN_GAGAGG(T342, X587, T341, X588, T343, T346)
PN34_IN_GAGAGG(T342, T351, T341, X588, T343, T346) → U94_GAGAGG(T342, T351, T341, X588, T343, T346, addM_in_ga(T342, T351))
PN34_IN_GAGAGG(T342, T351, T341, X588, T343, T346) → ADDM_IN_GA(T342, T351)
ADDM_IN_GA(s(T354), s(X615)) → U11_GA(T354, X615, addM_in_ga(T354, X615))
ADDM_IN_GA(s(T354), s(X615)) → ADDM_IN_GA(T354, X615)
U94_GAGAGG(T342, T351, T341, X588, T343, T346, addM_out_ga(T342, T351)) → U95_GAGAGG(T342, T351, T341, X588, T343, T346, pN35_in_ggaggg(T341, T351, X588, T342, T343, T346))
U94_GAGAGG(T342, T351, T341, X588, T343, T346, addM_out_ga(T342, T351)) → PN35_IN_GGAGGG(T341, T351, X588, T342, T343, T346)
PN35_IN_GGAGGG(T341, T351, X588, T342, T343, T346) → U96_GGAGGG(T341, T351, X588, T342, T343, T346, notEqF_in_gg(T341, T351))
PN35_IN_GGAGGG(T341, T351, X588, T342, T343, T346) → NOTEQF_IN_GG(T341, T351)
U96_GGAGGG(T341, T351, X588, T342, T343, T346, notEqF_out_gg(T341, T351)) → U97_GGAGGG(T341, T351, X588, T342, T343, T346, pN36_in_gaggg(T341, X588, T342, T343, T346))
U96_GGAGGG(T341, T351, X588, T342, T343, T346, notEqF_out_gg(T341, T351)) → PN36_IN_GAGGG(T341, X588, T342, T343, T346)
PN36_IN_GAGGG(T341, T359, T342, T343, T346) → U98_GAGGG(T341, T359, T342, T343, T346, addM_in_ga(T341, T359))
PN36_IN_GAGGG(T341, T359, T342, T343, T346) → ADDM_IN_GA(T341, T359)
U98_GAGGG(T341, T359, T342, T343, T346, addM_out_ga(T341, T359)) → U99_GAGGG(T341, T359, T342, T343, T346, pN37_in_ggggg(T342, T359, T341, T343, T346))
U98_GAGGG(T341, T359, T342, T343, T346, addM_out_ga(T341, T359)) → PN37_IN_GGGGG(T342, T359, T341, T343, T346)
PN37_IN_GGGGG(T342, T359, T341, T343, T346) → U100_GGGGG(T342, T359, T341, T343, T346, notEqF_in_gg(T342, T359))
PN37_IN_GGGGG(T342, T359, T341, T343, T346) → NOTEQF_IN_GG(T342, T359)
U100_GGGGG(T342, T359, T341, T343, T346, notEqF_out_gg(T342, T359)) → U101_GGGGG(T342, T359, T341, T343, T346, noattackN7_in_ggg(T341, T343, T346))
U100_GGGGG(T342, T359, T341, T343, T346, notEqF_out_gg(T342, T359)) → NOATTACKN7_IN_GGG(T341, T343, T346)
NOATTACKN7_IN_GGG(T386, .(T387, T388), T389) → U23_GGG(T386, T387, T388, T389, pN8_in_gggaag(T386, T387, T389, X658, X659, T388))
NOATTACKN7_IN_GGG(T386, .(T387, T388), T389) → PN8_IN_GGGAAG(T386, T387, T389, X658, X659, T388)
PN8_IN_GGGAAG(T386, T387, T389, X658, X659, T388) → U102_GGGAAG(T386, T387, T389, X658, X659, T388, notEqF_in_gg(T386, T387))
PN8_IN_GGGAAG(T386, T387, T389, X658, X659, T388) → NOTEQF_IN_GG(T386, T387)
U102_GGGAAG(T386, T387, T389, X658, X659, T388, notEqF_out_gg(T386, T387)) → U103_GGGAAG(T386, T387, T389, X658, X659, T388, pN38_in_ggagag(T387, T389, X658, T386, X659, T388))
U102_GGGAAG(T386, T387, T389, X658, X659, T388, notEqF_out_gg(T386, T387)) → PN38_IN_GGAGAG(T387, T389, X658, T386, X659, T388)
PN38_IN_GGAGAG(T387, T389, T396, T386, X659, T388) → U104_GGAGAG(T387, T389, T396, T386, X659, T388, addN_in_gga(T387, T389, T396))
PN38_IN_GGAGAG(T387, T389, T396, T386, X659, T388) → ADDN_IN_GGA(T387, T389, T396)
ADDN_IN_GGA(s(T408), T409, s(X684)) → U12_GGA(T408, T409, X684, addN_in_gga(T408, T409, X684))
ADDN_IN_GGA(s(T408), T409, s(X684)) → ADDN_IN_GGA(T408, T409, X684)
U104_GGAGAG(T387, T389, T396, T386, X659, T388, addN_out_gga(T387, T389, T396)) → U105_GGAGAG(T387, T389, T396, T386, X659, T388, pN39_in_gggagg(T386, T396, T389, X659, T387, T388))
U104_GGAGAG(T387, T389, T396, T386, X659, T388, addN_out_gga(T387, T389, T396)) → PN39_IN_GGGAGG(T386, T396, T389, X659, T387, T388)
PN39_IN_GGGAGG(T386, T396, T389, X659, T387, T388) → U106_GGGAGG(T386, T396, T389, X659, T387, T388, notEqF_in_gg(T386, T396))
PN39_IN_GGGAGG(T386, T396, T389, X659, T387, T388) → NOTEQF_IN_GG(T386, T396)
U106_GGGAGG(T386, T396, T389, X659, T387, T388, notEqF_out_gg(T386, T396)) → U107_GGGAGG(T386, T396, T389, X659, T387, T388, pN40_in_ggagg(T386, T389, X659, T387, T388))
U106_GGGAGG(T386, T396, T389, X659, T387, T388, notEqF_out_gg(T386, T396)) → PN40_IN_GGAGG(T386, T389, X659, T387, T388)
PN40_IN_GGAGG(T386, T389, T418, T387, T388) → U108_GGAGG(T386, T389, T418, T387, T388, addN_in_gga(T386, T389, T418))
PN40_IN_GGAGG(T386, T389, T418, T387, T388) → ADDN_IN_GGA(T386, T389, T418)
U108_GGAGG(T386, T389, T418, T387, T388, addN_out_gga(T386, T389, T418)) → U109_GGAGG(T386, T389, T418, T387, T388, pN37_in_ggggg(T387, T418, T386, T388, s(T389)))
U108_GGAGG(T386, T389, T418, T387, T388, addN_out_gga(T386, T389, T418)) → PN37_IN_GGGGG(T387, T418, T386, T388, s(T389))
U30_GG(T108, T109, noattackR_out_gg(T108, T109)) → U31_GG(T108, T109, safeT_in_g(T109))
U30_GG(T108, T109, noattackR_out_gg(T108, T109)) → SAFET_IN_G(T109)
SAFET_IN_G(.(T427, T428)) → U16_G(T427, T428, pQ_in_gg(T427, T428))
SAFET_IN_G(.(T427, T428)) → PQ_IN_GG(T427, T428)
queensA_in_a(.(T11, T12)) → U1_a(T11, T12, pB_in_agaa(T11, .(s(s(0)), .(s(s(s(0))), .(s(s(s(s(0)))), .(s(s(s(s(s(0))))), .(s(s(s(s(s(s(0)))))), .(s(s(s(s(s(s(s(0))))))), .(s(s(s(s(s(s(s(s(0)))))))), []))))))), X16, T12))
pB_in_agaa(T22, T15, T20, T21) → U24_agaa(T22, T15, T20, T21, deleteO_in_aga(T22, T15, T20))
deleteO_in_aga(s(0), T36, T36) → deleteO_out_aga(s(0), T36, T36)
deleteO_in_aga(T48, T47, .(s(0), X57)) → U13_aga(T48, T47, X57, deleteC_in_aga(T48, T47, X57))
deleteC_in_aga(T61, .(T61, T62), T62) → deleteC_out_aga(T61, .(T61, T62), T62)
deleteC_in_aga(T72, .(T70, T71), .(T70, X86)) → U2_aga(T72, T70, T71, X86, deleteC_in_aga(T72, T71, X86))
U2_aga(T72, T70, T71, X86, deleteC_out_aga(T72, T71, X86)) → deleteC_out_aga(T72, .(T70, T71), .(T70, X86))
U13_aga(T48, T47, X57, deleteC_out_aga(T48, T47, X57)) → deleteO_out_aga(T48, T47, .(s(0), X57))
U24_agaa(T22, T15, T20, T21, deleteO_out_aga(T22, T15, T20)) → U25_agaa(T22, T15, T20, T21, pN9_in_gag(T20, T21, T22))
pN9_in_gag(T20, T77, T22) → U26_gag(T20, T77, T22, permD_in_ga(T20, T77))
permD_in_ga([], []) → permD_out_ga([], [])
permD_in_ga(.(T86, T87), .(T90, T91)) → U3_ga(T86, T87, T90, T91, pE_in_aggaa(T90, T86, T87, X104, T91))
pE_in_aggaa(T90, T86, T87, T96, T97) → U28_aggaa(T90, T86, T87, T96, T97, deleteC_in_aga(T90, .(T86, T87), T96))
U28_aggaa(T90, T86, T87, T96, T97, deleteC_out_aga(T90, .(T86, T87), T96)) → U29_aggaa(T90, T86, T87, T96, T97, permD_in_ga(T96, T97))
U29_aggaa(T90, T86, T87, T96, T97, permD_out_ga(T96, T97)) → pE_out_aggaa(T90, T86, T87, T96, T97)
U3_ga(T86, T87, T90, T91, pE_out_aggaa(T90, T86, T87, X104, T91)) → permD_out_ga(.(T86, T87), .(T90, T91))
U26_gag(T20, T77, T22, permD_out_ga(T20, T77)) → U27_gag(T20, T77, T22, safeP_in_gg(T22, T77))
safeP_in_gg(T108, T109) → U14_gg(T108, T109, pQ_in_gg(T108, T109))
pQ_in_gg(T108, T109) → U30_gg(T108, T109, noattackR_in_gg(T108, T109))
noattackR_in_gg(T118, []) → noattackR_out_gg(T118, [])
noattackR_in_gg(T125, .(T126, T127)) → U15_gg(T125, T126, T127, pS_in_ggaag(T125, T126, X155, X156, T127))
pS_in_ggaag(T125, T126, X155, X156, T127) → U32_ggaag(T125, T126, X155, X156, T127, notEqF_in_gg(T125, T126))
notEqF_in_gg(0, s(T136)) → notEqF_out_gg(0, s(T136))
notEqF_in_gg(s(T141), 0) → notEqF_out_gg(s(T141), 0)
notEqF_in_gg(s(T146), s(T147)) → U4_gg(T146, T147, notEqF_in_gg(T146, T147))
U4_gg(T146, T147, notEqF_out_gg(T146, T147)) → notEqF_out_gg(s(T146), s(T147))
U32_ggaag(T125, T126, X155, X156, T127, notEqF_out_gg(T125, T126)) → U33_ggaag(T125, T126, X155, X156, T127, pN10_in_gagag(T126, X155, T125, X156, T127))
pN10_in_gagag(T126, T150, T125, X156, T127) → U34_gagag(T126, T150, T125, X156, T127, addG_in_ga(T126, T150))
addG_in_ga(0, s(0)) → addG_out_ga(0, s(0))
addG_in_ga(s(T153), s(X199)) → U5_ga(T153, X199, addG_in_ga(T153, X199))
U5_ga(T153, X199, addG_out_ga(T153, X199)) → addG_out_ga(s(T153), s(X199))
U34_gagag(T126, T150, T125, X156, T127, addG_out_ga(T126, T150)) → U35_gagag(T126, T150, T125, X156, T127, pN11_in_ggagg(T125, T150, X156, T126, T127))
pN11_in_ggagg(T125, T150, X156, T126, T127) → U36_ggagg(T125, T150, X156, T126, T127, notEqF_in_gg(T125, T150))
U36_ggagg(T125, T150, X156, T126, T127, notEqF_out_gg(T125, T150)) → U37_ggagg(T125, T150, X156, T126, T127, pN12_in_gagg(T125, X156, T126, T127))
pN12_in_gagg(T125, T158, T126, T127) → U38_gagg(T125, T158, T126, T127, addG_in_ga(T125, T158))
U38_gagg(T125, T158, T126, T127, addG_out_ga(T125, T158)) → U39_gagg(T125, T158, T126, T127, pN13_in_gggg(T126, T158, T125, T127))
pN13_in_gggg(T126, T158, T125, T127) → U40_gggg(T126, T158, T125, T127, notEqF_in_gg(T126, T158))
U40_gggg(T126, T158, T125, T127, notEqF_out_gg(T126, T158)) → U41_gggg(T126, T158, T125, T127, noattackU_in_gg(T125, T127))
noattackU_in_gg(T169, []) → noattackU_out_gg(T169, [])
noattackU_in_gg(T176, .(T177, T178)) → U17_gg(T176, T177, T178, pV_in_ggaag(T176, T177, X242, X243, T178))
pV_in_ggaag(T176, T177, X242, X243, T178) → U42_ggaag(T176, T177, X242, X243, T178, notEqF_in_gg(T176, T177))
U42_ggaag(T176, T177, X242, X243, T178, notEqF_out_gg(T176, T177)) → U43_ggaag(T176, T177, X242, X243, T178, pN14_in_gagag(T177, X242, T176, X243, T178))
pN14_in_gagag(T177, T183, T176, X243, T178) → U44_gagag(T177, T183, T176, X243, T178, addH_in_ga(T177, T183))
addH_in_ga(0, s(s(0))) → addH_out_ga(0, s(s(0)))
addH_in_ga(s(T186), s(X268)) → U6_ga(T186, X268, addH_in_ga(T186, X268))
U6_ga(T186, X268, addH_out_ga(T186, X268)) → addH_out_ga(s(T186), s(X268))
U44_gagag(T177, T183, T176, X243, T178, addH_out_ga(T177, T183)) → U45_gagag(T177, T183, T176, X243, T178, pN15_in_ggagg(T176, T183, X243, T177, T178))
pN15_in_ggagg(T176, T183, X243, T177, T178) → U46_ggagg(T176, T183, X243, T177, T178, notEqF_in_gg(T176, T183))
U46_ggagg(T176, T183, X243, T177, T178, notEqF_out_gg(T176, T183)) → U47_ggagg(T176, T183, X243, T177, T178, pN16_in_gagg(T176, X243, T177, T178))
pN16_in_gagg(T176, T191, T177, T178) → U48_gagg(T176, T191, T177, T178, addH_in_ga(T176, T191))
U48_gagg(T176, T191, T177, T178, addH_out_ga(T176, T191)) → U49_gagg(T176, T191, T177, T178, pN17_in_gggg(T177, T191, T176, T178))
pN17_in_gggg(T177, T191, T176, T178) → U50_gggg(T177, T191, T176, T178, notEqF_in_gg(T177, T191))
U50_gggg(T177, T191, T176, T178, notEqF_out_gg(T177, T191)) → U51_gggg(T177, T191, T176, T178, noattackW_in_gg(T176, T178))
noattackW_in_gg(T202, []) → noattackW_out_gg(T202, [])
noattackW_in_gg(T209, .(T210, T211)) → U18_gg(T209, T210, T211, pX_in_ggaag(T209, T210, X311, X312, T211))
pX_in_ggaag(T209, T210, X311, X312, T211) → U52_ggaag(T209, T210, X311, X312, T211, notEqF_in_gg(T209, T210))
U52_ggaag(T209, T210, X311, X312, T211, notEqF_out_gg(T209, T210)) → U53_ggaag(T209, T210, X311, X312, T211, pN18_in_gagag(T210, X311, T209, X312, T211))
pN18_in_gagag(T210, T216, T209, X312, T211) → U54_gagag(T210, T216, T209, X312, T211, addI_in_ga(T210, T216))
addI_in_ga(0, s(s(s(0)))) → addI_out_ga(0, s(s(s(0))))
addI_in_ga(s(T219), s(X337)) → U7_ga(T219, X337, addI_in_ga(T219, X337))
U7_ga(T219, X337, addI_out_ga(T219, X337)) → addI_out_ga(s(T219), s(X337))
U54_gagag(T210, T216, T209, X312, T211, addI_out_ga(T210, T216)) → U55_gagag(T210, T216, T209, X312, T211, pN19_in_ggagg(T209, T216, X312, T210, T211))
pN19_in_ggagg(T209, T216, X312, T210, T211) → U56_ggagg(T209, T216, X312, T210, T211, notEqF_in_gg(T209, T216))
U56_ggagg(T209, T216, X312, T210, T211, notEqF_out_gg(T209, T216)) → U57_ggagg(T209, T216, X312, T210, T211, pN20_in_gagg(T209, X312, T210, T211))
pN20_in_gagg(T209, T224, T210, T211) → U58_gagg(T209, T224, T210, T211, addI_in_ga(T209, T224))
U58_gagg(T209, T224, T210, T211, addI_out_ga(T209, T224)) → U59_gagg(T209, T224, T210, T211, pN21_in_gggg(T210, T224, T209, T211))
pN21_in_gggg(T210, T224, T209, T211) → U60_gggg(T210, T224, T209, T211, notEqF_in_gg(T210, T224))
U60_gggg(T210, T224, T209, T211, notEqF_out_gg(T210, T224)) → U61_gggg(T210, T224, T209, T211, noattackY_in_gg(T209, T211))
noattackY_in_gg(T235, []) → noattackY_out_gg(T235, [])
noattackY_in_gg(T242, .(T243, T244)) → U19_gg(T242, T243, T244, pZ_in_ggaag(T242, T243, X380, X381, T244))
pZ_in_ggaag(T242, T243, X380, X381, T244) → U62_ggaag(T242, T243, X380, X381, T244, notEqF_in_gg(T242, T243))
U62_ggaag(T242, T243, X380, X381, T244, notEqF_out_gg(T242, T243)) → U63_ggaag(T242, T243, X380, X381, T244, pN22_in_gagag(T243, X380, T242, X381, T244))
pN22_in_gagag(T243, T249, T242, X381, T244) → U64_gagag(T243, T249, T242, X381, T244, addJ_in_ga(T243, T249))
addJ_in_ga(0, s(s(s(s(0))))) → addJ_out_ga(0, s(s(s(s(0)))))
addJ_in_ga(s(T252), s(X406)) → U8_ga(T252, X406, addJ_in_ga(T252, X406))
U8_ga(T252, X406, addJ_out_ga(T252, X406)) → addJ_out_ga(s(T252), s(X406))
U64_gagag(T243, T249, T242, X381, T244, addJ_out_ga(T243, T249)) → U65_gagag(T243, T249, T242, X381, T244, pN23_in_ggagg(T242, T249, X381, T243, T244))
pN23_in_ggagg(T242, T249, X381, T243, T244) → U66_ggagg(T242, T249, X381, T243, T244, notEqF_in_gg(T242, T249))
U66_ggagg(T242, T249, X381, T243, T244, notEqF_out_gg(T242, T249)) → U67_ggagg(T242, T249, X381, T243, T244, pN24_in_gagg(T242, X381, T243, T244))
pN24_in_gagg(T242, T257, T243, T244) → U68_gagg(T242, T257, T243, T244, addJ_in_ga(T242, T257))
U68_gagg(T242, T257, T243, T244, addJ_out_ga(T242, T257)) → U69_gagg(T242, T257, T243, T244, pN25_in_gggg(T243, T257, T242, T244))
pN25_in_gggg(T243, T257, T242, T244) → U70_gggg(T243, T257, T242, T244, notEqF_in_gg(T243, T257))
U70_gggg(T243, T257, T242, T244, notEqF_out_gg(T243, T257)) → U71_gggg(T243, T257, T242, T244, noattackN1_in_gg(T242, T244))
noattackN1_in_gg(T268, []) → noattackN1_out_gg(T268, [])
noattackN1_in_gg(T275, .(T276, T277)) → U20_gg(T275, T276, T277, pN2_in_ggaag(T275, T276, X449, X450, T277))
pN2_in_ggaag(T275, T276, X449, X450, T277) → U72_ggaag(T275, T276, X449, X450, T277, notEqF_in_gg(T275, T276))
U72_ggaag(T275, T276, X449, X450, T277, notEqF_out_gg(T275, T276)) → U73_ggaag(T275, T276, X449, X450, T277, pN26_in_gagag(T276, X449, T275, X450, T277))
pN26_in_gagag(T276, T282, T275, X450, T277) → U74_gagag(T276, T282, T275, X450, T277, addK_in_ga(T276, T282))
addK_in_ga(0, s(s(s(s(s(0)))))) → addK_out_ga(0, s(s(s(s(s(0))))))
addK_in_ga(s(T285), s(X475)) → U9_ga(T285, X475, addK_in_ga(T285, X475))
U9_ga(T285, X475, addK_out_ga(T285, X475)) → addK_out_ga(s(T285), s(X475))
U74_gagag(T276, T282, T275, X450, T277, addK_out_ga(T276, T282)) → U75_gagag(T276, T282, T275, X450, T277, pN27_in_ggagg(T275, T282, X450, T276, T277))
pN27_in_ggagg(T275, T282, X450, T276, T277) → U76_ggagg(T275, T282, X450, T276, T277, notEqF_in_gg(T275, T282))
U76_ggagg(T275, T282, X450, T276, T277, notEqF_out_gg(T275, T282)) → U77_ggagg(T275, T282, X450, T276, T277, pN28_in_gagg(T275, X450, T276, T277))
pN28_in_gagg(T275, T290, T276, T277) → U78_gagg(T275, T290, T276, T277, addK_in_ga(T275, T290))
U78_gagg(T275, T290, T276, T277, addK_out_ga(T275, T290)) → U79_gagg(T275, T290, T276, T277, pN29_in_gggg(T276, T290, T275, T277))
pN29_in_gggg(T276, T290, T275, T277) → U80_gggg(T276, T290, T275, T277, notEqF_in_gg(T276, T290))
U80_gggg(T276, T290, T275, T277, notEqF_out_gg(T276, T290)) → U81_gggg(T276, T290, T275, T277, noattackN3_in_gg(T275, T277))
noattackN3_in_gg(T301, []) → noattackN3_out_gg(T301, [])
noattackN3_in_gg(T308, .(T309, T310)) → U21_gg(T308, T309, T310, pN4_in_ggaag(T308, T309, X518, X519, T310))
pN4_in_ggaag(T308, T309, X518, X519, T310) → U82_ggaag(T308, T309, X518, X519, T310, notEqF_in_gg(T308, T309))
U82_ggaag(T308, T309, X518, X519, T310, notEqF_out_gg(T308, T309)) → U83_ggaag(T308, T309, X518, X519, T310, pN30_in_gagag(T309, X518, T308, X519, T310))
pN30_in_gagag(T309, T315, T308, X519, T310) → U84_gagag(T309, T315, T308, X519, T310, addL_in_ga(T309, T315))
addL_in_ga(0, s(s(s(s(s(s(0))))))) → addL_out_ga(0, s(s(s(s(s(s(0)))))))
addL_in_ga(s(T318), s(X544)) → U10_ga(T318, X544, addL_in_ga(T318, X544))
U10_ga(T318, X544, addL_out_ga(T318, X544)) → addL_out_ga(s(T318), s(X544))
U84_gagag(T309, T315, T308, X519, T310, addL_out_ga(T309, T315)) → U85_gagag(T309, T315, T308, X519, T310, pN31_in_ggagg(T308, T315, X519, T309, T310))
pN31_in_ggagg(T308, T315, X519, T309, T310) → U86_ggagg(T308, T315, X519, T309, T310, notEqF_in_gg(T308, T315))
U86_ggagg(T308, T315, X519, T309, T310, notEqF_out_gg(T308, T315)) → U87_ggagg(T308, T315, X519, T309, T310, pN32_in_gagg(T308, X519, T309, T310))
pN32_in_gagg(T308, T323, T309, T310) → U88_gagg(T308, T323, T309, T310, addL_in_ga(T308, T323))
U88_gagg(T308, T323, T309, T310, addL_out_ga(T308, T323)) → U89_gagg(T308, T323, T309, T310, pN33_in_gggg(T309, T323, T308, T310))
pN33_in_gggg(T309, T323, T308, T310) → U90_gggg(T309, T323, T308, T310, notEqF_in_gg(T309, T323))
U90_gggg(T309, T323, T308, T310, notEqF_out_gg(T309, T323)) → U91_gggg(T309, T323, T308, T310, noattackN5_in_gg(T308, T310))
noattackN5_in_gg(T334, []) → noattackN5_out_gg(T334, [])
noattackN5_in_gg(T341, .(T342, T343)) → U22_gg(T341, T342, T343, pN6_in_ggaagg(T341, T342, X587, X588, T343, s(s(s(s(s(s(s(0)))))))))
pN6_in_ggaagg(T341, T342, X587, X588, T343, T346) → U92_ggaagg(T341, T342, X587, X588, T343, T346, notEqF_in_gg(T341, T342))
U92_ggaagg(T341, T342, X587, X588, T343, T346, notEqF_out_gg(T341, T342)) → U93_ggaagg(T341, T342, X587, X588, T343, T346, pN34_in_gagagg(T342, X587, T341, X588, T343, T346))
pN34_in_gagagg(T342, T351, T341, X588, T343, T346) → U94_gagagg(T342, T351, T341, X588, T343, T346, addM_in_ga(T342, T351))
addM_in_ga(0, s(s(s(s(s(s(s(0)))))))) → addM_out_ga(0, s(s(s(s(s(s(s(0))))))))
addM_in_ga(s(T354), s(X615)) → U11_ga(T354, X615, addM_in_ga(T354, X615))
U11_ga(T354, X615, addM_out_ga(T354, X615)) → addM_out_ga(s(T354), s(X615))
U94_gagagg(T342, T351, T341, X588, T343, T346, addM_out_ga(T342, T351)) → U95_gagagg(T342, T351, T341, X588, T343, T346, pN35_in_ggaggg(T341, T351, X588, T342, T343, T346))
pN35_in_ggaggg(T341, T351, X588, T342, T343, T346) → U96_ggaggg(T341, T351, X588, T342, T343, T346, notEqF_in_gg(T341, T351))
U96_ggaggg(T341, T351, X588, T342, T343, T346, notEqF_out_gg(T341, T351)) → U97_ggaggg(T341, T351, X588, T342, T343, T346, pN36_in_gaggg(T341, X588, T342, T343, T346))
pN36_in_gaggg(T341, T359, T342, T343, T346) → U98_gaggg(T341, T359, T342, T343, T346, addM_in_ga(T341, T359))
U98_gaggg(T341, T359, T342, T343, T346, addM_out_ga(T341, T359)) → U99_gaggg(T341, T359, T342, T343, T346, pN37_in_ggggg(T342, T359, T341, T343, T346))
pN37_in_ggggg(T342, T359, T341, T343, T346) → U100_ggggg(T342, T359, T341, T343, T346, notEqF_in_gg(T342, T359))
U100_ggggg(T342, T359, T341, T343, T346, notEqF_out_gg(T342, T359)) → U101_ggggg(T342, T359, T341, T343, T346, noattackN7_in_ggg(T341, T343, T346))
noattackN7_in_ggg(T376, [], T377) → noattackN7_out_ggg(T376, [], T377)
noattackN7_in_ggg(T386, .(T387, T388), T389) → U23_ggg(T386, T387, T388, T389, pN8_in_gggaag(T386, T387, T389, X658, X659, T388))
pN8_in_gggaag(T386, T387, T389, X658, X659, T388) → U102_gggaag(T386, T387, T389, X658, X659, T388, notEqF_in_gg(T386, T387))
U102_gggaag(T386, T387, T389, X658, X659, T388, notEqF_out_gg(T386, T387)) → U103_gggaag(T386, T387, T389, X658, X659, T388, pN38_in_ggagag(T387, T389, X658, T386, X659, T388))
pN38_in_ggagag(T387, T389, T396, T386, X659, T388) → U104_ggagag(T387, T389, T396, T386, X659, T388, addN_in_gga(T387, T389, T396))
addN_in_gga(0, T403, s(T403)) → addN_out_gga(0, T403, s(T403))
addN_in_gga(s(T408), T409, s(X684)) → U12_gga(T408, T409, X684, addN_in_gga(T408, T409, X684))
U12_gga(T408, T409, X684, addN_out_gga(T408, T409, X684)) → addN_out_gga(s(T408), T409, s(X684))
U104_ggagag(T387, T389, T396, T386, X659, T388, addN_out_gga(T387, T389, T396)) → U105_ggagag(T387, T389, T396, T386, X659, T388, pN39_in_gggagg(T386, T396, T389, X659, T387, T388))
pN39_in_gggagg(T386, T396, T389, X659, T387, T388) → U106_gggagg(T386, T396, T389, X659, T387, T388, notEqF_in_gg(T386, T396))
U106_gggagg(T386, T396, T389, X659, T387, T388, notEqF_out_gg(T386, T396)) → U107_gggagg(T386, T396, T389, X659, T387, T388, pN40_in_ggagg(T386, T389, X659, T387, T388))
pN40_in_ggagg(T386, T389, T418, T387, T388) → U108_ggagg(T386, T389, T418, T387, T388, addN_in_gga(T386, T389, T418))
U108_ggagg(T386, T389, T418, T387, T388, addN_out_gga(T386, T389, T418)) → U109_ggagg(T386, T389, T418, T387, T388, pN37_in_ggggg(T387, T418, T386, T388, s(T389)))
U109_ggagg(T386, T389, T418, T387, T388, pN37_out_ggggg(T387, T418, T386, T388, s(T389))) → pN40_out_ggagg(T386, T389, T418, T387, T388)
U107_gggagg(T386, T396, T389, X659, T387, T388, pN40_out_ggagg(T386, T389, X659, T387, T388)) → pN39_out_gggagg(T386, T396, T389, X659, T387, T388)
U105_ggagag(T387, T389, T396, T386, X659, T388, pN39_out_gggagg(T386, T396, T389, X659, T387, T388)) → pN38_out_ggagag(T387, T389, T396, T386, X659, T388)
U103_gggaag(T386, T387, T389, X658, X659, T388, pN38_out_ggagag(T387, T389, X658, T386, X659, T388)) → pN8_out_gggaag(T386, T387, T389, X658, X659, T388)
U23_ggg(T386, T387, T388, T389, pN8_out_gggaag(T386, T387, T389, X658, X659, T388)) → noattackN7_out_ggg(T386, .(T387, T388), T389)
U101_ggggg(T342, T359, T341, T343, T346, noattackN7_out_ggg(T341, T343, T346)) → pN37_out_ggggg(T342, T359, T341, T343, T346)
U99_gaggg(T341, T359, T342, T343, T346, pN37_out_ggggg(T342, T359, T341, T343, T346)) → pN36_out_gaggg(T341, T359, T342, T343, T346)
U97_ggaggg(T341, T351, X588, T342, T343, T346, pN36_out_gaggg(T341, X588, T342, T343, T346)) → pN35_out_ggaggg(T341, T351, X588, T342, T343, T346)
U95_gagagg(T342, T351, T341, X588, T343, T346, pN35_out_ggaggg(T341, T351, X588, T342, T343, T346)) → pN34_out_gagagg(T342, T351, T341, X588, T343, T346)
U93_ggaagg(T341, T342, X587, X588, T343, T346, pN34_out_gagagg(T342, X587, T341, X588, T343, T346)) → pN6_out_ggaagg(T341, T342, X587, X588, T343, T346)
U22_gg(T341, T342, T343, pN6_out_ggaagg(T341, T342, X587, X588, T343, s(s(s(s(s(s(s(0))))))))) → noattackN5_out_gg(T341, .(T342, T343))
U91_gggg(T309, T323, T308, T310, noattackN5_out_gg(T308, T310)) → pN33_out_gggg(T309, T323, T308, T310)
U89_gagg(T308, T323, T309, T310, pN33_out_gggg(T309, T323, T308, T310)) → pN32_out_gagg(T308, T323, T309, T310)
U87_ggagg(T308, T315, X519, T309, T310, pN32_out_gagg(T308, X519, T309, T310)) → pN31_out_ggagg(T308, T315, X519, T309, T310)
U85_gagag(T309, T315, T308, X519, T310, pN31_out_ggagg(T308, T315, X519, T309, T310)) → pN30_out_gagag(T309, T315, T308, X519, T310)
U83_ggaag(T308, T309, X518, X519, T310, pN30_out_gagag(T309, X518, T308, X519, T310)) → pN4_out_ggaag(T308, T309, X518, X519, T310)
U21_gg(T308, T309, T310, pN4_out_ggaag(T308, T309, X518, X519, T310)) → noattackN3_out_gg(T308, .(T309, T310))
U81_gggg(T276, T290, T275, T277, noattackN3_out_gg(T275, T277)) → pN29_out_gggg(T276, T290, T275, T277)
U79_gagg(T275, T290, T276, T277, pN29_out_gggg(T276, T290, T275, T277)) → pN28_out_gagg(T275, T290, T276, T277)
U77_ggagg(T275, T282, X450, T276, T277, pN28_out_gagg(T275, X450, T276, T277)) → pN27_out_ggagg(T275, T282, X450, T276, T277)
U75_gagag(T276, T282, T275, X450, T277, pN27_out_ggagg(T275, T282, X450, T276, T277)) → pN26_out_gagag(T276, T282, T275, X450, T277)
U73_ggaag(T275, T276, X449, X450, T277, pN26_out_gagag(T276, X449, T275, X450, T277)) → pN2_out_ggaag(T275, T276, X449, X450, T277)
U20_gg(T275, T276, T277, pN2_out_ggaag(T275, T276, X449, X450, T277)) → noattackN1_out_gg(T275, .(T276, T277))
U71_gggg(T243, T257, T242, T244, noattackN1_out_gg(T242, T244)) → pN25_out_gggg(T243, T257, T242, T244)
U69_gagg(T242, T257, T243, T244, pN25_out_gggg(T243, T257, T242, T244)) → pN24_out_gagg(T242, T257, T243, T244)
U67_ggagg(T242, T249, X381, T243, T244, pN24_out_gagg(T242, X381, T243, T244)) → pN23_out_ggagg(T242, T249, X381, T243, T244)
U65_gagag(T243, T249, T242, X381, T244, pN23_out_ggagg(T242, T249, X381, T243, T244)) → pN22_out_gagag(T243, T249, T242, X381, T244)
U63_ggaag(T242, T243, X380, X381, T244, pN22_out_gagag(T243, X380, T242, X381, T244)) → pZ_out_ggaag(T242, T243, X380, X381, T244)
U19_gg(T242, T243, T244, pZ_out_ggaag(T242, T243, X380, X381, T244)) → noattackY_out_gg(T242, .(T243, T244))
U61_gggg(T210, T224, T209, T211, noattackY_out_gg(T209, T211)) → pN21_out_gggg(T210, T224, T209, T211)
U59_gagg(T209, T224, T210, T211, pN21_out_gggg(T210, T224, T209, T211)) → pN20_out_gagg(T209, T224, T210, T211)
U57_ggagg(T209, T216, X312, T210, T211, pN20_out_gagg(T209, X312, T210, T211)) → pN19_out_ggagg(T209, T216, X312, T210, T211)
U55_gagag(T210, T216, T209, X312, T211, pN19_out_ggagg(T209, T216, X312, T210, T211)) → pN18_out_gagag(T210, T216, T209, X312, T211)
U53_ggaag(T209, T210, X311, X312, T211, pN18_out_gagag(T210, X311, T209, X312, T211)) → pX_out_ggaag(T209, T210, X311, X312, T211)
U18_gg(T209, T210, T211, pX_out_ggaag(T209, T210, X311, X312, T211)) → noattackW_out_gg(T209, .(T210, T211))
U51_gggg(T177, T191, T176, T178, noattackW_out_gg(T176, T178)) → pN17_out_gggg(T177, T191, T176, T178)
U49_gagg(T176, T191, T177, T178, pN17_out_gggg(T177, T191, T176, T178)) → pN16_out_gagg(T176, T191, T177, T178)
U47_ggagg(T176, T183, X243, T177, T178, pN16_out_gagg(T176, X243, T177, T178)) → pN15_out_ggagg(T176, T183, X243, T177, T178)
U45_gagag(T177, T183, T176, X243, T178, pN15_out_ggagg(T176, T183, X243, T177, T178)) → pN14_out_gagag(T177, T183, T176, X243, T178)
U43_ggaag(T176, T177, X242, X243, T178, pN14_out_gagag(T177, X242, T176, X243, T178)) → pV_out_ggaag(T176, T177, X242, X243, T178)
U17_gg(T176, T177, T178, pV_out_ggaag(T176, T177, X242, X243, T178)) → noattackU_out_gg(T176, .(T177, T178))
U41_gggg(T126, T158, T125, T127, noattackU_out_gg(T125, T127)) → pN13_out_gggg(T126, T158, T125, T127)
U39_gagg(T125, T158, T126, T127, pN13_out_gggg(T126, T158, T125, T127)) → pN12_out_gagg(T125, T158, T126, T127)
U37_ggagg(T125, T150, X156, T126, T127, pN12_out_gagg(T125, X156, T126, T127)) → pN11_out_ggagg(T125, T150, X156, T126, T127)
U35_gagag(T126, T150, T125, X156, T127, pN11_out_ggagg(T125, T150, X156, T126, T127)) → pN10_out_gagag(T126, T150, T125, X156, T127)
U33_ggaag(T125, T126, X155, X156, T127, pN10_out_gagag(T126, X155, T125, X156, T127)) → pS_out_ggaag(T125, T126, X155, X156, T127)
U15_gg(T125, T126, T127, pS_out_ggaag(T125, T126, X155, X156, T127)) → noattackR_out_gg(T125, .(T126, T127))
U30_gg(T108, T109, noattackR_out_gg(T108, T109)) → U31_gg(T108, T109, safeT_in_g(T109))
safeT_in_g([]) → safeT_out_g([])
safeT_in_g(.(T427, T428)) → U16_g(T427, T428, pQ_in_gg(T427, T428))
U16_g(T427, T428, pQ_out_gg(T427, T428)) → safeT_out_g(.(T427, T428))
U31_gg(T108, T109, safeT_out_g(T109)) → pQ_out_gg(T108, T109)
U14_gg(T108, T109, pQ_out_gg(T108, T109)) → safeP_out_gg(T108, T109)
U27_gag(T20, T77, T22, safeP_out_gg(T22, T77)) → pN9_out_gag(T20, T77, T22)
U25_agaa(T22, T15, T20, T21, pN9_out_gag(T20, T21, T22)) → pB_out_agaa(T22, T15, T20, T21)
U1_a(T11, T12, pB_out_agaa(T11, .(s(s(0)), .(s(s(s(0))), .(s(s(s(s(0)))), .(s(s(s(s(s(0))))), .(s(s(s(s(s(s(0)))))), .(s(s(s(s(s(s(s(0))))))), .(s(s(s(s(s(s(s(s(0)))))))), []))))))), X16, T12)) → queensA_out_a(.(T11, T12))
ADDN_IN_GGA(s(T408), T409, s(X684)) → ADDN_IN_GGA(T408, T409, X684)
queensA_in_a(.(T11, T12)) → U1_a(T11, T12, pB_in_agaa(T11, .(s(s(0)), .(s(s(s(0))), .(s(s(s(s(0)))), .(s(s(s(s(s(0))))), .(s(s(s(s(s(s(0)))))), .(s(s(s(s(s(s(s(0))))))), .(s(s(s(s(s(s(s(s(0)))))))), []))))))), X16, T12))
pB_in_agaa(T22, T15, T20, T21) → U24_agaa(T22, T15, T20, T21, deleteO_in_aga(T22, T15, T20))
deleteO_in_aga(s(0), T36, T36) → deleteO_out_aga(s(0), T36, T36)
deleteO_in_aga(T48, T47, .(s(0), X57)) → U13_aga(T48, T47, X57, deleteC_in_aga(T48, T47, X57))
deleteC_in_aga(T61, .(T61, T62), T62) → deleteC_out_aga(T61, .(T61, T62), T62)
deleteC_in_aga(T72, .(T70, T71), .(T70, X86)) → U2_aga(T72, T70, T71, X86, deleteC_in_aga(T72, T71, X86))
U2_aga(T72, T70, T71, X86, deleteC_out_aga(T72, T71, X86)) → deleteC_out_aga(T72, .(T70, T71), .(T70, X86))
U13_aga(T48, T47, X57, deleteC_out_aga(T48, T47, X57)) → deleteO_out_aga(T48, T47, .(s(0), X57))
U24_agaa(T22, T15, T20, T21, deleteO_out_aga(T22, T15, T20)) → U25_agaa(T22, T15, T20, T21, pN9_in_gag(T20, T21, T22))
pN9_in_gag(T20, T77, T22) → U26_gag(T20, T77, T22, permD_in_ga(T20, T77))
permD_in_ga([], []) → permD_out_ga([], [])
permD_in_ga(.(T86, T87), .(T90, T91)) → U3_ga(T86, T87, T90, T91, pE_in_aggaa(T90, T86, T87, X104, T91))
pE_in_aggaa(T90, T86, T87, T96, T97) → U28_aggaa(T90, T86, T87, T96, T97, deleteC_in_aga(T90, .(T86, T87), T96))
U28_aggaa(T90, T86, T87, T96, T97, deleteC_out_aga(T90, .(T86, T87), T96)) → U29_aggaa(T90, T86, T87, T96, T97, permD_in_ga(T96, T97))
U29_aggaa(T90, T86, T87, T96, T97, permD_out_ga(T96, T97)) → pE_out_aggaa(T90, T86, T87, T96, T97)
U3_ga(T86, T87, T90, T91, pE_out_aggaa(T90, T86, T87, X104, T91)) → permD_out_ga(.(T86, T87), .(T90, T91))
U26_gag(T20, T77, T22, permD_out_ga(T20, T77)) → U27_gag(T20, T77, T22, safeP_in_gg(T22, T77))
safeP_in_gg(T108, T109) → U14_gg(T108, T109, pQ_in_gg(T108, T109))
pQ_in_gg(T108, T109) → U30_gg(T108, T109, noattackR_in_gg(T108, T109))
noattackR_in_gg(T118, []) → noattackR_out_gg(T118, [])
noattackR_in_gg(T125, .(T126, T127)) → U15_gg(T125, T126, T127, pS_in_ggaag(T125, T126, X155, X156, T127))
pS_in_ggaag(T125, T126, X155, X156, T127) → U32_ggaag(T125, T126, X155, X156, T127, notEqF_in_gg(T125, T126))
notEqF_in_gg(0, s(T136)) → notEqF_out_gg(0, s(T136))
notEqF_in_gg(s(T141), 0) → notEqF_out_gg(s(T141), 0)
notEqF_in_gg(s(T146), s(T147)) → U4_gg(T146, T147, notEqF_in_gg(T146, T147))
U4_gg(T146, T147, notEqF_out_gg(T146, T147)) → notEqF_out_gg(s(T146), s(T147))
U32_ggaag(T125, T126, X155, X156, T127, notEqF_out_gg(T125, T126)) → U33_ggaag(T125, T126, X155, X156, T127, pN10_in_gagag(T126, X155, T125, X156, T127))
pN10_in_gagag(T126, T150, T125, X156, T127) → U34_gagag(T126, T150, T125, X156, T127, addG_in_ga(T126, T150))
addG_in_ga(0, s(0)) → addG_out_ga(0, s(0))
addG_in_ga(s(T153), s(X199)) → U5_ga(T153, X199, addG_in_ga(T153, X199))
U5_ga(T153, X199, addG_out_ga(T153, X199)) → addG_out_ga(s(T153), s(X199))
U34_gagag(T126, T150, T125, X156, T127, addG_out_ga(T126, T150)) → U35_gagag(T126, T150, T125, X156, T127, pN11_in_ggagg(T125, T150, X156, T126, T127))
pN11_in_ggagg(T125, T150, X156, T126, T127) → U36_ggagg(T125, T150, X156, T126, T127, notEqF_in_gg(T125, T150))
U36_ggagg(T125, T150, X156, T126, T127, notEqF_out_gg(T125, T150)) → U37_ggagg(T125, T150, X156, T126, T127, pN12_in_gagg(T125, X156, T126, T127))
pN12_in_gagg(T125, T158, T126, T127) → U38_gagg(T125, T158, T126, T127, addG_in_ga(T125, T158))
U38_gagg(T125, T158, T126, T127, addG_out_ga(T125, T158)) → U39_gagg(T125, T158, T126, T127, pN13_in_gggg(T126, T158, T125, T127))
pN13_in_gggg(T126, T158, T125, T127) → U40_gggg(T126, T158, T125, T127, notEqF_in_gg(T126, T158))
U40_gggg(T126, T158, T125, T127, notEqF_out_gg(T126, T158)) → U41_gggg(T126, T158, T125, T127, noattackU_in_gg(T125, T127))
noattackU_in_gg(T169, []) → noattackU_out_gg(T169, [])
noattackU_in_gg(T176, .(T177, T178)) → U17_gg(T176, T177, T178, pV_in_ggaag(T176, T177, X242, X243, T178))
pV_in_ggaag(T176, T177, X242, X243, T178) → U42_ggaag(T176, T177, X242, X243, T178, notEqF_in_gg(T176, T177))
U42_ggaag(T176, T177, X242, X243, T178, notEqF_out_gg(T176, T177)) → U43_ggaag(T176, T177, X242, X243, T178, pN14_in_gagag(T177, X242, T176, X243, T178))
pN14_in_gagag(T177, T183, T176, X243, T178) → U44_gagag(T177, T183, T176, X243, T178, addH_in_ga(T177, T183))
addH_in_ga(0, s(s(0))) → addH_out_ga(0, s(s(0)))
addH_in_ga(s(T186), s(X268)) → U6_ga(T186, X268, addH_in_ga(T186, X268))
U6_ga(T186, X268, addH_out_ga(T186, X268)) → addH_out_ga(s(T186), s(X268))
U44_gagag(T177, T183, T176, X243, T178, addH_out_ga(T177, T183)) → U45_gagag(T177, T183, T176, X243, T178, pN15_in_ggagg(T176, T183, X243, T177, T178))
pN15_in_ggagg(T176, T183, X243, T177, T178) → U46_ggagg(T176, T183, X243, T177, T178, notEqF_in_gg(T176, T183))
U46_ggagg(T176, T183, X243, T177, T178, notEqF_out_gg(T176, T183)) → U47_ggagg(T176, T183, X243, T177, T178, pN16_in_gagg(T176, X243, T177, T178))
pN16_in_gagg(T176, T191, T177, T178) → U48_gagg(T176, T191, T177, T178, addH_in_ga(T176, T191))
U48_gagg(T176, T191, T177, T178, addH_out_ga(T176, T191)) → U49_gagg(T176, T191, T177, T178, pN17_in_gggg(T177, T191, T176, T178))
pN17_in_gggg(T177, T191, T176, T178) → U50_gggg(T177, T191, T176, T178, notEqF_in_gg(T177, T191))
U50_gggg(T177, T191, T176, T178, notEqF_out_gg(T177, T191)) → U51_gggg(T177, T191, T176, T178, noattackW_in_gg(T176, T178))
noattackW_in_gg(T202, []) → noattackW_out_gg(T202, [])
noattackW_in_gg(T209, .(T210, T211)) → U18_gg(T209, T210, T211, pX_in_ggaag(T209, T210, X311, X312, T211))
pX_in_ggaag(T209, T210, X311, X312, T211) → U52_ggaag(T209, T210, X311, X312, T211, notEqF_in_gg(T209, T210))
U52_ggaag(T209, T210, X311, X312, T211, notEqF_out_gg(T209, T210)) → U53_ggaag(T209, T210, X311, X312, T211, pN18_in_gagag(T210, X311, T209, X312, T211))
pN18_in_gagag(T210, T216, T209, X312, T211) → U54_gagag(T210, T216, T209, X312, T211, addI_in_ga(T210, T216))
addI_in_ga(0, s(s(s(0)))) → addI_out_ga(0, s(s(s(0))))
addI_in_ga(s(T219), s(X337)) → U7_ga(T219, X337, addI_in_ga(T219, X337))
U7_ga(T219, X337, addI_out_ga(T219, X337)) → addI_out_ga(s(T219), s(X337))
U54_gagag(T210, T216, T209, X312, T211, addI_out_ga(T210, T216)) → U55_gagag(T210, T216, T209, X312, T211, pN19_in_ggagg(T209, T216, X312, T210, T211))
pN19_in_ggagg(T209, T216, X312, T210, T211) → U56_ggagg(T209, T216, X312, T210, T211, notEqF_in_gg(T209, T216))
U56_ggagg(T209, T216, X312, T210, T211, notEqF_out_gg(T209, T216)) → U57_ggagg(T209, T216, X312, T210, T211, pN20_in_gagg(T209, X312, T210, T211))
pN20_in_gagg(T209, T224, T210, T211) → U58_gagg(T209, T224, T210, T211, addI_in_ga(T209, T224))
U58_gagg(T209, T224, T210, T211, addI_out_ga(T209, T224)) → U59_gagg(T209, T224, T210, T211, pN21_in_gggg(T210, T224, T209, T211))
pN21_in_gggg(T210, T224, T209, T211) → U60_gggg(T210, T224, T209, T211, notEqF_in_gg(T210, T224))
U60_gggg(T210, T224, T209, T211, notEqF_out_gg(T210, T224)) → U61_gggg(T210, T224, T209, T211, noattackY_in_gg(T209, T211))
noattackY_in_gg(T235, []) → noattackY_out_gg(T235, [])
noattackY_in_gg(T242, .(T243, T244)) → U19_gg(T242, T243, T244, pZ_in_ggaag(T242, T243, X380, X381, T244))
pZ_in_ggaag(T242, T243, X380, X381, T244) → U62_ggaag(T242, T243, X380, X381, T244, notEqF_in_gg(T242, T243))
U62_ggaag(T242, T243, X380, X381, T244, notEqF_out_gg(T242, T243)) → U63_ggaag(T242, T243, X380, X381, T244, pN22_in_gagag(T243, X380, T242, X381, T244))
pN22_in_gagag(T243, T249, T242, X381, T244) → U64_gagag(T243, T249, T242, X381, T244, addJ_in_ga(T243, T249))
addJ_in_ga(0, s(s(s(s(0))))) → addJ_out_ga(0, s(s(s(s(0)))))
addJ_in_ga(s(T252), s(X406)) → U8_ga(T252, X406, addJ_in_ga(T252, X406))
U8_ga(T252, X406, addJ_out_ga(T252, X406)) → addJ_out_ga(s(T252), s(X406))
U64_gagag(T243, T249, T242, X381, T244, addJ_out_ga(T243, T249)) → U65_gagag(T243, T249, T242, X381, T244, pN23_in_ggagg(T242, T249, X381, T243, T244))
pN23_in_ggagg(T242, T249, X381, T243, T244) → U66_ggagg(T242, T249, X381, T243, T244, notEqF_in_gg(T242, T249))
U66_ggagg(T242, T249, X381, T243, T244, notEqF_out_gg(T242, T249)) → U67_ggagg(T242, T249, X381, T243, T244, pN24_in_gagg(T242, X381, T243, T244))
pN24_in_gagg(T242, T257, T243, T244) → U68_gagg(T242, T257, T243, T244, addJ_in_ga(T242, T257))
U68_gagg(T242, T257, T243, T244, addJ_out_ga(T242, T257)) → U69_gagg(T242, T257, T243, T244, pN25_in_gggg(T243, T257, T242, T244))
pN25_in_gggg(T243, T257, T242, T244) → U70_gggg(T243, T257, T242, T244, notEqF_in_gg(T243, T257))
U70_gggg(T243, T257, T242, T244, notEqF_out_gg(T243, T257)) → U71_gggg(T243, T257, T242, T244, noattackN1_in_gg(T242, T244))
noattackN1_in_gg(T268, []) → noattackN1_out_gg(T268, [])
noattackN1_in_gg(T275, .(T276, T277)) → U20_gg(T275, T276, T277, pN2_in_ggaag(T275, T276, X449, X450, T277))
pN2_in_ggaag(T275, T276, X449, X450, T277) → U72_ggaag(T275, T276, X449, X450, T277, notEqF_in_gg(T275, T276))
U72_ggaag(T275, T276, X449, X450, T277, notEqF_out_gg(T275, T276)) → U73_ggaag(T275, T276, X449, X450, T277, pN26_in_gagag(T276, X449, T275, X450, T277))
pN26_in_gagag(T276, T282, T275, X450, T277) → U74_gagag(T276, T282, T275, X450, T277, addK_in_ga(T276, T282))
addK_in_ga(0, s(s(s(s(s(0)))))) → addK_out_ga(0, s(s(s(s(s(0))))))
addK_in_ga(s(T285), s(X475)) → U9_ga(T285, X475, addK_in_ga(T285, X475))
U9_ga(T285, X475, addK_out_ga(T285, X475)) → addK_out_ga(s(T285), s(X475))
U74_gagag(T276, T282, T275, X450, T277, addK_out_ga(T276, T282)) → U75_gagag(T276, T282, T275, X450, T277, pN27_in_ggagg(T275, T282, X450, T276, T277))
pN27_in_ggagg(T275, T282, X450, T276, T277) → U76_ggagg(T275, T282, X450, T276, T277, notEqF_in_gg(T275, T282))
U76_ggagg(T275, T282, X450, T276, T277, notEqF_out_gg(T275, T282)) → U77_ggagg(T275, T282, X450, T276, T277, pN28_in_gagg(T275, X450, T276, T277))
pN28_in_gagg(T275, T290, T276, T277) → U78_gagg(T275, T290, T276, T277, addK_in_ga(T275, T290))
U78_gagg(T275, T290, T276, T277, addK_out_ga(T275, T290)) → U79_gagg(T275, T290, T276, T277, pN29_in_gggg(T276, T290, T275, T277))
pN29_in_gggg(T276, T290, T275, T277) → U80_gggg(T276, T290, T275, T277, notEqF_in_gg(T276, T290))
U80_gggg(T276, T290, T275, T277, notEqF_out_gg(T276, T290)) → U81_gggg(T276, T290, T275, T277, noattackN3_in_gg(T275, T277))
noattackN3_in_gg(T301, []) → noattackN3_out_gg(T301, [])
noattackN3_in_gg(T308, .(T309, T310)) → U21_gg(T308, T309, T310, pN4_in_ggaag(T308, T309, X518, X519, T310))
pN4_in_ggaag(T308, T309, X518, X519, T310) → U82_ggaag(T308, T309, X518, X519, T310, notEqF_in_gg(T308, T309))
U82_ggaag(T308, T309, X518, X519, T310, notEqF_out_gg(T308, T309)) → U83_ggaag(T308, T309, X518, X519, T310, pN30_in_gagag(T309, X518, T308, X519, T310))
pN30_in_gagag(T309, T315, T308, X519, T310) → U84_gagag(T309, T315, T308, X519, T310, addL_in_ga(T309, T315))
addL_in_ga(0, s(s(s(s(s(s(0))))))) → addL_out_ga(0, s(s(s(s(s(s(0)))))))
addL_in_ga(s(T318), s(X544)) → U10_ga(T318, X544, addL_in_ga(T318, X544))
U10_ga(T318, X544, addL_out_ga(T318, X544)) → addL_out_ga(s(T318), s(X544))
U84_gagag(T309, T315, T308, X519, T310, addL_out_ga(T309, T315)) → U85_gagag(T309, T315, T308, X519, T310, pN31_in_ggagg(T308, T315, X519, T309, T310))
pN31_in_ggagg(T308, T315, X519, T309, T310) → U86_ggagg(T308, T315, X519, T309, T310, notEqF_in_gg(T308, T315))
U86_ggagg(T308, T315, X519, T309, T310, notEqF_out_gg(T308, T315)) → U87_ggagg(T308, T315, X519, T309, T310, pN32_in_gagg(T308, X519, T309, T310))
pN32_in_gagg(T308, T323, T309, T310) → U88_gagg(T308, T323, T309, T310, addL_in_ga(T308, T323))
U88_gagg(T308, T323, T309, T310, addL_out_ga(T308, T323)) → U89_gagg(T308, T323, T309, T310, pN33_in_gggg(T309, T323, T308, T310))
pN33_in_gggg(T309, T323, T308, T310) → U90_gggg(T309, T323, T308, T310, notEqF_in_gg(T309, T323))
U90_gggg(T309, T323, T308, T310, notEqF_out_gg(T309, T323)) → U91_gggg(T309, T323, T308, T310, noattackN5_in_gg(T308, T310))
noattackN5_in_gg(T334, []) → noattackN5_out_gg(T334, [])
noattackN5_in_gg(T341, .(T342, T343)) → U22_gg(T341, T342, T343, pN6_in_ggaagg(T341, T342, X587, X588, T343, s(s(s(s(s(s(s(0)))))))))
pN6_in_ggaagg(T341, T342, X587, X588, T343, T346) → U92_ggaagg(T341, T342, X587, X588, T343, T346, notEqF_in_gg(T341, T342))
U92_ggaagg(T341, T342, X587, X588, T343, T346, notEqF_out_gg(T341, T342)) → U93_ggaagg(T341, T342, X587, X588, T343, T346, pN34_in_gagagg(T342, X587, T341, X588, T343, T346))
pN34_in_gagagg(T342, T351, T341, X588, T343, T346) → U94_gagagg(T342, T351, T341, X588, T343, T346, addM_in_ga(T342, T351))
addM_in_ga(0, s(s(s(s(s(s(s(0)))))))) → addM_out_ga(0, s(s(s(s(s(s(s(0))))))))
addM_in_ga(s(T354), s(X615)) → U11_ga(T354, X615, addM_in_ga(T354, X615))
U11_ga(T354, X615, addM_out_ga(T354, X615)) → addM_out_ga(s(T354), s(X615))
U94_gagagg(T342, T351, T341, X588, T343, T346, addM_out_ga(T342, T351)) → U95_gagagg(T342, T351, T341, X588, T343, T346, pN35_in_ggaggg(T341, T351, X588, T342, T343, T346))
pN35_in_ggaggg(T341, T351, X588, T342, T343, T346) → U96_ggaggg(T341, T351, X588, T342, T343, T346, notEqF_in_gg(T341, T351))
U96_ggaggg(T341, T351, X588, T342, T343, T346, notEqF_out_gg(T341, T351)) → U97_ggaggg(T341, T351, X588, T342, T343, T346, pN36_in_gaggg(T341, X588, T342, T343, T346))
pN36_in_gaggg(T341, T359, T342, T343, T346) → U98_gaggg(T341, T359, T342, T343, T346, addM_in_ga(T341, T359))
U98_gaggg(T341, T359, T342, T343, T346, addM_out_ga(T341, T359)) → U99_gaggg(T341, T359, T342, T343, T346, pN37_in_ggggg(T342, T359, T341, T343, T346))
pN37_in_ggggg(T342, T359, T341, T343, T346) → U100_ggggg(T342, T359, T341, T343, T346, notEqF_in_gg(T342, T359))
U100_ggggg(T342, T359, T341, T343, T346, notEqF_out_gg(T342, T359)) → U101_ggggg(T342, T359, T341, T343, T346, noattackN7_in_ggg(T341, T343, T346))
noattackN7_in_ggg(T376, [], T377) → noattackN7_out_ggg(T376, [], T377)
noattackN7_in_ggg(T386, .(T387, T388), T389) → U23_ggg(T386, T387, T388, T389, pN8_in_gggaag(T386, T387, T389, X658, X659, T388))
pN8_in_gggaag(T386, T387, T389, X658, X659, T388) → U102_gggaag(T386, T387, T389, X658, X659, T388, notEqF_in_gg(T386, T387))
U102_gggaag(T386, T387, T389, X658, X659, T388, notEqF_out_gg(T386, T387)) → U103_gggaag(T386, T387, T389, X658, X659, T388, pN38_in_ggagag(T387, T389, X658, T386, X659, T388))
pN38_in_ggagag(T387, T389, T396, T386, X659, T388) → U104_ggagag(T387, T389, T396, T386, X659, T388, addN_in_gga(T387, T389, T396))
addN_in_gga(0, T403, s(T403)) → addN_out_gga(0, T403, s(T403))
addN_in_gga(s(T408), T409, s(X684)) → U12_gga(T408, T409, X684, addN_in_gga(T408, T409, X684))
U12_gga(T408, T409, X684, addN_out_gga(T408, T409, X684)) → addN_out_gga(s(T408), T409, s(X684))
U104_ggagag(T387, T389, T396, T386, X659, T388, addN_out_gga(T387, T389, T396)) → U105_ggagag(T387, T389, T396, T386, X659, T388, pN39_in_gggagg(T386, T396, T389, X659, T387, T388))
pN39_in_gggagg(T386, T396, T389, X659, T387, T388) → U106_gggagg(T386, T396, T389, X659, T387, T388, notEqF_in_gg(T386, T396))
U106_gggagg(T386, T396, T389, X659, T387, T388, notEqF_out_gg(T386, T396)) → U107_gggagg(T386, T396, T389, X659, T387, T388, pN40_in_ggagg(T386, T389, X659, T387, T388))
pN40_in_ggagg(T386, T389, T418, T387, T388) → U108_ggagg(T386, T389, T418, T387, T388, addN_in_gga(T386, T389, T418))
U108_ggagg(T386, T389, T418, T387, T388, addN_out_gga(T386, T389, T418)) → U109_ggagg(T386, T389, T418, T387, T388, pN37_in_ggggg(T387, T418, T386, T388, s(T389)))
U109_ggagg(T386, T389, T418, T387, T388, pN37_out_ggggg(T387, T418, T386, T388, s(T389))) → pN40_out_ggagg(T386, T389, T418, T387, T388)
U107_gggagg(T386, T396, T389, X659, T387, T388, pN40_out_ggagg(T386, T389, X659, T387, T388)) → pN39_out_gggagg(T386, T396, T389, X659, T387, T388)
U105_ggagag(T387, T389, T396, T386, X659, T388, pN39_out_gggagg(T386, T396, T389, X659, T387, T388)) → pN38_out_ggagag(T387, T389, T396, T386, X659, T388)
U103_gggaag(T386, T387, T389, X658, X659, T388, pN38_out_ggagag(T387, T389, X658, T386, X659, T388)) → pN8_out_gggaag(T386, T387, T389, X658, X659, T388)
U23_ggg(T386, T387, T388, T389, pN8_out_gggaag(T386, T387, T389, X658, X659, T388)) → noattackN7_out_ggg(T386, .(T387, T388), T389)
U101_ggggg(T342, T359, T341, T343, T346, noattackN7_out_ggg(T341, T343, T346)) → pN37_out_ggggg(T342, T359, T341, T343, T346)
U99_gaggg(T341, T359, T342, T343, T346, pN37_out_ggggg(T342, T359, T341, T343, T346)) → pN36_out_gaggg(T341, T359, T342, T343, T346)
U97_ggaggg(T341, T351, X588, T342, T343, T346, pN36_out_gaggg(T341, X588, T342, T343, T346)) → pN35_out_ggaggg(T341, T351, X588, T342, T343, T346)
U95_gagagg(T342, T351, T341, X588, T343, T346, pN35_out_ggaggg(T341, T351, X588, T342, T343, T346)) → pN34_out_gagagg(T342, T351, T341, X588, T343, T346)
U93_ggaagg(T341, T342, X587, X588, T343, T346, pN34_out_gagagg(T342, X587, T341, X588, T343, T346)) → pN6_out_ggaagg(T341, T342, X587, X588, T343, T346)
U22_gg(T341, T342, T343, pN6_out_ggaagg(T341, T342, X587, X588, T343, s(s(s(s(s(s(s(0))))))))) → noattackN5_out_gg(T341, .(T342, T343))
U91_gggg(T309, T323, T308, T310, noattackN5_out_gg(T308, T310)) → pN33_out_gggg(T309, T323, T308, T310)
U89_gagg(T308, T323, T309, T310, pN33_out_gggg(T309, T323, T308, T310)) → pN32_out_gagg(T308, T323, T309, T310)
U87_ggagg(T308, T315, X519, T309, T310, pN32_out_gagg(T308, X519, T309, T310)) → pN31_out_ggagg(T308, T315, X519, T309, T310)
U85_gagag(T309, T315, T308, X519, T310, pN31_out_ggagg(T308, T315, X519, T309, T310)) → pN30_out_gagag(T309, T315, T308, X519, T310)
U83_ggaag(T308, T309, X518, X519, T310, pN30_out_gagag(T309, X518, T308, X519, T310)) → pN4_out_ggaag(T308, T309, X518, X519, T310)
U21_gg(T308, T309, T310, pN4_out_ggaag(T308, T309, X518, X519, T310)) → noattackN3_out_gg(T308, .(T309, T310))
U81_gggg(T276, T290, T275, T277, noattackN3_out_gg(T275, T277)) → pN29_out_gggg(T276, T290, T275, T277)
U79_gagg(T275, T290, T276, T277, pN29_out_gggg(T276, T290, T275, T277)) → pN28_out_gagg(T275, T290, T276, T277)
U77_ggagg(T275, T282, X450, T276, T277, pN28_out_gagg(T275, X450, T276, T277)) → pN27_out_ggagg(T275, T282, X450, T276, T277)
U75_gagag(T276, T282, T275, X450, T277, pN27_out_ggagg(T275, T282, X450, T276, T277)) → pN26_out_gagag(T276, T282, T275, X450, T277)
U73_ggaag(T275, T276, X449, X450, T277, pN26_out_gagag(T276, X449, T275, X450, T277)) → pN2_out_ggaag(T275, T276, X449, X450, T277)
U20_gg(T275, T276, T277, pN2_out_ggaag(T275, T276, X449, X450, T277)) → noattackN1_out_gg(T275, .(T276, T277))
U71_gggg(T243, T257, T242, T244, noattackN1_out_gg(T242, T244)) → pN25_out_gggg(T243, T257, T242, T244)
U69_gagg(T242, T257, T243, T244, pN25_out_gggg(T243, T257, T242, T244)) → pN24_out_gagg(T242, T257, T243, T244)
U67_ggagg(T242, T249, X381, T243, T244, pN24_out_gagg(T242, X381, T243, T244)) → pN23_out_ggagg(T242, T249, X381, T243, T244)
U65_gagag(T243, T249, T242, X381, T244, pN23_out_ggagg(T242, T249, X381, T243, T244)) → pN22_out_gagag(T243, T249, T242, X381, T244)
U63_ggaag(T242, T243, X380, X381, T244, pN22_out_gagag(T243, X380, T242, X381, T244)) → pZ_out_ggaag(T242, T243, X380, X381, T244)
U19_gg(T242, T243, T244, pZ_out_ggaag(T242, T243, X380, X381, T244)) → noattackY_out_gg(T242, .(T243, T244))
U61_gggg(T210, T224, T209, T211, noattackY_out_gg(T209, T211)) → pN21_out_gggg(T210, T224, T209, T211)
U59_gagg(T209, T224, T210, T211, pN21_out_gggg(T210, T224, T209, T211)) → pN20_out_gagg(T209, T224, T210, T211)
U57_ggagg(T209, T216, X312, T210, T211, pN20_out_gagg(T209, X312, T210, T211)) → pN19_out_ggagg(T209, T216, X312, T210, T211)
U55_gagag(T210, T216, T209, X312, T211, pN19_out_ggagg(T209, T216, X312, T210, T211)) → pN18_out_gagag(T210, T216, T209, X312, T211)
U53_ggaag(T209, T210, X311, X312, T211, pN18_out_gagag(T210, X311, T209, X312, T211)) → pX_out_ggaag(T209, T210, X311, X312, T211)
U18_gg(T209, T210, T211, pX_out_ggaag(T209, T210, X311, X312, T211)) → noattackW_out_gg(T209, .(T210, T211))
U51_gggg(T177, T191, T176, T178, noattackW_out_gg(T176, T178)) → pN17_out_gggg(T177, T191, T176, T178)
U49_gagg(T176, T191, T177, T178, pN17_out_gggg(T177, T191, T176, T178)) → pN16_out_gagg(T176, T191, T177, T178)
U47_ggagg(T176, T183, X243, T177, T178, pN16_out_gagg(T176, X243, T177, T178)) → pN15_out_ggagg(T176, T183, X243, T177, T178)
U45_gagag(T177, T183, T176, X243, T178, pN15_out_ggagg(T176, T183, X243, T177, T178)) → pN14_out_gagag(T177, T183, T176, X243, T178)
U43_ggaag(T176, T177, X242, X243, T178, pN14_out_gagag(T177, X242, T176, X243, T178)) → pV_out_ggaag(T176, T177, X242, X243, T178)
U17_gg(T176, T177, T178, pV_out_ggaag(T176, T177, X242, X243, T178)) → noattackU_out_gg(T176, .(T177, T178))
U41_gggg(T126, T158, T125, T127, noattackU_out_gg(T125, T127)) → pN13_out_gggg(T126, T158, T125, T127)
U39_gagg(T125, T158, T126, T127, pN13_out_gggg(T126, T158, T125, T127)) → pN12_out_gagg(T125, T158, T126, T127)
U37_ggagg(T125, T150, X156, T126, T127, pN12_out_gagg(T125, X156, T126, T127)) → pN11_out_ggagg(T125, T150, X156, T126, T127)
U35_gagag(T126, T150, T125, X156, T127, pN11_out_ggagg(T125, T150, X156, T126, T127)) → pN10_out_gagag(T126, T150, T125, X156, T127)
U33_ggaag(T125, T126, X155, X156, T127, pN10_out_gagag(T126, X155, T125, X156, T127)) → pS_out_ggaag(T125, T126, X155, X156, T127)
U15_gg(T125, T126, T127, pS_out_ggaag(T125, T126, X155, X156, T127)) → noattackR_out_gg(T125, .(T126, T127))
U30_gg(T108, T109, noattackR_out_gg(T108, T109)) → U31_gg(T108, T109, safeT_in_g(T109))
safeT_in_g([]) → safeT_out_g([])
safeT_in_g(.(T427, T428)) → U16_g(T427, T428, pQ_in_gg(T427, T428))
U16_g(T427, T428, pQ_out_gg(T427, T428)) → safeT_out_g(.(T427, T428))
U31_gg(T108, T109, safeT_out_g(T109)) → pQ_out_gg(T108, T109)
U14_gg(T108, T109, pQ_out_gg(T108, T109)) → safeP_out_gg(T108, T109)
U27_gag(T20, T77, T22, safeP_out_gg(T22, T77)) → pN9_out_gag(T20, T77, T22)
U25_agaa(T22, T15, T20, T21, pN9_out_gag(T20, T21, T22)) → pB_out_agaa(T22, T15, T20, T21)
U1_a(T11, T12, pB_out_agaa(T11, .(s(s(0)), .(s(s(s(0))), .(s(s(s(s(0)))), .(s(s(s(s(s(0))))), .(s(s(s(s(s(s(0)))))), .(s(s(s(s(s(s(s(0))))))), .(s(s(s(s(s(s(s(s(0)))))))), []))))))), X16, T12)) → queensA_out_a(.(T11, T12))
ADDN_IN_GGA(s(T408), T409, s(X684)) → ADDN_IN_GGA(T408, T409, X684)
ADDN_IN_GGA(s(T408), T409) → ADDN_IN_GGA(T408, T409)
From the DPs we obtained the following set of size-change graphs:
ADDM_IN_GA(s(T354), s(X615)) → ADDM_IN_GA(T354, X615)
queensA_in_a(.(T11, T12)) → U1_a(T11, T12, pB_in_agaa(T11, .(s(s(0)), .(s(s(s(0))), .(s(s(s(s(0)))), .(s(s(s(s(s(0))))), .(s(s(s(s(s(s(0)))))), .(s(s(s(s(s(s(s(0))))))), .(s(s(s(s(s(s(s(s(0)))))))), []))))))), X16, T12))
pB_in_agaa(T22, T15, T20, T21) → U24_agaa(T22, T15, T20, T21, deleteO_in_aga(T22, T15, T20))
deleteO_in_aga(s(0), T36, T36) → deleteO_out_aga(s(0), T36, T36)
deleteO_in_aga(T48, T47, .(s(0), X57)) → U13_aga(T48, T47, X57, deleteC_in_aga(T48, T47, X57))
deleteC_in_aga(T61, .(T61, T62), T62) → deleteC_out_aga(T61, .(T61, T62), T62)
deleteC_in_aga(T72, .(T70, T71), .(T70, X86)) → U2_aga(T72, T70, T71, X86, deleteC_in_aga(T72, T71, X86))
U2_aga(T72, T70, T71, X86, deleteC_out_aga(T72, T71, X86)) → deleteC_out_aga(T72, .(T70, T71), .(T70, X86))
U13_aga(T48, T47, X57, deleteC_out_aga(T48, T47, X57)) → deleteO_out_aga(T48, T47, .(s(0), X57))
U24_agaa(T22, T15, T20, T21, deleteO_out_aga(T22, T15, T20)) → U25_agaa(T22, T15, T20, T21, pN9_in_gag(T20, T21, T22))
pN9_in_gag(T20, T77, T22) → U26_gag(T20, T77, T22, permD_in_ga(T20, T77))
permD_in_ga([], []) → permD_out_ga([], [])
permD_in_ga(.(T86, T87), .(T90, T91)) → U3_ga(T86, T87, T90, T91, pE_in_aggaa(T90, T86, T87, X104, T91))
pE_in_aggaa(T90, T86, T87, T96, T97) → U28_aggaa(T90, T86, T87, T96, T97, deleteC_in_aga(T90, .(T86, T87), T96))
U28_aggaa(T90, T86, T87, T96, T97, deleteC_out_aga(T90, .(T86, T87), T96)) → U29_aggaa(T90, T86, T87, T96, T97, permD_in_ga(T96, T97))
U29_aggaa(T90, T86, T87, T96, T97, permD_out_ga(T96, T97)) → pE_out_aggaa(T90, T86, T87, T96, T97)
U3_ga(T86, T87, T90, T91, pE_out_aggaa(T90, T86, T87, X104, T91)) → permD_out_ga(.(T86, T87), .(T90, T91))
U26_gag(T20, T77, T22, permD_out_ga(T20, T77)) → U27_gag(T20, T77, T22, safeP_in_gg(T22, T77))
safeP_in_gg(T108, T109) → U14_gg(T108, T109, pQ_in_gg(T108, T109))
pQ_in_gg(T108, T109) → U30_gg(T108, T109, noattackR_in_gg(T108, T109))
noattackR_in_gg(T118, []) → noattackR_out_gg(T118, [])
noattackR_in_gg(T125, .(T126, T127)) → U15_gg(T125, T126, T127, pS_in_ggaag(T125, T126, X155, X156, T127))
pS_in_ggaag(T125, T126, X155, X156, T127) → U32_ggaag(T125, T126, X155, X156, T127, notEqF_in_gg(T125, T126))
notEqF_in_gg(0, s(T136)) → notEqF_out_gg(0, s(T136))
notEqF_in_gg(s(T141), 0) → notEqF_out_gg(s(T141), 0)
notEqF_in_gg(s(T146), s(T147)) → U4_gg(T146, T147, notEqF_in_gg(T146, T147))
U4_gg(T146, T147, notEqF_out_gg(T146, T147)) → notEqF_out_gg(s(T146), s(T147))
U32_ggaag(T125, T126, X155, X156, T127, notEqF_out_gg(T125, T126)) → U33_ggaag(T125, T126, X155, X156, T127, pN10_in_gagag(T126, X155, T125, X156, T127))
pN10_in_gagag(T126, T150, T125, X156, T127) → U34_gagag(T126, T150, T125, X156, T127, addG_in_ga(T126, T150))
addG_in_ga(0, s(0)) → addG_out_ga(0, s(0))
addG_in_ga(s(T153), s(X199)) → U5_ga(T153, X199, addG_in_ga(T153, X199))
U5_ga(T153, X199, addG_out_ga(T153, X199)) → addG_out_ga(s(T153), s(X199))
U34_gagag(T126, T150, T125, X156, T127, addG_out_ga(T126, T150)) → U35_gagag(T126, T150, T125, X156, T127, pN11_in_ggagg(T125, T150, X156, T126, T127))
pN11_in_ggagg(T125, T150, X156, T126, T127) → U36_ggagg(T125, T150, X156, T126, T127, notEqF_in_gg(T125, T150))
U36_ggagg(T125, T150, X156, T126, T127, notEqF_out_gg(T125, T150)) → U37_ggagg(T125, T150, X156, T126, T127, pN12_in_gagg(T125, X156, T126, T127))
pN12_in_gagg(T125, T158, T126, T127) → U38_gagg(T125, T158, T126, T127, addG_in_ga(T125, T158))
U38_gagg(T125, T158, T126, T127, addG_out_ga(T125, T158)) → U39_gagg(T125, T158, T126, T127, pN13_in_gggg(T126, T158, T125, T127))
pN13_in_gggg(T126, T158, T125, T127) → U40_gggg(T126, T158, T125, T127, notEqF_in_gg(T126, T158))
U40_gggg(T126, T158, T125, T127, notEqF_out_gg(T126, T158)) → U41_gggg(T126, T158, T125, T127, noattackU_in_gg(T125, T127))
noattackU_in_gg(T169, []) → noattackU_out_gg(T169, [])
noattackU_in_gg(T176, .(T177, T178)) → U17_gg(T176, T177, T178, pV_in_ggaag(T176, T177, X242, X243, T178))
pV_in_ggaag(T176, T177, X242, X243, T178) → U42_ggaag(T176, T177, X242, X243, T178, notEqF_in_gg(T176, T177))
U42_ggaag(T176, T177, X242, X243, T178, notEqF_out_gg(T176, T177)) → U43_ggaag(T176, T177, X242, X243, T178, pN14_in_gagag(T177, X242, T176, X243, T178))
pN14_in_gagag(T177, T183, T176, X243, T178) → U44_gagag(T177, T183, T176, X243, T178, addH_in_ga(T177, T183))
addH_in_ga(0, s(s(0))) → addH_out_ga(0, s(s(0)))
addH_in_ga(s(T186), s(X268)) → U6_ga(T186, X268, addH_in_ga(T186, X268))
U6_ga(T186, X268, addH_out_ga(T186, X268)) → addH_out_ga(s(T186), s(X268))
U44_gagag(T177, T183, T176, X243, T178, addH_out_ga(T177, T183)) → U45_gagag(T177, T183, T176, X243, T178, pN15_in_ggagg(T176, T183, X243, T177, T178))
pN15_in_ggagg(T176, T183, X243, T177, T178) → U46_ggagg(T176, T183, X243, T177, T178, notEqF_in_gg(T176, T183))
U46_ggagg(T176, T183, X243, T177, T178, notEqF_out_gg(T176, T183)) → U47_ggagg(T176, T183, X243, T177, T178, pN16_in_gagg(T176, X243, T177, T178))
pN16_in_gagg(T176, T191, T177, T178) → U48_gagg(T176, T191, T177, T178, addH_in_ga(T176, T191))
U48_gagg(T176, T191, T177, T178, addH_out_ga(T176, T191)) → U49_gagg(T176, T191, T177, T178, pN17_in_gggg(T177, T191, T176, T178))
pN17_in_gggg(T177, T191, T176, T178) → U50_gggg(T177, T191, T176, T178, notEqF_in_gg(T177, T191))
U50_gggg(T177, T191, T176, T178, notEqF_out_gg(T177, T191)) → U51_gggg(T177, T191, T176, T178, noattackW_in_gg(T176, T178))
noattackW_in_gg(T202, []) → noattackW_out_gg(T202, [])
noattackW_in_gg(T209, .(T210, T211)) → U18_gg(T209, T210, T211, pX_in_ggaag(T209, T210, X311, X312, T211))
pX_in_ggaag(T209, T210, X311, X312, T211) → U52_ggaag(T209, T210, X311, X312, T211, notEqF_in_gg(T209, T210))
U52_ggaag(T209, T210, X311, X312, T211, notEqF_out_gg(T209, T210)) → U53_ggaag(T209, T210, X311, X312, T211, pN18_in_gagag(T210, X311, T209, X312, T211))
pN18_in_gagag(T210, T216, T209, X312, T211) → U54_gagag(T210, T216, T209, X312, T211, addI_in_ga(T210, T216))
addI_in_ga(0, s(s(s(0)))) → addI_out_ga(0, s(s(s(0))))
addI_in_ga(s(T219), s(X337)) → U7_ga(T219, X337, addI_in_ga(T219, X337))
U7_ga(T219, X337, addI_out_ga(T219, X337)) → addI_out_ga(s(T219), s(X337))
U54_gagag(T210, T216, T209, X312, T211, addI_out_ga(T210, T216)) → U55_gagag(T210, T216, T209, X312, T211, pN19_in_ggagg(T209, T216, X312, T210, T211))
pN19_in_ggagg(T209, T216, X312, T210, T211) → U56_ggagg(T209, T216, X312, T210, T211, notEqF_in_gg(T209, T216))
U56_ggagg(T209, T216, X312, T210, T211, notEqF_out_gg(T209, T216)) → U57_ggagg(T209, T216, X312, T210, T211, pN20_in_gagg(T209, X312, T210, T211))
pN20_in_gagg(T209, T224, T210, T211) → U58_gagg(T209, T224, T210, T211, addI_in_ga(T209, T224))
U58_gagg(T209, T224, T210, T211, addI_out_ga(T209, T224)) → U59_gagg(T209, T224, T210, T211, pN21_in_gggg(T210, T224, T209, T211))
pN21_in_gggg(T210, T224, T209, T211) → U60_gggg(T210, T224, T209, T211, notEqF_in_gg(T210, T224))
U60_gggg(T210, T224, T209, T211, notEqF_out_gg(T210, T224)) → U61_gggg(T210, T224, T209, T211, noattackY_in_gg(T209, T211))
noattackY_in_gg(T235, []) → noattackY_out_gg(T235, [])
noattackY_in_gg(T242, .(T243, T244)) → U19_gg(T242, T243, T244, pZ_in_ggaag(T242, T243, X380, X381, T244))
pZ_in_ggaag(T242, T243, X380, X381, T244) → U62_ggaag(T242, T243, X380, X381, T244, notEqF_in_gg(T242, T243))
U62_ggaag(T242, T243, X380, X381, T244, notEqF_out_gg(T242, T243)) → U63_ggaag(T242, T243, X380, X381, T244, pN22_in_gagag(T243, X380, T242, X381, T244))
pN22_in_gagag(T243, T249, T242, X381, T244) → U64_gagag(T243, T249, T242, X381, T244, addJ_in_ga(T243, T249))
addJ_in_ga(0, s(s(s(s(0))))) → addJ_out_ga(0, s(s(s(s(0)))))
addJ_in_ga(s(T252), s(X406)) → U8_ga(T252, X406, addJ_in_ga(T252, X406))
U8_ga(T252, X406, addJ_out_ga(T252, X406)) → addJ_out_ga(s(T252), s(X406))
U64_gagag(T243, T249, T242, X381, T244, addJ_out_ga(T243, T249)) → U65_gagag(T243, T249, T242, X381, T244, pN23_in_ggagg(T242, T249, X381, T243, T244))
pN23_in_ggagg(T242, T249, X381, T243, T244) → U66_ggagg(T242, T249, X381, T243, T244, notEqF_in_gg(T242, T249))
U66_ggagg(T242, T249, X381, T243, T244, notEqF_out_gg(T242, T249)) → U67_ggagg(T242, T249, X381, T243, T244, pN24_in_gagg(T242, X381, T243, T244))
pN24_in_gagg(T242, T257, T243, T244) → U68_gagg(T242, T257, T243, T244, addJ_in_ga(T242, T257))
U68_gagg(T242, T257, T243, T244, addJ_out_ga(T242, T257)) → U69_gagg(T242, T257, T243, T244, pN25_in_gggg(T243, T257, T242, T244))
pN25_in_gggg(T243, T257, T242, T244) → U70_gggg(T243, T257, T242, T244, notEqF_in_gg(T243, T257))
U70_gggg(T243, T257, T242, T244, notEqF_out_gg(T243, T257)) → U71_gggg(T243, T257, T242, T244, noattackN1_in_gg(T242, T244))
noattackN1_in_gg(T268, []) → noattackN1_out_gg(T268, [])
noattackN1_in_gg(T275, .(T276, T277)) → U20_gg(T275, T276, T277, pN2_in_ggaag(T275, T276, X449, X450, T277))
pN2_in_ggaag(T275, T276, X449, X450, T277) → U72_ggaag(T275, T276, X449, X450, T277, notEqF_in_gg(T275, T276))
U72_ggaag(T275, T276, X449, X450, T277, notEqF_out_gg(T275, T276)) → U73_ggaag(T275, T276, X449, X450, T277, pN26_in_gagag(T276, X449, T275, X450, T277))
pN26_in_gagag(T276, T282, T275, X450, T277) → U74_gagag(T276, T282, T275, X450, T277, addK_in_ga(T276, T282))
addK_in_ga(0, s(s(s(s(s(0)))))) → addK_out_ga(0, s(s(s(s(s(0))))))
addK_in_ga(s(T285), s(X475)) → U9_ga(T285, X475, addK_in_ga(T285, X475))
U9_ga(T285, X475, addK_out_ga(T285, X475)) → addK_out_ga(s(T285), s(X475))
U74_gagag(T276, T282, T275, X450, T277, addK_out_ga(T276, T282)) → U75_gagag(T276, T282, T275, X450, T277, pN27_in_ggagg(T275, T282, X450, T276, T277))
pN27_in_ggagg(T275, T282, X450, T276, T277) → U76_ggagg(T275, T282, X450, T276, T277, notEqF_in_gg(T275, T282))
U76_ggagg(T275, T282, X450, T276, T277, notEqF_out_gg(T275, T282)) → U77_ggagg(T275, T282, X450, T276, T277, pN28_in_gagg(T275, X450, T276, T277))
pN28_in_gagg(T275, T290, T276, T277) → U78_gagg(T275, T290, T276, T277, addK_in_ga(T275, T290))
U78_gagg(T275, T290, T276, T277, addK_out_ga(T275, T290)) → U79_gagg(T275, T290, T276, T277, pN29_in_gggg(T276, T290, T275, T277))
pN29_in_gggg(T276, T290, T275, T277) → U80_gggg(T276, T290, T275, T277, notEqF_in_gg(T276, T290))
U80_gggg(T276, T290, T275, T277, notEqF_out_gg(T276, T290)) → U81_gggg(T276, T290, T275, T277, noattackN3_in_gg(T275, T277))
noattackN3_in_gg(T301, []) → noattackN3_out_gg(T301, [])
noattackN3_in_gg(T308, .(T309, T310)) → U21_gg(T308, T309, T310, pN4_in_ggaag(T308, T309, X518, X519, T310))
pN4_in_ggaag(T308, T309, X518, X519, T310) → U82_ggaag(T308, T309, X518, X519, T310, notEqF_in_gg(T308, T309))
U82_ggaag(T308, T309, X518, X519, T310, notEqF_out_gg(T308, T309)) → U83_ggaag(T308, T309, X518, X519, T310, pN30_in_gagag(T309, X518, T308, X519, T310))
pN30_in_gagag(T309, T315, T308, X519, T310) → U84_gagag(T309, T315, T308, X519, T310, addL_in_ga(T309, T315))
addL_in_ga(0, s(s(s(s(s(s(0))))))) → addL_out_ga(0, s(s(s(s(s(s(0)))))))
addL_in_ga(s(T318), s(X544)) → U10_ga(T318, X544, addL_in_ga(T318, X544))
U10_ga(T318, X544, addL_out_ga(T318, X544)) → addL_out_ga(s(T318), s(X544))
U84_gagag(T309, T315, T308, X519, T310, addL_out_ga(T309, T315)) → U85_gagag(T309, T315, T308, X519, T310, pN31_in_ggagg(T308, T315, X519, T309, T310))
pN31_in_ggagg(T308, T315, X519, T309, T310) → U86_ggagg(T308, T315, X519, T309, T310, notEqF_in_gg(T308, T315))
U86_ggagg(T308, T315, X519, T309, T310, notEqF_out_gg(T308, T315)) → U87_ggagg(T308, T315, X519, T309, T310, pN32_in_gagg(T308, X519, T309, T310))
pN32_in_gagg(T308, T323, T309, T310) → U88_gagg(T308, T323, T309, T310, addL_in_ga(T308, T323))
U88_gagg(T308, T323, T309, T310, addL_out_ga(T308, T323)) → U89_gagg(T308, T323, T309, T310, pN33_in_gggg(T309, T323, T308, T310))
pN33_in_gggg(T309, T323, T308, T310) → U90_gggg(T309, T323, T308, T310, notEqF_in_gg(T309, T323))
U90_gggg(T309, T323, T308, T310, notEqF_out_gg(T309, T323)) → U91_gggg(T309, T323, T308, T310, noattackN5_in_gg(T308, T310))
noattackN5_in_gg(T334, []) → noattackN5_out_gg(T334, [])
noattackN5_in_gg(T341, .(T342, T343)) → U22_gg(T341, T342, T343, pN6_in_ggaagg(T341, T342, X587, X588, T343, s(s(s(s(s(s(s(0)))))))))
pN6_in_ggaagg(T341, T342, X587, X588, T343, T346) → U92_ggaagg(T341, T342, X587, X588, T343, T346, notEqF_in_gg(T341, T342))
U92_ggaagg(T341, T342, X587, X588, T343, T346, notEqF_out_gg(T341, T342)) → U93_ggaagg(T341, T342, X587, X588, T343, T346, pN34_in_gagagg(T342, X587, T341, X588, T343, T346))
pN34_in_gagagg(T342, T351, T341, X588, T343, T346) → U94_gagagg(T342, T351, T341, X588, T343, T346, addM_in_ga(T342, T351))
addM_in_ga(0, s(s(s(s(s(s(s(0)))))))) → addM_out_ga(0, s(s(s(s(s(s(s(0))))))))
addM_in_ga(s(T354), s(X615)) → U11_ga(T354, X615, addM_in_ga(T354, X615))
U11_ga(T354, X615, addM_out_ga(T354, X615)) → addM_out_ga(s(T354), s(X615))
U94_gagagg(T342, T351, T341, X588, T343, T346, addM_out_ga(T342, T351)) → U95_gagagg(T342, T351, T341, X588, T343, T346, pN35_in_ggaggg(T341, T351, X588, T342, T343, T346))
pN35_in_ggaggg(T341, T351, X588, T342, T343, T346) → U96_ggaggg(T341, T351, X588, T342, T343, T346, notEqF_in_gg(T341, T351))
U96_ggaggg(T341, T351, X588, T342, T343, T346, notEqF_out_gg(T341, T351)) → U97_ggaggg(T341, T351, X588, T342, T343, T346, pN36_in_gaggg(T341, X588, T342, T343, T346))
pN36_in_gaggg(T341, T359, T342, T343, T346) → U98_gaggg(T341, T359, T342, T343, T346, addM_in_ga(T341, T359))
U98_gaggg(T341, T359, T342, T343, T346, addM_out_ga(T341, T359)) → U99_gaggg(T341, T359, T342, T343, T346, pN37_in_ggggg(T342, T359, T341, T343, T346))
pN37_in_ggggg(T342, T359, T341, T343, T346) → U100_ggggg(T342, T359, T341, T343, T346, notEqF_in_gg(T342, T359))
U100_ggggg(T342, T359, T341, T343, T346, notEqF_out_gg(T342, T359)) → U101_ggggg(T342, T359, T341, T343, T346, noattackN7_in_ggg(T341, T343, T346))
noattackN7_in_ggg(T376, [], T377) → noattackN7_out_ggg(T376, [], T377)
noattackN7_in_ggg(T386, .(T387, T388), T389) → U23_ggg(T386, T387, T388, T389, pN8_in_gggaag(T386, T387, T389, X658, X659, T388))
pN8_in_gggaag(T386, T387, T389, X658, X659, T388) → U102_gggaag(T386, T387, T389, X658, X659, T388, notEqF_in_gg(T386, T387))
U102_gggaag(T386, T387, T389, X658, X659, T388, notEqF_out_gg(T386, T387)) → U103_gggaag(T386, T387, T389, X658, X659, T388, pN38_in_ggagag(T387, T389, X658, T386, X659, T388))
pN38_in_ggagag(T387, T389, T396, T386, X659, T388) → U104_ggagag(T387, T389, T396, T386, X659, T388, addN_in_gga(T387, T389, T396))
addN_in_gga(0, T403, s(T403)) → addN_out_gga(0, T403, s(T403))
addN_in_gga(s(T408), T409, s(X684)) → U12_gga(T408, T409, X684, addN_in_gga(T408, T409, X684))
U12_gga(T408, T409, X684, addN_out_gga(T408, T409, X684)) → addN_out_gga(s(T408), T409, s(X684))
U104_ggagag(T387, T389, T396, T386, X659, T388, addN_out_gga(T387, T389, T396)) → U105_ggagag(T387, T389, T396, T386, X659, T388, pN39_in_gggagg(T386, T396, T389, X659, T387, T388))
pN39_in_gggagg(T386, T396, T389, X659, T387, T388) → U106_gggagg(T386, T396, T389, X659, T387, T388, notEqF_in_gg(T386, T396))
U106_gggagg(T386, T396, T389, X659, T387, T388, notEqF_out_gg(T386, T396)) → U107_gggagg(T386, T396, T389, X659, T387, T388, pN40_in_ggagg(T386, T389, X659, T387, T388))
pN40_in_ggagg(T386, T389, T418, T387, T388) → U108_ggagg(T386, T389, T418, T387, T388, addN_in_gga(T386, T389, T418))
U108_ggagg(T386, T389, T418, T387, T388, addN_out_gga(T386, T389, T418)) → U109_ggagg(T386, T389, T418, T387, T388, pN37_in_ggggg(T387, T418, T386, T388, s(T389)))
U109_ggagg(T386, T389, T418, T387, T388, pN37_out_ggggg(T387, T418, T386, T388, s(T389))) → pN40_out_ggagg(T386, T389, T418, T387, T388)
U107_gggagg(T386, T396, T389, X659, T387, T388, pN40_out_ggagg(T386, T389, X659, T387, T388)) → pN39_out_gggagg(T386, T396, T389, X659, T387, T388)
U105_ggagag(T387, T389, T396, T386, X659, T388, pN39_out_gggagg(T386, T396, T389, X659, T387, T388)) → pN38_out_ggagag(T387, T389, T396, T386, X659, T388)
U103_gggaag(T386, T387, T389, X658, X659, T388, pN38_out_ggagag(T387, T389, X658, T386, X659, T388)) → pN8_out_gggaag(T386, T387, T389, X658, X659, T388)
U23_ggg(T386, T387, T388, T389, pN8_out_gggaag(T386, T387, T389, X658, X659, T388)) → noattackN7_out_ggg(T386, .(T387, T388), T389)
U101_ggggg(T342, T359, T341, T343, T346, noattackN7_out_ggg(T341, T343, T346)) → pN37_out_ggggg(T342, T359, T341, T343, T346)
U99_gaggg(T341, T359, T342, T343, T346, pN37_out_ggggg(T342, T359, T341, T343, T346)) → pN36_out_gaggg(T341, T359, T342, T343, T346)
U97_ggaggg(T341, T351, X588, T342, T343, T346, pN36_out_gaggg(T341, X588, T342, T343, T346)) → pN35_out_ggaggg(T341, T351, X588, T342, T343, T346)
U95_gagagg(T342, T351, T341, X588, T343, T346, pN35_out_ggaggg(T341, T351, X588, T342, T343, T346)) → pN34_out_gagagg(T342, T351, T341, X588, T343, T346)
U93_ggaagg(T341, T342, X587, X588, T343, T346, pN34_out_gagagg(T342, X587, T341, X588, T343, T346)) → pN6_out_ggaagg(T341, T342, X587, X588, T343, T346)
U22_gg(T341, T342, T343, pN6_out_ggaagg(T341, T342, X587, X588, T343, s(s(s(s(s(s(s(0))))))))) → noattackN5_out_gg(T341, .(T342, T343))
U91_gggg(T309, T323, T308, T310, noattackN5_out_gg(T308, T310)) → pN33_out_gggg(T309, T323, T308, T310)
U89_gagg(T308, T323, T309, T310, pN33_out_gggg(T309, T323, T308, T310)) → pN32_out_gagg(T308, T323, T309, T310)
U87_ggagg(T308, T315, X519, T309, T310, pN32_out_gagg(T308, X519, T309, T310)) → pN31_out_ggagg(T308, T315, X519, T309, T310)
U85_gagag(T309, T315, T308, X519, T310, pN31_out_ggagg(T308, T315, X519, T309, T310)) → pN30_out_gagag(T309, T315, T308, X519, T310)
U83_ggaag(T308, T309, X518, X519, T310, pN30_out_gagag(T309, X518, T308, X519, T310)) → pN4_out_ggaag(T308, T309, X518, X519, T310)
U21_gg(T308, T309, T310, pN4_out_ggaag(T308, T309, X518, X519, T310)) → noattackN3_out_gg(T308, .(T309, T310))
U81_gggg(T276, T290, T275, T277, noattackN3_out_gg(T275, T277)) → pN29_out_gggg(T276, T290, T275, T277)
U79_gagg(T275, T290, T276, T277, pN29_out_gggg(T276, T290, T275, T277)) → pN28_out_gagg(T275, T290, T276, T277)
U77_ggagg(T275, T282, X450, T276, T277, pN28_out_gagg(T275, X450, T276, T277)) → pN27_out_ggagg(T275, T282, X450, T276, T277)
U75_gagag(T276, T282, T275, X450, T277, pN27_out_ggagg(T275, T282, X450, T276, T277)) → pN26_out_gagag(T276, T282, T275, X450, T277)
U73_ggaag(T275, T276, X449, X450, T277, pN26_out_gagag(T276, X449, T275, X450, T277)) → pN2_out_ggaag(T275, T276, X449, X450, T277)
U20_gg(T275, T276, T277, pN2_out_ggaag(T275, T276, X449, X450, T277)) → noattackN1_out_gg(T275, .(T276, T277))
U71_gggg(T243, T257, T242, T244, noattackN1_out_gg(T242, T244)) → pN25_out_gggg(T243, T257, T242, T244)
U69_gagg(T242, T257, T243, T244, pN25_out_gggg(T243, T257, T242, T244)) → pN24_out_gagg(T242, T257, T243, T244)
U67_ggagg(T242, T249, X381, T243, T244, pN24_out_gagg(T242, X381, T243, T244)) → pN23_out_ggagg(T242, T249, X381, T243, T244)
U65_gagag(T243, T249, T242, X381, T244, pN23_out_ggagg(T242, T249, X381, T243, T244)) → pN22_out_gagag(T243, T249, T242, X381, T244)
U63_ggaag(T242, T243, X380, X381, T244, pN22_out_gagag(T243, X380, T242, X381, T244)) → pZ_out_ggaag(T242, T243, X380, X381, T244)
U19_gg(T242, T243, T244, pZ_out_ggaag(T242, T243, X380, X381, T244)) → noattackY_out_gg(T242, .(T243, T244))
U61_gggg(T210, T224, T209, T211, noattackY_out_gg(T209, T211)) → pN21_out_gggg(T210, T224, T209, T211)
U59_gagg(T209, T224, T210, T211, pN21_out_gggg(T210, T224, T209, T211)) → pN20_out_gagg(T209, T224, T210, T211)
U57_ggagg(T209, T216, X312, T210, T211, pN20_out_gagg(T209, X312, T210, T211)) → pN19_out_ggagg(T209, T216, X312, T210, T211)
U55_gagag(T210, T216, T209, X312, T211, pN19_out_ggagg(T209, T216, X312, T210, T211)) → pN18_out_gagag(T210, T216, T209, X312, T211)
U53_ggaag(T209, T210, X311, X312, T211, pN18_out_gagag(T210, X311, T209, X312, T211)) → pX_out_ggaag(T209, T210, X311, X312, T211)
U18_gg(T209, T210, T211, pX_out_ggaag(T209, T210, X311, X312, T211)) → noattackW_out_gg(T209, .(T210, T211))
U51_gggg(T177, T191, T176, T178, noattackW_out_gg(T176, T178)) → pN17_out_gggg(T177, T191, T176, T178)
U49_gagg(T176, T191, T177, T178, pN17_out_gggg(T177, T191, T176, T178)) → pN16_out_gagg(T176, T191, T177, T178)
U47_ggagg(T176, T183, X243, T177, T178, pN16_out_gagg(T176, X243, T177, T178)) → pN15_out_ggagg(T176, T183, X243, T177, T178)
U45_gagag(T177, T183, T176, X243, T178, pN15_out_ggagg(T176, T183, X243, T177, T178)) → pN14_out_gagag(T177, T183, T176, X243, T178)
U43_ggaag(T176, T177, X242, X243, T178, pN14_out_gagag(T177, X242, T176, X243, T178)) → pV_out_ggaag(T176, T177, X242, X243, T178)
U17_gg(T176, T177, T178, pV_out_ggaag(T176, T177, X242, X243, T178)) → noattackU_out_gg(T176, .(T177, T178))
U41_gggg(T126, T158, T125, T127, noattackU_out_gg(T125, T127)) → pN13_out_gggg(T126, T158, T125, T127)
U39_gagg(T125, T158, T126, T127, pN13_out_gggg(T126, T158, T125, T127)) → pN12_out_gagg(T125, T158, T126, T127)
U37_ggagg(T125, T150, X156, T126, T127, pN12_out_gagg(T125, X156, T126, T127)) → pN11_out_ggagg(T125, T150, X156, T126, T127)
U35_gagag(T126, T150, T125, X156, T127, pN11_out_ggagg(T125, T150, X156, T126, T127)) → pN10_out_gagag(T126, T150, T125, X156, T127)
U33_ggaag(T125, T126, X155, X156, T127, pN10_out_gagag(T126, X155, T125, X156, T127)) → pS_out_ggaag(T125, T126, X155, X156, T127)
U15_gg(T125, T126, T127, pS_out_ggaag(T125, T126, X155, X156, T127)) → noattackR_out_gg(T125, .(T126, T127))
U30_gg(T108, T109, noattackR_out_gg(T108, T109)) → U31_gg(T108, T109, safeT_in_g(T109))
safeT_in_g([]) → safeT_out_g([])
safeT_in_g(.(T427, T428)) → U16_g(T427, T428, pQ_in_gg(T427, T428))
U16_g(T427, T428, pQ_out_gg(T427, T428)) → safeT_out_g(.(T427, T428))
U31_gg(T108, T109, safeT_out_g(T109)) → pQ_out_gg(T108, T109)
U14_gg(T108, T109, pQ_out_gg(T108, T109)) → safeP_out_gg(T108, T109)
U27_gag(T20, T77, T22, safeP_out_gg(T22, T77)) → pN9_out_gag(T20, T77, T22)
U25_agaa(T22, T15, T20, T21, pN9_out_gag(T20, T21, T22)) → pB_out_agaa(T22, T15, T20, T21)
U1_a(T11, T12, pB_out_agaa(T11, .(s(s(0)), .(s(s(s(0))), .(s(s(s(s(0)))), .(s(s(s(s(s(0))))), .(s(s(s(s(s(s(0)))))), .(s(s(s(s(s(s(s(0))))))), .(s(s(s(s(s(s(s(s(0)))))))), []))))))), X16, T12)) → queensA_out_a(.(T11, T12))
ADDM_IN_GA(s(T354), s(X615)) → ADDM_IN_GA(T354, X615)
ADDM_IN_GA(s(T354)) → ADDM_IN_GA(T354)
From the DPs we obtained the following set of size-change graphs:
ADDL_IN_GA(s(T318), s(X544)) → ADDL_IN_GA(T318, X544)
queensA_in_a(.(T11, T12)) → U1_a(T11, T12, pB_in_agaa(T11, .(s(s(0)), .(s(s(s(0))), .(s(s(s(s(0)))), .(s(s(s(s(s(0))))), .(s(s(s(s(s(s(0)))))), .(s(s(s(s(s(s(s(0))))))), .(s(s(s(s(s(s(s(s(0)))))))), []))))))), X16, T12))
pB_in_agaa(T22, T15, T20, T21) → U24_agaa(T22, T15, T20, T21, deleteO_in_aga(T22, T15, T20))
deleteO_in_aga(s(0), T36, T36) → deleteO_out_aga(s(0), T36, T36)
deleteO_in_aga(T48, T47, .(s(0), X57)) → U13_aga(T48, T47, X57, deleteC_in_aga(T48, T47, X57))
deleteC_in_aga(T61, .(T61, T62), T62) → deleteC_out_aga(T61, .(T61, T62), T62)
deleteC_in_aga(T72, .(T70, T71), .(T70, X86)) → U2_aga(T72, T70, T71, X86, deleteC_in_aga(T72, T71, X86))
U2_aga(T72, T70, T71, X86, deleteC_out_aga(T72, T71, X86)) → deleteC_out_aga(T72, .(T70, T71), .(T70, X86))
U13_aga(T48, T47, X57, deleteC_out_aga(T48, T47, X57)) → deleteO_out_aga(T48, T47, .(s(0), X57))
U24_agaa(T22, T15, T20, T21, deleteO_out_aga(T22, T15, T20)) → U25_agaa(T22, T15, T20, T21, pN9_in_gag(T20, T21, T22))
pN9_in_gag(T20, T77, T22) → U26_gag(T20, T77, T22, permD_in_ga(T20, T77))
permD_in_ga([], []) → permD_out_ga([], [])
permD_in_ga(.(T86, T87), .(T90, T91)) → U3_ga(T86, T87, T90, T91, pE_in_aggaa(T90, T86, T87, X104, T91))
pE_in_aggaa(T90, T86, T87, T96, T97) → U28_aggaa(T90, T86, T87, T96, T97, deleteC_in_aga(T90, .(T86, T87), T96))
U28_aggaa(T90, T86, T87, T96, T97, deleteC_out_aga(T90, .(T86, T87), T96)) → U29_aggaa(T90, T86, T87, T96, T97, permD_in_ga(T96, T97))
U29_aggaa(T90, T86, T87, T96, T97, permD_out_ga(T96, T97)) → pE_out_aggaa(T90, T86, T87, T96, T97)
U3_ga(T86, T87, T90, T91, pE_out_aggaa(T90, T86, T87, X104, T91)) → permD_out_ga(.(T86, T87), .(T90, T91))
U26_gag(T20, T77, T22, permD_out_ga(T20, T77)) → U27_gag(T20, T77, T22, safeP_in_gg(T22, T77))
safeP_in_gg(T108, T109) → U14_gg(T108, T109, pQ_in_gg(T108, T109))
pQ_in_gg(T108, T109) → U30_gg(T108, T109, noattackR_in_gg(T108, T109))
noattackR_in_gg(T118, []) → noattackR_out_gg(T118, [])
noattackR_in_gg(T125, .(T126, T127)) → U15_gg(T125, T126, T127, pS_in_ggaag(T125, T126, X155, X156, T127))
pS_in_ggaag(T125, T126, X155, X156, T127) → U32_ggaag(T125, T126, X155, X156, T127, notEqF_in_gg(T125, T126))
notEqF_in_gg(0, s(T136)) → notEqF_out_gg(0, s(T136))
notEqF_in_gg(s(T141), 0) → notEqF_out_gg(s(T141), 0)
notEqF_in_gg(s(T146), s(T147)) → U4_gg(T146, T147, notEqF_in_gg(T146, T147))
U4_gg(T146, T147, notEqF_out_gg(T146, T147)) → notEqF_out_gg(s(T146), s(T147))
U32_ggaag(T125, T126, X155, X156, T127, notEqF_out_gg(T125, T126)) → U33_ggaag(T125, T126, X155, X156, T127, pN10_in_gagag(T126, X155, T125, X156, T127))
pN10_in_gagag(T126, T150, T125, X156, T127) → U34_gagag(T126, T150, T125, X156, T127, addG_in_ga(T126, T150))
addG_in_ga(0, s(0)) → addG_out_ga(0, s(0))
addG_in_ga(s(T153), s(X199)) → U5_ga(T153, X199, addG_in_ga(T153, X199))
U5_ga(T153, X199, addG_out_ga(T153, X199)) → addG_out_ga(s(T153), s(X199))
U34_gagag(T126, T150, T125, X156, T127, addG_out_ga(T126, T150)) → U35_gagag(T126, T150, T125, X156, T127, pN11_in_ggagg(T125, T150, X156, T126, T127))
pN11_in_ggagg(T125, T150, X156, T126, T127) → U36_ggagg(T125, T150, X156, T126, T127, notEqF_in_gg(T125, T150))
U36_ggagg(T125, T150, X156, T126, T127, notEqF_out_gg(T125, T150)) → U37_ggagg(T125, T150, X156, T126, T127, pN12_in_gagg(T125, X156, T126, T127))
pN12_in_gagg(T125, T158, T126, T127) → U38_gagg(T125, T158, T126, T127, addG_in_ga(T125, T158))
U38_gagg(T125, T158, T126, T127, addG_out_ga(T125, T158)) → U39_gagg(T125, T158, T126, T127, pN13_in_gggg(T126, T158, T125, T127))
pN13_in_gggg(T126, T158, T125, T127) → U40_gggg(T126, T158, T125, T127, notEqF_in_gg(T126, T158))
U40_gggg(T126, T158, T125, T127, notEqF_out_gg(T126, T158)) → U41_gggg(T126, T158, T125, T127, noattackU_in_gg(T125, T127))
noattackU_in_gg(T169, []) → noattackU_out_gg(T169, [])
noattackU_in_gg(T176, .(T177, T178)) → U17_gg(T176, T177, T178, pV_in_ggaag(T176, T177, X242, X243, T178))
pV_in_ggaag(T176, T177, X242, X243, T178) → U42_ggaag(T176, T177, X242, X243, T178, notEqF_in_gg(T176, T177))
U42_ggaag(T176, T177, X242, X243, T178, notEqF_out_gg(T176, T177)) → U43_ggaag(T176, T177, X242, X243, T178, pN14_in_gagag(T177, X242, T176, X243, T178))
pN14_in_gagag(T177, T183, T176, X243, T178) → U44_gagag(T177, T183, T176, X243, T178, addH_in_ga(T177, T183))
addH_in_ga(0, s(s(0))) → addH_out_ga(0, s(s(0)))
addH_in_ga(s(T186), s(X268)) → U6_ga(T186, X268, addH_in_ga(T186, X268))
U6_ga(T186, X268, addH_out_ga(T186, X268)) → addH_out_ga(s(T186), s(X268))
U44_gagag(T177, T183, T176, X243, T178, addH_out_ga(T177, T183)) → U45_gagag(T177, T183, T176, X243, T178, pN15_in_ggagg(T176, T183, X243, T177, T178))
pN15_in_ggagg(T176, T183, X243, T177, T178) → U46_ggagg(T176, T183, X243, T177, T178, notEqF_in_gg(T176, T183))
U46_ggagg(T176, T183, X243, T177, T178, notEqF_out_gg(T176, T183)) → U47_ggagg(T176, T183, X243, T177, T178, pN16_in_gagg(T176, X243, T177, T178))
pN16_in_gagg(T176, T191, T177, T178) → U48_gagg(T176, T191, T177, T178, addH_in_ga(T176, T191))
U48_gagg(T176, T191, T177, T178, addH_out_ga(T176, T191)) → U49_gagg(T176, T191, T177, T178, pN17_in_gggg(T177, T191, T176, T178))
pN17_in_gggg(T177, T191, T176, T178) → U50_gggg(T177, T191, T176, T178, notEqF_in_gg(T177, T191))
U50_gggg(T177, T191, T176, T178, notEqF_out_gg(T177, T191)) → U51_gggg(T177, T191, T176, T178, noattackW_in_gg(T176, T178))
noattackW_in_gg(T202, []) → noattackW_out_gg(T202, [])
noattackW_in_gg(T209, .(T210, T211)) → U18_gg(T209, T210, T211, pX_in_ggaag(T209, T210, X311, X312, T211))
pX_in_ggaag(T209, T210, X311, X312, T211) → U52_ggaag(T209, T210, X311, X312, T211, notEqF_in_gg(T209, T210))
U52_ggaag(T209, T210, X311, X312, T211, notEqF_out_gg(T209, T210)) → U53_ggaag(T209, T210, X311, X312, T211, pN18_in_gagag(T210, X311, T209, X312, T211))
pN18_in_gagag(T210, T216, T209, X312, T211) → U54_gagag(T210, T216, T209, X312, T211, addI_in_ga(T210, T216))
addI_in_ga(0, s(s(s(0)))) → addI_out_ga(0, s(s(s(0))))
addI_in_ga(s(T219), s(X337)) → U7_ga(T219, X337, addI_in_ga(T219, X337))
U7_ga(T219, X337, addI_out_ga(T219, X337)) → addI_out_ga(s(T219), s(X337))
U54_gagag(T210, T216, T209, X312, T211, addI_out_ga(T210, T216)) → U55_gagag(T210, T216, T209, X312, T211, pN19_in_ggagg(T209, T216, X312, T210, T211))
pN19_in_ggagg(T209, T216, X312, T210, T211) → U56_ggagg(T209, T216, X312, T210, T211, notEqF_in_gg(T209, T216))
U56_ggagg(T209, T216, X312, T210, T211, notEqF_out_gg(T209, T216)) → U57_ggagg(T209, T216, X312, T210, T211, pN20_in_gagg(T209, X312, T210, T211))
pN20_in_gagg(T209, T224, T210, T211) → U58_gagg(T209, T224, T210, T211, addI_in_ga(T209, T224))
U58_gagg(T209, T224, T210, T211, addI_out_ga(T209, T224)) → U59_gagg(T209, T224, T210, T211, pN21_in_gggg(T210, T224, T209, T211))
pN21_in_gggg(T210, T224, T209, T211) → U60_gggg(T210, T224, T209, T211, notEqF_in_gg(T210, T224))
U60_gggg(T210, T224, T209, T211, notEqF_out_gg(T210, T224)) → U61_gggg(T210, T224, T209, T211, noattackY_in_gg(T209, T211))
noattackY_in_gg(T235, []) → noattackY_out_gg(T235, [])
noattackY_in_gg(T242, .(T243, T244)) → U19_gg(T242, T243, T244, pZ_in_ggaag(T242, T243, X380, X381, T244))
pZ_in_ggaag(T242, T243, X380, X381, T244) → U62_ggaag(T242, T243, X380, X381, T244, notEqF_in_gg(T242, T243))
U62_ggaag(T242, T243, X380, X381, T244, notEqF_out_gg(T242, T243)) → U63_ggaag(T242, T243, X380, X381, T244, pN22_in_gagag(T243, X380, T242, X381, T244))
pN22_in_gagag(T243, T249, T242, X381, T244) → U64_gagag(T243, T249, T242, X381, T244, addJ_in_ga(T243, T249))
addJ_in_ga(0, s(s(s(s(0))))) → addJ_out_ga(0, s(s(s(s(0)))))
addJ_in_ga(s(T252), s(X406)) → U8_ga(T252, X406, addJ_in_ga(T252, X406))
U8_ga(T252, X406, addJ_out_ga(T252, X406)) → addJ_out_ga(s(T252), s(X406))
U64_gagag(T243, T249, T242, X381, T244, addJ_out_ga(T243, T249)) → U65_gagag(T243, T249, T242, X381, T244, pN23_in_ggagg(T242, T249, X381, T243, T244))
pN23_in_ggagg(T242, T249, X381, T243, T244) → U66_ggagg(T242, T249, X381, T243, T244, notEqF_in_gg(T242, T249))
U66_ggagg(T242, T249, X381, T243, T244, notEqF_out_gg(T242, T249)) → U67_ggagg(T242, T249, X381, T243, T244, pN24_in_gagg(T242, X381, T243, T244))
pN24_in_gagg(T242, T257, T243, T244) → U68_gagg(T242, T257, T243, T244, addJ_in_ga(T242, T257))
U68_gagg(T242, T257, T243, T244, addJ_out_ga(T242, T257)) → U69_gagg(T242, T257, T243, T244, pN25_in_gggg(T243, T257, T242, T244))
pN25_in_gggg(T243, T257, T242, T244) → U70_gggg(T243, T257, T242, T244, notEqF_in_gg(T243, T257))
U70_gggg(T243, T257, T242, T244, notEqF_out_gg(T243, T257)) → U71_gggg(T243, T257, T242, T244, noattackN1_in_gg(T242, T244))
noattackN1_in_gg(T268, []) → noattackN1_out_gg(T268, [])
noattackN1_in_gg(T275, .(T276, T277)) → U20_gg(T275, T276, T277, pN2_in_ggaag(T275, T276, X449, X450, T277))
pN2_in_ggaag(T275, T276, X449, X450, T277) → U72_ggaag(T275, T276, X449, X450, T277, notEqF_in_gg(T275, T276))
U72_ggaag(T275, T276, X449, X450, T277, notEqF_out_gg(T275, T276)) → U73_ggaag(T275, T276, X449, X450, T277, pN26_in_gagag(T276, X449, T275, X450, T277))
pN26_in_gagag(T276, T282, T275, X450, T277) → U74_gagag(T276, T282, T275, X450, T277, addK_in_ga(T276, T282))
addK_in_ga(0, s(s(s(s(s(0)))))) → addK_out_ga(0, s(s(s(s(s(0))))))
addK_in_ga(s(T285), s(X475)) → U9_ga(T285, X475, addK_in_ga(T285, X475))
U9_ga(T285, X475, addK_out_ga(T285, X475)) → addK_out_ga(s(T285), s(X475))
U74_gagag(T276, T282, T275, X450, T277, addK_out_ga(T276, T282)) → U75_gagag(T276, T282, T275, X450, T277, pN27_in_ggagg(T275, T282, X450, T276, T277))
pN27_in_ggagg(T275, T282, X450, T276, T277) → U76_ggagg(T275, T282, X450, T276, T277, notEqF_in_gg(T275, T282))
U76_ggagg(T275, T282, X450, T276, T277, notEqF_out_gg(T275, T282)) → U77_ggagg(T275, T282, X450, T276, T277, pN28_in_gagg(T275, X450, T276, T277))
pN28_in_gagg(T275, T290, T276, T277) → U78_gagg(T275, T290, T276, T277, addK_in_ga(T275, T290))
U78_gagg(T275, T290, T276, T277, addK_out_ga(T275, T290)) → U79_gagg(T275, T290, T276, T277, pN29_in_gggg(T276, T290, T275, T277))
pN29_in_gggg(T276, T290, T275, T277) → U80_gggg(T276, T290, T275, T277, notEqF_in_gg(T276, T290))
U80_gggg(T276, T290, T275, T277, notEqF_out_gg(T276, T290)) → U81_gggg(T276, T290, T275, T277, noattackN3_in_gg(T275, T277))
noattackN3_in_gg(T301, []) → noattackN3_out_gg(T301, [])
noattackN3_in_gg(T308, .(T309, T310)) → U21_gg(T308, T309, T310, pN4_in_ggaag(T308, T309, X518, X519, T310))
pN4_in_ggaag(T308, T309, X518, X519, T310) → U82_ggaag(T308, T309, X518, X519, T310, notEqF_in_gg(T308, T309))
U82_ggaag(T308, T309, X518, X519, T310, notEqF_out_gg(T308, T309)) → U83_ggaag(T308, T309, X518, X519, T310, pN30_in_gagag(T309, X518, T308, X519, T310))
pN30_in_gagag(T309, T315, T308, X519, T310) → U84_gagag(T309, T315, T308, X519, T310, addL_in_ga(T309, T315))
addL_in_ga(0, s(s(s(s(s(s(0))))))) → addL_out_ga(0, s(s(s(s(s(s(0)))))))
addL_in_ga(s(T318), s(X544)) → U10_ga(T318, X544, addL_in_ga(T318, X544))
U10_ga(T318, X544, addL_out_ga(T318, X544)) → addL_out_ga(s(T318), s(X544))
U84_gagag(T309, T315, T308, X519, T310, addL_out_ga(T309, T315)) → U85_gagag(T309, T315, T308, X519, T310, pN31_in_ggagg(T308, T315, X519, T309, T310))
pN31_in_ggagg(T308, T315, X519, T309, T310) → U86_ggagg(T308, T315, X519, T309, T310, notEqF_in_gg(T308, T315))
U86_ggagg(T308, T315, X519, T309, T310, notEqF_out_gg(T308, T315)) → U87_ggagg(T308, T315, X519, T309, T310, pN32_in_gagg(T308, X519, T309, T310))
pN32_in_gagg(T308, T323, T309, T310) → U88_gagg(T308, T323, T309, T310, addL_in_ga(T308, T323))
U88_gagg(T308, T323, T309, T310, addL_out_ga(T308, T323)) → U89_gagg(T308, T323, T309, T310, pN33_in_gggg(T309, T323, T308, T310))
pN33_in_gggg(T309, T323, T308, T310) → U90_gggg(T309, T323, T308, T310, notEqF_in_gg(T309, T323))
U90_gggg(T309, T323, T308, T310, notEqF_out_gg(T309, T323)) → U91_gggg(T309, T323, T308, T310, noattackN5_in_gg(T308, T310))
noattackN5_in_gg(T334, []) → noattackN5_out_gg(T334, [])
noattackN5_in_gg(T341, .(T342, T343)) → U22_gg(T341, T342, T343, pN6_in_ggaagg(T341, T342, X587, X588, T343, s(s(s(s(s(s(s(0)))))))))
pN6_in_ggaagg(T341, T342, X587, X588, T343, T346) → U92_ggaagg(T341, T342, X587, X588, T343, T346, notEqF_in_gg(T341, T342))
U92_ggaagg(T341, T342, X587, X588, T343, T346, notEqF_out_gg(T341, T342)) → U93_ggaagg(T341, T342, X587, X588, T343, T346, pN34_in_gagagg(T342, X587, T341, X588, T343, T346))
pN34_in_gagagg(T342, T351, T341, X588, T343, T346) → U94_gagagg(T342, T351, T341, X588, T343, T346, addM_in_ga(T342, T351))
addM_in_ga(0, s(s(s(s(s(s(s(0)))))))) → addM_out_ga(0, s(s(s(s(s(s(s(0))))))))
addM_in_ga(s(T354), s(X615)) → U11_ga(T354, X615, addM_in_ga(T354, X615))
U11_ga(T354, X615, addM_out_ga(T354, X615)) → addM_out_ga(s(T354), s(X615))
U94_gagagg(T342, T351, T341, X588, T343, T346, addM_out_ga(T342, T351)) → U95_gagagg(T342, T351, T341, X588, T343, T346, pN35_in_ggaggg(T341, T351, X588, T342, T343, T346))
pN35_in_ggaggg(T341, T351, X588, T342, T343, T346) → U96_ggaggg(T341, T351, X588, T342, T343, T346, notEqF_in_gg(T341, T351))
U96_ggaggg(T341, T351, X588, T342, T343, T346, notEqF_out_gg(T341, T351)) → U97_ggaggg(T341, T351, X588, T342, T343, T346, pN36_in_gaggg(T341, X588, T342, T343, T346))
pN36_in_gaggg(T341, T359, T342, T343, T346) → U98_gaggg(T341, T359, T342, T343, T346, addM_in_ga(T341, T359))
U98_gaggg(T341, T359, T342, T343, T346, addM_out_ga(T341, T359)) → U99_gaggg(T341, T359, T342, T343, T346, pN37_in_ggggg(T342, T359, T341, T343, T346))
pN37_in_ggggg(T342, T359, T341, T343, T346) → U100_ggggg(T342, T359, T341, T343, T346, notEqF_in_gg(T342, T359))
U100_ggggg(T342, T359, T341, T343, T346, notEqF_out_gg(T342, T359)) → U101_ggggg(T342, T359, T341, T343, T346, noattackN7_in_ggg(T341, T343, T346))
noattackN7_in_ggg(T376, [], T377) → noattackN7_out_ggg(T376, [], T377)
noattackN7_in_ggg(T386, .(T387, T388), T389) → U23_ggg(T386, T387, T388, T389, pN8_in_gggaag(T386, T387, T389, X658, X659, T388))
pN8_in_gggaag(T386, T387, T389, X658, X659, T388) → U102_gggaag(T386, T387, T389, X658, X659, T388, notEqF_in_gg(T386, T387))
U102_gggaag(T386, T387, T389, X658, X659, T388, notEqF_out_gg(T386, T387)) → U103_gggaag(T386, T387, T389, X658, X659, T388, pN38_in_ggagag(T387, T389, X658, T386, X659, T388))
pN38_in_ggagag(T387, T389, T396, T386, X659, T388) → U104_ggagag(T387, T389, T396, T386, X659, T388, addN_in_gga(T387, T389, T396))
addN_in_gga(0, T403, s(T403)) → addN_out_gga(0, T403, s(T403))
addN_in_gga(s(T408), T409, s(X684)) → U12_gga(T408, T409, X684, addN_in_gga(T408, T409, X684))
U12_gga(T408, T409, X684, addN_out_gga(T408, T409, X684)) → addN_out_gga(s(T408), T409, s(X684))
U104_ggagag(T387, T389, T396, T386, X659, T388, addN_out_gga(T387, T389, T396)) → U105_ggagag(T387, T389, T396, T386, X659, T388, pN39_in_gggagg(T386, T396, T389, X659, T387, T388))
pN39_in_gggagg(T386, T396, T389, X659, T387, T388) → U106_gggagg(T386, T396, T389, X659, T387, T388, notEqF_in_gg(T386, T396))
U106_gggagg(T386, T396, T389, X659, T387, T388, notEqF_out_gg(T386, T396)) → U107_gggagg(T386, T396, T389, X659, T387, T388, pN40_in_ggagg(T386, T389, X659, T387, T388))
pN40_in_ggagg(T386, T389, T418, T387, T388) → U108_ggagg(T386, T389, T418, T387, T388, addN_in_gga(T386, T389, T418))
U108_ggagg(T386, T389, T418, T387, T388, addN_out_gga(T386, T389, T418)) → U109_ggagg(T386, T389, T418, T387, T388, pN37_in_ggggg(T387, T418, T386, T388, s(T389)))
U109_ggagg(T386, T389, T418, T387, T388, pN37_out_ggggg(T387, T418, T386, T388, s(T389))) → pN40_out_ggagg(T386, T389, T418, T387, T388)
U107_gggagg(T386, T396, T389, X659, T387, T388, pN40_out_ggagg(T386, T389, X659, T387, T388)) → pN39_out_gggagg(T386, T396, T389, X659, T387, T388)
U105_ggagag(T387, T389, T396, T386, X659, T388, pN39_out_gggagg(T386, T396, T389, X659, T387, T388)) → pN38_out_ggagag(T387, T389, T396, T386, X659, T388)
U103_gggaag(T386, T387, T389, X658, X659, T388, pN38_out_ggagag(T387, T389, X658, T386, X659, T388)) → pN8_out_gggaag(T386, T387, T389, X658, X659, T388)
U23_ggg(T386, T387, T388, T389, pN8_out_gggaag(T386, T387, T389, X658, X659, T388)) → noattackN7_out_ggg(T386, .(T387, T388), T389)
U101_ggggg(T342, T359, T341, T343, T346, noattackN7_out_ggg(T341, T343, T346)) → pN37_out_ggggg(T342, T359, T341, T343, T346)
U99_gaggg(T341, T359, T342, T343, T346, pN37_out_ggggg(T342, T359, T341, T343, T346)) → pN36_out_gaggg(T341, T359, T342, T343, T346)
U97_ggaggg(T341, T351, X588, T342, T343, T346, pN36_out_gaggg(T341, X588, T342, T343, T346)) → pN35_out_ggaggg(T341, T351, X588, T342, T343, T346)
U95_gagagg(T342, T351, T341, X588, T343, T346, pN35_out_ggaggg(T341, T351, X588, T342, T343, T346)) → pN34_out_gagagg(T342, T351, T341, X588, T343, T346)
U93_ggaagg(T341, T342, X587, X588, T343, T346, pN34_out_gagagg(T342, X587, T341, X588, T343, T346)) → pN6_out_ggaagg(T341, T342, X587, X588, T343, T346)
U22_gg(T341, T342, T343, pN6_out_ggaagg(T341, T342, X587, X588, T343, s(s(s(s(s(s(s(0))))))))) → noattackN5_out_gg(T341, .(T342, T343))
U91_gggg(T309, T323, T308, T310, noattackN5_out_gg(T308, T310)) → pN33_out_gggg(T309, T323, T308, T310)
U89_gagg(T308, T323, T309, T310, pN33_out_gggg(T309, T323, T308, T310)) → pN32_out_gagg(T308, T323, T309, T310)
U87_ggagg(T308, T315, X519, T309, T310, pN32_out_gagg(T308, X519, T309, T310)) → pN31_out_ggagg(T308, T315, X519, T309, T310)
U85_gagag(T309, T315, T308, X519, T310, pN31_out_ggagg(T308, T315, X519, T309, T310)) → pN30_out_gagag(T309, T315, T308, X519, T310)
U83_ggaag(T308, T309, X518, X519, T310, pN30_out_gagag(T309, X518, T308, X519, T310)) → pN4_out_ggaag(T308, T309, X518, X519, T310)
U21_gg(T308, T309, T310, pN4_out_ggaag(T308, T309, X518, X519, T310)) → noattackN3_out_gg(T308, .(T309, T310))
U81_gggg(T276, T290, T275, T277, noattackN3_out_gg(T275, T277)) → pN29_out_gggg(T276, T290, T275, T277)
U79_gagg(T275, T290, T276, T277, pN29_out_gggg(T276, T290, T275, T277)) → pN28_out_gagg(T275, T290, T276, T277)
U77_ggagg(T275, T282, X450, T276, T277, pN28_out_gagg(T275, X450, T276, T277)) → pN27_out_ggagg(T275, T282, X450, T276, T277)
U75_gagag(T276, T282, T275, X450, T277, pN27_out_ggagg(T275, T282, X450, T276, T277)) → pN26_out_gagag(T276, T282, T275, X450, T277)
U73_ggaag(T275, T276, X449, X450, T277, pN26_out_gagag(T276, X449, T275, X450, T277)) → pN2_out_ggaag(T275, T276, X449, X450, T277)
U20_gg(T275, T276, T277, pN2_out_ggaag(T275, T276, X449, X450, T277)) → noattackN1_out_gg(T275, .(T276, T277))
U71_gggg(T243, T257, T242, T244, noattackN1_out_gg(T242, T244)) → pN25_out_gggg(T243, T257, T242, T244)
U69_gagg(T242, T257, T243, T244, pN25_out_gggg(T243, T257, T242, T244)) → pN24_out_gagg(T242, T257, T243, T244)
U67_ggagg(T242, T249, X381, T243, T244, pN24_out_gagg(T242, X381, T243, T244)) → pN23_out_ggagg(T242, T249, X381, T243, T244)
U65_gagag(T243, T249, T242, X381, T244, pN23_out_ggagg(T242, T249, X381, T243, T244)) → pN22_out_gagag(T243, T249, T242, X381, T244)
U63_ggaag(T242, T243, X380, X381, T244, pN22_out_gagag(T243, X380, T242, X381, T244)) → pZ_out_ggaag(T242, T243, X380, X381, T244)
U19_gg(T242, T243, T244, pZ_out_ggaag(T242, T243, X380, X381, T244)) → noattackY_out_gg(T242, .(T243, T244))
U61_gggg(T210, T224, T209, T211, noattackY_out_gg(T209, T211)) → pN21_out_gggg(T210, T224, T209, T211)
U59_gagg(T209, T224, T210, T211, pN21_out_gggg(T210, T224, T209, T211)) → pN20_out_gagg(T209, T224, T210, T211)
U57_ggagg(T209, T216, X312, T210, T211, pN20_out_gagg(T209, X312, T210, T211)) → pN19_out_ggagg(T209, T216, X312, T210, T211)
U55_gagag(T210, T216, T209, X312, T211, pN19_out_ggagg(T209, T216, X312, T210, T211)) → pN18_out_gagag(T210, T216, T209, X312, T211)
U53_ggaag(T209, T210, X311, X312, T211, pN18_out_gagag(T210, X311, T209, X312, T211)) → pX_out_ggaag(T209, T210, X311, X312, T211)
U18_gg(T209, T210, T211, pX_out_ggaag(T209, T210, X311, X312, T211)) → noattackW_out_gg(T209, .(T210, T211))
U51_gggg(T177, T191, T176, T178, noattackW_out_gg(T176, T178)) → pN17_out_gggg(T177, T191, T176, T178)
U49_gagg(T176, T191, T177, T178, pN17_out_gggg(T177, T191, T176, T178)) → pN16_out_gagg(T176, T191, T177, T178)
U47_ggagg(T176, T183, X243, T177, T178, pN16_out_gagg(T176, X243, T177, T178)) → pN15_out_ggagg(T176, T183, X243, T177, T178)
U45_gagag(T177, T183, T176, X243, T178, pN15_out_ggagg(T176, T183, X243, T177, T178)) → pN14_out_gagag(T177, T183, T176, X243, T178)
U43_ggaag(T176, T177, X242, X243, T178, pN14_out_gagag(T177, X242, T176, X243, T178)) → pV_out_ggaag(T176, T177, X242, X243, T178)
U17_gg(T176, T177, T178, pV_out_ggaag(T176, T177, X242, X243, T178)) → noattackU_out_gg(T176, .(T177, T178))
U41_gggg(T126, T158, T125, T127, noattackU_out_gg(T125, T127)) → pN13_out_gggg(T126, T158, T125, T127)
U39_gagg(T125, T158, T126, T127, pN13_out_gggg(T126, T158, T125, T127)) → pN12_out_gagg(T125, T158, T126, T127)
U37_ggagg(T125, T150, X156, T126, T127, pN12_out_gagg(T125, X156, T126, T127)) → pN11_out_ggagg(T125, T150, X156, T126, T127)
U35_gagag(T126, T150, T125, X156, T127, pN11_out_ggagg(T125, T150, X156, T126, T127)) → pN10_out_gagag(T126, T150, T125, X156, T127)
U33_ggaag(T125, T126, X155, X156, T127, pN10_out_gagag(T126, X155, T125, X156, T127)) → pS_out_ggaag(T125, T126, X155, X156, T127)
U15_gg(T125, T126, T127, pS_out_ggaag(T125, T126, X155, X156, T127)) → noattackR_out_gg(T125, .(T126, T127))
U30_gg(T108, T109, noattackR_out_gg(T108, T109)) → U31_gg(T108, T109, safeT_in_g(T109))
safeT_in_g([]) → safeT_out_g([])
safeT_in_g(.(T427, T428)) → U16_g(T427, T428, pQ_in_gg(T427, T428))
U16_g(T427, T428, pQ_out_gg(T427, T428)) → safeT_out_g(.(T427, T428))
U31_gg(T108, T109, safeT_out_g(T109)) → pQ_out_gg(T108, T109)
U14_gg(T108, T109, pQ_out_gg(T108, T109)) → safeP_out_gg(T108, T109)
U27_gag(T20, T77, T22, safeP_out_gg(T22, T77)) → pN9_out_gag(T20, T77, T22)
U25_agaa(T22, T15, T20, T21, pN9_out_gag(T20, T21, T22)) → pB_out_agaa(T22, T15, T20, T21)
U1_a(T11, T12, pB_out_agaa(T11, .(s(s(0)), .(s(s(s(0))), .(s(s(s(s(0)))), .(s(s(s(s(s(0))))), .(s(s(s(s(s(s(0)))))), .(s(s(s(s(s(s(s(0))))))), .(s(s(s(s(s(s(s(s(0)))))))), []))))))), X16, T12)) → queensA_out_a(.(T11, T12))
ADDL_IN_GA(s(T318), s(X544)) → ADDL_IN_GA(T318, X544)
ADDL_IN_GA(s(T318)) → ADDL_IN_GA(T318)
From the DPs we obtained the following set of size-change graphs:
ADDK_IN_GA(s(T285), s(X475)) → ADDK_IN_GA(T285, X475)
queensA_in_a(.(T11, T12)) → U1_a(T11, T12, pB_in_agaa(T11, .(s(s(0)), .(s(s(s(0))), .(s(s(s(s(0)))), .(s(s(s(s(s(0))))), .(s(s(s(s(s(s(0)))))), .(s(s(s(s(s(s(s(0))))))), .(s(s(s(s(s(s(s(s(0)))))))), []))))))), X16, T12))
pB_in_agaa(T22, T15, T20, T21) → U24_agaa(T22, T15, T20, T21, deleteO_in_aga(T22, T15, T20))
deleteO_in_aga(s(0), T36, T36) → deleteO_out_aga(s(0), T36, T36)
deleteO_in_aga(T48, T47, .(s(0), X57)) → U13_aga(T48, T47, X57, deleteC_in_aga(T48, T47, X57))
deleteC_in_aga(T61, .(T61, T62), T62) → deleteC_out_aga(T61, .(T61, T62), T62)
deleteC_in_aga(T72, .(T70, T71), .(T70, X86)) → U2_aga(T72, T70, T71, X86, deleteC_in_aga(T72, T71, X86))
U2_aga(T72, T70, T71, X86, deleteC_out_aga(T72, T71, X86)) → deleteC_out_aga(T72, .(T70, T71), .(T70, X86))
U13_aga(T48, T47, X57, deleteC_out_aga(T48, T47, X57)) → deleteO_out_aga(T48, T47, .(s(0), X57))
U24_agaa(T22, T15, T20, T21, deleteO_out_aga(T22, T15, T20)) → U25_agaa(T22, T15, T20, T21, pN9_in_gag(T20, T21, T22))
pN9_in_gag(T20, T77, T22) → U26_gag(T20, T77, T22, permD_in_ga(T20, T77))
permD_in_ga([], []) → permD_out_ga([], [])
permD_in_ga(.(T86, T87), .(T90, T91)) → U3_ga(T86, T87, T90, T91, pE_in_aggaa(T90, T86, T87, X104, T91))
pE_in_aggaa(T90, T86, T87, T96, T97) → U28_aggaa(T90, T86, T87, T96, T97, deleteC_in_aga(T90, .(T86, T87), T96))
U28_aggaa(T90, T86, T87, T96, T97, deleteC_out_aga(T90, .(T86, T87), T96)) → U29_aggaa(T90, T86, T87, T96, T97, permD_in_ga(T96, T97))
U29_aggaa(T90, T86, T87, T96, T97, permD_out_ga(T96, T97)) → pE_out_aggaa(T90, T86, T87, T96, T97)
U3_ga(T86, T87, T90, T91, pE_out_aggaa(T90, T86, T87, X104, T91)) → permD_out_ga(.(T86, T87), .(T90, T91))
U26_gag(T20, T77, T22, permD_out_ga(T20, T77)) → U27_gag(T20, T77, T22, safeP_in_gg(T22, T77))
safeP_in_gg(T108, T109) → U14_gg(T108, T109, pQ_in_gg(T108, T109))
pQ_in_gg(T108, T109) → U30_gg(T108, T109, noattackR_in_gg(T108, T109))
noattackR_in_gg(T118, []) → noattackR_out_gg(T118, [])
noattackR_in_gg(T125, .(T126, T127)) → U15_gg(T125, T126, T127, pS_in_ggaag(T125, T126, X155, X156, T127))
pS_in_ggaag(T125, T126, X155, X156, T127) → U32_ggaag(T125, T126, X155, X156, T127, notEqF_in_gg(T125, T126))
notEqF_in_gg(0, s(T136)) → notEqF_out_gg(0, s(T136))
notEqF_in_gg(s(T141), 0) → notEqF_out_gg(s(T141), 0)
notEqF_in_gg(s(T146), s(T147)) → U4_gg(T146, T147, notEqF_in_gg(T146, T147))
U4_gg(T146, T147, notEqF_out_gg(T146, T147)) → notEqF_out_gg(s(T146), s(T147))
U32_ggaag(T125, T126, X155, X156, T127, notEqF_out_gg(T125, T126)) → U33_ggaag(T125, T126, X155, X156, T127, pN10_in_gagag(T126, X155, T125, X156, T127))
pN10_in_gagag(T126, T150, T125, X156, T127) → U34_gagag(T126, T150, T125, X156, T127, addG_in_ga(T126, T150))
addG_in_ga(0, s(0)) → addG_out_ga(0, s(0))
addG_in_ga(s(T153), s(X199)) → U5_ga(T153, X199, addG_in_ga(T153, X199))
U5_ga(T153, X199, addG_out_ga(T153, X199)) → addG_out_ga(s(T153), s(X199))
U34_gagag(T126, T150, T125, X156, T127, addG_out_ga(T126, T150)) → U35_gagag(T126, T150, T125, X156, T127, pN11_in_ggagg(T125, T150, X156, T126, T127))
pN11_in_ggagg(T125, T150, X156, T126, T127) → U36_ggagg(T125, T150, X156, T126, T127, notEqF_in_gg(T125, T150))
U36_ggagg(T125, T150, X156, T126, T127, notEqF_out_gg(T125, T150)) → U37_ggagg(T125, T150, X156, T126, T127, pN12_in_gagg(T125, X156, T126, T127))
pN12_in_gagg(T125, T158, T126, T127) → U38_gagg(T125, T158, T126, T127, addG_in_ga(T125, T158))
U38_gagg(T125, T158, T126, T127, addG_out_ga(T125, T158)) → U39_gagg(T125, T158, T126, T127, pN13_in_gggg(T126, T158, T125, T127))
pN13_in_gggg(T126, T158, T125, T127) → U40_gggg(T126, T158, T125, T127, notEqF_in_gg(T126, T158))
U40_gggg(T126, T158, T125, T127, notEqF_out_gg(T126, T158)) → U41_gggg(T126, T158, T125, T127, noattackU_in_gg(T125, T127))
noattackU_in_gg(T169, []) → noattackU_out_gg(T169, [])
noattackU_in_gg(T176, .(T177, T178)) → U17_gg(T176, T177, T178, pV_in_ggaag(T176, T177, X242, X243, T178))
pV_in_ggaag(T176, T177, X242, X243, T178) → U42_ggaag(T176, T177, X242, X243, T178, notEqF_in_gg(T176, T177))
U42_ggaag(T176, T177, X242, X243, T178, notEqF_out_gg(T176, T177)) → U43_ggaag(T176, T177, X242, X243, T178, pN14_in_gagag(T177, X242, T176, X243, T178))
pN14_in_gagag(T177, T183, T176, X243, T178) → U44_gagag(T177, T183, T176, X243, T178, addH_in_ga(T177, T183))
addH_in_ga(0, s(s(0))) → addH_out_ga(0, s(s(0)))
addH_in_ga(s(T186), s(X268)) → U6_ga(T186, X268, addH_in_ga(T186, X268))
U6_ga(T186, X268, addH_out_ga(T186, X268)) → addH_out_ga(s(T186), s(X268))
U44_gagag(T177, T183, T176, X243, T178, addH_out_ga(T177, T183)) → U45_gagag(T177, T183, T176, X243, T178, pN15_in_ggagg(T176, T183, X243, T177, T178))
pN15_in_ggagg(T176, T183, X243, T177, T178) → U46_ggagg(T176, T183, X243, T177, T178, notEqF_in_gg(T176, T183))
U46_ggagg(T176, T183, X243, T177, T178, notEqF_out_gg(T176, T183)) → U47_ggagg(T176, T183, X243, T177, T178, pN16_in_gagg(T176, X243, T177, T178))
pN16_in_gagg(T176, T191, T177, T178) → U48_gagg(T176, T191, T177, T178, addH_in_ga(T176, T191))
U48_gagg(T176, T191, T177, T178, addH_out_ga(T176, T191)) → U49_gagg(T176, T191, T177, T178, pN17_in_gggg(T177, T191, T176, T178))
pN17_in_gggg(T177, T191, T176, T178) → U50_gggg(T177, T191, T176, T178, notEqF_in_gg(T177, T191))
U50_gggg(T177, T191, T176, T178, notEqF_out_gg(T177, T191)) → U51_gggg(T177, T191, T176, T178, noattackW_in_gg(T176, T178))
noattackW_in_gg(T202, []) → noattackW_out_gg(T202, [])
noattackW_in_gg(T209, .(T210, T211)) → U18_gg(T209, T210, T211, pX_in_ggaag(T209, T210, X311, X312, T211))
pX_in_ggaag(T209, T210, X311, X312, T211) → U52_ggaag(T209, T210, X311, X312, T211, notEqF_in_gg(T209, T210))
U52_ggaag(T209, T210, X311, X312, T211, notEqF_out_gg(T209, T210)) → U53_ggaag(T209, T210, X311, X312, T211, pN18_in_gagag(T210, X311, T209, X312, T211))
pN18_in_gagag(T210, T216, T209, X312, T211) → U54_gagag(T210, T216, T209, X312, T211, addI_in_ga(T210, T216))
addI_in_ga(0, s(s(s(0)))) → addI_out_ga(0, s(s(s(0))))
addI_in_ga(s(T219), s(X337)) → U7_ga(T219, X337, addI_in_ga(T219, X337))
U7_ga(T219, X337, addI_out_ga(T219, X337)) → addI_out_ga(s(T219), s(X337))
U54_gagag(T210, T216, T209, X312, T211, addI_out_ga(T210, T216)) → U55_gagag(T210, T216, T209, X312, T211, pN19_in_ggagg(T209, T216, X312, T210, T211))
pN19_in_ggagg(T209, T216, X312, T210, T211) → U56_ggagg(T209, T216, X312, T210, T211, notEqF_in_gg(T209, T216))
U56_ggagg(T209, T216, X312, T210, T211, notEqF_out_gg(T209, T216)) → U57_ggagg(T209, T216, X312, T210, T211, pN20_in_gagg(T209, X312, T210, T211))
pN20_in_gagg(T209, T224, T210, T211) → U58_gagg(T209, T224, T210, T211, addI_in_ga(T209, T224))
U58_gagg(T209, T224, T210, T211, addI_out_ga(T209, T224)) → U59_gagg(T209, T224, T210, T211, pN21_in_gggg(T210, T224, T209, T211))
pN21_in_gggg(T210, T224, T209, T211) → U60_gggg(T210, T224, T209, T211, notEqF_in_gg(T210, T224))
U60_gggg(T210, T224, T209, T211, notEqF_out_gg(T210, T224)) → U61_gggg(T210, T224, T209, T211, noattackY_in_gg(T209, T211))
noattackY_in_gg(T235, []) → noattackY_out_gg(T235, [])
noattackY_in_gg(T242, .(T243, T244)) → U19_gg(T242, T243, T244, pZ_in_ggaag(T242, T243, X380, X381, T244))
pZ_in_ggaag(T242, T243, X380, X381, T244) → U62_ggaag(T242, T243, X380, X381, T244, notEqF_in_gg(T242, T243))
U62_ggaag(T242, T243, X380, X381, T244, notEqF_out_gg(T242, T243)) → U63_ggaag(T242, T243, X380, X381, T244, pN22_in_gagag(T243, X380, T242, X381, T244))
pN22_in_gagag(T243, T249, T242, X381, T244) → U64_gagag(T243, T249, T242, X381, T244, addJ_in_ga(T243, T249))
addJ_in_ga(0, s(s(s(s(0))))) → addJ_out_ga(0, s(s(s(s(0)))))
addJ_in_ga(s(T252), s(X406)) → U8_ga(T252, X406, addJ_in_ga(T252, X406))
U8_ga(T252, X406, addJ_out_ga(T252, X406)) → addJ_out_ga(s(T252), s(X406))
U64_gagag(T243, T249, T242, X381, T244, addJ_out_ga(T243, T249)) → U65_gagag(T243, T249, T242, X381, T244, pN23_in_ggagg(T242, T249, X381, T243, T244))
pN23_in_ggagg(T242, T249, X381, T243, T244) → U66_ggagg(T242, T249, X381, T243, T244, notEqF_in_gg(T242, T249))
U66_ggagg(T242, T249, X381, T243, T244, notEqF_out_gg(T242, T249)) → U67_ggagg(T242, T249, X381, T243, T244, pN24_in_gagg(T242, X381, T243, T244))
pN24_in_gagg(T242, T257, T243, T244) → U68_gagg(T242, T257, T243, T244, addJ_in_ga(T242, T257))
U68_gagg(T242, T257, T243, T244, addJ_out_ga(T242, T257)) → U69_gagg(T242, T257, T243, T244, pN25_in_gggg(T243, T257, T242, T244))
pN25_in_gggg(T243, T257, T242, T244) → U70_gggg(T243, T257, T242, T244, notEqF_in_gg(T243, T257))
U70_gggg(T243, T257, T242, T244, notEqF_out_gg(T243, T257)) → U71_gggg(T243, T257, T242, T244, noattackN1_in_gg(T242, T244))
noattackN1_in_gg(T268, []) → noattackN1_out_gg(T268, [])
noattackN1_in_gg(T275, .(T276, T277)) → U20_gg(T275, T276, T277, pN2_in_ggaag(T275, T276, X449, X450, T277))
pN2_in_ggaag(T275, T276, X449, X450, T277) → U72_ggaag(T275, T276, X449, X450, T277, notEqF_in_gg(T275, T276))
U72_ggaag(T275, T276, X449, X450, T277, notEqF_out_gg(T275, T276)) → U73_ggaag(T275, T276, X449, X450, T277, pN26_in_gagag(T276, X449, T275, X450, T277))
pN26_in_gagag(T276, T282, T275, X450, T277) → U74_gagag(T276, T282, T275, X450, T277, addK_in_ga(T276, T282))
addK_in_ga(0, s(s(s(s(s(0)))))) → addK_out_ga(0, s(s(s(s(s(0))))))
addK_in_ga(s(T285), s(X475)) → U9_ga(T285, X475, addK_in_ga(T285, X475))
U9_ga(T285, X475, addK_out_ga(T285, X475)) → addK_out_ga(s(T285), s(X475))
U74_gagag(T276, T282, T275, X450, T277, addK_out_ga(T276, T282)) → U75_gagag(T276, T282, T275, X450, T277, pN27_in_ggagg(T275, T282, X450, T276, T277))
pN27_in_ggagg(T275, T282, X450, T276, T277) → U76_ggagg(T275, T282, X450, T276, T277, notEqF_in_gg(T275, T282))
U76_ggagg(T275, T282, X450, T276, T277, notEqF_out_gg(T275, T282)) → U77_ggagg(T275, T282, X450, T276, T277, pN28_in_gagg(T275, X450, T276, T277))
pN28_in_gagg(T275, T290, T276, T277) → U78_gagg(T275, T290, T276, T277, addK_in_ga(T275, T290))
U78_gagg(T275, T290, T276, T277, addK_out_ga(T275, T290)) → U79_gagg(T275, T290, T276, T277, pN29_in_gggg(T276, T290, T275, T277))
pN29_in_gggg(T276, T290, T275, T277) → U80_gggg(T276, T290, T275, T277, notEqF_in_gg(T276, T290))
U80_gggg(T276, T290, T275, T277, notEqF_out_gg(T276, T290)) → U81_gggg(T276, T290, T275, T277, noattackN3_in_gg(T275, T277))
noattackN3_in_gg(T301, []) → noattackN3_out_gg(T301, [])
noattackN3_in_gg(T308, .(T309, T310)) → U21_gg(T308, T309, T310, pN4_in_ggaag(T308, T309, X518, X519, T310))
pN4_in_ggaag(T308, T309, X518, X519, T310) → U82_ggaag(T308, T309, X518, X519, T310, notEqF_in_gg(T308, T309))
U82_ggaag(T308, T309, X518, X519, T310, notEqF_out_gg(T308, T309)) → U83_ggaag(T308, T309, X518, X519, T310, pN30_in_gagag(T309, X518, T308, X519, T310))
pN30_in_gagag(T309, T315, T308, X519, T310) → U84_gagag(T309, T315, T308, X519, T310, addL_in_ga(T309, T315))
addL_in_ga(0, s(s(s(s(s(s(0))))))) → addL_out_ga(0, s(s(s(s(s(s(0)))))))
addL_in_ga(s(T318), s(X544)) → U10_ga(T318, X544, addL_in_ga(T318, X544))
U10_ga(T318, X544, addL_out_ga(T318, X544)) → addL_out_ga(s(T318), s(X544))
U84_gagag(T309, T315, T308, X519, T310, addL_out_ga(T309, T315)) → U85_gagag(T309, T315, T308, X519, T310, pN31_in_ggagg(T308, T315, X519, T309, T310))
pN31_in_ggagg(T308, T315, X519, T309, T310) → U86_ggagg(T308, T315, X519, T309, T310, notEqF_in_gg(T308, T315))
U86_ggagg(T308, T315, X519, T309, T310, notEqF_out_gg(T308, T315)) → U87_ggagg(T308, T315, X519, T309, T310, pN32_in_gagg(T308, X519, T309, T310))
pN32_in_gagg(T308, T323, T309, T310) → U88_gagg(T308, T323, T309, T310, addL_in_ga(T308, T323))
U88_gagg(T308, T323, T309, T310, addL_out_ga(T308, T323)) → U89_gagg(T308, T323, T309, T310, pN33_in_gggg(T309, T323, T308, T310))
pN33_in_gggg(T309, T323, T308, T310) → U90_gggg(T309, T323, T308, T310, notEqF_in_gg(T309, T323))
U90_gggg(T309, T323, T308, T310, notEqF_out_gg(T309, T323)) → U91_gggg(T309, T323, T308, T310, noattackN5_in_gg(T308, T310))
noattackN5_in_gg(T334, []) → noattackN5_out_gg(T334, [])
noattackN5_in_gg(T341, .(T342, T343)) → U22_gg(T341, T342, T343, pN6_in_ggaagg(T341, T342, X587, X588, T343, s(s(s(s(s(s(s(0)))))))))
pN6_in_ggaagg(T341, T342, X587, X588, T343, T346) → U92_ggaagg(T341, T342, X587, X588, T343, T346, notEqF_in_gg(T341, T342))
U92_ggaagg(T341, T342, X587, X588, T343, T346, notEqF_out_gg(T341, T342)) → U93_ggaagg(T341, T342, X587, X588, T343, T346, pN34_in_gagagg(T342, X587, T341, X588, T343, T346))
pN34_in_gagagg(T342, T351, T341, X588, T343, T346) → U94_gagagg(T342, T351, T341, X588, T343, T346, addM_in_ga(T342, T351))
addM_in_ga(0, s(s(s(s(s(s(s(0)))))))) → addM_out_ga(0, s(s(s(s(s(s(s(0))))))))
addM_in_ga(s(T354), s(X615)) → U11_ga(T354, X615, addM_in_ga(T354, X615))
U11_ga(T354, X615, addM_out_ga(T354, X615)) → addM_out_ga(s(T354), s(X615))
U94_gagagg(T342, T351, T341, X588, T343, T346, addM_out_ga(T342, T351)) → U95_gagagg(T342, T351, T341, X588, T343, T346, pN35_in_ggaggg(T341, T351, X588, T342, T343, T346))
pN35_in_ggaggg(T341, T351, X588, T342, T343, T346) → U96_ggaggg(T341, T351, X588, T342, T343, T346, notEqF_in_gg(T341, T351))
U96_ggaggg(T341, T351, X588, T342, T343, T346, notEqF_out_gg(T341, T351)) → U97_ggaggg(T341, T351, X588, T342, T343, T346, pN36_in_gaggg(T341, X588, T342, T343, T346))
pN36_in_gaggg(T341, T359, T342, T343, T346) → U98_gaggg(T341, T359, T342, T343, T346, addM_in_ga(T341, T359))
U98_gaggg(T341, T359, T342, T343, T346, addM_out_ga(T341, T359)) → U99_gaggg(T341, T359, T342, T343, T346, pN37_in_ggggg(T342, T359, T341, T343, T346))
pN37_in_ggggg(T342, T359, T341, T343, T346) → U100_ggggg(T342, T359, T341, T343, T346, notEqF_in_gg(T342, T359))
U100_ggggg(T342, T359, T341, T343, T346, notEqF_out_gg(T342, T359)) → U101_ggggg(T342, T359, T341, T343, T346, noattackN7_in_ggg(T341, T343, T346))
noattackN7_in_ggg(T376, [], T377) → noattackN7_out_ggg(T376, [], T377)
noattackN7_in_ggg(T386, .(T387, T388), T389) → U23_ggg(T386, T387, T388, T389, pN8_in_gggaag(T386, T387, T389, X658, X659, T388))
pN8_in_gggaag(T386, T387, T389, X658, X659, T388) → U102_gggaag(T386, T387, T389, X658, X659, T388, notEqF_in_gg(T386, T387))
U102_gggaag(T386, T387, T389, X658, X659, T388, notEqF_out_gg(T386, T387)) → U103_gggaag(T386, T387, T389, X658, X659, T388, pN38_in_ggagag(T387, T389, X658, T386, X659, T388))
pN38_in_ggagag(T387, T389, T396, T386, X659, T388) → U104_ggagag(T387, T389, T396, T386, X659, T388, addN_in_gga(T387, T389, T396))
addN_in_gga(0, T403, s(T403)) → addN_out_gga(0, T403, s(T403))
addN_in_gga(s(T408), T409, s(X684)) → U12_gga(T408, T409, X684, addN_in_gga(T408, T409, X684))
U12_gga(T408, T409, X684, addN_out_gga(T408, T409, X684)) → addN_out_gga(s(T408), T409, s(X684))
U104_ggagag(T387, T389, T396, T386, X659, T388, addN_out_gga(T387, T389, T396)) → U105_ggagag(T387, T389, T396, T386, X659, T388, pN39_in_gggagg(T386, T396, T389, X659, T387, T388))
pN39_in_gggagg(T386, T396, T389, X659, T387, T388) → U106_gggagg(T386, T396, T389, X659, T387, T388, notEqF_in_gg(T386, T396))
U106_gggagg(T386, T396, T389, X659, T387, T388, notEqF_out_gg(T386, T396)) → U107_gggagg(T386, T396, T389, X659, T387, T388, pN40_in_ggagg(T386, T389, X659, T387, T388))
pN40_in_ggagg(T386, T389, T418, T387, T388) → U108_ggagg(T386, T389, T418, T387, T388, addN_in_gga(T386, T389, T418))
U108_ggagg(T386, T389, T418, T387, T388, addN_out_gga(T386, T389, T418)) → U109_ggagg(T386, T389, T418, T387, T388, pN37_in_ggggg(T387, T418, T386, T388, s(T389)))
U109_ggagg(T386, T389, T418, T387, T388, pN37_out_ggggg(T387, T418, T386, T388, s(T389))) → pN40_out_ggagg(T386, T389, T418, T387, T388)
U107_gggagg(T386, T396, T389, X659, T387, T388, pN40_out_ggagg(T386, T389, X659, T387, T388)) → pN39_out_gggagg(T386, T396, T389, X659, T387, T388)
U105_ggagag(T387, T389, T396, T386, X659, T388, pN39_out_gggagg(T386, T396, T389, X659, T387, T388)) → pN38_out_ggagag(T387, T389, T396, T386, X659, T388)
U103_gggaag(T386, T387, T389, X658, X659, T388, pN38_out_ggagag(T387, T389, X658, T386, X659, T388)) → pN8_out_gggaag(T386, T387, T389, X658, X659, T388)
U23_ggg(T386, T387, T388, T389, pN8_out_gggaag(T386, T387, T389, X658, X659, T388)) → noattackN7_out_ggg(T386, .(T387, T388), T389)
U101_ggggg(T342, T359, T341, T343, T346, noattackN7_out_ggg(T341, T343, T346)) → pN37_out_ggggg(T342, T359, T341, T343, T346)
U99_gaggg(T341, T359, T342, T343, T346, pN37_out_ggggg(T342, T359, T341, T343, T346)) → pN36_out_gaggg(T341, T359, T342, T343, T346)
U97_ggaggg(T341, T351, X588, T342, T343, T346, pN36_out_gaggg(T341, X588, T342, T343, T346)) → pN35_out_ggaggg(T341, T351, X588, T342, T343, T346)
U95_gagagg(T342, T351, T341, X588, T343, T346, pN35_out_ggaggg(T341, T351, X588, T342, T343, T346)) → pN34_out_gagagg(T342, T351, T341, X588, T343, T346)
U93_ggaagg(T341, T342, X587, X588, T343, T346, pN34_out_gagagg(T342, X587, T341, X588, T343, T346)) → pN6_out_ggaagg(T341, T342, X587, X588, T343, T346)
U22_gg(T341, T342, T343, pN6_out_ggaagg(T341, T342, X587, X588, T343, s(s(s(s(s(s(s(0))))))))) → noattackN5_out_gg(T341, .(T342, T343))
U91_gggg(T309, T323, T308, T310, noattackN5_out_gg(T308, T310)) → pN33_out_gggg(T309, T323, T308, T310)
U89_gagg(T308, T323, T309, T310, pN33_out_gggg(T309, T323, T308, T310)) → pN32_out_gagg(T308, T323, T309, T310)
U87_ggagg(T308, T315, X519, T309, T310, pN32_out_gagg(T308, X519, T309, T310)) → pN31_out_ggagg(T308, T315, X519, T309, T310)
U85_gagag(T309, T315, T308, X519, T310, pN31_out_ggagg(T308, T315, X519, T309, T310)) → pN30_out_gagag(T309, T315, T308, X519, T310)
U83_ggaag(T308, T309, X518, X519, T310, pN30_out_gagag(T309, X518, T308, X519, T310)) → pN4_out_ggaag(T308, T309, X518, X519, T310)
U21_gg(T308, T309, T310, pN4_out_ggaag(T308, T309, X518, X519, T310)) → noattackN3_out_gg(T308, .(T309, T310))
U81_gggg(T276, T290, T275, T277, noattackN3_out_gg(T275, T277)) → pN29_out_gggg(T276, T290, T275, T277)
U79_gagg(T275, T290, T276, T277, pN29_out_gggg(T276, T290, T275, T277)) → pN28_out_gagg(T275, T290, T276, T277)
U77_ggagg(T275, T282, X450, T276, T277, pN28_out_gagg(T275, X450, T276, T277)) → pN27_out_ggagg(T275, T282, X450, T276, T277)
U75_gagag(T276, T282, T275, X450, T277, pN27_out_ggagg(T275, T282, X450, T276, T277)) → pN26_out_gagag(T276, T282, T275, X450, T277)
U73_ggaag(T275, T276, X449, X450, T277, pN26_out_gagag(T276, X449, T275, X450, T277)) → pN2_out_ggaag(T275, T276, X449, X450, T277)
U20_gg(T275, T276, T277, pN2_out_ggaag(T275, T276, X449, X450, T277)) → noattackN1_out_gg(T275, .(T276, T277))
U71_gggg(T243, T257, T242, T244, noattackN1_out_gg(T242, T244)) → pN25_out_gggg(T243, T257, T242, T244)
U69_gagg(T242, T257, T243, T244, pN25_out_gggg(T243, T257, T242, T244)) → pN24_out_gagg(T242, T257, T243, T244)
U67_ggagg(T242, T249, X381, T243, T244, pN24_out_gagg(T242, X381, T243, T244)) → pN23_out_ggagg(T242, T249, X381, T243, T244)
U65_gagag(T243, T249, T242, X381, T244, pN23_out_ggagg(T242, T249, X381, T243, T244)) → pN22_out_gagag(T243, T249, T242, X381, T244)
U63_ggaag(T242, T243, X380, X381, T244, pN22_out_gagag(T243, X380, T242, X381, T244)) → pZ_out_ggaag(T242, T243, X380, X381, T244)
U19_gg(T242, T243, T244, pZ_out_ggaag(T242, T243, X380, X381, T244)) → noattackY_out_gg(T242, .(T243, T244))
U61_gggg(T210, T224, T209, T211, noattackY_out_gg(T209, T211)) → pN21_out_gggg(T210, T224, T209, T211)
U59_gagg(T209, T224, T210, T211, pN21_out_gggg(T210, T224, T209, T211)) → pN20_out_gagg(T209, T224, T210, T211)
U57_ggagg(T209, T216, X312, T210, T211, pN20_out_gagg(T209, X312, T210, T211)) → pN19_out_ggagg(T209, T216, X312, T210, T211)
U55_gagag(T210, T216, T209, X312, T211, pN19_out_ggagg(T209, T216, X312, T210, T211)) → pN18_out_gagag(T210, T216, T209, X312, T211)
U53_ggaag(T209, T210, X311, X312, T211, pN18_out_gagag(T210, X311, T209, X312, T211)) → pX_out_ggaag(T209, T210, X311, X312, T211)
U18_gg(T209, T210, T211, pX_out_ggaag(T209, T210, X311, X312, T211)) → noattackW_out_gg(T209, .(T210, T211))
U51_gggg(T177, T191, T176, T178, noattackW_out_gg(T176, T178)) → pN17_out_gggg(T177, T191, T176, T178)
U49_gagg(T176, T191, T177, T178, pN17_out_gggg(T177, T191, T176, T178)) → pN16_out_gagg(T176, T191, T177, T178)
U47_ggagg(T176, T183, X243, T177, T178, pN16_out_gagg(T176, X243, T177, T178)) → pN15_out_ggagg(T176, T183, X243, T177, T178)
U45_gagag(T177, T183, T176, X243, T178, pN15_out_ggagg(T176, T183, X243, T177, T178)) → pN14_out_gagag(T177, T183, T176, X243, T178)
U43_ggaag(T176, T177, X242, X243, T178, pN14_out_gagag(T177, X242, T176, X243, T178)) → pV_out_ggaag(T176, T177, X242, X243, T178)
U17_gg(T176, T177, T178, pV_out_ggaag(T176, T177, X242, X243, T178)) → noattackU_out_gg(T176, .(T177, T178))
U41_gggg(T126, T158, T125, T127, noattackU_out_gg(T125, T127)) → pN13_out_gggg(T126, T158, T125, T127)
U39_gagg(T125, T158, T126, T127, pN13_out_gggg(T126, T158, T125, T127)) → pN12_out_gagg(T125, T158, T126, T127)
U37_ggagg(T125, T150, X156, T126, T127, pN12_out_gagg(T125, X156, T126, T127)) → pN11_out_ggagg(T125, T150, X156, T126, T127)
U35_gagag(T126, T150, T125, X156, T127, pN11_out_ggagg(T125, T150, X156, T126, T127)) → pN10_out_gagag(T126, T150, T125, X156, T127)
U33_ggaag(T125, T126, X155, X156, T127, pN10_out_gagag(T126, X155, T125, X156, T127)) → pS_out_ggaag(T125, T126, X155, X156, T127)
U15_gg(T125, T126, T127, pS_out_ggaag(T125, T126, X155, X156, T127)) → noattackR_out_gg(T125, .(T126, T127))
U30_gg(T108, T109, noattackR_out_gg(T108, T109)) → U31_gg(T108, T109, safeT_in_g(T109))
safeT_in_g([]) → safeT_out_g([])
safeT_in_g(.(T427, T428)) → U16_g(T427, T428, pQ_in_gg(T427, T428))
U16_g(T427, T428, pQ_out_gg(T427, T428)) → safeT_out_g(.(T427, T428))
U31_gg(T108, T109, safeT_out_g(T109)) → pQ_out_gg(T108, T109)
U14_gg(T108, T109, pQ_out_gg(T108, T109)) → safeP_out_gg(T108, T109)
U27_gag(T20, T77, T22, safeP_out_gg(T22, T77)) → pN9_out_gag(T20, T77, T22)
U25_agaa(T22, T15, T20, T21, pN9_out_gag(T20, T21, T22)) → pB_out_agaa(T22, T15, T20, T21)
U1_a(T11, T12, pB_out_agaa(T11, .(s(s(0)), .(s(s(s(0))), .(s(s(s(s(0)))), .(s(s(s(s(s(0))))), .(s(s(s(s(s(s(0)))))), .(s(s(s(s(s(s(s(0))))))), .(s(s(s(s(s(s(s(s(0)))))))), []))))))), X16, T12)) → queensA_out_a(.(T11, T12))
ADDK_IN_GA(s(T285), s(X475)) → ADDK_IN_GA(T285, X475)
ADDK_IN_GA(s(T285)) → ADDK_IN_GA(T285)
From the DPs we obtained the following set of size-change graphs:
ADDJ_IN_GA(s(T252), s(X406)) → ADDJ_IN_GA(T252, X406)
queensA_in_a(.(T11, T12)) → U1_a(T11, T12, pB_in_agaa(T11, .(s(s(0)), .(s(s(s(0))), .(s(s(s(s(0)))), .(s(s(s(s(s(0))))), .(s(s(s(s(s(s(0)))))), .(s(s(s(s(s(s(s(0))))))), .(s(s(s(s(s(s(s(s(0)))))))), []))))))), X16, T12))
pB_in_agaa(T22, T15, T20, T21) → U24_agaa(T22, T15, T20, T21, deleteO_in_aga(T22, T15, T20))
deleteO_in_aga(s(0), T36, T36) → deleteO_out_aga(s(0), T36, T36)
deleteO_in_aga(T48, T47, .(s(0), X57)) → U13_aga(T48, T47, X57, deleteC_in_aga(T48, T47, X57))
deleteC_in_aga(T61, .(T61, T62), T62) → deleteC_out_aga(T61, .(T61, T62), T62)
deleteC_in_aga(T72, .(T70, T71), .(T70, X86)) → U2_aga(T72, T70, T71, X86, deleteC_in_aga(T72, T71, X86))
U2_aga(T72, T70, T71, X86, deleteC_out_aga(T72, T71, X86)) → deleteC_out_aga(T72, .(T70, T71), .(T70, X86))
U13_aga(T48, T47, X57, deleteC_out_aga(T48, T47, X57)) → deleteO_out_aga(T48, T47, .(s(0), X57))
U24_agaa(T22, T15, T20, T21, deleteO_out_aga(T22, T15, T20)) → U25_agaa(T22, T15, T20, T21, pN9_in_gag(T20, T21, T22))
pN9_in_gag(T20, T77, T22) → U26_gag(T20, T77, T22, permD_in_ga(T20, T77))
permD_in_ga([], []) → permD_out_ga([], [])
permD_in_ga(.(T86, T87), .(T90, T91)) → U3_ga(T86, T87, T90, T91, pE_in_aggaa(T90, T86, T87, X104, T91))
pE_in_aggaa(T90, T86, T87, T96, T97) → U28_aggaa(T90, T86, T87, T96, T97, deleteC_in_aga(T90, .(T86, T87), T96))
U28_aggaa(T90, T86, T87, T96, T97, deleteC_out_aga(T90, .(T86, T87), T96)) → U29_aggaa(T90, T86, T87, T96, T97, permD_in_ga(T96, T97))
U29_aggaa(T90, T86, T87, T96, T97, permD_out_ga(T96, T97)) → pE_out_aggaa(T90, T86, T87, T96, T97)
U3_ga(T86, T87, T90, T91, pE_out_aggaa(T90, T86, T87, X104, T91)) → permD_out_ga(.(T86, T87), .(T90, T91))
U26_gag(T20, T77, T22, permD_out_ga(T20, T77)) → U27_gag(T20, T77, T22, safeP_in_gg(T22, T77))
safeP_in_gg(T108, T109) → U14_gg(T108, T109, pQ_in_gg(T108, T109))
pQ_in_gg(T108, T109) → U30_gg(T108, T109, noattackR_in_gg(T108, T109))
noattackR_in_gg(T118, []) → noattackR_out_gg(T118, [])
noattackR_in_gg(T125, .(T126, T127)) → U15_gg(T125, T126, T127, pS_in_ggaag(T125, T126, X155, X156, T127))
pS_in_ggaag(T125, T126, X155, X156, T127) → U32_ggaag(T125, T126, X155, X156, T127, notEqF_in_gg(T125, T126))
notEqF_in_gg(0, s(T136)) → notEqF_out_gg(0, s(T136))
notEqF_in_gg(s(T141), 0) → notEqF_out_gg(s(T141), 0)
notEqF_in_gg(s(T146), s(T147)) → U4_gg(T146, T147, notEqF_in_gg(T146, T147))
U4_gg(T146, T147, notEqF_out_gg(T146, T147)) → notEqF_out_gg(s(T146), s(T147))
U32_ggaag(T125, T126, X155, X156, T127, notEqF_out_gg(T125, T126)) → U33_ggaag(T125, T126, X155, X156, T127, pN10_in_gagag(T126, X155, T125, X156, T127))
pN10_in_gagag(T126, T150, T125, X156, T127) → U34_gagag(T126, T150, T125, X156, T127, addG_in_ga(T126, T150))
addG_in_ga(0, s(0)) → addG_out_ga(0, s(0))
addG_in_ga(s(T153), s(X199)) → U5_ga(T153, X199, addG_in_ga(T153, X199))
U5_ga(T153, X199, addG_out_ga(T153, X199)) → addG_out_ga(s(T153), s(X199))
U34_gagag(T126, T150, T125, X156, T127, addG_out_ga(T126, T150)) → U35_gagag(T126, T150, T125, X156, T127, pN11_in_ggagg(T125, T150, X156, T126, T127))
pN11_in_ggagg(T125, T150, X156, T126, T127) → U36_ggagg(T125, T150, X156, T126, T127, notEqF_in_gg(T125, T150))
U36_ggagg(T125, T150, X156, T126, T127, notEqF_out_gg(T125, T150)) → U37_ggagg(T125, T150, X156, T126, T127, pN12_in_gagg(T125, X156, T126, T127))
pN12_in_gagg(T125, T158, T126, T127) → U38_gagg(T125, T158, T126, T127, addG_in_ga(T125, T158))
U38_gagg(T125, T158, T126, T127, addG_out_ga(T125, T158)) → U39_gagg(T125, T158, T126, T127, pN13_in_gggg(T126, T158, T125, T127))
pN13_in_gggg(T126, T158, T125, T127) → U40_gggg(T126, T158, T125, T127, notEqF_in_gg(T126, T158))
U40_gggg(T126, T158, T125, T127, notEqF_out_gg(T126, T158)) → U41_gggg(T126, T158, T125, T127, noattackU_in_gg(T125, T127))
noattackU_in_gg(T169, []) → noattackU_out_gg(T169, [])
noattackU_in_gg(T176, .(T177, T178)) → U17_gg(T176, T177, T178, pV_in_ggaag(T176, T177, X242, X243, T178))
pV_in_ggaag(T176, T177, X242, X243, T178) → U42_ggaag(T176, T177, X242, X243, T178, notEqF_in_gg(T176, T177))
U42_ggaag(T176, T177, X242, X243, T178, notEqF_out_gg(T176, T177)) → U43_ggaag(T176, T177, X242, X243, T178, pN14_in_gagag(T177, X242, T176, X243, T178))
pN14_in_gagag(T177, T183, T176, X243, T178) → U44_gagag(T177, T183, T176, X243, T178, addH_in_ga(T177, T183))
addH_in_ga(0, s(s(0))) → addH_out_ga(0, s(s(0)))
addH_in_ga(s(T186), s(X268)) → U6_ga(T186, X268, addH_in_ga(T186, X268))
U6_ga(T186, X268, addH_out_ga(T186, X268)) → addH_out_ga(s(T186), s(X268))
U44_gagag(T177, T183, T176, X243, T178, addH_out_ga(T177, T183)) → U45_gagag(T177, T183, T176, X243, T178, pN15_in_ggagg(T176, T183, X243, T177, T178))
pN15_in_ggagg(T176, T183, X243, T177, T178) → U46_ggagg(T176, T183, X243, T177, T178, notEqF_in_gg(T176, T183))
U46_ggagg(T176, T183, X243, T177, T178, notEqF_out_gg(T176, T183)) → U47_ggagg(T176, T183, X243, T177, T178, pN16_in_gagg(T176, X243, T177, T178))
pN16_in_gagg(T176, T191, T177, T178) → U48_gagg(T176, T191, T177, T178, addH_in_ga(T176, T191))
U48_gagg(T176, T191, T177, T178, addH_out_ga(T176, T191)) → U49_gagg(T176, T191, T177, T178, pN17_in_gggg(T177, T191, T176, T178))
pN17_in_gggg(T177, T191, T176, T178) → U50_gggg(T177, T191, T176, T178, notEqF_in_gg(T177, T191))
U50_gggg(T177, T191, T176, T178, notEqF_out_gg(T177, T191)) → U51_gggg(T177, T191, T176, T178, noattackW_in_gg(T176, T178))
noattackW_in_gg(T202, []) → noattackW_out_gg(T202, [])
noattackW_in_gg(T209, .(T210, T211)) → U18_gg(T209, T210, T211, pX_in_ggaag(T209, T210, X311, X312, T211))
pX_in_ggaag(T209, T210, X311, X312, T211) → U52_ggaag(T209, T210, X311, X312, T211, notEqF_in_gg(T209, T210))
U52_ggaag(T209, T210, X311, X312, T211, notEqF_out_gg(T209, T210)) → U53_ggaag(T209, T210, X311, X312, T211, pN18_in_gagag(T210, X311, T209, X312, T211))
pN18_in_gagag(T210, T216, T209, X312, T211) → U54_gagag(T210, T216, T209, X312, T211, addI_in_ga(T210, T216))
addI_in_ga(0, s(s(s(0)))) → addI_out_ga(0, s(s(s(0))))
addI_in_ga(s(T219), s(X337)) → U7_ga(T219, X337, addI_in_ga(T219, X337))
U7_ga(T219, X337, addI_out_ga(T219, X337)) → addI_out_ga(s(T219), s(X337))
U54_gagag(T210, T216, T209, X312, T211, addI_out_ga(T210, T216)) → U55_gagag(T210, T216, T209, X312, T211, pN19_in_ggagg(T209, T216, X312, T210, T211))
pN19_in_ggagg(T209, T216, X312, T210, T211) → U56_ggagg(T209, T216, X312, T210, T211, notEqF_in_gg(T209, T216))
U56_ggagg(T209, T216, X312, T210, T211, notEqF_out_gg(T209, T216)) → U57_ggagg(T209, T216, X312, T210, T211, pN20_in_gagg(T209, X312, T210, T211))
pN20_in_gagg(T209, T224, T210, T211) → U58_gagg(T209, T224, T210, T211, addI_in_ga(T209, T224))
U58_gagg(T209, T224, T210, T211, addI_out_ga(T209, T224)) → U59_gagg(T209, T224, T210, T211, pN21_in_gggg(T210, T224, T209, T211))
pN21_in_gggg(T210, T224, T209, T211) → U60_gggg(T210, T224, T209, T211, notEqF_in_gg(T210, T224))
U60_gggg(T210, T224, T209, T211, notEqF_out_gg(T210, T224)) → U61_gggg(T210, T224, T209, T211, noattackY_in_gg(T209, T211))
noattackY_in_gg(T235, []) → noattackY_out_gg(T235, [])
noattackY_in_gg(T242, .(T243, T244)) → U19_gg(T242, T243, T244, pZ_in_ggaag(T242, T243, X380, X381, T244))
pZ_in_ggaag(T242, T243, X380, X381, T244) → U62_ggaag(T242, T243, X380, X381, T244, notEqF_in_gg(T242, T243))
U62_ggaag(T242, T243, X380, X381, T244, notEqF_out_gg(T242, T243)) → U63_ggaag(T242, T243, X380, X381, T244, pN22_in_gagag(T243, X380, T242, X381, T244))
pN22_in_gagag(T243, T249, T242, X381, T244) → U64_gagag(T243, T249, T242, X381, T244, addJ_in_ga(T243, T249))
addJ_in_ga(0, s(s(s(s(0))))) → addJ_out_ga(0, s(s(s(s(0)))))
addJ_in_ga(s(T252), s(X406)) → U8_ga(T252, X406, addJ_in_ga(T252, X406))
U8_ga(T252, X406, addJ_out_ga(T252, X406)) → addJ_out_ga(s(T252), s(X406))
U64_gagag(T243, T249, T242, X381, T244, addJ_out_ga(T243, T249)) → U65_gagag(T243, T249, T242, X381, T244, pN23_in_ggagg(T242, T249, X381, T243, T244))
pN23_in_ggagg(T242, T249, X381, T243, T244) → U66_ggagg(T242, T249, X381, T243, T244, notEqF_in_gg(T242, T249))
U66_ggagg(T242, T249, X381, T243, T244, notEqF_out_gg(T242, T249)) → U67_ggagg(T242, T249, X381, T243, T244, pN24_in_gagg(T242, X381, T243, T244))
pN24_in_gagg(T242, T257, T243, T244) → U68_gagg(T242, T257, T243, T244, addJ_in_ga(T242, T257))
U68_gagg(T242, T257, T243, T244, addJ_out_ga(T242, T257)) → U69_gagg(T242, T257, T243, T244, pN25_in_gggg(T243, T257, T242, T244))
pN25_in_gggg(T243, T257, T242, T244) → U70_gggg(T243, T257, T242, T244, notEqF_in_gg(T243, T257))
U70_gggg(T243, T257, T242, T244, notEqF_out_gg(T243, T257)) → U71_gggg(T243, T257, T242, T244, noattackN1_in_gg(T242, T244))
noattackN1_in_gg(T268, []) → noattackN1_out_gg(T268, [])
noattackN1_in_gg(T275, .(T276, T277)) → U20_gg(T275, T276, T277, pN2_in_ggaag(T275, T276, X449, X450, T277))
pN2_in_ggaag(T275, T276, X449, X450, T277) → U72_ggaag(T275, T276, X449, X450, T277, notEqF_in_gg(T275, T276))
U72_ggaag(T275, T276, X449, X450, T277, notEqF_out_gg(T275, T276)) → U73_ggaag(T275, T276, X449, X450, T277, pN26_in_gagag(T276, X449, T275, X450, T277))
pN26_in_gagag(T276, T282, T275, X450, T277) → U74_gagag(T276, T282, T275, X450, T277, addK_in_ga(T276, T282))
addK_in_ga(0, s(s(s(s(s(0)))))) → addK_out_ga(0, s(s(s(s(s(0))))))
addK_in_ga(s(T285), s(X475)) → U9_ga(T285, X475, addK_in_ga(T285, X475))
U9_ga(T285, X475, addK_out_ga(T285, X475)) → addK_out_ga(s(T285), s(X475))
U74_gagag(T276, T282, T275, X450, T277, addK_out_ga(T276, T282)) → U75_gagag(T276, T282, T275, X450, T277, pN27_in_ggagg(T275, T282, X450, T276, T277))
pN27_in_ggagg(T275, T282, X450, T276, T277) → U76_ggagg(T275, T282, X450, T276, T277, notEqF_in_gg(T275, T282))
U76_ggagg(T275, T282, X450, T276, T277, notEqF_out_gg(T275, T282)) → U77_ggagg(T275, T282, X450, T276, T277, pN28_in_gagg(T275, X450, T276, T277))
pN28_in_gagg(T275, T290, T276, T277) → U78_gagg(T275, T290, T276, T277, addK_in_ga(T275, T290))
U78_gagg(T275, T290, T276, T277, addK_out_ga(T275, T290)) → U79_gagg(T275, T290, T276, T277, pN29_in_gggg(T276, T290, T275, T277))
pN29_in_gggg(T276, T290, T275, T277) → U80_gggg(T276, T290, T275, T277, notEqF_in_gg(T276, T290))
U80_gggg(T276, T290, T275, T277, notEqF_out_gg(T276, T290)) → U81_gggg(T276, T290, T275, T277, noattackN3_in_gg(T275, T277))
noattackN3_in_gg(T301, []) → noattackN3_out_gg(T301, [])
noattackN3_in_gg(T308, .(T309, T310)) → U21_gg(T308, T309, T310, pN4_in_ggaag(T308, T309, X518, X519, T310))
pN4_in_ggaag(T308, T309, X518, X519, T310) → U82_ggaag(T308, T309, X518, X519, T310, notEqF_in_gg(T308, T309))
U82_ggaag(T308, T309, X518, X519, T310, notEqF_out_gg(T308, T309)) → U83_ggaag(T308, T309, X518, X519, T310, pN30_in_gagag(T309, X518, T308, X519, T310))
pN30_in_gagag(T309, T315, T308, X519, T310) → U84_gagag(T309, T315, T308, X519, T310, addL_in_ga(T309, T315))
addL_in_ga(0, s(s(s(s(s(s(0))))))) → addL_out_ga(0, s(s(s(s(s(s(0)))))))
addL_in_ga(s(T318), s(X544)) → U10_ga(T318, X544, addL_in_ga(T318, X544))
U10_ga(T318, X544, addL_out_ga(T318, X544)) → addL_out_ga(s(T318), s(X544))
U84_gagag(T309, T315, T308, X519, T310, addL_out_ga(T309, T315)) → U85_gagag(T309, T315, T308, X519, T310, pN31_in_ggagg(T308, T315, X519, T309, T310))
pN31_in_ggagg(T308, T315, X519, T309, T310) → U86_ggagg(T308, T315, X519, T309, T310, notEqF_in_gg(T308, T315))
U86_ggagg(T308, T315, X519, T309, T310, notEqF_out_gg(T308, T315)) → U87_ggagg(T308, T315, X519, T309, T310, pN32_in_gagg(T308, X519, T309, T310))
pN32_in_gagg(T308, T323, T309, T310) → U88_gagg(T308, T323, T309, T310, addL_in_ga(T308, T323))
U88_gagg(T308, T323, T309, T310, addL_out_ga(T308, T323)) → U89_gagg(T308, T323, T309, T310, pN33_in_gggg(T309, T323, T308, T310))
pN33_in_gggg(T309, T323, T308, T310) → U90_gggg(T309, T323, T308, T310, notEqF_in_gg(T309, T323))
U90_gggg(T309, T323, T308, T310, notEqF_out_gg(T309, T323)) → U91_gggg(T309, T323, T308, T310, noattackN5_in_gg(T308, T310))
noattackN5_in_gg(T334, []) → noattackN5_out_gg(T334, [])
noattackN5_in_gg(T341, .(T342, T343)) → U22_gg(T341, T342, T343, pN6_in_ggaagg(T341, T342, X587, X588, T343, s(s(s(s(s(s(s(0)))))))))
pN6_in_ggaagg(T341, T342, X587, X588, T343, T346) → U92_ggaagg(T341, T342, X587, X588, T343, T346, notEqF_in_gg(T341, T342))
U92_ggaagg(T341, T342, X587, X588, T343, T346, notEqF_out_gg(T341, T342)) → U93_ggaagg(T341, T342, X587, X588, T343, T346, pN34_in_gagagg(T342, X587, T341, X588, T343, T346))
pN34_in_gagagg(T342, T351, T341, X588, T343, T346) → U94_gagagg(T342, T351, T341, X588, T343, T346, addM_in_ga(T342, T351))
addM_in_ga(0, s(s(s(s(s(s(s(0)))))))) → addM_out_ga(0, s(s(s(s(s(s(s(0))))))))
addM_in_ga(s(T354), s(X615)) → U11_ga(T354, X615, addM_in_ga(T354, X615))
U11_ga(T354, X615, addM_out_ga(T354, X615)) → addM_out_ga(s(T354), s(X615))
U94_gagagg(T342, T351, T341, X588, T343, T346, addM_out_ga(T342, T351)) → U95_gagagg(T342, T351, T341, X588, T343, T346, pN35_in_ggaggg(T341, T351, X588, T342, T343, T346))
pN35_in_ggaggg(T341, T351, X588, T342, T343, T346) → U96_ggaggg(T341, T351, X588, T342, T343, T346, notEqF_in_gg(T341, T351))
U96_ggaggg(T341, T351, X588, T342, T343, T346, notEqF_out_gg(T341, T351)) → U97_ggaggg(T341, T351, X588, T342, T343, T346, pN36_in_gaggg(T341, X588, T342, T343, T346))
pN36_in_gaggg(T341, T359, T342, T343, T346) → U98_gaggg(T341, T359, T342, T343, T346, addM_in_ga(T341, T359))
U98_gaggg(T341, T359, T342, T343, T346, addM_out_ga(T341, T359)) → U99_gaggg(T341, T359, T342, T343, T346, pN37_in_ggggg(T342, T359, T341, T343, T346))
pN37_in_ggggg(T342, T359, T341, T343, T346) → U100_ggggg(T342, T359, T341, T343, T346, notEqF_in_gg(T342, T359))
U100_ggggg(T342, T359, T341, T343, T346, notEqF_out_gg(T342, T359)) → U101_ggggg(T342, T359, T341, T343, T346, noattackN7_in_ggg(T341, T343, T346))
noattackN7_in_ggg(T376, [], T377) → noattackN7_out_ggg(T376, [], T377)
noattackN7_in_ggg(T386, .(T387, T388), T389) → U23_ggg(T386, T387, T388, T389, pN8_in_gggaag(T386, T387, T389, X658, X659, T388))
pN8_in_gggaag(T386, T387, T389, X658, X659, T388) → U102_gggaag(T386, T387, T389, X658, X659, T388, notEqF_in_gg(T386, T387))
U102_gggaag(T386, T387, T389, X658, X659, T388, notEqF_out_gg(T386, T387)) → U103_gggaag(T386, T387, T389, X658, X659, T388, pN38_in_ggagag(T387, T389, X658, T386, X659, T388))
pN38_in_ggagag(T387, T389, T396, T386, X659, T388) → U104_ggagag(T387, T389, T396, T386, X659, T388, addN_in_gga(T387, T389, T396))
addN_in_gga(0, T403, s(T403)) → addN_out_gga(0, T403, s(T403))
addN_in_gga(s(T408), T409, s(X684)) → U12_gga(T408, T409, X684, addN_in_gga(T408, T409, X684))
U12_gga(T408, T409, X684, addN_out_gga(T408, T409, X684)) → addN_out_gga(s(T408), T409, s(X684))
U104_ggagag(T387, T389, T396, T386, X659, T388, addN_out_gga(T387, T389, T396)) → U105_ggagag(T387, T389, T396, T386, X659, T388, pN39_in_gggagg(T386, T396, T389, X659, T387, T388))
pN39_in_gggagg(T386, T396, T389, X659, T387, T388) → U106_gggagg(T386, T396, T389, X659, T387, T388, notEqF_in_gg(T386, T396))
U106_gggagg(T386, T396, T389, X659, T387, T388, notEqF_out_gg(T386, T396)) → U107_gggagg(T386, T396, T389, X659, T387, T388, pN40_in_ggagg(T386, T389, X659, T387, T388))
pN40_in_ggagg(T386, T389, T418, T387, T388) → U108_ggagg(T386, T389, T418, T387, T388, addN_in_gga(T386, T389, T418))
U108_ggagg(T386, T389, T418, T387, T388, addN_out_gga(T386, T389, T418)) → U109_ggagg(T386, T389, T418, T387, T388, pN37_in_ggggg(T387, T418, T386, T388, s(T389)))
U109_ggagg(T386, T389, T418, T387, T388, pN37_out_ggggg(T387, T418, T386, T388, s(T389))) → pN40_out_ggagg(T386, T389, T418, T387, T388)
U107_gggagg(T386, T396, T389, X659, T387, T388, pN40_out_ggagg(T386, T389, X659, T387, T388)) → pN39_out_gggagg(T386, T396, T389, X659, T387, T388)
U105_ggagag(T387, T389, T396, T386, X659, T388, pN39_out_gggagg(T386, T396, T389, X659, T387, T388)) → pN38_out_ggagag(T387, T389, T396, T386, X659, T388)
U103_gggaag(T386, T387, T389, X658, X659, T388, pN38_out_ggagag(T387, T389, X658, T386, X659, T388)) → pN8_out_gggaag(T386, T387, T389, X658, X659, T388)
U23_ggg(T386, T387, T388, T389, pN8_out_gggaag(T386, T387, T389, X658, X659, T388)) → noattackN7_out_ggg(T386, .(T387, T388), T389)
U101_ggggg(T342, T359, T341, T343, T346, noattackN7_out_ggg(T341, T343, T346)) → pN37_out_ggggg(T342, T359, T341, T343, T346)
U99_gaggg(T341, T359, T342, T343, T346, pN37_out_ggggg(T342, T359, T341, T343, T346)) → pN36_out_gaggg(T341, T359, T342, T343, T346)
U97_ggaggg(T341, T351, X588, T342, T343, T346, pN36_out_gaggg(T341, X588, T342, T343, T346)) → pN35_out_ggaggg(T341, T351, X588, T342, T343, T346)
U95_gagagg(T342, T351, T341, X588, T343, T346, pN35_out_ggaggg(T341, T351, X588, T342, T343, T346)) → pN34_out_gagagg(T342, T351, T341, X588, T343, T346)
U93_ggaagg(T341, T342, X587, X588, T343, T346, pN34_out_gagagg(T342, X587, T341, X588, T343, T346)) → pN6_out_ggaagg(T341, T342, X587, X588, T343, T346)
U22_gg(T341, T342, T343, pN6_out_ggaagg(T341, T342, X587, X588, T343, s(s(s(s(s(s(s(0))))))))) → noattackN5_out_gg(T341, .(T342, T343))
U91_gggg(T309, T323, T308, T310, noattackN5_out_gg(T308, T310)) → pN33_out_gggg(T309, T323, T308, T310)
U89_gagg(T308, T323, T309, T310, pN33_out_gggg(T309, T323, T308, T310)) → pN32_out_gagg(T308, T323, T309, T310)
U87_ggagg(T308, T315, X519, T309, T310, pN32_out_gagg(T308, X519, T309, T310)) → pN31_out_ggagg(T308, T315, X519, T309, T310)
U85_gagag(T309, T315, T308, X519, T310, pN31_out_ggagg(T308, T315, X519, T309, T310)) → pN30_out_gagag(T309, T315, T308, X519, T310)
U83_ggaag(T308, T309, X518, X519, T310, pN30_out_gagag(T309, X518, T308, X519, T310)) → pN4_out_ggaag(T308, T309, X518, X519, T310)
U21_gg(T308, T309, T310, pN4_out_ggaag(T308, T309, X518, X519, T310)) → noattackN3_out_gg(T308, .(T309, T310))
U81_gggg(T276, T290, T275, T277, noattackN3_out_gg(T275, T277)) → pN29_out_gggg(T276, T290, T275, T277)
U79_gagg(T275, T290, T276, T277, pN29_out_gggg(T276, T290, T275, T277)) → pN28_out_gagg(T275, T290, T276, T277)
U77_ggagg(T275, T282, X450, T276, T277, pN28_out_gagg(T275, X450, T276, T277)) → pN27_out_ggagg(T275, T282, X450, T276, T277)
U75_gagag(T276, T282, T275, X450, T277, pN27_out_ggagg(T275, T282, X450, T276, T277)) → pN26_out_gagag(T276, T282, T275, X450, T277)
U73_ggaag(T275, T276, X449, X450, T277, pN26_out_gagag(T276, X449, T275, X450, T277)) → pN2_out_ggaag(T275, T276, X449, X450, T277)
U20_gg(T275, T276, T277, pN2_out_ggaag(T275, T276, X449, X450, T277)) → noattackN1_out_gg(T275, .(T276, T277))
U71_gggg(T243, T257, T242, T244, noattackN1_out_gg(T242, T244)) → pN25_out_gggg(T243, T257, T242, T244)
U69_gagg(T242, T257, T243, T244, pN25_out_gggg(T243, T257, T242, T244)) → pN24_out_gagg(T242, T257, T243, T244)
U67_ggagg(T242, T249, X381, T243, T244, pN24_out_gagg(T242, X381, T243, T244)) → pN23_out_ggagg(T242, T249, X381, T243, T244)
U65_gagag(T243, T249, T242, X381, T244, pN23_out_ggagg(T242, T249, X381, T243, T244)) → pN22_out_gagag(T243, T249, T242, X381, T244)
U63_ggaag(T242, T243, X380, X381, T244, pN22_out_gagag(T243, X380, T242, X381, T244)) → pZ_out_ggaag(T242, T243, X380, X381, T244)
U19_gg(T242, T243, T244, pZ_out_ggaag(T242, T243, X380, X381, T244)) → noattackY_out_gg(T242, .(T243, T244))
U61_gggg(T210, T224, T209, T211, noattackY_out_gg(T209, T211)) → pN21_out_gggg(T210, T224, T209, T211)
U59_gagg(T209, T224, T210, T211, pN21_out_gggg(T210, T224, T209, T211)) → pN20_out_gagg(T209, T224, T210, T211)
U57_ggagg(T209, T216, X312, T210, T211, pN20_out_gagg(T209, X312, T210, T211)) → pN19_out_ggagg(T209, T216, X312, T210, T211)
U55_gagag(T210, T216, T209, X312, T211, pN19_out_ggagg(T209, T216, X312, T210, T211)) → pN18_out_gagag(T210, T216, T209, X312, T211)
U53_ggaag(T209, T210, X311, X312, T211, pN18_out_gagag(T210, X311, T209, X312, T211)) → pX_out_ggaag(T209, T210, X311, X312, T211)
U18_gg(T209, T210, T211, pX_out_ggaag(T209, T210, X311, X312, T211)) → noattackW_out_gg(T209, .(T210, T211))
U51_gggg(T177, T191, T176, T178, noattackW_out_gg(T176, T178)) → pN17_out_gggg(T177, T191, T176, T178)
U49_gagg(T176, T191, T177, T178, pN17_out_gggg(T177, T191, T176, T178)) → pN16_out_gagg(T176, T191, T177, T178)
U47_ggagg(T176, T183, X243, T177, T178, pN16_out_gagg(T176, X243, T177, T178)) → pN15_out_ggagg(T176, T183, X243, T177, T178)
U45_gagag(T177, T183, T176, X243, T178, pN15_out_ggagg(T176, T183, X243, T177, T178)) → pN14_out_gagag(T177, T183, T176, X243, T178)
U43_ggaag(T176, T177, X242, X243, T178, pN14_out_gagag(T177, X242, T176, X243, T178)) → pV_out_ggaag(T176, T177, X242, X243, T178)
U17_gg(T176, T177, T178, pV_out_ggaag(T176, T177, X242, X243, T178)) → noattackU_out_gg(T176, .(T177, T178))
U41_gggg(T126, T158, T125, T127, noattackU_out_gg(T125, T127)) → pN13_out_gggg(T126, T158, T125, T127)
U39_gagg(T125, T158, T126, T127, pN13_out_gggg(T126, T158, T125, T127)) → pN12_out_gagg(T125, T158, T126, T127)
U37_ggagg(T125, T150, X156, T126, T127, pN12_out_gagg(T125, X156, T126, T127)) → pN11_out_ggagg(T125, T150, X156, T126, T127)
U35_gagag(T126, T150, T125, X156, T127, pN11_out_ggagg(T125, T150, X156, T126, T127)) → pN10_out_gagag(T126, T150, T125, X156, T127)
U33_ggaag(T125, T126, X155, X156, T127, pN10_out_gagag(T126, X155, T125, X156, T127)) → pS_out_ggaag(T125, T126, X155, X156, T127)
U15_gg(T125, T126, T127, pS_out_ggaag(T125, T126, X155, X156, T127)) → noattackR_out_gg(T125, .(T126, T127))
U30_gg(T108, T109, noattackR_out_gg(T108, T109)) → U31_gg(T108, T109, safeT_in_g(T109))
safeT_in_g([]) → safeT_out_g([])
safeT_in_g(.(T427, T428)) → U16_g(T427, T428, pQ_in_gg(T427, T428))
U16_g(T427, T428, pQ_out_gg(T427, T428)) → safeT_out_g(.(T427, T428))
U31_gg(T108, T109, safeT_out_g(T109)) → pQ_out_gg(T108, T109)
U14_gg(T108, T109, pQ_out_gg(T108, T109)) → safeP_out_gg(T108, T109)
U27_gag(T20, T77, T22, safeP_out_gg(T22, T77)) → pN9_out_gag(T20, T77, T22)
U25_agaa(T22, T15, T20, T21, pN9_out_gag(T20, T21, T22)) → pB_out_agaa(T22, T15, T20, T21)
U1_a(T11, T12, pB_out_agaa(T11, .(s(s(0)), .(s(s(s(0))), .(s(s(s(s(0)))), .(s(s(s(s(s(0))))), .(s(s(s(s(s(s(0)))))), .(s(s(s(s(s(s(s(0))))))), .(s(s(s(s(s(s(s(s(0)))))))), []))))))), X16, T12)) → queensA_out_a(.(T11, T12))
ADDJ_IN_GA(s(T252), s(X406)) → ADDJ_IN_GA(T252, X406)
ADDJ_IN_GA(s(T252)) → ADDJ_IN_GA(T252)
From the DPs we obtained the following set of size-change graphs:
ADDI_IN_GA(s(T219), s(X337)) → ADDI_IN_GA(T219, X337)
queensA_in_a(.(T11, T12)) → U1_a(T11, T12, pB_in_agaa(T11, .(s(s(0)), .(s(s(s(0))), .(s(s(s(s(0)))), .(s(s(s(s(s(0))))), .(s(s(s(s(s(s(0)))))), .(s(s(s(s(s(s(s(0))))))), .(s(s(s(s(s(s(s(s(0)))))))), []))))))), X16, T12))
pB_in_agaa(T22, T15, T20, T21) → U24_agaa(T22, T15, T20, T21, deleteO_in_aga(T22, T15, T20))
deleteO_in_aga(s(0), T36, T36) → deleteO_out_aga(s(0), T36, T36)
deleteO_in_aga(T48, T47, .(s(0), X57)) → U13_aga(T48, T47, X57, deleteC_in_aga(T48, T47, X57))
deleteC_in_aga(T61, .(T61, T62), T62) → deleteC_out_aga(T61, .(T61, T62), T62)
deleteC_in_aga(T72, .(T70, T71), .(T70, X86)) → U2_aga(T72, T70, T71, X86, deleteC_in_aga(T72, T71, X86))
U2_aga(T72, T70, T71, X86, deleteC_out_aga(T72, T71, X86)) → deleteC_out_aga(T72, .(T70, T71), .(T70, X86))
U13_aga(T48, T47, X57, deleteC_out_aga(T48, T47, X57)) → deleteO_out_aga(T48, T47, .(s(0), X57))
U24_agaa(T22, T15, T20, T21, deleteO_out_aga(T22, T15, T20)) → U25_agaa(T22, T15, T20, T21, pN9_in_gag(T20, T21, T22))
pN9_in_gag(T20, T77, T22) → U26_gag(T20, T77, T22, permD_in_ga(T20, T77))
permD_in_ga([], []) → permD_out_ga([], [])
permD_in_ga(.(T86, T87), .(T90, T91)) → U3_ga(T86, T87, T90, T91, pE_in_aggaa(T90, T86, T87, X104, T91))
pE_in_aggaa(T90, T86, T87, T96, T97) → U28_aggaa(T90, T86, T87, T96, T97, deleteC_in_aga(T90, .(T86, T87), T96))
U28_aggaa(T90, T86, T87, T96, T97, deleteC_out_aga(T90, .(T86, T87), T96)) → U29_aggaa(T90, T86, T87, T96, T97, permD_in_ga(T96, T97))
U29_aggaa(T90, T86, T87, T96, T97, permD_out_ga(T96, T97)) → pE_out_aggaa(T90, T86, T87, T96, T97)
U3_ga(T86, T87, T90, T91, pE_out_aggaa(T90, T86, T87, X104, T91)) → permD_out_ga(.(T86, T87), .(T90, T91))
U26_gag(T20, T77, T22, permD_out_ga(T20, T77)) → U27_gag(T20, T77, T22, safeP_in_gg(T22, T77))
safeP_in_gg(T108, T109) → U14_gg(T108, T109, pQ_in_gg(T108, T109))
pQ_in_gg(T108, T109) → U30_gg(T108, T109, noattackR_in_gg(T108, T109))
noattackR_in_gg(T118, []) → noattackR_out_gg(T118, [])
noattackR_in_gg(T125, .(T126, T127)) → U15_gg(T125, T126, T127, pS_in_ggaag(T125, T126, X155, X156, T127))
pS_in_ggaag(T125, T126, X155, X156, T127) → U32_ggaag(T125, T126, X155, X156, T127, notEqF_in_gg(T125, T126))
notEqF_in_gg(0, s(T136)) → notEqF_out_gg(0, s(T136))
notEqF_in_gg(s(T141), 0) → notEqF_out_gg(s(T141), 0)
notEqF_in_gg(s(T146), s(T147)) → U4_gg(T146, T147, notEqF_in_gg(T146, T147))
U4_gg(T146, T147, notEqF_out_gg(T146, T147)) → notEqF_out_gg(s(T146), s(T147))
U32_ggaag(T125, T126, X155, X156, T127, notEqF_out_gg(T125, T126)) → U33_ggaag(T125, T126, X155, X156, T127, pN10_in_gagag(T126, X155, T125, X156, T127))
pN10_in_gagag(T126, T150, T125, X156, T127) → U34_gagag(T126, T150, T125, X156, T127, addG_in_ga(T126, T150))
addG_in_ga(0, s(0)) → addG_out_ga(0, s(0))
addG_in_ga(s(T153), s(X199)) → U5_ga(T153, X199, addG_in_ga(T153, X199))
U5_ga(T153, X199, addG_out_ga(T153, X199)) → addG_out_ga(s(T153), s(X199))
U34_gagag(T126, T150, T125, X156, T127, addG_out_ga(T126, T150)) → U35_gagag(T126, T150, T125, X156, T127, pN11_in_ggagg(T125, T150, X156, T126, T127))
pN11_in_ggagg(T125, T150, X156, T126, T127) → U36_ggagg(T125, T150, X156, T126, T127, notEqF_in_gg(T125, T150))
U36_ggagg(T125, T150, X156, T126, T127, notEqF_out_gg(T125, T150)) → U37_ggagg(T125, T150, X156, T126, T127, pN12_in_gagg(T125, X156, T126, T127))
pN12_in_gagg(T125, T158, T126, T127) → U38_gagg(T125, T158, T126, T127, addG_in_ga(T125, T158))
U38_gagg(T125, T158, T126, T127, addG_out_ga(T125, T158)) → U39_gagg(T125, T158, T126, T127, pN13_in_gggg(T126, T158, T125, T127))
pN13_in_gggg(T126, T158, T125, T127) → U40_gggg(T126, T158, T125, T127, notEqF_in_gg(T126, T158))
U40_gggg(T126, T158, T125, T127, notEqF_out_gg(T126, T158)) → U41_gggg(T126, T158, T125, T127, noattackU_in_gg(T125, T127))
noattackU_in_gg(T169, []) → noattackU_out_gg(T169, [])
noattackU_in_gg(T176, .(T177, T178)) → U17_gg(T176, T177, T178, pV_in_ggaag(T176, T177, X242, X243, T178))
pV_in_ggaag(T176, T177, X242, X243, T178) → U42_ggaag(T176, T177, X242, X243, T178, notEqF_in_gg(T176, T177))
U42_ggaag(T176, T177, X242, X243, T178, notEqF_out_gg(T176, T177)) → U43_ggaag(T176, T177, X242, X243, T178, pN14_in_gagag(T177, X242, T176, X243, T178))
pN14_in_gagag(T177, T183, T176, X243, T178) → U44_gagag(T177, T183, T176, X243, T178, addH_in_ga(T177, T183))
addH_in_ga(0, s(s(0))) → addH_out_ga(0, s(s(0)))
addH_in_ga(s(T186), s(X268)) → U6_ga(T186, X268, addH_in_ga(T186, X268))
U6_ga(T186, X268, addH_out_ga(T186, X268)) → addH_out_ga(s(T186), s(X268))
U44_gagag(T177, T183, T176, X243, T178, addH_out_ga(T177, T183)) → U45_gagag(T177, T183, T176, X243, T178, pN15_in_ggagg(T176, T183, X243, T177, T178))
pN15_in_ggagg(T176, T183, X243, T177, T178) → U46_ggagg(T176, T183, X243, T177, T178, notEqF_in_gg(T176, T183))
U46_ggagg(T176, T183, X243, T177, T178, notEqF_out_gg(T176, T183)) → U47_ggagg(T176, T183, X243, T177, T178, pN16_in_gagg(T176, X243, T177, T178))
pN16_in_gagg(T176, T191, T177, T178) → U48_gagg(T176, T191, T177, T178, addH_in_ga(T176, T191))
U48_gagg(T176, T191, T177, T178, addH_out_ga(T176, T191)) → U49_gagg(T176, T191, T177, T178, pN17_in_gggg(T177, T191, T176, T178))
pN17_in_gggg(T177, T191, T176, T178) → U50_gggg(T177, T191, T176, T178, notEqF_in_gg(T177, T191))
U50_gggg(T177, T191, T176, T178, notEqF_out_gg(T177, T191)) → U51_gggg(T177, T191, T176, T178, noattackW_in_gg(T176, T178))
noattackW_in_gg(T202, []) → noattackW_out_gg(T202, [])
noattackW_in_gg(T209, .(T210, T211)) → U18_gg(T209, T210, T211, pX_in_ggaag(T209, T210, X311, X312, T211))
pX_in_ggaag(T209, T210, X311, X312, T211) → U52_ggaag(T209, T210, X311, X312, T211, notEqF_in_gg(T209, T210))
U52_ggaag(T209, T210, X311, X312, T211, notEqF_out_gg(T209, T210)) → U53_ggaag(T209, T210, X311, X312, T211, pN18_in_gagag(T210, X311, T209, X312, T211))
pN18_in_gagag(T210, T216, T209, X312, T211) → U54_gagag(T210, T216, T209, X312, T211, addI_in_ga(T210, T216))
addI_in_ga(0, s(s(s(0)))) → addI_out_ga(0, s(s(s(0))))
addI_in_ga(s(T219), s(X337)) → U7_ga(T219, X337, addI_in_ga(T219, X337))
U7_ga(T219, X337, addI_out_ga(T219, X337)) → addI_out_ga(s(T219), s(X337))
U54_gagag(T210, T216, T209, X312, T211, addI_out_ga(T210, T216)) → U55_gagag(T210, T216, T209, X312, T211, pN19_in_ggagg(T209, T216, X312, T210, T211))
pN19_in_ggagg(T209, T216, X312, T210, T211) → U56_ggagg(T209, T216, X312, T210, T211, notEqF_in_gg(T209, T216))
U56_ggagg(T209, T216, X312, T210, T211, notEqF_out_gg(T209, T216)) → U57_ggagg(T209, T216, X312, T210, T211, pN20_in_gagg(T209, X312, T210, T211))
pN20_in_gagg(T209, T224, T210, T211) → U58_gagg(T209, T224, T210, T211, addI_in_ga(T209, T224))
U58_gagg(T209, T224, T210, T211, addI_out_ga(T209, T224)) → U59_gagg(T209, T224, T210, T211, pN21_in_gggg(T210, T224, T209, T211))
pN21_in_gggg(T210, T224, T209, T211) → U60_gggg(T210, T224, T209, T211, notEqF_in_gg(T210, T224))
U60_gggg(T210, T224, T209, T211, notEqF_out_gg(T210, T224)) → U61_gggg(T210, T224, T209, T211, noattackY_in_gg(T209, T211))
noattackY_in_gg(T235, []) → noattackY_out_gg(T235, [])
noattackY_in_gg(T242, .(T243, T244)) → U19_gg(T242, T243, T244, pZ_in_ggaag(T242, T243, X380, X381, T244))
pZ_in_ggaag(T242, T243, X380, X381, T244) → U62_ggaag(T242, T243, X380, X381, T244, notEqF_in_gg(T242, T243))
U62_ggaag(T242, T243, X380, X381, T244, notEqF_out_gg(T242, T243)) → U63_ggaag(T242, T243, X380, X381, T244, pN22_in_gagag(T243, X380, T242, X381, T244))
pN22_in_gagag(T243, T249, T242, X381, T244) → U64_gagag(T243, T249, T242, X381, T244, addJ_in_ga(T243, T249))
addJ_in_ga(0, s(s(s(s(0))))) → addJ_out_ga(0, s(s(s(s(0)))))
addJ_in_ga(s(T252), s(X406)) → U8_ga(T252, X406, addJ_in_ga(T252, X406))
U8_ga(T252, X406, addJ_out_ga(T252, X406)) → addJ_out_ga(s(T252), s(X406))
U64_gagag(T243, T249, T242, X381, T244, addJ_out_ga(T243, T249)) → U65_gagag(T243, T249, T242, X381, T244, pN23_in_ggagg(T242, T249, X381, T243, T244))
pN23_in_ggagg(T242, T249, X381, T243, T244) → U66_ggagg(T242, T249, X381, T243, T244, notEqF_in_gg(T242, T249))
U66_ggagg(T242, T249, X381, T243, T244, notEqF_out_gg(T242, T249)) → U67_ggagg(T242, T249, X381, T243, T244, pN24_in_gagg(T242, X381, T243, T244))
pN24_in_gagg(T242, T257, T243, T244) → U68_gagg(T242, T257, T243, T244, addJ_in_ga(T242, T257))
U68_gagg(T242, T257, T243, T244, addJ_out_ga(T242, T257)) → U69_gagg(T242, T257, T243, T244, pN25_in_gggg(T243, T257, T242, T244))
pN25_in_gggg(T243, T257, T242, T244) → U70_gggg(T243, T257, T242, T244, notEqF_in_gg(T243, T257))
U70_gggg(T243, T257, T242, T244, notEqF_out_gg(T243, T257)) → U71_gggg(T243, T257, T242, T244, noattackN1_in_gg(T242, T244))
noattackN1_in_gg(T268, []) → noattackN1_out_gg(T268, [])
noattackN1_in_gg(T275, .(T276, T277)) → U20_gg(T275, T276, T277, pN2_in_ggaag(T275, T276, X449, X450, T277))
pN2_in_ggaag(T275, T276, X449, X450, T277) → U72_ggaag(T275, T276, X449, X450, T277, notEqF_in_gg(T275, T276))
U72_ggaag(T275, T276, X449, X450, T277, notEqF_out_gg(T275, T276)) → U73_ggaag(T275, T276, X449, X450, T277, pN26_in_gagag(T276, X449, T275, X450, T277))
pN26_in_gagag(T276, T282, T275, X450, T277) → U74_gagag(T276, T282, T275, X450, T277, addK_in_ga(T276, T282))
addK_in_ga(0, s(s(s(s(s(0)))))) → addK_out_ga(0, s(s(s(s(s(0))))))
addK_in_ga(s(T285), s(X475)) → U9_ga(T285, X475, addK_in_ga(T285, X475))
U9_ga(T285, X475, addK_out_ga(T285, X475)) → addK_out_ga(s(T285), s(X475))
U74_gagag(T276, T282, T275, X450, T277, addK_out_ga(T276, T282)) → U75_gagag(T276, T282, T275, X450, T277, pN27_in_ggagg(T275, T282, X450, T276, T277))
pN27_in_ggagg(T275, T282, X450, T276, T277) → U76_ggagg(T275, T282, X450, T276, T277, notEqF_in_gg(T275, T282))
U76_ggagg(T275, T282, X450, T276, T277, notEqF_out_gg(T275, T282)) → U77_ggagg(T275, T282, X450, T276, T277, pN28_in_gagg(T275, X450, T276, T277))
pN28_in_gagg(T275, T290, T276, T277) → U78_gagg(T275, T290, T276, T277, addK_in_ga(T275, T290))
U78_gagg(T275, T290, T276, T277, addK_out_ga(T275, T290)) → U79_gagg(T275, T290, T276, T277, pN29_in_gggg(T276, T290, T275, T277))
pN29_in_gggg(T276, T290, T275, T277) → U80_gggg(T276, T290, T275, T277, notEqF_in_gg(T276, T290))
U80_gggg(T276, T290, T275, T277, notEqF_out_gg(T276, T290)) → U81_gggg(T276, T290, T275, T277, noattackN3_in_gg(T275, T277))
noattackN3_in_gg(T301, []) → noattackN3_out_gg(T301, [])
noattackN3_in_gg(T308, .(T309, T310)) → U21_gg(T308, T309, T310, pN4_in_ggaag(T308, T309, X518, X519, T310))
pN4_in_ggaag(T308, T309, X518, X519, T310) → U82_ggaag(T308, T309, X518, X519, T310, notEqF_in_gg(T308, T309))
U82_ggaag(T308, T309, X518, X519, T310, notEqF_out_gg(T308, T309)) → U83_ggaag(T308, T309, X518, X519, T310, pN30_in_gagag(T309, X518, T308, X519, T310))
pN30_in_gagag(T309, T315, T308, X519, T310) → U84_gagag(T309, T315, T308, X519, T310, addL_in_ga(T309, T315))
addL_in_ga(0, s(s(s(s(s(s(0))))))) → addL_out_ga(0, s(s(s(s(s(s(0)))))))
addL_in_ga(s(T318), s(X544)) → U10_ga(T318, X544, addL_in_ga(T318, X544))
U10_ga(T318, X544, addL_out_ga(T318, X544)) → addL_out_ga(s(T318), s(X544))
U84_gagag(T309, T315, T308, X519, T310, addL_out_ga(T309, T315)) → U85_gagag(T309, T315, T308, X519, T310, pN31_in_ggagg(T308, T315, X519, T309, T310))
pN31_in_ggagg(T308, T315, X519, T309, T310) → U86_ggagg(T308, T315, X519, T309, T310, notEqF_in_gg(T308, T315))
U86_ggagg(T308, T315, X519, T309, T310, notEqF_out_gg(T308, T315)) → U87_ggagg(T308, T315, X519, T309, T310, pN32_in_gagg(T308, X519, T309, T310))
pN32_in_gagg(T308, T323, T309, T310) → U88_gagg(T308, T323, T309, T310, addL_in_ga(T308, T323))
U88_gagg(T308, T323, T309, T310, addL_out_ga(T308, T323)) → U89_gagg(T308, T323, T309, T310, pN33_in_gggg(T309, T323, T308, T310))
pN33_in_gggg(T309, T323, T308, T310) → U90_gggg(T309, T323, T308, T310, notEqF_in_gg(T309, T323))
U90_gggg(T309, T323, T308, T310, notEqF_out_gg(T309, T323)) → U91_gggg(T309, T323, T308, T310, noattackN5_in_gg(T308, T310))
noattackN5_in_gg(T334, []) → noattackN5_out_gg(T334, [])
noattackN5_in_gg(T341, .(T342, T343)) → U22_gg(T341, T342, T343, pN6_in_ggaagg(T341, T342, X587, X588, T343, s(s(s(s(s(s(s(0)))))))))
pN6_in_ggaagg(T341, T342, X587, X588, T343, T346) → U92_ggaagg(T341, T342, X587, X588, T343, T346, notEqF_in_gg(T341, T342))
U92_ggaagg(T341, T342, X587, X588, T343, T346, notEqF_out_gg(T341, T342)) → U93_ggaagg(T341, T342, X587, X588, T343, T346, pN34_in_gagagg(T342, X587, T341, X588, T343, T346))
pN34_in_gagagg(T342, T351, T341, X588, T343, T346) → U94_gagagg(T342, T351, T341, X588, T343, T346, addM_in_ga(T342, T351))
addM_in_ga(0, s(s(s(s(s(s(s(0)))))))) → addM_out_ga(0, s(s(s(s(s(s(s(0))))))))
addM_in_ga(s(T354), s(X615)) → U11_ga(T354, X615, addM_in_ga(T354, X615))
U11_ga(T354, X615, addM_out_ga(T354, X615)) → addM_out_ga(s(T354), s(X615))
U94_gagagg(T342, T351, T341, X588, T343, T346, addM_out_ga(T342, T351)) → U95_gagagg(T342, T351, T341, X588, T343, T346, pN35_in_ggaggg(T341, T351, X588, T342, T343, T346))
pN35_in_ggaggg(T341, T351, X588, T342, T343, T346) → U96_ggaggg(T341, T351, X588, T342, T343, T346, notEqF_in_gg(T341, T351))
U96_ggaggg(T341, T351, X588, T342, T343, T346, notEqF_out_gg(T341, T351)) → U97_ggaggg(T341, T351, X588, T342, T343, T346, pN36_in_gaggg(T341, X588, T342, T343, T346))
pN36_in_gaggg(T341, T359, T342, T343, T346) → U98_gaggg(T341, T359, T342, T343, T346, addM_in_ga(T341, T359))
U98_gaggg(T341, T359, T342, T343, T346, addM_out_ga(T341, T359)) → U99_gaggg(T341, T359, T342, T343, T346, pN37_in_ggggg(T342, T359, T341, T343, T346))
pN37_in_ggggg(T342, T359, T341, T343, T346) → U100_ggggg(T342, T359, T341, T343, T346, notEqF_in_gg(T342, T359))
U100_ggggg(T342, T359, T341, T343, T346, notEqF_out_gg(T342, T359)) → U101_ggggg(T342, T359, T341, T343, T346, noattackN7_in_ggg(T341, T343, T346))
noattackN7_in_ggg(T376, [], T377) → noattackN7_out_ggg(T376, [], T377)
noattackN7_in_ggg(T386, .(T387, T388), T389) → U23_ggg(T386, T387, T388, T389, pN8_in_gggaag(T386, T387, T389, X658, X659, T388))
pN8_in_gggaag(T386, T387, T389, X658, X659, T388) → U102_gggaag(T386, T387, T389, X658, X659, T388, notEqF_in_gg(T386, T387))
U102_gggaag(T386, T387, T389, X658, X659, T388, notEqF_out_gg(T386, T387)) → U103_gggaag(T386, T387, T389, X658, X659, T388, pN38_in_ggagag(T387, T389, X658, T386, X659, T388))
pN38_in_ggagag(T387, T389, T396, T386, X659, T388) → U104_ggagag(T387, T389, T396, T386, X659, T388, addN_in_gga(T387, T389, T396))
addN_in_gga(0, T403, s(T403)) → addN_out_gga(0, T403, s(T403))
addN_in_gga(s(T408), T409, s(X684)) → U12_gga(T408, T409, X684, addN_in_gga(T408, T409, X684))
U12_gga(T408, T409, X684, addN_out_gga(T408, T409, X684)) → addN_out_gga(s(T408), T409, s(X684))
U104_ggagag(T387, T389, T396, T386, X659, T388, addN_out_gga(T387, T389, T396)) → U105_ggagag(T387, T389, T396, T386, X659, T388, pN39_in_gggagg(T386, T396, T389, X659, T387, T388))
pN39_in_gggagg(T386, T396, T389, X659, T387, T388) → U106_gggagg(T386, T396, T389, X659, T387, T388, notEqF_in_gg(T386, T396))
U106_gggagg(T386, T396, T389, X659, T387, T388, notEqF_out_gg(T386, T396)) → U107_gggagg(T386, T396, T389, X659, T387, T388, pN40_in_ggagg(T386, T389, X659, T387, T388))
pN40_in_ggagg(T386, T389, T418, T387, T388) → U108_ggagg(T386, T389, T418, T387, T388, addN_in_gga(T386, T389, T418))
U108_ggagg(T386, T389, T418, T387, T388, addN_out_gga(T386, T389, T418)) → U109_ggagg(T386, T389, T418, T387, T388, pN37_in_ggggg(T387, T418, T386, T388, s(T389)))
U109_ggagg(T386, T389, T418, T387, T388, pN37_out_ggggg(T387, T418, T386, T388, s(T389))) → pN40_out_ggagg(T386, T389, T418, T387, T388)
U107_gggagg(T386, T396, T389, X659, T387, T388, pN40_out_ggagg(T386, T389, X659, T387, T388)) → pN39_out_gggagg(T386, T396, T389, X659, T387, T388)
U105_ggagag(T387, T389, T396, T386, X659, T388, pN39_out_gggagg(T386, T396, T389, X659, T387, T388)) → pN38_out_ggagag(T387, T389, T396, T386, X659, T388)
U103_gggaag(T386, T387, T389, X658, X659, T388, pN38_out_ggagag(T387, T389, X658, T386, X659, T388)) → pN8_out_gggaag(T386, T387, T389, X658, X659, T388)
U23_ggg(T386, T387, T388, T389, pN8_out_gggaag(T386, T387, T389, X658, X659, T388)) → noattackN7_out_ggg(T386, .(T387, T388), T389)
U101_ggggg(T342, T359, T341, T343, T346, noattackN7_out_ggg(T341, T343, T346)) → pN37_out_ggggg(T342, T359, T341, T343, T346)
U99_gaggg(T341, T359, T342, T343, T346, pN37_out_ggggg(T342, T359, T341, T343, T346)) → pN36_out_gaggg(T341, T359, T342, T343, T346)
U97_ggaggg(T341, T351, X588, T342, T343, T346, pN36_out_gaggg(T341, X588, T342, T343, T346)) → pN35_out_ggaggg(T341, T351, X588, T342, T343, T346)
U95_gagagg(T342, T351, T341, X588, T343, T346, pN35_out_ggaggg(T341, T351, X588, T342, T343, T346)) → pN34_out_gagagg(T342, T351, T341, X588, T343, T346)
U93_ggaagg(T341, T342, X587, X588, T343, T346, pN34_out_gagagg(T342, X587, T341, X588, T343, T346)) → pN6_out_ggaagg(T341, T342, X587, X588, T343, T346)
U22_gg(T341, T342, T343, pN6_out_ggaagg(T341, T342, X587, X588, T343, s(s(s(s(s(s(s(0))))))))) → noattackN5_out_gg(T341, .(T342, T343))
U91_gggg(T309, T323, T308, T310, noattackN5_out_gg(T308, T310)) → pN33_out_gggg(T309, T323, T308, T310)
U89_gagg(T308, T323, T309, T310, pN33_out_gggg(T309, T323, T308, T310)) → pN32_out_gagg(T308, T323, T309, T310)
U87_ggagg(T308, T315, X519, T309, T310, pN32_out_gagg(T308, X519, T309, T310)) → pN31_out_ggagg(T308, T315, X519, T309, T310)
U85_gagag(T309, T315, T308, X519, T310, pN31_out_ggagg(T308, T315, X519, T309, T310)) → pN30_out_gagag(T309, T315, T308, X519, T310)
U83_ggaag(T308, T309, X518, X519, T310, pN30_out_gagag(T309, X518, T308, X519, T310)) → pN4_out_ggaag(T308, T309, X518, X519, T310)
U21_gg(T308, T309, T310, pN4_out_ggaag(T308, T309, X518, X519, T310)) → noattackN3_out_gg(T308, .(T309, T310))
U81_gggg(T276, T290, T275, T277, noattackN3_out_gg(T275, T277)) → pN29_out_gggg(T276, T290, T275, T277)
U79_gagg(T275, T290, T276, T277, pN29_out_gggg(T276, T290, T275, T277)) → pN28_out_gagg(T275, T290, T276, T277)
U77_ggagg(T275, T282, X450, T276, T277, pN28_out_gagg(T275, X450, T276, T277)) → pN27_out_ggagg(T275, T282, X450, T276, T277)
U75_gagag(T276, T282, T275, X450, T277, pN27_out_ggagg(T275, T282, X450, T276, T277)) → pN26_out_gagag(T276, T282, T275, X450, T277)
U73_ggaag(T275, T276, X449, X450, T277, pN26_out_gagag(T276, X449, T275, X450, T277)) → pN2_out_ggaag(T275, T276, X449, X450, T277)
U20_gg(T275, T276, T277, pN2_out_ggaag(T275, T276, X449, X450, T277)) → noattackN1_out_gg(T275, .(T276, T277))
U71_gggg(T243, T257, T242, T244, noattackN1_out_gg(T242, T244)) → pN25_out_gggg(T243, T257, T242, T244)
U69_gagg(T242, T257, T243, T244, pN25_out_gggg(T243, T257, T242, T244)) → pN24_out_gagg(T242, T257, T243, T244)
U67_ggagg(T242, T249, X381, T243, T244, pN24_out_gagg(T242, X381, T243, T244)) → pN23_out_ggagg(T242, T249, X381, T243, T244)
U65_gagag(T243, T249, T242, X381, T244, pN23_out_ggagg(T242, T249, X381, T243, T244)) → pN22_out_gagag(T243, T249, T242, X381, T244)
U63_ggaag(T242, T243, X380, X381, T244, pN22_out_gagag(T243, X380, T242, X381, T244)) → pZ_out_ggaag(T242, T243, X380, X381, T244)
U19_gg(T242, T243, T244, pZ_out_ggaag(T242, T243, X380, X381, T244)) → noattackY_out_gg(T242, .(T243, T244))
U61_gggg(T210, T224, T209, T211, noattackY_out_gg(T209, T211)) → pN21_out_gggg(T210, T224, T209, T211)
U59_gagg(T209, T224, T210, T211, pN21_out_gggg(T210, T224, T209, T211)) → pN20_out_gagg(T209, T224, T210, T211)
U57_ggagg(T209, T216, X312, T210, T211, pN20_out_gagg(T209, X312, T210, T211)) → pN19_out_ggagg(T209, T216, X312, T210, T211)
U55_gagag(T210, T216, T209, X312, T211, pN19_out_ggagg(T209, T216, X312, T210, T211)) → pN18_out_gagag(T210, T216, T209, X312, T211)
U53_ggaag(T209, T210, X311, X312, T211, pN18_out_gagag(T210, X311, T209, X312, T211)) → pX_out_ggaag(T209, T210, X311, X312, T211)
U18_gg(T209, T210, T211, pX_out_ggaag(T209, T210, X311, X312, T211)) → noattackW_out_gg(T209, .(T210, T211))
U51_gggg(T177, T191, T176, T178, noattackW_out_gg(T176, T178)) → pN17_out_gggg(T177, T191, T176, T178)
U49_gagg(T176, T191, T177, T178, pN17_out_gggg(T177, T191, T176, T178)) → pN16_out_gagg(T176, T191, T177, T178)
U47_ggagg(T176, T183, X243, T177, T178, pN16_out_gagg(T176, X243, T177, T178)) → pN15_out_ggagg(T176, T183, X243, T177, T178)
U45_gagag(T177, T183, T176, X243, T178, pN15_out_ggagg(T176, T183, X243, T177, T178)) → pN14_out_gagag(T177, T183, T176, X243, T178)
U43_ggaag(T176, T177, X242, X243, T178, pN14_out_gagag(T177, X242, T176, X243, T178)) → pV_out_ggaag(T176, T177, X242, X243, T178)
U17_gg(T176, T177, T178, pV_out_ggaag(T176, T177, X242, X243, T178)) → noattackU_out_gg(T176, .(T177, T178))
U41_gggg(T126, T158, T125, T127, noattackU_out_gg(T125, T127)) → pN13_out_gggg(T126, T158, T125, T127)
U39_gagg(T125, T158, T126, T127, pN13_out_gggg(T126, T158, T125, T127)) → pN12_out_gagg(T125, T158, T126, T127)
U37_ggagg(T125, T150, X156, T126, T127, pN12_out_gagg(T125, X156, T126, T127)) → pN11_out_ggagg(T125, T150, X156, T126, T127)
U35_gagag(T126, T150, T125, X156, T127, pN11_out_ggagg(T125, T150, X156, T126, T127)) → pN10_out_gagag(T126, T150, T125, X156, T127)
U33_ggaag(T125, T126, X155, X156, T127, pN10_out_gagag(T126, X155, T125, X156, T127)) → pS_out_ggaag(T125, T126, X155, X156, T127)
U15_gg(T125, T126, T127, pS_out_ggaag(T125, T126, X155, X156, T127)) → noattackR_out_gg(T125, .(T126, T127))
U30_gg(T108, T109, noattackR_out_gg(T108, T109)) → U31_gg(T108, T109, safeT_in_g(T109))
safeT_in_g([]) → safeT_out_g([])
safeT_in_g(.(T427, T428)) → U16_g(T427, T428, pQ_in_gg(T427, T428))
U16_g(T427, T428, pQ_out_gg(T427, T428)) → safeT_out_g(.(T427, T428))
U31_gg(T108, T109, safeT_out_g(T109)) → pQ_out_gg(T108, T109)
U14_gg(T108, T109, pQ_out_gg(T108, T109)) → safeP_out_gg(T108, T109)
U27_gag(T20, T77, T22, safeP_out_gg(T22, T77)) → pN9_out_gag(T20, T77, T22)
U25_agaa(T22, T15, T20, T21, pN9_out_gag(T20, T21, T22)) → pB_out_agaa(T22, T15, T20, T21)
U1_a(T11, T12, pB_out_agaa(T11, .(s(s(0)), .(s(s(s(0))), .(s(s(s(s(0)))), .(s(s(s(s(s(0))))), .(s(s(s(s(s(s(0)))))), .(s(s(s(s(s(s(s(0))))))), .(s(s(s(s(s(s(s(s(0)))))))), []))))))), X16, T12)) → queensA_out_a(.(T11, T12))
ADDI_IN_GA(s(T219), s(X337)) → ADDI_IN_GA(T219, X337)
ADDI_IN_GA(s(T219)) → ADDI_IN_GA(T219)
From the DPs we obtained the following set of size-change graphs:
ADDH_IN_GA(s(T186), s(X268)) → ADDH_IN_GA(T186, X268)
queensA_in_a(.(T11, T12)) → U1_a(T11, T12, pB_in_agaa(T11, .(s(s(0)), .(s(s(s(0))), .(s(s(s(s(0)))), .(s(s(s(s(s(0))))), .(s(s(s(s(s(s(0)))))), .(s(s(s(s(s(s(s(0))))))), .(s(s(s(s(s(s(s(s(0)))))))), []))))))), X16, T12))
pB_in_agaa(T22, T15, T20, T21) → U24_agaa(T22, T15, T20, T21, deleteO_in_aga(T22, T15, T20))
deleteO_in_aga(s(0), T36, T36) → deleteO_out_aga(s(0), T36, T36)
deleteO_in_aga(T48, T47, .(s(0), X57)) → U13_aga(T48, T47, X57, deleteC_in_aga(T48, T47, X57))
deleteC_in_aga(T61, .(T61, T62), T62) → deleteC_out_aga(T61, .(T61, T62), T62)
deleteC_in_aga(T72, .(T70, T71), .(T70, X86)) → U2_aga(T72, T70, T71, X86, deleteC_in_aga(T72, T71, X86))
U2_aga(T72, T70, T71, X86, deleteC_out_aga(T72, T71, X86)) → deleteC_out_aga(T72, .(T70, T71), .(T70, X86))
U13_aga(T48, T47, X57, deleteC_out_aga(T48, T47, X57)) → deleteO_out_aga(T48, T47, .(s(0), X57))
U24_agaa(T22, T15, T20, T21, deleteO_out_aga(T22, T15, T20)) → U25_agaa(T22, T15, T20, T21, pN9_in_gag(T20, T21, T22))
pN9_in_gag(T20, T77, T22) → U26_gag(T20, T77, T22, permD_in_ga(T20, T77))
permD_in_ga([], []) → permD_out_ga([], [])
permD_in_ga(.(T86, T87), .(T90, T91)) → U3_ga(T86, T87, T90, T91, pE_in_aggaa(T90, T86, T87, X104, T91))
pE_in_aggaa(T90, T86, T87, T96, T97) → U28_aggaa(T90, T86, T87, T96, T97, deleteC_in_aga(T90, .(T86, T87), T96))
U28_aggaa(T90, T86, T87, T96, T97, deleteC_out_aga(T90, .(T86, T87), T96)) → U29_aggaa(T90, T86, T87, T96, T97, permD_in_ga(T96, T97))
U29_aggaa(T90, T86, T87, T96, T97, permD_out_ga(T96, T97)) → pE_out_aggaa(T90, T86, T87, T96, T97)
U3_ga(T86, T87, T90, T91, pE_out_aggaa(T90, T86, T87, X104, T91)) → permD_out_ga(.(T86, T87), .(T90, T91))
U26_gag(T20, T77, T22, permD_out_ga(T20, T77)) → U27_gag(T20, T77, T22, safeP_in_gg(T22, T77))
safeP_in_gg(T108, T109) → U14_gg(T108, T109, pQ_in_gg(T108, T109))
pQ_in_gg(T108, T109) → U30_gg(T108, T109, noattackR_in_gg(T108, T109))
noattackR_in_gg(T118, []) → noattackR_out_gg(T118, [])
noattackR_in_gg(T125, .(T126, T127)) → U15_gg(T125, T126, T127, pS_in_ggaag(T125, T126, X155, X156, T127))
pS_in_ggaag(T125, T126, X155, X156, T127) → U32_ggaag(T125, T126, X155, X156, T127, notEqF_in_gg(T125, T126))
notEqF_in_gg(0, s(T136)) → notEqF_out_gg(0, s(T136))
notEqF_in_gg(s(T141), 0) → notEqF_out_gg(s(T141), 0)
notEqF_in_gg(s(T146), s(T147)) → U4_gg(T146, T147, notEqF_in_gg(T146, T147))
U4_gg(T146, T147, notEqF_out_gg(T146, T147)) → notEqF_out_gg(s(T146), s(T147))
U32_ggaag(T125, T126, X155, X156, T127, notEqF_out_gg(T125, T126)) → U33_ggaag(T125, T126, X155, X156, T127, pN10_in_gagag(T126, X155, T125, X156, T127))
pN10_in_gagag(T126, T150, T125, X156, T127) → U34_gagag(T126, T150, T125, X156, T127, addG_in_ga(T126, T150))
addG_in_ga(0, s(0)) → addG_out_ga(0, s(0))
addG_in_ga(s(T153), s(X199)) → U5_ga(T153, X199, addG_in_ga(T153, X199))
U5_ga(T153, X199, addG_out_ga(T153, X199)) → addG_out_ga(s(T153), s(X199))
U34_gagag(T126, T150, T125, X156, T127, addG_out_ga(T126, T150)) → U35_gagag(T126, T150, T125, X156, T127, pN11_in_ggagg(T125, T150, X156, T126, T127))
pN11_in_ggagg(T125, T150, X156, T126, T127) → U36_ggagg(T125, T150, X156, T126, T127, notEqF_in_gg(T125, T150))
U36_ggagg(T125, T150, X156, T126, T127, notEqF_out_gg(T125, T150)) → U37_ggagg(T125, T150, X156, T126, T127, pN12_in_gagg(T125, X156, T126, T127))
pN12_in_gagg(T125, T158, T126, T127) → U38_gagg(T125, T158, T126, T127, addG_in_ga(T125, T158))
U38_gagg(T125, T158, T126, T127, addG_out_ga(T125, T158)) → U39_gagg(T125, T158, T126, T127, pN13_in_gggg(T126, T158, T125, T127))
pN13_in_gggg(T126, T158, T125, T127) → U40_gggg(T126, T158, T125, T127, notEqF_in_gg(T126, T158))
U40_gggg(T126, T158, T125, T127, notEqF_out_gg(T126, T158)) → U41_gggg(T126, T158, T125, T127, noattackU_in_gg(T125, T127))
noattackU_in_gg(T169, []) → noattackU_out_gg(T169, [])
noattackU_in_gg(T176, .(T177, T178)) → U17_gg(T176, T177, T178, pV_in_ggaag(T176, T177, X242, X243, T178))
pV_in_ggaag(T176, T177, X242, X243, T178) → U42_ggaag(T176, T177, X242, X243, T178, notEqF_in_gg(T176, T177))
U42_ggaag(T176, T177, X242, X243, T178, notEqF_out_gg(T176, T177)) → U43_ggaag(T176, T177, X242, X243, T178, pN14_in_gagag(T177, X242, T176, X243, T178))
pN14_in_gagag(T177, T183, T176, X243, T178) → U44_gagag(T177, T183, T176, X243, T178, addH_in_ga(T177, T183))
addH_in_ga(0, s(s(0))) → addH_out_ga(0, s(s(0)))
addH_in_ga(s(T186), s(X268)) → U6_ga(T186, X268, addH_in_ga(T186, X268))
U6_ga(T186, X268, addH_out_ga(T186, X268)) → addH_out_ga(s(T186), s(X268))
U44_gagag(T177, T183, T176, X243, T178, addH_out_ga(T177, T183)) → U45_gagag(T177, T183, T176, X243, T178, pN15_in_ggagg(T176, T183, X243, T177, T178))
pN15_in_ggagg(T176, T183, X243, T177, T178) → U46_ggagg(T176, T183, X243, T177, T178, notEqF_in_gg(T176, T183))
U46_ggagg(T176, T183, X243, T177, T178, notEqF_out_gg(T176, T183)) → U47_ggagg(T176, T183, X243, T177, T178, pN16_in_gagg(T176, X243, T177, T178))
pN16_in_gagg(T176, T191, T177, T178) → U48_gagg(T176, T191, T177, T178, addH_in_ga(T176, T191))
U48_gagg(T176, T191, T177, T178, addH_out_ga(T176, T191)) → U49_gagg(T176, T191, T177, T178, pN17_in_gggg(T177, T191, T176, T178))
pN17_in_gggg(T177, T191, T176, T178) → U50_gggg(T177, T191, T176, T178, notEqF_in_gg(T177, T191))
U50_gggg(T177, T191, T176, T178, notEqF_out_gg(T177, T191)) → U51_gggg(T177, T191, T176, T178, noattackW_in_gg(T176, T178))
noattackW_in_gg(T202, []) → noattackW_out_gg(T202, [])
noattackW_in_gg(T209, .(T210, T211)) → U18_gg(T209, T210, T211, pX_in_ggaag(T209, T210, X311, X312, T211))
pX_in_ggaag(T209, T210, X311, X312, T211) → U52_ggaag(T209, T210, X311, X312, T211, notEqF_in_gg(T209, T210))
U52_ggaag(T209, T210, X311, X312, T211, notEqF_out_gg(T209, T210)) → U53_ggaag(T209, T210, X311, X312, T211, pN18_in_gagag(T210, X311, T209, X312, T211))
pN18_in_gagag(T210, T216, T209, X312, T211) → U54_gagag(T210, T216, T209, X312, T211, addI_in_ga(T210, T216))
addI_in_ga(0, s(s(s(0)))) → addI_out_ga(0, s(s(s(0))))
addI_in_ga(s(T219), s(X337)) → U7_ga(T219, X337, addI_in_ga(T219, X337))
U7_ga(T219, X337, addI_out_ga(T219, X337)) → addI_out_ga(s(T219), s(X337))
U54_gagag(T210, T216, T209, X312, T211, addI_out_ga(T210, T216)) → U55_gagag(T210, T216, T209, X312, T211, pN19_in_ggagg(T209, T216, X312, T210, T211))
pN19_in_ggagg(T209, T216, X312, T210, T211) → U56_ggagg(T209, T216, X312, T210, T211, notEqF_in_gg(T209, T216))
U56_ggagg(T209, T216, X312, T210, T211, notEqF_out_gg(T209, T216)) → U57_ggagg(T209, T216, X312, T210, T211, pN20_in_gagg(T209, X312, T210, T211))
pN20_in_gagg(T209, T224, T210, T211) → U58_gagg(T209, T224, T210, T211, addI_in_ga(T209, T224))
U58_gagg(T209, T224, T210, T211, addI_out_ga(T209, T224)) → U59_gagg(T209, T224, T210, T211, pN21_in_gggg(T210, T224, T209, T211))
pN21_in_gggg(T210, T224, T209, T211) → U60_gggg(T210, T224, T209, T211, notEqF_in_gg(T210, T224))
U60_gggg(T210, T224, T209, T211, notEqF_out_gg(T210, T224)) → U61_gggg(T210, T224, T209, T211, noattackY_in_gg(T209, T211))
noattackY_in_gg(T235, []) → noattackY_out_gg(T235, [])
noattackY_in_gg(T242, .(T243, T244)) → U19_gg(T242, T243, T244, pZ_in_ggaag(T242, T243, X380, X381, T244))
pZ_in_ggaag(T242, T243, X380, X381, T244) → U62_ggaag(T242, T243, X380, X381, T244, notEqF_in_gg(T242, T243))
U62_ggaag(T242, T243, X380, X381, T244, notEqF_out_gg(T242, T243)) → U63_ggaag(T242, T243, X380, X381, T244, pN22_in_gagag(T243, X380, T242, X381, T244))
pN22_in_gagag(T243, T249, T242, X381, T244) → U64_gagag(T243, T249, T242, X381, T244, addJ_in_ga(T243, T249))
addJ_in_ga(0, s(s(s(s(0))))) → addJ_out_ga(0, s(s(s(s(0)))))
addJ_in_ga(s(T252), s(X406)) → U8_ga(T252, X406, addJ_in_ga(T252, X406))
U8_ga(T252, X406, addJ_out_ga(T252, X406)) → addJ_out_ga(s(T252), s(X406))
U64_gagag(T243, T249, T242, X381, T244, addJ_out_ga(T243, T249)) → U65_gagag(T243, T249, T242, X381, T244, pN23_in_ggagg(T242, T249, X381, T243, T244))
pN23_in_ggagg(T242, T249, X381, T243, T244) → U66_ggagg(T242, T249, X381, T243, T244, notEqF_in_gg(T242, T249))
U66_ggagg(T242, T249, X381, T243, T244, notEqF_out_gg(T242, T249)) → U67_ggagg(T242, T249, X381, T243, T244, pN24_in_gagg(T242, X381, T243, T244))
pN24_in_gagg(T242, T257, T243, T244) → U68_gagg(T242, T257, T243, T244, addJ_in_ga(T242, T257))
U68_gagg(T242, T257, T243, T244, addJ_out_ga(T242, T257)) → U69_gagg(T242, T257, T243, T244, pN25_in_gggg(T243, T257, T242, T244))
pN25_in_gggg(T243, T257, T242, T244) → U70_gggg(T243, T257, T242, T244, notEqF_in_gg(T243, T257))
U70_gggg(T243, T257, T242, T244, notEqF_out_gg(T243, T257)) → U71_gggg(T243, T257, T242, T244, noattackN1_in_gg(T242, T244))
noattackN1_in_gg(T268, []) → noattackN1_out_gg(T268, [])
noattackN1_in_gg(T275, .(T276, T277)) → U20_gg(T275, T276, T277, pN2_in_ggaag(T275, T276, X449, X450, T277))
pN2_in_ggaag(T275, T276, X449, X450, T277) → U72_ggaag(T275, T276, X449, X450, T277, notEqF_in_gg(T275, T276))
U72_ggaag(T275, T276, X449, X450, T277, notEqF_out_gg(T275, T276)) → U73_ggaag(T275, T276, X449, X450, T277, pN26_in_gagag(T276, X449, T275, X450, T277))
pN26_in_gagag(T276, T282, T275, X450, T277) → U74_gagag(T276, T282, T275, X450, T277, addK_in_ga(T276, T282))
addK_in_ga(0, s(s(s(s(s(0)))))) → addK_out_ga(0, s(s(s(s(s(0))))))
addK_in_ga(s(T285), s(X475)) → U9_ga(T285, X475, addK_in_ga(T285, X475))
U9_ga(T285, X475, addK_out_ga(T285, X475)) → addK_out_ga(s(T285), s(X475))
U74_gagag(T276, T282, T275, X450, T277, addK_out_ga(T276, T282)) → U75_gagag(T276, T282, T275, X450, T277, pN27_in_ggagg(T275, T282, X450, T276, T277))
pN27_in_ggagg(T275, T282, X450, T276, T277) → U76_ggagg(T275, T282, X450, T276, T277, notEqF_in_gg(T275, T282))
U76_ggagg(T275, T282, X450, T276, T277, notEqF_out_gg(T275, T282)) → U77_ggagg(T275, T282, X450, T276, T277, pN28_in_gagg(T275, X450, T276, T277))
pN28_in_gagg(T275, T290, T276, T277) → U78_gagg(T275, T290, T276, T277, addK_in_ga(T275, T290))
U78_gagg(T275, T290, T276, T277, addK_out_ga(T275, T290)) → U79_gagg(T275, T290, T276, T277, pN29_in_gggg(T276, T290, T275, T277))
pN29_in_gggg(T276, T290, T275, T277) → U80_gggg(T276, T290, T275, T277, notEqF_in_gg(T276, T290))
U80_gggg(T276, T290, T275, T277, notEqF_out_gg(T276, T290)) → U81_gggg(T276, T290, T275, T277, noattackN3_in_gg(T275, T277))
noattackN3_in_gg(T301, []) → noattackN3_out_gg(T301, [])
noattackN3_in_gg(T308, .(T309, T310)) → U21_gg(T308, T309, T310, pN4_in_ggaag(T308, T309, X518, X519, T310))
pN4_in_ggaag(T308, T309, X518, X519, T310) → U82_ggaag(T308, T309, X518, X519, T310, notEqF_in_gg(T308, T309))
U82_ggaag(T308, T309, X518, X519, T310, notEqF_out_gg(T308, T309)) → U83_ggaag(T308, T309, X518, X519, T310, pN30_in_gagag(T309, X518, T308, X519, T310))
pN30_in_gagag(T309, T315, T308, X519, T310) → U84_gagag(T309, T315, T308, X519, T310, addL_in_ga(T309, T315))
addL_in_ga(0, s(s(s(s(s(s(0))))))) → addL_out_ga(0, s(s(s(s(s(s(0)))))))
addL_in_ga(s(T318), s(X544)) → U10_ga(T318, X544, addL_in_ga(T318, X544))
U10_ga(T318, X544, addL_out_ga(T318, X544)) → addL_out_ga(s(T318), s(X544))
U84_gagag(T309, T315, T308, X519, T310, addL_out_ga(T309, T315)) → U85_gagag(T309, T315, T308, X519, T310, pN31_in_ggagg(T308, T315, X519, T309, T310))
pN31_in_ggagg(T308, T315, X519, T309, T310) → U86_ggagg(T308, T315, X519, T309, T310, notEqF_in_gg(T308, T315))
U86_ggagg(T308, T315, X519, T309, T310, notEqF_out_gg(T308, T315)) → U87_ggagg(T308, T315, X519, T309, T310, pN32_in_gagg(T308, X519, T309, T310))
pN32_in_gagg(T308, T323, T309, T310) → U88_gagg(T308, T323, T309, T310, addL_in_ga(T308, T323))
U88_gagg(T308, T323, T309, T310, addL_out_ga(T308, T323)) → U89_gagg(T308, T323, T309, T310, pN33_in_gggg(T309, T323, T308, T310))
pN33_in_gggg(T309, T323, T308, T310) → U90_gggg(T309, T323, T308, T310, notEqF_in_gg(T309, T323))
U90_gggg(T309, T323, T308, T310, notEqF_out_gg(T309, T323)) → U91_gggg(T309, T323, T308, T310, noattackN5_in_gg(T308, T310))
noattackN5_in_gg(T334, []) → noattackN5_out_gg(T334, [])
noattackN5_in_gg(T341, .(T342, T343)) → U22_gg(T341, T342, T343, pN6_in_ggaagg(T341, T342, X587, X588, T343, s(s(s(s(s(s(s(0)))))))))
pN6_in_ggaagg(T341, T342, X587, X588, T343, T346) → U92_ggaagg(T341, T342, X587, X588, T343, T346, notEqF_in_gg(T341, T342))
U92_ggaagg(T341, T342, X587, X588, T343, T346, notEqF_out_gg(T341, T342)) → U93_ggaagg(T341, T342, X587, X588, T343, T346, pN34_in_gagagg(T342, X587, T341, X588, T343, T346))
pN34_in_gagagg(T342, T351, T341, X588, T343, T346) → U94_gagagg(T342, T351, T341, X588, T343, T346, addM_in_ga(T342, T351))
addM_in_ga(0, s(s(s(s(s(s(s(0)))))))) → addM_out_ga(0, s(s(s(s(s(s(s(0))))))))
addM_in_ga(s(T354), s(X615)) → U11_ga(T354, X615, addM_in_ga(T354, X615))
U11_ga(T354, X615, addM_out_ga(T354, X615)) → addM_out_ga(s(T354), s(X615))
U94_gagagg(T342, T351, T341, X588, T343, T346, addM_out_ga(T342, T351)) → U95_gagagg(T342, T351, T341, X588, T343, T346, pN35_in_ggaggg(T341, T351, X588, T342, T343, T346))
pN35_in_ggaggg(T341, T351, X588, T342, T343, T346) → U96_ggaggg(T341, T351, X588, T342, T343, T346, notEqF_in_gg(T341, T351))
U96_ggaggg(T341, T351, X588, T342, T343, T346, notEqF_out_gg(T341, T351)) → U97_ggaggg(T341, T351, X588, T342, T343, T346, pN36_in_gaggg(T341, X588, T342, T343, T346))
pN36_in_gaggg(T341, T359, T342, T343, T346) → U98_gaggg(T341, T359, T342, T343, T346, addM_in_ga(T341, T359))
U98_gaggg(T341, T359, T342, T343, T346, addM_out_ga(T341, T359)) → U99_gaggg(T341, T359, T342, T343, T346, pN37_in_ggggg(T342, T359, T341, T343, T346))
pN37_in_ggggg(T342, T359, T341, T343, T346) → U100_ggggg(T342, T359, T341, T343, T346, notEqF_in_gg(T342, T359))
U100_ggggg(T342, T359, T341, T343, T346, notEqF_out_gg(T342, T359)) → U101_ggggg(T342, T359, T341, T343, T346, noattackN7_in_ggg(T341, T343, T346))
noattackN7_in_ggg(T376, [], T377) → noattackN7_out_ggg(T376, [], T377)
noattackN7_in_ggg(T386, .(T387, T388), T389) → U23_ggg(T386, T387, T388, T389, pN8_in_gggaag(T386, T387, T389, X658, X659, T388))
pN8_in_gggaag(T386, T387, T389, X658, X659, T388) → U102_gggaag(T386, T387, T389, X658, X659, T388, notEqF_in_gg(T386, T387))
U102_gggaag(T386, T387, T389, X658, X659, T388, notEqF_out_gg(T386, T387)) → U103_gggaag(T386, T387, T389, X658, X659, T388, pN38_in_ggagag(T387, T389, X658, T386, X659, T388))
pN38_in_ggagag(T387, T389, T396, T386, X659, T388) → U104_ggagag(T387, T389, T396, T386, X659, T388, addN_in_gga(T387, T389, T396))
addN_in_gga(0, T403, s(T403)) → addN_out_gga(0, T403, s(T403))
addN_in_gga(s(T408), T409, s(X684)) → U12_gga(T408, T409, X684, addN_in_gga(T408, T409, X684))
U12_gga(T408, T409, X684, addN_out_gga(T408, T409, X684)) → addN_out_gga(s(T408), T409, s(X684))
U104_ggagag(T387, T389, T396, T386, X659, T388, addN_out_gga(T387, T389, T396)) → U105_ggagag(T387, T389, T396, T386, X659, T388, pN39_in_gggagg(T386, T396, T389, X659, T387, T388))
pN39_in_gggagg(T386, T396, T389, X659, T387, T388) → U106_gggagg(T386, T396, T389, X659, T387, T388, notEqF_in_gg(T386, T396))
U106_gggagg(T386, T396, T389, X659, T387, T388, notEqF_out_gg(T386, T396)) → U107_gggagg(T386, T396, T389, X659, T387, T388, pN40_in_ggagg(T386, T389, X659, T387, T388))
pN40_in_ggagg(T386, T389, T418, T387, T388) → U108_ggagg(T386, T389, T418, T387, T388, addN_in_gga(T386, T389, T418))
U108_ggagg(T386, T389, T418, T387, T388, addN_out_gga(T386, T389, T418)) → U109_ggagg(T386, T389, T418, T387, T388, pN37_in_ggggg(T387, T418, T386, T388, s(T389)))
U109_ggagg(T386, T389, T418, T387, T388, pN37_out_ggggg(T387, T418, T386, T388, s(T389))) → pN40_out_ggagg(T386, T389, T418, T387, T388)
U107_gggagg(T386, T396, T389, X659, T387, T388, pN40_out_ggagg(T386, T389, X659, T387, T388)) → pN39_out_gggagg(T386, T396, T389, X659, T387, T388)
U105_ggagag(T387, T389, T396, T386, X659, T388, pN39_out_gggagg(T386, T396, T389, X659, T387, T388)) → pN38_out_ggagag(T387, T389, T396, T386, X659, T388)
U103_gggaag(T386, T387, T389, X658, X659, T388, pN38_out_ggagag(T387, T389, X658, T386, X659, T388)) → pN8_out_gggaag(T386, T387, T389, X658, X659, T388)
U23_ggg(T386, T387, T388, T389, pN8_out_gggaag(T386, T387, T389, X658, X659, T388)) → noattackN7_out_ggg(T386, .(T387, T388), T389)
U101_ggggg(T342, T359, T341, T343, T346, noattackN7_out_ggg(T341, T343, T346)) → pN37_out_ggggg(T342, T359, T341, T343, T346)
U99_gaggg(T341, T359, T342, T343, T346, pN37_out_ggggg(T342, T359, T341, T343, T346)) → pN36_out_gaggg(T341, T359, T342, T343, T346)
U97_ggaggg(T341, T351, X588, T342, T343, T346, pN36_out_gaggg(T341, X588, T342, T343, T346)) → pN35_out_ggaggg(T341, T351, X588, T342, T343, T346)
U95_gagagg(T342, T351, T341, X588, T343, T346, pN35_out_ggaggg(T341, T351, X588, T342, T343, T346)) → pN34_out_gagagg(T342, T351, T341, X588, T343, T346)
U93_ggaagg(T341, T342, X587, X588, T343, T346, pN34_out_gagagg(T342, X587, T341, X588, T343, T346)) → pN6_out_ggaagg(T341, T342, X587, X588, T343, T346)
U22_gg(T341, T342, T343, pN6_out_ggaagg(T341, T342, X587, X588, T343, s(s(s(s(s(s(s(0))))))))) → noattackN5_out_gg(T341, .(T342, T343))
U91_gggg(T309, T323, T308, T310, noattackN5_out_gg(T308, T310)) → pN33_out_gggg(T309, T323, T308, T310)
U89_gagg(T308, T323, T309, T310, pN33_out_gggg(T309, T323, T308, T310)) → pN32_out_gagg(T308, T323, T309, T310)
U87_ggagg(T308, T315, X519, T309, T310, pN32_out_gagg(T308, X519, T309, T310)) → pN31_out_ggagg(T308, T315, X519, T309, T310)
U85_gagag(T309, T315, T308, X519, T310, pN31_out_ggagg(T308, T315, X519, T309, T310)) → pN30_out_gagag(T309, T315, T308, X519, T310)
U83_ggaag(T308, T309, X518, X519, T310, pN30_out_gagag(T309, X518, T308, X519, T310)) → pN4_out_ggaag(T308, T309, X518, X519, T310)
U21_gg(T308, T309, T310, pN4_out_ggaag(T308, T309, X518, X519, T310)) → noattackN3_out_gg(T308, .(T309, T310))
U81_gggg(T276, T290, T275, T277, noattackN3_out_gg(T275, T277)) → pN29_out_gggg(T276, T290, T275, T277)
U79_gagg(T275, T290, T276, T277, pN29_out_gggg(T276, T290, T275, T277)) → pN28_out_gagg(T275, T290, T276, T277)
U77_ggagg(T275, T282, X450, T276, T277, pN28_out_gagg(T275, X450, T276, T277)) → pN27_out_ggagg(T275, T282, X450, T276, T277)
U75_gagag(T276, T282, T275, X450, T277, pN27_out_ggagg(T275, T282, X450, T276, T277)) → pN26_out_gagag(T276, T282, T275, X450, T277)
U73_ggaag(T275, T276, X449, X450, T277, pN26_out_gagag(T276, X449, T275, X450, T277)) → pN2_out_ggaag(T275, T276, X449, X450, T277)
U20_gg(T275, T276, T277, pN2_out_ggaag(T275, T276, X449, X450, T277)) → noattackN1_out_gg(T275, .(T276, T277))
U71_gggg(T243, T257, T242, T244, noattackN1_out_gg(T242, T244)) → pN25_out_gggg(T243, T257, T242, T244)
U69_gagg(T242, T257, T243, T244, pN25_out_gggg(T243, T257, T242, T244)) → pN24_out_gagg(T242, T257, T243, T244)
U67_ggagg(T242, T249, X381, T243, T244, pN24_out_gagg(T242, X381, T243, T244)) → pN23_out_ggagg(T242, T249, X381, T243, T244)
U65_gagag(T243, T249, T242, X381, T244, pN23_out_ggagg(T242, T249, X381, T243, T244)) → pN22_out_gagag(T243, T249, T242, X381, T244)
U63_ggaag(T242, T243, X380, X381, T244, pN22_out_gagag(T243, X380, T242, X381, T244)) → pZ_out_ggaag(T242, T243, X380, X381, T244)
U19_gg(T242, T243, T244, pZ_out_ggaag(T242, T243, X380, X381, T244)) → noattackY_out_gg(T242, .(T243, T244))
U61_gggg(T210, T224, T209, T211, noattackY_out_gg(T209, T211)) → pN21_out_gggg(T210, T224, T209, T211)
U59_gagg(T209, T224, T210, T211, pN21_out_gggg(T210, T224, T209, T211)) → pN20_out_gagg(T209, T224, T210, T211)
U57_ggagg(T209, T216, X312, T210, T211, pN20_out_gagg(T209, X312, T210, T211)) → pN19_out_ggagg(T209, T216, X312, T210, T211)
U55_gagag(T210, T216, T209, X312, T211, pN19_out_ggagg(T209, T216, X312, T210, T211)) → pN18_out_gagag(T210, T216, T209, X312, T211)
U53_ggaag(T209, T210, X311, X312, T211, pN18_out_gagag(T210, X311, T209, X312, T211)) → pX_out_ggaag(T209, T210, X311, X312, T211)
U18_gg(T209, T210, T211, pX_out_ggaag(T209, T210, X311, X312, T211)) → noattackW_out_gg(T209, .(T210, T211))
U51_gggg(T177, T191, T176, T178, noattackW_out_gg(T176, T178)) → pN17_out_gggg(T177, T191, T176, T178)
U49_gagg(T176, T191, T177, T178, pN17_out_gggg(T177, T191, T176, T178)) → pN16_out_gagg(T176, T191, T177, T178)
U47_ggagg(T176, T183, X243, T177, T178, pN16_out_gagg(T176, X243, T177, T178)) → pN15_out_ggagg(T176, T183, X243, T177, T178)
U45_gagag(T177, T183, T176, X243, T178, pN15_out_ggagg(T176, T183, X243, T177, T178)) → pN14_out_gagag(T177, T183, T176, X243, T178)
U43_ggaag(T176, T177, X242, X243, T178, pN14_out_gagag(T177, X242, T176, X243, T178)) → pV_out_ggaag(T176, T177, X242, X243, T178)
U17_gg(T176, T177, T178, pV_out_ggaag(T176, T177, X242, X243, T178)) → noattackU_out_gg(T176, .(T177, T178))
U41_gggg(T126, T158, T125, T127, noattackU_out_gg(T125, T127)) → pN13_out_gggg(T126, T158, T125, T127)
U39_gagg(T125, T158, T126, T127, pN13_out_gggg(T126, T158, T125, T127)) → pN12_out_gagg(T125, T158, T126, T127)
U37_ggagg(T125, T150, X156, T126, T127, pN12_out_gagg(T125, X156, T126, T127)) → pN11_out_ggagg(T125, T150, X156, T126, T127)
U35_gagag(T126, T150, T125, X156, T127, pN11_out_ggagg(T125, T150, X156, T126, T127)) → pN10_out_gagag(T126, T150, T125, X156, T127)
U33_ggaag(T125, T126, X155, X156, T127, pN10_out_gagag(T126, X155, T125, X156, T127)) → pS_out_ggaag(T125, T126, X155, X156, T127)
U15_gg(T125, T126, T127, pS_out_ggaag(T125, T126, X155, X156, T127)) → noattackR_out_gg(T125, .(T126, T127))
U30_gg(T108, T109, noattackR_out_gg(T108, T109)) → U31_gg(T108, T109, safeT_in_g(T109))
safeT_in_g([]) → safeT_out_g([])
safeT_in_g(.(T427, T428)) → U16_g(T427, T428, pQ_in_gg(T427, T428))
U16_g(T427, T428, pQ_out_gg(T427, T428)) → safeT_out_g(.(T427, T428))
U31_gg(T108, T109, safeT_out_g(T109)) → pQ_out_gg(T108, T109)
U14_gg(T108, T109, pQ_out_gg(T108, T109)) → safeP_out_gg(T108, T109)
U27_gag(T20, T77, T22, safeP_out_gg(T22, T77)) → pN9_out_gag(T20, T77, T22)
U25_agaa(T22, T15, T20, T21, pN9_out_gag(T20, T21, T22)) → pB_out_agaa(T22, T15, T20, T21)
U1_a(T11, T12, pB_out_agaa(T11, .(s(s(0)), .(s(s(s(0))), .(s(s(s(s(0)))), .(s(s(s(s(s(0))))), .(s(s(s(s(s(s(0)))))), .(s(s(s(s(s(s(s(0))))))), .(s(s(s(s(s(s(s(s(0)))))))), []))))))), X16, T12)) → queensA_out_a(.(T11, T12))
ADDH_IN_GA(s(T186), s(X268)) → ADDH_IN_GA(T186, X268)
ADDH_IN_GA(s(T186)) → ADDH_IN_GA(T186)
From the DPs we obtained the following set of size-change graphs:
ADDG_IN_GA(s(T153), s(X199)) → ADDG_IN_GA(T153, X199)
queensA_in_a(.(T11, T12)) → U1_a(T11, T12, pB_in_agaa(T11, .(s(s(0)), .(s(s(s(0))), .(s(s(s(s(0)))), .(s(s(s(s(s(0))))), .(s(s(s(s(s(s(0)))))), .(s(s(s(s(s(s(s(0))))))), .(s(s(s(s(s(s(s(s(0)))))))), []))))))), X16, T12))
pB_in_agaa(T22, T15, T20, T21) → U24_agaa(T22, T15, T20, T21, deleteO_in_aga(T22, T15, T20))
deleteO_in_aga(s(0), T36, T36) → deleteO_out_aga(s(0), T36, T36)
deleteO_in_aga(T48, T47, .(s(0), X57)) → U13_aga(T48, T47, X57, deleteC_in_aga(T48, T47, X57))
deleteC_in_aga(T61, .(T61, T62), T62) → deleteC_out_aga(T61, .(T61, T62), T62)
deleteC_in_aga(T72, .(T70, T71), .(T70, X86)) → U2_aga(T72, T70, T71, X86, deleteC_in_aga(T72, T71, X86))
U2_aga(T72, T70, T71, X86, deleteC_out_aga(T72, T71, X86)) → deleteC_out_aga(T72, .(T70, T71), .(T70, X86))
U13_aga(T48, T47, X57, deleteC_out_aga(T48, T47, X57)) → deleteO_out_aga(T48, T47, .(s(0), X57))
U24_agaa(T22, T15, T20, T21, deleteO_out_aga(T22, T15, T20)) → U25_agaa(T22, T15, T20, T21, pN9_in_gag(T20, T21, T22))
pN9_in_gag(T20, T77, T22) → U26_gag(T20, T77, T22, permD_in_ga(T20, T77))
permD_in_ga([], []) → permD_out_ga([], [])
permD_in_ga(.(T86, T87), .(T90, T91)) → U3_ga(T86, T87, T90, T91, pE_in_aggaa(T90, T86, T87, X104, T91))
pE_in_aggaa(T90, T86, T87, T96, T97) → U28_aggaa(T90, T86, T87, T96, T97, deleteC_in_aga(T90, .(T86, T87), T96))
U28_aggaa(T90, T86, T87, T96, T97, deleteC_out_aga(T90, .(T86, T87), T96)) → U29_aggaa(T90, T86, T87, T96, T97, permD_in_ga(T96, T97))
U29_aggaa(T90, T86, T87, T96, T97, permD_out_ga(T96, T97)) → pE_out_aggaa(T90, T86, T87, T96, T97)
U3_ga(T86, T87, T90, T91, pE_out_aggaa(T90, T86, T87, X104, T91)) → permD_out_ga(.(T86, T87), .(T90, T91))
U26_gag(T20, T77, T22, permD_out_ga(T20, T77)) → U27_gag(T20, T77, T22, safeP_in_gg(T22, T77))
safeP_in_gg(T108, T109) → U14_gg(T108, T109, pQ_in_gg(T108, T109))
pQ_in_gg(T108, T109) → U30_gg(T108, T109, noattackR_in_gg(T108, T109))
noattackR_in_gg(T118, []) → noattackR_out_gg(T118, [])
noattackR_in_gg(T125, .(T126, T127)) → U15_gg(T125, T126, T127, pS_in_ggaag(T125, T126, X155, X156, T127))
pS_in_ggaag(T125, T126, X155, X156, T127) → U32_ggaag(T125, T126, X155, X156, T127, notEqF_in_gg(T125, T126))
notEqF_in_gg(0, s(T136)) → notEqF_out_gg(0, s(T136))
notEqF_in_gg(s(T141), 0) → notEqF_out_gg(s(T141), 0)
notEqF_in_gg(s(T146), s(T147)) → U4_gg(T146, T147, notEqF_in_gg(T146, T147))
U4_gg(T146, T147, notEqF_out_gg(T146, T147)) → notEqF_out_gg(s(T146), s(T147))
U32_ggaag(T125, T126, X155, X156, T127, notEqF_out_gg(T125, T126)) → U33_ggaag(T125, T126, X155, X156, T127, pN10_in_gagag(T126, X155, T125, X156, T127))
pN10_in_gagag(T126, T150, T125, X156, T127) → U34_gagag(T126, T150, T125, X156, T127, addG_in_ga(T126, T150))
addG_in_ga(0, s(0)) → addG_out_ga(0, s(0))
addG_in_ga(s(T153), s(X199)) → U5_ga(T153, X199, addG_in_ga(T153, X199))
U5_ga(T153, X199, addG_out_ga(T153, X199)) → addG_out_ga(s(T153), s(X199))
U34_gagag(T126, T150, T125, X156, T127, addG_out_ga(T126, T150)) → U35_gagag(T126, T150, T125, X156, T127, pN11_in_ggagg(T125, T150, X156, T126, T127))
pN11_in_ggagg(T125, T150, X156, T126, T127) → U36_ggagg(T125, T150, X156, T126, T127, notEqF_in_gg(T125, T150))
U36_ggagg(T125, T150, X156, T126, T127, notEqF_out_gg(T125, T150)) → U37_ggagg(T125, T150, X156, T126, T127, pN12_in_gagg(T125, X156, T126, T127))
pN12_in_gagg(T125, T158, T126, T127) → U38_gagg(T125, T158, T126, T127, addG_in_ga(T125, T158))
U38_gagg(T125, T158, T126, T127, addG_out_ga(T125, T158)) → U39_gagg(T125, T158, T126, T127, pN13_in_gggg(T126, T158, T125, T127))
pN13_in_gggg(T126, T158, T125, T127) → U40_gggg(T126, T158, T125, T127, notEqF_in_gg(T126, T158))
U40_gggg(T126, T158, T125, T127, notEqF_out_gg(T126, T158)) → U41_gggg(T126, T158, T125, T127, noattackU_in_gg(T125, T127))
noattackU_in_gg(T169, []) → noattackU_out_gg(T169, [])
noattackU_in_gg(T176, .(T177, T178)) → U17_gg(T176, T177, T178, pV_in_ggaag(T176, T177, X242, X243, T178))
pV_in_ggaag(T176, T177, X242, X243, T178) → U42_ggaag(T176, T177, X242, X243, T178, notEqF_in_gg(T176, T177))
U42_ggaag(T176, T177, X242, X243, T178, notEqF_out_gg(T176, T177)) → U43_ggaag(T176, T177, X242, X243, T178, pN14_in_gagag(T177, X242, T176, X243, T178))
pN14_in_gagag(T177, T183, T176, X243, T178) → U44_gagag(T177, T183, T176, X243, T178, addH_in_ga(T177, T183))
addH_in_ga(0, s(s(0))) → addH_out_ga(0, s(s(0)))
addH_in_ga(s(T186), s(X268)) → U6_ga(T186, X268, addH_in_ga(T186, X268))
U6_ga(T186, X268, addH_out_ga(T186, X268)) → addH_out_ga(s(T186), s(X268))
U44_gagag(T177, T183, T176, X243, T178, addH_out_ga(T177, T183)) → U45_gagag(T177, T183, T176, X243, T178, pN15_in_ggagg(T176, T183, X243, T177, T178))
pN15_in_ggagg(T176, T183, X243, T177, T178) → U46_ggagg(T176, T183, X243, T177, T178, notEqF_in_gg(T176, T183))
U46_ggagg(T176, T183, X243, T177, T178, notEqF_out_gg(T176, T183)) → U47_ggagg(T176, T183, X243, T177, T178, pN16_in_gagg(T176, X243, T177, T178))
pN16_in_gagg(T176, T191, T177, T178) → U48_gagg(T176, T191, T177, T178, addH_in_ga(T176, T191))
U48_gagg(T176, T191, T177, T178, addH_out_ga(T176, T191)) → U49_gagg(T176, T191, T177, T178, pN17_in_gggg(T177, T191, T176, T178))
pN17_in_gggg(T177, T191, T176, T178) → U50_gggg(T177, T191, T176, T178, notEqF_in_gg(T177, T191))
U50_gggg(T177, T191, T176, T178, notEqF_out_gg(T177, T191)) → U51_gggg(T177, T191, T176, T178, noattackW_in_gg(T176, T178))
noattackW_in_gg(T202, []) → noattackW_out_gg(T202, [])
noattackW_in_gg(T209, .(T210, T211)) → U18_gg(T209, T210, T211, pX_in_ggaag(T209, T210, X311, X312, T211))
pX_in_ggaag(T209, T210, X311, X312, T211) → U52_ggaag(T209, T210, X311, X312, T211, notEqF_in_gg(T209, T210))
U52_ggaag(T209, T210, X311, X312, T211, notEqF_out_gg(T209, T210)) → U53_ggaag(T209, T210, X311, X312, T211, pN18_in_gagag(T210, X311, T209, X312, T211))
pN18_in_gagag(T210, T216, T209, X312, T211) → U54_gagag(T210, T216, T209, X312, T211, addI_in_ga(T210, T216))
addI_in_ga(0, s(s(s(0)))) → addI_out_ga(0, s(s(s(0))))
addI_in_ga(s(T219), s(X337)) → U7_ga(T219, X337, addI_in_ga(T219, X337))
U7_ga(T219, X337, addI_out_ga(T219, X337)) → addI_out_ga(s(T219), s(X337))
U54_gagag(T210, T216, T209, X312, T211, addI_out_ga(T210, T216)) → U55_gagag(T210, T216, T209, X312, T211, pN19_in_ggagg(T209, T216, X312, T210, T211))
pN19_in_ggagg(T209, T216, X312, T210, T211) → U56_ggagg(T209, T216, X312, T210, T211, notEqF_in_gg(T209, T216))
U56_ggagg(T209, T216, X312, T210, T211, notEqF_out_gg(T209, T216)) → U57_ggagg(T209, T216, X312, T210, T211, pN20_in_gagg(T209, X312, T210, T211))
pN20_in_gagg(T209, T224, T210, T211) → U58_gagg(T209, T224, T210, T211, addI_in_ga(T209, T224))
U58_gagg(T209, T224, T210, T211, addI_out_ga(T209, T224)) → U59_gagg(T209, T224, T210, T211, pN21_in_gggg(T210, T224, T209, T211))
pN21_in_gggg(T210, T224, T209, T211) → U60_gggg(T210, T224, T209, T211, notEqF_in_gg(T210, T224))
U60_gggg(T210, T224, T209, T211, notEqF_out_gg(T210, T224)) → U61_gggg(T210, T224, T209, T211, noattackY_in_gg(T209, T211))
noattackY_in_gg(T235, []) → noattackY_out_gg(T235, [])
noattackY_in_gg(T242, .(T243, T244)) → U19_gg(T242, T243, T244, pZ_in_ggaag(T242, T243, X380, X381, T244))
pZ_in_ggaag(T242, T243, X380, X381, T244) → U62_ggaag(T242, T243, X380, X381, T244, notEqF_in_gg(T242, T243))
U62_ggaag(T242, T243, X380, X381, T244, notEqF_out_gg(T242, T243)) → U63_ggaag(T242, T243, X380, X381, T244, pN22_in_gagag(T243, X380, T242, X381, T244))
pN22_in_gagag(T243, T249, T242, X381, T244) → U64_gagag(T243, T249, T242, X381, T244, addJ_in_ga(T243, T249))
addJ_in_ga(0, s(s(s(s(0))))) → addJ_out_ga(0, s(s(s(s(0)))))
addJ_in_ga(s(T252), s(X406)) → U8_ga(T252, X406, addJ_in_ga(T252, X406))
U8_ga(T252, X406, addJ_out_ga(T252, X406)) → addJ_out_ga(s(T252), s(X406))
U64_gagag(T243, T249, T242, X381, T244, addJ_out_ga(T243, T249)) → U65_gagag(T243, T249, T242, X381, T244, pN23_in_ggagg(T242, T249, X381, T243, T244))
pN23_in_ggagg(T242, T249, X381, T243, T244) → U66_ggagg(T242, T249, X381, T243, T244, notEqF_in_gg(T242, T249))
U66_ggagg(T242, T249, X381, T243, T244, notEqF_out_gg(T242, T249)) → U67_ggagg(T242, T249, X381, T243, T244, pN24_in_gagg(T242, X381, T243, T244))
pN24_in_gagg(T242, T257, T243, T244) → U68_gagg(T242, T257, T243, T244, addJ_in_ga(T242, T257))
U68_gagg(T242, T257, T243, T244, addJ_out_ga(T242, T257)) → U69_gagg(T242, T257, T243, T244, pN25_in_gggg(T243, T257, T242, T244))
pN25_in_gggg(T243, T257, T242, T244) → U70_gggg(T243, T257, T242, T244, notEqF_in_gg(T243, T257))
U70_gggg(T243, T257, T242, T244, notEqF_out_gg(T243, T257)) → U71_gggg(T243, T257, T242, T244, noattackN1_in_gg(T242, T244))
noattackN1_in_gg(T268, []) → noattackN1_out_gg(T268, [])
noattackN1_in_gg(T275, .(T276, T277)) → U20_gg(T275, T276, T277, pN2_in_ggaag(T275, T276, X449, X450, T277))
pN2_in_ggaag(T275, T276, X449, X450, T277) → U72_ggaag(T275, T276, X449, X450, T277, notEqF_in_gg(T275, T276))
U72_ggaag(T275, T276, X449, X450, T277, notEqF_out_gg(T275, T276)) → U73_ggaag(T275, T276, X449, X450, T277, pN26_in_gagag(T276, X449, T275, X450, T277))
pN26_in_gagag(T276, T282, T275, X450, T277) → U74_gagag(T276, T282, T275, X450, T277, addK_in_ga(T276, T282))
addK_in_ga(0, s(s(s(s(s(0)))))) → addK_out_ga(0, s(s(s(s(s(0))))))
addK_in_ga(s(T285), s(X475)) → U9_ga(T285, X475, addK_in_ga(T285, X475))
U9_ga(T285, X475, addK_out_ga(T285, X475)) → addK_out_ga(s(T285), s(X475))
U74_gagag(T276, T282, T275, X450, T277, addK_out_ga(T276, T282)) → U75_gagag(T276, T282, T275, X450, T277, pN27_in_ggagg(T275, T282, X450, T276, T277))
pN27_in_ggagg(T275, T282, X450, T276, T277) → U76_ggagg(T275, T282, X450, T276, T277, notEqF_in_gg(T275, T282))
U76_ggagg(T275, T282, X450, T276, T277, notEqF_out_gg(T275, T282)) → U77_ggagg(T275, T282, X450, T276, T277, pN28_in_gagg(T275, X450, T276, T277))
pN28_in_gagg(T275, T290, T276, T277) → U78_gagg(T275, T290, T276, T277, addK_in_ga(T275, T290))
U78_gagg(T275, T290, T276, T277, addK_out_ga(T275, T290)) → U79_gagg(T275, T290, T276, T277, pN29_in_gggg(T276, T290, T275, T277))
pN29_in_gggg(T276, T290, T275, T277) → U80_gggg(T276, T290, T275, T277, notEqF_in_gg(T276, T290))
U80_gggg(T276, T290, T275, T277, notEqF_out_gg(T276, T290)) → U81_gggg(T276, T290, T275, T277, noattackN3_in_gg(T275, T277))
noattackN3_in_gg(T301, []) → noattackN3_out_gg(T301, [])
noattackN3_in_gg(T308, .(T309, T310)) → U21_gg(T308, T309, T310, pN4_in_ggaag(T308, T309, X518, X519, T310))
pN4_in_ggaag(T308, T309, X518, X519, T310) → U82_ggaag(T308, T309, X518, X519, T310, notEqF_in_gg(T308, T309))
U82_ggaag(T308, T309, X518, X519, T310, notEqF_out_gg(T308, T309)) → U83_ggaag(T308, T309, X518, X519, T310, pN30_in_gagag(T309, X518, T308, X519, T310))
pN30_in_gagag(T309, T315, T308, X519, T310) → U84_gagag(T309, T315, T308, X519, T310, addL_in_ga(T309, T315))
addL_in_ga(0, s(s(s(s(s(s(0))))))) → addL_out_ga(0, s(s(s(s(s(s(0)))))))
addL_in_ga(s(T318), s(X544)) → U10_ga(T318, X544, addL_in_ga(T318, X544))
U10_ga(T318, X544, addL_out_ga(T318, X544)) → addL_out_ga(s(T318), s(X544))
U84_gagag(T309, T315, T308, X519, T310, addL_out_ga(T309, T315)) → U85_gagag(T309, T315, T308, X519, T310, pN31_in_ggagg(T308, T315, X519, T309, T310))
pN31_in_ggagg(T308, T315, X519, T309, T310) → U86_ggagg(T308, T315, X519, T309, T310, notEqF_in_gg(T308, T315))
U86_ggagg(T308, T315, X519, T309, T310, notEqF_out_gg(T308, T315)) → U87_ggagg(T308, T315, X519, T309, T310, pN32_in_gagg(T308, X519, T309, T310))
pN32_in_gagg(T308, T323, T309, T310) → U88_gagg(T308, T323, T309, T310, addL_in_ga(T308, T323))
U88_gagg(T308, T323, T309, T310, addL_out_ga(T308, T323)) → U89_gagg(T308, T323, T309, T310, pN33_in_gggg(T309, T323, T308, T310))
pN33_in_gggg(T309, T323, T308, T310) → U90_gggg(T309, T323, T308, T310, notEqF_in_gg(T309, T323))
U90_gggg(T309, T323, T308, T310, notEqF_out_gg(T309, T323)) → U91_gggg(T309, T323, T308, T310, noattackN5_in_gg(T308, T310))
noattackN5_in_gg(T334, []) → noattackN5_out_gg(T334, [])
noattackN5_in_gg(T341, .(T342, T343)) → U22_gg(T341, T342, T343, pN6_in_ggaagg(T341, T342, X587, X588, T343, s(s(s(s(s(s(s(0)))))))))
pN6_in_ggaagg(T341, T342, X587, X588, T343, T346) → U92_ggaagg(T341, T342, X587, X588, T343, T346, notEqF_in_gg(T341, T342))
U92_ggaagg(T341, T342, X587, X588, T343, T346, notEqF_out_gg(T341, T342)) → U93_ggaagg(T341, T342, X587, X588, T343, T346, pN34_in_gagagg(T342, X587, T341, X588, T343, T346))
pN34_in_gagagg(T342, T351, T341, X588, T343, T346) → U94_gagagg(T342, T351, T341, X588, T343, T346, addM_in_ga(T342, T351))
addM_in_ga(0, s(s(s(s(s(s(s(0)))))))) → addM_out_ga(0, s(s(s(s(s(s(s(0))))))))
addM_in_ga(s(T354), s(X615)) → U11_ga(T354, X615, addM_in_ga(T354, X615))
U11_ga(T354, X615, addM_out_ga(T354, X615)) → addM_out_ga(s(T354), s(X615))
U94_gagagg(T342, T351, T341, X588, T343, T346, addM_out_ga(T342, T351)) → U95_gagagg(T342, T351, T341, X588, T343, T346, pN35_in_ggaggg(T341, T351, X588, T342, T343, T346))
pN35_in_ggaggg(T341, T351, X588, T342, T343, T346) → U96_ggaggg(T341, T351, X588, T342, T343, T346, notEqF_in_gg(T341, T351))
U96_ggaggg(T341, T351, X588, T342, T343, T346, notEqF_out_gg(T341, T351)) → U97_ggaggg(T341, T351, X588, T342, T343, T346, pN36_in_gaggg(T341, X588, T342, T343, T346))
pN36_in_gaggg(T341, T359, T342, T343, T346) → U98_gaggg(T341, T359, T342, T343, T346, addM_in_ga(T341, T359))
U98_gaggg(T341, T359, T342, T343, T346, addM_out_ga(T341, T359)) → U99_gaggg(T341, T359, T342, T343, T346, pN37_in_ggggg(T342, T359, T341, T343, T346))
pN37_in_ggggg(T342, T359, T341, T343, T346) → U100_ggggg(T342, T359, T341, T343, T346, notEqF_in_gg(T342, T359))
U100_ggggg(T342, T359, T341, T343, T346, notEqF_out_gg(T342, T359)) → U101_ggggg(T342, T359, T341, T343, T346, noattackN7_in_ggg(T341, T343, T346))
noattackN7_in_ggg(T376, [], T377) → noattackN7_out_ggg(T376, [], T377)
noattackN7_in_ggg(T386, .(T387, T388), T389) → U23_ggg(T386, T387, T388, T389, pN8_in_gggaag(T386, T387, T389, X658, X659, T388))
pN8_in_gggaag(T386, T387, T389, X658, X659, T388) → U102_gggaag(T386, T387, T389, X658, X659, T388, notEqF_in_gg(T386, T387))
U102_gggaag(T386, T387, T389, X658, X659, T388, notEqF_out_gg(T386, T387)) → U103_gggaag(T386, T387, T389, X658, X659, T388, pN38_in_ggagag(T387, T389, X658, T386, X659, T388))
pN38_in_ggagag(T387, T389, T396, T386, X659, T388) → U104_ggagag(T387, T389, T396, T386, X659, T388, addN_in_gga(T387, T389, T396))
addN_in_gga(0, T403, s(T403)) → addN_out_gga(0, T403, s(T403))
addN_in_gga(s(T408), T409, s(X684)) → U12_gga(T408, T409, X684, addN_in_gga(T408, T409, X684))
U12_gga(T408, T409, X684, addN_out_gga(T408, T409, X684)) → addN_out_gga(s(T408), T409, s(X684))
U104_ggagag(T387, T389, T396, T386, X659, T388, addN_out_gga(T387, T389, T396)) → U105_ggagag(T387, T389, T396, T386, X659, T388, pN39_in_gggagg(T386, T396, T389, X659, T387, T388))
pN39_in_gggagg(T386, T396, T389, X659, T387, T388) → U106_gggagg(T386, T396, T389, X659, T387, T388, notEqF_in_gg(T386, T396))
U106_gggagg(T386, T396, T389, X659, T387, T388, notEqF_out_gg(T386, T396)) → U107_gggagg(T386, T396, T389, X659, T387, T388, pN40_in_ggagg(T386, T389, X659, T387, T388))
pN40_in_ggagg(T386, T389, T418, T387, T388) → U108_ggagg(T386, T389, T418, T387, T388, addN_in_gga(T386, T389, T418))
U108_ggagg(T386, T389, T418, T387, T388, addN_out_gga(T386, T389, T418)) → U109_ggagg(T386, T389, T418, T387, T388, pN37_in_ggggg(T387, T418, T386, T388, s(T389)))
U109_ggagg(T386, T389, T418, T387, T388, pN37_out_ggggg(T387, T418, T386, T388, s(T389))) → pN40_out_ggagg(T386, T389, T418, T387, T388)
U107_gggagg(T386, T396, T389, X659, T387, T388, pN40_out_ggagg(T386, T389, X659, T387, T388)) → pN39_out_gggagg(T386, T396, T389, X659, T387, T388)
U105_ggagag(T387, T389, T396, T386, X659, T388, pN39_out_gggagg(T386, T396, T389, X659, T387, T388)) → pN38_out_ggagag(T387, T389, T396, T386, X659, T388)
U103_gggaag(T386, T387, T389, X658, X659, T388, pN38_out_ggagag(T387, T389, X658, T386, X659, T388)) → pN8_out_gggaag(T386, T387, T389, X658, X659, T388)
U23_ggg(T386, T387, T388, T389, pN8_out_gggaag(T386, T387, T389, X658, X659, T388)) → noattackN7_out_ggg(T386, .(T387, T388), T389)
U101_ggggg(T342, T359, T341, T343, T346, noattackN7_out_ggg(T341, T343, T346)) → pN37_out_ggggg(T342, T359, T341, T343, T346)
U99_gaggg(T341, T359, T342, T343, T346, pN37_out_ggggg(T342, T359, T341, T343, T346)) → pN36_out_gaggg(T341, T359, T342, T343, T346)
U97_ggaggg(T341, T351, X588, T342, T343, T346, pN36_out_gaggg(T341, X588, T342, T343, T346)) → pN35_out_ggaggg(T341, T351, X588, T342, T343, T346)
U95_gagagg(T342, T351, T341, X588, T343, T346, pN35_out_ggaggg(T341, T351, X588, T342, T343, T346)) → pN34_out_gagagg(T342, T351, T341, X588, T343, T346)
U93_ggaagg(T341, T342, X587, X588, T343, T346, pN34_out_gagagg(T342, X587, T341, X588, T343, T346)) → pN6_out_ggaagg(T341, T342, X587, X588, T343, T346)
U22_gg(T341, T342, T343, pN6_out_ggaagg(T341, T342, X587, X588, T343, s(s(s(s(s(s(s(0))))))))) → noattackN5_out_gg(T341, .(T342, T343))
U91_gggg(T309, T323, T308, T310, noattackN5_out_gg(T308, T310)) → pN33_out_gggg(T309, T323, T308, T310)
U89_gagg(T308, T323, T309, T310, pN33_out_gggg(T309, T323, T308, T310)) → pN32_out_gagg(T308, T323, T309, T310)
U87_ggagg(T308, T315, X519, T309, T310, pN32_out_gagg(T308, X519, T309, T310)) → pN31_out_ggagg(T308, T315, X519, T309, T310)
U85_gagag(T309, T315, T308, X519, T310, pN31_out_ggagg(T308, T315, X519, T309, T310)) → pN30_out_gagag(T309, T315, T308, X519, T310)
U83_ggaag(T308, T309, X518, X519, T310, pN30_out_gagag(T309, X518, T308, X519, T310)) → pN4_out_ggaag(T308, T309, X518, X519, T310)
U21_gg(T308, T309, T310, pN4_out_ggaag(T308, T309, X518, X519, T310)) → noattackN3_out_gg(T308, .(T309, T310))
U81_gggg(T276, T290, T275, T277, noattackN3_out_gg(T275, T277)) → pN29_out_gggg(T276, T290, T275, T277)
U79_gagg(T275, T290, T276, T277, pN29_out_gggg(T276, T290, T275, T277)) → pN28_out_gagg(T275, T290, T276, T277)
U77_ggagg(T275, T282, X450, T276, T277, pN28_out_gagg(T275, X450, T276, T277)) → pN27_out_ggagg(T275, T282, X450, T276, T277)
U75_gagag(T276, T282, T275, X450, T277, pN27_out_ggagg(T275, T282, X450, T276, T277)) → pN26_out_gagag(T276, T282, T275, X450, T277)
U73_ggaag(T275, T276, X449, X450, T277, pN26_out_gagag(T276, X449, T275, X450, T277)) → pN2_out_ggaag(T275, T276, X449, X450, T277)
U20_gg(T275, T276, T277, pN2_out_ggaag(T275, T276, X449, X450, T277)) → noattackN1_out_gg(T275, .(T276, T277))
U71_gggg(T243, T257, T242, T244, noattackN1_out_gg(T242, T244)) → pN25_out_gggg(T243, T257, T242, T244)
U69_gagg(T242, T257, T243, T244, pN25_out_gggg(T243, T257, T242, T244)) → pN24_out_gagg(T242, T257, T243, T244)
U67_ggagg(T242, T249, X381, T243, T244, pN24_out_gagg(T242, X381, T243, T244)) → pN23_out_ggagg(T242, T249, X381, T243, T244)
U65_gagag(T243, T249, T242, X381, T244, pN23_out_ggagg(T242, T249, X381, T243, T244)) → pN22_out_gagag(T243, T249, T242, X381, T244)
U63_ggaag(T242, T243, X380, X381, T244, pN22_out_gagag(T243, X380, T242, X381, T244)) → pZ_out_ggaag(T242, T243, X380, X381, T244)
U19_gg(T242, T243, T244, pZ_out_ggaag(T242, T243, X380, X381, T244)) → noattackY_out_gg(T242, .(T243, T244))
U61_gggg(T210, T224, T209, T211, noattackY_out_gg(T209, T211)) → pN21_out_gggg(T210, T224, T209, T211)
U59_gagg(T209, T224, T210, T211, pN21_out_gggg(T210, T224, T209, T211)) → pN20_out_gagg(T209, T224, T210, T211)
U57_ggagg(T209, T216, X312, T210, T211, pN20_out_gagg(T209, X312, T210, T211)) → pN19_out_ggagg(T209, T216, X312, T210, T211)
U55_gagag(T210, T216, T209, X312, T211, pN19_out_ggagg(T209, T216, X312, T210, T211)) → pN18_out_gagag(T210, T216, T209, X312, T211)
U53_ggaag(T209, T210, X311, X312, T211, pN18_out_gagag(T210, X311, T209, X312, T211)) → pX_out_ggaag(T209, T210, X311, X312, T211)
U18_gg(T209, T210, T211, pX_out_ggaag(T209, T210, X311, X312, T211)) → noattackW_out_gg(T209, .(T210, T211))
U51_gggg(T177, T191, T176, T178, noattackW_out_gg(T176, T178)) → pN17_out_gggg(T177, T191, T176, T178)
U49_gagg(T176, T191, T177, T178, pN17_out_gggg(T177, T191, T176, T178)) → pN16_out_gagg(T176, T191, T177, T178)
U47_ggagg(T176, T183, X243, T177, T178, pN16_out_gagg(T176, X243, T177, T178)) → pN15_out_ggagg(T176, T183, X243, T177, T178)
U45_gagag(T177, T183, T176, X243, T178, pN15_out_ggagg(T176, T183, X243, T177, T178)) → pN14_out_gagag(T177, T183, T176, X243, T178)
U43_ggaag(T176, T177, X242, X243, T178, pN14_out_gagag(T177, X242, T176, X243, T178)) → pV_out_ggaag(T176, T177, X242, X243, T178)
U17_gg(T176, T177, T178, pV_out_ggaag(T176, T177, X242, X243, T178)) → noattackU_out_gg(T176, .(T177, T178))
U41_gggg(T126, T158, T125, T127, noattackU_out_gg(T125, T127)) → pN13_out_gggg(T126, T158, T125, T127)
U39_gagg(T125, T158, T126, T127, pN13_out_gggg(T126, T158, T125, T127)) → pN12_out_gagg(T125, T158, T126, T127)
U37_ggagg(T125, T150, X156, T126, T127, pN12_out_gagg(T125, X156, T126, T127)) → pN11_out_ggagg(T125, T150, X156, T126, T127)
U35_gagag(T126, T150, T125, X156, T127, pN11_out_ggagg(T125, T150, X156, T126, T127)) → pN10_out_gagag(T126, T150, T125, X156, T127)
U33_ggaag(T125, T126, X155, X156, T127, pN10_out_gagag(T126, X155, T125, X156, T127)) → pS_out_ggaag(T125, T126, X155, X156, T127)
U15_gg(T125, T126, T127, pS_out_ggaag(T125, T126, X155, X156, T127)) → noattackR_out_gg(T125, .(T126, T127))
U30_gg(T108, T109, noattackR_out_gg(T108, T109)) → U31_gg(T108, T109, safeT_in_g(T109))
safeT_in_g([]) → safeT_out_g([])
safeT_in_g(.(T427, T428)) → U16_g(T427, T428, pQ_in_gg(T427, T428))
U16_g(T427, T428, pQ_out_gg(T427, T428)) → safeT_out_g(.(T427, T428))
U31_gg(T108, T109, safeT_out_g(T109)) → pQ_out_gg(T108, T109)
U14_gg(T108, T109, pQ_out_gg(T108, T109)) → safeP_out_gg(T108, T109)
U27_gag(T20, T77, T22, safeP_out_gg(T22, T77)) → pN9_out_gag(T20, T77, T22)
U25_agaa(T22, T15, T20, T21, pN9_out_gag(T20, T21, T22)) → pB_out_agaa(T22, T15, T20, T21)
U1_a(T11, T12, pB_out_agaa(T11, .(s(s(0)), .(s(s(s(0))), .(s(s(s(s(0)))), .(s(s(s(s(s(0))))), .(s(s(s(s(s(s(0)))))), .(s(s(s(s(s(s(s(0))))))), .(s(s(s(s(s(s(s(s(0)))))))), []))))))), X16, T12)) → queensA_out_a(.(T11, T12))
ADDG_IN_GA(s(T153), s(X199)) → ADDG_IN_GA(T153, X199)
ADDG_IN_GA(s(T153)) → ADDG_IN_GA(T153)
From the DPs we obtained the following set of size-change graphs:
NOTEQF_IN_GG(s(T146), s(T147)) → NOTEQF_IN_GG(T146, T147)
queensA_in_a(.(T11, T12)) → U1_a(T11, T12, pB_in_agaa(T11, .(s(s(0)), .(s(s(s(0))), .(s(s(s(s(0)))), .(s(s(s(s(s(0))))), .(s(s(s(s(s(s(0)))))), .(s(s(s(s(s(s(s(0))))))), .(s(s(s(s(s(s(s(s(0)))))))), []))))))), X16, T12))
pB_in_agaa(T22, T15, T20, T21) → U24_agaa(T22, T15, T20, T21, deleteO_in_aga(T22, T15, T20))
deleteO_in_aga(s(0), T36, T36) → deleteO_out_aga(s(0), T36, T36)
deleteO_in_aga(T48, T47, .(s(0), X57)) → U13_aga(T48, T47, X57, deleteC_in_aga(T48, T47, X57))
deleteC_in_aga(T61, .(T61, T62), T62) → deleteC_out_aga(T61, .(T61, T62), T62)
deleteC_in_aga(T72, .(T70, T71), .(T70, X86)) → U2_aga(T72, T70, T71, X86, deleteC_in_aga(T72, T71, X86))
U2_aga(T72, T70, T71, X86, deleteC_out_aga(T72, T71, X86)) → deleteC_out_aga(T72, .(T70, T71), .(T70, X86))
U13_aga(T48, T47, X57, deleteC_out_aga(T48, T47, X57)) → deleteO_out_aga(T48, T47, .(s(0), X57))
U24_agaa(T22, T15, T20, T21, deleteO_out_aga(T22, T15, T20)) → U25_agaa(T22, T15, T20, T21, pN9_in_gag(T20, T21, T22))
pN9_in_gag(T20, T77, T22) → U26_gag(T20, T77, T22, permD_in_ga(T20, T77))
permD_in_ga([], []) → permD_out_ga([], [])
permD_in_ga(.(T86, T87), .(T90, T91)) → U3_ga(T86, T87, T90, T91, pE_in_aggaa(T90, T86, T87, X104, T91))
pE_in_aggaa(T90, T86, T87, T96, T97) → U28_aggaa(T90, T86, T87, T96, T97, deleteC_in_aga(T90, .(T86, T87), T96))
U28_aggaa(T90, T86, T87, T96, T97, deleteC_out_aga(T90, .(T86, T87), T96)) → U29_aggaa(T90, T86, T87, T96, T97, permD_in_ga(T96, T97))
U29_aggaa(T90, T86, T87, T96, T97, permD_out_ga(T96, T97)) → pE_out_aggaa(T90, T86, T87, T96, T97)
U3_ga(T86, T87, T90, T91, pE_out_aggaa(T90, T86, T87, X104, T91)) → permD_out_ga(.(T86, T87), .(T90, T91))
U26_gag(T20, T77, T22, permD_out_ga(T20, T77)) → U27_gag(T20, T77, T22, safeP_in_gg(T22, T77))
safeP_in_gg(T108, T109) → U14_gg(T108, T109, pQ_in_gg(T108, T109))
pQ_in_gg(T108, T109) → U30_gg(T108, T109, noattackR_in_gg(T108, T109))
noattackR_in_gg(T118, []) → noattackR_out_gg(T118, [])
noattackR_in_gg(T125, .(T126, T127)) → U15_gg(T125, T126, T127, pS_in_ggaag(T125, T126, X155, X156, T127))
pS_in_ggaag(T125, T126, X155, X156, T127) → U32_ggaag(T125, T126, X155, X156, T127, notEqF_in_gg(T125, T126))
notEqF_in_gg(0, s(T136)) → notEqF_out_gg(0, s(T136))
notEqF_in_gg(s(T141), 0) → notEqF_out_gg(s(T141), 0)
notEqF_in_gg(s(T146), s(T147)) → U4_gg(T146, T147, notEqF_in_gg(T146, T147))
U4_gg(T146, T147, notEqF_out_gg(T146, T147)) → notEqF_out_gg(s(T146), s(T147))
U32_ggaag(T125, T126, X155, X156, T127, notEqF_out_gg(T125, T126)) → U33_ggaag(T125, T126, X155, X156, T127, pN10_in_gagag(T126, X155, T125, X156, T127))
pN10_in_gagag(T126, T150, T125, X156, T127) → U34_gagag(T126, T150, T125, X156, T127, addG_in_ga(T126, T150))
addG_in_ga(0, s(0)) → addG_out_ga(0, s(0))
addG_in_ga(s(T153), s(X199)) → U5_ga(T153, X199, addG_in_ga(T153, X199))
U5_ga(T153, X199, addG_out_ga(T153, X199)) → addG_out_ga(s(T153), s(X199))
U34_gagag(T126, T150, T125, X156, T127, addG_out_ga(T126, T150)) → U35_gagag(T126, T150, T125, X156, T127, pN11_in_ggagg(T125, T150, X156, T126, T127))
pN11_in_ggagg(T125, T150, X156, T126, T127) → U36_ggagg(T125, T150, X156, T126, T127, notEqF_in_gg(T125, T150))
U36_ggagg(T125, T150, X156, T126, T127, notEqF_out_gg(T125, T150)) → U37_ggagg(T125, T150, X156, T126, T127, pN12_in_gagg(T125, X156, T126, T127))
pN12_in_gagg(T125, T158, T126, T127) → U38_gagg(T125, T158, T126, T127, addG_in_ga(T125, T158))
U38_gagg(T125, T158, T126, T127, addG_out_ga(T125, T158)) → U39_gagg(T125, T158, T126, T127, pN13_in_gggg(T126, T158, T125, T127))
pN13_in_gggg(T126, T158, T125, T127) → U40_gggg(T126, T158, T125, T127, notEqF_in_gg(T126, T158))
U40_gggg(T126, T158, T125, T127, notEqF_out_gg(T126, T158)) → U41_gggg(T126, T158, T125, T127, noattackU_in_gg(T125, T127))
noattackU_in_gg(T169, []) → noattackU_out_gg(T169, [])
noattackU_in_gg(T176, .(T177, T178)) → U17_gg(T176, T177, T178, pV_in_ggaag(T176, T177, X242, X243, T178))
pV_in_ggaag(T176, T177, X242, X243, T178) → U42_ggaag(T176, T177, X242, X243, T178, notEqF_in_gg(T176, T177))
U42_ggaag(T176, T177, X242, X243, T178, notEqF_out_gg(T176, T177)) → U43_ggaag(T176, T177, X242, X243, T178, pN14_in_gagag(T177, X242, T176, X243, T178))
pN14_in_gagag(T177, T183, T176, X243, T178) → U44_gagag(T177, T183, T176, X243, T178, addH_in_ga(T177, T183))
addH_in_ga(0, s(s(0))) → addH_out_ga(0, s(s(0)))
addH_in_ga(s(T186), s(X268)) → U6_ga(T186, X268, addH_in_ga(T186, X268))
U6_ga(T186, X268, addH_out_ga(T186, X268)) → addH_out_ga(s(T186), s(X268))
U44_gagag(T177, T183, T176, X243, T178, addH_out_ga(T177, T183)) → U45_gagag(T177, T183, T176, X243, T178, pN15_in_ggagg(T176, T183, X243, T177, T178))
pN15_in_ggagg(T176, T183, X243, T177, T178) → U46_ggagg(T176, T183, X243, T177, T178, notEqF_in_gg(T176, T183))
U46_ggagg(T176, T183, X243, T177, T178, notEqF_out_gg(T176, T183)) → U47_ggagg(T176, T183, X243, T177, T178, pN16_in_gagg(T176, X243, T177, T178))
pN16_in_gagg(T176, T191, T177, T178) → U48_gagg(T176, T191, T177, T178, addH_in_ga(T176, T191))
U48_gagg(T176, T191, T177, T178, addH_out_ga(T176, T191)) → U49_gagg(T176, T191, T177, T178, pN17_in_gggg(T177, T191, T176, T178))
pN17_in_gggg(T177, T191, T176, T178) → U50_gggg(T177, T191, T176, T178, notEqF_in_gg(T177, T191))
U50_gggg(T177, T191, T176, T178, notEqF_out_gg(T177, T191)) → U51_gggg(T177, T191, T176, T178, noattackW_in_gg(T176, T178))
noattackW_in_gg(T202, []) → noattackW_out_gg(T202, [])
noattackW_in_gg(T209, .(T210, T211)) → U18_gg(T209, T210, T211, pX_in_ggaag(T209, T210, X311, X312, T211))
pX_in_ggaag(T209, T210, X311, X312, T211) → U52_ggaag(T209, T210, X311, X312, T211, notEqF_in_gg(T209, T210))
U52_ggaag(T209, T210, X311, X312, T211, notEqF_out_gg(T209, T210)) → U53_ggaag(T209, T210, X311, X312, T211, pN18_in_gagag(T210, X311, T209, X312, T211))
pN18_in_gagag(T210, T216, T209, X312, T211) → U54_gagag(T210, T216, T209, X312, T211, addI_in_ga(T210, T216))
addI_in_ga(0, s(s(s(0)))) → addI_out_ga(0, s(s(s(0))))
addI_in_ga(s(T219), s(X337)) → U7_ga(T219, X337, addI_in_ga(T219, X337))
U7_ga(T219, X337, addI_out_ga(T219, X337)) → addI_out_ga(s(T219), s(X337))
U54_gagag(T210, T216, T209, X312, T211, addI_out_ga(T210, T216)) → U55_gagag(T210, T216, T209, X312, T211, pN19_in_ggagg(T209, T216, X312, T210, T211))
pN19_in_ggagg(T209, T216, X312, T210, T211) → U56_ggagg(T209, T216, X312, T210, T211, notEqF_in_gg(T209, T216))
U56_ggagg(T209, T216, X312, T210, T211, notEqF_out_gg(T209, T216)) → U57_ggagg(T209, T216, X312, T210, T211, pN20_in_gagg(T209, X312, T210, T211))
pN20_in_gagg(T209, T224, T210, T211) → U58_gagg(T209, T224, T210, T211, addI_in_ga(T209, T224))
U58_gagg(T209, T224, T210, T211, addI_out_ga(T209, T224)) → U59_gagg(T209, T224, T210, T211, pN21_in_gggg(T210, T224, T209, T211))
pN21_in_gggg(T210, T224, T209, T211) → U60_gggg(T210, T224, T209, T211, notEqF_in_gg(T210, T224))
U60_gggg(T210, T224, T209, T211, notEqF_out_gg(T210, T224)) → U61_gggg(T210, T224, T209, T211, noattackY_in_gg(T209, T211))
noattackY_in_gg(T235, []) → noattackY_out_gg(T235, [])
noattackY_in_gg(T242, .(T243, T244)) → U19_gg(T242, T243, T244, pZ_in_ggaag(T242, T243, X380, X381, T244))
pZ_in_ggaag(T242, T243, X380, X381, T244) → U62_ggaag(T242, T243, X380, X381, T244, notEqF_in_gg(T242, T243))
U62_ggaag(T242, T243, X380, X381, T244, notEqF_out_gg(T242, T243)) → U63_ggaag(T242, T243, X380, X381, T244, pN22_in_gagag(T243, X380, T242, X381, T244))
pN22_in_gagag(T243, T249, T242, X381, T244) → U64_gagag(T243, T249, T242, X381, T244, addJ_in_ga(T243, T249))
addJ_in_ga(0, s(s(s(s(0))))) → addJ_out_ga(0, s(s(s(s(0)))))
addJ_in_ga(s(T252), s(X406)) → U8_ga(T252, X406, addJ_in_ga(T252, X406))
U8_ga(T252, X406, addJ_out_ga(T252, X406)) → addJ_out_ga(s(T252), s(X406))
U64_gagag(T243, T249, T242, X381, T244, addJ_out_ga(T243, T249)) → U65_gagag(T243, T249, T242, X381, T244, pN23_in_ggagg(T242, T249, X381, T243, T244))
pN23_in_ggagg(T242, T249, X381, T243, T244) → U66_ggagg(T242, T249, X381, T243, T244, notEqF_in_gg(T242, T249))
U66_ggagg(T242, T249, X381, T243, T244, notEqF_out_gg(T242, T249)) → U67_ggagg(T242, T249, X381, T243, T244, pN24_in_gagg(T242, X381, T243, T244))
pN24_in_gagg(T242, T257, T243, T244) → U68_gagg(T242, T257, T243, T244, addJ_in_ga(T242, T257))
U68_gagg(T242, T257, T243, T244, addJ_out_ga(T242, T257)) → U69_gagg(T242, T257, T243, T244, pN25_in_gggg(T243, T257, T242, T244))
pN25_in_gggg(T243, T257, T242, T244) → U70_gggg(T243, T257, T242, T244, notEqF_in_gg(T243, T257))
U70_gggg(T243, T257, T242, T244, notEqF_out_gg(T243, T257)) → U71_gggg(T243, T257, T242, T244, noattackN1_in_gg(T242, T244))
noattackN1_in_gg(T268, []) → noattackN1_out_gg(T268, [])
noattackN1_in_gg(T275, .(T276, T277)) → U20_gg(T275, T276, T277, pN2_in_ggaag(T275, T276, X449, X450, T277))
pN2_in_ggaag(T275, T276, X449, X450, T277) → U72_ggaag(T275, T276, X449, X450, T277, notEqF_in_gg(T275, T276))
U72_ggaag(T275, T276, X449, X450, T277, notEqF_out_gg(T275, T276)) → U73_ggaag(T275, T276, X449, X450, T277, pN26_in_gagag(T276, X449, T275, X450, T277))
pN26_in_gagag(T276, T282, T275, X450, T277) → U74_gagag(T276, T282, T275, X450, T277, addK_in_ga(T276, T282))
addK_in_ga(0, s(s(s(s(s(0)))))) → addK_out_ga(0, s(s(s(s(s(0))))))
addK_in_ga(s(T285), s(X475)) → U9_ga(T285, X475, addK_in_ga(T285, X475))
U9_ga(T285, X475, addK_out_ga(T285, X475)) → addK_out_ga(s(T285), s(X475))
U74_gagag(T276, T282, T275, X450, T277, addK_out_ga(T276, T282)) → U75_gagag(T276, T282, T275, X450, T277, pN27_in_ggagg(T275, T282, X450, T276, T277))
pN27_in_ggagg(T275, T282, X450, T276, T277) → U76_ggagg(T275, T282, X450, T276, T277, notEqF_in_gg(T275, T282))
U76_ggagg(T275, T282, X450, T276, T277, notEqF_out_gg(T275, T282)) → U77_ggagg(T275, T282, X450, T276, T277, pN28_in_gagg(T275, X450, T276, T277))
pN28_in_gagg(T275, T290, T276, T277) → U78_gagg(T275, T290, T276, T277, addK_in_ga(T275, T290))
U78_gagg(T275, T290, T276, T277, addK_out_ga(T275, T290)) → U79_gagg(T275, T290, T276, T277, pN29_in_gggg(T276, T290, T275, T277))
pN29_in_gggg(T276, T290, T275, T277) → U80_gggg(T276, T290, T275, T277, notEqF_in_gg(T276, T290))
U80_gggg(T276, T290, T275, T277, notEqF_out_gg(T276, T290)) → U81_gggg(T276, T290, T275, T277, noattackN3_in_gg(T275, T277))
noattackN3_in_gg(T301, []) → noattackN3_out_gg(T301, [])
noattackN3_in_gg(T308, .(T309, T310)) → U21_gg(T308, T309, T310, pN4_in_ggaag(T308, T309, X518, X519, T310))
pN4_in_ggaag(T308, T309, X518, X519, T310) → U82_ggaag(T308, T309, X518, X519, T310, notEqF_in_gg(T308, T309))
U82_ggaag(T308, T309, X518, X519, T310, notEqF_out_gg(T308, T309)) → U83_ggaag(T308, T309, X518, X519, T310, pN30_in_gagag(T309, X518, T308, X519, T310))
pN30_in_gagag(T309, T315, T308, X519, T310) → U84_gagag(T309, T315, T308, X519, T310, addL_in_ga(T309, T315))
addL_in_ga(0, s(s(s(s(s(s(0))))))) → addL_out_ga(0, s(s(s(s(s(s(0)))))))
addL_in_ga(s(T318), s(X544)) → U10_ga(T318, X544, addL_in_ga(T318, X544))
U10_ga(T318, X544, addL_out_ga(T318, X544)) → addL_out_ga(s(T318), s(X544))
U84_gagag(T309, T315, T308, X519, T310, addL_out_ga(T309, T315)) → U85_gagag(T309, T315, T308, X519, T310, pN31_in_ggagg(T308, T315, X519, T309, T310))
pN31_in_ggagg(T308, T315, X519, T309, T310) → U86_ggagg(T308, T315, X519, T309, T310, notEqF_in_gg(T308, T315))
U86_ggagg(T308, T315, X519, T309, T310, notEqF_out_gg(T308, T315)) → U87_ggagg(T308, T315, X519, T309, T310, pN32_in_gagg(T308, X519, T309, T310))
pN32_in_gagg(T308, T323, T309, T310) → U88_gagg(T308, T323, T309, T310, addL_in_ga(T308, T323))
U88_gagg(T308, T323, T309, T310, addL_out_ga(T308, T323)) → U89_gagg(T308, T323, T309, T310, pN33_in_gggg(T309, T323, T308, T310))
pN33_in_gggg(T309, T323, T308, T310) → U90_gggg(T309, T323, T308, T310, notEqF_in_gg(T309, T323))
U90_gggg(T309, T323, T308, T310, notEqF_out_gg(T309, T323)) → U91_gggg(T309, T323, T308, T310, noattackN5_in_gg(T308, T310))
noattackN5_in_gg(T334, []) → noattackN5_out_gg(T334, [])
noattackN5_in_gg(T341, .(T342, T343)) → U22_gg(T341, T342, T343, pN6_in_ggaagg(T341, T342, X587, X588, T343, s(s(s(s(s(s(s(0)))))))))
pN6_in_ggaagg(T341, T342, X587, X588, T343, T346) → U92_ggaagg(T341, T342, X587, X588, T343, T346, notEqF_in_gg(T341, T342))
U92_ggaagg(T341, T342, X587, X588, T343, T346, notEqF_out_gg(T341, T342)) → U93_ggaagg(T341, T342, X587, X588, T343, T346, pN34_in_gagagg(T342, X587, T341, X588, T343, T346))
pN34_in_gagagg(T342, T351, T341, X588, T343, T346) → U94_gagagg(T342, T351, T341, X588, T343, T346, addM_in_ga(T342, T351))
addM_in_ga(0, s(s(s(s(s(s(s(0)))))))) → addM_out_ga(0, s(s(s(s(s(s(s(0))))))))
addM_in_ga(s(T354), s(X615)) → U11_ga(T354, X615, addM_in_ga(T354, X615))
U11_ga(T354, X615, addM_out_ga(T354, X615)) → addM_out_ga(s(T354), s(X615))
U94_gagagg(T342, T351, T341, X588, T343, T346, addM_out_ga(T342, T351)) → U95_gagagg(T342, T351, T341, X588, T343, T346, pN35_in_ggaggg(T341, T351, X588, T342, T343, T346))
pN35_in_ggaggg(T341, T351, X588, T342, T343, T346) → U96_ggaggg(T341, T351, X588, T342, T343, T346, notEqF_in_gg(T341, T351))
U96_ggaggg(T341, T351, X588, T342, T343, T346, notEqF_out_gg(T341, T351)) → U97_ggaggg(T341, T351, X588, T342, T343, T346, pN36_in_gaggg(T341, X588, T342, T343, T346))
pN36_in_gaggg(T341, T359, T342, T343, T346) → U98_gaggg(T341, T359, T342, T343, T346, addM_in_ga(T341, T359))
U98_gaggg(T341, T359, T342, T343, T346, addM_out_ga(T341, T359)) → U99_gaggg(T341, T359, T342, T343, T346, pN37_in_ggggg(T342, T359, T341, T343, T346))
pN37_in_ggggg(T342, T359, T341, T343, T346) → U100_ggggg(T342, T359, T341, T343, T346, notEqF_in_gg(T342, T359))
U100_ggggg(T342, T359, T341, T343, T346, notEqF_out_gg(T342, T359)) → U101_ggggg(T342, T359, T341, T343, T346, noattackN7_in_ggg(T341, T343, T346))
noattackN7_in_ggg(T376, [], T377) → noattackN7_out_ggg(T376, [], T377)
noattackN7_in_ggg(T386, .(T387, T388), T389) → U23_ggg(T386, T387, T388, T389, pN8_in_gggaag(T386, T387, T389, X658, X659, T388))
pN8_in_gggaag(T386, T387, T389, X658, X659, T388) → U102_gggaag(T386, T387, T389, X658, X659, T388, notEqF_in_gg(T386, T387))
U102_gggaag(T386, T387, T389, X658, X659, T388, notEqF_out_gg(T386, T387)) → U103_gggaag(T386, T387, T389, X658, X659, T388, pN38_in_ggagag(T387, T389, X658, T386, X659, T388))
pN38_in_ggagag(T387, T389, T396, T386, X659, T388) → U104_ggagag(T387, T389, T396, T386, X659, T388, addN_in_gga(T387, T389, T396))
addN_in_gga(0, T403, s(T403)) → addN_out_gga(0, T403, s(T403))
addN_in_gga(s(T408), T409, s(X684)) → U12_gga(T408, T409, X684, addN_in_gga(T408, T409, X684))
U12_gga(T408, T409, X684, addN_out_gga(T408, T409, X684)) → addN_out_gga(s(T408), T409, s(X684))
U104_ggagag(T387, T389, T396, T386, X659, T388, addN_out_gga(T387, T389, T396)) → U105_ggagag(T387, T389, T396, T386, X659, T388, pN39_in_gggagg(T386, T396, T389, X659, T387, T388))
pN39_in_gggagg(T386, T396, T389, X659, T387, T388) → U106_gggagg(T386, T396, T389, X659, T387, T388, notEqF_in_gg(T386, T396))
U106_gggagg(T386, T396, T389, X659, T387, T388, notEqF_out_gg(T386, T396)) → U107_gggagg(T386, T396, T389, X659, T387, T388, pN40_in_ggagg(T386, T389, X659, T387, T388))
pN40_in_ggagg(T386, T389, T418, T387, T388) → U108_ggagg(T386, T389, T418, T387, T388, addN_in_gga(T386, T389, T418))
U108_ggagg(T386, T389, T418, T387, T388, addN_out_gga(T386, T389, T418)) → U109_ggagg(T386, T389, T418, T387, T388, pN37_in_ggggg(T387, T418, T386, T388, s(T389)))
U109_ggagg(T386, T389, T418, T387, T388, pN37_out_ggggg(T387, T418, T386, T388, s(T389))) → pN40_out_ggagg(T386, T389, T418, T387, T388)
U107_gggagg(T386, T396, T389, X659, T387, T388, pN40_out_ggagg(T386, T389, X659, T387, T388)) → pN39_out_gggagg(T386, T396, T389, X659, T387, T388)
U105_ggagag(T387, T389, T396, T386, X659, T388, pN39_out_gggagg(T386, T396, T389, X659, T387, T388)) → pN38_out_ggagag(T387, T389, T396, T386, X659, T388)
U103_gggaag(T386, T387, T389, X658, X659, T388, pN38_out_ggagag(T387, T389, X658, T386, X659, T388)) → pN8_out_gggaag(T386, T387, T389, X658, X659, T388)
U23_ggg(T386, T387, T388, T389, pN8_out_gggaag(T386, T387, T389, X658, X659, T388)) → noattackN7_out_ggg(T386, .(T387, T388), T389)
U101_ggggg(T342, T359, T341, T343, T346, noattackN7_out_ggg(T341, T343, T346)) → pN37_out_ggggg(T342, T359, T341, T343, T346)
U99_gaggg(T341, T359, T342, T343, T346, pN37_out_ggggg(T342, T359, T341, T343, T346)) → pN36_out_gaggg(T341, T359, T342, T343, T346)
U97_ggaggg(T341, T351, X588, T342, T343, T346, pN36_out_gaggg(T341, X588, T342, T343, T346)) → pN35_out_ggaggg(T341, T351, X588, T342, T343, T346)
U95_gagagg(T342, T351, T341, X588, T343, T346, pN35_out_ggaggg(T341, T351, X588, T342, T343, T346)) → pN34_out_gagagg(T342, T351, T341, X588, T343, T346)
U93_ggaagg(T341, T342, X587, X588, T343, T346, pN34_out_gagagg(T342, X587, T341, X588, T343, T346)) → pN6_out_ggaagg(T341, T342, X587, X588, T343, T346)
U22_gg(T341, T342, T343, pN6_out_ggaagg(T341, T342, X587, X588, T343, s(s(s(s(s(s(s(0))))))))) → noattackN5_out_gg(T341, .(T342, T343))
U91_gggg(T309, T323, T308, T310, noattackN5_out_gg(T308, T310)) → pN33_out_gggg(T309, T323, T308, T310)
U89_gagg(T308, T323, T309, T310, pN33_out_gggg(T309, T323, T308, T310)) → pN32_out_gagg(T308, T323, T309, T310)
U87_ggagg(T308, T315, X519, T309, T310, pN32_out_gagg(T308, X519, T309, T310)) → pN31_out_ggagg(T308, T315, X519, T309, T310)
U85_gagag(T309, T315, T308, X519, T310, pN31_out_ggagg(T308, T315, X519, T309, T310)) → pN30_out_gagag(T309, T315, T308, X519, T310)
U83_ggaag(T308, T309, X518, X519, T310, pN30_out_gagag(T309, X518, T308, X519, T310)) → pN4_out_ggaag(T308, T309, X518, X519, T310)
U21_gg(T308, T309, T310, pN4_out_ggaag(T308, T309, X518, X519, T310)) → noattackN3_out_gg(T308, .(T309, T310))
U81_gggg(T276, T290, T275, T277, noattackN3_out_gg(T275, T277)) → pN29_out_gggg(T276, T290, T275, T277)
U79_gagg(T275, T290, T276, T277, pN29_out_gggg(T276, T290, T275, T277)) → pN28_out_gagg(T275, T290, T276, T277)
U77_ggagg(T275, T282, X450, T276, T277, pN28_out_gagg(T275, X450, T276, T277)) → pN27_out_ggagg(T275, T282, X450, T276, T277)
U75_gagag(T276, T282, T275, X450, T277, pN27_out_ggagg(T275, T282, X450, T276, T277)) → pN26_out_gagag(T276, T282, T275, X450, T277)
U73_ggaag(T275, T276, X449, X450, T277, pN26_out_gagag(T276, X449, T275, X450, T277)) → pN2_out_ggaag(T275, T276, X449, X450, T277)
U20_gg(T275, T276, T277, pN2_out_ggaag(T275, T276, X449, X450, T277)) → noattackN1_out_gg(T275, .(T276, T277))
U71_gggg(T243, T257, T242, T244, noattackN1_out_gg(T242, T244)) → pN25_out_gggg(T243, T257, T242, T244)
U69_gagg(T242, T257, T243, T244, pN25_out_gggg(T243, T257, T242, T244)) → pN24_out_gagg(T242, T257, T243, T244)
U67_ggagg(T242, T249, X381, T243, T244, pN24_out_gagg(T242, X381, T243, T244)) → pN23_out_ggagg(T242, T249, X381, T243, T244)
U65_gagag(T243, T249, T242, X381, T244, pN23_out_ggagg(T242, T249, X381, T243, T244)) → pN22_out_gagag(T243, T249, T242, X381, T244)
U63_ggaag(T242, T243, X380, X381, T244, pN22_out_gagag(T243, X380, T242, X381, T244)) → pZ_out_ggaag(T242, T243, X380, X381, T244)
U19_gg(T242, T243, T244, pZ_out_ggaag(T242, T243, X380, X381, T244)) → noattackY_out_gg(T242, .(T243, T244))
U61_gggg(T210, T224, T209, T211, noattackY_out_gg(T209, T211)) → pN21_out_gggg(T210, T224, T209, T211)
U59_gagg(T209, T224, T210, T211, pN21_out_gggg(T210, T224, T209, T211)) → pN20_out_gagg(T209, T224, T210, T211)
U57_ggagg(T209, T216, X312, T210, T211, pN20_out_gagg(T209, X312, T210, T211)) → pN19_out_ggagg(T209, T216, X312, T210, T211)
U55_gagag(T210, T216, T209, X312, T211, pN19_out_ggagg(T209, T216, X312, T210, T211)) → pN18_out_gagag(T210, T216, T209, X312, T211)
U53_ggaag(T209, T210, X311, X312, T211, pN18_out_gagag(T210, X311, T209, X312, T211)) → pX_out_ggaag(T209, T210, X311, X312, T211)
U18_gg(T209, T210, T211, pX_out_ggaag(T209, T210, X311, X312, T211)) → noattackW_out_gg(T209, .(T210, T211))
U51_gggg(T177, T191, T176, T178, noattackW_out_gg(T176, T178)) → pN17_out_gggg(T177, T191, T176, T178)
U49_gagg(T176, T191, T177, T178, pN17_out_gggg(T177, T191, T176, T178)) → pN16_out_gagg(T176, T191, T177, T178)
U47_ggagg(T176, T183, X243, T177, T178, pN16_out_gagg(T176, X243, T177, T178)) → pN15_out_ggagg(T176, T183, X243, T177, T178)
U45_gagag(T177, T183, T176, X243, T178, pN15_out_ggagg(T176, T183, X243, T177, T178)) → pN14_out_gagag(T177, T183, T176, X243, T178)
U43_ggaag(T176, T177, X242, X243, T178, pN14_out_gagag(T177, X242, T176, X243, T178)) → pV_out_ggaag(T176, T177, X242, X243, T178)
U17_gg(T176, T177, T178, pV_out_ggaag(T176, T177, X242, X243, T178)) → noattackU_out_gg(T176, .(T177, T178))
U41_gggg(T126, T158, T125, T127, noattackU_out_gg(T125, T127)) → pN13_out_gggg(T126, T158, T125, T127)
U39_gagg(T125, T158, T126, T127, pN13_out_gggg(T126, T158, T125, T127)) → pN12_out_gagg(T125, T158, T126, T127)
U37_ggagg(T125, T150, X156, T126, T127, pN12_out_gagg(T125, X156, T126, T127)) → pN11_out_ggagg(T125, T150, X156, T126, T127)
U35_gagag(T126, T150, T125, X156, T127, pN11_out_ggagg(T125, T150, X156, T126, T127)) → pN10_out_gagag(T126, T150, T125, X156, T127)
U33_ggaag(T125, T126, X155, X156, T127, pN10_out_gagag(T126, X155, T125, X156, T127)) → pS_out_ggaag(T125, T126, X155, X156, T127)
U15_gg(T125, T126, T127, pS_out_ggaag(T125, T126, X155, X156, T127)) → noattackR_out_gg(T125, .(T126, T127))
U30_gg(T108, T109, noattackR_out_gg(T108, T109)) → U31_gg(T108, T109, safeT_in_g(T109))
safeT_in_g([]) → safeT_out_g([])
safeT_in_g(.(T427, T428)) → U16_g(T427, T428, pQ_in_gg(T427, T428))
U16_g(T427, T428, pQ_out_gg(T427, T428)) → safeT_out_g(.(T427, T428))
U31_gg(T108, T109, safeT_out_g(T109)) → pQ_out_gg(T108, T109)
U14_gg(T108, T109, pQ_out_gg(T108, T109)) → safeP_out_gg(T108, T109)
U27_gag(T20, T77, T22, safeP_out_gg(T22, T77)) → pN9_out_gag(T20, T77, T22)
U25_agaa(T22, T15, T20, T21, pN9_out_gag(T20, T21, T22)) → pB_out_agaa(T22, T15, T20, T21)
U1_a(T11, T12, pB_out_agaa(T11, .(s(s(0)), .(s(s(s(0))), .(s(s(s(s(0)))), .(s(s(s(s(s(0))))), .(s(s(s(s(s(s(0)))))), .(s(s(s(s(s(s(s(0))))))), .(s(s(s(s(s(s(s(s(0)))))))), []))))))), X16, T12)) → queensA_out_a(.(T11, T12))
NOTEQF_IN_GG(s(T146), s(T147)) → NOTEQF_IN_GG(T146, T147)
NOTEQF_IN_GG(s(T146), s(T147)) → NOTEQF_IN_GG(T146, T147)
From the DPs we obtained the following set of size-change graphs:
PN37_IN_GGGGG(T342, T359, T341, T343, T346) → U100_GGGGG(T342, T359, T341, T343, T346, notEqF_in_gg(T342, T359))
U100_GGGGG(T342, T359, T341, T343, T346, notEqF_out_gg(T342, T359)) → NOATTACKN7_IN_GGG(T341, T343, T346)
NOATTACKN7_IN_GGG(T386, .(T387, T388), T389) → PN8_IN_GGGAAG(T386, T387, T389, X658, X659, T388)
PN8_IN_GGGAAG(T386, T387, T389, X658, X659, T388) → U102_GGGAAG(T386, T387, T389, X658, X659, T388, notEqF_in_gg(T386, T387))
U102_GGGAAG(T386, T387, T389, X658, X659, T388, notEqF_out_gg(T386, T387)) → PN38_IN_GGAGAG(T387, T389, X658, T386, X659, T388)
PN38_IN_GGAGAG(T387, T389, T396, T386, X659, T388) → U104_GGAGAG(T387, T389, T396, T386, X659, T388, addN_in_gga(T387, T389, T396))
U104_GGAGAG(T387, T389, T396, T386, X659, T388, addN_out_gga(T387, T389, T396)) → PN39_IN_GGGAGG(T386, T396, T389, X659, T387, T388)
PN39_IN_GGGAGG(T386, T396, T389, X659, T387, T388) → U106_GGGAGG(T386, T396, T389, X659, T387, T388, notEqF_in_gg(T386, T396))
U106_GGGAGG(T386, T396, T389, X659, T387, T388, notEqF_out_gg(T386, T396)) → PN40_IN_GGAGG(T386, T389, X659, T387, T388)
PN40_IN_GGAGG(T386, T389, T418, T387, T388) → U108_GGAGG(T386, T389, T418, T387, T388, addN_in_gga(T386, T389, T418))
U108_GGAGG(T386, T389, T418, T387, T388, addN_out_gga(T386, T389, T418)) → PN37_IN_GGGGG(T387, T418, T386, T388, s(T389))
queensA_in_a(.(T11, T12)) → U1_a(T11, T12, pB_in_agaa(T11, .(s(s(0)), .(s(s(s(0))), .(s(s(s(s(0)))), .(s(s(s(s(s(0))))), .(s(s(s(s(s(s(0)))))), .(s(s(s(s(s(s(s(0))))))), .(s(s(s(s(s(s(s(s(0)))))))), []))))))), X16, T12))
pB_in_agaa(T22, T15, T20, T21) → U24_agaa(T22, T15, T20, T21, deleteO_in_aga(T22, T15, T20))
deleteO_in_aga(s(0), T36, T36) → deleteO_out_aga(s(0), T36, T36)
deleteO_in_aga(T48, T47, .(s(0), X57)) → U13_aga(T48, T47, X57, deleteC_in_aga(T48, T47, X57))
deleteC_in_aga(T61, .(T61, T62), T62) → deleteC_out_aga(T61, .(T61, T62), T62)
deleteC_in_aga(T72, .(T70, T71), .(T70, X86)) → U2_aga(T72, T70, T71, X86, deleteC_in_aga(T72, T71, X86))
U2_aga(T72, T70, T71, X86, deleteC_out_aga(T72, T71, X86)) → deleteC_out_aga(T72, .(T70, T71), .(T70, X86))
U13_aga(T48, T47, X57, deleteC_out_aga(T48, T47, X57)) → deleteO_out_aga(T48, T47, .(s(0), X57))
U24_agaa(T22, T15, T20, T21, deleteO_out_aga(T22, T15, T20)) → U25_agaa(T22, T15, T20, T21, pN9_in_gag(T20, T21, T22))
pN9_in_gag(T20, T77, T22) → U26_gag(T20, T77, T22, permD_in_ga(T20, T77))
permD_in_ga([], []) → permD_out_ga([], [])
permD_in_ga(.(T86, T87), .(T90, T91)) → U3_ga(T86, T87, T90, T91, pE_in_aggaa(T90, T86, T87, X104, T91))
pE_in_aggaa(T90, T86, T87, T96, T97) → U28_aggaa(T90, T86, T87, T96, T97, deleteC_in_aga(T90, .(T86, T87), T96))
U28_aggaa(T90, T86, T87, T96, T97, deleteC_out_aga(T90, .(T86, T87), T96)) → U29_aggaa(T90, T86, T87, T96, T97, permD_in_ga(T96, T97))
U29_aggaa(T90, T86, T87, T96, T97, permD_out_ga(T96, T97)) → pE_out_aggaa(T90, T86, T87, T96, T97)
U3_ga(T86, T87, T90, T91, pE_out_aggaa(T90, T86, T87, X104, T91)) → permD_out_ga(.(T86, T87), .(T90, T91))
U26_gag(T20, T77, T22, permD_out_ga(T20, T77)) → U27_gag(T20, T77, T22, safeP_in_gg(T22, T77))
safeP_in_gg(T108, T109) → U14_gg(T108, T109, pQ_in_gg(T108, T109))
pQ_in_gg(T108, T109) → U30_gg(T108, T109, noattackR_in_gg(T108, T109))
noattackR_in_gg(T118, []) → noattackR_out_gg(T118, [])
noattackR_in_gg(T125, .(T126, T127)) → U15_gg(T125, T126, T127, pS_in_ggaag(T125, T126, X155, X156, T127))
pS_in_ggaag(T125, T126, X155, X156, T127) → U32_ggaag(T125, T126, X155, X156, T127, notEqF_in_gg(T125, T126))
notEqF_in_gg(0, s(T136)) → notEqF_out_gg(0, s(T136))
notEqF_in_gg(s(T141), 0) → notEqF_out_gg(s(T141), 0)
notEqF_in_gg(s(T146), s(T147)) → U4_gg(T146, T147, notEqF_in_gg(T146, T147))
U4_gg(T146, T147, notEqF_out_gg(T146, T147)) → notEqF_out_gg(s(T146), s(T147))
U32_ggaag(T125, T126, X155, X156, T127, notEqF_out_gg(T125, T126)) → U33_ggaag(T125, T126, X155, X156, T127, pN10_in_gagag(T126, X155, T125, X156, T127))
pN10_in_gagag(T126, T150, T125, X156, T127) → U34_gagag(T126, T150, T125, X156, T127, addG_in_ga(T126, T150))
addG_in_ga(0, s(0)) → addG_out_ga(0, s(0))
addG_in_ga(s(T153), s(X199)) → U5_ga(T153, X199, addG_in_ga(T153, X199))
U5_ga(T153, X199, addG_out_ga(T153, X199)) → addG_out_ga(s(T153), s(X199))
U34_gagag(T126, T150, T125, X156, T127, addG_out_ga(T126, T150)) → U35_gagag(T126, T150, T125, X156, T127, pN11_in_ggagg(T125, T150, X156, T126, T127))
pN11_in_ggagg(T125, T150, X156, T126, T127) → U36_ggagg(T125, T150, X156, T126, T127, notEqF_in_gg(T125, T150))
U36_ggagg(T125, T150, X156, T126, T127, notEqF_out_gg(T125, T150)) → U37_ggagg(T125, T150, X156, T126, T127, pN12_in_gagg(T125, X156, T126, T127))
pN12_in_gagg(T125, T158, T126, T127) → U38_gagg(T125, T158, T126, T127, addG_in_ga(T125, T158))
U38_gagg(T125, T158, T126, T127, addG_out_ga(T125, T158)) → U39_gagg(T125, T158, T126, T127, pN13_in_gggg(T126, T158, T125, T127))
pN13_in_gggg(T126, T158, T125, T127) → U40_gggg(T126, T158, T125, T127, notEqF_in_gg(T126, T158))
U40_gggg(T126, T158, T125, T127, notEqF_out_gg(T126, T158)) → U41_gggg(T126, T158, T125, T127, noattackU_in_gg(T125, T127))
noattackU_in_gg(T169, []) → noattackU_out_gg(T169, [])
noattackU_in_gg(T176, .(T177, T178)) → U17_gg(T176, T177, T178, pV_in_ggaag(T176, T177, X242, X243, T178))
pV_in_ggaag(T176, T177, X242, X243, T178) → U42_ggaag(T176, T177, X242, X243, T178, notEqF_in_gg(T176, T177))
U42_ggaag(T176, T177, X242, X243, T178, notEqF_out_gg(T176, T177)) → U43_ggaag(T176, T177, X242, X243, T178, pN14_in_gagag(T177, X242, T176, X243, T178))
pN14_in_gagag(T177, T183, T176, X243, T178) → U44_gagag(T177, T183, T176, X243, T178, addH_in_ga(T177, T183))
addH_in_ga(0, s(s(0))) → addH_out_ga(0, s(s(0)))
addH_in_ga(s(T186), s(X268)) → U6_ga(T186, X268, addH_in_ga(T186, X268))
U6_ga(T186, X268, addH_out_ga(T186, X268)) → addH_out_ga(s(T186), s(X268))
U44_gagag(T177, T183, T176, X243, T178, addH_out_ga(T177, T183)) → U45_gagag(T177, T183, T176, X243, T178, pN15_in_ggagg(T176, T183, X243, T177, T178))
pN15_in_ggagg(T176, T183, X243, T177, T178) → U46_ggagg(T176, T183, X243, T177, T178, notEqF_in_gg(T176, T183))
U46_ggagg(T176, T183, X243, T177, T178, notEqF_out_gg(T176, T183)) → U47_ggagg(T176, T183, X243, T177, T178, pN16_in_gagg(T176, X243, T177, T178))
pN16_in_gagg(T176, T191, T177, T178) → U48_gagg(T176, T191, T177, T178, addH_in_ga(T176, T191))
U48_gagg(T176, T191, T177, T178, addH_out_ga(T176, T191)) → U49_gagg(T176, T191, T177, T178, pN17_in_gggg(T177, T191, T176, T178))
pN17_in_gggg(T177, T191, T176, T178) → U50_gggg(T177, T191, T176, T178, notEqF_in_gg(T177, T191))
U50_gggg(T177, T191, T176, T178, notEqF_out_gg(T177, T191)) → U51_gggg(T177, T191, T176, T178, noattackW_in_gg(T176, T178))
noattackW_in_gg(T202, []) → noattackW_out_gg(T202, [])
noattackW_in_gg(T209, .(T210, T211)) → U18_gg(T209, T210, T211, pX_in_ggaag(T209, T210, X311, X312, T211))
pX_in_ggaag(T209, T210, X311, X312, T211) → U52_ggaag(T209, T210, X311, X312, T211, notEqF_in_gg(T209, T210))
U52_ggaag(T209, T210, X311, X312, T211, notEqF_out_gg(T209, T210)) → U53_ggaag(T209, T210, X311, X312, T211, pN18_in_gagag(T210, X311, T209, X312, T211))
pN18_in_gagag(T210, T216, T209, X312, T211) → U54_gagag(T210, T216, T209, X312, T211, addI_in_ga(T210, T216))
addI_in_ga(0, s(s(s(0)))) → addI_out_ga(0, s(s(s(0))))
addI_in_ga(s(T219), s(X337)) → U7_ga(T219, X337, addI_in_ga(T219, X337))
U7_ga(T219, X337, addI_out_ga(T219, X337)) → addI_out_ga(s(T219), s(X337))
U54_gagag(T210, T216, T209, X312, T211, addI_out_ga(T210, T216)) → U55_gagag(T210, T216, T209, X312, T211, pN19_in_ggagg(T209, T216, X312, T210, T211))
pN19_in_ggagg(T209, T216, X312, T210, T211) → U56_ggagg(T209, T216, X312, T210, T211, notEqF_in_gg(T209, T216))
U56_ggagg(T209, T216, X312, T210, T211, notEqF_out_gg(T209, T216)) → U57_ggagg(T209, T216, X312, T210, T211, pN20_in_gagg(T209, X312, T210, T211))
pN20_in_gagg(T209, T224, T210, T211) → U58_gagg(T209, T224, T210, T211, addI_in_ga(T209, T224))
U58_gagg(T209, T224, T210, T211, addI_out_ga(T209, T224)) → U59_gagg(T209, T224, T210, T211, pN21_in_gggg(T210, T224, T209, T211))
pN21_in_gggg(T210, T224, T209, T211) → U60_gggg(T210, T224, T209, T211, notEqF_in_gg(T210, T224))
U60_gggg(T210, T224, T209, T211, notEqF_out_gg(T210, T224)) → U61_gggg(T210, T224, T209, T211, noattackY_in_gg(T209, T211))
noattackY_in_gg(T235, []) → noattackY_out_gg(T235, [])
noattackY_in_gg(T242, .(T243, T244)) → U19_gg(T242, T243, T244, pZ_in_ggaag(T242, T243, X380, X381, T244))
pZ_in_ggaag(T242, T243, X380, X381, T244) → U62_ggaag(T242, T243, X380, X381, T244, notEqF_in_gg(T242, T243))
U62_ggaag(T242, T243, X380, X381, T244, notEqF_out_gg(T242, T243)) → U63_ggaag(T242, T243, X380, X381, T244, pN22_in_gagag(T243, X380, T242, X381, T244))
pN22_in_gagag(T243, T249, T242, X381, T244) → U64_gagag(T243, T249, T242, X381, T244, addJ_in_ga(T243, T249))
addJ_in_ga(0, s(s(s(s(0))))) → addJ_out_ga(0, s(s(s(s(0)))))
addJ_in_ga(s(T252), s(X406)) → U8_ga(T252, X406, addJ_in_ga(T252, X406))
U8_ga(T252, X406, addJ_out_ga(T252, X406)) → addJ_out_ga(s(T252), s(X406))
U64_gagag(T243, T249, T242, X381, T244, addJ_out_ga(T243, T249)) → U65_gagag(T243, T249, T242, X381, T244, pN23_in_ggagg(T242, T249, X381, T243, T244))
pN23_in_ggagg(T242, T249, X381, T243, T244) → U66_ggagg(T242, T249, X381, T243, T244, notEqF_in_gg(T242, T249))
U66_ggagg(T242, T249, X381, T243, T244, notEqF_out_gg(T242, T249)) → U67_ggagg(T242, T249, X381, T243, T244, pN24_in_gagg(T242, X381, T243, T244))
pN24_in_gagg(T242, T257, T243, T244) → U68_gagg(T242, T257, T243, T244, addJ_in_ga(T242, T257))
U68_gagg(T242, T257, T243, T244, addJ_out_ga(T242, T257)) → U69_gagg(T242, T257, T243, T244, pN25_in_gggg(T243, T257, T242, T244))
pN25_in_gggg(T243, T257, T242, T244) → U70_gggg(T243, T257, T242, T244, notEqF_in_gg(T243, T257))
U70_gggg(T243, T257, T242, T244, notEqF_out_gg(T243, T257)) → U71_gggg(T243, T257, T242, T244, noattackN1_in_gg(T242, T244))
noattackN1_in_gg(T268, []) → noattackN1_out_gg(T268, [])
noattackN1_in_gg(T275, .(T276, T277)) → U20_gg(T275, T276, T277, pN2_in_ggaag(T275, T276, X449, X450, T277))
pN2_in_ggaag(T275, T276, X449, X450, T277) → U72_ggaag(T275, T276, X449, X450, T277, notEqF_in_gg(T275, T276))
U72_ggaag(T275, T276, X449, X450, T277, notEqF_out_gg(T275, T276)) → U73_ggaag(T275, T276, X449, X450, T277, pN26_in_gagag(T276, X449, T275, X450, T277))
pN26_in_gagag(T276, T282, T275, X450, T277) → U74_gagag(T276, T282, T275, X450, T277, addK_in_ga(T276, T282))
addK_in_ga(0, s(s(s(s(s(0)))))) → addK_out_ga(0, s(s(s(s(s(0))))))
addK_in_ga(s(T285), s(X475)) → U9_ga(T285, X475, addK_in_ga(T285, X475))
U9_ga(T285, X475, addK_out_ga(T285, X475)) → addK_out_ga(s(T285), s(X475))
U74_gagag(T276, T282, T275, X450, T277, addK_out_ga(T276, T282)) → U75_gagag(T276, T282, T275, X450, T277, pN27_in_ggagg(T275, T282, X450, T276, T277))
pN27_in_ggagg(T275, T282, X450, T276, T277) → U76_ggagg(T275, T282, X450, T276, T277, notEqF_in_gg(T275, T282))
U76_ggagg(T275, T282, X450, T276, T277, notEqF_out_gg(T275, T282)) → U77_ggagg(T275, T282, X450, T276, T277, pN28_in_gagg(T275, X450, T276, T277))
pN28_in_gagg(T275, T290, T276, T277) → U78_gagg(T275, T290, T276, T277, addK_in_ga(T275, T290))
U78_gagg(T275, T290, T276, T277, addK_out_ga(T275, T290)) → U79_gagg(T275, T290, T276, T277, pN29_in_gggg(T276, T290, T275, T277))
pN29_in_gggg(T276, T290, T275, T277) → U80_gggg(T276, T290, T275, T277, notEqF_in_gg(T276, T290))
U80_gggg(T276, T290, T275, T277, notEqF_out_gg(T276, T290)) → U81_gggg(T276, T290, T275, T277, noattackN3_in_gg(T275, T277))
noattackN3_in_gg(T301, []) → noattackN3_out_gg(T301, [])
noattackN3_in_gg(T308, .(T309, T310)) → U21_gg(T308, T309, T310, pN4_in_ggaag(T308, T309, X518, X519, T310))
pN4_in_ggaag(T308, T309, X518, X519, T310) → U82_ggaag(T308, T309, X518, X519, T310, notEqF_in_gg(T308, T309))
U82_ggaag(T308, T309, X518, X519, T310, notEqF_out_gg(T308, T309)) → U83_ggaag(T308, T309, X518, X519, T310, pN30_in_gagag(T309, X518, T308, X519, T310))
pN30_in_gagag(T309, T315, T308, X519, T310) → U84_gagag(T309, T315, T308, X519, T310, addL_in_ga(T309, T315))
addL_in_ga(0, s(s(s(s(s(s(0))))))) → addL_out_ga(0, s(s(s(s(s(s(0)))))))
addL_in_ga(s(T318), s(X544)) → U10_ga(T318, X544, addL_in_ga(T318, X544))
U10_ga(T318, X544, addL_out_ga(T318, X544)) → addL_out_ga(s(T318), s(X544))
U84_gagag(T309, T315, T308, X519, T310, addL_out_ga(T309, T315)) → U85_gagag(T309, T315, T308, X519, T310, pN31_in_ggagg(T308, T315, X519, T309, T310))
pN31_in_ggagg(T308, T315, X519, T309, T310) → U86_ggagg(T308, T315, X519, T309, T310, notEqF_in_gg(T308, T315))
U86_ggagg(T308, T315, X519, T309, T310, notEqF_out_gg(T308, T315)) → U87_ggagg(T308, T315, X519, T309, T310, pN32_in_gagg(T308, X519, T309, T310))
pN32_in_gagg(T308, T323, T309, T310) → U88_gagg(T308, T323, T309, T310, addL_in_ga(T308, T323))
U88_gagg(T308, T323, T309, T310, addL_out_ga(T308, T323)) → U89_gagg(T308, T323, T309, T310, pN33_in_gggg(T309, T323, T308, T310))
pN33_in_gggg(T309, T323, T308, T310) → U90_gggg(T309, T323, T308, T310, notEqF_in_gg(T309, T323))
U90_gggg(T309, T323, T308, T310, notEqF_out_gg(T309, T323)) → U91_gggg(T309, T323, T308, T310, noattackN5_in_gg(T308, T310))
noattackN5_in_gg(T334, []) → noattackN5_out_gg(T334, [])
noattackN5_in_gg(T341, .(T342, T343)) → U22_gg(T341, T342, T343, pN6_in_ggaagg(T341, T342, X587, X588, T343, s(s(s(s(s(s(s(0)))))))))
pN6_in_ggaagg(T341, T342, X587, X588, T343, T346) → U92_ggaagg(T341, T342, X587, X588, T343, T346, notEqF_in_gg(T341, T342))
U92_ggaagg(T341, T342, X587, X588, T343, T346, notEqF_out_gg(T341, T342)) → U93_ggaagg(T341, T342, X587, X588, T343, T346, pN34_in_gagagg(T342, X587, T341, X588, T343, T346))
pN34_in_gagagg(T342, T351, T341, X588, T343, T346) → U94_gagagg(T342, T351, T341, X588, T343, T346, addM_in_ga(T342, T351))
addM_in_ga(0, s(s(s(s(s(s(s(0)))))))) → addM_out_ga(0, s(s(s(s(s(s(s(0))))))))
addM_in_ga(s(T354), s(X615)) → U11_ga(T354, X615, addM_in_ga(T354, X615))
U11_ga(T354, X615, addM_out_ga(T354, X615)) → addM_out_ga(s(T354), s(X615))
U94_gagagg(T342, T351, T341, X588, T343, T346, addM_out_ga(T342, T351)) → U95_gagagg(T342, T351, T341, X588, T343, T346, pN35_in_ggaggg(T341, T351, X588, T342, T343, T346))
pN35_in_ggaggg(T341, T351, X588, T342, T343, T346) → U96_ggaggg(T341, T351, X588, T342, T343, T346, notEqF_in_gg(T341, T351))
U96_ggaggg(T341, T351, X588, T342, T343, T346, notEqF_out_gg(T341, T351)) → U97_ggaggg(T341, T351, X588, T342, T343, T346, pN36_in_gaggg(T341, X588, T342, T343, T346))
pN36_in_gaggg(T341, T359, T342, T343, T346) → U98_gaggg(T341, T359, T342, T343, T346, addM_in_ga(T341, T359))
U98_gaggg(T341, T359, T342, T343, T346, addM_out_ga(T341, T359)) → U99_gaggg(T341, T359, T342, T343, T346, pN37_in_ggggg(T342, T359, T341, T343, T346))
pN37_in_ggggg(T342, T359, T341, T343, T346) → U100_ggggg(T342, T359, T341, T343, T346, notEqF_in_gg(T342, T359))
U100_ggggg(T342, T359, T341, T343, T346, notEqF_out_gg(T342, T359)) → U101_ggggg(T342, T359, T341, T343, T346, noattackN7_in_ggg(T341, T343, T346))
noattackN7_in_ggg(T376, [], T377) → noattackN7_out_ggg(T376, [], T377)
noattackN7_in_ggg(T386, .(T387, T388), T389) → U23_ggg(T386, T387, T388, T389, pN8_in_gggaag(T386, T387, T389, X658, X659, T388))
pN8_in_gggaag(T386, T387, T389, X658, X659, T388) → U102_gggaag(T386, T387, T389, X658, X659, T388, notEqF_in_gg(T386, T387))
U102_gggaag(T386, T387, T389, X658, X659, T388, notEqF_out_gg(T386, T387)) → U103_gggaag(T386, T387, T389, X658, X659, T388, pN38_in_ggagag(T387, T389, X658, T386, X659, T388))
pN38_in_ggagag(T387, T389, T396, T386, X659, T388) → U104_ggagag(T387, T389, T396, T386, X659, T388, addN_in_gga(T387, T389, T396))
addN_in_gga(0, T403, s(T403)) → addN_out_gga(0, T403, s(T403))
addN_in_gga(s(T408), T409, s(X684)) → U12_gga(T408, T409, X684, addN_in_gga(T408, T409, X684))
U12_gga(T408, T409, X684, addN_out_gga(T408, T409, X684)) → addN_out_gga(s(T408), T409, s(X684))
U104_ggagag(T387, T389, T396, T386, X659, T388, addN_out_gga(T387, T389, T396)) → U105_ggagag(T387, T389, T396, T386, X659, T388, pN39_in_gggagg(T386, T396, T389, X659, T387, T388))
pN39_in_gggagg(T386, T396, T389, X659, T387, T388) → U106_gggagg(T386, T396, T389, X659, T387, T388, notEqF_in_gg(T386, T396))
U106_gggagg(T386, T396, T389, X659, T387, T388, notEqF_out_gg(T386, T396)) → U107_gggagg(T386, T396, T389, X659, T387, T388, pN40_in_ggagg(T386, T389, X659, T387, T388))
pN40_in_ggagg(T386, T389, T418, T387, T388) → U108_ggagg(T386, T389, T418, T387, T388, addN_in_gga(T386, T389, T418))
U108_ggagg(T386, T389, T418, T387, T388, addN_out_gga(T386, T389, T418)) → U109_ggagg(T386, T389, T418, T387, T388, pN37_in_ggggg(T387, T418, T386, T388, s(T389)))
U109_ggagg(T386, T389, T418, T387, T388, pN37_out_ggggg(T387, T418, T386, T388, s(T389))) → pN40_out_ggagg(T386, T389, T418, T387, T388)
U107_gggagg(T386, T396, T389, X659, T387, T388, pN40_out_ggagg(T386, T389, X659, T387, T388)) → pN39_out_gggagg(T386, T396, T389, X659, T387, T388)
U105_ggagag(T387, T389, T396, T386, X659, T388, pN39_out_gggagg(T386, T396, T389, X659, T387, T388)) → pN38_out_ggagag(T387, T389, T396, T386, X659, T388)
U103_gggaag(T386, T387, T389, X658, X659, T388, pN38_out_ggagag(T387, T389, X658, T386, X659, T388)) → pN8_out_gggaag(T386, T387, T389, X658, X659, T388)
U23_ggg(T386, T387, T388, T389, pN8_out_gggaag(T386, T387, T389, X658, X659, T388)) → noattackN7_out_ggg(T386, .(T387, T388), T389)
U101_ggggg(T342, T359, T341, T343, T346, noattackN7_out_ggg(T341, T343, T346)) → pN37_out_ggggg(T342, T359, T341, T343, T346)
U99_gaggg(T341, T359, T342, T343, T346, pN37_out_ggggg(T342, T359, T341, T343, T346)) → pN36_out_gaggg(T341, T359, T342, T343, T346)
U97_ggaggg(T341, T351, X588, T342, T343, T346, pN36_out_gaggg(T341, X588, T342, T343, T346)) → pN35_out_ggaggg(T341, T351, X588, T342, T343, T346)
U95_gagagg(T342, T351, T341, X588, T343, T346, pN35_out_ggaggg(T341, T351, X588, T342, T343, T346)) → pN34_out_gagagg(T342, T351, T341, X588, T343, T346)
U93_ggaagg(T341, T342, X587, X588, T343, T346, pN34_out_gagagg(T342, X587, T341, X588, T343, T346)) → pN6_out_ggaagg(T341, T342, X587, X588, T343, T346)
U22_gg(T341, T342, T343, pN6_out_ggaagg(T341, T342, X587, X588, T343, s(s(s(s(s(s(s(0))))))))) → noattackN5_out_gg(T341, .(T342, T343))
U91_gggg(T309, T323, T308, T310, noattackN5_out_gg(T308, T310)) → pN33_out_gggg(T309, T323, T308, T310)
U89_gagg(T308, T323, T309, T310, pN33_out_gggg(T309, T323, T308, T310)) → pN32_out_gagg(T308, T323, T309, T310)
U87_ggagg(T308, T315, X519, T309, T310, pN32_out_gagg(T308, X519, T309, T310)) → pN31_out_ggagg(T308, T315, X519, T309, T310)
U85_gagag(T309, T315, T308, X519, T310, pN31_out_ggagg(T308, T315, X519, T309, T310)) → pN30_out_gagag(T309, T315, T308, X519, T310)
U83_ggaag(T308, T309, X518, X519, T310, pN30_out_gagag(T309, X518, T308, X519, T310)) → pN4_out_ggaag(T308, T309, X518, X519, T310)
U21_gg(T308, T309, T310, pN4_out_ggaag(T308, T309, X518, X519, T310)) → noattackN3_out_gg(T308, .(T309, T310))
U81_gggg(T276, T290, T275, T277, noattackN3_out_gg(T275, T277)) → pN29_out_gggg(T276, T290, T275, T277)
U79_gagg(T275, T290, T276, T277, pN29_out_gggg(T276, T290, T275, T277)) → pN28_out_gagg(T275, T290, T276, T277)
U77_ggagg(T275, T282, X450, T276, T277, pN28_out_gagg(T275, X450, T276, T277)) → pN27_out_ggagg(T275, T282, X450, T276, T277)
U75_gagag(T276, T282, T275, X450, T277, pN27_out_ggagg(T275, T282, X450, T276, T277)) → pN26_out_gagag(T276, T282, T275, X450, T277)
U73_ggaag(T275, T276, X449, X450, T277, pN26_out_gagag(T276, X449, T275, X450, T277)) → pN2_out_ggaag(T275, T276, X449, X450, T277)
U20_gg(T275, T276, T277, pN2_out_ggaag(T275, T276, X449, X450, T277)) → noattackN1_out_gg(T275, .(T276, T277))
U71_gggg(T243, T257, T242, T244, noattackN1_out_gg(T242, T244)) → pN25_out_gggg(T243, T257, T242, T244)
U69_gagg(T242, T257, T243, T244, pN25_out_gggg(T243, T257, T242, T244)) → pN24_out_gagg(T242, T257, T243, T244)
U67_ggagg(T242, T249, X381, T243, T244, pN24_out_gagg(T242, X381, T243, T244)) → pN23_out_ggagg(T242, T249, X381, T243, T244)
U65_gagag(T243, T249, T242, X381, T244, pN23_out_ggagg(T242, T249, X381, T243, T244)) → pN22_out_gagag(T243, T249, T242, X381, T244)
U63_ggaag(T242, T243, X380, X381, T244, pN22_out_gagag(T243, X380, T242, X381, T244)) → pZ_out_ggaag(T242, T243, X380, X381, T244)
U19_gg(T242, T243, T244, pZ_out_ggaag(T242, T243, X380, X381, T244)) → noattackY_out_gg(T242, .(T243, T244))
U61_gggg(T210, T224, T209, T211, noattackY_out_gg(T209, T211)) → pN21_out_gggg(T210, T224, T209, T211)
U59_gagg(T209, T224, T210, T211, pN21_out_gggg(T210, T224, T209, T211)) → pN20_out_gagg(T209, T224, T210, T211)
U57_ggagg(T209, T216, X312, T210, T211, pN20_out_gagg(T209, X312, T210, T211)) → pN19_out_ggagg(T209, T216, X312, T210, T211)
U55_gagag(T210, T216, T209, X312, T211, pN19_out_ggagg(T209, T216, X312, T210, T211)) → pN18_out_gagag(T210, T216, T209, X312, T211)
U53_ggaag(T209, T210, X311, X312, T211, pN18_out_gagag(T210, X311, T209, X312, T211)) → pX_out_ggaag(T209, T210, X311, X312, T211)
U18_gg(T209, T210, T211, pX_out_ggaag(T209, T210, X311, X312, T211)) → noattackW_out_gg(T209, .(T210, T211))
U51_gggg(T177, T191, T176, T178, noattackW_out_gg(T176, T178)) → pN17_out_gggg(T177, T191, T176, T178)
U49_gagg(T176, T191, T177, T178, pN17_out_gggg(T177, T191, T176, T178)) → pN16_out_gagg(T176, T191, T177, T178)
U47_ggagg(T176, T183, X243, T177, T178, pN16_out_gagg(T176, X243, T177, T178)) → pN15_out_ggagg(T176, T183, X243, T177, T178)
U45_gagag(T177, T183, T176, X243, T178, pN15_out_ggagg(T176, T183, X243, T177, T178)) → pN14_out_gagag(T177, T183, T176, X243, T178)
U43_ggaag(T176, T177, X242, X243, T178, pN14_out_gagag(T177, X242, T176, X243, T178)) → pV_out_ggaag(T176, T177, X242, X243, T178)
U17_gg(T176, T177, T178, pV_out_ggaag(T176, T177, X242, X243, T178)) → noattackU_out_gg(T176, .(T177, T178))
U41_gggg(T126, T158, T125, T127, noattackU_out_gg(T125, T127)) → pN13_out_gggg(T126, T158, T125, T127)
U39_gagg(T125, T158, T126, T127, pN13_out_gggg(T126, T158, T125, T127)) → pN12_out_gagg(T125, T158, T126, T127)
U37_ggagg(T125, T150, X156, T126, T127, pN12_out_gagg(T125, X156, T126, T127)) → pN11_out_ggagg(T125, T150, X156, T126, T127)
U35_gagag(T126, T150, T125, X156, T127, pN11_out_ggagg(T125, T150, X156, T126, T127)) → pN10_out_gagag(T126, T150, T125, X156, T127)
U33_ggaag(T125, T126, X155, X156, T127, pN10_out_gagag(T126, X155, T125, X156, T127)) → pS_out_ggaag(T125, T126, X155, X156, T127)
U15_gg(T125, T126, T127, pS_out_ggaag(T125, T126, X155, X156, T127)) → noattackR_out_gg(T125, .(T126, T127))
U30_gg(T108, T109, noattackR_out_gg(T108, T109)) → U31_gg(T108, T109, safeT_in_g(T109))
safeT_in_g([]) → safeT_out_g([])
safeT_in_g(.(T427, T428)) → U16_g(T427, T428, pQ_in_gg(T427, T428))
U16_g(T427, T428, pQ_out_gg(T427, T428)) → safeT_out_g(.(T427, T428))
U31_gg(T108, T109, safeT_out_g(T109)) → pQ_out_gg(T108, T109)
U14_gg(T108, T109, pQ_out_gg(T108, T109)) → safeP_out_gg(T108, T109)
U27_gag(T20, T77, T22, safeP_out_gg(T22, T77)) → pN9_out_gag(T20, T77, T22)
U25_agaa(T22, T15, T20, T21, pN9_out_gag(T20, T21, T22)) → pB_out_agaa(T22, T15, T20, T21)
U1_a(T11, T12, pB_out_agaa(T11, .(s(s(0)), .(s(s(s(0))), .(s(s(s(s(0)))), .(s(s(s(s(s(0))))), .(s(s(s(s(s(s(0)))))), .(s(s(s(s(s(s(s(0))))))), .(s(s(s(s(s(s(s(s(0)))))))), []))))))), X16, T12)) → queensA_out_a(.(T11, T12))
PN37_IN_GGGGG(T342, T359, T341, T343, T346) → U100_GGGGG(T342, T359, T341, T343, T346, notEqF_in_gg(T342, T359))
U100_GGGGG(T342, T359, T341, T343, T346, notEqF_out_gg(T342, T359)) → NOATTACKN7_IN_GGG(T341, T343, T346)
NOATTACKN7_IN_GGG(T386, .(T387, T388), T389) → PN8_IN_GGGAAG(T386, T387, T389, X658, X659, T388)
PN8_IN_GGGAAG(T386, T387, T389, X658, X659, T388) → U102_GGGAAG(T386, T387, T389, X658, X659, T388, notEqF_in_gg(T386, T387))
U102_GGGAAG(T386, T387, T389, X658, X659, T388, notEqF_out_gg(T386, T387)) → PN38_IN_GGAGAG(T387, T389, X658, T386, X659, T388)
PN38_IN_GGAGAG(T387, T389, T396, T386, X659, T388) → U104_GGAGAG(T387, T389, T396, T386, X659, T388, addN_in_gga(T387, T389, T396))
U104_GGAGAG(T387, T389, T396, T386, X659, T388, addN_out_gga(T387, T389, T396)) → PN39_IN_GGGAGG(T386, T396, T389, X659, T387, T388)
PN39_IN_GGGAGG(T386, T396, T389, X659, T387, T388) → U106_GGGAGG(T386, T396, T389, X659, T387, T388, notEqF_in_gg(T386, T396))
U106_GGGAGG(T386, T396, T389, X659, T387, T388, notEqF_out_gg(T386, T396)) → PN40_IN_GGAGG(T386, T389, X659, T387, T388)
PN40_IN_GGAGG(T386, T389, T418, T387, T388) → U108_GGAGG(T386, T389, T418, T387, T388, addN_in_gga(T386, T389, T418))
U108_GGAGG(T386, T389, T418, T387, T388, addN_out_gga(T386, T389, T418)) → PN37_IN_GGGGG(T387, T418, T386, T388, s(T389))
notEqF_in_gg(0, s(T136)) → notEqF_out_gg(0, s(T136))
notEqF_in_gg(s(T141), 0) → notEqF_out_gg(s(T141), 0)
notEqF_in_gg(s(T146), s(T147)) → U4_gg(T146, T147, notEqF_in_gg(T146, T147))
addN_in_gga(0, T403, s(T403)) → addN_out_gga(0, T403, s(T403))
addN_in_gga(s(T408), T409, s(X684)) → U12_gga(T408, T409, X684, addN_in_gga(T408, T409, X684))
U4_gg(T146, T147, notEqF_out_gg(T146, T147)) → notEqF_out_gg(s(T146), s(T147))
U12_gga(T408, T409, X684, addN_out_gga(T408, T409, X684)) → addN_out_gga(s(T408), T409, s(X684))
PN37_IN_GGGGG(T342, T359, T341, T343, T346) → U100_GGGGG(T342, T359, T341, T343, T346, notEqF_in_gg(T342, T359))
U100_GGGGG(T342, T359, T341, T343, T346, notEqF_out_gg(T342, T359)) → NOATTACKN7_IN_GGG(T341, T343, T346)
NOATTACKN7_IN_GGG(T386, .(T387, T388), T389) → PN8_IN_GGGAAG(T386, T387, T389, T388)
PN8_IN_GGGAAG(T386, T387, T389, T388) → U102_GGGAAG(T386, T387, T389, T388, notEqF_in_gg(T386, T387))
U102_GGGAAG(T386, T387, T389, T388, notEqF_out_gg(T386, T387)) → PN38_IN_GGAGAG(T387, T389, T386, T388)
PN38_IN_GGAGAG(T387, T389, T386, T388) → U104_GGAGAG(T387, T389, T386, T388, addN_in_gga(T387, T389))
U104_GGAGAG(T387, T389, T386, T388, addN_out_gga(T387, T389, T396)) → PN39_IN_GGGAGG(T386, T396, T389, T387, T388)
PN39_IN_GGGAGG(T386, T396, T389, T387, T388) → U106_GGGAGG(T386, T396, T389, T387, T388, notEqF_in_gg(T386, T396))
U106_GGGAGG(T386, T396, T389, T387, T388, notEqF_out_gg(T386, T396)) → PN40_IN_GGAGG(T386, T389, T387, T388)
PN40_IN_GGAGG(T386, T389, T387, T388) → U108_GGAGG(T386, T389, T387, T388, addN_in_gga(T386, T389))
U108_GGAGG(T386, T389, T387, T388, addN_out_gga(T386, T389, T418)) → PN37_IN_GGGGG(T387, T418, T386, T388, s(T389))
notEqF_in_gg(0, s(T136)) → notEqF_out_gg(0, s(T136))
notEqF_in_gg(s(T141), 0) → notEqF_out_gg(s(T141), 0)
notEqF_in_gg(s(T146), s(T147)) → U4_gg(T146, T147, notEqF_in_gg(T146, T147))
addN_in_gga(0, T403) → addN_out_gga(0, T403, s(T403))
addN_in_gga(s(T408), T409) → U12_gga(T408, T409, addN_in_gga(T408, T409))
U4_gg(T146, T147, notEqF_out_gg(T146, T147)) → notEqF_out_gg(s(T146), s(T147))
U12_gga(T408, T409, addN_out_gga(T408, T409, X684)) → addN_out_gga(s(T408), T409, s(X684))
notEqF_in_gg(x0, x1)
addN_in_gga(x0, x1)
U4_gg(x0, x1, x2)
U12_gga(x0, x1, x2)
From the DPs we obtained the following set of size-change graphs:
U30_GG(T108, T109, noattackR_out_gg(T108, T109)) → SAFET_IN_G(T109)
SAFET_IN_G(.(T427, T428)) → PQ_IN_GG(T427, T428)
PQ_IN_GG(T108, T109) → U30_GG(T108, T109, noattackR_in_gg(T108, T109))
queensA_in_a(.(T11, T12)) → U1_a(T11, T12, pB_in_agaa(T11, .(s(s(0)), .(s(s(s(0))), .(s(s(s(s(0)))), .(s(s(s(s(s(0))))), .(s(s(s(s(s(s(0)))))), .(s(s(s(s(s(s(s(0))))))), .(s(s(s(s(s(s(s(s(0)))))))), []))))))), X16, T12))
pB_in_agaa(T22, T15, T20, T21) → U24_agaa(T22, T15, T20, T21, deleteO_in_aga(T22, T15, T20))
deleteO_in_aga(s(0), T36, T36) → deleteO_out_aga(s(0), T36, T36)
deleteO_in_aga(T48, T47, .(s(0), X57)) → U13_aga(T48, T47, X57, deleteC_in_aga(T48, T47, X57))
deleteC_in_aga(T61, .(T61, T62), T62) → deleteC_out_aga(T61, .(T61, T62), T62)
deleteC_in_aga(T72, .(T70, T71), .(T70, X86)) → U2_aga(T72, T70, T71, X86, deleteC_in_aga(T72, T71, X86))
U2_aga(T72, T70, T71, X86, deleteC_out_aga(T72, T71, X86)) → deleteC_out_aga(T72, .(T70, T71), .(T70, X86))
U13_aga(T48, T47, X57, deleteC_out_aga(T48, T47, X57)) → deleteO_out_aga(T48, T47, .(s(0), X57))
U24_agaa(T22, T15, T20, T21, deleteO_out_aga(T22, T15, T20)) → U25_agaa(T22, T15, T20, T21, pN9_in_gag(T20, T21, T22))
pN9_in_gag(T20, T77, T22) → U26_gag(T20, T77, T22, permD_in_ga(T20, T77))
permD_in_ga([], []) → permD_out_ga([], [])
permD_in_ga(.(T86, T87), .(T90, T91)) → U3_ga(T86, T87, T90, T91, pE_in_aggaa(T90, T86, T87, X104, T91))
pE_in_aggaa(T90, T86, T87, T96, T97) → U28_aggaa(T90, T86, T87, T96, T97, deleteC_in_aga(T90, .(T86, T87), T96))
U28_aggaa(T90, T86, T87, T96, T97, deleteC_out_aga(T90, .(T86, T87), T96)) → U29_aggaa(T90, T86, T87, T96, T97, permD_in_ga(T96, T97))
U29_aggaa(T90, T86, T87, T96, T97, permD_out_ga(T96, T97)) → pE_out_aggaa(T90, T86, T87, T96, T97)
U3_ga(T86, T87, T90, T91, pE_out_aggaa(T90, T86, T87, X104, T91)) → permD_out_ga(.(T86, T87), .(T90, T91))
U26_gag(T20, T77, T22, permD_out_ga(T20, T77)) → U27_gag(T20, T77, T22, safeP_in_gg(T22, T77))
safeP_in_gg(T108, T109) → U14_gg(T108, T109, pQ_in_gg(T108, T109))
pQ_in_gg(T108, T109) → U30_gg(T108, T109, noattackR_in_gg(T108, T109))
noattackR_in_gg(T118, []) → noattackR_out_gg(T118, [])
noattackR_in_gg(T125, .(T126, T127)) → U15_gg(T125, T126, T127, pS_in_ggaag(T125, T126, X155, X156, T127))
pS_in_ggaag(T125, T126, X155, X156, T127) → U32_ggaag(T125, T126, X155, X156, T127, notEqF_in_gg(T125, T126))
notEqF_in_gg(0, s(T136)) → notEqF_out_gg(0, s(T136))
notEqF_in_gg(s(T141), 0) → notEqF_out_gg(s(T141), 0)
notEqF_in_gg(s(T146), s(T147)) → U4_gg(T146, T147, notEqF_in_gg(T146, T147))
U4_gg(T146, T147, notEqF_out_gg(T146, T147)) → notEqF_out_gg(s(T146), s(T147))
U32_ggaag(T125, T126, X155, X156, T127, notEqF_out_gg(T125, T126)) → U33_ggaag(T125, T126, X155, X156, T127, pN10_in_gagag(T126, X155, T125, X156, T127))
pN10_in_gagag(T126, T150, T125, X156, T127) → U34_gagag(T126, T150, T125, X156, T127, addG_in_ga(T126, T150))
addG_in_ga(0, s(0)) → addG_out_ga(0, s(0))
addG_in_ga(s(T153), s(X199)) → U5_ga(T153, X199, addG_in_ga(T153, X199))
U5_ga(T153, X199, addG_out_ga(T153, X199)) → addG_out_ga(s(T153), s(X199))
U34_gagag(T126, T150, T125, X156, T127, addG_out_ga(T126, T150)) → U35_gagag(T126, T150, T125, X156, T127, pN11_in_ggagg(T125, T150, X156, T126, T127))
pN11_in_ggagg(T125, T150, X156, T126, T127) → U36_ggagg(T125, T150, X156, T126, T127, notEqF_in_gg(T125, T150))
U36_ggagg(T125, T150, X156, T126, T127, notEqF_out_gg(T125, T150)) → U37_ggagg(T125, T150, X156, T126, T127, pN12_in_gagg(T125, X156, T126, T127))
pN12_in_gagg(T125, T158, T126, T127) → U38_gagg(T125, T158, T126, T127, addG_in_ga(T125, T158))
U38_gagg(T125, T158, T126, T127, addG_out_ga(T125, T158)) → U39_gagg(T125, T158, T126, T127, pN13_in_gggg(T126, T158, T125, T127))
pN13_in_gggg(T126, T158, T125, T127) → U40_gggg(T126, T158, T125, T127, notEqF_in_gg(T126, T158))
U40_gggg(T126, T158, T125, T127, notEqF_out_gg(T126, T158)) → U41_gggg(T126, T158, T125, T127, noattackU_in_gg(T125, T127))
noattackU_in_gg(T169, []) → noattackU_out_gg(T169, [])
noattackU_in_gg(T176, .(T177, T178)) → U17_gg(T176, T177, T178, pV_in_ggaag(T176, T177, X242, X243, T178))
pV_in_ggaag(T176, T177, X242, X243, T178) → U42_ggaag(T176, T177, X242, X243, T178, notEqF_in_gg(T176, T177))
U42_ggaag(T176, T177, X242, X243, T178, notEqF_out_gg(T176, T177)) → U43_ggaag(T176, T177, X242, X243, T178, pN14_in_gagag(T177, X242, T176, X243, T178))
pN14_in_gagag(T177, T183, T176, X243, T178) → U44_gagag(T177, T183, T176, X243, T178, addH_in_ga(T177, T183))
addH_in_ga(0, s(s(0))) → addH_out_ga(0, s(s(0)))
addH_in_ga(s(T186), s(X268)) → U6_ga(T186, X268, addH_in_ga(T186, X268))
U6_ga(T186, X268, addH_out_ga(T186, X268)) → addH_out_ga(s(T186), s(X268))
U44_gagag(T177, T183, T176, X243, T178, addH_out_ga(T177, T183)) → U45_gagag(T177, T183, T176, X243, T178, pN15_in_ggagg(T176, T183, X243, T177, T178))
pN15_in_ggagg(T176, T183, X243, T177, T178) → U46_ggagg(T176, T183, X243, T177, T178, notEqF_in_gg(T176, T183))
U46_ggagg(T176, T183, X243, T177, T178, notEqF_out_gg(T176, T183)) → U47_ggagg(T176, T183, X243, T177, T178, pN16_in_gagg(T176, X243, T177, T178))
pN16_in_gagg(T176, T191, T177, T178) → U48_gagg(T176, T191, T177, T178, addH_in_ga(T176, T191))
U48_gagg(T176, T191, T177, T178, addH_out_ga(T176, T191)) → U49_gagg(T176, T191, T177, T178, pN17_in_gggg(T177, T191, T176, T178))
pN17_in_gggg(T177, T191, T176, T178) → U50_gggg(T177, T191, T176, T178, notEqF_in_gg(T177, T191))
U50_gggg(T177, T191, T176, T178, notEqF_out_gg(T177, T191)) → U51_gggg(T177, T191, T176, T178, noattackW_in_gg(T176, T178))
noattackW_in_gg(T202, []) → noattackW_out_gg(T202, [])
noattackW_in_gg(T209, .(T210, T211)) → U18_gg(T209, T210, T211, pX_in_ggaag(T209, T210, X311, X312, T211))
pX_in_ggaag(T209, T210, X311, X312, T211) → U52_ggaag(T209, T210, X311, X312, T211, notEqF_in_gg(T209, T210))
U52_ggaag(T209, T210, X311, X312, T211, notEqF_out_gg(T209, T210)) → U53_ggaag(T209, T210, X311, X312, T211, pN18_in_gagag(T210, X311, T209, X312, T211))
pN18_in_gagag(T210, T216, T209, X312, T211) → U54_gagag(T210, T216, T209, X312, T211, addI_in_ga(T210, T216))
addI_in_ga(0, s(s(s(0)))) → addI_out_ga(0, s(s(s(0))))
addI_in_ga(s(T219), s(X337)) → U7_ga(T219, X337, addI_in_ga(T219, X337))
U7_ga(T219, X337, addI_out_ga(T219, X337)) → addI_out_ga(s(T219), s(X337))
U54_gagag(T210, T216, T209, X312, T211, addI_out_ga(T210, T216)) → U55_gagag(T210, T216, T209, X312, T211, pN19_in_ggagg(T209, T216, X312, T210, T211))
pN19_in_ggagg(T209, T216, X312, T210, T211) → U56_ggagg(T209, T216, X312, T210, T211, notEqF_in_gg(T209, T216))
U56_ggagg(T209, T216, X312, T210, T211, notEqF_out_gg(T209, T216)) → U57_ggagg(T209, T216, X312, T210, T211, pN20_in_gagg(T209, X312, T210, T211))
pN20_in_gagg(T209, T224, T210, T211) → U58_gagg(T209, T224, T210, T211, addI_in_ga(T209, T224))
U58_gagg(T209, T224, T210, T211, addI_out_ga(T209, T224)) → U59_gagg(T209, T224, T210, T211, pN21_in_gggg(T210, T224, T209, T211))
pN21_in_gggg(T210, T224, T209, T211) → U60_gggg(T210, T224, T209, T211, notEqF_in_gg(T210, T224))
U60_gggg(T210, T224, T209, T211, notEqF_out_gg(T210, T224)) → U61_gggg(T210, T224, T209, T211, noattackY_in_gg(T209, T211))
noattackY_in_gg(T235, []) → noattackY_out_gg(T235, [])
noattackY_in_gg(T242, .(T243, T244)) → U19_gg(T242, T243, T244, pZ_in_ggaag(T242, T243, X380, X381, T244))
pZ_in_ggaag(T242, T243, X380, X381, T244) → U62_ggaag(T242, T243, X380, X381, T244, notEqF_in_gg(T242, T243))
U62_ggaag(T242, T243, X380, X381, T244, notEqF_out_gg(T242, T243)) → U63_ggaag(T242, T243, X380, X381, T244, pN22_in_gagag(T243, X380, T242, X381, T244))
pN22_in_gagag(T243, T249, T242, X381, T244) → U64_gagag(T243, T249, T242, X381, T244, addJ_in_ga(T243, T249))
addJ_in_ga(0, s(s(s(s(0))))) → addJ_out_ga(0, s(s(s(s(0)))))
addJ_in_ga(s(T252), s(X406)) → U8_ga(T252, X406, addJ_in_ga(T252, X406))
U8_ga(T252, X406, addJ_out_ga(T252, X406)) → addJ_out_ga(s(T252), s(X406))
U64_gagag(T243, T249, T242, X381, T244, addJ_out_ga(T243, T249)) → U65_gagag(T243, T249, T242, X381, T244, pN23_in_ggagg(T242, T249, X381, T243, T244))
pN23_in_ggagg(T242, T249, X381, T243, T244) → U66_ggagg(T242, T249, X381, T243, T244, notEqF_in_gg(T242, T249))
U66_ggagg(T242, T249, X381, T243, T244, notEqF_out_gg(T242, T249)) → U67_ggagg(T242, T249, X381, T243, T244, pN24_in_gagg(T242, X381, T243, T244))
pN24_in_gagg(T242, T257, T243, T244) → U68_gagg(T242, T257, T243, T244, addJ_in_ga(T242, T257))
U68_gagg(T242, T257, T243, T244, addJ_out_ga(T242, T257)) → U69_gagg(T242, T257, T243, T244, pN25_in_gggg(T243, T257, T242, T244))
pN25_in_gggg(T243, T257, T242, T244) → U70_gggg(T243, T257, T242, T244, notEqF_in_gg(T243, T257))
U70_gggg(T243, T257, T242, T244, notEqF_out_gg(T243, T257)) → U71_gggg(T243, T257, T242, T244, noattackN1_in_gg(T242, T244))
noattackN1_in_gg(T268, []) → noattackN1_out_gg(T268, [])
noattackN1_in_gg(T275, .(T276, T277)) → U20_gg(T275, T276, T277, pN2_in_ggaag(T275, T276, X449, X450, T277))
pN2_in_ggaag(T275, T276, X449, X450, T277) → U72_ggaag(T275, T276, X449, X450, T277, notEqF_in_gg(T275, T276))
U72_ggaag(T275, T276, X449, X450, T277, notEqF_out_gg(T275, T276)) → U73_ggaag(T275, T276, X449, X450, T277, pN26_in_gagag(T276, X449, T275, X450, T277))
pN26_in_gagag(T276, T282, T275, X450, T277) → U74_gagag(T276, T282, T275, X450, T277, addK_in_ga(T276, T282))
addK_in_ga(0, s(s(s(s(s(0)))))) → addK_out_ga(0, s(s(s(s(s(0))))))
addK_in_ga(s(T285), s(X475)) → U9_ga(T285, X475, addK_in_ga(T285, X475))
U9_ga(T285, X475, addK_out_ga(T285, X475)) → addK_out_ga(s(T285), s(X475))
U74_gagag(T276, T282, T275, X450, T277, addK_out_ga(T276, T282)) → U75_gagag(T276, T282, T275, X450, T277, pN27_in_ggagg(T275, T282, X450, T276, T277))
pN27_in_ggagg(T275, T282, X450, T276, T277) → U76_ggagg(T275, T282, X450, T276, T277, notEqF_in_gg(T275, T282))
U76_ggagg(T275, T282, X450, T276, T277, notEqF_out_gg(T275, T282)) → U77_ggagg(T275, T282, X450, T276, T277, pN28_in_gagg(T275, X450, T276, T277))
pN28_in_gagg(T275, T290, T276, T277) → U78_gagg(T275, T290, T276, T277, addK_in_ga(T275, T290))
U78_gagg(T275, T290, T276, T277, addK_out_ga(T275, T290)) → U79_gagg(T275, T290, T276, T277, pN29_in_gggg(T276, T290, T275, T277))
pN29_in_gggg(T276, T290, T275, T277) → U80_gggg(T276, T290, T275, T277, notEqF_in_gg(T276, T290))
U80_gggg(T276, T290, T275, T277, notEqF_out_gg(T276, T290)) → U81_gggg(T276, T290, T275, T277, noattackN3_in_gg(T275, T277))
noattackN3_in_gg(T301, []) → noattackN3_out_gg(T301, [])
noattackN3_in_gg(T308, .(T309, T310)) → U21_gg(T308, T309, T310, pN4_in_ggaag(T308, T309, X518, X519, T310))
pN4_in_ggaag(T308, T309, X518, X519, T310) → U82_ggaag(T308, T309, X518, X519, T310, notEqF_in_gg(T308, T309))
U82_ggaag(T308, T309, X518, X519, T310, notEqF_out_gg(T308, T309)) → U83_ggaag(T308, T309, X518, X519, T310, pN30_in_gagag(T309, X518, T308, X519, T310))
pN30_in_gagag(T309, T315, T308, X519, T310) → U84_gagag(T309, T315, T308, X519, T310, addL_in_ga(T309, T315))
addL_in_ga(0, s(s(s(s(s(s(0))))))) → addL_out_ga(0, s(s(s(s(s(s(0)))))))
addL_in_ga(s(T318), s(X544)) → U10_ga(T318, X544, addL_in_ga(T318, X544))
U10_ga(T318, X544, addL_out_ga(T318, X544)) → addL_out_ga(s(T318), s(X544))
U84_gagag(T309, T315, T308, X519, T310, addL_out_ga(T309, T315)) → U85_gagag(T309, T315, T308, X519, T310, pN31_in_ggagg(T308, T315, X519, T309, T310))
pN31_in_ggagg(T308, T315, X519, T309, T310) → U86_ggagg(T308, T315, X519, T309, T310, notEqF_in_gg(T308, T315))
U86_ggagg(T308, T315, X519, T309, T310, notEqF_out_gg(T308, T315)) → U87_ggagg(T308, T315, X519, T309, T310, pN32_in_gagg(T308, X519, T309, T310))
pN32_in_gagg(T308, T323, T309, T310) → U88_gagg(T308, T323, T309, T310, addL_in_ga(T308, T323))
U88_gagg(T308, T323, T309, T310, addL_out_ga(T308, T323)) → U89_gagg(T308, T323, T309, T310, pN33_in_gggg(T309, T323, T308, T310))
pN33_in_gggg(T309, T323, T308, T310) → U90_gggg(T309, T323, T308, T310, notEqF_in_gg(T309, T323))
U90_gggg(T309, T323, T308, T310, notEqF_out_gg(T309, T323)) → U91_gggg(T309, T323, T308, T310, noattackN5_in_gg(T308, T310))
noattackN5_in_gg(T334, []) → noattackN5_out_gg(T334, [])
noattackN5_in_gg(T341, .(T342, T343)) → U22_gg(T341, T342, T343, pN6_in_ggaagg(T341, T342, X587, X588, T343, s(s(s(s(s(s(s(0)))))))))
pN6_in_ggaagg(T341, T342, X587, X588, T343, T346) → U92_ggaagg(T341, T342, X587, X588, T343, T346, notEqF_in_gg(T341, T342))
U92_ggaagg(T341, T342, X587, X588, T343, T346, notEqF_out_gg(T341, T342)) → U93_ggaagg(T341, T342, X587, X588, T343, T346, pN34_in_gagagg(T342, X587, T341, X588, T343, T346))
pN34_in_gagagg(T342, T351, T341, X588, T343, T346) → U94_gagagg(T342, T351, T341, X588, T343, T346, addM_in_ga(T342, T351))
addM_in_ga(0, s(s(s(s(s(s(s(0)))))))) → addM_out_ga(0, s(s(s(s(s(s(s(0))))))))
addM_in_ga(s(T354), s(X615)) → U11_ga(T354, X615, addM_in_ga(T354, X615))
U11_ga(T354, X615, addM_out_ga(T354, X615)) → addM_out_ga(s(T354), s(X615))
U94_gagagg(T342, T351, T341, X588, T343, T346, addM_out_ga(T342, T351)) → U95_gagagg(T342, T351, T341, X588, T343, T346, pN35_in_ggaggg(T341, T351, X588, T342, T343, T346))
pN35_in_ggaggg(T341, T351, X588, T342, T343, T346) → U96_ggaggg(T341, T351, X588, T342, T343, T346, notEqF_in_gg(T341, T351))
U96_ggaggg(T341, T351, X588, T342, T343, T346, notEqF_out_gg(T341, T351)) → U97_ggaggg(T341, T351, X588, T342, T343, T346, pN36_in_gaggg(T341, X588, T342, T343, T346))
pN36_in_gaggg(T341, T359, T342, T343, T346) → U98_gaggg(T341, T359, T342, T343, T346, addM_in_ga(T341, T359))
U98_gaggg(T341, T359, T342, T343, T346, addM_out_ga(T341, T359)) → U99_gaggg(T341, T359, T342, T343, T346, pN37_in_ggggg(T342, T359, T341, T343, T346))
pN37_in_ggggg(T342, T359, T341, T343, T346) → U100_ggggg(T342, T359, T341, T343, T346, notEqF_in_gg(T342, T359))
U100_ggggg(T342, T359, T341, T343, T346, notEqF_out_gg(T342, T359)) → U101_ggggg(T342, T359, T341, T343, T346, noattackN7_in_ggg(T341, T343, T346))
noattackN7_in_ggg(T376, [], T377) → noattackN7_out_ggg(T376, [], T377)
noattackN7_in_ggg(T386, .(T387, T388), T389) → U23_ggg(T386, T387, T388, T389, pN8_in_gggaag(T386, T387, T389, X658, X659, T388))
pN8_in_gggaag(T386, T387, T389, X658, X659, T388) → U102_gggaag(T386, T387, T389, X658, X659, T388, notEqF_in_gg(T386, T387))
U102_gggaag(T386, T387, T389, X658, X659, T388, notEqF_out_gg(T386, T387)) → U103_gggaag(T386, T387, T389, X658, X659, T388, pN38_in_ggagag(T387, T389, X658, T386, X659, T388))
pN38_in_ggagag(T387, T389, T396, T386, X659, T388) → U104_ggagag(T387, T389, T396, T386, X659, T388, addN_in_gga(T387, T389, T396))
addN_in_gga(0, T403, s(T403)) → addN_out_gga(0, T403, s(T403))
addN_in_gga(s(T408), T409, s(X684)) → U12_gga(T408, T409, X684, addN_in_gga(T408, T409, X684))
U12_gga(T408, T409, X684, addN_out_gga(T408, T409, X684)) → addN_out_gga(s(T408), T409, s(X684))
U104_ggagag(T387, T389, T396, T386, X659, T388, addN_out_gga(T387, T389, T396)) → U105_ggagag(T387, T389, T396, T386, X659, T388, pN39_in_gggagg(T386, T396, T389, X659, T387, T388))
pN39_in_gggagg(T386, T396, T389, X659, T387, T388) → U106_gggagg(T386, T396, T389, X659, T387, T388, notEqF_in_gg(T386, T396))
U106_gggagg(T386, T396, T389, X659, T387, T388, notEqF_out_gg(T386, T396)) → U107_gggagg(T386, T396, T389, X659, T387, T388, pN40_in_ggagg(T386, T389, X659, T387, T388))
pN40_in_ggagg(T386, T389, T418, T387, T388) → U108_ggagg(T386, T389, T418, T387, T388, addN_in_gga(T386, T389, T418))
U108_ggagg(T386, T389, T418, T387, T388, addN_out_gga(T386, T389, T418)) → U109_ggagg(T386, T389, T418, T387, T388, pN37_in_ggggg(T387, T418, T386, T388, s(T389)))
U109_ggagg(T386, T389, T418, T387, T388, pN37_out_ggggg(T387, T418, T386, T388, s(T389))) → pN40_out_ggagg(T386, T389, T418, T387, T388)
U107_gggagg(T386, T396, T389, X659, T387, T388, pN40_out_ggagg(T386, T389, X659, T387, T388)) → pN39_out_gggagg(T386, T396, T389, X659, T387, T388)
U105_ggagag(T387, T389, T396, T386, X659, T388, pN39_out_gggagg(T386, T396, T389, X659, T387, T388)) → pN38_out_ggagag(T387, T389, T396, T386, X659, T388)
U103_gggaag(T386, T387, T389, X658, X659, T388, pN38_out_ggagag(T387, T389, X658, T386, X659, T388)) → pN8_out_gggaag(T386, T387, T389, X658, X659, T388)
U23_ggg(T386, T387, T388, T389, pN8_out_gggaag(T386, T387, T389, X658, X659, T388)) → noattackN7_out_ggg(T386, .(T387, T388), T389)
U101_ggggg(T342, T359, T341, T343, T346, noattackN7_out_ggg(T341, T343, T346)) → pN37_out_ggggg(T342, T359, T341, T343, T346)
U99_gaggg(T341, T359, T342, T343, T346, pN37_out_ggggg(T342, T359, T341, T343, T346)) → pN36_out_gaggg(T341, T359, T342, T343, T346)
U97_ggaggg(T341, T351, X588, T342, T343, T346, pN36_out_gaggg(T341, X588, T342, T343, T346)) → pN35_out_ggaggg(T341, T351, X588, T342, T343, T346)
U95_gagagg(T342, T351, T341, X588, T343, T346, pN35_out_ggaggg(T341, T351, X588, T342, T343, T346)) → pN34_out_gagagg(T342, T351, T341, X588, T343, T346)
U93_ggaagg(T341, T342, X587, X588, T343, T346, pN34_out_gagagg(T342, X587, T341, X588, T343, T346)) → pN6_out_ggaagg(T341, T342, X587, X588, T343, T346)
U22_gg(T341, T342, T343, pN6_out_ggaagg(T341, T342, X587, X588, T343, s(s(s(s(s(s(s(0))))))))) → noattackN5_out_gg(T341, .(T342, T343))
U91_gggg(T309, T323, T308, T310, noattackN5_out_gg(T308, T310)) → pN33_out_gggg(T309, T323, T308, T310)
U89_gagg(T308, T323, T309, T310, pN33_out_gggg(T309, T323, T308, T310)) → pN32_out_gagg(T308, T323, T309, T310)
U87_ggagg(T308, T315, X519, T309, T310, pN32_out_gagg(T308, X519, T309, T310)) → pN31_out_ggagg(T308, T315, X519, T309, T310)
U85_gagag(T309, T315, T308, X519, T310, pN31_out_ggagg(T308, T315, X519, T309, T310)) → pN30_out_gagag(T309, T315, T308, X519, T310)
U83_ggaag(T308, T309, X518, X519, T310, pN30_out_gagag(T309, X518, T308, X519, T310)) → pN4_out_ggaag(T308, T309, X518, X519, T310)
U21_gg(T308, T309, T310, pN4_out_ggaag(T308, T309, X518, X519, T310)) → noattackN3_out_gg(T308, .(T309, T310))
U81_gggg(T276, T290, T275, T277, noattackN3_out_gg(T275, T277)) → pN29_out_gggg(T276, T290, T275, T277)
U79_gagg(T275, T290, T276, T277, pN29_out_gggg(T276, T290, T275, T277)) → pN28_out_gagg(T275, T290, T276, T277)
U77_ggagg(T275, T282, X450, T276, T277, pN28_out_gagg(T275, X450, T276, T277)) → pN27_out_ggagg(T275, T282, X450, T276, T277)
U75_gagag(T276, T282, T275, X450, T277, pN27_out_ggagg(T275, T282, X450, T276, T277)) → pN26_out_gagag(T276, T282, T275, X450, T277)
U73_ggaag(T275, T276, X449, X450, T277, pN26_out_gagag(T276, X449, T275, X450, T277)) → pN2_out_ggaag(T275, T276, X449, X450, T277)
U20_gg(T275, T276, T277, pN2_out_ggaag(T275, T276, X449, X450, T277)) → noattackN1_out_gg(T275, .(T276, T277))
U71_gggg(T243, T257, T242, T244, noattackN1_out_gg(T242, T244)) → pN25_out_gggg(T243, T257, T242, T244)
U69_gagg(T242, T257, T243, T244, pN25_out_gggg(T243, T257, T242, T244)) → pN24_out_gagg(T242, T257, T243, T244)
U67_ggagg(T242, T249, X381, T243, T244, pN24_out_gagg(T242, X381, T243, T244)) → pN23_out_ggagg(T242, T249, X381, T243, T244)
U65_gagag(T243, T249, T242, X381, T244, pN23_out_ggagg(T242, T249, X381, T243, T244)) → pN22_out_gagag(T243, T249, T242, X381, T244)
U63_ggaag(T242, T243, X380, X381, T244, pN22_out_gagag(T243, X380, T242, X381, T244)) → pZ_out_ggaag(T242, T243, X380, X381, T244)
U19_gg(T242, T243, T244, pZ_out_ggaag(T242, T243, X380, X381, T244)) → noattackY_out_gg(T242, .(T243, T244))
U61_gggg(T210, T224, T209, T211, noattackY_out_gg(T209, T211)) → pN21_out_gggg(T210, T224, T209, T211)
U59_gagg(T209, T224, T210, T211, pN21_out_gggg(T210, T224, T209, T211)) → pN20_out_gagg(T209, T224, T210, T211)
U57_ggagg(T209, T216, X312, T210, T211, pN20_out_gagg(T209, X312, T210, T211)) → pN19_out_ggagg(T209, T216, X312, T210, T211)
U55_gagag(T210, T216, T209, X312, T211, pN19_out_ggagg(T209, T216, X312, T210, T211)) → pN18_out_gagag(T210, T216, T209, X312, T211)
U53_ggaag(T209, T210, X311, X312, T211, pN18_out_gagag(T210, X311, T209, X312, T211)) → pX_out_ggaag(T209, T210, X311, X312, T211)
U18_gg(T209, T210, T211, pX_out_ggaag(T209, T210, X311, X312, T211)) → noattackW_out_gg(T209, .(T210, T211))
U51_gggg(T177, T191, T176, T178, noattackW_out_gg(T176, T178)) → pN17_out_gggg(T177, T191, T176, T178)
U49_gagg(T176, T191, T177, T178, pN17_out_gggg(T177, T191, T176, T178)) → pN16_out_gagg(T176, T191, T177, T178)
U47_ggagg(T176, T183, X243, T177, T178, pN16_out_gagg(T176, X243, T177, T178)) → pN15_out_ggagg(T176, T183, X243, T177, T178)
U45_gagag(T177, T183, T176, X243, T178, pN15_out_ggagg(T176, T183, X243, T177, T178)) → pN14_out_gagag(T177, T183, T176, X243, T178)
U43_ggaag(T176, T177, X242, X243, T178, pN14_out_gagag(T177, X242, T176, X243, T178)) → pV_out_ggaag(T176, T177, X242, X243, T178)
U17_gg(T176, T177, T178, pV_out_ggaag(T176, T177, X242, X243, T178)) → noattackU_out_gg(T176, .(T177, T178))
U41_gggg(T126, T158, T125, T127, noattackU_out_gg(T125, T127)) → pN13_out_gggg(T126, T158, T125, T127)
U39_gagg(T125, T158, T126, T127, pN13_out_gggg(T126, T158, T125, T127)) → pN12_out_gagg(T125, T158, T126, T127)
U37_ggagg(T125, T150, X156, T126, T127, pN12_out_gagg(T125, X156, T126, T127)) → pN11_out_ggagg(T125, T150, X156, T126, T127)
U35_gagag(T126, T150, T125, X156, T127, pN11_out_ggagg(T125, T150, X156, T126, T127)) → pN10_out_gagag(T126, T150, T125, X156, T127)
U33_ggaag(T125, T126, X155, X156, T127, pN10_out_gagag(T126, X155, T125, X156, T127)) → pS_out_ggaag(T125, T126, X155, X156, T127)
U15_gg(T125, T126, T127, pS_out_ggaag(T125, T126, X155, X156, T127)) → noattackR_out_gg(T125, .(T126, T127))
U30_gg(T108, T109, noattackR_out_gg(T108, T109)) → U31_gg(T108, T109, safeT_in_g(T109))
safeT_in_g([]) → safeT_out_g([])
safeT_in_g(.(T427, T428)) → U16_g(T427, T428, pQ_in_gg(T427, T428))
U16_g(T427, T428, pQ_out_gg(T427, T428)) → safeT_out_g(.(T427, T428))
U31_gg(T108, T109, safeT_out_g(T109)) → pQ_out_gg(T108, T109)
U14_gg(T108, T109, pQ_out_gg(T108, T109)) → safeP_out_gg(T108, T109)
U27_gag(T20, T77, T22, safeP_out_gg(T22, T77)) → pN9_out_gag(T20, T77, T22)
U25_agaa(T22, T15, T20, T21, pN9_out_gag(T20, T21, T22)) → pB_out_agaa(T22, T15, T20, T21)
U1_a(T11, T12, pB_out_agaa(T11, .(s(s(0)), .(s(s(s(0))), .(s(s(s(s(0)))), .(s(s(s(s(s(0))))), .(s(s(s(s(s(s(0)))))), .(s(s(s(s(s(s(s(0))))))), .(s(s(s(s(s(s(s(s(0)))))))), []))))))), X16, T12)) → queensA_out_a(.(T11, T12))
U30_GG(T108, T109, noattackR_out_gg(T108, T109)) → SAFET_IN_G(T109)
SAFET_IN_G(.(T427, T428)) → PQ_IN_GG(T427, T428)
PQ_IN_GG(T108, T109) → U30_GG(T108, T109, noattackR_in_gg(T108, T109))
noattackR_in_gg(T118, []) → noattackR_out_gg(T118, [])
noattackR_in_gg(T125, .(T126, T127)) → U15_gg(T125, T126, T127, pS_in_ggaag(T125, T126, X155, X156, T127))
U15_gg(T125, T126, T127, pS_out_ggaag(T125, T126, X155, X156, T127)) → noattackR_out_gg(T125, .(T126, T127))
pS_in_ggaag(T125, T126, X155, X156, T127) → U32_ggaag(T125, T126, X155, X156, T127, notEqF_in_gg(T125, T126))
U32_ggaag(T125, T126, X155, X156, T127, notEqF_out_gg(T125, T126)) → U33_ggaag(T125, T126, X155, X156, T127, pN10_in_gagag(T126, X155, T125, X156, T127))
notEqF_in_gg(0, s(T136)) → notEqF_out_gg(0, s(T136))
notEqF_in_gg(s(T141), 0) → notEqF_out_gg(s(T141), 0)
notEqF_in_gg(s(T146), s(T147)) → U4_gg(T146, T147, notEqF_in_gg(T146, T147))
U33_ggaag(T125, T126, X155, X156, T127, pN10_out_gagag(T126, X155, T125, X156, T127)) → pS_out_ggaag(T125, T126, X155, X156, T127)
U4_gg(T146, T147, notEqF_out_gg(T146, T147)) → notEqF_out_gg(s(T146), s(T147))
pN10_in_gagag(T126, T150, T125, X156, T127) → U34_gagag(T126, T150, T125, X156, T127, addG_in_ga(T126, T150))
U34_gagag(T126, T150, T125, X156, T127, addG_out_ga(T126, T150)) → U35_gagag(T126, T150, T125, X156, T127, pN11_in_ggagg(T125, T150, X156, T126, T127))
addG_in_ga(0, s(0)) → addG_out_ga(0, s(0))
addG_in_ga(s(T153), s(X199)) → U5_ga(T153, X199, addG_in_ga(T153, X199))
U35_gagag(T126, T150, T125, X156, T127, pN11_out_ggagg(T125, T150, X156, T126, T127)) → pN10_out_gagag(T126, T150, T125, X156, T127)
U5_ga(T153, X199, addG_out_ga(T153, X199)) → addG_out_ga(s(T153), s(X199))
pN11_in_ggagg(T125, T150, X156, T126, T127) → U36_ggagg(T125, T150, X156, T126, T127, notEqF_in_gg(T125, T150))
U36_ggagg(T125, T150, X156, T126, T127, notEqF_out_gg(T125, T150)) → U37_ggagg(T125, T150, X156, T126, T127, pN12_in_gagg(T125, X156, T126, T127))
U37_ggagg(T125, T150, X156, T126, T127, pN12_out_gagg(T125, X156, T126, T127)) → pN11_out_ggagg(T125, T150, X156, T126, T127)
pN12_in_gagg(T125, T158, T126, T127) → U38_gagg(T125, T158, T126, T127, addG_in_ga(T125, T158))
U38_gagg(T125, T158, T126, T127, addG_out_ga(T125, T158)) → U39_gagg(T125, T158, T126, T127, pN13_in_gggg(T126, T158, T125, T127))
U39_gagg(T125, T158, T126, T127, pN13_out_gggg(T126, T158, T125, T127)) → pN12_out_gagg(T125, T158, T126, T127)
pN13_in_gggg(T126, T158, T125, T127) → U40_gggg(T126, T158, T125, T127, notEqF_in_gg(T126, T158))
U40_gggg(T126, T158, T125, T127, notEqF_out_gg(T126, T158)) → U41_gggg(T126, T158, T125, T127, noattackU_in_gg(T125, T127))
U41_gggg(T126, T158, T125, T127, noattackU_out_gg(T125, T127)) → pN13_out_gggg(T126, T158, T125, T127)
noattackU_in_gg(T169, []) → noattackU_out_gg(T169, [])
noattackU_in_gg(T176, .(T177, T178)) → U17_gg(T176, T177, T178, pV_in_ggaag(T176, T177, X242, X243, T178))
U17_gg(T176, T177, T178, pV_out_ggaag(T176, T177, X242, X243, T178)) → noattackU_out_gg(T176, .(T177, T178))
pV_in_ggaag(T176, T177, X242, X243, T178) → U42_ggaag(T176, T177, X242, X243, T178, notEqF_in_gg(T176, T177))
U42_ggaag(T176, T177, X242, X243, T178, notEqF_out_gg(T176, T177)) → U43_ggaag(T176, T177, X242, X243, T178, pN14_in_gagag(T177, X242, T176, X243, T178))
U43_ggaag(T176, T177, X242, X243, T178, pN14_out_gagag(T177, X242, T176, X243, T178)) → pV_out_ggaag(T176, T177, X242, X243, T178)
pN14_in_gagag(T177, T183, T176, X243, T178) → U44_gagag(T177, T183, T176, X243, T178, addH_in_ga(T177, T183))
U44_gagag(T177, T183, T176, X243, T178, addH_out_ga(T177, T183)) → U45_gagag(T177, T183, T176, X243, T178, pN15_in_ggagg(T176, T183, X243, T177, T178))
addH_in_ga(0, s(s(0))) → addH_out_ga(0, s(s(0)))
addH_in_ga(s(T186), s(X268)) → U6_ga(T186, X268, addH_in_ga(T186, X268))
U45_gagag(T177, T183, T176, X243, T178, pN15_out_ggagg(T176, T183, X243, T177, T178)) → pN14_out_gagag(T177, T183, T176, X243, T178)
U6_ga(T186, X268, addH_out_ga(T186, X268)) → addH_out_ga(s(T186), s(X268))
pN15_in_ggagg(T176, T183, X243, T177, T178) → U46_ggagg(T176, T183, X243, T177, T178, notEqF_in_gg(T176, T183))
U46_ggagg(T176, T183, X243, T177, T178, notEqF_out_gg(T176, T183)) → U47_ggagg(T176, T183, X243, T177, T178, pN16_in_gagg(T176, X243, T177, T178))
U47_ggagg(T176, T183, X243, T177, T178, pN16_out_gagg(T176, X243, T177, T178)) → pN15_out_ggagg(T176, T183, X243, T177, T178)
pN16_in_gagg(T176, T191, T177, T178) → U48_gagg(T176, T191, T177, T178, addH_in_ga(T176, T191))
U48_gagg(T176, T191, T177, T178, addH_out_ga(T176, T191)) → U49_gagg(T176, T191, T177, T178, pN17_in_gggg(T177, T191, T176, T178))
U49_gagg(T176, T191, T177, T178, pN17_out_gggg(T177, T191, T176, T178)) → pN16_out_gagg(T176, T191, T177, T178)
pN17_in_gggg(T177, T191, T176, T178) → U50_gggg(T177, T191, T176, T178, notEqF_in_gg(T177, T191))
U50_gggg(T177, T191, T176, T178, notEqF_out_gg(T177, T191)) → U51_gggg(T177, T191, T176, T178, noattackW_in_gg(T176, T178))
U51_gggg(T177, T191, T176, T178, noattackW_out_gg(T176, T178)) → pN17_out_gggg(T177, T191, T176, T178)
noattackW_in_gg(T202, []) → noattackW_out_gg(T202, [])
noattackW_in_gg(T209, .(T210, T211)) → U18_gg(T209, T210, T211, pX_in_ggaag(T209, T210, X311, X312, T211))
U18_gg(T209, T210, T211, pX_out_ggaag(T209, T210, X311, X312, T211)) → noattackW_out_gg(T209, .(T210, T211))
pX_in_ggaag(T209, T210, X311, X312, T211) → U52_ggaag(T209, T210, X311, X312, T211, notEqF_in_gg(T209, T210))
U52_ggaag(T209, T210, X311, X312, T211, notEqF_out_gg(T209, T210)) → U53_ggaag(T209, T210, X311, X312, T211, pN18_in_gagag(T210, X311, T209, X312, T211))
U53_ggaag(T209, T210, X311, X312, T211, pN18_out_gagag(T210, X311, T209, X312, T211)) → pX_out_ggaag(T209, T210, X311, X312, T211)
pN18_in_gagag(T210, T216, T209, X312, T211) → U54_gagag(T210, T216, T209, X312, T211, addI_in_ga(T210, T216))
U54_gagag(T210, T216, T209, X312, T211, addI_out_ga(T210, T216)) → U55_gagag(T210, T216, T209, X312, T211, pN19_in_ggagg(T209, T216, X312, T210, T211))
addI_in_ga(0, s(s(s(0)))) → addI_out_ga(0, s(s(s(0))))
addI_in_ga(s(T219), s(X337)) → U7_ga(T219, X337, addI_in_ga(T219, X337))
U55_gagag(T210, T216, T209, X312, T211, pN19_out_ggagg(T209, T216, X312, T210, T211)) → pN18_out_gagag(T210, T216, T209, X312, T211)
U7_ga(T219, X337, addI_out_ga(T219, X337)) → addI_out_ga(s(T219), s(X337))
pN19_in_ggagg(T209, T216, X312, T210, T211) → U56_ggagg(T209, T216, X312, T210, T211, notEqF_in_gg(T209, T216))
U56_ggagg(T209, T216, X312, T210, T211, notEqF_out_gg(T209, T216)) → U57_ggagg(T209, T216, X312, T210, T211, pN20_in_gagg(T209, X312, T210, T211))
U57_ggagg(T209, T216, X312, T210, T211, pN20_out_gagg(T209, X312, T210, T211)) → pN19_out_ggagg(T209, T216, X312, T210, T211)
pN20_in_gagg(T209, T224, T210, T211) → U58_gagg(T209, T224, T210, T211, addI_in_ga(T209, T224))
U58_gagg(T209, T224, T210, T211, addI_out_ga(T209, T224)) → U59_gagg(T209, T224, T210, T211, pN21_in_gggg(T210, T224, T209, T211))
U59_gagg(T209, T224, T210, T211, pN21_out_gggg(T210, T224, T209, T211)) → pN20_out_gagg(T209, T224, T210, T211)
pN21_in_gggg(T210, T224, T209, T211) → U60_gggg(T210, T224, T209, T211, notEqF_in_gg(T210, T224))
U60_gggg(T210, T224, T209, T211, notEqF_out_gg(T210, T224)) → U61_gggg(T210, T224, T209, T211, noattackY_in_gg(T209, T211))
U61_gggg(T210, T224, T209, T211, noattackY_out_gg(T209, T211)) → pN21_out_gggg(T210, T224, T209, T211)
noattackY_in_gg(T235, []) → noattackY_out_gg(T235, [])
noattackY_in_gg(T242, .(T243, T244)) → U19_gg(T242, T243, T244, pZ_in_ggaag(T242, T243, X380, X381, T244))
U19_gg(T242, T243, T244, pZ_out_ggaag(T242, T243, X380, X381, T244)) → noattackY_out_gg(T242, .(T243, T244))
pZ_in_ggaag(T242, T243, X380, X381, T244) → U62_ggaag(T242, T243, X380, X381, T244, notEqF_in_gg(T242, T243))
U62_ggaag(T242, T243, X380, X381, T244, notEqF_out_gg(T242, T243)) → U63_ggaag(T242, T243, X380, X381, T244, pN22_in_gagag(T243, X380, T242, X381, T244))
U63_ggaag(T242, T243, X380, X381, T244, pN22_out_gagag(T243, X380, T242, X381, T244)) → pZ_out_ggaag(T242, T243, X380, X381, T244)
pN22_in_gagag(T243, T249, T242, X381, T244) → U64_gagag(T243, T249, T242, X381, T244, addJ_in_ga(T243, T249))
U64_gagag(T243, T249, T242, X381, T244, addJ_out_ga(T243, T249)) → U65_gagag(T243, T249, T242, X381, T244, pN23_in_ggagg(T242, T249, X381, T243, T244))
addJ_in_ga(0, s(s(s(s(0))))) → addJ_out_ga(0, s(s(s(s(0)))))
addJ_in_ga(s(T252), s(X406)) → U8_ga(T252, X406, addJ_in_ga(T252, X406))
U65_gagag(T243, T249, T242, X381, T244, pN23_out_ggagg(T242, T249, X381, T243, T244)) → pN22_out_gagag(T243, T249, T242, X381, T244)
U8_ga(T252, X406, addJ_out_ga(T252, X406)) → addJ_out_ga(s(T252), s(X406))
pN23_in_ggagg(T242, T249, X381, T243, T244) → U66_ggagg(T242, T249, X381, T243, T244, notEqF_in_gg(T242, T249))
U66_ggagg(T242, T249, X381, T243, T244, notEqF_out_gg(T242, T249)) → U67_ggagg(T242, T249, X381, T243, T244, pN24_in_gagg(T242, X381, T243, T244))
U67_ggagg(T242, T249, X381, T243, T244, pN24_out_gagg(T242, X381, T243, T244)) → pN23_out_ggagg(T242, T249, X381, T243, T244)
pN24_in_gagg(T242, T257, T243, T244) → U68_gagg(T242, T257, T243, T244, addJ_in_ga(T242, T257))
U68_gagg(T242, T257, T243, T244, addJ_out_ga(T242, T257)) → U69_gagg(T242, T257, T243, T244, pN25_in_gggg(T243, T257, T242, T244))
U69_gagg(T242, T257, T243, T244, pN25_out_gggg(T243, T257, T242, T244)) → pN24_out_gagg(T242, T257, T243, T244)
pN25_in_gggg(T243, T257, T242, T244) → U70_gggg(T243, T257, T242, T244, notEqF_in_gg(T243, T257))
U70_gggg(T243, T257, T242, T244, notEqF_out_gg(T243, T257)) → U71_gggg(T243, T257, T242, T244, noattackN1_in_gg(T242, T244))
U71_gggg(T243, T257, T242, T244, noattackN1_out_gg(T242, T244)) → pN25_out_gggg(T243, T257, T242, T244)
noattackN1_in_gg(T268, []) → noattackN1_out_gg(T268, [])
noattackN1_in_gg(T275, .(T276, T277)) → U20_gg(T275, T276, T277, pN2_in_ggaag(T275, T276, X449, X450, T277))
U20_gg(T275, T276, T277, pN2_out_ggaag(T275, T276, X449, X450, T277)) → noattackN1_out_gg(T275, .(T276, T277))
pN2_in_ggaag(T275, T276, X449, X450, T277) → U72_ggaag(T275, T276, X449, X450, T277, notEqF_in_gg(T275, T276))
U72_ggaag(T275, T276, X449, X450, T277, notEqF_out_gg(T275, T276)) → U73_ggaag(T275, T276, X449, X450, T277, pN26_in_gagag(T276, X449, T275, X450, T277))
U73_ggaag(T275, T276, X449, X450, T277, pN26_out_gagag(T276, X449, T275, X450, T277)) → pN2_out_ggaag(T275, T276, X449, X450, T277)
pN26_in_gagag(T276, T282, T275, X450, T277) → U74_gagag(T276, T282, T275, X450, T277, addK_in_ga(T276, T282))
U74_gagag(T276, T282, T275, X450, T277, addK_out_ga(T276, T282)) → U75_gagag(T276, T282, T275, X450, T277, pN27_in_ggagg(T275, T282, X450, T276, T277))
addK_in_ga(0, s(s(s(s(s(0)))))) → addK_out_ga(0, s(s(s(s(s(0))))))
addK_in_ga(s(T285), s(X475)) → U9_ga(T285, X475, addK_in_ga(T285, X475))
U75_gagag(T276, T282, T275, X450, T277, pN27_out_ggagg(T275, T282, X450, T276, T277)) → pN26_out_gagag(T276, T282, T275, X450, T277)
U9_ga(T285, X475, addK_out_ga(T285, X475)) → addK_out_ga(s(T285), s(X475))
pN27_in_ggagg(T275, T282, X450, T276, T277) → U76_ggagg(T275, T282, X450, T276, T277, notEqF_in_gg(T275, T282))
U76_ggagg(T275, T282, X450, T276, T277, notEqF_out_gg(T275, T282)) → U77_ggagg(T275, T282, X450, T276, T277, pN28_in_gagg(T275, X450, T276, T277))
U77_ggagg(T275, T282, X450, T276, T277, pN28_out_gagg(T275, X450, T276, T277)) → pN27_out_ggagg(T275, T282, X450, T276, T277)
pN28_in_gagg(T275, T290, T276, T277) → U78_gagg(T275, T290, T276, T277, addK_in_ga(T275, T290))
U78_gagg(T275, T290, T276, T277, addK_out_ga(T275, T290)) → U79_gagg(T275, T290, T276, T277, pN29_in_gggg(T276, T290, T275, T277))
U79_gagg(T275, T290, T276, T277, pN29_out_gggg(T276, T290, T275, T277)) → pN28_out_gagg(T275, T290, T276, T277)
pN29_in_gggg(T276, T290, T275, T277) → U80_gggg(T276, T290, T275, T277, notEqF_in_gg(T276, T290))
U80_gggg(T276, T290, T275, T277, notEqF_out_gg(T276, T290)) → U81_gggg(T276, T290, T275, T277, noattackN3_in_gg(T275, T277))
U81_gggg(T276, T290, T275, T277, noattackN3_out_gg(T275, T277)) → pN29_out_gggg(T276, T290, T275, T277)
noattackN3_in_gg(T301, []) → noattackN3_out_gg(T301, [])
noattackN3_in_gg(T308, .(T309, T310)) → U21_gg(T308, T309, T310, pN4_in_ggaag(T308, T309, X518, X519, T310))
U21_gg(T308, T309, T310, pN4_out_ggaag(T308, T309, X518, X519, T310)) → noattackN3_out_gg(T308, .(T309, T310))
pN4_in_ggaag(T308, T309, X518, X519, T310) → U82_ggaag(T308, T309, X518, X519, T310, notEqF_in_gg(T308, T309))
U82_ggaag(T308, T309, X518, X519, T310, notEqF_out_gg(T308, T309)) → U83_ggaag(T308, T309, X518, X519, T310, pN30_in_gagag(T309, X518, T308, X519, T310))
U83_ggaag(T308, T309, X518, X519, T310, pN30_out_gagag(T309, X518, T308, X519, T310)) → pN4_out_ggaag(T308, T309, X518, X519, T310)
pN30_in_gagag(T309, T315, T308, X519, T310) → U84_gagag(T309, T315, T308, X519, T310, addL_in_ga(T309, T315))
U84_gagag(T309, T315, T308, X519, T310, addL_out_ga(T309, T315)) → U85_gagag(T309, T315, T308, X519, T310, pN31_in_ggagg(T308, T315, X519, T309, T310))
addL_in_ga(0, s(s(s(s(s(s(0))))))) → addL_out_ga(0, s(s(s(s(s(s(0)))))))
addL_in_ga(s(T318), s(X544)) → U10_ga(T318, X544, addL_in_ga(T318, X544))
U85_gagag(T309, T315, T308, X519, T310, pN31_out_ggagg(T308, T315, X519, T309, T310)) → pN30_out_gagag(T309, T315, T308, X519, T310)
U10_ga(T318, X544, addL_out_ga(T318, X544)) → addL_out_ga(s(T318), s(X544))
pN31_in_ggagg(T308, T315, X519, T309, T310) → U86_ggagg(T308, T315, X519, T309, T310, notEqF_in_gg(T308, T315))
U86_ggagg(T308, T315, X519, T309, T310, notEqF_out_gg(T308, T315)) → U87_ggagg(T308, T315, X519, T309, T310, pN32_in_gagg(T308, X519, T309, T310))
U87_ggagg(T308, T315, X519, T309, T310, pN32_out_gagg(T308, X519, T309, T310)) → pN31_out_ggagg(T308, T315, X519, T309, T310)
pN32_in_gagg(T308, T323, T309, T310) → U88_gagg(T308, T323, T309, T310, addL_in_ga(T308, T323))
U88_gagg(T308, T323, T309, T310, addL_out_ga(T308, T323)) → U89_gagg(T308, T323, T309, T310, pN33_in_gggg(T309, T323, T308, T310))
U89_gagg(T308, T323, T309, T310, pN33_out_gggg(T309, T323, T308, T310)) → pN32_out_gagg(T308, T323, T309, T310)
pN33_in_gggg(T309, T323, T308, T310) → U90_gggg(T309, T323, T308, T310, notEqF_in_gg(T309, T323))
U90_gggg(T309, T323, T308, T310, notEqF_out_gg(T309, T323)) → U91_gggg(T309, T323, T308, T310, noattackN5_in_gg(T308, T310))
U91_gggg(T309, T323, T308, T310, noattackN5_out_gg(T308, T310)) → pN33_out_gggg(T309, T323, T308, T310)
noattackN5_in_gg(T334, []) → noattackN5_out_gg(T334, [])
noattackN5_in_gg(T341, .(T342, T343)) → U22_gg(T341, T342, T343, pN6_in_ggaagg(T341, T342, X587, X588, T343, s(s(s(s(s(s(s(0)))))))))
U22_gg(T341, T342, T343, pN6_out_ggaagg(T341, T342, X587, X588, T343, s(s(s(s(s(s(s(0))))))))) → noattackN5_out_gg(T341, .(T342, T343))
pN6_in_ggaagg(T341, T342, X587, X588, T343, T346) → U92_ggaagg(T341, T342, X587, X588, T343, T346, notEqF_in_gg(T341, T342))
U92_ggaagg(T341, T342, X587, X588, T343, T346, notEqF_out_gg(T341, T342)) → U93_ggaagg(T341, T342, X587, X588, T343, T346, pN34_in_gagagg(T342, X587, T341, X588, T343, T346))
U93_ggaagg(T341, T342, X587, X588, T343, T346, pN34_out_gagagg(T342, X587, T341, X588, T343, T346)) → pN6_out_ggaagg(T341, T342, X587, X588, T343, T346)
pN34_in_gagagg(T342, T351, T341, X588, T343, T346) → U94_gagagg(T342, T351, T341, X588, T343, T346, addM_in_ga(T342, T351))
U94_gagagg(T342, T351, T341, X588, T343, T346, addM_out_ga(T342, T351)) → U95_gagagg(T342, T351, T341, X588, T343, T346, pN35_in_ggaggg(T341, T351, X588, T342, T343, T346))
addM_in_ga(0, s(s(s(s(s(s(s(0)))))))) → addM_out_ga(0, s(s(s(s(s(s(s(0))))))))
addM_in_ga(s(T354), s(X615)) → U11_ga(T354, X615, addM_in_ga(T354, X615))
U95_gagagg(T342, T351, T341, X588, T343, T346, pN35_out_ggaggg(T341, T351, X588, T342, T343, T346)) → pN34_out_gagagg(T342, T351, T341, X588, T343, T346)
U11_ga(T354, X615, addM_out_ga(T354, X615)) → addM_out_ga(s(T354), s(X615))
pN35_in_ggaggg(T341, T351, X588, T342, T343, T346) → U96_ggaggg(T341, T351, X588, T342, T343, T346, notEqF_in_gg(T341, T351))
U96_ggaggg(T341, T351, X588, T342, T343, T346, notEqF_out_gg(T341, T351)) → U97_ggaggg(T341, T351, X588, T342, T343, T346, pN36_in_gaggg(T341, X588, T342, T343, T346))
U97_ggaggg(T341, T351, X588, T342, T343, T346, pN36_out_gaggg(T341, X588, T342, T343, T346)) → pN35_out_ggaggg(T341, T351, X588, T342, T343, T346)
pN36_in_gaggg(T341, T359, T342, T343, T346) → U98_gaggg(T341, T359, T342, T343, T346, addM_in_ga(T341, T359))
U98_gaggg(T341, T359, T342, T343, T346, addM_out_ga(T341, T359)) → U99_gaggg(T341, T359, T342, T343, T346, pN37_in_ggggg(T342, T359, T341, T343, T346))
U99_gaggg(T341, T359, T342, T343, T346, pN37_out_ggggg(T342, T359, T341, T343, T346)) → pN36_out_gaggg(T341, T359, T342, T343, T346)
pN37_in_ggggg(T342, T359, T341, T343, T346) → U100_ggggg(T342, T359, T341, T343, T346, notEqF_in_gg(T342, T359))
U100_ggggg(T342, T359, T341, T343, T346, notEqF_out_gg(T342, T359)) → U101_ggggg(T342, T359, T341, T343, T346, noattackN7_in_ggg(T341, T343, T346))
U101_ggggg(T342, T359, T341, T343, T346, noattackN7_out_ggg(T341, T343, T346)) → pN37_out_ggggg(T342, T359, T341, T343, T346)
noattackN7_in_ggg(T376, [], T377) → noattackN7_out_ggg(T376, [], T377)
noattackN7_in_ggg(T386, .(T387, T388), T389) → U23_ggg(T386, T387, T388, T389, pN8_in_gggaag(T386, T387, T389, X658, X659, T388))
U23_ggg(T386, T387, T388, T389, pN8_out_gggaag(T386, T387, T389, X658, X659, T388)) → noattackN7_out_ggg(T386, .(T387, T388), T389)
pN8_in_gggaag(T386, T387, T389, X658, X659, T388) → U102_gggaag(T386, T387, T389, X658, X659, T388, notEqF_in_gg(T386, T387))
U102_gggaag(T386, T387, T389, X658, X659, T388, notEqF_out_gg(T386, T387)) → U103_gggaag(T386, T387, T389, X658, X659, T388, pN38_in_ggagag(T387, T389, X658, T386, X659, T388))
U103_gggaag(T386, T387, T389, X658, X659, T388, pN38_out_ggagag(T387, T389, X658, T386, X659, T388)) → pN8_out_gggaag(T386, T387, T389, X658, X659, T388)
pN38_in_ggagag(T387, T389, T396, T386, X659, T388) → U104_ggagag(T387, T389, T396, T386, X659, T388, addN_in_gga(T387, T389, T396))
U104_ggagag(T387, T389, T396, T386, X659, T388, addN_out_gga(T387, T389, T396)) → U105_ggagag(T387, T389, T396, T386, X659, T388, pN39_in_gggagg(T386, T396, T389, X659, T387, T388))
addN_in_gga(0, T403, s(T403)) → addN_out_gga(0, T403, s(T403))
addN_in_gga(s(T408), T409, s(X684)) → U12_gga(T408, T409, X684, addN_in_gga(T408, T409, X684))
U105_ggagag(T387, T389, T396, T386, X659, T388, pN39_out_gggagg(T386, T396, T389, X659, T387, T388)) → pN38_out_ggagag(T387, T389, T396, T386, X659, T388)
U12_gga(T408, T409, X684, addN_out_gga(T408, T409, X684)) → addN_out_gga(s(T408), T409, s(X684))
pN39_in_gggagg(T386, T396, T389, X659, T387, T388) → U106_gggagg(T386, T396, T389, X659, T387, T388, notEqF_in_gg(T386, T396))
U106_gggagg(T386, T396, T389, X659, T387, T388, notEqF_out_gg(T386, T396)) → U107_gggagg(T386, T396, T389, X659, T387, T388, pN40_in_ggagg(T386, T389, X659, T387, T388))
U107_gggagg(T386, T396, T389, X659, T387, T388, pN40_out_ggagg(T386, T389, X659, T387, T388)) → pN39_out_gggagg(T386, T396, T389, X659, T387, T388)
pN40_in_ggagg(T386, T389, T418, T387, T388) → U108_ggagg(T386, T389, T418, T387, T388, addN_in_gga(T386, T389, T418))
U108_ggagg(T386, T389, T418, T387, T388, addN_out_gga(T386, T389, T418)) → U109_ggagg(T386, T389, T418, T387, T388, pN37_in_ggggg(T387, T418, T386, T388, s(T389)))
U109_ggagg(T386, T389, T418, T387, T388, pN37_out_ggggg(T387, T418, T386, T388, s(T389))) → pN40_out_ggagg(T386, T389, T418, T387, T388)
U30_GG(T108, T109, noattackR_out_gg(T108, T109)) → SAFET_IN_G(T109)
SAFET_IN_G(.(T427, T428)) → PQ_IN_GG(T427, T428)
PQ_IN_GG(T108, T109) → U30_GG(T108, T109, noattackR_in_gg(T108, T109))
noattackR_in_gg(T118, []) → noattackR_out_gg(T118, [])
noattackR_in_gg(T125, .(T126, T127)) → U15_gg(T125, T126, T127, pS_in_ggaag(T125, T126, T127))
U15_gg(T125, T126, T127, pS_out_ggaag(T125, T126, X155, X156, T127)) → noattackR_out_gg(T125, .(T126, T127))
pS_in_ggaag(T125, T126, T127) → U32_ggaag(T125, T126, T127, notEqF_in_gg(T125, T126))
U32_ggaag(T125, T126, T127, notEqF_out_gg(T125, T126)) → U33_ggaag(T125, T126, T127, pN10_in_gagag(T126, T125, T127))
notEqF_in_gg(0, s(T136)) → notEqF_out_gg(0, s(T136))
notEqF_in_gg(s(T141), 0) → notEqF_out_gg(s(T141), 0)
notEqF_in_gg(s(T146), s(T147)) → U4_gg(T146, T147, notEqF_in_gg(T146, T147))
U33_ggaag(T125, T126, T127, pN10_out_gagag(T126, X155, T125, X156, T127)) → pS_out_ggaag(T125, T126, X155, X156, T127)
U4_gg(T146, T147, notEqF_out_gg(T146, T147)) → notEqF_out_gg(s(T146), s(T147))
pN10_in_gagag(T126, T125, T127) → U34_gagag(T126, T125, T127, addG_in_ga(T126))
U34_gagag(T126, T125, T127, addG_out_ga(T126, T150)) → U35_gagag(T126, T150, T125, T127, pN11_in_ggagg(T125, T150, T126, T127))
addG_in_ga(0) → addG_out_ga(0, s(0))
addG_in_ga(s(T153)) → U5_ga(T153, addG_in_ga(T153))
U35_gagag(T126, T150, T125, T127, pN11_out_ggagg(T125, T150, X156, T126, T127)) → pN10_out_gagag(T126, T150, T125, X156, T127)
U5_ga(T153, addG_out_ga(T153, X199)) → addG_out_ga(s(T153), s(X199))
pN11_in_ggagg(T125, T150, T126, T127) → U36_ggagg(T125, T150, T126, T127, notEqF_in_gg(T125, T150))
U36_ggagg(T125, T150, T126, T127, notEqF_out_gg(T125, T150)) → U37_ggagg(T125, T150, T126, T127, pN12_in_gagg(T125, T126, T127))
U37_ggagg(T125, T150, T126, T127, pN12_out_gagg(T125, X156, T126, T127)) → pN11_out_ggagg(T125, T150, X156, T126, T127)
pN12_in_gagg(T125, T126, T127) → U38_gagg(T125, T126, T127, addG_in_ga(T125))
U38_gagg(T125, T126, T127, addG_out_ga(T125, T158)) → U39_gagg(T125, T158, T126, T127, pN13_in_gggg(T126, T158, T125, T127))
U39_gagg(T125, T158, T126, T127, pN13_out_gggg(T126, T158, T125, T127)) → pN12_out_gagg(T125, T158, T126, T127)
pN13_in_gggg(T126, T158, T125, T127) → U40_gggg(T126, T158, T125, T127, notEqF_in_gg(T126, T158))
U40_gggg(T126, T158, T125, T127, notEqF_out_gg(T126, T158)) → U41_gggg(T126, T158, T125, T127, noattackU_in_gg(T125, T127))
U41_gggg(T126, T158, T125, T127, noattackU_out_gg(T125, T127)) → pN13_out_gggg(T126, T158, T125, T127)
noattackU_in_gg(T169, []) → noattackU_out_gg(T169, [])
noattackU_in_gg(T176, .(T177, T178)) → U17_gg(T176, T177, T178, pV_in_ggaag(T176, T177, T178))
U17_gg(T176, T177, T178, pV_out_ggaag(T176, T177, X242, X243, T178)) → noattackU_out_gg(T176, .(T177, T178))
pV_in_ggaag(T176, T177, T178) → U42_ggaag(T176, T177, T178, notEqF_in_gg(T176, T177))
U42_ggaag(T176, T177, T178, notEqF_out_gg(T176, T177)) → U43_ggaag(T176, T177, T178, pN14_in_gagag(T177, T176, T178))
U43_ggaag(T176, T177, T178, pN14_out_gagag(T177, X242, T176, X243, T178)) → pV_out_ggaag(T176, T177, X242, X243, T178)
pN14_in_gagag(T177, T176, T178) → U44_gagag(T177, T176, T178, addH_in_ga(T177))
U44_gagag(T177, T176, T178, addH_out_ga(T177, T183)) → U45_gagag(T177, T183, T176, T178, pN15_in_ggagg(T176, T183, T177, T178))
addH_in_ga(0) → addH_out_ga(0, s(s(0)))
addH_in_ga(s(T186)) → U6_ga(T186, addH_in_ga(T186))
U45_gagag(T177, T183, T176, T178, pN15_out_ggagg(T176, T183, X243, T177, T178)) → pN14_out_gagag(T177, T183, T176, X243, T178)
U6_ga(T186, addH_out_ga(T186, X268)) → addH_out_ga(s(T186), s(X268))
pN15_in_ggagg(T176, T183, T177, T178) → U46_ggagg(T176, T183, T177, T178, notEqF_in_gg(T176, T183))
U46_ggagg(T176, T183, T177, T178, notEqF_out_gg(T176, T183)) → U47_ggagg(T176, T183, T177, T178, pN16_in_gagg(T176, T177, T178))
U47_ggagg(T176, T183, T177, T178, pN16_out_gagg(T176, X243, T177, T178)) → pN15_out_ggagg(T176, T183, X243, T177, T178)
pN16_in_gagg(T176, T177, T178) → U48_gagg(T176, T177, T178, addH_in_ga(T176))
U48_gagg(T176, T177, T178, addH_out_ga(T176, T191)) → U49_gagg(T176, T191, T177, T178, pN17_in_gggg(T177, T191, T176, T178))
U49_gagg(T176, T191, T177, T178, pN17_out_gggg(T177, T191, T176, T178)) → pN16_out_gagg(T176, T191, T177, T178)
pN17_in_gggg(T177, T191, T176, T178) → U50_gggg(T177, T191, T176, T178, notEqF_in_gg(T177, T191))
U50_gggg(T177, T191, T176, T178, notEqF_out_gg(T177, T191)) → U51_gggg(T177, T191, T176, T178, noattackW_in_gg(T176, T178))
U51_gggg(T177, T191, T176, T178, noattackW_out_gg(T176, T178)) → pN17_out_gggg(T177, T191, T176, T178)
noattackW_in_gg(T202, []) → noattackW_out_gg(T202, [])
noattackW_in_gg(T209, .(T210, T211)) → U18_gg(T209, T210, T211, pX_in_ggaag(T209, T210, T211))
U18_gg(T209, T210, T211, pX_out_ggaag(T209, T210, X311, X312, T211)) → noattackW_out_gg(T209, .(T210, T211))
pX_in_ggaag(T209, T210, T211) → U52_ggaag(T209, T210, T211, notEqF_in_gg(T209, T210))
U52_ggaag(T209, T210, T211, notEqF_out_gg(T209, T210)) → U53_ggaag(T209, T210, T211, pN18_in_gagag(T210, T209, T211))
U53_ggaag(T209, T210, T211, pN18_out_gagag(T210, X311, T209, X312, T211)) → pX_out_ggaag(T209, T210, X311, X312, T211)
pN18_in_gagag(T210, T209, T211) → U54_gagag(T210, T209, T211, addI_in_ga(T210))
U54_gagag(T210, T209, T211, addI_out_ga(T210, T216)) → U55_gagag(T210, T216, T209, T211, pN19_in_ggagg(T209, T216, T210, T211))
addI_in_ga(0) → addI_out_ga(0, s(s(s(0))))
addI_in_ga(s(T219)) → U7_ga(T219, addI_in_ga(T219))
U55_gagag(T210, T216, T209, T211, pN19_out_ggagg(T209, T216, X312, T210, T211)) → pN18_out_gagag(T210, T216, T209, X312, T211)
U7_ga(T219, addI_out_ga(T219, X337)) → addI_out_ga(s(T219), s(X337))
pN19_in_ggagg(T209, T216, T210, T211) → U56_ggagg(T209, T216, T210, T211, notEqF_in_gg(T209, T216))
U56_ggagg(T209, T216, T210, T211, notEqF_out_gg(T209, T216)) → U57_ggagg(T209, T216, T210, T211, pN20_in_gagg(T209, T210, T211))
U57_ggagg(T209, T216, T210, T211, pN20_out_gagg(T209, X312, T210, T211)) → pN19_out_ggagg(T209, T216, X312, T210, T211)
pN20_in_gagg(T209, T210, T211) → U58_gagg(T209, T210, T211, addI_in_ga(T209))
U58_gagg(T209, T210, T211, addI_out_ga(T209, T224)) → U59_gagg(T209, T224, T210, T211, pN21_in_gggg(T210, T224, T209, T211))
U59_gagg(T209, T224, T210, T211, pN21_out_gggg(T210, T224, T209, T211)) → pN20_out_gagg(T209, T224, T210, T211)
pN21_in_gggg(T210, T224, T209, T211) → U60_gggg(T210, T224, T209, T211, notEqF_in_gg(T210, T224))
U60_gggg(T210, T224, T209, T211, notEqF_out_gg(T210, T224)) → U61_gggg(T210, T224, T209, T211, noattackY_in_gg(T209, T211))
U61_gggg(T210, T224, T209, T211, noattackY_out_gg(T209, T211)) → pN21_out_gggg(T210, T224, T209, T211)
noattackY_in_gg(T235, []) → noattackY_out_gg(T235, [])
noattackY_in_gg(T242, .(T243, T244)) → U19_gg(T242, T243, T244, pZ_in_ggaag(T242, T243, T244))
U19_gg(T242, T243, T244, pZ_out_ggaag(T242, T243, X380, X381, T244)) → noattackY_out_gg(T242, .(T243, T244))
pZ_in_ggaag(T242, T243, T244) → U62_ggaag(T242, T243, T244, notEqF_in_gg(T242, T243))
U62_ggaag(T242, T243, T244, notEqF_out_gg(T242, T243)) → U63_ggaag(T242, T243, T244, pN22_in_gagag(T243, T242, T244))
U63_ggaag(T242, T243, T244, pN22_out_gagag(T243, X380, T242, X381, T244)) → pZ_out_ggaag(T242, T243, X380, X381, T244)
pN22_in_gagag(T243, T242, T244) → U64_gagag(T243, T242, T244, addJ_in_ga(T243))
U64_gagag(T243, T242, T244, addJ_out_ga(T243, T249)) → U65_gagag(T243, T249, T242, T244, pN23_in_ggagg(T242, T249, T243, T244))
addJ_in_ga(0) → addJ_out_ga(0, s(s(s(s(0)))))
addJ_in_ga(s(T252)) → U8_ga(T252, addJ_in_ga(T252))
U65_gagag(T243, T249, T242, T244, pN23_out_ggagg(T242, T249, X381, T243, T244)) → pN22_out_gagag(T243, T249, T242, X381, T244)
U8_ga(T252, addJ_out_ga(T252, X406)) → addJ_out_ga(s(T252), s(X406))
pN23_in_ggagg(T242, T249, T243, T244) → U66_ggagg(T242, T249, T243, T244, notEqF_in_gg(T242, T249))
U66_ggagg(T242, T249, T243, T244, notEqF_out_gg(T242, T249)) → U67_ggagg(T242, T249, T243, T244, pN24_in_gagg(T242, T243, T244))
U67_ggagg(T242, T249, T243, T244, pN24_out_gagg(T242, X381, T243, T244)) → pN23_out_ggagg(T242, T249, X381, T243, T244)
pN24_in_gagg(T242, T243, T244) → U68_gagg(T242, T243, T244, addJ_in_ga(T242))
U68_gagg(T242, T243, T244, addJ_out_ga(T242, T257)) → U69_gagg(T242, T257, T243, T244, pN25_in_gggg(T243, T257, T242, T244))
U69_gagg(T242, T257, T243, T244, pN25_out_gggg(T243, T257, T242, T244)) → pN24_out_gagg(T242, T257, T243, T244)
pN25_in_gggg(T243, T257, T242, T244) → U70_gggg(T243, T257, T242, T244, notEqF_in_gg(T243, T257))
U70_gggg(T243, T257, T242, T244, notEqF_out_gg(T243, T257)) → U71_gggg(T243, T257, T242, T244, noattackN1_in_gg(T242, T244))
U71_gggg(T243, T257, T242, T244, noattackN1_out_gg(T242, T244)) → pN25_out_gggg(T243, T257, T242, T244)
noattackN1_in_gg(T268, []) → noattackN1_out_gg(T268, [])
noattackN1_in_gg(T275, .(T276, T277)) → U20_gg(T275, T276, T277, pN2_in_ggaag(T275, T276, T277))
U20_gg(T275, T276, T277, pN2_out_ggaag(T275, T276, X449, X450, T277)) → noattackN1_out_gg(T275, .(T276, T277))
pN2_in_ggaag(T275, T276, T277) → U72_ggaag(T275, T276, T277, notEqF_in_gg(T275, T276))
U72_ggaag(T275, T276, T277, notEqF_out_gg(T275, T276)) → U73_ggaag(T275, T276, T277, pN26_in_gagag(T276, T275, T277))
U73_ggaag(T275, T276, T277, pN26_out_gagag(T276, X449, T275, X450, T277)) → pN2_out_ggaag(T275, T276, X449, X450, T277)
pN26_in_gagag(T276, T275, T277) → U74_gagag(T276, T275, T277, addK_in_ga(T276))
U74_gagag(T276, T275, T277, addK_out_ga(T276, T282)) → U75_gagag(T276, T282, T275, T277, pN27_in_ggagg(T275, T282, T276, T277))
addK_in_ga(0) → addK_out_ga(0, s(s(s(s(s(0))))))
addK_in_ga(s(T285)) → U9_ga(T285, addK_in_ga(T285))
U75_gagag(T276, T282, T275, T277, pN27_out_ggagg(T275, T282, X450, T276, T277)) → pN26_out_gagag(T276, T282, T275, X450, T277)
U9_ga(T285, addK_out_ga(T285, X475)) → addK_out_ga(s(T285), s(X475))
pN27_in_ggagg(T275, T282, T276, T277) → U76_ggagg(T275, T282, T276, T277, notEqF_in_gg(T275, T282))
U76_ggagg(T275, T282, T276, T277, notEqF_out_gg(T275, T282)) → U77_ggagg(T275, T282, T276, T277, pN28_in_gagg(T275, T276, T277))
U77_ggagg(T275, T282, T276, T277, pN28_out_gagg(T275, X450, T276, T277)) → pN27_out_ggagg(T275, T282, X450, T276, T277)
pN28_in_gagg(T275, T276, T277) → U78_gagg(T275, T276, T277, addK_in_ga(T275))
U78_gagg(T275, T276, T277, addK_out_ga(T275, T290)) → U79_gagg(T275, T290, T276, T277, pN29_in_gggg(T276, T290, T275, T277))
U79_gagg(T275, T290, T276, T277, pN29_out_gggg(T276, T290, T275, T277)) → pN28_out_gagg(T275, T290, T276, T277)
pN29_in_gggg(T276, T290, T275, T277) → U80_gggg(T276, T290, T275, T277, notEqF_in_gg(T276, T290))
U80_gggg(T276, T290, T275, T277, notEqF_out_gg(T276, T290)) → U81_gggg(T276, T290, T275, T277, noattackN3_in_gg(T275, T277))
U81_gggg(T276, T290, T275, T277, noattackN3_out_gg(T275, T277)) → pN29_out_gggg(T276, T290, T275, T277)
noattackN3_in_gg(T301, []) → noattackN3_out_gg(T301, [])
noattackN3_in_gg(T308, .(T309, T310)) → U21_gg(T308, T309, T310, pN4_in_ggaag(T308, T309, T310))
U21_gg(T308, T309, T310, pN4_out_ggaag(T308, T309, X518, X519, T310)) → noattackN3_out_gg(T308, .(T309, T310))
pN4_in_ggaag(T308, T309, T310) → U82_ggaag(T308, T309, T310, notEqF_in_gg(T308, T309))
U82_ggaag(T308, T309, T310, notEqF_out_gg(T308, T309)) → U83_ggaag(T308, T309, T310, pN30_in_gagag(T309, T308, T310))
U83_ggaag(T308, T309, T310, pN30_out_gagag(T309, X518, T308, X519, T310)) → pN4_out_ggaag(T308, T309, X518, X519, T310)
pN30_in_gagag(T309, T308, T310) → U84_gagag(T309, T308, T310, addL_in_ga(T309))
U84_gagag(T309, T308, T310, addL_out_ga(T309, T315)) → U85_gagag(T309, T315, T308, T310, pN31_in_ggagg(T308, T315, T309, T310))
addL_in_ga(0) → addL_out_ga(0, s(s(s(s(s(s(0)))))))
addL_in_ga(s(T318)) → U10_ga(T318, addL_in_ga(T318))
U85_gagag(T309, T315, T308, T310, pN31_out_ggagg(T308, T315, X519, T309, T310)) → pN30_out_gagag(T309, T315, T308, X519, T310)
U10_ga(T318, addL_out_ga(T318, X544)) → addL_out_ga(s(T318), s(X544))
pN31_in_ggagg(T308, T315, T309, T310) → U86_ggagg(T308, T315, T309, T310, notEqF_in_gg(T308, T315))
U86_ggagg(T308, T315, T309, T310, notEqF_out_gg(T308, T315)) → U87_ggagg(T308, T315, T309, T310, pN32_in_gagg(T308, T309, T310))
U87_ggagg(T308, T315, T309, T310, pN32_out_gagg(T308, X519, T309, T310)) → pN31_out_ggagg(T308, T315, X519, T309, T310)
pN32_in_gagg(T308, T309, T310) → U88_gagg(T308, T309, T310, addL_in_ga(T308))
U88_gagg(T308, T309, T310, addL_out_ga(T308, T323)) → U89_gagg(T308, T323, T309, T310, pN33_in_gggg(T309, T323, T308, T310))
U89_gagg(T308, T323, T309, T310, pN33_out_gggg(T309, T323, T308, T310)) → pN32_out_gagg(T308, T323, T309, T310)
pN33_in_gggg(T309, T323, T308, T310) → U90_gggg(T309, T323, T308, T310, notEqF_in_gg(T309, T323))
U90_gggg(T309, T323, T308, T310, notEqF_out_gg(T309, T323)) → U91_gggg(T309, T323, T308, T310, noattackN5_in_gg(T308, T310))
U91_gggg(T309, T323, T308, T310, noattackN5_out_gg(T308, T310)) → pN33_out_gggg(T309, T323, T308, T310)
noattackN5_in_gg(T334, []) → noattackN5_out_gg(T334, [])
noattackN5_in_gg(T341, .(T342, T343)) → U22_gg(T341, T342, T343, pN6_in_ggaagg(T341, T342, T343, s(s(s(s(s(s(s(0)))))))))
U22_gg(T341, T342, T343, pN6_out_ggaagg(T341, T342, X587, X588, T343, s(s(s(s(s(s(s(0))))))))) → noattackN5_out_gg(T341, .(T342, T343))
pN6_in_ggaagg(T341, T342, T343, T346) → U92_ggaagg(T341, T342, T343, T346, notEqF_in_gg(T341, T342))
U92_ggaagg(T341, T342, T343, T346, notEqF_out_gg(T341, T342)) → U93_ggaagg(T341, T342, T343, T346, pN34_in_gagagg(T342, T341, T343, T346))
U93_ggaagg(T341, T342, T343, T346, pN34_out_gagagg(T342, X587, T341, X588, T343, T346)) → pN6_out_ggaagg(T341, T342, X587, X588, T343, T346)
pN34_in_gagagg(T342, T341, T343, T346) → U94_gagagg(T342, T341, T343, T346, addM_in_ga(T342))
U94_gagagg(T342, T341, T343, T346, addM_out_ga(T342, T351)) → U95_gagagg(T342, T351, T341, T343, T346, pN35_in_ggaggg(T341, T351, T342, T343, T346))
addM_in_ga(0) → addM_out_ga(0, s(s(s(s(s(s(s(0))))))))
addM_in_ga(s(T354)) → U11_ga(T354, addM_in_ga(T354))
U95_gagagg(T342, T351, T341, T343, T346, pN35_out_ggaggg(T341, T351, X588, T342, T343, T346)) → pN34_out_gagagg(T342, T351, T341, X588, T343, T346)
U11_ga(T354, addM_out_ga(T354, X615)) → addM_out_ga(s(T354), s(X615))
pN35_in_ggaggg(T341, T351, T342, T343, T346) → U96_ggaggg(T341, T351, T342, T343, T346, notEqF_in_gg(T341, T351))
U96_ggaggg(T341, T351, T342, T343, T346, notEqF_out_gg(T341, T351)) → U97_ggaggg(T341, T351, T342, T343, T346, pN36_in_gaggg(T341, T342, T343, T346))
U97_ggaggg(T341, T351, T342, T343, T346, pN36_out_gaggg(T341, X588, T342, T343, T346)) → pN35_out_ggaggg(T341, T351, X588, T342, T343, T346)
pN36_in_gaggg(T341, T342, T343, T346) → U98_gaggg(T341, T342, T343, T346, addM_in_ga(T341))
U98_gaggg(T341, T342, T343, T346, addM_out_ga(T341, T359)) → U99_gaggg(T341, T359, T342, T343, T346, pN37_in_ggggg(T342, T359, T341, T343, T346))
U99_gaggg(T341, T359, T342, T343, T346, pN37_out_ggggg(T342, T359, T341, T343, T346)) → pN36_out_gaggg(T341, T359, T342, T343, T346)
pN37_in_ggggg(T342, T359, T341, T343, T346) → U100_ggggg(T342, T359, T341, T343, T346, notEqF_in_gg(T342, T359))
U100_ggggg(T342, T359, T341, T343, T346, notEqF_out_gg(T342, T359)) → U101_ggggg(T342, T359, T341, T343, T346, noattackN7_in_ggg(T341, T343, T346))
U101_ggggg(T342, T359, T341, T343, T346, noattackN7_out_ggg(T341, T343, T346)) → pN37_out_ggggg(T342, T359, T341, T343, T346)
noattackN7_in_ggg(T376, [], T377) → noattackN7_out_ggg(T376, [], T377)
noattackN7_in_ggg(T386, .(T387, T388), T389) → U23_ggg(T386, T387, T388, T389, pN8_in_gggaag(T386, T387, T389, T388))
U23_ggg(T386, T387, T388, T389, pN8_out_gggaag(T386, T387, T389, X658, X659, T388)) → noattackN7_out_ggg(T386, .(T387, T388), T389)
pN8_in_gggaag(T386, T387, T389, T388) → U102_gggaag(T386, T387, T389, T388, notEqF_in_gg(T386, T387))
U102_gggaag(T386, T387, T389, T388, notEqF_out_gg(T386, T387)) → U103_gggaag(T386, T387, T389, T388, pN38_in_ggagag(T387, T389, T386, T388))
U103_gggaag(T386, T387, T389, T388, pN38_out_ggagag(T387, T389, X658, T386, X659, T388)) → pN8_out_gggaag(T386, T387, T389, X658, X659, T388)
pN38_in_ggagag(T387, T389, T386, T388) → U104_ggagag(T387, T389, T386, T388, addN_in_gga(T387, T389))
U104_ggagag(T387, T389, T386, T388, addN_out_gga(T387, T389, T396)) → U105_ggagag(T387, T389, T396, T386, T388, pN39_in_gggagg(T386, T396, T389, T387, T388))
addN_in_gga(0, T403) → addN_out_gga(0, T403, s(T403))
addN_in_gga(s(T408), T409) → U12_gga(T408, T409, addN_in_gga(T408, T409))
U105_ggagag(T387, T389, T396, T386, T388, pN39_out_gggagg(T386, T396, T389, X659, T387, T388)) → pN38_out_ggagag(T387, T389, T396, T386, X659, T388)
U12_gga(T408, T409, addN_out_gga(T408, T409, X684)) → addN_out_gga(s(T408), T409, s(X684))
pN39_in_gggagg(T386, T396, T389, T387, T388) → U106_gggagg(T386, T396, T389, T387, T388, notEqF_in_gg(T386, T396))
U106_gggagg(T386, T396, T389, T387, T388, notEqF_out_gg(T386, T396)) → U107_gggagg(T386, T396, T389, T387, T388, pN40_in_ggagg(T386, T389, T387, T388))
U107_gggagg(T386, T396, T389, T387, T388, pN40_out_ggagg(T386, T389, X659, T387, T388)) → pN39_out_gggagg(T386, T396, T389, X659, T387, T388)
pN40_in_ggagg(T386, T389, T387, T388) → U108_ggagg(T386, T389, T387, T388, addN_in_gga(T386, T389))
U108_ggagg(T386, T389, T387, T388, addN_out_gga(T386, T389, T418)) → U109_ggagg(T386, T389, T418, T387, T388, pN37_in_ggggg(T387, T418, T386, T388, s(T389)))
U109_ggagg(T386, T389, T418, T387, T388, pN37_out_ggggg(T387, T418, T386, T388, s(T389))) → pN40_out_ggagg(T386, T389, T418, T387, T388)
noattackR_in_gg(x0, x1)
U15_gg(x0, x1, x2, x3)
pS_in_ggaag(x0, x1, x2)
U32_ggaag(x0, x1, x2, x3)
notEqF_in_gg(x0, x1)
U33_ggaag(x0, x1, x2, x3)
U4_gg(x0, x1, x2)
pN10_in_gagag(x0, x1, x2)
U34_gagag(x0, x1, x2, x3)
addG_in_ga(x0)
U35_gagag(x0, x1, x2, x3, x4)
U5_ga(x0, x1)
pN11_in_ggagg(x0, x1, x2, x3)
U36_ggagg(x0, x1, x2, x3, x4)
U37_ggagg(x0, x1, x2, x3, x4)
pN12_in_gagg(x0, x1, x2)
U38_gagg(x0, x1, x2, x3)
U39_gagg(x0, x1, x2, x3, x4)
pN13_in_gggg(x0, x1, x2, x3)
U40_gggg(x0, x1, x2, x3, x4)
U41_gggg(x0, x1, x2, x3, x4)
noattackU_in_gg(x0, x1)
U17_gg(x0, x1, x2, x3)
pV_in_ggaag(x0, x1, x2)
U42_ggaag(x0, x1, x2, x3)
U43_ggaag(x0, x1, x2, x3)
pN14_in_gagag(x0, x1, x2)
U44_gagag(x0, x1, x2, x3)
addH_in_ga(x0)
U45_gagag(x0, x1, x2, x3, x4)
U6_ga(x0, x1)
pN15_in_ggagg(x0, x1, x2, x3)
U46_ggagg(x0, x1, x2, x3, x4)
U47_ggagg(x0, x1, x2, x3, x4)
pN16_in_gagg(x0, x1, x2)
U48_gagg(x0, x1, x2, x3)
U49_gagg(x0, x1, x2, x3, x4)
pN17_in_gggg(x0, x1, x2, x3)
U50_gggg(x0, x1, x2, x3, x4)
U51_gggg(x0, x1, x2, x3, x4)
noattackW_in_gg(x0, x1)
U18_gg(x0, x1, x2, x3)
pX_in_ggaag(x0, x1, x2)
U52_ggaag(x0, x1, x2, x3)
U53_ggaag(x0, x1, x2, x3)
pN18_in_gagag(x0, x1, x2)
U54_gagag(x0, x1, x2, x3)
addI_in_ga(x0)
U55_gagag(x0, x1, x2, x3, x4)
U7_ga(x0, x1)
pN19_in_ggagg(x0, x1, x2, x3)
U56_ggagg(x0, x1, x2, x3, x4)
U57_ggagg(x0, x1, x2, x3, x4)
pN20_in_gagg(x0, x1, x2)
U58_gagg(x0, x1, x2, x3)
U59_gagg(x0, x1, x2, x3, x4)
pN21_in_gggg(x0, x1, x2, x3)
U60_gggg(x0, x1, x2, x3, x4)
U61_gggg(x0, x1, x2, x3, x4)
noattackY_in_gg(x0, x1)
U19_gg(x0, x1, x2, x3)
pZ_in_ggaag(x0, x1, x2)
U62_ggaag(x0, x1, x2, x3)
U63_ggaag(x0, x1, x2, x3)
pN22_in_gagag(x0, x1, x2)
U64_gagag(x0, x1, x2, x3)
addJ_in_ga(x0)
U65_gagag(x0, x1, x2, x3, x4)
U8_ga(x0, x1)
pN23_in_ggagg(x0, x1, x2, x3)
U66_ggagg(x0, x1, x2, x3, x4)
U67_ggagg(x0, x1, x2, x3, x4)
pN24_in_gagg(x0, x1, x2)
U68_gagg(x0, x1, x2, x3)
U69_gagg(x0, x1, x2, x3, x4)
pN25_in_gggg(x0, x1, x2, x3)
U70_gggg(x0, x1, x2, x3, x4)
U71_gggg(x0, x1, x2, x3, x4)
noattackN1_in_gg(x0, x1)
U20_gg(x0, x1, x2, x3)
pN2_in_ggaag(x0, x1, x2)
U72_ggaag(x0, x1, x2, x3)
U73_ggaag(x0, x1, x2, x3)
pN26_in_gagag(x0, x1, x2)
U74_gagag(x0, x1, x2, x3)
addK_in_ga(x0)
U75_gagag(x0, x1, x2, x3, x4)
U9_ga(x0, x1)
pN27_in_ggagg(x0, x1, x2, x3)
U76_ggagg(x0, x1, x2, x3, x4)
U77_ggagg(x0, x1, x2, x3, x4)
pN28_in_gagg(x0, x1, x2)
U78_gagg(x0, x1, x2, x3)
U79_gagg(x0, x1, x2, x3, x4)
pN29_in_gggg(x0, x1, x2, x3)
U80_gggg(x0, x1, x2, x3, x4)
U81_gggg(x0, x1, x2, x3, x4)
noattackN3_in_gg(x0, x1)
U21_gg(x0, x1, x2, x3)
pN4_in_ggaag(x0, x1, x2)
U82_ggaag(x0, x1, x2, x3)
U83_ggaag(x0, x1, x2, x3)
pN30_in_gagag(x0, x1, x2)
U84_gagag(x0, x1, x2, x3)
addL_in_ga(x0)
U85_gagag(x0, x1, x2, x3, x4)
U10_ga(x0, x1)
pN31_in_ggagg(x0, x1, x2, x3)
U86_ggagg(x0, x1, x2, x3, x4)
U87_ggagg(x0, x1, x2, x3, x4)
pN32_in_gagg(x0, x1, x2)
U88_gagg(x0, x1, x2, x3)
U89_gagg(x0, x1, x2, x3, x4)
pN33_in_gggg(x0, x1, x2, x3)
U90_gggg(x0, x1, x2, x3, x4)
U91_gggg(x0, x1, x2, x3, x4)
noattackN5_in_gg(x0, x1)
U22_gg(x0, x1, x2, x3)
pN6_in_ggaagg(x0, x1, x2, x3)
U92_ggaagg(x0, x1, x2, x3, x4)
U93_ggaagg(x0, x1, x2, x3, x4)
pN34_in_gagagg(x0, x1, x2, x3)
U94_gagagg(x0, x1, x2, x3, x4)
addM_in_ga(x0)
U95_gagagg(x0, x1, x2, x3, x4, x5)
U11_ga(x0, x1)
pN35_in_ggaggg(x0, x1, x2, x3, x4)
U96_ggaggg(x0, x1, x2, x3, x4, x5)
U97_ggaggg(x0, x1, x2, x3, x4, x5)
pN36_in_gaggg(x0, x1, x2, x3)
U98_gaggg(x0, x1, x2, x3, x4)
U99_gaggg(x0, x1, x2, x3, x4, x5)
pN37_in_ggggg(x0, x1, x2, x3, x4)
U100_ggggg(x0, x1, x2, x3, x4, x5)
U101_ggggg(x0, x1, x2, x3, x4, x5)
noattackN7_in_ggg(x0, x1, x2)
U23_ggg(x0, x1, x2, x3, x4)
pN8_in_gggaag(x0, x1, x2, x3)
U102_gggaag(x0, x1, x2, x3, x4)
U103_gggaag(x0, x1, x2, x3, x4)
pN38_in_ggagag(x0, x1, x2, x3)
U104_ggagag(x0, x1, x2, x3, x4)
addN_in_gga(x0, x1)
U105_ggagag(x0, x1, x2, x3, x4, x5)
U12_gga(x0, x1, x2)
pN39_in_gggagg(x0, x1, x2, x3, x4)
U106_gggagg(x0, x1, x2, x3, x4, x5)
U107_gggagg(x0, x1, x2, x3, x4, x5)
pN40_in_ggagg(x0, x1, x2, x3)
U108_ggagg(x0, x1, x2, x3, x4)
U109_ggagg(x0, x1, x2, x3, x4, x5)
From the DPs we obtained the following set of size-change graphs:
DELETEC_IN_AGA(T72, .(T70, T71), .(T70, X86)) → DELETEC_IN_AGA(T72, T71, X86)
queensA_in_a(.(T11, T12)) → U1_a(T11, T12, pB_in_agaa(T11, .(s(s(0)), .(s(s(s(0))), .(s(s(s(s(0)))), .(s(s(s(s(s(0))))), .(s(s(s(s(s(s(0)))))), .(s(s(s(s(s(s(s(0))))))), .(s(s(s(s(s(s(s(s(0)))))))), []))))))), X16, T12))
pB_in_agaa(T22, T15, T20, T21) → U24_agaa(T22, T15, T20, T21, deleteO_in_aga(T22, T15, T20))
deleteO_in_aga(s(0), T36, T36) → deleteO_out_aga(s(0), T36, T36)
deleteO_in_aga(T48, T47, .(s(0), X57)) → U13_aga(T48, T47, X57, deleteC_in_aga(T48, T47, X57))
deleteC_in_aga(T61, .(T61, T62), T62) → deleteC_out_aga(T61, .(T61, T62), T62)
deleteC_in_aga(T72, .(T70, T71), .(T70, X86)) → U2_aga(T72, T70, T71, X86, deleteC_in_aga(T72, T71, X86))
U2_aga(T72, T70, T71, X86, deleteC_out_aga(T72, T71, X86)) → deleteC_out_aga(T72, .(T70, T71), .(T70, X86))
U13_aga(T48, T47, X57, deleteC_out_aga(T48, T47, X57)) → deleteO_out_aga(T48, T47, .(s(0), X57))
U24_agaa(T22, T15, T20, T21, deleteO_out_aga(T22, T15, T20)) → U25_agaa(T22, T15, T20, T21, pN9_in_gag(T20, T21, T22))
pN9_in_gag(T20, T77, T22) → U26_gag(T20, T77, T22, permD_in_ga(T20, T77))
permD_in_ga([], []) → permD_out_ga([], [])
permD_in_ga(.(T86, T87), .(T90, T91)) → U3_ga(T86, T87, T90, T91, pE_in_aggaa(T90, T86, T87, X104, T91))
pE_in_aggaa(T90, T86, T87, T96, T97) → U28_aggaa(T90, T86, T87, T96, T97, deleteC_in_aga(T90, .(T86, T87), T96))
U28_aggaa(T90, T86, T87, T96, T97, deleteC_out_aga(T90, .(T86, T87), T96)) → U29_aggaa(T90, T86, T87, T96, T97, permD_in_ga(T96, T97))
U29_aggaa(T90, T86, T87, T96, T97, permD_out_ga(T96, T97)) → pE_out_aggaa(T90, T86, T87, T96, T97)
U3_ga(T86, T87, T90, T91, pE_out_aggaa(T90, T86, T87, X104, T91)) → permD_out_ga(.(T86, T87), .(T90, T91))
U26_gag(T20, T77, T22, permD_out_ga(T20, T77)) → U27_gag(T20, T77, T22, safeP_in_gg(T22, T77))
safeP_in_gg(T108, T109) → U14_gg(T108, T109, pQ_in_gg(T108, T109))
pQ_in_gg(T108, T109) → U30_gg(T108, T109, noattackR_in_gg(T108, T109))
noattackR_in_gg(T118, []) → noattackR_out_gg(T118, [])
noattackR_in_gg(T125, .(T126, T127)) → U15_gg(T125, T126, T127, pS_in_ggaag(T125, T126, X155, X156, T127))
pS_in_ggaag(T125, T126, X155, X156, T127) → U32_ggaag(T125, T126, X155, X156, T127, notEqF_in_gg(T125, T126))
notEqF_in_gg(0, s(T136)) → notEqF_out_gg(0, s(T136))
notEqF_in_gg(s(T141), 0) → notEqF_out_gg(s(T141), 0)
notEqF_in_gg(s(T146), s(T147)) → U4_gg(T146, T147, notEqF_in_gg(T146, T147))
U4_gg(T146, T147, notEqF_out_gg(T146, T147)) → notEqF_out_gg(s(T146), s(T147))
U32_ggaag(T125, T126, X155, X156, T127, notEqF_out_gg(T125, T126)) → U33_ggaag(T125, T126, X155, X156, T127, pN10_in_gagag(T126, X155, T125, X156, T127))
pN10_in_gagag(T126, T150, T125, X156, T127) → U34_gagag(T126, T150, T125, X156, T127, addG_in_ga(T126, T150))
addG_in_ga(0, s(0)) → addG_out_ga(0, s(0))
addG_in_ga(s(T153), s(X199)) → U5_ga(T153, X199, addG_in_ga(T153, X199))
U5_ga(T153, X199, addG_out_ga(T153, X199)) → addG_out_ga(s(T153), s(X199))
U34_gagag(T126, T150, T125, X156, T127, addG_out_ga(T126, T150)) → U35_gagag(T126, T150, T125, X156, T127, pN11_in_ggagg(T125, T150, X156, T126, T127))
pN11_in_ggagg(T125, T150, X156, T126, T127) → U36_ggagg(T125, T150, X156, T126, T127, notEqF_in_gg(T125, T150))
U36_ggagg(T125, T150, X156, T126, T127, notEqF_out_gg(T125, T150)) → U37_ggagg(T125, T150, X156, T126, T127, pN12_in_gagg(T125, X156, T126, T127))
pN12_in_gagg(T125, T158, T126, T127) → U38_gagg(T125, T158, T126, T127, addG_in_ga(T125, T158))
U38_gagg(T125, T158, T126, T127, addG_out_ga(T125, T158)) → U39_gagg(T125, T158, T126, T127, pN13_in_gggg(T126, T158, T125, T127))
pN13_in_gggg(T126, T158, T125, T127) → U40_gggg(T126, T158, T125, T127, notEqF_in_gg(T126, T158))
U40_gggg(T126, T158, T125, T127, notEqF_out_gg(T126, T158)) → U41_gggg(T126, T158, T125, T127, noattackU_in_gg(T125, T127))
noattackU_in_gg(T169, []) → noattackU_out_gg(T169, [])
noattackU_in_gg(T176, .(T177, T178)) → U17_gg(T176, T177, T178, pV_in_ggaag(T176, T177, X242, X243, T178))
pV_in_ggaag(T176, T177, X242, X243, T178) → U42_ggaag(T176, T177, X242, X243, T178, notEqF_in_gg(T176, T177))
U42_ggaag(T176, T177, X242, X243, T178, notEqF_out_gg(T176, T177)) → U43_ggaag(T176, T177, X242, X243, T178, pN14_in_gagag(T177, X242, T176, X243, T178))
pN14_in_gagag(T177, T183, T176, X243, T178) → U44_gagag(T177, T183, T176, X243, T178, addH_in_ga(T177, T183))
addH_in_ga(0, s(s(0))) → addH_out_ga(0, s(s(0)))
addH_in_ga(s(T186), s(X268)) → U6_ga(T186, X268, addH_in_ga(T186, X268))
U6_ga(T186, X268, addH_out_ga(T186, X268)) → addH_out_ga(s(T186), s(X268))
U44_gagag(T177, T183, T176, X243, T178, addH_out_ga(T177, T183)) → U45_gagag(T177, T183, T176, X243, T178, pN15_in_ggagg(T176, T183, X243, T177, T178))
pN15_in_ggagg(T176, T183, X243, T177, T178) → U46_ggagg(T176, T183, X243, T177, T178, notEqF_in_gg(T176, T183))
U46_ggagg(T176, T183, X243, T177, T178, notEqF_out_gg(T176, T183)) → U47_ggagg(T176, T183, X243, T177, T178, pN16_in_gagg(T176, X243, T177, T178))
pN16_in_gagg(T176, T191, T177, T178) → U48_gagg(T176, T191, T177, T178, addH_in_ga(T176, T191))
U48_gagg(T176, T191, T177, T178, addH_out_ga(T176, T191)) → U49_gagg(T176, T191, T177, T178, pN17_in_gggg(T177, T191, T176, T178))
pN17_in_gggg(T177, T191, T176, T178) → U50_gggg(T177, T191, T176, T178, notEqF_in_gg(T177, T191))
U50_gggg(T177, T191, T176, T178, notEqF_out_gg(T177, T191)) → U51_gggg(T177, T191, T176, T178, noattackW_in_gg(T176, T178))
noattackW_in_gg(T202, []) → noattackW_out_gg(T202, [])
noattackW_in_gg(T209, .(T210, T211)) → U18_gg(T209, T210, T211, pX_in_ggaag(T209, T210, X311, X312, T211))
pX_in_ggaag(T209, T210, X311, X312, T211) → U52_ggaag(T209, T210, X311, X312, T211, notEqF_in_gg(T209, T210))
U52_ggaag(T209, T210, X311, X312, T211, notEqF_out_gg(T209, T210)) → U53_ggaag(T209, T210, X311, X312, T211, pN18_in_gagag(T210, X311, T209, X312, T211))
pN18_in_gagag(T210, T216, T209, X312, T211) → U54_gagag(T210, T216, T209, X312, T211, addI_in_ga(T210, T216))
addI_in_ga(0, s(s(s(0)))) → addI_out_ga(0, s(s(s(0))))
addI_in_ga(s(T219), s(X337)) → U7_ga(T219, X337, addI_in_ga(T219, X337))
U7_ga(T219, X337, addI_out_ga(T219, X337)) → addI_out_ga(s(T219), s(X337))
U54_gagag(T210, T216, T209, X312, T211, addI_out_ga(T210, T216)) → U55_gagag(T210, T216, T209, X312, T211, pN19_in_ggagg(T209, T216, X312, T210, T211))
pN19_in_ggagg(T209, T216, X312, T210, T211) → U56_ggagg(T209, T216, X312, T210, T211, notEqF_in_gg(T209, T216))
U56_ggagg(T209, T216, X312, T210, T211, notEqF_out_gg(T209, T216)) → U57_ggagg(T209, T216, X312, T210, T211, pN20_in_gagg(T209, X312, T210, T211))
pN20_in_gagg(T209, T224, T210, T211) → U58_gagg(T209, T224, T210, T211, addI_in_ga(T209, T224))
U58_gagg(T209, T224, T210, T211, addI_out_ga(T209, T224)) → U59_gagg(T209, T224, T210, T211, pN21_in_gggg(T210, T224, T209, T211))
pN21_in_gggg(T210, T224, T209, T211) → U60_gggg(T210, T224, T209, T211, notEqF_in_gg(T210, T224))
U60_gggg(T210, T224, T209, T211, notEqF_out_gg(T210, T224)) → U61_gggg(T210, T224, T209, T211, noattackY_in_gg(T209, T211))
noattackY_in_gg(T235, []) → noattackY_out_gg(T235, [])
noattackY_in_gg(T242, .(T243, T244)) → U19_gg(T242, T243, T244, pZ_in_ggaag(T242, T243, X380, X381, T244))
pZ_in_ggaag(T242, T243, X380, X381, T244) → U62_ggaag(T242, T243, X380, X381, T244, notEqF_in_gg(T242, T243))
U62_ggaag(T242, T243, X380, X381, T244, notEqF_out_gg(T242, T243)) → U63_ggaag(T242, T243, X380, X381, T244, pN22_in_gagag(T243, X380, T242, X381, T244))
pN22_in_gagag(T243, T249, T242, X381, T244) → U64_gagag(T243, T249, T242, X381, T244, addJ_in_ga(T243, T249))
addJ_in_ga(0, s(s(s(s(0))))) → addJ_out_ga(0, s(s(s(s(0)))))
addJ_in_ga(s(T252), s(X406)) → U8_ga(T252, X406, addJ_in_ga(T252, X406))
U8_ga(T252, X406, addJ_out_ga(T252, X406)) → addJ_out_ga(s(T252), s(X406))
U64_gagag(T243, T249, T242, X381, T244, addJ_out_ga(T243, T249)) → U65_gagag(T243, T249, T242, X381, T244, pN23_in_ggagg(T242, T249, X381, T243, T244))
pN23_in_ggagg(T242, T249, X381, T243, T244) → U66_ggagg(T242, T249, X381, T243, T244, notEqF_in_gg(T242, T249))
U66_ggagg(T242, T249, X381, T243, T244, notEqF_out_gg(T242, T249)) → U67_ggagg(T242, T249, X381, T243, T244, pN24_in_gagg(T242, X381, T243, T244))
pN24_in_gagg(T242, T257, T243, T244) → U68_gagg(T242, T257, T243, T244, addJ_in_ga(T242, T257))
U68_gagg(T242, T257, T243, T244, addJ_out_ga(T242, T257)) → U69_gagg(T242, T257, T243, T244, pN25_in_gggg(T243, T257, T242, T244))
pN25_in_gggg(T243, T257, T242, T244) → U70_gggg(T243, T257, T242, T244, notEqF_in_gg(T243, T257))
U70_gggg(T243, T257, T242, T244, notEqF_out_gg(T243, T257)) → U71_gggg(T243, T257, T242, T244, noattackN1_in_gg(T242, T244))
noattackN1_in_gg(T268, []) → noattackN1_out_gg(T268, [])
noattackN1_in_gg(T275, .(T276, T277)) → U20_gg(T275, T276, T277, pN2_in_ggaag(T275, T276, X449, X450, T277))
pN2_in_ggaag(T275, T276, X449, X450, T277) → U72_ggaag(T275, T276, X449, X450, T277, notEqF_in_gg(T275, T276))
U72_ggaag(T275, T276, X449, X450, T277, notEqF_out_gg(T275, T276)) → U73_ggaag(T275, T276, X449, X450, T277, pN26_in_gagag(T276, X449, T275, X450, T277))
pN26_in_gagag(T276, T282, T275, X450, T277) → U74_gagag(T276, T282, T275, X450, T277, addK_in_ga(T276, T282))
addK_in_ga(0, s(s(s(s(s(0)))))) → addK_out_ga(0, s(s(s(s(s(0))))))
addK_in_ga(s(T285), s(X475)) → U9_ga(T285, X475, addK_in_ga(T285, X475))
U9_ga(T285, X475, addK_out_ga(T285, X475)) → addK_out_ga(s(T285), s(X475))
U74_gagag(T276, T282, T275, X450, T277, addK_out_ga(T276, T282)) → U75_gagag(T276, T282, T275, X450, T277, pN27_in_ggagg(T275, T282, X450, T276, T277))
pN27_in_ggagg(T275, T282, X450, T276, T277) → U76_ggagg(T275, T282, X450, T276, T277, notEqF_in_gg(T275, T282))
U76_ggagg(T275, T282, X450, T276, T277, notEqF_out_gg(T275, T282)) → U77_ggagg(T275, T282, X450, T276, T277, pN28_in_gagg(T275, X450, T276, T277))
pN28_in_gagg(T275, T290, T276, T277) → U78_gagg(T275, T290, T276, T277, addK_in_ga(T275, T290))
U78_gagg(T275, T290, T276, T277, addK_out_ga(T275, T290)) → U79_gagg(T275, T290, T276, T277, pN29_in_gggg(T276, T290, T275, T277))
pN29_in_gggg(T276, T290, T275, T277) → U80_gggg(T276, T290, T275, T277, notEqF_in_gg(T276, T290))
U80_gggg(T276, T290, T275, T277, notEqF_out_gg(T276, T290)) → U81_gggg(T276, T290, T275, T277, noattackN3_in_gg(T275, T277))
noattackN3_in_gg(T301, []) → noattackN3_out_gg(T301, [])
noattackN3_in_gg(T308, .(T309, T310)) → U21_gg(T308, T309, T310, pN4_in_ggaag(T308, T309, X518, X519, T310))
pN4_in_ggaag(T308, T309, X518, X519, T310) → U82_ggaag(T308, T309, X518, X519, T310, notEqF_in_gg(T308, T309))
U82_ggaag(T308, T309, X518, X519, T310, notEqF_out_gg(T308, T309)) → U83_ggaag(T308, T309, X518, X519, T310, pN30_in_gagag(T309, X518, T308, X519, T310))
pN30_in_gagag(T309, T315, T308, X519, T310) → U84_gagag(T309, T315, T308, X519, T310, addL_in_ga(T309, T315))
addL_in_ga(0, s(s(s(s(s(s(0))))))) → addL_out_ga(0, s(s(s(s(s(s(0)))))))
addL_in_ga(s(T318), s(X544)) → U10_ga(T318, X544, addL_in_ga(T318, X544))
U10_ga(T318, X544, addL_out_ga(T318, X544)) → addL_out_ga(s(T318), s(X544))
U84_gagag(T309, T315, T308, X519, T310, addL_out_ga(T309, T315)) → U85_gagag(T309, T315, T308, X519, T310, pN31_in_ggagg(T308, T315, X519, T309, T310))
pN31_in_ggagg(T308, T315, X519, T309, T310) → U86_ggagg(T308, T315, X519, T309, T310, notEqF_in_gg(T308, T315))
U86_ggagg(T308, T315, X519, T309, T310, notEqF_out_gg(T308, T315)) → U87_ggagg(T308, T315, X519, T309, T310, pN32_in_gagg(T308, X519, T309, T310))
pN32_in_gagg(T308, T323, T309, T310) → U88_gagg(T308, T323, T309, T310, addL_in_ga(T308, T323))
U88_gagg(T308, T323, T309, T310, addL_out_ga(T308, T323)) → U89_gagg(T308, T323, T309, T310, pN33_in_gggg(T309, T323, T308, T310))
pN33_in_gggg(T309, T323, T308, T310) → U90_gggg(T309, T323, T308, T310, notEqF_in_gg(T309, T323))
U90_gggg(T309, T323, T308, T310, notEqF_out_gg(T309, T323)) → U91_gggg(T309, T323, T308, T310, noattackN5_in_gg(T308, T310))
noattackN5_in_gg(T334, []) → noattackN5_out_gg(T334, [])
noattackN5_in_gg(T341, .(T342, T343)) → U22_gg(T341, T342, T343, pN6_in_ggaagg(T341, T342, X587, X588, T343, s(s(s(s(s(s(s(0)))))))))
pN6_in_ggaagg(T341, T342, X587, X588, T343, T346) → U92_ggaagg(T341, T342, X587, X588, T343, T346, notEqF_in_gg(T341, T342))
U92_ggaagg(T341, T342, X587, X588, T343, T346, notEqF_out_gg(T341, T342)) → U93_ggaagg(T341, T342, X587, X588, T343, T346, pN34_in_gagagg(T342, X587, T341, X588, T343, T346))
pN34_in_gagagg(T342, T351, T341, X588, T343, T346) → U94_gagagg(T342, T351, T341, X588, T343, T346, addM_in_ga(T342, T351))
addM_in_ga(0, s(s(s(s(s(s(s(0)))))))) → addM_out_ga(0, s(s(s(s(s(s(s(0))))))))
addM_in_ga(s(T354), s(X615)) → U11_ga(T354, X615, addM_in_ga(T354, X615))
U11_ga(T354, X615, addM_out_ga(T354, X615)) → addM_out_ga(s(T354), s(X615))
U94_gagagg(T342, T351, T341, X588, T343, T346, addM_out_ga(T342, T351)) → U95_gagagg(T342, T351, T341, X588, T343, T346, pN35_in_ggaggg(T341, T351, X588, T342, T343, T346))
pN35_in_ggaggg(T341, T351, X588, T342, T343, T346) → U96_ggaggg(T341, T351, X588, T342, T343, T346, notEqF_in_gg(T341, T351))
U96_ggaggg(T341, T351, X588, T342, T343, T346, notEqF_out_gg(T341, T351)) → U97_ggaggg(T341, T351, X588, T342, T343, T346, pN36_in_gaggg(T341, X588, T342, T343, T346))
pN36_in_gaggg(T341, T359, T342, T343, T346) → U98_gaggg(T341, T359, T342, T343, T346, addM_in_ga(T341, T359))
U98_gaggg(T341, T359, T342, T343, T346, addM_out_ga(T341, T359)) → U99_gaggg(T341, T359, T342, T343, T346, pN37_in_ggggg(T342, T359, T341, T343, T346))
pN37_in_ggggg(T342, T359, T341, T343, T346) → U100_ggggg(T342, T359, T341, T343, T346, notEqF_in_gg(T342, T359))
U100_ggggg(T342, T359, T341, T343, T346, notEqF_out_gg(T342, T359)) → U101_ggggg(T342, T359, T341, T343, T346, noattackN7_in_ggg(T341, T343, T346))
noattackN7_in_ggg(T376, [], T377) → noattackN7_out_ggg(T376, [], T377)
noattackN7_in_ggg(T386, .(T387, T388), T389) → U23_ggg(T386, T387, T388, T389, pN8_in_gggaag(T386, T387, T389, X658, X659, T388))
pN8_in_gggaag(T386, T387, T389, X658, X659, T388) → U102_gggaag(T386, T387, T389, X658, X659, T388, notEqF_in_gg(T386, T387))
U102_gggaag(T386, T387, T389, X658, X659, T388, notEqF_out_gg(T386, T387)) → U103_gggaag(T386, T387, T389, X658, X659, T388, pN38_in_ggagag(T387, T389, X658, T386, X659, T388))
pN38_in_ggagag(T387, T389, T396, T386, X659, T388) → U104_ggagag(T387, T389, T396, T386, X659, T388, addN_in_gga(T387, T389, T396))
addN_in_gga(0, T403, s(T403)) → addN_out_gga(0, T403, s(T403))
addN_in_gga(s(T408), T409, s(X684)) → U12_gga(T408, T409, X684, addN_in_gga(T408, T409, X684))
U12_gga(T408, T409, X684, addN_out_gga(T408, T409, X684)) → addN_out_gga(s(T408), T409, s(X684))
U104_ggagag(T387, T389, T396, T386, X659, T388, addN_out_gga(T387, T389, T396)) → U105_ggagag(T387, T389, T396, T386, X659, T388, pN39_in_gggagg(T386, T396, T389, X659, T387, T388))
pN39_in_gggagg(T386, T396, T389, X659, T387, T388) → U106_gggagg(T386, T396, T389, X659, T387, T388, notEqF_in_gg(T386, T396))
U106_gggagg(T386, T396, T389, X659, T387, T388, notEqF_out_gg(T386, T396)) → U107_gggagg(T386, T396, T389, X659, T387, T388, pN40_in_ggagg(T386, T389, X659, T387, T388))
pN40_in_ggagg(T386, T389, T418, T387, T388) → U108_ggagg(T386, T389, T418, T387, T388, addN_in_gga(T386, T389, T418))
U108_ggagg(T386, T389, T418, T387, T388, addN_out_gga(T386, T389, T418)) → U109_ggagg(T386, T389, T418, T387, T388, pN37_in_ggggg(T387, T418, T386, T388, s(T389)))
U109_ggagg(T386, T389, T418, T387, T388, pN37_out_ggggg(T387, T418, T386, T388, s(T389))) → pN40_out_ggagg(T386, T389, T418, T387, T388)
U107_gggagg(T386, T396, T389, X659, T387, T388, pN40_out_ggagg(T386, T389, X659, T387, T388)) → pN39_out_gggagg(T386, T396, T389, X659, T387, T388)
U105_ggagag(T387, T389, T396, T386, X659, T388, pN39_out_gggagg(T386, T396, T389, X659, T387, T388)) → pN38_out_ggagag(T387, T389, T396, T386, X659, T388)
U103_gggaag(T386, T387, T389, X658, X659, T388, pN38_out_ggagag(T387, T389, X658, T386, X659, T388)) → pN8_out_gggaag(T386, T387, T389, X658, X659, T388)
U23_ggg(T386, T387, T388, T389, pN8_out_gggaag(T386, T387, T389, X658, X659, T388)) → noattackN7_out_ggg(T386, .(T387, T388), T389)
U101_ggggg(T342, T359, T341, T343, T346, noattackN7_out_ggg(T341, T343, T346)) → pN37_out_ggggg(T342, T359, T341, T343, T346)
U99_gaggg(T341, T359, T342, T343, T346, pN37_out_ggggg(T342, T359, T341, T343, T346)) → pN36_out_gaggg(T341, T359, T342, T343, T346)
U97_ggaggg(T341, T351, X588, T342, T343, T346, pN36_out_gaggg(T341, X588, T342, T343, T346)) → pN35_out_ggaggg(T341, T351, X588, T342, T343, T346)
U95_gagagg(T342, T351, T341, X588, T343, T346, pN35_out_ggaggg(T341, T351, X588, T342, T343, T346)) → pN34_out_gagagg(T342, T351, T341, X588, T343, T346)
U93_ggaagg(T341, T342, X587, X588, T343, T346, pN34_out_gagagg(T342, X587, T341, X588, T343, T346)) → pN6_out_ggaagg(T341, T342, X587, X588, T343, T346)
U22_gg(T341, T342, T343, pN6_out_ggaagg(T341, T342, X587, X588, T343, s(s(s(s(s(s(s(0))))))))) → noattackN5_out_gg(T341, .(T342, T343))
U91_gggg(T309, T323, T308, T310, noattackN5_out_gg(T308, T310)) → pN33_out_gggg(T309, T323, T308, T310)
U89_gagg(T308, T323, T309, T310, pN33_out_gggg(T309, T323, T308, T310)) → pN32_out_gagg(T308, T323, T309, T310)
U87_ggagg(T308, T315, X519, T309, T310, pN32_out_gagg(T308, X519, T309, T310)) → pN31_out_ggagg(T308, T315, X519, T309, T310)
U85_gagag(T309, T315, T308, X519, T310, pN31_out_ggagg(T308, T315, X519, T309, T310)) → pN30_out_gagag(T309, T315, T308, X519, T310)
U83_ggaag(T308, T309, X518, X519, T310, pN30_out_gagag(T309, X518, T308, X519, T310)) → pN4_out_ggaag(T308, T309, X518, X519, T310)
U21_gg(T308, T309, T310, pN4_out_ggaag(T308, T309, X518, X519, T310)) → noattackN3_out_gg(T308, .(T309, T310))
U81_gggg(T276, T290, T275, T277, noattackN3_out_gg(T275, T277)) → pN29_out_gggg(T276, T290, T275, T277)
U79_gagg(T275, T290, T276, T277, pN29_out_gggg(T276, T290, T275, T277)) → pN28_out_gagg(T275, T290, T276, T277)
U77_ggagg(T275, T282, X450, T276, T277, pN28_out_gagg(T275, X450, T276, T277)) → pN27_out_ggagg(T275, T282, X450, T276, T277)
U75_gagag(T276, T282, T275, X450, T277, pN27_out_ggagg(T275, T282, X450, T276, T277)) → pN26_out_gagag(T276, T282, T275, X450, T277)
U73_ggaag(T275, T276, X449, X450, T277, pN26_out_gagag(T276, X449, T275, X450, T277)) → pN2_out_ggaag(T275, T276, X449, X450, T277)
U20_gg(T275, T276, T277, pN2_out_ggaag(T275, T276, X449, X450, T277)) → noattackN1_out_gg(T275, .(T276, T277))
U71_gggg(T243, T257, T242, T244, noattackN1_out_gg(T242, T244)) → pN25_out_gggg(T243, T257, T242, T244)
U69_gagg(T242, T257, T243, T244, pN25_out_gggg(T243, T257, T242, T244)) → pN24_out_gagg(T242, T257, T243, T244)
U67_ggagg(T242, T249, X381, T243, T244, pN24_out_gagg(T242, X381, T243, T244)) → pN23_out_ggagg(T242, T249, X381, T243, T244)
U65_gagag(T243, T249, T242, X381, T244, pN23_out_ggagg(T242, T249, X381, T243, T244)) → pN22_out_gagag(T243, T249, T242, X381, T244)
U63_ggaag(T242, T243, X380, X381, T244, pN22_out_gagag(T243, X380, T242, X381, T244)) → pZ_out_ggaag(T242, T243, X380, X381, T244)
U19_gg(T242, T243, T244, pZ_out_ggaag(T242, T243, X380, X381, T244)) → noattackY_out_gg(T242, .(T243, T244))
U61_gggg(T210, T224, T209, T211, noattackY_out_gg(T209, T211)) → pN21_out_gggg(T210, T224, T209, T211)
U59_gagg(T209, T224, T210, T211, pN21_out_gggg(T210, T224, T209, T211)) → pN20_out_gagg(T209, T224, T210, T211)
U57_ggagg(T209, T216, X312, T210, T211, pN20_out_gagg(T209, X312, T210, T211)) → pN19_out_ggagg(T209, T216, X312, T210, T211)
U55_gagag(T210, T216, T209, X312, T211, pN19_out_ggagg(T209, T216, X312, T210, T211)) → pN18_out_gagag(T210, T216, T209, X312, T211)
U53_ggaag(T209, T210, X311, X312, T211, pN18_out_gagag(T210, X311, T209, X312, T211)) → pX_out_ggaag(T209, T210, X311, X312, T211)
U18_gg(T209, T210, T211, pX_out_ggaag(T209, T210, X311, X312, T211)) → noattackW_out_gg(T209, .(T210, T211))
U51_gggg(T177, T191, T176, T178, noattackW_out_gg(T176, T178)) → pN17_out_gggg(T177, T191, T176, T178)
U49_gagg(T176, T191, T177, T178, pN17_out_gggg(T177, T191, T176, T178)) → pN16_out_gagg(T176, T191, T177, T178)
U47_ggagg(T176, T183, X243, T177, T178, pN16_out_gagg(T176, X243, T177, T178)) → pN15_out_ggagg(T176, T183, X243, T177, T178)
U45_gagag(T177, T183, T176, X243, T178, pN15_out_ggagg(T176, T183, X243, T177, T178)) → pN14_out_gagag(T177, T183, T176, X243, T178)
U43_ggaag(T176, T177, X242, X243, T178, pN14_out_gagag(T177, X242, T176, X243, T178)) → pV_out_ggaag(T176, T177, X242, X243, T178)
U17_gg(T176, T177, T178, pV_out_ggaag(T176, T177, X242, X243, T178)) → noattackU_out_gg(T176, .(T177, T178))
U41_gggg(T126, T158, T125, T127, noattackU_out_gg(T125, T127)) → pN13_out_gggg(T126, T158, T125, T127)
U39_gagg(T125, T158, T126, T127, pN13_out_gggg(T126, T158, T125, T127)) → pN12_out_gagg(T125, T158, T126, T127)
U37_ggagg(T125, T150, X156, T126, T127, pN12_out_gagg(T125, X156, T126, T127)) → pN11_out_ggagg(T125, T150, X156, T126, T127)
U35_gagag(T126, T150, T125, X156, T127, pN11_out_ggagg(T125, T150, X156, T126, T127)) → pN10_out_gagag(T126, T150, T125, X156, T127)
U33_ggaag(T125, T126, X155, X156, T127, pN10_out_gagag(T126, X155, T125, X156, T127)) → pS_out_ggaag(T125, T126, X155, X156, T127)
U15_gg(T125, T126, T127, pS_out_ggaag(T125, T126, X155, X156, T127)) → noattackR_out_gg(T125, .(T126, T127))
U30_gg(T108, T109, noattackR_out_gg(T108, T109)) → U31_gg(T108, T109, safeT_in_g(T109))
safeT_in_g([]) → safeT_out_g([])
safeT_in_g(.(T427, T428)) → U16_g(T427, T428, pQ_in_gg(T427, T428))
U16_g(T427, T428, pQ_out_gg(T427, T428)) → safeT_out_g(.(T427, T428))
U31_gg(T108, T109, safeT_out_g(T109)) → pQ_out_gg(T108, T109)
U14_gg(T108, T109, pQ_out_gg(T108, T109)) → safeP_out_gg(T108, T109)
U27_gag(T20, T77, T22, safeP_out_gg(T22, T77)) → pN9_out_gag(T20, T77, T22)
U25_agaa(T22, T15, T20, T21, pN9_out_gag(T20, T21, T22)) → pB_out_agaa(T22, T15, T20, T21)
U1_a(T11, T12, pB_out_agaa(T11, .(s(s(0)), .(s(s(s(0))), .(s(s(s(s(0)))), .(s(s(s(s(s(0))))), .(s(s(s(s(s(s(0)))))), .(s(s(s(s(s(s(s(0))))))), .(s(s(s(s(s(s(s(s(0)))))))), []))))))), X16, T12)) → queensA_out_a(.(T11, T12))
DELETEC_IN_AGA(T72, .(T70, T71), .(T70, X86)) → DELETEC_IN_AGA(T72, T71, X86)
DELETEC_IN_AGA(.(T70, T71)) → DELETEC_IN_AGA(T71)
From the DPs we obtained the following set of size-change graphs:
PE_IN_AGGAA(T90, T86, T87, T96, T97) → U28_AGGAA(T90, T86, T87, T96, T97, deleteC_in_aga(T90, .(T86, T87), T96))
U28_AGGAA(T90, T86, T87, T96, T97, deleteC_out_aga(T90, .(T86, T87), T96)) → PERMD_IN_GA(T96, T97)
PERMD_IN_GA(.(T86, T87), .(T90, T91)) → PE_IN_AGGAA(T90, T86, T87, X104, T91)
queensA_in_a(.(T11, T12)) → U1_a(T11, T12, pB_in_agaa(T11, .(s(s(0)), .(s(s(s(0))), .(s(s(s(s(0)))), .(s(s(s(s(s(0))))), .(s(s(s(s(s(s(0)))))), .(s(s(s(s(s(s(s(0))))))), .(s(s(s(s(s(s(s(s(0)))))))), []))))))), X16, T12))
pB_in_agaa(T22, T15, T20, T21) → U24_agaa(T22, T15, T20, T21, deleteO_in_aga(T22, T15, T20))
deleteO_in_aga(s(0), T36, T36) → deleteO_out_aga(s(0), T36, T36)
deleteO_in_aga(T48, T47, .(s(0), X57)) → U13_aga(T48, T47, X57, deleteC_in_aga(T48, T47, X57))
deleteC_in_aga(T61, .(T61, T62), T62) → deleteC_out_aga(T61, .(T61, T62), T62)
deleteC_in_aga(T72, .(T70, T71), .(T70, X86)) → U2_aga(T72, T70, T71, X86, deleteC_in_aga(T72, T71, X86))
U2_aga(T72, T70, T71, X86, deleteC_out_aga(T72, T71, X86)) → deleteC_out_aga(T72, .(T70, T71), .(T70, X86))
U13_aga(T48, T47, X57, deleteC_out_aga(T48, T47, X57)) → deleteO_out_aga(T48, T47, .(s(0), X57))
U24_agaa(T22, T15, T20, T21, deleteO_out_aga(T22, T15, T20)) → U25_agaa(T22, T15, T20, T21, pN9_in_gag(T20, T21, T22))
pN9_in_gag(T20, T77, T22) → U26_gag(T20, T77, T22, permD_in_ga(T20, T77))
permD_in_ga([], []) → permD_out_ga([], [])
permD_in_ga(.(T86, T87), .(T90, T91)) → U3_ga(T86, T87, T90, T91, pE_in_aggaa(T90, T86, T87, X104, T91))
pE_in_aggaa(T90, T86, T87, T96, T97) → U28_aggaa(T90, T86, T87, T96, T97, deleteC_in_aga(T90, .(T86, T87), T96))
U28_aggaa(T90, T86, T87, T96, T97, deleteC_out_aga(T90, .(T86, T87), T96)) → U29_aggaa(T90, T86, T87, T96, T97, permD_in_ga(T96, T97))
U29_aggaa(T90, T86, T87, T96, T97, permD_out_ga(T96, T97)) → pE_out_aggaa(T90, T86, T87, T96, T97)
U3_ga(T86, T87, T90, T91, pE_out_aggaa(T90, T86, T87, X104, T91)) → permD_out_ga(.(T86, T87), .(T90, T91))
U26_gag(T20, T77, T22, permD_out_ga(T20, T77)) → U27_gag(T20, T77, T22, safeP_in_gg(T22, T77))
safeP_in_gg(T108, T109) → U14_gg(T108, T109, pQ_in_gg(T108, T109))
pQ_in_gg(T108, T109) → U30_gg(T108, T109, noattackR_in_gg(T108, T109))
noattackR_in_gg(T118, []) → noattackR_out_gg(T118, [])
noattackR_in_gg(T125, .(T126, T127)) → U15_gg(T125, T126, T127, pS_in_ggaag(T125, T126, X155, X156, T127))
pS_in_ggaag(T125, T126, X155, X156, T127) → U32_ggaag(T125, T126, X155, X156, T127, notEqF_in_gg(T125, T126))
notEqF_in_gg(0, s(T136)) → notEqF_out_gg(0, s(T136))
notEqF_in_gg(s(T141), 0) → notEqF_out_gg(s(T141), 0)
notEqF_in_gg(s(T146), s(T147)) → U4_gg(T146, T147, notEqF_in_gg(T146, T147))
U4_gg(T146, T147, notEqF_out_gg(T146, T147)) → notEqF_out_gg(s(T146), s(T147))
U32_ggaag(T125, T126, X155, X156, T127, notEqF_out_gg(T125, T126)) → U33_ggaag(T125, T126, X155, X156, T127, pN10_in_gagag(T126, X155, T125, X156, T127))
pN10_in_gagag(T126, T150, T125, X156, T127) → U34_gagag(T126, T150, T125, X156, T127, addG_in_ga(T126, T150))
addG_in_ga(0, s(0)) → addG_out_ga(0, s(0))
addG_in_ga(s(T153), s(X199)) → U5_ga(T153, X199, addG_in_ga(T153, X199))
U5_ga(T153, X199, addG_out_ga(T153, X199)) → addG_out_ga(s(T153), s(X199))
U34_gagag(T126, T150, T125, X156, T127, addG_out_ga(T126, T150)) → U35_gagag(T126, T150, T125, X156, T127, pN11_in_ggagg(T125, T150, X156, T126, T127))
pN11_in_ggagg(T125, T150, X156, T126, T127) → U36_ggagg(T125, T150, X156, T126, T127, notEqF_in_gg(T125, T150))
U36_ggagg(T125, T150, X156, T126, T127, notEqF_out_gg(T125, T150)) → U37_ggagg(T125, T150, X156, T126, T127, pN12_in_gagg(T125, X156, T126, T127))
pN12_in_gagg(T125, T158, T126, T127) → U38_gagg(T125, T158, T126, T127, addG_in_ga(T125, T158))
U38_gagg(T125, T158, T126, T127, addG_out_ga(T125, T158)) → U39_gagg(T125, T158, T126, T127, pN13_in_gggg(T126, T158, T125, T127))
pN13_in_gggg(T126, T158, T125, T127) → U40_gggg(T126, T158, T125, T127, notEqF_in_gg(T126, T158))
U40_gggg(T126, T158, T125, T127, notEqF_out_gg(T126, T158)) → U41_gggg(T126, T158, T125, T127, noattackU_in_gg(T125, T127))
noattackU_in_gg(T169, []) → noattackU_out_gg(T169, [])
noattackU_in_gg(T176, .(T177, T178)) → U17_gg(T176, T177, T178, pV_in_ggaag(T176, T177, X242, X243, T178))
pV_in_ggaag(T176, T177, X242, X243, T178) → U42_ggaag(T176, T177, X242, X243, T178, notEqF_in_gg(T176, T177))
U42_ggaag(T176, T177, X242, X243, T178, notEqF_out_gg(T176, T177)) → U43_ggaag(T176, T177, X242, X243, T178, pN14_in_gagag(T177, X242, T176, X243, T178))
pN14_in_gagag(T177, T183, T176, X243, T178) → U44_gagag(T177, T183, T176, X243, T178, addH_in_ga(T177, T183))
addH_in_ga(0, s(s(0))) → addH_out_ga(0, s(s(0)))
addH_in_ga(s(T186), s(X268)) → U6_ga(T186, X268, addH_in_ga(T186, X268))
U6_ga(T186, X268, addH_out_ga(T186, X268)) → addH_out_ga(s(T186), s(X268))
U44_gagag(T177, T183, T176, X243, T178, addH_out_ga(T177, T183)) → U45_gagag(T177, T183, T176, X243, T178, pN15_in_ggagg(T176, T183, X243, T177, T178))
pN15_in_ggagg(T176, T183, X243, T177, T178) → U46_ggagg(T176, T183, X243, T177, T178, notEqF_in_gg(T176, T183))
U46_ggagg(T176, T183, X243, T177, T178, notEqF_out_gg(T176, T183)) → U47_ggagg(T176, T183, X243, T177, T178, pN16_in_gagg(T176, X243, T177, T178))
pN16_in_gagg(T176, T191, T177, T178) → U48_gagg(T176, T191, T177, T178, addH_in_ga(T176, T191))
U48_gagg(T176, T191, T177, T178, addH_out_ga(T176, T191)) → U49_gagg(T176, T191, T177, T178, pN17_in_gggg(T177, T191, T176, T178))
pN17_in_gggg(T177, T191, T176, T178) → U50_gggg(T177, T191, T176, T178, notEqF_in_gg(T177, T191))
U50_gggg(T177, T191, T176, T178, notEqF_out_gg(T177, T191)) → U51_gggg(T177, T191, T176, T178, noattackW_in_gg(T176, T178))
noattackW_in_gg(T202, []) → noattackW_out_gg(T202, [])
noattackW_in_gg(T209, .(T210, T211)) → U18_gg(T209, T210, T211, pX_in_ggaag(T209, T210, X311, X312, T211))
pX_in_ggaag(T209, T210, X311, X312, T211) → U52_ggaag(T209, T210, X311, X312, T211, notEqF_in_gg(T209, T210))
U52_ggaag(T209, T210, X311, X312, T211, notEqF_out_gg(T209, T210)) → U53_ggaag(T209, T210, X311, X312, T211, pN18_in_gagag(T210, X311, T209, X312, T211))
pN18_in_gagag(T210, T216, T209, X312, T211) → U54_gagag(T210, T216, T209, X312, T211, addI_in_ga(T210, T216))
addI_in_ga(0, s(s(s(0)))) → addI_out_ga(0, s(s(s(0))))
addI_in_ga(s(T219), s(X337)) → U7_ga(T219, X337, addI_in_ga(T219, X337))
U7_ga(T219, X337, addI_out_ga(T219, X337)) → addI_out_ga(s(T219), s(X337))
U54_gagag(T210, T216, T209, X312, T211, addI_out_ga(T210, T216)) → U55_gagag(T210, T216, T209, X312, T211, pN19_in_ggagg(T209, T216, X312, T210, T211))
pN19_in_ggagg(T209, T216, X312, T210, T211) → U56_ggagg(T209, T216, X312, T210, T211, notEqF_in_gg(T209, T216))
U56_ggagg(T209, T216, X312, T210, T211, notEqF_out_gg(T209, T216)) → U57_ggagg(T209, T216, X312, T210, T211, pN20_in_gagg(T209, X312, T210, T211))
pN20_in_gagg(T209, T224, T210, T211) → U58_gagg(T209, T224, T210, T211, addI_in_ga(T209, T224))
U58_gagg(T209, T224, T210, T211, addI_out_ga(T209, T224)) → U59_gagg(T209, T224, T210, T211, pN21_in_gggg(T210, T224, T209, T211))
pN21_in_gggg(T210, T224, T209, T211) → U60_gggg(T210, T224, T209, T211, notEqF_in_gg(T210, T224))
U60_gggg(T210, T224, T209, T211, notEqF_out_gg(T210, T224)) → U61_gggg(T210, T224, T209, T211, noattackY_in_gg(T209, T211))
noattackY_in_gg(T235, []) → noattackY_out_gg(T235, [])
noattackY_in_gg(T242, .(T243, T244)) → U19_gg(T242, T243, T244, pZ_in_ggaag(T242, T243, X380, X381, T244))
pZ_in_ggaag(T242, T243, X380, X381, T244) → U62_ggaag(T242, T243, X380, X381, T244, notEqF_in_gg(T242, T243))
U62_ggaag(T242, T243, X380, X381, T244, notEqF_out_gg(T242, T243)) → U63_ggaag(T242, T243, X380, X381, T244, pN22_in_gagag(T243, X380, T242, X381, T244))
pN22_in_gagag(T243, T249, T242, X381, T244) → U64_gagag(T243, T249, T242, X381, T244, addJ_in_ga(T243, T249))
addJ_in_ga(0, s(s(s(s(0))))) → addJ_out_ga(0, s(s(s(s(0)))))
addJ_in_ga(s(T252), s(X406)) → U8_ga(T252, X406, addJ_in_ga(T252, X406))
U8_ga(T252, X406, addJ_out_ga(T252, X406)) → addJ_out_ga(s(T252), s(X406))
U64_gagag(T243, T249, T242, X381, T244, addJ_out_ga(T243, T249)) → U65_gagag(T243, T249, T242, X381, T244, pN23_in_ggagg(T242, T249, X381, T243, T244))
pN23_in_ggagg(T242, T249, X381, T243, T244) → U66_ggagg(T242, T249, X381, T243, T244, notEqF_in_gg(T242, T249))
U66_ggagg(T242, T249, X381, T243, T244, notEqF_out_gg(T242, T249)) → U67_ggagg(T242, T249, X381, T243, T244, pN24_in_gagg(T242, X381, T243, T244))
pN24_in_gagg(T242, T257, T243, T244) → U68_gagg(T242, T257, T243, T244, addJ_in_ga(T242, T257))
U68_gagg(T242, T257, T243, T244, addJ_out_ga(T242, T257)) → U69_gagg(T242, T257, T243, T244, pN25_in_gggg(T243, T257, T242, T244))
pN25_in_gggg(T243, T257, T242, T244) → U70_gggg(T243, T257, T242, T244, notEqF_in_gg(T243, T257))
U70_gggg(T243, T257, T242, T244, notEqF_out_gg(T243, T257)) → U71_gggg(T243, T257, T242, T244, noattackN1_in_gg(T242, T244))
noattackN1_in_gg(T268, []) → noattackN1_out_gg(T268, [])
noattackN1_in_gg(T275, .(T276, T277)) → U20_gg(T275, T276, T277, pN2_in_ggaag(T275, T276, X449, X450, T277))
pN2_in_ggaag(T275, T276, X449, X450, T277) → U72_ggaag(T275, T276, X449, X450, T277, notEqF_in_gg(T275, T276))
U72_ggaag(T275, T276, X449, X450, T277, notEqF_out_gg(T275, T276)) → U73_ggaag(T275, T276, X449, X450, T277, pN26_in_gagag(T276, X449, T275, X450, T277))
pN26_in_gagag(T276, T282, T275, X450, T277) → U74_gagag(T276, T282, T275, X450, T277, addK_in_ga(T276, T282))
addK_in_ga(0, s(s(s(s(s(0)))))) → addK_out_ga(0, s(s(s(s(s(0))))))
addK_in_ga(s(T285), s(X475)) → U9_ga(T285, X475, addK_in_ga(T285, X475))
U9_ga(T285, X475, addK_out_ga(T285, X475)) → addK_out_ga(s(T285), s(X475))
U74_gagag(T276, T282, T275, X450, T277, addK_out_ga(T276, T282)) → U75_gagag(T276, T282, T275, X450, T277, pN27_in_ggagg(T275, T282, X450, T276, T277))
pN27_in_ggagg(T275, T282, X450, T276, T277) → U76_ggagg(T275, T282, X450, T276, T277, notEqF_in_gg(T275, T282))
U76_ggagg(T275, T282, X450, T276, T277, notEqF_out_gg(T275, T282)) → U77_ggagg(T275, T282, X450, T276, T277, pN28_in_gagg(T275, X450, T276, T277))
pN28_in_gagg(T275, T290, T276, T277) → U78_gagg(T275, T290, T276, T277, addK_in_ga(T275, T290))
U78_gagg(T275, T290, T276, T277, addK_out_ga(T275, T290)) → U79_gagg(T275, T290, T276, T277, pN29_in_gggg(T276, T290, T275, T277))
pN29_in_gggg(T276, T290, T275, T277) → U80_gggg(T276, T290, T275, T277, notEqF_in_gg(T276, T290))
U80_gggg(T276, T290, T275, T277, notEqF_out_gg(T276, T290)) → U81_gggg(T276, T290, T275, T277, noattackN3_in_gg(T275, T277))
noattackN3_in_gg(T301, []) → noattackN3_out_gg(T301, [])
noattackN3_in_gg(T308, .(T309, T310)) → U21_gg(T308, T309, T310, pN4_in_ggaag(T308, T309, X518, X519, T310))
pN4_in_ggaag(T308, T309, X518, X519, T310) → U82_ggaag(T308, T309, X518, X519, T310, notEqF_in_gg(T308, T309))
U82_ggaag(T308, T309, X518, X519, T310, notEqF_out_gg(T308, T309)) → U83_ggaag(T308, T309, X518, X519, T310, pN30_in_gagag(T309, X518, T308, X519, T310))
pN30_in_gagag(T309, T315, T308, X519, T310) → U84_gagag(T309, T315, T308, X519, T310, addL_in_ga(T309, T315))
addL_in_ga(0, s(s(s(s(s(s(0))))))) → addL_out_ga(0, s(s(s(s(s(s(0)))))))
addL_in_ga(s(T318), s(X544)) → U10_ga(T318, X544, addL_in_ga(T318, X544))
U10_ga(T318, X544, addL_out_ga(T318, X544)) → addL_out_ga(s(T318), s(X544))
U84_gagag(T309, T315, T308, X519, T310, addL_out_ga(T309, T315)) → U85_gagag(T309, T315, T308, X519, T310, pN31_in_ggagg(T308, T315, X519, T309, T310))
pN31_in_ggagg(T308, T315, X519, T309, T310) → U86_ggagg(T308, T315, X519, T309, T310, notEqF_in_gg(T308, T315))
U86_ggagg(T308, T315, X519, T309, T310, notEqF_out_gg(T308, T315)) → U87_ggagg(T308, T315, X519, T309, T310, pN32_in_gagg(T308, X519, T309, T310))
pN32_in_gagg(T308, T323, T309, T310) → U88_gagg(T308, T323, T309, T310, addL_in_ga(T308, T323))
U88_gagg(T308, T323, T309, T310, addL_out_ga(T308, T323)) → U89_gagg(T308, T323, T309, T310, pN33_in_gggg(T309, T323, T308, T310))
pN33_in_gggg(T309, T323, T308, T310) → U90_gggg(T309, T323, T308, T310, notEqF_in_gg(T309, T323))
U90_gggg(T309, T323, T308, T310, notEqF_out_gg(T309, T323)) → U91_gggg(T309, T323, T308, T310, noattackN5_in_gg(T308, T310))
noattackN5_in_gg(T334, []) → noattackN5_out_gg(T334, [])
noattackN5_in_gg(T341, .(T342, T343)) → U22_gg(T341, T342, T343, pN6_in_ggaagg(T341, T342, X587, X588, T343, s(s(s(s(s(s(s(0)))))))))
pN6_in_ggaagg(T341, T342, X587, X588, T343, T346) → U92_ggaagg(T341, T342, X587, X588, T343, T346, notEqF_in_gg(T341, T342))
U92_ggaagg(T341, T342, X587, X588, T343, T346, notEqF_out_gg(T341, T342)) → U93_ggaagg(T341, T342, X587, X588, T343, T346, pN34_in_gagagg(T342, X587, T341, X588, T343, T346))
pN34_in_gagagg(T342, T351, T341, X588, T343, T346) → U94_gagagg(T342, T351, T341, X588, T343, T346, addM_in_ga(T342, T351))
addM_in_ga(0, s(s(s(s(s(s(s(0)))))))) → addM_out_ga(0, s(s(s(s(s(s(s(0))))))))
addM_in_ga(s(T354), s(X615)) → U11_ga(T354, X615, addM_in_ga(T354, X615))
U11_ga(T354, X615, addM_out_ga(T354, X615)) → addM_out_ga(s(T354), s(X615))
U94_gagagg(T342, T351, T341, X588, T343, T346, addM_out_ga(T342, T351)) → U95_gagagg(T342, T351, T341, X588, T343, T346, pN35_in_ggaggg(T341, T351, X588, T342, T343, T346))
pN35_in_ggaggg(T341, T351, X588, T342, T343, T346) → U96_ggaggg(T341, T351, X588, T342, T343, T346, notEqF_in_gg(T341, T351))
U96_ggaggg(T341, T351, X588, T342, T343, T346, notEqF_out_gg(T341, T351)) → U97_ggaggg(T341, T351, X588, T342, T343, T346, pN36_in_gaggg(T341, X588, T342, T343, T346))
pN36_in_gaggg(T341, T359, T342, T343, T346) → U98_gaggg(T341, T359, T342, T343, T346, addM_in_ga(T341, T359))
U98_gaggg(T341, T359, T342, T343, T346, addM_out_ga(T341, T359)) → U99_gaggg(T341, T359, T342, T343, T346, pN37_in_ggggg(T342, T359, T341, T343, T346))
pN37_in_ggggg(T342, T359, T341, T343, T346) → U100_ggggg(T342, T359, T341, T343, T346, notEqF_in_gg(T342, T359))
U100_ggggg(T342, T359, T341, T343, T346, notEqF_out_gg(T342, T359)) → U101_ggggg(T342, T359, T341, T343, T346, noattackN7_in_ggg(T341, T343, T346))
noattackN7_in_ggg(T376, [], T377) → noattackN7_out_ggg(T376, [], T377)
noattackN7_in_ggg(T386, .(T387, T388), T389) → U23_ggg(T386, T387, T388, T389, pN8_in_gggaag(T386, T387, T389, X658, X659, T388))
pN8_in_gggaag(T386, T387, T389, X658, X659, T388) → U102_gggaag(T386, T387, T389, X658, X659, T388, notEqF_in_gg(T386, T387))
U102_gggaag(T386, T387, T389, X658, X659, T388, notEqF_out_gg(T386, T387)) → U103_gggaag(T386, T387, T389, X658, X659, T388, pN38_in_ggagag(T387, T389, X658, T386, X659, T388))
pN38_in_ggagag(T387, T389, T396, T386, X659, T388) → U104_ggagag(T387, T389, T396, T386, X659, T388, addN_in_gga(T387, T389, T396))
addN_in_gga(0, T403, s(T403)) → addN_out_gga(0, T403, s(T403))
addN_in_gga(s(T408), T409, s(X684)) → U12_gga(T408, T409, X684, addN_in_gga(T408, T409, X684))
U12_gga(T408, T409, X684, addN_out_gga(T408, T409, X684)) → addN_out_gga(s(T408), T409, s(X684))
U104_ggagag(T387, T389, T396, T386, X659, T388, addN_out_gga(T387, T389, T396)) → U105_ggagag(T387, T389, T396, T386, X659, T388, pN39_in_gggagg(T386, T396, T389, X659, T387, T388))
pN39_in_gggagg(T386, T396, T389, X659, T387, T388) → U106_gggagg(T386, T396, T389, X659, T387, T388, notEqF_in_gg(T386, T396))
U106_gggagg(T386, T396, T389, X659, T387, T388, notEqF_out_gg(T386, T396)) → U107_gggagg(T386, T396, T389, X659, T387, T388, pN40_in_ggagg(T386, T389, X659, T387, T388))
pN40_in_ggagg(T386, T389, T418, T387, T388) → U108_ggagg(T386, T389, T418, T387, T388, addN_in_gga(T386, T389, T418))
U108_ggagg(T386, T389, T418, T387, T388, addN_out_gga(T386, T389, T418)) → U109_ggagg(T386, T389, T418, T387, T388, pN37_in_ggggg(T387, T418, T386, T388, s(T389)))
U109_ggagg(T386, T389, T418, T387, T388, pN37_out_ggggg(T387, T418, T386, T388, s(T389))) → pN40_out_ggagg(T386, T389, T418, T387, T388)
U107_gggagg(T386, T396, T389, X659, T387, T388, pN40_out_ggagg(T386, T389, X659, T387, T388)) → pN39_out_gggagg(T386, T396, T389, X659, T387, T388)
U105_ggagag(T387, T389, T396, T386, X659, T388, pN39_out_gggagg(T386, T396, T389, X659, T387, T388)) → pN38_out_ggagag(T387, T389, T396, T386, X659, T388)
U103_gggaag(T386, T387, T389, X658, X659, T388, pN38_out_ggagag(T387, T389, X658, T386, X659, T388)) → pN8_out_gggaag(T386, T387, T389, X658, X659, T388)
U23_ggg(T386, T387, T388, T389, pN8_out_gggaag(T386, T387, T389, X658, X659, T388)) → noattackN7_out_ggg(T386, .(T387, T388), T389)
U101_ggggg(T342, T359, T341, T343, T346, noattackN7_out_ggg(T341, T343, T346)) → pN37_out_ggggg(T342, T359, T341, T343, T346)
U99_gaggg(T341, T359, T342, T343, T346, pN37_out_ggggg(T342, T359, T341, T343, T346)) → pN36_out_gaggg(T341, T359, T342, T343, T346)
U97_ggaggg(T341, T351, X588, T342, T343, T346, pN36_out_gaggg(T341, X588, T342, T343, T346)) → pN35_out_ggaggg(T341, T351, X588, T342, T343, T346)
U95_gagagg(T342, T351, T341, X588, T343, T346, pN35_out_ggaggg(T341, T351, X588, T342, T343, T346)) → pN34_out_gagagg(T342, T351, T341, X588, T343, T346)
U93_ggaagg(T341, T342, X587, X588, T343, T346, pN34_out_gagagg(T342, X587, T341, X588, T343, T346)) → pN6_out_ggaagg(T341, T342, X587, X588, T343, T346)
U22_gg(T341, T342, T343, pN6_out_ggaagg(T341, T342, X587, X588, T343, s(s(s(s(s(s(s(0))))))))) → noattackN5_out_gg(T341, .(T342, T343))
U91_gggg(T309, T323, T308, T310, noattackN5_out_gg(T308, T310)) → pN33_out_gggg(T309, T323, T308, T310)
U89_gagg(T308, T323, T309, T310, pN33_out_gggg(T309, T323, T308, T310)) → pN32_out_gagg(T308, T323, T309, T310)
U87_ggagg(T308, T315, X519, T309, T310, pN32_out_gagg(T308, X519, T309, T310)) → pN31_out_ggagg(T308, T315, X519, T309, T310)
U85_gagag(T309, T315, T308, X519, T310, pN31_out_ggagg(T308, T315, X519, T309, T310)) → pN30_out_gagag(T309, T315, T308, X519, T310)
U83_ggaag(T308, T309, X518, X519, T310, pN30_out_gagag(T309, X518, T308, X519, T310)) → pN4_out_ggaag(T308, T309, X518, X519, T310)
U21_gg(T308, T309, T310, pN4_out_ggaag(T308, T309, X518, X519, T310)) → noattackN3_out_gg(T308, .(T309, T310))
U81_gggg(T276, T290, T275, T277, noattackN3_out_gg(T275, T277)) → pN29_out_gggg(T276, T290, T275, T277)
U79_gagg(T275, T290, T276, T277, pN29_out_gggg(T276, T290, T275, T277)) → pN28_out_gagg(T275, T290, T276, T277)
U77_ggagg(T275, T282, X450, T276, T277, pN28_out_gagg(T275, X450, T276, T277)) → pN27_out_ggagg(T275, T282, X450, T276, T277)
U75_gagag(T276, T282, T275, X450, T277, pN27_out_ggagg(T275, T282, X450, T276, T277)) → pN26_out_gagag(T276, T282, T275, X450, T277)
U73_ggaag(T275, T276, X449, X450, T277, pN26_out_gagag(T276, X449, T275, X450, T277)) → pN2_out_ggaag(T275, T276, X449, X450, T277)
U20_gg(T275, T276, T277, pN2_out_ggaag(T275, T276, X449, X450, T277)) → noattackN1_out_gg(T275, .(T276, T277))
U71_gggg(T243, T257, T242, T244, noattackN1_out_gg(T242, T244)) → pN25_out_gggg(T243, T257, T242, T244)
U69_gagg(T242, T257, T243, T244, pN25_out_gggg(T243, T257, T242, T244)) → pN24_out_gagg(T242, T257, T243, T244)
U67_ggagg(T242, T249, X381, T243, T244, pN24_out_gagg(T242, X381, T243, T244)) → pN23_out_ggagg(T242, T249, X381, T243, T244)
U65_gagag(T243, T249, T242, X381, T244, pN23_out_ggagg(T242, T249, X381, T243, T244)) → pN22_out_gagag(T243, T249, T242, X381, T244)
U63_ggaag(T242, T243, X380, X381, T244, pN22_out_gagag(T243, X380, T242, X381, T244)) → pZ_out_ggaag(T242, T243, X380, X381, T244)
U19_gg(T242, T243, T244, pZ_out_ggaag(T242, T243, X380, X381, T244)) → noattackY_out_gg(T242, .(T243, T244))
U61_gggg(T210, T224, T209, T211, noattackY_out_gg(T209, T211)) → pN21_out_gggg(T210, T224, T209, T211)
U59_gagg(T209, T224, T210, T211, pN21_out_gggg(T210, T224, T209, T211)) → pN20_out_gagg(T209, T224, T210, T211)
U57_ggagg(T209, T216, X312, T210, T211, pN20_out_gagg(T209, X312, T210, T211)) → pN19_out_ggagg(T209, T216, X312, T210, T211)
U55_gagag(T210, T216, T209, X312, T211, pN19_out_ggagg(T209, T216, X312, T210, T211)) → pN18_out_gagag(T210, T216, T209, X312, T211)
U53_ggaag(T209, T210, X311, X312, T211, pN18_out_gagag(T210, X311, T209, X312, T211)) → pX_out_ggaag(T209, T210, X311, X312, T211)
U18_gg(T209, T210, T211, pX_out_ggaag(T209, T210, X311, X312, T211)) → noattackW_out_gg(T209, .(T210, T211))
U51_gggg(T177, T191, T176, T178, noattackW_out_gg(T176, T178)) → pN17_out_gggg(T177, T191, T176, T178)
U49_gagg(T176, T191, T177, T178, pN17_out_gggg(T177, T191, T176, T178)) → pN16_out_gagg(T176, T191, T177, T178)
U47_ggagg(T176, T183, X243, T177, T178, pN16_out_gagg(T176, X243, T177, T178)) → pN15_out_ggagg(T176, T183, X243, T177, T178)
U45_gagag(T177, T183, T176, X243, T178, pN15_out_ggagg(T176, T183, X243, T177, T178)) → pN14_out_gagag(T177, T183, T176, X243, T178)
U43_ggaag(T176, T177, X242, X243, T178, pN14_out_gagag(T177, X242, T176, X243, T178)) → pV_out_ggaag(T176, T177, X242, X243, T178)
U17_gg(T176, T177, T178, pV_out_ggaag(T176, T177, X242, X243, T178)) → noattackU_out_gg(T176, .(T177, T178))
U41_gggg(T126, T158, T125, T127, noattackU_out_gg(T125, T127)) → pN13_out_gggg(T126, T158, T125, T127)
U39_gagg(T125, T158, T126, T127, pN13_out_gggg(T126, T158, T125, T127)) → pN12_out_gagg(T125, T158, T126, T127)
U37_ggagg(T125, T150, X156, T126, T127, pN12_out_gagg(T125, X156, T126, T127)) → pN11_out_ggagg(T125, T150, X156, T126, T127)
U35_gagag(T126, T150, T125, X156, T127, pN11_out_ggagg(T125, T150, X156, T126, T127)) → pN10_out_gagag(T126, T150, T125, X156, T127)
U33_ggaag(T125, T126, X155, X156, T127, pN10_out_gagag(T126, X155, T125, X156, T127)) → pS_out_ggaag(T125, T126, X155, X156, T127)
U15_gg(T125, T126, T127, pS_out_ggaag(T125, T126, X155, X156, T127)) → noattackR_out_gg(T125, .(T126, T127))
U30_gg(T108, T109, noattackR_out_gg(T108, T109)) → U31_gg(T108, T109, safeT_in_g(T109))
safeT_in_g([]) → safeT_out_g([])
safeT_in_g(.(T427, T428)) → U16_g(T427, T428, pQ_in_gg(T427, T428))
U16_g(T427, T428, pQ_out_gg(T427, T428)) → safeT_out_g(.(T427, T428))
U31_gg(T108, T109, safeT_out_g(T109)) → pQ_out_gg(T108, T109)
U14_gg(T108, T109, pQ_out_gg(T108, T109)) → safeP_out_gg(T108, T109)
U27_gag(T20, T77, T22, safeP_out_gg(T22, T77)) → pN9_out_gag(T20, T77, T22)
U25_agaa(T22, T15, T20, T21, pN9_out_gag(T20, T21, T22)) → pB_out_agaa(T22, T15, T20, T21)
U1_a(T11, T12, pB_out_agaa(T11, .(s(s(0)), .(s(s(s(0))), .(s(s(s(s(0)))), .(s(s(s(s(s(0))))), .(s(s(s(s(s(s(0)))))), .(s(s(s(s(s(s(s(0))))))), .(s(s(s(s(s(s(s(s(0)))))))), []))))))), X16, T12)) → queensA_out_a(.(T11, T12))
PE_IN_AGGAA(T90, T86, T87, T96, T97) → U28_AGGAA(T90, T86, T87, T96, T97, deleteC_in_aga(T90, .(T86, T87), T96))
U28_AGGAA(T90, T86, T87, T96, T97, deleteC_out_aga(T90, .(T86, T87), T96)) → PERMD_IN_GA(T96, T97)
PERMD_IN_GA(.(T86, T87), .(T90, T91)) → PE_IN_AGGAA(T90, T86, T87, X104, T91)
deleteC_in_aga(T61, .(T61, T62), T62) → deleteC_out_aga(T61, .(T61, T62), T62)
deleteC_in_aga(T72, .(T70, T71), .(T70, X86)) → U2_aga(T72, T70, T71, X86, deleteC_in_aga(T72, T71, X86))
U2_aga(T72, T70, T71, X86, deleteC_out_aga(T72, T71, X86)) → deleteC_out_aga(T72, .(T70, T71), .(T70, X86))
PE_IN_AGGAA(T86, T87) → U28_AGGAA(T86, T87, deleteC_in_aga(.(T86, T87)))
U28_AGGAA(T86, T87, deleteC_out_aga(T90, .(T86, T87), T96)) → PERMD_IN_GA(T96)
PERMD_IN_GA(.(T86, T87)) → PE_IN_AGGAA(T86, T87)
deleteC_in_aga(.(T61, T62)) → deleteC_out_aga(T61, .(T61, T62), T62)
deleteC_in_aga(.(T70, T71)) → U2_aga(T70, T71, deleteC_in_aga(T71))
U2_aga(T70, T71, deleteC_out_aga(T72, T71, X86)) → deleteC_out_aga(T72, .(T70, T71), .(T70, X86))
deleteC_in_aga(x0)
U2_aga(x0, x1, x2)
The following pairs can be oriented strictly and are deleted.
The remaining pairs can at least be oriented weakly.
U28_AGGAA(T86, T87, deleteC_out_aga(T90, .(T86, T87), T96)) → PERMD_IN_GA(T96)
POL(.(x1, x2)) = 1 + x2
POL(PERMD_IN_GA(x1)) = x1
POL(PE_IN_AGGAA(x1, x2)) = 1 + x2
POL(U28_AGGAA(x1, x2, x3)) = x3
POL(U2_aga(x1, x2, x3)) = 1 + x3
POL(deleteC_in_aga(x1)) = x1
POL(deleteC_out_aga(x1, x2, x3)) = 1 + x3
deleteC_in_aga(.(T61, T62)) → deleteC_out_aga(T61, .(T61, T62), T62)
deleteC_in_aga(.(T70, T71)) → U2_aga(T70, T71, deleteC_in_aga(T71))
U2_aga(T70, T71, deleteC_out_aga(T72, T71, X86)) → deleteC_out_aga(T72, .(T70, T71), .(T70, X86))
PE_IN_AGGAA(T86, T87) → U28_AGGAA(T86, T87, deleteC_in_aga(.(T86, T87)))
PERMD_IN_GA(.(T86, T87)) → PE_IN_AGGAA(T86, T87)
deleteC_in_aga(.(T61, T62)) → deleteC_out_aga(T61, .(T61, T62), T62)
deleteC_in_aga(.(T70, T71)) → U2_aga(T70, T71, deleteC_in_aga(T71))
U2_aga(T70, T71, deleteC_out_aga(T72, T71, X86)) → deleteC_out_aga(T72, .(T70, T71), .(T70, X86))
deleteC_in_aga(x0)
U2_aga(x0, x1, x2)