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 QDPSizeChangeProof (⇔)
↳13 TRUE
↳14 PiDP
↳15 UsableRulesProof (⇔)
↳16 PiDP
↳17 PiDPToQDPProof (⇐)
↳18 QDP
↳19 QDPSizeChangeProof (⇔)
↳20 TRUE
↳21 PrologToPiTRSProof (⇐)
↳22 PiTRS
↳23 DependencyPairsProof (⇔)
↳24 PiDP
↳25 DependencyGraphProof (⇔)
↳26 AND
↳27 PiDP
↳28 UsableRulesProof (⇔)
↳29 PiDP
↳30 PiDPToQDPProof (⇐)
↳31 QDP
↳32 QDPSizeChangeProof (⇔)
↳33 TRUE
↳34 PiDP
↳35 UsableRulesProof (⇔)
↳36 PiDP
transpose_in_ga(A, B) → U1_ga(A, B, transpose_aux_in_gga(A, [], B))
transpose_aux_in_gga(.(R, Rs), X1, .(C, Cs)) → U2_gga(R, Rs, X1, C, Cs, row2col_in_gaaga(R, .(C, Cs), Cols1, [], Accm))
row2col_in_gaaga(.(X, Xs), .(.(X, Ys), Cols), .(Ys, Cols1), A, B) → U4_gaaga(X, Xs, Ys, Cols, Cols1, A, B, row2col_in_gaaga(Xs, Cols, Cols1, .([], A), B))
row2col_in_gaaga([], [], [], A, A) → row2col_out_gaaga([], [], [], A, A)
U4_gaaga(X, Xs, Ys, Cols, Cols1, A, B, row2col_out_gaaga(Xs, Cols, Cols1, .([], A), B)) → row2col_out_gaaga(.(X, Xs), .(.(X, Ys), Cols), .(Ys, Cols1), A, B)
U2_gga(R, Rs, X1, C, Cs, row2col_out_gaaga(R, .(C, Cs), Cols1, [], Accm)) → U3_gga(R, Rs, X1, C, Cs, transpose_aux_in_gga(Rs, Accm, Cols1))
transpose_aux_in_gga([], X, X) → transpose_aux_out_gga([], X, X)
U3_gga(R, Rs, X1, C, Cs, transpose_aux_out_gga(Rs, Accm, Cols1)) → transpose_aux_out_gga(.(R, Rs), X1, .(C, Cs))
U1_ga(A, B, transpose_aux_out_gga(A, [], B)) → transpose_out_ga(A, B)
Infinitary Constructor Rewriting Termination of PiTRS implies Termination of Prolog
transpose_in_ga(A, B) → U1_ga(A, B, transpose_aux_in_gga(A, [], B))
transpose_aux_in_gga(.(R, Rs), X1, .(C, Cs)) → U2_gga(R, Rs, X1, C, Cs, row2col_in_gaaga(R, .(C, Cs), Cols1, [], Accm))
row2col_in_gaaga(.(X, Xs), .(.(X, Ys), Cols), .(Ys, Cols1), A, B) → U4_gaaga(X, Xs, Ys, Cols, Cols1, A, B, row2col_in_gaaga(Xs, Cols, Cols1, .([], A), B))
row2col_in_gaaga([], [], [], A, A) → row2col_out_gaaga([], [], [], A, A)
U4_gaaga(X, Xs, Ys, Cols, Cols1, A, B, row2col_out_gaaga(Xs, Cols, Cols1, .([], A), B)) → row2col_out_gaaga(.(X, Xs), .(.(X, Ys), Cols), .(Ys, Cols1), A, B)
U2_gga(R, Rs, X1, C, Cs, row2col_out_gaaga(R, .(C, Cs), Cols1, [], Accm)) → U3_gga(R, Rs, X1, C, Cs, transpose_aux_in_gga(Rs, Accm, Cols1))
transpose_aux_in_gga([], X, X) → transpose_aux_out_gga([], X, X)
U3_gga(R, Rs, X1, C, Cs, transpose_aux_out_gga(Rs, Accm, Cols1)) → transpose_aux_out_gga(.(R, Rs), X1, .(C, Cs))
U1_ga(A, B, transpose_aux_out_gga(A, [], B)) → transpose_out_ga(A, B)
TRANSPOSE_IN_GA(A, B) → U1_GA(A, B, transpose_aux_in_gga(A, [], B))
TRANSPOSE_IN_GA(A, B) → TRANSPOSE_AUX_IN_GGA(A, [], B)
TRANSPOSE_AUX_IN_GGA(.(R, Rs), X1, .(C, Cs)) → U2_GGA(R, Rs, X1, C, Cs, row2col_in_gaaga(R, .(C, Cs), Cols1, [], Accm))
TRANSPOSE_AUX_IN_GGA(.(R, Rs), X1, .(C, Cs)) → ROW2COL_IN_GAAGA(R, .(C, Cs), Cols1, [], Accm)
ROW2COL_IN_GAAGA(.(X, Xs), .(.(X, Ys), Cols), .(Ys, Cols1), A, B) → U4_GAAGA(X, Xs, Ys, Cols, Cols1, A, B, row2col_in_gaaga(Xs, Cols, Cols1, .([], A), B))
ROW2COL_IN_GAAGA(.(X, Xs), .(.(X, Ys), Cols), .(Ys, Cols1), A, B) → ROW2COL_IN_GAAGA(Xs, Cols, Cols1, .([], A), B)
U2_GGA(R, Rs, X1, C, Cs, row2col_out_gaaga(R, .(C, Cs), Cols1, [], Accm)) → U3_GGA(R, Rs, X1, C, Cs, transpose_aux_in_gga(Rs, Accm, Cols1))
U2_GGA(R, Rs, X1, C, Cs, row2col_out_gaaga(R, .(C, Cs), Cols1, [], Accm)) → TRANSPOSE_AUX_IN_GGA(Rs, Accm, Cols1)
transpose_in_ga(A, B) → U1_ga(A, B, transpose_aux_in_gga(A, [], B))
transpose_aux_in_gga(.(R, Rs), X1, .(C, Cs)) → U2_gga(R, Rs, X1, C, Cs, row2col_in_gaaga(R, .(C, Cs), Cols1, [], Accm))
row2col_in_gaaga(.(X, Xs), .(.(X, Ys), Cols), .(Ys, Cols1), A, B) → U4_gaaga(X, Xs, Ys, Cols, Cols1, A, B, row2col_in_gaaga(Xs, Cols, Cols1, .([], A), B))
row2col_in_gaaga([], [], [], A, A) → row2col_out_gaaga([], [], [], A, A)
U4_gaaga(X, Xs, Ys, Cols, Cols1, A, B, row2col_out_gaaga(Xs, Cols, Cols1, .([], A), B)) → row2col_out_gaaga(.(X, Xs), .(.(X, Ys), Cols), .(Ys, Cols1), A, B)
U2_gga(R, Rs, X1, C, Cs, row2col_out_gaaga(R, .(C, Cs), Cols1, [], Accm)) → U3_gga(R, Rs, X1, C, Cs, transpose_aux_in_gga(Rs, Accm, Cols1))
transpose_aux_in_gga([], X, X) → transpose_aux_out_gga([], X, X)
U3_gga(R, Rs, X1, C, Cs, transpose_aux_out_gga(Rs, Accm, Cols1)) → transpose_aux_out_gga(.(R, Rs), X1, .(C, Cs))
U1_ga(A, B, transpose_aux_out_gga(A, [], B)) → transpose_out_ga(A, B)
TRANSPOSE_IN_GA(A, B) → U1_GA(A, B, transpose_aux_in_gga(A, [], B))
TRANSPOSE_IN_GA(A, B) → TRANSPOSE_AUX_IN_GGA(A, [], B)
TRANSPOSE_AUX_IN_GGA(.(R, Rs), X1, .(C, Cs)) → U2_GGA(R, Rs, X1, C, Cs, row2col_in_gaaga(R, .(C, Cs), Cols1, [], Accm))
TRANSPOSE_AUX_IN_GGA(.(R, Rs), X1, .(C, Cs)) → ROW2COL_IN_GAAGA(R, .(C, Cs), Cols1, [], Accm)
ROW2COL_IN_GAAGA(.(X, Xs), .(.(X, Ys), Cols), .(Ys, Cols1), A, B) → U4_GAAGA(X, Xs, Ys, Cols, Cols1, A, B, row2col_in_gaaga(Xs, Cols, Cols1, .([], A), B))
ROW2COL_IN_GAAGA(.(X, Xs), .(.(X, Ys), Cols), .(Ys, Cols1), A, B) → ROW2COL_IN_GAAGA(Xs, Cols, Cols1, .([], A), B)
U2_GGA(R, Rs, X1, C, Cs, row2col_out_gaaga(R, .(C, Cs), Cols1, [], Accm)) → U3_GGA(R, Rs, X1, C, Cs, transpose_aux_in_gga(Rs, Accm, Cols1))
U2_GGA(R, Rs, X1, C, Cs, row2col_out_gaaga(R, .(C, Cs), Cols1, [], Accm)) → TRANSPOSE_AUX_IN_GGA(Rs, Accm, Cols1)
transpose_in_ga(A, B) → U1_ga(A, B, transpose_aux_in_gga(A, [], B))
transpose_aux_in_gga(.(R, Rs), X1, .(C, Cs)) → U2_gga(R, Rs, X1, C, Cs, row2col_in_gaaga(R, .(C, Cs), Cols1, [], Accm))
row2col_in_gaaga(.(X, Xs), .(.(X, Ys), Cols), .(Ys, Cols1), A, B) → U4_gaaga(X, Xs, Ys, Cols, Cols1, A, B, row2col_in_gaaga(Xs, Cols, Cols1, .([], A), B))
row2col_in_gaaga([], [], [], A, A) → row2col_out_gaaga([], [], [], A, A)
U4_gaaga(X, Xs, Ys, Cols, Cols1, A, B, row2col_out_gaaga(Xs, Cols, Cols1, .([], A), B)) → row2col_out_gaaga(.(X, Xs), .(.(X, Ys), Cols), .(Ys, Cols1), A, B)
U2_gga(R, Rs, X1, C, Cs, row2col_out_gaaga(R, .(C, Cs), Cols1, [], Accm)) → U3_gga(R, Rs, X1, C, Cs, transpose_aux_in_gga(Rs, Accm, Cols1))
transpose_aux_in_gga([], X, X) → transpose_aux_out_gga([], X, X)
U3_gga(R, Rs, X1, C, Cs, transpose_aux_out_gga(Rs, Accm, Cols1)) → transpose_aux_out_gga(.(R, Rs), X1, .(C, Cs))
U1_ga(A, B, transpose_aux_out_gga(A, [], B)) → transpose_out_ga(A, B)
ROW2COL_IN_GAAGA(.(X, Xs), .(.(X, Ys), Cols), .(Ys, Cols1), A, B) → ROW2COL_IN_GAAGA(Xs, Cols, Cols1, .([], A), B)
transpose_in_ga(A, B) → U1_ga(A, B, transpose_aux_in_gga(A, [], B))
transpose_aux_in_gga(.(R, Rs), X1, .(C, Cs)) → U2_gga(R, Rs, X1, C, Cs, row2col_in_gaaga(R, .(C, Cs), Cols1, [], Accm))
row2col_in_gaaga(.(X, Xs), .(.(X, Ys), Cols), .(Ys, Cols1), A, B) → U4_gaaga(X, Xs, Ys, Cols, Cols1, A, B, row2col_in_gaaga(Xs, Cols, Cols1, .([], A), B))
row2col_in_gaaga([], [], [], A, A) → row2col_out_gaaga([], [], [], A, A)
U4_gaaga(X, Xs, Ys, Cols, Cols1, A, B, row2col_out_gaaga(Xs, Cols, Cols1, .([], A), B)) → row2col_out_gaaga(.(X, Xs), .(.(X, Ys), Cols), .(Ys, Cols1), A, B)
U2_gga(R, Rs, X1, C, Cs, row2col_out_gaaga(R, .(C, Cs), Cols1, [], Accm)) → U3_gga(R, Rs, X1, C, Cs, transpose_aux_in_gga(Rs, Accm, Cols1))
transpose_aux_in_gga([], X, X) → transpose_aux_out_gga([], X, X)
U3_gga(R, Rs, X1, C, Cs, transpose_aux_out_gga(Rs, Accm, Cols1)) → transpose_aux_out_gga(.(R, Rs), X1, .(C, Cs))
U1_ga(A, B, transpose_aux_out_gga(A, [], B)) → transpose_out_ga(A, B)
ROW2COL_IN_GAAGA(.(X, Xs), .(.(X, Ys), Cols), .(Ys, Cols1), A, B) → ROW2COL_IN_GAAGA(Xs, Cols, Cols1, .([], A), B)
ROW2COL_IN_GAAGA(.(X, Xs), A) → ROW2COL_IN_GAAGA(Xs, .([], A))
From the DPs we obtained the following set of size-change graphs:
U2_GGA(R, Rs, X1, C, Cs, row2col_out_gaaga(R, .(C, Cs), Cols1, [], Accm)) → TRANSPOSE_AUX_IN_GGA(Rs, Accm, Cols1)
TRANSPOSE_AUX_IN_GGA(.(R, Rs), X1, .(C, Cs)) → U2_GGA(R, Rs, X1, C, Cs, row2col_in_gaaga(R, .(C, Cs), Cols1, [], Accm))
transpose_in_ga(A, B) → U1_ga(A, B, transpose_aux_in_gga(A, [], B))
transpose_aux_in_gga(.(R, Rs), X1, .(C, Cs)) → U2_gga(R, Rs, X1, C, Cs, row2col_in_gaaga(R, .(C, Cs), Cols1, [], Accm))
row2col_in_gaaga(.(X, Xs), .(.(X, Ys), Cols), .(Ys, Cols1), A, B) → U4_gaaga(X, Xs, Ys, Cols, Cols1, A, B, row2col_in_gaaga(Xs, Cols, Cols1, .([], A), B))
row2col_in_gaaga([], [], [], A, A) → row2col_out_gaaga([], [], [], A, A)
U4_gaaga(X, Xs, Ys, Cols, Cols1, A, B, row2col_out_gaaga(Xs, Cols, Cols1, .([], A), B)) → row2col_out_gaaga(.(X, Xs), .(.(X, Ys), Cols), .(Ys, Cols1), A, B)
U2_gga(R, Rs, X1, C, Cs, row2col_out_gaaga(R, .(C, Cs), Cols1, [], Accm)) → U3_gga(R, Rs, X1, C, Cs, transpose_aux_in_gga(Rs, Accm, Cols1))
transpose_aux_in_gga([], X, X) → transpose_aux_out_gga([], X, X)
U3_gga(R, Rs, X1, C, Cs, transpose_aux_out_gga(Rs, Accm, Cols1)) → transpose_aux_out_gga(.(R, Rs), X1, .(C, Cs))
U1_ga(A, B, transpose_aux_out_gga(A, [], B)) → transpose_out_ga(A, B)
U2_GGA(R, Rs, X1, C, Cs, row2col_out_gaaga(R, .(C, Cs), Cols1, [], Accm)) → TRANSPOSE_AUX_IN_GGA(Rs, Accm, Cols1)
TRANSPOSE_AUX_IN_GGA(.(R, Rs), X1, .(C, Cs)) → U2_GGA(R, Rs, X1, C, Cs, row2col_in_gaaga(R, .(C, Cs), Cols1, [], Accm))
row2col_in_gaaga(.(X, Xs), .(.(X, Ys), Cols), .(Ys, Cols1), A, B) → U4_gaaga(X, Xs, Ys, Cols, Cols1, A, B, row2col_in_gaaga(Xs, Cols, Cols1, .([], A), B))
U4_gaaga(X, Xs, Ys, Cols, Cols1, A, B, row2col_out_gaaga(Xs, Cols, Cols1, .([], A), B)) → row2col_out_gaaga(.(X, Xs), .(.(X, Ys), Cols), .(Ys, Cols1), A, B)
row2col_in_gaaga([], [], [], A, A) → row2col_out_gaaga([], [], [], A, A)
U2_GGA(Rs, row2col_out_gaaga(Accm)) → TRANSPOSE_AUX_IN_GGA(Rs, Accm)
TRANSPOSE_AUX_IN_GGA(.(R, Rs), X1) → U2_GGA(Rs, row2col_in_gaaga(R, []))
row2col_in_gaaga(.(X, Xs), A) → U4_gaaga(row2col_in_gaaga(Xs, .([], A)))
U4_gaaga(row2col_out_gaaga(B)) → row2col_out_gaaga(B)
row2col_in_gaaga([], A) → row2col_out_gaaga(A)
row2col_in_gaaga(x0, x1)
U4_gaaga(x0)
From the DPs we obtained the following set of size-change graphs:
transpose_in_ga(A, B) → U1_ga(A, B, transpose_aux_in_gga(A, [], B))
transpose_aux_in_gga(.(R, Rs), X1, .(C, Cs)) → U2_gga(R, Rs, X1, C, Cs, row2col_in_gaaga(R, .(C, Cs), Cols1, [], Accm))
row2col_in_gaaga(.(X, Xs), .(.(X, Ys), Cols), .(Ys, Cols1), A, B) → U4_gaaga(X, Xs, Ys, Cols, Cols1, A, B, row2col_in_gaaga(Xs, Cols, Cols1, .([], A), B))
row2col_in_gaaga([], [], [], A, A) → row2col_out_gaaga([], [], [], A, A)
U4_gaaga(X, Xs, Ys, Cols, Cols1, A, B, row2col_out_gaaga(Xs, Cols, Cols1, .([], A), B)) → row2col_out_gaaga(.(X, Xs), .(.(X, Ys), Cols), .(Ys, Cols1), A, B)
U2_gga(R, Rs, X1, C, Cs, row2col_out_gaaga(R, .(C, Cs), Cols1, [], Accm)) → U3_gga(R, Rs, X1, C, Cs, transpose_aux_in_gga(Rs, Accm, Cols1))
transpose_aux_in_gga([], X, X) → transpose_aux_out_gga([], X, X)
U3_gga(R, Rs, X1, C, Cs, transpose_aux_out_gga(Rs, Accm, Cols1)) → transpose_aux_out_gga(.(R, Rs), X1, .(C, Cs))
U1_ga(A, B, transpose_aux_out_gga(A, [], B)) → transpose_out_ga(A, B)
Infinitary Constructor Rewriting Termination of PiTRS implies Termination of Prolog
transpose_in_ga(A, B) → U1_ga(A, B, transpose_aux_in_gga(A, [], B))
transpose_aux_in_gga(.(R, Rs), X1, .(C, Cs)) → U2_gga(R, Rs, X1, C, Cs, row2col_in_gaaga(R, .(C, Cs), Cols1, [], Accm))
row2col_in_gaaga(.(X, Xs), .(.(X, Ys), Cols), .(Ys, Cols1), A, B) → U4_gaaga(X, Xs, Ys, Cols, Cols1, A, B, row2col_in_gaaga(Xs, Cols, Cols1, .([], A), B))
row2col_in_gaaga([], [], [], A, A) → row2col_out_gaaga([], [], [], A, A)
U4_gaaga(X, Xs, Ys, Cols, Cols1, A, B, row2col_out_gaaga(Xs, Cols, Cols1, .([], A), B)) → row2col_out_gaaga(.(X, Xs), .(.(X, Ys), Cols), .(Ys, Cols1), A, B)
U2_gga(R, Rs, X1, C, Cs, row2col_out_gaaga(R, .(C, Cs), Cols1, [], Accm)) → U3_gga(R, Rs, X1, C, Cs, transpose_aux_in_gga(Rs, Accm, Cols1))
transpose_aux_in_gga([], X, X) → transpose_aux_out_gga([], X, X)
U3_gga(R, Rs, X1, C, Cs, transpose_aux_out_gga(Rs, Accm, Cols1)) → transpose_aux_out_gga(.(R, Rs), X1, .(C, Cs))
U1_ga(A, B, transpose_aux_out_gga(A, [], B)) → transpose_out_ga(A, B)
TRANSPOSE_IN_GA(A, B) → U1_GA(A, B, transpose_aux_in_gga(A, [], B))
TRANSPOSE_IN_GA(A, B) → TRANSPOSE_AUX_IN_GGA(A, [], B)
TRANSPOSE_AUX_IN_GGA(.(R, Rs), X1, .(C, Cs)) → U2_GGA(R, Rs, X1, C, Cs, row2col_in_gaaga(R, .(C, Cs), Cols1, [], Accm))
TRANSPOSE_AUX_IN_GGA(.(R, Rs), X1, .(C, Cs)) → ROW2COL_IN_GAAGA(R, .(C, Cs), Cols1, [], Accm)
ROW2COL_IN_GAAGA(.(X, Xs), .(.(X, Ys), Cols), .(Ys, Cols1), A, B) → U4_GAAGA(X, Xs, Ys, Cols, Cols1, A, B, row2col_in_gaaga(Xs, Cols, Cols1, .([], A), B))
ROW2COL_IN_GAAGA(.(X, Xs), .(.(X, Ys), Cols), .(Ys, Cols1), A, B) → ROW2COL_IN_GAAGA(Xs, Cols, Cols1, .([], A), B)
U2_GGA(R, Rs, X1, C, Cs, row2col_out_gaaga(R, .(C, Cs), Cols1, [], Accm)) → U3_GGA(R, Rs, X1, C, Cs, transpose_aux_in_gga(Rs, Accm, Cols1))
U2_GGA(R, Rs, X1, C, Cs, row2col_out_gaaga(R, .(C, Cs), Cols1, [], Accm)) → TRANSPOSE_AUX_IN_GGA(Rs, Accm, Cols1)
transpose_in_ga(A, B) → U1_ga(A, B, transpose_aux_in_gga(A, [], B))
transpose_aux_in_gga(.(R, Rs), X1, .(C, Cs)) → U2_gga(R, Rs, X1, C, Cs, row2col_in_gaaga(R, .(C, Cs), Cols1, [], Accm))
row2col_in_gaaga(.(X, Xs), .(.(X, Ys), Cols), .(Ys, Cols1), A, B) → U4_gaaga(X, Xs, Ys, Cols, Cols1, A, B, row2col_in_gaaga(Xs, Cols, Cols1, .([], A), B))
row2col_in_gaaga([], [], [], A, A) → row2col_out_gaaga([], [], [], A, A)
U4_gaaga(X, Xs, Ys, Cols, Cols1, A, B, row2col_out_gaaga(Xs, Cols, Cols1, .([], A), B)) → row2col_out_gaaga(.(X, Xs), .(.(X, Ys), Cols), .(Ys, Cols1), A, B)
U2_gga(R, Rs, X1, C, Cs, row2col_out_gaaga(R, .(C, Cs), Cols1, [], Accm)) → U3_gga(R, Rs, X1, C, Cs, transpose_aux_in_gga(Rs, Accm, Cols1))
transpose_aux_in_gga([], X, X) → transpose_aux_out_gga([], X, X)
U3_gga(R, Rs, X1, C, Cs, transpose_aux_out_gga(Rs, Accm, Cols1)) → transpose_aux_out_gga(.(R, Rs), X1, .(C, Cs))
U1_ga(A, B, transpose_aux_out_gga(A, [], B)) → transpose_out_ga(A, B)
TRANSPOSE_IN_GA(A, B) → U1_GA(A, B, transpose_aux_in_gga(A, [], B))
TRANSPOSE_IN_GA(A, B) → TRANSPOSE_AUX_IN_GGA(A, [], B)
TRANSPOSE_AUX_IN_GGA(.(R, Rs), X1, .(C, Cs)) → U2_GGA(R, Rs, X1, C, Cs, row2col_in_gaaga(R, .(C, Cs), Cols1, [], Accm))
TRANSPOSE_AUX_IN_GGA(.(R, Rs), X1, .(C, Cs)) → ROW2COL_IN_GAAGA(R, .(C, Cs), Cols1, [], Accm)
ROW2COL_IN_GAAGA(.(X, Xs), .(.(X, Ys), Cols), .(Ys, Cols1), A, B) → U4_GAAGA(X, Xs, Ys, Cols, Cols1, A, B, row2col_in_gaaga(Xs, Cols, Cols1, .([], A), B))
ROW2COL_IN_GAAGA(.(X, Xs), .(.(X, Ys), Cols), .(Ys, Cols1), A, B) → ROW2COL_IN_GAAGA(Xs, Cols, Cols1, .([], A), B)
U2_GGA(R, Rs, X1, C, Cs, row2col_out_gaaga(R, .(C, Cs), Cols1, [], Accm)) → U3_GGA(R, Rs, X1, C, Cs, transpose_aux_in_gga(Rs, Accm, Cols1))
U2_GGA(R, Rs, X1, C, Cs, row2col_out_gaaga(R, .(C, Cs), Cols1, [], Accm)) → TRANSPOSE_AUX_IN_GGA(Rs, Accm, Cols1)
transpose_in_ga(A, B) → U1_ga(A, B, transpose_aux_in_gga(A, [], B))
transpose_aux_in_gga(.(R, Rs), X1, .(C, Cs)) → U2_gga(R, Rs, X1, C, Cs, row2col_in_gaaga(R, .(C, Cs), Cols1, [], Accm))
row2col_in_gaaga(.(X, Xs), .(.(X, Ys), Cols), .(Ys, Cols1), A, B) → U4_gaaga(X, Xs, Ys, Cols, Cols1, A, B, row2col_in_gaaga(Xs, Cols, Cols1, .([], A), B))
row2col_in_gaaga([], [], [], A, A) → row2col_out_gaaga([], [], [], A, A)
U4_gaaga(X, Xs, Ys, Cols, Cols1, A, B, row2col_out_gaaga(Xs, Cols, Cols1, .([], A), B)) → row2col_out_gaaga(.(X, Xs), .(.(X, Ys), Cols), .(Ys, Cols1), A, B)
U2_gga(R, Rs, X1, C, Cs, row2col_out_gaaga(R, .(C, Cs), Cols1, [], Accm)) → U3_gga(R, Rs, X1, C, Cs, transpose_aux_in_gga(Rs, Accm, Cols1))
transpose_aux_in_gga([], X, X) → transpose_aux_out_gga([], X, X)
U3_gga(R, Rs, X1, C, Cs, transpose_aux_out_gga(Rs, Accm, Cols1)) → transpose_aux_out_gga(.(R, Rs), X1, .(C, Cs))
U1_ga(A, B, transpose_aux_out_gga(A, [], B)) → transpose_out_ga(A, B)
ROW2COL_IN_GAAGA(.(X, Xs), .(.(X, Ys), Cols), .(Ys, Cols1), A, B) → ROW2COL_IN_GAAGA(Xs, Cols, Cols1, .([], A), B)
transpose_in_ga(A, B) → U1_ga(A, B, transpose_aux_in_gga(A, [], B))
transpose_aux_in_gga(.(R, Rs), X1, .(C, Cs)) → U2_gga(R, Rs, X1, C, Cs, row2col_in_gaaga(R, .(C, Cs), Cols1, [], Accm))
row2col_in_gaaga(.(X, Xs), .(.(X, Ys), Cols), .(Ys, Cols1), A, B) → U4_gaaga(X, Xs, Ys, Cols, Cols1, A, B, row2col_in_gaaga(Xs, Cols, Cols1, .([], A), B))
row2col_in_gaaga([], [], [], A, A) → row2col_out_gaaga([], [], [], A, A)
U4_gaaga(X, Xs, Ys, Cols, Cols1, A, B, row2col_out_gaaga(Xs, Cols, Cols1, .([], A), B)) → row2col_out_gaaga(.(X, Xs), .(.(X, Ys), Cols), .(Ys, Cols1), A, B)
U2_gga(R, Rs, X1, C, Cs, row2col_out_gaaga(R, .(C, Cs), Cols1, [], Accm)) → U3_gga(R, Rs, X1, C, Cs, transpose_aux_in_gga(Rs, Accm, Cols1))
transpose_aux_in_gga([], X, X) → transpose_aux_out_gga([], X, X)
U3_gga(R, Rs, X1, C, Cs, transpose_aux_out_gga(Rs, Accm, Cols1)) → transpose_aux_out_gga(.(R, Rs), X1, .(C, Cs))
U1_ga(A, B, transpose_aux_out_gga(A, [], B)) → transpose_out_ga(A, B)
ROW2COL_IN_GAAGA(.(X, Xs), .(.(X, Ys), Cols), .(Ys, Cols1), A, B) → ROW2COL_IN_GAAGA(Xs, Cols, Cols1, .([], A), B)
ROW2COL_IN_GAAGA(.(X, Xs), A) → ROW2COL_IN_GAAGA(Xs, .([], A))
From the DPs we obtained the following set of size-change graphs:
U2_GGA(R, Rs, X1, C, Cs, row2col_out_gaaga(R, .(C, Cs), Cols1, [], Accm)) → TRANSPOSE_AUX_IN_GGA(Rs, Accm, Cols1)
TRANSPOSE_AUX_IN_GGA(.(R, Rs), X1, .(C, Cs)) → U2_GGA(R, Rs, X1, C, Cs, row2col_in_gaaga(R, .(C, Cs), Cols1, [], Accm))
transpose_in_ga(A, B) → U1_ga(A, B, transpose_aux_in_gga(A, [], B))
transpose_aux_in_gga(.(R, Rs), X1, .(C, Cs)) → U2_gga(R, Rs, X1, C, Cs, row2col_in_gaaga(R, .(C, Cs), Cols1, [], Accm))
row2col_in_gaaga(.(X, Xs), .(.(X, Ys), Cols), .(Ys, Cols1), A, B) → U4_gaaga(X, Xs, Ys, Cols, Cols1, A, B, row2col_in_gaaga(Xs, Cols, Cols1, .([], A), B))
row2col_in_gaaga([], [], [], A, A) → row2col_out_gaaga([], [], [], A, A)
U4_gaaga(X, Xs, Ys, Cols, Cols1, A, B, row2col_out_gaaga(Xs, Cols, Cols1, .([], A), B)) → row2col_out_gaaga(.(X, Xs), .(.(X, Ys), Cols), .(Ys, Cols1), A, B)
U2_gga(R, Rs, X1, C, Cs, row2col_out_gaaga(R, .(C, Cs), Cols1, [], Accm)) → U3_gga(R, Rs, X1, C, Cs, transpose_aux_in_gga(Rs, Accm, Cols1))
transpose_aux_in_gga([], X, X) → transpose_aux_out_gga([], X, X)
U3_gga(R, Rs, X1, C, Cs, transpose_aux_out_gga(Rs, Accm, Cols1)) → transpose_aux_out_gga(.(R, Rs), X1, .(C, Cs))
U1_ga(A, B, transpose_aux_out_gga(A, [], B)) → transpose_out_ga(A, B)
U2_GGA(R, Rs, X1, C, Cs, row2col_out_gaaga(R, .(C, Cs), Cols1, [], Accm)) → TRANSPOSE_AUX_IN_GGA(Rs, Accm, Cols1)
TRANSPOSE_AUX_IN_GGA(.(R, Rs), X1, .(C, Cs)) → U2_GGA(R, Rs, X1, C, Cs, row2col_in_gaaga(R, .(C, Cs), Cols1, [], Accm))
row2col_in_gaaga(.(X, Xs), .(.(X, Ys), Cols), .(Ys, Cols1), A, B) → U4_gaaga(X, Xs, Ys, Cols, Cols1, A, B, row2col_in_gaaga(Xs, Cols, Cols1, .([], A), B))
U4_gaaga(X, Xs, Ys, Cols, Cols1, A, B, row2col_out_gaaga(Xs, Cols, Cols1, .([], A), B)) → row2col_out_gaaga(.(X, Xs), .(.(X, Ys), Cols), .(Ys, Cols1), A, B)
row2col_in_gaaga([], [], [], A, A) → row2col_out_gaaga([], [], [], A, A)