int main(int argc, char *argv[]) {
  char input_file[512];
  char output_file1[512];
  char output_file2[512];
  char output_file3[512];
  char output_file4[512];
  char output_file5[512];
  char output_file6[512];
  int N, M;
  double *data;
  double *cpy;
  float *fata;
  int *iata;
  double *res2;
  double res;
  strcpy(input_file, argv[1]);
  N = (int)atoi(argv[2]);
  M = (int)atoi(argv[3]);
  strcpy(output_file1, argv[4]);
  strcpy(output_file2, argv[5]);
  strcpy(output_file3, argv[6]);
  strcpy(output_file4, argv[7]);
  strcpy(output_file5, argv[8]);
  strcpy(output_file6, argv[9]);
  data = (double *)malloc(N * M * sizeof(double));
  res2 = (double *)malloc(N * sizeof(double));
  cpy = (double *)malloc(N * M * sizeof(double));
  fata = (float *)malloc(N * M * sizeof(float));
  iata = (int *)malloc(N * M * sizeof(int));
  read_data_double(input_file, N, M, data);
  read_data_float(input_file, N, M, fata);
  read_data_int(input_file, N, M, iata);
  dble_sum2(data, N, M, res2, 0.01);
  write_data_double(output_file1, N, 1, res2);
  res = dble_sum(data, N * M);
  write_data_double(output_file2, 1, 1, &res);
  copy_vect(data, cpy, N * M);
  write_data_double(output_file3, N, M, cpy);
  transpose_double(data, M, N);
  write_data_double(output_file4, M, N, data);
  transpose_float(fata, M, N);
  write_data_float(output_file5, M, N, fata);
  transpose_int(iata, M, N);
  write_data_int(output_file6, M, N, iata);
  free(data);
  free(fata);
  free(iata);
  free(cpy);
  free(res2);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0xe50,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
lea    -0x210(%rbp),%rdi
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rsi
call   1040 <strcpy@plt>
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
mov    $0x0,%al
call   1110 <atoi@plt>
mov    %eax,-0xe14(%rbp)
mov    -0x10(%rbp),%rax
mov    0x18(%rax),%rdi
mov    $0x0,%al
call   1110 <atoi@plt>
mov    %eax,-0xe18(%rbp)
lea    -0x410(%rbp),%rdi
mov    -0x10(%rbp),%rax
mov    0x20(%rax),%rsi
call   1040 <strcpy@plt>
lea    -0x610(%rbp),%rdi
mov    -0x10(%rbp),%rax
mov    0x28(%rax),%rsi
call   1040 <strcpy@plt>
lea    -0x810(%rbp),%rdi
mov    -0x10(%rbp),%rax
mov    0x30(%rax),%rsi
call   1040 <strcpy@plt>
lea    -0xa10(%rbp),%rdi
mov    -0x10(%rbp),%rax
mov    0x38(%rax),%rsi
call   1040 <strcpy@plt>
lea    -0xc10(%rbp),%rdi
mov    -0x10(%rbp),%rax
mov    0x40(%rax),%rsi
call   1040 <strcpy@plt>
lea    -0xe10(%rbp),%rdi
mov    -0x10(%rbp),%rax
mov    0x48(%rax),%rsi
call   1040 <strcpy@plt>
mov    -0xe14(%rbp),%eax
imul   -0xe18(%rbp),%eax
movslq %eax,%rdi
shl    $0x3,%rdi
call   10d0 <malloc@plt>
mov    %rax,-0xe20(%rbp)
movslq -0xe14(%rbp),%rdi
shl    $0x3,%rdi
call   10d0 <malloc@plt>
mov    %rax,-0xe40(%rbp)
mov    -0xe14(%rbp),%eax
imul   -0xe18(%rbp),%eax
movslq %eax,%rdi
shl    $0x3,%rdi
call   10d0 <malloc@plt>
mov    %rax,-0xe28(%rbp)
mov    -0xe14(%rbp),%eax
imul   -0xe18(%rbp),%eax
movslq %eax,%rdi
shl    $0x2,%rdi
call   10d0 <malloc@plt>
mov    %rax,-0xe30(%rbp)
mov    -0xe14(%rbp),%eax
imul   -0xe18(%rbp),%eax
movslq %eax,%rdi
shl    $0x2,%rdi
call   10d0 <malloc@plt>
mov    %rax,-0xe38(%rbp)
lea    -0x210(%rbp),%rdi
mov    -0xe14(%rbp),%esi
mov    -0xe18(%rbp),%edx
mov    -0xe20(%rbp),%rcx
mov    $0x0,%al
call   1070 <read_data_double@plt>
lea    -0x210(%rbp),%rdi
mov    -0xe14(%rbp),%esi
mov    -0xe18(%rbp),%edx
mov    -0xe30(%rbp),%rcx
mov    $0x0,%al
call   1120 <read_data_float@plt>
lea    -0x210(%rbp),%rdi
mov    -0xe14(%rbp),%esi
mov    -0xe18(%rbp),%edx
mov    -0xe38(%rbp),%rcx
mov    $0x0,%al
call   10c0 <read_data_int@plt>
mov    -0xe20(%rbp),%rdi
mov    -0xe14(%rbp),%esi
mov    -0xe18(%rbp),%edx
mov    -0xe40(%rbp),%rcx
movsd  0xc15(%rip),%xmm0
mov    $0x1,%al
call   1060 <dble_sum2@plt>
lea    -0x410(%rbp),%rdi
mov    -0xe14(%rbp),%esi
mov    -0xe40(%rbp),%rcx
mov    $0x1,%edx
mov    $0x0,%al
call   10e0 <write_data_double@plt>
mov    -0xe20(%rbp),%rdi
mov    -0xe14(%rbp),%esi
imul   -0xe18(%rbp),%esi
mov    $0x0,%al
call   10f0 <dble_sum@plt>
cvtsi2sd %eax,%xmm0
movsd  %xmm0,-0xe48(%rbp)
ff
lea    -0x610(%rbp),%rdi
mov    $0x1,%edx
lea    -0xe48(%rbp),%rcx
mov    %edx,%esi
mov    $0x0,%al
call   10e0 <write_data_double@plt>
mov    -0xe20(%rbp),%rdi
mov    -0xe28(%rbp),%rsi
mov    -0xe14(%rbp),%edx
imul   -0xe18(%rbp),%edx
mov    $0x0,%al
call   10a0 <copy_vect@plt>
lea    -0x810(%rbp),%rdi
mov    -0xe14(%rbp),%esi
mov    -0xe18(%rbp),%edx
mov    -0xe28(%rbp),%rcx
mov    $0x0,%al
call   10e0 <write_data_double@plt>
mov    -0xe20(%rbp),%rdi
mov    -0xe18(%rbp),%esi
mov    -0xe14(%rbp),%edx
mov    $0x0,%al
call   1090 <transpose_double@plt>
lea    -0xa10(%rbp),%rdi
mov    -0xe18(%rbp),%esi
mov    -0xe14(%rbp),%edx
mov    -0xe20(%rbp),%rcx
mov    $0x0,%al
call   10e0 <write_data_double@plt>
mov    -0xe30(%rbp),%rdi
mov    -0xe18(%rbp),%esi
mov    -0xe14(%rbp),%edx
mov    $0x0,%al
call   1100 <transpose_float@plt>
lea    -0xc10(%rbp),%rdi
mov    -0xe18(%rbp),%esi
mov    -0xe14(%rbp),%edx
mov    -0xe30(%rbp),%rcx
mov    $0x0,%al
call   10b0 <write_data_float@plt>
mov    -0xe38(%rbp),%rdi
mov    -0xe18(%rbp),%esi
mov    -0xe14(%rbp),%edx
mov    $0x0,%al
call   1050 <transpose_int@plt>
lea    -0xe10(%rbp),%rdi
mov    -0xe18(%rbp),%esi
mov    -0xe14(%rbp),%edx
mov    -0xe38(%rbp),%rcx
mov    $0x0,%al
call   1080 <write_data_int@plt>
mov    -0xe20(%rbp),%rdi
call   1030 <free@plt>
mov    -0xe30(%rbp),%rdi
call   1030 <free@plt>
mov    -0xe38(%rbp),%rdi
call   1030 <free@plt>
mov    -0xe28(%rbp),%rdi
call   1030 <free@plt>
mov    -0xe40(%rbp),%rdi
call   1030 <free@plt>
xor    %eax,%eax
add    $0xe50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0xe38,%rsp
mov    %rsi,%rbp
mov    0x8(%rsi),%rsi
lea    0xc30(%rsp),%rdi
call   1040 <strcpy@plt>
mov    0x10(%rbp),%rdi
xor    %eax,%eax
call   1110 <atoi@plt>
mov    %eax,%r14d
mov    0x18(%rbp),%rdi
xor    %eax,%eax
call   1110 <atoi@plt>
mov    %eax,%r12d
mov    0x20(%rbp),%rsi
lea    0xa30(%rsp),%rdi
call   1040 <strcpy@plt>
mov    0x28(%rbp),%rsi
lea    0x830(%rsp),%rdi
call   1040 <strcpy@plt>
mov    0x30(%rbp),%rsi
lea    0x630(%rsp),%rdi
call   1040 <strcpy@plt>
mov    0x38(%rbp),%rsi
lea    0x430(%rsp),%rdi
call   1040 <strcpy@plt>
mov    0x40(%rbp),%rsi
lea    0x230(%rsp),%rdi
call   1040 <strcpy@plt>
mov    0x48(%rbp),%rsi
lea    0x30(%rsp),%rdi
call   1040 <strcpy@plt>
mov    %r12d,%eax
imul   %r14d,%eax
cltq
lea    0x0(,%rax,8),%rbp
mov    %rax,%rbx
mov    %rax,0x10(%rsp)
mov    %rbp,%rdi
call   10d0 <malloc@plt>
mov    %rax,%r13
movslq %r14d,%r15
lea    0x0(,%r15,8),%rdi
call   10d0 <malloc@plt>
mov    %rax,0x8(%rsp)
mov    %rbp,%rdi
call   10d0 <malloc@plt>
mov    %rax,0x18(%rsp)
lea    0x0(,%rbx,4),%rbp
mov    %rbp,%rdi
call   10d0 <malloc@plt>
mov    %rax,%r14
mov    %rbp,%rdi
call   10d0 <malloc@plt>
mov    %rax,%rbx
mov    %rax,0x20(%rsp)
lea    0xc30(%rsp),%rbp
mov    %rbp,%rdi
mov    %r15d,%esi
mov    %r12d,%edx
mov    %r13,%rcx
xor    %eax,%eax
call   1070 <read_data_double@plt>
mov    %rbp,%rdi
mov    %r15d,%esi
mov    %r12d,%edx
mov    %r14,%rcx
xor    %eax,%eax
call   1120 <read_data_float@plt>
mov    %rbp,%rdi
mov    %r15d,%esi
mov    %r12d,%edx
mov    %rbx,%rcx
xor    %eax,%eax
call   10c0 <read_data_int@plt>
movsd  0xcaa(%rip),%xmm0
mov    %r13,%rdi
mov    %r15d,%esi
mov    %r12d,%edx
mov    0x8(%rsp),%rbp
mov    %rbp,%rcx
mov    $0x1,%al
call   1060 <dble_sum2@plt>
lea    0xa30(%rsp),%rdi
mov    %r15d,%esi
mov    $0x1,%edx
mov    %rbp,%rcx
xor    %eax,%eax
call   10e0 <write_data_double@plt>
mov    %r13,%rbx
mov    %r13,%rdi
mov    0x10(%rsp),%r13
mov    %r13d,%esi
xor    %eax,%eax
call   10f0 <dble_sum@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
movsd  %xmm0,0x28(%rsp)
lea    0x28(%rsp),%rcx
lea    0x830(%rsp),%rdi
mov    $0x1,%esi
mov    $0x1,%edx
xor    %eax,%eax
call   10e0 <write_data_double@plt>
mov    %rbx,%rdi
mov    0x18(%rsp),%rbp
mov    %rbp,%rsi
mov    %r13d,%edx
xor    %eax,%eax
call   10a0 <copy_vect@plt>
lea    0x630(%rsp),%rdi
mov    %r15d,%esi
mov    %r12d,%edx
mov    %rbp,%rcx
mov    %rbp,%r13
xor    %eax,%eax
call   10e0 <write_data_double@plt>
mov    %rbx,%rdi
mov    %r12d,%esi
mov    %r15d,%edx
xor    %eax,%eax
call   1090 <transpose_double@plt>
lea    0x430(%rsp),%rdi
mov    %r12d,%esi
mov    %r15d,%edx
mov    %rbx,%rcx
xor    %eax,%eax
call   10e0 <write_data_double@plt>
mov    %r14,%rdi
mov    %r12d,%esi
mov    %r15d,%edx
xor    %eax,%eax
call   1100 <transpose_float@plt>
lea    0x230(%rsp),%rdi
mov    %r12d,%esi
mov    %r15d,%edx
mov    %r14,%rcx
xor    %eax,%eax
call   10b0 <write_data_float@plt>
mov    0x20(%rsp),%rbp
mov    %rbp,%rdi
mov    %r12d,%esi
mov    %r15d,%edx
xor    %eax,%eax
call   1050 <transpose_int@plt>
lea    0x30(%rsp),%rdi
mov    %r12d,%esi
mov    %r15d,%edx
mov    %rbp,%rcx
xor    %eax,%eax
call   1080 <write_data_int@plt>
mov    %rbx,%rdi
call   1030 <free@plt>
mov    %r14,%rdi
call   1030 <free@plt>
mov    %rbp,%rdi
call   1030 <free@plt>
mov    %r13,%rdi
call   1030 <free@plt>
mov    0x8(%rsp),%rdi
call   1030 <free@plt>
xor    %eax,%eax
add    $0xe38,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca [512 x i8]
%7 = alloca [512 x i8]
%8 = alloca [512 x i8]
%9 = alloca [512 x i8]
%10 = alloca [512 x i8]
%11 = alloca [512 x i8]
%12 = alloca [512 x i8]
%13 = alloca i32
%14 = alloca i32
%15 = alloca double*
%16 = alloca double*
%17 = alloca float*
%18 = alloca i32*
%19 = alloca double*
%20 = alloca double
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%21 = getelementptr inbounds [512 x i8], [512 x i8]* %6, i64 0, i64 0
%22 = load i8**, i8*** %5
%23 = getelementptr inbounds i8*, i8** %22, i64 1
%24 = load i8*, i8** %23
%25 = call i8* @strcpy(i8* %21, i8* %24)
%26 = load i8**, i8*** %5
%27 = getelementptr inbounds i8*, i8** %26, i64 2
%28 = load i8*, i8** %27
%29 = call i32 (i8*, ...) bitcast (i32 (...)* @atoi to i32 (i8*, ...)*)(i8* %28)
store i32 %29, i32* %13
%30 = load i8**, i8*** %5
%31 = getelementptr inbounds i8*, i8** %30, i64 3
%32 = load i8*, i8** %31
%33 = call i32 (i8*, ...) bitcast (i32 (...)* @atoi to i32 (i8*, ...)*)(i8* %32)
store i32 %33, i32* %14
%34 = getelementptr inbounds [512 x i8], [512 x i8]* %7, i64 0, i64 0
%35 = load i8**, i8*** %5
%36 = getelementptr inbounds i8*, i8** %35, i64 4
%37 = load i8*, i8** %36
%38 = call i8* @strcpy(i8* %34, i8* %37)
%39 = getelementptr inbounds [512 x i8], [512 x i8]* %8, i64 0, i64 0
%40 = load i8**, i8*** %5
%41 = getelementptr inbounds i8*, i8** %40, i64 5
%42 = load i8*, i8** %41
%43 = call i8* @strcpy(i8* %39, i8* %42)
%44 = getelementptr inbounds [512 x i8], [512 x i8]* %9, i64 0, i64 0
%45 = load i8**, i8*** %5
%46 = getelementptr inbounds i8*, i8** %45, i64 6
%47 = load i8*, i8** %46
%48 = call i8* @strcpy(i8* %44, i8* %47)
%49 = getelementptr inbounds [512 x i8], [512 x i8]* %10, i64 0, i64 0
%50 = load i8**, i8*** %5
%51 = getelementptr inbounds i8*, i8** %50, i64 7
%52 = load i8*, i8** %51
%53 = call i8* @strcpy(i8* %49, i8* %52)
%54 = getelementptr inbounds [512 x i8], [512 x i8]* %11, i64 0, i64 0
%55 = load i8**, i8*** %5
%56 = getelementptr inbounds i8*, i8** %55, i64 8
%57 = load i8*, i8** %56
%58 = call i8* @strcpy(i8* %54, i8* %57)
%59 = getelementptr inbounds [512 x i8], [512 x i8]* %12, i64 0, i64 0
%60 = load i8**, i8*** %5
%61 = getelementptr inbounds i8*, i8** %60, i64 9
%62 = load i8*, i8** %61
%63 = call i8* @strcpy(i8* %59, i8* %62)
%64 = load i32, i32* %13
%65 = load i32, i32* %14
%66 = mul nsw i32 %64, %65
%67 = sext i32 %66 to i64
%68 = mul i64 %67, 8
%69 = call i8* @malloc(i64 %68)
%70 = bitcast i8* %69 to double*
store double* %70, double** %15
%71 = load i32, i32* %13
%72 = sext i32 %71 to i64
%73 = mul i64 %72, 8
%74 = call i8* @malloc(i64 %73)
%75 = bitcast i8* %74 to double*
store double* %75, double** %19
%76 = load i32, i32* %13
%77 = load i32, i32* %14
%78 = mul nsw i32 %76, %77
%79 = sext i32 %78 to i64
%80 = mul i64 %79, 8
%81 = call i8* @malloc(i64 %80)
%82 = bitcast i8* %81 to double*
store double* %82, double** %16
%83 = load i32, i32* %13
%84 = load i32, i32* %14
%85 = mul nsw i32 %83, %84
%86 = sext i32 %85 to i64
%87 = mul i64 %86, 4
%88 = call i8* @malloc(i64 %87)
%89 = bitcast i8* %88 to float*
store float* %89, float** %17
%90 = load i32, i32* %13
%91 = load i32, i32* %14
%92 = mul nsw i32 %90, %91
%93 = sext i32 %92 to i64
%94 = mul i64 %93, 4
%95 = call i8* @malloc(i64 %94)
%96 = bitcast i8* %95 to i32*
store i32* %96, i32** %18
%97 = getelementptr inbounds [512 x i8], [512 x i8]* %6, i64 0, i64 0
%98 = load i32, i32* %13
%99 = load i32, i32* %14
%100 = load double*, double** %15
%101 = call i32 (i8*, i32, i32, double*, ...) bitcast (i32 (...)* @read_data_double to i32 (i8*, i32, i32, double*, ...)*)(i8* %97, i32 %98, i32 %99, double* %100)
%102 = getelementptr inbounds [512 x i8], [512 x i8]* %6, i64 0, i64 0
%103 = load i32, i32* %13
%104 = load i32, i32* %14
%105 = load float*, float** %17
%106 = call i32 (i8*, i32, i32, float*, ...) bitcast (i32 (...)* @read_data_float to i32 (i8*, i32, i32, float*, ...)*)(i8* %102, i32 %103, i32 %104, float* %105)
%107 = getelementptr inbounds [512 x i8], [512 x i8]* %6, i64 0, i64 0
%108 = load i32, i32* %13
%109 = load i32, i32* %14
%110 = load i32*, i32** %18
%111 = call i32 (i8*, i32, i32, i32*, ...) bitcast (i32 (...)* @read_data_int to i32 (i8*, i32, i32, i32*, ...)*)(i8* %107, i32 %108, i32 %109, i32* %110)
%112 = load double*, double** %15
%113 = load i32, i32* %13
%114 = load i32, i32* %14
%115 = load double*, double** %19
%116 = call i32 (double*, i32, i32, double*, double, ...) bitcast (i32 (...)* @dble_sum2 to i32 (double*, i32, i32, double*, double, ...)*)(double* %112, i32 %113, i32 %114, double* %115, double 1.000000e-02)
%117 = getelementptr inbounds [512 x i8], [512 x i8]* %7, i64 0, i64 0
%118 = load i32, i32* %13
%119 = load double*, double** %19
%120 = call i32 (i8*, i32, i32, double*, ...) bitcast (i32 (...)* @write_data_double to i32 (i8*, i32, i32, double*, ...)*)(i8* %117, i32 %118, i32 1, double* %119)
%121 = load double*, double** %15
%122 = load i32, i32* %13
%123 = load i32, i32* %14
%124 = mul nsw i32 %122, %123
%125 = call i32 (double*, i32, ...) bitcast (i32 (...)* @dble_sum to i32 (double*, i32, ...)*)(double* %121, i32 %124)
%126 = sitofp i32 %125 to double
store double %126, double* %20
%127 = getelementptr inbounds [512 x i8], [512 x i8]* %8, i64 0, i64 0
%128 = call i32 (i8*, i32, i32, double*, ...) bitcast (i32 (...)* @write_data_double to i32 (i8*, i32, i32, double*, ...)*)(i8* %127, i32 1, i32 1, double* %20)
%129 = load double*, double** %15
%130 = load double*, double** %16
%131 = load i32, i32* %13
%132 = load i32, i32* %14
%133 = mul nsw i32 %131, %132
%134 = call i32 (double*, double*, i32, ...) bitcast (i32 (...)* @copy_vect to i32 (double*, double*, i32, ...)*)(double* %129, double* %130, i32 %133)
%135 = getelementptr inbounds [512 x i8], [512 x i8]* %9, i64 0, i64 0
%136 = load i32, i32* %13
%137 = load i32, i32* %14
%138 = load double*, double** %16
%139 = call i32 (i8*, i32, i32, double*, ...) bitcast (i32 (...)* @write_data_double to i32 (i8*, i32, i32, double*, ...)*)(i8* %135, i32 %136, i32 %137, double* %138)
%140 = load double*, double** %15
%141 = load i32, i32* %14
%142 = load i32, i32* %13
%143 = call i32 (double*, i32, i32, ...) bitcast (i32 (...)* @transpose_double to i32 (double*, i32, i32, ...)*)(double* %140, i32 %141, i32 %142)
%144 = getelementptr inbounds [512 x i8], [512 x i8]* %10, i64 0, i64 0
%145 = load i32, i32* %14
%146 = load i32, i32* %13
%147 = load double*, double** %15
%148 = call i32 (i8*, i32, i32, double*, ...) bitcast (i32 (...)* @write_data_double to i32 (i8*, i32, i32, double*, ...)*)(i8* %144, i32 %145, i32 %146, double* %147)
%149 = load float*, float** %17
%150 = load i32, i32* %14
%151 = load i32, i32* %13
%152 = call i32 (float*, i32, i32, ...) bitcast (i32 (...)* @transpose_float to i32 (float*, i32, i32, ...)*)(float* %149, i32 %150, i32 %151)
%153 = getelementptr inbounds [512 x i8], [512 x i8]* %11, i64 0, i64 0
%154 = load i32, i32* %14
%155 = load i32, i32* %13
%156 = load float*, float** %17
%157 = call i32 (i8*, i32, i32, float*, ...) bitcast (i32 (...)* @write_data_float to i32 (i8*, i32, i32, float*, ...)*)(i8* %153, i32 %154, i32 %155, float* %156)
%158 = load i32*, i32** %18
%159 = load i32, i32* %14
%160 = load i32, i32* %13
%161 = call i32 (i32*, i32, i32, ...) bitcast (i32 (...)* @transpose_int to i32 (i32*, i32, i32, ...)*)(i32* %158, i32 %159, i32 %160)
%162 = getelementptr inbounds [512 x i8], [512 x i8]* %12, i64 0, i64 0
%163 = load i32, i32* %14
%164 = load i32, i32* %13
%165 = load i32*, i32** %18
%166 = call i32 (i8*, i32, i32, i32*, ...) bitcast (i32 (...)* @write_data_int to i32 (i8*, i32, i32, i32*, ...)*)(i8* %162, i32 %163, i32 %164, i32* %165)
%167 = load double*, double** %15
%168 = bitcast double* %167 to i8*
%169 = load float*, float** %17
%170 = bitcast float* %169 to i8*
%171 = load i32*, i32** %18
%172 = bitcast i32* %171 to i8*
%173 = load double*, double** %16
%174 = bitcast double* %173 to i8*
%175 = load double*, double** %19
%176 = bitcast double* %175 to i8*
ret i32 0
}

