#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 countScore(char **, int, char, char, char, int, int);
void computerMove(char color, char board[][26], int n, char *p, char *q) {
  int totalScore = 0;
  int bestScore = -1;
  char bestRow, bestCol;
  char substitude;
  for (char row = 'a'; row <= 'a' + n - 1; row++) {
    for (char col = 'a'; col <= 'a' + n - 1; col++) {
      totalScore = countScore(board, n, row, col, color, -1, -1) +
                   countScore(board, n, row, col, color, -1, 0) +
                   countScore(board, n, row, col, color, -1, 1) +
                   countScore(board, n, row, col, color, 0, 1) +
                   countScore(board, n, row, col, color, 1, 1) +
                   countScore(board, n, row, col, color, 1, 0) +
                   countScore(board, n, row, col, color, 1, -1) +
                   countScore(board, n, row, col, color, 0, -1);
      if (totalScore > bestScore) {
        bestRow = row;
        bestCol = col;
        bestScore = totalScore;
      } else if (totalScore == bestScore) {
        if (row < bestRow) {
          bestRow = row;
          bestCol = col;
          bestScore = totalScore;
        } else {
          if (row == bestRow) {
            if (col < bestCol) {
              bestRow = row;
              bestCol = col;
              bestScore = totalScore;
            }
          }
        }
      }
    }
  }
  *p = bestRow;
  *q = bestCol;
}


