#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 get_board_size();
int /*<<< orphan*/ set_hoshi(int, int);
void init_hoshi(void) {
  switch (get_board_size()) {
  case 19:
    set_hoshi(3, 3);
    set_hoshi(3, 9);
    set_hoshi(3, 15);
    set_hoshi(9, 3);
    set_hoshi(9, 9);
    set_hoshi(9, 15);
    set_hoshi(15, 3);
    set_hoshi(15, 9);
    set_hoshi(15, 15);
    break;
  case 13:
    set_hoshi(3, 3);
    set_hoshi(3, 9);
    set_hoshi(9, 3);
    set_hoshi(9, 9);
    set_hoshi(6, 6);
    break;
  case 9:
    set_hoshi(2, 2);
    set_hoshi(2, 6);
    set_hoshi(6, 2);
    set_hoshi(6, 6);
    set_hoshi(4, 4);
    break;
  }
  return;
}


x86 assembly (clang, -O0):
<init_hoshi>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
xor    %eax,%eax
call   1040 <get_board_size@plt>
mov    %eax,%ecx
mov    %ecx,-0x4(%rbp)
sub    $0x9,%eax
je     122e <init_hoshi+0x10e>
jmp    1142 <init_hoshi+0x22>
mov    -0x4(%rbp),%eax
sub    $0xd,%eax
je     11e7 <init_hoshi+0xc7>
jmp    1153 <init_hoshi+0x33>
mov    -0x4(%rbp),%eax
sub    $0x13,%eax
jne    1270 <init_hoshi+0x150>
jmp    1164 <init_hoshi+0x44>
mov    $0x3,%esi
mov    %esi,%edi
call   1030 <set_hoshi@plt>
mov    $0x3,%edi
mov    $0x9,%esi
call   1030 <set_hoshi@plt>
mov    $0x3,%edi
mov    $0xf,%esi
call   1030 <set_hoshi@plt>
mov    $0x9,%edi
mov    $0x3,%esi
call   1030 <set_hoshi@plt>
mov    $0x9,%esi
mov    %esi,%edi
call   1030 <set_hoshi@plt>
mov    $0x9,%edi
mov    $0xf,%esi
call   1030 <set_hoshi@plt>
mov    $0xf,%edi
mov    $0x3,%esi
call   1030 <set_hoshi@plt>
mov    $0xf,%edi
mov    $0x9,%esi
call   1030 <set_hoshi@plt>
mov    $0xf,%esi
mov    %esi,%edi
call   1030 <set_hoshi@plt>
jmp    1270 <init_hoshi+0x150>
mov    $0x3,%esi
mov    %esi,%edi
call   1030 <set_hoshi@plt>
mov    $0x3,%edi
mov    $0x9,%esi
call   1030 <set_hoshi@plt>
mov    $0x9,%edi
mov    $0x3,%esi
call   1030 <set_hoshi@plt>
mov    $0x9,%esi
mov    %esi,%edi
call   1030 <set_hoshi@plt>
mov    $0x6,%esi
mov    %esi,%edi
call   1030 <set_hoshi@plt>
jmp    1270 <init_hoshi+0x150>
mov    $0x2,%esi
mov    %esi,%edi
call   1030 <set_hoshi@plt>
mov    $0x2,%edi
mov    $0x6,%esi
call   1030 <set_hoshi@plt>
mov    $0x6,%edi
mov    $0x2,%esi
call   1030 <set_hoshi@plt>
mov    $0x6,%esi
mov    %esi,%edi
call   1030 <set_hoshi@plt>
mov    $0x4,%esi
mov    %esi,%edi
call   1030 <set_hoshi@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<init_hoshi>:
push   %rax
xor    %eax,%eax
call   1040 <get_board_size@plt>
cmp    $0x9,%eax
je     11cb <init_hoshi+0xab>
cmp    $0xd,%eax
je     1217 <init_hoshi+0xf7>
cmp    $0x13,%eax
jne    1263 <init_hoshi+0x143>
mov    $0x3,%edi
mov    $0x3,%esi
call   1030 <set_hoshi@plt>
mov    $0x3,%edi
mov    $0x9,%esi
call   1030 <set_hoshi@plt>
mov    $0x3,%edi
mov    $0xf,%esi
call   1030 <set_hoshi@plt>
mov    $0x9,%edi
mov    $0x3,%esi
call   1030 <set_hoshi@plt>
mov    $0x9,%edi
mov    $0x9,%esi
call   1030 <set_hoshi@plt>
mov    $0x9,%edi
mov    $0xf,%esi
call   1030 <set_hoshi@plt>
mov    $0xf,%edi
mov    $0x3,%esi
call   1030 <set_hoshi@plt>
mov    $0xf,%edi
mov    $0x9,%esi
call   1030 <set_hoshi@plt>
mov    $0xf,%edi
mov    $0xf,%esi
pop    %rax
jmp    1030 <set_hoshi@plt>
mov    $0x2,%edi
mov    $0x2,%esi
call   1030 <set_hoshi@plt>
mov    $0x2,%edi
mov    $0x6,%esi
call   1030 <set_hoshi@plt>
mov    $0x6,%edi
mov    $0x2,%esi
call   1030 <set_hoshi@plt>
mov    $0x6,%edi
mov    $0x6,%esi
call   1030 <set_hoshi@plt>
mov    $0x4,%edi
mov    $0x4,%esi
pop    %rax
jmp    1030 <set_hoshi@plt>
mov    $0x3,%edi
mov    $0x3,%esi
call   1030 <set_hoshi@plt>
mov    $0x3,%edi
mov    $0x9,%esi
call   1030 <set_hoshi@plt>
mov    $0x9,%edi
mov    $0x3,%esi
call   1030 <set_hoshi@plt>
mov    $0x9,%edi
mov    $0x9,%esi
call   1030 <set_hoshi@plt>
mov    $0x6,%edi
mov    $0x6,%esi
pop    %rax
jmp    1030 <set_hoshi@plt>
pop    %rax
ret