LLVM IR (-O2):
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = alloca [512 x i8]
%4 = alloca [512 x i8]
%5 = alloca [512 x i8]
%6 = alloca [512 x i8]
%7 = alloca [512 x i8]
%8 = alloca [512 x i8]
%9 = alloca [512 x i8]
%10 = alloca double
%11 = getelementptr inbounds [512 x i8], [512 x i8]* %3, i64 0, i64 0
%12 = getelementptr inbounds [512 x i8], [512 x i8]* %4, i64 0, i64 0
%13 = getelementptr inbounds [512 x i8], [512 x i8]* %5, i64 0, i64 0
%14 = getelementptr inbounds [512 x i8], [512 x i8]* %6, i64 0, i64 0
%15 = getelementptr inbounds [512 x i8], [512 x i8]* %7, i64 0, i64 0
%16 = getelementptr inbounds [512 x i8], [512 x i8]* %8, i64 0, i64 0
%17 = getelementptr inbounds [512 x i8], [512 x i8]* %9, i64 0, i64 0
%18 = bitcast double* %10 to i8*
%19 = getelementptr inbounds i8*, i8** %1, i64 1
%20 = load i8*, i8** %19
%21 = call i8* @strcpy(i8* %11, i8* dereferenceable(1) %20)
%22 = getelementptr inbounds i8*, i8** %1, i64 2
%23 = load i8*, i8** %22
%24 = call i32 (i8*, ...) bitcast (i32 (...)* @atoi to i32 (i8*, ...)*)(i8* %23)
%25 = getelementptr inbounds i8*, i8** %1, i64 3
%26 = load i8*, i8** %25
%27 = call i32 (i8*, ...) bitcast (i32 (...)* @atoi to i32 (i8*, ...)*)(i8* %26)
%28 = getelementptr inbounds i8*, i8** %1, i64 4
%29 = load i8*, i8** %28
%30 = call i8* @strcpy(i8* %12, i8* dereferenceable(1) %29)
%31 = getelementptr inbounds i8*, i8** %1, i64 5
%32 = load i8*, i8** %31
%33 = call i8* @strcpy(i8* %13, i8* dereferenceable(1) %32)
%34 = getelementptr inbounds i8*, i8** %1, i64 6
%35 = load i8*, i8** %34
%36 = call i8* @strcpy(i8* %14, i8* dereferenceable(1) %35)
%37 = getelementptr inbounds i8*, i8** %1, i64 7
%38 = load i8*, i8** %37
%39 = call i8* @strcpy(i8* %15, i8* dereferenceable(1) %38)
%40 = getelementptr inbounds i8*, i8** %1, i64 8
%41 = load i8*, i8** %40
%42 = call i8* @strcpy(i8* %16, i8* dereferenceable(1) %41)
%43 = getelementptr inbounds i8*, i8** %1, i64 9
%44 = load i8*, i8** %43
%45 = call i8* @strcpy(i8* %17, i8* dereferenceable(1) %44)
%46 = mul nsw i32 %27, %24
%47 = sext i32 %46 to i64
%48 = shl nsw i64 %47, 3
%49 = call i8* @malloc(i64 %48)
%50 = bitcast i8* %49 to double*
%51 = sext i32 %24 to i64
%52 = shl nsw i64 %51, 3
%53 = call i8* @malloc(i64 %52)
%54 = bitcast i8* %53 to double*
%55 = call i8* @malloc(i64 %48)
%56 = bitcast i8* %55 to double*
%57 = shl nsw i64 %47, 2
%58 = call i8* @malloc(i64 %57)
%59 = bitcast i8* %58 to float*
%60 = call i8* @malloc(i64 %57)
%61 = bitcast i8* %60 to i32*
%62 = call i32 (i8*, i32, i32, double*, ...) bitcast (i32 (...)* @read_data_double to i32 (i8*, i32, i32, double*, ...)*)(i8* %11, i32 %24, i32 %27, double* %50)
%63 = call i32 (i8*, i32, i32, float*, ...) bitcast (i32 (...)* @read_data_float to i32 (i8*, i32, i32, float*, ...)*)(i8* %11, i32 %24, i32 %27, float* %59)
%64 = call i32 (i8*, i32, i32, i32*, ...) bitcast (i32 (...)* @read_data_int to i32 (i8*, i32, i32, i32*, ...)*)(i8* %11, i32 %24, i32 %27, i32* %61)
%65 = call i32 (double*, i32, i32, double*, double, ...) bitcast (i32 (...)* @dble_sum2 to i32 (double*, i32, i32, double*, double, ...)*)(double* %50, i32 %24, i32 %27, double* %54, double 1.000000e-02)
%66 = call i32 (i8*, i32, i32, double*, ...) bitcast (i32 (...)* @write_data_double to i32 (i8*, i32, i32, double*, ...)*)(i8* %12, i32 %24, i32 1, double* %54)
%67 = call i32 (double*, i32, ...) bitcast (i32 (...)* @dble_sum to i32 (double*, i32, ...)*)(double* %50, i32 %46)
%68 = sitofp i32 %67 to double
store double %68, double* %10
%69 = call i32 (i8*, i32, i32, double*, ...) bitcast (i32 (...)* @write_data_double to i32 (i8*, i32, i32, double*, ...)*)(i8* %13, i32 1, i32 1, double* %10)
%70 = call i32 (double*, double*, i32, ...) bitcast (i32 (...)* @copy_vect to i32 (double*, double*, i32, ...)*)(double* %50, double* %56, i32 %46)
%71 = call i32 (i8*, i32, i32, double*, ...) bitcast (i32 (...)* @write_data_double to i32 (i8*, i32, i32, double*, ...)*)(i8* %14, i32 %24, i32 %27, double* %56)
%72 = call i32 (double*, i32, i32, ...) bitcast (i32 (...)* @transpose_double to i32 (double*, i32, i32, ...)*)(double* %50, i32 %27, i32 %24)
%73 = call i32 (i8*, i32, i32, double*, ...) bitcast (i32 (...)* @write_data_double to i32 (i8*, i32, i32, double*, ...)*)(i8* %15, i32 %27, i32 %24, double* %50)
%74 = call i32 (float*, i32, i32, ...) bitcast (i32 (...)* @transpose_float to i32 (float*, i32, i32, ...)*)(float* %59, i32 %27, i32 %24)
%75 = call i32 (i8*, i32, i32, float*, ...) bitcast (i32 (...)* @write_data_float to i32 (i8*, i32, i32, float*, ...)*)(i8* %16, i32 %27, i32 %24, float* %59)
%76 = call i32 (i32*, i32, i32, ...) bitcast (i32 (...)* @transpose_int to i32 (i32*, i32, i32, ...)*)(i32* %61, i32 %27, i32 %24)
%77 = call i32 (i8*, i32, i32, i32*, ...) bitcast (i32 (...)* @write_data_int to i32 (i8*, i32, i32, i32*, ...)*)(i8* %17, i32 %27, i32 %24, i32* %61)
ret i32 0
}