0 Prolog
↳1 PrologToPiTRSProof (⇐)
↳2 PiTRS
↳3 DependencyPairsProof (⇔)
↳4 PiDP
↳5 DependencyGraphProof (⇔)
↳6 AND
↳7 PiDP
↳8 UsableRulesProof (⇔)
↳9 PiDP
↳10 PiDPToQDPProof (⇐)
↳11 QDP
↳12 Narrowing (⇐)
↳13 QDP
↳14 Narrowing (⇐)
↳15 QDP
↳16 NonTerminationProof (⇔)
↳17 FALSE
↳18 PiDP
↳19 UsableRulesProof (⇔)
↳20 PiDP
↳21 PiDPToQDPProof (⇐)
↳22 QDP
↳23 QDPOrderProof (⇔)
↳24 QDP
↳25 DependencyGraphProof (⇔)
↳26 QDP
↳27 QDPOrderProof (⇔)
↳28 QDP
↳29 DependencyGraphProof (⇔)
↳30 TRUE
↳31 PiDP
↳32 UsableRulesProof (⇔)
↳33 PiDP
↳34 PiDPToQDPProof (⇐)
↳35 QDP
↳36 NonTerminationProof (⇔)
↳37 FALSE
↳38 PiDP
↳39 UsableRulesProof (⇔)
↳40 PiDP
↳41 PiDPToQDPProof (⇐)
↳42 QDP
↳43 QDPSizeChangeProof (⇔)
↳44 TRUE
↳45 PiDP
↳46 UsableRulesProof (⇔)
↳47 PiDP
↳48 PiDPToQDPProof (⇐)
↳49 QDP
↳50 QDPSizeChangeProof (⇔)
↳51 TRUE
↳52 PiDP
↳53 UsableRulesProof (⇔)
↳54 PiDP
↳55 PiDPToQDPProof (⇐)
↳56 QDP
↳57 QDPSizeChangeProof (⇔)
↳58 TRUE
↳59 PrologToPiTRSProof (⇐)
↳60 PiTRS
↳61 DependencyPairsProof (⇔)
↳62 PiDP
↳63 DependencyGraphProof (⇔)
↳64 AND
↳65 PiDP
↳66 UsableRulesProof (⇔)
↳67 PiDP
↳68 PiDPToQDPProof (⇐)
↳69 QDP
↳70 Narrowing (⇐)
↳71 QDP
↳72 Narrowing (⇐)
↳73 QDP
↳74 NonTerminationProof (⇔)
↳75 FALSE
↳76 PiDP
↳77 UsableRulesProof (⇔)
↳78 PiDP
↳79 PiDPToQDPProof (⇐)
↳80 QDP
↳81 QDPOrderProof (⇔)
↳82 QDP
↳83 DependencyGraphProof (⇔)
↳84 QDP
↳85 QDPOrderProof (⇔)
↳86 QDP
↳87 DependencyGraphProof (⇔)
↳88 TRUE
↳89 PiDP
↳90 UsableRulesProof (⇔)
↳91 PiDP
↳92 PiDPToQDPProof (⇐)
↳93 QDP
↳94 NonTerminationProof (⇔)
↳95 FALSE
↳96 PiDP
↳97 UsableRulesProof (⇔)
↳98 PiDP
↳99 PiDPToQDPProof (⇐)
↳100 QDP
↳101 QDPSizeChangeProof (⇔)
↳102 TRUE
↳103 PiDP
↳104 UsableRulesProof (⇔)
↳105 PiDP
↳106 PiDPToQDPProof (⇐)
↳107 QDP
↳108 QDPSizeChangeProof (⇔)
↳109 TRUE
↳110 PiDP
↳111 UsableRulesProof (⇔)
↳112 PiDP
↳113 PiDPToQDPProof (⇐)
↳114 QDP
↳115 QDPSizeChangeProof (⇔)
↳116 TRUE
p_in_ag(d(e(t)), const(1)) → p_out_ag(d(e(t)), const(1))
p_in_ag(d(e(const(A))), const(0)) → p_out_ag(d(e(const(A))), const(0))
p_in_ag(d(e(+(X, Y))), +(DX, DY)) → U1_ag(X, Y, DX, DY, p_in_ag(d(e(X)), DX))
p_in_ag(d(e(*(X, Y))), +(*(X, DY), *(Y, DX))) → U3_ag(X, Y, DY, DX, p_in_gg(d(e(X)), DX))
p_in_gg(d(e(t)), const(1)) → p_out_gg(d(e(t)), const(1))
p_in_gg(d(e(const(A))), const(0)) → p_out_gg(d(e(const(A))), const(0))
p_in_gg(d(e(+(X, Y))), +(DX, DY)) → U1_gg(X, Y, DX, DY, p_in_gg(d(e(X)), DX))
p_in_gg(d(e(*(X, Y))), +(*(X, DY), *(Y, DX))) → U3_gg(X, Y, DY, DX, p_in_gg(d(e(X)), DX))
p_in_gg(d(d(X)), DDX) → U5_gg(X, DDX, p_in_ga(d(X), DX))
p_in_ga(d(e(t)), const(1)) → p_out_ga(d(e(t)), const(1))
p_in_ga(d(e(const(A))), const(0)) → p_out_ga(d(e(const(A))), const(0))
p_in_ga(d(e(+(X, Y))), +(DX, DY)) → U1_ga(X, Y, DX, DY, p_in_ga(d(e(X)), DX))
p_in_ga(d(e(*(X, Y))), +(*(X, DY), *(Y, DX))) → U3_ga(X, Y, DY, DX, p_in_ga(d(e(X)), DX))
p_in_ga(d(d(X)), DDX) → U5_ga(X, DDX, p_in_ga(d(X), DX))
U5_ga(X, DDX, p_out_ga(d(X), DX)) → U6_ga(X, DDX, DX, p_in_ga(d(e(DX)), DDX))
U6_ga(X, DDX, DX, p_out_ga(d(e(DX)), DDX)) → p_out_ga(d(d(X)), DDX)
U3_ga(X, Y, DY, DX, p_out_ga(d(e(X)), DX)) → U4_ga(X, Y, DY, DX, p_in_ga(d(e(Y)), DY))
U4_ga(X, Y, DY, DX, p_out_ga(d(e(Y)), DY)) → p_out_ga(d(e(*(X, Y))), +(*(X, DY), *(Y, DX)))
U1_ga(X, Y, DX, DY, p_out_ga(d(e(X)), DX)) → U2_ga(X, Y, DX, DY, p_in_ga(d(e(Y)), DY))
U2_ga(X, Y, DX, DY, p_out_ga(d(e(Y)), DY)) → p_out_ga(d(e(+(X, Y))), +(DX, DY))
U5_gg(X, DDX, p_out_ga(d(X), DX)) → U6_gg(X, DDX, DX, p_in_gg(d(e(DX)), DDX))
U6_gg(X, DDX, DX, p_out_gg(d(e(DX)), DDX)) → p_out_gg(d(d(X)), DDX)
U3_gg(X, Y, DY, DX, p_out_gg(d(e(X)), DX)) → U4_gg(X, Y, DY, DX, p_in_gg(d(e(Y)), DY))
U4_gg(X, Y, DY, DX, p_out_gg(d(e(Y)), DY)) → p_out_gg(d(e(*(X, Y))), +(*(X, DY), *(Y, DX)))
U1_gg(X, Y, DX, DY, p_out_gg(d(e(X)), DX)) → U2_gg(X, Y, DX, DY, p_in_gg(d(e(Y)), DY))
U2_gg(X, Y, DX, DY, p_out_gg(d(e(Y)), DY)) → p_out_gg(d(e(+(X, Y))), +(DX, DY))
U3_ag(X, Y, DY, DX, p_out_gg(d(e(X)), DX)) → U4_ag(X, Y, DY, DX, p_in_gg(d(e(Y)), DY))
U4_ag(X, Y, DY, DX, p_out_gg(d(e(Y)), DY)) → p_out_ag(d(e(*(X, Y))), +(*(X, DY), *(Y, DX)))
p_in_ag(d(d(X)), DDX) → U5_ag(X, DDX, p_in_aa(d(X), DX))
p_in_aa(d(e(t)), const(1)) → p_out_aa(d(e(t)), const(1))
p_in_aa(d(e(const(A))), const(0)) → p_out_aa(d(e(const(A))), const(0))
p_in_aa(d(e(+(X, Y))), +(DX, DY)) → U1_aa(X, Y, DX, DY, p_in_aa(d(e(X)), DX))
p_in_aa(d(e(*(X, Y))), +(*(X, DY), *(Y, DX))) → U3_aa(X, Y, DY, DX, p_in_aa(d(e(X)), DX))
p_in_aa(d(d(X)), DDX) → U5_aa(X, DDX, p_in_aa(d(X), DX))
U5_aa(X, DDX, p_out_aa(d(X), DX)) → U6_aa(X, DDX, DX, p_in_ga(d(e(DX)), DDX))
U6_aa(X, DDX, DX, p_out_ga(d(e(DX)), DDX)) → p_out_aa(d(d(X)), DDX)
U3_aa(X, Y, DY, DX, p_out_aa(d(e(X)), DX)) → U4_aa(X, Y, DY, DX, p_in_aa(d(e(Y)), DY))
U4_aa(X, Y, DY, DX, p_out_aa(d(e(Y)), DY)) → p_out_aa(d(e(*(X, Y))), +(*(X, DY), *(Y, DX)))
U1_aa(X, Y, DX, DY, p_out_aa(d(e(X)), DX)) → U2_aa(X, Y, DX, DY, p_in_aa(d(e(Y)), DY))
U2_aa(X, Y, DX, DY, p_out_aa(d(e(Y)), DY)) → p_out_aa(d(e(+(X, Y))), +(DX, DY))
U5_ag(X, DDX, p_out_aa(d(X), DX)) → U6_ag(X, DDX, DX, p_in_gg(d(e(DX)), DDX))
U6_ag(X, DDX, DX, p_out_gg(d(e(DX)), DDX)) → p_out_ag(d(d(X)), DDX)
U1_ag(X, Y, DX, DY, p_out_ag(d(e(X)), DX)) → U2_ag(X, Y, DX, DY, p_in_ag(d(e(Y)), DY))
U2_ag(X, Y, DX, DY, p_out_ag(d(e(Y)), DY)) → p_out_ag(d(e(+(X, Y))), +(DX, DY))
Infinitary Constructor Rewriting Termination of PiTRS implies Termination of Prolog
p_in_ag(d(e(t)), const(1)) → p_out_ag(d(e(t)), const(1))
p_in_ag(d(e(const(A))), const(0)) → p_out_ag(d(e(const(A))), const(0))
p_in_ag(d(e(+(X, Y))), +(DX, DY)) → U1_ag(X, Y, DX, DY, p_in_ag(d(e(X)), DX))
p_in_ag(d(e(*(X, Y))), +(*(X, DY), *(Y, DX))) → U3_ag(X, Y, DY, DX, p_in_gg(d(e(X)), DX))
p_in_gg(d(e(t)), const(1)) → p_out_gg(d(e(t)), const(1))
p_in_gg(d(e(const(A))), const(0)) → p_out_gg(d(e(const(A))), const(0))
p_in_gg(d(e(+(X, Y))), +(DX, DY)) → U1_gg(X, Y, DX, DY, p_in_gg(d(e(X)), DX))
p_in_gg(d(e(*(X, Y))), +(*(X, DY), *(Y, DX))) → U3_gg(X, Y, DY, DX, p_in_gg(d(e(X)), DX))
p_in_gg(d(d(X)), DDX) → U5_gg(X, DDX, p_in_ga(d(X), DX))
p_in_ga(d(e(t)), const(1)) → p_out_ga(d(e(t)), const(1))
p_in_ga(d(e(const(A))), const(0)) → p_out_ga(d(e(const(A))), const(0))
p_in_ga(d(e(+(X, Y))), +(DX, DY)) → U1_ga(X, Y, DX, DY, p_in_ga(d(e(X)), DX))
p_in_ga(d(e(*(X, Y))), +(*(X, DY), *(Y, DX))) → U3_ga(X, Y, DY, DX, p_in_ga(d(e(X)), DX))
p_in_ga(d(d(X)), DDX) → U5_ga(X, DDX, p_in_ga(d(X), DX))
U5_ga(X, DDX, p_out_ga(d(X), DX)) → U6_ga(X, DDX, DX, p_in_ga(d(e(DX)), DDX))
U6_ga(X, DDX, DX, p_out_ga(d(e(DX)), DDX)) → p_out_ga(d(d(X)), DDX)
U3_ga(X, Y, DY, DX, p_out_ga(d(e(X)), DX)) → U4_ga(X, Y, DY, DX, p_in_ga(d(e(Y)), DY))
U4_ga(X, Y, DY, DX, p_out_ga(d(e(Y)), DY)) → p_out_ga(d(e(*(X, Y))), +(*(X, DY), *(Y, DX)))
U1_ga(X, Y, DX, DY, p_out_ga(d(e(X)), DX)) → U2_ga(X, Y, DX, DY, p_in_ga(d(e(Y)), DY))
U2_ga(X, Y, DX, DY, p_out_ga(d(e(Y)), DY)) → p_out_ga(d(e(+(X, Y))), +(DX, DY))
U5_gg(X, DDX, p_out_ga(d(X), DX)) → U6_gg(X, DDX, DX, p_in_gg(d(e(DX)), DDX))
U6_gg(X, DDX, DX, p_out_gg(d(e(DX)), DDX)) → p_out_gg(d(d(X)), DDX)
U3_gg(X, Y, DY, DX, p_out_gg(d(e(X)), DX)) → U4_gg(X, Y, DY, DX, p_in_gg(d(e(Y)), DY))
U4_gg(X, Y, DY, DX, p_out_gg(d(e(Y)), DY)) → p_out_gg(d(e(*(X, Y))), +(*(X, DY), *(Y, DX)))
U1_gg(X, Y, DX, DY, p_out_gg(d(e(X)), DX)) → U2_gg(X, Y, DX, DY, p_in_gg(d(e(Y)), DY))
U2_gg(X, Y, DX, DY, p_out_gg(d(e(Y)), DY)) → p_out_gg(d(e(+(X, Y))), +(DX, DY))
U3_ag(X, Y, DY, DX, p_out_gg(d(e(X)), DX)) → U4_ag(X, Y, DY, DX, p_in_gg(d(e(Y)), DY))
U4_ag(X, Y, DY, DX, p_out_gg(d(e(Y)), DY)) → p_out_ag(d(e(*(X, Y))), +(*(X, DY), *(Y, DX)))
p_in_ag(d(d(X)), DDX) → U5_ag(X, DDX, p_in_aa(d(X), DX))
p_in_aa(d(e(t)), const(1)) → p_out_aa(d(e(t)), const(1))
p_in_aa(d(e(const(A))), const(0)) → p_out_aa(d(e(const(A))), const(0))
p_in_aa(d(e(+(X, Y))), +(DX, DY)) → U1_aa(X, Y, DX, DY, p_in_aa(d(e(X)), DX))
p_in_aa(d(e(*(X, Y))), +(*(X, DY), *(Y, DX))) → U3_aa(X, Y, DY, DX, p_in_aa(d(e(X)), DX))
p_in_aa(d(d(X)), DDX) → U5_aa(X, DDX, p_in_aa(d(X), DX))
U5_aa(X, DDX, p_out_aa(d(X), DX)) → U6_aa(X, DDX, DX, p_in_ga(d(e(DX)), DDX))
U6_aa(X, DDX, DX, p_out_ga(d(e(DX)), DDX)) → p_out_aa(d(d(X)), DDX)
U3_aa(X, Y, DY, DX, p_out_aa(d(e(X)), DX)) → U4_aa(X, Y, DY, DX, p_in_aa(d(e(Y)), DY))
U4_aa(X, Y, DY, DX, p_out_aa(d(e(Y)), DY)) → p_out_aa(d(e(*(X, Y))), +(*(X, DY), *(Y, DX)))
U1_aa(X, Y, DX, DY, p_out_aa(d(e(X)), DX)) → U2_aa(X, Y, DX, DY, p_in_aa(d(e(Y)), DY))
U2_aa(X, Y, DX, DY, p_out_aa(d(e(Y)), DY)) → p_out_aa(d(e(+(X, Y))), +(DX, DY))
U5_ag(X, DDX, p_out_aa(d(X), DX)) → U6_ag(X, DDX, DX, p_in_gg(d(e(DX)), DDX))
U6_ag(X, DDX, DX, p_out_gg(d(e(DX)), DDX)) → p_out_ag(d(d(X)), DDX)
U1_ag(X, Y, DX, DY, p_out_ag(d(e(X)), DX)) → U2_ag(X, Y, DX, DY, p_in_ag(d(e(Y)), DY))
U2_ag(X, Y, DX, DY, p_out_ag(d(e(Y)), DY)) → p_out_ag(d(e(+(X, Y))), +(DX, DY))
P_IN_AG(d(e(+(X, Y))), +(DX, DY)) → U1_AG(X, Y, DX, DY, p_in_ag(d(e(X)), DX))
P_IN_AG(d(e(+(X, Y))), +(DX, DY)) → P_IN_AG(d(e(X)), DX)
P_IN_AG(d(e(*(X, Y))), +(*(X, DY), *(Y, DX))) → U3_AG(X, Y, DY, DX, p_in_gg(d(e(X)), DX))
P_IN_AG(d(e(*(X, Y))), +(*(X, DY), *(Y, DX))) → P_IN_GG(d(e(X)), DX)
P_IN_GG(d(e(+(X, Y))), +(DX, DY)) → U1_GG(X, Y, DX, DY, p_in_gg(d(e(X)), DX))
P_IN_GG(d(e(+(X, Y))), +(DX, DY)) → P_IN_GG(d(e(X)), DX)
P_IN_GG(d(e(*(X, Y))), +(*(X, DY), *(Y, DX))) → U3_GG(X, Y, DY, DX, p_in_gg(d(e(X)), DX))
P_IN_GG(d(e(*(X, Y))), +(*(X, DY), *(Y, DX))) → P_IN_GG(d(e(X)), DX)
P_IN_GG(d(d(X)), DDX) → U5_GG(X, DDX, p_in_ga(d(X), DX))
P_IN_GG(d(d(X)), DDX) → P_IN_GA(d(X), DX)
P_IN_GA(d(e(+(X, Y))), +(DX, DY)) → U1_GA(X, Y, DX, DY, p_in_ga(d(e(X)), DX))
P_IN_GA(d(e(+(X, Y))), +(DX, DY)) → P_IN_GA(d(e(X)), DX)
P_IN_GA(d(e(*(X, Y))), +(*(X, DY), *(Y, DX))) → U3_GA(X, Y, DY, DX, p_in_ga(d(e(X)), DX))
P_IN_GA(d(e(*(X, Y))), +(*(X, DY), *(Y, DX))) → P_IN_GA(d(e(X)), DX)
P_IN_GA(d(d(X)), DDX) → U5_GA(X, DDX, p_in_ga(d(X), DX))
P_IN_GA(d(d(X)), DDX) → P_IN_GA(d(X), DX)
U5_GA(X, DDX, p_out_ga(d(X), DX)) → U6_GA(X, DDX, DX, p_in_ga(d(e(DX)), DDX))
U5_GA(X, DDX, p_out_ga(d(X), DX)) → P_IN_GA(d(e(DX)), DDX)
U3_GA(X, Y, DY, DX, p_out_ga(d(e(X)), DX)) → U4_GA(X, Y, DY, DX, p_in_ga(d(e(Y)), DY))
U3_GA(X, Y, DY, DX, p_out_ga(d(e(X)), DX)) → P_IN_GA(d(e(Y)), DY)
U1_GA(X, Y, DX, DY, p_out_ga(d(e(X)), DX)) → U2_GA(X, Y, DX, DY, p_in_ga(d(e(Y)), DY))
U1_GA(X, Y, DX, DY, p_out_ga(d(e(X)), DX)) → P_IN_GA(d(e(Y)), DY)
U5_GG(X, DDX, p_out_ga(d(X), DX)) → U6_GG(X, DDX, DX, p_in_gg(d(e(DX)), DDX))
U5_GG(X, DDX, p_out_ga(d(X), DX)) → P_IN_GG(d(e(DX)), DDX)
U3_GG(X, Y, DY, DX, p_out_gg(d(e(X)), DX)) → U4_GG(X, Y, DY, DX, p_in_gg(d(e(Y)), DY))
U3_GG(X, Y, DY, DX, p_out_gg(d(e(X)), DX)) → P_IN_GG(d(e(Y)), DY)
U1_GG(X, Y, DX, DY, p_out_gg(d(e(X)), DX)) → U2_GG(X, Y, DX, DY, p_in_gg(d(e(Y)), DY))
U1_GG(X, Y, DX, DY, p_out_gg(d(e(X)), DX)) → P_IN_GG(d(e(Y)), DY)
U3_AG(X, Y, DY, DX, p_out_gg(d(e(X)), DX)) → U4_AG(X, Y, DY, DX, p_in_gg(d(e(Y)), DY))
U3_AG(X, Y, DY, DX, p_out_gg(d(e(X)), DX)) → P_IN_GG(d(e(Y)), DY)
P_IN_AG(d(d(X)), DDX) → U5_AG(X, DDX, p_in_aa(d(X), DX))
P_IN_AG(d(d(X)), DDX) → P_IN_AA(d(X), DX)
P_IN_AA(d(e(+(X, Y))), +(DX, DY)) → U1_AA(X, Y, DX, DY, p_in_aa(d(e(X)), DX))
P_IN_AA(d(e(+(X, Y))), +(DX, DY)) → P_IN_AA(d(e(X)), DX)
P_IN_AA(d(e(*(X, Y))), +(*(X, DY), *(Y, DX))) → U3_AA(X, Y, DY, DX, p_in_aa(d(e(X)), DX))
P_IN_AA(d(e(*(X, Y))), +(*(X, DY), *(Y, DX))) → P_IN_AA(d(e(X)), DX)
P_IN_AA(d(d(X)), DDX) → U5_AA(X, DDX, p_in_aa(d(X), DX))
P_IN_AA(d(d(X)), DDX) → P_IN_AA(d(X), DX)
U5_AA(X, DDX, p_out_aa(d(X), DX)) → U6_AA(X, DDX, DX, p_in_ga(d(e(DX)), DDX))
U5_AA(X, DDX, p_out_aa(d(X), DX)) → P_IN_GA(d(e(DX)), DDX)
U3_AA(X, Y, DY, DX, p_out_aa(d(e(X)), DX)) → U4_AA(X, Y, DY, DX, p_in_aa(d(e(Y)), DY))
U3_AA(X, Y, DY, DX, p_out_aa(d(e(X)), DX)) → P_IN_AA(d(e(Y)), DY)
U1_AA(X, Y, DX, DY, p_out_aa(d(e(X)), DX)) → U2_AA(X, Y, DX, DY, p_in_aa(d(e(Y)), DY))
U1_AA(X, Y, DX, DY, p_out_aa(d(e(X)), DX)) → P_IN_AA(d(e(Y)), DY)
U5_AG(X, DDX, p_out_aa(d(X), DX)) → U6_AG(X, DDX, DX, p_in_gg(d(e(DX)), DDX))
U5_AG(X, DDX, p_out_aa(d(X), DX)) → P_IN_GG(d(e(DX)), DDX)
U1_AG(X, Y, DX, DY, p_out_ag(d(e(X)), DX)) → U2_AG(X, Y, DX, DY, p_in_ag(d(e(Y)), DY))
U1_AG(X, Y, DX, DY, p_out_ag(d(e(X)), DX)) → P_IN_AG(d(e(Y)), DY)
p_in_ag(d(e(t)), const(1)) → p_out_ag(d(e(t)), const(1))
p_in_ag(d(e(const(A))), const(0)) → p_out_ag(d(e(const(A))), const(0))
p_in_ag(d(e(+(X, Y))), +(DX, DY)) → U1_ag(X, Y, DX, DY, p_in_ag(d(e(X)), DX))
p_in_ag(d(e(*(X, Y))), +(*(X, DY), *(Y, DX))) → U3_ag(X, Y, DY, DX, p_in_gg(d(e(X)), DX))
p_in_gg(d(e(t)), const(1)) → p_out_gg(d(e(t)), const(1))
p_in_gg(d(e(const(A))), const(0)) → p_out_gg(d(e(const(A))), const(0))
p_in_gg(d(e(+(X, Y))), +(DX, DY)) → U1_gg(X, Y, DX, DY, p_in_gg(d(e(X)), DX))
p_in_gg(d(e(*(X, Y))), +(*(X, DY), *(Y, DX))) → U3_gg(X, Y, DY, DX, p_in_gg(d(e(X)), DX))
p_in_gg(d(d(X)), DDX) → U5_gg(X, DDX, p_in_ga(d(X), DX))
p_in_ga(d(e(t)), const(1)) → p_out_ga(d(e(t)), const(1))
p_in_ga(d(e(const(A))), const(0)) → p_out_ga(d(e(const(A))), const(0))
p_in_ga(d(e(+(X, Y))), +(DX, DY)) → U1_ga(X, Y, DX, DY, p_in_ga(d(e(X)), DX))
p_in_ga(d(e(*(X, Y))), +(*(X, DY), *(Y, DX))) → U3_ga(X, Y, DY, DX, p_in_ga(d(e(X)), DX))
p_in_ga(d(d(X)), DDX) → U5_ga(X, DDX, p_in_ga(d(X), DX))
U5_ga(X, DDX, p_out_ga(d(X), DX)) → U6_ga(X, DDX, DX, p_in_ga(d(e(DX)), DDX))
U6_ga(X, DDX, DX, p_out_ga(d(e(DX)), DDX)) → p_out_ga(d(d(X)), DDX)
U3_ga(X, Y, DY, DX, p_out_ga(d(e(X)), DX)) → U4_ga(X, Y, DY, DX, p_in_ga(d(e(Y)), DY))
U4_ga(X, Y, DY, DX, p_out_ga(d(e(Y)), DY)) → p_out_ga(d(e(*(X, Y))), +(*(X, DY), *(Y, DX)))
U1_ga(X, Y, DX, DY, p_out_ga(d(e(X)), DX)) → U2_ga(X, Y, DX, DY, p_in_ga(d(e(Y)), DY))
U2_ga(X, Y, DX, DY, p_out_ga(d(e(Y)), DY)) → p_out_ga(d(e(+(X, Y))), +(DX, DY))
U5_gg(X, DDX, p_out_ga(d(X), DX)) → U6_gg(X, DDX, DX, p_in_gg(d(e(DX)), DDX))
U6_gg(X, DDX, DX, p_out_gg(d(e(DX)), DDX)) → p_out_gg(d(d(X)), DDX)
U3_gg(X, Y, DY, DX, p_out_gg(d(e(X)), DX)) → U4_gg(X, Y, DY, DX, p_in_gg(d(e(Y)), DY))
U4_gg(X, Y, DY, DX, p_out_gg(d(e(Y)), DY)) → p_out_gg(d(e(*(X, Y))), +(*(X, DY), *(Y, DX)))
U1_gg(X, Y, DX, DY, p_out_gg(d(e(X)), DX)) → U2_gg(X, Y, DX, DY, p_in_gg(d(e(Y)), DY))
U2_gg(X, Y, DX, DY, p_out_gg(d(e(Y)), DY)) → p_out_gg(d(e(+(X, Y))), +(DX, DY))
U3_ag(X, Y, DY, DX, p_out_gg(d(e(X)), DX)) → U4_ag(X, Y, DY, DX, p_in_gg(d(e(Y)), DY))
U4_ag(X, Y, DY, DX, p_out_gg(d(e(Y)), DY)) → p_out_ag(d(e(*(X, Y))), +(*(X, DY), *(Y, DX)))
p_in_ag(d(d(X)), DDX) → U5_ag(X, DDX, p_in_aa(d(X), DX))
p_in_aa(d(e(t)), const(1)) → p_out_aa(d(e(t)), const(1))
p_in_aa(d(e(const(A))), const(0)) → p_out_aa(d(e(const(A))), const(0))
p_in_aa(d(e(+(X, Y))), +(DX, DY)) → U1_aa(X, Y, DX, DY, p_in_aa(d(e(X)), DX))
p_in_aa(d(e(*(X, Y))), +(*(X, DY), *(Y, DX))) → U3_aa(X, Y, DY, DX, p_in_aa(d(e(X)), DX))
p_in_aa(d(d(X)), DDX) → U5_aa(X, DDX, p_in_aa(d(X), DX))
U5_aa(X, DDX, p_out_aa(d(X), DX)) → U6_aa(X, DDX, DX, p_in_ga(d(e(DX)), DDX))
U6_aa(X, DDX, DX, p_out_ga(d(e(DX)), DDX)) → p_out_aa(d(d(X)), DDX)
U3_aa(X, Y, DY, DX, p_out_aa(d(e(X)), DX)) → U4_aa(X, Y, DY, DX, p_in_aa(d(e(Y)), DY))
U4_aa(X, Y, DY, DX, p_out_aa(d(e(Y)), DY)) → p_out_aa(d(e(*(X, Y))), +(*(X, DY), *(Y, DX)))
U1_aa(X, Y, DX, DY, p_out_aa(d(e(X)), DX)) → U2_aa(X, Y, DX, DY, p_in_aa(d(e(Y)), DY))
U2_aa(X, Y, DX, DY, p_out_aa(d(e(Y)), DY)) → p_out_aa(d(e(+(X, Y))), +(DX, DY))
U5_ag(X, DDX, p_out_aa(d(X), DX)) → U6_ag(X, DDX, DX, p_in_gg(d(e(DX)), DDX))
U6_ag(X, DDX, DX, p_out_gg(d(e(DX)), DDX)) → p_out_ag(d(d(X)), DDX)
U1_ag(X, Y, DX, DY, p_out_ag(d(e(X)), DX)) → U2_ag(X, Y, DX, DY, p_in_ag(d(e(Y)), DY))
U2_ag(X, Y, DX, DY, p_out_ag(d(e(Y)), DY)) → p_out_ag(d(e(+(X, Y))), +(DX, DY))
P_IN_AG(d(e(+(X, Y))), +(DX, DY)) → U1_AG(X, Y, DX, DY, p_in_ag(d(e(X)), DX))
P_IN_AG(d(e(+(X, Y))), +(DX, DY)) → P_IN_AG(d(e(X)), DX)
P_IN_AG(d(e(*(X, Y))), +(*(X, DY), *(Y, DX))) → U3_AG(X, Y, DY, DX, p_in_gg(d(e(X)), DX))
P_IN_AG(d(e(*(X, Y))), +(*(X, DY), *(Y, DX))) → P_IN_GG(d(e(X)), DX)
P_IN_GG(d(e(+(X, Y))), +(DX, DY)) → U1_GG(X, Y, DX, DY, p_in_gg(d(e(X)), DX))
P_IN_GG(d(e(+(X, Y))), +(DX, DY)) → P_IN_GG(d(e(X)), DX)
P_IN_GG(d(e(*(X, Y))), +(*(X, DY), *(Y, DX))) → U3_GG(X, Y, DY, DX, p_in_gg(d(e(X)), DX))
P_IN_GG(d(e(*(X, Y))), +(*(X, DY), *(Y, DX))) → P_IN_GG(d(e(X)), DX)
P_IN_GG(d(d(X)), DDX) → U5_GG(X, DDX, p_in_ga(d(X), DX))
P_IN_GG(d(d(X)), DDX) → P_IN_GA(d(X), DX)
P_IN_GA(d(e(+(X, Y))), +(DX, DY)) → U1_GA(X, Y, DX, DY, p_in_ga(d(e(X)), DX))
P_IN_GA(d(e(+(X, Y))), +(DX, DY)) → P_IN_GA(d(e(X)), DX)
P_IN_GA(d(e(*(X, Y))), +(*(X, DY), *(Y, DX))) → U3_GA(X, Y, DY, DX, p_in_ga(d(e(X)), DX))
P_IN_GA(d(e(*(X, Y))), +(*(X, DY), *(Y, DX))) → P_IN_GA(d(e(X)), DX)
P_IN_GA(d(d(X)), DDX) → U5_GA(X, DDX, p_in_ga(d(X), DX))
P_IN_GA(d(d(X)), DDX) → P_IN_GA(d(X), DX)
U5_GA(X, DDX, p_out_ga(d(X), DX)) → U6_GA(X, DDX, DX, p_in_ga(d(e(DX)), DDX))
U5_GA(X, DDX, p_out_ga(d(X), DX)) → P_IN_GA(d(e(DX)), DDX)
U3_GA(X, Y, DY, DX, p_out_ga(d(e(X)), DX)) → U4_GA(X, Y, DY, DX, p_in_ga(d(e(Y)), DY))
U3_GA(X, Y, DY, DX, p_out_ga(d(e(X)), DX)) → P_IN_GA(d(e(Y)), DY)
U1_GA(X, Y, DX, DY, p_out_ga(d(e(X)), DX)) → U2_GA(X, Y, DX, DY, p_in_ga(d(e(Y)), DY))
U1_GA(X, Y, DX, DY, p_out_ga(d(e(X)), DX)) → P_IN_GA(d(e(Y)), DY)
U5_GG(X, DDX, p_out_ga(d(X), DX)) → U6_GG(X, DDX, DX, p_in_gg(d(e(DX)), DDX))
U5_GG(X, DDX, p_out_ga(d(X), DX)) → P_IN_GG(d(e(DX)), DDX)
U3_GG(X, Y, DY, DX, p_out_gg(d(e(X)), DX)) → U4_GG(X, Y, DY, DX, p_in_gg(d(e(Y)), DY))
U3_GG(X, Y, DY, DX, p_out_gg(d(e(X)), DX)) → P_IN_GG(d(e(Y)), DY)
U1_GG(X, Y, DX, DY, p_out_gg(d(e(X)), DX)) → U2_GG(X, Y, DX, DY, p_in_gg(d(e(Y)), DY))
U1_GG(X, Y, DX, DY, p_out_gg(d(e(X)), DX)) → P_IN_GG(d(e(Y)), DY)
U3_AG(X, Y, DY, DX, p_out_gg(d(e(X)), DX)) → U4_AG(X, Y, DY, DX, p_in_gg(d(e(Y)), DY))
U3_AG(X, Y, DY, DX, p_out_gg(d(e(X)), DX)) → P_IN_GG(d(e(Y)), DY)
P_IN_AG(d(d(X)), DDX) → U5_AG(X, DDX, p_in_aa(d(X), DX))
P_IN_AG(d(d(X)), DDX) → P_IN_AA(d(X), DX)
P_IN_AA(d(e(+(X, Y))), +(DX, DY)) → U1_AA(X, Y, DX, DY, p_in_aa(d(e(X)), DX))
P_IN_AA(d(e(+(X, Y))), +(DX, DY)) → P_IN_AA(d(e(X)), DX)
P_IN_AA(d(e(*(X, Y))), +(*(X, DY), *(Y, DX))) → U3_AA(X, Y, DY, DX, p_in_aa(d(e(X)), DX))
P_IN_AA(d(e(*(X, Y))), +(*(X, DY), *(Y, DX))) → P_IN_AA(d(e(X)), DX)
P_IN_AA(d(d(X)), DDX) → U5_AA(X, DDX, p_in_aa(d(X), DX))
P_IN_AA(d(d(X)), DDX) → P_IN_AA(d(X), DX)
U5_AA(X, DDX, p_out_aa(d(X), DX)) → U6_AA(X, DDX, DX, p_in_ga(d(e(DX)), DDX))
U5_AA(X, DDX, p_out_aa(d(X), DX)) → P_IN_GA(d(e(DX)), DDX)
U3_AA(X, Y, DY, DX, p_out_aa(d(e(X)), DX)) → U4_AA(X, Y, DY, DX, p_in_aa(d(e(Y)), DY))
U3_AA(X, Y, DY, DX, p_out_aa(d(e(X)), DX)) → P_IN_AA(d(e(Y)), DY)
U1_AA(X, Y, DX, DY, p_out_aa(d(e(X)), DX)) → U2_AA(X, Y, DX, DY, p_in_aa(d(e(Y)), DY))
U1_AA(X, Y, DX, DY, p_out_aa(d(e(X)), DX)) → P_IN_AA(d(e(Y)), DY)
U5_AG(X, DDX, p_out_aa(d(X), DX)) → U6_AG(X, DDX, DX, p_in_gg(d(e(DX)), DDX))
U5_AG(X, DDX, p_out_aa(d(X), DX)) → P_IN_GG(d(e(DX)), DDX)
U1_AG(X, Y, DX, DY, p_out_ag(d(e(X)), DX)) → U2_AG(X, Y, DX, DY, p_in_ag(d(e(Y)), DY))
U1_AG(X, Y, DX, DY, p_out_ag(d(e(X)), DX)) → P_IN_AG(d(e(Y)), DY)
p_in_ag(d(e(t)), const(1)) → p_out_ag(d(e(t)), const(1))
p_in_ag(d(e(const(A))), const(0)) → p_out_ag(d(e(const(A))), const(0))
p_in_ag(d(e(+(X, Y))), +(DX, DY)) → U1_ag(X, Y, DX, DY, p_in_ag(d(e(X)), DX))
p_in_ag(d(e(*(X, Y))), +(*(X, DY), *(Y, DX))) → U3_ag(X, Y, DY, DX, p_in_gg(d(e(X)), DX))
p_in_gg(d(e(t)), const(1)) → p_out_gg(d(e(t)), const(1))
p_in_gg(d(e(const(A))), const(0)) → p_out_gg(d(e(const(A))), const(0))
p_in_gg(d(e(+(X, Y))), +(DX, DY)) → U1_gg(X, Y, DX, DY, p_in_gg(d(e(X)), DX))
p_in_gg(d(e(*(X, Y))), +(*(X, DY), *(Y, DX))) → U3_gg(X, Y, DY, DX, p_in_gg(d(e(X)), DX))
p_in_gg(d(d(X)), DDX) → U5_gg(X, DDX, p_in_ga(d(X), DX))
p_in_ga(d(e(t)), const(1)) → p_out_ga(d(e(t)), const(1))
p_in_ga(d(e(const(A))), const(0)) → p_out_ga(d(e(const(A))), const(0))
p_in_ga(d(e(+(X, Y))), +(DX, DY)) → U1_ga(X, Y, DX, DY, p_in_ga(d(e(X)), DX))
p_in_ga(d(e(*(X, Y))), +(*(X, DY), *(Y, DX))) → U3_ga(X, Y, DY, DX, p_in_ga(d(e(X)), DX))
p_in_ga(d(d(X)), DDX) → U5_ga(X, DDX, p_in_ga(d(X), DX))
U5_ga(X, DDX, p_out_ga(d(X), DX)) → U6_ga(X, DDX, DX, p_in_ga(d(e(DX)), DDX))
U6_ga(X, DDX, DX, p_out_ga(d(e(DX)), DDX)) → p_out_ga(d(d(X)), DDX)
U3_ga(X, Y, DY, DX, p_out_ga(d(e(X)), DX)) → U4_ga(X, Y, DY, DX, p_in_ga(d(e(Y)), DY))
U4_ga(X, Y, DY, DX, p_out_ga(d(e(Y)), DY)) → p_out_ga(d(e(*(X, Y))), +(*(X, DY), *(Y, DX)))
U1_ga(X, Y, DX, DY, p_out_ga(d(e(X)), DX)) → U2_ga(X, Y, DX, DY, p_in_ga(d(e(Y)), DY))
U2_ga(X, Y, DX, DY, p_out_ga(d(e(Y)), DY)) → p_out_ga(d(e(+(X, Y))), +(DX, DY))
U5_gg(X, DDX, p_out_ga(d(X), DX)) → U6_gg(X, DDX, DX, p_in_gg(d(e(DX)), DDX))
U6_gg(X, DDX, DX, p_out_gg(d(e(DX)), DDX)) → p_out_gg(d(d(X)), DDX)
U3_gg(X, Y, DY, DX, p_out_gg(d(e(X)), DX)) → U4_gg(X, Y, DY, DX, p_in_gg(d(e(Y)), DY))
U4_gg(X, Y, DY, DX, p_out_gg(d(e(Y)), DY)) → p_out_gg(d(e(*(X, Y))), +(*(X, DY), *(Y, DX)))
U1_gg(X, Y, DX, DY, p_out_gg(d(e(X)), DX)) → U2_gg(X, Y, DX, DY, p_in_gg(d(e(Y)), DY))
U2_gg(X, Y, DX, DY, p_out_gg(d(e(Y)), DY)) → p_out_gg(d(e(+(X, Y))), +(DX, DY))
U3_ag(X, Y, DY, DX, p_out_gg(d(e(X)), DX)) → U4_ag(X, Y, DY, DX, p_in_gg(d(e(Y)), DY))
U4_ag(X, Y, DY, DX, p_out_gg(d(e(Y)), DY)) → p_out_ag(d(e(*(X, Y))), +(*(X, DY), *(Y, DX)))
p_in_ag(d(d(X)), DDX) → U5_ag(X, DDX, p_in_aa(d(X), DX))
p_in_aa(d(e(t)), const(1)) → p_out_aa(d(e(t)), const(1))
p_in_aa(d(e(const(A))), const(0)) → p_out_aa(d(e(const(A))), const(0))
p_in_aa(d(e(+(X, Y))), +(DX, DY)) → U1_aa(X, Y, DX, DY, p_in_aa(d(e(X)), DX))
p_in_aa(d(e(*(X, Y))), +(*(X, DY), *(Y, DX))) → U3_aa(X, Y, DY, DX, p_in_aa(d(e(X)), DX))
p_in_aa(d(d(X)), DDX) → U5_aa(X, DDX, p_in_aa(d(X), DX))
U5_aa(X, DDX, p_out_aa(d(X), DX)) → U6_aa(X, DDX, DX, p_in_ga(d(e(DX)), DDX))
U6_aa(X, DDX, DX, p_out_ga(d(e(DX)), DDX)) → p_out_aa(d(d(X)), DDX)
U3_aa(X, Y, DY, DX, p_out_aa(d(e(X)), DX)) → U4_aa(X, Y, DY, DX, p_in_aa(d(e(Y)), DY))
U4_aa(X, Y, DY, DX, p_out_aa(d(e(Y)), DY)) → p_out_aa(d(e(*(X, Y))), +(*(X, DY), *(Y, DX)))
U1_aa(X, Y, DX, DY, p_out_aa(d(e(X)), DX)) → U2_aa(X, Y, DX, DY, p_in_aa(d(e(Y)), DY))
U2_aa(X, Y, DX, DY, p_out_aa(d(e(Y)), DY)) → p_out_aa(d(e(+(X, Y))), +(DX, DY))
U5_ag(X, DDX, p_out_aa(d(X), DX)) → U6_ag(X, DDX, DX, p_in_gg(d(e(DX)), DDX))
U6_ag(X, DDX, DX, p_out_gg(d(e(DX)), DDX)) → p_out_ag(d(d(X)), DDX)
U1_ag(X, Y, DX, DY, p_out_ag(d(e(X)), DX)) → U2_ag(X, Y, DX, DY, p_in_ag(d(e(Y)), DY))
U2_ag(X, Y, DX, DY, p_out_ag(d(e(Y)), DY)) → p_out_ag(d(e(+(X, Y))), +(DX, DY))
U1_AA(X, Y, DX, DY, p_out_aa(d(e(X)), DX)) → P_IN_AA(d(e(Y)), DY)
P_IN_AA(d(e(+(X, Y))), +(DX, DY)) → U1_AA(X, Y, DX, DY, p_in_aa(d(e(X)), DX))
P_IN_AA(d(e(+(X, Y))), +(DX, DY)) → P_IN_AA(d(e(X)), DX)
P_IN_AA(d(e(*(X, Y))), +(*(X, DY), *(Y, DX))) → U3_AA(X, Y, DY, DX, p_in_aa(d(e(X)), DX))
U3_AA(X, Y, DY, DX, p_out_aa(d(e(X)), DX)) → P_IN_AA(d(e(Y)), DY)
P_IN_AA(d(e(*(X, Y))), +(*(X, DY), *(Y, DX))) → P_IN_AA(d(e(X)), DX)
p_in_ag(d(e(t)), const(1)) → p_out_ag(d(e(t)), const(1))
p_in_ag(d(e(const(A))), const(0)) → p_out_ag(d(e(const(A))), const(0))
p_in_ag(d(e(+(X, Y))), +(DX, DY)) → U1_ag(X, Y, DX, DY, p_in_ag(d(e(X)), DX))
p_in_ag(d(e(*(X, Y))), +(*(X, DY), *(Y, DX))) → U3_ag(X, Y, DY, DX, p_in_gg(d(e(X)), DX))
p_in_gg(d(e(t)), const(1)) → p_out_gg(d(e(t)), const(1))
p_in_gg(d(e(const(A))), const(0)) → p_out_gg(d(e(const(A))), const(0))
p_in_gg(d(e(+(X, Y))), +(DX, DY)) → U1_gg(X, Y, DX, DY, p_in_gg(d(e(X)), DX))
p_in_gg(d(e(*(X, Y))), +(*(X, DY), *(Y, DX))) → U3_gg(X, Y, DY, DX, p_in_gg(d(e(X)), DX))
p_in_gg(d(d(X)), DDX) → U5_gg(X, DDX, p_in_ga(d(X), DX))
p_in_ga(d(e(t)), const(1)) → p_out_ga(d(e(t)), const(1))
p_in_ga(d(e(const(A))), const(0)) → p_out_ga(d(e(const(A))), const(0))
p_in_ga(d(e(+(X, Y))), +(DX, DY)) → U1_ga(X, Y, DX, DY, p_in_ga(d(e(X)), DX))
p_in_ga(d(e(*(X, Y))), +(*(X, DY), *(Y, DX))) → U3_ga(X, Y, DY, DX, p_in_ga(d(e(X)), DX))
p_in_ga(d(d(X)), DDX) → U5_ga(X, DDX, p_in_ga(d(X), DX))
U5_ga(X, DDX, p_out_ga(d(X), DX)) → U6_ga(X, DDX, DX, p_in_ga(d(e(DX)), DDX))
U6_ga(X, DDX, DX, p_out_ga(d(e(DX)), DDX)) → p_out_ga(d(d(X)), DDX)
U3_ga(X, Y, DY, DX, p_out_ga(d(e(X)), DX)) → U4_ga(X, Y, DY, DX, p_in_ga(d(e(Y)), DY))
U4_ga(X, Y, DY, DX, p_out_ga(d(e(Y)), DY)) → p_out_ga(d(e(*(X, Y))), +(*(X, DY), *(Y, DX)))
U1_ga(X, Y, DX, DY, p_out_ga(d(e(X)), DX)) → U2_ga(X, Y, DX, DY, p_in_ga(d(e(Y)), DY))
U2_ga(X, Y, DX, DY, p_out_ga(d(e(Y)), DY)) → p_out_ga(d(e(+(X, Y))), +(DX, DY))
U5_gg(X, DDX, p_out_ga(d(X), DX)) → U6_gg(X, DDX, DX, p_in_gg(d(e(DX)), DDX))
U6_gg(X, DDX, DX, p_out_gg(d(e(DX)), DDX)) → p_out_gg(d(d(X)), DDX)
U3_gg(X, Y, DY, DX, p_out_gg(d(e(X)), DX)) → U4_gg(X, Y, DY, DX, p_in_gg(d(e(Y)), DY))
U4_gg(X, Y, DY, DX, p_out_gg(d(e(Y)), DY)) → p_out_gg(d(e(*(X, Y))), +(*(X, DY), *(Y, DX)))
U1_gg(X, Y, DX, DY, p_out_gg(d(e(X)), DX)) → U2_gg(X, Y, DX, DY, p_in_gg(d(e(Y)), DY))
U2_gg(X, Y, DX, DY, p_out_gg(d(e(Y)), DY)) → p_out_gg(d(e(+(X, Y))), +(DX, DY))
U3_ag(X, Y, DY, DX, p_out_gg(d(e(X)), DX)) → U4_ag(X, Y, DY, DX, p_in_gg(d(e(Y)), DY))
U4_ag(X, Y, DY, DX, p_out_gg(d(e(Y)), DY)) → p_out_ag(d(e(*(X, Y))), +(*(X, DY), *(Y, DX)))
p_in_ag(d(d(X)), DDX) → U5_ag(X, DDX, p_in_aa(d(X), DX))
p_in_aa(d(e(t)), const(1)) → p_out_aa(d(e(t)), const(1))
p_in_aa(d(e(const(A))), const(0)) → p_out_aa(d(e(const(A))), const(0))
p_in_aa(d(e(+(X, Y))), +(DX, DY)) → U1_aa(X, Y, DX, DY, p_in_aa(d(e(X)), DX))
p_in_aa(d(e(*(X, Y))), +(*(X, DY), *(Y, DX))) → U3_aa(X, Y, DY, DX, p_in_aa(d(e(X)), DX))
p_in_aa(d(d(X)), DDX) → U5_aa(X, DDX, p_in_aa(d(X), DX))
U5_aa(X, DDX, p_out_aa(d(X), DX)) → U6_aa(X, DDX, DX, p_in_ga(d(e(DX)), DDX))
U6_aa(X, DDX, DX, p_out_ga(d(e(DX)), DDX)) → p_out_aa(d(d(X)), DDX)
U3_aa(X, Y, DY, DX, p_out_aa(d(e(X)), DX)) → U4_aa(X, Y, DY, DX, p_in_aa(d(e(Y)), DY))
U4_aa(X, Y, DY, DX, p_out_aa(d(e(Y)), DY)) → p_out_aa(d(e(*(X, Y))), +(*(X, DY), *(Y, DX)))
U1_aa(X, Y, DX, DY, p_out_aa(d(e(X)), DX)) → U2_aa(X, Y, DX, DY, p_in_aa(d(e(Y)), DY))
U2_aa(X, Y, DX, DY, p_out_aa(d(e(Y)), DY)) → p_out_aa(d(e(+(X, Y))), +(DX, DY))
U5_ag(X, DDX, p_out_aa(d(X), DX)) → U6_ag(X, DDX, DX, p_in_gg(d(e(DX)), DDX))
U6_ag(X, DDX, DX, p_out_gg(d(e(DX)), DDX)) → p_out_ag(d(d(X)), DDX)
U1_ag(X, Y, DX, DY, p_out_ag(d(e(X)), DX)) → U2_ag(X, Y, DX, DY, p_in_ag(d(e(Y)), DY))
U2_ag(X, Y, DX, DY, p_out_ag(d(e(Y)), DY)) → p_out_ag(d(e(+(X, Y))), +(DX, DY))
U1_AA(X, Y, DX, DY, p_out_aa(d(e(X)), DX)) → P_IN_AA(d(e(Y)), DY)
P_IN_AA(d(e(+(X, Y))), +(DX, DY)) → U1_AA(X, Y, DX, DY, p_in_aa(d(e(X)), DX))
P_IN_AA(d(e(+(X, Y))), +(DX, DY)) → P_IN_AA(d(e(X)), DX)
P_IN_AA(d(e(*(X, Y))), +(*(X, DY), *(Y, DX))) → U3_AA(X, Y, DY, DX, p_in_aa(d(e(X)), DX))
U3_AA(X, Y, DY, DX, p_out_aa(d(e(X)), DX)) → P_IN_AA(d(e(Y)), DY)
P_IN_AA(d(e(*(X, Y))), +(*(X, DY), *(Y, DX))) → P_IN_AA(d(e(X)), DX)
p_in_aa(d(e(t)), const(1)) → p_out_aa(d(e(t)), const(1))
p_in_aa(d(e(const(A))), const(0)) → p_out_aa(d(e(const(A))), const(0))
p_in_aa(d(e(+(X, Y))), +(DX, DY)) → U1_aa(X, Y, DX, DY, p_in_aa(d(e(X)), DX))
p_in_aa(d(e(*(X, Y))), +(*(X, DY), *(Y, DX))) → U3_aa(X, Y, DY, DX, p_in_aa(d(e(X)), DX))
U1_aa(X, Y, DX, DY, p_out_aa(d(e(X)), DX)) → U2_aa(X, Y, DX, DY, p_in_aa(d(e(Y)), DY))
U3_aa(X, Y, DY, DX, p_out_aa(d(e(X)), DX)) → U4_aa(X, Y, DY, DX, p_in_aa(d(e(Y)), DY))
U2_aa(X, Y, DX, DY, p_out_aa(d(e(Y)), DY)) → p_out_aa(d(e(+(X, Y))), +(DX, DY))
U4_aa(X, Y, DY, DX, p_out_aa(d(e(Y)), DY)) → p_out_aa(d(e(*(X, Y))), +(*(X, DY), *(Y, DX)))
U1_AA(p_out_aa(d(e(X)), DX)) → P_IN_AA
P_IN_AA → U1_AA(p_in_aa)
P_IN_AA → P_IN_AA
P_IN_AA → U3_AA(p_in_aa)
U3_AA(p_out_aa(d(e(X)), DX)) → P_IN_AA
p_in_aa → p_out_aa(d(e(t)), const)
p_in_aa → p_out_aa(d(e(const)), const)
p_in_aa → U1_aa(p_in_aa)
p_in_aa → U3_aa(p_in_aa)
U1_aa(p_out_aa(d(e(X)), DX)) → U2_aa(X, DX, p_in_aa)
U3_aa(p_out_aa(d(e(X)), DX)) → U4_aa(X, DX, p_in_aa)
U2_aa(X, DX, p_out_aa(d(e(Y)), DY)) → p_out_aa(d(e(+(X, Y))), +(DX, DY))
U4_aa(X, DX, p_out_aa(d(e(Y)), DY)) → p_out_aa(d(e(*(X, Y))), +(*(X, DY), *(Y, DX)))
p_in_aa
U1_aa(x0)
U3_aa(x0)
U2_aa(x0, x1, x2)
U4_aa(x0, x1, x2)
P_IN_AA → U1_AA(p_out_aa(d(e(t)), const))
P_IN_AA → U1_AA(p_out_aa(d(e(const)), const))
P_IN_AA → U1_AA(U1_aa(p_in_aa))
P_IN_AA → U1_AA(U3_aa(p_in_aa))
U1_AA(p_out_aa(d(e(X)), DX)) → P_IN_AA
P_IN_AA → P_IN_AA
P_IN_AA → U3_AA(p_in_aa)
U3_AA(p_out_aa(d(e(X)), DX)) → P_IN_AA
P_IN_AA → U1_AA(p_out_aa(d(e(t)), const))
P_IN_AA → U1_AA(p_out_aa(d(e(const)), const))
P_IN_AA → U1_AA(U1_aa(p_in_aa))
P_IN_AA → U1_AA(U3_aa(p_in_aa))
p_in_aa → p_out_aa(d(e(t)), const)
p_in_aa → p_out_aa(d(e(const)), const)
p_in_aa → U1_aa(p_in_aa)
p_in_aa → U3_aa(p_in_aa)
U1_aa(p_out_aa(d(e(X)), DX)) → U2_aa(X, DX, p_in_aa)
U3_aa(p_out_aa(d(e(X)), DX)) → U4_aa(X, DX, p_in_aa)
U2_aa(X, DX, p_out_aa(d(e(Y)), DY)) → p_out_aa(d(e(+(X, Y))), +(DX, DY))
U4_aa(X, DX, p_out_aa(d(e(Y)), DY)) → p_out_aa(d(e(*(X, Y))), +(*(X, DY), *(Y, DX)))
p_in_aa
U1_aa(x0)
U3_aa(x0)
U2_aa(x0, x1, x2)
U4_aa(x0, x1, x2)
P_IN_AA → U3_AA(p_out_aa(d(e(t)), const))
P_IN_AA → U3_AA(p_out_aa(d(e(const)), const))
P_IN_AA → U3_AA(U1_aa(p_in_aa))
P_IN_AA → U3_AA(U3_aa(p_in_aa))
U1_AA(p_out_aa(d(e(X)), DX)) → P_IN_AA
P_IN_AA → P_IN_AA
U3_AA(p_out_aa(d(e(X)), DX)) → P_IN_AA
P_IN_AA → U1_AA(p_out_aa(d(e(t)), const))
P_IN_AA → U1_AA(p_out_aa(d(e(const)), const))
P_IN_AA → U1_AA(U1_aa(p_in_aa))
P_IN_AA → U1_AA(U3_aa(p_in_aa))
P_IN_AA → U3_AA(p_out_aa(d(e(t)), const))
P_IN_AA → U3_AA(p_out_aa(d(e(const)), const))
P_IN_AA → U3_AA(U1_aa(p_in_aa))
P_IN_AA → U3_AA(U3_aa(p_in_aa))
p_in_aa → p_out_aa(d(e(t)), const)
p_in_aa → p_out_aa(d(e(const)), const)
p_in_aa → U1_aa(p_in_aa)
p_in_aa → U3_aa(p_in_aa)
U1_aa(p_out_aa(d(e(X)), DX)) → U2_aa(X, DX, p_in_aa)
U3_aa(p_out_aa(d(e(X)), DX)) → U4_aa(X, DX, p_in_aa)
U2_aa(X, DX, p_out_aa(d(e(Y)), DY)) → p_out_aa(d(e(+(X, Y))), +(DX, DY))
U4_aa(X, DX, p_out_aa(d(e(Y)), DY)) → p_out_aa(d(e(*(X, Y))), +(*(X, DY), *(Y, DX)))
p_in_aa
U1_aa(x0)
U3_aa(x0)
U2_aa(x0, x1, x2)
U4_aa(x0, x1, x2)
U1_GA(X, Y, DX, DY, p_out_ga(d(e(X)), DX)) → P_IN_GA(d(e(Y)), DY)
P_IN_GA(d(e(+(X, Y))), +(DX, DY)) → U1_GA(X, Y, DX, DY, p_in_ga(d(e(X)), DX))
P_IN_GA(d(e(+(X, Y))), +(DX, DY)) → P_IN_GA(d(e(X)), DX)
P_IN_GA(d(e(*(X, Y))), +(*(X, DY), *(Y, DX))) → U3_GA(X, Y, DY, DX, p_in_ga(d(e(X)), DX))
U3_GA(X, Y, DY, DX, p_out_ga(d(e(X)), DX)) → P_IN_GA(d(e(Y)), DY)
P_IN_GA(d(e(*(X, Y))), +(*(X, DY), *(Y, DX))) → P_IN_GA(d(e(X)), DX)
p_in_ag(d(e(t)), const(1)) → p_out_ag(d(e(t)), const(1))
p_in_ag(d(e(const(A))), const(0)) → p_out_ag(d(e(const(A))), const(0))
p_in_ag(d(e(+(X, Y))), +(DX, DY)) → U1_ag(X, Y, DX, DY, p_in_ag(d(e(X)), DX))
p_in_ag(d(e(*(X, Y))), +(*(X, DY), *(Y, DX))) → U3_ag(X, Y, DY, DX, p_in_gg(d(e(X)), DX))
p_in_gg(d(e(t)), const(1)) → p_out_gg(d(e(t)), const(1))
p_in_gg(d(e(const(A))), const(0)) → p_out_gg(d(e(const(A))), const(0))
p_in_gg(d(e(+(X, Y))), +(DX, DY)) → U1_gg(X, Y, DX, DY, p_in_gg(d(e(X)), DX))
p_in_gg(d(e(*(X, Y))), +(*(X, DY), *(Y, DX))) → U3_gg(X, Y, DY, DX, p_in_gg(d(e(X)), DX))
p_in_gg(d(d(X)), DDX) → U5_gg(X, DDX, p_in_ga(d(X), DX))
p_in_ga(d(e(t)), const(1)) → p_out_ga(d(e(t)), const(1))
p_in_ga(d(e(const(A))), const(0)) → p_out_ga(d(e(const(A))), const(0))
p_in_ga(d(e(+(X, Y))), +(DX, DY)) → U1_ga(X, Y, DX, DY, p_in_ga(d(e(X)), DX))
p_in_ga(d(e(*(X, Y))), +(*(X, DY), *(Y, DX))) → U3_ga(X, Y, DY, DX, p_in_ga(d(e(X)), DX))
p_in_ga(d(d(X)), DDX) → U5_ga(X, DDX, p_in_ga(d(X), DX))
U5_ga(X, DDX, p_out_ga(d(X), DX)) → U6_ga(X, DDX, DX, p_in_ga(d(e(DX)), DDX))
U6_ga(X, DDX, DX, p_out_ga(d(e(DX)), DDX)) → p_out_ga(d(d(X)), DDX)
U3_ga(X, Y, DY, DX, p_out_ga(d(e(X)), DX)) → U4_ga(X, Y, DY, DX, p_in_ga(d(e(Y)), DY))
U4_ga(X, Y, DY, DX, p_out_ga(d(e(Y)), DY)) → p_out_ga(d(e(*(X, Y))), +(*(X, DY), *(Y, DX)))
U1_ga(X, Y, DX, DY, p_out_ga(d(e(X)), DX)) → U2_ga(X, Y, DX, DY, p_in_ga(d(e(Y)), DY))
U2_ga(X, Y, DX, DY, p_out_ga(d(e(Y)), DY)) → p_out_ga(d(e(+(X, Y))), +(DX, DY))
U5_gg(X, DDX, p_out_ga(d(X), DX)) → U6_gg(X, DDX, DX, p_in_gg(d(e(DX)), DDX))
U6_gg(X, DDX, DX, p_out_gg(d(e(DX)), DDX)) → p_out_gg(d(d(X)), DDX)
U3_gg(X, Y, DY, DX, p_out_gg(d(e(X)), DX)) → U4_gg(X, Y, DY, DX, p_in_gg(d(e(Y)), DY))
U4_gg(X, Y, DY, DX, p_out_gg(d(e(Y)), DY)) → p_out_gg(d(e(*(X, Y))), +(*(X, DY), *(Y, DX)))
U1_gg(X, Y, DX, DY, p_out_gg(d(e(X)), DX)) → U2_gg(X, Y, DX, DY, p_in_gg(d(e(Y)), DY))
U2_gg(X, Y, DX, DY, p_out_gg(d(e(Y)), DY)) → p_out_gg(d(e(+(X, Y))), +(DX, DY))
U3_ag(X, Y, DY, DX, p_out_gg(d(e(X)), DX)) → U4_ag(X, Y, DY, DX, p_in_gg(d(e(Y)), DY))
U4_ag(X, Y, DY, DX, p_out_gg(d(e(Y)), DY)) → p_out_ag(d(e(*(X, Y))), +(*(X, DY), *(Y, DX)))
p_in_ag(d(d(X)), DDX) → U5_ag(X, DDX, p_in_aa(d(X), DX))
p_in_aa(d(e(t)), const(1)) → p_out_aa(d(e(t)), const(1))
p_in_aa(d(e(const(A))), const(0)) → p_out_aa(d(e(const(A))), const(0))
p_in_aa(d(e(+(X, Y))), +(DX, DY)) → U1_aa(X, Y, DX, DY, p_in_aa(d(e(X)), DX))
p_in_aa(d(e(*(X, Y))), +(*(X, DY), *(Y, DX))) → U3_aa(X, Y, DY, DX, p_in_aa(d(e(X)), DX))
p_in_aa(d(d(X)), DDX) → U5_aa(X, DDX, p_in_aa(d(X), DX))
U5_aa(X, DDX, p_out_aa(d(X), DX)) → U6_aa(X, DDX, DX, p_in_ga(d(e(DX)), DDX))
U6_aa(X, DDX, DX, p_out_ga(d(e(DX)), DDX)) → p_out_aa(d(d(X)), DDX)
U3_aa(X, Y, DY, DX, p_out_aa(d(e(X)), DX)) → U4_aa(X, Y, DY, DX, p_in_aa(d(e(Y)), DY))
U4_aa(X, Y, DY, DX, p_out_aa(d(e(Y)), DY)) → p_out_aa(d(e(*(X, Y))), +(*(X, DY), *(Y, DX)))
U1_aa(X, Y, DX, DY, p_out_aa(d(e(X)), DX)) → U2_aa(X, Y, DX, DY, p_in_aa(d(e(Y)), DY))
U2_aa(X, Y, DX, DY, p_out_aa(d(e(Y)), DY)) → p_out_aa(d(e(+(X, Y))), +(DX, DY))
U5_ag(X, DDX, p_out_aa(d(X), DX)) → U6_ag(X, DDX, DX, p_in_gg(d(e(DX)), DDX))
U6_ag(X, DDX, DX, p_out_gg(d(e(DX)), DDX)) → p_out_ag(d(d(X)), DDX)
U1_ag(X, Y, DX, DY, p_out_ag(d(e(X)), DX)) → U2_ag(X, Y, DX, DY, p_in_ag(d(e(Y)), DY))
U2_ag(X, Y, DX, DY, p_out_ag(d(e(Y)), DY)) → p_out_ag(d(e(+(X, Y))), +(DX, DY))
U1_GA(X, Y, DX, DY, p_out_ga(d(e(X)), DX)) → P_IN_GA(d(e(Y)), DY)
P_IN_GA(d(e(+(X, Y))), +(DX, DY)) → U1_GA(X, Y, DX, DY, p_in_ga(d(e(X)), DX))
P_IN_GA(d(e(+(X, Y))), +(DX, DY)) → P_IN_GA(d(e(X)), DX)
P_IN_GA(d(e(*(X, Y))), +(*(X, DY), *(Y, DX))) → U3_GA(X, Y, DY, DX, p_in_ga(d(e(X)), DX))
U3_GA(X, Y, DY, DX, p_out_ga(d(e(X)), DX)) → P_IN_GA(d(e(Y)), DY)
P_IN_GA(d(e(*(X, Y))), +(*(X, DY), *(Y, DX))) → P_IN_GA(d(e(X)), DX)
p_in_ga(d(e(t)), const(1)) → p_out_ga(d(e(t)), const(1))
p_in_ga(d(e(const(A))), const(0)) → p_out_ga(d(e(const(A))), const(0))
p_in_ga(d(e(+(X, Y))), +(DX, DY)) → U1_ga(X, Y, DX, DY, p_in_ga(d(e(X)), DX))
p_in_ga(d(e(*(X, Y))), +(*(X, DY), *(Y, DX))) → U3_ga(X, Y, DY, DX, p_in_ga(d(e(X)), DX))
U1_ga(X, Y, DX, DY, p_out_ga(d(e(X)), DX)) → U2_ga(X, Y, DX, DY, p_in_ga(d(e(Y)), DY))
U3_ga(X, Y, DY, DX, p_out_ga(d(e(X)), DX)) → U4_ga(X, Y, DY, DX, p_in_ga(d(e(Y)), DY))
U2_ga(X, Y, DX, DY, p_out_ga(d(e(Y)), DY)) → p_out_ga(d(e(+(X, Y))), +(DX, DY))
U4_ga(X, Y, DY, DX, p_out_ga(d(e(Y)), DY)) → p_out_ga(d(e(*(X, Y))), +(*(X, DY), *(Y, DX)))
U1_GA(Y, p_out_ga(DX)) → P_IN_GA(d(e(Y)))
P_IN_GA(d(e(+(X, Y)))) → U1_GA(Y, p_in_ga(d(e(X))))
P_IN_GA(d(e(+(X, Y)))) → P_IN_GA(d(e(X)))
P_IN_GA(d(e(*(X, Y)))) → U3_GA(X, Y, p_in_ga(d(e(X))))
U3_GA(X, Y, p_out_ga(DX)) → P_IN_GA(d(e(Y)))
P_IN_GA(d(e(*(X, Y)))) → P_IN_GA(d(e(X)))
p_in_ga(d(e(t))) → p_out_ga(const)
p_in_ga(d(e(const))) → p_out_ga(const)
p_in_ga(d(e(+(X, Y)))) → U1_ga(Y, p_in_ga(d(e(X))))
p_in_ga(d(e(*(X, Y)))) → U3_ga(X, Y, p_in_ga(d(e(X))))
U1_ga(Y, p_out_ga(DX)) → U2_ga(DX, p_in_ga(d(e(Y))))
U3_ga(X, Y, p_out_ga(DX)) → U4_ga(X, Y, DX, p_in_ga(d(e(Y))))
U2_ga(DX, p_out_ga(DY)) → p_out_ga(+(DX, DY))
U4_ga(X, Y, DX, p_out_ga(DY)) → p_out_ga(+(*(X, DY), *(Y, DX)))
p_in_ga(x0)
U1_ga(x0, x1)
U3_ga(x0, x1, x2)
U2_ga(x0, x1)
U4_ga(x0, x1, x2, x3)
The following pairs can be oriented strictly and are deleted.
The remaining pairs can at least be oriented weakly.
P_IN_GA(d(e(*(X, Y)))) → U3_GA(X, Y, p_in_ga(d(e(X))))
P_IN_GA(d(e(*(X, Y)))) → P_IN_GA(d(e(X)))
POL(*(x1, x2)) = 1 + x1 + x2
POL(+(x1, x2)) = x1 + x2
POL(P_IN_GA(x1)) = x1
POL(U1_GA(x1, x2)) = x1
POL(U1_ga(x1, x2)) = 0
POL(U2_ga(x1, x2)) = 0
POL(U3_GA(x1, x2, x3)) = x2
POL(U3_ga(x1, x2, x3)) = 0
POL(U4_ga(x1, x2, x3, x4)) = 0
POL(const) = 0
POL(d(x1)) = x1
POL(e(x1)) = x1
POL(p_in_ga(x1)) = 0
POL(p_out_ga(x1)) = 0
POL(t) = 0
U1_GA(Y, p_out_ga(DX)) → P_IN_GA(d(e(Y)))
P_IN_GA(d(e(+(X, Y)))) → U1_GA(Y, p_in_ga(d(e(X))))
P_IN_GA(d(e(+(X, Y)))) → P_IN_GA(d(e(X)))
U3_GA(X, Y, p_out_ga(DX)) → P_IN_GA(d(e(Y)))
p_in_ga(d(e(t))) → p_out_ga(const)
p_in_ga(d(e(const))) → p_out_ga(const)
p_in_ga(d(e(+(X, Y)))) → U1_ga(Y, p_in_ga(d(e(X))))
p_in_ga(d(e(*(X, Y)))) → U3_ga(X, Y, p_in_ga(d(e(X))))
U1_ga(Y, p_out_ga(DX)) → U2_ga(DX, p_in_ga(d(e(Y))))
U3_ga(X, Y, p_out_ga(DX)) → U4_ga(X, Y, DX, p_in_ga(d(e(Y))))
U2_ga(DX, p_out_ga(DY)) → p_out_ga(+(DX, DY))
U4_ga(X, Y, DX, p_out_ga(DY)) → p_out_ga(+(*(X, DY), *(Y, DX)))
p_in_ga(x0)
U1_ga(x0, x1)
U3_ga(x0, x1, x2)
U2_ga(x0, x1)
U4_ga(x0, x1, x2, x3)
P_IN_GA(d(e(+(X, Y)))) → U1_GA(Y, p_in_ga(d(e(X))))
U1_GA(Y, p_out_ga(DX)) → P_IN_GA(d(e(Y)))
P_IN_GA(d(e(+(X, Y)))) → P_IN_GA(d(e(X)))
p_in_ga(d(e(t))) → p_out_ga(const)
p_in_ga(d(e(const))) → p_out_ga(const)
p_in_ga(d(e(+(X, Y)))) → U1_ga(Y, p_in_ga(d(e(X))))
p_in_ga(d(e(*(X, Y)))) → U3_ga(X, Y, p_in_ga(d(e(X))))
U1_ga(Y, p_out_ga(DX)) → U2_ga(DX, p_in_ga(d(e(Y))))
U3_ga(X, Y, p_out_ga(DX)) → U4_ga(X, Y, DX, p_in_ga(d(e(Y))))
U2_ga(DX, p_out_ga(DY)) → p_out_ga(+(DX, DY))
U4_ga(X, Y, DX, p_out_ga(DY)) → p_out_ga(+(*(X, DY), *(Y, DX)))
p_in_ga(x0)
U1_ga(x0, x1)
U3_ga(x0, x1, x2)
U2_ga(x0, x1)
U4_ga(x0, x1, x2, x3)
The following pairs can be oriented strictly and are deleted.
The remaining pairs can at least be oriented weakly.
P_IN_GA(d(e(+(X, Y)))) → U1_GA(Y, p_in_ga(d(e(X))))
P_IN_GA(d(e(+(X, Y)))) → P_IN_GA(d(e(X)))
POL(*(x1, x2)) = 0
POL(+(x1, x2)) = 1 + x1 + x2
POL(P_IN_GA(x1)) = x1
POL(U1_GA(x1, x2)) = x1
POL(U1_ga(x1, x2)) = 0
POL(U2_ga(x1, x2)) = 0
POL(U3_ga(x1, x2, x3)) = 0
POL(U4_ga(x1, x2, x3, x4)) = 0
POL(const) = 0
POL(d(x1)) = x1
POL(e(x1)) = x1
POL(p_in_ga(x1)) = 0
POL(p_out_ga(x1)) = 0
POL(t) = 0
U1_GA(Y, p_out_ga(DX)) → P_IN_GA(d(e(Y)))
p_in_ga(d(e(t))) → p_out_ga(const)
p_in_ga(d(e(const))) → p_out_ga(const)
p_in_ga(d(e(+(X, Y)))) → U1_ga(Y, p_in_ga(d(e(X))))
p_in_ga(d(e(*(X, Y)))) → U3_ga(X, Y, p_in_ga(d(e(X))))
U1_ga(Y, p_out_ga(DX)) → U2_ga(DX, p_in_ga(d(e(Y))))
U3_ga(X, Y, p_out_ga(DX)) → U4_ga(X, Y, DX, p_in_ga(d(e(Y))))
U2_ga(DX, p_out_ga(DY)) → p_out_ga(+(DX, DY))
U4_ga(X, Y, DX, p_out_ga(DY)) → p_out_ga(+(*(X, DY), *(Y, DX)))
p_in_ga(x0)
U1_ga(x0, x1)
U3_ga(x0, x1, x2)
U2_ga(x0, x1)
U4_ga(x0, x1, x2, x3)
P_IN_AA(d(d(X)), DDX) → P_IN_AA(d(X), DX)
p_in_ag(d(e(t)), const(1)) → p_out_ag(d(e(t)), const(1))
p_in_ag(d(e(const(A))), const(0)) → p_out_ag(d(e(const(A))), const(0))
p_in_ag(d(e(+(X, Y))), +(DX, DY)) → U1_ag(X, Y, DX, DY, p_in_ag(d(e(X)), DX))
p_in_ag(d(e(*(X, Y))), +(*(X, DY), *(Y, DX))) → U3_ag(X, Y, DY, DX, p_in_gg(d(e(X)), DX))
p_in_gg(d(e(t)), const(1)) → p_out_gg(d(e(t)), const(1))
p_in_gg(d(e(const(A))), const(0)) → p_out_gg(d(e(const(A))), const(0))
p_in_gg(d(e(+(X, Y))), +(DX, DY)) → U1_gg(X, Y, DX, DY, p_in_gg(d(e(X)), DX))
p_in_gg(d(e(*(X, Y))), +(*(X, DY), *(Y, DX))) → U3_gg(X, Y, DY, DX, p_in_gg(d(e(X)), DX))
p_in_gg(d(d(X)), DDX) → U5_gg(X, DDX, p_in_ga(d(X), DX))
p_in_ga(d(e(t)), const(1)) → p_out_ga(d(e(t)), const(1))
p_in_ga(d(e(const(A))), const(0)) → p_out_ga(d(e(const(A))), const(0))
p_in_ga(d(e(+(X, Y))), +(DX, DY)) → U1_ga(X, Y, DX, DY, p_in_ga(d(e(X)), DX))
p_in_ga(d(e(*(X, Y))), +(*(X, DY), *(Y, DX))) → U3_ga(X, Y, DY, DX, p_in_ga(d(e(X)), DX))
p_in_ga(d(d(X)), DDX) → U5_ga(X, DDX, p_in_ga(d(X), DX))
U5_ga(X, DDX, p_out_ga(d(X), DX)) → U6_ga(X, DDX, DX, p_in_ga(d(e(DX)), DDX))
U6_ga(X, DDX, DX, p_out_ga(d(e(DX)), DDX)) → p_out_ga(d(d(X)), DDX)
U3_ga(X, Y, DY, DX, p_out_ga(d(e(X)), DX)) → U4_ga(X, Y, DY, DX, p_in_ga(d(e(Y)), DY))
U4_ga(X, Y, DY, DX, p_out_ga(d(e(Y)), DY)) → p_out_ga(d(e(*(X, Y))), +(*(X, DY), *(Y, DX)))
U1_ga(X, Y, DX, DY, p_out_ga(d(e(X)), DX)) → U2_ga(X, Y, DX, DY, p_in_ga(d(e(Y)), DY))
U2_ga(X, Y, DX, DY, p_out_ga(d(e(Y)), DY)) → p_out_ga(d(e(+(X, Y))), +(DX, DY))
U5_gg(X, DDX, p_out_ga(d(X), DX)) → U6_gg(X, DDX, DX, p_in_gg(d(e(DX)), DDX))
U6_gg(X, DDX, DX, p_out_gg(d(e(DX)), DDX)) → p_out_gg(d(d(X)), DDX)
U3_gg(X, Y, DY, DX, p_out_gg(d(e(X)), DX)) → U4_gg(X, Y, DY, DX, p_in_gg(d(e(Y)), DY))
U4_gg(X, Y, DY, DX, p_out_gg(d(e(Y)), DY)) → p_out_gg(d(e(*(X, Y))), +(*(X, DY), *(Y, DX)))
U1_gg(X, Y, DX, DY, p_out_gg(d(e(X)), DX)) → U2_gg(X, Y, DX, DY, p_in_gg(d(e(Y)), DY))
U2_gg(X, Y, DX, DY, p_out_gg(d(e(Y)), DY)) → p_out_gg(d(e(+(X, Y))), +(DX, DY))
U3_ag(X, Y, DY, DX, p_out_gg(d(e(X)), DX)) → U4_ag(X, Y, DY, DX, p_in_gg(d(e(Y)), DY))
U4_ag(X, Y, DY, DX, p_out_gg(d(e(Y)), DY)) → p_out_ag(d(e(*(X, Y))), +(*(X, DY), *(Y, DX)))
p_in_ag(d(d(X)), DDX) → U5_ag(X, DDX, p_in_aa(d(X), DX))
p_in_aa(d(e(t)), const(1)) → p_out_aa(d(e(t)), const(1))
p_in_aa(d(e(const(A))), const(0)) → p_out_aa(d(e(const(A))), const(0))
p_in_aa(d(e(+(X, Y))), +(DX, DY)) → U1_aa(X, Y, DX, DY, p_in_aa(d(e(X)), DX))
p_in_aa(d(e(*(X, Y))), +(*(X, DY), *(Y, DX))) → U3_aa(X, Y, DY, DX, p_in_aa(d(e(X)), DX))
p_in_aa(d(d(X)), DDX) → U5_aa(X, DDX, p_in_aa(d(X), DX))
U5_aa(X, DDX, p_out_aa(d(X), DX)) → U6_aa(X, DDX, DX, p_in_ga(d(e(DX)), DDX))
U6_aa(X, DDX, DX, p_out_ga(d(e(DX)), DDX)) → p_out_aa(d(d(X)), DDX)
U3_aa(X, Y, DY, DX, p_out_aa(d(e(X)), DX)) → U4_aa(X, Y, DY, DX, p_in_aa(d(e(Y)), DY))
U4_aa(X, Y, DY, DX, p_out_aa(d(e(Y)), DY)) → p_out_aa(d(e(*(X, Y))), +(*(X, DY), *(Y, DX)))
U1_aa(X, Y, DX, DY, p_out_aa(d(e(X)), DX)) → U2_aa(X, Y, DX, DY, p_in_aa(d(e(Y)), DY))
U2_aa(X, Y, DX, DY, p_out_aa(d(e(Y)), DY)) → p_out_aa(d(e(+(X, Y))), +(DX, DY))
U5_ag(X, DDX, p_out_aa(d(X), DX)) → U6_ag(X, DDX, DX, p_in_gg(d(e(DX)), DDX))
U6_ag(X, DDX, DX, p_out_gg(d(e(DX)), DDX)) → p_out_ag(d(d(X)), DDX)
U1_ag(X, Y, DX, DY, p_out_ag(d(e(X)), DX)) → U2_ag(X, Y, DX, DY, p_in_ag(d(e(Y)), DY))
U2_ag(X, Y, DX, DY, p_out_ag(d(e(Y)), DY)) → p_out_ag(d(e(+(X, Y))), +(DX, DY))
P_IN_AA(d(d(X)), DDX) → P_IN_AA(d(X), DX)
P_IN_AA → P_IN_AA
P_IN_GA(d(d(X)), DDX) → P_IN_GA(d(X), DX)
p_in_ag(d(e(t)), const(1)) → p_out_ag(d(e(t)), const(1))
p_in_ag(d(e(const(A))), const(0)) → p_out_ag(d(e(const(A))), const(0))
p_in_ag(d(e(+(X, Y))), +(DX, DY)) → U1_ag(X, Y, DX, DY, p_in_ag(d(e(X)), DX))
p_in_ag(d(e(*(X, Y))), +(*(X, DY), *(Y, DX))) → U3_ag(X, Y, DY, DX, p_in_gg(d(e(X)), DX))
p_in_gg(d(e(t)), const(1)) → p_out_gg(d(e(t)), const(1))
p_in_gg(d(e(const(A))), const(0)) → p_out_gg(d(e(const(A))), const(0))
p_in_gg(d(e(+(X, Y))), +(DX, DY)) → U1_gg(X, Y, DX, DY, p_in_gg(d(e(X)), DX))
p_in_gg(d(e(*(X, Y))), +(*(X, DY), *(Y, DX))) → U3_gg(X, Y, DY, DX, p_in_gg(d(e(X)), DX))
p_in_gg(d(d(X)), DDX) → U5_gg(X, DDX, p_in_ga(d(X), DX))
p_in_ga(d(e(t)), const(1)) → p_out_ga(d(e(t)), const(1))
p_in_ga(d(e(const(A))), const(0)) → p_out_ga(d(e(const(A))), const(0))
p_in_ga(d(e(+(X, Y))), +(DX, DY)) → U1_ga(X, Y, DX, DY, p_in_ga(d(e(X)), DX))
p_in_ga(d(e(*(X, Y))), +(*(X, DY), *(Y, DX))) → U3_ga(X, Y, DY, DX, p_in_ga(d(e(X)), DX))
p_in_ga(d(d(X)), DDX) → U5_ga(X, DDX, p_in_ga(d(X), DX))
U5_ga(X, DDX, p_out_ga(d(X), DX)) → U6_ga(X, DDX, DX, p_in_ga(d(e(DX)), DDX))
U6_ga(X, DDX, DX, p_out_ga(d(e(DX)), DDX)) → p_out_ga(d(d(X)), DDX)
U3_ga(X, Y, DY, DX, p_out_ga(d(e(X)), DX)) → U4_ga(X, Y, DY, DX, p_in_ga(d(e(Y)), DY))
U4_ga(X, Y, DY, DX, p_out_ga(d(e(Y)), DY)) → p_out_ga(d(e(*(X, Y))), +(*(X, DY), *(Y, DX)))
U1_ga(X, Y, DX, DY, p_out_ga(d(e(X)), DX)) → U2_ga(X, Y, DX, DY, p_in_ga(d(e(Y)), DY))
U2_ga(X, Y, DX, DY, p_out_ga(d(e(Y)), DY)) → p_out_ga(d(e(+(X, Y))), +(DX, DY))
U5_gg(X, DDX, p_out_ga(d(X), DX)) → U6_gg(X, DDX, DX, p_in_gg(d(e(DX)), DDX))
U6_gg(X, DDX, DX, p_out_gg(d(e(DX)), DDX)) → p_out_gg(d(d(X)), DDX)
U3_gg(X, Y, DY, DX, p_out_gg(d(e(X)), DX)) → U4_gg(X, Y, DY, DX, p_in_gg(d(e(Y)), DY))
U4_gg(X, Y, DY, DX, p_out_gg(d(e(Y)), DY)) → p_out_gg(d(e(*(X, Y))), +(*(X, DY), *(Y, DX)))
U1_gg(X, Y, DX, DY, p_out_gg(d(e(X)), DX)) → U2_gg(X, Y, DX, DY, p_in_gg(d(e(Y)), DY))
U2_gg(X, Y, DX, DY, p_out_gg(d(e(Y)), DY)) → p_out_gg(d(e(+(X, Y))), +(DX, DY))
U3_ag(X, Y, DY, DX, p_out_gg(d(e(X)), DX)) → U4_ag(X, Y, DY, DX, p_in_gg(d(e(Y)), DY))
U4_ag(X, Y, DY, DX, p_out_gg(d(e(Y)), DY)) → p_out_ag(d(e(*(X, Y))), +(*(X, DY), *(Y, DX)))
p_in_ag(d(d(X)), DDX) → U5_ag(X, DDX, p_in_aa(d(X), DX))
p_in_aa(d(e(t)), const(1)) → p_out_aa(d(e(t)), const(1))
p_in_aa(d(e(const(A))), const(0)) → p_out_aa(d(e(const(A))), const(0))
p_in_aa(d(e(+(X, Y))), +(DX, DY)) → U1_aa(X, Y, DX, DY, p_in_aa(d(e(X)), DX))
p_in_aa(d(e(*(X, Y))), +(*(X, DY), *(Y, DX))) → U3_aa(X, Y, DY, DX, p_in_aa(d(e(X)), DX))
p_in_aa(d(d(X)), DDX) → U5_aa(X, DDX, p_in_aa(d(X), DX))
U5_aa(X, DDX, p_out_aa(d(X), DX)) → U6_aa(X, DDX, DX, p_in_ga(d(e(DX)), DDX))
U6_aa(X, DDX, DX, p_out_ga(d(e(DX)), DDX)) → p_out_aa(d(d(X)), DDX)
U3_aa(X, Y, DY, DX, p_out_aa(d(e(X)), DX)) → U4_aa(X, Y, DY, DX, p_in_aa(d(e(Y)), DY))
U4_aa(X, Y, DY, DX, p_out_aa(d(e(Y)), DY)) → p_out_aa(d(e(*(X, Y))), +(*(X, DY), *(Y, DX)))
U1_aa(X, Y, DX, DY, p_out_aa(d(e(X)), DX)) → U2_aa(X, Y, DX, DY, p_in_aa(d(e(Y)), DY))
U2_aa(X, Y, DX, DY, p_out_aa(d(e(Y)), DY)) → p_out_aa(d(e(+(X, Y))), +(DX, DY))
U5_ag(X, DDX, p_out_aa(d(X), DX)) → U6_ag(X, DDX, DX, p_in_gg(d(e(DX)), DDX))
U6_ag(X, DDX, DX, p_out_gg(d(e(DX)), DDX)) → p_out_ag(d(d(X)), DDX)
U1_ag(X, Y, DX, DY, p_out_ag(d(e(X)), DX)) → U2_ag(X, Y, DX, DY, p_in_ag(d(e(Y)), DY))
U2_ag(X, Y, DX, DY, p_out_ag(d(e(Y)), DY)) → p_out_ag(d(e(+(X, Y))), +(DX, DY))
P_IN_GA(d(d(X)), DDX) → P_IN_GA(d(X), DX)
P_IN_GA(d(d(X))) → P_IN_GA(d(X))
From the DPs we obtained the following set of size-change graphs:
U1_GG(X, Y, DX, DY, p_out_gg(d(e(X)), DX)) → P_IN_GG(d(e(Y)), DY)
P_IN_GG(d(e(+(X, Y))), +(DX, DY)) → U1_GG(X, Y, DX, DY, p_in_gg(d(e(X)), DX))
P_IN_GG(d(e(+(X, Y))), +(DX, DY)) → P_IN_GG(d(e(X)), DX)
P_IN_GG(d(e(*(X, Y))), +(*(X, DY), *(Y, DX))) → U3_GG(X, Y, DY, DX, p_in_gg(d(e(X)), DX))
U3_GG(X, Y, DY, DX, p_out_gg(d(e(X)), DX)) → P_IN_GG(d(e(Y)), DY)
P_IN_GG(d(e(*(X, Y))), +(*(X, DY), *(Y, DX))) → P_IN_GG(d(e(X)), DX)
p_in_ag(d(e(t)), const(1)) → p_out_ag(d(e(t)), const(1))
p_in_ag(d(e(const(A))), const(0)) → p_out_ag(d(e(const(A))), const(0))
p_in_ag(d(e(+(X, Y))), +(DX, DY)) → U1_ag(X, Y, DX, DY, p_in_ag(d(e(X)), DX))
p_in_ag(d(e(*(X, Y))), +(*(X, DY), *(Y, DX))) → U3_ag(X, Y, DY, DX, p_in_gg(d(e(X)), DX))
p_in_gg(d(e(t)), const(1)) → p_out_gg(d(e(t)), const(1))
p_in_gg(d(e(const(A))), const(0)) → p_out_gg(d(e(const(A))), const(0))
p_in_gg(d(e(+(X, Y))), +(DX, DY)) → U1_gg(X, Y, DX, DY, p_in_gg(d(e(X)), DX))
p_in_gg(d(e(*(X, Y))), +(*(X, DY), *(Y, DX))) → U3_gg(X, Y, DY, DX, p_in_gg(d(e(X)), DX))
p_in_gg(d(d(X)), DDX) → U5_gg(X, DDX, p_in_ga(d(X), DX))
p_in_ga(d(e(t)), const(1)) → p_out_ga(d(e(t)), const(1))
p_in_ga(d(e(const(A))), const(0)) → p_out_ga(d(e(const(A))), const(0))
p_in_ga(d(e(+(X, Y))), +(DX, DY)) → U1_ga(X, Y, DX, DY, p_in_ga(d(e(X)), DX))
p_in_ga(d(e(*(X, Y))), +(*(X, DY), *(Y, DX))) → U3_ga(X, Y, DY, DX, p_in_ga(d(e(X)), DX))
p_in_ga(d(d(X)), DDX) → U5_ga(X, DDX, p_in_ga(d(X), DX))
U5_ga(X, DDX, p_out_ga(d(X), DX)) → U6_ga(X, DDX, DX, p_in_ga(d(e(DX)), DDX))
U6_ga(X, DDX, DX, p_out_ga(d(e(DX)), DDX)) → p_out_ga(d(d(X)), DDX)
U3_ga(X, Y, DY, DX, p_out_ga(d(e(X)), DX)) → U4_ga(X, Y, DY, DX, p_in_ga(d(e(Y)), DY))
U4_ga(X, Y, DY, DX, p_out_ga(d(e(Y)), DY)) → p_out_ga(d(e(*(X, Y))), +(*(X, DY), *(Y, DX)))
U1_ga(X, Y, DX, DY, p_out_ga(d(e(X)), DX)) → U2_ga(X, Y, DX, DY, p_in_ga(d(e(Y)), DY))
U2_ga(X, Y, DX, DY, p_out_ga(d(e(Y)), DY)) → p_out_ga(d(e(+(X, Y))), +(DX, DY))
U5_gg(X, DDX, p_out_ga(d(X), DX)) → U6_gg(X, DDX, DX, p_in_gg(d(e(DX)), DDX))
U6_gg(X, DDX, DX, p_out_gg(d(e(DX)), DDX)) → p_out_gg(d(d(X)), DDX)
U3_gg(X, Y, DY, DX, p_out_gg(d(e(X)), DX)) → U4_gg(X, Y, DY, DX, p_in_gg(d(e(Y)), DY))
U4_gg(X, Y, DY, DX, p_out_gg(d(e(Y)), DY)) → p_out_gg(d(e(*(X, Y))), +(*(X, DY), *(Y, DX)))
U1_gg(X, Y, DX, DY, p_out_gg(d(e(X)), DX)) → U2_gg(X, Y, DX, DY, p_in_gg(d(e(Y)), DY))
U2_gg(X, Y, DX, DY, p_out_gg(d(e(Y)), DY)) → p_out_gg(d(e(+(X, Y))), +(DX, DY))
U3_ag(X, Y, DY, DX, p_out_gg(d(e(X)), DX)) → U4_ag(X, Y, DY, DX, p_in_gg(d(e(Y)), DY))
U4_ag(X, Y, DY, DX, p_out_gg(d(e(Y)), DY)) → p_out_ag(d(e(*(X, Y))), +(*(X, DY), *(Y, DX)))
p_in_ag(d(d(X)), DDX) → U5_ag(X, DDX, p_in_aa(d(X), DX))
p_in_aa(d(e(t)), const(1)) → p_out_aa(d(e(t)), const(1))
p_in_aa(d(e(const(A))), const(0)) → p_out_aa(d(e(const(A))), const(0))
p_in_aa(d(e(+(X, Y))), +(DX, DY)) → U1_aa(X, Y, DX, DY, p_in_aa(d(e(X)), DX))
p_in_aa(d(e(*(X, Y))), +(*(X, DY), *(Y, DX))) → U3_aa(X, Y, DY, DX, p_in_aa(d(e(X)), DX))
p_in_aa(d(d(X)), DDX) → U5_aa(X, DDX, p_in_aa(d(X), DX))
U5_aa(X, DDX, p_out_aa(d(X), DX)) → U6_aa(X, DDX, DX, p_in_ga(d(e(DX)), DDX))
U6_aa(X, DDX, DX, p_out_ga(d(e(DX)), DDX)) → p_out_aa(d(d(X)), DDX)
U3_aa(X, Y, DY, DX, p_out_aa(d(e(X)), DX)) → U4_aa(X, Y, DY, DX, p_in_aa(d(e(Y)), DY))
U4_aa(X, Y, DY, DX, p_out_aa(d(e(Y)), DY)) → p_out_aa(d(e(*(X, Y))), +(*(X, DY), *(Y, DX)))
U1_aa(X, Y, DX, DY, p_out_aa(d(e(X)), DX)) → U2_aa(X, Y, DX, DY, p_in_aa(d(e(Y)), DY))
U2_aa(X, Y, DX, DY, p_out_aa(d(e(Y)), DY)) → p_out_aa(d(e(+(X, Y))), +(DX, DY))
U5_ag(X, DDX, p_out_aa(d(X), DX)) → U6_ag(X, DDX, DX, p_in_gg(d(e(DX)), DDX))
U6_ag(X, DDX, DX, p_out_gg(d(e(DX)), DDX)) → p_out_ag(d(d(X)), DDX)
U1_ag(X, Y, DX, DY, p_out_ag(d(e(X)), DX)) → U2_ag(X, Y, DX, DY, p_in_ag(d(e(Y)), DY))
U2_ag(X, Y, DX, DY, p_out_ag(d(e(Y)), DY)) → p_out_ag(d(e(+(X, Y))), +(DX, DY))
U1_GG(X, Y, DX, DY, p_out_gg(d(e(X)), DX)) → P_IN_GG(d(e(Y)), DY)
P_IN_GG(d(e(+(X, Y))), +(DX, DY)) → U1_GG(X, Y, DX, DY, p_in_gg(d(e(X)), DX))
P_IN_GG(d(e(+(X, Y))), +(DX, DY)) → P_IN_GG(d(e(X)), DX)
P_IN_GG(d(e(*(X, Y))), +(*(X, DY), *(Y, DX))) → U3_GG(X, Y, DY, DX, p_in_gg(d(e(X)), DX))
U3_GG(X, Y, DY, DX, p_out_gg(d(e(X)), DX)) → P_IN_GG(d(e(Y)), DY)
P_IN_GG(d(e(*(X, Y))), +(*(X, DY), *(Y, DX))) → P_IN_GG(d(e(X)), DX)
p_in_gg(d(e(t)), const(1)) → p_out_gg(d(e(t)), const(1))
p_in_gg(d(e(const(A))), const(0)) → p_out_gg(d(e(const(A))), const(0))
p_in_gg(d(e(+(X, Y))), +(DX, DY)) → U1_gg(X, Y, DX, DY, p_in_gg(d(e(X)), DX))
p_in_gg(d(e(*(X, Y))), +(*(X, DY), *(Y, DX))) → U3_gg(X, Y, DY, DX, p_in_gg(d(e(X)), DX))
U1_gg(X, Y, DX, DY, p_out_gg(d(e(X)), DX)) → U2_gg(X, Y, DX, DY, p_in_gg(d(e(Y)), DY))
U3_gg(X, Y, DY, DX, p_out_gg(d(e(X)), DX)) → U4_gg(X, Y, DY, DX, p_in_gg(d(e(Y)), DY))
U2_gg(X, Y, DX, DY, p_out_gg(d(e(Y)), DY)) → p_out_gg(d(e(+(X, Y))), +(DX, DY))
U4_gg(X, Y, DY, DX, p_out_gg(d(e(Y)), DY)) → p_out_gg(d(e(*(X, Y))), +(*(X, DY), *(Y, DX)))
U1_GG(Y, DY, p_out_gg) → P_IN_GG(d(e(Y)), DY)
P_IN_GG(d(e(+(X, Y))), +(DX, DY)) → U1_GG(Y, DY, p_in_gg(d(e(X)), DX))
P_IN_GG(d(e(+(X, Y))), +(DX, DY)) → P_IN_GG(d(e(X)), DX)
P_IN_GG(d(e(*(X, Y))), +(*(X, DY), *(Y, DX))) → U3_GG(Y, DY, p_in_gg(d(e(X)), DX))
U3_GG(Y, DY, p_out_gg) → P_IN_GG(d(e(Y)), DY)
P_IN_GG(d(e(*(X, Y))), +(*(X, DY), *(Y, DX))) → P_IN_GG(d(e(X)), DX)
p_in_gg(d(e(t)), const) → p_out_gg
p_in_gg(d(e(const)), const) → p_out_gg
p_in_gg(d(e(+(X, Y))), +(DX, DY)) → U1_gg(Y, DY, p_in_gg(d(e(X)), DX))
p_in_gg(d(e(*(X, Y))), +(*(X, DY), *(Y, DX))) → U3_gg(Y, DY, p_in_gg(d(e(X)), DX))
U1_gg(Y, DY, p_out_gg) → U2_gg(p_in_gg(d(e(Y)), DY))
U3_gg(Y, DY, p_out_gg) → U4_gg(p_in_gg(d(e(Y)), DY))
U2_gg(p_out_gg) → p_out_gg
U4_gg(p_out_gg) → p_out_gg
p_in_gg(x0, x1)
U1_gg(x0, x1, x2)
U3_gg(x0, x1, x2)
U2_gg(x0)
U4_gg(x0)
From the DPs we obtained the following set of size-change graphs:
U1_AG(X, Y, DX, DY, p_out_ag(d(e(X)), DX)) → P_IN_AG(d(e(Y)), DY)
P_IN_AG(d(e(+(X, Y))), +(DX, DY)) → U1_AG(X, Y, DX, DY, p_in_ag(d(e(X)), DX))
P_IN_AG(d(e(+(X, Y))), +(DX, DY)) → P_IN_AG(d(e(X)), DX)
p_in_ag(d(e(t)), const(1)) → p_out_ag(d(e(t)), const(1))
p_in_ag(d(e(const(A))), const(0)) → p_out_ag(d(e(const(A))), const(0))
p_in_ag(d(e(+(X, Y))), +(DX, DY)) → U1_ag(X, Y, DX, DY, p_in_ag(d(e(X)), DX))
p_in_ag(d(e(*(X, Y))), +(*(X, DY), *(Y, DX))) → U3_ag(X, Y, DY, DX, p_in_gg(d(e(X)), DX))
p_in_gg(d(e(t)), const(1)) → p_out_gg(d(e(t)), const(1))
p_in_gg(d(e(const(A))), const(0)) → p_out_gg(d(e(const(A))), const(0))
p_in_gg(d(e(+(X, Y))), +(DX, DY)) → U1_gg(X, Y, DX, DY, p_in_gg(d(e(X)), DX))
p_in_gg(d(e(*(X, Y))), +(*(X, DY), *(Y, DX))) → U3_gg(X, Y, DY, DX, p_in_gg(d(e(X)), DX))
p_in_gg(d(d(X)), DDX) → U5_gg(X, DDX, p_in_ga(d(X), DX))
p_in_ga(d(e(t)), const(1)) → p_out_ga(d(e(t)), const(1))
p_in_ga(d(e(const(A))), const(0)) → p_out_ga(d(e(const(A))), const(0))
p_in_ga(d(e(+(X, Y))), +(DX, DY)) → U1_ga(X, Y, DX, DY, p_in_ga(d(e(X)), DX))
p_in_ga(d(e(*(X, Y))), +(*(X, DY), *(Y, DX))) → U3_ga(X, Y, DY, DX, p_in_ga(d(e(X)), DX))
p_in_ga(d(d(X)), DDX) → U5_ga(X, DDX, p_in_ga(d(X), DX))
U5_ga(X, DDX, p_out_ga(d(X), DX)) → U6_ga(X, DDX, DX, p_in_ga(d(e(DX)), DDX))
U6_ga(X, DDX, DX, p_out_ga(d(e(DX)), DDX)) → p_out_ga(d(d(X)), DDX)
U3_ga(X, Y, DY, DX, p_out_ga(d(e(X)), DX)) → U4_ga(X, Y, DY, DX, p_in_ga(d(e(Y)), DY))
U4_ga(X, Y, DY, DX, p_out_ga(d(e(Y)), DY)) → p_out_ga(d(e(*(X, Y))), +(*(X, DY), *(Y, DX)))
U1_ga(X, Y, DX, DY, p_out_ga(d(e(X)), DX)) → U2_ga(X, Y, DX, DY, p_in_ga(d(e(Y)), DY))
U2_ga(X, Y, DX, DY, p_out_ga(d(e(Y)), DY)) → p_out_ga(d(e(+(X, Y))), +(DX, DY))
U5_gg(X, DDX, p_out_ga(d(X), DX)) → U6_gg(X, DDX, DX, p_in_gg(d(e(DX)), DDX))
U6_gg(X, DDX, DX, p_out_gg(d(e(DX)), DDX)) → p_out_gg(d(d(X)), DDX)
U3_gg(X, Y, DY, DX, p_out_gg(d(e(X)), DX)) → U4_gg(X, Y, DY, DX, p_in_gg(d(e(Y)), DY))
U4_gg(X, Y, DY, DX, p_out_gg(d(e(Y)), DY)) → p_out_gg(d(e(*(X, Y))), +(*(X, DY), *(Y, DX)))
U1_gg(X, Y, DX, DY, p_out_gg(d(e(X)), DX)) → U2_gg(X, Y, DX, DY, p_in_gg(d(e(Y)), DY))
U2_gg(X, Y, DX, DY, p_out_gg(d(e(Y)), DY)) → p_out_gg(d(e(+(X, Y))), +(DX, DY))
U3_ag(X, Y, DY, DX, p_out_gg(d(e(X)), DX)) → U4_ag(X, Y, DY, DX, p_in_gg(d(e(Y)), DY))
U4_ag(X, Y, DY, DX, p_out_gg(d(e(Y)), DY)) → p_out_ag(d(e(*(X, Y))), +(*(X, DY), *(Y, DX)))
p_in_ag(d(d(X)), DDX) → U5_ag(X, DDX, p_in_aa(d(X), DX))
p_in_aa(d(e(t)), const(1)) → p_out_aa(d(e(t)), const(1))
p_in_aa(d(e(const(A))), const(0)) → p_out_aa(d(e(const(A))), const(0))
p_in_aa(d(e(+(X, Y))), +(DX, DY)) → U1_aa(X, Y, DX, DY, p_in_aa(d(e(X)), DX))
p_in_aa(d(e(*(X, Y))), +(*(X, DY), *(Y, DX))) → U3_aa(X, Y, DY, DX, p_in_aa(d(e(X)), DX))
p_in_aa(d(d(X)), DDX) → U5_aa(X, DDX, p_in_aa(d(X), DX))
U5_aa(X, DDX, p_out_aa(d(X), DX)) → U6_aa(X, DDX, DX, p_in_ga(d(e(DX)), DDX))
U6_aa(X, DDX, DX, p_out_ga(d(e(DX)), DDX)) → p_out_aa(d(d(X)), DDX)
U3_aa(X, Y, DY, DX, p_out_aa(d(e(X)), DX)) → U4_aa(X, Y, DY, DX, p_in_aa(d(e(Y)), DY))
U4_aa(X, Y, DY, DX, p_out_aa(d(e(Y)), DY)) → p_out_aa(d(e(*(X, Y))), +(*(X, DY), *(Y, DX)))
U1_aa(X, Y, DX, DY, p_out_aa(d(e(X)), DX)) → U2_aa(X, Y, DX, DY, p_in_aa(d(e(Y)), DY))
U2_aa(X, Y, DX, DY, p_out_aa(d(e(Y)), DY)) → p_out_aa(d(e(+(X, Y))), +(DX, DY))
U5_ag(X, DDX, p_out_aa(d(X), DX)) → U6_ag(X, DDX, DX, p_in_gg(d(e(DX)), DDX))
U6_ag(X, DDX, DX, p_out_gg(d(e(DX)), DDX)) → p_out_ag(d(d(X)), DDX)
U1_ag(X, Y, DX, DY, p_out_ag(d(e(X)), DX)) → U2_ag(X, Y, DX, DY, p_in_ag(d(e(Y)), DY))
U2_ag(X, Y, DX, DY, p_out_ag(d(e(Y)), DY)) → p_out_ag(d(e(+(X, Y))), +(DX, DY))
U1_AG(X, Y, DX, DY, p_out_ag(d(e(X)), DX)) → P_IN_AG(d(e(Y)), DY)
P_IN_AG(d(e(+(X, Y))), +(DX, DY)) → U1_AG(X, Y, DX, DY, p_in_ag(d(e(X)), DX))
P_IN_AG(d(e(+(X, Y))), +(DX, DY)) → P_IN_AG(d(e(X)), DX)
p_in_ag(d(e(t)), const(1)) → p_out_ag(d(e(t)), const(1))
p_in_ag(d(e(const(A))), const(0)) → p_out_ag(d(e(const(A))), const(0))
p_in_ag(d(e(+(X, Y))), +(DX, DY)) → U1_ag(X, Y, DX, DY, p_in_ag(d(e(X)), DX))
p_in_ag(d(e(*(X, Y))), +(*(X, DY), *(Y, DX))) → U3_ag(X, Y, DY, DX, p_in_gg(d(e(X)), DX))
U1_ag(X, Y, DX, DY, p_out_ag(d(e(X)), DX)) → U2_ag(X, Y, DX, DY, p_in_ag(d(e(Y)), DY))
U3_ag(X, Y, DY, DX, p_out_gg(d(e(X)), DX)) → U4_ag(X, Y, DY, DX, p_in_gg(d(e(Y)), DY))
U2_ag(X, Y, DX, DY, p_out_ag(d(e(Y)), DY)) → p_out_ag(d(e(+(X, Y))), +(DX, DY))
p_in_gg(d(e(t)), const(1)) → p_out_gg(d(e(t)), const(1))
p_in_gg(d(e(const(A))), const(0)) → p_out_gg(d(e(const(A))), const(0))
p_in_gg(d(e(+(X, Y))), +(DX, DY)) → U1_gg(X, Y, DX, DY, p_in_gg(d(e(X)), DX))
p_in_gg(d(e(*(X, Y))), +(*(X, DY), *(Y, DX))) → U3_gg(X, Y, DY, DX, p_in_gg(d(e(X)), DX))
U4_ag(X, Y, DY, DX, p_out_gg(d(e(Y)), DY)) → p_out_ag(d(e(*(X, Y))), +(*(X, DY), *(Y, DX)))
U1_gg(X, Y, DX, DY, p_out_gg(d(e(X)), DX)) → U2_gg(X, Y, DX, DY, p_in_gg(d(e(Y)), DY))
U3_gg(X, Y, DY, DX, p_out_gg(d(e(X)), DX)) → U4_gg(X, Y, DY, DX, p_in_gg(d(e(Y)), DY))
U2_gg(X, Y, DX, DY, p_out_gg(d(e(Y)), DY)) → p_out_gg(d(e(+(X, Y))), +(DX, DY))
U4_gg(X, Y, DY, DX, p_out_gg(d(e(Y)), DY)) → p_out_gg(d(e(*(X, Y))), +(*(X, DY), *(Y, DX)))
U1_AG(DY, p_out_ag(d(e(X)))) → P_IN_AG(DY)
P_IN_AG(+(DX, DY)) → U1_AG(DY, p_in_ag(DX))
P_IN_AG(+(DX, DY)) → P_IN_AG(DX)
p_in_ag(const) → p_out_ag(d(e(t)))
p_in_ag(const) → p_out_ag(d(e(const)))
p_in_ag(+(DX, DY)) → U1_ag(DY, p_in_ag(DX))
p_in_ag(+(*(X, DY), *(Y, DX))) → U3_ag(X, Y, DY, p_in_gg(d(e(X)), DX))
U1_ag(DY, p_out_ag(d(e(X)))) → U2_ag(X, p_in_ag(DY))
U3_ag(X, Y, DY, p_out_gg) → U4_ag(X, Y, p_in_gg(d(e(Y)), DY))
U2_ag(X, p_out_ag(d(e(Y)))) → p_out_ag(d(e(+(X, Y))))
p_in_gg(d(e(t)), const) → p_out_gg
p_in_gg(d(e(const)), const) → p_out_gg
p_in_gg(d(e(+(X, Y))), +(DX, DY)) → U1_gg(Y, DY, p_in_gg(d(e(X)), DX))
p_in_gg(d(e(*(X, Y))), +(*(X, DY), *(Y, DX))) → U3_gg(Y, DY, p_in_gg(d(e(X)), DX))
U4_ag(X, Y, p_out_gg) → p_out_ag(d(e(*(X, Y))))
U1_gg(Y, DY, p_out_gg) → U2_gg(p_in_gg(d(e(Y)), DY))
U3_gg(Y, DY, p_out_gg) → U4_gg(p_in_gg(d(e(Y)), DY))
U2_gg(p_out_gg) → p_out_gg
U4_gg(p_out_gg) → p_out_gg
p_in_ag(x0)
U1_ag(x0, x1)
U3_ag(x0, x1, x2, x3)
U2_ag(x0, x1)
p_in_gg(x0, x1)
U4_ag(x0, x1, x2)
U1_gg(x0, x1, x2)
U3_gg(x0, x1, x2)
U2_gg(x0)
U4_gg(x0)
From the DPs we obtained the following set of size-change graphs:
p_in_ag(d(e(t)), const(1)) → p_out_ag(d(e(t)), const(1))
p_in_ag(d(e(const(A))), const(0)) → p_out_ag(d(e(const(A))), const(0))
p_in_ag(d(e(+(X, Y))), +(DX, DY)) → U1_ag(X, Y, DX, DY, p_in_ag(d(e(X)), DX))
p_in_ag(d(e(*(X, Y))), +(*(X, DY), *(Y, DX))) → U3_ag(X, Y, DY, DX, p_in_gg(d(e(X)), DX))
p_in_gg(d(e(t)), const(1)) → p_out_gg(d(e(t)), const(1))
p_in_gg(d(e(const(A))), const(0)) → p_out_gg(d(e(const(A))), const(0))
p_in_gg(d(e(+(X, Y))), +(DX, DY)) → U1_gg(X, Y, DX, DY, p_in_gg(d(e(X)), DX))
p_in_gg(d(e(*(X, Y))), +(*(X, DY), *(Y, DX))) → U3_gg(X, Y, DY, DX, p_in_gg(d(e(X)), DX))
p_in_gg(d(d(X)), DDX) → U5_gg(X, DDX, p_in_ga(d(X), DX))
p_in_ga(d(e(t)), const(1)) → p_out_ga(d(e(t)), const(1))
p_in_ga(d(e(const(A))), const(0)) → p_out_ga(d(e(const(A))), const(0))
p_in_ga(d(e(+(X, Y))), +(DX, DY)) → U1_ga(X, Y, DX, DY, p_in_ga(d(e(X)), DX))
p_in_ga(d(e(*(X, Y))), +(*(X, DY), *(Y, DX))) → U3_ga(X, Y, DY, DX, p_in_ga(d(e(X)), DX))
p_in_ga(d(d(X)), DDX) → U5_ga(X, DDX, p_in_ga(d(X), DX))
U5_ga(X, DDX, p_out_ga(d(X), DX)) → U6_ga(X, DDX, DX, p_in_ga(d(e(DX)), DDX))
U6_ga(X, DDX, DX, p_out_ga(d(e(DX)), DDX)) → p_out_ga(d(d(X)), DDX)
U3_ga(X, Y, DY, DX, p_out_ga(d(e(X)), DX)) → U4_ga(X, Y, DY, DX, p_in_ga(d(e(Y)), DY))
U4_ga(X, Y, DY, DX, p_out_ga(d(e(Y)), DY)) → p_out_ga(d(e(*(X, Y))), +(*(X, DY), *(Y, DX)))
U1_ga(X, Y, DX, DY, p_out_ga(d(e(X)), DX)) → U2_ga(X, Y, DX, DY, p_in_ga(d(e(Y)), DY))
U2_ga(X, Y, DX, DY, p_out_ga(d(e(Y)), DY)) → p_out_ga(d(e(+(X, Y))), +(DX, DY))
U5_gg(X, DDX, p_out_ga(d(X), DX)) → U6_gg(X, DDX, DX, p_in_gg(d(e(DX)), DDX))
U6_gg(X, DDX, DX, p_out_gg(d(e(DX)), DDX)) → p_out_gg(d(d(X)), DDX)
U3_gg(X, Y, DY, DX, p_out_gg(d(e(X)), DX)) → U4_gg(X, Y, DY, DX, p_in_gg(d(e(Y)), DY))
U4_gg(X, Y, DY, DX, p_out_gg(d(e(Y)), DY)) → p_out_gg(d(e(*(X, Y))), +(*(X, DY), *(Y, DX)))
U1_gg(X, Y, DX, DY, p_out_gg(d(e(X)), DX)) → U2_gg(X, Y, DX, DY, p_in_gg(d(e(Y)), DY))
U2_gg(X, Y, DX, DY, p_out_gg(d(e(Y)), DY)) → p_out_gg(d(e(+(X, Y))), +(DX, DY))
U3_ag(X, Y, DY, DX, p_out_gg(d(e(X)), DX)) → U4_ag(X, Y, DY, DX, p_in_gg(d(e(Y)), DY))
U4_ag(X, Y, DY, DX, p_out_gg(d(e(Y)), DY)) → p_out_ag(d(e(*(X, Y))), +(*(X, DY), *(Y, DX)))
p_in_ag(d(d(X)), DDX) → U5_ag(X, DDX, p_in_aa(d(X), DX))
p_in_aa(d(e(t)), const(1)) → p_out_aa(d(e(t)), const(1))
p_in_aa(d(e(const(A))), const(0)) → p_out_aa(d(e(const(A))), const(0))
p_in_aa(d(e(+(X, Y))), +(DX, DY)) → U1_aa(X, Y, DX, DY, p_in_aa(d(e(X)), DX))
p_in_aa(d(e(*(X, Y))), +(*(X, DY), *(Y, DX))) → U3_aa(X, Y, DY, DX, p_in_aa(d(e(X)), DX))
p_in_aa(d(d(X)), DDX) → U5_aa(X, DDX, p_in_aa(d(X), DX))
U5_aa(X, DDX, p_out_aa(d(X), DX)) → U6_aa(X, DDX, DX, p_in_ga(d(e(DX)), DDX))
U6_aa(X, DDX, DX, p_out_ga(d(e(DX)), DDX)) → p_out_aa(d(d(X)), DDX)
U3_aa(X, Y, DY, DX, p_out_aa(d(e(X)), DX)) → U4_aa(X, Y, DY, DX, p_in_aa(d(e(Y)), DY))
U4_aa(X, Y, DY, DX, p_out_aa(d(e(Y)), DY)) → p_out_aa(d(e(*(X, Y))), +(*(X, DY), *(Y, DX)))
U1_aa(X, Y, DX, DY, p_out_aa(d(e(X)), DX)) → U2_aa(X, Y, DX, DY, p_in_aa(d(e(Y)), DY))
U2_aa(X, Y, DX, DY, p_out_aa(d(e(Y)), DY)) → p_out_aa(d(e(+(X, Y))), +(DX, DY))
U5_ag(X, DDX, p_out_aa(d(X), DX)) → U6_ag(X, DDX, DX, p_in_gg(d(e(DX)), DDX))
U6_ag(X, DDX, DX, p_out_gg(d(e(DX)), DDX)) → p_out_ag(d(d(X)), DDX)
U1_ag(X, Y, DX, DY, p_out_ag(d(e(X)), DX)) → U2_ag(X, Y, DX, DY, p_in_ag(d(e(Y)), DY))
U2_ag(X, Y, DX, DY, p_out_ag(d(e(Y)), DY)) → p_out_ag(d(e(+(X, Y))), +(DX, DY))
Infinitary Constructor Rewriting Termination of PiTRS implies Termination of Prolog
p_in_ag(d(e(t)), const(1)) → p_out_ag(d(e(t)), const(1))
p_in_ag(d(e(const(A))), const(0)) → p_out_ag(d(e(const(A))), const(0))
p_in_ag(d(e(+(X, Y))), +(DX, DY)) → U1_ag(X, Y, DX, DY, p_in_ag(d(e(X)), DX))
p_in_ag(d(e(*(X, Y))), +(*(X, DY), *(Y, DX))) → U3_ag(X, Y, DY, DX, p_in_gg(d(e(X)), DX))
p_in_gg(d(e(t)), const(1)) → p_out_gg(d(e(t)), const(1))
p_in_gg(d(e(const(A))), const(0)) → p_out_gg(d(e(const(A))), const(0))
p_in_gg(d(e(+(X, Y))), +(DX, DY)) → U1_gg(X, Y, DX, DY, p_in_gg(d(e(X)), DX))
p_in_gg(d(e(*(X, Y))), +(*(X, DY), *(Y, DX))) → U3_gg(X, Y, DY, DX, p_in_gg(d(e(X)), DX))
p_in_gg(d(d(X)), DDX) → U5_gg(X, DDX, p_in_ga(d(X), DX))
p_in_ga(d(e(t)), const(1)) → p_out_ga(d(e(t)), const(1))
p_in_ga(d(e(const(A))), const(0)) → p_out_ga(d(e(const(A))), const(0))
p_in_ga(d(e(+(X, Y))), +(DX, DY)) → U1_ga(X, Y, DX, DY, p_in_ga(d(e(X)), DX))
p_in_ga(d(e(*(X, Y))), +(*(X, DY), *(Y, DX))) → U3_ga(X, Y, DY, DX, p_in_ga(d(e(X)), DX))
p_in_ga(d(d(X)), DDX) → U5_ga(X, DDX, p_in_ga(d(X), DX))
U5_ga(X, DDX, p_out_ga(d(X), DX)) → U6_ga(X, DDX, DX, p_in_ga(d(e(DX)), DDX))
U6_ga(X, DDX, DX, p_out_ga(d(e(DX)), DDX)) → p_out_ga(d(d(X)), DDX)
U3_ga(X, Y, DY, DX, p_out_ga(d(e(X)), DX)) → U4_ga(X, Y, DY, DX, p_in_ga(d(e(Y)), DY))
U4_ga(X, Y, DY, DX, p_out_ga(d(e(Y)), DY)) → p_out_ga(d(e(*(X, Y))), +(*(X, DY), *(Y, DX)))
U1_ga(X, Y, DX, DY, p_out_ga(d(e(X)), DX)) → U2_ga(X, Y, DX, DY, p_in_ga(d(e(Y)), DY))
U2_ga(X, Y, DX, DY, p_out_ga(d(e(Y)), DY)) → p_out_ga(d(e(+(X, Y))), +(DX, DY))
U5_gg(X, DDX, p_out_ga(d(X), DX)) → U6_gg(X, DDX, DX, p_in_gg(d(e(DX)), DDX))
U6_gg(X, DDX, DX, p_out_gg(d(e(DX)), DDX)) → p_out_gg(d(d(X)), DDX)
U3_gg(X, Y, DY, DX, p_out_gg(d(e(X)), DX)) → U4_gg(X, Y, DY, DX, p_in_gg(d(e(Y)), DY))
U4_gg(X, Y, DY, DX, p_out_gg(d(e(Y)), DY)) → p_out_gg(d(e(*(X, Y))), +(*(X, DY), *(Y, DX)))
U1_gg(X, Y, DX, DY, p_out_gg(d(e(X)), DX)) → U2_gg(X, Y, DX, DY, p_in_gg(d(e(Y)), DY))
U2_gg(X, Y, DX, DY, p_out_gg(d(e(Y)), DY)) → p_out_gg(d(e(+(X, Y))), +(DX, DY))
U3_ag(X, Y, DY, DX, p_out_gg(d(e(X)), DX)) → U4_ag(X, Y, DY, DX, p_in_gg(d(e(Y)), DY))
U4_ag(X, Y, DY, DX, p_out_gg(d(e(Y)), DY)) → p_out_ag(d(e(*(X, Y))), +(*(X, DY), *(Y, DX)))
p_in_ag(d(d(X)), DDX) → U5_ag(X, DDX, p_in_aa(d(X), DX))
p_in_aa(d(e(t)), const(1)) → p_out_aa(d(e(t)), const(1))
p_in_aa(d(e(const(A))), const(0)) → p_out_aa(d(e(const(A))), const(0))
p_in_aa(d(e(+(X, Y))), +(DX, DY)) → U1_aa(X, Y, DX, DY, p_in_aa(d(e(X)), DX))
p_in_aa(d(e(*(X, Y))), +(*(X, DY), *(Y, DX))) → U3_aa(X, Y, DY, DX, p_in_aa(d(e(X)), DX))
p_in_aa(d(d(X)), DDX) → U5_aa(X, DDX, p_in_aa(d(X), DX))
U5_aa(X, DDX, p_out_aa(d(X), DX)) → U6_aa(X, DDX, DX, p_in_ga(d(e(DX)), DDX))
U6_aa(X, DDX, DX, p_out_ga(d(e(DX)), DDX)) → p_out_aa(d(d(X)), DDX)
U3_aa(X, Y, DY, DX, p_out_aa(d(e(X)), DX)) → U4_aa(X, Y, DY, DX, p_in_aa(d(e(Y)), DY))
U4_aa(X, Y, DY, DX, p_out_aa(d(e(Y)), DY)) → p_out_aa(d(e(*(X, Y))), +(*(X, DY), *(Y, DX)))
U1_aa(X, Y, DX, DY, p_out_aa(d(e(X)), DX)) → U2_aa(X, Y, DX, DY, p_in_aa(d(e(Y)), DY))
U2_aa(X, Y, DX, DY, p_out_aa(d(e(Y)), DY)) → p_out_aa(d(e(+(X, Y))), +(DX, DY))
U5_ag(X, DDX, p_out_aa(d(X), DX)) → U6_ag(X, DDX, DX, p_in_gg(d(e(DX)), DDX))
U6_ag(X, DDX, DX, p_out_gg(d(e(DX)), DDX)) → p_out_ag(d(d(X)), DDX)
U1_ag(X, Y, DX, DY, p_out_ag(d(e(X)), DX)) → U2_ag(X, Y, DX, DY, p_in_ag(d(e(Y)), DY))
U2_ag(X, Y, DX, DY, p_out_ag(d(e(Y)), DY)) → p_out_ag(d(e(+(X, Y))), +(DX, DY))
P_IN_AG(d(e(+(X, Y))), +(DX, DY)) → U1_AG(X, Y, DX, DY, p_in_ag(d(e(X)), DX))
P_IN_AG(d(e(+(X, Y))), +(DX, DY)) → P_IN_AG(d(e(X)), DX)
P_IN_AG(d(e(*(X, Y))), +(*(X, DY), *(Y, DX))) → U3_AG(X, Y, DY, DX, p_in_gg(d(e(X)), DX))
P_IN_AG(d(e(*(X, Y))), +(*(X, DY), *(Y, DX))) → P_IN_GG(d(e(X)), DX)
P_IN_GG(d(e(+(X, Y))), +(DX, DY)) → U1_GG(X, Y, DX, DY, p_in_gg(d(e(X)), DX))
P_IN_GG(d(e(+(X, Y))), +(DX, DY)) → P_IN_GG(d(e(X)), DX)
P_IN_GG(d(e(*(X, Y))), +(*(X, DY), *(Y, DX))) → U3_GG(X, Y, DY, DX, p_in_gg(d(e(X)), DX))
P_IN_GG(d(e(*(X, Y))), +(*(X, DY), *(Y, DX))) → P_IN_GG(d(e(X)), DX)
P_IN_GG(d(d(X)), DDX) → U5_GG(X, DDX, p_in_ga(d(X), DX))
P_IN_GG(d(d(X)), DDX) → P_IN_GA(d(X), DX)
P_IN_GA(d(e(+(X, Y))), +(DX, DY)) → U1_GA(X, Y, DX, DY, p_in_ga(d(e(X)), DX))
P_IN_GA(d(e(+(X, Y))), +(DX, DY)) → P_IN_GA(d(e(X)), DX)
P_IN_GA(d(e(*(X, Y))), +(*(X, DY), *(Y, DX))) → U3_GA(X, Y, DY, DX, p_in_ga(d(e(X)), DX))
P_IN_GA(d(e(*(X, Y))), +(*(X, DY), *(Y, DX))) → P_IN_GA(d(e(X)), DX)
P_IN_GA(d(d(X)), DDX) → U5_GA(X, DDX, p_in_ga(d(X), DX))
P_IN_GA(d(d(X)), DDX) → P_IN_GA(d(X), DX)
U5_GA(X, DDX, p_out_ga(d(X), DX)) → U6_GA(X, DDX, DX, p_in_ga(d(e(DX)), DDX))
U5_GA(X, DDX, p_out_ga(d(X), DX)) → P_IN_GA(d(e(DX)), DDX)
U3_GA(X, Y, DY, DX, p_out_ga(d(e(X)), DX)) → U4_GA(X, Y, DY, DX, p_in_ga(d(e(Y)), DY))
U3_GA(X, Y, DY, DX, p_out_ga(d(e(X)), DX)) → P_IN_GA(d(e(Y)), DY)
U1_GA(X, Y, DX, DY, p_out_ga(d(e(X)), DX)) → U2_GA(X, Y, DX, DY, p_in_ga(d(e(Y)), DY))
U1_GA(X, Y, DX, DY, p_out_ga(d(e(X)), DX)) → P_IN_GA(d(e(Y)), DY)
U5_GG(X, DDX, p_out_ga(d(X), DX)) → U6_GG(X, DDX, DX, p_in_gg(d(e(DX)), DDX))
U5_GG(X, DDX, p_out_ga(d(X), DX)) → P_IN_GG(d(e(DX)), DDX)
U3_GG(X, Y, DY, DX, p_out_gg(d(e(X)), DX)) → U4_GG(X, Y, DY, DX, p_in_gg(d(e(Y)), DY))
U3_GG(X, Y, DY, DX, p_out_gg(d(e(X)), DX)) → P_IN_GG(d(e(Y)), DY)
U1_GG(X, Y, DX, DY, p_out_gg(d(e(X)), DX)) → U2_GG(X, Y, DX, DY, p_in_gg(d(e(Y)), DY))
U1_GG(X, Y, DX, DY, p_out_gg(d(e(X)), DX)) → P_IN_GG(d(e(Y)), DY)
U3_AG(X, Y, DY, DX, p_out_gg(d(e(X)), DX)) → U4_AG(X, Y, DY, DX, p_in_gg(d(e(Y)), DY))
U3_AG(X, Y, DY, DX, p_out_gg(d(e(X)), DX)) → P_IN_GG(d(e(Y)), DY)
P_IN_AG(d(d(X)), DDX) → U5_AG(X, DDX, p_in_aa(d(X), DX))
P_IN_AG(d(d(X)), DDX) → P_IN_AA(d(X), DX)
P_IN_AA(d(e(+(X, Y))), +(DX, DY)) → U1_AA(X, Y, DX, DY, p_in_aa(d(e(X)), DX))
P_IN_AA(d(e(+(X, Y))), +(DX, DY)) → P_IN_AA(d(e(X)), DX)
P_IN_AA(d(e(*(X, Y))), +(*(X, DY), *(Y, DX))) → U3_AA(X, Y, DY, DX, p_in_aa(d(e(X)), DX))
P_IN_AA(d(e(*(X, Y))), +(*(X, DY), *(Y, DX))) → P_IN_AA(d(e(X)), DX)
P_IN_AA(d(d(X)), DDX) → U5_AA(X, DDX, p_in_aa(d(X), DX))
P_IN_AA(d(d(X)), DDX) → P_IN_AA(d(X), DX)
U5_AA(X, DDX, p_out_aa(d(X), DX)) → U6_AA(X, DDX, DX, p_in_ga(d(e(DX)), DDX))
U5_AA(X, DDX, p_out_aa(d(X), DX)) → P_IN_GA(d(e(DX)), DDX)
U3_AA(X, Y, DY, DX, p_out_aa(d(e(X)), DX)) → U4_AA(X, Y, DY, DX, p_in_aa(d(e(Y)), DY))
U3_AA(X, Y, DY, DX, p_out_aa(d(e(X)), DX)) → P_IN_AA(d(e(Y)), DY)
U1_AA(X, Y, DX, DY, p_out_aa(d(e(X)), DX)) → U2_AA(X, Y, DX, DY, p_in_aa(d(e(Y)), DY))
U1_AA(X, Y, DX, DY, p_out_aa(d(e(X)), DX)) → P_IN_AA(d(e(Y)), DY)
U5_AG(X, DDX, p_out_aa(d(X), DX)) → U6_AG(X, DDX, DX, p_in_gg(d(e(DX)), DDX))
U5_AG(X, DDX, p_out_aa(d(X), DX)) → P_IN_GG(d(e(DX)), DDX)
U1_AG(X, Y, DX, DY, p_out_ag(d(e(X)), DX)) → U2_AG(X, Y, DX, DY, p_in_ag(d(e(Y)), DY))
U1_AG(X, Y, DX, DY, p_out_ag(d(e(X)), DX)) → P_IN_AG(d(e(Y)), DY)
p_in_ag(d(e(t)), const(1)) → p_out_ag(d(e(t)), const(1))
p_in_ag(d(e(const(A))), const(0)) → p_out_ag(d(e(const(A))), const(0))
p_in_ag(d(e(+(X, Y))), +(DX, DY)) → U1_ag(X, Y, DX, DY, p_in_ag(d(e(X)), DX))
p_in_ag(d(e(*(X, Y))), +(*(X, DY), *(Y, DX))) → U3_ag(X, Y, DY, DX, p_in_gg(d(e(X)), DX))
p_in_gg(d(e(t)), const(1)) → p_out_gg(d(e(t)), const(1))
p_in_gg(d(e(const(A))), const(0)) → p_out_gg(d(e(const(A))), const(0))
p_in_gg(d(e(+(X, Y))), +(DX, DY)) → U1_gg(X, Y, DX, DY, p_in_gg(d(e(X)), DX))
p_in_gg(d(e(*(X, Y))), +(*(X, DY), *(Y, DX))) → U3_gg(X, Y, DY, DX, p_in_gg(d(e(X)), DX))
p_in_gg(d(d(X)), DDX) → U5_gg(X, DDX, p_in_ga(d(X), DX))
p_in_ga(d(e(t)), const(1)) → p_out_ga(d(e(t)), const(1))
p_in_ga(d(e(const(A))), const(0)) → p_out_ga(d(e(const(A))), const(0))
p_in_ga(d(e(+(X, Y))), +(DX, DY)) → U1_ga(X, Y, DX, DY, p_in_ga(d(e(X)), DX))
p_in_ga(d(e(*(X, Y))), +(*(X, DY), *(Y, DX))) → U3_ga(X, Y, DY, DX, p_in_ga(d(e(X)), DX))
p_in_ga(d(d(X)), DDX) → U5_ga(X, DDX, p_in_ga(d(X), DX))
U5_ga(X, DDX, p_out_ga(d(X), DX)) → U6_ga(X, DDX, DX, p_in_ga(d(e(DX)), DDX))
U6_ga(X, DDX, DX, p_out_ga(d(e(DX)), DDX)) → p_out_ga(d(d(X)), DDX)
U3_ga(X, Y, DY, DX, p_out_ga(d(e(X)), DX)) → U4_ga(X, Y, DY, DX, p_in_ga(d(e(Y)), DY))
U4_ga(X, Y, DY, DX, p_out_ga(d(e(Y)), DY)) → p_out_ga(d(e(*(X, Y))), +(*(X, DY), *(Y, DX)))
U1_ga(X, Y, DX, DY, p_out_ga(d(e(X)), DX)) → U2_ga(X, Y, DX, DY, p_in_ga(d(e(Y)), DY))
U2_ga(X, Y, DX, DY, p_out_ga(d(e(Y)), DY)) → p_out_ga(d(e(+(X, Y))), +(DX, DY))
U5_gg(X, DDX, p_out_ga(d(X), DX)) → U6_gg(X, DDX, DX, p_in_gg(d(e(DX)), DDX))
U6_gg(X, DDX, DX, p_out_gg(d(e(DX)), DDX)) → p_out_gg(d(d(X)), DDX)
U3_gg(X, Y, DY, DX, p_out_gg(d(e(X)), DX)) → U4_gg(X, Y, DY, DX, p_in_gg(d(e(Y)), DY))
U4_gg(X, Y, DY, DX, p_out_gg(d(e(Y)), DY)) → p_out_gg(d(e(*(X, Y))), +(*(X, DY), *(Y, DX)))
U1_gg(X, Y, DX, DY, p_out_gg(d(e(X)), DX)) → U2_gg(X, Y, DX, DY, p_in_gg(d(e(Y)), DY))
U2_gg(X, Y, DX, DY, p_out_gg(d(e(Y)), DY)) → p_out_gg(d(e(+(X, Y))), +(DX, DY))
U3_ag(X, Y, DY, DX, p_out_gg(d(e(X)), DX)) → U4_ag(X, Y, DY, DX, p_in_gg(d(e(Y)), DY))
U4_ag(X, Y, DY, DX, p_out_gg(d(e(Y)), DY)) → p_out_ag(d(e(*(X, Y))), +(*(X, DY), *(Y, DX)))
p_in_ag(d(d(X)), DDX) → U5_ag(X, DDX, p_in_aa(d(X), DX))
p_in_aa(d(e(t)), const(1)) → p_out_aa(d(e(t)), const(1))
p_in_aa(d(e(const(A))), const(0)) → p_out_aa(d(e(const(A))), const(0))
p_in_aa(d(e(+(X, Y))), +(DX, DY)) → U1_aa(X, Y, DX, DY, p_in_aa(d(e(X)), DX))
p_in_aa(d(e(*(X, Y))), +(*(X, DY), *(Y, DX))) → U3_aa(X, Y, DY, DX, p_in_aa(d(e(X)), DX))
p_in_aa(d(d(X)), DDX) → U5_aa(X, DDX, p_in_aa(d(X), DX))
U5_aa(X, DDX, p_out_aa(d(X), DX)) → U6_aa(X, DDX, DX, p_in_ga(d(e(DX)), DDX))
U6_aa(X, DDX, DX, p_out_ga(d(e(DX)), DDX)) → p_out_aa(d(d(X)), DDX)
U3_aa(X, Y, DY, DX, p_out_aa(d(e(X)), DX)) → U4_aa(X, Y, DY, DX, p_in_aa(d(e(Y)), DY))
U4_aa(X, Y, DY, DX, p_out_aa(d(e(Y)), DY)) → p_out_aa(d(e(*(X, Y))), +(*(X, DY), *(Y, DX)))
U1_aa(X, Y, DX, DY, p_out_aa(d(e(X)), DX)) → U2_aa(X, Y, DX, DY, p_in_aa(d(e(Y)), DY))
U2_aa(X, Y, DX, DY, p_out_aa(d(e(Y)), DY)) → p_out_aa(d(e(+(X, Y))), +(DX, DY))
U5_ag(X, DDX, p_out_aa(d(X), DX)) → U6_ag(X, DDX, DX, p_in_gg(d(e(DX)), DDX))
U6_ag(X, DDX, DX, p_out_gg(d(e(DX)), DDX)) → p_out_ag(d(d(X)), DDX)
U1_ag(X, Y, DX, DY, p_out_ag(d(e(X)), DX)) → U2_ag(X, Y, DX, DY, p_in_ag(d(e(Y)), DY))
U2_ag(X, Y, DX, DY, p_out_ag(d(e(Y)), DY)) → p_out_ag(d(e(+(X, Y))), +(DX, DY))
P_IN_AG(d(e(+(X, Y))), +(DX, DY)) → U1_AG(X, Y, DX, DY, p_in_ag(d(e(X)), DX))
P_IN_AG(d(e(+(X, Y))), +(DX, DY)) → P_IN_AG(d(e(X)), DX)
P_IN_AG(d(e(*(X, Y))), +(*(X, DY), *(Y, DX))) → U3_AG(X, Y, DY, DX, p_in_gg(d(e(X)), DX))
P_IN_AG(d(e(*(X, Y))), +(*(X, DY), *(Y, DX))) → P_IN_GG(d(e(X)), DX)
P_IN_GG(d(e(+(X, Y))), +(DX, DY)) → U1_GG(X, Y, DX, DY, p_in_gg(d(e(X)), DX))
P_IN_GG(d(e(+(X, Y))), +(DX, DY)) → P_IN_GG(d(e(X)), DX)
P_IN_GG(d(e(*(X, Y))), +(*(X, DY), *(Y, DX))) → U3_GG(X, Y, DY, DX, p_in_gg(d(e(X)), DX))
P_IN_GG(d(e(*(X, Y))), +(*(X, DY), *(Y, DX))) → P_IN_GG(d(e(X)), DX)
P_IN_GG(d(d(X)), DDX) → U5_GG(X, DDX, p_in_ga(d(X), DX))
P_IN_GG(d(d(X)), DDX) → P_IN_GA(d(X), DX)
P_IN_GA(d(e(+(X, Y))), +(DX, DY)) → U1_GA(X, Y, DX, DY, p_in_ga(d(e(X)), DX))
P_IN_GA(d(e(+(X, Y))), +(DX, DY)) → P_IN_GA(d(e(X)), DX)
P_IN_GA(d(e(*(X, Y))), +(*(X, DY), *(Y, DX))) → U3_GA(X, Y, DY, DX, p_in_ga(d(e(X)), DX))
P_IN_GA(d(e(*(X, Y))), +(*(X, DY), *(Y, DX))) → P_IN_GA(d(e(X)), DX)
P_IN_GA(d(d(X)), DDX) → U5_GA(X, DDX, p_in_ga(d(X), DX))
P_IN_GA(d(d(X)), DDX) → P_IN_GA(d(X), DX)
U5_GA(X, DDX, p_out_ga(d(X), DX)) → U6_GA(X, DDX, DX, p_in_ga(d(e(DX)), DDX))
U5_GA(X, DDX, p_out_ga(d(X), DX)) → P_IN_GA(d(e(DX)), DDX)
U3_GA(X, Y, DY, DX, p_out_ga(d(e(X)), DX)) → U4_GA(X, Y, DY, DX, p_in_ga(d(e(Y)), DY))
U3_GA(X, Y, DY, DX, p_out_ga(d(e(X)), DX)) → P_IN_GA(d(e(Y)), DY)
U1_GA(X, Y, DX, DY, p_out_ga(d(e(X)), DX)) → U2_GA(X, Y, DX, DY, p_in_ga(d(e(Y)), DY))
U1_GA(X, Y, DX, DY, p_out_ga(d(e(X)), DX)) → P_IN_GA(d(e(Y)), DY)
U5_GG(X, DDX, p_out_ga(d(X), DX)) → U6_GG(X, DDX, DX, p_in_gg(d(e(DX)), DDX))
U5_GG(X, DDX, p_out_ga(d(X), DX)) → P_IN_GG(d(e(DX)), DDX)
U3_GG(X, Y, DY, DX, p_out_gg(d(e(X)), DX)) → U4_GG(X, Y, DY, DX, p_in_gg(d(e(Y)), DY))
U3_GG(X, Y, DY, DX, p_out_gg(d(e(X)), DX)) → P_IN_GG(d(e(Y)), DY)
U1_GG(X, Y, DX, DY, p_out_gg(d(e(X)), DX)) → U2_GG(X, Y, DX, DY, p_in_gg(d(e(Y)), DY))
U1_GG(X, Y, DX, DY, p_out_gg(d(e(X)), DX)) → P_IN_GG(d(e(Y)), DY)
U3_AG(X, Y, DY, DX, p_out_gg(d(e(X)), DX)) → U4_AG(X, Y, DY, DX, p_in_gg(d(e(Y)), DY))
U3_AG(X, Y, DY, DX, p_out_gg(d(e(X)), DX)) → P_IN_GG(d(e(Y)), DY)
P_IN_AG(d(d(X)), DDX) → U5_AG(X, DDX, p_in_aa(d(X), DX))
P_IN_AG(d(d(X)), DDX) → P_IN_AA(d(X), DX)
P_IN_AA(d(e(+(X, Y))), +(DX, DY)) → U1_AA(X, Y, DX, DY, p_in_aa(d(e(X)), DX))
P_IN_AA(d(e(+(X, Y))), +(DX, DY)) → P_IN_AA(d(e(X)), DX)
P_IN_AA(d(e(*(X, Y))), +(*(X, DY), *(Y, DX))) → U3_AA(X, Y, DY, DX, p_in_aa(d(e(X)), DX))
P_IN_AA(d(e(*(X, Y))), +(*(X, DY), *(Y, DX))) → P_IN_AA(d(e(X)), DX)
P_IN_AA(d(d(X)), DDX) → U5_AA(X, DDX, p_in_aa(d(X), DX))
P_IN_AA(d(d(X)), DDX) → P_IN_AA(d(X), DX)
U5_AA(X, DDX, p_out_aa(d(X), DX)) → U6_AA(X, DDX, DX, p_in_ga(d(e(DX)), DDX))
U5_AA(X, DDX, p_out_aa(d(X), DX)) → P_IN_GA(d(e(DX)), DDX)
U3_AA(X, Y, DY, DX, p_out_aa(d(e(X)), DX)) → U4_AA(X, Y, DY, DX, p_in_aa(d(e(Y)), DY))
U3_AA(X, Y, DY, DX, p_out_aa(d(e(X)), DX)) → P_IN_AA(d(e(Y)), DY)
U1_AA(X, Y, DX, DY, p_out_aa(d(e(X)), DX)) → U2_AA(X, Y, DX, DY, p_in_aa(d(e(Y)), DY))
U1_AA(X, Y, DX, DY, p_out_aa(d(e(X)), DX)) → P_IN_AA(d(e(Y)), DY)
U5_AG(X, DDX, p_out_aa(d(X), DX)) → U6_AG(X, DDX, DX, p_in_gg(d(e(DX)), DDX))
U5_AG(X, DDX, p_out_aa(d(X), DX)) → P_IN_GG(d(e(DX)), DDX)
U1_AG(X, Y, DX, DY, p_out_ag(d(e(X)), DX)) → U2_AG(X, Y, DX, DY, p_in_ag(d(e(Y)), DY))
U1_AG(X, Y, DX, DY, p_out_ag(d(e(X)), DX)) → P_IN_AG(d(e(Y)), DY)
p_in_ag(d(e(t)), const(1)) → p_out_ag(d(e(t)), const(1))
p_in_ag(d(e(const(A))), const(0)) → p_out_ag(d(e(const(A))), const(0))
p_in_ag(d(e(+(X, Y))), +(DX, DY)) → U1_ag(X, Y, DX, DY, p_in_ag(d(e(X)), DX))
p_in_ag(d(e(*(X, Y))), +(*(X, DY), *(Y, DX))) → U3_ag(X, Y, DY, DX, p_in_gg(d(e(X)), DX))
p_in_gg(d(e(t)), const(1)) → p_out_gg(d(e(t)), const(1))
p_in_gg(d(e(const(A))), const(0)) → p_out_gg(d(e(const(A))), const(0))
p_in_gg(d(e(+(X, Y))), +(DX, DY)) → U1_gg(X, Y, DX, DY, p_in_gg(d(e(X)), DX))
p_in_gg(d(e(*(X, Y))), +(*(X, DY), *(Y, DX))) → U3_gg(X, Y, DY, DX, p_in_gg(d(e(X)), DX))
p_in_gg(d(d(X)), DDX) → U5_gg(X, DDX, p_in_ga(d(X), DX))
p_in_ga(d(e(t)), const(1)) → p_out_ga(d(e(t)), const(1))
p_in_ga(d(e(const(A))), const(0)) → p_out_ga(d(e(const(A))), const(0))
p_in_ga(d(e(+(X, Y))), +(DX, DY)) → U1_ga(X, Y, DX, DY, p_in_ga(d(e(X)), DX))
p_in_ga(d(e(*(X, Y))), +(*(X, DY), *(Y, DX))) → U3_ga(X, Y, DY, DX, p_in_ga(d(e(X)), DX))
p_in_ga(d(d(X)), DDX) → U5_ga(X, DDX, p_in_ga(d(X), DX))
U5_ga(X, DDX, p_out_ga(d(X), DX)) → U6_ga(X, DDX, DX, p_in_ga(d(e(DX)), DDX))
U6_ga(X, DDX, DX, p_out_ga(d(e(DX)), DDX)) → p_out_ga(d(d(X)), DDX)
U3_ga(X, Y, DY, DX, p_out_ga(d(e(X)), DX)) → U4_ga(X, Y, DY, DX, p_in_ga(d(e(Y)), DY))
U4_ga(X, Y, DY, DX, p_out_ga(d(e(Y)), DY)) → p_out_ga(d(e(*(X, Y))), +(*(X, DY), *(Y, DX)))
U1_ga(X, Y, DX, DY, p_out_ga(d(e(X)), DX)) → U2_ga(X, Y, DX, DY, p_in_ga(d(e(Y)), DY))
U2_ga(X, Y, DX, DY, p_out_ga(d(e(Y)), DY)) → p_out_ga(d(e(+(X, Y))), +(DX, DY))
U5_gg(X, DDX, p_out_ga(d(X), DX)) → U6_gg(X, DDX, DX, p_in_gg(d(e(DX)), DDX))
U6_gg(X, DDX, DX, p_out_gg(d(e(DX)), DDX)) → p_out_gg(d(d(X)), DDX)
U3_gg(X, Y, DY, DX, p_out_gg(d(e(X)), DX)) → U4_gg(X, Y, DY, DX, p_in_gg(d(e(Y)), DY))
U4_gg(X, Y, DY, DX, p_out_gg(d(e(Y)), DY)) → p_out_gg(d(e(*(X, Y))), +(*(X, DY), *(Y, DX)))
U1_gg(X, Y, DX, DY, p_out_gg(d(e(X)), DX)) → U2_gg(X, Y, DX, DY, p_in_gg(d(e(Y)), DY))
U2_gg(X, Y, DX, DY, p_out_gg(d(e(Y)), DY)) → p_out_gg(d(e(+(X, Y))), +(DX, DY))
U3_ag(X, Y, DY, DX, p_out_gg(d(e(X)), DX)) → U4_ag(X, Y, DY, DX, p_in_gg(d(e(Y)), DY))
U4_ag(X, Y, DY, DX, p_out_gg(d(e(Y)), DY)) → p_out_ag(d(e(*(X, Y))), +(*(X, DY), *(Y, DX)))
p_in_ag(d(d(X)), DDX) → U5_ag(X, DDX, p_in_aa(d(X), DX))
p_in_aa(d(e(t)), const(1)) → p_out_aa(d(e(t)), const(1))
p_in_aa(d(e(const(A))), const(0)) → p_out_aa(d(e(const(A))), const(0))
p_in_aa(d(e(+(X, Y))), +(DX, DY)) → U1_aa(X, Y, DX, DY, p_in_aa(d(e(X)), DX))
p_in_aa(d(e(*(X, Y))), +(*(X, DY), *(Y, DX))) → U3_aa(X, Y, DY, DX, p_in_aa(d(e(X)), DX))
p_in_aa(d(d(X)), DDX) → U5_aa(X, DDX, p_in_aa(d(X), DX))
U5_aa(X, DDX, p_out_aa(d(X), DX)) → U6_aa(X, DDX, DX, p_in_ga(d(e(DX)), DDX))
U6_aa(X, DDX, DX, p_out_ga(d(e(DX)), DDX)) → p_out_aa(d(d(X)), DDX)
U3_aa(X, Y, DY, DX, p_out_aa(d(e(X)), DX)) → U4_aa(X, Y, DY, DX, p_in_aa(d(e(Y)), DY))
U4_aa(X, Y, DY, DX, p_out_aa(d(e(Y)), DY)) → p_out_aa(d(e(*(X, Y))), +(*(X, DY), *(Y, DX)))
U1_aa(X, Y, DX, DY, p_out_aa(d(e(X)), DX)) → U2_aa(X, Y, DX, DY, p_in_aa(d(e(Y)), DY))
U2_aa(X, Y, DX, DY, p_out_aa(d(e(Y)), DY)) → p_out_aa(d(e(+(X, Y))), +(DX, DY))
U5_ag(X, DDX, p_out_aa(d(X), DX)) → U6_ag(X, DDX, DX, p_in_gg(d(e(DX)), DDX))
U6_ag(X, DDX, DX, p_out_gg(d(e(DX)), DDX)) → p_out_ag(d(d(X)), DDX)
U1_ag(X, Y, DX, DY, p_out_ag(d(e(X)), DX)) → U2_ag(X, Y, DX, DY, p_in_ag(d(e(Y)), DY))
U2_ag(X, Y, DX, DY, p_out_ag(d(e(Y)), DY)) → p_out_ag(d(e(+(X, Y))), +(DX, DY))
U1_AA(X, Y, DX, DY, p_out_aa(d(e(X)), DX)) → P_IN_AA(d(e(Y)), DY)
P_IN_AA(d(e(+(X, Y))), +(DX, DY)) → U1_AA(X, Y, DX, DY, p_in_aa(d(e(X)), DX))
P_IN_AA(d(e(+(X, Y))), +(DX, DY)) → P_IN_AA(d(e(X)), DX)
P_IN_AA(d(e(*(X, Y))), +(*(X, DY), *(Y, DX))) → U3_AA(X, Y, DY, DX, p_in_aa(d(e(X)), DX))
U3_AA(X, Y, DY, DX, p_out_aa(d(e(X)), DX)) → P_IN_AA(d(e(Y)), DY)
P_IN_AA(d(e(*(X, Y))), +(*(X, DY), *(Y, DX))) → P_IN_AA(d(e(X)), DX)
p_in_ag(d(e(t)), const(1)) → p_out_ag(d(e(t)), const(1))
p_in_ag(d(e(const(A))), const(0)) → p_out_ag(d(e(const(A))), const(0))
p_in_ag(d(e(+(X, Y))), +(DX, DY)) → U1_ag(X, Y, DX, DY, p_in_ag(d(e(X)), DX))
p_in_ag(d(e(*(X, Y))), +(*(X, DY), *(Y, DX))) → U3_ag(X, Y, DY, DX, p_in_gg(d(e(X)), DX))
p_in_gg(d(e(t)), const(1)) → p_out_gg(d(e(t)), const(1))
p_in_gg(d(e(const(A))), const(0)) → p_out_gg(d(e(const(A))), const(0))
p_in_gg(d(e(+(X, Y))), +(DX, DY)) → U1_gg(X, Y, DX, DY, p_in_gg(d(e(X)), DX))
p_in_gg(d(e(*(X, Y))), +(*(X, DY), *(Y, DX))) → U3_gg(X, Y, DY, DX, p_in_gg(d(e(X)), DX))
p_in_gg(d(d(X)), DDX) → U5_gg(X, DDX, p_in_ga(d(X), DX))
p_in_ga(d(e(t)), const(1)) → p_out_ga(d(e(t)), const(1))
p_in_ga(d(e(const(A))), const(0)) → p_out_ga(d(e(const(A))), const(0))
p_in_ga(d(e(+(X, Y))), +(DX, DY)) → U1_ga(X, Y, DX, DY, p_in_ga(d(e(X)), DX))
p_in_ga(d(e(*(X, Y))), +(*(X, DY), *(Y, DX))) → U3_ga(X, Y, DY, DX, p_in_ga(d(e(X)), DX))
p_in_ga(d(d(X)), DDX) → U5_ga(X, DDX, p_in_ga(d(X), DX))
U5_ga(X, DDX, p_out_ga(d(X), DX)) → U6_ga(X, DDX, DX, p_in_ga(d(e(DX)), DDX))
U6_ga(X, DDX, DX, p_out_ga(d(e(DX)), DDX)) → p_out_ga(d(d(X)), DDX)
U3_ga(X, Y, DY, DX, p_out_ga(d(e(X)), DX)) → U4_ga(X, Y, DY, DX, p_in_ga(d(e(Y)), DY))
U4_ga(X, Y, DY, DX, p_out_ga(d(e(Y)), DY)) → p_out_ga(d(e(*(X, Y))), +(*(X, DY), *(Y, DX)))
U1_ga(X, Y, DX, DY, p_out_ga(d(e(X)), DX)) → U2_ga(X, Y, DX, DY, p_in_ga(d(e(Y)), DY))
U2_ga(X, Y, DX, DY, p_out_ga(d(e(Y)), DY)) → p_out_ga(d(e(+(X, Y))), +(DX, DY))
U5_gg(X, DDX, p_out_ga(d(X), DX)) → U6_gg(X, DDX, DX, p_in_gg(d(e(DX)), DDX))
U6_gg(X, DDX, DX, p_out_gg(d(e(DX)), DDX)) → p_out_gg(d(d(X)), DDX)
U3_gg(X, Y, DY, DX, p_out_gg(d(e(X)), DX)) → U4_gg(X, Y, DY, DX, p_in_gg(d(e(Y)), DY))
U4_gg(X, Y, DY, DX, p_out_gg(d(e(Y)), DY)) → p_out_gg(d(e(*(X, Y))), +(*(X, DY), *(Y, DX)))
U1_gg(X, Y, DX, DY, p_out_gg(d(e(X)), DX)) → U2_gg(X, Y, DX, DY, p_in_gg(d(e(Y)), DY))
U2_gg(X, Y, DX, DY, p_out_gg(d(e(Y)), DY)) → p_out_gg(d(e(+(X, Y))), +(DX, DY))
U3_ag(X, Y, DY, DX, p_out_gg(d(e(X)), DX)) → U4_ag(X, Y, DY, DX, p_in_gg(d(e(Y)), DY))
U4_ag(X, Y, DY, DX, p_out_gg(d(e(Y)), DY)) → p_out_ag(d(e(*(X, Y))), +(*(X, DY), *(Y, DX)))
p_in_ag(d(d(X)), DDX) → U5_ag(X, DDX, p_in_aa(d(X), DX))
p_in_aa(d(e(t)), const(1)) → p_out_aa(d(e(t)), const(1))
p_in_aa(d(e(const(A))), const(0)) → p_out_aa(d(e(const(A))), const(0))
p_in_aa(d(e(+(X, Y))), +(DX, DY)) → U1_aa(X, Y, DX, DY, p_in_aa(d(e(X)), DX))
p_in_aa(d(e(*(X, Y))), +(*(X, DY), *(Y, DX))) → U3_aa(X, Y, DY, DX, p_in_aa(d(e(X)), DX))
p_in_aa(d(d(X)), DDX) → U5_aa(X, DDX, p_in_aa(d(X), DX))
U5_aa(X, DDX, p_out_aa(d(X), DX)) → U6_aa(X, DDX, DX, p_in_ga(d(e(DX)), DDX))
U6_aa(X, DDX, DX, p_out_ga(d(e(DX)), DDX)) → p_out_aa(d(d(X)), DDX)
U3_aa(X, Y, DY, DX, p_out_aa(d(e(X)), DX)) → U4_aa(X, Y, DY, DX, p_in_aa(d(e(Y)), DY))
U4_aa(X, Y, DY, DX, p_out_aa(d(e(Y)), DY)) → p_out_aa(d(e(*(X, Y))), +(*(X, DY), *(Y, DX)))
U1_aa(X, Y, DX, DY, p_out_aa(d(e(X)), DX)) → U2_aa(X, Y, DX, DY, p_in_aa(d(e(Y)), DY))
U2_aa(X, Y, DX, DY, p_out_aa(d(e(Y)), DY)) → p_out_aa(d(e(+(X, Y))), +(DX, DY))
U5_ag(X, DDX, p_out_aa(d(X), DX)) → U6_ag(X, DDX, DX, p_in_gg(d(e(DX)), DDX))
U6_ag(X, DDX, DX, p_out_gg(d(e(DX)), DDX)) → p_out_ag(d(d(X)), DDX)
U1_ag(X, Y, DX, DY, p_out_ag(d(e(X)), DX)) → U2_ag(X, Y, DX, DY, p_in_ag(d(e(Y)), DY))
U2_ag(X, Y, DX, DY, p_out_ag(d(e(Y)), DY)) → p_out_ag(d(e(+(X, Y))), +(DX, DY))
U1_AA(X, Y, DX, DY, p_out_aa(d(e(X)), DX)) → P_IN_AA(d(e(Y)), DY)
P_IN_AA(d(e(+(X, Y))), +(DX, DY)) → U1_AA(X, Y, DX, DY, p_in_aa(d(e(X)), DX))
P_IN_AA(d(e(+(X, Y))), +(DX, DY)) → P_IN_AA(d(e(X)), DX)
P_IN_AA(d(e(*(X, Y))), +(*(X, DY), *(Y, DX))) → U3_AA(X, Y, DY, DX, p_in_aa(d(e(X)), DX))
U3_AA(X, Y, DY, DX, p_out_aa(d(e(X)), DX)) → P_IN_AA(d(e(Y)), DY)
P_IN_AA(d(e(*(X, Y))), +(*(X, DY), *(Y, DX))) → P_IN_AA(d(e(X)), DX)
p_in_aa(d(e(t)), const(1)) → p_out_aa(d(e(t)), const(1))
p_in_aa(d(e(const(A))), const(0)) → p_out_aa(d(e(const(A))), const(0))
p_in_aa(d(e(+(X, Y))), +(DX, DY)) → U1_aa(X, Y, DX, DY, p_in_aa(d(e(X)), DX))
p_in_aa(d(e(*(X, Y))), +(*(X, DY), *(Y, DX))) → U3_aa(X, Y, DY, DX, p_in_aa(d(e(X)), DX))
U1_aa(X, Y, DX, DY, p_out_aa(d(e(X)), DX)) → U2_aa(X, Y, DX, DY, p_in_aa(d(e(Y)), DY))
U3_aa(X, Y, DY, DX, p_out_aa(d(e(X)), DX)) → U4_aa(X, Y, DY, DX, p_in_aa(d(e(Y)), DY))
U2_aa(X, Y, DX, DY, p_out_aa(d(e(Y)), DY)) → p_out_aa(d(e(+(X, Y))), +(DX, DY))
U4_aa(X, Y, DY, DX, p_out_aa(d(e(Y)), DY)) → p_out_aa(d(e(*(X, Y))), +(*(X, DY), *(Y, DX)))
U1_AA(p_out_aa(d(e(X)), DX)) → P_IN_AA
P_IN_AA → U1_AA(p_in_aa)
P_IN_AA → P_IN_AA
P_IN_AA → U3_AA(p_in_aa)
U3_AA(p_out_aa(d(e(X)), DX)) → P_IN_AA
p_in_aa → p_out_aa(d(e(t)), const)
p_in_aa → p_out_aa(d(e(const)), const)
p_in_aa → U1_aa(p_in_aa)
p_in_aa → U3_aa(p_in_aa)
U1_aa(p_out_aa(d(e(X)), DX)) → U2_aa(X, DX, p_in_aa)
U3_aa(p_out_aa(d(e(X)), DX)) → U4_aa(X, DX, p_in_aa)
U2_aa(X, DX, p_out_aa(d(e(Y)), DY)) → p_out_aa(d(e(+(X, Y))), +(DX, DY))
U4_aa(X, DX, p_out_aa(d(e(Y)), DY)) → p_out_aa(d(e(*(X, Y))), +(*(X, DY), *(Y, DX)))
p_in_aa
U1_aa(x0)
U3_aa(x0)
U2_aa(x0, x1, x2)
U4_aa(x0, x1, x2)
P_IN_AA → U1_AA(p_out_aa(d(e(t)), const))
P_IN_AA → U1_AA(p_out_aa(d(e(const)), const))
P_IN_AA → U1_AA(U1_aa(p_in_aa))
P_IN_AA → U1_AA(U3_aa(p_in_aa))
U1_AA(p_out_aa(d(e(X)), DX)) → P_IN_AA
P_IN_AA → P_IN_AA
P_IN_AA → U3_AA(p_in_aa)
U3_AA(p_out_aa(d(e(X)), DX)) → P_IN_AA
P_IN_AA → U1_AA(p_out_aa(d(e(t)), const))
P_IN_AA → U1_AA(p_out_aa(d(e(const)), const))
P_IN_AA → U1_AA(U1_aa(p_in_aa))
P_IN_AA → U1_AA(U3_aa(p_in_aa))
p_in_aa → p_out_aa(d(e(t)), const)
p_in_aa → p_out_aa(d(e(const)), const)
p_in_aa → U1_aa(p_in_aa)
p_in_aa → U3_aa(p_in_aa)
U1_aa(p_out_aa(d(e(X)), DX)) → U2_aa(X, DX, p_in_aa)
U3_aa(p_out_aa(d(e(X)), DX)) → U4_aa(X, DX, p_in_aa)
U2_aa(X, DX, p_out_aa(d(e(Y)), DY)) → p_out_aa(d(e(+(X, Y))), +(DX, DY))
U4_aa(X, DX, p_out_aa(d(e(Y)), DY)) → p_out_aa(d(e(*(X, Y))), +(*(X, DY), *(Y, DX)))
p_in_aa
U1_aa(x0)
U3_aa(x0)
U2_aa(x0, x1, x2)
U4_aa(x0, x1, x2)
P_IN_AA → U3_AA(p_out_aa(d(e(t)), const))
P_IN_AA → U3_AA(p_out_aa(d(e(const)), const))
P_IN_AA → U3_AA(U1_aa(p_in_aa))
P_IN_AA → U3_AA(U3_aa(p_in_aa))
U1_AA(p_out_aa(d(e(X)), DX)) → P_IN_AA
P_IN_AA → P_IN_AA
U3_AA(p_out_aa(d(e(X)), DX)) → P_IN_AA
P_IN_AA → U1_AA(p_out_aa(d(e(t)), const))
P_IN_AA → U1_AA(p_out_aa(d(e(const)), const))
P_IN_AA → U1_AA(U1_aa(p_in_aa))
P_IN_AA → U1_AA(U3_aa(p_in_aa))
P_IN_AA → U3_AA(p_out_aa(d(e(t)), const))
P_IN_AA → U3_AA(p_out_aa(d(e(const)), const))
P_IN_AA → U3_AA(U1_aa(p_in_aa))
P_IN_AA → U3_AA(U3_aa(p_in_aa))
p_in_aa → p_out_aa(d(e(t)), const)
p_in_aa → p_out_aa(d(e(const)), const)
p_in_aa → U1_aa(p_in_aa)
p_in_aa → U3_aa(p_in_aa)
U1_aa(p_out_aa(d(e(X)), DX)) → U2_aa(X, DX, p_in_aa)
U3_aa(p_out_aa(d(e(X)), DX)) → U4_aa(X, DX, p_in_aa)
U2_aa(X, DX, p_out_aa(d(e(Y)), DY)) → p_out_aa(d(e(+(X, Y))), +(DX, DY))
U4_aa(X, DX, p_out_aa(d(e(Y)), DY)) → p_out_aa(d(e(*(X, Y))), +(*(X, DY), *(Y, DX)))
p_in_aa
U1_aa(x0)
U3_aa(x0)
U2_aa(x0, x1, x2)
U4_aa(x0, x1, x2)
U1_GA(X, Y, DX, DY, p_out_ga(d(e(X)), DX)) → P_IN_GA(d(e(Y)), DY)
P_IN_GA(d(e(+(X, Y))), +(DX, DY)) → U1_GA(X, Y, DX, DY, p_in_ga(d(e(X)), DX))
P_IN_GA(d(e(+(X, Y))), +(DX, DY)) → P_IN_GA(d(e(X)), DX)
P_IN_GA(d(e(*(X, Y))), +(*(X, DY), *(Y, DX))) → U3_GA(X, Y, DY, DX, p_in_ga(d(e(X)), DX))
U3_GA(X, Y, DY, DX, p_out_ga(d(e(X)), DX)) → P_IN_GA(d(e(Y)), DY)
P_IN_GA(d(e(*(X, Y))), +(*(X, DY), *(Y, DX))) → P_IN_GA(d(e(X)), DX)
p_in_ag(d(e(t)), const(1)) → p_out_ag(d(e(t)), const(1))
p_in_ag(d(e(const(A))), const(0)) → p_out_ag(d(e(const(A))), const(0))
p_in_ag(d(e(+(X, Y))), +(DX, DY)) → U1_ag(X, Y, DX, DY, p_in_ag(d(e(X)), DX))
p_in_ag(d(e(*(X, Y))), +(*(X, DY), *(Y, DX))) → U3_ag(X, Y, DY, DX, p_in_gg(d(e(X)), DX))
p_in_gg(d(e(t)), const(1)) → p_out_gg(d(e(t)), const(1))
p_in_gg(d(e(const(A))), const(0)) → p_out_gg(d(e(const(A))), const(0))
p_in_gg(d(e(+(X, Y))), +(DX, DY)) → U1_gg(X, Y, DX, DY, p_in_gg(d(e(X)), DX))
p_in_gg(d(e(*(X, Y))), +(*(X, DY), *(Y, DX))) → U3_gg(X, Y, DY, DX, p_in_gg(d(e(X)), DX))
p_in_gg(d(d(X)), DDX) → U5_gg(X, DDX, p_in_ga(d(X), DX))
p_in_ga(d(e(t)), const(1)) → p_out_ga(d(e(t)), const(1))
p_in_ga(d(e(const(A))), const(0)) → p_out_ga(d(e(const(A))), const(0))
p_in_ga(d(e(+(X, Y))), +(DX, DY)) → U1_ga(X, Y, DX, DY, p_in_ga(d(e(X)), DX))
p_in_ga(d(e(*(X, Y))), +(*(X, DY), *(Y, DX))) → U3_ga(X, Y, DY, DX, p_in_ga(d(e(X)), DX))
p_in_ga(d(d(X)), DDX) → U5_ga(X, DDX, p_in_ga(d(X), DX))
U5_ga(X, DDX, p_out_ga(d(X), DX)) → U6_ga(X, DDX, DX, p_in_ga(d(e(DX)), DDX))
U6_ga(X, DDX, DX, p_out_ga(d(e(DX)), DDX)) → p_out_ga(d(d(X)), DDX)
U3_ga(X, Y, DY, DX, p_out_ga(d(e(X)), DX)) → U4_ga(X, Y, DY, DX, p_in_ga(d(e(Y)), DY))
U4_ga(X, Y, DY, DX, p_out_ga(d(e(Y)), DY)) → p_out_ga(d(e(*(X, Y))), +(*(X, DY), *(Y, DX)))
U1_ga(X, Y, DX, DY, p_out_ga(d(e(X)), DX)) → U2_ga(X, Y, DX, DY, p_in_ga(d(e(Y)), DY))
U2_ga(X, Y, DX, DY, p_out_ga(d(e(Y)), DY)) → p_out_ga(d(e(+(X, Y))), +(DX, DY))
U5_gg(X, DDX, p_out_ga(d(X), DX)) → U6_gg(X, DDX, DX, p_in_gg(d(e(DX)), DDX))
U6_gg(X, DDX, DX, p_out_gg(d(e(DX)), DDX)) → p_out_gg(d(d(X)), DDX)
U3_gg(X, Y, DY, DX, p_out_gg(d(e(X)), DX)) → U4_gg(X, Y, DY, DX, p_in_gg(d(e(Y)), DY))
U4_gg(X, Y, DY, DX, p_out_gg(d(e(Y)), DY)) → p_out_gg(d(e(*(X, Y))), +(*(X, DY), *(Y, DX)))
U1_gg(X, Y, DX, DY, p_out_gg(d(e(X)), DX)) → U2_gg(X, Y, DX, DY, p_in_gg(d(e(Y)), DY))
U2_gg(X, Y, DX, DY, p_out_gg(d(e(Y)), DY)) → p_out_gg(d(e(+(X, Y))), +(DX, DY))
U3_ag(X, Y, DY, DX, p_out_gg(d(e(X)), DX)) → U4_ag(X, Y, DY, DX, p_in_gg(d(e(Y)), DY))
U4_ag(X, Y, DY, DX, p_out_gg(d(e(Y)), DY)) → p_out_ag(d(e(*(X, Y))), +(*(X, DY), *(Y, DX)))
p_in_ag(d(d(X)), DDX) → U5_ag(X, DDX, p_in_aa(d(X), DX))
p_in_aa(d(e(t)), const(1)) → p_out_aa(d(e(t)), const(1))
p_in_aa(d(e(const(A))), const(0)) → p_out_aa(d(e(const(A))), const(0))
p_in_aa(d(e(+(X, Y))), +(DX, DY)) → U1_aa(X, Y, DX, DY, p_in_aa(d(e(X)), DX))
p_in_aa(d(e(*(X, Y))), +(*(X, DY), *(Y, DX))) → U3_aa(X, Y, DY, DX, p_in_aa(d(e(X)), DX))
p_in_aa(d(d(X)), DDX) → U5_aa(X, DDX, p_in_aa(d(X), DX))
U5_aa(X, DDX, p_out_aa(d(X), DX)) → U6_aa(X, DDX, DX, p_in_ga(d(e(DX)), DDX))
U6_aa(X, DDX, DX, p_out_ga(d(e(DX)), DDX)) → p_out_aa(d(d(X)), DDX)
U3_aa(X, Y, DY, DX, p_out_aa(d(e(X)), DX)) → U4_aa(X, Y, DY, DX, p_in_aa(d(e(Y)), DY))
U4_aa(X, Y, DY, DX, p_out_aa(d(e(Y)), DY)) → p_out_aa(d(e(*(X, Y))), +(*(X, DY), *(Y, DX)))
U1_aa(X, Y, DX, DY, p_out_aa(d(e(X)), DX)) → U2_aa(X, Y, DX, DY, p_in_aa(d(e(Y)), DY))
U2_aa(X, Y, DX, DY, p_out_aa(d(e(Y)), DY)) → p_out_aa(d(e(+(X, Y))), +(DX, DY))
U5_ag(X, DDX, p_out_aa(d(X), DX)) → U6_ag(X, DDX, DX, p_in_gg(d(e(DX)), DDX))
U6_ag(X, DDX, DX, p_out_gg(d(e(DX)), DDX)) → p_out_ag(d(d(X)), DDX)
U1_ag(X, Y, DX, DY, p_out_ag(d(e(X)), DX)) → U2_ag(X, Y, DX, DY, p_in_ag(d(e(Y)), DY))
U2_ag(X, Y, DX, DY, p_out_ag(d(e(Y)), DY)) → p_out_ag(d(e(+(X, Y))), +(DX, DY))
U1_GA(X, Y, DX, DY, p_out_ga(d(e(X)), DX)) → P_IN_GA(d(e(Y)), DY)
P_IN_GA(d(e(+(X, Y))), +(DX, DY)) → U1_GA(X, Y, DX, DY, p_in_ga(d(e(X)), DX))
P_IN_GA(d(e(+(X, Y))), +(DX, DY)) → P_IN_GA(d(e(X)), DX)
P_IN_GA(d(e(*(X, Y))), +(*(X, DY), *(Y, DX))) → U3_GA(X, Y, DY, DX, p_in_ga(d(e(X)), DX))
U3_GA(X, Y, DY, DX, p_out_ga(d(e(X)), DX)) → P_IN_GA(d(e(Y)), DY)
P_IN_GA(d(e(*(X, Y))), +(*(X, DY), *(Y, DX))) → P_IN_GA(d(e(X)), DX)
p_in_ga(d(e(t)), const(1)) → p_out_ga(d(e(t)), const(1))
p_in_ga(d(e(const(A))), const(0)) → p_out_ga(d(e(const(A))), const(0))
p_in_ga(d(e(+(X, Y))), +(DX, DY)) → U1_ga(X, Y, DX, DY, p_in_ga(d(e(X)), DX))
p_in_ga(d(e(*(X, Y))), +(*(X, DY), *(Y, DX))) → U3_ga(X, Y, DY, DX, p_in_ga(d(e(X)), DX))
U1_ga(X, Y, DX, DY, p_out_ga(d(e(X)), DX)) → U2_ga(X, Y, DX, DY, p_in_ga(d(e(Y)), DY))
U3_ga(X, Y, DY, DX, p_out_ga(d(e(X)), DX)) → U4_ga(X, Y, DY, DX, p_in_ga(d(e(Y)), DY))
U2_ga(X, Y, DX, DY, p_out_ga(d(e(Y)), DY)) → p_out_ga(d(e(+(X, Y))), +(DX, DY))
U4_ga(X, Y, DY, DX, p_out_ga(d(e(Y)), DY)) → p_out_ga(d(e(*(X, Y))), +(*(X, DY), *(Y, DX)))
U1_GA(X, Y, p_out_ga(d(e(X)), DX)) → P_IN_GA(d(e(Y)))
P_IN_GA(d(e(+(X, Y)))) → U1_GA(X, Y, p_in_ga(d(e(X))))
P_IN_GA(d(e(+(X, Y)))) → P_IN_GA(d(e(X)))
P_IN_GA(d(e(*(X, Y)))) → U3_GA(X, Y, p_in_ga(d(e(X))))
U3_GA(X, Y, p_out_ga(d(e(X)), DX)) → P_IN_GA(d(e(Y)))
P_IN_GA(d(e(*(X, Y)))) → P_IN_GA(d(e(X)))
p_in_ga(d(e(t))) → p_out_ga(d(e(t)), const)
p_in_ga(d(e(const))) → p_out_ga(d(e(const)), const)
p_in_ga(d(e(+(X, Y)))) → U1_ga(X, Y, p_in_ga(d(e(X))))
p_in_ga(d(e(*(X, Y)))) → U3_ga(X, Y, p_in_ga(d(e(X))))
U1_ga(X, Y, p_out_ga(d(e(X)), DX)) → U2_ga(X, Y, DX, p_in_ga(d(e(Y))))
U3_ga(X, Y, p_out_ga(d(e(X)), DX)) → U4_ga(X, Y, DX, p_in_ga(d(e(Y))))
U2_ga(X, Y, DX, p_out_ga(d(e(Y)), DY)) → p_out_ga(d(e(+(X, Y))), +(DX, DY))
U4_ga(X, Y, DX, p_out_ga(d(e(Y)), DY)) → p_out_ga(d(e(*(X, Y))), +(*(X, DY), *(Y, DX)))
p_in_ga(x0)
U1_ga(x0, x1, x2)
U3_ga(x0, x1, x2)
U2_ga(x0, x1, x2, x3)
U4_ga(x0, x1, x2, x3)
The following pairs can be oriented strictly and are deleted.
The remaining pairs can at least be oriented weakly.
P_IN_GA(d(e(+(X, Y)))) → U1_GA(X, Y, p_in_ga(d(e(X))))
P_IN_GA(d(e(+(X, Y)))) → P_IN_GA(d(e(X)))
POL(*(x1, x2)) = x1 + x2
POL(+(x1, x2)) = 1 + x1 + x2
POL(P_IN_GA(x1)) = x1
POL(U1_GA(x1, x2, x3)) = x1 + x2
POL(U1_ga(x1, x2, x3)) = 0
POL(U2_ga(x1, x2, x3, x4)) = 0
POL(U3_GA(x1, x2, x3)) = x2
POL(U3_ga(x1, x2, x3)) = 0
POL(U4_ga(x1, x2, x3, x4)) = 0
POL(const) = 0
POL(d(x1)) = x1
POL(e(x1)) = x1
POL(p_in_ga(x1)) = 0
POL(p_out_ga(x1, x2)) = 0
POL(t) = 0
U1_GA(X, Y, p_out_ga(d(e(X)), DX)) → P_IN_GA(d(e(Y)))
P_IN_GA(d(e(*(X, Y)))) → U3_GA(X, Y, p_in_ga(d(e(X))))
U3_GA(X, Y, p_out_ga(d(e(X)), DX)) → P_IN_GA(d(e(Y)))
P_IN_GA(d(e(*(X, Y)))) → P_IN_GA(d(e(X)))
p_in_ga(d(e(t))) → p_out_ga(d(e(t)), const)
p_in_ga(d(e(const))) → p_out_ga(d(e(const)), const)
p_in_ga(d(e(+(X, Y)))) → U1_ga(X, Y, p_in_ga(d(e(X))))
p_in_ga(d(e(*(X, Y)))) → U3_ga(X, Y, p_in_ga(d(e(X))))
U1_ga(X, Y, p_out_ga(d(e(X)), DX)) → U2_ga(X, Y, DX, p_in_ga(d(e(Y))))
U3_ga(X, Y, p_out_ga(d(e(X)), DX)) → U4_ga(X, Y, DX, p_in_ga(d(e(Y))))
U2_ga(X, Y, DX, p_out_ga(d(e(Y)), DY)) → p_out_ga(d(e(+(X, Y))), +(DX, DY))
U4_ga(X, Y, DX, p_out_ga(d(e(Y)), DY)) → p_out_ga(d(e(*(X, Y))), +(*(X, DY), *(Y, DX)))
p_in_ga(x0)
U1_ga(x0, x1, x2)
U3_ga(x0, x1, x2)
U2_ga(x0, x1, x2, x3)
U4_ga(x0, x1, x2, x3)
U3_GA(X, Y, p_out_ga(d(e(X)), DX)) → P_IN_GA(d(e(Y)))
P_IN_GA(d(e(*(X, Y)))) → U3_GA(X, Y, p_in_ga(d(e(X))))
P_IN_GA(d(e(*(X, Y)))) → P_IN_GA(d(e(X)))
p_in_ga(d(e(t))) → p_out_ga(d(e(t)), const)
p_in_ga(d(e(const))) → p_out_ga(d(e(const)), const)
p_in_ga(d(e(+(X, Y)))) → U1_ga(X, Y, p_in_ga(d(e(X))))
p_in_ga(d(e(*(X, Y)))) → U3_ga(X, Y, p_in_ga(d(e(X))))
U1_ga(X, Y, p_out_ga(d(e(X)), DX)) → U2_ga(X, Y, DX, p_in_ga(d(e(Y))))
U3_ga(X, Y, p_out_ga(d(e(X)), DX)) → U4_ga(X, Y, DX, p_in_ga(d(e(Y))))
U2_ga(X, Y, DX, p_out_ga(d(e(Y)), DY)) → p_out_ga(d(e(+(X, Y))), +(DX, DY))
U4_ga(X, Y, DX, p_out_ga(d(e(Y)), DY)) → p_out_ga(d(e(*(X, Y))), +(*(X, DY), *(Y, DX)))
p_in_ga(x0)
U1_ga(x0, x1, x2)
U3_ga(x0, x1, x2)
U2_ga(x0, x1, x2, x3)
U4_ga(x0, x1, x2, x3)
The following pairs can be oriented strictly and are deleted.
The remaining pairs can at least be oriented weakly.
P_IN_GA(d(e(*(X, Y)))) → U3_GA(X, Y, p_in_ga(d(e(X))))
P_IN_GA(d(e(*(X, Y)))) → P_IN_GA(d(e(X)))
POL(*(x1, x2)) = 1 + x1 + x2
POL(+(x1, x2)) = 0
POL(P_IN_GA(x1)) = x1
POL(U1_ga(x1, x2, x3)) = 0
POL(U2_ga(x1, x2, x3, x4)) = 0
POL(U3_GA(x1, x2, x3)) = x2
POL(U3_ga(x1, x2, x3)) = 0
POL(U4_ga(x1, x2, x3, x4)) = 0
POL(const) = 0
POL(d(x1)) = x1
POL(e(x1)) = x1
POL(p_in_ga(x1)) = 0
POL(p_out_ga(x1, x2)) = 0
POL(t) = 0
U3_GA(X, Y, p_out_ga(d(e(X)), DX)) → P_IN_GA(d(e(Y)))
p_in_ga(d(e(t))) → p_out_ga(d(e(t)), const)
p_in_ga(d(e(const))) → p_out_ga(d(e(const)), const)
p_in_ga(d(e(+(X, Y)))) → U1_ga(X, Y, p_in_ga(d(e(X))))
p_in_ga(d(e(*(X, Y)))) → U3_ga(X, Y, p_in_ga(d(e(X))))
U1_ga(X, Y, p_out_ga(d(e(X)), DX)) → U2_ga(X, Y, DX, p_in_ga(d(e(Y))))
U3_ga(X, Y, p_out_ga(d(e(X)), DX)) → U4_ga(X, Y, DX, p_in_ga(d(e(Y))))
U2_ga(X, Y, DX, p_out_ga(d(e(Y)), DY)) → p_out_ga(d(e(+(X, Y))), +(DX, DY))
U4_ga(X, Y, DX, p_out_ga(d(e(Y)), DY)) → p_out_ga(d(e(*(X, Y))), +(*(X, DY), *(Y, DX)))
p_in_ga(x0)
U1_ga(x0, x1, x2)
U3_ga(x0, x1, x2)
U2_ga(x0, x1, x2, x3)
U4_ga(x0, x1, x2, x3)
P_IN_AA(d(d(X)), DDX) → P_IN_AA(d(X), DX)
p_in_ag(d(e(t)), const(1)) → p_out_ag(d(e(t)), const(1))
p_in_ag(d(e(const(A))), const(0)) → p_out_ag(d(e(const(A))), const(0))
p_in_ag(d(e(+(X, Y))), +(DX, DY)) → U1_ag(X, Y, DX, DY, p_in_ag(d(e(X)), DX))
p_in_ag(d(e(*(X, Y))), +(*(X, DY), *(Y, DX))) → U3_ag(X, Y, DY, DX, p_in_gg(d(e(X)), DX))
p_in_gg(d(e(t)), const(1)) → p_out_gg(d(e(t)), const(1))
p_in_gg(d(e(const(A))), const(0)) → p_out_gg(d(e(const(A))), const(0))
p_in_gg(d(e(+(X, Y))), +(DX, DY)) → U1_gg(X, Y, DX, DY, p_in_gg(d(e(X)), DX))
p_in_gg(d(e(*(X, Y))), +(*(X, DY), *(Y, DX))) → U3_gg(X, Y, DY, DX, p_in_gg(d(e(X)), DX))
p_in_gg(d(d(X)), DDX) → U5_gg(X, DDX, p_in_ga(d(X), DX))
p_in_ga(d(e(t)), const(1)) → p_out_ga(d(e(t)), const(1))
p_in_ga(d(e(const(A))), const(0)) → p_out_ga(d(e(const(A))), const(0))
p_in_ga(d(e(+(X, Y))), +(DX, DY)) → U1_ga(X, Y, DX, DY, p_in_ga(d(e(X)), DX))
p_in_ga(d(e(*(X, Y))), +(*(X, DY), *(Y, DX))) → U3_ga(X, Y, DY, DX, p_in_ga(d(e(X)), DX))
p_in_ga(d(d(X)), DDX) → U5_ga(X, DDX, p_in_ga(d(X), DX))
U5_ga(X, DDX, p_out_ga(d(X), DX)) → U6_ga(X, DDX, DX, p_in_ga(d(e(DX)), DDX))
U6_ga(X, DDX, DX, p_out_ga(d(e(DX)), DDX)) → p_out_ga(d(d(X)), DDX)
U3_ga(X, Y, DY, DX, p_out_ga(d(e(X)), DX)) → U4_ga(X, Y, DY, DX, p_in_ga(d(e(Y)), DY))
U4_ga(X, Y, DY, DX, p_out_ga(d(e(Y)), DY)) → p_out_ga(d(e(*(X, Y))), +(*(X, DY), *(Y, DX)))
U1_ga(X, Y, DX, DY, p_out_ga(d(e(X)), DX)) → U2_ga(X, Y, DX, DY, p_in_ga(d(e(Y)), DY))
U2_ga(X, Y, DX, DY, p_out_ga(d(e(Y)), DY)) → p_out_ga(d(e(+(X, Y))), +(DX, DY))
U5_gg(X, DDX, p_out_ga(d(X), DX)) → U6_gg(X, DDX, DX, p_in_gg(d(e(DX)), DDX))
U6_gg(X, DDX, DX, p_out_gg(d(e(DX)), DDX)) → p_out_gg(d(d(X)), DDX)
U3_gg(X, Y, DY, DX, p_out_gg(d(e(X)), DX)) → U4_gg(X, Y, DY, DX, p_in_gg(d(e(Y)), DY))
U4_gg(X, Y, DY, DX, p_out_gg(d(e(Y)), DY)) → p_out_gg(d(e(*(X, Y))), +(*(X, DY), *(Y, DX)))
U1_gg(X, Y, DX, DY, p_out_gg(d(e(X)), DX)) → U2_gg(X, Y, DX, DY, p_in_gg(d(e(Y)), DY))
U2_gg(X, Y, DX, DY, p_out_gg(d(e(Y)), DY)) → p_out_gg(d(e(+(X, Y))), +(DX, DY))
U3_ag(X, Y, DY, DX, p_out_gg(d(e(X)), DX)) → U4_ag(X, Y, DY, DX, p_in_gg(d(e(Y)), DY))
U4_ag(X, Y, DY, DX, p_out_gg(d(e(Y)), DY)) → p_out_ag(d(e(*(X, Y))), +(*(X, DY), *(Y, DX)))
p_in_ag(d(d(X)), DDX) → U5_ag(X, DDX, p_in_aa(d(X), DX))
p_in_aa(d(e(t)), const(1)) → p_out_aa(d(e(t)), const(1))
p_in_aa(d(e(const(A))), const(0)) → p_out_aa(d(e(const(A))), const(0))
p_in_aa(d(e(+(X, Y))), +(DX, DY)) → U1_aa(X, Y, DX, DY, p_in_aa(d(e(X)), DX))
p_in_aa(d(e(*(X, Y))), +(*(X, DY), *(Y, DX))) → U3_aa(X, Y, DY, DX, p_in_aa(d(e(X)), DX))
p_in_aa(d(d(X)), DDX) → U5_aa(X, DDX, p_in_aa(d(X), DX))
U5_aa(X, DDX, p_out_aa(d(X), DX)) → U6_aa(X, DDX, DX, p_in_ga(d(e(DX)), DDX))
U6_aa(X, DDX, DX, p_out_ga(d(e(DX)), DDX)) → p_out_aa(d(d(X)), DDX)
U3_aa(X, Y, DY, DX, p_out_aa(d(e(X)), DX)) → U4_aa(X, Y, DY, DX, p_in_aa(d(e(Y)), DY))
U4_aa(X, Y, DY, DX, p_out_aa(d(e(Y)), DY)) → p_out_aa(d(e(*(X, Y))), +(*(X, DY), *(Y, DX)))
U1_aa(X, Y, DX, DY, p_out_aa(d(e(X)), DX)) → U2_aa(X, Y, DX, DY, p_in_aa(d(e(Y)), DY))
U2_aa(X, Y, DX, DY, p_out_aa(d(e(Y)), DY)) → p_out_aa(d(e(+(X, Y))), +(DX, DY))
U5_ag(X, DDX, p_out_aa(d(X), DX)) → U6_ag(X, DDX, DX, p_in_gg(d(e(DX)), DDX))
U6_ag(X, DDX, DX, p_out_gg(d(e(DX)), DDX)) → p_out_ag(d(d(X)), DDX)
U1_ag(X, Y, DX, DY, p_out_ag(d(e(X)), DX)) → U2_ag(X, Y, DX, DY, p_in_ag(d(e(Y)), DY))
U2_ag(X, Y, DX, DY, p_out_ag(d(e(Y)), DY)) → p_out_ag(d(e(+(X, Y))), +(DX, DY))
P_IN_AA(d(d(X)), DDX) → P_IN_AA(d(X), DX)
P_IN_AA → P_IN_AA
P_IN_GA(d(d(X)), DDX) → P_IN_GA(d(X), DX)
p_in_ag(d(e(t)), const(1)) → p_out_ag(d(e(t)), const(1))
p_in_ag(d(e(const(A))), const(0)) → p_out_ag(d(e(const(A))), const(0))
p_in_ag(d(e(+(X, Y))), +(DX, DY)) → U1_ag(X, Y, DX, DY, p_in_ag(d(e(X)), DX))
p_in_ag(d(e(*(X, Y))), +(*(X, DY), *(Y, DX))) → U3_ag(X, Y, DY, DX, p_in_gg(d(e(X)), DX))
p_in_gg(d(e(t)), const(1)) → p_out_gg(d(e(t)), const(1))
p_in_gg(d(e(const(A))), const(0)) → p_out_gg(d(e(const(A))), const(0))
p_in_gg(d(e(+(X, Y))), +(DX, DY)) → U1_gg(X, Y, DX, DY, p_in_gg(d(e(X)), DX))
p_in_gg(d(e(*(X, Y))), +(*(X, DY), *(Y, DX))) → U3_gg(X, Y, DY, DX, p_in_gg(d(e(X)), DX))
p_in_gg(d(d(X)), DDX) → U5_gg(X, DDX, p_in_ga(d(X), DX))
p_in_ga(d(e(t)), const(1)) → p_out_ga(d(e(t)), const(1))
p_in_ga(d(e(const(A))), const(0)) → p_out_ga(d(e(const(A))), const(0))
p_in_ga(d(e(+(X, Y))), +(DX, DY)) → U1_ga(X, Y, DX, DY, p_in_ga(d(e(X)), DX))
p_in_ga(d(e(*(X, Y))), +(*(X, DY), *(Y, DX))) → U3_ga(X, Y, DY, DX, p_in_ga(d(e(X)), DX))
p_in_ga(d(d(X)), DDX) → U5_ga(X, DDX, p_in_ga(d(X), DX))
U5_ga(X, DDX, p_out_ga(d(X), DX)) → U6_ga(X, DDX, DX, p_in_ga(d(e(DX)), DDX))
U6_ga(X, DDX, DX, p_out_ga(d(e(DX)), DDX)) → p_out_ga(d(d(X)), DDX)
U3_ga(X, Y, DY, DX, p_out_ga(d(e(X)), DX)) → U4_ga(X, Y, DY, DX, p_in_ga(d(e(Y)), DY))
U4_ga(X, Y, DY, DX, p_out_ga(d(e(Y)), DY)) → p_out_ga(d(e(*(X, Y))), +(*(X, DY), *(Y, DX)))
U1_ga(X, Y, DX, DY, p_out_ga(d(e(X)), DX)) → U2_ga(X, Y, DX, DY, p_in_ga(d(e(Y)), DY))
U2_ga(X, Y, DX, DY, p_out_ga(d(e(Y)), DY)) → p_out_ga(d(e(+(X, Y))), +(DX, DY))
U5_gg(X, DDX, p_out_ga(d(X), DX)) → U6_gg(X, DDX, DX, p_in_gg(d(e(DX)), DDX))
U6_gg(X, DDX, DX, p_out_gg(d(e(DX)), DDX)) → p_out_gg(d(d(X)), DDX)
U3_gg(X, Y, DY, DX, p_out_gg(d(e(X)), DX)) → U4_gg(X, Y, DY, DX, p_in_gg(d(e(Y)), DY))
U4_gg(X, Y, DY, DX, p_out_gg(d(e(Y)), DY)) → p_out_gg(d(e(*(X, Y))), +(*(X, DY), *(Y, DX)))
U1_gg(X, Y, DX, DY, p_out_gg(d(e(X)), DX)) → U2_gg(X, Y, DX, DY, p_in_gg(d(e(Y)), DY))
U2_gg(X, Y, DX, DY, p_out_gg(d(e(Y)), DY)) → p_out_gg(d(e(+(X, Y))), +(DX, DY))
U3_ag(X, Y, DY, DX, p_out_gg(d(e(X)), DX)) → U4_ag(X, Y, DY, DX, p_in_gg(d(e(Y)), DY))
U4_ag(X, Y, DY, DX, p_out_gg(d(e(Y)), DY)) → p_out_ag(d(e(*(X, Y))), +(*(X, DY), *(Y, DX)))
p_in_ag(d(d(X)), DDX) → U5_ag(X, DDX, p_in_aa(d(X), DX))
p_in_aa(d(e(t)), const(1)) → p_out_aa(d(e(t)), const(1))
p_in_aa(d(e(const(A))), const(0)) → p_out_aa(d(e(const(A))), const(0))
p_in_aa(d(e(+(X, Y))), +(DX, DY)) → U1_aa(X, Y, DX, DY, p_in_aa(d(e(X)), DX))
p_in_aa(d(e(*(X, Y))), +(*(X, DY), *(Y, DX))) → U3_aa(X, Y, DY, DX, p_in_aa(d(e(X)), DX))
p_in_aa(d(d(X)), DDX) → U5_aa(X, DDX, p_in_aa(d(X), DX))
U5_aa(X, DDX, p_out_aa(d(X), DX)) → U6_aa(X, DDX, DX, p_in_ga(d(e(DX)), DDX))
U6_aa(X, DDX, DX, p_out_ga(d(e(DX)), DDX)) → p_out_aa(d(d(X)), DDX)
U3_aa(X, Y, DY, DX, p_out_aa(d(e(X)), DX)) → U4_aa(X, Y, DY, DX, p_in_aa(d(e(Y)), DY))
U4_aa(X, Y, DY, DX, p_out_aa(d(e(Y)), DY)) → p_out_aa(d(e(*(X, Y))), +(*(X, DY), *(Y, DX)))
U1_aa(X, Y, DX, DY, p_out_aa(d(e(X)), DX)) → U2_aa(X, Y, DX, DY, p_in_aa(d(e(Y)), DY))
U2_aa(X, Y, DX, DY, p_out_aa(d(e(Y)), DY)) → p_out_aa(d(e(+(X, Y))), +(DX, DY))
U5_ag(X, DDX, p_out_aa(d(X), DX)) → U6_ag(X, DDX, DX, p_in_gg(d(e(DX)), DDX))
U6_ag(X, DDX, DX, p_out_gg(d(e(DX)), DDX)) → p_out_ag(d(d(X)), DDX)
U1_ag(X, Y, DX, DY, p_out_ag(d(e(X)), DX)) → U2_ag(X, Y, DX, DY, p_in_ag(d(e(Y)), DY))
U2_ag(X, Y, DX, DY, p_out_ag(d(e(Y)), DY)) → p_out_ag(d(e(+(X, Y))), +(DX, DY))
P_IN_GA(d(d(X)), DDX) → P_IN_GA(d(X), DX)
P_IN_GA(d(d(X))) → P_IN_GA(d(X))
From the DPs we obtained the following set of size-change graphs:
U1_GG(X, Y, DX, DY, p_out_gg(d(e(X)), DX)) → P_IN_GG(d(e(Y)), DY)
P_IN_GG(d(e(+(X, Y))), +(DX, DY)) → U1_GG(X, Y, DX, DY, p_in_gg(d(e(X)), DX))
P_IN_GG(d(e(+(X, Y))), +(DX, DY)) → P_IN_GG(d(e(X)), DX)
P_IN_GG(d(e(*(X, Y))), +(*(X, DY), *(Y, DX))) → U3_GG(X, Y, DY, DX, p_in_gg(d(e(X)), DX))
U3_GG(X, Y, DY, DX, p_out_gg(d(e(X)), DX)) → P_IN_GG(d(e(Y)), DY)
P_IN_GG(d(e(*(X, Y))), +(*(X, DY), *(Y, DX))) → P_IN_GG(d(e(X)), DX)
p_in_ag(d(e(t)), const(1)) → p_out_ag(d(e(t)), const(1))
p_in_ag(d(e(const(A))), const(0)) → p_out_ag(d(e(const(A))), const(0))
p_in_ag(d(e(+(X, Y))), +(DX, DY)) → U1_ag(X, Y, DX, DY, p_in_ag(d(e(X)), DX))
p_in_ag(d(e(*(X, Y))), +(*(X, DY), *(Y, DX))) → U3_ag(X, Y, DY, DX, p_in_gg(d(e(X)), DX))
p_in_gg(d(e(t)), const(1)) → p_out_gg(d(e(t)), const(1))
p_in_gg(d(e(const(A))), const(0)) → p_out_gg(d(e(const(A))), const(0))
p_in_gg(d(e(+(X, Y))), +(DX, DY)) → U1_gg(X, Y, DX, DY, p_in_gg(d(e(X)), DX))
p_in_gg(d(e(*(X, Y))), +(*(X, DY), *(Y, DX))) → U3_gg(X, Y, DY, DX, p_in_gg(d(e(X)), DX))
p_in_gg(d(d(X)), DDX) → U5_gg(X, DDX, p_in_ga(d(X), DX))
p_in_ga(d(e(t)), const(1)) → p_out_ga(d(e(t)), const(1))
p_in_ga(d(e(const(A))), const(0)) → p_out_ga(d(e(const(A))), const(0))
p_in_ga(d(e(+(X, Y))), +(DX, DY)) → U1_ga(X, Y, DX, DY, p_in_ga(d(e(X)), DX))
p_in_ga(d(e(*(X, Y))), +(*(X, DY), *(Y, DX))) → U3_ga(X, Y, DY, DX, p_in_ga(d(e(X)), DX))
p_in_ga(d(d(X)), DDX) → U5_ga(X, DDX, p_in_ga(d(X), DX))
U5_ga(X, DDX, p_out_ga(d(X), DX)) → U6_ga(X, DDX, DX, p_in_ga(d(e(DX)), DDX))
U6_ga(X, DDX, DX, p_out_ga(d(e(DX)), DDX)) → p_out_ga(d(d(X)), DDX)
U3_ga(X, Y, DY, DX, p_out_ga(d(e(X)), DX)) → U4_ga(X, Y, DY, DX, p_in_ga(d(e(Y)), DY))
U4_ga(X, Y, DY, DX, p_out_ga(d(e(Y)), DY)) → p_out_ga(d(e(*(X, Y))), +(*(X, DY), *(Y, DX)))
U1_ga(X, Y, DX, DY, p_out_ga(d(e(X)), DX)) → U2_ga(X, Y, DX, DY, p_in_ga(d(e(Y)), DY))
U2_ga(X, Y, DX, DY, p_out_ga(d(e(Y)), DY)) → p_out_ga(d(e(+(X, Y))), +(DX, DY))
U5_gg(X, DDX, p_out_ga(d(X), DX)) → U6_gg(X, DDX, DX, p_in_gg(d(e(DX)), DDX))
U6_gg(X, DDX, DX, p_out_gg(d(e(DX)), DDX)) → p_out_gg(d(d(X)), DDX)
U3_gg(X, Y, DY, DX, p_out_gg(d(e(X)), DX)) → U4_gg(X, Y, DY, DX, p_in_gg(d(e(Y)), DY))
U4_gg(X, Y, DY, DX, p_out_gg(d(e(Y)), DY)) → p_out_gg(d(e(*(X, Y))), +(*(X, DY), *(Y, DX)))
U1_gg(X, Y, DX, DY, p_out_gg(d(e(X)), DX)) → U2_gg(X, Y, DX, DY, p_in_gg(d(e(Y)), DY))
U2_gg(X, Y, DX, DY, p_out_gg(d(e(Y)), DY)) → p_out_gg(d(e(+(X, Y))), +(DX, DY))
U3_ag(X, Y, DY, DX, p_out_gg(d(e(X)), DX)) → U4_ag(X, Y, DY, DX, p_in_gg(d(e(Y)), DY))
U4_ag(X, Y, DY, DX, p_out_gg(d(e(Y)), DY)) → p_out_ag(d(e(*(X, Y))), +(*(X, DY), *(Y, DX)))
p_in_ag(d(d(X)), DDX) → U5_ag(X, DDX, p_in_aa(d(X), DX))
p_in_aa(d(e(t)), const(1)) → p_out_aa(d(e(t)), const(1))
p_in_aa(d(e(const(A))), const(0)) → p_out_aa(d(e(const(A))), const(0))
p_in_aa(d(e(+(X, Y))), +(DX, DY)) → U1_aa(X, Y, DX, DY, p_in_aa(d(e(X)), DX))
p_in_aa(d(e(*(X, Y))), +(*(X, DY), *(Y, DX))) → U3_aa(X, Y, DY, DX, p_in_aa(d(e(X)), DX))
p_in_aa(d(d(X)), DDX) → U5_aa(X, DDX, p_in_aa(d(X), DX))
U5_aa(X, DDX, p_out_aa(d(X), DX)) → U6_aa(X, DDX, DX, p_in_ga(d(e(DX)), DDX))
U6_aa(X, DDX, DX, p_out_ga(d(e(DX)), DDX)) → p_out_aa(d(d(X)), DDX)
U3_aa(X, Y, DY, DX, p_out_aa(d(e(X)), DX)) → U4_aa(X, Y, DY, DX, p_in_aa(d(e(Y)), DY))
U4_aa(X, Y, DY, DX, p_out_aa(d(e(Y)), DY)) → p_out_aa(d(e(*(X, Y))), +(*(X, DY), *(Y, DX)))
U1_aa(X, Y, DX, DY, p_out_aa(d(e(X)), DX)) → U2_aa(X, Y, DX, DY, p_in_aa(d(e(Y)), DY))
U2_aa(X, Y, DX, DY, p_out_aa(d(e(Y)), DY)) → p_out_aa(d(e(+(X, Y))), +(DX, DY))
U5_ag(X, DDX, p_out_aa(d(X), DX)) → U6_ag(X, DDX, DX, p_in_gg(d(e(DX)), DDX))
U6_ag(X, DDX, DX, p_out_gg(d(e(DX)), DDX)) → p_out_ag(d(d(X)), DDX)
U1_ag(X, Y, DX, DY, p_out_ag(d(e(X)), DX)) → U2_ag(X, Y, DX, DY, p_in_ag(d(e(Y)), DY))
U2_ag(X, Y, DX, DY, p_out_ag(d(e(Y)), DY)) → p_out_ag(d(e(+(X, Y))), +(DX, DY))
U1_GG(X, Y, DX, DY, p_out_gg(d(e(X)), DX)) → P_IN_GG(d(e(Y)), DY)
P_IN_GG(d(e(+(X, Y))), +(DX, DY)) → U1_GG(X, Y, DX, DY, p_in_gg(d(e(X)), DX))
P_IN_GG(d(e(+(X, Y))), +(DX, DY)) → P_IN_GG(d(e(X)), DX)
P_IN_GG(d(e(*(X, Y))), +(*(X, DY), *(Y, DX))) → U3_GG(X, Y, DY, DX, p_in_gg(d(e(X)), DX))
U3_GG(X, Y, DY, DX, p_out_gg(d(e(X)), DX)) → P_IN_GG(d(e(Y)), DY)
P_IN_GG(d(e(*(X, Y))), +(*(X, DY), *(Y, DX))) → P_IN_GG(d(e(X)), DX)
p_in_gg(d(e(t)), const(1)) → p_out_gg(d(e(t)), const(1))
p_in_gg(d(e(const(A))), const(0)) → p_out_gg(d(e(const(A))), const(0))
p_in_gg(d(e(+(X, Y))), +(DX, DY)) → U1_gg(X, Y, DX, DY, p_in_gg(d(e(X)), DX))
p_in_gg(d(e(*(X, Y))), +(*(X, DY), *(Y, DX))) → U3_gg(X, Y, DY, DX, p_in_gg(d(e(X)), DX))
U1_gg(X, Y, DX, DY, p_out_gg(d(e(X)), DX)) → U2_gg(X, Y, DX, DY, p_in_gg(d(e(Y)), DY))
U3_gg(X, Y, DY, DX, p_out_gg(d(e(X)), DX)) → U4_gg(X, Y, DY, DX, p_in_gg(d(e(Y)), DY))
U2_gg(X, Y, DX, DY, p_out_gg(d(e(Y)), DY)) → p_out_gg(d(e(+(X, Y))), +(DX, DY))
U4_gg(X, Y, DY, DX, p_out_gg(d(e(Y)), DY)) → p_out_gg(d(e(*(X, Y))), +(*(X, DY), *(Y, DX)))
U1_GG(X, Y, DX, DY, p_out_gg(d(e(X)), DX)) → P_IN_GG(d(e(Y)), DY)
P_IN_GG(d(e(+(X, Y))), +(DX, DY)) → U1_GG(X, Y, DX, DY, p_in_gg(d(e(X)), DX))
P_IN_GG(d(e(+(X, Y))), +(DX, DY)) → P_IN_GG(d(e(X)), DX)
P_IN_GG(d(e(*(X, Y))), +(*(X, DY), *(Y, DX))) → U3_GG(X, Y, DY, DX, p_in_gg(d(e(X)), DX))
U3_GG(X, Y, DY, DX, p_out_gg(d(e(X)), DX)) → P_IN_GG(d(e(Y)), DY)
P_IN_GG(d(e(*(X, Y))), +(*(X, DY), *(Y, DX))) → P_IN_GG(d(e(X)), DX)
p_in_gg(d(e(t)), const) → p_out_gg(d(e(t)), const)
p_in_gg(d(e(const)), const) → p_out_gg(d(e(const)), const)
p_in_gg(d(e(+(X, Y))), +(DX, DY)) → U1_gg(X, Y, DX, DY, p_in_gg(d(e(X)), DX))
p_in_gg(d(e(*(X, Y))), +(*(X, DY), *(Y, DX))) → U3_gg(X, Y, DY, DX, p_in_gg(d(e(X)), DX))
U1_gg(X, Y, DX, DY, p_out_gg(d(e(X)), DX)) → U2_gg(X, Y, DX, DY, p_in_gg(d(e(Y)), DY))
U3_gg(X, Y, DY, DX, p_out_gg(d(e(X)), DX)) → U4_gg(X, Y, DY, DX, p_in_gg(d(e(Y)), DY))
U2_gg(X, Y, DX, DY, p_out_gg(d(e(Y)), DY)) → p_out_gg(d(e(+(X, Y))), +(DX, DY))
U4_gg(X, Y, DY, DX, p_out_gg(d(e(Y)), DY)) → p_out_gg(d(e(*(X, Y))), +(*(X, DY), *(Y, DX)))
p_in_gg(x0, x1)
U1_gg(x0, x1, x2, x3, x4)
U3_gg(x0, x1, x2, x3, x4)
U2_gg(x0, x1, x2, x3, x4)
U4_gg(x0, x1, x2, x3, x4)
From the DPs we obtained the following set of size-change graphs:
U1_AG(X, Y, DX, DY, p_out_ag(d(e(X)), DX)) → P_IN_AG(d(e(Y)), DY)
P_IN_AG(d(e(+(X, Y))), +(DX, DY)) → U1_AG(X, Y, DX, DY, p_in_ag(d(e(X)), DX))
P_IN_AG(d(e(+(X, Y))), +(DX, DY)) → P_IN_AG(d(e(X)), DX)
p_in_ag(d(e(t)), const(1)) → p_out_ag(d(e(t)), const(1))
p_in_ag(d(e(const(A))), const(0)) → p_out_ag(d(e(const(A))), const(0))
p_in_ag(d(e(+(X, Y))), +(DX, DY)) → U1_ag(X, Y, DX, DY, p_in_ag(d(e(X)), DX))
p_in_ag(d(e(*(X, Y))), +(*(X, DY), *(Y, DX))) → U3_ag(X, Y, DY, DX, p_in_gg(d(e(X)), DX))
p_in_gg(d(e(t)), const(1)) → p_out_gg(d(e(t)), const(1))
p_in_gg(d(e(const(A))), const(0)) → p_out_gg(d(e(const(A))), const(0))
p_in_gg(d(e(+(X, Y))), +(DX, DY)) → U1_gg(X, Y, DX, DY, p_in_gg(d(e(X)), DX))
p_in_gg(d(e(*(X, Y))), +(*(X, DY), *(Y, DX))) → U3_gg(X, Y, DY, DX, p_in_gg(d(e(X)), DX))
p_in_gg(d(d(X)), DDX) → U5_gg(X, DDX, p_in_ga(d(X), DX))
p_in_ga(d(e(t)), const(1)) → p_out_ga(d(e(t)), const(1))
p_in_ga(d(e(const(A))), const(0)) → p_out_ga(d(e(const(A))), const(0))
p_in_ga(d(e(+(X, Y))), +(DX, DY)) → U1_ga(X, Y, DX, DY, p_in_ga(d(e(X)), DX))
p_in_ga(d(e(*(X, Y))), +(*(X, DY), *(Y, DX))) → U3_ga(X, Y, DY, DX, p_in_ga(d(e(X)), DX))
p_in_ga(d(d(X)), DDX) → U5_ga(X, DDX, p_in_ga(d(X), DX))
U5_ga(X, DDX, p_out_ga(d(X), DX)) → U6_ga(X, DDX, DX, p_in_ga(d(e(DX)), DDX))
U6_ga(X, DDX, DX, p_out_ga(d(e(DX)), DDX)) → p_out_ga(d(d(X)), DDX)
U3_ga(X, Y, DY, DX, p_out_ga(d(e(X)), DX)) → U4_ga(X, Y, DY, DX, p_in_ga(d(e(Y)), DY))
U4_ga(X, Y, DY, DX, p_out_ga(d(e(Y)), DY)) → p_out_ga(d(e(*(X, Y))), +(*(X, DY), *(Y, DX)))
U1_ga(X, Y, DX, DY, p_out_ga(d(e(X)), DX)) → U2_ga(X, Y, DX, DY, p_in_ga(d(e(Y)), DY))
U2_ga(X, Y, DX, DY, p_out_ga(d(e(Y)), DY)) → p_out_ga(d(e(+(X, Y))), +(DX, DY))
U5_gg(X, DDX, p_out_ga(d(X), DX)) → U6_gg(X, DDX, DX, p_in_gg(d(e(DX)), DDX))
U6_gg(X, DDX, DX, p_out_gg(d(e(DX)), DDX)) → p_out_gg(d(d(X)), DDX)
U3_gg(X, Y, DY, DX, p_out_gg(d(e(X)), DX)) → U4_gg(X, Y, DY, DX, p_in_gg(d(e(Y)), DY))
U4_gg(X, Y, DY, DX, p_out_gg(d(e(Y)), DY)) → p_out_gg(d(e(*(X, Y))), +(*(X, DY), *(Y, DX)))
U1_gg(X, Y, DX, DY, p_out_gg(d(e(X)), DX)) → U2_gg(X, Y, DX, DY, p_in_gg(d(e(Y)), DY))
U2_gg(X, Y, DX, DY, p_out_gg(d(e(Y)), DY)) → p_out_gg(d(e(+(X, Y))), +(DX, DY))
U3_ag(X, Y, DY, DX, p_out_gg(d(e(X)), DX)) → U4_ag(X, Y, DY, DX, p_in_gg(d(e(Y)), DY))
U4_ag(X, Y, DY, DX, p_out_gg(d(e(Y)), DY)) → p_out_ag(d(e(*(X, Y))), +(*(X, DY), *(Y, DX)))
p_in_ag(d(d(X)), DDX) → U5_ag(X, DDX, p_in_aa(d(X), DX))
p_in_aa(d(e(t)), const(1)) → p_out_aa(d(e(t)), const(1))
p_in_aa(d(e(const(A))), const(0)) → p_out_aa(d(e(const(A))), const(0))
p_in_aa(d(e(+(X, Y))), +(DX, DY)) → U1_aa(X, Y, DX, DY, p_in_aa(d(e(X)), DX))
p_in_aa(d(e(*(X, Y))), +(*(X, DY), *(Y, DX))) → U3_aa(X, Y, DY, DX, p_in_aa(d(e(X)), DX))
p_in_aa(d(d(X)), DDX) → U5_aa(X, DDX, p_in_aa(d(X), DX))
U5_aa(X, DDX, p_out_aa(d(X), DX)) → U6_aa(X, DDX, DX, p_in_ga(d(e(DX)), DDX))
U6_aa(X, DDX, DX, p_out_ga(d(e(DX)), DDX)) → p_out_aa(d(d(X)), DDX)
U3_aa(X, Y, DY, DX, p_out_aa(d(e(X)), DX)) → U4_aa(X, Y, DY, DX, p_in_aa(d(e(Y)), DY))
U4_aa(X, Y, DY, DX, p_out_aa(d(e(Y)), DY)) → p_out_aa(d(e(*(X, Y))), +(*(X, DY), *(Y, DX)))
U1_aa(X, Y, DX, DY, p_out_aa(d(e(X)), DX)) → U2_aa(X, Y, DX, DY, p_in_aa(d(e(Y)), DY))
U2_aa(X, Y, DX, DY, p_out_aa(d(e(Y)), DY)) → p_out_aa(d(e(+(X, Y))), +(DX, DY))
U5_ag(X, DDX, p_out_aa(d(X), DX)) → U6_ag(X, DDX, DX, p_in_gg(d(e(DX)), DDX))
U6_ag(X, DDX, DX, p_out_gg(d(e(DX)), DDX)) → p_out_ag(d(d(X)), DDX)
U1_ag(X, Y, DX, DY, p_out_ag(d(e(X)), DX)) → U2_ag(X, Y, DX, DY, p_in_ag(d(e(Y)), DY))
U2_ag(X, Y, DX, DY, p_out_ag(d(e(Y)), DY)) → p_out_ag(d(e(+(X, Y))), +(DX, DY))
U1_AG(X, Y, DX, DY, p_out_ag(d(e(X)), DX)) → P_IN_AG(d(e(Y)), DY)
P_IN_AG(d(e(+(X, Y))), +(DX, DY)) → U1_AG(X, Y, DX, DY, p_in_ag(d(e(X)), DX))
P_IN_AG(d(e(+(X, Y))), +(DX, DY)) → P_IN_AG(d(e(X)), DX)
p_in_ag(d(e(t)), const(1)) → p_out_ag(d(e(t)), const(1))
p_in_ag(d(e(const(A))), const(0)) → p_out_ag(d(e(const(A))), const(0))
p_in_ag(d(e(+(X, Y))), +(DX, DY)) → U1_ag(X, Y, DX, DY, p_in_ag(d(e(X)), DX))
p_in_ag(d(e(*(X, Y))), +(*(X, DY), *(Y, DX))) → U3_ag(X, Y, DY, DX, p_in_gg(d(e(X)), DX))
U1_ag(X, Y, DX, DY, p_out_ag(d(e(X)), DX)) → U2_ag(X, Y, DX, DY, p_in_ag(d(e(Y)), DY))
U3_ag(X, Y, DY, DX, p_out_gg(d(e(X)), DX)) → U4_ag(X, Y, DY, DX, p_in_gg(d(e(Y)), DY))
U2_ag(X, Y, DX, DY, p_out_ag(d(e(Y)), DY)) → p_out_ag(d(e(+(X, Y))), +(DX, DY))
p_in_gg(d(e(t)), const(1)) → p_out_gg(d(e(t)), const(1))
p_in_gg(d(e(const(A))), const(0)) → p_out_gg(d(e(const(A))), const(0))
p_in_gg(d(e(+(X, Y))), +(DX, DY)) → U1_gg(X, Y, DX, DY, p_in_gg(d(e(X)), DX))
p_in_gg(d(e(*(X, Y))), +(*(X, DY), *(Y, DX))) → U3_gg(X, Y, DY, DX, p_in_gg(d(e(X)), DX))
U4_ag(X, Y, DY, DX, p_out_gg(d(e(Y)), DY)) → p_out_ag(d(e(*(X, Y))), +(*(X, DY), *(Y, DX)))
U1_gg(X, Y, DX, DY, p_out_gg(d(e(X)), DX)) → U2_gg(X, Y, DX, DY, p_in_gg(d(e(Y)), DY))
U3_gg(X, Y, DY, DX, p_out_gg(d(e(X)), DX)) → U4_gg(X, Y, DY, DX, p_in_gg(d(e(Y)), DY))
U2_gg(X, Y, DX, DY, p_out_gg(d(e(Y)), DY)) → p_out_gg(d(e(+(X, Y))), +(DX, DY))
U4_gg(X, Y, DY, DX, p_out_gg(d(e(Y)), DY)) → p_out_gg(d(e(*(X, Y))), +(*(X, DY), *(Y, DX)))
U1_AG(DX, DY, p_out_ag(d(e(X)), DX)) → P_IN_AG(DY)
P_IN_AG(+(DX, DY)) → U1_AG(DX, DY, p_in_ag(DX))
P_IN_AG(+(DX, DY)) → P_IN_AG(DX)
p_in_ag(const) → p_out_ag(d(e(t)), const)
p_in_ag(const) → p_out_ag(d(e(const)), const)
p_in_ag(+(DX, DY)) → U1_ag(DX, DY, p_in_ag(DX))
p_in_ag(+(*(X, DY), *(Y, DX))) → U3_ag(X, Y, DY, DX, p_in_gg(d(e(X)), DX))
U1_ag(DX, DY, p_out_ag(d(e(X)), DX)) → U2_ag(X, DX, DY, p_in_ag(DY))
U3_ag(X, Y, DY, DX, p_out_gg(d(e(X)), DX)) → U4_ag(X, Y, DY, DX, p_in_gg(d(e(Y)), DY))
U2_ag(X, DX, DY, p_out_ag(d(e(Y)), DY)) → p_out_ag(d(e(+(X, Y))), +(DX, DY))
p_in_gg(d(e(t)), const) → p_out_gg(d(e(t)), const)
p_in_gg(d(e(const)), const) → p_out_gg(d(e(const)), const)
p_in_gg(d(e(+(X, Y))), +(DX, DY)) → U1_gg(X, Y, DX, DY, p_in_gg(d(e(X)), DX))
p_in_gg(d(e(*(X, Y))), +(*(X, DY), *(Y, DX))) → U3_gg(X, Y, DY, DX, p_in_gg(d(e(X)), DX))
U4_ag(X, Y, DY, DX, p_out_gg(d(e(Y)), DY)) → p_out_ag(d(e(*(X, Y))), +(*(X, DY), *(Y, DX)))
U1_gg(X, Y, DX, DY, p_out_gg(d(e(X)), DX)) → U2_gg(X, Y, DX, DY, p_in_gg(d(e(Y)), DY))
U3_gg(X, Y, DY, DX, p_out_gg(d(e(X)), DX)) → U4_gg(X, Y, DY, DX, p_in_gg(d(e(Y)), DY))
U2_gg(X, Y, DX, DY, p_out_gg(d(e(Y)), DY)) → p_out_gg(d(e(+(X, Y))), +(DX, DY))
U4_gg(X, Y, DY, DX, p_out_gg(d(e(Y)), DY)) → p_out_gg(d(e(*(X, Y))), +(*(X, DY), *(Y, DX)))
p_in_ag(x0)
U1_ag(x0, x1, x2)
U3_ag(x0, x1, x2, x3, x4)
U2_ag(x0, x1, x2, x3)
p_in_gg(x0, x1)
U4_ag(x0, x1, x2, x3, x4)
U1_gg(x0, x1, x2, x3, x4)
U3_gg(x0, x1, x2, x3, x4)
U2_gg(x0, x1, x2, x3, x4)
U4_gg(x0, x1, x2, x3, x4)
From the DPs we obtained the following set of size-change graphs: