#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*/ AutoMatch(int, int, int *, float *);
int /*<<< orphan*/ pcn_out(int, int, int, ...);
void aux_suggest(int p0, int ratdiff, int stronger) {
  int stones;
  float komi;
  AutoMatch(ratdiff, 19, &stones, &komi);
  switch (stones) {
  case 0:
  case 1:
    pcn_out(p0, 9, 3, komi);
    break;
  case 2:
  case 3:
  case 4:
  case 5:
  case 6:
  case 7:
  case 8:
  case 9:
    pcn_out(p0, 9, 4, stronger ? "Give" : "Take", stones, komi);
    break;
  default:
    pcn_out(p0, 9, 5, stronger ? "Give" : "Take");
    break;
  }
  AutoMatch(ratdiff, 13, &stones, &komi);
  switch (stones) {
  case 0:
  case 1:
    pcn_out(p0, 9, 6, komi);
    break;
  case 2:
  case 3:
  case 4:
  case 5:
  case 6:
  case 7:
  case 8:
  case 9:
    pcn_out(p0, 9, 7, stronger ? "Give" : "Take", stones, komi);
    break;
  default:
    pcn_out(p0, 9, 8, stronger ? "Give" : "Take");
    break;
  }
  AutoMatch(ratdiff, 9, &stones, &komi);
  switch (stones) {
  case 0:
  case 1:
    pcn_out(p0, 9, 534, komi);
    break;
  case 2:
  case 3:
  case 4:
  case 5:
  case 6:
  case 7:
  case 8:
  case 9:
    pcn_out(p0, 9, 9, stronger ? "Give" : "Take", stones, komi);
    break;
  default:
    pcn_out(p0, 9, 10, stronger ? "Give" : "Take");
    break;
  }
}


