#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 */
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
char *compare_poker_hands(int **, int **);
int /*<<< orphan*/ feof(int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char const *, char *);
int /*<<< orphan*/ get_hands(int /*<<< orphan*/ *, int **, int **);
int /*<<< orphan*/ printf(char *, char *);
int main(int argc, const char *argv[]) {
  FILE *in_file = fopen(argv[1], "r");
  int l_hand[5][2], r_hand[5][2];
  while (!feof(in_file)) {
    get_hands(in_file, l_hand, r_hand);
    printf("%s\n", compare_poker_hands(l_hand, r_hand));
  }
  return (0);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x70,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xe8b(%rip),%rsi
call   1070 <fopen@plt>
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rdi
call   1050 <feof@plt>
cmp    $0x0,%eax
setne  %al
xor    $0xff,%al
test   $0x1,%al
jne    119c <main+0x4c>
jmp    11ce <main+0x7e>
mov    -0x18(%rbp),%rdi
lea    -0x40(%rbp),%rsi
lea    -0x70(%rbp),%rdx
call   1030 <get_hands@plt>
lea    -0x40(%rbp),%rdi
lea    -0x70(%rbp),%rsi
call   1060 <compare_poker_hands@plt>
mov    %rax,%rsi
lea    0xe3e(%rip),%rdi
call   1040 <printf@plt>
jmp    117e <main+0x2e>
xor    %eax,%eax
add    $0x70,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %r12
push   %rbx
sub    $0x58,%rsp
mov    0x8(%rsi),%rdi
lea    0xe9a(%rip),%rsi
call   1070 <fopen@plt>
mov    %rax,%rbx
mov    %rax,%rdi
call   1050 <feof@plt>
test   %eax,%eax
jne    11c0 <main+0x70>
lea    0x30(%rsp),%r14
mov    %rsp,%r15
lea    0xe79(%rip),%r12
nopl   0x0(%rax)
mov    %rbx,%rdi
mov    %r14,%rsi
mov    %r15,%rdx
call   1030 <get_hands@plt>
mov    %r14,%rdi
mov    %r15,%rsi
call   1060 <compare_poker_hands@plt>
mov    %r12,%rdi
mov    %rax,%rsi
call   1040 <printf@plt>
mov    %rbx,%rdi
call   1050 <feof@plt>
test   %eax,%eax
je     1190 <main+0x40>
xor    %eax,%eax
add    $0x58,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@.str = [2 x i8] c"r\00"
@.str.1 = [4 x i8] c"%s\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32*
%7 = alloca [5 x [2 x i32]]
%8 = alloca [5 x [2 x i32]]
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%9 = load i8**, i8*** %5
%10 = getelementptr inbounds i8*, i8** %9, i64 1
%11 = load i8*, i8** %10
%12 = call i32* @fopen(i8* %11, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
store i32* %12, i32** %6
br label %13
13: ; preds = %18, %2
%14 = load i32*, i32** %6
%15 = call i32 @feof(i32* %14)
%16 = icmp ne i32 %15, 0
%17 = xor i1 %16, true
br i1 %17, label %18, label %31
18: ; preds = %13
%19 = load i32*, i32** %6
%20 = getelementptr inbounds [5 x [2 x i32]], [5 x [2 x i32]]* %7, i64 0, i64 0
%21 = bitcast [2 x i32]* %20 to i32**
%22 = getelementptr inbounds [5 x [2 x i32]], [5 x [2 x i32]]* %8, i64 0, i64 0
%23 = bitcast [2 x i32]* %22 to i32**
%24 = call i32 @get_hands(i32* %19, i32** %21, i32** %23)
%25 = getelementptr inbounds [5 x [2 x i32]], [5 x [2 x i32]]* %7, i64 0, i64 0
%26 = bitcast [2 x i32]* %25 to i32**
%27 = getelementptr inbounds [5 x [2 x i32]], [5 x [2 x i32]]* %8, i64 0, i64 0
%28 = bitcast [2 x i32]* %27 to i32**
%29 = call i8* @compare_poker_hands(i32** %26, i32** %28)
%30 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i8* %29)
br label %13
31: ; preds = %13
ret i32 0
}

LLVM IR (-O2):
@.str = [2 x i8] c"r\00"
@.str.1 = [4 x i8] c"%s\0A\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = alloca [5 x [2 x i32]]
%4 = alloca [5 x [2 x i32]]
%5 = getelementptr inbounds i8*, i8** %1, i64 1
%6 = load i8*, i8** %5
%7 = tail call i32* @fopen(i8* %6, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%8 = bitcast [5 x [2 x i32]]* %3 to i8*
%9 = bitcast [5 x [2 x i32]]* %4 to i8*
%10 = call i32 @feof(i32* %7)
%11 = icmp eq i32 %10, 0
br i1 %11, label %12, label %21
12: ; preds = %2
%13 = bitcast [5 x [2 x i32]]* %3 to i32**
%14 = bitcast [5 x [2 x i32]]* %4 to i32**
br label %15
15: ; preds = %12, %15
%16 = call i32 @get_hands(i32* %7, i32** %13, i32** %14)
%17 = call i8* @compare_poker_hands(i32** %13, i32** %14)
%18 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i8* %17)
%19 = call i32 @feof(i32* %7)
%20 = icmp eq i32 %19, 0
br i1 %20, label %15, label %21
21: ; preds = %15, %2
ret i32 0
}