#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_convert(int, char **, char *, char *, char *);
int /*<<< orphan*/ ancestrymap2geno(char *, char *, int *, int *);
int /*<<< orphan*/ printf(char *, int);
int main(int argc, char *argv[]) {
  int M;
  int N;
  char input_file[512];
  char output_file[512];
  analyse_param_convert(argc, argv, input_file, output_file, "geno");
  ancestrymap2geno(input_file, output_file, &N, &M);
  printf("\n\t- number of individuals detected:\t\t%d\n", N);
  printf("\t- number of loci detected:\t\t\t%d\n\n", M);
  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)
mov    -0x8(%rbp),%edi
mov    -0x10(%rbp),%rsi
lea    -0x220(%rbp),%rdx
lea    -0x420(%rbp),%rcx
lea    0xe9b(%rip),%r8
call   1050 <analyse_param_convert@plt>
lea    -0x220(%rbp),%rdi
lea    -0x420(%rbp),%rsi
lea    -0x18(%rbp),%rdx
lea    -0x14(%rbp),%rcx
call   1040 <ancestrymap2geno@plt>
mov    -0x18(%rbp),%esi
lea    0xe76(%rip),%rdi
call   1030 <printf@plt>
mov    -0x14(%rbp),%esi
lea    0xe90(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x420,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r14
push   %rbx
sub    $0x418,%rsp
lea    0xebf(%rip),%r8
lea    0x210(%rsp),%rbx
lea    0x10(%rsp),%r14
mov    %rbx,%rdx
mov    %r14,%rcx
call   1050 <analyse_param_convert@plt>
lea    0x8(%rsp),%rdx
lea    0xc(%rsp),%rcx
mov    %rbx,%rdi
mov    %r14,%rsi
call   1040 <ancestrymap2geno@plt>
mov    0x8(%rsp),%esi
lea    0xe8c(%rip),%rdi
call   1030 <printf@plt>
mov    0xc(%rsp),%esi
lea    0xea5(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x418,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
@.str = [5 x i8] c"geno\00"
@.str.1 = [41 x i8] c"\0A\09- number of individuals detected:\09\09%d\0A\00"
@.str.2 = [35 x i8] c"\09- number of loci detected:\09\09\09%d\0A\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
%7 = alloca i32
%8 = alloca [512 x i8]
%9 = alloca [512 x i8]
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%10 = load i32, i32* %4
%11 = load i8**, i8*** %5
%12 = getelementptr inbounds [512 x i8], [512 x i8]* %8, i64 0, i64 0
%13 = getelementptr inbounds [512 x i8], [512 x i8]* %9, i64 0, i64 0
%14 = call i32 @analyse_param_convert(i32 %10, i8** %11, i8* %12, i8* %13, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0))
%15 = getelementptr inbounds [512 x i8], [512 x i8]* %8, i64 0, i64 0
%16 = getelementptr inbounds [512 x i8], [512 x i8]* %9, i64 0, i64 0
%17 = call i32 @ancestrymap2geno(i8* %15, i8* %16, i32* %7, i32* %6)
%18 = load i32, i32* %7
%19 = call i32 @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.1, i64 0, i64 0), i32 %18)
%20 = load i32, i32* %6
%21 = call i32 @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.2, i64 0, i64 0), i32 %20)
ret i32 0
}

LLVM IR (-O2):
@.str = [5 x i8] c"geno\00"
@.str.1 = [41 x i8] c"\0A\09- number of individuals detected:\09\09%d\0A\00"
@.str.2 = [35 x i8] c"\09- number of loci detected:\09\09\09%d\0A\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca [512 x i8]
%6 = alloca [512 x i8]
%7 = bitcast i32* %3 to i8*
%8 = bitcast i32* %4 to i8*
%9 = getelementptr inbounds [512 x i8], [512 x i8]* %5, i64 0, i64 0
%10 = getelementptr inbounds [512 x i8], [512 x i8]* %6, i64 0, i64 0
%11 = call i32 @analyse_param_convert(i32 %0, i8** %1, i8* %9, i8* %10, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0))
%12 = call i32 @ancestrymap2geno(i8* %9, i8* %10, i32* %4, i32* %3)
%13 = load i32, i32* %4
%14 = call i32 @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.1, i64 0, i64 0), i32 %13)
%15 = load i32, i32* %3
%16 = call i32 @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.2, i64 0, i64 0), i32 %15)
ret i32 0
}