#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 */
typedef int /*<<< orphan*/ y;
typedef int /*<<< orphan*/ t;

/* Variables and functions */
int /*<<< orphan*/ memcpy(int *, int *, int);
int /*<<< orphan*/ memset(int *, int /*<<< orphan*/, int);
int /*<<< orphan*/ printf(char *);
int /*<<< orphan*/ putchar(char);
scalar_t__ scanf(char *, int *);
main() {
  int n, d[100] = {0}, y[100] = {0}, t[100] = {0}, i, j, k, l, m;
  while (scanf("%d", &n) > 0) {
    for (m = 1; m <= n; m++) {
      for (i = 0; i < 10; i++)
        scanf("%d", &d[i]);
      memset(t, 0, sizeof(t));
      t[20] = 1;
      for (l = 0; l < 50; l++) {
        for (j = 1; j <= 40; j++)
          switch (t[j]) {
          case 0:
            printf(" ");
            break;
          case 1:
            printf(".");
            break;
          case 2:
            printf("x");
            break;
          case 3:
            printf("W");
            break;
          default:
            break;
          }
        putchar('\n');
        memcpy(y, t, sizeof(y));
        for (j = 2; j <= 40; j++)
          t[j] = d[y[j] + y[j - 1] + y[j + 1]];
        t[1] = d[y[1] + y[2]];
      }
      if (m < n)
        putchar('\n');
    }
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x4e0,%rsp
movl   $0x0,-0x4(%rbp)
lea    -0x1a0(%rbp),%rdi
xor    %esi,%esi
mov    $0x190,%edx
call   1050 <memset@plt>
lea    -0x330(%rbp),%rdi
xor    %esi,%esi
mov    $0x190,%edx
call   1050 <memset@plt>
lea    -0x4c0(%rbp),%rdi
xor    %esi,%esi
mov    $0x190,%edx
call   1050 <memset@plt>
lea    0xe6e(%rip),%rdi
lea    -0x8(%rbp),%rsi
call   1070 <scanf@plt>
cmp    $0x0,%rax
jle    13fb <main+0x2ab>
movl   $0x1,-0x4d4(%rbp)
mov    -0x4d4(%rbp),%eax
cmp    -0x8(%rbp),%eax
jg     13f6 <main+0x2a6>
movl   $0x0,-0x4c4(%rbp)
cmpl   $0xa,-0x4c4(%rbp)
jge    121a <main+0xca>
movslq -0x4c4(%rbp),%rax
lea    -0x1a0(%rbp),%rsi
shl    $0x2,%rax
add    %rax,%rsi
lea    0xe0f(%rip),%rdi
call   1070 <scanf@plt>
mov    -0x4c4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4c4(%rbp)
jmp    11d8 <main+0x88>
lea    -0x4c0(%rbp),%rdi
xor    %esi,%esi
mov    $0x190,%edx
call   1050 <memset@plt>
movl   $0x1,-0x470(%rbp)
movl   $0x0,-0x4d0(%rbp)
cmpl   $0x32,-0x4d0(%rbp)
jge    13c4 <main+0x274>
movl   $0x1,-0x4c8(%rbp)
cmpl   $0x28,-0x4c8(%rbp)
jg     12fd <main+0x1ad>
movslq -0x4c8(%rbp),%rax
mov    -0x4c0(%rbp,%rax,4),%eax
mov    %rax,-0x4e0(%rbp)
sub    $0x3,%rax
ja     12df <main+0x18f>
mov    -0x4e0(%rbp),%rax
lea    0xd6e(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
lea    0xd71(%rip),%rdi
call   1040 <printf@plt>
jmp    12e4 <main+0x194>
lea    0xd62(%rip),%rdi
call   1040 <printf@plt>
jmp    12e4 <main+0x194>
lea    0xd53(%rip),%rdi
call   1040 <printf@plt>
jmp    12e4 <main+0x194>
lea    0xd44(%rip),%rdi
call   1040 <printf@plt>
jmp    12e4 <main+0x194>
jmp    12e4 <main+0x194>
jmp    12e9 <main+0x199>
mov    -0x4c8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4c8(%rbp)
jmp    1258 <main+0x108>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    -0x330(%rbp),%rdi
lea    -0x4c0(%rbp),%rsi
mov    $0x190,%edx
call   1060 <memcpy@plt>
movl   $0x2,-0x4c8(%rbp)
cmpl   $0x28,-0x4c8(%rbp)
jg     1395 <main+0x245>
movslq -0x4c8(%rbp),%rax
mov    -0x330(%rbp,%rax,4),%eax
mov    -0x4c8(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
add    -0x330(%rbp,%rcx,4),%eax
mov    -0x4c8(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
add    -0x330(%rbp,%rcx,4),%eax
cltq
mov    -0x1a0(%rbp,%rax,4),%ecx
movslq -0x4c8(%rbp),%rax
mov    %ecx,-0x4c0(%rbp,%rax,4)
mov    -0x4c8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4c8(%rbp)
jmp    1329 <main+0x1d9>
mov    -0x32c(%rbp),%eax
add    -0x328(%rbp),%eax
cltq
mov    -0x1a0(%rbp,%rax,4),%eax
mov    %eax,-0x4bc(%rbp)
mov    -0x4d0(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4d0(%rbp)
jmp    1241 <main+0xf1>
mov    -0x4d4(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    13dd <main+0x28d>
mov    $0xa,%edi
call   1030 <putchar@plt>
jmp    13e2 <main+0x292>
mov    -0x4d4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4d4(%rbp)
jmp    11bf <main+0x6f>
jmp    119b <main+0x4b>
xor    %eax,%eax
add    $0x4e0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x4c8,%rsp
lea    0x10(%rsp),%rdi
mov    $0x190,%edx
xor    %esi,%esi
call   1040 <memset@plt>
lea    0x1a0(%rsp),%rdi
mov    $0x190,%edx
xor    %esi,%esi
call   1040 <memset@plt>
lea    0x330(%rsp),%rdi
mov    $0x190,%edx
xor    %esi,%esi
call   1040 <memset@plt>
lea    0xe6f(%rip),%rdi
lea    0xc(%rsp),%rsi
call   1060 <scanf@plt>
test   %rax,%rax
jle    13b0 <main+0x270>
lea    0x330(%rsp),%rbp
lea    0xe51(%rip),%r15
lea    0x1a0(%rsp),%r14
jmp    11da <main+0x9a>
nopl   (%rax)
lea    0xe39(%rip),%rdi
lea    0xc(%rsp),%rsi
call   1060 <scanf@plt>
test   %rax,%rax
jle    13b0 <main+0x270>
cmpl   $0x0,0xc(%rsp)
jle    11c0 <main+0x80>
mov    $0x1,%r12d
jmp    11fd <main+0xbd>
nopl   0x0(%rax)
lea    0x1(%r12),%ecx
cmp    %eax,%r12d
mov    %ecx,%r12d
jge    11c0 <main+0x80>
lea    0xdfc(%rip),%rbx
mov    %rbx,%rdi
lea    0x10(%rsp),%rsi
call   1060 <scanf@plt>
mov    %rbx,%rdi
lea    0x14(%rsp),%rsi
call   1060 <scanf@plt>
mov    %rbx,%rdi
lea    0x18(%rsp),%rsi
call   1060 <scanf@plt>
mov    %rbx,%rdi
lea    0x1c(%rsp),%rsi
call   1060 <scanf@plt>
mov    %rbx,%rdi
lea    0x20(%rsp),%rsi
call   1060 <scanf@plt>
mov    %rbx,%rdi
lea    0x24(%rsp),%rsi
call   1060 <scanf@plt>
mov    %rbx,%rdi
lea    0x28(%rsp),%rsi
call   1060 <scanf@plt>
mov    %rbx,%rdi
lea    0x2c(%rsp),%rsi
call   1060 <scanf@plt>
mov    %rbx,%rdi
lea    0x30(%rsp),%rsi
call   1060 <scanf@plt>
mov    %rbx,%rdi
lea    0x34(%rsp),%rsi
call   1060 <scanf@plt>
xor    %ebx,%ebx
mov    %rbp,%rdi
xor    %esi,%esi
mov    $0x190,%edx
call   1040 <memset@plt>
movl   $0x1,0x380(%rsp)
jmp    12d2 <main+0x192>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
movslq 0x1a4(%rsp),%rcx
add    %rax,%rcx
mov    0x10(%rsp,%rcx,4),%eax
mov    %eax,0x334(%rsp)
add    $0x1,%ebx
cmp    $0x32,%ebx
je     1390 <main+0x250>
mov    $0x1,%r13d
jmp    12ea <main+0x1aa>
nopw   0x0(%rax,%rax,1)
add    $0x1,%r13
cmp    $0x29,%r13
je     1310 <main+0x1d0>
movslq 0x330(%rsp,%r13,4),%rax
cmp    $0x3,%rax
ja     12e0 <main+0x1a0>
mov    (%r15,%rax,4),%edi
call   1030 <putchar@plt>
jmp    12e0 <main+0x1a0>
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    %r14,%rdi
mov    %rbp,%rsi
mov    $0x190,%edx
call   1050 <memcpy@plt>
mov    0x1a8(%rsp),%edx
movslq %edx,%rax
xor    %ecx,%ecx
cs nopw 0x0(%rax,%rax,1)
add    0x1a4(%rsp,%rcx,4),%edx
mov    0x1ac(%rsp,%rcx,4),%esi
add    %esi,%edx
movslq %edx,%rdx
mov    0x10(%rsp,%rdx,4),%edx
mov    %edx,0x338(%rsp,%rcx,4)
cmp    $0x26,%rcx
je     12b0 <main+0x170>
add    0x1a8(%rsp,%rcx,4),%esi
mov    0x1b0(%rsp,%rcx,4),%edx
add    %edx,%esi
movslq %esi,%rsi
mov    0x10(%rsp,%rsi,4),%esi
mov    %esi,0x33c(%rsp,%rcx,4)
add    $0x2,%rcx
jmp    1340 <main+0x200>
nopl   0x0(%rax)
mov    0xc(%rsp),%eax
cmp    %eax,%r12d
jge    11f0 <main+0xb0>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    0xc(%rsp),%eax
jmp    11f0 <main+0xb0>
xor    %eax,%eax
add    $0x4c8,%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 = [2 x i8] c" \00"
@.str.2 = [2 x i8] c".\00"
@.str.3 = [2 x i8] c"x\00"
@.str.4 = [2 x i8] c"W\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca [100 x i32]
%4 = alloca [100 x i32]
%5 = alloca [100 x i32]
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
store i32 0, i32* %1
%11 = bitcast [100 x i32]* %3 to i8*
%12 = bitcast [100 x i32]* %4 to i8*
%13 = bitcast [100 x i32]* %5 to i8*
br label %14
14: ; preds = %120, %0
%15 = call i64 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %2)
%16 = icmp sgt i64 %15, 0
br i1 %16, label %17, label %121
17: ; preds = %14
store i32 1, i32* %10
br label %18
18: ; preds = %117, %17
%19 = load i32, i32* %10
%20 = load i32, i32* %2
%21 = icmp sle i32 %19, %20
br i1 %21, label %22, label %120
22: ; preds = %18
store i32 0, i32* %6
br label %23
23: ; preds = %31, %22
%24 = load i32, i32* %6
%25 = icmp slt i32 %24, 10
br i1 %25, label %26, label %34
26: ; preds = %23
%27 = load i32, i32* %6
%28 = sext i32 %27 to i64
%29 = getelementptr inbounds [100 x i32], [100 x i32]* %3, i64 0, i64 %28
%30 = call i64 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %29)
br label %31
31: ; preds = %26
%32 = load i32, i32* %6
%33 = add nsw i32 %32, 1
store i32 %33, i32* %6
br label %23
34: ; preds = %23
%35 = getelementptr inbounds [100 x i32], [100 x i32]* %5, i64 0, i64 0
%36 = call i32 @memset(i32* %35, i32 0, i32 400)
%37 = getelementptr inbounds [100 x i32], [100 x i32]* %5, i64 0, i64 20
store i32 1, i32* %37
store i32 0, i32* %9
br label %38
38: ; preds = %107, %34
%39 = load i32, i32* %9
%40 = icmp slt i32 %39, 50
br i1 %40, label %41, label %110
41: ; preds = %38
store i32 1, i32* %7
br label %42
42: ; preds = %60, %41
%43 = load i32, i32* %7
%44 = icmp sle i32 %43, 40
br i1 %44, label %45, label %63
45: ; preds = %42
%46 = load i32, i32* %7
%47 = sext i32 %46 to i64
%48 = getelementptr inbounds [100 x i32], [100 x i32]* %5, i64 0, i64 %47
%49 = load i32, i32* %48
switch i32 %49, label %58 [
i32 0, label %50
i32 1, label %52
i32 2, label %54
i32 3, label %56
]
50: ; preds = %45
%51 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
br label %59
52: ; preds = %45
%53 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
br label %59
54: ; preds = %45
%55 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
br label %59
56: ; preds = %45
%57 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
br label %59
58: ; preds = %45
br label %59
59: ; preds = %58, %56, %54, %52, %50
br label %60
60: ; preds = %59
%61 = load i32, i32* %7
%62 = add nsw i32 %61, 1
store i32 %62, i32* %7
br label %42
63: ; preds = %42
%64 = call i32 @putchar(i8 signext 10)
%65 = getelementptr inbounds [100 x i32], [100 x i32]* %4, i64 0, i64 0
%66 = getelementptr inbounds [100 x i32], [100 x i32]* %5, i64 0, i64 0
%67 = call i32 @memcpy(i32* %65, i32* %66, i32 400)
store i32 2, i32* %7
br label %68
68: ; preds = %94, %63
%69 = load i32, i32* %7
%70 = icmp sle i32 %69, 40
br i1 %70, label %71, label %97
71: ; preds = %68
%72 = load i32, i32* %7
%73 = sext i32 %72 to i64
%74 = getelementptr inbounds [100 x i32], [100 x i32]* %4, i64 0, i64 %73
%75 = load i32, i32* %74
%76 = load i32, i32* %7
%77 = sub nsw i32 %76, 1
%78 = sext i32 %77 to i64
%79 = getelementptr inbounds [100 x i32], [100 x i32]* %4, i64 0, i64 %78
%80 = load i32, i32* %79
%81 = add nsw i32 %75, %80
%82 = load i32, i32* %7
%83 = add nsw i32 %82, 1
%84 = sext i32 %83 to i64
%85 = getelementptr inbounds [100 x i32], [100 x i32]* %4, i64 0, i64 %84
%86 = load i32, i32* %85
%87 = add nsw i32 %81, %86
%88 = sext i32 %87 to i64
%89 = getelementptr inbounds [100 x i32], [100 x i32]* %3, i64 0, i64 %88
%90 = load i32, i32* %89
%91 = load i32, i32* %7
%92 = sext i32 %91 to i64
%93 = getelementptr inbounds [100 x i32], [100 x i32]* %5, i64 0, i64 %92
store i32 %90, i32* %93
br label %94
94: ; preds = %71
%95 = load i32, i32* %7
%96 = add nsw i32 %95, 1
store i32 %96, i32* %7
br label %68
97: ; preds = %68
%98 = getelementptr inbounds [100 x i32], [100 x i32]* %4, i64 0, i64 1
%99 = load i32, i32* %98
%100 = getelementptr inbounds [100 x i32], [100 x i32]* %4, i64 0, i64 2
%101 = load i32, i32* %100
%102 = add nsw i32 %99, %101
%103 = sext i32 %102 to i64
%104 = getelementptr inbounds [100 x i32], [100 x i32]* %3, i64 0, i64 %103
%105 = load i32, i32* %104
%106 = getelementptr inbounds [100 x i32], [100 x i32]* %5, i64 0, i64 1
store i32 %105, i32* %106
br label %107
107: ; preds = %97
%108 = load i32, i32* %9
%109 = add nsw i32 %108, 1
store i32 %109, i32* %9
br label %38
110: ; preds = %38
%111 = load i32, i32* %10
%112 = load i32, i32* %2
%113 = icmp slt i32 %111, %112
br i1 %113, label %114, label %116
114: ; preds = %110
%115 = call i32 @putchar(i8 signext 10)
br label %116
116: ; preds = %114, %110
br label %117
117: ; preds = %116
%118 = load i32, i32* %10
%119 = add nsw i32 %118, 1
store i32 %119, i32* %10
br label %18
120: ; preds = %18
br label %14
121: ; preds = %14
ret i32 0
}

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