#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 *, unsigned int);
int /*<<< orphan*/ scanf(char *, char *);
int /*<<< orphan*/ willWin(char **, char, unsigned int, unsigned int);
int main(int argc, char *argv[]) {
  char board[5][5];
  char iWin, heWins, flag;
  unsigned int i, j;
  scanf(" %c", &board[0][0]);
  while (board[0][0] != 'F') {
    for (j = 1; j < 5; ++j)
      scanf(" %c", &board[0][j]);
    for (i = 1; i < 5; ++i)
      for (j = 0; j < 5; ++j)
        scanf(" %c", &board[i][j]);
    for (i = 0; i < 5; ++i) {
      for (j = 0; j < 5; ++j) {
        if (board[i][j] != '*')
          continue;
        board[i][j] = 'O';
        flag = !willWin(board, 'O', i, j) && !willWin(board, 'X', i, j);
        if (flag)
          goto print;
      }
    }
  print:
    printf("%u\n", i * 5 + j + 1);
    scanf(" %c", &board[0][0]);
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
lea    -0x30(%rbp),%rsi
lea    0xeaf(%rip),%rdi
call   1050 <scanf@plt>
movsbl -0x30(%rbp),%eax
cmp    $0x46,%eax
je     130c <main+0x1dc>
movl   $0x1,-0x3c(%rbp)
cmpl   $0x5,-0x3c(%rbp)
jae    1198 <main+0x68>
lea    -0x30(%rbp),%rsi
mov    -0x3c(%rbp),%eax
add    %rax,%rsi
lea    0xe7b(%rip),%rdi
call   1050 <scanf@plt>
mov    -0x3c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x3c(%rbp)
jmp    116a <main+0x3a>
movl   $0x1,-0x38(%rbp)
cmpl   $0x5,-0x38(%rbp)
jae    11fb <main+0xcb>
movl   $0x0,-0x3c(%rbp)
cmpl   $0x5,-0x3c(%rbp)
jae    11e8 <main+0xb8>
mov    -0x38(%rbp),%eax
lea    -0x30(%rbp),%rsi
imul   $0x5,%rax,%rax
add    %rax,%rsi
mov    -0x3c(%rbp),%eax
add    %rax,%rsi
lea    0xe2b(%rip),%rdi
call   1050 <scanf@plt>
mov    -0x3c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x3c(%rbp)
jmp    11b0 <main+0x80>
jmp    11ed <main+0xbd>
mov    -0x38(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x38(%rbp)
jmp    119f <main+0x6f>
movl   $0x0,-0x38(%rbp)
cmpl   $0x5,-0x38(%rbp)
jae    12dc <main+0x1ac>
movl   $0x0,-0x3c(%rbp)
cmpl   $0x5,-0x3c(%rbp)
jae    12c9 <main+0x199>
mov    -0x38(%rbp),%eax
mov    %eax,%ecx
lea    -0x30(%rbp),%rax
imul   $0x5,%rcx,%rcx
add    %rcx,%rax
mov    -0x3c(%rbp),%ecx
movsbl (%rax,%rcx,1),%eax
cmp    $0x2a,%eax
je     1242 <main+0x112>
jmp    12bb <main+0x18b>
mov    -0x38(%rbp),%eax
mov    %eax,%ecx
lea    -0x30(%rbp),%rax
imul   $0x5,%rcx,%rcx
add    %rcx,%rax
mov    -0x3c(%rbp),%ecx
movb   $0x4f,(%rax,%rcx,1)
lea    -0x30(%rbp),%rdi
mov    -0x38(%rbp),%edx
mov    -0x3c(%rbp),%ecx
mov    $0x4f,%esi
call   1030 <willWin@plt>
mov    %eax,%ecx
xor    %eax,%eax
cmp    $0x0,%ecx
mov    %al,-0x3d(%rbp)
jne    129c <main+0x16c>
lea    -0x30(%rbp),%rdi
mov    -0x38(%rbp),%edx
mov    -0x3c(%rbp),%ecx
mov    $0x58,%esi
call   1030 <willWin@plt>
cmp    $0x0,%eax
setne  %al
xor    $0xff,%al
mov    %al,-0x3d(%rbp)
mov    -0x3d(%rbp),%al
and    $0x1,%al
movzbl %al,%eax
mov    %al,-0x33(%rbp)
cmpb   $0x0,-0x33(%rbp)
je     12b6 <main+0x186>
jmp    12e1 <main+0x1b1>
jmp    12bb <main+0x18b>
mov    -0x3c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x3c(%rbp)
jmp    1213 <main+0xe3>
jmp    12ce <main+0x19e>
mov    -0x38(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x38(%rbp)
jmp    1202 <main+0xd2>
jmp    12e1 <main+0x1b1>
imul   $0x5,-0x38(%rbp),%esi
add    -0x3c(%rbp),%esi
add    $0x1,%esi
lea    0xd12(%rip),%rdi
call   1040 <printf@plt>
lea    -0x30(%rbp),%rsi
lea    0xcfe(%rip),%rdi
call   1050 <scanf@plt>
jmp    1156 <main+0x26>
xor    %eax,%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x28,%rsp
lea    0xebb(%rip),%rdi
mov    %rsp,%rsi
call   1050 <scanf@plt>
cmpb   $0x46,(%rsp)
jne    1164 <main+0x34>
xor    %eax,%eax
add    $0x28,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
lea    0x4(%rsp),%r12
lea    0xe90(%rip),%r13
mov    %rsp,%rbp
lea    0xe8a(%rip),%r14
jmp    11ae <main+0x7e>
nopl   0x0(%rax)
mov    $0x5,%r15d
mov    $0x5,%eax
lea    (%r15,%r15,4),%ecx
lea    (%rax,%rcx,1),%esi
add    $0x1,%esi
mov    %r14,%rdi
call   1040 <printf@plt>
mov    %r13,%rdi
mov    %rbp,%rsi
call   1050 <scanf@plt>
cmpb   $0x46,(%rsp)
je     1153 <main+0x23>
mov    %r13,%rdi
lea    0x1(%rsp),%rsi
call   1050 <scanf@plt>
mov    %r13,%rdi
lea    0x2(%rsp),%rsi
call   1050 <scanf@plt>
mov    %r13,%rdi
lea    0x3(%rsp),%rsi
call   1050 <scanf@plt>
mov    %r13,%rdi
mov    %r12,%rsi
call   1050 <scanf@plt>
mov    %r13,%rdi
lea    0x5(%rsp),%rsi
call   1050 <scanf@plt>
mov    %r13,%rdi
lea    0x6(%rsp),%rsi
call   1050 <scanf@plt>
mov    %r13,%rdi
lea    0x7(%rsp),%rsi
call   1050 <scanf@plt>
mov    %r13,%rdi
lea    0x8(%rsp),%rsi
call   1050 <scanf@plt>
mov    %r13,%rdi
lea    0x9(%rsp),%rsi
call   1050 <scanf@plt>
mov    %r13,%rdi
lea    0xa(%rsp),%rsi
call   1050 <scanf@plt>
mov    %r13,%rdi
lea    0xb(%rsp),%rsi
call   1050 <scanf@plt>
mov    %r13,%rdi
lea    0xc(%rsp),%rsi
call   1050 <scanf@plt>
mov    %r13,%rdi
lea    0xd(%rsp),%rsi
call   1050 <scanf@plt>
mov    %r13,%rdi
lea    0xe(%rsp),%rsi
call   1050 <scanf@plt>
mov    %r13,%rdi
lea    0xf(%rsp),%rsi
call   1050 <scanf@plt>
mov    %r13,%rdi
lea    0x10(%rsp),%rsi
call   1050 <scanf@plt>
mov    %r13,%rdi
lea    0x11(%rsp),%rsi
call   1050 <scanf@plt>
mov    %r13,%rdi
lea    0x12(%rsp),%rsi
call   1050 <scanf@plt>
mov    %r13,%rdi
lea    0x13(%rsp),%rsi
call   1050 <scanf@plt>
mov    %r13,%rdi
lea    0x14(%rsp),%rsi
call   1050 <scanf@plt>
mov    %r13,%rdi
lea    0x15(%rsp),%rsi
call   1050 <scanf@plt>
mov    %r13,%rdi
lea    0x16(%rsp),%rsi
call   1050 <scanf@plt>
mov    %r13,%rdi
lea    0x17(%rsp),%rsi
call   1050 <scanf@plt>
mov    %r13,%rdi
lea    0x18(%rsp),%rsi
call   1050 <scanf@plt>
mov    %r12,%rbx
xor    %r15d,%r15d
jmp    1302 <main+0x1d2>
nopl   0x0(%rax)
add    $0x1,%r15
add    $0x5,%rbx
cmp    $0x5,%r15
je     1180 <main+0x50>
cmpb   $0x2a,-0x4(%rbx)
jne    1340 <main+0x210>
movb   $0x4f,-0x4(%rbx)
mov    %rbp,%rdi
mov    $0x4f,%esi
mov    %r15d,%edx
xor    %ecx,%ecx
call   1030 <willWin@plt>
test   %eax,%eax
jne    1340 <main+0x210>
mov    %rbp,%rdi
mov    $0x58,%esi
mov    %r15d,%edx
xor    %ecx,%ecx
call   1030 <willWin@plt>
test   %eax,%eax
je     1450 <main+0x320>
nopl   0x0(%rax)
cmpb   $0x2a,-0x3(%rbx)
jne    1380 <main+0x250>
movb   $0x4f,-0x3(%rbx)
mov    %rbp,%rdi
mov    $0x4f,%esi
mov    %r15d,%edx
mov    $0x1,%ecx
call   1030 <willWin@plt>
test   %eax,%eax
jne    1380 <main+0x250>
mov    %rbp,%rdi
mov    $0x58,%esi
mov    %r15d,%edx
mov    $0x1,%ecx
call   1030 <willWin@plt>
test   %eax,%eax
je     1457 <main+0x327>
cmpb   $0x2a,-0x2(%rbx)
jne    13c0 <main+0x290>
movb   $0x4f,-0x2(%rbx)
mov    %rbp,%rdi
mov    $0x4f,%esi
mov    %r15d,%edx
mov    $0x2,%ecx
call   1030 <willWin@plt>
test   %eax,%eax
jne    13c0 <main+0x290>
mov    %rbp,%rdi
mov    $0x58,%esi
mov    %r15d,%edx
mov    $0x2,%ecx
call   1030 <willWin@plt>
test   %eax,%eax
je     1461 <main+0x331>
cmpb   $0x2a,-0x1(%rbx)
jne    1400 <main+0x2d0>
movb   $0x4f,-0x1(%rbx)
mov    %rbp,%rdi
mov    $0x4f,%esi
mov    %r15d,%edx
mov    $0x3,%ecx
call   1030 <willWin@plt>
test   %eax,%eax
jne    1400 <main+0x2d0>
mov    %rbp,%rdi
mov    $0x58,%esi
mov    %r15d,%edx
mov    $0x3,%ecx
call   1030 <willWin@plt>
test   %eax,%eax
je     146b <main+0x33b>
nopl   0x0(%rax)
cmpb   $0x2a,(%rbx)
jne    12f0 <main+0x1c0>
movb   $0x4f,(%rbx)
mov    %rbp,%rdi
mov    $0x4f,%esi
mov    %r15d,%edx
mov    $0x4,%ecx
call   1030 <willWin@plt>
test   %eax,%eax
jne    12f0 <main+0x1c0>
mov    %rbp,%rdi
mov    $0x58,%esi
mov    %r15d,%edx
mov    $0x4,%ecx
call   1030 <willWin@plt>
test   %eax,%eax
jne    12f0 <main+0x1c0>
mov    $0x4,%eax
jmp    118b <main+0x5b>
xor    %eax,%eax
jmp    118b <main+0x5b>
mov    $0x1,%eax
jmp    118b <main+0x5b>
mov    $0x2,%eax
jmp    118b <main+0x5b>
mov    $0x3,%eax
jmp    118b <main+0x5b>

LLVM IR (-O0):
@.str = [4 x i8] c" %c\00"
@.str.1 = [4 x i8] c"%u\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca [5 x [5 x i8]]
%7 = alloca i8
%8 = alloca i8
%9 = alloca i8
%10 = alloca i32
%11 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%12 = getelementptr inbounds [5 x [5 x i8]], [5 x [5 x i8]]* %6, i64 0, i64 0
%13 = getelementptr inbounds [5 x i8], [5 x i8]* %12, i64 0, i64 0
%14 = call i32 @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* %13)
br label %15
15: ; preds = %113, %2
%16 = getelementptr inbounds [5 x [5 x i8]], [5 x [5 x i8]]* %6, i64 0, i64 0
%17 = getelementptr inbounds [5 x i8], [5 x i8]* %16, i64 0, i64 0
%18 = load i8, i8* %17
%19 = sext i8 %18 to i32
%20 = icmp ne i32 %19, 70
br i1 %20, label %21, label %123
21: ; preds = %15
store i32 1, i32* %11
br label %22
22: ; preds = %31, %21
%23 = load i32, i32* %11
%24 = icmp ult i32 %23, 5
br i1 %24, label %25, label %34
25: ; preds = %22
%26 = getelementptr inbounds [5 x [5 x i8]], [5 x [5 x i8]]* %6, i64 0, i64 0
%27 = load i32, i32* %11
%28 = zext i32 %27 to i64
%29 = getelementptr inbounds [5 x i8], [5 x i8]* %26, i64 0, i64 %28
%30 = call i32 @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* %29)
br label %31
31: ; preds = %25
%32 = load i32, i32* %11
%33 = add i32 %32, 1
store i32 %33, i32* %11
br label %22
34: ; preds = %22
store i32 1, i32* %10
br label %35
35: ; preds = %54, %34
%36 = load i32, i32* %10
%37 = icmp ult i32 %36, 5
br i1 %37, label %38, label %57
38: ; preds = %35
store i32 0, i32* %11
br label %39
39: ; preds = %50, %38
%40 = load i32, i32* %11
%41 = icmp ult i32 %40, 5
br i1 %41, label %42, label %53
42: ; preds = %39
%43 = load i32, i32* %10
%44 = zext i32 %43 to i64
%45 = getelementptr inbounds [5 x [5 x i8]], [5 x [5 x i8]]* %6, i64 0, i64 %44
%46 = load i32, i32* %11
%47 = zext i32 %46 to i64
%48 = getelementptr inbounds [5 x i8], [5 x i8]* %45, i64 0, i64 %47
%49 = call i32 @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* %48)
br label %50
50: ; preds = %42
%51 = load i32, i32* %11
%52 = add i32 %51, 1
store i32 %52, i32* %11
br label %39
53: ; preds = %39
br label %54
54: ; preds = %53
%55 = load i32, i32* %10
%56 = add i32 %55, 1
store i32 %56, i32* %10
br label %35
57: ; preds = %35
store i32 0, i32* %10
br label %58
58: ; preds = %109, %57
%59 = load i32, i32* %10
%60 = icmp ult i32 %59, 5
br i1 %60, label %61, label %112
61: ; preds = %58
store i32 0, i32* %11
br label %62
62: ; preds = %105, %61
%63 = load i32, i32* %11
%64 = icmp ult i32 %63, 5
br i1 %64, label %65, label %108
65: ; preds = %62
%66 = load i32, i32* %10
%67 = zext i32 %66 to i64
%68 = getelementptr inbounds [5 x [5 x i8]], [5 x [5 x i8]]* %6, i64 0, i64 %67
%69 = load i32, i32* %11
%70 = zext i32 %69 to i64
%71 = getelementptr inbounds [5 x i8], [5 x i8]* %68, i64 0, i64 %70
%72 = load i8, i8* %71
%73 = sext i8 %72 to i32
%74 = icmp ne i32 %73, 42
br i1 %74, label %75, label %76
75: ; preds = %65
br label %105
76: ; preds = %65
%77 = load i32, i32* %10
%78 = zext i32 %77 to i64
%79 = getelementptr inbounds [5 x [5 x i8]], [5 x [5 x i8]]* %6, i64 0, i64 %78
%80 = load i32, i32* %11
%81 = zext i32 %80 to i64
%82 = getelementptr inbounds [5 x i8], [5 x i8]* %79, i64 0, i64 %81
store i8 79, i8* %82
%83 = getelementptr inbounds [5 x [5 x i8]], [5 x [5 x i8]]* %6, i64 0, i64 0
%84 = bitcast [5 x i8]* %83 to i8**
%85 = load i32, i32* %10
%86 = load i32, i32* %11
%87 = call i32 @willWin(i8** %84, i8 signext 79, i32 %85, i32 %86)
%88 = icmp ne i32 %87, 0
br i1 %88, label %97, label %89
89: ; preds = %76
%90 = getelementptr inbounds [5 x [5 x i8]], [5 x [5 x i8]]* %6, i64 0, i64 0
%91 = bitcast [5 x i8]* %90 to i8**
%92 = load i32, i32* %10
%93 = load i32, i32* %11
%94 = call i32 @willWin(i8** %91, i8 signext 88, i32 %92, i32 %93)
%95 = icmp ne i32 %94, 0
%96 = xor i1 %95, true
br label %97
97: ; preds = %89, %76
%98 = phi i1 [ false, %76 ], [ %96, %89 ]
%99 = zext i1 %98 to i32
%100 = trunc i32 %99 to i8
store i8 %100, i8* %9
%101 = load i8, i8* %9
%102 = icmp ne i8 %101, 0
br i1 %102, label %103, label %104
103: ; preds = %97
br label %113
104: ; preds = %97
br label %105
105: ; preds = %104, %75
%106 = load i32, i32* %11
%107 = add i32 %106, 1
store i32 %107, i32* %11
br label %62
108: ; preds = %62
br label %109
109: ; preds = %108
%110 = load i32, i32* %10
%111 = add i32 %110, 1
store i32 %111, i32* %10
br label %58
112: ; preds = %58
br label %113
113: ; preds = %112, %103
%114 = load i32, i32* %10
%115 = mul i32 %114, 5
%116 = load i32, i32* %11
%117 = add i32 %115, %116
%118 = add i32 %117, 1
%119 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %118)
%120 = getelementptr inbounds [5 x [5 x i8]], [5 x [5 x i8]]* %6, i64 0, i64 0
%121 = getelementptr inbounds [5 x i8], [5 x i8]* %120, i64 0, i64 0
%122 = call i32 @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* %121)
br label %15
123: ; preds = %15
ret i32 0
}

