#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*/ getchar();
int /*<<< orphan*/ printf(char *);
int /*<<< orphan*/ scanf(char *, ...);
int main() {
  char a[3][3];
  int n, i, j, k;
  scanf("%d", &n);
  getchar();
  for (i = 0; i < n; i++) {
    if (i > 0)
      getchar();
    for (j = 0; j < 3; j++) {
      for (k = 0; k < 3; k++)
        scanf("%c", &a[j][k]);
      getchar();
    }
    if (a[0][0] == 'X' && a[0][1] == 'X' && a[0][2] == 'X')
      printf("yes\n");
    else if (a[1][0] == 'X' && a[1][1] == 'X' && a[1][2] == 'X')
      printf("yes\n");
    else if (a[2][0] == 'X' && a[2][1] == 'X' && a[2][2] == 'X')
      printf("yes\n");
    else if (a[0][0] == 'X' && a[1][0] == 'X' && a[2][0] == 'X')
      printf("yes\n");
    else if (a[0][1] == 'X' && a[1][1] == 'X' && a[2][1] == 'X')
      printf("yes\n");
    else if (a[0][2] == 'X' && a[1][2] == 'X' && a[2][2] == 'X')
      printf("yes\n");
    else if (a[0][0] == 'X' && a[1][1] == 'X' && a[2][2] == 'X')
      printf("yes\n");
    else if (a[0][2] == 'X' && a[1][1] == 'X' && a[2][0] == 'X')
      printf("yes\n");
    else
      printf("no\n");
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeba(%rip),%rdi
lea    -0x14(%rbp),%rsi
mov    $0x0,%al
call   1050 <scanf@plt>
mov    $0x0,%al
call   1040 <getchar@plt>
movl   $0x0,-0x18(%rbp)
mov    -0x18(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    13e7 <main+0x2b7>
cmpl   $0x0,-0x18(%rbp)
jle    117c <main+0x4c>
mov    $0x0,%al
call   1040 <getchar@plt>
movl   $0x0,-0x1c(%rbp)
cmpl   $0x3,-0x1c(%rbp)
jge    11e5 <main+0xb5>
movl   $0x0,-0x20(%rbp)
cmpl   $0x3,-0x20(%rbp)
jge    11d0 <main+0xa0>
movslq -0x1c(%rbp),%rax
lea    -0xd(%rbp),%rsi
imul   $0x3,%rax,%rax
add    %rax,%rsi
movslq -0x20(%rbp),%rax
add    %rax,%rsi
lea    0xe48(%rip),%rdi
mov    $0x0,%al
call   1050 <scanf@plt>
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
jmp    1194 <main+0x64>
mov    $0x0,%al
call   1040 <getchar@plt>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    1183 <main+0x53>
movsbl -0xd(%rbp),%eax
cmp    $0x58,%eax
jne    121d <main+0xed>
movsbl -0xc(%rbp),%eax
cmp    $0x58,%eax
jne    121d <main+0xed>
movsbl -0xb(%rbp),%eax
cmp    $0x58,%eax
jne    121d <main+0xed>
lea    0xdf3(%rip),%rdi
call   1030 <printf@plt>
jmp    13d4 <main+0x2a4>
movsbl -0xa(%rbp),%eax
cmp    $0x58,%eax
jne    1255 <main+0x125>
movsbl -0x9(%rbp),%eax
cmp    $0x58,%eax
jne    1255 <main+0x125>
movsbl -0x8(%rbp),%eax
cmp    $0x58,%eax
jne    1255 <main+0x125>
lea    0xdbb(%rip),%rdi
call   1030 <printf@plt>
jmp    13cf <main+0x29f>
movsbl -0x7(%rbp),%eax
cmp    $0x58,%eax
jne    128d <main+0x15d>
movsbl -0x6(%rbp),%eax
cmp    $0x58,%eax
jne    128d <main+0x15d>
movsbl -0x5(%rbp),%eax
cmp    $0x58,%eax
jne    128d <main+0x15d>
lea    0xd83(%rip),%rdi
call   1030 <printf@plt>
jmp    13ca <main+0x29a>
movsbl -0xd(%rbp),%eax
cmp    $0x58,%eax
jne    12c5 <main+0x195>
movsbl -0xa(%rbp),%eax
cmp    $0x58,%eax
jne    12c5 <main+0x195>
movsbl -0x7(%rbp),%eax
cmp    $0x58,%eax
jne    12c5 <main+0x195>
lea    0xd4b(%rip),%rdi
call   1030 <printf@plt>
jmp    13c5 <main+0x295>
movsbl -0xc(%rbp),%eax
cmp    $0x58,%eax
jne    12fd <main+0x1cd>
movsbl -0x9(%rbp),%eax
cmp    $0x58,%eax
jne    12fd <main+0x1cd>
movsbl -0x6(%rbp),%eax
cmp    $0x58,%eax
jne    12fd <main+0x1cd>
lea    0xd13(%rip),%rdi
call   1030 <printf@plt>
jmp    13c0 <main+0x290>
movsbl -0xb(%rbp),%eax
cmp    $0x58,%eax
jne    1335 <main+0x205>
movsbl -0x8(%rbp),%eax
cmp    $0x58,%eax
jne    1335 <main+0x205>
movsbl -0x5(%rbp),%eax
cmp    $0x58,%eax
jne    1335 <main+0x205>
lea    0xcdb(%rip),%rdi
call   1030 <printf@plt>
jmp    13bb <main+0x28b>
movsbl -0xd(%rbp),%eax
cmp    $0x58,%eax
jne    136d <main+0x23d>
movsbl -0x9(%rbp),%eax
cmp    $0x58,%eax
jne    136d <main+0x23d>
movsbl -0x5(%rbp),%eax
cmp    $0x58,%eax
jne    136d <main+0x23d>
lea    0xca3(%rip),%rdi
call   1030 <printf@plt>
jmp    13b6 <main+0x286>
movsbl -0xb(%rbp),%eax
cmp    $0x58,%eax
jne    13a5 <main+0x275>
movsbl -0x9(%rbp),%eax
cmp    $0x58,%eax
jne    13a5 <main+0x275>
movsbl -0x7(%rbp),%eax
cmp    $0x58,%eax
jne    13a5 <main+0x275>
lea    0xc6b(%rip),%rdi
call   1030 <printf@plt>
jmp    13b1 <main+0x281>
lea    0xc5f(%rip),%rdi
call   1030 <printf@plt>
jmp    13b6 <main+0x286>
jmp    13bb <main+0x28b>
jmp    13c0 <main+0x290>
jmp    13c5 <main+0x295>
jmp    13ca <main+0x29a>
jmp    13cf <main+0x29f>
jmp    13d4 <main+0x2a4>
jmp    13d9 <main+0x2a9>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    115f <main+0x2f>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x18,%rsp
lea    0xebb(%rip),%rdi
lea    0x14(%rsp),%rsi
xor    %eax,%eax
call   1050 <scanf@plt>
xor    %eax,%eax
call   1040 <getchar@plt>
cmpl   $0x0,0x14(%rsp)
jle    14c6 <main+0x396>
lea    0xc(%rsp),%rbp
lea    0xd(%rsp),%r14
lea    0xe(%rsp),%r15
lea    0xf(%rsp),%r13
lea    0x10(%rsp),%r12
lea    0xe80(%rip),%rbx
lea    0xb(%rsp),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <scanf@plt>
mov    %rbx,%rdi
mov    %rbp,%rsi
xor    %eax,%eax
call   1050 <scanf@plt>
mov    %rbx,%rdi
mov    %r14,%rsi
xor    %eax,%eax
call   1050 <scanf@plt>
xor    %eax,%eax
call   1040 <getchar@plt>
mov    %rbx,%rdi
mov    %r15,%rsi
xor    %eax,%eax
call   1050 <scanf@plt>
mov    %rbx,%rdi
mov    %r13,%rsi
xor    %eax,%eax
call   1050 <scanf@plt>
mov    %rbx,%rdi
mov    %r12,%rsi
xor    %eax,%eax
call   1050 <scanf@plt>
xor    %eax,%eax
call   1040 <getchar@plt>
mov    %rbx,%rdi
lea    0x11(%rsp),%rsi
xor    %eax,%eax
call   1050 <scanf@plt>
mov    %rbx,%rdi
lea    0x12(%rsp),%rsi
xor    %eax,%eax
call   1050 <scanf@plt>
mov    %rbx,%rdi
lea    0x13(%rsp),%rsi
mov    %rsi,%r15
xor    %eax,%eax
call   1050 <scanf@plt>
xor    %eax,%eax
call   1040 <getchar@plt>
mov    0xb(%rsp),%dl
mov    0xc(%rsp),%bl
mov    0xd(%rsp),%al
lea    0xdde(%rip),%rdi
cmp    $0x58,%dl
jne    123d <main+0x10d>
cmp    $0x58,%bl
jne    123d <main+0x10d>
cmp    $0x58,%al
je     12e5 <main+0x1b5>
mov    0xe(%rsp),%cl
mov    0xf(%rsp),%r9b
mov    0x10(%rsp),%r10b
cmp    $0x58,%cl
jne    1260 <main+0x130>
cmp    $0x58,%r9b
jne    1260 <main+0x130>
cmp    $0x58,%r10b
je     12e5 <main+0x1b5>
mov    0x11(%rsp),%sil
mov    0x12(%rsp),%r11b
mov    0x13(%rsp),%r8b
cmp    $0x58,%sil
jne    1281 <main+0x151>
cmp    $0x58,%r11b
jne    1281 <main+0x151>
cmp    $0x58,%r8b
je     12e5 <main+0x1b5>
cmp    $0x58,%dl
jne    1291 <main+0x161>
cmp    $0x58,%cl
jne    1291 <main+0x161>
cmp    $0x58,%sil
je     12e5 <main+0x1b5>
cmp    $0x58,%bl
jne    12a2 <main+0x172>
cmp    $0x58,%r9b
jne    12a2 <main+0x172>
cmp    $0x58,%r11b
je     12e5 <main+0x1b5>
cmp    $0x58,%al
jne    12b2 <main+0x182>
cmp    $0x58,%r10b
jne    12b2 <main+0x182>
cmp    $0x58,%r8b
je     12e5 <main+0x1b5>
cmp    $0x58,%dl
jne    12c3 <main+0x193>
cmp    $0x58,%r9b
jne    12c3 <main+0x193>
cmp    $0x58,%r8b
je     12e5 <main+0x1b5>
xor    $0x58,%sil
xor    $0x58,%r9b
xor    $0x58,%al
or     %r9b,%al
lea    0xd32(%rip),%rcx
lea    0xd28(%rip),%rdi
or     %sil,%al
cmove  %rcx,%rdi
call   1030 <puts@plt>
cmpl   $0x2,0x14(%rsp)
jl     14c6 <main+0x396>
mov    $0x1,%ebx
lea    0xd02(%rip),%r12
lea    0xb(%rsp),%r13
lea    0xcfc(%rip),%rbp
jmp    1342 <main+0x212>
xor    $0x58,%sil
xor    $0x58,%r9b
xor    $0x58,%al
or     %r9b,%al
or     %sil,%al
lea    0xce0(%rip),%rdi
cmove  %rbp,%rdi
nopw   0x0(%rax,%rax,1)
call   1030 <puts@plt>
add    $0x1,%ebx
cmp    0x14(%rsp),%ebx
jge    14c6 <main+0x396>
xor    %eax,%eax
call   1040 <getchar@plt>
mov    %r12,%rdi
mov    %r13,%rsi
xor    %eax,%eax
call   1050 <scanf@plt>
mov    %r12,%rdi
lea    0xc(%rsp),%rsi
xor    %eax,%eax
call   1050 <scanf@plt>
mov    %r12,%rdi
lea    0xd(%rsp),%rsi
xor    %eax,%eax
call   1050 <scanf@plt>
xor    %eax,%eax
call   1040 <getchar@plt>
mov    %r12,%rdi
lea    0xe(%rsp),%rsi
xor    %eax,%eax
call   1050 <scanf@plt>
mov    %r12,%rdi
lea    0xf(%rsp),%rsi
xor    %eax,%eax
call   1050 <scanf@plt>
mov    %r12,%rdi
lea    0x10(%rsp),%rsi
xor    %eax,%eax
call   1050 <scanf@plt>
xor    %eax,%eax
call   1040 <getchar@plt>
mov    %r12,%rdi
lea    0x11(%rsp),%rsi
xor    %eax,%eax
call   1050 <scanf@plt>
mov    %r12,%rdi
lea    0x12(%rsp),%rsi
xor    %eax,%eax
call   1050 <scanf@plt>
mov    %r12,%rdi
mov    %r15,%rsi
xor    %eax,%eax
call   1050 <scanf@plt>
xor    %eax,%eax
call   1040 <getchar@plt>
movzbl 0xb(%rsp),%edx
movzbl 0xc(%rsp),%ecx
movzbl 0xd(%rsp),%eax
cmp    $0x58,%dl
jne    1405 <main+0x2d5>
cmp    $0x58,%cl
jne    1405 <main+0x2d5>
mov    %rbp,%rdi
cmp    $0x58,%al
je     1330 <main+0x200>
movzbl 0xe(%rsp),%r14d
movzbl 0xf(%rsp),%r9d
movzbl 0x10(%rsp),%r10d
cmp    $0x58,%r14b
jne    1430 <main+0x300>
cmp    $0x58,%r9b
jne    1430 <main+0x300>
mov    %rbp,%rdi
cmp    $0x58,%r10b
je     1330 <main+0x200>
movzbl 0x11(%rsp),%esi
movzbl 0x12(%rsp),%r11d
movzbl 0x13(%rsp),%r8d
cmp    $0x58,%sil
jne    145a <main+0x32a>
cmp    $0x58,%r11b
jne    145a <main+0x32a>
mov    %rbp,%rdi
cmp    $0x58,%r8b
je     1330 <main+0x200>
cmp    $0x58,%dl
jne    1472 <main+0x342>
cmp    $0x58,%r14b
jne    1472 <main+0x342>
mov    %rbp,%rdi
cmp    $0x58,%sil
je     1330 <main+0x200>
cmp    $0x58,%cl
jne    148a <main+0x35a>
cmp    $0x58,%r9b
jne    148a <main+0x35a>
mov    %rbp,%rdi
cmp    $0x58,%r11b
je     1330 <main+0x200>
cmp    $0x58,%al
jne    14a1 <main+0x371>
cmp    $0x58,%r10b
jne    14a1 <main+0x371>
mov    %rbp,%rdi
cmp    $0x58,%r8b
je     1330 <main+0x200>
cmp    $0x58,%dl
jne    130f <main+0x1df>
cmp    $0x58,%r9b
jne    130f <main+0x1df>
mov    %rbp,%rdi
cmp    $0x58,%r8b
je     1330 <main+0x200>
jmp    130f <main+0x1df>
xor    %eax,%eax
add    $0x18,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [3 x i8] c"%d\00"
@.str.1 = [3 x i8] c"%c\00"
@.str.2 = [5 x i8] c"yes\0A\00"
@.str.3 = [4 x i8] c"no\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [3 x [3 x i8]]
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
store i32 0, i32* %1
%7 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %3)
%8 = call i32 (...) @getchar()
store i32 0, i32* %4
br label %9
9: ; preds = %212, %0
%10 = load i32, i32* %4
%11 = load i32, i32* %3
%12 = icmp slt i32 %10, %11
br i1 %12, label %13, label %215
13: ; preds = %9
%14 = load i32, i32* %4
%15 = icmp sgt i32 %14, 0
br i1 %15, label %16, label %18
16: ; preds = %13
%17 = call i32 (...) @getchar()
br label %18
18: ; preds = %16, %13
store i32 0, i32* %5
br label %19
19: ; preds = %39, %18
%20 = load i32, i32* %5
%21 = icmp slt i32 %20, 3
br i1 %21, label %22, label %42
22: ; preds = %19
store i32 0, i32* %6
br label %23
23: ; preds = %34, %22
%24 = load i32, i32* %6
%25 = icmp slt i32 %24, 3
br i1 %25, label %26, label %37
26: ; preds = %23
%27 = load i32, i32* %5
%28 = sext i32 %27 to i64
%29 = getelementptr inbounds [3 x [3 x i8]], [3 x [3 x i8]]* %2, i64 0, i64 %28
%30 = load i32, i32* %6
%31 = sext i32 %30 to i64
%32 = getelementptr inbounds [3 x i8], [3 x i8]* %29, i64 0, i64 %31
%33 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %32)
br label %34
34: ; preds = %26
%35 = load i32, i32* %6
%36 = add nsw i32 %35, 1
store i32 %36, i32* %6
br label %23
37: ; preds = %23
%38 = call i32 (...) @getchar()
br label %39
39: ; preds = %37
%40 = load i32, i32* %5
%41 = add nsw i32 %40, 1
store i32 %41, i32* %5
br label %19
42: ; preds = %19
%43 = getelementptr inbounds [3 x [3 x i8]], [3 x [3 x i8]]* %2, i64 0, i64 0
%44 = getelementptr inbounds [3 x i8], [3 x i8]* %43, i64 0, i64 0
%45 = load i8, i8* %44
%46 = sext i8 %45 to i32
%47 = icmp eq i32 %46, 88
br i1 %47, label %48, label %62
48: ; preds = %42
%49 = getelementptr inbounds [3 x [3 x i8]], [3 x [3 x i8]]* %2, i64 0, i64 0
%50 = getelementptr inbounds [3 x i8], [3 x i8]* %49, i64 0, i64 1
%51 = load i8, i8* %50
%52 = sext i8 %51 to i32
%53 = icmp eq i32 %52, 88
br i1 %53, label %54, label %62
54: ; preds = %48
%55 = getelementptr inbounds [3 x [3 x i8]], [3 x [3 x i8]]* %2, i64 0, i64 0
%56 = getelementptr inbounds [3 x i8], [3 x i8]* %55, i64 0, i64 2
%57 = load i8, i8* %56
%58 = sext i8 %57 to i32
%59 = icmp eq i32 %58, 88
br i1 %59, label %60, label %62
60: ; preds = %54
%61 = call i32 @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0))
br label %211
62: ; preds = %54, %48, %42
%63 = getelementptr inbounds [3 x [3 x i8]], [3 x [3 x i8]]* %2, i64 0, i64 1
%64 = getelementptr inbounds [3 x i8], [3 x i8]* %63, i64 0, i64 0
%65 = load i8, i8* %64
%66 = sext i8 %65 to i32
%67 = icmp eq i32 %66, 88
br i1 %67, label %68, label %82
68: ; preds = %62
%69 = getelementptr inbounds [3 x [3 x i8]], [3 x [3 x i8]]* %2, i64 0, i64 1
%70 = getelementptr inbounds [3 x i8], [3 x i8]* %69, i64 0, i64 1
%71 = load i8, i8* %70
%72 = sext i8 %71 to i32
%73 = icmp eq i32 %72, 88
br i1 %73, label %74, label %82
74: ; preds = %68
%75 = getelementptr inbounds [3 x [3 x i8]], [3 x [3 x i8]]* %2, i64 0, i64 1
%76 = getelementptr inbounds [3 x i8], [3 x i8]* %75, i64 0, i64 2
%77 = load i8, i8* %76
%78 = sext i8 %77 to i32
%79 = icmp eq i32 %78, 88
br i1 %79, label %80, label %82
80: ; preds = %74
%81 = call i32 @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0))
br label %210
82: ; preds = %74, %68, %62
%83 = getelementptr inbounds [3 x [3 x i8]], [3 x [3 x i8]]* %2, i64 0, i64 2
%84 = getelementptr inbounds [3 x i8], [3 x i8]* %83, i64 0, i64 0
%85 = load i8, i8* %84
%86 = sext i8 %85 to i32
%87 = icmp eq i32 %86, 88
br i1 %87, label %88, label %102
88: ; preds = %82
%89 = getelementptr inbounds [3 x [3 x i8]], [3 x [3 x i8]]* %2, i64 0, i64 2
%90 = getelementptr inbounds [3 x i8], [3 x i8]* %89, i64 0, i64 1
%91 = load i8, i8* %90
%92 = sext i8 %91 to i32
%93 = icmp eq i32 %92, 88
br i1 %93, label %94, label %102
94: ; preds = %88
%95 = getelementptr inbounds [3 x [3 x i8]], [3 x [3 x i8]]* %2, i64 0, i64 2
%96 = getelementptr inbounds [3 x i8], [3 x i8]* %95, i64 0, i64 2
%97 = load i8, i8* %96
%98 = sext i8 %97 to i32
%99 = icmp eq i32 %98, 88
br i1 %99, label %100, label %102
100: ; preds = %94
%101 = call i32 @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0))
br label %209
102: ; preds = %94, %88, %82
%103 = getelementptr inbounds [3 x [3 x i8]], [3 x [3 x i8]]* %2, i64 0, i64 0
%104 = getelementptr inbounds [3 x i8], [3 x i8]* %103, i64 0, i64 0
%105 = load i8, i8* %104
%106 = sext i8 %105 to i32
%107 = icmp eq i32 %106, 88
br i1 %107, label %108, label %122
108: ; preds = %102
%109 = getelementptr inbounds [3 x [3 x i8]], [3 x [3 x i8]]* %2, i64 0, i64 1
%110 = getelementptr inbounds [3 x i8], [3 x i8]* %109, i64 0, i64 0
%111 = load i8, i8* %110
%112 = sext i8 %111 to i32
%113 = icmp eq i32 %112, 88
br i1 %113, label %114, label %122
114: ; preds = %108
%115 = getelementptr inbounds [3 x [3 x i8]], [3 x [3 x i8]]* %2, i64 0, i64 2
%116 = getelementptr inbounds [3 x i8], [3 x i8]* %115, i64 0, i64 0
%117 = load i8, i8* %116
%118 = sext i8 %117 to i32
%119 = icmp eq i32 %118, 88
br i1 %119, label %120, label %122
120: ; preds = %114
%121 = call i32 @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0))
br label %208
122: ; preds = %114, %108, %102
%123 = getelementptr inbounds [3 x [3 x i8]], [3 x [3 x i8]]* %2, i64 0, i64 0
%124 = getelementptr inbounds [3 x i8], [3 x i8]* %123, i64 0, i64 1
%125 = load i8, i8* %124
%126 = sext i8 %125 to i32
%127 = icmp eq i32 %126, 88
br i1 %127, label %128, label %142
128: ; preds = %122
%129 = getelementptr inbounds [3 x [3 x i8]], [3 x [3 x i8]]* %2, i64 0, i64 1
%130 = getelementptr inbounds [3 x i8], [3 x i8]* %129, i64 0, i64 1
%131 = load i8, i8* %130
%132 = sext i8 %131 to i32
%133 = icmp eq i32 %132, 88
br i1 %133, label %134, label %142
134: ; preds = %128
%135 = getelementptr inbounds [3 x [3 x i8]], [3 x [3 x i8]]* %2, i64 0, i64 2
%136 = getelementptr inbounds [3 x i8], [3 x i8]* %135, i64 0, i64 1
%137 = load i8, i8* %136
%138 = sext i8 %137 to i32
%139 = icmp eq i32 %138, 88
br i1 %139, label %140, label %142
140: ; preds = %134
%141 = call i32 @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0))
br label %207
142: ; preds = %134, %128, %122
%143 = getelementptr inbounds [3 x [3 x i8]], [3 x [3 x i8]]* %2, i64 0, i64 0
%144 = getelementptr inbounds [3 x i8], [3 x i8]* %143, i64 0, i64 2
%145 = load i8, i8* %144
%146 = sext i8 %145 to i32
%147 = icmp eq i32 %146, 88
br i1 %147, label %148, label %162
148: ; preds = %142
%149 = getelementptr inbounds [3 x [3 x i8]], [3 x [3 x i8]]* %2, i64 0, i64 1
%150 = getelementptr inbounds [3 x i8], [3 x i8]* %149, i64 0, i64 2
%151 = load i8, i8* %150
%152 = sext i8 %151 to i32
%153 = icmp eq i32 %152, 88
br i1 %153, label %154, label %162
154: ; preds = %148
%155 = getelementptr inbounds [3 x [3 x i8]], [3 x [3 x i8]]* %2, i64 0, i64 2
%156 = getelementptr inbounds [3 x i8], [3 x i8]* %155, i64 0, i64 2
%157 = load i8, i8* %156
%158 = sext i8 %157 to i32
%159 = icmp eq i32 %158, 88
br i1 %159, label %160, label %162
160: ; preds = %154
%161 = call i32 @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0))
br label %206
162: ; preds = %154, %148, %142
%163 = getelementptr inbounds [3 x [3 x i8]], [3 x [3 x i8]]* %2, i64 0, i64 0
%164 = getelementptr inbounds [3 x i8], [3 x i8]* %163, i64 0, i64 0
%165 = load i8, i8* %164
%166 = sext i8 %165 to i32
%167 = icmp eq i32 %166, 88
br i1 %167, label %168, label %182
168: ; preds = %162
%169 = getelementptr inbounds [3 x [3 x i8]], [3 x [3 x i8]]* %2, i64 0, i64 1
%170 = getelementptr inbounds [3 x i8], [3 x i8]* %169, i64 0, i64 1
%171 = load i8, i8* %170
%172 = sext i8 %171 to i32
%173 = icmp eq i32 %172, 88
br i1 %173, label %174, label %182
174: ; preds = %168
%175 = getelementptr inbounds [3 x [3 x i8]], [3 x [3 x i8]]* %2, i64 0, i64 2
%176 = getelementptr inbounds [3 x i8], [3 x i8]* %175, i64 0, i64 2
%177 = load i8, i8* %176
%178 = sext i8 %177 to i32
%179 = icmp eq i32 %178, 88
br i1 %179, label %180, label %182
180: ; preds = %174
%181 = call i32 @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0))
br label %205
182: ; preds = %174, %168, %162
%183 = getelementptr inbounds [3 x [3 x i8]], [3 x [3 x i8]]* %2, i64 0, i64 0
%184 = getelementptr inbounds [3 x i8], [3 x i8]* %183, i64 0, i64 2
%185 = load i8, i8* %184
%186 = sext i8 %185 to i32
%187 = icmp eq i32 %186, 88
br i1 %187, label %188, label %202
188: ; preds = %182
%189 = getelementptr inbounds [3 x [3 x i8]], [3 x [3 x i8]]* %2, i64 0, i64 1
%190 = getelementptr inbounds [3 x i8], [3 x i8]* %189, i64 0, i64 1
%191 = load i8, i8* %190
%192 = sext i8 %191 to i32
%193 = icmp eq i32 %192, 88
br i1 %193, label %194, label %202
194: ; preds = %188
%195 = getelementptr inbounds [3 x [3 x i8]], [3 x [3 x i8]]* %2, i64 0, i64 2
%196 = getelementptr inbounds [3 x i8], [3 x i8]* %195, i64 0, i64 0
%197 = load i8, i8* %196
%198 = sext i8 %197 to i32
%199 = icmp eq i32 %198, 88
br i1 %199, label %200, label %202
200: ; preds = %194
%201 = call i32 @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0))
br label %204
202: ; preds = %194, %188, %182
%203 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0))
br label %204
204: ; preds = %202, %200
br label %205
205: ; preds = %204, %180
br label %206
206: ; preds = %205, %160
br label %207
207: ; preds = %206, %140
br label %208
208: ; preds = %207, %120
br label %209
209: ; preds = %208, %100
br label %210
210: ; preds = %209, %80
br label %211
211: ; preds = %210, %60
br label %212
212: ; preds = %211
%213 = load i32, i32* %4
%214 = add nsw i32 %213, 1
store i32 %214, i32* %4
br label %9
215: ; preds = %9
ret i32 0
}

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