int InitBoard(int b[8][8]) {
  int i, j;
  for (i = 0; i <= 7; i++) {
    for (j = 0; j <= 7; j++) {
      b[i][j] = 16;
    }
  }
  b[0][0] = 2 | 4;
  b[2][0] = 2 | 4;
  b[4][0] = 2 | 4;
  b[6][0] = 2 | 4;
  b[1][1] = 2 | 4;
  b[3][1] = 2 | 4;
  b[5][1] = 2 | 4;
  b[7][1] = 2 | 4;
  b[0][2] = 2 | 4;
  b[2][2] = 2 | 4;
  b[4][2] = 2 | 4;
  b[6][2] = 2 | 4;
  b[1][7] = 1 | 4;
  b[3][7] = 1 | 4;
  b[5][7] = 1 | 4;
  b[7][7] = 1 | 4;
  b[0][6] = 1 | 4;
  b[2][6] = 1 | 4;
  b[4][6] = 1 | 4;
  b[6][6] = 1 | 4;
  b[1][5] = 1 | 4;
  b[3][5] = 1 | 4;
  b[5][5] = 1 | 4;
  b[7][5] = 1 | 4;
  return 1;
}


x86 assembly (clang, -O0):
<InitBoard>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
movl   $0x0,-0xc(%rbp)
cmpl   $0x7,-0xc(%rbp)
jg     1165 <InitBoard+0x65>
movl   $0x0,-0x10(%rbp)
cmpl   $0x7,-0x10(%rbp)
jg     1152 <InitBoard+0x52>
mov    -0x8(%rbp),%rax
movslq -0xc(%rbp),%rcx
shl    $0x5,%rcx
add    %rcx,%rax
movslq -0x10(%rbp),%rcx
movl   $0x10,(%rax,%rcx,4)
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
jmp    1120 <InitBoard+0x20>
jmp    1157 <InitBoard+0x57>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    110f <InitBoard+0xf>
mov    -0x8(%rbp),%rax
movl   $0x6,(%rax)
mov    -0x8(%rbp),%rax
movl   $0x6,0x40(%rax)
mov    -0x8(%rbp),%rax
movl   $0x6,0x80(%rax)
mov    -0x8(%rbp),%rax
movl   $0x6,0xc0(%rax)
mov    -0x8(%rbp),%rax
movl   $0x6,0x24(%rax)
mov    -0x8(%rbp),%rax
movl   $0x6,0x64(%rax)
mov    -0x8(%rbp),%rax
movl   $0x6,0xa4(%rax)
mov    -0x8(%rbp),%rax
movl   $0x6,0xe4(%rax)
mov    -0x8(%rbp),%rax
movl   $0x6,0x8(%rax)
mov    -0x8(%rbp),%rax
movl   $0x6,0x48(%rax)
mov    -0x8(%rbp),%rax
movl   $0x6,0x88(%rax)
mov    -0x8(%rbp),%rax
movl   $0x6,0xc8(%rax)
mov    -0x8(%rbp),%rax
movl   $0x5,0x3c(%rax)
mov    -0x8(%rbp),%rax
movl   $0x5,0x7c(%rax)
mov    -0x8(%rbp),%rax
movl   $0x5,0xbc(%rax)
mov    -0x8(%rbp),%rax
movl   $0x5,0xfc(%rax)
mov    -0x8(%rbp),%rax
movl   $0x5,0x18(%rax)
mov    -0x8(%rbp),%rax
movl   $0x5,0x58(%rax)
mov    -0x8(%rbp),%rax
movl   $0x5,0x98(%rax)
mov    -0x8(%rbp),%rax
movl   $0x5,0xd8(%rax)
mov    -0x8(%rbp),%rax
movl   $0x5,0x34(%rax)
mov    -0x8(%rbp),%rax
movl   $0x5,0x74(%rax)
mov    -0x8(%rbp),%rax
movl   $0x5,0xb4(%rax)
mov    -0x8(%rbp),%rax
movl   $0x5,0xf4(%rax)
mov    $0x1,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<InitBoard>:
movaps 0xef9(%rip),%xmm0
movups %xmm0,(%rdi)
movups %xmm0,0x10(%rdi)
movups %xmm0,0x20(%rdi)
movups %xmm0,0x30(%rdi)
movups %xmm0,0x40(%rdi)
movups %xmm0,0x50(%rdi)
movups %xmm0,0x60(%rdi)
movups %xmm0,0x70(%rdi)
movups %xmm0,0x80(%rdi)
movups %xmm0,0x90(%rdi)
movups %xmm0,0xa0(%rdi)
movups %xmm0,0xb0(%rdi)
movups %xmm0,0xc0(%rdi)
movups %xmm0,0xd0(%rdi)
movups %xmm0,0xe0(%rdi)
movups %xmm0,0xf0(%rdi)
movl   $0x6,(%rdi)
movl   $0x6,0x40(%rdi)
movl   $0x6,0x80(%rdi)
movl   $0x6,0xc0(%rdi)
movl   $0x6,0x24(%rdi)
movl   $0x6,0x64(%rdi)
movl   $0x6,0xa4(%rdi)
movl   $0x6,0xe4(%rdi)
movl   $0x6,0x8(%rdi)
movl   $0x6,0x48(%rdi)
movl   $0x6,0x88(%rdi)
movl   $0x6,0xc8(%rdi)
movl   $0x5,0x3c(%rdi)
movl   $0x5,0x7c(%rdi)
movl   $0x5,0xbc(%rdi)
movl   $0x5,0xfc(%rdi)
movl   $0x5,0x18(%rdi)
movl   $0x5,0x58(%rdi)
movl   $0x5,0x98(%rdi)
movl   $0x5,0xd8(%rdi)
movl   $0x5,0x34(%rdi)
movl   $0x5,0x74(%rdi)
movl   $0x5,0xb4(%rdi)
movl   $0x5,0xf4(%rdi)
mov    $0x1,%eax
ret