x86 assembly (clang, -O0):
<aux_suggest>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %edx,-0xc(%rbp)
mov    -0x8(%rbp),%edi
mov    $0x13,%esi
lea    -0x10(%rbp),%rdx
lea    -0x14(%rbp),%rcx
call   1040 <AutoMatch@plt>
mov    -0x10(%rbp),%eax
mov    %eax,-0x18(%rbp)
sub    $0x2,%eax
jb     116e <aux_suggest+0x4e>
jmp    115a <aux_suggest+0x3a>
mov    -0x18(%rbp),%eax
add    $0xfffffffe,%eax
sub    $0x8,%eax
jb     1190 <aux_suggest+0x70>
jmp    11ce <aux_suggest+0xae>
mov    -0x4(%rbp),%edi
movss  -0x14(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
mov    $0x9,%esi
mov    $0x3,%edx
mov    $0x1,%al
call   1030 <pcn_out@plt>
jmp    11fa <aux_suggest+0xda>
mov    -0x4(%rbp),%edi
mov    -0xc(%rbp),%edx
lea    0xe68(%rip),%rcx
lea    0xe5c(%rip),%rax
cmp    $0x0,%edx
cmovne %rax,%rcx
mov    -0x10(%rbp),%r8d
movss  -0x14(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
mov    $0x9,%esi
mov    $0x4,%edx
mov    $0x1,%al
call   1030 <pcn_out@plt>
jmp    11fa <aux_suggest+0xda>
mov    -0x4(%rbp),%edi
mov    -0xc(%rbp),%edx
lea    0xe2a(%rip),%rcx
lea    0xe1e(%rip),%rax
cmp    $0x0,%edx
cmovne %rax,%rcx
mov    $0x9,%esi
mov    $0x5,%edx
mov    $0x0,%al
call   1030 <pcn_out@plt>
mov    -0x8(%rbp),%edi
mov    $0xd,%esi
lea    -0x10(%rbp),%rdx
lea    -0x14(%rbp),%rcx
call   1040 <AutoMatch@plt>
mov    -0x10(%rbp),%eax
mov    %eax,-0x1c(%rbp)
sub    $0x2,%eax
jb     1237 <aux_suggest+0x117>
jmp    1223 <aux_suggest+0x103>
mov    -0x1c(%rbp),%eax
add    $0xfffffffe,%eax
sub    $0x8,%eax
jb     1259 <aux_suggest+0x139>
jmp    1297 <aux_suggest+0x177>
mov    -0x4(%rbp),%edi
movss  -0x14(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
mov    $0x9,%esi
mov    $0x6,%edx
mov    $0x1,%al
call   1030 <pcn_out@plt>
jmp    12c3 <aux_suggest+0x1a3>
mov    -0x4(%rbp),%edi
mov    -0xc(%rbp),%edx
lea    0xd9f(%rip),%rcx
lea    0xd93(%rip),%rax
cmp    $0x0,%edx
cmovne %rax,%rcx
mov    -0x10(%rbp),%r8d
movss  -0x14(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
mov    $0x9,%esi
mov    $0x7,%edx
mov    $0x1,%al
call   1030 <pcn_out@plt>
jmp    12c3 <aux_suggest+0x1a3>
mov    -0x4(%rbp),%edi
mov    -0xc(%rbp),%edx
lea    0xd61(%rip),%rcx
lea    0xd55(%rip),%rax
cmp    $0x0,%edx
cmovne %rax,%rcx
mov    $0x9,%esi
mov    $0x8,%edx
mov    $0x0,%al
call   1030 <pcn_out@plt>
mov    -0x8(%rbp),%edi
mov    $0x9,%esi
lea    -0x10(%rbp),%rdx
lea    -0x14(%rbp),%rcx
call   1040 <AutoMatch@plt>
mov    -0x10(%rbp),%eax
mov    %eax,-0x20(%rbp)
sub    $0x2,%eax
jb     1300 <aux_suggest+0x1e0>
jmp    12ec <aux_suggest+0x1cc>
mov    -0x20(%rbp),%eax
add    $0xfffffffe,%eax
sub    $0x8,%eax
jb     1322 <aux_suggest+0x202>
jmp    135d <aux_suggest+0x23d>
mov    -0x4(%rbp),%edi
movss  -0x14(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
mov    $0x9,%esi
mov    $0x216,%edx
mov    $0x1,%al
call   1030 <pcn_out@plt>
jmp    1389 <aux_suggest+0x269>
mov    -0x4(%rbp),%edi
mov    -0xc(%rbp),%edx
lea    0xcd6(%rip),%rcx
lea    0xcca(%rip),%rax
cmp    $0x0,%edx
cmovne %rax,%rcx
mov    -0x10(%rbp),%r8d
movss  -0x14(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
mov    $0x9,%edx
mov    %edx,%esi
mov    $0x1,%al
call   1030 <pcn_out@plt>
jmp    1389 <aux_suggest+0x269>
mov    -0x4(%rbp),%edi
mov    -0xc(%rbp),%edx
lea    0xc9b(%rip),%rcx
lea    0xc8f(%rip),%rax
cmp    $0x0,%edx
cmovne %rax,%rcx
mov    $0x9,%esi
mov    $0xa,%edx
mov    $0x0,%al
call   1030 <pcn_out@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<aux_suggest>:
push   %rbp
push   %r14
push   %rbx
sub    $0x10,%rsp
mov    %edx,%r14d
mov    %esi,%ebp
mov    %edi,%ebx
lea    0xc(%rsp),%rdx
lea    0x8(%rsp),%rcx
mov    %esi,%edi
mov    $0x13,%esi
call   1040 <AutoMatch@plt>
mov    0xc(%rsp),%r8d
lea    -0x2(%r8),%eax
cmp    $0x8,%eax
jae    1246 <aux_suggest+0x126>
test   %r14d,%r14d
lea    0xea4(%rip),%rax
lea    0xe98(%rip),%rcx
cmove  %rax,%rcx
movss  0x8(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %ebx,%edi
mov    $0x9,%esi
mov    $0x4,%edx
mov    $0x1,%al
call   1030 <pcn_out@plt>
lea    0xc(%rsp),%rdx
lea    0x8(%rsp),%rcx
mov    %ebp,%edi
mov    $0xd,%esi
call   1040 <AutoMatch@plt>
mov    0xc(%rsp),%r8d
lea    -0x2(%r8),%eax
cmp    $0x8,%eax
jae    126e <aux_suggest+0x14e>
test   %r14d,%r14d
lea    0xe4a(%rip),%rax
lea    0xe3e(%rip),%rcx
cmove  %rax,%rcx
movss  0x8(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %ebx,%edi
mov    $0x9,%esi
mov    $0x7,%edx
mov    $0x1,%al
call   1030 <pcn_out@plt>
lea    0xc(%rsp),%rdx
lea    0x8(%rsp),%rcx
mov    %ebp,%edi
mov    $0x9,%esi
call   1040 <AutoMatch@plt>
mov    0xc(%rsp),%r8d
lea    -0x2(%r8),%eax
cmp    $0x8,%eax
jae    1296 <aux_suggest+0x176>
test   %r14d,%r14d
lea    0xdf0(%rip),%rax
lea    0xde4(%rip),%rcx
cmove  %rax,%rcx
movss  0x8(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %ebx,%edi
mov    $0x9,%esi
mov    $0x9,%edx
mov    $0x1,%al
call   1030 <pcn_out@plt>
add    $0x10,%rsp
pop    %rbx
pop    %r14
pop    %rbp
ret
cmp    $0x1,%r8d
ja     12bb <aux_suggest+0x19b>
movss  0x8(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %ebx,%edi
mov    $0x9,%esi
mov    $0x3,%edx
mov    $0x1,%al
call   1030 <pcn_out@plt>
jmp    1189 <aux_suggest+0x69>
cmp    $0x1,%r8d
ja     12e8 <aux_suggest+0x1c8>
movss  0x8(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %ebx,%edi
mov    $0x9,%esi
mov    $0x6,%edx
mov    $0x1,%al
call   1030 <pcn_out@plt>
jmp    11e3 <aux_suggest+0xc3>
cmp    $0x1,%r8d
ja     1315 <aux_suggest+0x1f5>
movss  0x8(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %ebx,%edi
mov    $0x9,%esi
mov    $0x216,%edx
mov    $0x1,%al
call   1030 <pcn_out@plt>
jmp    123d <aux_suggest+0x11d>
test   %r14d,%r14d
lea    0xd40(%rip),%rax
lea    0xd34(%rip),%rcx
cmove  %rax,%rcx
mov    %ebx,%edi
mov    $0x9,%esi
mov    $0x5,%edx
xor    %eax,%eax
call   1030 <pcn_out@plt>
jmp    1189 <aux_suggest+0x69>
test   %r14d,%r14d
lea    0xd13(%rip),%rax
lea    0xd07(%rip),%rcx
cmove  %rax,%rcx
mov    %ebx,%edi
mov    $0x9,%esi
mov    $0x8,%edx
xor    %eax,%eax
call   1030 <pcn_out@plt>
jmp    11e3 <aux_suggest+0xc3>
test   %r14d,%r14d
lea    0xce6(%rip),%rax
lea    0xcda(%rip),%rcx
cmove  %rax,%rcx
mov    %ebx,%edi
mov    $0x9,%esi
mov    $0xa,%edx
xor    %eax,%eax
call   1030 <pcn_out@plt>
jmp    123d <aux_suggest+0x11d>

LLVM IR (-O0):
@.str = [5 x i8] c"Give\00"
@.str.1 = [5 x i8] c"Take\00"
define void @aux_suggest(i32 %0, i32 %1, i32 %2) {
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca float
store i32 %0, i32* %4
store i32 %1, i32* %5
store i32 %2, i32* %6
%9 = load i32, i32* %5
%10 = call i32 @AutoMatch(i32 %9, i32 19, i32* %7, float* %8)
%11 = load i32, i32* %7
switch i32 %11, label %27 [
i32 0, label %12
i32 1, label %12
i32 2, label %17
i32 3, label %17
i32 4, label %17
i32 5, label %17
i32 6, label %17
i32 7, label %17
i32 8, label %17
i32 9, label %17
]
12: ; preds = %3, %3
%13 = load i32, i32* %4
%14 = load float, float* %8
%15 = fpext float %14 to double
%16 = call i32 (i32, i32, i32, ...) @pcn_out(i32 %13, i32 9, i32 3, double %15)
br label %34
17: ; preds = %3, %3, %3, %3, %3, %3, %3, %3
%18 = load i32, i32* %4
%19 = load i32, i32* %6
%20 = icmp ne i32 %19, 0
%21 = zext i1 %20 to i64
%22 = select i1 %20, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0)
%23 = load i32, i32* %7
%24 = load float, float* %8
%25 = fpext float %24 to double
%26 = call i32 (i32, i32, i32, ...) @pcn_out(i32 %18, i32 9, i32 4, i8* %22, i32 %23, double %25)
br label %34
27: ; preds = %3
%28 = load i32, i32* %4
%29 = load i32, i32* %6
%30 = icmp ne i32 %29, 0
%31 = zext i1 %30 to i64
%32 = select i1 %30, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0)
%33 = call i32 (i32, i32, i32, ...) @pcn_out(i32 %28, i32 9, i32 5, i8* %32)
br label %34
34: ; preds = %27, %17, %12
%35 = load i32, i32* %5
%36 = call i32 @AutoMatch(i32 %35, i32 13, i32* %7, float* %8)
%37 = load i32, i32* %7
switch i32 %37, label %53 [
i32 0, label %38
i32 1, label %38
i32 2, label %43
i32 3, label %43
i32 4, label %43
i32 5, label %43
i32 6, label %43
i32 7, label %43
i32 8, label %43
i32 9, label %43
]
38: ; preds = %34, %34
%39 = load i32, i32* %4
%40 = load float, float* %8
%41 = fpext float %40 to double
%42 = call i32 (i32, i32, i32, ...) @pcn_out(i32 %39, i32 9, i32 6, double %41)
br label %60
43: ; preds = %34, %34, %34, %34, %34, %34, %34, %34
%44 = load i32, i32* %4
%45 = load i32, i32* %6
%46 = icmp ne i32 %45, 0
%47 = zext i1 %46 to i64
%48 = select i1 %46, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0)
%49 = load i32, i32* %7
%50 = load float, float* %8
%51 = fpext float %50 to double
%52 = call i32 (i32, i32, i32, ...) @pcn_out(i32 %44, i32 9, i32 7, i8* %48, i32 %49, double %51)
br label %60
53: ; preds = %34
%54 = load i32, i32* %4
%55 = load i32, i32* %6
%56 = icmp ne i32 %55, 0
%57 = zext i1 %56 to i64
%58 = select i1 %56, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0)
%59 = call i32 (i32, i32, i32, ...) @pcn_out(i32 %54, i32 9, i32 8, i8* %58)
br label %60
60: ; preds = %53, %43, %38
%61 = load i32, i32* %5
%62 = call i32 @AutoMatch(i32 %61, i32 9, i32* %7, float* %8)
%63 = load i32, i32* %7
switch i32 %63, label %79 [
i32 0, label %64
i32 1, label %64
i32 2, label %69
i32 3, label %69
i32 4, label %69
i32 5, label %69
i32 6, label %69
i32 7, label %69
i32 8, label %69
i32 9, label %69
]
64: ; preds = %60, %60
%65 = load i32, i32* %4
%66 = load float, float* %8
%67 = fpext float %66 to double
%68 = call i32 (i32, i32, i32, ...) @pcn_out(i32 %65, i32 9, i32 534, double %67)
br label %86
69: ; preds = %60, %60, %60, %60, %60, %60, %60, %60
%70 = load i32, i32* %4
%71 = load i32, i32* %6
%72 = icmp ne i32 %71, 0
%73 = zext i1 %72 to i64
%74 = select i1 %72, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0)
%75 = load i32, i32* %7
%76 = load float, float* %8
%77 = fpext float %76 to double
%78 = call i32 (i32, i32, i32, ...) @pcn_out(i32 %70, i32 9, i32 9, i8* %74, i32 %75, double %77)
br label %86
79: ; preds = %60
%80 = load i32, i32* %4
%81 = load i32, i32* %6
%82 = icmp ne i32 %81, 0
%83 = zext i1 %82 to i64
%84 = select i1 %82, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0)
%85 = call i32 (i32, i32, i32, ...) @pcn_out(i32 %80, i32 9, i32 10, i8* %84)
br label %86
86: ; preds = %79, %69, %64
ret void
}

LLVM IR (-O2):
@.str = [5 x i8] c"Give\00"
@.str.1 = [5 x i8] c"Take\00"
define void @aux_suggest(i32 %0, i32 %1, i32 %2) {
%4 = alloca i32
%5 = alloca float
%6 = bitcast i32* %4 to i8*
%7 = bitcast float* %5 to i8*
%8 = call i32 @AutoMatch(i32 %1, i32 19, i32* %4, float* %5)
%9 = load i32, i32* %4
switch i32 %9, label %20 [
i32 0, label %10
i32 1, label %10
i32 2, label %14
i32 3, label %14
i32 4, label %14
i32 5, label %14
i32 6, label %14
i32 7, label %14
i32 8, label %14
i32 9, label %14
]
10: ; preds = %3, %3
%11 = load float, float* %5
%12 = fpext float %11 to double
%13 = call i32 (i32, i32, i32, ...) @pcn_out(i32 %0, i32 9, i32 3, double %12)
br label %24
14: ; preds = %3, %3, %3, %3, %3, %3, %3, %3
%15 = icmp eq i32 %2, 0
%16 = select i1 %15, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0)
%17 = load float, float* %5
%18 = fpext float %17 to double
%19 = call i32 (i32, i32, i32, ...) @pcn_out(i32 %0, i32 9, i32 4, i8* %16, i32 %9, double %18)
br label %24
20: ; preds = %3
%21 = icmp eq i32 %2, 0
%22 = select i1 %21, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0)
%23 = call i32 (i32, i32, i32, ...) @pcn_out(i32 %0, i32 9, i32 5, i8* %22)
br label %24
24: ; preds = %20, %14, %10
%25 = call i32 @AutoMatch(i32 %1, i32 13, i32* %4, float* %5)
%26 = load i32, i32* %4
switch i32 %26, label %37 [
i32 0, label %27
i32 1, label %27
i32 2, label %31
i32 3, label %31
i32 4, label %31
i32 5, label %31
i32 6, label %31
i32 7, label %31
i32 8, label %31
i32 9, label %31
]
27: ; preds = %24, %24
%28 = load float, float* %5
%29 = fpext float %28 to double
%30 = call i32 (i32, i32, i32, ...) @pcn_out(i32 %0, i32 9, i32 6, double %29)
br label %41
31: ; preds = %24, %24, %24, %24, %24, %24, %24, %24
%32 = icmp eq i32 %2, 0
%33 = select i1 %32, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0)
%34 = load float, float* %5
%35 = fpext float %34 to double
%36 = call i32 (i32, i32, i32, ...) @pcn_out(i32 %0, i32 9, i32 7, i8* %33, i32 %26, double %35)
br label %41
37: ; preds = %24
%38 = icmp eq i32 %2, 0
%39 = select i1 %38, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0)
%40 = call i32 (i32, i32, i32, ...) @pcn_out(i32 %0, i32 9, i32 8, i8* %39)
br label %41
41: ; preds = %37, %31, %27
%42 = call i32 @AutoMatch(i32 %1, i32 9, i32* %4, float* %5)
%43 = load i32, i32* %4
switch i32 %43, label %54 [
i32 0, label %44
i32 1, label %44
i32 2, label %48
i32 3, label %48
i32 4, label %48
i32 5, label %48
i32 6, label %48
i32 7, label %48
i32 8, label %48
i32 9, label %48
]
44: ; preds = %41, %41
%45 = load float, float* %5
%46 = fpext float %45 to double
%47 = call i32 (i32, i32, i32, ...) @pcn_out(i32 %0, i32 9, i32 534, double %46)
br label %58
48: ; preds = %41, %41, %41, %41, %41, %41, %41, %41
%49 = icmp eq i32 %2, 0
%50 = select i1 %49, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0)
%51 = load float, float* %5
%52 = fpext float %51 to double
%53 = call i32 (i32, i32, i32, ...) @pcn_out(i32 %0, i32 9, i32 9, i8* %50, i32 %43, double %52)
br label %58
54: ; preds = %41
%55 = icmp eq i32 %2, 0
%56 = select i1 %55, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0)
%57 = call i32 (i32, i32, i32, ...) @pcn_out(i32 %0, i32 9, i32 10, i8* %56)
br label %58
58: ; preds = %54, %48, %44
ret void
}