#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*/ printf(char *);
int /*<<< orphan*/ scanf(char *, int *, int *);
int main() {
  int home, away;
  scanf("%d %d", &away, &home);
  if (away < home) {
    printf("Home team wins\n");
  } else if (away > home) {
    printf("Away team wins\n");
  } else if (away == home) {
    printf("Draw\n");
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeca(%rip),%rdi
lea    -0xc(%rbp),%rsi
lea    -0x8(%rbp),%rdx
call   1040 <scanf@plt>
mov    -0xc(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    1160 <main+0x40>
lea    0xeb0(%rip),%rdi
call   1030 <printf@plt>
jmp    119f <main+0x7f>
mov    -0xc(%rbp),%eax
cmp    -0x8(%rbp),%eax
jle    117d <main+0x5d>
lea    0xea3(%rip),%rdi
call   1030 <printf@plt>
jmp    119a <main+0x7a>
mov    -0xc(%rbp),%eax
cmp    -0x8(%rbp),%eax
jne    1195 <main+0x75>
lea    0xe96(%rip),%rdi
call   1030 <printf@plt>
jmp    119a <main+0x7a>
jmp    119f <main+0x7f>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xed8(%rip),%rdi
mov    %rsp,%rsi
lea    0x4(%rsp),%rdx
call   1040 <scanf@plt>
mov    (%rsp),%eax
mov    0x4(%rsp),%ecx
cmp    %ecx,%eax
jge    1149 <main+0x29>
lea    0xed3(%rip),%rdi
jmp    115d <main+0x3d>
jle    1154 <main+0x34>
lea    0xeb9(%rip),%rdi
jmp    115d <main+0x3d>
jne    1162 <main+0x42>
lea    0xea9(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [6 x i8] c"%d %d\00"
@.str.1 = [16 x i8] c"Home team wins\0A\00"
@.str.2 = [16 x i8] c"Away team wins\0A\00"
@.str.3 = [6 x i8] c"Draw\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
store i32 0, i32* %1
%4 = call i32 @scanf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i32* %3, i32* %2)
%5 = load i32, i32* %3
%6 = load i32, i32* %2
%7 = icmp slt i32 %5, %6
br i1 %7, label %8, label %10
8: ; preds = %0
%9 = call i32 @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.1, i64 0, i64 0))
br label %24
10: ; preds = %0
%11 = load i32, i32* %3
%12 = load i32, i32* %2
%13 = icmp sgt i32 %11, %12
br i1 %13, label %14, label %16
14: ; preds = %10
%15 = call i32 @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.2, i64 0, i64 0))
br label %23
16: ; preds = %10
%17 = load i32, i32* %3
%18 = load i32, i32* %2
%19 = icmp eq i32 %17, %18
br i1 %19, label %20, label %22
20: ; preds = %16
%21 = call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0))
br label %22
22: ; preds = %20, %16
br label %23
23: ; preds = %22, %14
br label %24
24: ; preds = %23, %8
ret i32 0
}

LLVM IR (-O2):
@.str = [6 x i8] c"%d %d\00"
@str = [5 x i8] c"Draw\00"
@str.4 = [15 x i8] c"Away team wins\00"
@str.5 = [15 x i8] c"Home team wins\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = bitcast i32* %1 to i8*
%4 = bitcast i32* %2 to i8*
%5 = call i32 @scanf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i32* %2, i32* %1)
%6 = load i32, i32* %2
%7 = load i32, i32* %1
%8 = icmp slt i32 %6, %7
br i1 %8, label %13, label %9
9: ; preds = %0
%10 = icmp sgt i32 %6, %7
br i1 %10, label %13, label %11
11: ; preds = %9
%12 = icmp eq i32 %6, %7
br i1 %12, label %13, label %16
13: ; preds = %11, %9, %0
%14 = phi i8* [ getelementptr inbounds ([15 x i8], [15 x i8]* @str.5, i64 0, i64 0), %0 ], [ getelementptr inbounds ([15 x i8], [15 x i8]* @str.4, i64 0, i64 0), %9 ], [ getelementptr inbounds ([5 x i8], [5 x i8]* @str, i64 0, i64 0), %11 ]
%15 = call i32 @puts(i8* dereferenceable(1) %14)
br label %16
16: ; preds = %13, %11
ret i32 0
}