LLVM IR (-O0):
define i32 @InitBoard([8 x i32]* %0) {
%2 = alloca [8 x i32]*
%3 = alloca i32
%4 = alloca i32
store [8 x i32]* %0, [8 x i32]** %2
store i32 0, i32* %3
br label %5
5: ; preds = %24, %1
%6 = load i32, i32* %3
%7 = icmp sle i32 %6, 7
br i1 %7, label %8, label %27
8: ; preds = %5
store i32 0, i32* %4
br label %9
9: ; preds = %20, %8
%10 = load i32, i32* %4
%11 = icmp sle i32 %10, 7
br i1 %11, label %12, label %23
12: ; preds = %9
%13 = load [8 x i32]*, [8 x i32]** %2
%14 = load i32, i32* %3
%15 = sext i32 %14 to i64
%16 = getelementptr inbounds [8 x i32], [8 x i32]* %13, i64 %15
%17 = load i32, i32* %4
%18 = sext i32 %17 to i64
%19 = getelementptr inbounds [8 x i32], [8 x i32]* %16, i64 0, i64 %18
store i32 16, i32* %19
br label %20
20: ; preds = %12
%21 = load i32, i32* %4
%22 = add nsw i32 %21, 1
store i32 %22, i32* %4
br label %9
23: ; preds = %9
br label %24
24: ; preds = %23
%25 = load i32, i32* %3
%26 = add nsw i32 %25, 1
store i32 %26, i32* %3
br label %5
27: ; preds = %5
%28 = load [8 x i32]*, [8 x i32]** %2
%29 = getelementptr inbounds [8 x i32], [8 x i32]* %28, i64 0
%30 = getelementptr inbounds [8 x i32], [8 x i32]* %29, i64 0, i64 0
store i32 6, i32* %30
%31 = load [8 x i32]*, [8 x i32]** %2
%32 = getelementptr inbounds [8 x i32], [8 x i32]* %31, i64 2
%33 = getelementptr inbounds [8 x i32], [8 x i32]* %32, i64 0, i64 0
store i32 6, i32* %33
%34 = load [8 x i32]*, [8 x i32]** %2
%35 = getelementptr inbounds [8 x i32], [8 x i32]* %34, i64 4
%36 = getelementptr inbounds [8 x i32], [8 x i32]* %35, i64 0, i64 0
store i32 6, i32* %36
%37 = load [8 x i32]*, [8 x i32]** %2
%38 = getelementptr inbounds [8 x i32], [8 x i32]* %37, i64 6
%39 = getelementptr inbounds [8 x i32], [8 x i32]* %38, i64 0, i64 0
store i32 6, i32* %39
%40 = load [8 x i32]*, [8 x i32]** %2
%41 = getelementptr inbounds [8 x i32], [8 x i32]* %40, i64 1
%42 = getelementptr inbounds [8 x i32], [8 x i32]* %41, i64 0, i64 1
store i32 6, i32* %42
%43 = load [8 x i32]*, [8 x i32]** %2
%44 = getelementptr inbounds [8 x i32], [8 x i32]* %43, i64 3
%45 = getelementptr inbounds [8 x i32], [8 x i32]* %44, i64 0, i64 1
store i32 6, i32* %45
%46 = load [8 x i32]*, [8 x i32]** %2
%47 = getelementptr inbounds [8 x i32], [8 x i32]* %46, i64 5
%48 = getelementptr inbounds [8 x i32], [8 x i32]* %47, i64 0, i64 1
store i32 6, i32* %48
%49 = load [8 x i32]*, [8 x i32]** %2
%50 = getelementptr inbounds [8 x i32], [8 x i32]* %49, i64 7
%51 = getelementptr inbounds [8 x i32], [8 x i32]* %50, i64 0, i64 1
store i32 6, i32* %51
%52 = load [8 x i32]*, [8 x i32]** %2
%53 = getelementptr inbounds [8 x i32], [8 x i32]* %52, i64 0
%54 = getelementptr inbounds [8 x i32], [8 x i32]* %53, i64 0, i64 2
store i32 6, i32* %54
%55 = load [8 x i32]*, [8 x i32]** %2
%56 = getelementptr inbounds [8 x i32], [8 x i32]* %55, i64 2
%57 = getelementptr inbounds [8 x i32], [8 x i32]* %56, i64 0, i64 2
store i32 6, i32* %57
%58 = load [8 x i32]*, [8 x i32]** %2
%59 = getelementptr inbounds [8 x i32], [8 x i32]* %58, i64 4
%60 = getelementptr inbounds [8 x i32], [8 x i32]* %59, i64 0, i64 2
store i32 6, i32* %60
%61 = load [8 x i32]*, [8 x i32]** %2
%62 = getelementptr inbounds [8 x i32], [8 x i32]* %61, i64 6
%63 = getelementptr inbounds [8 x i32], [8 x i32]* %62, i64 0, i64 2
store i32 6, i32* %63
%64 = load [8 x i32]*, [8 x i32]** %2
%65 = getelementptr inbounds [8 x i32], [8 x i32]* %64, i64 1
%66 = getelementptr inbounds [8 x i32], [8 x i32]* %65, i64 0, i64 7
store i32 5, i32* %66
%67 = load [8 x i32]*, [8 x i32]** %2
%68 = getelementptr inbounds [8 x i32], [8 x i32]* %67, i64 3
%69 = getelementptr inbounds [8 x i32], [8 x i32]* %68, i64 0, i64 7
store i32 5, i32* %69
%70 = load [8 x i32]*, [8 x i32]** %2
%71 = getelementptr inbounds [8 x i32], [8 x i32]* %70, i64 5
%72 = getelementptr inbounds [8 x i32], [8 x i32]* %71, i64 0, i64 7
store i32 5, i32* %72
%73 = load [8 x i32]*, [8 x i32]** %2
%74 = getelementptr inbounds [8 x i32], [8 x i32]* %73, i64 7
%75 = getelementptr inbounds [8 x i32], [8 x i32]* %74, i64 0, i64 7
store i32 5, i32* %75
%76 = load [8 x i32]*, [8 x i32]** %2
%77 = getelementptr inbounds [8 x i32], [8 x i32]* %76, i64 0
%78 = getelementptr inbounds [8 x i32], [8 x i32]* %77, i64 0, i64 6
store i32 5, i32* %78
%79 = load [8 x i32]*, [8 x i32]** %2
%80 = getelementptr inbounds [8 x i32], [8 x i32]* %79, i64 2
%81 = getelementptr inbounds [8 x i32], [8 x i32]* %80, i64 0, i64 6
store i32 5, i32* %81
%82 = load [8 x i32]*, [8 x i32]** %2
%83 = getelementptr inbounds [8 x i32], [8 x i32]* %82, i64 4
%84 = getelementptr inbounds [8 x i32], [8 x i32]* %83, i64 0, i64 6
store i32 5, i32* %84
%85 = load [8 x i32]*, [8 x i32]** %2
%86 = getelementptr inbounds [8 x i32], [8 x i32]* %85, i64 6
%87 = getelementptr inbounds [8 x i32], [8 x i32]* %86, i64 0, i64 6
store i32 5, i32* %87
%88 = load [8 x i32]*, [8 x i32]** %2
%89 = getelementptr inbounds [8 x i32], [8 x i32]* %88, i64 1
%90 = getelementptr inbounds [8 x i32], [8 x i32]* %89, i64 0, i64 5
store i32 5, i32* %90
%91 = load [8 x i32]*, [8 x i32]** %2
%92 = getelementptr inbounds [8 x i32], [8 x i32]* %91, i64 3
%93 = getelementptr inbounds [8 x i32], [8 x i32]* %92, i64 0, i64 5
store i32 5, i32* %93
%94 = load [8 x i32]*, [8 x i32]** %2
%95 = getelementptr inbounds [8 x i32], [8 x i32]* %94, i64 5
%96 = getelementptr inbounds [8 x i32], [8 x i32]* %95, i64 0, i64 5
store i32 5, i32* %96
%97 = load [8 x i32]*, [8 x i32]** %2
%98 = getelementptr inbounds [8 x i32], [8 x i32]* %97, i64 7
%99 = getelementptr inbounds [8 x i32], [8 x i32]* %98, i64 0, i64 5
store i32 5, i32* %99
ret i32 1
}