x86 assembly (clang, -O0):
<computerMove>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
mov    %dil,%al
mov    %al,-0x1(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8,-0x28(%rbp)
movl   $0x0,-0x2c(%rbp)
movl   $0xffffffff,-0x30(%rbp)
movb   $0x61,-0x34(%rbp)
movsbl -0x34(%rbp),%eax
mov    -0x14(%rbp),%ecx
add    $0x61,%ecx
sub    $0x1,%ecx
cmp    %ecx,%eax
jg     13c4 <computerMove+0x2b4>
movb   $0x61,-0x35(%rbp)
movsbl -0x35(%rbp),%eax
mov    -0x14(%rbp),%ecx
add    $0x61,%ecx
sub    $0x1,%ecx
cmp    %ecx,%eax
jg     13b2 <computerMove+0x2a2>
mov    -0x10(%rbp),%rdi
mov    -0x14(%rbp),%esi
mov    -0x34(%rbp),%cl
mov    -0x35(%rbp),%al
mov    $0xffffffff,%r9d
movsbl %cl,%edx
movsbl %al,%ecx
movsbl -0x1(%rbp),%r8d
movl   $0xffffffff,(%rsp)
call   1030 <countScore@plt>
mov    %eax,-0x54(%rbp)
mov    -0x10(%rbp),%rdi
mov    -0x14(%rbp),%esi
mov    -0x34(%rbp),%cl
mov    -0x35(%rbp),%al
mov    $0xffffffff,%r9d
xor    %edx,%edx
movsbl %cl,%edx
movsbl %al,%ecx
movsbl -0x1(%rbp),%r8d
movl   $0x0,(%rsp)
call   1030 <countScore@plt>
mov    %eax,%ecx
mov    -0x54(%rbp),%eax
add    %ecx,%eax
mov    %eax,-0x50(%rbp)
mov    -0x10(%rbp),%rdi
mov    -0x14(%rbp),%esi
mov    -0x34(%rbp),%cl
mov    -0x35(%rbp),%al
mov    $0xffffffff,%r9d
movsbl %cl,%edx
movsbl %al,%ecx
movsbl -0x1(%rbp),%r8d
movl   $0x1,(%rsp)
call   1030 <countScore@plt>
mov    %eax,%ecx
mov    -0x50(%rbp),%eax
add    %ecx,%eax
mov    %eax,-0x4c(%rbp)
mov    -0x10(%rbp),%rdi
mov    -0x14(%rbp),%esi
mov    -0x34(%rbp),%cl
mov    -0x35(%rbp),%al
xor    %r9d,%r9d
movsbl %cl,%edx
movsbl %al,%ecx
movsbl -0x1(%rbp),%r8d
movl   $0x1,(%rsp)
call   1030 <countScore@plt>
mov    %eax,%ecx
mov    -0x4c(%rbp),%eax
add    %ecx,%eax
mov    %eax,-0x48(%rbp)
mov    -0x10(%rbp),%rdi
mov    -0x14(%rbp),%esi
mov    -0x34(%rbp),%cl
mov    -0x35(%rbp),%al
mov    $0x1,%r9d
movsbl %cl,%edx
movsbl %al,%ecx
movsbl -0x1(%rbp),%r8d
movl   $0x1,(%rsp)
call   1030 <countScore@plt>
mov    %eax,%ecx
mov    -0x48(%rbp),%eax
add    %ecx,%eax
mov    %eax,-0x44(%rbp)
mov    -0x10(%rbp),%rdi
mov    -0x14(%rbp),%esi
mov    -0x34(%rbp),%cl
mov    -0x35(%rbp),%al
mov    $0x1,%r9d
xor    %edx,%edx
movsbl %cl,%edx
movsbl %al,%ecx
movsbl -0x1(%rbp),%r8d
movl   $0x0,(%rsp)
call   1030 <countScore@plt>
mov    %eax,%ecx
mov    -0x44(%rbp),%eax
add    %ecx,%eax
mov    %eax,-0x40(%rbp)
mov    -0x10(%rbp),%rdi
mov    -0x14(%rbp),%esi
mov    -0x34(%rbp),%cl
mov    -0x35(%rbp),%al
mov    $0x1,%r9d
movsbl %cl,%edx
movsbl %al,%ecx
movsbl -0x1(%rbp),%r8d
movl   $0xffffffff,(%rsp)
call   1030 <countScore@plt>
mov    %eax,%ecx
mov    -0x40(%rbp),%eax
add    %ecx,%eax
mov    %eax,-0x3c(%rbp)
mov    -0x10(%rbp),%rdi
mov    -0x14(%rbp),%esi
mov    -0x34(%rbp),%cl
mov    -0x35(%rbp),%al
xor    %r9d,%r9d
movsbl %cl,%edx
movsbl %al,%ecx
movsbl -0x1(%rbp),%r8d
movl   $0xffffffff,(%rsp)
call   1030 <countScore@plt>
mov    %eax,%ecx
mov    -0x3c(%rbp),%eax
add    %ecx,%eax
mov    %eax,-0x2c(%rbp)
mov    -0x2c(%rbp),%eax
cmp    -0x30(%rbp),%eax
jle    1327 <computerMove+0x217>
mov    -0x34(%rbp),%al
mov    %al,-0x31(%rbp)
mov    -0x35(%rbp),%al
mov    %al,-0x32(%rbp)
mov    -0x2c(%rbp),%eax
mov    %eax,-0x30(%rbp)
jmp    13a0 <computerMove+0x290>
mov    -0x2c(%rbp),%eax
cmp    -0x30(%rbp),%eax
jne    139b <computerMove+0x28b>
movsbl -0x34(%rbp),%eax
movsbl -0x31(%rbp),%ecx
cmp    %ecx,%eax
jge    135a <computerMove+0x24a>
mov    -0x34(%rbp),%al
mov    %al,-0x31(%rbp)
mov    -0x35(%rbp),%al
mov    %al,-0x32(%rbp)
mov    -0x2c(%rbp),%eax
mov    %eax,-0x30(%rbp)
jmp    1396 <computerMove+0x286>
movsbl -0x34(%rbp),%eax
movsbl -0x31(%rbp),%ecx
cmp    %ecx,%eax
jne    1391 <computerMove+0x281>
movsbl -0x35(%rbp),%eax
movsbl -0x32(%rbp),%ecx
cmp    %ecx,%eax
jge    138c <computerMove+0x27c>
mov    -0x34(%rbp),%al
mov    %al,-0x31(%rbp)
mov    -0x35(%rbp),%al
mov    %al,-0x32(%rbp)
mov    -0x2c(%rbp),%eax
mov    %eax,-0x30(%rbp)
jmp    1391 <computerMove+0x281>
jmp    1396 <computerMove+0x286>
jmp    139b <computerMove+0x28b>
jmp    13a0 <computerMove+0x290>
jmp    13a5 <computerMove+0x295>
mov    -0x35(%rbp),%al
add    $0x1,%al
mov    %al,-0x35(%rbp)
jmp    1158 <computerMove+0x48>
jmp    13b7 <computerMove+0x2a7>
mov    -0x34(%rbp),%al
add    $0x1,%al
mov    %al,-0x34(%rbp)
jmp    113f <computerMove+0x2f>
mov    -0x31(%rbp),%cl
mov    -0x20(%rbp),%rax
mov    %cl,(%rax)
mov    -0x32(%rbp),%cl
mov    -0x28(%rbp),%rax
mov    %cl,(%rax)
add    $0x60,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<computerMove>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x48,%rsp
mov    %r8,0x38(%rsp)
mov    %rcx,0x30(%rsp)
mov    %rsi,0x40(%rsp)
test   %edx,%edx
jle    1347 <computerMove+0x237>
mov    %rdx,%rbx
lea    0x60(%rdx),%eax
mov    %eax,0x14(%rsp)
mov    $0xffffffff,%eax
mov    $0x61,%cl
movsbl %dil,%edx
mov    %edx,0x20(%rsp)
mov    %rbx,0x18(%rsp)
mov    0x40(%rsp),%r15
mov    0x20(%rsp),%r14d
jmp    1170 <computerMove+0x60>
nop
add    $0x1,%cl
movsbl %cl,%esi
cmp    %esi,0x14(%rsp)
jl     1347 <computerMove+0x237>
mov    $0x61,%dl
mov    %cl,0x10(%rsp)
jmp    1191 <computerMove+0x81>
nopl   0x0(%rax,%rax,1)
mov    %esi,%eax
mov    %r8d,%ebp
add    $0x1,%dl
movsbl %dl,%esi
cmp    %esi,0x14(%rsp)
jl     1160 <computerMove+0x50>
mov    %dl,0x13(%rsp)
mov    %eax,0x2c(%rsp)
mov    %dil,0x12(%rsp)
mov    %bpl,0x11(%rsp)
movl   $0xffffffff,(%rsp)
movsbl %cl,%r13d
movsbl %dl,%ebp
mov    %r15,%rdi
mov    %ebx,%esi
mov    %r13d,%edx
mov    %ebp,%ecx
mov    %r14d,%r8d
mov    $0xffffffff,%r9d
call   1030 <countScore@plt>
mov    %eax,0x28(%rsp)
movl   $0x0,(%rsp)
mov    %r15,%rdi
mov    %ebx,%esi
mov    %r13d,%edx
mov    %ebp,%ecx
mov    %ebp,0x24(%rsp)
mov    %r14d,%r8d
mov    $0xffffffff,%r9d
call   1030 <countScore@plt>
mov    %eax,%r12d
add    0x28(%rsp),%r12d
movl   $0x1,(%rsp)
mov    %r15,%rdi
mov    %ebx,%esi
mov    %r13d,%edx
mov    %ebp,%ecx
mov    %r14d,%r8d
mov    $0xffffffff,%r9d
call   1030 <countScore@plt>
mov    %eax,%ebp
add    %r12d,%ebp
movl   $0x1,(%rsp)
mov    %r15,%rdi
mov    %ebx,%esi
mov    %r13d,%edx
mov    0x24(%rsp),%r12d
mov    %r12d,%ecx
mov    %r14d,%r8d
xor    %r9d,%r9d
call   1030 <countScore@plt>
mov    %eax,%ebx
add    %ebp,%ebx
movl   $0x1,(%rsp)
mov    %r15,%rdi
mov    0x18(%rsp),%rsi
mov    %r13d,%edx
mov    %r12d,%ecx
mov    %r14d,%r8d
mov    $0x1,%r9d
call   1030 <countScore@plt>
mov    %eax,%ebp
add    %ebx,%ebp
movl   $0x0,(%rsp)
mov    %r15,%rdi
mov    0x18(%rsp),%rsi
mov    %r13d,%edx
mov    %r12d,%ecx
mov    %r14d,%r8d
mov    $0x1,%r9d
call   1030 <countScore@plt>
mov    %eax,%ebx
add    %ebp,%ebx
movl   $0xffffffff,(%rsp)
mov    %r15,%rdi
mov    0x18(%rsp),%rsi
mov    %r13d,%edx
mov    %r12d,%ecx
mov    %r14d,%r8d
mov    $0x1,%r9d
call   1030 <countScore@plt>
mov    %eax,%ebp
add    %ebx,%ebp
mov    0x18(%rsp),%rsi
movl   $0xffffffff,(%rsp)
mov    %r15,%rdi
mov    %rsi,%rbx
mov    %r13d,%edx
mov    %r12d,%ecx
mov    %r14d,%r8d
xor    %r9d,%r9d
call   1030 <countScore@plt>
mov    0x2c(%rsp),%esi
movzbl 0x13(%rsp),%edx
movzbl 0x10(%rsp),%ecx
add    %ebp,%eax
mov    %ecx,%edi
mov    %edx,%ebp
cmp    %esi,%eax
jg     1185 <computerMove+0x75>
movzbl 0x12(%rsp),%edi
movzbl 0x11(%rsp),%r8d
jne    1180 <computerMove+0x70>
cmp    %dil,%cl
jge    1317 <computerMove+0x207>
mov    %esi,%eax
mov    %ecx,%edi
mov    %edx,%ebp
jmp    1185 <computerMove+0x75>
mov    %edi,%eax
mov    %r8d,%r10d
sete   %r8b
cmp    %r10b,%dl
setl   %r9b
movzbl %cl,%ebp
movzbl %dil,%edi
test   %r9b,%r8b
cmovne %ebp,%edi
movzbl %dl,%r8d
movzbl %r10b,%ebp
cmovne %r8d,%ebp
mov    %esi,%eax
jmp    1185 <computerMove+0x75>
mov    0x30(%rsp),%rax
mov    %dil,(%rax)
mov    0x38(%rsp),%rax
mov    %bpl,(%rax)
add    $0x48,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

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

LLVM IR (-O2):
define void @computerMove(i8 signext %0, [26 x i8]* %1, i32 %2, i8* nocapture writeonly %3, i8* nocapture writeonly %4) {
%6 = add nsw i32 %2, 96
%7 = icmp slt i32 %2, 1
br i1 %7, label %15, label %8
8: ; preds = %5
%9 = bitcast [26 x i8]* %1 to i8**
br label %10
10: ; preds = %18, %8
%11 = phi i8 [ 97, %8 ], [ %19, %18 ]
%12 = phi i8 [ undef, %8 ], [ %56, %18 ]
%13 = phi i8 [ undef, %8 ], [ %55, %18 ]
%14 = phi i32 [ -1, %8 ], [ %54, %18 ]
br label %22
15: ; preds = %18, %5
%16 = phi i8 [ undef, %5 ], [ %55, %18 ]
%17 = phi i8 [ undef, %5 ], [ %56, %18 ]
store i8 %16, i8* %3
store i8 %17, i8* %4
ret void
18: ; preds = %53
%19 = add i8 %11, 1
%20 = sext i8 %19 to i32
%21 = icmp slt i32 %6, %20
br i1 %21, label %15, label %10
22: ; preds = %10, %53
%23 = phi i8 [ %57, %53 ], [ 97, %10 ]
%24 = phi i8 [ %56, %53 ], [ %12, %10 ]
%25 = phi i8 [ %55, %53 ], [ %13, %10 ]
%26 = phi i32 [ %54, %53 ], [ %14, %10 ]
%27 = tail call i32 @countScore(i8** %9, i32 %2, i8 signext %11, i8 signext %23, i8 signext %0, i32 -1, i32 -1)
%28 = tail call i32 @countScore(i8** %9, i32 %2, i8 signext %11, i8 signext %23, i8 signext %0, i32 -1, i32 0)
%29 = add nsw i32 %28, %27
%30 = tail call i32 @countScore(i8** %9, i32 %2, i8 signext %11, i8 signext %23, i8 signext %0, i32 -1, i32 1)
%31 = add nsw i32 %29, %30
%32 = tail call i32 @countScore(i8** %9, i32 %2, i8 signext %11, i8 signext %23, i8 signext %0, i32 0, i32 1)
%33 = add nsw i32 %31, %32
%34 = tail call i32 @countScore(i8** %9, i32 %2, i8 signext %11, i8 signext %23, i8 signext %0, i32 1, i32 1)
%35 = add nsw i32 %33, %34
%36 = tail call i32 @countScore(i8** %9, i32 %2, i8 signext %11, i8 signext %23, i8 signext %0, i32 1, i32 0)
%37 = add nsw i32 %35, %36
%38 = tail call i32 @countScore(i8** %9, i32 %2, i8 signext %11, i8 signext %23, i8 signext %0, i32 1, i32 -1)
%39 = add nsw i32 %37, %38
%40 = tail call i32 @countScore(i8** %9, i32 %2, i8 signext %11, i8 signext %23, i8 signext %0, i32 0, i32 -1)
%41 = add nsw i32 %39, %40
%42 = icmp sgt i32 %41, %26
br i1 %42, label %53, label %43
43: ; preds = %22
%44 = icmp eq i32 %41, %26
br i1 %44, label %45, label %53
45: ; preds = %43
%46 = icmp slt i8 %11, %25
br i1 %46, label %53, label %47
47: ; preds = %45
%48 = icmp eq i8 %11, %25
%49 = icmp slt i8 %23, %24
%50 = select i1 %48, i1 %49, i1 false
%51 = select i1 %50, i8 %11, i8 %25
%52 = select i1 %50, i8 %23, i8 %24
br label %53
53: ; preds = %47, %45, %22, %43
%54 = phi i32 [ %26, %43 ], [ %41, %22 ], [ %26, %45 ], [ %26, %47 ]
%55 = phi i8 [ %25, %43 ], [ %11, %22 ], [ %11, %45 ], [ %51, %47 ]
%56 = phi i8 [ %24, %43 ], [ %23, %22 ], [ %23, %45 ], [ %52, %47 ]
%57 = add i8 %23, 1
%58 = sext i8 %57 to i32
%59 = icmp slt i32 %6, %58
br i1 %59, label %18, label %22
}