#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 */
int /*<<< orphan*/ analyse_param_pca(int, char **, char *, char *, char *,
                                     char *, char *, int *, int *, int *);
int /*<<< orphan*/ pca(char *, char *, char *, char *, char *, int *, int *,
                       int *, int, int);
int main(int argc, char *argv[]) {
  int n = 0;
  int L = 0;
  int K = 0;
  int s = 0;
  int c = 0;
  char input_file[512];
  char output_eva_file[512] = "";
  char output_eve_file[512] = "";
  char output_sdev_file[512] = "";
  char output_x_file[512] = "";
  analyse_param_pca(argc, argv, input_file, output_eva_file, output_eve_file,
                    output_sdev_file, output_x_file, &K, &c, &s);
  pca(input_file, output_eva_file, output_eve_file, output_sdev_file,
      output_x_file, &n, &L, &K, c, s);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
push   %rbx
sub    $0xa48,%rsp
movl   $0x0,-0xc(%rbp)
mov    %edi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
movl   $0x0,-0x1c(%rbp)
movl   $0x0,-0x20(%rbp)
movl   $0x0,-0x24(%rbp)
movl   $0x0,-0x28(%rbp)
movl   $0x0,-0x2c(%rbp)
lea    -0x430(%rbp),%rdi
xor    %esi,%esi
mov    $0x200,%edx
call   1030 <memset@plt>
lea    -0x630(%rbp),%rdi
xor    %esi,%esi
mov    $0x200,%edx
call   1030 <memset@plt>
lea    -0x830(%rbp),%rdi
xor    %esi,%esi
mov    $0x200,%edx
call   1030 <memset@plt>
lea    -0xa30(%rbp),%rdi
xor    %esi,%esi
mov    $0x200,%edx
call   1030 <memset@plt>
mov    -0x10(%rbp),%edi
mov    -0x18(%rbp),%rsi
lea    -0x230(%rbp),%rdx
lea    -0x430(%rbp),%rcx
lea    -0x630(%rbp),%r8
lea    -0x830(%rbp),%r9
lea    -0xa30(%rbp),%rbx
lea    -0x24(%rbp),%r11
lea    -0x2c(%rbp),%r10
lea    -0x28(%rbp),%rax
mov    %rbx,(%rsp)
mov    %r11,0x8(%rsp)
mov    %r10,0x10(%rsp)
mov    %rax,0x18(%rsp)
call   1050 <analyse_param_pca@plt>
lea    -0x230(%rbp),%rdi
lea    -0x430(%rbp),%rsi
lea    -0x630(%rbp),%rdx
lea    -0x830(%rbp),%rcx
lea    -0xa30(%rbp),%r8
mov    -0x2c(%rbp),%r10d
mov    -0x28(%rbp),%eax
lea    -0x1c(%rbp),%r9
lea    -0x20(%rbp),%rbx
lea    -0x24(%rbp),%r11
mov    %rbx,(%rsp)
mov    %r11,0x8(%rsp)
mov    %r10d,0x10(%rsp)
mov    %eax,0x18(%rsp)
call   1040 <pca@plt>
xor    %eax,%eax
add    $0xa48,%rsp
pop    %rbx
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0xa28,%rsp
mov    %rsi,%r12
mov    %edi,%ebp
movl   $0x0,0x1c(%rsp)
movl   $0x0,0x18(%rsp)
movl   $0x0,0x14(%rsp)
movl   $0x0,0x10(%rsp)
movl   $0x0,0xc(%rsp)
lea    0x20(%rsp),%rdi
mov    $0x200,%edx
xor    %esi,%esi
call   1030 <memset@plt>
lea    0x620(%rsp),%r15
mov    $0x200,%edx
mov    %r15,%rdi
xor    %esi,%esi
call   1030 <memset@plt>
lea    0x420(%rsp),%r13
mov    $0x200,%edx
mov    %r13,%rdi
xor    %esi,%esi
call   1030 <memset@plt>
lea    0x220(%rsp),%rbx
mov    $0x200,%edx
mov    %rbx,%rdi
xor    %esi,%esi
call   1030 <memset@plt>
lea    0x10(%rsp),%r11
lea    0xc(%rsp),%r10
lea    0x14(%rsp),%rax
lea    0x820(%rsp),%r14
mov    %ebp,%edi
mov    %r12,%rsi
mov    %r14,%rdx
lea    0x20(%rsp),%rcx
mov    %r15,%r8
mov    %r13,%r9
push   %r11
push   %r10
push   %rax
mov    %rax,%r12
push   %rbx
call   1050 <analyse_param_pca@plt>
add    $0x20,%rsp
mov    0xc(%rsp),%eax
mov    0x10(%rsp),%ebp
lea    0x18(%rsp),%r10
lea    0x1c(%rsp),%r9
mov    %r14,%rdi
lea    0x20(%rsp),%rsi
mov    %r15,%rdx
mov    %r13,%rcx
mov    %rbx,%r8
push   %rbp
push   %rax
push   %r12
push   %r10
call   1040 <pca@plt>
add    $0x20,%rsp
xor    %eax,%eax
add    $0xa28,%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 i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
%11 = alloca [512 x i8]
%12 = alloca [512 x i8]
%13 = alloca [512 x i8]
%14 = alloca [512 x i8]
%15 = alloca [512 x i8]
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i32 0, i32* %6
store i32 0, i32* %7
store i32 0, i32* %8
store i32 0, i32* %9
store i32 0, i32* %10
%16 = bitcast [512 x i8]* %12 to i8*
%17 = bitcast [512 x i8]* %13 to i8*
%18 = bitcast [512 x i8]* %14 to i8*
%19 = bitcast [512 x i8]* %15 to i8*
%20 = load i32, i32* %4
%21 = load i8**, i8*** %5
%22 = getelementptr inbounds [512 x i8], [512 x i8]* %11, i64 0, i64 0
%23 = getelementptr inbounds [512 x i8], [512 x i8]* %12, i64 0, i64 0
%24 = getelementptr inbounds [512 x i8], [512 x i8]* %13, i64 0, i64 0
%25 = getelementptr inbounds [512 x i8], [512 x i8]* %14, i64 0, i64 0
%26 = getelementptr inbounds [512 x i8], [512 x i8]* %15, i64 0, i64 0
%27 = call i32 @analyse_param_pca(i32 %20, i8** %21, i8* %22, i8* %23, i8* %24, i8* %25, i8* %26, i32* %8, i32* %10, i32* %9)
%28 = getelementptr inbounds [512 x i8], [512 x i8]* %11, i64 0, i64 0
%29 = getelementptr inbounds [512 x i8], [512 x i8]* %12, i64 0, i64 0
%30 = getelementptr inbounds [512 x i8], [512 x i8]* %13, i64 0, i64 0
%31 = getelementptr inbounds [512 x i8], [512 x i8]* %14, i64 0, i64 0
%32 = getelementptr inbounds [512 x i8], [512 x i8]* %15, i64 0, i64 0
%33 = load i32, i32* %10
%34 = load i32, i32* %9
%35 = call i32 @pca(i8* %28, i8* %29, i8* %30, i8* %31, i8* %32, i32* %6, i32* %7, i32* %8, i32 %33, i32 %34)
ret i32 0
}

LLVM IR (-O2):
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%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 = bitcast i32* %3 to i8*
store i32 0, i32* %3
%14 = bitcast i32* %4 to i8*
store i32 0, i32* %4
%15 = bitcast i32* %5 to i8*
store i32 0, i32* %5
%16 = bitcast i32* %6 to i8*
store i32 0, i32* %6
%17 = bitcast i32* %7 to i8*
store i32 0, i32* %7
%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 = getelementptr inbounds [512 x i8], [512 x i8]* %11, i64 0, i64 0
%22 = getelementptr inbounds [512 x i8], [512 x i8]* %12, i64 0, i64 0
%23 = call i32 @analyse_param_pca(i32 %0, i8** %1, i8* %18, i8* %19, i8* %20, i8* %21, i8* %22, i32* %5, i32* %7, i32* %6)
%24 = load i32, i32* %7
%25 = load i32, i32* %6
%26 = call i32 @pca(i8* %18, i8* %19, i8* %20, i8* %21, i8* %22, i32* %3, i32* %4, i32* %5, i32 %24, i32 %25)
ret i32 0
}