LLVM IR (-O0):
define void @init_hoshi() {
%1 = call i32 (...) @get_board_size()
switch i32 %1, label %24 [
i32 19, label %2
i32 13, label %12
i32 9, label %18
]
2: ; preds = %0
%3 = call i32 @set_hoshi(i32 3, i32 3)
%4 = call i32 @set_hoshi(i32 3, i32 9)
%5 = call i32 @set_hoshi(i32 3, i32 15)
%6 = call i32 @set_hoshi(i32 9, i32 3)
%7 = call i32 @set_hoshi(i32 9, i32 9)
%8 = call i32 @set_hoshi(i32 9, i32 15)
%9 = call i32 @set_hoshi(i32 15, i32 3)
%10 = call i32 @set_hoshi(i32 15, i32 9)
%11 = call i32 @set_hoshi(i32 15, i32 15)
br label %24
12: ; preds = %0
%13 = call i32 @set_hoshi(i32 3, i32 3)
%14 = call i32 @set_hoshi(i32 3, i32 9)
%15 = call i32 @set_hoshi(i32 9, i32 3)
%16 = call i32 @set_hoshi(i32 9, i32 9)
%17 = call i32 @set_hoshi(i32 6, i32 6)
br label %24
18: ; preds = %0
%19 = call i32 @set_hoshi(i32 2, i32 2)
%20 = call i32 @set_hoshi(i32 2, i32 6)
%21 = call i32 @set_hoshi(i32 6, i32 2)
%22 = call i32 @set_hoshi(i32 6, i32 6)
%23 = call i32 @set_hoshi(i32 4, i32 4)
br label %24
24: ; preds = %0, %18, %12, %2
ret void
}

LLVM IR (-O2):
define void @init_hoshi() {
%1 = tail call i32 (...) @get_board_size()
switch i32 %1, label %24 [
i32 19, label %2
i32 13, label %12
i32 9, label %18
]
2: ; preds = %0
%3 = tail call i32 @set_hoshi(i32 3, i32 3)
%4 = tail call i32 @set_hoshi(i32 3, i32 9)
%5 = tail call i32 @set_hoshi(i32 3, i32 15)
%6 = tail call i32 @set_hoshi(i32 9, i32 3)
%7 = tail call i32 @set_hoshi(i32 9, i32 9)
%8 = tail call i32 @set_hoshi(i32 9, i32 15)
%9 = tail call i32 @set_hoshi(i32 15, i32 3)
%10 = tail call i32 @set_hoshi(i32 15, i32 9)
%11 = tail call i32 @set_hoshi(i32 15, i32 15)
br label %24
12: ; preds = %0
%13 = tail call i32 @set_hoshi(i32 3, i32 3)
%14 = tail call i32 @set_hoshi(i32 3, i32 9)
%15 = tail call i32 @set_hoshi(i32 9, i32 3)
%16 = tail call i32 @set_hoshi(i32 9, i32 9)
%17 = tail call i32 @set_hoshi(i32 6, i32 6)
br label %24
18: ; preds = %0
%19 = tail call i32 @set_hoshi(i32 2, i32 2)
%20 = tail call i32 @set_hoshi(i32 2, i32 6)
%21 = tail call i32 @set_hoshi(i32 6, i32 2)
%22 = tail call i32 @set_hoshi(i32 6, i32 6)
%23 = tail call i32 @set_hoshi(i32 4, i32 4)
br label %24
24: ; preds = %0, %18, %12, %2
ret void
}