LLVM IR (-O2):
@.str = [4 x i8] c" %c\00"
@.str.1 = [4 x i8] c"%u\0A\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = alloca [5 x [5 x i8]]
%4 = getelementptr inbounds [5 x [5 x i8]], [5 x [5 x i8]]* %3, i64 0, i64 0, i64 0
%5 = call i32 @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* %4)
%6 = load i8, i8* %4
%7 = icmp eq i8 %6, 70
br i1 %7, label %134, label %8
8: ; preds = %2
%9 = bitcast [5 x [5 x i8]]* %3 to i8**
%10 = getelementptr inbounds [5 x [5 x i8]], [5 x [5 x i8]]* %3, i64 0, i64 0, i64 1
%11 = getelementptr inbounds [5 x [5 x i8]], [5 x [5 x i8]]* %3, i64 0, i64 0, i64 2
%12 = getelementptr inbounds [5 x [5 x i8]], [5 x [5 x i8]]* %3, i64 0, i64 0, i64 3
%13 = getelementptr inbounds [5 x [5 x i8]], [5 x [5 x i8]]* %3, i64 0, i64 0, i64 4
%14 = getelementptr inbounds [5 x [5 x i8]], [5 x [5 x i8]]* %3, i64 0, i64 1, i64 0
%15 = getelementptr inbounds [5 x [5 x i8]], [5 x [5 x i8]]* %3, i64 0, i64 1, i64 1
%16 = getelementptr inbounds [5 x [5 x i8]], [5 x [5 x i8]]* %3, i64 0, i64 1, i64 2
%17 = getelementptr inbounds [5 x [5 x i8]], [5 x [5 x i8]]* %3, i64 0, i64 1, i64 3
%18 = getelementptr inbounds [5 x [5 x i8]], [5 x [5 x i8]]* %3, i64 0, i64 1, i64 4
%19 = getelementptr inbounds [5 x [5 x i8]], [5 x [5 x i8]]* %3, i64 0, i64 2, i64 0
%20 = getelementptr inbounds [5 x [5 x i8]], [5 x [5 x i8]]* %3, i64 0, i64 2, i64 1
%21 = getelementptr inbounds [5 x [5 x i8]], [5 x [5 x i8]]* %3, i64 0, i64 2, i64 2
%22 = getelementptr inbounds [5 x [5 x i8]], [5 x [5 x i8]]* %3, i64 0, i64 2, i64 3
%23 = getelementptr inbounds [5 x [5 x i8]], [5 x [5 x i8]]* %3, i64 0, i64 2, i64 4
%24 = getelementptr inbounds [5 x [5 x i8]], [5 x [5 x i8]]* %3, i64 0, i64 3, i64 0
%25 = getelementptr inbounds [5 x [5 x i8]], [5 x [5 x i8]]* %3, i64 0, i64 3, i64 1
%26 = getelementptr inbounds [5 x [5 x i8]], [5 x [5 x i8]]* %3, i64 0, i64 3, i64 2
%27 = getelementptr inbounds [5 x [5 x i8]], [5 x [5 x i8]]* %3, i64 0, i64 3, i64 3
%28 = getelementptr inbounds [5 x [5 x i8]], [5 x [5 x i8]]* %3, i64 0, i64 3, i64 4
%29 = getelementptr inbounds [5 x [5 x i8]], [5 x [5 x i8]]* %3, i64 0, i64 4, i64 0
%30 = getelementptr inbounds [5 x [5 x i8]], [5 x [5 x i8]]* %3, i64 0, i64 4, i64 1
%31 = getelementptr inbounds [5 x [5 x i8]], [5 x [5 x i8]]* %3, i64 0, i64 4, i64 2
%32 = getelementptr inbounds [5 x [5 x i8]], [5 x [5 x i8]]* %3, i64 0, i64 4, i64 3
%33 = getelementptr inbounds [5 x [5 x i8]], [5 x [5 x i8]]* %3, i64 0, i64 4, i64 4
br label %34
34: ; preds = %8, %124
%35 = call i32 @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* %10)
%36 = call i32 @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* %11)
%37 = call i32 @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* %12)
%38 = call i32 @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* %13)
%39 = call i32 @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* %14)
%40 = call i32 @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* %15)
%41 = call i32 @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* %16)
%42 = call i32 @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* %17)
%43 = call i32 @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* %18)
%44 = call i32 @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* %19)
%45 = call i32 @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* %20)
%46 = call i32 @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* %21)
%47 = call i32 @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* %22)
%48 = call i32 @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* %23)
%49 = call i32 @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* %24)
%50 = call i32 @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* %25)
%51 = call i32 @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* %26)
%52 = call i32 @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* %27)
%53 = call i32 @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* %28)
%54 = call i32 @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* %29)
%55 = call i32 @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* %30)
%56 = call i32 @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* %31)
%57 = call i32 @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* %32)
%58 = call i32 @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* %33)
br label %59
59: ; preds = %34, %111
%60 = phi i64 [ 0, %34 ], [ %112, %111 ]
%61 = getelementptr inbounds [5 x [5 x i8]], [5 x [5 x i8]]* %3, i64 0, i64 %60, i64 0
%62 = load i8, i8* %61
%63 = icmp eq i8 %62, 42
%64 = trunc i64 %60 to i32
br i1 %63, label %65, label %71
65: ; preds = %59
store i8 79, i8* %61
%66 = call i32 @willWin(i8** %9, i8 signext 79, i32 %64, i32 0)
%67 = icmp eq i32 %66, 0
br i1 %67, label %68, label %71
68: ; preds = %65
%69 = call i32 @willWin(i8** %9, i8 signext 88, i32 %64, i32 0)
%70 = icmp eq i32 %69, 0
br i1 %70, label %114, label %71
71: ; preds = %65, %68, %59
%72 = getelementptr inbounds [5 x [5 x i8]], [5 x [5 x i8]]* %3, i64 0, i64 %60, i64 1
%73 = load i8, i8* %72
%74 = icmp eq i8 %73, 42
br i1 %74, label %75, label %81
75: ; preds = %71
store i8 79, i8* %72
%76 = call i32 @willWin(i8** %9, i8 signext 79, i32 %64, i32 1)
%77 = icmp eq i32 %76, 0
br i1 %77, label %78, label %81
78: ; preds = %75
%79 = call i32 @willWin(i8** %9, i8 signext 88, i32 %64, i32 1)
%80 = icmp eq i32 %79, 0
br i1 %80, label %116, label %81
81: ; preds = %78, %75, %71
%82 = getelementptr inbounds [5 x [5 x i8]], [5 x [5 x i8]]* %3, i64 0, i64 %60, i64 2
%83 = load i8, i8* %82
%84 = icmp eq i8 %83, 42
br i1 %84, label %85, label %91
85: ; preds = %81
store i8 79, i8* %82
%86 = call i32 @willWin(i8** %9, i8 signext 79, i32 %64, i32 2)
%87 = icmp eq i32 %86, 0
br i1 %87, label %88, label %91
88: ; preds = %85
%89 = call i32 @willWin(i8** %9, i8 signext 88, i32 %64, i32 2)
%90 = icmp eq i32 %89, 0
br i1 %90, label %118, label %91
91: ; preds = %88, %85, %81
%92 = getelementptr inbounds [5 x [5 x i8]], [5 x [5 x i8]]* %3, i64 0, i64 %60, i64 3
%93 = load i8, i8* %92
%94 = icmp eq i8 %93, 42
br i1 %94, label %95, label %101
95: ; preds = %91
store i8 79, i8* %92
%96 = call i32 @willWin(i8** %9, i8 signext 79, i32 %64, i32 3)
%97 = icmp eq i32 %96, 0
br i1 %97, label %98, label %101
98: ; preds = %95
%99 = call i32 @willWin(i8** %9, i8 signext 88, i32 %64, i32 3)
%100 = icmp eq i32 %99, 0
br i1 %100, label %120, label %101
101: ; preds = %98, %95, %91
%102 = getelementptr inbounds [5 x [5 x i8]], [5 x [5 x i8]]* %3, i64 0, i64 %60, i64 4
%103 = load i8, i8* %102
%104 = icmp eq i8 %103, 42
br i1 %104, label %105, label %111
105: ; preds = %101
store i8 79, i8* %102
%106 = call i32 @willWin(i8** %9, i8 signext 79, i32 %64, i32 4)
%107 = icmp eq i32 %106, 0
br i1 %107, label %108, label %111
108: ; preds = %105
%109 = call i32 @willWin(i8** %9, i8 signext 88, i32 %64, i32 4)
%110 = icmp eq i32 %109, 0
br i1 %110, label %122, label %111
111: ; preds = %108, %105, %101
%112 = add nuw nsw i64 %60, 1
%113 = icmp eq i64 %112, 5
br i1 %113, label %124, label %59
114: ; preds = %68
%115 = trunc i64 %60 to i32
br label %124
116: ; preds = %78
%117 = trunc i64 %60 to i32
br label %124
118: ; preds = %88
%119 = trunc i64 %60 to i32
br label %124
120: ; preds = %98
%121 = trunc i64 %60 to i32
br label %124
122: ; preds = %108
%123 = trunc i64 %60 to i32
br label %124
124: ; preds = %111, %122, %120, %118, %116, %114
%125 = phi i32 [ %115, %114 ], [ %117, %116 ], [ %119, %118 ], [ %121, %120 ], [ %123, %122 ], [ 5, %111 ]
%126 = phi i32 [ 0, %114 ], [ 1, %116 ], [ 2, %118 ], [ 3, %120 ], [ 4, %122 ], [ 5, %111 ]
%127 = mul i32 %125, 5
%128 = add i32 %127, 1
%129 = add i32 %128, %126
%130 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %129)
%131 = call i32 @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* %4)
%132 = load i8, i8* %4
%133 = icmp eq i8 %132, 70
br i1 %133, label %134, label %34
134: ; preds = %124, %2
ret i32 0
}