LLVM IR (-O2):
define i32 @InitBoard([8 x i32]* writeonly %0) {
%2 = bitcast [8 x i32]* %0 to <4 x i32>*
store <4 x i32> <i32 16, i32 16, i32 16, i32 16>, <4 x i32>* %2
%3 = getelementptr inbounds [8 x i32], [8 x i32]* %0, i64 0, i64 4
%4 = bitcast i32* %3 to <4 x i32>*
store <4 x i32> <i32 16, i32 16, i32 16, i32 16>, <4 x i32>* %4
%5 = getelementptr inbounds [8 x i32], [8 x i32]* %0, i64 1, i64 0
%6 = bitcast i32* %5 to <4 x i32>*
store <4 x i32> <i32 16, i32 16, i32 16, i32 16>, <4 x i32>* %6
%7 = getelementptr inbounds [8 x i32], [8 x i32]* %0, i64 1, i64 4
%8 = bitcast i32* %7 to <4 x i32>*
store <4 x i32> <i32 16, i32 16, i32 16, i32 16>, <4 x i32>* %8
%9 = getelementptr inbounds [8 x i32], [8 x i32]* %0, i64 2, i64 0
%10 = bitcast i32* %9 to <4 x i32>*
store <4 x i32> <i32 16, i32 16, i32 16, i32 16>, <4 x i32>* %10
%11 = getelementptr inbounds [8 x i32], [8 x i32]* %0, i64 2, i64 4
%12 = bitcast i32* %11 to <4 x i32>*
store <4 x i32> <i32 16, i32 16, i32 16, i32 16>, <4 x i32>* %12
%13 = getelementptr inbounds [8 x i32], [8 x i32]* %0, i64 3, i64 0
%14 = bitcast i32* %13 to <4 x i32>*
store <4 x i32> <i32 16, i32 16, i32 16, i32 16>, <4 x i32>* %14
%15 = getelementptr inbounds [8 x i32], [8 x i32]* %0, i64 3, i64 4
%16 = bitcast i32* %15 to <4 x i32>*
store <4 x i32> <i32 16, i32 16, i32 16, i32 16>, <4 x i32>* %16
%17 = getelementptr inbounds [8 x i32], [8 x i32]* %0, i64 4, i64 0
%18 = bitcast i32* %17 to <4 x i32>*
store <4 x i32> <i32 16, i32 16, i32 16, i32 16>, <4 x i32>* %18
%19 = getelementptr inbounds [8 x i32], [8 x i32]* %0, i64 4, i64 4
%20 = bitcast i32* %19 to <4 x i32>*
store <4 x i32> <i32 16, i32 16, i32 16, i32 16>, <4 x i32>* %20
%21 = getelementptr inbounds [8 x i32], [8 x i32]* %0, i64 5, i64 0
%22 = bitcast i32* %21 to <4 x i32>*
store <4 x i32> <i32 16, i32 16, i32 16, i32 16>, <4 x i32>* %22
%23 = getelementptr inbounds [8 x i32], [8 x i32]* %0, i64 5, i64 4
%24 = bitcast i32* %23 to <4 x i32>*
store <4 x i32> <i32 16, i32 16, i32 16, i32 16>, <4 x i32>* %24
%25 = getelementptr inbounds [8 x i32], [8 x i32]* %0, i64 6, i64 0
%26 = bitcast i32* %25 to <4 x i32>*
store <4 x i32> <i32 16, i32 16, i32 16, i32 16>, <4 x i32>* %26
%27 = getelementptr inbounds [8 x i32], [8 x i32]* %0, i64 6, i64 4
%28 = bitcast i32* %27 to <4 x i32>*
store <4 x i32> <i32 16, i32 16, i32 16, i32 16>, <4 x i32>* %28
%29 = getelementptr inbounds [8 x i32], [8 x i32]* %0, i64 7, i64 0
%30 = bitcast i32* %29 to <4 x i32>*
store <4 x i32> <i32 16, i32 16, i32 16, i32 16>, <4 x i32>* %30
%31 = getelementptr inbounds [8 x i32], [8 x i32]* %0, i64 7, i64 4
%32 = bitcast i32* %31 to <4 x i32>*
store <4 x i32> <i32 16, i32 16, i32 16, i32 16>, <4 x i32>* %32
%33 = getelementptr inbounds [8 x i32], [8 x i32]* %0, i64 0, i64 0
store i32 6, i32* %33
%34 = getelementptr inbounds [8 x i32], [8 x i32]* %0, i64 2, i64 0
store i32 6, i32* %34
%35 = getelementptr inbounds [8 x i32], [8 x i32]* %0, i64 4, i64 0
store i32 6, i32* %35
%36 = getelementptr inbounds [8 x i32], [8 x i32]* %0, i64 6, i64 0
store i32 6, i32* %36
%37 = getelementptr inbounds [8 x i32], [8 x i32]* %0, i64 1, i64 1
store i32 6, i32* %37
%38 = getelementptr inbounds [8 x i32], [8 x i32]* %0, i64 3, i64 1
store i32 6, i32* %38
%39 = getelementptr inbounds [8 x i32], [8 x i32]* %0, i64 5, i64 1
store i32 6, i32* %39
%40 = getelementptr inbounds [8 x i32], [8 x i32]* %0, i64 7, i64 1
store i32 6, i32* %40
%41 = getelementptr inbounds [8 x i32], [8 x i32]* %0, i64 0, i64 2
store i32 6, i32* %41
%42 = getelementptr inbounds [8 x i32], [8 x i32]* %0, i64 2, i64 2
store i32 6, i32* %42
%43 = getelementptr inbounds [8 x i32], [8 x i32]* %0, i64 4, i64 2
store i32 6, i32* %43
%44 = getelementptr inbounds [8 x i32], [8 x i32]* %0, i64 6, i64 2
store i32 6, i32* %44
%45 = getelementptr inbounds [8 x i32], [8 x i32]* %0, i64 1, i64 7
store i32 5, i32* %45
%46 = getelementptr inbounds [8 x i32], [8 x i32]* %0, i64 3, i64 7
store i32 5, i32* %46
%47 = getelementptr inbounds [8 x i32], [8 x i32]* %0, i64 5, i64 7
store i32 5, i32* %47
%48 = getelementptr inbounds [8 x i32], [8 x i32]* %0, i64 7, i64 7
store i32 5, i32* %48
%49 = getelementptr inbounds [8 x i32], [8 x i32]* %0, i64 0, i64 6
store i32 5, i32* %49
%50 = getelementptr inbounds [8 x i32], [8 x i32]* %0, i64 2, i64 6
store i32 5, i32* %50
%51 = getelementptr inbounds [8 x i32], [8 x i32]* %0, i64 4, i64 6
store i32 5, i32* %51
%52 = getelementptr inbounds [8 x i32], [8 x i32]* %0, i64 6, i64 6
store i32 5, i32* %52
%53 = getelementptr inbounds [8 x i32], [8 x i32]* %0, i64 1, i64 5
store i32 5, i32* %53
%54 = getelementptr inbounds [8 x i32], [8 x i32]* %0, i64 3, i64 5
store i32 5, i32* %54
%55 = getelementptr inbounds [8 x i32], [8 x i32]* %0, i64 5, i64 5
store i32 5, i32* %55
%56 = getelementptr inbounds [8 x i32], [8 x i32]* %0, i64 7, i64 5
store i32 5, i32* %56
ret i32 1
}