#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 **, int *, long long *, double *,
                                     char *, char *);
int /*<<< orphan*/ print_summary_cds(int, int, int, long long, double, char *,
                                     char *);
int main(int argc, char *argv[]) {
  int K;
  long long s = 1;
  int m = 2;
  double e = 0.05;
  char input[512];
  char output[512] = "";
  analyse_param_cds(argc, argv, &m, &s, &e, input, output);
  print_summary_cds(10, 100, m, s, e, input, output);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x440,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movq   $0x1,-0x20(%rbp)
movl   $0x2,-0x24(%rbp)
movsd  0xea0(%rip),%xmm0
movsd  %xmm0,-0x30(%rbp)
lea    -0x430(%rbp),%rdi
xor    %esi,%esi
mov    $0x200,%edx
call   1030 <memset@plt>
mov    -0x8(%rbp),%edi
mov    -0x10(%rbp),%rsi
lea    -0x230(%rbp),%r9
lea    -0x430(%rbp),%rax
lea    -0x24(%rbp),%rdx
lea    -0x20(%rbp),%rcx
lea    -0x30(%rbp),%r8
mov    %rax,(%rsp)
call   1050 <analyse_param_cds@plt>
mov    -0x24(%rbp),%edx
mov    -0x20(%rbp),%rcx
movsd  -0x30(%rbp),%xmm0
lea    -0x230(%rbp),%r8
lea    -0x430(%rbp),%r9
mov    $0xa,%edi
mov    $0x64,%esi
call   1040 <print_summary_cds@plt>
xor    %eax,%eax
add    $0x440,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %rbx
sub    $0x428,%rsp
mov    %rsi,%rbx
mov    %edi,%ebp
movq   $0x1,0x18(%rsp)
movl   $0x2,0xc(%rsp)
movabs $0x3fa999999999999a,%rax
99 a9 3f
mov    %rax,0x10(%rsp)
lea    0x20(%rsp),%r14
mov    $0x200,%edx
mov    %r14,%rdi
xor    %esi,%esi
call   1030 <memset@plt>
mov    %r14,(%rsp)
lea    0xc(%rsp),%rdx
lea    0x18(%rsp),%rcx
lea    0x10(%rsp),%r8
lea    0x220(%rsp),%r15
mov    %ebp,%edi
mov    %rbx,%rsi
mov    %r15,%r9
call   1050 <analyse_param_cds@plt>
mov    0xc(%rsp),%edx
mov    0x18(%rsp),%rcx
movsd  0x10(%rsp),%xmm0
mov    $0xa,%edi
mov    $0x64,%esi
mov    %r15,%r8
mov    %r14,%r9
call   1040 <print_summary_cds@plt>
xor    %eax,%eax
add    $0x428,%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 i32
%7 = alloca i64
%8 = alloca i32
%9 = alloca double
%10 = alloca [512 x i8]
%11 = alloca [512 x i8]
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i64 1, i64* %7
store i32 2, i32* %8
store double 5.000000e-02, double* %9
%12 = bitcast [512 x i8]* %11 to i8*
%13 = load i32, i32* %4
%14 = load i8**, i8*** %5
%15 = getelementptr inbounds [512 x i8], [512 x i8]* %10, i64 0, i64 0
%16 = getelementptr inbounds [512 x i8], [512 x i8]* %11, i64 0, i64 0
%17 = call i32 @analyse_param_cds(i32 %13, i8** %14, i32* %8, i64* %7, double* %9, i8* %15, i8* %16)
%18 = load i32, i32* %8
%19 = load i64, i64* %7
%20 = load double, double* %9
%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 = call i32 @print_summary_cds(i32 10, i32 100, i32 %18, i64 %19, double %20, i8* %21, i8* %22)
ret i32 0
}

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