#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_cds(int, char **, long long *, double *,
                                     char *, char *);
int /*<<< orphan*/ createDataSet(char *, long long, double, char *);
int /*<<< orphan*/ print_head_snmf();
int main(int argc, char *argv[]) {
  char input_file[512];
  char output_file[512] = "";
  double e = 0.05;
  long long seed = -1;
  print_head_snmf();
  analyse_param_cds(argc, argv, &seed, &e, input_file, output_file);
  createDataSet(input_file, (long long)seed, e, output_file);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x420,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
lea    -0x410(%rbp),%rdi
xor    %esi,%esi
mov    $0x200,%edx
call   1040 <memset@plt>
movsd  0xe8c(%rip),%xmm0
movsd  %xmm0,-0x418(%rbp)
ff
movq   $0xffffffffffffffff,-0x420(%rbp)
ff ff ff ff
mov    $0x0,%al
call   1060 <print_head_snmf@plt>
mov    -0x8(%rbp),%edi
mov    -0x10(%rbp),%rsi
lea    -0x210(%rbp),%r8
lea    -0x410(%rbp),%r9
lea    -0x420(%rbp),%rdx
lea    -0x418(%rbp),%rcx
call   1050 <analyse_param_cds@plt>
lea    -0x210(%rbp),%rdi
mov    -0x420(%rbp),%rsi
movsd  -0x418(%rbp),%xmm0
ff
lea    -0x410(%rbp),%rdx
call   1030 <createDataSet@plt>
xor    %eax,%eax
add    $0x420,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %rbx
sub    $0x418,%rsp
mov    %rsi,%rbx
mov    %edi,%ebp
lea    0x10(%rsp),%r14
mov    $0x200,%edx
mov    %r14,%rdi
xor    %esi,%esi
call   1040 <memset@plt>
movabs $0x3fa999999999999a,%rax
99 a9 3f
mov    %rax,0x8(%rsp)
movq   $0xffffffffffffffff,(%rsp)
ff
xor    %eax,%eax
call   1060 <print_head_snmf@plt>
mov    %rsp,%rdx
lea    0x8(%rsp),%rcx
lea    0x210(%rsp),%r15
mov    %ebp,%edi
mov    %rbx,%rsi
mov    %r15,%r8
mov    %r14,%r9
call   1050 <analyse_param_cds@plt>
mov    (%rsp),%rsi
movsd  0x8(%rsp),%xmm0
mov    %r15,%rdi
mov    %r14,%rdx
call   1030 <createDataSet@plt>
xor    %eax,%eax
add    $0x418,%rsp
pop    %rbx
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 double
%9 = alloca i64
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%10 = bitcast [512 x i8]* %7 to i8*
store double 5.000000e-02, double* %8
store i64 -1, i64* %9
%11 = call i32 (...) @print_head_snmf()
%12 = load i32, i32* %4
%13 = load i8**, i8*** %5
%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 = call i32 @analyse_param_cds(i32 %12, i8** %13, i64* %9, double* %8, i8* %14, i8* %15)
%17 = getelementptr inbounds [512 x i8], [512 x i8]* %6, i64 0, i64 0
%18 = load i64, i64* %9
%19 = load double, double* %8
%20 = getelementptr inbounds [512 x i8], [512 x i8]* %7, i64 0, i64 0
%21 = call i32 @createDataSet(i8* %17, i64 %18, double %19, i8* %20)
ret i32 0
}

LLVM IR (-O2):
define i32 @main(i32 %0, i8** %1) {
%3 = alloca [512 x i8]
%4 = alloca [512 x i8]
%5 = alloca double
%6 = alloca i64
%7 = getelementptr inbounds [512 x i8], [512 x i8]* %3, i64 0, i64 0
%8 = getelementptr inbounds [512 x i8], [512 x i8]* %4, i64 0, i64 0
%9 = bitcast double* %5 to i8*
store double 5.000000e-02, double* %5
%10 = bitcast i64* %6 to i8*
store i64 -1, i64* %6
%11 = tail call i32 (...) @print_head_snmf()
%12 = call i32 @analyse_param_cds(i32 %0, i8** %1, i64* %6, double* %5, i8* %7, i8* %8)
%13 = load i64, i64* %6
%14 = load double, double* %5
%15 = call i32 @createDataSet(i8* %7, i64 %13, double %14, i8* %8)
ret i32 0
}