#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*/ fflush(int /*<<< orphan*/);
int /*<<< orphan*/ printf(char *);
int /*<<< orphan*/ scanf(char *, ...);
int /*<<< orphan*/ stdin;
int verificaColuna(int, int, char **);
int verificaDiagonal1(int, int, char **);
int verificaDiagonal2(int, int, char **);
int verificaLinha(int, int, char **);
void main() {
  char m[8][8];
  int i, j, x, z, flag;
  int opc;
  scanf("%i\n", &opc);
  fflush(stdin);
  for (z = 0; z < opc; z++) {
    flag = 0;
    for (i = 0; i < 8; i++) {
      for (j = 0; j < 8; j++) {
        if (j < 7)
          scanf("%c", &m[i][j]);
        else
          scanf("%c\n", &m[i][j]);
      }
    }
    for (i = 0; i < 8; i++) {
      for (j = 0; j < 8; j++) {
        if (m[i][j] == '*') {
          x = verificaLinha(i, j, m);
          if (x == 1) {
            printf("invalid\n");
            flag = 1;
            break;
          }
          x = verificaColuna(i, j, m);
          if (x == 1) {
            printf("invalid\n");
            flag = 1;
            break;
          }
          x = verificaDiagonal1(i, j, m);
          if (x == 1) {
            printf("invalid\n");
            flag = 1;
            break;
          }
          x = verificaDiagonal2(i, j, m);
          if (x == 1) {
            printf("invalid\n");
            flag = 1;
            break;
          }
        }
      }
      if (flag == 1)
        break;
    }
    if (flag == 0)
      printf("valid\n");
  }
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
lea    0xe81(%rip),%rdi
lea    -0x58(%rbp),%rsi
mov    $0x0,%al
call   1070 <scanf@plt>
mov    0x2e57(%rip),%rax
mov    (%rax),%edi
call   1060 <fflush@plt>
movl   $0x0,-0x50(%rbp)
mov    -0x50(%rbp),%eax
cmp    -0x58(%rbp),%eax
jge    13c6 <main+0x256>
movl   $0x0,-0x54(%rbp)
movl   $0x0,-0x44(%rbp)
cmpl   $0x8,-0x44(%rbp)
jge    1251 <main+0xe1>
movl   $0x0,-0x48(%rbp)
cmpl   $0x8,-0x48(%rbp)
jge    123e <main+0xce>
cmpl   $0x7,-0x48(%rbp)
jge    1207 <main+0x97>
movslq -0x44(%rbp),%rax
lea    -0x40(%rbp),%rsi
shl    $0x3,%rax
add    %rax,%rsi
movslq -0x48(%rbp),%rax
add    %rax,%rsi
lea    0xe09(%rip),%rdi
mov    $0x0,%al
call   1070 <scanf@plt>
jmp    122b <main+0xbb>
movslq -0x44(%rbp),%rax
lea    -0x40(%rbp),%rsi
shl    $0x3,%rax
add    %rax,%rsi
movslq -0x48(%rbp),%rax
add    %rax,%rsi
lea    0xde3(%rip),%rdi
mov    $0x0,%al
call   1070 <scanf@plt>
jmp    1230 <main+0xc0>
mov    -0x48(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x48(%rbp)
jmp    11ca <main+0x5a>
jmp    1243 <main+0xd3>
mov    -0x44(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x44(%rbp)
jmp    11b9 <main+0x49>
movl   $0x0,-0x44(%rbp)
cmpl   $0x8,-0x44(%rbp)
jge    139d <main+0x22d>
movl   $0x0,-0x48(%rbp)
cmpl   $0x8,-0x48(%rbp)
jge    137b <main+0x20b>
movslq -0x44(%rbp),%rcx
lea    -0x40(%rbp),%rax
shl    $0x3,%rcx
add    %rcx,%rax
movslq -0x48(%rbp),%rcx
movsbl (%rax,%rcx,1),%eax
cmp    $0x2a,%eax
jne    1368 <main+0x1f8>
mov    -0x44(%rbp),%edi
mov    -0x48(%rbp),%esi
lea    -0x40(%rbp),%rdx
call   1090 <verificaLinha@plt>
mov    %eax,-0x4c(%rbp)
cmpl   $0x1,-0x4c(%rbp)
jne    12c7 <main+0x157>
lea    0xd55(%rip),%rdi
call   1040 <printf@plt>
movl   $0x1,-0x54(%rbp)
jmp    137b <main+0x20b>
mov    -0x44(%rbp),%edi
mov    -0x48(%rbp),%esi
lea    -0x40(%rbp),%rdx
call   1050 <verificaColuna@plt>
mov    %eax,-0x4c(%rbp)
cmpl   $0x1,-0x4c(%rbp)
jne    12fb <main+0x18b>
lea    0xd21(%rip),%rdi
call   1040 <printf@plt>
movl   $0x1,-0x54(%rbp)
jmp    137b <main+0x20b>
mov    -0x44(%rbp),%edi
mov    -0x48(%rbp),%esi
lea    -0x40(%rbp),%rdx
call   1030 <verificaDiagonal1@plt>
mov    %eax,-0x4c(%rbp)
cmpl   $0x1,-0x4c(%rbp)
jne    132f <main+0x1bf>
lea    0xced(%rip),%rdi
call   1040 <printf@plt>
movl   $0x1,-0x54(%rbp)
jmp    137b <main+0x20b>
mov    -0x44(%rbp),%edi
mov    -0x48(%rbp),%esi
lea    -0x40(%rbp),%rdx
call   1080 <verificaDiagonal2@plt>
mov    %eax,-0x4c(%rbp)
cmpl   $0x1,-0x4c(%rbp)
jne    1363 <main+0x1f3>
lea    0xcb9(%rip),%rdi
call   1040 <printf@plt>
movl   $0x1,-0x54(%rbp)
jmp    137b <main+0x20b>
jmp    1368 <main+0x1f8>
jmp    136d <main+0x1fd>
mov    -0x48(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x48(%rbp)
jmp    1269 <main+0xf9>
cmpl   $0x1,-0x54(%rbp)
jne    138a <main+0x21a>
jmp    139d <main+0x22d>
jmp    138f <main+0x21f>
mov    -0x44(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x44(%rbp)
jmp    1258 <main+0xe8>
cmpl   $0x0,-0x54(%rbp)
jne    13b3 <main+0x243>
lea    0xc5f(%rip),%rdi
call   1040 <printf@plt>
jmp    13b8 <main+0x248>
mov    -0x50(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x50(%rbp)
jmp    119f <main+0x2f>
add    $0x60,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x48,%rsp
lea    0xe7b(%rip),%rdi
lea    0x40(%rsp),%rsi
xor    %eax,%eax
call   1070 <scanf@plt>
mov    0x2e50(%rip),%rax
mov    (%rax),%edi
call   1060 <fflush@plt>
cmpl   $0x0,0x40(%rsp)
jle    166b <main+0x4fb>
lea    0xe53(%rip),%r13
mov    %rsp,%r12
xor    %eax,%eax
jmp    11dd <main+0x6d>
nopl   0x0(%rax,%rax,1)
lea    0xe46(%rip),%rdi
call   1030 <puts@plt>
mov    0x44(%rsp),%eax
add    $0x1,%eax
cmp    0x40(%rsp),%eax
jge    166b <main+0x4fb>
mov    %eax,0x44(%rsp)
mov    %r13,%rdi
mov    %r12,%rsi
xor    %eax,%eax
call   1070 <scanf@plt>
mov    %r13,%rdi
lea    0x1(%rsp),%rsi
xor    %eax,%eax
call   1070 <scanf@plt>
mov    %r13,%rdi
lea    0x2(%rsp),%rsi
xor    %eax,%eax
call   1070 <scanf@plt>
mov    %r13,%rdi
lea    0x3(%rsp),%rsi
xor    %eax,%eax
call   1070 <scanf@plt>
mov    %r13,%rdi
lea    0x4(%rsp),%rsi
xor    %eax,%eax
call   1070 <scanf@plt>
mov    %r13,%rdi
lea    0x5(%rsp),%rsi
xor    %eax,%eax
call   1070 <scanf@plt>
mov    %r13,%rdi
lea    0x6(%rsp),%rsi
xor    %eax,%eax
call   1070 <scanf@plt>
lea    0xdb8(%rip),%rbx
mov    %rbx,%rdi
lea    0x7(%rsp),%rsi
xor    %eax,%eax
call   1070 <scanf@plt>
mov    %r13,%rdi
lea    0x8(%rsp),%rsi
xor    %eax,%eax
call   1070 <scanf@plt>
mov    %r13,%rdi
lea    0x9(%rsp),%rsi
xor    %eax,%eax
call   1070 <scanf@plt>
mov    %r13,%rdi
lea    0xa(%rsp),%rsi
xor    %eax,%eax
call   1070 <scanf@plt>
mov    %r13,%rdi
lea    0xb(%rsp),%rsi
xor    %eax,%eax
call   1070 <scanf@plt>
mov    %r13,%rdi
lea    0xc(%rsp),%rsi
xor    %eax,%eax
call   1070 <scanf@plt>
mov    %r13,%rdi
lea    0xd(%rsp),%rsi
xor    %eax,%eax
call   1070 <scanf@plt>
mov    %r13,%rdi
lea    0xe(%rsp),%rsi
xor    %eax,%eax
call   1070 <scanf@plt>
mov    %rbx,%rdi
lea    0xf(%rsp),%rsi
xor    %eax,%eax
call   1070 <scanf@plt>
mov    %r13,%rdi
lea    0x10(%rsp),%rsi
xor    %eax,%eax
call   1070 <scanf@plt>
mov    %r13,%rdi
lea    0x11(%rsp),%rsi
xor    %eax,%eax
call   1070 <scanf@plt>
mov    %r13,%rdi
lea    0x12(%rsp),%rsi
xor    %eax,%eax
call   1070 <scanf@plt>
mov    %r13,%rdi
lea    0x13(%rsp),%rsi
xor    %eax,%eax
call   1070 <scanf@plt>
mov    %r13,%rdi
lea    0x14(%rsp),%rsi
xor    %eax,%eax
call   1070 <scanf@plt>
mov    %r13,%rdi
lea    0x15(%rsp),%rsi
xor    %eax,%eax
call   1070 <scanf@plt>
mov    %r13,%rdi
lea    0x16(%rsp),%rsi
xor    %eax,%eax
call   1070 <scanf@plt>
mov    %rbx,%rdi
lea    0x17(%rsp),%rsi
xor    %eax,%eax
call   1070 <scanf@plt>
mov    %r13,%rdi
lea    0x18(%rsp),%rsi
xor    %eax,%eax
call   1070 <scanf@plt>
mov    %r13,%rdi
lea    0x19(%rsp),%rsi
xor    %eax,%eax
call   1070 <scanf@plt>
mov    %r13,%rdi
lea    0x1a(%rsp),%rsi
xor    %eax,%eax
call   1070 <scanf@plt>
mov    %r13,%rdi
lea    0x1b(%rsp),%rsi
xor    %eax,%eax
call   1070 <scanf@plt>
mov    %r13,%rdi
lea    0x1c(%rsp),%rsi
xor    %eax,%eax
call   1070 <scanf@plt>
mov    %r13,%rdi
lea    0x1d(%rsp),%rsi
xor    %eax,%eax
call   1070 <scanf@plt>
mov    %r13,%rdi
lea    0x1e(%rsp),%rsi
xor    %eax,%eax
call   1070 <scanf@plt>
mov    %rbx,%rdi
lea    0x1f(%rsp),%rsi
xor    %eax,%eax
call   1070 <scanf@plt>
mov    %r13,%rdi
lea    0x20(%rsp),%rsi
xor    %eax,%eax
call   1070 <scanf@plt>
mov    %r13,%rdi
lea    0x21(%rsp),%rsi
xor    %eax,%eax
call   1070 <scanf@plt>
mov    %r13,%rdi
lea    0x22(%rsp),%rsi
xor    %eax,%eax
call   1070 <scanf@plt>
mov    %r13,%rdi
lea    0x23(%rsp),%rsi
xor    %eax,%eax
call   1070 <scanf@plt>
mov    %r13,%rdi
lea    0x24(%rsp),%rsi
xor    %eax,%eax
call   1070 <scanf@plt>
mov    %r13,%rdi
lea    0x25(%rsp),%rsi
xor    %eax,%eax
call   1070 <scanf@plt>
mov    %r13,%rdi
lea    0x26(%rsp),%rsi
xor    %eax,%eax
call   1070 <scanf@plt>
mov    %rbx,%rdi
lea    0x27(%rsp),%rsi
xor    %eax,%eax
call   1070 <scanf@plt>
mov    %r13,%rdi
lea    0x28(%rsp),%rsi
xor    %eax,%eax
call   1070 <scanf@plt>
mov    %r13,%rdi
lea    0x29(%rsp),%rsi
xor    %eax,%eax
call   1070 <scanf@plt>
mov    %r13,%rdi
lea    0x2a(%rsp),%rsi
xor    %eax,%eax
call   1070 <scanf@plt>
mov    %r13,%rdi
lea    0x2b(%rsp),%rsi
xor    %eax,%eax
call   1070 <scanf@plt>
mov    %r13,%rdi
lea    0x2c(%rsp),%rsi
xor    %eax,%eax
call   1070 <scanf@plt>
mov    %r13,%rdi
lea    0x2d(%rsp),%rsi
xor    %eax,%eax
call   1070 <scanf@plt>
mov    %r13,%rdi
lea    0x2e(%rsp),%rsi
xor    %eax,%eax
call   1070 <scanf@plt>
mov    %rbx,%rdi
lea    0x2f(%rsp),%rsi
xor    %eax,%eax
call   1070 <scanf@plt>
mov    %r13,%rdi
lea    0x30(%rsp),%rsi
xor    %eax,%eax
call   1070 <scanf@plt>
mov    %r13,%rdi
lea    0x31(%rsp),%rsi
xor    %eax,%eax
call   1070 <scanf@plt>
mov    %r13,%rdi
lea    0x32(%rsp),%rsi
xor    %eax,%eax
call   1070 <scanf@plt>
mov    %r13,%rdi
lea    0x33(%rsp),%rsi
xor    %eax,%eax
call   1070 <scanf@plt>
mov    %r13,%rdi
lea    0x34(%rsp),%rsi
xor    %eax,%eax
call   1070 <scanf@plt>
mov    %r13,%rdi
lea    0x35(%rsp),%rsi
xor    %eax,%eax
call   1070 <scanf@plt>
mov    %r13,%rdi
lea    0x36(%rsp),%rsi
xor    %eax,%eax
call   1070 <scanf@plt>
mov    %rbx,%rdi
lea    0x37(%rsp),%rsi
xor    %eax,%eax
call   1070 <scanf@plt>
mov    %r13,%rdi
lea    0x38(%rsp),%rsi
xor    %eax,%eax
call   1070 <scanf@plt>
mov    %r13,%rdi
lea    0x39(%rsp),%rsi
xor    %eax,%eax
call   1070 <scanf@plt>
mov    %r13,%rdi
lea    0x3a(%rsp),%rsi
xor    %eax,%eax
call   1070 <scanf@plt>
mov    %r13,%rdi
lea    0x3b(%rsp),%rsi
xor    %eax,%eax
call   1070 <scanf@plt>
mov    %r13,%rdi
lea    0x3c(%rsp),%rsi
xor    %eax,%eax
call   1070 <scanf@plt>
mov    %r13,%rdi
lea    0x3d(%rsp),%rsi
xor    %eax,%eax
call   1070 <scanf@plt>
mov    %r13,%rdi
lea    0x3e(%rsp),%rsi
xor    %eax,%eax
call   1070 <scanf@plt>
mov    %rbx,%rdi
lea    0x3f(%rsp),%rsi
xor    %eax,%eax
call   1070 <scanf@plt>
mov    $0x1,%bpl
mov    %r12,%rbx
xor    %r14d,%r14d
xor    %r15d,%r15d
jmp    15ca <main+0x45a>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
add    $0x1,%r15
cmp    $0x8,%r15
je     1620 <main+0x4b0>
cmpb   $0x2a,(%rbx,%r15,1)
jne    15c0 <main+0x450>
mov    %r14d,%edi
mov    %r15d,%esi
mov    %r12,%rdx
call   1090 <verificaLinha@plt>
cmp    $0x1,%eax
je     1650 <main+0x4e0>
mov    %r14d,%edi
mov    %r15d,%esi
mov    %r12,%rdx
call   1050 <verificaColuna@plt>
cmp    $0x1,%eax
je     1650 <main+0x4e0>
mov    %r14d,%edi
mov    %r15d,%esi
mov    %r12,%rdx
call   1040 <verificaDiagonal1@plt>
cmp    $0x1,%eax
je     1650 <main+0x4e0>
mov    %r14d,%edi
mov    %r15d,%esi
mov    %r12,%rdx
call   1080 <verificaDiagonal2@plt>
cmp    $0x1,%eax
jne    15c0 <main+0x450>
jmp    1650 <main+0x4e0>
nop
cmp    $0x7,%r14
lea    0x1(%r14),%rax
setb   %bpl
add    $0x8,%rbx
mov    %rax,%r14
cmp    $0x8,%rax
jne    15af <main+0x43f>
jmp    11c0 <main+0x50>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
lea    0x9b4(%rip),%rdi
call   1030 <puts@plt>
test   $0x1,%bpl
je     11c0 <main+0x50>
jmp    11cc <main+0x5c>
add    $0x48,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

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

LLVM IR (-O2):
@.str = [4 x i8] c"%i\0A\00"
@stdin = global i32 0
@.str.1 = [3 x i8] c"%c\00"
@.str.2 = [4 x i8] c"%c\0A\00"
@str = [6 x i8] c"valid\00"
@str.8 = [8 x i8] c"invalid\00"
define void @main() {
%1 = alloca [8 x [8 x i8]]
%2 = alloca i32
%3 = getelementptr inbounds [8 x [8 x i8]], [8 x [8 x i8]]* %1, i64 0, i64 0, i64 0
%4 = bitcast i32* %2 to i8*
%5 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32* %2)
%6 = load i32, i32* @stdin
%7 = call i32 @fflush(i32 %6)
%8 = load i32, i32* %2
%9 = icmp sgt i32 %8, 0
br i1 %9, label %10, label %180
10: ; preds = %0
%11 = bitcast [8 x [8 x i8]]* %1 to i8**
%12 = getelementptr inbounds [8 x [8 x i8]], [8 x [8 x i8]]* %1, i64 0, i64 0, i64 7
%13 = getelementptr inbounds [8 x [8 x i8]], [8 x [8 x i8]]* %1, i64 0, i64 0, i64 0
%14 = getelementptr inbounds [8 x [8 x i8]], [8 x [8 x i8]]* %1, i64 0, i64 0, i64 1
%15 = getelementptr inbounds [8 x [8 x i8]], [8 x [8 x i8]]* %1, i64 0, i64 0, i64 2
%16 = getelementptr inbounds [8 x [8 x i8]], [8 x [8 x i8]]* %1, i64 0, i64 0, i64 3
%17 = getelementptr inbounds [8 x [8 x i8]], [8 x [8 x i8]]* %1, i64 0, i64 0, i64 4
%18 = getelementptr inbounds [8 x [8 x i8]], [8 x [8 x i8]]* %1, i64 0, i64 0, i64 5
%19 = getelementptr inbounds [8 x [8 x i8]], [8 x [8 x i8]]* %1, i64 0, i64 0, i64 6
%20 = getelementptr inbounds [8 x [8 x i8]], [8 x [8 x i8]]* %1, i64 0, i64 1, i64 7
%21 = getelementptr inbounds [8 x [8 x i8]], [8 x [8 x i8]]* %1, i64 0, i64 1, i64 0
%22 = getelementptr inbounds [8 x [8 x i8]], [8 x [8 x i8]]* %1, i64 0, i64 1, i64 1
%23 = getelementptr inbounds [8 x [8 x i8]], [8 x [8 x i8]]* %1, i64 0, i64 1, i64 2
%24 = getelementptr inbounds [8 x [8 x i8]], [8 x [8 x i8]]* %1, i64 0, i64 1, i64 3
%25 = getelementptr inbounds [8 x [8 x i8]], [8 x [8 x i8]]* %1, i64 0, i64 1, i64 4
%26 = getelementptr inbounds [8 x [8 x i8]], [8 x [8 x i8]]* %1, i64 0, i64 1, i64 5
%27 = getelementptr inbounds [8 x [8 x i8]], [8 x [8 x i8]]* %1, i64 0, i64 1, i64 6
%28 = getelementptr inbounds [8 x [8 x i8]], [8 x [8 x i8]]* %1, i64 0, i64 2, i64 7
%29 = getelementptr inbounds [8 x [8 x i8]], [8 x [8 x i8]]* %1, i64 0, i64 2, i64 0
%30 = getelementptr inbounds [8 x [8 x i8]], [8 x [8 x i8]]* %1, i64 0, i64 2, i64 1
%31 = getelementptr inbounds [8 x [8 x i8]], [8 x [8 x i8]]* %1, i64 0, i64 2, i64 2
%32 = getelementptr inbounds [8 x [8 x i8]], [8 x [8 x i8]]* %1, i64 0, i64 2, i64 3
%33 = getelementptr inbounds [8 x [8 x i8]], [8 x [8 x i8]]* %1, i64 0, i64 2, i64 4
%34 = getelementptr inbounds [8 x [8 x i8]], [8 x [8 x i8]]* %1, i64 0, i64 2, i64 5
%35 = getelementptr inbounds [8 x [8 x i8]], [8 x [8 x i8]]* %1, i64 0, i64 2, i64 6
%36 = getelementptr inbounds [8 x [8 x i8]], [8 x [8 x i8]]* %1, i64 0, i64 3, i64 7
%37 = getelementptr inbounds [8 x [8 x i8]], [8 x [8 x i8]]* %1, i64 0, i64 3, i64 0
%38 = getelementptr inbounds [8 x [8 x i8]], [8 x [8 x i8]]* %1, i64 0, i64 3, i64 1
%39 = getelementptr inbounds [8 x [8 x i8]], [8 x [8 x i8]]* %1, i64 0, i64 3, i64 2
%40 = getelementptr inbounds [8 x [8 x i8]], [8 x [8 x i8]]* %1, i64 0, i64 3, i64 3
%41 = getelementptr inbounds [8 x [8 x i8]], [8 x [8 x i8]]* %1, i64 0, i64 3, i64 4
%42 = getelementptr inbounds [8 x [8 x i8]], [8 x [8 x i8]]* %1, i64 0, i64 3, i64 5
%43 = getelementptr inbounds [8 x [8 x i8]], [8 x [8 x i8]]* %1, i64 0, i64 3, i64 6
%44 = getelementptr inbounds [8 x [8 x i8]], [8 x [8 x i8]]* %1, i64 0, i64 4, i64 7
%45 = getelementptr inbounds [8 x [8 x i8]], [8 x [8 x i8]]* %1, i64 0, i64 4, i64 0
%46 = getelementptr inbounds [8 x [8 x i8]], [8 x [8 x i8]]* %1, i64 0, i64 4, i64 1
%47 = getelementptr inbounds [8 x [8 x i8]], [8 x [8 x i8]]* %1, i64 0, i64 4, i64 2
%48 = getelementptr inbounds [8 x [8 x i8]], [8 x [8 x i8]]* %1, i64 0, i64 4, i64 3
%49 = getelementptr inbounds [8 x [8 x i8]], [8 x [8 x i8]]* %1, i64 0, i64 4, i64 4
%50 = getelementptr inbounds [8 x [8 x i8]], [8 x [8 x i8]]* %1, i64 0, i64 4, i64 5
%51 = getelementptr inbounds [8 x [8 x i8]], [8 x [8 x i8]]* %1, i64 0, i64 4, i64 6
%52 = getelementptr inbounds [8 x [8 x i8]], [8 x [8 x i8]]* %1, i64 0, i64 5, i64 7
%53 = getelementptr inbounds [8 x [8 x i8]], [8 x [8 x i8]]* %1, i64 0, i64 5, i64 0
%54 = getelementptr inbounds [8 x [8 x i8]], [8 x [8 x i8]]* %1, i64 0, i64 5, i64 1
%55 = getelementptr inbounds [8 x [8 x i8]], [8 x [8 x i8]]* %1, i64 0, i64 5, i64 2
%56 = getelementptr inbounds [8 x [8 x i8]], [8 x [8 x i8]]* %1, i64 0, i64 5, i64 3
%57 = getelementptr inbounds [8 x [8 x i8]], [8 x [8 x i8]]* %1, i64 0, i64 5, i64 4
%58 = getelementptr inbounds [8 x [8 x i8]], [8 x [8 x i8]]* %1, i64 0, i64 5, i64 5
%59 = getelementptr inbounds [8 x [8 x i8]], [8 x [8 x i8]]* %1, i64 0, i64 5, i64 6
%60 = getelementptr inbounds [8 x [8 x i8]], [8 x [8 x i8]]* %1, i64 0, i64 6, i64 7
%61 = getelementptr inbounds [8 x [8 x i8]], [8 x [8 x i8]]* %1, i64 0, i64 6, i64 0
%62 = getelementptr inbounds [8 x [8 x i8]], [8 x [8 x i8]]* %1, i64 0, i64 6, i64 1
%63 = getelementptr inbounds [8 x [8 x i8]], [8 x [8 x i8]]* %1, i64 0, i64 6, i64 2
%64 = getelementptr inbounds [8 x [8 x i8]], [8 x [8 x i8]]* %1, i64 0, i64 6, i64 3
%65 = getelementptr inbounds [8 x [8 x i8]], [8 x [8 x i8]]* %1, i64 0, i64 6, i64 4
%66 = getelementptr inbounds [8 x [8 x i8]], [8 x [8 x i8]]* %1, i64 0, i64 6, i64 5
%67 = getelementptr inbounds [8 x [8 x i8]], [8 x [8 x i8]]* %1, i64 0, i64 6, i64 6
%68 = getelementptr inbounds [8 x [8 x i8]], [8 x [8 x i8]]* %1, i64 0, i64 7, i64 7
%69 = getelementptr inbounds [8 x [8 x i8]], [8 x [8 x i8]]* %1, i64 0, i64 7, i64 0
%70 = getelementptr inbounds [8 x [8 x i8]], [8 x [8 x i8]]* %1, i64 0, i64 7, i64 1
%71 = getelementptr inbounds [8 x [8 x i8]], [8 x [8 x i8]]* %1, i64 0, i64 7, i64 2
%72 = getelementptr inbounds [8 x [8 x i8]], [8 x [8 x i8]]* %1, i64 0, i64 7, i64 3
%73 = getelementptr inbounds [8 x [8 x i8]], [8 x [8 x i8]]* %1, i64 0, i64 7, i64 4
%74 = getelementptr inbounds [8 x [8 x i8]], [8 x [8 x i8]]* %1, i64 0, i64 7, i64 5
%75 = getelementptr inbounds [8 x [8 x i8]], [8 x [8 x i8]]* %1, i64 0, i64 7, i64 6
br label %76
76: ; preds = %10, %176
%77 = phi i32 [ 0, %10 ], [ %177, %176 ]
%78 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %13)
%79 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %14)
%80 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %15)
%81 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %16)
%82 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %17)
%83 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %18)
%84 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %19)
%85 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i8* %12)
%86 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %21)
%87 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %22)
%88 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %23)
%89 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %24)
%90 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %25)
%91 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %26)
%92 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %27)
%93 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i8* %20)
%94 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %29)
%95 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %30)
%96 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %31)
%97 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %32)
%98 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %33)
%99 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %34)
%100 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %35)
%101 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i8* %28)
%102 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %37)
%103 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %38)
%104 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %39)
%105 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %40)
%106 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %41)
%107 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %42)
%108 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %43)
%109 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i8* %36)
%110 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %45)
%111 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %46)
%112 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %47)
%113 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %48)
%114 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %49)
%115 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %50)
%116 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %51)
%117 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i8* %44)
%118 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %53)
%119 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %54)
%120 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %55)
%121 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %56)
%122 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %57)
%123 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %58)
%124 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %59)
%125 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i8* %52)
%126 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %61)
%127 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %62)
%128 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %63)
%129 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %64)
%130 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %65)
%131 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %66)
%132 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %67)
%133 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i8* %60)
%134 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %69)
%135 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %70)
%136 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %71)
%137 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %72)
%138 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %73)
%139 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %74)
%140 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %75)
%141 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i8* %68)
br label %142
142: ; preds = %76, %167
%143 = phi i64 [ %168, %167 ], [ 0, %76 ]
%144 = phi i1 [ %169, %167 ], [ true, %76 ]
%145 = trunc i64 %143 to i32
br label %146
146: ; preds = %142, %164
%147 = phi i64 [ 0, %142 ], [ %165, %164 ]
%148 = getelementptr inbounds [8 x [8 x i8]], [8 x [8 x i8]]* %1, i64 0, i64 %143, i64 %147
%149 = load i8, i8* %148
%150 = icmp eq i8 %149, 42
br i1 %150, label %151, label %164
151: ; preds = %146
%152 = trunc i64 %147 to i32
%153 = call i32 @verificaLinha(i32 %145, i32 %152, i8** %11)
%154 = icmp eq i32 %153, 1
br i1 %154, label %171, label %155
155: ; preds = %151
%156 = call i32 @verificaColuna(i32 %145, i32 %152, i8** %11)
%157 = icmp eq i32 %156, 1
br i1 %157, label %171, label %158
158: ; preds = %155
%159 = call i32 @verificaDiagonal1(i32 %145, i32 %152, i8** %11)
%160 = icmp eq i32 %159, 1
br i1 %160, label %171, label %161
161: ; preds = %158
%162 = call i32 @verificaDiagonal2(i32 %145, i32 %152, i8** %11)
%163 = icmp eq i32 %162, 1
br i1 %163, label %171, label %164
164: ; preds = %146, %161
%165 = add nuw nsw i64 %147, 1
%166 = icmp eq i64 %165, 8
br i1 %166, label %167, label %146
167: ; preds = %164
%168 = add nuw nsw i64 %143, 1
%169 = icmp ult i64 %143, 7
%170 = icmp eq i64 %168, 8
br i1 %170, label %174, label %142
171: ; preds = %161, %158, %155, %151
%172 = phi i8* [ getelementptr inbounds ([8 x i8], [8 x i8]* @str.8, i64 0, i64 0), %151 ], [ getelementptr inbounds ([8 x i8], [8 x i8]* @str.8, i64 0, i64 0), %155 ], [ getelementptr inbounds ([8 x i8], [8 x i8]* @str.8, i64 0, i64 0), %158 ], [ getelementptr inbounds ([8 x i8], [8 x i8]* @str.8, i64 0, i64 0), %161 ]
%173 = call i32 @puts(i8* dereferenceable(1) %172)
br i1 %144, label %176, label %174
174: ; preds = %167, %171
%175 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @str, i64 0, i64 0))
br label %176
176: ; preds = %171, %174
%177 = add nuw nsw i32 %77, 1
%178 = load i32, i32* %2
%179 = icmp slt i32 %177, %178
br i1 %179, label %76, label %180
180: ; preds = %176, %0
ret void
}