(0) Obligation:

Clauses:

queens(Y) :- ','(perm(.(s(0), .(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)))))))), [])))))))), Y), safe(Y)).
perm([], []).
perm(.(X, Y), .(V, Res)) :- ','(delete(V, .(X, Y), Rest), perm(Rest, Res)).
delete(X, .(X, Y), Y).
delete(X, .(F, T), .(F, R)) :- delete(X, T, R).
safe([]).
safe(.(X, Y)) :- ','(noattack(X, Y, s(0)), safe(Y)).
noattack(X, [], N).
noattack(X, .(F, T), N) :- ','(notEq(X, F), ','(add(F, N, FplusN), ','(notEq(X, FplusN), ','(add(X, N, XplusN), ','(notEq(F, XplusN), noattack(X, T, s(N))))))).
add(0, X, X).
add(s(X), Y, s(Z)) :- add(X, Y, Z).
notEq(0, s(X)).
notEq(s(X), 0).
notEq(s(X), s(Y)) :- notEq(X, Y).

Query: queens(a)

(1) PrologToPiTRSViaGraphTransformerProof (SOUND transformation)

Transformed Prolog program to (Pi-)TRS.

(2) Obligation:

Pi-finite rewrite system:
The TRS R consists of the following rules:

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))

The argument filtering Pi contains the following mapping:
queensA_in_a(x1)  =  queensA_in_a
U1_a(x1, x2, x3)  =  U1_a(x3)
pB_in_agaa(x1, x2, x3, x4)  =  pB_in_agaa(x2)
U24_agaa(x1, x2, x3, x4, x5)  =  U24_agaa(x2, x5)
deleteO_in_aga(x1, x2, x3)  =  deleteO_in_aga(x2)
deleteO_out_aga(x1, x2, x3)  =  deleteO_out_aga(x1, x2, x3)
U13_aga(x1, x2, x3, x4)  =  U13_aga(x2, x4)
deleteC_in_aga(x1, x2, x3)  =  deleteC_in_aga(x2)
.(x1, x2)  =  .(x1, x2)
deleteC_out_aga(x1, x2, x3)  =  deleteC_out_aga(x1, x2, x3)
U2_aga(x1, x2, x3, x4, x5)  =  U2_aga(x2, x3, x5)
U25_agaa(x1, x2, x3, x4, x5)  =  U25_agaa(x1, x2, x3, x5)
pN9_in_gag(x1, x2, x3)  =  pN9_in_gag(x1, x3)
U26_gag(x1, x2, x3, x4)  =  U26_gag(x1, x3, x4)
permD_in_ga(x1, x2)  =  permD_in_ga(x1)
[]  =  []
permD_out_ga(x1, x2)  =  permD_out_ga(x1, x2)
U3_ga(x1, x2, x3, x4, x5)  =  U3_ga(x1, x2, x5)
pE_in_aggaa(x1, x2, x3, x4, x5)  =  pE_in_aggaa(x2, x3)
U28_aggaa(x1, x2, x3, x4, x5, x6)  =  U28_aggaa(x2, x3, x6)
U29_aggaa(x1, x2, x3, x4, x5, x6)  =  U29_aggaa(x1, x2, x3, x4, x6)
pE_out_aggaa(x1, x2, x3, x4, x5)  =  pE_out_aggaa(x1, x2, x3, x4, x5)
U27_gag(x1, x2, x3, x4)  =  U27_gag(x1, x2, x3, x4)
safeP_in_gg(x1, x2)  =  safeP_in_gg(x1, x2)
U14_gg(x1, x2, x3)  =  U14_gg(x1, x2, x3)
pQ_in_gg(x1, x2)  =  pQ_in_gg(x1, x2)
U30_gg(x1, x2, x3)  =  U30_gg(x1, x2, x3)
noattackR_in_gg(x1, x2)  =  noattackR_in_gg(x1, x2)
noattackR_out_gg(x1, x2)  =  noattackR_out_gg(x1, x2)
U15_gg(x1, x2, x3, x4)  =  U15_gg(x1, x2, x3, x4)
pS_in_ggaag(x1, x2, x3, x4, x5)  =  pS_in_ggaag(x1, x2, x5)
U32_ggaag(x1, x2, x3, x4, x5, x6)  =  U32_ggaag(x1, x2, x5, x6)
notEqF_in_gg(x1, x2)  =  notEqF_in_gg(x1, x2)
0  =  0
s(x1)  =  s(x1)
notEqF_out_gg(x1, x2)  =  notEqF_out_gg(x1, x2)
U4_gg(x1, x2, x3)  =  U4_gg(x1, x2, x3)
U33_ggaag(x1, x2, x3, x4, x5, x6)  =  U33_ggaag(x1, x2, x5, x6)
pN10_in_gagag(x1, x2, x3, x4, x5)  =  pN10_in_gagag(x1, x3, x5)
U34_gagag(x1, x2, x3, x4, x5, x6)  =  U34_gagag(x1, x3, x5, x6)
addG_in_ga(x1, x2)  =  addG_in_ga(x1)
addG_out_ga(x1, x2)  =  addG_out_ga(x1, x2)
U5_ga(x1, x2, x3)  =  U5_ga(x1, x3)
U35_gagag(x1, x2, x3, x4, x5, x6)  =  U35_gagag(x1, x2, x3, x5, x6)
pN11_in_ggagg(x1, x2, x3, x4, x5)  =  pN11_in_ggagg(x1, x2, x4, x5)
U36_ggagg(x1, x2, x3, x4, x5, x6)  =  U36_ggagg(x1, x2, x4, x5, x6)
U37_ggagg(x1, x2, x3, x4, x5, x6)  =  U37_ggagg(x1, x2, x4, x5, x6)
pN12_in_gagg(x1, x2, x3, x4)  =  pN12_in_gagg(x1, x3, x4)
U38_gagg(x1, x2, x3, x4, x5)  =  U38_gagg(x1, x3, x4, x5)
U39_gagg(x1, x2, x3, x4, x5)  =  U39_gagg(x1, x2, x3, x4, x5)
pN13_in_gggg(x1, x2, x3, x4)  =  pN13_in_gggg(x1, x2, x3, x4)
U40_gggg(x1, x2, x3, x4, x5)  =  U40_gggg(x1, x2, x3, x4, x5)
U41_gggg(x1, x2, x3, x4, x5)  =  U41_gggg(x1, x2, x3, x4, x5)
noattackU_in_gg(x1, x2)  =  noattackU_in_gg(x1, x2)
noattackU_out_gg(x1, x2)  =  noattackU_out_gg(x1, x2)
U17_gg(x1, x2, x3, x4)  =  U17_gg(x1, x2, x3, x4)
pV_in_ggaag(x1, x2, x3, x4, x5)  =  pV_in_ggaag(x1, x2, x5)
U42_ggaag(x1, x2, x3, x4, x5, x6)  =  U42_ggaag(x1, x2, x5, x6)
U43_ggaag(x1, x2, x3, x4, x5, x6)  =  U43_ggaag(x1, x2, x5, x6)
pN14_in_gagag(x1, x2, x3, x4, x5)  =  pN14_in_gagag(x1, x3, x5)
U44_gagag(x1, x2, x3, x4, x5, x6)  =  U44_gagag(x1, x3, x5, x6)
addH_in_ga(x1, x2)  =  addH_in_ga(x1)
addH_out_ga(x1, x2)  =  addH_out_ga(x1, x2)
U6_ga(x1, x2, x3)  =  U6_ga(x1, x3)
U45_gagag(x1, x2, x3, x4, x5, x6)  =  U45_gagag(x1, x2, x3, x5, x6)
pN15_in_ggagg(x1, x2, x3, x4, x5)  =  pN15_in_ggagg(x1, x2, x4, x5)
U46_ggagg(x1, x2, x3, x4, x5, x6)  =  U46_ggagg(x1, x2, x4, x5, x6)
U47_ggagg(x1, x2, x3, x4, x5, x6)  =  U47_ggagg(x1, x2, x4, x5, x6)
pN16_in_gagg(x1, x2, x3, x4)  =  pN16_in_gagg(x1, x3, x4)
U48_gagg(x1, x2, x3, x4, x5)  =  U48_gagg(x1, x3, x4, x5)
U49_gagg(x1, x2, x3, x4, x5)  =  U49_gagg(x1, x2, x3, x4, x5)
pN17_in_gggg(x1, x2, x3, x4)  =  pN17_in_gggg(x1, x2, x3, x4)
U50_gggg(x1, x2, x3, x4, x5)  =  U50_gggg(x1, x2, x3, x4, x5)
U51_gggg(x1, x2, x3, x4, x5)  =  U51_gggg(x1, x2, x3, x4, x5)
noattackW_in_gg(x1, x2)  =  noattackW_in_gg(x1, x2)
noattackW_out_gg(x1, x2)  =  noattackW_out_gg(x1, x2)
U18_gg(x1, x2, x3, x4)  =  U18_gg(x1, x2, x3, x4)
pX_in_ggaag(x1, x2, x3, x4, x5)  =  pX_in_ggaag(x1, x2, x5)
U52_ggaag(x1, x2, x3, x4, x5, x6)  =  U52_ggaag(x1, x2, x5, x6)
U53_ggaag(x1, x2, x3, x4, x5, x6)  =  U53_ggaag(x1, x2, x5, x6)
pN18_in_gagag(x1, x2, x3, x4, x5)  =  pN18_in_gagag(x1, x3, x5)
U54_gagag(x1, x2, x3, x4, x5, x6)  =  U54_gagag(x1, x3, x5, x6)
addI_in_ga(x1, x2)  =  addI_in_ga(x1)
addI_out_ga(x1, x2)  =  addI_out_ga(x1, x2)
U7_ga(x1, x2, x3)  =  U7_ga(x1, x3)
U55_gagag(x1, x2, x3, x4, x5, x6)  =  U55_gagag(x1, x2, x3, x5, x6)
pN19_in_ggagg(x1, x2, x3, x4, x5)  =  pN19_in_ggagg(x1, x2, x4, x5)
U56_ggagg(x1, x2, x3, x4, x5, x6)  =  U56_ggagg(x1, x2, x4, x5, x6)
U57_ggagg(x1, x2, x3, x4, x5, x6)  =  U57_ggagg(x1, x2, x4, x5, x6)
pN20_in_gagg(x1, x2, x3, x4)  =  pN20_in_gagg(x1, x3, x4)
U58_gagg(x1, x2, x3, x4, x5)  =  U58_gagg(x1, x3, x4, x5)
U59_gagg(x1, x2, x3, x4, x5)  =  U59_gagg(x1, x2, x3, x4, x5)
pN21_in_gggg(x1, x2, x3, x4)  =  pN21_in_gggg(x1, x2, x3, x4)
U60_gggg(x1, x2, x3, x4, x5)  =  U60_gggg(x1, x2, x3, x4, x5)
U61_gggg(x1, x2, x3, x4, x5)  =  U61_gggg(x1, x2, x3, x4, x5)
noattackY_in_gg(x1, x2)  =  noattackY_in_gg(x1, x2)
noattackY_out_gg(x1, x2)  =  noattackY_out_gg(x1, x2)
U19_gg(x1, x2, x3, x4)  =  U19_gg(x1, x2, x3, x4)
pZ_in_ggaag(x1, x2, x3, x4, x5)  =  pZ_in_ggaag(x1, x2, x5)
U62_ggaag(x1, x2, x3, x4, x5, x6)  =  U62_ggaag(x1, x2, x5, x6)
U63_ggaag(x1, x2, x3, x4, x5, x6)  =  U63_ggaag(x1, x2, x5, x6)
pN22_in_gagag(x1, x2, x3, x4, x5)  =  pN22_in_gagag(x1, x3, x5)
U64_gagag(x1, x2, x3, x4, x5, x6)  =  U64_gagag(x1, x3, x5, x6)
addJ_in_ga(x1, x2)  =  addJ_in_ga(x1)
addJ_out_ga(x1, x2)  =  addJ_out_ga(x1, x2)
U8_ga(x1, x2, x3)  =  U8_ga(x1, x3)
U65_gagag(x1, x2, x3, x4, x5, x6)  =  U65_gagag(x1, x2, x3, x5, x6)
pN23_in_ggagg(x1, x2, x3, x4, x5)  =  pN23_in_ggagg(x1, x2, x4, x5)
U66_ggagg(x1, x2, x3, x4, x5, x6)  =  U66_ggagg(x1, x2, x4, x5, x6)
U67_ggagg(x1, x2, x3, x4, x5, x6)  =  U67_ggagg(x1, x2, x4, x5, x6)
pN24_in_gagg(x1, x2, x3, x4)  =  pN24_in_gagg(x1, x3, x4)
U68_gagg(x1, x2, x3, x4, x5)  =  U68_gagg(x1, x3, x4, x5)
U69_gagg(x1, x2, x3, x4, x5)  =  U69_gagg(x1, x2, x3, x4, x5)
pN25_in_gggg(x1, x2, x3, x4)  =  pN25_in_gggg(x1, x2, x3, x4)
U70_gggg(x1, x2, x3, x4, x5)  =  U70_gggg(x1, x2, x3, x4, x5)
U71_gggg(x1, x2, x3, x4, x5)  =  U71_gggg(x1, x2, x3, x4, x5)
noattackN1_in_gg(x1, x2)  =  noattackN1_in_gg(x1, x2)
noattackN1_out_gg(x1, x2)  =  noattackN1_out_gg(x1, x2)
U20_gg(x1, x2, x3, x4)  =  U20_gg(x1, x2, x3, x4)
pN2_in_ggaag(x1, x2, x3, x4, x5)  =  pN2_in_ggaag(x1, x2, x5)
U72_ggaag(x1, x2, x3, x4, x5, x6)  =  U72_ggaag(x1, x2, x5, x6)
U73_ggaag(x1, x2, x3, x4, x5, x6)  =  U73_ggaag(x1, x2, x5, x6)
pN26_in_gagag(x1, x2, x3, x4, x5)  =  pN26_in_gagag(x1, x3, x5)
U74_gagag(x1, x2, x3, x4, x5, x6)  =  U74_gagag(x1, x3, x5, x6)
addK_in_ga(x1, x2)  =  addK_in_ga(x1)
addK_out_ga(x1, x2)  =  addK_out_ga(x1, x2)
U9_ga(x1, x2, x3)  =  U9_ga(x1, x3)
U75_gagag(x1, x2, x3, x4, x5, x6)  =  U75_gagag(x1, x2, x3, x5, x6)
pN27_in_ggagg(x1, x2, x3, x4, x5)  =  pN27_in_ggagg(x1, x2, x4, x5)
U76_ggagg(x1, x2, x3, x4, x5, x6)  =  U76_ggagg(x1, x2, x4, x5, x6)
U77_ggagg(x1, x2, x3, x4, x5, x6)  =  U77_ggagg(x1, x2, x4, x5, x6)
pN28_in_gagg(x1, x2, x3, x4)  =  pN28_in_gagg(x1, x3, x4)
U78_gagg(x1, x2, x3, x4, x5)  =  U78_gagg(x1, x3, x4, x5)
U79_gagg(x1, x2, x3, x4, x5)  =  U79_gagg(x1, x2, x3, x4, x5)
pN29_in_gggg(x1, x2, x3, x4)  =  pN29_in_gggg(x1, x2, x3, x4)
U80_gggg(x1, x2, x3, x4, x5)  =  U80_gggg(x1, x2, x3, x4, x5)
U81_gggg(x1, x2, x3, x4, x5)  =  U81_gggg(x1, x2, x3, x4, x5)
noattackN3_in_gg(x1, x2)  =  noattackN3_in_gg(x1, x2)
noattackN3_out_gg(x1, x2)  =  noattackN3_out_gg(x1, x2)
U21_gg(x1, x2, x3, x4)  =  U21_gg(x1, x2, x3, x4)
pN4_in_ggaag(x1, x2, x3, x4, x5)  =  pN4_in_ggaag(x1, x2, x5)
U82_ggaag(x1, x2, x3, x4, x5, x6)  =  U82_ggaag(x1, x2, x5, x6)
U83_ggaag(x1, x2, x3, x4, x5, x6)  =  U83_ggaag(x1, x2, x5, x6)
pN30_in_gagag(x1, x2, x3, x4, x5)  =  pN30_in_gagag(x1, x3, x5)
U84_gagag(x1, x2, x3, x4, x5, x6)  =  U84_gagag(x1, x3, x5, x6)
addL_in_ga(x1, x2)  =  addL_in_ga(x1)
addL_out_ga(x1, x2)  =  addL_out_ga(x1, x2)
U10_ga(x1, x2, x3)  =  U10_ga(x1, x3)
U85_gagag(x1, x2, x3, x4, x5, x6)  =  U85_gagag(x1, x2, x3, x5, x6)
pN31_in_ggagg(x1, x2, x3, x4, x5)  =  pN31_in_ggagg(x1, x2, x4, x5)
U86_ggagg(x1, x2, x3, x4, x5, x6)  =  U86_ggagg(x1, x2, x4, x5, x6)
U87_ggagg(x1, x2, x3, x4, x5, x6)  =  U87_ggagg(x1, x2, x4, x5, x6)
pN32_in_gagg(x1, x2, x3, x4)  =  pN32_in_gagg(x1, x3, x4)
U88_gagg(x1, x2, x3, x4, x5)  =  U88_gagg(x1, x3, x4, x5)
U89_gagg(x1, x2, x3, x4, x5)  =  U89_gagg(x1, x2, x3, x4, x5)
pN33_in_gggg(x1, x2, x3, x4)  =  pN33_in_gggg(x1, x2, x3, x4)
U90_gggg(x1, x2, x3, x4, x5)  =  U90_gggg(x1, x2, x3, x4, x5)
U91_gggg(x1, x2, x3, x4, x5)  =  U91_gggg(x1, x2, x3, x4, x5)
noattackN5_in_gg(x1, x2)  =  noattackN5_in_gg(x1, x2)
noattackN5_out_gg(x1, x2)  =  noattackN5_out_gg(x1, x2)
U22_gg(x1, x2, x3, x4)  =  U22_gg(x1, x2, x3, x4)
pN6_in_ggaagg(x1, x2, x3, x4, x5, x6)  =  pN6_in_ggaagg(x1, x2, x5, x6)
U92_ggaagg(x1, x2, x3, x4, x5, x6, x7)  =  U92_ggaagg(x1, x2, x5, x6, x7)
U93_ggaagg(x1, x2, x3, x4, x5, x6, x7)  =  U93_ggaagg(x1, x2, x5, x6, x7)
pN34_in_gagagg(x1, x2, x3, x4, x5, x6)  =  pN34_in_gagagg(x1, x3, x5, x6)
U94_gagagg(x1, x2, x3, x4, x5, x6, x7)  =  U94_gagagg(x1, x3, x5, x6, x7)
addM_in_ga(x1, x2)  =  addM_in_ga(x1)
addM_out_ga(x1, x2)  =  addM_out_ga(x1, x2)
U11_ga(x1, x2, x3)  =  U11_ga(x1, x3)
U95_gagagg(x1, x2, x3, x4, x5, x6, x7)  =  U95_gagagg(x1, x2, x3, x5, x6, x7)
pN35_in_ggaggg(x1, x2, x3, x4, x5, x6)  =  pN35_in_ggaggg(x1, x2, x4, x5, x6)
U96_ggaggg(x1, x2, x3, x4, x5, x6, x7)  =  U96_ggaggg(x1, x2, x4, x5, x6, x7)
U97_ggaggg(x1, x2, x3, x4, x5, x6, x7)  =  U97_ggaggg(x1, x2, x4, x5, x6, x7)
pN36_in_gaggg(x1, x2, x3, x4, x5)  =  pN36_in_gaggg(x1, x3, x4, x5)
U98_gaggg(x1, x2, x3, x4, x5, x6)  =  U98_gaggg(x1, x3, x4, x5, x6)
U99_gaggg(x1, x2, x3, x4, x5, x6)  =  U99_gaggg(x1, x2, x3, x4, x5, x6)
pN37_in_ggggg(x1, x2, x3, x4, x5)  =  pN37_in_ggggg(x1, x2, x3, x4, x5)
U100_ggggg(x1, x2, x3, x4, x5, x6)  =  U100_ggggg(x1, x2, x3, x4, x5, x6)
U101_ggggg(x1, x2, x3, x4, x5, x6)  =  U101_ggggg(x1, x2, x3, x4, x5, x6)
noattackN7_in_ggg(x1, x2, x3)  =  noattackN7_in_ggg(x1, x2, x3)
noattackN7_out_ggg(x1, x2, x3)  =  noattackN7_out_ggg(x1, x2, x3)
U23_ggg(x1, x2, x3, x4, x5)  =  U23_ggg(x1, x2, x3, x4, x5)
pN8_in_gggaag(x1, x2, x3, x4, x5, x6)  =  pN8_in_gggaag(x1, x2, x3, x6)
U102_gggaag(x1, x2, x3, x4, x5, x6, x7)  =  U102_gggaag(x1, x2, x3, x6, x7)
U103_gggaag(x1, x2, x3, x4, x5, x6, x7)  =  U103_gggaag(x1, x2, x3, x6, x7)
pN38_in_ggagag(x1, x2, x3, x4, x5, x6)  =  pN38_in_ggagag(x1, x2, x4, x6)
U104_ggagag(x1, x2, x3, x4, x5, x6, x7)  =  U104_ggagag(x1, x2, x4, x6, x7)
addN_in_gga(x1, x2, x3)  =  addN_in_gga(x1, x2)
addN_out_gga(x1, x2, x3)  =  addN_out_gga(x1, x2, x3)
U12_gga(x1, x2, x3, x4)  =  U12_gga(x1, x2, x4)
U105_ggagag(x1, x2, x3, x4, x5, x6, x7)  =  U105_ggagag(x1, x2, x3, x4, x6, x7)
pN39_in_gggagg(x1, x2, x3, x4, x5, x6)  =  pN39_in_gggagg(x1, x2, x3, x5, x6)
U106_gggagg(x1, x2, x3, x4, x5, x6, x7)  =  U106_gggagg(x1, x2, x3, x5, x6, x7)
U107_gggagg(x1, x2, x3, x4, x5, x6, x7)  =  U107_gggagg(x1, x2, x3, x5, x6, x7)
pN40_in_ggagg(x1, x2, x3, x4, x5)  =  pN40_in_ggagg(x1, x2, x4, x5)
U108_ggagg(x1, x2, x3, x4, x5, x6)  =  U108_ggagg(x1, x2, x4, x5, x6)
U109_ggagg(x1, x2, x3, x4, x5, x6)  =  U109_ggagg(x1, x2, x3, x4, x5, x6)
pN37_out_ggggg(x1, x2, x3, x4, x5)  =  pN37_out_ggggg(x1, x2, x3, x4, x5)
pN40_out_ggagg(x1, x2, x3, x4, x5)  =  pN40_out_ggagg(x1, x2, x3, x4, x5)
pN39_out_gggagg(x1, x2, x3, x4, x5, x6)  =  pN39_out_gggagg(x1, x2, x3, x4, x5, x6)
pN38_out_ggagag(x1, x2, x3, x4, x5, x6)  =  pN38_out_ggagag(x1, x2, x3, x4, x5, x6)
pN8_out_gggaag(x1, x2, x3, x4, x5, x6)  =  pN8_out_gggaag(x1, x2, x3, x4, x5, x6)
pN36_out_gaggg(x1, x2, x3, x4, x5)  =  pN36_out_gaggg(x1, x2, x3, x4, x5)
pN35_out_ggaggg(x1, x2, x3, x4, x5, x6)  =  pN35_out_ggaggg(x1, x2, x3, x4, x5, x6)
pN34_out_gagagg(x1, x2, x3, x4, x5, x6)  =  pN34_out_gagagg(x1, x2, x3, x4, x5, x6)
pN6_out_ggaagg(x1, x2, x3, x4, x5, x6)  =  pN6_out_ggaagg(x1, x2, x3, x4, x5, x6)
pN33_out_gggg(x1, x2, x3, x4)  =  pN33_out_gggg(x1, x2, x3, x4)
pN32_out_gagg(x1, x2, x3, x4)  =  pN32_out_gagg(x1, x2, x3, x4)
pN31_out_ggagg(x1, x2, x3, x4, x5)  =  pN31_out_ggagg(x1, x2, x3, x4, x5)
pN30_out_gagag(x1, x2, x3, x4, x5)  =  pN30_out_gagag(x1, x2, x3, x4, x5)
pN4_out_ggaag(x1, x2, x3, x4, x5)  =  pN4_out_ggaag(x1, x2, x3, x4, x5)
pN29_out_gggg(x1, x2, x3, x4)  =  pN29_out_gggg(x1, x2, x3, x4)
pN28_out_gagg(x1, x2, x3, x4)  =  pN28_out_gagg(x1, x2, x3, x4)
pN27_out_ggagg(x1, x2, x3, x4, x5)  =  pN27_out_ggagg(x1, x2, x3, x4, x5)
pN26_out_gagag(x1, x2, x3, x4, x5)  =  pN26_out_gagag(x1, x2, x3, x4, x5)
pN2_out_ggaag(x1, x2, x3, x4, x5)  =  pN2_out_ggaag(x1, x2, x3, x4, x5)
pN25_out_gggg(x1, x2, x3, x4)  =  pN25_out_gggg(x1, x2, x3, x4)
pN24_out_gagg(x1, x2, x3, x4)  =  pN24_out_gagg(x1, x2, x3, x4)
pN23_out_ggagg(x1, x2, x3, x4, x5)  =  pN23_out_ggagg(x1, x2, x3, x4, x5)
pN22_out_gagag(x1, x2, x3, x4, x5)  =  pN22_out_gagag(x1, x2, x3, x4, x5)
pZ_out_ggaag(x1, x2, x3, x4, x5)  =  pZ_out_ggaag(x1, x2, x3, x4, x5)
pN21_out_gggg(x1, x2, x3, x4)  =  pN21_out_gggg(x1, x2, x3, x4)
pN20_out_gagg(x1, x2, x3, x4)  =  pN20_out_gagg(x1, x2, x3, x4)
pN19_out_ggagg(x1, x2, x3, x4, x5)  =  pN19_out_ggagg(x1, x2, x3, x4, x5)
pN18_out_gagag(x1, x2, x3, x4, x5)  =  pN18_out_gagag(x1, x2, x3, x4, x5)
pX_out_ggaag(x1, x2, x3, x4, x5)  =  pX_out_ggaag(x1, x2, x3, x4, x5)
pN17_out_gggg(x1, x2, x3, x4)  =  pN17_out_gggg(x1, x2, x3, x4)
pN16_out_gagg(x1, x2, x3, x4)  =  pN16_out_gagg(x1, x2, x3, x4)
pN15_out_ggagg(x1, x2, x3, x4, x5)  =  pN15_out_ggagg(x1, x2, x3, x4, x5)
pN14_out_gagag(x1, x2, x3, x4, x5)  =  pN14_out_gagag(x1, x2, x3, x4, x5)
pV_out_ggaag(x1, x2, x3, x4, x5)  =  pV_out_ggaag(x1, x2, x3, x4, x5)
pN13_out_gggg(x1, x2, x3, x4)  =  pN13_out_gggg(x1, x2, x3, x4)
pN12_out_gagg(x1, x2, x3, x4)  =  pN12_out_gagg(x1, x2, x3, x4)
pN11_out_ggagg(x1, x2, x3, x4, x5)  =  pN11_out_ggagg(x1, x2, x3, x4, x5)
pN10_out_gagag(x1, x2, x3, x4, x5)  =  pN10_out_gagag(x1, x2, x3, x4, x5)
pS_out_ggaag(x1, x2, x3, x4, x5)  =  pS_out_ggaag(x1, x2, x3, x4, x5)
U31_gg(x1, x2, x3)  =  U31_gg(x1, x2, x3)
safeT_in_g(x1)  =  safeT_in_g(x1)
safeT_out_g(x1)  =  safeT_out_g(x1)
U16_g(x1, x2, x3)  =  U16_g(x1, x2, x3)
pQ_out_gg(x1, x2)  =  pQ_out_gg(x1, x2)
safeP_out_gg(x1, x2)  =  safeP_out_gg(x1, x2)
pN9_out_gag(x1, x2, x3)  =  pN9_out_gag(x1, x2, x3)
pB_out_agaa(x1, x2, x3, x4)  =  pB_out_agaa(x1, x2, x3, x4)
queensA_out_a(x1)  =  queensA_out_a(x1)

(3) DependencyPairsProof (EQUIVALENT transformation)

Using Dependency Pairs [AG00,LOPSTR] we result in the following initial DP problem:
Pi DP problem:
The TRS P consists of the following rules:

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)

The TRS R consists of the following rules:

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))

The argument filtering Pi contains the following mapping:
queensA_in_a(x1)  =  queensA_in_a
U1_a(x1, x2, x3)  =  U1_a(x3)
pB_in_agaa(x1, x2, x3, x4)  =  pB_in_agaa(x2)
U24_agaa(x1, x2, x3, x4, x5)  =  U24_agaa(x2, x5)
deleteO_in_aga(x1, x2, x3)  =  deleteO_in_aga(x2)
deleteO_out_aga(x1, x2, x3)  =  deleteO_out_aga(x1, x2, x3)
U13_aga(x1, x2, x3, x4)  =  U13_aga(x2, x4)
deleteC_in_aga(x1, x2, x3)  =  deleteC_in_aga(x2)
.(x1, x2)  =  .(x1, x2)
deleteC_out_aga(x1, x2, x3)  =  deleteC_out_aga(x1, x2, x3)
U2_aga(x1, x2, x3, x4, x5)  =  U2_aga(x2, x3, x5)
U25_agaa(x1, x2, x3, x4, x5)  =  U25_agaa(x1, x2, x3, x5)
pN9_in_gag(x1, x2, x3)  =  pN9_in_gag(x1, x3)
U26_gag(x1, x2, x3, x4)  =  U26_gag(x1, x3, x4)
permD_in_ga(x1, x2)  =  permD_in_ga(x1)
[]  =  []
permD_out_ga(x1, x2)  =  permD_out_ga(x1, x2)
U3_ga(x1, x2, x3, x4, x5)  =  U3_ga(x1, x2, x5)
pE_in_aggaa(x1, x2, x3, x4, x5)  =  pE_in_aggaa(x2, x3)
U28_aggaa(x1, x2, x3, x4, x5, x6)  =  U28_aggaa(x2, x3, x6)
U29_aggaa(x1, x2, x3, x4, x5, x6)  =  U29_aggaa(x1, x2, x3, x4, x6)
pE_out_aggaa(x1, x2, x3, x4, x5)  =  pE_out_aggaa(x1, x2, x3, x4, x5)
U27_gag(x1, x2, x3, x4)  =  U27_gag(x1, x2, x3, x4)
safeP_in_gg(x1, x2)  =  safeP_in_gg(x1, x2)
U14_gg(x1, x2, x3)  =  U14_gg(x1, x2, x3)
pQ_in_gg(x1, x2)  =  pQ_in_gg(x1, x2)
U30_gg(x1, x2, x3)  =  U30_gg(x1, x2, x3)
noattackR_in_gg(x1, x2)  =  noattackR_in_gg(x1, x2)
noattackR_out_gg(x1, x2)  =  noattackR_out_gg(x1, x2)
U15_gg(x1, x2, x3, x4)  =  U15_gg(x1, x2, x3, x4)
pS_in_ggaag(x1, x2, x3, x4, x5)  =  pS_in_ggaag(x1, x2, x5)
U32_ggaag(x1, x2, x3, x4, x5, x6)  =  U32_ggaag(x1, x2, x5, x6)
notEqF_in_gg(x1, x2)  =  notEqF_in_gg(x1, x2)
0  =  0
s(x1)  =  s(x1)
notEqF_out_gg(x1, x2)  =  notEqF_out_gg(x1, x2)
U4_gg(x1, x2, x3)  =  U4_gg(x1, x2, x3)
U33_ggaag(x1, x2, x3, x4, x5, x6)  =  U33_ggaag(x1, x2, x5, x6)
pN10_in_gagag(x1, x2, x3, x4, x5)  =  pN10_in_gagag(x1, x3, x5)
U34_gagag(x1, x2, x3, x4, x5, x6)  =  U34_gagag(x1, x3, x5, x6)
addG_in_ga(x1, x2)  =  addG_in_ga(x1)
addG_out_ga(x1, x2)  =  addG_out_ga(x1, x2)
U5_ga(x1, x2, x3)  =  U5_ga(x1, x3)
U35_gagag(x1, x2, x3, x4, x5, x6)  =  U35_gagag(x1, x2, x3, x5, x6)
pN11_in_ggagg(x1, x2, x3, x4, x5)  =  pN11_in_ggagg(x1, x2, x4, x5)
U36_ggagg(x1, x2, x3, x4, x5, x6)  =  U36_ggagg(x1, x2, x4, x5, x6)
U37_ggagg(x1, x2, x3, x4, x5, x6)  =  U37_ggagg(x1, x2, x4, x5, x6)
pN12_in_gagg(x1, x2, x3, x4)  =  pN12_in_gagg(x1, x3, x4)
U38_gagg(x1, x2, x3, x4, x5)  =  U38_gagg(x1, x3, x4, x5)
U39_gagg(x1, x2, x3, x4, x5)  =  U39_gagg(x1, x2, x3, x4, x5)
pN13_in_gggg(x1, x2, x3, x4)  =  pN13_in_gggg(x1, x2, x3, x4)
U40_gggg(x1, x2, x3, x4, x5)  =  U40_gggg(x1, x2, x3, x4, x5)
U41_gggg(x1, x2, x3, x4, x5)  =  U41_gggg(x1, x2, x3, x4, x5)
noattackU_in_gg(x1, x2)  =  noattackU_in_gg(x1, x2)
noattackU_out_gg(x1, x2)  =  noattackU_out_gg(x1, x2)
U17_gg(x1, x2, x3, x4)  =  U17_gg(x1, x2, x3, x4)
pV_in_ggaag(x1, x2, x3, x4, x5)  =  pV_in_ggaag(x1, x2, x5)
U42_ggaag(x1, x2, x3, x4, x5, x6)  =  U42_ggaag(x1, x2, x5, x6)
U43_ggaag(x1, x2, x3, x4, x5, x6)  =  U43_ggaag(x1, x2, x5, x6)
pN14_in_gagag(x1, x2, x3, x4, x5)  =  pN14_in_gagag(x1, x3, x5)
U44_gagag(x1, x2, x3, x4, x5, x6)  =  U44_gagag(x1, x3, x5, x6)
addH_in_ga(x1, x2)  =  addH_in_ga(x1)
addH_out_ga(x1, x2)  =  addH_out_ga(x1, x2)
U6_ga(x1, x2, x3)  =  U6_ga(x1, x3)
U45_gagag(x1, x2, x3, x4, x5, x6)  =  U45_gagag(x1, x2, x3, x5, x6)
pN15_in_ggagg(x1, x2, x3, x4, x5)  =  pN15_in_ggagg(x1, x2, x4, x5)
U46_ggagg(x1, x2, x3, x4, x5, x6)  =  U46_ggagg(x1, x2, x4, x5, x6)
U47_ggagg(x1, x2, x3, x4, x5, x6)  =  U47_ggagg(x1, x2, x4, x5, x6)
pN16_in_gagg(x1, x2, x3, x4)  =  pN16_in_gagg(x1, x3, x4)
U48_gagg(x1, x2, x3, x4, x5)  =  U48_gagg(x1, x3, x4, x5)
U49_gagg(x1, x2, x3, x4, x5)  =  U49_gagg(x1, x2, x3, x4, x5)
pN17_in_gggg(x1, x2, x3, x4)  =  pN17_in_gggg(x1, x2, x3, x4)
U50_gggg(x1, x2, x3, x4, x5)  =  U50_gggg(x1, x2, x3, x4, x5)
U51_gggg(x1, x2, x3, x4, x5)  =  U51_gggg(x1, x2, x3, x4, x5)
noattackW_in_gg(x1, x2)  =  noattackW_in_gg(x1, x2)
noattackW_out_gg(x1, x2)  =  noattackW_out_gg(x1, x2)
U18_gg(x1, x2, x3, x4)  =  U18_gg(x1, x2, x3, x4)
pX_in_ggaag(x1, x2, x3, x4, x5)  =  pX_in_ggaag(x1, x2, x5)
U52_ggaag(x1, x2, x3, x4, x5, x6)  =  U52_ggaag(x1, x2, x5, x6)
U53_ggaag(x1, x2, x3, x4, x5, x6)  =  U53_ggaag(x1, x2, x5, x6)
pN18_in_gagag(x1, x2, x3, x4, x5)  =  pN18_in_gagag(x1, x3, x5)
U54_gagag(x1, x2, x3, x4, x5, x6)  =  U54_gagag(x1, x3, x5, x6)
addI_in_ga(x1, x2)  =  addI_in_ga(x1)
addI_out_ga(x1, x2)  =  addI_out_ga(x1, x2)
U7_ga(x1, x2, x3)  =  U7_ga(x1, x3)
U55_gagag(x1, x2, x3, x4, x5, x6)  =  U55_gagag(x1, x2, x3, x5, x6)
pN19_in_ggagg(x1, x2, x3, x4, x5)  =  pN19_in_ggagg(x1, x2, x4, x5)
U56_ggagg(x1, x2, x3, x4, x5, x6)  =  U56_ggagg(x1, x2, x4, x5, x6)
U57_ggagg(x1, x2, x3, x4, x5, x6)  =  U57_ggagg(x1, x2, x4, x5, x6)
pN20_in_gagg(x1, x2, x3, x4)  =  pN20_in_gagg(x1, x3, x4)
U58_gagg(x1, x2, x3, x4, x5)  =  U58_gagg(x1, x3, x4, x5)
U59_gagg(x1, x2, x3, x4, x5)  =  U59_gagg(x1, x2, x3, x4, x5)
pN21_in_gggg(x1, x2, x3, x4)  =  pN21_in_gggg(x1, x2, x3, x4)
U60_gggg(x1, x2, x3, x4, x5)  =  U60_gggg(x1, x2, x3, x4, x5)
U61_gggg(x1, x2, x3, x4, x5)  =  U61_gggg(x1, x2, x3, x4, x5)
noattackY_in_gg(x1, x2)  =  noattackY_in_gg(x1, x2)
noattackY_out_gg(x1, x2)  =  noattackY_out_gg(x1, x2)
U19_gg(x1, x2, x3, x4)  =  U19_gg(x1, x2, x3, x4)
pZ_in_ggaag(x1, x2, x3, x4, x5)  =  pZ_in_ggaag(x1, x2, x5)
U62_ggaag(x1, x2, x3, x4, x5, x6)  =  U62_ggaag(x1, x2, x5, x6)
U63_ggaag(x1, x2, x3, x4, x5, x6)  =  U63_ggaag(x1, x2, x5, x6)
pN22_in_gagag(x1, x2, x3, x4, x5)  =  pN22_in_gagag(x1, x3, x5)
U64_gagag(x1, x2, x3, x4, x5, x6)  =  U64_gagag(x1, x3, x5, x6)
addJ_in_ga(x1, x2)  =  addJ_in_ga(x1)
addJ_out_ga(x1, x2)  =  addJ_out_ga(x1, x2)
U8_ga(x1, x2, x3)  =  U8_ga(x1, x3)
U65_gagag(x1, x2, x3, x4, x5, x6)  =  U65_gagag(x1, x2, x3, x5, x6)
pN23_in_ggagg(x1, x2, x3, x4, x5)  =  pN23_in_ggagg(x1, x2, x4, x5)
U66_ggagg(x1, x2, x3, x4, x5, x6)  =  U66_ggagg(x1, x2, x4, x5, x6)
U67_ggagg(x1, x2, x3, x4, x5, x6)  =  U67_ggagg(x1, x2, x4, x5, x6)
pN24_in_gagg(x1, x2, x3, x4)  =  pN24_in_gagg(x1, x3, x4)
U68_gagg(x1, x2, x3, x4, x5)  =  U68_gagg(x1, x3, x4, x5)
U69_gagg(x1, x2, x3, x4, x5)  =  U69_gagg(x1, x2, x3, x4, x5)
pN25_in_gggg(x1, x2, x3, x4)  =  pN25_in_gggg(x1, x2, x3, x4)
U70_gggg(x1, x2, x3, x4, x5)  =  U70_gggg(x1, x2, x3, x4, x5)
U71_gggg(x1, x2, x3, x4, x5)  =  U71_gggg(x1, x2, x3, x4, x5)
noattackN1_in_gg(x1, x2)  =  noattackN1_in_gg(x1, x2)
noattackN1_out_gg(x1, x2)  =  noattackN1_out_gg(x1, x2)
U20_gg(x1, x2, x3, x4)  =  U20_gg(x1, x2, x3, x4)
pN2_in_ggaag(x1, x2, x3, x4, x5)  =  pN2_in_ggaag(x1, x2, x5)
U72_ggaag(x1, x2, x3, x4, x5, x6)  =  U72_ggaag(x1, x2, x5, x6)
U73_ggaag(x1, x2, x3, x4, x5, x6)  =  U73_ggaag(x1, x2, x5, x6)
pN26_in_gagag(x1, x2, x3, x4, x5)  =  pN26_in_gagag(x1, x3, x5)
U74_gagag(x1, x2, x3, x4, x5, x6)  =  U74_gagag(x1, x3, x5, x6)
addK_in_ga(x1, x2)  =  addK_in_ga(x1)
addK_out_ga(x1, x2)  =  addK_out_ga(x1, x2)
U9_ga(x1, x2, x3)  =  U9_ga(x1, x3)
U75_gagag(x1, x2, x3, x4, x5, x6)  =  U75_gagag(x1, x2, x3, x5, x6)
pN27_in_ggagg(x1, x2, x3, x4, x5)  =  pN27_in_ggagg(x1, x2, x4, x5)
U76_ggagg(x1, x2, x3, x4, x5, x6)  =  U76_ggagg(x1, x2, x4, x5, x6)
U77_ggagg(x1, x2, x3, x4, x5, x6)  =  U77_ggagg(x1, x2, x4, x5, x6)
pN28_in_gagg(x1, x2, x3, x4)  =  pN28_in_gagg(x1, x3, x4)
U78_gagg(x1, x2, x3, x4, x5)  =  U78_gagg(x1, x3, x4, x5)
U79_gagg(x1, x2, x3, x4, x5)  =  U79_gagg(x1, x2, x3, x4, x5)
pN29_in_gggg(x1, x2, x3, x4)  =  pN29_in_gggg(x1, x2, x3, x4)
U80_gggg(x1, x2, x3, x4, x5)  =  U80_gggg(x1, x2, x3, x4, x5)
U81_gggg(x1, x2, x3, x4, x5)  =  U81_gggg(x1, x2, x3, x4, x5)
noattackN3_in_gg(x1, x2)  =  noattackN3_in_gg(x1, x2)
noattackN3_out_gg(x1, x2)  =  noattackN3_out_gg(x1, x2)
U21_gg(x1, x2, x3, x4)  =  U21_gg(x1, x2, x3, x4)
pN4_in_ggaag(x1, x2, x3, x4, x5)  =  pN4_in_ggaag(x1, x2, x5)
U82_ggaag(x1, x2, x3, x4, x5, x6)  =  U82_ggaag(x1, x2, x5, x6)
U83_ggaag(x1, x2, x3, x4, x5, x6)  =  U83_ggaag(x1, x2, x5, x6)
pN30_in_gagag(x1, x2, x3, x4, x5)  =  pN30_in_gagag(x1, x3, x5)
U84_gagag(x1, x2, x3, x4, x5, x6)  =  U84_gagag(x1, x3, x5, x6)
addL_in_ga(x1, x2)  =  addL_in_ga(x1)
addL_out_ga(x1, x2)  =  addL_out_ga(x1, x2)
U10_ga(x1, x2, x3)  =  U10_ga(x1, x3)
U85_gagag(x1, x2, x3, x4, x5, x6)  =  U85_gagag(x1, x2, x3, x5, x6)
pN31_in_ggagg(x1, x2, x3, x4, x5)  =  pN31_in_ggagg(x1, x2, x4, x5)
U86_ggagg(x1, x2, x3, x4, x5, x6)  =  U86_ggagg(x1, x2, x4, x5, x6)
U87_ggagg(x1, x2, x3, x4, x5, x6)  =  U87_ggagg(x1, x2, x4, x5, x6)
pN32_in_gagg(x1, x2, x3, x4)  =  pN32_in_gagg(x1, x3, x4)
U88_gagg(x1, x2, x3, x4, x5)  =  U88_gagg(x1, x3, x4, x5)
U89_gagg(x1, x2, x3, x4, x5)  =  U89_gagg(x1, x2, x3, x4, x5)
pN33_in_gggg(x1, x2, x3, x4)  =  pN33_in_gggg(x1, x2, x3, x4)
U90_gggg(x1, x2, x3, x4, x5)  =  U90_gggg(x1, x2, x3, x4, x5)
U91_gggg(x1, x2, x3, x4, x5)  =  U91_gggg(x1, x2, x3, x4, x5)
noattackN5_in_gg(x1, x2)  =  noattackN5_in_gg(x1, x2)
noattackN5_out_gg(x1, x2)  =  noattackN5_out_gg(x1, x2)
U22_gg(x1, x2, x3, x4)  =  U22_gg(x1, x2, x3, x4)
pN6_in_ggaagg(x1, x2, x3, x4, x5, x6)  =  pN6_in_ggaagg(x1, x2, x5, x6)
U92_ggaagg(x1, x2, x3, x4, x5, x6, x7)  =  U92_ggaagg(x1, x2, x5, x6, x7)
U93_ggaagg(x1, x2, x3, x4, x5, x6, x7)  =  U93_ggaagg(x1, x2, x5, x6, x7)
pN34_in_gagagg(x1, x2, x3, x4, x5, x6)  =  pN34_in_gagagg(x1, x3, x5, x6)
U94_gagagg(x1, x2, x3, x4, x5, x6, x7)  =  U94_gagagg(x1, x3, x5, x6, x7)
addM_in_ga(x1, x2)  =  addM_in_ga(x1)
addM_out_ga(x1, x2)  =  addM_out_ga(x1, x2)
U11_ga(x1, x2, x3)  =  U11_ga(x1, x3)
U95_gagagg(x1, x2, x3, x4, x5, x6, x7)  =  U95_gagagg(x1, x2, x3, x5, x6, x7)
pN35_in_ggaggg(x1, x2, x3, x4, x5, x6)  =  pN35_in_ggaggg(x1, x2, x4, x5, x6)
U96_ggaggg(x1, x2, x3, x4, x5, x6, x7)  =  U96_ggaggg(x1, x2, x4, x5, x6, x7)
U97_ggaggg(x1, x2, x3, x4, x5, x6, x7)  =  U97_ggaggg(x1, x2, x4, x5, x6, x7)
pN36_in_gaggg(x1, x2, x3, x4, x5)  =  pN36_in_gaggg(x1, x3, x4, x5)
U98_gaggg(x1, x2, x3, x4, x5, x6)  =  U98_gaggg(x1, x3, x4, x5, x6)
U99_gaggg(x1, x2, x3, x4, x5, x6)  =  U99_gaggg(x1, x2, x3, x4, x5, x6)
pN37_in_ggggg(x1, x2, x3, x4, x5)  =  pN37_in_ggggg(x1, x2, x3, x4, x5)
U100_ggggg(x1, x2, x3, x4, x5, x6)  =  U100_ggggg(x1, x2, x3, x4, x5, x6)
U101_ggggg(x1, x2, x3, x4, x5, x6)  =  U101_ggggg(x1, x2, x3, x4, x5, x6)
noattackN7_in_ggg(x1, x2, x3)  =  noattackN7_in_ggg(x1, x2, x3)
noattackN7_out_ggg(x1, x2, x3)  =  noattackN7_out_ggg(x1, x2, x3)
U23_ggg(x1, x2, x3, x4, x5)  =  U23_ggg(x1, x2, x3, x4, x5)
pN8_in_gggaag(x1, x2, x3, x4, x5, x6)  =  pN8_in_gggaag(x1, x2, x3, x6)
U102_gggaag(x1, x2, x3, x4, x5, x6, x7)  =  U102_gggaag(x1, x2, x3, x6, x7)
U103_gggaag(x1, x2, x3, x4, x5, x6, x7)  =  U103_gggaag(x1, x2, x3, x6, x7)
pN38_in_ggagag(x1, x2, x3, x4, x5, x6)  =  pN38_in_ggagag(x1, x2, x4, x6)
U104_ggagag(x1, x2, x3, x4, x5, x6, x7)  =  U104_ggagag(x1, x2, x4, x6, x7)
addN_in_gga(x1, x2, x3)  =  addN_in_gga(x1, x2)
addN_out_gga(x1, x2, x3)  =  addN_out_gga(x1, x2, x3)
U12_gga(x1, x2, x3, x4)  =  U12_gga(x1, x2, x4)
U105_ggagag(x1, x2, x3, x4, x5, x6, x7)  =  U105_ggagag(x1, x2, x3, x4, x6, x7)
pN39_in_gggagg(x1, x2, x3, x4, x5, x6)  =  pN39_in_gggagg(x1, x2, x3, x5, x6)
U106_gggagg(x1, x2, x3, x4, x5, x6, x7)  =  U106_gggagg(x1, x2, x3, x5, x6, x7)
U107_gggagg(x1, x2, x3, x4, x5, x6, x7)  =  U107_gggagg(x1, x2, x3, x5, x6, x7)
pN40_in_ggagg(x1, x2, x3, x4, x5)  =  pN40_in_ggagg(x1, x2, x4, x5)
U108_ggagg(x1, x2, x3, x4, x5, x6)  =  U108_ggagg(x1, x2, x4, x5, x6)
U109_ggagg(x1, x2, x3, x4, x5, x6)  =  U109_ggagg(x1, x2, x3, x4, x5, x6)
pN37_out_ggggg(x1, x2, x3, x4, x5)  =  pN37_out_ggggg(x1, x2, x3, x4, x5)
pN40_out_ggagg(x1, x2, x3, x4, x5)  =  pN40_out_ggagg(x1, x2, x3, x4, x5)
pN39_out_gggagg(x1, x2, x3, x4, x5, x6)  =  pN39_out_gggagg(x1, x2, x3, x4, x5, x6)
pN38_out_ggagag(x1, x2, x3, x4, x5, x6)  =  pN38_out_ggagag(x1, x2, x3, x4, x5, x6)
pN8_out_gggaag(x1, x2, x3, x4, x5, x6)  =  pN8_out_gggaag(x1, x2, x3, x4, x5, x6)
pN36_out_gaggg(x1, x2, x3, x4, x5)  =  pN36_out_gaggg(x1, x2, x3, x4, x5)
pN35_out_ggaggg(x1, x2, x3, x4, x5, x6)  =  pN35_out_ggaggg(x1, x2, x3, x4, x5, x6)
pN34_out_gagagg(x1, x2, x3, x4, x5, x6)  =  pN34_out_gagagg(x1, x2, x3, x4, x5, x6)
pN6_out_ggaagg(x1, x2, x3, x4, x5, x6)  =  pN6_out_ggaagg(x1, x2, x3, x4, x5, x6)
pN33_out_gggg(x1, x2, x3, x4)  =  pN33_out_gggg(x1, x2, x3, x4)
pN32_out_gagg(x1, x2, x3, x4)  =  pN32_out_gagg(x1, x2, x3, x4)
pN31_out_ggagg(x1, x2, x3, x4, x5)  =  pN31_out_ggagg(x1, x2, x3, x4, x5)
pN30_out_gagag(x1, x2, x3, x4, x5)  =  pN30_out_gagag(x1, x2, x3, x4, x5)
pN4_out_ggaag(x1, x2, x3, x4, x5)  =  pN4_out_ggaag(x1, x2, x3, x4, x5)
pN29_out_gggg(x1, x2, x3, x4)  =  pN29_out_gggg(x1, x2, x3, x4)
pN28_out_gagg(x1, x2, x3, x4)  =  pN28_out_gagg(x1, x2, x3, x4)
pN27_out_ggagg(x1, x2, x3, x4, x5)  =  pN27_out_ggagg(x1, x2, x3, x4, x5)
pN26_out_gagag(x1, x2, x3, x4, x5)  =  pN26_out_gagag(x1, x2, x3, x4, x5)
pN2_out_ggaag(x1, x2, x3, x4, x5)  =  pN2_out_ggaag(x1, x2, x3, x4, x5)
pN25_out_gggg(x1, x2, x3, x4)  =  pN25_out_gggg(x1, x2, x3, x4)
pN24_out_gagg(x1, x2, x3, x4)  =  pN24_out_gagg(x1, x2, x3, x4)
pN23_out_ggagg(x1, x2, x3, x4, x5)  =  pN23_out_ggagg(x1, x2, x3, x4, x5)
pN22_out_gagag(x1, x2, x3, x4, x5)  =  pN22_out_gagag(x1, x2, x3, x4, x5)
pZ_out_ggaag(x1, x2, x3, x4, x5)  =  pZ_out_ggaag(x1, x2, x3, x4, x5)
pN21_out_gggg(x1, x2, x3, x4)  =  pN21_out_gggg(x1, x2, x3, x4)
pN20_out_gagg(x1, x2, x3, x4)  =  pN20_out_gagg(x1, x2, x3, x4)
pN19_out_ggagg(x1, x2, x3, x4, x5)  =  pN19_out_ggagg(x1, x2, x3, x4, x5)
pN18_out_gagag(x1, x2, x3, x4, x5)  =  pN18_out_gagag(x1, x2, x3, x4, x5)
pX_out_ggaag(x1, x2, x3, x4, x5)  =  pX_out_ggaag(x1, x2, x3, x4, x5)
pN17_out_gggg(x1, x2, x3, x4)  =  pN17_out_gggg(x1, x2, x3, x4)
pN16_out_gagg(x1, x2, x3, x4)  =  pN16_out_gagg(x1, x2, x3, x4)
pN15_out_ggagg(x1, x2, x3, x4, x5)  =  pN15_out_ggagg(x1, x2, x3, x4, x5)
pN14_out_gagag(x1, x2, x3, x4, x5)  =  pN14_out_gagag(x1, x2, x3, x4, x5)
pV_out_ggaag(x1, x2, x3, x4, x5)  =  pV_out_ggaag(x1, x2, x3, x4, x5)
pN13_out_gggg(x1, x2, x3, x4)  =  pN13_out_gggg(x1, x2, x3, x4)
pN12_out_gagg(x1, x2, x3, x4)  =  pN12_out_gagg(x1, x2, x3, x4)
pN11_out_ggagg(x1, x2, x3, x4, x5)  =  pN11_out_ggagg(x1, x2, x3, x4, x5)
pN10_out_gagag(x1, x2, x3, x4, x5)  =  pN10_out_gagag(x1, x2, x3, x4, x5)
pS_out_ggaag(x1, x2, x3, x4, x5)  =  pS_out_ggaag(x1, x2, x3, x4, x5)
U31_gg(x1, x2, x3)  =  U31_gg(x1, x2, x3)
safeT_in_g(x1)  =  safeT_in_g(x1)
safeT_out_g(x1)  =  safeT_out_g(x1)
U16_g(x1, x2, x3)  =  U16_g(x1, x2, x3)
pQ_out_gg(x1, x2)  =  pQ_out_gg(x1, x2)
safeP_out_gg(x1, x2)  =  safeP_out_gg(x1, x2)
pN9_out_gag(x1, x2, x3)  =  pN9_out_gag(x1, x2, x3)
pB_out_agaa(x1, x2, x3, x4)  =  pB_out_agaa(x1, x2, x3, x4)
queensA_out_a(x1)  =  queensA_out_a(x1)
QUEENSA_IN_A(x1)  =  QUEENSA_IN_A
U1_A(x1, x2, x3)  =  U1_A(x3)
PB_IN_AGAA(x1, x2, x3, x4)  =  PB_IN_AGAA(x2)
U24_AGAA(x1, x2, x3, x4, x5)  =  U24_AGAA(x2, x5)
DELETEO_IN_AGA(x1, x2, x3)  =  DELETEO_IN_AGA(x2)
U13_AGA(x1, x2, x3, x4)  =  U13_AGA(x2, x4)
DELETEC_IN_AGA(x1, x2, x3)  =  DELETEC_IN_AGA(x2)
U2_AGA(x1, x2, x3, x4, x5)  =  U2_AGA(x2, x3, x5)
U25_AGAA(x1, x2, x3, x4, x5)  =  U25_AGAA(x1, x2, x3, x5)
PN9_IN_GAG(x1, x2, x3)  =  PN9_IN_GAG(x1, x3)
U26_GAG(x1, x2, x3, x4)  =  U26_GAG(x1, x3, x4)
PERMD_IN_GA(x1, x2)  =  PERMD_IN_GA(x1)
U3_GA(x1, x2, x3, x4, x5)  =  U3_GA(x1, x2, x5)
PE_IN_AGGAA(x1, x2, x3, x4, x5)  =  PE_IN_AGGAA(x2, x3)
U28_AGGAA(x1, x2, x3, x4, x5, x6)  =  U28_AGGAA(x2, x3, x6)
U29_AGGAA(x1, x2, x3, x4, x5, x6)  =  U29_AGGAA(x1, x2, x3, x4, x6)
U27_GAG(x1, x2, x3, x4)  =  U27_GAG(x1, x2, x3, x4)
SAFEP_IN_GG(x1, x2)  =  SAFEP_IN_GG(x1, x2)
U14_GG(x1, x2, x3)  =  U14_GG(x1, x2, x3)
PQ_IN_GG(x1, x2)  =  PQ_IN_GG(x1, x2)
U30_GG(x1, x2, x3)  =  U30_GG(x1, x2, x3)
NOATTACKR_IN_GG(x1, x2)  =  NOATTACKR_IN_GG(x1, x2)
U15_GG(x1, x2, x3, x4)  =  U15_GG(x1, x2, x3, x4)
PS_IN_GGAAG(x1, x2, x3, x4, x5)  =  PS_IN_GGAAG(x1, x2, x5)
U32_GGAAG(x1, x2, x3, x4, x5, x6)  =  U32_GGAAG(x1, x2, x5, x6)
NOTEQF_IN_GG(x1, x2)  =  NOTEQF_IN_GG(x1, x2)
U4_GG(x1, x2, x3)  =  U4_GG(x1, x2, x3)
U33_GGAAG(x1, x2, x3, x4, x5, x6)  =  U33_GGAAG(x1, x2, x5, x6)
PN10_IN_GAGAG(x1, x2, x3, x4, x5)  =  PN10_IN_GAGAG(x1, x3, x5)
U34_GAGAG(x1, x2, x3, x4, x5, x6)  =  U34_GAGAG(x1, x3, x5, x6)
ADDG_IN_GA(x1, x2)  =  ADDG_IN_GA(x1)
U5_GA(x1, x2, x3)  =  U5_GA(x1, x3)
U35_GAGAG(x1, x2, x3, x4, x5, x6)  =  U35_GAGAG(x1, x2, x3, x5, x6)
PN11_IN_GGAGG(x1, x2, x3, x4, x5)  =  PN11_IN_GGAGG(x1, x2, x4, x5)
U36_GGAGG(x1, x2, x3, x4, x5, x6)  =  U36_GGAGG(x1, x2, x4, x5, x6)
U37_GGAGG(x1, x2, x3, x4, x5, x6)  =  U37_GGAGG(x1, x2, x4, x5, x6)
PN12_IN_GAGG(x1, x2, x3, x4)  =  PN12_IN_GAGG(x1, x3, x4)
U38_GAGG(x1, x2, x3, x4, x5)  =  U38_GAGG(x1, x3, x4, x5)
U39_GAGG(x1, x2, x3, x4, x5)  =  U39_GAGG(x1, x2, x3, x4, x5)
PN13_IN_GGGG(x1, x2, x3, x4)  =  PN13_IN_GGGG(x1, x2, x3, x4)
U40_GGGG(x1, x2, x3, x4, x5)  =  U40_GGGG(x1, x2, x3, x4, x5)
U41_GGGG(x1, x2, x3, x4, x5)  =  U41_GGGG(x1, x2, x3, x4, x5)
NOATTACKU_IN_GG(x1, x2)  =  NOATTACKU_IN_GG(x1, x2)
U17_GG(x1, x2, x3, x4)  =  U17_GG(x1, x2, x3, x4)
PV_IN_GGAAG(x1, x2, x3, x4, x5)  =  PV_IN_GGAAG(x1, x2, x5)
U42_GGAAG(x1, x2, x3, x4, x5, x6)  =  U42_GGAAG(x1, x2, x5, x6)
U43_GGAAG(x1, x2, x3, x4, x5, x6)  =  U43_GGAAG(x1, x2, x5, x6)
PN14_IN_GAGAG(x1, x2, x3, x4, x5)  =  PN14_IN_GAGAG(x1, x3, x5)
U44_GAGAG(x1, x2, x3, x4, x5, x6)  =  U44_GAGAG(x1, x3, x5, x6)
ADDH_IN_GA(x1, x2)  =  ADDH_IN_GA(x1)
U6_GA(x1, x2, x3)  =  U6_GA(x1, x3)
U45_GAGAG(x1, x2, x3, x4, x5, x6)  =  U45_GAGAG(x1, x2, x3, x5, x6)
PN15_IN_GGAGG(x1, x2, x3, x4, x5)  =  PN15_IN_GGAGG(x1, x2, x4, x5)
U46_GGAGG(x1, x2, x3, x4, x5, x6)  =  U46_GGAGG(x1, x2, x4, x5, x6)
U47_GGAGG(x1, x2, x3, x4, x5, x6)  =  U47_GGAGG(x1, x2, x4, x5, x6)
PN16_IN_GAGG(x1, x2, x3, x4)  =  PN16_IN_GAGG(x1, x3, x4)
U48_GAGG(x1, x2, x3, x4, x5)  =  U48_GAGG(x1, x3, x4, x5)
U49_GAGG(x1, x2, x3, x4, x5)  =  U49_GAGG(x1, x2, x3, x4, x5)
PN17_IN_GGGG(x1, x2, x3, x4)  =  PN17_IN_GGGG(x1, x2, x3, x4)
U50_GGGG(x1, x2, x3, x4, x5)  =  U50_GGGG(x1, x2, x3, x4, x5)
U51_GGGG(x1, x2, x3, x4, x5)  =  U51_GGGG(x1, x2, x3, x4, x5)
NOATTACKW_IN_GG(x1, x2)  =  NOATTACKW_IN_GG(x1, x2)
U18_GG(x1, x2, x3, x4)  =  U18_GG(x1, x2, x3, x4)
PX_IN_GGAAG(x1, x2, x3, x4, x5)  =  PX_IN_GGAAG(x1, x2, x5)
U52_GGAAG(x1, x2, x3, x4, x5, x6)  =  U52_GGAAG(x1, x2, x5, x6)
U53_GGAAG(x1, x2, x3, x4, x5, x6)  =  U53_GGAAG(x1, x2, x5, x6)
PN18_IN_GAGAG(x1, x2, x3, x4, x5)  =  PN18_IN_GAGAG(x1, x3, x5)
U54_GAGAG(x1, x2, x3, x4, x5, x6)  =  U54_GAGAG(x1, x3, x5, x6)
ADDI_IN_GA(x1, x2)  =  ADDI_IN_GA(x1)
U7_GA(x1, x2, x3)  =  U7_GA(x1, x3)
U55_GAGAG(x1, x2, x3, x4, x5, x6)  =  U55_GAGAG(x1, x2, x3, x5, x6)
PN19_IN_GGAGG(x1, x2, x3, x4, x5)  =  PN19_IN_GGAGG(x1, x2, x4, x5)
U56_GGAGG(x1, x2, x3, x4, x5, x6)  =  U56_GGAGG(x1, x2, x4, x5, x6)
U57_GGAGG(x1, x2, x3, x4, x5, x6)  =  U57_GGAGG(x1, x2, x4, x5, x6)
PN20_IN_GAGG(x1, x2, x3, x4)  =  PN20_IN_GAGG(x1, x3, x4)
U58_GAGG(x1, x2, x3, x4, x5)  =  U58_GAGG(x1, x3, x4, x5)
U59_GAGG(x1, x2, x3, x4, x5)  =  U59_GAGG(x1, x2, x3, x4, x5)
PN21_IN_GGGG(x1, x2, x3, x4)  =  PN21_IN_GGGG(x1, x2, x3, x4)
U60_GGGG(x1, x2, x3, x4, x5)  =  U60_GGGG(x1, x2, x3, x4, x5)
U61_GGGG(x1, x2, x3, x4, x5)  =  U61_GGGG(x1, x2, x3, x4, x5)
NOATTACKY_IN_GG(x1, x2)  =  NOATTACKY_IN_GG(x1, x2)
U19_GG(x1, x2, x3, x4)  =  U19_GG(x1, x2, x3, x4)
PZ_IN_GGAAG(x1, x2, x3, x4, x5)  =  PZ_IN_GGAAG(x1, x2, x5)
U62_GGAAG(x1, x2, x3, x4, x5, x6)  =  U62_GGAAG(x1, x2, x5, x6)
U63_GGAAG(x1, x2, x3, x4, x5, x6)  =  U63_GGAAG(x1, x2, x5, x6)
PN22_IN_GAGAG(x1, x2, x3, x4, x5)  =  PN22_IN_GAGAG(x1, x3, x5)
U64_GAGAG(x1, x2, x3, x4, x5, x6)  =  U64_GAGAG(x1, x3, x5, x6)
ADDJ_IN_GA(x1, x2)  =  ADDJ_IN_GA(x1)
U8_GA(x1, x2, x3)  =  U8_GA(x1, x3)
U65_GAGAG(x1, x2, x3, x4, x5, x6)  =  U65_GAGAG(x1, x2, x3, x5, x6)
PN23_IN_GGAGG(x1, x2, x3, x4, x5)  =  PN23_IN_GGAGG(x1, x2, x4, x5)
U66_GGAGG(x1, x2, x3, x4, x5, x6)  =  U66_GGAGG(x1, x2, x4, x5, x6)
U67_GGAGG(x1, x2, x3, x4, x5, x6)  =  U67_GGAGG(x1, x2, x4, x5, x6)
PN24_IN_GAGG(x1, x2, x3, x4)  =  PN24_IN_GAGG(x1, x3, x4)
U68_GAGG(x1, x2, x3, x4, x5)  =  U68_GAGG(x1, x3, x4, x5)
U69_GAGG(x1, x2, x3, x4, x5)  =  U69_GAGG(x1, x2, x3, x4, x5)
PN25_IN_GGGG(x1, x2, x3, x4)  =  PN25_IN_GGGG(x1, x2, x3, x4)
U70_GGGG(x1, x2, x3, x4, x5)  =  U70_GGGG(x1, x2, x3, x4, x5)
U71_GGGG(x1, x2, x3, x4, x5)  =  U71_GGGG(x1, x2, x3, x4, x5)
NOATTACKN1_IN_GG(x1, x2)  =  NOATTACKN1_IN_GG(x1, x2)
U20_GG(x1, x2, x3, x4)  =  U20_GG(x1, x2, x3, x4)
PN2_IN_GGAAG(x1, x2, x3, x4, x5)  =  PN2_IN_GGAAG(x1, x2, x5)
U72_GGAAG(x1, x2, x3, x4, x5, x6)  =  U72_GGAAG(x1, x2, x5, x6)
U73_GGAAG(x1, x2, x3, x4, x5, x6)  =  U73_GGAAG(x1, x2, x5, x6)
PN26_IN_GAGAG(x1, x2, x3, x4, x5)  =  PN26_IN_GAGAG(x1, x3, x5)
U74_GAGAG(x1, x2, x3, x4, x5, x6)  =  U74_GAGAG(x1, x3, x5, x6)
ADDK_IN_GA(x1, x2)  =  ADDK_IN_GA(x1)
U9_GA(x1, x2, x3)  =  U9_GA(x1, x3)
U75_GAGAG(x1, x2, x3, x4, x5, x6)  =  U75_GAGAG(x1, x2, x3, x5, x6)
PN27_IN_GGAGG(x1, x2, x3, x4, x5)  =  PN27_IN_GGAGG(x1, x2, x4, x5)
U76_GGAGG(x1, x2, x3, x4, x5, x6)  =  U76_GGAGG(x1, x2, x4, x5, x6)
U77_GGAGG(x1, x2, x3, x4, x5, x6)  =  U77_GGAGG(x1, x2, x4, x5, x6)
PN28_IN_GAGG(x1, x2, x3, x4)  =  PN28_IN_GAGG(x1, x3, x4)
U78_GAGG(x1, x2, x3, x4, x5)  =  U78_GAGG(x1, x3, x4, x5)
U79_GAGG(x1, x2, x3, x4, x5)  =  U79_GAGG(x1, x2, x3, x4, x5)
PN29_IN_GGGG(x1, x2, x3, x4)  =  PN29_IN_GGGG(x1, x2, x3, x4)
U80_GGGG(x1, x2, x3, x4, x5)  =  U80_GGGG(x1, x2, x3, x4, x5)
U81_GGGG(x1, x2, x3, x4, x5)  =  U81_GGGG(x1, x2, x3, x4, x5)
NOATTACKN3_IN_GG(x1, x2)  =  NOATTACKN3_IN_GG(x1, x2)
U21_GG(x1, x2, x3, x4)  =  U21_GG(x1, x2, x3, x4)
PN4_IN_GGAAG(x1, x2, x3, x4, x5)  =  PN4_IN_GGAAG(x1, x2, x5)
U82_GGAAG(x1, x2, x3, x4, x5, x6)  =  U82_GGAAG(x1, x2, x5, x6)
U83_GGAAG(x1, x2, x3, x4, x5, x6)  =  U83_GGAAG(x1, x2, x5, x6)
PN30_IN_GAGAG(x1, x2, x3, x4, x5)  =  PN30_IN_GAGAG(x1, x3, x5)
U84_GAGAG(x1, x2, x3, x4, x5, x6)  =  U84_GAGAG(x1, x3, x5, x6)
ADDL_IN_GA(x1, x2)  =  ADDL_IN_GA(x1)
U10_GA(x1, x2, x3)  =  U10_GA(x1, x3)
U85_GAGAG(x1, x2, x3, x4, x5, x6)  =  U85_GAGAG(x1, x2, x3, x5, x6)
PN31_IN_GGAGG(x1, x2, x3, x4, x5)  =  PN31_IN_GGAGG(x1, x2, x4, x5)
U86_GGAGG(x1, x2, x3, x4, x5, x6)  =  U86_GGAGG(x1, x2, x4, x5, x6)
U87_GGAGG(x1, x2, x3, x4, x5, x6)  =  U87_GGAGG(x1, x2, x4, x5, x6)
PN32_IN_GAGG(x1, x2, x3, x4)  =  PN32_IN_GAGG(x1, x3, x4)
U88_GAGG(x1, x2, x3, x4, x5)  =  U88_GAGG(x1, x3, x4, x5)
U89_GAGG(x1, x2, x3, x4, x5)  =  U89_GAGG(x1, x2, x3, x4, x5)
PN33_IN_GGGG(x1, x2, x3, x4)  =  PN33_IN_GGGG(x1, x2, x3, x4)
U90_GGGG(x1, x2, x3, x4, x5)  =  U90_GGGG(x1, x2, x3, x4, x5)
U91_GGGG(x1, x2, x3, x4, x5)  =  U91_GGGG(x1, x2, x3, x4, x5)
NOATTACKN5_IN_GG(x1, x2)  =  NOATTACKN5_IN_GG(x1, x2)
U22_GG(x1, x2, x3, x4)  =  U22_GG(x1, x2, x3, x4)
PN6_IN_GGAAGG(x1, x2, x3, x4, x5, x6)  =  PN6_IN_GGAAGG(x1, x2, x5, x6)
U92_GGAAGG(x1, x2, x3, x4, x5, x6, x7)  =  U92_GGAAGG(x1, x2, x5, x6, x7)
U93_GGAAGG(x1, x2, x3, x4, x5, x6, x7)  =  U93_GGAAGG(x1, x2, x5, x6, x7)
PN34_IN_GAGAGG(x1, x2, x3, x4, x5, x6)  =  PN34_IN_GAGAGG(x1, x3, x5, x6)
U94_GAGAGG(x1, x2, x3, x4, x5, x6, x7)  =  U94_GAGAGG(x1, x3, x5, x6, x7)
ADDM_IN_GA(x1, x2)  =  ADDM_IN_GA(x1)
U11_GA(x1, x2, x3)  =  U11_GA(x1, x3)
U95_GAGAGG(x1, x2, x3, x4, x5, x6, x7)  =  U95_GAGAGG(x1, x2, x3, x5, x6, x7)
PN35_IN_GGAGGG(x1, x2, x3, x4, x5, x6)  =  PN35_IN_GGAGGG(x1, x2, x4, x5, x6)
U96_GGAGGG(x1, x2, x3, x4, x5, x6, x7)  =  U96_GGAGGG(x1, x2, x4, x5, x6, x7)
U97_GGAGGG(x1, x2, x3, x4, x5, x6, x7)  =  U97_GGAGGG(x1, x2, x4, x5, x6, x7)
PN36_IN_GAGGG(x1, x2, x3, x4, x5)  =  PN36_IN_GAGGG(x1, x3, x4, x5)
U98_GAGGG(x1, x2, x3, x4, x5, x6)  =  U98_GAGGG(x1, x3, x4, x5, x6)
U99_GAGGG(x1, x2, x3, x4, x5, x6)  =  U99_GAGGG(x1, x2, x3, x4, x5, x6)
PN37_IN_GGGGG(x1, x2, x3, x4, x5)  =  PN37_IN_GGGGG(x1, x2, x3, x4, x5)
U100_GGGGG(x1, x2, x3, x4, x5, x6)  =  U100_GGGGG(x1, x2, x3, x4, x5, x6)
U101_GGGGG(x1, x2, x3, x4, x5, x6)  =  U101_GGGGG(x1, x2, x3, x4, x5, x6)
NOATTACKN7_IN_GGG(x1, x2, x3)  =  NOATTACKN7_IN_GGG(x1, x2, x3)
U23_GGG(x1, x2, x3, x4, x5)  =  U23_GGG(x1, x2, x3, x4, x5)
PN8_IN_GGGAAG(x1, x2, x3, x4, x5, x6)  =  PN8_IN_GGGAAG(x1, x2, x3, x6)
U102_GGGAAG(x1, x2, x3, x4, x5, x6, x7)  =  U102_GGGAAG(x1, x2, x3, x6, x7)
U103_GGGAAG(x1, x2, x3, x4, x5, x6, x7)  =  U103_GGGAAG(x1, x2, x3, x6, x7)
PN38_IN_GGAGAG(x1, x2, x3, x4, x5, x6)  =  PN38_IN_GGAGAG(x1, x2, x4, x6)
U104_GGAGAG(x1, x2, x3, x4, x5, x6, x7)  =  U104_GGAGAG(x1, x2, x4, x6, x7)
ADDN_IN_GGA(x1, x2, x3)  =  ADDN_IN_GGA(x1, x2)
U12_GGA(x1, x2, x3, x4)  =  U12_GGA(x1, x2, x4)
U105_GGAGAG(x1, x2, x3, x4, x5, x6, x7)  =  U105_GGAGAG(x1, x2, x3, x4, x6, x7)
PN39_IN_GGGAGG(x1, x2, x3, x4, x5, x6)  =  PN39_IN_GGGAGG(x1, x2, x3, x5, x6)
U106_GGGAGG(x1, x2, x3, x4, x5, x6, x7)  =  U106_GGGAGG(x1, x2, x3, x5, x6, x7)
U107_GGGAGG(x1, x2, x3, x4, x5, x6, x7)  =  U107_GGGAGG(x1, x2, x3, x5, x6, x7)
PN40_IN_GGAGG(x1, x2, x3, x4, x5)  =  PN40_IN_GGAGG(x1, x2, x4, x5)
U108_GGAGG(x1, x2, x3, x4, x5, x6)  =  U108_GGAGG(x1, x2, x4, x5, x6)
U109_GGAGG(x1, x2, x3, x4, x5, x6)  =  U109_GGAGG(x1, x2, x3, x4, x5, x6)
U31_GG(x1, x2, x3)  =  U31_GG(x1, x2, x3)
SAFET_IN_G(x1)  =  SAFET_IN_G(x1)
U16_G(x1, x2, x3)  =  U16_G(x1, x2, x3)

We have to consider all (P,R,Pi)-chains

(4) Obligation:

Pi DP problem:
The TRS P consists of the following rules:

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)

The TRS R consists of the following rules:

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))

The argument filtering Pi contains the following mapping:
queensA_in_a(x1)  =  queensA_in_a
U1_a(x1, x2, x3)  =  U1_a(x3)
pB_in_agaa(x1, x2, x3, x4)  =  pB_in_agaa(x2)
U24_agaa(x1, x2, x3, x4, x5)  =  U24_agaa(x2, x5)
deleteO_in_aga(x1, x2, x3)  =  deleteO_in_aga(x2)
deleteO_out_aga(x1, x2, x3)  =  deleteO_out_aga(x1, x2, x3)
U13_aga(x1, x2, x3, x4)  =  U13_aga(x2, x4)
deleteC_in_aga(x1, x2, x3)  =  deleteC_in_aga(x2)
.(x1, x2)  =  .(x1, x2)
deleteC_out_aga(x1, x2, x3)  =  deleteC_out_aga(x1, x2, x3)
U2_aga(x1, x2, x3, x4, x5)  =  U2_aga(x2, x3, x5)
U25_agaa(x1, x2, x3, x4, x5)  =  U25_agaa(x1, x2, x3, x5)
pN9_in_gag(x1, x2, x3)  =  pN9_in_gag(x1, x3)
U26_gag(x1, x2, x3, x4)  =  U26_gag(x1, x3, x4)
permD_in_ga(x1, x2)  =  permD_in_ga(x1)
[]  =  []
permD_out_ga(x1, x2)  =  permD_out_ga(x1, x2)
U3_ga(x1, x2, x3, x4, x5)  =  U3_ga(x1, x2, x5)
pE_in_aggaa(x1, x2, x3, x4, x5)  =  pE_in_aggaa(x2, x3)
U28_aggaa(x1, x2, x3, x4, x5, x6)  =  U28_aggaa(x2, x3, x6)
U29_aggaa(x1, x2, x3, x4, x5, x6)  =  U29_aggaa(x1, x2, x3, x4, x6)
pE_out_aggaa(x1, x2, x3, x4, x5)  =  pE_out_aggaa(x1, x2, x3, x4, x5)
U27_gag(x1, x2, x3, x4)  =  U27_gag(x1, x2, x3, x4)
safeP_in_gg(x1, x2)  =  safeP_in_gg(x1, x2)
U14_gg(x1, x2, x3)  =  U14_gg(x1, x2, x3)
pQ_in_gg(x1, x2)  =  pQ_in_gg(x1, x2)
U30_gg(x1, x2, x3)  =  U30_gg(x1, x2, x3)
noattackR_in_gg(x1, x2)  =  noattackR_in_gg(x1, x2)
noattackR_out_gg(x1, x2)  =  noattackR_out_gg(x1, x2)
U15_gg(x1, x2, x3, x4)  =  U15_gg(x1, x2, x3, x4)
pS_in_ggaag(x1, x2, x3, x4, x5)  =  pS_in_ggaag(x1, x2, x5)
U32_ggaag(x1, x2, x3, x4, x5, x6)  =  U32_ggaag(x1, x2, x5, x6)
notEqF_in_gg(x1, x2)  =  notEqF_in_gg(x1, x2)
0  =  0
s(x1)  =  s(x1)
notEqF_out_gg(x1, x2)  =  notEqF_out_gg(x1, x2)
U4_gg(x1, x2, x3)  =  U4_gg(x1, x2, x3)
U33_ggaag(x1, x2, x3, x4, x5, x6)  =  U33_ggaag(x1, x2, x5, x6)
pN10_in_gagag(x1, x2, x3, x4, x5)  =  pN10_in_gagag(x1, x3, x5)
U34_gagag(x1, x2, x3, x4, x5, x6)  =  U34_gagag(x1, x3, x5, x6)
addG_in_ga(x1, x2)  =  addG_in_ga(x1)
addG_out_ga(x1, x2)  =  addG_out_ga(x1, x2)
U5_ga(x1, x2, x3)  =  U5_ga(x1, x3)
U35_gagag(x1, x2, x3, x4, x5, x6)  =  U35_gagag(x1, x2, x3, x5, x6)
pN11_in_ggagg(x1, x2, x3, x4, x5)  =  pN11_in_ggagg(x1, x2, x4, x5)
U36_ggagg(x1, x2, x3, x4, x5, x6)  =  U36_ggagg(x1, x2, x4, x5, x6)
U37_ggagg(x1, x2, x3, x4, x5, x6)  =  U37_ggagg(x1, x2, x4, x5, x6)
pN12_in_gagg(x1, x2, x3, x4)  =  pN12_in_gagg(x1, x3, x4)
U38_gagg(x1, x2, x3, x4, x5)  =  U38_gagg(x1, x3, x4, x5)
U39_gagg(x1, x2, x3, x4, x5)  =  U39_gagg(x1, x2, x3, x4, x5)
pN13_in_gggg(x1, x2, x3, x4)  =  pN13_in_gggg(x1, x2, x3, x4)
U40_gggg(x1, x2, x3, x4, x5)  =  U40_gggg(x1, x2, x3, x4, x5)
U41_gggg(x1, x2, x3, x4, x5)  =  U41_gggg(x1, x2, x3, x4, x5)
noattackU_in_gg(x1, x2)  =  noattackU_in_gg(x1, x2)
noattackU_out_gg(x1, x2)  =  noattackU_out_gg(x1, x2)
U17_gg(x1, x2, x3, x4)  =  U17_gg(x1, x2, x3, x4)
pV_in_ggaag(x1, x2, x3, x4, x5)  =  pV_in_ggaag(x1, x2, x5)
U42_ggaag(x1, x2, x3, x4, x5, x6)  =  U42_ggaag(x1, x2, x5, x6)
U43_ggaag(x1, x2, x3, x4, x5, x6)  =  U43_ggaag(x1, x2, x5, x6)
pN14_in_gagag(x1, x2, x3, x4, x5)  =  pN14_in_gagag(x1, x3, x5)
U44_gagag(x1, x2, x3, x4, x5, x6)  =  U44_gagag(x1, x3, x5, x6)
addH_in_ga(x1, x2)  =  addH_in_ga(x1)
addH_out_ga(x1, x2)  =  addH_out_ga(x1, x2)
U6_ga(x1, x2, x3)  =  U6_ga(x1, x3)
U45_gagag(x1, x2, x3, x4, x5, x6)  =  U45_gagag(x1, x2, x3, x5, x6)
pN15_in_ggagg(x1, x2, x3, x4, x5)  =  pN15_in_ggagg(x1, x2, x4, x5)
U46_ggagg(x1, x2, x3, x4, x5, x6)  =  U46_ggagg(x1, x2, x4, x5, x6)
U47_ggagg(x1, x2, x3, x4, x5, x6)  =  U47_ggagg(x1, x2, x4, x5, x6)
pN16_in_gagg(x1, x2, x3, x4)  =  pN16_in_gagg(x1, x3, x4)
U48_gagg(x1, x2, x3, x4, x5)  =  U48_gagg(x1, x3, x4, x5)
U49_gagg(x1, x2, x3, x4, x5)  =  U49_gagg(x1, x2, x3, x4, x5)
pN17_in_gggg(x1, x2, x3, x4)  =  pN17_in_gggg(x1, x2, x3, x4)
U50_gggg(x1, x2, x3, x4, x5)  =  U50_gggg(x1, x2, x3, x4, x5)
U51_gggg(x1, x2, x3, x4, x5)  =  U51_gggg(x1, x2, x3, x4, x5)
noattackW_in_gg(x1, x2)  =  noattackW_in_gg(x1, x2)
noattackW_out_gg(x1, x2)  =  noattackW_out_gg(x1, x2)
U18_gg(x1, x2, x3, x4)  =  U18_gg(x1, x2, x3, x4)
pX_in_ggaag(x1, x2, x3, x4, x5)  =  pX_in_ggaag(x1, x2, x5)
U52_ggaag(x1, x2, x3, x4, x5, x6)  =  U52_ggaag(x1, x2, x5, x6)
U53_ggaag(x1, x2, x3, x4, x5, x6)  =  U53_ggaag(x1, x2, x5, x6)
pN18_in_gagag(x1, x2, x3, x4, x5)  =  pN18_in_gagag(x1, x3, x5)
U54_gagag(x1, x2, x3, x4, x5, x6)  =  U54_gagag(x1, x3, x5, x6)
addI_in_ga(x1, x2)  =  addI_in_ga(x1)
addI_out_ga(x1, x2)  =  addI_out_ga(x1, x2)
U7_ga(x1, x2, x3)  =  U7_ga(x1, x3)
U55_gagag(x1, x2, x3, x4, x5, x6)  =  U55_gagag(x1, x2, x3, x5, x6)
pN19_in_ggagg(x1, x2, x3, x4, x5)  =  pN19_in_ggagg(x1, x2, x4, x5)
U56_ggagg(x1, x2, x3, x4, x5, x6)  =  U56_ggagg(x1, x2, x4, x5, x6)
U57_ggagg(x1, x2, x3, x4, x5, x6)  =  U57_ggagg(x1, x2, x4, x5, x6)
pN20_in_gagg(x1, x2, x3, x4)  =  pN20_in_gagg(x1, x3, x4)
U58_gagg(x1, x2, x3, x4, x5)  =  U58_gagg(x1, x3, x4, x5)
U59_gagg(x1, x2, x3, x4, x5)  =  U59_gagg(x1, x2, x3, x4, x5)
pN21_in_gggg(x1, x2, x3, x4)  =  pN21_in_gggg(x1, x2, x3, x4)
U60_gggg(x1, x2, x3, x4, x5)  =  U60_gggg(x1, x2, x3, x4, x5)
U61_gggg(x1, x2, x3, x4, x5)  =  U61_gggg(x1, x2, x3, x4, x5)
noattackY_in_gg(x1, x2)  =  noattackY_in_gg(x1, x2)
noattackY_out_gg(x1, x2)  =  noattackY_out_gg(x1, x2)
U19_gg(x1, x2, x3, x4)  =  U19_gg(x1, x2, x3, x4)
pZ_in_ggaag(x1, x2, x3, x4, x5)  =  pZ_in_ggaag(x1, x2, x5)
U62_ggaag(x1, x2, x3, x4, x5, x6)  =  U62_ggaag(x1, x2, x5, x6)
U63_ggaag(x1, x2, x3, x4, x5, x6)  =  U63_ggaag(x1, x2, x5, x6)
pN22_in_gagag(x1, x2, x3, x4, x5)  =  pN22_in_gagag(x1, x3, x5)
U64_gagag(x1, x2, x3, x4, x5, x6)  =  U64_gagag(x1, x3, x5, x6)
addJ_in_ga(x1, x2)  =  addJ_in_ga(x1)
addJ_out_ga(x1, x2)  =  addJ_out_ga(x1, x2)
U8_ga(x1, x2, x3)  =  U8_ga(x1, x3)
U65_gagag(x1, x2, x3, x4, x5, x6)  =  U65_gagag(x1, x2, x3, x5, x6)
pN23_in_ggagg(x1, x2, x3, x4, x5)  =  pN23_in_ggagg(x1, x2, x4, x5)
U66_ggagg(x1, x2, x3, x4, x5, x6)  =  U66_ggagg(x1, x2, x4, x5, x6)
U67_ggagg(x1, x2, x3, x4, x5, x6)  =  U67_ggagg(x1, x2, x4, x5, x6)
pN24_in_gagg(x1, x2, x3, x4)  =  pN24_in_gagg(x1, x3, x4)
U68_gagg(x1, x2, x3, x4, x5)  =  U68_gagg(x1, x3, x4, x5)
U69_gagg(x1, x2, x3, x4, x5)  =  U69_gagg(x1, x2, x3, x4, x5)
pN25_in_gggg(x1, x2, x3, x4)  =  pN25_in_gggg(x1, x2, x3, x4)
U70_gggg(x1, x2, x3, x4, x5)  =  U70_gggg(x1, x2, x3, x4, x5)
U71_gggg(x1, x2, x3, x4, x5)  =  U71_gggg(x1, x2, x3, x4, x5)
noattackN1_in_gg(x1, x2)  =  noattackN1_in_gg(x1, x2)
noattackN1_out_gg(x1, x2)  =  noattackN1_out_gg(x1, x2)
U20_gg(x1, x2, x3, x4)  =  U20_gg(x1, x2, x3, x4)
pN2_in_ggaag(x1, x2, x3, x4, x5)  =  pN2_in_ggaag(x1, x2, x5)
U72_ggaag(x1, x2, x3, x4, x5, x6)  =  U72_ggaag(x1, x2, x5, x6)
U73_ggaag(x1, x2, x3, x4, x5, x6)  =  U73_ggaag(x1, x2, x5, x6)
pN26_in_gagag(x1, x2, x3, x4, x5)  =  pN26_in_gagag(x1, x3, x5)
U74_gagag(x1, x2, x3, x4, x5, x6)  =  U74_gagag(x1, x3, x5, x6)
addK_in_ga(x1, x2)  =  addK_in_ga(x1)
addK_out_ga(x1, x2)  =  addK_out_ga(x1, x2)
U9_ga(x1, x2, x3)  =  U9_ga(x1, x3)
U75_gagag(x1, x2, x3, x4, x5, x6)  =  U75_gagag(x1, x2, x3, x5, x6)
pN27_in_ggagg(x1, x2, x3, x4, x5)  =  pN27_in_ggagg(x1, x2, x4, x5)
U76_ggagg(x1, x2, x3, x4, x5, x6)  =  U76_ggagg(x1, x2, x4, x5, x6)
U77_ggagg(x1, x2, x3, x4, x5, x6)  =  U77_ggagg(x1, x2, x4, x5, x6)
pN28_in_gagg(x1, x2, x3, x4)  =  pN28_in_gagg(x1, x3, x4)
U78_gagg(x1, x2, x3, x4, x5)  =  U78_gagg(x1, x3, x4, x5)
U79_gagg(x1, x2, x3, x4, x5)  =  U79_gagg(x1, x2, x3, x4, x5)
pN29_in_gggg(x1, x2, x3, x4)  =  pN29_in_gggg(x1, x2, x3, x4)
U80_gggg(x1, x2, x3, x4, x5)  =  U80_gggg(x1, x2, x3, x4, x5)
U81_gggg(x1, x2, x3, x4, x5)  =  U81_gggg(x1, x2, x3, x4, x5)
noattackN3_in_gg(x1, x2)  =  noattackN3_in_gg(x1, x2)
noattackN3_out_gg(x1, x2)  =  noattackN3_out_gg(x1, x2)
U21_gg(x1, x2, x3, x4)  =  U21_gg(x1, x2, x3, x4)
pN4_in_ggaag(x1, x2, x3, x4, x5)  =  pN4_in_ggaag(x1, x2, x5)
U82_ggaag(x1, x2, x3, x4, x5, x6)  =  U82_ggaag(x1, x2, x5, x6)
U83_ggaag(x1, x2, x3, x4, x5, x6)  =  U83_ggaag(x1, x2, x5, x6)
pN30_in_gagag(x1, x2, x3, x4, x5)  =  pN30_in_gagag(x1, x3, x5)
U84_gagag(x1, x2, x3, x4, x5, x6)  =  U84_gagag(x1, x3, x5, x6)
addL_in_ga(x1, x2)  =  addL_in_ga(x1)
addL_out_ga(x1, x2)  =  addL_out_ga(x1, x2)
U10_ga(x1, x2, x3)  =  U10_ga(x1, x3)
U85_gagag(x1, x2, x3, x4, x5, x6)  =  U85_gagag(x1, x2, x3, x5, x6)
pN31_in_ggagg(x1, x2, x3, x4, x5)  =  pN31_in_ggagg(x1, x2, x4, x5)
U86_ggagg(x1, x2, x3, x4, x5, x6)  =  U86_ggagg(x1, x2, x4, x5, x6)
U87_ggagg(x1, x2, x3, x4, x5, x6)  =  U87_ggagg(x1, x2, x4, x5, x6)
pN32_in_gagg(x1, x2, x3, x4)  =  pN32_in_gagg(x1, x3, x4)
U88_gagg(x1, x2, x3, x4, x5)  =  U88_gagg(x1, x3, x4, x5)
U89_gagg(x1, x2, x3, x4, x5)  =  U89_gagg(x1, x2, x3, x4, x5)
pN33_in_gggg(x1, x2, x3, x4)  =  pN33_in_gggg(x1, x2, x3, x4)
U90_gggg(x1, x2, x3, x4, x5)  =  U90_gggg(x1, x2, x3, x4, x5)
U91_gggg(x1, x2, x3, x4, x5)  =  U91_gggg(x1, x2, x3, x4, x5)
noattackN5_in_gg(x1, x2)  =  noattackN5_in_gg(x1, x2)
noattackN5_out_gg(x1, x2)  =  noattackN5_out_gg(x1, x2)
U22_gg(x1, x2, x3, x4)  =  U22_gg(x1, x2, x3, x4)
pN6_in_ggaagg(x1, x2, x3, x4, x5, x6)  =  pN6_in_ggaagg(x1, x2, x5, x6)
U92_ggaagg(x1, x2, x3, x4, x5, x6, x7)  =  U92_ggaagg(x1, x2, x5, x6, x7)
U93_ggaagg(x1, x2, x3, x4, x5, x6, x7)  =  U93_ggaagg(x1, x2, x5, x6, x7)
pN34_in_gagagg(x1, x2, x3, x4, x5, x6)  =  pN34_in_gagagg(x1, x3, x5, x6)
U94_gagagg(x1, x2, x3, x4, x5, x6, x7)  =  U94_gagagg(x1, x3, x5, x6, x7)
addM_in_ga(x1, x2)  =  addM_in_ga(x1)
addM_out_ga(x1, x2)  =  addM_out_ga(x1, x2)
U11_ga(x1, x2, x3)  =  U11_ga(x1, x3)
U95_gagagg(x1, x2, x3, x4, x5, x6, x7)  =  U95_gagagg(x1, x2, x3, x5, x6, x7)
pN35_in_ggaggg(x1, x2, x3, x4, x5, x6)  =  pN35_in_ggaggg(x1, x2, x4, x5, x6)
U96_ggaggg(x1, x2, x3, x4, x5, x6, x7)  =  U96_ggaggg(x1, x2, x4, x5, x6, x7)
U97_ggaggg(x1, x2, x3, x4, x5, x6, x7)  =  U97_ggaggg(x1, x2, x4, x5, x6, x7)
pN36_in_gaggg(x1, x2, x3, x4, x5)  =  pN36_in_gaggg(x1, x3, x4, x5)
U98_gaggg(x1, x2, x3, x4, x5, x6)  =  U98_gaggg(x1, x3, x4, x5, x6)
U99_gaggg(x1, x2, x3, x4, x5, x6)  =  U99_gaggg(x1, x2, x3, x4, x5, x6)
pN37_in_ggggg(x1, x2, x3, x4, x5)  =  pN37_in_ggggg(x1, x2, x3, x4, x5)
U100_ggggg(x1, x2, x3, x4, x5, x6)  =  U100_ggggg(x1, x2, x3, x4, x5, x6)
U101_ggggg(x1, x2, x3, x4, x5, x6)  =  U101_ggggg(x1, x2, x3, x4, x5, x6)
noattackN7_in_ggg(x1, x2, x3)  =  noattackN7_in_ggg(x1, x2, x3)
noattackN7_out_ggg(x1, x2, x3)  =  noattackN7_out_ggg(x1, x2, x3)
U23_ggg(x1, x2, x3, x4, x5)  =  U23_ggg(x1, x2, x3, x4, x5)
pN8_in_gggaag(x1, x2, x3, x4, x5, x6)  =  pN8_in_gggaag(x1, x2, x3, x6)
U102_gggaag(x1, x2, x3, x4, x5, x6, x7)  =  U102_gggaag(x1, x2, x3, x6, x7)
U103_gggaag(x1, x2, x3, x4, x5, x6, x7)  =  U103_gggaag(x1, x2, x3, x6, x7)
pN38_in_ggagag(x1, x2, x3, x4, x5, x6)  =  pN38_in_ggagag(x1, x2, x4, x6)
U104_ggagag(x1, x2, x3, x4, x5, x6, x7)  =  U104_ggagag(x1, x2, x4, x6, x7)
addN_in_gga(x1, x2, x3)  =  addN_in_gga(x1, x2)
addN_out_gga(x1, x2, x3)  =  addN_out_gga(x1, x2, x3)
U12_gga(x1, x2, x3, x4)  =  U12_gga(x1, x2, x4)
U105_ggagag(x1, x2, x3, x4, x5, x6, x7)  =  U105_ggagag(x1, x2, x3, x4, x6, x7)
pN39_in_gggagg(x1, x2, x3, x4, x5, x6)  =  pN39_in_gggagg(x1, x2, x3, x5, x6)
U106_gggagg(x1, x2, x3, x4, x5, x6, x7)  =  U106_gggagg(x1, x2, x3, x5, x6, x7)
U107_gggagg(x1, x2, x3, x4, x5, x6, x7)  =  U107_gggagg(x1, x2, x3, x5, x6, x7)
pN40_in_ggagg(x1, x2, x3, x4, x5)  =  pN40_in_ggagg(x1, x2, x4, x5)
U108_ggagg(x1, x2, x3, x4, x5, x6)  =  U108_ggagg(x1, x2, x4, x5, x6)
U109_ggagg(x1, x2, x3, x4, x5, x6)  =  U109_ggagg(x1, x2, x3, x4, x5, x6)
pN37_out_ggggg(x1, x2, x3, x4, x5)  =  pN37_out_ggggg(x1, x2, x3, x4, x5)
pN40_out_ggagg(x1, x2, x3, x4, x5)  =  pN40_out_ggagg(x1, x2, x3, x4, x5)
pN39_out_gggagg(x1, x2, x3, x4, x5, x6)  =  pN39_out_gggagg(x1, x2, x3, x4, x5, x6)
pN38_out_ggagag(x1, x2, x3, x4, x5, x6)  =  pN38_out_ggagag(x1, x2, x3, x4, x5, x6)
pN8_out_gggaag(x1, x2, x3, x4, x5, x6)  =  pN8_out_gggaag(x1, x2, x3, x4, x5, x6)
pN36_out_gaggg(x1, x2, x3, x4, x5)  =  pN36_out_gaggg(x1, x2, x3, x4, x5)
pN35_out_ggaggg(x1, x2, x3, x4, x5, x6)  =  pN35_out_ggaggg(x1, x2, x3, x4, x5, x6)
pN34_out_gagagg(x1, x2, x3, x4, x5, x6)  =  pN34_out_gagagg(x1, x2, x3, x4, x5, x6)
pN6_out_ggaagg(x1, x2, x3, x4, x5, x6)  =  pN6_out_ggaagg(x1, x2, x3, x4, x5, x6)
pN33_out_gggg(x1, x2, x3, x4)  =  pN33_out_gggg(x1, x2, x3, x4)
pN32_out_gagg(x1, x2, x3, x4)  =  pN32_out_gagg(x1, x2, x3, x4)
pN31_out_ggagg(x1, x2, x3, x4, x5)  =  pN31_out_ggagg(x1, x2, x3, x4, x5)
pN30_out_gagag(x1, x2, x3, x4, x5)  =  pN30_out_gagag(x1, x2, x3, x4, x5)
pN4_out_ggaag(x1, x2, x3, x4, x5)  =  pN4_out_ggaag(x1, x2, x3, x4, x5)
pN29_out_gggg(x1, x2, x3, x4)  =  pN29_out_gggg(x1, x2, x3, x4)
pN28_out_gagg(x1, x2, x3, x4)  =  pN28_out_gagg(x1, x2, x3, x4)
pN27_out_ggagg(x1, x2, x3, x4, x5)  =  pN27_out_ggagg(x1, x2, x3, x4, x5)
pN26_out_gagag(x1, x2, x3, x4, x5)  =  pN26_out_gagag(x1, x2, x3, x4, x5)
pN2_out_ggaag(x1, x2, x3, x4, x5)  =  pN2_out_ggaag(x1, x2, x3, x4, x5)
pN25_out_gggg(x1, x2, x3, x4)  =  pN25_out_gggg(x1, x2, x3, x4)
pN24_out_gagg(x1, x2, x3, x4)  =  pN24_out_gagg(x1, x2, x3, x4)
pN23_out_ggagg(x1, x2, x3, x4, x5)  =  pN23_out_ggagg(x1, x2, x3, x4, x5)
pN22_out_gagag(x1, x2, x3, x4, x5)  =  pN22_out_gagag(x1, x2, x3, x4, x5)
pZ_out_ggaag(x1, x2, x3, x4, x5)  =  pZ_out_ggaag(x1, x2, x3, x4, x5)
pN21_out_gggg(x1, x2, x3, x4)  =  pN21_out_gggg(x1, x2, x3, x4)
pN20_out_gagg(x1, x2, x3, x4)  =  pN20_out_gagg(x1, x2, x3, x4)
pN19_out_ggagg(x1, x2, x3, x4, x5)  =  pN19_out_ggagg(x1, x2, x3, x4, x5)
pN18_out_gagag(x1, x2, x3, x4, x5)  =  pN18_out_gagag(x1, x2, x3, x4, x5)
pX_out_ggaag(x1, x2, x3, x4, x5)  =  pX_out_ggaag(x1, x2, x3, x4, x5)
pN17_out_gggg(x1, x2, x3, x4)  =  pN17_out_gggg(x1, x2, x3, x4)
pN16_out_gagg(x1, x2, x3, x4)  =  pN16_out_gagg(x1, x2, x3, x4)
pN15_out_ggagg(x1, x2, x3, x4, x5)  =  pN15_out_ggagg(x1, x2, x3, x4, x5)
pN14_out_gagag(x1, x2, x3, x4, x5)  =  pN14_out_gagag(x1, x2, x3, x4, x5)
pV_out_ggaag(x1, x2, x3, x4, x5)  =  pV_out_ggaag(x1, x2, x3, x4, x5)
pN13_out_gggg(x1, x2, x3, x4)  =  pN13_out_gggg(x1, x2, x3, x4)
pN12_out_gagg(x1, x2, x3, x4)  =  pN12_out_gagg(x1, x2, x3, x4)
pN11_out_ggagg(x1, x2, x3, x4, x5)  =  pN11_out_ggagg(x1, x2, x3, x4, x5)
pN10_out_gagag(x1, x2, x3, x4, x5)  =  pN10_out_gagag(x1, x2, x3, x4, x5)
pS_out_ggaag(x1, x2, x3, x4, x5)  =  pS_out_ggaag(x1, x2, x3, x4, x5)
U31_gg(x1, x2, x3)  =  U31_gg(x1, x2, x3)
safeT_in_g(x1)  =  safeT_in_g(x1)
safeT_out_g(x1)  =  safeT_out_g(x1)
U16_g(x1, x2, x3)  =  U16_g(x1, x2, x3)
pQ_out_gg(x1, x2)  =  pQ_out_gg(x1, x2)
safeP_out_gg(x1, x2)  =  safeP_out_gg(x1, x2)
pN9_out_gag(x1, x2, x3)  =  pN9_out_gag(x1, x2, x3)
pB_out_agaa(x1, x2, x3, x4)  =  pB_out_agaa(x1, x2, x3, x4)
queensA_out_a(x1)  =  queensA_out_a(x1)
QUEENSA_IN_A(x1)  =  QUEENSA_IN_A
U1_A(x1, x2, x3)  =  U1_A(x3)
PB_IN_AGAA(x1, x2, x3, x4)  =  PB_IN_AGAA(x2)
U24_AGAA(x1, x2, x3, x4, x5)  =  U24_AGAA(x2, x5)
DELETEO_IN_AGA(x1, x2, x3)  =  DELETEO_IN_AGA(x2)
U13_AGA(x1, x2, x3, x4)  =  U13_AGA(x2, x4)
DELETEC_IN_AGA(x1, x2, x3)  =  DELETEC_IN_AGA(x2)
U2_AGA(x1, x2, x3, x4, x5)  =  U2_AGA(x2, x3, x5)
U25_AGAA(x1, x2, x3, x4, x5)  =  U25_AGAA(x1, x2, x3, x5)
PN9_IN_GAG(x1, x2, x3)  =  PN9_IN_GAG(x1, x3)
U26_GAG(x1, x2, x3, x4)  =  U26_GAG(x1, x3, x4)
PERMD_IN_GA(x1, x2)  =  PERMD_IN_GA(x1)
U3_GA(x1, x2, x3, x4, x5)  =  U3_GA(x1, x2, x5)
PE_IN_AGGAA(x1, x2, x3, x4, x5)  =  PE_IN_AGGAA(x2, x3)
U28_AGGAA(x1, x2, x3, x4, x5, x6)  =  U28_AGGAA(x2, x3, x6)
U29_AGGAA(x1, x2, x3, x4, x5, x6)  =  U29_AGGAA(x1, x2, x3, x4, x6)
U27_GAG(x1, x2, x3, x4)  =  U27_GAG(x1, x2, x3, x4)
SAFEP_IN_GG(x1, x2)  =  SAFEP_IN_GG(x1, x2)
U14_GG(x1, x2, x3)  =  U14_GG(x1, x2, x3)
PQ_IN_GG(x1, x2)  =  PQ_IN_GG(x1, x2)
U30_GG(x1, x2, x3)  =  U30_GG(x1, x2, x3)
NOATTACKR_IN_GG(x1, x2)  =  NOATTACKR_IN_GG(x1, x2)
U15_GG(x1, x2, x3, x4)  =  U15_GG(x1, x2, x3, x4)
PS_IN_GGAAG(x1, x2, x3, x4, x5)  =  PS_IN_GGAAG(x1, x2, x5)
U32_GGAAG(x1, x2, x3, x4, x5, x6)  =  U32_GGAAG(x1, x2, x5, x6)
NOTEQF_IN_GG(x1, x2)  =  NOTEQF_IN_GG(x1, x2)
U4_GG(x1, x2, x3)  =  U4_GG(x1, x2, x3)
U33_GGAAG(x1, x2, x3, x4, x5, x6)  =  U33_GGAAG(x1, x2, x5, x6)
PN10_IN_GAGAG(x1, x2, x3, x4, x5)  =  PN10_IN_GAGAG(x1, x3, x5)
U34_GAGAG(x1, x2, x3, x4, x5, x6)  =  U34_GAGAG(x1, x3, x5, x6)
ADDG_IN_GA(x1, x2)  =  ADDG_IN_GA(x1)
U5_GA(x1, x2, x3)  =  U5_GA(x1, x3)
U35_GAGAG(x1, x2, x3, x4, x5, x6)  =  U35_GAGAG(x1, x2, x3, x5, x6)
PN11_IN_GGAGG(x1, x2, x3, x4, x5)  =  PN11_IN_GGAGG(x1, x2, x4, x5)
U36_GGAGG(x1, x2, x3, x4, x5, x6)  =  U36_GGAGG(x1, x2, x4, x5, x6)
U37_GGAGG(x1, x2, x3, x4, x5, x6)  =  U37_GGAGG(x1, x2, x4, x5, x6)
PN12_IN_GAGG(x1, x2, x3, x4)  =  PN12_IN_GAGG(x1, x3, x4)
U38_GAGG(x1, x2, x3, x4, x5)  =  U38_GAGG(x1, x3, x4, x5)
U39_GAGG(x1, x2, x3, x4, x5)  =  U39_GAGG(x1, x2, x3, x4, x5)
PN13_IN_GGGG(x1, x2, x3, x4)  =  PN13_IN_GGGG(x1, x2, x3, x4)
U40_GGGG(x1, x2, x3, x4, x5)  =  U40_GGGG(x1, x2, x3, x4, x5)
U41_GGGG(x1, x2, x3, x4, x5)  =  U41_GGGG(x1, x2, x3, x4, x5)
NOATTACKU_IN_GG(x1, x2)  =  NOATTACKU_IN_GG(x1, x2)
U17_GG(x1, x2, x3, x4)  =  U17_GG(x1, x2, x3, x4)
PV_IN_GGAAG(x1, x2, x3, x4, x5)  =  PV_IN_GGAAG(x1, x2, x5)
U42_GGAAG(x1, x2, x3, x4, x5, x6)  =  U42_GGAAG(x1, x2, x5, x6)
U43_GGAAG(x1, x2, x3, x4, x5, x6)  =  U43_GGAAG(x1, x2, x5, x6)
PN14_IN_GAGAG(x1, x2, x3, x4, x5)  =  PN14_IN_GAGAG(x1, x3, x5)
U44_GAGAG(x1, x2, x3, x4, x5, x6)  =  U44_GAGAG(x1, x3, x5, x6)
ADDH_IN_GA(x1, x2)  =  ADDH_IN_GA(x1)
U6_GA(x1, x2, x3)  =  U6_GA(x1, x3)
U45_GAGAG(x1, x2, x3, x4, x5, x6)  =  U45_GAGAG(x1, x2, x3, x5, x6)
PN15_IN_GGAGG(x1, x2, x3, x4, x5)  =  PN15_IN_GGAGG(x1, x2, x4, x5)
U46_GGAGG(x1, x2, x3, x4, x5, x6)  =  U46_GGAGG(x1, x2, x4, x5, x6)
U47_GGAGG(x1, x2, x3, x4, x5, x6)  =  U47_GGAGG(x1, x2, x4, x5, x6)
PN16_IN_GAGG(x1, x2, x3, x4)  =  PN16_IN_GAGG(x1, x3, x4)
U48_GAGG(x1, x2, x3, x4, x5)  =  U48_GAGG(x1, x3, x4, x5)
U49_GAGG(x1, x2, x3, x4, x5)  =  U49_GAGG(x1, x2, x3, x4, x5)
PN17_IN_GGGG(x1, x2, x3, x4)  =  PN17_IN_GGGG(x1, x2, x3, x4)
U50_GGGG(x1, x2, x3, x4, x5)  =  U50_GGGG(x1, x2, x3, x4, x5)
U51_GGGG(x1, x2, x3, x4, x5)  =  U51_GGGG(x1, x2, x3, x4, x5)
NOATTACKW_IN_GG(x1, x2)  =  NOATTACKW_IN_GG(x1, x2)
U18_GG(x1, x2, x3, x4)  =  U18_GG(x1, x2, x3, x4)
PX_IN_GGAAG(x1, x2, x3, x4, x5)  =  PX_IN_GGAAG(x1, x2, x5)
U52_GGAAG(x1, x2, x3, x4, x5, x6)  =  U52_GGAAG(x1, x2, x5, x6)
U53_GGAAG(x1, x2, x3, x4, x5, x6)  =  U53_GGAAG(x1, x2, x5, x6)
PN18_IN_GAGAG(x1, x2, x3, x4, x5)  =  PN18_IN_GAGAG(x1, x3, x5)
U54_GAGAG(x1, x2, x3, x4, x5, x6)  =  U54_GAGAG(x1, x3, x5, x6)
ADDI_IN_GA(x1, x2)  =  ADDI_IN_GA(x1)
U7_GA(x1, x2, x3)  =  U7_GA(x1, x3)
U55_GAGAG(x1, x2, x3, x4, x5, x6)  =  U55_GAGAG(x1, x2, x3, x5, x6)
PN19_IN_GGAGG(x1, x2, x3, x4, x5)  =  PN19_IN_GGAGG(x1, x2, x4, x5)
U56_GGAGG(x1, x2, x3, x4, x5, x6)  =  U56_GGAGG(x1, x2, x4, x5, x6)
U57_GGAGG(x1, x2, x3, x4, x5, x6)  =  U57_GGAGG(x1, x2, x4, x5, x6)
PN20_IN_GAGG(x1, x2, x3, x4)  =  PN20_IN_GAGG(x1, x3, x4)
U58_GAGG(x1, x2, x3, x4, x5)  =  U58_GAGG(x1, x3, x4, x5)
U59_GAGG(x1, x2, x3, x4, x5)  =  U59_GAGG(x1, x2, x3, x4, x5)
PN21_IN_GGGG(x1, x2, x3, x4)  =  PN21_IN_GGGG(x1, x2, x3, x4)
U60_GGGG(x1, x2, x3, x4, x5)  =  U60_GGGG(x1, x2, x3, x4, x5)
U61_GGGG(x1, x2, x3, x4, x5)  =  U61_GGGG(x1, x2, x3, x4, x5)
NOATTACKY_IN_GG(x1, x2)  =  NOATTACKY_IN_GG(x1, x2)
U19_GG(x1, x2, x3, x4)  =  U19_GG(x1, x2, x3, x4)
PZ_IN_GGAAG(x1, x2, x3, x4, x5)  =  PZ_IN_GGAAG(x1, x2, x5)
U62_GGAAG(x1, x2, x3, x4, x5, x6)  =  U62_GGAAG(x1, x2, x5, x6)
U63_GGAAG(x1, x2, x3, x4, x5, x6)  =  U63_GGAAG(x1, x2, x5, x6)
PN22_IN_GAGAG(x1, x2, x3, x4, x5)  =  PN22_IN_GAGAG(x1, x3, x5)
U64_GAGAG(x1, x2, x3, x4, x5, x6)  =  U64_GAGAG(x1, x3, x5, x6)
ADDJ_IN_GA(x1, x2)  =  ADDJ_IN_GA(x1)
U8_GA(x1, x2, x3)  =  U8_GA(x1, x3)
U65_GAGAG(x1, x2, x3, x4, x5, x6)  =  U65_GAGAG(x1, x2, x3, x5, x6)
PN23_IN_GGAGG(x1, x2, x3, x4, x5)  =  PN23_IN_GGAGG(x1, x2, x4, x5)
U66_GGAGG(x1, x2, x3, x4, x5, x6)  =  U66_GGAGG(x1, x2, x4, x5, x6)
U67_GGAGG(x1, x2, x3, x4, x5, x6)  =  U67_GGAGG(x1, x2, x4, x5, x6)
PN24_IN_GAGG(x1, x2, x3, x4)  =  PN24_IN_GAGG(x1, x3, x4)
U68_GAGG(x1, x2, x3, x4, x5)  =  U68_GAGG(x1, x3, x4, x5)
U69_GAGG(x1, x2, x3, x4, x5)  =  U69_GAGG(x1, x2, x3, x4, x5)
PN25_IN_GGGG(x1, x2, x3, x4)  =  PN25_IN_GGGG(x1, x2, x3, x4)
U70_GGGG(x1, x2, x3, x4, x5)  =  U70_GGGG(x1, x2, x3, x4, x5)
U71_GGGG(x1, x2, x3, x4, x5)  =  U71_GGGG(x1, x2, x3, x4, x5)
NOATTACKN1_IN_GG(x1, x2)  =  NOATTACKN1_IN_GG(x1, x2)
U20_GG(x1, x2, x3, x4)  =  U20_GG(x1, x2, x3, x4)
PN2_IN_GGAAG(x1, x2, x3, x4, x5)  =  PN2_IN_GGAAG(x1, x2, x5)
U72_GGAAG(x1, x2, x3, x4, x5, x6)  =  U72_GGAAG(x1, x2, x5, x6)
U73_GGAAG(x1, x2, x3, x4, x5, x6)  =  U73_GGAAG(x1, x2, x5, x6)
PN26_IN_GAGAG(x1, x2, x3, x4, x5)  =  PN26_IN_GAGAG(x1, x3, x5)
U74_GAGAG(x1, x2, x3, x4, x5, x6)  =  U74_GAGAG(x1, x3, x5, x6)
ADDK_IN_GA(x1, x2)  =  ADDK_IN_GA(x1)
U9_GA(x1, x2, x3)  =  U9_GA(x1, x3)
U75_GAGAG(x1, x2, x3, x4, x5, x6)  =  U75_GAGAG(x1, x2, x3, x5, x6)
PN27_IN_GGAGG(x1, x2, x3, x4, x5)  =  PN27_IN_GGAGG(x1, x2, x4, x5)
U76_GGAGG(x1, x2, x3, x4, x5, x6)  =  U76_GGAGG(x1, x2, x4, x5, x6)
U77_GGAGG(x1, x2, x3, x4, x5, x6)  =  U77_GGAGG(x1, x2, x4, x5, x6)
PN28_IN_GAGG(x1, x2, x3, x4)  =  PN28_IN_GAGG(x1, x3, x4)
U78_GAGG(x1, x2, x3, x4, x5)  =  U78_GAGG(x1, x3, x4, x5)
U79_GAGG(x1, x2, x3, x4, x5)  =  U79_GAGG(x1, x2, x3, x4, x5)
PN29_IN_GGGG(x1, x2, x3, x4)  =  PN29_IN_GGGG(x1, x2, x3, x4)
U80_GGGG(x1, x2, x3, x4, x5)  =  U80_GGGG(x1, x2, x3, x4, x5)
U81_GGGG(x1, x2, x3, x4, x5)  =  U81_GGGG(x1, x2, x3, x4, x5)
NOATTACKN3_IN_GG(x1, x2)  =  NOATTACKN3_IN_GG(x1, x2)
U21_GG(x1, x2, x3, x4)  =  U21_GG(x1, x2, x3, x4)
PN4_IN_GGAAG(x1, x2, x3, x4, x5)  =  PN4_IN_GGAAG(x1, x2, x5)
U82_GGAAG(x1, x2, x3, x4, x5, x6)  =  U82_GGAAG(x1, x2, x5, x6)
U83_GGAAG(x1, x2, x3, x4, x5, x6)  =  U83_GGAAG(x1, x2, x5, x6)
PN30_IN_GAGAG(x1, x2, x3, x4, x5)  =  PN30_IN_GAGAG(x1, x3, x5)
U84_GAGAG(x1, x2, x3, x4, x5, x6)  =  U84_GAGAG(x1, x3, x5, x6)
ADDL_IN_GA(x1, x2)  =  ADDL_IN_GA(x1)
U10_GA(x1, x2, x3)  =  U10_GA(x1, x3)
U85_GAGAG(x1, x2, x3, x4, x5, x6)  =  U85_GAGAG(x1, x2, x3, x5, x6)
PN31_IN_GGAGG(x1, x2, x3, x4, x5)  =  PN31_IN_GGAGG(x1, x2, x4, x5)
U86_GGAGG(x1, x2, x3, x4, x5, x6)  =  U86_GGAGG(x1, x2, x4, x5, x6)
U87_GGAGG(x1, x2, x3, x4, x5, x6)  =  U87_GGAGG(x1, x2, x4, x5, x6)
PN32_IN_GAGG(x1, x2, x3, x4)  =  PN32_IN_GAGG(x1, x3, x4)
U88_GAGG(x1, x2, x3, x4, x5)  =  U88_GAGG(x1, x3, x4, x5)
U89_GAGG(x1, x2, x3, x4, x5)  =  U89_GAGG(x1, x2, x3, x4, x5)
PN33_IN_GGGG(x1, x2, x3, x4)  =  PN33_IN_GGGG(x1, x2, x3, x4)
U90_GGGG(x1, x2, x3, x4, x5)  =  U90_GGGG(x1, x2, x3, x4, x5)
U91_GGGG(x1, x2, x3, x4, x5)  =  U91_GGGG(x1, x2, x3, x4, x5)
NOATTACKN5_IN_GG(x1, x2)  =  NOATTACKN5_IN_GG(x1, x2)
U22_GG(x1, x2, x3, x4)  =  U22_GG(x1, x2, x3, x4)
PN6_IN_GGAAGG(x1, x2, x3, x4, x5, x6)  =  PN6_IN_GGAAGG(x1, x2, x5, x6)
U92_GGAAGG(x1, x2, x3, x4, x5, x6, x7)  =  U92_GGAAGG(x1, x2, x5, x6, x7)
U93_GGAAGG(x1, x2, x3, x4, x5, x6, x7)  =  U93_GGAAGG(x1, x2, x5, x6, x7)
PN34_IN_GAGAGG(x1, x2, x3, x4, x5, x6)  =  PN34_IN_GAGAGG(x1, x3, x5, x6)
U94_GAGAGG(x1, x2, x3, x4, x5, x6, x7)  =  U94_GAGAGG(x1, x3, x5, x6, x7)
ADDM_IN_GA(x1, x2)  =  ADDM_IN_GA(x1)
U11_GA(x1, x2, x3)  =  U11_GA(x1, x3)
U95_GAGAGG(x1, x2, x3, x4, x5, x6, x7)  =  U95_GAGAGG(x1, x2, x3, x5, x6, x7)
PN35_IN_GGAGGG(x1, x2, x3, x4, x5, x6)  =  PN35_IN_GGAGGG(x1, x2, x4, x5, x6)
U96_GGAGGG(x1, x2, x3, x4, x5, x6, x7)  =  U96_GGAGGG(x1, x2, x4, x5, x6, x7)
U97_GGAGGG(x1, x2, x3, x4, x5, x6, x7)  =  U97_GGAGGG(x1, x2, x4, x5, x6, x7)
PN36_IN_GAGGG(x1, x2, x3, x4, x5)  =  PN36_IN_GAGGG(x1, x3, x4, x5)
U98_GAGGG(x1, x2, x3, x4, x5, x6)  =  U98_GAGGG(x1, x3, x4, x5, x6)
U99_GAGGG(x1, x2, x3, x4, x5, x6)  =  U99_GAGGG(x1, x2, x3, x4, x5, x6)
PN37_IN_GGGGG(x1, x2, x3, x4, x5)  =  PN37_IN_GGGGG(x1, x2, x3, x4, x5)
U100_GGGGG(x1, x2, x3, x4, x5, x6)  =  U100_GGGGG(x1, x2, x3, x4, x5, x6)
U101_GGGGG(x1, x2, x3, x4, x5, x6)  =  U101_GGGGG(x1, x2, x3, x4, x5, x6)
NOATTACKN7_IN_GGG(x1, x2, x3)  =  NOATTACKN7_IN_GGG(x1, x2, x3)
U23_GGG(x1, x2, x3, x4, x5)  =  U23_GGG(x1, x2, x3, x4, x5)
PN8_IN_GGGAAG(x1, x2, x3, x4, x5, x6)  =  PN8_IN_GGGAAG(x1, x2, x3, x6)
U102_GGGAAG(x1, x2, x3, x4, x5, x6, x7)  =  U102_GGGAAG(x1, x2, x3, x6, x7)
U103_GGGAAG(x1, x2, x3, x4, x5, x6, x7)  =  U103_GGGAAG(x1, x2, x3, x6, x7)
PN38_IN_GGAGAG(x1, x2, x3, x4, x5, x6)  =  PN38_IN_GGAGAG(x1, x2, x4, x6)
U104_GGAGAG(x1, x2, x3, x4, x5, x6, x7)  =  U104_GGAGAG(x1, x2, x4, x6, x7)
ADDN_IN_GGA(x1, x2, x3)  =  ADDN_IN_GGA(x1, x2)
U12_GGA(x1, x2, x3, x4)  =  U12_GGA(x1, x2, x4)
U105_GGAGAG(x1, x2, x3, x4, x5, x6, x7)  =  U105_GGAGAG(x1, x2, x3, x4, x6, x7)
PN39_IN_GGGAGG(x1, x2, x3, x4, x5, x6)  =  PN39_IN_GGGAGG(x1, x2, x3, x5, x6)
U106_GGGAGG(x1, x2, x3, x4, x5, x6, x7)  =  U106_GGGAGG(x1, x2, x3, x5, x6, x7)
U107_GGGAGG(x1, x2, x3, x4, x5, x6, x7)  =  U107_GGGAGG(x1, x2, x3, x5, x6, x7)
PN40_IN_GGAGG(x1, x2, x3, x4, x5)  =  PN40_IN_GGAGG(x1, x2, x4, x5)
U108_GGAGG(x1, x2, x3, x4, x5, x6)  =  U108_GGAGG(x1, x2, x4, x5, x6)
U109_GGAGG(x1, x2, x3, x4, x5, x6)  =  U109_GGAGG(x1, x2, x3, x4, x5, x6)
U31_GG(x1, x2, x3)  =  U31_GG(x1, x2, x3)
SAFET_IN_G(x1)  =  SAFET_IN_G(x1)
U16_G(x1, x2, x3)  =  U16_G(x1, x2, x3)

We have to consider all (P,R,Pi)-chains

(5) DependencyGraphProof (EQUIVALENT transformation)

The approximation of the Dependency Graph [LOPSTR] contains 13 SCCs with 191 less nodes.

(6) Complex Obligation (AND)

(7) Obligation:

Pi DP problem:
The TRS P consists of the following rules:

ADDN_IN_GGA(s(T408), T409, s(X684)) → ADDN_IN_GGA(T408, T409, X684)

The TRS R consists of the following rules:

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))

The argument filtering Pi contains the following mapping:
queensA_in_a(x1)  =  queensA_in_a
U1_a(x1, x2, x3)  =  U1_a(x3)
pB_in_agaa(x1, x2, x3, x4)  =  pB_in_agaa(x2)
U24_agaa(x1, x2, x3, x4, x5)  =  U24_agaa(x2, x5)
deleteO_in_aga(x1, x2, x3)  =  deleteO_in_aga(x2)
deleteO_out_aga(x1, x2, x3)  =  deleteO_out_aga(x1, x2, x3)
U13_aga(x1, x2, x3, x4)  =  U13_aga(x2, x4)
deleteC_in_aga(x1, x2, x3)  =  deleteC_in_aga(x2)
.(x1, x2)  =  .(x1, x2)
deleteC_out_aga(x1, x2, x3)  =  deleteC_out_aga(x1, x2, x3)
U2_aga(x1, x2, x3, x4, x5)  =  U2_aga(x2, x3, x5)
U25_agaa(x1, x2, x3, x4, x5)  =  U25_agaa(x1, x2, x3, x5)
pN9_in_gag(x1, x2, x3)  =  pN9_in_gag(x1, x3)
U26_gag(x1, x2, x3, x4)  =  U26_gag(x1, x3, x4)
permD_in_ga(x1, x2)  =  permD_in_ga(x1)
[]  =  []
permD_out_ga(x1, x2)  =  permD_out_ga(x1, x2)
U3_ga(x1, x2, x3, x4, x5)  =  U3_ga(x1, x2, x5)
pE_in_aggaa(x1, x2, x3, x4, x5)  =  pE_in_aggaa(x2, x3)
U28_aggaa(x1, x2, x3, x4, x5, x6)  =  U28_aggaa(x2, x3, x6)
U29_aggaa(x1, x2, x3, x4, x5, x6)  =  U29_aggaa(x1, x2, x3, x4, x6)
pE_out_aggaa(x1, x2, x3, x4, x5)  =  pE_out_aggaa(x1, x2, x3, x4, x5)
U27_gag(x1, x2, x3, x4)  =  U27_gag(x1, x2, x3, x4)
safeP_in_gg(x1, x2)  =  safeP_in_gg(x1, x2)
U14_gg(x1, x2, x3)  =  U14_gg(x1, x2, x3)
pQ_in_gg(x1, x2)  =  pQ_in_gg(x1, x2)
U30_gg(x1, x2, x3)  =  U30_gg(x1, x2, x3)
noattackR_in_gg(x1, x2)  =  noattackR_in_gg(x1, x2)
noattackR_out_gg(x1, x2)  =  noattackR_out_gg(x1, x2)
U15_gg(x1, x2, x3, x4)  =  U15_gg(x1, x2, x3, x4)
pS_in_ggaag(x1, x2, x3, x4, x5)  =  pS_in_ggaag(x1, x2, x5)
U32_ggaag(x1, x2, x3, x4, x5, x6)  =  U32_ggaag(x1, x2, x5, x6)
notEqF_in_gg(x1, x2)  =  notEqF_in_gg(x1, x2)
0  =  0
s(x1)  =  s(x1)
notEqF_out_gg(x1, x2)  =  notEqF_out_gg(x1, x2)
U4_gg(x1, x2, x3)  =  U4_gg(x1, x2, x3)
U33_ggaag(x1, x2, x3, x4, x5, x6)  =  U33_ggaag(x1, x2, x5, x6)
pN10_in_gagag(x1, x2, x3, x4, x5)  =  pN10_in_gagag(x1, x3, x5)
U34_gagag(x1, x2, x3, x4, x5, x6)  =  U34_gagag(x1, x3, x5, x6)
addG_in_ga(x1, x2)  =  addG_in_ga(x1)
addG_out_ga(x1, x2)  =  addG_out_ga(x1, x2)
U5_ga(x1, x2, x3)  =  U5_ga(x1, x3)
U35_gagag(x1, x2, x3, x4, x5, x6)  =  U35_gagag(x1, x2, x3, x5, x6)
pN11_in_ggagg(x1, x2, x3, x4, x5)  =  pN11_in_ggagg(x1, x2, x4, x5)
U36_ggagg(x1, x2, x3, x4, x5, x6)  =  U36_ggagg(x1, x2, x4, x5, x6)
U37_ggagg(x1, x2, x3, x4, x5, x6)  =  U37_ggagg(x1, x2, x4, x5, x6)
pN12_in_gagg(x1, x2, x3, x4)  =  pN12_in_gagg(x1, x3, x4)
U38_gagg(x1, x2, x3, x4, x5)  =  U38_gagg(x1, x3, x4, x5)
U39_gagg(x1, x2, x3, x4, x5)  =  U39_gagg(x1, x2, x3, x4, x5)
pN13_in_gggg(x1, x2, x3, x4)  =  pN13_in_gggg(x1, x2, x3, x4)
U40_gggg(x1, x2, x3, x4, x5)  =  U40_gggg(x1, x2, x3, x4, x5)
U41_gggg(x1, x2, x3, x4, x5)  =  U41_gggg(x1, x2, x3, x4, x5)
noattackU_in_gg(x1, x2)  =  noattackU_in_gg(x1, x2)
noattackU_out_gg(x1, x2)  =  noattackU_out_gg(x1, x2)
U17_gg(x1, x2, x3, x4)  =  U17_gg(x1, x2, x3, x4)
pV_in_ggaag(x1, x2, x3, x4, x5)  =  pV_in_ggaag(x1, x2, x5)
U42_ggaag(x1, x2, x3, x4, x5, x6)  =  U42_ggaag(x1, x2, x5, x6)
U43_ggaag(x1, x2, x3, x4, x5, x6)  =  U43_ggaag(x1, x2, x5, x6)
pN14_in_gagag(x1, x2, x3, x4, x5)  =  pN14_in_gagag(x1, x3, x5)
U44_gagag(x1, x2, x3, x4, x5, x6)  =  U44_gagag(x1, x3, x5, x6)
addH_in_ga(x1, x2)  =  addH_in_ga(x1)
addH_out_ga(x1, x2)  =  addH_out_ga(x1, x2)
U6_ga(x1, x2, x3)  =  U6_ga(x1, x3)
U45_gagag(x1, x2, x3, x4, x5, x6)  =  U45_gagag(x1, x2, x3, x5, x6)
pN15_in_ggagg(x1, x2, x3, x4, x5)  =  pN15_in_ggagg(x1, x2, x4, x5)
U46_ggagg(x1, x2, x3, x4, x5, x6)  =  U46_ggagg(x1, x2, x4, x5, x6)
U47_ggagg(x1, x2, x3, x4, x5, x6)  =  U47_ggagg(x1, x2, x4, x5, x6)
pN16_in_gagg(x1, x2, x3, x4)  =  pN16_in_gagg(x1, x3, x4)
U48_gagg(x1, x2, x3, x4, x5)  =  U48_gagg(x1, x3, x4, x5)
U49_gagg(x1, x2, x3, x4, x5)  =  U49_gagg(x1, x2, x3, x4, x5)
pN17_in_gggg(x1, x2, x3, x4)  =  pN17_in_gggg(x1, x2, x3, x4)
U50_gggg(x1, x2, x3, x4, x5)  =  U50_gggg(x1, x2, x3, x4, x5)
U51_gggg(x1, x2, x3, x4, x5)  =  U51_gggg(x1, x2, x3, x4, x5)
noattackW_in_gg(x1, x2)  =  noattackW_in_gg(x1, x2)
noattackW_out_gg(x1, x2)  =  noattackW_out_gg(x1, x2)
U18_gg(x1, x2, x3, x4)  =  U18_gg(x1, x2, x3, x4)
pX_in_ggaag(x1, x2, x3, x4, x5)  =  pX_in_ggaag(x1, x2, x5)
U52_ggaag(x1, x2, x3, x4, x5, x6)  =  U52_ggaag(x1, x2, x5, x6)
U53_ggaag(x1, x2, x3, x4, x5, x6)  =  U53_ggaag(x1, x2, x5, x6)
pN18_in_gagag(x1, x2, x3, x4, x5)  =  pN18_in_gagag(x1, x3, x5)
U54_gagag(x1, x2, x3, x4, x5, x6)  =  U54_gagag(x1, x3, x5, x6)
addI_in_ga(x1, x2)  =  addI_in_ga(x1)
addI_out_ga(x1, x2)  =  addI_out_ga(x1, x2)
U7_ga(x1, x2, x3)  =  U7_ga(x1, x3)
U55_gagag(x1, x2, x3, x4, x5, x6)  =  U55_gagag(x1, x2, x3, x5, x6)
pN19_in_ggagg(x1, x2, x3, x4, x5)  =  pN19_in_ggagg(x1, x2, x4, x5)
U56_ggagg(x1, x2, x3, x4, x5, x6)  =  U56_ggagg(x1, x2, x4, x5, x6)
U57_ggagg(x1, x2, x3, x4, x5, x6)  =  U57_ggagg(x1, x2, x4, x5, x6)
pN20_in_gagg(x1, x2, x3, x4)  =  pN20_in_gagg(x1, x3, x4)
U58_gagg(x1, x2, x3, x4, x5)  =  U58_gagg(x1, x3, x4, x5)
U59_gagg(x1, x2, x3, x4, x5)  =  U59_gagg(x1, x2, x3, x4, x5)
pN21_in_gggg(x1, x2, x3, x4)  =  pN21_in_gggg(x1, x2, x3, x4)
U60_gggg(x1, x2, x3, x4, x5)  =  U60_gggg(x1, x2, x3, x4, x5)
U61_gggg(x1, x2, x3, x4, x5)  =  U61_gggg(x1, x2, x3, x4, x5)
noattackY_in_gg(x1, x2)  =  noattackY_in_gg(x1, x2)
noattackY_out_gg(x1, x2)  =  noattackY_out_gg(x1, x2)
U19_gg(x1, x2, x3, x4)  =  U19_gg(x1, x2, x3, x4)
pZ_in_ggaag(x1, x2, x3, x4, x5)  =  pZ_in_ggaag(x1, x2, x5)
U62_ggaag(x1, x2, x3, x4, x5, x6)  =  U62_ggaag(x1, x2, x5, x6)
U63_ggaag(x1, x2, x3, x4, x5, x6)  =  U63_ggaag(x1, x2, x5, x6)
pN22_in_gagag(x1, x2, x3, x4, x5)  =  pN22_in_gagag(x1, x3, x5)
U64_gagag(x1, x2, x3, x4, x5, x6)  =  U64_gagag(x1, x3, x5, x6)
addJ_in_ga(x1, x2)  =  addJ_in_ga(x1)
addJ_out_ga(x1, x2)  =  addJ_out_ga(x1, x2)
U8_ga(x1, x2, x3)  =  U8_ga(x1, x3)
U65_gagag(x1, x2, x3, x4, x5, x6)  =  U65_gagag(x1, x2, x3, x5, x6)
pN23_in_ggagg(x1, x2, x3, x4, x5)  =  pN23_in_ggagg(x1, x2, x4, x5)
U66_ggagg(x1, x2, x3, x4, x5, x6)  =  U66_ggagg(x1, x2, x4, x5, x6)
U67_ggagg(x1, x2, x3, x4, x5, x6)  =  U67_ggagg(x1, x2, x4, x5, x6)
pN24_in_gagg(x1, x2, x3, x4)  =  pN24_in_gagg(x1, x3, x4)
U68_gagg(x1, x2, x3, x4, x5)  =  U68_gagg(x1, x3, x4, x5)
U69_gagg(x1, x2, x3, x4, x5)  =  U69_gagg(x1, x2, x3, x4, x5)
pN25_in_gggg(x1, x2, x3, x4)  =  pN25_in_gggg(x1, x2, x3, x4)
U70_gggg(x1, x2, x3, x4, x5)  =  U70_gggg(x1, x2, x3, x4, x5)
U71_gggg(x1, x2, x3, x4, x5)  =  U71_gggg(x1, x2, x3, x4, x5)
noattackN1_in_gg(x1, x2)  =  noattackN1_in_gg(x1, x2)
noattackN1_out_gg(x1, x2)  =  noattackN1_out_gg(x1, x2)
U20_gg(x1, x2, x3, x4)  =  U20_gg(x1, x2, x3, x4)
pN2_in_ggaag(x1, x2, x3, x4, x5)  =  pN2_in_ggaag(x1, x2, x5)
U72_ggaag(x1, x2, x3, x4, x5, x6)  =  U72_ggaag(x1, x2, x5, x6)
U73_ggaag(x1, x2, x3, x4, x5, x6)  =  U73_ggaag(x1, x2, x5, x6)
pN26_in_gagag(x1, x2, x3, x4, x5)  =  pN26_in_gagag(x1, x3, x5)
U74_gagag(x1, x2, x3, x4, x5, x6)  =  U74_gagag(x1, x3, x5, x6)
addK_in_ga(x1, x2)  =  addK_in_ga(x1)
addK_out_ga(x1, x2)  =  addK_out_ga(x1, x2)
U9_ga(x1, x2, x3)  =  U9_ga(x1, x3)
U75_gagag(x1, x2, x3, x4, x5, x6)  =  U75_gagag(x1, x2, x3, x5, x6)
pN27_in_ggagg(x1, x2, x3, x4, x5)  =  pN27_in_ggagg(x1, x2, x4, x5)
U76_ggagg(x1, x2, x3, x4, x5, x6)  =  U76_ggagg(x1, x2, x4, x5, x6)
U77_ggagg(x1, x2, x3, x4, x5, x6)  =  U77_ggagg(x1, x2, x4, x5, x6)
pN28_in_gagg(x1, x2, x3, x4)  =  pN28_in_gagg(x1, x3, x4)
U78_gagg(x1, x2, x3, x4, x5)  =  U78_gagg(x1, x3, x4, x5)
U79_gagg(x1, x2, x3, x4, x5)  =  U79_gagg(x1, x2, x3, x4, x5)
pN29_in_gggg(x1, x2, x3, x4)  =  pN29_in_gggg(x1, x2, x3, x4)
U80_gggg(x1, x2, x3, x4, x5)  =  U80_gggg(x1, x2, x3, x4, x5)
U81_gggg(x1, x2, x3, x4, x5)  =  U81_gggg(x1, x2, x3, x4, x5)
noattackN3_in_gg(x1, x2)  =  noattackN3_in_gg(x1, x2)
noattackN3_out_gg(x1, x2)  =  noattackN3_out_gg(x1, x2)
U21_gg(x1, x2, x3, x4)  =  U21_gg(x1, x2, x3, x4)
pN4_in_ggaag(x1, x2, x3, x4, x5)  =  pN4_in_ggaag(x1, x2, x5)
U82_ggaag(x1, x2, x3, x4, x5, x6)  =  U82_ggaag(x1, x2, x5, x6)
U83_ggaag(x1, x2, x3, x4, x5, x6)  =  U83_ggaag(x1, x2, x5, x6)
pN30_in_gagag(x1, x2, x3, x4, x5)  =  pN30_in_gagag(x1, x3, x5)
U84_gagag(x1, x2, x3, x4, x5, x6)  =  U84_gagag(x1, x3, x5, x6)
addL_in_ga(x1, x2)  =  addL_in_ga(x1)
addL_out_ga(x1, x2)  =  addL_out_ga(x1, x2)
U10_ga(x1, x2, x3)  =  U10_ga(x1, x3)
U85_gagag(x1, x2, x3, x4, x5, x6)  =  U85_gagag(x1, x2, x3, x5, x6)
pN31_in_ggagg(x1, x2, x3, x4, x5)  =  pN31_in_ggagg(x1, x2, x4, x5)
U86_ggagg(x1, x2, x3, x4, x5, x6)  =  U86_ggagg(x1, x2, x4, x5, x6)
U87_ggagg(x1, x2, x3, x4, x5, x6)  =  U87_ggagg(x1, x2, x4, x5, x6)
pN32_in_gagg(x1, x2, x3, x4)  =  pN32_in_gagg(x1, x3, x4)
U88_gagg(x1, x2, x3, x4, x5)  =  U88_gagg(x1, x3, x4, x5)
U89_gagg(x1, x2, x3, x4, x5)  =  U89_gagg(x1, x2, x3, x4, x5)
pN33_in_gggg(x1, x2, x3, x4)  =  pN33_in_gggg(x1, x2, x3, x4)
U90_gggg(x1, x2, x3, x4, x5)  =  U90_gggg(x1, x2, x3, x4, x5)
U91_gggg(x1, x2, x3, x4, x5)  =  U91_gggg(x1, x2, x3, x4, x5)
noattackN5_in_gg(x1, x2)  =  noattackN5_in_gg(x1, x2)
noattackN5_out_gg(x1, x2)  =  noattackN5_out_gg(x1, x2)
U22_gg(x1, x2, x3, x4)  =  U22_gg(x1, x2, x3, x4)
pN6_in_ggaagg(x1, x2, x3, x4, x5, x6)  =  pN6_in_ggaagg(x1, x2, x5, x6)
U92_ggaagg(x1, x2, x3, x4, x5, x6, x7)  =  U92_ggaagg(x1, x2, x5, x6, x7)
U93_ggaagg(x1, x2, x3, x4, x5, x6, x7)  =  U93_ggaagg(x1, x2, x5, x6, x7)
pN34_in_gagagg(x1, x2, x3, x4, x5, x6)  =  pN34_in_gagagg(x1, x3, x5, x6)
U94_gagagg(x1, x2, x3, x4, x5, x6, x7)  =  U94_gagagg(x1, x3, x5, x6, x7)
addM_in_ga(x1, x2)  =  addM_in_ga(x1)
addM_out_ga(x1, x2)  =  addM_out_ga(x1, x2)
U11_ga(x1, x2, x3)  =  U11_ga(x1, x3)
U95_gagagg(x1, x2, x3, x4, x5, x6, x7)  =  U95_gagagg(x1, x2, x3, x5, x6, x7)
pN35_in_ggaggg(x1, x2, x3, x4, x5, x6)  =  pN35_in_ggaggg(x1, x2, x4, x5, x6)
U96_ggaggg(x1, x2, x3, x4, x5, x6, x7)  =  U96_ggaggg(x1, x2, x4, x5, x6, x7)
U97_ggaggg(x1, x2, x3, x4, x5, x6, x7)  =  U97_ggaggg(x1, x2, x4, x5, x6, x7)
pN36_in_gaggg(x1, x2, x3, x4, x5)  =  pN36_in_gaggg(x1, x3, x4, x5)
U98_gaggg(x1, x2, x3, x4, x5, x6)  =  U98_gaggg(x1, x3, x4, x5, x6)
U99_gaggg(x1, x2, x3, x4, x5, x6)  =  U99_gaggg(x1, x2, x3, x4, x5, x6)
pN37_in_ggggg(x1, x2, x3, x4, x5)  =  pN37_in_ggggg(x1, x2, x3, x4, x5)
U100_ggggg(x1, x2, x3, x4, x5, x6)  =  U100_ggggg(x1, x2, x3, x4, x5, x6)
U101_ggggg(x1, x2, x3, x4, x5, x6)  =  U101_ggggg(x1, x2, x3, x4, x5, x6)
noattackN7_in_ggg(x1, x2, x3)  =  noattackN7_in_ggg(x1, x2, x3)
noattackN7_out_ggg(x1, x2, x3)  =  noattackN7_out_ggg(x1, x2, x3)
U23_ggg(x1, x2, x3, x4, x5)  =  U23_ggg(x1, x2, x3, x4, x5)
pN8_in_gggaag(x1, x2, x3, x4, x5, x6)  =  pN8_in_gggaag(x1, x2, x3, x6)
U102_gggaag(x1, x2, x3, x4, x5, x6, x7)  =  U102_gggaag(x1, x2, x3, x6, x7)
U103_gggaag(x1, x2, x3, x4, x5, x6, x7)  =  U103_gggaag(x1, x2, x3, x6, x7)
pN38_in_ggagag(x1, x2, x3, x4, x5, x6)  =  pN38_in_ggagag(x1, x2, x4, x6)
U104_ggagag(x1, x2, x3, x4, x5, x6, x7)  =  U104_ggagag(x1, x2, x4, x6, x7)
addN_in_gga(x1, x2, x3)  =  addN_in_gga(x1, x2)
addN_out_gga(x1, x2, x3)  =  addN_out_gga(x1, x2, x3)
U12_gga(x1, x2, x3, x4)  =  U12_gga(x1, x2, x4)
U105_ggagag(x1, x2, x3, x4, x5, x6, x7)  =  U105_ggagag(x1, x2, x3, x4, x6, x7)
pN39_in_gggagg(x1, x2, x3, x4, x5, x6)  =  pN39_in_gggagg(x1, x2, x3, x5, x6)
U106_gggagg(x1, x2, x3, x4, x5, x6, x7)  =  U106_gggagg(x1, x2, x3, x5, x6, x7)
U107_gggagg(x1, x2, x3, x4, x5, x6, x7)  =  U107_gggagg(x1, x2, x3, x5, x6, x7)
pN40_in_ggagg(x1, x2, x3, x4, x5)  =  pN40_in_ggagg(x1, x2, x4, x5)
U108_ggagg(x1, x2, x3, x4, x5, x6)  =  U108_ggagg(x1, x2, x4, x5, x6)
U109_ggagg(x1, x2, x3, x4, x5, x6)  =  U109_ggagg(x1, x2, x3, x4, x5, x6)
pN37_out_ggggg(x1, x2, x3, x4, x5)  =  pN37_out_ggggg(x1, x2, x3, x4, x5)
pN40_out_ggagg(x1, x2, x3, x4, x5)  =  pN40_out_ggagg(x1, x2, x3, x4, x5)
pN39_out_gggagg(x1, x2, x3, x4, x5, x6)  =  pN39_out_gggagg(x1, x2, x3, x4, x5, x6)
pN38_out_ggagag(x1, x2, x3, x4, x5, x6)  =  pN38_out_ggagag(x1, x2, x3, x4, x5, x6)
pN8_out_gggaag(x1, x2, x3, x4, x5, x6)  =  pN8_out_gggaag(x1, x2, x3, x4, x5, x6)
pN36_out_gaggg(x1, x2, x3, x4, x5)  =  pN36_out_gaggg(x1, x2, x3, x4, x5)
pN35_out_ggaggg(x1, x2, x3, x4, x5, x6)  =  pN35_out_ggaggg(x1, x2, x3, x4, x5, x6)
pN34_out_gagagg(x1, x2, x3, x4, x5, x6)  =  pN34_out_gagagg(x1, x2, x3, x4, x5, x6)
pN6_out_ggaagg(x1, x2, x3, x4, x5, x6)  =  pN6_out_ggaagg(x1, x2, x3, x4, x5, x6)
pN33_out_gggg(x1, x2, x3, x4)  =  pN33_out_gggg(x1, x2, x3, x4)
pN32_out_gagg(x1, x2, x3, x4)  =  pN32_out_gagg(x1, x2, x3, x4)
pN31_out_ggagg(x1, x2, x3, x4, x5)  =  pN31_out_ggagg(x1, x2, x3, x4, x5)
pN30_out_gagag(x1, x2, x3, x4, x5)  =  pN30_out_gagag(x1, x2, x3, x4, x5)
pN4_out_ggaag(x1, x2, x3, x4, x5)  =  pN4_out_ggaag(x1, x2, x3, x4, x5)
pN29_out_gggg(x1, x2, x3, x4)  =  pN29_out_gggg(x1, x2, x3, x4)
pN28_out_gagg(x1, x2, x3, x4)  =  pN28_out_gagg(x1, x2, x3, x4)
pN27_out_ggagg(x1, x2, x3, x4, x5)  =  pN27_out_ggagg(x1, x2, x3, x4, x5)
pN26_out_gagag(x1, x2, x3, x4, x5)  =  pN26_out_gagag(x1, x2, x3, x4, x5)
pN2_out_ggaag(x1, x2, x3, x4, x5)  =  pN2_out_ggaag(x1, x2, x3, x4, x5)
pN25_out_gggg(x1, x2, x3, x4)  =  pN25_out_gggg(x1, x2, x3, x4)
pN24_out_gagg(x1, x2, x3, x4)  =  pN24_out_gagg(x1, x2, x3, x4)
pN23_out_ggagg(x1, x2, x3, x4, x5)  =  pN23_out_ggagg(x1, x2, x3, x4, x5)
pN22_out_gagag(x1, x2, x3, x4, x5)  =  pN22_out_gagag(x1, x2, x3, x4, x5)
pZ_out_ggaag(x1, x2, x3, x4, x5)  =  pZ_out_ggaag(x1, x2, x3, x4, x5)
pN21_out_gggg(x1, x2, x3, x4)  =  pN21_out_gggg(x1, x2, x3, x4)
pN20_out_gagg(x1, x2, x3, x4)  =  pN20_out_gagg(x1, x2, x3, x4)
pN19_out_ggagg(x1, x2, x3, x4, x5)  =  pN19_out_ggagg(x1, x2, x3, x4, x5)
pN18_out_gagag(x1, x2, x3, x4, x5)  =  pN18_out_gagag(x1, x2, x3, x4, x5)
pX_out_ggaag(x1, x2, x3, x4, x5)  =  pX_out_ggaag(x1, x2, x3, x4, x5)
pN17_out_gggg(x1, x2, x3, x4)  =  pN17_out_gggg(x1, x2, x3, x4)
pN16_out_gagg(x1, x2, x3, x4)  =  pN16_out_gagg(x1, x2, x3, x4)
pN15_out_ggagg(x1, x2, x3, x4, x5)  =  pN15_out_ggagg(x1, x2, x3, x4, x5)
pN14_out_gagag(x1, x2, x3, x4, x5)  =  pN14_out_gagag(x1, x2, x3, x4, x5)
pV_out_ggaag(x1, x2, x3, x4, x5)  =  pV_out_ggaag(x1, x2, x3, x4, x5)
pN13_out_gggg(x1, x2, x3, x4)  =  pN13_out_gggg(x1, x2, x3, x4)
pN12_out_gagg(x1, x2, x3, x4)  =  pN12_out_gagg(x1, x2, x3, x4)
pN11_out_ggagg(x1, x2, x3, x4, x5)  =  pN11_out_ggagg(x1, x2, x3, x4, x5)
pN10_out_gagag(x1, x2, x3, x4, x5)  =  pN10_out_gagag(x1, x2, x3, x4, x5)
pS_out_ggaag(x1, x2, x3, x4, x5)  =  pS_out_ggaag(x1, x2, x3, x4, x5)
U31_gg(x1, x2, x3)  =  U31_gg(x1, x2, x3)
safeT_in_g(x1)  =  safeT_in_g(x1)
safeT_out_g(x1)  =  safeT_out_g(x1)
U16_g(x1, x2, x3)  =  U16_g(x1, x2, x3)
pQ_out_gg(x1, x2)  =  pQ_out_gg(x1, x2)
safeP_out_gg(x1, x2)  =  safeP_out_gg(x1, x2)
pN9_out_gag(x1, x2, x3)  =  pN9_out_gag(x1, x2, x3)
pB_out_agaa(x1, x2, x3, x4)  =  pB_out_agaa(x1, x2, x3, x4)
queensA_out_a(x1)  =  queensA_out_a(x1)
ADDN_IN_GGA(x1, x2, x3)  =  ADDN_IN_GGA(x1, x2)

We have to consider all (P,R,Pi)-chains

(8) UsableRulesProof (EQUIVALENT transformation)

For (infinitary) constructor rewriting [LOPSTR] we can delete all non-usable rules from R.

(9) Obligation:

Pi DP problem:
The TRS P consists of the following rules:

ADDN_IN_GGA(s(T408), T409, s(X684)) → ADDN_IN_GGA(T408, T409, X684)

R is empty.
The argument filtering Pi contains the following mapping:
s(x1)  =  s(x1)
ADDN_IN_GGA(x1, x2, x3)  =  ADDN_IN_GGA(x1, x2)

We have to consider all (P,R,Pi)-chains

(10) PiDPToQDPProof (SOUND transformation)

Transforming (infinitary) constructor rewriting Pi-DP problem [LOPSTR] into ordinary QDP problem [LPAR04] by application of Pi.

(11) Obligation:

Q DP problem:
The TRS P consists of the following rules:

ADDN_IN_GGA(s(T408), T409) → ADDN_IN_GGA(T408, T409)

R is empty.
Q is empty.
We have to consider all (P,Q,R)-chains.

(12) QDPSizeChangeProof (EQUIVALENT transformation)

By using the subterm criterion [SUBTERM_CRITERION] together with the size-change analysis [AAECC05] we have proven that there are no infinite chains for this DP problem.

From the DPs we obtained the following set of size-change graphs:

  • ADDN_IN_GGA(s(T408), T409) → ADDN_IN_GGA(T408, T409)
    The graph contains the following edges 1 > 1, 2 >= 2

(13) YES

(14) Obligation:

Pi DP problem:
The TRS P consists of the following rules:

ADDM_IN_GA(s(T354), s(X615)) → ADDM_IN_GA(T354, X615)

The TRS R consists of the following rules:

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))

The argument filtering Pi contains the following mapping:
queensA_in_a(x1)  =  queensA_in_a
U1_a(x1, x2, x3)  =  U1_a(x3)
pB_in_agaa(x1, x2, x3, x4)  =  pB_in_agaa(x2)
U24_agaa(x1, x2, x3, x4, x5)  =  U24_agaa(x2, x5)
deleteO_in_aga(x1, x2, x3)  =  deleteO_in_aga(x2)
deleteO_out_aga(x1, x2, x3)  =  deleteO_out_aga(x1, x2, x3)
U13_aga(x1, x2, x3, x4)  =  U13_aga(x2, x4)
deleteC_in_aga(x1, x2, x3)  =  deleteC_in_aga(x2)
.(x1, x2)  =  .(x1, x2)
deleteC_out_aga(x1, x2, x3)  =  deleteC_out_aga(x1, x2, x3)
U2_aga(x1, x2, x3, x4, x5)  =  U2_aga(x2, x3, x5)
U25_agaa(x1, x2, x3, x4, x5)  =  U25_agaa(x1, x2, x3, x5)
pN9_in_gag(x1, x2, x3)  =  pN9_in_gag(x1, x3)
U26_gag(x1, x2, x3, x4)  =  U26_gag(x1, x3, x4)
permD_in_ga(x1, x2)  =  permD_in_ga(x1)
[]  =  []
permD_out_ga(x1, x2)  =  permD_out_ga(x1, x2)
U3_ga(x1, x2, x3, x4, x5)  =  U3_ga(x1, x2, x5)
pE_in_aggaa(x1, x2, x3, x4, x5)  =  pE_in_aggaa(x2, x3)
U28_aggaa(x1, x2, x3, x4, x5, x6)  =  U28_aggaa(x2, x3, x6)
U29_aggaa(x1, x2, x3, x4, x5, x6)  =  U29_aggaa(x1, x2, x3, x4, x6)
pE_out_aggaa(x1, x2, x3, x4, x5)  =  pE_out_aggaa(x1, x2, x3, x4, x5)
U27_gag(x1, x2, x3, x4)  =  U27_gag(x1, x2, x3, x4)
safeP_in_gg(x1, x2)  =  safeP_in_gg(x1, x2)
U14_gg(x1, x2, x3)  =  U14_gg(x1, x2, x3)
pQ_in_gg(x1, x2)  =  pQ_in_gg(x1, x2)
U30_gg(x1, x2, x3)  =  U30_gg(x1, x2, x3)
noattackR_in_gg(x1, x2)  =  noattackR_in_gg(x1, x2)
noattackR_out_gg(x1, x2)  =  noattackR_out_gg(x1, x2)
U15_gg(x1, x2, x3, x4)  =  U15_gg(x1, x2, x3, x4)
pS_in_ggaag(x1, x2, x3, x4, x5)  =  pS_in_ggaag(x1, x2, x5)
U32_ggaag(x1, x2, x3, x4, x5, x6)  =  U32_ggaag(x1, x2, x5, x6)
notEqF_in_gg(x1, x2)  =  notEqF_in_gg(x1, x2)
0  =  0
s(x1)  =  s(x1)
notEqF_out_gg(x1, x2)  =  notEqF_out_gg(x1, x2)
U4_gg(x1, x2, x3)  =  U4_gg(x1, x2, x3)
U33_ggaag(x1, x2, x3, x4, x5, x6)  =  U33_ggaag(x1, x2, x5, x6)
pN10_in_gagag(x1, x2, x3, x4, x5)  =  pN10_in_gagag(x1, x3, x5)
U34_gagag(x1, x2, x3, x4, x5, x6)  =  U34_gagag(x1, x3, x5, x6)
addG_in_ga(x1, x2)  =  addG_in_ga(x1)
addG_out_ga(x1, x2)  =  addG_out_ga(x1, x2)
U5_ga(x1, x2, x3)  =  U5_ga(x1, x3)
U35_gagag(x1, x2, x3, x4, x5, x6)  =  U35_gagag(x1, x2, x3, x5, x6)
pN11_in_ggagg(x1, x2, x3, x4, x5)  =  pN11_in_ggagg(x1, x2, x4, x5)
U36_ggagg(x1, x2, x3, x4, x5, x6)  =  U36_ggagg(x1, x2, x4, x5, x6)
U37_ggagg(x1, x2, x3, x4, x5, x6)  =  U37_ggagg(x1, x2, x4, x5, x6)
pN12_in_gagg(x1, x2, x3, x4)  =  pN12_in_gagg(x1, x3, x4)
U38_gagg(x1, x2, x3, x4, x5)  =  U38_gagg(x1, x3, x4, x5)
U39_gagg(x1, x2, x3, x4, x5)  =  U39_gagg(x1, x2, x3, x4, x5)
pN13_in_gggg(x1, x2, x3, x4)  =  pN13_in_gggg(x1, x2, x3, x4)
U40_gggg(x1, x2, x3, x4, x5)  =  U40_gggg(x1, x2, x3, x4, x5)
U41_gggg(x1, x2, x3, x4, x5)  =  U41_gggg(x1, x2, x3, x4, x5)
noattackU_in_gg(x1, x2)  =  noattackU_in_gg(x1, x2)
noattackU_out_gg(x1, x2)  =  noattackU_out_gg(x1, x2)
U17_gg(x1, x2, x3, x4)  =  U17_gg(x1, x2, x3, x4)
pV_in_ggaag(x1, x2, x3, x4, x5)  =  pV_in_ggaag(x1, x2, x5)
U42_ggaag(x1, x2, x3, x4, x5, x6)  =  U42_ggaag(x1, x2, x5, x6)
U43_ggaag(x1, x2, x3, x4, x5, x6)  =  U43_ggaag(x1, x2, x5, x6)
pN14_in_gagag(x1, x2, x3, x4, x5)  =  pN14_in_gagag(x1, x3, x5)
U44_gagag(x1, x2, x3, x4, x5, x6)  =  U44_gagag(x1, x3, x5, x6)
addH_in_ga(x1, x2)  =  addH_in_ga(x1)
addH_out_ga(x1, x2)  =  addH_out_ga(x1, x2)
U6_ga(x1, x2, x3)  =  U6_ga(x1, x3)
U45_gagag(x1, x2, x3, x4, x5, x6)  =  U45_gagag(x1, x2, x3, x5, x6)
pN15_in_ggagg(x1, x2, x3, x4, x5)  =  pN15_in_ggagg(x1, x2, x4, x5)
U46_ggagg(x1, x2, x3, x4, x5, x6)  =  U46_ggagg(x1, x2, x4, x5, x6)
U47_ggagg(x1, x2, x3, x4, x5, x6)  =  U47_ggagg(x1, x2, x4, x5, x6)
pN16_in_gagg(x1, x2, x3, x4)  =  pN16_in_gagg(x1, x3, x4)
U48_gagg(x1, x2, x3, x4, x5)  =  U48_gagg(x1, x3, x4, x5)
U49_gagg(x1, x2, x3, x4, x5)  =  U49_gagg(x1, x2, x3, x4, x5)
pN17_in_gggg(x1, x2, x3, x4)  =  pN17_in_gggg(x1, x2, x3, x4)
U50_gggg(x1, x2, x3, x4, x5)  =  U50_gggg(x1, x2, x3, x4, x5)
U51_gggg(x1, x2, x3, x4, x5)  =  U51_gggg(x1, x2, x3, x4, x5)
noattackW_in_gg(x1, x2)  =  noattackW_in_gg(x1, x2)
noattackW_out_gg(x1, x2)  =  noattackW_out_gg(x1, x2)
U18_gg(x1, x2, x3, x4)  =  U18_gg(x1, x2, x3, x4)
pX_in_ggaag(x1, x2, x3, x4, x5)  =  pX_in_ggaag(x1, x2, x5)
U52_ggaag(x1, x2, x3, x4, x5, x6)  =  U52_ggaag(x1, x2, x5, x6)
U53_ggaag(x1, x2, x3, x4, x5, x6)  =  U53_ggaag(x1, x2, x5, x6)
pN18_in_gagag(x1, x2, x3, x4, x5)  =  pN18_in_gagag(x1, x3, x5)
U54_gagag(x1, x2, x3, x4, x5, x6)  =  U54_gagag(x1, x3, x5, x6)
addI_in_ga(x1, x2)  =  addI_in_ga(x1)
addI_out_ga(x1, x2)  =  addI_out_ga(x1, x2)
U7_ga(x1, x2, x3)  =  U7_ga(x1, x3)
U55_gagag(x1, x2, x3, x4, x5, x6)  =  U55_gagag(x1, x2, x3, x5, x6)
pN19_in_ggagg(x1, x2, x3, x4, x5)  =  pN19_in_ggagg(x1, x2, x4, x5)
U56_ggagg(x1, x2, x3, x4, x5, x6)  =  U56_ggagg(x1, x2, x4, x5, x6)
U57_ggagg(x1, x2, x3, x4, x5, x6)  =  U57_ggagg(x1, x2, x4, x5, x6)
pN20_in_gagg(x1, x2, x3, x4)  =  pN20_in_gagg(x1, x3, x4)
U58_gagg(x1, x2, x3, x4, x5)  =  U58_gagg(x1, x3, x4, x5)
U59_gagg(x1, x2, x3, x4, x5)  =  U59_gagg(x1, x2, x3, x4, x5)
pN21_in_gggg(x1, x2, x3, x4)  =  pN21_in_gggg(x1, x2, x3, x4)
U60_gggg(x1, x2, x3, x4, x5)  =  U60_gggg(x1, x2, x3, x4, x5)
U61_gggg(x1, x2, x3, x4, x5)  =  U61_gggg(x1, x2, x3, x4, x5)
noattackY_in_gg(x1, x2)  =  noattackY_in_gg(x1, x2)
noattackY_out_gg(x1, x2)  =  noattackY_out_gg(x1, x2)
U19_gg(x1, x2, x3, x4)  =  U19_gg(x1, x2, x3, x4)
pZ_in_ggaag(x1, x2, x3, x4, x5)  =  pZ_in_ggaag(x1, x2, x5)
U62_ggaag(x1, x2, x3, x4, x5, x6)  =  U62_ggaag(x1, x2, x5, x6)
U63_ggaag(x1, x2, x3, x4, x5, x6)  =  U63_ggaag(x1, x2, x5, x6)
pN22_in_gagag(x1, x2, x3, x4, x5)  =  pN22_in_gagag(x1, x3, x5)
U64_gagag(x1, x2, x3, x4, x5, x6)  =  U64_gagag(x1, x3, x5, x6)
addJ_in_ga(x1, x2)  =  addJ_in_ga(x1)
addJ_out_ga(x1, x2)  =  addJ_out_ga(x1, x2)
U8_ga(x1, x2, x3)  =  U8_ga(x1, x3)
U65_gagag(x1, x2, x3, x4, x5, x6)  =  U65_gagag(x1, x2, x3, x5, x6)
pN23_in_ggagg(x1, x2, x3, x4, x5)  =  pN23_in_ggagg(x1, x2, x4, x5)
U66_ggagg(x1, x2, x3, x4, x5, x6)  =  U66_ggagg(x1, x2, x4, x5, x6)
U67_ggagg(x1, x2, x3, x4, x5, x6)  =  U67_ggagg(x1, x2, x4, x5, x6)
pN24_in_gagg(x1, x2, x3, x4)  =  pN24_in_gagg(x1, x3, x4)
U68_gagg(x1, x2, x3, x4, x5)  =  U68_gagg(x1, x3, x4, x5)
U69_gagg(x1, x2, x3, x4, x5)  =  U69_gagg(x1, x2, x3, x4, x5)
pN25_in_gggg(x1, x2, x3, x4)  =  pN25_in_gggg(x1, x2, x3, x4)
U70_gggg(x1, x2, x3, x4, x5)  =  U70_gggg(x1, x2, x3, x4, x5)
U71_gggg(x1, x2, x3, x4, x5)  =  U71_gggg(x1, x2, x3, x4, x5)
noattackN1_in_gg(x1, x2)  =  noattackN1_in_gg(x1, x2)
noattackN1_out_gg(x1, x2)  =  noattackN1_out_gg(x1, x2)
U20_gg(x1, x2, x3, x4)  =  U20_gg(x1, x2, x3, x4)
pN2_in_ggaag(x1, x2, x3, x4, x5)  =  pN2_in_ggaag(x1, x2, x5)
U72_ggaag(x1, x2, x3, x4, x5, x6)  =  U72_ggaag(x1, x2, x5, x6)
U73_ggaag(x1, x2, x3, x4, x5, x6)  =  U73_ggaag(x1, x2, x5, x6)
pN26_in_gagag(x1, x2, x3, x4, x5)  =  pN26_in_gagag(x1, x3, x5)
U74_gagag(x1, x2, x3, x4, x5, x6)  =  U74_gagag(x1, x3, x5, x6)
addK_in_ga(x1, x2)  =  addK_in_ga(x1)
addK_out_ga(x1, x2)  =  addK_out_ga(x1, x2)
U9_ga(x1, x2, x3)  =  U9_ga(x1, x3)
U75_gagag(x1, x2, x3, x4, x5, x6)  =  U75_gagag(x1, x2, x3, x5, x6)
pN27_in_ggagg(x1, x2, x3, x4, x5)  =  pN27_in_ggagg(x1, x2, x4, x5)
U76_ggagg(x1, x2, x3, x4, x5, x6)  =  U76_ggagg(x1, x2, x4, x5, x6)
U77_ggagg(x1, x2, x3, x4, x5, x6)  =  U77_ggagg(x1, x2, x4, x5, x6)
pN28_in_gagg(x1, x2, x3, x4)  =  pN28_in_gagg(x1, x3, x4)
U78_gagg(x1, x2, x3, x4, x5)  =  U78_gagg(x1, x3, x4, x5)
U79_gagg(x1, x2, x3, x4, x5)  =  U79_gagg(x1, x2, x3, x4, x5)
pN29_in_gggg(x1, x2, x3, x4)  =  pN29_in_gggg(x1, x2, x3, x4)
U80_gggg(x1, x2, x3, x4, x5)  =  U80_gggg(x1, x2, x3, x4, x5)
U81_gggg(x1, x2, x3, x4, x5)  =  U81_gggg(x1, x2, x3, x4, x5)
noattackN3_in_gg(x1, x2)  =  noattackN3_in_gg(x1, x2)
noattackN3_out_gg(x1, x2)  =  noattackN3_out_gg(x1, x2)
U21_gg(x1, x2, x3, x4)  =  U21_gg(x1, x2, x3, x4)
pN4_in_ggaag(x1, x2, x3, x4, x5)  =  pN4_in_ggaag(x1, x2, x5)
U82_ggaag(x1, x2, x3, x4, x5, x6)  =  U82_ggaag(x1, x2, x5, x6)
U83_ggaag(x1, x2, x3, x4, x5, x6)  =  U83_ggaag(x1, x2, x5, x6)
pN30_in_gagag(x1, x2, x3, x4, x5)  =  pN30_in_gagag(x1, x3, x5)
U84_gagag(x1, x2, x3, x4, x5, x6)  =  U84_gagag(x1, x3, x5, x6)
addL_in_ga(x1, x2)  =  addL_in_ga(x1)
addL_out_ga(x1, x2)  =  addL_out_ga(x1, x2)
U10_ga(x1, x2, x3)  =  U10_ga(x1, x3)
U85_gagag(x1, x2, x3, x4, x5, x6)  =  U85_gagag(x1, x2, x3, x5, x6)
pN31_in_ggagg(x1, x2, x3, x4, x5)  =  pN31_in_ggagg(x1, x2, x4, x5)
U86_ggagg(x1, x2, x3, x4, x5, x6)  =  U86_ggagg(x1, x2, x4, x5, x6)
U87_ggagg(x1, x2, x3, x4, x5, x6)  =  U87_ggagg(x1, x2, x4, x5, x6)
pN32_in_gagg(x1, x2, x3, x4)  =  pN32_in_gagg(x1, x3, x4)
U88_gagg(x1, x2, x3, x4, x5)  =  U88_gagg(x1, x3, x4, x5)
U89_gagg(x1, x2, x3, x4, x5)  =  U89_gagg(x1, x2, x3, x4, x5)
pN33_in_gggg(x1, x2, x3, x4)  =  pN33_in_gggg(x1, x2, x3, x4)
U90_gggg(x1, x2, x3, x4, x5)  =  U90_gggg(x1, x2, x3, x4, x5)
U91_gggg(x1, x2, x3, x4, x5)  =  U91_gggg(x1, x2, x3, x4, x5)
noattackN5_in_gg(x1, x2)  =  noattackN5_in_gg(x1, x2)
noattackN5_out_gg(x1, x2)  =  noattackN5_out_gg(x1, x2)
U22_gg(x1, x2, x3, x4)  =  U22_gg(x1, x2, x3, x4)
pN6_in_ggaagg(x1, x2, x3, x4, x5, x6)  =  pN6_in_ggaagg(x1, x2, x5, x6)
U92_ggaagg(x1, x2, x3, x4, x5, x6, x7)  =  U92_ggaagg(x1, x2, x5, x6, x7)
U93_ggaagg(x1, x2, x3, x4, x5, x6, x7)  =  U93_ggaagg(x1, x2, x5, x6, x7)
pN34_in_gagagg(x1, x2, x3, x4, x5, x6)  =  pN34_in_gagagg(x1, x3, x5, x6)
U94_gagagg(x1, x2, x3, x4, x5, x6, x7)  =  U94_gagagg(x1, x3, x5, x6, x7)
addM_in_ga(x1, x2)  =  addM_in_ga(x1)
addM_out_ga(x1, x2)  =  addM_out_ga(x1, x2)
U11_ga(x1, x2, x3)  =  U11_ga(x1, x3)
U95_gagagg(x1, x2, x3, x4, x5, x6, x7)  =  U95_gagagg(x1, x2, x3, x5, x6, x7)
pN35_in_ggaggg(x1, x2, x3, x4, x5, x6)  =  pN35_in_ggaggg(x1, x2, x4, x5, x6)
U96_ggaggg(x1, x2, x3, x4, x5, x6, x7)  =  U96_ggaggg(x1, x2, x4, x5, x6, x7)
U97_ggaggg(x1, x2, x3, x4, x5, x6, x7)  =  U97_ggaggg(x1, x2, x4, x5, x6, x7)
pN36_in_gaggg(x1, x2, x3, x4, x5)  =  pN36_in_gaggg(x1, x3, x4, x5)
U98_gaggg(x1, x2, x3, x4, x5, x6)  =  U98_gaggg(x1, x3, x4, x5, x6)
U99_gaggg(x1, x2, x3, x4, x5, x6)  =  U99_gaggg(x1, x2, x3, x4, x5, x6)
pN37_in_ggggg(x1, x2, x3, x4, x5)  =  pN37_in_ggggg(x1, x2, x3, x4, x5)
U100_ggggg(x1, x2, x3, x4, x5, x6)  =  U100_ggggg(x1, x2, x3, x4, x5, x6)
U101_ggggg(x1, x2, x3, x4, x5, x6)  =  U101_ggggg(x1, x2, x3, x4, x5, x6)
noattackN7_in_ggg(x1, x2, x3)  =  noattackN7_in_ggg(x1, x2, x3)
noattackN7_out_ggg(x1, x2, x3)  =  noattackN7_out_ggg(x1, x2, x3)
U23_ggg(x1, x2, x3, x4, x5)  =  U23_ggg(x1, x2, x3, x4, x5)
pN8_in_gggaag(x1, x2, x3, x4, x5, x6)  =  pN8_in_gggaag(x1, x2, x3, x6)
U102_gggaag(x1, x2, x3, x4, x5, x6, x7)  =  U102_gggaag(x1, x2, x3, x6, x7)
U103_gggaag(x1, x2, x3, x4, x5, x6, x7)  =  U103_gggaag(x1, x2, x3, x6, x7)
pN38_in_ggagag(x1, x2, x3, x4, x5, x6)  =  pN38_in_ggagag(x1, x2, x4, x6)
U104_ggagag(x1, x2, x3, x4, x5, x6, x7)  =  U104_ggagag(x1, x2, x4, x6, x7)
addN_in_gga(x1, x2, x3)  =  addN_in_gga(x1, x2)
addN_out_gga(x1, x2, x3)  =  addN_out_gga(x1, x2, x3)
U12_gga(x1, x2, x3, x4)  =  U12_gga(x1, x2, x4)
U105_ggagag(x1, x2, x3, x4, x5, x6, x7)  =  U105_ggagag(x1, x2, x3, x4, x6, x7)
pN39_in_gggagg(x1, x2, x3, x4, x5, x6)  =  pN39_in_gggagg(x1, x2, x3, x5, x6)
U106_gggagg(x1, x2, x3, x4, x5, x6, x7)  =  U106_gggagg(x1, x2, x3, x5, x6, x7)
U107_gggagg(x1, x2, x3, x4, x5, x6, x7)  =  U107_gggagg(x1, x2, x3, x5, x6, x7)
pN40_in_ggagg(x1, x2, x3, x4, x5)  =  pN40_in_ggagg(x1, x2, x4, x5)
U108_ggagg(x1, x2, x3, x4, x5, x6)  =  U108_ggagg(x1, x2, x4, x5, x6)
U109_ggagg(x1, x2, x3, x4, x5, x6)  =  U109_ggagg(x1, x2, x3, x4, x5, x6)
pN37_out_ggggg(x1, x2, x3, x4, x5)  =  pN37_out_ggggg(x1, x2, x3, x4, x5)
pN40_out_ggagg(x1, x2, x3, x4, x5)  =  pN40_out_ggagg(x1, x2, x3, x4, x5)
pN39_out_gggagg(x1, x2, x3, x4, x5, x6)  =  pN39_out_gggagg(x1, x2, x3, x4, x5, x6)
pN38_out_ggagag(x1, x2, x3, x4, x5, x6)  =  pN38_out_ggagag(x1, x2, x3, x4, x5, x6)
pN8_out_gggaag(x1, x2, x3, x4, x5, x6)  =  pN8_out_gggaag(x1, x2, x3, x4, x5, x6)
pN36_out_gaggg(x1, x2, x3, x4, x5)  =  pN36_out_gaggg(x1, x2, x3, x4, x5)
pN35_out_ggaggg(x1, x2, x3, x4, x5, x6)  =  pN35_out_ggaggg(x1, x2, x3, x4, x5, x6)
pN34_out_gagagg(x1, x2, x3, x4, x5, x6)  =  pN34_out_gagagg(x1, x2, x3, x4, x5, x6)
pN6_out_ggaagg(x1, x2, x3, x4, x5, x6)  =  pN6_out_ggaagg(x1, x2, x3, x4, x5, x6)
pN33_out_gggg(x1, x2, x3, x4)  =  pN33_out_gggg(x1, x2, x3, x4)
pN32_out_gagg(x1, x2, x3, x4)  =  pN32_out_gagg(x1, x2, x3, x4)
pN31_out_ggagg(x1, x2, x3, x4, x5)  =  pN31_out_ggagg(x1, x2, x3, x4, x5)
pN30_out_gagag(x1, x2, x3, x4, x5)  =  pN30_out_gagag(x1, x2, x3, x4, x5)
pN4_out_ggaag(x1, x2, x3, x4, x5)  =  pN4_out_ggaag(x1, x2, x3, x4, x5)
pN29_out_gggg(x1, x2, x3, x4)  =  pN29_out_gggg(x1, x2, x3, x4)
pN28_out_gagg(x1, x2, x3, x4)  =  pN28_out_gagg(x1, x2, x3, x4)
pN27_out_ggagg(x1, x2, x3, x4, x5)  =  pN27_out_ggagg(x1, x2, x3, x4, x5)
pN26_out_gagag(x1, x2, x3, x4, x5)  =  pN26_out_gagag(x1, x2, x3, x4, x5)
pN2_out_ggaag(x1, x2, x3, x4, x5)  =  pN2_out_ggaag(x1, x2, x3, x4, x5)
pN25_out_gggg(x1, x2, x3, x4)  =  pN25_out_gggg(x1, x2, x3, x4)
pN24_out_gagg(x1, x2, x3, x4)  =  pN24_out_gagg(x1, x2, x3, x4)
pN23_out_ggagg(x1, x2, x3, x4, x5)  =  pN23_out_ggagg(x1, x2, x3, x4, x5)
pN22_out_gagag(x1, x2, x3, x4, x5)  =  pN22_out_gagag(x1, x2, x3, x4, x5)
pZ_out_ggaag(x1, x2, x3, x4, x5)  =  pZ_out_ggaag(x1, x2, x3, x4, x5)
pN21_out_gggg(x1, x2, x3, x4)  =  pN21_out_gggg(x1, x2, x3, x4)
pN20_out_gagg(x1, x2, x3, x4)  =  pN20_out_gagg(x1, x2, x3, x4)
pN19_out_ggagg(x1, x2, x3, x4, x5)  =  pN19_out_ggagg(x1, x2, x3, x4, x5)
pN18_out_gagag(x1, x2, x3, x4, x5)  =  pN18_out_gagag(x1, x2, x3, x4, x5)
pX_out_ggaag(x1, x2, x3, x4, x5)  =  pX_out_ggaag(x1, x2, x3, x4, x5)
pN17_out_gggg(x1, x2, x3, x4)  =  pN17_out_gggg(x1, x2, x3, x4)
pN16_out_gagg(x1, x2, x3, x4)  =  pN16_out_gagg(x1, x2, x3, x4)
pN15_out_ggagg(x1, x2, x3, x4, x5)  =  pN15_out_ggagg(x1, x2, x3, x4, x5)
pN14_out_gagag(x1, x2, x3, x4, x5)  =  pN14_out_gagag(x1, x2, x3, x4, x5)
pV_out_ggaag(x1, x2, x3, x4, x5)  =  pV_out_ggaag(x1, x2, x3, x4, x5)
pN13_out_gggg(x1, x2, x3, x4)  =  pN13_out_gggg(x1, x2, x3, x4)
pN12_out_gagg(x1, x2, x3, x4)  =  pN12_out_gagg(x1, x2, x3, x4)
pN11_out_ggagg(x1, x2, x3, x4, x5)  =  pN11_out_ggagg(x1, x2, x3, x4, x5)
pN10_out_gagag(x1, x2, x3, x4, x5)  =  pN10_out_gagag(x1, x2, x3, x4, x5)
pS_out_ggaag(x1, x2, x3, x4, x5)  =  pS_out_ggaag(x1, x2, x3, x4, x5)
U31_gg(x1, x2, x3)  =  U31_gg(x1, x2, x3)
safeT_in_g(x1)  =  safeT_in_g(x1)
safeT_out_g(x1)  =  safeT_out_g(x1)
U16_g(x1, x2, x3)  =  U16_g(x1, x2, x3)
pQ_out_gg(x1, x2)  =  pQ_out_gg(x1, x2)
safeP_out_gg(x1, x2)  =  safeP_out_gg(x1, x2)
pN9_out_gag(x1, x2, x3)  =  pN9_out_gag(x1, x2, x3)
pB_out_agaa(x1, x2, x3, x4)  =  pB_out_agaa(x1, x2, x3, x4)
queensA_out_a(x1)  =  queensA_out_a(x1)
ADDM_IN_GA(x1, x2)  =  ADDM_IN_GA(x1)

We have to consider all (P,R,Pi)-chains

(15) UsableRulesProof (EQUIVALENT transformation)

For (infinitary) constructor rewriting [LOPSTR] we can delete all non-usable rules from R.

(16) Obligation:

Pi DP problem:
The TRS P consists of the following rules:

ADDM_IN_GA(s(T354), s(X615)) → ADDM_IN_GA(T354, X615)

R is empty.
The argument filtering Pi contains the following mapping:
s(x1)  =  s(x1)
ADDM_IN_GA(x1, x2)  =  ADDM_IN_GA(x1)

We have to consider all (P,R,Pi)-chains

(17) PiDPToQDPProof (SOUND transformation)

Transforming (infinitary) constructor rewriting Pi-DP problem [LOPSTR] into ordinary QDP problem [LPAR04] by application of Pi.

(18) Obligation:

Q DP problem:
The TRS P consists of the following rules:

ADDM_IN_GA(s(T354)) → ADDM_IN_GA(T354)

R is empty.
Q is empty.
We have to consider all (P,Q,R)-chains.

(19) QDPSizeChangeProof (EQUIVALENT transformation)

By using the subterm criterion [SUBTERM_CRITERION] together with the size-change analysis [AAECC05] we have proven that there are no infinite chains for this DP problem.

From the DPs we obtained the following set of size-change graphs:

  • ADDM_IN_GA(s(T354)) → ADDM_IN_GA(T354)
    The graph contains the following edges 1 > 1

(20) YES

(21) Obligation:

Pi DP problem:
The TRS P consists of the following rules:

ADDL_IN_GA(s(T318), s(X544)) → ADDL_IN_GA(T318, X544)

The TRS R consists of the following rules:

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))

The argument filtering Pi contains the following mapping:
queensA_in_a(x1)  =  queensA_in_a
U1_a(x1, x2, x3)  =  U1_a(x3)
pB_in_agaa(x1, x2, x3, x4)  =  pB_in_agaa(x2)
U24_agaa(x1, x2, x3, x4, x5)  =  U24_agaa(x2, x5)
deleteO_in_aga(x1, x2, x3)  =  deleteO_in_aga(x2)
deleteO_out_aga(x1, x2, x3)  =  deleteO_out_aga(x1, x2, x3)
U13_aga(x1, x2, x3, x4)  =  U13_aga(x2, x4)
deleteC_in_aga(x1, x2, x3)  =  deleteC_in_aga(x2)
.(x1, x2)  =  .(x1, x2)
deleteC_out_aga(x1, x2, x3)  =  deleteC_out_aga(x1, x2, x3)
U2_aga(x1, x2, x3, x4, x5)  =  U2_aga(x2, x3, x5)
U25_agaa(x1, x2, x3, x4, x5)  =  U25_agaa(x1, x2, x3, x5)
pN9_in_gag(x1, x2, x3)  =  pN9_in_gag(x1, x3)
U26_gag(x1, x2, x3, x4)  =  U26_gag(x1, x3, x4)
permD_in_ga(x1, x2)  =  permD_in_ga(x1)
[]  =  []
permD_out_ga(x1, x2)  =  permD_out_ga(x1, x2)
U3_ga(x1, x2, x3, x4, x5)  =  U3_ga(x1, x2, x5)
pE_in_aggaa(x1, x2, x3, x4, x5)  =  pE_in_aggaa(x2, x3)
U28_aggaa(x1, x2, x3, x4, x5, x6)  =  U28_aggaa(x2, x3, x6)
U29_aggaa(x1, x2, x3, x4, x5, x6)  =  U29_aggaa(x1, x2, x3, x4, x6)
pE_out_aggaa(x1, x2, x3, x4, x5)  =  pE_out_aggaa(x1, x2, x3, x4, x5)
U27_gag(x1, x2, x3, x4)  =  U27_gag(x1, x2, x3, x4)
safeP_in_gg(x1, x2)  =  safeP_in_gg(x1, x2)
U14_gg(x1, x2, x3)  =  U14_gg(x1, x2, x3)
pQ_in_gg(x1, x2)  =  pQ_in_gg(x1, x2)
U30_gg(x1, x2, x3)  =  U30_gg(x1, x2, x3)
noattackR_in_gg(x1, x2)  =  noattackR_in_gg(x1, x2)
noattackR_out_gg(x1, x2)  =  noattackR_out_gg(x1, x2)
U15_gg(x1, x2, x3, x4)  =  U15_gg(x1, x2, x3, x4)
pS_in_ggaag(x1, x2, x3, x4, x5)  =  pS_in_ggaag(x1, x2, x5)
U32_ggaag(x1, x2, x3, x4, x5, x6)  =  U32_ggaag(x1, x2, x5, x6)
notEqF_in_gg(x1, x2)  =  notEqF_in_gg(x1, x2)
0  =  0
s(x1)  =  s(x1)
notEqF_out_gg(x1, x2)  =  notEqF_out_gg(x1, x2)
U4_gg(x1, x2, x3)  =  U4_gg(x1, x2, x3)
U33_ggaag(x1, x2, x3, x4, x5, x6)  =  U33_ggaag(x1, x2, x5, x6)
pN10_in_gagag(x1, x2, x3, x4, x5)  =  pN10_in_gagag(x1, x3, x5)
U34_gagag(x1, x2, x3, x4, x5, x6)  =  U34_gagag(x1, x3, x5, x6)
addG_in_ga(x1, x2)  =  addG_in_ga(x1)
addG_out_ga(x1, x2)  =  addG_out_ga(x1, x2)
U5_ga(x1, x2, x3)  =  U5_ga(x1, x3)
U35_gagag(x1, x2, x3, x4, x5, x6)  =  U35_gagag(x1, x2, x3, x5, x6)
pN11_in_ggagg(x1, x2, x3, x4, x5)  =  pN11_in_ggagg(x1, x2, x4, x5)
U36_ggagg(x1, x2, x3, x4, x5, x6)  =  U36_ggagg(x1, x2, x4, x5, x6)
U37_ggagg(x1, x2, x3, x4, x5, x6)  =  U37_ggagg(x1, x2, x4, x5, x6)
pN12_in_gagg(x1, x2, x3, x4)  =  pN12_in_gagg(x1, x3, x4)
U38_gagg(x1, x2, x3, x4, x5)  =  U38_gagg(x1, x3, x4, x5)
U39_gagg(x1, x2, x3, x4, x5)  =  U39_gagg(x1, x2, x3, x4, x5)
pN13_in_gggg(x1, x2, x3, x4)  =  pN13_in_gggg(x1, x2, x3, x4)
U40_gggg(x1, x2, x3, x4, x5)  =  U40_gggg(x1, x2, x3, x4, x5)
U41_gggg(x1, x2, x3, x4, x5)  =  U41_gggg(x1, x2, x3, x4, x5)
noattackU_in_gg(x1, x2)  =  noattackU_in_gg(x1, x2)
noattackU_out_gg(x1, x2)  =  noattackU_out_gg(x1, x2)
U17_gg(x1, x2, x3, x4)  =  U17_gg(x1, x2, x3, x4)
pV_in_ggaag(x1, x2, x3, x4, x5)  =  pV_in_ggaag(x1, x2, x5)
U42_ggaag(x1, x2, x3, x4, x5, x6)  =  U42_ggaag(x1, x2, x5, x6)
U43_ggaag(x1, x2, x3, x4, x5, x6)  =  U43_ggaag(x1, x2, x5, x6)
pN14_in_gagag(x1, x2, x3, x4, x5)  =  pN14_in_gagag(x1, x3, x5)
U44_gagag(x1, x2, x3, x4, x5, x6)  =  U44_gagag(x1, x3, x5, x6)
addH_in_ga(x1, x2)  =  addH_in_ga(x1)
addH_out_ga(x1, x2)  =  addH_out_ga(x1, x2)
U6_ga(x1, x2, x3)  =  U6_ga(x1, x3)
U45_gagag(x1, x2, x3, x4, x5, x6)  =  U45_gagag(x1, x2, x3, x5, x6)
pN15_in_ggagg(x1, x2, x3, x4, x5)  =  pN15_in_ggagg(x1, x2, x4, x5)
U46_ggagg(x1, x2, x3, x4, x5, x6)  =  U46_ggagg(x1, x2, x4, x5, x6)
U47_ggagg(x1, x2, x3, x4, x5, x6)  =  U47_ggagg(x1, x2, x4, x5, x6)
pN16_in_gagg(x1, x2, x3, x4)  =  pN16_in_gagg(x1, x3, x4)
U48_gagg(x1, x2, x3, x4, x5)  =  U48_gagg(x1, x3, x4, x5)
U49_gagg(x1, x2, x3, x4, x5)  =  U49_gagg(x1, x2, x3, x4, x5)
pN17_in_gggg(x1, x2, x3, x4)  =  pN17_in_gggg(x1, x2, x3, x4)
U50_gggg(x1, x2, x3, x4, x5)  =  U50_gggg(x1, x2, x3, x4, x5)
U51_gggg(x1, x2, x3, x4, x5)  =  U51_gggg(x1, x2, x3, x4, x5)
noattackW_in_gg(x1, x2)  =  noattackW_in_gg(x1, x2)
noattackW_out_gg(x1, x2)  =  noattackW_out_gg(x1, x2)
U18_gg(x1, x2, x3, x4)  =  U18_gg(x1, x2, x3, x4)
pX_in_ggaag(x1, x2, x3, x4, x5)  =  pX_in_ggaag(x1, x2, x5)
U52_ggaag(x1, x2, x3, x4, x5, x6)  =  U52_ggaag(x1, x2, x5, x6)
U53_ggaag(x1, x2, x3, x4, x5, x6)  =  U53_ggaag(x1, x2, x5, x6)
pN18_in_gagag(x1, x2, x3, x4, x5)  =  pN18_in_gagag(x1, x3, x5)
U54_gagag(x1, x2, x3, x4, x5, x6)  =  U54_gagag(x1, x3, x5, x6)
addI_in_ga(x1, x2)  =  addI_in_ga(x1)
addI_out_ga(x1, x2)  =  addI_out_ga(x1, x2)
U7_ga(x1, x2, x3)  =  U7_ga(x1, x3)
U55_gagag(x1, x2, x3, x4, x5, x6)  =  U55_gagag(x1, x2, x3, x5, x6)
pN19_in_ggagg(x1, x2, x3, x4, x5)  =  pN19_in_ggagg(x1, x2, x4, x5)
U56_ggagg(x1, x2, x3, x4, x5, x6)  =  U56_ggagg(x1, x2, x4, x5, x6)
U57_ggagg(x1, x2, x3, x4, x5, x6)  =  U57_ggagg(x1, x2, x4, x5, x6)
pN20_in_gagg(x1, x2, x3, x4)  =  pN20_in_gagg(x1, x3, x4)
U58_gagg(x1, x2, x3, x4, x5)  =  U58_gagg(x1, x3, x4, x5)
U59_gagg(x1, x2, x3, x4, x5)  =  U59_gagg(x1, x2, x3, x4, x5)
pN21_in_gggg(x1, x2, x3, x4)  =  pN21_in_gggg(x1, x2, x3, x4)
U60_gggg(x1, x2, x3, x4, x5)  =  U60_gggg(x1, x2, x3, x4, x5)
U61_gggg(x1, x2, x3, x4, x5)  =  U61_gggg(x1, x2, x3, x4, x5)
noattackY_in_gg(x1, x2)  =  noattackY_in_gg(x1, x2)
noattackY_out_gg(x1, x2)  =  noattackY_out_gg(x1, x2)
U19_gg(x1, x2, x3, x4)  =  U19_gg(x1, x2, x3, x4)
pZ_in_ggaag(x1, x2, x3, x4, x5)  =  pZ_in_ggaag(x1, x2, x5)
U62_ggaag(x1, x2, x3, x4, x5, x6)  =  U62_ggaag(x1, x2, x5, x6)
U63_ggaag(x1, x2, x3, x4, x5, x6)  =  U63_ggaag(x1, x2, x5, x6)
pN22_in_gagag(x1, x2, x3, x4, x5)  =  pN22_in_gagag(x1, x3, x5)
U64_gagag(x1, x2, x3, x4, x5, x6)  =  U64_gagag(x1, x3, x5, x6)
addJ_in_ga(x1, x2)  =  addJ_in_ga(x1)
addJ_out_ga(x1, x2)  =  addJ_out_ga(x1, x2)
U8_ga(x1, x2, x3)  =  U8_ga(x1, x3)
U65_gagag(x1, x2, x3, x4, x5, x6)  =  U65_gagag(x1, x2, x3, x5, x6)
pN23_in_ggagg(x1, x2, x3, x4, x5)  =  pN23_in_ggagg(x1, x2, x4, x5)
U66_ggagg(x1, x2, x3, x4, x5, x6)  =  U66_ggagg(x1, x2, x4, x5, x6)
U67_ggagg(x1, x2, x3, x4, x5, x6)  =  U67_ggagg(x1, x2, x4, x5, x6)
pN24_in_gagg(x1, x2, x3, x4)  =  pN24_in_gagg(x1, x3, x4)
U68_gagg(x1, x2, x3, x4, x5)  =  U68_gagg(x1, x3, x4, x5)
U69_gagg(x1, x2, x3, x4, x5)  =  U69_gagg(x1, x2, x3, x4, x5)
pN25_in_gggg(x1, x2, x3, x4)  =  pN25_in_gggg(x1, x2, x3, x4)
U70_gggg(x1, x2, x3, x4, x5)  =  U70_gggg(x1, x2, x3, x4, x5)
U71_gggg(x1, x2, x3, x4, x5)  =  U71_gggg(x1, x2, x3, x4, x5)
noattackN1_in_gg(x1, x2)  =  noattackN1_in_gg(x1, x2)
noattackN1_out_gg(x1, x2)  =  noattackN1_out_gg(x1, x2)
U20_gg(x1, x2, x3, x4)  =  U20_gg(x1, x2, x3, x4)
pN2_in_ggaag(x1, x2, x3, x4, x5)  =  pN2_in_ggaag(x1, x2, x5)
U72_ggaag(x1, x2, x3, x4, x5, x6)  =  U72_ggaag(x1, x2, x5, x6)
U73_ggaag(x1, x2, x3, x4, x5, x6)  =  U73_ggaag(x1, x2, x5, x6)
pN26_in_gagag(x1, x2, x3, x4, x5)  =  pN26_in_gagag(x1, x3, x5)
U74_gagag(x1, x2, x3, x4, x5, x6)  =  U74_gagag(x1, x3, x5, x6)
addK_in_ga(x1, x2)  =  addK_in_ga(x1)
addK_out_ga(x1, x2)  =  addK_out_ga(x1, x2)
U9_ga(x1, x2, x3)  =  U9_ga(x1, x3)
U75_gagag(x1, x2, x3, x4, x5, x6)  =  U75_gagag(x1, x2, x3, x5, x6)
pN27_in_ggagg(x1, x2, x3, x4, x5)  =  pN27_in_ggagg(x1, x2, x4, x5)
U76_ggagg(x1, x2, x3, x4, x5, x6)  =  U76_ggagg(x1, x2, x4, x5, x6)
U77_ggagg(x1, x2, x3, x4, x5, x6)  =  U77_ggagg(x1, x2, x4, x5, x6)
pN28_in_gagg(x1, x2, x3, x4)  =  pN28_in_gagg(x1, x3, x4)
U78_gagg(x1, x2, x3, x4, x5)  =  U78_gagg(x1, x3, x4, x5)
U79_gagg(x1, x2, x3, x4, x5)  =  U79_gagg(x1, x2, x3, x4, x5)
pN29_in_gggg(x1, x2, x3, x4)  =  pN29_in_gggg(x1, x2, x3, x4)
U80_gggg(x1, x2, x3, x4, x5)  =  U80_gggg(x1, x2, x3, x4, x5)
U81_gggg(x1, x2, x3, x4, x5)  =  U81_gggg(x1, x2, x3, x4, x5)
noattackN3_in_gg(x1, x2)  =  noattackN3_in_gg(x1, x2)
noattackN3_out_gg(x1, x2)  =  noattackN3_out_gg(x1, x2)
U21_gg(x1, x2, x3, x4)  =  U21_gg(x1, x2, x3, x4)
pN4_in_ggaag(x1, x2, x3, x4, x5)  =  pN4_in_ggaag(x1, x2, x5)
U82_ggaag(x1, x2, x3, x4, x5, x6)  =  U82_ggaag(x1, x2, x5, x6)
U83_ggaag(x1, x2, x3, x4, x5, x6)  =  U83_ggaag(x1, x2, x5, x6)
pN30_in_gagag(x1, x2, x3, x4, x5)  =  pN30_in_gagag(x1, x3, x5)
U84_gagag(x1, x2, x3, x4, x5, x6)  =  U84_gagag(x1, x3, x5, x6)
addL_in_ga(x1, x2)  =  addL_in_ga(x1)
addL_out_ga(x1, x2)  =  addL_out_ga(x1, x2)
U10_ga(x1, x2, x3)  =  U10_ga(x1, x3)
U85_gagag(x1, x2, x3, x4, x5, x6)  =  U85_gagag(x1, x2, x3, x5, x6)
pN31_in_ggagg(x1, x2, x3, x4, x5)  =  pN31_in_ggagg(x1, x2, x4, x5)
U86_ggagg(x1, x2, x3, x4, x5, x6)  =  U86_ggagg(x1, x2, x4, x5, x6)
U87_ggagg(x1, x2, x3, x4, x5, x6)  =  U87_ggagg(x1, x2, x4, x5, x6)
pN32_in_gagg(x1, x2, x3, x4)  =  pN32_in_gagg(x1, x3, x4)
U88_gagg(x1, x2, x3, x4, x5)  =  U88_gagg(x1, x3, x4, x5)
U89_gagg(x1, x2, x3, x4, x5)  =  U89_gagg(x1, x2, x3, x4, x5)
pN33_in_gggg(x1, x2, x3, x4)  =  pN33_in_gggg(x1, x2, x3, x4)
U90_gggg(x1, x2, x3, x4, x5)  =  U90_gggg(x1, x2, x3, x4, x5)
U91_gggg(x1, x2, x3, x4, x5)  =  U91_gggg(x1, x2, x3, x4, x5)
noattackN5_in_gg(x1, x2)  =  noattackN5_in_gg(x1, x2)
noattackN5_out_gg(x1, x2)  =  noattackN5_out_gg(x1, x2)
U22_gg(x1, x2, x3, x4)  =  U22_gg(x1, x2, x3, x4)
pN6_in_ggaagg(x1, x2, x3, x4, x5, x6)  =  pN6_in_ggaagg(x1, x2, x5, x6)
U92_ggaagg(x1, x2, x3, x4, x5, x6, x7)  =  U92_ggaagg(x1, x2, x5, x6, x7)
U93_ggaagg(x1, x2, x3, x4, x5, x6, x7)  =  U93_ggaagg(x1, x2, x5, x6, x7)
pN34_in_gagagg(x1, x2, x3, x4, x5, x6)  =  pN34_in_gagagg(x1, x3, x5, x6)
U94_gagagg(x1, x2, x3, x4, x5, x6, x7)  =  U94_gagagg(x1, x3, x5, x6, x7)
addM_in_ga(x1, x2)  =  addM_in_ga(x1)
addM_out_ga(x1, x2)  =  addM_out_ga(x1, x2)
U11_ga(x1, x2, x3)  =  U11_ga(x1, x3)
U95_gagagg(x1, x2, x3, x4, x5, x6, x7)  =  U95_gagagg(x1, x2, x3, x5, x6, x7)
pN35_in_ggaggg(x1, x2, x3, x4, x5, x6)  =  pN35_in_ggaggg(x1, x2, x4, x5, x6)
U96_ggaggg(x1, x2, x3, x4, x5, x6, x7)  =  U96_ggaggg(x1, x2, x4, x5, x6, x7)
U97_ggaggg(x1, x2, x3, x4, x5, x6, x7)  =  U97_ggaggg(x1, x2, x4, x5, x6, x7)
pN36_in_gaggg(x1, x2, x3, x4, x5)  =  pN36_in_gaggg(x1, x3, x4, x5)
U98_gaggg(x1, x2, x3, x4, x5, x6)  =  U98_gaggg(x1, x3, x4, x5, x6)
U99_gaggg(x1, x2, x3, x4, x5, x6)  =  U99_gaggg(x1, x2, x3, x4, x5, x6)
pN37_in_ggggg(x1, x2, x3, x4, x5)  =  pN37_in_ggggg(x1, x2, x3, x4, x5)
U100_ggggg(x1, x2, x3, x4, x5, x6)  =  U100_ggggg(x1, x2, x3, x4, x5, x6)
U101_ggggg(x1, x2, x3, x4, x5, x6)  =  U101_ggggg(x1, x2, x3, x4, x5, x6)
noattackN7_in_ggg(x1, x2, x3)  =  noattackN7_in_ggg(x1, x2, x3)
noattackN7_out_ggg(x1, x2, x3)  =  noattackN7_out_ggg(x1, x2, x3)
U23_ggg(x1, x2, x3, x4, x5)  =  U23_ggg(x1, x2, x3, x4, x5)
pN8_in_gggaag(x1, x2, x3, x4, x5, x6)  =  pN8_in_gggaag(x1, x2, x3, x6)
U102_gggaag(x1, x2, x3, x4, x5, x6, x7)  =  U102_gggaag(x1, x2, x3, x6, x7)
U103_gggaag(x1, x2, x3, x4, x5, x6, x7)  =  U103_gggaag(x1, x2, x3, x6, x7)
pN38_in_ggagag(x1, x2, x3, x4, x5, x6)  =  pN38_in_ggagag(x1, x2, x4, x6)
U104_ggagag(x1, x2, x3, x4, x5, x6, x7)  =  U104_ggagag(x1, x2, x4, x6, x7)
addN_in_gga(x1, x2, x3)  =  addN_in_gga(x1, x2)
addN_out_gga(x1, x2, x3)  =  addN_out_gga(x1, x2, x3)
U12_gga(x1, x2, x3, x4)  =  U12_gga(x1, x2, x4)
U105_ggagag(x1, x2, x3, x4, x5, x6, x7)  =  U105_ggagag(x1, x2, x3, x4, x6, x7)
pN39_in_gggagg(x1, x2, x3, x4, x5, x6)  =  pN39_in_gggagg(x1, x2, x3, x5, x6)
U106_gggagg(x1, x2, x3, x4, x5, x6, x7)  =  U106_gggagg(x1, x2, x3, x5, x6, x7)
U107_gggagg(x1, x2, x3, x4, x5, x6, x7)  =  U107_gggagg(x1, x2, x3, x5, x6, x7)
pN40_in_ggagg(x1, x2, x3, x4, x5)  =  pN40_in_ggagg(x1, x2, x4, x5)
U108_ggagg(x1, x2, x3, x4, x5, x6)  =  U108_ggagg(x1, x2, x4, x5, x6)
U109_ggagg(x1, x2, x3, x4, x5, x6)  =  U109_ggagg(x1, x2, x3, x4, x5, x6)
pN37_out_ggggg(x1, x2, x3, x4, x5)  =  pN37_out_ggggg(x1, x2, x3, x4, x5)
pN40_out_ggagg(x1, x2, x3, x4, x5)  =  pN40_out_ggagg(x1, x2, x3, x4, x5)
pN39_out_gggagg(x1, x2, x3, x4, x5, x6)  =  pN39_out_gggagg(x1, x2, x3, x4, x5, x6)
pN38_out_ggagag(x1, x2, x3, x4, x5, x6)  =  pN38_out_ggagag(x1, x2, x3, x4, x5, x6)
pN8_out_gggaag(x1, x2, x3, x4, x5, x6)  =  pN8_out_gggaag(x1, x2, x3, x4, x5, x6)
pN36_out_gaggg(x1, x2, x3, x4, x5)  =  pN36_out_gaggg(x1, x2, x3, x4, x5)
pN35_out_ggaggg(x1, x2, x3, x4, x5, x6)  =  pN35_out_ggaggg(x1, x2, x3, x4, x5, x6)
pN34_out_gagagg(x1, x2, x3, x4, x5, x6)  =  pN34_out_gagagg(x1, x2, x3, x4, x5, x6)
pN6_out_ggaagg(x1, x2, x3, x4, x5, x6)  =  pN6_out_ggaagg(x1, x2, x3, x4, x5, x6)
pN33_out_gggg(x1, x2, x3, x4)  =  pN33_out_gggg(x1, x2, x3, x4)
pN32_out_gagg(x1, x2, x3, x4)  =  pN32_out_gagg(x1, x2, x3, x4)
pN31_out_ggagg(x1, x2, x3, x4, x5)  =  pN31_out_ggagg(x1, x2, x3, x4, x5)
pN30_out_gagag(x1, x2, x3, x4, x5)  =  pN30_out_gagag(x1, x2, x3, x4, x5)
pN4_out_ggaag(x1, x2, x3, x4, x5)  =  pN4_out_ggaag(x1, x2, x3, x4, x5)
pN29_out_gggg(x1, x2, x3, x4)  =  pN29_out_gggg(x1, x2, x3, x4)
pN28_out_gagg(x1, x2, x3, x4)  =  pN28_out_gagg(x1, x2, x3, x4)
pN27_out_ggagg(x1, x2, x3, x4, x5)  =  pN27_out_ggagg(x1, x2, x3, x4, x5)
pN26_out_gagag(x1, x2, x3, x4, x5)  =  pN26_out_gagag(x1, x2, x3, x4, x5)
pN2_out_ggaag(x1, x2, x3, x4, x5)  =  pN2_out_ggaag(x1, x2, x3, x4, x5)
pN25_out_gggg(x1, x2, x3, x4)  =  pN25_out_gggg(x1, x2, x3, x4)
pN24_out_gagg(x1, x2, x3, x4)  =  pN24_out_gagg(x1, x2, x3, x4)
pN23_out_ggagg(x1, x2, x3, x4, x5)  =  pN23_out_ggagg(x1, x2, x3, x4, x5)
pN22_out_gagag(x1, x2, x3, x4, x5)  =  pN22_out_gagag(x1, x2, x3, x4, x5)
pZ_out_ggaag(x1, x2, x3, x4, x5)  =  pZ_out_ggaag(x1, x2, x3, x4, x5)
pN21_out_gggg(x1, x2, x3, x4)  =  pN21_out_gggg(x1, x2, x3, x4)
pN20_out_gagg(x1, x2, x3, x4)  =  pN20_out_gagg(x1, x2, x3, x4)
pN19_out_ggagg(x1, x2, x3, x4, x5)  =  pN19_out_ggagg(x1, x2, x3, x4, x5)
pN18_out_gagag(x1, x2, x3, x4, x5)  =  pN18_out_gagag(x1, x2, x3, x4, x5)
pX_out_ggaag(x1, x2, x3, x4, x5)  =  pX_out_ggaag(x1, x2, x3, x4, x5)
pN17_out_gggg(x1, x2, x3, x4)  =  pN17_out_gggg(x1, x2, x3, x4)
pN16_out_gagg(x1, x2, x3, x4)  =  pN16_out_gagg(x1, x2, x3, x4)
pN15_out_ggagg(x1, x2, x3, x4, x5)  =  pN15_out_ggagg(x1, x2, x3, x4, x5)
pN14_out_gagag(x1, x2, x3, x4, x5)  =  pN14_out_gagag(x1, x2, x3, x4, x5)
pV_out_ggaag(x1, x2, x3, x4, x5)  =  pV_out_ggaag(x1, x2, x3, x4, x5)
pN13_out_gggg(x1, x2, x3, x4)  =  pN13_out_gggg(x1, x2, x3, x4)
pN12_out_gagg(x1, x2, x3, x4)  =  pN12_out_gagg(x1, x2, x3, x4)
pN11_out_ggagg(x1, x2, x3, x4, x5)  =  pN11_out_ggagg(x1, x2, x3, x4, x5)
pN10_out_gagag(x1, x2, x3, x4, x5)  =  pN10_out_gagag(x1, x2, x3, x4, x5)
pS_out_ggaag(x1, x2, x3, x4, x5)  =  pS_out_ggaag(x1, x2, x3, x4, x5)
U31_gg(x1, x2, x3)  =  U31_gg(x1, x2, x3)
safeT_in_g(x1)  =  safeT_in_g(x1)
safeT_out_g(x1)  =  safeT_out_g(x1)
U16_g(x1, x2, x3)  =  U16_g(x1, x2, x3)
pQ_out_gg(x1, x2)  =  pQ_out_gg(x1, x2)
safeP_out_gg(x1, x2)  =  safeP_out_gg(x1, x2)
pN9_out_gag(x1, x2, x3)  =  pN9_out_gag(x1, x2, x3)
pB_out_agaa(x1, x2, x3, x4)  =  pB_out_agaa(x1, x2, x3, x4)
queensA_out_a(x1)  =  queensA_out_a(x1)
ADDL_IN_GA(x1, x2)  =  ADDL_IN_GA(x1)

We have to consider all (P,R,Pi)-chains

(22) UsableRulesProof (EQUIVALENT transformation)

For (infinitary) constructor rewriting [LOPSTR] we can delete all non-usable rules from R.

(23) Obligation:

Pi DP problem:
The TRS P consists of the following rules:

ADDL_IN_GA(s(T318), s(X544)) → ADDL_IN_GA(T318, X544)

R is empty.
The argument filtering Pi contains the following mapping:
s(x1)  =  s(x1)
ADDL_IN_GA(x1, x2)  =  ADDL_IN_GA(x1)

We have to consider all (P,R,Pi)-chains

(24) PiDPToQDPProof (SOUND transformation)

Transforming (infinitary) constructor rewriting Pi-DP problem [LOPSTR] into ordinary QDP problem [LPAR04] by application of Pi.

(25) Obligation:

Q DP problem:
The TRS P consists of the following rules:

ADDL_IN_GA(s(T318)) → ADDL_IN_GA(T318)

R is empty.
Q is empty.
We have to consider all (P,Q,R)-chains.

(26) QDPSizeChangeProof (EQUIVALENT transformation)

By using the subterm criterion [SUBTERM_CRITERION] together with the size-change analysis [AAECC05] we have proven that there are no infinite chains for this DP problem.

From the DPs we obtained the following set of size-change graphs:

  • ADDL_IN_GA(s(T318)) → ADDL_IN_GA(T318)
    The graph contains the following edges 1 > 1

(27) YES

(28) Obligation:

Pi DP problem:
The TRS P consists of the following rules:

ADDK_IN_GA(s(T285), s(X475)) → ADDK_IN_GA(T285, X475)

The TRS R consists of the following rules:

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))

The argument filtering Pi contains the following mapping:
queensA_in_a(x1)  =  queensA_in_a
U1_a(x1, x2, x3)  =  U1_a(x3)
pB_in_agaa(x1, x2, x3, x4)  =  pB_in_agaa(x2)
U24_agaa(x1, x2, x3, x4, x5)  =  U24_agaa(x2, x5)
deleteO_in_aga(x1, x2, x3)  =  deleteO_in_aga(x2)
deleteO_out_aga(x1, x2, x3)  =  deleteO_out_aga(x1, x2, x3)
U13_aga(x1, x2, x3, x4)  =  U13_aga(x2, x4)
deleteC_in_aga(x1, x2, x3)  =  deleteC_in_aga(x2)
.(x1, x2)  =  .(x1, x2)
deleteC_out_aga(x1, x2, x3)  =  deleteC_out_aga(x1, x2, x3)
U2_aga(x1, x2, x3, x4, x5)  =  U2_aga(x2, x3, x5)
U25_agaa(x1, x2, x3, x4, x5)  =  U25_agaa(x1, x2, x3, x5)
pN9_in_gag(x1, x2, x3)  =  pN9_in_gag(x1, x3)
U26_gag(x1, x2, x3, x4)  =  U26_gag(x1, x3, x4)
permD_in_ga(x1, x2)  =  permD_in_ga(x1)
[]  =  []
permD_out_ga(x1, x2)  =  permD_out_ga(x1, x2)
U3_ga(x1, x2, x3, x4, x5)  =  U3_ga(x1, x2, x5)
pE_in_aggaa(x1, x2, x3, x4, x5)  =  pE_in_aggaa(x2, x3)
U28_aggaa(x1, x2, x3, x4, x5, x6)  =  U28_aggaa(x2, x3, x6)
U29_aggaa(x1, x2, x3, x4, x5, x6)  =  U29_aggaa(x1, x2, x3, x4, x6)
pE_out_aggaa(x1, x2, x3, x4, x5)  =  pE_out_aggaa(x1, x2, x3, x4, x5)
U27_gag(x1, x2, x3, x4)  =  U27_gag(x1, x2, x3, x4)
safeP_in_gg(x1, x2)  =  safeP_in_gg(x1, x2)
U14_gg(x1, x2, x3)  =  U14_gg(x1, x2, x3)
pQ_in_gg(x1, x2)  =  pQ_in_gg(x1, x2)
U30_gg(x1, x2, x3)  =  U30_gg(x1, x2, x3)
noattackR_in_gg(x1, x2)  =  noattackR_in_gg(x1, x2)
noattackR_out_gg(x1, x2)  =  noattackR_out_gg(x1, x2)
U15_gg(x1, x2, x3, x4)  =  U15_gg(x1, x2, x3, x4)
pS_in_ggaag(x1, x2, x3, x4, x5)  =  pS_in_ggaag(x1, x2, x5)
U32_ggaag(x1, x2, x3, x4, x5, x6)  =  U32_ggaag(x1, x2, x5, x6)
notEqF_in_gg(x1, x2)  =  notEqF_in_gg(x1, x2)
0  =  0
s(x1)  =  s(x1)
notEqF_out_gg(x1, x2)  =  notEqF_out_gg(x1, x2)
U4_gg(x1, x2, x3)  =  U4_gg(x1, x2, x3)
U33_ggaag(x1, x2, x3, x4, x5, x6)  =  U33_ggaag(x1, x2, x5, x6)
pN10_in_gagag(x1, x2, x3, x4, x5)  =  pN10_in_gagag(x1, x3, x5)
U34_gagag(x1, x2, x3, x4, x5, x6)  =  U34_gagag(x1, x3, x5, x6)
addG_in_ga(x1, x2)  =  addG_in_ga(x1)
addG_out_ga(x1, x2)  =  addG_out_ga(x1, x2)
U5_ga(x1, x2, x3)  =  U5_ga(x1, x3)
U35_gagag(x1, x2, x3, x4, x5, x6)  =  U35_gagag(x1, x2, x3, x5, x6)
pN11_in_ggagg(x1, x2, x3, x4, x5)  =  pN11_in_ggagg(x1, x2, x4, x5)
U36_ggagg(x1, x2, x3, x4, x5, x6)  =  U36_ggagg(x1, x2, x4, x5, x6)
U37_ggagg(x1, x2, x3, x4, x5, x6)  =  U37_ggagg(x1, x2, x4, x5, x6)
pN12_in_gagg(x1, x2, x3, x4)  =  pN12_in_gagg(x1, x3, x4)
U38_gagg(x1, x2, x3, x4, x5)  =  U38_gagg(x1, x3, x4, x5)
U39_gagg(x1, x2, x3, x4, x5)  =  U39_gagg(x1, x2, x3, x4, x5)
pN13_in_gggg(x1, x2, x3, x4)  =  pN13_in_gggg(x1, x2, x3, x4)
U40_gggg(x1, x2, x3, x4, x5)  =  U40_gggg(x1, x2, x3, x4, x5)
U41_gggg(x1, x2, x3, x4, x5)  =  U41_gggg(x1, x2, x3, x4, x5)
noattackU_in_gg(x1, x2)  =  noattackU_in_gg(x1, x2)
noattackU_out_gg(x1, x2)  =  noattackU_out_gg(x1, x2)
U17_gg(x1, x2, x3, x4)  =  U17_gg(x1, x2, x3, x4)
pV_in_ggaag(x1, x2, x3, x4, x5)  =  pV_in_ggaag(x1, x2, x5)
U42_ggaag(x1, x2, x3, x4, x5, x6)  =  U42_ggaag(x1, x2, x5, x6)
U43_ggaag(x1, x2, x3, x4, x5, x6)  =  U43_ggaag(x1, x2, x5, x6)
pN14_in_gagag(x1, x2, x3, x4, x5)  =  pN14_in_gagag(x1, x3, x5)
U44_gagag(x1, x2, x3, x4, x5, x6)  =  U44_gagag(x1, x3, x5, x6)
addH_in_ga(x1, x2)  =  addH_in_ga(x1)
addH_out_ga(x1, x2)  =  addH_out_ga(x1, x2)
U6_ga(x1, x2, x3)  =  U6_ga(x1, x3)
U45_gagag(x1, x2, x3, x4, x5, x6)  =  U45_gagag(x1, x2, x3, x5, x6)
pN15_in_ggagg(x1, x2, x3, x4, x5)  =  pN15_in_ggagg(x1, x2, x4, x5)
U46_ggagg(x1, x2, x3, x4, x5, x6)  =  U46_ggagg(x1, x2, x4, x5, x6)
U47_ggagg(x1, x2, x3, x4, x5, x6)  =  U47_ggagg(x1, x2, x4, x5, x6)
pN16_in_gagg(x1, x2, x3, x4)  =  pN16_in_gagg(x1, x3, x4)
U48_gagg(x1, x2, x3, x4, x5)  =  U48_gagg(x1, x3, x4, x5)
U49_gagg(x1, x2, x3, x4, x5)  =  U49_gagg(x1, x2, x3, x4, x5)
pN17_in_gggg(x1, x2, x3, x4)  =  pN17_in_gggg(x1, x2, x3, x4)
U50_gggg(x1, x2, x3, x4, x5)  =  U50_gggg(x1, x2, x3, x4, x5)
U51_gggg(x1, x2, x3, x4, x5)  =  U51_gggg(x1, x2, x3, x4, x5)
noattackW_in_gg(x1, x2)  =  noattackW_in_gg(x1, x2)
noattackW_out_gg(x1, x2)  =  noattackW_out_gg(x1, x2)
U18_gg(x1, x2, x3, x4)  =  U18_gg(x1, x2, x3, x4)
pX_in_ggaag(x1, x2, x3, x4, x5)  =  pX_in_ggaag(x1, x2, x5)
U52_ggaag(x1, x2, x3, x4, x5, x6)  =  U52_ggaag(x1, x2, x5, x6)
U53_ggaag(x1, x2, x3, x4, x5, x6)  =  U53_ggaag(x1, x2, x5, x6)
pN18_in_gagag(x1, x2, x3, x4, x5)  =  pN18_in_gagag(x1, x3, x5)
U54_gagag(x1, x2, x3, x4, x5, x6)  =  U54_gagag(x1, x3, x5, x6)
addI_in_ga(x1, x2)  =  addI_in_ga(x1)
addI_out_ga(x1, x2)  =  addI_out_ga(x1, x2)
U7_ga(x1, x2, x3)  =  U7_ga(x1, x3)
U55_gagag(x1, x2, x3, x4, x5, x6)  =  U55_gagag(x1, x2, x3, x5, x6)
pN19_in_ggagg(x1, x2, x3, x4, x5)  =  pN19_in_ggagg(x1, x2, x4, x5)
U56_ggagg(x1, x2, x3, x4, x5, x6)  =  U56_ggagg(x1, x2, x4, x5, x6)
U57_ggagg(x1, x2, x3, x4, x5, x6)  =  U57_ggagg(x1, x2, x4, x5, x6)
pN20_in_gagg(x1, x2, x3, x4)  =  pN20_in_gagg(x1, x3, x4)
U58_gagg(x1, x2, x3, x4, x5)  =  U58_gagg(x1, x3, x4, x5)
U59_gagg(x1, x2, x3, x4, x5)  =  U59_gagg(x1, x2, x3, x4, x5)
pN21_in_gggg(x1, x2, x3, x4)  =  pN21_in_gggg(x1, x2, x3, x4)
U60_gggg(x1, x2, x3, x4, x5)  =  U60_gggg(x1, x2, x3, x4, x5)
U61_gggg(x1, x2, x3, x4, x5)  =  U61_gggg(x1, x2, x3, x4, x5)
noattackY_in_gg(x1, x2)  =  noattackY_in_gg(x1, x2)
noattackY_out_gg(x1, x2)  =  noattackY_out_gg(x1, x2)
U19_gg(x1, x2, x3, x4)  =  U19_gg(x1, x2, x3, x4)
pZ_in_ggaag(x1, x2, x3, x4, x5)  =  pZ_in_ggaag(x1, x2, x5)
U62_ggaag(x1, x2, x3, x4, x5, x6)  =  U62_ggaag(x1, x2, x5, x6)
U63_ggaag(x1, x2, x3, x4, x5, x6)  =  U63_ggaag(x1, x2, x5, x6)
pN22_in_gagag(x1, x2, x3, x4, x5)  =  pN22_in_gagag(x1, x3, x5)
U64_gagag(x1, x2, x3, x4, x5, x6)  =  U64_gagag(x1, x3, x5, x6)
addJ_in_ga(x1, x2)  =  addJ_in_ga(x1)
addJ_out_ga(x1, x2)  =  addJ_out_ga(x1, x2)
U8_ga(x1, x2, x3)  =  U8_ga(x1, x3)
U65_gagag(x1, x2, x3, x4, x5, x6)  =  U65_gagag(x1, x2, x3, x5, x6)
pN23_in_ggagg(x1, x2, x3, x4, x5)  =  pN23_in_ggagg(x1, x2, x4, x5)
U66_ggagg(x1, x2, x3, x4, x5, x6)  =  U66_ggagg(x1, x2, x4, x5, x6)
U67_ggagg(x1, x2, x3, x4, x5, x6)  =  U67_ggagg(x1, x2, x4, x5, x6)
pN24_in_gagg(x1, x2, x3, x4)  =  pN24_in_gagg(x1, x3, x4)
U68_gagg(x1, x2, x3, x4, x5)  =  U68_gagg(x1, x3, x4, x5)
U69_gagg(x1, x2, x3, x4, x5)  =  U69_gagg(x1, x2, x3, x4, x5)
pN25_in_gggg(x1, x2, x3, x4)  =  pN25_in_gggg(x1, x2, x3, x4)
U70_gggg(x1, x2, x3, x4, x5)  =  U70_gggg(x1, x2, x3, x4, x5)
U71_gggg(x1, x2, x3, x4, x5)  =  U71_gggg(x1, x2, x3, x4, x5)
noattackN1_in_gg(x1, x2)  =  noattackN1_in_gg(x1, x2)
noattackN1_out_gg(x1, x2)  =  noattackN1_out_gg(x1, x2)
U20_gg(x1, x2, x3, x4)  =  U20_gg(x1, x2, x3, x4)
pN2_in_ggaag(x1, x2, x3, x4, x5)  =  pN2_in_ggaag(x1, x2, x5)
U72_ggaag(x1, x2, x3, x4, x5, x6)  =  U72_ggaag(x1, x2, x5, x6)
U73_ggaag(x1, x2, x3, x4, x5, x6)  =  U73_ggaag(x1, x2, x5, x6)
pN26_in_gagag(x1, x2, x3, x4, x5)  =  pN26_in_gagag(x1, x3, x5)
U74_gagag(x1, x2, x3, x4, x5, x6)  =  U74_gagag(x1, x3, x5, x6)
addK_in_ga(x1, x2)  =  addK_in_ga(x1)
addK_out_ga(x1, x2)  =  addK_out_ga(x1, x2)
U9_ga(x1, x2, x3)  =  U9_ga(x1, x3)
U75_gagag(x1, x2, x3, x4, x5, x6)  =  U75_gagag(x1, x2, x3, x5, x6)
pN27_in_ggagg(x1, x2, x3, x4, x5)  =  pN27_in_ggagg(x1, x2, x4, x5)
U76_ggagg(x1, x2, x3, x4, x5, x6)  =  U76_ggagg(x1, x2, x4, x5, x6)
U77_ggagg(x1, x2, x3, x4, x5, x6)  =  U77_ggagg(x1, x2, x4, x5, x6)
pN28_in_gagg(x1, x2, x3, x4)  =  pN28_in_gagg(x1, x3, x4)
U78_gagg(x1, x2, x3, x4, x5)  =  U78_gagg(x1, x3, x4, x5)
U79_gagg(x1, x2, x3, x4, x5)  =  U79_gagg(x1, x2, x3, x4, x5)
pN29_in_gggg(x1, x2, x3, x4)  =  pN29_in_gggg(x1, x2, x3, x4)
U80_gggg(x1, x2, x3, x4, x5)  =  U80_gggg(x1, x2, x3, x4, x5)
U81_gggg(x1, x2, x3, x4, x5)  =  U81_gggg(x1, x2, x3, x4, x5)
noattackN3_in_gg(x1, x2)  =  noattackN3_in_gg(x1, x2)
noattackN3_out_gg(x1, x2)  =  noattackN3_out_gg(x1, x2)
U21_gg(x1, x2, x3, x4)  =  U21_gg(x1, x2, x3, x4)
pN4_in_ggaag(x1, x2, x3, x4, x5)  =  pN4_in_ggaag(x1, x2, x5)
U82_ggaag(x1, x2, x3, x4, x5, x6)  =  U82_ggaag(x1, x2, x5, x6)
U83_ggaag(x1, x2, x3, x4, x5, x6)  =  U83_ggaag(x1, x2, x5, x6)
pN30_in_gagag(x1, x2, x3, x4, x5)  =  pN30_in_gagag(x1, x3, x5)
U84_gagag(x1, x2, x3, x4, x5, x6)  =  U84_gagag(x1, x3, x5, x6)
addL_in_ga(x1, x2)  =  addL_in_ga(x1)
addL_out_ga(x1, x2)  =  addL_out_ga(x1, x2)
U10_ga(x1, x2, x3)  =  U10_ga(x1, x3)
U85_gagag(x1, x2, x3, x4, x5, x6)  =  U85_gagag(x1, x2, x3, x5, x6)
pN31_in_ggagg(x1, x2, x3, x4, x5)  =  pN31_in_ggagg(x1, x2, x4, x5)
U86_ggagg(x1, x2, x3, x4, x5, x6)  =  U86_ggagg(x1, x2, x4, x5, x6)
U87_ggagg(x1, x2, x3, x4, x5, x6)  =  U87_ggagg(x1, x2, x4, x5, x6)
pN32_in_gagg(x1, x2, x3, x4)  =  pN32_in_gagg(x1, x3, x4)
U88_gagg(x1, x2, x3, x4, x5)  =  U88_gagg(x1, x3, x4, x5)
U89_gagg(x1, x2, x3, x4, x5)  =  U89_gagg(x1, x2, x3, x4, x5)
pN33_in_gggg(x1, x2, x3, x4)  =  pN33_in_gggg(x1, x2, x3, x4)
U90_gggg(x1, x2, x3, x4, x5)  =  U90_gggg(x1, x2, x3, x4, x5)
U91_gggg(x1, x2, x3, x4, x5)  =  U91_gggg(x1, x2, x3, x4, x5)
noattackN5_in_gg(x1, x2)  =  noattackN5_in_gg(x1, x2)
noattackN5_out_gg(x1, x2)  =  noattackN5_out_gg(x1, x2)
U22_gg(x1, x2, x3, x4)  =  U22_gg(x1, x2, x3, x4)
pN6_in_ggaagg(x1, x2, x3, x4, x5, x6)  =  pN6_in_ggaagg(x1, x2, x5, x6)
U92_ggaagg(x1, x2, x3, x4, x5, x6, x7)  =  U92_ggaagg(x1, x2, x5, x6, x7)
U93_ggaagg(x1, x2, x3, x4, x5, x6, x7)  =  U93_ggaagg(x1, x2, x5, x6, x7)
pN34_in_gagagg(x1, x2, x3, x4, x5, x6)  =  pN34_in_gagagg(x1, x3, x5, x6)
U94_gagagg(x1, x2, x3, x4, x5, x6, x7)  =  U94_gagagg(x1, x3, x5, x6, x7)
addM_in_ga(x1, x2)  =  addM_in_ga(x1)
addM_out_ga(x1, x2)  =  addM_out_ga(x1, x2)
U11_ga(x1, x2, x3)  =  U11_ga(x1, x3)
U95_gagagg(x1, x2, x3, x4, x5, x6, x7)  =  U95_gagagg(x1, x2, x3, x5, x6, x7)
pN35_in_ggaggg(x1, x2, x3, x4, x5, x6)  =  pN35_in_ggaggg(x1, x2, x4, x5, x6)
U96_ggaggg(x1, x2, x3, x4, x5, x6, x7)  =  U96_ggaggg(x1, x2, x4, x5, x6, x7)
U97_ggaggg(x1, x2, x3, x4, x5, x6, x7)  =  U97_ggaggg(x1, x2, x4, x5, x6, x7)
pN36_in_gaggg(x1, x2, x3, x4, x5)  =  pN36_in_gaggg(x1, x3, x4, x5)
U98_gaggg(x1, x2, x3, x4, x5, x6)  =  U98_gaggg(x1, x3, x4, x5, x6)
U99_gaggg(x1, x2, x3, x4, x5, x6)  =  U99_gaggg(x1, x2, x3, x4, x5, x6)
pN37_in_ggggg(x1, x2, x3, x4, x5)  =  pN37_in_ggggg(x1, x2, x3, x4, x5)
U100_ggggg(x1, x2, x3, x4, x5, x6)  =  U100_ggggg(x1, x2, x3, x4, x5, x6)
U101_ggggg(x1, x2, x3, x4, x5, x6)  =  U101_ggggg(x1, x2, x3, x4, x5, x6)
noattackN7_in_ggg(x1, x2, x3)  =  noattackN7_in_ggg(x1, x2, x3)
noattackN7_out_ggg(x1, x2, x3)  =  noattackN7_out_ggg(x1, x2, x3)
U23_ggg(x1, x2, x3, x4, x5)  =  U23_ggg(x1, x2, x3, x4, x5)
pN8_in_gggaag(x1, x2, x3, x4, x5, x6)  =  pN8_in_gggaag(x1, x2, x3, x6)
U102_gggaag(x1, x2, x3, x4, x5, x6, x7)  =  U102_gggaag(x1, x2, x3, x6, x7)
U103_gggaag(x1, x2, x3, x4, x5, x6, x7)  =  U103_gggaag(x1, x2, x3, x6, x7)
pN38_in_ggagag(x1, x2, x3, x4, x5, x6)  =  pN38_in_ggagag(x1, x2, x4, x6)
U104_ggagag(x1, x2, x3, x4, x5, x6, x7)  =  U104_ggagag(x1, x2, x4, x6, x7)
addN_in_gga(x1, x2, x3)  =  addN_in_gga(x1, x2)
addN_out_gga(x1, x2, x3)  =  addN_out_gga(x1, x2, x3)
U12_gga(x1, x2, x3, x4)  =  U12_gga(x1, x2, x4)
U105_ggagag(x1, x2, x3, x4, x5, x6, x7)  =  U105_ggagag(x1, x2, x3, x4, x6, x7)
pN39_in_gggagg(x1, x2, x3, x4, x5, x6)  =  pN39_in_gggagg(x1, x2, x3, x5, x6)
U106_gggagg(x1, x2, x3, x4, x5, x6, x7)  =  U106_gggagg(x1, x2, x3, x5, x6, x7)
U107_gggagg(x1, x2, x3, x4, x5, x6, x7)  =  U107_gggagg(x1, x2, x3, x5, x6, x7)
pN40_in_ggagg(x1, x2, x3, x4, x5)  =  pN40_in_ggagg(x1, x2, x4, x5)
U108_ggagg(x1, x2, x3, x4, x5, x6)  =  U108_ggagg(x1, x2, x4, x5, x6)
U109_ggagg(x1, x2, x3, x4, x5, x6)  =  U109_ggagg(x1, x2, x3, x4, x5, x6)
pN37_out_ggggg(x1, x2, x3, x4, x5)  =  pN37_out_ggggg(x1, x2, x3, x4, x5)
pN40_out_ggagg(x1, x2, x3, x4, x5)  =  pN40_out_ggagg(x1, x2, x3, x4, x5)
pN39_out_gggagg(x1, x2, x3, x4, x5, x6)  =  pN39_out_gggagg(x1, x2, x3, x4, x5, x6)
pN38_out_ggagag(x1, x2, x3, x4, x5, x6)  =  pN38_out_ggagag(x1, x2, x3, x4, x5, x6)
pN8_out_gggaag(x1, x2, x3, x4, x5, x6)  =  pN8_out_gggaag(x1, x2, x3, x4, x5, x6)
pN36_out_gaggg(x1, x2, x3, x4, x5)  =  pN36_out_gaggg(x1, x2, x3, x4, x5)
pN35_out_ggaggg(x1, x2, x3, x4, x5, x6)  =  pN35_out_ggaggg(x1, x2, x3, x4, x5, x6)
pN34_out_gagagg(x1, x2, x3, x4, x5, x6)  =  pN34_out_gagagg(x1, x2, x3, x4, x5, x6)
pN6_out_ggaagg(x1, x2, x3, x4, x5, x6)  =  pN6_out_ggaagg(x1, x2, x3, x4, x5, x6)
pN33_out_gggg(x1, x2, x3, x4)  =  pN33_out_gggg(x1, x2, x3, x4)
pN32_out_gagg(x1, x2, x3, x4)  =  pN32_out_gagg(x1, x2, x3, x4)
pN31_out_ggagg(x1, x2, x3, x4, x5)  =  pN31_out_ggagg(x1, x2, x3, x4, x5)
pN30_out_gagag(x1, x2, x3, x4, x5)  =  pN30_out_gagag(x1, x2, x3, x4, x5)
pN4_out_ggaag(x1, x2, x3, x4, x5)  =  pN4_out_ggaag(x1, x2, x3, x4, x5)
pN29_out_gggg(x1, x2, x3, x4)  =  pN29_out_gggg(x1, x2, x3, x4)
pN28_out_gagg(x1, x2, x3, x4)  =  pN28_out_gagg(x1, x2, x3, x4)
pN27_out_ggagg(x1, x2, x3, x4, x5)  =  pN27_out_ggagg(x1, x2, x3, x4, x5)
pN26_out_gagag(x1, x2, x3, x4, x5)  =  pN26_out_gagag(x1, x2, x3, x4, x5)
pN2_out_ggaag(x1, x2, x3, x4, x5)  =  pN2_out_ggaag(x1, x2, x3, x4, x5)
pN25_out_gggg(x1, x2, x3, x4)  =  pN25_out_gggg(x1, x2, x3, x4)
pN24_out_gagg(x1, x2, x3, x4)  =  pN24_out_gagg(x1, x2, x3, x4)
pN23_out_ggagg(x1, x2, x3, x4, x5)  =  pN23_out_ggagg(x1, x2, x3, x4, x5)
pN22_out_gagag(x1, x2, x3, x4, x5)  =  pN22_out_gagag(x1, x2, x3, x4, x5)
pZ_out_ggaag(x1, x2, x3, x4, x5)  =  pZ_out_ggaag(x1, x2, x3, x4, x5)
pN21_out_gggg(x1, x2, x3, x4)  =  pN21_out_gggg(x1, x2, x3, x4)
pN20_out_gagg(x1, x2, x3, x4)  =  pN20_out_gagg(x1, x2, x3, x4)
pN19_out_ggagg(x1, x2, x3, x4, x5)  =  pN19_out_ggagg(x1, x2, x3, x4, x5)
pN18_out_gagag(x1, x2, x3, x4, x5)  =  pN18_out_gagag(x1, x2, x3, x4, x5)
pX_out_ggaag(x1, x2, x3, x4, x5)  =  pX_out_ggaag(x1, x2, x3, x4, x5)
pN17_out_gggg(x1, x2, x3, x4)  =  pN17_out_gggg(x1, x2, x3, x4)
pN16_out_gagg(x1, x2, x3, x4)  =  pN16_out_gagg(x1, x2, x3, x4)
pN15_out_ggagg(x1, x2, x3, x4, x5)  =  pN15_out_ggagg(x1, x2, x3, x4, x5)
pN14_out_gagag(x1, x2, x3, x4, x5)  =  pN14_out_gagag(x1, x2, x3, x4, x5)
pV_out_ggaag(x1, x2, x3, x4, x5)  =  pV_out_ggaag(x1, x2, x3, x4, x5)
pN13_out_gggg(x1, x2, x3, x4)  =  pN13_out_gggg(x1, x2, x3, x4)
pN12_out_gagg(x1, x2, x3, x4)  =  pN12_out_gagg(x1, x2, x3, x4)
pN11_out_ggagg(x1, x2, x3, x4, x5)  =  pN11_out_ggagg(x1, x2, x3, x4, x5)
pN10_out_gagag(x1, x2, x3, x4, x5)  =  pN10_out_gagag(x1, x2, x3, x4, x5)
pS_out_ggaag(x1, x2, x3, x4, x5)  =  pS_out_ggaag(x1, x2, x3, x4, x5)
U31_gg(x1, x2, x3)  =  U31_gg(x1, x2, x3)
safeT_in_g(x1)  =  safeT_in_g(x1)
safeT_out_g(x1)  =  safeT_out_g(x1)
U16_g(x1, x2, x3)  =  U16_g(x1, x2, x3)
pQ_out_gg(x1, x2)  =  pQ_out_gg(x1, x2)
safeP_out_gg(x1, x2)  =  safeP_out_gg(x1, x2)
pN9_out_gag(x1, x2, x3)  =  pN9_out_gag(x1, x2, x3)
pB_out_agaa(x1, x2, x3, x4)  =  pB_out_agaa(x1, x2, x3, x4)
queensA_out_a(x1)  =  queensA_out_a(x1)
ADDK_IN_GA(x1, x2)  =  ADDK_IN_GA(x1)

We have to consider all (P,R,Pi)-chains

(29) UsableRulesProof (EQUIVALENT transformation)

For (infinitary) constructor rewriting [LOPSTR] we can delete all non-usable rules from R.

(30) Obligation:

Pi DP problem:
The TRS P consists of the following rules:

ADDK_IN_GA(s(T285), s(X475)) → ADDK_IN_GA(T285, X475)

R is empty.
The argument filtering Pi contains the following mapping:
s(x1)  =  s(x1)
ADDK_IN_GA(x1, x2)  =  ADDK_IN_GA(x1)

We have to consider all (P,R,Pi)-chains

(31) PiDPToQDPProof (SOUND transformation)

Transforming (infinitary) constructor rewriting Pi-DP problem [LOPSTR] into ordinary QDP problem [LPAR04] by application of Pi.

(32) Obligation:

Q DP problem:
The TRS P consists of the following rules:

ADDK_IN_GA(s(T285)) → ADDK_IN_GA(T285)

R is empty.
Q is empty.
We have to consider all (P,Q,R)-chains.

(33) QDPSizeChangeProof (EQUIVALENT transformation)

By using the subterm criterion [SUBTERM_CRITERION] together with the size-change analysis [AAECC05] we have proven that there are no infinite chains for this DP problem.

From the DPs we obtained the following set of size-change graphs:

  • ADDK_IN_GA(s(T285)) → ADDK_IN_GA(T285)
    The graph contains the following edges 1 > 1

(34) YES

(35) Obligation:

Pi DP problem:
The TRS P consists of the following rules:

ADDJ_IN_GA(s(T252), s(X406)) → ADDJ_IN_GA(T252, X406)

The TRS R consists of the following rules:

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))

The argument filtering Pi contains the following mapping:
queensA_in_a(x1)  =  queensA_in_a
U1_a(x1, x2, x3)  =  U1_a(x3)
pB_in_agaa(x1, x2, x3, x4)  =  pB_in_agaa(x2)
U24_agaa(x1, x2, x3, x4, x5)  =  U24_agaa(x2, x5)
deleteO_in_aga(x1, x2, x3)  =  deleteO_in_aga(x2)
deleteO_out_aga(x1, x2, x3)  =  deleteO_out_aga(x1, x2, x3)
U13_aga(x1, x2, x3, x4)  =  U13_aga(x2, x4)
deleteC_in_aga(x1, x2, x3)  =  deleteC_in_aga(x2)
.(x1, x2)  =  .(x1, x2)
deleteC_out_aga(x1, x2, x3)  =  deleteC_out_aga(x1, x2, x3)
U2_aga(x1, x2, x3, x4, x5)  =  U2_aga(x2, x3, x5)
U25_agaa(x1, x2, x3, x4, x5)  =  U25_agaa(x1, x2, x3, x5)
pN9_in_gag(x1, x2, x3)  =  pN9_in_gag(x1, x3)
U26_gag(x1, x2, x3, x4)  =  U26_gag(x1, x3, x4)
permD_in_ga(x1, x2)  =  permD_in_ga(x1)
[]  =  []
permD_out_ga(x1, x2)  =  permD_out_ga(x1, x2)
U3_ga(x1, x2, x3, x4, x5)  =  U3_ga(x1, x2, x5)
pE_in_aggaa(x1, x2, x3, x4, x5)  =  pE_in_aggaa(x2, x3)
U28_aggaa(x1, x2, x3, x4, x5, x6)  =  U28_aggaa(x2, x3, x6)
U29_aggaa(x1, x2, x3, x4, x5, x6)  =  U29_aggaa(x1, x2, x3, x4, x6)
pE_out_aggaa(x1, x2, x3, x4, x5)  =  pE_out_aggaa(x1, x2, x3, x4, x5)
U27_gag(x1, x2, x3, x4)  =  U27_gag(x1, x2, x3, x4)
safeP_in_gg(x1, x2)  =  safeP_in_gg(x1, x2)
U14_gg(x1, x2, x3)  =  U14_gg(x1, x2, x3)
pQ_in_gg(x1, x2)  =  pQ_in_gg(x1, x2)
U30_gg(x1, x2, x3)  =  U30_gg(x1, x2, x3)
noattackR_in_gg(x1, x2)  =  noattackR_in_gg(x1, x2)
noattackR_out_gg(x1, x2)  =  noattackR_out_gg(x1, x2)
U15_gg(x1, x2, x3, x4)  =  U15_gg(x1, x2, x3, x4)
pS_in_ggaag(x1, x2, x3, x4, x5)  =  pS_in_ggaag(x1, x2, x5)
U32_ggaag(x1, x2, x3, x4, x5, x6)  =  U32_ggaag(x1, x2, x5, x6)
notEqF_in_gg(x1, x2)  =  notEqF_in_gg(x1, x2)
0  =  0
s(x1)  =  s(x1)
notEqF_out_gg(x1, x2)  =  notEqF_out_gg(x1, x2)
U4_gg(x1, x2, x3)  =  U4_gg(x1, x2, x3)
U33_ggaag(x1, x2, x3, x4, x5, x6)  =  U33_ggaag(x1, x2, x5, x6)
pN10_in_gagag(x1, x2, x3, x4, x5)  =  pN10_in_gagag(x1, x3, x5)
U34_gagag(x1, x2, x3, x4, x5, x6)  =  U34_gagag(x1, x3, x5, x6)
addG_in_ga(x1, x2)  =  addG_in_ga(x1)
addG_out_ga(x1, x2)  =  addG_out_ga(x1, x2)
U5_ga(x1, x2, x3)  =  U5_ga(x1, x3)
U35_gagag(x1, x2, x3, x4, x5, x6)  =  U35_gagag(x1, x2, x3, x5, x6)
pN11_in_ggagg(x1, x2, x3, x4, x5)  =  pN11_in_ggagg(x1, x2, x4, x5)
U36_ggagg(x1, x2, x3, x4, x5, x6)  =  U36_ggagg(x1, x2, x4, x5, x6)
U37_ggagg(x1, x2, x3, x4, x5, x6)  =  U37_ggagg(x1, x2, x4, x5, x6)
pN12_in_gagg(x1, x2, x3, x4)  =  pN12_in_gagg(x1, x3, x4)
U38_gagg(x1, x2, x3, x4, x5)  =  U38_gagg(x1, x3, x4, x5)
U39_gagg(x1, x2, x3, x4, x5)  =  U39_gagg(x1, x2, x3, x4, x5)
pN13_in_gggg(x1, x2, x3, x4)  =  pN13_in_gggg(x1, x2, x3, x4)
U40_gggg(x1, x2, x3, x4, x5)  =  U40_gggg(x1, x2, x3, x4, x5)
U41_gggg(x1, x2, x3, x4, x5)  =  U41_gggg(x1, x2, x3, x4, x5)
noattackU_in_gg(x1, x2)  =  noattackU_in_gg(x1, x2)
noattackU_out_gg(x1, x2)  =  noattackU_out_gg(x1, x2)
U17_gg(x1, x2, x3, x4)  =  U17_gg(x1, x2, x3, x4)
pV_in_ggaag(x1, x2, x3, x4, x5)  =  pV_in_ggaag(x1, x2, x5)
U42_ggaag(x1, x2, x3, x4, x5, x6)  =  U42_ggaag(x1, x2, x5, x6)
U43_ggaag(x1, x2, x3, x4, x5, x6)  =  U43_ggaag(x1, x2, x5, x6)
pN14_in_gagag(x1, x2, x3, x4, x5)  =  pN14_in_gagag(x1, x3, x5)
U44_gagag(x1, x2, x3, x4, x5, x6)  =  U44_gagag(x1, x3, x5, x6)
addH_in_ga(x1, x2)  =  addH_in_ga(x1)
addH_out_ga(x1, x2)  =  addH_out_ga(x1, x2)
U6_ga(x1, x2, x3)  =  U6_ga(x1, x3)
U45_gagag(x1, x2, x3, x4, x5, x6)  =  U45_gagag(x1, x2, x3, x5, x6)
pN15_in_ggagg(x1, x2, x3, x4, x5)  =  pN15_in_ggagg(x1, x2, x4, x5)
U46_ggagg(x1, x2, x3, x4, x5, x6)  =  U46_ggagg(x1, x2, x4, x5, x6)
U47_ggagg(x1, x2, x3, x4, x5, x6)  =  U47_ggagg(x1, x2, x4, x5, x6)
pN16_in_gagg(x1, x2, x3, x4)  =  pN16_in_gagg(x1, x3, x4)
U48_gagg(x1, x2, x3, x4, x5)  =  U48_gagg(x1, x3, x4, x5)
U49_gagg(x1, x2, x3, x4, x5)  =  U49_gagg(x1, x2, x3, x4, x5)
pN17_in_gggg(x1, x2, x3, x4)  =  pN17_in_gggg(x1, x2, x3, x4)
U50_gggg(x1, x2, x3, x4, x5)  =  U50_gggg(x1, x2, x3, x4, x5)
U51_gggg(x1, x2, x3, x4, x5)  =  U51_gggg(x1, x2, x3, x4, x5)
noattackW_in_gg(x1, x2)  =  noattackW_in_gg(x1, x2)
noattackW_out_gg(x1, x2)  =  noattackW_out_gg(x1, x2)
U18_gg(x1, x2, x3, x4)  =  U18_gg(x1, x2, x3, x4)
pX_in_ggaag(x1, x2, x3, x4, x5)  =  pX_in_ggaag(x1, x2, x5)
U52_ggaag(x1, x2, x3, x4, x5, x6)  =  U52_ggaag(x1, x2, x5, x6)
U53_ggaag(x1, x2, x3, x4, x5, x6)  =  U53_ggaag(x1, x2, x5, x6)
pN18_in_gagag(x1, x2, x3, x4, x5)  =  pN18_in_gagag(x1, x3, x5)
U54_gagag(x1, x2, x3, x4, x5, x6)  =  U54_gagag(x1, x3, x5, x6)
addI_in_ga(x1, x2)  =  addI_in_ga(x1)
addI_out_ga(x1, x2)  =  addI_out_ga(x1, x2)
U7_ga(x1, x2, x3)  =  U7_ga(x1, x3)
U55_gagag(x1, x2, x3, x4, x5, x6)  =  U55_gagag(x1, x2, x3, x5, x6)
pN19_in_ggagg(x1, x2, x3, x4, x5)  =  pN19_in_ggagg(x1, x2, x4, x5)
U56_ggagg(x1, x2, x3, x4, x5, x6)  =  U56_ggagg(x1, x2, x4, x5, x6)
U57_ggagg(x1, x2, x3, x4, x5, x6)  =  U57_ggagg(x1, x2, x4, x5, x6)
pN20_in_gagg(x1, x2, x3, x4)  =  pN20_in_gagg(x1, x3, x4)
U58_gagg(x1, x2, x3, x4, x5)  =  U58_gagg(x1, x3, x4, x5)
U59_gagg(x1, x2, x3, x4, x5)  =  U59_gagg(x1, x2, x3, x4, x5)
pN21_in_gggg(x1, x2, x3, x4)  =  pN21_in_gggg(x1, x2, x3, x4)
U60_gggg(x1, x2, x3, x4, x5)  =  U60_gggg(x1, x2, x3, x4, x5)
U61_gggg(x1, x2, x3, x4, x5)  =  U61_gggg(x1, x2, x3, x4, x5)
noattackY_in_gg(x1, x2)  =  noattackY_in_gg(x1, x2)
noattackY_out_gg(x1, x2)  =  noattackY_out_gg(x1, x2)
U19_gg(x1, x2, x3, x4)  =  U19_gg(x1, x2, x3, x4)
pZ_in_ggaag(x1, x2, x3, x4, x5)  =  pZ_in_ggaag(x1, x2, x5)
U62_ggaag(x1, x2, x3, x4, x5, x6)  =  U62_ggaag(x1, x2, x5, x6)
U63_ggaag(x1, x2, x3, x4, x5, x6)  =  U63_ggaag(x1, x2, x5, x6)
pN22_in_gagag(x1, x2, x3, x4, x5)  =  pN22_in_gagag(x1, x3, x5)
U64_gagag(x1, x2, x3, x4, x5, x6)  =  U64_gagag(x1, x3, x5, x6)
addJ_in_ga(x1, x2)  =  addJ_in_ga(x1)
addJ_out_ga(x1, x2)  =  addJ_out_ga(x1, x2)
U8_ga(x1, x2, x3)  =  U8_ga(x1, x3)
U65_gagag(x1, x2, x3, x4, x5, x6)  =  U65_gagag(x1, x2, x3, x5, x6)
pN23_in_ggagg(x1, x2, x3, x4, x5)  =  pN23_in_ggagg(x1, x2, x4, x5)
U66_ggagg(x1, x2, x3, x4, x5, x6)  =  U66_ggagg(x1, x2, x4, x5, x6)
U67_ggagg(x1, x2, x3, x4, x5, x6)  =  U67_ggagg(x1, x2, x4, x5, x6)
pN24_in_gagg(x1, x2, x3, x4)  =  pN24_in_gagg(x1, x3, x4)
U68_gagg(x1, x2, x3, x4, x5)  =  U68_gagg(x1, x3, x4, x5)
U69_gagg(x1, x2, x3, x4, x5)  =  U69_gagg(x1, x2, x3, x4, x5)
pN25_in_gggg(x1, x2, x3, x4)  =  pN25_in_gggg(x1, x2, x3, x4)
U70_gggg(x1, x2, x3, x4, x5)  =  U70_gggg(x1, x2, x3, x4, x5)
U71_gggg(x1, x2, x3, x4, x5)  =  U71_gggg(x1, x2, x3, x4, x5)
noattackN1_in_gg(x1, x2)  =  noattackN1_in_gg(x1, x2)
noattackN1_out_gg(x1, x2)  =  noattackN1_out_gg(x1, x2)
U20_gg(x1, x2, x3, x4)  =  U20_gg(x1, x2, x3, x4)
pN2_in_ggaag(x1, x2, x3, x4, x5)  =  pN2_in_ggaag(x1, x2, x5)
U72_ggaag(x1, x2, x3, x4, x5, x6)  =  U72_ggaag(x1, x2, x5, x6)
U73_ggaag(x1, x2, x3, x4, x5, x6)  =  U73_ggaag(x1, x2, x5, x6)
pN26_in_gagag(x1, x2, x3, x4, x5)  =  pN26_in_gagag(x1, x3, x5)
U74_gagag(x1, x2, x3, x4, x5, x6)  =  U74_gagag(x1, x3, x5, x6)
addK_in_ga(x1, x2)  =  addK_in_ga(x1)
addK_out_ga(x1, x2)  =  addK_out_ga(x1, x2)
U9_ga(x1, x2, x3)  =  U9_ga(x1, x3)
U75_gagag(x1, x2, x3, x4, x5, x6)  =  U75_gagag(x1, x2, x3, x5, x6)
pN27_in_ggagg(x1, x2, x3, x4, x5)  =  pN27_in_ggagg(x1, x2, x4, x5)
U76_ggagg(x1, x2, x3, x4, x5, x6)  =  U76_ggagg(x1, x2, x4, x5, x6)
U77_ggagg(x1, x2, x3, x4, x5, x6)  =  U77_ggagg(x1, x2, x4, x5, x6)
pN28_in_gagg(x1, x2, x3, x4)  =  pN28_in_gagg(x1, x3, x4)
U78_gagg(x1, x2, x3, x4, x5)  =  U78_gagg(x1, x3, x4, x5)
U79_gagg(x1, x2, x3, x4, x5)  =  U79_gagg(x1, x2, x3, x4, x5)
pN29_in_gggg(x1, x2, x3, x4)  =  pN29_in_gggg(x1, x2, x3, x4)
U80_gggg(x1, x2, x3, x4, x5)  =  U80_gggg(x1, x2, x3, x4, x5)
U81_gggg(x1, x2, x3, x4, x5)  =  U81_gggg(x1, x2, x3, x4, x5)
noattackN3_in_gg(x1, x2)  =  noattackN3_in_gg(x1, x2)
noattackN3_out_gg(x1, x2)  =  noattackN3_out_gg(x1, x2)
U21_gg(x1, x2, x3, x4)  =  U21_gg(x1, x2, x3, x4)
pN4_in_ggaag(x1, x2, x3, x4, x5)  =  pN4_in_ggaag(x1, x2, x5)
U82_ggaag(x1, x2, x3, x4, x5, x6)  =  U82_ggaag(x1, x2, x5, x6)
U83_ggaag(x1, x2, x3, x4, x5, x6)  =  U83_ggaag(x1, x2, x5, x6)
pN30_in_gagag(x1, x2, x3, x4, x5)  =  pN30_in_gagag(x1, x3, x5)
U84_gagag(x1, x2, x3, x4, x5, x6)  =  U84_gagag(x1, x3, x5, x6)
addL_in_ga(x1, x2)  =  addL_in_ga(x1)
addL_out_ga(x1, x2)  =  addL_out_ga(x1, x2)
U10_ga(x1, x2, x3)  =  U10_ga(x1, x3)
U85_gagag(x1, x2, x3, x4, x5, x6)  =  U85_gagag(x1, x2, x3, x5, x6)
pN31_in_ggagg(x1, x2, x3, x4, x5)  =  pN31_in_ggagg(x1, x2, x4, x5)
U86_ggagg(x1, x2, x3, x4, x5, x6)  =  U86_ggagg(x1, x2, x4, x5, x6)
U87_ggagg(x1, x2, x3, x4, x5, x6)  =  U87_ggagg(x1, x2, x4, x5, x6)
pN32_in_gagg(x1, x2, x3, x4)  =  pN32_in_gagg(x1, x3, x4)
U88_gagg(x1, x2, x3, x4, x5)  =  U88_gagg(x1, x3, x4, x5)
U89_gagg(x1, x2, x3, x4, x5)  =  U89_gagg(x1, x2, x3, x4, x5)
pN33_in_gggg(x1, x2, x3, x4)  =  pN33_in_gggg(x1, x2, x3, x4)
U90_gggg(x1, x2, x3, x4, x5)  =  U90_gggg(x1, x2, x3, x4, x5)
U91_gggg(x1, x2, x3, x4, x5)  =  U91_gggg(x1, x2, x3, x4, x5)
noattackN5_in_gg(x1, x2)  =  noattackN5_in_gg(x1, x2)
noattackN5_out_gg(x1, x2)  =  noattackN5_out_gg(x1, x2)
U22_gg(x1, x2, x3, x4)  =  U22_gg(x1, x2, x3, x4)
pN6_in_ggaagg(x1, x2, x3, x4, x5, x6)  =  pN6_in_ggaagg(x1, x2, x5, x6)
U92_ggaagg(x1, x2, x3, x4, x5, x6, x7)  =  U92_ggaagg(x1, x2, x5, x6, x7)
U93_ggaagg(x1, x2, x3, x4, x5, x6, x7)  =  U93_ggaagg(x1, x2, x5, x6, x7)
pN34_in_gagagg(x1, x2, x3, x4, x5, x6)  =  pN34_in_gagagg(x1, x3, x5, x6)
U94_gagagg(x1, x2, x3, x4, x5, x6, x7)  =  U94_gagagg(x1, x3, x5, x6, x7)
addM_in_ga(x1, x2)  =  addM_in_ga(x1)
addM_out_ga(x1, x2)  =  addM_out_ga(x1, x2)
U11_ga(x1, x2, x3)  =  U11_ga(x1, x3)
U95_gagagg(x1, x2, x3, x4, x5, x6, x7)  =  U95_gagagg(x1, x2, x3, x5, x6, x7)
pN35_in_ggaggg(x1, x2, x3, x4, x5, x6)  =  pN35_in_ggaggg(x1, x2, x4, x5, x6)
U96_ggaggg(x1, x2, x3, x4, x5, x6, x7)  =  U96_ggaggg(x1, x2, x4, x5, x6, x7)
U97_ggaggg(x1, x2, x3, x4, x5, x6, x7)  =  U97_ggaggg(x1, x2, x4, x5, x6, x7)
pN36_in_gaggg(x1, x2, x3, x4, x5)  =  pN36_in_gaggg(x1, x3, x4, x5)
U98_gaggg(x1, x2, x3, x4, x5, x6)  =  U98_gaggg(x1, x3, x4, x5, x6)
U99_gaggg(x1, x2, x3, x4, x5, x6)  =  U99_gaggg(x1, x2, x3, x4, x5, x6)
pN37_in_ggggg(x1, x2, x3, x4, x5)  =  pN37_in_ggggg(x1, x2, x3, x4, x5)
U100_ggggg(x1, x2, x3, x4, x5, x6)  =  U100_ggggg(x1, x2, x3, x4, x5, x6)
U101_ggggg(x1, x2, x3, x4, x5, x6)  =  U101_ggggg(x1, x2, x3, x4, x5, x6)
noattackN7_in_ggg(x1, x2, x3)  =  noattackN7_in_ggg(x1, x2, x3)
noattackN7_out_ggg(x1, x2, x3)  =  noattackN7_out_ggg(x1, x2, x3)
U23_ggg(x1, x2, x3, x4, x5)  =  U23_ggg(x1, x2, x3, x4, x5)
pN8_in_gggaag(x1, x2, x3, x4, x5, x6)  =  pN8_in_gggaag(x1, x2, x3, x6)
U102_gggaag(x1, x2, x3, x4, x5, x6, x7)  =  U102_gggaag(x1, x2, x3, x6, x7)
U103_gggaag(x1, x2, x3, x4, x5, x6, x7)  =  U103_gggaag(x1, x2, x3, x6, x7)
pN38_in_ggagag(x1, x2, x3, x4, x5, x6)  =  pN38_in_ggagag(x1, x2, x4, x6)
U104_ggagag(x1, x2, x3, x4, x5, x6, x7)  =  U104_ggagag(x1, x2, x4, x6, x7)
addN_in_gga(x1, x2, x3)  =  addN_in_gga(x1, x2)
addN_out_gga(x1, x2, x3)  =  addN_out_gga(x1, x2, x3)
U12_gga(x1, x2, x3, x4)  =  U12_gga(x1, x2, x4)
U105_ggagag(x1, x2, x3, x4, x5, x6, x7)  =  U105_ggagag(x1, x2, x3, x4, x6, x7)
pN39_in_gggagg(x1, x2, x3, x4, x5, x6)  =  pN39_in_gggagg(x1, x2, x3, x5, x6)
U106_gggagg(x1, x2, x3, x4, x5, x6, x7)  =  U106_gggagg(x1, x2, x3, x5, x6, x7)
U107_gggagg(x1, x2, x3, x4, x5, x6, x7)  =  U107_gggagg(x1, x2, x3, x5, x6, x7)
pN40_in_ggagg(x1, x2, x3, x4, x5)  =  pN40_in_ggagg(x1, x2, x4, x5)
U108_ggagg(x1, x2, x3, x4, x5, x6)  =  U108_ggagg(x1, x2, x4, x5, x6)
U109_ggagg(x1, x2, x3, x4, x5, x6)  =  U109_ggagg(x1, x2, x3, x4, x5, x6)
pN37_out_ggggg(x1, x2, x3, x4, x5)  =  pN37_out_ggggg(x1, x2, x3, x4, x5)
pN40_out_ggagg(x1, x2, x3, x4, x5)  =  pN40_out_ggagg(x1, x2, x3, x4, x5)
pN39_out_gggagg(x1, x2, x3, x4, x5, x6)  =  pN39_out_gggagg(x1, x2, x3, x4, x5, x6)
pN38_out_ggagag(x1, x2, x3, x4, x5, x6)  =  pN38_out_ggagag(x1, x2, x3, x4, x5, x6)
pN8_out_gggaag(x1, x2, x3, x4, x5, x6)  =  pN8_out_gggaag(x1, x2, x3, x4, x5, x6)
pN36_out_gaggg(x1, x2, x3, x4, x5)  =  pN36_out_gaggg(x1, x2, x3, x4, x5)
pN35_out_ggaggg(x1, x2, x3, x4, x5, x6)  =  pN35_out_ggaggg(x1, x2, x3, x4, x5, x6)
pN34_out_gagagg(x1, x2, x3, x4, x5, x6)  =  pN34_out_gagagg(x1, x2, x3, x4, x5, x6)
pN6_out_ggaagg(x1, x2, x3, x4, x5, x6)  =  pN6_out_ggaagg(x1, x2, x3, x4, x5, x6)
pN33_out_gggg(x1, x2, x3, x4)  =  pN33_out_gggg(x1, x2, x3, x4)
pN32_out_gagg(x1, x2, x3, x4)  =  pN32_out_gagg(x1, x2, x3, x4)
pN31_out_ggagg(x1, x2, x3, x4, x5)  =  pN31_out_ggagg(x1, x2, x3, x4, x5)
pN30_out_gagag(x1, x2, x3, x4, x5)  =  pN30_out_gagag(x1, x2, x3, x4, x5)
pN4_out_ggaag(x1, x2, x3, x4, x5)  =  pN4_out_ggaag(x1, x2, x3, x4, x5)
pN29_out_gggg(x1, x2, x3, x4)  =  pN29_out_gggg(x1, x2, x3, x4)
pN28_out_gagg(x1, x2, x3, x4)  =  pN28_out_gagg(x1, x2, x3, x4)
pN27_out_ggagg(x1, x2, x3, x4, x5)  =  pN27_out_ggagg(x1, x2, x3, x4, x5)
pN26_out_gagag(x1, x2, x3, x4, x5)  =  pN26_out_gagag(x1, x2, x3, x4, x5)
pN2_out_ggaag(x1, x2, x3, x4, x5)  =  pN2_out_ggaag(x1, x2, x3, x4, x5)
pN25_out_gggg(x1, x2, x3, x4)  =  pN25_out_gggg(x1, x2, x3, x4)
pN24_out_gagg(x1, x2, x3, x4)  =  pN24_out_gagg(x1, x2, x3, x4)
pN23_out_ggagg(x1, x2, x3, x4, x5)  =  pN23_out_ggagg(x1, x2, x3, x4, x5)
pN22_out_gagag(x1, x2, x3, x4, x5)  =  pN22_out_gagag(x1, x2, x3, x4, x5)
pZ_out_ggaag(x1, x2, x3, x4, x5)  =  pZ_out_ggaag(x1, x2, x3, x4, x5)
pN21_out_gggg(x1, x2, x3, x4)  =  pN21_out_gggg(x1, x2, x3, x4)
pN20_out_gagg(x1, x2, x3, x4)  =  pN20_out_gagg(x1, x2, x3, x4)
pN19_out_ggagg(x1, x2, x3, x4, x5)  =  pN19_out_ggagg(x1, x2, x3, x4, x5)
pN18_out_gagag(x1, x2, x3, x4, x5)  =  pN18_out_gagag(x1, x2, x3, x4, x5)
pX_out_ggaag(x1, x2, x3, x4, x5)  =  pX_out_ggaag(x1, x2, x3, x4, x5)
pN17_out_gggg(x1, x2, x3, x4)  =  pN17_out_gggg(x1, x2, x3, x4)
pN16_out_gagg(x1, x2, x3, x4)  =  pN16_out_gagg(x1, x2, x3, x4)
pN15_out_ggagg(x1, x2, x3, x4, x5)  =  pN15_out_ggagg(x1, x2, x3, x4, x5)
pN14_out_gagag(x1, x2, x3, x4, x5)  =  pN14_out_gagag(x1, x2, x3, x4, x5)
pV_out_ggaag(x1, x2, x3, x4, x5)  =  pV_out_ggaag(x1, x2, x3, x4, x5)
pN13_out_gggg(x1, x2, x3, x4)  =  pN13_out_gggg(x1, x2, x3, x4)
pN12_out_gagg(x1, x2, x3, x4)  =  pN12_out_gagg(x1, x2, x3, x4)
pN11_out_ggagg(x1, x2, x3, x4, x5)  =  pN11_out_ggagg(x1, x2, x3, x4, x5)
pN10_out_gagag(x1, x2, x3, x4, x5)  =  pN10_out_gagag(x1, x2, x3, x4, x5)
pS_out_ggaag(x1, x2, x3, x4, x5)  =  pS_out_ggaag(x1, x2, x3, x4, x5)
U31_gg(x1, x2, x3)  =  U31_gg(x1, x2, x3)
safeT_in_g(x1)  =  safeT_in_g(x1)
safeT_out_g(x1)  =  safeT_out_g(x1)
U16_g(x1, x2, x3)  =  U16_g(x1, x2, x3)
pQ_out_gg(x1, x2)  =  pQ_out_gg(x1, x2)
safeP_out_gg(x1, x2)  =  safeP_out_gg(x1, x2)
pN9_out_gag(x1, x2, x3)  =  pN9_out_gag(x1, x2, x3)
pB_out_agaa(x1, x2, x3, x4)  =  pB_out_agaa(x1, x2, x3, x4)
queensA_out_a(x1)  =  queensA_out_a(x1)
ADDJ_IN_GA(x1, x2)  =  ADDJ_IN_GA(x1)

We have to consider all (P,R,Pi)-chains

(36) UsableRulesProof (EQUIVALENT transformation)

For (infinitary) constructor rewriting [LOPSTR] we can delete all non-usable rules from R.

(37) Obligation:

Pi DP problem:
The TRS P consists of the following rules:

ADDJ_IN_GA(s(T252), s(X406)) → ADDJ_IN_GA(T252, X406)

R is empty.
The argument filtering Pi contains the following mapping:
s(x1)  =  s(x1)
ADDJ_IN_GA(x1, x2)  =  ADDJ_IN_GA(x1)

We have to consider all (P,R,Pi)-chains

(38) PiDPToQDPProof (SOUND transformation)

Transforming (infinitary) constructor rewriting Pi-DP problem [LOPSTR] into ordinary QDP problem [LPAR04] by application of Pi.

(39) Obligation:

Q DP problem:
The TRS P consists of the following rules:

ADDJ_IN_GA(s(T252)) → ADDJ_IN_GA(T252)

R is empty.
Q is empty.
We have to consider all (P,Q,R)-chains.

(40) QDPSizeChangeProof (EQUIVALENT transformation)

By using the subterm criterion [SUBTERM_CRITERION] together with the size-change analysis [AAECC05] we have proven that there are no infinite chains for this DP problem.

From the DPs we obtained the following set of size-change graphs:

  • ADDJ_IN_GA(s(T252)) → ADDJ_IN_GA(T252)
    The graph contains the following edges 1 > 1

(41) YES

(42) Obligation:

Pi DP problem:
The TRS P consists of the following rules:

ADDI_IN_GA(s(T219), s(X337)) → ADDI_IN_GA(T219, X337)

The TRS R consists of the following rules:

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))

The argument filtering Pi contains the following mapping:
queensA_in_a(x1)  =  queensA_in_a
U1_a(x1, x2, x3)  =  U1_a(x3)
pB_in_agaa(x1, x2, x3, x4)  =  pB_in_agaa(x2)
U24_agaa(x1, x2, x3, x4, x5)  =  U24_agaa(x2, x5)
deleteO_in_aga(x1, x2, x3)  =  deleteO_in_aga(x2)
deleteO_out_aga(x1, x2, x3)  =  deleteO_out_aga(x1, x2, x3)
U13_aga(x1, x2, x3, x4)  =  U13_aga(x2, x4)
deleteC_in_aga(x1, x2, x3)  =  deleteC_in_aga(x2)
.(x1, x2)  =  .(x1, x2)
deleteC_out_aga(x1, x2, x3)  =  deleteC_out_aga(x1, x2, x3)
U2_aga(x1, x2, x3, x4, x5)  =  U2_aga(x2, x3, x5)
U25_agaa(x1, x2, x3, x4, x5)  =  U25_agaa(x1, x2, x3, x5)
pN9_in_gag(x1, x2, x3)  =  pN9_in_gag(x1, x3)
U26_gag(x1, x2, x3, x4)  =  U26_gag(x1, x3, x4)
permD_in_ga(x1, x2)  =  permD_in_ga(x1)
[]  =  []
permD_out_ga(x1, x2)  =  permD_out_ga(x1, x2)
U3_ga(x1, x2, x3, x4, x5)  =  U3_ga(x1, x2, x5)
pE_in_aggaa(x1, x2, x3, x4, x5)  =  pE_in_aggaa(x2, x3)
U28_aggaa(x1, x2, x3, x4, x5, x6)  =  U28_aggaa(x2, x3, x6)
U29_aggaa(x1, x2, x3, x4, x5, x6)  =  U29_aggaa(x1, x2, x3, x4, x6)
pE_out_aggaa(x1, x2, x3, x4, x5)  =  pE_out_aggaa(x1, x2, x3, x4, x5)
U27_gag(x1, x2, x3, x4)  =  U27_gag(x1, x2, x3, x4)
safeP_in_gg(x1, x2)  =  safeP_in_gg(x1, x2)
U14_gg(x1, x2, x3)  =  U14_gg(x1, x2, x3)
pQ_in_gg(x1, x2)  =  pQ_in_gg(x1, x2)
U30_gg(x1, x2, x3)  =  U30_gg(x1, x2, x3)
noattackR_in_gg(x1, x2)  =  noattackR_in_gg(x1, x2)
noattackR_out_gg(x1, x2)  =  noattackR_out_gg(x1, x2)
U15_gg(x1, x2, x3, x4)  =  U15_gg(x1, x2, x3, x4)
pS_in_ggaag(x1, x2, x3, x4, x5)  =  pS_in_ggaag(x1, x2, x5)
U32_ggaag(x1, x2, x3, x4, x5, x6)  =  U32_ggaag(x1, x2, x5, x6)
notEqF_in_gg(x1, x2)  =  notEqF_in_gg(x1, x2)
0  =  0
s(x1)  =  s(x1)
notEqF_out_gg(x1, x2)  =  notEqF_out_gg(x1, x2)
U4_gg(x1, x2, x3)  =  U4_gg(x1, x2, x3)
U33_ggaag(x1, x2, x3, x4, x5, x6)  =  U33_ggaag(x1, x2, x5, x6)
pN10_in_gagag(x1, x2, x3, x4, x5)  =  pN10_in_gagag(x1, x3, x5)
U34_gagag(x1, x2, x3, x4, x5, x6)  =  U34_gagag(x1, x3, x5, x6)
addG_in_ga(x1, x2)  =  addG_in_ga(x1)
addG_out_ga(x1, x2)  =  addG_out_ga(x1, x2)
U5_ga(x1, x2, x3)  =  U5_ga(x1, x3)
U35_gagag(x1, x2, x3, x4, x5, x6)  =  U35_gagag(x1, x2, x3, x5, x6)
pN11_in_ggagg(x1, x2, x3, x4, x5)  =  pN11_in_ggagg(x1, x2, x4, x5)
U36_ggagg(x1, x2, x3, x4, x5, x6)  =  U36_ggagg(x1, x2, x4, x5, x6)
U37_ggagg(x1, x2, x3, x4, x5, x6)  =  U37_ggagg(x1, x2, x4, x5, x6)
pN12_in_gagg(x1, x2, x3, x4)  =  pN12_in_gagg(x1, x3, x4)
U38_gagg(x1, x2, x3, x4, x5)  =  U38_gagg(x1, x3, x4, x5)
U39_gagg(x1, x2, x3, x4, x5)  =  U39_gagg(x1, x2, x3, x4, x5)
pN13_in_gggg(x1, x2, x3, x4)  =  pN13_in_gggg(x1, x2, x3, x4)
U40_gggg(x1, x2, x3, x4, x5)  =  U40_gggg(x1, x2, x3, x4, x5)
U41_gggg(x1, x2, x3, x4, x5)  =  U41_gggg(x1, x2, x3, x4, x5)
noattackU_in_gg(x1, x2)  =  noattackU_in_gg(x1, x2)
noattackU_out_gg(x1, x2)  =  noattackU_out_gg(x1, x2)
U17_gg(x1, x2, x3, x4)  =  U17_gg(x1, x2, x3, x4)
pV_in_ggaag(x1, x2, x3, x4, x5)  =  pV_in_ggaag(x1, x2, x5)
U42_ggaag(x1, x2, x3, x4, x5, x6)  =  U42_ggaag(x1, x2, x5, x6)
U43_ggaag(x1, x2, x3, x4, x5, x6)  =  U43_ggaag(x1, x2, x5, x6)
pN14_in_gagag(x1, x2, x3, x4, x5)  =  pN14_in_gagag(x1, x3, x5)
U44_gagag(x1, x2, x3, x4, x5, x6)  =  U44_gagag(x1, x3, x5, x6)
addH_in_ga(x1, x2)  =  addH_in_ga(x1)
addH_out_ga(x1, x2)  =  addH_out_ga(x1, x2)
U6_ga(x1, x2, x3)  =  U6_ga(x1, x3)
U45_gagag(x1, x2, x3, x4, x5, x6)  =  U45_gagag(x1, x2, x3, x5, x6)
pN15_in_ggagg(x1, x2, x3, x4, x5)  =  pN15_in_ggagg(x1, x2, x4, x5)
U46_ggagg(x1, x2, x3, x4, x5, x6)  =  U46_ggagg(x1, x2, x4, x5, x6)
U47_ggagg(x1, x2, x3, x4, x5, x6)  =  U47_ggagg(x1, x2, x4, x5, x6)
pN16_in_gagg(x1, x2, x3, x4)  =  pN16_in_gagg(x1, x3, x4)
U48_gagg(x1, x2, x3, x4, x5)  =  U48_gagg(x1, x3, x4, x5)
U49_gagg(x1, x2, x3, x4, x5)  =  U49_gagg(x1, x2, x3, x4, x5)
pN17_in_gggg(x1, x2, x3, x4)  =  pN17_in_gggg(x1, x2, x3, x4)
U50_gggg(x1, x2, x3, x4, x5)  =  U50_gggg(x1, x2, x3, x4, x5)
U51_gggg(x1, x2, x3, x4, x5)  =  U51_gggg(x1, x2, x3, x4, x5)
noattackW_in_gg(x1, x2)  =  noattackW_in_gg(x1, x2)
noattackW_out_gg(x1, x2)  =  noattackW_out_gg(x1, x2)
U18_gg(x1, x2, x3, x4)  =  U18_gg(x1, x2, x3, x4)
pX_in_ggaag(x1, x2, x3, x4, x5)  =  pX_in_ggaag(x1, x2, x5)
U52_ggaag(x1, x2, x3, x4, x5, x6)  =  U52_ggaag(x1, x2, x5, x6)
U53_ggaag(x1, x2, x3, x4, x5, x6)  =  U53_ggaag(x1, x2, x5, x6)
pN18_in_gagag(x1, x2, x3, x4, x5)  =  pN18_in_gagag(x1, x3, x5)
U54_gagag(x1, x2, x3, x4, x5, x6)  =  U54_gagag(x1, x3, x5, x6)
addI_in_ga(x1, x2)  =  addI_in_ga(x1)
addI_out_ga(x1, x2)  =  addI_out_ga(x1, x2)
U7_ga(x1, x2, x3)  =  U7_ga(x1, x3)
U55_gagag(x1, x2, x3, x4, x5, x6)  =  U55_gagag(x1, x2, x3, x5, x6)
pN19_in_ggagg(x1, x2, x3, x4, x5)  =  pN19_in_ggagg(x1, x2, x4, x5)
U56_ggagg(x1, x2, x3, x4, x5, x6)  =  U56_ggagg(x1, x2, x4, x5, x6)
U57_ggagg(x1, x2, x3, x4, x5, x6)  =  U57_ggagg(x1, x2, x4, x5, x6)
pN20_in_gagg(x1, x2, x3, x4)  =  pN20_in_gagg(x1, x3, x4)
U58_gagg(x1, x2, x3, x4, x5)  =  U58_gagg(x1, x3, x4, x5)
U59_gagg(x1, x2, x3, x4, x5)  =  U59_gagg(x1, x2, x3, x4, x5)
pN21_in_gggg(x1, x2, x3, x4)  =  pN21_in_gggg(x1, x2, x3, x4)
U60_gggg(x1, x2, x3, x4, x5)  =  U60_gggg(x1, x2, x3, x4, x5)
U61_gggg(x1, x2, x3, x4, x5)  =  U61_gggg(x1, x2, x3, x4, x5)
noattackY_in_gg(x1, x2)  =  noattackY_in_gg(x1, x2)
noattackY_out_gg(x1, x2)  =  noattackY_out_gg(x1, x2)
U19_gg(x1, x2, x3, x4)  =  U19_gg(x1, x2, x3, x4)
pZ_in_ggaag(x1, x2, x3, x4, x5)  =  pZ_in_ggaag(x1, x2, x5)
U62_ggaag(x1, x2, x3, x4, x5, x6)  =  U62_ggaag(x1, x2, x5, x6)
U63_ggaag(x1, x2, x3, x4, x5, x6)  =  U63_ggaag(x1, x2, x5, x6)
pN22_in_gagag(x1, x2, x3, x4, x5)  =  pN22_in_gagag(x1, x3, x5)
U64_gagag(x1, x2, x3, x4, x5, x6)  =  U64_gagag(x1, x3, x5, x6)
addJ_in_ga(x1, x2)  =  addJ_in_ga(x1)
addJ_out_ga(x1, x2)  =  addJ_out_ga(x1, x2)
U8_ga(x1, x2, x3)  =  U8_ga(x1, x3)
U65_gagag(x1, x2, x3, x4, x5, x6)  =  U65_gagag(x1, x2, x3, x5, x6)
pN23_in_ggagg(x1, x2, x3, x4, x5)  =  pN23_in_ggagg(x1, x2, x4, x5)
U66_ggagg(x1, x2, x3, x4, x5, x6)  =  U66_ggagg(x1, x2, x4, x5, x6)
U67_ggagg(x1, x2, x3, x4, x5, x6)  =  U67_ggagg(x1, x2, x4, x5, x6)
pN24_in_gagg(x1, x2, x3, x4)  =  pN24_in_gagg(x1, x3, x4)
U68_gagg(x1, x2, x3, x4, x5)  =  U68_gagg(x1, x3, x4, x5)
U69_gagg(x1, x2, x3, x4, x5)  =  U69_gagg(x1, x2, x3, x4, x5)
pN25_in_gggg(x1, x2, x3, x4)  =  pN25_in_gggg(x1, x2, x3, x4)
U70_gggg(x1, x2, x3, x4, x5)  =  U70_gggg(x1, x2, x3, x4, x5)
U71_gggg(x1, x2, x3, x4, x5)  =  U71_gggg(x1, x2, x3, x4, x5)
noattackN1_in_gg(x1, x2)  =  noattackN1_in_gg(x1, x2)
noattackN1_out_gg(x1, x2)  =  noattackN1_out_gg(x1, x2)
U20_gg(x1, x2, x3, x4)  =  U20_gg(x1, x2, x3, x4)
pN2_in_ggaag(x1, x2, x3, x4, x5)  =  pN2_in_ggaag(x1, x2, x5)
U72_ggaag(x1, x2, x3, x4, x5, x6)  =  U72_ggaag(x1, x2, x5, x6)
U73_ggaag(x1, x2, x3, x4, x5, x6)  =  U73_ggaag(x1, x2, x5, x6)
pN26_in_gagag(x1, x2, x3, x4, x5)  =  pN26_in_gagag(x1, x3, x5)
U74_gagag(x1, x2, x3, x4, x5, x6)  =  U74_gagag(x1, x3, x5, x6)
addK_in_ga(x1, x2)  =  addK_in_ga(x1)
addK_out_ga(x1, x2)  =  addK_out_ga(x1, x2)
U9_ga(x1, x2, x3)  =  U9_ga(x1, x3)
U75_gagag(x1, x2, x3, x4, x5, x6)  =  U75_gagag(x1, x2, x3, x5, x6)
pN27_in_ggagg(x1, x2, x3, x4, x5)  =  pN27_in_ggagg(x1, x2, x4, x5)
U76_ggagg(x1, x2, x3, x4, x5, x6)  =  U76_ggagg(x1, x2, x4, x5, x6)
U77_ggagg(x1, x2, x3, x4, x5, x6)  =  U77_ggagg(x1, x2, x4, x5, x6)
pN28_in_gagg(x1, x2, x3, x4)  =  pN28_in_gagg(x1, x3, x4)
U78_gagg(x1, x2, x3, x4, x5)  =  U78_gagg(x1, x3, x4, x5)
U79_gagg(x1, x2, x3, x4, x5)  =  U79_gagg(x1, x2, x3, x4, x5)
pN29_in_gggg(x1, x2, x3, x4)  =  pN29_in_gggg(x1, x2, x3, x4)
U80_gggg(x1, x2, x3, x4, x5)  =  U80_gggg(x1, x2, x3, x4, x5)
U81_gggg(x1, x2, x3, x4, x5)  =  U81_gggg(x1, x2, x3, x4, x5)
noattackN3_in_gg(x1, x2)  =  noattackN3_in_gg(x1, x2)
noattackN3_out_gg(x1, x2)  =  noattackN3_out_gg(x1, x2)
U21_gg(x1, x2, x3, x4)  =  U21_gg(x1, x2, x3, x4)
pN4_in_ggaag(x1, x2, x3, x4, x5)  =  pN4_in_ggaag(x1, x2, x5)
U82_ggaag(x1, x2, x3, x4, x5, x6)  =  U82_ggaag(x1, x2, x5, x6)
U83_ggaag(x1, x2, x3, x4, x5, x6)  =  U83_ggaag(x1, x2, x5, x6)
pN30_in_gagag(x1, x2, x3, x4, x5)  =  pN30_in_gagag(x1, x3, x5)
U84_gagag(x1, x2, x3, x4, x5, x6)  =  U84_gagag(x1, x3, x5, x6)
addL_in_ga(x1, x2)  =  addL_in_ga(x1)
addL_out_ga(x1, x2)  =  addL_out_ga(x1, x2)
U10_ga(x1, x2, x3)  =  U10_ga(x1, x3)
U85_gagag(x1, x2, x3, x4, x5, x6)  =  U85_gagag(x1, x2, x3, x5, x6)
pN31_in_ggagg(x1, x2, x3, x4, x5)  =  pN31_in_ggagg(x1, x2, x4, x5)
U86_ggagg(x1, x2, x3, x4, x5, x6)  =  U86_ggagg(x1, x2, x4, x5, x6)
U87_ggagg(x1, x2, x3, x4, x5, x6)  =  U87_ggagg(x1, x2, x4, x5, x6)
pN32_in_gagg(x1, x2, x3, x4)  =  pN32_in_gagg(x1, x3, x4)
U88_gagg(x1, x2, x3, x4, x5)  =  U88_gagg(x1, x3, x4, x5)
U89_gagg(x1, x2, x3, x4, x5)  =  U89_gagg(x1, x2, x3, x4, x5)
pN33_in_gggg(x1, x2, x3, x4)  =  pN33_in_gggg(x1, x2, x3, x4)
U90_gggg(x1, x2, x3, x4, x5)  =  U90_gggg(x1, x2, x3, x4, x5)
U91_gggg(x1, x2, x3, x4, x5)  =  U91_gggg(x1, x2, x3, x4, x5)
noattackN5_in_gg(x1, x2)  =  noattackN5_in_gg(x1, x2)
noattackN5_out_gg(x1, x2)  =  noattackN5_out_gg(x1, x2)
U22_gg(x1, x2, x3, x4)  =  U22_gg(x1, x2, x3, x4)
pN6_in_ggaagg(x1, x2, x3, x4, x5, x6)  =  pN6_in_ggaagg(x1, x2, x5, x6)
U92_ggaagg(x1, x2, x3, x4, x5, x6, x7)  =  U92_ggaagg(x1, x2, x5, x6, x7)
U93_ggaagg(x1, x2, x3, x4, x5, x6, x7)  =  U93_ggaagg(x1, x2, x5, x6, x7)
pN34_in_gagagg(x1, x2, x3, x4, x5, x6)  =  pN34_in_gagagg(x1, x3, x5, x6)
U94_gagagg(x1, x2, x3, x4, x5, x6, x7)  =  U94_gagagg(x1, x3, x5, x6, x7)
addM_in_ga(x1, x2)  =  addM_in_ga(x1)
addM_out_ga(x1, x2)  =  addM_out_ga(x1, x2)
U11_ga(x1, x2, x3)  =  U11_ga(x1, x3)
U95_gagagg(x1, x2, x3, x4, x5, x6, x7)  =  U95_gagagg(x1, x2, x3, x5, x6, x7)
pN35_in_ggaggg(x1, x2, x3, x4, x5, x6)  =  pN35_in_ggaggg(x1, x2, x4, x5, x6)
U96_ggaggg(x1, x2, x3, x4, x5, x6, x7)  =  U96_ggaggg(x1, x2, x4, x5, x6, x7)
U97_ggaggg(x1, x2, x3, x4, x5, x6, x7)  =  U97_ggaggg(x1, x2, x4, x5, x6, x7)
pN36_in_gaggg(x1, x2, x3, x4, x5)  =  pN36_in_gaggg(x1, x3, x4, x5)
U98_gaggg(x1, x2, x3, x4, x5, x6)  =  U98_gaggg(x1, x3, x4, x5, x6)
U99_gaggg(x1, x2, x3, x4, x5, x6)  =  U99_gaggg(x1, x2, x3, x4, x5, x6)
pN37_in_ggggg(x1, x2, x3, x4, x5)  =  pN37_in_ggggg(x1, x2, x3, x4, x5)
U100_ggggg(x1, x2, x3, x4, x5, x6)  =  U100_ggggg(x1, x2, x3, x4, x5, x6)
U101_ggggg(x1, x2, x3, x4, x5, x6)  =  U101_ggggg(x1, x2, x3, x4, x5, x6)
noattackN7_in_ggg(x1, x2, x3)  =  noattackN7_in_ggg(x1, x2, x3)
noattackN7_out_ggg(x1, x2, x3)  =  noattackN7_out_ggg(x1, x2, x3)
U23_ggg(x1, x2, x3, x4, x5)  =  U23_ggg(x1, x2, x3, x4, x5)
pN8_in_gggaag(x1, x2, x3, x4, x5, x6)  =  pN8_in_gggaag(x1, x2, x3, x6)
U102_gggaag(x1, x2, x3, x4, x5, x6, x7)  =  U102_gggaag(x1, x2, x3, x6, x7)
U103_gggaag(x1, x2, x3, x4, x5, x6, x7)  =  U103_gggaag(x1, x2, x3, x6, x7)
pN38_in_ggagag(x1, x2, x3, x4, x5, x6)  =  pN38_in_ggagag(x1, x2, x4, x6)
U104_ggagag(x1, x2, x3, x4, x5, x6, x7)  =  U104_ggagag(x1, x2, x4, x6, x7)
addN_in_gga(x1, x2, x3)  =  addN_in_gga(x1, x2)
addN_out_gga(x1, x2, x3)  =  addN_out_gga(x1, x2, x3)
U12_gga(x1, x2, x3, x4)  =  U12_gga(x1, x2, x4)
U105_ggagag(x1, x2, x3, x4, x5, x6, x7)  =  U105_ggagag(x1, x2, x3, x4, x6, x7)
pN39_in_gggagg(x1, x2, x3, x4, x5, x6)  =  pN39_in_gggagg(x1, x2, x3, x5, x6)
U106_gggagg(x1, x2, x3, x4, x5, x6, x7)  =  U106_gggagg(x1, x2, x3, x5, x6, x7)
U107_gggagg(x1, x2, x3, x4, x5, x6, x7)  =  U107_gggagg(x1, x2, x3, x5, x6, x7)
pN40_in_ggagg(x1, x2, x3, x4, x5)  =  pN40_in_ggagg(x1, x2, x4, x5)
U108_ggagg(x1, x2, x3, x4, x5, x6)  =  U108_ggagg(x1, x2, x4, x5, x6)
U109_ggagg(x1, x2, x3, x4, x5, x6)  =  U109_ggagg(x1, x2, x3, x4, x5, x6)
pN37_out_ggggg(x1, x2, x3, x4, x5)  =  pN37_out_ggggg(x1, x2, x3, x4, x5)
pN40_out_ggagg(x1, x2, x3, x4, x5)  =  pN40_out_ggagg(x1, x2, x3, x4, x5)
pN39_out_gggagg(x1, x2, x3, x4, x5, x6)  =  pN39_out_gggagg(x1, x2, x3, x4, x5, x6)
pN38_out_ggagag(x1, x2, x3, x4, x5, x6)  =  pN38_out_ggagag(x1, x2, x3, x4, x5, x6)
pN8_out_gggaag(x1, x2, x3, x4, x5, x6)  =  pN8_out_gggaag(x1, x2, x3, x4, x5, x6)
pN36_out_gaggg(x1, x2, x3, x4, x5)  =  pN36_out_gaggg(x1, x2, x3, x4, x5)
pN35_out_ggaggg(x1, x2, x3, x4, x5, x6)  =  pN35_out_ggaggg(x1, x2, x3, x4, x5, x6)
pN34_out_gagagg(x1, x2, x3, x4, x5, x6)  =  pN34_out_gagagg(x1, x2, x3, x4, x5, x6)
pN6_out_ggaagg(x1, x2, x3, x4, x5, x6)  =  pN6_out_ggaagg(x1, x2, x3, x4, x5, x6)
pN33_out_gggg(x1, x2, x3, x4)  =  pN33_out_gggg(x1, x2, x3, x4)
pN32_out_gagg(x1, x2, x3, x4)  =  pN32_out_gagg(x1, x2, x3, x4)
pN31_out_ggagg(x1, x2, x3, x4, x5)  =  pN31_out_ggagg(x1, x2, x3, x4, x5)
pN30_out_gagag(x1, x2, x3, x4, x5)  =  pN30_out_gagag(x1, x2, x3, x4, x5)
pN4_out_ggaag(x1, x2, x3, x4, x5)  =  pN4_out_ggaag(x1, x2, x3, x4, x5)
pN29_out_gggg(x1, x2, x3, x4)  =  pN29_out_gggg(x1, x2, x3, x4)
pN28_out_gagg(x1, x2, x3, x4)  =  pN28_out_gagg(x1, x2, x3, x4)
pN27_out_ggagg(x1, x2, x3, x4, x5)  =  pN27_out_ggagg(x1, x2, x3, x4, x5)
pN26_out_gagag(x1, x2, x3, x4, x5)  =  pN26_out_gagag(x1, x2, x3, x4, x5)
pN2_out_ggaag(x1, x2, x3, x4, x5)  =  pN2_out_ggaag(x1, x2, x3, x4, x5)
pN25_out_gggg(x1, x2, x3, x4)  =  pN25_out_gggg(x1, x2, x3, x4)
pN24_out_gagg(x1, x2, x3, x4)  =  pN24_out_gagg(x1, x2, x3, x4)
pN23_out_ggagg(x1, x2, x3, x4, x5)  =  pN23_out_ggagg(x1, x2, x3, x4, x5)
pN22_out_gagag(x1, x2, x3, x4, x5)  =  pN22_out_gagag(x1, x2, x3, x4, x5)
pZ_out_ggaag(x1, x2, x3, x4, x5)  =  pZ_out_ggaag(x1, x2, x3, x4, x5)
pN21_out_gggg(x1, x2, x3, x4)  =  pN21_out_gggg(x1, x2, x3, x4)
pN20_out_gagg(x1, x2, x3, x4)  =  pN20_out_gagg(x1, x2, x3, x4)
pN19_out_ggagg(x1, x2, x3, x4, x5)  =  pN19_out_ggagg(x1, x2, x3, x4, x5)
pN18_out_gagag(x1, x2, x3, x4, x5)  =  pN18_out_gagag(x1, x2, x3, x4, x5)
pX_out_ggaag(x1, x2, x3, x4, x5)  =  pX_out_ggaag(x1, x2, x3, x4, x5)
pN17_out_gggg(x1, x2, x3, x4)  =  pN17_out_gggg(x1, x2, x3, x4)
pN16_out_gagg(x1, x2, x3, x4)  =  pN16_out_gagg(x1, x2, x3, x4)
pN15_out_ggagg(x1, x2, x3, x4, x5)  =  pN15_out_ggagg(x1, x2, x3, x4, x5)
pN14_out_gagag(x1, x2, x3, x4, x5)  =  pN14_out_gagag(x1, x2, x3, x4, x5)
pV_out_ggaag(x1, x2, x3, x4, x5)  =  pV_out_ggaag(x1, x2, x3, x4, x5)
pN13_out_gggg(x1, x2, x3, x4)  =  pN13_out_gggg(x1, x2, x3, x4)
pN12_out_gagg(x1, x2, x3, x4)  =  pN12_out_gagg(x1, x2, x3, x4)
pN11_out_ggagg(x1, x2, x3, x4, x5)  =  pN11_out_ggagg(x1, x2, x3, x4, x5)
pN10_out_gagag(x1, x2, x3, x4, x5)  =  pN10_out_gagag(x1, x2, x3, x4, x5)
pS_out_ggaag(x1, x2, x3, x4, x5)  =  pS_out_ggaag(x1, x2, x3, x4, x5)
U31_gg(x1, x2, x3)  =  U31_gg(x1, x2, x3)
safeT_in_g(x1)  =  safeT_in_g(x1)
safeT_out_g(x1)  =  safeT_out_g(x1)
U16_g(x1, x2, x3)  =  U16_g(x1, x2, x3)
pQ_out_gg(x1, x2)  =  pQ_out_gg(x1, x2)
safeP_out_gg(x1, x2)  =  safeP_out_gg(x1, x2)
pN9_out_gag(x1, x2, x3)  =  pN9_out_gag(x1, x2, x3)
pB_out_agaa(x1, x2, x3, x4)  =  pB_out_agaa(x1, x2, x3, x4)
queensA_out_a(x1)  =  queensA_out_a(x1)
ADDI_IN_GA(x1, x2)  =  ADDI_IN_GA(x1)

We have to consider all (P,R,Pi)-chains

(43) UsableRulesProof (EQUIVALENT transformation)

For (infinitary) constructor rewriting [LOPSTR] we can delete all non-usable rules from R.

(44) Obligation:

Pi DP problem:
The TRS P consists of the following rules:

ADDI_IN_GA(s(T219), s(X337)) → ADDI_IN_GA(T219, X337)

R is empty.
The argument filtering Pi contains the following mapping:
s(x1)  =  s(x1)
ADDI_IN_GA(x1, x2)  =  ADDI_IN_GA(x1)

We have to consider all (P,R,Pi)-chains

(45) PiDPToQDPProof (SOUND transformation)

Transforming (infinitary) constructor rewriting Pi-DP problem [LOPSTR] into ordinary QDP problem [LPAR04] by application of Pi.

(46) Obligation:

Q DP problem:
The TRS P consists of the following rules:

ADDI_IN_GA(s(T219)) → ADDI_IN_GA(T219)

R is empty.
Q is empty.
We have to consider all (P,Q,R)-chains.

(47) QDPSizeChangeProof (EQUIVALENT transformation)

By using the subterm criterion [SUBTERM_CRITERION] together with the size-change analysis [AAECC05] we have proven that there are no infinite chains for this DP problem.

From the DPs we obtained the following set of size-change graphs:

  • ADDI_IN_GA(s(T219)) → ADDI_IN_GA(T219)
    The graph contains the following edges 1 > 1

(48) YES

(49) Obligation:

Pi DP problem:
The TRS P consists of the following rules:

ADDH_IN_GA(s(T186), s(X268)) → ADDH_IN_GA(T186, X268)

The TRS R consists of the following rules:

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))

The argument filtering Pi contains the following mapping:
queensA_in_a(x1)  =  queensA_in_a
U1_a(x1, x2, x3)  =  U1_a(x3)
pB_in_agaa(x1, x2, x3, x4)  =  pB_in_agaa(x2)
U24_agaa(x1, x2, x3, x4, x5)  =  U24_agaa(x2, x5)
deleteO_in_aga(x1, x2, x3)  =  deleteO_in_aga(x2)
deleteO_out_aga(x1, x2, x3)  =  deleteO_out_aga(x1, x2, x3)
U13_aga(x1, x2, x3, x4)  =  U13_aga(x2, x4)
deleteC_in_aga(x1, x2, x3)  =  deleteC_in_aga(x2)
.(x1, x2)  =  .(x1, x2)
deleteC_out_aga(x1, x2, x3)  =  deleteC_out_aga(x1, x2, x3)
U2_aga(x1, x2, x3, x4, x5)  =  U2_aga(x2, x3, x5)
U25_agaa(x1, x2, x3, x4, x5)  =  U25_agaa(x1, x2, x3, x5)
pN9_in_gag(x1, x2, x3)  =  pN9_in_gag(x1, x3)
U26_gag(x1, x2, x3, x4)  =  U26_gag(x1, x3, x4)
permD_in_ga(x1, x2)  =  permD_in_ga(x1)
[]  =  []
permD_out_ga(x1, x2)  =  permD_out_ga(x1, x2)
U3_ga(x1, x2, x3, x4, x5)  =  U3_ga(x1, x2, x5)
pE_in_aggaa(x1, x2, x3, x4, x5)  =  pE_in_aggaa(x2, x3)
U28_aggaa(x1, x2, x3, x4, x5, x6)  =  U28_aggaa(x2, x3, x6)
U29_aggaa(x1, x2, x3, x4, x5, x6)  =  U29_aggaa(x1, x2, x3, x4, x6)
pE_out_aggaa(x1, x2, x3, x4, x5)  =  pE_out_aggaa(x1, x2, x3, x4, x5)
U27_gag(x1, x2, x3, x4)  =  U27_gag(x1, x2, x3, x4)
safeP_in_gg(x1, x2)  =  safeP_in_gg(x1, x2)
U14_gg(x1, x2, x3)  =  U14_gg(x1, x2, x3)
pQ_in_gg(x1, x2)  =  pQ_in_gg(x1, x2)
U30_gg(x1, x2, x3)  =  U30_gg(x1, x2, x3)
noattackR_in_gg(x1, x2)  =  noattackR_in_gg(x1, x2)
noattackR_out_gg(x1, x2)  =  noattackR_out_gg(x1, x2)
U15_gg(x1, x2, x3, x4)  =  U15_gg(x1, x2, x3, x4)
pS_in_ggaag(x1, x2, x3, x4, x5)  =  pS_in_ggaag(x1, x2, x5)
U32_ggaag(x1, x2, x3, x4, x5, x6)  =  U32_ggaag(x1, x2, x5, x6)
notEqF_in_gg(x1, x2)  =  notEqF_in_gg(x1, x2)
0  =  0
s(x1)  =  s(x1)
notEqF_out_gg(x1, x2)  =  notEqF_out_gg(x1, x2)
U4_gg(x1, x2, x3)  =  U4_gg(x1, x2, x3)
U33_ggaag(x1, x2, x3, x4, x5, x6)  =  U33_ggaag(x1, x2, x5, x6)
pN10_in_gagag(x1, x2, x3, x4, x5)  =  pN10_in_gagag(x1, x3, x5)
U34_gagag(x1, x2, x3, x4, x5, x6)  =  U34_gagag(x1, x3, x5, x6)
addG_in_ga(x1, x2)  =  addG_in_ga(x1)
addG_out_ga(x1, x2)  =  addG_out_ga(x1, x2)
U5_ga(x1, x2, x3)  =  U5_ga(x1, x3)
U35_gagag(x1, x2, x3, x4, x5, x6)  =  U35_gagag(x1, x2, x3, x5, x6)
pN11_in_ggagg(x1, x2, x3, x4, x5)  =  pN11_in_ggagg(x1, x2, x4, x5)
U36_ggagg(x1, x2, x3, x4, x5, x6)  =  U36_ggagg(x1, x2, x4, x5, x6)
U37_ggagg(x1, x2, x3, x4, x5, x6)  =  U37_ggagg(x1, x2, x4, x5, x6)
pN12_in_gagg(x1, x2, x3, x4)  =  pN12_in_gagg(x1, x3, x4)
U38_gagg(x1, x2, x3, x4, x5)  =  U38_gagg(x1, x3, x4, x5)
U39_gagg(x1, x2, x3, x4, x5)  =  U39_gagg(x1, x2, x3, x4, x5)
pN13_in_gggg(x1, x2, x3, x4)  =  pN13_in_gggg(x1, x2, x3, x4)
U40_gggg(x1, x2, x3, x4, x5)  =  U40_gggg(x1, x2, x3, x4, x5)
U41_gggg(x1, x2, x3, x4, x5)  =  U41_gggg(x1, x2, x3, x4, x5)
noattackU_in_gg(x1, x2)  =  noattackU_in_gg(x1, x2)
noattackU_out_gg(x1, x2)  =  noattackU_out_gg(x1, x2)
U17_gg(x1, x2, x3, x4)  =  U17_gg(x1, x2, x3, x4)
pV_in_ggaag(x1, x2, x3, x4, x5)  =  pV_in_ggaag(x1, x2, x5)
U42_ggaag(x1, x2, x3, x4, x5, x6)  =  U42_ggaag(x1, x2, x5, x6)
U43_ggaag(x1, x2, x3, x4, x5, x6)  =  U43_ggaag(x1, x2, x5, x6)
pN14_in_gagag(x1, x2, x3, x4, x5)  =  pN14_in_gagag(x1, x3, x5)
U44_gagag(x1, x2, x3, x4, x5, x6)  =  U44_gagag(x1, x3, x5, x6)
addH_in_ga(x1, x2)  =  addH_in_ga(x1)
addH_out_ga(x1, x2)  =  addH_out_ga(x1, x2)
U6_ga(x1, x2, x3)  =  U6_ga(x1, x3)
U45_gagag(x1, x2, x3, x4, x5, x6)  =  U45_gagag(x1, x2, x3, x5, x6)
pN15_in_ggagg(x1, x2, x3, x4, x5)  =  pN15_in_ggagg(x1, x2, x4, x5)
U46_ggagg(x1, x2, x3, x4, x5, x6)  =  U46_ggagg(x1, x2, x4, x5, x6)
U47_ggagg(x1, x2, x3, x4, x5, x6)  =  U47_ggagg(x1, x2, x4, x5, x6)
pN16_in_gagg(x1, x2, x3, x4)  =  pN16_in_gagg(x1, x3, x4)
U48_gagg(x1, x2, x3, x4, x5)  =  U48_gagg(x1, x3, x4, x5)
U49_gagg(x1, x2, x3, x4, x5)  =  U49_gagg(x1, x2, x3, x4, x5)
pN17_in_gggg(x1, x2, x3, x4)  =  pN17_in_gggg(x1, x2, x3, x4)
U50_gggg(x1, x2, x3, x4, x5)  =  U50_gggg(x1, x2, x3, x4, x5)
U51_gggg(x1, x2, x3, x4, x5)  =  U51_gggg(x1, x2, x3, x4, x5)
noattackW_in_gg(x1, x2)  =  noattackW_in_gg(x1, x2)
noattackW_out_gg(x1, x2)  =  noattackW_out_gg(x1, x2)
U18_gg(x1, x2, x3, x4)  =  U18_gg(x1, x2, x3, x4)
pX_in_ggaag(x1, x2, x3, x4, x5)  =  pX_in_ggaag(x1, x2, x5)
U52_ggaag(x1, x2, x3, x4, x5, x6)  =  U52_ggaag(x1, x2, x5, x6)
U53_ggaag(x1, x2, x3, x4, x5, x6)  =  U53_ggaag(x1, x2, x5, x6)
pN18_in_gagag(x1, x2, x3, x4, x5)  =  pN18_in_gagag(x1, x3, x5)
U54_gagag(x1, x2, x3, x4, x5, x6)  =  U54_gagag(x1, x3, x5, x6)
addI_in_ga(x1, x2)  =  addI_in_ga(x1)
addI_out_ga(x1, x2)  =  addI_out_ga(x1, x2)
U7_ga(x1, x2, x3)  =  U7_ga(x1, x3)
U55_gagag(x1, x2, x3, x4, x5, x6)  =  U55_gagag(x1, x2, x3, x5, x6)
pN19_in_ggagg(x1, x2, x3, x4, x5)  =  pN19_in_ggagg(x1, x2, x4, x5)
U56_ggagg(x1, x2, x3, x4, x5, x6)  =  U56_ggagg(x1, x2, x4, x5, x6)
U57_ggagg(x1, x2, x3, x4, x5, x6)  =  U57_ggagg(x1, x2, x4, x5, x6)
pN20_in_gagg(x1, x2, x3, x4)  =  pN20_in_gagg(x1, x3, x4)
U58_gagg(x1, x2, x3, x4, x5)  =  U58_gagg(x1, x3, x4, x5)
U59_gagg(x1, x2, x3, x4, x5)  =  U59_gagg(x1, x2, x3, x4, x5)
pN21_in_gggg(x1, x2, x3, x4)  =  pN21_in_gggg(x1, x2, x3, x4)
U60_gggg(x1, x2, x3, x4, x5)  =  U60_gggg(x1, x2, x3, x4, x5)
U61_gggg(x1, x2, x3, x4, x5)  =  U61_gggg(x1, x2, x3, x4, x5)
noattackY_in_gg(x1, x2)  =  noattackY_in_gg(x1, x2)
noattackY_out_gg(x1, x2)  =  noattackY_out_gg(x1, x2)
U19_gg(x1, x2, x3, x4)  =  U19_gg(x1, x2, x3, x4)
pZ_in_ggaag(x1, x2, x3, x4, x5)  =  pZ_in_ggaag(x1, x2, x5)
U62_ggaag(x1, x2, x3, x4, x5, x6)  =  U62_ggaag(x1, x2, x5, x6)
U63_ggaag(x1, x2, x3, x4, x5, x6)  =  U63_ggaag(x1, x2, x5, x6)
pN22_in_gagag(x1, x2, x3, x4, x5)  =  pN22_in_gagag(x1, x3, x5)
U64_gagag(x1, x2, x3, x4, x5, x6)  =  U64_gagag(x1, x3, x5, x6)
addJ_in_ga(x1, x2)  =  addJ_in_ga(x1)
addJ_out_ga(x1, x2)  =  addJ_out_ga(x1, x2)
U8_ga(x1, x2, x3)  =  U8_ga(x1, x3)
U65_gagag(x1, x2, x3, x4, x5, x6)  =  U65_gagag(x1, x2, x3, x5, x6)
pN23_in_ggagg(x1, x2, x3, x4, x5)  =  pN23_in_ggagg(x1, x2, x4, x5)
U66_ggagg(x1, x2, x3, x4, x5, x6)  =  U66_ggagg(x1, x2, x4, x5, x6)
U67_ggagg(x1, x2, x3, x4, x5, x6)  =  U67_ggagg(x1, x2, x4, x5, x6)
pN24_in_gagg(x1, x2, x3, x4)  =  pN24_in_gagg(x1, x3, x4)
U68_gagg(x1, x2, x3, x4, x5)  =  U68_gagg(x1, x3, x4, x5)
U69_gagg(x1, x2, x3, x4, x5)  =  U69_gagg(x1, x2, x3, x4, x5)
pN25_in_gggg(x1, x2, x3, x4)  =  pN25_in_gggg(x1, x2, x3, x4)
U70_gggg(x1, x2, x3, x4, x5)  =  U70_gggg(x1, x2, x3, x4, x5)
U71_gggg(x1, x2, x3, x4, x5)  =  U71_gggg(x1, x2, x3, x4, x5)
noattackN1_in_gg(x1, x2)  =  noattackN1_in_gg(x1, x2)
noattackN1_out_gg(x1, x2)  =  noattackN1_out_gg(x1, x2)
U20_gg(x1, x2, x3, x4)  =  U20_gg(x1, x2, x3, x4)
pN2_in_ggaag(x1, x2, x3, x4, x5)  =  pN2_in_ggaag(x1, x2, x5)
U72_ggaag(x1, x2, x3, x4, x5, x6)  =  U72_ggaag(x1, x2, x5, x6)
U73_ggaag(x1, x2, x3, x4, x5, x6)  =  U73_ggaag(x1, x2, x5, x6)
pN26_in_gagag(x1, x2, x3, x4, x5)  =  pN26_in_gagag(x1, x3, x5)
U74_gagag(x1, x2, x3, x4, x5, x6)  =  U74_gagag(x1, x3, x5, x6)
addK_in_ga(x1, x2)  =  addK_in_ga(x1)
addK_out_ga(x1, x2)  =  addK_out_ga(x1, x2)
U9_ga(x1, x2, x3)  =  U9_ga(x1, x3)
U75_gagag(x1, x2, x3, x4, x5, x6)  =  U75_gagag(x1, x2, x3, x5, x6)
pN27_in_ggagg(x1, x2, x3, x4, x5)  =  pN27_in_ggagg(x1, x2, x4, x5)
U76_ggagg(x1, x2, x3, x4, x5, x6)  =  U76_ggagg(x1, x2, x4, x5, x6)
U77_ggagg(x1, x2, x3, x4, x5, x6)  =  U77_ggagg(x1, x2, x4, x5, x6)
pN28_in_gagg(x1, x2, x3, x4)  =  pN28_in_gagg(x1, x3, x4)
U78_gagg(x1, x2, x3, x4, x5)  =  U78_gagg(x1, x3, x4, x5)
U79_gagg(x1, x2, x3, x4, x5)  =  U79_gagg(x1, x2, x3, x4, x5)
pN29_in_gggg(x1, x2, x3, x4)  =  pN29_in_gggg(x1, x2, x3, x4)
U80_gggg(x1, x2, x3, x4, x5)  =  U80_gggg(x1, x2, x3, x4, x5)
U81_gggg(x1, x2, x3, x4, x5)  =  U81_gggg(x1, x2, x3, x4, x5)
noattackN3_in_gg(x1, x2)  =  noattackN3_in_gg(x1, x2)
noattackN3_out_gg(x1, x2)  =  noattackN3_out_gg(x1, x2)
U21_gg(x1, x2, x3, x4)  =  U21_gg(x1, x2, x3, x4)
pN4_in_ggaag(x1, x2, x3, x4, x5)  =  pN4_in_ggaag(x1, x2, x5)
U82_ggaag(x1, x2, x3, x4, x5, x6)  =  U82_ggaag(x1, x2, x5, x6)
U83_ggaag(x1, x2, x3, x4, x5, x6)  =  U83_ggaag(x1, x2, x5, x6)
pN30_in_gagag(x1, x2, x3, x4, x5)  =  pN30_in_gagag(x1, x3, x5)
U84_gagag(x1, x2, x3, x4, x5, x6)  =  U84_gagag(x1, x3, x5, x6)
addL_in_ga(x1, x2)  =  addL_in_ga(x1)
addL_out_ga(x1, x2)  =  addL_out_ga(x1, x2)
U10_ga(x1, x2, x3)  =  U10_ga(x1, x3)
U85_gagag(x1, x2, x3, x4, x5, x6)  =  U85_gagag(x1, x2, x3, x5, x6)
pN31_in_ggagg(x1, x2, x3, x4, x5)  =  pN31_in_ggagg(x1, x2, x4, x5)
U86_ggagg(x1, x2, x3, x4, x5, x6)  =  U86_ggagg(x1, x2, x4, x5, x6)
U87_ggagg(x1, x2, x3, x4, x5, x6)  =  U87_ggagg(x1, x2, x4, x5, x6)
pN32_in_gagg(x1, x2, x3, x4)  =  pN32_in_gagg(x1, x3, x4)
U88_gagg(x1, x2, x3, x4, x5)  =  U88_gagg(x1, x3, x4, x5)
U89_gagg(x1, x2, x3, x4, x5)  =  U89_gagg(x1, x2, x3, x4, x5)
pN33_in_gggg(x1, x2, x3, x4)  =  pN33_in_gggg(x1, x2, x3, x4)
U90_gggg(x1, x2, x3, x4, x5)  =  U90_gggg(x1, x2, x3, x4, x5)
U91_gggg(x1, x2, x3, x4, x5)  =  U91_gggg(x1, x2, x3, x4, x5)
noattackN5_in_gg(x1, x2)  =  noattackN5_in_gg(x1, x2)
noattackN5_out_gg(x1, x2)  =  noattackN5_out_gg(x1, x2)
U22_gg(x1, x2, x3, x4)  =  U22_gg(x1, x2, x3, x4)
pN6_in_ggaagg(x1, x2, x3, x4, x5, x6)  =  pN6_in_ggaagg(x1, x2, x5, x6)
U92_ggaagg(x1, x2, x3, x4, x5, x6, x7)  =  U92_ggaagg(x1, x2, x5, x6, x7)
U93_ggaagg(x1, x2, x3, x4, x5, x6, x7)  =  U93_ggaagg(x1, x2, x5, x6, x7)
pN34_in_gagagg(x1, x2, x3, x4, x5, x6)  =  pN34_in_gagagg(x1, x3, x5, x6)
U94_gagagg(x1, x2, x3, x4, x5, x6, x7)  =  U94_gagagg(x1, x3, x5, x6, x7)
addM_in_ga(x1, x2)  =  addM_in_ga(x1)
addM_out_ga(x1, x2)  =  addM_out_ga(x1, x2)
U11_ga(x1, x2, x3)  =  U11_ga(x1, x3)
U95_gagagg(x1, x2, x3, x4, x5, x6, x7)  =  U95_gagagg(x1, x2, x3, x5, x6, x7)
pN35_in_ggaggg(x1, x2, x3, x4, x5, x6)  =  pN35_in_ggaggg(x1, x2, x4, x5, x6)
U96_ggaggg(x1, x2, x3, x4, x5, x6, x7)  =  U96_ggaggg(x1, x2, x4, x5, x6, x7)
U97_ggaggg(x1, x2, x3, x4, x5, x6, x7)  =  U97_ggaggg(x1, x2, x4, x5, x6, x7)
pN36_in_gaggg(x1, x2, x3, x4, x5)  =  pN36_in_gaggg(x1, x3, x4, x5)
U98_gaggg(x1, x2, x3, x4, x5, x6)  =  U98_gaggg(x1, x3, x4, x5, x6)
U99_gaggg(x1, x2, x3, x4, x5, x6)  =  U99_gaggg(x1, x2, x3, x4, x5, x6)
pN37_in_ggggg(x1, x2, x3, x4, x5)  =  pN37_in_ggggg(x1, x2, x3, x4, x5)
U100_ggggg(x1, x2, x3, x4, x5, x6)  =  U100_ggggg(x1, x2, x3, x4, x5, x6)
U101_ggggg(x1, x2, x3, x4, x5, x6)  =  U101_ggggg(x1, x2, x3, x4, x5, x6)
noattackN7_in_ggg(x1, x2, x3)  =  noattackN7_in_ggg(x1, x2, x3)
noattackN7_out_ggg(x1, x2, x3)  =  noattackN7_out_ggg(x1, x2, x3)
U23_ggg(x1, x2, x3, x4, x5)  =  U23_ggg(x1, x2, x3, x4, x5)
pN8_in_gggaag(x1, x2, x3, x4, x5, x6)  =  pN8_in_gggaag(x1, x2, x3, x6)
U102_gggaag(x1, x2, x3, x4, x5, x6, x7)  =  U102_gggaag(x1, x2, x3, x6, x7)
U103_gggaag(x1, x2, x3, x4, x5, x6, x7)  =  U103_gggaag(x1, x2, x3, x6, x7)
pN38_in_ggagag(x1, x2, x3, x4, x5, x6)  =  pN38_in_ggagag(x1, x2, x4, x6)
U104_ggagag(x1, x2, x3, x4, x5, x6, x7)  =  U104_ggagag(x1, x2, x4, x6, x7)
addN_in_gga(x1, x2, x3)  =  addN_in_gga(x1, x2)
addN_out_gga(x1, x2, x3)  =  addN_out_gga(x1, x2, x3)
U12_gga(x1, x2, x3, x4)  =  U12_gga(x1, x2, x4)
U105_ggagag(x1, x2, x3, x4, x5, x6, x7)  =  U105_ggagag(x1, x2, x3, x4, x6, x7)
pN39_in_gggagg(x1, x2, x3, x4, x5, x6)  =  pN39_in_gggagg(x1, x2, x3, x5, x6)
U106_gggagg(x1, x2, x3, x4, x5, x6, x7)  =  U106_gggagg(x1, x2, x3, x5, x6, x7)
U107_gggagg(x1, x2, x3, x4, x5, x6, x7)  =  U107_gggagg(x1, x2, x3, x5, x6, x7)
pN40_in_ggagg(x1, x2, x3, x4, x5)  =  pN40_in_ggagg(x1, x2, x4, x5)
U108_ggagg(x1, x2, x3, x4, x5, x6)  =  U108_ggagg(x1, x2, x4, x5, x6)
U109_ggagg(x1, x2, x3, x4, x5, x6)  =  U109_ggagg(x1, x2, x3, x4, x5, x6)
pN37_out_ggggg(x1, x2, x3, x4, x5)  =  pN37_out_ggggg(x1, x2, x3, x4, x5)
pN40_out_ggagg(x1, x2, x3, x4, x5)  =  pN40_out_ggagg(x1, x2, x3, x4, x5)
pN39_out_gggagg(x1, x2, x3, x4, x5, x6)  =  pN39_out_gggagg(x1, x2, x3, x4, x5, x6)
pN38_out_ggagag(x1, x2, x3, x4, x5, x6)  =  pN38_out_ggagag(x1, x2, x3, x4, x5, x6)
pN8_out_gggaag(x1, x2, x3, x4, x5, x6)  =  pN8_out_gggaag(x1, x2, x3, x4, x5, x6)
pN36_out_gaggg(x1, x2, x3, x4, x5)  =  pN36_out_gaggg(x1, x2, x3, x4, x5)
pN35_out_ggaggg(x1, x2, x3, x4, x5, x6)  =  pN35_out_ggaggg(x1, x2, x3, x4, x5, x6)
pN34_out_gagagg(x1, x2, x3, x4, x5, x6)  =  pN34_out_gagagg(x1, x2, x3, x4, x5, x6)
pN6_out_ggaagg(x1, x2, x3, x4, x5, x6)  =  pN6_out_ggaagg(x1, x2, x3, x4, x5, x6)
pN33_out_gggg(x1, x2, x3, x4)  =  pN33_out_gggg(x1, x2, x3, x4)
pN32_out_gagg(x1, x2, x3, x4)  =  pN32_out_gagg(x1, x2, x3, x4)
pN31_out_ggagg(x1, x2, x3, x4, x5)  =  pN31_out_ggagg(x1, x2, x3, x4, x5)
pN30_out_gagag(x1, x2, x3, x4, x5)  =  pN30_out_gagag(x1, x2, x3, x4, x5)
pN4_out_ggaag(x1, x2, x3, x4, x5)  =  pN4_out_ggaag(x1, x2, x3, x4, x5)
pN29_out_gggg(x1, x2, x3, x4)  =  pN29_out_gggg(x1, x2, x3, x4)
pN28_out_gagg(x1, x2, x3, x4)  =  pN28_out_gagg(x1, x2, x3, x4)
pN27_out_ggagg(x1, x2, x3, x4, x5)  =  pN27_out_ggagg(x1, x2, x3, x4, x5)
pN26_out_gagag(x1, x2, x3, x4, x5)  =  pN26_out_gagag(x1, x2, x3, x4, x5)
pN2_out_ggaag(x1, x2, x3, x4, x5)  =  pN2_out_ggaag(x1, x2, x3, x4, x5)
pN25_out_gggg(x1, x2, x3, x4)  =  pN25_out_gggg(x1, x2, x3, x4)
pN24_out_gagg(x1, x2, x3, x4)  =  pN24_out_gagg(x1, x2, x3, x4)
pN23_out_ggagg(x1, x2, x3, x4, x5)  =  pN23_out_ggagg(x1, x2, x3, x4, x5)
pN22_out_gagag(x1, x2, x3, x4, x5)  =  pN22_out_gagag(x1, x2, x3, x4, x5)
pZ_out_ggaag(x1, x2, x3, x4, x5)  =  pZ_out_ggaag(x1, x2, x3, x4, x5)
pN21_out_gggg(x1, x2, x3, x4)  =  pN21_out_gggg(x1, x2, x3, x4)
pN20_out_gagg(x1, x2, x3, x4)  =  pN20_out_gagg(x1, x2, x3, x4)
pN19_out_ggagg(x1, x2, x3, x4, x5)  =  pN19_out_ggagg(x1, x2, x3, x4, x5)
pN18_out_gagag(x1, x2, x3, x4, x5)  =  pN18_out_gagag(x1, x2, x3, x4, x5)
pX_out_ggaag(x1, x2, x3, x4, x5)  =  pX_out_ggaag(x1, x2, x3, x4, x5)
pN17_out_gggg(x1, x2, x3, x4)  =  pN17_out_gggg(x1, x2, x3, x4)
pN16_out_gagg(x1, x2, x3, x4)  =  pN16_out_gagg(x1, x2, x3, x4)
pN15_out_ggagg(x1, x2, x3, x4, x5)  =  pN15_out_ggagg(x1, x2, x3, x4, x5)
pN14_out_gagag(x1, x2, x3, x4, x5)  =  pN14_out_gagag(x1, x2, x3, x4, x5)
pV_out_ggaag(x1, x2, x3, x4, x5)  =  pV_out_ggaag(x1, x2, x3, x4, x5)
pN13_out_gggg(x1, x2, x3, x4)  =  pN13_out_gggg(x1, x2, x3, x4)
pN12_out_gagg(x1, x2, x3, x4)  =  pN12_out_gagg(x1, x2, x3, x4)
pN11_out_ggagg(x1, x2, x3, x4, x5)  =  pN11_out_ggagg(x1, x2, x3, x4, x5)
pN10_out_gagag(x1, x2, x3, x4, x5)  =  pN10_out_gagag(x1, x2, x3, x4, x5)
pS_out_ggaag(x1, x2, x3, x4, x5)  =  pS_out_ggaag(x1, x2, x3, x4, x5)
U31_gg(x1, x2, x3)  =  U31_gg(x1, x2, x3)
safeT_in_g(x1)  =  safeT_in_g(x1)
safeT_out_g(x1)  =  safeT_out_g(x1)
U16_g(x1, x2, x3)  =  U16_g(x1, x2, x3)
pQ_out_gg(x1, x2)  =  pQ_out_gg(x1, x2)
safeP_out_gg(x1, x2)  =  safeP_out_gg(x1, x2)
pN9_out_gag(x1, x2, x3)  =  pN9_out_gag(x1, x2, x3)
pB_out_agaa(x1, x2, x3, x4)  =  pB_out_agaa(x1, x2, x3, x4)
queensA_out_a(x1)  =  queensA_out_a(x1)
ADDH_IN_GA(x1, x2)  =  ADDH_IN_GA(x1)

We have to consider all (P,R,Pi)-chains

(50) UsableRulesProof (EQUIVALENT transformation)

For (infinitary) constructor rewriting [LOPSTR] we can delete all non-usable rules from R.

(51) Obligation:

Pi DP problem:
The TRS P consists of the following rules:

ADDH_IN_GA(s(T186), s(X268)) → ADDH_IN_GA(T186, X268)

R is empty.
The argument filtering Pi contains the following mapping:
s(x1)  =  s(x1)
ADDH_IN_GA(x1, x2)  =  ADDH_IN_GA(x1)

We have to consider all (P,R,Pi)-chains

(52) PiDPToQDPProof (SOUND transformation)

Transforming (infinitary) constructor rewriting Pi-DP problem [LOPSTR] into ordinary QDP problem [LPAR04] by application of Pi.

(53) Obligation:

Q DP problem:
The TRS P consists of the following rules:

ADDH_IN_GA(s(T186)) → ADDH_IN_GA(T186)

R is empty.
Q is empty.
We have to consider all (P,Q,R)-chains.

(54) QDPSizeChangeProof (EQUIVALENT transformation)

By using the subterm criterion [SUBTERM_CRITERION] together with the size-change analysis [AAECC05] we have proven that there are no infinite chains for this DP problem.

From the DPs we obtained the following set of size-change graphs:

  • ADDH_IN_GA(s(T186)) → ADDH_IN_GA(T186)
    The graph contains the following edges 1 > 1

(55) YES

(56) Obligation:

Pi DP problem:
The TRS P consists of the following rules:

ADDG_IN_GA(s(T153), s(X199)) → ADDG_IN_GA(T153, X199)

The TRS R consists of the following rules:

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))

The argument filtering Pi contains the following mapping:
queensA_in_a(x1)  =  queensA_in_a
U1_a(x1, x2, x3)  =  U1_a(x3)
pB_in_agaa(x1, x2, x3, x4)  =  pB_in_agaa(x2)
U24_agaa(x1, x2, x3, x4, x5)  =  U24_agaa(x2, x5)
deleteO_in_aga(x1, x2, x3)  =  deleteO_in_aga(x2)
deleteO_out_aga(x1, x2, x3)  =  deleteO_out_aga(x1, x2, x3)
U13_aga(x1, x2, x3, x4)  =  U13_aga(x2, x4)
deleteC_in_aga(x1, x2, x3)  =  deleteC_in_aga(x2)
.(x1, x2)  =  .(x1, x2)
deleteC_out_aga(x1, x2, x3)  =  deleteC_out_aga(x1, x2, x3)
U2_aga(x1, x2, x3, x4, x5)  =  U2_aga(x2, x3, x5)
U25_agaa(x1, x2, x3, x4, x5)  =  U25_agaa(x1, x2, x3, x5)
pN9_in_gag(x1, x2, x3)  =  pN9_in_gag(x1, x3)
U26_gag(x1, x2, x3, x4)  =  U26_gag(x1, x3, x4)
permD_in_ga(x1, x2)  =  permD_in_ga(x1)
[]  =  []
permD_out_ga(x1, x2)  =  permD_out_ga(x1, x2)
U3_ga(x1, x2, x3, x4, x5)  =  U3_ga(x1, x2, x5)
pE_in_aggaa(x1, x2, x3, x4, x5)  =  pE_in_aggaa(x2, x3)
U28_aggaa(x1, x2, x3, x4, x5, x6)  =  U28_aggaa(x2, x3, x6)
U29_aggaa(x1, x2, x3, x4, x5, x6)  =  U29_aggaa(x1, x2, x3, x4, x6)
pE_out_aggaa(x1, x2, x3, x4, x5)  =  pE_out_aggaa(x1, x2, x3, x4, x5)
U27_gag(x1, x2, x3, x4)  =  U27_gag(x1, x2, x3, x4)
safeP_in_gg(x1, x2)  =  safeP_in_gg(x1, x2)
U14_gg(x1, x2, x3)  =  U14_gg(x1, x2, x3)
pQ_in_gg(x1, x2)  =  pQ_in_gg(x1, x2)
U30_gg(x1, x2, x3)  =  U30_gg(x1, x2, x3)
noattackR_in_gg(x1, x2)  =  noattackR_in_gg(x1, x2)
noattackR_out_gg(x1, x2)  =  noattackR_out_gg(x1, x2)
U15_gg(x1, x2, x3, x4)  =  U15_gg(x1, x2, x3, x4)
pS_in_ggaag(x1, x2, x3, x4, x5)  =  pS_in_ggaag(x1, x2, x5)
U32_ggaag(x1, x2, x3, x4, x5, x6)  =  U32_ggaag(x1, x2, x5, x6)
notEqF_in_gg(x1, x2)  =  notEqF_in_gg(x1, x2)
0  =  0
s(x1)  =  s(x1)
notEqF_out_gg(x1, x2)  =  notEqF_out_gg(x1, x2)
U4_gg(x1, x2, x3)  =  U4_gg(x1, x2, x3)
U33_ggaag(x1, x2, x3, x4, x5, x6)  =  U33_ggaag(x1, x2, x5, x6)
pN10_in_gagag(x1, x2, x3, x4, x5)  =  pN10_in_gagag(x1, x3, x5)
U34_gagag(x1, x2, x3, x4, x5, x6)  =  U34_gagag(x1, x3, x5, x6)
addG_in_ga(x1, x2)  =  addG_in_ga(x1)
addG_out_ga(x1, x2)  =  addG_out_ga(x1, x2)
U5_ga(x1, x2, x3)  =  U5_ga(x1, x3)
U35_gagag(x1, x2, x3, x4, x5, x6)  =  U35_gagag(x1, x2, x3, x5, x6)
pN11_in_ggagg(x1, x2, x3, x4, x5)  =  pN11_in_ggagg(x1, x2, x4, x5)
U36_ggagg(x1, x2, x3, x4, x5, x6)  =  U36_ggagg(x1, x2, x4, x5, x6)
U37_ggagg(x1, x2, x3, x4, x5, x6)  =  U37_ggagg(x1, x2, x4, x5, x6)
pN12_in_gagg(x1, x2, x3, x4)  =  pN12_in_gagg(x1, x3, x4)
U38_gagg(x1, x2, x3, x4, x5)  =  U38_gagg(x1, x3, x4, x5)
U39_gagg(x1, x2, x3, x4, x5)  =  U39_gagg(x1, x2, x3, x4, x5)
pN13_in_gggg(x1, x2, x3, x4)  =  pN13_in_gggg(x1, x2, x3, x4)
U40_gggg(x1, x2, x3, x4, x5)  =  U40_gggg(x1, x2, x3, x4, x5)
U41_gggg(x1, x2, x3, x4, x5)  =  U41_gggg(x1, x2, x3, x4, x5)
noattackU_in_gg(x1, x2)  =  noattackU_in_gg(x1, x2)
noattackU_out_gg(x1, x2)  =  noattackU_out_gg(x1, x2)
U17_gg(x1, x2, x3, x4)  =  U17_gg(x1, x2, x3, x4)
pV_in_ggaag(x1, x2, x3, x4, x5)  =  pV_in_ggaag(x1, x2, x5)
U42_ggaag(x1, x2, x3, x4, x5, x6)  =  U42_ggaag(x1, x2, x5, x6)
U43_ggaag(x1, x2, x3, x4, x5, x6)  =  U43_ggaag(x1, x2, x5, x6)
pN14_in_gagag(x1, x2, x3, x4, x5)  =  pN14_in_gagag(x1, x3, x5)
U44_gagag(x1, x2, x3, x4, x5, x6)  =  U44_gagag(x1, x3, x5, x6)
addH_in_ga(x1, x2)  =  addH_in_ga(x1)
addH_out_ga(x1, x2)  =  addH_out_ga(x1, x2)
U6_ga(x1, x2, x3)  =  U6_ga(x1, x3)
U45_gagag(x1, x2, x3, x4, x5, x6)  =  U45_gagag(x1, x2, x3, x5, x6)
pN15_in_ggagg(x1, x2, x3, x4, x5)  =  pN15_in_ggagg(x1, x2, x4, x5)
U46_ggagg(x1, x2, x3, x4, x5, x6)  =  U46_ggagg(x1, x2, x4, x5, x6)
U47_ggagg(x1, x2, x3, x4, x5, x6)  =  U47_ggagg(x1, x2, x4, x5, x6)
pN16_in_gagg(x1, x2, x3, x4)  =  pN16_in_gagg(x1, x3, x4)
U48_gagg(x1, x2, x3, x4, x5)  =  U48_gagg(x1, x3, x4, x5)
U49_gagg(x1, x2, x3, x4, x5)  =  U49_gagg(x1, x2, x3, x4, x5)
pN17_in_gggg(x1, x2, x3, x4)  =  pN17_in_gggg(x1, x2, x3, x4)
U50_gggg(x1, x2, x3, x4, x5)  =  U50_gggg(x1, x2, x3, x4, x5)
U51_gggg(x1, x2, x3, x4, x5)  =  U51_gggg(x1, x2, x3, x4, x5)
noattackW_in_gg(x1, x2)  =  noattackW_in_gg(x1, x2)
noattackW_out_gg(x1, x2)  =  noattackW_out_gg(x1, x2)
U18_gg(x1, x2, x3, x4)  =  U18_gg(x1, x2, x3, x4)
pX_in_ggaag(x1, x2, x3, x4, x5)  =  pX_in_ggaag(x1, x2, x5)
U52_ggaag(x1, x2, x3, x4, x5, x6)  =  U52_ggaag(x1, x2, x5, x6)
U53_ggaag(x1, x2, x3, x4, x5, x6)  =  U53_ggaag(x1, x2, x5, x6)
pN18_in_gagag(x1, x2, x3, x4, x5)  =  pN18_in_gagag(x1, x3, x5)
U54_gagag(x1, x2, x3, x4, x5, x6)  =  U54_gagag(x1, x3, x5, x6)
addI_in_ga(x1, x2)  =  addI_in_ga(x1)
addI_out_ga(x1, x2)  =  addI_out_ga(x1, x2)
U7_ga(x1, x2, x3)  =  U7_ga(x1, x3)
U55_gagag(x1, x2, x3, x4, x5, x6)  =  U55_gagag(x1, x2, x3, x5, x6)
pN19_in_ggagg(x1, x2, x3, x4, x5)  =  pN19_in_ggagg(x1, x2, x4, x5)
U56_ggagg(x1, x2, x3, x4, x5, x6)  =  U56_ggagg(x1, x2, x4, x5, x6)
U57_ggagg(x1, x2, x3, x4, x5, x6)  =  U57_ggagg(x1, x2, x4, x5, x6)
pN20_in_gagg(x1, x2, x3, x4)  =  pN20_in_gagg(x1, x3, x4)
U58_gagg(x1, x2, x3, x4, x5)  =  U58_gagg(x1, x3, x4, x5)
U59_gagg(x1, x2, x3, x4, x5)  =  U59_gagg(x1, x2, x3, x4, x5)
pN21_in_gggg(x1, x2, x3, x4)  =  pN21_in_gggg(x1, x2, x3, x4)
U60_gggg(x1, x2, x3, x4, x5)  =  U60_gggg(x1, x2, x3, x4, x5)
U61_gggg(x1, x2, x3, x4, x5)  =  U61_gggg(x1, x2, x3, x4, x5)
noattackY_in_gg(x1, x2)  =  noattackY_in_gg(x1, x2)
noattackY_out_gg(x1, x2)  =  noattackY_out_gg(x1, x2)
U19_gg(x1, x2, x3, x4)  =  U19_gg(x1, x2, x3, x4)
pZ_in_ggaag(x1, x2, x3, x4, x5)  =  pZ_in_ggaag(x1, x2, x5)
U62_ggaag(x1, x2, x3, x4, x5, x6)  =  U62_ggaag(x1, x2, x5, x6)
U63_ggaag(x1, x2, x3, x4, x5, x6)  =  U63_ggaag(x1, x2, x5, x6)
pN22_in_gagag(x1, x2, x3, x4, x5)  =  pN22_in_gagag(x1, x3, x5)
U64_gagag(x1, x2, x3, x4, x5, x6)  =  U64_gagag(x1, x3, x5, x6)
addJ_in_ga(x1, x2)  =  addJ_in_ga(x1)
addJ_out_ga(x1, x2)  =  addJ_out_ga(x1, x2)
U8_ga(x1, x2, x3)  =  U8_ga(x1, x3)
U65_gagag(x1, x2, x3, x4, x5, x6)  =  U65_gagag(x1, x2, x3, x5, x6)
pN23_in_ggagg(x1, x2, x3, x4, x5)  =  pN23_in_ggagg(x1, x2, x4, x5)
U66_ggagg(x1, x2, x3, x4, x5, x6)  =  U66_ggagg(x1, x2, x4, x5, x6)
U67_ggagg(x1, x2, x3, x4, x5, x6)  =  U67_ggagg(x1, x2, x4, x5, x6)
pN24_in_gagg(x1, x2, x3, x4)  =  pN24_in_gagg(x1, x3, x4)
U68_gagg(x1, x2, x3, x4, x5)  =  U68_gagg(x1, x3, x4, x5)
U69_gagg(x1, x2, x3, x4, x5)  =  U69_gagg(x1, x2, x3, x4, x5)
pN25_in_gggg(x1, x2, x3, x4)  =  pN25_in_gggg(x1, x2, x3, x4)
U70_gggg(x1, x2, x3, x4, x5)  =  U70_gggg(x1, x2, x3, x4, x5)
U71_gggg(x1, x2, x3, x4, x5)  =  U71_gggg(x1, x2, x3, x4, x5)
noattackN1_in_gg(x1, x2)  =  noattackN1_in_gg(x1, x2)
noattackN1_out_gg(x1, x2)  =  noattackN1_out_gg(x1, x2)
U20_gg(x1, x2, x3, x4)  =  U20_gg(x1, x2, x3, x4)
pN2_in_ggaag(x1, x2, x3, x4, x5)  =  pN2_in_ggaag(x1, x2, x5)
U72_ggaag(x1, x2, x3, x4, x5, x6)  =  U72_ggaag(x1, x2, x5, x6)
U73_ggaag(x1, x2, x3, x4, x5, x6)  =  U73_ggaag(x1, x2, x5, x6)
pN26_in_gagag(x1, x2, x3, x4, x5)  =  pN26_in_gagag(x1, x3, x5)
U74_gagag(x1, x2, x3, x4, x5, x6)  =  U74_gagag(x1, x3, x5, x6)
addK_in_ga(x1, x2)  =  addK_in_ga(x1)
addK_out_ga(x1, x2)  =  addK_out_ga(x1, x2)
U9_ga(x1, x2, x3)  =  U9_ga(x1, x3)
U75_gagag(x1, x2, x3, x4, x5, x6)  =  U75_gagag(x1, x2, x3, x5, x6)
pN27_in_ggagg(x1, x2, x3, x4, x5)  =  pN27_in_ggagg(x1, x2, x4, x5)
U76_ggagg(x1, x2, x3, x4, x5, x6)  =  U76_ggagg(x1, x2, x4, x5, x6)
U77_ggagg(x1, x2, x3, x4, x5, x6)  =  U77_ggagg(x1, x2, x4, x5, x6)
pN28_in_gagg(x1, x2, x3, x4)  =  pN28_in_gagg(x1, x3, x4)
U78_gagg(x1, x2, x3, x4, x5)  =  U78_gagg(x1, x3, x4, x5)
U79_gagg(x1, x2, x3, x4, x5)  =  U79_gagg(x1, x2, x3, x4, x5)
pN29_in_gggg(x1, x2, x3, x4)  =  pN29_in_gggg(x1, x2, x3, x4)
U80_gggg(x1, x2, x3, x4, x5)  =  U80_gggg(x1, x2, x3, x4, x5)
U81_gggg(x1, x2, x3, x4, x5)  =  U81_gggg(x1, x2, x3, x4, x5)
noattackN3_in_gg(x1, x2)  =  noattackN3_in_gg(x1, x2)
noattackN3_out_gg(x1, x2)  =  noattackN3_out_gg(x1, x2)
U21_gg(x1, x2, x3, x4)  =  U21_gg(x1, x2, x3, x4)
pN4_in_ggaag(x1, x2, x3, x4, x5)  =  pN4_in_ggaag(x1, x2, x5)
U82_ggaag(x1, x2, x3, x4, x5, x6)  =  U82_ggaag(x1, x2, x5, x6)
U83_ggaag(x1, x2, x3, x4, x5, x6)  =  U83_ggaag(x1, x2, x5, x6)
pN30_in_gagag(x1, x2, x3, x4, x5)  =  pN30_in_gagag(x1, x3, x5)
U84_gagag(x1, x2, x3, x4, x5, x6)  =  U84_gagag(x1, x3, x5, x6)
addL_in_ga(x1, x2)  =  addL_in_ga(x1)
addL_out_ga(x1, x2)  =  addL_out_ga(x1, x2)
U10_ga(x1, x2, x3)  =  U10_ga(x1, x3)
U85_gagag(x1, x2, x3, x4, x5, x6)  =  U85_gagag(x1, x2, x3, x5, x6)
pN31_in_ggagg(x1, x2, x3, x4, x5)  =  pN31_in_ggagg(x1, x2, x4, x5)
U86_ggagg(x1, x2, x3, x4, x5, x6)  =  U86_ggagg(x1, x2, x4, x5, x6)
U87_ggagg(x1, x2, x3, x4, x5, x6)  =  U87_ggagg(x1, x2, x4, x5, x6)
pN32_in_gagg(x1, x2, x3, x4)  =  pN32_in_gagg(x1, x3, x4)
U88_gagg(x1, x2, x3, x4, x5)  =  U88_gagg(x1, x3, x4, x5)
U89_gagg(x1, x2, x3, x4, x5)  =  U89_gagg(x1, x2, x3, x4, x5)
pN33_in_gggg(x1, x2, x3, x4)  =  pN33_in_gggg(x1, x2, x3, x4)
U90_gggg(x1, x2, x3, x4, x5)  =  U90_gggg(x1, x2, x3, x4, x5)
U91_gggg(x1, x2, x3, x4, x5)  =  U91_gggg(x1, x2, x3, x4, x5)
noattackN5_in_gg(x1, x2)  =  noattackN5_in_gg(x1, x2)
noattackN5_out_gg(x1, x2)  =  noattackN5_out_gg(x1, x2)
U22_gg(x1, x2, x3, x4)  =  U22_gg(x1, x2, x3, x4)
pN6_in_ggaagg(x1, x2, x3, x4, x5, x6)  =  pN6_in_ggaagg(x1, x2, x5, x6)
U92_ggaagg(x1, x2, x3, x4, x5, x6, x7)  =  U92_ggaagg(x1, x2, x5, x6, x7)
U93_ggaagg(x1, x2, x3, x4, x5, x6, x7)  =  U93_ggaagg(x1, x2, x5, x6, x7)
pN34_in_gagagg(x1, x2, x3, x4, x5, x6)  =  pN34_in_gagagg(x1, x3, x5, x6)
U94_gagagg(x1, x2, x3, x4, x5, x6, x7)  =  U94_gagagg(x1, x3, x5, x6, x7)
addM_in_ga(x1, x2)  =  addM_in_ga(x1)
addM_out_ga(x1, x2)  =  addM_out_ga(x1, x2)
U11_ga(x1, x2, x3)  =  U11_ga(x1, x3)
U95_gagagg(x1, x2, x3, x4, x5, x6, x7)  =  U95_gagagg(x1, x2, x3, x5, x6, x7)
pN35_in_ggaggg(x1, x2, x3, x4, x5, x6)  =  pN35_in_ggaggg(x1, x2, x4, x5, x6)
U96_ggaggg(x1, x2, x3, x4, x5, x6, x7)  =  U96_ggaggg(x1, x2, x4, x5, x6, x7)
U97_ggaggg(x1, x2, x3, x4, x5, x6, x7)  =  U97_ggaggg(x1, x2, x4, x5, x6, x7)
pN36_in_gaggg(x1, x2, x3, x4, x5)  =  pN36_in_gaggg(x1, x3, x4, x5)
U98_gaggg(x1, x2, x3, x4, x5, x6)  =  U98_gaggg(x1, x3, x4, x5, x6)
U99_gaggg(x1, x2, x3, x4, x5, x6)  =  U99_gaggg(x1, x2, x3, x4, x5, x6)
pN37_in_ggggg(x1, x2, x3, x4, x5)  =  pN37_in_ggggg(x1, x2, x3, x4, x5)
U100_ggggg(x1, x2, x3, x4, x5, x6)  =  U100_ggggg(x1, x2, x3, x4, x5, x6)
U101_ggggg(x1, x2, x3, x4, x5, x6)  =  U101_ggggg(x1, x2, x3, x4, x5, x6)
noattackN7_in_ggg(x1, x2, x3)  =  noattackN7_in_ggg(x1, x2, x3)
noattackN7_out_ggg(x1, x2, x3)  =  noattackN7_out_ggg(x1, x2, x3)
U23_ggg(x1, x2, x3, x4, x5)  =  U23_ggg(x1, x2, x3, x4, x5)
pN8_in_gggaag(x1, x2, x3, x4, x5, x6)  =  pN8_in_gggaag(x1, x2, x3, x6)
U102_gggaag(x1, x2, x3, x4, x5, x6, x7)  =  U102_gggaag(x1, x2, x3, x6, x7)
U103_gggaag(x1, x2, x3, x4, x5, x6, x7)  =  U103_gggaag(x1, x2, x3, x6, x7)
pN38_in_ggagag(x1, x2, x3, x4, x5, x6)  =  pN38_in_ggagag(x1, x2, x4, x6)
U104_ggagag(x1, x2, x3, x4, x5, x6, x7)  =  U104_ggagag(x1, x2, x4, x6, x7)
addN_in_gga(x1, x2, x3)  =  addN_in_gga(x1, x2)
addN_out_gga(x1, x2, x3)  =  addN_out_gga(x1, x2, x3)
U12_gga(x1, x2, x3, x4)  =  U12_gga(x1, x2, x4)
U105_ggagag(x1, x2, x3, x4, x5, x6, x7)  =  U105_ggagag(x1, x2, x3, x4, x6, x7)
pN39_in_gggagg(x1, x2, x3, x4, x5, x6)  =  pN39_in_gggagg(x1, x2, x3, x5, x6)
U106_gggagg(x1, x2, x3, x4, x5, x6, x7)  =  U106_gggagg(x1, x2, x3, x5, x6, x7)
U107_gggagg(x1, x2, x3, x4, x5, x6, x7)  =  U107_gggagg(x1, x2, x3, x5, x6, x7)
pN40_in_ggagg(x1, x2, x3, x4, x5)  =  pN40_in_ggagg(x1, x2, x4, x5)
U108_ggagg(x1, x2, x3, x4, x5, x6)  =  U108_ggagg(x1, x2, x4, x5, x6)
U109_ggagg(x1, x2, x3, x4, x5, x6)  =  U109_ggagg(x1, x2, x3, x4, x5, x6)
pN37_out_ggggg(x1, x2, x3, x4, x5)  =  pN37_out_ggggg(x1, x2, x3, x4, x5)
pN40_out_ggagg(x1, x2, x3, x4, x5)  =  pN40_out_ggagg(x1, x2, x3, x4, x5)
pN39_out_gggagg(x1, x2, x3, x4, x5, x6)  =  pN39_out_gggagg(x1, x2, x3, x4, x5, x6)
pN38_out_ggagag(x1, x2, x3, x4, x5, x6)  =  pN38_out_ggagag(x1, x2, x3, x4, x5, x6)
pN8_out_gggaag(x1, x2, x3, x4, x5, x6)  =  pN8_out_gggaag(x1, x2, x3, x4, x5, x6)
pN36_out_gaggg(x1, x2, x3, x4, x5)  =  pN36_out_gaggg(x1, x2, x3, x4, x5)
pN35_out_ggaggg(x1, x2, x3, x4, x5, x6)  =  pN35_out_ggaggg(x1, x2, x3, x4, x5, x6)
pN34_out_gagagg(x1, x2, x3, x4, x5, x6)  =  pN34_out_gagagg(x1, x2, x3, x4, x5, x6)
pN6_out_ggaagg(x1, x2, x3, x4, x5, x6)  =  pN6_out_ggaagg(x1, x2, x3, x4, x5, x6)
pN33_out_gggg(x1, x2, x3, x4)  =  pN33_out_gggg(x1, x2, x3, x4)
pN32_out_gagg(x1, x2, x3, x4)  =  pN32_out_gagg(x1, x2, x3, x4)
pN31_out_ggagg(x1, x2, x3, x4, x5)  =  pN31_out_ggagg(x1, x2, x3, x4, x5)
pN30_out_gagag(x1, x2, x3, x4, x5)  =  pN30_out_gagag(x1, x2, x3, x4, x5)
pN4_out_ggaag(x1, x2, x3, x4, x5)  =  pN4_out_ggaag(x1, x2, x3, x4, x5)
pN29_out_gggg(x1, x2, x3, x4)  =  pN29_out_gggg(x1, x2, x3, x4)
pN28_out_gagg(x1, x2, x3, x4)  =  pN28_out_gagg(x1, x2, x3, x4)
pN27_out_ggagg(x1, x2, x3, x4, x5)  =  pN27_out_ggagg(x1, x2, x3, x4, x5)
pN26_out_gagag(x1, x2, x3, x4, x5)  =  pN26_out_gagag(x1, x2, x3, x4, x5)
pN2_out_ggaag(x1, x2, x3, x4, x5)  =  pN2_out_ggaag(x1, x2, x3, x4, x5)
pN25_out_gggg(x1, x2, x3, x4)  =  pN25_out_gggg(x1, x2, x3, x4)
pN24_out_gagg(x1, x2, x3, x4)  =  pN24_out_gagg(x1, x2, x3, x4)
pN23_out_ggagg(x1, x2, x3, x4, x5)  =  pN23_out_ggagg(x1, x2, x3, x4, x5)
pN22_out_gagag(x1, x2, x3, x4, x5)  =  pN22_out_gagag(x1, x2, x3, x4, x5)
pZ_out_ggaag(x1, x2, x3, x4, x5)  =  pZ_out_ggaag(x1, x2, x3, x4, x5)
pN21_out_gggg(x1, x2, x3, x4)  =  pN21_out_gggg(x1, x2, x3, x4)
pN20_out_gagg(x1, x2, x3, x4)  =  pN20_out_gagg(x1, x2, x3, x4)
pN19_out_ggagg(x1, x2, x3, x4, x5)  =  pN19_out_ggagg(x1, x2, x3, x4, x5)
pN18_out_gagag(x1, x2, x3, x4, x5)  =  pN18_out_gagag(x1, x2, x3, x4, x5)
pX_out_ggaag(x1, x2, x3, x4, x5)  =  pX_out_ggaag(x1, x2, x3, x4, x5)
pN17_out_gggg(x1, x2, x3, x4)  =  pN17_out_gggg(x1, x2, x3, x4)
pN16_out_gagg(x1, x2, x3, x4)  =  pN16_out_gagg(x1, x2, x3, x4)
pN15_out_ggagg(x1, x2, x3, x4, x5)  =  pN15_out_ggagg(x1, x2, x3, x4, x5)
pN14_out_gagag(x1, x2, x3, x4, x5)  =  pN14_out_gagag(x1, x2, x3, x4, x5)
pV_out_ggaag(x1, x2, x3, x4, x5)  =  pV_out_ggaag(x1, x2, x3, x4, x5)
pN13_out_gggg(x1, x2, x3, x4)  =  pN13_out_gggg(x1, x2, x3, x4)
pN12_out_gagg(x1, x2, x3, x4)  =  pN12_out_gagg(x1, x2, x3, x4)
pN11_out_ggagg(x1, x2, x3, x4, x5)  =  pN11_out_ggagg(x1, x2, x3, x4, x5)
pN10_out_gagag(x1, x2, x3, x4, x5)  =  pN10_out_gagag(x1, x2, x3, x4, x5)
pS_out_ggaag(x1, x2, x3, x4, x5)  =  pS_out_ggaag(x1, x2, x3, x4, x5)
U31_gg(x1, x2, x3)  =  U31_gg(x1, x2, x3)
safeT_in_g(x1)  =  safeT_in_g(x1)
safeT_out_g(x1)  =  safeT_out_g(x1)
U16_g(x1, x2, x3)  =  U16_g(x1, x2, x3)
pQ_out_gg(x1, x2)  =  pQ_out_gg(x1, x2)
safeP_out_gg(x1, x2)  =  safeP_out_gg(x1, x2)
pN9_out_gag(x1, x2, x3)  =  pN9_out_gag(x1, x2, x3)
pB_out_agaa(x1, x2, x3, x4)  =  pB_out_agaa(x1, x2, x3, x4)
queensA_out_a(x1)  =  queensA_out_a(x1)
ADDG_IN_GA(x1, x2)  =  ADDG_IN_GA(x1)

We have to consider all (P,R,Pi)-chains

(57) UsableRulesProof (EQUIVALENT transformation)

For (infinitary) constructor rewriting [LOPSTR] we can delete all non-usable rules from R.

(58) Obligation:

Pi DP problem:
The TRS P consists of the following rules:

ADDG_IN_GA(s(T153), s(X199)) → ADDG_IN_GA(T153, X199)

R is empty.
The argument filtering Pi contains the following mapping:
s(x1)  =  s(x1)
ADDG_IN_GA(x1, x2)  =  ADDG_IN_GA(x1)

We have to consider all (P,R,Pi)-chains

(59) PiDPToQDPProof (SOUND transformation)

Transforming (infinitary) constructor rewriting Pi-DP problem [LOPSTR] into ordinary QDP problem [LPAR04] by application of Pi.

(60) Obligation:

Q DP problem:
The TRS P consists of the following rules:

ADDG_IN_GA(s(T153)) → ADDG_IN_GA(T153)

R is empty.
Q is empty.
We have to consider all (P,Q,R)-chains.

(61) QDPSizeChangeProof (EQUIVALENT transformation)

By using the subterm criterion [SUBTERM_CRITERION] together with the size-change analysis [AAECC05] we have proven that there are no infinite chains for this DP problem.

From the DPs we obtained the following set of size-change graphs:

  • ADDG_IN_GA(s(T153)) → ADDG_IN_GA(T153)
    The graph contains the following edges 1 > 1

(62) YES

(63) Obligation:

Pi DP problem:
The TRS P consists of the following rules:

NOTEQF_IN_GG(s(T146), s(T147)) → NOTEQF_IN_GG(T146, T147)

The TRS R consists of the following rules:

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))

The argument filtering Pi contains the following mapping:
queensA_in_a(x1)  =  queensA_in_a
U1_a(x1, x2, x3)  =  U1_a(x3)
pB_in_agaa(x1, x2, x3, x4)  =  pB_in_agaa(x2)
U24_agaa(x1, x2, x3, x4, x5)  =  U24_agaa(x2, x5)
deleteO_in_aga(x1, x2, x3)  =  deleteO_in_aga(x2)
deleteO_out_aga(x1, x2, x3)  =  deleteO_out_aga(x1, x2, x3)
U13_aga(x1, x2, x3, x4)  =  U13_aga(x2, x4)
deleteC_in_aga(x1, x2, x3)  =  deleteC_in_aga(x2)
.(x1, x2)  =  .(x1, x2)
deleteC_out_aga(x1, x2, x3)  =  deleteC_out_aga(x1, x2, x3)
U2_aga(x1, x2, x3, x4, x5)  =  U2_aga(x2, x3, x5)
U25_agaa(x1, x2, x3, x4, x5)  =  U25_agaa(x1, x2, x3, x5)
pN9_in_gag(x1, x2, x3)  =  pN9_in_gag(x1, x3)
U26_gag(x1, x2, x3, x4)  =  U26_gag(x1, x3, x4)
permD_in_ga(x1, x2)  =  permD_in_ga(x1)
[]  =  []
permD_out_ga(x1, x2)  =  permD_out_ga(x1, x2)
U3_ga(x1, x2, x3, x4, x5)  =  U3_ga(x1, x2, x5)
pE_in_aggaa(x1, x2, x3, x4, x5)  =  pE_in_aggaa(x2, x3)
U28_aggaa(x1, x2, x3, x4, x5, x6)  =  U28_aggaa(x2, x3, x6)
U29_aggaa(x1, x2, x3, x4, x5, x6)  =  U29_aggaa(x1, x2, x3, x4, x6)
pE_out_aggaa(x1, x2, x3, x4, x5)  =  pE_out_aggaa(x1, x2, x3, x4, x5)
U27_gag(x1, x2, x3, x4)  =  U27_gag(x1, x2, x3, x4)
safeP_in_gg(x1, x2)  =  safeP_in_gg(x1, x2)
U14_gg(x1, x2, x3)  =  U14_gg(x1, x2, x3)
pQ_in_gg(x1, x2)  =  pQ_in_gg(x1, x2)
U30_gg(x1, x2, x3)  =  U30_gg(x1, x2, x3)
noattackR_in_gg(x1, x2)  =  noattackR_in_gg(x1, x2)
noattackR_out_gg(x1, x2)  =  noattackR_out_gg(x1, x2)
U15_gg(x1, x2, x3, x4)  =  U15_gg(x1, x2, x3, x4)
pS_in_ggaag(x1, x2, x3, x4, x5)  =  pS_in_ggaag(x1, x2, x5)
U32_ggaag(x1, x2, x3, x4, x5, x6)  =  U32_ggaag(x1, x2, x5, x6)
notEqF_in_gg(x1, x2)  =  notEqF_in_gg(x1, x2)
0  =  0
s(x1)  =  s(x1)
notEqF_out_gg(x1, x2)  =  notEqF_out_gg(x1, x2)
U4_gg(x1, x2, x3)  =  U4_gg(x1, x2, x3)
U33_ggaag(x1, x2, x3, x4, x5, x6)  =  U33_ggaag(x1, x2, x5, x6)
pN10_in_gagag(x1, x2, x3, x4, x5)  =  pN10_in_gagag(x1, x3, x5)
U34_gagag(x1, x2, x3, x4, x5, x6)  =  U34_gagag(x1, x3, x5, x6)
addG_in_ga(x1, x2)  =  addG_in_ga(x1)
addG_out_ga(x1, x2)  =  addG_out_ga(x1, x2)
U5_ga(x1, x2, x3)  =  U5_ga(x1, x3)
U35_gagag(x1, x2, x3, x4, x5, x6)  =  U35_gagag(x1, x2, x3, x5, x6)
pN11_in_ggagg(x1, x2, x3, x4, x5)  =  pN11_in_ggagg(x1, x2, x4, x5)
U36_ggagg(x1, x2, x3, x4, x5, x6)  =  U36_ggagg(x1, x2, x4, x5, x6)
U37_ggagg(x1, x2, x3, x4, x5, x6)  =  U37_ggagg(x1, x2, x4, x5, x6)
pN12_in_gagg(x1, x2, x3, x4)  =  pN12_in_gagg(x1, x3, x4)
U38_gagg(x1, x2, x3, x4, x5)  =  U38_gagg(x1, x3, x4, x5)
U39_gagg(x1, x2, x3, x4, x5)  =  U39_gagg(x1, x2, x3, x4, x5)
pN13_in_gggg(x1, x2, x3, x4)  =  pN13_in_gggg(x1, x2, x3, x4)
U40_gggg(x1, x2, x3, x4, x5)  =  U40_gggg(x1, x2, x3, x4, x5)
U41_gggg(x1, x2, x3, x4, x5)  =  U41_gggg(x1, x2, x3, x4, x5)
noattackU_in_gg(x1, x2)  =  noattackU_in_gg(x1, x2)
noattackU_out_gg(x1, x2)  =  noattackU_out_gg(x1, x2)
U17_gg(x1, x2, x3, x4)  =  U17_gg(x1, x2, x3, x4)
pV_in_ggaag(x1, x2, x3, x4, x5)  =  pV_in_ggaag(x1, x2, x5)
U42_ggaag(x1, x2, x3, x4, x5, x6)  =  U42_ggaag(x1, x2, x5, x6)
U43_ggaag(x1, x2, x3, x4, x5, x6)  =  U43_ggaag(x1, x2, x5, x6)
pN14_in_gagag(x1, x2, x3, x4, x5)  =  pN14_in_gagag(x1, x3, x5)
U44_gagag(x1, x2, x3, x4, x5, x6)  =  U44_gagag(x1, x3, x5, x6)
addH_in_ga(x1, x2)  =  addH_in_ga(x1)
addH_out_ga(x1, x2)  =  addH_out_ga(x1, x2)
U6_ga(x1, x2, x3)  =  U6_ga(x1, x3)
U45_gagag(x1, x2, x3, x4, x5, x6)  =  U45_gagag(x1, x2, x3, x5, x6)
pN15_in_ggagg(x1, x2, x3, x4, x5)  =  pN15_in_ggagg(x1, x2, x4, x5)
U46_ggagg(x1, x2, x3, x4, x5, x6)  =  U46_ggagg(x1, x2, x4, x5, x6)
U47_ggagg(x1, x2, x3, x4, x5, x6)  =  U47_ggagg(x1, x2, x4, x5, x6)
pN16_in_gagg(x1, x2, x3, x4)  =  pN16_in_gagg(x1, x3, x4)
U48_gagg(x1, x2, x3, x4, x5)  =  U48_gagg(x1, x3, x4, x5)
U49_gagg(x1, x2, x3, x4, x5)  =  U49_gagg(x1, x2, x3, x4, x5)
pN17_in_gggg(x1, x2, x3, x4)  =  pN17_in_gggg(x1, x2, x3, x4)
U50_gggg(x1, x2, x3, x4, x5)  =  U50_gggg(x1, x2, x3, x4, x5)
U51_gggg(x1, x2, x3, x4, x5)  =  U51_gggg(x1, x2, x3, x4, x5)
noattackW_in_gg(x1, x2)  =  noattackW_in_gg(x1, x2)
noattackW_out_gg(x1, x2)  =  noattackW_out_gg(x1, x2)
U18_gg(x1, x2, x3, x4)  =  U18_gg(x1, x2, x3, x4)
pX_in_ggaag(x1, x2, x3, x4, x5)  =  pX_in_ggaag(x1, x2, x5)
U52_ggaag(x1, x2, x3, x4, x5, x6)  =  U52_ggaag(x1, x2, x5, x6)
U53_ggaag(x1, x2, x3, x4, x5, x6)  =  U53_ggaag(x1, x2, x5, x6)
pN18_in_gagag(x1, x2, x3, x4, x5)  =  pN18_in_gagag(x1, x3, x5)
U54_gagag(x1, x2, x3, x4, x5, x6)  =  U54_gagag(x1, x3, x5, x6)
addI_in_ga(x1, x2)  =  addI_in_ga(x1)
addI_out_ga(x1, x2)  =  addI_out_ga(x1, x2)
U7_ga(x1, x2, x3)  =  U7_ga(x1, x3)
U55_gagag(x1, x2, x3, x4, x5, x6)  =  U55_gagag(x1, x2, x3, x5, x6)
pN19_in_ggagg(x1, x2, x3, x4, x5)  =  pN19_in_ggagg(x1, x2, x4, x5)
U56_ggagg(x1, x2, x3, x4, x5, x6)  =  U56_ggagg(x1, x2, x4, x5, x6)
U57_ggagg(x1, x2, x3, x4, x5, x6)  =  U57_ggagg(x1, x2, x4, x5, x6)
pN20_in_gagg(x1, x2, x3, x4)  =  pN20_in_gagg(x1, x3, x4)
U58_gagg(x1, x2, x3, x4, x5)  =  U58_gagg(x1, x3, x4, x5)
U59_gagg(x1, x2, x3, x4, x5)  =  U59_gagg(x1, x2, x3, x4, x5)
pN21_in_gggg(x1, x2, x3, x4)  =  pN21_in_gggg(x1, x2, x3, x4)
U60_gggg(x1, x2, x3, x4, x5)  =  U60_gggg(x1, x2, x3, x4, x5)
U61_gggg(x1, x2, x3, x4, x5)  =  U61_gggg(x1, x2, x3, x4, x5)
noattackY_in_gg(x1, x2)  =  noattackY_in_gg(x1, x2)
noattackY_out_gg(x1, x2)  =  noattackY_out_gg(x1, x2)
U19_gg(x1, x2, x3, x4)  =  U19_gg(x1, x2, x3, x4)
pZ_in_ggaag(x1, x2, x3, x4, x5)  =  pZ_in_ggaag(x1, x2, x5)
U62_ggaag(x1, x2, x3, x4, x5, x6)  =  U62_ggaag(x1, x2, x5, x6)
U63_ggaag(x1, x2, x3, x4, x5, x6)  =  U63_ggaag(x1, x2, x5, x6)
pN22_in_gagag(x1, x2, x3, x4, x5)  =  pN22_in_gagag(x1, x3, x5)
U64_gagag(x1, x2, x3, x4, x5, x6)  =  U64_gagag(x1, x3, x5, x6)
addJ_in_ga(x1, x2)  =  addJ_in_ga(x1)
addJ_out_ga(x1, x2)  =  addJ_out_ga(x1, x2)
U8_ga(x1, x2, x3)  =  U8_ga(x1, x3)
U65_gagag(x1, x2, x3, x4, x5, x6)  =  U65_gagag(x1, x2, x3, x5, x6)
pN23_in_ggagg(x1, x2, x3, x4, x5)  =  pN23_in_ggagg(x1, x2, x4, x5)
U66_ggagg(x1, x2, x3, x4, x5, x6)  =  U66_ggagg(x1, x2, x4, x5, x6)
U67_ggagg(x1, x2, x3, x4, x5, x6)  =  U67_ggagg(x1, x2, x4, x5, x6)
pN24_in_gagg(x1, x2, x3, x4)  =  pN24_in_gagg(x1, x3, x4)
U68_gagg(x1, x2, x3, x4, x5)  =  U68_gagg(x1, x3, x4, x5)
U69_gagg(x1, x2, x3, x4, x5)  =  U69_gagg(x1, x2, x3, x4, x5)
pN25_in_gggg(x1, x2, x3, x4)  =  pN25_in_gggg(x1, x2, x3, x4)
U70_gggg(x1, x2, x3, x4, x5)  =  U70_gggg(x1, x2, x3, x4, x5)
U71_gggg(x1, x2, x3, x4, x5)  =  U71_gggg(x1, x2, x3, x4, x5)
noattackN1_in_gg(x1, x2)  =  noattackN1_in_gg(x1, x2)
noattackN1_out_gg(x1, x2)  =  noattackN1_out_gg(x1, x2)
U20_gg(x1, x2, x3, x4)  =  U20_gg(x1, x2, x3, x4)
pN2_in_ggaag(x1, x2, x3, x4, x5)  =  pN2_in_ggaag(x1, x2, x5)
U72_ggaag(x1, x2, x3, x4, x5, x6)  =  U72_ggaag(x1, x2, x5, x6)
U73_ggaag(x1, x2, x3, x4, x5, x6)  =  U73_ggaag(x1, x2, x5, x6)
pN26_in_gagag(x1, x2, x3, x4, x5)  =  pN26_in_gagag(x1, x3, x5)
U74_gagag(x1, x2, x3, x4, x5, x6)  =  U74_gagag(x1, x3, x5, x6)
addK_in_ga(x1, x2)  =  addK_in_ga(x1)
addK_out_ga(x1, x2)  =  addK_out_ga(x1, x2)
U9_ga(x1, x2, x3)  =  U9_ga(x1, x3)
U75_gagag(x1, x2, x3, x4, x5, x6)  =  U75_gagag(x1, x2, x3, x5, x6)
pN27_in_ggagg(x1, x2, x3, x4, x5)  =  pN27_in_ggagg(x1, x2, x4, x5)
U76_ggagg(x1, x2, x3, x4, x5, x6)  =  U76_ggagg(x1, x2, x4, x5, x6)
U77_ggagg(x1, x2, x3, x4, x5, x6)  =  U77_ggagg(x1, x2, x4, x5, x6)
pN28_in_gagg(x1, x2, x3, x4)  =  pN28_in_gagg(x1, x3, x4)
U78_gagg(x1, x2, x3, x4, x5)  =  U78_gagg(x1, x3, x4, x5)
U79_gagg(x1, x2, x3, x4, x5)  =  U79_gagg(x1, x2, x3, x4, x5)
pN29_in_gggg(x1, x2, x3, x4)  =  pN29_in_gggg(x1, x2, x3, x4)
U80_gggg(x1, x2, x3, x4, x5)  =  U80_gggg(x1, x2, x3, x4, x5)
U81_gggg(x1, x2, x3, x4, x5)  =  U81_gggg(x1, x2, x3, x4, x5)
noattackN3_in_gg(x1, x2)  =  noattackN3_in_gg(x1, x2)
noattackN3_out_gg(x1, x2)  =  noattackN3_out_gg(x1, x2)
U21_gg(x1, x2, x3, x4)  =  U21_gg(x1, x2, x3, x4)
pN4_in_ggaag(x1, x2, x3, x4, x5)  =  pN4_in_ggaag(x1, x2, x5)
U82_ggaag(x1, x2, x3, x4, x5, x6)  =  U82_ggaag(x1, x2, x5, x6)
U83_ggaag(x1, x2, x3, x4, x5, x6)  =  U83_ggaag(x1, x2, x5, x6)
pN30_in_gagag(x1, x2, x3, x4, x5)  =  pN30_in_gagag(x1, x3, x5)
U84_gagag(x1, x2, x3, x4, x5, x6)  =  U84_gagag(x1, x3, x5, x6)
addL_in_ga(x1, x2)  =  addL_in_ga(x1)
addL_out_ga(x1, x2)  =  addL_out_ga(x1, x2)
U10_ga(x1, x2, x3)  =  U10_ga(x1, x3)
U85_gagag(x1, x2, x3, x4, x5, x6)  =  U85_gagag(x1, x2, x3, x5, x6)
pN31_in_ggagg(x1, x2, x3, x4, x5)  =  pN31_in_ggagg(x1, x2, x4, x5)
U86_ggagg(x1, x2, x3, x4, x5, x6)  =  U86_ggagg(x1, x2, x4, x5, x6)
U87_ggagg(x1, x2, x3, x4, x5, x6)  =  U87_ggagg(x1, x2, x4, x5, x6)
pN32_in_gagg(x1, x2, x3, x4)  =  pN32_in_gagg(x1, x3, x4)
U88_gagg(x1, x2, x3, x4, x5)  =  U88_gagg(x1, x3, x4, x5)
U89_gagg(x1, x2, x3, x4, x5)  =  U89_gagg(x1, x2, x3, x4, x5)
pN33_in_gggg(x1, x2, x3, x4)  =  pN33_in_gggg(x1, x2, x3, x4)
U90_gggg(x1, x2, x3, x4, x5)  =  U90_gggg(x1, x2, x3, x4, x5)
U91_gggg(x1, x2, x3, x4, x5)  =  U91_gggg(x1, x2, x3, x4, x5)
noattackN5_in_gg(x1, x2)  =  noattackN5_in_gg(x1, x2)
noattackN5_out_gg(x1, x2)  =  noattackN5_out_gg(x1, x2)
U22_gg(x1, x2, x3, x4)  =  U22_gg(x1, x2, x3, x4)
pN6_in_ggaagg(x1, x2, x3, x4, x5, x6)  =  pN6_in_ggaagg(x1, x2, x5, x6)
U92_ggaagg(x1, x2, x3, x4, x5, x6, x7)  =  U92_ggaagg(x1, x2, x5, x6, x7)
U93_ggaagg(x1, x2, x3, x4, x5, x6, x7)  =  U93_ggaagg(x1, x2, x5, x6, x7)
pN34_in_gagagg(x1, x2, x3, x4, x5, x6)  =  pN34_in_gagagg(x1, x3, x5, x6)
U94_gagagg(x1, x2, x3, x4, x5, x6, x7)  =  U94_gagagg(x1, x3, x5, x6, x7)
addM_in_ga(x1, x2)  =  addM_in_ga(x1)
addM_out_ga(x1, x2)  =  addM_out_ga(x1, x2)
U11_ga(x1, x2, x3)  =  U11_ga(x1, x3)
U95_gagagg(x1, x2, x3, x4, x5, x6, x7)  =  U95_gagagg(x1, x2, x3, x5, x6, x7)
pN35_in_ggaggg(x1, x2, x3, x4, x5, x6)  =  pN35_in_ggaggg(x1, x2, x4, x5, x6)
U96_ggaggg(x1, x2, x3, x4, x5, x6, x7)  =  U96_ggaggg(x1, x2, x4, x5, x6, x7)
U97_ggaggg(x1, x2, x3, x4, x5, x6, x7)  =  U97_ggaggg(x1, x2, x4, x5, x6, x7)
pN36_in_gaggg(x1, x2, x3, x4, x5)  =  pN36_in_gaggg(x1, x3, x4, x5)
U98_gaggg(x1, x2, x3, x4, x5, x6)  =  U98_gaggg(x1, x3, x4, x5, x6)
U99_gaggg(x1, x2, x3, x4, x5, x6)  =  U99_gaggg(x1, x2, x3, x4, x5, x6)
pN37_in_ggggg(x1, x2, x3, x4, x5)  =  pN37_in_ggggg(x1, x2, x3, x4, x5)
U100_ggggg(x1, x2, x3, x4, x5, x6)  =  U100_ggggg(x1, x2, x3, x4, x5, x6)
U101_ggggg(x1, x2, x3, x4, x5, x6)  =  U101_ggggg(x1, x2, x3, x4, x5, x6)
noattackN7_in_ggg(x1, x2, x3)  =  noattackN7_in_ggg(x1, x2, x3)
noattackN7_out_ggg(x1, x2, x3)  =  noattackN7_out_ggg(x1, x2, x3)
U23_ggg(x1, x2, x3, x4, x5)  =  U23_ggg(x1, x2, x3, x4, x5)
pN8_in_gggaag(x1, x2, x3, x4, x5, x6)  =  pN8_in_gggaag(x1, x2, x3, x6)
U102_gggaag(x1, x2, x3, x4, x5, x6, x7)  =  U102_gggaag(x1, x2, x3, x6, x7)
U103_gggaag(x1, x2, x3, x4, x5, x6, x7)  =  U103_gggaag(x1, x2, x3, x6, x7)
pN38_in_ggagag(x1, x2, x3, x4, x5, x6)  =  pN38_in_ggagag(x1, x2, x4, x6)
U104_ggagag(x1, x2, x3, x4, x5, x6, x7)  =  U104_ggagag(x1, x2, x4, x6, x7)
addN_in_gga(x1, x2, x3)  =  addN_in_gga(x1, x2)
addN_out_gga(x1, x2, x3)  =  addN_out_gga(x1, x2, x3)
U12_gga(x1, x2, x3, x4)  =  U12_gga(x1, x2, x4)
U105_ggagag(x1, x2, x3, x4, x5, x6, x7)  =  U105_ggagag(x1, x2, x3, x4, x6, x7)
pN39_in_gggagg(x1, x2, x3, x4, x5, x6)  =  pN39_in_gggagg(x1, x2, x3, x5, x6)
U106_gggagg(x1, x2, x3, x4, x5, x6, x7)  =  U106_gggagg(x1, x2, x3, x5, x6, x7)
U107_gggagg(x1, x2, x3, x4, x5, x6, x7)  =  U107_gggagg(x1, x2, x3, x5, x6, x7)
pN40_in_ggagg(x1, x2, x3, x4, x5)  =  pN40_in_ggagg(x1, x2, x4, x5)
U108_ggagg(x1, x2, x3, x4, x5, x6)  =  U108_ggagg(x1, x2, x4, x5, x6)
U109_ggagg(x1, x2, x3, x4, x5, x6)  =  U109_ggagg(x1, x2, x3, x4, x5, x6)
pN37_out_ggggg(x1, x2, x3, x4, x5)  =  pN37_out_ggggg(x1, x2, x3, x4, x5)
pN40_out_ggagg(x1, x2, x3, x4, x5)  =  pN40_out_ggagg(x1, x2, x3, x4, x5)
pN39_out_gggagg(x1, x2, x3, x4, x5, x6)  =  pN39_out_gggagg(x1, x2, x3, x4, x5, x6)
pN38_out_ggagag(x1, x2, x3, x4, x5, x6)  =  pN38_out_ggagag(x1, x2, x3, x4, x5, x6)
pN8_out_gggaag(x1, x2, x3, x4, x5, x6)  =  pN8_out_gggaag(x1, x2, x3, x4, x5, x6)
pN36_out_gaggg(x1, x2, x3, x4, x5)  =  pN36_out_gaggg(x1, x2, x3, x4, x5)
pN35_out_ggaggg(x1, x2, x3, x4, x5, x6)  =  pN35_out_ggaggg(x1, x2, x3, x4, x5, x6)
pN34_out_gagagg(x1, x2, x3, x4, x5, x6)  =  pN34_out_gagagg(x1, x2, x3, x4, x5, x6)
pN6_out_ggaagg(x1, x2, x3, x4, x5, x6)  =  pN6_out_ggaagg(x1, x2, x3, x4, x5, x6)
pN33_out_gggg(x1, x2, x3, x4)  =  pN33_out_gggg(x1, x2, x3, x4)
pN32_out_gagg(x1, x2, x3, x4)  =  pN32_out_gagg(x1, x2, x3, x4)
pN31_out_ggagg(x1, x2, x3, x4, x5)  =  pN31_out_ggagg(x1, x2, x3, x4, x5)
pN30_out_gagag(x1, x2, x3, x4, x5)  =  pN30_out_gagag(x1, x2, x3, x4, x5)
pN4_out_ggaag(x1, x2, x3, x4, x5)  =  pN4_out_ggaag(x1, x2, x3, x4, x5)
pN29_out_gggg(x1, x2, x3, x4)  =  pN29_out_gggg(x1, x2, x3, x4)
pN28_out_gagg(x1, x2, x3, x4)  =  pN28_out_gagg(x1, x2, x3, x4)
pN27_out_ggagg(x1, x2, x3, x4, x5)  =  pN27_out_ggagg(x1, x2, x3, x4, x5)
pN26_out_gagag(x1, x2, x3, x4, x5)  =  pN26_out_gagag(x1, x2, x3, x4, x5)
pN2_out_ggaag(x1, x2, x3, x4, x5)  =  pN2_out_ggaag(x1, x2, x3, x4, x5)
pN25_out_gggg(x1, x2, x3, x4)  =  pN25_out_gggg(x1, x2, x3, x4)
pN24_out_gagg(x1, x2, x3, x4)  =  pN24_out_gagg(x1, x2, x3, x4)
pN23_out_ggagg(x1, x2, x3, x4, x5)  =  pN23_out_ggagg(x1, x2, x3, x4, x5)
pN22_out_gagag(x1, x2, x3, x4, x5)  =  pN22_out_gagag(x1, x2, x3, x4, x5)
pZ_out_ggaag(x1, x2, x3, x4, x5)  =  pZ_out_ggaag(x1, x2, x3, x4, x5)
pN21_out_gggg(x1, x2, x3, x4)  =  pN21_out_gggg(x1, x2, x3, x4)
pN20_out_gagg(x1, x2, x3, x4)  =  pN20_out_gagg(x1, x2, x3, x4)
pN19_out_ggagg(x1, x2, x3, x4, x5)  =  pN19_out_ggagg(x1, x2, x3, x4, x5)
pN18_out_gagag(x1, x2, x3, x4, x5)  =  pN18_out_gagag(x1, x2, x3, x4, x5)
pX_out_ggaag(x1, x2, x3, x4, x5)  =  pX_out_ggaag(x1, x2, x3, x4, x5)
pN17_out_gggg(x1, x2, x3, x4)  =  pN17_out_gggg(x1, x2, x3, x4)
pN16_out_gagg(x1, x2, x3, x4)  =  pN16_out_gagg(x1, x2, x3, x4)
pN15_out_ggagg(x1, x2, x3, x4, x5)  =  pN15_out_ggagg(x1, x2, x3, x4, x5)
pN14_out_gagag(x1, x2, x3, x4, x5)  =  pN14_out_gagag(x1, x2, x3, x4, x5)
pV_out_ggaag(x1, x2, x3, x4, x5)  =  pV_out_ggaag(x1, x2, x3, x4, x5)
pN13_out_gggg(x1, x2, x3, x4)  =  pN13_out_gggg(x1, x2, x3, x4)
pN12_out_gagg(x1, x2, x3, x4)  =  pN12_out_gagg(x1, x2, x3, x4)
pN11_out_ggagg(x1, x2, x3, x4, x5)  =  pN11_out_ggagg(x1, x2, x3, x4, x5)
pN10_out_gagag(x1, x2, x3, x4, x5)  =  pN10_out_gagag(x1, x2, x3, x4, x5)
pS_out_ggaag(x1, x2, x3, x4, x5)  =  pS_out_ggaag(x1, x2, x3, x4, x5)
U31_gg(x1, x2, x3)  =  U31_gg(x1, x2, x3)
safeT_in_g(x1)  =  safeT_in_g(x1)
safeT_out_g(x1)  =  safeT_out_g(x1)
U16_g(x1, x2, x3)  =  U16_g(x1, x2, x3)
pQ_out_gg(x1, x2)  =  pQ_out_gg(x1, x2)
safeP_out_gg(x1, x2)  =  safeP_out_gg(x1, x2)
pN9_out_gag(x1, x2, x3)  =  pN9_out_gag(x1, x2, x3)
pB_out_agaa(x1, x2, x3, x4)  =  pB_out_agaa(x1, x2, x3, x4)
queensA_out_a(x1)  =  queensA_out_a(x1)
NOTEQF_IN_GG(x1, x2)  =  NOTEQF_IN_GG(x1, x2)

We have to consider all (P,R,Pi)-chains

(64) UsableRulesProof (EQUIVALENT transformation)

For (infinitary) constructor rewriting [LOPSTR] we can delete all non-usable rules from R.

(65) Obligation:

Pi DP problem:
The TRS P consists of the following rules:

NOTEQF_IN_GG(s(T146), s(T147)) → NOTEQF_IN_GG(T146, T147)

R is empty.
Pi is empty.
We have to consider all (P,R,Pi)-chains

(66) PiDPToQDPProof (EQUIVALENT transformation)

Transforming (infinitary) constructor rewriting Pi-DP problem [LOPSTR] into ordinary QDP problem [LPAR04] by application of Pi.

(67) Obligation:

Q DP problem:
The TRS P consists of the following rules:

NOTEQF_IN_GG(s(T146), s(T147)) → NOTEQF_IN_GG(T146, T147)

R is empty.
Q is empty.
We have to consider all (P,Q,R)-chains.

(68) QDPSizeChangeProof (EQUIVALENT transformation)

By using the subterm criterion [SUBTERM_CRITERION] together with the size-change analysis [AAECC05] we have proven that there are no infinite chains for this DP problem.

From the DPs we obtained the following set of size-change graphs:

  • NOTEQF_IN_GG(s(T146), s(T147)) → NOTEQF_IN_GG(T146, T147)
    The graph contains the following edges 1 > 1, 2 > 2

(69) YES

(70) Obligation:

Pi DP problem:
The TRS P consists of the following rules:

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))

The TRS R consists of the following rules:

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))

The argument filtering Pi contains the following mapping:
queensA_in_a(x1)  =  queensA_in_a
U1_a(x1, x2, x3)  =  U1_a(x3)
pB_in_agaa(x1, x2, x3, x4)  =  pB_in_agaa(x2)
U24_agaa(x1, x2, x3, x4, x5)  =  U24_agaa(x2, x5)
deleteO_in_aga(x1, x2, x3)  =  deleteO_in_aga(x2)
deleteO_out_aga(x1, x2, x3)  =  deleteO_out_aga(x1, x2, x3)
U13_aga(x1, x2, x3, x4)  =  U13_aga(x2, x4)
deleteC_in_aga(x1, x2, x3)  =  deleteC_in_aga(x2)
.(x1, x2)  =  .(x1, x2)
deleteC_out_aga(x1, x2, x3)  =  deleteC_out_aga(x1, x2, x3)
U2_aga(x1, x2, x3, x4, x5)  =  U2_aga(x2, x3, x5)
U25_agaa(x1, x2, x3, x4, x5)  =  U25_agaa(x1, x2, x3, x5)
pN9_in_gag(x1, x2, x3)  =  pN9_in_gag(x1, x3)
U26_gag(x1, x2, x3, x4)  =  U26_gag(x1, x3, x4)
permD_in_ga(x1, x2)  =  permD_in_ga(x1)
[]  =  []
permD_out_ga(x1, x2)  =  permD_out_ga(x1, x2)
U3_ga(x1, x2, x3, x4, x5)  =  U3_ga(x1, x2, x5)
pE_in_aggaa(x1, x2, x3, x4, x5)  =  pE_in_aggaa(x2, x3)
U28_aggaa(x1, x2, x3, x4, x5, x6)  =  U28_aggaa(x2, x3, x6)
U29_aggaa(x1, x2, x3, x4, x5, x6)  =  U29_aggaa(x1, x2, x3, x4, x6)
pE_out_aggaa(x1, x2, x3, x4, x5)  =  pE_out_aggaa(x1, x2, x3, x4, x5)
U27_gag(x1, x2, x3, x4)  =  U27_gag(x1, x2, x3, x4)
safeP_in_gg(x1, x2)  =  safeP_in_gg(x1, x2)
U14_gg(x1, x2, x3)  =  U14_gg(x1, x2, x3)
pQ_in_gg(x1, x2)  =  pQ_in_gg(x1, x2)
U30_gg(x1, x2, x3)  =  U30_gg(x1, x2, x3)
noattackR_in_gg(x1, x2)  =  noattackR_in_gg(x1, x2)
noattackR_out_gg(x1, x2)  =  noattackR_out_gg(x1, x2)
U15_gg(x1, x2, x3, x4)  =  U15_gg(x1, x2, x3, x4)
pS_in_ggaag(x1, x2, x3, x4, x5)  =  pS_in_ggaag(x1, x2, x5)
U32_ggaag(x1, x2, x3, x4, x5, x6)  =  U32_ggaag(x1, x2, x5, x6)
notEqF_in_gg(x1, x2)  =  notEqF_in_gg(x1, x2)
0  =  0
s(x1)  =  s(x1)
notEqF_out_gg(x1, x2)  =  notEqF_out_gg(x1, x2)
U4_gg(x1, x2, x3)  =  U4_gg(x1, x2, x3)
U33_ggaag(x1, x2, x3, x4, x5, x6)  =  U33_ggaag(x1, x2, x5, x6)
pN10_in_gagag(x1, x2, x3, x4, x5)  =  pN10_in_gagag(x1, x3, x5)
U34_gagag(x1, x2, x3, x4, x5, x6)  =  U34_gagag(x1, x3, x5, x6)
addG_in_ga(x1, x2)  =  addG_in_ga(x1)
addG_out_ga(x1, x2)  =  addG_out_ga(x1, x2)
U5_ga(x1, x2, x3)  =  U5_ga(x1, x3)
U35_gagag(x1, x2, x3, x4, x5, x6)  =  U35_gagag(x1, x2, x3, x5, x6)
pN11_in_ggagg(x1, x2, x3, x4, x5)  =  pN11_in_ggagg(x1, x2, x4, x5)
U36_ggagg(x1, x2, x3, x4, x5, x6)  =  U36_ggagg(x1, x2, x4, x5, x6)
U37_ggagg(x1, x2, x3, x4, x5, x6)  =  U37_ggagg(x1, x2, x4, x5, x6)
pN12_in_gagg(x1, x2, x3, x4)  =  pN12_in_gagg(x1, x3, x4)
U38_gagg(x1, x2, x3, x4, x5)  =  U38_gagg(x1, x3, x4, x5)
U39_gagg(x1, x2, x3, x4, x5)  =  U39_gagg(x1, x2, x3, x4, x5)
pN13_in_gggg(x1, x2, x3, x4)  =  pN13_in_gggg(x1, x2, x3, x4)
U40_gggg(x1, x2, x3, x4, x5)  =  U40_gggg(x1, x2, x3, x4, x5)
U41_gggg(x1, x2, x3, x4, x5)  =  U41_gggg(x1, x2, x3, x4, x5)
noattackU_in_gg(x1, x2)  =  noattackU_in_gg(x1, x2)
noattackU_out_gg(x1, x2)  =  noattackU_out_gg(x1, x2)
U17_gg(x1, x2, x3, x4)  =  U17_gg(x1, x2, x3, x4)
pV_in_ggaag(x1, x2, x3, x4, x5)  =  pV_in_ggaag(x1, x2, x5)
U42_ggaag(x1, x2, x3, x4, x5, x6)  =  U42_ggaag(x1, x2, x5, x6)
U43_ggaag(x1, x2, x3, x4, x5, x6)  =  U43_ggaag(x1, x2, x5, x6)
pN14_in_gagag(x1, x2, x3, x4, x5)  =  pN14_in_gagag(x1, x3, x5)
U44_gagag(x1, x2, x3, x4, x5, x6)  =  U44_gagag(x1, x3, x5, x6)
addH_in_ga(x1, x2)  =  addH_in_ga(x1)
addH_out_ga(x1, x2)  =  addH_out_ga(x1, x2)
U6_ga(x1, x2, x3)  =  U6_ga(x1, x3)
U45_gagag(x1, x2, x3, x4, x5, x6)  =  U45_gagag(x1, x2, x3, x5, x6)
pN15_in_ggagg(x1, x2, x3, x4, x5)  =  pN15_in_ggagg(x1, x2, x4, x5)
U46_ggagg(x1, x2, x3, x4, x5, x6)  =  U46_ggagg(x1, x2, x4, x5, x6)
U47_ggagg(x1, x2, x3, x4, x5, x6)  =  U47_ggagg(x1, x2, x4, x5, x6)
pN16_in_gagg(x1, x2, x3, x4)  =  pN16_in_gagg(x1, x3, x4)
U48_gagg(x1, x2, x3, x4, x5)  =  U48_gagg(x1, x3, x4, x5)
U49_gagg(x1, x2, x3, x4, x5)  =  U49_gagg(x1, x2, x3, x4, x5)
pN17_in_gggg(x1, x2, x3, x4)  =  pN17_in_gggg(x1, x2, x3, x4)
U50_gggg(x1, x2, x3, x4, x5)  =  U50_gggg(x1, x2, x3, x4, x5)
U51_gggg(x1, x2, x3, x4, x5)  =  U51_gggg(x1, x2, x3, x4, x5)
noattackW_in_gg(x1, x2)  =  noattackW_in_gg(x1, x2)
noattackW_out_gg(x1, x2)  =  noattackW_out_gg(x1, x2)
U18_gg(x1, x2, x3, x4)  =  U18_gg(x1, x2, x3, x4)
pX_in_ggaag(x1, x2, x3, x4, x5)  =  pX_in_ggaag(x1, x2, x5)
U52_ggaag(x1, x2, x3, x4, x5, x6)  =  U52_ggaag(x1, x2, x5, x6)
U53_ggaag(x1, x2, x3, x4, x5, x6)  =  U53_ggaag(x1, x2, x5, x6)
pN18_in_gagag(x1, x2, x3, x4, x5)  =  pN18_in_gagag(x1, x3, x5)
U54_gagag(x1, x2, x3, x4, x5, x6)  =  U54_gagag(x1, x3, x5, x6)
addI_in_ga(x1, x2)  =  addI_in_ga(x1)
addI_out_ga(x1, x2)  =  addI_out_ga(x1, x2)
U7_ga(x1, x2, x3)  =  U7_ga(x1, x3)
U55_gagag(x1, x2, x3, x4, x5, x6)  =  U55_gagag(x1, x2, x3, x5, x6)
pN19_in_ggagg(x1, x2, x3, x4, x5)  =  pN19_in_ggagg(x1, x2, x4, x5)
U56_ggagg(x1, x2, x3, x4, x5, x6)  =  U56_ggagg(x1, x2, x4, x5, x6)
U57_ggagg(x1, x2, x3, x4, x5, x6)  =  U57_ggagg(x1, x2, x4, x5, x6)
pN20_in_gagg(x1, x2, x3, x4)  =  pN20_in_gagg(x1, x3, x4)
U58_gagg(x1, x2, x3, x4, x5)  =  U58_gagg(x1, x3, x4, x5)
U59_gagg(x1, x2, x3, x4, x5)  =  U59_gagg(x1, x2, x3, x4, x5)
pN21_in_gggg(x1, x2, x3, x4)  =  pN21_in_gggg(x1, x2, x3, x4)
U60_gggg(x1, x2, x3, x4, x5)  =  U60_gggg(x1, x2, x3, x4, x5)
U61_gggg(x1, x2, x3, x4, x5)  =  U61_gggg(x1, x2, x3, x4, x5)
noattackY_in_gg(x1, x2)  =  noattackY_in_gg(x1, x2)
noattackY_out_gg(x1, x2)  =  noattackY_out_gg(x1, x2)
U19_gg(x1, x2, x3, x4)  =  U19_gg(x1, x2, x3, x4)
pZ_in_ggaag(x1, x2, x3, x4, x5)  =  pZ_in_ggaag(x1, x2, x5)
U62_ggaag(x1, x2, x3, x4, x5, x6)  =  U62_ggaag(x1, x2, x5, x6)
U63_ggaag(x1, x2, x3, x4, x5, x6)  =  U63_ggaag(x1, x2, x5, x6)
pN22_in_gagag(x1, x2, x3, x4, x5)  =  pN22_in_gagag(x1, x3, x5)
U64_gagag(x1, x2, x3, x4, x5, x6)  =  U64_gagag(x1, x3, x5, x6)
addJ_in_ga(x1, x2)  =  addJ_in_ga(x1)
addJ_out_ga(x1, x2)  =  addJ_out_ga(x1, x2)
U8_ga(x1, x2, x3)  =  U8_ga(x1, x3)
U65_gagag(x1, x2, x3, x4, x5, x6)  =  U65_gagag(x1, x2, x3, x5, x6)
pN23_in_ggagg(x1, x2, x3, x4, x5)  =  pN23_in_ggagg(x1, x2, x4, x5)
U66_ggagg(x1, x2, x3, x4, x5, x6)  =  U66_ggagg(x1, x2, x4, x5, x6)
U67_ggagg(x1, x2, x3, x4, x5, x6)  =  U67_ggagg(x1, x2, x4, x5, x6)
pN24_in_gagg(x1, x2, x3, x4)  =  pN24_in_gagg(x1, x3, x4)
U68_gagg(x1, x2, x3, x4, x5)  =  U68_gagg(x1, x3, x4, x5)
U69_gagg(x1, x2, x3, x4, x5)  =  U69_gagg(x1, x2, x3, x4, x5)
pN25_in_gggg(x1, x2, x3, x4)  =  pN25_in_gggg(x1, x2, x3, x4)
U70_gggg(x1, x2, x3, x4, x5)  =  U70_gggg(x1, x2, x3, x4, x5)
U71_gggg(x1, x2, x3, x4, x5)  =  U71_gggg(x1, x2, x3, x4, x5)
noattackN1_in_gg(x1, x2)  =  noattackN1_in_gg(x1, x2)
noattackN1_out_gg(x1, x2)  =  noattackN1_out_gg(x1, x2)
U20_gg(x1, x2, x3, x4)  =  U20_gg(x1, x2, x3, x4)
pN2_in_ggaag(x1, x2, x3, x4, x5)  =  pN2_in_ggaag(x1, x2, x5)
U72_ggaag(x1, x2, x3, x4, x5, x6)  =  U72_ggaag(x1, x2, x5, x6)
U73_ggaag(x1, x2, x3, x4, x5, x6)  =  U73_ggaag(x1, x2, x5, x6)
pN26_in_gagag(x1, x2, x3, x4, x5)  =  pN26_in_gagag(x1, x3, x5)
U74_gagag(x1, x2, x3, x4, x5, x6)  =  U74_gagag(x1, x3, x5, x6)
addK_in_ga(x1, x2)  =  addK_in_ga(x1)
addK_out_ga(x1, x2)  =  addK_out_ga(x1, x2)
U9_ga(x1, x2, x3)  =  U9_ga(x1, x3)
U75_gagag(x1, x2, x3, x4, x5, x6)  =  U75_gagag(x1, x2, x3, x5, x6)
pN27_in_ggagg(x1, x2, x3, x4, x5)  =  pN27_in_ggagg(x1, x2, x4, x5)
U76_ggagg(x1, x2, x3, x4, x5, x6)  =  U76_ggagg(x1, x2, x4, x5, x6)
U77_ggagg(x1, x2, x3, x4, x5, x6)  =  U77_ggagg(x1, x2, x4, x5, x6)
pN28_in_gagg(x1, x2, x3, x4)  =  pN28_in_gagg(x1, x3, x4)
U78_gagg(x1, x2, x3, x4, x5)  =  U78_gagg(x1, x3, x4, x5)
U79_gagg(x1, x2, x3, x4, x5)  =  U79_gagg(x1, x2, x3, x4, x5)
pN29_in_gggg(x1, x2, x3, x4)  =  pN29_in_gggg(x1, x2, x3, x4)
U80_gggg(x1, x2, x3, x4, x5)  =  U80_gggg(x1, x2, x3, x4, x5)
U81_gggg(x1, x2, x3, x4, x5)  =  U81_gggg(x1, x2, x3, x4, x5)
noattackN3_in_gg(x1, x2)  =  noattackN3_in_gg(x1, x2)
noattackN3_out_gg(x1, x2)  =  noattackN3_out_gg(x1, x2)
U21_gg(x1, x2, x3, x4)  =  U21_gg(x1, x2, x3, x4)
pN4_in_ggaag(x1, x2, x3, x4, x5)  =  pN4_in_ggaag(x1, x2, x5)
U82_ggaag(x1, x2, x3, x4, x5, x6)  =  U82_ggaag(x1, x2, x5, x6)
U83_ggaag(x1, x2, x3, x4, x5, x6)  =  U83_ggaag(x1, x2, x5, x6)
pN30_in_gagag(x1, x2, x3, x4, x5)  =  pN30_in_gagag(x1, x3, x5)
U84_gagag(x1, x2, x3, x4, x5, x6)  =  U84_gagag(x1, x3, x5, x6)
addL_in_ga(x1, x2)  =  addL_in_ga(x1)
addL_out_ga(x1, x2)  =  addL_out_ga(x1, x2)
U10_ga(x1, x2, x3)  =  U10_ga(x1, x3)
U85_gagag(x1, x2, x3, x4, x5, x6)  =  U85_gagag(x1, x2, x3, x5, x6)
pN31_in_ggagg(x1, x2, x3, x4, x5)  =  pN31_in_ggagg(x1, x2, x4, x5)
U86_ggagg(x1, x2, x3, x4, x5, x6)  =  U86_ggagg(x1, x2, x4, x5, x6)
U87_ggagg(x1, x2, x3, x4, x5, x6)  =  U87_ggagg(x1, x2, x4, x5, x6)
pN32_in_gagg(x1, x2, x3, x4)  =  pN32_in_gagg(x1, x3, x4)
U88_gagg(x1, x2, x3, x4, x5)  =  U88_gagg(x1, x3, x4, x5)
U89_gagg(x1, x2, x3, x4, x5)  =  U89_gagg(x1, x2, x3, x4, x5)
pN33_in_gggg(x1, x2, x3, x4)  =  pN33_in_gggg(x1, x2, x3, x4)
U90_gggg(x1, x2, x3, x4, x5)  =  U90_gggg(x1, x2, x3, x4, x5)
U91_gggg(x1, x2, x3, x4, x5)  =  U91_gggg(x1, x2, x3, x4, x5)
noattackN5_in_gg(x1, x2)  =  noattackN5_in_gg(x1, x2)
noattackN5_out_gg(x1, x2)  =  noattackN5_out_gg(x1, x2)
U22_gg(x1, x2, x3, x4)  =  U22_gg(x1, x2, x3, x4)
pN6_in_ggaagg(x1, x2, x3, x4, x5, x6)  =  pN6_in_ggaagg(x1, x2, x5, x6)
U92_ggaagg(x1, x2, x3, x4, x5, x6, x7)  =  U92_ggaagg(x1, x2, x5, x6, x7)
U93_ggaagg(x1, x2, x3, x4, x5, x6, x7)  =  U93_ggaagg(x1, x2, x5, x6, x7)
pN34_in_gagagg(x1, x2, x3, x4, x5, x6)  =  pN34_in_gagagg(x1, x3, x5, x6)
U94_gagagg(x1, x2, x3, x4, x5, x6, x7)  =  U94_gagagg(x1, x3, x5, x6, x7)
addM_in_ga(x1, x2)  =  addM_in_ga(x1)
addM_out_ga(x1, x2)  =  addM_out_ga(x1, x2)
U11_ga(x1, x2, x3)  =  U11_ga(x1, x3)
U95_gagagg(x1, x2, x3, x4, x5, x6, x7)  =  U95_gagagg(x1, x2, x3, x5, x6, x7)
pN35_in_ggaggg(x1, x2, x3, x4, x5, x6)  =  pN35_in_ggaggg(x1, x2, x4, x5, x6)
U96_ggaggg(x1, x2, x3, x4, x5, x6, x7)  =  U96_ggaggg(x1, x2, x4, x5, x6, x7)
U97_ggaggg(x1, x2, x3, x4, x5, x6, x7)  =  U97_ggaggg(x1, x2, x4, x5, x6, x7)
pN36_in_gaggg(x1, x2, x3, x4, x5)  =  pN36_in_gaggg(x1, x3, x4, x5)
U98_gaggg(x1, x2, x3, x4, x5, x6)  =  U98_gaggg(x1, x3, x4, x5, x6)
U99_gaggg(x1, x2, x3, x4, x5, x6)  =  U99_gaggg(x1, x2, x3, x4, x5, x6)
pN37_in_ggggg(x1, x2, x3, x4, x5)  =  pN37_in_ggggg(x1, x2, x3, x4, x5)
U100_ggggg(x1, x2, x3, x4, x5, x6)  =  U100_ggggg(x1, x2, x3, x4, x5, x6)
U101_ggggg(x1, x2, x3, x4, x5, x6)  =  U101_ggggg(x1, x2, x3, x4, x5, x6)
noattackN7_in_ggg(x1, x2, x3)  =  noattackN7_in_ggg(x1, x2, x3)
noattackN7_out_ggg(x1, x2, x3)  =  noattackN7_out_ggg(x1, x2, x3)
U23_ggg(x1, x2, x3, x4, x5)  =  U23_ggg(x1, x2, x3, x4, x5)
pN8_in_gggaag(x1, x2, x3, x4, x5, x6)  =  pN8_in_gggaag(x1, x2, x3, x6)
U102_gggaag(x1, x2, x3, x4, x5, x6, x7)  =  U102_gggaag(x1, x2, x3, x6, x7)
U103_gggaag(x1, x2, x3, x4, x5, x6, x7)  =  U103_gggaag(x1, x2, x3, x6, x7)
pN38_in_ggagag(x1, x2, x3, x4, x5, x6)  =  pN38_in_ggagag(x1, x2, x4, x6)
U104_ggagag(x1, x2, x3, x4, x5, x6, x7)  =  U104_ggagag(x1, x2, x4, x6, x7)
addN_in_gga(x1, x2, x3)  =  addN_in_gga(x1, x2)
addN_out_gga(x1, x2, x3)  =  addN_out_gga(x1, x2, x3)
U12_gga(x1, x2, x3, x4)  =  U12_gga(x1, x2, x4)
U105_ggagag(x1, x2, x3, x4, x5, x6, x7)  =  U105_ggagag(x1, x2, x3, x4, x6, x7)
pN39_in_gggagg(x1, x2, x3, x4, x5, x6)  =  pN39_in_gggagg(x1, x2, x3, x5, x6)
U106_gggagg(x1, x2, x3, x4, x5, x6, x7)  =  U106_gggagg(x1, x2, x3, x5, x6, x7)
U107_gggagg(x1, x2, x3, x4, x5, x6, x7)  =  U107_gggagg(x1, x2, x3, x5, x6, x7)
pN40_in_ggagg(x1, x2, x3, x4, x5)  =  pN40_in_ggagg(x1, x2, x4, x5)
U108_ggagg(x1, x2, x3, x4, x5, x6)  =  U108_ggagg(x1, x2, x4, x5, x6)
U109_ggagg(x1, x2, x3, x4, x5, x6)  =  U109_ggagg(x1, x2, x3, x4, x5, x6)
pN37_out_ggggg(x1, x2, x3, x4, x5)  =  pN37_out_ggggg(x1, x2, x3, x4, x5)
pN40_out_ggagg(x1, x2, x3, x4, x5)  =  pN40_out_ggagg(x1, x2, x3, x4, x5)
pN39_out_gggagg(x1, x2, x3, x4, x5, x6)  =  pN39_out_gggagg(x1, x2, x3, x4, x5, x6)
pN38_out_ggagag(x1, x2, x3, x4, x5, x6)  =  pN38_out_ggagag(x1, x2, x3, x4, x5, x6)
pN8_out_gggaag(x1, x2, x3, x4, x5, x6)  =  pN8_out_gggaag(x1, x2, x3, x4, x5, x6)
pN36_out_gaggg(x1, x2, x3, x4, x5)  =  pN36_out_gaggg(x1, x2, x3, x4, x5)
pN35_out_ggaggg(x1, x2, x3, x4, x5, x6)  =  pN35_out_ggaggg(x1, x2, x3, x4, x5, x6)
pN34_out_gagagg(x1, x2, x3, x4, x5, x6)  =  pN34_out_gagagg(x1, x2, x3, x4, x5, x6)
pN6_out_ggaagg(x1, x2, x3, x4, x5, x6)  =  pN6_out_ggaagg(x1, x2, x3, x4, x5, x6)
pN33_out_gggg(x1, x2, x3, x4)  =  pN33_out_gggg(x1, x2, x3, x4)
pN32_out_gagg(x1, x2, x3, x4)  =  pN32_out_gagg(x1, x2, x3, x4)
pN31_out_ggagg(x1, x2, x3, x4, x5)  =  pN31_out_ggagg(x1, x2, x3, x4, x5)
pN30_out_gagag(x1, x2, x3, x4, x5)  =  pN30_out_gagag(x1, x2, x3, x4, x5)
pN4_out_ggaag(x1, x2, x3, x4, x5)  =  pN4_out_ggaag(x1, x2, x3, x4, x5)
pN29_out_gggg(x1, x2, x3, x4)  =  pN29_out_gggg(x1, x2, x3, x4)
pN28_out_gagg(x1, x2, x3, x4)  =  pN28_out_gagg(x1, x2, x3, x4)
pN27_out_ggagg(x1, x2, x3, x4, x5)  =  pN27_out_ggagg(x1, x2, x3, x4, x5)
pN26_out_gagag(x1, x2, x3, x4, x5)  =  pN26_out_gagag(x1, x2, x3, x4, x5)
pN2_out_ggaag(x1, x2, x3, x4, x5)  =  pN2_out_ggaag(x1, x2, x3, x4, x5)
pN25_out_gggg(x1, x2, x3, x4)  =  pN25_out_gggg(x1, x2, x3, x4)
pN24_out_gagg(x1, x2, x3, x4)  =  pN24_out_gagg(x1, x2, x3, x4)
pN23_out_ggagg(x1, x2, x3, x4, x5)  =  pN23_out_ggagg(x1, x2, x3, x4, x5)
pN22_out_gagag(x1, x2, x3, x4, x5)  =  pN22_out_gagag(x1, x2, x3, x4, x5)
pZ_out_ggaag(x1, x2, x3, x4, x5)  =  pZ_out_ggaag(x1, x2, x3, x4, x5)
pN21_out_gggg(x1, x2, x3, x4)  =  pN21_out_gggg(x1, x2, x3, x4)
pN20_out_gagg(x1, x2, x3, x4)  =  pN20_out_gagg(x1, x2, x3, x4)
pN19_out_ggagg(x1, x2, x3, x4, x5)  =  pN19_out_ggagg(x1, x2, x3, x4, x5)
pN18_out_gagag(x1, x2, x3, x4, x5)  =  pN18_out_gagag(x1, x2, x3, x4, x5)
pX_out_ggaag(x1, x2, x3, x4, x5)  =  pX_out_ggaag(x1, x2, x3, x4, x5)
pN17_out_gggg(x1, x2, x3, x4)  =  pN17_out_gggg(x1, x2, x3, x4)
pN16_out_gagg(x1, x2, x3, x4)  =  pN16_out_gagg(x1, x2, x3, x4)
pN15_out_ggagg(x1, x2, x3, x4, x5)  =  pN15_out_ggagg(x1, x2, x3, x4, x5)
pN14_out_gagag(x1, x2, x3, x4, x5)  =  pN14_out_gagag(x1, x2, x3, x4, x5)
pV_out_ggaag(x1, x2, x3, x4, x5)  =  pV_out_ggaag(x1, x2, x3, x4, x5)
pN13_out_gggg(x1, x2, x3, x4)  =  pN13_out_gggg(x1, x2, x3, x4)
pN12_out_gagg(x1, x2, x3, x4)  =  pN12_out_gagg(x1, x2, x3, x4)
pN11_out_ggagg(x1, x2, x3, x4, x5)  =  pN11_out_ggagg(x1, x2, x3, x4, x5)
pN10_out_gagag(x1, x2, x3, x4, x5)  =  pN10_out_gagag(x1, x2, x3, x4, x5)
pS_out_ggaag(x1, x2, x3, x4, x5)  =  pS_out_ggaag(x1, x2, x3, x4, x5)
U31_gg(x1, x2, x3)  =  U31_gg(x1, x2, x3)
safeT_in_g(x1)  =  safeT_in_g(x1)
safeT_out_g(x1)  =  safeT_out_g(x1)
U16_g(x1, x2, x3)  =  U16_g(x1, x2, x3)
pQ_out_gg(x1, x2)  =  pQ_out_gg(x1, x2)
safeP_out_gg(x1, x2)  =  safeP_out_gg(x1, x2)
pN9_out_gag(x1, x2, x3)  =  pN9_out_gag(x1, x2, x3)
pB_out_agaa(x1, x2, x3, x4)  =  pB_out_agaa(x1, x2, x3, x4)
queensA_out_a(x1)  =  queensA_out_a(x1)
PN37_IN_GGGGG(x1, x2, x3, x4, x5)  =  PN37_IN_GGGGG(x1, x2, x3, x4, x5)
U100_GGGGG(x1, x2, x3, x4, x5, x6)  =  U100_GGGGG(x1, x2, x3, x4, x5, x6)
NOATTACKN7_IN_GGG(x1, x2, x3)  =  NOATTACKN7_IN_GGG(x1, x2, x3)
PN8_IN_GGGAAG(x1, x2, x3, x4, x5, x6)  =  PN8_IN_GGGAAG(x1, x2, x3, x6)
U102_GGGAAG(x1, x2, x3, x4, x5, x6, x7)  =  U102_GGGAAG(x1, x2, x3, x6, x7)
PN38_IN_GGAGAG(x1, x2, x3, x4, x5, x6)  =  PN38_IN_GGAGAG(x1, x2, x4, x6)
U104_GGAGAG(x1, x2, x3, x4, x5, x6, x7)  =  U104_GGAGAG(x1, x2, x4, x6, x7)
PN39_IN_GGGAGG(x1, x2, x3, x4, x5, x6)  =  PN39_IN_GGGAGG(x1, x2, x3, x5, x6)
U106_GGGAGG(x1, x2, x3, x4, x5, x6, x7)  =  U106_GGGAGG(x1, x2, x3, x5, x6, x7)
PN40_IN_GGAGG(x1, x2, x3, x4, x5)  =  PN40_IN_GGAGG(x1, x2, x4, x5)
U108_GGAGG(x1, x2, x3, x4, x5, x6)  =  U108_GGAGG(x1, x2, x4, x5, x6)

We have to consider all (P,R,Pi)-chains

(71) UsableRulesProof (EQUIVALENT transformation)

For (infinitary) constructor rewriting [LOPSTR] we can delete all non-usable rules from R.

(72) Obligation:

Pi DP problem:
The TRS P consists of the following rules:

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))

The TRS R consists of the following rules:

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))

The argument filtering Pi contains the following mapping:
.(x1, x2)  =  .(x1, x2)
notEqF_in_gg(x1, x2)  =  notEqF_in_gg(x1, x2)
0  =  0
s(x1)  =  s(x1)
notEqF_out_gg(x1, x2)  =  notEqF_out_gg(x1, x2)
U4_gg(x1, x2, x3)  =  U4_gg(x1, x2, x3)
addN_in_gga(x1, x2, x3)  =  addN_in_gga(x1, x2)
addN_out_gga(x1, x2, x3)  =  addN_out_gga(x1, x2, x3)
U12_gga(x1, x2, x3, x4)  =  U12_gga(x1, x2, x4)
PN37_IN_GGGGG(x1, x2, x3, x4, x5)  =  PN37_IN_GGGGG(x1, x2, x3, x4, x5)
U100_GGGGG(x1, x2, x3, x4, x5, x6)  =  U100_GGGGG(x1, x2, x3, x4, x5, x6)
NOATTACKN7_IN_GGG(x1, x2, x3)  =  NOATTACKN7_IN_GGG(x1, x2, x3)
PN8_IN_GGGAAG(x1, x2, x3, x4, x5, x6)  =  PN8_IN_GGGAAG(x1, x2, x3, x6)
U102_GGGAAG(x1, x2, x3, x4, x5, x6, x7)  =  U102_GGGAAG(x1, x2, x3, x6, x7)
PN38_IN_GGAGAG(x1, x2, x3, x4, x5, x6)  =  PN38_IN_GGAGAG(x1, x2, x4, x6)
U104_GGAGAG(x1, x2, x3, x4, x5, x6, x7)  =  U104_GGAGAG(x1, x2, x4, x6, x7)
PN39_IN_GGGAGG(x1, x2, x3, x4, x5, x6)  =  PN39_IN_GGGAGG(x1, x2, x3, x5, x6)
U106_GGGAGG(x1, x2, x3, x4, x5, x6, x7)  =  U106_GGGAGG(x1, x2, x3, x5, x6, x7)
PN40_IN_GGAGG(x1, x2, x3, x4, x5)  =  PN40_IN_GGAGG(x1, x2, x4, x5)
U108_GGAGG(x1, x2, x3, x4, x5, x6)  =  U108_GGAGG(x1, x2, x4, x5, x6)

We have to consider all (P,R,Pi)-chains

(73) PiDPToQDPProof (SOUND transformation)

Transforming (infinitary) constructor rewriting Pi-DP problem [LOPSTR] into ordinary QDP problem [LPAR04] by application of Pi.

(74) Obligation:

Q DP problem:
The TRS P consists of the following rules:

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))

The TRS R consists of the following rules:

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))

The set Q consists of the following terms:

notEqF_in_gg(x0, x1)
addN_in_gga(x0, x1)
U4_gg(x0, x1, x2)
U12_gga(x0, x1, x2)

We have to consider all (P,Q,R)-chains.

(75) QDPSizeChangeProof (EQUIVALENT transformation)

By using the subterm criterion [SUBTERM_CRITERION] together with the size-change analysis [AAECC05] we have proven that there are no infinite chains for this DP problem.

From the DPs we obtained the following set of size-change graphs:

  • U100_GGGGG(T342, T359, T341, T343, T346, notEqF_out_gg(T342, T359)) → NOATTACKN7_IN_GGG(T341, T343, T346)
    The graph contains the following edges 3 >= 1, 4 >= 2, 5 >= 3

  • U108_GGAGG(T386, T389, T387, T388, addN_out_gga(T386, T389, T418)) → PN37_IN_GGGGG(T387, T418, T386, T388, s(T389))
    The graph contains the following edges 3 >= 1, 5 > 2, 1 >= 3, 5 > 3, 4 >= 4

  • NOATTACKN7_IN_GGG(T386, .(T387, T388), T389) → PN8_IN_GGGAAG(T386, T387, T389, T388)
    The graph contains the following edges 1 >= 1, 2 > 2, 3 >= 3, 2 > 4

  • PN37_IN_GGGGG(T342, T359, T341, T343, T346) → U100_GGGGG(T342, T359, T341, T343, T346, notEqF_in_gg(T342, T359))
    The graph contains the following edges 1 >= 1, 2 >= 2, 3 >= 3, 4 >= 4, 5 >= 5

  • PN8_IN_GGGAAG(T386, T387, T389, T388) → U102_GGGAAG(T386, T387, T389, T388, notEqF_in_gg(T386, T387))
    The graph contains the following edges 1 >= 1, 2 >= 2, 3 >= 3, 4 >= 4

  • U102_GGGAAG(T386, T387, T389, T388, notEqF_out_gg(T386, T387)) → PN38_IN_GGAGAG(T387, T389, T386, T388)
    The graph contains the following edges 2 >= 1, 5 > 1, 3 >= 2, 1 >= 3, 5 > 3, 4 >= 4

  • PN38_IN_GGAGAG(T387, T389, T386, T388) → U104_GGAGAG(T387, T389, T386, T388, addN_in_gga(T387, T389))
    The graph contains the following edges 1 >= 1, 2 >= 2, 3 >= 3, 4 >= 4

  • U104_GGAGAG(T387, T389, T386, T388, addN_out_gga(T387, T389, T396)) → PN39_IN_GGGAGG(T386, T396, T389, T387, T388)
    The graph contains the following edges 3 >= 1, 5 > 2, 2 >= 3, 5 > 3, 1 >= 4, 5 > 4, 4 >= 5

  • PN39_IN_GGGAGG(T386, T396, T389, T387, T388) → U106_GGGAGG(T386, T396, T389, T387, T388, notEqF_in_gg(T386, T396))
    The graph contains the following edges 1 >= 1, 2 >= 2, 3 >= 3, 4 >= 4, 5 >= 5

  • U106_GGGAGG(T386, T396, T389, T387, T388, notEqF_out_gg(T386, T396)) → PN40_IN_GGAGG(T386, T389, T387, T388)
    The graph contains the following edges 1 >= 1, 6 > 1, 3 >= 2, 4 >= 3, 5 >= 4

  • PN40_IN_GGAGG(T386, T389, T387, T388) → U108_GGAGG(T386, T389, T387, T388, addN_in_gga(T386, T389))
    The graph contains the following edges 1 >= 1, 2 >= 2, 3 >= 3, 4 >= 4

(76) YES

(77) Obligation:

Pi DP problem:
The TRS P consists of the following rules:

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))

The TRS R consists of the following rules:

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))

The argument filtering Pi contains the following mapping:
queensA_in_a(x1)  =  queensA_in_a
U1_a(x1, x2, x3)  =  U1_a(x3)
pB_in_agaa(x1, x2, x3, x4)  =  pB_in_agaa(x2)
U24_agaa(x1, x2, x3, x4, x5)  =  U24_agaa(x2, x5)
deleteO_in_aga(x1, x2, x3)  =  deleteO_in_aga(x2)
deleteO_out_aga(x1, x2, x3)  =  deleteO_out_aga(x1, x2, x3)
U13_aga(x1, x2, x3, x4)  =  U13_aga(x2, x4)
deleteC_in_aga(x1, x2, x3)  =  deleteC_in_aga(x2)
.(x1, x2)  =  .(x1, x2)
deleteC_out_aga(x1, x2, x3)  =  deleteC_out_aga(x1, x2, x3)
U2_aga(x1, x2, x3, x4, x5)  =  U2_aga(x2, x3, x5)
U25_agaa(x1, x2, x3, x4, x5)  =  U25_agaa(x1, x2, x3, x5)
pN9_in_gag(x1, x2, x3)  =  pN9_in_gag(x1, x3)
U26_gag(x1, x2, x3, x4)  =  U26_gag(x1, x3, x4)
permD_in_ga(x1, x2)  =  permD_in_ga(x1)
[]  =  []
permD_out_ga(x1, x2)  =  permD_out_ga(x1, x2)
U3_ga(x1, x2, x3, x4, x5)  =  U3_ga(x1, x2, x5)
pE_in_aggaa(x1, x2, x3, x4, x5)  =  pE_in_aggaa(x2, x3)
U28_aggaa(x1, x2, x3, x4, x5, x6)  =  U28_aggaa(x2, x3, x6)
U29_aggaa(x1, x2, x3, x4, x5, x6)  =  U29_aggaa(x1, x2, x3, x4, x6)
pE_out_aggaa(x1, x2, x3, x4, x5)  =  pE_out_aggaa(x1, x2, x3, x4, x5)
U27_gag(x1, x2, x3, x4)  =  U27_gag(x1, x2, x3, x4)
safeP_in_gg(x1, x2)  =  safeP_in_gg(x1, x2)
U14_gg(x1, x2, x3)  =  U14_gg(x1, x2, x3)
pQ_in_gg(x1, x2)  =  pQ_in_gg(x1, x2)
U30_gg(x1, x2, x3)  =  U30_gg(x1, x2, x3)
noattackR_in_gg(x1, x2)  =  noattackR_in_gg(x1, x2)
noattackR_out_gg(x1, x2)  =  noattackR_out_gg(x1, x2)
U15_gg(x1, x2, x3, x4)  =  U15_gg(x1, x2, x3, x4)
pS_in_ggaag(x1, x2, x3, x4, x5)  =  pS_in_ggaag(x1, x2, x5)
U32_ggaag(x1, x2, x3, x4, x5, x6)  =  U32_ggaag(x1, x2, x5, x6)
notEqF_in_gg(x1, x2)  =  notEqF_in_gg(x1, x2)
0  =  0
s(x1)  =  s(x1)
notEqF_out_gg(x1, x2)  =  notEqF_out_gg(x1, x2)
U4_gg(x1, x2, x3)  =  U4_gg(x1, x2, x3)
U33_ggaag(x1, x2, x3, x4, x5, x6)  =  U33_ggaag(x1, x2, x5, x6)
pN10_in_gagag(x1, x2, x3, x4, x5)  =  pN10_in_gagag(x1, x3, x5)
U34_gagag(x1, x2, x3, x4, x5, x6)  =  U34_gagag(x1, x3, x5, x6)
addG_in_ga(x1, x2)  =  addG_in_ga(x1)
addG_out_ga(x1, x2)  =  addG_out_ga(x1, x2)
U5_ga(x1, x2, x3)  =  U5_ga(x1, x3)
U35_gagag(x1, x2, x3, x4, x5, x6)  =  U35_gagag(x1, x2, x3, x5, x6)
pN11_in_ggagg(x1, x2, x3, x4, x5)  =  pN11_in_ggagg(x1, x2, x4, x5)
U36_ggagg(x1, x2, x3, x4, x5, x6)  =  U36_ggagg(x1, x2, x4, x5, x6)
U37_ggagg(x1, x2, x3, x4, x5, x6)  =  U37_ggagg(x1, x2, x4, x5, x6)
pN12_in_gagg(x1, x2, x3, x4)  =  pN12_in_gagg(x1, x3, x4)
U38_gagg(x1, x2, x3, x4, x5)  =  U38_gagg(x1, x3, x4, x5)
U39_gagg(x1, x2, x3, x4, x5)  =  U39_gagg(x1, x2, x3, x4, x5)
pN13_in_gggg(x1, x2, x3, x4)  =  pN13_in_gggg(x1, x2, x3, x4)
U40_gggg(x1, x2, x3, x4, x5)  =  U40_gggg(x1, x2, x3, x4, x5)
U41_gggg(x1, x2, x3, x4, x5)  =  U41_gggg(x1, x2, x3, x4, x5)
noattackU_in_gg(x1, x2)  =  noattackU_in_gg(x1, x2)
noattackU_out_gg(x1, x2)  =  noattackU_out_gg(x1, x2)
U17_gg(x1, x2, x3, x4)  =  U17_gg(x1, x2, x3, x4)
pV_in_ggaag(x1, x2, x3, x4, x5)  =  pV_in_ggaag(x1, x2, x5)
U42_ggaag(x1, x2, x3, x4, x5, x6)  =  U42_ggaag(x1, x2, x5, x6)
U43_ggaag(x1, x2, x3, x4, x5, x6)  =  U43_ggaag(x1, x2, x5, x6)
pN14_in_gagag(x1, x2, x3, x4, x5)  =  pN14_in_gagag(x1, x3, x5)
U44_gagag(x1, x2, x3, x4, x5, x6)  =  U44_gagag(x1, x3, x5, x6)
addH_in_ga(x1, x2)  =  addH_in_ga(x1)
addH_out_ga(x1, x2)  =  addH_out_ga(x1, x2)
U6_ga(x1, x2, x3)  =  U6_ga(x1, x3)
U45_gagag(x1, x2, x3, x4, x5, x6)  =  U45_gagag(x1, x2, x3, x5, x6)
pN15_in_ggagg(x1, x2, x3, x4, x5)  =  pN15_in_ggagg(x1, x2, x4, x5)
U46_ggagg(x1, x2, x3, x4, x5, x6)  =  U46_ggagg(x1, x2, x4, x5, x6)
U47_ggagg(x1, x2, x3, x4, x5, x6)  =  U47_ggagg(x1, x2, x4, x5, x6)
pN16_in_gagg(x1, x2, x3, x4)  =  pN16_in_gagg(x1, x3, x4)
U48_gagg(x1, x2, x3, x4, x5)  =  U48_gagg(x1, x3, x4, x5)
U49_gagg(x1, x2, x3, x4, x5)  =  U49_gagg(x1, x2, x3, x4, x5)
pN17_in_gggg(x1, x2, x3, x4)  =  pN17_in_gggg(x1, x2, x3, x4)
U50_gggg(x1, x2, x3, x4, x5)  =  U50_gggg(x1, x2, x3, x4, x5)
U51_gggg(x1, x2, x3, x4, x5)  =  U51_gggg(x1, x2, x3, x4, x5)
noattackW_in_gg(x1, x2)  =  noattackW_in_gg(x1, x2)
noattackW_out_gg(x1, x2)  =  noattackW_out_gg(x1, x2)
U18_gg(x1, x2, x3, x4)  =  U18_gg(x1, x2, x3, x4)
pX_in_ggaag(x1, x2, x3, x4, x5)  =  pX_in_ggaag(x1, x2, x5)
U52_ggaag(x1, x2, x3, x4, x5, x6)  =  U52_ggaag(x1, x2, x5, x6)
U53_ggaag(x1, x2, x3, x4, x5, x6)  =  U53_ggaag(x1, x2, x5, x6)
pN18_in_gagag(x1, x2, x3, x4, x5)  =  pN18_in_gagag(x1, x3, x5)
U54_gagag(x1, x2, x3, x4, x5, x6)  =  U54_gagag(x1, x3, x5, x6)
addI_in_ga(x1, x2)  =  addI_in_ga(x1)
addI_out_ga(x1, x2)  =  addI_out_ga(x1, x2)
U7_ga(x1, x2, x3)  =  U7_ga(x1, x3)
U55_gagag(x1, x2, x3, x4, x5, x6)  =  U55_gagag(x1, x2, x3, x5, x6)
pN19_in_ggagg(x1, x2, x3, x4, x5)  =  pN19_in_ggagg(x1, x2, x4, x5)
U56_ggagg(x1, x2, x3, x4, x5, x6)  =  U56_ggagg(x1, x2, x4, x5, x6)
U57_ggagg(x1, x2, x3, x4, x5, x6)  =  U57_ggagg(x1, x2, x4, x5, x6)
pN20_in_gagg(x1, x2, x3, x4)  =  pN20_in_gagg(x1, x3, x4)
U58_gagg(x1, x2, x3, x4, x5)  =  U58_gagg(x1, x3, x4, x5)
U59_gagg(x1, x2, x3, x4, x5)  =  U59_gagg(x1, x2, x3, x4, x5)
pN21_in_gggg(x1, x2, x3, x4)  =  pN21_in_gggg(x1, x2, x3, x4)
U60_gggg(x1, x2, x3, x4, x5)  =  U60_gggg(x1, x2, x3, x4, x5)
U61_gggg(x1, x2, x3, x4, x5)  =  U61_gggg(x1, x2, x3, x4, x5)
noattackY_in_gg(x1, x2)  =  noattackY_in_gg(x1, x2)
noattackY_out_gg(x1, x2)  =  noattackY_out_gg(x1, x2)
U19_gg(x1, x2, x3, x4)  =  U19_gg(x1, x2, x3, x4)
pZ_in_ggaag(x1, x2, x3, x4, x5)  =  pZ_in_ggaag(x1, x2, x5)
U62_ggaag(x1, x2, x3, x4, x5, x6)  =  U62_ggaag(x1, x2, x5, x6)
U63_ggaag(x1, x2, x3, x4, x5, x6)  =  U63_ggaag(x1, x2, x5, x6)
pN22_in_gagag(x1, x2, x3, x4, x5)  =  pN22_in_gagag(x1, x3, x5)
U64_gagag(x1, x2, x3, x4, x5, x6)  =  U64_gagag(x1, x3, x5, x6)
addJ_in_ga(x1, x2)  =  addJ_in_ga(x1)
addJ_out_ga(x1, x2)  =  addJ_out_ga(x1, x2)
U8_ga(x1, x2, x3)  =  U8_ga(x1, x3)
U65_gagag(x1, x2, x3, x4, x5, x6)  =  U65_gagag(x1, x2, x3, x5, x6)
pN23_in_ggagg(x1, x2, x3, x4, x5)  =  pN23_in_ggagg(x1, x2, x4, x5)
U66_ggagg(x1, x2, x3, x4, x5, x6)  =  U66_ggagg(x1, x2, x4, x5, x6)
U67_ggagg(x1, x2, x3, x4, x5, x6)  =  U67_ggagg(x1, x2, x4, x5, x6)
pN24_in_gagg(x1, x2, x3, x4)  =  pN24_in_gagg(x1, x3, x4)
U68_gagg(x1, x2, x3, x4, x5)  =  U68_gagg(x1, x3, x4, x5)
U69_gagg(x1, x2, x3, x4, x5)  =  U69_gagg(x1, x2, x3, x4, x5)
pN25_in_gggg(x1, x2, x3, x4)  =  pN25_in_gggg(x1, x2, x3, x4)
U70_gggg(x1, x2, x3, x4, x5)  =  U70_gggg(x1, x2, x3, x4, x5)
U71_gggg(x1, x2, x3, x4, x5)  =  U71_gggg(x1, x2, x3, x4, x5)
noattackN1_in_gg(x1, x2)  =  noattackN1_in_gg(x1, x2)
noattackN1_out_gg(x1, x2)  =  noattackN1_out_gg(x1, x2)
U20_gg(x1, x2, x3, x4)  =  U20_gg(x1, x2, x3, x4)
pN2_in_ggaag(x1, x2, x3, x4, x5)  =  pN2_in_ggaag(x1, x2, x5)
U72_ggaag(x1, x2, x3, x4, x5, x6)  =  U72_ggaag(x1, x2, x5, x6)
U73_ggaag(x1, x2, x3, x4, x5, x6)  =  U73_ggaag(x1, x2, x5, x6)
pN26_in_gagag(x1, x2, x3, x4, x5)  =  pN26_in_gagag(x1, x3, x5)
U74_gagag(x1, x2, x3, x4, x5, x6)  =  U74_gagag(x1, x3, x5, x6)
addK_in_ga(x1, x2)  =  addK_in_ga(x1)
addK_out_ga(x1, x2)  =  addK_out_ga(x1, x2)
U9_ga(x1, x2, x3)  =  U9_ga(x1, x3)
U75_gagag(x1, x2, x3, x4, x5, x6)  =  U75_gagag(x1, x2, x3, x5, x6)
pN27_in_ggagg(x1, x2, x3, x4, x5)  =  pN27_in_ggagg(x1, x2, x4, x5)
U76_ggagg(x1, x2, x3, x4, x5, x6)  =  U76_ggagg(x1, x2, x4, x5, x6)
U77_ggagg(x1, x2, x3, x4, x5, x6)  =  U77_ggagg(x1, x2, x4, x5, x6)
pN28_in_gagg(x1, x2, x3, x4)  =  pN28_in_gagg(x1, x3, x4)
U78_gagg(x1, x2, x3, x4, x5)  =  U78_gagg(x1, x3, x4, x5)
U79_gagg(x1, x2, x3, x4, x5)  =  U79_gagg(x1, x2, x3, x4, x5)
pN29_in_gggg(x1, x2, x3, x4)  =  pN29_in_gggg(x1, x2, x3, x4)
U80_gggg(x1, x2, x3, x4, x5)  =  U80_gggg(x1, x2, x3, x4, x5)
U81_gggg(x1, x2, x3, x4, x5)  =  U81_gggg(x1, x2, x3, x4, x5)
noattackN3_in_gg(x1, x2)  =  noattackN3_in_gg(x1, x2)
noattackN3_out_gg(x1, x2)  =  noattackN3_out_gg(x1, x2)
U21_gg(x1, x2, x3, x4)  =  U21_gg(x1, x2, x3, x4)
pN4_in_ggaag(x1, x2, x3, x4, x5)  =  pN4_in_ggaag(x1, x2, x5)
U82_ggaag(x1, x2, x3, x4, x5, x6)  =  U82_ggaag(x1, x2, x5, x6)
U83_ggaag(x1, x2, x3, x4, x5, x6)  =  U83_ggaag(x1, x2, x5, x6)
pN30_in_gagag(x1, x2, x3, x4, x5)  =  pN30_in_gagag(x1, x3, x5)
U84_gagag(x1, x2, x3, x4, x5, x6)  =  U84_gagag(x1, x3, x5, x6)
addL_in_ga(x1, x2)  =  addL_in_ga(x1)
addL_out_ga(x1, x2)  =  addL_out_ga(x1, x2)
U10_ga(x1, x2, x3)  =  U10_ga(x1, x3)
U85_gagag(x1, x2, x3, x4, x5, x6)  =  U85_gagag(x1, x2, x3, x5, x6)
pN31_in_ggagg(x1, x2, x3, x4, x5)  =  pN31_in_ggagg(x1, x2, x4, x5)
U86_ggagg(x1, x2, x3, x4, x5, x6)  =  U86_ggagg(x1, x2, x4, x5, x6)
U87_ggagg(x1, x2, x3, x4, x5, x6)  =  U87_ggagg(x1, x2, x4, x5, x6)
pN32_in_gagg(x1, x2, x3, x4)  =  pN32_in_gagg(x1, x3, x4)
U88_gagg(x1, x2, x3, x4, x5)  =  U88_gagg(x1, x3, x4, x5)
U89_gagg(x1, x2, x3, x4, x5)  =  U89_gagg(x1, x2, x3, x4, x5)
pN33_in_gggg(x1, x2, x3, x4)  =  pN33_in_gggg(x1, x2, x3, x4)
U90_gggg(x1, x2, x3, x4, x5)  =  U90_gggg(x1, x2, x3, x4, x5)
U91_gggg(x1, x2, x3, x4, x5)  =  U91_gggg(x1, x2, x3, x4, x5)
noattackN5_in_gg(x1, x2)  =  noattackN5_in_gg(x1, x2)
noattackN5_out_gg(x1, x2)  =  noattackN5_out_gg(x1, x2)
U22_gg(x1, x2, x3, x4)  =  U22_gg(x1, x2, x3, x4)
pN6_in_ggaagg(x1, x2, x3, x4, x5, x6)  =  pN6_in_ggaagg(x1, x2, x5, x6)
U92_ggaagg(x1, x2, x3, x4, x5, x6, x7)  =  U92_ggaagg(x1, x2, x5, x6, x7)
U93_ggaagg(x1, x2, x3, x4, x5, x6, x7)  =  U93_ggaagg(x1, x2, x5, x6, x7)
pN34_in_gagagg(x1, x2, x3, x4, x5, x6)  =  pN34_in_gagagg(x1, x3, x5, x6)
U94_gagagg(x1, x2, x3, x4, x5, x6, x7)  =  U94_gagagg(x1, x3, x5, x6, x7)
addM_in_ga(x1, x2)  =  addM_in_ga(x1)
addM_out_ga(x1, x2)  =  addM_out_ga(x1, x2)
U11_ga(x1, x2, x3)  =  U11_ga(x1, x3)
U95_gagagg(x1, x2, x3, x4, x5, x6, x7)  =  U95_gagagg(x1, x2, x3, x5, x6, x7)
pN35_in_ggaggg(x1, x2, x3, x4, x5, x6)  =  pN35_in_ggaggg(x1, x2, x4, x5, x6)
U96_ggaggg(x1, x2, x3, x4, x5, x6, x7)  =  U96_ggaggg(x1, x2, x4, x5, x6, x7)
U97_ggaggg(x1, x2, x3, x4, x5, x6, x7)  =  U97_ggaggg(x1, x2, x4, x5, x6, x7)
pN36_in_gaggg(x1, x2, x3, x4, x5)  =  pN36_in_gaggg(x1, x3, x4, x5)
U98_gaggg(x1, x2, x3, x4, x5, x6)  =  U98_gaggg(x1, x3, x4, x5, x6)
U99_gaggg(x1, x2, x3, x4, x5, x6)  =  U99_gaggg(x1, x2, x3, x4, x5, x6)
pN37_in_ggggg(x1, x2, x3, x4, x5)  =  pN37_in_ggggg(x1, x2, x3, x4, x5)
U100_ggggg(x1, x2, x3, x4, x5, x6)  =  U100_ggggg(x1, x2, x3, x4, x5, x6)
U101_ggggg(x1, x2, x3, x4, x5, x6)  =  U101_ggggg(x1, x2, x3, x4, x5, x6)
noattackN7_in_ggg(x1, x2, x3)  =  noattackN7_in_ggg(x1, x2, x3)
noattackN7_out_ggg(x1, x2, x3)  =  noattackN7_out_ggg(x1, x2, x3)
U23_ggg(x1, x2, x3, x4, x5)  =  U23_ggg(x1, x2, x3, x4, x5)
pN8_in_gggaag(x1, x2, x3, x4, x5, x6)  =  pN8_in_gggaag(x1, x2, x3, x6)
U102_gggaag(x1, x2, x3, x4, x5, x6, x7)  =  U102_gggaag(x1, x2, x3, x6, x7)
U103_gggaag(x1, x2, x3, x4, x5, x6, x7)  =  U103_gggaag(x1, x2, x3, x6, x7)
pN38_in_ggagag(x1, x2, x3, x4, x5, x6)  =  pN38_in_ggagag(x1, x2, x4, x6)
U104_ggagag(x1, x2, x3, x4, x5, x6, x7)  =  U104_ggagag(x1, x2, x4, x6, x7)
addN_in_gga(x1, x2, x3)  =  addN_in_gga(x1, x2)
addN_out_gga(x1, x2, x3)  =  addN_out_gga(x1, x2, x3)
U12_gga(x1, x2, x3, x4)  =  U12_gga(x1, x2, x4)
U105_ggagag(x1, x2, x3, x4, x5, x6, x7)  =  U105_ggagag(x1, x2, x3, x4, x6, x7)
pN39_in_gggagg(x1, x2, x3, x4, x5, x6)  =  pN39_in_gggagg(x1, x2, x3, x5, x6)
U106_gggagg(x1, x2, x3, x4, x5, x6, x7)  =  U106_gggagg(x1, x2, x3, x5, x6, x7)
U107_gggagg(x1, x2, x3, x4, x5, x6, x7)  =  U107_gggagg(x1, x2, x3, x5, x6, x7)
pN40_in_ggagg(x1, x2, x3, x4, x5)  =  pN40_in_ggagg(x1, x2, x4, x5)
U108_ggagg(x1, x2, x3, x4, x5, x6)  =  U108_ggagg(x1, x2, x4, x5, x6)
U109_ggagg(x1, x2, x3, x4, x5, x6)  =  U109_ggagg(x1, x2, x3, x4, x5, x6)
pN37_out_ggggg(x1, x2, x3, x4, x5)  =  pN37_out_ggggg(x1, x2, x3, x4, x5)
pN40_out_ggagg(x1, x2, x3, x4, x5)  =  pN40_out_ggagg(x1, x2, x3, x4, x5)
pN39_out_gggagg(x1, x2, x3, x4, x5, x6)  =  pN39_out_gggagg(x1, x2, x3, x4, x5, x6)
pN38_out_ggagag(x1, x2, x3, x4, x5, x6)  =  pN38_out_ggagag(x1, x2, x3, x4, x5, x6)
pN8_out_gggaag(x1, x2, x3, x4, x5, x6)  =  pN8_out_gggaag(x1, x2, x3, x4, x5, x6)
pN36_out_gaggg(x1, x2, x3, x4, x5)  =  pN36_out_gaggg(x1, x2, x3, x4, x5)
pN35_out_ggaggg(x1, x2, x3, x4, x5, x6)  =  pN35_out_ggaggg(x1, x2, x3, x4, x5, x6)
pN34_out_gagagg(x1, x2, x3, x4, x5, x6)  =  pN34_out_gagagg(x1, x2, x3, x4, x5, x6)
pN6_out_ggaagg(x1, x2, x3, x4, x5, x6)  =  pN6_out_ggaagg(x1, x2, x3, x4, x5, x6)
pN33_out_gggg(x1, x2, x3, x4)  =  pN33_out_gggg(x1, x2, x3, x4)
pN32_out_gagg(x1, x2, x3, x4)  =  pN32_out_gagg(x1, x2, x3, x4)
pN31_out_ggagg(x1, x2, x3, x4, x5)  =  pN31_out_ggagg(x1, x2, x3, x4, x5)
pN30_out_gagag(x1, x2, x3, x4, x5)  =  pN30_out_gagag(x1, x2, x3, x4, x5)
pN4_out_ggaag(x1, x2, x3, x4, x5)  =  pN4_out_ggaag(x1, x2, x3, x4, x5)
pN29_out_gggg(x1, x2, x3, x4)  =  pN29_out_gggg(x1, x2, x3, x4)
pN28_out_gagg(x1, x2, x3, x4)  =  pN28_out_gagg(x1, x2, x3, x4)
pN27_out_ggagg(x1, x2, x3, x4, x5)  =  pN27_out_ggagg(x1, x2, x3, x4, x5)
pN26_out_gagag(x1, x2, x3, x4, x5)  =  pN26_out_gagag(x1, x2, x3, x4, x5)
pN2_out_ggaag(x1, x2, x3, x4, x5)  =  pN2_out_ggaag(x1, x2, x3, x4, x5)
pN25_out_gggg(x1, x2, x3, x4)  =  pN25_out_gggg(x1, x2, x3, x4)
pN24_out_gagg(x1, x2, x3, x4)  =  pN24_out_gagg(x1, x2, x3, x4)
pN23_out_ggagg(x1, x2, x3, x4, x5)  =  pN23_out_ggagg(x1, x2, x3, x4, x5)
pN22_out_gagag(x1, x2, x3, x4, x5)  =  pN22_out_gagag(x1, x2, x3, x4, x5)
pZ_out_ggaag(x1, x2, x3, x4, x5)  =  pZ_out_ggaag(x1, x2, x3, x4, x5)
pN21_out_gggg(x1, x2, x3, x4)  =  pN21_out_gggg(x1, x2, x3, x4)
pN20_out_gagg(x1, x2, x3, x4)  =  pN20_out_gagg(x1, x2, x3, x4)
pN19_out_ggagg(x1, x2, x3, x4, x5)  =  pN19_out_ggagg(x1, x2, x3, x4, x5)
pN18_out_gagag(x1, x2, x3, x4, x5)  =  pN18_out_gagag(x1, x2, x3, x4, x5)
pX_out_ggaag(x1, x2, x3, x4, x5)  =  pX_out_ggaag(x1, x2, x3, x4, x5)
pN17_out_gggg(x1, x2, x3, x4)  =  pN17_out_gggg(x1, x2, x3, x4)
pN16_out_gagg(x1, x2, x3, x4)  =  pN16_out_gagg(x1, x2, x3, x4)
pN15_out_ggagg(x1, x2, x3, x4, x5)  =  pN15_out_ggagg(x1, x2, x3, x4, x5)
pN14_out_gagag(x1, x2, x3, x4, x5)  =  pN14_out_gagag(x1, x2, x3, x4, x5)
pV_out_ggaag(x1, x2, x3, x4, x5)  =  pV_out_ggaag(x1, x2, x3, x4, x5)
pN13_out_gggg(x1, x2, x3, x4)  =  pN13_out_gggg(x1, x2, x3, x4)
pN12_out_gagg(x1, x2, x3, x4)  =  pN12_out_gagg(x1, x2, x3, x4)
pN11_out_ggagg(x1, x2, x3, x4, x5)  =  pN11_out_ggagg(x1, x2, x3, x4, x5)
pN10_out_gagag(x1, x2, x3, x4, x5)  =  pN10_out_gagag(x1, x2, x3, x4, x5)
pS_out_ggaag(x1, x2, x3, x4, x5)  =  pS_out_ggaag(x1, x2, x3, x4, x5)
U31_gg(x1, x2, x3)  =  U31_gg(x1, x2, x3)
safeT_in_g(x1)  =  safeT_in_g(x1)
safeT_out_g(x1)  =  safeT_out_g(x1)
U16_g(x1, x2, x3)  =  U16_g(x1, x2, x3)
pQ_out_gg(x1, x2)  =  pQ_out_gg(x1, x2)
safeP_out_gg(x1, x2)  =  safeP_out_gg(x1, x2)
pN9_out_gag(x1, x2, x3)  =  pN9_out_gag(x1, x2, x3)
pB_out_agaa(x1, x2, x3, x4)  =  pB_out_agaa(x1, x2, x3, x4)
queensA_out_a(x1)  =  queensA_out_a(x1)
PQ_IN_GG(x1, x2)  =  PQ_IN_GG(x1, x2)
U30_GG(x1, x2, x3)  =  U30_GG(x1, x2, x3)
SAFET_IN_G(x1)  =  SAFET_IN_G(x1)

We have to consider all (P,R,Pi)-chains

(78) UsableRulesProof (EQUIVALENT transformation)

For (infinitary) constructor rewriting [LOPSTR] we can delete all non-usable rules from R.

(79) Obligation:

Pi DP problem:
The TRS P consists of the following rules:

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))

The TRS R consists of the following rules:

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)

The argument filtering Pi contains the following mapping:
.(x1, x2)  =  .(x1, x2)
[]  =  []
noattackR_in_gg(x1, x2)  =  noattackR_in_gg(x1, x2)
noattackR_out_gg(x1, x2)  =  noattackR_out_gg(x1, x2)
U15_gg(x1, x2, x3, x4)  =  U15_gg(x1, x2, x3, x4)
pS_in_ggaag(x1, x2, x3, x4, x5)  =  pS_in_ggaag(x1, x2, x5)
U32_ggaag(x1, x2, x3, x4, x5, x6)  =  U32_ggaag(x1, x2, x5, x6)
notEqF_in_gg(x1, x2)  =  notEqF_in_gg(x1, x2)
0  =  0
s(x1)  =  s(x1)
notEqF_out_gg(x1, x2)  =  notEqF_out_gg(x1, x2)
U4_gg(x1, x2, x3)  =  U4_gg(x1, x2, x3)
U33_ggaag(x1, x2, x3, x4, x5, x6)  =  U33_ggaag(x1, x2, x5, x6)
pN10_in_gagag(x1, x2, x3, x4, x5)  =  pN10_in_gagag(x1, x3, x5)
U34_gagag(x1, x2, x3, x4, x5, x6)  =  U34_gagag(x1, x3, x5, x6)
addG_in_ga(x1, x2)  =  addG_in_ga(x1)
addG_out_ga(x1, x2)  =  addG_out_ga(x1, x2)
U5_ga(x1, x2, x3)  =  U5_ga(x1, x3)
U35_gagag(x1, x2, x3, x4, x5, x6)  =  U35_gagag(x1, x2, x3, x5, x6)
pN11_in_ggagg(x1, x2, x3, x4, x5)  =  pN11_in_ggagg(x1, x2, x4, x5)
U36_ggagg(x1, x2, x3, x4, x5, x6)  =  U36_ggagg(x1, x2, x4, x5, x6)
U37_ggagg(x1, x2, x3, x4, x5, x6)  =  U37_ggagg(x1, x2, x4, x5, x6)
pN12_in_gagg(x1, x2, x3, x4)  =  pN12_in_gagg(x1, x3, x4)
U38_gagg(x1, x2, x3, x4, x5)  =  U38_gagg(x1, x3, x4, x5)
U39_gagg(x1, x2, x3, x4, x5)  =  U39_gagg(x1, x2, x3, x4, x5)
pN13_in_gggg(x1, x2, x3, x4)  =  pN13_in_gggg(x1, x2, x3, x4)
U40_gggg(x1, x2, x3, x4, x5)  =  U40_gggg(x1, x2, x3, x4, x5)
U41_gggg(x1, x2, x3, x4, x5)  =  U41_gggg(x1, x2, x3, x4, x5)
noattackU_in_gg(x1, x2)  =  noattackU_in_gg(x1, x2)
noattackU_out_gg(x1, x2)  =  noattackU_out_gg(x1, x2)
U17_gg(x1, x2, x3, x4)  =  U17_gg(x1, x2, x3, x4)
pV_in_ggaag(x1, x2, x3, x4, x5)  =  pV_in_ggaag(x1, x2, x5)
U42_ggaag(x1, x2, x3, x4, x5, x6)  =  U42_ggaag(x1, x2, x5, x6)
U43_ggaag(x1, x2, x3, x4, x5, x6)  =  U43_ggaag(x1, x2, x5, x6)
pN14_in_gagag(x1, x2, x3, x4, x5)  =  pN14_in_gagag(x1, x3, x5)
U44_gagag(x1, x2, x3, x4, x5, x6)  =  U44_gagag(x1, x3, x5, x6)
addH_in_ga(x1, x2)  =  addH_in_ga(x1)
addH_out_ga(x1, x2)  =  addH_out_ga(x1, x2)
U6_ga(x1, x2, x3)  =  U6_ga(x1, x3)
U45_gagag(x1, x2, x3, x4, x5, x6)  =  U45_gagag(x1, x2, x3, x5, x6)
pN15_in_ggagg(x1, x2, x3, x4, x5)  =  pN15_in_ggagg(x1, x2, x4, x5)
U46_ggagg(x1, x2, x3, x4, x5, x6)  =  U46_ggagg(x1, x2, x4, x5, x6)
U47_ggagg(x1, x2, x3, x4, x5, x6)  =  U47_ggagg(x1, x2, x4, x5, x6)
pN16_in_gagg(x1, x2, x3, x4)  =  pN16_in_gagg(x1, x3, x4)
U48_gagg(x1, x2, x3, x4, x5)  =  U48_gagg(x1, x3, x4, x5)
U49_gagg(x1, x2, x3, x4, x5)  =  U49_gagg(x1, x2, x3, x4, x5)
pN17_in_gggg(x1, x2, x3, x4)  =  pN17_in_gggg(x1, x2, x3, x4)
U50_gggg(x1, x2, x3, x4, x5)  =  U50_gggg(x1, x2, x3, x4, x5)
U51_gggg(x1, x2, x3, x4, x5)  =  U51_gggg(x1, x2, x3, x4, x5)
noattackW_in_gg(x1, x2)  =  noattackW_in_gg(x1, x2)
noattackW_out_gg(x1, x2)  =  noattackW_out_gg(x1, x2)
U18_gg(x1, x2, x3, x4)  =  U18_gg(x1, x2, x3, x4)
pX_in_ggaag(x1, x2, x3, x4, x5)  =  pX_in_ggaag(x1, x2, x5)
U52_ggaag(x1, x2, x3, x4, x5, x6)  =  U52_ggaag(x1, x2, x5, x6)
U53_ggaag(x1, x2, x3, x4, x5, x6)  =  U53_ggaag(x1, x2, x5, x6)
pN18_in_gagag(x1, x2, x3, x4, x5)  =  pN18_in_gagag(x1, x3, x5)
U54_gagag(x1, x2, x3, x4, x5, x6)  =  U54_gagag(x1, x3, x5, x6)
addI_in_ga(x1, x2)  =  addI_in_ga(x1)
addI_out_ga(x1, x2)  =  addI_out_ga(x1, x2)
U7_ga(x1, x2, x3)  =  U7_ga(x1, x3)
U55_gagag(x1, x2, x3, x4, x5, x6)  =  U55_gagag(x1, x2, x3, x5, x6)
pN19_in_ggagg(x1, x2, x3, x4, x5)  =  pN19_in_ggagg(x1, x2, x4, x5)
U56_ggagg(x1, x2, x3, x4, x5, x6)  =  U56_ggagg(x1, x2, x4, x5, x6)
U57_ggagg(x1, x2, x3, x4, x5, x6)  =  U57_ggagg(x1, x2, x4, x5, x6)
pN20_in_gagg(x1, x2, x3, x4)  =  pN20_in_gagg(x1, x3, x4)
U58_gagg(x1, x2, x3, x4, x5)  =  U58_gagg(x1, x3, x4, x5)
U59_gagg(x1, x2, x3, x4, x5)  =  U59_gagg(x1, x2, x3, x4, x5)
pN21_in_gggg(x1, x2, x3, x4)  =  pN21_in_gggg(x1, x2, x3, x4)
U60_gggg(x1, x2, x3, x4, x5)  =  U60_gggg(x1, x2, x3, x4, x5)
U61_gggg(x1, x2, x3, x4, x5)  =  U61_gggg(x1, x2, x3, x4, x5)
noattackY_in_gg(x1, x2)  =  noattackY_in_gg(x1, x2)
noattackY_out_gg(x1, x2)  =  noattackY_out_gg(x1, x2)
U19_gg(x1, x2, x3, x4)  =  U19_gg(x1, x2, x3, x4)
pZ_in_ggaag(x1, x2, x3, x4, x5)  =  pZ_in_ggaag(x1, x2, x5)
U62_ggaag(x1, x2, x3, x4, x5, x6)  =  U62_ggaag(x1, x2, x5, x6)
U63_ggaag(x1, x2, x3, x4, x5, x6)  =  U63_ggaag(x1, x2, x5, x6)
pN22_in_gagag(x1, x2, x3, x4, x5)  =  pN22_in_gagag(x1, x3, x5)
U64_gagag(x1, x2, x3, x4, x5, x6)  =  U64_gagag(x1, x3, x5, x6)
addJ_in_ga(x1, x2)  =  addJ_in_ga(x1)
addJ_out_ga(x1, x2)  =  addJ_out_ga(x1, x2)
U8_ga(x1, x2, x3)  =  U8_ga(x1, x3)
U65_gagag(x1, x2, x3, x4, x5, x6)  =  U65_gagag(x1, x2, x3, x5, x6)
pN23_in_ggagg(x1, x2, x3, x4, x5)  =  pN23_in_ggagg(x1, x2, x4, x5)
U66_ggagg(x1, x2, x3, x4, x5, x6)  =  U66_ggagg(x1, x2, x4, x5, x6)
U67_ggagg(x1, x2, x3, x4, x5, x6)  =  U67_ggagg(x1, x2, x4, x5, x6)
pN24_in_gagg(x1, x2, x3, x4)  =  pN24_in_gagg(x1, x3, x4)
U68_gagg(x1, x2, x3, x4, x5)  =  U68_gagg(x1, x3, x4, x5)
U69_gagg(x1, x2, x3, x4, x5)  =  U69_gagg(x1, x2, x3, x4, x5)
pN25_in_gggg(x1, x2, x3, x4)  =  pN25_in_gggg(x1, x2, x3, x4)
U70_gggg(x1, x2, x3, x4, x5)  =  U70_gggg(x1, x2, x3, x4, x5)
U71_gggg(x1, x2, x3, x4, x5)  =  U71_gggg(x1, x2, x3, x4, x5)
noattackN1_in_gg(x1, x2)  =  noattackN1_in_gg(x1, x2)
noattackN1_out_gg(x1, x2)  =  noattackN1_out_gg(x1, x2)
U20_gg(x1, x2, x3, x4)  =  U20_gg(x1, x2, x3, x4)
pN2_in_ggaag(x1, x2, x3, x4, x5)  =  pN2_in_ggaag(x1, x2, x5)
U72_ggaag(x1, x2, x3, x4, x5, x6)  =  U72_ggaag(x1, x2, x5, x6)
U73_ggaag(x1, x2, x3, x4, x5, x6)  =  U73_ggaag(x1, x2, x5, x6)
pN26_in_gagag(x1, x2, x3, x4, x5)  =  pN26_in_gagag(x1, x3, x5)
U74_gagag(x1, x2, x3, x4, x5, x6)  =  U74_gagag(x1, x3, x5, x6)
addK_in_ga(x1, x2)  =  addK_in_ga(x1)
addK_out_ga(x1, x2)  =  addK_out_ga(x1, x2)
U9_ga(x1, x2, x3)  =  U9_ga(x1, x3)
U75_gagag(x1, x2, x3, x4, x5, x6)  =  U75_gagag(x1, x2, x3, x5, x6)
pN27_in_ggagg(x1, x2, x3, x4, x5)  =  pN27_in_ggagg(x1, x2, x4, x5)
U76_ggagg(x1, x2, x3, x4, x5, x6)  =  U76_ggagg(x1, x2, x4, x5, x6)
U77_ggagg(x1, x2, x3, x4, x5, x6)  =  U77_ggagg(x1, x2, x4, x5, x6)
pN28_in_gagg(x1, x2, x3, x4)  =  pN28_in_gagg(x1, x3, x4)
U78_gagg(x1, x2, x3, x4, x5)  =  U78_gagg(x1, x3, x4, x5)
U79_gagg(x1, x2, x3, x4, x5)  =  U79_gagg(x1, x2, x3, x4, x5)
pN29_in_gggg(x1, x2, x3, x4)  =  pN29_in_gggg(x1, x2, x3, x4)
U80_gggg(x1, x2, x3, x4, x5)  =  U80_gggg(x1, x2, x3, x4, x5)
U81_gggg(x1, x2, x3, x4, x5)  =  U81_gggg(x1, x2, x3, x4, x5)
noattackN3_in_gg(x1, x2)  =  noattackN3_in_gg(x1, x2)
noattackN3_out_gg(x1, x2)  =  noattackN3_out_gg(x1, x2)
U21_gg(x1, x2, x3, x4)  =  U21_gg(x1, x2, x3, x4)
pN4_in_ggaag(x1, x2, x3, x4, x5)  =  pN4_in_ggaag(x1, x2, x5)
U82_ggaag(x1, x2, x3, x4, x5, x6)  =  U82_ggaag(x1, x2, x5, x6)
U83_ggaag(x1, x2, x3, x4, x5, x6)  =  U83_ggaag(x1, x2, x5, x6)
pN30_in_gagag(x1, x2, x3, x4, x5)  =  pN30_in_gagag(x1, x3, x5)
U84_gagag(x1, x2, x3, x4, x5, x6)  =  U84_gagag(x1, x3, x5, x6)
addL_in_ga(x1, x2)  =  addL_in_ga(x1)
addL_out_ga(x1, x2)  =  addL_out_ga(x1, x2)
U10_ga(x1, x2, x3)  =  U10_ga(x1, x3)
U85_gagag(x1, x2, x3, x4, x5, x6)  =  U85_gagag(x1, x2, x3, x5, x6)
pN31_in_ggagg(x1, x2, x3, x4, x5)  =  pN31_in_ggagg(x1, x2, x4, x5)
U86_ggagg(x1, x2, x3, x4, x5, x6)  =  U86_ggagg(x1, x2, x4, x5, x6)
U87_ggagg(x1, x2, x3, x4, x5, x6)  =  U87_ggagg(x1, x2, x4, x5, x6)
pN32_in_gagg(x1, x2, x3, x4)  =  pN32_in_gagg(x1, x3, x4)
U88_gagg(x1, x2, x3, x4, x5)  =  U88_gagg(x1, x3, x4, x5)
U89_gagg(x1, x2, x3, x4, x5)  =  U89_gagg(x1, x2, x3, x4, x5)
pN33_in_gggg(x1, x2, x3, x4)  =  pN33_in_gggg(x1, x2, x3, x4)
U90_gggg(x1, x2, x3, x4, x5)  =  U90_gggg(x1, x2, x3, x4, x5)
U91_gggg(x1, x2, x3, x4, x5)  =  U91_gggg(x1, x2, x3, x4, x5)
noattackN5_in_gg(x1, x2)  =  noattackN5_in_gg(x1, x2)
noattackN5_out_gg(x1, x2)  =  noattackN5_out_gg(x1, x2)
U22_gg(x1, x2, x3, x4)  =  U22_gg(x1, x2, x3, x4)
pN6_in_ggaagg(x1, x2, x3, x4, x5, x6)  =  pN6_in_ggaagg(x1, x2, x5, x6)
U92_ggaagg(x1, x2, x3, x4, x5, x6, x7)  =  U92_ggaagg(x1, x2, x5, x6, x7)
U93_ggaagg(x1, x2, x3, x4, x5, x6, x7)  =  U93_ggaagg(x1, x2, x5, x6, x7)
pN34_in_gagagg(x1, x2, x3, x4, x5, x6)  =  pN34_in_gagagg(x1, x3, x5, x6)
U94_gagagg(x1, x2, x3, x4, x5, x6, x7)  =  U94_gagagg(x1, x3, x5, x6, x7)
addM_in_ga(x1, x2)  =  addM_in_ga(x1)
addM_out_ga(x1, x2)  =  addM_out_ga(x1, x2)
U11_ga(x1, x2, x3)  =  U11_ga(x1, x3)
U95_gagagg(x1, x2, x3, x4, x5, x6, x7)  =  U95_gagagg(x1, x2, x3, x5, x6, x7)
pN35_in_ggaggg(x1, x2, x3, x4, x5, x6)  =  pN35_in_ggaggg(x1, x2, x4, x5, x6)
U96_ggaggg(x1, x2, x3, x4, x5, x6, x7)  =  U96_ggaggg(x1, x2, x4, x5, x6, x7)
U97_ggaggg(x1, x2, x3, x4, x5, x6, x7)  =  U97_ggaggg(x1, x2, x4, x5, x6, x7)
pN36_in_gaggg(x1, x2, x3, x4, x5)  =  pN36_in_gaggg(x1, x3, x4, x5)
U98_gaggg(x1, x2, x3, x4, x5, x6)  =  U98_gaggg(x1, x3, x4, x5, x6)
U99_gaggg(x1, x2, x3, x4, x5, x6)  =  U99_gaggg(x1, x2, x3, x4, x5, x6)
pN37_in_ggggg(x1, x2, x3, x4, x5)  =  pN37_in_ggggg(x1, x2, x3, x4, x5)
U100_ggggg(x1, x2, x3, x4, x5, x6)  =  U100_ggggg(x1, x2, x3, x4, x5, x6)
U101_ggggg(x1, x2, x3, x4, x5, x6)  =  U101_ggggg(x1, x2, x3, x4, x5, x6)
noattackN7_in_ggg(x1, x2, x3)  =  noattackN7_in_ggg(x1, x2, x3)
noattackN7_out_ggg(x1, x2, x3)  =  noattackN7_out_ggg(x1, x2, x3)
U23_ggg(x1, x2, x3, x4, x5)  =  U23_ggg(x1, x2, x3, x4, x5)
pN8_in_gggaag(x1, x2, x3, x4, x5, x6)  =  pN8_in_gggaag(x1, x2, x3, x6)
U102_gggaag(x1, x2, x3, x4, x5, x6, x7)  =  U102_gggaag(x1, x2, x3, x6, x7)
U103_gggaag(x1, x2, x3, x4, x5, x6, x7)  =  U103_gggaag(x1, x2, x3, x6, x7)
pN38_in_ggagag(x1, x2, x3, x4, x5, x6)  =  pN38_in_ggagag(x1, x2, x4, x6)
U104_ggagag(x1, x2, x3, x4, x5, x6, x7)  =  U104_ggagag(x1, x2, x4, x6, x7)
addN_in_gga(x1, x2, x3)  =  addN_in_gga(x1, x2)
addN_out_gga(x1, x2, x3)  =  addN_out_gga(x1, x2, x3)
U12_gga(x1, x2, x3, x4)  =  U12_gga(x1, x2, x4)
U105_ggagag(x1, x2, x3, x4, x5, x6, x7)  =  U105_ggagag(x1, x2, x3, x4, x6, x7)
pN39_in_gggagg(x1, x2, x3, x4, x5, x6)  =  pN39_in_gggagg(x1, x2, x3, x5, x6)
U106_gggagg(x1, x2, x3, x4, x5, x6, x7)  =  U106_gggagg(x1, x2, x3, x5, x6, x7)
U107_gggagg(x1, x2, x3, x4, x5, x6, x7)  =  U107_gggagg(x1, x2, x3, x5, x6, x7)
pN40_in_ggagg(x1, x2, x3, x4, x5)  =  pN40_in_ggagg(x1, x2, x4, x5)
U108_ggagg(x1, x2, x3, x4, x5, x6)  =  U108_ggagg(x1, x2, x4, x5, x6)
U109_ggagg(x1, x2, x3, x4, x5, x6)  =  U109_ggagg(x1, x2, x3, x4, x5, x6)
pN37_out_ggggg(x1, x2, x3, x4, x5)  =  pN37_out_ggggg(x1, x2, x3, x4, x5)
pN40_out_ggagg(x1, x2, x3, x4, x5)  =  pN40_out_ggagg(x1, x2, x3, x4, x5)
pN39_out_gggagg(x1, x2, x3, x4, x5, x6)  =  pN39_out_gggagg(x1, x2, x3, x4, x5, x6)
pN38_out_ggagag(x1, x2, x3, x4, x5, x6)  =  pN38_out_ggagag(x1, x2, x3, x4, x5, x6)
pN8_out_gggaag(x1, x2, x3, x4, x5, x6)  =  pN8_out_gggaag(x1, x2, x3, x4, x5, x6)
pN36_out_gaggg(x1, x2, x3, x4, x5)  =  pN36_out_gaggg(x1, x2, x3, x4, x5)
pN35_out_ggaggg(x1, x2, x3, x4, x5, x6)  =  pN35_out_ggaggg(x1, x2, x3, x4, x5, x6)
pN34_out_gagagg(x1, x2, x3, x4, x5, x6)  =  pN34_out_gagagg(x1, x2, x3, x4, x5, x6)
pN6_out_ggaagg(x1, x2, x3, x4, x5, x6)  =  pN6_out_ggaagg(x1, x2, x3, x4, x5, x6)
pN33_out_gggg(x1, x2, x3, x4)  =  pN33_out_gggg(x1, x2, x3, x4)
pN32_out_gagg(x1, x2, x3, x4)  =  pN32_out_gagg(x1, x2, x3, x4)
pN31_out_ggagg(x1, x2, x3, x4, x5)  =  pN31_out_ggagg(x1, x2, x3, x4, x5)
pN30_out_gagag(x1, x2, x3, x4, x5)  =  pN30_out_gagag(x1, x2, x3, x4, x5)
pN4_out_ggaag(x1, x2, x3, x4, x5)  =  pN4_out_ggaag(x1, x2, x3, x4, x5)
pN29_out_gggg(x1, x2, x3, x4)  =  pN29_out_gggg(x1, x2, x3, x4)
pN28_out_gagg(x1, x2, x3, x4)  =  pN28_out_gagg(x1, x2, x3, x4)
pN27_out_ggagg(x1, x2, x3, x4, x5)  =  pN27_out_ggagg(x1, x2, x3, x4, x5)
pN26_out_gagag(x1, x2, x3, x4, x5)  =  pN26_out_gagag(x1, x2, x3, x4, x5)
pN2_out_ggaag(x1, x2, x3, x4, x5)  =  pN2_out_ggaag(x1, x2, x3, x4, x5)
pN25_out_gggg(x1, x2, x3, x4)  =  pN25_out_gggg(x1, x2, x3, x4)
pN24_out_gagg(x1, x2, x3, x4)  =  pN24_out_gagg(x1, x2, x3, x4)
pN23_out_ggagg(x1, x2, x3, x4, x5)  =  pN23_out_ggagg(x1, x2, x3, x4, x5)
pN22_out_gagag(x1, x2, x3, x4, x5)  =  pN22_out_gagag(x1, x2, x3, x4, x5)
pZ_out_ggaag(x1, x2, x3, x4, x5)  =  pZ_out_ggaag(x1, x2, x3, x4, x5)
pN21_out_gggg(x1, x2, x3, x4)  =  pN21_out_gggg(x1, x2, x3, x4)
pN20_out_gagg(x1, x2, x3, x4)  =  pN20_out_gagg(x1, x2, x3, x4)
pN19_out_ggagg(x1, x2, x3, x4, x5)  =  pN19_out_ggagg(x1, x2, x3, x4, x5)
pN18_out_gagag(x1, x2, x3, x4, x5)  =  pN18_out_gagag(x1, x2, x3, x4, x5)
pX_out_ggaag(x1, x2, x3, x4, x5)  =  pX_out_ggaag(x1, x2, x3, x4, x5)
pN17_out_gggg(x1, x2, x3, x4)  =  pN17_out_gggg(x1, x2, x3, x4)
pN16_out_gagg(x1, x2, x3, x4)  =  pN16_out_gagg(x1, x2, x3, x4)
pN15_out_ggagg(x1, x2, x3, x4, x5)  =  pN15_out_ggagg(x1, x2, x3, x4, x5)
pN14_out_gagag(x1, x2, x3, x4, x5)  =  pN14_out_gagag(x1, x2, x3, x4, x5)
pV_out_ggaag(x1, x2, x3, x4, x5)  =  pV_out_ggaag(x1, x2, x3, x4, x5)
pN13_out_gggg(x1, x2, x3, x4)  =  pN13_out_gggg(x1, x2, x3, x4)
pN12_out_gagg(x1, x2, x3, x4)  =  pN12_out_gagg(x1, x2, x3, x4)
pN11_out_ggagg(x1, x2, x3, x4, x5)  =  pN11_out_ggagg(x1, x2, x3, x4, x5)
pN10_out_gagag(x1, x2, x3, x4, x5)  =  pN10_out_gagag(x1, x2, x3, x4, x5)
pS_out_ggaag(x1, x2, x3, x4, x5)  =  pS_out_ggaag(x1, x2, x3, x4, x5)
PQ_IN_GG(x1, x2)  =  PQ_IN_GG(x1, x2)
U30_GG(x1, x2, x3)  =  U30_GG(x1, x2, x3)
SAFET_IN_G(x1)  =  SAFET_IN_G(x1)

We have to consider all (P,R,Pi)-chains

(80) PiDPToQDPProof (SOUND transformation)

Transforming (infinitary) constructor rewriting Pi-DP problem [LOPSTR] into ordinary QDP problem [LPAR04] by application of Pi.

(81) Obligation:

Q DP problem:
The TRS P consists of the following rules:

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))

The TRS R consists of the following rules:

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)

The set Q consists of the following terms:

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)

We have to consider all (P,Q,R)-chains.

(82) QDPSizeChangeProof (EQUIVALENT transformation)

By using the subterm criterion [SUBTERM_CRITERION] together with the size-change analysis [AAECC05] we have proven that there are no infinite chains for this DP problem.

From the DPs we obtained the following set of size-change graphs:

  • SAFET_IN_G(.(T427, T428)) → PQ_IN_GG(T427, T428)
    The graph contains the following edges 1 > 1, 1 > 2

  • PQ_IN_GG(T108, T109) → U30_GG(T108, T109, noattackR_in_gg(T108, T109))
    The graph contains the following edges 1 >= 1, 2 >= 2

  • U30_GG(T108, T109, noattackR_out_gg(T108, T109)) → SAFET_IN_G(T109)
    The graph contains the following edges 2 >= 1, 3 > 1

(83) YES

(84) Obligation:

Pi DP problem:
The TRS P consists of the following rules:

DELETEC_IN_AGA(T72, .(T70, T71), .(T70, X86)) → DELETEC_IN_AGA(T72, T71, X86)

The TRS R consists of the following rules:

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))

The argument filtering Pi contains the following mapping:
queensA_in_a(x1)  =  queensA_in_a
U1_a(x1, x2, x3)  =  U1_a(x3)
pB_in_agaa(x1, x2, x3, x4)  =  pB_in_agaa(x2)
U24_agaa(x1, x2, x3, x4, x5)  =  U24_agaa(x2, x5)
deleteO_in_aga(x1, x2, x3)  =  deleteO_in_aga(x2)
deleteO_out_aga(x1, x2, x3)  =  deleteO_out_aga(x1, x2, x3)
U13_aga(x1, x2, x3, x4)  =  U13_aga(x2, x4)
deleteC_in_aga(x1, x2, x3)  =  deleteC_in_aga(x2)
.(x1, x2)  =  .(x1, x2)
deleteC_out_aga(x1, x2, x3)  =  deleteC_out_aga(x1, x2, x3)
U2_aga(x1, x2, x3, x4, x5)  =  U2_aga(x2, x3, x5)
U25_agaa(x1, x2, x3, x4, x5)  =  U25_agaa(x1, x2, x3, x5)
pN9_in_gag(x1, x2, x3)  =  pN9_in_gag(x1, x3)
U26_gag(x1, x2, x3, x4)  =  U26_gag(x1, x3, x4)
permD_in_ga(x1, x2)  =  permD_in_ga(x1)
[]  =  []
permD_out_ga(x1, x2)  =  permD_out_ga(x1, x2)
U3_ga(x1, x2, x3, x4, x5)  =  U3_ga(x1, x2, x5)
pE_in_aggaa(x1, x2, x3, x4, x5)  =  pE_in_aggaa(x2, x3)
U28_aggaa(x1, x2, x3, x4, x5, x6)  =  U28_aggaa(x2, x3, x6)
U29_aggaa(x1, x2, x3, x4, x5, x6)  =  U29_aggaa(x1, x2, x3, x4, x6)
pE_out_aggaa(x1, x2, x3, x4, x5)  =  pE_out_aggaa(x1, x2, x3, x4, x5)
U27_gag(x1, x2, x3, x4)  =  U27_gag(x1, x2, x3, x4)
safeP_in_gg(x1, x2)  =  safeP_in_gg(x1, x2)
U14_gg(x1, x2, x3)  =  U14_gg(x1, x2, x3)
pQ_in_gg(x1, x2)  =  pQ_in_gg(x1, x2)
U30_gg(x1, x2, x3)  =  U30_gg(x1, x2, x3)
noattackR_in_gg(x1, x2)  =  noattackR_in_gg(x1, x2)
noattackR_out_gg(x1, x2)  =  noattackR_out_gg(x1, x2)
U15_gg(x1, x2, x3, x4)  =  U15_gg(x1, x2, x3, x4)
pS_in_ggaag(x1, x2, x3, x4, x5)  =  pS_in_ggaag(x1, x2, x5)
U32_ggaag(x1, x2, x3, x4, x5, x6)  =  U32_ggaag(x1, x2, x5, x6)
notEqF_in_gg(x1, x2)  =  notEqF_in_gg(x1, x2)
0  =  0
s(x1)  =  s(x1)
notEqF_out_gg(x1, x2)  =  notEqF_out_gg(x1, x2)
U4_gg(x1, x2, x3)  =  U4_gg(x1, x2, x3)
U33_ggaag(x1, x2, x3, x4, x5, x6)  =  U33_ggaag(x1, x2, x5, x6)
pN10_in_gagag(x1, x2, x3, x4, x5)  =  pN10_in_gagag(x1, x3, x5)
U34_gagag(x1, x2, x3, x4, x5, x6)  =  U34_gagag(x1, x3, x5, x6)
addG_in_ga(x1, x2)  =  addG_in_ga(x1)
addG_out_ga(x1, x2)  =  addG_out_ga(x1, x2)
U5_ga(x1, x2, x3)  =  U5_ga(x1, x3)
U35_gagag(x1, x2, x3, x4, x5, x6)  =  U35_gagag(x1, x2, x3, x5, x6)
pN11_in_ggagg(x1, x2, x3, x4, x5)  =  pN11_in_ggagg(x1, x2, x4, x5)
U36_ggagg(x1, x2, x3, x4, x5, x6)  =  U36_ggagg(x1, x2, x4, x5, x6)
U37_ggagg(x1, x2, x3, x4, x5, x6)  =  U37_ggagg(x1, x2, x4, x5, x6)
pN12_in_gagg(x1, x2, x3, x4)  =  pN12_in_gagg(x1, x3, x4)
U38_gagg(x1, x2, x3, x4, x5)  =  U38_gagg(x1, x3, x4, x5)
U39_gagg(x1, x2, x3, x4, x5)  =  U39_gagg(x1, x2, x3, x4, x5)
pN13_in_gggg(x1, x2, x3, x4)  =  pN13_in_gggg(x1, x2, x3, x4)
U40_gggg(x1, x2, x3, x4, x5)  =  U40_gggg(x1, x2, x3, x4, x5)
U41_gggg(x1, x2, x3, x4, x5)  =  U41_gggg(x1, x2, x3, x4, x5)
noattackU_in_gg(x1, x2)  =  noattackU_in_gg(x1, x2)
noattackU_out_gg(x1, x2)  =  noattackU_out_gg(x1, x2)
U17_gg(x1, x2, x3, x4)  =  U17_gg(x1, x2, x3, x4)
pV_in_ggaag(x1, x2, x3, x4, x5)  =  pV_in_ggaag(x1, x2, x5)
U42_ggaag(x1, x2, x3, x4, x5, x6)  =  U42_ggaag(x1, x2, x5, x6)
U43_ggaag(x1, x2, x3, x4, x5, x6)  =  U43_ggaag(x1, x2, x5, x6)
pN14_in_gagag(x1, x2, x3, x4, x5)  =  pN14_in_gagag(x1, x3, x5)
U44_gagag(x1, x2, x3, x4, x5, x6)  =  U44_gagag(x1, x3, x5, x6)
addH_in_ga(x1, x2)  =  addH_in_ga(x1)
addH_out_ga(x1, x2)  =  addH_out_ga(x1, x2)
U6_ga(x1, x2, x3)  =  U6_ga(x1, x3)
U45_gagag(x1, x2, x3, x4, x5, x6)  =  U45_gagag(x1, x2, x3, x5, x6)
pN15_in_ggagg(x1, x2, x3, x4, x5)  =  pN15_in_ggagg(x1, x2, x4, x5)
U46_ggagg(x1, x2, x3, x4, x5, x6)  =  U46_ggagg(x1, x2, x4, x5, x6)
U47_ggagg(x1, x2, x3, x4, x5, x6)  =  U47_ggagg(x1, x2, x4, x5, x6)
pN16_in_gagg(x1, x2, x3, x4)  =  pN16_in_gagg(x1, x3, x4)
U48_gagg(x1, x2, x3, x4, x5)  =  U48_gagg(x1, x3, x4, x5)
U49_gagg(x1, x2, x3, x4, x5)  =  U49_gagg(x1, x2, x3, x4, x5)
pN17_in_gggg(x1, x2, x3, x4)  =  pN17_in_gggg(x1, x2, x3, x4)
U50_gggg(x1, x2, x3, x4, x5)  =  U50_gggg(x1, x2, x3, x4, x5)
U51_gggg(x1, x2, x3, x4, x5)  =  U51_gggg(x1, x2, x3, x4, x5)
noattackW_in_gg(x1, x2)  =  noattackW_in_gg(x1, x2)
noattackW_out_gg(x1, x2)  =  noattackW_out_gg(x1, x2)
U18_gg(x1, x2, x3, x4)  =  U18_gg(x1, x2, x3, x4)
pX_in_ggaag(x1, x2, x3, x4, x5)  =  pX_in_ggaag(x1, x2, x5)
U52_ggaag(x1, x2, x3, x4, x5, x6)  =  U52_ggaag(x1, x2, x5, x6)
U53_ggaag(x1, x2, x3, x4, x5, x6)  =  U53_ggaag(x1, x2, x5, x6)
pN18_in_gagag(x1, x2, x3, x4, x5)  =  pN18_in_gagag(x1, x3, x5)
U54_gagag(x1, x2, x3, x4, x5, x6)  =  U54_gagag(x1, x3, x5, x6)
addI_in_ga(x1, x2)  =  addI_in_ga(x1)
addI_out_ga(x1, x2)  =  addI_out_ga(x1, x2)
U7_ga(x1, x2, x3)  =  U7_ga(x1, x3)
U55_gagag(x1, x2, x3, x4, x5, x6)  =  U55_gagag(x1, x2, x3, x5, x6)
pN19_in_ggagg(x1, x2, x3, x4, x5)  =  pN19_in_ggagg(x1, x2, x4, x5)
U56_ggagg(x1, x2, x3, x4, x5, x6)  =  U56_ggagg(x1, x2, x4, x5, x6)
U57_ggagg(x1, x2, x3, x4, x5, x6)  =  U57_ggagg(x1, x2, x4, x5, x6)
pN20_in_gagg(x1, x2, x3, x4)  =  pN20_in_gagg(x1, x3, x4)
U58_gagg(x1, x2, x3, x4, x5)  =  U58_gagg(x1, x3, x4, x5)
U59_gagg(x1, x2, x3, x4, x5)  =  U59_gagg(x1, x2, x3, x4, x5)
pN21_in_gggg(x1, x2, x3, x4)  =  pN21_in_gggg(x1, x2, x3, x4)
U60_gggg(x1, x2, x3, x4, x5)  =  U60_gggg(x1, x2, x3, x4, x5)
U61_gggg(x1, x2, x3, x4, x5)  =  U61_gggg(x1, x2, x3, x4, x5)
noattackY_in_gg(x1, x2)  =  noattackY_in_gg(x1, x2)
noattackY_out_gg(x1, x2)  =  noattackY_out_gg(x1, x2)
U19_gg(x1, x2, x3, x4)  =  U19_gg(x1, x2, x3, x4)
pZ_in_ggaag(x1, x2, x3, x4, x5)  =  pZ_in_ggaag(x1, x2, x5)
U62_ggaag(x1, x2, x3, x4, x5, x6)  =  U62_ggaag(x1, x2, x5, x6)
U63_ggaag(x1, x2, x3, x4, x5, x6)  =  U63_ggaag(x1, x2, x5, x6)
pN22_in_gagag(x1, x2, x3, x4, x5)  =  pN22_in_gagag(x1, x3, x5)
U64_gagag(x1, x2, x3, x4, x5, x6)  =  U64_gagag(x1, x3, x5, x6)
addJ_in_ga(x1, x2)  =  addJ_in_ga(x1)
addJ_out_ga(x1, x2)  =  addJ_out_ga(x1, x2)
U8_ga(x1, x2, x3)  =  U8_ga(x1, x3)
U65_gagag(x1, x2, x3, x4, x5, x6)  =  U65_gagag(x1, x2, x3, x5, x6)
pN23_in_ggagg(x1, x2, x3, x4, x5)  =  pN23_in_ggagg(x1, x2, x4, x5)
U66_ggagg(x1, x2, x3, x4, x5, x6)  =  U66_ggagg(x1, x2, x4, x5, x6)
U67_ggagg(x1, x2, x3, x4, x5, x6)  =  U67_ggagg(x1, x2, x4, x5, x6)
pN24_in_gagg(x1, x2, x3, x4)  =  pN24_in_gagg(x1, x3, x4)
U68_gagg(x1, x2, x3, x4, x5)  =  U68_gagg(x1, x3, x4, x5)
U69_gagg(x1, x2, x3, x4, x5)  =  U69_gagg(x1, x2, x3, x4, x5)
pN25_in_gggg(x1, x2, x3, x4)  =  pN25_in_gggg(x1, x2, x3, x4)
U70_gggg(x1, x2, x3, x4, x5)  =  U70_gggg(x1, x2, x3, x4, x5)
U71_gggg(x1, x2, x3, x4, x5)  =  U71_gggg(x1, x2, x3, x4, x5)
noattackN1_in_gg(x1, x2)  =  noattackN1_in_gg(x1, x2)
noattackN1_out_gg(x1, x2)  =  noattackN1_out_gg(x1, x2)
U20_gg(x1, x2, x3, x4)  =  U20_gg(x1, x2, x3, x4)
pN2_in_ggaag(x1, x2, x3, x4, x5)  =  pN2_in_ggaag(x1, x2, x5)
U72_ggaag(x1, x2, x3, x4, x5, x6)  =  U72_ggaag(x1, x2, x5, x6)
U73_ggaag(x1, x2, x3, x4, x5, x6)  =  U73_ggaag(x1, x2, x5, x6)
pN26_in_gagag(x1, x2, x3, x4, x5)  =  pN26_in_gagag(x1, x3, x5)
U74_gagag(x1, x2, x3, x4, x5, x6)  =  U74_gagag(x1, x3, x5, x6)
addK_in_ga(x1, x2)  =  addK_in_ga(x1)
addK_out_ga(x1, x2)  =  addK_out_ga(x1, x2)
U9_ga(x1, x2, x3)  =  U9_ga(x1, x3)
U75_gagag(x1, x2, x3, x4, x5, x6)  =  U75_gagag(x1, x2, x3, x5, x6)
pN27_in_ggagg(x1, x2, x3, x4, x5)  =  pN27_in_ggagg(x1, x2, x4, x5)
U76_ggagg(x1, x2, x3, x4, x5, x6)  =  U76_ggagg(x1, x2, x4, x5, x6)
U77_ggagg(x1, x2, x3, x4, x5, x6)  =  U77_ggagg(x1, x2, x4, x5, x6)
pN28_in_gagg(x1, x2, x3, x4)  =  pN28_in_gagg(x1, x3, x4)
U78_gagg(x1, x2, x3, x4, x5)  =  U78_gagg(x1, x3, x4, x5)
U79_gagg(x1, x2, x3, x4, x5)  =  U79_gagg(x1, x2, x3, x4, x5)
pN29_in_gggg(x1, x2, x3, x4)  =  pN29_in_gggg(x1, x2, x3, x4)
U80_gggg(x1, x2, x3, x4, x5)  =  U80_gggg(x1, x2, x3, x4, x5)
U81_gggg(x1, x2, x3, x4, x5)  =  U81_gggg(x1, x2, x3, x4, x5)
noattackN3_in_gg(x1, x2)  =  noattackN3_in_gg(x1, x2)
noattackN3_out_gg(x1, x2)  =  noattackN3_out_gg(x1, x2)
U21_gg(x1, x2, x3, x4)  =  U21_gg(x1, x2, x3, x4)
pN4_in_ggaag(x1, x2, x3, x4, x5)  =  pN4_in_ggaag(x1, x2, x5)
U82_ggaag(x1, x2, x3, x4, x5, x6)  =  U82_ggaag(x1, x2, x5, x6)
U83_ggaag(x1, x2, x3, x4, x5, x6)  =  U83_ggaag(x1, x2, x5, x6)
pN30_in_gagag(x1, x2, x3, x4, x5)  =  pN30_in_gagag(x1, x3, x5)
U84_gagag(x1, x2, x3, x4, x5, x6)  =  U84_gagag(x1, x3, x5, x6)
addL_in_ga(x1, x2)  =  addL_in_ga(x1)
addL_out_ga(x1, x2)  =  addL_out_ga(x1, x2)
U10_ga(x1, x2, x3)  =  U10_ga(x1, x3)
U85_gagag(x1, x2, x3, x4, x5, x6)  =  U85_gagag(x1, x2, x3, x5, x6)
pN31_in_ggagg(x1, x2, x3, x4, x5)  =  pN31_in_ggagg(x1, x2, x4, x5)
U86_ggagg(x1, x2, x3, x4, x5, x6)  =  U86_ggagg(x1, x2, x4, x5, x6)
U87_ggagg(x1, x2, x3, x4, x5, x6)  =  U87_ggagg(x1, x2, x4, x5, x6)
pN32_in_gagg(x1, x2, x3, x4)  =  pN32_in_gagg(x1, x3, x4)
U88_gagg(x1, x2, x3, x4, x5)  =  U88_gagg(x1, x3, x4, x5)
U89_gagg(x1, x2, x3, x4, x5)  =  U89_gagg(x1, x2, x3, x4, x5)
pN33_in_gggg(x1, x2, x3, x4)  =  pN33_in_gggg(x1, x2, x3, x4)
U90_gggg(x1, x2, x3, x4, x5)  =  U90_gggg(x1, x2, x3, x4, x5)
U91_gggg(x1, x2, x3, x4, x5)  =  U91_gggg(x1, x2, x3, x4, x5)
noattackN5_in_gg(x1, x2)  =  noattackN5_in_gg(x1, x2)
noattackN5_out_gg(x1, x2)  =  noattackN5_out_gg(x1, x2)
U22_gg(x1, x2, x3, x4)  =  U22_gg(x1, x2, x3, x4)
pN6_in_ggaagg(x1, x2, x3, x4, x5, x6)  =  pN6_in_ggaagg(x1, x2, x5, x6)
U92_ggaagg(x1, x2, x3, x4, x5, x6, x7)  =  U92_ggaagg(x1, x2, x5, x6, x7)
U93_ggaagg(x1, x2, x3, x4, x5, x6, x7)  =  U93_ggaagg(x1, x2, x5, x6, x7)
pN34_in_gagagg(x1, x2, x3, x4, x5, x6)  =  pN34_in_gagagg(x1, x3, x5, x6)
U94_gagagg(x1, x2, x3, x4, x5, x6, x7)  =  U94_gagagg(x1, x3, x5, x6, x7)
addM_in_ga(x1, x2)  =  addM_in_ga(x1)
addM_out_ga(x1, x2)  =  addM_out_ga(x1, x2)
U11_ga(x1, x2, x3)  =  U11_ga(x1, x3)
U95_gagagg(x1, x2, x3, x4, x5, x6, x7)  =  U95_gagagg(x1, x2, x3, x5, x6, x7)
pN35_in_ggaggg(x1, x2, x3, x4, x5, x6)  =  pN35_in_ggaggg(x1, x2, x4, x5, x6)
U96_ggaggg(x1, x2, x3, x4, x5, x6, x7)  =  U96_ggaggg(x1, x2, x4, x5, x6, x7)
U97_ggaggg(x1, x2, x3, x4, x5, x6, x7)  =  U97_ggaggg(x1, x2, x4, x5, x6, x7)
pN36_in_gaggg(x1, x2, x3, x4, x5)  =  pN36_in_gaggg(x1, x3, x4, x5)
U98_gaggg(x1, x2, x3, x4, x5, x6)  =  U98_gaggg(x1, x3, x4, x5, x6)
U99_gaggg(x1, x2, x3, x4, x5, x6)  =  U99_gaggg(x1, x2, x3, x4, x5, x6)
pN37_in_ggggg(x1, x2, x3, x4, x5)  =  pN37_in_ggggg(x1, x2, x3, x4, x5)
U100_ggggg(x1, x2, x3, x4, x5, x6)  =  U100_ggggg(x1, x2, x3, x4, x5, x6)
U101_ggggg(x1, x2, x3, x4, x5, x6)  =  U101_ggggg(x1, x2, x3, x4, x5, x6)
noattackN7_in_ggg(x1, x2, x3)  =  noattackN7_in_ggg(x1, x2, x3)
noattackN7_out_ggg(x1, x2, x3)  =  noattackN7_out_ggg(x1, x2, x3)
U23_ggg(x1, x2, x3, x4, x5)  =  U23_ggg(x1, x2, x3, x4, x5)
pN8_in_gggaag(x1, x2, x3, x4, x5, x6)  =  pN8_in_gggaag(x1, x2, x3, x6)
U102_gggaag(x1, x2, x3, x4, x5, x6, x7)  =  U102_gggaag(x1, x2, x3, x6, x7)
U103_gggaag(x1, x2, x3, x4, x5, x6, x7)  =  U103_gggaag(x1, x2, x3, x6, x7)
pN38_in_ggagag(x1, x2, x3, x4, x5, x6)  =  pN38_in_ggagag(x1, x2, x4, x6)
U104_ggagag(x1, x2, x3, x4, x5, x6, x7)  =  U104_ggagag(x1, x2, x4, x6, x7)
addN_in_gga(x1, x2, x3)  =  addN_in_gga(x1, x2)
addN_out_gga(x1, x2, x3)  =  addN_out_gga(x1, x2, x3)
U12_gga(x1, x2, x3, x4)  =  U12_gga(x1, x2, x4)
U105_ggagag(x1, x2, x3, x4, x5, x6, x7)  =  U105_ggagag(x1, x2, x3, x4, x6, x7)
pN39_in_gggagg(x1, x2, x3, x4, x5, x6)  =  pN39_in_gggagg(x1, x2, x3, x5, x6)
U106_gggagg(x1, x2, x3, x4, x5, x6, x7)  =  U106_gggagg(x1, x2, x3, x5, x6, x7)
U107_gggagg(x1, x2, x3, x4, x5, x6, x7)  =  U107_gggagg(x1, x2, x3, x5, x6, x7)
pN40_in_ggagg(x1, x2, x3, x4, x5)  =  pN40_in_ggagg(x1, x2, x4, x5)
U108_ggagg(x1, x2, x3, x4, x5, x6)  =  U108_ggagg(x1, x2, x4, x5, x6)
U109_ggagg(x1, x2, x3, x4, x5, x6)  =  U109_ggagg(x1, x2, x3, x4, x5, x6)
pN37_out_ggggg(x1, x2, x3, x4, x5)  =  pN37_out_ggggg(x1, x2, x3, x4, x5)
pN40_out_ggagg(x1, x2, x3, x4, x5)  =  pN40_out_ggagg(x1, x2, x3, x4, x5)
pN39_out_gggagg(x1, x2, x3, x4, x5, x6)  =  pN39_out_gggagg(x1, x2, x3, x4, x5, x6)
pN38_out_ggagag(x1, x2, x3, x4, x5, x6)  =  pN38_out_ggagag(x1, x2, x3, x4, x5, x6)
pN8_out_gggaag(x1, x2, x3, x4, x5, x6)  =  pN8_out_gggaag(x1, x2, x3, x4, x5, x6)
pN36_out_gaggg(x1, x2, x3, x4, x5)  =  pN36_out_gaggg(x1, x2, x3, x4, x5)
pN35_out_ggaggg(x1, x2, x3, x4, x5, x6)  =  pN35_out_ggaggg(x1, x2, x3, x4, x5, x6)
pN34_out_gagagg(x1, x2, x3, x4, x5, x6)  =  pN34_out_gagagg(x1, x2, x3, x4, x5, x6)
pN6_out_ggaagg(x1, x2, x3, x4, x5, x6)  =  pN6_out_ggaagg(x1, x2, x3, x4, x5, x6)
pN33_out_gggg(x1, x2, x3, x4)  =  pN33_out_gggg(x1, x2, x3, x4)
pN32_out_gagg(x1, x2, x3, x4)  =  pN32_out_gagg(x1, x2, x3, x4)
pN31_out_ggagg(x1, x2, x3, x4, x5)  =  pN31_out_ggagg(x1, x2, x3, x4, x5)
pN30_out_gagag(x1, x2, x3, x4, x5)  =  pN30_out_gagag(x1, x2, x3, x4, x5)
pN4_out_ggaag(x1, x2, x3, x4, x5)  =  pN4_out_ggaag(x1, x2, x3, x4, x5)
pN29_out_gggg(x1, x2, x3, x4)  =  pN29_out_gggg(x1, x2, x3, x4)
pN28_out_gagg(x1, x2, x3, x4)  =  pN28_out_gagg(x1, x2, x3, x4)
pN27_out_ggagg(x1, x2, x3, x4, x5)  =  pN27_out_ggagg(x1, x2, x3, x4, x5)
pN26_out_gagag(x1, x2, x3, x4, x5)  =  pN26_out_gagag(x1, x2, x3, x4, x5)
pN2_out_ggaag(x1, x2, x3, x4, x5)  =  pN2_out_ggaag(x1, x2, x3, x4, x5)
pN25_out_gggg(x1, x2, x3, x4)  =  pN25_out_gggg(x1, x2, x3, x4)
pN24_out_gagg(x1, x2, x3, x4)  =  pN24_out_gagg(x1, x2, x3, x4)
pN23_out_ggagg(x1, x2, x3, x4, x5)  =  pN23_out_ggagg(x1, x2, x3, x4, x5)
pN22_out_gagag(x1, x2, x3, x4, x5)  =  pN22_out_gagag(x1, x2, x3, x4, x5)
pZ_out_ggaag(x1, x2, x3, x4, x5)  =  pZ_out_ggaag(x1, x2, x3, x4, x5)
pN21_out_gggg(x1, x2, x3, x4)  =  pN21_out_gggg(x1, x2, x3, x4)
pN20_out_gagg(x1, x2, x3, x4)  =  pN20_out_gagg(x1, x2, x3, x4)
pN19_out_ggagg(x1, x2, x3, x4, x5)  =  pN19_out_ggagg(x1, x2, x3, x4, x5)
pN18_out_gagag(x1, x2, x3, x4, x5)  =  pN18_out_gagag(x1, x2, x3, x4, x5)
pX_out_ggaag(x1, x2, x3, x4, x5)  =  pX_out_ggaag(x1, x2, x3, x4, x5)
pN17_out_gggg(x1, x2, x3, x4)  =  pN17_out_gggg(x1, x2, x3, x4)
pN16_out_gagg(x1, x2, x3, x4)  =  pN16_out_gagg(x1, x2, x3, x4)
pN15_out_ggagg(x1, x2, x3, x4, x5)  =  pN15_out_ggagg(x1, x2, x3, x4, x5)
pN14_out_gagag(x1, x2, x3, x4, x5)  =  pN14_out_gagag(x1, x2, x3, x4, x5)
pV_out_ggaag(x1, x2, x3, x4, x5)  =  pV_out_ggaag(x1, x2, x3, x4, x5)
pN13_out_gggg(x1, x2, x3, x4)  =  pN13_out_gggg(x1, x2, x3, x4)
pN12_out_gagg(x1, x2, x3, x4)  =  pN12_out_gagg(x1, x2, x3, x4)
pN11_out_ggagg(x1, x2, x3, x4, x5)  =  pN11_out_ggagg(x1, x2, x3, x4, x5)
pN10_out_gagag(x1, x2, x3, x4, x5)  =  pN10_out_gagag(x1, x2, x3, x4, x5)
pS_out_ggaag(x1, x2, x3, x4, x5)  =  pS_out_ggaag(x1, x2, x3, x4, x5)
U31_gg(x1, x2, x3)  =  U31_gg(x1, x2, x3)
safeT_in_g(x1)  =  safeT_in_g(x1)
safeT_out_g(x1)  =  safeT_out_g(x1)
U16_g(x1, x2, x3)  =  U16_g(x1, x2, x3)
pQ_out_gg(x1, x2)  =  pQ_out_gg(x1, x2)
safeP_out_gg(x1, x2)  =  safeP_out_gg(x1, x2)
pN9_out_gag(x1, x2, x3)  =  pN9_out_gag(x1, x2, x3)
pB_out_agaa(x1, x2, x3, x4)  =  pB_out_agaa(x1, x2, x3, x4)
queensA_out_a(x1)  =  queensA_out_a(x1)
DELETEC_IN_AGA(x1, x2, x3)  =  DELETEC_IN_AGA(x2)

We have to consider all (P,R,Pi)-chains

(85) UsableRulesProof (EQUIVALENT transformation)

For (infinitary) constructor rewriting [LOPSTR] we can delete all non-usable rules from R.

(86) Obligation:

Pi DP problem:
The TRS P consists of the following rules:

DELETEC_IN_AGA(T72, .(T70, T71), .(T70, X86)) → DELETEC_IN_AGA(T72, T71, X86)

R is empty.
The argument filtering Pi contains the following mapping:
.(x1, x2)  =  .(x1, x2)
DELETEC_IN_AGA(x1, x2, x3)  =  DELETEC_IN_AGA(x2)

We have to consider all (P,R,Pi)-chains

(87) PiDPToQDPProof (SOUND transformation)

Transforming (infinitary) constructor rewriting Pi-DP problem [LOPSTR] into ordinary QDP problem [LPAR04] by application of Pi.

(88) Obligation:

Q DP problem:
The TRS P consists of the following rules:

DELETEC_IN_AGA(.(T70, T71)) → DELETEC_IN_AGA(T71)

R is empty.
Q is empty.
We have to consider all (P,Q,R)-chains.

(89) QDPSizeChangeProof (EQUIVALENT transformation)

By using the subterm criterion [SUBTERM_CRITERION] together with the size-change analysis [AAECC05] we have proven that there are no infinite chains for this DP problem.

From the DPs we obtained the following set of size-change graphs:

  • DELETEC_IN_AGA(.(T70, T71)) → DELETEC_IN_AGA(T71)
    The graph contains the following edges 1 > 1

(90) YES

(91) Obligation:

Pi DP problem:
The TRS P consists of the following rules:

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)

The TRS R consists of the following rules:

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))

The argument filtering Pi contains the following mapping:
queensA_in_a(x1)  =  queensA_in_a
U1_a(x1, x2, x3)  =  U1_a(x3)
pB_in_agaa(x1, x2, x3, x4)  =  pB_in_agaa(x2)
U24_agaa(x1, x2, x3, x4, x5)  =  U24_agaa(x2, x5)
deleteO_in_aga(x1, x2, x3)  =  deleteO_in_aga(x2)
deleteO_out_aga(x1, x2, x3)  =  deleteO_out_aga(x1, x2, x3)
U13_aga(x1, x2, x3, x4)  =  U13_aga(x2, x4)
deleteC_in_aga(x1, x2, x3)  =  deleteC_in_aga(x2)
.(x1, x2)  =  .(x1, x2)
deleteC_out_aga(x1, x2, x3)  =  deleteC_out_aga(x1, x2, x3)
U2_aga(x1, x2, x3, x4, x5)  =  U2_aga(x2, x3, x5)
U25_agaa(x1, x2, x3, x4, x5)  =  U25_agaa(x1, x2, x3, x5)
pN9_in_gag(x1, x2, x3)  =  pN9_in_gag(x1, x3)
U26_gag(x1, x2, x3, x4)  =  U26_gag(x1, x3, x4)
permD_in_ga(x1, x2)  =  permD_in_ga(x1)
[]  =  []
permD_out_ga(x1, x2)  =  permD_out_ga(x1, x2)
U3_ga(x1, x2, x3, x4, x5)  =  U3_ga(x1, x2, x5)
pE_in_aggaa(x1, x2, x3, x4, x5)  =  pE_in_aggaa(x2, x3)
U28_aggaa(x1, x2, x3, x4, x5, x6)  =  U28_aggaa(x2, x3, x6)
U29_aggaa(x1, x2, x3, x4, x5, x6)  =  U29_aggaa(x1, x2, x3, x4, x6)
pE_out_aggaa(x1, x2, x3, x4, x5)  =  pE_out_aggaa(x1, x2, x3, x4, x5)
U27_gag(x1, x2, x3, x4)  =  U27_gag(x1, x2, x3, x4)
safeP_in_gg(x1, x2)  =  safeP_in_gg(x1, x2)
U14_gg(x1, x2, x3)  =  U14_gg(x1, x2, x3)
pQ_in_gg(x1, x2)  =  pQ_in_gg(x1, x2)
U30_gg(x1, x2, x3)  =  U30_gg(x1, x2, x3)
noattackR_in_gg(x1, x2)  =  noattackR_in_gg(x1, x2)
noattackR_out_gg(x1, x2)  =  noattackR_out_gg(x1, x2)
U15_gg(x1, x2, x3, x4)  =  U15_gg(x1, x2, x3, x4)
pS_in_ggaag(x1, x2, x3, x4, x5)  =  pS_in_ggaag(x1, x2, x5)
U32_ggaag(x1, x2, x3, x4, x5, x6)  =  U32_ggaag(x1, x2, x5, x6)
notEqF_in_gg(x1, x2)  =  notEqF_in_gg(x1, x2)
0  =  0
s(x1)  =  s(x1)
notEqF_out_gg(x1, x2)  =  notEqF_out_gg(x1, x2)
U4_gg(x1, x2, x3)  =  U4_gg(x1, x2, x3)
U33_ggaag(x1, x2, x3, x4, x5, x6)  =  U33_ggaag(x1, x2, x5, x6)
pN10_in_gagag(x1, x2, x3, x4, x5)  =  pN10_in_gagag(x1, x3, x5)
U34_gagag(x1, x2, x3, x4, x5, x6)  =  U34_gagag(x1, x3, x5, x6)
addG_in_ga(x1, x2)  =  addG_in_ga(x1)
addG_out_ga(x1, x2)  =  addG_out_ga(x1, x2)
U5_ga(x1, x2, x3)  =  U5_ga(x1, x3)
U35_gagag(x1, x2, x3, x4, x5, x6)  =  U35_gagag(x1, x2, x3, x5, x6)
pN11_in_ggagg(x1, x2, x3, x4, x5)  =  pN11_in_ggagg(x1, x2, x4, x5)
U36_ggagg(x1, x2, x3, x4, x5, x6)  =  U36_ggagg(x1, x2, x4, x5, x6)
U37_ggagg(x1, x2, x3, x4, x5, x6)  =  U37_ggagg(x1, x2, x4, x5, x6)
pN12_in_gagg(x1, x2, x3, x4)  =  pN12_in_gagg(x1, x3, x4)
U38_gagg(x1, x2, x3, x4, x5)  =  U38_gagg(x1, x3, x4, x5)
U39_gagg(x1, x2, x3, x4, x5)  =  U39_gagg(x1, x2, x3, x4, x5)
pN13_in_gggg(x1, x2, x3, x4)  =  pN13_in_gggg(x1, x2, x3, x4)
U40_gggg(x1, x2, x3, x4, x5)  =  U40_gggg(x1, x2, x3, x4, x5)
U41_gggg(x1, x2, x3, x4, x5)  =  U41_gggg(x1, x2, x3, x4, x5)
noattackU_in_gg(x1, x2)  =  noattackU_in_gg(x1, x2)
noattackU_out_gg(x1, x2)  =  noattackU_out_gg(x1, x2)
U17_gg(x1, x2, x3, x4)  =  U17_gg(x1, x2, x3, x4)
pV_in_ggaag(x1, x2, x3, x4, x5)  =  pV_in_ggaag(x1, x2, x5)
U42_ggaag(x1, x2, x3, x4, x5, x6)  =  U42_ggaag(x1, x2, x5, x6)
U43_ggaag(x1, x2, x3, x4, x5, x6)  =  U43_ggaag(x1, x2, x5, x6)
pN14_in_gagag(x1, x2, x3, x4, x5)  =  pN14_in_gagag(x1, x3, x5)
U44_gagag(x1, x2, x3, x4, x5, x6)  =  U44_gagag(x1, x3, x5, x6)
addH_in_ga(x1, x2)  =  addH_in_ga(x1)
addH_out_ga(x1, x2)  =  addH_out_ga(x1, x2)
U6_ga(x1, x2, x3)  =  U6_ga(x1, x3)
U45_gagag(x1, x2, x3, x4, x5, x6)  =  U45_gagag(x1, x2, x3, x5, x6)
pN15_in_ggagg(x1, x2, x3, x4, x5)  =  pN15_in_ggagg(x1, x2, x4, x5)
U46_ggagg(x1, x2, x3, x4, x5, x6)  =  U46_ggagg(x1, x2, x4, x5, x6)
U47_ggagg(x1, x2, x3, x4, x5, x6)  =  U47_ggagg(x1, x2, x4, x5, x6)
pN16_in_gagg(x1, x2, x3, x4)  =  pN16_in_gagg(x1, x3, x4)
U48_gagg(x1, x2, x3, x4, x5)  =  U48_gagg(x1, x3, x4, x5)
U49_gagg(x1, x2, x3, x4, x5)  =  U49_gagg(x1, x2, x3, x4, x5)
pN17_in_gggg(x1, x2, x3, x4)  =  pN17_in_gggg(x1, x2, x3, x4)
U50_gggg(x1, x2, x3, x4, x5)  =  U50_gggg(x1, x2, x3, x4, x5)
U51_gggg(x1, x2, x3, x4, x5)  =  U51_gggg(x1, x2, x3, x4, x5)
noattackW_in_gg(x1, x2)  =  noattackW_in_gg(x1, x2)
noattackW_out_gg(x1, x2)  =  noattackW_out_gg(x1, x2)
U18_gg(x1, x2, x3, x4)  =  U18_gg(x1, x2, x3, x4)
pX_in_ggaag(x1, x2, x3, x4, x5)  =  pX_in_ggaag(x1, x2, x5)
U52_ggaag(x1, x2, x3, x4, x5, x6)  =  U52_ggaag(x1, x2, x5, x6)
U53_ggaag(x1, x2, x3, x4, x5, x6)  =  U53_ggaag(x1, x2, x5, x6)
pN18_in_gagag(x1, x2, x3, x4, x5)  =  pN18_in_gagag(x1, x3, x5)
U54_gagag(x1, x2, x3, x4, x5, x6)  =  U54_gagag(x1, x3, x5, x6)
addI_in_ga(x1, x2)  =  addI_in_ga(x1)
addI_out_ga(x1, x2)  =  addI_out_ga(x1, x2)
U7_ga(x1, x2, x3)  =  U7_ga(x1, x3)
U55_gagag(x1, x2, x3, x4, x5, x6)  =  U55_gagag(x1, x2, x3, x5, x6)
pN19_in_ggagg(x1, x2, x3, x4, x5)  =  pN19_in_ggagg(x1, x2, x4, x5)
U56_ggagg(x1, x2, x3, x4, x5, x6)  =  U56_ggagg(x1, x2, x4, x5, x6)
U57_ggagg(x1, x2, x3, x4, x5, x6)  =  U57_ggagg(x1, x2, x4, x5, x6)
pN20_in_gagg(x1, x2, x3, x4)  =  pN20_in_gagg(x1, x3, x4)
U58_gagg(x1, x2, x3, x4, x5)  =  U58_gagg(x1, x3, x4, x5)
U59_gagg(x1, x2, x3, x4, x5)  =  U59_gagg(x1, x2, x3, x4, x5)
pN21_in_gggg(x1, x2, x3, x4)  =  pN21_in_gggg(x1, x2, x3, x4)
U60_gggg(x1, x2, x3, x4, x5)  =  U60_gggg(x1, x2, x3, x4, x5)
U61_gggg(x1, x2, x3, x4, x5)  =  U61_gggg(x1, x2, x3, x4, x5)
noattackY_in_gg(x1, x2)  =  noattackY_in_gg(x1, x2)
noattackY_out_gg(x1, x2)  =  noattackY_out_gg(x1, x2)
U19_gg(x1, x2, x3, x4)  =  U19_gg(x1, x2, x3, x4)
pZ_in_ggaag(x1, x2, x3, x4, x5)  =  pZ_in_ggaag(x1, x2, x5)
U62_ggaag(x1, x2, x3, x4, x5, x6)  =  U62_ggaag(x1, x2, x5, x6)
U63_ggaag(x1, x2, x3, x4, x5, x6)  =  U63_ggaag(x1, x2, x5, x6)
pN22_in_gagag(x1, x2, x3, x4, x5)  =  pN22_in_gagag(x1, x3, x5)
U64_gagag(x1, x2, x3, x4, x5, x6)  =  U64_gagag(x1, x3, x5, x6)
addJ_in_ga(x1, x2)  =  addJ_in_ga(x1)
addJ_out_ga(x1, x2)  =  addJ_out_ga(x1, x2)
U8_ga(x1, x2, x3)  =  U8_ga(x1, x3)
U65_gagag(x1, x2, x3, x4, x5, x6)  =  U65_gagag(x1, x2, x3, x5, x6)
pN23_in_ggagg(x1, x2, x3, x4, x5)  =  pN23_in_ggagg(x1, x2, x4, x5)
U66_ggagg(x1, x2, x3, x4, x5, x6)  =  U66_ggagg(x1, x2, x4, x5, x6)
U67_ggagg(x1, x2, x3, x4, x5, x6)  =  U67_ggagg(x1, x2, x4, x5, x6)
pN24_in_gagg(x1, x2, x3, x4)  =  pN24_in_gagg(x1, x3, x4)
U68_gagg(x1, x2, x3, x4, x5)  =  U68_gagg(x1, x3, x4, x5)
U69_gagg(x1, x2, x3, x4, x5)  =  U69_gagg(x1, x2, x3, x4, x5)
pN25_in_gggg(x1, x2, x3, x4)  =  pN25_in_gggg(x1, x2, x3, x4)
U70_gggg(x1, x2, x3, x4, x5)  =  U70_gggg(x1, x2, x3, x4, x5)
U71_gggg(x1, x2, x3, x4, x5)  =  U71_gggg(x1, x2, x3, x4, x5)
noattackN1_in_gg(x1, x2)  =  noattackN1_in_gg(x1, x2)
noattackN1_out_gg(x1, x2)  =  noattackN1_out_gg(x1, x2)
U20_gg(x1, x2, x3, x4)  =  U20_gg(x1, x2, x3, x4)
pN2_in_ggaag(x1, x2, x3, x4, x5)  =  pN2_in_ggaag(x1, x2, x5)
U72_ggaag(x1, x2, x3, x4, x5, x6)  =  U72_ggaag(x1, x2, x5, x6)
U73_ggaag(x1, x2, x3, x4, x5, x6)  =  U73_ggaag(x1, x2, x5, x6)
pN26_in_gagag(x1, x2, x3, x4, x5)  =  pN26_in_gagag(x1, x3, x5)
U74_gagag(x1, x2, x3, x4, x5, x6)  =  U74_gagag(x1, x3, x5, x6)
addK_in_ga(x1, x2)  =  addK_in_ga(x1)
addK_out_ga(x1, x2)  =  addK_out_ga(x1, x2)
U9_ga(x1, x2, x3)  =  U9_ga(x1, x3)
U75_gagag(x1, x2, x3, x4, x5, x6)  =  U75_gagag(x1, x2, x3, x5, x6)
pN27_in_ggagg(x1, x2, x3, x4, x5)  =  pN27_in_ggagg(x1, x2, x4, x5)
U76_ggagg(x1, x2, x3, x4, x5, x6)  =  U76_ggagg(x1, x2, x4, x5, x6)
U77_ggagg(x1, x2, x3, x4, x5, x6)  =  U77_ggagg(x1, x2, x4, x5, x6)
pN28_in_gagg(x1, x2, x3, x4)  =  pN28_in_gagg(x1, x3, x4)
U78_gagg(x1, x2, x3, x4, x5)  =  U78_gagg(x1, x3, x4, x5)
U79_gagg(x1, x2, x3, x4, x5)  =  U79_gagg(x1, x2, x3, x4, x5)
pN29_in_gggg(x1, x2, x3, x4)  =  pN29_in_gggg(x1, x2, x3, x4)
U80_gggg(x1, x2, x3, x4, x5)  =  U80_gggg(x1, x2, x3, x4, x5)
U81_gggg(x1, x2, x3, x4, x5)  =  U81_gggg(x1, x2, x3, x4, x5)
noattackN3_in_gg(x1, x2)  =  noattackN3_in_gg(x1, x2)
noattackN3_out_gg(x1, x2)  =  noattackN3_out_gg(x1, x2)
U21_gg(x1, x2, x3, x4)  =  U21_gg(x1, x2, x3, x4)
pN4_in_ggaag(x1, x2, x3, x4, x5)  =  pN4_in_ggaag(x1, x2, x5)
U82_ggaag(x1, x2, x3, x4, x5, x6)  =  U82_ggaag(x1, x2, x5, x6)
U83_ggaag(x1, x2, x3, x4, x5, x6)  =  U83_ggaag(x1, x2, x5, x6)
pN30_in_gagag(x1, x2, x3, x4, x5)  =  pN30_in_gagag(x1, x3, x5)
U84_gagag(x1, x2, x3, x4, x5, x6)  =  U84_gagag(x1, x3, x5, x6)
addL_in_ga(x1, x2)  =  addL_in_ga(x1)
addL_out_ga(x1, x2)  =  addL_out_ga(x1, x2)
U10_ga(x1, x2, x3)  =  U10_ga(x1, x3)
U85_gagag(x1, x2, x3, x4, x5, x6)  =  U85_gagag(x1, x2, x3, x5, x6)
pN31_in_ggagg(x1, x2, x3, x4, x5)  =  pN31_in_ggagg(x1, x2, x4, x5)
U86_ggagg(x1, x2, x3, x4, x5, x6)  =  U86_ggagg(x1, x2, x4, x5, x6)
U87_ggagg(x1, x2, x3, x4, x5, x6)  =  U87_ggagg(x1, x2, x4, x5, x6)
pN32_in_gagg(x1, x2, x3, x4)  =  pN32_in_gagg(x1, x3, x4)
U88_gagg(x1, x2, x3, x4, x5)  =  U88_gagg(x1, x3, x4, x5)
U89_gagg(x1, x2, x3, x4, x5)  =  U89_gagg(x1, x2, x3, x4, x5)
pN33_in_gggg(x1, x2, x3, x4)  =  pN33_in_gggg(x1, x2, x3, x4)
U90_gggg(x1, x2, x3, x4, x5)  =  U90_gggg(x1, x2, x3, x4, x5)
U91_gggg(x1, x2, x3, x4, x5)  =  U91_gggg(x1, x2, x3, x4, x5)
noattackN5_in_gg(x1, x2)  =  noattackN5_in_gg(x1, x2)
noattackN5_out_gg(x1, x2)  =  noattackN5_out_gg(x1, x2)
U22_gg(x1, x2, x3, x4)  =  U22_gg(x1, x2, x3, x4)
pN6_in_ggaagg(x1, x2, x3, x4, x5, x6)  =  pN6_in_ggaagg(x1, x2, x5, x6)
U92_ggaagg(x1, x2, x3, x4, x5, x6, x7)  =  U92_ggaagg(x1, x2, x5, x6, x7)
U93_ggaagg(x1, x2, x3, x4, x5, x6, x7)  =  U93_ggaagg(x1, x2, x5, x6, x7)
pN34_in_gagagg(x1, x2, x3, x4, x5, x6)  =  pN34_in_gagagg(x1, x3, x5, x6)
U94_gagagg(x1, x2, x3, x4, x5, x6, x7)  =  U94_gagagg(x1, x3, x5, x6, x7)
addM_in_ga(x1, x2)  =  addM_in_ga(x1)
addM_out_ga(x1, x2)  =  addM_out_ga(x1, x2)
U11_ga(x1, x2, x3)  =  U11_ga(x1, x3)
U95_gagagg(x1, x2, x3, x4, x5, x6, x7)  =  U95_gagagg(x1, x2, x3, x5, x6, x7)
pN35_in_ggaggg(x1, x2, x3, x4, x5, x6)  =  pN35_in_ggaggg(x1, x2, x4, x5, x6)
U96_ggaggg(x1, x2, x3, x4, x5, x6, x7)  =  U96_ggaggg(x1, x2, x4, x5, x6, x7)
U97_ggaggg(x1, x2, x3, x4, x5, x6, x7)  =  U97_ggaggg(x1, x2, x4, x5, x6, x7)
pN36_in_gaggg(x1, x2, x3, x4, x5)  =  pN36_in_gaggg(x1, x3, x4, x5)
U98_gaggg(x1, x2, x3, x4, x5, x6)  =  U98_gaggg(x1, x3, x4, x5, x6)
U99_gaggg(x1, x2, x3, x4, x5, x6)  =  U99_gaggg(x1, x2, x3, x4, x5, x6)
pN37_in_ggggg(x1, x2, x3, x4, x5)  =  pN37_in_ggggg(x1, x2, x3, x4, x5)
U100_ggggg(x1, x2, x3, x4, x5, x6)  =  U100_ggggg(x1, x2, x3, x4, x5, x6)
U101_ggggg(x1, x2, x3, x4, x5, x6)  =  U101_ggggg(x1, x2, x3, x4, x5, x6)
noattackN7_in_ggg(x1, x2, x3)  =  noattackN7_in_ggg(x1, x2, x3)
noattackN7_out_ggg(x1, x2, x3)  =  noattackN7_out_ggg(x1, x2, x3)
U23_ggg(x1, x2, x3, x4, x5)  =  U23_ggg(x1, x2, x3, x4, x5)
pN8_in_gggaag(x1, x2, x3, x4, x5, x6)  =  pN8_in_gggaag(x1, x2, x3, x6)
U102_gggaag(x1, x2, x3, x4, x5, x6, x7)  =  U102_gggaag(x1, x2, x3, x6, x7)
U103_gggaag(x1, x2, x3, x4, x5, x6, x7)  =  U103_gggaag(x1, x2, x3, x6, x7)
pN38_in_ggagag(x1, x2, x3, x4, x5, x6)  =  pN38_in_ggagag(x1, x2, x4, x6)
U104_ggagag(x1, x2, x3, x4, x5, x6, x7)  =  U104_ggagag(x1, x2, x4, x6, x7)
addN_in_gga(x1, x2, x3)  =  addN_in_gga(x1, x2)
addN_out_gga(x1, x2, x3)  =  addN_out_gga(x1, x2, x3)
U12_gga(x1, x2, x3, x4)  =  U12_gga(x1, x2, x4)
U105_ggagag(x1, x2, x3, x4, x5, x6, x7)  =  U105_ggagag(x1, x2, x3, x4, x6, x7)
pN39_in_gggagg(x1, x2, x3, x4, x5, x6)  =  pN39_in_gggagg(x1, x2, x3, x5, x6)
U106_gggagg(x1, x2, x3, x4, x5, x6, x7)  =  U106_gggagg(x1, x2, x3, x5, x6, x7)
U107_gggagg(x1, x2, x3, x4, x5, x6, x7)  =  U107_gggagg(x1, x2, x3, x5, x6, x7)
pN40_in_ggagg(x1, x2, x3, x4, x5)  =  pN40_in_ggagg(x1, x2, x4, x5)
U108_ggagg(x1, x2, x3, x4, x5, x6)  =  U108_ggagg(x1, x2, x4, x5, x6)
U109_ggagg(x1, x2, x3, x4, x5, x6)  =  U109_ggagg(x1, x2, x3, x4, x5, x6)
pN37_out_ggggg(x1, x2, x3, x4, x5)  =  pN37_out_ggggg(x1, x2, x3, x4, x5)
pN40_out_ggagg(x1, x2, x3, x4, x5)  =  pN40_out_ggagg(x1, x2, x3, x4, x5)
pN39_out_gggagg(x1, x2, x3, x4, x5, x6)  =  pN39_out_gggagg(x1, x2, x3, x4, x5, x6)
pN38_out_ggagag(x1, x2, x3, x4, x5, x6)  =  pN38_out_ggagag(x1, x2, x3, x4, x5, x6)
pN8_out_gggaag(x1, x2, x3, x4, x5, x6)  =  pN8_out_gggaag(x1, x2, x3, x4, x5, x6)
pN36_out_gaggg(x1, x2, x3, x4, x5)  =  pN36_out_gaggg(x1, x2, x3, x4, x5)
pN35_out_ggaggg(x1, x2, x3, x4, x5, x6)  =  pN35_out_ggaggg(x1, x2, x3, x4, x5, x6)
pN34_out_gagagg(x1, x2, x3, x4, x5, x6)  =  pN34_out_gagagg(x1, x2, x3, x4, x5, x6)
pN6_out_ggaagg(x1, x2, x3, x4, x5, x6)  =  pN6_out_ggaagg(x1, x2, x3, x4, x5, x6)
pN33_out_gggg(x1, x2, x3, x4)  =  pN33_out_gggg(x1, x2, x3, x4)
pN32_out_gagg(x1, x2, x3, x4)  =  pN32_out_gagg(x1, x2, x3, x4)
pN31_out_ggagg(x1, x2, x3, x4, x5)  =  pN31_out_ggagg(x1, x2, x3, x4, x5)
pN30_out_gagag(x1, x2, x3, x4, x5)  =  pN30_out_gagag(x1, x2, x3, x4, x5)
pN4_out_ggaag(x1, x2, x3, x4, x5)  =  pN4_out_ggaag(x1, x2, x3, x4, x5)
pN29_out_gggg(x1, x2, x3, x4)  =  pN29_out_gggg(x1, x2, x3, x4)
pN28_out_gagg(x1, x2, x3, x4)  =  pN28_out_gagg(x1, x2, x3, x4)
pN27_out_ggagg(x1, x2, x3, x4, x5)  =  pN27_out_ggagg(x1, x2, x3, x4, x5)
pN26_out_gagag(x1, x2, x3, x4, x5)  =  pN26_out_gagag(x1, x2, x3, x4, x5)
pN2_out_ggaag(x1, x2, x3, x4, x5)  =  pN2_out_ggaag(x1, x2, x3, x4, x5)
pN25_out_gggg(x1, x2, x3, x4)  =  pN25_out_gggg(x1, x2, x3, x4)
pN24_out_gagg(x1, x2, x3, x4)  =  pN24_out_gagg(x1, x2, x3, x4)
pN23_out_ggagg(x1, x2, x3, x4, x5)  =  pN23_out_ggagg(x1, x2, x3, x4, x5)
pN22_out_gagag(x1, x2, x3, x4, x5)  =  pN22_out_gagag(x1, x2, x3, x4, x5)
pZ_out_ggaag(x1, x2, x3, x4, x5)  =  pZ_out_ggaag(x1, x2, x3, x4, x5)
pN21_out_gggg(x1, x2, x3, x4)  =  pN21_out_gggg(x1, x2, x3, x4)
pN20_out_gagg(x1, x2, x3, x4)  =  pN20_out_gagg(x1, x2, x3, x4)
pN19_out_ggagg(x1, x2, x3, x4, x5)  =  pN19_out_ggagg(x1, x2, x3, x4, x5)
pN18_out_gagag(x1, x2, x3, x4, x5)  =  pN18_out_gagag(x1, x2, x3, x4, x5)
pX_out_ggaag(x1, x2, x3, x4, x5)  =  pX_out_ggaag(x1, x2, x3, x4, x5)
pN17_out_gggg(x1, x2, x3, x4)  =  pN17_out_gggg(x1, x2, x3, x4)
pN16_out_gagg(x1, x2, x3, x4)  =  pN16_out_gagg(x1, x2, x3, x4)
pN15_out_ggagg(x1, x2, x3, x4, x5)  =  pN15_out_ggagg(x1, x2, x3, x4, x5)
pN14_out_gagag(x1, x2, x3, x4, x5)  =  pN14_out_gagag(x1, x2, x3, x4, x5)
pV_out_ggaag(x1, x2, x3, x4, x5)  =  pV_out_ggaag(x1, x2, x3, x4, x5)
pN13_out_gggg(x1, x2, x3, x4)  =  pN13_out_gggg(x1, x2, x3, x4)
pN12_out_gagg(x1, x2, x3, x4)  =  pN12_out_gagg(x1, x2, x3, x4)
pN11_out_ggagg(x1, x2, x3, x4, x5)  =  pN11_out_ggagg(x1, x2, x3, x4, x5)
pN10_out_gagag(x1, x2, x3, x4, x5)  =  pN10_out_gagag(x1, x2, x3, x4, x5)
pS_out_ggaag(x1, x2, x3, x4, x5)  =  pS_out_ggaag(x1, x2, x3, x4, x5)
U31_gg(x1, x2, x3)  =  U31_gg(x1, x2, x3)
safeT_in_g(x1)  =  safeT_in_g(x1)
safeT_out_g(x1)  =  safeT_out_g(x1)
U16_g(x1, x2, x3)  =  U16_g(x1, x2, x3)
pQ_out_gg(x1, x2)  =  pQ_out_gg(x1, x2)
safeP_out_gg(x1, x2)  =  safeP_out_gg(x1, x2)
pN9_out_gag(x1, x2, x3)  =  pN9_out_gag(x1, x2, x3)
pB_out_agaa(x1, x2, x3, x4)  =  pB_out_agaa(x1, x2, x3, x4)
queensA_out_a(x1)  =  queensA_out_a(x1)
PERMD_IN_GA(x1, x2)  =  PERMD_IN_GA(x1)
PE_IN_AGGAA(x1, x2, x3, x4, x5)  =  PE_IN_AGGAA(x2, x3)
U28_AGGAA(x1, x2, x3, x4, x5, x6)  =  U28_AGGAA(x2, x3, x6)

We have to consider all (P,R,Pi)-chains

(92) UsableRulesProof (EQUIVALENT transformation)

For (infinitary) constructor rewriting [LOPSTR] we can delete all non-usable rules from R.

(93) Obligation:

Pi DP problem:
The TRS P consists of the following rules:

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)

The TRS R consists of the following rules:

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))

The argument filtering Pi contains the following mapping:
deleteC_in_aga(x1, x2, x3)  =  deleteC_in_aga(x2)
.(x1, x2)  =  .(x1, x2)
deleteC_out_aga(x1, x2, x3)  =  deleteC_out_aga(x1, x2, x3)
U2_aga(x1, x2, x3, x4, x5)  =  U2_aga(x2, x3, x5)
PERMD_IN_GA(x1, x2)  =  PERMD_IN_GA(x1)
PE_IN_AGGAA(x1, x2, x3, x4, x5)  =  PE_IN_AGGAA(x2, x3)
U28_AGGAA(x1, x2, x3, x4, x5, x6)  =  U28_AGGAA(x2, x3, x6)

We have to consider all (P,R,Pi)-chains

(94) PiDPToQDPProof (SOUND transformation)

Transforming (infinitary) constructor rewriting Pi-DP problem [LOPSTR] into ordinary QDP problem [LPAR04] by application of Pi.

(95) Obligation:

Q DP problem:
The TRS P consists of the following rules:

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)

The TRS R consists of the following rules:

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))

The set Q consists of the following terms:

deleteC_in_aga(x0)
U2_aga(x0, x1, x2)

We have to consider all (P,Q,R)-chains.

(96) QDPOrderProof (EQUIVALENT transformation)

We use the reduction pair processor [LPAR04,JAR06].


The following pairs can be oriented strictly and are deleted.


U28_AGGAA(T86, T87, deleteC_out_aga(T90, .(T86, T87), T96)) → PERMD_IN_GA(T96)
The remaining pairs can at least be oriented weakly.
Used ordering: Polynomial interpretation [POLO]:

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   

The following usable rules [FROCOS05] with respect to the argument filtering of the ordering [JAR06] were oriented:

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))

(97) Obligation:

Q DP problem:
The TRS P consists of the following rules:

PE_IN_AGGAA(T86, T87) → U28_AGGAA(T86, T87, deleteC_in_aga(.(T86, T87)))
PERMD_IN_GA(.(T86, T87)) → PE_IN_AGGAA(T86, T87)

The TRS R consists of the following rules:

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))

The set Q consists of the following terms:

deleteC_in_aga(x0)
U2_aga(x0, x1, x2)

We have to consider all (P,Q,R)-chains.

(98) DependencyGraphProof (EQUIVALENT transformation)

The approximation of the Dependency Graph [LPAR04,FROCOS05,EDGSTAR] contains 0 SCCs with 2 less nodes.

(99) TRUE