#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*/ ped2geno(char *, char *, int *, int *);
int /*<<< orphan*/ print_convert(int, 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");
  ped2geno(input_file, output_file, &N, &M);
  print_convert(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   1030 <ped2geno@plt>
mov    -0x18(%rbp),%edi
mov    -0x14(%rbp),%esi
call   1040 <print_convert@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   1030 <ped2geno@plt>
mov    0x8(%rsp),%edi
mov    0xc(%rsp),%esi
call   1040 <print_convert@plt>
xor    %eax,%eax
add    $0x418,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
@.str = [5 x i8] c"geno\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 @ped2geno(i8* %15, i8* %16, i32* %7, i32* %6)
%18 = load i32, i32* %7
%19 = load i32, i32* %6
%20 = call i32 @print_convert(i32 %18, i32 %19)
ret i32 0
}

LLVM IR (-O2):
@.str = [5 x i8] c"geno\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 @ped2geno(i8* %9, i8* %10, i32* %4, i32* %3)
%13 = load i32, i32* %4
%14 = load i32, i32* %3
%15 = call i32 @print_convert(i32 %13, i32 %14)
ret i32 0
}