#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */

/* Type definitions */

/* Variables and functions */
scalar_t__ atoi(char *);
int /*<<< orphan*/ create_inv_cov_U(double *, double, double, double *, int,
                                    int, int);
int /*<<< orphan*/ create_m_U(double *, float *, double *, double *, double *,
                              int, int, int, int, int);
scalar_t__ malloc(int);
int /*<<< orphan*/ read_data_double(char *, int, int, double *);
int /*<<< orphan*/ read_data_float(char *, int, int, float *);
int /*<<< orphan*/ read_data_int(char *, int, int, int *);
int /*<<< orphan*/ strcpy(char *, char *);
int /*<<< orphan*/ write_data_double(char *, int, int, double *);
int main(int argc, char *argv[]) {
  char input_R[512];
  char input_C[512];
  char input_B[512];
  char input_V[512];
  char output_m_U1[512];
  char output_m_U2[512];
  char output_inv_cov_U1[512];
  char output_inv_cov_U2[512];
  int N, M, D, K;
  float *R;
  double *C, *B, *V, *m_U1, *m_U2, *inv_cov_U1, *inv_cov_U2;
  double alpha = 1.3;
  double alpha_R = 2.5;
  strcpy(input_R, argv[1]);
  strcpy(input_B, argv[2]);
  strcpy(input_V, argv[3]);
  strcpy(input_C, argv[4]);
  N = (int)atoi(argv[5]);
  M = (int)atoi(argv[6]);
  read_data_int(argv[7], 1, 1, &D);
  read_data_int(argv[8], 1, 1, &K);
  strcpy(output_m_U1, argv[9]);
  strcpy(output_m_U2, argv[10]);
  strcpy(output_inv_cov_U1, argv[11]);
  strcpy(output_inv_cov_U2, argv[12]);
  C = (double *)malloc(N * D * sizeof(double));
  R = (float *)malloc(N * M * sizeof(float));
  B = (double *)malloc(M * D * sizeof(double));
  V = (double *)malloc(M * K * sizeof(double));
  m_U1 = (double *)malloc(N * K * sizeof(double));
  m_U2 = (double *)malloc(N * K * sizeof(double));
  inv_cov_U1 = (double *)malloc(K * K * sizeof(double));
  inv_cov_U2 = (double *)malloc(K * K * sizeof(double));
  read_data_double(input_C, N, D, C);
  read_data_double(input_B, D, M, B);
  read_data_double(input_V, K, M, V);
  read_data_float(input_R, N, M, R);
  create_m_U(V, R, C, B, m_U1, M, N, D, K, 1);
  write_data_double(output_m_U1, N, K, m_U1);
  create_m_U(V, R, C, B, m_U2, M, N, D, K, 2);
  write_data_double(output_m_U2, N, K, m_U2);
  create_inv_cov_U(inv_cov_U1, alpha, alpha_R, V, K, M, 1);
  write_data_double(output_inv_cov_U1, K, K, inv_cov_U1);
  create_inv_cov_U(inv_cov_U2, alpha, alpha_R, V, K, M, 2);
  write_data_double(output_inv_cov_U2, K, K, inv_cov_U2);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x1090,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movsd  0xe57(%rip),%xmm0
movsd  %xmm0,-0x1068(%rbp)
ff
movsd  0xe3f(%rip),%xmm0
movsd  %xmm0,-0x1070(%rbp)
ff
lea    -0x210(%rbp),%rdi
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rsi
call   1030 <strcpy@plt>
lea    -0x610(%rbp),%rdi
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rsi
call   1030 <strcpy@plt>
lea    -0x810(%rbp),%rdi
mov    -0x10(%rbp),%rax
mov    0x18(%rax),%rsi
call   1030 <strcpy@plt>
lea    -0x410(%rbp),%rdi
mov    -0x10(%rbp),%rax
mov    0x20(%rax),%rsi
call   1030 <strcpy@plt>
mov    -0x10(%rbp),%rax
mov    0x28(%rax),%rdi
call   10a0 <atoi@plt>
mov    %eax,-0x1014(%rbp)
mov    -0x10(%rbp),%rax
mov    0x30(%rax),%rdi
call   10a0 <atoi@plt>
mov    %eax,-0x1018(%rbp)
mov    -0x10(%rbp),%rax
mov    0x38(%rax),%rdi
mov    $0x1,%edx
lea    -0x101c(%rbp),%rcx
mov    %edx,%esi
call   1060 <read_data_int@plt>
mov    -0x10(%rbp),%rax
mov    0x40(%rax),%rdi
mov    $0x1,%edx
lea    -0x1020(%rbp),%rcx
mov    %edx,%esi
call   1060 <read_data_int@plt>
lea    -0xa10(%rbp),%rdi
mov    -0x10(%rbp),%rax
mov    0x48(%rax),%rsi
call   1030 <strcpy@plt>
lea    -0xc10(%rbp),%rdi
mov    -0x10(%rbp),%rax
mov    0x50(%rax),%rsi
call   1030 <strcpy@plt>
lea    -0xe10(%rbp),%rdi
mov    -0x10(%rbp),%rax
mov    0x58(%rax),%rsi
call   1030 <strcpy@plt>
lea    -0x1010(%rbp),%rdi
mov    -0x10(%rbp),%rax
mov    0x60(%rax),%rsi
call   1030 <strcpy@plt>
mov    -0x1014(%rbp),%eax
imul   -0x101c(%rbp),%eax
cltq
shl    $0x3,%rax
mov    %eax,%edi
call   1080 <malloc@plt>
mov    %rax,-0x1030(%rbp)
mov    -0x1014(%rbp),%eax
imul   -0x1018(%rbp),%eax
cltq
shl    $0x2,%rax
mov    %eax,%edi
call   1080 <malloc@plt>
mov    %rax,-0x1028(%rbp)
mov    -0x1018(%rbp),%eax
imul   -0x101c(%rbp),%eax
cltq
shl    $0x3,%rax
mov    %eax,%edi
call   1080 <malloc@plt>
mov    %rax,-0x1038(%rbp)
mov    -0x1018(%rbp),%eax
imul   -0x1020(%rbp),%eax
cltq
shl    $0x3,%rax
mov    %eax,%edi
call   1080 <malloc@plt>
mov    %rax,-0x1040(%rbp)
mov    -0x1014(%rbp),%eax
imul   -0x1020(%rbp),%eax
cltq
shl    $0x3,%rax
mov    %eax,%edi
call   1080 <malloc@plt>
mov    %rax,-0x1048(%rbp)
mov    -0x1014(%rbp),%eax
imul   -0x1020(%rbp),%eax
cltq
shl    $0x3,%rax
mov    %eax,%edi
call   1080 <malloc@plt>
mov    %rax,-0x1050(%rbp)
mov    -0x1020(%rbp),%eax
imul   -0x1020(%rbp),%eax
cltq
shl    $0x3,%rax
mov    %eax,%edi
call   1080 <malloc@plt>
mov    %rax,-0x1058(%rbp)
mov    -0x1020(%rbp),%eax
imul   -0x1020(%rbp),%eax
cltq
shl    $0x3,%rax
mov    %eax,%edi
call   1080 <malloc@plt>
mov    %rax,-0x1060(%rbp)
lea    -0x410(%rbp),%rdi
mov    -0x1014(%rbp),%esi
mov    -0x101c(%rbp),%edx
mov    -0x1030(%rbp),%rcx
call   1050 <read_data_double@plt>
lea    -0x610(%rbp),%rdi
mov    -0x101c(%rbp),%esi
mov    -0x1018(%rbp),%edx
mov    -0x1038(%rbp),%rcx
call   1050 <read_data_double@plt>
lea    -0x810(%rbp),%rdi
mov    -0x1020(%rbp),%esi
mov    -0x1018(%rbp),%edx
mov    -0x1040(%rbp),%rcx
call   1050 <read_data_double@plt>
lea    -0x210(%rbp),%rdi
mov    -0x1014(%rbp),%esi
mov    -0x1018(%rbp),%edx
mov    -0x1028(%rbp),%rcx
call   10b0 <read_data_float@plt>
mov    -0x1040(%rbp),%rdi
mov    -0x1028(%rbp),%rsi
mov    -0x1030(%rbp),%rdx
mov    -0x1038(%rbp),%rcx
mov    -0x1048(%rbp),%r8
mov    -0x1018(%rbp),%r9d
mov    -0x1014(%rbp),%r11d
mov    -0x101c(%rbp),%r10d
mov    -0x1020(%rbp),%eax
mov    %r11d,(%rsp)
mov    %r10d,0x8(%rsp)
mov    %eax,0x10(%rsp)
movl   $0x1,0x18(%rsp)
call   1070 <create_m_U@plt>
lea    -0xa10(%rbp),%rdi
mov    -0x1014(%rbp),%esi
mov    -0x1020(%rbp),%edx
mov    -0x1048(%rbp),%rcx
call   1090 <write_data_double@plt>
mov    -0x1040(%rbp),%rdi
mov    -0x1028(%rbp),%rsi
mov    -0x1030(%rbp),%rdx
mov    -0x1038(%rbp),%rcx
mov    -0x1050(%rbp),%r8
mov    -0x1018(%rbp),%r9d
mov    -0x1014(%rbp),%r11d
mov    -0x101c(%rbp),%r10d
mov    -0x1020(%rbp),%eax
mov    %r11d,(%rsp)
mov    %r10d,0x8(%rsp)
mov    %eax,0x10(%rsp)
movl   $0x2,0x18(%rsp)
call   1070 <create_m_U@plt>
lea    -0xc10(%rbp),%rdi
mov    -0x1014(%rbp),%esi
mov    -0x1020(%rbp),%edx
mov    -0x1050(%rbp),%rcx
call   1090 <write_data_double@plt>
mov    -0x1058(%rbp),%rdi
movsd  -0x1068(%rbp),%xmm0
ff
movsd  -0x1070(%rbp),%xmm1
ff
mov    -0x1040(%rbp),%rsi
mov    -0x1020(%rbp),%edx
mov    -0x1018(%rbp),%ecx
mov    $0x1,%r8d
call   1040 <create_inv_cov_U@plt>
lea    -0xe10(%rbp),%rdi
mov    -0x1020(%rbp),%esi
mov    -0x1020(%rbp),%edx
mov    -0x1058(%rbp),%rcx
call   1090 <write_data_double@plt>
mov    -0x1060(%rbp),%rdi
movsd  -0x1068(%rbp),%xmm0
ff
movsd  -0x1070(%rbp),%xmm1
ff
mov    -0x1040(%rbp),%rsi
mov    -0x1020(%rbp),%edx
mov    -0x1018(%rbp),%ecx
mov    $0x2,%r8d
call   1040 <create_inv_cov_U@plt>
lea    -0x1010(%rbp),%rdi
mov    -0x1020(%rbp),%esi
mov    -0x1020(%rbp),%edx
mov    -0x1060(%rbp),%rcx
call   1090 <write_data_double@plt>
xor    %eax,%eax
add    $0x1090,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x1058,%rsp
mov    %rsi,%rbp
mov    0x8(%rsi),%rsi
lea    0xe50(%rsp),%rdi
call   1030 <strcpy@plt>
mov    0x10(%rbp),%rsi
lea    0xa50(%rsp),%rdi
call   1030 <strcpy@plt>
mov    0x18(%rbp),%rsi
lea    0x850(%rsp),%rdi
call   1030 <strcpy@plt>
mov    0x20(%rbp),%rsi
lea    0xc50(%rsp),%rdi
call   1030 <strcpy@plt>
mov    0x28(%rbp),%rdi
call   10a0 <atoi@plt>
mov    %rax,%r12
mov    0x30(%rbp),%rdi
call   10a0 <atoi@plt>
mov    %rax,%r14
mov    0x38(%rbp),%rdi
lea    0xc(%rsp),%rcx
mov    $0x1,%esi
mov    $0x1,%edx
call   1060 <read_data_int@plt>
mov    0x40(%rbp),%rdi
lea    0x8(%rsp),%rcx
mov    $0x1,%esi
mov    $0x1,%edx
call   1060 <read_data_int@plt>
mov    0x48(%rbp),%rsi
lea    0x650(%rsp),%rdi
call   1030 <strcpy@plt>
mov    0x50(%rbp),%rsi
lea    0x450(%rsp),%rdi
call   1030 <strcpy@plt>
mov    0x58(%rbp),%rsi
lea    0x250(%rsp),%rdi
call   1030 <strcpy@plt>
mov    0x60(%rbp),%rsi
lea    0x50(%rsp),%rdi
call   1030 <strcpy@plt>
lea    0x0(,%r12,8),%ebp
mov    0xc(%rsp),%edi
imul   %ebp,%edi
call   1080 <malloc@plt>
mov    %rax,%r13
mov    %r14d,%edi
imul   %r12d,%edi
shl    $0x2,%edi
call   1080 <malloc@plt>
mov    %rax,0x30(%rsp)
lea    0x0(,%r14,8),%ebx
mov    0xc(%rsp),%edi
imul   %ebx,%edi
call   1080 <malloc@plt>
mov    %rax,%r15
imul   0x8(%rsp),%ebx
mov    %ebx,%edi
call   1080 <malloc@plt>
mov    %rax,0x20(%rsp)
mov    0x8(%rsp),%edi
imul   %ebp,%edi
call   1080 <malloc@plt>
mov    %rax,0x28(%rsp)
imul   0x8(%rsp),%ebp
mov    %ebp,%edi
call   1080 <malloc@plt>
mov    %rax,0x38(%rsp)
mov    0x8(%rsp),%edi
imul   %edi,%edi
shl    $0x3,%edi
call   1080 <malloc@plt>
mov    %rax,0x40(%rsp)
mov    0x8(%rsp),%edi
imul   %edi,%edi
shl    $0x3,%edi
call   1080 <malloc@plt>
mov    %rax,0x48(%rsp)
mov    0xc(%rsp),%edx
lea    0xc50(%rsp),%rdi
mov    %r12,%rbp
mov    %r12,0x10(%rsp)
mov    %ebp,%esi
mov    %r13,%rbx
mov    %r13,0x18(%rsp)
mov    %r13,%rcx
call   1050 <read_data_double@plt>
mov    0xc(%rsp),%esi
lea    0xa50(%rsp),%rdi
mov    %r14,%r12
mov    %r12d,%edx
mov    %r15,%r13
mov    %r15,%rcx
call   1050 <read_data_double@plt>
mov    0x8(%rsp),%esi
lea    0x850(%rsp),%rdi
mov    %r12d,%edx
mov    0x20(%rsp),%r14
mov    %r14,%rcx
call   1050 <read_data_double@plt>
lea    0xe50(%rsp),%rdi
mov    %ebp,%esi
mov    %r12d,%edx
mov    0x30(%rsp),%r15
mov    %r15,%rcx
call   10b0 <read_data_float@plt>
mov    0xc(%rsp),%eax
mov    0x8(%rsp),%ebp
mov    %r14,%rdi
mov    %r15,%rsi
mov    %rbx,%rdx
mov    %r13,%rcx
mov    0x28(%rsp),%rbx
mov    %rbx,%r8
mov    %r12d,%r9d
push   $0x1
push   %rbp
push   %rax
mov    0x28(%rsp),%rbp
push   %rbp
call   1070 <create_m_U@plt>
add    $0x20,%rsp
mov    0x8(%rsp),%edx
lea    0x650(%rsp),%rdi
mov    %ebp,%esi
mov    %rbx,%rcx
call   1090 <write_data_double@plt>
mov    0xc(%rsp),%r10d
mov    0x8(%rsp),%eax
mov    %r14,%rdi
mov    %r15,%rsi
mov    0x18(%rsp),%rdx
mov    %r13,%rcx
mov    0x38(%rsp),%rbx
mov    %rbx,%r8
mov    %r12d,%r9d
push   $0x2
push   %rax
push   %r10
push   %rbp
call   1070 <create_m_U@plt>
add    $0x20,%rsp
mov    0x8(%rsp),%edx
lea    0x450(%rsp),%rdi
mov    %ebp,%esi
mov    %rbx,%rcx
call   1090 <write_data_double@plt>
mov    0x8(%rsp),%edx
movsd  0xbde(%rip),%xmm0
movsd  0xbde(%rip),%xmm1
mov    0x40(%rsp),%rbx
mov    %rbx,%rdi
mov    %r14,%rsi
mov    %r12d,%ecx
mov    $0x1,%r8d
call   1040 <create_inv_cov_U@plt>
mov    0x8(%rsp),%edx
lea    0x250(%rsp),%rdi
mov    %edx,%esi
mov    %rbx,%rcx
call   1090 <write_data_double@plt>
mov    0x8(%rsp),%edx
mov    0x48(%rsp),%rbx
mov    %rbx,%rdi
movsd  0xb93(%rip),%xmm0
movsd  0xb93(%rip),%xmm1
mov    %r14,%rsi
mov    %r12d,%ecx
mov    $0x2,%r8d
call   1040 <create_inv_cov_U@plt>
mov    0x8(%rsp),%edx
lea    0x50(%rsp),%rdi
mov    %edx,%esi
mov    %rbx,%rcx
call   1090 <write_data_double@plt>
xor    %eax,%eax
add    $0x1058,%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 [512 x i8]
%14 = alloca i32
%15 = alloca i32
%16 = alloca i32
%17 = alloca i32
%18 = alloca float*
%19 = alloca double*
%20 = alloca double*
%21 = alloca double*
%22 = alloca double*
%23 = alloca double*
%24 = alloca double*
%25 = alloca double*
%26 = alloca double
%27 = alloca double
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store double 1.300000e+00, double* %26
store double 2.500000e+00, double* %27
%28 = getelementptr inbounds [512 x i8], [512 x i8]* %6, i64 0, i64 0
%29 = load i8**, i8*** %5
%30 = getelementptr inbounds i8*, i8** %29, i64 1
%31 = load i8*, i8** %30
%32 = call i32 @strcpy(i8* %28, i8* %31)
%33 = getelementptr inbounds [512 x i8], [512 x i8]* %8, i64 0, i64 0
%34 = load i8**, i8*** %5
%35 = getelementptr inbounds i8*, i8** %34, i64 2
%36 = load i8*, i8** %35
%37 = call i32 @strcpy(i8* %33, i8* %36)
%38 = getelementptr inbounds [512 x i8], [512 x i8]* %9, i64 0, i64 0
%39 = load i8**, i8*** %5
%40 = getelementptr inbounds i8*, i8** %39, i64 3
%41 = load i8*, i8** %40
%42 = call i32 @strcpy(i8* %38, i8* %41)
%43 = getelementptr inbounds [512 x i8], [512 x i8]* %7, i64 0, i64 0
%44 = load i8**, i8*** %5
%45 = getelementptr inbounds i8*, i8** %44, i64 4
%46 = load i8*, i8** %45
%47 = call i32 @strcpy(i8* %43, i8* %46)
%48 = load i8**, i8*** %5
%49 = getelementptr inbounds i8*, i8** %48, i64 5
%50 = load i8*, i8** %49
%51 = call i64 @atoi(i8* %50)
%52 = trunc i64 %51 to i32
store i32 %52, i32* %14
%53 = load i8**, i8*** %5
%54 = getelementptr inbounds i8*, i8** %53, i64 6
%55 = load i8*, i8** %54
%56 = call i64 @atoi(i8* %55)
%57 = trunc i64 %56 to i32
store i32 %57, i32* %15
%58 = load i8**, i8*** %5
%59 = getelementptr inbounds i8*, i8** %58, i64 7
%60 = load i8*, i8** %59
%61 = call i32 @read_data_int(i8* %60, i32 1, i32 1, i32* %16)
%62 = load i8**, i8*** %5
%63 = getelementptr inbounds i8*, i8** %62, i64 8
%64 = load i8*, i8** %63
%65 = call i32 @read_data_int(i8* %64, i32 1, i32 1, i32* %17)
%66 = getelementptr inbounds [512 x i8], [512 x i8]* %10, i64 0, i64 0
%67 = load i8**, i8*** %5
%68 = getelementptr inbounds i8*, i8** %67, i64 9
%69 = load i8*, i8** %68
%70 = call i32 @strcpy(i8* %66, i8* %69)
%71 = getelementptr inbounds [512 x i8], [512 x i8]* %11, i64 0, i64 0
%72 = load i8**, i8*** %5
%73 = getelementptr inbounds i8*, i8** %72, i64 10
%74 = load i8*, i8** %73
%75 = call i32 @strcpy(i8* %71, i8* %74)
%76 = getelementptr inbounds [512 x i8], [512 x i8]* %12, i64 0, i64 0
%77 = load i8**, i8*** %5
%78 = getelementptr inbounds i8*, i8** %77, i64 11
%79 = load i8*, i8** %78
%80 = call i32 @strcpy(i8* %76, i8* %79)
%81 = getelementptr inbounds [512 x i8], [512 x i8]* %13, i64 0, i64 0
%82 = load i8**, i8*** %5
%83 = getelementptr inbounds i8*, i8** %82, i64 12
%84 = load i8*, i8** %83
%85 = call i32 @strcpy(i8* %81, i8* %84)
%86 = load i32, i32* %14
%87 = load i32, i32* %16
%88 = mul nsw i32 %86, %87
%89 = sext i32 %88 to i64
%90 = mul i64 %89, 8
%91 = trunc i64 %90 to i32
%92 = call i64 @malloc(i32 %91)
%93 = inttoptr i64 %92 to double*
store double* %93, double** %19
%94 = load i32, i32* %14
%95 = load i32, i32* %15
%96 = mul nsw i32 %94, %95
%97 = sext i32 %96 to i64
%98 = mul i64 %97, 4
%99 = trunc i64 %98 to i32
%100 = call i64 @malloc(i32 %99)
%101 = inttoptr i64 %100 to float*
store float* %101, float** %18
%102 = load i32, i32* %15
%103 = load i32, i32* %16
%104 = mul nsw i32 %102, %103
%105 = sext i32 %104 to i64
%106 = mul i64 %105, 8
%107 = trunc i64 %106 to i32
%108 = call i64 @malloc(i32 %107)
%109 = inttoptr i64 %108 to double*
store double* %109, double** %20
%110 = load i32, i32* %15
%111 = load i32, i32* %17
%112 = mul nsw i32 %110, %111
%113 = sext i32 %112 to i64
%114 = mul i64 %113, 8
%115 = trunc i64 %114 to i32
%116 = call i64 @malloc(i32 %115)
%117 = inttoptr i64 %116 to double*
store double* %117, double** %21
%118 = load i32, i32* %14
%119 = load i32, i32* %17
%120 = mul nsw i32 %118, %119
%121 = sext i32 %120 to i64
%122 = mul i64 %121, 8
%123 = trunc i64 %122 to i32
%124 = call i64 @malloc(i32 %123)
%125 = inttoptr i64 %124 to double*
store double* %125, double** %22
%126 = load i32, i32* %14
%127 = load i32, i32* %17
%128 = mul nsw i32 %126, %127
%129 = sext i32 %128 to i64
%130 = mul i64 %129, 8
%131 = trunc i64 %130 to i32
%132 = call i64 @malloc(i32 %131)
%133 = inttoptr i64 %132 to double*
store double* %133, double** %23
%134 = load i32, i32* %17
%135 = load i32, i32* %17
%136 = mul nsw i32 %134, %135
%137 = sext i32 %136 to i64
%138 = mul i64 %137, 8
%139 = trunc i64 %138 to i32
%140 = call i64 @malloc(i32 %139)
%141 = inttoptr i64 %140 to double*
store double* %141, double** %24
%142 = load i32, i32* %17
%143 = load i32, i32* %17
%144 = mul nsw i32 %142, %143
%145 = sext i32 %144 to i64
%146 = mul i64 %145, 8
%147 = trunc i64 %146 to i32
%148 = call i64 @malloc(i32 %147)
%149 = inttoptr i64 %148 to double*
store double* %149, double** %25
%150 = getelementptr inbounds [512 x i8], [512 x i8]* %7, i64 0, i64 0
%151 = load i32, i32* %14
%152 = load i32, i32* %16
%153 = load double*, double** %19
%154 = call i32 @read_data_double(i8* %150, i32 %151, i32 %152, double* %153)
%155 = getelementptr inbounds [512 x i8], [512 x i8]* %8, i64 0, i64 0
%156 = load i32, i32* %16
%157 = load i32, i32* %15
%158 = load double*, double** %20
%159 = call i32 @read_data_double(i8* %155, i32 %156, i32 %157, double* %158)
%160 = getelementptr inbounds [512 x i8], [512 x i8]* %9, i64 0, i64 0
%161 = load i32, i32* %17
%162 = load i32, i32* %15
%163 = load double*, double** %21
%164 = call i32 @read_data_double(i8* %160, i32 %161, i32 %162, double* %163)
%165 = getelementptr inbounds [512 x i8], [512 x i8]* %6, i64 0, i64 0
%166 = load i32, i32* %14
%167 = load i32, i32* %15
%168 = load float*, float** %18
%169 = call i32 @read_data_float(i8* %165, i32 %166, i32 %167, float* %168)
%170 = load double*, double** %21
%171 = load float*, float** %18
%172 = load double*, double** %19
%173 = load double*, double** %20
%174 = load double*, double** %22
%175 = load i32, i32* %15
%176 = load i32, i32* %14
%177 = load i32, i32* %16
%178 = load i32, i32* %17
%179 = call i32 @create_m_U(double* %170, float* %171, double* %172, double* %173, double* %174, i32 %175, i32 %176, i32 %177, i32 %178, i32 1)
%180 = getelementptr inbounds [512 x i8], [512 x i8]* %10, i64 0, i64 0
%181 = load i32, i32* %14
%182 = load i32, i32* %17
%183 = load double*, double** %22
%184 = call i32 @write_data_double(i8* %180, i32 %181, i32 %182, double* %183)
%185 = load double*, double** %21
%186 = load float*, float** %18
%187 = load double*, double** %19
%188 = load double*, double** %20
%189 = load double*, double** %23
%190 = load i32, i32* %15
%191 = load i32, i32* %14
%192 = load i32, i32* %16
%193 = load i32, i32* %17
%194 = call i32 @create_m_U(double* %185, float* %186, double* %187, double* %188, double* %189, i32 %190, i32 %191, i32 %192, i32 %193, i32 2)
%195 = getelementptr inbounds [512 x i8], [512 x i8]* %11, i64 0, i64 0
%196 = load i32, i32* %14
%197 = load i32, i32* %17
%198 = load double*, double** %23
%199 = call i32 @write_data_double(i8* %195, i32 %196, i32 %197, double* %198)
%200 = load double*, double** %24
%201 = load double, double* %26
%202 = load double, double* %27
%203 = load double*, double** %21
%204 = load i32, i32* %17
%205 = load i32, i32* %15
%206 = call i32 @create_inv_cov_U(double* %200, double %201, double %202, double* %203, i32 %204, i32 %205, i32 1)
%207 = getelementptr inbounds [512 x i8], [512 x i8]* %12, i64 0, i64 0
%208 = load i32, i32* %17
%209 = load i32, i32* %17
%210 = load double*, double** %24
%211 = call i32 @write_data_double(i8* %207, i32 %208, i32 %209, double* %210)
%212 = load double*, double** %25
%213 = load double, double* %26
%214 = load double, double* %27
%215 = load double*, double** %21
%216 = load i32, i32* %17
%217 = load i32, i32* %15
%218 = call i32 @create_inv_cov_U(double* %212, double %213, double %214, double* %215, i32 %216, i32 %217, i32 2)
%219 = getelementptr inbounds [512 x i8], [512 x i8]* %13, i64 0, i64 0
%220 = load i32, i32* %17
%221 = load i32, i32* %17
%222 = load double*, double** %25
%223 = call i32 @write_data_double(i8* %219, i32 %220, i32 %221, double* %222)
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 [512 x i8]
%11 = alloca i32
%12 = alloca i32
%13 = getelementptr inbounds [512 x i8], [512 x i8]* %3, i64 0, i64 0
%14 = getelementptr inbounds [512 x i8], [512 x i8]* %4, i64 0, i64 0
%15 = getelementptr inbounds [512 x i8], [512 x i8]* %5, i64 0, i64 0
%16 = getelementptr inbounds [512 x i8], [512 x i8]* %6, i64 0, i64 0
%17 = getelementptr inbounds [512 x i8], [512 x i8]* %7, i64 0, i64 0
%18 = getelementptr inbounds [512 x i8], [512 x i8]* %8, i64 0, i64 0
%19 = getelementptr inbounds [512 x i8], [512 x i8]* %9, i64 0, i64 0
%20 = getelementptr inbounds [512 x i8], [512 x i8]* %10, i64 0, i64 0
%21 = bitcast i32* %11 to i8*
%22 = bitcast i32* %12 to i8*
%23 = getelementptr inbounds i8*, i8** %1, i64 1
%24 = load i8*, i8** %23
%25 = call i32 @strcpy(i8* %13, i8* %24)
%26 = getelementptr inbounds i8*, i8** %1, i64 2
%27 = load i8*, i8** %26
%28 = call i32 @strcpy(i8* %15, i8* %27)
%29 = getelementptr inbounds i8*, i8** %1, i64 3
%30 = load i8*, i8** %29
%31 = call i32 @strcpy(i8* %16, i8* %30)
%32 = getelementptr inbounds i8*, i8** %1, i64 4
%33 = load i8*, i8** %32
%34 = call i32 @strcpy(i8* %14, i8* %33)
%35 = getelementptr inbounds i8*, i8** %1, i64 5
%36 = load i8*, i8** %35
%37 = call i64 @atoi(i8* %36)
%38 = trunc i64 %37 to i32
%39 = getelementptr inbounds i8*, i8** %1, i64 6
%40 = load i8*, i8** %39
%41 = call i64 @atoi(i8* %40)
%42 = trunc i64 %41 to i32
%43 = getelementptr inbounds i8*, i8** %1, i64 7
%44 = load i8*, i8** %43
%45 = call i32 @read_data_int(i8* %44, i32 1, i32 1, i32* %11)
%46 = getelementptr inbounds i8*, i8** %1, i64 8
%47 = load i8*, i8** %46
%48 = call i32 @read_data_int(i8* %47, i32 1, i32 1, i32* %12)
%49 = getelementptr inbounds i8*, i8** %1, i64 9
%50 = load i8*, i8** %49
%51 = call i32 @strcpy(i8* %17, i8* %50)
%52 = getelementptr inbounds i8*, i8** %1, i64 10
%53 = load i8*, i8** %52
%54 = call i32 @strcpy(i8* %18, i8* %53)
%55 = getelementptr inbounds i8*, i8** %1, i64 11
%56 = load i8*, i8** %55
%57 = call i32 @strcpy(i8* %19, i8* %56)
%58 = getelementptr inbounds i8*, i8** %1, i64 12
%59 = load i8*, i8** %58
%60 = call i32 @strcpy(i8* %20, i8* %59)
%61 = load i32, i32* %11
%62 = shl i32 %38, 3
%63 = mul i32 %62, %61
%64 = call i64 @malloc(i32 %63)
%65 = inttoptr i64 %64 to double*
%66 = mul i64 %41, %37
%67 = trunc i64 %66 to i32
%68 = shl i32 %67, 2
%69 = call i64 @malloc(i32 %68)
%70 = inttoptr i64 %69 to float*
%71 = load i32, i32* %11
%72 = shl i32 %42, 3
%73 = mul i32 %72, %71
%74 = call i64 @malloc(i32 %73)
%75 = inttoptr i64 %74 to double*
%76 = load i32, i32* %12
%77 = mul i32 %72, %76
%78 = call i64 @malloc(i32 %77)
%79 = inttoptr i64 %78 to double*
%80 = load i32, i32* %12
%81 = mul i32 %62, %80
%82 = call i64 @malloc(i32 %81)
%83 = inttoptr i64 %82 to double*
%84 = load i32, i32* %12
%85 = mul i32 %62, %84
%86 = call i64 @malloc(i32 %85)
%87 = inttoptr i64 %86 to double*
%88 = load i32, i32* %12
%89 = shl i32 %88, 3
%90 = mul i32 %89, %88
%91 = call i64 @malloc(i32 %90)
%92 = inttoptr i64 %91 to double*
%93 = load i32, i32* %12
%94 = shl i32 %93, 3
%95 = mul i32 %94, %93
%96 = call i64 @malloc(i32 %95)
%97 = inttoptr i64 %96 to double*
%98 = load i32, i32* %11
%99 = call i32 @read_data_double(i8* %14, i32 %38, i32 %98, double* %65)
%100 = load i32, i32* %11
%101 = call i32 @read_data_double(i8* %15, i32 %100, i32 %42, double* %75)
%102 = load i32, i32* %12
%103 = call i32 @read_data_double(i8* %16, i32 %102, i32 %42, double* %79)
%104 = call i32 @read_data_float(i8* %13, i32 %38, i32 %42, float* %70)
%105 = load i32, i32* %11
%106 = load i32, i32* %12
%107 = call i32 @create_m_U(double* %79, float* %70, double* %65, double* %75, double* %83, i32 %42, i32 %38, i32 %105, i32 %106, i32 1)
%108 = load i32, i32* %12
%109 = call i32 @write_data_double(i8* %17, i32 %38, i32 %108, double* %83)
%110 = load i32, i32* %11
%111 = load i32, i32* %12
%112 = call i32 @create_m_U(double* %79, float* %70, double* %65, double* %75, double* %87, i32 %42, i32 %38, i32 %110, i32 %111, i32 2)
%113 = load i32, i32* %12
%114 = call i32 @write_data_double(i8* %18, i32 %38, i32 %113, double* %87)
%115 = load i32, i32* %12
%116 = call i32 @create_inv_cov_U(double* %92, double 1.300000e+00, double 2.500000e+00, double* %79, i32 %115, i32 %42, i32 1)
%117 = load i32, i32* %12
%118 = call i32 @write_data_double(i8* %19, i32 %117, i32 %117, double* %92)
%119 = load i32, i32* %12
%120 = call i32 @create_inv_cov_U(double* %97, double 1.300000e+00, double 2.500000e+00, double* %79, i32 %119, i32 %42, i32 2)
%121 = load i32, i32* %12
%122 = call i32 @write_data_double(i8* %20, i32 %121, i32 %121, double* %97)
ret i32 0
}