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
↳37 PiDPToQDPProof (⇐)
↳38 QDP
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_gaaa(R, .(C, Cs), Cols1, Accm))
row2col_in_gaaa(.(X, Xs), .(.(X, Ys), Cols), .(Ys, Cols1), .([], As)) → U4_gaaa(X, Xs, Ys, Cols, Cols1, As, row2col_in_gaaa(Xs, Cols, Cols1, As))
row2col_in_gaaa([], [], [], []) → row2col_out_gaaa([], [], [], [])
U4_gaaa(X, Xs, Ys, Cols, Cols1, As, row2col_out_gaaa(Xs, Cols, Cols1, As)) → row2col_out_gaaa(.(X, Xs), .(.(X, Ys), Cols), .(Ys, Cols1), .([], As))
U2_gga(R, Rs, X1, C, Cs, row2col_out_gaaa(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_gaaa(R, .(C, Cs), Cols1, Accm))
row2col_in_gaaa(.(X, Xs), .(.(X, Ys), Cols), .(Ys, Cols1), .([], As)) → U4_gaaa(X, Xs, Ys, Cols, Cols1, As, row2col_in_gaaa(Xs, Cols, Cols1, As))
row2col_in_gaaa([], [], [], []) → row2col_out_gaaa([], [], [], [])
U4_gaaa(X, Xs, Ys, Cols, Cols1, As, row2col_out_gaaa(Xs, Cols, Cols1, As)) → row2col_out_gaaa(.(X, Xs), .(.(X, Ys), Cols), .(Ys, Cols1), .([], As))
U2_gga(R, Rs, X1, C, Cs, row2col_out_gaaa(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_gaaa(R, .(C, Cs), Cols1, Accm))
TRANSPOSE_AUX_IN_GGA(.(R, Rs), X1, .(C, Cs)) → ROW2COL_IN_GAAA(R, .(C, Cs), Cols1, Accm)
ROW2COL_IN_GAAA(.(X, Xs), .(.(X, Ys), Cols), .(Ys, Cols1), .([], As)) → U4_GAAA(X, Xs, Ys, Cols, Cols1, As, row2col_in_gaaa(Xs, Cols, Cols1, As))
ROW2COL_IN_GAAA(.(X, Xs), .(.(X, Ys), Cols), .(Ys, Cols1), .([], As)) → ROW2COL_IN_GAAA(Xs, Cols, Cols1, As)
U2_GGA(R, Rs, X1, C, Cs, row2col_out_gaaa(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_gaaa(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_gaaa(R, .(C, Cs), Cols1, Accm))
row2col_in_gaaa(.(X, Xs), .(.(X, Ys), Cols), .(Ys, Cols1), .([], As)) → U4_gaaa(X, Xs, Ys, Cols, Cols1, As, row2col_in_gaaa(Xs, Cols, Cols1, As))
row2col_in_gaaa([], [], [], []) → row2col_out_gaaa([], [], [], [])
U4_gaaa(X, Xs, Ys, Cols, Cols1, As, row2col_out_gaaa(Xs, Cols, Cols1, As)) → row2col_out_gaaa(.(X, Xs), .(.(X, Ys), Cols), .(Ys, Cols1), .([], As))
U2_gga(R, Rs, X1, C, Cs, row2col_out_gaaa(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_gaaa(R, .(C, Cs), Cols1, Accm))
TRANSPOSE_AUX_IN_GGA(.(R, Rs), X1, .(C, Cs)) → ROW2COL_IN_GAAA(R, .(C, Cs), Cols1, Accm)
ROW2COL_IN_GAAA(.(X, Xs), .(.(X, Ys), Cols), .(Ys, Cols1), .([], As)) → U4_GAAA(X, Xs, Ys, Cols, Cols1, As, row2col_in_gaaa(Xs, Cols, Cols1, As))
ROW2COL_IN_GAAA(.(X, Xs), .(.(X, Ys), Cols), .(Ys, Cols1), .([], As)) → ROW2COL_IN_GAAA(Xs, Cols, Cols1, As)
U2_GGA(R, Rs, X1, C, Cs, row2col_out_gaaa(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_gaaa(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_gaaa(R, .(C, Cs), Cols1, Accm))
row2col_in_gaaa(.(X, Xs), .(.(X, Ys), Cols), .(Ys, Cols1), .([], As)) → U4_gaaa(X, Xs, Ys, Cols, Cols1, As, row2col_in_gaaa(Xs, Cols, Cols1, As))
row2col_in_gaaa([], [], [], []) → row2col_out_gaaa([], [], [], [])
U4_gaaa(X, Xs, Ys, Cols, Cols1, As, row2col_out_gaaa(Xs, Cols, Cols1, As)) → row2col_out_gaaa(.(X, Xs), .(.(X, Ys), Cols), .(Ys, Cols1), .([], As))
U2_gga(R, Rs, X1, C, Cs, row2col_out_gaaa(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_GAAA(.(X, Xs), .(.(X, Ys), Cols), .(Ys, Cols1), .([], As)) → ROW2COL_IN_GAAA(Xs, Cols, Cols1, As)
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_gaaa(R, .(C, Cs), Cols1, Accm))
row2col_in_gaaa(.(X, Xs), .(.(X, Ys), Cols), .(Ys, Cols1), .([], As)) → U4_gaaa(X, Xs, Ys, Cols, Cols1, As, row2col_in_gaaa(Xs, Cols, Cols1, As))
row2col_in_gaaa([], [], [], []) → row2col_out_gaaa([], [], [], [])
U4_gaaa(X, Xs, Ys, Cols, Cols1, As, row2col_out_gaaa(Xs, Cols, Cols1, As)) → row2col_out_gaaa(.(X, Xs), .(.(X, Ys), Cols), .(Ys, Cols1), .([], As))
U2_gga(R, Rs, X1, C, Cs, row2col_out_gaaa(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_GAAA(.(X, Xs), .(.(X, Ys), Cols), .(Ys, Cols1), .([], As)) → ROW2COL_IN_GAAA(Xs, Cols, Cols1, As)
ROW2COL_IN_GAAA(.(X, Xs)) → ROW2COL_IN_GAAA(Xs)
From the DPs we obtained the following set of size-change graphs:
U2_GGA(R, Rs, X1, C, Cs, row2col_out_gaaa(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_gaaa(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_gaaa(R, .(C, Cs), Cols1, Accm))
row2col_in_gaaa(.(X, Xs), .(.(X, Ys), Cols), .(Ys, Cols1), .([], As)) → U4_gaaa(X, Xs, Ys, Cols, Cols1, As, row2col_in_gaaa(Xs, Cols, Cols1, As))
row2col_in_gaaa([], [], [], []) → row2col_out_gaaa([], [], [], [])
U4_gaaa(X, Xs, Ys, Cols, Cols1, As, row2col_out_gaaa(Xs, Cols, Cols1, As)) → row2col_out_gaaa(.(X, Xs), .(.(X, Ys), Cols), .(Ys, Cols1), .([], As))
U2_gga(R, Rs, X1, C, Cs, row2col_out_gaaa(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_gaaa(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_gaaa(R, .(C, Cs), Cols1, Accm))
row2col_in_gaaa(.(X, Xs), .(.(X, Ys), Cols), .(Ys, Cols1), .([], As)) → U4_gaaa(X, Xs, Ys, Cols, Cols1, As, row2col_in_gaaa(Xs, Cols, Cols1, As))
U4_gaaa(X, Xs, Ys, Cols, Cols1, As, row2col_out_gaaa(Xs, Cols, Cols1, As)) → row2col_out_gaaa(.(X, Xs), .(.(X, Ys), Cols), .(Ys, Cols1), .([], As))
row2col_in_gaaa([], [], [], []) → row2col_out_gaaa([], [], [], [])
U2_GGA(R, Rs, X1, row2col_out_gaaa(R, Accm)) → TRANSPOSE_AUX_IN_GGA(Rs, Accm)
TRANSPOSE_AUX_IN_GGA(.(R, Rs), X1) → U2_GGA(R, Rs, X1, row2col_in_gaaa(R))
row2col_in_gaaa(.(X, Xs)) → U4_gaaa(X, Xs, row2col_in_gaaa(Xs))
U4_gaaa(X, Xs, row2col_out_gaaa(Xs, As)) → row2col_out_gaaa(.(X, Xs), .([], As))
row2col_in_gaaa([]) → row2col_out_gaaa([], [])
row2col_in_gaaa(x0)
U4_gaaa(x0, x1, x2)
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_gaaa(R, .(C, Cs), Cols1, Accm))
row2col_in_gaaa(.(X, Xs), .(.(X, Ys), Cols), .(Ys, Cols1), .([], As)) → U4_gaaa(X, Xs, Ys, Cols, Cols1, As, row2col_in_gaaa(Xs, Cols, Cols1, As))
row2col_in_gaaa([], [], [], []) → row2col_out_gaaa([], [], [], [])
U4_gaaa(X, Xs, Ys, Cols, Cols1, As, row2col_out_gaaa(Xs, Cols, Cols1, As)) → row2col_out_gaaa(.(X, Xs), .(.(X, Ys), Cols), .(Ys, Cols1), .([], As))
U2_gga(R, Rs, X1, C, Cs, row2col_out_gaaa(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_gaaa(R, .(C, Cs), Cols1, Accm))
row2col_in_gaaa(.(X, Xs), .(.(X, Ys), Cols), .(Ys, Cols1), .([], As)) → U4_gaaa(X, Xs, Ys, Cols, Cols1, As, row2col_in_gaaa(Xs, Cols, Cols1, As))
row2col_in_gaaa([], [], [], []) → row2col_out_gaaa([], [], [], [])
U4_gaaa(X, Xs, Ys, Cols, Cols1, As, row2col_out_gaaa(Xs, Cols, Cols1, As)) → row2col_out_gaaa(.(X, Xs), .(.(X, Ys), Cols), .(Ys, Cols1), .([], As))
U2_gga(R, Rs, X1, C, Cs, row2col_out_gaaa(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_gaaa(R, .(C, Cs), Cols1, Accm))
TRANSPOSE_AUX_IN_GGA(.(R, Rs), X1, .(C, Cs)) → ROW2COL_IN_GAAA(R, .(C, Cs), Cols1, Accm)
ROW2COL_IN_GAAA(.(X, Xs), .(.(X, Ys), Cols), .(Ys, Cols1), .([], As)) → U4_GAAA(X, Xs, Ys, Cols, Cols1, As, row2col_in_gaaa(Xs, Cols, Cols1, As))
ROW2COL_IN_GAAA(.(X, Xs), .(.(X, Ys), Cols), .(Ys, Cols1), .([], As)) → ROW2COL_IN_GAAA(Xs, Cols, Cols1, As)
U2_GGA(R, Rs, X1, C, Cs, row2col_out_gaaa(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_gaaa(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_gaaa(R, .(C, Cs), Cols1, Accm))
row2col_in_gaaa(.(X, Xs), .(.(X, Ys), Cols), .(Ys, Cols1), .([], As)) → U4_gaaa(X, Xs, Ys, Cols, Cols1, As, row2col_in_gaaa(Xs, Cols, Cols1, As))
row2col_in_gaaa([], [], [], []) → row2col_out_gaaa([], [], [], [])
U4_gaaa(X, Xs, Ys, Cols, Cols1, As, row2col_out_gaaa(Xs, Cols, Cols1, As)) → row2col_out_gaaa(.(X, Xs), .(.(X, Ys), Cols), .(Ys, Cols1), .([], As))
U2_gga(R, Rs, X1, C, Cs, row2col_out_gaaa(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_gaaa(R, .(C, Cs), Cols1, Accm))
TRANSPOSE_AUX_IN_GGA(.(R, Rs), X1, .(C, Cs)) → ROW2COL_IN_GAAA(R, .(C, Cs), Cols1, Accm)
ROW2COL_IN_GAAA(.(X, Xs), .(.(X, Ys), Cols), .(Ys, Cols1), .([], As)) → U4_GAAA(X, Xs, Ys, Cols, Cols1, As, row2col_in_gaaa(Xs, Cols, Cols1, As))
ROW2COL_IN_GAAA(.(X, Xs), .(.(X, Ys), Cols), .(Ys, Cols1), .([], As)) → ROW2COL_IN_GAAA(Xs, Cols, Cols1, As)
U2_GGA(R, Rs, X1, C, Cs, row2col_out_gaaa(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_gaaa(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_gaaa(R, .(C, Cs), Cols1, Accm))
row2col_in_gaaa(.(X, Xs), .(.(X, Ys), Cols), .(Ys, Cols1), .([], As)) → U4_gaaa(X, Xs, Ys, Cols, Cols1, As, row2col_in_gaaa(Xs, Cols, Cols1, As))
row2col_in_gaaa([], [], [], []) → row2col_out_gaaa([], [], [], [])
U4_gaaa(X, Xs, Ys, Cols, Cols1, As, row2col_out_gaaa(Xs, Cols, Cols1, As)) → row2col_out_gaaa(.(X, Xs), .(.(X, Ys), Cols), .(Ys, Cols1), .([], As))
U2_gga(R, Rs, X1, C, Cs, row2col_out_gaaa(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_GAAA(.(X, Xs), .(.(X, Ys), Cols), .(Ys, Cols1), .([], As)) → ROW2COL_IN_GAAA(Xs, Cols, Cols1, As)
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_gaaa(R, .(C, Cs), Cols1, Accm))
row2col_in_gaaa(.(X, Xs), .(.(X, Ys), Cols), .(Ys, Cols1), .([], As)) → U4_gaaa(X, Xs, Ys, Cols, Cols1, As, row2col_in_gaaa(Xs, Cols, Cols1, As))
row2col_in_gaaa([], [], [], []) → row2col_out_gaaa([], [], [], [])
U4_gaaa(X, Xs, Ys, Cols, Cols1, As, row2col_out_gaaa(Xs, Cols, Cols1, As)) → row2col_out_gaaa(.(X, Xs), .(.(X, Ys), Cols), .(Ys, Cols1), .([], As))
U2_gga(R, Rs, X1, C, Cs, row2col_out_gaaa(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_GAAA(.(X, Xs), .(.(X, Ys), Cols), .(Ys, Cols1), .([], As)) → ROW2COL_IN_GAAA(Xs, Cols, Cols1, As)
ROW2COL_IN_GAAA(.(X, Xs)) → ROW2COL_IN_GAAA(Xs)
From the DPs we obtained the following set of size-change graphs:
U2_GGA(R, Rs, X1, C, Cs, row2col_out_gaaa(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_gaaa(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_gaaa(R, .(C, Cs), Cols1, Accm))
row2col_in_gaaa(.(X, Xs), .(.(X, Ys), Cols), .(Ys, Cols1), .([], As)) → U4_gaaa(X, Xs, Ys, Cols, Cols1, As, row2col_in_gaaa(Xs, Cols, Cols1, As))
row2col_in_gaaa([], [], [], []) → row2col_out_gaaa([], [], [], [])
U4_gaaa(X, Xs, Ys, Cols, Cols1, As, row2col_out_gaaa(Xs, Cols, Cols1, As)) → row2col_out_gaaa(.(X, Xs), .(.(X, Ys), Cols), .(Ys, Cols1), .([], As))
U2_gga(R, Rs, X1, C, Cs, row2col_out_gaaa(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_gaaa(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_gaaa(R, .(C, Cs), Cols1, Accm))
row2col_in_gaaa(.(X, Xs), .(.(X, Ys), Cols), .(Ys, Cols1), .([], As)) → U4_gaaa(X, Xs, Ys, Cols, Cols1, As, row2col_in_gaaa(Xs, Cols, Cols1, As))
U4_gaaa(X, Xs, Ys, Cols, Cols1, As, row2col_out_gaaa(Xs, Cols, Cols1, As)) → row2col_out_gaaa(.(X, Xs), .(.(X, Ys), Cols), .(Ys, Cols1), .([], As))
row2col_in_gaaa([], [], [], []) → row2col_out_gaaa([], [], [], [])
U2_GGA(Rs, row2col_out_gaaa(Accm)) → TRANSPOSE_AUX_IN_GGA(Rs, Accm)
TRANSPOSE_AUX_IN_GGA(.(R, Rs), X1) → U2_GGA(Rs, row2col_in_gaaa(R))
row2col_in_gaaa(.(X, Xs)) → U4_gaaa(row2col_in_gaaa(Xs))
U4_gaaa(row2col_out_gaaa(As)) → row2col_out_gaaa(.([], As))
row2col_in_gaaa([]) → row2col_out_gaaa([])
row2col_in_gaaa(x0)
U4_gaaa(x0)