#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_lfmm(int, char **, int *, int *, int *, int *,
                                      int *, char *, char *, char *, char *,
                                      int *, long long *, int *);
int /*<<< orphan*/ print_summary_lfmm(int, int, int, int, int, int, int, int,
                                      char *, char *, char *, char *, int,
                                      long long, int);
int main(int argc, char *argv[]) {
  int d = 0, K, m, num_thrd = 1;
  char output[512] = "";
  char input[512];
  char cov_file[512];
  char dev_file[512] = "";
  long long s = 1;
  int N = 10, M = 100, D = 2, Niter = 1000, burn = 200, all = 0;
  analyse_param_lfmm(argc, argv, &d, &K, &Niter, &burn, &m, output, input,
                     cov_file, dev_file, &num_thrd, &s, &all);
  print_summary_lfmm(N, M, K, D, d, Niter, burn, m, output, input, cov_file,
                     dev_file, num_thrd, s, all);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x898,%rsp
movl   $0x0,-0x2c(%rbp)
mov    %edi,-0x30(%rbp)
mov    %rsi,-0x38(%rbp)
movl   $0x0,-0x3c(%rbp)
movl   $0x1,-0x48(%rbp)
lea    -0x250(%rbp),%rdi
xor    %esi,%esi
mov    $0x200,%edx
call   1030 <memset@plt>
lea    -0x850(%rbp),%rdi
xor    %esi,%esi
mov    $0x200,%edx
call   1030 <memset@plt>
movq   $0x1,-0x858(%rbp)
movl   $0xa,-0x85c(%rbp)
movl   $0x64,-0x860(%rbp)
movl   $0x2,-0x864(%rbp)
movl   $0x3e8,-0x868(%rbp)
movl   $0xc8,-0x86c(%rbp)
movl   $0x0,-0x870(%rbp)
mov    -0x30(%rbp),%edi
mov    -0x38(%rbp),%rsi
lea    -0x250(%rbp),%r12
lea    -0x450(%rbp),%r15
lea    -0x650(%rbp),%r14
lea    -0x850(%rbp),%rbx
lea    -0x3c(%rbp),%rdx
lea    -0x40(%rbp),%rcx
lea    -0x868(%rbp),%r8
lea    -0x86c(%rbp),%r9
lea    -0x44(%rbp),%r13
lea    -0x48(%rbp),%r11
lea    -0x858(%rbp),%r10
lea    -0x870(%rbp),%rax
mov    %r13,(%rsp)
mov    %r12,0x8(%rsp)
mov    %r15,0x10(%rsp)
mov    %r14,0x18(%rsp)
mov    %rbx,0x20(%rsp)
mov    %r11,0x28(%rsp)
mov    %r10,0x30(%rsp)
mov    %rax,0x38(%rsp)
call   1050 <analyse_param_lfmm@plt>
mov    -0x85c(%rbp),%edi
mov    -0x860(%rbp),%esi
mov    -0x40(%rbp),%edx
mov    -0x864(%rbp),%ecx
mov    -0x3c(%rbp),%r8d
mov    -0x868(%rbp),%r9d
mov    -0x86c(%rbp),%eax
mov    %eax,-0x878(%rbp)
mov    -0x44(%rbp),%r13d
lea    -0x250(%rbp),%r12
lea    -0x450(%rbp),%r15
lea    -0x650(%rbp),%r14
lea    -0x850(%rbp),%rbx
mov    -0x48(%rbp),%r11d
mov    -0x858(%rbp),%r10
mov    -0x870(%rbp),%eax
mov    %eax,-0x874(%rbp)
mov    -0x878(%rbp),%eax
mov    %eax,(%rsp)
mov    -0x874(%rbp),%eax
mov    %r13d,0x8(%rsp)
mov    %r12,0x10(%rsp)
mov    %r15,0x18(%rsp)
mov    %r14,0x20(%rsp)
mov    %rbx,0x28(%rsp)
mov    %r11d,0x30(%rsp)
mov    %r10,0x38(%rsp)
mov    %eax,0x40(%rsp)
call   1040 <print_summary_lfmm@plt>
xor    %eax,%eax
add    $0x898,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x838,%rsp
mov    %rsi,%rbx
mov    %edi,%ebp
movl   $0x0,0x1c(%rsp)
movl   $0x1,0x18(%rsp)
lea    0x630(%rsp),%r12
mov    $0x200,%edx
mov    %r12,%rdi
xor    %esi,%esi
call   1030 <memset@plt>
lea    0x30(%rsp),%r15
mov    $0x200,%edx
mov    %r15,%rdi
xor    %esi,%esi
call   1030 <memset@plt>
movq   $0x1,0x28(%rsp)
movl   $0x3e8,0x14(%rsp)
movl   $0xc8,0x10(%rsp)
movl   $0x0,0xc(%rsp)
lea    0xc(%rsp),%rax
lea    0x28(%rsp),%r10
lea    0x18(%rsp),%r11
lea    0x230(%rsp),%r14
lea    0x430(%rsp),%r13
lea    0x1c(%rsp),%rdx
lea    0x24(%rsp),%rcx
lea    0x14(%rsp),%r8
lea    0x10(%rsp),%r9
mov    %ebp,%edi
mov    %rbx,%rsi
push   %rax
push   %r10
push   %r11
push   %r15
push   %r14
push   %r13
push   %r12
lea    0x58(%rsp),%rax
push   %rax
call   1050 <analyse_param_lfmm@plt>
add    $0x40,%rsp
mov    0x24(%rsp),%edx
mov    0x1c(%rsp),%r8d
mov    0x14(%rsp),%r9d
mov    0x10(%rsp),%r10d
mov    0x20(%rsp),%ebp
mov    0x18(%rsp),%ebx
mov    0xc(%rsp),%eax
sub    $0x8,%rsp
mov    $0xa,%edi
mov    $0x64,%esi
mov    $0x2,%ecx
push   %rax
push   0x38(%rsp)
push   %rbx
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbp
push   %r10
call   1040 <print_summary_lfmm@plt>
add    $0x50,%rsp
xor    %eax,%eax
add    $0x838,%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 [512 x i8]
%11 = alloca [512 x i8]
%12 = alloca [512 x i8]
%13 = alloca [512 x i8]
%14 = alloca i64
%15 = alloca i32
%16 = alloca i32
%17 = alloca i32
%18 = alloca i32
%19 = alloca i32
%20 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i32 0, i32* %6
store i32 1, i32* %9
%21 = bitcast [512 x i8]* %10 to i8*
%22 = bitcast [512 x i8]* %13 to i8*
store i64 1, i64* %14
store i32 10, i32* %15
store i32 100, i32* %16
store i32 2, i32* %17
store i32 1000, i32* %18
store i32 200, i32* %19
store i32 0, i32* %20
%23 = load i32, i32* %4
%24 = load i8**, i8*** %5
%25 = getelementptr inbounds [512 x i8], [512 x i8]* %10, i64 0, i64 0
%26 = getelementptr inbounds [512 x i8], [512 x i8]* %11, i64 0, i64 0
%27 = getelementptr inbounds [512 x i8], [512 x i8]* %12, i64 0, i64 0
%28 = getelementptr inbounds [512 x i8], [512 x i8]* %13, i64 0, i64 0
%29 = call i32 @analyse_param_lfmm(i32 %23, i8** %24, i32* %6, i32* %7, i32* %18, i32* %19, i32* %8, i8* %25, i8* %26, i8* %27, i8* %28, i32* %9, i64* %14, i32* %20)
%30 = load i32, i32* %15
%31 = load i32, i32* %16
%32 = load i32, i32* %7
%33 = load i32, i32* %17
%34 = load i32, i32* %6
%35 = load i32, i32* %18
%36 = load i32, i32* %19
%37 = load i32, i32* %8
%38 = getelementptr inbounds [512 x i8], [512 x i8]* %10, i64 0, i64 0
%39 = getelementptr inbounds [512 x i8], [512 x i8]* %11, i64 0, i64 0
%40 = getelementptr inbounds [512 x i8], [512 x i8]* %12, i64 0, i64 0
%41 = getelementptr inbounds [512 x i8], [512 x i8]* %13, i64 0, i64 0
%42 = load i32, i32* %9
%43 = load i64, i64* %14
%44 = load i32, i32* %20
%45 = call i32 @print_summary_lfmm(i32 %30, i32 %31, i32 %32, i32 %33, i32 %34, i32 %35, i32 %36, i32 %37, i8* %38, i8* %39, i8* %40, i8* %41, i32 %42, i64 %43, i32 %44)
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 [512 x i8]
%8 = alloca [512 x i8]
%9 = alloca [512 x i8]
%10 = alloca [512 x i8]
%11 = alloca i64
%12 = alloca i32
%13 = alloca i32
%14 = alloca i32
%15 = bitcast i32* %3 to i8*
store i32 0, i32* %3
%16 = bitcast i32* %4 to i8*
%17 = bitcast i32* %5 to i8*
%18 = bitcast i32* %6 to i8*
store i32 1, i32* %6
%19 = getelementptr inbounds [512 x i8], [512 x i8]* %7, i64 0, i64 0
%20 = getelementptr inbounds [512 x i8], [512 x i8]* %8, i64 0, i64 0
%21 = getelementptr inbounds [512 x i8], [512 x i8]* %9, i64 0, i64 0
%22 = getelementptr inbounds [512 x i8], [512 x i8]* %10, i64 0, i64 0
%23 = bitcast i64* %11 to i8*
store i64 1, i64* %11
%24 = bitcast i32* %12 to i8*
store i32 1000, i32* %12
%25 = bitcast i32* %13 to i8*
store i32 200, i32* %13
%26 = bitcast i32* %14 to i8*
store i32 0, i32* %14
%27 = call i32 @analyse_param_lfmm(i32 %0, i8** %1, i32* %3, i32* %4, i32* %12, i32* %13, i32* %5, i8* %19, i8* %20, i8* %21, i8* %22, i32* %6, i64* %11, i32* %14)
%28 = load i32, i32* %4
%29 = load i32, i32* %3
%30 = load i32, i32* %12
%31 = load i32, i32* %13
%32 = load i32, i32* %5
%33 = load i32, i32* %6
%34 = load i64, i64* %11
%35 = load i32, i32* %14
%36 = call i32 @print_summary_lfmm(i32 10, i32 100, i32 %28, i32 2, i32 %29, i32 %30, i32 %31, i32 %32, i8* %19, i8* %20, i8* %21, i8* %22, i32 %33, i64 %34, i32 %35)
ret i32 0
}