#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_CCt(double *, double *, int, int);
int /*<<< orphan*/ create_inv_cov_beta(double *, double *, double, int,
                                       double *);
int /*<<< orphan*/ create_m_beta(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_U[512];
  char input_V[512];
  char input_alpha_beta[512];
  char output_m_beta1[512];
  char output_m_beta2[512];
  char output_CCt[512];
  char output_inv_cov_beta[512];
  int N, M, D, K;
  float *R;
  double *C, *U, *V, *m_beta1, *m_beta2, *CCt, *inv_cov_beta, *alpha_beta;
  strcpy(input_R, argv[1]);
  strcpy(input_U, argv[2]);
  strcpy(input_V, argv[3]);
  strcpy(input_C, argv[4]);
  strcpy(input_alpha_beta, argv[5]);
  N = (int)atoi(argv[6]);
  M = (int)atoi(argv[7]);
  read_data_int(argv[8], 1, 1, &D);
  read_data_int(argv[9], 1, 1, &K);
  strcpy(output_m_beta1, argv[10]);
  strcpy(output_m_beta2, argv[11]);
  strcpy(output_CCt, argv[12]);
  strcpy(output_inv_cov_beta, argv[13]);
  C = (double *)malloc(N * D * sizeof(double));
  R = (float *)malloc(N * M * sizeof(float));
  U = (double *)malloc(N * K * sizeof(double));
  V = (double *)malloc(M * K * sizeof(double));
  m_beta1 = (double *)malloc(M * D * sizeof(double));
  m_beta2 = (double *)malloc(M * D * sizeof(double));
  CCt = (double *)malloc(D * D * sizeof(double));
  inv_cov_beta = (double *)malloc(D * D * sizeof(double));
  alpha_beta = (double *)malloc(D * sizeof(double));
  read_data_double(input_C, N, D, C);
  read_data_double(input_U, K, N, U);
  read_data_double(input_V, K, M, V);
  read_data_float(input_R, N, M, R);
  read_data_double(input_alpha_beta, D, 1, alpha_beta);
  create_m_beta(C, R, U, V, m_beta1, M, N, D, K, 1);
  write_data_double(output_m_beta1, D, M, m_beta1);
  create_m_beta(C, R, U, V, m_beta2, M, N, D, K, 2);
  write_data_double(output_m_beta2, D, M, m_beta2);
  create_CCt(CCt, C, D, N);
  write_data_double(output_CCt, D, D, CCt);
  create_inv_cov_beta(inv_cov_beta, alpha_beta, 2.5, D, CCt);
  write_data_double(output_inv_cov_beta, D, D, inv_cov_beta);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x1290,%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>
lea    -0x610(%rbp),%rdi
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rsi
call   1040 <strcpy@plt>
lea    -0x810(%rbp),%rdi
mov    -0x10(%rbp),%rax
mov    0x18(%rax),%rsi
call   1040 <strcpy@plt>
lea    -0x410(%rbp),%rdi
mov    -0x10(%rbp),%rax
mov    0x20(%rax),%rsi
call   1040 <strcpy@plt>
lea    -0xa10(%rbp),%rdi
mov    -0x10(%rbp),%rax
mov    0x28(%rax),%rsi
call   1040 <strcpy@plt>
mov    -0x10(%rbp),%rax
mov    0x30(%rax),%rdi
call   10b0 <atoi@plt>
mov    %eax,-0x1214(%rbp)
mov    -0x10(%rbp),%rax
mov    0x38(%rax),%rdi
call   10b0 <atoi@plt>
mov    %eax,-0x1218(%rbp)
mov    -0x10(%rbp),%rax
mov    0x40(%rax),%rdi
mov    $0x1,%edx
lea    -0x121c(%rbp),%rcx
mov    %edx,%esi
call   1080 <read_data_int@plt>
mov    -0x10(%rbp),%rax
mov    0x48(%rax),%rdi
mov    $0x1,%edx
lea    -0x1220(%rbp),%rcx
mov    %edx,%esi
call   1080 <read_data_int@plt>
lea    -0xc10(%rbp),%rdi
mov    -0x10(%rbp),%rax
mov    0x50(%rax),%rsi
call   1040 <strcpy@plt>
lea    -0xe10(%rbp),%rdi
mov    -0x10(%rbp),%rax
mov    0x58(%rax),%rsi
call   1040 <strcpy@plt>
lea    -0x1010(%rbp),%rdi
mov    -0x10(%rbp),%rax
mov    0x60(%rax),%rsi
call   1040 <strcpy@plt>
lea    -0x1210(%rbp),%rdi
mov    -0x10(%rbp),%rax
mov    0x68(%rax),%rsi
call   1040 <strcpy@plt>
mov    -0x1214(%rbp),%eax
imul   -0x121c(%rbp),%eax
cltq
shl    $0x3,%rax
mov    %eax,%edi
call   1090 <malloc@plt>
mov    %rax,-0x1230(%rbp)
mov    -0x1214(%rbp),%eax
imul   -0x1218(%rbp),%eax
cltq
shl    $0x2,%rax
mov    %eax,%edi
call   1090 <malloc@plt>
mov    %rax,-0x1228(%rbp)
mov    -0x1214(%rbp),%eax
imul   -0x1220(%rbp),%eax
cltq
shl    $0x3,%rax
mov    %eax,%edi
call   1090 <malloc@plt>
mov    %rax,-0x1238(%rbp)
mov    -0x1218(%rbp),%eax
imul   -0x1220(%rbp),%eax
cltq
shl    $0x3,%rax
mov    %eax,%edi
call   1090 <malloc@plt>
mov    %rax,-0x1240(%rbp)
mov    -0x1218(%rbp),%eax
imul   -0x121c(%rbp),%eax
cltq
shl    $0x3,%rax
mov    %eax,%edi
call   1090 <malloc@plt>
mov    %rax,-0x1248(%rbp)
mov    -0x1218(%rbp),%eax
imul   -0x121c(%rbp),%eax
cltq
shl    $0x3,%rax
mov    %eax,%edi
call   1090 <malloc@plt>
mov    %rax,-0x1250(%rbp)
mov    -0x121c(%rbp),%eax
imul   -0x121c(%rbp),%eax
cltq
shl    $0x3,%rax
mov    %eax,%edi
call   1090 <malloc@plt>
mov    %rax,-0x1258(%rbp)
mov    -0x121c(%rbp),%eax
imul   -0x121c(%rbp),%eax
cltq
shl    $0x3,%rax
mov    %eax,%edi
call   1090 <malloc@plt>
mov    %rax,-0x1260(%rbp)
movslq -0x121c(%rbp),%rax
shl    $0x3,%rax
mov    %eax,%edi
call   1090 <malloc@plt>
mov    %rax,-0x1268(%rbp)
lea    -0x410(%rbp),%rdi
mov    -0x1214(%rbp),%esi
mov    -0x121c(%rbp),%edx
mov    -0x1230(%rbp),%rcx
call   1060 <read_data_double@plt>
lea    -0x610(%rbp),%rdi
mov    -0x1220(%rbp),%esi
mov    -0x1214(%rbp),%edx
mov    -0x1238(%rbp),%rcx
call   1060 <read_data_double@plt>
lea    -0x810(%rbp),%rdi
mov    -0x1220(%rbp),%esi
mov    -0x1218(%rbp),%edx
mov    -0x1240(%rbp),%rcx
call   1060 <read_data_double@plt>
lea    -0x210(%rbp),%rdi
mov    -0x1214(%rbp),%esi
mov    -0x1218(%rbp),%edx
mov    -0x1228(%rbp),%rcx
call   10c0 <read_data_float@plt>
lea    -0xa10(%rbp),%rdi
mov    -0x121c(%rbp),%esi
mov    -0x1268(%rbp),%rcx
mov    $0x1,%edx
call   1060 <read_data_double@plt>
mov    -0x1230(%rbp),%rdi
mov    -0x1228(%rbp),%rsi
mov    -0x1238(%rbp),%rdx
mov    -0x1240(%rbp),%rcx
mov    -0x1248(%rbp),%r8
mov    -0x1218(%rbp),%r9d
mov    -0x1214(%rbp),%r11d
mov    -0x121c(%rbp),%r10d
mov    -0x1220(%rbp),%eax
mov    %r11d,(%rsp)
mov    %r10d,0x8(%rsp)
mov    %eax,0x10(%rsp)
movl   $0x1,0x18(%rsp)
call   1050 <create_m_beta@plt>
lea    -0xc10(%rbp),%rdi
mov    -0x121c(%rbp),%esi
mov    -0x1218(%rbp),%edx
mov    -0x1248(%rbp),%rcx
call   10a0 <write_data_double@plt>
mov    -0x1230(%rbp),%rdi
mov    -0x1228(%rbp),%rsi
mov    -0x1238(%rbp),%rdx
mov    -0x1240(%rbp),%rcx
mov    -0x1250(%rbp),%r8
mov    -0x1218(%rbp),%r9d
mov    -0x1214(%rbp),%r11d
mov    -0x121c(%rbp),%r10d
mov    -0x1220(%rbp),%eax
mov    %r11d,(%rsp)
mov    %r10d,0x8(%rsp)
mov    %eax,0x10(%rsp)
movl   $0x2,0x18(%rsp)
call   1050 <create_m_beta@plt>
lea    -0xe10(%rbp),%rdi
mov    -0x121c(%rbp),%esi
mov    -0x1218(%rbp),%edx
mov    -0x1250(%rbp),%rcx
call   10a0 <write_data_double@plt>
mov    -0x1258(%rbp),%rdi
mov    -0x1230(%rbp),%rsi
mov    -0x121c(%rbp),%edx
mov    -0x1214(%rbp),%ecx
call   1030 <create_CCt@plt>
lea    -0x1010(%rbp),%rdi
mov    -0x121c(%rbp),%esi
mov    -0x121c(%rbp),%edx
mov    -0x1258(%rbp),%rcx
call   10a0 <write_data_double@plt>
mov    -0x1260(%rbp),%rdi
mov    -0x1268(%rbp),%rsi
mov    -0x121c(%rbp),%edx
mov    -0x1258(%rbp),%rcx
movsd  0xa2d(%rip),%xmm0
call   1070 <create_inv_cov_beta@plt>
lea    -0x1210(%rbp),%rdi
mov    -0x121c(%rbp),%esi
mov    -0x121c(%rbp),%edx
mov    -0x1260(%rbp),%rcx
call   10a0 <write_data_double@plt>
xor    %eax,%eax
add    $0x1290,%rsp
pop    %rbp
ret

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