#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 */
typedef struct TYPE_10__ TYPE_5__;
typedef struct TYPE_9__ TYPE_4__;
typedef struct TYPE_8__ TYPE_3__;
typedef struct TYPE_7__ TYPE_2__;
typedef struct TYPE_6__ TYPE_1__;

/* Type definitions */
struct TYPE_10__ {
  char *member_0;
};
struct TYPE_9__ {
  char *member_0;
};
struct TYPE_8__ {
  char *member_0;
};
struct TYPE_7__ {
  char *member_0;
};
struct TYPE_6__ {
  char *member_0;
};

/* Variables and functions */
int /*<<< orphan*/ getchar();
int /*<<< orphan*/ printf(char *);
int /*<<< orphan*/ putchar(char);
scalar_t__ scanf(char *, ...);
int strlen(char *);
int main() {
  int len, i, j, k, l, p, o, n, u, a[100] = {0};
  char s[100], sm[10][10][10] = {{{" - "}, {"| |"}, {"   "}, {"| |"}, {" - "}},
                                 {{"   "}, {"  |"}, {"   "}, {"  |"}, {"   "}},
                                 {{" - "}, {"  |"}, {" - "}, {"|  "}, {" - "}},
                                 {{" - "}, {"  |"}, {" - "}, {"  |"}, {" - "}},
                                 {{"   "}, {"| |"}, {" - "}, {"  |"}, {"   "}},
                                 {{" - "}, {"|  "}, {" - "}, {"  |"}, {" - "}},
                                 {{" - "}, {"|  "}, {" - "}, {"| |"}, {" - "}},
                                 {{" - "}, {"  |"}, {"   "}, {"  |"}, {"   "}},
                                 {{" - "}, {"| |"}, {" - "}, {"| |"}, {" - "}},
                                 {{" - "}, {"| |"}, {" - "}, {"  |"}, {" - "}}};
  while (scanf("%d", &n) > 0) {
    getchar();
    scanf("%s", s);
    len = strlen(s);
    if (n == 0 && len == 1 && s[0] == '0')
      break;
    for (i = 0; i < len; i++)
      a[i] = s[i] - 48;
    for (i = 0; i < 5; i++) {
      if (i != 0 && i != 4 && i != 2)
        for (j = 1; j <= n; j++)
          for (u = 0; u < len; u++) {
            putchar(sm[a[u]][i][0]);
            for (l = 1; l <= n; l++)
              putchar(sm[a[u]][i][1]);
            putchar(sm[a[u]][i][2]);
            if (u != len - 1)
              putchar(' ');
            else
              putchar('\n');
          }
      else
        for (u = 0; u < len; u++) {
          putchar(sm[a[u]][i][0]);
          for (p = 1; p <= n; p++)
            putchar(sm[a[u]][i][1]);
          putchar(sm[a[u]][i][2]);
          if (u != len - 1)
            putchar(' ');
          else
            putchar('\n');
        }
    }
    printf("\n");
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x620,%rsp
movl   $0x0,-0x4(%rbp)
lea    -0x1c0(%rbp),%rdi
xor    %esi,%esi
mov    $0x190,%edx
call   1060 <memset@plt>
lea    -0x620(%rbp),%rdi
lea    0xe5d(%rip),%rsi
mov    $0x3e8,%edx
call   1080 <memcpy@plt>
lea    0x1234(%rip),%rdi
lea    -0x24(%rbp),%rsi
mov    $0x0,%al
call   1090 <scanf@plt>
cmp    $0x0,%rax
jle    14cf <main+0x35f>
mov    $0x0,%al
call   1070 <getchar@plt>
lea    -0x230(%rbp),%rsi
lea    0x120d(%rip),%rdi
mov    $0x0,%al
call   1090 <scanf@plt>
lea    -0x230(%rbp),%rdi
call   1040 <strlen@plt>
mov    %eax,-0x8(%rbp)
cmpl   $0x0,-0x24(%rbp)
jne    121d <main+0xad>
cmpl   $0x1,-0x8(%rbp)
jne    121d <main+0xad>
movsbl -0x230(%rbp),%eax
cmp    $0x30,%eax
jne    121d <main+0xad>
jmp    14cf <main+0x35f>
movl   $0x0,-0xc(%rbp)
mov    -0xc(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    1258 <main+0xe8>
movslq -0xc(%rbp),%rax
movsbl -0x230(%rbp,%rax,1),%ecx
ff
sub    $0x30,%ecx
movslq -0xc(%rbp),%rax
mov    %ecx,-0x1c0(%rbp,%rax,4)
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    1224 <main+0xb4>
movl   $0x0,-0xc(%rbp)
cmpl   $0x5,-0xc(%rbp)
jge    14be <main+0x34e>
cmpl   $0x0,-0xc(%rbp)
je     13ac <main+0x23c>
cmpl   $0x4,-0xc(%rbp)
je     13ac <main+0x23c>
cmpl   $0x2,-0xc(%rbp)
je     13ac <main+0x23c>
movl   $0x1,-0x10(%rbp)
mov    -0x10(%rbp),%eax
cmp    -0x24(%rbp),%eax
jg     13a7 <main+0x237>
movl   $0x0,-0x28(%rbp)
mov    -0x28(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    1394 <main+0x224>
movslq -0x28(%rbp),%rax
movslq -0x1c0(%rbp,%rax,4),%rcx
ff
lea    -0x620(%rbp),%rax
imul   $0x64,%rcx,%rcx
add    %rcx,%rax
movslq -0xc(%rbp),%rcx
imul   $0xa,%rcx,%rcx
add    %rcx,%rax
movsbl (%rax),%edi
call   1030 <putchar@plt>
movl   $0x1,-0x18(%rbp)
mov    -0x18(%rbp),%eax
cmp    -0x24(%rbp),%eax
jg     1329 <main+0x1b9>
movslq -0x28(%rbp),%rax
movslq -0x1c0(%rbp,%rax,4),%rcx
ff
lea    -0x620(%rbp),%rax
imul   $0x64,%rcx,%rcx
add    %rcx,%rax
movslq -0xc(%rbp),%rcx
imul   $0xa,%rcx,%rcx
add    %rcx,%rax
movsbl 0x1(%rax),%edi
call   1030 <putchar@plt>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    12e1 <main+0x171>
movslq -0x28(%rbp),%rax
movslq -0x1c0(%rbp,%rax,4),%rcx
ff
lea    -0x620(%rbp),%rax
imul   $0x64,%rcx,%rcx
add    %rcx,%rax
movslq -0xc(%rbp),%rcx
imul   $0xa,%rcx,%rcx
add    %rcx,%rax
movsbl 0x2(%rax),%edi
call   1030 <putchar@plt>
mov    -0x28(%rbp),%eax
mov    -0x8(%rbp),%ecx
sub    $0x1,%ecx
cmp    %ecx,%eax
je     1377 <main+0x207>
mov    $0x20,%edi
call   1030 <putchar@plt>
jmp    1381 <main+0x211>
mov    $0xa,%edi
call   1030 <putchar@plt>
jmp    1386 <main+0x216>
mov    -0x28(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x28(%rbp)
jmp    12a1 <main+0x131>
jmp    1399 <main+0x229>
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
jmp    128e <main+0x11e>
jmp    14ab <main+0x33b>
movl   $0x0,-0x28(%rbp)
mov    -0x28(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    14a6 <main+0x336>
movslq -0x28(%rbp),%rax
movslq -0x1c0(%rbp,%rax,4),%rcx
ff
lea    -0x620(%rbp),%rax
imul   $0x64,%rcx,%rcx
add    %rcx,%rax
movslq -0xc(%rbp),%rcx
imul   $0xa,%rcx,%rcx
add    %rcx,%rax
movsbl (%rax),%edi
call   1030 <putchar@plt>
movl   $0x1,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
cmp    -0x24(%rbp),%eax
jg     143b <main+0x2cb>
movslq -0x28(%rbp),%rax
movslq -0x1c0(%rbp,%rax,4),%rcx
ff
lea    -0x620(%rbp),%rax
imul   $0x64,%rcx,%rcx
add    %rcx,%rax
movslq -0xc(%rbp),%rcx
imul   $0xa,%rcx,%rcx
add    %rcx,%rax
movsbl 0x1(%rax),%edi
call   1030 <putchar@plt>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    13f3 <main+0x283>
movslq -0x28(%rbp),%rax
movslq -0x1c0(%rbp,%rax,4),%rcx
ff
lea    -0x620(%rbp),%rax
imul   $0x64,%rcx,%rcx
add    %rcx,%rax
movslq -0xc(%rbp),%rcx
imul   $0xa,%rcx,%rcx
add    %rcx,%rax
movsbl 0x2(%rax),%edi
call   1030 <putchar@plt>
mov    -0x28(%rbp),%eax
mov    -0x8(%rbp),%ecx
sub    $0x1,%ecx
cmp    %ecx,%eax
je     1489 <main+0x319>
mov    $0x20,%edi
call   1030 <putchar@plt>
jmp    1493 <main+0x323>
mov    $0xa,%edi
call   1030 <putchar@plt>
jmp    1498 <main+0x328>
mov    -0x28(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x28(%rbp)
jmp    13b3 <main+0x243>
jmp    14ab <main+0x33b>
jmp    14b0 <main+0x340>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    125f <main+0xef>
lea    0xf29(%rip),%rdi
call   1050 <printf@plt>
jmp    11ad <main+0x3d>
xor    %eax,%eax
add    $0x620,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x238,%rsp
lea    0xa0(%rsp),%rdi
mov    $0x190,%edx
xor    %esi,%esi
call   1050 <memset@plt>
jmp    118a <main+0x3a>
nopw   0x0(%rax,%rax,1)
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0x1267(%rip),%rdi
lea    0xc(%rsp),%rsi
xor    %eax,%eax
call   1070 <scanf@plt>
test   %rax,%rax
jle    1517 <main+0x3c7>
xor    %eax,%eax
call   1060 <getchar@plt>
lea    0x1247(%rip),%rdi
lea    0x30(%rsp),%rbx
mov    %rbx,%rsi
xor    %eax,%eax
call   1070 <scanf@plt>
mov    %rbx,%rdi
call   1040 <strlen@plt>
cmpl   $0x0,0xc(%rsp)
mov    0x30(%rsp),%cl
jne    11e4 <main+0x94>
cmp    $0x1,%eax
jne    11e4 <main+0x94>
cmp    $0x30,%cl
je     1517 <main+0x3c7>
mov    %eax,%ebx
test   %eax,%eax
jle    1358 <main+0x208>
movsbl %cl,%ecx
add    $0xffffffd0,%ecx
mov    %ecx,0xa0(%rsp)
cmp    $0x1,%eax
je     1358 <main+0x208>
lea    -0x1(%rbx),%rcx
mov    $0x1,%ebp
cmp    $0x8,%rcx
jb     1340 <main+0x1f0>
mov    %rcx,%rbp
and    $0xfffffffffffffff8,%rbp
lea    -0x8(%rbp),%rdx
mov    %rdx,%rsi
shr    $0x3,%rsi
add    $0x1,%rsi
test   %rdx,%rdx
movdqa 0xdc8(%rip),%xmm2
je     1506 <main+0x3b6>
mov    %rsi,%rdi
and    $0xfffffffffffffffe,%rdi
xor    %edx,%edx
nopw   0x0(%rax,%rax,1)
movd   0x31(%rsp,%rdx,1),%xmm0
punpcklbw %xmm0,%xmm0
punpcklwd %xmm0,%xmm0
movd   0x35(%rsp,%rdx,1),%xmm1
punpcklbw %xmm1,%xmm1
punpcklwd %xmm1,%xmm1
psrad  $0x18,%xmm0
psrad  $0x18,%xmm1
paddd  %xmm2,%xmm0
paddd  %xmm2,%xmm1
movdqu %xmm0,0xa4(%rsp,%rdx,4)
movdqu %xmm1,0xb4(%rsp,%rdx,4)
movd   0x39(%rsp,%rdx,1),%xmm0
punpcklbw %xmm0,%xmm0
punpcklwd %xmm0,%xmm0
movd   0x3d(%rsp,%rdx,1),%xmm1
punpcklbw %xmm1,%xmm1
punpcklwd %xmm1,%xmm1
psrad  $0x18,%xmm0
psrad  $0x18,%xmm1
paddd  %xmm2,%xmm0
paddd  %xmm2,%xmm1
movdqu %xmm0,0xc4(%rsp,%rdx,4)
movdqu %xmm1,0xd4(%rsp,%rdx,4)
add    $0x10,%rdx
add    $0xfffffffffffffffe,%rdi
jne    1250 <main+0x100>
test   $0x1,%sil
je     1328 <main+0x1d8>
or     $0x1,%rdx
movd   0x30(%rsp,%rdx,1),%xmm0
punpcklbw %xmm0,%xmm0
punpcklwd %xmm0,%xmm0
movd   0x34(%rsp,%rdx,1),%xmm1
punpcklbw %xmm1,%xmm1
punpcklwd %xmm1,%xmm1
psrad  $0x18,%xmm0
psrad  $0x18,%xmm1
paddd  %xmm2,%xmm0
paddd  %xmm2,%xmm1
movdqu %xmm0,0xa0(%rsp,%rdx,4)
movdqu %xmm1,0xb0(%rsp,%rdx,4)
cmp    %rbp,%rcx
je     1358 <main+0x208>
or     $0x1,%rbp
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
movsbl 0x30(%rsp,%rbp,1),%ecx
add    $0xffffffd0,%ecx
mov    %ecx,0xa0(%rsp,%rbp,4)
add    $0x1,%rbp
cmp    %rbp,%rbx
jne    1340 <main+0x1f0>
mov    %rax,0x10(%rsp)
add    $0xffffffff,%eax
mov    %rax,0x18(%rsp)
xor    %r13d,%r13d
mov    %rbx,0x20(%rsp)
jmp    137e <main+0x22e>
nop
add    $0x1,%r13
cmp    $0x5,%r13
je     1180 <main+0x30>
cmp    $0x2,%r13
je     1470 <main+0x320>
mov    %r13d,%eax
and    $0x7ffffffb,%eax
test   %rax,%rax
je     1470 <main+0x320>
mov    0xc(%rsp),%eax
test   %eax,%eax
jle    1370 <main+0x220>
mov    $0x1,%edx
jmp    13c2 <main+0x272>
nopl   0x0(%rax,%rax,1)
mov    0xc(%rsp),%eax
mov    0x28(%rsp),%rdx
lea    0x1(%rdx),%ecx
cmp    %eax,%edx
mov    %ecx,%edx
jge    1370 <main+0x220>
cmpl   $0x0,0x10(%rsp)
jle    13b9 <main+0x269>
mov    %rdx,0x28(%rsp)
xor    %ebp,%ebp
jmp    140d <main+0x2bd>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
movsbl 0x2(%r15,%rbx,2),%edi
call   1030 <putchar@plt>
cmp    0x18(%rsp),%rbp
mov    $0x20,%edi
mov    $0xa,%eax
cmove  %eax,%edi
call   1030 <putchar@plt>
add    $0x1,%rbp
cmp    0x20(%rsp),%rbp
je     13b0 <main+0x260>
movslq 0xa0(%rsp,%rbp,4),%rax
imul   $0x64,%rax,%r15
lea    0xbf0(%rip),%rax
add    %rax,%r15
lea    0x0(,%r13,4),%rbx
add    %r13,%rbx
movsbl (%r15,%rbx,2),%edi
call   1030 <putchar@plt>
cmpl   $0x0,0xc(%rsp)
jle    13e0 <main+0x290>
mov    0x1(%r15,%rbx,2),%r12b
xor    %r14d,%r14d
nopw   0x0(%rax,%rax,1)
movsbl %r12b,%edi
call   1030 <putchar@plt>
add    $0x1,%r14d
cmp    0xc(%rsp),%r14d
jl     1450 <main+0x300>
jmp    13e0 <main+0x290>
nopl   0x0(%rax)
cmpl   $0x0,0x10(%rsp)
jle    1370 <main+0x220>
xor    %r14d,%r14d
jmp    14b1 <main+0x361>
movsbl 0x2(%r12,%r15,2),%edi
call   1030 <putchar@plt>
cmp    0x18(%rsp),%r14
mov    $0x20,%edi
mov    $0xa,%eax
cmove  %eax,%edi
call   1030 <putchar@plt>
add    $0x1,%r14
cmp    0x20(%rsp),%r14
je     1370 <main+0x220>
movslq 0xa0(%rsp,%r14,4),%rax
imul   $0x64,%rax,%r12
lea    0xb4c(%rip),%rax
add    %rax,%r12
lea    0x0(,%r13,4),%r15
add    %r13,%r15
movsbl (%r12,%r15,2),%edi
call   1030 <putchar@plt>
cmpl   $0x0,0xc(%rsp)
jle    1480 <main+0x330>
mov    0x1(%r12,%r15,2),%bl
xor    %ebp,%ebp
nopw   0x0(%rax,%rax,1)
movsbl %bl,%edi
call   1030 <putchar@plt>
add    $0x1,%ebp
cmp    0xc(%rsp),%ebp
jl     14f0 <main+0x3a0>
jmp    1480 <main+0x330>
xor    %edx,%edx
test   $0x1,%sil
jne    12e4 <main+0x194>
jmp    1328 <main+0x1d8>
xor    %eax,%eax
add    $0x238,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

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

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